@das-fed/web 6.4.0-hot.3 → 6.4.0-test.1

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.
@@ -1,4 +1,4 @@
1
- import { ref as E, createApp as ms, reactive as je, computed as H, defineComponent as oe, watch as X, openBlock as $, createElementBlock as W, Fragment as De, createBlock as F, TransitionGroup as vs, normalizeProps as An, mergeProps as $t, withCtx as B, renderList as Tt, withDirectives as Te, resolveDynamicComponent as at, vShow as Le, unref as v, createCommentVNode as j, nextTick as Qe, resolveComponent as As, createElementVNode as O, normalizeClass as rr, normalizeStyle as yn, renderSlot as fe, createVNode as R, Transition as ao, guardReactiveProps as io, KeepAlive as co, h as he, onBeforeMount as ys, onMounted as Ve, onUnmounted as _s, getCurrentScope as bs, onScopeDispose as ws, getCurrentInstance as Cs, onActivated as Is, createTextVNode as ye, toDisplayString as ae, pushScopeId as sr, popScopeId as ar, render as Vt, onBeforeUnmount as Zt, useCssVars as Ts, withModifiers as ue, toRefs as Es, isRef as Ss } from "vue";
1
+ import { ref as E, createApp as ms, reactive as je, computed as H, defineComponent as ne, watch as G, openBlock as $, createElementBlock as W, Fragment as De, createBlock as F, TransitionGroup as vs, normalizeProps as An, mergeProps as $t, withCtx as B, renderList as Tt, withDirectives as Te, resolveDynamicComponent as at, vShow as Le, unref as v, createCommentVNode as j, nextTick as Qe, resolveComponent as As, createElementVNode as O, normalizeClass as rr, normalizeStyle as yn, renderSlot as fe, createVNode as R, Transition as ao, guardReactiveProps as io, KeepAlive as co, h as he, onBeforeMount as ys, onMounted as Ve, onUnmounted as _s, getCurrentScope as bs, onScopeDispose as ws, getCurrentInstance as Cs, onActivated as Is, createTextVNode as ye, toDisplayString as ae, pushScopeId as sr, popScopeId as ar, render as Vt, onBeforeUnmount as Zt, useCssVars as Ts, withModifiers as ue, toRefs as Es, isRef as Ss } from "vue";
2
2
  import { initTheme as ks, setThemeRule as Ps } from "@das-fed/web/packages/theme/index";
3
3
  import { initI18n as Ls, i18n as N } from "@das-fed/web/packages/i18n/index";
4
4
  import { DasWebLayout as Dn, DasWebNav as ir, DasWebMenu as cr, DasWebTabs as lr, layout as M } from "@das-fed/web/packages/layout/index";
@@ -10,13 +10,13 @@ import { DasChangeEnterprises as xs } from "@das-fed/ui/packages/business-compon
10
10
  import { pureImageSrc as Mn } from "@das-fed/utils/pure-image-src";
11
11
  import { DasNotification as Wt } from "@das-fed/ui/packages/components/notification/index";
12
12
  import { flatTree as Me, filterTreeArray as Qs, isEmpty as js, treeFind as lo, updateFavIcon as Ns, dateFormat as Hs, runPromiseByQueue as Us, objEqual as _n, setShowWatermark as bn, setShowLayout as wn, getUrlParams as Fs, withToken as Vs } from "@das-fed/utils/common-tools";
13
- import { getSubApps as K, getTabInfo as ve, getPersonalInfo as Yt, getTenantInfo as On, getProjectInfo as Fe, getToken as Bn, getUserInfo as ur, getMenus as zt } from "@das-fed/utils/common-info";
13
+ import { getSubApps as J, getTabInfo as ve, getPersonalInfo as Yt, getTenantInfo as On, getProjectInfo as Fe, getToken as Bn, getUserInfo as ur, getMenus as zt } from "@das-fed/utils/common-info";
14
14
  import { setProcessEngineProject as dr, setProcessEngineToken as pr } from "@das-fed/utils/process-engine-info";
15
15
  import { oauthServer as fr, justauth as Rn, enterpriseright as xn, iotModules as Ws, portal as We, systemConfiguration as Qn } from "@das-fed/utils/api-services/modules";
16
16
  import { createService as et } from "@das-fed/utils/create-api-service";
17
17
  import { useGetAuth as zs } from "@das-fed/utils/hooks/use-get-auth";
18
18
  import { systemConfiguration as qs, enterpriseright as jn, createService as ft, spaceManage as hr } from "@das-fed/utils/api-services";
19
- import { microFrontend as ce } from "@das-fed/web/packages/micro-frontend/index";
19
+ import { microFrontend as re } from "@das-fed/web/packages/micro-frontend/index";
20
20
  import { getConfig as tt } from "@das-fed/utils/config";
21
21
  import Cn from "dayjs";
22
22
  import { getAccessToken as Js, removeAccessToken as Ks } from "@das-fed/utils/token-tools";
@@ -177,7 +177,7 @@ const go = (t, e) => {
177
177
  }, wa = (t) => H(() => {
178
178
  var e, n, o, r;
179
179
  return ((n = (e = _t.value) == null ? void 0 : e[it.value]) == null ? void 0 : n[t]) || ((r = (o = yt.value) == null ? void 0 : o[it.value]) == null ? void 0 : r[t]) || t;
180
- }), Xg = (t) => `var(${t})`, Zg = wa, Z = je({
180
+ }), Xg = (t) => `var(${t})`, Zg = wa, X = je({
181
181
  visible: !1,
182
182
  logo: "",
183
183
  items: [],
@@ -190,53 +190,53 @@ const go = (t, e) => {
190
190
  eventListeners: {}
191
191
  }), Ca = {
192
192
  show: () => {
193
- Z.visible = !0;
193
+ X.visible = !0;
194
194
  },
195
195
  hide: () => {
196
- Z.visible = !1;
196
+ X.visible = !1;
197
197
  },
198
198
  setLogo: (t) => {
199
- Z.logo = t;
199
+ X.logo = t;
200
200
  },
201
201
  setItems: (t) => {
202
- Z.visible || (Z.visible = !0), Z.items = t;
202
+ X.visible || (X.visible = !0), X.items = t;
203
203
  },
204
- getItems: () => Z.items,
204
+ getItems: () => X.items,
205
205
  removeItem: (t) => {
206
- const e = Z.items.filter((n) => n.value !== t);
207
- Z.items = e;
206
+ const e = X.items.filter((n) => n.value !== t);
207
+ X.items = e;
208
208
  },
209
209
  appendItem: (t) => {
210
210
  setTimeout(() => {
211
- Z.visible || (Z.visible = !0), !Z.items.find((n) => n.value == t.value) && Z.items.push(t);
211
+ X.visible || (X.visible = !0), !X.items.find((n) => n.value == t.value) && X.items.push(t);
212
212
  }, 200);
213
213
  },
214
214
  setActiveItem: (t) => {
215
215
  setTimeout(() => {
216
- Z.activeItem = t;
216
+ X.activeItem = t;
217
217
  }, 200);
218
218
  },
219
219
  setConfig: (t) => {
220
- Z.config = t;
220
+ X.config = t;
221
221
  },
222
222
  setProjects: (t) => {
223
- Z.projects = t;
223
+ X.projects = t;
224
224
  },
225
225
  setProjectConfig: (t) => {
226
- Z.projectConfig = t;
226
+ X.projectConfig = t;
227
227
  },
228
228
  setActiveProject: (t) => {
229
- Z.activeProject = t;
229
+ X.activeProject = t;
230
230
  },
231
231
  setUserInfo: (t) => {
232
- Z.userInfo = t;
232
+ X.userInfo = t;
233
233
  },
234
234
  setSearchConfig: (t) => {
235
- Z.searchConfig = t;
235
+ X.searchConfig = t;
236
236
  },
237
237
  triggerEventListener: (t, e, n) => {
238
238
  var a;
239
- const o = Z.eventListeners, { autoRemove: r = !1 } = n || {}, s = [];
239
+ const o = X.eventListeners, { autoRemove: r = !1 } = n || {}, s = [];
240
240
  for (const l in o) {
241
241
  const c = o[l];
242
242
  c.type === t && s.push(
@@ -249,9 +249,9 @@ const go = (t, e) => {
249
249
  },
250
250
  addEventListener: (t, e) => {
251
251
  const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), o = () => {
252
- Z.eventListeners[n] && delete Z.eventListeners[n];
252
+ X.eventListeners[n] && delete X.eventListeners[n];
253
253
  };
254
- return Z.eventListeners[n] = {
254
+ return X.eventListeners[n] = {
255
255
  type: t,
256
256
  handler: async (r) => {
257
257
  try {
@@ -410,7 +410,7 @@ const go = (t, e) => {
410
410
  Tn.visible = t, e || (e = {}), e.transition || (e.transition = "all 0.3s"), e && (Tn.style = e);
411
411
  }
412
412
  }, Je = {
413
- nav: Z,
413
+ nav: X,
414
414
  menu: Re,
415
415
  tab: be,
416
416
  overlay: Tn,
@@ -423,7 +423,7 @@ const go = (t, e) => {
423
423
  overlay: Sa,
424
424
  iframeView: Ea,
425
425
  setVisible: (t) => Je.visible.value = t
426
- }, ka = ["name"], Pa = ["name"], La = /* @__PURE__ */ oe({
426
+ }, ka = ["name"], Pa = ["name"], La = /* @__PURE__ */ ne({
427
427
  __name: "das-iframe-router-view",
428
428
  props: {
429
429
  needTransition: { type: Boolean },
@@ -448,7 +448,7 @@ const go = (t, e) => {
448
448
  g.meta.key === h && (g.meta.key = `${g.path}-${p}`);
449
449
  });
450
450
  };
451
- X(
451
+ G(
452
452
  () => e.exclude,
453
453
  (h) => {
454
454
  if (!h || !h.length) return;
@@ -481,7 +481,7 @@ const go = (t, e) => {
481
481
  const d = s.value.find((A) => A.path === r.path);
482
482
  d && ((p = d.meta) != null && p.isOpen || (d.meta.isOpen = !0), (g = d.meta) != null && g.isShow || (d.meta.isShow = !0), await Qe(), z.iframeView.triggerEventListener("onActivated", { route: d }));
483
483
  };
484
- return i(), X(
484
+ return i(), G(
485
485
  () => r.path,
486
486
  () => {
487
487
  u();
@@ -564,7 +564,7 @@ const go = (t, e) => {
564
564
  }, Va = { style: { width: "100%", height: "100%" } }, Wa = {
565
565
  class: "micro-app",
566
566
  style: { height: "100%", width: "100%" }
567
- }, za = /* @__PURE__ */ oe({
567
+ }, za = /* @__PURE__ */ ne({
568
568
  __name: "das-web-layout",
569
569
  props: {
570
570
  needTransition: { type: Boolean, default: !0 },
@@ -584,7 +584,7 @@ const go = (t, e) => {
584
584
  "das-web-app-overlay-hide": u.value === !1,
585
585
  "das-web-app-overlay-destroy": u.value === "destroy"
586
586
  })), d = H(() => Je.overlay.style ?? { backgroundColor: "rgba(0,0,0,0.5)" }), p = H(() => e.excludeRoutes), g = H(() => e.routeKeepAliveVisible);
587
- X(
587
+ G(
588
588
  () => [n.meta, n.query],
589
589
  ([y, w]) => {
590
590
  const { showLayout: C = !0, showAside: k = !0, showTabs: I = !0, layout: S = {} } = y, {
@@ -594,8 +594,8 @@ const go = (t, e) => {
594
594
  app: V
595
595
  } = w;
596
596
  ua({ minHeight: "600px", minWidth: "1200px" });
597
- let J = !0, le = !0, Ie = !0;
598
- (C === !1 || T === !1 || T === "false") && (J = !1, le = !1, Ie = !1), (k === !1 || x === !1 || x === "false") && (le = !1), (I === !1 || Q === !1 || Q === "false") && (Ie = !1), o.value = J, r.value = le, s.value = Ie;
597
+ let q = !0, ce = !0, Ie = !0;
598
+ (C === !1 || T === !1 || T === "false") && (q = !1, ce = !1, Ie = !1), (k === !1 || x === !1 || x === "false") && (ce = !1), (I === !1 || Q === !1 || Q === "false") && (Ie = !1), o.value = q, r.value = ce, s.value = Ie;
599
599
  }
600
600
  );
601
601
  const A = H(() => ({
@@ -788,7 +788,7 @@ const go = (t, e) => {
788
788
  ]);
789
789
  };
790
790
  }
791
- }), Yg = /* @__PURE__ */ Ce(za, [["__scopeId", "data-v-47a099d6"]]), qa = ["modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], em = /* @__PURE__ */ oe({
791
+ }), Yg = /* @__PURE__ */ Ce(za, [["__scopeId", "data-v-47a099d6"]]), qa = ["modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], em = /* @__PURE__ */ ne({
792
792
  __name: "das-web-nav",
793
793
  setup(t) {
794
794
  const { nav: e } = Je, n = H(() => e.logo || ""), o = H(() => e.activeItem || ""), r = H(() => (e.items || []).filter((k) => k.fixed)), s = H(() => (e.items || []).filter((k) => !k.fixed)), a = H(() => {
@@ -863,7 +863,7 @@ const go = (t, e) => {
863
863
  "on:fullScreen": w
864
864
  }, null, 40, qa));
865
865
  }
866
- }), Ja = ["modelValue", "data", "collapse", "fixedTopMenu", "subMenuAttrs"], tm = /* @__PURE__ */ oe({
866
+ }), Ja = ["modelValue", "data", "collapse", "fixedTopMenu", "subMenuAttrs"], tm = /* @__PURE__ */ ne({
867
867
  __name: "das-web-menu",
868
868
  props: {
869
869
  menuAttr: {}
@@ -882,7 +882,7 @@ const go = (t, e) => {
882
882
  subMenuAttrs: c.value
883
883
  }, o.value, { onChange: i }), null, 16, Ja)) : j("v-if", !0);
884
884
  }
885
- }), Ka = ["modelValue", "options"], nm = /* @__PURE__ */ oe({
885
+ }), Ka = ["modelValue", "options"], nm = /* @__PURE__ */ ne({
886
886
  __name: "das-web-tabs",
887
887
  props: {
888
888
  tabsAttr: {}
@@ -930,11 +930,9 @@ const st = (t, e, n) => {
930
930
  (l = (a = o.dom) == null ? void 0 : a.contentWindow) == null || l.postMessage({ type: e, data: n }, o.entry);
931
931
  }
932
932
  }, dn = (t, e) => {
933
- var s;
934
- const { __IN_DAS_MICRO_APP: n, __DAS_MAIN_APP_HREF: o } = window;
935
- if (!n || !o) return;
936
- const { origin: r } = new URL(o);
937
- (s = window.top) == null || s.postMessage({ type: t, data: e }, r);
933
+ var o;
934
+ const { origin: n } = new URL(location.href);
935
+ (o = window.top) == null || o.postMessage({ type: t, data: e }, n);
938
936
  }, Ga = () => {
939
937
  Se || (Se || (Se = {}), window.addEventListener(
940
938
  "message",
@@ -976,12 +974,12 @@ const st = (t, e, n) => {
976
974
  }, pn = async (t) => {
977
975
  await Promise.all(
978
976
  de.value.filter((e) => e.loaded).map((e) => new Promise(async (n) => {
979
- e.dom || await new Promise((o) => X(() => e.dom, o)), setTimeout(() => {
977
+ e.dom || await new Promise((o) => G(() => e.dom, o)), setTimeout(() => {
980
978
  st(e.name, "sessionStorage", t), n(!0);
981
979
  }, 0);
982
980
  }))
983
981
  );
984
- }, te = {
982
+ }, ee = {
985
983
  loadMicroApp: (t) => {
986
984
  Ht.value = !0;
987
985
  const e = de.value.find((a) => a.name === t), n = de.value.find((a) => a.actived), o = !!e, r = !(e != null && e.loaded), s = e == null ? void 0 : e.actived;
@@ -1002,7 +1000,7 @@ const st = (t, e, n) => {
1002
1000
  },
1003
1001
  hideMicroApp: async (t) => {
1004
1002
  const e = de.value.find((n) => n.name === t);
1005
- e && e.loaded && (e.dom || await new Promise((n) => X(() => e.dom, n)), st(t, "router", {
1003
+ e && e.loaded && (e.dom || await new Promise((n) => G(() => e.dom, n)), st(t, "router", {
1006
1004
  cmd: "push",
1007
1005
  route: {
1008
1006
  name: "das-micro-app-ghost",
@@ -1026,7 +1024,7 @@ const st = (t, e, n) => {
1026
1024
  },
1027
1025
  setMicroAppRoute: async (t, e, n) => {
1028
1026
  const o = de.value.find((l) => l.name === e);
1029
- if (!o || !o.loaded || !o.actived || (o.dom || await new Promise((l) => X(() => o.dom, l)), !o.actived)) return o;
1027
+ if (!o || !o.loaded || !o.actived || (o.dom || await new Promise((l) => G(() => o.dom, l)), !o.actived)) return o;
1030
1028
  const r = n.path || n, s = n.query || {}, a = n.params || {};
1031
1029
  return t.push({
1032
1030
  path: `/${e}${r}`,
@@ -1086,11 +1084,11 @@ const st = (t, e, n) => {
1086
1084
  },
1087
1085
  reloadMicroAppRoute: async (t, e) => {
1088
1086
  const n = de.value.find((o) => o.name === t);
1089
- n && (!n.loaded || !n.actived || (n.dom || await new Promise((o) => X(() => n.dom, o)), st(t, "route", { cmd: "reload", path: e })));
1087
+ n && (!n.loaded || !n.actived || (n.dom || await new Promise((o) => G(() => n.dom, o)), st(t, "route", { cmd: "reload", path: e })));
1090
1088
  },
1091
1089
  unloadMicroAppRoute: async (t, e) => {
1092
1090
  const n = de.value.find((o) => o.name === t);
1093
- n && (!n.loaded || !n.actived || (n.dom || await new Promise((o) => X(() => n.dom, o)), st(t, "route", { cmd: "unload", path: e })));
1091
+ n && (!n.loaded || !n.actived || (n.dom || await new Promise((o) => G(() => n.dom, o)), st(t, "route", { cmd: "unload", path: e })));
1094
1092
  },
1095
1093
  setMainAppLayoutVisible: (t) => {
1096
1094
  dn("layoutVisible", { visible: t });
@@ -1125,7 +1123,7 @@ function ai(...t) {
1125
1123
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
1126
1124
  const s = [], a = () => {
1127
1125
  s.forEach((u) => u()), s.length = 0;
1128
- }, l = (u, h, d, p) => (u.addEventListener(h, d, p), () => u.removeEventListener(h, d, p)), c = X(() => [wr(e), _r(r)], ([u, h]) => {
1126
+ }, l = (u, h, d, p) => (u.addEventListener(h, d, p), () => u.removeEventListener(h, d, p)), c = G(() => [wr(e), _r(r)], ([u, h]) => {
1129
1127
  a(), u && s.push(...n.flatMap((d) => o.map((p) => l(u, d, p, h))));
1130
1128
  }, { immediate: !0, flush: "post" }), i = () => {
1131
1129
  c(), a();
@@ -1256,7 +1254,7 @@ const pi = {
1256
1254
  di({
1257
1255
  linear: ni
1258
1256
  }, pi);
1259
- const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
1257
+ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ ne({
1260
1258
  __name: "das-micro-app",
1261
1259
  props: {
1262
1260
  src: {},
@@ -1268,7 +1266,7 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
1268
1266
  const n = t, o = e, r = (l) => {
1269
1267
  o("onLoaded", l);
1270
1268
  }, s = H(() => n.actived);
1271
- return X(() => s.value, (l) => {
1269
+ return G(() => s.value, (l) => {
1272
1270
  l && o("onActivated"), l || o("onDeactivated");
1273
1271
  }), (l, c) => ($(), W("iframe", {
1274
1272
  class: "das-micro-app",
@@ -1279,7 +1277,7 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
1279
1277
  onLoad: r
1280
1278
  }, null, 40, fi));
1281
1279
  }
1282
- }), gi = /* @__PURE__ */ Ce(hi, [["__scopeId", "data-v-2266bab0"]]), mi = /* @__PURE__ */ oe({
1280
+ }), gi = /* @__PURE__ */ Ce(hi, [["__scopeId", "data-v-2266bab0"]]), mi = /* @__PURE__ */ ne({
1283
1281
  __name: "das-micro-apps",
1284
1282
  setup(t) {
1285
1283
  const e = E(null), n = async (s, a) => {
@@ -1290,26 +1288,26 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
1290
1288
  const d = e.value.getBoundingClientRect() || {};
1291
1289
  return d.width = e.value.clientWidth, d.height = e.value.clientHeight, d;
1292
1290
  };
1293
- te.sendMessageToMicroApp(a, "onLoaded", {
1291
+ ee.sendMessageToMicroApp(a, "onLoaded", {
1294
1292
  href: location.href,
1295
1293
  microAppContainerRect: c(),
1296
1294
  entry: l.entry,
1297
1295
  name: l.name
1298
1296
  });
1299
1297
  const { dom: i, ...u } = l;
1300
- te.triggerMicroAppLifeCycleListener("onLoaded", u), new ResizeObserver(() => {
1301
- te.sendMessageToMicroApp(a, "resize", c());
1302
- }).observe(e.value), te.sendMessageToMicroApp(a, "setProxyMessageStatus", { visible: !0, parentHref: location.href }), te.sendMessageToMicroApp(a, "setProxSsoStatus", { visible: !0, parentHref: location.href });
1298
+ ee.triggerMicroAppLifeCycleListener("onLoaded", u), new ResizeObserver(() => {
1299
+ ee.sendMessageToMicroApp(a, "resize", c());
1300
+ }).observe(e.value), ee.sendMessageToMicroApp(a, "setProxyMessageStatus", { visible: !0, parentHref: location.href }), ee.sendMessageToMicroApp(a, "setProxSsoStatus", { visible: !0, parentHref: location.href });
1303
1301
  }, o = (s, a) => {
1304
1302
  const l = de.value.find((u) => u.name === a);
1305
1303
  if (!l) return;
1306
1304
  const { dom: c, ...i } = l;
1307
- te.sendMessageToMicroApp(a, "onActivated"), te.triggerMicroAppLifeCycleListener("onActivated", i);
1305
+ ee.sendMessageToMicroApp(a, "onActivated"), ee.triggerMicroAppLifeCycleListener("onActivated", i);
1308
1306
  }, r = (s, a) => {
1309
1307
  const l = de.value.find((u) => u.name === a);
1310
1308
  if (!l) return;
1311
1309
  const { dom: c, ...i } = l;
1312
- te.sendMessageToMicroApp(a, "onDeactivated"), te.triggerMicroAppLifeCycleListener("onDeactivated", i);
1310
+ ee.sendMessageToMicroApp(a, "onDeactivated"), ee.triggerMicroAppLifeCycleListener("onDeactivated", i);
1313
1311
  };
1314
1312
  return (s, a) => ($(), W(
1315
1313
  "div",
@@ -1349,7 +1347,7 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
1349
1347
  /* NEED_PATCH */
1350
1348
  ));
1351
1349
  }
1352
- }), vi = /* @__PURE__ */ Ce(mi, [["__scopeId", "data-v-2e3798bc"]]), om = /* @__PURE__ */ oe({
1350
+ }), vi = /* @__PURE__ */ Ce(mi, [["__scopeId", "data-v-2e3798bc"]]), om = /* @__PURE__ */ ne({
1353
1351
  __name: "das-main-app-layout",
1354
1352
  props: {
1355
1353
  transitionConfig: { default: () => {
@@ -1393,7 +1391,7 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
1393
1391
  /* FORWARDED */
1394
1392
  }, 16, ["transition-config", "router-view-visible"]));
1395
1393
  }
1396
- }), Cr = /* @__PURE__ */ oe({
1394
+ }), Cr = /* @__PURE__ */ ne({
1397
1395
  __name: "das-micro-app-ghost",
1398
1396
  setup(t) {
1399
1397
  return Is(() => {
@@ -1409,21 +1407,21 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
1409
1407
  path: `${mo.value}/:pathMatch(.*)*`,
1410
1408
  component: Cr,
1411
1409
  meta: { isMicroApp: !0, keepAlive: !0 }
1412
- }), te.addEventListenerFromMicroApp("bodyOverlay", (r) => {
1410
+ }), ee.addEventListenerFromMicroApp("bodyOverlay", (r) => {
1413
1411
  const { visible: s, style: a } = r.data;
1414
1412
  z.overlay.set(s, a);
1415
- }), te.addEventListenerFromMicroApp("layoutVisible", (r) => {
1413
+ }), ee.addEventListenerFromMicroApp("layoutVisible", (r) => {
1416
1414
  const { visible: s } = r.data;
1417
1415
  z.setVisible(s);
1418
- }), te.addEventListenerFromMicroApp("route", (r) => {
1416
+ }), ee.addEventListenerFromMicroApp("route", (r) => {
1419
1417
  const { name: s, cmd: a, path: l } = r.data;
1420
- a === "reload" && te.reloadMicroAppRoute(s, l), a === "unload" && te.unloadMicroAppRoute(s, l);
1418
+ a === "reload" && ee.reloadMicroAppRoute(s, l), a === "unload" && ee.unloadMicroAppRoute(s, l);
1421
1419
  });
1422
1420
  const { enter: n, exit: o } = ht();
1423
- te.addEventListenerFromMicroApp("fullscreen", (r) => {
1421
+ ee.addEventListenerFromMicroApp("fullscreen", (r) => {
1424
1422
  const s = r.data;
1425
1423
  s && n(), s || o();
1426
- }), te.addEventListenerFromMicroApp("location", (r) => {
1424
+ }), ee.addEventListenerFromMicroApp("location", (r) => {
1427
1425
  const { cmd: s, isAutoCloseApp: a } = r.data || {};
1428
1426
  s === "reload" && (a !== void 0 && (window.__isAutoCloseApp = a), location.reload());
1429
1427
  });
@@ -1438,7 +1436,7 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
1438
1436
  meta: { isMicroApp: !0, keepAlive: !0 }
1439
1437
  });
1440
1438
  const o = E(!1), r = E(!1), s = E("");
1441
- X(
1439
+ G(
1442
1440
  () => e.currentRoute.value,
1443
1441
  (a) => {
1444
1442
  if (o.value) {
@@ -1454,7 +1452,7 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
1454
1452
  s.value = "";
1455
1453
  return;
1456
1454
  }
1457
- te.sendMessageToMainApp("router", {
1455
+ ee.sendMessageToMainApp("router", {
1458
1456
  cmd: "push",
1459
1457
  route: {
1460
1458
  path: l,
@@ -1464,27 +1462,27 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
1464
1462
  }
1465
1463
  });
1466
1464
  }
1467
- ), te.addEventListenerFromMainApp("router", async (a) => {
1465
+ ), ee.addEventListenerFromMainApp("router", async (a) => {
1468
1466
  var u;
1469
1467
  const { cmd: l, route: c, microAppName: i = "" } = a.data;
1470
1468
  s.value = ("/" + i + c.path).replace(/\/\//g, "/"), (u = e == null ? void 0 : e[l]) == null || u.call(e, c);
1471
- }), te.addEventListenerFromMainApp("onLoaded", (a) => {
1469
+ }), ee.addEventListenerFromMainApp("onLoaded", (a) => {
1472
1470
  const { href: l, microAppContainerRect: c } = a.data;
1473
1471
  window.__IN_DAS_MICRO_APP = !0, window.__DAS_MICRO_APP_NAME = t.microAppName, window.__DAS_MAIN_APP_HREF = l, window.__DAS_MICRO_APP_CONTAINER_RECT = c;
1474
- }), te.addEventListenerFromMainApp("onDeactivated", (a) => {
1472
+ }), ee.addEventListenerFromMainApp("onDeactivated", (a) => {
1475
1473
  const { name: l = "", path: c, params: i = {}, query: u = {} } = e.currentRoute.value;
1476
1474
  r.value = !0, e == null || e.push({
1477
1475
  name: n,
1478
1476
  query: { microAppName: t.microAppName, fromQuery: JSON.stringify(u), fromPath: c },
1479
1477
  params: i
1480
1478
  });
1481
- }), te.addEventListenerFromMainApp("onActivated", (a) => {
1479
+ }), ee.addEventListenerFromMainApp("onActivated", (a) => {
1482
1480
  const { name: l = "", params: c = {}, query: i = {} } = e.currentRoute.value, { fromPath: u = "", fromQuery: h = "{}" } = i || {};
1483
1481
  o.value = !0, e == null || e.push({ path: u, query: JSON.parse(h), params: c });
1484
- }), te.addEventListenerFromMainApp("sessionStorage", (a) => {
1482
+ }), ee.addEventListenerFromMainApp("sessionStorage", (a) => {
1485
1483
  const { cmd: l, key: c, value: i } = a.data;
1486
1484
  l === "setItem" && window.sessionStorage.setItem(c, i), l === "getItem" && window.sessionStorage.getItem(c), l === "removeItem" && window.sessionStorage.removeItem(c), l === "clear" && window.sessionStorage.clear();
1487
- }), te.addEventListenerFromMainApp("route", (a) => {
1485
+ }), ee.addEventListenerFromMainApp("route", (a) => {
1488
1486
  const { cmd: l, path: c } = a.data;
1489
1487
  l === "reload" && (Qt.value.push(c), jt.value = !1, setTimeout(() => {
1490
1488
  jt.value = !0, Qt.value = [];
@@ -1500,7 +1498,7 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
1500
1498
  { value: "1", label: N("个人中心").value },
1501
1499
  { value: "2", label: N("修改密码").value },
1502
1500
  { value: "3", label: N("退出登录").value }
1503
- ], _i = /* @__PURE__ */ oe({
1501
+ ], _i = /* @__PURE__ */ ne({
1504
1502
  __name: "base-layout",
1505
1503
  props: {
1506
1504
  transitionConfig: { default: () => ({}) },
@@ -1546,7 +1544,7 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
1546
1544
  /* FORWARDED */
1547
1545
  }, 16, ["transition-config"]));
1548
1546
  }
1549
- }), bi = qs.get("watermark"), wi = /* @__PURE__ */ oe({
1547
+ }), bi = qs.get("watermark"), wi = /* @__PURE__ */ ne({
1550
1548
  __name: "index",
1551
1549
  props: {
1552
1550
  platformInitNextTick: {}
@@ -1592,7 +1590,7 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
1592
1590
  };
1593
1591
  u();
1594
1592
  const h = Ye(), d = Dt();
1595
- return X(
1593
+ return G(
1596
1594
  () => h.currentRoute.value,
1597
1595
  (p) => {
1598
1596
  var f, _, y;
@@ -1601,7 +1599,7 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
1601
1599
  m === "false" && (m = !1), i(g && !!(A && m));
1602
1600
  },
1603
1601
  { immediate: !0 }
1604
- ), ce.addEventListenerFromMicroApp("systemconfig:watermark-change", () => {
1602
+ ), re.addEventListenerFromMicroApp("systemconfig:watermark-change", () => {
1605
1603
  var A, m;
1606
1604
  u();
1607
1605
  const p = !!((A = n.value) != null && A.pageSwith);
@@ -1632,7 +1630,7 @@ const fi = ["src", "entry", "name"], hi = /* @__PURE__ */ oe({
1632
1630
  null,
1633
1631
  -1
1634
1632
  /* HOISTED */
1635
- )), ki = { class: "footer" }, Pi = /* @__PURE__ */ oe({
1633
+ )), ki = { class: "footer" }, Pi = /* @__PURE__ */ ne({
1636
1634
  __name: "tip",
1637
1635
  props: {
1638
1636
  title: {},
@@ -1756,7 +1754,7 @@ const $i = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
1756
1754
  }, Sr = () => {
1757
1755
  sessionStorage.removeItem("tabs");
1758
1756
  }, ke = (t) => {
1759
- let e = K();
1757
+ let e = J();
1760
1758
  t.forEach((n) => {
1761
1759
  if (n.key === "subAppList" && !Array.isArray(n.value)) {
1762
1760
  const o = e.subAppList.findIndex((r) => r.code === n.value.code);
@@ -1771,7 +1769,7 @@ const $i = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
1771
1769
  { key: "subAppList", value: [] }
1772
1770
  ]);
1773
1771
  }, kr = (t) => {
1774
- let e = K();
1772
+ let e = J();
1775
1773
  e.currentSubApp.currentMenuCode = t;
1776
1774
  for (const n in e.subAppList)
1777
1775
  e.subAppList[n].code === e.currentSubAppCode && (e.subAppList[n].currentMenuCode = t);
@@ -2155,11 +2153,11 @@ var Al = 9007199254740991;
2155
2153
  function jr(t) {
2156
2154
  return typeof t == "number" && t > -1 && t % 1 == 0 && t <= Al;
2157
2155
  }
2158
- var yl = "[object Arguments]", _l = "[object Array]", bl = "[object Boolean]", wl = "[object Date]", Cl = "[object Error]", Il = "[object Function]", Tl = "[object Map]", El = "[object Number]", Sl = "[object Object]", kl = "[object RegExp]", Pl = "[object Set]", Ll = "[object String]", $l = "[object WeakMap]", Dl = "[object ArrayBuffer]", Ml = "[object DataView]", Ol = "[object Float32Array]", Bl = "[object Float64Array]", Rl = "[object Int8Array]", xl = "[object Int16Array]", Ql = "[object Int32Array]", jl = "[object Uint8Array]", Nl = "[object Uint8ClampedArray]", Hl = "[object Uint16Array]", Ul = "[object Uint32Array]", Y = {};
2159
- Y[Ol] = Y[Bl] = Y[Rl] = Y[xl] = Y[Ql] = Y[jl] = Y[Nl] = Y[Hl] = Y[Ul] = !0;
2160
- Y[yl] = Y[_l] = Y[Dl] = Y[bl] = Y[Ml] = Y[wl] = Y[Cl] = Y[Il] = Y[Tl] = Y[El] = Y[Sl] = Y[kl] = Y[Pl] = Y[Ll] = Y[$l] = !1;
2156
+ var yl = "[object Arguments]", _l = "[object Array]", bl = "[object Boolean]", wl = "[object Date]", Cl = "[object Error]", Il = "[object Function]", Tl = "[object Map]", El = "[object Number]", Sl = "[object Object]", kl = "[object RegExp]", Pl = "[object Set]", Ll = "[object String]", $l = "[object WeakMap]", Dl = "[object ArrayBuffer]", Ml = "[object DataView]", Ol = "[object Float32Array]", Bl = "[object Float64Array]", Rl = "[object Int8Array]", xl = "[object Int16Array]", Ql = "[object Int32Array]", jl = "[object Uint8Array]", Nl = "[object Uint8ClampedArray]", Hl = "[object Uint16Array]", Ul = "[object Uint32Array]", Z = {};
2157
+ Z[Ol] = Z[Bl] = Z[Rl] = Z[xl] = Z[Ql] = Z[jl] = Z[Nl] = Z[Hl] = Z[Ul] = !0;
2158
+ Z[yl] = Z[_l] = Z[Dl] = Z[bl] = Z[Ml] = Z[wl] = Z[Cl] = Z[Il] = Z[Tl] = Z[El] = Z[Sl] = Z[kl] = Z[Pl] = Z[Ll] = Z[$l] = !1;
2161
2159
  function Fl(t) {
2162
- return Bt(t) && jr(t.length) && !!Y[Mt(t)];
2160
+ return Bt(t) && jr(t.length) && !!Z[Mt(t)];
2163
2161
  }
2164
2162
  function Wn(t) {
2165
2163
  return function(e) {
@@ -2390,9 +2388,9 @@ var Vo = ut && ut.isMap, ed = Vo ? Wn(Vo) : Yu, td = "[object Set]";
2390
2388
  function nd(t) {
2391
2389
  return Bt(t) && xe(t) == td;
2392
2390
  }
2393
- var Wo = ut && ut.isSet, od = Wo ? Wn(Wo) : nd, rd = 1, sd = 2, ad = 4, Gr = "[object Arguments]", id = "[object Array]", cd = "[object Boolean]", ld = "[object Date]", ud = "[object Error]", Xr = "[object Function]", dd = "[object GeneratorFunction]", pd = "[object Map]", fd = "[object Number]", Zr = "[object Object]", hd = "[object RegExp]", gd = "[object Set]", md = "[object String]", vd = "[object Symbol]", Ad = "[object WeakMap]", yd = "[object ArrayBuffer]", _d = "[object DataView]", bd = "[object Float32Array]", wd = "[object Float64Array]", Cd = "[object Int8Array]", Id = "[object Int16Array]", Td = "[object Int32Array]", Ed = "[object Uint8Array]", Sd = "[object Uint8ClampedArray]", kd = "[object Uint16Array]", Pd = "[object Uint32Array]", G = {};
2394
- G[Gr] = G[id] = G[yd] = G[_d] = G[cd] = G[ld] = G[bd] = G[wd] = G[Cd] = G[Id] = G[Td] = G[pd] = G[fd] = G[Zr] = G[hd] = G[gd] = G[md] = G[vd] = G[Ed] = G[Sd] = G[kd] = G[Pd] = !0;
2395
- G[ud] = G[Xr] = G[Ad] = !1;
2391
+ var Wo = ut && ut.isSet, od = Wo ? Wn(Wo) : nd, rd = 1, sd = 2, ad = 4, Gr = "[object Arguments]", id = "[object Array]", cd = "[object Boolean]", ld = "[object Date]", ud = "[object Error]", Xr = "[object Function]", dd = "[object GeneratorFunction]", pd = "[object Map]", fd = "[object Number]", Zr = "[object Object]", hd = "[object RegExp]", gd = "[object Set]", md = "[object String]", vd = "[object Symbol]", Ad = "[object WeakMap]", yd = "[object ArrayBuffer]", _d = "[object DataView]", bd = "[object Float32Array]", wd = "[object Float64Array]", Cd = "[object Int8Array]", Id = "[object Int16Array]", Td = "[object Int32Array]", Ed = "[object Uint8Array]", Sd = "[object Uint8ClampedArray]", kd = "[object Uint16Array]", Pd = "[object Uint32Array]", K = {};
2392
+ K[Gr] = K[id] = K[yd] = K[_d] = K[cd] = K[ld] = K[bd] = K[wd] = K[Cd] = K[Id] = K[Td] = K[pd] = K[fd] = K[Zr] = K[hd] = K[gd] = K[md] = K[vd] = K[Ed] = K[Sd] = K[kd] = K[Pd] = !0;
2393
+ K[ud] = K[Xr] = K[Ad] = !1;
2396
2394
  function Ft(t, e, n, o, r, s) {
2397
2395
  var a, l = e & rd, c = e & sd, i = e & ad;
2398
2396
  if (a !== void 0)
@@ -2411,7 +2409,7 @@ function Ft(t, e, n, o, r, s) {
2411
2409
  if (a = c || d ? {} : Xu(t), !l)
2412
2410
  return c ? fu(t, ru(a, t)) : du(t, Yl(a, t));
2413
2411
  } else {
2414
- if (!G[h])
2412
+ if (!K[h])
2415
2413
  return r ? t : {};
2416
2414
  a = Ku(t, h, l);
2417
2415
  }
@@ -2460,7 +2458,7 @@ const Kt = (t, e = "") => {
2460
2458
  const r = t.slice(0, o), s = t.slice(o + 1);
2461
2459
  return s.length && (n = s[0]), n || r.length && (n = r[r.length - 1]), { index: o, target: n };
2462
2460
  }, $n = (t) => {
2463
- const e = K().subAppList ?? [];
2461
+ const e = J().subAppList ?? [];
2464
2462
  let { index: n, target: o } = Dd(e, t);
2465
2463
  return e.splice(n, 1), e.length ? ke([{ key: "subAppList", value: e }]) : Fn(), Ae([
2466
2464
  { key: "currentCode", value: "" },
@@ -2532,7 +2530,7 @@ const Kt = (t, e = "") => {
2532
2530
  let l = (e == null ? void 0 : e.code) ?? "";
2533
2531
  if (!l) return { menuConfig: [], currentApp: null, currentMenu: null, query: null };
2534
2532
  let c = [], i = [];
2535
- const u = K().subAppList ?? [];
2533
+ const u = J().subAppList ?? [];
2536
2534
  if (u.length && (c = ((g = u.find((m) => m.code === e.code)) == null ? void 0 : g.menus) ?? []), !c.length) {
2537
2535
  const { menus: m, originalMenus: f } = await Xn(l);
2538
2536
  c = m ?? [], i = f ?? [];
@@ -2672,7 +2670,7 @@ const Kt = (t, e = "") => {
2672
2670
  }, Gt = E(1), ts = async () => {
2673
2671
  const [t, e] = await qd().run();
2674
2672
  return t ? { personalMenuConfig: null } : (Gt.value = (e == null ? void 0 : e.style) ?? 1, { personalMenuConfig: e });
2675
- }, Xd = We.post("/menu/personal-setting"), Zd = { class: "preson-style-drawer" }, Yd = { class: "preson-style-container" }, ep = { class: "title" }, tp = { class: "content" }, np = { class: "item-content" }, op = ["src"], rp = { class: "item-content" }, sp = ["src"], ap = { class: "preson-style-footer" }, ip = /* @__PURE__ */ oe({
2673
+ }, Xd = We.post("/menu/personal-setting"), Zd = { class: "preson-style-drawer" }, Yd = { class: "preson-style-container" }, ep = { class: "title" }, tp = { class: "content" }, np = { class: "item-content" }, op = ["src"], rp = { class: "item-content" }, sp = ["src"], ap = { class: "preson-style-footer" }, ip = /* @__PURE__ */ ne({
2676
2674
  __name: "index",
2677
2675
  setup(t, { expose: e }) {
2678
2676
  const n = E(!1), o = E(!1), r = E(!1), s = E(!1), a = () => {
@@ -2825,7 +2823,7 @@ const Kt = (t, e = "") => {
2825
2823
  };
2826
2824
  }, pp = (t) => {
2827
2825
  const e = Ye(), n = Dt(), { getMenu: o } = zs(), { getHistoryList: r, getSearchList: s } = kp(), a = E(!0), l = E([]), c = E([]), i = E(!1), u = E(!1);
2828
- X(
2826
+ G(
2829
2827
  () => n.path,
2830
2828
  (g) => {
2831
2829
  i.value = g === Ct;
@@ -2833,7 +2831,7 @@ const Kt = (t, e = "") => {
2833
2831
  {
2834
2832
  immediate: !0
2835
2833
  }
2836
- ), X(
2834
+ ), G(
2837
2835
  () => [i.value, u.value],
2838
2836
  () => {
2839
2837
  M.nav.setConfig({
@@ -2875,7 +2873,7 @@ const Kt = (t, e = "") => {
2875
2873
  getHistoryList: r,
2876
2874
  getSearchList: s
2877
2875
  });
2878
- const I = K().subAppList ?? [];
2876
+ const I = J().subAppList ?? [];
2879
2877
  I.length && (I.forEach((T) => {
2880
2878
  T.menus = [], T.originalMenus = [];
2881
2879
  }), ke([{ key: "subAppList", value: I }])), d.value = !0;
@@ -2903,7 +2901,7 @@ const Kt = (t, e = "") => {
2903
2901
  }, hp = () => {
2904
2902
  const { entryMenu: t } = rn();
2905
2903
  M.menu.addEventListener("onItemClick", async (e) => {
2906
- q.innerSet = !0;
2904
+ le.innerSet = !0;
2907
2905
  const n = Me(zt(e.applicationCode)).filter((o) => !o.disable && !o.expired).find((o) => o.code === e.code);
2908
2906
  if (!(n && !n.routeUrl)) {
2909
2907
  if (!n) {
@@ -2917,7 +2915,7 @@ const Kt = (t, e = "") => {
2917
2915
  }, gp = () => {
2918
2916
  const { changeApp: t, deleteApp: e, beforeEntryApp: n } = vt();
2919
2917
  M.nav.addEventListener("onItemClick", async (r) => {
2920
- const s = K().currentSubAppCode ?? "";
2918
+ const s = J().currentSubAppCode ?? "";
2921
2919
  if (s !== r.code) {
2922
2920
  if (s && Wi(s), !r.fixed && !await n(r))
2923
2921
  throw new Error("取消切换");
@@ -2925,7 +2923,7 @@ const Kt = (t, e = "") => {
2925
2923
  }
2926
2924
  }), M.nav.addEventListener("onItemRemove", (r) => {
2927
2925
  var i;
2928
- const s = K();
2926
+ const s = J();
2929
2927
  if (!((i = s.subAppList) != null && i.length) || s.subAppList.findIndex((u) => u.code === r.code) === -1) return;
2930
2928
  const c = (ve().tabMap[r.code] ?? []).map((u) => u.code);
2931
2929
  c && c.length && Ut(r.code, c), e(r);
@@ -2935,20 +2933,20 @@ const Kt = (t, e = "") => {
2935
2933
  }, mp = () => {
2936
2934
  const t = Ye(), e = "#666666", n = "#FAFAFA", o = "#D9D9D9", r = E(e), s = E(n), a = E(o);
2937
2935
  let l = "", c = {};
2938
- X(
2936
+ G(
2939
2937
  () => t.currentRoute.value,
2940
2938
  async (f) => {
2941
- var I, S, T, x, Q, V, J;
2939
+ var I, S, T, x, Q, V, q;
2942
2940
  const _ = ((I = f.meta) == null ? void 0 : I.showLayout) ?? !0;
2943
2941
  let y = ((S = f.query) == null ? void 0 : S.showLayout) ?? !0;
2944
2942
  if (y === "false" && (y = !1), !_ || !y || f.path === l && _n(f.query, c)) return;
2945
2943
  l = dt(f.path), c = dt(f.query);
2946
- const w = K().currentSubAppCode ?? "";
2944
+ const w = J().currentSubAppCode ?? "";
2947
2945
  if (!w) return;
2948
2946
  const C = ((T = f.query) == null ? void 0 : T.menu) ?? ((x = ve()) == null ? void 0 : x.currentCode) ?? "";
2949
2947
  if (!C) return;
2950
2948
  const k = JSON.parse(sessionStorage.getItem("tabStyle") || "{}") || {};
2951
- k && JSON.stringify(k) !== "{}" && (r.value = (Q = k[w][C]) != null && Q.fontColor ? k[w][C].fontColor : e, s.value = (V = k[w][C]) != null && V.backgroundColor ? k[w][C].backgroundColor : n, a.value = (J = k[w][C]) != null && J.backgroundColor ? k[w][C].backgroundColor : o);
2949
+ k && JSON.stringify(k) !== "{}" && (r.value = (Q = k[w][C]) != null && Q.fontColor ? k[w][C].fontColor : e, s.value = (V = k[w][C]) != null && V.backgroundColor ? k[w][C].backgroundColor : n, a.value = (q = k[w][C]) != null && q.backgroundColor ? k[w][C].backgroundColor : o);
2952
2950
  }
2953
2951
  );
2954
2952
  const { deleteApp: i } = vt(), { entryMenu: u } = rn(), { reloadRoute: h, unloadRoute: d } = ns(), p = (f) => {
@@ -2960,13 +2958,13 @@ const Kt = (t, e = "") => {
2960
2958
  const _ = f.map((y) => y.path);
2961
2959
  d(_);
2962
2960
  }, A = (f) => {
2963
- const _ = K().currentSubAppCode ?? "";
2964
- q.innerSet = !0;
2961
+ const _ = J().currentSubAppCode ?? "";
2962
+ le.innerSet = !0;
2965
2963
  const y = ve(), w = y.tabMap[_], C = w.findIndex((Q) => Q.code === f.data.code);
2966
2964
  if (C === -1) return;
2967
2965
  const k = () => {
2968
- var J;
2969
- let V = (((J = K().appcategorys) == null ? void 0 : J.map((le) => le.apps).flat()) ?? []).find((le) => le.code === _);
2966
+ var q;
2967
+ let V = (((q = J().appcategorys) == null ? void 0 : q.map((ce) => ce.apps).flat()) ?? []).find((ce) => ce.code === _);
2970
2968
  V = { ...V, value: V.code, label: V.name }, i(V), M.nav.removeItem(_);
2971
2969
  };
2972
2970
  ({
@@ -2976,8 +2974,8 @@ const Kt = (t, e = "") => {
2976
2974
  return;
2977
2975
  }
2978
2976
  const V = y.currentCode;
2979
- let J = null;
2980
- V === Q.value && (C + 1 === w.length ? w[C - 1] && (J = w[C - 1]) : w[C + 1] && (J = w[C + 1])), w.splice(C, 1), g([Q]), Ae([{ key: `tabMap:${_}`, value: w }]), J ? p(J) : Ae([{ key: `preTab:${_}`, value: {} }]);
2977
+ let q = null;
2978
+ V === Q.value && (C + 1 === w.length ? w[C - 1] && (q = w[C - 1]) : w[C + 1] && (q = w[C + 1])), w.splice(C, 1), g([Q]), Ae([{ key: `tabMap:${_}`, value: w }]), q ? p(q) : Ae([{ key: `preTab:${_}`, value: {} }]);
2981
2979
  },
2982
2980
  all: k,
2983
2981
  other: async (Q) => {
@@ -2986,8 +2984,8 @@ const Kt = (t, e = "") => {
2986
2984
  path: `/${V.applicationPath}${V.path}`.replace(/\/\//g, "/"),
2987
2985
  query: V.query
2988
2986
  }), M.menu.setActiveItem(V.menuId), M.tab.setActiveItem(V.code);
2989
- const J = w.filter((le) => le.code !== Q.value);
2990
- J.forEach((le) => M.tab.removeItem(le.code)), g(J), Ae([{ key: `tabMap:${_}`, value: [V] }]), p(V);
2987
+ const q = w.filter((ce) => ce.code !== Q.value);
2988
+ q.forEach((ce) => M.tab.removeItem(ce.code)), g(q), Ae([{ key: `tabMap:${_}`, value: [V] }]), p(V);
2991
2989
  },
2992
2990
  right: async (Q) => {
2993
2991
  const V = y.currentCode;
@@ -2995,15 +2993,15 @@ const Kt = (t, e = "") => {
2995
2993
  const Ie = w[C];
2996
2994
  p(Ie);
2997
2995
  }
2998
- const J = w.slice(C + 1);
2999
- J.forEach((le) => M.tab.removeItem(le.code)), g(J), w.splice(C + 1), Ae([{ key: `tabMap:${_}`, value: w }]);
2996
+ const q = w.slice(C + 1);
2997
+ q.forEach((ce) => M.tab.removeItem(ce.code)), g(q), w.splice(C + 1), Ae([{ key: `tabMap:${_}`, value: w }]);
3000
2998
  }
3001
2999
  })[f.type](f.data);
3002
3000
  };
3003
3001
  M.tab.addEventListener("onItemClick", async (f) => {
3004
- ve().currentCode !== f.currentCode && (q.innerSet = !0, p(f));
3002
+ ve().currentCode !== f.currentCode && (le.innerSet = !0, p(f));
3005
3003
  }), M.tab.addEventListener("onItemRemove", (f) => {
3006
- const _ = ve(), y = K().currentSubAppCode ?? "";
3004
+ const _ = ve(), y = J().currentSubAppCode ?? "";
3007
3005
  _.tabMap[y].findIndex((k) => k.code === f.code) !== -1 && (Ut(f.applicationCode, [f.code]), A({ type: "me", data: f }));
3008
3006
  }), M.tab.addEventListener("onMenuClick", (f) => {
3009
3007
  let _ = [];
@@ -3032,7 +3030,7 @@ const Kt = (t, e = "") => {
3032
3030
  return M.tab.addEventListener("onToggleFullScreen", m), { fontColor: r, backgroudColor: s, borderColor: a };
3033
3031
  }, gn = tt(), Jo = (gn == null ? void 0 : gn.isAutoCloseApp) ?? !0, Ko = location.href.includes("showLayout=false"), Go = window.self !== window.top, vp = () => {
3034
3032
  const t = () => {
3035
- ce.unloadAllMicroApp(), M.nav.setItems([]), M.menu.setItems([]), M.tab.setItems([]), Pr();
3033
+ re.unloadAllMicroApp(), M.nav.setItems([]), M.menu.setItems([]), M.tab.setItems([]), Pr();
3036
3034
  };
3037
3035
  window.addEventListener("beforeunload", function(e) {
3038
3036
  if (!(Ko || !Jo || Go) && window.__isAutoCloseApp) {
@@ -3046,9 +3044,11 @@ const Kt = (t, e = "") => {
3046
3044
  window.__isAutoCloseApp = !0;
3047
3045
  return;
3048
3046
  }
3049
- const n = K();
3047
+ const n = J();
3050
3048
  n.subAppList && n.subAppList.length && sessionStorage.setItem("has-subapp", "true"), t();
3051
- }), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`), sessionStorage.removeItem("has-subapp"));
3049
+ }), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`), sessionStorage.removeItem("has-subapp")), re.addEventListenerFromMicroApp("system-reload", () => {
3050
+ t(), window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`);
3051
+ });
3052
3052
  }, vt = () => {
3053
3053
  const t = Ye(), { entryMenu: e } = rn(), { unloadRoute: n } = ns();
3054
3054
  let { mainAppName: o = "", microAppName: r = "", microApps: s = [] } = tt();
@@ -3057,7 +3057,7 @@ const Kt = (t, e = "") => {
3057
3057
  M.menu.setItems([]), M.menu.setActiveItem(""), M.tab.setItems([]), M.tab.setActiveItem("");
3058
3058
  }, c = async (d) => {
3059
3059
  if (d.routeUrl && !a.includes(d.routeUrl)) return !0;
3060
- const p = d.code ?? "", A = (K().subAppList ?? []).find((w) => w.code === p);
3060
+ const p = d.code ?? "", A = (J().subAppList ?? []).find((w) => w.code === p);
3061
3061
  let m = [], f = [], _ = !1;
3062
3062
  if (A && (m = A.menus ?? []), !m.length) {
3063
3063
  const { menus: w, originalMenus: C, err: k } = await Xn(p);
@@ -3068,20 +3068,20 @@ const Kt = (t, e = "") => {
3068
3068
  const y = { ...d, menus: m, originalMenus: f };
3069
3069
  return ke([{ key: "subAppList", value: y }]), !0;
3070
3070
  }, i = async (d) => {
3071
- var V, J, le, Ie, Rt;
3071
+ var V, q, ce, Ie, Rt;
3072
3072
  const { microApp: p = null, menuCode: g = "", menuPath: A = "", route: m = {} } = d;
3073
3073
  let f = m;
3074
3074
  if (l(), !p && A) {
3075
- if (!(a && a.find((re) => A.startsWith("/" + re) || A.startsWith(re)))) return;
3076
- q.innerSet && t.push({ path: A, query: f.query });
3075
+ if (!(a && a.find((oe) => A.startsWith("/" + oe) || A.startsWith(oe)))) return;
3076
+ t.push({ path: A, query: f.query });
3077
3077
  return;
3078
3078
  }
3079
3079
  const _ = ((V = f.meta) == null ? void 0 : V.showLayout) ?? !0;
3080
- let y = ((J = f.query) == null ? void 0 : J.showLayout) ?? !0;
3080
+ let y = ((q = f.query) == null ? void 0 : q.showLayout) ?? !0;
3081
3081
  y === "false" && (y = !1);
3082
3082
  const w = (p == null ? void 0 : p.openType) ?? 1, C = (p == null ? void 0 : p.type) ?? 1;
3083
3083
  if (p.routeUrl && !a.includes(p.routeUrl)) {
3084
- const pe = ((le = K()) == null ? void 0 : le.subAppList) ?? [];
3084
+ const pe = ((ce = J()) == null ? void 0 : ce.subAppList) ?? [];
3085
3085
  if ((pe == null ? void 0 : pe.find((_e) => _e.code === p.code)) || pe == null || pe.push(p), ke([
3086
3086
  { key: "currentSubApp", value: p },
3087
3087
  { key: "currentSubAppCode", value: p.code },
@@ -3089,13 +3089,13 @@ const Kt = (t, e = "") => {
3089
3089
  ]), pe.forEach((_e) => {
3090
3090
  const ze = { ..._e, value: _e.code, label: _e.name };
3091
3091
  M.nav.appendItem(ze);
3092
- }), M.nav.setActiveItem(p.code), ce.hideAllMicroApp(), p.routeUrl.includes("entrance=main")) {
3093
- q.innerSet && t.push({ path: p.routeUrl, query: { ...f.query, app: p.code } });
3092
+ }), M.nav.setActiveItem(p.code), re.hideAllMicroApp(), p.routeUrl.includes("entrance=main")) {
3093
+ t.push({ path: p.routeUrl, query: { ...f.query, app: p.code } });
3094
3094
  return;
3095
3095
  }
3096
3096
  if (w === 1 && C === 2) {
3097
3097
  const _e = En(bn(wn(p.routeUrl)));
3098
- q.innerSet && t.push({
3098
+ t.push({
3099
3099
  path: ct,
3100
3100
  query: {
3101
3101
  ...f.query,
@@ -3118,15 +3118,15 @@ const Kt = (t, e = "") => {
3118
3118
  query: { ...x, app: S.applicationCode, menu: S.code },
3119
3119
  meta: { ...(f == null ? void 0 : f.meta) ?? {} }
3120
3120
  }), I && (I == null ? void 0 : I.code) !== (p == null ? void 0 : p.code)) {
3121
- if (I.fixed && (M.menu.setItems([]), M.tab.setItems([]), q.innerSet && t.push(I.path), M.nav.setActiveItem(I.path), ce.hideAllMicroApp()), !I.fixed) {
3122
- const pe = (Ie = K().subAppList) == null ? void 0 : Ie.find((ze) => ze.code === I.code), re = ve().preTab[I.code], _e = { ...(re == null ? void 0 : re.query) ?? {} };
3123
- await i({ microApp: pe, menuCode: (re == null ? void 0 : re.code) ?? "", route: { query: _e } });
3121
+ if (I.fixed && (M.menu.setItems([]), M.tab.setItems([]), t.push(I.path), M.nav.setActiveItem(I.path), re.hideAllMicroApp()), !I.fixed) {
3122
+ const pe = (Ie = J().subAppList) == null ? void 0 : Ie.find((ze) => ze.code === I.code), oe = ve().preTab[I.code], _e = { ...(oe == null ? void 0 : oe.query) ?? {} };
3123
+ await i({ microApp: pe, menuCode: (oe == null ? void 0 : oe.code) ?? "", route: { query: _e } });
3124
3124
  }
3125
3125
  return;
3126
3126
  }
3127
3127
  const Q = I || p;
3128
3128
  if (!S && A) {
3129
- q.innerSet && t.push({
3129
+ t.push({
3130
3130
  path: A,
3131
3131
  query: {
3132
3132
  ...f.query,
@@ -3136,34 +3136,34 @@ const Kt = (t, e = "") => {
3136
3136
  return;
3137
3137
  }
3138
3138
  if (_ && y) {
3139
- (Rt = K().subAppList) == null || Rt.forEach((re) => {
3140
- const _e = { ...re, value: re.code, label: re.name };
3139
+ (Rt = J().subAppList) == null || Rt.forEach((oe) => {
3140
+ const _e = { ...oe, value: oe.code, label: oe.name };
3141
3141
  M.nav.appendItem(_e);
3142
3142
  }), M.nav.setActiveItem(Q.code), M.menu.setItems(k);
3143
3143
  const pe = ve().tabMap[Q.code] ?? [];
3144
- pe.length && pe.forEach((re) => {
3144
+ pe.length && pe.forEach((oe) => {
3145
3145
  M.tab.appendItem({
3146
- ...re,
3147
- value: re.code,
3148
- label: re.name
3146
+ ...oe,
3147
+ value: oe.code,
3148
+ label: oe.name
3149
3149
  });
3150
3150
  });
3151
3151
  }
3152
3152
  e({ currentMenu: S, microPath: T, route: f });
3153
3153
  }, u = async (d) => {
3154
3154
  var p;
3155
- if (q.innerSet = !0, d.fixed) {
3156
- M.menu.setItems([]), M.tab.setItems([]), q.innerSet && t.push(d.path), M.nav.setActiveItem(d.path), ke([
3155
+ if (le.innerSet = !0, d.fixed) {
3156
+ M.menu.setItems([]), M.tab.setItems([]), t.push(d.path), M.nav.setActiveItem(d.path), ke([
3157
3157
  { key: "currentSubAppCode", value: "" },
3158
3158
  { key: "currentSubApp", value: {} }
3159
3159
  ]), Ae([
3160
3160
  { key: "currentCode", value: "" },
3161
3161
  { key: "currentTab", value: {} }
3162
- ]), ce.hideAllMicroApp();
3162
+ ]), re.hideAllMicroApp();
3163
3163
  return;
3164
3164
  }
3165
3165
  if (!d.fixed) {
3166
- const g = (p = K().subAppList) == null ? void 0 : p.find((_) => _.code === d.code), A = ve().preTab[d.code], m = (A == null ? void 0 : A.code) ?? "", f = { ...(A == null ? void 0 : A.query) ?? {} };
3166
+ const g = (p = J().subAppList) == null ? void 0 : p.find((_) => _.code === d.code), A = ve().preTab[d.code], m = (A == null ? void 0 : A.code) ?? "", f = { ...(A == null ? void 0 : A.query) ?? {} };
3167
3167
  await i({ microApp: g, menuCode: m, route: { query: f } });
3168
3168
  }
3169
3169
  };
@@ -3173,7 +3173,7 @@ const Kt = (t, e = "") => {
3173
3173
  changeApp: u,
3174
3174
  deleteApp: async (d) => {
3175
3175
  var f;
3176
- const p = K();
3176
+ const p = J();
3177
3177
  if (!((f = p.subAppList) != null && f.length)) return;
3178
3178
  const g = p.subAppList.findIndex((_) => _.code === d.code);
3179
3179
  if (g === -1) return;
@@ -3192,7 +3192,7 @@ const Kt = (t, e = "") => {
3192
3192
  }
3193
3193
  if (!p.subAppList.length) {
3194
3194
  const _ = Ir[1];
3195
- M.menu.setItems([]), M.tab.setItems([]), ce.unloadAllMicroApp(), u(_), Fn(), Sr();
3195
+ M.menu.setItems([]), M.tab.setItems([]), re.unloadAllMicroApp(), u(_), Fn(), Sr();
3196
3196
  }
3197
3197
  }
3198
3198
  };
@@ -3209,18 +3209,18 @@ const Kt = (t, e = "") => {
3209
3209
  if (u === 1)
3210
3210
  if (h === 1)
3211
3211
  if (a.routeUrl.startsWith(ct)) {
3212
- ce.hideAllMicroApp(), d = ct;
3212
+ re.hideAllMicroApp(), d = ct;
3213
3213
  const m = Fs(a.routeUrl, "iframeSrc");
3214
- i = { ...i, iframeSrc: m }, q.innerSet && t.push({ path: d, query: i });
3215
- } else a.applicationPath && (d = c || a.routeUrl, d = `/${a.applicationPath}${d}`.replace(/\/\//g, "/"), q.innerSet && t.push({ path: d, query: i }));
3214
+ i = { ...i, iframeSrc: m }, t.push({ path: d, query: i });
3215
+ } else a.applicationPath && (d = c || a.routeUrl, d = `/${a.applicationPath}${d}`.replace(/\/\//g, "/"), t.push({ path: d, query: i }));
3216
3216
  else {
3217
- ce.hideAllMicroApp(), d = ct;
3217
+ re.hideAllMicroApp(), d = ct;
3218
3218
  const m = En(bn(wn(a.routeUrl)));
3219
- i = { ...i, iframeSrc: m }, q.innerSet && t.push({ path: d, query: i });
3219
+ i = { ...i, iframeSrc: m }, t.push({ path: d, query: i });
3220
3220
  }
3221
3221
  if (u === 2) {
3222
3222
  let m = h === 1 ? `/${a.applicationPath}${a.routeUrl}`.replace(/\/\//g, "/") : a.routeUrl;
3223
- m = En(bn(wn(m))), q.innerSet ? (ce.hideAllMicroApp(), d = Tr, q.innerSet && t.push({ path: d, query: i }), m && window.open(m, "_blank")) : h === 1 && (d = m, i = { ...i, showLayout: !1 }, q.innerSet && t.push({
3223
+ m = En(bn(wn(m))), le.innerSet ? (re.hideAllMicroApp(), d = Tr, t.push({ path: d, query: i }), m && window.open(m, "_blank")) : h === 1 && (d = m, i = { ...i, showLayout: !1 }, t.push({
3224
3224
  path: d,
3225
3225
  query: i
3226
3226
  }));
@@ -3229,7 +3229,7 @@ const Kt = (t, e = "") => {
3229
3229
  let g = (i == null ? void 0 : i.showLayout) ?? !0;
3230
3230
  if (g === "false" && (g = !1), p && g) {
3231
3231
  const m = {
3232
- currentApplication: K().currentSubApp.routeUrl,
3232
+ currentApplication: J().currentSubApp.routeUrl,
3233
3233
  applicationPath: a.applicationPath,
3234
3234
  applicationCode: a.applicationCode,
3235
3235
  menuId: a.id,
@@ -3269,7 +3269,7 @@ const Kt = (t, e = "") => {
3269
3269
  u === "false" && (u = !1);
3270
3270
  const h = async () => {
3271
3271
  var T, x;
3272
- let I = K().appcategorys ?? [];
3272
+ let I = J().appcategorys ?? [];
3273
3273
  if (!Array.isArray(I)) return [];
3274
3274
  if (i.query) {
3275
3275
  const Q = ((T = i.query) == null ? void 0 : T.project) ?? ((x = i.query) == null ? void 0 : x.projectId) ?? "";
@@ -3295,7 +3295,7 @@ const Kt = (t, e = "") => {
3295
3295
  return;
3296
3296
  }
3297
3297
  }
3298
- const g = await h(), A = g.map((I) => I.code), m = ((y = i.query) == null ? void 0 : y.app) ?? "", f = ((w = K()) == null ? void 0 : w.subAppList) ?? [];
3298
+ const g = await h(), A = g.map((I) => I.code), m = ((y = i.query) == null ? void 0 : y.app) ?? "", f = ((w = J()) == null ? void 0 : w.subAppList) ?? [];
3299
3299
  if (f.length) {
3300
3300
  const I = f.filter((T) => T.code !== m && !A.includes(T.code)), S = f.filter(
3301
3301
  (T) => m === T.code || A.includes(T.code)
@@ -3317,7 +3317,7 @@ const Kt = (t, e = "") => {
3317
3317
  i = {}, x && (i.path = `/${x.applicationPath}${x.path}`.replace(/\/\//g, "/"), i.query = x.query);
3318
3318
  }
3319
3319
  }
3320
- I != null && I.fixed ? (M.menu.setItems([]), M.tab.setItems([]), r.push(I.path), M.nav.setActiveItem(I.path), ce.hideAllMicroApp()) : o({ microApp: I, menuCode: i.query.menu, menuPath: i.path, route: i });
3320
+ I != null && I.fixed ? (M.menu.setItems([]), M.tab.setItems([]), r.push(I.path), M.nav.setActiveItem(I.path), re.hideAllMicroApp()) : o({ microApp: I, menuCode: i.query.menu, menuPath: i.path, route: i });
3321
3321
  return;
3322
3322
  } else {
3323
3323
  const I = d && d.find(
@@ -3337,10 +3337,10 @@ const Kt = (t, e = "") => {
3337
3337
  }
3338
3338
  }
3339
3339
  const _ = t.value.find((I) => I.path === location.pathname);
3340
- _ && M.nav.setActiveItem(_.path), (k = (C = K()) == null ? void 0 : C.subAppList) == null || k.forEach((I) => {
3340
+ _ && M.nav.setActiveItem(_.path), (k = (C = J()) == null ? void 0 : C.subAppList) == null || k.forEach((I) => {
3341
3341
  const S = { ...I, value: I.code, label: I.name };
3342
3342
  M.nav.appendItem(S);
3343
- }), M.menu.setItems([]), M.tab.setItems([]), ce.hideAllMicroApp(), ke([
3343
+ }), M.menu.setItems([]), M.tab.setItems([]), re.hideAllMicroApp(), ke([
3344
3344
  { key: "currentSubAppCode", value: "" },
3345
3345
  { key: "currentSubApp", value: {} }
3346
3346
  ]), Ae([
@@ -3349,12 +3349,12 @@ const Kt = (t, e = "") => {
3349
3349
  ]);
3350
3350
  };
3351
3351
  let a = "", l = {};
3352
- X(
3352
+ G(
3353
3353
  () => r.currentRoute.value,
3354
3354
  async (c) => {
3355
3355
  if (!(c.path === a && _n(c.query, l))) {
3356
- if (a = dt(c.path), l = dt(c.query), await n(), q.innerSet) {
3357
- q.innerSet = !1;
3356
+ if (a = dt(c.path), l = dt(c.query), await n(), le.innerSet) {
3357
+ le.innerSet = !1;
3358
3358
  return;
3359
3359
  }
3360
3360
  s(c);
@@ -3362,12 +3362,12 @@ const Kt = (t, e = "") => {
3362
3362
  }
3363
3363
  );
3364
3364
  }, ns = () => ({ reloadRoute: (n) => {
3365
- q.excludeRoutes = Array.from(/* @__PURE__ */ new Set([...q.excludeRoutes, ...n])), q.routeKeepAliveVisible = !1, setTimeout(() => {
3366
- q.routeKeepAliveVisible = !0, q.excludeRoutes = [];
3365
+ le.excludeRoutes = Array.from(/* @__PURE__ */ new Set([...le.excludeRoutes, ...n])), le.routeKeepAliveVisible = !1, setTimeout(() => {
3366
+ le.routeKeepAliveVisible = !0, le.excludeRoutes = [];
3367
3367
  }, 300);
3368
3368
  }, unloadRoute: (n) => {
3369
- q.excludeRoutes = Array.from(/* @__PURE__ */ new Set([...q.excludeRoutes, ...n])), q.routeKeepAliveVisible = !1, setTimeout(() => {
3370
- q.routeKeepAliveVisible = !0, q.excludeRoutes = [];
3369
+ le.excludeRoutes = Array.from(/* @__PURE__ */ new Set([...le.excludeRoutes, ...n])), le.routeKeepAliveVisible = !1, setTimeout(() => {
3370
+ le.routeKeepAliveVisible = !0, le.excludeRoutes = [];
3371
3371
  }, 100);
3372
3372
  } }), yp = () => {
3373
3373
  const t = Bs(), e = lp(), n = tt(), o = {
@@ -3387,7 +3387,7 @@ const Kt = (t, e = "") => {
3387
3387
  const i = Object.keys(c).map((h) => `${h}=${c[h]}`).join("&"), u = `${n.baseURL}${o.logout}?${i}`;
3388
3388
  window.__isAutoCloseApp = !1, location.replace(u), sessionStorage.clear(), Ks(), localStorage.removeItem("idelTime");
3389
3389
  }, { entryApp: s } = vt(), a = async () => {
3390
- const l = "personCenter", i = (K().appcategorys || []).map((g) => g.apps).flat(), { originalMenus: u = [] } = await Xn(l), d = Me(u).filter((g) => g.isMenu && g.routeUrl).find((g) => g.routeUrl === "/userInfo");
3390
+ const l = "personCenter", i = (J().appcategorys || []).map((g) => g.apps).flat(), { originalMenus: u = [] } = await Xn(l), d = Me(u).filter((g) => g.isMenu && g.routeUrl).find((g) => g.routeUrl === "/userInfo");
3391
3391
  if (d != null && d.disable || d != null && d.expired) {
3392
3392
  const { title: g, content: A, desc: m } = await Zn(d);
3393
3393
  await Et({ title: g, content: A, desc: m });
@@ -3480,7 +3480,7 @@ const Kt = (t, e = "") => {
3480
3480
  return;
3481
3481
  }
3482
3482
  await Tp().run({ searchVal: s, clickData: r });
3483
- const i = ((K().appcategorys ?? []).map((u) => u.apps).flat() ?? []).find((u) => u.code === r.applicationCode);
3483
+ const i = ((J().appcategorys ?? []).map((u) => u.apps).flat() ?? []).find((u) => u.code === r.applicationCode);
3484
3484
  i && (n({ microApp: i, menuCode: r.code }), a());
3485
3485
  }), M.nav.addEventListener("deleteSearchItem", async (o) => {
3486
3486
  const { value: r, cb: s } = o;
@@ -3492,14 +3492,14 @@ const Kt = (t, e = "") => {
3492
3492
  getHistoryList: t,
3493
3493
  getSearchList: e
3494
3494
  };
3495
- }, q = je({
3495
+ }, le = je({
3496
3496
  /** 菜单或者应用跳转是否通过触发界面调用的 */
3497
3497
  innerSet: !1,
3498
3498
  excludeRoutes: [],
3499
3499
  routeKeepAliveVisible: !0
3500
3500
  }), Pp = () => {
3501
- ce.addEventListenerFromMicroApp("iot:change-instance", (t) => {
3502
- const e = K(), n = e.currentSubAppCode;
3501
+ re.addEventListenerFromMicroApp("iot:change-instance", (t) => {
3502
+ const e = J(), n = e.currentSubAppCode;
3503
3503
  let o = zt(n);
3504
3504
  o.forEach((s) => {
3505
3505
  s.fixed && (s.name = t.data.instanceInfo.instanceName);
@@ -3520,27 +3520,27 @@ const Kt = (t, e = "") => {
3520
3520
  });
3521
3521
  }, Lp = (t) => {
3522
3522
  ["personcenter", "rightmanage"].forEach((n) => {
3523
- ce.addEventListenerFromMicroApp(`${n}:change-userinfo`, (o) => {
3523
+ re.addEventListenerFromMicroApp(`${n}:change-userinfo`, (o) => {
3524
3524
  const { userInfo: r } = o.data, s = r != null && r.headPicture ? Mn(r.headPicture) : void 0;
3525
3525
  M.nav.setUserInfo({ headPicture: s, commandList: t.value }), sessionStorage.setItem("userInfo", JSON.stringify(r));
3526
3526
  });
3527
3527
  });
3528
3528
  }, $p = () => {
3529
- ce.addEventListenerFromMicroApp("devicePanelShow", (t) => {
3529
+ re.addEventListenerFromMicroApp("devicePanelShow", (t) => {
3530
3530
  const { deviceId: e = "", panelCode: n = "", deviceName: o = "", x: r = 0, y: s = 0, isCenter: a = !1 } = t.data;
3531
3531
  gr(e, n, o, r, s, a);
3532
- }), ce.addEventListenerFromMicroApp("closeDevicePanel", (t) => {
3532
+ }), re.addEventListenerFromMicroApp("closeDevicePanel", (t) => {
3533
3533
  Ys();
3534
- }), ce.addEventListenerFromMicroApp("alarmDevicePanelShow", (t) => {
3534
+ }), re.addEventListenerFromMicroApp("alarmDevicePanelShow", (t) => {
3535
3535
  const { deviceId: e = "", panelCode: n = "", alarmTime: o = "" } = t.data;
3536
3536
  ea(e, n, o);
3537
- }), ce.addEventListenerFromMicroApp("closeAlarmPanel", (t) => {
3537
+ }), re.addEventListenerFromMicroApp("closeAlarmPanel", (t) => {
3538
3538
  ta();
3539
3539
  });
3540
3540
  }, Dp = Qn.get("/platform/login/pwd-advance-notify-check"), Mp = () => {
3541
3541
  const t = E([]), e = E(null), n = E([]), { entryApp: o } = qt.hooks.useEntryApp(), r = () => {
3542
3542
  var c;
3543
- const l = (((c = K().appcategorys) == null ? void 0 : c.map((i) => i.apps).flat()) ?? []).find((i) => i.code === "messagecenter");
3543
+ const l = (((c = J().appcategorys) == null ? void 0 : c.map((i) => i.apps).flat()) ?? []).find((i) => i.code === "messagecenter");
3544
3544
  l && o({ microApp: l });
3545
3545
  }, s = () => {
3546
3546
  e.value = new Hn({
@@ -3550,7 +3550,7 @@ const Kt = (t, e = "") => {
3550
3550
  await Dp().run();
3551
3551
  },
3552
3552
  message: async (a) => {
3553
- if (ce.sendMessageToMicroApp("enterpriseadmin/messagecenter", "message", { msgList: a }), window.self !== window.top) return;
3553
+ if (re.sendMessageToMicroApp("enterpriseadmin/messagecenter", "message", { msgList: a }), window.self !== window.top) return;
3554
3554
  const c = Fe().id;
3555
3555
  t.value = a.filter(
3556
3556
  (i) => i.projectId === c || i.projectId === 0 || i.projectId === "0"
@@ -3607,7 +3607,7 @@ function Xo(t) {
3607
3607
  function Qp(t) {
3608
3608
  return rs.post(`/device/video/url/preview?${ss(t)}`)().run();
3609
3609
  }
3610
- const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
3610
+ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ ne({
3611
3611
  __name: "GridItem",
3612
3612
  props: {
3613
3613
  active: { type: Boolean },
@@ -3641,7 +3641,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
3641
3641
  /* CLASS, NEED_HYDRATION */
3642
3642
  ));
3643
3643
  }
3644
- }), Hp = /* @__PURE__ */ Ce(Np, [["__scopeId", "data-v-2e9b0fda"]]), Up = { class: "layout-wrapper" }, Fp = /* @__PURE__ */ oe({
3644
+ }), Hp = /* @__PURE__ */ Ce(Np, [["__scopeId", "data-v-2e9b0fda"]]), Up = { class: "layout-wrapper" }, Fp = /* @__PURE__ */ ne({
3645
3645
  __name: "GridLayout",
3646
3646
  props: {
3647
3647
  gridNum: {},
@@ -3677,7 +3677,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
3677
3677
  ))
3678
3678
  ]));
3679
3679
  }
3680
- }), Vp = /* @__PURE__ */ Ce(Fp, [["__scopeId", "data-v-d36ddc74"]]), Wp = /* @__PURE__ */ oe({
3680
+ }), Vp = /* @__PURE__ */ Ce(Fp, [["__scopeId", "data-v-d36ddc74"]]), Wp = /* @__PURE__ */ ne({
3681
3681
  __name: "DirectionControl",
3682
3682
  emits: ["change"],
3683
3683
  setup(t, { emit: e }) {
@@ -3795,7 +3795,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
3795
3795
  null,
3796
3796
  -1
3797
3797
  /* HOISTED */
3798
- )), of = { class: "video-bottom_r" }, rf = /* @__PURE__ */ oe({
3798
+ )), of = { class: "video-bottom_r" }, rf = /* @__PURE__ */ ne({
3799
3799
  __name: "index",
3800
3800
  props: {
3801
3801
  videoUrl: {},
@@ -3844,28 +3844,28 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
3844
3844
  }, f = (y) => {
3845
3845
  o("zoomControl", y);
3846
3846
  }, _ = (y) => n.authType.includes(y);
3847
- return X(
3847
+ return G(
3848
3848
  () => c.value,
3849
3849
  () => {
3850
3850
  c.value && c.value.addEventListener("ended", () => {
3851
3851
  i.value = !0, n.type === "playback" && (u.value = !1);
3852
3852
  });
3853
3853
  }
3854
- ), X(
3854
+ ), G(
3855
3855
  () => c.value,
3856
3856
  () => {
3857
3857
  c.value && Qe(() => {
3858
3858
  c.value.playbackRate = n.playbackRate || 1;
3859
3859
  });
3860
3860
  }
3861
- ), X(
3861
+ ), G(
3862
3862
  () => s.value,
3863
3863
  () => {
3864
3864
  s.value && Qe(() => {
3865
3865
  s.value.muted = r.value;
3866
3866
  });
3867
3867
  }
3868
- ), X(
3868
+ ), G(
3869
3869
  () => n.playbackRate,
3870
3870
  () => {
3871
3871
  c.value && (c.value.playbackRate = n.playbackRate || 1);
@@ -3873,12 +3873,12 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
3873
3873
  {
3874
3874
  immediate: !0
3875
3875
  }
3876
- ), X(
3876
+ ), G(
3877
3877
  () => n.paused,
3878
3878
  () => {
3879
3879
  s.value && (n.paused ? s.value.pause() : s.value.play());
3880
3880
  }
3881
- ), X(
3881
+ ), G(
3882
3882
  () => n.videoUrl,
3883
3883
  () => {
3884
3884
  u.value = !1, Qe(() => {
@@ -4011,7 +4011,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
4011
4011
  }, 8, ["spinning"])
4012
4012
  ]));
4013
4013
  }
4014
- }), sf = /* @__PURE__ */ Ce(rf, [["__scopeId", "data-v-866a3799"]]), af = /* @__PURE__ */ oe({
4014
+ }), sf = /* @__PURE__ */ Ce(rf, [["__scopeId", "data-v-866a3799"]]), af = /* @__PURE__ */ ne({
4015
4015
  props: {
4016
4016
  deviceInfo: {
4017
4017
  type: Object,
@@ -4049,7 +4049,7 @@ const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ oe({
4049
4049
  };
4050
4050
  return Ve(() => {
4051
4051
  s();
4052
- }), X(() => n.value, () => {
4052
+ }), G(() => n.value, () => {
4053
4053
  s();
4054
4054
  }, {
4055
4055
  deep: !0
@@ -4107,7 +4107,7 @@ const lf = /* @__PURE__ */ O(
4107
4107
  "视频监控",
4108
4108
  -1
4109
4109
  /* HOISTED */
4110
- ), uf = /* @__PURE__ */ oe({
4110
+ ), uf = /* @__PURE__ */ ne({
4111
4111
  __name: "index",
4112
4112
  props: {
4113
4113
  deviceList: { default: () => [] },
@@ -4376,18 +4376,18 @@ class ie {
4376
4376
  throw new Error(`Unknown ${o} value: ${e}.`);
4377
4377
  }
4378
4378
  }
4379
- class ne {
4379
+ class te {
4380
4380
  // react-native has a window but no document so we should check both
4381
4381
  static get isBrowser() {
4382
- return !ne.isNode && typeof window == "object" && typeof window.document == "object";
4382
+ return !te.isNode && typeof window == "object" && typeof window.document == "object";
4383
4383
  }
4384
4384
  // WebWorkers don't have a window object so the isBrowser check would fail
4385
4385
  static get isWebWorker() {
4386
- return !ne.isNode && typeof self == "object" && "importScripts" in self;
4386
+ return !te.isNode && typeof self == "object" && "importScripts" in self;
4387
4387
  }
4388
4388
  // react-native has a window but no document
4389
4389
  static get isReactNative() {
4390
- return !ne.isNode && typeof window == "object" && typeof window.document > "u";
4390
+ return !te.isNode && typeof window == "object" && typeof window.document > "u";
4391
4391
  }
4392
4392
  // Node apps shouldn't have a window object, but WebWorkers don't either
4393
4393
  // so we need to check for both WebWorker and window
@@ -4463,7 +4463,7 @@ class Xt {
4463
4463
  }
4464
4464
  function pt() {
4465
4465
  let t = "X-SignalR-User-Agent";
4466
- return ne.isNode && (t = "User-Agent"), [t, bf(vf, wf(), If(), Cf())];
4466
+ return te.isNode && (t = "User-Agent"), [t, bf(vf, wf(), If(), Cf())];
4467
4467
  }
4468
4468
  function bf(t, e, n, o) {
4469
4469
  let r = "Microsoft SignalR/";
@@ -4471,7 +4471,7 @@ function bf(t, e, n, o) {
4471
4471
  return r += `${s[0]}.${s[1]}`, r += ` (${t}; `, e && e !== "" ? r += `${e}; ` : r += "Unknown OS; ", r += `${n}`, o ? r += `; ${o}` : r += "; Unknown Runtime Version", r += ")", r;
4472
4472
  }
4473
4473
  function wf() {
4474
- if (ne.isNode)
4474
+ if (te.isNode)
4475
4475
  switch (process.platform) {
4476
4476
  case "win32":
4477
4477
  return "Windows NT";
@@ -4486,11 +4486,11 @@ function wf() {
4486
4486
  return "";
4487
4487
  }
4488
4488
  function Cf() {
4489
- if (ne.isNode)
4489
+ if (te.isNode)
4490
4490
  return process.versions.node;
4491
4491
  }
4492
4492
  function If() {
4493
- return ne.isNode ? "NodeJS" : "Browser";
4493
+ return te.isNode ? "NodeJS" : "Browser";
4494
4494
  }
4495
4495
  function mn(t) {
4496
4496
  return t.stack ? t.stack : t.message ? t.message : `${t}`;
@@ -4508,7 +4508,7 @@ function Tf() {
4508
4508
  }
4509
4509
  class Ef extends sn {
4510
4510
  constructor(e) {
4511
- if (super(), this._logger = e, typeof fetch > "u" || ne.isNode) {
4511
+ if (super(), this._logger = e, typeof fetch > "u" || te.isNode) {
4512
4512
  const n = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
4513
4513
  this._jar = new (n("tough-cookie")).CookieJar(), typeof fetch > "u" ? this._fetchType = n("node-fetch") : this._fetchType = fetch, this._fetchType = n("fetch-cookie")(this._fetchType, this._jar);
4514
4514
  } else
@@ -4569,7 +4569,7 @@ class Ef extends sn {
4569
4569
  }
4570
4570
  getCookieString(e) {
4571
4571
  let n = "";
4572
- return ne.isNode && this._jar && this._jar.getCookies(e, (o, r) => n = r.join("; ")), n;
4572
+ return te.isNode && this._jar && this._jar.getCookies(e, (o, r) => n = r.join("; ")), n;
4573
4573
  }
4574
4574
  }
4575
4575
  function Yo(t, e) {
@@ -4618,7 +4618,7 @@ class Sf extends sn {
4618
4618
  class kf extends sn {
4619
4619
  /** Creates a new instance of the {@link @microsoft/signalr.DefaultHttpClient}, using the provided {@link @microsoft/signalr.ILogger} to log messages. */
4620
4620
  constructor(e) {
4621
- if (super(), typeof fetch < "u" || ne.isNode)
4621
+ if (super(), typeof fetch < "u" || te.isNode)
4622
4622
  this._httpClient = new Ef(e);
4623
4623
  else if (typeof XMLHttpRequest < "u")
4624
4624
  this._httpClient = new Sf(e);
@@ -4794,10 +4794,10 @@ class Df {
4794
4794
  }
4795
4795
  }
4796
4796
  const Mf = 30 * 1e3, Of = 15 * 1e3, Bf = 1e5;
4797
- var ee;
4797
+ var Y;
4798
4798
  (function(t) {
4799
4799
  t.Disconnected = "Disconnected", t.Connecting = "Connecting", t.Connected = "Connected", t.Disconnecting = "Disconnecting", t.Reconnecting = "Reconnecting";
4800
- })(ee || (ee = {}));
4800
+ })(Y || (Y = {}));
4801
4801
  class eo {
4802
4802
  /** @internal */
4803
4803
  // Using a public static factory method means we can have a private constructor and an _internal_
@@ -4810,7 +4810,7 @@ class eo {
4810
4810
  constructor(e, n, o, r, s, a, l) {
4811
4811
  this._nextKeepAlive = 0, this._freezeEventListener = () => {
4812
4812
  this._logger.log(b.Warning, "The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep");
4813
- }, ie.isRequired(e, "connection"), ie.isRequired(n, "logger"), ie.isRequired(o, "protocol"), this.serverTimeoutInMilliseconds = s ?? Mf, this.keepAliveIntervalInMilliseconds = a ?? Of, this._statefulReconnectBufferSize = l ?? Bf, this._logger = n, this._protocol = o, this.connection = e, this._reconnectPolicy = r, this._handshakeProtocol = new Pf(), this.connection.onreceive = (c) => this._processIncomingData(c), this.connection.onclose = (c) => this._connectionClosed(c), this._callbacks = {}, this._methods = {}, this._closedCallbacks = [], this._reconnectingCallbacks = [], this._reconnectedCallbacks = [], this._invocationId = 0, this._receivedHandshakeResponse = !1, this._connectionState = ee.Disconnected, this._connectionStarted = !1, this._cachedPingMessage = this._protocol.writeMessage({ type: U.Ping });
4813
+ }, ie.isRequired(e, "connection"), ie.isRequired(n, "logger"), ie.isRequired(o, "protocol"), this.serverTimeoutInMilliseconds = s ?? Mf, this.keepAliveIntervalInMilliseconds = a ?? Of, this._statefulReconnectBufferSize = l ?? Bf, this._logger = n, this._protocol = o, this.connection = e, this._reconnectPolicy = r, this._handshakeProtocol = new Pf(), this.connection.onreceive = (c) => this._processIncomingData(c), this.connection.onclose = (c) => this._connectionClosed(c), this._callbacks = {}, this._methods = {}, this._closedCallbacks = [], this._reconnectingCallbacks = [], this._reconnectedCallbacks = [], this._invocationId = 0, this._receivedHandshakeResponse = !1, this._connectionState = Y.Disconnected, this._connectionStarted = !1, this._cachedPingMessage = this._protocol.writeMessage({ type: U.Ping });
4814
4814
  }
4815
4815
  /** Indicates the state of the {@link HubConnection} to the server. */
4816
4816
  get state() {
@@ -4832,7 +4832,7 @@ class eo {
4832
4832
  * @param {string} url The url to connect to.
4833
4833
  */
4834
4834
  set baseUrl(e) {
4835
- if (this._connectionState !== ee.Disconnected && this._connectionState !== ee.Reconnecting)
4835
+ if (this._connectionState !== Y.Disconnected && this._connectionState !== Y.Reconnecting)
4836
4836
  throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");
4837
4837
  if (!e)
4838
4838
  throw new Error("The HubConnection url must be a valid url.");
@@ -4846,13 +4846,13 @@ class eo {
4846
4846
  return this._startPromise = this._startWithStateTransitions(), this._startPromise;
4847
4847
  }
4848
4848
  async _startWithStateTransitions() {
4849
- if (this._connectionState !== ee.Disconnected)
4849
+ if (this._connectionState !== Y.Disconnected)
4850
4850
  return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));
4851
- this._connectionState = ee.Connecting, this._logger.log(b.Debug, "Starting HubConnection.");
4851
+ this._connectionState = Y.Connecting, this._logger.log(b.Debug, "Starting HubConnection.");
4852
4852
  try {
4853
- await this._startInternal(), ne.isBrowser && window.document.addEventListener("freeze", this._freezeEventListener), this._connectionState = ee.Connected, this._connectionStarted = !0, this._logger.log(b.Debug, "HubConnection connected successfully.");
4853
+ await this._startInternal(), te.isBrowser && window.document.addEventListener("freeze", this._freezeEventListener), this._connectionState = Y.Connected, this._connectionStarted = !0, this._logger.log(b.Debug, "HubConnection connected successfully.");
4854
4854
  } catch (e) {
4855
- return this._connectionState = ee.Disconnected, this._logger.log(b.Debug, `HubConnection failed to start successfully because of error '${e}'.`), Promise.reject(e);
4855
+ return this._connectionState = Y.Disconnected, this._logger.log(b.Debug, `HubConnection failed to start successfully because of error '${e}'.`), Promise.reject(e);
4856
4856
  }
4857
4857
  }
4858
4858
  async _startInternal() {
@@ -4891,12 +4891,12 @@ class eo {
4891
4891
  }
4892
4892
  }
4893
4893
  _stopInternal(e) {
4894
- if (this._connectionState === ee.Disconnected)
4894
+ if (this._connectionState === Y.Disconnected)
4895
4895
  return this._logger.log(b.Debug, `Call to HubConnection.stop(${e}) ignored because it is already in the disconnected state.`), Promise.resolve();
4896
- if (this._connectionState === ee.Disconnecting)
4896
+ if (this._connectionState === Y.Disconnecting)
4897
4897
  return this._logger.log(b.Debug, `Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`), this._stopPromise;
4898
4898
  const n = this._connectionState;
4899
- return this._connectionState = ee.Disconnecting, this._logger.log(b.Debug, "Stopping HubConnection."), this._reconnectDelayHandle ? (this._logger.log(b.Debug, "Connection stopped during reconnect delay. Done reconnecting."), clearTimeout(this._reconnectDelayHandle), this._reconnectDelayHandle = void 0, this._completeClose(), Promise.resolve()) : (n === ee.Connected && this._sendCloseMessage(), this._cleanupTimeout(), this._cleanupPingTimer(), this._stopDuringStartError = e || new $e("The connection was stopped before the hub handshake could complete."), this.connection.stop(e));
4899
+ return this._connectionState = Y.Disconnecting, this._logger.log(b.Debug, "Stopping HubConnection."), this._reconnectDelayHandle ? (this._logger.log(b.Debug, "Connection stopped during reconnect delay. Done reconnecting."), clearTimeout(this._reconnectDelayHandle), this._reconnectDelayHandle = void 0, this._completeClose(), Promise.resolve()) : (n === Y.Connected && this._sendCloseMessage(), this._cleanupTimeout(), this._cleanupPingTimer(), this._stopDuringStartError = e || new $e("The connection was stopped before the hub handshake could complete."), this.connection.stop(e));
4900
4900
  }
4901
4901
  async _sendCloseMessage() {
4902
4902
  try {
@@ -5083,7 +5083,7 @@ class eo {
5083
5083
  if ((!this.connection.features || !this.connection.features.inherentKeepAlive) && (this._timeoutHandle = setTimeout(() => this.serverTimeout(), this.serverTimeoutInMilliseconds), this._pingServerHandle === void 0)) {
5084
5084
  let e = this._nextKeepAlive - (/* @__PURE__ */ new Date()).getTime();
5085
5085
  e < 0 && (e = 0), this._pingServerHandle = setTimeout(async () => {
5086
- if (this._connectionState === ee.Connected)
5086
+ if (this._connectionState === Y.Connected)
5087
5087
  try {
5088
5088
  await this._sendMessage(this._cachedPingMessage);
5089
5089
  } catch {
@@ -5114,11 +5114,11 @@ class eo {
5114
5114
  c ? await this._sendWithProtocol(c) : s ? (l ? c = this._createCompletionMessage(e.invocationId, `${l}`, null) : a !== void 0 ? c = this._createCompletionMessage(e.invocationId, null, a) : (this._logger.log(b.Warning, `No result given for '${n}' method and invocation ID '${e.invocationId}'.`), c = this._createCompletionMessage(e.invocationId, "Client didn't provide a result.", null)), await this._sendWithProtocol(c)) : a && this._logger.log(b.Error, `Result given for '${n}' method but server is not expecting a result.`);
5115
5115
  }
5116
5116
  _connectionClosed(e) {
5117
- this._logger.log(b.Debug, `HubConnection.connectionClosed(${e}) called while in state ${this._connectionState}.`), this._stopDuringStartError = this._stopDuringStartError || e || new $e("The underlying connection was closed before the hub handshake could complete."), this._handshakeResolver && this._handshakeResolver(), this._cancelCallbacksWithError(e || new Error("Invocation canceled due to the underlying connection being closed.")), this._cleanupTimeout(), this._cleanupPingTimer(), this._connectionState === ee.Disconnecting ? this._completeClose(e) : this._connectionState === ee.Connected && this._reconnectPolicy ? this._reconnect(e) : this._connectionState === ee.Connected && this._completeClose(e);
5117
+ this._logger.log(b.Debug, `HubConnection.connectionClosed(${e}) called while in state ${this._connectionState}.`), this._stopDuringStartError = this._stopDuringStartError || e || new $e("The underlying connection was closed before the hub handshake could complete."), this._handshakeResolver && this._handshakeResolver(), this._cancelCallbacksWithError(e || new Error("Invocation canceled due to the underlying connection being closed.")), this._cleanupTimeout(), this._cleanupPingTimer(), this._connectionState === Y.Disconnecting ? this._completeClose(e) : this._connectionState === Y.Connected && this._reconnectPolicy ? this._reconnect(e) : this._connectionState === Y.Connected && this._completeClose(e);
5118
5118
  }
5119
5119
  _completeClose(e) {
5120
5120
  if (this._connectionStarted) {
5121
- this._connectionState = ee.Disconnected, this._connectionStarted = !1, this._messageBuffer && (this._messageBuffer._dispose(e ?? new Error("Connection closed.")), this._messageBuffer = void 0), ne.isBrowser && window.document.removeEventListener("freeze", this._freezeEventListener);
5121
+ this._connectionState = Y.Disconnected, this._connectionStarted = !1, this._messageBuffer && (this._messageBuffer._dispose(e ?? new Error("Connection closed.")), this._messageBuffer = void 0), te.isBrowser && window.document.removeEventListener("freeze", this._freezeEventListener);
5122
5122
  try {
5123
5123
  this._closedCallbacks.forEach((n) => n.apply(this, [e]));
5124
5124
  } catch (n) {
@@ -5133,13 +5133,13 @@ class eo {
5133
5133
  this._logger.log(b.Debug, "Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."), this._completeClose(e);
5134
5134
  return;
5135
5135
  }
5136
- if (this._connectionState = ee.Reconnecting, e ? this._logger.log(b.Information, `Connection reconnecting because of error '${e}'.`) : this._logger.log(b.Information, "Connection reconnecting."), this._reconnectingCallbacks.length !== 0) {
5136
+ if (this._connectionState = Y.Reconnecting, e ? this._logger.log(b.Information, `Connection reconnecting because of error '${e}'.`) : this._logger.log(b.Information, "Connection reconnecting."), this._reconnectingCallbacks.length !== 0) {
5137
5137
  try {
5138
5138
  this._reconnectingCallbacks.forEach((a) => a.apply(this, [e]));
5139
5139
  } catch (a) {
5140
5140
  this._logger.log(b.Error, `An onreconnecting callback called with error '${e}' threw error '${a}'.`);
5141
5141
  }
5142
- if (this._connectionState !== ee.Reconnecting) {
5142
+ if (this._connectionState !== Y.Reconnecting) {
5143
5143
  this._logger.log(b.Debug, "Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");
5144
5144
  return;
5145
5145
  }
@@ -5147,12 +5147,12 @@ class eo {
5147
5147
  for (; s !== null; ) {
5148
5148
  if (this._logger.log(b.Information, `Reconnect attempt number ${o} will start in ${s} ms.`), await new Promise((a) => {
5149
5149
  this._reconnectDelayHandle = setTimeout(a, s);
5150
- }), this._reconnectDelayHandle = void 0, this._connectionState !== ee.Reconnecting) {
5150
+ }), this._reconnectDelayHandle = void 0, this._connectionState !== Y.Reconnecting) {
5151
5151
  this._logger.log(b.Debug, "Connection left the reconnecting state during reconnect delay. Done reconnecting.");
5152
5152
  return;
5153
5153
  }
5154
5154
  try {
5155
- if (await this._startInternal(), this._connectionState = ee.Connected, this._logger.log(b.Information, "HubConnection reconnected successfully."), this._reconnectedCallbacks.length !== 0)
5155
+ if (await this._startInternal(), this._connectionState = Y.Connected, this._logger.log(b.Information, "HubConnection reconnected successfully."), this._reconnectedCallbacks.length !== 0)
5156
5156
  try {
5157
5157
  this._reconnectedCallbacks.forEach((a) => a.apply(this, [this.connection.connectionId]));
5158
5158
  } catch (a) {
@@ -5160,8 +5160,8 @@ class eo {
5160
5160
  }
5161
5161
  return;
5162
5162
  } catch (a) {
5163
- if (this._logger.log(b.Information, `Reconnect attempt failed because of error '${a}'.`), this._connectionState !== ee.Reconnecting) {
5164
- this._logger.log(b.Debug, `Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`), this._connectionState === ee.Disconnecting && this._completeClose();
5163
+ if (this._logger.log(b.Information, `Reconnect attempt failed because of error '${a}'.`), this._connectionState !== Y.Reconnecting) {
5164
+ this._logger.log(b.Debug, `Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`), this._connectionState === Y.Disconnecting && this._completeClose();
5165
5165
  return;
5166
5166
  }
5167
5167
  r = a instanceof Error ? a : new Error(a.toString()), s = this._getNextRetryDelay(o++, Date.now() - n, r);
@@ -5434,7 +5434,7 @@ class jf {
5434
5434
  return;
5435
5435
  }
5436
5436
  let a;
5437
- if (ne.isBrowser || ne.isWebWorker)
5437
+ if (te.isBrowser || te.isWebWorker)
5438
5438
  a = new this._options.EventSource(e, { withCredentials: this._options.withCredentials });
5439
5439
  else {
5440
5440
  const l = this._httpClient.getCookieString(e), c = {};
@@ -5484,7 +5484,7 @@ class Nf {
5484
5484
  let a;
5485
5485
  const l = this._httpClient.getCookieString(e);
5486
5486
  let c = !1;
5487
- if (ne.isNode || ne.isReactNative) {
5487
+ if (te.isNode || te.isReactNative) {
5488
5488
  const i = {}, [u, h] = pt();
5489
5489
  i[u] = h, o && (i[Ge.Authorization] = `Bearer ${o}`), l && (i[Ge.Cookie] = l), a = new this._webSocketConstructor(e, void 0, {
5490
5490
  headers: { ...i, ...this._headers }
@@ -5540,11 +5540,11 @@ class Hf {
5540
5540
  throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");
5541
5541
  n.timeout = n.timeout === void 0 ? 100 * 1e3 : n.timeout;
5542
5542
  let o = null, r = null;
5543
- if (ne.isNode && typeof require < "u") {
5543
+ if (te.isNode && typeof require < "u") {
5544
5544
  const s = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
5545
5545
  o = s("ws"), r = s("eventsource");
5546
5546
  }
5547
- !ne.isNode && typeof WebSocket < "u" && !n.WebSocket ? n.WebSocket = WebSocket : ne.isNode && !n.WebSocket && o && (n.WebSocket = o), !ne.isNode && typeof EventSource < "u" && !n.EventSource ? n.EventSource = EventSource : ne.isNode && !n.EventSource && typeof r < "u" && (n.EventSource = r), this._httpClient = new xf(n.httpClient || new kf(this._logger), n.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = n, this.onreceive = null, this.onclose = null;
5547
+ !te.isNode && typeof WebSocket < "u" && !n.WebSocket ? n.WebSocket = WebSocket : te.isNode && !n.WebSocket && o && (n.WebSocket = o), !te.isNode && typeof EventSource < "u" && !n.EventSource ? n.EventSource = EventSource : te.isNode && !n.EventSource && typeof r < "u" && (n.EventSource = r), this._httpClient = new xf(n.httpClient || new kf(this._logger), n.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = n, this.onreceive = null, this.onclose = null;
5548
5548
  }
5549
5549
  async start(e) {
5550
5550
  if (e = e || ge.Binary, ie.isIn(e, ge, "transferFormat"), this._logger.log(b.Debug, `Starting connection with transfer format '${ge[e]}'.`), this._connectionState !== "Disconnected")
@@ -5752,7 +5752,7 @@ class Hf {
5752
5752
  _resolveUrl(e) {
5753
5753
  if (e.lastIndexOf("https://", 0) === 0 || e.lastIndexOf("http://", 0) === 0)
5754
5754
  return e;
5755
- if (!ne.isBrowser)
5755
+ if (!te.isBrowser)
5756
5756
  throw new Error(`Cannot resolve '${e}'.`);
5757
5757
  const n = window.document.createElement("a");
5758
5758
  return n.href = e, this._logger.log(b.Information, `Normalizing '${e}' to '${n.href}'.`), n.href;
@@ -6012,7 +6012,7 @@ const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.g
6012
6012
  }
6013
6013
  }, l = async (_) => {
6014
6014
  var C;
6015
- const y = K(), w = ((C = y.appcategorys) == null ? void 0 : C.map((k) => k.apps).flat()) || [];
6015
+ const y = J(), w = ((C = y.appcategorys) == null ? void 0 : C.map((k) => k.apps).flat()) || [];
6016
6016
  if (Array.isArray(_)) {
6017
6017
  const k = _.filter((I) => I.code).map((I) => I.code);
6018
6018
  if (_.length) {
@@ -6098,7 +6098,7 @@ const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.g
6098
6098
  }), {};
6099
6099
  }, cn = "v1", rh = ft(`/api/fms/report/${cn}`), no = ft(`/api/emergency/manage/${cn}`), sh = jn.get("/permissionset/user-portal-menu"), cs = ft(`/api/alarm/config/${cn}`), ah = ft(`/api/alarm/run-time/${cn}`), ih = cs.get("/alarm-definition/status-option"), ch = ah.post("/record/handling"), lh = cs.get("/alarm-level/prompttone"), uh = rh.get("/alarm/rule/list"), dh = hr.get("/controller/space-children-all-type"), ph = hr.get("/controller/fuzzy-area-small"), fh = no.get("/emergency-event/event/type"), hh = no.get("/emergency-event/event/level"), gh = no.get("/emergency-plan/plan/handle-time"), mh = { class: "handle-alarm-container" }, vh = { class: "select-check" }, Ah = { class: "form-box" }, yh = { class: "select-check" }, _h = { style: { "margin-left": "8px" } }, bh = { class: "foot-btn-box" }, wh = {
6100
6100
  name: "handleAlarm"
6101
- }, Ch = /* @__PURE__ */ oe({
6101
+ }, Ch = /* @__PURE__ */ ne({
6102
6102
  ...wh,
6103
6103
  props: {
6104
6104
  projectId: { default: "" },
@@ -6173,25 +6173,25 @@ const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.g
6173
6173
  if (D) return {};
6174
6174
  Q.value = P.data.filter((L) => L.status), Q.value.length > 0 && (i.value.workOrderRules = Q.value[0].id);
6175
6175
  };
6176
- X(c, (D) => {
6177
- D || (re(), _e());
6178
- }), X(
6176
+ G(c, (D) => {
6177
+ D || (oe(), _e());
6178
+ }), G(
6179
6179
  k,
6180
6180
  (D) => {
6181
6181
  D ? (C.value = !0, i.value.customPath = N("选填").value) : (C.value = !1, i.value.customPath = "");
6182
6182
  },
6183
6183
  { immediate: !0 }
6184
- ), X(
6184
+ ), G(
6185
6185
  x,
6186
6186
  (D) => {
6187
6187
  D ? (i.value.reportTheme = N("告警对象").value, T.value = !0) : (_.value = "请输入", i.value.reportTheme = "", T.value = !1);
6188
6188
  },
6189
6189
  { immediate: !0 }
6190
6190
  );
6191
- const J = (D) => {
6191
+ const q = (D) => {
6192
6192
  var P;
6193
6193
  return (P = a.value) == null ? void 0 : P.parentNode.parentNode;
6194
- }, le = (D) => {
6194
+ }, ce = (D) => {
6195
6195
  u.value.reportTheme = "";
6196
6196
  }, Ie = (D, P) => {
6197
6197
  P.length > 0 && (m.value = P[0].path), i.value.reportPosition = D, w.value = "";
@@ -6199,7 +6199,7 @@ const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.g
6199
6199
  D && (u.value.reportPosition = "", m.value = ""), D ? (i.value.reportPosition = null, m.value = "", f.value = "告警对象位置") : (i.value.reportPosition = null, m.value = "", f.value = "请选择");
6200
6200
  }, pe = (D) => {
6201
6201
  D && (u.value.reportTheme = ""), D ? (i.value.reportTheme = "", _.value = "告警对象") : (i.value.reportTheme = "", _.value = "请输入");
6202
- }, re = () => {
6202
+ }, oe = () => {
6203
6203
  u.value.processTypeId = "", u.value.reason = "", u.value.treatmentPlan = "", u.value.reportPosition = "", u.value.reportTheme = "", u.value.workOrderRules = "", u.value.eventTypeId = "", u.value.eventLevelId = "", u.value.timeLimit = "";
6204
6204
  }, _e = () => {
6205
6205
  i.value.processTypeId = "confirm", i.value.reason = "", i.value.treatmentPlan = "", i.value.remarks = "", i.value.reportPosition = "", i.value.reportTheme = "", i.value.workOrderRules = null, k.value = !0, x.value = !0, T.value = !0, i.value.reportTheme = N("告警对象").value, m.value = "", f.value = "告警对象位置", _.value = "请输入", i.value.eventTypeId = "", i.value.eventLevelId = null, i.value.timeLimit = "", i.value.interval = 1, d.value = [], p.value = [];
@@ -6227,7 +6227,7 @@ const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.g
6227
6227
  if (P) return {};
6228
6228
  i.value.interval = L.handleTimeUnit, L.handleTimeUnit == 3 ? i.value.timeLimit = "" : i.value.timeLimit = L.handleTime;
6229
6229
  }, us = (D) => {
6230
- re();
6230
+ oe();
6231
6231
  }, ds = async () => {
6232
6232
  const D = {
6233
6233
  logic: !1,
@@ -6381,7 +6381,7 @@ const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.g
6381
6381
  col: 1,
6382
6382
  optionsLabelKey: "name",
6383
6383
  optionsValueKey: "id",
6384
- "get-popup-container": J,
6384
+ "get-popup-container": q,
6385
6385
  marginBottom: "30px",
6386
6386
  marginRight: "0",
6387
6387
  onChange: us
@@ -6510,7 +6510,7 @@ const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.g
6510
6510
  modelValue: i.value.reportTheme,
6511
6511
  "onUpdate:modelValue": P[14] || (P[14] = (L) => i.value.reportTheme = L),
6512
6512
  placeholder: _.value,
6513
- onChange: le
6513
+ onChange: ce
6514
6514
  }, null, 8, ["disabled", "modelValue", "placeholder"]),
6515
6515
  R(v(fo), {
6516
6516
  modelValue: x.value,
@@ -6547,7 +6547,7 @@ const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.g
6547
6547
  col: 1,
6548
6548
  optionsLabelKey: "name",
6549
6549
  optionsValueKey: "id",
6550
- "get-popup-container": J,
6550
+ "get-popup-container": q,
6551
6551
  marginBottom: "0px",
6552
6552
  marginRight: "0"
6553
6553
  }, null, 8, ["label", "modelValue", "error", "options"])) : j("v-if", !0),
@@ -6565,7 +6565,7 @@ const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.g
6565
6565
  col: 1,
6566
6566
  optionsLabelKey: "typeName",
6567
6567
  optionsValueKey: "id",
6568
- "get-popup-container": J,
6568
+ "get-popup-container": q,
6569
6569
  marginBottom: "30px",
6570
6570
  marginRight: "0",
6571
6571
  onChange: P[21] || (P[21] = (L) => ze("eventTypeId"))
@@ -6583,7 +6583,7 @@ const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.g
6583
6583
  col: 1,
6584
6584
  optionsLabelKey: "name",
6585
6585
  optionsValueKey: "id",
6586
- "get-popup-container": J,
6586
+ "get-popup-container": q,
6587
6587
  marginBottom: "30px",
6588
6588
  marginRight: "0",
6589
6589
  onChange: P[24] || (P[24] = (L) => ze("eventLevelId"))
@@ -6617,7 +6617,7 @@ const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.g
6617
6617
  options: g.value,
6618
6618
  "border-type": "underline",
6619
6619
  size: "small",
6620
- "get-popup-container": J,
6620
+ "get-popup-container": q,
6621
6621
  onChange: P[26] || (P[26] = (L) => ze("interval")),
6622
6622
  placeholder: "请选择"
6623
6623
  }, null, 8, ["modelValue", "options"])
@@ -6660,7 +6660,7 @@ const th = et(`/api/tool/event-bus/${an}/`), vn = th.post("/publish"), nh = xn.g
6660
6660
  /* HOISTED */
6661
6661
  ), $h = { class: "content-box" }, Dh = { class: "alarm-msg-line" }, Mh = { class: "alarm-msg-line-left" }, Oh = { class: "alarm-msg-line" }, Bh = { class: "alarm-msg-line-left" }, Rh = { class: "alarm-msg-line-right alarm-content-object" }, xh = { class: "alarm-msg-line" }, Qh = { class: "alarm-msg-line-left" }, jh = { class: "alarm-msg-line-right alarm-content" }, Nh = { class: "btn-box" }, Hh = {
6662
6662
  name: "alarm"
6663
- }, Uh = /* @__PURE__ */ oe({
6663
+ }, Uh = /* @__PURE__ */ ne({
6664
6664
  ...Hh,
6665
6665
  props: {
6666
6666
  alarmhandle: { type: Boolean, default: !1 },
@@ -6826,7 +6826,7 @@ const Vh = () => {
6826
6826
  loop: !1
6827
6827
  // 轮播-无限次播放
6828
6828
  });
6829
- ce.addEventListenerFromMicroApp("alarm:change-alarmconfig", (S) => {
6829
+ re.addEventListenerFromMicroApp("alarm:change-alarmconfig", (S) => {
6830
6830
  const { isRealTimeAlarm: T, audioPlay: x } = S.data;
6831
6831
  T != null && (l.value = T), x != null && (c.value = x, c.value || w());
6832
6832
  });
@@ -6838,7 +6838,7 @@ const Vh = () => {
6838
6838
  gr(S.equipmentCode, S.equipmentPanelCode);
6839
6839
  }, { handleAlarmVue: p } = Th(n, r), g = async () => {
6840
6840
  var x;
6841
- const T = (((x = K().appcategorys) == null ? void 0 : x.map((Q) => Q.apps).flat()) ?? []).find((Q) => Q.code === "alarm");
6841
+ const T = (((x = J().appcategorys) == null ? void 0 : x.map((Q) => Q.apps).flat()) ?? []).find((Q) => Q.code === "alarm");
6842
6842
  T && h({ microApp: T, menuPath: `/${T.routeUrl}/realTimeAlarm` });
6843
6843
  }, A = [], m = (S) => {
6844
6844
  if (A.push(S), s.value.length < 2) {
@@ -6926,12 +6926,12 @@ const Vh = () => {
6926
6926
  Q && t.value.send(Q);
6927
6927
  },
6928
6928
  message: async (Q) => {
6929
- ce.sendMessageToMicroApp("enterpriseadmin/alarm", "alarmmessage", { alarmMessage: Q }), Q.messageType === "ADD" && (e.value = e.value + 1, Q.coverId || m(Q)), Q.messageType === "DELETE" && (e.value = e.value - 1, i.value.playId == Q.recordId && w());
6929
+ re.sendMessageToMicroApp("enterpriseadmin/alarm", "alarmmessage", { alarmMessage: Q }), Q.messageType === "ADD" && (e.value = e.value + 1, Q.coverId || m(Q)), Q.messageType === "DELETE" && (e.value = e.value - 1, i.value.playId == Q.recordId && w());
6930
6930
  }
6931
6931
  }));
6932
6932
  }
6933
6933
  };
6934
- }, Wh = ["src", "muted", "loop"], zh = /* @__PURE__ */ oe({
6934
+ }, Wh = ["src", "muted", "loop"], zh = /* @__PURE__ */ ne({
6935
6935
  __name: "index",
6936
6936
  setup(t) {
6937
6937
  const { alarmSocket: e, creatAlarmSocket: n, audioObj: o, audioAlarmRef: r, handleAlarmVue: s } = Vh();
@@ -6958,10 +6958,10 @@ const Vh = () => {
6958
6958
  /* STABLE_FRAGMENT */
6959
6959
  ));
6960
6960
  }
6961
- }), qh = { class: "das-main-app-container" }, Jh = /* @__PURE__ */ oe({
6961
+ }), qh = { class: "das-main-app-container" }, Jh = /* @__PURE__ */ ne({
6962
6962
  __name: "index",
6963
6963
  setup(t) {
6964
- const { isFullscreen: e } = ht(), n = H(() => !e.value), o = H(() => q.excludeRoutes), r = H(() => q.routeKeepAliveVisible), s = H(() => ({ mode: Gt.value === 1 ? "vertical" : "inline" })), { initNextTick: a } = dp(), { innerPage: l, commandList: c, initNextTick: i } = pp(a);
6964
+ const { isFullscreen: e } = ht(), n = H(() => !e.value), o = H(() => le.excludeRoutes), r = H(() => le.routeKeepAliveVisible), s = H(() => ({ mode: Gt.value === 1 ? "vertical" : "inline" })), { initNextTick: a } = dp(), { innerPage: l, commandList: c, initNextTick: i } = pp(a);
6965
6965
  Ap(l, a, i), vp(), gp(), wp();
6966
6966
  const { $changePwd: u, $personSetDialog: h } = yp(), { changeEnterprisesVisible: d, userId: p, tenantId: g, changeEnterprise: A } = os();
6967
6967
  hp();
@@ -7019,15 +7019,15 @@ E("@das-fed/web");
7019
7019
  const Gh = [
7020
7020
  {
7021
7021
  path: Ue,
7022
- component: () => import("./index-E3_VNsYI.js")
7022
+ component: () => import("./index-CNuui6rH.js")
7023
7023
  },
7024
7024
  {
7025
7025
  path: ct,
7026
- component: () => import("./index-DCv0mp9Q.js")
7026
+ component: () => import("./index-_67_4aoo.js")
7027
7027
  },
7028
7028
  {
7029
7029
  path: Tr,
7030
- component: () => import("./index-B0_oruhN.js")
7030
+ component: () => import("./index-D_CiHfGN.js")
7031
7031
  }
7032
7032
  ], im = {
7033
7033
  routes: Gh,
@@ -7045,7 +7045,7 @@ export {
7045
7045
  z as B,
7046
7046
  rm as C,
7047
7047
  sm as D,
7048
- te as E,
7048
+ ee as E,
7049
7049
  om as F,
7050
7050
  im as G,
7051
7051
  ct as I,
@@ -7061,7 +7061,7 @@ export {
7061
7061
  Wg as i,
7062
7062
  qg as j,
7063
7063
  Jg as k,
7064
- q as l,
7064
+ le as l,
7065
7065
  Jt as m,
7066
7066
  Kg as n,
7067
7067
  Gg as o,