const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./widget-DZZgQDKu.css","./Hint-BAxc7GHP.css","./DefaultStyle-Dx_ZfSup.css","./Box-sSN-3vMN.css","./BoxWithCheckbox-BerWOeGl.css","./BoxWithCheckboxAndDescription-Cj4RQ3Cr.css","./BoxWithHeadingCheckboxAndDescription-Tbk8hRIB.css"])))=>i.map(i=>d[i]);
import{a as E,C as D,b as v,e as l,_ as a,m as o,g as s,p as _,q as r,f as p,u as e,L as T,D as u,r as P,I as R}from"./convert-case-to-camel-case.utils-DDUpNI96.js";import{u as V}from"./widget-BUAABBRb.js";import{u as q}from"./useMultiOptionsFieldShared-B94LQkbD.js";import{_ as x}from"./RequiredHint.vue_vue_type_style_index_0_lang-R4Bqx90z.js";import{u as w}from"./translationsStore-DBJu9sBR.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";const S={class:"ccb-field__label"},I={class:"ccb-field__title"},L={key:0,class:"ccb-field-required-mark"},B={key:0,class:"ccb-field__descriptions ccb-before"},N={key:0,class:"ccb-field__description"},U={class:"ccb-field__input-wrapper"},$={key:1,class:"ccb-field__descriptions ccb-after"},z={key:0,class:"ccb-field__description"},K=E({__name:"Checkbox",props:{field:{}},setup(y){const m=y,{field:t}=D(m),f=w(),b=V(),{applyChanges:k,isRequired:c,fieldValue:A,requiredWarningText:C}=q(m),O=v(()=>{var d,n;const i=((n=(d=t.value)==null?void 0:d.styles)==null?void 0:n.style)||"default";return i==="default"?l(()=>a(()=>import("./DefaultStyle-DzbjhYbZ.js"),__vite__mapDeps([0,1,2]),import.meta.url)):i==="box"?l(()=>a(()=>import("./Box-CXiFXvTn.js"),__vite__mapDeps([0,3]),import.meta.url)):i==="box-with-checkbox"?l(()=>a(()=>import("./BoxWithCheckbox-kEA4y_wv.js"),__vite__mapDeps([0,4]),import.meta.url)):i==="box-with-checkbox-and-description"?l(()=>a(()=>import("./BoxWithCheckboxAndDescription-DnAgRnR9.js"),__vite__mapDeps([0,5]),import.meta.url)):i==="box-with-heading-checkbox-and-description"?l(()=>a(()=>import("./BoxWithHeadingCheckboxAndDescription-CnU3oumV.js"),__vite__mapDeps([0,6]),import.meta.url)):""}),g=v(()=>{var i;return((i=t.value)==null?void 0:i.additionalStyles)||""});return(i,d)=>{var n,h;return s(),o("div",{class:R(["ccb-field ccb-checkbox-field",{required:e(c),"ccb-field-disabled":e(t).disabled,[g.value]:!0,[`ccb-field-element-columns-${(n=e(t).styles)==null?void 0:n.elementColumns}`]:(h=e(t).styles)==null?void 0:h.elementColumns}])},[_("div",S,[e(c)&&e(t).selectedOption&&e(t).selectedOption.length<e(t).minAllowedOptions?(s(),p(x,{key:0,text:e(t).minAllowedOptions===1?e(t).minAllowedOptions+" "+e(f).getTranslations.minRequiredSingle:e(t).minAllowedOptions+" "+e(f).getTranslations.minRequiredPlural},null,8,["text"])):e(c)?(s(),p(x,{key:1,text:e(C)},null,8,["text"])):r("",!0),_("div",I,[T(u(e(t).label.trim()),1),e(t).required?(s(),o("span",L,"*")):r("",!0)])]),e(b).getAppearanceDescriptionPosition==="before"?(s(),o("div",B,[e(t).description?(s(),o("div",N,u(e(t).description),1)):r("",!0)])):r("",!0),_("div",U,[(s(),p(P(O.value),{values:e(A),onUpdate:e(k),field:e(t)},null,40,["values","onUpdate","field"]))]),e(b).getAppearanceDescriptionPosition==="after"?(s(),o("div",$,[e(t).description?(s(),o("div",z,u(e(t).description),1)):r("",!0)])):r("",!0)],2)}}});export{K as default};
//# sourceMappingURL=index-BibadcTr.js.map
