import{u as V}from"./vendor-vue-runtime-dom-B2rky8vu.js";import{u as y}from"./useAppearanceTypography-BBl5RU11.js";import{p as I}from"./placeholder-JM22f3fS.js";import{d as O,e as i,f as r,i as l,F as d,r as B,t as p,x as e}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{u as o,t as D}from"./vendor-vue-reactivity-CheHbvBM.js";import{a as F,t as m}from"./vendor-vue-shared-DrzsEcag.js";import{_ as N}from"./vendor-vue3-html2pdf-KR020wX8.js";import"./useAppearanceStore-IzenP-G4.js";import"./vendor-pinia-BSPefQhS.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 S={class:"ccb-default-checkbox-image ccb-image-checkbox-grid"},w=["for"],T={class:"ccb-checkbox-image__box"},z=["src"],A={class:"ccb-checkbox-image__info"},E={class:"ccb-checkbox-image__title-box"},L={class:"ccb-checkbox-image__label"},M={key:0,class:"ccb-checkbox-image__price"},P={class:"ccb-checkbox-image__item"},R=["id","name","value","checked"],j=["id"],q=O({__name:"Default",props:{field:{}},setup(b){V(u=>({"553ada94":o(g),"2b95cb17":o(h),"8abf858e":o(v),"6c14c946":o(f)}));const{borderColor:h,formFieldsColor:f,textColor:g,accentColor:v}=y(),k=b,{field:a}=D(k),_=i(()=>Math.random().toString(36).substring(2,15)),n=i(()=>a.value.alias||""),x=i(()=>(a.value.selectedOption||[]).map(t=>typeof t=="string"?t:String((t==null?void 0:t.optionValue)||""))),C=i(()=>a.value.show_value_in_option||!1);return(u,t)=>(l(),r("div",S,[(l(!0),r(d,null,B(o(a).options,(c,s)=>(l(),r(d,null,[c.optionText?(l(),r("label",{key:0,for:n.value+"_"+s+"_"+_.value,class:F(["ccb-checkbox-image",{selected:x.value.includes(c.optionValue),"ccb-option-disabled":o(a).disableOptions.includes(s),"ccb-option-checked":s===0}])},[e("div",T,[e("img",{src:c.src||o(I),alt:"field-img"},null,8,z)]),e("div",A,[e("div",E,[e("span",L,m(c.optionText),1),C.value?(l(),r("span",M," Price: "+m(c.optionValue),1)):p("",!0)])]),e("div",P,[e("input",{type:"checkbox",id:n.value+"_"+s+"_"+_.value,name:n.value,value:c.optionValue,checked:s===0},null,8,R),e("label",{id:n.value+"_"+s},null,8,j)])],10,w)):p("",!0)],64))),256))]))}}),se=N(q,[["__scopeId","data-v-1d1e7967"]]);export{se as default};
//# sourceMappingURL=Default-CMQIeVyB.js.map
