{"version":3,"file":"Switch-8nhus1Fa.cjs","sources":["../../../node_modules/.pnpm/@radix-ui+react-switch@1.3.7_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react_748e30eef68674a2f4a506b53a7a457d/node_modules/@radix-ui/react-switch/dist/index.mjs","../src/components/Switch/Switch.tsx"],"sourcesContent":["\"use client\";\nvar __defProp = Object.defineProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\n\n// src/switch.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useSize } from \"@radix-ui/react-use-size\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nvar SWITCH_NAME = \"Switch\";\nvar [createSwitchContext, createSwitchScope] = createContextScope(SWITCH_NAME);\nvar [SwitchProviderImpl, useSwitchContext] = createSwitchContext(SWITCH_NAME);\nfunction SwitchProvider(props) {\n  const {\n    __scopeSwitch,\n    checked: checkedProp,\n    children,\n    defaultChecked,\n    disabled,\n    form,\n    name,\n    onCheckedChange,\n    required,\n    value = \"on\",\n    // @ts-expect-error\n    internal_do_not_use_render\n  } = props;\n  const [checked, setChecked] = useControllableState({\n    prop: checkedProp,\n    defaultProp: defaultChecked ?? false,\n    onChange: onCheckedChange,\n    caller: SWITCH_NAME\n  });\n  const [control, setControl] = React.useState(null);\n  const [bubbleInput, setBubbleInput] = React.useState(null);\n  const hasConsumerStoppedPropagationRef = React.useRef(false);\n  const [userInteractionCount, onUserInteraction] = React.useReducer(\n    (count) => count + 1,\n    0\n  );\n  const isFormControl = control ? !!form || !!control.closest(\"form\") : (\n    // We set this to true by default so that events bubble to forms without JS (SSR)\n    true\n  );\n  const context = {\n    checked,\n    setChecked,\n    disabled,\n    control,\n    setControl,\n    name,\n    form,\n    value,\n    hasConsumerStoppedPropagationRef,\n    userInteractionCount,\n    onUserInteraction,\n    required,\n    defaultChecked,\n    isFormControl,\n    bubbleInput,\n    setBubbleInput\n  };\n  return /* @__PURE__ */ jsx(SwitchProviderImpl, { scope: __scopeSwitch, ...context, children: isFunction(internal_do_not_use_render) ? internal_do_not_use_render(context) : children });\n}\n__name(SwitchProvider, \"SwitchProvider\");\nvar TRIGGER_NAME = \"SwitchTrigger\";\nvar SwitchTrigger = /* @__PURE__ */ React.forwardRef(\n  /* @__PURE__ */ __name(function SwitchTrigger2({ __scopeSwitch, onClick, ...switchProps }, forwardedRef) {\n    const {\n      control,\n      form,\n      value,\n      disabled,\n      checked,\n      required,\n      setControl,\n      setChecked,\n      hasConsumerStoppedPropagationRef,\n      onUserInteraction,\n      isFormControl,\n      bubbleInput\n    } = useSwitchContext(TRIGGER_NAME, __scopeSwitch);\n    const composedRefs = useComposedRefs(forwardedRef, setControl);\n    const initialCheckedStateRef = React.useRef(checked);\n    React.useEffect(() => {\n      const associatedForm = form ? control?.ownerDocument.getElementById(form) : control?.form;\n      if (associatedForm instanceof HTMLFormElement) {\n        const reset = /* @__PURE__ */ __name(() => setChecked(initialCheckedStateRef.current), \"reset\");\n        associatedForm.addEventListener(\"reset\", reset);\n        return () => associatedForm.removeEventListener(\"reset\", reset);\n      }\n    }, [control, form, setChecked]);\n    return /* @__PURE__ */ jsx(\n      Primitive.button,\n      {\n        type: \"button\",\n        role: \"switch\",\n        \"aria-checked\": checked,\n        \"aria-required\": required,\n        \"data-state\": getState(checked),\n        \"data-disabled\": disabled ? \"\" : void 0,\n        disabled,\n        value,\n        ...switchProps,\n        ref: composedRefs,\n        onClick: composeEventHandlers(onClick, (event) => {\n          onUserInteraction();\n          setChecked((prevChecked) => !prevChecked);\n          if (bubbleInput && isFormControl) {\n            hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();\n            if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n          }\n        })\n      }\n    );\n  }, \"SwitchTrigger\")\n);\nvar Switch = /* @__PURE__ */ React.forwardRef(\n  // blank line to reduce diff noise\n  /* @__PURE__ */ __name(function Switch2(props, forwardedRef) {\n    const {\n      __scopeSwitch,\n      name,\n      checked,\n      defaultChecked,\n      required,\n      disabled,\n      value,\n      onCheckedChange,\n      form,\n      ...switchProps\n    } = props;\n    return /* @__PURE__ */ jsx(\n      SwitchProvider,\n      {\n        __scopeSwitch,\n        checked,\n        defaultChecked,\n        disabled,\n        required,\n        onCheckedChange,\n        name,\n        form,\n        value,\n        internal_do_not_use_render: ({ isFormControl }) => /* @__PURE__ */ jsxs(Fragment, { children: [\n          /* @__PURE__ */ jsx(\n            SwitchTrigger,\n            {\n              ...switchProps,\n              ref: forwardedRef,\n              __scopeSwitch\n            }\n          ),\n          isFormControl && /* @__PURE__ */ jsx(\n            SwitchBubbleInput,\n            {\n              __scopeSwitch\n            }\n          )\n        ] })\n      }\n    );\n  }, \"Switch\")\n);\nvar THUMB_NAME = \"SwitchThumb\";\nvar SwitchThumb = /* @__PURE__ */ React.forwardRef(\n  /* @__PURE__ */ __name(function SwitchThumb2(props, forwardedRef) {\n    const { __scopeSwitch, ...thumbProps } = props;\n    const context = useSwitchContext(THUMB_NAME, __scopeSwitch);\n    return /* @__PURE__ */ jsx(\n      Primitive.span,\n      {\n        \"data-state\": getState(context.checked),\n        \"data-disabled\": context.disabled ? \"\" : void 0,\n        ...thumbProps,\n        ref: forwardedRef\n      }\n    );\n  }, \"SwitchThumb\")\n);\nvar BUBBLE_INPUT_NAME = \"SwitchBubbleInput\";\nvar SwitchBubbleInput = /* @__PURE__ */ React.forwardRef(\n  // blank line to reduce diff noise\n  /* @__PURE__ */ __name(function SwitchBubbleInput2({ __scopeSwitch, onClick, ...props }, forwardedRef) {\n    const {\n      control,\n      hasConsumerStoppedPropagationRef,\n      userInteractionCount,\n      checked,\n      defaultChecked,\n      required,\n      disabled,\n      name,\n      value,\n      form,\n      bubbleInput,\n      setBubbleInput\n    } = useSwitchContext(BUBBLE_INPUT_NAME, __scopeSwitch);\n    const composedRefs = useComposedRefs(forwardedRef, setBubbleInput);\n    const controlSize = useSize(control);\n    const shouldStopClickPropagationRef = React.useRef(false);\n    const prevCheckedRef = React.useRef(checked);\n    const prevUserInteractionCountRef = React.useRef(userInteractionCount);\n    React.useEffect(() => {\n      const input = bubbleInput;\n      if (!input) return;\n      const inputProto = window.HTMLInputElement.prototype;\n      const descriptor = Object.getOwnPropertyDescriptor(\n        inputProto,\n        \"checked\"\n      );\n      const setChecked = descriptor.set;\n      const isUserInteraction = userInteractionCount !== prevUserInteractionCountRef.current;\n      prevUserInteractionCountRef.current = userInteractionCount;\n      const checkedChanged = prevCheckedRef.current !== checked;\n      prevCheckedRef.current = checked;\n      const bubbles = !(isUserInteraction && hasConsumerStoppedPropagationRef.current);\n      if (checkedChanged && setChecked) {\n        shouldStopClickPropagationRef.current = !isUserInteraction;\n        const event = new Event(\"click\", { bubbles });\n        setChecked.call(input, checked);\n        input.dispatchEvent(event);\n        shouldStopClickPropagationRef.current = false;\n      }\n    }, [bubbleInput, checked, hasConsumerStoppedPropagationRef, userInteractionCount]);\n    const defaultCheckedRef = React.useRef(checked);\n    return /* @__PURE__ */ jsx(\n      Primitive.input,\n      {\n        type: \"checkbox\",\n        \"aria-hidden\": true,\n        defaultChecked: defaultChecked ?? defaultCheckedRef.current,\n        required,\n        disabled,\n        name,\n        value,\n        form,\n        ...props,\n        tabIndex: -1,\n        ref: composedRefs,\n        onClick: composeEventHandlers(onClick, (event) => {\n          if (shouldStopClickPropagationRef.current) {\n            event.stopPropagation();\n          }\n        }),\n        style: {\n          ...props.style,\n          ...controlSize,\n          position: \"absolute\",\n          pointerEvents: \"none\",\n          opacity: 0,\n          margin: 0,\n          // We transform because the input is absolutely positioned but we have\n          // rendered it **after** the button. This pulls it back to sit on top\n          // of the button.\n          transform: \"translateX(-100%)\"\n        }\n      }\n    );\n  }, \"SwitchBubbleInput\")\n);\nfunction isFunction(value) {\n  return typeof value === \"function\";\n}\n__name(isFunction, \"isFunction\");\nfunction getState(checked) {\n  return checked ? \"checked\" : \"unchecked\";\n}\n__name(getState, \"getState\");\nexport {\n  Switch as Root,\n  Switch,\n  SwitchThumb,\n  SwitchThumb as Thumb,\n  createSwitchScope,\n  SwitchBubbleInput as unstable_BubbleInput,\n  SwitchProvider as unstable_Provider,\n  SwitchBubbleInput as unstable_SwitchBubbleInput,\n  SwitchProvider as unstable_SwitchProvider,\n  SwitchTrigger as unstable_SwitchTrigger,\n  SwitchTrigger as unstable_Trigger\n};\n//# sourceMappingURL=index.mjs.map\n","'use client';\nimport { forwardRef } from 'react';\nimport type { ButtonHTMLAttributes, ReactNode } from 'react';\nimport type { FormControlProps } from '../../utils/primitiveProps';\nimport * as RadixSwitch from '@radix-ui/react-switch';\nimport { cx } from '../../utils/cx';\nimport { withSx } from '../../utils/withSx';\nimport type { SxProp } from '../Layout/sx';\n\n// Props are declared explicitly (rather than deriving from Radix types) so the\n// published .d.ts stays self-contained — see utils/primitiveProps.ts.\ninterface SwitchRootProps\n  extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'onChange' | 'checked' | 'defaultChecked' | 'type'>,\n    FormControlProps {\n  /** Controlled checked state. */\n  checked?: boolean;\n  /** Uncontrolled initial checked state. */\n  defaultChecked?: boolean;\n  /** Fires when the checked state changes. */\n  onCheckedChange?: (checked: boolean) => void;\n  /** Value submitted with the form when checked. Default: `'on'`. */\n  value?: string;\n}\n\nexport interface SwitchProps extends Omit<SwitchRootProps, 'children'> {\n  children?: ReactNode;\n  /**\n   * One-off CSS, same as `Box`'s `sx`: each value may be a scalar or a\n   * responsive breakpoint map (`{ base, sm, md, lg, xl }`). Scalar-only sx\n   * merges into inline style; responsive sx injects a scoped class. Applied to\n   * the outer label wrapper, or the switch itself when there is no label.\n   */\n  sx?: SxProp;\n}\n\nexport const Switch = forwardRef<HTMLButtonElement, SwitchProps>(function Switch(\n  { className, style, sx, children, ...rest },\n  ref,\n) {\n  if (!children) {\n    // No label: the switch is the outermost element, so sx lands on it.\n    const { className: classes, style: mergedStyle, styleTag } = withSx(\n      sx, style, 'switch', className,\n    );\n    return (\n      <RadixSwitch.Root ref={ref} className={classes} style={mergedStyle} {...rest}>\n        {styleTag}\n        <RadixSwitch.Thumb className=\"switch-thumb\" />\n      </RadixSwitch.Root>\n    );\n  }\n  // With a label the wrapper is the outermost element, so sx lands on it.\n  const { className: wrapClasses, style: wrapStyle, styleTag } = withSx(sx, style, 'control');\n  return (\n    <label className={wrapClasses} style={wrapStyle}>\n      {styleTag}\n      <RadixSwitch.Root ref={ref} className={cx('switch', className)} {...rest}>\n        <RadixSwitch.Thumb className=\"switch-thumb\" />\n      </RadixSwitch.Root>\n      <span>{children}</span>\n    </label>\n  );\n});\n"],"names":["__defProp","__name","target","value","SWITCH_NAME","createSwitchContext","createSwitchScope","createContextScope","SwitchProviderImpl","useSwitchContext","SwitchProvider","props","__scopeSwitch","checkedProp","children","defaultChecked","disabled","form","name","onCheckedChange","required","internal_do_not_use_render","checked","setChecked","useControllableState","control","setControl","React","bubbleInput","setBubbleInput","hasConsumerStoppedPropagationRef","userInteractionCount","onUserInteraction","count","isFormControl","context","jsx","isFunction","TRIGGER_NAME","SwitchTrigger","onClick","switchProps","forwardedRef","composedRefs","useComposedRefs","initialCheckedStateRef","associatedForm","reset","Primitive","getState","composeEventHandlers","event","prevChecked","Switch","jsxs","Fragment","SwitchBubbleInput","THUMB_NAME","SwitchThumb","thumbProps","BUBBLE_INPUT_NAME","controlSize","useSize","shouldStopClickPropagationRef","prevCheckedRef","prevUserInteractionCountRef","input","inputProto","isUserInteraction","checkedChanged","bubbles","defaultCheckedRef","forwardRef","className","style","sx","rest","ref","classes","mergedStyle","styleTag","withSx","RadixSwitch.Root","RadixSwitch.Thumb","wrapClasses","wrapStyle","cx"],"mappings":"qfACA,IAAIA,EAAY,OAAO,eACnBC,EAAS,CAACC,EAAQC,IAAUH,EAAUE,EAAQ,OAAQ,CAAE,MAAA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