import{a as f,C as x,b as g,m as i,g as r,F as v,H as k,I as C,u as e,M as B,p as m,$ as V,Z as M,D}from"./convert-case-to-camel-case.utils-DDUpNI96.js";import{u as I}from"./useMultiOptionChildShared-DVKrDZdt.js";import{_ as S}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./color-filter.utils-DukMf1cu.js";import"./widget-BUAABBRb.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./translationsStore-DBJu9sBR.js";const w={class:"ccb-box-with-checkbox ccb-checkbox-grid"},y=["for"],F=["id","name","value"],N={class:"ccb-checkbox-label"},O=f({__name:"BoxWithCheckbox",props:{field:{},values:{}},emits:["update"],setup(_,{emit:b}){const h=b,c=_,{field:l}=x(c),p=g(()=>Math.random().toString(36).substring(2,15)),{optionValues:o,changeValue:u,getName:s}=I(c,h);return(R,t)=>(r(),i("div",w,[(r(!0),i(v,null,k(e(l).options,(d,a)=>(r(),i("label",{for:e(s)+"_"+a+"_"+p.value,class:C({"ccb-option-disabled":e(l).disableOptions.includes(a)})},[B(m("input",{type:"checkbox",id:e(s)+"_"+a+"_"+p.value,name:e(s),value:d.optionValue,"onUpdate:modelValue":t[0]||(t[0]=n=>M(o)?o.value=n:null),onChange:t[1]||(t[1]=(...n)=>e(u)&&e(u)(...n))},null,40,F),[[V,e(o)]]),m("span",N,D(d.optionText),1)],10,y))),256))]))}}),$=S(O,[["__scopeId","data-v-58039c24"]]);export{$ as default};
//# sourceMappingURL=BoxWithCheckbox-kEA4y_wv.js.map
