text: import { _ as _objectWithoutPropertiesLoose, a as _objectSpread2 } from '../_rollupPluginBabelHelpers-1f0bf8c2.js';
  import 'reakit-system/createComponent';
  import 'reakit-system/createHook';
  import 'reakit-utils/shallowEqual';
  import '../Box/Box.js';
  import { useState } from 'react';
  import 'reakit-utils/useForkRef';
  import 'reakit-utils/isButton';
  import 'reakit-warning';
  import 'reakit-utils/useLiveRef';
  import 'reakit-utils/isSelfTarget';
  import 'reakit-utils/useIsomorphicEffect';
  import 'reakit-utils/hasFocusWithin';
  import 'reakit-utils/isPortalEvent';
  import 'reakit-utils/getActiveElement';
  import 'reakit-utils/tabbable';
  import '../Tabbable/Tabbable.js';
  import '../Clickable/Clickable.js';
  import { useSealedState } from 'reakit-utils/useSealedState';
  import 'reakit-system/useCreateElement';
  import 'reakit-utils/createOnKeyDown';
  import 'reakit-utils/getDocument';
  import 'reakit-utils/fireEvent';
  import 'reakit-utils/fireKeyboardEvent';
  import 'reakit-utils/applyState';
  import '../Id/IdProvider.js';
  import '../Id/IdState.js';
  import { u as useCompositeState } from '../CompositeState-3a25dcee.js';
  import '../Composite/Composite.js';
  import '../Group/Group.js';
  import '../Id/Id.js';
  import '../Composite/CompositeGroup.js';
  import 'reakit-utils/isTextField';
  import '../setTextFieldValue-78ab5d56.js';
  import '../Composite/CompositeItem.js';
  import '../Composite/CompositeItemWidget.js';
  
  function useRadioState(initialState) {
    if (initialState === void 0) {
      initialState = {};
    }
  
    var _useSealedState = useSealedState(initialState),
        initialValue = _useSealedState.state,
        _useSealedState$loop = _useSealedState.loop,
        loop = _useSealedState$loop === void 0 ? true : _useSealedState$loop,
        sealed = _objectWithoutPropertiesLoose(_useSealedState, ["state", "loop"]);
  
    var _React$useState = useState(initialValue),
        state = _React$useState[0],
        setState = _React$useState[1];
  
    var composite = useCompositeState(_objectSpread2(_objectSpread2({}, sealed), {}, {
      loop: loop
    }));
    return _objectSpread2(_objectSpread2({}, composite), {}, {
      state: state,
      setState: setState
    });
  }
  var keys = [].concat(useCompositeState.__keys, ["state", "setState"]);
  useRadioState.__keys = keys;
  
  export { useRadioState };
  