"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("react-dom"),t=require("@prom-ui/core/usePortal");function a(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var i=a(e),o=function(e){var a=e.id,i=e.children,o=t.usePortal(a);return o?r.createPortal(i,o):i},c=function(e){var r=e.id,t=void 0===r?"react-portal":r,a=e.isActive,c=void 0===a||a,n=e.children;return c?i.createElement(o,{id:t},n):n};c.displayName="Portal",exports.Portal=c;
