import{h as a,j as e,g as i}from"./index-B48HCCvn.js";const c=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],d=a("circle-check",c);function u({checked:n,onCheckedChange:t,disabled:o,className:s,...r}){return e.jsx("button",{type:"button",role:"switch","aria-checked":n,"data-slot":"switch",disabled:o,onClick:()=>t(!n),className:i("relative inline-flex h-5 w-9 shrink-0 items-center rounded-full transition-colors outline-none","focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-offset-1","disabled:cursor-not-allowed disabled:opacity-50",n?"bg-primary":"bg-border",s),...r,children:e.jsx("span",{className:i("pointer-events-none inline-block h-3.5 w-3.5 rounded-full bg-white shadow-sm transition-transform motion-reduce:transition-none",n?"translate-x-[18px]":"translate-x-[3px]")})})}export{d as C,u as S};
