@das-fed/web 6.4.0-dev.34 → 6.4.0-dev.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/esm-map.json +2 -1
  2. package/{index-B3Zo7C9d.js → index-CRBeP89z.js} +204 -205
  3. package/index-CRBeP89z.js.gz +0 -0
  4. package/{packages/main-app-framework/index-BYJ_iw6e.js → index-CzrTf6x-.js} +1 -1
  5. package/index-CzrTf6x-.js.gz +0 -0
  6. package/index-DQLhHoNj.js +74 -0
  7. package/index-DQLhHoNj.js.gz +0 -0
  8. package/{index-DKcYM4y1.js → index-MmUsuVm6.js} +1 -1
  9. package/index.js +17 -16
  10. package/package.json +6 -6
  11. package/packages/layout/index.js +2 -1
  12. package/packages/layout/index.js.gz +0 -0
  13. package/packages/main-app-framework/{index-BGqxNwVK.js → index-BH90O_oP.js} +174 -176
  14. package/packages/main-app-framework/index-BH90O_oP.js.gz +0 -0
  15. package/{index-DJ8zDx6p.js → packages/main-app-framework/index-CwKf8xGn.js} +1 -1
  16. package/packages/main-app-framework/index-CwKf8xGn.js.gz +0 -0
  17. package/packages/main-app-framework/{index-FJjkdoP_.js → index-OD7R3sDR.js} +1 -1
  18. package/packages/main-app-framework/index-yWjHN1Jc.js +74 -0
  19. package/packages/main-app-framework/index-yWjHN1Jc.js.gz +0 -0
  20. package/packages/main-app-framework/index.js +1 -1
  21. package/types/layout/index.d.ts +1 -1
  22. package/index-B3Zo7C9d.js.gz +0 -0
  23. package/index-DJ8zDx6p.js.gz +0 -0
  24. package/index-XC7gVyAV.js +0 -71
  25. package/index-XC7gVyAV.js.gz +0 -0
  26. package/packages/main-app-framework/index-BGqxNwVK.js.gz +0 -0
  27. package/packages/main-app-framework/index-BYJ_iw6e.js.gz +0 -0
  28. package/packages/main-app-framework/index-C2gtyFHH.js +0 -71
  29. package/packages/main-app-framework/index-C2gtyFHH.js.gz +0 -0
@@ -1,12 +1,12 @@
1
- import { defineComponent as pe, computed as Ce, openBlock as N, createBlock as V, unref as v, mergeProps as Ir, withCtx as M, renderSlot as $e, createVNode as R, getCurrentScope as Er, onScopeDispose as Sr, getCurrentInstance as Tr, onMounted as Qe, nextTick as Fe, ref as E, watch as re, reactive as yo, createElementVNode as x, createTextVNode as ue, createElementBlock as de, Fragment as We, renderList as _o, withDirectives as kr, toDisplayString as Z, createCommentVNode as U, h as fe, render as mt, onBeforeUnmount as It, useCssVars as Pr, normalizeClass as Br, withModifiers as te, toRefs as Or, normalizeStyle as Sn, isRef as Dr } from "vue";
1
+ import { defineComponent as pe, computed as Ce, openBlock as N, createBlock as V, unref as v, mergeProps as Ir, withCtx as M, renderSlot as $e, createVNode as R, getCurrentScope as Er, onScopeDispose as Sr, getCurrentInstance as Tr, onMounted as Qe, nextTick as Fe, ref as E, watch as re, reactive as yo, createElementVNode as x, createTextVNode as ue, createElementBlock as de, Fragment as We, renderList as _o, withDirectives as kr, toDisplayString as X, createCommentVNode as U, h as fe, render as vt, onBeforeUnmount as Et, useCssVars as Pr, normalizeClass as Br, withModifiers as te, toRefs as Or, normalizeStyle as Sn, isRef as Dr } from "vue";
2
2
  import { i18n as Q } from "@das-fed/web/packages/i18n/index";
3
3
  import { DasWebLayout as $r, DasWebNav as Lr, DasWebMenu as xr, DasWebTabs as Mr, layout as D } from "@das-fed/web/packages/layout/index";
4
4
  import { DasChangePwdRef as Rr, DasChangePwd as Qr } from "@das-fed/ui/packages/business-components/change-pwd/index";
5
5
  import { DasChangeEnterprises as jr } from "@das-fed/ui/packages/business-components/change-enterprises/index";
6
6
  import { pureImageSrc as Xt } from "@das-fed/utils/pure-image-src";
7
- import { DasNotification as vt } from "@das-fed/ui/packages/components/notification/index";
7
+ import { DasNotification as yt } from "@das-fed/ui/packages/components/notification/index";
8
8
  import { flatTree as ye, filterTreeArray as Hr, isEmpty as Nr, treeFind as Tn, updateFavIcon as Ur, dateFormat as Fr, runPromiseByQueue as Jr, objEqual as Nt, setShowWatermark as Ut, setShowLayout as Ft, getUrlParams as Wr, withToken as zr } from "@das-fed/utils/common-tools";
9
- import { getSubApps as J, getTabInfo as ce, getPersonalInfo as Et, getTenantInfo as Zt, getProjectInfo as Pe, getToken as Yt, getUserInfo as wo, getMenus as yt } from "@das-fed/utils/common-info";
9
+ import { getSubApps as J, getTabInfo as ce, getPersonalInfo as St, getTenantInfo as Zt, getProjectInfo as Pe, getToken as Yt, getUserInfo as wo, getMenus as _t } from "@das-fed/utils/common-info";
10
10
  import { setProcessEngineProject as bo, setProcessEngineToken as Co } from "@das-fed/utils/process-engine-info";
11
11
  import { oauthServer as Io, justauth as en, enterpriseright as tn, iotModules as Vr, portal as Be, systemConfiguration as nn } from "@das-fed/utils/api-services/modules";
12
12
  import { createService as je } from "@das-fed/utils/create-api-service";
@@ -26,8 +26,8 @@ import { setThemeRule as ts } from "@das-fed/web/packages/theme/index";
26
26
  import { devicePanelShow as So, closeDevicePanel as ns, alarmDevicePanelShow as os, closeAlarmPanel as rs } from "@das-fed/ui/packages/business-components/device-panel/index";
27
27
  import { DasIcon as De, DasAutoRegisterIcon as To } from "@das-fed/ui/packages/components/icon/index";
28
28
  import { socketService as an } from "@das-fed/utils/webSocket-service";
29
- import { userInfoNextTick as ss, tokenNextTick as St } from "@das-fed/utils/nextTiken";
30
- import { mainAppFramework as _t } from "@das-fed/web/packages/main-app-framework/index";
29
+ import { userInfoNextTick as ss, tokenNextTick as Tt } from "@das-fed/utils/nextTiken";
30
+ import { mainAppFramework as wt } from "@das-fed/web/packages/main-app-framework/index";
31
31
  import { DasTooltip as ae } from "@das-fed/ui/packages/components/tooltip/index";
32
32
  import { DasLivePlayer as is } from "@das-fed/ui/packages/components/live-player/index";
33
33
  import { DasSpin as ko } from "@das-fed/ui/packages/components/spin/index";
@@ -405,7 +405,7 @@ const Ts = Kr.get("watermark"), ks = /* @__PURE__ */ pe({
405
405
  class: "desc-item"
406
406
  }, [
407
407
  ue(
408
- Z(r),
408
+ X(r),
409
409
  1
410
410
  /* TEXT */
411
411
  )
@@ -428,9 +428,9 @@ const Ts = Kr.get("watermark"), ks = /* @__PURE__ */ pe({
428
428
  const r = document.createElement("div");
429
429
  r.setAttribute("id", "entry-app-dialog"), document.body.appendChild(r);
430
430
  const a = fe(Ls, { title: n, content: e, desc: t, closeCallback: () => {
431
- mt(null, r), document.body.removeChild(r), o(null);
431
+ vt(null, r), document.body.removeChild(r), o(null);
432
432
  } });
433
- mt(a, r);
433
+ vt(a, r);
434
434
  });
435
435
  ts(Bs);
436
436
  const xs = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAdSSURBVHic7d0xiltXAIZRORG4SuvimZDO07qdUpBdZAHGpfECQhZgXIYsILsITDnttDOdGfQKt6mmCE4tMgLDe5/uWDmnlBD8jeDjwuU+2+/3XzYAAKHvRg8AAM6f4AAAcoIDAMgJDgAgJzgAgNz22Be3n/4+5Q5O7OKnHx79fJqmEy8B4JzM8/zo5044AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByggMAyAkOACAnOACAnOAAAHKCAwDIHX1L5WvsLi/W2sGKrq5vR08AgANOOACAnOAAAHKCAwDICQ4AICc4AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByggMAyC16S8WbHQDA13DCAQDkBAcAkBMcAEBOcAAAOcEBAOQW3VLh/MzzPHoCAGfICQcAkBMcAEBOcAAAOcEBAOQEBwCQc0uFA9M0jZ4AwDfs2G1HJxwAQE5wAAA5wQEA5AQHAJATHABAbtEtld3lxVo7WNHV9e3oCQBwwAkHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAC5RW+peLPj2/XLb/8c+eb+pDtoXP3x4+gJAAeccAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAC57ZIf//7Xy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AAAElFTkSuQmCC", Rs = (n = {}) => {
@@ -557,7 +557,7 @@ const xs = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
557
557
  if (e.exitConfirmPages.includes(t) && !window.confirm("切换后已录入的数据将会丢失且不可恢复,确定切换?"))
558
558
  throw new Error("取消切换");
559
559
  }
560
- }, gt = (n, e) => {
560
+ }, At = (n, e) => {
561
561
  if (!e || !e.length) return;
562
562
  const t = JSON.parse(sessionStorage.getItem(n) || "{}");
563
563
  if (t && JSON.stringify(t) !== "{}" && t != null && t.closeTabPageConfirm && t.closeTabPageConfirm.length) {
@@ -578,7 +578,7 @@ const xs = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
578
578
  return n ? { tenantConfig: null } : (Qs(e), { tenantConfig: e });
579
579
  }, oi = async () => {
580
580
  const [n, e] = await ei().run({
581
- userId: Et().id,
581
+ userId: St().id,
582
582
  pageSize: 20,
583
583
  pageIndex: 1
584
584
  });
@@ -594,7 +594,7 @@ function ai() {
594
594
  function Qo(n, e) {
595
595
  return n === e || n !== n && e !== e;
596
596
  }
597
- function Tt(n, e) {
597
+ function kt(n, e) {
598
598
  for (var t = n.length; t--; )
599
599
  if (Qo(n[t][0], e))
600
600
  return t;
@@ -602,21 +602,21 @@ function Tt(n, e) {
602
602
  }
603
603
  var ci = Array.prototype, li = ci.splice;
604
604
  function ui(n) {
605
- var e = this.__data__, t = Tt(e, n);
605
+ var e = this.__data__, t = kt(e, n);
606
606
  if (t < 0)
607
607
  return !1;
608
608
  var o = e.length - 1;
609
609
  return t == o ? e.pop() : li.call(e, t, 1), --this.size, !0;
610
610
  }
611
611
  function di(n) {
612
- var e = this.__data__, t = Tt(e, n);
612
+ var e = this.__data__, t = kt(e, n);
613
613
  return t < 0 ? void 0 : e[t][1];
614
614
  }
615
615
  function pi(n) {
616
- return Tt(this.__data__, n) > -1;
616
+ return kt(this.__data__, n) > -1;
617
617
  }
618
618
  function fi(n, e) {
619
- var t = this.__data__, o = Tt(t, n);
619
+ var t = this.__data__, o = kt(t, n);
620
620
  return o < 0 ? (++this.size, t.push([n, e])) : t[o][1] = e, this;
621
621
  }
622
622
  function Se(n) {
@@ -761,22 +761,22 @@ function ta(n) {
761
761
  var e = typeof n;
762
762
  return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? n !== "__proto__" : n === null;
763
763
  }
764
- function kt(n, e) {
764
+ function Pt(n, e) {
765
765
  var t = n.__data__;
766
766
  return ta(e) ? t[typeof e == "string" ? "string" : "hash"] : t.map;
767
767
  }
768
768
  function na(n) {
769
- var e = kt(this, n).delete(n);
769
+ var e = Pt(this, n).delete(n);
770
770
  return this.size -= e ? 1 : 0, e;
771
771
  }
772
772
  function oa(n) {
773
- return kt(this, n).get(n);
773
+ return Pt(this, n).get(n);
774
774
  }
775
775
  function ra(n) {
776
- return kt(this, n).has(n);
776
+ return Pt(this, n).has(n);
777
777
  }
778
778
  function sa(n, e) {
779
- var t = kt(this, n), o = t.size;
779
+ var t = Pt(this, n), o = t.size;
780
780
  return t.set(n, e), this.size += t.size == o ? 0 : 1, this;
781
781
  }
782
782
  function Ze(n) {
@@ -836,7 +836,7 @@ function Fo(n, e, t) {
836
836
  var o = n[e];
837
837
  (!(ua.call(n, e) && Qo(o, t)) || t === void 0 && !(e in n)) && Uo(n, e, t);
838
838
  }
839
- function Pt(n, e, t, o) {
839
+ function Bt(n, e, t, o) {
840
840
  var r = !t;
841
841
  t || (t = {});
842
842
  for (var s = -1, a = e.length; ++s < a; ) {
@@ -928,7 +928,7 @@ function fn(n) {
928
928
  return Xo(n) ? Ko(n) : nc(n);
929
929
  }
930
930
  function oc(n, e) {
931
- return n && Pt(e, fn(e), n);
931
+ return n && Bt(e, fn(e), n);
932
932
  }
933
933
  function rc(n) {
934
934
  var e = [];
@@ -950,7 +950,7 @@ function hn(n) {
950
950
  return Xo(n) ? Ko(n, !0) : ac(n);
951
951
  }
952
952
  function cc(n, e) {
953
- return n && Pt(e, hn(e), n);
953
+ return n && Bt(e, hn(e), n);
954
954
  }
955
955
  var Zo = typeof exports == "object" && exports && !exports.nodeType && exports, Wn = Zo && typeof module == "object" && module && !module.nodeType && module, lc = Wn && Wn.exports === Zo, zn = lc ? we.Buffer : void 0, Vn = zn ? zn.allocUnsafe : void 0;
956
956
  function uc(n, e) {
@@ -981,7 +981,7 @@ var fc = Object.prototype, hc = fc.propertyIsEnumerable, qn = Object.getOwnPrope
981
981
  }));
982
982
  } : Yo;
983
983
  function gc(n, e) {
984
- return Pt(n, gn(n), e);
984
+ return Bt(n, gn(n), e);
985
985
  }
986
986
  function er(n, e) {
987
987
  for (var t = -1, o = e.length, r = n.length; ++t < o; )
@@ -994,7 +994,7 @@ var tr = Go(Object.getPrototypeOf, Object), Ac = Object.getOwnPropertySymbols, n
994
994
  return e;
995
995
  } : Yo;
996
996
  function mc(n, e) {
997
- return Pt(n, nr(n), e);
997
+ return Bt(n, nr(n), e);
998
998
  }
999
999
  function or(n, e, t) {
1000
1000
  var o = e(n);
@@ -1112,7 +1112,7 @@ function il(n) {
1112
1112
  var so = Ve && Ve.isSet, al = so ? dn(so) : il, cl = 1, ll = 2, ul = 4, rr = "[object Arguments]", dl = "[object Array]", pl = "[object Boolean]", fl = "[object Date]", hl = "[object Error]", sr = "[object Function]", gl = "[object GeneratorFunction]", Al = "[object Map]", ml = "[object Number]", ir = "[object Object]", vl = "[object RegExp]", yl = "[object Set]", _l = "[object String]", wl = "[object Symbol]", bl = "[object WeakMap]", Cl = "[object ArrayBuffer]", Il = "[object DataView]", El = "[object Float32Array]", Sl = "[object Float64Array]", Tl = "[object Int8Array]", kl = "[object Int16Array]", Pl = "[object Int32Array]", Bl = "[object Uint8Array]", Ol = "[object Uint8ClampedArray]", Dl = "[object Uint16Array]", $l = "[object Uint32Array]", W = {};
1113
1113
  W[rr] = W[dl] = W[Cl] = W[Il] = W[pl] = W[fl] = W[El] = W[Sl] = W[Tl] = W[kl] = W[Pl] = W[Al] = W[ml] = W[ir] = W[vl] = W[yl] = W[_l] = W[wl] = W[Bl] = W[Ol] = W[Dl] = W[$l] = !0;
1114
1114
  W[hl] = W[sr] = W[bl] = !1;
1115
- function At(n, e, t, o, r, s) {
1115
+ function mt(n, e, t, o, r, s) {
1116
1116
  var a, l = e & cl, c = e & ll, i = e & ul;
1117
1117
  if (a !== void 0)
1118
1118
  return a;
@@ -1140,34 +1140,34 @@ function At(n, e, t, o, r, s) {
1140
1140
  if (h)
1141
1141
  return h;
1142
1142
  s.set(n, a), al(n) ? n.forEach(function(f) {
1143
- a.add(At(f, e, t, f, n, s));
1143
+ a.add(mt(f, e, t, f, n, s));
1144
1144
  }) : rl(n) && n.forEach(function(f, d) {
1145
- a.set(d, At(f, e, t, d, n, s));
1145
+ a.set(d, mt(f, e, t, d, n, s));
1146
1146
  });
1147
1147
  var S = i ? c ? yc : vc : c ? hn : fn, w = u ? void 0 : S(n);
1148
1148
  return ca(w || n, function(f, d) {
1149
- w && (d = f, f = n[d]), Fo(a, d, At(f, e, t, d, n, s));
1149
+ w && (d = f, f = n[d]), Fo(a, d, mt(f, e, t, d, n, s));
1150
1150
  }), a;
1151
1151
  }
1152
1152
  var Ll = 1, xl = 4;
1153
1153
  function qe(n) {
1154
- return At(n, Ll | xl);
1154
+ return mt(n, Ll | xl);
1155
1155
  }
1156
- const wt = (n, e = "") => {
1156
+ const bt = (n, e = "") => {
1157
1157
  for (let t of n)
1158
1158
  if (!(t != null && t.disable) && !(t != null && t.expired))
1159
1159
  if (e) {
1160
1160
  if (t.routeUrl && t.code === e)
1161
1161
  return t;
1162
1162
  if (t.children && t.children.length) {
1163
- const o = wt(t.children, e);
1163
+ const o = bt(t.children, e);
1164
1164
  if (o) return o;
1165
1165
  }
1166
1166
  } else {
1167
1167
  if (t.routeUrl)
1168
1168
  return t;
1169
1169
  if (t.children && t.children.length) {
1170
- const o = wt(t.children, e);
1170
+ const o = bt(t.children, e);
1171
1171
  if (o) return o;
1172
1172
  }
1173
1173
  }
@@ -1301,7 +1301,7 @@ const wt = (n, e = "") => {
1301
1301
  query: { ...r.query, app: l }
1302
1302
  };
1303
1303
  }
1304
- let A = wt(c, t);
1304
+ let A = bt(c, t);
1305
1305
  if (!A) {
1306
1306
  if (!s || !a)
1307
1307
  return { menuConfig: c, currentApp: null, currentMenu: null, query: { ...r.query, app: l } };
@@ -1388,14 +1388,14 @@ const wt = (n, e = "") => {
1388
1388
  }, cr = E(null), eu = async () => {
1389
1389
  const [n, e] = await Gl().run();
1390
1390
  return n ? { homeConfig: null } : (e && (js(e), cr.value = e), { homeConfig: e });
1391
- }, bt = E(1), lr = async () => {
1391
+ }, Ct = E(1), lr = async () => {
1392
1392
  const [n, e] = await Xl().run();
1393
- return n ? { personalMenuConfig: null } : (bt.value = (e == null ? void 0 : e.style) ?? 1, { personalMenuConfig: e });
1393
+ return n ? { personalMenuConfig: null } : (Ct.value = (e == null ? void 0 : e.style) ?? 1, { personalMenuConfig: e });
1394
1394
  }, tu = Be.post("/menu/personal-setting"), nu = { class: "preson-style-drawer" }, ou = { class: "preson-style-container" }, ru = { class: "title" }, su = { class: "content" }, iu = { class: "item-content" }, au = ["src"], cu = { class: "item-content" }, lu = ["src"], uu = { class: "preson-style-footer" }, du = /* @__PURE__ */ pe({
1395
1395
  __name: "index",
1396
1396
  setup(n, { expose: e }) {
1397
1397
  const t = E(!1), o = E(!1), r = E(!1), s = E(!1), a = () => {
1398
- o.value = bt.value === 1, r.value = bt.value === 2, t.value = !0;
1398
+ o.value = Ct.value === 1, r.value = Ct.value === 2, t.value = !0;
1399
1399
  }, l = (i) => {
1400
1400
  i === 1 ? r.value = !1 : o.value = !1;
1401
1401
  }, c = async () => {
@@ -1445,7 +1445,7 @@ const wt = (n, e = "") => {
1445
1445
  x(
1446
1446
  "p",
1447
1447
  ru,
1448
- Z(v(Q)("侧边菜单栏").value),
1448
+ X(v(Q)("侧边菜单栏").value),
1449
1449
  1
1450
1450
  /* TEXT */
1451
1451
  ),
@@ -1464,7 +1464,7 @@ const wt = (n, e = "") => {
1464
1464
  }, {
1465
1465
  default: M(() => [
1466
1466
  ue(
1467
- Z(v(Q)("弹出式菜单栏").value),
1467
+ X(v(Q)("弹出式菜单栏").value),
1468
1468
  1
1469
1469
  /* TEXT */
1470
1470
  )
@@ -1487,7 +1487,7 @@ const wt = (n, e = "") => {
1487
1487
  }, {
1488
1488
  default: M(() => [
1489
1489
  ue(
1490
- Z(v(Q)("内嵌式菜单栏").value),
1490
+ X(v(Q)("内嵌式菜单栏").value),
1491
1491
  1
1492
1492
  /* TEXT */
1493
1493
  )
@@ -1510,7 +1510,7 @@ const wt = (n, e = "") => {
1510
1510
  Hs(i), Ur(i);
1511
1511
  }, t = async () => {
1512
1512
  const [a, l] = await hu().run({ userId: wo().id });
1513
- a || !l || JSON.stringify(l) === "{}" || (vt.open({
1513
+ a || !l || JSON.stringify(l) === "{}" || (yt.open({
1514
1514
  key: "loginTip",
1515
1515
  message: "上次登录信息",
1516
1516
  placement: "bottomRight",
@@ -1589,7 +1589,7 @@ const wt = (n, e = "") => {
1589
1589
  // 树打平之后保留的数据
1590
1590
  filterFlatCondition: (C) => C.type === 7
1591
1591
  }), D.nav.setProjects(f || []), d && D.nav.setActiveProject(d));
1592
- const T = Et() ?? {}, B = T != null && T.headPicture ? Xt(T.headPicture) : void 0;
1592
+ const T = St() ?? {}, B = T != null && T.headPicture ? Xt(T.headPicture) : void 0;
1593
1593
  c.value = [...ps], d && d.id !== 0 ? await o("personCenter", "", "/userInfo") || (c.value = c.value.filter((P) => P.value !== "1")) : c.value = c.value.filter((C) => C.value !== "1"), D.nav.setUserInfo({ headPicture: B, commandList: c.value }), D.nav.setSearchConfig({
1594
1594
  getHistoryList: r,
1595
1595
  getSearchList: s
@@ -1620,10 +1620,10 @@ const wt = (n, e = "") => {
1620
1620
  desc: t.menuExpirationExpiredInfo
1621
1621
  };
1622
1622
  }, vu = () => {
1623
- const { entryMenu: n } = Bt();
1623
+ const { entryMenu: n } = Ot();
1624
1624
  D.menu.addEventListener("onItemClick", async (e) => {
1625
1625
  ee.innerSet = !0;
1626
- const t = ye(yt(e.applicationCode)).filter((o) => !o.disable && !o.expired).find((o) => o.code === e.code);
1626
+ const t = ye(_t(e.applicationCode)).filter((o) => !o.disable && !o.expired).find((o) => o.code === e.code);
1627
1627
  if (!(t && !t.routeUrl)) {
1628
1628
  if (!t) {
1629
1629
  const { title: o, content: r, desc: s } = await vn(t);
@@ -1647,7 +1647,7 @@ const wt = (n, e = "") => {
1647
1647
  const s = J();
1648
1648
  if (!((i = s.subAppList) != null && i.length) || s.subAppList.findIndex((u) => u.code === r.code) === -1) return;
1649
1649
  const c = (ce().tabMap[r.code] ?? []).map((u) => u.code);
1650
- c && c.length && gt(r.code, c), e(r);
1650
+ c && c.length && At(r.code, c), e(r);
1651
1651
  });
1652
1652
  const { enter: o } = lt();
1653
1653
  return D.nav.addEventListener("fullScreenHandle", o), {};
@@ -1670,9 +1670,9 @@ const wt = (n, e = "") => {
1670
1670
  B && JSON.stringify(B) !== "{}" && (r.value = ($ = B[_][T]) != null && $.fontColor ? B[_][T].fontColor : e, s.value = (H = B[_][T]) != null && H.backgroundColor ? B[_][T].backgroundColor : t, a.value = (F = B[_][T]) != null && F.backgroundColor ? B[_][T].backgroundColor : o);
1671
1671
  }
1672
1672
  );
1673
- const { deleteApp: i } = et(), { entryMenu: u } = Bt(), { reloadRoute: A, unloadRoute: p } = ur(), h = (d) => {
1673
+ const { deleteApp: i } = et(), { entryMenu: u } = Ot(), { reloadRoute: A, unloadRoute: p } = ur(), h = (d) => {
1674
1674
  var T;
1675
- const m = ye(yt(d.applicationCode)).find((B) => B.code === d.code), _ = (((T = ce().tabMap) == null ? void 0 : T[d.applicationCode]) ?? []).find((B) => B.code === d.code);
1675
+ const m = ye(_t(d.applicationCode)).find((B) => B.code === d.code), _ = (((T = ce().tabMap) == null ? void 0 : T[d.applicationCode]) ?? []).find((B) => B.code === d.code);
1676
1676
  u({ currentMenu: m, route: { path: _.path, query: _.query ?? {} } });
1677
1677
  }, S = (d) => {
1678
1678
  if (!d || !d.length) return;
@@ -1723,7 +1723,7 @@ const wt = (n, e = "") => {
1723
1723
  ce().currentCode !== d.currentCode && (ee.innerSet = !0, h(d));
1724
1724
  }), D.tab.addEventListener("onItemRemove", (d) => {
1725
1725
  const m = ce(), y = J().currentSubAppCode ?? "";
1726
- m.tabMap[y].findIndex((B) => B.code === d.code) !== -1 && (gt(d.applicationCode, [d.code]), w({ type: "me", data: d }));
1726
+ m.tabMap[y].findIndex((B) => B.code === d.code) !== -1 && (At(d.applicationCode, [d.code]), w({ type: "me", data: d }));
1727
1727
  }), D.tab.addEventListener("onMenuClick", (d) => {
1728
1728
  let m = [];
1729
1729
  const y = ce().tabMap[d.applicationCode] ?? [];
@@ -1731,14 +1731,14 @@ const wt = (n, e = "") => {
1731
1731
  const _ = y.findIndex((T) => T.code === d.data.value);
1732
1732
  m = y.slice(_ + 1);
1733
1733
  }
1734
- d.type.key === "other" && (m = y.filter((_) => _.code !== d.data.value)), d.type.key === "all" && (m = [...y]), gt(
1734
+ d.type.key === "other" && (m = y.filter((_) => _.code !== d.data.value)), d.type.key === "all" && (m = [...y]), At(
1735
1735
  d.applicationCode,
1736
1736
  m.map((_) => _.code)
1737
1737
  ), w({ type: d.type.key, data: d.data });
1738
1738
  }), D.tab.addEventListener("onPageRefresh", async (d) => {
1739
1739
  if (!d || d.path === Je) return;
1740
- gt(d.applicationCode, [d.code]);
1741
- const m = ye(yt(d.applicationCode)).find((T) => T.code === d.code);
1740
+ At(d.applicationCode, [d.code]);
1741
+ const m = ye(_t(d.applicationCode)).find((T) => T.code === d.code);
1742
1742
  if (!m) return;
1743
1743
  if (m.routeUrl !== d.path) {
1744
1744
  A([d.path]), p([`/${d.applicationPath}${m.routeUrl}`]), await u({ currentMenu: m });
@@ -1771,7 +1771,7 @@ const wt = (n, e = "") => {
1771
1771
  n(), window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`);
1772
1772
  });
1773
1773
  }, et = () => {
1774
- const n = Ge(), { entryMenu: e } = Bt(), { unloadRoute: t } = ur();
1774
+ const n = Ge(), { entryMenu: e } = Ot(), { unloadRoute: t } = ur();
1775
1775
  let { mainAppName: o = "", microAppName: r = "", microApps: s = [] } = He();
1776
1776
  !o && r && (s = [{ name: r }]);
1777
1777
  const a = s.map((p) => p.name), l = () => {
@@ -1785,15 +1785,15 @@ const wt = (n, e = "") => {
1785
1785
  if (B) return !1;
1786
1786
  f = _ ?? [], d = T ?? [];
1787
1787
  }
1788
- if (f.length ? wt(f) || (await rt({ title: "提示", content: "此应用菜单已过期/已收回/配置有误<br/>无法使用" }), m = !0) : (await rt({ title: "提示", content: "此应用未配置菜单/无菜单权限<br/>无法使用" }), m = !0), m) return !1;
1788
+ if (f.length ? bt(f) || (await rt({ title: "提示", content: "此应用菜单已过期/已收回/配置有误<br/>无法使用" }), m = !0) : (await rt({ title: "提示", content: "此应用未配置菜单/无菜单权限<br/>无法使用" }), m = !0), m) return !1;
1789
1789
  const y = { ...p, menus: f, originalMenus: d };
1790
1790
  return ge([{ key: "subAppList", value: y }]), !0;
1791
1791
  }, i = async (p) => {
1792
- var H, F, ie, Te;
1792
+ var H, F, ie, Te, ft;
1793
1793
  const { microApp: h = null, menuCode: S = "", menuPath: w = "", route: f = {} } = p;
1794
1794
  let d = f;
1795
1795
  if (!h && w) {
1796
- if (l(), !(a && a.find((ne) => w.startsWith("/" + ne) || w.startsWith(ne)))) return;
1796
+ if (l(), !(a && a.find((Y) => w.startsWith("/" + Y) || w.startsWith(Y)))) return;
1797
1797
  await n.push({ path: w, query: d.query });
1798
1798
  return;
1799
1799
  }
@@ -1804,25 +1804,25 @@ const wt = (n, e = "") => {
1804
1804
  if (h.routeUrl && !a.includes(h.routeUrl)) {
1805
1805
  l();
1806
1806
  const oe = ((ie = J()) == null ? void 0 : ie.subAppList) ?? [];
1807
- if ((oe == null ? void 0 : oe.find((G) => G.code === h.code)) || oe == null || oe.push(h), ge([
1807
+ if ((oe == null ? void 0 : oe.find((ne) => ne.code === h.code)) || oe == null || oe.push(h), ge([
1808
1808
  { key: "currentSubApp", value: h },
1809
1809
  { key: "currentSubAppCode", value: h.code },
1810
1810
  { key: "subAppList", value: oe }
1811
- ]), oe.forEach((G) => {
1812
- const Oe = { ...G, value: G.code, label: G.name };
1811
+ ]), oe.forEach((ne) => {
1812
+ const Oe = { ...ne, value: ne.code, label: ne.name };
1813
1813
  D.nav.appendItem(Oe);
1814
1814
  }), D.nav.setActiveItem(h.code), h.routeUrl.includes("entrance=main")) {
1815
1815
  await n.push({ path: h.routeUrl, query: { ...d.query, app: h.code } });
1816
1816
  return;
1817
1817
  }
1818
1818
  if (_ === 1 && T === 2) {
1819
- const G = Wt(Ut(Ft(h.routeUrl)));
1819
+ const ne = Wt(Ut(Ft(h.routeUrl)));
1820
1820
  await n.push({
1821
1821
  path: Je,
1822
1822
  query: {
1823
1823
  ...d.query,
1824
1824
  app: h.code,
1825
- iframeSrc: G
1825
+ iframeSrc: ne
1826
1826
  }
1827
1827
  });
1828
1828
  return;
@@ -1841,8 +1841,8 @@ const wt = (n, e = "") => {
1841
1841
  meta: { ...(d == null ? void 0 : d.meta) ?? {} }
1842
1842
  }), L && (L == null ? void 0 : L.code) !== (h == null ? void 0 : h.code)) {
1843
1843
  if (L.fixed && (await n.push(L.path), l(), D.nav.setActiveItem(L.path)), !L.fixed) {
1844
- const oe = (Te = J().subAppList) == null ? void 0 : Te.find((Oe) => Oe.code === L.code), ne = ce().preTab[L.code], G = { ...(ne == null ? void 0 : ne.query) ?? {} };
1845
- await i({ microApp: oe, menuCode: (ne == null ? void 0 : ne.code) ?? "", route: { query: G } });
1844
+ const oe = (Te = J().subAppList) == null ? void 0 : Te.find((Oe) => Oe.code === L.code), Y = ce().preTab[L.code], ne = { ...(Y == null ? void 0 : Y.query) ?? {} };
1845
+ await i({ microApp: oe, menuCode: (Y == null ? void 0 : Y.code) ?? "", route: { query: ne } });
1846
1846
  }
1847
1847
  return;
1848
1848
  }
@@ -1858,22 +1858,20 @@ const wt = (n, e = "") => {
1858
1858
  return;
1859
1859
  }
1860
1860
  if (m && y) {
1861
- setTimeout(() => {
1862
- var ne;
1863
- (ne = J().subAppList) == null || ne.forEach((G) => {
1864
- const Oe = { ...G, value: G.code, label: G.name };
1865
- D.nav.appendItem(Oe);
1866
- }), D.nav.setActiveItem($.code), D.menu.setItems(B);
1867
- }, 200);
1861
+ (ft = J().subAppList) == null || ft.forEach((Y) => {
1862
+ const ne = { ...Y, value: Y.code, label: Y.name };
1863
+ D.nav.appendItem(ne);
1864
+ }), D.nav.setActiveItem($.code), D.menu.setItems(B);
1868
1865
  const oe = ce().tabMap[$.code] ?? [];
1869
1866
  if (oe.length) {
1870
- const ne = oe.map((G) => ({
1871
- ...G,
1872
- value: G.code,
1873
- label: G.name
1867
+ const Y = oe.map((ne) => ({
1868
+ ...ne,
1869
+ value: ne.code,
1870
+ label: ne.name
1874
1871
  })) || [];
1875
- D.tab.setItems(ne);
1876
- }
1872
+ D.tab.setItems(Y);
1873
+ } else
1874
+ D.tab.setItems([]);
1877
1875
  }
1878
1876
  e({ currentMenu: b, microPath: C, route: d });
1879
1877
  }, u = async (p) => {
@@ -1923,7 +1921,7 @@ const wt = (n, e = "") => {
1923
1921
  }
1924
1922
  }
1925
1923
  };
1926
- }, Bt = () => {
1924
+ }, Ot = () => {
1927
1925
  const n = Ge();
1928
1926
  let { mainAppName: e = "", microAppName: t = "", microApps: o = [] } = He();
1929
1927
  return !e && t && (o = [{ name: t }]), o.map((s) => s.name), { entryMenu: async (s) => {
@@ -2143,7 +2141,7 @@ const wt = (n, e = "") => {
2143
2141
  };
2144
2142
  }, Iu = Io.get("/convert/tenant"), Eu = en.get("/platform/withdefault"), dr = () => {
2145
2143
  const n = He(), e = E(!1), t = E(""), o = E(""), r = () => {
2146
- t.value = Et().id, o.value = wo().tenantId, e.value = !0;
2144
+ t.value = St().id, o.value = wo().tenantId, e.value = !0;
2147
2145
  };
2148
2146
  D.nav.addEventListener("changeEnterpriseHandle", () => {
2149
2147
  r();
@@ -2233,7 +2231,7 @@ const wt = (n, e = "") => {
2233
2231
  }), $u = () => {
2234
2232
  me.addEventListenerFromMicroApp("iot:change-instance", (n) => {
2235
2233
  const e = J(), t = e.currentSubAppCode;
2236
- let o = yt(t);
2234
+ let o = _t(t);
2237
2235
  o.forEach((s) => {
2238
2236
  s.fixed && (s.name = n.data.instanceInfo.instanceName);
2239
2237
  }), D.menu.setItems(o);
@@ -2271,7 +2269,7 @@ const wt = (n, e = "") => {
2271
2269
  rs();
2272
2270
  });
2273
2271
  }, Mu = nn.get("/platform/login/pwd-advance-notify-check"), Ru = () => {
2274
- const n = E([]), e = E(null), t = E([]), { entryApp: o } = _t.hooks.useEntryApp(), r = () => {
2272
+ const n = E([]), e = E(null), t = E([]), { entryApp: o } = wt.hooks.useEntryApp(), r = () => {
2275
2273
  var c;
2276
2274
  const l = (((c = J().appcategorys) == null ? void 0 : c.map((i) => i.apps).flat()) ?? []).find((i) => i.code === "messagecenter");
2277
2275
  l && o({ microApp: l });
@@ -2287,8 +2285,8 @@ const wt = (n, e = "") => {
2287
2285
  const c = Pe().id;
2288
2286
  n.value = a.filter(
2289
2287
  (i) => i.projectId === c || i.projectId === 0 || i.projectId === "0"
2290
- ), t.value && t.value.length && (t.value.forEach((i) => vt.close(i)), t.value = []), await Fe(), n.value.forEach((i, u) => {
2291
- vt.info({
2288
+ ), t.value && t.value.length && (t.value.forEach((i) => yt.close(i)), t.value = []), await Fe(), n.value.forEach((i, u) => {
2289
+ yt.info({
2292
2290
  key: i.id,
2293
2291
  class: "message-center-notify",
2294
2292
  message: i.title,
@@ -2319,8 +2317,8 @@ const wt = (n, e = "") => {
2319
2317
  });
2320
2318
  };
2321
2319
  Qe(async () => {
2322
- await St(), s();
2323
- }), It(() => {
2320
+ await Tt(), s();
2321
+ }), Et(() => {
2324
2322
  e.value && e.value.disconnect(), e.value = null;
2325
2323
  });
2326
2324
  }, Qu = "v1", ju = Xe(`/api/enterpriseright/permission/${Qu}`), pr = Xe("/api/device-relation/deviceproject/v1/project/device/video", Nu), Hu = rn.get("/permissionset/user-portal-menu");
@@ -2625,7 +2623,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ pe({
2625
2623
  x(
2626
2624
  "div",
2627
2625
  td,
2628
- Z(t.title.length > 20 ? t.title.slice(0, 19) + "..." : t.title),
2626
+ X(t.title.length > 20 ? t.title.slice(0, 19) + "..." : t.title),
2629
2627
  1
2630
2628
  /* TEXT */
2631
2629
  )
@@ -2910,9 +2908,9 @@ const ud = /* @__PURE__ */ pe({
2910
2908
  let r = document.body.querySelector("#video-dialog");
2911
2909
  r || (r = document.createElement("div"), r.setAttribute("id", "video-dialog-container"), document.body.appendChild(r));
2912
2910
  const a = fe(ud, { gridNum: e, deviceList: t, closeCallback: () => {
2913
- mt(null, r), document.body.removeChild(r), o(null);
2911
+ vt(null, r), document.body.removeChild(r), o(null);
2914
2912
  } });
2915
- mt(a, r);
2913
+ vt(a, r);
2916
2914
  });
2917
2915
  }, pd = () => {
2918
2916
  const n = E(4), e = E([]), t = E(null), o = async (s) => {
@@ -2952,8 +2950,8 @@ const ud = /* @__PURE__ */ pe({
2952
2950
  }));
2953
2951
  };
2954
2952
  return Qe(async () => {
2955
- await St(), r();
2956
- }), It(() => {
2953
+ await Tt(), r();
2954
+ }), Et(() => {
2957
2955
  t.value && t.value.disconnect(), t.value = null;
2958
2956
  }), {
2959
2957
  gridNum: n,
@@ -3052,7 +3050,7 @@ class hr {
3052
3050
  this.statusCode = e, this.statusText = t, this.content = o;
3053
3051
  }
3054
3052
  }
3055
- class Ot {
3053
+ class Dt {
3056
3054
  get(e, t) {
3057
3055
  return this.send({
3058
3056
  ...t,
@@ -3098,7 +3096,7 @@ class at {
3098
3096
  }
3099
3097
  at.instance = new at();
3100
3098
  const md = "8.0.7";
3101
- class Y {
3099
+ class Z {
3102
3100
  static isRequired(e, t) {
3103
3101
  if (e == null)
3104
3102
  throw new Error(`The '${t}' argument is required.`);
@@ -3160,7 +3158,7 @@ async function gr(n, e, t, o, r, s) {
3160
3158
  n.log(g.Trace, `(${e} transport) request complete. Response status: ${u.statusCode}.`);
3161
3159
  }
3162
3160
  function yd(n) {
3163
- return n === void 0 ? new Ct(g.Information) : n === null ? at.instance : n.log !== void 0 ? n : new Ct(n);
3161
+ return n === void 0 ? new It(g.Information) : n === null ? at.instance : n.log !== void 0 ? n : new It(n);
3164
3162
  }
3165
3163
  class _d {
3166
3164
  constructor(e, t) {
@@ -3172,7 +3170,7 @@ class _d {
3172
3170
  });
3173
3171
  }
3174
3172
  }
3175
- class Ct {
3173
+ class It {
3176
3174
  constructor(e) {
3177
3175
  this._minLevel = e, this.out = console;
3178
3176
  }
@@ -3242,7 +3240,7 @@ function Ed() {
3242
3240
  return global;
3243
3241
  throw new Error("could not find global");
3244
3242
  }
3245
- class Sd extends Ot {
3243
+ class Sd extends Dt {
3246
3244
  constructor(e) {
3247
3245
  if (super(), this._logger = e, typeof fetch > "u" || K.isNode) {
3248
3246
  const t = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
@@ -3327,7 +3325,7 @@ function ho(n, e) {
3327
3325
  }
3328
3326
  return t;
3329
3327
  }
3330
- class Td extends Ot {
3328
+ class Td extends Dt {
3331
3329
  constructor(e) {
3332
3330
  super(), this._logger = e;
3333
3331
  }
@@ -3351,7 +3349,7 @@ class Td extends Ot {
3351
3349
  }) : Promise.reject(new Error("No url defined.")) : Promise.reject(new Error("No method defined."));
3352
3350
  }
3353
3351
  }
3354
- class kd extends Ot {
3352
+ class kd extends Dt {
3355
3353
  /** Creates a new instance of the {@link @microsoft/signalr.DefaultHttpClient}, using the provided {@link @microsoft/signalr.ILogger} to log messages. */
3356
3354
  constructor(e) {
3357
3355
  if (super(), typeof fetch < "u" || K.isNode)
@@ -3546,7 +3544,7 @@ class _n {
3546
3544
  constructor(e, t, o, r, s, a, l) {
3547
3545
  this._nextKeepAlive = 0, this._freezeEventListener = () => {
3548
3546
  this._logger.log(g.Warning, "The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep");
3549
- }, Y.isRequired(e, "connection"), Y.isRequired(t, "logger"), Y.isRequired(o, "protocol"), this.serverTimeoutInMilliseconds = s ?? $d, this.keepAliveIntervalInMilliseconds = a ?? Ld, this._statefulReconnectBufferSize = l ?? xd, this._logger = t, this._protocol = o, this.connection = e, this._reconnectPolicy = r, this._handshakeProtocol = new Pd(), this.connection.onreceive = (c) => this._processIncomingData(c), this.connection.onclose = (c) => this._connectionClosed(c), this._callbacks = {}, this._methods = {}, this._closedCallbacks = [], this._reconnectingCallbacks = [], this._reconnectedCallbacks = [], this._invocationId = 0, this._receivedHandshakeResponse = !1, this._connectionState = q.Disconnected, this._connectionStarted = !1, this._cachedPingMessage = this._protocol.writeMessage({ type: j.Ping });
3547
+ }, Z.isRequired(e, "connection"), Z.isRequired(t, "logger"), Z.isRequired(o, "protocol"), this.serverTimeoutInMilliseconds = s ?? $d, this.keepAliveIntervalInMilliseconds = a ?? Ld, this._statefulReconnectBufferSize = l ?? xd, this._logger = t, this._protocol = o, this.connection = e, this._reconnectPolicy = r, this._handshakeProtocol = new Pd(), this.connection.onreceive = (c) => this._processIncomingData(c), this.connection.onclose = (c) => this._connectionClosed(c), this._callbacks = {}, this._methods = {}, this._closedCallbacks = [], this._reconnectingCallbacks = [], this._reconnectedCallbacks = [], this._invocationId = 0, this._receivedHandshakeResponse = !1, this._connectionState = q.Disconnected, this._connectionStarted = !1, this._cachedPingMessage = this._protocol.writeMessage({ type: j.Ping });
3550
3548
  }
3551
3549
  /** Indicates the state of the {@link HubConnection} to the server. */
3552
3550
  get state() {
@@ -4049,7 +4047,7 @@ class xe {
4049
4047
  }
4050
4048
  xe.Authorization = "Authorization";
4051
4049
  xe.Cookie = "Cookie";
4052
- class Rd extends Ot {
4050
+ class Rd extends Dt {
4053
4051
  constructor(e, t) {
4054
4052
  super(), this._innerClient = e, this._accessTokenFactory = t;
4055
4053
  }
@@ -4066,10 +4064,10 @@ class Rd extends Ot {
4066
4064
  return this._innerClient.getCookieString(e);
4067
4065
  }
4068
4066
  }
4069
- var X;
4067
+ var G;
4070
4068
  (function(n) {
4071
4069
  n[n.None = 0] = "None", n[n.WebSockets = 1] = "WebSockets", n[n.ServerSentEvents = 2] = "ServerSentEvents", n[n.LongPolling = 4] = "LongPolling";
4072
- })(X || (X = {}));
4070
+ })(G || (G = {}));
4073
4071
  var se;
4074
4072
  (function(n) {
4075
4073
  n[n.Text = 1] = "Text", n[n.Binary = 2] = "Binary";
@@ -4097,7 +4095,7 @@ class Ao {
4097
4095
  this._httpClient = e, this._logger = t, this._pollAbort = new Qd(), this._options = o, this._running = !1, this.onreceive = null, this.onclose = null;
4098
4096
  }
4099
4097
  async connect(e, t) {
4100
- if (Y.isRequired(e, "url"), Y.isRequired(t, "transferFormat"), Y.isIn(t, se, "transferFormat"), this._url = e, this._logger.log(g.Trace, "(LongPolling transport) Connecting."), t === se.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
4098
+ if (Z.isRequired(e, "url"), Z.isRequired(t, "transferFormat"), Z.isIn(t, se, "transferFormat"), this._url = e, this._logger.log(g.Trace, "(LongPolling transport) Connecting."), t === se.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
4101
4099
  throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");
4102
4100
  const [o, r] = Ke(), s = { [o]: r, ...this._options.headers }, a = {
4103
4101
  abortSignal: this._pollAbort.signal,
@@ -4163,7 +4161,7 @@ class jd {
4163
4161
  this._httpClient = e, this._accessToken = t, this._logger = o, this._options = r, this.onreceive = null, this.onclose = null;
4164
4162
  }
4165
4163
  async connect(e, t) {
4166
- return Y.isRequired(e, "url"), Y.isRequired(t, "transferFormat"), Y.isIn(t, se, "transferFormat"), this._logger.log(g.Trace, "(SSE transport) Connecting."), this._url = e, this._accessToken && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(this._accessToken)}`), new Promise((o, r) => {
4164
+ return Z.isRequired(e, "url"), Z.isRequired(t, "transferFormat"), Z.isIn(t, se, "transferFormat"), this._logger.log(g.Trace, "(SSE transport) Connecting."), this._url = e, this._accessToken && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(this._accessToken)}`), new Promise((o, r) => {
4167
4165
  let s = !1;
4168
4166
  if (t !== se.Text) {
4169
4167
  r(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));
@@ -4213,7 +4211,7 @@ class Hd {
4213
4211
  this._logger = o, this._accessTokenFactory = t, this._logMessageContent = r, this._webSocketConstructor = s, this._httpClient = e, this.onreceive = null, this.onclose = null, this._headers = a;
4214
4212
  }
4215
4213
  async connect(e, t) {
4216
- Y.isRequired(e, "url"), Y.isRequired(t, "transferFormat"), Y.isIn(t, se, "transferFormat"), this._logger.log(g.Trace, "(WebSockets transport) Connecting.");
4214
+ Z.isRequired(e, "url"), Z.isRequired(t, "transferFormat"), Z.isIn(t, se, "transferFormat"), this._logger.log(g.Trace, "(WebSockets transport) Connecting.");
4217
4215
  let o;
4218
4216
  return this._accessTokenFactory && (o = await this._accessTokenFactory()), new Promise((r, s) => {
4219
4217
  e = e.replace(/^http/, "ws");
@@ -4270,7 +4268,7 @@ const mo = 100;
4270
4268
  class Nd {
4271
4269
  constructor(e, t = {}) {
4272
4270
  if (this._stopPromiseResolver = () => {
4273
- }, this.features = {}, this._negotiateVersion = 1, Y.isRequired(e, "url"), this._logger = yd(t.logger), this.baseUrl = this._resolveUrl(e), t = t || {}, t.logMessageContent = t.logMessageContent === void 0 ? !1 : t.logMessageContent, typeof t.withCredentials == "boolean" || t.withCredentials === void 0)
4271
+ }, this.features = {}, this._negotiateVersion = 1, Z.isRequired(e, "url"), this._logger = yd(t.logger), this.baseUrl = this._resolveUrl(e), t = t || {}, t.logMessageContent = t.logMessageContent === void 0 ? !1 : t.logMessageContent, typeof t.withCredentials == "boolean" || t.withCredentials === void 0)
4274
4272
  t.withCredentials = t.withCredentials === void 0 ? !0 : t.withCredentials;
4275
4273
  else
4276
4274
  throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");
@@ -4283,7 +4281,7 @@ class Nd {
4283
4281
  !K.isNode && typeof WebSocket < "u" && !t.WebSocket ? t.WebSocket = WebSocket : K.isNode && !t.WebSocket && o && (t.WebSocket = o), !K.isNode && typeof EventSource < "u" && !t.EventSource ? t.EventSource = EventSource : K.isNode && !t.EventSource && typeof r < "u" && (t.EventSource = r), this._httpClient = new Rd(t.httpClient || new kd(this._logger), t.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = t, this.onreceive = null, this.onclose = null;
4284
4282
  }
4285
4283
  async start(e) {
4286
- if (e = e || se.Binary, Y.isIn(e, se, "transferFormat"), this._logger.log(g.Debug, `Starting connection with transfer format '${se[e]}'.`), this._connectionState !== "Disconnected")
4284
+ if (e = e || se.Binary, Z.isIn(e, se, "transferFormat"), this._logger.log(g.Debug, `Starting connection with transfer format '${se[e]}'.`), this._connectionState !== "Disconnected")
4287
4285
  return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));
4288
4286
  if (this._connectionState = "Connecting", this._startInternalPromise = this._startInternal(e), await this._startInternalPromise, this._connectionState === "Disconnecting") {
4289
4287
  const t = "Failed to start the HttpConnection before stop() was called.";
@@ -4327,8 +4325,8 @@ class Nd {
4327
4325
  this._accessTokenFactory = this._options.accessTokenFactory, this._httpClient._accessTokenFactory = this._accessTokenFactory;
4328
4326
  try {
4329
4327
  if (this._options.skipNegotiation)
4330
- if (this._options.transport === X.WebSockets)
4331
- this.transport = this._constructTransport(X.WebSockets), await this._startTransport(t, e);
4328
+ if (this._options.transport === G.WebSockets)
4329
+ this.transport = this._constructTransport(G.WebSockets), await this._startTransport(t, e);
4332
4330
  else
4333
4331
  throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");
4334
4332
  else {
@@ -4404,7 +4402,7 @@ class Nd {
4404
4402
  await this._startTransport(s, r), this.connectionId = c.connectionId;
4405
4403
  return;
4406
4404
  } catch (A) {
4407
- if (this._logger.log(g.Error, `Failed to start the transport '${i.transport}': ${A}`), c = void 0, a.push(new gd(`${i.transport} failed: ${A}`, X[i.transport])), this._connectionState !== "Connecting") {
4405
+ if (this._logger.log(g.Error, `Failed to start the transport '${i.transport}': ${A}`), c = void 0, a.push(new gd(`${i.transport} failed: ${A}`, G[i.transport])), this._connectionState !== "Connecting") {
4408
4406
  const p = "Failed to select transport before stop() was called.";
4409
4407
  return this._logger.log(g.Debug, p), Promise.reject(new ve(p));
4410
4408
  }
@@ -4415,15 +4413,15 @@ class Nd {
4415
4413
  }
4416
4414
  _constructTransport(e) {
4417
4415
  switch (e) {
4418
- case X.WebSockets:
4416
+ case G.WebSockets:
4419
4417
  if (!this._options.WebSocket)
4420
4418
  throw new Error("'WebSocket' is not supported in your environment.");
4421
4419
  return new Hd(this._httpClient, this._accessTokenFactory, this._logger, this._options.logMessageContent, this._options.WebSocket, this._options.headers || {});
4422
- case X.ServerSentEvents:
4420
+ case G.ServerSentEvents:
4423
4421
  if (!this._options.EventSource)
4424
4422
  throw new Error("'EventSource' is not supported in your environment.");
4425
4423
  return new jd(this._httpClient, this._httpClient._accessToken, this._logger, this._options);
4426
- case X.LongPolling:
4424
+ case G.LongPolling:
4427
4425
  return new Ao(this._httpClient, this._logger, this._options);
4428
4426
  default:
4429
4427
  throw new Error(`Unknown transport: ${e}.`);
@@ -4446,23 +4444,23 @@ class Nd {
4446
4444
  } : this.transport.onclose = (o) => this._stopConnection(o), this.transport.connect(e, t);
4447
4445
  }
4448
4446
  _resolveTransportOrError(e, t, o, r) {
4449
- const s = X[e.transport];
4447
+ const s = G[e.transport];
4450
4448
  if (s == null)
4451
4449
  return this._logger.log(g.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.`);
4452
4450
  if (Ud(t, s))
4453
4451
  if (e.transferFormats.map((l) => se[l]).indexOf(o) >= 0) {
4454
- if (s === X.WebSockets && !this._options.WebSocket || s === X.ServerSentEvents && !this._options.EventSource)
4455
- return this._logger.log(g.Debug, `Skipping transport '${X[s]}' because it is not supported in your environment.'`), new fd(`'${X[s]}' is not supported in your environment.`, s);
4456
- this._logger.log(g.Debug, `Selecting transport '${X[s]}'.`);
4452
+ if (s === G.WebSockets && !this._options.WebSocket || s === G.ServerSentEvents && !this._options.EventSource)
4453
+ return this._logger.log(g.Debug, `Skipping transport '${G[s]}' because it is not supported in your environment.'`), new fd(`'${G[s]}' is not supported in your environment.`, s);
4454
+ this._logger.log(g.Debug, `Selecting transport '${G[s]}'.`);
4457
4455
  try {
4458
- return this.features.reconnect = s === X.WebSockets ? r : void 0, this._constructTransport(s);
4456
+ return this.features.reconnect = s === G.WebSockets ? r : void 0, this._constructTransport(s);
4459
4457
  } catch (l) {
4460
4458
  return l;
4461
4459
  }
4462
4460
  } else
4463
- return this._logger.log(g.Debug, `Skipping transport '${X[s]}' because it does not support the requested transfer format '${se[o]}'.`), new Error(`'${X[s]}' does not support ${se[o]}.`);
4461
+ return this._logger.log(g.Debug, `Skipping transport '${G[s]}' because it does not support the requested transfer format '${se[o]}'.`), new Error(`'${G[s]}' does not support ${se[o]}.`);
4464
4462
  else
4465
- return this._logger.log(g.Debug, `Skipping transport '${X[s]}' because it was disabled by the client.`), new hd(`'${X[s]}' is disabled by the client.`, s);
4463
+ return this._logger.log(g.Debug, `Skipping transport '${G[s]}' because it was disabled by the client.`), new hd(`'${G[s]}' is disabled by the client.`, s);
4466
4464
  }
4467
4465
  _isITransport(e) {
4468
4466
  return e && typeof e == "object" && "connect" in e;
@@ -4505,10 +4503,10 @@ function Ud(n, e) {
4505
4503
  }
4506
4504
  class wn {
4507
4505
  constructor(e) {
4508
- this._transport = e, this._buffer = [], this._executing = !0, this._sendBufferedData = new ht(), this._transportResult = new ht(), this._sendLoopPromise = this._sendLoop();
4506
+ this._transport = e, this._buffer = [], this._executing = !0, this._sendBufferedData = new gt(), this._transportResult = new gt(), this._sendLoopPromise = this._sendLoop();
4509
4507
  }
4510
4508
  send(e) {
4511
- return this._bufferData(e), this._transportResult || (this._transportResult = new ht()), this._transportResult.promise;
4509
+ return this._bufferData(e), this._transportResult || (this._transportResult = new gt()), this._transportResult.promise;
4512
4510
  }
4513
4511
  stop() {
4514
4512
  return this._executing = !1, this._sendBufferedData.resolve(), this._sendLoopPromise;
@@ -4524,7 +4522,7 @@ class wn {
4524
4522
  this._transportResult && this._transportResult.reject("Connection stopped.");
4525
4523
  break;
4526
4524
  }
4527
- this._sendBufferedData = new ht();
4525
+ this._sendBufferedData = new gt();
4528
4526
  const e = this._transportResult;
4529
4527
  this._transportResult = void 0;
4530
4528
  const t = typeof this._buffer[0] == "string" ? this._buffer.join("") : wn._concatBuffers(this._buffer);
@@ -4544,7 +4542,7 @@ class wn {
4544
4542
  return o.buffer;
4545
4543
  }
4546
4544
  }
4547
- class ht {
4545
+ class gt {
4548
4546
  constructor() {
4549
4547
  this.promise = new Promise((e, t) => [this._resolver, this._rejecter] = [e, t]);
4550
4548
  }
@@ -4656,17 +4654,17 @@ function zd(n) {
4656
4654
  }
4657
4655
  class Vd {
4658
4656
  configureLogging(e) {
4659
- if (Y.isRequired(e, "logging"), qd(e))
4657
+ if (Z.isRequired(e, "logging"), qd(e))
4660
4658
  this.logger = e;
4661
4659
  else if (typeof e == "string") {
4662
4660
  const t = zd(e);
4663
- this.logger = new Ct(t);
4661
+ this.logger = new It(t);
4664
4662
  } else
4665
- this.logger = new Ct(e);
4663
+ this.logger = new It(e);
4666
4664
  return this;
4667
4665
  }
4668
4666
  withUrl(e, t) {
4669
- return Y.isRequired(e, "url"), Y.isNotEmpty(e, "url"), this.url = e, typeof t == "object" ? this.httpConnectionOptions = { ...this.httpConnectionOptions, ...t } : this.httpConnectionOptions = {
4667
+ return Z.isRequired(e, "url"), Z.isNotEmpty(e, "url"), this.url = e, typeof t == "object" ? this.httpConnectionOptions = { ...this.httpConnectionOptions, ...t } : this.httpConnectionOptions = {
4670
4668
  ...this.httpConnectionOptions,
4671
4669
  transport: t
4672
4670
  }, this;
@@ -4676,7 +4674,7 @@ class Vd {
4676
4674
  * @param {IHubProtocol} protocol The {@link @microsoft/signalr.IHubProtocol} implementation to use.
4677
4675
  */
4678
4676
  withHubProtocol(e) {
4679
- return Y.isRequired(e, "protocol"), this.protocol = e, this;
4677
+ return Z.isRequired(e, "protocol"), this.protocol = e, this;
4680
4678
  }
4681
4679
  withAutomaticReconnect(e) {
4682
4680
  if (this.reconnectPolicy)
@@ -4688,14 +4686,14 @@ class Vd {
4688
4686
  * @returns The {@link @microsoft/signalr.HubConnectionBuilder} instance, for chaining.
4689
4687
  */
4690
4688
  withServerTimeout(e) {
4691
- return Y.isRequired(e, "milliseconds"), this._serverTimeoutInMilliseconds = e, this;
4689
+ return Z.isRequired(e, "milliseconds"), this._serverTimeoutInMilliseconds = e, this;
4692
4690
  }
4693
4691
  /** Configures {@link @microsoft/signalr.HubConnection.keepAliveIntervalInMilliseconds} for the {@link @microsoft/signalr.HubConnection}.
4694
4692
  *
4695
4693
  * @returns The {@link @microsoft/signalr.HubConnectionBuilder} instance, for chaining.
4696
4694
  */
4697
4695
  withKeepAliveInterval(e) {
4698
- return Y.isRequired(e, "milliseconds"), this._keepAliveIntervalInMilliseconds = e, this;
4696
+ return Z.isRequired(e, "milliseconds"), this._keepAliveIntervalInMilliseconds = e, this;
4699
4697
  }
4700
4698
  /** Enables and configures options for the Stateful Reconnect feature.
4701
4699
  *
@@ -4723,23 +4721,23 @@ let { baseURL: Kd } = He();
4723
4721
  const Gd = () => {
4724
4722
  const n = new Vd().withUrl(`${Kd}/api/tool/event-bus`, {
4725
4723
  skipNegotiation: !0,
4726
- transport: X.WebSockets
4724
+ transport: G.WebSockets
4727
4725
  }).withAutomaticReconnect().build();
4728
4726
  return n.start().then(() => {
4729
4727
  }).catch((e) => {
4730
4728
  }), n.onclose((e) => {
4731
4729
  }), n.onreconnected(() => {
4732
4730
  }), n;
4733
- }, Dt = "v1", Xd = je(`/api/graphics-engine/component/${Dt}`, (n) => (n.customErrorMessage = () => "", n)), Zd = je(`/api/portal/manager/${Dt}`, (n) => (n.customErrorMessage = () => "", n)), Yd = je(`/api/speech-base/speech/${Dt}`, (n) => (n.customErrorMessage = () => "", n)), vo = Xd.get("/component/client/heartbeat"), ep = Zd.get("/basics/by-alias");
4731
+ }, $t = "v1", Xd = je(`/api/graphics-engine/component/${$t}`, (n) => (n.customErrorMessage = () => "", n)), Zd = je(`/api/portal/manager/${$t}`, (n) => (n.customErrorMessage = () => "", n)), Yd = je(`/api/speech-base/speech/${$t}`, (n) => (n.customErrorMessage = () => "", n)), vo = Xd.get("/component/client/heartbeat"), ep = Zd.get("/basics/by-alias");
4734
4732
  Yd.post("/control/callBack");
4735
- const tp = je(`/api/tool/event-bus/${Dt}/`), Ht = tp.post("/publish"), np = tn.get("/permissionset/application"), op = () => {
4736
- const n = on(), { entryApp: e } = _t.hooks.useEntryApp(), { entryMenu: t } = _t.hooks.useEntryMenu();
4733
+ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.get("/permissionset/application"), op = () => {
4734
+ const n = on(), { entryApp: e } = wt.hooks.useEntryApp(), { entryMenu: t } = wt.hooks.useEntryMenu();
4737
4735
  let o = null;
4738
4736
  return Qe(async () => {
4739
4737
  var d;
4740
4738
  let r = ((d = n.meta) == null ? void 0 : d.showLayout) ?? !0, { showLayout: s = !0 } = n.query;
4741
4739
  if (s === "false" && (s = !1), !r || !s) return;
4742
- await St();
4740
+ await Tt();
4743
4741
  const a = (m) => {
4744
4742
  try {
4745
4743
  return JSON.parse(m);
@@ -4829,10 +4827,10 @@ const tp = je(`/api/tool/event-bus/${Dt}/`), Ht = tp.post("/publish"), np = tn.g
4829
4827
  }, 5e3), w.value = (window.navigator.onLine ? "on" : "off") + "line";
4830
4828
  };
4831
4829
  window.addEventListener("online", () => f("online")), window.addEventListener("offline", () => f("offline"));
4832
- }), It(() => {
4830
+ }), Et(() => {
4833
4831
  o && clearInterval(o);
4834
4832
  }), {};
4835
- }, $t = "v1", rp = Xe(`/api/fms/report/${$t}`), bn = Xe(`/api/emergency/manage/${$t}`), sp = rn.get("/permissionset/user-portal-menu"), Ar = Xe(`/api/alarm/config/${$t}`), ip = Xe(`/api/alarm/run-time/${$t}`), ap = Ar.get("/alarm-definition/status-option"), cp = ip.post("/record/handling"), lp = Ar.get("/alarm-level/prompttone"), up = rp.get("/alarm/rule/list"), dp = Eo.get("/controller/space-children-all-type"), pp = Eo.get("/controller/fuzzy-area-small"), fp = bn.get("/emergency-event/event/type"), hp = bn.get("/emergency-event/event/level"), gp = bn.get("/emergency-plan/plan/handle-time"), Ap = { class: "handle-alarm-container" }, mp = { class: "select-check" }, vp = { class: "form-box" }, yp = { class: "select-check" }, _p = { style: { "margin-left": "8px" } }, wp = { class: "foot-btn-box" }, bp = {
4833
+ }, Lt = "v1", rp = Xe(`/api/fms/report/${Lt}`), bn = Xe(`/api/emergency/manage/${Lt}`), sp = rn.get("/permissionset/user-portal-menu"), Ar = Xe(`/api/alarm/config/${Lt}`), ip = Xe(`/api/alarm/run-time/${Lt}`), ap = Ar.get("/alarm-definition/status-option"), cp = ip.post("/record/handling"), lp = Ar.get("/alarm-level/prompttone"), up = rp.get("/alarm/rule/list"), dp = Eo.get("/controller/space-children-all-type"), pp = Eo.get("/controller/fuzzy-area-small"), fp = bn.get("/emergency-event/event/type"), hp = bn.get("/emergency-event/event/level"), gp = bn.get("/emergency-plan/plan/handle-time"), Ap = { class: "handle-alarm-container" }, mp = { class: "select-check" }, vp = { class: "form-box" }, yp = { class: "select-check" }, _p = { style: { "margin-left": "8px" } }, wp = { class: "foot-btn-box" }, bp = {
4836
4834
  name: "handleAlarm"
4837
4835
  }, Cp = /* @__PURE__ */ pe({
4838
4836
  ...bp,
@@ -4910,7 +4908,7 @@ const tp = je(`/api/tool/event-bus/${Dt}/`), Ht = tp.post("/publish"), np = tn.g
4910
4908
  $.value = I.data.filter((k) => k.status), $.value.length > 0 && (i.value.workOrderRules = $.value[0].id);
4911
4909
  };
4912
4910
  re(c, (O) => {
4913
- O || (G(), Oe());
4911
+ O || (Y(), ne());
4914
4912
  }), re(
4915
4913
  B,
4916
4914
  (O) => {
@@ -4931,15 +4929,15 @@ const tp = je(`/api/tool/event-bus/${Dt}/`), Ht = tp.post("/publish"), np = tn.g
4931
4929
  u.value.reportTheme = "";
4932
4930
  }, Te = (O, I) => {
4933
4931
  I.length > 0 && (f.value = I[0].path), i.value.reportPosition = O, _.value = "";
4934
- }, oe = (O) => {
4932
+ }, ft = (O) => {
4935
4933
  O && (u.value.reportPosition = "", f.value = ""), O ? (i.value.reportPosition = null, f.value = "", d.value = "告警对象位置") : (i.value.reportPosition = null, f.value = "", d.value = "请选择");
4936
- }, ne = (O) => {
4934
+ }, oe = (O) => {
4937
4935
  O && (u.value.reportTheme = ""), O ? (i.value.reportTheme = "", m.value = "告警对象") : (i.value.reportTheme = "", m.value = "请输入");
4938
- }, G = () => {
4936
+ }, Y = () => {
4939
4937
  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 = "";
4940
- }, Oe = () => {
4938
+ }, ne = () => {
4941
4939
  i.value.processTypeId = "confirm", i.value.reason = "", i.value.treatmentPlan = "", i.value.remarks = "", i.value.reportPosition = "", i.value.reportTheme = "", i.value.workOrderRules = null, B.value = !0, P.value = !0, C.value = !0, i.value.reportTheme = Q("告警对象").value, f.value = "", d.value = "告警对象位置", m.value = "请输入", i.value.eventTypeId = "", i.value.eventLevelId = null, i.value.timeLimit = "", i.value.interval = 1, p.value = [], h.value = [];
4942
- }, Lt = (O) => {
4940
+ }, Oe = (O) => {
4943
4941
  O == "eventTypeId" && (i.value.eventLevelId = null, Cn()), O == "eventLevelId" && In(), O == "interval" && (u.value.timeLimit = "", i.value.interval == 3 ? (A.value = !0, i.value.timeLimit = "") : A.value = !1);
4944
4942
  }, mr = async () => {
4945
4943
  const [O, I] = await fp().run();
@@ -4951,9 +4949,9 @@ const tp = je(`/api/tool/event-bus/${Dt}/`), Ht = tp.post("/publish"), np = tn.g
4951
4949
  }, [I, k] = await hp(O).run();
4952
4950
  if (I) return {};
4953
4951
  const Ae = { 1: "一级", 2: "二级", 3: "三级", 4: "四级" };
4954
- h.value = k.map((ft) => ({
4955
- id: `${ft}`,
4956
- name: Ae[ft] ? Ae[ft] : ft
4952
+ h.value = k.map((ht) => ({
4953
+ id: `${ht}`,
4954
+ name: Ae[ht] ? Ae[ht] : ht
4957
4955
  })), k.length && !i.value.eventLevelId && (i.value.eventLevelId = h.value[0].id, In());
4958
4956
  }, In = async () => {
4959
4957
  const O = {
@@ -4963,7 +4961,7 @@ const tp = je(`/api/tool/event-bus/${Dt}/`), Ht = tp.post("/publish"), np = tn.g
4963
4961
  if (I) return {};
4964
4962
  i.value.interval = k.handleTimeUnit, k.handleTimeUnit == 3 ? i.value.timeLimit = "" : i.value.timeLimit = k.handleTime;
4965
4963
  }, vr = (O) => {
4966
- G();
4964
+ Y();
4967
4965
  }, yr = async () => {
4968
4966
  const O = {
4969
4967
  logic: !1,
@@ -5038,7 +5036,7 @@ const tp = je(`/api/tool/event-bus/${Dt}/`), Ht = tp.post("/publish"), np = tn.g
5038
5036
  }, {
5039
5037
  header: M(() => [
5040
5038
  ue(
5041
- Z(v(Q)("告警处理").value),
5039
+ X(v(Q)("告警处理").value),
5042
5040
  1
5043
5041
  /* TEXT */
5044
5042
  )
@@ -5051,7 +5049,7 @@ const tp = je(`/api/tool/event-bus/${Dt}/`), Ht = tp.post("/publish"), np = tn.g
5051
5049
  }, {
5052
5050
  default: M(() => [
5053
5051
  ue(
5054
- Z(v(Q)("取消").value),
5052
+ X(v(Q)("取消").value),
5055
5053
  1
5056
5054
  /* TEXT */
5057
5055
  )
@@ -5065,7 +5063,7 @@ const tp = je(`/api/tool/event-bus/${Dt}/`), Ht = tp.post("/publish"), np = tn.g
5065
5063
  }, {
5066
5064
  default: M(() => [
5067
5065
  ue(
5068
- Z(v(Q)("结束处理").value),
5066
+ X(v(Q)("结束处理").value),
5069
5067
  1
5070
5068
  /* TEXT */
5071
5069
  )
@@ -5080,7 +5078,7 @@ const tp = je(`/api/tool/event-bus/${Dt}/`), Ht = tp.post("/publish"), np = tn.g
5080
5078
  }, {
5081
5079
  default: M(() => [
5082
5080
  ue(
5083
- Z(v(Q)("继续处理").value),
5081
+ X(v(Q)("继续处理").value),
5084
5082
  1
5085
5083
  /* TEXT */
5086
5084
  )
@@ -5210,12 +5208,12 @@ const tp = je(`/api/tool/event-bus/${Dt}/`), Ht = tp.post("/publish"), np = tn.g
5210
5208
  modelValue: B.value,
5211
5209
  "onUpdate:modelValue": I[12] || (I[12] = (k) => B.value = k),
5212
5210
  checkboxType: "default",
5213
- onChange: oe,
5211
+ onChange: ft,
5214
5212
  size: "middle"
5215
5213
  }, {
5216
5214
  default: M(() => [
5217
5215
  ue(
5218
- Z(v(Q)("告警对象位置").value),
5216
+ X(v(Q)("告警对象位置").value),
5219
5217
  1
5220
5218
  /* TEXT */
5221
5219
  )
@@ -5252,12 +5250,12 @@ const tp = je(`/api/tool/event-bus/${Dt}/`), Ht = tp.post("/publish"), np = tn.g
5252
5250
  modelValue: P.value,
5253
5251
  "onUpdate:modelValue": I[15] || (I[15] = (k) => P.value = k),
5254
5252
  checkboxType: "default",
5255
- onChange: ne,
5253
+ onChange: oe,
5256
5254
  size: "middle"
5257
5255
  }, {
5258
5256
  default: M(() => [
5259
5257
  ue(
5260
- Z(v(Q)("告警对象").value),
5258
+ X(v(Q)("告警对象").value),
5261
5259
  1
5262
5260
  /* TEXT */
5263
5261
  )
@@ -5304,7 +5302,7 @@ const tp = je(`/api/tool/event-bus/${Dt}/`), Ht = tp.post("/publish"), np = tn.g
5304
5302
  "get-popup-container": F,
5305
5303
  marginBottom: "30px",
5306
5304
  marginRight: "0",
5307
- onChange: I[21] || (I[21] = (k) => Lt("eventTypeId"))
5305
+ onChange: I[21] || (I[21] = (k) => Oe("eventTypeId"))
5308
5306
  }, null, 8, ["label", "modelValue", "error", "options"])) : U("v-if", !0),
5309
5307
  i.value.processTypeId == "createcontingency" ? (N(), V(v(_e), {
5310
5308
  key: 7,
@@ -5322,7 +5320,7 @@ const tp = je(`/api/tool/event-bus/${Dt}/`), Ht = tp.post("/publish"), np = tn.g
5322
5320
  "get-popup-container": F,
5323
5321
  marginBottom: "30px",
5324
5322
  marginRight: "0",
5325
- onChange: I[24] || (I[24] = (k) => Lt("eventLevelId"))
5323
+ onChange: I[24] || (I[24] = (k) => Oe("eventLevelId"))
5326
5324
  }, null, 8, ["label", "modelValue", "error", "options"])) : U("v-if", !0),
5327
5325
  i.value.processTypeId == "createcontingency" ? (N(), V(v(_e), {
5328
5326
  key: 8,
@@ -5354,7 +5352,7 @@ const tp = je(`/api/tool/event-bus/${Dt}/`), Ht = tp.post("/publish"), np = tn.g
5354
5352
  "border-type": "underline",
5355
5353
  size: "small",
5356
5354
  "get-popup-container": F,
5357
- onChange: I[26] || (I[26] = (k) => Lt("interval")),
5355
+ onChange: I[26] || (I[26] = (k) => Oe("interval")),
5358
5356
  placeholder: "请选择"
5359
5357
  }, null, 8, ["modelValue", "options"])
5360
5358
  ])
@@ -5383,7 +5381,7 @@ const tp = je(`/api/tool/event-bus/${Dt}/`), Ht = tp.post("/publish"), np = tn.g
5383
5381
  }), Ip = /* @__PURE__ */ Ee(Cp, [["__scopeId", "data-v-1ecf3324"]]), Ep = (n, e, t) => ({
5384
5382
  handleAlarmVue: () => fe(Ip, {
5385
5383
  handerIds: e.value,
5386
- projectId: Et().id,
5384
+ projectId: St().id,
5387
5385
  ref: n,
5388
5386
  onEmitFn: (r, s) => {
5389
5387
  }
@@ -5424,7 +5422,7 @@ const tp = je(`/api/tool/event-bus/${Dt}/`), Ht = tp.post("/publish"), np = tn.g
5424
5422
  x(
5425
5423
  "div",
5426
5424
  Pp,
5427
- Z(v(Q)("新告警").value),
5425
+ X(v(Q)("新告警").value),
5428
5426
  1
5429
5427
  /* TEXT */
5430
5428
  )
@@ -5445,7 +5443,7 @@ const tp = je(`/api/tool/event-bus/${Dt}/`), Ht = tp.post("/publish"), np = tn.g
5445
5443
  x(
5446
5444
  "div",
5447
5445
  Dp,
5448
- Z(v(Q)("告警等级:").value),
5446
+ X(v(Q)("告警等级:").value),
5449
5447
  1
5450
5448
  /* TEXT */
5451
5449
  ),
@@ -5455,7 +5453,7 @@ const tp = je(`/api/tool/event-bus/${Dt}/`), Ht = tp.post("/publish"), np = tn.g
5455
5453
  class: "alarm-msg-line-right alarm-content-object",
5456
5454
  style: Sn({ color: a.msgItem.color })
5457
5455
  },
5458
- Z(a.msgItem.alarmLevelName || ""),
5456
+ X(a.msgItem.alarmLevelName || ""),
5459
5457
  5
5460
5458
  /* TEXT, STYLE */
5461
5459
  )
@@ -5464,14 +5462,14 @@ const tp = je(`/api/tool/event-bus/${Dt}/`), Ht = tp.post("/publish"), np = tn.g
5464
5462
  x(
5465
5463
  "div",
5466
5464
  Lp,
5467
- Z(v(Q)("告警对象:").value),
5465
+ X(v(Q)("告警对象:").value),
5468
5466
  1
5469
5467
  /* TEXT */
5470
5468
  ),
5471
5469
  x(
5472
5470
  "div",
5473
5471
  xp,
5474
- Z(a.msgItem.equipmentName || ""),
5472
+ X(a.msgItem.equipmentName || ""),
5475
5473
  1
5476
5474
  /* TEXT */
5477
5475
  )
@@ -5480,14 +5478,14 @@ const tp = je(`/api/tool/event-bus/${Dt}/`), Ht = tp.post("/publish"), np = tn.g
5480
5478
  x(
5481
5479
  "div",
5482
5480
  Rp,
5483
- Z(v(Q)("告警内容:").value),
5481
+ X(v(Q)("告警内容:").value),
5484
5482
  1
5485
5483
  /* TEXT */
5486
5484
  ),
5487
5485
  x(
5488
5486
  "div",
5489
5487
  Qp,
5490
- Z(a.msgItem.alarmContent || ""),
5488
+ X(a.msgItem.alarmContent || ""),
5491
5489
  1
5492
5490
  /* TEXT */
5493
5491
  )
@@ -5502,7 +5500,7 @@ const tp = je(`/api/tool/event-bus/${Dt}/`), Ht = tp.post("/publish"), np = tn.g
5502
5500
  }, {
5503
5501
  default: M(() => [
5504
5502
  ue(
5505
- Z(v(Q)("设备详情").value),
5503
+ X(v(Q)("设备详情").value),
5506
5504
  1
5507
5505
  /* TEXT */
5508
5506
  )
@@ -5519,7 +5517,7 @@ const tp = je(`/api/tool/event-bus/${Dt}/`), Ht = tp.post("/publish"), np = tn.g
5519
5517
  }, {
5520
5518
  default: M(() => [
5521
5519
  ue(
5522
- Z(v(Q)("处理").value),
5520
+ X(v(Q)("处理").value),
5523
5521
  1
5524
5522
  /* TEXT */
5525
5523
  )
@@ -5570,7 +5568,7 @@ const Fp = () => {
5570
5568
  var P;
5571
5569
  const C = [];
5572
5570
  C.push({ alarmId: b.recordId }), r.value = C, (P = t.value) == null || P.open();
5573
- }, { entryApp: A } = _t.hooks.useEntryApp(), p = (b) => {
5571
+ }, { entryApp: A } = wt.hooks.useEntryApp(), p = (b) => {
5574
5572
  So(b.equipmentCode, b.equipmentPanelCode);
5575
5573
  }, { handleAlarmVue: h } = Ep(t, r), S = async () => {
5576
5574
  var P;
@@ -5584,7 +5582,7 @@ const Fp = () => {
5584
5582
  }, d = (b) => {
5585
5583
  if (!b) return;
5586
5584
  const C = Up();
5587
- vt.open({
5585
+ yt.open({
5588
5586
  key: C,
5589
5587
  class: "alarm-notify",
5590
5588
  message: Q("新告警").value,
@@ -5672,8 +5670,8 @@ const Fp = () => {
5672
5670
  setup(n) {
5673
5671
  const { alarmSocket: e, creatAlarmSocket: t, audioObj: o, audioAlarmRef: r, handleAlarmVue: s } = Fp();
5674
5672
  return Qe(async () => {
5675
- await St(), t();
5676
- }), It(() => {
5673
+ await Tt(), t();
5674
+ }), Et(() => {
5677
5675
  e.value && e.value.disconnect(), e.value = null;
5678
5676
  }), (a, l) => (N(), de(
5679
5677
  We,
@@ -5697,7 +5695,7 @@ const Fp = () => {
5697
5695
  }), zp = { class: "das-main-app-container" }, Vp = /* @__PURE__ */ pe({
5698
5696
  __name: "index",
5699
5697
  setup(n) {
5700
- const { isFullscreen: e } = lt(), t = Ce(() => !e.value), o = Ce(() => ee.excludeRoutes), r = Ce(() => ee.routeKeepAliveVisible), s = Ce(() => ({ mode: bt.value === 1 ? "vertical" : "inline" })), { initNextTick: a } = gu(), { innerPage: l, commandList: c, initNextTick: i } = Au(a);
5698
+ const { isFullscreen: e } = lt(), t = Ce(() => !e.value), o = Ce(() => ee.excludeRoutes), r = Ce(() => ee.routeKeepAliveVisible), s = Ce(() => ({ mode: Ct.value === 1 ? "vertical" : "inline" })), { initNextTick: a } = gu(), { innerPage: l, commandList: c, initNextTick: i } = Au(a);
5701
5699
  bu(l, a, i), wu(), yu(), Su();
5702
5700
  const { $changePwd: u, $personSetDialog: A } = Cu(), { changeEnterprisesVisible: p, userId: h, tenantId: S, changeEnterprise: w } = dr();
5703
5701
  vu();
@@ -5755,15 +5753,15 @@ E("@das-fed/web");
5755
5753
  const Kp = [
5756
5754
  {
5757
5755
  path: Ie,
5758
- component: () => import("./index-C2gtyFHH.js")
5756
+ component: () => import("./index-yWjHN1Jc.js")
5759
5757
  },
5760
5758
  {
5761
5759
  path: Je,
5762
- component: () => import("./index-BYJ_iw6e.js")
5760
+ component: () => import("./index-CwKf8xGn.js")
5763
5761
  },
5764
5762
  {
5765
5763
  path: Bo,
5766
- component: () => import("./index-FJjkdoP_.js")
5764
+ component: () => import("./index-OD7R3sDR.js")
5767
5765
  }
5768
5766
  ], Hf = {
5769
5767
  routes: Kp,
@@ -5773,7 +5771,7 @@ const Kp = [
5773
5771
  },
5774
5772
  hooks: {
5775
5773
  useEntryApp: et,
5776
- useEntryMenu: Bt
5774
+ useEntryMenu: Ot
5777
5775
  }
5778
5776
  };
5779
5777
  export {
@@ -5783,7 +5781,7 @@ export {
5783
5781
  ao as b,
5784
5782
  qe as c,
5785
5783
  Wt as d,
5786
- gt as e,
5784
+ At as e,
5787
5785
  ee as l,
5788
5786
  Hf as m,
5789
5787
  et as u