text: !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react"),require("react/jsx-runtime")):"function"==typeof define&&define.amd?define(["react","react/jsx-runtime"],t):(e||self).useResizeAware=t(e.react,e.jsx)}(this,function(e,t){function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,t}var r=/*#__PURE__*/n(e),u={display:"block",opacity:0,position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none",zIndex:-1},i=function(e){var n=e.onResize,i=r.useRef();return function(e,t){var n=function(){return e.current&&e.current.contentDocument&&e.current.contentDocument.defaultView};function u(){t();var e=n();e&&e.addEventListener("resize",t)}r.useEffect(function(){return n()?u():e.current&&e.current.addEventListener&&e.current.addEventListener("load",u),function(){var e=n();e&&"function"==typeof e.removeEventListener&&e.removeEventListener("resize",t)}},[])}(i,function(){return n(i)}),/*#__PURE__*/t.jsx("iframe",{style:u,src:"about:blank",ref:i,"aria-hidden":!0,tabIndex:-1,frameBorder:0})},o=function(e){return{width:null!=e?e.offsetWidth:null,height:null!=e?e.offsetHeight:null}};return function(e){void 0===e&&(e=o);var n=r.useState(e(null)),u=n[0],f=n[1],c=r.useCallback(function(t){return f(e(t.current))},[e]);return[r.useMemo(function(){/*#__PURE__*/return t.jsx(i,{onResize:c})},[c]),u]}});
  //# sourceMappingURL=index.umd.js.map
  