@das-fed/web 6.4.0-dev.54.3 → 6.4.0-dev.54.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { ref as R, createApp as Vv, reactive as JA, computed as B, defineComponent as fA, watch as C, openBlock as L, createElementBlock as F, Fragment as WA, createBlock as U, TransitionGroup as Ov, normalizeProps as of, mergeProps as we, withCtx as M, renderList as Te, withDirectives as RA, resolveDynamicComponent as Xe, vShow as xA, unref as i, createCommentVNode as k, nextTick as QA, resolveComponent as Rv, createElementVNode as T, normalizeClass as c9, normalizeStyle as Nf, renderSlot as sA, createVNode as g, Transition as an, guardReactiveProps as cn, KeepAlive as sn, h as uA, onBeforeMount as ov, onMounted as SA, onUnmounted as Nv, getCurrentScope as xv, onScopeDispose as Dv, getCurrentInstance as jv, onActivated as Zv, createTextVNode as bA, toDisplayString as S, render as _e, onBeforeUnmount as Me, useCssVars as Tv, withModifiers as XA, toRefs as yv, isRef as Lv } from "vue";
1
+ import { ref as R, createApp as Vv, reactive as JA, computed as B, defineComponent as fA, watch as C, openBlock as L, createElementBlock as F, Fragment as IA, createBlock as U, TransitionGroup as Ov, normalizeProps as of, mergeProps as we, withCtx as M, renderList as Te, withDirectives as RA, resolveDynamicComponent as Xe, vShow as DA, unref as i, createCommentVNode as k, nextTick as QA, resolveComponent as Rv, createElementVNode as T, normalizeClass as c9, normalizeStyle as Nf, renderSlot as sA, createVNode as g, Transition as an, guardReactiveProps as cn, KeepAlive as sn, h as uA, onBeforeMount as ov, onMounted as SA, onUnmounted as Nv, getCurrentScope as xv, onScopeDispose as Dv, getCurrentInstance as jv, onActivated as Zv, createTextVNode as bA, toDisplayString as S, render as _e, onBeforeUnmount as Me, useCssVars as Tv, withModifiers as XA, toRefs as yv, isRef as Lv } from "vue";
2
2
  import { initTheme as Wv, setThemeRule as Iv } from "@das-fed/web/packages/theme/index";
3
3
  import { initI18n as Ev, t as J, i18n as w, setI18nRule as wv } from "@das-fed/web/packages/i18n/index";
4
4
  import { DasWebLayout as kf, DasWebNav as i9, DasWebMenu as s9, DasWebTabs as q9, layout as W, layoutData as m9 } from "@das-fed/web/packages/layout/index";
@@ -10,7 +10,7 @@ import { DasChangeEnterprises as Uv } from "@das-fed/ui/packages/business-compon
10
10
  import { getSubApps as K, getTabInfo as pA, getPersonalInfo as ke, getTenantInfo as Bf, getProjectInfo as UA, getToken as tf, getUserInfo as p9, getMenus as $e } from "@das-fed/utils/common-info";
11
11
  import { pureImageSrc as rf } from "@das-fed/utils/pure-image-src";
12
12
  import { DasNotification as Af } from "@das-fed/ui/packages/components/notification/index";
13
- import { flatTree as IA, filterTreeArray as Jv, isEmpty as Yv, treeFind as qn, setBrowseTitle as Fv, updateFavIcon as hv, dateFormat as Sv, runPromiseByQueue as Kv, objEqual as xf, setShowWatermark as Df, setShowLayout as jf, getUrlParams as Cv, withToken as _v } from "@das-fed/utils/common-tools";
13
+ import { flatTree as EA, filterTreeArray as Jv, isEmpty as Yv, treeFind as qn, setBrowseTitle as Fv, updateFavIcon as hv, dateFormat as Sv, runPromiseByQueue as Kv, objEqual as xf, setShowWatermark as Df, setShowLayout as jf, getUrlParams as Cv, withToken as _v } from "@das-fed/utils/common-tools";
14
14
  import { setProcessEngineProject as H9, setProcessEngineToken as l9 } from "@das-fed/utils/process-engine-info";
15
15
  import { oauthServer as V9, justauth as Qf, enterpriseright as Gf, iotModules as $v, portal as YA, systemConfiguration as Uf } from "@das-fed/utils/api-services/modules";
16
16
  import { createService as ne } from "@das-fed/utils/create-api-service";
@@ -23,7 +23,7 @@ import { DasSpin as Yf } from "@das-fed/ui/packages/components/spin/index";
23
23
  import { DasDialog as Ff } from "@das-fed/ui/packages/components/dialog/index";
24
24
  import { DasButton as hA } from "@das-fed/ui/packages/components/button/index";
25
25
  import { vDasTooltip as v3 } from "@das-fed/ui/packages/components/text-tooltip/index";
26
- import { microFrontend as yA } from "@das-fed/web/packages/micro-frontend/index";
26
+ import { microFrontend as LA } from "@das-fed/web/packages/micro-frontend/index";
27
27
  import { tokenStorage as t3 } from "@das-fed/utils/create-api-service/sso";
28
28
  import { setPersonalInfo as r3 } from "@das-fed/utils/common-info/set-personal-info";
29
29
  import { devicePanelShow as R9, closeDevicePanel as P3, alarmDevicePanelShow as d3, closeAlarmPanel as z3 } from "@das-fed/ui/packages/business-components/device-panel/index";
@@ -42,7 +42,7 @@ import { DasTreeSelect as s3 } from "@das-fed/ui/packages/components/tree-select
42
42
  import { DasInput as mn } from "@das-fed/ui/packages/components/input/index";
43
43
  import { DasCheckbox as pn } from "@das-fed/ui/packages/components/checkbox/index";
44
44
  import { DasForm as q3 } from "@das-fed/ui/packages/components/form/index";
45
- import { DasFormItem as wA } from "@das-fed/ui/packages/components/form-item/index";
45
+ import { DasFormItem as MA } from "@das-fed/ui/packages/components/form-item/index";
46
46
  import { flatTree as m3 } from "@das-fed/utils/common-tools/nest-tree-format";
47
47
  import { setHtmlMinWH as p3 } from "@das-fed/utils/common-tools/setHtmlMinWH";
48
48
  import { createCeNav as H3, createCeTabs as l3, createCeMenu as V3 } from "@das-fed/web-components/das-web-app";
@@ -272,31 +272,31 @@ const ln = (e, A) => {
272
272
  remove: n
273
273
  };
274
274
  }
275
- }, TA = JA({
275
+ }, yA = JA({
276
276
  theme: "default",
277
277
  items: [],
278
278
  collapse: !1,
279
279
  eventListeners: {}
280
280
  }), On = {
281
281
  setItems: (e) => {
282
- TA.items = e;
282
+ yA.items = e;
283
283
  },
284
- getItems: () => TA.items,
284
+ getItems: () => yA.items,
285
285
  setTheme: (e) => {
286
- TA.theme = e;
286
+ yA.theme = e;
287
287
  },
288
288
  setActiveItem: (e) => {
289
- TA.activeItem = e;
289
+ yA.activeItem = e;
290
290
  },
291
291
  setCollapse: (e) => {
292
- TA.collapse = e;
292
+ yA.collapse = e;
293
293
  },
294
294
  setPopupClassName: (e) => {
295
- TA.popupClassName = e;
295
+ yA.popupClassName = e;
296
296
  },
297
297
  triggerEventListener: (e, A, f) => {
298
298
  var r;
299
- const n = TA.eventListeners, { autoRemove: v = !1 } = f || {}, t = [];
299
+ const n = yA.eventListeners, { autoRemove: v = !1 } = f || {}, t = [];
300
300
  for (const d in n) {
301
301
  const z = n[d];
302
302
  z.type === e && t.push(
@@ -309,9 +309,9 @@ const ln = (e, A) => {
309
309
  },
310
310
  addEventListener: (e, A) => {
311
311
  const f = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), n = () => {
312
- TA.eventListeners[f] && delete TA.eventListeners[f];
312
+ yA.eventListeners[f] && delete yA.eventListeners[f];
313
313
  };
314
- return TA.eventListeners[f] = {
314
+ return yA.eventListeners[f] = {
315
315
  type: e,
316
316
  handler: async (v) => {
317
317
  try {
@@ -422,7 +422,7 @@ const ln = (e, A) => {
422
422
  }
423
423
  }, CA = {
424
424
  nav: _,
425
- menu: TA,
425
+ menu: yA,
426
426
  tab: lA,
427
427
  overlay: yf,
428
428
  iframeView: xe,
@@ -517,7 +517,7 @@ const ln = (e, A) => {
517
517
  u.meta.key.includes("0") ? u.meta.key = u.meta.key.replaceAll("0", "1") : u.meta.key = u.meta.key.replaceAll("1", "0");
518
518
  });
519
519
  }), (u, a) => (L(), F(
520
- WA,
520
+ IA,
521
521
  null,
522
522
  [
523
523
  u.needTransition ? (L(), U(
@@ -526,7 +526,7 @@ const ln = (e, A) => {
526
526
  {
527
527
  default: M(() => [
528
528
  (L(!0), F(
529
- WA,
529
+ IA,
530
530
  null,
531
531
  Te(r.value, ({ path: l, meta: m }) => RA((L(), F("div", {
532
532
  class: "das-iframe-router-view",
@@ -537,7 +537,7 @@ const ln = (e, A) => {
537
537
  key: m.key
538
538
  }))
539
539
  ], 8, W3)), [
540
- [xA, m.componentInstance && l === i(v).path]
540
+ [DA, m.componentInstance && l === i(v).path]
541
541
  ])),
542
542
  128
543
543
  /* KEYED_FRAGMENT */
@@ -550,7 +550,7 @@ const ln = (e, A) => {
550
550
  /* FULL_PROPS */
551
551
  )) : k("v-if", !0),
552
552
  u.needTransition ? k("v-if", !0) : (L(!0), F(
553
- WA,
553
+ IA,
554
554
  { key: 1 },
555
555
  Te(r.value, ({ path: l, meta: m }) => RA((L(), F("div", {
556
556
  class: "das-iframe-router-view",
@@ -561,7 +561,7 @@ const ln = (e, A) => {
561
561
  key: m.key
562
562
  }))
563
563
  ], 8, I3)), [
564
- [xA, m.componentInstance && l === i(v).path]
564
+ [DA, m.componentInstance && l === i(v).path]
565
565
  ])),
566
566
  128
567
567
  /* KEYED_FRAGMENT */
@@ -624,8 +624,8 @@ const ln = (e, A) => {
624
624
  app: G
625
625
  } = H;
626
626
  p3(V);
627
- let h = !0, PA = !0, NA = !0;
628
- (j === !1 || D === !1 || D === "false") && (h = !1, PA = !1, NA = !1), (o === !1 || N === !1 || N === "false") && (PA = !1), (Z === !1 || I === !1 || I === "false") && (NA = !1), n.value = h, v.value = PA, t.value = NA;
627
+ let h = !0, PA = !0, xA = !0;
628
+ (j === !1 || D === !1 || D === "false") && (h = !1, PA = !1, xA = !1), (o === !1 || N === !1 || N === "false") && (PA = !1), (Z === !1 || I === !1 || I === "false") && (xA = !1), n.value = h, v.value = PA, t.value = xA;
629
629
  }
630
630
  );
631
631
  const m = B(() => ({
@@ -656,7 +656,7 @@ const ln = (e, A) => {
656
656
  6
657
657
  /* CLASS, STYLE */
658
658
  ), [
659
- [xA, c.value]
659
+ [DA, c.value]
660
660
  ]),
661
661
  r.value ? RA((L(), F(
662
662
  "div",
@@ -667,7 +667,7 @@ const ln = (e, A) => {
667
667
  512
668
668
  /* NEED_PATCH */
669
669
  )), [
670
- [xA, c.value]
670
+ [DA, c.value]
671
671
  ]) : k("v-if", !0),
672
672
  T("div", k3, [
673
673
  d.value ? RA((L(), F(
@@ -679,7 +679,7 @@ const ln = (e, A) => {
679
679
  512
680
680
  /* NEED_PATCH */
681
681
  )), [
682
- [xA, c.value]
682
+ [DA, c.value]
683
683
  ]) : k("v-if", !0),
684
684
  T("div", Q3, [
685
685
  z.value ? RA((L(), F(
@@ -691,7 +691,7 @@ const ln = (e, A) => {
691
691
  512
692
692
  /* NEED_PATCH */
693
693
  )), [
694
- [xA, c.value]
694
+ [DA, c.value]
695
695
  ]) : k("v-if", !0),
696
696
  T("div", U3, [
697
697
  RA(T(
@@ -703,7 +703,7 @@ const ln = (e, A) => {
703
703
  512
704
704
  /* NEED_PATCH */
705
705
  ), [
706
- [xA, c.value]
706
+ [DA, c.value]
707
707
  ]),
708
708
  T("div", Y3, [
709
709
  RA(T(
@@ -791,14 +791,14 @@ const ln = (e, A) => {
791
791
  512
792
792
  /* NEED_PATCH */
793
793
  ), [
794
- [xA, i(f).meta.isIframe]
794
+ [DA, i(f).meta.isIframe]
795
795
  ])
796
796
  ], !0)
797
797
  ],
798
798
  512
799
799
  /* NEED_PATCH */
800
800
  ), [
801
- [xA, P.value]
801
+ [DA, P.value]
802
802
  ]),
803
803
  RA(T(
804
804
  "div",
@@ -809,7 +809,7 @@ const ln = (e, A) => {
809
809
  512
810
810
  /* NEED_PATCH */
811
811
  ), [
812
- [xA, !P.value]
812
+ [DA, !P.value]
813
813
  ])
814
814
  ])
815
815
  ])
@@ -956,7 +956,7 @@ const ln = (e, A) => {
956
956
  }), null, 16, e7)) : k("v-if", !0);
957
957
  }
958
958
  }), on = R("/das-micro-app"), cA = R([]), Se = R(!1), Ye = R([]), Fe = R(!0);
959
- let DA = null, jA = null, ze = null;
959
+ let jA = null, ZA = null, ze = null;
960
960
  const ue = (e, A, f) => {
961
961
  var v, t, r, d;
962
962
  const n = cA.value.find((z) => z.name === e);
@@ -972,41 +972,41 @@ const ue = (e, A, f) => {
972
972
  const { origin: f } = new URL(location.href);
973
973
  (n = window.top) == null || n.postMessage({ type: e, data: A }, f);
974
974
  }, f7 = () => {
975
- jA || (jA || (jA = {}), window.addEventListener(
975
+ ZA || (ZA || (ZA = {}), window.addEventListener(
976
976
  "message",
977
977
  (e) => {
978
978
  const { type: A, source: f } = e.data || {};
979
- if (f !== "react-devtools-content-script" && jA[A])
980
- for (const n in jA[A])
981
- jA[A][n](e.data);
979
+ if (f !== "react-devtools-content-script" && ZA[A])
980
+ for (const n in ZA[A])
981
+ ZA[A][n](e.data);
982
982
  },
983
983
  !1
984
984
  ));
985
985
  }, n7 = () => {
986
- DA || (DA || (DA = {}), window.addEventListener(
986
+ jA || (jA || (jA = {}), window.addEventListener(
987
987
  "message",
988
988
  (e) => {
989
989
  const { type: A } = e.data || {};
990
- if (DA[A])
991
- for (const f in DA[A])
992
- DA[A][f](e.data);
990
+ if (jA[A])
991
+ for (const f in jA[A])
992
+ jA[A][f](e.data);
993
993
  },
994
994
  !1
995
995
  ));
996
996
  }, v7 = (e, A) => {
997
997
  n7();
998
998
  const f = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8);
999
- return DA[e] || (DA[e] = {}), DA[e][f] = A, {
999
+ return jA[e] || (jA[e] = {}), jA[e][f] = A, {
1000
1000
  remove: () => {
1001
- DA[e] && DA[e][f] && delete DA[e][f];
1001
+ jA[e] && jA[e][f] && delete jA[e][f];
1002
1002
  }
1003
1003
  };
1004
1004
  }, t7 = (e, A) => {
1005
1005
  f7();
1006
1006
  const f = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8);
1007
- return jA[e] || (jA[e] = {}), jA[e][f] = A, {
1007
+ return ZA[e] || (ZA[e] = {}), ZA[e][f] = A, {
1008
1008
  remove: () => {
1009
- jA[e] && jA[e][f] && delete jA[e][f];
1009
+ ZA[e] && ZA[e][f] && delete ZA[e][f];
1010
1010
  }
1011
1011
  };
1012
1012
  }, pf = async (e) => {
@@ -1356,10 +1356,10 @@ const p7 = ["src", "entry", "name"], H7 = /* @__PURE__ */ fA({
1356
1356
  },
1357
1357
  [
1358
1358
  (L(!0), F(
1359
- WA,
1359
+ IA,
1360
1360
  null,
1361
1361
  Te(i(cA), (d) => (L(), F(
1362
- WA,
1362
+ IA,
1363
1363
  null,
1364
1364
  [
1365
1365
  d.loaded ? RA((L(), U(l7, {
@@ -1371,7 +1371,7 @@ const p7 = ["src", "entry", "name"], H7 = /* @__PURE__ */ fA({
1371
1371
  onOnActivated: (z) => n(z, d.name),
1372
1372
  onOnDeactivated: (z) => v(z, d.name)
1373
1373
  }, null, 8, ["src", "name", "actived", "onOnLoaded", "onOnActivated", "onOnDeactivated"])), [
1374
- [xA, d.actived]
1374
+ [DA, d.actived]
1375
1375
  ]) : k("v-if", !0)
1376
1376
  ],
1377
1377
  64
@@ -1528,8 +1528,8 @@ const p7 = ["src", "entry", "name"], H7 = /* @__PURE__ */ fA({
1528
1528
  Fe.value = !0, Ye.value = [];
1529
1529
  }, 100));
1530
1530
  });
1531
- }, je = "/", MA = "/application", Z9 = [
1532
- { value: MA, label: "应用", path: MA, fixed: !0 },
1531
+ }, je = "/home", NA = "/application", Z9 = [
1532
+ { value: NA, label: "应用", path: NA, fixed: !0 },
1533
1533
  { value: je, label: "首页", path: je, fixed: !0 }
1534
1534
  ], GA = "/outerView", T9 = "/placeholder", o7 = [
1535
1535
  { value: "0", label: "主题设置" },
@@ -1642,7 +1642,7 @@ const p7 = ["src", "entry", "name"], H7 = /* @__PURE__ */ fA({
1642
1642
  c === "false" && (c = !1), p(s && !!(b && c));
1643
1643
  },
1644
1644
  { immediate: !0 }
1645
- ), yA.addEventListenerFromMicroApp("systemconfig:watermark-change", async () => {
1645
+ ), LA.addEventListenerFromMicroApp("systemconfig:watermark-change", async () => {
1646
1646
  var b, c;
1647
1647
  await u();
1648
1648
  const m = !!((b = f.value) != null && b.pageSwith);
@@ -1713,7 +1713,7 @@ const p7 = ["src", "entry", "name"], H7 = /* @__PURE__ */ fA({
1713
1713
  innerHTML: f.content
1714
1714
  }, null, 8, T7),
1715
1715
  f.desc && f.desc.length ? (L(), F(
1716
- WA,
1716
+ IA,
1717
1717
  { key: 0 },
1718
1718
  [
1719
1719
  n[1] || (n[1] = T(
@@ -1724,7 +1724,7 @@ const p7 = ["src", "entry", "name"], H7 = /* @__PURE__ */ fA({
1724
1724
  /* HOISTED */
1725
1725
  )),
1726
1726
  (L(!0), F(
1727
- WA,
1727
+ IA,
1728
1728
  null,
1729
1729
  Te(f.desc, (v, t) => RA((L(), F("div", {
1730
1730
  key: t,
@@ -1835,7 +1835,7 @@ const I7 = (e = {}) => {
1835
1835
  code: a.code,
1836
1836
  originalCode: a.originalCode,
1837
1837
  name: a.name
1838
- }) : IA([a]).forEach((s) => {
1838
+ }) : EA([a]).forEach((s) => {
1839
1839
  p.push({
1840
1840
  code: s.code,
1841
1841
  originalCode: s.originalCode,
@@ -2513,13 +2513,13 @@ const nf = (e, A = "") => {
2513
2513
  { key: "currentTab", value: {} },
2514
2514
  { key: `preTab:${e}`, value: {} },
2515
2515
  { key: `tabMap:${e}`, value: [] }
2516
- ]), n || (n = { fixed: !0, path: MA }), { currentApp: n };
2516
+ ]), n || (n = { fixed: !0, path: NA }), { currentApp: n };
2517
2517
  }, Id = (e, A) => {
2518
2518
  const f = e.findIndex((t) => t.code === A), n = e.slice(0, f), v = e.slice(f + 1);
2519
2519
  return { left: n, right: v };
2520
2520
  }, Ed = (e, A, f) => {
2521
2521
  var p;
2522
- const n = IA(A).filter((u) => u.routeUrl).filter((u) => !(u != null && u.disable) && !(u != null && u.expired)), t = (((p = pA()) == null ? void 0 : p.tabMap) ?? {})[e] ?? [], { left: r, right: d } = Id(t, f), z = t.filter((u) => n.find((a) => a.code === u.code));
2522
+ const n = EA(A).filter((u) => u.routeUrl).filter((u) => !(u != null && u.disable) && !(u != null && u.expired)), t = (((p = pA()) == null ? void 0 : p.tabMap) ?? {})[e] ?? [], { left: r, right: d } = Id(t, f), z = t.filter((u) => n.find((a) => a.code === u.code));
2523
2523
  if (!r.length && !d.length || !z.length)
2524
2524
  return HA([
2525
2525
  { key: "currentCode", value: "" },
@@ -2562,7 +2562,7 @@ const nf = (e, A = "") => {
2562
2562
  });
2563
2563
  if (A || !f || !f.length) return { menus: [], originalMenus: [], err: A };
2564
2564
  k7(f, e);
2565
- const n = IA(f);
2565
+ const n = EA(f);
2566
2566
  Q7(n, e), U7(n, e);
2567
2567
  let v = Jv(f, (r) => r.isMenu);
2568
2568
  const t = qe(v);
@@ -2594,7 +2594,7 @@ const nf = (e, A = "") => {
2594
2594
  });
2595
2595
  const c = Yv(s.endTime) || s.endTime == 0 || s.endTime === 253370736e6 || s.endTime === "253370736000000" ? "-" : Number(s.endTime);
2596
2596
  if (b = Zf().endOf("day") > Zf(c).endOf("day"), !f && !n && s.id && !b) {
2597
- const H = IA(z).find((j) => j.routeUrl === "/statisticalReport");
2597
+ const H = EA(z).find((j) => j.routeUrl === "/statisticalReport");
2598
2598
  H && (f = H.code);
2599
2599
  }
2600
2600
  }
@@ -2603,7 +2603,7 @@ const nf = (e, A = "") => {
2603
2603
  const b = (pA().tabMap ?? {})[A.code] ?? [];
2604
2604
  if (b.length) {
2605
2605
  const c = b.filter(
2606
- (q) => f && f === q.code || n && n === `/${q.applicationPath}${q.path}`.replace(/\/\//g, "/") || IA(z).map((H) => H.code).includes(q.code)
2606
+ (q) => f && f === q.code || n && n === `/${q.applicationPath}${q.path}`.replace(/\/\//g, "/") || EA(z).map((H) => H.code).includes(q.code)
2607
2607
  );
2608
2608
  HA([
2609
2609
  {
@@ -2614,7 +2614,7 @@ const nf = (e, A = "") => {
2614
2614
  }
2615
2615
  }
2616
2616
  if (!f && n) {
2617
- const s = IA(z).find((b) => {
2617
+ const s = EA(z).find((b) => {
2618
2618
  const c = `/${b.applicationPath}${b.routeUrl}`.replace(/\/\//g, "/");
2619
2619
  return b.applicationPath && b.routeUrl && (n === c || n.startsWith(`/${c}/`));
2620
2620
  });
@@ -2635,7 +2635,7 @@ const nf = (e, A = "") => {
2635
2635
  const s = Ed(A.code, z, f);
2636
2636
  s != null && s.currentApp && (A = s.currentApp), s != null && s.currentMenu && (p = s.currentMenu), s != null && s.currentTab && (v.query = ((m = s.currentTab) == null ? void 0 : m.query) ?? {});
2637
2637
  }
2638
- if ((A == null ? void 0 : A.routeUrl) === MA)
2638
+ if ((A == null ? void 0 : A.routeUrl) === NA)
2639
2639
  return { menuConfig: [], currentApp: A, currentMenu: null, query: null };
2640
2640
  if (p) {
2641
2641
  const s = `/${p.applicationPath}${p.routeUrl}`;
@@ -3051,7 +3051,7 @@ const nf = (e, A = "") => {
3051
3051
  src: r.src,
3052
3052
  onLoad: t
3053
3053
  }, null, 40, wz), [
3054
- [xA, n.value]
3054
+ [DA, n.value]
3055
3055
  ])
3056
3056
  ]),
3057
3057
  _: 1
@@ -3144,8 +3144,8 @@ const nf = (e, A = "") => {
3144
3144
  label: J(N.label)
3145
3145
  }));
3146
3146
  j.forEach((N) => {
3147
- m != null && m.appAlias && N.value === MA && (N.label = m.appAlias), m != null && m.homeAlias && N.value === je && (N.label = m.homeAlias);
3148
- }), m != null && m.enable || (d.value = j.filter((N) => N.path === MA), f.path === je && await A.replace(MA)), d.value = j, W.nav.setItems(d.value), s && s.length && (W.nav.setProjectConfig({
3147
+ m != null && m.appAlias && N.value === NA && (N.label = m.appAlias), m != null && m.homeAlias && N.value === je && (N.label = m.homeAlias);
3148
+ }), m != null && m.enable || (d.value = j.filter((N) => N.path === NA), f.path === je && await A.replace(NA)), d.value = j, W.nav.setItems(d.value), s && s.length && (W.nav.setProjectConfig({
3149
3149
  treeProps: {
3150
3150
  disabled: (N) => N.type !== 7
3151
3151
  },
@@ -3191,7 +3191,7 @@ const nf = (e, A = "") => {
3191
3191
  const { entryMenu: e } = Xf();
3192
3192
  W.menu.addEventListener("onItemClick", async (A) => {
3193
3193
  zA.innerSet = !0;
3194
- const f = IA($e(A.applicationCode)).filter((n) => !n.disable && !n.expired).find((n) => n.code === A.code);
3194
+ const f = EA($e(A.applicationCode)).filter((n) => !n.disable && !n.expired).find((n) => n.code === A.code);
3195
3195
  if (!(f && !f.routeUrl)) {
3196
3196
  if (!f) {
3197
3197
  const { title: n, content: v, desc: t } = await tn(f);
@@ -3244,7 +3244,7 @@ const nf = (e, A = "") => {
3244
3244
  );
3245
3245
  const { deleteApp: P } = Oe(), { entryMenu: X } = Xf(), { reloadRoute: p, unloadRoute: u } = zv(), a = (b) => {
3246
3246
  var j;
3247
- const c = IA($e(b.applicationCode)).find((o) => o.code === b.code), H = (((j = pA().tabMap) == null ? void 0 : j[b.applicationCode]) ?? []).find((o) => o.code === b.code);
3247
+ const c = EA($e(b.applicationCode)).find((o) => o.code === b.code), H = (((j = pA().tabMap) == null ? void 0 : j[b.applicationCode]) ?? []).find((o) => o.code === b.code);
3248
3248
  X({ currentMenu: c, route: { path: H.path, query: H.query ?? {} } });
3249
3249
  }, l = (b) => {
3250
3250
  if (!b || !b.length) return;
@@ -3282,9 +3282,9 @@ const nf = (e, A = "") => {
3282
3282
  },
3283
3283
  right: async (I) => {
3284
3284
  const G = q.currentCode;
3285
- if (G !== I.value && H.findIndex((NA) => NA.code === G) > j) {
3286
- const NA = H[j];
3287
- a(NA);
3285
+ if (G !== I.value && H.findIndex((xA) => xA.code === G) > j) {
3286
+ const xA = H[j];
3287
+ a(xA);
3288
3288
  }
3289
3289
  const h = H.slice(j + 1);
3290
3290
  h.forEach((PA) => W.tab.removeItem(PA.code)), l(h), H.splice(j + 1), HA([{ key: `tabMap:${c}`, value: H }]);
@@ -3314,7 +3314,7 @@ const nf = (e, A = "") => {
3314
3314
  return;
3315
3315
  }
3316
3316
  Ke(b.applicationCode, [b.code]);
3317
- const c = IA($e(b.applicationCode)).find((j) => j.code === b.code);
3317
+ const c = EA($e(b.applicationCode)).find((j) => j.code === b.code);
3318
3318
  if (!c) return;
3319
3319
  if (c.routeUrl !== b.path) {
3320
3320
  p([b.path]), u([`/${b.applicationPath}${c.routeUrl}`]), await X({ currentMenu: c });
@@ -3343,8 +3343,8 @@ const nf = (e, A = "") => {
3343
3343
  }
3344
3344
  const f = K();
3345
3345
  f.subAppList && f.subAppList.length && sessionStorage.setItem("has-subapp", "true"), e();
3346
- }), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`), sessionStorage.removeItem("has-subapp")), yA.addEventListenerFromMicroApp("system-reload", () => {
3347
- e(), window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`);
3346
+ }), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (window.__isAutoCloseApp = !1, window.location.replace(location.origin + NA), sessionStorage.removeItem("has-subapp")), LA.addEventListenerFromMicroApp("system-reload", () => {
3347
+ e(), window.__isAutoCloseApp = !1, window.location.replace(location.origin + NA);
3348
3348
  });
3349
3349
  }, Oe = () => {
3350
3350
  const e = fe(), { entryMenu: A } = Xf(), { unloadRoute: f } = zv();
@@ -3368,7 +3368,7 @@ const nf = (e, A = "") => {
3368
3368
  const q = { ...u, menus: s, originalMenus: b };
3369
3369
  return VA([{ key: "subAppList", value: q }]), !0;
3370
3370
  }, P = async (u) => {
3371
- var G, h, PA, NA, Ue;
3371
+ var G, h, PA, xA, Ue;
3372
3372
  const { microApp: a = null, menuCode: l = "", menuPath: m = "", route: s = {} } = u;
3373
3373
  let b = s;
3374
3374
  if (!a && m) {
@@ -3388,17 +3388,17 @@ const nf = (e, A = "") => {
3388
3388
  { key: "currentSubAppCode", value: a.code },
3389
3389
  { key: "subAppList", value: iA }
3390
3390
  ]), iA.forEach((aA) => {
3391
- const ZA = { ...aA, value: aA.code, label: aA.name };
3392
- W.nav.appendItem(ZA);
3391
+ const TA = { ...aA, value: aA.code, label: aA.name };
3392
+ W.nav.appendItem(TA);
3393
3393
  }), W.nav.setActiveItem(a.code), a.routeUrl.includes("entrance=main")) {
3394
3394
  await e.push({ path: a.routeUrl, query: { ...b.query, app: a.code } });
3395
3395
  return;
3396
3396
  }
3397
3397
  if (H === 1 && j === 2) {
3398
- const aA = Lf(Df(jf(a.routeUrl))), ZA = `${GA}-${a.code}`;
3399
- if (!e.options.routes.find((Pe) => Pe.path === ZA)) {
3398
+ const aA = Lf(Df(jf(a.routeUrl))), TA = `${GA}-${a.code}`;
3399
+ if (!e.options.routes.find((Pe) => Pe.path === TA)) {
3400
3400
  const Pe = {
3401
- path: ZA,
3401
+ path: TA,
3402
3402
  component: uA(gf, {
3403
3403
  src: aA
3404
3404
  }),
@@ -3407,7 +3407,7 @@ const nf = (e, A = "") => {
3407
3407
  e.addRoute(Pe), e.options.routes.push(Pe);
3408
3408
  }
3409
3409
  await e.push({
3410
- path: ZA,
3410
+ path: TA,
3411
3411
  query: {
3412
3412
  ...b.query,
3413
3413
  app: a.code
@@ -3429,7 +3429,7 @@ const nf = (e, A = "") => {
3429
3429
  meta: { ...(b == null ? void 0 : b.meta) ?? {} }
3430
3430
  }), Z && (Z == null ? void 0 : Z.code) !== (a == null ? void 0 : a.code)) {
3431
3431
  if (Z.fixed && (await e.push(Z.path), d(), W.nav.setActiveItem(Z.path)), !Z.fixed) {
3432
- const iA = (NA = K().subAppList) == null ? void 0 : NA.find((ZA) => ZA.code === Z.code), dA = pA().preTab[Z.code], aA = { ...(dA == null ? void 0 : dA.query) ?? {} };
3432
+ const iA = (xA = K().subAppList) == null ? void 0 : xA.find((TA) => TA.code === Z.code), dA = pA().preTab[Z.code], aA = { ...(dA == null ? void 0 : dA.query) ?? {} };
3433
3433
  await P({ microApp: iA, menuCode: (dA == null ? void 0 : dA.code) ?? "", route: { query: aA } });
3434
3434
  }
3435
3435
  return;
@@ -3504,7 +3504,7 @@ const nf = (e, A = "") => {
3504
3504
  }
3505
3505
  if (!a.subAppList.length) {
3506
3506
  W.menu.setItems([]), W.tab.setItems([]);
3507
- const c = Z9.find((q) => q.value === MA);
3507
+ const c = Z9.find((q) => q.value === NA);
3508
3508
  c && X(c), Kf(), L9();
3509
3509
  }
3510
3510
  }
@@ -3712,7 +3712,7 @@ const nf = (e, A = "") => {
3712
3712
  const e = Qv(), A = Iz(), f = ve(), n = async () => {
3713
3713
  const r = {
3714
3714
  logout: "/api/justauth/oauth-server/v1/visitor/logout"
3715
- }, d = location.origin + MA, z = {
3715
+ }, d = location.origin + NA, z = {
3716
3716
  response_type: "code",
3717
3717
  scope: "sever",
3718
3718
  client_id: "sys",
@@ -3726,7 +3726,7 @@ const nf = (e, A = "") => {
3726
3726
  const P = Object.keys(z).map((p) => `${p}=${z[p]}`).join("&"), X = `${f.baseURL}${r.logout}?${P}`;
3727
3727
  window.__isAutoCloseApp = !1, location.replace(X), sessionStorage.clear(), localStorage.removeItem("idelTime"), n3();
3728
3728
  }, { entryApp: v } = Oe(), t = async () => {
3729
- const r = "personCenter", z = (K().appcategorys || []).map((a) => a.apps).flat(), { originalMenus: P = [] } = await vn(r), p = IA(P).filter((a) => a.isMenu && a.routeUrl).find((a) => a.routeUrl === "/userInfo");
3729
+ const r = "personCenter", z = (K().appcategorys || []).map((a) => a.apps).flat(), { originalMenus: P = [] } = await vn(r), p = EA(P).filter((a) => a.isMenu && a.routeUrl).find((a) => a.routeUrl === "/userInfo");
3730
3730
  if (p != null && p.disable || p != null && p.expired) {
3731
3731
  const { title: a, content: l, desc: m } = await tn(p);
3732
3732
  await ye({ title: a, content: l, desc: m });
@@ -3837,7 +3837,7 @@ const nf = (e, A = "") => {
3837
3837
  excludeRoutes: [],
3838
3838
  routeKeepAliveVisible: !0
3839
3839
  }), vu = () => {
3840
- yA.addEventListenerFromMicroApp("iot:change-instance", (e) => {
3840
+ LA.addEventListenerFromMicroApp("iot:change-instance", (e) => {
3841
3841
  const A = K(), f = A.currentSubAppCode;
3842
3842
  let n = $e(f);
3843
3843
  n.forEach((t) => {
@@ -3859,21 +3859,21 @@ const nf = (e, A = "") => {
3859
3859
  });
3860
3860
  }, tu = (e) => {
3861
3861
  ["personcenter", "rightmanage"].forEach((f) => {
3862
- yA.addEventListenerFromMicroApp(`${f}:change-userinfo`, (n) => {
3862
+ LA.addEventListenerFromMicroApp(`${f}:change-userinfo`, (n) => {
3863
3863
  const { userInfo: v } = n.data, t = v != null && v.headPicture ? rf(v.headPicture) : void 0;
3864
3864
  W.nav.setUserInfo({ headPicture: t, commandList: e.value }), sessionStorage.setItem("userInfo", JSON.stringify(v));
3865
3865
  });
3866
3866
  });
3867
3867
  }, ru = () => {
3868
- yA.addEventListenerFromMicroApp("devicePanelShow", (e) => {
3868
+ LA.addEventListenerFromMicroApp("devicePanelShow", (e) => {
3869
3869
  const { deviceId: A = "", panelCode: f = "", deviceName: n = "", x: v = 0, y: t = 0, isCenter: r = !1 } = e.data;
3870
3870
  R9(A, f, n, v, t, r);
3871
- }), yA.addEventListenerFromMicroApp("closeDevicePanel", (e) => {
3871
+ }), LA.addEventListenerFromMicroApp("closeDevicePanel", (e) => {
3872
3872
  P3();
3873
- }), yA.addEventListenerFromMicroApp("alarmDevicePanelShow", (e) => {
3873
+ }), LA.addEventListenerFromMicroApp("alarmDevicePanelShow", (e) => {
3874
3874
  const { deviceId: A = "", panelCode: f = "", alarmTime: n = "" } = e.data;
3875
3875
  d3(A, f, n);
3876
- }), yA.addEventListenerFromMicroApp("closeAlarmPanel", (e) => {
3876
+ }), LA.addEventListenerFromMicroApp("closeAlarmPanel", (e) => {
3877
3877
  z3();
3878
3878
  });
3879
3879
  }, Pu = Uf.get("/platform/login/pwd-advance-notify-check"), du = () => {
@@ -3889,7 +3889,7 @@ const nf = (e, A = "") => {
3889
3889
  await Pu().run();
3890
3890
  },
3891
3891
  message: async (r) => {
3892
- if (yA.sendMessageToMicroApp("enterpriseadmin/messagecenter", "message", { msgList: r }), window.self !== window.top) return;
3892
+ if (LA.sendMessageToMicroApp("enterpriseadmin/messagecenter", "message", { msgList: r }), window.self !== window.top) return;
3893
3893
  const z = UA().id;
3894
3894
  e.value = r.filter(
3895
3895
  (P) => P.projectId === z || P.projectId === 0 || P.projectId === "0"
@@ -3995,7 +3995,7 @@ const cu = uu.post("data/device-auth"), iu = /* @__PURE__ */ fA({
3995
3995
  return (t, r) => (L(), F("div", qu, [
3996
3996
  k(' :active="index === activeIndex" '),
3997
3997
  (L(!0), F(
3998
- WA,
3998
+ IA,
3999
3999
  null,
4000
4000
  Te(f.gridNum, (d, z) => (L(), U(su, {
4001
4001
  active: !1,
@@ -4423,7 +4423,7 @@ const cu = uu.post("data/device-auth"), iu = /* @__PURE__ */ fA({
4423
4423
  t();
4424
4424
  }, {
4425
4425
  deep: !0
4426
- }), () => g(WA, null, [A.default({
4426
+ }), () => g(IA, null, [A.default({
4427
4427
  videoUrl: v.value,
4428
4428
  loading: n.value,
4429
4429
  onDirectionControl: r,
@@ -4619,7 +4619,7 @@ class rn extends Error {
4619
4619
  super(A), this.__proto__ = f;
4620
4620
  }
4621
4621
  }
4622
- class LA extends Error {
4622
+ class WA extends Error {
4623
4623
  /** Constructs a new instance of {@link AbortError}.
4624
4624
  *
4625
4625
  * @param {string} errorMessage A descriptive error message.
@@ -4894,7 +4894,7 @@ class Cu extends bf {
4894
4894
  /** @inheritDoc */
4895
4895
  async send(A) {
4896
4896
  if (A.abortSignal && A.abortSignal.aborted)
4897
- throw new LA();
4897
+ throw new WA();
4898
4898
  if (!A.method)
4899
4899
  throw new Error("No method defined.");
4900
4900
  if (!A.url)
@@ -4902,7 +4902,7 @@ class Cu extends bf {
4902
4902
  const f = new this._abortControllerType();
4903
4903
  let n;
4904
4904
  A.abortSignal && (A.abortSignal.onabort = () => {
4905
- f.abort(), n = new LA();
4905
+ f.abort(), n = new WA();
4906
4906
  });
4907
4907
  let v = null;
4908
4908
  if (A.timeout) {
@@ -4969,14 +4969,14 @@ class _u extends bf {
4969
4969
  }
4970
4970
  /** @inheritDoc */
4971
4971
  send(A) {
4972
- return A.abortSignal && A.abortSignal.aborted ? Promise.reject(new LA()) : A.method ? A.url ? new Promise((f, n) => {
4972
+ return A.abortSignal && A.abortSignal.aborted ? Promise.reject(new WA()) : A.method ? A.url ? new Promise((f, n) => {
4973
4973
  const v = new XMLHttpRequest();
4974
4974
  v.open(A.method, A.url, !0), v.withCredentials = A.withCredentials === void 0 ? !0 : A.withCredentials, v.setRequestHeader("X-Requested-With", "XMLHttpRequest"), A.content === "" && (A.content = void 0), A.content && (ee(A.content) ? v.setRequestHeader("Content-Type", "application/octet-stream") : v.setRequestHeader("Content-Type", "text/plain;charset=UTF-8"));
4975
4975
  const t = A.headers;
4976
4976
  t && Object.keys(t).forEach((r) => {
4977
4977
  v.setRequestHeader(r, t[r]);
4978
4978
  }), A.responseType && (v.responseType = A.responseType), A.abortSignal && (A.abortSignal.onabort = () => {
4979
- v.abort(), n(new LA());
4979
+ v.abort(), n(new WA());
4980
4980
  }), A.timeout && (v.timeout = A.timeout), v.onload = () => {
4981
4981
  A.abortSignal && (A.abortSignal.onabort = null), v.status >= 200 && v.status < 300 ? f(new av(v.status, v.statusText, v.response || v.responseText)) : n(new _A(v.response || v.responseText || v.statusText, v.status));
4982
4982
  }, v.onerror = () => {
@@ -4999,7 +4999,7 @@ class $u extends bf {
4999
4999
  }
5000
5000
  /** @inheritDoc */
5001
5001
  send(A) {
5002
- return A.abortSignal && A.abortSignal.aborted ? Promise.reject(new LA()) : A.method ? A.url ? this._httpClient.send(A) : Promise.reject(new Error("No url defined.")) : Promise.reject(new Error("No method defined."));
5002
+ return A.abortSignal && A.abortSignal.aborted ? Promise.reject(new WA()) : A.method ? A.url ? this._httpClient.send(A) : Promise.reject(new Error("No url defined.")) : Promise.reject(new Error("No method defined."));
5003
5003
  }
5004
5004
  getCookieString(A) {
5005
5005
  return this._httpClient.getCookieString(A);
@@ -5268,7 +5268,7 @@ class Pn {
5268
5268
  if (this._connectionState === eA.Disconnecting)
5269
5269
  return this._logger.log(O.Debug, `Call to HttpConnection.stop(${A}) ignored because the connection is already in the disconnecting state.`), this._stopPromise;
5270
5270
  const f = this._connectionState;
5271
- return this._connectionState = eA.Disconnecting, this._logger.log(O.Debug, "Stopping HubConnection."), this._reconnectDelayHandle ? (this._logger.log(O.Debug, "Connection stopped during reconnect delay. Done reconnecting."), clearTimeout(this._reconnectDelayHandle), this._reconnectDelayHandle = void 0, this._completeClose(), Promise.resolve()) : (f === eA.Connected && this._sendCloseMessage(), this._cleanupTimeout(), this._cleanupPingTimer(), this._stopDuringStartError = A || new LA("The connection was stopped before the hub handshake could complete."), this.connection.stop(A));
5271
+ return this._connectionState = eA.Disconnecting, this._logger.log(O.Debug, "Stopping HubConnection."), this._reconnectDelayHandle ? (this._logger.log(O.Debug, "Connection stopped during reconnect delay. Done reconnecting."), clearTimeout(this._reconnectDelayHandle), this._reconnectDelayHandle = void 0, this._completeClose(), Promise.resolve()) : (f === eA.Connected && this._sendCloseMessage(), this._cleanupTimeout(), this._cleanupPingTimer(), this._stopDuringStartError = A || new WA("The connection was stopped before the hub handshake could complete."), this.connection.stop(A));
5272
5272
  }
5273
5273
  async _sendCloseMessage() {
5274
5274
  try {
@@ -5486,7 +5486,7 @@ class Pn {
5486
5486
  z ? await this._sendWithProtocol(z) : t ? (d ? z = this._createCompletionMessage(A.invocationId, `${d}`, null) : r !== void 0 ? z = this._createCompletionMessage(A.invocationId, null, r) : (this._logger.log(O.Warning, `No result given for '${f}' method and invocation ID '${A.invocationId}'.`), z = this._createCompletionMessage(A.invocationId, "Client didn't provide a result.", null)), await this._sendWithProtocol(z)) : r && this._logger.log(O.Error, `Result given for '${f}' method but server is not expecting a result.`);
5487
5487
  }
5488
5488
  _connectionClosed(A) {
5489
- this._logger.log(O.Debug, `HubConnection.connectionClosed(${A}) called while in state ${this._connectionState}.`), this._stopDuringStartError = this._stopDuringStartError || A || new LA("The underlying connection was closed before the hub handshake could complete."), this._handshakeResolver && this._handshakeResolver(), this._cancelCallbacksWithError(A || new Error("Invocation canceled due to the underlying connection being closed.")), this._cleanupTimeout(), this._cleanupPingTimer(), this._connectionState === eA.Disconnecting ? this._completeClose(A) : this._connectionState === eA.Connected && this._reconnectPolicy ? this._reconnect(A) : this._connectionState === eA.Connected && this._completeClose(A);
5489
+ this._logger.log(O.Debug, `HubConnection.connectionClosed(${A}) called while in state ${this._connectionState}.`), this._stopDuringStartError = this._stopDuringStartError || A || new WA("The underlying connection was closed before the hub handshake could complete."), this._handshakeResolver && this._handshakeResolver(), this._cancelCallbacksWithError(A || new Error("Invocation canceled due to the underlying connection being closed.")), this._cleanupTimeout(), this._cleanupPingTimer(), this._connectionState === eA.Disconnecting ? this._completeClose(A) : this._connectionState === eA.Connected && this._reconnectPolicy ? this._reconnect(A) : this._connectionState === eA.Connected && this._completeClose(A);
5490
5490
  }
5491
5491
  _completeClose(A) {
5492
5492
  if (this._connectionStarted) {
@@ -5923,10 +5923,10 @@ class b5 {
5923
5923
  return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));
5924
5924
  if (this._connectionState = "Connecting", this._startInternalPromise = this._startInternal(A), await this._startInternalPromise, this._connectionState === "Disconnecting") {
5925
5925
  const f = "Failed to start the HttpConnection before stop() was called.";
5926
- return this._logger.log(O.Error, f), await this._stopPromise, Promise.reject(new LA(f));
5926
+ return this._logger.log(O.Error, f), await this._stopPromise, Promise.reject(new WA(f));
5927
5927
  } else if (this._connectionState !== "Connected") {
5928
5928
  const f = "HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";
5929
- return this._logger.log(O.Error, f), Promise.reject(new LA(f));
5929
+ return this._logger.log(O.Error, f), Promise.reject(new WA(f));
5930
5930
  }
5931
5931
  this._connectionStarted = !0;
5932
5932
  }
@@ -5971,7 +5971,7 @@ class b5 {
5971
5971
  let n = null, v = 0;
5972
5972
  do {
5973
5973
  if (n = await this._getNegotiationResponse(f), this._connectionState === "Disconnecting" || this._connectionState === "Disconnected")
5974
- throw new LA("The connection was stopped during negotiation.");
5974
+ throw new WA("The connection was stopped during negotiation.");
5975
5975
  if (n.error)
5976
5976
  throw new Error(n.error);
5977
5977
  if (n.ProtocolVersion)
@@ -6042,7 +6042,7 @@ class b5 {
6042
6042
  } catch (p) {
6043
6043
  if (this._logger.log(O.Error, `Failed to start the transport '${P.transport}': ${p}`), z = void 0, r.push(new ku(`${P.transport} failed: ${p}`, tA[P.transport])), this._connectionState !== "Connecting") {
6044
6044
  const u = "Failed to select transport before stop() was called.";
6045
- return this._logger.log(O.Debug, u), Promise.reject(new LA(u));
6045
+ return this._logger.log(O.Debug, u), Promise.reject(new WA(u));
6046
6046
  }
6047
6047
  }
6048
6048
  }
@@ -6389,7 +6389,7 @@ const N5 = ne(`/api/tool/event-bus/${af}/`), Rf = N5.post("/publish"), x5 = Gf.g
6389
6389
  const o = c.filter((Z) => Z.code).map((Z) => Z.code);
6390
6390
  if (c.length) {
6391
6391
  if (q.currentSubAppCode) {
6392
- const V = q.currentSubApp.menus ?? [], D = IA(V).find((N) => o.includes(N.code));
6392
+ const V = q.currentSubApp.menus ?? [], D = EA(V).find((N) => o.includes(N.code));
6393
6393
  if (D) {
6394
6394
  f({ currentMenu: D });
6395
6395
  return;
@@ -6535,11 +6535,11 @@ const N5 = ne(`/api/tool/event-bus/${af}/`), Rf = N5.post("/publish"), x5 = Gf.g
6535
6535
  const j = R(!0), o = R(!0), Z = async (E) => {
6536
6536
  const x = { name: "1" };
6537
6537
  E != null && E.id && (x.spaceId = E.id);
6538
- const [y, EA] = await E5(x).run();
6539
- return y ? {} : EA;
6538
+ const [y, wA] = await E5(x).run();
6539
+ return y ? {} : wA;
6540
6540
  }, V = async (E) => {
6541
- const x = { name: E || "" }, [y, EA] = await w5(x).run();
6542
- return y ? {} : EA;
6541
+ const x = { name: E || "" }, [y, wA] = await w5(x).run();
6542
+ return y ? {} : wA;
6543
6543
  }, D = R(!0), N = R(!0), I = R([]), G = async () => {
6544
6544
  const [E, x] = await I5().run({ pageIndex: -1, pageSize: -1 });
6545
6545
  if (E) return {};
@@ -6565,7 +6565,7 @@ const N5 = ne(`/api/tool/event-bus/${af}/`), Rf = N5.post("/publish"), x5 = Gf.g
6565
6565
  return (x = r.value) == null ? void 0 : x.parentNode.parentNode;
6566
6566
  }, PA = (E) => {
6567
6567
  X.value.reportTheme = "";
6568
- }, NA = (E, x) => {
6568
+ }, xA = (E, x) => {
6569
6569
  x.length > 0 && (s.value = x[0].path), P.value.reportPosition = E, H.value = "";
6570
6570
  }, Ue = (E) => {
6571
6571
  E && (X.value.reportPosition = "", s.value = ""), E ? (P.value.reportPosition = null, s.value = "", b.value = w("告警对象位置").value) : (P.value.reportPosition = null, s.value = "", b.value = w("请选择").value);
@@ -6575,7 +6575,7 @@ const N5 = ne(`/api/tool/event-bus/${af}/`), Rf = N5.post("/publish"), x5 = Gf.g
6575
6575
  X.value.processTypeId = "", X.value.reason = "", X.value.treatmentPlan = "", X.value.reportPosition = "", X.value.reportTheme = "", X.value.workOrderRules = "", X.value.eventTypeId = "", X.value.eventLevelId = "", X.value.timeLimit = "";
6576
6576
  }, aA = () => {
6577
6577
  P.value.processTypeId = "confirm", P.value.reason = "", P.value.treatmentPlan = "", P.value.remarks = "", P.value.reportPosition = "", P.value.reportTheme = "", P.value.workOrderRules = null, o.value = !0, N.value = !0, D.value = !0, P.value.reportTheme = w("告警对象").value, s.value = "", b.value = w("告警对象位置").value, c.value = w("请输入").value, P.value.eventTypeId = "", P.value.eventLevelId = null, P.value.timeLimit = "", P.value.interval = 1, u.value = [], a.value = [];
6578
- }, ZA = (E) => {
6578
+ }, TA = (E) => {
6579
6579
  E == "eventTypeId" && (P.value.eventLevelId = null, un()), E == "eventLevelId" && Xn(), E == "interval" && (X.value.timeLimit = "", P.value.interval == 3 ? (p.value = !0, P.value.timeLimit = "") : p.value = !1);
6580
6580
  }, Pe = async () => {
6581
6581
  const [E, x] = await M5().run();
@@ -6586,10 +6586,10 @@ const N5 = ne(`/api/tool/event-bus/${af}/`), Rf = N5.post("/publish"), x5 = Gf.g
6586
6586
  eventTypeId: P.value.eventTypeId
6587
6587
  }, [x, y] = await g5(E).run();
6588
6588
  if (x) return {};
6589
- const EA = { 1: w("一级").value, 2: w("二级").value, 3: w("三级").value, 4: w("四级").value };
6589
+ const wA = { 1: w("一级").value, 2: w("二级").value, 3: w("三级").value, 4: w("四级").value };
6590
6590
  a.value = y.map((Je) => ({
6591
6591
  id: `${Je}`,
6592
- name: EA[Je] ? EA[Je] : Je
6592
+ name: wA[Je] ? wA[Je] : Je
6593
6593
  })), y.length && !P.value.eventLevelId && (P.value.eventLevelId = a.value[0].id, Xn());
6594
6594
  }, Xn = async () => {
6595
6595
  const E = {
@@ -6613,8 +6613,8 @@ const N5 = ne(`/api/tool/event-bus/${af}/`), Rf = N5.post("/publish"), x5 = Gf.g
6613
6613
  return;
6614
6614
  }
6615
6615
  t.value = !1, m.value = y;
6616
- for (let EA = 0; EA < m.value.length; EA++)
6617
- m.value[EA].id === "createorder" && G();
6616
+ for (let wA = 0; wA < m.value.length; wA++)
6617
+ m.value[wA].id === "createorder" && G();
6618
6618
  }, mv = () => {
6619
6619
  let E = !0;
6620
6620
  if (P.value.processTypeId == "dealwith")
@@ -6743,7 +6743,7 @@ const N5 = ne(`/api/tool/event-bus/${af}/`), Rf = N5.post("/publish"), x5 = Gf.g
6743
6743
  alignType: "horizontal"
6744
6744
  }, {
6745
6745
  default: M(() => [
6746
- g(i(wA), {
6746
+ g(i(MA), {
6747
6747
  label: i(w)("处理类型").value,
6748
6748
  required: "",
6749
6749
  type: "select",
@@ -6758,7 +6758,7 @@ const N5 = ne(`/api/tool/event-bus/${af}/`), Rf = N5.post("/publish"), x5 = Gf.g
6758
6758
  marginRight: "0",
6759
6759
  onChange: sv
6760
6760
  }, null, 8, ["label", "modelValue", "options"]),
6761
- P.value.processTypeId !== "createorder" && P.value.processTypeId !== "createcontingency" ? (L(), U(i(wA), {
6761
+ P.value.processTypeId !== "createorder" && P.value.processTypeId !== "createcontingency" ? (L(), U(i(MA), {
6762
6762
  key: 0,
6763
6763
  label: i(w)("告警原因").value,
6764
6764
  required: P.value.processTypeId == "dealwith",
@@ -6773,7 +6773,7 @@ const N5 = ne(`/api/tool/event-bus/${af}/`), Rf = N5.post("/publish"), x5 = Gf.g
6773
6773
  marginBottom: "30px",
6774
6774
  marginRight: "0"
6775
6775
  }, null, 8, ["label", "required", "modelValue", "error"])) : k("v-if", !0),
6776
- P.value.processTypeId !== "createorder" && P.value.processTypeId !== "createcontingency" ? (L(), U(i(wA), {
6776
+ P.value.processTypeId !== "createorder" && P.value.processTypeId !== "createcontingency" ? (L(), U(i(MA), {
6777
6777
  key: 1,
6778
6778
  label: i(w)("处理方案").value,
6779
6779
  required: P.value.processTypeId == "dealwith",
@@ -6788,7 +6788,7 @@ const N5 = ne(`/api/tool/event-bus/${af}/`), Rf = N5.post("/publish"), x5 = Gf.g
6788
6788
  marginBottom: "30px",
6789
6789
  marginRight: "0"
6790
6790
  }, null, 8, ["label", "required", "modelValue", "error"])) : k("v-if", !0),
6791
- P.value.processTypeId !== "createorder" && P.value.processTypeId !== "createcontingency" ? (L(), U(i(wA), {
6791
+ P.value.processTypeId !== "createorder" && P.value.processTypeId !== "createcontingency" ? (L(), U(i(MA), {
6792
6792
  key: 2,
6793
6793
  label: i(w)("备注").value,
6794
6794
  type: "textarea",
@@ -6801,7 +6801,7 @@ const N5 = ne(`/api/tool/event-bus/${af}/`), Rf = N5.post("/publish"), x5 = Gf.g
6801
6801
  marginBottom: "30px",
6802
6802
  marginRight: "0"
6803
6803
  }, null, 8, ["label", "modelValue"])) : k("v-if", !0),
6804
- P.value.processTypeId == "createorder" ? (L(), U(i(wA), {
6804
+ P.value.processTypeId == "createorder" ? (L(), U(i(MA), {
6805
6805
  key: 3,
6806
6806
  label: i(w)("报事位置").value,
6807
6807
  required: "",
@@ -6829,7 +6829,7 @@ const N5 = ne(`/api/tool/event-bus/${af}/`), Rf = N5.post("/publish"), x5 = Gf.g
6829
6829
  disabled: j.value,
6830
6830
  load: Z,
6831
6831
  search: V,
6832
- onChange: NA,
6832
+ onChange: xA,
6833
6833
  filter: !0,
6834
6834
  allowClear: !0
6835
6835
  }, null, 8, ["modelValue", "path", "keyword", "data", "placeholder", "disabled"]),
@@ -6864,7 +6864,7 @@ const N5 = ne(`/api/tool/event-bus/${af}/`), Rf = N5.post("/publish"), x5 = Gf.g
6864
6864
  _: 1
6865
6865
  /* STABLE */
6866
6866
  }, 8, ["label", "error"])) : k("v-if", !0),
6867
- P.value.processTypeId == "createorder" ? (L(), U(i(wA), {
6867
+ P.value.processTypeId == "createorder" ? (L(), U(i(MA), {
6868
6868
  key: 4,
6869
6869
  label: i(w)("报事主题").value,
6870
6870
  required: "",
@@ -6906,7 +6906,7 @@ const N5 = ne(`/api/tool/event-bus/${af}/`), Rf = N5.post("/publish"), x5 = Gf.g
6906
6906
  _: 1
6907
6907
  /* STABLE */
6908
6908
  }, 8, ["label", "error"])) : k("v-if", !0),
6909
- P.value.processTypeId == "createorder" ? (L(), U(i(wA), {
6909
+ P.value.processTypeId == "createorder" ? (L(), U(i(MA), {
6910
6910
  key: 5,
6911
6911
  label: i(w)("工单规则").value,
6912
6912
  required: "",
@@ -6924,7 +6924,7 @@ const N5 = ne(`/api/tool/event-bus/${af}/`), Rf = N5.post("/publish"), x5 = Gf.g
6924
6924
  marginRight: "0"
6925
6925
  }, null, 8, ["label", "modelValue", "error", "options"])) : k("v-if", !0),
6926
6926
  k(" createcontingency 生成应急事件 "),
6927
- P.value.processTypeId == "createcontingency" ? (L(), U(i(wA), {
6927
+ P.value.processTypeId == "createcontingency" ? (L(), U(i(MA), {
6928
6928
  key: 6,
6929
6929
  label: i(w)("事件类型").value,
6930
6930
  required: "",
@@ -6940,9 +6940,9 @@ const N5 = ne(`/api/tool/event-bus/${af}/`), Rf = N5.post("/publish"), x5 = Gf.g
6940
6940
  "get-popup-container": h,
6941
6941
  marginBottom: "30px",
6942
6942
  marginRight: "0",
6943
- onChange: x[21] || (x[21] = (y) => ZA("eventTypeId"))
6943
+ onChange: x[21] || (x[21] = (y) => TA("eventTypeId"))
6944
6944
  }, null, 8, ["label", "modelValue", "error", "options"])) : k("v-if", !0),
6945
- P.value.processTypeId == "createcontingency" ? (L(), U(i(wA), {
6945
+ P.value.processTypeId == "createcontingency" ? (L(), U(i(MA), {
6946
6946
  key: 7,
6947
6947
  label: i(w)("事件等级").value,
6948
6948
  required: "",
@@ -6958,9 +6958,9 @@ const N5 = ne(`/api/tool/event-bus/${af}/`), Rf = N5.post("/publish"), x5 = Gf.g
6958
6958
  "get-popup-container": h,
6959
6959
  marginBottom: "30px",
6960
6960
  marginRight: "0",
6961
- onChange: x[24] || (x[24] = (y) => ZA("eventLevelId"))
6961
+ onChange: x[24] || (x[24] = (y) => TA("eventLevelId"))
6962
6962
  }, null, 8, ["label", "modelValue", "error", "options"])) : k("v-if", !0),
6963
- P.value.processTypeId == "createcontingency" ? (L(), U(i(wA), {
6963
+ P.value.processTypeId == "createcontingency" ? (L(), U(i(MA), {
6964
6964
  key: 8,
6965
6965
  label: i(w)("处置时限").value,
6966
6966
  required: "",
@@ -6990,7 +6990,7 @@ const N5 = ne(`/api/tool/event-bus/${af}/`), Rf = N5.post("/publish"), x5 = Gf.g
6990
6990
  "border-type": "underline",
6991
6991
  size: "small",
6992
6992
  "get-popup-container": h,
6993
- onChange: x[26] || (x[26] = (y) => ZA("interval")),
6993
+ onChange: x[26] || (x[26] = (y) => TA("interval")),
6994
6994
  placeholder: i(w)("请选择").value
6995
6995
  }, null, 8, ["modelValue", "options", "placeholder"])
6996
6996
  ])
@@ -7040,7 +7040,7 @@ const N5 = ne(`/api/tool/event-bus/${af}/`), Rf = N5.post("/publish"), x5 = Gf.g
7040
7040
  n("handerDetail", f.msgItem);
7041
7041
  };
7042
7042
  return (r, d) => (L(), F(
7043
- WA,
7043
+ IA,
7044
7044
  null,
7045
7045
  [
7046
7046
  k(` <div class="alarm-msg" :style="{ 'border-color': msgItem.color }"> `),
@@ -7198,7 +7198,7 @@ const c6 = () => {
7198
7198
  loop: !1
7199
7199
  // 轮播-无限次播放
7200
7200
  });
7201
- yA.addEventListenerFromMicroApp("alarm:change-alarmconfig", (V) => {
7201
+ LA.addEventListenerFromMicroApp("alarm:change-alarmconfig", (V) => {
7202
7202
  const { isRealTimeAlarm: D, audioPlay: N } = V.data;
7203
7203
  D != null && (d.value = D), N != null && (z.value = N, z.value || H());
7204
7204
  });
@@ -7298,7 +7298,7 @@ const c6 = () => {
7298
7298
  I && e.value.send(I);
7299
7299
  },
7300
7300
  message: async (I) => {
7301
- yA.sendMessageToMicroApp("enterpriseadmin/alarm", "alarmmessage", { alarmMessage: I }), window.self === window.top && (I.messageType === "ADD" && (A.value = A.value + 1, I.coverId || s(I)), I.messageType === "DELETE" && (A.value = A.value - 1, P.value.playId == I.recordId && H()));
7301
+ LA.sendMessageToMicroApp("enterpriseadmin/alarm", "alarmmessage", { alarmMessage: I }), window.self === window.top && (I.messageType === "ADD" && (A.value = A.value + 1, I.coverId || s(I)), I.messageType === "DELETE" && (A.value = A.value - 1, P.value.playId == I.recordId && H()));
7302
7302
  }
7303
7303
  }));
7304
7304
  }
@@ -7312,7 +7312,7 @@ const c6 = () => {
7312
7312
  }), Me(() => {
7313
7313
  A.value && A.value.disconnect(), A.value = null;
7314
7314
  }), (r, d) => (L(), F(
7315
- WA,
7315
+ IA,
7316
7316
  null,
7317
7317
  [
7318
7318
  g(i(t)),
@@ -7498,12 +7498,18 @@ wv(H6);
7498
7498
  R("@das-fed/web");
7499
7499
  const l6 = [
7500
7500
  {
7501
- path: MA,
7502
- component: () => import("./index-DNAkEIYA.js")
7501
+ path: "/",
7502
+ redirect: {
7503
+ path: NA
7504
+ }
7505
+ },
7506
+ {
7507
+ path: NA,
7508
+ component: () => import("./index-CiG9JEXz.js")
7503
7509
  },
7504
7510
  {
7505
7511
  path: T9,
7506
- component: () => import("./index-DtTAm1kw.js")
7512
+ component: () => import("./index-BuwGw2Ts.js")
7507
7513
  }
7508
7514
  ], W8 = {
7509
7515
  routes: l6,