@equinor/fusion-framework-cli 0.0.0-next-20230925133754 → 0.0.0-next-20240112080744

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.
Files changed (64) hide show
  1. package/CHANGELOG.md +237 -4
  2. package/dist/bin/bundle-application.js +5 -1
  3. package/dist/bin/bundle-application.js.map +1 -1
  4. package/dist/bin/create-dev-serve.js +28 -6
  5. package/dist/bin/create-dev-serve.js.map +1 -1
  6. package/dist/bin/dev-portal/FusionLogo.js +1 -1
  7. package/dist/bin/dev-portal/FusionLogo.js.map +1 -1
  8. package/dist/bin/dev-portal/Header.js +9 -4
  9. package/dist/bin/dev-portal/Header.js.map +1 -1
  10. package/dist/bin/dev-portal/PersonSideSheet/index.js +27 -0
  11. package/dist/bin/dev-portal/PersonSideSheet/index.js.map +1 -0
  12. package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureSheetContent.js +12 -0
  13. package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureSheetContent.js.map +1 -0
  14. package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerApp.js +13 -0
  15. package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerApp.js.map +1 -0
  16. package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerPortal.js +13 -0
  17. package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerPortal.js.map +1 -0
  18. package/dist/bin/dev-portal/PersonSideSheet/sheets/LandingSheetContent.js +16 -0
  19. package/dist/bin/dev-portal/PersonSideSheet/sheets/LandingSheetContent.js.map +1 -0
  20. package/dist/bin/dev-portal/PersonSideSheet/sheets/Styled.js +30 -0
  21. package/dist/bin/dev-portal/PersonSideSheet/sheets/Styled.js.map +1 -0
  22. package/dist/bin/dev-portal/PersonSideSheet/sheets/index.js +3 -0
  23. package/dist/bin/dev-portal/PersonSideSheet/sheets/index.js.map +1 -0
  24. package/dist/bin/dev-portal/PersonSideSheet/sheets/types.js +2 -0
  25. package/dist/bin/dev-portal/PersonSideSheet/sheets/types.js.map +1 -0
  26. package/dist/bin/dev-portal/config.js +15 -0
  27. package/dist/bin/dev-portal/config.js.map +1 -1
  28. package/dist/bin/dev-proxy.js +1 -0
  29. package/dist/bin/dev-proxy.js.map +1 -1
  30. package/dist/bin/main.app.js +10 -1
  31. package/dist/bin/main.app.js.map +1 -1
  32. package/dist/bin/main.js +1 -1
  33. package/dist/bin/main.js.map +1 -1
  34. package/dist/bin/public/assets/index-s-XEtlxP.js +4928 -0
  35. package/dist/bin/public/index.html +1 -2
  36. package/dist/lib/app-package.js +1 -1
  37. package/dist/lib/app-package.js.map +1 -1
  38. package/dist/lib/utils/config.js +6 -5
  39. package/dist/lib/utils/config.js.map +1 -1
  40. package/dist/lib/utils/file-exists.js +12 -3
  41. package/dist/lib/utils/file-exists.js.map +1 -1
  42. package/dist/lib/utils/ts-transpile.js +51 -0
  43. package/dist/lib/utils/ts-transpile.js.map +1 -0
  44. package/dist/lib/vite-logger.js +8 -2
  45. package/dist/lib/vite-logger.js.map +1 -1
  46. package/dist/types/bin/create-dev-serve.d.ts +1 -0
  47. package/dist/types/bin/dev-portal/FusionLogo.d.ts +1 -1
  48. package/dist/types/bin/dev-portal/PersonSideSheet/index.d.ts +7 -0
  49. package/dist/types/bin/dev-portal/PersonSideSheet/sheets/FeatureSheetContent.d.ts +2 -0
  50. package/dist/types/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerApp.d.ts +2 -0
  51. package/dist/types/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerPortal.d.ts +2 -0
  52. package/dist/types/bin/dev-portal/PersonSideSheet/sheets/LandingSheetContent.d.ts +2 -0
  53. package/dist/types/bin/dev-portal/PersonSideSheet/sheets/Styled.d.ts +1092 -0
  54. package/dist/types/bin/dev-portal/PersonSideSheet/sheets/index.d.ts +2 -0
  55. package/dist/types/bin/dev-portal/PersonSideSheet/sheets/types.d.ts +5 -0
  56. package/dist/types/bin/dev-proxy.d.ts +1 -0
  57. package/dist/types/lib/app-package.d.ts +1 -1
  58. package/dist/types/lib/utils/config.d.ts +1 -1
  59. package/dist/types/lib/utils/file-exists.d.ts +1 -1
  60. package/dist/types/lib/utils/ts-transpile.d.ts +2 -0
  61. package/dist/types/version.d.ts +1 -1
  62. package/dist/version.js +1 -1
  63. package/package.json +37 -39
  64. package/dist/bin/public/assets/index-620b7af7.js +0 -3600
package/CHANGELOG.md CHANGED
@@ -1,6 +1,231 @@
1
1
  # Change Log
2
2
 
3
- ## 0.0.0-next-20230925133754
3
+ ## 0.0.0-next-20240112080744
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1215](https://github.com/equinor/fusion-framework/pull/1215) [`5ea4568`](https://github.com/equinor/fusion-framework/commit/5ea45683d40d9c3187ba768a88c8da5a0d293536) Thanks [@odinr](https://github.com/odinr)! - Adding PersonSidesheet to cli with featuretoggler
8
+
9
+ - Updated dependencies [[`5ea4568`](https://github.com/equinor/fusion-framework/commit/5ea45683d40d9c3187ba768a88c8da5a0d293536), [`5ea4568`](https://github.com/equinor/fusion-framework/commit/5ea45683d40d9c3187ba768a88c8da5a0d293536)]:
10
+ - @equinor/fusion-framework-module-feature-flag@0.0.0-next-20240112080744
11
+ - @equinor/fusion-framework-react-components-people-provider@0.0.0-next-20240112080744
12
+
13
+ ## 9.5.6
14
+
15
+ ### Patch Changes
16
+
17
+ - [#1556](https://github.com/equinor/fusion-framework/pull/1556) [`1e0eda4`](https://github.com/equinor/fusion-framework/commit/1e0eda439f9096d91506b4bfae17ad4d03efab73) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps): bump @equinor/fusion-react-person from 0.6.0 to 0.6.1
18
+
19
+ - [#1614](https://github.com/equinor/fusion-framework/pull/1614) [`a3235ee`](https://github.com/equinor/fusion-framework/commit/a3235ee05a4fb237ad36fc641119195207687a4a) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps-dev): bump @equinor/fusion-react-context-selector from 0.5.0 to 0.5.3
20
+
21
+ - [#1642](https://github.com/equinor/fusion-framework/pull/1642) [`a67d77b`](https://github.com/equinor/fusion-framework/commit/a67d77b5fa1fbff626c08e85ad00fe9bb63da80d) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps): bump ora from 7.0.1 to 8.0.1
22
+
23
+ - [#1662](https://github.com/equinor/fusion-framework/pull/1662) [`e7dbce5`](https://github.com/equinor/fusion-framework/commit/e7dbce5413dff7186b1004e11b6051d1fb4373d1) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps): bump @equinor/fusion-wc-person from 2.1.8 to 2.3.0
24
+
25
+ - [#1565](https://github.com/equinor/fusion-framework/pull/1565) [`4e7dbce`](https://github.com/equinor/fusion-framework/commit/4e7dbce1a92b093bec91d48d38afd7b70fe03296) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps): bump @equinor/fusion-wc-person from 2.1.8 to 2.3.0
26
+
27
+ - Updated dependencies [[`4e7dbce`](https://github.com/equinor/fusion-framework/commit/4e7dbce1a92b093bec91d48d38afd7b70fe03296)]:
28
+ - @equinor/fusion-framework-react-components-people-provider@1.1.9
29
+ - @equinor/fusion-framework-app@7.1.15
30
+
31
+ ## 9.5.5
32
+
33
+ ### Patch Changes
34
+
35
+ - Updated dependencies []:
36
+ - @equinor/fusion-framework-app@7.1.14
37
+ - @equinor/fusion-framework-react-components-people-provider@1.1.8
38
+
39
+ ## 9.5.4
40
+
41
+ ### Patch Changes
42
+
43
+ - Updated dependencies []:
44
+ - @equinor/fusion-framework-app@7.1.13
45
+ - @equinor/fusion-framework-react-components-people-provider@1.1.7
46
+
47
+ ## 9.5.3
48
+
49
+ ### Patch Changes
50
+
51
+ - Updated dependencies [[`6ffaabf`](https://github.com/equinor/fusion-framework/commit/6ffaabf120704f2f4f4074a0fa0a17faf77fe22a)]:
52
+ - @equinor/fusion-observable@8.1.4
53
+ - @equinor/fusion-framework-app@7.1.12
54
+ - @equinor/fusion-framework-react-components-people-provider@1.1.6
55
+
56
+ ## 9.5.2
57
+
58
+ ### Patch Changes
59
+
60
+ - [#1579](https://github.com/equinor/fusion-framework/pull/1579) [`8aecfdd`](https://github.com/equinor/fusion-framework/commit/8aecfdd892c5e4cc6afbf6c736d7d46d0199611b) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps-dev): bump @equinor/fusion-react-side-sheet from 1.2.2 to 1.2.3
61
+
62
+ - [#1578](https://github.com/equinor/fusion-framework/pull/1578) [`e6859bf`](https://github.com/equinor/fusion-framework/commit/e6859bf9604b1ac388c077db97cb7bd7127f59db) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps-dev): bump @equinor/fusion-react-menu from 0.2.0 to 0.3.0
63
+
64
+ - Updated dependencies [[`9c24e84`](https://github.com/equinor/fusion-framework/commit/9c24e847d041dea8384c77439e6b237f5bdb3125)]:
65
+ - @equinor/fusion-observable@8.1.3
66
+ - @equinor/fusion-framework-react-components-people-provider@1.1.5
67
+ - @equinor/fusion-framework-app@7.1.11
68
+
69
+ ## 9.5.1
70
+
71
+ ### Patch Changes
72
+
73
+ - [#1553](https://github.com/equinor/fusion-framework/pull/1553) [`f4e02e9`](https://github.com/equinor/fusion-framework/commit/f4e02e93960ca3d1e8c1ee422c6fd8c6742bf755) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps-dev): bump @equinor/fusion-react-side-sheet from 1.2.1 to 1.2.2
74
+
75
+ - [`72e12c8`](https://github.com/equinor/fusion-framework/commit/72e12c84efb6ac7f131a8d0f217076cbb9d5ab52) Thanks [@odinr](https://github.com/odinr)! - support for module resolution EsNext
76
+
77
+ ## 9.5.0
78
+
79
+ ### Minor Changes
80
+
81
+ - [#1532](https://github.com/equinor/fusion-framework/pull/1532) [`f77c1169`](https://github.com/equinor/fusion-framework/commit/f77c11694adf3c96e86732818cbf05aaae06a695) Thanks [@dependabot](https://github.com/apps/dependabot)! - bump vite from 4.4.9 to 5.0.0
82
+
83
+ ### Patch Changes
84
+
85
+ - Updated dependencies [[`22909e77`](https://github.com/equinor/fusion-framework/commit/22909e77488b099697dccec93e7ac8416dc4a5bd)]:
86
+ - @equinor/fusion-framework-react-components-people-provider@1.1.4
87
+
88
+ ## 9.4.3
89
+
90
+ ### Patch Changes
91
+
92
+ - Updated dependencies []:
93
+ - @equinor/fusion-framework-app@7.1.10
94
+ - @equinor/fusion-framework-react-components-people-provider@1.1.3
95
+
96
+ ## 9.4.2
97
+
98
+ ### Patch Changes
99
+
100
+ - [#1533](https://github.com/equinor/fusion-framework/pull/1533) [`a571b640`](https://github.com/equinor/fusion-framework/commit/a571b640c9fe94519ce2ede22f1eb1c336ecdac9) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps): bump find-up from 6.3.0 to 7.0.0
101
+
102
+ - [#1534](https://github.com/equinor/fusion-framework/pull/1534) [`8c77de20`](https://github.com/equinor/fusion-framework/commit/8c77de209df2f41a78636f1f6f85a81d653484d2) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps): bump vite-plugin-restart from 0.3.1 to 0.4.0
103
+
104
+ - Updated dependencies []:
105
+ - @equinor/fusion-framework-app@7.1.9
106
+ - @equinor/fusion-framework-react-components-people-provider@1.1.3
107
+
108
+ ## 9.4.1
109
+
110
+ ### Patch Changes
111
+
112
+ - [#1498](https://github.com/equinor/fusion-framework/pull/1498) [`7287fa3d`](https://github.com/equinor/fusion-framework/commit/7287fa3dca655c84b3a4f5f904e3f423ec341e7a) Thanks [@odinr](https://github.com/odinr)! - bump @equinor/fusion-wc-person from 2.1.0 to 2.1.8
113
+
114
+ - Updated dependencies [[`7287fa3d`](https://github.com/equinor/fusion-framework/commit/7287fa3dca655c84b3a4f5f904e3f423ec341e7a)]:
115
+ - @equinor/fusion-framework-react-components-people-provider@1.1.3
116
+
117
+ ## 9.4.0
118
+
119
+ ### Minor Changes
120
+
121
+ - [#1491](https://github.com/equinor/fusion-framework/pull/1491) [`0f2b4e3a`](https://github.com/equinor/fusion-framework/commit/0f2b4e3a97aa08cac2644642b612cd3432d07be4) Thanks [@odinr](https://github.com/odinr)! - Allow setting archive name when packing bundle
122
+
123
+ ### Patch Changes
124
+
125
+ - [#1487](https://github.com/equinor/fusion-framework/pull/1487) [`0dfe5a94`](https://github.com/equinor/fusion-framework/commit/0dfe5a94c89b05da3ea94d5ec0180448ba0df392) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps-dev): bump [rollup](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) from 3.29.2 to 4.3.0
126
+
127
+ - [#1478](https://github.com/equinor/fusion-framework/pull/1478) [`28bd0b8c`](https://github.com/equinor/fusion-framework/commit/28bd0b8c17fd6e7c5f5146ff490441d5b3caf602) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps-dev): bump [@equinor/fusion-react-side-sheet](https://github.com/equinor/fusion-react-components/releases/tag/%40equinor%2Ffusion-react-side-sheet%401.2.1) from 1.2.0 to 1.2.1
128
+
129
+ - [#1485](https://github.com/equinor/fusion-framework/pull/1485) [`24d02ddd`](https://github.com/equinor/fusion-framework/commit/24d02ddd532424462059a7465ac82df688e1bc6e) Thanks [@dependabot](https://github.com/apps/dependabot)! - [bump read-pkg-up from 10.1.0 to 11.0.0](https://github.com/sindresorhus/read-package-up/compare/v10.1.0...v11.0.0)
130
+
131
+ ## 9.3.5
132
+
133
+ ### Patch Changes
134
+
135
+ - [#1475](https://github.com/equinor/fusion-framework/pull/1475) [`9b22a14d`](https://github.com/equinor/fusion-framework/commit/9b22a14d791878a83b6df84190922d3143fdc0df) Thanks [@odinr](https://github.com/odinr)! - fix log loop
136
+
137
+ ```bash
138
+ if (msg.match(/^Failed to load url \/assets/)) {
139
+ RangeError: Maximum call stack size exceeded
140
+ at String.match (<anonymous>)
141
+ ```
142
+
143
+ ## 9.3.4
144
+
145
+ ### Patch Changes
146
+
147
+ - [#1465](https://github.com/equinor/fusion-framework/pull/1465) [`1cdc52ab`](https://github.com/equinor/fusion-framework/commit/1cdc52abbdf8aa714d4b4035a01e474fbe56d8f6) Thanks [@odinr](https://github.com/odinr)! - cli should no use provided config when developing an application which exists in Fusion App Service.
148
+
149
+ > when dev proxy server did not get 404 when requesting application config, it provided the manifest instead of config file path
150
+
151
+ ## 9.3.3
152
+
153
+ ### Patch Changes
154
+
155
+ - [`a56172c9`](https://github.com/equinor/fusion-framework/commit/a56172c9ec241550ce57b1ea1e6ffcc8848618d5) Thanks [@odinr](https://github.com/odinr)! - rebuild cli (navigation module)
156
+
157
+ ## 9.3.2
158
+
159
+ ### Patch Changes
160
+
161
+ - [#1462](https://github.com/equinor/fusion-framework/pull/1462) [`e35d8e2b`](https://github.com/equinor/fusion-framework/commit/e35d8e2b69148a497c7acaa8e1e0bf86987f475e) Thanks [@odinr](https://github.com/odinr)! - silent error when failing to optimize pre-built assets
162
+
163
+ Vite tries to import optimize pre-built assets for the dev portal (which it should not).
164
+
165
+ see [fix: exclude external dependencies from html rewriting](https://github.com/vitejs/vite/pull/11854#issuecomment-1500453147)
166
+
167
+ - [#1442](https://github.com/equinor/fusion-framework/pull/1442) [`1173f715`](https://github.com/equinor/fusion-framework/commit/1173f71597b7b90c17d314188d83f46e1d81a2f3) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps-dev): bump @equinor/fusion-react-side-sheet from 1.1.0 to 1.2.0
168
+
169
+ ## 9.3.1
170
+
171
+ ### Patch Changes
172
+
173
+ - Updated dependencies []:
174
+ - @equinor/fusion-framework-react-components-people-provider@1.1.2
175
+ - @equinor/fusion-framework-app@7.1.8
176
+
177
+ ## 9.3.0
178
+
179
+ ### Minor Changes
180
+
181
+ - [#1374](https://github.com/equinor/fusion-framework/pull/1374) [`a1eacf9f`](https://github.com/equinor/fusion-framework/commit/a1eacf9f30728bf96a17e60a5b7d7d08e85798f3) Thanks [@odinr](https://github.com/odinr)! - update `@equinor/fusion-wc-person` to ^2.1.0
182
+
183
+ ### Patch Changes
184
+
185
+ - [#1399](https://github.com/equinor/fusion-framework/pull/1399) [`52910a53`](https://github.com/equinor/fusion-framework/commit/52910a5322109ab729508432d9fab695e8dc7697) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps-dev): bump @equinor/fusion-react-styles from 0.5.11 to 0.6.0
186
+
187
+ - [#1395](https://github.com/equinor/fusion-framework/pull/1395) [`dcd09dea`](https://github.com/equinor/fusion-framework/commit/dcd09dea7160cf85ababf827bc6ee32d9f9a0aca) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps-dev): bump @equinor/fusion-react-icon from 0.2.16 to 0.3.0
188
+
189
+ - [#1409](https://github.com/equinor/fusion-framework/pull/1409) [`8b8ce0df`](https://github.com/equinor/fusion-framework/commit/8b8ce0dfc77bc592d3f525a2b09782fc2f570011) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps-dev): bump @equinor/fusion-react-context-selector from 0.4.9 to 0.5.0
190
+
191
+ - [#1397](https://github.com/equinor/fusion-framework/pull/1397) [`15cb5a59`](https://github.com/equinor/fusion-framework/commit/15cb5a597fa0856bf56b7e618d3e974f3974a968) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps-dev): bump @equinor/fusion-react-progress-indicator from 0.1.7 to 0.2.0
192
+
193
+ - [#1394](https://github.com/equinor/fusion-framework/pull/1394) [`710ea8a9`](https://github.com/equinor/fusion-framework/commit/710ea8a9574acfa55e8affb33a52594d6136d460) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps-dev): bump @equinor/fusion-react-button from 0.8.3 to 0.9.0
194
+
195
+ - [#1393](https://github.com/equinor/fusion-framework/pull/1393) [`f049479b`](https://github.com/equinor/fusion-framework/commit/f049479bfb51369a227eb432089d0da20be86529) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps): bump @equinor/fusion-react-person from 0.5.1 to 0.6.0
196
+
197
+ - [#1392](https://github.com/equinor/fusion-framework/pull/1392) [`99f70720`](https://github.com/equinor/fusion-framework/commit/99f707205ad9f773f0672fabccfe52dec0c9b10f) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps-dev): bump @equinor/fusion-react-side-sheet from 1.0.2 to 1.1.0
198
+
199
+ ## 9.2.1
200
+
201
+ ### Patch Changes
202
+
203
+ - [#1375](https://github.com/equinor/fusion-framework/pull/1375) [`f50ea5da`](https://github.com/equinor/fusion-framework/commit/f50ea5dab449ce7a5e3071f65fac4e800a619eec) Thanks [@odinr](https://github.com/odinr)! - update people deps
204
+
205
+ - Updated dependencies [[`f50ea5da`](https://github.com/equinor/fusion-framework/commit/f50ea5dab449ce7a5e3071f65fac4e800a619eec)]:
206
+ - @equinor/fusion-framework-react-components-people-provider@1.1.1
207
+
208
+ ## 9.2.0
209
+
210
+ ### Minor Changes
211
+
212
+ - [#1323](https://github.com/equinor/fusion-framework/pull/1323) [`6a4c697f`](https://github.com/equinor/fusion-framework/commit/6a4c697fc255bd189a6e45e48f76c1c4e4e59c24) Thanks [@yusijs](https://github.com/yusijs)! - Allow using a custom dev-portal
213
+
214
+ ## 9.1.4
215
+
216
+ ### Patch Changes
217
+
218
+ - [#1348](https://github.com/equinor/fusion-framework/pull/1348) [`0acc8827`](https://github.com/equinor/fusion-framework/commit/0acc8827e5e2df8b5b2aeac5e1a2cd29c4384e78) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps): bump @equinor/eds-core-react from 0.32.4 to 0.33.0
219
+
220
+ - support for [styled-components@6](https://styled-components.com/releases#v6.0.0)
221
+
222
+ ## 9.1.3
223
+
224
+ ### Patch Changes
225
+
226
+ - [`c4e38415`](https://github.com/equinor/fusion-framework/commit/c4e384152765d86df5093b35355d0c4b0bcfee43) Thanks [@odinr](https://github.com/odinr)! - [remove console](https://github.com/equinor/fusion-framework/commit/cb2f694697e7a130ff82bbb5fc570892211bbb70)
227
+
228
+ ## 9.1.2
4
229
 
5
230
  ### Patch Changes
6
231
 
@@ -10,13 +235,21 @@
10
235
 
11
236
  - [`cc7bcfb5`](https://github.com/equinor/fusion-framework/commit/cc7bcfb51187fb757b95793356da4a11b233d930) Thanks [@odinr](https://github.com/odinr)! - update @equinor/fusion-wc-person to 1.1.1
12
237
 
238
+ - [`6ec59f64`](https://github.com/equinor/fusion-framework/commit/6ec59f64f35e553cd68d6d6e03c1e5867aba87ce) Thanks [@odinr](https://github.com/odinr)! - fixed loading of config files for Windows
239
+
240
+ found internal [issues](https://github.com/radarsu/ts-import/issues/39) with `ts-import` where file url path crashed native `fs` command, but failed on imports since windows can`t handle absolute paths.
241
+
242
+ quick and dirty transpile code and eject of `ts-import`
243
+
13
244
  - [#1264](https://github.com/equinor/fusion-framework/pull/1264) [`ace9fa37`](https://github.com/equinor/fusion-framework/commit/ace9fa379215fd75e37b140db5c8ea2d3680b0c0) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps): bump express-rate-limit from 6.9.0 to [7.0.0](https://github.com/express-rate-limit/express-rate-limit/releases/tag/v7.0.0)
14
245
 
246
+ - [#1345](https://github.com/equinor/fusion-framework/pull/1345) [`9d9f629e`](https://github.com/equinor/fusion-framework/commit/9d9f629e007df38db75067781b251b7e5e9673da) Thanks [@asbjornhaland](https://github.com/asbjornhaland)! - update @equinor/fusion-wc-person to 2.0.1
247
+
15
248
  - [`5b8c4ebc`](https://github.com/equinor/fusion-framework/commit/5b8c4ebc85f636e18e7666fd5dbbaf9ee10d8608) Thanks [@odinr](https://github.com/odinr)! - fixed packing of application
16
249
 
17
- - Updated dependencies [[`cc7bcfb5`](https://github.com/equinor/fusion-framework/commit/cc7bcfb51187fb757b95793356da4a11b233d930), [`f65c4531`](https://github.com/equinor/fusion-framework/commit/f65c453178e2c581acb154d5839971c75f60fa86), [`9f121865`](https://github.com/equinor/fusion-framework/commit/9f121865254a0c76c4a812e6e42bfe3c7086c714), [`518b8476`](https://github.com/equinor/fusion-framework/commit/518b8476bb40255d05e937663d3a513de479a1f8), [`3e38c9cc`](https://github.com/equinor/fusion-framework/commit/3e38c9cc925fc0456837e42e7ee3ac55e9553bad), [`63592229`](https://github.com/equinor/fusion-framework/commit/63592229cea4d3606289738fe14b432e9978623f)]:
18
- - @equinor/fusion-framework-react-components-people-provider@0.0.0-next-20230925133754
19
- - @equinor/fusion-framework-app@0.0.0-next-20230925133754
250
+ - Updated dependencies [[`cc7bcfb5`](https://github.com/equinor/fusion-framework/commit/cc7bcfb51187fb757b95793356da4a11b233d930), [`f65c4531`](https://github.com/equinor/fusion-framework/commit/f65c453178e2c581acb154d5839971c75f60fa86), [`9f121865`](https://github.com/equinor/fusion-framework/commit/9f121865254a0c76c4a812e6e42bfe3c7086c714), [`518b8476`](https://github.com/equinor/fusion-framework/commit/518b8476bb40255d05e937663d3a513de479a1f8), [`9d9f629e`](https://github.com/equinor/fusion-framework/commit/9d9f629e007df38db75067781b251b7e5e9673da), [`3e38c9cc`](https://github.com/equinor/fusion-framework/commit/3e38c9cc925fc0456837e42e7ee3ac55e9553bad), [`63592229`](https://github.com/equinor/fusion-framework/commit/63592229cea4d3606289738fe14b432e9978623f)]:
251
+ - @equinor/fusion-framework-react-components-people-provider@1.1.0
252
+ - @equinor/fusion-framework-app@7.1.7
20
253
 
21
254
  ## 9.1.1
22
255
 
@@ -8,7 +8,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import AdmZip from 'adm-zip';
11
- import { resolve } from 'node:path';
11
+ import { dirname, resolve } from 'node:path';
12
+ import { mkdir } from 'node:fs/promises';
12
13
  import { loadPackage } from './utils/load-package.js';
13
14
  import { chalk, formatByteSize, formatPath } from './utils/format.js';
14
15
  import { Spinner } from './utils/spinner.js';
@@ -48,6 +49,9 @@ export const bundleApplication = (options) => __awaiter(void 0, void 0, void 0,
48
49
  spinner.warn(`missing ${readmeFile}`);
49
50
  }
50
51
  spinner.start('compressing content');
52
+ if (!fileExistsSync(dirname(archive))) {
53
+ yield mkdir(dirname(archive), { recursive: true });
54
+ }
51
55
  bundle.writeZip(archive);
52
56
  spinner.info(formatPath(archive), formatByteSize(archive));
53
57
  spinner.succeed();
@@ -1 +1 @@
1
- {"version":3,"file":"bundle-application.js","sourceRoot":"","sources":["../../src/bin/b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D,OAAO,CAAC,OAAO,EAAE,CAAC;AACtB,CAAC,CAAA,CAAC"}
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { fileURLToPath } from 'node:url';
10
+ import { join } from 'node:path';
11
11
  import { readFileSync } from 'node:fs';
12
12
  import { assert } from 'node:console';
13
13
  import { createServer } from 'vite';
@@ -24,10 +24,9 @@ import { createManifest, manifestConfigFilename } from '../lib/app-manifest.js';
24
24
  import { appConfigFilename, createAppConfig } from '../lib/app-config.js';
25
25
  import { loadPackage } from './utils/load-package.js';
26
26
  import { rateLimit } from 'express-rate-limit';
27
- const resolveRelativePath = (path) => fileURLToPath(new URL(path, import.meta.url));
28
27
  export const createDevServer = (options) => __awaiter(void 0, void 0, void 0, function* () {
29
28
  var _a;
30
- const { configSourceFiles, library, portal, port } = options;
29
+ const { configSourceFiles, library, portal, port, devPortalPath } = options;
31
30
  const spinner = Spinner.Global({ prefixText: chalk.dim('dev-server') });
32
31
  const pkg = yield loadPackage();
33
32
  spinner.info(`using portal 🔌${formatPath(portal)} as proxy target`);
@@ -57,7 +56,6 @@ export const createDevServer = (options) => __awaiter(void 0, void 0, void 0, fu
57
56
  assert(vite.config.build.lib, 'expected vite build to have library defined');
58
57
  const { entry } = vite.config.build.lib;
59
58
  spinner.info('💾 application entrypoint', formatPath(String(entry)));
60
- const devPortalPath = resolveRelativePath('public');
61
59
  spinner.info('resolving cli internal assets from ', formatPath(devPortalPath));
62
60
  const server = createDevProxy({
63
61
  onConfigResponse: (slug, message, data) => __awaiter(void 0, void 0, void 0, function* () {
@@ -70,7 +68,7 @@ export const createDevServer = (options) => __awaiter(void 0, void 0, void 0, fu
70
68
  }
71
69
  else if (data) {
72
70
  const { config: response, path } = yield createAppConfig(env, data, {
73
- file: configSourceFiles.manifest,
71
+ file: configSourceFiles.app,
74
72
  });
75
73
  path && spinner.info('created config from ', formatPath(path));
76
74
  return { response, path };
@@ -96,13 +94,37 @@ export const createDevServer = (options) => __awaiter(void 0, void 0, void 0, fu
96
94
  }
97
95
  }
98
96
  }),
97
+ onManifestListResponse: (slug, message, data) => __awaiter(void 0, void 0, void 0, function* () {
98
+ var _b;
99
+ if (!data) {
100
+ const { manifest, path } = yield loadAppManifest(env, pkg, {
101
+ file: configSourceFiles.manifest,
102
+ });
103
+ manifest.entry = `/${entry}`;
104
+ return { response: [manifest], path };
105
+ }
106
+ let path;
107
+ const atIndex = (_b = data === null || data === void 0 ? void 0 : data.findIndex((manifest) => manifest.key === appKey)) !== null && _b !== void 0 ? _b : -1;
108
+ if (atIndex > -1) {
109
+ data[atIndex].entry = `/${entry}`;
110
+ }
111
+ else {
112
+ const { manifest, path: manifestPath } = yield loadAppManifest(env, pkg, {
113
+ file: configSourceFiles.manifest,
114
+ });
115
+ manifest.entry = `/${entry}`;
116
+ path = manifestPath;
117
+ data.push(manifest);
118
+ }
119
+ return { response: data, path };
120
+ }),
99
121
  }, {
100
122
  target: portal,
101
123
  staticAssets: [{ path: devPortalPath }],
102
124
  });
103
125
  server.use(vite.middlewares);
104
126
  server.use('*', (req, res) => __awaiter(void 0, void 0, void 0, function* () {
105
- const htmlRaw = readFileSync(resolveRelativePath('public/index.html'), 'utf-8');
127
+ const htmlRaw = readFileSync(join(devPortalPath + '/index.html'), 'utf-8');
106
128
  const html = yield vite.transformIndexHtml(req.url, htmlRaw);
107
129
  res.send(html);
108
130
  }), rateLimit({
@@ -1 +1 @@
1
- {"version":3,"file":"create-dev-serve.js","sourceRoot":"","sources":["../../src/bin/create-dev-serve.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAkB,YAAY,EAAE,MAAM,MAAM,CA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AI,CAAC,MAAM,UAAU,CAAC,cAAc,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IAC7E,OAAO,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACjC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAC1B,OAAO,CAAC,OAAO,EAAE,CAAC;IAClB,OAAO,CAAC,OAAO,CACX,IAAI,EACJ,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,SAAS,MAAM,EAAE,EAAE,oBAAoB,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,CAC3F,CAAC;AACN,CAAC,CAAA,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- export const FusionLogo = (props) => (_jsxs("svg", { viewBox: "0 0 50 35", style: Object.assign({ height: '1em' }, props.style), children: [_jsx("path", { d: "M0 2V23.1776L7.05405 16.1235V7.05405H16.1235L23.1776 0H2C0.895431 0 0 0.89543 0 2Z", transform: "translate(50 17.5) scale(0.92727 1.06779) rotate(135)", fill: "url(#paint0_linear)" }), _jsx("path", { d: "M0 2V23.1776L7.05405 16.1235V7.05405H16.1235L23.1776 0H2C0.895431 0 0 0.89543 0 2Z", transform: "translate(0 17.5) scale(0.92727 1.06779) rotate(-45)", fill: "url(#paint1_linear)" }), _jsx("path", { d: "M9.61965 36.6972L2.60087 29.6784L1.96135 22.3809L8.42623 22.9069L9.61965 36.6972Z", transform: "translate(33.8887 34.9863) scale(0.92727 -1.06779) rotate(45)", fill: "#990025" }), _jsx("path", { d: "M7.05434 7.05434L0 0L1.21096 13.8183L7.68846 14.3818L7.05434 7.05434Z", transform: "translate(33.8887 34.9863) scale(0.92727 -1.06779) rotate(45)", fill: "#990025" }), _jsx("path", { d: "M0 0L2.49398 29.5715L9.61965 36.6972L7.01878 7.01878L0 0Z", transform: "translate(33.8887 0.015625) scale(0.92727 1.06779) rotate(45)", fill: "#FF1243" }), _jsxs("defs", { children: [_jsxs("linearGradient", { id: "paint0_linear", x2: "1", gradientUnits: "userSpaceOnUse", gradientTransform: "matrix(-13.5478 9.01983 -12.9578 -13.5478 18.0677 6.77391)", children: [_jsx("stop", { offset: "0.508287", stopColor: "#DC002E" }), _jsx("stop", { offset: "0.508387", stopColor: "#FF1243" })] }), _jsxs("linearGradient", { id: "paint1_linear", x2: "1", gradientUnits: "userSpaceOnUse", gradientTransform: "matrix(-13.5478 9.01983 -12.9578 -13.5478 18.0677 6.77391)", children: [_jsx("stop", { offset: "0.508287", stopColor: "#DC002E" }), _jsx("stop", { offset: "0.508387", stopColor: "#FF1243" })] })] })] }));
2
+ export const FusionLogo = ({ scale = 1, style }) => (_jsxs("svg", { viewBox: "0 0 50 35", style: Object.assign(Object.assign({ height: '1em' }, style), { transform: `scale(${scale})` }), children: [_jsx("path", { d: "M0 2V23.1776L7.05405 16.1235V7.05405H16.1235L23.1776 0H2C0.895431 0 0 0.89543 0 2Z", transform: "translate(50 17.5) scale(0.92727 1.06779) rotate(135)", fill: "url(#paint0_linear)" }), _jsx("path", { d: "M0 2V23.1776L7.05405 16.1235V7.05405H16.1235L23.1776 0H2C0.895431 0 0 0.89543 0 2Z", transform: "translate(0 17.5) scale(0.92727 1.06779) rotate(-45)", fill: "url(#paint1_linear)" }), _jsx("path", { d: "M9.61965 36.6972L2.60087 29.6784L1.96135 22.3809L8.42623 22.9069L9.61965 36.6972Z", transform: "translate(33.8887 34.9863) scale(0.92727 -1.06779) rotate(45)", fill: "#990025" }), _jsx("path", { d: "M7.05434 7.05434L0 0L1.21096 13.8183L7.68846 14.3818L7.05434 7.05434Z", transform: "translate(33.8887 34.9863) scale(0.92727 -1.06779) rotate(45)", fill: "#990025" }), _jsx("path", { d: "M0 0L2.49398 29.5715L9.61965 36.6972L7.01878 7.01878L0 0Z", transform: "translate(33.8887 0.015625) scale(0.92727 1.06779) rotate(45)", fill: "#FF1243" }), _jsxs("defs", { children: [_jsxs("linearGradient", { id: "paint0_linear", x2: "1", gradientUnits: "userSpaceOnUse", gradientTransform: "matrix(-13.5478 9.01983 -12.9578 -13.5478 18.0677 6.77391)", children: [_jsx("stop", { offset: "0.508287", stopColor: "#DC002E" }), _jsx("stop", { offset: "0.508387", stopColor: "#FF1243" })] }), _jsxs("linearGradient", { id: "paint1_linear", x2: "1", gradientUnits: "userSpaceOnUse", gradientTransform: "matrix(-13.5478 9.01983 -12.9578 -13.5478 18.0677 6.77391)", children: [_jsx("stop", { offset: "0.508287", stopColor: "#DC002E" }), _jsx("stop", { offset: "0.508387", stopColor: "#FF1243" })] })] })] }));
3
3
  export default FusionLogo;
4
4
  //# sourceMappingURL=FusionLogo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FusionLogo.js","sourceRoot":"","sources":["../../../src/bin/dev-portal/FusionLogo.tsx"],"names":[],"mappings":";AAIA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAsB,EAAE,EAAE,CAAC,CAClD,eAAK,OAAO,EAAC,WAAW,EAAC,KAAK,kBAAI,MAAM,EAAE,KAAK,IAAK,KAAK,CAAC,KAAK,cAC3D,eACI,CAAC,EAAC,oFAAoF,EACtF,SAAS,EAAC,uDAAuD,EACjE,IAAI,EAAC,qBAAqB,GAC5B,EACF,eACI,CAAC,EAAC,oFAAoF,EACtF,SAAS,EAAC,sDAAsD,EAChE,IAAI,EAAC,qBAAqB,GAC5B,EACF,eACI,CAAC,EAAC,mFAAmF,EACrF,SAAS,EAAC,+DAA+D,EACzE,IAAI,EAAC,SAAS,GAChB,EACF,eACI,CAAC,EAAC,uEAAuE,EACzE,SAAS,EAAC,+DAA+D,EACzE,IAAI,EAAC,SAAS,GAChB,EACF,eACI,CAAC,EAAC,2DAA2D,EAC7D,SAAS,EAAC,+DAA+D,EACzE,IAAI,EAAC,SAAS,GAChB,EACF,2BACI,0BACI,EAAE,EAAC,eAAe,EAClB,EAAE,EAAC,GAAG,EACN,aAAa,EAAC,gBAAgB,E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B,EAAE,EAAC,GAAG,EACN,aAAa,EAAC,gBAAgB,EAC9B,iBAAiB,EAAC,4DAA4D,aAE9E,eAAM,MAAM,EAAC,UAAU,EAAC,SAAS,EAAC,SAAS,GAAG,EAC9C,eAAM,MAAM,EAAC,UAAU,EAAC,SAAS,EAAC,SAAS,GAAG,IACjC,EACjB,0BACI,EAAE,EAAC,eAAe,EAClB,EAAE,EAAC,GAAG,EACN,aAAa,EAAC,gBAAgB,EAC9B,iBAAiB,EAAC,4DAA4D,aAE9E,eAAM,MAAM,EAAC,UAAU,EAAC,SAAS,EAAC,SAAS,GAAG,EAC9C,eAAM,MAAM,EAAC,UAAU,EAAC,SAAS,EAAC,SAAS,GAAG,IACjC,IACd,IACL,CACT,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,13 +1,17 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { useState, useRef } from 'react';
2
+ import { useState } from 'react';
3
3
  import { ContextSelector } from './ContextSelector';
4
4
  import { FusionLogo } from './FusionLogo';
5
5
  import '@material-ui/styles';
6
6
  import { BookmarkSideSheet } from './BookMarkSideSheet';
7
7
  import { Button, Icon, TopBar } from '@equinor/eds-core-react';
8
8
  import { BookmarkProvider } from '@equinor/fusion-framework-react-components-bookmark';
9
+ import { useCurrentUser } from '@equinor/fusion-framework-react/hooks';
9
10
  import { add, menu, tag } from '@equinor/eds-icons';
10
11
  import { styled } from 'styled-components';
12
+ import { PersonSideSheet } from './PersonSideSheet';
13
+ import { PersonAvatarElement } from '@equinor/fusion-wc-person';
14
+ PersonAvatarElement;
11
15
  Icon.add({ menu, add, tag });
12
16
  const Styled = {
13
17
  Title: styled.div `
@@ -19,13 +23,14 @@ const Styled = {
19
23
  `,
20
24
  };
21
25
  export const Header = () => {
22
- const buttonRef = useRef(null);
23
- const [open, setOpen] = useState(false);
26
+ const [isPersonSheetOpen, setIsPersonSheetOpen] = useState(false);
24
27
  const [isBookmarkOpen, setIsBookmarkOpen] = useState(false);
28
+ const currentUser = useCurrentUser();
29
+ const { localAccountId: azureId } = currentUser !== null && currentUser !== void 0 ? currentUser : {};
25
30
  function toggleBookmark() {
26
31
  setIsBookmarkOpen((s) => !s);
27
32
  }
28
- return (_jsxs(_Fragment, { children: [_jsxs(TopBar, { id: "cli-top-bar", sticky: false, style: { padding: 0, height: 48 }, children: [_jsxs(TopBar.Header, { children: [_jsx(Button, { ref: buttonRef, onClick: () => setOpen(!open), variant: "ghost_icon", children: _jsx(Icon, { name: "menu" }) }), _jsxs(Styled.Title, { children: [_jsx(FusionLogo, {}), _jsx("span", { children: "Fusion CLI" })] })] }), _jsx(TopBar.CustomContent, { children: _jsx(ContextSelector, {}) }), _jsx(TopBar.Actions, { style: { minWidth: 48, minHeight: 48 }, children: _jsx(Button, { onClick: toggleBookmark, variant: "ghost_icon", children: _jsx(Icon, { name: "tag" }) }) })] }), _jsx(BookmarkProvider, { children: _jsx(BookmarkSideSheet, { isOpen: isBookmarkOpen, onClose: toggleBookmark }) })] }));
33
+ return (_jsxs(_Fragment, { children: [_jsxs(TopBar, { id: "cli-top-bar", sticky: false, style: { padding: 0, height: 48 }, children: [_jsx(TopBar.Header, { children: _jsxs(Styled.Title, { children: [_jsx(FusionLogo, {}), _jsx("span", { children: "Fusion Framework CLI" })] }) }), _jsx(TopBar.CustomContent, { children: _jsx(ContextSelector, {}) }), _jsxs(TopBar.Actions, { style: { minWidth: 48, minHeight: 48 }, children: [_jsx(Button, { onClick: toggleBookmark, variant: "ghost_icon", children: _jsx(Icon, { name: "tag" }) }), _jsx(Button, { onClick: () => setIsPersonSheetOpen(!isPersonSheetOpen), variant: "ghost_icon", children: _jsx("fwc-person-avatar", { azureId: azureId, clickable: false, size: "small" }) })] })] }), _jsx(BookmarkProvider, { children: _jsx(BookmarkSideSheet, { isOpen: isBookmarkOpen, onClose: toggleBookmark }) }), _jsx(PersonSideSheet, { azureId: azureId, isOpen: isPersonSheetOpen, onClose: () => setIsPersonSheetOpen(!isPersonSheetOpen) })] }));
29
34
  };
30
35
  export default Header;
31
36
  //# sourceMappingURL=Header.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/bin/dev-portal/Header.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;AAE7B,MAAM,MAAM,GAAG;IACX,KAAK,EAAE,MAAM,CAAC,GAAG,CAAA;;;;;;KAMhB;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,EAAE;IACvB,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IAC/B,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAExC,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE5D,SAAS,cAAc;QACnB,iBAAiB,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IACjC,CAAC;IAED,OAAO,CACH,8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K,eACT,KAAC,UAAU,KAAG,EACd,kDAAiC,IACtB,GACH,EAChB,KAAC,MAAM,CAAC,aAAa,cACjB,KAAC,eAAe,KAAG,GACA,EAEvB,MAAC,MAAM,CAAC,OAAO,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,aAClD,KAAC,MAAM,IAAC,OAAO,EAAE,cAAc,EAAE,OAAO,EAAC,YAAY,YACjD,KAAC,IAAI,IAAC,IAAI,EAAC,KAAK,GAAG,GACd,EACT,KAAC,MAAM,IACH,OAAO,EAAE,GAAG,EAAE,CAAC,oBAAoB,CAAC,CAAC,iBAAiB,CAAC,EACvD,OAAO,EAAC,YAAY,YAEpB,4BACI,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,KAAK,EAChB,IAAI,EAAC,OAAO,GACK,GAChB,IACI,IACZ,EACT,KAAC,gBAAgB,cACb,KAAC,iBAAiB,IAAC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,cAAc,GAAI,GACvD,EACnB,KAAC,eAAe,IACZ,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,GAAG,EAAE,CAAC,oBAAoB,CAAC,CAAC,iBAAiB,CAAC,GACzD,IACH,CACN,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useCallback, useMemo, useState } from 'react';
3
+ import { SideSheet } from '@equinor/fusion-react-side-sheet';
4
+ import { PersonListItem } from '@equinor/fusion-react-person';
5
+ import { Divider } from '@equinor/eds-core-react';
6
+ import { LandingSheetContent, FeatureSheetContent, } from './sheets';
7
+ export const PersonSideSheet = ({ azureId, isOpen, onClose }) => {
8
+ const [currentSheet, setCurrentSheet] = useState('landing');
9
+ const Component = useMemo(() => {
10
+ let Comp;
11
+ switch (currentSheet) {
12
+ case 'features':
13
+ Comp = FeatureSheetContent;
14
+ break;
15
+ default:
16
+ Comp = LandingSheetContent;
17
+ break;
18
+ }
19
+ return Comp;
20
+ }, [currentSheet]);
21
+ const navigateCallback = useCallback((sheet) => {
22
+ setCurrentSheet(sheet !== null && sheet !== void 0 ? sheet : 'default');
23
+ }, [setCurrentSheet]);
24
+ return (_jsxs(SideSheet, { isOpen: isOpen, onClose: onClose, isDismissable: true, children: [_jsx(SideSheet.Title, { title: "User settings" }), _jsx(SideSheet.SubTitle, { subTitle: 'Settings for your user in Fusion portal' }), _jsx(SideSheet.Actions, {}), _jsx(SideSheet.Content, { children: _jsxs("section", { style: { paddingLeft: '0.5em' }, children: [_jsx("div", { children: _jsx(PersonListItem, { azureId: azureId }) }), _jsx(Divider, {}), _jsx(Component, { azureId: azureId, sheet: currentSheet, navigate: navigateCallback })] }) })] }));
25
+ };
26
+ export default PersonSideSheet;
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/bin/dev-portal/PersonSideSheet/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAG9D,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,OAAO,EACH,mBAAmB,EAGnB,mBAAmB,GACtB,MAAM,UAAU,CAAC;AAQlB,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAwB,EAAE,EAAE;IAClF,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAS,SAAS,CAAC,CAAC;IAEpE,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,EAAE;QAC3B,IAAI,IAAI,CAAC;QACT,QAAQ,YAAY,EAAE;YAOlB,KAAK,UAAU;gBACX,IAAI,GAAG,mBAAmB,CAAC;gBAC3B,MAAM;YACV;gBACI,IAAI,GAAG,mBAAmB,CAAC;gBAC3B,MAAM;SACb;QAED,OAAO,IAAI,CAAC;IAChB,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IAEnB,MAAM,gBAAgB,GAAG,WAAW,CAChC,CAAC,KAAa,EAAE,EAAE;QACd,eAAe,CAAC,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,SAAS,CAAC,CAAC;IACxC,CAAC,EACD,CAAC,eAAe,CAAC,CACpB,CAAC;IAEF,OAAO,CACH,MAAC,SAAS,IAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,aAC5D,KAAC,SAAS,CAAC,KAAK,IAAC,KAAK,EAAC,eAAe,GAAG,EACzC,KAAC,SAAS,CAAC,QAAQ,IAAC,QAAQ,EAAE,yCAAyC,GAAI,EAC3E,KAAC,SAAS,CAAC,OAAO,KAAqB,EACvC,KAAC,SAAS,CAAC,OAAO,cACd,mBAAS,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,aACpC,wBACI,KAAC,cAAc,IAAC,OAAO,EAAE,OAAO,GAAmB,GACjD,EACN,KAAC,OAAO,KAAW,EACnB,KAAC,SAAS,IACN,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,gBAAgB,GACjB,IACP,GACM,IACZ,CACf,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
+ import { FeatureTogglerApp } from './FeatureTogglerApp';
4
+ import { FeatureTogglerPortal } from './FeatureTogglerPortal';
5
+ import { Divider, Icon, Button, Tabs } from '@equinor/eds-core-react';
6
+ import { arrow_back, category } from '@equinor/eds-icons';
7
+ Icon.add({ arrow_back, category });
8
+ export const FeatureSheetContent = ({ navigate }) => {
9
+ const [tab, setTab] = useState(0);
10
+ return (_jsxs("section", { children: [_jsx("div", { children: _jsx("div", { children: _jsxs(Button, { variant: "ghost", onClick: () => navigate(), children: [_jsx(Icon, { name: "arrow_back" }), _jsx(Icon, { name: "category" }), "My Features"] }) }) }), _jsx(Divider, {}), _jsx("div", { children: _jsxs(Tabs, { activeTab: tab, onChange: (index) => setTab(index), children: [_jsxs(Tabs.List, { children: [_jsx(Tabs.Tab, { children: "App features" }), _jsx(Tabs.Tab, { children: "Portal features" })] }), _jsxs(Tabs.Panels, { children: [_jsx(Tabs.Panel, { children: _jsx(FeatureTogglerApp, {}) }), _jsx(Tabs.Panel, { children: _jsx(FeatureTogglerPortal, {}) })] })] }) })] }));
11
+ };
12
+ //# sourceMappingURL=FeatureSheetContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeatureSheetContent.js","sourceRoot":"","sources":["../../../../../src/bin/dev-portal/PersonSideSheet/sheets/FeatureSheetContent.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC1D,IAAI,CAAC,GAAG,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC,CAAC;AAInC,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAAE,QAAQ,EAAqB,EAAE,EAAE;IACnE,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,QAAQ,CAAS,CAAC,CAAC,CAAC;IAE1C,OAAO,CACH,8BACI,wBACI,wBACI,MAAC,MAAM,IAAC,OAAO,EAAC,OAAO,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,EAAE,aAC7C,KAAC,IAAI,IAAC,IAAI,EAAC,YAAY,GAAQ,EAC/B,KAAC,IAAI,IAAC,IAAI,EAAC,UAAU,GAAQ,mBAExB,GACP,GACJ,EACN,KAAC,OAAO,KAAW,EACnB,wBACI,MAAC,IAAI,IAAC,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,aACpD,MAAC,IAAI,CAAC,IAAI,eACN,KAAC,IAAI,CAAC,GAAG,+BAAwB,EACjC,KAAC,IAAI,CAAC,GAAG,kCAA2B,IAC5B,EACZ,MAAC,IAAI,CAAC,MAAM,eACR,KAAC,IAAI,CAAC,KAAK,cACP,KAAC,iBAAiB,KAAG,GACZ,EACb,KAAC,IAAI,CAAC,KAAK,cACP,KAAC,oBAAoB,KAAG,GACf,IACH,IACX,GACL,IACA,CACb,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useCurrentAppFeatureFlags } from '@equinor/fusion-framework-react/feature-flag';
3
+ import { Typography, Switch } from '@equinor/eds-core-react';
4
+ import { Styled } from './Styled';
5
+ export const FeatureTogglerApp = () => {
6
+ const { features, setFeatureEnabled } = useCurrentAppFeatureFlags();
7
+ return (_jsx(Styled.SwitchList, { children: features === null || features === void 0 ? void 0 : features.map((feature) => {
8
+ var _a;
9
+ return (_jsxs(Styled.SwitchListItem, { onClick: () => setFeatureEnabled(feature.key, !feature.enabled), children: [_jsxs(Styled.SwitchLabel, { children: [_jsx(Typography, { variant: "body_short_bold", children: (_a = feature.title) !== null && _a !== void 0 ? _a : feature.key }), feature.description && (_jsx(Typography, { variant: "body_short_italic", children: feature.description }))] }), _jsx(Styled.Switch, { children: _jsx(Switch, { checked: feature.enabled, disabled: feature.readonly, onChange: (e) => console.log(e) }) })] }, `feat-${feature.key}`));
10
+ }) }));
11
+ };
12
+ export default FeatureTogglerApp;
13
+ //# sourceMappingURL=FeatureTogglerApp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeatureTogglerApp.js","sourceRoot":"","sources":["../../../../../src/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerApp.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAEzF,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,EAAE;IAClC,MAAM,EAAE,QAAQ,EAAE,iBAAiB,EAAE,GAAG,yBAAyB,EAAE,CAAC;IACpE,OAAO,CACH,KAAC,MAAM,CAAC,UAAU,cACb,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;;YACvB,OAAO,CACH,MAAC,MAAM,CAAC,cAAc,IAElB,OAAO,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,aAE/D,MAAC,MAAM,CAAC,WAAW,eACf,KAAC,UAAU,IAAC,OAAO,EAAC,iBAAiB,YAChC,MAAA,OAAO,CAAC,KAAK,mCAAI,OAAO,CAAC,GAAG,GACpB,EACZ,OAAO,CAAC,WAAW,IAAI,CACpB,KAAC,UAAU,IAAC,OAAO,EAAC,mBAAmB,YAClC,OAAO,CAAC,WAAW,GACX,CAChB,IACgB,EACrB,KAAC,MAAM,CAAC,MAAM,cACV,KAAC,MAAM,IACH,OAAO,EAAE,OAAO,CAAC,OAAO,EACxB,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAC1B,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,GACjC,GACU,KAnBX,QAAQ,OAAO,CAAC,GAAG,EAAE,CAoBN,CAC3B,CAAC;QACN,CAAC,CAAC,GACc,CACvB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useFrameworkFeatureFlags } from '@equinor/fusion-framework-react/feature-flag';
3
+ import { Typography, Switch } from '@equinor/eds-core-react';
4
+ import { Styled } from './Styled';
5
+ export const FeatureTogglerPortal = () => {
6
+ const { features, setFeatureEnabled } = useFrameworkFeatureFlags();
7
+ return (_jsx(Styled.SwitchList, { children: features === null || features === void 0 ? void 0 : features.map((feature) => {
8
+ var _a, _b;
9
+ return (_jsxs(Styled.SwitchListItem, { onClick: () => setFeatureEnabled(feature.key, !feature.enabled), children: [_jsxs(Styled.SwitchLabel, { children: [_jsx(Typography, { variant: "body_short_bold", children: (_a = feature.title) !== null && _a !== void 0 ? _a : feature.key }), _jsx(Typography, { variant: "body_short_italic", children: (_b = feature.description) !== null && _b !== void 0 ? _b : '' })] }), _jsx(Switch, { checked: feature.enabled, disabled: feature.readonly, onChange: (e) => console.log(e) })] }, `feat-${feature.key}`));
10
+ }) }));
11
+ };
12
+ export default FeatureTogglerPortal;
13
+ //# sourceMappingURL=FeatureTogglerPortal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeatureTogglerPortal.js","sourceRoot":"","sources":["../../../../../src/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerPortal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AAExF,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,EAAE;IACrC,MAAM,EAAE,QAAQ,EAAE,iBAAiB,EAAE,GAAG,wBAAwB,EAAE,CAAC;IACnE,OAAO,CACH,KAAC,MAAM,CAAC,UAAU,cACb,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;;YACvB,OAAO,CACH,MAAC,MAAM,CAAC,cAAc,IAElB,OAAO,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,aAE/D,MAAC,MAAM,CAAC,WAAW,eACf,KAAC,UAAU,IAAC,OAAO,EAAC,iBAAiB,YAChC,MAAA,OAAO,CAAC,KAAK,mCAAI,OAAO,CAAC,GAAG,GACpB,EACb,KAAC,UAAU,IAAC,OAAO,EAAC,mBAAmB,YAClC,MAAA,OAAO,CAAC,WAAW,mCAAI,EAAE,GACjB,IACI,EACrB,KAAC,MAAM,IACH,OAAO,EAAE,OAAO,CAAC,OAAO,EACxB,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAC1B,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,GACjC,KAfG,QAAQ,OAAO,CAAC,GAAG,EAAE,CAgBN,CAC3B,CAAC;QACN,CAAC,CAAC,GACc,CACvB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Divider, Icon, Button } from '@equinor/eds-core-react';
3
+ import { bandage, category, work_outline, security } from '@equinor/eds-icons';
4
+ Icon.add({ bandage, category, work_outline, security });
5
+ import styled from 'styled-components';
6
+ const BtnList = styled.ul `
7
+ list-style: none;
8
+ padding-left: 0;
9
+ `;
10
+ const BtnListItem = styled.li `
11
+ margin: 1em 0;
12
+ `;
13
+ export const LandingSheetContent = ({ azureId, navigate }) => {
14
+ return (_jsxs("section", { children: [_jsx(BtnList, { children: _jsx(BtnListItem, { children: _jsxs(Button, { variant: "ghost", onClick: () => navigate('features'), children: [_jsx(Icon, { name: "category" }), "My Features"] }) }) }), _jsx(Divider, {}), _jsx(BtnList, { children: _jsx(BtnListItem, { children: _jsxs(Button, { variant: "ghost", href: `https://eur.delve.office.com/?u=${azureId}&v=work`, target: "_blank", children: [_jsx("svg", { height: "24", viewBox: "0 0 24 24", width: "24", children: _jsx("path", { d: "M22.5 3C22.7031 3 22.8789 3.07422 23.0273 3.22266C23.1758 3.37109 23.25 3.54688 23.25 3.75V20.25C23.25 20.4531 23.1758 20.6289 23.0273 20.7773C22.8789 20.9258 22.7031 21 22.5 21H14.25V23.3438L0.75 20.9883V3.08203L14.25 0.65625V3H22.5ZM7.07812 16.6992C7.52344 16.6992 7.92188 16.6289 8.27344 16.4883C8.625 16.3477 8.9375 16.1602 9.21094 15.9258C9.48438 15.6914 9.71484 15.4102 9.90234 15.082C10.0898 14.7539 10.25 14.4062 10.3828 14.0391C10.5156 13.6719 10.6055 13.293 10.6523 12.9023C10.6992 12.5117 10.7266 12.1289 10.7344 11.7539C10.7344 11.1602 10.6836 10.5859 10.582 10.0312C10.4805 9.47656 10.3008 8.98047 10.043 8.54297C9.78516 8.10547 9.42969 7.75781 8.97656 7.5C8.52344 7.24219 7.95312 7.10938 7.26562 7.10156C6.78906 7.10156 6.3125 7.12891 5.83594 7.18359C5.35938 7.23828 4.88281 7.28906 4.40625 7.33594V16.5117L5.74219 16.6289C6.1875 16.668 6.63281 16.6914 7.07812 16.6992ZM17.25 16.5H14.25V20.25H17.25V16.5ZM17.25 3.75H14.25V15.75H17.25V3.75ZM22.5 9H18V20.25H22.5V9ZM22.5 3.75H18V8.25H22.5V3.75ZM5.89453 8.92969C6.04297 8.91406 6.1875 8.90234 6.32812 8.89453C6.46875 8.88672 6.62109 8.88281 6.78516 8.88281C7.19141 8.88281 7.53125 8.96875 7.80469 9.14062C8.07812 9.3125 8.29688 9.53906 8.46094 9.82031C8.625 10.1016 8.74219 10.4141 8.8125 10.7578C8.88281 11.1016 8.91797 11.4453 8.91797 11.7891C8.91797 12.125 8.88672 12.4766 8.82422 12.8438C8.76172 13.2109 8.64453 13.5508 8.47266 13.8633C8.30078 14.1758 8.08203 14.4297 7.81641 14.625C7.55078 14.8203 7.20312 14.9219 6.77344 14.9297H6.33984C6.19922 14.9297 6.05078 14.9219 5.89453 14.9062V8.92969Z", fill: "currentColor" }) }), "Delve"] }) }) })] }));
15
+ };
16
+ //# sourceMappingURL=LandingSheetContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LandingSheetContent.js","sourceRoot":"","sources":["../../../../../src/bin/dev-portal/PersonSideSheet/sheets/LandingSheetContent.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC/E,IAAI,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC,CAAC;AAIxD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,OAAO,GAAG,MAAM,CAAC,EAAE,CAAA;;;CAGxB,CAAC;AACF,MAAM,WAAW,GAAG,MAAM,CAAC,EAAE,CAAA;;CAE5B,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAqB,EAAE,EAAE;IAC5E,OAAO,CACH,8BACI,KAAC,OAAO,cAaJ,KAAC,WAAW,cACR,MAAC,MAAM,IAAC,OAAO,EAAC,OAAO,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,aACvD,KAAC,IAAI,IAAC,IAAI,EAAC,UAAU,GAAQ,mBAExB,GACC,GACR,EACV,KAAC,OAAO,KAAW,EACnB,KAAC,OAAO,cACJ,KAAC,WAAW,cACR,MAAC,MAAM,IACH,OAAO,EAAC,OAAO,EACf,IAAI,EAAE,mCAAmC,OAAO,SAAS,EACzD,MAAM,EAAC,QAAQ,aAEf,cAAK,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,YAC3C,eACI,CAAC,EAAC,0hDAA0hD,EAC5hD,IAAI,EAAC,cAAc,GACf,GACN,aAED,GACC,GACR,IACJ,CACb,CAAC;AACN,CAAC,CAAC"}