const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./widget-DZZgQDKu.css","./Hint-BAxc7GHP.css","./Default-CNTjmuju.css","./Box-CRQjBzZM.css","./BoxRadio-BU2fdHGM.css"])))=>i.map(i=>d[i]);
import{a as g,C as A,b,e as n,_ as l,m as o,g as s,p as d,q as r,f as v,u as e,L as E,D as _,r as R,I as q}from"./convert-case-to-camel-case.utils-DDUpNI96.js";import{u as I}from"./widget-BUAABBRb.js";import{u as P}from"./useSingleOptionFieldShared-DgCmtnlP.js";import{_ as S}from"./RequiredHint.vue_vue_type_style_index_0_lang-R4Bqx90z.js";import{_ as T}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./translationsStore-DBJu9sBR.js";const B={class:"ccb-field__label"},L={class:"ccb-field__title"},O={key:0,class:"ccb-field-required-mark"},N={key:0,class:"ccb-field__descriptions ccb-before"},w={key:0,class:"ccb-field__description"},U={class:"ccb-field__input-wrapper"},$={key:1,class:"ccb-field__descriptions ccb-after"},z={key:0,class:"ccb-field__description"},F=g({__name:"Radio",props:{field:{}},setup(y){const p=y,{field:t}=A(p),u=I(),{selectValue:h,fieldValue:k,isRequired:m,getKey:x,requiredWarningText:C}=P(p),D=b(()=>{var c,a;const i=((a=(c=t.value)==null?void 0:c.styles)==null?void 0:a.style)||"default";return i==="default"?n(()=>l(()=>import("./Default-B-jIDLdc.js"),__vite__mapDeps([0,1,2]),import.meta.url)):i==="box"?n(()=>l(()=>import("./Box-BqDPgYwx.js"),__vite__mapDeps([0,3]),import.meta.url)):i==="box-with-radio"?n(()=>l(()=>import("./BoxRadio-CxSf1v7C.js"),__vite__mapDeps([0,4]),import.meta.url)):""}),V=b(()=>{var i;return((i=t.value)==null?void 0:i.additionalStyles)||""});return(i,c)=>{var a,f;return s(),o("div",{class:q(["ccb-field ccb-radio-field",{required:e(m),"ccb-field-disabled":e(t).disabled,[V.value]:!0,[`ccb-field-element-columns-${(a=e(t).styles)==null?void 0:a.elementColumns}`]:(f=e(t).styles)==null?void 0:f.elementColumns}])},[d("div",B,[e(m)?(s(),v(S,{key:0,text:e(C)},null,8,["text"])):r("",!0),d("div",L,[E(_(e(t).label),1),e(t).required?(s(),o("span",O,"*")):r("",!0)])]),e(u).getAppearanceDescriptionPosition==="before"?(s(),o("div",N,[e(t).description?(s(),o("div",w,_(e(t).description),1)):r("",!0)])):r("",!0),d("div",U,[(s(),v(R(D.value),{key:e(x),alias:e(t).alias,options:e(t).options,current:e(k),onUpdate:e(h),repeater:e(t).repeaterIdx,field:e(t)},null,40,["alias","options","current","onUpdate","repeater","field"]))]),e(u).getAppearanceDescriptionPosition==="after"?(s(),o("div",$,[e(t).description?(s(),o("div",z,_(e(t).description),1)):r("",!0)])):r("",!0)],2)}}}),X=T(F,[["__scopeId","data-v-e2b24ef9"]]);export{X as default};
//# sourceMappingURL=index-xeqSXnGg.js.map
