@das-fed/web 6.4.0-test.1 → 6.4.0-test.10

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 (89) hide show
  1. package/esm-map.json +4 -1
  2. package/{packages/main-app-framework/index-CBrBve1k.js → index-BuTRpK6M.js} +1 -1
  3. package/index-C4VcBGCZ.js +82 -0
  4. package/index-C4VcBGCZ.js.gz +0 -0
  5. package/index-IEBouahL.js +13744 -0
  6. package/index-IEBouahL.js.gz +0 -0
  7. package/index.js +24 -21
  8. package/package.json +8 -6
  9. package/packages/create-das-web-app/index.js.gz +0 -0
  10. package/packages/i18n/index.js +169 -30
  11. package/packages/i18n/index.js.gz +0 -0
  12. package/packages/layout/index.js +423 -395
  13. package/packages/layout/index.js.gz +0 -0
  14. package/packages/layout/style.css +2 -2
  15. package/packages/layout/style.css.gz +0 -0
  16. package/packages/main-app-framework/index-BTLDhEQV.js +82 -0
  17. package/packages/main-app-framework/index-BTLDhEQV.js.gz +0 -0
  18. package/packages/main-app-framework/index-BsIJHNDG.js +12274 -0
  19. package/packages/main-app-framework/index-BsIJHNDG.js.gz +0 -0
  20. package/{index-D_CiHfGN.js → packages/main-app-framework/index-CrLW-KdV.js} +1 -1
  21. package/packages/main-app-framework/index.js +3 -2
  22. package/packages/main-app-framework/style.css +1 -1
  23. package/packages/main-app-framework/style.css.gz +0 -0
  24. package/packages/micro-frontend/index.js +319 -318
  25. package/packages/micro-frontend/index.js.gz +0 -0
  26. package/packages/micro-frontend/style.css +1 -1
  27. package/packages/style/style.css +1 -1
  28. package/packages/style/style.css.gz +0 -0
  29. package/packages/theme/index.js.gz +0 -0
  30. package/style.css +2 -2
  31. package/style.css.gz +0 -0
  32. package/types/create-das-web-app/index.d.ts +1 -1
  33. package/types/i18n/global.d.ts +573 -0
  34. package/types/i18n/index.d.ts +6 -4
  35. package/types/layout/index.d.ts +1 -1
  36. package/types/layout/store/index.d.ts +6 -1
  37. package/types/layout/store/menu.d.ts +2 -0
  38. package/types/layout/store/nav.d.ts +1 -0
  39. package/types/layout/store/tab.d.ts +1 -0
  40. package/types/main-app-framework/business/alarm/use-alarm.d.ts +4 -4
  41. package/types/main-app-framework/business/video-link/api.d.ts +2 -0
  42. package/types/main-app-framework/business/video-link/index.d.ts +3 -3
  43. package/types/main-app-framework/business/video-link/video-dialog/hooks/PlayerProvider.d.ts +3 -3
  44. package/types/main-app-framework/components/iframe-page/index.d.ts +3 -0
  45. package/types/main-app-framework/components/index.d.ts +1 -0
  46. package/types/main-app-framework/components/person-set-dialog/index.d.ts +1 -1
  47. package/types/main-app-framework/components/person-set-dialog/src/api.d.ts +2 -0
  48. package/types/main-app-framework/components/person-set-dialog/src/components/index.d.ts +2 -0
  49. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/api.d.ts +20 -0
  50. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-builtIn-dialog.d.ts +19 -0
  51. package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-notBuiltIn-dialog.d.ts +22 -0
  52. package/types/main-app-framework/constant/index.d.ts +1 -1
  53. package/types/main-app-framework/data-track/api.d.ts +2 -0
  54. package/types/main-app-framework/data-track/index.d.ts +2 -0
  55. package/types/main-app-framework/i18n/index.d.ts +518 -0
  56. package/types/main-app-framework/index.d.ts +2 -1
  57. package/types/main-app-framework/init-config/get-nav-config/api.d.ts +2 -0
  58. package/types/main-app-framework/init-config/get-nav-config/index.d.ts +4 -3
  59. package/types/main-app-framework/init-config/get-project-config/api.d.ts +3 -2
  60. package/types/main-app-framework/init-config/get-system-config/api.d.ts +2 -0
  61. package/types/main-app-framework/init-config/get-system-config/index.d.ts +4 -4
  62. package/types/main-app-framework/init-config/get-tenant-config/api.d.ts +1 -1
  63. package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +3 -3
  64. package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +2 -2
  65. package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +4 -4
  66. package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +3 -3
  67. package/types/main-app-framework/init-platform/index.d.ts +1 -1
  68. package/types/main-app-framework/utils/src/get-portal-url/crypto.d.ts +14 -0
  69. package/types/main-app-framework/utils/src/get-portal-url/encrypt.d.ts +42 -0
  70. package/types/main-app-framework/utils/src/get-portal-url/generate-url.d.ts +4 -0
  71. package/types/main-app-framework/utils/src/get-portal-url/handle-portal-params.d.ts +2 -0
  72. package/types/main-app-framework/utils/src/get-portal-url/index.d.ts +2 -0
  73. package/types/main-app-framework/utils/src/get-portal-url/type.d.ts +16 -0
  74. package/types/main-app-framework/utils/src/set-common-info.d.ts +4 -2
  75. package/types/main-app-framework/utils/src/tools.d.ts +5 -1
  76. package/types/micro-frontend/store.d.ts +5 -5
  77. package/types/theme/index.d.ts +1 -1
  78. package/index-CNuui6rH.js +0 -71
  79. package/index-CNuui6rH.js.gz +0 -0
  80. package/index-LTwaM8dS.js +0 -7079
  81. package/index-LTwaM8dS.js.gz +0 -0
  82. package/index-_67_4aoo.js +0 -68
  83. package/index-_67_4aoo.js.gz +0 -0
  84. package/packages/main-app-framework/index-Bnb7HNMb.js +0 -68
  85. package/packages/main-app-framework/index-Bnb7HNMb.js.gz +0 -0
  86. package/packages/main-app-framework/index-DF7V-TBl.js +0 -5770
  87. package/packages/main-app-framework/index-DF7V-TBl.js.gz +0 -0
  88. package/packages/main-app-framework/index-DOTMbc-l.js +0 -71
  89. package/packages/main-app-framework/index-DOTMbc-l.js.gz +0 -0
@@ -1,64 +1,58 @@
1
1
  import '@das-fed/web/packages/micro-frontend/style.css';
2
- import { ref as w, watch as M, reactive as O, getCurrentScope as oe, onScopeDispose as ce, unref as I, getCurrentInstance as le, onMounted as ue, nextTick as Z, defineComponent as x, computed as D, openBlock as E, createElementBlock as N, Fragment as $, renderList as de, withDirectives as pe, createBlock as ee, vShow as me, createCommentVNode as fe, mergeProps as ve, withCtx as C, renderSlot as V, createVNode as F, onActivated as Ae } from "vue";
3
- import { DasWebLayout as he, DasWebNav as we, DasWebMenu as ge, DasWebTabs as ye } from "@das-fed/web/packages/layout/index";
4
- const z = w("/das-micro-app"), f = w([]), k = w(!1), T = w([]), R = w(!0);
5
- let A = null, h = null, L = null;
2
+ import { ref as w, watch as M, reactive as C, getCurrentScope as ue, onScopeDispose as de, unref as I, getCurrentInstance as pe, onMounted as me, nextTick as ne, defineComponent as x, computed as D, openBlock as E, createElementBlock as N, Fragment as z, renderList as fe, withDirectives as ve, createBlock as se, vShow as he, createCommentVNode as Ae, mergeProps as we, withCtx as O, renderSlot as V, createVNode as T, onActivated as ge } from "vue";
3
+ import { DasWebLayout as ye, DasWebNav as Me, DasWebMenu as Le, DasWebTabs as _e } from "@das-fed/web/packages/layout/index";
4
+ const W = w("/das-micro-app"), f = w([]), k = w(!1), F = w([]), R = w(!0);
5
+ let h = null, A = null, _ = null;
6
6
  const b = (e, t, n) => {
7
- var c, a, i, s;
8
- const r = f.value.find((o) => o.name === e);
9
- if (r) {
10
- if (r.entry.startsWith("/") || r.entry.match(location.origin)) {
11
- (a = (c = r.dom) == null ? void 0 : c.contentWindow) == null || a.postMessage({ type: t, data: n });
12
- return;
13
- }
14
- (s = (i = r.dom) == null ? void 0 : i.contentWindow) == null || s.postMessage({ type: t, data: n }, r.entry);
15
- }
7
+ var c;
8
+ const { origin: s } = new URL(location.href);
9
+ (c = window.self) == null || c.postMessage({ type: t, data: n }, s);
16
10
  }, q = (e, t) => {
17
- var r;
11
+ var s;
18
12
  const { origin: n } = new URL(location.href);
19
- (r = window.top) == null || r.postMessage({ type: e, data: t }, n);
20
- }, Me = () => {
21
- h || (h || (h = {}), window.addEventListener(
13
+ (s = window.self) == null || s.postMessage({ type: e, data: t }, n);
14
+ }, be = () => {
15
+ A || (A || (A = {}), window.addEventListener(
22
16
  "message",
23
17
  (e) => {
24
18
  const { type: t, source: n } = e.data || {};
25
- if (n !== "react-devtools-content-script" && h[t])
26
- for (const r in h[t])
27
- h[t][r](e.data);
19
+ if (n !== "react-devtools-content-script" && A[t])
20
+ for (const s in A[t])
21
+ A[t][s](e.data);
28
22
  },
29
23
  !1
30
24
  ));
31
- }, _e = () => {
32
- A || (A || (A = {}), window.addEventListener(
25
+ }, Ie = () => {
26
+ h || (h || (h = {}), window.addEventListener(
33
27
  "message",
34
28
  (e) => {
35
29
  const { type: t } = e.data || {};
36
- if (A[t])
37
- for (const n in A[t])
38
- A[t][n](e.data);
30
+ if (h[t])
31
+ for (const n in h[t])
32
+ h[t][n](e.data);
39
33
  },
40
34
  !1
41
35
  ));
42
- }, Le = (e, t) => {
43
- _e();
36
+ }, Ee = (e, t) => {
37
+ Ie();
44
38
  const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8);
45
- return A[e] || (A[e] = {}), A[e][n] = t, {
39
+ return h[e] || (h[e] = {}), h[e][n] = t, {
46
40
  remove: () => {
47
- A[e] && A[e][n] && delete A[e][n];
41
+ h[e] && h[e][n] && delete h[e][n];
48
42
  }
49
43
  };
50
- }, be = (e, t) => {
51
- Me();
44
+ }, Se = (e, t) => {
45
+ be();
52
46
  const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8);
53
- return h[e] || (h[e] = {}), h[e][n] = t, {
47
+ return A[e] || (A[e] = {}), A[e][n] = t, {
54
48
  remove: () => {
55
- h[e] && h[e][n] && delete h[e][n];
49
+ A[e] && A[e][n] && delete A[e][n];
56
50
  }
57
51
  };
58
52
  }, Q = async (e) => {
59
53
  await Promise.all(
60
54
  f.value.filter((t) => t.loaded).map((t) => new Promise(async (n) => {
61
- t.dom || await new Promise((r) => M(() => t.dom, r)), setTimeout(() => {
55
+ t.dom || await new Promise((s) => M(() => t.dom, s)), setTimeout(() => {
62
56
  b(t.name, "sessionStorage", e), n(!0);
63
57
  }, 0);
64
58
  }))
@@ -66,15 +60,15 @@ const b = (e, t, n) => {
66
60
  }, d = {
67
61
  loadMicroApp: (e) => {
68
62
  k.value = !0;
69
- const t = f.value.find((i) => i.name === e), n = f.value.find((i) => i.actived), r = !!t, c = !(t != null && t.loaded), a = t == null ? void 0 : t.actived;
70
- if (!r) {
63
+ const t = f.value.find((o) => o.name === e), n = f.value.find((o) => o.actived), s = !!t, c = !(t != null && t.loaded), a = t == null ? void 0 : t.actived;
64
+ if (!s) {
71
65
  n && (n.actived = !1);
72
66
  return;
73
67
  }
74
68
  if (t.isFirstActived = !0, c) {
75
69
  t.src = t.entry;
76
- const i = f.value.find((s) => s.actived);
77
- i && (i.actived = !1), t.loaded = !0, t.actived = !0;
70
+ const o = f.value.find((r) => r.actived);
71
+ o && (o.actived = !1), t.loaded = !0, t.actived = !0;
78
72
  return;
79
73
  }
80
74
  if (!a) {
@@ -107,27 +101,27 @@ const b = (e, t, n) => {
107
101
  });
108
102
  },
109
103
  setMicroAppRoute: async (e, t, n) => {
110
- const r = f.value.find((s) => s.name === t);
111
- if (!r || !r.loaded || !r.actived || (r.dom || await new Promise((s) => M(() => r.dom, s)), !r.actived)) return r;
112
- const c = n.path || n, a = n.query || {}, i = n.params || {};
104
+ const s = f.value.find((r) => r.name === t);
105
+ if (!s || !s.loaded || !s.actived || (s.dom || await new Promise((r) => M(() => s.dom, r)), !s.actived)) return s;
106
+ const c = n.path || n, a = n.query || {}, o = n.params || {};
113
107
  return e.push({
114
108
  path: `/${t}${c}`,
115
109
  query: a,
116
110
  // @ts-ignore
117
- params: i
111
+ params: o
118
112
  }), setTimeout(() => {
119
- const { isFirstActived: s } = r;
113
+ const { isFirstActived: r } = s;
120
114
  b(t, "router", {
121
- cmd: s ? "replace" : "push",
115
+ cmd: r ? "replace" : "push",
122
116
  route: n,
123
117
  microAppName: t
124
- }), s && (r.isFirstActived = !1);
125
- }, 0), r;
118
+ }), r && (s.isFirstActived = !1);
119
+ }, 0), s;
126
120
  },
127
121
  sendMessageToMicroApp: b,
128
122
  sendMessageToMainApp: q,
129
- addEventListenerFromMainApp: Le,
130
- addEventListenerFromMicroApp: be,
123
+ addEventListenerFromMainApp: Ee,
124
+ addEventListenerFromMicroApp: Se,
131
125
  setMainAppOverlay: (e, t) => {
132
126
  q("bodyOverlay", { visible: e, style: t });
133
127
  },
@@ -146,39 +140,40 @@ const b = (e, t, n) => {
146
140
  },
147
141
  addMicroAppLifeCycleListener: (e, t) => {
148
142
  const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8);
149
- L || (L = {});
150
- const r = () => {
151
- L[n] && delete L[n];
143
+ _ || (_ = {});
144
+ const s = () => {
145
+ _[n] && delete _[n];
152
146
  };
153
- return L[n] = {
147
+ return _[n] = {
154
148
  type: e,
155
149
  handler: async (c) => await t(c),
156
- remove: r
157
- }, { remove: r };
150
+ remove: s
151
+ }, { remove: s };
158
152
  },
159
153
  triggerMicroAppLifeCycleListener: (e, t, n) => {
160
154
  var a;
161
- const r = L, { autoRemove: c = !1 } = n || {};
162
- for (const i in r) {
163
- const s = r[i];
164
- s.type === e && ((a = s == null ? void 0 : s.handler) == null || a.call(s, t).then(() => {
165
- c && s.remove();
155
+ const s = _, { autoRemove: c = !1 } = n || {};
156
+ for (const o in s) {
157
+ const r = s[o];
158
+ r.type === e && ((a = r == null ? void 0 : r.handler) == null || a.call(r, t).then(() => {
159
+ c && r.remove();
166
160
  }));
167
161
  }
168
162
  },
169
163
  reloadMicroAppRoute: async (e, t) => {
170
- const n = f.value.find((r) => r.name === e);
171
- n && (!n.loaded || !n.actived || (n.dom || await new Promise((r) => M(() => n.dom, r)), b(e, "route", { cmd: "reload", path: t })));
164
+ const n = f.value.find((s) => s.name === e);
165
+ n && (!n.loaded || !n.actived || (n.dom || await new Promise((s) => M(() => n.dom, s)), b(e, "route", { cmd: "reload", path: t })));
172
166
  },
173
167
  unloadMicroAppRoute: async (e, t) => {
174
- const n = f.value.find((r) => r.name === e);
175
- n && (!n.loaded || !n.actived || (n.dom || await new Promise((r) => M(() => n.dom, r)), b(e, "route", { cmd: "unload", path: t })));
168
+ const n = f.value.find((s) => s.name === e);
169
+ n && (!n.loaded || !n.actived || (n.dom || await new Promise((s) => M(() => n.dom, s)), b(e, "route", { cmd: "unload", path: t })));
176
170
  },
177
171
  setMainAppLayoutVisible: (e) => {
178
172
  q("layoutVisible", { visible: e });
179
173
  }
180
- }, u = O({
174
+ }, l = C({
181
175
  visible: !1,
176
+ theme: "default",
182
177
  logo: "",
183
178
  items: [],
184
179
  projects: [],
@@ -188,70 +183,69 @@ const b = (e, t, n) => {
188
183
  // activeItem: '',
189
184
  // activeProject: {},
190
185
  eventListeners: {}
191
- }), Ie = {
186
+ }), j = {
192
187
  show: () => {
193
- u.visible = !0;
188
+ l.visible = !0;
194
189
  },
195
190
  hide: () => {
196
- u.visible = !1;
191
+ l.visible = !1;
197
192
  },
198
193
  setLogo: (e) => {
199
- u.logo = e;
194
+ l.logo = e;
195
+ },
196
+ setTheme: (e) => {
197
+ l.theme = e;
200
198
  },
201
199
  setItems: (e) => {
202
- u.visible || (u.visible = !0), u.items = e;
200
+ l.visible || (l.visible = !0), l.items = e;
203
201
  },
204
- getItems: () => u.items,
202
+ getItems: () => l.items,
205
203
  removeItem: (e) => {
206
- const t = u.items.filter((n) => n.value !== e);
207
- u.items = t;
204
+ const t = l.items.filter((n) => n.value !== e);
205
+ l.items = t;
208
206
  },
209
207
  appendItem: (e) => {
210
- setTimeout(() => {
211
- u.visible || (u.visible = !0), !u.items.find((n) => n.value == e.value) && u.items.push(e);
212
- }, 200);
208
+ l.visible || (l.visible = !0), !l.items.find((n) => n.value == e.value) && l.items.push(e);
213
209
  },
214
210
  setActiveItem: (e) => {
215
- setTimeout(() => {
216
- u.activeItem = e;
217
- }, 200);
211
+ l.activeItem = e;
218
212
  },
219
213
  setConfig: (e) => {
220
- u.config = e;
214
+ l.config = e;
221
215
  },
222
216
  setProjects: (e) => {
223
- u.projects = e;
217
+ l.projects = e;
224
218
  },
225
219
  setProjectConfig: (e) => {
226
- u.projectConfig = e;
220
+ l.projectConfig = e;
227
221
  },
228
222
  setActiveProject: (e) => {
229
- u.activeProject = e;
223
+ l.activeProject = e;
230
224
  },
231
225
  setUserInfo: (e) => {
232
- u.userInfo = e;
226
+ l.userInfo = e;
233
227
  },
234
228
  setSearchConfig: (e) => {
235
- u.searchConfig = e;
229
+ l.searchConfig = e;
236
230
  },
237
231
  triggerEventListener: (e, t, n) => {
238
- var i;
239
- const r = u.eventListeners, { autoRemove: c = !1 } = n || {}, a = [];
240
- for (const s in r) {
241
- const o = r[s];
242
- o.type === e && a.push(
243
- (i = o == null ? void 0 : o.handler) == null ? void 0 : i.call(o, t).then(() => {
244
- c && o.remove();
232
+ var o;
233
+ const s = l.eventListeners, { autoRemove: c = !1 } = n || {}, a = [];
234
+ for (const r in s) {
235
+ const i = s[r];
236
+ i.type === e && a.push(
237
+ (o = i == null ? void 0 : i.handler) == null ? void 0 : o.call(i, t).then(() => {
238
+ c && i.remove();
245
239
  })
246
240
  );
247
241
  }
248
242
  return Promise.all(a).then(() => !0).catch(() => !1);
249
243
  },
250
244
  addEventListener: (e, t) => {
251
- const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), r = () => {
252
- u.eventListeners[n] && delete u.eventListeners[n];
245
+ const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), s = () => {
246
+ l.eventListeners[n] && delete l.eventListeners[n];
253
247
  };
254
- return u.eventListeners[n] = {
248
+ return l.eventListeners[n] = {
255
249
  type: e,
256
250
  handler: async (c) => {
257
251
  try {
@@ -260,47 +254,51 @@ const b = (e, t, n) => {
260
254
  throw a;
261
255
  }
262
256
  },
263
- remove: r
257
+ remove: s
264
258
  }, {
265
- remove: r
259
+ remove: s
266
260
  };
267
261
  }
268
- }, y = O({
262
+ }, g = C({
263
+ theme: "default",
269
264
  items: [],
265
+ collapse: !1,
270
266
  eventListeners: {}
271
- }), Ee = {
267
+ }), H = {
272
268
  setItems: (e) => {
273
- setTimeout(() => {
274
- y.items = e;
275
- }, 200);
269
+ g.items = e;
270
+ },
271
+ getItems: () => g.items,
272
+ setTheme: (e) => {
273
+ g.theme = e;
276
274
  },
277
- getItems: () => y.items,
278
275
  setActiveItem: (e) => {
279
- setTimeout(() => {
280
- y.activeItem = e;
281
- }, 200);
276
+ g.activeItem = e;
277
+ },
278
+ setCollapse: (e) => {
279
+ g.collapse = e;
282
280
  },
283
281
  setPopupClassName: (e) => {
284
- y.popupClassName = e;
282
+ g.popupClassName = e;
285
283
  },
286
284
  triggerEventListener: (e, t, n) => {
287
- var i;
288
- const r = y.eventListeners, { autoRemove: c = !1 } = n || {}, a = [];
289
- for (const s in r) {
290
- const o = r[s];
291
- o.type === e && a.push(
292
- (i = o == null ? void 0 : o.handler) == null ? void 0 : i.call(o, t).then(() => {
293
- c && o.remove();
285
+ var o;
286
+ const s = g.eventListeners, { autoRemove: c = !1 } = n || {}, a = [];
287
+ for (const r in s) {
288
+ const i = s[r];
289
+ i.type === e && a.push(
290
+ (o = i == null ? void 0 : i.handler) == null ? void 0 : o.call(i, t).then(() => {
291
+ c && i.remove();
294
292
  })
295
293
  );
296
294
  }
297
295
  return Promise.all(a).then(() => !0).catch(() => !1);
298
296
  },
299
297
  addEventListener: (e, t) => {
300
- const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), r = () => {
301
- y.eventListeners[n] && delete y.eventListeners[n];
298
+ const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), s = () => {
299
+ g.eventListeners[n] && delete g.eventListeners[n];
302
300
  };
303
- return y.eventListeners[n] = {
301
+ return g.eventListeners[n] = {
304
302
  type: e,
305
303
  handler: async (c) => {
306
304
  try {
@@ -309,49 +307,49 @@ const b = (e, t, n) => {
309
307
  throw a;
310
308
  }
311
309
  },
312
- remove: r
310
+ remove: s
313
311
  }, {
314
- remove: r
312
+ remove: s
315
313
  };
316
314
  }
317
- }, v = O({
315
+ }, v = C({
316
+ theme: "default",
318
317
  items: [],
319
318
  eventListeners: {}
320
- }), Se = {
319
+ }), U = {
321
320
  setItems: (e) => {
322
321
  v.items = e;
323
322
  },
324
323
  getItems: () => v.items,
324
+ setTheme: (e) => {
325
+ v.theme = e;
326
+ },
325
327
  removeItem: (e) => {
326
328
  const t = v.items.filter((n) => n.value !== e);
327
329
  v.items = t;
328
330
  },
329
331
  appendItem: (e) => {
330
- setTimeout(() => {
331
- const t = v.items.findIndex((n) => n.value == e.value);
332
- t !== -1 ? v.items.splice(t, 1, e) : v.items.push(e);
333
- }, 200);
332
+ const t = v.items.findIndex((n) => n.value == e.value);
333
+ t !== -1 ? v.items.splice(t, 1, e) : v.items.push(e);
334
334
  },
335
335
  setActiveItem: (e) => {
336
- setTimeout(() => {
337
- v.activeItem = e;
338
- }, 200);
336
+ v.activeItem = e;
339
337
  },
340
338
  triggerEventListener: (e, t, n) => {
341
- var i;
342
- const r = v.eventListeners, { autoRemove: c = !1 } = n || {}, a = [];
343
- for (const s in r) {
344
- const o = r[s];
345
- o.type === e && a.push(
346
- (i = o == null ? void 0 : o.handler) == null ? void 0 : i.call(o, t).then(() => {
347
- c && o.remove();
339
+ var o;
340
+ const s = v.eventListeners, { autoRemove: c = !1 } = n || {}, a = [];
341
+ for (const r in s) {
342
+ const i = s[r];
343
+ i.type === e && a.push(
344
+ (o = i == null ? void 0 : i.handler) == null ? void 0 : o.call(i, t).then(() => {
345
+ c && i.remove();
348
346
  })
349
347
  );
350
348
  }
351
349
  return Promise.all(a).then(() => !0).catch(() => !1);
352
350
  },
353
351
  addEventListener: (e, t) => {
354
- const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), r = () => {
352
+ const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), s = () => {
355
353
  v.eventListeners[n] && delete v.eventListeners[n];
356
354
  };
357
355
  return v.eventListeners[n] = {
@@ -363,29 +361,29 @@ const b = (e, t, n) => {
363
361
  throw a;
364
362
  }
365
363
  },
366
- remove: r
364
+ remove: s
367
365
  }, {
368
- remove: r
366
+ remove: s
369
367
  };
370
368
  }
371
- }, P = O({
369
+ }, P = C({
372
370
  eventListeners: {}
373
371
  }), Pe = {
374
372
  triggerEventListener: (e, t, n) => {
375
- var i;
376
- const r = P.eventListeners, { autoRemove: c = !1 } = n || {}, a = [];
377
- for (const s in r) {
378
- const o = r[s];
379
- o.type === e && a.push(
380
- (i = o == null ? void 0 : o.handler) == null ? void 0 : i.call(o, t).then(() => {
381
- c && o.remove();
373
+ var o;
374
+ const s = P.eventListeners, { autoRemove: c = !1 } = n || {}, a = [];
375
+ for (const r in s) {
376
+ const i = s[r];
377
+ i.type === e && a.push(
378
+ (o = i == null ? void 0 : i.handler) == null ? void 0 : o.call(i, t).then(() => {
379
+ c && i.remove();
382
380
  })
383
381
  );
384
382
  }
385
383
  return Promise.all(a).then(() => !0).catch(() => !1);
386
384
  },
387
385
  addEventListener: (e, t) => {
388
- const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), r = () => {
386
+ const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), s = () => {
389
387
  P.eventListeners[n] && delete P.eventListeners[n];
390
388
  };
391
389
  return P.eventListeners[n] = {
@@ -397,81 +395,84 @@ const b = (e, t, n) => {
397
395
  throw a;
398
396
  }
399
397
  },
400
- remove: r
398
+ remove: s
401
399
  }, {
402
- remove: r
400
+ remove: s
403
401
  };
404
402
  }
405
- }, W = O({
403
+ }, B = C({
406
404
  visible: !1,
407
405
  style: {}
408
- }), Oe = {
406
+ }), Ce = {
409
407
  set: (e, t) => {
410
- W.visible = e, t || (t = {}), t.transition || (t.transition = "all 0.3s"), t && (W.style = t);
408
+ B.visible = e, t || (t = {}), t.transition || (t.transition = "all 0.3s"), t && (B.style = t);
411
409
  }
412
- }, Ce = {
413
- nav: u,
414
- menu: y,
410
+ }, Oe = {
411
+ nav: l,
412
+ menu: g,
415
413
  tab: v,
416
- overlay: W,
414
+ overlay: B,
417
415
  iframeView: P,
418
416
  visible: w(!0)
419
- }, j = {
420
- nav: Ie,
421
- menu: Ee,
422
- tab: Se,
423
- overlay: Oe,
417
+ }, G = {
418
+ nav: j,
419
+ menu: H,
420
+ tab: U,
421
+ overlay: Ce,
424
422
  iframeView: Pe,
425
- setVisible: (e) => Ce.visible.value = e
426
- }, te = (e, t) => {
423
+ setVisible: (e) => Oe.visible.value = e,
424
+ setTheme: (e) => {
425
+ j.setTheme(e), H.setTheme(e), U.setTheme(e);
426
+ }
427
+ }, re = (e, t) => {
427
428
  const n = e.__vccOpts || e;
428
- for (const [r, c] of t)
429
- n[r] = c;
429
+ for (const [s, c] of t)
430
+ n[s] = c;
430
431
  return n;
431
432
  };
432
- var H;
433
- const B = typeof window < "u", Fe = (e) => typeof e == "string", Te = () => {
433
+ var J;
434
+ const $ = typeof window < "u", Te = (e) => typeof e == "string", Fe = () => {
434
435
  };
435
- B && ((H = window == null ? void 0 : window.navigator) != null && H.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
436
- function ne(e) {
436
+ $ && ((J = window == null ? void 0 : window.navigator) != null && J.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
437
+ function ae(e) {
437
438
  return typeof e == "function" ? e() : I(e);
438
439
  }
439
440
  function Re(e) {
440
441
  return e;
441
442
  }
442
- function re(e) {
443
- return oe() ? (ce(e), !0) : !1;
443
+ function ie(e) {
444
+ return ue() ? (de(e), !0) : !1;
444
445
  }
445
446
  function De(e, t = !0) {
446
- le() ? ue(e) : t ? e() : Z(e);
447
+ pe() ? me(e) : t ? e() : ne(e);
447
448
  }
448
- function se(e) {
449
+ function oe(e) {
449
450
  var t;
450
- const n = ne(e);
451
+ const n = ae(e);
451
452
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
452
453
  }
453
- const Ne = B ? window : void 0, ke = B ? window.document : void 0;
454
+ const Ne = $ ? window : void 0, ke = $ ? window.document : void 0;
454
455
  function xe(...e) {
455
- let t, n, r, c;
456
- if (Fe(e[0]) || Array.isArray(e[0]) ? ([n, r, c] = e, t = Ne) : [t, n, r, c] = e, !t)
457
- return Te;
458
- Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
459
- const a = [], i = () => {
460
- a.forEach((l) => l()), a.length = 0;
461
- }, s = (l, g, m, _) => (l.addEventListener(g, m, _), () => l.removeEventListener(g, m, _)), o = M(() => [se(t), ne(c)], ([l, g]) => {
462
- i(), l && a.push(...n.flatMap((m) => r.map((_) => s(l, m, _, g))));
456
+ let t, n, s, c;
457
+ if (Te(e[0]) || Array.isArray(e[0]) ? ([n, s, c] = e, t = Ne) : [t, n, s, c] = e, !t)
458
+ return Fe;
459
+ Array.isArray(n) || (n = [n]), Array.isArray(s) || (s = [s]);
460
+ const a = [], o = () => {
461
+ a.forEach((u) => u()), a.length = 0;
462
+ }, r = (u, y, m, L) => (u.addEventListener(y, m, L), () => u.removeEventListener(y, m, L)), i = M(() => [oe(t), ae(c)], ([u, y]) => {
463
+ o(), u && a.push(...n.flatMap((m) => s.map((L) => r(u, m, L, y))));
463
464
  }, { immediate: !0, flush: "post" }), p = () => {
464
- o(), i();
465
+ i(), o();
465
466
  };
466
- return re(p), p;
467
+ return ie(p), p;
467
468
  }
468
469
  function Ve(e, t = !1) {
469
- const n = w(), r = () => n.value = !!e();
470
- return r(), De(r, t), n;
470
+ const n = w(), s = () => n.value = !!e();
471
+ return s(), De(s, t), n;
471
472
  }
472
- const U = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, G = "__vueuse_ssr_handlers__";
473
- U[G] = U[G] || {};
474
- const J = [
473
+ const K = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, X = "__vueuse_ssr_handlers__";
474
+ K[X] = K[X] || {};
475
+ const Y = [
475
476
  [
476
477
  "requestFullscreen",
477
478
  "exitFullscreen",
@@ -514,53 +515,53 @@ const J = [
514
515
  ]
515
516
  ];
516
517
  function qe(e, t = {}) {
517
- const { document: n = ke, autoExit: r = !1 } = t, c = n == null ? void 0 : n.querySelector("html"), a = w(!1);
518
- let i = J[0];
519
- const s = Ve(() => {
518
+ const { document: n = ke, autoExit: s = !1 } = t, c = n == null ? void 0 : n.querySelector("html"), a = w(!1);
519
+ let o = Y[0];
520
+ const r = Ve(() => {
520
521
  if (n) {
521
- for (const S of J)
522
+ for (const S of Y)
522
523
  if (S[1] in n)
523
- return i = S, !0;
524
+ return o = S, !0;
524
525
  } else
525
526
  return !1;
526
527
  return !1;
527
- }), [o, p, l, , g] = i;
528
+ }), [i, p, u, , y] = o;
528
529
  async function m() {
529
- s.value && (n != null && n[l] && await n[p](), a.value = !1);
530
+ r.value && (n != null && n[u] && await n[p](), a.value = !1);
530
531
  }
531
- async function _() {
532
- if (!s.value)
532
+ async function L() {
533
+ if (!r.value)
533
534
  return;
534
535
  await m();
535
- const S = se(c);
536
- S && (await S[o](), a.value = !0);
536
+ const S = oe(c);
537
+ S && (await S[i](), a.value = !0);
537
538
  }
538
- async function ie() {
539
- a.value ? await m() : await _();
539
+ async function le() {
540
+ a.value ? await m() : await L();
540
541
  }
541
- return n && xe(n, g, () => {
542
- a.value = !!(n != null && n[l]);
543
- }, !1), r && re(m), {
544
- isSupported: s,
542
+ return n && xe(n, y, () => {
543
+ a.value = !!(n != null && n[u]);
544
+ }, !1), s && ie(m), {
545
+ isSupported: r,
545
546
  isFullscreen: a,
546
- enter: _,
547
+ enter: L,
547
548
  exit: m,
548
- toggle: ie
549
+ toggle: le
549
550
  };
550
551
  }
551
- var K;
552
+ var Z;
552
553
  (function(e) {
553
554
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
554
- })(K || (K = {}));
555
- var Qe = Object.defineProperty, X = Object.getOwnPropertySymbols, We = Object.prototype.hasOwnProperty, Be = Object.prototype.propertyIsEnumerable, Y = (e, t, n) => t in e ? Qe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, $e = (e, t) => {
555
+ })(Z || (Z = {}));
556
+ var Qe = Object.defineProperty, ee = Object.getOwnPropertySymbols, Be = Object.prototype.hasOwnProperty, $e = Object.prototype.propertyIsEnumerable, te = (e, t, n) => t in e ? Qe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ze = (e, t) => {
556
557
  for (var n in t || (t = {}))
557
- We.call(t, n) && Y(e, n, t[n]);
558
- if (X)
559
- for (var n of X(t))
560
- Be.call(t, n) && Y(e, n, t[n]);
558
+ Be.call(t, n) && te(e, n, t[n]);
559
+ if (ee)
560
+ for (var n of ee(t))
561
+ $e.call(t, n) && te(e, n, t[n]);
561
562
  return e;
562
563
  };
563
- const ze = {
564
+ const We = {
564
565
  easeInSine: [0.12, 0, 0.39, 0],
565
566
  easeOutSine: [0.61, 1, 0.88, 1],
566
567
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -586,9 +587,9 @@ const ze = {
586
587
  easeOutBack: [0.34, 1.56, 0.64, 1],
587
588
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
588
589
  };
589
- $e({
590
+ ze({
590
591
  linear: Re
591
- }, ze);
592
+ }, We);
592
593
  const je = ["src", "entry", "name"], He = /* @__PURE__ */ x({
593
594
  __name: "das-micro-app",
594
595
  props: {
@@ -598,12 +599,12 @@ const je = ["src", "entry", "name"], He = /* @__PURE__ */ x({
598
599
  },
599
600
  emits: ["onLoaded", "onActivated", "onDeactivated"],
600
601
  setup(e, { emit: t }) {
601
- const n = e, r = t, c = (s) => {
602
- r("onLoaded", s);
602
+ const n = e, s = t, c = (r) => {
603
+ s("onLoaded", r);
603
604
  }, a = D(() => n.actived);
604
- return M(() => a.value, (s) => {
605
- s && r("onActivated"), s || r("onDeactivated");
606
- }), (s, o) => (E(), N("iframe", {
605
+ return M(() => a.value, (r) => {
606
+ r && s("onActivated"), r || s("onDeactivated");
607
+ }), (r, i) => (E(), N("iframe", {
607
608
  class: "das-micro-app",
608
609
  src: n.src,
609
610
  entry: n.src,
@@ -612,39 +613,39 @@ const je = ["src", "entry", "name"], He = /* @__PURE__ */ x({
612
613
  onLoad: c
613
614
  }, null, 40, je));
614
615
  }
615
- }), Ue = /* @__PURE__ */ te(He, [["__scopeId", "data-v-2266bab0"]]), Ge = /* @__PURE__ */ x({
616
+ }), Ue = /* @__PURE__ */ re(He, [["__scopeId", "data-v-8ae871f6"]]), Ge = /* @__PURE__ */ x({
616
617
  __name: "das-micro-apps",
617
618
  setup(e) {
618
- const t = w(null), n = async (a, i) => {
619
- const s = f.value.find((m) => m.name === i);
620
- if (!s) return;
621
- s.dom = a.target, await Z(), await new Promise((m) => setTimeout(m, 50));
622
- const o = () => {
619
+ const t = w(null), n = async (a, o) => {
620
+ const r = f.value.find((m) => m.name === o);
621
+ if (!r) return;
622
+ r.dom = a.target, await ne(), await new Promise((m) => setTimeout(m, 50));
623
+ const i = () => {
623
624
  const m = t.value.getBoundingClientRect() || {};
624
625
  return m.width = t.value.clientWidth, m.height = t.value.clientHeight, m;
625
626
  };
626
- d.sendMessageToMicroApp(i, "onLoaded", {
627
+ d.sendMessageToMicroApp(o, "onLoaded", {
627
628
  href: location.href,
628
- microAppContainerRect: o(),
629
- entry: s.entry,
630
- name: s.name
629
+ microAppContainerRect: i(),
630
+ entry: r.entry,
631
+ name: r.name
631
632
  });
632
- const { dom: p, ...l } = s;
633
- d.triggerMicroAppLifeCycleListener("onLoaded", l), new ResizeObserver(() => {
634
- d.sendMessageToMicroApp(i, "resize", o());
635
- }).observe(t.value), d.sendMessageToMicroApp(i, "setProxyMessageStatus", { visible: !0, parentHref: location.href }), d.sendMessageToMicroApp(i, "setProxSsoStatus", { visible: !0, parentHref: location.href });
636
- }, r = (a, i) => {
637
- const s = f.value.find((l) => l.name === i);
638
- if (!s) return;
639
- const { dom: o, ...p } = s;
640
- d.sendMessageToMicroApp(i, "onActivated"), d.triggerMicroAppLifeCycleListener("onActivated", p);
641
- }, c = (a, i) => {
642
- const s = f.value.find((l) => l.name === i);
643
- if (!s) return;
644
- const { dom: o, ...p } = s;
645
- d.sendMessageToMicroApp(i, "onDeactivated"), d.triggerMicroAppLifeCycleListener("onDeactivated", p);
633
+ const { dom: p, ...u } = r;
634
+ d.triggerMicroAppLifeCycleListener("onLoaded", u), new ResizeObserver(() => {
635
+ d.sendMessageToMicroApp(o, "resize", i());
636
+ }).observe(t.value), d.sendMessageToMicroApp(o, "setProxyMessageStatus", { visible: !0, parentHref: location.href }), d.sendMessageToMicroApp(o, "setProxSsoStatus", { visible: !0, parentHref: location.href });
637
+ }, s = (a, o) => {
638
+ const r = f.value.find((u) => u.name === o);
639
+ if (!r) return;
640
+ const { dom: i, ...p } = r;
641
+ d.sendMessageToMicroApp(o, "onActivated"), d.triggerMicroAppLifeCycleListener("onActivated", p);
642
+ }, c = (a, o) => {
643
+ const r = f.value.find((u) => u.name === o);
644
+ if (!r) return;
645
+ const { dom: i, ...p } = r;
646
+ d.sendMessageToMicroApp(o, "onDeactivated"), d.triggerMicroAppLifeCycleListener("onDeactivated", p);
646
647
  };
647
- return (a, i) => (E(), N(
648
+ return (a, o) => (E(), N(
648
649
  "div",
649
650
  {
650
651
  ref_key: "containerRef",
@@ -653,23 +654,23 @@ const je = ["src", "entry", "name"], He = /* @__PURE__ */ x({
653
654
  },
654
655
  [
655
656
  (E(!0), N(
656
- $,
657
+ z,
657
658
  null,
658
- de(I(f), (s) => (E(), N(
659
- $,
659
+ fe(I(f), (r) => (E(), N(
660
+ z,
660
661
  null,
661
662
  [
662
- s.loaded ? pe((E(), ee(Ue, {
663
+ r.loaded ? ve((E(), se(Ue, {
663
664
  key: 0,
664
- src: s.src || "",
665
- name: s.name,
666
- actived: s.actived,
667
- onOnLoaded: (o) => n(o, s.name),
668
- onOnActivated: (o) => r(o, s.name),
669
- onOnDeactivated: (o) => c(o, s.name)
665
+ src: r.src || "",
666
+ name: r.name,
667
+ actived: r.actived,
668
+ onOnLoaded: (i) => n(i, r.name),
669
+ onOnActivated: (i) => s(i, r.name),
670
+ onOnDeactivated: (i) => c(i, r.name)
670
671
  }, null, 8, ["src", "name", "actived", "onOnLoaded", "onOnActivated", "onOnDeactivated"])), [
671
- [me, s.actived]
672
- ]) : fe("v-if", !0)
672
+ [he, r.actived]
673
+ ]) : Ae("v-if", !0)
673
674
  ],
674
675
  64
675
676
  /* STABLE_FRAGMENT */
@@ -682,7 +683,7 @@ const je = ["src", "entry", "name"], He = /* @__PURE__ */ x({
682
683
  /* NEED_PATCH */
683
684
  ));
684
685
  }
685
- }), Je = /* @__PURE__ */ te(Ge, [["__scopeId", "data-v-2e3798bc"]]), Ze = /* @__PURE__ */ x({
686
+ }), Je = /* @__PURE__ */ re(Ge, [["__scopeId", "data-v-3abdb1e9"]]), Ze = /* @__PURE__ */ x({
686
687
  __name: "das-main-app-layout",
687
688
  props: {
688
689
  transitionConfig: { default: () => {
@@ -696,40 +697,40 @@ const je = ["src", "entry", "name"], He = /* @__PURE__ */ x({
696
697
  } }
697
698
  },
698
699
  setup(e) {
699
- const t = e, n = D(() => !k.value), r = D(() => ({
700
+ const t = e, n = D(() => !k.value), s = D(() => ({
700
701
  "enter-active-class": "animate__animated animate__fadeInLeft",
701
702
  ...t.transitionConfig
702
703
  })), c = D(() => ({ showLayout: t.showLayout, showAside: t.showAside, showTabs: t.showTabs }));
703
- return (a, i) => (E(), ee(I(he), ve({
704
- "transition-config": r.value,
704
+ return (a, o) => (E(), se(I(ye), we({
705
+ "transition-config": s.value,
705
706
  "router-view-visible": n.value
706
707
  }, c.value), {
707
- header: C(() => [
708
+ header: O(() => [
708
709
  V(a.$slots, "header", {}, () => [
709
- F(I(we))
710
+ T(I(Me))
710
711
  ])
711
712
  ]),
712
- aside: C(() => [
713
+ aside: O(() => [
713
714
  V(a.$slots, "aside", {}, () => [
714
- F(I(ge), { menuAttr: a.menuAttr }, null, 8, ["menuAttr"])
715
+ T(I(Le), { menuAttr: a.menuAttr }, null, 8, ["menuAttr"])
715
716
  ])
716
717
  ]),
717
- tab: C(() => [
718
+ tab: O(() => [
718
719
  V(a.$slots, "tab", {}, () => [
719
- F(I(ye), { tabsAttr: a.tabsAttr }, null, 8, ["tabsAttr"])
720
+ T(I(_e), { tabsAttr: a.tabsAttr }, null, 8, ["tabsAttr"])
720
721
  ])
721
722
  ]),
722
- default: C(() => [
723
- F(Je)
723
+ default: O(() => [
724
+ T(Je)
724
725
  ]),
725
726
  _: 3
726
727
  /* FORWARDED */
727
728
  }, 16, ["transition-config", "router-view-visible"]));
728
729
  }
729
- }), ae = /* @__PURE__ */ x({
730
+ }), ce = /* @__PURE__ */ x({
730
731
  __name: "das-micro-app-ghost",
731
732
  setup(e) {
732
- return Ae(() => {
733
+ return ge(() => {
733
734
  setTimeout(() => {
734
735
  document.documentElement.checkVisibility() && history.back();
735
736
  }, 300);
@@ -737,28 +738,28 @@ const je = ["src", "entry", "name"], He = /* @__PURE__ */ x({
737
738
  }
738
739
  }), Ke = (e) => ["http://", "https://", "ws://", "wss://", "/"].find((n) => e.startsWith(n)) ? e : `/${e}`, et = (e, t) => {
739
740
  if (!(e != null && e.microApps) || !Array.isArray(e.microApps)) return;
740
- window.__IN_DAS_MAIN_APP = !0, e != null && e.microAppRouterPrefix && (z.value = e.microAppRouterPrefix), f.value = (e.microApps || []).filter((c) => !!c.name).map((c) => ({ ...c, entry: Ke(c.entry || c.name) })), t == null || t.addRoute({
741
+ window.__IN_DAS_MAIN_APP = !0, e != null && e.microAppRouterPrefix && (W.value = e.microAppRouterPrefix), f.value = (e.microApps || []).filter((c) => !!c.name).map((c) => ({ ...c, entry: Ke(c.entry || c.name) })), t == null || t.addRoute({
741
742
  name: "das-micro-app",
742
- path: `${z.value}/:pathMatch(.*)*`,
743
- component: ae,
743
+ path: `${W.value}/:pathMatch(.*)*`,
744
+ component: ce,
744
745
  meta: { isMicroApp: !0, keepAlive: !0 }
745
746
  }), d.addEventListenerFromMicroApp("bodyOverlay", (c) => {
746
- const { visible: a, style: i } = c.data;
747
- j.overlay.set(a, i);
747
+ const { visible: a, style: o } = c.data;
748
+ G.overlay.set(a, o);
748
749
  }), d.addEventListenerFromMicroApp("layoutVisible", (c) => {
749
750
  const { visible: a } = c.data;
750
- j.setVisible(a);
751
+ G.setVisible(a);
751
752
  }), d.addEventListenerFromMicroApp("route", (c) => {
752
- const { name: a, cmd: i, path: s } = c.data;
753
- i === "reload" && d.reloadMicroAppRoute(a, s), i === "unload" && d.unloadMicroAppRoute(a, s);
753
+ const { name: a, cmd: o, path: r } = c.data;
754
+ o === "reload" && d.reloadMicroAppRoute(a, r), o === "unload" && d.unloadMicroAppRoute(a, r);
754
755
  });
755
- const { enter: n, exit: r } = qe();
756
+ const { enter: n, exit: s } = qe();
756
757
  d.addEventListenerFromMicroApp("fullscreen", (c) => {
757
758
  const a = c.data;
758
- a && n(), a || r();
759
+ a && n(), a || s();
759
760
  }), d.addEventListenerFromMicroApp("location", (c) => {
760
- const { cmd: a, isAutoCloseApp: i } = c.data || {};
761
- a === "reload" && (i !== void 0 && (window.__isAutoCloseApp = i), location.reload());
761
+ const { cmd: a, isAutoCloseApp: o } = c.data || {};
762
+ a === "reload" && (o !== void 0 && (window.__isAutoCloseApp = o), location.reload());
762
763
  });
763
764
  }, tt = (e, t) => {
764
765
  if (!(e != null && e.microAppName)) return;
@@ -767,62 +768,62 @@ const je = ["src", "entry", "name"], He = /* @__PURE__ */ x({
767
768
  t == null || t.addRoute({
768
769
  name: n,
769
770
  path: `/${n}/:pathMatch(.*)*`,
770
- component: ae,
771
+ component: ce,
771
772
  meta: { isMicroApp: !0, keepAlive: !0 }
772
773
  });
773
- const r = w(!1), c = w(!1), a = w("");
774
+ const s = w(!1), c = w(!1), a = w("");
774
775
  M(
775
776
  () => t.currentRoute.value,
776
- (i) => {
777
- if (r.value) {
778
- r.value = !1;
777
+ (o) => {
778
+ if (s.value) {
779
+ s.value = !1;
779
780
  return;
780
781
  }
781
782
  if (c.value) {
782
783
  c.value = !1;
783
784
  return;
784
785
  }
785
- const { path: s, query: o, params: p, meta: l } = i;
786
- if (a.value.includes(i.path)) {
786
+ const { path: r, query: i, params: p, meta: u } = o;
787
+ if (a.value.includes(o.path)) {
787
788
  a.value = "";
788
789
  return;
789
790
  }
790
791
  d.sendMessageToMainApp("router", {
791
792
  cmd: "push",
792
793
  route: {
793
- path: s,
794
- query: { ...o, microAppName: e.microAppName },
794
+ path: r,
795
+ query: { ...i, microAppName: e.microAppName },
795
796
  params: p,
796
- meta: l
797
+ meta: u
797
798
  }
798
799
  });
799
800
  }
800
- ), d.addEventListenerFromMainApp("router", async (i) => {
801
- var l;
802
- const { cmd: s, route: o, microAppName: p = "" } = i.data;
803
- a.value = ("/" + p + o.path).replace(/\/\//g, "/"), (l = t == null ? void 0 : t[s]) == null || l.call(t, o);
804
- }), d.addEventListenerFromMainApp("onLoaded", (i) => {
805
- const { href: s, microAppContainerRect: o } = i.data;
806
- window.__IN_DAS_MICRO_APP = !0, window.__DAS_MICRO_APP_NAME = e.microAppName, window.__DAS_MAIN_APP_HREF = s, window.__DAS_MICRO_APP_CONTAINER_RECT = o;
807
- }), d.addEventListenerFromMainApp("onDeactivated", (i) => {
808
- const { name: s = "", path: o, params: p = {}, query: l = {} } = t.currentRoute.value;
801
+ ), d.addEventListenerFromMainApp("router", async (o) => {
802
+ var u;
803
+ const { cmd: r, route: i, microAppName: p = "" } = o.data;
804
+ a.value = ("/" + p + i.path).replace(/\/\//g, "/"), (u = t == null ? void 0 : t[r]) == null || u.call(t, i);
805
+ }), d.addEventListenerFromMainApp("onLoaded", (o) => {
806
+ const { href: r, microAppContainerRect: i } = o.data;
807
+ window.__IN_DAS_MICRO_APP = !0, window.__DAS_MICRO_APP_NAME = e.microAppName, window.__DAS_MAIN_APP_HREF = r, window.__DAS_MICRO_APP_CONTAINER_RECT = i;
808
+ }), d.addEventListenerFromMainApp("onDeactivated", (o) => {
809
+ const { name: r = "", path: i, params: p = {}, query: u = {} } = t.currentRoute.value;
809
810
  c.value = !0, t == null || t.push({
810
811
  name: n,
811
- query: { microAppName: e.microAppName, fromQuery: JSON.stringify(l), fromPath: o },
812
+ query: { microAppName: e.microAppName, fromQuery: JSON.stringify(u), fromPath: i },
812
813
  params: p
813
814
  });
814
- }), d.addEventListenerFromMainApp("onActivated", (i) => {
815
- const { name: s = "", params: o = {}, query: p = {} } = t.currentRoute.value, { fromPath: l = "", fromQuery: g = "{}" } = p || {};
816
- r.value = !0, t == null || t.push({ path: l, query: JSON.parse(g), params: o });
817
- }), d.addEventListenerFromMainApp("sessionStorage", (i) => {
818
- const { cmd: s, key: o, value: p } = i.data;
819
- s === "setItem" && window.sessionStorage.setItem(o, p), s === "getItem" && window.sessionStorage.getItem(o), s === "removeItem" && window.sessionStorage.removeItem(o), s === "clear" && window.sessionStorage.clear();
820
- }), d.addEventListenerFromMainApp("route", (i) => {
821
- const { cmd: s, path: o } = i.data;
822
- s === "reload" && (T.value.push(o), R.value = !1, setTimeout(() => {
823
- R.value = !0, T.value = [];
824
- }, 300)), s === "unload" && (T.value.push(o), R.value = !1, setTimeout(() => {
825
- R.value = !0, T.value = [];
815
+ }), d.addEventListenerFromMainApp("onActivated", (o) => {
816
+ const { name: r = "", params: i = {}, query: p = {} } = t.currentRoute.value, { fromPath: u = "", fromQuery: y = "{}" } = p || {};
817
+ s.value = !0, t == null || t.push({ path: u, query: JSON.parse(y), params: i });
818
+ }), d.addEventListenerFromMainApp("sessionStorage", (o) => {
819
+ const { cmd: r, key: i, value: p } = o.data;
820
+ r === "setItem" && window.sessionStorage.setItem(i, p), r === "getItem" && window.sessionStorage.getItem(i), r === "removeItem" && window.sessionStorage.removeItem(i), r === "clear" && window.sessionStorage.clear();
821
+ }), d.addEventListenerFromMainApp("route", (o) => {
822
+ const { cmd: r, path: i } = o.data;
823
+ r === "reload" && (F.value.push(i), R.value = !1, setTimeout(() => {
824
+ R.value = !0, F.value = [];
825
+ }, 300)), r === "unload" && (F.value.push(i), R.value = !1, setTimeout(() => {
826
+ R.value = !0, F.value = [];
826
827
  }, 100));
827
828
  });
828
829
  };