@kosdev-code/kos-ui-plugin 2.0.0 → 2.0.18

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 (45) hide show
  1. package/dev.cjs +7 -7
  2. package/dev.cjs.map +1 -1
  3. package/dev.js +54 -51
  4. package/dev.js.map +1 -1
  5. package/index.cjs +6 -6
  6. package/index.cjs.map +1 -1
  7. package/index.js +49 -57
  8. package/index.js.map +1 -1
  9. package/lib/dev/components/storybook/control-pour-story-container/control-pour-story-container.d.ts +8 -0
  10. package/lib/dev/components/storybook/control-pour-story-container/control-pour-story-container.d.ts.map +1 -0
  11. package/lib/dev/components/storybook/control-pour-story-container/index.d.ts +2 -0
  12. package/lib/dev/components/storybook/control-pour-story-container/index.d.ts.map +1 -0
  13. package/lib/dev/components/storybook/index.d.ts +1 -0
  14. package/lib/dev/components/storybook/index.d.ts.map +1 -1
  15. package/lib/hooks/use-dynamic-component.d.ts +20 -0
  16. package/lib/hooks/use-dynamic-component.d.ts.map +1 -1
  17. package/lib/utils/contribution-reducer.d.ts.map +1 -1
  18. package/lib/utils/control-pour-reducer.d.ts +5 -0
  19. package/lib/utils/control-pour-reducer.d.ts.map +1 -0
  20. package/lib/utils/index.d.ts +1 -0
  21. package/lib/utils/index.d.ts.map +1 -1
  22. package/lib/utils/initialize-plugins.d.ts +39 -0
  23. package/lib/utils/initialize-plugins.d.ts.map +1 -1
  24. package/lib/utils/plugin-extension-manager.d.ts.map +1 -1
  25. package/lib/utils/plugin-extension-registry-init.d.ts +2 -0
  26. package/lib/utils/plugin-extension-registry-init.d.ts.map +1 -0
  27. package/lib/utils/plugin-extension-registry.d.ts +6 -0
  28. package/lib/utils/plugin-extension-registry.d.ts.map +1 -0
  29. package/lib/utils/resolve-best-extension.d.ts +12 -0
  30. package/lib/utils/resolve-best-extension.d.ts.map +1 -0
  31. package/package.json +2 -2
  32. package/resolve-best-extension-D5Ord7XK.cjs +2 -0
  33. package/resolve-best-extension-D5Ord7XK.cjs.map +1 -0
  34. package/resolve-best-extension-DAJIkfJh.js +272 -0
  35. package/resolve-best-extension-DAJIkfJh.js.map +1 -0
  36. package/types/global.d.ts +5 -0
  37. package/types/plugins.d.ts +6 -1
  38. package/utils.cjs +1 -1
  39. package/utils.cjs.map +1 -1
  40. package/utils.js +346 -103
  41. package/utils.js.map +1 -1
  42. package/plugin-extension-manager-7xDx0VSt.js +0 -524
  43. package/plugin-extension-manager-7xDx0VSt.js.map +0 -1
  44. package/plugin-extension-manager-D9aw-mUM.cjs +0 -2
  45. package/plugin-extension-manager-D9aw-mUM.cjs.map +0 -1
@@ -1,524 +0,0 @@
1
- var it = {}, _ = {};
2
- Object.defineProperty(_, "__esModule", { value: !0 });
3
- _.loadRemoteModule = _.setRemoteDefinitions = _.setRemoteUrlResolver = void 0;
4
- let C, z;
5
- const k = /* @__PURE__ */ new Map(), q = /* @__PURE__ */ new Map();
6
- let tt = !1;
7
- function st(i) {
8
- z = i;
9
- }
10
- _.setRemoteUrlResolver = st;
11
- function ot(i) {
12
- C = i;
13
- }
14
- _.setRemoteDefinitions = ot;
15
- async function dt(i, e) {
16
- const t = `${i}:${e}`;
17
- if (k.has(t))
18
- return k.get(t);
19
- const o = (await (q.has(i) ? q.get(i) : await at(i)).get(e))();
20
- return k.set(t, o), o;
21
- }
22
- _.loadRemoteModule = dt;
23
- const rt = (i, e) => new Promise((t, n) => {
24
- const s = document.createElement("script");
25
- s.src = i, s.type = "text/javascript", s.async = !0, s.onload = () => {
26
- t({
27
- get: (a) => window[e].get(a),
28
- init: (a) => {
29
- try {
30
- window[e].init(a);
31
- } catch (r) {
32
- console.error(`Failed to initialize remote ${e}`, r), n(r);
33
- }
34
- }
35
- });
36
- }, s.onerror = () => n(new Error(`Remote ${e} not found`)), document.head.appendChild(s);
37
- });
38
- async function at(i) {
39
- if (!z && !C)
40
- throw new Error("Call setRemoteDefinitions or setRemoteUrlResolver to allow Dynamic Federation to find the remote apps correctly.");
41
- tt || (tt = !0, await __webpack_init_sharing__("default"));
42
- const e = C ? C[i] : await z(i);
43
- let t = e;
44
- !e.endsWith(".mjs") && !e.endsWith(".js") && (t = `${e}${e.endsWith("/") ? "" : "/"}remoteEntry.js`);
45
- const n = await rt(t, i);
46
- return await n.init(__webpack_share_scopes__.default), q.set(i, n), n;
47
- }
48
- (function(i) {
49
- Object.defineProperty(i, "__esModule", { value: !0 }), i.setRemoteUrlResolver = i.setRemoteDefinitions = i.loadRemoteModule = void 0;
50
- var e = _;
51
- Object.defineProperty(i, "loadRemoteModule", { enumerable: !0, get: function() {
52
- return e.loadRemoteModule;
53
- } }), Object.defineProperty(i, "setRemoteDefinitions", { enumerable: !0, get: function() {
54
- return e.setRemoteDefinitions;
55
- } }), Object.defineProperty(i, "setRemoteUrlResolver", { enumerable: !0, get: function() {
56
- return e.setRemoteUrlResolver;
57
- } });
58
- })(it);
59
- const ut = (i) => (e, t) => {
60
- var w, y, S, g, R, v, x, A, p, O, f;
61
- e.cuiDefinitions = e.cuiDefinitions || {};
62
- const n = i[t].remote, s = t;
63
- (((w = i[t].contributes) == null ? void 0 : w.cui) || []).forEach((d) => {
64
- e.cuiDefinitions[d.id] = {
65
- ...d,
66
- cuiDescriptor: s,
67
- remote: n,
68
- sectionId: s
69
- };
70
- }), (((y = i[t].contributes) == null ? void 0 : y.navViews) || []).forEach((d) => {
71
- e.navViewDefinitions[d.id] = {
72
- ...d,
73
- remote: n,
74
- sectionId: s
75
- };
76
- }), (((S = i[t].contributes) == null ? void 0 : S.utilities) || []).forEach((d) => {
77
- e.utilDefinitions[d.id] = {
78
- ...d,
79
- remote: n,
80
- sectionId: s
81
- };
82
- }), (((g = i[t].contributes) == null ? void 0 : g.setupStep) || []).forEach((d) => {
83
- e.setupDefinitions[d.id] = {
84
- ...d,
85
- remote: n,
86
- sectionId: s
87
- };
88
- }), (((R = i[t].contributes) == null ? void 0 : R.troubleActions) || []).forEach((d) => {
89
- e.troubleActionDefinitions[d.id] = {
90
- ...d,
91
- remote: n,
92
- sectionId: s
93
- };
94
- }), (((v = i[t].contributes) == null ? void 0 : v.settingsGroup) || []).forEach((d) => {
95
- e.settingsGroupDefinitions[d.id] = {
96
- ...d,
97
- settings: [],
98
- remote: n,
99
- sectionId: s
100
- };
101
- }), (((x = i[t].contributes) == null ? void 0 : x.settings) || []).forEach((d) => {
102
- e.settingsDefinitions[d.id] = {
103
- ...d,
104
- remote: n,
105
- sectionId: s
106
- };
107
- }), (((A = i[t].contributes) == null ? void 0 : A.dashboardSummary) || []).forEach((d) => {
108
- e.dashboardDefinitions[d.dashboardKey] = e.dashboardDefinitions[d.dashboardKey] || {}, e.dashboardDefinitions[d.dashboardKey].summary = {
109
- ...d,
110
- remote: n,
111
- sectionId: s
112
- }, e.dashboardSummaryDefinitions[d.id] = {
113
- ...d,
114
- remote: n,
115
- sectionId: s
116
- };
117
- }), (((p = i[t].contributes) == null ? void 0 : p.dashboardDetail) || []).forEach((d) => {
118
- e.dashboardDefinitions[d.dashboardKey] = e.dashboardDefinitions[d.dashboardKey] || {}, e.dashboardDefinitions[d.dashboardKey].detail = {
119
- ...d,
120
- remote: n,
121
- sectionId: s
122
- }, e.dashboardDetailDefinitions[d.id] = {
123
- ...d,
124
- remote: n,
125
- sectionId: s
126
- };
127
- }), (((O = i[t].contributes) == null ? void 0 : O.dashboardPumpDetail) || []).forEach((d) => {
128
- e.dashboardDefinitions[d.dashboardKey] = e.dashboardDefinitions[d.dashboardKey] || {}, e.dashboardDefinitions[d.dashboardKey].pumpDetail = {
129
- ...d,
130
- remote: n,
131
- sectionId: s
132
- }, e.dashboardPumpDetailDefinitions[d.id] = {
133
- ...d,
134
- remote: n,
135
- sectionId: s
136
- };
137
- });
138
- const P = (f = i[t].contributes) == null ? void 0 : f.experiences;
139
- return Object.keys(P).forEach((d) => {
140
- const N = P[d];
141
- e.experiences[d] = {
142
- ...N,
143
- remote: n,
144
- sectionId: s
145
- };
146
- }), e;
147
- }, K = "ddk.cui", M = "ddk.cui.view", j = "ddk.cui.settings.config", ct = (i, e) => (t, n) => {
148
- const s = n, o = e[n], a = i[o.experienceId] || {};
149
- t[K] = t[K] || {}, t[K][s] = {
150
- id: s,
151
- type: "cui.definition",
152
- data: o,
153
- remote: o.remote,
154
- sectionId: o.sectionId
155
- }, a.id && (t[M] = t[M] || {}, t[M][s] = {
156
- id: s,
157
- type: "cui.view",
158
- data: a,
159
- remote: o.remote,
160
- sectionId: o.sectionId
161
- }), t[j] = t[j] || {};
162
- const u = {
163
- id: s,
164
- type: "cui",
165
- data: o,
166
- view: a,
167
- remote: o.remote,
168
- sectionId: o.sectionId
169
- };
170
- return t[j][s] = u, t;
171
- }, T = ({
172
- contributionKey: i,
173
- basePluginType: e,
174
- keys: { EXTENSION_POINT: t, EXTENSION_POINT_DEF: n, EXTENSION_POINT_VIEW: s }
175
- }) => (o, a) => (r, u) => {
176
- const c = u, I = a[i][u], b = o[I.experienceId] || {};
177
- n && (r[n] = r[n] || {}, r[n][c] = {
178
- id: c,
179
- type: `${e}.definition`,
180
- data: I,
181
- remote: I.remote,
182
- sectionId: I.sectionId
183
- }), b.id && s && (r[s] = r[s] || {}, r[s][c] = {
184
- id: c,
185
- type: `${e}.view`,
186
- data: b,
187
- remote: I.remote,
188
- sectionId: I.sectionId
189
- }), r[t] = r[t] || {};
190
- const h = {
191
- id: c,
192
- type: `${e}`,
193
- data: I,
194
- view: b,
195
- remote: I.remote,
196
- sectionId: I.sectionId
197
- };
198
- return r[t][c] = h, r;
199
- }, It = "ddk.dashboard.detail", Et = "ddk.dashboard.detail.view", lt = "ddk.ncui.dashboard.detail.config", ft = T({
200
- basePluginType: "dashboard.detail",
201
- contributionKey: "dashboardDetailDefinitions",
202
- keys: {
203
- EXTENSION_POINT: lt,
204
- EXTENSION_POINT_DEF: It,
205
- EXTENSION_POINT_VIEW: Et
206
- }
207
- }), bt = "ddk.dashboard.pump.detail", _t = "ddk.dashboard.pump.detail.view", Dt = "ddk.dashboard.pump.detail.config", Ot = T({
208
- basePluginType: "dashboard.pump.detail",
209
- contributionKey: "dashboardPumpDetailDefinitions",
210
- keys: {
211
- EXTENSION_POINT: Dt,
212
- EXTENSION_POINT_DEF: bt,
213
- EXTENSION_POINT_VIEW: _t
214
- }
215
- }), Nt = "ddk.ncui.dashboard.config", Tt = T({
216
- basePluginType: "dashboard",
217
- contributionKey: "dashboardDefinitions",
218
- keys: {
219
- EXTENSION_POINT: Nt
220
- }
221
- }), pt = "ddk.dashboard.summary", mt = "ddk.dashboard.summary.view", ht = "ddk.ncui.dashboard.summary.config", Pt = T({
222
- basePluginType: "dashboard.summary",
223
- contributionKey: "dashboardSummaryDefinitions",
224
- keys: {
225
- EXTENSION_POINT: ht,
226
- EXTENSION_POINT_DEF: pt,
227
- EXTENSION_POINT_VIEW: mt
228
- }
229
- }), wt = "ddk.nav.view", yt = "ddk.nav.view.view", St = "ddk.ncui.nav.view.config", gt = T({
230
- basePluginType: "nav.view",
231
- contributionKey: "navViewDefinitions",
232
- keys: {
233
- EXTENSION_POINT: St,
234
- EXTENSION_POINT_DEF: wt,
235
- EXTENSION_POINT_VIEW: yt
236
- }
237
- }), V = "ddk.settings", F = "ddk.settings.view", m = "ddk.settings.group", W = "ddk.ncui.settings.config", Rt = (i, e, t) => (n, s) => {
238
- const o = t[s];
239
- return n[m] = n[m] || {}, n[m][s] = {
240
- id: s,
241
- type: "settings.group",
242
- data: t[s],
243
- remote: o.remote,
244
- sectionId: o.sectionId
245
- }, Object.entries(e).filter(([, r]) => r.settingsGroup === s).map(([r]) => r).forEach((r) => {
246
- const u = r, c = e[r], D = i[c.experienceId] || {};
247
- n[m][s].data.settings = [
248
- ...n[m][s].data.settings,
249
- u
250
- ], n[V] = n[V] || {}, n[V][u] = {
251
- id: u,
252
- type: "settings.definition",
253
- data: c,
254
- remote: c.remote,
255
- sectionId: c.sectionId
256
- }, D.id && (n[F] = n[F] || {}, n[F][u] = {
257
- id: u,
258
- type: "settings.view",
259
- data: D,
260
- remote: c.remote,
261
- sectionId: c.sectionId
262
- }), n[W] = n[W] || {};
263
- const b = {
264
- id: u,
265
- type: "settings",
266
- data: c,
267
- view: D,
268
- remote: c.remote,
269
- sectionId: c.sectionId
270
- };
271
- n[W][u] = b;
272
- }), n;
273
- }, B = "ddk.setup", L = "ddk.setup.view", G = "ddk.ncui.setup.config", vt = (i, e) => (t, n) => {
274
- const s = n, o = e[n], a = i[o.experienceId] || {};
275
- t[B] = t[B] || {}, t[B][s] = {
276
- id: s,
277
- type: "setup.definition",
278
- data: o,
279
- remote: o.remote,
280
- sectionId: o.sectionId
281
- }, a.id && (t[L] = t[L] || {}, t[L][s] = {
282
- id: s,
283
- type: "setup.view",
284
- data: a,
285
- remote: o.remote,
286
- sectionId: o.sectionId
287
- }), t[G] = t[G] || {};
288
- const u = {
289
- id: s,
290
- type: "setup",
291
- data: o,
292
- view: a,
293
- remote: o.remote,
294
- sectionId: o.sectionId
295
- };
296
- return t[G][s] = u, t;
297
- }, xt = "ddk.trouble.action", At = "ddk.trouble.action.view", Ct = "ddk.ncui.trouble.action.config", Xt = T({
298
- basePluginType: "trouble.action",
299
- contributionKey: "troubleActionDefinitions",
300
- keys: {
301
- EXTENSION_POINT: Ct,
302
- EXTENSION_POINT_DEF: xt,
303
- EXTENSION_POINT_VIEW: At
304
- }
305
- }), H = "ddk.utilities", $ = "ddk.utilities.view", Y = "ddk.ncui.utils.config", Ut = (i, e) => (t, n) => {
306
- const s = n, o = e[n], a = i[o.experienceId] || {};
307
- t[H] = t[H] || {}, t[H][s] = {
308
- id: s,
309
- type: "utility.definition",
310
- data: o,
311
- remote: o.remote,
312
- sectionId: o.sectionId
313
- }, a.id && (t[$] = t[$] || {}, t[$][s] = {
314
- id: s,
315
- type: "utilities.view",
316
- data: a,
317
- remote: o.remote,
318
- sectionId: o.sectionId
319
- }), t[Y] = t[Y] || {};
320
- const u = {
321
- id: s,
322
- type: "utility",
323
- data: o,
324
- view: a,
325
- remote: o.remote,
326
- sectionId: o.sectionId
327
- };
328
- return t[Y][s] = u, t;
329
- };
330
- async function kt(i) {
331
- const e = i ?? window.KosPlugins.__dynamicRemotes;
332
- if (window.KosPlugins.extensions) {
333
- const o = window.KosPlugins.extensions;
334
- return {
335
- extensionPoints: o,
336
- getExtensions: (a) => o[a] || [],
337
- remotes: e,
338
- extensions: window.KosPlugins.__extensions
339
- };
340
- }
341
- const t = window.KosPlugins.__extensions ?? await Mt(e);
342
- let n = {};
343
- return t && (n = Object.keys(t).reduce((o, a) => {
344
- const r = a;
345
- return o[r] = o[r] || [], Object.keys(t[r]).forEach((u) => {
346
- o[r].push(t[a][u]);
347
- }), o;
348
- }, n)), window.KosPlugins.extensions = n, { extensionPoints: n, getExtensions: (o) => n[o] || [], remotes: e, extensions: t };
349
- }
350
- const et = {
351
- cuiDefinitions: {},
352
- utilDefinitions: {},
353
- setupDefinitions: {},
354
- settingsGroupDefinitions: {},
355
- settingsDefinitions: {},
356
- dashboardSummaryDefinitions: {},
357
- dashboardDetailDefinitions: {},
358
- dashboardPumpDetailDefinitions: {},
359
- dashboardDefinitions: {},
360
- navViewDefinitions: {},
361
- troubleActionDefinitions: {},
362
- experiences: {}
363
- };
364
- function Kt(i) {
365
- return i ? Object.keys(i).reduce(
366
- ut(i),
367
- et
368
- ) : et;
369
- }
370
- async function Mt(i) {
371
- if (i) {
372
- const e = Kt(i), {
373
- cuiDefinitions: t,
374
- utilDefinitions: n,
375
- setupDefinitions: s,
376
- settingsDefinitions: o,
377
- settingsGroupDefinitions: a,
378
- troubleActionDefinitions: r,
379
- dashboardDetailDefinitions: u,
380
- dashboardSummaryDefinitions: c,
381
- dashboardPumpDetailDefinitions: D,
382
- dashboardDefinitions: I,
383
- navViewDefinitions: b,
384
- experiences: l
385
- } = e, h = Object.keys(t).reduce(
386
- ct(l, t),
387
- {}
388
- ), P = Object.keys(n).reduce(
389
- Ut(l, n),
390
- h
391
- ), w = Object.keys(s).reduce(
392
- vt(l, s),
393
- P
394
- ), y = Object.keys(
395
- r
396
- ).reduce(
397
- Xt(l, e),
398
- w
399
- ), S = Object.keys(b).reduce(
400
- gt(l, e),
401
- y
402
- ), g = Object.keys(
403
- c
404
- ).reduce(
405
- Pt(l, e),
406
- S
407
- ), R = Object.keys(
408
- u
409
- ).reduce(
410
- ft(l, e),
411
- g
412
- ), v = Object.keys(
413
- D
414
- ).reduce(
415
- Ot(l, e),
416
- R
417
- ), x = Object.keys(I).reduce(
418
- Tt(l, e),
419
- v
420
- ), A = Object.keys(a).reduce(
421
- Rt(
422
- l,
423
- o,
424
- a
425
- ),
426
- x
427
- );
428
- for (const O of Object.values(i))
429
- if (O.init) {
430
- const f = await it.loadRemoteModule(
431
- O.remote,
432
- "./InitPlugin"
433
- );
434
- if (f.default) {
435
- const d = new f.default();
436
- d == null || d.register();
437
- }
438
- }
439
- const p = Object.keys(i).reduce((O, f) => {
440
- var J;
441
- const d = (J = i[f].contributes) == null ? void 0 : J.views, N = Object.keys(d).reduce(
442
- (E, Q) => {
443
- const nt = d[Q], X = Q;
444
- return nt.forEach((U) => {
445
- const Z = U.id;
446
- E[X] = E[X] || {}, E[X][Z] = {
447
- id: Z,
448
- type: "view",
449
- component: U.component,
450
- remote: i[f].remote,
451
- sectionId: f,
452
- data: U
453
- };
454
- }), E;
455
- },
456
- O
457
- );
458
- return i[f].extensions.forEach((E) => {
459
- N[E.extensionPointId] = N[E.extensionPointId] || {}, N[E.extensionPointId][E.id] = {
460
- id: E.id,
461
- type: E.type,
462
- component: E.component,
463
- remote: i[f].remote,
464
- sectionId: f,
465
- data: E
466
- };
467
- }), N;
468
- }, A);
469
- return window.KosPlugins = window.KosPlugins || {}, window.KosPlugins.__extensions = p, p;
470
- }
471
- return window.KosPlugins = window.KosPlugins || {}, {};
472
- }
473
- async function Vt(i) {
474
- const { getExtensions: e } = await kt();
475
- return e(i);
476
- }
477
- export {
478
- Vt as A,
479
- V as B,
480
- F as C,
481
- m as D,
482
- K as E,
483
- W as F,
484
- Rt as G,
485
- B as H,
486
- L as I,
487
- G as J,
488
- vt as K,
489
- xt as L,
490
- At as M,
491
- Ct as N,
492
- Xt as O,
493
- H as P,
494
- $ as Q,
495
- Y as R,
496
- Ut as S,
497
- M as a,
498
- j as b,
499
- ut as c,
500
- ct as d,
501
- It as e,
502
- Et as f,
503
- lt as g,
504
- ft as h,
505
- kt as i,
506
- bt as j,
507
- _t as k,
508
- Dt as l,
509
- it as m,
510
- Ot as n,
511
- Nt as o,
512
- Tt as p,
513
- pt as q,
514
- mt as r,
515
- ht as s,
516
- Pt as t,
517
- wt as u,
518
- yt as v,
519
- St as w,
520
- gt as x,
521
- Kt as y,
522
- Mt as z
523
- };
524
- //# sourceMappingURL=plugin-extension-manager-7xDx0VSt.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin-extension-manager-7xDx0VSt.js","sources":["../../../../node_modules/@nx/react/mf/dynamic-federation.js","../../../../node_modules/@nx/react/mf/index.js","../../../../packages/sdk/kos-ui-plugin/src/lib/utils/contribution-reducer.ts","../../../../packages/sdk/kos-ui-plugin/src/lib/utils/cui-reducer.ts","../../../../packages/sdk/kos-ui-plugin/src/lib/utils/plugin-reducer.ts","../../../../packages/sdk/kos-ui-plugin/src/lib/utils/dashboard-detail-reducer.ts","../../../../packages/sdk/kos-ui-plugin/src/lib/utils/dashboard-pump-detail-reducer.ts","../../../../packages/sdk/kos-ui-plugin/src/lib/utils/dashboard-reducer.ts","../../../../packages/sdk/kos-ui-plugin/src/lib/utils/dashboard-summary-reducer.ts","../../../../packages/sdk/kos-ui-plugin/src/lib/utils/nav-view-reducer.ts","../../../../packages/sdk/kos-ui-plugin/src/lib/utils/settings-reducer.ts","../../../../packages/sdk/kos-ui-plugin/src/lib/utils/setup-reducer.ts","../../../../packages/sdk/kos-ui-plugin/src/lib/utils/state-action-reducer.ts","../../../../packages/sdk/kos-ui-plugin/src/lib/utils/util-reducer.ts","../../../../packages/sdk/kos-ui-plugin/src/lib/utils/plugin-extension-manager.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.loadRemoteModule = exports.setRemoteDefinitions = exports.setRemoteUrlResolver = void 0;\nlet remoteUrlDefinitions;\nlet resolveRemoteUrl;\nconst remoteModuleMap = new Map();\nconst remoteContainerMap = new Map();\nlet initialSharingScopeCreated = false;\nfunction setRemoteUrlResolver(_resolveRemoteUrl) {\n resolveRemoteUrl = _resolveRemoteUrl;\n}\nexports.setRemoteUrlResolver = setRemoteUrlResolver;\nfunction setRemoteDefinitions(definitions) {\n remoteUrlDefinitions = definitions;\n}\nexports.setRemoteDefinitions = setRemoteDefinitions;\nasync function loadRemoteModule(remoteName, moduleName) {\n const remoteModuleKey = `${remoteName}:${moduleName}`;\n if (remoteModuleMap.has(remoteModuleKey)) {\n return remoteModuleMap.get(remoteModuleKey);\n }\n const container = remoteContainerMap.has(remoteName)\n ? remoteContainerMap.get(remoteName)\n : await loadRemoteContainer(remoteName);\n const factory = await container.get(moduleName);\n const Module = factory();\n remoteModuleMap.set(remoteModuleKey, Module);\n return Module;\n}\nexports.loadRemoteModule = loadRemoteModule;\nconst fetchRemoteModule = (url, remoteName) => {\n return new Promise((resolve, reject) => {\n const script = document.createElement('script');\n script.src = url;\n script.type = 'text/javascript';\n script.async = true;\n script.onload = () => {\n const proxy = {\n get: (request) => window[remoteName].get(request),\n init: (arg) => {\n try {\n window[remoteName].init(arg);\n }\n catch (e) {\n console.error(`Failed to initialize remote ${remoteName}`, e);\n reject(e);\n }\n },\n };\n resolve(proxy);\n };\n script.onerror = () => reject(new Error(`Remote ${remoteName} not found`));\n document.head.appendChild(script);\n });\n};\nasync function loadRemoteContainer(remoteName) {\n if (!resolveRemoteUrl && !remoteUrlDefinitions) {\n throw new Error('Call setRemoteDefinitions or setRemoteUrlResolver to allow Dynamic Federation to find the remote apps correctly.');\n }\n if (!initialSharingScopeCreated) {\n initialSharingScopeCreated = true;\n await __webpack_init_sharing__('default');\n }\n const remoteUrl = remoteUrlDefinitions\n ? remoteUrlDefinitions[remoteName]\n : await resolveRemoteUrl(remoteName);\n let containerUrl = remoteUrl;\n if (!remoteUrl.endsWith('.mjs') && !remoteUrl.endsWith('.js')) {\n containerUrl = `${remoteUrl}${remoteUrl.endsWith('/') ? '' : '/'}remoteEntry.js`;\n }\n const container = await fetchRemoteModule(containerUrl, remoteName);\n await container.init(__webpack_share_scopes__.default);\n remoteContainerMap.set(remoteName, container);\n return container;\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.setRemoteUrlResolver = exports.setRemoteDefinitions = exports.loadRemoteModule = void 0;\nvar dynamic_federation_1 = require(\"./dynamic-federation\");\nObject.defineProperty(exports, \"loadRemoteModule\", { enumerable: true, get: function () { return dynamic_federation_1.loadRemoteModule; } });\nObject.defineProperty(exports, \"setRemoteDefinitions\", { enumerable: true, get: function () { return dynamic_federation_1.setRemoteDefinitions; } });\nObject.defineProperty(exports, \"setRemoteUrlResolver\", { enumerable: true, get: function () { return dynamic_federation_1.setRemoteUrlResolver; } });\n","import type { DynamicRemotes } from \"../../types/global\";\nimport type { ProcessedContributions } from \"../../types/plugins\";\n\nexport const contributionReducer =\n (remotes: DynamicRemotes) => (acc: ProcessedContributions, key: string) => {\n acc.cuiDefinitions = acc.cuiDefinitions || {};\n\n const remote = remotes[key].remote;\n const sectionId = key;\n const cuiConfigurations = remotes[key].contributes?.cui || [];\n cuiConfigurations.forEach((cuiConfiguration) => {\n acc.cuiDefinitions[cuiConfiguration.id] = {\n ...cuiConfiguration,\n cuiDescriptor: sectionId,\n remote,\n sectionId,\n };\n });\n\n const navViewConfigurations = remotes[key].contributes?.navViews || [];\n navViewConfigurations.forEach((configuration) => {\n acc.navViewDefinitions[configuration.id] = {\n ...configuration,\n remote,\n sectionId,\n };\n });\n const utilConfigurations = remotes[key].contributes?.utilities || [];\n utilConfigurations.forEach((configuration) => {\n acc.utilDefinitions[configuration.id] = {\n ...configuration,\n remote,\n sectionId,\n };\n });\n\n const setupConfigurations = remotes[key].contributes?.setupStep || [];\n setupConfigurations.forEach((configuration) => {\n acc.setupDefinitions[configuration.id] = {\n ...configuration,\n remote,\n sectionId,\n };\n });\n\n const troubleActionConfigurations =\n remotes[key].contributes?.troubleActions || [];\n troubleActionConfigurations.forEach((configuration) => {\n acc.troubleActionDefinitions[configuration.id] = {\n ...configuration,\n remote,\n sectionId,\n };\n });\n\n const settingsGroupConfigurations =\n remotes[key].contributes?.settingsGroup || [];\n settingsGroupConfigurations.forEach((configuration) => {\n acc.settingsGroupDefinitions[configuration.id] = {\n ...configuration,\n settings: [],\n remote,\n sectionId,\n };\n });\n\n const settingsConfigurations = remotes[key].contributes?.settings || [];\n settingsConfigurations.forEach((configuration) => {\n acc.settingsDefinitions[configuration.id] = {\n ...configuration,\n remote,\n sectionId,\n };\n });\n\n const dashboardSummaryConfigurations =\n remotes[key].contributes?.dashboardSummary || [];\n dashboardSummaryConfigurations.forEach((configuration) => {\n acc.dashboardDefinitions[configuration.dashboardKey] =\n acc.dashboardDefinitions[configuration.dashboardKey] || {};\n acc.dashboardDefinitions[configuration.dashboardKey].summary = {\n ...configuration,\n remote,\n sectionId,\n };\n acc.dashboardSummaryDefinitions[configuration.id] = {\n ...configuration,\n remote,\n sectionId,\n };\n });\n\n const dashboardDetailConfigurations =\n remotes[key].contributes?.dashboardDetail || [];\n dashboardDetailConfigurations.forEach((configuration) => {\n acc.dashboardDefinitions[configuration.dashboardKey] =\n acc.dashboardDefinitions[configuration.dashboardKey] || {};\n acc.dashboardDefinitions[configuration.dashboardKey].detail = {\n ...configuration,\n remote,\n sectionId,\n };\n acc.dashboardDetailDefinitions[configuration.id] = {\n ...configuration,\n remote,\n sectionId,\n };\n });\n\n const dashboardDetailPumpConfigurations =\n remotes[key].contributes?.dashboardPumpDetail || [];\n dashboardDetailPumpConfigurations.forEach((configuration) => {\n acc.dashboardDefinitions[configuration.dashboardKey] =\n acc.dashboardDefinitions[configuration.dashboardKey] || {};\n acc.dashboardDefinitions[configuration.dashboardKey].pumpDetail = {\n ...configuration,\n remote,\n sectionId,\n };\n acc.dashboardPumpDetailDefinitions[configuration.id] = {\n ...configuration,\n remote,\n sectionId,\n };\n });\n\n const experiences = remotes[key].contributes?.experiences;\n Object.keys(experiences).forEach((key) => {\n const experience = experiences[key];\n acc.experiences[key] = {\n ...experience,\n remote,\n sectionId,\n };\n });\n\n return acc;\n };\n","import type {\n CuiContribution,\n PluginExtensionsType,\n ProcessedContributions,\n} from \"../../types/plugins\";\n\nexport const EXTENSION_POINT_CUI_DEF = \"ddk.cui\";\nexport const EXTENSION_POINT_CUI_VIEW = \"ddk.cui.view\";\nexport const EXTENSION_POINT_CUI = \"ddk.cui.settings.config\";\nexport const cuiReducer =\n (\n experiences: ProcessedContributions[\"experiences\"],\n cuiDefinitions: ProcessedContributions[\"cuiDefinitions\"]\n ) =>\n (acc: PluginExtensionsType, key: string) => {\n const id = key;\n const def = cuiDefinitions[key];\n const view = experiences[def.experienceId] || {};\n acc[EXTENSION_POINT_CUI_DEF] = acc[EXTENSION_POINT_CUI_DEF] || {};\n acc[EXTENSION_POINT_CUI_DEF][id] = {\n id,\n type: \"cui.definition\",\n data: def,\n remote: def.remote,\n sectionId: def.sectionId,\n };\n\n const viewId = view.id;\n if (viewId) {\n acc[EXTENSION_POINT_CUI_VIEW] = acc[EXTENSION_POINT_CUI_VIEW] || {};\n acc[EXTENSION_POINT_CUI_VIEW][id] = {\n id,\n type: \"cui.view\",\n data: view,\n remote: def.remote,\n sectionId: def.sectionId,\n };\n }\n acc[EXTENSION_POINT_CUI] = acc[EXTENSION_POINT_CUI] || {};\n const cuiContribution: CuiContribution = {\n id,\n type: \"cui\",\n data: def,\n view,\n remote: def.remote,\n sectionId: def.sectionId,\n };\n acc[EXTENSION_POINT_CUI][id] = cuiContribution;\n return acc;\n };\n","import type {\n BaseViewPluginExtension,\n PluginExtensionsType,\n ProcessedContributions,\n} from \"../../types/plugins\";\n\nexport const EXTENSION_POINT_SETUP_DEF = \"ddk.setup\";\nexport const EXTENSION_POINT_SETUP_VIEW = \"ddk.setup.view\";\nexport const EXTENSION_POINT_SETUP = \"ddk.ncui.setup.config\";\n\ninterface PluginReducer {\n contributionKey: string;\n basePluginType: string;\n keys: {\n EXTENSION_POINT_DEF?: string;\n EXTENSION_POINT_VIEW?: string;\n EXTENSION_POINT: string;\n };\n}\nexport const pluginReducer =\n ({\n contributionKey,\n basePluginType,\n keys: { EXTENSION_POINT, EXTENSION_POINT_DEF, EXTENSION_POINT_VIEW },\n }: PluginReducer) =>\n (\n experiences: ProcessedContributions[\"experiences\"],\n contributions: ProcessedContributions\n ) =>\n (acc: PluginExtensionsType, key: string) => {\n const id = key;\n const definitions = contributions[contributionKey];\n const def = definitions[key];\n const view = experiences[def.experienceId] || {};\n\n if (EXTENSION_POINT_DEF) {\n acc[EXTENSION_POINT_DEF] = acc[EXTENSION_POINT_DEF] || {};\n acc[EXTENSION_POINT_DEF][id] = {\n id,\n type: `${basePluginType}.definition`,\n data: def,\n remote: def.remote,\n sectionId: def.sectionId,\n };\n }\n const viewId = view.id;\n if (viewId && EXTENSION_POINT_VIEW) {\n acc[EXTENSION_POINT_VIEW] = acc[EXTENSION_POINT_VIEW] || {};\n acc[EXTENSION_POINT_VIEW][id] = {\n id,\n type: `${basePluginType}.view`,\n data: view,\n remote: def.remote,\n sectionId: def.sectionId,\n };\n }\n acc[EXTENSION_POINT] = acc[EXTENSION_POINT] || {};\n const contribution: BaseViewPluginExtension = {\n id,\n type: `${basePluginType}`,\n data: def,\n view,\n remote: def.remote,\n sectionId: def.sectionId,\n };\n acc[EXTENSION_POINT][id] = contribution;\n return acc;\n };\n","import { pluginReducer } from \"./plugin-reducer\";\n\nexport const EXTENSION_POINT_DASHBOARD_DETAIL_DEF = \"ddk.dashboard.detail\";\nexport const EXTENSION_POINT_DASHBOARD_DETAIL_VIEW =\n \"ddk.dashboard.detail.view\";\nexport const EXTENSION_POINT_DASHBOARD_DETAIL =\n \"ddk.ncui.dashboard.detail.config\";\nexport const dashboardDetailReducer = pluginReducer({\n basePluginType: \"dashboard.detail\",\n contributionKey: \"dashboardDetailDefinitions\",\n keys: {\n EXTENSION_POINT: EXTENSION_POINT_DASHBOARD_DETAIL,\n EXTENSION_POINT_DEF: EXTENSION_POINT_DASHBOARD_DETAIL_DEF,\n EXTENSION_POINT_VIEW: EXTENSION_POINT_DASHBOARD_DETAIL_VIEW,\n },\n});\n","import { pluginReducer } from \"./plugin-reducer\";\n\nexport const EXTENSION_POINT_DASHBOARD_PUMP_DETAIL_DEF =\n \"ddk.dashboard.pump.detail\";\nexport const EXTENSION_POINT_DASHBOARD_PUMP_DETAIL_VIEW =\n \"ddk.dashboard.pump.detail.view\";\nexport const EXTENSION_POINT_DASHBOARD_PUMP_DETAIL =\n \"ddk.dashboard.pump.detail.config\";\n\nexport const dashboardPumpDetailReducer = pluginReducer({\n basePluginType: \"dashboard.pump.detail\",\n contributionKey: \"dashboardPumpDetailDefinitions\",\n keys: {\n EXTENSION_POINT: EXTENSION_POINT_DASHBOARD_PUMP_DETAIL,\n EXTENSION_POINT_DEF: EXTENSION_POINT_DASHBOARD_PUMP_DETAIL_DEF,\n EXTENSION_POINT_VIEW: EXTENSION_POINT_DASHBOARD_PUMP_DETAIL_VIEW,\n },\n});\n","import { pluginReducer } from \"./plugin-reducer\";\n\nexport const EXTENSION_POINT_DASHBOARD = \"ddk.ncui.dashboard.config\";\nexport const dashboardReducer = pluginReducer({\n basePluginType: \"dashboard\",\n contributionKey: \"dashboardDefinitions\",\n keys: {\n EXTENSION_POINT: EXTENSION_POINT_DASHBOARD,\n },\n});\n","import { pluginReducer } from \"./plugin-reducer\";\n\nexport const EXTENSION_POINT_DASHBOARD_SUMMARY_DEF = \"ddk.dashboard.summary\";\nexport const EXTENSION_POINT_DASHBOARD_SUMMARY_VIEW =\n \"ddk.dashboard.summary.view\";\nexport const EXTENSION_POINT_DASHBOARD_SUMMARY =\n \"ddk.ncui.dashboard.summary.config\";\nexport const dashboardSummaryReducer = pluginReducer({\n basePluginType: \"dashboard.summary\",\n contributionKey: \"dashboardSummaryDefinitions\",\n keys: {\n EXTENSION_POINT: EXTENSION_POINT_DASHBOARD_SUMMARY,\n EXTENSION_POINT_DEF: EXTENSION_POINT_DASHBOARD_SUMMARY_DEF,\n EXTENSION_POINT_VIEW: EXTENSION_POINT_DASHBOARD_SUMMARY_VIEW,\n },\n});\n","import { pluginReducer } from \"./plugin-reducer\";\n\nexport const EXTENSION_POINT_NAV_VIEW_DEF = \"ddk.nav.view\";\nexport const EXTENSION_POINT_NAV_VIEW_VIEW = \"ddk.nav.view.view\";\nexport const EXTENSION_POINT_NAV_VIEW = \"ddk.ncui.nav.view.config\";\n\nexport const navViewReducer = pluginReducer({\n basePluginType: \"nav.view\",\n contributionKey: \"navViewDefinitions\",\n keys: {\n EXTENSION_POINT: EXTENSION_POINT_NAV_VIEW,\n EXTENSION_POINT_DEF: EXTENSION_POINT_NAV_VIEW_DEF,\n EXTENSION_POINT_VIEW: EXTENSION_POINT_NAV_VIEW_VIEW,\n },\n});\n","import type {\n PluginExtensionsType,\n ProcessedContributions,\n SettingsContribution,\n} from \"../../types/plugins\";\n\nexport const EXTENSION_POINT_SETTINGS_DEF = \"ddk.settings\";\nexport const EXTENSION_POINT_SETTINGS_VIEW = \"ddk.settings.view\";\nexport const EXTENSION_POINT_SETTINGS_GROUP_DEF = \"ddk.settings.group\";\nexport const EXTENSION_POINT_SETTINGS = \"ddk.ncui.settings.config\";\n\nexport const settingsReducer =\n (\n experiences: ProcessedContributions[\"experiences\"],\n settingDefinition: ProcessedContributions[\"settingsDefinitions\"],\n settingsGroupDefinition: ProcessedContributions[\"settingsGroupDefinitions\"]\n ) =>\n (acc: PluginExtensionsType, group: string) => {\n const groupDef = settingsGroupDefinition[group];\n acc[EXTENSION_POINT_SETTINGS_GROUP_DEF] =\n acc[EXTENSION_POINT_SETTINGS_GROUP_DEF] || {};\n acc[EXTENSION_POINT_SETTINGS_GROUP_DEF][group] = {\n id: group,\n type: \"settings.group\",\n data: settingsGroupDefinition[group],\n remote: groupDef.remote,\n sectionId: groupDef.sectionId,\n };\n\n const defKeys = Object.entries(settingDefinition)\n .filter(([, def]) => def.settingsGroup === group)\n .map(([defKey]) => defKey);\n\n defKeys.forEach((key) => {\n const id = key;\n\n const def = settingDefinition[key];\n const view = experiences[def.experienceId] || {};\n acc[EXTENSION_POINT_SETTINGS_GROUP_DEF][group].data.settings = [\n ...acc[EXTENSION_POINT_SETTINGS_GROUP_DEF][group].data.settings,\n id,\n ];\n acc[EXTENSION_POINT_SETTINGS_DEF] =\n acc[EXTENSION_POINT_SETTINGS_DEF] || {};\n acc[EXTENSION_POINT_SETTINGS_DEF][id] = {\n id,\n type: \"settings.definition\",\n data: def,\n remote: def.remote,\n sectionId: def.sectionId,\n };\n\n const viewId = view.id;\n if (viewId) {\n acc[EXTENSION_POINT_SETTINGS_VIEW] =\n acc[EXTENSION_POINT_SETTINGS_VIEW] || {};\n acc[EXTENSION_POINT_SETTINGS_VIEW][id] = {\n id,\n type: \"settings.view\",\n data: view,\n remote: def.remote,\n sectionId: def.sectionId,\n };\n }\n acc[EXTENSION_POINT_SETTINGS] = acc[EXTENSION_POINT_SETTINGS] || {};\n const settginsContribution: SettingsContribution = {\n id,\n type: \"settings\",\n data: def,\n view,\n remote: def.remote,\n sectionId: def.sectionId,\n };\n acc[EXTENSION_POINT_SETTINGS][id] = settginsContribution;\n });\n\n return acc;\n };\n","import type {\n PluginExtensionsType,\n ProcessedContributions,\n SetupContribution,\n} from \"../../types/plugins\";\n\nexport const EXTENSION_POINT_SETUP_DEF = \"ddk.setup\";\nexport const EXTENSION_POINT_SETUP_VIEW = \"ddk.setup.view\";\nexport const EXTENSION_POINT_SETUP = \"ddk.ncui.setup.config\";\n\nexport const setupReducer =\n (\n experiences: ProcessedContributions[\"experiences\"],\n setupDefinitions: ProcessedContributions[\"setupDefinitions\"]\n ) =>\n (acc: PluginExtensionsType, key: string) => {\n const id = key;\n const def = setupDefinitions[key];\n const view = experiences[def.experienceId] || {};\n acc[EXTENSION_POINT_SETUP_DEF] = acc[EXTENSION_POINT_SETUP_DEF] || {};\n acc[EXTENSION_POINT_SETUP_DEF][id] = {\n id,\n type: \"setup.definition\",\n data: def,\n remote: def.remote,\n sectionId: def.sectionId,\n };\n\n const viewId = view.id;\n if (viewId) {\n acc[EXTENSION_POINT_SETUP_VIEW] = acc[EXTENSION_POINT_SETUP_VIEW] || {};\n acc[EXTENSION_POINT_SETUP_VIEW][id] = {\n id,\n type: \"setup.view\",\n data: view,\n remote: def.remote,\n sectionId: def.sectionId,\n };\n }\n acc[EXTENSION_POINT_SETUP] = acc[EXTENSION_POINT_SETUP] || {};\n const setupContribution: SetupContribution = {\n id,\n type: \"setup\",\n data: def,\n view,\n remote: def.remote,\n sectionId: def.sectionId,\n };\n acc[EXTENSION_POINT_SETUP][id] = setupContribution;\n return acc;\n };\n","import { pluginReducer } from \"./plugin-reducer\";\n\nexport const EXTENSION_POINT_TROUBLE_ACTION_DEF = \"ddk.trouble.action\";\nexport const EXTENSION_POINT_TROUBLE_ACTION_VIEW = \"ddk.trouble.action.view\";\nexport const EXTENSION_POINT_TROUBLE_ACTION = \"ddk.ncui.trouble.action.config\";\n\nexport const troubleActionReducer = pluginReducer({\n basePluginType: \"trouble.action\",\n contributionKey: \"troubleActionDefinitions\",\n keys: {\n EXTENSION_POINT: EXTENSION_POINT_TROUBLE_ACTION,\n EXTENSION_POINT_DEF: EXTENSION_POINT_TROUBLE_ACTION_DEF,\n EXTENSION_POINT_VIEW: EXTENSION_POINT_TROUBLE_ACTION_VIEW,\n },\n});\n","import type {\n PluginExtensionsType,\n ProcessedContributions,\n UtilContribution,\n} from \"../../types/plugins\";\n\nexport const EXTENSION_POINT_UTIL_DEF = \"ddk.utilities\";\nexport const EXTENSION_POINT_UTIL_VIEW = \"ddk.utilities.view\";\nexport const EXTENSION_POINT_UTIL = \"ddk.ncui.utils.config\";\nexport const utilReducer =\n (\n experiences: ProcessedContributions[\"experiences\"],\n utilDefinitions: ProcessedContributions[\"utilDefinitions\"]\n ) =>\n (acc: PluginExtensionsType, key: string) => {\n const id = key;\n const def = utilDefinitions[key];\n const view = experiences[def.experienceId] || {};\n acc[EXTENSION_POINT_UTIL_DEF] = acc[EXTENSION_POINT_UTIL_DEF] || {};\n acc[EXTENSION_POINT_UTIL_DEF][id] = {\n id,\n type: \"utility.definition\",\n data: def,\n remote: def.remote,\n sectionId: def.sectionId,\n };\n\n const viewId = view.id;\n if (viewId) {\n acc[EXTENSION_POINT_UTIL_VIEW] = acc[EXTENSION_POINT_UTIL_VIEW] || {};\n acc[EXTENSION_POINT_UTIL_VIEW][id] = {\n id,\n type: \"utilities.view\",\n data: view,\n remote: def.remote,\n sectionId: def.sectionId,\n };\n }\n acc[EXTENSION_POINT_UTIL] = acc[EXTENSION_POINT_UTIL] || {};\n const utilContribution: UtilContribution = {\n id,\n type: \"utility\",\n data: def,\n view,\n remote: def.remote,\n sectionId: def.sectionId,\n };\n acc[EXTENSION_POINT_UTIL][id] = utilContribution;\n\n return acc;\n };\n","import { loadRemoteModule } from \"@nx/react/mf\";\nimport type { DynamicRemotes } from \"../../types/global\";\nimport type {\n PluginExtension,\n PluginExtensionsType,\n ProcessedContributions,\n} from \"../../types/plugins\";\nimport { contributionReducer } from \"./contribution-reducer\";\nimport { cuiReducer } from \"./cui-reducer\";\nimport { dashboardDetailReducer } from \"./dashboard-detail-reducer\";\nimport { dashboardPumpDetailReducer } from \"./dashboard-pump-detail-reducer\";\nimport { dashboardReducer } from \"./dashboard-reducer\";\nimport { dashboardSummaryReducer } from \"./dashboard-summary-reducer\";\nimport { navViewReducer } from \"./nav-view-reducer\";\n\nimport { settingsReducer } from \"./settings-reducer\";\nimport { setupReducer } from \"./setup-reducer\";\nimport { troubleActionReducer } from \"./state-action-reducer\";\nimport { utilReducer } from \"./util-reducer\";\n\ninterface PluginsType {\n remotes?: DynamicRemotes;\n extensions?: PluginExtensionsType;\n extensionPoints?: Record<string, PluginExtension[]>;\n getExtensions: (extensionPointId: string) => PluginExtension[];\n}\nexport async function initPluginManager(\n remotesOverride?: DynamicRemotes\n): Promise<PluginsType> {\n const remotes = remotesOverride ?? window.KosPlugins.__dynamicRemotes;\n if (window.KosPlugins.extensions) {\n const extensionPoints = window.KosPlugins.extensions;\n return {\n extensionPoints,\n getExtensions: (extensionPointId: string) =>\n extensionPoints[extensionPointId] || [],\n remotes,\n extensions: window.KosPlugins.__extensions,\n };\n }\n\n const extensions =\n window.KosPlugins.__extensions ?? (await loadExtensions(remotes));\n let extensionPoints: Record<string, PluginExtension[]> = {};\n if (extensions) {\n extensionPoints = Object.keys(extensions).reduce((acc, key) => {\n const extensionPointId = key;\n\n acc[extensionPointId] = acc[extensionPointId] || [];\n Object.keys(extensions[extensionPointId]).forEach((id) => {\n acc[extensionPointId].push(extensions[key][id]);\n });\n\n return acc;\n }, extensionPoints as Record<string, PluginExtension[]>);\n }\n window.KosPlugins.extensions = extensionPoints;\n const getExtensions = (extensionPointId: string) => {\n const extensionData = extensionPoints[extensionPointId] || [];\n\n return extensionData;\n };\n return { extensionPoints, getExtensions, remotes, extensions };\n}\nconst DEFAULT_CONTRIBUTIONS = {\n cuiDefinitions: {},\n utilDefinitions: {},\n setupDefinitions: {},\n settingsGroupDefinitions: {},\n settingsDefinitions: {},\n dashboardSummaryDefinitions: {},\n dashboardDetailDefinitions: {},\n dashboardPumpDetailDefinitions: {},\n dashboardDefinitions: {},\n navViewDefinitions: {},\n troubleActionDefinitions: {},\n experiences: {},\n};\nexport function getContributions(\n remotes?: DynamicRemotes\n): ProcessedContributions {\n if (!remotes) {\n return DEFAULT_CONTRIBUTIONS;\n }\n const contributions = Object.keys(remotes).reduce(\n contributionReducer(remotes),\n DEFAULT_CONTRIBUTIONS as ProcessedContributions\n );\n\n return contributions;\n}\nexport async function loadExtensions(remotes?: DynamicRemotes) {\n if (remotes) {\n const contributions = getContributions(remotes);\n const {\n cuiDefinitions,\n utilDefinitions,\n setupDefinitions,\n settingsDefinitions,\n settingsGroupDefinitions,\n troubleActionDefinitions,\n dashboardDetailDefinitions,\n dashboardSummaryDefinitions,\n dashboardPumpDetailDefinitions,\n dashboardDefinitions,\n navViewDefinitions,\n experiences,\n } = contributions;\n const cuiExtensions = Object.keys(cuiDefinitions).reduce(\n cuiReducer(experiences, cuiDefinitions),\n {} as PluginExtensionsType\n );\n\n const utilExtensions = Object.keys(utilDefinitions).reduce(\n utilReducer(experiences, utilDefinitions),\n cuiExtensions as PluginExtensionsType\n );\n\n const setupExtensions = Object.keys(setupDefinitions).reduce(\n setupReducer(experiences, setupDefinitions),\n utilExtensions as PluginExtensionsType\n );\n\n const troubleActionExtensions = Object.keys(\n troubleActionDefinitions\n ).reduce(\n troubleActionReducer(experiences, contributions),\n setupExtensions as PluginExtensionsType\n );\n\n const navViewExtensions = Object.keys(navViewDefinitions).reduce(\n navViewReducer(experiences, contributions),\n troubleActionExtensions as PluginExtensionsType\n );\n const dashboardSummaryExtensions = Object.keys(\n dashboardSummaryDefinitions\n ).reduce(\n dashboardSummaryReducer(experiences, contributions),\n navViewExtensions as PluginExtensionsType\n );\n\n const dashboardDetailsExtensions = Object.keys(\n dashboardDetailDefinitions\n ).reduce(\n dashboardDetailReducer(experiences, contributions),\n dashboardSummaryExtensions as PluginExtensionsType\n );\n\n const dashboardPumpDetailsExtensions = Object.keys(\n dashboardPumpDetailDefinitions\n ).reduce(\n dashboardPumpDetailReducer(experiences, contributions),\n dashboardDetailsExtensions as PluginExtensionsType\n );\n\n const dashboardExtensions = Object.keys(dashboardDefinitions).reduce(\n dashboardReducer(experiences, contributions),\n dashboardPumpDetailsExtensions as PluginExtensionsType\n );\n const settingsExtensions = Object.keys(settingsGroupDefinitions).reduce(\n settingsReducer(\n experiences,\n settingsDefinitions,\n settingsGroupDefinitions\n ),\n dashboardExtensions as PluginExtensionsType\n );\n\n for (const remote of Object.values(remotes)) {\n if (remote.init) {\n const InitPlugin = await loadRemoteModule(\n remote.remote,\n \"./InitPlugin\"\n );\n if (InitPlugin.default) {\n const initPlugin = new InitPlugin.default();\n\n initPlugin?.register();\n }\n }\n }\n\n const allExtensions = Object.keys(remotes).reduce((acc, key) => {\n const descriptorViews = remotes[key].contributes?.views;\n const viewExtensions = Object.keys(descriptorViews).reduce(\n (viewAcc, viewKey) => {\n const view = descriptorViews[viewKey];\n const extensionPointId = viewKey;\n view.forEach((viewDef) => {\n const id = viewDef.id;\n viewAcc[extensionPointId] = viewAcc[extensionPointId] || {};\n viewAcc[extensionPointId][id] = {\n id,\n type: \"view\",\n component: viewDef.component,\n remote: remotes[key].remote,\n sectionId: key,\n data: viewDef,\n };\n });\n return viewAcc;\n },\n acc\n );\n const descriptorExtensions = remotes[key].extensions;\n descriptorExtensions.forEach((extension) => {\n viewExtensions[extension.extensionPointId] =\n viewExtensions[extension.extensionPointId] || {};\n viewExtensions[extension.extensionPointId][extension.id] = {\n id: extension.id,\n type: extension.type,\n component: extension.component,\n remote: remotes[key].remote,\n sectionId: key,\n data: extension,\n };\n });\n return viewExtensions;\n }, settingsExtensions as PluginExtensionsType);\n\n window.KosPlugins = window.KosPlugins || {};\n window.KosPlugins.__extensions = allExtensions;\n return allExtensions;\n }\n window.KosPlugins = window.KosPlugins || {};\n return {};\n}\n\nexport async function getExtensions(extensionPointId: string) {\n const { getExtensions } = await initPluginManager();\n return getExtensions(extensionPointId);\n}\n"],"names":["dynamicFederation","remoteUrlDefinitions","resolveRemoteUrl","remoteModuleMap","remoteContainerMap","initialSharingScopeCreated","setRemoteUrlResolver","_resolveRemoteUrl","setRemoteDefinitions","definitions","loadRemoteModule","remoteName","moduleName","remoteModuleKey","Module","loadRemoteContainer","fetchRemoteModule","url","resolve","reject","script","request","arg","e","remoteUrl","containerUrl","container","exports","dynamic_federation_1","require$$0","contributionReducer","remotes","acc","key","remote","sectionId","_a","cuiConfiguration","_b","configuration","_c","_d","_e","_f","_g","_h","_i","_j","experiences","_k","experience","EXTENSION_POINT_CUI_DEF","EXTENSION_POINT_CUI_VIEW","EXTENSION_POINT_CUI","cuiReducer","cuiDefinitions","id","def","view","cuiContribution","pluginReducer","contributionKey","basePluginType","EXTENSION_POINT","EXTENSION_POINT_DEF","EXTENSION_POINT_VIEW","contributions","contribution","EXTENSION_POINT_DASHBOARD_DETAIL_DEF","EXTENSION_POINT_DASHBOARD_DETAIL_VIEW","EXTENSION_POINT_DASHBOARD_DETAIL","dashboardDetailReducer","EXTENSION_POINT_DASHBOARD_PUMP_DETAIL_DEF","EXTENSION_POINT_DASHBOARD_PUMP_DETAIL_VIEW","EXTENSION_POINT_DASHBOARD_PUMP_DETAIL","dashboardPumpDetailReducer","EXTENSION_POINT_DASHBOARD","dashboardReducer","EXTENSION_POINT_DASHBOARD_SUMMARY_DEF","EXTENSION_POINT_DASHBOARD_SUMMARY_VIEW","EXTENSION_POINT_DASHBOARD_SUMMARY","dashboardSummaryReducer","EXTENSION_POINT_NAV_VIEW_DEF","EXTENSION_POINT_NAV_VIEW_VIEW","EXTENSION_POINT_NAV_VIEW","navViewReducer","EXTENSION_POINT_SETTINGS_DEF","EXTENSION_POINT_SETTINGS_VIEW","EXTENSION_POINT_SETTINGS_GROUP_DEF","EXTENSION_POINT_SETTINGS","settingsReducer","settingDefinition","settingsGroupDefinition","group","groupDef","defKey","settginsContribution","EXTENSION_POINT_SETUP_DEF","EXTENSION_POINT_SETUP_VIEW","EXTENSION_POINT_SETUP","setupReducer","setupDefinitions","setupContribution","EXTENSION_POINT_TROUBLE_ACTION_DEF","EXTENSION_POINT_TROUBLE_ACTION_VIEW","EXTENSION_POINT_TROUBLE_ACTION","troubleActionReducer","EXTENSION_POINT_UTIL_DEF","EXTENSION_POINT_UTIL_VIEW","EXTENSION_POINT_UTIL","utilReducer","utilDefinitions","utilContribution","initPluginManager","remotesOverride","extensionPoints","extensionPointId","extensions","loadExtensions","DEFAULT_CONTRIBUTIONS","getContributions","settingsDefinitions","settingsGroupDefinitions","troubleActionDefinitions","dashboardDetailDefinitions","dashboardSummaryDefinitions","dashboardPumpDetailDefinitions","dashboardDefinitions","navViewDefinitions","cuiExtensions","utilExtensions","setupExtensions","troubleActionExtensions","navViewExtensions","dashboardSummaryExtensions","dashboardDetailsExtensions","dashboardPumpDetailsExtensions","dashboardExtensions","settingsExtensions","InitPlugin","initPlugin","allExtensions","descriptorViews","viewExtensions","viewAcc","viewKey","viewDef","extension","getExtensions"],"mappings":";AACA,OAAO,eAAeA,GAAS,cAAc,EAAE,OAAO,GAAI,CAAE;AAC5DA,EAAA,mBAAuDA,EAAA,gDAAkC;AACzF,IAAIC,GACAC;AACJ,MAAMC,IAAkB,oBAAI,OACtBC,IAAqB,oBAAI;AAC/B,IAAIC,KAA6B;AACjC,SAASC,GAAqBC,GAAmB;AAC7C,EAAAL,IAAmBK;AACvB;AAC4BP,EAAA,uBAAGM;AAC/B,SAASE,GAAqBC,GAAa;AACvC,EAAAR,IAAuBQ;AAC3B;AAC4BT,EAAA,uBAAGQ;AAC/B,eAAeE,GAAiBC,GAAYC,GAAY;AACpD,QAAMC,IAAkB,GAAGF,CAAU,IAAIC,CAAU;AACnD,MAAIT,EAAgB,IAAIU,CAAe;AACnC,WAAOV,EAAgB,IAAIU,CAAe;AAM9C,QAAMC,KADU,OAHEV,EAAmB,IAAIO,CAAU,IAC7CP,EAAmB,IAAIO,CAAU,IACjC,MAAMI,GAAoBJ,CAAU,GACV,IAAIC,CAAU;AAE9C,SAAAT,EAAgB,IAAIU,GAAiBC,CAAM,GACpCA;AACX;AACwBd,EAAA,mBAAGU;AAC3B,MAAMM,KAAoB,CAACC,GAAKN,MACrB,IAAI,QAAQ,CAACO,GAASC,MAAW;AACpC,QAAMC,IAAS,SAAS,cAAc,QAAQ;AAC9C,EAAAA,EAAO,MAAMH,GACbG,EAAO,OAAO,mBACdA,EAAO,QAAQ,IACfA,EAAO,SAAS,MAAM;AAalB,IAAAF,EAZc;AAAA,MACV,KAAK,CAACG,MAAY,OAAOV,CAAU,EAAE,IAAIU,CAAO;AAAA,MAChD,MAAM,CAACC,MAAQ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CAAgB,IAAI4B,EAAQ5B,CAAgB,KAAK,CAAA,GACjD4B,EAAA5B,CAAgB,EAAE5D,CAAE,IAAI;AAAA,cAC9B,IAAAA;AAAA,cACA,MAAM;AAAA,cACN,WAAW0F,EAAQ;AAAA,cACnB,QAAQnH,EAAQE,CAAG,EAAE;AAAA,cACrB,WAAWA;AAAA,cACX,MAAMiH;AAAA,YAAA;AAAA,UACR,CACD,GACMF;AAAA,QACT;AAAA,QACAhH;AAAA,MAAA;AAGmB,aADQD,EAAQE,CAAG,EAAE,WACrB,QAAQ,CAACkH,MAAc;AAC1C,QAAAJ,EAAeI,EAAU,gBAAgB,IACvCJ,EAAeI,EAAU,gBAAgB,KAAK,IAChDJ,EAAeI,EAAU,gBAAgB,EAAEA,EAAU,EAAE,IAAI;AAAA,UACzD,IAAIA,EAAU;AAAA,UACd,MAAMA,EAAU;AAAA,UAChB,WAAWA,EAAU;AAAA,UACrB,QAAQpH,EAAQE,CAAG,EAAE;AAAA,UACrB,WAAWA;AAAA,UACX,MAAMkH;AAAA,QAAA;AAAA,MACR,CACD,GACMJ;AAAA,OACNL,CAA0C;AAEtC,kBAAA,aAAa,OAAO,cAAc,CAAA,GACzC,OAAO,WAAW,eAAeG,GAC1BA;AAAA,EACT;AACO,gBAAA,aAAa,OAAO,cAAc,CAAA,GAClC;AACT;AAEA,eAAsBO,GAAchC,GAA0B;AAC5D,QAAM,EAAE,eAAAgC,MAAkB,MAAMnC,GAAkB;AAClD,SAAOmC,EAAchC,CAAgB;AACvC;","x_google_ignoreList":[0,1]}
@@ -1,2 +0,0 @@
1
- "use strict";var J={},T={};Object.defineProperty(T,"__esModule",{value:!0});T.loadRemoteModule=T.setRemoteDefinitions=T.setRemoteUrlResolver=void 0;let U,z;const Y=new Map,q=new Map;let te=!1;function xe(i){z=i}T.setRemoteUrlResolver=xe;function Ce(i){U=i}T.setRemoteDefinitions=Ce;async function Ve(i,t){const e=`${i}:${t}`;if(Y.has(e))return Y.get(e);const s=(await(q.has(i)?q.get(i):await ke(i)).get(t))();return Y.set(e,s),s}T.loadRemoteModule=Ve;const Me=(i,t)=>new Promise((e,n)=>{const o=document.createElement("script");o.src=i,o.type="text/javascript",o.async=!0,o.onload=()=>{e({get:a=>window[t].get(a),init:a=>{try{window[t].init(a)}catch(r){console.error(`Failed to initialize remote ${t}`,r),n(r)}}})},o.onerror=()=>n(new Error(`Remote ${t} not found`)),document.head.appendChild(o)});async function ke(i){if(!z&&!U)throw new Error("Call setRemoteDefinitions or setRemoteUrlResolver to allow Dynamic Federation to find the remote apps correctly.");te||(te=!0,await __webpack_init_sharing__("default"));const t=U?U[i]:await z(i);let e=t;!t.endsWith(".mjs")&&!t.endsWith(".js")&&(e=`${t}${t.endsWith("/")?"":"/"}remoteEntry.js`);const n=await Me(e,i);return await n.init(__webpack_share_scopes__.default),q.set(i,n),n}(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.setRemoteUrlResolver=i.setRemoteDefinitions=i.loadRemoteModule=void 0;var t=T;Object.defineProperty(i,"loadRemoteModule",{enumerable:!0,get:function(){return t.loadRemoteModule}}),Object.defineProperty(i,"setRemoteDefinitions",{enumerable:!0,get:function(){return t.setRemoteDefinitions}}),Object.defineProperty(i,"setRemoteUrlResolver",{enumerable:!0,get:function(){return t.setRemoteUrlResolver}})})(J);const ne=i=>(t,e)=>{var h,R,w,y,A,g,X,v,S,l,c;t.cuiDefinitions=t.cuiDefinitions||{};const n=i[e].remote,o=e;(((h=i[e].contributes)==null?void 0:h.cui)||[]).forEach(d=>{t.cuiDefinitions[d.id]={...d,cuiDescriptor:o,remote:n,sectionId:o}}),(((R=i[e].contributes)==null?void 0:R.navViews)||[]).forEach(d=>{t.navViewDefinitions[d.id]={...d,remote:n,sectionId:o}}),(((w=i[e].contributes)==null?void 0:w.utilities)||[]).forEach(d=>{t.utilDefinitions[d.id]={...d,remote:n,sectionId:o}}),(((y=i[e].contributes)==null?void 0:y.setupStep)||[]).forEach(d=>{t.setupDefinitions[d.id]={...d,remote:n,sectionId:o}}),(((A=i[e].contributes)==null?void 0:A.troubleActions)||[]).forEach(d=>{t.troubleActionDefinitions[d.id]={...d,remote:n,sectionId:o}}),(((g=i[e].contributes)==null?void 0:g.settingsGroup)||[]).forEach(d=>{t.settingsGroupDefinitions[d.id]={...d,settings:[],remote:n,sectionId:o}}),(((X=i[e].contributes)==null?void 0:X.settings)||[]).forEach(d=>{t.settingsDefinitions[d.id]={...d,remote:n,sectionId:o}}),(((v=i[e].contributes)==null?void 0:v.dashboardSummary)||[]).forEach(d=>{t.dashboardDefinitions[d.dashboardKey]=t.dashboardDefinitions[d.dashboardKey]||{},t.dashboardDefinitions[d.dashboardKey].summary={...d,remote:n,sectionId:o},t.dashboardSummaryDefinitions[d.id]={...d,remote:n,sectionId:o}}),(((S=i[e].contributes)==null?void 0:S.dashboardDetail)||[]).forEach(d=>{t.dashboardDefinitions[d.dashboardKey]=t.dashboardDefinitions[d.dashboardKey]||{},t.dashboardDefinitions[d.dashboardKey].detail={...d,remote:n,sectionId:o},t.dashboardDetailDefinitions[d.id]={...d,remote:n,sectionId:o}}),(((l=i[e].contributes)==null?void 0:l.dashboardPumpDetail)||[]).forEach(d=>{t.dashboardDefinitions[d.dashboardKey]=t.dashboardDefinitions[d.dashboardKey]||{},t.dashboardDefinitions[d.dashboardKey].pumpDetail={...d,remote:n,sectionId:o},t.dashboardPumpDetailDefinitions[d.id]={...d,remote:n,sectionId:o}});const m=(c=i[e].contributes)==null?void 0:c.experiences;return Object.keys(m).forEach(d=>{const b=m[d];t.experiences[d]={...b,remote:n,sectionId:o}}),t},x="ddk.cui",C="ddk.cui.view",V="ddk.cui.settings.config",oe=(i,t)=>(e,n)=>{const o=n,s=t[n],a=i[s.experienceId]||{};e[x]=e[x]||{},e[x][o]={id:o,type:"cui.definition",data:s,remote:s.remote,sectionId:s.sectionId},a.id&&(e[C]=e[C]||{},e[C][o]={id:o,type:"cui.view",data:a,remote:s.remote,sectionId:s.sectionId}),e[V]=e[V]||{};const u={id:o,type:"cui",data:s,view:a,remote:s.remote,sectionId:s.sectionId};return e[V][o]=u,e},P=({contributionKey:i,basePluginType:t,keys:{EXTENSION_POINT:e,EXTENSION_POINT_DEF:n,EXTENSION_POINT_VIEW:o}})=>(s,a)=>(r,u)=>{const E=u,I=a[i][u],O=s[I.experienceId]||{};n&&(r[n]=r[n]||{},r[n][E]={id:E,type:`${t}.definition`,data:I,remote:I.remote,sectionId:I.sectionId}),O.id&&o&&(r[o]=r[o]||{},r[o][E]={id:E,type:`${t}.view`,data:O,remote:I.remote,sectionId:I.sectionId}),r[e]=r[e]||{};const p={id:E,type:`${t}`,data:I,view:O,remote:I.remote,sectionId:I.sectionId};return r[e][E]=p,r},se="ddk.dashboard.detail",de="ddk.dashboard.detail.view",re="ddk.ncui.dashboard.detail.config",ae=P({basePluginType:"dashboard.detail",contributionKey:"dashboardDetailDefinitions",keys:{EXTENSION_POINT:re,EXTENSION_POINT_DEF:se,EXTENSION_POINT_VIEW:de}}),ue="ddk.dashboard.pump.detail",Ee="ddk.dashboard.pump.detail.view",Ie="ddk.dashboard.pump.detail.config",_e=P({basePluginType:"dashboard.pump.detail",contributionKey:"dashboardPumpDetailDefinitions",keys:{EXTENSION_POINT:Ie,EXTENSION_POINT_DEF:ue,EXTENSION_POINT_VIEW:Ee}}),Ne="ddk.ncui.dashboard.config",ce=P({basePluginType:"dashboard",contributionKey:"dashboardDefinitions",keys:{EXTENSION_POINT:Ne}}),Oe="ddk.dashboard.summary",Te="ddk.dashboard.summary.view",De="ddk.ncui.dashboard.summary.config",le=P({basePluginType:"dashboard.summary",contributionKey:"dashboardSummaryDefinitions",keys:{EXTENSION_POINT:De,EXTENSION_POINT_DEF:Oe,EXTENSION_POINT_VIEW:Te}}),be="ddk.nav.view",fe="ddk.nav.view.view",Pe="ddk.ncui.nav.view.config",Se=P({basePluginType:"nav.view",contributionKey:"navViewDefinitions",keys:{EXTENSION_POINT:Pe,EXTENSION_POINT_DEF:be,EXTENSION_POINT_VIEW:fe}}),M="ddk.settings",k="ddk.settings.view",f="ddk.settings.group",W="ddk.ncui.settings.config",pe=(i,t,e)=>(n,o)=>{const s=e[o];return n[f]=n[f]||{},n[f][o]={id:o,type:"settings.group",data:e[o],remote:s.remote,sectionId:s.sectionId},Object.entries(t).filter(([,r])=>r.settingsGroup===o).map(([r])=>r).forEach(r=>{const u=r,E=t[r],D=i[E.experienceId]||{};n[f][o].data.settings=[...n[f][o].data.settings,u],n[M]=n[M]||{},n[M][u]={id:u,type:"settings.definition",data:E,remote:E.remote,sectionId:E.sectionId},D.id&&(n[k]=n[k]||{},n[k][u]={id:u,type:"settings.view",data:D,remote:E.remote,sectionId:E.sectionId}),n[W]=n[W]||{};const O={id:u,type:"settings",data:E,view:D,remote:E.remote,sectionId:E.sectionId};n[W][u]=O}),n},K="ddk.setup",B="ddk.setup.view",j="ddk.ncui.setup.config",me=(i,t)=>(e,n)=>{const o=n,s=t[n],a=i[s.experienceId]||{};e[K]=e[K]||{},e[K][o]={id:o,type:"setup.definition",data:s,remote:s.remote,sectionId:s.sectionId},a.id&&(e[B]=e[B]||{},e[B][o]={id:o,type:"setup.view",data:a,remote:s.remote,sectionId:s.sectionId}),e[j]=e[j]||{};const u={id:o,type:"setup",data:s,view:a,remote:s.remote,sectionId:s.sectionId};return e[j][o]=u,e},he="ddk.trouble.action",Re="ddk.trouble.action.view",we="ddk.ncui.trouble.action.config",ye=P({basePluginType:"trouble.action",contributionKey:"troubleActionDefinitions",keys:{EXTENSION_POINT:we,EXTENSION_POINT_DEF:he,EXTENSION_POINT_VIEW:Re}}),F="ddk.utilities",L="ddk.utilities.view",H="ddk.ncui.utils.config",Ae=(i,t)=>(e,n)=>{const o=n,s=t[n],a=i[s.experienceId]||{};e[F]=e[F]||{},e[F][o]={id:o,type:"utility.definition",data:s,remote:s.remote,sectionId:s.sectionId},a.id&&(e[L]=e[L]||{},e[L][o]={id:o,type:"utilities.view",data:a,remote:s.remote,sectionId:s.sectionId}),e[H]=e[H]||{};const u={id:o,type:"utility",data:s,view:a,remote:s.remote,sectionId:s.sectionId};return e[H][o]=u,e};async function ge(i){const t=i??window.KosPlugins.__dynamicRemotes;if(window.KosPlugins.extensions){const s=window.KosPlugins.extensions;return{extensionPoints:s,getExtensions:a=>s[a]||[],remotes:t,extensions:window.KosPlugins.__extensions}}const e=window.KosPlugins.__extensions??await ve(t);let n={};return e&&(n=Object.keys(e).reduce((s,a)=>{const r=a;return s[r]=s[r]||[],Object.keys(e[r]).forEach(u=>{s[r].push(e[a][u])}),s},n)),window.KosPlugins.extensions=n,{extensionPoints:n,getExtensions:s=>n[s]||[],remotes:t,extensions:e}}const ie={cuiDefinitions:{},utilDefinitions:{},setupDefinitions:{},settingsGroupDefinitions:{},settingsDefinitions:{},dashboardSummaryDefinitions:{},dashboardDetailDefinitions:{},dashboardPumpDetailDefinitions:{},dashboardDefinitions:{},navViewDefinitions:{},troubleActionDefinitions:{},experiences:{}};function Xe(i){return i?Object.keys(i).reduce(ne(i),ie):ie}async function ve(i){if(i){const t=Xe(i),{cuiDefinitions:e,utilDefinitions:n,setupDefinitions:o,settingsDefinitions:s,settingsGroupDefinitions:a,troubleActionDefinitions:r,dashboardDetailDefinitions:u,dashboardSummaryDefinitions:E,dashboardPumpDetailDefinitions:D,dashboardDefinitions:I,navViewDefinitions:O,experiences:N}=t,p=Object.keys(e).reduce(oe(N,e),{}),m=Object.keys(n).reduce(Ae(N,n),p),h=Object.keys(o).reduce(me(N,o),m),R=Object.keys(r).reduce(ye(N,t),h),w=Object.keys(O).reduce(Se(N,t),R),y=Object.keys(E).reduce(le(N,t),w),A=Object.keys(u).reduce(ae(N,t),y),g=Object.keys(D).reduce(_e(N,t),A),X=Object.keys(I).reduce(ce(N,t),g),v=Object.keys(a).reduce(pe(N,s,a),X);for(const l of Object.values(i))if(l.init){const c=await J.loadRemoteModule(l.remote,"./InitPlugin");if(c.default){const d=new c.default;d==null||d.register()}}const S=Object.keys(i).reduce((l,c)=>{var Q;const d=(Q=i[c].contributes)==null?void 0:Q.views,b=Object.keys(d).reduce((_,Z)=>{const Ue=d[Z],G=Z;return Ue.forEach($=>{const ee=$.id;_[G]=_[G]||{},_[G][ee]={id:ee,type:"view",component:$.component,remote:i[c].remote,sectionId:c,data:$}}),_},l);return i[c].extensions.forEach(_=>{b[_.extensionPointId]=b[_.extensionPointId]||{},b[_.extensionPointId][_.id]={id:_.id,type:_.type,component:_.component,remote:i[c].remote,sectionId:c,data:_}}),b},v);return window.KosPlugins=window.KosPlugins||{},window.KosPlugins.__extensions=S,S}return window.KosPlugins=window.KosPlugins||{},{}}async function We(i){const{getExtensions:t}=await ge();return t(i)}exports.EXTENSION_POINT_CUI=V;exports.EXTENSION_POINT_CUI_DEF=x;exports.EXTENSION_POINT_CUI_VIEW=C;exports.EXTENSION_POINT_DASHBOARD=Ne;exports.EXTENSION_POINT_DASHBOARD_DETAIL=re;exports.EXTENSION_POINT_DASHBOARD_DETAIL_DEF=se;exports.EXTENSION_POINT_DASHBOARD_DETAIL_VIEW=de;exports.EXTENSION_POINT_DASHBOARD_PUMP_DETAIL=Ie;exports.EXTENSION_POINT_DASHBOARD_PUMP_DETAIL_DEF=ue;exports.EXTENSION_POINT_DASHBOARD_PUMP_DETAIL_VIEW=Ee;exports.EXTENSION_POINT_DASHBOARD_SUMMARY=De;exports.EXTENSION_POINT_DASHBOARD_SUMMARY_DEF=Oe;exports.EXTENSION_POINT_DASHBOARD_SUMMARY_VIEW=Te;exports.EXTENSION_POINT_NAV_VIEW=Pe;exports.EXTENSION_POINT_NAV_VIEW_DEF=be;exports.EXTENSION_POINT_NAV_VIEW_VIEW=fe;exports.EXTENSION_POINT_SETTINGS=W;exports.EXTENSION_POINT_SETTINGS_DEF=M;exports.EXTENSION_POINT_SETTINGS_GROUP_DEF=f;exports.EXTENSION_POINT_SETTINGS_VIEW=k;exports.EXTENSION_POINT_SETUP=j;exports.EXTENSION_POINT_SETUP_DEF=K;exports.EXTENSION_POINT_SETUP_VIEW=B;exports.EXTENSION_POINT_TROUBLE_ACTION=we;exports.EXTENSION_POINT_TROUBLE_ACTION_DEF=he;exports.EXTENSION_POINT_TROUBLE_ACTION_VIEW=Re;exports.EXTENSION_POINT_UTIL=H;exports.EXTENSION_POINT_UTIL_DEF=F;exports.EXTENSION_POINT_UTIL_VIEW=L;exports.contributionReducer=ne;exports.cuiReducer=oe;exports.dashboardDetailReducer=ae;exports.dashboardPumpDetailReducer=_e;exports.dashboardReducer=ce;exports.dashboardSummaryReducer=le;exports.getContributions=Xe;exports.getExtensions=We;exports.initPluginManager=ge;exports.loadExtensions=ve;exports.mf=J;exports.navViewReducer=Se;exports.settingsReducer=pe;exports.setupReducer=me;exports.troubleActionReducer=ye;exports.utilReducer=Ae;
2
- //# sourceMappingURL=plugin-extension-manager-D9aw-mUM.cjs.map