import{$ as B}from"./index.17037962789732.js";import"./index.170379627897335.js";import{_ as C,g as N,c as f}from"./index.vue_vue_type_script_setup_true_lang.17037962789733.js";import{d as h,f as $,r as S,o as s,x as o,z as e,u as l,j as c,B as n,D as v,E as d,b as k,F as j,h as w,n as T,i as z,c as A}from"./vue.1703796278973.js";import{_ as I}from"./_plugin-vue_export-helper.1703796278973.js";const O={class:"card j-table-card-box"},V={key:0,class:"card-type"},D={class:"card-type-text"},E={style:{display:"flex"}},F={class:"card-item-avatar"},L={class:"card-item-body"},M={key:0,class:"checked-icon"},P={class:"card-state-content"},H={key:1,class:"card-mask"},J={class:"mask-content"},R={key:0,class:"card-tools"},q=h({name:"CardBox"}),G=h({...q,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,default:()=>({default:"default"})},actions:{type:Array,default:()=>[]},active:{type:Boolean,default:!1},hasMark:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:g}){const m=t,i=$(),y=a=>{const r=f[a]||f.default;return`linear-gradient(
                188.4deg,
                rgba(${r}, 0.03) 30%,
                rgba(${r}, 0) 80%
            )`},b=()=>{g("click",m.value)};return(a,r)=>{const _=S("AIcon"),p=B;return s(),o("div",O,[e("div",{class:v(["card-warp",{active:t.active?"active":""}]),onClick:b},[l(i).type?(s(),o("div",V,[e("div",D,[c(a.$slots,"type",{},void 0,!0)])])):n("",!0),e("div",{class:v(["card-content",{"card-content-top-line":!l(i).type}]),style:d({paddingTop:l(i).type?"40px":"30px"})},[e("div",{class:"card-content-bg1",style:d({background:y(t.statusNames[t.status])})},null,4),e("div",{class:"card-content-bg2",style:d({background:y(t.statusNames[t.status])})},null,4),e("div",E,[e("div",F,[c(a.$slots,"img",{},void 0,!0)]),e("div",L,[c(a.$slots,"content",{},void 0,!0)])]),t.active?(s(),o("div",M,[e("div",null,[k(_,{type:"CheckOutlined"})])])):n("",!0),t.showStatus?(s(),o("div",{key:1,class:"card-state",style:d({backgroundColor:l(N)(t.statusNames[t.status])})},[e("div",P,[k(C,{status:t.status,text:t.statusText,statusNames:t.statusNames},null,8,["status","text","statusNames"])])],4)):n("",!0)],6),m.hasMark?(s(),o("div",H,[e("div",J,[c(a.$slots,"mark",{},void 0,!0)])])):n("",!0)],2),c(a.$slots,"bottom-tool",{},()=>[t.showTool&&t.actions&&t.actions.length?(s(),o("div",R,[(s(!0),o(j,null,w(t.actions,(u,x)=>(s(),o("div",{key:u.key,class:v(["card-button",{delete:u.key==="delete"}])},[c(a.$slots,"actions",T(z(u)),void 0,!0),x!=t.actions.length-1?(s(),A(p,{key:0,type:"vertical"})):n("",!0)],2))),128))])):n("",!0)],!0)])}}});const Y=I(G,[["__scopeId","data-v-5bad3feb"]]);export{Y as _};
