import{e as B}from"./vendor-vue-runtime-dom-B2rky8vu.js";import{u as D}from"./useMultiOptionChildShared-CiaLWBcL.js";import{m as I}from"./fieldsStore-CQRN0FvQ.js";import{u as N}from"./translationsStore-D6vLzgNA.js";import{p as O}from"./placeholder-JM22f3fS.js";import{d as M,e as h,f as i,i as n,F as P,r as T,x as t,t as w,B as F}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as R,u as e,i as z}from"./vendor-vue-reactivity-CheHbvBM.js";import{a as E,t as d}from"./vendor-vue-shared-DrzsEcag.js";import{_ as L}from"./vendor-vue3-html2pdf-KR020wX8.js";import"./color-filter.utils-DukMf1cu.js";import"./appearanceStore-Cp-euDX2.js";import"./vendor-pinia-BSPefQhS.js";import"./settingsStore-8bwiLMEn.js";import"./convert-case-to-camel-case.utils-CK5dBN7n.js";import"./appStore-CFAkQG2b.js";import"./vendor-moment-Cv92BTSA.js";import"./vendor-bootstrap-CCU-90um.js";import"./vendor-jspdf-UFhKzYHA.js";import"./vendor-php-date-formatter-DSpPwBF8.js";import"./callbackStore-BhxBUA6V.js";import"./vendor-html2pdf.js-B-tok4Ns.js";import"./vendor-html2canvas-BfYXEYrK.js";const U={class:"ccb-default-checkbox-image ccb-image-checkbox-grid"},j=["for"],q={class:"ccb-checkbox-image__box"},A=["src"],G={class:"ccb-checkbox-image__info"},H={class:"ccb-checkbox-image__title-box"},J={class:"ccb-checkbox-image__label"},K={key:0,class:"ccb-checkbox-image__price"},Q={class:"ccb-checkbox-image__item"},W=["id","name","value"],X=["id"],Y=M({__name:"Default",props:{field:{},values:{}},emits:["update"],setup(g,{emit:v}){const p=I(),x=N(),k=v,_=g,{field:o}=R(_),C=h(()=>m=>o.value.useCurrency||o.value.fieldCurrency?p.formatCurrency(m,p.getCurrencyOptions(o.value)):m),b=h(()=>Math.random().toString(36).substring(2,15)),{optionValues:l,changeValue:f,getName:a,getPriceValue:y,selectedOptions:V,showPrice:S}=D(_,k);return(m,c)=>(n(),i("div",U,[(n(!0),i(P,null,T(e(o).options,(s,r)=>(n(),i("label",{for:e(a)+"_"+r+"_"+b.value,class:E(["ccb-checkbox-image",{selected:e(V).includes(s.optionValue),"ccb-option-disabled":e(o).disableOptions.includes(r)}])},[t("div",q,[t("img",{src:s.src||e(O),alt:"field-img"},null,8,A)]),t("div",G,[t("div",H,[t("span",J,d(s.optionText),1),e(S)?(n(),i("span",K,d(e(x).getTranslations.price)+": "+d(C.value(Number(e(y)(s)))),1)):w("",!0)])]),t("div",Q,[F(t("input",{type:"checkbox",id:e(a)+"_"+r+"_"+b.value,name:e(a),value:s.optionValue,"onUpdate:modelValue":c[0]||(c[0]=u=>z(l)?l.value=u:null),onChange:c[1]||(c[1]=(...u)=>e(f)&&e(f)(...u))},null,40,W),[[B,e(l)]]),t("label",{id:e(a)+"_"+r},null,8,X)])],10,j))),256))]))}}),xe=L(Y,[["__scopeId","data-v-4ad1bba0"]]);export{xe as default};
//# sourceMappingURL=Default-C4KnAzJN.js.map
