import t from"@babel/runtime/helpers/defineProperty";import{useEffect as e}from"react";import"../../../../utils/index.js";import{DEV_CENTER_CLI_APP_ID as r}from"../../../../constants/devcenter.js";import"../../../../constants/goals.js";import"../../../../constants/segment.js";import"../../../../constants/alerts.js";import"../../../../constants/apps.js";import"../../../../constants/drillstring.js";import"../../../../constants/completion.js";import"../../../../constants/appPackages.js";import"../../../../constants/notifications.js";import"../../../../constants/feed.js";import"../../../../constants/bha.js";import"../../../../constants/corvaCompanyId.js";import"lodash";import"../../../GradientManager/configuration/constants.js";import{isAppMaximized as n}from"../../../../utils/devcenter.js";function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?o(Object(n),!0).forEach((function(r){t(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(t){var o=t.onIsMaximizedChange,i=t.devCenterRouter,a=t.appId,c=void 0===a?r:a,p=n(i.location.query,c);return e((function(){null==o||o(p)}),[p]),{isMaximized:p,setIsMaximized:function(t){var e=i.location,r=e.pathname,n=s(s({},e.query),{},{maximizeDC:t?c:void 0});i.push({pathname:r,query:n})}}}export{i as default};
//# sourceMappingURL=useAppMaximized.js.map
