import{DEV_CENTER_CLI_APP_ID as n}from"../constants/devcenter.js";import"../constants/goals.js";import{SEGMENTS as t}from"../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"./env.js";import"lodash";import"../components/GradientManager/configuration/constants.js";var o=function(n){var t=n.appKey,o=n.version,i=n.isLocalDebugMode;if(!t)return"";var a=t.replace(/\./g,"_");return i?a:"".concat(a,"-").concat(o)},i=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return o===+(null==t?void 0:t.maximizeDC)};function a(n){var t,o;return{push:function(t){"string"==typeof t?n.push(t):n.push({pathname:t.pathname,query:t.query})},location:{pathname:null==n||null===(t=n.location)||void 0===t?void 0:t.pathname,query:null==n||null===(o=n.location)||void 0===o?void 0:o.query}}}var l=function(n){return n?+(n.split("#")[2]||"").replace("}",""):void 0},r=function(n){var t,o;return null!==(t=null==n||null===(o=n.package)||void 0===o?void 0:o.manifest.application.name)&&void 0!==t?t:null==n?void 0:n.name},s=function(n){var t;return"dev_center"===((null==n?void 0:n.platform)||(null==n||null===(t=n.app)||void 0===t?void 0:t.platform))},e=function(n){var o,i,a;return(null==n||null===(o=n.settings)||void 0===o?void 0:o.segment)||(null!==(i=null==n||null===(a=n.segment)||void 0===a?void 0:a[0])&&void 0!==i?i:t.DRILLING)},u=function(n){var t,o;return"corva"===(null==n||null===(t=n.app_key)||void 0===t||null===(o=t.split("."))||void 0===o?void 0:o[0])},p=function(n){var t,o,i;return null===(t=null==n||null===(o=n.manifest)||void 0===o||null===(i=o.settings)||void 0===i?void 0:i.enable_isolation)||void 0===t||t};export{a as createDevCenterRouter,o as getAppIdentifier,r as getAppName,e as getAppSegment,l as getTimestampFromQuery,i as isAppMaximized,u as isCorvaApp,s as isDevCenterApp,p as isIsolationEnabledInPackageManifest};
