@das-fed/web 6.4.0-dev.2 → 6.4.0-dev.4

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 (57) hide show
  1. package/esm-map.json +1 -2
  2. package/index--5iw3PcC.js +7970 -0
  3. package/index--5iw3PcC.js.gz +0 -0
  4. package/{packages/main-app-framework/index-Twj2RXRy.js → index-BSYJheVx.js} +1 -1
  5. package/index-BSYJheVx.js.gz +0 -0
  6. package/{index-DpLK467K.js → index-C5zNxpQk.js} +22 -22
  7. package/index-C5zNxpQk.js.gz +0 -0
  8. package/{packages/main-app-framework/index-CRT8yHn-.js → index-D8XgnluX.js} +1 -1
  9. package/index.js +1 -1
  10. package/package.json +6 -6
  11. package/packages/create-das-web-app/index.js +187 -192
  12. package/packages/create-das-web-app/index.js.gz +0 -0
  13. package/packages/layout/index.js +219 -224
  14. package/packages/layout/index.js.gz +0 -0
  15. package/packages/layout/style.css +1 -1
  16. package/packages/layout/style.css.gz +0 -0
  17. package/{index-CC5hN73H.js → packages/main-app-framework/index-BkJc1lDT.js} +1 -1
  18. package/packages/main-app-framework/{index-BqkWKMMe.js → index-C_X3k7z0.js} +22 -22
  19. package/packages/main-app-framework/index-C_X3k7z0.js.gz +0 -0
  20. package/packages/main-app-framework/index-D7pfTqeW.js +5917 -0
  21. package/packages/main-app-framework/index-D7pfTqeW.js.gz +0 -0
  22. package/{index-D4LFa1We.js → packages/main-app-framework/index-MhsbUVtD.js} +1 -1
  23. package/packages/main-app-framework/index-MhsbUVtD.js.gz +0 -0
  24. package/packages/main-app-framework/index.js +3 -2
  25. package/packages/main-app-framework/style.css +1 -1
  26. package/packages/main-app-framework/style.css.gz +0 -0
  27. package/packages/micro-frontend/index.js +209 -209
  28. package/packages/micro-frontend/index.js.gz +0 -0
  29. package/packages/theme/index.js +24 -24
  30. package/packages/theme/index.js.gz +0 -0
  31. package/style.css +1 -1
  32. package/style.css.gz +0 -0
  33. package/types/create-das-web-app/index.d.ts +1 -1
  34. package/types/i18n/index.d.ts +2 -2
  35. package/types/layout/store/index.d.ts +1 -1
  36. package/types/main-app-framework/business/alarm/use-alarm.d.ts +4 -4
  37. package/types/main-app-framework/business/video-link/index.d.ts +3 -3
  38. package/types/main-app-framework/components/person-set-dialog/index.d.ts +1 -1
  39. package/types/main-app-framework/index.d.ts +1 -1
  40. package/types/main-app-framework/init-config/get-nav-config/index.d.ts +2 -2
  41. package/types/main-app-framework/init-config/get-system-config/index.d.ts +2 -2
  42. package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +3 -3
  43. package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +2 -2
  44. package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +4 -4
  45. package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +3 -3
  46. package/types/main-app-framework/init-platform/index.d.ts +1 -1
  47. package/types/micro-frontend/index.d.ts +1 -1
  48. package/types/micro-frontend/store.d.ts +5 -5
  49. package/types/theme/index.d.ts +1 -1
  50. package/index-BqgahaIi.js +0 -11086
  51. package/index-BqgahaIi.js.gz +0 -0
  52. package/index-D4LFa1We.js.gz +0 -0
  53. package/index-DpLK467K.js.gz +0 -0
  54. package/packages/main-app-framework/index-2WWk8ggi.js +0 -9022
  55. package/packages/main-app-framework/index-2WWk8ggi.js.gz +0 -0
  56. package/packages/main-app-framework/index-BqkWKMMe.js.gz +0 -0
  57. package/packages/main-app-framework/index-Twj2RXRy.js.gz +0 -0
@@ -1,9 +1,9 @@
1
- import { effectScope as re, ref as H, markRaw as B, toRaw as A, watch as oe, unref as se, createApp as ie } from "vue";
2
- import { initTheme as ae } from "@das-fed/web/packages/theme/index";
3
- import { initI18n as ce } from "@das-fed/web/packages/i18n/index";
4
- import { DasWebLayout as le } from "@das-fed/web/packages/layout/index";
5
- import { createRouter as ue, createWebHistory as fe } from "vue-router";
6
- const de = {
1
+ import { effectScope as oe, ref as B, markRaw as J, toRaw as L, watch as se, unref as ie, createApp as ae } from "vue";
2
+ import { initTheme as ce } from "@das-fed/web/packages/theme/index";
3
+ import { initI18n as le } from "@das-fed/web/packages/i18n/index";
4
+ import { DasWebLayout as ue } from "@das-fed/web/packages/layout/index";
5
+ import { createRouter as fe, createWebHistory as de } from "vue-router";
6
+ const ge = {
7
7
  install: (e, t) => {
8
8
  var n;
9
9
  const r = (n = t == null ? void 0 : t.plugins) == null ? void 0 : n.glob;
@@ -12,23 +12,23 @@ const de = {
12
12
  });
13
13
  }
14
14
  };
15
- var ge = !1;
16
- function he() {
17
- return J().__VUE_DEVTOOLS_GLOBAL_HOOK__;
15
+ var he = !1;
16
+ function pe() {
17
+ return z().__VUE_DEVTOOLS_GLOBAL_HOOK__;
18
18
  }
19
- function J() {
19
+ function z() {
20
20
  return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
21
21
  }
22
- const pe = typeof Proxy == "function", me = "devtools-plugin:setup", _e = "plugin:settings:set";
23
- let v, R;
24
- function ye() {
22
+ const me = typeof Proxy == "function", _e = "devtools-plugin:setup", ye = "plugin:settings:set";
23
+ let v, P;
24
+ function be() {
25
25
  var e;
26
- return v !== void 0 || (typeof window < "u" && window.performance ? (v = !0, R = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (v = !0, R = globalThis.perf_hooks.performance) : v = !1), v;
26
+ return v !== void 0 || (typeof window < "u" && window.performance ? (v = !0, P = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (v = !0, P = globalThis.perf_hooks.performance) : v = !1), v;
27
27
  }
28
- function be() {
29
- return ye() ? R.now() : Date.now();
28
+ function Se() {
29
+ return be() ? P.now() : Date.now();
30
30
  }
31
- class Se {
31
+ class ve {
32
32
  constructor(t, r) {
33
33
  this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = r;
34
34
  const n = {};
@@ -56,9 +56,9 @@ class Se {
56
56
  s = i;
57
57
  },
58
58
  now() {
59
- return be();
59
+ return Se();
60
60
  }
61
- }, r && r.on(_e, (i, a) => {
61
+ }, r && r.on(ye, (i, a) => {
62
62
  i === this.plugin.id && this.fallbacks.setSettings(a);
63
63
  }), this.proxiedOn = new Proxy({}, {
64
64
  get: (i, a) => this.target ? this.target.on[a] : (...c) => {
@@ -90,12 +90,12 @@ class Se {
90
90
  r.resolve(await this.target[r.method](...r.args));
91
91
  }
92
92
  }
93
- function z(e, t) {
94
- const r = e, n = J(), o = he(), s = pe && r.enableEarlyProxy;
93
+ function W(e, t) {
94
+ const r = e, n = z(), o = pe(), s = me && r.enableEarlyProxy;
95
95
  if (o && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
96
- o.emit(me, e, t);
96
+ o.emit(_e, e, t);
97
97
  else {
98
- const i = s ? new Se(r, o) : null;
98
+ const i = s ? new ve(r, o) : null;
99
99
  (n.__VUE_DEVTOOLS_PLUGINS__ = n.__VUE_DEVTOOLS_PLUGINS__ || []).push({
100
100
  pluginDescriptor: r,
101
101
  setupFn: t,
@@ -104,30 +104,30 @@ function z(e, t) {
104
104
  }
105
105
  }
106
106
  /*!
107
- * pinia v2.2.0
108
- * (c) 2024 Eduardo San Martin Morote
107
+ * pinia v2.1.7
108
+ * (c) 2023 Eduardo San Martin Morote
109
109
  * @license MIT
110
110
  */
111
- const ve = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
111
+ const we = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
112
112
  /* istanbul ignore next */
113
113
  Symbol()
114
114
  );
115
- var S;
115
+ var y;
116
116
  (function(e) {
117
117
  e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
118
- })(S || (S = {}));
119
- const W = typeof window < "u", U = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
120
- function we(e, { autoBom: t = !1 } = {}) {
118
+ })(y || (y = {}));
119
+ const Q = typeof window < "u", U = (process.env.NODE_ENV !== "production" || !1) && process.env.NODE_ENV !== "test" && Q, C = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
120
+ function Oe(e, { autoBom: t = !1 } = {}) {
121
121
  return t && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
122
122
  }
123
- function L(e, t, r) {
123
+ function j(e, t, r) {
124
124
  const n = new XMLHttpRequest();
125
125
  n.open("GET", e), n.responseType = "blob", n.onload = function() {
126
- K(n.response, t, r);
126
+ q(n.response, t, r);
127
127
  }, n.onerror = function() {
128
128
  }, n.send();
129
129
  }
130
- function Q(e) {
130
+ function Y(e) {
131
131
  const t = new XMLHttpRequest();
132
132
  t.open("HEAD", e, !1);
133
133
  try {
@@ -136,7 +136,7 @@ function Q(e) {
136
136
  }
137
137
  return t.status >= 200 && t.status <= 299;
138
138
  }
139
- function I(e) {
139
+ function O(e) {
140
140
  try {
141
141
  e.dispatchEvent(new MouseEvent("click"));
142
142
  } catch {
@@ -144,43 +144,43 @@ function I(e) {
144
144
  r.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(r);
145
145
  }
146
146
  }
147
- const E = typeof navigator == "object" ? navigator : { userAgent: "" }, Y = /Macintosh/.test(E.userAgent) && /AppleWebKit/.test(E.userAgent) && !/Safari/.test(E.userAgent), K = W ? (
147
+ const I = typeof navigator == "object" ? navigator : { userAgent: "" }, K = /Macintosh/.test(I.userAgent) && /AppleWebKit/.test(I.userAgent) && !/Safari/.test(I.userAgent), q = Q ? (
148
148
  // Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
149
- typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !Y ? Oe : (
149
+ typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !K ? Ie : (
150
150
  // Use msSaveOrOpenBlob as a second approach
151
- "msSaveOrOpenBlob" in E ? Ie : (
151
+ "msSaveOrOpenBlob" in I ? Ee : (
152
152
  // Fallback to using FileReader and a popup
153
- Ee
153
+ Te
154
154
  )
155
155
  )
156
156
  ) : () => {
157
157
  };
158
- function Oe(e, t = "download", r) {
158
+ function Ie(e, t = "download", r) {
159
159
  const n = document.createElement("a");
160
- n.download = t, n.rel = "noopener", typeof e == "string" ? (n.href = e, n.origin !== location.origin ? Q(n.href) ? L(e, t, r) : (n.target = "_blank", I(n)) : I(n)) : (n.href = URL.createObjectURL(e), setTimeout(function() {
160
+ n.download = t, n.rel = "noopener", typeof e == "string" ? (n.href = e, n.origin !== location.origin ? Y(n.href) ? j(e, t, r) : (n.target = "_blank", O(n)) : O(n)) : (n.href = URL.createObjectURL(e), setTimeout(function() {
161
161
  URL.revokeObjectURL(n.href);
162
162
  }, 4e4), setTimeout(function() {
163
- I(n);
163
+ O(n);
164
164
  }, 0));
165
165
  }
166
- function Ie(e, t = "download", r) {
166
+ function Ee(e, t = "download", r) {
167
167
  if (typeof e == "string")
168
- if (Q(e))
169
- L(e, t, r);
168
+ if (Y(e))
169
+ j(e, t, r);
170
170
  else {
171
171
  const n = document.createElement("a");
172
172
  n.href = e, n.target = "_blank", setTimeout(function() {
173
- I(n);
173
+ O(n);
174
174
  });
175
175
  }
176
176
  else
177
- navigator.msSaveOrOpenBlob(we(e, r), t);
177
+ navigator.msSaveOrOpenBlob(Oe(e, r), t);
178
178
  }
179
- function Ee(e, t, r, n) {
179
+ function Te(e, t, r, n) {
180
180
  if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string")
181
- return L(e, t, r);
182
- const o = e.type === "application/octet-stream", s = /constructor/i.test(String(U.HTMLElement)) || "safari" in U, i = /CriOS\/[\d]+/.test(navigator.userAgent);
183
- if ((i || o && s || Y) && typeof FileReader < "u") {
181
+ return j(e, t, r);
182
+ const o = e.type === "application/octet-stream", s = /constructor/i.test(String(C.HTMLElement)) || "safari" in C, i = /CriOS\/[\d]+/.test(navigator.userAgent);
183
+ if ((i || o && s || K) && typeof FileReader < "u") {
184
184
  const a = new FileReader();
185
185
  a.onloadend = function() {
186
186
  let c = a.result;
@@ -199,73 +199,73 @@ function u(e, t) {
199
199
  const r = "🍍 " + e;
200
200
  typeof __VUE_DEVTOOLS_TOAST__ == "function" && __VUE_DEVTOOLS_TOAST__(r, t);
201
201
  }
202
- function j(e) {
202
+ function x(e) {
203
203
  return "_a" in e && "install" in e;
204
204
  }
205
- function q() {
205
+ function X() {
206
206
  if (!("clipboard" in navigator))
207
207
  return u("Your browser doesn't support the Clipboard API", "error"), !0;
208
208
  }
209
- function X(e) {
209
+ function Z(e) {
210
210
  return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (u('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
211
211
  }
212
- async function Te(e) {
213
- if (!q())
212
+ async function $e(e) {
213
+ if (!X())
214
214
  try {
215
215
  await navigator.clipboard.writeText(JSON.stringify(e.state.value)), u("Global state copied to clipboard.");
216
216
  } catch (t) {
217
- if (X(t))
217
+ if (Z(t))
218
218
  return;
219
219
  u("Failed to serialize the state. Check the console for more details.", "error");
220
220
  }
221
221
  }
222
- async function $e(e) {
223
- if (!q())
222
+ async function Ae(e) {
223
+ if (!X())
224
224
  try {
225
- Z(e, JSON.parse(await navigator.clipboard.readText())), u("Global state pasted from clipboard.");
225
+ ee(e, JSON.parse(await navigator.clipboard.readText())), u("Global state pasted from clipboard.");
226
226
  } catch (t) {
227
- if (X(t))
227
+ if (Z(t))
228
228
  return;
229
229
  u("Failed to deserialize the state from clipboard. Check the console for more details.", "error");
230
230
  }
231
231
  }
232
- async function Ae(e) {
232
+ async function Pe(e) {
233
233
  try {
234
- K(new Blob([JSON.stringify(e.state.value)], {
234
+ q(new Blob([JSON.stringify(e.state.value)], {
235
235
  type: "text/plain;charset=utf-8"
236
236
  }), "pinia-state.json");
237
237
  } catch {
238
238
  u("Failed to export the state as JSON. Check the console for more details.", "error");
239
239
  }
240
240
  }
241
- let m;
242
- function Pe() {
243
- m || (m = document.createElement("input"), m.type = "file", m.accept = ".json");
241
+ let p;
242
+ function ke() {
243
+ p || (p = document.createElement("input"), p.type = "file", p.accept = ".json");
244
244
  function e() {
245
245
  return new Promise((t, r) => {
246
- m.onchange = async () => {
247
- const n = m.files;
246
+ p.onchange = async () => {
247
+ const n = p.files;
248
248
  if (!n)
249
249
  return t(null);
250
250
  const o = n.item(0);
251
251
  return t(o ? { text: await o.text(), file: o } : null);
252
- }, m.oncancel = () => t(null), m.onerror = r, m.click();
252
+ }, p.oncancel = () => t(null), p.onerror = r, p.click();
253
253
  });
254
254
  }
255
255
  return e;
256
256
  }
257
- async function ke(e) {
257
+ async function Re(e) {
258
258
  try {
259
- const r = await Pe()();
259
+ const r = await ke()();
260
260
  if (!r)
261
261
  return;
262
262
  const { text: n, file: o } = r;
263
- Z(e, JSON.parse(n)), u(`Global state imported from "${o.name}".`);
263
+ ee(e, JSON.parse(n)), u(`Global state imported from "${o.name}".`);
264
264
  } catch {
265
265
  u("Failed to import the state from JSON. Check the console for more details.", "error");
266
266
  }
267
267
  }
268
- function Z(e, t) {
268
+ function ee(e, t) {
269
269
  for (const r in t) {
270
270
  const n = e.state.value[r];
271
271
  n ? Object.assign(n, t[r]) : e.state.value[r] = t[r];
@@ -278,18 +278,18 @@ function g(e) {
278
278
  }
279
279
  };
280
280
  }
281
- const ee = "🍍 Pinia (root)", T = "_root";
282
- function Re(e) {
283
- return j(e) ? {
284
- id: T,
285
- label: ee
281
+ const te = "🍍 Pinia (root)", k = "_root";
282
+ function Le(e) {
283
+ return x(e) ? {
284
+ id: k,
285
+ label: te
286
286
  } : {
287
287
  id: e.$id,
288
288
  label: e.$id
289
289
  };
290
290
  }
291
- function Ne(e) {
292
- if (j(e)) {
291
+ function je(e) {
292
+ if (x(e)) {
293
293
  const r = Array.from(e._s.keys()), n = e._s;
294
294
  return {
295
295
  state: r.map((s) => ({
@@ -324,7 +324,7 @@ function Ne(e) {
324
324
  value: e[r]
325
325
  }))), t;
326
326
  }
327
- function Le(e) {
327
+ function xe(e) {
328
328
  return e ? Array.isArray(e) ? e.reduce((t, r) => (t.keys.push(r.key), t.operations.push(r.type), t.oldValue[r.key] = r.oldValue, t.newValue[r.key] = r.newValue, t), {
329
329
  oldValue: {},
330
330
  keys: [],
@@ -337,32 +337,32 @@ function Le(e) {
337
337
  newValue: e.newValue
338
338
  } : {};
339
339
  }
340
- function je(e) {
340
+ function Ne(e) {
341
341
  switch (e) {
342
- case S.direct:
342
+ case y.direct:
343
343
  return "mutation";
344
- case S.patchFunction:
344
+ case y.patchFunction:
345
345
  return "$patch";
346
- case S.patchObject:
346
+ case y.patchObject:
347
347
  return "$patch";
348
348
  default:
349
349
  return "unknown";
350
350
  }
351
351
  }
352
352
  let w = !0;
353
- const $ = [], b = "pinia:mutations", f = "pinia", { assign: xe } = Object, P = (e) => "🍍 " + e;
354
- function De(e, t) {
355
- z({
353
+ const E = [], _ = "pinia:mutations", f = "pinia", { assign: De } = Object, T = (e) => "🍍 " + e;
354
+ function Ve(e, t) {
355
+ W({
356
356
  id: "dev.esm.pinia",
357
357
  label: "Pinia 🍍",
358
358
  logo: "https://pinia.vuejs.org/logo.svg",
359
359
  packageName: "pinia",
360
360
  homepage: "https://pinia.vuejs.org",
361
- componentStateTypes: $,
361
+ componentStateTypes: E,
362
362
  app: e
363
363
  }, (r) => {
364
364
  typeof r.now != "function" && u("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), r.addTimelineLayer({
365
- id: b,
365
+ id: _,
366
366
  label: "Pinia 🍍",
367
367
  color: 15064968
368
368
  }), r.addInspector({
@@ -374,28 +374,28 @@ function De(e, t) {
374
374
  {
375
375
  icon: "content_copy",
376
376
  action: () => {
377
- Te(t);
377
+ $e(t);
378
378
  },
379
379
  tooltip: "Serialize and copy the state"
380
380
  },
381
381
  {
382
382
  icon: "content_paste",
383
383
  action: async () => {
384
- await $e(t), r.sendInspectorTree(f), r.sendInspectorState(f);
384
+ await Ae(t), r.sendInspectorTree(f), r.sendInspectorState(f);
385
385
  },
386
386
  tooltip: "Replace the state with the content of your clipboard"
387
387
  },
388
388
  {
389
389
  icon: "save",
390
390
  action: () => {
391
- Ae(t);
391
+ Pe(t);
392
392
  },
393
393
  tooltip: "Save the state as a JSON file"
394
394
  },
395
395
  {
396
396
  icon: "folder_open",
397
397
  action: async () => {
398
- await ke(t), r.sendInspectorTree(f), r.sendInspectorState(f);
398
+ await Re(t), r.sendInspectorTree(f), r.sendInspectorState(f);
399
399
  },
400
400
  tooltip: "Import the state from a JSON file"
401
401
  }
@@ -416,12 +416,12 @@ function De(e, t) {
416
416
  const i = n.componentInstance.proxy._pStores;
417
417
  Object.values(i).forEach((a) => {
418
418
  n.instanceData.state.push({
419
- type: P(a.$id),
419
+ type: T(a.$id),
420
420
  key: "state",
421
421
  editable: !0,
422
422
  value: a._isOptionsAPI ? {
423
423
  _custom: {
424
- value: A(a.$state),
424
+ value: L(a.$state),
425
425
  actions: [
426
426
  {
427
427
  icon: "restore",
@@ -435,7 +435,7 @@ function De(e, t) {
435
435
  Object.keys(a.$state).reduce((c, l) => (c[l] = a.$state[l], c), {})
436
436
  )
437
437
  }), a._getters && a._getters.length && n.instanceData.state.push({
438
- type: P(a.$id),
438
+ type: T(a.$id),
439
439
  key: "getters",
440
440
  editable: !1,
441
441
  value: a._getters.reduce((c, l) => {
@@ -452,22 +452,22 @@ function De(e, t) {
452
452
  }), r.on.getInspectorTree((n) => {
453
453
  if (n.app === e && n.inspectorId === f) {
454
454
  let o = [t];
455
- o = o.concat(Array.from(t._s.values())), n.rootNodes = (n.filter ? o.filter((s) => "$id" in s ? s.$id.toLowerCase().includes(n.filter.toLowerCase()) : ee.toLowerCase().includes(n.filter.toLowerCase())) : o).map(Re);
455
+ o = o.concat(Array.from(t._s.values())), n.rootNodes = (n.filter ? o.filter((s) => "$id" in s ? s.$id.toLowerCase().includes(n.filter.toLowerCase()) : te.toLowerCase().includes(n.filter.toLowerCase())) : o).map(Le);
456
456
  }
457
- }), globalThis.$pinia = t, r.on.getInspectorState((n) => {
457
+ }), r.on.getInspectorState((n) => {
458
458
  if (n.app === e && n.inspectorId === f) {
459
- const o = n.nodeId === T ? t : t._s.get(n.nodeId);
459
+ const o = n.nodeId === k ? t : t._s.get(n.nodeId);
460
460
  if (!o)
461
461
  return;
462
- o && (n.nodeId !== T && (globalThis.$store = A(o)), n.state = Ne(o));
462
+ o && (n.state = je(o));
463
463
  }
464
464
  }), r.on.editInspectorState((n, o) => {
465
465
  if (n.app === e && n.inspectorId === f) {
466
- const s = n.nodeId === T ? t : t._s.get(n.nodeId);
466
+ const s = n.nodeId === k ? t : t._s.get(n.nodeId);
467
467
  if (!s)
468
468
  return u(`store "${n.nodeId}" not found`, "error");
469
469
  const { path: i } = n;
470
- j(s) ? i.unshift("state") : (i.length !== 1 || !s._customProperties.has(i[0]) || i[0] in s.$state) && i.unshift("$state"), w = !1, n.set(s, i, n.state.value), w = !0;
470
+ x(s) ? i.unshift("state") : (i.length !== 1 || !s._customProperties.has(i[0]) || i[0] in s.$state) && i.unshift("$state"), w = !1, n.set(s, i, n.state.value), w = !0;
471
471
  }
472
472
  }), r.on.editComponentState((n) => {
473
473
  if (n.type.startsWith("🍍")) {
@@ -484,14 +484,14 @@ Only state can be modified.`);
484
484
  });
485
485
  });
486
486
  }
487
- function Ve(e, t) {
488
- $.includes(P(t.$id)) || $.push(P(t.$id)), z({
487
+ function Ue(e, t) {
488
+ E.includes(T(t.$id)) || E.push(T(t.$id)), W({
489
489
  id: "dev.esm.pinia",
490
490
  label: "Pinia 🍍",
491
491
  logo: "https://pinia.vuejs.org/logo.svg",
492
492
  packageName: "pinia",
493
493
  homepage: "https://pinia.vuejs.org",
494
- componentStateTypes: $,
494
+ componentStateTypes: E,
495
495
  app: e,
496
496
  settings: {
497
497
  logStoreChanges: {
@@ -508,9 +508,9 @@ function Ve(e, t) {
508
508
  }, (r) => {
509
509
  const n = typeof r.now == "function" ? r.now.bind(r) : Date.now;
510
510
  t.$onAction(({ after: i, onError: a, name: c, args: l }) => {
511
- const d = te++;
511
+ const d = ne++;
512
512
  r.addTimelineEvent({
513
- layerId: b,
513
+ layerId: _,
514
514
  event: {
515
515
  time: n(),
516
516
  title: "🛫 " + c,
@@ -523,8 +523,8 @@ function Ve(e, t) {
523
523
  groupId: d
524
524
  }
525
525
  }), i((h) => {
526
- _ = void 0, r.addTimelineEvent({
527
- layerId: b,
526
+ m = void 0, r.addTimelineEvent({
527
+ layerId: _,
528
528
  event: {
529
529
  time: n(),
530
530
  title: "🛬 " + c,
@@ -539,8 +539,8 @@ function Ve(e, t) {
539
539
  }
540
540
  });
541
541
  }), a((h) => {
542
- _ = void 0, r.addTimelineEvent({
543
- layerId: b,
542
+ m = void 0, r.addTimelineEvent({
543
+ layerId: _,
544
544
  event: {
545
545
  time: n(),
546
546
  logType: "error",
@@ -557,9 +557,9 @@ function Ve(e, t) {
557
557
  });
558
558
  });
559
559
  }, !0), t._customProperties.forEach((i) => {
560
- oe(() => se(t[i]), (a, c) => {
560
+ se(() => ie(t[i]), (a, c) => {
561
561
  r.notifyComponentUpdate(), r.sendInspectorState(f), w && r.addTimelineEvent({
562
- layerId: b,
562
+ layerId: _,
563
563
  event: {
564
564
  time: n(),
565
565
  title: "Change",
@@ -568,7 +568,7 @@ function Ve(e, t) {
568
568
  newValue: a,
569
569
  oldValue: c
570
570
  },
571
- groupId: _
571
+ groupId: m
572
572
  }
573
573
  });
574
574
  }, { deep: !0 });
@@ -577,11 +577,11 @@ function Ve(e, t) {
577
577
  return;
578
578
  const l = {
579
579
  time: n(),
580
- title: je(a),
581
- data: xe({ store: g(t.$id) }, Le(i)),
582
- groupId: _
580
+ title: Ne(a),
581
+ data: De({ store: g(t.$id) }, xe(i)),
582
+ groupId: m
583
583
  };
584
- a === S.patchFunction ? l.subtitle = "⤵️" : a === S.patchObject ? l.subtitle = "🧩" : i && !Array.isArray(i) && (l.subtitle = i.type), i && (l.data["rawEvent(s)"] = {
584
+ a === y.patchFunction ? l.subtitle = "⤵️" : a === y.patchObject ? l.subtitle = "🧩" : i && !Array.isArray(i) && (l.subtitle = i.type), i && (l.data["rawEvent(s)"] = {
585
585
  _custom: {
586
586
  display: "DebuggerEvent",
587
587
  type: "object",
@@ -589,14 +589,14 @@ function Ve(e, t) {
589
589
  value: i
590
590
  }
591
591
  }), r.addTimelineEvent({
592
- layerId: b,
592
+ layerId: _,
593
593
  event: l
594
594
  });
595
595
  }, { detached: !0, flush: "sync" });
596
596
  const o = t._hotUpdate;
597
- t._hotUpdate = B((i) => {
597
+ t._hotUpdate = J((i) => {
598
598
  o(i), r.addTimelineEvent({
599
- layerId: b,
599
+ layerId: _,
600
600
  event: {
601
601
  time: n(),
602
602
  title: "🔥 " + t.$id,
@@ -614,49 +614,46 @@ function Ve(e, t) {
614
614
  }, r.notifyComponentUpdate(), r.sendInspectorTree(f), r.sendInspectorState(f), r.getSettings().logStoreChanges && u(`"${t.$id}" store installed 🆕`);
615
615
  });
616
616
  }
617
- let te = 0, _;
618
- function C(e, t, r) {
619
- const n = t.reduce((o, s) => (o[s] = A(e)[s], o), {});
617
+ let ne = 0, m;
618
+ function M(e, t, r) {
619
+ const n = t.reduce((o, s) => (o[s] = L(e)[s], o), {});
620
620
  for (const o in n)
621
621
  e[o] = function() {
622
- const s = te, i = r ? new Proxy(e, {
622
+ const s = ne, i = r ? new Proxy(e, {
623
623
  get(...c) {
624
- return _ = s, Reflect.get(...c);
624
+ return m = s, Reflect.get(...c);
625
625
  },
626
626
  set(...c) {
627
- return _ = s, Reflect.set(...c);
627
+ return m = s, Reflect.set(...c);
628
628
  }
629
629
  }) : e;
630
- _ = s;
630
+ m = s;
631
631
  const a = n[o].apply(i, arguments);
632
- return _ = void 0, a;
632
+ return m = void 0, a;
633
633
  };
634
634
  }
635
- function Ue({ app: e, store: t, options: r }) {
636
- if (!t.$id.startsWith("__hot:")) {
637
- if (t._isOptionsAPI = !!r.state, !t._p._testing) {
638
- C(t, Object.keys(r.actions), t._isOptionsAPI);
639
- const n = t._hotUpdate;
640
- A(t)._hotUpdate = function(o) {
641
- n.apply(this, arguments), C(t, Object.keys(o._hmrPayload.actions), !!t._isOptionsAPI);
642
- };
643
- }
644
- Ve(
645
- e,
646
- // FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
647
- t
648
- );
649
- }
650
- }
651
- function Ce() {
652
- const e = re(!0), t = e.run(() => H({}));
635
+ function Ce({ app: e, store: t, options: r }) {
636
+ if (t.$id.startsWith("__hot:"))
637
+ return;
638
+ t._isOptionsAPI = !!r.state, M(t, Object.keys(r.actions), t._isOptionsAPI);
639
+ const n = t._hotUpdate;
640
+ L(t)._hotUpdate = function(o) {
641
+ n.apply(this, arguments), M(t, Object.keys(o._hmrPayload.actions), !!t._isOptionsAPI);
642
+ }, Ue(
643
+ e,
644
+ // FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
645
+ t
646
+ );
647
+ }
648
+ function Me() {
649
+ const e = oe(!0), t = e.run(() => B({}));
653
650
  let r = [], n = [];
654
- const o = B({
651
+ const o = J({
655
652
  install(s) {
656
- o._a = s, s.provide(ve, o), s.config.globalProperties.$pinia = o, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && W && De(s, o), n.forEach((i) => r.push(i)), n = [];
653
+ o._a = s, s.provide(we, o), s.config.globalProperties.$pinia = o, U && Ve(s, o), n.forEach((i) => r.push(i)), n = [];
657
654
  },
658
655
  use(s) {
659
- return !this._a && !ge ? n.push(s) : r.push(s), this;
656
+ return !this._a && !he ? n.push(s) : r.push(s), this;
660
657
  },
661
658
  _p: r,
662
659
  // it's actually undefined here
@@ -666,35 +663,35 @@ function Ce() {
666
663
  _s: /* @__PURE__ */ new Map(),
667
664
  state: t
668
665
  });
669
- return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof Proxy < "u" && o.use(Ue), o;
666
+ return U && typeof Proxy < "u" && o.use(Ce), o;
670
667
  }
671
668
  process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
672
669
  /* istanbul ignore next */
673
670
  Symbol()
674
671
  );
675
- function Me(e) {
672
+ function Ge(e) {
676
673
  return typeof e == "object" && e !== null;
677
674
  }
678
- function M(e, t) {
679
- return e = Me(e) ? e : /* @__PURE__ */ Object.create(null), new Proxy(e, {
675
+ function G(e, t) {
676
+ return e = Ge(e) ? e : /* @__PURE__ */ Object.create(null), new Proxy(e, {
680
677
  get(r, n, o) {
681
678
  return n === "key" ? Reflect.get(r, n, o) : Reflect.get(r, n, o) || Reflect.get(t, n, o);
682
679
  }
683
680
  });
684
681
  }
685
- function Ge(e, t) {
682
+ function Fe(e, t) {
686
683
  return t.reduce((r, n) => r == null ? void 0 : r[n], e);
687
684
  }
688
- function Fe(e, t, r) {
685
+ function He(e, t, r) {
689
686
  return t.slice(0, -1).reduce((n, o) => /^(__proto__)$/.test(o) ? {} : n[o] = n[o] || {}, e)[t[t.length - 1]] = r, e;
690
687
  }
691
- function He(e, t) {
688
+ function Be(e, t) {
692
689
  return t.reduce((r, n) => {
693
690
  const o = n.split(".");
694
- return Fe(r, o, Ge(e, o));
691
+ return He(r, o, Fe(e, o));
695
692
  }, {});
696
693
  }
697
- function Be(e, t) {
694
+ function Je(e, t) {
698
695
  return (r) => {
699
696
  var n;
700
697
  try {
@@ -724,21 +721,21 @@ function Be(e, t) {
724
721
  }
725
722
  };
726
723
  }
727
- function G(e, { storage: t, serializer: r, key: n, debug: o }) {
724
+ function F(e, { storage: t, serializer: r, key: n, debug: o }) {
728
725
  try {
729
726
  const s = t == null ? void 0 : t.getItem(n);
730
727
  s && e.$patch(r == null ? void 0 : r.deserialize(s));
731
728
  } catch {
732
729
  }
733
730
  }
734
- function F(e, { storage: t, serializer: r, key: n, paths: o, debug: s }) {
731
+ function H(e, { storage: t, serializer: r, key: n, paths: o, debug: s }) {
735
732
  try {
736
- const i = Array.isArray(o) ? He(e, o) : e;
733
+ const i = Array.isArray(o) ? Be(e, o) : e;
737
734
  t.setItem(n, r.serialize(i));
738
735
  } catch {
739
736
  }
740
737
  }
741
- function Je(e = {}) {
738
+ function ze(e = {}) {
742
739
  return (t) => {
743
740
  const { auto: r = !1 } = e, {
744
741
  options: { persist: n = r },
@@ -752,21 +749,21 @@ function Je(e = {}) {
752
749
  a && Promise.resolve().then(() => a.$persist());
753
750
  return;
754
751
  }
755
- const i = (Array.isArray(n) ? n.map((a) => M(a, e)) : [M(n, e)]).map(Be(e, o)).filter(Boolean);
752
+ const i = (Array.isArray(n) ? n.map((a) => G(a, e)) : [G(n, e)]).map(Je(e, o)).filter(Boolean);
756
753
  o.$persist = () => {
757
754
  i.forEach((a) => {
758
- F(o.$state, a);
755
+ H(o.$state, a);
759
756
  });
760
757
  }, o.$hydrate = ({ runHooks: a = !0 } = {}) => {
761
758
  i.forEach((c) => {
762
759
  const { beforeRestore: l, afterRestore: d } = c;
763
- a && (l == null || l(t)), G(o, c), a && (d == null || d(t));
760
+ a && (l == null || l(t)), F(o, c), a && (d == null || d(t));
764
761
  });
765
762
  }, i.forEach((a) => {
766
763
  const { beforeRestore: c, afterRestore: l } = a;
767
- c == null || c(t), G(o, a), l == null || l(t), o.$subscribe(
764
+ c == null || c(t), F(o, a), l == null || l(t), o.$subscribe(
768
765
  (d, h) => {
769
- F(h, a);
766
+ H(h, a);
770
767
  },
771
768
  {
772
769
  detached: !0
@@ -775,43 +772,41 @@ function Je(e = {}) {
775
772
  });
776
773
  };
777
774
  }
778
- var ze = Je();
779
- const N = Ce();
780
- N.use(ze);
781
- const We = (e) => {
782
- var l, d, h, x, D;
775
+ var We = ze();
776
+ const R = Me();
777
+ R.use(We);
778
+ const Qe = (e) => {
779
+ var l, d, h, N, D;
783
780
  const t = ((l = e == null ? void 0 : e.router) == null ? void 0 : l.routerBase) ?? "/", r = ((d = e == null ? void 0 : e.router) == null ? void 0 : d.options) || {};
784
781
  let n = Object.assign(((h = e == null ? void 0 : e.router) == null ? void 0 : h.glob) || {});
785
- const o = Object.values(n).filter((y) => !!y).flat().sort((y, O) => (y.index ?? 0) - (O.index ?? 0)), s = [];
786
- (x = e == null ? void 0 : e.microApps) == null || x.map((y) => {
782
+ const o = Object.values(n).filter((b) => !!b).flat().sort((b, $) => (b.index ?? 0) - ($.index ?? 0)), s = [];
783
+ (N = e == null ? void 0 : e.microApps) == null || N.map((b) => {
787
784
  var V;
788
- const O = Object.values(((V = y.router) == null ? void 0 : V.glob) || {}).filter((p) => !!p).flat().sort((p, ne) => (p.index ?? 0) - (ne.index ?? 0));
785
+ const $ = Object.values(((V = b.router) == null ? void 0 : V.glob) || {}).filter((S) => !!S).flat().sort((S, re) => (S.index ?? 0) - (re.index ?? 0));
789
786
  s.push(
790
- ...O.map((p) => ({ ...p, path: `/${y.microAppName}${p.path}` }))
791
- ), s.push(
792
- ...O.map((p) => ({ path: p.path, redirect: `/${y.microAppName}${p.path}` }))
787
+ ...$.map((S) => ({ ...S, path: `/${b.microAppName}${S.path}` }))
793
788
  );
794
789
  });
795
790
  const i = ((D = e == null ? void 0 : e.router) == null ? void 0 : D.routers) || [], a = [
796
- ...k(o, e),
797
- ...k(i, e),
798
- ...k(s, e)
791
+ ...A(o, e),
792
+ ...A(i, e),
793
+ ...A(s, e)
799
794
  ];
800
- return { router: ue({ history: fe(t), routes: a, ...r }) };
801
- }, k = (e, t) => e.map((r) => {
795
+ return { router: fe({ history: de(t), routes: a, ...r }) };
796
+ }, A = (e, t) => e.map((r) => {
802
797
  const n = r.meta || {};
803
798
  return n.keepAlive = n.keepAlive ?? (t == null ? void 0 : t.keepAlive) ?? !0, { ...r, meta: n };
804
- }), Ze = (e) => {
799
+ }), et = (e) => {
805
800
  e || (e = {});
806
- const t = H(!0);
807
- Promise.all([ae(e), ce(e)]).then(() => {
801
+ const t = B(!0);
802
+ Promise.all([ce(e), le(e)]).then(() => {
808
803
  t.value = !1;
809
804
  });
810
- const { container: r, component: n, props: o } = (e == null ? void 0 : e.root) || {}, s = ie(n || le, o);
811
- s.use(de, e), s.use(N);
812
- const { router: i } = We(e);
813
- return s.use(i), s.mount(r || "#app"), { app: s, router: i, loading: t, store: N };
805
+ const { container: r, component: n, props: o } = (e == null ? void 0 : e.root) || {}, s = ae(n || ue, o);
806
+ s.use(ge, e), s.use(R);
807
+ const { router: i } = Qe(e);
808
+ return s.use(i), s.mount(r || "#app"), { app: s, router: i, loading: t, store: R };
814
809
  };
815
810
  export {
816
- Ze as createDasWebApp
811
+ et as createDasWebApp
817
812
  };