@das-fed/web 6.4.0-dev.21 → 6.4.0-dev.22

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,7 +1,7 @@
1
- import { ref as T, createApp as hs, reactive as Ne, computed as H, defineComponent as ne, watch as G, openBlock as $, createElementBlock as W, Fragment as De, createBlock as F, TransitionGroup as gs, normalizeProps as An, mergeProps as $t, withCtx as R, renderList as Tt, withDirectives as Te, resolveDynamicComponent as at, vShow as Le, unref as m, createCommentVNode as j, nextTick as Qe, resolveComponent as ms, createElementVNode as O, normalizeClass as rr, normalizeStyle as yn, renderSlot as fe, createVNode as x, Transition as ao, guardReactiveProps as io, KeepAlive as co, h as he, onBeforeMount as vs, onMounted as Ve, onUnmounted as As, getCurrentScope as ys, onScopeDispose as _s, getCurrentInstance as ws, onActivated as bs, createTextVNode as ye, toDisplayString as se, render as Vt, onBeforeUnmount as Zt, useCssVars as Cs, withModifiers as ue, toRefs as Is, isRef as Ts } from "vue";
1
+ import { ref as T, createApp as hs, reactive as Ne, computed as H, defineComponent as ne, watch as G, openBlock as $, createElementBlock as W, Fragment as De, createBlock as F, TransitionGroup as gs, normalizeProps as An, mergeProps as $t, withCtx as R, renderList as Tt, withDirectives as Te, resolveDynamicComponent as at, vShow as Le, unref as m, createCommentVNode as j, nextTick as Qe, resolveComponent as ms, createElementVNode as M, normalizeClass as rr, normalizeStyle as yn, renderSlot as pe, createVNode as x, Transition as ao, guardReactiveProps as io, KeepAlive as co, h as fe, onBeforeMount as vs, onMounted as Ve, onUnmounted as As, getCurrentScope as ys, onScopeDispose as _s, getCurrentInstance as ws, onActivated as bs, createTextVNode as ye, toDisplayString as se, render as Vt, onBeforeUnmount as Zt, useCssVars as Cs, withModifiers as le, toRefs as Is, isRef as Ts } from "vue";
2
2
  import { initTheme as Es, setThemeRule as Ss } from "@das-fed/web/packages/theme/index";
3
3
  import { initI18n as ks, i18n as N } from "@das-fed/web/packages/i18n/index";
4
- import { DasWebLayout as Dn, DasWebNav as sr, DasWebMenu as ar, DasWebTabs as ir, layout as M } from "@das-fed/web/packages/layout/index";
4
+ import { DasWebLayout as Dn, DasWebNav as sr, DasWebMenu as ar, DasWebTabs as ir, layout as O } from "@das-fed/web/packages/layout/index";
5
5
  import { createPinia as Ps } from "pinia";
6
6
  import Ls from "pinia-plugin-persistedstate";
7
7
  import { createRouter as $s, createWebHistory as Ds, useRouter as Ye, useRoute as Dt } from "vue-router";
@@ -16,10 +16,10 @@ import { oauthServer as dr, justauth as Rn, enterpriseright as xn, iotModules as
16
16
  import { createService as et } from "@das-fed/utils/create-api-service";
17
17
  import { useGetAuth as Vs } from "@das-fed/utils/hooks/use-get-auth";
18
18
  import { systemConfiguration as Ws, enterpriseright as jn, createService as ft, spaceManage as pr } from "@das-fed/utils/api-services";
19
- import { microFrontend as le } from "@das-fed/web/packages/micro-frontend/index";
20
19
  import { getConfig as tt } from "@das-fed/utils/config";
21
20
  import Cn from "dayjs";
22
21
  import { getAccessToken as zs, removeAccessToken as qs } from "@das-fed/utils/token-tools";
22
+ import { microFrontend as ge } from "@das-fed/web/packages/micro-frontend/index";
23
23
  import { DasDialog as Nn } from "@das-fed/ui/packages/components/dialog/index";
24
24
  import { DasButton as Ue } from "@das-fed/ui/packages/components/button/index";
25
25
  import { vDasTooltip as Js } from "@das-fed/ui/packages/components/text-tooltip/index";
@@ -609,14 +609,14 @@ const go = (t, e) => {
609
609
  return g.has(C) ? I = g.get(C) : (I = {
610
610
  name: C,
611
611
  render() {
612
- return he("div", { style: { width: "100%", height: "100%" } }, [he(A)]);
612
+ return fe("div", { style: { width: "100%", height: "100%" } }, [fe(A)]);
613
613
  }
614
- }, g.set(C, I)), he(I);
614
+ }, g.set(C, I)), fe(I);
615
615
  }, v = H(() => Je.visible.value);
616
616
  return (A, C) => {
617
617
  const I = ms("router-view");
618
618
  return $(), W("div", La, [
619
- Te(O(
619
+ Te(M(
620
620
  "div",
621
621
  {
622
622
  class: rr(["das-web-app-overlay", h.value]),
@@ -632,55 +632,55 @@ const go = (t, e) => {
632
632
  "div",
633
633
  $a,
634
634
  [
635
- fe(A.$slots, "header", {}, void 0, !0)
635
+ pe(A.$slots, "header", {}, void 0, !0)
636
636
  ],
637
637
  512
638
638
  /* NEED_PATCH */
639
639
  )), [
640
640
  [Le, v.value]
641
641
  ]) : j("v-if", !0),
642
- O("div", Da, [
642
+ M("div", Da, [
643
643
  l.value ? Te(($(), W(
644
644
  "div",
645
645
  Ma,
646
646
  [
647
- fe(A.$slots, "aside", {}, void 0, !0)
647
+ pe(A.$slots, "aside", {}, void 0, !0)
648
648
  ],
649
649
  512
650
650
  /* NEED_PATCH */
651
651
  )), [
652
652
  [Le, v.value]
653
653
  ]) : j("v-if", !0),
654
- O("div", Oa, [
654
+ M("div", Oa, [
655
655
  c.value ? Te(($(), W(
656
656
  "div",
657
657
  Ba,
658
658
  [
659
- fe(A.$slots, "tab", {}, void 0, !0)
659
+ pe(A.$slots, "tab", {}, void 0, !0)
660
660
  ],
661
661
  512
662
662
  /* NEED_PATCH */
663
663
  )), [
664
664
  [Le, v.value]
665
665
  ]) : j("v-if", !0),
666
- O("div", Ra, [
667
- Te(O(
666
+ M("div", Ra, [
667
+ Te(M(
668
668
  "div",
669
669
  xa,
670
670
  [
671
- fe(A.$slots, "banner", {}, void 0, !0)
671
+ pe(A.$slots, "banner", {}, void 0, !0)
672
672
  ],
673
673
  512
674
674
  /* NEED_PATCH */
675
675
  ), [
676
676
  [Le, v.value]
677
677
  ]),
678
- O("div", Qa, [
679
- Te(O(
678
+ M("div", Qa, [
679
+ Te(M(
680
680
  "div",
681
681
  ja,
682
682
  [
683
- fe(A.$slots, "router-view", {}, () => [
683
+ pe(A.$slots, "router-view", {}, () => [
684
684
  j(" 有动画 "),
685
685
  A.needTransition ? ($(), F(I, { key: 0 }, {
686
686
  default: R(({ Component: y }) => [
@@ -748,7 +748,7 @@ const go = (t, e) => {
748
748
  _: 1
749
749
  /* STABLE */
750
750
  })),
751
- Te(O(
751
+ Te(M(
752
752
  "div",
753
753
  Ua,
754
754
  [
@@ -770,11 +770,11 @@ const go = (t, e) => {
770
770
  ), [
771
771
  [Le, i.value]
772
772
  ]),
773
- Te(O(
773
+ Te(M(
774
774
  "div",
775
775
  Fa,
776
776
  [
777
- fe(A.$slots, "default", {}, void 0, !0)
777
+ pe(A.$slots, "default", {}, void 0, !0)
778
778
  ],
779
779
  512
780
780
  /* NEED_PATCH */
@@ -917,11 +917,11 @@ const go = (t, e) => {
917
917
  "on:toggleFullScreen": u
918
918
  }), null, 16, qa)) : j("v-if", !0);
919
919
  }
920
- }), mo = T("/das-micro-app"), de = T([]), Ht = T(!1), Qt = T([]), jt = T(!0);
920
+ }), mo = T("/das-micro-app"), ue = T([]), Ht = T(!1), Qt = T([]), jt = T(!0);
921
921
  let Ee = null, Se = null, rt = null;
922
922
  const st = (t, e, n) => {
923
923
  var r, s, a, l;
924
- const o = de.value.find((c) => c.name === t);
924
+ const o = ue.value.find((c) => c.name === t);
925
925
  if (o) {
926
926
  if (o.entry.startsWith("/") || o.entry.match(location.origin)) {
927
927
  (s = (r = o.dom) == null ? void 0 : r.contentWindow) == null || s.postMessage({ type: e, data: n });
@@ -973,7 +973,7 @@ const st = (t, e, n) => {
973
973
  };
974
974
  }, pn = async (t) => {
975
975
  await Promise.all(
976
- de.value.filter((e) => e.loaded).map((e) => new Promise(async (n) => {
976
+ ue.value.filter((e) => e.loaded).map((e) => new Promise(async (n) => {
977
977
  e.dom || await new Promise((o) => G(() => e.dom, o)), setTimeout(() => {
978
978
  st(e.name, "sessionStorage", t), n(!0);
979
979
  }, 0);
@@ -982,14 +982,14 @@ const st = (t, e, n) => {
982
982
  }, ee = {
983
983
  loadMicroApp: (t) => {
984
984
  Ht.value = !0;
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;
985
+ const e = ue.value.find((a) => a.name === t), n = ue.value.find((a) => a.actived), o = !!e, r = !(e != null && e.loaded), s = e == null ? void 0 : e.actived;
986
986
  if (!o) {
987
987
  n && (n.actived = !1);
988
988
  return;
989
989
  }
990
990
  if (e.isFirstActived = !0, r) {
991
991
  e.src = e.entry;
992
- const a = de.value.find((l) => l.actived);
992
+ const a = ue.value.find((l) => l.actived);
993
993
  a && (a.actived = !1), e.loaded = !0, e.actived = !0;
994
994
  return;
995
995
  }
@@ -999,7 +999,7 @@ const st = (t, e, n) => {
999
999
  }
1000
1000
  },
1001
1001
  hideMicroApp: async (t) => {
1002
- const e = de.value.find((n) => n.name === t);
1002
+ const e = ue.value.find((n) => n.name === t);
1003
1003
  e && e.loaded && (e.dom || await new Promise((n) => G(() => e.dom, n)), st(t, "router", {
1004
1004
  cmd: "push",
1005
1005
  route: {
@@ -1009,21 +1009,21 @@ const st = (t, e, n) => {
1009
1009
  }));
1010
1010
  },
1011
1011
  hideAllMicroApp: () => {
1012
- Ht.value = !1, de.value.map((t) => {
1012
+ Ht.value = !1, ue.value.map((t) => {
1013
1013
  t.actived = !1;
1014
1014
  });
1015
1015
  },
1016
1016
  unloadMicroApp: (t) => {
1017
- const e = de.value.find((n) => n.name === t);
1017
+ const e = ue.value.find((n) => n.name === t);
1018
1018
  e && (e.loaded = !1, e.actived = !1, e.dom = void 0);
1019
1019
  },
1020
1020
  unloadAllMicroApp: () => {
1021
- Ht.value = !1, de.value.map((t) => {
1021
+ Ht.value = !1, ue.value.map((t) => {
1022
1022
  t.loaded = !1, t.actived = !1, t.dom = void 0;
1023
1023
  });
1024
1024
  },
1025
1025
  setMicroAppRoute: async (t, e, n) => {
1026
- const o = de.value.find((l) => l.name === e);
1026
+ const o = ue.value.find((l) => l.name === e);
1027
1027
  if (!o || !o.loaded || !o.actived || (o.dom || await new Promise((l) => G(() => o.dom, l)), !o.actived)) return o;
1028
1028
  const r = n.path || n, s = n.query || {}, a = n.params || {};
1029
1029
  return t.push({
@@ -1083,11 +1083,11 @@ const st = (t, e, n) => {
1083
1083
  }
1084
1084
  },
1085
1085
  reloadMicroAppRoute: async (t, e) => {
1086
- const n = de.value.find((o) => o.name === t);
1086
+ const n = ue.value.find((o) => o.name === t);
1087
1087
  n && (!n.loaded || !n.actived || (n.dom || await new Promise((o) => G(() => n.dom, o)), st(t, "route", { cmd: "reload", path: e })));
1088
1088
  },
1089
1089
  unloadMicroAppRoute: async (t, e) => {
1090
- const n = de.value.find((o) => o.name === t);
1090
+ const n = ue.value.find((o) => o.name === t);
1091
1091
  n && (!n.loaded || !n.actived || (n.dom || await new Promise((o) => G(() => n.dom, o)), st(t, "route", { cmd: "unload", path: e })));
1092
1092
  },
1093
1093
  setMainAppLayoutVisible: (t) => {
@@ -1281,7 +1281,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
1281
1281
  __name: "das-micro-apps",
1282
1282
  setup(t) {
1283
1283
  const e = T(null), n = async (s, a) => {
1284
- const l = de.value.find((p) => p.name === a);
1284
+ const l = ue.value.find((p) => p.name === a);
1285
1285
  if (!l) return;
1286
1286
  l.dom = s.target, await Qe(), await new Promise((p) => setTimeout(p, 50));
1287
1287
  const c = () => {
@@ -1299,12 +1299,12 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
1299
1299
  ee.sendMessageToMicroApp(a, "resize", c());
1300
1300
  }).observe(e.value), ee.sendMessageToMicroApp(a, "setProxyMessageStatus", { visible: !0, parentHref: location.href }), ee.sendMessageToMicroApp(a, "setProxSsoStatus", { visible: !0, parentHref: location.href });
1301
1301
  }, o = (s, a) => {
1302
- const l = de.value.find((u) => u.name === a);
1302
+ const l = ue.value.find((u) => u.name === a);
1303
1303
  if (!l) return;
1304
1304
  const { dom: c, ...i } = l;
1305
1305
  ee.sendMessageToMicroApp(a, "onActivated"), ee.triggerMicroAppLifeCycleListener("onActivated", i);
1306
1306
  }, r = (s, a) => {
1307
- const l = de.value.find((u) => u.name === a);
1307
+ const l = ue.value.find((u) => u.name === a);
1308
1308
  if (!l) return;
1309
1309
  const { dom: c, ...i } = l;
1310
1310
  ee.sendMessageToMicroApp(a, "onDeactivated"), ee.triggerMicroAppLifeCycleListener("onDeactivated", i);
@@ -1320,7 +1320,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
1320
1320
  ($(!0), W(
1321
1321
  De,
1322
1322
  null,
1323
- Tt(m(de), (l) => ($(), W(
1323
+ Tt(m(ue), (l) => ($(), W(
1324
1324
  De,
1325
1325
  null,
1326
1326
  [
@@ -1370,17 +1370,17 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
1370
1370
  "router-view-visible": n.value
1371
1371
  }, r.value), {
1372
1372
  header: R(() => [
1373
- fe(s.$slots, "header", {}, () => [
1373
+ pe(s.$slots, "header", {}, () => [
1374
1374
  x(m(sr))
1375
1375
  ])
1376
1376
  ]),
1377
1377
  aside: R(() => [
1378
- fe(s.$slots, "aside", {}, () => [
1378
+ pe(s.$slots, "aside", {}, () => [
1379
1379
  x(m(ar), { menuAttr: s.menuAttr }, null, 8, ["menuAttr"])
1380
1380
  ])
1381
1381
  ]),
1382
1382
  tab: R(() => [
1383
- fe(s.$slots, "tab", {}, () => [
1383
+ pe(s.$slots, "tab", {}, () => [
1384
1384
  x(m(ir), { tabsAttr: s.tabsAttr }, null, 8, ["tabsAttr"])
1385
1385
  ])
1386
1386
  ]),
@@ -1402,7 +1402,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
1402
1402
  }
1403
1403
  }), mi = (t) => ["http://", "https://", "ws://", "wss://", "/"].find((n) => t.startsWith(n)) ? t : `/${t}`, Gg = (t, e) => {
1404
1404
  if (!(t != null && t.microApps) || !Array.isArray(t.microApps)) return;
1405
- window.__IN_DAS_MAIN_APP = !0, t != null && t.microAppRouterPrefix && (mo.value = t.microAppRouterPrefix), de.value = (t.microApps || []).filter((r) => !!r.name).map((r) => ({ ...r, entry: mi(r.entry || r.name) })), e == null || e.addRoute({
1405
+ window.__IN_DAS_MAIN_APP = !0, t != null && t.microAppRouterPrefix && (mo.value = t.microAppRouterPrefix), ue.value = (t.microApps || []).filter((r) => !!r.name).map((r) => ({ ...r, entry: mi(r.entry || r.name) })), e == null || e.addRoute({
1406
1406
  name: "das-micro-app",
1407
1407
  path: `${mo.value}/:pathMatch(.*)*`,
1408
1408
  component: wr,
@@ -1523,22 +1523,22 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
1523
1523
  }));
1524
1524
  return (r, s) => ($(), F(m(Dn), $t({ "transition-config": n.value }, o.value), {
1525
1525
  header: R(() => [
1526
- fe(r.$slots, "header", {}, () => [
1526
+ pe(r.$slots, "header", {}, () => [
1527
1527
  x(m(sr))
1528
1528
  ])
1529
1529
  ]),
1530
1530
  aside: R(() => [
1531
- fe(r.$slots, "aside", {}, () => [
1531
+ pe(r.$slots, "aside", {}, () => [
1532
1532
  x(m(ar), { menuAttr: r.menuAttr }, null, 8, ["menuAttr"])
1533
1533
  ])
1534
1534
  ]),
1535
1535
  tab: R(() => [
1536
- fe(r.$slots, "tab", {}, () => [
1536
+ pe(r.$slots, "tab", {}, () => [
1537
1537
  x(m(ir), { tabsAttr: r.tabsAttr }, null, 8, ["tabsAttr"])
1538
1538
  ])
1539
1539
  ]),
1540
1540
  banner: R(() => [
1541
- fe(r.$slots, "banner")
1541
+ pe(r.$slots, "banner")
1542
1542
  ]),
1543
1543
  _: 3
1544
1544
  /* FORWARDED */
@@ -1604,7 +1604,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
1604
1604
  v === "false" && (v = !1), h(g && !!(d && v));
1605
1605
  },
1606
1606
  { immediate: !0 }
1607
- ), le.addEventListenerFromMicroApp("systemconfig:watermark-change", async () => {
1607
+ ), ge.addEventListenerFromMicroApp("systemconfig:watermark-change", async () => {
1608
1608
  var d, v;
1609
1609
  await p();
1610
1610
  const _ = !!((d = n.value) != null && d.pageSwith);
@@ -1619,7 +1619,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
1619
1619
  height: r.value
1620
1620
  }, {
1621
1621
  default: R(() => [
1622
- fe(_.$slots, "default", {}, void 0, !0)
1622
+ pe(_.$slots, "default", {}, void 0, !0)
1623
1623
  ]),
1624
1624
  _: 3
1625
1625
  /* FORWARDED */
@@ -1651,7 +1651,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
1651
1651
  onClosed: n.closeCallback
1652
1652
  }, {
1653
1653
  footer: R(() => [
1654
- O("div", Ii, [
1654
+ M("div", Ii, [
1655
1655
  x(m(Ue), {
1656
1656
  btnType: "default",
1657
1657
  size: "small",
@@ -1666,7 +1666,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
1666
1666
  ])
1667
1667
  ]),
1668
1668
  default: R(() => [
1669
- O("div", {
1669
+ M("div", {
1670
1670
  class: "content",
1671
1671
  innerHTML: n.content
1672
1672
  }, null, 8, Ci),
@@ -1674,7 +1674,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
1674
1674
  De,
1675
1675
  { key: 0 },
1676
1676
  [
1677
- o[1] || (o[1] = O(
1677
+ o[1] || (o[1] = M(
1678
1678
  "div",
1679
1679
  { class: "divide" },
1680
1680
  null,
@@ -1711,7 +1711,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
1711
1711
  }), Ei = /* @__PURE__ */ Ce(Ti, [["__scopeId", "data-v-72bc9a80"]]), Et = ({ title: t = "", content: e = "", desc: n = [] }) => new Promise((o) => {
1712
1712
  const r = document.createElement("div");
1713
1713
  r.setAttribute("id", "entry-app-dialog"), document.body.appendChild(r);
1714
- const a = he(Ei, { title: t, content: e, desc: n, closeCallback: () => {
1714
+ const a = fe(Ei, { title: t, content: e, desc: n, closeCallback: () => {
1715
1715
  Vt(null, r), document.body.removeChild(r), o(null);
1716
1716
  } });
1717
1717
  Vt(a, r);
@@ -2698,7 +2698,7 @@ const Kt = (t, e = "") => {
2698
2698
  direction: "rtl"
2699
2699
  }, {
2700
2700
  footer: R(() => [
2701
- O("div", np, [
2701
+ M("div", np, [
2702
2702
  x(m(Ue), {
2703
2703
  size: "middle",
2704
2704
  onClick: u[4] || (u[4] = (h) => n.value = !1),
@@ -2725,17 +2725,17 @@ const Kt = (t, e = "") => {
2725
2725
  ])
2726
2726
  ]),
2727
2727
  default: R(() => [
2728
- O("div", Kd, [
2729
- O(
2728
+ M("div", Kd, [
2729
+ M(
2730
2730
  "p",
2731
2731
  Gd,
2732
2732
  se(m(N)("侧边菜单栏").value),
2733
2733
  1
2734
2734
  /* TEXT */
2735
2735
  ),
2736
- O("div", Xd, [
2737
- O("div", Zd, [
2738
- O("img", {
2736
+ M("div", Xd, [
2737
+ M("div", Zd, [
2738
+ M("img", {
2739
2739
  src: m(Si),
2740
2740
  alt: "",
2741
2741
  width: "180",
@@ -2757,8 +2757,8 @@ const Kt = (t, e = "") => {
2757
2757
  /* STABLE */
2758
2758
  }, 8, ["modelValue"])
2759
2759
  ]),
2760
- O("div", ep, [
2761
- O("img", {
2760
+ M("div", ep, [
2761
+ M("img", {
2762
2762
  src: m(ki),
2763
2763
  alt: "",
2764
2764
  width: "180",
@@ -2798,18 +2798,18 @@ const Kt = (t, e = "") => {
2798
2798
  key: "loginTip",
2799
2799
  message: "上次登录信息",
2800
2800
  placement: "bottomRight",
2801
- description: he("div", { class: "last-login-info" }, [
2802
- he(
2801
+ description: fe("div", { class: "last-login-info" }, [
2802
+ fe(
2803
2803
  "div",
2804
2804
  { style: "font-size: 12px;color:#212121;margin-bottom:8px" },
2805
2805
  "时间:" + js(l.lastModificationTime)
2806
2806
  ),
2807
- he("div", { style: "font-size: 12px;color:#212121;" }, "IP地址:" + l.ip)
2807
+ fe("div", { style: "font-size: 12px;color:#212121;" }, "IP地址:" + l.ip)
2808
2808
  ])
2809
2809
  }), sessionStorage.setItem("loginInfoTip", "true"));
2810
2810
  }, o = async () => {
2811
2811
  const [{ loginConfig: a }, { platformConfig: l }] = await Promise.all([Vd(), Wd()]);
2812
- e(l), M.nav.setLogo((l == null ? void 0 : l.platformLogoImg) ?? ""), !t() && a != null && a.loginInfoTip && !sessionStorage.getItem("loginInfoTip") && n();
2812
+ e(l), O.nav.setLogo((l == null ? void 0 : l.platformLogoImg) ?? ""), !t() && a != null && a.loginInfoTip && !sessionStorage.getItem("loginInfoTip") && n();
2813
2813
  }, r = T(!1), s = () => new Promise((a) => {
2814
2814
  const l = () => {
2815
2815
  if (r.value) return a();
@@ -2839,7 +2839,7 @@ const Kt = (t, e = "") => {
2839
2839
  ), G(
2840
2840
  () => [i.value, u.value],
2841
2841
  () => {
2842
- M.nav.setConfig({
2842
+ O.nav.setConfig({
2843
2843
  showFullScreen: i.value,
2844
2844
  showChangeEnterprise: u.value,
2845
2845
  showSearch: !0,
@@ -2854,7 +2854,7 @@ const Kt = (t, e = "") => {
2854
2854
  let w = {};
2855
2855
  return await Ns([Ki, xd, zd, Xr, Yr]).then((g) => Object.assign(w, ...g)), a.value = !1, w;
2856
2856
  }, p = T(!1);
2857
- return M.nav.addEventListener("onBeforeMount", async () => {
2857
+ return O.nav.addEventListener("onBeforeMount", async () => {
2858
2858
  var E;
2859
2859
  await t();
2860
2860
  const w = await h();
@@ -2864,7 +2864,7 @@ const Kt = (t, e = "") => {
2864
2864
  const C = [...br];
2865
2865
  C.forEach((k) => {
2866
2866
  _ != null && _.appAlias && k.value === je && (k.label = _.appAlias), _ != null && _.homeAlias && k.value === Ct && (k.label = _.homeAlias);
2867
- }), l.value = C, _ != null && _.enable || (l.value = l.value.filter((k) => k.path === je), n.path === Ct && await e.replace(je)), M.nav.setItems(l.value), g && g.length && (M.nav.setProjectConfig({
2867
+ }), l.value = C, _ != null && _.enable || (l.value = l.value.filter((k) => k.path === je), n.path === Ct && await e.replace(je)), O.nav.setItems(l.value), g && g.length && (O.nav.setProjectConfig({
2868
2868
  treeProps: {
2869
2869
  disabled: (k) => k.type !== 7
2870
2870
  },
@@ -2872,9 +2872,9 @@ const Kt = (t, e = "") => {
2872
2872
  filterNodeMethod: (k) => k.type === 7,
2873
2873
  // 树打平之后保留的数据
2874
2874
  filterFlatCondition: (k) => k.type === 7
2875
- }), M.nav.setProjects(g || []), d && M.nav.setActiveProject(d));
2875
+ }), O.nav.setProjects(g || []), d && O.nav.setActiveProject(d));
2876
2876
  const I = Yt() ?? {}, y = I != null && I.headPicture ? Mn(I.headPicture) : void 0;
2877
- c.value = [...vi], d && d.id !== 0 ? await o("personCenter", "", "/userInfo") || (c.value = c.value.filter((Q) => Q.value !== "1")) : c.value = c.value.filter((k) => k.value !== "1"), M.nav.setUserInfo({ headPicture: y, commandList: c.value }), M.nav.setSearchConfig({
2877
+ c.value = [...vi], d && d.id !== 0 ? await o("personCenter", "", "/userInfo") || (c.value = c.value.filter((Q) => Q.value !== "1")) : c.value = c.value.filter((k) => k.value !== "1"), O.nav.setUserInfo({ headPicture: y, commandList: c.value }), O.nav.setSearchConfig({
2878
2878
  getHistoryList: r,
2879
2879
  getSearchList: s
2880
2880
  });
@@ -2905,7 +2905,7 @@ const Kt = (t, e = "") => {
2905
2905
  };
2906
2906
  }, up = () => {
2907
2907
  const { entryMenu: t } = rn();
2908
- M.menu.addEventListener("onItemClick", async (e) => {
2908
+ O.menu.addEventListener("onItemClick", async (e) => {
2909
2909
  ce.innerSet = !0;
2910
2910
  const n = Me(zt(e.applicationCode)).filter((o) => !o.disable && !o.expired).find((o) => o.code === e.code);
2911
2911
  if (!(n && !n.routeUrl)) {
@@ -2919,14 +2919,14 @@ const Kt = (t, e = "") => {
2919
2919
  });
2920
2920
  }, dp = () => {
2921
2921
  const { changeApp: t, deleteApp: e, beforeEntryApp: n } = vt();
2922
- M.nav.addEventListener("onItemClick", async (r) => {
2922
+ O.nav.addEventListener("onItemClick", async (r) => {
2923
2923
  const s = J().currentSubAppCode ?? "";
2924
2924
  if (s !== r.code) {
2925
2925
  if (s && Hi(s), !r.fixed && !await n(r))
2926
2926
  throw new Error("取消切换");
2927
2927
  t(r);
2928
2928
  }
2929
- }), M.nav.addEventListener("onItemRemove", (r) => {
2929
+ }), O.nav.addEventListener("onItemRemove", (r) => {
2930
2930
  var i;
2931
2931
  const s = J();
2932
2932
  if (!((i = s.subAppList) != null && i.length) || s.subAppList.findIndex((u) => u.code === r.code) === -1) return;
@@ -2934,7 +2934,7 @@ const Kt = (t, e = "") => {
2934
2934
  c && c.length && Ut(r.code, c), e(r);
2935
2935
  });
2936
2936
  const { enter: o } = ht();
2937
- return M.nav.addEventListener("fullScreenHandle", o), {};
2937
+ return O.nav.addEventListener("fullScreenHandle", o), {};
2938
2938
  }, pp = () => {
2939
2939
  const t = Ye(), e = "#666666", n = "#FAFAFA", o = "#D9D9D9", r = T(e), s = T(n), a = T(o);
2940
2940
  let l = "", c = {};
@@ -2970,7 +2970,7 @@ const Kt = (t, e = "") => {
2970
2970
  const y = () => {
2971
2971
  var q;
2972
2972
  let V = (((q = J().appcategorys) == null ? void 0 : q.map((ie) => ie.apps).flat()) ?? []).find((ie) => ie.code === v);
2973
- V = { ...V, value: V.code, label: V.name }, i(V), M.nav.removeItem(v);
2973
+ V = { ...V, value: V.code, label: V.name }, i(V), O.nav.removeItem(v);
2974
2974
  };
2975
2975
  ({
2976
2976
  me: async (B) => {
@@ -2988,9 +2988,9 @@ const Kt = (t, e = "") => {
2988
2988
  t.push({
2989
2989
  path: `/${V.applicationPath}${V.path}`.replace(/\/\//g, "/"),
2990
2990
  query: V.query
2991
- }), M.menu.setActiveItem(V.menuId), M.tab.setActiveItem(V.code);
2991
+ }), O.menu.setActiveItem(V.menuId), O.tab.setActiveItem(V.code);
2992
2992
  const q = C.filter((ie) => ie.code !== B.value);
2993
- q.forEach((ie) => M.tab.removeItem(ie.code)), w(q), Ae([{ key: `tabMap:${v}`, value: [V] }]), f(V);
2993
+ q.forEach((ie) => O.tab.removeItem(ie.code)), w(q), Ae([{ key: `tabMap:${v}`, value: [V] }]), f(V);
2994
2994
  },
2995
2995
  right: async (B) => {
2996
2996
  const V = A.currentCode;
@@ -2999,16 +2999,16 @@ const Kt = (t, e = "") => {
2999
2999
  f(Ie);
3000
3000
  }
3001
3001
  const q = C.slice(I + 1);
3002
- q.forEach((ie) => M.tab.removeItem(ie.code)), w(q), C.splice(I + 1), Ae([{ key: `tabMap:${v}`, value: C }]);
3002
+ q.forEach((ie) => O.tab.removeItem(ie.code)), w(q), C.splice(I + 1), Ae([{ key: `tabMap:${v}`, value: C }]);
3003
3003
  }
3004
3004
  })[d.type](d.data);
3005
3005
  };
3006
- M.tab.addEventListener("onItemClick", async (d) => {
3006
+ O.tab.addEventListener("onItemClick", async (d) => {
3007
3007
  ve().currentCode !== d.currentCode && (ce.innerSet = !0, f(d));
3008
- }), M.tab.addEventListener("onItemRemove", (d) => {
3008
+ }), O.tab.addEventListener("onItemRemove", (d) => {
3009
3009
  const v = ve(), A = J().currentSubAppCode ?? "";
3010
3010
  v.tabMap[A].findIndex((y) => y.code === d.code) !== -1 && (Ut(d.applicationCode, [d.code]), _({ type: "me", data: d }));
3011
- }), M.tab.addEventListener("onMenuClick", (d) => {
3011
+ }), O.tab.addEventListener("onMenuClick", (d) => {
3012
3012
  let v = [];
3013
3013
  const A = ve().tabMap[d.applicationCode] ?? [];
3014
3014
  if (d.type.key === "right") {
@@ -3019,7 +3019,7 @@ const Kt = (t, e = "") => {
3019
3019
  d.applicationCode,
3020
3020
  v.map((C) => C.code)
3021
3021
  ), _({ type: d.type.key, data: d.data });
3022
- }), M.tab.addEventListener("onPageRefresh", async (d) => {
3022
+ }), O.tab.addEventListener("onPageRefresh", async (d) => {
3023
3023
  if (!d || d.path === ct) return;
3024
3024
  Ut(d.applicationCode, [d.code]);
3025
3025
  const v = Me(zt(d.applicationCode)).find((I) => I.code === d.code);
@@ -3032,10 +3032,10 @@ const Kt = (t, e = "") => {
3032
3032
  _n(A, C) || await u({ currentMenu: v }), h([d.path]);
3033
3033
  });
3034
3034
  const { enter: g } = ht();
3035
- return M.tab.addEventListener("onToggleFullScreen", g), { fontColor: r, backgroudColor: s, borderColor: a };
3035
+ return O.tab.addEventListener("onToggleFullScreen", g), { fontColor: r, backgroudColor: s, borderColor: a };
3036
3036
  }, gn = tt(), Jo = (gn == null ? void 0 : gn.isAutoCloseApp) ?? !0, Ko = location.href.includes("showLayout=false"), Go = window.self !== window.top, fp = () => {
3037
3037
  const t = () => {
3038
- M.nav.setItems([]), M.menu.setItems([]), M.tab.setItems([]), Sr();
3038
+ O.nav.setItems([]), O.menu.setItems([]), O.tab.setItems([]), Sr();
3039
3039
  };
3040
3040
  window.addEventListener("beforeunload", function(e) {
3041
3041
  if (!(Ko || !Jo || Go) && window.__isAutoCloseApp) {
@@ -3051,7 +3051,7 @@ const Kt = (t, e = "") => {
3051
3051
  }
3052
3052
  const n = J();
3053
3053
  n.subAppList && n.subAppList.length && sessionStorage.setItem("has-subapp", "true"), t();
3054
- }), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`), sessionStorage.removeItem("has-subapp")), le.addEventListenerFromMicroApp("system-reload", () => {
3054
+ }), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`), sessionStorage.removeItem("has-subapp")), ge.addEventListenerFromMicroApp("system-reload", () => {
3055
3055
  t(), window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`);
3056
3056
  });
3057
3057
  }, vt = () => {
@@ -3059,7 +3059,7 @@ const Kt = (t, e = "") => {
3059
3059
  let { mainAppName: o = "", microAppName: r = "", microApps: s = [] } = tt();
3060
3060
  !o && r && (s = [{ name: r }]);
3061
3061
  const a = s.map((p) => p.name), l = () => {
3062
- M.menu.setItems([]), M.menu.setActiveItem(""), M.tab.setItems([]), M.tab.setActiveItem("");
3062
+ O.menu.setItems([]), O.menu.setActiveItem(""), O.tab.setItems([]), O.tab.setActiveItem("");
3063
3063
  }, c = async (p) => {
3064
3064
  if (p.routeUrl && !a.includes(p.routeUrl)) return !0;
3065
3065
  const f = p.code ?? "", _ = (J().subAppList ?? []).find((C) => C.code === f);
@@ -3076,8 +3076,8 @@ const Kt = (t, e = "") => {
3076
3076
  var V, q, ie, Ie, Rt;
3077
3077
  const { microApp: f = null, menuCode: w = "", menuPath: _ = "", route: g = {} } = p;
3078
3078
  let d = g;
3079
- if (l(), !f && _) {
3080
- if (!(a && a.find((oe) => _.startsWith("/" + oe) || _.startsWith(oe)))) return;
3079
+ if (!f && _) {
3080
+ if (l(), !(a && a.find((oe) => _.startsWith("/" + oe) || _.startsWith(oe)))) return;
3081
3081
  t.push({ path: _, query: d.query });
3082
3082
  return;
3083
3083
  }
@@ -3086,15 +3086,16 @@ const Kt = (t, e = "") => {
3086
3086
  A === "false" && (A = !1);
3087
3087
  const C = (f == null ? void 0 : f.openType) ?? 1, I = (f == null ? void 0 : f.type) ?? 1;
3088
3088
  if (f.routeUrl && !a.includes(f.routeUrl)) {
3089
- const pe = ((ie = J()) == null ? void 0 : ie.subAppList) ?? [];
3090
- if ((pe == null ? void 0 : pe.find((_e) => _e.code === f.code)) || pe == null || pe.push(f), ke([
3089
+ l();
3090
+ const de = ((ie = J()) == null ? void 0 : ie.subAppList) ?? [];
3091
+ if ((de == null ? void 0 : de.find((_e) => _e.code === f.code)) || de == null || de.push(f), ke([
3091
3092
  { key: "currentSubApp", value: f },
3092
3093
  { key: "currentSubAppCode", value: f.code },
3093
- { key: "subAppList", value: pe }
3094
- ]), pe.forEach((_e) => {
3094
+ { key: "subAppList", value: de }
3095
+ ]), de.forEach((_e) => {
3095
3096
  const ze = { ..._e, value: _e.code, label: _e.name };
3096
- M.nav.appendItem(ze);
3097
- }), M.nav.setActiveItem(f.code), le.hideAllMicroApp(), f.routeUrl.includes("entrance=main")) {
3097
+ O.nav.appendItem(ze);
3098
+ }), O.nav.setActiveItem(f.code), f.routeUrl.includes("entrance=main")) {
3098
3099
  t.push({ path: f.routeUrl, query: { ...d.query, app: f.code } });
3099
3100
  return;
3100
3101
  }
@@ -3123,9 +3124,9 @@ const Kt = (t, e = "") => {
3123
3124
  query: { ...Q, app: E.applicationCode, menu: E.code },
3124
3125
  meta: { ...(d == null ? void 0 : d.meta) ?? {} }
3125
3126
  }), S && (S == null ? void 0 : S.code) !== (f == null ? void 0 : f.code)) {
3126
- if (S.fixed && (M.menu.setItems([]), M.tab.setItems([]), t.push(S.path), M.nav.setActiveItem(S.path), le.hideAllMicroApp()), !S.fixed) {
3127
- const pe = (Ie = J().subAppList) == null ? void 0 : Ie.find((ze) => ze.code === S.code), oe = ve().preTab[S.code], _e = { ...(oe == null ? void 0 : oe.query) ?? {} };
3128
- await i({ microApp: pe, menuCode: (oe == null ? void 0 : oe.code) ?? "", route: { query: _e } });
3127
+ if (S.fixed && (t.push(S.path), l(), O.nav.setActiveItem(S.path)), !S.fixed) {
3128
+ const de = (Ie = J().subAppList) == null ? void 0 : Ie.find((ze) => ze.code === S.code), oe = ve().preTab[S.code], _e = { ...(oe == null ? void 0 : oe.query) ?? {} };
3129
+ await i({ microApp: de, menuCode: (oe == null ? void 0 : oe.code) ?? "", route: { query: _e } });
3129
3130
  }
3130
3131
  return;
3131
3132
  }
@@ -3143,11 +3144,11 @@ const Kt = (t, e = "") => {
3143
3144
  if (v && A) {
3144
3145
  (Rt = J().subAppList) == null || Rt.forEach((oe) => {
3145
3146
  const _e = { ...oe, value: oe.code, label: oe.name };
3146
- M.nav.appendItem(_e);
3147
- }), M.nav.setActiveItem(B.code), M.menu.setItems(y);
3148
- const pe = ve().tabMap[B.code] ?? [];
3149
- pe.length && pe.forEach((oe) => {
3150
- M.tab.appendItem({
3147
+ O.nav.appendItem(_e);
3148
+ }), O.nav.setActiveItem(B.code), O.menu.setItems(y);
3149
+ const de = ve().tabMap[B.code] ?? [];
3150
+ de.length && de.forEach((oe) => {
3151
+ O.tab.appendItem({
3151
3152
  ...oe,
3152
3153
  value: oe.code,
3153
3154
  label: oe.name
@@ -3158,13 +3159,13 @@ const Kt = (t, e = "") => {
3158
3159
  }, u = async (p) => {
3159
3160
  var f;
3160
3161
  if (ce.innerSet = !0, p.fixed) {
3161
- M.menu.setItems([]), M.tab.setItems([]), t.push(p.path), M.nav.setActiveItem(p.path), ke([
3162
+ t.push(p.path), O.menu.setItems([]), O.tab.setItems([]), O.nav.setActiveItem(p.path), ke([
3162
3163
  { key: "currentSubAppCode", value: "" },
3163
3164
  { key: "currentSubApp", value: {} }
3164
3165
  ]), Ae([
3165
3166
  { key: "currentCode", value: "" },
3166
3167
  { key: "currentTab", value: {} }
3167
- ]), le.hideAllMicroApp();
3168
+ ]);
3168
3169
  return;
3169
3170
  }
3170
3171
  if (!p.fixed) {
@@ -3193,10 +3194,10 @@ const Kt = (t, e = "") => {
3193
3194
  { key: `tabMap:${p.code}`, value: [] }
3194
3195
  ]), g) {
3195
3196
  const v = { ...g, value: g.code, label: g.name };
3196
- await u(v), M.nav.setActiveItem(g.code);
3197
+ await u(v), O.nav.setActiveItem(g.code);
3197
3198
  }
3198
3199
  if (!f.subAppList.length) {
3199
- M.menu.setItems([]), M.tab.setItems([]);
3200
+ O.menu.setItems([]), O.tab.setItems([]);
3200
3201
  const v = br.find((A) => A.value === je);
3201
3202
  v && u(v), Fn(), Tr();
3202
3203
  }
@@ -3215,18 +3216,18 @@ const Kt = (t, e = "") => {
3215
3216
  if (u === 1)
3216
3217
  if (h === 1)
3217
3218
  if (a.routeUrl.startsWith(ct)) {
3218
- le.hideAllMicroApp(), p = ct;
3219
+ ge.hideAllMicroApp(), p = ct;
3219
3220
  const g = Hs(a.routeUrl, "iframeSrc");
3220
3221
  i = { ...i, iframeSrc: g }, t.push({ path: p, query: i });
3221
3222
  } else a.applicationPath && (p = c || a.routeUrl, p = `/${a.applicationPath}${p}`.replace(/\/\//g, "/"), t.push({ path: p, query: i }));
3222
3223
  else {
3223
- le.hideAllMicroApp(), p = ct;
3224
+ ge.hideAllMicroApp(), p = ct;
3224
3225
  const g = En(wn(bn(a.routeUrl)));
3225
3226
  i = { ...i, iframeSrc: g }, t.push({ path: p, query: i });
3226
3227
  }
3227
3228
  if (u === 2) {
3228
3229
  let g = h === 1 ? `/${a.applicationPath}${a.routeUrl}`.replace(/\/\//g, "/") : a.routeUrl;
3229
- g = En(wn(bn(g))), ce.innerSet ? (le.hideAllMicroApp(), p = Cr, t.push({ path: p, query: i }), g && window.open(g, "_blank")) : h === 1 && (p = g, i = { ...i, showLayout: !1 }, t.push({
3230
+ g = En(wn(bn(g))), ce.innerSet ? (ge.hideAllMicroApp(), p = Cr, t.push({ path: p, query: i }), g && window.open(g, "_blank")) : h === 1 && (p = g, i = { ...i, showLayout: !1 }, t.push({
3230
3231
  path: p,
3231
3232
  query: i
3232
3233
  }));
@@ -3244,11 +3245,11 @@ const Kt = (t, e = "") => {
3244
3245
  path: p,
3245
3246
  query: i
3246
3247
  };
3247
- M.tab.appendItem({
3248
+ O.tab.appendItem({
3248
3249
  ...g,
3249
3250
  value: g.code,
3250
3251
  label: g.name
3251
- }), M.tab.setActiveItem(a.code), M.menu.setActiveItem(a.id), Er(a.code), Ae([
3252
+ }), O.tab.setActiveItem(a.code), O.menu.setActiveItem(a.id), Er(a.code), Ae([
3252
3253
  {
3253
3254
  key: "currentCode",
3254
3255
  value: a.code
@@ -3323,7 +3324,7 @@ const Kt = (t, e = "") => {
3323
3324
  i = {}, k && (i.path = `/${k.applicationPath}${k.path}`.replace(/\/\//g, "/"), i.query = k.query);
3324
3325
  }
3325
3326
  }
3326
- y != null && y.fixed ? (M.menu.setItems([]), M.tab.setItems([]), r.push(y.path), M.nav.setActiveItem(y.path), le.hideAllMicroApp()) : o({ microApp: y, menuCode: i.query.menu, menuPath: i.path, route: i });
3327
+ y != null && y.fixed ? (O.menu.setItems([]), O.tab.setItems([]), r.push(y.path), O.nav.setActiveItem(y.path), ge.hideAllMicroApp()) : o({ microApp: y, menuCode: i.query.menu, menuPath: i.path, route: i });
3327
3328
  return;
3328
3329
  } else {
3329
3330
  const y = p && p.find(
@@ -3343,12 +3344,12 @@ const Kt = (t, e = "") => {
3343
3344
  }
3344
3345
  }
3345
3346
  if (u) {
3346
- le.hideAllMicroApp(), (I = (C = J()) == null ? void 0 : C.subAppList) == null || I.forEach((S) => {
3347
+ ge.hideAllMicroApp(), (I = (C = J()) == null ? void 0 : C.subAppList) == null || I.forEach((S) => {
3347
3348
  const E = { ...S, value: S.code, label: S.name };
3348
- M.nav.appendItem(E);
3349
+ O.nav.appendItem(E);
3349
3350
  });
3350
3351
  const y = t.value.find((S) => S.path === location.pathname);
3351
- y && (M.nav.setActiveItem(y.path), M.menu.setItems([]), M.tab.setItems([]), ke([
3352
+ y && (O.nav.setActiveItem(y.path), O.menu.setItems([]), O.tab.setItems([]), ke([
3352
3353
  { key: "currentSubAppCode", value: "" },
3353
3354
  { key: "currentSubApp", value: {} }
3354
3355
  ]), Ae([
@@ -3405,7 +3406,7 @@ const Kt = (t, e = "") => {
3405
3406
  const p = c.find((f) => f.code === a);
3406
3407
  p && r({ microApp: p, menuPath: `/${p.routeUrl}/userInfo` });
3407
3408
  };
3408
- return M.nav.addEventListener("onUserCommandChange", (a) => {
3409
+ return O.nav.addEventListener("onUserCommandChange", (a) => {
3409
3410
  var c, i;
3410
3411
  ({
3411
3412
  0: (c = e.value) == null ? void 0 : c.openDialog,
@@ -3421,7 +3422,7 @@ const Kt = (t, e = "") => {
3421
3422
  const t = tt(), e = T(!1), n = T(""), o = T(""), r = () => {
3422
3423
  n.value = Yt().id, o.value = cr().tenantId, e.value = !0;
3423
3424
  };
3424
- M.nav.addEventListener("changeEnterpriseHandle", () => {
3425
+ O.nav.addEventListener("changeEnterpriseHandle", () => {
3425
3426
  r();
3426
3427
  });
3427
3428
  const s = () => {
@@ -3465,7 +3466,7 @@ const Kt = (t, e = "") => {
3465
3466
  };
3466
3467
  }, Ap = () => {
3467
3468
  const { changeEnterprise: t } = ts();
3468
- M.nav.addEventListener("onProjectChange", async (e) => {
3469
+ O.nav.addEventListener("onProjectChange", async (e) => {
3469
3470
  const n = On();
3470
3471
  if ((n == null ? void 0 : n.flag) === 4) {
3471
3472
  const o = n.tenant.id, r = (e == null ? void 0 : e.tenant) ?? "";
@@ -3481,7 +3482,7 @@ const Kt = (t, e = "") => {
3481
3482
  const [r, s] = await yp().run({ name: o });
3482
3483
  return r ? [] : s.filter((a) => a.routeUrl);
3483
3484
  }, { entryApp: n } = vt();
3484
- return M.nav.addEventListener("searchToPage", async (o) => {
3485
+ return O.nav.addEventListener("searchToPage", async (o) => {
3485
3486
  const { item: r, keyword: s, cb: a } = o;
3486
3487
  if (r != null && r.disable || r != null && r.expired) {
3487
3488
  const { title: u, content: h, desc: p } = await Zn(r);
@@ -3491,10 +3492,10 @@ const Kt = (t, e = "") => {
3491
3492
  await wp().run({ searchVal: s, clickData: r });
3492
3493
  const i = ((J().appcategorys ?? []).map((u) => u.apps).flat() ?? []).find((u) => u.code === r.applicationCode);
3493
3494
  i && (n({ microApp: i, menuCode: r.code }), a());
3494
- }), M.nav.addEventListener("deleteSearchItem", async (o) => {
3495
+ }), O.nav.addEventListener("deleteSearchItem", async (o) => {
3495
3496
  const { value: r, cb: s } = o;
3496
3497
  await Cp().run({ id: r }), s();
3497
- }), M.nav.addEventListener("clearSearchList", async (o) => {
3498
+ }), O.nav.addEventListener("clearSearchList", async (o) => {
3498
3499
  const { cb: r } = o;
3499
3500
  await bp().run(), r();
3500
3501
  }), {
@@ -3507,12 +3508,12 @@ const Kt = (t, e = "") => {
3507
3508
  excludeRoutes: [],
3508
3509
  routeKeepAliveVisible: !0
3509
3510
  }), Tp = () => {
3510
- le.addEventListenerFromMicroApp("iot:change-instance", (t) => {
3511
+ ge.addEventListenerFromMicroApp("iot:change-instance", (t) => {
3511
3512
  const e = J(), n = e.currentSubAppCode;
3512
3513
  let o = zt(n);
3513
3514
  o.forEach((s) => {
3514
3515
  s.fixed && (s.name = t.data.instanceInfo.instanceName);
3515
- }), M.menu.setItems(o);
3516
+ }), O.menu.setItems(o);
3516
3517
  const r = e.subAppList;
3517
3518
  r == null || r.forEach((s) => {
3518
3519
  s.code === n && (s.menus = o);
@@ -3529,21 +3530,21 @@ const Kt = (t, e = "") => {
3529
3530
  });
3530
3531
  }, Ep = (t) => {
3531
3532
  ["personcenter", "rightmanage"].forEach((n) => {
3532
- le.addEventListenerFromMicroApp(`${n}:change-userinfo`, (o) => {
3533
+ ge.addEventListenerFromMicroApp(`${n}:change-userinfo`, (o) => {
3533
3534
  const { userInfo: r } = o.data, s = r != null && r.headPicture ? Mn(r.headPicture) : void 0;
3534
- M.nav.setUserInfo({ headPicture: s, commandList: t.value }), sessionStorage.setItem("userInfo", JSON.stringify(r));
3535
+ O.nav.setUserInfo({ headPicture: s, commandList: t.value }), sessionStorage.setItem("userInfo", JSON.stringify(r));
3535
3536
  });
3536
3537
  });
3537
3538
  }, Sp = () => {
3538
- le.addEventListenerFromMicroApp("devicePanelShow", (t) => {
3539
+ ge.addEventListenerFromMicroApp("devicePanelShow", (t) => {
3539
3540
  const { deviceId: e = "", panelCode: n = "", deviceName: o = "", x: r = 0, y: s = 0, isCenter: a = !1 } = t.data;
3540
3541
  fr(e, n, o, r, s, a);
3541
- }), le.addEventListenerFromMicroApp("closeDevicePanel", (t) => {
3542
+ }), ge.addEventListenerFromMicroApp("closeDevicePanel", (t) => {
3542
3543
  Xs();
3543
- }), le.addEventListenerFromMicroApp("alarmDevicePanelShow", (t) => {
3544
+ }), ge.addEventListenerFromMicroApp("alarmDevicePanelShow", (t) => {
3544
3545
  const { deviceId: e = "", panelCode: n = "", alarmTime: o = "" } = t.data;
3545
3546
  Zs(e, n, o);
3546
- }), le.addEventListenerFromMicroApp("closeAlarmPanel", (t) => {
3547
+ }), ge.addEventListenerFromMicroApp("closeAlarmPanel", (t) => {
3547
3548
  Ys();
3548
3549
  });
3549
3550
  }, kp = Qn.get("/platform/login/pwd-advance-notify-check"), Pp = () => {
@@ -3559,7 +3560,7 @@ const Kt = (t, e = "") => {
3559
3560
  await kp().run();
3560
3561
  },
3561
3562
  message: async (a) => {
3562
- if (le.sendMessageToMicroApp("enterpriseadmin/messagecenter", "message", { msgList: a }), window.self !== window.top) return;
3563
+ if (ge.sendMessageToMicroApp("enterpriseadmin/messagecenter", "message", { msgList: a }), window.self !== window.top) return;
3563
3564
  const c = Fe().id;
3564
3565
  t.value = a.filter(
3565
3566
  (i) => i.projectId === c || i.projectId === 0 || i.projectId === "0"
@@ -3569,16 +3570,16 @@ const Kt = (t, e = "") => {
3569
3570
  class: "message-center-notify",
3570
3571
  message: i.title,
3571
3572
  top: "55px",
3572
- description: he("div", {}, [
3573
+ description: fe("div", {}, [
3573
3574
  // 标题
3574
- he("div", { class: "custom-title" }, [
3575
- he(qe, { icon: "warning-face", width: 24, height: 24, iconColor: "#5582f3" }),
3576
- he("div", { class: "title" }, i.title)
3575
+ fe("div", { class: "custom-title" }, [
3576
+ fe(qe, { icon: "warning-face", width: 24, height: 24, iconColor: "#5582f3" }),
3577
+ fe("div", { class: "title" }, i.title)
3577
3578
  ]),
3578
3579
  // 内容
3579
- he("div", { class: "custom-content" }, i.content),
3580
+ fe("div", { class: "custom-content" }, i.content),
3580
3581
  // 底部按钮
3581
- i.title !== "密码更新提醒" ? he(
3582
+ i.title !== "密码更新提醒" ? fe(
3582
3583
  "div",
3583
3584
  {
3584
3585
  class: "footer-btn",
@@ -3644,7 +3645,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3644
3645
  onClick: h[1] || (h[1] = (p) => c())
3645
3646
  },
3646
3647
  [
3647
- fe(u.$slots, "default", {}, void 0, !0)
3648
+ pe(u.$slots, "default", {}, void 0, !0)
3648
3649
  ],
3649
3650
  34
3650
3651
  /* CLASS, NEED_HYDRATION */
@@ -3673,7 +3674,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3673
3674
  onItemClick: (i) => r(c)
3674
3675
  }, {
3675
3676
  default: R(() => [
3676
- s.showFn(c) ? fe(s.$slots, "default", {
3677
+ s.showFn(c) ? pe(s.$slots, "default", {
3677
3678
  key: 0,
3678
3679
  index: c
3679
3680
  }, void 0, !0) : j("v-if", !0)
@@ -3697,14 +3698,14 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3697
3698
  "div",
3698
3699
  {
3699
3700
  class: "direction-control",
3700
- onDblclick: s[9] || (s[9] = ue((a) => a.stopPropagation(), ["stop"]))
3701
+ onDblclick: s[9] || (s[9] = le((a) => a.stopPropagation(), ["stop"]))
3701
3702
  },
3702
3703
  [
3703
3704
  x(m(me), { content: "左上" }, {
3704
3705
  default: R(() => [
3705
- O("div", {
3706
+ M("div", {
3706
3707
  class: "icon icon-top-left",
3707
- onClick: s[0] || (s[0] = ue((a) => o("leftUp"), ["stop"]))
3708
+ onClick: s[0] || (s[0] = le((a) => o("leftUp"), ["stop"]))
3708
3709
  })
3709
3710
  ]),
3710
3711
  _: 1
@@ -3712,9 +3713,9 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3712
3713
  }),
3713
3714
  x(m(me), { content: "上" }, {
3714
3715
  default: R(() => [
3715
- O("div", {
3716
+ M("div", {
3716
3717
  class: "icon icon-top",
3717
- onClick: s[1] || (s[1] = ue((a) => o("up"), ["stop"]))
3718
+ onClick: s[1] || (s[1] = le((a) => o("up"), ["stop"]))
3718
3719
  })
3719
3720
  ]),
3720
3721
  _: 1
@@ -3722,9 +3723,9 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3722
3723
  }),
3723
3724
  x(m(me), { content: "右上" }, {
3724
3725
  default: R(() => [
3725
- O("div", {
3726
+ M("div", {
3726
3727
  class: "icon icon-top-right",
3727
- onClick: s[2] || (s[2] = ue((a) => o("rightUp"), ["stop"]))
3728
+ onClick: s[2] || (s[2] = le((a) => o("rightUp"), ["stop"]))
3728
3729
  })
3729
3730
  ]),
3730
3731
  _: 1
@@ -3732,9 +3733,9 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3732
3733
  }),
3733
3734
  x(m(me), { content: "左" }, {
3734
3735
  default: R(() => [
3735
- O("div", {
3736
+ M("div", {
3736
3737
  class: "icon icon-left",
3737
- onClick: s[3] || (s[3] = ue((a) => o("left"), ["stop"]))
3738
+ onClick: s[3] || (s[3] = le((a) => o("left"), ["stop"]))
3738
3739
  })
3739
3740
  ]),
3740
3741
  _: 1
@@ -3742,9 +3743,9 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3742
3743
  }),
3743
3744
  x(m(me), { content: "自动" }, {
3744
3745
  default: R(() => [
3745
- O("div", {
3746
+ M("div", {
3746
3747
  class: "icon icon-auto",
3747
- onClick: s[4] || (s[4] = ue((a) => o("auto"), ["stop"]))
3748
+ onClick: s[4] || (s[4] = le((a) => o("auto"), ["stop"]))
3748
3749
  })
3749
3750
  ]),
3750
3751
  _: 1
@@ -3752,9 +3753,9 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3752
3753
  }),
3753
3754
  x(m(me), { content: "右" }, {
3754
3755
  default: R(() => [
3755
- O("div", {
3756
+ M("div", {
3756
3757
  class: "icon icon-right",
3757
- onClick: s[5] || (s[5] = ue((a) => o("right"), ["stop"]))
3758
+ onClick: s[5] || (s[5] = le((a) => o("right"), ["stop"]))
3758
3759
  })
3759
3760
  ]),
3760
3761
  _: 1
@@ -3762,9 +3763,9 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3762
3763
  }),
3763
3764
  x(m(me), { content: "左下" }, {
3764
3765
  default: R(() => [
3765
- O("div", {
3766
+ M("div", {
3766
3767
  class: "icon icon-bottom-left",
3767
- onClick: s[6] || (s[6] = ue((a) => o("leftDown"), ["stop"]))
3768
+ onClick: s[6] || (s[6] = le((a) => o("leftDown"), ["stop"]))
3768
3769
  })
3769
3770
  ]),
3770
3771
  _: 1
@@ -3772,9 +3773,9 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3772
3773
  }),
3773
3774
  x(m(me), { content: "下" }, {
3774
3775
  default: R(() => [
3775
- O("div", {
3776
+ M("div", {
3776
3777
  class: "icon icon-bottom",
3777
- onClick: s[7] || (s[7] = ue((a) => o("down"), ["stop"]))
3778
+ onClick: s[7] || (s[7] = le((a) => o("down"), ["stop"]))
3778
3779
  })
3779
3780
  ]),
3780
3781
  _: 1
@@ -3782,9 +3783,9 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3782
3783
  }),
3783
3784
  x(m(me), { content: "右下" }, {
3784
3785
  default: R(() => [
3785
- O("div", {
3786
+ M("div", {
3786
3787
  class: "icon icon-bottom-right",
3787
- onClick: s[8] || (s[8] = ue((a) => o("rightDown"), ["stop"]))
3788
+ onClick: s[8] || (s[8] = le((a) => o("rightDown"), ["stop"]))
3788
3789
  })
3789
3790
  ]),
3790
3791
  _: 1
@@ -3895,10 +3896,10 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3895
3896
  tip: "加载中..."
3896
3897
  }, {
3897
3898
  default: R(() => [
3898
- O("div", Vp, [
3899
- O("div", Wp, [
3900
- O("div", zp, [
3901
- O(
3899
+ M("div", Vp, [
3900
+ M("div", Wp, [
3901
+ M("div", zp, [
3902
+ M(
3902
3903
  "div",
3903
3904
  qp,
3904
3905
  se(n.title.length > 20 ? n.title.slice(0, 19) + "..." : n.title),
@@ -3907,7 +3908,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3907
3908
  )
3908
3909
  ])
3909
3910
  ]),
3910
- O("div", Jp, [
3911
+ M("div", Jp, [
3911
3912
  ["live"].includes(A.type) ? ($(), W("span", Kp, "正在实时预览")) : j("v-if", !0),
3912
3913
  j(' <das-icon class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
3913
3914
  ])
@@ -3921,20 +3922,20 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3921
3922
  onLoaded: h,
3922
3923
  src: n.videoUrl
3923
3924
  }, null, 8, ["muted", "src"])) : j("v-if", !0),
3924
- O("div", Gp, [
3925
- C[3] || (C[3] = O(
3925
+ M("div", Gp, [
3926
+ C[3] || (C[3] = M(
3926
3927
  "div",
3927
3928
  { class: "video-bottom_l" },
3928
3929
  null,
3929
3930
  -1
3930
3931
  /* HOISTED */
3931
3932
  )),
3932
- O("div", Xp, [
3933
- O(
3933
+ M("div", Xp, [
3934
+ M(
3934
3935
  "div",
3935
3936
  {
3936
3937
  class: "controls",
3937
- onDblclick: C[2] || (C[2] = ue((I) => I.stopPropagation(), ["stop"]))
3938
+ onDblclick: C[2] || (C[2] = le((I) => I.stopPropagation(), ["stop"]))
3938
3939
  },
3939
3940
  [
3940
3941
  x(m(me), { content: "声音" }, {
@@ -3942,7 +3943,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3942
3943
  x(m(qe), {
3943
3944
  class: "icon icon-volume",
3944
3945
  icon: r.value ? "muted" : "volume",
3945
- onClick: ue(p, ["stop"])
3946
+ onClick: le(p, ["stop"])
3946
3947
  }, null, 8, ["icon"])
3947
3948
  ]),
3948
3949
  _: 1
@@ -3953,7 +3954,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3953
3954
  x(m(qe), {
3954
3955
  class: "icon icon-screenshot",
3955
3956
  icon: "screenshot",
3956
- onClick: ue(_, ["stop"])
3957
+ onClick: le(_, ["stop"])
3957
3958
  })
3958
3959
  ]),
3959
3960
  _: 1
@@ -3968,7 +3969,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3968
3969
  key: 0,
3969
3970
  class: "icon icon-shrink",
3970
3971
  icon: "shrink",
3971
- onClick: C[0] || (C[0] = ue((I) => d("zoomOut"), ["stop"]))
3972
+ onClick: C[0] || (C[0] = le((I) => d("zoomOut"), ["stop"]))
3972
3973
  })) : j("v-if", !0)
3973
3974
  ]),
3974
3975
  _: 1
@@ -3983,7 +3984,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3983
3984
  key: 0,
3984
3985
  class: "icon icon-enlarge",
3985
3986
  icon: "enlarge",
3986
- onClick: C[1] || (C[1] = ue((I) => d("zoomIn"), ["stop"]))
3987
+ onClick: C[1] || (C[1] = le((I) => d("zoomIn"), ["stop"]))
3987
3988
  })) : j("v-if", !0)
3988
3989
  ]),
3989
3990
  _: 1
@@ -3998,7 +3999,7 @@ const Bp = $p.post("data/device-auth"), Rp = /* @__PURE__ */ ne({
3998
3999
  key: 0,
3999
4000
  class: "icon icon-direction-control",
4000
4001
  icon: "direction-control",
4001
- onClick: ue(f, ["stop"])
4002
+ onClick: le(f, ["stop"])
4002
4003
  })) : j("v-if", !0)
4003
4004
  ]),
4004
4005
  _: 1
@@ -4150,7 +4151,7 @@ const nf = /* @__PURE__ */ ne({
4150
4151
  onClosed: a.closeCallback
4151
4152
  }, {
4152
4153
  header: R(() => [
4153
- l[1] || (l[1] = O(
4154
+ l[1] || (l[1] = M(
4154
4155
  "div",
4155
4156
  null,
4156
4157
  "视频监控",
@@ -4182,7 +4183,7 @@ const nf = /* @__PURE__ */ ne({
4182
4183
  return new Promise((o) => {
4183
4184
  let r = document.body.querySelector("#video-dialog");
4184
4185
  r || (r = document.createElement("div"), r.setAttribute("id", "video-dialog-container"), document.body.appendChild(r));
4185
- const a = he(nf, { gridNum: e, deviceList: n, closeCallback: () => {
4186
+ const a = fe(nf, { gridNum: e, deviceList: n, closeCallback: () => {
4186
4187
  Vt(null, r), document.body.removeChild(r), o(null);
4187
4188
  } });
4188
4189
  Vt(a, r);
@@ -5343,10 +5344,10 @@ var re;
5343
5344
  (function(t) {
5344
5345
  t[t.None = 0] = "None", t[t.WebSockets = 1] = "WebSockets", t[t.ServerSentEvents = 2] = "ServerSentEvents", t[t.LongPolling = 4] = "LongPolling";
5345
5346
  })(re || (re = {}));
5346
- var ge;
5347
+ var he;
5347
5348
  (function(t) {
5348
5349
  t[t.Text = 1] = "Text", t[t.Binary = 2] = "Binary";
5349
- })(ge || (ge = {}));
5350
+ })(he || (he = {}));
5350
5351
  let $f = class {
5351
5352
  constructor() {
5352
5353
  this._isAborted = !1, this.onabort = null;
@@ -5370,7 +5371,7 @@ class tr {
5370
5371
  this._httpClient = e, this._logger = n, this._pollAbort = new $f(), this._options = o, this._running = !1, this.onreceive = null, this.onclose = null;
5371
5372
  }
5372
5373
  async connect(e, n) {
5373
- if (ae.isRequired(e, "url"), ae.isRequired(n, "transferFormat"), ae.isIn(n, ge, "transferFormat"), this._url = e, this._logger.log(b.Trace, "(LongPolling transport) Connecting."), n === ge.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
5374
+ if (ae.isRequired(e, "url"), ae.isRequired(n, "transferFormat"), ae.isIn(n, he, "transferFormat"), this._url = e, this._logger.log(b.Trace, "(LongPolling transport) Connecting."), n === he.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
5374
5375
  throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");
5375
5376
  const [o, r] = pt(), s = { [o]: r, ...this._options.headers }, a = {
5376
5377
  abortSignal: this._pollAbort.signal,
@@ -5378,7 +5379,7 @@ class tr {
5378
5379
  timeout: 1e5,
5379
5380
  withCredentials: this._options.withCredentials
5380
5381
  };
5381
- n === ge.Binary && (a.responseType = "arraybuffer");
5382
+ n === he.Binary && (a.responseType = "arraybuffer");
5382
5383
  const l = `${e}&_=${Date.now()}`;
5383
5384
  this._logger.log(b.Trace, `(LongPolling transport) polling: ${l}.`);
5384
5385
  const c = await this._httpClient.get(l, a);
@@ -5436,9 +5437,9 @@ class Df {
5436
5437
  this._httpClient = e, this._accessToken = n, this._logger = o, this._options = r, this.onreceive = null, this.onclose = null;
5437
5438
  }
5438
5439
  async connect(e, n) {
5439
- return ae.isRequired(e, "url"), ae.isRequired(n, "transferFormat"), ae.isIn(n, ge, "transferFormat"), this._logger.log(b.Trace, "(SSE transport) Connecting."), this._url = e, this._accessToken && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(this._accessToken)}`), new Promise((o, r) => {
5440
+ return ae.isRequired(e, "url"), ae.isRequired(n, "transferFormat"), ae.isIn(n, he, "transferFormat"), this._logger.log(b.Trace, "(SSE transport) Connecting."), this._url = e, this._accessToken && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(this._accessToken)}`), new Promise((o, r) => {
5440
5441
  let s = !1;
5441
- if (n !== ge.Text) {
5442
+ if (n !== he.Text) {
5442
5443
  r(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));
5443
5444
  return;
5444
5445
  }
@@ -5486,7 +5487,7 @@ class Mf {
5486
5487
  this._logger = o, this._accessTokenFactory = n, this._logMessageContent = r, this._webSocketConstructor = s, this._httpClient = e, this.onreceive = null, this.onclose = null, this._headers = a;
5487
5488
  }
5488
5489
  async connect(e, n) {
5489
- ae.isRequired(e, "url"), ae.isRequired(n, "transferFormat"), ae.isIn(n, ge, "transferFormat"), this._logger.log(b.Trace, "(WebSockets transport) Connecting.");
5490
+ ae.isRequired(e, "url"), ae.isRequired(n, "transferFormat"), ae.isIn(n, he, "transferFormat"), this._logger.log(b.Trace, "(WebSockets transport) Connecting.");
5490
5491
  let o;
5491
5492
  return this._accessTokenFactory && (o = await this._accessTokenFactory()), new Promise((r, s) => {
5492
5493
  e = e.replace(/^http/, "ws");
@@ -5500,7 +5501,7 @@ class Mf {
5500
5501
  });
5501
5502
  } else
5502
5503
  o && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(o)}`);
5503
- a || (a = new this._webSocketConstructor(e)), n === ge.Binary && (a.binaryType = "arraybuffer"), a.onopen = (i) => {
5504
+ a || (a = new this._webSocketConstructor(e)), n === he.Binary && (a.binaryType = "arraybuffer"), a.onopen = (i) => {
5504
5505
  this._logger.log(b.Information, `WebSocket connected to ${e}.`), this._webSocket = a, c = !0, r();
5505
5506
  }, a.onerror = (i) => {
5506
5507
  let u = null;
@@ -5556,7 +5557,7 @@ class Of {
5556
5557
  !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 Lf(n.httpClient || new wf(this._logger), n.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = n, this.onreceive = null, this.onclose = null;
5557
5558
  }
5558
5559
  async start(e) {
5559
- if (e = e || ge.Binary, ae.isIn(e, ge, "transferFormat"), this._logger.log(b.Debug, `Starting connection with transfer format '${ge[e]}'.`), this._connectionState !== "Disconnected")
5560
+ if (e = e || he.Binary, ae.isIn(e, he, "transferFormat"), this._logger.log(b.Debug, `Starting connection with transfer format '${he[e]}'.`), this._connectionState !== "Disconnected")
5560
5561
  return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));
5561
5562
  if (this._connectionState = "Connecting", this._startInternalPromise = this._startInternal(e), await this._startInternalPromise, this._connectionState === "Disconnecting") {
5562
5563
  const n = "Failed to start the HttpConnection before stop() was called.";
@@ -5723,7 +5724,7 @@ class Of {
5723
5724
  if (s == null)
5724
5725
  return this._logger.log(b.Debug, `Skipping transport '${e.transport}' because it is not supported by this client.`), new Error(`Skipping transport '${e.transport}' because it is not supported by this client.`);
5725
5726
  if (Bf(n, s))
5726
- if (e.transferFormats.map((l) => ge[l]).indexOf(o) >= 0) {
5727
+ if (e.transferFormats.map((l) => he[l]).indexOf(o) >= 0) {
5727
5728
  if (s === re.WebSockets && !this._options.WebSocket || s === re.ServerSentEvents && !this._options.EventSource)
5728
5729
  return this._logger.log(b.Debug, `Skipping transport '${re[s]}' because it is not supported in your environment.'`), new sf(`'${re[s]}' is not supported in your environment.`, s);
5729
5730
  this._logger.log(b.Debug, `Selecting transport '${re[s]}'.`);
@@ -5733,7 +5734,7 @@ class Of {
5733
5734
  return l;
5734
5735
  }
5735
5736
  } else
5736
- return this._logger.log(b.Debug, `Skipping transport '${re[s]}' because it does not support the requested transfer format '${ge[o]}'.`), new Error(`'${re[s]}' does not support ${ge[o]}.`);
5737
+ return this._logger.log(b.Debug, `Skipping transport '${re[s]}' because it does not support the requested transfer format '${he[o]}'.`), new Error(`'${re[s]}' does not support ${he[o]}.`);
5737
5738
  else
5738
5739
  return this._logger.log(b.Debug, `Skipping transport '${re[s]}' because it was disabled by the client.`), new af(`'${re[s]}' is disabled by the client.`, s);
5739
5740
  }
@@ -5831,7 +5832,7 @@ class Nt {
5831
5832
  const Rf = "json";
5832
5833
  class xf {
5833
5834
  constructor() {
5834
- this.name = Rf, this.version = 2, this.transferFormat = ge.Text;
5835
+ this.name = Rf, this.version = 2, this.transferFormat = he.Text;
5835
5836
  }
5836
5837
  /** Creates an array of {@link @microsoft/signalr.HubMessage} objects from the specified serialized representation.
5837
5838
  *
@@ -6206,7 +6207,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
6206
6207
  P.length > 0 && (g.value = P[0].path), i.value.reportPosition = D, C.value = "";
6207
6208
  }, Rt = (D) => {
6208
6209
  D && (u.value.reportPosition = "", g.value = ""), D ? (i.value.reportPosition = null, g.value = "", d.value = "告警对象位置") : (i.value.reportPosition = null, g.value = "", d.value = "请选择");
6209
- }, pe = (D) => {
6210
+ }, de = (D) => {
6210
6211
  D && (u.value.reportTheme = ""), D ? (i.value.reportTheme = "", v.value = "告警对象") : (i.value.reportTheme = "", v.value = "请输入");
6211
6212
  }, oe = () => {
6212
6213
  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 = "";
@@ -6317,7 +6318,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
6317
6318
  )
6318
6319
  ]),
6319
6320
  footer: R(() => [
6320
- O("div", hh, [
6321
+ M("div", hh, [
6321
6322
  x(m(Ue), {
6322
6323
  size: "middle",
6323
6324
  onClick: ds
@@ -6366,7 +6367,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
6366
6367
  default: R(() => [
6367
6368
  x(m(gr), { spinning: s.value }, {
6368
6369
  default: R(() => [
6369
- O(
6370
+ M(
6370
6371
  "div",
6371
6372
  {
6372
6373
  ref_key: "myDialogBody",
@@ -6449,8 +6450,8 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
6449
6450
  marginRight: "0"
6450
6451
  }, {
6451
6452
  default: R(() => [
6452
- O("div", uh, [
6453
- O("div", dh, [
6453
+ M("div", uh, [
6454
+ M("div", dh, [
6454
6455
  x(m(sa), {
6455
6456
  borderType: "underline",
6456
6457
  props: { disabled: "_disabled", label: "name" },
@@ -6512,7 +6513,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
6512
6513
  marginRight: "0"
6513
6514
  }, {
6514
6515
  default: R(() => [
6515
- O("div", ph, [
6516
+ M("div", ph, [
6516
6517
  x(m(po), {
6517
6518
  maxlength: "20",
6518
6519
  disabled: k.value,
@@ -6525,7 +6526,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
6525
6526
  modelValue: Q.value,
6526
6527
  "onUpdate:modelValue": P[15] || (P[15] = (L) => Q.value = L),
6527
6528
  checkboxType: "default",
6528
- onChange: pe,
6529
+ onChange: de,
6529
6530
  size: "middle"
6530
6531
  }, {
6531
6532
  default: R(() => [
@@ -6613,7 +6614,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
6613
6614
  marginRight: "0"
6614
6615
  }, {
6615
6616
  default: R(() => [
6616
- O("div", fh, [
6617
+ M("div", fh, [
6617
6618
  x(m(ra), {
6618
6619
  class: "select",
6619
6620
  modelValue: i.value.interval,
@@ -6654,7 +6655,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
6654
6655
  ]));
6655
6656
  }
6656
6657
  }), vh = /* @__PURE__ */ Ce(mh, [["__scopeId", "data-v-1ecf3324"]]), Ah = (t, e, n) => ({
6657
- handleAlarmVue: () => he(vh, {
6658
+ handleAlarmVue: () => fe(vh, {
6658
6659
  handerIds: e.value,
6659
6660
  projectId: Yt().id,
6660
6661
  ref: t,
@@ -6681,20 +6682,20 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
6681
6682
  null,
6682
6683
  [
6683
6684
  j(` <div class="alarm-msg" :style="{ 'border-color': msgItem.color }"> `),
6684
- O("div", yh, [
6685
- O("div", _h, [
6686
- O(
6685
+ M("div", yh, [
6686
+ M("div", _h, [
6687
+ M(
6687
6688
  "div",
6688
6689
  {
6689
6690
  style: yn({ "background-color": a.msgItem.color }),
6690
6691
  class: "title-detail"
6691
6692
  },
6692
6693
  [
6693
- O("div", wh, [
6694
+ M("div", wh, [
6694
6695
  j(` <div class="icon-box" :style="{ color: msgItem.color }">\r
6695
6696
  !\r
6696
6697
  </div> `),
6697
- O(
6698
+ M(
6698
6699
  "div",
6699
6700
  bh,
6700
6701
  se(m(N)("新告警").value),
@@ -6702,7 +6703,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
6702
6703
  /* TEXT */
6703
6704
  )
6704
6705
  ]),
6705
- l[0] || (l[0] = O(
6706
+ l[0] || (l[0] = M(
6706
6707
  "div",
6707
6708
  { class: "title-right" },
6708
6709
  null,
@@ -6713,16 +6714,16 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
6713
6714
  4
6714
6715
  /* STYLE */
6715
6716
  ),
6716
- O("div", Ch, [
6717
- O("div", Ih, [
6718
- O(
6717
+ M("div", Ch, [
6718
+ M("div", Ih, [
6719
+ M(
6719
6720
  "div",
6720
6721
  Th,
6721
6722
  se(m(N)("告警等级:").value),
6722
6723
  1
6723
6724
  /* TEXT */
6724
6725
  ),
6725
- O(
6726
+ M(
6726
6727
  "div",
6727
6728
  {
6728
6729
  class: "alarm-msg-line-right alarm-content-object",
@@ -6733,15 +6734,15 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
6733
6734
  /* TEXT, STYLE */
6734
6735
  )
6735
6736
  ]),
6736
- O("div", Eh, [
6737
- O(
6737
+ M("div", Eh, [
6738
+ M(
6738
6739
  "div",
6739
6740
  Sh,
6740
6741
  se(m(N)("告警对象:").value),
6741
6742
  1
6742
6743
  /* TEXT */
6743
6744
  ),
6744
- O(
6745
+ M(
6745
6746
  "div",
6746
6747
  kh,
6747
6748
  se(a.msgItem.equipmentName || ""),
@@ -6749,15 +6750,15 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
6749
6750
  /* TEXT */
6750
6751
  )
6751
6752
  ]),
6752
- O("div", Ph, [
6753
- O(
6753
+ M("div", Ph, [
6754
+ M(
6754
6755
  "div",
6755
6756
  Lh,
6756
6757
  se(m(N)("告警内容:").value),
6757
6758
  1
6758
6759
  /* TEXT */
6759
6760
  ),
6760
- O(
6761
+ M(
6761
6762
  "div",
6762
6763
  $h,
6763
6764
  se(a.msgItem.alarmContent || ""),
@@ -6765,11 +6766,11 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
6765
6766
  /* TEXT */
6766
6767
  )
6767
6768
  ]),
6768
- O("div", Dh, [
6769
+ M("div", Dh, [
6769
6770
  a.msgItem.equipmentCode && a.msgItem.equipmentPanelCode ? ($(), F(m(Ue), {
6770
6771
  key: 0,
6771
6772
  block: "",
6772
- onClick: ue(s, ["stop"]),
6773
+ onClick: le(s, ["stop"]),
6773
6774
  btnType: "primary-text",
6774
6775
  size: "middle"
6775
6776
  }, {
@@ -6787,7 +6788,7 @@ const Jf = et(`/api/tool/event-bus/${an}/`), vn = Jf.post("/publish"), Kf = xn.g
6787
6788
  key: 1,
6788
6789
  block: "",
6789
6790
  btnType: "primary-text",
6790
- onClick: ue(r, ["stop"]),
6791
+ onClick: le(r, ["stop"]),
6791
6792
  size: "middle"
6792
6793
  }, {
6793
6794
  default: R(() => [
@@ -6835,7 +6836,7 @@ const Rh = () => {
6835
6836
  loop: !1
6836
6837
  // 轮播-无限次播放
6837
6838
  });
6838
- le.addEventListenerFromMicroApp("alarm:change-alarmconfig", (E) => {
6839
+ ge.addEventListenerFromMicroApp("alarm:change-alarmconfig", (E) => {
6839
6840
  const { isRealTimeAlarm: k, audioPlay: Q } = E.data;
6840
6841
  k != null && (l.value = k), Q != null && (c.value = Q, c.value || C());
6841
6842
  });
@@ -6862,7 +6863,7 @@ const Rh = () => {
6862
6863
  class: "alarm-notify",
6863
6864
  message: N("新告警").value,
6864
6865
  placement: "bottomRight",
6865
- description: he(Oh, {
6866
+ description: fe(Oh, {
6866
6867
  msgItem: E,
6867
6868
  alarmhandle: a.value,
6868
6869
  onHanderDetail: p,
@@ -6935,7 +6936,7 @@ const Rh = () => {
6935
6936
  B && t.value.send(B);
6936
6937
  },
6937
6938
  message: async (B) => {
6938
- le.sendMessageToMicroApp("enterpriseadmin/alarm", "alarmmessage", { alarmMessage: B }), window.self === window.top && (B.messageType === "ADD" && (e.value = e.value + 1, B.coverId || g(B)), B.messageType === "DELETE" && (e.value = e.value - 1, i.value.playId == B.recordId && C()));
6939
+ ge.sendMessageToMicroApp("enterpriseadmin/alarm", "alarmmessage", { alarmMessage: B }), window.self === window.top && (B.messageType === "ADD" && (e.value = e.value + 1, B.coverId || g(B)), B.messageType === "DELETE" && (e.value = e.value - 1, i.value.playId == B.recordId && C()));
6939
6940
  }
6940
6941
  }));
6941
6942
  }
@@ -6953,7 +6954,7 @@ const Rh = () => {
6953
6954
  null,
6954
6955
  [
6955
6956
  x(m(s)),
6956
- O("audio", {
6957
+ M("audio", {
6957
6958
  src: m(o).playPath,
6958
6959
  class: "audio-alarm-level",
6959
6960
  ref_key: "audioAlarmRef",
@@ -7028,15 +7029,15 @@ T("@das-fed/web");
7028
7029
  const Uh = [
7029
7030
  {
7030
7031
  path: je,
7031
- component: () => import("./index-DNqfV3E9.js")
7032
+ component: () => import("./index-6kRVLftK.js")
7032
7033
  },
7033
7034
  {
7034
7035
  path: ct,
7035
- component: () => import("./index-D6BMoZho.js")
7036
+ component: () => import("./index-Dh0QsqJt.js")
7036
7037
  },
7037
7038
  {
7038
7039
  path: Cr,
7039
- component: () => import("./index-C9Z5Et6m.js")
7040
+ component: () => import("./index-DGIGwZce.js")
7040
7041
  }
7041
7042
  ], Yg = {
7042
7043
  routes: Uh,