@equinor/echo-cli 2.4.2 → 2.4.3-beta-0
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 +393 -393
- package/lib/echo-dev-host/README.md +121 -121
- package/lib/echo-dev-host/babel.config.js +10 -10
- package/lib/echo-dev-host/echo-dev-host-build/d2d97a9feca22f12a8c8c7413d7867ac.jpg +0 -0
- package/lib/echo-dev-host/echo-dev-host-build/env-config.js +1 -0
- package/lib/echo-dev-host/echo-dev-host-build/index.css +60 -0
- package/lib/echo-dev-host/echo-dev-host-build/index.html +21 -0
- package/lib/echo-dev-host/echo-dev-host-build/main.echo.bundle.js +3 -0
- package/lib/echo-dev-host/echo-dev-host-build/main.echo.bundle.js.LICENSE.txt +93 -0
- package/lib/echo-dev-host/echo-dev-host-build/main.echo.bundle.js.map +1 -0
- package/lib/echo-dev-host/echo-dev-host-build/vendors-node_modules_babel_polyfill_lib_index_js-node_modules_react-dom_client_js-node_module-8e2452.echo.bundle.js +3 -0
- package/lib/echo-dev-host/echo-dev-host-build/vendors-node_modules_babel_polyfill_lib_index_js-node_modules_react-dom_client_js-node_module-8e2452.echo.bundle.js.LICENSE.txt +2871 -0
- package/lib/echo-dev-host/echo-dev-host-build/vendors-node_modules_babel_polyfill_lib_index_js-node_modules_react-dom_client_js-node_module-8e2452.echo.bundle.js.map +1 -0
- package/lib/echo-dev-host/jest.config.js +21 -21
- package/lib/echo-dev-host/package-lock.json +14653 -13153
- package/lib/echo-dev-host/package.json +9 -9
- package/lib/echo-dev-host/public/env-config.js +17 -17
- package/lib/echo-dev-host/public/index.html +21 -21
- package/lib/echo-dev-host/tsconfig.json +21 -21
- package/lib/echo-dev-host/webpack.config.js +145 -145
- package/lib/sync-echo-dev-versions.d.ts +6 -0
- package/lib/sync-echo-dev-versions.js +43 -0
- package/lib/sync-echo-dev-versions.js.map +1 -0
- package/lib/tools/buildScripts/buildAndCopyDevHost.test.d.ts +1 -0
- package/lib/tools/buildScripts/buildAndCopyDevHost.test.js +500 -0
- package/lib/tools/buildScripts/buildAndCopyDevHost.test.js.map +1 -0
- package/lib/utils/merge.test.d.ts +1 -0
- package/lib/utils/merge.test.js +29 -0
- package/lib/utils/merge.test.js.map +1 -0
- package/package.json +111 -111
- package/templates/echoAppTemplate/.gitattributes +3 -3
- package/templates/echoAppTemplate/package.json +35 -35
- package/templates/echoAppTemplate/readme.md +41 -41
- 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 +41 -41
- 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/readme.md +1 -1
- package/templates/echoPluginTemplate/package.json +35 -35
- package/templates/echoPluginTemplate/public/index.html +21 -21
- package/templates/echoPluginTemplate/readme.md +1 -1
|
@@ -1,121 +1,121 @@
|
|
|
1
|
-
# echo-dev-host
|
|
2
|
-
|
|
3
|
-
**echo-dev-host** is a lightweight host application for developing and testing Echo Modules locally. It is shipped as source code with [`echo-cli`](../README.md) and provides a development shell that closely mimics the EchopediaWeb environment.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## What is echo-dev-host?
|
|
8
|
-
|
|
9
|
-
- Provides a local "empty shell" of EchopediaWeb for rapid Echo Module development.
|
|
10
|
-
- Ensures your module runs with the same dependencies and environment as production.
|
|
11
|
-
- Supports hot module reloading for fast feedback during development.
|
|
12
|
-
- Now shipped as source code, so you can update dependencies and rebuild locally—no need to wait for a new `echo-cli` release.
|
|
13
|
-
|
|
14
|
-
---
|
|
15
|
-
|
|
16
|
-
## New Workflow (from 2025)
|
|
17
|
-
|
|
18
|
-
**You are now in control of the Echo library versions used by your dev host!**
|
|
19
|
-
|
|
20
|
-
1. **Develop Echo libraries** (`echo-core`, `echo-base`, `echo-utils`, etc.) in the EchopediaWeb monorepo.
|
|
21
|
-
2. **Release new versions** of these libraries from EchopediaWeb.
|
|
22
|
-
3. **echo-cli** now ships with the source code of `echo-dev-host` (formerly echo-client), not a pre-built version.
|
|
23
|
-
4. **Consumer project:**
|
|
24
|
-
- Builds `echo-dev-host` locally using `npx build-echo-dev-host`
|
|
25
|
-
- Can update Echo library dependencies locally using `npx update-echo-libs`
|
|
26
|
-
- No need to bump and release `echo-cli` for every Echo library update—much more efficient and flexible.
|
|
27
|
-
|
|
28
|
-
---
|
|
29
|
-
|
|
30
|
-
## Getting Started
|
|
31
|
-
|
|
32
|
-
### Prerequisites
|
|
33
|
-
|
|
34
|
-
- Node.js (see [root README](../../../README.md) for version requirements)
|
|
35
|
-
- [`echo-cli`](../README.md) installed as a dev dependency in your Echo Module project
|
|
36
|
-
|
|
37
|
-
### Typical Workflow
|
|
38
|
-
|
|
39
|
-
1. **Install dependencies**
|
|
40
|
-
In your Echo Module project:
|
|
41
|
-
|
|
42
|
-
```sh
|
|
43
|
-
npm install
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
2. **Build echo-dev-host locally**
|
|
47
|
-
|
|
48
|
-
```sh
|
|
49
|
-
npx build-echo-dev-host
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
This will:
|
|
53
|
-
|
|
54
|
-
- Copy `echo-dev-host` from `node_modules/@equinor/echo-cli` to your project root as `echo-dev-host-tmp`
|
|
55
|
-
- Install dependencies and build `echo-dev-host`
|
|
56
|
-
- Copy the build output back to `node_modules/@equinor/echo-cli`
|
|
57
|
-
|
|
58
|
-
3. **Start development server**
|
|
59
|
-
|
|
60
|
-
```sh
|
|
61
|
-
npm start
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
Your module will open in the browser, running inside the dev host.
|
|
65
|
-
|
|
66
|
-
4. **Update Echo library dependencies (optional)**
|
|
67
|
-
To update the Echo libraries used by your dev host:
|
|
68
|
-
```sh
|
|
69
|
-
npx update-echo-libs
|
|
70
|
-
```
|
|
71
|
-
- You will be prompted for each Echo library to update to the latest or specify a version.
|
|
72
|
-
- Use the `-a` flag to update all to the latest automatically:
|
|
73
|
-
```sh
|
|
74
|
-
npx update-echo-libs -a
|
|
75
|
-
```
|
|
76
|
-
- This updates dependencies and rebuilds `echo-dev-host`.
|
|
77
|
-
|
|
78
|
-
---
|
|
79
|
-
|
|
80
|
-
## Commands Reference
|
|
81
|
-
|
|
82
|
-
- **`npx build-echo-dev-host`**
|
|
83
|
-
|
|
84
|
-
- Builds the dev host locally with your current Echo library versions.
|
|
85
|
-
- Should be run after installing or updating dependencies.
|
|
86
|
-
|
|
87
|
-
- **`npx update-echo-libs`**
|
|
88
|
-
- Prompts you to update Echo library dependencies in the dev host.
|
|
89
|
-
- Rebuilds the dev host after updating.
|
|
90
|
-
- Use `-a` to update all Echo libraries to the latest versions automatically.
|
|
91
|
-
|
|
92
|
-
---
|
|
93
|
-
|
|
94
|
-
## Why this new approach?
|
|
95
|
-
|
|
96
|
-
- **No more waiting for echo-cli releases** just to get new Echo library versions.
|
|
97
|
-
- **You control the dev host dependencies**—update and rebuild as needed.
|
|
98
|
-
- **Faster, more flexible development** for all Echo teams.
|
|
99
|
-
|
|
100
|
-
---
|
|
101
|
-
|
|
102
|
-
## Troubleshooting
|
|
103
|
-
|
|
104
|
-
- If you see errors about missing `echo-dev-host` build output, re-run:
|
|
105
|
-
```sh
|
|
106
|
-
npx build-echo-dev-host
|
|
107
|
-
```
|
|
108
|
-
- For dependency version mismatches, use:
|
|
109
|
-
```sh
|
|
110
|
-
npx update-echo-libs
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
---
|
|
114
|
-
|
|
115
|
-
## More Information
|
|
116
|
-
|
|
117
|
-
- [echo-cli documentation](../README.md)
|
|
118
|
-
- [How to release new echo-cli versions](../README.md#how-to-make-a-new-release)
|
|
119
|
-
- [EchopediaWeb monorepo documentation](../../../README.md)
|
|
120
|
-
|
|
121
|
-
---
|
|
1
|
+
# echo-dev-host
|
|
2
|
+
|
|
3
|
+
**echo-dev-host** is a lightweight host application for developing and testing Echo Modules locally. It is shipped as source code with [`echo-cli`](../README.md) and provides a development shell that closely mimics the EchopediaWeb environment.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## What is echo-dev-host?
|
|
8
|
+
|
|
9
|
+
- Provides a local "empty shell" of EchopediaWeb for rapid Echo Module development.
|
|
10
|
+
- Ensures your module runs with the same dependencies and environment as production.
|
|
11
|
+
- Supports hot module reloading for fast feedback during development.
|
|
12
|
+
- Now shipped as source code, so you can update dependencies and rebuild locally—no need to wait for a new `echo-cli` release.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## New Workflow (from 2025)
|
|
17
|
+
|
|
18
|
+
**You are now in control of the Echo library versions used by your dev host!**
|
|
19
|
+
|
|
20
|
+
1. **Develop Echo libraries** (`echo-core`, `echo-base`, `echo-utils`, etc.) in the EchopediaWeb monorepo.
|
|
21
|
+
2. **Release new versions** of these libraries from EchopediaWeb.
|
|
22
|
+
3. **echo-cli** now ships with the source code of `echo-dev-host` (formerly echo-client), not a pre-built version.
|
|
23
|
+
4. **Consumer project:**
|
|
24
|
+
- Builds `echo-dev-host` locally using `npx build-echo-dev-host`
|
|
25
|
+
- Can update Echo library dependencies locally using `npx update-echo-libs`
|
|
26
|
+
- No need to bump and release `echo-cli` for every Echo library update—much more efficient and flexible.
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Getting Started
|
|
31
|
+
|
|
32
|
+
### Prerequisites
|
|
33
|
+
|
|
34
|
+
- Node.js (see [root README](../../../README.md) for version requirements)
|
|
35
|
+
- [`echo-cli`](../README.md) installed as a dev dependency in your Echo Module project
|
|
36
|
+
|
|
37
|
+
### Typical Workflow
|
|
38
|
+
|
|
39
|
+
1. **Install dependencies**
|
|
40
|
+
In your Echo Module project:
|
|
41
|
+
|
|
42
|
+
```sh
|
|
43
|
+
npm install
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
2. **Build echo-dev-host locally**
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
npx build-echo-dev-host
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
This will:
|
|
53
|
+
|
|
54
|
+
- Copy `echo-dev-host` from `node_modules/@equinor/echo-cli` to your project root as `echo-dev-host-tmp`
|
|
55
|
+
- Install dependencies and build `echo-dev-host`
|
|
56
|
+
- Copy the build output back to `node_modules/@equinor/echo-cli`
|
|
57
|
+
|
|
58
|
+
3. **Start development server**
|
|
59
|
+
|
|
60
|
+
```sh
|
|
61
|
+
npm start
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Your module will open in the browser, running inside the dev host.
|
|
65
|
+
|
|
66
|
+
4. **Update Echo library dependencies (optional)**
|
|
67
|
+
To update the Echo libraries used by your dev host:
|
|
68
|
+
```sh
|
|
69
|
+
npx update-echo-libs
|
|
70
|
+
```
|
|
71
|
+
- You will be prompted for each Echo library to update to the latest or specify a version.
|
|
72
|
+
- Use the `-a` flag to update all to the latest automatically:
|
|
73
|
+
```sh
|
|
74
|
+
npx update-echo-libs -a
|
|
75
|
+
```
|
|
76
|
+
- This updates dependencies and rebuilds `echo-dev-host`.
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## Commands Reference
|
|
81
|
+
|
|
82
|
+
- **`npx build-echo-dev-host`**
|
|
83
|
+
|
|
84
|
+
- Builds the dev host locally with your current Echo library versions.
|
|
85
|
+
- Should be run after installing or updating dependencies.
|
|
86
|
+
|
|
87
|
+
- **`npx update-echo-libs`**
|
|
88
|
+
- Prompts you to update Echo library dependencies in the dev host.
|
|
89
|
+
- Rebuilds the dev host after updating.
|
|
90
|
+
- Use `-a` to update all Echo libraries to the latest versions automatically.
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## Why this new approach?
|
|
95
|
+
|
|
96
|
+
- **No more waiting for echo-cli releases** just to get new Echo library versions.
|
|
97
|
+
- **You control the dev host dependencies**—update and rebuild as needed.
|
|
98
|
+
- **Faster, more flexible development** for all Echo teams.
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## Troubleshooting
|
|
103
|
+
|
|
104
|
+
- If you see errors about missing `echo-dev-host` build output, re-run:
|
|
105
|
+
```sh
|
|
106
|
+
npx build-echo-dev-host
|
|
107
|
+
```
|
|
108
|
+
- For dependency version mismatches, use:
|
|
109
|
+
```sh
|
|
110
|
+
npx update-echo-libs
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## More Information
|
|
116
|
+
|
|
117
|
+
- [echo-cli documentation](../README.md)
|
|
118
|
+
- [How to release new echo-cli versions](../README.md#how-to-make-a-new-release)
|
|
119
|
+
- [EchopediaWeb monorepo documentation](../../../README.md)
|
|
120
|
+
|
|
121
|
+
---
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
presets: ['@babel/preset-env', ['@babel/preset-react', {'runtime': 'automatic'}]],
|
|
3
|
-
plugins: [
|
|
4
|
-
'@babel/plugin-syntax-dynamic-import'
|
|
5
|
-
],
|
|
6
|
-
env: {
|
|
7
|
-
test: {
|
|
8
|
-
plugins: ['@babel/plugin-transform-runtime'],
|
|
9
|
-
},
|
|
10
|
-
},
|
|
1
|
+
module.exports = {
|
|
2
|
+
presets: ['@babel/preset-env', ['@babel/preset-react', {'runtime': 'automatic'}]],
|
|
3
|
+
plugins: [
|
|
4
|
+
'@babel/plugin-syntax-dynamic-import'
|
|
5
|
+
],
|
|
6
|
+
env: {
|
|
7
|
+
test: {
|
|
8
|
+
plugins: ['@babel/plugin-transform-runtime'],
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
11
|
};
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
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_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"};
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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_babel_polyfill_lib_index_js-node_modules_react-dom_client_js-node_module-8e2452.echo.bundle.js"></script><script defer src="/main.echo.bundle.js"></script></head>
|
|
18
|
+
<body data-color-scheme="light">
|
|
19
|
+
<div id="root"></div>
|
|
20
|
+
</body>
|
|
21
|
+
</html>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see main.echo.bundle.js.LICENSE.txt */
|
|
2
|
+
(()=>{"use strict";var e,n,t,o={"./node_modules/css-loader/dist/cjs.js!./src/app.css"(e,n,t){t.r(n),t.d(n,{default:()=>l});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 */\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"],sourceRoot:""}]);const l=i},"./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./src/components/Home/home.module.css"(e,n,t){t.r(n),t.d(n,{default:()=>l});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 {\n display: grid;\n grid-template-rows: 30% 100px auto 56px;\n gap: 1rem;\n height: 100%;\n width: 100%;\n}\n\n.plantSelector {\n display: flex;\n justify-content: center;\n align-items: baseline;\n align-self: center;\n flex-flow: wrap;\n}\n\n.heading {\n padding-left: 18px;\n}\n\n.brandSliderContainer {\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.appBar {\n margin: 0 auto 48px;\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n align-items: flex-start;\n}\n\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 l=i},"./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./src/components/dummySearchPanel/dummySearchPanel.module.css"(e,n,t){t.r(n),t.d(n,{default:()=>l});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-dummySearchPanel__panel-tKXOK {\n padding: var(--small);\n}\n\n.echo-dummySearchPanel__wrapper-CEsYp {\n display: flex;\n flex-direction: column;\n margin: 10px;\n}\n\n.echo-dummySearchPanel__close-rcjVi {\n align-self: end;\n}\n","",{version:3,sources:["webpack://./src/components/dummySearchPanel/dummySearchPanel.module.css"],names:[],mappings:"AAAA;IACI,qBAAqB;AACzB;;AAEA;IACI,aAAa;IACb,sBAAsB;IACtB,YAAY;AAChB;;AAEA;IACI,eAAe;AACnB",sourcesContent:[".panel {\n padding: var(--small);\n}\n\n.wrapper {\n display: flex;\n flex-direction: column;\n margin: 10px;\n}\n\n.close {\n align-self: end;\n}\n"],sourceRoot:""}]),i.locals={panel:"echo-dummySearchPanel__panel-tKXOK",wrapper:"echo-dummySearchPanel__wrapper-CEsYp",close:"echo-dummySearchPanel__close-rcjVi"};const l=i},"./src/api/api-plants.ts"(e,n,t){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 l(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,l)}a((o=o.apply(e,n||[])).next())}))},r=this&&this.__generator||function(e,n){var t,o,r,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(a){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(s=0)),s;)try{if(t=1,o&&(r=2&l[0]?o.return:l[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,l[1])).done)return r;switch(o=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,o=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==l[0]&&2!==l[0])){s=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){s.label=l[1];break}if(6===l[0]&&s.label<r[1]){s.label=r[1],r=l;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(l);break}r[2]&&s.ops.pop(),s.trys.pop();continue}l=n.call(e,s)}catch(e){l=[6,e],o=0}finally{t=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,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.css"(e,n,t){t.r(n),t.d(n,{default:()=>_});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),l=t("./node_modules/style-loader/dist/runtime/insertBySelector.js"),a=t.n(l),d=t("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),u=t.n(d),c=t("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),m=t.n(c),h=t("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),p=t.n(h),f=t("./node_modules/css-loader/dist/cjs.js!./src/app.css"),A={};A.styleTagTransform=p(),A.setAttributes=u(),A.insert=a().bind(null,"head"),A.domAPI=i(),A.insertStyleElement=m(),r()(f.default,A);const _=f.default&&f.default.locals?f.default.locals:void 0},"./src/app.tsx"(e,n,t){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 l(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,l)}a((o=o.apply(e,n||[])).next())}))},r=this&&this.__generator||function(e,n){var t,o,r,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(a){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(s=0)),s;)try{if(t=1,o&&(r=2&l[0]?o.return:l[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,l[1])).done)return r;switch(o=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,o=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==l[0]&&2!==l[0])){s=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){s.label=l[1];break}if(6===l[0]&&s.label<r[1]){s.label=r[1],r=l;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(l);break}r[2]&&s.ops.pop(),s.trys.pop();continue}l=n.call(e,s)}catch(e){l=[6,e],o=0}finally{t=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,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"),l=t("./node_modules/@equinor/echo-framework/index.cjs.js"),a=t("./node_modules/@equinor/echo-search/index.cjs.js"),d=t("./node_modules/react-router-dom/esm/react-router-dom.js"),u=t("./src/api/api-plants.ts");t("./src/app.css");var c=t("./src/components/Home/Home.tsx"),m=t("./src/components/legend.tsx");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(),n=u.getCorePlants,t={userFriendlyErrorMessage:"[echo-dev-host][app.tsx] Failed to load plants data",displayToast:!0},n().catch((function(e){console.error(e,t.userFriendlyErrorMessage),t.displayToast&&(0,l.displayToast)({message:t.userFriendlyErrorMessage})})),[2]}var n,t}))}))})),(0,s.jsx)(l.EchoEventHandler,{children:(0,s.jsxs)(l.EchoContent,{Legend:m.Legend,isOnboardingCompleted:!0,children:[(0,s.jsxs)(d.Switch,{children:[(0,s.jsx)(l.EchoRoutes,{homeComponent:c.Home}),(0,s.jsx)(d.Route,{render:function(){return(0,s.jsx)(d.Redirect,{to:"/"})}})]}),(0,s.jsx)(l.Toasters,{})]})})}},"./src/components/Home/Home.tsx"(e,n,t){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")),l=o(t("./src/components/Home/home.module.css"));n.Home=function(){return(0,r.jsxs)("main",{className:l.default.home,children:[(0,r.jsxs)("div",{className:l.default.plantSelector,children:[(0,r.jsx)("div",{children:(0,r.jsx)(s.EchoLogo,{})}),(0,r.jsx)(s.PlantSelector,{})]}),(0,r.jsx)(s.AppLinks,{}),(0,r.jsx)("div",{className:l.default.brandSliderContainer,children:(0,r.jsx)("img",{src:i.default,alt:"Application Echo on tablet"})}),(0,r.jsx)(s.Footer,{})]})}},"./src/components/Home/home.module.css"(e,n,t){t.r(n),t.d(n,{default:()=>_});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),l=t("./node_modules/style-loader/dist/runtime/insertBySelector.js"),a=t.n(l),d=t("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),u=t.n(d),c=t("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),m=t.n(c),h=t("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),p=t.n(h),f=t("./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./src/components/Home/home.module.css"),A={};A.styleTagTransform=p(),A.setAttributes=u(),A.insert=a().bind(null,"head"),A.domAPI=i(),A.insertStyleElement=m(),r()(f.default,A);const _=f.default&&f.default.locals?f.default.locals:void 0},"./src/components/dummySearchPanel/DummySearchPanel.tsx"(e,n,t){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.dummySearchPanel=void 0;var r=t("./node_modules/react/jsx-runtime.js"),s=t("./node_modules/@equinor/echo-core/index.cjs.js"),i=o(t("./src/components/dummySearchPanel/dummySearchPanel.module.css"));n.dummySearchPanel={component:function(){return(0,r.jsx)("div",{className:i.default.wrapper,children:(0,r.jsxs)("div",{className:i.default.panel,children:[(0,r.jsx)("h3",{children:"SearchMenu"}),(0,r.jsxs)("p",{children:["You're running your echo app in ",(0,r.jsx)("b",{children:"echo-dev-host"}),", a host application for echo apps / modules."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("b",{children:"echo-dev-host"})," is a bare-bones version of the original app, echopediaWeb. The purpose of it is to help echo teams to develop their app independently from echopediaWeb itself."]})]})})},panelType:s.PanelType.left,key:s.ECHO_CORE_SEARCH,icon:"search",label:"Search"}},"./src/components/dummySearchPanel/dummySearchPanel.module.css"(e,n,t){t.r(n),t.d(n,{default:()=>_});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),l=t("./node_modules/style-loader/dist/runtime/insertBySelector.js"),a=t.n(l),d=t("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),u=t.n(d),c=t("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),m=t.n(c),h=t("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),p=t.n(h),f=t("./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./src/components/dummySearchPanel/dummySearchPanel.module.css"),A={};A.styleTagTransform=p(),A.setAttributes=u(),A.insert=a().bind(null,"head"),A.domAPI=i(),A.insertStyleElement=m(),r()(f.default,A);const _=f.default&&f.default.locals?f.default.locals:void 0},"./src/components/legend.tsx"(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Legend=void 0,n.Legend=function(){return null}},"./src/images/frontpage-brand-placeholder.jpg"(e,n,t){t.r(n),t.d(n,{default:()=>o});const o=t.p+"d2d97a9feca22f12a8c8c7413d7867ac.jpg"},"./src/index.tsx"(e,n,t){var o,r=this&&this.__assign||function(){return r=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},r.apply(this,arguments)},s=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]}),i=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),l=this&&this.__importStar||(o=function(e){return o=Object.getOwnPropertyNames||function(e){var n=[];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[n.length]=t);return n},o(e)},function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t=o(e),r=0;r<t.length;r++)"default"!==t[r]&&s(n,e,t[r]);return i(n,e),n});Object.defineProperty(n,"__esModule",{value:!0});var a=t("./node_modules/react/jsx-runtime.js"),d=l(t("./node_modules/@equinor/echo-core/index.cjs.js")),u=t("./node_modules/@equinor/echo-framework/index.cjs.js"),c=t("./node_modules/@equinor/eds-core-react/dist/esm/index.js"),m=l(t("./node_modules/@equinor/eds-icons/dist/esm/index.js")),h=t("./src/utils/setupSkipAuth.ts"),p=t("./node_modules/@tanstack/react-query/build/modern/index.cjs"),f=t("./node_modules/react-dom/client.js"),A=t("./node_modules/react-router-dom/esm/react-router-dom.js"),_=t("./src/app.tsx"),y=t("./src/components/dummySearchPanel/DummySearchPanel.tsx");if(window===window.parent||window.opener){var j=document.getElementById("root");(0,f.createRoot)(j).render((0,a.jsx)((function(){(0,h.initForE2ETests)();var e=d.default.useEchoSetup({leftPanels:[y.dummySearchPanel],rightPanel:u.mainMenu});c.Icon.add(r({},m));var n={createApi:(0,d.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.cjs.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,a.jsx)(a.Fragment,{children:e&&(0,a.jsx)(d.default.AuthProviderComponent,{children:(0,a.jsx)(p.QueryClientProvider,{client:d.queryClient,children:(0,a.jsxs)(d.EventHubProvider,{children:[(0,a.jsx)(u.Mediator,{options:n}),(0,a.jsx)(A.BrowserRouter,{children:(0,a.jsx)(_.EchoApp,{})})]})})})})}),{}))}},"./src/utils/setupSkipAuth.ts"(e,n,t){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 l(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,l)}a((o=o.apply(e,n||[])).next())}))},r=this&&this.__generator||function(e,n){var t,o,r,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(a){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(s=0)),s;)try{if(t=1,o&&(r=2&l[0]?o.return:l[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,l[1])).done)return r;switch(o=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,o=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==l[0]&&2!==l[0])){s=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){s.label=l[1];break}if(6===l[0]&&s.label<r[1]){s.label=r[1],r=l;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(l);break}r[2]&&s.ops.pop(),s.trys.pop();continue}l=n.call(e,s)}catch(e){l=[6,e],o=0}finally{t=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,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,l.getDeepLinkParams)(["skipAuth"]).skipAuth;"true"===(null==e?void 0:e.toLowerCase())&&d()},n.setupSkipAuth=d;var i=s(t("./node_modules/@equinor/echo-core/index.cjs.js")),l=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 d(){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()]}))}))}}}},r={};function s(e){var n=r[e];if(void 0!==n)return n.exports;if(void 0===o[e]){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}var i=r[e]={id:e,loaded:!1,exports:{}};return o[e].call(i.exports,i,i.exports,s),i.loaded=!0,i.exports}s.m=o,e=[],s.O=(n,t,o,r)=>{if(!t){var i=1/0;for(u=0;u<e.length;u++){for(var[t,o,r]=e[u],l=!0,a=0;a<t.length;a++)(!1&r||i>=r)&&Object.keys(s.O).every((e=>s.O[e](t[a])))?t.splice(a--,1):(l=!1,r<i&&(i=r));if(l){e.splice(u--,1);var d=o();void 0!==d&&(n=d)}}return n}r=r||0;for(var u=e.length;u>0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[t,o,r]},s.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return s.d(n,{a:n}),n},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.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);s.r(r);var i={};n=n||[null,t({}),t([]),t(t)];for(var l=2&o&&e;("object"==typeof l||"function"==typeof l)&&!~n.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((n=>i[n]=()=>e[n]));return i.default=()=>e,s.d(r,i),r},s.d=(e,n)=>{for(var t in n)s.o(n,t)&&!s.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),s.p="/",(()=>{var e={main:0};s.O.j=n=>0===e[n];var n=(n,t)=>{var o,r,[i,l,a]=t,d=0;if(i.some((n=>0!==e[n]))){for(o in l)s.o(l,o)&&(s.m[o]=l[o]);if(a)var u=a(s)}for(n&&n(t);d<i.length;d++)r=i[d],s.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return s.O(u)},t=self.webpackChunk_equinor_echo_dev_host=self.webpackChunk_equinor_echo_dev_host||[];t.forEach(n.bind(null,0)),t.push=n.bind(null,t.push.bind(t))})(),s.nc=void 0,s.O(void 0,["vendors-node_modules_babel_polyfill_lib_index_js-node_modules_react-dom_client_js-node_module-8e2452"],(()=>s("./node_modules/@babel/polyfill/lib/index.js")));var i=s.O(void 0,["vendors-node_modules_babel_polyfill_lib_index_js-node_modules_react-dom_client_js-node_module-8e2452"],(()=>s("./src/index.tsx")));i=s.O(i)})();
|
|
3
|
+
//# sourceMappingURL=main.echo.bundle.js.map
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/*! !!../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./dummySearchPanel.module.css */
|
|
2
|
+
|
|
3
|
+
/*! !!../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./home.module.css */
|
|
4
|
+
|
|
5
|
+
/*! !!../node_modules/css-loader/dist/cjs.js!./app.css */
|
|
6
|
+
|
|
7
|
+
/*! !../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */
|
|
8
|
+
|
|
9
|
+
/*! !../../../node_modules/style-loader/dist/runtime/insertBySelector.js */
|
|
10
|
+
|
|
11
|
+
/*! !../../../node_modules/style-loader/dist/runtime/insertStyleElement.js */
|
|
12
|
+
|
|
13
|
+
/*! !../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */
|
|
14
|
+
|
|
15
|
+
/*! !../../../node_modules/style-loader/dist/runtime/styleDomAPI.js */
|
|
16
|
+
|
|
17
|
+
/*! !../../../node_modules/style-loader/dist/runtime/styleTagTransform.js */
|
|
18
|
+
|
|
19
|
+
/*! !../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */
|
|
20
|
+
|
|
21
|
+
/*! !../node_modules/style-loader/dist/runtime/insertBySelector.js */
|
|
22
|
+
|
|
23
|
+
/*! !../node_modules/style-loader/dist/runtime/insertStyleElement.js */
|
|
24
|
+
|
|
25
|
+
/*! !../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */
|
|
26
|
+
|
|
27
|
+
/*! !../node_modules/style-loader/dist/runtime/styleDomAPI.js */
|
|
28
|
+
|
|
29
|
+
/*! !../node_modules/style-loader/dist/runtime/styleTagTransform.js */
|
|
30
|
+
|
|
31
|
+
/*! ../../../node_modules/css-loader/dist/runtime/api.js */
|
|
32
|
+
|
|
33
|
+
/*! ../../../node_modules/css-loader/dist/runtime/sourceMaps.js */
|
|
34
|
+
|
|
35
|
+
/*! ../../images/frontpage-brand-placeholder.jpg */
|
|
36
|
+
|
|
37
|
+
/*! ../node_modules/css-loader/dist/runtime/api.js */
|
|
38
|
+
|
|
39
|
+
/*! ../node_modules/css-loader/dist/runtime/sourceMaps.js */
|
|
40
|
+
|
|
41
|
+
/*! ./api/api-plants */
|
|
42
|
+
|
|
43
|
+
/*! ./app */
|
|
44
|
+
|
|
45
|
+
/*! ./app.css */
|
|
46
|
+
|
|
47
|
+
/*! ./components/Home/Home */
|
|
48
|
+
|
|
49
|
+
/*! ./components/dummySearchPanel/DummySearchPanel */
|
|
50
|
+
|
|
51
|
+
/*! ./components/legend */
|
|
52
|
+
|
|
53
|
+
/*! ./dummySearchPanel.module.css */
|
|
54
|
+
|
|
55
|
+
/*! ./home.module.css */
|
|
56
|
+
|
|
57
|
+
/*! ./utils/setupSkipAuth */
|
|
58
|
+
|
|
59
|
+
/*! @equinor/echo-base */
|
|
60
|
+
|
|
61
|
+
/*! @equinor/echo-components */
|
|
62
|
+
|
|
63
|
+
/*! @equinor/echo-core */
|
|
64
|
+
|
|
65
|
+
/*! @equinor/echo-framework */
|
|
66
|
+
|
|
67
|
+
/*! @equinor/echo-search */
|
|
68
|
+
|
|
69
|
+
/*! @equinor/echo-utils */
|
|
70
|
+
|
|
71
|
+
/*! @equinor/eds-core-react */
|
|
72
|
+
|
|
73
|
+
/*! @equinor/eds-icons */
|
|
74
|
+
|
|
75
|
+
/*! @tanstack/react-query */
|
|
76
|
+
|
|
77
|
+
/*! classnames */
|
|
78
|
+
|
|
79
|
+
/*! lodash */
|
|
80
|
+
|
|
81
|
+
/*! react */
|
|
82
|
+
|
|
83
|
+
/*! react-dom */
|
|
84
|
+
|
|
85
|
+
/*! react-dom/client */
|
|
86
|
+
|
|
87
|
+
/*! react-router-dom */
|
|
88
|
+
|
|
89
|
+
/*! react/jsx-runtime */
|
|
90
|
+
|
|
91
|
+
/*! styled-components */
|
|
92
|
+
|
|
93
|
+
/*! zustand */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.echo.bundle.js","mappings":";uBAAIA,ECCAC,EADAC,E,4NCGAC,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,gNAYtC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,2BAA2B,MAAQ,GAAG,SAAW,oFAAoF,eAAiB,CAAC,iNAAiN,WAAa,MAEnZ,S,+QChBIH,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,8tBAsCtC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,mDAAmD,MAAQ,GAAG,SAAW,gUAAgU,eAAiB,CAAC,0oBAA0oB,WAAa,MAEhlCH,EAAwBI,OAAS,CAChC,KAAQ,wBACR,cAAiB,iCACjB,QAAW,2BACX,qBAAwB,wCACxB,OAAU,2BAEX,S,uSCjDIJ,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,6PAatC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,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,IAGI/D,EAAU4D,GAHThD,EAAUoD,EAAaC,GAAWF,EAGhB9C,EAAI,EAC3B,GAAGL,EAASsD,MAAMjM,GAAgC,IAAxB0L,EAAgB1L,KAAa,CACtD,IAAI+H,KAAYgE,EACZjE,EAAoB4C,EAAEqB,EAAahE,KACrCD,EAAoBU,EAAET,GAAYgE,EAAYhE,IAGhD,GAAGiE,EAAS,IAAItD,EAASsD,EAAQlE,EAClC,CAEA,IADG+D,GAA4BA,EAA2BC,GACrD9C,EAAIL,EAASvI,OAAQ4I,IACzB2C,EAAUhD,EAASK,GAChBlB,EAAoB4C,EAAEgB,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBC,GAAW,EAE5B,OAAO7D,EAAoBW,EAAEC,EAAO,EAGjCwD,EAAqBC,KAAyC,mCAAIA,KAAyC,oCAAK,GACpHD,EAAmBjG,QAAQ2F,EAAqBQ,KAAK,KAAM,IAC3DF,EAAmBpM,KAAO8L,EAAqBQ,KAAK,KAAMF,EAAmBpM,KAAKsM,KAAKF,G,KChDvFpE,EAAoBuE,QAAK/K,ECGzBwG,EAAoBW,OAAEnH,EAAW,CAAC,yGAAyG,IAAOwG,EAAoB,iDACtK,IAAIwE,EAAsBxE,EAAoBW,OAAEnH,EAAW,CAAC,yGAAyG,IAAOwG,EAAoB,qBAChMwE,EAAsBxE,EAAoBW,EAAE6D,E","sources":["webpack://@equinor/echo-dev-host/webpack/runtime/chunk loaded","webpack://@equinor/echo-dev-host/webpack/runtime/create fake namespace object","webpack://@equinor/echo-dev-host/./src/app.css","webpack://@equinor/echo-dev-host/./src/components/Home/home.module.css","webpack://@equinor/echo-dev-host/./src/components/dummySearchPanel/dummySearchPanel.module.css","webpack://@equinor/echo-dev-host/./src/api/api-plants.ts","webpack://@equinor/echo-dev-host/./src/app.css?a672","webpack://@equinor/echo-dev-host/./src/app.tsx","webpack://@equinor/echo-dev-host/./src/components/Home/Home.tsx","webpack://@equinor/echo-dev-host/./src/components/Home/home.module.css?96e0","webpack://@equinor/echo-dev-host/./src/components/dummySearchPanel/DummySearchPanel.tsx","webpack://@equinor/echo-dev-host/./src/components/dummySearchPanel/dummySearchPanel.module.css?92cb","webpack://@equinor/echo-dev-host/./src/components/legend.tsx","webpack://@equinor/echo-dev-host/./src/images/frontpage-brand-placeholder.jpg","webpack://@equinor/echo-dev-host/./src/index.tsx","webpack://@equinor/echo-dev-host/./src/utils/setupSkipAuth.ts","webpack://@equinor/echo-dev-host/webpack/bootstrap","webpack://@equinor/echo-dev-host/webpack/runtime/compat get default export","webpack://@equinor/echo-dev-host/webpack/runtime/define property getters","webpack://@equinor/echo-dev-host/webpack/runtime/global","webpack://@equinor/echo-dev-host/webpack/runtime/hasOwnProperty shorthand","webpack://@equinor/echo-dev-host/webpack/runtime/make namespace object","webpack://@equinor/echo-dev-host/webpack/runtime/node module decorator","webpack://@equinor/echo-dev-host/webpack/runtime/publicPath","webpack://@equinor/echo-dev-host/webpack/runtime/jsonp chunk loading","webpack://@equinor/echo-dev-host/webpack/runtime/nonce","webpack://@equinor/echo-dev-host/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' || typeof current == 'function') && !~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};","// 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 */\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 */\\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\"],\"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 {\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 {\\n display: grid;\\n grid-template-rows: 30% 100px auto 56px;\\n gap: 1rem;\\n height: 100%;\\n width: 100%;\\n}\\n\\n.plantSelector {\\n display: flex;\\n justify-content: center;\\n align-items: baseline;\\n align-self: center;\\n flex-flow: wrap;\\n}\\n\\n.heading {\\n padding-left: 18px;\\n}\\n\\n.brandSliderContainer {\\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.appBar {\\n margin: 0 auto 48px;\\n display: flex;\\n flex-wrap: wrap;\\n justify-content: center;\\n align-items: flex-start;\\n}\\n\\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","// 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-dummySearchPanel__panel-tKXOK {\n padding: var(--small);\n}\n\n.echo-dummySearchPanel__wrapper-CEsYp {\n display: flex;\n flex-direction: column;\n margin: 10px;\n}\n\n.echo-dummySearchPanel__close-rcjVi {\n align-self: end;\n}\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/dummySearchPanel/dummySearchPanel.module.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,qBAAqB;AACzB;;AAEA;IACI,aAAa;IACb,sBAAsB;IACtB,YAAY;AAChB;;AAEA;IACI,eAAe;AACnB\",\"sourcesContent\":[\".panel {\\n padding: var(--small);\\n}\\n\\n.wrapper {\\n display: flex;\\n flex-direction: column;\\n margin: 10px;\\n}\\n\\n.close {\\n align-self: end;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"panel\": `echo-dummySearchPanel__panel-tKXOK`,\n\t\"wrapper\": `echo-dummySearchPanel__wrapper-CEsYp`,\n\t\"close\": `echo-dummySearchPanel__close-rcjVi`\n};\nexport default ___CSS_LOADER_EXPORT___;\n","import { EchoEnv, Plant, request, setPlantsData } from '@equinor/echo-core';\n\nasync function getPlantsFromApi(): Promise<Plant[] | undefined> {\n const url = `${EchoEnv.env().REACT_APP_API_URL}/plants`;\n return request<Plant[]>({\n url,\n cache: {\n timeInSeconds: 4 * 60 * 60 // 4 hours\n }\n });\n}\n\nexport async function getCorePlants(): Promise<void> {\n try {\n const apiPlants = (await getPlantsFromApi()) ?? [];\n\n if (apiPlants && apiPlants.length > 0) {\n setPlantsData({ plants: apiPlants });\n }\n } catch (ex) {\n console.error(ex);\n }\n}\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!./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","import { EchoEnv, useInitial } from '@equinor/echo-core';\nimport { displayToast, EchoContent, EchoEventHandler, EchoRoutes, Toasters } from '@equinor/echo-framework';\nimport { Syncer } from '@equinor/echo-search';\nimport React from 'react';\nimport { Redirect as TypedRedirect, Route as TypedRoute, Switch as TypedSwitch } from 'react-router-dom';\nimport { getCorePlants } from './api/api-plants';\nimport './app.css';\nimport { Home } from './components/Home/Home';\nimport { Legend } from './components/legend';\n\nexport const EchoApp: React.FC = () => {\n useInitial(async () => {\n await Syncer.configuration.setApiBaseUrl(EchoEnv.env().REACT_APP_API_URL);\n fireAndForget(getCorePlants, {\n userFriendlyErrorMessage: '[echo-dev-host][app.tsx] Failed to load plants data',\n displayToast: true\n });\n });\n\n return (\n <EchoEventHandler>\n <EchoContent Legend={Legend} isOnboardingCompleted={true}>\n <TypedSwitch>\n <EchoRoutes homeComponent={Home} />\n <TypedRoute render={(): JSX.Element => <TypedRedirect to=\"/\" />} />\n </TypedSwitch>\n <Toasters />\n </EchoContent>\n </EchoEventHandler>\n );\n};\n\nfunction fireAndForget(\n asyncFunc: () => Promise<void>,\n options: { userFriendlyErrorMessage: string; displayToast?: boolean }\n): void {\n asyncFunc().catch((error) => {\n console.error(error, options.userFriendlyErrorMessage);\n if (options.displayToast) {\n displayToast({ message: options.userFriendlyErrorMessage });\n }\n });\n}\n","import { AppLinks, EchoLogo, Footer, PlantSelector } from '@equinor/echo-framework';\nimport React from 'react';\nimport placeholderHomeImage from '../../images/frontpage-brand-placeholder.jpg';\nimport style from './home.module.css';\n\nexport const Home: React.FC = () => {\n return (\n <main className={style.home}>\n <div className={style.plantSelector}>\n <div>\n <EchoLogo />\n </div>\n\n <PlantSelector />\n </div>\n <AppLinks />\n <div className={style.brandSliderContainer}>\n <img src={placeholderHomeImage} alt=\"Application Echo on tablet\" />\n </div>\n <Footer />\n </main>\n );\n};\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 { ECHO_CORE_SEARCH, Panel, PanelType } from '@equinor/echo-core';\nimport React from 'react';\nimport style from './dummySearchPanel.module.css';\n\nconst DummySearchMenu: React.FC = () => {\n return (\n <div className={style.wrapper}>\n <div className={style.panel}>\n <h3>SearchMenu</h3>\n <p>\n You're running your echo app in <b>echo-dev-host</b>, a host application for echo apps / modules.\n </p>\n <p>\n <b>echo-dev-host</b> is a bare-bones version of the original app, echopediaWeb. The purpose of it is\n to help echo teams to develop their app independently from echopediaWeb itself.\n </p>\n </div>\n </div>\n );\n};\n\nexport const dummySearchPanel: Panel = {\n component: DummySearchMenu,\n panelType: PanelType.left,\n key: ECHO_CORE_SEARCH,\n icon: 'search',\n label: 'Search'\n};\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]!./dummySearchPanel.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]!./dummySearchPanel.module.css\";\n export default content && content.locals ? content.locals : undefined;\n","export const Legend: React.FC = () => {\n return null;\n};\n","export default __webpack_public_path__ + \"d2d97a9feca22f12a8c8c7413d7867ac.jpg\";","import { LoadingModuleOptions } from '@equinor/echo-base';\nimport EchoCore, { createEchoAppModuleApi, EventHubProvider, queryClient } from '@equinor/echo-core';\nimport { mainMenu, Mediator } from '@equinor/echo-framework';\nimport { Icon } from '@equinor/eds-core-react';\nimport * as Icons from '@equinor/eds-icons';\nimport React from 'react';\nimport { initForE2ETests } from './utils/setupSkipAuth';\n\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport { createRoot } from 'react-dom/client';\nimport { BrowserRouter } from 'react-router-dom';\nimport { EchoApp } from './app';\nimport { dummySearchPanel } from './components/dummySearchPanel/DummySearchPanel';\n\nconst useEdsIcon = (): void => {\n Icon.add({\n ...Icons\n });\n};\n\nconst Echo: React.FC = (): JSX.Element => {\n /* Needed to skip authentication when running e2e tests*/\n initForE2ETests();\n\n const isAuthenticated = EchoCore.useEchoSetup({\n leftPanels: [dummySearchPanel],\n rightPanel: mainMenu\n });\n useEdsIcon();\n const moduleOptions: LoadingModuleOptions = {\n createApi: createEchoAppModuleApi(),\n dependencies: {\n react: require('react'),\n 'react-dom': require('react-dom'),\n 'react-router-dom': require('react-router-dom'),\n '@equinor/echo-core': require('@equinor/echo-core'),\n '@equinor/echo-framework': require('@equinor/echo-framework'),\n '@equinor/echo-utils': require('@equinor/echo-utils'),\n '@equinor/echo-components': require('@equinor/echo-components'),\n '@equinor/echo-base': require('@equinor/echo-base'),\n '@equinor/echo-search': require('@equinor/echo-search'),\n '@equinor/eds-core-react': require('@equinor/eds-core-react'),\n '@equinor/eds-icons': require('@equinor/eds-icons'),\n 'styled-components': require('styled-components'),\n classnames: require('classnames'),\n lodash: require('lodash'),\n zustand: require('zustand')\n },\n fetchModules: () => {\n return new Promise((resolve) => {\n fetch('/echoModuleManifest.json').then((response) => {\n response.json().then((manifests) => {\n manifests.forEach((manifest) => {\n manifest.fileUri = `/index.js`;\n });\n resolve(manifests);\n });\n });\n });\n }\n };\n return (\n <>\n {isAuthenticated && (\n <EchoCore.AuthProviderComponent>\n {/*\n Need to cast queryClient to QueryClient because of the following error:\n TS2352: Conversion of type 'import(\"Equinor\\\\EchopediaWeb\\\\node_modules\\\\@tanstack\\\\query-core\\\\build\\\\modern\\\\hydration-CwYEwyQI\").b' to type 'import(\"Equinor\\\\EchopediaWeb\\\\node_modules\\\\@tanstack\\\\query-core\\\\build\\\\modern\\\\hydration-BlEK5ylC\").b' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. \n Property '#private' in type 'QueryClient' refers to a different member that cannot be accessed from within type 'QueryClient'.\n Based on my research we used the same version of react-query in echopediaWeb and echo-client.\n */}\n <QueryClientProvider client={queryClient as unknown as QueryClient}>\n <EventHubProvider>\n <Mediator options={moduleOptions} />\n <BrowserRouter>\n <EchoApp />\n </BrowserRouter>\n </EventHubProvider>\n </QueryClientProvider>\n </EchoCore.AuthProviderComponent>\n )}\n </>\n );\n};\n\nif (!(window !== window.parent && !window.opener)) {\n const container = document.getElementById('root') as HTMLElement;\n const root = createRoot(container);\n root.render(<Echo />);\n}\n","import EchoCore, { AuthenticationResult } from '@equinor/echo-core';\nimport { getDeepLinkParams } from '@equinor/echo-utils';\n\nexport function initForE2ETests() {\n const { skipAuth } = getDeepLinkParams(['skipAuth']);\n if (skipAuth?.toLowerCase() === 'true') {\n setupSkipAuth();\n }\n}\n\nconst setAuthentication = () => {\n EchoCore.EchoAuthProvider.isAuthenticated = true;\n EchoCore.EchoAuthProvider.userProperties = {\n account: {\n homeAccountId: 'homeAccountId',\n environment: 'testingEnvironment',\n tenantId: 'tenantId',\n username: 'tester',\n localAccountId: 'tester123'\n }\n };\n};\n\nexport function setupSkipAuth() {\n EchoCore.EchoAuthProvider.isAuthenticated = true;\n EchoCore.EchoAuthProvider.handleLogin = async (logRequest?: (...args: unknown[]) => void): Promise<void> => {\n setAuthentication();\n return Promise.resolve(undefined);\n };\n EchoCore.EchoAuthProvider.ssoSilentOrRedirectToAuthenticate = async () => {\n setAuthentication();\n return Promise.resolve(undefined);\n };\n EchoCore.EchoAuthProvider.aquireTokenSilentOrRedirectToAuthenticate =\n async (): Promise<AuthenticationResult | null> => {\n setAuthentication();\n return null;\n };\n EchoCore.EchoAuthProvider.login = async () => {\n setAuthentication();\n return Promise.resolve();\n };\n}\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// Check if module exists (development only)\n\tif (__webpack_modules__[moduleId] === undefined) {\n\t\tvar e = new Error(\"Cannot find module '\" + moduleId + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\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","// 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__.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// no chunk on demand loading\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_dev_host\"] = self[\"webpackChunk_equinor_echo_dev_host\"] || [];\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_babel_polyfill_lib_index_js-node_modules_react-dom_client_js-node_module-8e2452\"], () => (__webpack_require__(\"./node_modules/@babel/polyfill/lib/index.js\")))\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"vendors-node_modules_babel_polyfill_lib_index_js-node_modules_react-dom_client_js-node_module-8e2452\"], () => (__webpack_require__(\"./src/index.tsx\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","leafPrototypes","getProto","___CSS_LOADER_EXPORT___","push","module","id","locals","getPlantsFromApi","apiPlants","length","setPlantsData","plants","console","error","url","EchoEnv","env","REACT_APP_API_URL","request","cache","timeInSeconds","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","EchoApp","useInitial","Syncer","configuration","setApiBaseUrl","asyncFunc","getCorePlants","userFriendlyErrorMessage","displayToast","catch","message","EchoEventHandler","EchoContent","Legend","isOnboardingCompleted","EchoRoutes","homeComponent","Home","render","to","Toasters","className","home","plantSelector","EchoLogo","PlantSelector","AppLinks","brandSliderContainer","src","alt","Footer","dummySearchPanel","component","wrapper","panel","panelType","PanelType","left","key","ECHO_CORE_SEARCH","icon","label","window","parent","opener","container","document","getElementById","createRoot","initForE2ETests","isAuthenticated","useEchoSetup","leftPanels","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","EventHubProvider","Mediator","BrowserRouter","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","__webpack_modules__","e","Error","code","loaded","call","m","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","Object","keys","every","splice","r","n","getter","__esModule","d","a","getPrototypeOf","obj","t","value","mode","this","ns","create","def","current","indexOf","getOwnPropertyNames","definition","o","defineProperty","enumerable","get","g","globalThis","Function","prop","prototype","hasOwnProperty","Symbol","toStringTag","nmd","paths","children","p","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","chunkLoadingGlobal","self","bind","nc","__webpack_exports__"],"ignoreList":[],"sourceRoot":""}
|