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