import{a as S,C as I,b as g,m as i,g as r,F as M,H as N,I as O,u as e,p as s,q as B,D as _,M as P,$ as T,Z as w}from"./convert-case-to-camel-case.utils-DDUpNI96.js";import{u as F}from"./useMultiOptionChildShared-DVKrDZdt.js";import{l as R}from"./widget-BUAABBRb.js";import{u as q}from"./translationsStore-DBJu9sBR.js";import{_ as z}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./color-filter.utils-DukMf1cu.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";const E={class:"ccb-default-checkbox-image ccb-image-checkbox-grid"},H=["for"],L={class:"ccb-checkbox-image__box"},U=["src"],Z={class:"ccb-checkbox-image__info"},$={class:"ccb-checkbox-image__title-box"},j={class:"ccb-checkbox-image__label"},A={key:0,class:"ccb-checkbox-image__price"},G={class:"ccb-checkbox-image__item"},J=["id","name","value"],K=["id"],Q=S({__name:"Default",props:{field:{},values:{}},emits:["update"],setup(f,{emit:v}){const m=R(),k=q(),x=v,p=f,{field:t}=I(p),C=g(()=>u=>t.value.useCurrency||t.value.fieldCurrency?m.formatCurrency(u,m.getCurrencyOptions(t.value)):u),b=g(()=>Math.random().toString(36).substring(2,15)),{optionValues:l,changeValue:h,getName:a,getPriceValue:y,selectedOptions:V,showPrice:D}=F(p,x);return(u,c)=>(r(),i("div",E,[(r(!0),i(M,null,N(e(t).options,(o,n)=>(r(),i("label",{for:e(a)+"_"+n+"_"+b.value,class:O(["ccb-checkbox-image",{selected:e(V).includes(o.optionValue),"ccb-option-disabled":e(t).disableOptions.includes(n)}])},[s("div",L,[s("img",{src:o.src,alt:"field-img"},null,8,U)]),s("div",Z,[s("div",$,[s("span",j,_(o.optionText),1),e(D)?(r(),i("span",A,_(e(k).getTranslations.price)+": "+_(C.value(Number(e(y)(o)))),1)):B("",!0)])]),s("div",G,[P(s("input",{type:"checkbox",id:e(a)+"_"+n+"_"+b.value,name:e(a),value:o.optionValue,"onUpdate:modelValue":c[0]||(c[0]=d=>w(l)?l.value=d:null),onChange:c[1]||(c[1]=(...d)=>e(h)&&e(h)(...d))},null,40,J),[[T,e(l)]]),s("label",{id:e(a)+"_"+n},null,8,K)])],10,H))),256))]))}}),ce=z(Q,[["__scopeId","data-v-dda29478"]]);export{ce as default};
//# sourceMappingURL=Default-BzvB37eQ.js.map
