const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./widget-DZZgQDKu.css","./Default-Czczb-dj.css","./WithIcon--zm8zP41.css"])))=>i.map(i=>d[i]);
import{a as D,C as V,b as m,e as f,_ as b,m as o,g as s,p as n,q as r,f as v,u as e,L as q,n as A,D as l,r as E,I as P}from"./convert-case-to-camel-case.utils-DDUpNI96.js";import{u as S}from"./widget-BUAABBRb.js";import{u as B}from"./useMultiOptionsFieldShared-B94LQkbD.js";import{c as I}from"./ThankYouPage-bf4cLsjC.js";import{_ as N}from"./RequiredHint.vue_vue_type_style_index_0_lang-R4Bqx90z.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./translationsStore-DBJu9sBR.js";import"./index-CEuXXsrq.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const R={class:"ccb-field__label"},T={class:"ccb-field__title"},L={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"},U={key:1,class:"ccb-field__descriptions ccb-after"},z={key:0,class:"ccb-field__description"},Y=D({__name:"ImageCheckbox",props:{field:{}},setup(y){const d=y,{field:t}=V(d),p=S(),{applyChanges:h,isRequired:_,fieldValue:k,requiredWarningText:C}=B(d),g=m(()=>{var a,c;const i=((c=(a=t.value)==null?void 0:a.styles)==null?void 0:c.style)||"default";return i==="default"?f(()=>b(()=>import("./Default-BzvB37eQ.js"),__vite__mapDeps([0,1]),import.meta.url)):i==="with-icon"?f(()=>b(()=>import("./WithIcon-Bh6fVuDz.js"),__vite__mapDeps([0,2]),import.meta.url)):""}),x=m(()=>{var i;return((i=t.value)==null?void 0:i.additionalStyles)||""});return(i,a)=>{var c,u;return s(),o("div",{class:P(["ccb-field ccb-image-checkbox-field",{required:e(_),"ccb-field-disabled":e(t).disabled,[x.value]:!0,[`ccb-field-element-columns-${(c=e(t).styles)==null?void 0:c.elementColumns}`]:(u=e(t).styles)==null?void 0:u.elementColumns}])},[n("div",R,[e(_)?(s(),v(N,{key:0,text:e(C)},null,8,["text"])):r("",!0),n("div",T,[q(l(e(t).label),1),e(t).required?(s(),o("span",L,"*")):r("",!0),A(I)])]),e(p).getAppearanceDescriptionPosition==="before"?(s(),o("div",O,[e(t).description?(s(),o("div",$,l(e(t).description),1)):r("",!0)])):r("",!0),n("div",w,[(s(),v(E(g.value),{values:e(k),onUpdate:e(h),field:e(t)},null,40,["values","onUpdate","field"]))]),e(p).getAppearanceDescriptionPosition==="after"?(s(),o("div",U,[e(t).description?(s(),o("div",z,l(e(t).description),1)):r("",!0)])):r("",!0)],2)}}});export{Y as default};
//# sourceMappingURL=index-DvaB2aN8.js.map
