{"ast":null,"code":"import $8Wolv$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport { forwardRef as $8Wolv$forwardRef, createElement as $8Wolv$createElement, useRef as $8Wolv$useRef, useEffect as $8Wolv$useEffect, useState as $8Wolv$useState } from \"react\";\nimport { composeEventHandlers as $8Wolv$composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs as $8Wolv$useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope as $8Wolv$createContextScope } from \"@radix-ui/react-context\";\nimport { Primitive as $8Wolv$Primitive } from \"@radix-ui/react-primitive\";\nimport { createRovingFocusGroupScope as $8Wolv$createRovingFocusGroupScope, Root as $8Wolv$Root, Item as $8Wolv$Item } from \"@radix-ui/react-roving-focus\";\nimport { useControllableState as $8Wolv$useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useDirection as $8Wolv$useDirection } from \"@radix-ui/react-direction\";\nimport { useSize as $8Wolv$useSize } from \"@radix-ui/react-use-size\";\nimport { usePrevious as $8Wolv$usePrevious } from \"@radix-ui/react-use-previous\";\nimport { Presence as $8Wolv$Presence } from \"@radix-ui/react-presence\";\n\n/* -------------------------------------------------------------------------------------------------\n * Radio\n * -----------------------------------------------------------------------------------------------*/\nconst $ce77a8961b41be9e$var$RADIO_NAME = 'Radio';\nconst [$ce77a8961b41be9e$var$createRadioContext, $ce77a8961b41be9e$export$67d2296460f1b002] = $8Wolv$createContextScope($ce77a8961b41be9e$var$RADIO_NAME);\nconst [$ce77a8961b41be9e$var$RadioProvider, $ce77a8961b41be9e$var$useRadioContext] = $ce77a8961b41be9e$var$createRadioContext($ce77a8961b41be9e$var$RADIO_NAME);\nconst $ce77a8961b41be9e$export$d7b12c4107be0d61 = /*#__PURE__*/$8Wolv$forwardRef((props, forwardedRef) => {\n  const {\n    __scopeRadio: __scopeRadio,\n    name: name,\n    checked = false,\n    required: required,\n    disabled: disabled,\n    value = 'on',\n    onCheck: onCheck,\n    ...radioProps\n  } = props;\n  const [button, setButton] = $8Wolv$useState(null);\n  const composedRefs = $8Wolv$useComposedRefs(forwardedRef, node => setButton(node));\n  const hasConsumerStoppedPropagationRef = $8Wolv$useRef(false); // We set this to true by default so that events bubble to forms without JS (SSR)\n  const isFormControl = button ? Boolean(button.closest('form')) : true;\n  return /*#__PURE__*/$8Wolv$createElement($ce77a8961b41be9e$var$RadioProvider, {\n    scope: __scopeRadio,\n    checked: checked,\n    disabled: disabled\n  }, /*#__PURE__*/$8Wolv$createElement($8Wolv$Primitive.button, $8Wolv$babelruntimehelpersesmextends({\n    type: \"button\",\n    role: \"radio\",\n    \"aria-checked\": checked,\n    \"data-state\": $ce77a8961b41be9e$var$getState(checked),\n    \"data-disabled\": disabled ? '' : undefined,\n    disabled: disabled,\n    value: value\n  }, radioProps, {\n    ref: composedRefs,\n    onClick: $8Wolv$composeEventHandlers(props.onClick, event => {\n      // radios cannot be unchecked so we only communicate a checked state\n      if (!checked) onCheck === null || onCheck === void 0 || onCheck();\n      if (isFormControl) {\n        hasConsumerStoppedPropagationRef.current = event.isPropagationStopped(); // if radio is in a form, stop propagation from the button so that we only propagate\n        // one click event (from the input). We propagate changes from an input so that native\n        // form validation works and form events reflect radio updates.\n        if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n      }\n    })\n  })), isFormControl && /*#__PURE__*/$8Wolv$createElement($ce77a8961b41be9e$var$BubbleInput, {\n    control: button,\n    bubbles: !hasConsumerStoppedPropagationRef.current,\n    name: name,\n    value: value,\n    checked: checked,\n    required: required,\n    disabled: disabled // We transform because the input is absolutely positioned but we have\n    ,\n\n    style: {\n      transform: 'translateX(-100%)'\n    }\n  }));\n});\n/*#__PURE__*/\nObject.assign($ce77a8961b41be9e$export$d7b12c4107be0d61, {\n  displayName: $ce77a8961b41be9e$var$RADIO_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * RadioIndicator\n * -----------------------------------------------------------------------------------------------*/\nconst $ce77a8961b41be9e$var$INDICATOR_NAME = 'RadioIndicator';\nconst $ce77a8961b41be9e$export$d35a9ffa9a04f9e7 = /*#__PURE__*/$8Wolv$forwardRef((props, forwardedRef) => {\n  const {\n    __scopeRadio: __scopeRadio,\n    forceMount: forceMount,\n    ...indicatorProps\n  } = props;\n  const context = $ce77a8961b41be9e$var$useRadioContext($ce77a8961b41be9e$var$INDICATOR_NAME, __scopeRadio);\n  return /*#__PURE__*/$8Wolv$createElement($8Wolv$Presence, {\n    present: forceMount || context.checked\n  }, /*#__PURE__*/$8Wolv$createElement($8Wolv$Primitive.span, $8Wolv$babelruntimehelpersesmextends({\n    \"data-state\": $ce77a8961b41be9e$var$getState(context.checked),\n    \"data-disabled\": context.disabled ? '' : undefined\n  }, indicatorProps, {\n    ref: forwardedRef\n  })));\n});\n/*#__PURE__*/\nObject.assign($ce77a8961b41be9e$export$d35a9ffa9a04f9e7, {\n  displayName: $ce77a8961b41be9e$var$INDICATOR_NAME\n});\n/* ---------------------------------------------------------------------------------------------- */\nconst $ce77a8961b41be9e$var$BubbleInput = props => {\n  const {\n    control: control,\n    checked: checked,\n    bubbles = true,\n    ...inputProps\n  } = props;\n  const ref = $8Wolv$useRef(null);\n  const prevChecked = $8Wolv$usePrevious(checked);\n  const controlSize = $8Wolv$useSize(control); // Bubble checked change to parents (e.g form change event)\n  $8Wolv$useEffect(() => {\n    const input = ref.current;\n    const inputProto = window.HTMLInputElement.prototype;\n    const descriptor = Object.getOwnPropertyDescriptor(inputProto, 'checked');\n    const setChecked = descriptor.set;\n    if (prevChecked !== checked && setChecked) {\n      const event = new Event('click', {\n        bubbles: bubbles\n      });\n      setChecked.call(input, checked);\n      input.dispatchEvent(event);\n    }\n  }, [prevChecked, checked, bubbles]);\n  return /*#__PURE__*/$8Wolv$createElement(\"input\", $8Wolv$babelruntimehelpersesmextends({\n    type: \"radio\",\n    \"aria-hidden\": true,\n    defaultChecked: checked\n  }, inputProps, {\n    tabIndex: -1,\n    ref: ref,\n    style: {\n      ...props.style,\n      ...controlSize,\n      position: 'absolute',\n      pointerEvents: 'none',\n      opacity: 0,\n      margin: 0\n    }\n  }));\n};\nfunction $ce77a8961b41be9e$var$getState(checked) {\n  return checked ? 'checked' : 'unchecked';\n}\nconst $f99a8c78507165f7$var$ARROW_KEYS = ['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight'];\n/* -------------------------------------------------------------------------------------------------\n * RadioGroup\n * -----------------------------------------------------------------------------------------------*/\nconst $f99a8c78507165f7$var$RADIO_GROUP_NAME = 'RadioGroup';\nconst [$f99a8c78507165f7$var$createRadioGroupContext, $f99a8c78507165f7$export$c547093f11b76da2] = $8Wolv$createContextScope($f99a8c78507165f7$var$RADIO_GROUP_NAME, [$8Wolv$createRovingFocusGroupScope, $ce77a8961b41be9e$export$67d2296460f1b002]);\nconst $f99a8c78507165f7$var$useRovingFocusGroupScope = $8Wolv$createRovingFocusGroupScope();\nconst $f99a8c78507165f7$var$useRadioScope = $ce77a8961b41be9e$export$67d2296460f1b002();\nconst [$f99a8c78507165f7$var$RadioGroupProvider, $f99a8c78507165f7$var$useRadioGroupContext] = $f99a8c78507165f7$var$createRadioGroupContext($f99a8c78507165f7$var$RADIO_GROUP_NAME);\nconst $f99a8c78507165f7$export$a98f0dcb43a68a25 = /*#__PURE__*/$8Wolv$forwardRef((props, forwardedRef) => {\n  const {\n    __scopeRadioGroup: __scopeRadioGroup,\n    name: name,\n    defaultValue: defaultValue,\n    value: valueProp,\n    required = false,\n    disabled = false,\n    orientation: orientation,\n    dir: dir,\n    loop = true,\n    onValueChange: onValueChange,\n    ...groupProps\n  } = props;\n  const rovingFocusGroupScope = $f99a8c78507165f7$var$useRovingFocusGroupScope(__scopeRadioGroup);\n  const direction = $8Wolv$useDirection(dir);\n  const [value, setValue] = $8Wolv$useControllableState({\n    prop: valueProp,\n    defaultProp: defaultValue,\n    onChange: onValueChange\n  });\n  return /*#__PURE__*/$8Wolv$createElement($f99a8c78507165f7$var$RadioGroupProvider, {\n    scope: __scopeRadioGroup,\n    name: name,\n    required: required,\n    disabled: disabled,\n    value: value,\n    onValueChange: setValue\n  }, /*#__PURE__*/$8Wolv$createElement($8Wolv$Root, $8Wolv$babelruntimehelpersesmextends({\n    asChild: true\n  }, rovingFocusGroupScope, {\n    orientation: orientation,\n    dir: direction,\n    loop: loop\n  }), /*#__PURE__*/$8Wolv$createElement($8Wolv$Primitive.div, $8Wolv$babelruntimehelpersesmextends({\n    role: \"radiogroup\",\n    \"aria-required\": required,\n    \"aria-orientation\": orientation,\n    \"data-disabled\": disabled ? '' : undefined,\n    dir: direction\n  }, groupProps, {\n    ref: forwardedRef\n  }))));\n});\n/*#__PURE__*/\nObject.assign($f99a8c78507165f7$export$a98f0dcb43a68a25, {\n  displayName: $f99a8c78507165f7$var$RADIO_GROUP_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * RadioGroupItem\n * -----------------------------------------------------------------------------------------------*/\nconst $f99a8c78507165f7$var$ITEM_NAME = 'RadioGroupItem';\nconst $f99a8c78507165f7$export$9f866c100ef519e4 = /*#__PURE__*/$8Wolv$forwardRef((props, forwardedRef) => {\n  const {\n    __scopeRadioGroup: __scopeRadioGroup,\n    disabled: disabled,\n    ...itemProps\n  } = props;\n  const context = $f99a8c78507165f7$var$useRadioGroupContext($f99a8c78507165f7$var$ITEM_NAME, __scopeRadioGroup);\n  const isDisabled = context.disabled || disabled;\n  const rovingFocusGroupScope = $f99a8c78507165f7$var$useRovingFocusGroupScope(__scopeRadioGroup);\n  const radioScope = $f99a8c78507165f7$var$useRadioScope(__scopeRadioGroup);\n  const ref = $8Wolv$useRef(null);\n  const composedRefs = $8Wolv$useComposedRefs(forwardedRef, ref);\n  const checked = context.value === itemProps.value;\n  const isArrowKeyPressedRef = $8Wolv$useRef(false);\n  $8Wolv$useEffect(() => {\n    const handleKeyDown = event => {\n      if ($f99a8c78507165f7$var$ARROW_KEYS.includes(event.key)) isArrowKeyPressedRef.current = true;\n    };\n    const handleKeyUp = () => isArrowKeyPressedRef.current = false;\n    document.addEventListener('keydown', handleKeyDown);\n    document.addEventListener('keyup', handleKeyUp);\n    return () => {\n      document.removeEventListener('keydown', handleKeyDown);\n      document.removeEventListener('keyup', handleKeyUp);\n    };\n  }, []);\n  return /*#__PURE__*/$8Wolv$createElement($8Wolv$Item, $8Wolv$babelruntimehelpersesmextends({\n    asChild: true\n  }, rovingFocusGroupScope, {\n    focusable: !isDisabled,\n    active: checked\n  }), /*#__PURE__*/$8Wolv$createElement($ce77a8961b41be9e$export$d7b12c4107be0d61, $8Wolv$babelruntimehelpersesmextends({\n    disabled: isDisabled,\n    required: context.required,\n    checked: checked\n  }, radioScope, itemProps, {\n    name: context.name,\n    ref: composedRefs,\n    onCheck: () => context.onValueChange(itemProps.value),\n    onKeyDown: $8Wolv$composeEventHandlers(event => {\n      // According to WAI ARIA, radio groups don't activate items on enter keypress\n      if (event.key === 'Enter') event.preventDefault();\n    }),\n    onFocus: $8Wolv$composeEventHandlers(itemProps.onFocus, () => {\n      var _ref$current;\n      /**\n      * Our `RovingFocusGroup` will focus the radio when navigating with arrow keys\n      * and we need to \"check\" it in that case. We click it to \"check\" it (instead\n      * of updating `context.value`) so that the radio change event fires.\n      */\n      if (isArrowKeyPressedRef.current) (_ref$current = ref.current) === null || _ref$current === void 0 || _ref$current.click();\n    })\n  })));\n});\n/*#__PURE__*/\nObject.assign($f99a8c78507165f7$export$9f866c100ef519e4, {\n  displayName: $f99a8c78507165f7$var$ITEM_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * RadioGroupIndicator\n * -----------------------------------------------------------------------------------------------*/\nconst $f99a8c78507165f7$var$INDICATOR_NAME = 'RadioGroupIndicator';\nconst $f99a8c78507165f7$export$5fb54c671a65c88 = /*#__PURE__*/$8Wolv$forwardRef((props, forwardedRef) => {\n  const {\n    __scopeRadioGroup: __scopeRadioGroup,\n    ...indicatorProps\n  } = props;\n  const radioScope = $f99a8c78507165f7$var$useRadioScope(__scopeRadioGroup);\n  return /*#__PURE__*/$8Wolv$createElement($ce77a8961b41be9e$export$d35a9ffa9a04f9e7, $8Wolv$babelruntimehelpersesmextends({}, radioScope, indicatorProps, {\n    ref: forwardedRef\n  }));\n});\n/*#__PURE__*/\nObject.assign($f99a8c78507165f7$export$5fb54c671a65c88, {\n  displayName: $f99a8c78507165f7$var$INDICATOR_NAME\n});\n/* ---------------------------------------------------------------------------------------------- */\nconst $f99a8c78507165f7$export$be92b6f5f03c0fe9 = $f99a8c78507165f7$export$a98f0dcb43a68a25;\nconst $f99a8c78507165f7$export$6d08773d2e66f8f2 = $f99a8c78507165f7$export$9f866c100ef519e4;\nconst $f99a8c78507165f7$export$adb584737d712b70 = $f99a8c78507165f7$export$5fb54c671a65c88;\nexport { $f99a8c78507165f7$export$c547093f11b76da2 as createRadioGroupScope, $f99a8c78507165f7$export$a98f0dcb43a68a25 as RadioGroup, $f99a8c78507165f7$export$9f866c100ef519e4 as RadioGroupItem, $f99a8c78507165f7$export$5fb54c671a65c88 as RadioGroupIndicator, $f99a8c78507165f7$export$be92b6f5f03c0fe9 as Root, $f99a8c78507165f7$export$6d08773d2e66f8f2 as Item, $f99a8c78507165f7$export$adb584737d712b70 as Indicator };","map":{"version":3,"names":["$ce77a8961b41be9e$var$RADIO_NAME","$ce77a8961b41be9e$var$createRadioContext","$ce77a8961b41be9e$export$67d2296460f1b002","$8Wolv$createContextScope","$ce77a8961b41be9e$var$RadioProvider","$ce77a8961b41be9e$var$useRadioContext","$ce77a8961b41be9e$export$d7b12c4107be0d61","$8Wolv$forwardRef","props","forwardedRef","__scopeRadio","name","checked","required","disabled","value","onCheck","radioProps","button","setButton","$8Wolv$useState","composedRefs","$8Wolv$useComposedRefs","node","hasConsumerStoppedPropagationRef","$8Wolv$useRef","isFormControl","Boolean","closest","$8Wolv$createElement","scope","$8Wolv$Primitive","$8Wolv$babelruntimehelpersesmextends","type","role","$ce77a8961b41be9e$var$getState","undefined","ref","onClick","$8Wolv$composeEventHandlers","event","current","isPropagationStopped","stopPropagation","$ce77a8961b41be9e$var$BubbleInput","control","bubbles","style","transform","Object","assign","displayName","$ce77a8961b41be9e$var$INDICATOR_NAME","$ce77a8961b41be9e$export$d35a9ffa9a04f9e7","forceMount","indicatorProps","context","$8Wolv$Presence","present","span","inputProps","prevChecked","$8Wolv$usePrevious","controlSize","$8Wolv$useSize","$8Wolv$useEffect","input","inputProto","window","HTMLInputElement","prototype","descriptor","getOwnPropertyDescriptor","setChecked","set","Event","call","dispatchEvent","defaultChecked","tabIndex","position","pointerEvents","opacity","margin","getState","$f99a8c78507165f7$var$ARROW_KEYS","$f99a8c78507165f7$var$RADIO_GROUP_NAME","$f99a8c78507165f7$var$createRadioGroupContext","$f99a8c78507165f7$export$c547093f11b76da2","$8Wolv$createRovingFocusGroupScope","$f99a8c78507165f7$var$useRovingFocusGroupScope","$f99a8c78507165f7$var$useRadioScope","$f99a8c78507165f7$var$RadioGroupProvider","$f99a8c78507165f7$var$useRadioGroupContext","$f99a8c78507165f7$export$a98f0dcb43a68a25","__scopeRadioGroup","defaultValue","valueProp","orientation","dir","loop","onValueChange","groupProps","rovingFocusGroupScope","direction","$8Wolv$useDirection","setValue","$8Wolv$useControllableState","prop","defaultProp","onChange","$8Wolv$Root","asChild","div","$f99a8c78507165f7$var$ITEM_NAME","$f99a8c78507165f7$export$9f866c100ef519e4","itemProps","isDisabled","radioScope","isArrowKeyPressedRef","handleKeyDown","includes","key","handleKeyUp","document","addEventListener","removeEventListener","$8Wolv$Item","focusable","active","onKeyDown","preventDefault","onFocus","_ref$current","click","$f99a8c78507165f7$var$INDICATOR_NAME","$f99a8c78507165f7$export$5fb54c671a65c88","$f99a8c78507165f7$export$be92b6f5f03c0fe9","$f99a8c78507165f7$export$6d08773d2e66f8f2","$f99a8c78507165f7$export$adb584737d712b70"],"sources":["C:\\Users\\user\\Desktop\\03portreact\\node_modules\\@radix-ui\\react-radio-group\\dist\\packages\\react\\radio-group\\src\\index.ts","C:\\Users\\user\\Desktop\\03portreact\\node_modules\\@radix-ui\\react-radio-group\\dist\\packages\\react\\radio-group\\src\\RadioGroup.tsx","C:\\Users\\user\\Desktop\\03portreact\\node_modules\\@radix-ui\\react-radio-group\\dist\\packages\\react\\radio-group\\src\\Radio.tsx"],"sourcesContent":["export {\n  createRadioGroupScope,\n  //\n  RadioGroup,\n  RadioGroupItem,\n  RadioGroupIndicator,\n  //\n  Root,\n  Item,\n  Indicator,\n} from './RadioGroup';\nexport type { RadioGroupProps, RadioGroupItemProps, RadioGroupIndicatorProps } from './RadioGroup';\n","import * 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 { Primitive } from '@radix-ui/react-primitive';\nimport * as RovingFocusGroup from '@radix-ui/react-roving-focus';\nimport { createRovingFocusGroupScope } from '@radix-ui/react-roving-focus';\nimport { useControllableState } from '@radix-ui/react-use-controllable-state';\nimport { useDirection } from '@radix-ui/react-direction';\nimport { Radio, RadioIndicator, createRadioScope } from './Radio';\n\nimport type * as Radix from '@radix-ui/react-primitive';\nimport type { Scope } from '@radix-ui/react-context';\n\nconst ARROW_KEYS = ['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight'];\n\n/* -------------------------------------------------------------------------------------------------\n * RadioGroup\n * -----------------------------------------------------------------------------------------------*/\nconst RADIO_GROUP_NAME = 'RadioGroup';\n\ntype ScopedProps<P> = P & { __scopeRadioGroup?: Scope };\nconst [createRadioGroupContext, createRadioGroupScope] = createContextScope(RADIO_GROUP_NAME, [\n  createRovingFocusGroupScope,\n  createRadioScope,\n]);\nconst useRovingFocusGroupScope = createRovingFocusGroupScope();\nconst useRadioScope = createRadioScope();\n\ntype RadioGroupContextValue = {\n  name?: string;\n  required: boolean;\n  disabled: boolean;\n  value?: string;\n  onValueChange(value: string): void;\n};\n\nconst [RadioGroupProvider, useRadioGroupContext] =\n  createRadioGroupContext<RadioGroupContextValue>(RADIO_GROUP_NAME);\n\ntype RadioGroupElement = React.ElementRef<typeof Primitive.div>;\ntype RovingFocusGroupProps = Radix.ComponentPropsWithoutRef<typeof RovingFocusGroup.Root>;\ntype PrimitiveDivProps = Radix.ComponentPropsWithoutRef<typeof Primitive.div>;\ninterface RadioGroupProps extends PrimitiveDivProps {\n  name?: RadioGroupContextValue['name'];\n  required?: Radix.ComponentPropsWithoutRef<typeof Radio>['required'];\n  disabled?: Radix.ComponentPropsWithoutRef<typeof Radio>['disabled'];\n  dir?: RovingFocusGroupProps['dir'];\n  orientation?: RovingFocusGroupProps['orientation'];\n  loop?: RovingFocusGroupProps['loop'];\n  defaultValue?: string;\n  value?: RadioGroupContextValue['value'];\n  onValueChange?: RadioGroupContextValue['onValueChange'];\n}\n\nconst RadioGroup = React.forwardRef<RadioGroupElement, RadioGroupProps>(\n  (props: ScopedProps<RadioGroupProps>, forwardedRef) => {\n    const {\n      __scopeRadioGroup,\n      name,\n      defaultValue,\n      value: valueProp,\n      required = false,\n      disabled = false,\n      orientation,\n      dir,\n      loop = true,\n      onValueChange,\n      ...groupProps\n    } = props;\n    const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeRadioGroup);\n    const direction = useDirection(dir);\n    const [value, setValue] = useControllableState({\n      prop: valueProp,\n      defaultProp: defaultValue,\n      onChange: onValueChange,\n    });\n\n    return (\n      <RadioGroupProvider\n        scope={__scopeRadioGroup}\n        name={name}\n        required={required}\n        disabled={disabled}\n        value={value}\n        onValueChange={setValue}\n      >\n        <RovingFocusGroup.Root\n          asChild\n          {...rovingFocusGroupScope}\n          orientation={orientation}\n          dir={direction}\n          loop={loop}\n        >\n          <Primitive.div\n            role=\"radiogroup\"\n            aria-required={required}\n            aria-orientation={orientation}\n            data-disabled={disabled ? '' : undefined}\n            dir={direction}\n            {...groupProps}\n            ref={forwardedRef}\n          />\n        </RovingFocusGroup.Root>\n      </RadioGroupProvider>\n    );\n  }\n);\n\nRadioGroup.displayName = RADIO_GROUP_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * RadioGroupItem\n * -----------------------------------------------------------------------------------------------*/\n\nconst ITEM_NAME = 'RadioGroupItem';\n\ntype RadioGroupItemElement = React.ElementRef<typeof Radio>;\ntype RadioProps = Radix.ComponentPropsWithoutRef<typeof Radio>;\ninterface RadioGroupItemProps extends Omit<RadioProps, 'onCheck' | 'name'> {\n  value: string;\n}\n\nconst RadioGroupItem = React.forwardRef<RadioGroupItemElement, RadioGroupItemProps>(\n  (props: ScopedProps<RadioGroupItemProps>, forwardedRef) => {\n    const { __scopeRadioGroup, disabled, ...itemProps } = props;\n    const context = useRadioGroupContext(ITEM_NAME, __scopeRadioGroup);\n    const isDisabled = context.disabled || disabled;\n    const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeRadioGroup);\n    const radioScope = useRadioScope(__scopeRadioGroup);\n    const ref = React.useRef<React.ElementRef<typeof Radio>>(null);\n    const composedRefs = useComposedRefs(forwardedRef, ref);\n    const checked = context.value === itemProps.value;\n    const isArrowKeyPressedRef = React.useRef(false);\n\n    React.useEffect(() => {\n      const handleKeyDown = (event: KeyboardEvent) => {\n        if (ARROW_KEYS.includes(event.key)) {\n          isArrowKeyPressedRef.current = true;\n        }\n      };\n      const handleKeyUp = () => (isArrowKeyPressedRef.current = false);\n      document.addEventListener('keydown', handleKeyDown);\n      document.addEventListener('keyup', handleKeyUp);\n      return () => {\n        document.removeEventListener('keydown', handleKeyDown);\n        document.removeEventListener('keyup', handleKeyUp);\n      };\n    }, []);\n\n    return (\n      <RovingFocusGroup.Item\n        asChild\n        {...rovingFocusGroupScope}\n        focusable={!isDisabled}\n        active={checked}\n      >\n        <Radio\n          disabled={isDisabled}\n          required={context.required}\n          checked={checked}\n          {...radioScope}\n          {...itemProps}\n          name={context.name}\n          ref={composedRefs}\n          onCheck={() => context.onValueChange(itemProps.value)}\n          onKeyDown={composeEventHandlers((event) => {\n            // According to WAI ARIA, radio groups don't activate items on enter keypress\n            if (event.key === 'Enter') event.preventDefault();\n          })}\n          onFocus={composeEventHandlers(itemProps.onFocus, () => {\n            /**\n             * Our `RovingFocusGroup` will focus the radio when navigating with arrow keys\n             * and we need to \"check\" it in that case. We click it to \"check\" it (instead\n             * of updating `context.value`) so that the radio change event fires.\n             */\n            if (isArrowKeyPressedRef.current) ref.current?.click();\n          })}\n        />\n      </RovingFocusGroup.Item>\n    );\n  }\n);\n\nRadioGroupItem.displayName = ITEM_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * RadioGroupIndicator\n * -----------------------------------------------------------------------------------------------*/\n\nconst INDICATOR_NAME = 'RadioGroupIndicator';\n\ntype RadioGroupIndicatorElement = React.ElementRef<typeof RadioIndicator>;\ntype RadioIndicatorProps = Radix.ComponentPropsWithoutRef<typeof RadioIndicator>;\ninterface RadioGroupIndicatorProps extends RadioIndicatorProps {}\n\nconst RadioGroupIndicator = React.forwardRef<RadioGroupIndicatorElement, RadioGroupIndicatorProps>(\n  (props: ScopedProps<RadioGroupIndicatorProps>, forwardedRef) => {\n    const { __scopeRadioGroup, ...indicatorProps } = props;\n    const radioScope = useRadioScope(__scopeRadioGroup);\n    return <RadioIndicator {...radioScope} {...indicatorProps} ref={forwardedRef} />;\n  }\n);\n\nRadioGroupIndicator.displayName = INDICATOR_NAME;\n\n/* ---------------------------------------------------------------------------------------------- */\n\nconst Root = RadioGroup;\nconst Item = RadioGroupItem;\nconst Indicator = RadioGroupIndicator;\n\nexport {\n  createRadioGroupScope,\n  //\n  RadioGroup,\n  RadioGroupItem,\n  RadioGroupIndicator,\n  //\n  Root,\n  Item,\n  Indicator,\n};\nexport type { RadioGroupProps, RadioGroupItemProps, RadioGroupIndicatorProps };\n","import * 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 { useSize } from '@radix-ui/react-use-size';\nimport { usePrevious } from '@radix-ui/react-use-previous';\nimport { Presence } from '@radix-ui/react-presence';\nimport { Primitive } from '@radix-ui/react-primitive';\n\nimport type * as Radix from '@radix-ui/react-primitive';\nimport type { Scope } from '@radix-ui/react-context';\n\n/* -------------------------------------------------------------------------------------------------\n * Radio\n * -----------------------------------------------------------------------------------------------*/\n\nconst RADIO_NAME = 'Radio';\n\ntype ScopedProps<P> = P & { __scopeRadio?: Scope };\nconst [createRadioContext, createRadioScope] = createContextScope(RADIO_NAME);\n\ntype RadioContextValue = { checked: boolean; disabled?: boolean };\nconst [RadioProvider, useRadioContext] = createRadioContext<RadioContextValue>(RADIO_NAME);\n\ntype RadioElement = React.ElementRef<typeof Primitive.button>;\ntype PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;\ninterface RadioProps extends PrimitiveButtonProps {\n  checked?: boolean;\n  required?: boolean;\n  onCheck?(): void;\n}\n\nconst Radio = React.forwardRef<RadioElement, RadioProps>(\n  (props: ScopedProps<RadioProps>, forwardedRef) => {\n    const {\n      __scopeRadio,\n      name,\n      checked = false,\n      required,\n      disabled,\n      value = 'on',\n      onCheck,\n      ...radioProps\n    } = props;\n    const [button, setButton] = React.useState<HTMLButtonElement | null>(null);\n    const composedRefs = useComposedRefs(forwardedRef, (node) => setButton(node));\n    const hasConsumerStoppedPropagationRef = React.useRef(false);\n    // We set this to true by default so that events bubble to forms without JS (SSR)\n    const isFormControl = button ? Boolean(button.closest('form')) : true;\n\n    return (\n      <RadioProvider scope={__scopeRadio} checked={checked} disabled={disabled}>\n        <Primitive.button\n          type=\"button\"\n          role=\"radio\"\n          aria-checked={checked}\n          data-state={getState(checked)}\n          data-disabled={disabled ? '' : undefined}\n          disabled={disabled}\n          value={value}\n          {...radioProps}\n          ref={composedRefs}\n          onClick={composeEventHandlers(props.onClick, (event) => {\n            // radios cannot be unchecked so we only communicate a checked state\n            if (!checked) onCheck?.();\n            if (isFormControl) {\n              hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();\n              // if radio is in a form, stop propagation from the button so that we only propagate\n              // one click event (from the input). We propagate changes from an input so that native\n              // form validation works and form events reflect radio updates.\n              if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n            }\n          })}\n        />\n        {isFormControl && (\n          <BubbleInput\n            control={button}\n            bubbles={!hasConsumerStoppedPropagationRef.current}\n            name={name}\n            value={value}\n            checked={checked}\n            required={required}\n            disabled={disabled}\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            style={{ transform: 'translateX(-100%)' }}\n          />\n        )}\n      </RadioProvider>\n    );\n  }\n);\n\nRadio.displayName = RADIO_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * RadioIndicator\n * -----------------------------------------------------------------------------------------------*/\n\nconst INDICATOR_NAME = 'RadioIndicator';\n\ntype RadioIndicatorElement = React.ElementRef<typeof Primitive.span>;\ntype PrimitiveSpanProps = Radix.ComponentPropsWithoutRef<typeof Primitive.span>;\nexport interface RadioIndicatorProps extends PrimitiveSpanProps {\n  /**\n   * Used to force mounting when more control is needed. Useful when\n   * controlling animation with React animation libraries.\n   */\n  forceMount?: true;\n}\n\nconst RadioIndicator = React.forwardRef<RadioIndicatorElement, RadioIndicatorProps>(\n  (props: ScopedProps<RadioIndicatorProps>, forwardedRef) => {\n    const { __scopeRadio, forceMount, ...indicatorProps } = props;\n    const context = useRadioContext(INDICATOR_NAME, __scopeRadio);\n    return (\n      <Presence present={forceMount || context.checked}>\n        <Primitive.span\n          data-state={getState(context.checked)}\n          data-disabled={context.disabled ? '' : undefined}\n          {...indicatorProps}\n          ref={forwardedRef}\n        />\n      </Presence>\n    );\n  }\n);\n\nRadioIndicator.displayName = INDICATOR_NAME;\n\n/* ---------------------------------------------------------------------------------------------- */\n\ntype InputProps = Radix.ComponentPropsWithoutRef<'input'>;\ninterface BubbleInputProps extends Omit<InputProps, 'checked'> {\n  checked: boolean;\n  control: HTMLElement | null;\n  bubbles: boolean;\n}\n\nconst BubbleInput = (props: BubbleInputProps) => {\n  const { control, checked, bubbles = true, ...inputProps } = props;\n  const ref = React.useRef<HTMLInputElement>(null);\n  const prevChecked = usePrevious(checked);\n  const controlSize = useSize(control);\n\n  // Bubble checked change to parents (e.g form change event)\n  React.useEffect(() => {\n    const input = ref.current!;\n    const inputProto = window.HTMLInputElement.prototype;\n    const descriptor = Object.getOwnPropertyDescriptor(inputProto, 'checked') as PropertyDescriptor;\n    const setChecked = descriptor.set;\n    if (prevChecked !== checked && setChecked) {\n      const event = new Event('click', { bubbles });\n      setChecked.call(input, checked);\n      input.dispatchEvent(event);\n    }\n  }, [prevChecked, checked, bubbles]);\n\n  return (\n    <input\n      type=\"radio\"\n      aria-hidden\n      defaultChecked={checked}\n      {...inputProps}\n      tabIndex={-1}\n      ref={ref}\n      style={{\n        ...props.style,\n        ...controlSize,\n        position: 'absolute',\n        pointerEvents: 'none',\n        opacity: 0,\n        margin: 0,\n      }}\n    />\n  );\n};\n\nfunction getState(checked: boolean) {\n  return checked ? 'checked' : 'unchecked';\n}\n\nexport {\n  createRadioScope,\n  //\n  Radio,\n  RadioIndicator,\n};\nexport type { RadioProps };\n"],"mappings":";;;;;;;;;;;;;AEYA;;;AAIA,MAAMA,gCAAU,GAAG,OAAnB;AAGA,MAAM,CAACC,wCAAD,EAAqBC,yCAArB,IAAyCC,yBAAkB,CAACH,gCAAD,CAAjE;AAGA,MAAM,CAACI,mCAAD,EAAgBC,qCAAhB,IAAmCJ,wCAAkB,CAAoBD,gCAApB,CAA3D;AAUA,MAAMM,yCAAK,gBAAGC,iBAAA,CACZ,CAACC,KAAD,EAAiCC,YAAjC,KAAkD;EAChD,MAAM;kBACJC,YADI;UAEJC,IAFI;IAGJC,OAAO,GAAG,KAHN;cAIJC,QAJI;cAKJC,QALI;IAMJC,KAAK,GAAG,IANJ;aAOJC,OAPI;IAQJ,GAAGC;EAAH,CARI,GASFT,KATJ;EAUA,MAAM,CAACU,MAAD,EAASC,SAAT,IAAsBC,eAAA,CAAyC,IAAzC,CAA5B;EACA,MAAMC,YAAY,GAAGC,sBAAe,CAACb,YAAD,EAAgBc,IAAD,IAA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