import{a as b,C as h,b as v,m as s,g as o,F as C,H as k,I as H,u as e,p as a,q as V,D as M,n as w,w as y,M as D,$ as x,Z as N}from"./convert-case-to-camel-case.utils-DDUpNI96.js";import{u as B}from"./useMultiOptionChildShared-DVKrDZdt.js";import{H as I}from"./Hint-BAiZXDnr.js";import{_ as L}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 S={class:"ccb-default-toggle ccb-toggle-grid"},T={class:"ccb-toggle-item__label-wrap"},F={class:"ccb-toggle-item__label"},O={key:0,class:"ccb-toggle-item__postfix"},R=["innerHTML"],q={class:"ccb-toggle-wrapper"},z=["id","name","value"],E=["for"],U=b({__name:"Default",props:{field:{},values:{}},emits:["update"],setup(_,{emit:g}){const f=g,p=_,{field:u}=h(p),d=v(()=>Math.random().toString(36).substring(2,15)),{optionValues:l,changeValue:m,getName:r}=B(p,f);return(Z,n)=>(o(),s("div",S,[(o(!0),s(C,null,k(e(u).options,(i,t)=>(o(),s("div",{class:H(["ccb-toggle-item",{"ccb-option-disabled":e(u).disableOptions.includes(t)}]),key:t},[a("div",T,[a("span",F,M(i.optionText),1)]),i.optionHint?(o(),s("div",O,[w(e(I),null,{content:y(()=>[a("span",{innerHTML:i.optionHint},null,8,R)]),_:2},1024)])):V("",!0),a("div",q,[D((o(),s("input",{id:e(r)+"_"+t+"_"+d.value,type:"checkbox",name:e(r),"onUpdate:modelValue":n[0]||(n[0]=c=>N(l)?l.value=c:null),value:i.optionValue,onChange:n[1]||(n[1]=(...c)=>e(m)&&e(m)(...c)),key:t},null,40,z)),[[x,e(l)]]),a("label",{for:e(r)+"_"+t+"_"+d.value},null,8,E)])],2))),128))]))}}),X=L(U,[["__scopeId","data-v-a55f9b38"]]);export{X as default};
//# sourceMappingURL=Default-BEkPEAGl.js.map
