import{M as s,H as w,o as d,c as p,K as i,$ as u,a as r,I as b}from"./index-Bb2UEb_P.js";const f={class:"tw-inline-flex tw-items-center tw-cursor-pointer tw-select-none tw-bg-transparent tw-p-0"},g=s({__name:"InputToggle",props:{modelValue:{type:Boolean,default:!1},modelModifiers:{}},emits:b(["change"],["update:modelValue"]),setup(l,{emit:a}){const t=w(l,"modelValue"),n=a;return(c,e)=>(d(),p("label",f,[i(r("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>t.value=o),type:"checkbox",class:"tw-peer tw-sr-only",onChange:e[1]||(e[1]=o=>n("change",t.value))},null,544),[[u,t.value]]),e[2]||(e[2]=r("span",{class:"tw-relative tw-w-8 tw-h-[19px] tw-rounded-full tw-border tw-border-gray-200 tw-bg-gray-200 tw-transition-all tw-duration-300 before:tw-content-[''] before:tw-absolute before:tw-w-[14px] before:tw-h-[14px] before:tw-top-0 before:tw-bottom-0 before:tw-my-auto before:tw-left-[2px] before:tw-rounded-full before:tw-bg-white before:tw-transition-all before:tw-duration-300 peer-checked:tw-border-sky-400 peer-checked:tw-bg-sky-400 peer-checked:before:tw-left-[15px] peer-disabled:tw-opacity-50 peer-disabled:tw-cursor-default"},null,-1))]))}});export{g as _};
