"use client"
import{b as c}from"./chunk-WAKFRGRJ.mjs";import{i as t}from"./chunk-NSW4D7UO.mjs";import*as i from"@radix-ui/react-switch";import{jsx as e}from"react/jsx-runtime";function b({fn:n,trackDimensions:l,thumbDimensions:d,thumbTranslate:o,checked:h=!0,loading:r=!1,disabled:a=!1,disabledTooltip:s}){return s?e(c,{content:s,children:e("div",{className:"radix-state-checked:bg-gray-300 relative inline-flex h-4 w-8 flex-shrink-0 cursor-not-allowed rounded-full border-2 border-transparent bg-gray-200",children:e("div",{className:t("h-3 w-3 transform rounded-full bg-white shadow-lg",`radix-state-checked:${o}`)})})}):e(i.Root,{checked:r?!1:h,name:"switch",...n&&{onCheckedChange:n},disabled:a||r,className:t("radix-state-checked:bg-blue-500 radix-state-unchecked:bg-gray-200 relative inline-flex h-4 w-8 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring focus-visible:ring-blue-500 focus-visible:ring-opacity-75",(a||r)&&"cursor-not-allowed",l),children:e(i.Thumb,{className:t(`radix-state-checked:${o}`,"radix-state-unchecked:translate-x-0","pointer-events-none h-3 w-3 translate-x-4 transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out",d,o)})})}export{b as a};
