import{u as O,h as w}from"./vendor-vue-runtime-dom-B2rky8vu.js";import{u as x}from"./useSingleOptionChildShared-C5mC6TrZ.js";import{u as D}from"./translationsStore-D6vLzgNA.js";import{u as I}from"./useAppearanceTypography-BBl5RU11.js";import{p as R}from"./placeholder-JM22f3fS.js";import{d as F,e as N,f as l,i as c,F as T,r as z,x as o,t as A,B as E}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{u as e,t as L,i as M}from"./vendor-vue-reactivity-CheHbvBM.js";import{a as P,t as m}from"./vendor-vue-shared-DrzsEcag.js";import{_ as U}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"./useAppearanceStore-IzenP-G4.js";import"./vendor-axios-xsH4HHeE.js";import"./vendor-vue3-toastify-DBGjcIyK.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 j={class:"ccb-default-radio-image ccb-radio-img-grid"},q=["onClick"],G={class:"ccb-radio-image__box"},H=["src","alt"],J={class:"ccb-radio-image__info"},K={class:"ccb-radio-image__title-box"},Q={class:"ccb-radio-image__label"},W={key:0,class:"ccb-radio-image__price"},X=["name","value","checked"],Y=F({__name:"DefaultStyle",props:{options:{},alias:{},current:{},repeater:{},showValueInOption:{type:Boolean},field:{}},emits:["update"],setup(u,{emit:_}){O(t=>({"2f1c51c4":e(f),"777c4940":e(g),"046d79cd":e(h)}));const{borderColor:f,formFieldsColor:h,accentColor:g}=I(),b=_,d=u,{options:v,field:p}=L(d),V=D(),C=N(()=>p.value.show_value_in_option),{optionValues:r,changeValue:k,getName:y,current:n}=x(d,b),S=t=>{var a;t&&((a=n==null?void 0:n.value)==null?void 0:a.optionValue)!==t.optionValue&&(r.value=t.optionValue,k())};return(t,a)=>(c(),l("div",j,[(c(!0),l(T,null,z(e(v),(s,i)=>(c(),l("div",{key:i,class:P(["ccb-radio-image",{selected:i===0,"ccb-option-disabled":e(p).disableOptions.includes(i)}]),onClick:()=>S(s)},[o("div",G,[o("img",{src:s.src||e(R),alt:"radio-image-field-"+i},null,8,H)]),o("div",J,[o("div",K,[o("span",Q,m(s.optionText),1),C.value?(c(),l("span",W,m(e(V).getTranslations.price||"Price")+": "+m(s.optionValue),1)):A("",!0)])]),o("label",null,[E(o("input",{"onUpdate:modelValue":a[0]||(a[0]=B=>M(r)?r.value=B:null),type:"radio",name:e(y),value:s.optionValue,checked:i===0},null,8,X),[[w,e(r)]])])],10,q))),128))]))}}),be=U(Y,[["__scopeId","data-v-7c6688b9"]]);export{be as default};
//# sourceMappingURL=DefaultStyle-BsYlcI9D.js.map
