import{a as S,C as k,m as l,g as r,F as D,H as I,I as O,u as a,p as e,q as B,D as d,M as R,ac as w,Z as x}from"./convert-case-to-camel-case.utils-DDUpNI96.js";import{u as N}from"./useSingleOptionChildShared-BHJplqM1.js";import{u as T}from"./translationsStore-DBJu9sBR.js";import{_ as F}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./widget-BUAABBRb.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./color-filter.utils-DukMf1cu.js";const M={class:"ccb-default-radio-image ccb-radio-img-grid"},q=["onClick"],z={class:"ccb-radio-image__box"},E=["src","alt"],H={class:"ccb-radio-image__info"},L={class:"ccb-radio-image__title-box"},U={class:"ccb-radio-image__label"},Z={key:0,class:"ccb-radio-image__price"},j=["name","value"],A=S({__name:"DefaultStyle",props:{options:{},alias:{},current:{},repeater:{},showValueInOption:{type:Boolean},field:{}},emits:["update"],setup(u,{emit:p}){const _=p,m=u,{options:f,field:g}=k(m),b=T(),{optionValues:i,changeValue:v,getName:h,current:c,getCurrentIndex:V}=N(m,_),C=s=>{var o;s&&((o=c==null?void 0:c.value)==null?void 0:o.optionValue)!==s.optionValue&&(i.value=s.optionValue,v())};return(s,o)=>(r(),l("div",M,[(r(!0),l(D,null,I(a(f),(t,n)=>(r(),l("div",{key:n,class:O(["ccb-radio-image",{selected:n===a(V),"ccb-option-disabled":a(g).disableOptions.includes(n)}]),onClick:()=>C(t)},[e("div",z,[e("img",{src:t.src,alt:"radio-image-field-"+n},null,8,E)]),e("div",H,[e("div",L,[e("span",U,d(t.optionText),1),s.showValueInOption?(r(),l("span",Z,d(a(b).getTranslations.price)+": "+d(t.optionConverted),1)):B("",!0)])]),e("label",null,[R(e("input",{"onUpdate:modelValue":o[0]||(o[0]=y=>x(i)?i.value=y:null),type:"radio",name:a(h),value:t.optionValue},null,8,j),[[w,a(i)]])])],10,q))),128))]))}}),$=F(A,[["__scopeId","data-v-bae8b131"]]);export{$ as default};
//# sourceMappingURL=DefaultStyle-DosxRYbZ.js.map
