import{_}from"./TsJAIE3y.js";import{d as g,c as y,o as a,b as n,w as s,a3 as k,f as V,R as h,S as B,e as i,W as v,x as D,h as C,j as R,B as F,dF as P}from"./BV6JFWy-.js";const w=g({__name:"UiPartsFieldsetCheckbox",props:{modelValue:{type:[Array,Boolean]},legend:{},items:{},disabled:{type:Boolean},isRcopyDialog:{type:Boolean,default:!1},mobileDirection:{default:"column"},description1:{default:null},description2:{default:null}},emits:["update:modelValue"],setup(d,{emit:r}){const u=d,p=r,l=y({get:()=>u.modelValue,set:e=>p("update:modelValue",e)});return(e,t)=>{const c=_,m=F,b=P;return a(),n(b,{legend:e.legend,"mobile-direction":e.mobileDirection,class:"ui-parts-fieldset-checkbox",description:e.description1},{help:s(()=>[k(e.$slots,"help")]),default:s(()=>[(a(!0),V(h,null,B(e.items,o=>(a(),n(c,{id:o.id,key:o.value,modelValue:i(l),"onUpdate:modelValue":t[0]||(t[0]=f=>v(l)?l.value=f:null),name:o.name,value:o.value,label:o.label,disabled:e.disabled&&!e.isRcopyDialog||e.disabled&&e.isRcopyDialog&&!i(l).includes(o.value)},null,8,["id","modelValue","name","value","label","disabled"]))),128)),e.description2?(a(),n(m,{key:0},{default:s(()=>[D(C(e.description2),1)]),_:1})):R("",!0)]),_:3},8,["legend","mobile-direction","description"])}}});export{w as _};