const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./widget-DZZgQDKu.css","./DefaultStyle-gNEcPxSu.css","./WithIcon-ZdfGWJAq.css"])))=>i.map(i=>d[i]);
import{a as x,C as D,b as m,e as f,_ as b,m as o,g as s,p as n,q as r,f as y,u as e,L as q,n as A,D as l,r as O,I as S}from"./convert-case-to-camel-case.utils-DDUpNI96.js";import{u as w}from"./widget-BUAABBRb.js";import{u as E}from"./useSingleOptionFieldShared-DgCmtnlP.js";import{c as P}from"./ThankYouPage-bf4cLsjC.js";import{_ as R}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 B={class:"ccb-field__label"},N={class:"ccb-field__title"},T={key:0,class:"ccb-field-required-mark"},L={key:0,class:"ccb-field__descriptions ccb-before"},$={key:0,class:"ccb-field__description"},U={class:"ccb-field__input-wrapper"},z={key:1,class:"ccb-field__descriptions ccb-after"},F={key:0,class:"ccb-field__description"},Z=x({__name:"ImageRadio",props:{field:{}},setup(v){const d=v,{field:t}=D(d),p=w(),{selectValue:h,fieldValue:k,isRequired:_,getKey:V,requiredWarningText:C}=E(d),g=m(()=>{var c,a;const i=((a=(c=t.value)==null?void 0:c.styles)==null?void 0:a.style)||"default";return i==="default"?f(()=>b(()=>import("./DefaultStyle-DosxRYbZ.js"),__vite__mapDeps([0,1]),import.meta.url)):i==="with-icon"?f(()=>b(()=>import("./WithIcon-C0OpEsID.js"),__vite__mapDeps([0,2]),import.meta.url)):""}),I=m(()=>{var i;return((i=t.value)==null?void 0:i.additionalStyles)||""});return(i,c)=>{var a,u;return s(),o("div",{class:S(["ccb-field ccb-radio-img-field",{required:e(_),"ccb-field-disabled":e(t).disabled,[I.value]:!0,[`ccb-field-element-columns-${(a=e(t).styles)==null?void 0:a.elementColumns}`]:(u=e(t).styles)==null?void 0:u.elementColumns}])},[n("div",B,[e(_)?(s(),y(R,{key:0,text:e(C)},null,8,["text"])):r("",!0),n("div",N,[q(l(e(t).label),1),e(t).required?(s(),o("span",T,"*")):r("",!0),A(P)])]),e(p).getAppearanceDescriptionPosition==="before"?(s(),o("div",L,[e(t).description?(s(),o("div",$,l(e(t).description),1)):r("",!0)])):r("",!0),n("div",U,[(s(),y(O(g.value),{key:e(V),alias:e(t).alias,options:e(t).options,current:e(k),onUpdate:e(h),repeter:e(t).repeaterIdx,showValueInOption:e(t).showValueInOption,field:e(t)},null,40,["alias","options","current","onUpdate","repeter","showValueInOption","field"]))]),e(p).getAppearanceDescriptionPosition==="after"?(s(),o("div",z,[e(t).description?(s(),o("div",F,l(e(t).description),1)):r("",!0)])):r("",!0)],2)}}});export{Z as default};
//# sourceMappingURL=index-CV-pfq_c.js.map
