@equinor/echo-cli 0.14.13 → 0.14.14-beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +199 -199
- package/package.json +125 -125
- package/templates/echoAppTemplate/.gitattributes +3 -3
- package/templates/echoAppTemplate/package.json +35 -35
- package/templates/echoAppTemplate/readme.md +47 -47
- package/templates/echoAppTemplate/src/app.module.css +5 -5
- package/templates/echoAppTemplate/src/app.tsx +30 -30
- package/templates/echoAppTemplate/src/index.ts +6 -6
- package/templates/echoAppTemplate/tsconfig.json +25 -25
- package/templates/echoAppTemplateTutorial/.gitattributes +3 -3
- package/templates/echoAppTemplateTutorial/package.json +36 -36
- package/templates/echoAppTemplateTutorial/readme.md +47 -47
- package/templates/echoAppTemplateTutorial/src/app.module.css +5 -5
- package/templates/echoAppTemplateTutorial/src/app.tsx +30 -30
- package/templates/echoAppTemplateTutorial/src/index.ts +6 -6
- package/templates/echoAppTemplateTutorial/tsconfig.json +25 -25
- package/templates/echoLibraryTemplate/package.json +35 -35
- package/templates/echoLibraryTemplate/public/index.html +21 -21
- package/templates/echoLibraryTemplate/public/style.css +43 -43
- package/templates/echoLibraryTemplate/readme.md +1 -1
- package/templates/echoPluginTemplate/package.json +35 -35
- package/templates/echoPluginTemplate/public/index.html +21 -21
- package/templates/echoPluginTemplate/public/style.css +43 -43
- package/templates/echoPluginTemplate/readme.md +1 -1
- package/client/assets/vendors-node_modules_azure_msal-browser_dist_controllers_NestedAppAuthController_mjs.3ab4a9273d5d4cae75fe.chunk.js +0 -3
- package/client/assets/vendors-node_modules_azure_msal-browser_dist_controllers_NestedAppAuthController_mjs.3ab4a9273d5d4cae75fe.chunk.js.LICENSE.txt +0 -35
- package/client/assets/vendors-node_modules_azure_msal-browser_dist_controllers_NestedAppAuthController_mjs.3ab4a9273d5d4cae75fe.chunk.js.map +0 -1
- package/client/d2d97a9feca22f12a8c8c7413d7867ac.jpg +0 -0
- package/client/env-config.js +0 -1
- package/client/index.css +0 -60
- package/client/index.html +0 -21
- package/client/main.echo.bundle.js +0 -3
- package/client/main.echo.bundle.js.LICENSE.txt +0 -169
- package/client/main.echo.bundle.js.map +0 -1
- package/client/vendors-node_modules_react-dom_client_js-node_modules_babel_polyfill_lib_index_js-node_module-cb4c76.echo.bundle.js +0 -3
- package/client/vendors-node_modules_react-dom_client_js-node_modules_babel_polyfill_lib_index_js-node_module-cb4c76.echo.bundle.js.LICENSE.txt +0 -8667
- package/client/vendors-node_modules_react-dom_client_js-node_modules_babel_polyfill_lib_index_js-node_module-cb4c76.echo.bundle.js.map +0 -1
- package/lib/__test__/utils/merg.test.d.ts +0 -1
- package/lib/__test__/utils/merg.test.js +0 -29
- package/lib/__test__/utils/merg.test.js.map +0 -1
- package/lib/config/common/copyFile.d.ts +0 -2
- package/lib/config/common/copyFile.js +0 -10
- package/lib/config/common/copyFile.js.map +0 -1
- package/lib/config/common/echoManifest.d.ts +0 -3
- package/lib/config/common/echoManifest.js +0 -59
- package/lib/config/common/echoManifest.js.map +0 -1
- package/lib/config/common/echoModuleConfig.d.ts +0 -30
- package/lib/config/common/echoModuleConfig.js +0 -34
- package/lib/config/common/echoModuleConfig.js.map +0 -1
- package/lib/config/common/echoModuleId.d.ts +0 -5
- package/lib/config/common/echoModuleId.js +0 -15
- package/lib/config/common/echoModuleId.js.map +0 -1
- package/lib/config/common/extensions.d.ts +0 -1
- package/lib/config/common/extensions.js +0 -2
- package/lib/config/common/extensions.js.map +0 -1
- package/lib/config/common/getCurrentIndexFile.d.ts +0 -2
- package/lib/config/common/getCurrentIndexFile.js +0 -11
- package/lib/config/common/getCurrentIndexFile.js.map +0 -1
- package/lib/config/common/getPackageJson.d.ts +0 -1
- package/lib/config/common/getPackageJson.js +0 -8
- package/lib/config/common/getPackageJson.js.map +0 -1
- package/lib/config/common/https.d.ts +0 -6
- package/lib/config/common/https.js +0 -16
- package/lib/config/common/https.js.map +0 -1
- package/lib/config/common/initOptions.d.ts +0 -32
- package/lib/config/common/initOptions.js +0 -28
- package/lib/config/common/initOptions.js.map +0 -1
- package/lib/config/common/ssl.d.ts +0 -7
- package/lib/config/common/ssl.js +0 -76
- package/lib/config/common/ssl.js.map +0 -1
- package/lib/config/common/updateEnv.d.ts +0 -6
- package/lib/config/common/updateEnv.js +0 -16
- package/lib/config/common/updateEnv.js.map +0 -1
- package/lib/config/rollup/echoModulePlugin.d.ts +0 -7
- package/lib/config/rollup/echoModulePlugin.js +0 -18
- package/lib/config/rollup/echoModulePlugin.js.map +0 -1
- package/lib/config/rollup/options.d.ts +0 -4
- package/lib/config/rollup/options.js +0 -24
- package/lib/config/rollup/options.js.map +0 -1
- package/lib/config/rollup/plugins.d.ts +0 -4
- package/lib/config/rollup/plugins.js +0 -59
- package/lib/config/rollup/plugins.js.map +0 -1
- package/lib/config/rollup/productionConfig.d.ts +0 -3
- package/lib/config/rollup/productionConfig.js +0 -13
- package/lib/config/rollup/productionConfig.js.map +0 -1
- package/lib/config/rollup/serverConfig.d.ts +0 -2
- package/lib/config/rollup/serverConfig.js +0 -24
- package/lib/config/rollup/serverConfig.js.map +0 -1
- package/lib/config/webpack/config.d.ts +0 -3
- package/lib/config/webpack/config.js +0 -31
- package/lib/config/webpack/config.js.map +0 -1
- package/lib/config/webpack/configBuilders/devServer.d.ts +0 -8
- package/lib/config/webpack/configBuilders/devServer.js +0 -58
- package/lib/config/webpack/configBuilders/devServer.js.map +0 -1
- package/lib/config/webpack/configBuilders/entry.d.ts +0 -12
- package/lib/config/webpack/configBuilders/entry.js +0 -13
- package/lib/config/webpack/configBuilders/entry.js.map +0 -1
- package/lib/config/webpack/configBuilders/module.d.ts +0 -8
- package/lib/config/webpack/configBuilders/module.js +0 -174
- package/lib/config/webpack/configBuilders/module.js.map +0 -1
- package/lib/config/webpack/configBuilders/optimization.d.ts +0 -7
- package/lib/config/webpack/configBuilders/optimization.js +0 -30
- package/lib/config/webpack/configBuilders/optimization.js.map +0 -1
- package/lib/config/webpack/configBuilders/output.d.ts +0 -12
- package/lib/config/webpack/configBuilders/output.js +0 -20
- package/lib/config/webpack/configBuilders/output.js.map +0 -1
- package/lib/config/webpack/configBuilders/plugins.d.ts +0 -10
- package/lib/config/webpack/configBuilders/plugins.js +0 -31
- package/lib/config/webpack/configBuilders/plugins.js.map +0 -1
- package/lib/config/webpack/echoWebpackModule.d.ts +0 -2
- package/lib/config/webpack/echoWebpackModule.js +0 -48
- package/lib/config/webpack/echoWebpackModule.js.map +0 -1
- package/lib/config/webpack/server.d.ts +0 -3
- package/lib/config/webpack/server.js +0 -22
- package/lib/config/webpack/server.js.map +0 -1
- package/lib/const/common.d.ts +0 -3
- package/lib/const/common.js +0 -4
- package/lib/const/common.js.map +0 -1
- package/lib/echo-build.d.ts +0 -13
- package/lib/echo-build.js +0 -51
- package/lib/echo-build.js.map +0 -1
- package/lib/echo-create.d.ts +0 -16
- package/lib/echo-create.js +0 -35
- package/lib/echo-create.js.map +0 -1
- package/lib/echo-manifest.d.ts +0 -6
- package/lib/echo-manifest.js +0 -13
- package/lib/echo-manifest.js.map +0 -1
- package/lib/echo-run.d.ts +0 -13
- package/lib/echo-run.js +0 -40
- package/lib/echo-run.js.map +0 -1
- package/lib/tools/buildScripts/rollupBuild.d.ts +0 -3
- package/lib/tools/buildScripts/rollupBuild.js +0 -79
- package/lib/tools/buildScripts/rollupBuild.js.map +0 -1
- package/lib/tools/buildScripts/webpackBuilds.d.ts +0 -3
- package/lib/tools/buildScripts/webpackBuilds.js +0 -87
- package/lib/tools/buildScripts/webpackBuilds.js.map +0 -1
- package/lib/tools/create/copyFile.d.ts +0 -2
- package/lib/tools/create/copyFile.js +0 -16
- package/lib/tools/create/copyFile.js.map +0 -1
- package/lib/tools/create/createProject.d.ts +0 -2
- package/lib/tools/create/createProject.js +0 -93
- package/lib/tools/create/createProject.js.map +0 -1
- package/lib/tools/create/createSetTargetDirectory.d.ts +0 -1
- package/lib/tools/create/createSetTargetDirectory.js +0 -12
- package/lib/tools/create/createSetTargetDirectory.js.map +0 -1
- package/lib/tools/create/getAppTemplateName.d.ts +0 -1
- package/lib/tools/create/getAppTemplateName.js +0 -22
- package/lib/tools/create/getAppTemplateName.js.map +0 -1
- package/lib/tools/create/gitInit.d.ts +0 -1
- package/lib/tools/create/gitInit.js +0 -19
- package/lib/tools/create/gitInit.js.map +0 -1
- package/lib/tools/create/promptOptions.d.ts +0 -2
- package/lib/tools/create/promptOptions.js +0 -96
- package/lib/tools/create/promptOptions.js.map +0 -1
- package/lib/tools/create/updatePackageConfig.d.ts +0 -2
- package/lib/tools/create/updatePackageConfig.js +0 -28
- package/lib/tools/create/updatePackageConfig.js.map +0 -1
- package/lib/tools/create/updateReadme.d.ts +0 -2
- package/lib/tools/create/updateReadme.js +0 -23
- package/lib/tools/create/updateReadme.js.map +0 -1
- package/lib/tools/run/start.d.ts +0 -9
- package/lib/tools/run/start.js +0 -27
- package/lib/tools/run/start.js.map +0 -1
- package/lib/tools/run/watch.d.ts +0 -1
- package/lib/tools/run/watch.js +0 -8
- package/lib/tools/run/watch.js.map +0 -1
- package/lib/types/createTypes.d.ts +0 -23
- package/lib/types/createTypes.js +0 -2
- package/lib/types/createTypes.js.map +0 -1
- package/lib/types/types.d.ts +0 -4
- package/lib/types/types.js +0 -2
- package/lib/types/types.js.map +0 -1
- package/lib/utils/getFile.d.ts +0 -4
- package/lib/utils/getFile.js +0 -34
- package/lib/utils/getFile.js.map +0 -1
- package/lib/utils/getFilePath.d.ts +0 -1
- package/lib/utils/getFilePath.js +0 -22
- package/lib/utils/getFilePath.js.map +0 -1
- package/lib/utils/logo.d.ts +0 -1
- package/lib/utils/logo.js +0 -11
- package/lib/utils/logo.js.map +0 -1
- package/lib/utils/merge.d.ts +0 -1
- package/lib/utils/merge.js +0 -8
- package/lib/utils/merge.js.map +0 -1
- package/lib/utils/timer.d.ts +0 -0
- package/lib/utils/timer.js +0 -2
- package/lib/utils/timer.js.map +0 -1
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see vendors-node_modules_azure_msal-browser_dist_controllers_NestedAppAuthController_mjs.3ab4a9273d5d4cae75fe.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_equinor_echo_client=self.webpackChunk_equinor_echo_client||[]).push([["vendors-node_modules_azure_msal-browser_dist_controllers_NestedAppAuthController_mjs"],{"./node_modules/@azure/msal-browser/dist/controllers/NestedAppAuthController.mjs":(e,t,r)=>{r.r(t),r.d(t,{NestedAppAuthController:()=>l});var o=r("./node_modules/@azure/msal-common/dist/crypto/ICrypto.mjs"),n=r("./node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.mjs"),s=r("./node_modules/@azure/msal-common/dist/utils/TimeUtils.mjs"),i=r("./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.mjs"),a=r("./node_modules/@azure/msal-browser/dist/crypto/CryptoOps.mjs"),d=r("./node_modules/@azure/msal-browser/dist/naa/mapping/NestedAppAuthAdapter.mjs"),u=r("./node_modules/@azure/msal-browser/dist/error/NestedAppAuthError.mjs"),c=r("./node_modules/@azure/msal-browser/dist/event/EventHandler.mjs"),p=r("./node_modules/@azure/msal-browser/dist/event/EventType.mjs");class l{constructor(e){this.operatingContext=e;const t=this.operatingContext.getBridgeProxy();if(void 0===t)throw new Error("unexpected: bridgeProxy is undefined");this.bridgeProxy=t,this.config=e.getConfig(),this.logger=this.operatingContext.getLogger(),this.performanceClient=this.config.telemetry.client,this.browserCrypto=e.isBrowserEnvironment()?new a.CryptoOps(this.logger,this.performanceClient):o.DEFAULT_CRYPTO_IMPLEMENTATION,this.eventHandler=new c.EventHandler(this.logger,this.browserCrypto),this.nestedAppAuthAdapter=new d.NestedAppAuthAdapter(this.config.auth.clientId,this.config.auth.clientCapabilities,this.browserCrypto,this.logger)}getBrowserStorage(){throw u.NestedAppAuthError.createUnsupportedError()}getEventHandler(){return this.eventHandler}static async createController(e){const t=new l(e);return Promise.resolve(t)}initialize(){return Promise.resolve()}ensureValidRequest(e){return e?.correlationId?e:{...e,correlationId:this.browserCrypto.createNewGuid()}}async acquireTokenInteractive(e){const t=this.ensureValidRequest(e);this.eventHandler.emitEvent(p.EventType.ACQUIRE_TOKEN_START,i.InteractionType.Popup,t);const r=this.performanceClient.startMeasurement(n.PerformanceEvents.AcquireTokenPopup,t.correlationId);r?.add({nestedAppAuthRequest:!0});try{const e=this.nestedAppAuthAdapter.toNaaTokenRequest(t),o=s.nowSeconds(),n=await this.bridgeProxy.getTokenInteractive(e),a=this.nestedAppAuthAdapter.fromNaaTokenResponse(e,n,o);return this.operatingContext.setActiveAccount(a.account),this.eventHandler.emitEvent(p.EventType.ACQUIRE_TOKEN_SUCCESS,i.InteractionType.Popup,a),r.add({accessTokenSize:a.accessToken.length,idTokenSize:a.idToken.length}),r.end({success:!0,requestId:a.requestId}),a}catch(e){const t=this.nestedAppAuthAdapter.fromBridgeError(e);throw this.eventHandler.emitEvent(p.EventType.ACQUIRE_TOKEN_FAILURE,i.InteractionType.Popup,null,e),r.end({success:!1},e),t}}async acquireTokenSilentInternal(e){const t=this.ensureValidRequest(e);this.eventHandler.emitEvent(p.EventType.ACQUIRE_TOKEN_START,i.InteractionType.Silent,t);const r=this.performanceClient.startMeasurement(n.PerformanceEvents.SsoSilent,t.correlationId);r?.increment({visibilityChangeCount:0}),r?.add({nestedAppAuthRequest:!0});try{const e=this.nestedAppAuthAdapter.toNaaTokenRequest(t),o=s.nowSeconds(),n=await this.bridgeProxy.getTokenSilent(e),a=this.nestedAppAuthAdapter.fromNaaTokenResponse(e,n,o);return this.operatingContext.setActiveAccount(a.account),this.eventHandler.emitEvent(p.EventType.ACQUIRE_TOKEN_SUCCESS,i.InteractionType.Silent,a),r?.add({accessTokenSize:a.accessToken.length,idTokenSize:a.idToken.length}),r?.end({success:!0,requestId:a.requestId}),a}catch(e){const t=this.nestedAppAuthAdapter.fromBridgeError(e);throw this.eventHandler.emitEvent(p.EventType.ACQUIRE_TOKEN_FAILURE,i.InteractionType.Silent,null,e),r?.end({success:!1},e),t}}async acquireTokenPopup(e){return this.acquireTokenInteractive(e)}acquireTokenRedirect(e){throw u.NestedAppAuthError.createUnsupportedError()}async acquireTokenSilent(e){return this.acquireTokenSilentInternal(e)}acquireTokenByCode(e){throw u.NestedAppAuthError.createUnsupportedError()}acquireTokenNative(e,t,r){throw u.NestedAppAuthError.createUnsupportedError()}acquireTokenByRefreshToken(e,t){throw u.NestedAppAuthError.createUnsupportedError()}addEventCallback(e){return this.eventHandler.addEventCallback(e)}removeEventCallback(e){this.eventHandler.removeEventCallback(e)}addPerformanceCallback(e){throw u.NestedAppAuthError.createUnsupportedError()}removePerformanceCallback(e){throw u.NestedAppAuthError.createUnsupportedError()}enableAccountStorageEvents(){throw u.NestedAppAuthError.createUnsupportedError()}disableAccountStorageEvents(){throw u.NestedAppAuthError.createUnsupportedError()}getAccount(e){throw u.NestedAppAuthError.createUnsupportedError()}getAccountByHomeId(e){const t=this.operatingContext.getActiveAccount();return void 0!==t&&t.homeAccountId===e?this.nestedAppAuthAdapter.fromNaaAccountInfo(t):null}getAccountByLocalId(e){const t=this.operatingContext.getActiveAccount();return void 0!==t&&t.localAccountId===e?this.nestedAppAuthAdapter.fromNaaAccountInfo(t):null}getAccountByUsername(e){const t=this.operatingContext.getActiveAccount();return void 0!==t&&t.username===e?this.nestedAppAuthAdapter.fromNaaAccountInfo(t):null}getAllAccounts(){const e=this.operatingContext.getActiveAccount();return void 0!==e?[this.nestedAppAuthAdapter.fromNaaAccountInfo(e)]:[]}handleRedirectPromise(e){return Promise.resolve(null)}loginPopup(e){return this.acquireTokenInteractive(e||i.DEFAULT_REQUEST)}loginRedirect(e){throw u.NestedAppAuthError.createUnsupportedError()}logout(e){throw u.NestedAppAuthError.createUnsupportedError()}logoutRedirect(e){throw u.NestedAppAuthError.createUnsupportedError()}logoutPopup(e){throw u.NestedAppAuthError.createUnsupportedError()}ssoSilent(e){return this.acquireTokenSilentInternal(e)}getTokenCache(){throw u.NestedAppAuthError.createUnsupportedError()}getLogger(){return this.logger}setLogger(e){this.logger=e}setActiveAccount(e){this.logger.warning("nestedAppAuth does not support setActiveAccount")}getActiveAccount(){const e=this.operatingContext.getActiveAccount();return void 0!==e?this.nestedAppAuthAdapter.fromNaaAccountInfo(e):null}initializeWrapperLibrary(e,t){}setNavigationClient(e){this.logger.warning("setNavigationClient is not supported in nested app auth")}getConfiguration(){return this.config}isBrowserEnv(){return this.operatingContext.isBrowserEnvironment()}getBrowserCrypto(){return this.browserCrypto}getPerformanceClient(){throw u.NestedAppAuthError.createUnsupportedError()}getRedirectResponse(){throw u.NestedAppAuthError.createUnsupportedError()}async clearCache(e){throw u.NestedAppAuthError.createUnsupportedError()}async hydrateCache(e,t){throw u.NestedAppAuthError.createUnsupportedError()}}},"./node_modules/@azure/msal-browser/dist/error/NestedAppAuthError.mjs":(e,t,r)=>{r.r(t),r.d(t,{NestedAppAuthError:()=>s,NestedAppAuthErrorMessage:()=>n});var o=r("./node_modules/@azure/msal-common/dist/error/AuthError.mjs");const n={unsupportedMethod:{code:"unsupported_method",desc:"The PKCE code challenge and verifier could not be generated."}};class s extends o.AuthError{constructor(e,t){super(e,t),Object.setPrototypeOf(this,s.prototype),this.name="NestedAppAuthError"}static createUnsupportedError(){return new s(n.unsupportedMethod.code,n.unsupportedMethod.desc)}}},"./node_modules/@azure/msal-browser/dist/naa/BridgeError.mjs":(e,t,r)=>{function o(e){return void 0!==e.status}r.r(t),r.d(t,{isBridgeError:()=>o})},"./node_modules/@azure/msal-browser/dist/naa/mapping/NestedAppAuthAdapter.mjs":(e,t,r)=>{r.r(t),r.d(t,{NestedAppAuthAdapter:()=>A});var o=r("./node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.mjs"),n=r("./node_modules/@azure/msal-common/dist/utils/Constants.mjs"),s=r("./node_modules/@azure/msal-common/dist/utils/StringUtils.mjs"),i=r("./node_modules/@azure/msal-common/dist/error/ClientAuthError.mjs"),a=r("./node_modules/@azure/msal-common/dist/error/ClientAuthErrorCodes.mjs"),d=r("./node_modules/@azure/msal-common/dist/account/AuthToken.mjs"),u=r("./node_modules/@azure/msal-common/dist/error/ServerError.mjs"),c=r("./node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.mjs"),p=r("./node_modules/@azure/msal-common/dist/error/AuthError.mjs"),l=r("./node_modules/@azure/msal-browser/dist/naa/BridgeError.mjs"),h=r("./node_modules/@azure/msal-browser/dist/naa/BridgeStatusCode.mjs");class A{constructor(e,t,r,o){this.clientId=e,this.clientCapabilities=t,this.crypto=r,this.logger=o}toNaaTokenRequest(e){let t;t=void 0===e.extraQueryParameters?new Map:new Map(Object.entries(e.extraQueryParameters));const r=(new o.RequestParameterBuilder).addClientCapabilitiesToClaims(e.claims,this.clientCapabilities),i=e.scopes||n.OIDC_DEFAULT_SCOPES;return{platformBrokerId:e.account?.homeAccountId,clientId:this.clientId,authority:e.authority,scope:i.join(" "),correlationId:void 0!==e.correlationId?e.correlationId:this.crypto.createNewGuid(),claims:s.StringUtils.isEmptyObj(r)?void 0:r,state:e.state,authenticationScheme:e.authenticationScheme||n.AuthenticationScheme.BEARER,extraParameters:t}}fromNaaTokenResponse(e,t,r){if(!t.token.id_token||!t.token.access_token)throw(0,i.createClientAuthError)(a.nullOrEmptyToken);const o=new Date(1e3*(r+(t.token.expires_in||0))),s=d.extractTokenClaims(t.token.id_token,this.crypto.base64Decode),u=this.fromNaaAccountInfo(t.account,s),c=t.token.scope||e.scope;return{authority:t.token.authority||u.environment,uniqueId:u.localAccountId,tenantId:u.tenantId,scopes:c.split(" "),account:u,idToken:t.token.id_token,idTokenClaims:s,accessToken:t.token.access_token,fromCache:!0,expiresOn:o,tokenType:e.authenticationScheme||n.AuthenticationScheme.BEARER,correlationId:e.correlationId,extExpiresOn:o,state:e.state}}fromNaaAccountInfo(e,t){const r=t||e.idTokenClaims,o=e.localAccountId||r?.oid||r?.sub||"",n=e.tenantId||r?.tid||"",s=e.homeAccountId||`${o}.${n}`,i=e.username||r?.preferred_username||"",a=e.name||r?.name;return{homeAccountId:s,environment:e.environment,tenantId:n,username:i,localAccountId:o,name:a,idToken:e.idToken,idTokenClaims:r}}fromBridgeError(e){if(!(0,l.isBridgeError)(e))return new p.AuthError("unknown_error","An unknown error occurred");switch(e.status){case h.BridgeStatusCode.UserCancel:return new i.ClientAuthError(a.userCanceled);case h.BridgeStatusCode.NoNetwork:return new i.ClientAuthError(a.noNetworkConnectivity);case h.BridgeStatusCode.AccountUnavailable:return new i.ClientAuthError(a.noAccountFound);case h.BridgeStatusCode.Disabled:return new i.ClientAuthError(a.nestedAppAuthBridgeDisabled);case h.BridgeStatusCode.NestedAppAuthUnavailable:return new i.ClientAuthError(e.code||a.nestedAppAuthBridgeDisabled,e.description);case h.BridgeStatusCode.TransientError:case h.BridgeStatusCode.PersistentError:return new u.ServerError(e.code,e.description);case h.BridgeStatusCode.UserInteractionRequired:return new c.InteractionRequiredAuthError(e.code,e.description);default:return new p.AuthError(e.code,e.description)}}}}}]);
|
|
3
|
-
//# sourceMappingURL=vendors-node_modules_azure_msal-browser_dist_controllers_NestedAppAuthController_mjs.3ab4a9273d5d4cae75fe.chunk.js.map
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/*! ../BridgeError.mjs */
|
|
2
|
-
|
|
3
|
-
/*! ../BridgeStatusCode.mjs */
|
|
4
|
-
|
|
5
|
-
/*! ../crypto/CryptoOps.mjs */
|
|
6
|
-
|
|
7
|
-
/*! ../error/NestedAppAuthError.mjs */
|
|
8
|
-
|
|
9
|
-
/*! ../event/EventHandler.mjs */
|
|
10
|
-
|
|
11
|
-
/*! ../event/EventType.mjs */
|
|
12
|
-
|
|
13
|
-
/*! ../naa/mapping/NestedAppAuthAdapter.mjs */
|
|
14
|
-
|
|
15
|
-
/*! ../utils/BrowserConstants.mjs */
|
|
16
|
-
|
|
17
|
-
/*! @azure/msal-browser v3.14.0 2024-05-07 */
|
|
18
|
-
|
|
19
|
-
/*! @azure/msal-common */
|
|
20
|
-
|
|
21
|
-
/*!*******************************************************************!*\
|
|
22
|
-
!*** ./node_modules/@azure/msal-browser/dist/naa/BridgeError.mjs ***!
|
|
23
|
-
\*******************************************************************/
|
|
24
|
-
|
|
25
|
-
/*!****************************************************************************!*\
|
|
26
|
-
!*** ./node_modules/@azure/msal-browser/dist/error/NestedAppAuthError.mjs ***!
|
|
27
|
-
\****************************************************************************/
|
|
28
|
-
|
|
29
|
-
/*!************************************************************************************!*\
|
|
30
|
-
!*** ./node_modules/@azure/msal-browser/dist/naa/mapping/NestedAppAuthAdapter.mjs ***!
|
|
31
|
-
\************************************************************************************/
|
|
32
|
-
|
|
33
|
-
/*!***************************************************************************************!*\
|
|
34
|
-
!*** ./node_modules/@azure/msal-browser/dist/controllers/NestedAppAuthController.mjs ***!
|
|
35
|
-
\***************************************************************************************/
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assets/vendors-node_modules_azure_msal-browser_dist_controllers_NestedAppAuthController_mjs.3ab4a9273d5d4cae75fe.chunk.js","mappings":";g+BAcA,MAAMA,EACF,WAAAC,CAAYC,GACRC,KAAKD,iBAAmBA,EACxB,MAAME,EAAQD,KAAKD,iBAAiBG,iBACpC,QAAcC,IAAVF,EAIA,MAAM,IAAIG,MAAM,wCAHhBJ,KAAKK,YAAcJ,EAMvBD,KAAKM,OAASP,EAAiBQ,YAE/BP,KAAKQ,OAASR,KAAKD,iBAAiBU,YAEpCT,KAAKU,kBAAoBV,KAAKM,OAAOK,UAAUC,OAE/CZ,KAAKa,cAAgBd,EAAiBe,uBAChC,IAAI,EAAAC,UAAUf,KAAKQ,OAAQR,KAAKU,mBAChC,EAAAM,8BACNhB,KAAKiB,aAAe,IAAI,EAAAC,aAAalB,KAAKQ,OAAQR,KAAKa,eACvDb,KAAKmB,qBAAuB,IAAI,EAAAC,qBAAqBpB,KAAKM,OAAOe,KAAKC,SAAUtB,KAAKM,OAAOe,KAAKE,mBAAoBvB,KAAKa,cAAeb,KAAKQ,OAClJ,CACA,iBAAAgB,GAC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AK,EAAAF,iBAAiBG,UAClB,OAAO,IAAI,EAAAD,gBAAgB,yBAC/B,KAAK,EAAAF,iBAAiBI,mBAClB,OAAO,IAAI,EAAAF,gBAAgB,kBAC/B,KAAK,EAAAF,iBAAiBK,SAClB,OAAO,IAAI,EAAAH,gBAAgB,+BAC/B,KAAK,EAAAF,iBAAiBM,yBAClB,OAAO,IAAI,EAAAJ,gBAAgB9H,EAAMqE,MAC7B,8BAAkDrE,EAAMmI,aAChE,KAAK,EAAAP,iBAAiBQ,eACtB,KAAK,EAAAR,iBAAiBS,gBAClB,OAAO,IAAI,EAAAC,YAAYtI,EAAMqE,KAAMrE,EAAMmI,aAC7C,KAAK,EAAAP,iBAAiBW,wBAClB,OAAO,IAAI,EAAAC,6BAA6BxI,EAAMqE,KAAMrE,EAAMmI,aAC9D,QACI,OAAO,IAAI,EAAA5D,UAAUvE,EAAMqE,KAAMrE,EAAMmI,aAMvD","sources":["webpack://@equinor/echo-client/./node_modules/@azure/msal-browser/dist/controllers/NestedAppAuthController.mjs","webpack://@equinor/echo-client/./node_modules/@azure/msal-browser/dist/error/NestedAppAuthError.mjs","webpack://@equinor/echo-client/./node_modules/@azure/msal-browser/dist/naa/BridgeError.mjs","webpack://@equinor/echo-client/./node_modules/@azure/msal-browser/dist/naa/mapping/NestedAppAuthAdapter.mjs"],"sourcesContent":["/*! @azure/msal-browser v3.14.0 2024-05-07 */\n'use strict';\nimport { DEFAULT_CRYPTO_IMPLEMENTATION, PerformanceEvents, TimeUtils } from '@azure/msal-common';\nimport { InteractionType, DEFAULT_REQUEST } from '../utils/BrowserConstants.mjs';\nimport { CryptoOps } from '../crypto/CryptoOps.mjs';\nimport { NestedAppAuthAdapter } from '../naa/mapping/NestedAppAuthAdapter.mjs';\nimport { NestedAppAuthError } from '../error/NestedAppAuthError.mjs';\nimport { EventHandler } from '../event/EventHandler.mjs';\nimport { EventType } from '../event/EventType.mjs';\n\n/*\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License.\n */\nclass NestedAppAuthController {\n constructor(operatingContext) {\n this.operatingContext = operatingContext;\n const proxy = this.operatingContext.getBridgeProxy();\n if (proxy !== undefined) {\n this.bridgeProxy = proxy;\n }\n else {\n throw new Error(\"unexpected: bridgeProxy is undefined\");\n }\n // Set the configuration.\n this.config = operatingContext.getConfig();\n // Initialize logger\n this.logger = this.operatingContext.getLogger();\n // Initialize performance client\n this.performanceClient = this.config.telemetry.client;\n // Initialize the crypto class.\n this.browserCrypto = operatingContext.isBrowserEnvironment()\n ? new CryptoOps(this.logger, this.performanceClient)\n : DEFAULT_CRYPTO_IMPLEMENTATION;\n this.eventHandler = new EventHandler(this.logger, this.browserCrypto);\n this.nestedAppAuthAdapter = new NestedAppAuthAdapter(this.config.auth.clientId, this.config.auth.clientCapabilities, this.browserCrypto, this.logger);\n }\n getBrowserStorage() {\n throw NestedAppAuthError.createUnsupportedError();\n }\n getEventHandler() {\n return this.eventHandler;\n }\n static async createController(operatingContext) {\n const controller = new NestedAppAuthController(operatingContext);\n return Promise.resolve(controller);\n }\n initialize() {\n // do nothing not required by this controller\n return Promise.resolve();\n }\n ensureValidRequest(request) {\n if (request?.correlationId) {\n return request;\n }\n return {\n ...request,\n correlationId: this.browserCrypto.createNewGuid(),\n };\n }\n async acquireTokenInteractive(request) {\n const validRequest = this.ensureValidRequest(request);\n this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, InteractionType.Popup, validRequest);\n const atPopupMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenPopup, validRequest.correlationId);\n atPopupMeasurement?.add({ nestedAppAuthRequest: true });\n try {\n const naaRequest = this.nestedAppAuthAdapter.toNaaTokenRequest(validRequest);\n const reqTimestamp = TimeUtils.nowSeconds();\n const response = await this.bridgeProxy.getTokenInteractive(naaRequest);\n const result = this.nestedAppAuthAdapter.fromNaaTokenResponse(naaRequest, response, reqTimestamp);\n this.operatingContext.setActiveAccount(result.account);\n this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, InteractionType.Popup, result);\n atPopupMeasurement.add({\n accessTokenSize: result.accessToken.length,\n idTokenSize: result.idToken.length,\n });\n atPopupMeasurement.end({\n success: true,\n requestId: result.requestId,\n });\n return result;\n }\n catch (e) {\n const error = this.nestedAppAuthAdapter.fromBridgeError(e);\n this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Popup, null, e);\n atPopupMeasurement.end({\n success: false,\n }, e);\n throw error;\n }\n }\n async acquireTokenSilentInternal(request) {\n const validRequest = this.ensureValidRequest(request);\n this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, InteractionType.Silent, validRequest);\n const ssoSilentMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.SsoSilent, validRequest.correlationId);\n ssoSilentMeasurement?.increment({\n visibilityChangeCount: 0,\n });\n ssoSilentMeasurement?.add({\n nestedAppAuthRequest: true,\n });\n try {\n const naaRequest = this.nestedAppAuthAdapter.toNaaTokenRequest(validRequest);\n const reqTimestamp = TimeUtils.nowSeconds();\n const response = await this.bridgeProxy.getTokenSilent(naaRequest);\n const result = this.nestedAppAuthAdapter.fromNaaTokenResponse(naaRequest, response, reqTimestamp);\n this.operatingContext.setActiveAccount(result.account);\n this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, InteractionType.Silent, result);\n ssoSilentMeasurement?.add({\n accessTokenSize: result.accessToken.length,\n idTokenSize: result.idToken.length,\n });\n ssoSilentMeasurement?.end({\n success: true,\n requestId: result.requestId,\n });\n return result;\n }\n catch (e) {\n const error = this.nestedAppAuthAdapter.fromBridgeError(e);\n this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Silent, null, e);\n ssoSilentMeasurement?.end({\n success: false,\n }, e);\n throw error;\n }\n }\n async acquireTokenPopup(request) {\n return this.acquireTokenInteractive(request);\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n acquireTokenRedirect(request) {\n throw NestedAppAuthError.createUnsupportedError();\n }\n async acquireTokenSilent(silentRequest) {\n return this.acquireTokenSilentInternal(silentRequest);\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n acquireTokenByCode(request // eslint-disable-line @typescript-eslint/no-unused-vars\n ) {\n throw NestedAppAuthError.createUnsupportedError();\n }\n acquireTokenNative(request, apiId, // eslint-disable-line @typescript-eslint/no-unused-vars\n accountId // eslint-disable-line @typescript-eslint/no-unused-vars\n ) {\n throw NestedAppAuthError.createUnsupportedError();\n }\n acquireTokenByRefreshToken(commonRequest, // eslint-disable-line @typescript-eslint/no-unused-vars\n silentRequest // eslint-disable-line @typescript-eslint/no-unused-vars\n ) {\n throw NestedAppAuthError.createUnsupportedError();\n }\n /**\n * Adds event callbacks to array\n * @param callback\n */\n addEventCallback(callback) {\n return this.eventHandler.addEventCallback(callback);\n }\n /**\n * Removes callback with provided id from callback array\n * @param callbackId\n */\n removeEventCallback(callbackId) {\n this.eventHandler.removeEventCallback(callbackId);\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n addPerformanceCallback(callback) {\n throw NestedAppAuthError.createUnsupportedError();\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n removePerformanceCallback(callbackId) {\n throw NestedAppAuthError.createUnsupportedError();\n }\n enableAccountStorageEvents() {\n throw NestedAppAuthError.createUnsupportedError();\n }\n disableAccountStorageEvents() {\n throw NestedAppAuthError.createUnsupportedError();\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n getAccount(accountFilter) {\n throw NestedAppAuthError.createUnsupportedError();\n // TODO: Look at standard implementation\n }\n getAccountByHomeId(homeAccountId) {\n const currentAccount = this.operatingContext.getActiveAccount();\n if (currentAccount !== undefined) {\n if (currentAccount.homeAccountId === homeAccountId) {\n return this.nestedAppAuthAdapter.fromNaaAccountInfo(currentAccount);\n }\n else {\n return null;\n }\n }\n else {\n return null;\n }\n }\n getAccountByLocalId(localId) {\n const currentAccount = this.operatingContext.getActiveAccount();\n if (currentAccount !== undefined) {\n if (currentAccount.localAccountId === localId) {\n return this.nestedAppAuthAdapter.fromNaaAccountInfo(currentAccount);\n }\n else {\n return null;\n }\n }\n else {\n return null;\n }\n }\n getAccountByUsername(userName) {\n const currentAccount = this.operatingContext.getActiveAccount();\n if (currentAccount !== undefined) {\n if (currentAccount.username === userName) {\n return this.nestedAppAuthAdapter.fromNaaAccountInfo(currentAccount);\n }\n else {\n return null;\n }\n }\n else {\n return null;\n }\n }\n getAllAccounts() {\n const currentAccount = this.operatingContext.getActiveAccount();\n if (currentAccount !== undefined) {\n return [\n this.nestedAppAuthAdapter.fromNaaAccountInfo(currentAccount),\n ];\n }\n else {\n return [];\n }\n }\n handleRedirectPromise(hash // eslint-disable-line @typescript-eslint/no-unused-vars\n ) {\n return Promise.resolve(null);\n }\n loginPopup(request // eslint-disable-line @typescript-eslint/no-unused-vars\n ) {\n return this.acquireTokenInteractive(request || DEFAULT_REQUEST);\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n loginRedirect(request) {\n throw NestedAppAuthError.createUnsupportedError();\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n logout(logoutRequest) {\n throw NestedAppAuthError.createUnsupportedError();\n }\n logoutRedirect(logoutRequest // eslint-disable-line @typescript-eslint/no-unused-vars\n ) {\n throw NestedAppAuthError.createUnsupportedError();\n }\n logoutPopup(logoutRequest // eslint-disable-line @typescript-eslint/no-unused-vars\n ) {\n throw NestedAppAuthError.createUnsupportedError();\n }\n ssoSilent(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n request) {\n return this.acquireTokenSilentInternal(request);\n }\n getTokenCache() {\n throw NestedAppAuthError.createUnsupportedError();\n }\n /**\n * Returns the logger instance\n */\n getLogger() {\n return this.logger;\n }\n /**\n * Replaces the default logger set in configurations with new Logger with new configurations\n * @param logger Logger instance\n */\n setLogger(logger) {\n this.logger = logger;\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n setActiveAccount(account) {\n /*\n * StandardController uses this to allow the developer to set the active account\n * in the nested app auth scenario the active account is controlled by the app hosting the nested app\n */\n this.logger.warning(\"nestedAppAuth does not support setActiveAccount\");\n return;\n }\n getActiveAccount() {\n const currentAccount = this.operatingContext.getActiveAccount();\n if (currentAccount !== undefined) {\n return this.nestedAppAuthAdapter.fromNaaAccountInfo(currentAccount);\n }\n else {\n return null;\n }\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n initializeWrapperLibrary(sku, version) {\n /*\n * Standard controller uses this to set the sku and version of the wrapper library in the storage\n * we do nothing here\n */\n return;\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n setNavigationClient(navigationClient) {\n this.logger.warning(\"setNavigationClient is not supported in nested app auth\");\n }\n getConfiguration() {\n return this.config;\n }\n isBrowserEnv() {\n return this.operatingContext.isBrowserEnvironment();\n }\n getBrowserCrypto() {\n return this.browserCrypto;\n }\n getPerformanceClient() {\n throw NestedAppAuthError.createUnsupportedError();\n }\n getRedirectResponse() {\n throw NestedAppAuthError.createUnsupportedError();\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async clearCache(logoutRequest) {\n throw NestedAppAuthError.createUnsupportedError();\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async hydrateCache(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n result, \n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n request) {\n throw NestedAppAuthError.createUnsupportedError();\n }\n}\n\nexport { NestedAppAuthController };\n//# sourceMappingURL=NestedAppAuthController.mjs.map\n","/*! @azure/msal-browser v3.14.0 2024-05-07 */\n'use strict';\nimport { AuthError } from '@azure/msal-common';\n\n/*\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License.\n */\n/**\n * NestedAppAuthErrorMessage class containing string constants used by error codes and messages.\n */\nconst NestedAppAuthErrorMessage = {\n unsupportedMethod: {\n code: \"unsupported_method\",\n desc: \"The PKCE code challenge and verifier could not be generated.\",\n },\n};\nclass NestedAppAuthError extends AuthError {\n constructor(errorCode, errorMessage) {\n super(errorCode, errorMessage);\n Object.setPrototypeOf(this, NestedAppAuthError.prototype);\n this.name = \"NestedAppAuthError\";\n }\n static createUnsupportedError() {\n return new NestedAppAuthError(NestedAppAuthErrorMessage.unsupportedMethod.code, NestedAppAuthErrorMessage.unsupportedMethod.desc);\n }\n}\n\nexport { NestedAppAuthError, NestedAppAuthErrorMessage };\n//# sourceMappingURL=NestedAppAuthError.mjs.map\n","/*! @azure/msal-browser v3.14.0 2024-05-07 */\n'use strict';\n/*\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License.\n */\nfunction isBridgeError(error) {\n return error.status !== undefined;\n}\n\nexport { isBridgeError };\n//# sourceMappingURL=BridgeError.mjs.map\n","/*! @azure/msal-browser v3.14.0 2024-05-07 */\n'use strict';\nimport { RequestParameterBuilder, StringUtils, AuthenticationScheme, createClientAuthError, ClientAuthErrorCodes, AuthToken, AuthError, InteractionRequiredAuthError, ServerError, ClientAuthError, OIDC_DEFAULT_SCOPES } from '@azure/msal-common';\nimport { isBridgeError } from '../BridgeError.mjs';\nimport { BridgeStatusCode } from '../BridgeStatusCode.mjs';\n\n/*\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License.\n */\nclass NestedAppAuthAdapter {\n constructor(clientId, clientCapabilities, crypto, logger) {\n this.clientId = clientId;\n this.clientCapabilities = clientCapabilities;\n this.crypto = crypto;\n this.logger = logger;\n }\n toNaaTokenRequest(request) {\n let extraParams;\n if (request.extraQueryParameters === undefined) {\n extraParams = new Map();\n }\n else {\n extraParams = new Map(Object.entries(request.extraQueryParameters));\n }\n const requestBuilder = new RequestParameterBuilder();\n const claims = requestBuilder.addClientCapabilitiesToClaims(request.claims, this.clientCapabilities);\n const scopes = request.scopes || OIDC_DEFAULT_SCOPES;\n const tokenRequest = {\n platformBrokerId: request.account?.homeAccountId,\n clientId: this.clientId,\n authority: request.authority,\n scope: scopes.join(\" \"),\n correlationId: request.correlationId !== undefined\n ? request.correlationId\n : this.crypto.createNewGuid(),\n claims: !StringUtils.isEmptyObj(claims) ? claims : undefined,\n state: request.state,\n authenticationScheme: request.authenticationScheme || AuthenticationScheme.BEARER,\n extraParameters: extraParams,\n };\n return tokenRequest;\n }\n fromNaaTokenResponse(request, response, reqTimestamp) {\n if (!response.token.id_token || !response.token.access_token) {\n throw createClientAuthError(ClientAuthErrorCodes.nullOrEmptyToken);\n }\n const expiresOn = new Date((reqTimestamp + (response.token.expires_in || 0)) * 1000);\n const idTokenClaims = AuthToken.extractTokenClaims(response.token.id_token, this.crypto.base64Decode);\n const account = this.fromNaaAccountInfo(response.account, idTokenClaims);\n const scopes = response.token.scope || request.scope;\n const authenticationResult = {\n authority: response.token.authority || account.environment,\n uniqueId: account.localAccountId,\n tenantId: account.tenantId,\n scopes: scopes.split(\" \"),\n account,\n idToken: response.token.id_token,\n idTokenClaims,\n accessToken: response.token.access_token,\n fromCache: true,\n expiresOn: expiresOn,\n tokenType: request.authenticationScheme || AuthenticationScheme.BEARER,\n correlationId: request.correlationId,\n extExpiresOn: expiresOn,\n state: request.state,\n };\n return authenticationResult;\n }\n /*\n * export type AccountInfo = {\n * homeAccountId: string;\n * environment: string;\n * tenantId: string;\n * username: string;\n * localAccountId: string;\n * name?: string;\n * idToken?: string;\n * idTokenClaims?: TokenClaims & {\n * [key: string]:\n * | string\n * | number\n * | string[]\n * | object\n * | undefined\n * | unknown;\n * };\n * nativeAccountId?: string;\n * authorityType?: string;\n * };\n */\n fromNaaAccountInfo(fromAccount, idTokenClaims) {\n const effectiveIdTokenClaims = idTokenClaims || fromAccount.idTokenClaims;\n const localAccountId = fromAccount.localAccountId ||\n effectiveIdTokenClaims?.oid ||\n effectiveIdTokenClaims?.sub ||\n \"\";\n const tenantId = fromAccount.tenantId || effectiveIdTokenClaims?.tid || \"\";\n const homeAccountId = fromAccount.homeAccountId || `${localAccountId}.${tenantId}`;\n const username = fromAccount.username ||\n effectiveIdTokenClaims?.preferred_username ||\n \"\";\n const name = fromAccount.name || effectiveIdTokenClaims?.name;\n const account = {\n homeAccountId,\n environment: fromAccount.environment,\n tenantId,\n username,\n localAccountId,\n name,\n idToken: fromAccount.idToken,\n idTokenClaims: effectiveIdTokenClaims,\n };\n return account;\n }\n /**\n *\n * @param error BridgeError\n * @returns AuthError, ClientAuthError, ClientConfigurationError, ServerError, InteractionRequiredError\n */\n fromBridgeError(error) {\n if (isBridgeError(error)) {\n switch (error.status) {\n case BridgeStatusCode.UserCancel:\n return new ClientAuthError(ClientAuthErrorCodes.userCanceled);\n case BridgeStatusCode.NoNetwork:\n return new ClientAuthError(ClientAuthErrorCodes.noNetworkConnectivity);\n case BridgeStatusCode.AccountUnavailable:\n return new ClientAuthError(ClientAuthErrorCodes.noAccountFound);\n case BridgeStatusCode.Disabled:\n return new ClientAuthError(ClientAuthErrorCodes.nestedAppAuthBridgeDisabled);\n case BridgeStatusCode.NestedAppAuthUnavailable:\n return new ClientAuthError(error.code ||\n ClientAuthErrorCodes.nestedAppAuthBridgeDisabled, error.description);\n case BridgeStatusCode.TransientError:\n case BridgeStatusCode.PersistentError:\n return new ServerError(error.code, error.description);\n case BridgeStatusCode.UserInteractionRequired:\n return new InteractionRequiredAuthError(error.code, error.description);\n default:\n return new AuthError(error.code, error.description);\n }\n }\n else {\n return new AuthError(\"unknown_error\", \"An unknown error occurred\");\n }\n }\n}\n\nexport { NestedAppAuthAdapter };\n//# sourceMappingURL=NestedAppAuthAdapter.mjs.map\n"],"names":["NestedAppAuthController","constructor","operatingContext","this","proxy","getBridgeProxy","undefined","Error","bridgeProxy","config","getConfig","logger","getLogger","performanceClient","telemetry","client","browserCrypto","isBrowserEnvironment","CryptoOps","DEFAULT_CRYPTO_IMPLEMENTATION","eventHandler","EventHandler","nestedAppAuthAdapter","NestedAppAuthAdapter","auth","clientId","clientCapabilities","getBrowserStorage","NestedAppAuthError","createUnsupportedError","getEventHandler","createController","controller","Promise","resolve","initialize","ensureValidRequest","request","correlationId","createNewGuid","acquireTokenInteractive","validRequest","emitEvent","EventType","ACQUIRE_TOKEN_START","InteractionType","Popup","atPopupMeasurement","startMeasurement","PerformanceEvents","AcquireTokenPopup","add","nestedAppAuthRequest","naaRequest","toNaaTokenRequest","reqTimestamp","response","getTokenInteractive","result","fromNaaTokenResponse","setActiveAccount","account","ACQUIRE_TOKEN_SUCCESS","accessTokenSize","accessToken","length","idTokenSize","idToken","end","success","requestId","e","error","fromBridgeError","ACQUIRE_TOKEN_FAILURE","acquireTokenSilentInternal","Silent","ssoSilentMeasurement","SsoSilent","increment","visibilityChangeCount","getTokenSilent","acquireTokenPopup","acquireTokenRedirect","acquireTokenSilent","silentRequest","acquireTokenByCode","acquireTokenNative","apiId","accountId","acquireTokenByRefreshToken","commonRequest","addEventCallback","callback","removeEventCallback","callbackId","addPerformanceCallback","removePerformanceCallback","enableAccountStorageEvents","disableAccountStorageEvents","getAccount","accountFilter","getAccountByHomeId","homeAccountId","currentAccount","getActiveAccount","fromNaaAccountInfo","getAccountByLocalId","localId","localAccountId","getAccountByUsername","userName","username","getAllAccounts","handleRedirectPromise","hash","loginPopup","DEFAULT_REQUEST","loginRedirect","logout","logoutRequest","logoutRedirect","logoutPopup","ssoSilent","getTokenCache","setLogger","warning","initializeWrapperLibrary","sku","version","setNavigationClient","navigationClient","getConfiguration","isBrowserEnv","getBrowserCrypto","getPerformanceClient","getRedirectResponse","clearCache","hydrateCache","NestedAppAuthErrorMessage","unsupportedMethod","code","desc","AuthError","errorCode","errorMessage","super","Object","setPrototypeOf","prototype","name","isBridgeError","status","crypto","extraParams","extraQueryParameters","Map","entries","claims","RequestParameterBuilder","addClientCapabilitiesToClaims","scopes","OIDC_DEFAULT_SCOPES","platformBrokerId","authority","scope","join","StringUtils","isEmptyObj","state","authenticationScheme","AuthenticationScheme","BEARER","extraParameters","token","id_token","access_token","createClientAuthError","expiresOn","Date","expires_in","idTokenClaims","base64Decode","environment","uniqueId","tenantId","split","fromCache","tokenType","extExpiresOn","fromAccount","effectiveIdTokenClaims","oid","sub","tid","preferred_username","BridgeStatusCode","UserCancel","ClientAuthError","NoNetwork","AccountUnavailable","Disabled","NestedAppAuthUnavailable","description","TransientError","PersistentError","ServerError","UserInteractionRequired","InteractionRequiredAuthError"],"sourceRoot":""}
|
|
Binary file
|
package/client/env-config.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
window._env_={HTTPS:"true",GENERATE_SOURCEMAP:"true",INLINE_RUNTIME_CHUNK:"false",WEBSITE_HOSTNAME:"localhost:3000;",REACT_APP_DEFAULT_CACHE_LOCATION:"localstorage",REACT_APP_API_URL:"https://dt-echopedia-api-dev.azurewebsites.net",REACT_APP_WEB_URL:"https://dt-echopedia-web-dev.azurewebsites.net",REACT_APP_WEB_PROD_URL:"https://echo.equinor.com",REACT_APP_AZURE_AD_TENNANT:"StatoilSRM.onmicrosoft.com",REACT_APP_AZURE_AD_TENNANT_ID:"3aa4a235-b6e2-48d5-9195-7fcf05b459b0",REACT_APP_AZURE_AD_CLIENT_ID:"751d2504-0b66-4b78-9807-4b60525a14c6",REACT_APP_API_CLIENT_ID:"aef35d97-53d4-4fd0-adaf-c5a514b38436",REACT_APP_APPINSIGHTS_INSTRUMENTATIONKEY:"e5299075-a00d-4012-96f9-42861e8d8a9e",REACT_APP_APPINSIGHTS_CONNECTION_STRING:"InstrumentationKey=e5299075-a00d-4012-96f9-42861e8d8a9e;IngestionEndpoint=https://northeurope-3.in.applicationinsights.azure.com/;LiveEndpoint=https://northeurope.livediagnostics.monitor.azure.com/;ApplicationId=a9b64222-d4a9-42e6-a615-7428fe1a26af",REACT_APP_AZURE_BUILD_NUMBER:"0.8.dev.9",REACT_APP_LOGGER_ACTIVE:"false"};
|
package/client/index.css
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
body {
|
|
2
|
-
overflow: hidden;
|
|
3
|
-
margin: 0;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.highlightedText {
|
|
7
|
-
background: yellow;
|
|
8
|
-
color: black;
|
|
9
|
-
padding: 0;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
#rootloading {
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
color: #ff1243;
|
|
16
|
-
justify-content: center;
|
|
17
|
-
align-items: center;
|
|
18
|
-
text-align: center;
|
|
19
|
-
position: absolute;
|
|
20
|
-
width: 100%;
|
|
21
|
-
height: 100%;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.loaderContainer {
|
|
25
|
-
margin: 8px auto;
|
|
26
|
-
display: flex;
|
|
27
|
-
flex-direction: column;
|
|
28
|
-
padding-top: 0;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.productLogo {
|
|
32
|
-
flex: 1;
|
|
33
|
-
margin-bottom: 4rem;
|
|
34
|
-
text-align: left;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.productLogoImg {
|
|
38
|
-
display: inline-block;
|
|
39
|
-
vertical-align: baseline;
|
|
40
|
-
width: 122px;
|
|
41
|
-
animation: fadeIn 0.5s;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.equinorLogo {
|
|
45
|
-
margin: 0 auto;
|
|
46
|
-
display: inline-block;
|
|
47
|
-
vertical-align: baseline;
|
|
48
|
-
width: 64px;
|
|
49
|
-
height: 64px;
|
|
50
|
-
animation: fadeIn 0.5s;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@keyframes fadeIn {
|
|
54
|
-
0% {
|
|
55
|
-
opacity: 0;
|
|
56
|
-
}
|
|
57
|
-
100% {
|
|
58
|
-
opacity: 1;
|
|
59
|
-
}
|
|
60
|
-
}
|
package/client/index.html
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<script type="application/javascript" src="./env-config.js"></script>
|
|
6
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
7
|
-
<meta
|
|
8
|
-
name="viewport"
|
|
9
|
-
content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover"
|
|
10
|
-
/>
|
|
11
|
-
<link href="./index.css" rel="stylesheet" />
|
|
12
|
-
<link rel="stylesheet" href="https://cdn.eds.equinor.com/font/equinor-font.css" />
|
|
13
|
-
<link rel="preconnect" href="https://login.microsoftonline.com" />
|
|
14
|
-
<link rel="preconnect" href="https://dc.services.visualstudio.com" />
|
|
15
|
-
<link rel="preconnect" href="https://cdn.eds.equinor.com" />
|
|
16
|
-
<title>Echo | Development</title>
|
|
17
|
-
<script defer src="/vendors-node_modules_react-dom_client_js-node_modules_babel_polyfill_lib_index_js-node_module-cb4c76.echo.bundle.js"></script><script defer src="/main.echo.bundle.js"></script></head>
|
|
18
|
-
<body>
|
|
19
|
-
<div id="root"></div>
|
|
20
|
-
</body>
|
|
21
|
-
</html>
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see main.echo.bundle.js.LICENSE.txt */
|
|
2
|
-
(()=>{var e,n,t,o,r,s={"./node_modules/css-loader/dist/cjs.js!./src/app.css":(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var o=t("./node_modules/css-loader/dist/runtime/sourceMaps.js"),r=t.n(o),s=t("./node_modules/css-loader/dist/runtime/api.js"),i=t.n(s)()(r());i.push([e.id,"/* Applied in echo application by bootstrap so it should exist here to */\n*,\n:after,\n:before {\n box-sizing: border-box;\n}\n\n#root {\n height: 100%;\n overflow: hidden;\n width: 100%;\n}\n","",{version:3,sources:["webpack://./src/app.css"],names:[],mappings:"AAAA,wEAAwE;AACxE;;;IAGI,sBAAsB;AAC1B;;AAEA;IACI,YAAY;IACZ,gBAAgB;IAChB,WAAW;AACf",sourcesContent:["/* Applied in echo application by bootstrap so it should exist here to */\r\n*,\r\n:after,\r\n:before {\r\n box-sizing: border-box;\r\n}\r\n\r\n#root {\r\n height: 100%;\r\n overflow: hidden;\r\n width: 100%;\r\n}\r\n"],sourceRoot:""}]);const u=i},"./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./src/components/Home/home.module.css":(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var o=t("./node_modules/css-loader/dist/runtime/sourceMaps.js"),r=t.n(o),s=t("./node_modules/css-loader/dist/runtime/api.js"),i=t.n(s)()(r());i.push([e.id,".echo-Home__home-pPNVd {\n display: grid;\n grid-template-rows: 30% 100px auto 56px;\n gap: 1rem;\n height: 100%;\n width: 100%;\n}\n\n.echo-Home__plantSelector-AlrNf {\n display: flex;\n justify-content: center;\n align-items: baseline;\n align-self: center;\n flex-flow: wrap;\n}\n\n.echo-Home__heading-vnGkQ {\n padding-left: 18px;\n}\n\n.echo-Home__brandSliderContainer-qt0N4 {\n display: flex;\n flex: 1 1;\n flex-flow: column-reverse;\n margin: 0;\n width: 100%;\n overflow: hidden;\n object-fit: cover;\n}\n\n.echo-Home__appBar-XBn9u {\n margin: 0 auto 48px;\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n align-items: flex-start;\n}\n\n","",{version:3,sources:["webpack://./src/components/Home/home.module.css"],names:[],mappings:"AAAA;IACI,aAAa;IACb,uCAAuC;IACvC,SAAS;IACT,YAAY;IACZ,WAAW;AACf;;AAEA;IACI,aAAa;IACb,uBAAuB;IACvB,qBAAqB;IACrB,kBAAkB;IAClB,eAAe;AACnB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,aAAa;IACb,SAAS;IACT,yBAAyB;IACzB,SAAS;IACT,WAAW;IACX,gBAAgB;IAChB,iBAAiB;AACrB;;AAEA;IACI,mBAAmB;IACnB,aAAa;IACb,eAAe;IACf,uBAAuB;IACvB,uBAAuB;AAC3B",sourcesContent:[".home {\r\n display: grid;\r\n grid-template-rows: 30% 100px auto 56px;\r\n gap: 1rem;\r\n height: 100%;\r\n width: 100%;\r\n}\r\n\r\n.plantSelector {\r\n display: flex;\r\n justify-content: center;\r\n align-items: baseline;\r\n align-self: center;\r\n flex-flow: wrap;\r\n}\r\n\r\n.heading {\r\n padding-left: 18px;\r\n}\r\n\r\n.brandSliderContainer {\r\n display: flex;\r\n flex: 1 1;\r\n flex-flow: column-reverse;\r\n margin: 0;\r\n width: 100%;\r\n overflow: hidden;\r\n object-fit: cover;\r\n}\r\n\r\n.appBar {\r\n margin: 0 auto 48px;\r\n display: flex;\r\n flex-wrap: wrap;\r\n justify-content: center;\r\n align-items: flex-start;\r\n}\r\n\r\n"],sourceRoot:""}]),i.locals={home:"echo-Home__home-pPNVd",plantSelector:"echo-Home__plantSelector-AlrNf",heading:"echo-Home__heading-vnGkQ",brandSliderContainer:"echo-Home__brandSliderContainer-qt0N4",appBar:"echo-Home__appBar-XBn9u"};const u=i},"./src/images/frontpage-brand-placeholder.jpg":(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>o});const o=t.p+"d2d97a9feca22f12a8c8c7413d7867ac.jpg"},"./src/app.css":(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>v});var o=t("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),r=t.n(o),s=t("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),i=t.n(s),u=t("./node_modules/style-loader/dist/runtime/insertBySelector.js"),a=t.n(u),l=t("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),c=t.n(l),d=t("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),f=t.n(d),h=t("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),m=t.n(h),p=t("./node_modules/css-loader/dist/cjs.js!./src/app.css"),A={};A.styleTagTransform=m(),A.setAttributes=c(),A.insert=a().bind(null,"head"),A.domAPI=i(),A.insertStyleElement=f(),r()(p.default,A);const v=p.default&&p.default.locals?p.default.locals:void 0},"./src/components/Home/home.module.css":(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>v});var o=t("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),r=t.n(o),s=t("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),i=t.n(s),u=t("./node_modules/style-loader/dist/runtime/insertBySelector.js"),a=t.n(u),l=t("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),c=t.n(l),d=t("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),f=t.n(d),h=t("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),m=t.n(h),p=t("./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./src/components/Home/home.module.css"),A={};A.styleTagTransform=m(),A.setAttributes=c(),A.insert=a().bind(null,"head"),A.domAPI=i(),A.insertStyleElement=f(),r()(p.default,A);const v=p.default&&p.default.locals?p.default.locals:void 0},"./src/api/api-plants.ts":function(e,n,t){"use strict";var o=this&&this.__awaiter||function(e,n,t,o){return new(t||(t=Promise))((function(r,s){function i(e){try{a(o.next(e))}catch(e){s(e)}}function u(e){try{a(o.throw(e))}catch(e){s(e)}}function a(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(i,u)}a((o=o.apply(e,n||[])).next())}))},r=this&&this.__generator||function(e,n){var t,o,r,s,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(i=0)),i;)try{if(t=1,o&&(r=2&u[0]?o.return:u[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,u[1])).done)return r;switch(o=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,o=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){i.label=u[1];break}if(6===u[0]&&i.label<r[1]){i.label=r[1],r=u;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(u);break}r[2]&&i.ops.pop(),i.trys.pop();continue}u=n.call(e,i)}catch(e){u=[6,e],o=0}finally{t=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}};Object.defineProperty(n,"__esModule",{value:!0}),n.getCorePlants=function(){return o(this,void 0,void 0,(function(){var e,n,t;return r(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,i()];case 1:return(e=null!==(t=o.sent())&&void 0!==t?t:[])&&e.length>0&&(0,s.setPlantsData)({plants:e}),[3,3];case 2:return n=o.sent(),console.error(n),[3,3];case 3:return[2]}}))}))};var s=t("./node_modules/@equinor/echo-core/index.cjs.js");function i(){return o(this,void 0,void 0,(function(){var e;return r(this,(function(n){return e="".concat(s.EchoEnv.env().REACT_APP_API_URL,"/plants"),[2,(0,s.request)({url:e,cache:{timeInSeconds:14400}})]}))}))}},"./src/app.tsx":function(e,n,t){"use strict";var o=this&&this.__awaiter||function(e,n,t,o){return new(t||(t=Promise))((function(r,s){function i(e){try{a(o.next(e))}catch(e){s(e)}}function u(e){try{a(o.throw(e))}catch(e){s(e)}}function a(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(i,u)}a((o=o.apply(e,n||[])).next())}))},r=this&&this.__generator||function(e,n){var t,o,r,s,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(i=0)),i;)try{if(t=1,o&&(r=2&u[0]?o.return:u[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,u[1])).done)return r;switch(o=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,o=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){i.label=u[1];break}if(6===u[0]&&i.label<r[1]){i.label=r[1],r=u;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(u);break}r[2]&&i.ops.pop(),i.trys.pop();continue}u=n.call(e,i)}catch(e){u=[6,e],o=0}finally{t=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}};Object.defineProperty(n,"__esModule",{value:!0}),n.EchoApp=void 0;var s=t("../../node_modules/react/jsx-runtime.js"),i=t("./node_modules/@equinor/echo-core/index.cjs.js"),u=t("./node_modules/@equinor/echo-framework/index.cjs.js"),a=t("./node_modules/@equinor/echo-search/index.cjs.js"),l=t("./node_modules/@equinor/echo-utils/index.esm.js"),c=t("../../node_modules/react-router-dom/esm/react-router-dom.js"),d=t("./src/api/api-plants.ts");t("./src/app.css");var f=t("./src/components/Home/Home.tsx"),h=t("./src/components/legend.tsx"),m=c.Switch,p=c.Route,A=c.Redirect;n.EchoApp=function(){return(0,i.useInitial)((function(){return o(void 0,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,a.Syncer.configuration.setApiBaseUrl(i.EchoEnv.env().REACT_APP_API_URL)];case 1:return e.sent(),(0,l.fireAndForget)(d.getCorePlants),[2]}}))}))})),(0,s.jsx)(u.EchoEventHandler,{children:(0,s.jsxs)(u.EchoContent,{Legend:h.Legend,children:[(0,s.jsxs)(m,{children:[(0,s.jsx)(u.EchoRoutes,{homeComponent:f.Home}),(0,s.jsx)(p,{render:function(){return(0,s.jsx)(A,{to:"/"})}})]}),(0,s.jsx)(u.Toasters,{})]})})}},"./src/components/Home/Home.tsx":function(e,n,t){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.Home=void 0;var r=t("../../node_modules/react/jsx-runtime.js"),s=t("./node_modules/@equinor/echo-framework/index.cjs.js"),i=o(t("./src/images/frontpage-brand-placeholder.jpg")),u=o(t("./src/components/Home/home.module.css"));n.Home=function(){return(0,r.jsxs)("main",{className:u.default.home,children:[(0,r.jsxs)("div",{className:u.default.plantSelector,children:[(0,r.jsx)("div",{children:(0,r.jsx)(s.EchoLogo,{})}),(0,r.jsx)(s.PlantSelector,{variant:"compact"})]}),(0,r.jsx)(s.AppLinks,{}),(0,r.jsx)("div",{className:u.default.brandSliderContainer,children:(0,r.jsx)("img",{src:i.default,alt:"Application Echo on tablet"})}),(0,r.jsx)(s.Footer,{})]})}},"./src/components/legend.tsx":(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Legend=void 0,n.Legend=function(){return null}},"./src/index.tsx":function(e,n,t){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o.apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),s=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)"default"!==t&&Object.prototype.hasOwnProperty.call(e,t)&&r(n,e,t);return s(n,e),n};Object.defineProperty(n,"__esModule",{value:!0});var u=t("../../node_modules/react/jsx-runtime.js");t("./node_modules/@equinor/echo-components/style-reset.css");var a=i(t("./node_modules/@equinor/echo-core/index.cjs.js")),l=t("./node_modules/@equinor/echo-framework/index.cjs.js"),c=t("./node_modules/@equinor/eds-core-react/dist/esm/index.js"),d=i(t("./node_modules/@equinor/eds-icons/dist/esm/index.js")),f=t("./src/utils/setupSkipAuth.ts"),h=t("../../node_modules/@tanstack/react-query/build/modern/index.cjs"),m=t("../../node_modules/react-dom/client.js"),p=t("../../node_modules/react-router-dom/esm/react-router-dom.js"),A=t("./src/app.tsx"),v=p.BrowserRouter,_=a.EventHubProvider;if(window===window.parent||window.opener){var b=document.getElementById("root");(0,m.createRoot)(b).render((0,u.jsx)((function(){(0,f.initForE2ETests)();var e=a.default.useEchoSetup({leftPanels:[l.searchPanel],rightPanel:l.mainMenu});c.Icon.add(o({},d));var n={createApi:(0,a.createEchoAppModuleApi)(),dependencies:{react:t("../../node_modules/react/index.js"),"react-dom":t("../../node_modules/react-dom/index.js"),"react-router-dom":t("../../node_modules/react-router-dom/esm/react-router-dom.js"),"@equinor/echo-core":t("./node_modules/@equinor/echo-core/index.cjs.js"),"@equinor/echo-framework":t("./node_modules/@equinor/echo-framework/index.cjs.js"),"@equinor/echo-utils":t("./node_modules/@equinor/echo-utils/index.esm.js"),"@equinor/echo-components":t("./node_modules/@equinor/echo-components/index.cjs.js"),"@equinor/echo-base":t("./node_modules/@equinor/echo-base/index.cjs.js"),"@equinor/echo-search":t("./node_modules/@equinor/echo-search/index.cjs.js"),"@equinor/eds-core-react":t("./node_modules/@equinor/eds-core-react/dist/esm/index.js"),"@equinor/eds-icons":t("./node_modules/@equinor/eds-icons/dist/esm/index.js"),"styled-components":t("../../node_modules/styled-components/dist/styled-components.browser.esm.js"),classnames:t("../../node_modules/classnames/index.js"),lodash:t("../../node_modules/lodash/lodash.js"),zustand:t("../../node_modules/zustand/esm/index.js")},fetchModules:function(){return new Promise((function(e){fetch("/echoModuleManifest.json").then((function(n){n.json().then((function(n){n.forEach((function(e){e.fileUri="/index.js"})),e(n)}))}))}))}};return(0,u.jsx)(u.Fragment,{children:e&&(0,u.jsx)(a.default.AuthProviderComponent,{children:(0,u.jsx)(h.QueryClientProvider,{client:a.queryClient,children:(0,u.jsxs)(_,{children:[(0,u.jsx)(l.Mediator,{options:n}),(0,u.jsx)(v,{children:(0,u.jsx)(A.EchoApp,{})})]})})})})}),{}))}},"./src/utils/setupSkipAuth.ts":function(e,n,t){"use strict";var o=this&&this.__awaiter||function(e,n,t,o){return new(t||(t=Promise))((function(r,s){function i(e){try{a(o.next(e))}catch(e){s(e)}}function u(e){try{a(o.throw(e))}catch(e){s(e)}}function a(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(i,u)}a((o=o.apply(e,n||[])).next())}))},r=this&&this.__generator||function(e,n){var t,o,r,s,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(i=0)),i;)try{if(t=1,o&&(r=2&u[0]?o.return:u[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,u[1])).done)return r;switch(o=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,o=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){i.label=u[1];break}if(6===u[0]&&i.label<r[1]){i.label=r[1],r=u;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(u);break}r[2]&&i.ops.pop(),i.trys.pop();continue}u=n.call(e,i)}catch(e){u=[6,e],o=0}finally{t=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.initForE2ETests=function(){var e=(0,u.getDeepLinkParams)(["skipAuth"]).skipAuth;"true"===(null==e?void 0:e.toLowerCase())&&l()},n.setupSkipAuth=l;var i=s(t("./node_modules/@equinor/echo-core/index.cjs.js")),u=t("./node_modules/@equinor/echo-utils/index.esm.js"),a=function(){i.default.EchoAuthProvider.isAuthenticated=!0,i.default.EchoAuthProvider.userProperties={account:{homeAccountId:"homeAccountId",environment:"testingEnvironment",tenantId:"tenantId",username:"tester",localAccountId:"tester123"}}};function l(){var e=this;i.default.EchoAuthProvider.isAuthenticated=!0,i.default.EchoAuthProvider.handleLogin=function(n){return o(e,void 0,void 0,(function(){return r(this,(function(e){return a(),[2,Promise.resolve(void 0)]}))}))},i.default.EchoAuthProvider.ssoSilentOrRedirectToAuthenticate=function(){return o(e,void 0,void 0,(function(){return r(this,(function(e){return a(),[2,Promise.resolve(void 0)]}))}))},i.default.EchoAuthProvider.aquireTokenSilentOrRedirectToAuthenticate=function(){return o(e,void 0,void 0,(function(){return r(this,(function(e){return a(),[2,null]}))}))},i.default.EchoAuthProvider.login=function(){return o(e,void 0,void 0,(function(){return r(this,(function(e){return a(),[2,Promise.resolve()]}))}))}}},"?0863":()=>{},"?3697":()=>{},"?4937":()=>{},"?d03a":()=>{},"?6875":()=>{},"?f3db":()=>{},"?d546":()=>{},"?8131":()=>{},"?3fc0":()=>{},"?cad2":()=>{},"?593c":()=>{},"?4068":()=>{},"?e7e4":()=>{},"?7bec":()=>{},"?802b":()=>{},"?1e44":()=>{},"?0aec":()=>{},"?fbf1":()=>{},"?3e83":()=>{},"?19e6":()=>{}},i={};function u(e){var n=i[e];if(void 0!==n)return n.exports;var t=i[e]={id:e,loaded:!1,exports:{}};return s[e].call(t.exports,t,t.exports,u),t.loaded=!0,t.exports}u.m=s,u.amdO={},e=[],u.O=(n,t,o,r)=>{if(!t){var s=1/0;for(c=0;c<e.length;c++){for(var[t,o,r]=e[c],i=!0,a=0;a<t.length;a++)(!1&r||s>=r)&&Object.keys(u.O).every((e=>u.O[e](t[a])))?t.splice(a--,1):(i=!1,r<s&&(s=r));if(i){e.splice(c--,1);var l=o();void 0!==l&&(n=l)}}return n}r=r||0;for(var c=e.length;c>0&&e[c-1][2]>r;c--)e[c]=e[c-1];e[c]=[t,o,r]},u.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return u.d(n,{a:n}),n},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,u.t=function(e,o){if(1&o&&(e=this(e)),8&o)return e;if("object"==typeof e&&e){if(4&o&&e.__esModule)return e;if(16&o&&"function"==typeof e.then)return e}var r=Object.create(null);u.r(r);var s={};n=n||[null,t({}),t([]),t(t)];for(var i=2&o&&e;"object"==typeof i&&!~n.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((n=>s[n]=()=>e[n]));return s.default=()=>e,u.d(r,s),r},u.d=(e,n)=>{for(var t in n)u.o(n,t)&&!u.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},u.f={},u.e=e=>Promise.all(Object.keys(u.f).reduce(((n,t)=>(u.f[t](e,n),n)),[])),u.u=e=>"assets/"+e+".3ab4a9273d5d4cae75fe.chunk.js",u.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),u.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),o={},r="@equinor/echo-client:",u.l=(e,n,t,s)=>{if(o[e])o[e].push(n);else{var i,a;if(void 0!==t)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var d=l[c];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+t){i=d;break}}i||(a=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,u.nc&&i.setAttribute("nonce",u.nc),i.setAttribute("data-webpack",r+t),i.src=e),o[e]=[n];var f=(n,t)=>{i.onerror=i.onload=null,clearTimeout(h);var r=o[e];if(delete o[e],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach((e=>e(t))),n)return n(t)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),a&&document.head.appendChild(i)}},u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),u.p="/",(()=>{var e={main:0};u.f.j=(n,t)=>{var o=u.o(e,n)?e[n]:void 0;if(0!==o)if(o)t.push(o[2]);else{var r=new Promise(((t,r)=>o=e[n]=[t,r]));t.push(o[2]=r);var s=u.p+u.u(n),i=new Error;u.l(s,(t=>{if(u.o(e,n)&&(0!==(o=e[n])&&(e[n]=void 0),o)){var r=t&&("load"===t.type?"missing":t.type),s=t&&t.target&&t.target.src;i.message="Loading chunk "+n+" failed.\n("+r+": "+s+")",i.name="ChunkLoadError",i.type=r,i.request=s,o[1](i)}}),"chunk-"+n,n)}},u.O.j=n=>0===e[n];var n=(n,t)=>{var o,r,[s,i,a]=t,l=0;if(s.some((n=>0!==e[n]))){for(o in i)u.o(i,o)&&(u.m[o]=i[o]);if(a)var c=a(u)}for(n&&n(t);l<s.length;l++)r=s[l],u.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return u.O(c)},t=self.webpackChunk_equinor_echo_client=self.webpackChunk_equinor_echo_client||[];t.forEach(n.bind(null,0)),t.push=n.bind(null,t.push.bind(t))})(),u.nc=void 0,u.O(void 0,["vendors-node_modules_react-dom_client_js-node_modules_babel_polyfill_lib_index_js-node_module-cb4c76"],(()=>u("./node_modules/@babel/polyfill/lib/index.js")));var a=u.O(void 0,["vendors-node_modules_react-dom_client_js-node_modules_babel_polyfill_lib_index_js-node_module-cb4c76"],(()=>u("./src/index.tsx")));a=u.O(a)})();
|
|
3
|
-
//# sourceMappingURL=main.echo.bundle.js.map
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
/*! !!../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./home.module.css */
|
|
2
|
-
|
|
3
|
-
/*! !!../node_modules/css-loader/dist/cjs.js!./app.css */
|
|
4
|
-
|
|
5
|
-
/*! !../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */
|
|
6
|
-
|
|
7
|
-
/*! !../../../node_modules/style-loader/dist/runtime/insertBySelector.js */
|
|
8
|
-
|
|
9
|
-
/*! !../../../node_modules/style-loader/dist/runtime/insertStyleElement.js */
|
|
10
|
-
|
|
11
|
-
/*! !../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */
|
|
12
|
-
|
|
13
|
-
/*! !../../../node_modules/style-loader/dist/runtime/styleDomAPI.js */
|
|
14
|
-
|
|
15
|
-
/*! !../../../node_modules/style-loader/dist/runtime/styleTagTransform.js */
|
|
16
|
-
|
|
17
|
-
/*! !../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */
|
|
18
|
-
|
|
19
|
-
/*! !../node_modules/style-loader/dist/runtime/insertBySelector.js */
|
|
20
|
-
|
|
21
|
-
/*! !../node_modules/style-loader/dist/runtime/insertStyleElement.js */
|
|
22
|
-
|
|
23
|
-
/*! !../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */
|
|
24
|
-
|
|
25
|
-
/*! !../node_modules/style-loader/dist/runtime/styleDomAPI.js */
|
|
26
|
-
|
|
27
|
-
/*! !../node_modules/style-loader/dist/runtime/styleTagTransform.js */
|
|
28
|
-
|
|
29
|
-
/*! ../../../node_modules/css-loader/dist/runtime/api.js */
|
|
30
|
-
|
|
31
|
-
/*! ../../../node_modules/css-loader/dist/runtime/sourceMaps.js */
|
|
32
|
-
|
|
33
|
-
/*! ../../images/frontpage-brand-placeholder.jpg */
|
|
34
|
-
|
|
35
|
-
/*! ../node_modules/css-loader/dist/runtime/api.js */
|
|
36
|
-
|
|
37
|
-
/*! ../node_modules/css-loader/dist/runtime/sourceMaps.js */
|
|
38
|
-
|
|
39
|
-
/*! ./api/api-plants */
|
|
40
|
-
|
|
41
|
-
/*! ./app */
|
|
42
|
-
|
|
43
|
-
/*! ./app.css */
|
|
44
|
-
|
|
45
|
-
/*! ./components/Home/Home */
|
|
46
|
-
|
|
47
|
-
/*! ./components/legend */
|
|
48
|
-
|
|
49
|
-
/*! ./home.module.css */
|
|
50
|
-
|
|
51
|
-
/*! ./utils/setupSkipAuth */
|
|
52
|
-
|
|
53
|
-
/*! @equinor/echo-base */
|
|
54
|
-
|
|
55
|
-
/*! @equinor/echo-components */
|
|
56
|
-
|
|
57
|
-
/*! @equinor/echo-components/style-reset.css */
|
|
58
|
-
|
|
59
|
-
/*! @equinor/echo-core */
|
|
60
|
-
|
|
61
|
-
/*! @equinor/echo-framework */
|
|
62
|
-
|
|
63
|
-
/*! @equinor/echo-search */
|
|
64
|
-
|
|
65
|
-
/*! @equinor/echo-utils */
|
|
66
|
-
|
|
67
|
-
/*! @equinor/eds-core-react */
|
|
68
|
-
|
|
69
|
-
/*! @equinor/eds-icons */
|
|
70
|
-
|
|
71
|
-
/*! @tanstack/react-query */
|
|
72
|
-
|
|
73
|
-
/*! classnames */
|
|
74
|
-
|
|
75
|
-
/*! lodash */
|
|
76
|
-
|
|
77
|
-
/*! react */
|
|
78
|
-
|
|
79
|
-
/*! react-dom */
|
|
80
|
-
|
|
81
|
-
/*! react-dom/client */
|
|
82
|
-
|
|
83
|
-
/*! react-router-dom */
|
|
84
|
-
|
|
85
|
-
/*! react/jsx-runtime */
|
|
86
|
-
|
|
87
|
-
/*! styled-components */
|
|
88
|
-
|
|
89
|
-
/*! zustand */
|
|
90
|
-
|
|
91
|
-
/*!********************!*\
|
|
92
|
-
!*** ws (ignored) ***!
|
|
93
|
-
\********************/
|
|
94
|
-
|
|
95
|
-
/*!*********************!*\
|
|
96
|
-
!*** ./src/app.css ***!
|
|
97
|
-
\*********************/
|
|
98
|
-
|
|
99
|
-
/*!*********************!*\
|
|
100
|
-
!*** ./src/app.tsx ***!
|
|
101
|
-
\*********************/
|
|
102
|
-
|
|
103
|
-
/*!**********************!*\
|
|
104
|
-
!*** util (ignored) ***!
|
|
105
|
-
\**********************/
|
|
106
|
-
|
|
107
|
-
/*!***********************!*\
|
|
108
|
-
!*** ./src/index.tsx ***!
|
|
109
|
-
\***********************/
|
|
110
|
-
|
|
111
|
-
/*!************************!*\
|
|
112
|
-
!*** buffer (ignored) ***!
|
|
113
|
-
\************************/
|
|
114
|
-
|
|
115
|
-
/*!************************!*\
|
|
116
|
-
!*** crypto (ignored) ***!
|
|
117
|
-
\************************/
|
|
118
|
-
|
|
119
|
-
/*!****************************!*\
|
|
120
|
-
!*** node-fetch (ignored) ***!
|
|
121
|
-
\****************************/
|
|
122
|
-
|
|
123
|
-
/*!*****************************!*\
|
|
124
|
-
!*** eventsource (ignored) ***!
|
|
125
|
-
\*****************************/
|
|
126
|
-
|
|
127
|
-
/*!******************************!*\
|
|
128
|
-
!*** fetch-cookie (ignored) ***!
|
|
129
|
-
\******************************/
|
|
130
|
-
|
|
131
|
-
/*!******************************!*\
|
|
132
|
-
!*** tough-cookie (ignored) ***!
|
|
133
|
-
\******************************/
|
|
134
|
-
|
|
135
|
-
/*!*******************************!*\
|
|
136
|
-
!*** ./src/api/api-plants.ts ***!
|
|
137
|
-
\*******************************/
|
|
138
|
-
|
|
139
|
-
/*!**********************************!*\
|
|
140
|
-
!*** abort-controller (ignored) ***!
|
|
141
|
-
\**********************************/
|
|
142
|
-
|
|
143
|
-
/*!***********************************!*\
|
|
144
|
-
!*** ./src/components/legend.tsx ***!
|
|
145
|
-
\***********************************/
|
|
146
|
-
|
|
147
|
-
/*!************************************!*\
|
|
148
|
-
!*** ./src/utils/setupSkipAuth.ts ***!
|
|
149
|
-
\************************************/
|
|
150
|
-
|
|
151
|
-
/*!**************************************!*\
|
|
152
|
-
!*** ./src/components/Home/Home.tsx ***!
|
|
153
|
-
\**************************************/
|
|
154
|
-
|
|
155
|
-
/*!*********************************************!*\
|
|
156
|
-
!*** ./src/components/Home/home.module.css ***!
|
|
157
|
-
\*********************************************/
|
|
158
|
-
|
|
159
|
-
/*!****************************************************!*\
|
|
160
|
-
!*** ./src/images/frontpage-brand-placeholder.jpg ***!
|
|
161
|
-
\****************************************************/
|
|
162
|
-
|
|
163
|
-
/*!***********************************************************!*\
|
|
164
|
-
!*** ./node_modules/css-loader/dist/cjs.js!./src/app.css ***!
|
|
165
|
-
\***********************************************************/
|
|
166
|
-
|
|
167
|
-
/*!***************************************************************************************************************!*\
|
|
168
|
-
!*** ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./src/components/Home/home.module.css ***!
|
|
169
|
-
\***************************************************************************************************************/
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"main.echo.bundle.js","mappings":";UAAIA,ECCAC,EADAC,ECAAC,EACAC,8OCEAC,QAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,gNAYtC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,2BAA2B,MAAQ,GAAG,SAAW,oFAAoF,eAAiB,CAAC,yOAAyO,WAAa,MAE3a,wSChBIH,QAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,8tBAsCtC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,mDAAmD,MAAQ,GAAG,SAAW,gUAAgU,eAAiB,CAAC,stBAAstB,WAAa,MAE5pCH,EAAwBI,OAAS,CAChC,KAAQ,wBACR,cAAiB,iCACjB,QAAW,2BACX,qBAAwB,wCACxB,OAAU,2BAEX,+GCpDA,QAAe,IAA0B,8oBCWrCC,EAAU,CAAC,EAEfA,EAAQC,kBAAoB,IAC5BD,EAAQE,cAAgB,IACxBF,EAAQG,OAAS,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sD,EAAuB,CAACC,EAA4BC,KACvD,IAGIxG,EAAUgD,GAHTtC,EAAU+F,EAAaC,GAAWF,EAGhBzF,EAAI,EAC3B,GAAGL,EAASiG,MAAM/N,GAAgC,IAAxBiN,EAAgBjN,KAAa,CACtD,IAAIoH,KAAYyG,EACZ1G,EAAoB2C,EAAE+D,EAAazG,KACrCD,EAAoBO,EAAEN,GAAYyG,EAAYzG,IAGhD,GAAG0G,EAAS,IAAIjG,EAASiG,EAAQ3G,EAClC,CAEA,IADGwG,GAA4BA,EAA2BC,GACrDzF,EAAIL,EAASnH,OAAQwH,IACzBiC,EAAUtC,EAASK,GAChBhB,EAAoB2C,EAAEmD,EAAiB7C,IAAY6C,EAAgB7C,IACrE6C,EAAgB7C,GAAS,KAE1B6C,EAAgB7C,GAAW,EAE5B,OAAOjD,EAAoBS,EAAEC,EAAO,EAGjCmG,EAAqBC,KAAuC,iCAAIA,KAAuC,kCAAK,GAChHD,EAAmBxI,QAAQkI,EAAqBpB,KAAK,KAAM,IAC3D0B,EAAmBlO,KAAO4N,EAAqBpB,KAAK,KAAM0B,EAAmBlO,KAAKwM,KAAK0B,QCrFvF7G,EAAoBuE,QAAKlL,ECGzB2G,EAAoBS,OAAEpH,EAAW,CAAC,yGAAyG,IAAO2G,EAAoB,iDACtK,IAAI+G,EAAsB/G,EAAoBS,OAAEpH,EAAW,CAAC,yGAAyG,IAAO2G,EAAoB,qBAChM+G,EAAsB/G,EAAoBS,EAAEsG","sources":["webpack://@equinor/echo-client/webpack/runtime/chunk loaded","webpack://@equinor/echo-client/webpack/runtime/create fake namespace object","webpack://@equinor/echo-client/webpack/runtime/load script","webpack://@equinor/echo-client/./src/app.css","webpack://@equinor/echo-client/./src/components/Home/home.module.css","webpack://@equinor/echo-client/./src/images/frontpage-brand-placeholder.jpg","webpack://@equinor/echo-client/./src/app.css?a672","webpack://@equinor/echo-client/./src/components/Home/home.module.css?96e0","webpack://@equinor/echo-client/./src/api/api-plants.ts","webpack://@equinor/echo-client/./src/app.tsx","webpack://@equinor/echo-client/./src/components/Home/Home.tsx","webpack://@equinor/echo-client/./src/components/legend.tsx","webpack://@equinor/echo-client/./src/index.tsx","webpack://@equinor/echo-client/./src/utils/setupSkipAuth.ts","webpack://@equinor/echo-client/webpack/bootstrap","webpack://@equinor/echo-client/webpack/runtime/amd options","webpack://@equinor/echo-client/webpack/runtime/compat get default export","webpack://@equinor/echo-client/webpack/runtime/define property getters","webpack://@equinor/echo-client/webpack/runtime/ensure chunk","webpack://@equinor/echo-client/webpack/runtime/get javascript chunk filename","webpack://@equinor/echo-client/webpack/runtime/global","webpack://@equinor/echo-client/webpack/runtime/hasOwnProperty shorthand","webpack://@equinor/echo-client/webpack/runtime/make namespace object","webpack://@equinor/echo-client/webpack/runtime/node module decorator","webpack://@equinor/echo-client/webpack/runtime/publicPath","webpack://@equinor/echo-client/webpack/runtime/jsonp chunk loading","webpack://@equinor/echo-client/webpack/runtime/nonce","webpack://@equinor/echo-client/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));\n\t}\n\tdef['default'] = () => (value);\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","var inProgress = {};\nvar dataWebpackPrefix = \"@equinor/echo-client:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/* Applied in echo application by bootstrap so it should exist here to */\r\n*,\r\n:after,\r\n:before {\r\n box-sizing: border-box;\r\n}\r\n\r\n#root {\r\n height: 100%;\r\n overflow: hidden;\r\n width: 100%;\r\n}\r\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/app.css\"],\"names\":[],\"mappings\":\"AAAA,wEAAwE;AACxE;;;IAGI,sBAAsB;AAC1B;;AAEA;IACI,YAAY;IACZ,gBAAgB;IAChB,WAAW;AACf\",\"sourcesContent\":[\"/* Applied in echo application by bootstrap so it should exist here to */\\r\\n*,\\r\\n:after,\\r\\n:before {\\r\\n box-sizing: border-box;\\r\\n}\\r\\n\\r\\n#root {\\r\\n height: 100%;\\r\\n overflow: hidden;\\r\\n width: 100%;\\r\\n}\\r\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.echo-Home__home-pPNVd {\r\n display: grid;\r\n grid-template-rows: 30% 100px auto 56px;\r\n gap: 1rem;\r\n height: 100%;\r\n width: 100%;\r\n}\r\n\r\n.echo-Home__plantSelector-AlrNf {\r\n display: flex;\r\n justify-content: center;\r\n align-items: baseline;\r\n align-self: center;\r\n flex-flow: wrap;\r\n}\r\n\r\n.echo-Home__heading-vnGkQ {\r\n padding-left: 18px;\r\n}\r\n\r\n.echo-Home__brandSliderContainer-qt0N4 {\r\n display: flex;\r\n flex: 1 1;\r\n flex-flow: column-reverse;\r\n margin: 0;\r\n width: 100%;\r\n overflow: hidden;\r\n object-fit: cover;\r\n}\r\n\r\n.echo-Home__appBar-XBn9u {\r\n margin: 0 auto 48px;\r\n display: flex;\r\n flex-wrap: wrap;\r\n justify-content: center;\r\n align-items: flex-start;\r\n}\r\n\r\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/Home/home.module.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,aAAa;IACb,uCAAuC;IACvC,SAAS;IACT,YAAY;IACZ,WAAW;AACf;;AAEA;IACI,aAAa;IACb,uBAAuB;IACvB,qBAAqB;IACrB,kBAAkB;IAClB,eAAe;AACnB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,aAAa;IACb,SAAS;IACT,yBAAyB;IACzB,SAAS;IACT,WAAW;IACX,gBAAgB;IAChB,iBAAiB;AACrB;;AAEA;IACI,mBAAmB;IACnB,aAAa;IACb,eAAe;IACf,uBAAuB;IACvB,uBAAuB;AAC3B\",\"sourcesContent\":[\".home {\\r\\n display: grid;\\r\\n grid-template-rows: 30% 100px auto 56px;\\r\\n gap: 1rem;\\r\\n height: 100%;\\r\\n width: 100%;\\r\\n}\\r\\n\\r\\n.plantSelector {\\r\\n display: flex;\\r\\n justify-content: center;\\r\\n align-items: baseline;\\r\\n align-self: center;\\r\\n flex-flow: wrap;\\r\\n}\\r\\n\\r\\n.heading {\\r\\n padding-left: 18px;\\r\\n}\\r\\n\\r\\n.brandSliderContainer {\\r\\n display: flex;\\r\\n flex: 1 1;\\r\\n flex-flow: column-reverse;\\r\\n margin: 0;\\r\\n width: 100%;\\r\\n overflow: hidden;\\r\\n object-fit: cover;\\r\\n}\\r\\n\\r\\n.appBar {\\r\\n margin: 0 auto 48px;\\r\\n display: flex;\\r\\n flex-wrap: wrap;\\r\\n justify-content: center;\\r\\n align-items: flex-start;\\r\\n}\\r\\n\\r\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"home\": `echo-Home__home-pPNVd`,\n\t\"plantSelector\": `echo-Home__plantSelector-AlrNf`,\n\t\"heading\": `echo-Home__heading-vnGkQ`,\n\t\"brandSliderContainer\": `echo-Home__brandSliderContainer-qt0N4`,\n\t\"appBar\": `echo-Home__appBar-XBn9u`\n};\nexport default ___CSS_LOADER_EXPORT___;\n","export default __webpack_public_path__ + \"d2d97a9feca22f12a8c8c7413d7867ac.jpg\";","\n import API from \"!../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../node_modules/css-loader/dist/cjs.js!./app.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../node_modules/css-loader/dist/cjs.js!./app.css\";\n export default content && content.locals ? content.locals : undefined;\n","\n import API from \"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./home.module.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./home.module.css\";\n export default content && content.locals ? content.locals : undefined;\n","import { EchoEnv, Plant, request, setPlantsData } from '@equinor/echo-core';\r\n\r\nasync function getPlantsFromApi(): Promise<Plant[] | undefined> {\r\n const url = `${EchoEnv.env().REACT_APP_API_URL}/plants`;\r\n return request<Plant[]>({\r\n url, cache: {\r\n timeInSeconds: 4 * 60 * 60 // 4 hours\r\n }\r\n });\r\n}\r\n\r\nexport async function getCorePlants(): Promise<void> {\r\n try {\r\n const apiPlants = (await getPlantsFromApi() ?? []);\r\n\r\n if (apiPlants && apiPlants.length > 0) {\r\n setPlantsData({ plants: apiPlants });\r\n }\r\n } catch (ex) {\r\n console.error(ex);\r\n }\r\n}\r\n","import { EchoEnv, useInitial } from '@equinor/echo-core';\r\nimport { EchoContent, EchoEventHandler, EchoRoutes, Toasters } from '@equinor/echo-framework';\r\nimport { Syncer } from '@equinor/echo-search';\r\nimport { fireAndForget } from '@equinor/echo-utils';\r\nimport React from 'react';\r\nimport { Redirect as TypedRedirect, Route as TypedRoute, Switch as TypedSwitch } from 'react-router-dom';\r\nimport { getCorePlants } from './api/api-plants';\r\nimport './app.css';\r\nimport { Home } from './components/Home/Home';\r\nimport { Legend } from './components/legend';\r\n\r\n/**\r\n * TODO: further investigation needed.\r\n * Getting these type errors for React components, which have children.\r\n * Same setup works in echopediaWeb. Maybe it will be resolved with a next version bump?\r\n * Doing a workaround now: setting them to 'any' type.\r\n * \r\n * TS2786: 'BrowserRouter' cannot be used as a JSX component.\r\n Its type 'typeof BrowserRouter' is not a valid JSX element type.\r\n Type 'typeof BrowserRouter' is not assignable to type 'new (props: any, deprecatedLegacyContext?: any) => Component<any,\r\n any, any>'.\r\n Construct signature return types 'BrowserRouter' and 'Component<any, any, any>' are incompatible.\r\n The types returned by 'render()' are incompatible between these types.\r\n */\r\nconst Switch = TypedSwitch as any; // TS has an issue with the return type\r\nconst Route = TypedRoute as any;\r\nconst Redirect = TypedRedirect as any;\r\n\r\nexport const EchoApp: React.FC = () => {\r\n useInitial(async () => {\r\n await Syncer.configuration.setApiBaseUrl(EchoEnv.env().REACT_APP_API_URL);\r\n fireAndForget(getCorePlants);\r\n });\r\n\r\n return (\r\n <EchoEventHandler>\r\n <EchoContent Legend={Legend}>\r\n <Switch>\r\n <EchoRoutes homeComponent={Home} />\r\n <Route render={(): JSX.Element => <Redirect to=\"/\" />} />\r\n </Switch>\r\n <Toasters />\r\n </EchoContent>\r\n </EchoEventHandler>\r\n );\r\n};\r\n","import { AppLinks, EchoLogo, Footer, PlantSelector } from '@equinor/echo-framework';\r\nimport React from 'react';\r\nimport placeholderHomeImage from '../../images/frontpage-brand-placeholder.jpg';\r\nimport style from './home.module.css';\r\n\r\nexport const Home: React.FC = () => {\r\n return (\r\n <main className={style.home}>\r\n <div className={style.plantSelector}>\r\n <div>\r\n <EchoLogo />\r\n </div>\r\n\r\n <PlantSelector variant=\"compact\" />\r\n </div>\r\n <AppLinks />\r\n <div className={style.brandSliderContainer}>\r\n <img src={placeholderHomeImage} alt=\"Application Echo on tablet\" />\r\n </div>\r\n <Footer />\r\n </main>\r\n );\r\n};\r\n\r\n","export const Legend: React.FC = () => {\r\n return null;\r\n};\r\n","import { LoadingModuleOptions } from '@equinor/echo-base';\r\nimport '@equinor/echo-components/style-reset.css';\r\nimport EchoCore, { createEchoAppModuleApi, queryClient, EventHubProvider as TypedEventHubProvider } from '@equinor/echo-core';\r\nimport { mainMenu, Mediator, searchPanel } from '@equinor/echo-framework';\r\nimport { Icon } from '@equinor/eds-core-react';\r\nimport * as Icons from '@equinor/eds-icons';\r\nimport React from 'react';\r\nimport { initForE2ETests } from './utils/setupSkipAuth';\r\n\r\nimport { QueryClientProvider } from '@tanstack/react-query';\r\nimport { createRoot } from 'react-dom/client';\r\nimport { BrowserRouter as TypedBrowserRouter } from 'react-router-dom';\r\nimport { EchoApp } from './app';\r\n\r\n/**\r\n * TODO: further investigation needed.\r\n * Getting these type errors for React components, which have children.\r\n * Same setup works in echopediaWeb. Maybe it will be resolved with a next version bump?\r\n * Doing a workaround now: setting them to 'any' type.\r\n *\r\n * TS2786: 'BrowserRouter' cannot be used as a JSX component.\r\n Its type 'typeof BrowserRouter' is not a valid JSX element type.\r\n Type 'typeof BrowserRouter' is not assignable to type 'new (props: any, deprecatedLegacyContext?: any) => Component<any,\r\n any, any>'.\r\n Construct signature return types 'BrowserRouter' and 'Component<any, any, any>' are incompatible.\r\n The types returned by 'render()' are incompatible between these types.\r\n */\r\nconst BrowserRouter = TypedBrowserRouter as any;\r\nconst EventHubProvider = TypedEventHubProvider as any;\r\n\r\nconst useEdsIcon = (): void => {\r\n Icon.add({\r\n ...Icons\r\n });\r\n};\r\n\r\nconst Echo: React.FC = (): JSX.Element => {\r\n /* Needed to skip authentication when running e2e tests*/\r\n initForE2ETests();\r\n\r\n const isAuthenticated = EchoCore.useEchoSetup({\r\n leftPanels: [searchPanel],\r\n rightPanel: mainMenu\r\n });\r\n useEdsIcon();\r\n const moduleOptions: LoadingModuleOptions = {\r\n createApi: createEchoAppModuleApi(),\r\n dependencies: {\r\n react: require('react'),\r\n 'react-dom': require('react-dom'),\r\n 'react-router-dom': require('react-router-dom'),\r\n '@equinor/echo-core': require('@equinor/echo-core'),\r\n '@equinor/echo-framework': require('@equinor/echo-framework'),\r\n '@equinor/echo-utils': require('@equinor/echo-utils'),\r\n '@equinor/echo-components': require('@equinor/echo-components'),\r\n '@equinor/echo-base': require('@equinor/echo-base'),\r\n '@equinor/echo-search': require('@equinor/echo-search'),\r\n '@equinor/eds-core-react': require('@equinor/eds-core-react'),\r\n '@equinor/eds-icons': require('@equinor/eds-icons'),\r\n 'styled-components': require('styled-components'),\r\n classnames: require('classnames'),\r\n lodash: require('lodash'),\r\n zustand: require('zustand')\r\n },\r\n fetchModules: () => {\r\n return new Promise((resolve) => {\r\n fetch('/echoModuleManifest.json').then((response) => {\r\n response.json().then((manifests) => {\r\n manifests.forEach((manifest) => {\r\n manifest.fileUri = `/index.js`;\r\n });\r\n resolve(manifests);\r\n });\r\n });\r\n });\r\n }\r\n };\r\n return (\r\n <>\r\n {isAuthenticated && (\r\n <EchoCore.AuthProviderComponent>\r\n <QueryClientProvider client={queryClient}>\r\n <EventHubProvider>\r\n <Mediator options={moduleOptions} />\r\n <BrowserRouter>\r\n <EchoApp />\r\n </BrowserRouter>\r\n </EventHubProvider>\r\n </QueryClientProvider>\r\n </EchoCore.AuthProviderComponent>\r\n )}\r\n </>\r\n );\r\n};\r\n\r\nif (!(window !== window.parent && !window.opener)) {\r\n const container = document.getElementById('root') as HTMLElement;\r\n const root = createRoot(container);\r\n root.render(<Echo />);\r\n}\r\n","import EchoCore, { AuthenticationResult } from '@equinor/echo-core';\r\nimport { getDeepLinkParams } from '@equinor/echo-utils';\r\n\r\nexport function initForE2ETests() {\r\n const { skipAuth } = getDeepLinkParams(['skipAuth']);\r\n if (skipAuth?.toLowerCase() === 'true') {\r\n setupSkipAuth();\r\n }\r\n}\r\n\r\nconst setAuthentication = () => {\r\n EchoCore.EchoAuthProvider.isAuthenticated = true;\r\n EchoCore.EchoAuthProvider.userProperties = {\r\n account: {\r\n homeAccountId: 'homeAccountId',\r\n environment: 'testingEnvironment',\r\n tenantId: 'tenantId',\r\n username: 'tester',\r\n localAccountId: 'tester123'\r\n }\r\n };\r\n};\r\n\r\nexport function setupSkipAuth() {\r\n EchoCore.EchoAuthProvider.isAuthenticated = true;\r\n EchoCore.EchoAuthProvider.handleLogin = async (logRequest?: (...args: unknown[]) => void): Promise<void> => {\r\n setAuthentication();\r\n return Promise.resolve(undefined);\r\n };\r\n EchoCore.EchoAuthProvider.ssoSilentOrRedirectToAuthenticate = async () => {\r\n setAuthentication();\r\n return Promise.resolve(undefined);\r\n };\r\n EchoCore.EchoAuthProvider.aquireTokenSilentOrRedirectToAuthenticate =\r\n async (): Promise<AuthenticationResult | null> => {\r\n setAuthentication();\r\n return null;\r\n };\r\n EchoCore.EchoAuthProvider.login = async () => {\r\n setAuthentication();\r\n return Promise.resolve();\r\n };\r\n}\r\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.amdO = {};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"assets/\" + chunkId + \".\" + \"3ab4a9273d5d4cae75fe\" + \".chunk.js\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"/\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"main\": 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunk_equinor_echo_client\"] = self[\"webpackChunk_equinor_echo_client\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","__webpack_require__.nc = undefined;","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\n__webpack_require__.O(undefined, [\"vendors-node_modules_react-dom_client_js-node_modules_babel_polyfill_lib_index_js-node_module-cb4c76\"], () => (__webpack_require__(\"./node_modules/@babel/polyfill/lib/index.js\")))\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"vendors-node_modules_react-dom_client_js-node_modules_babel_polyfill_lib_index_js-node_module-cb4c76\"], () => (__webpack_require__(\"./src/index.tsx\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","leafPrototypes","getProto","inProgress","dataWebpackPrefix","___CSS_LOADER_EXPORT___","push","module","id","locals","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","getPlantsFromApi","apiPlants","length","setPlantsData","plants","console","error","url","EchoEnv","env","REACT_APP_API_URL","request","cache","timeInSeconds","Switch","Route","Redirect","EchoApp","useInitial","Syncer","configuration","setApiBaseUrl","fireAndForget","getCorePlants","EchoEventHandler","EchoContent","Legend","EchoRoutes","homeComponent","Home","render","to","Toasters","className","home","plantSelector","EchoLogo","PlantSelector","variant","AppLinks","brandSliderContainer","src","alt","Footer","BrowserRouter","EventHubProvider","window","parent","opener","container","document","getElementById","createRoot","initForE2ETests","isAuthenticated","useEchoSetup","leftPanels","searchPanel","rightPanel","mainMenu","Icon","add","Icons","moduleOptions","createApi","createEchoAppModuleApi","dependencies","react","classnames","lodash","zustand","fetchModules","Promise","resolve","fetch","then","response","json","manifests","forEach","manifest","fileUri","AuthProviderComponent","QueryClientProvider","client","queryClient","Mediator","skipAuth","getDeepLinkParams","toLowerCase","setupSkipAuth","setAuthentication","EchoAuthProvider","userProperties","account","homeAccountId","environment","tenantId","username","localAccountId","handleLogin","logRequest","ssoSilentOrRedirectToAuthenticate","aquireTokenSilentOrRedirectToAuthenticate","login","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","loaded","__webpack_modules__","call","m","amdO","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","Object","keys","every","key","splice","r","n","getter","__esModule","d","a","getPrototypeOf","obj","t","value","mode","this","ns","create","def","current","indexOf","getOwnPropertyNames","definition","o","defineProperty","enumerable","get","f","e","chunkId","all","reduce","promises","u","g","globalThis","Function","prop","prototype","hasOwnProperty","l","done","script","needAttach","scripts","getElementsByTagName","s","getAttribute","createElement","charset","timeout","nc","setAttribute","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","setTimeout","bind","type","target","head","appendChild","Symbol","toStringTag","nmd","paths","children","p","installedChunks","installedChunkData","promise","reject","Error","errorType","realSrc","message","name","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""}
|