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