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