const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vendor-vue3-html2pdf-DBfPfU4j.css","./Hint-BAxc7GHP.css","./DefaultStyle-BucTSqDY.css","./Box-C3YvPYE6.css","./BoxWithCheckbox-CrIIlxuK.css","./BoxWithCheckboxAndDescription-DanMGlvo.css","./BoxWithHeadingCheckboxAndDescription-CY4OgnP5.css"])))=>i.map(i=>d[i]);
import{_ as l}from"./convert-case-to-camel-case.utils-CK5dBN7n.js";import{u as g}from"./appearanceStore-Cp-euDX2.js";import{u as T}from"./useMultiOptionsFieldShared-Ma2tkgMo.js";import{_ as h}from"./RequiredHint.vue_vue_type_style_index_0_lang-DGTCbwUk.js";import{u as D}from"./translationsStore-D6vLzgNA.js";import{d as P,e as x,$ as a,f as s,i as o,x as p,t as r,k as m,z as R,v as V}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as w,u as e}from"./vendor-vue-reactivity-CheHbvBM.js";import{t as _,a as S}from"./vendor-vue-shared-DrzsEcag.js";import"./vendor-pinia-BSPefQhS.js";import"./fieldsStore-CQRN0FvQ.js";import"./settingsStore-8bwiLMEn.js";import"./appStore-CFAkQG2b.js";import"./vendor-moment-Cv92BTSA.js";import"./vendor-bootstrap-CCU-90um.js";import"./vendor-jspdf-UFhKzYHA.js";import"./vendor-php-date-formatter-DSpPwBF8.js";import"./callbackStore-BhxBUA6V.js";import"./pageBreakerStore-BevSHYnU.js";const q={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"},$={class:"ccb-field__input-wrapper"},z={key:1,class:"ccb-field__descriptions ccb-after"},U={key:0,class:"ccb-field__description"},ne=P({__name:"Checkbox",props:{field:{}},setup(k){const u=k,{field:t}=w(u),f=D(),b=g(),{applyChanges:y,isRequired:c,fieldValue:A,requiredWarningText:O}=T(u),C=x(()=>{var d,n;const i=((n=(d=t.value)==null?void 0:d.styles)==null?void 0:n.style)||"default";return i==="default"?a(()=>l(()=>import("./DefaultStyle-C5jA-acw.js"),__vite__mapDeps([0,1,2]),import.meta.url)):i==="box"?a(()=>l(()=>import("./Box-Qm_ENfBT.js"),__vite__mapDeps([0,3]),import.meta.url)):i==="box-with-checkbox"?a(()=>l(()=>import("./BoxWithCheckbox-o78pTT9Z.js"),__vite__mapDeps([0,4]),import.meta.url)):i==="box-with-checkbox-and-description"?a(()=>l(()=>import("./BoxWithCheckboxAndDescription-CcN9FaKb.js"),__vite__mapDeps([0,5]),import.meta.url)):i==="box-with-heading-checkbox-and-description"?a(()=>l(()=>import("./BoxWithHeadingCheckboxAndDescription-CZtRy3pI.js"),__vite__mapDeps([0,6]),import.meta.url)):""}),E=x(()=>{var i;return((i=t.value)==null?void 0:i.additionalStyles)||""});return(i,d)=>{var n,v;return o(),s("div",{class:S(["ccb-field ccb-checkbox-field",{required:e(c),"ccb-field-disabled":e(t).disabled,[E.value]:!0,[`ccb-field-element-columns-${(n=e(t).styles)==null?void 0:n.elementColumns}`]:(v=e(t).styles)==null?void 0:v.elementColumns}])},[p("div",q,[e(c)&&e(t).selectedOption&&e(t).selectedOption.length<e(t).minAllowedOptions?(o(),m(h,{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)?(o(),m(h,{key:1,text:e(O)},null,8,["text"])):r("",!0),p("div",I,[R(_(e(t).label.trim()),1),e(t).required?(o(),s("span",L,"*")):r("",!0)])]),e(b).getAppearanceDescriptionPosition==="before"?(o(),s("div",B,[e(t).description?(o(),s("div",N,_(e(t).description),1)):r("",!0)])):r("",!0),p("div",$,[(o(),m(V(C.value),{values:e(A),onUpdate:e(y),field:e(t)},null,40,["values","onUpdate","field"]))]),e(b).getAppearanceDescriptionPosition==="after"?(o(),s("div",z,[e(t).description?(o(),s("div",U,_(e(t).description),1)):r("",!0)])):r("",!0)],2)}}});export{ne as default};
//# sourceMappingURL=index-CmD7-VBM.js.map
