text: define(["require", "exports", "react"], function (require, exports, React) {
      "use strict";
      Object.defineProperty(exports, "__esModule", { value: true });
      /**
       * Context for providing the window.
       */
      exports.WindowContext = React.createContext({
          window: typeof window === 'object' ? window : undefined,
      });
      /**
       * Hook to access the window object. This can be overridden contextually using the `WindowProvider`.
       */
      exports.useWindow = function () { return React.useContext(exports.WindowContext).window; };
      /**
       * Hook to access the document object. This can be overridden contextually using the `WindowProvider`.
       */
      exports.useDocument = function () { var _a; return (_a = React.useContext(exports.WindowContext).window) === null || _a === void 0 ? void 0 : _a.document; };
      /**
       * Component to provide the window object contextually. This is useful when rendering content to an element
       * contained within a child window or iframe element, where event handlers and styling must be projected
       * to an alternative window or document.
       */
      exports.WindowProvider = function (props) {
          return React.createElement(exports.WindowContext.Provider, { value: props }, props.children);
      };
  });
  //# sourceMappingURL=WindowProvider.js.map