import{_ as h}from"./index.vue_vue_type_script_setup_true_lang.17037962789733.js";import{d as y,r as f,o as a,x as o,z as e,j as c,b as r,B as d,D as n,F as k,h as _,n as p,i as N}from"./vue.1703796278973.js";import{_ as B}from"./_plugin-vue_export-helper.1703796278973.js";import"./index.17037962789732.js";import"./index.17037962789733.js";import"./dayjs.min.1703796278973.js";import"./isArray.1703796278973.js";import"./editor.api.1703796278973.js";import"./preload-helper.1703796278973.js";import"./monaco.contribution.1703796278973.js";import"./index.170379627897333.js";const g={class:"card"},C={class:"card-content"},$={class:"card-header"},b={class:"card-header-left"},x={class:"card-header-right"},w={class:"card-item-avatar"},S={class:"card-item-body"},T={key:0,class:"checked-icon"},j={class:"card-state-content"},z={key:0,class:"card-mask"},A={class:"mask-content"},I={key:0,class:"card-tools"},O=y({__name:"index",props:{value:{type:Object,default:()=>{}},showStatus:{type:Boolean,default:!0},showTool:{type:Boolean,default:!0},statusText:{type:String,default:"正常"},status:{type:[String,Number],default:"default"},statusNames:{type:Object},actions:{type:Array,default:()=>[]},active:{type:Boolean,default:!1},hasMark:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:u}){const l=t,m=()=>{u("click",l.value)};return(s,P)=>{const v=f("AIcon");return a(),o("div",g,[e("div",{class:n(["card-warp",{active:t.active?"active":""}])},[e("div",C,[e("div",$,[e("div",b,[c(s.$slots,"title",{},void 0,!0)]),e("div",x,[c(s.$slots,"action",{},void 0,!0)])]),e("div",{class:"card-item",style:{display:"flex"},onClick:m},[e("div",w,[c(s.$slots,"img",{},void 0,!0)]),e("div",S,[c(s.$slots,"content",{},void 0,!0)])]),t.active?(a(),o("div",T,[e("div",null,[r(v,{type:"CheckOutlined"})])])):d("",!0),t.showStatus?(a(),o("div",{key:1,class:n(["card-state",t.statusNames?t.statusNames[t.status]:""])},[e("div",j,[r(h,{status:t.status,text:t.statusText,statusNames:t.statusNames},null,8,["status","text","statusNames"])])],2)):d("",!0)]),l.hasMark?(a(),o("div",z,[e("div",A,[c(s.$slots,"mark",{},void 0,!0)])])):d("",!0)],2),c(s.$slots,"bottom-tool",{},()=>[t.showTool&&t.actions&&t.actions.length?(a(),o("div",I,[(a(!0),o(k,null,_(t.actions,i=>(a(),o("div",{key:i.key,class:n(["card-button",{delete:i.key==="delete"}])},[c(s.$slots,"actions",p(N(i)),void 0,!0)],2))),128))])):d("",!0)],!0)])}}});const K=B(O,[["__scopeId","data-v-1c5da2a0"]]);export{K as default};
