const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vendor-vue3-html2pdf-DBfPfU4j.css","./Hint-BAxc7GHP.css","./vendor-vue3-toastify-DHXAGmwn.css","./DefaultStyle-DoA0RZeP.css","./Box-earV8975.css","./BoxWithCheckbox-B5Wh0qnt.css","./BoxWithCheckboxAndDescription-BDUQgb7_.css","./BoxWithHeadingCheckboxAndDescription-C2MgbaGF.css"])))=>i.map(i=>d[i]);
import{_ as l}from"./convert-case-to-camel-case.utils-CK5dBN7n.js";import{u as O}from"./appearanceStore-Cp-euDX2.js";import{_ as h}from"./RequiredHint.vue_vue_type_style_index_0_lang-DGTCbwUk.js";import{u as C}from"./translationsStore-D6vLzgNA.js";import{d as T,e as a,$ as c,f as s,i,x as d,t as o,k as u,z as g,v as D}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as P,u as e}from"./vendor-vue-reactivity-CheHbvBM.js";import{t as p,a as R}from"./vendor-vue-shared-DrzsEcag.js";import"./vendor-pinia-BSPefQhS.js";const w={class:"ccb-field__label"},V={class:"ccb-field__title"},q={key:0,class:"ccb-field-required-mark"},S={key:2,class:"ccb-field__hidden"},I={key:0,class:"ccb-field__descriptions ccb-before"},L={key:0,class:"ccb-field__description"},B={class:"ccb-field__input-wrapper"},N={key:1,class:"ccb-field__descriptions ccb-after"},$={key:0,class:"ccb-field__description"},M=T({__name:"Checkbox",props:{field:{}},setup(k){const x=k,{field:t}=P(x),m=C(),f=O(),_=a(()=>!1),y=a(()=>""),A=a(()=>{var n;const r=((n=t.value.styles)==null?void 0:n.style)||"default";return r==="default"?c(()=>l(()=>import("./DefaultStyle-CH_aCLr-.js"),__vite__mapDeps([0,1,2,3]),import.meta.url)):r==="box"?c(()=>l(()=>import("./Box-DqurebJI.js"),__vite__mapDeps([2,0,4]),import.meta.url)):r==="box-with-checkbox"?c(()=>l(()=>import("./BoxWithCheckbox-CIKDiXjs.js"),__vite__mapDeps([2,0,5]),import.meta.url)):r==="box-with-checkbox-and-description"?c(()=>l(()=>import("./BoxWithCheckboxAndDescription-B385pr0C.js"),__vite__mapDeps([2,0,6]),import.meta.url)):r==="box-with-heading-checkbox-and-description"?c(()=>l(()=>import("./BoxWithHeadingCheckboxAndDescription-D0EQDMpU.js"),__vite__mapDeps([2,0,7]),import.meta.url)):""}),E=a(()=>t.value.additionalStyles||"");return(r,n)=>{var b,v;return i(),s("div",{class:R(["ccb-field ccb-checkbox-field",{required:_.value,"ccb-field-disabled":e(t).disabled,[E.value]:!0,[`ccb-field-element-columns-${(b=e(t).styles)==null?void 0:b.elementColumns}`]:(v=e(t).styles)==null?void 0:v.elementColumns}])},[d("div",w,[_.value&&e(t).selectedOption&&e(t).selectedOption.length<e(t).minAllowedOptions?(i(),u(h,{key:0,text:e(t).minAllowedOptions===1?e(t).minAllowedOptions+" "+e(m).getTranslations.minRequiredSingle:e(t).minAllowedOptions+" "+e(m).getTranslations.minRequiredPlural},null,8,["text"])):_.value?(i(),u(h,{key:1,text:y.value},null,8,["text"])):o("",!0),d("div",V,[g(p(e(t).label.trim()),1),e(t).required?(i(),s("span",q,"*")):o("",!0)]),e(t).hidden?(i(),s("div",S,n[0]||(n[0]=[d("i",{class:"ccb-icon-ic_eye_crossed"},null,-1)]))):o("",!0)]),e(f).getAppearanceDescriptionPosition==="before"?(i(),s("div",I,[e(t).description?(i(),s("div",L,p(e(t).description),1)):o("",!0)])):o("",!0),d("div",B,[(i(),u(D(A.value),{field:e(t),values:e(t).options},null,8,["field","values"]))]),e(f).getAppearanceDescriptionPosition==="after"?(i(),s("div",N,[e(t).description?(i(),s("div",$,p(e(t).description),1)):o("",!0)])):o("",!0)],2)}}});export{M as default};
//# sourceMappingURL=Checkbox-BjRduGxk.js.map
