import{c as a,r as t,aE as e,o as s,k as l,l as o,e as n,x as c,q as r,p as i,F as u,Q as m}from"./base-lib.js?v=1761009159";import{e as d}from"./utils-lib.js?v=1761009159";const p=["title","innerHTML"],D=d(a({__name:"checkbox-group",props:{compData:{default:{}}},setup(a){const d=a,{getDisabled:D,changeCheckbox:v}=d.compData,b=t(d.compData.item),x=a=>{let t=a,e=(new DOMParser).parseFromString(t,"text/html").body.textContent;return null==e?void 0:e.replace("版本不一致","版本不一致，强行还原可能会失败，建议切换版本后再试")};return e((()=>{b.value=d.compData.item,b.value.status=Boolean(b.value.status)})),s((()=>{})),(a,t)=>{const e=m;return l(),o("div",null,[n(e,{modelValue:i(b).status,"onUpdate:modelValue":t[0]||(t[0]=a=>i(b).status=a),disabled:i(D)(i(b)),onChange:t[1]||(t[1]=t=>{var e,s,l;return i(v)(i(b),null==(e=a.compData)?void 0:e.key,null==(s=a.compData)?void 0:s.key1,null==(l=a.compData)?void 0:l.key2)}),class:u(["item-checkbox",{"!text-[#666]":i(D)(i(b)),"!text-danger":-1!==a.compData.title.indexOf("不一致")}])},{default:c((()=>[r("div",{class:"truncate",title:x(a.compData.title),innerHTML:a.compData.title},null,8,p)])),_:1},8,["modelValue","disabled","class"])])}}}),[["__scopeId","data-v-7f2c9c46"]]);export{D as C};
