const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vendor-vue3-html2pdf-DBfPfU4j.css","./Hint-BAxc7GHP.css","./Default-zFPGXhj3.css","./BoxToggleWithDescription-BWfvdJBm.css"])))=>i.map(i=>d[i]);
import{_ as u}from"./convert-case-to-camel-case.utils-CK5dBN7n.js";import{u as A}from"./appearanceStore-Cp-euDX2.js";import{u as D}from"./useMultiOptionsFieldShared-CXrkcCXO.js";import{_ as V}from"./RequiredHint.vue_vue_type_style_index_0_lang-DGTCbwUk.js";import{d as q,e as f,$ as b,f as o,i as s,x as l,t as r,k as v,z as E,v as P}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as S,u as e}from"./vendor-vue-reactivity-CheHbvBM.js";import{t as n,a as T}from"./vendor-vue-shared-DrzsEcag.js";import"./vendor-pinia-BSPefQhS.js";import"./fieldsStore-CNpVuoPu.js";import"./settingsStore-8bwiLMEn.js";import"./appStore-CFAkQG2b.js";import"./translationsStore-D6vLzgNA.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-Bkj6mcUr.js";const B={class:"ccb-field__label"},R={class:"ccb-field__title"},N={key:0,class:"ccb-field-required-mark"},O={key:0,class:"ccb-field__descriptions ccb-before"},$={key:0,class:"ccb-field__description"},w={class:"ccb-field__input-wrapper"},z={key:1,class:"ccb-field__descriptions ccb-after"},I={key:0,class:"ccb-field__description"},oe=q({__name:"Toggle",props:{field:{}},setup(y){const d=y,{field:t}=S(d),p=A(),{applyChanges:h,isRequired:_,fieldValue:g,requiredWarningText:k}=D(d),C=f(()=>{var c,a;const i=((a=(c=t.value)==null?void 0:c.styles)==null?void 0:a.style)||"default";return i==="default"?b(()=>u(()=>import("./Default-DVxneHYc.js"),__vite__mapDeps([0,1,2]),import.meta.url)):i==="box-with-toggle-and-description"?b(()=>u(()=>import("./BoxToggleWithDescription-D9rZFh9A.js"),__vite__mapDeps([0,3]),import.meta.url)):""}),x=f(()=>{var i;return((i=t.value)==null?void 0:i.additionalStyles)||""});return(i,c)=>{var a,m;return s(),o("div",{class:T(["ccb-field ccb-toggle-field",{required:e(_),"ccb-field-disabled":e(t).disabled,[`ccb-field-element-columns-${(a=e(t).styles)==null?void 0:a.elementColumns}`]:(m=e(t).styles)==null?void 0:m.elementColumns,[x.value]:!0}])},[l("div",B,[e(_)?(s(),v(V,{key:0,text:e(k)},null,8,["text"])):r("",!0),l("div",R,[E(n(e(t).label),1),e(t).required?(s(),o("span",N,"*")):r("",!0)])]),e(p).getAppearanceDescriptionPosition==="before"?(s(),o("div",O,[e(t).description?(s(),o("div",$,n(e(t).description),1)):r("",!0)])):r("",!0),l("div",w,[(s(),v(P(C.value),{values:e(g),onUpdate:e(h),field:e(t)},null,40,["values","onUpdate","field"]))]),e(p).getAppearanceDescriptionPosition==="after"?(s(),o("div",z,[e(t).description?(s(),o("div",I,n(e(t).description),1)):r("",!0)])):r("",!0)],2)}}});export{oe as default};
//# sourceMappingURL=index-8OasM0Yi.js.map
