"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/objectWithoutProperties"),n=require("react/jsx-runtime"),t=require("@material-ui/core"),o=require("../../effects/useDelayedDcFullscreenElemOpen.js"),s=require("../../components/DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider/IsInsideIsolatedDcAppProvider.js"),p=require("../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=c(e),l=c(r),u=["children","open"],d=["popperRef"];function a(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function f(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?a(Object(n),!0).forEach((function(r){i.default(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function j(e){var r=e.children,s=e.open,c=l.default(e,u),i=o.useDelayedDcFullscreenElemOpen({isOpen:s}).delayedIsOpen,d="function"==typeof r?function(){return n.jsx(p.IsInsideDcFullscreenElemProvider,{children:r.apply(void 0,arguments)})}:n.jsx(p.IsInsideDcFullscreenElemProvider,{children:r});return n.jsx(t.Popper,f(f({},c),{},{open:i,children:d}))}exports.Popper=function(e){var r=e.popperRef,o=l.default(e,d),c=s.useIsInsideIsolatedDcApp(),i=p.useIsInsideDcFullscreenElem(),u=!c||i||o.container?t.Popper:j;return n.jsx(u,f(f({},o),{},{popperRef:r}))};
//# sourceMappingURL=Popper.js.map
