"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),n=require("react/jsx-runtime"),r=require("@material-ui/core");require("../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js"),require("../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js"),require("../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js"),require("../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js"),require("../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js"),require("../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js"),require("../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js"),require("../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js"),require("../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js"),require("../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js");var t=require("../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js"),o=require("../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js"),s=require("../../effects/useDelayedDcFullscreenElemOpen.js");function p(o){var p=o.children,i=o.open,c=e.__rest(o,["children","open"]),u=s.useDelayedDcFullscreenElemOpen({isOpen:i}).delayedIsOpen;return n.jsx(r.Popper,e.__assign({},c,{open:u,children:n.jsx(t.IsInsideDcFullscreenElemProvider,{children:p})}))}exports.Popper=function(s){var i=o.useIsInsideDcApp(),c=t.useIsInsideDcFullscreenElem(),u=i&&!c?p:r.Popper;return n.jsx(u,e.__assign({},s))};
