import{h as C}from"./vendor-vue-runtime-dom-B2rky8vu.js";import{u as I}from"./useSingleOptionChildShared-C5mC6TrZ.js";import{p as k}from"./placeholder-JM22f3fS.js";import{d as x,f as n,i as c,F as S,r as B,x as e,B as R}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as O,u as o,i as w}from"./vendor-vue-reactivity-CheHbvBM.js";import{a as z,b as D,t as F}from"./vendor-vue-shared-DrzsEcag.js";import{_ as N}from"./vendor-vue3-html2pdf-KR020wX8.js";import"./appearanceStore-Cp-euDX2.js";import"./vendor-pinia-BSPefQhS.js";import"./color-filter.utils-DukMf1cu.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 W={class:"ccb-default-image-radio-withicon ccb-radio-img-grid"},E=["onClick"],L={class:"ccb-radio-image__box"},M=["src","alt"],T={class:"ccb-radio-image__info"},U={class:"ccb-radio-image__title-box"},j={class:"ccb-radio-image__label"},q=["name","value"],A=x({__name:"WithIcon",props:{options:{},alias:{},current:{},repeater:{},field:{}},emits:["update"],setup(m,{emit:p}){const _=p,d=m,{options:u,field:f}=O(d),{optionValues:a,changeValue:g,getName:h,current:r,getCurrentIndex:b,getImageStyles:v}=I(d,_),V=i=>{var t;i&&((t=r==null?void 0:r.value)==null?void 0:t.optionValue)!==i.optionValue&&(a.value=i.optionValue,g())};return(i,t)=>(c(),n("div",W,[(c(!0),n(S,null,B(o(u),(s,l)=>(c(),n("div",{key:l,class:z(["ccb-radio-image",{selected:l===o(b),"ccb-option-disabled":o(f).disableOptions.includes(l)}]),onClick:()=>V(s)},[e("div",L,[e("img",{src:s.icon||o(k),alt:"radio-image-field-"+l,style:D(o(v))},null,12,M)]),e("div",T,[e("div",U,[e("span",j,F(s.optionText),1)])]),e("label",null,[R(e("input",{"onUpdate:modelValue":t[0]||(t[0]=y=>w(a)?a.value=y:null),type:"radio",name:o(h),value:s.optionValue},null,8,q),[[C,o(a)]])])],10,E))),128))]))}}),ie=N(A,[["__scopeId","data-v-dee623f1"]]);export{ie as default};
//# sourceMappingURL=WithIcon-DOqL-1tK.js.map
