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