"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"),t=require("../../effects/useDelayedDcFullscreenElemOpen.js");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 s=require("../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js"),o=require("../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js");function i(o){var i=o.children,p=o.open,c=e.__rest(o,["children","open"]),u=t.useDelayedDcFullscreenElemOpen({isOpen:p}).delayedIsOpen;return n.jsx(r.Popover,e.__assign({},c,{open:u,TransitionProps:e.__assign(e.__assign({},c.TransitionProps),{enter:!0,exit:!1}),children:n.jsx(s.IsInsideDcFullscreenElemProvider,{children:i})}))}exports.Popover=function(t){var p=o.useIsInsideDcApp(),c=s.useIsInsideDcFullscreenElem(),u=p&&!c?i:r.Popover;return n.jsx(u,e.__assign({},t))};
