{"ast":null,"code":"import _objectSpread from \"C:/Users/user/Desktop/04portreact/node_modules/@babel/runtime/helpers/esm/objectSpread2.js\";\nimport _objectWithoutProperties from \"C:/Users/user/Desktop/04portreact/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js\";\nimport _slicedToArray from \"C:/Users/user/Desktop/04portreact/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";\nvar _excluded = [\"__scopeRadio\", \"name\", \"checked\", \"required\", \"disabled\", \"value\", \"onCheck\"],\n  _excluded2 = [\"__scopeRadio\", \"forceMount\"],\n  _excluded3 = [\"control\", \"checked\", \"bubbles\"],\n  _excluded4 = [\"__scopeRadioGroup\", \"name\", \"defaultValue\", \"value\", \"required\", \"disabled\", \"orientation\", \"dir\", \"loop\", \"onValueChange\"],\n  _excluded5 = [\"__scopeRadioGroup\", \"disabled\"],\n  _excluded6 = [\"__scopeRadioGroup\"];\nimport $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 * -----------------------------------------------------------------------------------------------*/\nvar $ce77a8961b41be9e$var$RADIO_NAME = 'Radio';\nvar _$8Wolv$createContext = $8Wolv$createContextScope($ce77a8961b41be9e$var$RADIO_NAME),\n  _$8Wolv$createContext2 = _slicedToArray(_$8Wolv$createContext, 2),\n  $ce77a8961b41be9e$var$createRadioContext = _$8Wolv$createContext2[0],\n  $ce77a8961b41be9e$export$67d2296460f1b002 = _$8Wolv$createContext2[1];\nvar _$ce77a8961b41be9e$va = $ce77a8961b41be9e$var$createRadioContext($ce77a8961b41be9e$var$RADIO_NAME),\n  _$ce77a8961b41be9e$va2 = _slicedToArray(_$ce77a8961b41be9e$va, 2),\n  $ce77a8961b41be9e$var$RadioProvider = _$ce77a8961b41be9e$va2[0],\n  $ce77a8961b41be9e$var$useRadioContext = _$ce77a8961b41be9e$va2[1];\nvar $ce77a8961b41be9e$export$d7b12c4107be0d61 = /*#__PURE__*/$8Wolv$forwardRef(function (props, forwardedRef) {\n  var __scopeRadio = props.__scopeRadio,\n    name = props.name,\n    _props$checked = props.checked,\n    checked = _props$checked === void 0 ? false : _props$checked,\n    required = props.required,\n    disabled = props.disabled,\n    _props$value = props.value,\n    value = _props$value === void 0 ? 'on' : _props$value,\n    onCheck = props.onCheck,\n    radioProps = _objectWithoutProperties(props, _excluded);\n  var _$8Wolv$useState = $8Wolv$useState(null),\n    _$8Wolv$useState2 = _slicedToArray(_$8Wolv$useState, 2),\n    button = _$8Wolv$useState2[0],\n    setButton = _$8Wolv$useState2[1];\n  var composedRefs = $8Wolv$useComposedRefs(forwardedRef, function (node) {\n    return setButton(node);\n  });\n  var hasConsumerStoppedPropagationRef = $8Wolv$useRef(false); // We set this to true by default so that events bubble to forms without JS (SSR)\n  var 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, function (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 * -----------------------------------------------------------------------------------------------*/\nvar $ce77a8961b41be9e$var$INDICATOR_NAME = 'RadioIndicator';\nvar $ce77a8961b41be9e$export$d35a9ffa9a04f9e7 = /*#__PURE__*/$8Wolv$forwardRef(function (props, forwardedRef) {\n  var __scopeRadio = props.__scopeRadio,\n    forceMount = props.forceMount,\n    indicatorProps = _objectWithoutProperties(props, _excluded2);\n  var 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/* ---------------------------------------------------------------------------------------------- */\nvar $ce77a8961b41be9e$var$BubbleInput = function $ce77a8961b41be9e$var$BubbleInput(props) {\n  var control = props.control,\n    checked = props.checked,\n    _props$bubbles = props.bubbles,\n    bubbles = _props$bubbles === void 0 ? true : _props$bubbles,\n    inputProps = _objectWithoutProperties(props, _excluded3);\n  var ref = $8Wolv$useRef(null);\n  var prevChecked = $8Wolv$usePrevious(checked);\n  var controlSize = $8Wolv$useSize(control); // Bubble checked change to parents (e.g form change event)\n  $8Wolv$useEffect(function () {\n    var input = ref.current;\n    var inputProto = window.HTMLInputElement.prototype;\n    var descriptor = Object.getOwnPropertyDescriptor(inputProto, 'checked');\n    var setChecked = descriptor.set;\n    if (prevChecked !== checked && setChecked) {\n      var 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: _objectSpread(_objectSpread(_objectSpread({}, props.style), 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}\nvar $f99a8c78507165f7$var$ARROW_KEYS = ['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight'];\n/* -------------------------------------------------------------------------------------------------\n * RadioGroup\n * -----------------------------------------------------------------------------------------------*/\nvar $f99a8c78507165f7$var$RADIO_GROUP_NAME = 'RadioGroup';\nvar _$8Wolv$createContext3 = $8Wolv$createContextScope($f99a8c78507165f7$var$RADIO_GROUP_NAME, [$8Wolv$createRovingFocusGroupScope, $ce77a8961b41be9e$export$67d2296460f1b002]),\n  _$8Wolv$createContext4 = _slicedToArray(_$8Wolv$createContext3, 2),\n  $f99a8c78507165f7$var$createRadioGroupContext = _$8Wolv$createContext4[0],\n  $f99a8c78507165f7$export$c547093f11b76da2 = _$8Wolv$createContext4[1];\nvar $f99a8c78507165f7$var$useRovingFocusGroupScope = $8Wolv$createRovingFocusGroupScope();\nvar $f99a8c78507165f7$var$useRadioScope = $ce77a8961b41be9e$export$67d2296460f1b002();\nvar _$f99a8c78507165f7$va = $f99a8c78507165f7$var$createRadioGroupContext($f99a8c78507165f7$var$RADIO_GROUP_NAME),\n  _$f99a8c78507165f7$va2 = _slicedToArray(_$f99a8c78507165f7$va, 2),\n  $f99a8c78507165f7$var$RadioGroupProvider = _$f99a8c78507165f7$va2[0],\n  $f99a8c78507165f7$var$useRadioGroupContext = _$f99a8c78507165f7$va2[1];\nvar $f99a8c78507165f7$export$a98f0dcb43a68a25 = /*#__PURE__*/$8Wolv$forwardRef(function (props, forwardedRef) {\n  var __scopeRadioGroup = props.__scopeRadioGroup,\n    name = props.name,\n    defaultValue = props.defaultValue,\n    valueProp = props.value,\n    _props$required = props.required,\n    required = _props$required === void 0 ? false : _props$required,\n    _props$disabled = props.disabled,\n    disabled = _props$disabled === void 0 ? false : _props$disabled,\n    orientation = props.orientation,\n    dir = props.dir,\n    _props$loop = props.loop,\n    loop = _props$loop === void 0 ? true : _props$loop,\n    onValueChange = props.onValueChange,\n    groupProps = _objectWithoutProperties(props, _excluded4);\n  var rovingFocusGroupScope = $f99a8c78507165f7$var$useRovingFocusGroupScope(__scopeRadioGroup);\n  var direction = $8Wolv$useDirection(dir);\n  var _$8Wolv$useControllab = $8Wolv$useControllableState({\n      prop: valueProp,\n      defaultProp: defaultValue,\n      onChange: onValueChange\n    }),\n    _$8Wolv$useControllab2 = _slicedToArray(_$8Wolv$useControllab, 2),\n    value = _$8Wolv$useControllab2[0],\n    setValue = _$8Wolv$useControllab2[1];\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 * -----------------------------------------------------------------------------------------------*/\nvar $f99a8c78507165f7$var$ITEM_NAME = 'RadioGroupItem';\nvar $f99a8c78507165f7$export$9f866c100ef519e4 = /*#__PURE__*/$8Wolv$forwardRef(function (props, forwardedRef) {\n  var __scopeRadioGroup = props.__scopeRadioGroup,\n    disabled = props.disabled,\n    itemProps = _objectWithoutProperties(props, _excluded5);\n  var context = $f99a8c78507165f7$var$useRadioGroupContext($f99a8c78507165f7$var$ITEM_NAME, __scopeRadioGroup);\n  var isDisabled = context.disabled || disabled;\n  var rovingFocusGroupScope = $f99a8c78507165f7$var$useRovingFocusGroupScope(__scopeRadioGroup);\n  var radioScope = $f99a8c78507165f7$var$useRadioScope(__scopeRadioGroup);\n  var ref = $8Wolv$useRef(null);\n  var composedRefs = $8Wolv$useComposedRefs(forwardedRef, ref);\n  var checked = context.value === itemProps.value;\n  var isArrowKeyPressedRef = $8Wolv$useRef(false);\n  $8Wolv$useEffect(function () {\n    var handleKeyDown = function handleKeyDown(event) {\n      if ($f99a8c78507165f7$var$ARROW_KEYS.includes(event.key)) isArrowKeyPressedRef.current = true;\n    };\n    var handleKeyUp = function handleKeyUp() {\n      return isArrowKeyPressedRef.current = false;\n    };\n    document.addEventListener('keydown', handleKeyDown);\n    document.addEventListener('keyup', handleKeyUp);\n    return function () {\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: function onCheck() {\n      return context.onValueChange(itemProps.value);\n    },\n    onKeyDown: $8Wolv$composeEventHandlers(function (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, function () {\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 * -----------------------------------------------------------------------------------------------*/\nvar $f99a8c78507165f7$var$INDICATOR_NAME = 'RadioGroupIndicator';\nvar $f99a8c78507165f7$export$5fb54c671a65c88 = /*#__PURE__*/$8Wolv$forwardRef(function (props, forwardedRef) {\n  var __scopeRadioGroup = props.__scopeRadioGroup,\n    indicatorProps = _objectWithoutProperties(props, _excluded6);\n  var 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/* ---------------------------------------------------------------------------------------------- */\nvar $f99a8c78507165f7$export$be92b6f5f03c0fe9 = $f99a8c78507165f7$export$a98f0dcb43a68a25;\nvar $f99a8c78507165f7$export$6d08773d2e66f8f2 = $f99a8c78507165f7$export$9f866c100ef519e4;\nvar $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","_$8Wolv$createContext","$8Wolv$createContextScope","_$8Wolv$createContext2","_slicedToArray","$ce77a8961b41be9e$var$createRadioContext","$ce77a8961b41be9e$export$67d2296460f1b002","_$ce77a8961b41be9e$va","_$ce77a8961b41be9e$va2","$ce77a8961b41be9e$var$RadioProvider","$ce77a8961b41be9e$var$useRadioContext","$ce77a8961b41be9e$export$d7b12c4107be0d61","$8Wolv$forwardRef","props","forwardedRef","__scopeRadio","name","checked","_props$checked","required","disabled","value","_props$value","onCheck","radioProps","_objectWithoutProperties","_excluded","_$8Wolv$useState","$8Wolv$useState","_$8Wolv$useState2","button","setButton","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","_excluded2","context","$8Wolv$Presence","present","span","BubbleInput","_props$bubbles","inputProps","_excluded3","prevChecked","$8Wolv$usePrevious","controlSize","$8Wolv$useSize","$8Wolv$useEffect","input","inputProto","window","HTMLInputElement","prototype","descriptor","getOwnPropertyDescriptor","setChecked","set","Event","call","dispatchEvent","defaultChecked","tabIndex","_objectSpread","position","pointerEvents","opacity","margin","getState","$f99a8c78507165f7$var$ARROW_KEYS","$f99a8c78507165f7$var$RADIO_GROUP_NAME","_$8Wolv$createContext3","$8Wolv$createRovingFocusGroupScope","_$8Wolv$createContext4","$f99a8c78507165f7$var$createRadioGroupContext","$f99a8c78507165f7$export$c547093f11b76da2","$f99a8c78507165f7$var$useRovingFocusGroupScope","$f99a8c78507165f7$var$useRadioScope","_$f99a8c78507165f7$va","_$f99a8c78507165f7$va2","$f99a8c78507165f7$var$RadioGroupProvider","$f99a8c78507165f7$var$useRadioGroupContext","$f99a8c78507165f7$export$a98f0dcb43a68a25","__scopeRadioGroup","defaultValue","valueProp","_props$required","_props$disabled","orientation","dir","loop","_props$loop","onValueChange","groupProps","_excluded4","rovingFocusGroupScope","direction","$8Wolv$useDirection","_$8Wolv$useControllab","$8Wolv$useControllableState","prop","defaultProp","onChange","_$8Wolv$useControllab2","setValue","$8Wolv$Root","asChild","div","$f99a8c78507165f7$var$ITEM_NAME","$f99a8c78507165f7$export$9f866c100ef519e4","itemProps","_excluded5","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","_excluded6","$f99a8c78507165f7$export$be92b6f5f03c0fe9","$f99a8c78507165f7$export$6d08773d2e66f8f2","$f99a8c78507165f7$export$adb584737d712b70"],"sources":["C:\\Users\\user\\Desktop\\04portreact\\node_modules\\@radix-ui\\react-radio-group\\dist\\packages\\react\\radio-group\\src\\index.ts","C:\\Users\\user\\Desktop\\04portreact\\node_modules\\@radix-ui\\react-radio-group\\dist\\packages\\react\\radio-group\\src\\RadioGroup.tsx","C:\\Users\\user\\Desktop\\04portreact\\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,IAAMA,gCAAU,GAAG,OAAnB;AAGA,IAAAC,qBAAA,GAA+CC,yBAAkB,CAACF,gCAAD,CAAjE;EAAAG,sBAAA,GAAAC,cAAA,CAAAH,qBAAA;EAAOI,wCAAD,GAAAF,sBAAA;EAAqBG,yCAArB,GAAAH,sBAAA;AAGN,IAAAI,qBAAA,GAAyCF,wCAAkB,CAAoBL,gCAApB,CAA3D;EAAAQ,sBAAA,GAAAJ,cAAA,CAAAG,qBAAA;EAAOE,mCAAD,GAAAD,sBAAA;EAAgBE,qCAAhB,GAAAF,sBAAA;AAUN,IAAMG,yCAAK,gBAAGC,iBAAA,CACZ,UAACC,KAAD,EAAiCC,YAAjC,EAAkD;EAChD,IACEC,YADI,GASFF,KATJ,C;IAEEG,IAFI,GASFH,KATJ,C;qBASIA,KATJ,CAAMI,OAAA;IAGJA,OAAO,GAAAC,cAAA,cAAG,KAHN,GAAAA,cAAA;IAIJC,QAJI,GASFN,KATJ,C;IAKEO,QALI,GASFP,KATJ,C;mBASIA,KATJ,CAAMQ,KAAA;IAMJA,KAAK,GAAAC,YAAA,cAAG,IANJ,GAAAA,YAAA;IAOJC,OAPI,GASFV,KATJ,C;IAQKW,UAAH,GAAAC,wBAAA,CACEZ,KATJ,EAAAa,SAAA;EAUA,IAAAC,gBAAA,GAA4BC,eAAA,CAAyC,IAAzC,CAA5B;IAAAC,iBAAA,GAAAzB,cAAA,CAAAuB,gBAAA;IAAOG,MAAD,GAAAD,iBAAA;IAASE,SAAT,GAAAF,iBAAA;EACN,IAAMG,YAAY,GAAGC,sBAAe,CAACnB,YAAD,EAAgB,UAAAoB,IAAD;IAAA,OAAUH,SAAS,CAAC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