import{w as k,e as x}from"./vendor-vue-runtime-dom-B2rky8vu.js";import{u as C}from"./useMultiOptionChildShared-CiaLWBcL.js";import{d as V,e as B,f as l,i as a,F as M,r as w,x as n,B as O}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as T,u as e,i as y}from"./vendor-vue-reactivity-CheHbvBM.js";import{a as D,t as H}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"./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-box-toggle ccb-toggle-grid"},F=["onClick"],I={class:"ccb-toggle-wrapper"},N=["id","name","value","onClick"],R=["for"],W={class:"ccb-toggle-item__label-wrap"},$={class:"ccb-toggle-item__label"},z=["innerHTML"],E=V({__name:"BoxToggleWithDescription",props:{field:{},values:{}},emits:["update"],setup(g,{emit:f}){const b=f,d=g,{field:u}=T(d),m=B(()=>Math.random().toString(36).substring(2,15)),{optionValues:t,changeValue:h,getName:c,selectedOptions:v}=C(d,b),_=r=>{const s=t.value.indexOf(r);s===-1?t.value.push(r):t.value.splice(s,1),h()};return(r,s)=>(a(),l("div",S,[(a(!0),l(M,null,w(e(u).options,(o,i)=>(a(),l("label",{class:D(["ccb-toggle-item",{active:e(v).includes(o.optionValue),"ccb-option-disabled":e(u).disableOptions.includes(i)}]),key:i,onClick:k(p=>_(o.optionValue),["prevent"])},[n("div",I,[O((a(),l("input",{id:e(c)+"_"+i+"_"+m.value,type:"checkbox",name:e(c),"onUpdate:modelValue":s[0]||(s[0]=p=>y(t)?t.value=p:null),value:o.optionValue,onClick:p=>_(o.optionValue),key:i},null,8,N)),[[x,e(t)]]),n("label",{for:e(c)+"_"+i+"_"+m.value},null,8,R)]),n("div",W,[n("span",$,H(o.optionText),1),n("span",{class:"ccb-toggle-item__description",innerHTML:o.optionHint},null,8,z)])],10,F))),128))]))}}),te=L(E,[["__scopeId","data-v-d97e54d7"]]);export{te as default};
//# sourceMappingURL=BoxToggleWithDescription-D9rZFh9A.js.map
