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