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