import{h as S}from"./vendor-vue-runtime-dom-B2rky8vu.js";import{u as k}from"./useSingleOptionChildShared-C5mC6TrZ.js";import{u as B}from"./translationsStore-D6vLzgNA.js";import{p as I}from"./placeholder-JM22f3fS.js";import{d as O,f as l,i as n,F as x,r as D,x as e,t as R,B as w}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as N,u as o,i as T}from"./vendor-vue-reactivity-CheHbvBM.js";import{a as F,t as d}from"./vendor-vue-shared-DrzsEcag.js";import{_ as z}from"./vendor-vue3-html2pdf-KR020wX8.js";import"./appearanceStore-Cp-euDX2.js";import"./vendor-pinia-BSPefQhS.js";import"./color-filter.utils-DukMf1cu.js";import"./convert-case-to-camel-case.utils-CK5dBN7n.js";import"./vendor-html2pdf.js-B-tok4Ns.js";import"./vendor-jspdf-UFhKzYHA.js";import"./vendor-bootstrap-CCU-90um.js";import"./vendor-html2canvas-BfYXEYrK.js";const E={class:"ccb-default-radio-image ccb-radio-img-grid"},L=["onClick"],M={class:"ccb-radio-image__box"},U=["src","alt"],j={class:"ccb-radio-image__info"},q={class:"ccb-radio-image__title-box"},A={class:"ccb-radio-image__label"},G={key:0,class:"ccb-radio-image__price"},H=["name","value"],J=O({__name:"DefaultStyle",props:{options:{},alias:{},current:{},repeater:{},showValueInOption:{type:Boolean},field:{}},emits:["update"],setup(p,{emit:u}){const _=u,m=p,{options:f,field:g}=N(m),b=B(),{optionValues:i,changeValue:h,getName:v,current:c,getCurrentIndex:V}=k(m,_),C=t=>{var a;t&&((a=c==null?void 0:c.value)==null?void 0:a.optionValue)!==t.optionValue&&(i.value=t.optionValue,h())};return(t,a)=>(n(),l("div",E,[(n(!0),l(x,null,D(o(f),(s,r)=>(n(),l("div",{key:r,class:F(["ccb-radio-image",{selected:r===o(V),"ccb-option-disabled":o(g).disableOptions.includes(r)}]),onClick:()=>C(s)},[e("div",M,[e("img",{src:s.src||o(I),alt:"radio-image-field-"+r},null,8,U)]),e("div",j,[e("div",q,[e("span",A,d(s.optionText),1),t.showValueInOption?(n(),l("span",G,d(o(b).getTranslations.price)+": "+d(s.optionConverted),1)):R("",!0)])]),e("label",null,[w(e("input",{"onUpdate:modelValue":a[0]||(a[0]=y=>T(i)?i.value=y:null),type:"radio",name:o(v),value:s.optionValue},null,8,H),[[S,o(i)]])])],10,L))),128))]))}}),ne=z(J,[["__scopeId","data-v-2515bce9"]]);export{ne as default};
//# sourceMappingURL=DefaultStyle-CraMBgYo.js.map
