import{_ as g}from"./C97gZJnv.js";import{d as x,c as _,e as o,o as l,c8 as k,w as s,E as y,g as V,Q as h,R as B,B as v,l as C,t as D,S as P,j as d,a5 as R}from"./DPurtOtd.js";const U=x({__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(e,{emit:c}){const u=e,m=c,a=_({get:()=>u.modelValue,set:n=>m("update:modelValue",n)});return(n,i)=>{const r=g,p=v,b=k;return l(),o(b,{legend:e.legend,"mobile-direction":e.mobileDirection,class:"ui-parts-fieldset-checkbox",description:e.description1},{help:s(()=>[P(n.$slots,"help")]),default:s(()=>[(l(!0),y(h,null,B(e.items,t=>(l(),o(r,{id:t.id,key:t.value,modelValue:d(a),"onUpdate:modelValue":i[0]||(i[0]=f=>R(a)?a.value=f:null),name:t.name,value:t.value,label:t.label,disabled:e.disabled&&!e.isRcopyDialog||e.disabled&&e.isRcopyDialog&&!d(a).includes(t.value)},null,8,["id","modelValue","name","value","label","disabled"]))),128)),e.description2?(l(),o(p,{key:0},{default:s(()=>[C(D(e.description2),1)]),_:1})):V("",!0)]),_:3},8,["legend","mobile-direction","description"])}}}),j=Object.assign(U,{__name:"UiPartsFieldsetCheckbox"});export{j as _};