import{e as i,aq as d,c as l,a as t,m as r,t as g,aj as m,A as u,ar as p,o as s,_ as f}from"./DpdQcRr7.js";const _={key:0,class:"toggle-label"},b={key:1,class:"toggle-label"},v=i({__name:"ToggleSwitch",props:p({label:{}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=d(e,"modelValue"),n=()=>{a.value=!a.value};return(c,o)=>(s(),l("label",{class:"toggle-switch",onClick:u(n,["prevent"])},[t("span",{class:r(["toggle-track",{"is-active":a.value}])},[...o[0]||(o[0]=[t("span",{class:"toggle-thumb"},null,-1)])],2),e.label?(s(),l("span",_,g(e.label),1)):(s(),l("span",b,[m(c.$slots,"default",{},void 0,!0)]))]))}}),k=f(v,[["__scopeId","data-v-fec36f45"]]);export{k as T};
