const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vendor-vue3-html2pdf-DBfPfU4j.css","./Hint-BAxc7GHP.css","./Default-16MSTBcT.css","./vendor-vue3-toastify-DHXAGmwn.css","./BoxToggleWithDescription-sQ9ckXty.css"])))=>i.map(i=>d[i]);
import{_ as m}from"./convert-case-to-camel-case.utils-CK5dBN7n.js";import{u as D}from"./appearanceStore-Cp-euDX2.js";import{_ as V}from"./RequiredHint.vue_vue_type_style_index_0_lang-DGTCbwUk.js";import{d as q,e as i,$ as v,f as o,i as s,x as c,t as r,k as b,z as E,v as P}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as T,u as e}from"./vendor-vue-reactivity-CheHbvBM.js";import{t as a,a as B}from"./vendor-vue-shared-DrzsEcag.js";import"./vendor-pinia-BSPefQhS.js";const R={class:"ccb-field__label"},N={class:"ccb-field__title"},O={key:0,class:"ccb-field-required-mark"},S={key:1,class:"ccb-field__hidden"},$={key:0,class:"ccb-field__descriptions ccb-before"},w={key:0,class:"ccb-field__description"},z={class:"ccb-field__input-wrapper"},I={key:1,class:"ccb-field__descriptions ccb-after"},L={key:0,class:"ccb-field__description"},K=q({__name:"Toggle",props:{field:{}},setup(y){const h=y,{field:t}=T(h),l=D(),d=i(()=>!1),k=i(()=>""),g=i(()=>[{value:"1",label:"Option 1"}]),C=i(()=>()=>{}),u=i(()=>{var n;return((n=t.value.styles)==null?void 0:n.style)||"default"}),x=i(()=>u.value==="default"?v(()=>m(()=>import("./Default-BPEv94ra.js"),__vite__mapDeps([0,1,2]),import.meta.url)):u.value==="box-with-toggle-and-description"?v(()=>m(()=>import("./BoxToggleWithDescription-RLA6Qy7i.js"),__vite__mapDeps([3,0,4]),import.meta.url)):""),A=i(()=>"");return(n,_)=>{var p,f;return s(),o("div",{class:B(["ccb-field ccb-toggle-field",{required:d.value,"ccb-field-disabled":e(t).disabled,[A.value]:!0,[`ccb-field-element-columns-${(p=e(t).styles)==null?void 0:p.elementColumns}`]:(f=e(t).styles)==null?void 0:f.elementColumns}])},[c("div",R,[d.value?(s(),b(V,{key:0,text:k.value},null,8,["text"])):r("",!0),c("div",N,[E(a(e(t).label),1),e(t).required?(s(),o("span",O,"*")):r("",!0)]),e(t).hidden?(s(),o("div",S,_[0]||(_[0]=[c("i",{class:"ccb-icon-ic_eye_crossed"},null,-1)]))):r("",!0)]),e(l).getAppearanceDescriptionPosition==="before"?(s(),o("div",$,[e(t).description?(s(),o("div",w,a(e(t).description),1)):r("",!0)])):r("",!0),c("div",z,[(s(),b(P(x.value),{values:g.value,onUpdate:C.value,field:e(t)},null,40,["values","onUpdate","field"]))]),e(l).getAppearanceDescriptionPosition==="after"?(s(),o("div",I,[e(t).description?(s(),o("div",L,a(e(t).description),1)):r("",!0)])):r("",!0)],2)}}});export{K as default};
//# sourceMappingURL=Toggle-DWkpaASF.js.map
