import{Y as f,aB as u}from"./index.17037962789732.js";import"./index.1703796278973308.js";import"./index.170379627897334.js";import"./index.170379627897319.js";import"./index.170379627897327.js";import{$ as h}from"./index.17037962789733.js";import{d as n,r as k,o as v,c as C,a as o,z as t,b as s,t as d,A as i,j as x,u as y,D as b}from"./vue.1703796278973.js";import{_ as g}from"./_plugin-vue_export-helper.1703796278973.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";const B={class:"title"},j={class:"desc"},$={class:"checked-icon"},w=n({name:"AccessCard"}),A=n({...w,props:{checked:{type:String,default:void 0},data:{type:Object,default:()=>{}},disabled:{type:Boolean,default:!1}},emits:["checkedChange"],setup(e,{emit:l}){const r=a=>{l("checkedChange",a)};return(a,c)=>{const m=k("Ellipsis"),p=f,_=u;return v(),C(_,{hoverable:"",class:b(["card-render",`access-${e.data.type||"network"}`,e.checked===e.data.id?"checked":"",e.disabled?"disabled":""]),onClick:c[0]||(c[0]=N=>r(e.data.id))},{default:o(()=>[t("div",B,[s(m,{style:{width:"calc(100% - 100px)","margin-bottom":"24px"}},{default:o(()=>[d(i(e.data.name),1)]),_:1})]),x(a.$slots,"other",{},void 0,!0),t("div",j,[s(p,{placement:"topLeft",title:e.data.description},{default:o(()=>[d(i(e.data.description),1)]),_:1},8,["title"])]),t("div",$,[t("div",null,[s(y(h))])])]),_:3},8,["class"])}}});const G=g(A,[["__scopeId","data-v-5c4c5a93"]]);export{G as default};
