"use client";
import { jsx as e } from "react/jsx-runtime";
import i from "react";
import { Root as a, Thumb as n } from "../../../../../node_modules/.pnpm/@radix-ui_react-switch@1.1.3_@types_react-dom@19.0.4_@types_react@19.0.10__@types_react@19.0._moyrweh32pybfkj2g2egstnieq/node_modules/@radix-ui/react-switch/dist/index.js";
import { classNames as t } from "../../utils/index.js";
const l = i.forwardRef(({ className: r, ...o }, s) => /* @__PURE__ */ e(
  a,
  {
    className: t(
      "focus-visible:outline-hidden relative inline-flex h-4 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-50  data-[state=checked]:bg-slate-600 data-[state=unchecked]:bg-slate-300",
      r
    ),
    ...o,
    ref: s,
    children: /* @__PURE__ */ e(
      n,
      {
        className: t(
          "pointer-events-none absolute left-0 inline-block size-5 transform rounded-full border border-slate-200 bg-white shadow ring-0 transition-transform duration-200 ease-in-out data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-[-3px]"
        )
      }
    )
  }
));
l.displayName = a.displayName;
export {
  l as Switch
};
//# sourceMappingURL=switch.js.map
