@das-fed/web 6.4.0-beta.3 → 6.4.0-beta.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 (41) hide show
  1. package/{packages/main-app-framework/index-BqkWKMMe.js → index-BTmb5knV.js} +2 -2
  2. package/index-BTmb5knV.js.gz +0 -0
  3. package/{index-Db0krENl.js → index-BtMdvBRd.js} +2397 -2401
  4. package/index-BtMdvBRd.js.gz +0 -0
  5. package/{index-BYvFEgmw.js → index-Cg852F1H.js} +1 -1
  6. package/index-Cg852F1H.js.gz +0 -0
  7. package/{index-J8zq0f8e.js → index-HMOiYzk2.js} +1 -1
  8. package/index.js +1 -1
  9. package/package.json +6 -6
  10. package/packages/create-das-web-app/index.js +158 -161
  11. package/packages/create-das-web-app/index.js.gz +0 -0
  12. package/{index-Cv_1J6p5.js → packages/main-app-framework/index-B3my4dCT.js} +2 -2
  13. package/packages/main-app-framework/index-B3my4dCT.js.gz +0 -0
  14. package/packages/main-app-framework/{index-2WWk8ggi.js → index-CO5sxLhm.js} +1985 -1986
  15. package/packages/main-app-framework/index-CO5sxLhm.js.gz +0 -0
  16. package/packages/main-app-framework/{index-Twj2RXRy.js → index-CfDJM4Ms.js} +1 -1
  17. package/packages/main-app-framework/index-CfDJM4Ms.js.gz +0 -0
  18. package/packages/main-app-framework/{index-CRT8yHn-.js → index-DD4hsBp1.js} +1 -1
  19. package/packages/main-app-framework/index.js +1 -1
  20. package/types/create-das-web-app/index.d.ts +1 -1
  21. package/types/i18n/index.d.ts +2 -2
  22. package/types/layout/store/index.d.ts +1 -1
  23. package/types/main-app-framework/business/alarm/use-alarm.d.ts +4 -4
  24. package/types/main-app-framework/business/video-link/index.d.ts +3 -3
  25. package/types/main-app-framework/components/person-set-dialog/index.d.ts +1 -1
  26. package/types/main-app-framework/index.d.ts +1 -1
  27. package/types/main-app-framework/init-config/get-nav-config/index.d.ts +2 -2
  28. package/types/main-app-framework/init-config/get-system-config/index.d.ts +2 -2
  29. package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +3 -3
  30. package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +2 -2
  31. package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +4 -4
  32. package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +3 -3
  33. package/types/main-app-framework/init-platform/index.d.ts +1 -1
  34. package/types/micro-frontend/store.d.ts +5 -5
  35. package/types/theme/index.d.ts +1 -1
  36. package/index-BYvFEgmw.js.gz +0 -0
  37. package/index-Cv_1J6p5.js.gz +0 -0
  38. package/index-Db0krENl.js.gz +0 -0
  39. package/packages/main-app-framework/index-2WWk8ggi.js.gz +0 -0
  40. package/packages/main-app-framework/index-BqkWKMMe.js.gz +0 -0
  41. 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 $, 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,11 +104,11 @@ 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
  );
@@ -116,18 +116,18 @@ var y;
116
116
  (function(e) {
117
117
  e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
118
118
  })(y || (y = {}));
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 } = {}) {
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 N(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 {
@@ -144,29 +144,29 @@ function O(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 I = typeof navigator == "object" ? navigator : { userAgent: "" }, Y = /Macintosh/.test(I.userAgent) && /AppleWebKit/.test(I.userAgent) && !/Safari/.test(I.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 I ? 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) ? N(e, t, r) : (n.target = "_blank", O(n)) : O(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
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
- N(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() {
@@ -174,13 +174,13 @@ function Ie(e, t = "download", r) {
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 N(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,39 +199,39 @@ 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 {
@@ -239,7 +239,7 @@ async function Ae(e) {
239
239
  }
240
240
  }
241
241
  let p;
242
- function Pe() {
242
+ function ke() {
243
243
  p || (p = document.createElement("input"), p.type = "file", p.accept = ".json");
244
244
  function e() {
245
245
  return new Promise((t, r) => {
@@ -254,18 +254,18 @@ function Pe() {
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)", E = "_root";
282
- function Re(e) {
283
- return j(e) ? {
284
- id: E,
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 Le(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 Le(e) {
324
324
  value: e[r]
325
325
  }))), t;
326
326
  }
327
- function Ne(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,7 +337,7 @@ function Ne(e) {
337
337
  newValue: e.newValue
338
338
  } : {};
339
339
  }
340
- function je(e) {
340
+ function Ne(e) {
341
341
  switch (e) {
342
342
  case y.direct:
343
343
  return "mutation";
@@ -350,15 +350,15 @@ function je(e) {
350
350
  }
351
351
  }
352
352
  let w = !0;
353
- const T = [], _ = "pinia:mutations", f = "pinia", { assign: xe } = Object, A = (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: T,
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({
@@ -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: A(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.$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: A(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 === E ? 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 !== E && (globalThis.$store = $(o)), n.state = Le(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 === E ? 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
- T.includes(A(t.$id)) || T.push(A(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: T,
494
+ componentStateTypes: E,
495
495
  app: e,
496
496
  settings: {
497
497
  logStoreChanges: {
@@ -508,7 +508,7 @@ 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
513
  layerId: _,
514
514
  event: {
@@ -557,7 +557,7 @@ 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
562
  layerId: _,
563
563
  event: {
@@ -577,8 +577,8 @@ 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) }, Ne(i)),
580
+ title: Ne(a),
581
+ data: De({ store: g(t.$id) }, xe(i)),
582
582
  groupId: m
583
583
  };
584
584
  a === y.patchFunction ? l.subtitle = "⤵️" : a === y.patchObject ? l.subtitle = "🧩" : i && !Array.isArray(i) && (l.subtitle = i.type), i && (l.data["rawEvent(s)"] = {
@@ -594,7 +594,7 @@ function Ve(e, t) {
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
599
  layerId: _,
600
600
  event: {
@@ -614,12 +614,12 @@ 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, m;
618
- function C(e, t, r) {
619
- const n = t.reduce((o, s) => (o[s] = $(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
624
  return m = s, Reflect.get(...c);
625
625
  },
@@ -632,31 +632,28 @@ function C(e, t, r) {
632
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
- $(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,41 +772,41 @@ function Je(e = {}) {
775
772
  });
776
773
  };
777
774
  }
778
- var ze = Je();
779
- const L = Ce();
780
- L.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((b) => !!b).flat().sort((b, P) => (b.index ?? 0) - (P.index ?? 0)), s = [];
786
- (x = e == null ? void 0 : e.microApps) == null || x.map((b) => {
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 P = Object.values(((V = b.router) == null ? void 0 : V.glob) || {}).filter((S) => !!S).flat().sort((S, ne) => (S.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
- ...P.map((S) => ({ ...S, path: `/${b.microAppName}${S.path}` }))
787
+ ...$.map((S) => ({ ...S, path: `/${b.microAppName}${S.path}` }))
791
788
  );
792
789
  });
793
790
  const i = ((D = e == null ? void 0 : e.router) == null ? void 0 : D.routers) || [], a = [
794
- ...k(o, e),
795
- ...k(i, e),
796
- ...k(s, e)
791
+ ...A(o, e),
792
+ ...A(i, e),
793
+ ...A(s, e)
797
794
  ];
798
- return { router: ue({ history: fe(t), routes: a, ...r }) };
799
- }, k = (e, t) => e.map((r) => {
795
+ return { router: fe({ history: de(t), routes: a, ...r }) };
796
+ }, A = (e, t) => e.map((r) => {
800
797
  const n = r.meta || {};
801
798
  return n.keepAlive = n.keepAlive ?? (t == null ? void 0 : t.keepAlive) ?? !0, { ...r, meta: n };
802
- }), Ze = (e) => {
799
+ }), et = (e) => {
803
800
  e || (e = {});
804
- const t = H(!0);
805
- Promise.all([ae(e), ce(e)]).then(() => {
801
+ const t = B(!0);
802
+ Promise.all([ce(e), le(e)]).then(() => {
806
803
  t.value = !1;
807
804
  });
808
- const { container: r, component: n, props: o } = (e == null ? void 0 : e.root) || {}, s = ie(n || le, o);
809
- s.use(de, e), s.use(L);
810
- const { router: i } = We(e);
811
- return s.use(i), s.mount(r || "#app"), { app: s, router: i, loading: t, store: L };
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 };
812
809
  };
813
810
  export {
814
- Ze as createDasWebApp
811
+ et as createDasWebApp
815
812
  };