import{K as x,Y as g,a0 as P,aB as B}from"./index.17037962789732.js";import"./index.1703796278973308.js";import"./index.170379627897334.js";import"./index.170379627897319.js";import"./index.170379627897327.js";import"./index.170379627897336.js";import{_ as I}from"./index.vue_vue_type_script_setup_true_name_PermissionButton_lang.1703796278973.js";import"./index.170379627897315.js";import{V as z}from"./ValueRender.17037962789732.js";import{d as S,r as d,o as i,c as r,a,z as e,b as s,t as j,A as l,x as m,F as _,h as V,n as A,y as w,G as E,H as J}from"./vue.1703796278973.js";import{_ as N}from"./_plugin-vue_export-helper.1703796278973.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.170379627897320.js";import"./index.170379627897321.js";import"./permission.1703796278973.js";import"./ValueDetail.vue_vue_type_script_setup_true_lang.17037962789732.js";import"./index.170379627897337.js";import"./index.1703796278973315.js";import"./vue-json-viewer.1703796278973.js";import"./index.vue_vue_type_script_setup_true_lang.17037962789736.js";import"./comm.1703796278973.js";const $=o=>(E("data-v-4b1a726e"),o=o(),J(),o),F={class:"card-container"},L={class:"header"},T={class:"title"},D={class:"extra"},G={class:"value"},H={class:"bottom"},K=$(()=>e("div",{style:{color:"rgba(0, 0, 0, 0.65)","font-size":"12px"}}," 更新时间 ",-1)),O={class:"time-value"},R=S({__name:"PropertyCard",props:{data:{type:Object,default:()=>{}},actions:{type:Array,default:()=>[]}},setup(o){const n=o;return(u,Y)=>{const y=d("Ellipsis"),c=d("AIcon"),f=x,v=g,k=I,C=P,h=B;return i(),r(h,{hoverable:!0,class:"card-box"},{default:a(()=>{var p;return[e("div",F,[e("div",L,[e("div",T,[s(y,{style:{width:"100%"}},{default:a(()=>[j(l(n.data.name),1)]),_:1})]),e("div",D,[s(C,{size:16},{default:a(()=>[(i(!0),m(_,null,V(o.actions,t=>(i(),m(_,{key:t.key},[t.key!=="edit"?(i(),r(v,A(w({key:0},t.tooltip)),{default:a(()=>[s(f,{style:{padding:"0",margin:"0"},type:"link",disabled:t.disabled,onClick:b=>t.onClick&&t.onClick(o.data)},{default:a(()=>[s(c,{type:t.icon,style:{color:"#323130","font-size":"12px"}},null,8,["type"])]),_:2},1032,["disabled","onClick"])]),_:2},1040)):(i(),r(k,{key:1,disabled:t.disabled,popConfirm:t.popConfirm,tooltip:t.tooltip,onClick:b=>t.onClick&&t.onClick(u.slotProps),type:"link",style:{padding:"0px"},hasPermission:"device/Instance:update"},{icon:a(()=>[s(c,{type:t.icon,style:{color:"#323130","font-size":"12px"}},null,8,["type"])]),_:2},1032,["disabled","popConfirm","tooltip","onClick"]))],64))),128))]),_:1})])]),e("div",G,[s(z,{data:o.data,value:n.data,type:"card"},null,8,["data","value"])]),e("div",H,[K,e("div",O,l(((p=n==null?void 0:n.data)==null?void 0:p.timeString)||"--"),1)])])]}),_:1})}}});const Ct=N(R,[["__scopeId","data-v-4b1a726e"]]);export{Ct as default};
