import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{a as t,o as n}from"./vendor-motion-COLzAB1Q.js";import{n as r,r as i}from"./vendor-ui-Cuqtliu0.js";import{p as a}from"./index-DLFWvoW-.js";var o=e(n(),1),s=t(),c=o.forwardRef(({className:e,...t},n)=>(0,s.jsx)(r,{className:a(`peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50`,e),...t,ref:n,children:(0,s.jsx)(i,{className:a(`pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0`)})}));c.displayName=r.displayName;export{c as t};