"use strict";Object.defineProperty(exports, "__esModule", {value: true});

var _ZPT6IQKOcjs = require('./ZPT6IQKO.cjs');




var _743QABRAcjs = require('./743QABRA.cjs');

// src/focus-trap/focus-trap.tsx
var TagName = "span";
var useFocusTrap = _743QABRAcjs.createHook.call(void 0, 
  function useFocusTrap2(props) {
    props = {
      "data-focus-trap": "",
      tabIndex: 0,
      "aria-hidden": true,
      ...props,
      style: {
        // Prevents unintended scroll jumps.
        position: "fixed",
        top: 0,
        left: 0,
        ...props.style
      }
    };
    props = _ZPT6IQKOcjs.useVisuallyHidden.call(void 0, props);
    return props;
  }
);
var FocusTrap = _743QABRAcjs.forwardRef.call(void 0, function FocusTrap2(props) {
  const htmlProps = useFocusTrap(props);
  return _743QABRAcjs.createElement.call(void 0, TagName, htmlProps);
});




exports.useFocusTrap = useFocusTrap; exports.FocusTrap = FocusTrap;
