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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { defineComponent as pe, computed as Ce, openBlock as H, createBlock as q, unref as A, mergeProps as Er, withCtx as x, renderSlot as $e, createVNode as R, getCurrentScope as Tr, onScopeDispose as kr, getCurrentInstance as Pr, onMounted as Qe, nextTick as Fe, ref as T, watch as re, reactive as yo, createElementVNode as $, createTextVNode as ue, createElementBlock as de, Fragment as We, renderList as _o, withDirectives as Br, toDisplayString as Y, createCommentVNode as U, pushScopeId as bo, popScopeId as wo, h as he, render as vt, onBeforeUnmount as St, useCssVars as Or, normalizeClass as Dr, withModifiers as ne, toRefs as $r, normalizeStyle as En, isRef as Mr } from "vue";
1
+ import { defineComponent as pe, computed as Ce, openBlock as H, createBlock as V, unref as A, mergeProps as Sr, withCtx as x, renderSlot as $e, createVNode as R, getCurrentScope as Tr, onScopeDispose as kr, getCurrentInstance as Pr, onMounted as Qe, nextTick as Fe, ref as T, watch as re, reactive as yo, createElementVNode as $, createTextVNode as ue, createElementBlock as de, Fragment as We, renderList as _o, withDirectives as Br, toDisplayString as Y, createCommentVNode as U, pushScopeId as bo, popScopeId as wo, h as he, render as vt, onBeforeUnmount as Et, useCssVars as Or, normalizeClass as Dr, withModifiers as ne, toRefs as $r, normalizeStyle as Sn, isRef as Mr } from "vue";
2
2
  import { i18n as Q } from "@das-fed/web/packages/i18n/index";
3
3
  import { DasWebLayout as Lr, DasWebNav as xr, DasWebMenu as Rr, DasWebTabs as Qr, layout as D } from "@das-fed/web/packages/layout/index";
4
4
  import { DasChangePwdRef as jr, DasChangePwd as Hr } from "@das-fed/ui/packages/business-components/change-pwd/index";
@@ -6,14 +6,14 @@ import { DasChangeEnterprises as Nr } from "@das-fed/ui/packages/business-compon
6
6
  import { pureImageSrc as Xt } from "@das-fed/utils/pure-image-src";
7
7
  import { DasNotification as yt } from "@das-fed/ui/packages/components/notification/index";
8
8
  import { flatTree as ye, filterTreeArray as Ur, isEmpty as Fr, treeFind as Tn, updateFavIcon as Jr, dateFormat as Wr, runPromiseByQueue as zr, objEqual as Nt, setShowWatermark as Ut, setShowLayout as Ft, getUrlParams as Vr, withToken as qr } 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 Co, getMenus as _t } from "@das-fed/utils/common-info";
10
- import { setProcessEngineProject as Io, setProcessEngineToken as So } from "@das-fed/utils/process-engine-info";
11
- import { oauthServer as Eo, justauth as en, enterpriseright as tn, iotModules as Kr, portal as Be, systemConfiguration as nn } from "@das-fed/utils/api-services/modules";
9
+ import { getSubApps as F, getTabInfo as ce, getPersonalInfo as St, getTenantInfo as Zt, getProjectInfo as Pe, getToken as Yt, getUserInfo as Co, getMenus as _t } from "@das-fed/utils/common-info";
10
+ import { setProcessEngineProject as Io, setProcessEngineToken as Eo } from "@das-fed/utils/process-engine-info";
11
+ import { oauthServer as So, justauth as en, enterpriseright as tn, iotModules as Kr, 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";
13
13
  import { useRouter as Ge, useRoute as on } from "vue-router";
14
14
  import { useGetAuth as Gr } from "@das-fed/utils/hooks/use-get-auth";
15
15
  import { systemConfiguration as Xr, enterpriseright as rn, createService as Xe, spaceManage as To } from "@das-fed/utils/api-services";
16
- import { microFrontend as te } from "@das-fed/web/packages/micro-frontend/index";
16
+ import { microFrontend as X } from "@das-fed/web/packages/micro-frontend/index";
17
17
  import { getConfig as He } from "@das-fed/utils/config";
18
18
  import Jt from "dayjs";
19
19
  import { getAccessToken as Zr, removeAccessToken as Yr } from "@das-fed/utils/token-tools";
@@ -71,7 +71,7 @@ const nt = "/", ke = "/application", Oo = [
71
71
  excludeRoutes: e.excludeRoutes,
72
72
  routeKeepAliveVisible: e.routeKeepAliveVisible
73
73
  }));
74
- return (r, i) => (H(), q(A(Lr), Er({ "transition-config": t.value }, o.value), {
74
+ return (r, i) => (H(), V(A(Lr), Sr({ "transition-config": t.value }, o.value), {
75
75
  header: x(() => [
76
76
  $e(r.$slots, "header", {}, () => [
77
77
  R(A(xr))
@@ -218,12 +218,12 @@ var Ln;
218
218
  (function(n) {
219
219
  n.UP = "UP", n.RIGHT = "RIGHT", n.DOWN = "DOWN", n.LEFT = "LEFT", n.NONE = "NONE";
220
220
  })(Ln || (Ln = {}));
221
- var Is = Object.defineProperty, xn = Object.getOwnPropertySymbols, Ss = Object.prototype.hasOwnProperty, Es = Object.prototype.propertyIsEnumerable, Rn = (n, e, t) => e in n ? Is(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Ts = (n, e) => {
221
+ var Is = Object.defineProperty, xn = Object.getOwnPropertySymbols, Es = Object.prototype.hasOwnProperty, Ss = Object.prototype.propertyIsEnumerable, Rn = (n, e, t) => e in n ? Is(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Ts = (n, e) => {
222
222
  for (var t in e || (e = {}))
223
- Ss.call(e, t) && Rn(n, t, e[t]);
223
+ Es.call(e, t) && Rn(n, t, e[t]);
224
224
  if (xn)
225
225
  for (var t of xn(e))
226
- Es.call(e, t) && Rn(n, t, e[t]);
226
+ Ss.call(e, t) && Rn(n, t, e[t]);
227
227
  return n;
228
228
  };
229
229
  const ks = {
@@ -282,10 +282,10 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
282
282
  if (f) return null;
283
283
  if (t.value = v, !!((p = t.value) != null && p.pageSwith)) {
284
284
  i = [];
285
- const { name: S, phone: E } = await as();
285
+ const { name: E, phone: S } = await as();
286
286
  let C = "";
287
- if ((d = t.value) != null && d.nameSwith && S && (i.push(S), C = C + `${S} `), (m = t.value) != null && m.phoneSwith && E) {
288
- const M = E.slice(-4);
287
+ if ((d = t.value) != null && d.nameSwith && E && (i.push(E), C = C + `${E} `), (m = t.value) != null && m.phoneSwith && S) {
288
+ const M = S.slice(-4);
289
289
  i.push(M), C = C + `${M} `;
290
290
  }
291
291
  if ((_ = t.value) != null && _.textSwith && ((w = t.value) != null && w.text)) {
@@ -310,13 +310,13 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
310
310
  p === "false" && (p = !1), s(v && !!(y && p));
311
311
  },
312
312
  { immediate: !0 }
313
- ), te.addEventListenerFromMicroApp("systemconfig:watermark-change", () => {
313
+ ), X.addEventListenerFromMicroApp("systemconfig:watermark-change", () => {
314
314
  var y, p;
315
315
  u();
316
316
  const f = !!((y = t.value) != null && y.pageSwith);
317
317
  let v = ((p = g.query) == null ? void 0 : p.showWatermark) ?? !0;
318
318
  v === "false" && (v = !1), s(!!(f && v));
319
- }), (f, v) => (H(), q(A(ls), {
319
+ }), (f, v) => (H(), V(A(ls), {
320
320
  class: "watermark",
321
321
  font: l,
322
322
  zIndex: 2147483647,
@@ -356,7 +356,7 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
356
356
  },
357
357
  setup(n) {
358
358
  const e = T(!0);
359
- return (t, o) => (H(), q(A(sn), {
359
+ return (t, o) => (H(), V(A(sn), {
360
360
  modelValue: e.value,
361
361
  "onUpdate:modelValue": o[0] || (o[0] = (r) => e.value = r),
362
362
  type: "feedback",
@@ -470,7 +470,7 @@ const js = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
470
470
  }, Ro = () => {
471
471
  sessionStorage.removeItem("tabs");
472
472
  }, Ae = (n) => {
473
- let e = J();
473
+ let e = F();
474
474
  n.forEach((t) => {
475
475
  if (t.key === "subAppList" && !Array.isArray(t.value)) {
476
476
  const o = e.subAppList.findIndex((r) => r.code === t.value.code);
@@ -485,7 +485,7 @@ const js = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
485
485
  { key: "subAppList", value: [] }
486
486
  ]);
487
487
  }, Qo = (n) => {
488
- let e = J();
488
+ let e = F();
489
489
  e.currentSubApp.currentMenuCode = n;
490
490
  for (const t in e.subAppList)
491
491
  e.subAppList[t].code === e.currentSubAppCode && (e.subAppList[t].currentMenuCode = n);
@@ -565,7 +565,7 @@ const js = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
565
565
  }, Wt = (n) => {
566
566
  const e = new URL(n, location.origin);
567
567
  return ["true", "1"].includes(e.searchParams.get("autoSetToken")) && (e.searchParams.append("access_token", Zr()), e.searchParams.delete("autoSetToken")), e.toString();
568
- }, ei = "v1", ti = je(`/api/personal-center/personal-server/${ei}`), ni = ti.get("/info"), oi = Eo.get("/user-info"), ri = en.post("/tenant/page"), si = async () => {
568
+ }, ei = "v1", ti = je(`/api/personal-center/personal-server/${ei}`), ni = ti.get("/info"), oi = So.get("/user-info"), ri = en.post("/tenant/page"), si = async () => {
569
569
  const [n, e] = await ni().run({});
570
570
  return n ? { personalConfig: null } : (Ns(e), { personalConfig: e });
571
571
  }, ii = async () => {
@@ -573,7 +573,7 @@ const js = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
573
573
  return n ? { tenantConfig: null } : (Us(e), { tenantConfig: e });
574
574
  }, ai = async () => {
575
575
  const [n, e] = await ri().run({
576
- userId: Et().id,
576
+ userId: St().id,
577
577
  pageSize: 20,
578
578
  pageIndex: 1
579
579
  });
@@ -614,20 +614,20 @@ function mi(n, e) {
614
614
  var t = this.__data__, o = kt(t, n);
615
615
  return o < 0 ? (++this.size, t.push([n, e])) : t[o][1] = e, this;
616
616
  }
617
- function Se(n) {
617
+ function Ee(n) {
618
618
  var e = -1, t = n == null ? 0 : n.length;
619
619
  for (this.clear(); ++e < t; ) {
620
620
  var o = n[e];
621
621
  this.set(o[0], o[1]);
622
622
  }
623
623
  }
624
- Se.prototype.clear = di;
625
- Se.prototype.delete = hi;
626
- Se.prototype.get = gi;
627
- Se.prototype.has = Ai;
628
- Se.prototype.set = mi;
624
+ Ee.prototype.clear = di;
625
+ Ee.prototype.delete = hi;
626
+ Ee.prototype.get = gi;
627
+ Ee.prototype.has = Ai;
628
+ Ee.prototype.set = mi;
629
629
  function vi() {
630
- this.__data__ = new Se(), this.size = 0;
630
+ this.__data__ = new Ee(), this.size = 0;
631
631
  }
632
632
  function yi(n) {
633
633
  var e = this.__data__, t = e.delete(n);
@@ -640,7 +640,7 @@ function bi(n) {
640
640
  return this.__data__.has(n);
641
641
  }
642
642
  var No = typeof global == "object" && global && global.Object === Object && global, wi = typeof self == "object" && self && self.Object === Object && self, be = No || wi || Function("return this")(), ze = be.Symbol, Uo = Object.prototype, Ci = Uo.hasOwnProperty, Ii = Uo.toString, tt = ze ? ze.toStringTag : void 0;
643
- function Si(n) {
643
+ function Ei(n) {
644
644
  var e = Ci.call(n, tt), t = n[tt];
645
645
  try {
646
646
  n[tt] = void 0;
@@ -650,13 +650,13 @@ function Si(n) {
650
650
  var r = Ii.call(n);
651
651
  return o && (e ? n[tt] = t : delete n[tt]), r;
652
652
  }
653
- var Ei = Object.prototype, Ti = Ei.toString;
653
+ var Si = Object.prototype, Ti = Si.toString;
654
654
  function ki(n) {
655
655
  return Ti.call(n);
656
656
  }
657
657
  var Pi = "[object Null]", Bi = "[object Undefined]", Qn = ze ? ze.toStringTag : void 0;
658
658
  function ut(n) {
659
- return n == null ? n === void 0 ? Bi : Pi : Qn && Qn in Object(n) ? Si(n) : ki(n);
659
+ return n == null ? n === void 0 ? Bi : Pi : Qn && Qn in Object(n) ? Ei(n) : ki(n);
660
660
  }
661
661
  function dt(n) {
662
662
  var e = typeof n;
@@ -748,7 +748,7 @@ xe.prototype.set = oa;
748
748
  function ra() {
749
749
  this.size = 0, this.__data__ = {
750
750
  hash: new xe(),
751
- map: new (st || Se)(),
751
+ map: new (st || Ee)(),
752
752
  string: new xe()
753
753
  };
754
754
  }
@@ -789,7 +789,7 @@ Ze.prototype.set = la;
789
789
  var ua = 200;
790
790
  function da(n, e) {
791
791
  var t = this.__data__;
792
- if (t instanceof Se) {
792
+ if (t instanceof Ee) {
793
793
  var o = t.__data__;
794
794
  if (!st || o.length < ua - 1)
795
795
  return o.push([n, e]), this.size = ++t.size, this;
@@ -798,7 +798,7 @@ function da(n, e) {
798
798
  return t.set(n, e), this.size = t.size, this;
799
799
  }
800
800
  function Ye(n) {
801
- var e = this.__data__ = new Se(n);
801
+ var e = this.__data__ = new Ee(n);
802
802
  this.size = e.size;
803
803
  }
804
804
  Ye.prototype.clear = vi;
@@ -861,19 +861,19 @@ function _a() {
861
861
  return !1;
862
862
  }
863
863
  var Vo = typeof exports == "object" && exports && !exports.nodeType && exports, Un = Vo && typeof module == "object" && module && !module.nodeType && module, ba = Un && Un.exports === Vo, Fn = ba ? be.Buffer : void 0, wa = Fn ? Fn.isBuffer : void 0, qo = wa || _a, Ca = 9007199254740991, Ia = /^(?:0|[1-9]\d*)$/;
864
- function Sa(n, e) {
864
+ function Ea(n, e) {
865
865
  var t = typeof n;
866
866
  return e = e ?? Ca, !!e && (t == "number" || t != "symbol" && Ia.test(n)) && n > -1 && n % 1 == 0 && n < e;
867
867
  }
868
- var Ea = 9007199254740991;
868
+ var Sa = 9007199254740991;
869
869
  function Ko(n) {
870
- return typeof n == "number" && n > -1 && n % 1 == 0 && n <= Ea;
870
+ return typeof n == "number" && n > -1 && n % 1 == 0 && n <= Sa;
871
871
  }
872
- var Ta = "[object Arguments]", ka = "[object Array]", Pa = "[object Boolean]", Ba = "[object Date]", Oa = "[object Error]", Da = "[object Function]", $a = "[object Map]", Ma = "[object Number]", La = "[object Object]", xa = "[object RegExp]", Ra = "[object Set]", Qa = "[object String]", ja = "[object WeakMap]", Ha = "[object ArrayBuffer]", Na = "[object DataView]", Ua = "[object Float32Array]", Fa = "[object Float64Array]", Ja = "[object Int8Array]", Wa = "[object Int16Array]", za = "[object Int32Array]", Va = "[object Uint8Array]", qa = "[object Uint8ClampedArray]", Ka = "[object Uint16Array]", Ga = "[object Uint32Array]", V = {};
873
- V[Ua] = V[Fa] = V[Ja] = V[Wa] = V[za] = V[Va] = V[qa] = V[Ka] = V[Ga] = !0;
874
- V[Ta] = V[ka] = V[Ha] = V[Pa] = V[Na] = V[Ba] = V[Oa] = V[Da] = V[$a] = V[Ma] = V[La] = V[xa] = V[Ra] = V[Qa] = V[ja] = !1;
872
+ var Ta = "[object Arguments]", ka = "[object Array]", Pa = "[object Boolean]", Ba = "[object Date]", Oa = "[object Error]", Da = "[object Function]", $a = "[object Map]", Ma = "[object Number]", La = "[object Object]", xa = "[object RegExp]", Ra = "[object Set]", Qa = "[object String]", ja = "[object WeakMap]", Ha = "[object ArrayBuffer]", Na = "[object DataView]", Ua = "[object Float32Array]", Fa = "[object Float64Array]", Ja = "[object Int8Array]", Wa = "[object Int16Array]", za = "[object Int32Array]", Va = "[object Uint8Array]", qa = "[object Uint8ClampedArray]", Ka = "[object Uint16Array]", Ga = "[object Uint32Array]", z = {};
873
+ z[Ua] = z[Fa] = z[Ja] = z[Wa] = z[za] = z[Va] = z[qa] = z[Ka] = z[Ga] = !0;
874
+ z[Ta] = z[ka] = z[Ha] = z[Pa] = z[Na] = z[Ba] = z[Oa] = z[Da] = z[$a] = z[Ma] = z[La] = z[xa] = z[Ra] = z[Qa] = z[ja] = !1;
875
875
  function Xa(n) {
876
- return pt(n) && Ko(n.length) && !!V[ut(n)];
876
+ return pt(n) && Ko(n.length) && !!z[ut(n)];
877
877
  }
878
878
  function dn(n) {
879
879
  return function(e) {
@@ -894,7 +894,7 @@ function Xo(n, e) {
894
894
  (s == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
895
895
  r && (s == "offset" || s == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
896
896
  i && (s == "buffer" || s == "byteLength" || s == "byteOffset") || // Skip index properties.
897
- Sa(s, c))) && l.push(s);
897
+ Ea(s, c))) && l.push(s);
898
898
  return l;
899
899
  }
900
900
  var nc = Object.prototype;
@@ -1001,14 +1001,14 @@ function wc(n) {
1001
1001
  function Cc(n) {
1002
1002
  return sr(n, hn, rr);
1003
1003
  }
1004
- var zt = Ue(be, "DataView"), Vt = Ue(be, "Promise"), qt = Ue(be, "Set"), Kt = Ue(be, "WeakMap"), Kn = "[object Map]", Ic = "[object Object]", Gn = "[object Promise]", Xn = "[object Set]", Zn = "[object WeakMap]", Yn = "[object DataView]", Sc = Ne(zt), Ec = Ne(st), Tc = Ne(Vt), kc = Ne(qt), Pc = Ne(Kt), we = ut;
1004
+ var zt = Ue(be, "DataView"), Vt = Ue(be, "Promise"), qt = Ue(be, "Set"), Kt = Ue(be, "WeakMap"), Kn = "[object Map]", Ic = "[object Object]", Gn = "[object Promise]", Xn = "[object Set]", Zn = "[object WeakMap]", Yn = "[object DataView]", Ec = Ne(zt), Sc = Ne(st), Tc = Ne(Vt), kc = Ne(qt), Pc = Ne(Kt), we = ut;
1005
1005
  (zt && we(new zt(new ArrayBuffer(1))) != Yn || st && we(new st()) != Kn || Vt && we(Vt.resolve()) != Gn || qt && we(new qt()) != Xn || Kt && we(new Kt()) != Zn) && (we = function(n) {
1006
1006
  var e = ut(n), t = e == Ic ? n.constructor : void 0, o = t ? Ne(t) : "";
1007
1007
  if (o)
1008
1008
  switch (o) {
1009
- case Sc:
1010
- return Yn;
1011
1009
  case Ec:
1010
+ return Yn;
1011
+ case Sc:
1012
1012
  return Kn;
1013
1013
  case Tc:
1014
1014
  return Gn;
@@ -1104,9 +1104,9 @@ var ro = Ve && Ve.isMap, cl = ro ? dn(ro) : al, ll = "[object Set]";
1104
1104
  function ul(n) {
1105
1105
  return pt(n) && we(n) == ll;
1106
1106
  }
1107
- var so = Ve && Ve.isSet, dl = so ? dn(so) : ul, pl = 1, fl = 2, hl = 4, ir = "[object Arguments]", gl = "[object Array]", Al = "[object Boolean]", ml = "[object Date]", vl = "[object Error]", ar = "[object Function]", yl = "[object GeneratorFunction]", _l = "[object Map]", bl = "[object Number]", cr = "[object Object]", wl = "[object RegExp]", Cl = "[object Set]", Il = "[object String]", Sl = "[object Symbol]", El = "[object WeakMap]", Tl = "[object ArrayBuffer]", kl = "[object DataView]", Pl = "[object Float32Array]", Bl = "[object Float64Array]", Ol = "[object Int8Array]", Dl = "[object Int16Array]", $l = "[object Int32Array]", Ml = "[object Uint8Array]", Ll = "[object Uint8ClampedArray]", xl = "[object Uint16Array]", Rl = "[object Uint32Array]", W = {};
1108
- W[ir] = W[gl] = W[Tl] = W[kl] = W[Al] = W[ml] = W[Pl] = W[Bl] = W[Ol] = W[Dl] = W[$l] = W[_l] = W[bl] = W[cr] = W[wl] = W[Cl] = W[Il] = W[Sl] = W[Ml] = W[Ll] = W[xl] = W[Rl] = !0;
1109
- W[vl] = W[ar] = W[El] = !1;
1107
+ var so = Ve && Ve.isSet, dl = so ? dn(so) : ul, pl = 1, fl = 2, hl = 4, ir = "[object Arguments]", gl = "[object Array]", Al = "[object Boolean]", ml = "[object Date]", vl = "[object Error]", ar = "[object Function]", yl = "[object GeneratorFunction]", _l = "[object Map]", bl = "[object Number]", cr = "[object Object]", wl = "[object RegExp]", Cl = "[object Set]", Il = "[object String]", El = "[object Symbol]", Sl = "[object WeakMap]", Tl = "[object ArrayBuffer]", kl = "[object DataView]", Pl = "[object Float32Array]", Bl = "[object Float64Array]", Ol = "[object Int8Array]", Dl = "[object Int16Array]", $l = "[object Int32Array]", Ml = "[object Uint8Array]", Ll = "[object Uint8ClampedArray]", xl = "[object Uint16Array]", Rl = "[object Uint32Array]", J = {};
1108
+ J[ir] = J[gl] = J[Tl] = J[kl] = J[Al] = J[ml] = J[Pl] = J[Bl] = J[Ol] = J[Dl] = J[$l] = J[_l] = J[bl] = J[cr] = J[wl] = J[Cl] = J[Il] = J[El] = J[Ml] = J[Ll] = J[xl] = J[Rl] = !0;
1109
+ J[vl] = J[ar] = J[Sl] = !1;
1110
1110
  function mt(n, e, t, o, r, i) {
1111
1111
  var a, l = e & pl, c = e & fl, s = e & hl;
1112
1112
  if (a !== void 0)
@@ -1125,7 +1125,7 @@ function mt(n, e, t, o, r, i) {
1125
1125
  if (a = c || g ? {} : sl(n), !l)
1126
1126
  return c ? bc(n, pc(a, n)) : yc(n, ac(a, n));
1127
1127
  } else {
1128
- if (!W[b])
1128
+ if (!J[b])
1129
1129
  return r ? n : {};
1130
1130
  a = ol(n, b, l);
1131
1131
  }
@@ -1174,7 +1174,7 @@ const wt = (n, e = "") => {
1174
1174
  const r = n.slice(0, o), i = n.slice(o + 1);
1175
1175
  return i.length && (t = i[0]), t || r.length && (t = r[r.length - 1]), { index: o, target: t };
1176
1176
  }, Gt = (n) => {
1177
- const e = J().subAppList ?? [];
1177
+ const e = F().subAppList ?? [];
1178
1178
  let { index: t, target: o } = Hl(e, n);
1179
1179
  return e.splice(t, 1), e.length ? Ae([{ key: "subAppList", value: e }]) : ln(), le([
1180
1180
  { key: "currentCode", value: "" },
@@ -1246,7 +1246,7 @@ const wt = (n, e = "") => {
1246
1246
  let l = (e == null ? void 0 : e.code) ?? "";
1247
1247
  if (!l) return { menuConfig: [], currentApp: null, currentMenu: null, query: null };
1248
1248
  let c = [], s = [];
1249
- const u = J().subAppList ?? [];
1249
+ const u = F().subAppList ?? [];
1250
1250
  if (u.length && (c = ((v = u.find((p) => p.code === e.code)) == null ? void 0 : v.menus) ?? []), !c.length) {
1251
1251
  const { menus: p, originalMenus: d } = await mn(l);
1252
1252
  c = p ?? [], s = d ?? [];
@@ -1532,7 +1532,7 @@ const wt = (n, e = "") => {
1532
1532
  if (await o(), n()) return;
1533
1533
  await ii(), await si();
1534
1534
  const a = Yt();
1535
- So({ accessToken: a }), r.value = !0;
1535
+ Eo({ accessToken: a }), r.value = !0;
1536
1536
  }), {
1537
1537
  platformInited: r,
1538
1538
  initNextTick: i
@@ -1566,12 +1566,12 @@ const wt = (n, e = "") => {
1566
1566
  return await zr([ai, Kl, ru, lr, dr]).then((p) => Object.assign(v, ...p)), a.value = !1, v;
1567
1567
  }, g = T(!1);
1568
1568
  return D.nav.addEventListener("onBeforeMount", async () => {
1569
- var E;
1569
+ var S;
1570
1570
  await n();
1571
1571
  const v = await b();
1572
1572
  if (!v) return;
1573
1573
  const { homeConfig: y, projectConfig: p, currentProject: d, tenantList: m, personalMenuConfig: _ } = v;
1574
- u.value = ((E = Zt()) == null ? void 0 : E.flag) !== 4 && m && m.length > 1;
1574
+ u.value = ((S = Zt()) == null ? void 0 : S.flag) !== 4 && m && m.length > 1;
1575
1575
  const w = [...Oo];
1576
1576
  w.forEach((C) => {
1577
1577
  y != null && y.appAlias && C.value === ke && (C.label = y.appAlias), y != null && y.homeAlias && C.value === nt && (C.label = y.homeAlias);
@@ -1584,15 +1584,15 @@ const wt = (n, e = "") => {
1584
1584
  // 树打平之后保留的数据
1585
1585
  filterFlatCondition: (C) => C.type === 7
1586
1586
  }), D.nav.setProjects(p || []), d && D.nav.setActiveProject(d));
1587
- const k = Et() ?? {}, B = k != null && k.headPicture ? Xt(k.headPicture) : void 0;
1587
+ const k = St() ?? {}, B = k != null && k.headPicture ? Xt(k.headPicture) : void 0;
1588
1588
  c.value = [...hs], d && d.id !== 0 ? await o("personCenter", "", "/userInfo") || (c.value = c.value.filter((M) => M.value !== "1")) : c.value = c.value.filter((C) => C.value !== "1"), D.nav.setUserInfo({ headPicture: B, commandList: c.value }), D.nav.setSearchConfig({
1589
1589
  getHistoryList: r,
1590
1590
  getSearchList: i
1591
1591
  });
1592
- const S = J().subAppList ?? [];
1593
- S.length && (S.forEach((C) => {
1592
+ const E = F().subAppList ?? [];
1593
+ E.length && (E.forEach((C) => {
1594
1594
  C.menus = [], C.originalMenus = [];
1595
- }), Ae([{ key: "subAppList", value: S }])), g.value = !0;
1595
+ }), Ae([{ key: "subAppList", value: E }])), g.value = !0;
1596
1596
  }), { loading: a, innerPage: l, commandList: c, layoutInited: g, initNextTick: () => new Promise((v) => {
1597
1597
  const y = async () => {
1598
1598
  var m;
@@ -1617,7 +1617,7 @@ const wt = (n, e = "") => {
1617
1617
  }, wu = () => {
1618
1618
  const { entryMenu: n } = Ot();
1619
1619
  D.menu.addEventListener("onItemClick", async (e) => {
1620
- F.innerSet = !0;
1620
+ te.innerSet = !0;
1621
1621
  const t = ye(_t(e.applicationCode)).filter((o) => !o.disable && !o.expired).find((o) => o.code === e.code);
1622
1622
  if (!(t && !t.routeUrl)) {
1623
1623
  if (!t) {
@@ -1631,7 +1631,7 @@ const wt = (n, e = "") => {
1631
1631
  }, Cu = () => {
1632
1632
  const { changeApp: n, deleteApp: e, beforeEntryApp: t } = et();
1633
1633
  D.nav.addEventListener("onItemClick", async (r) => {
1634
- const i = J().currentSubAppCode ?? "";
1634
+ const i = F().currentSubAppCode ?? "";
1635
1635
  if (i !== r.code) {
1636
1636
  if (i && Ys(i), !r.fixed && !await t(r))
1637
1637
  throw new Error("取消切换");
@@ -1639,7 +1639,7 @@ const wt = (n, e = "") => {
1639
1639
  }
1640
1640
  }), D.nav.addEventListener("onItemRemove", (r) => {
1641
1641
  var s;
1642
- const i = J();
1642
+ const i = F();
1643
1643
  if (!((s = i.subAppList) != null && s.length) || i.subAppList.findIndex((u) => u.code === r.code) === -1) return;
1644
1644
  const c = (ce().tabMap[r.code] ?? []).map((u) => u.code);
1645
1645
  c && c.length && At(r.code, c), e(r);
@@ -1652,17 +1652,17 @@ const wt = (n, e = "") => {
1652
1652
  re(
1653
1653
  () => n.currentRoute.value,
1654
1654
  async (d) => {
1655
- var S, E, C, M, L, N, z;
1656
- const m = ((S = d.meta) == null ? void 0 : S.showLayout) ?? !0;
1657
- let _ = ((E = d.query) == null ? void 0 : E.showLayout) ?? !0;
1655
+ var E, S, C, M, L, N, W;
1656
+ const m = ((E = d.meta) == null ? void 0 : E.showLayout) ?? !0;
1657
+ let _ = ((S = d.query) == null ? void 0 : S.showLayout) ?? !0;
1658
1658
  if (_ === "false" && (_ = !1), !m || !_ || d.path === l && Nt(d.query, c)) return;
1659
1659
  l = qe(d.path), c = qe(d.query);
1660
- const w = J().currentSubAppCode ?? "";
1660
+ const w = F().currentSubAppCode ?? "";
1661
1661
  if (!w) return;
1662
1662
  const k = ((C = d.query) == null ? void 0 : C.menu) ?? ((M = ce()) == null ? void 0 : M.currentCode) ?? "";
1663
1663
  if (!k) return;
1664
1664
  const B = JSON.parse(sessionStorage.getItem("tabStyle") || "{}") || {};
1665
- B && JSON.stringify(B) !== "{}" && (r.value = (L = B[w][k]) != null && L.fontColor ? B[w][k].fontColor : e, i.value = (N = B[w][k]) != null && N.backgroundColor ? B[w][k].backgroundColor : t, a.value = (z = B[w][k]) != null && z.backgroundColor ? B[w][k].backgroundColor : o);
1665
+ B && JSON.stringify(B) !== "{}" && (r.value = (L = B[w][k]) != null && L.fontColor ? B[w][k].fontColor : e, i.value = (N = B[w][k]) != null && N.backgroundColor ? B[w][k].backgroundColor : t, a.value = (W = B[w][k]) != null && W.backgroundColor ? B[w][k].backgroundColor : o);
1666
1666
  }
1667
1667
  );
1668
1668
  const { deleteApp: s } = et(), { entryMenu: u } = Ot(), { reloadRoute: b, unloadRoute: g } = pr(), f = (d) => {
@@ -1674,13 +1674,13 @@ const wt = (n, e = "") => {
1674
1674
  const m = d.map((_) => _.path);
1675
1675
  g(m);
1676
1676
  }, y = (d) => {
1677
- const m = J().currentSubAppCode ?? "";
1678
- F.innerSet = !0;
1677
+ const m = F().currentSubAppCode ?? "";
1678
+ te.innerSet = !0;
1679
1679
  const _ = ce(), w = _.tabMap[m], k = w.findIndex((L) => L.code === d.data.code);
1680
1680
  if (k === -1) return;
1681
1681
  const B = () => {
1682
- var z;
1683
- let N = (((z = J().appcategorys) == null ? void 0 : z.map((ie) => ie.apps).flat()) ?? []).find((ie) => ie.code === m);
1682
+ var W;
1683
+ let N = (((W = F().appcategorys) == null ? void 0 : W.map((ie) => ie.apps).flat()) ?? []).find((ie) => ie.code === m);
1684
1684
  N = { ...N, value: N.code, label: N.name }, s(N), D.nav.removeItem(m);
1685
1685
  };
1686
1686
  ({
@@ -1690,8 +1690,8 @@ const wt = (n, e = "") => {
1690
1690
  return;
1691
1691
  }
1692
1692
  const N = _.currentCode;
1693
- let z = null;
1694
- N === L.value && (k + 1 === w.length ? w[k - 1] && (z = w[k - 1]) : w[k + 1] && (z = w[k + 1])), w.splice(k, 1), v([L]), le([{ key: `tabMap:${m}`, value: w }]), z ? f(z) : le([{ key: `preTab:${m}`, value: {} }]);
1693
+ let W = null;
1694
+ N === L.value && (k + 1 === w.length ? w[k - 1] && (W = w[k - 1]) : w[k + 1] && (W = w[k + 1])), w.splice(k, 1), v([L]), le([{ key: `tabMap:${m}`, value: w }]), W ? f(W) : le([{ key: `preTab:${m}`, value: {} }]);
1695
1695
  },
1696
1696
  all: B,
1697
1697
  other: async (L) => {
@@ -1700,24 +1700,24 @@ const wt = (n, e = "") => {
1700
1700
  path: `/${N.applicationPath}${N.path}`.replace(/\/\//g, "/"),
1701
1701
  query: N.query
1702
1702
  }), D.menu.setActiveItem(N.menuId), D.tab.setActiveItem(N.code);
1703
- const z = w.filter((ie) => ie.code !== L.value);
1704
- z.forEach((ie) => D.tab.removeItem(ie.code)), v(z), le([{ key: `tabMap:${m}`, value: [N] }]), f(N);
1703
+ const W = w.filter((ie) => ie.code !== L.value);
1704
+ W.forEach((ie) => D.tab.removeItem(ie.code)), v(W), le([{ key: `tabMap:${m}`, value: [N] }]), f(N);
1705
1705
  },
1706
1706
  right: async (L) => {
1707
1707
  const N = _.currentCode;
1708
- if (N !== L.value && w.findIndex((Ee) => Ee.code === N) > k) {
1709
- const Ee = w[k];
1710
- f(Ee);
1708
+ if (N !== L.value && w.findIndex((Se) => Se.code === N) > k) {
1709
+ const Se = w[k];
1710
+ f(Se);
1711
1711
  }
1712
- const z = w.slice(k + 1);
1713
- z.forEach((ie) => D.tab.removeItem(ie.code)), v(z), w.splice(k + 1), le([{ key: `tabMap:${m}`, value: w }]);
1712
+ const W = w.slice(k + 1);
1713
+ W.forEach((ie) => D.tab.removeItem(ie.code)), v(W), w.splice(k + 1), le([{ key: `tabMap:${m}`, value: w }]);
1714
1714
  }
1715
1715
  })[d.type](d.data);
1716
1716
  };
1717
1717
  D.tab.addEventListener("onItemClick", async (d) => {
1718
- ce().currentCode !== d.currentCode && (F.innerSet = !0, f(d));
1718
+ ce().currentCode !== d.currentCode && (te.innerSet = !0, f(d));
1719
1719
  }), D.tab.addEventListener("onItemRemove", (d) => {
1720
- const m = ce(), _ = J().currentSubAppCode ?? "";
1720
+ const m = ce(), _ = F().currentSubAppCode ?? "";
1721
1721
  m.tabMap[_].findIndex((B) => B.code === d.code) !== -1 && (At(d.applicationCode, [d.code]), y({ type: "me", data: d }));
1722
1722
  }), D.tab.addEventListener("onMenuClick", (d) => {
1723
1723
  let m = [];
@@ -1744,9 +1744,9 @@ const wt = (n, e = "") => {
1744
1744
  });
1745
1745
  const { enter: p } = lt();
1746
1746
  return D.tab.addEventListener("onToggleFullScreen", p), { fontColor: r, backgroudColor: i, borderColor: a };
1747
- }, Qt = He(), co = (Qt == null ? void 0 : Qt.isAutoCloseApp) ?? !0, lo = location.href.includes("showLayout=false"), uo = window.self !== window.top, Su = () => {
1747
+ }, Qt = He(), co = (Qt == null ? void 0 : Qt.isAutoCloseApp) ?? !0, lo = location.href.includes("showLayout=false"), uo = window.self !== window.top, Eu = () => {
1748
1748
  const n = () => {
1749
- te.unloadAllMicroApp(), D.nav.setItems([]), D.menu.setItems([]), D.tab.setItems([]), jo();
1749
+ X.unloadAllMicroApp(), D.nav.setItems([]), D.menu.setItems([]), D.tab.setItems([]), jo();
1750
1750
  };
1751
1751
  window.addEventListener("beforeunload", function(e) {
1752
1752
  if (!(lo || !co || uo) && window.__isAutoCloseApp) {
@@ -1760,9 +1760,11 @@ const wt = (n, e = "") => {
1760
1760
  window.__isAutoCloseApp = !0;
1761
1761
  return;
1762
1762
  }
1763
- const t = J();
1763
+ const t = F();
1764
1764
  t.subAppList && t.subAppList.length && sessionStorage.setItem("has-subapp", "true"), n();
1765
- }), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`), sessionStorage.removeItem("has-subapp"));
1765
+ }), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`), sessionStorage.removeItem("has-subapp")), X.addEventListenerFromMicroApp("system-reload", () => {
1766
+ n(), window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`);
1767
+ });
1766
1768
  }, et = () => {
1767
1769
  const n = Ge(), { entryMenu: e } = Ot(), { unloadRoute: t } = pr();
1768
1770
  let { mainAppName: o = "", microAppName: r = "", microApps: i = [] } = He();
@@ -1771,7 +1773,7 @@ const wt = (n, e = "") => {
1771
1773
  D.menu.setItems([]), D.menu.setActiveItem(""), D.tab.setItems([]), D.tab.setActiveItem("");
1772
1774
  }, c = async (g) => {
1773
1775
  if (g.routeUrl && !a.includes(g.routeUrl)) return !0;
1774
- const f = g.code ?? "", y = (J().subAppList ?? []).find((w) => w.code === f);
1776
+ const f = g.code ?? "", y = (F().subAppList ?? []).find((w) => w.code === f);
1775
1777
  let p = [], d = [], m = !1;
1776
1778
  if (y && (p = y.menus ?? []), !p.length) {
1777
1779
  const { menus: w, originalMenus: k, err: B } = await mn(f);
@@ -1782,20 +1784,20 @@ const wt = (n, e = "") => {
1782
1784
  const _ = { ...g, menus: p, originalMenus: d };
1783
1785
  return Ae([{ key: "subAppList", value: _ }]), !0;
1784
1786
  }, s = async (g) => {
1785
- var N, z, ie, Ee, ft;
1787
+ var N, W, ie, Se, ft;
1786
1788
  const { microApp: f = null, menuCode: v = "", menuPath: y = "", route: p = {} } = g;
1787
1789
  let d = p;
1788
1790
  if (l(), !f && y) {
1789
- if (!(a && a.find((X) => y.startsWith("/" + X) || y.startsWith(X)))) return;
1790
- F.innerSet && n.push({ path: y, query: d.query });
1791
+ if (!(a && a.find((G) => y.startsWith("/" + G) || y.startsWith(G)))) return;
1792
+ n.push({ path: y, query: d.query });
1791
1793
  return;
1792
1794
  }
1793
1795
  const m = ((N = d.meta) == null ? void 0 : N.showLayout) ?? !0;
1794
- let _ = ((z = d.query) == null ? void 0 : z.showLayout) ?? !0;
1796
+ let _ = ((W = d.query) == null ? void 0 : W.showLayout) ?? !0;
1795
1797
  _ === "false" && (_ = !1);
1796
1798
  const w = (f == null ? void 0 : f.openType) ?? 1, k = (f == null ? void 0 : f.type) ?? 1;
1797
1799
  if (f.routeUrl && !a.includes(f.routeUrl)) {
1798
- const oe = ((ie = J()) == null ? void 0 : ie.subAppList) ?? [];
1800
+ const oe = ((ie = F()) == null ? void 0 : ie.subAppList) ?? [];
1799
1801
  if ((oe == null ? void 0 : oe.find((fe) => fe.code === f.code)) || oe == null || oe.push(f), Ae([
1800
1802
  { key: "currentSubApp", value: f },
1801
1803
  { key: "currentSubAppCode", value: f.code },
@@ -1803,13 +1805,13 @@ const wt = (n, e = "") => {
1803
1805
  ]), oe.forEach((fe) => {
1804
1806
  const Oe = { ...fe, value: fe.code, label: fe.name };
1805
1807
  D.nav.appendItem(Oe);
1806
- }), D.nav.setActiveItem(f.code), te.hideAllMicroApp(), f.routeUrl.includes("entrance=main")) {
1807
- F.innerSet && n.push({ path: f.routeUrl, query: { ...d.query, app: f.code } });
1808
+ }), D.nav.setActiveItem(f.code), X.hideAllMicroApp(), f.routeUrl.includes("entrance=main")) {
1809
+ n.push({ path: f.routeUrl, query: { ...d.query, app: f.code } });
1808
1810
  return;
1809
1811
  }
1810
1812
  if (w === 1 && k === 2) {
1811
1813
  const fe = Wt(Ut(Ft(f.routeUrl)));
1812
- F.innerSet && n.push({
1814
+ n.push({
1813
1815
  path: Je,
1814
1816
  query: {
1815
1817
  ...d.query,
@@ -1822,25 +1824,25 @@ const wt = (n, e = "") => {
1822
1824
  }
1823
1825
  const {
1824
1826
  menuConfig: B = [],
1825
- currentApp: S = null,
1826
- currentMenu: E = null,
1827
+ currentApp: E = null,
1828
+ currentMenu: S = null,
1827
1829
  microPath: C = "",
1828
1830
  query: M = {}
1829
1831
  } = await Fl({ microApp: f, menuCode: v, menuPath: y, route: d });
1830
- if (E && (d = {
1831
- path: C || `/${E.applicationPath}${E.routeUrl}`.replace(/\/\//g, "/"),
1832
- query: { ...M, app: E.applicationCode, menu: E.code },
1832
+ if (S && (d = {
1833
+ path: C || `/${S.applicationPath}${S.routeUrl}`.replace(/\/\//g, "/"),
1834
+ query: { ...M, app: S.applicationCode, menu: S.code },
1833
1835
  meta: { ...(d == null ? void 0 : d.meta) ?? {} }
1834
- }), S && (S == null ? void 0 : S.code) !== (f == null ? void 0 : f.code)) {
1835
- if (S.fixed && (D.menu.setItems([]), D.tab.setItems([]), F.innerSet && n.push(S.path), D.nav.setActiveItem(S.path), te.hideAllMicroApp()), !S.fixed) {
1836
- const oe = (Ee = J().subAppList) == null ? void 0 : Ee.find((Oe) => Oe.code === S.code), X = ce().preTab[S.code], fe = { ...(X == null ? void 0 : X.query) ?? {} };
1837
- await s({ microApp: oe, menuCode: (X == null ? void 0 : X.code) ?? "", route: { query: fe } });
1836
+ }), E && (E == null ? void 0 : E.code) !== (f == null ? void 0 : f.code)) {
1837
+ if (E.fixed && (D.menu.setItems([]), D.tab.setItems([]), n.push(E.path), D.nav.setActiveItem(E.path), X.hideAllMicroApp()), !E.fixed) {
1838
+ const oe = (Se = F().subAppList) == null ? void 0 : Se.find((Oe) => Oe.code === E.code), G = ce().preTab[E.code], fe = { ...(G == null ? void 0 : G.query) ?? {} };
1839
+ await s({ microApp: oe, menuCode: (G == null ? void 0 : G.code) ?? "", route: { query: fe } });
1838
1840
  }
1839
1841
  return;
1840
1842
  }
1841
- const L = S || f;
1842
- if (!E && y) {
1843
- F.innerSet && n.push({
1843
+ const L = E || f;
1844
+ if (!S && y) {
1845
+ n.push({
1844
1846
  path: y,
1845
1847
  query: {
1846
1848
  ...d.query,
@@ -1850,34 +1852,34 @@ const wt = (n, e = "") => {
1850
1852
  return;
1851
1853
  }
1852
1854
  if (m && _) {
1853
- (ft = J().subAppList) == null || ft.forEach((X) => {
1854
- const fe = { ...X, value: X.code, label: X.name };
1855
+ (ft = F().subAppList) == null || ft.forEach((G) => {
1856
+ const fe = { ...G, value: G.code, label: G.name };
1855
1857
  D.nav.appendItem(fe);
1856
1858
  }), D.nav.setActiveItem(L.code), D.menu.setItems(B);
1857
1859
  const oe = ce().tabMap[L.code] ?? [];
1858
- oe.length && oe.forEach((X) => {
1860
+ oe.length && oe.forEach((G) => {
1859
1861
  D.tab.appendItem({
1860
- ...X,
1861
- value: X.code,
1862
- label: X.name
1862
+ ...G,
1863
+ value: G.code,
1864
+ label: G.name
1863
1865
  });
1864
1866
  });
1865
1867
  }
1866
- e({ currentMenu: E, microPath: C, route: d });
1868
+ e({ currentMenu: S, microPath: C, route: d });
1867
1869
  }, u = async (g) => {
1868
1870
  var f;
1869
- if (F.innerSet = !0, g.fixed) {
1870
- D.menu.setItems([]), D.tab.setItems([]), F.innerSet && n.push(g.path), D.nav.setActiveItem(g.path), Ae([
1871
+ if (te.innerSet = !0, g.fixed) {
1872
+ D.menu.setItems([]), D.tab.setItems([]), n.push(g.path), D.nav.setActiveItem(g.path), Ae([
1871
1873
  { key: "currentSubAppCode", value: "" },
1872
1874
  { key: "currentSubApp", value: {} }
1873
1875
  ]), le([
1874
1876
  { key: "currentCode", value: "" },
1875
1877
  { key: "currentTab", value: {} }
1876
- ]), te.hideAllMicroApp();
1878
+ ]), X.hideAllMicroApp();
1877
1879
  return;
1878
1880
  }
1879
1881
  if (!g.fixed) {
1880
- const v = (f = J().subAppList) == null ? void 0 : f.find((m) => m.code === g.code), y = ce().preTab[g.code], p = (y == null ? void 0 : y.code) ?? "", d = { ...(y == null ? void 0 : y.query) ?? {} };
1882
+ const v = (f = F().subAppList) == null ? void 0 : f.find((m) => m.code === g.code), y = ce().preTab[g.code], p = (y == null ? void 0 : y.code) ?? "", d = { ...(y == null ? void 0 : y.query) ?? {} };
1881
1883
  await s({ microApp: v, menuCode: p, route: { query: d } });
1882
1884
  }
1883
1885
  };
@@ -1887,7 +1889,7 @@ const wt = (n, e = "") => {
1887
1889
  changeApp: u,
1888
1890
  deleteApp: async (g) => {
1889
1891
  var d;
1890
- const f = J();
1892
+ const f = F();
1891
1893
  if (!((d = f.subAppList) != null && d.length)) return;
1892
1894
  const v = f.subAppList.findIndex((m) => m.code === g.code);
1893
1895
  if (v === -1) return;
@@ -1906,7 +1908,7 @@ const wt = (n, e = "") => {
1906
1908
  }
1907
1909
  if (!f.subAppList.length) {
1908
1910
  const m = Oo[1];
1909
- D.menu.setItems([]), D.tab.setItems([]), te.unloadAllMicroApp(), u(m), ln(), Ro();
1911
+ D.menu.setItems([]), D.tab.setItems([]), X.unloadAllMicroApp(), u(m), ln(), Ro();
1910
1912
  }
1911
1913
  }
1912
1914
  };
@@ -1923,18 +1925,18 @@ const wt = (n, e = "") => {
1923
1925
  if (u === 1)
1924
1926
  if (b === 1)
1925
1927
  if (a.routeUrl.startsWith(Je)) {
1926
- te.hideAllMicroApp(), g = Je;
1928
+ X.hideAllMicroApp(), g = Je;
1927
1929
  const p = Vr(a.routeUrl, "iframeSrc");
1928
- s = { ...s, iframeSrc: p }, F.innerSet && n.push({ path: g, query: s });
1929
- } else a.applicationPath && (g = c || a.routeUrl, g = `/${a.applicationPath}${g}`.replace(/\/\//g, "/"), F.innerSet && n.push({ path: g, query: s }));
1930
+ s = { ...s, iframeSrc: p }, n.push({ path: g, query: s });
1931
+ } else a.applicationPath && (g = c || a.routeUrl, g = `/${a.applicationPath}${g}`.replace(/\/\//g, "/"), n.push({ path: g, query: s }));
1930
1932
  else {
1931
- te.hideAllMicroApp(), g = Je;
1933
+ X.hideAllMicroApp(), g = Je;
1932
1934
  const p = Wt(Ut(Ft(a.routeUrl)));
1933
- s = { ...s, iframeSrc: p }, F.innerSet && n.push({ path: g, query: s });
1935
+ s = { ...s, iframeSrc: p }, n.push({ path: g, query: s });
1934
1936
  }
1935
1937
  if (u === 2) {
1936
1938
  let p = b === 1 ? `/${a.applicationPath}${a.routeUrl}`.replace(/\/\//g, "/") : a.routeUrl;
1937
- p = Wt(Ut(Ft(p))), F.innerSet ? (te.hideAllMicroApp(), g = Do, F.innerSet && n.push({ path: g, query: s }), p && window.open(p, "_blank")) : b === 1 && (g = p, s = { ...s, showLayout: !1 }, F.innerSet && n.push({
1939
+ p = Wt(Ut(Ft(p))), te.innerSet ? (X.hideAllMicroApp(), g = Do, n.push({ path: g, query: s }), p && window.open(p, "_blank")) : b === 1 && (g = p, s = { ...s, showLayout: !1 }, n.push({
1938
1940
  path: g,
1939
1941
  query: s
1940
1942
  }));
@@ -1943,7 +1945,7 @@ const wt = (n, e = "") => {
1943
1945
  let v = (s == null ? void 0 : s.showLayout) ?? !0;
1944
1946
  if (v === "false" && (v = !1), f && v) {
1945
1947
  const p = {
1946
- currentApplication: J().currentSubApp.routeUrl,
1948
+ currentApplication: F().currentSubApp.routeUrl,
1947
1949
  applicationPath: a.applicationPath,
1948
1950
  applicationCode: a.applicationCode,
1949
1951
  menuId: a.id,
@@ -1976,32 +1978,32 @@ const wt = (n, e = "") => {
1976
1978
  ]);
1977
1979
  }
1978
1980
  } };
1979
- }, Eu = (n, e, t) => {
1981
+ }, Su = (n, e, t) => {
1980
1982
  const { entryApp: o } = et(), r = Ge(), i = async (c) => {
1981
1983
  var _, w, k, B;
1982
1984
  let s = { ...c }, { showLayout: u = !0 } = s.query;
1983
1985
  u === "false" && (u = !1);
1984
1986
  const b = async () => {
1985
1987
  var C, M;
1986
- let S = J().appcategorys ?? [];
1987
- if (!Array.isArray(S)) return [];
1988
+ let E = F().appcategorys ?? [];
1989
+ if (!Array.isArray(E)) return [];
1988
1990
  if (s.query) {
1989
1991
  const L = ((C = s.query) == null ? void 0 : C.project) ?? ((M = s.query) == null ? void 0 : M.projectId) ?? "";
1990
- if (!S.length || L && L !== Pe().id) {
1992
+ if (!E.length || L && L !== Pe().id) {
1991
1993
  await e();
1992
1994
  const { navConfig: N } = await lr();
1993
- N && (S = N);
1995
+ N && (E = N);
1994
1996
  }
1995
1997
  }
1996
- return S.map((L) => L.apps).flat() ?? [];
1997
- }, g = He().microApps ?? [], f = g.filter((S) => S.public);
1998
+ return E.map((L) => L.apps).flat() ?? [];
1999
+ }, g = He().microApps ?? [], f = g.filter((E) => E.public);
1998
2000
  if (f.length) {
1999
- const S = f.find(
2000
- (E) => s.path.startsWith("/" + E.name) || s.path.startsWith(E.name)
2001
+ const E = f.find(
2002
+ (S) => s.path.startsWith("/" + S.name) || s.path.startsWith(S.name)
2001
2003
  );
2002
- if (S) {
2004
+ if (E) {
2003
2005
  o({
2004
- microApp: { routeUrl: S.name, code: "" },
2006
+ microApp: { routeUrl: E.name, code: "" },
2005
2007
  menuCode: s.query.menu,
2006
2008
  menuPath: s.path,
2007
2009
  route: s
@@ -2009,12 +2011,12 @@ const wt = (n, e = "") => {
2009
2011
  return;
2010
2012
  }
2011
2013
  }
2012
- const v = await b(), y = v.map((S) => S.code), p = ((_ = s.query) == null ? void 0 : _.app) ?? "", d = ((w = J()) == null ? void 0 : w.subAppList) ?? [];
2014
+ const v = await b(), y = v.map((E) => E.code), p = ((_ = s.query) == null ? void 0 : _.app) ?? "", d = ((w = F()) == null ? void 0 : w.subAppList) ?? [];
2013
2015
  if (d.length) {
2014
- const S = d.filter((C) => C.code !== p && !y.includes(C.code)), E = d.filter(
2016
+ const E = d.filter((C) => C.code !== p && !y.includes(C.code)), S = d.filter(
2015
2017
  (C) => p === C.code || y.includes(C.code)
2016
2018
  );
2017
- Ae([{ key: "subAppList", value: E }]), S && S.length && S.forEach((C) => {
2019
+ Ae([{ key: "subAppList", value: S }]), E && E.length && E.forEach((C) => {
2018
2020
  le([
2019
2021
  { key: `preTab:${C.code}`, value: {} },
2020
2022
  { key: `tabMap:${C.code}`, value: [] }
@@ -2022,27 +2024,27 @@ const wt = (n, e = "") => {
2022
2024
  });
2023
2025
  }
2024
2026
  if (s.query.app) {
2025
- let S = v.find((E) => E.code === s.query.app);
2026
- if (!S && u) {
2027
- const { currentApp: E } = Gt(s.query.app);
2028
- if (E) {
2029
- S = E;
2030
- const M = (ce().preTab ?? {})[S.code];
2027
+ let E = v.find((S) => S.code === s.query.app);
2028
+ if (!E && u) {
2029
+ const { currentApp: S } = Gt(s.query.app);
2030
+ if (S) {
2031
+ E = S;
2032
+ const M = (ce().preTab ?? {})[E.code];
2031
2033
  s = {}, M && (s.path = `/${M.applicationPath}${M.path}`.replace(/\/\//g, "/"), s.query = M.query);
2032
2034
  }
2033
2035
  }
2034
- S != null && S.fixed ? (D.menu.setItems([]), D.tab.setItems([]), r.push(S.path), D.nav.setActiveItem(S.path), te.hideAllMicroApp()) : o({ microApp: S, menuCode: s.query.menu, menuPath: s.path, route: s });
2036
+ E != null && E.fixed ? (D.menu.setItems([]), D.tab.setItems([]), r.push(E.path), D.nav.setActiveItem(E.path), X.hideAllMicroApp()) : o({ microApp: E, menuCode: s.query.menu, menuPath: s.path, route: s });
2035
2037
  return;
2036
2038
  } else {
2037
- const S = g && g.find(
2038
- (E) => s.path.startsWith("/" + E.name) || s.path.startsWith(E.name)
2039
+ const E = g && g.find(
2040
+ (S) => s.path.startsWith("/" + S.name) || s.path.startsWith(S.name)
2039
2041
  );
2040
- if (S) {
2041
- let E = v.find((C) => C.routeUrl === S.name);
2042
- E || (E = v.find(
2043
- (C) => (C == null ? void 0 : C.routePath) && C.routePath.length && C.routePath.includes(S.name)
2042
+ if (E) {
2043
+ let S = v.find((C) => C.routeUrl === E.name);
2044
+ S || (S = v.find(
2045
+ (C) => (C == null ? void 0 : C.routePath) && C.routePath.length && C.routePath.includes(E.name)
2044
2046
  )), o({
2045
- microApp: E,
2047
+ microApp: S,
2046
2048
  menuCode: s.query.menu,
2047
2049
  menuPath: s.path,
2048
2050
  route: s
@@ -2050,11 +2052,11 @@ const wt = (n, e = "") => {
2050
2052
  return;
2051
2053
  }
2052
2054
  }
2053
- const m = n.value.find((S) => S.path === location.pathname);
2054
- m && D.nav.setActiveItem(m.path), (B = (k = J()) == null ? void 0 : k.subAppList) == null || B.forEach((S) => {
2055
- const E = { ...S, value: S.code, label: S.name };
2056
- D.nav.appendItem(E);
2057
- }), D.menu.setItems([]), D.tab.setItems([]), te.hideAllMicroApp(), Ae([
2055
+ const m = n.value.find((E) => E.path === location.pathname);
2056
+ m && D.nav.setActiveItem(m.path), (B = (k = F()) == null ? void 0 : k.subAppList) == null || B.forEach((E) => {
2057
+ const S = { ...E, value: E.code, label: E.name };
2058
+ D.nav.appendItem(S);
2059
+ }), D.menu.setItems([]), D.tab.setItems([]), X.hideAllMicroApp(), Ae([
2058
2060
  { key: "currentSubAppCode", value: "" },
2059
2061
  { key: "currentSubApp", value: {} }
2060
2062
  ]), le([
@@ -2067,8 +2069,8 @@ const wt = (n, e = "") => {
2067
2069
  () => r.currentRoute.value,
2068
2070
  async (c) => {
2069
2071
  if (!(c.path === a && Nt(c.query, l))) {
2070
- if (a = qe(c.path), l = qe(c.query), await t(), F.innerSet) {
2071
- F.innerSet = !1;
2072
+ if (a = qe(c.path), l = qe(c.query), await t(), te.innerSet) {
2073
+ te.innerSet = !1;
2072
2074
  return;
2073
2075
  }
2074
2076
  i(c);
@@ -2076,12 +2078,12 @@ const wt = (n, e = "") => {
2076
2078
  }
2077
2079
  );
2078
2080
  }, pr = () => ({ reloadRoute: (t) => {
2079
- F.excludeRoutes = Array.from(/* @__PURE__ */ new Set([...F.excludeRoutes, ...t])), F.routeKeepAliveVisible = !1, setTimeout(() => {
2080
- F.routeKeepAliveVisible = !0, F.excludeRoutes = [];
2081
+ te.excludeRoutes = Array.from(/* @__PURE__ */ new Set([...te.excludeRoutes, ...t])), te.routeKeepAliveVisible = !1, setTimeout(() => {
2082
+ te.routeKeepAliveVisible = !0, te.excludeRoutes = [];
2081
2083
  }, 300);
2082
2084
  }, unloadRoute: (t) => {
2083
- F.excludeRoutes = Array.from(/* @__PURE__ */ new Set([...F.excludeRoutes, ...t])), F.routeKeepAliveVisible = !1, setTimeout(() => {
2084
- F.routeKeepAliveVisible = !0, F.excludeRoutes = [];
2085
+ te.excludeRoutes = Array.from(/* @__PURE__ */ new Set([...te.excludeRoutes, ...t])), te.routeKeepAliveVisible = !1, setTimeout(() => {
2086
+ te.routeKeepAliveVisible = !0, te.excludeRoutes = [];
2085
2087
  }, 100);
2086
2088
  } }), Tu = () => {
2087
2089
  const n = jr(), e = mu(), t = He(), o = {
@@ -2101,7 +2103,7 @@ const wt = (n, e = "") => {
2101
2103
  const s = Object.keys(c).map((b) => `${b}=${c[b]}`).join("&"), u = `${t.baseURL}${o.logout}?${s}`;
2102
2104
  window.__isAutoCloseApp = !1, location.replace(u), sessionStorage.clear(), Yr(), localStorage.removeItem("idelTime");
2103
2105
  }, { entryApp: i } = et(), a = async () => {
2104
- const l = "personCenter", s = (J().appcategorys || []).map((v) => v.apps).flat(), { originalMenus: u = [] } = await mn(l), g = ye(u).filter((v) => v.isMenu && v.routeUrl).find((v) => v.routeUrl === "/userInfo");
2106
+ const l = "personCenter", s = (F().appcategorys || []).map((v) => v.apps).flat(), { originalMenus: u = [] } = await mn(l), g = ye(u).filter((v) => v.isMenu && v.routeUrl).find((v) => v.routeUrl === "/userInfo");
2105
2107
  if (g != null && g.disable || g != null && g.expired) {
2106
2108
  const { title: v, content: y, desc: p } = await vn(g);
2107
2109
  await rt({ title: v, content: y, desc: p });
@@ -2122,9 +2124,9 @@ const wt = (n, e = "") => {
2122
2124
  $changePwd: n,
2123
2125
  $personSetDialog: e
2124
2126
  };
2125
- }, ku = Eo.get("/convert/tenant"), Pu = en.get("/platform/withdefault"), fr = () => {
2127
+ }, ku = So.get("/convert/tenant"), Pu = en.get("/platform/withdefault"), fr = () => {
2126
2128
  const n = He(), e = T(!1), t = T(""), o = T(""), r = () => {
2127
- t.value = Et().id, o.value = Co().tenantId, e.value = !0;
2129
+ t.value = St().id, o.value = Co().tenantId, e.value = !0;
2128
2130
  };
2129
2131
  D.nav.addEventListener("changeEnterpriseHandle", () => {
2130
2132
  r();
@@ -2146,7 +2148,7 @@ const wt = (n, e = "") => {
2146
2148
  refreshToken: b,
2147
2149
  info: s
2148
2150
  };
2149
- ts().save(d), So(d);
2151
+ ts().save(d), Eo(d);
2150
2152
  const m = {
2151
2153
  id: f,
2152
2154
  name: v,
@@ -2194,7 +2196,7 @@ const wt = (n, e = "") => {
2194
2196
  return;
2195
2197
  }
2196
2198
  await $u().run({ searchVal: i, clickData: r });
2197
- const s = ((J().appcategorys ?? []).map((u) => u.apps).flat() ?? []).find((u) => u.code === r.applicationCode);
2199
+ const s = ((F().appcategorys ?? []).map((u) => u.apps).flat() ?? []).find((u) => u.code === r.applicationCode);
2198
2200
  s && (t({ microApp: s, menuCode: r.code }), a());
2199
2201
  }), D.nav.addEventListener("deleteSearchItem", async (o) => {
2200
2202
  const { value: r, cb: i } = o;
@@ -2206,14 +2208,14 @@ const wt = (n, e = "") => {
2206
2208
  getHistoryList: n,
2207
2209
  getSearchList: e
2208
2210
  };
2209
- }, F = yo({
2211
+ }, te = yo({
2210
2212
  /** 菜单或者应用跳转是否通过触发界面调用的 */
2211
2213
  innerSet: !1,
2212
2214
  excludeRoutes: [],
2213
2215
  routeKeepAliveVisible: !0
2214
2216
  }), Ru = () => {
2215
- te.addEventListenerFromMicroApp("iot:change-instance", (n) => {
2216
- const e = J(), t = e.currentSubAppCode;
2217
+ X.addEventListenerFromMicroApp("iot:change-instance", (n) => {
2218
+ const e = F(), t = e.currentSubAppCode;
2217
2219
  let o = _t(t);
2218
2220
  o.forEach((i) => {
2219
2221
  i.fixed && (i.name = n.data.instanceInfo.instanceName);
@@ -2234,27 +2236,27 @@ const wt = (n, e = "") => {
2234
2236
  });
2235
2237
  }, Qu = (n) => {
2236
2238
  ["personcenter", "rightmanage"].forEach((t) => {
2237
- te.addEventListenerFromMicroApp(`${t}:change-userinfo`, (o) => {
2239
+ X.addEventListenerFromMicroApp(`${t}:change-userinfo`, (o) => {
2238
2240
  const { userInfo: r } = o.data, i = r != null && r.headPicture ? Xt(r.headPicture) : void 0;
2239
2241
  D.nav.setUserInfo({ headPicture: i, commandList: n.value }), sessionStorage.setItem("userInfo", JSON.stringify(r));
2240
2242
  });
2241
2243
  });
2242
2244
  }, ju = () => {
2243
- te.addEventListenerFromMicroApp("devicePanelShow", (n) => {
2245
+ X.addEventListenerFromMicroApp("devicePanelShow", (n) => {
2244
2246
  const { deviceId: e = "", panelCode: t = "", deviceName: o = "", x: r = 0, y: i = 0, isCenter: a = !1 } = n.data;
2245
2247
  ko(e, t, o, r, i, a);
2246
- }), te.addEventListenerFromMicroApp("closeDevicePanel", (n) => {
2248
+ }), X.addEventListenerFromMicroApp("closeDevicePanel", (n) => {
2247
2249
  rs();
2248
- }), te.addEventListenerFromMicroApp("alarmDevicePanelShow", (n) => {
2250
+ }), X.addEventListenerFromMicroApp("alarmDevicePanelShow", (n) => {
2249
2251
  const { deviceId: e = "", panelCode: t = "", alarmTime: o = "" } = n.data;
2250
2252
  ss(e, t, o);
2251
- }), te.addEventListenerFromMicroApp("closeAlarmPanel", (n) => {
2253
+ }), X.addEventListenerFromMicroApp("closeAlarmPanel", (n) => {
2252
2254
  is();
2253
2255
  });
2254
2256
  }, Hu = nn.get("/platform/login/pwd-advance-notify-check"), Nu = () => {
2255
2257
  const n = T([]), e = T(null), t = T([]), { entryApp: o } = bt.hooks.useEntryApp(), r = () => {
2256
2258
  var c;
2257
- const l = (((c = J().appcategorys) == null ? void 0 : c.map((s) => s.apps).flat()) ?? []).find((s) => s.code === "messagecenter");
2259
+ const l = (((c = F().appcategorys) == null ? void 0 : c.map((s) => s.apps).flat()) ?? []).find((s) => s.code === "messagecenter");
2258
2260
  l && o({ microApp: l });
2259
2261
  }, i = () => {
2260
2262
  e.value = new an({
@@ -2264,7 +2266,7 @@ const wt = (n, e = "") => {
2264
2266
  await Hu().run();
2265
2267
  },
2266
2268
  message: async (a) => {
2267
- if (te.sendMessageToMicroApp("enterpriseadmin/messagecenter", "message", { msgList: a }), window.self !== window.top) return;
2269
+ if (X.sendMessageToMicroApp("enterpriseadmin/messagecenter", "message", { msgList: a }), window.self !== window.top) return;
2268
2270
  const c = Pe().id;
2269
2271
  n.value = a.filter(
2270
2272
  (s) => s.projectId === c || s.projectId === 0 || s.projectId === "0"
@@ -2301,7 +2303,7 @@ const wt = (n, e = "") => {
2301
2303
  };
2302
2304
  Qe(async () => {
2303
2305
  await Tt(), i();
2304
- }), St(() => {
2306
+ }), Et(() => {
2305
2307
  e.value && e.value.disconnect(), e.value = null;
2306
2308
  });
2307
2309
  }, Uu = "v1", Fu = Xe(`/api/enterpriseright/permission/${Uu}`), hr = Xe("/api/intelligent-security/video/v1", Wu), Ju = rn.get("/permissionset/user-portal-menu");
@@ -2372,7 +2374,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2372
2374
  (H(!0), de(
2373
2375
  We,
2374
2376
  null,
2375
- _o(t.gridNum, (l, c) => (H(), q(Ku, {
2377
+ _o(t.gridNum, (l, c) => (H(), V(Ku, {
2376
2378
  active: !1,
2377
2379
  "grid-num": t.gridNum,
2378
2380
  onItemClick: (s) => r(c)
@@ -2549,8 +2551,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2549
2551
  w == null || w.drawImage(c.value, 0, 0, _.width, _.height);
2550
2552
  const k = _.toDataURL("image/jpg"), B = `【${t.title}】${Jt().format("YYYYMMDDHHmmss").toString()}.jpg`;
2551
2553
  if (v.value = k, "download" in document.createElement("a")) {
2552
- const S = document.createElement("a");
2553
- S.download = B, S.style.display = "none", S.href = k, document.body.appendChild(S), document.body.appendChild(_), S.click(), URL.revokeObjectURL(S.href), document.body.removeChild(S), document.body.removeChild(_);
2554
+ const E = document.createElement("a");
2555
+ E.download = B, E.style.display = "none", E.href = k, document.body.appendChild(E), document.body.appendChild(_), E.click(), URL.revokeObjectURL(E.href), document.body.removeChild(E), document.body.removeChild(_);
2554
2556
  }
2555
2557
  }
2556
2558
  }, p = (_) => {
@@ -2623,7 +2625,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2623
2625
  U(' <das-icon class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
2624
2626
  ])
2625
2627
  ]),
2626
- t.videoUrl && u.value ? (H(), q(A(cs), {
2628
+ t.videoUrl && u.value ? (H(), V(A(cs), {
2627
2629
  key: 0,
2628
2630
  type: "flv",
2629
2631
  ref_key: "dasLivePlayerRef",
@@ -2664,12 +2666,12 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2664
2666
  _: 1
2665
2667
  /* STABLE */
2666
2668
  }),
2667
- m("control") ? (H(), q(A(ae), {
2669
+ m("control") ? (H(), V(A(ae), {
2668
2670
  key: 0,
2669
2671
  content: "聚焦-"
2670
2672
  }, {
2671
2673
  default: x(() => [
2672
- ["live", "polling"].includes(t.type) ? (H(), q(A(De), {
2674
+ ["live", "polling"].includes(t.type) ? (H(), V(A(De), {
2673
2675
  key: 0,
2674
2676
  class: "icon icon-shrink",
2675
2677
  icon: "shrink",
@@ -2679,12 +2681,12 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2679
2681
  _: 1
2680
2682
  /* STABLE */
2681
2683
  })) : U("v-if", !0),
2682
- m("control") ? (H(), q(A(ae), {
2684
+ m("control") ? (H(), V(A(ae), {
2683
2685
  key: 1,
2684
2686
  content: "聚焦+"
2685
2687
  }, {
2686
2688
  default: x(() => [
2687
- ["live", "polling"].includes(t.type) ? (H(), q(A(De), {
2689
+ ["live", "polling"].includes(t.type) ? (H(), V(A(De), {
2688
2690
  key: 0,
2689
2691
  class: "icon icon-enlarge",
2690
2692
  icon: "enlarge",
@@ -2694,12 +2696,12 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2694
2696
  _: 1
2695
2697
  /* STABLE */
2696
2698
  })) : U("v-if", !0),
2697
- m("control") ? (H(), q(A(ae), {
2699
+ m("control") ? (H(), V(A(ae), {
2698
2700
  key: 2,
2699
2701
  content: "方向控制"
2700
2702
  }, {
2701
2703
  default: x(() => [
2702
- ["live", "polling"].includes(t.type) ? (H(), q(A(De), {
2704
+ ["live", "polling"].includes(t.type) ? (H(), V(A(De), {
2703
2705
  key: 0,
2704
2706
  class: "icon icon-direction-control",
2705
2707
  icon: "direction-control",
@@ -2715,7 +2717,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2715
2717
  )
2716
2718
  ])
2717
2719
  ]),
2718
- a.value ? (H(), q(ed, {
2720
+ a.value ? (H(), V(ed, {
2719
2721
  key: 1,
2720
2722
  onChange: p
2721
2723
  })) : U("v-if", !0)
@@ -2847,7 +2849,7 @@ const Ad = /* @__PURE__ */ $(
2847
2849
  }
2848
2850
  return a;
2849
2851
  });
2850
- return (a, l) => (H(), q(A(sn), {
2852
+ return (a, l) => (H(), V(A(sn), {
2851
2853
  size: "mini",
2852
2854
  title: "视频监控",
2853
2855
  "custom-class": `das-linakge-video-dialog ${i.value}`,
@@ -2876,7 +2878,7 @@ const Ad = /* @__PURE__ */ $(
2876
2878
  })
2877
2879
  ]),
2878
2880
  default: x(() => [
2879
- t.value ? (H(), q(A(o), { key: 0 })) : U("v-if", !0)
2881
+ t.value ? (H(), V(A(o), { key: 0 })) : U("v-if", !0)
2880
2882
  ]),
2881
2883
  _: 1
2882
2884
  /* STABLE */
@@ -2931,7 +2933,7 @@ const Ad = /* @__PURE__ */ $(
2931
2933
  };
2932
2934
  return Qe(async () => {
2933
2935
  await Tt(), r();
2934
- }), St(() => {
2936
+ }), Et(() => {
2935
2937
  t.value && t.value.disconnect(), t.value = null;
2936
2938
  }), {
2937
2939
  gridNum: n,
@@ -3090,18 +3092,18 @@ class ee {
3090
3092
  throw new Error(`Unknown ${o} value: ${e}.`);
3091
3093
  }
3092
3094
  }
3093
- class G {
3095
+ class K {
3094
3096
  // react-native has a window but no document so we should check both
3095
3097
  static get isBrowser() {
3096
- return !G.isNode && typeof window == "object" && typeof window.document == "object";
3098
+ return !K.isNode && typeof window == "object" && typeof window.document == "object";
3097
3099
  }
3098
3100
  // WebWorkers don't have a window object so the isBrowser check would fail
3099
3101
  static get isWebWorker() {
3100
- return !G.isNode && typeof self == "object" && "importScripts" in self;
3102
+ return !K.isNode && typeof self == "object" && "importScripts" in self;
3101
3103
  }
3102
3104
  // react-native has a window but no document
3103
3105
  static get isReactNative() {
3104
- return !G.isNode && typeof window == "object" && typeof window.document > "u";
3106
+ return !K.isNode && typeof window == "object" && typeof window.document > "u";
3105
3107
  }
3106
3108
  // Node apps shouldn't have a window object, but WebWorkers don't either
3107
3109
  // so we need to check for both WebWorker and window
@@ -3111,9 +3113,9 @@ class G {
3111
3113
  }
3112
3114
  function ct(n, e) {
3113
3115
  let t = "";
3114
- return Re(n) ? (t = `Binary data of length ${n.byteLength}`, e && (t += `. Content: '${Sd(n)}'`)) : typeof n == "string" && (t = `String data of length ${n.length}`, e && (t += `. Content: '${n}'`)), t;
3116
+ return Re(n) ? (t = `Binary data of length ${n.byteLength}`, e && (t += `. Content: '${Ed(n)}'`)) : typeof n == "string" && (t = `String data of length ${n.length}`, e && (t += `. Content: '${n}'`)), t;
3115
3117
  }
3116
- function Sd(n) {
3118
+ function Ed(n) {
3117
3119
  const e = new Uint8Array(n);
3118
3120
  let t = "";
3119
3121
  return e.forEach((o) => {
@@ -3137,7 +3139,7 @@ async function mr(n, e, t, o, r, i) {
3137
3139
  });
3138
3140
  n.log(h.Trace, `(${e} transport) request complete. Response status: ${u.statusCode}.`);
3139
3141
  }
3140
- function Ed(n) {
3142
+ function Sd(n) {
3141
3143
  return n === void 0 ? new It(h.Information) : n === null ? at.instance : n.log !== void 0 ? n : new It(n);
3142
3144
  }
3143
3145
  class Td {
@@ -3177,7 +3179,7 @@ class It {
3177
3179
  }
3178
3180
  function Ke() {
3179
3181
  let n = "X-SignalR-User-Agent";
3180
- return G.isNode && (n = "User-Agent"), [n, kd(Id, Pd(), Od(), Bd())];
3182
+ return K.isNode && (n = "User-Agent"), [n, kd(Id, Pd(), Od(), Bd())];
3181
3183
  }
3182
3184
  function kd(n, e, t, o) {
3183
3185
  let r = "Microsoft SignalR/";
@@ -3185,7 +3187,7 @@ function kd(n, e, t, o) {
3185
3187
  return r += `${i[0]}.${i[1]}`, r += ` (${n}; `, e && e !== "" ? r += `${e}; ` : r += "Unknown OS; ", r += `${t}`, o ? r += `; ${o}` : r += "; Unknown Runtime Version", r += ")", r;
3186
3188
  }
3187
3189
  function Pd() {
3188
- if (G.isNode)
3190
+ if (K.isNode)
3189
3191
  switch (process.platform) {
3190
3192
  case "win32":
3191
3193
  return "Windows NT";
@@ -3200,11 +3202,11 @@ function Pd() {
3200
3202
  return "";
3201
3203
  }
3202
3204
  function Bd() {
3203
- if (G.isNode)
3205
+ if (K.isNode)
3204
3206
  return process.versions.node;
3205
3207
  }
3206
3208
  function Od() {
3207
- return G.isNode ? "NodeJS" : "Browser";
3209
+ return K.isNode ? "NodeJS" : "Browser";
3208
3210
  }
3209
3211
  function jt(n) {
3210
3212
  return n.stack ? n.stack : n.message ? n.message : `${n}`;
@@ -3222,7 +3224,7 @@ function Dd() {
3222
3224
  }
3223
3225
  class $d extends Dt {
3224
3226
  constructor(e) {
3225
- if (super(), this._logger = e, typeof fetch > "u" || G.isNode) {
3227
+ if (super(), this._logger = e, typeof fetch > "u" || K.isNode) {
3226
3228
  const t = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
3227
3229
  this._jar = new (t("tough-cookie")).CookieJar(), typeof fetch > "u" ? this._fetchType = t("node-fetch") : this._fetchType = fetch, this._fetchType = t("fetch-cookie")(this._fetchType, this._jar);
3228
3230
  } else
@@ -3283,7 +3285,7 @@ class $d extends Dt {
3283
3285
  }
3284
3286
  getCookieString(e) {
3285
3287
  let t = "";
3286
- return G.isNode && this._jar && this._jar.getCookies(e, (o, r) => t = r.join("; ")), t;
3288
+ return K.isNode && this._jar && this._jar.getCookies(e, (o, r) => t = r.join("; ")), t;
3287
3289
  }
3288
3290
  }
3289
3291
  function ho(n, e) {
@@ -3332,7 +3334,7 @@ class Md extends Dt {
3332
3334
  class Ld extends Dt {
3333
3335
  /** Creates a new instance of the {@link @microsoft/signalr.DefaultHttpClient}, using the provided {@link @microsoft/signalr.ILogger} to log messages. */
3334
3336
  constructor(e) {
3335
- if (super(), typeof fetch < "u" || G.isNode)
3337
+ if (super(), typeof fetch < "u" || K.isNode)
3336
3338
  this._httpClient = new $d(e);
3337
3339
  else if (typeof XMLHttpRequest < "u")
3338
3340
  this._httpClient = new Md(e);
@@ -3508,10 +3510,10 @@ class jd {
3508
3510
  }
3509
3511
  }
3510
3512
  const Hd = 30 * 1e3, Nd = 15 * 1e3, Ud = 1e5;
3511
- var K;
3513
+ var q;
3512
3514
  (function(n) {
3513
3515
  n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Connected = "Connected", n.Disconnecting = "Disconnecting", n.Reconnecting = "Reconnecting";
3514
- })(K || (K = {}));
3516
+ })(q || (q = {}));
3515
3517
  class _n {
3516
3518
  /** @internal */
3517
3519
  // Using a public static factory method means we can have a private constructor and an _internal_
@@ -3524,7 +3526,7 @@ class _n {
3524
3526
  constructor(e, t, o, r, i, a, l) {
3525
3527
  this._nextKeepAlive = 0, this._freezeEventListener = () => {
3526
3528
  this._logger.log(h.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");
3527
- }, ee.isRequired(e, "connection"), ee.isRequired(t, "logger"), ee.isRequired(o, "protocol"), this.serverTimeoutInMilliseconds = i ?? Hd, this.keepAliveIntervalInMilliseconds = a ?? Nd, this._statefulReconnectBufferSize = l ?? Ud, this._logger = t, this._protocol = o, this.connection = e, this._reconnectPolicy = r, this._handshakeProtocol = new xd(), 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 = K.Disconnected, this._connectionStarted = !1, this._cachedPingMessage = this._protocol.writeMessage({ type: j.Ping });
3529
+ }, ee.isRequired(e, "connection"), ee.isRequired(t, "logger"), ee.isRequired(o, "protocol"), this.serverTimeoutInMilliseconds = i ?? Hd, this.keepAliveIntervalInMilliseconds = a ?? Nd, this._statefulReconnectBufferSize = l ?? Ud, this._logger = t, this._protocol = o, this.connection = e, this._reconnectPolicy = r, this._handshakeProtocol = new xd(), 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 });
3528
3530
  }
3529
3531
  /** Indicates the state of the {@link HubConnection} to the server. */
3530
3532
  get state() {
@@ -3546,7 +3548,7 @@ class _n {
3546
3548
  * @param {string} url The url to connect to.
3547
3549
  */
3548
3550
  set baseUrl(e) {
3549
- if (this._connectionState !== K.Disconnected && this._connectionState !== K.Reconnecting)
3551
+ if (this._connectionState !== q.Disconnected && this._connectionState !== q.Reconnecting)
3550
3552
  throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");
3551
3553
  if (!e)
3552
3554
  throw new Error("The HubConnection url must be a valid url.");
@@ -3560,13 +3562,13 @@ class _n {
3560
3562
  return this._startPromise = this._startWithStateTransitions(), this._startPromise;
3561
3563
  }
3562
3564
  async _startWithStateTransitions() {
3563
- if (this._connectionState !== K.Disconnected)
3565
+ if (this._connectionState !== q.Disconnected)
3564
3566
  return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));
3565
- this._connectionState = K.Connecting, this._logger.log(h.Debug, "Starting HubConnection.");
3567
+ this._connectionState = q.Connecting, this._logger.log(h.Debug, "Starting HubConnection.");
3566
3568
  try {
3567
- await this._startInternal(), G.isBrowser && window.document.addEventListener("freeze", this._freezeEventListener), this._connectionState = K.Connected, this._connectionStarted = !0, this._logger.log(h.Debug, "HubConnection connected successfully.");
3569
+ await this._startInternal(), K.isBrowser && window.document.addEventListener("freeze", this._freezeEventListener), this._connectionState = q.Connected, this._connectionStarted = !0, this._logger.log(h.Debug, "HubConnection connected successfully.");
3568
3570
  } catch (e) {
3569
- return this._connectionState = K.Disconnected, this._logger.log(h.Debug, `HubConnection failed to start successfully because of error '${e}'.`), Promise.reject(e);
3571
+ return this._connectionState = q.Disconnected, this._logger.log(h.Debug, `HubConnection failed to start successfully because of error '${e}'.`), Promise.reject(e);
3570
3572
  }
3571
3573
  }
3572
3574
  async _startInternal() {
@@ -3605,12 +3607,12 @@ class _n {
3605
3607
  }
3606
3608
  }
3607
3609
  _stopInternal(e) {
3608
- if (this._connectionState === K.Disconnected)
3610
+ if (this._connectionState === q.Disconnected)
3609
3611
  return this._logger.log(h.Debug, `Call to HubConnection.stop(${e}) ignored because it is already in the disconnected state.`), Promise.resolve();
3610
- if (this._connectionState === K.Disconnecting)
3612
+ if (this._connectionState === q.Disconnecting)
3611
3613
  return this._logger.log(h.Debug, `Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`), this._stopPromise;
3612
3614
  const t = this._connectionState;
3613
- return this._connectionState = K.Disconnecting, this._logger.log(h.Debug, "Stopping HubConnection."), this._reconnectDelayHandle ? (this._logger.log(h.Debug, "Connection stopped during reconnect delay. Done reconnecting."), clearTimeout(this._reconnectDelayHandle), this._reconnectDelayHandle = void 0, this._completeClose(), Promise.resolve()) : (t === K.Connected && this._sendCloseMessage(), this._cleanupTimeout(), this._cleanupPingTimer(), this._stopDuringStartError = e || new ve("The connection was stopped before the hub handshake could complete."), this.connection.stop(e));
3615
+ return this._connectionState = q.Disconnecting, this._logger.log(h.Debug, "Stopping HubConnection."), this._reconnectDelayHandle ? (this._logger.log(h.Debug, "Connection stopped during reconnect delay. Done reconnecting."), clearTimeout(this._reconnectDelayHandle), this._reconnectDelayHandle = void 0, this._completeClose(), Promise.resolve()) : (t === q.Connected && this._sendCloseMessage(), this._cleanupTimeout(), this._cleanupPingTimer(), this._stopDuringStartError = e || new ve("The connection was stopped before the hub handshake could complete."), this.connection.stop(e));
3614
3616
  }
3615
3617
  async _sendCloseMessage() {
3616
3618
  try {
@@ -3797,7 +3799,7 @@ class _n {
3797
3799
  if ((!this.connection.features || !this.connection.features.inherentKeepAlive) && (this._timeoutHandle = setTimeout(() => this.serverTimeout(), this.serverTimeoutInMilliseconds), this._pingServerHandle === void 0)) {
3798
3800
  let e = this._nextKeepAlive - (/* @__PURE__ */ new Date()).getTime();
3799
3801
  e < 0 && (e = 0), this._pingServerHandle = setTimeout(async () => {
3800
- if (this._connectionState === K.Connected)
3802
+ if (this._connectionState === q.Connected)
3801
3803
  try {
3802
3804
  await this._sendMessage(this._cachedPingMessage);
3803
3805
  } catch {
@@ -3828,11 +3830,11 @@ class _n {
3828
3830
  c ? await this._sendWithProtocol(c) : i ? (l ? c = this._createCompletionMessage(e.invocationId, `${l}`, null) : a !== void 0 ? c = this._createCompletionMessage(e.invocationId, null, a) : (this._logger.log(h.Warning, `No result given for '${t}' method and invocation ID '${e.invocationId}'.`), c = this._createCompletionMessage(e.invocationId, "Client didn't provide a result.", null)), await this._sendWithProtocol(c)) : a && this._logger.log(h.Error, `Result given for '${t}' method but server is not expecting a result.`);
3829
3831
  }
3830
3832
  _connectionClosed(e) {
3831
- this._logger.log(h.Debug, `HubConnection.connectionClosed(${e}) called while in state ${this._connectionState}.`), this._stopDuringStartError = this._stopDuringStartError || e || new ve("The underlying connection was closed before the hub handshake could complete."), this._handshakeResolver && this._handshakeResolver(), this._cancelCallbacksWithError(e || new Error("Invocation canceled due to the underlying connection being closed.")), this._cleanupTimeout(), this._cleanupPingTimer(), this._connectionState === K.Disconnecting ? this._completeClose(e) : this._connectionState === K.Connected && this._reconnectPolicy ? this._reconnect(e) : this._connectionState === K.Connected && this._completeClose(e);
3833
+ this._logger.log(h.Debug, `HubConnection.connectionClosed(${e}) called while in state ${this._connectionState}.`), this._stopDuringStartError = this._stopDuringStartError || e || new ve("The underlying connection was closed before the hub handshake could complete."), this._handshakeResolver && this._handshakeResolver(), this._cancelCallbacksWithError(e || new Error("Invocation canceled due to the underlying connection being closed.")), this._cleanupTimeout(), this._cleanupPingTimer(), this._connectionState === q.Disconnecting ? this._completeClose(e) : this._connectionState === q.Connected && this._reconnectPolicy ? this._reconnect(e) : this._connectionState === q.Connected && this._completeClose(e);
3832
3834
  }
3833
3835
  _completeClose(e) {
3834
3836
  if (this._connectionStarted) {
3835
- this._connectionState = K.Disconnected, this._connectionStarted = !1, this._messageBuffer && (this._messageBuffer._dispose(e ?? new Error("Connection closed.")), this._messageBuffer = void 0), G.isBrowser && window.document.removeEventListener("freeze", this._freezeEventListener);
3837
+ this._connectionState = q.Disconnected, this._connectionStarted = !1, this._messageBuffer && (this._messageBuffer._dispose(e ?? new Error("Connection closed.")), this._messageBuffer = void 0), K.isBrowser && window.document.removeEventListener("freeze", this._freezeEventListener);
3836
3838
  try {
3837
3839
  this._closedCallbacks.forEach((t) => t.apply(this, [e]));
3838
3840
  } catch (t) {
@@ -3847,13 +3849,13 @@ class _n {
3847
3849
  this._logger.log(h.Debug, "Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."), this._completeClose(e);
3848
3850
  return;
3849
3851
  }
3850
- if (this._connectionState = K.Reconnecting, e ? this._logger.log(h.Information, `Connection reconnecting because of error '${e}'.`) : this._logger.log(h.Information, "Connection reconnecting."), this._reconnectingCallbacks.length !== 0) {
3852
+ if (this._connectionState = q.Reconnecting, e ? this._logger.log(h.Information, `Connection reconnecting because of error '${e}'.`) : this._logger.log(h.Information, "Connection reconnecting."), this._reconnectingCallbacks.length !== 0) {
3851
3853
  try {
3852
3854
  this._reconnectingCallbacks.forEach((a) => a.apply(this, [e]));
3853
3855
  } catch (a) {
3854
3856
  this._logger.log(h.Error, `An onreconnecting callback called with error '${e}' threw error '${a}'.`);
3855
3857
  }
3856
- if (this._connectionState !== K.Reconnecting) {
3858
+ if (this._connectionState !== q.Reconnecting) {
3857
3859
  this._logger.log(h.Debug, "Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");
3858
3860
  return;
3859
3861
  }
@@ -3861,12 +3863,12 @@ class _n {
3861
3863
  for (; i !== null; ) {
3862
3864
  if (this._logger.log(h.Information, `Reconnect attempt number ${o} will start in ${i} ms.`), await new Promise((a) => {
3863
3865
  this._reconnectDelayHandle = setTimeout(a, i);
3864
- }), this._reconnectDelayHandle = void 0, this._connectionState !== K.Reconnecting) {
3866
+ }), this._reconnectDelayHandle = void 0, this._connectionState !== q.Reconnecting) {
3865
3867
  this._logger.log(h.Debug, "Connection left the reconnecting state during reconnect delay. Done reconnecting.");
3866
3868
  return;
3867
3869
  }
3868
3870
  try {
3869
- if (await this._startInternal(), this._connectionState = K.Connected, this._logger.log(h.Information, "HubConnection reconnected successfully."), this._reconnectedCallbacks.length !== 0)
3871
+ if (await this._startInternal(), this._connectionState = q.Connected, this._logger.log(h.Information, "HubConnection reconnected successfully."), this._reconnectedCallbacks.length !== 0)
3870
3872
  try {
3871
3873
  this._reconnectedCallbacks.forEach((a) => a.apply(this, [this.connection.connectionId]));
3872
3874
  } catch (a) {
@@ -3874,8 +3876,8 @@ class _n {
3874
3876
  }
3875
3877
  return;
3876
3878
  } catch (a) {
3877
- if (this._logger.log(h.Information, `Reconnect attempt failed because of error '${a}'.`), this._connectionState !== K.Reconnecting) {
3878
- this._logger.log(h.Debug, `Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`), this._connectionState === K.Disconnecting && this._completeClose();
3879
+ if (this._logger.log(h.Information, `Reconnect attempt failed because of error '${a}'.`), this._connectionState !== q.Reconnecting) {
3880
+ this._logger.log(h.Debug, `Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`), this._connectionState === q.Disconnecting && this._completeClose();
3879
3881
  return;
3880
3882
  }
3881
3883
  r = a instanceof Error ? a : new Error(a.toString()), i = this._getNextRetryDelay(o++, Date.now() - t, r);
@@ -4148,7 +4150,7 @@ class zd {
4148
4150
  return;
4149
4151
  }
4150
4152
  let a;
4151
- if (G.isBrowser || G.isWebWorker)
4153
+ if (K.isBrowser || K.isWebWorker)
4152
4154
  a = new this._options.EventSource(e, { withCredentials: this._options.withCredentials });
4153
4155
  else {
4154
4156
  const l = this._httpClient.getCookieString(e), c = {};
@@ -4198,7 +4200,7 @@ class Vd {
4198
4200
  let a;
4199
4201
  const l = this._httpClient.getCookieString(e);
4200
4202
  let c = !1;
4201
- if (G.isNode || G.isReactNative) {
4203
+ if (K.isNode || K.isReactNative) {
4202
4204
  const s = {}, [u, b] = Ke();
4203
4205
  s[u] = b, o && (s[Le.Authorization] = `Bearer ${o}`), l && (s[Le.Cookie] = l), a = new this._webSocketConstructor(e, void 0, {
4204
4206
  headers: { ...s, ...this._headers }
@@ -4248,17 +4250,17 @@ const mo = 100;
4248
4250
  class qd {
4249
4251
  constructor(e, t = {}) {
4250
4252
  if (this._stopPromiseResolver = () => {
4251
- }, this.features = {}, this._negotiateVersion = 1, ee.isRequired(e, "url"), this._logger = Ed(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)
4253
+ }, this.features = {}, this._negotiateVersion = 1, ee.isRequired(e, "url"), this._logger = Sd(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)
4252
4254
  t.withCredentials = t.withCredentials === void 0 ? !0 : t.withCredentials;
4253
4255
  else
4254
4256
  throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");
4255
4257
  t.timeout = t.timeout === void 0 ? 100 * 1e3 : t.timeout;
4256
4258
  let o = null, r = null;
4257
- if (G.isNode && typeof require < "u") {
4259
+ if (K.isNode && typeof require < "u") {
4258
4260
  const i = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
4259
4261
  o = i("ws"), r = i("eventsource");
4260
4262
  }
4261
- !G.isNode && typeof WebSocket < "u" && !t.WebSocket ? t.WebSocket = WebSocket : G.isNode && !t.WebSocket && o && (t.WebSocket = o), !G.isNode && typeof EventSource < "u" && !t.EventSource ? t.EventSource = EventSource : G.isNode && !t.EventSource && typeof r < "u" && (t.EventSource = r), this._httpClient = new Jd(t.httpClient || new Ld(this._logger), t.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = t, this.onreceive = null, this.onclose = null;
4263
+ !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 Jd(t.httpClient || new Ld(this._logger), t.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = t, this.onreceive = null, this.onclose = null;
4262
4264
  }
4263
4265
  async start(e) {
4264
4266
  if (e = e || se.Binary, ee.isIn(e, se, "transferFormat"), this._logger.log(h.Debug, `Starting connection with transfer format '${se[e]}'.`), this._connectionState !== "Disconnected")
@@ -4466,7 +4468,7 @@ class qd {
4466
4468
  _resolveUrl(e) {
4467
4469
  if (e.lastIndexOf("https://", 0) === 0 || e.lastIndexOf("http://", 0) === 0)
4468
4470
  return e;
4469
- if (!G.isBrowser)
4471
+ if (!K.isBrowser)
4470
4472
  throw new Error(`Cannot resolve '${e}'.`);
4471
4473
  const t = window.document.createElement("a");
4472
4474
  return t.href = e, this._logger.log(h.Information, `Normalizing '${e}' to '${t.href}'.`), t.href;
@@ -4726,34 +4728,34 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
4726
4728
  }
4727
4729
  }, l = async (m) => {
4728
4730
  var k;
4729
- const _ = J(), w = ((k = _.appcategorys) == null ? void 0 : k.map((B) => B.apps).flat()) || [];
4731
+ const _ = F(), w = ((k = _.appcategorys) == null ? void 0 : k.map((B) => B.apps).flat()) || [];
4730
4732
  if (Array.isArray(m)) {
4731
- const B = m.filter((S) => S.code).map((S) => S.code);
4733
+ const B = m.filter((E) => E.code).map((E) => E.code);
4732
4734
  if (m.length) {
4733
4735
  if (_.currentSubAppCode) {
4734
- const E = _.currentSubApp.menus ?? [], C = ye(E).find((M) => B.includes(M.code));
4736
+ const S = _.currentSubApp.menus ?? [], C = ye(S).find((M) => B.includes(M.code));
4735
4737
  if (C) {
4736
4738
  t({ currentMenu: C });
4737
4739
  return;
4738
4740
  }
4739
4741
  }
4740
- const S = w.find((E) => B.includes(E.code));
4741
- S && e({ microApp: S });
4742
+ const E = w.find((S) => B.includes(S.code));
4743
+ E && e({ microApp: E });
4742
4744
  }
4743
4745
  }
4744
4746
  if (typeof m == "string")
4745
4747
  if (m.includes(":")) {
4746
- const B = m.split(":"), [S = "", E = ""] = B;
4747
- if (!S) return;
4748
- const C = w.find((M) => M.code === S);
4749
- C && e({ microApp: C, menuCode: E });
4748
+ const B = m.split(":"), [E = "", S = ""] = B;
4749
+ if (!E) return;
4750
+ const C = w.find((M) => M.code === E);
4751
+ C && e({ microApp: C, menuCode: S });
4750
4752
  } else {
4751
- const B = m, S = w.find((E) => E.code === B);
4752
- if (S)
4753
- e({ microApp: S });
4753
+ const B = m, E = w.find((S) => S.code === B);
4754
+ if (E)
4755
+ e({ microApp: E });
4754
4756
  else {
4755
- const [E, C] = await lp().run({ menuCode: B });
4756
- if (E) return;
4757
+ const [S, C] = await lp().run({ menuCode: B });
4758
+ if (S) return;
4757
4759
  const M = w.find((L) => L.code === C);
4758
4760
  M && e({ microApp: M, menuCode: B });
4759
4761
  }
@@ -4784,11 +4786,11 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
4784
4786
  }, u = (m) => {
4785
4787
  const _ = Yt(), w = JSON.parse(atob(_.split(".")[1])).sub;
4786
4788
  op().on(`${m}:${w}`, async function(B) {
4787
- let S = a(B);
4788
- if (S)
4789
- S.uniqueId && S.actionKey == "switch-menu" && s(S);
4789
+ let E = a(B);
4790
+ if (E)
4791
+ E.uniqueId && E.actionKey == "switch-menu" && s(E);
4790
4792
  else if (B.includes("openAppMenu=")) {
4791
- const E = B.split("="), C = JSON.parse(E[1]);
4793
+ const S = B.split("="), C = JSON.parse(S[1]);
4792
4794
  l(C);
4793
4795
  } else B.includes("iocIsRun") && (c.value = !1);
4794
4796
  });
@@ -4807,10 +4809,10 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
4807
4809
  }, 5e3), y.value = (window.navigator.onLine ? "on" : "off") + "line";
4808
4810
  };
4809
4811
  window.addEventListener("online", () => p("online")), window.addEventListener("offline", () => p("offline"));
4810
- }), St(() => {
4812
+ }), Et(() => {
4811
4813
  o && clearInterval(o);
4812
4814
  }), {};
4813
- }, Mt = "v1", dp = Xe(`/api/fms/report/${Mt}`), wn = Xe(`/api/emergency/manage/${Mt}`), pp = rn.get("/permissionset/user-portal-menu"), vr = Xe(`/api/alarm/config/${Mt}`), fp = Xe(`/api/alarm/run-time/${Mt}`), hp = vr.get("/alarm-definition/status-option"), gp = fp.post("/record/handling"), Ap = vr.get("/alarm-level/prompttone"), mp = dp.get("/alarm/rule/list"), vp = To.get("/controller/space-children-all-type"), yp = To.get("/controller/fuzzy-area-small"), _p = wn.get("/emergency-event/event/type"), bp = wn.get("/emergency-event/event/level"), wp = wn.get("/emergency-plan/plan/handle-time"), Cp = { class: "handle-alarm-container" }, Ip = { class: "select-check" }, Sp = { class: "form-box" }, Ep = { class: "select-check" }, Tp = { style: { "margin-left": "8px" } }, kp = { class: "foot-btn-box" }, Pp = {
4815
+ }, Mt = "v1", dp = Xe(`/api/fms/report/${Mt}`), wn = Xe(`/api/emergency/manage/${Mt}`), pp = rn.get("/permissionset/user-portal-menu"), vr = Xe(`/api/alarm/config/${Mt}`), fp = Xe(`/api/alarm/run-time/${Mt}`), hp = vr.get("/alarm-definition/status-option"), gp = fp.post("/record/handling"), Ap = vr.get("/alarm-level/prompttone"), mp = dp.get("/alarm/rule/list"), vp = To.get("/controller/space-children-all-type"), yp = To.get("/controller/fuzzy-area-small"), _p = wn.get("/emergency-event/event/type"), bp = wn.get("/emergency-event/event/level"), wp = wn.get("/emergency-plan/plan/handle-time"), Cp = { class: "handle-alarm-container" }, Ip = { class: "select-check" }, Ep = { class: "form-box" }, Sp = { class: "select-check" }, Tp = { style: { "margin-left": "8px" } }, kp = { class: "foot-btn-box" }, Pp = {
4814
4816
  name: "handleAlarm"
4815
4817
  }, Bp = /* @__PURE__ */ pe({
4816
4818
  ...Pp,
@@ -4874,12 +4876,12 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
4874
4876
  { id: 3, name: Q("不限").value }
4875
4877
  ]), y = T([]), p = T(""), d = T("告警对象位置"), m = T(""), _ = T([]), w = T("");
4876
4878
  T("[]");
4877
- const k = T(!0), B = T(!0), S = async (O) => {
4879
+ const k = T(!0), B = T(!0), E = async (O) => {
4878
4880
  const I = { name: "1" };
4879
4881
  O != null && O.id && (I.spaceId = O.id);
4880
4882
  const [P, me] = await vp(I).run();
4881
4883
  return P ? {} : me;
4882
- }, E = async (O) => {
4884
+ }, S = async (O) => {
4883
4885
  const I = { name: O || "" }, [P, me] = await yp(I).run();
4884
4886
  return P ? {} : me;
4885
4887
  }, C = T(!0), M = T(!0), L = T([]), N = async () => {
@@ -4888,7 +4890,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
4888
4890
  L.value = I.data.filter((P) => P.status), L.value.length > 0 && (s.value.workOrderRules = L.value[0].id);
4889
4891
  };
4890
4892
  re(c, (O) => {
4891
- O || (X(), fe());
4893
+ O || (G(), fe());
4892
4894
  }), re(
4893
4895
  B,
4894
4896
  (O) => {
@@ -4902,18 +4904,18 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
4902
4904
  },
4903
4905
  { immediate: !0 }
4904
4906
  );
4905
- const z = (O) => {
4907
+ const W = (O) => {
4906
4908
  var I;
4907
4909
  return (I = a.value) == null ? void 0 : I.parentNode.parentNode;
4908
4910
  }, ie = (O) => {
4909
4911
  u.value.reportTheme = "";
4910
- }, Ee = (O, I) => {
4912
+ }, Se = (O, I) => {
4911
4913
  I.length > 0 && (p.value = I[0].path), s.value.reportPosition = O, w.value = "";
4912
4914
  }, ft = (O) => {
4913
4915
  O && (u.value.reportPosition = "", p.value = ""), O ? (s.value.reportPosition = null, p.value = "", d.value = "告警对象位置") : (s.value.reportPosition = null, p.value = "", d.value = "请选择");
4914
4916
  }, oe = (O) => {
4915
4917
  O && (u.value.reportTheme = ""), O ? (s.value.reportTheme = "", m.value = "告警对象") : (s.value.reportTheme = "", m.value = "请输入");
4916
- }, X = () => {
4918
+ }, G = () => {
4917
4919
  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 = "";
4918
4920
  }, fe = () => {
4919
4921
  s.value.processTypeId = "confirm", s.value.reason = "", s.value.treatmentPlan = "", s.value.remarks = "", s.value.reportPosition = "", s.value.reportTheme = "", s.value.workOrderRules = null, B.value = !0, M.value = !0, C.value = !0, s.value.reportTheme = Q("告警对象").value, p.value = "", d.value = "告警对象位置", m.value = "请输入", s.value.eventTypeId = "", s.value.eventLevelId = null, s.value.timeLimit = "", s.value.interval = 1, g.value = [], f.value = [];
@@ -4941,7 +4943,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
4941
4943
  if (I) return {};
4942
4944
  s.value.interval = P.handleTimeUnit, P.handleTimeUnit == 3 ? s.value.timeLimit = "" : s.value.timeLimit = P.handleTime;
4943
4945
  }, _r = (O) => {
4944
- X();
4946
+ G();
4945
4947
  }, br = async () => {
4946
4948
  const O = {
4947
4949
  logic: !1,
@@ -4970,7 +4972,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
4970
4972
  return O;
4971
4973
  }, Cr = () => {
4972
4974
  Lt();
4973
- }, Sn = async (O) => {
4975
+ }, En = async (O) => {
4974
4976
  wr() && (l.value = O, Ir());
4975
4977
  }, Ir = async () => {
4976
4978
  const O = {
@@ -4993,13 +4995,13 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
4993
4995
  return;
4994
4996
  }
4995
4997
  r("emitFn", "successHandle", s.value.processTypeId), i.value = !1, Lt();
4996
- }, Sr = () => {
4998
+ }, Er = () => {
4997
4999
  c.value = !0, br();
4998
5000
  }, Lt = () => {
4999
5001
  c.value = !1;
5000
5002
  };
5001
5003
  return e({
5002
- open: Sr,
5004
+ open: Er,
5003
5005
  close: Lt
5004
5006
  }), (O, I) => (H(), de("div", Cp, [
5005
5007
  R(A(sn), {
@@ -5039,7 +5041,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5039
5041
  }),
5040
5042
  R(A(Te), {
5041
5043
  size: "middle",
5042
- onClick: I[29] || (I[29] = (P) => Sn(1))
5044
+ onClick: I[29] || (I[29] = (P) => En(1))
5043
5045
  }, {
5044
5046
  default: x(() => [
5045
5047
  ue(
@@ -5054,7 +5056,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5054
5056
  R(A(Te), {
5055
5057
  btnType: "primary",
5056
5058
  size: "middle",
5057
- onClick: I[30] || (I[30] = (P) => Sn(2))
5059
+ onClick: I[30] || (I[30] = (P) => En(2))
5058
5060
  }, {
5059
5061
  default: x(() => [
5060
5062
  ue(
@@ -5095,12 +5097,12 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5095
5097
  col: 1,
5096
5098
  optionsLabelKey: "name",
5097
5099
  optionsValueKey: "id",
5098
- "get-popup-container": z,
5100
+ "get-popup-container": W,
5099
5101
  marginBottom: "30px",
5100
5102
  marginRight: "0",
5101
5103
  onChange: _r
5102
5104
  }, null, 8, ["label", "modelValue", "options"]),
5103
- s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), q(A(_e), {
5105
+ s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), V(A(_e), {
5104
5106
  key: 0,
5105
5107
  label: A(Q)("告警原因").value,
5106
5108
  required: s.value.processTypeId == "dealwith",
@@ -5115,7 +5117,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5115
5117
  marginBottom: "30px",
5116
5118
  marginRight: "0"
5117
5119
  }, null, 8, ["label", "required", "modelValue", "error"])) : U("v-if", !0),
5118
- s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), q(A(_e), {
5120
+ s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), V(A(_e), {
5119
5121
  key: 1,
5120
5122
  label: A(Q)("处理方案").value,
5121
5123
  required: s.value.processTypeId == "dealwith",
@@ -5130,7 +5132,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5130
5132
  marginBottom: "30px",
5131
5133
  marginRight: "0"
5132
5134
  }, null, 8, ["label", "required", "modelValue", "error"])) : U("v-if", !0),
5133
- s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), q(A(_e), {
5135
+ s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), V(A(_e), {
5134
5136
  key: 2,
5135
5137
  label: A(Q)("备注").value,
5136
5138
  type: "textarea",
@@ -5143,7 +5145,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5143
5145
  marginBottom: "30px",
5144
5146
  marginRight: "0"
5145
5147
  }, null, 8, ["label", "modelValue"])) : U("v-if", !0),
5146
- s.value.processTypeId == "createorder" ? (H(), q(A(_e), {
5148
+ s.value.processTypeId == "createorder" ? (H(), V(A(_e), {
5147
5149
  key: 3,
5148
5150
  label: A(Q)("报事位置").value,
5149
5151
  required: "",
@@ -5155,7 +5157,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5155
5157
  }, {
5156
5158
  default: x(() => [
5157
5159
  $("div", Ip, [
5158
- $("div", Sp, [
5160
+ $("div", Ep, [
5159
5161
  R(A(ps), {
5160
5162
  borderType: "underline",
5161
5163
  props: { disabled: "_disabled", label: "name" },
@@ -5169,9 +5171,9 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5169
5171
  data: _.value,
5170
5172
  placeholder: d.value,
5171
5173
  disabled: k.value,
5172
- load: S,
5173
- search: E,
5174
- onChange: Ee,
5174
+ load: E,
5175
+ search: S,
5176
+ onChange: Se,
5175
5177
  filter: !0,
5176
5178
  allowClear: !0
5177
5179
  }, null, 8, ["modelValue", "path", "keyword", "data", "placeholder", "disabled"]),
@@ -5206,7 +5208,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5206
5208
  _: 1
5207
5209
  /* STABLE */
5208
5210
  }, 8, ["label", "error"])) : U("v-if", !0),
5209
- s.value.processTypeId == "createorder" ? (H(), q(A(_e), {
5211
+ s.value.processTypeId == "createorder" ? (H(), V(A(_e), {
5210
5212
  key: 4,
5211
5213
  label: A(Q)("报事主题").value,
5212
5214
  required: "",
@@ -5217,7 +5219,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5217
5219
  marginRight: "0"
5218
5220
  }, {
5219
5221
  default: x(() => [
5220
- $("div", Ep, [
5222
+ $("div", Sp, [
5221
5223
  R(A(Pn), {
5222
5224
  maxlength: "20",
5223
5225
  disabled: C.value,
@@ -5248,7 +5250,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5248
5250
  _: 1
5249
5251
  /* STABLE */
5250
5252
  }, 8, ["label", "error"])) : U("v-if", !0),
5251
- s.value.processTypeId == "createorder" ? (H(), q(A(_e), {
5253
+ s.value.processTypeId == "createorder" ? (H(), V(A(_e), {
5252
5254
  key: 5,
5253
5255
  label: A(Q)("工单规则").value,
5254
5256
  required: "",
@@ -5261,12 +5263,12 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5261
5263
  col: 1,
5262
5264
  optionsLabelKey: "name",
5263
5265
  optionsValueKey: "id",
5264
- "get-popup-container": z,
5266
+ "get-popup-container": W,
5265
5267
  marginBottom: "0px",
5266
5268
  marginRight: "0"
5267
5269
  }, null, 8, ["label", "modelValue", "error", "options"])) : U("v-if", !0),
5268
5270
  U(" createcontingency 生成应急事件 "),
5269
- s.value.processTypeId == "createcontingency" ? (H(), q(A(_e), {
5271
+ s.value.processTypeId == "createcontingency" ? (H(), V(A(_e), {
5270
5272
  key: 6,
5271
5273
  label: A(Q)("事件类型").value,
5272
5274
  required: "",
@@ -5279,12 +5281,12 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5279
5281
  col: 1,
5280
5282
  optionsLabelKey: "typeName",
5281
5283
  optionsValueKey: "id",
5282
- "get-popup-container": z,
5284
+ "get-popup-container": W,
5283
5285
  marginBottom: "30px",
5284
5286
  marginRight: "0",
5285
5287
  onChange: I[21] || (I[21] = (P) => Oe("eventTypeId"))
5286
5288
  }, null, 8, ["label", "modelValue", "error", "options"])) : U("v-if", !0),
5287
- s.value.processTypeId == "createcontingency" ? (H(), q(A(_e), {
5289
+ s.value.processTypeId == "createcontingency" ? (H(), V(A(_e), {
5288
5290
  key: 7,
5289
5291
  label: A(Q)("事件等级").value,
5290
5292
  required: "",
@@ -5297,12 +5299,12 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5297
5299
  col: 1,
5298
5300
  optionsLabelKey: "name",
5299
5301
  optionsValueKey: "id",
5300
- "get-popup-container": z,
5302
+ "get-popup-container": W,
5301
5303
  marginBottom: "30px",
5302
5304
  marginRight: "0",
5303
5305
  onChange: I[24] || (I[24] = (P) => Oe("eventLevelId"))
5304
5306
  }, null, 8, ["label", "modelValue", "error", "options"])) : U("v-if", !0),
5305
- s.value.processTypeId == "createcontingency" ? (H(), q(A(_e), {
5307
+ s.value.processTypeId == "createcontingency" ? (H(), V(A(_e), {
5306
5308
  key: 8,
5307
5309
  label: A(Q)("处置时限").value,
5308
5310
  required: "",
@@ -5331,7 +5333,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5331
5333
  options: v.value,
5332
5334
  "border-type": "underline",
5333
5335
  size: "small",
5334
- "get-popup-container": z,
5336
+ "get-popup-container": W,
5335
5337
  onChange: I[26] || (I[26] = (P) => Oe("interval")),
5336
5338
  placeholder: "请选择"
5337
5339
  }, null, 8, ["modelValue", "options"])
@@ -5361,7 +5363,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5361
5363
  }), Op = /* @__PURE__ */ Ie(Bp, [["__scopeId", "data-v-a6a58a01"]]), Dp = (n, e, t) => ({
5362
5364
  handleAlarmVue: () => he(Op, {
5363
5365
  handerIds: e.value,
5364
- projectId: Et().id,
5366
+ projectId: St().id,
5365
5367
  ref: n,
5366
5368
  onEmitFn: (r, i) => {
5367
5369
  }
@@ -5397,7 +5399,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5397
5399
  $(
5398
5400
  "div",
5399
5401
  {
5400
- style: En({ "background-color": a.msgItem.color }),
5402
+ style: Sn({ "background-color": a.msgItem.color }),
5401
5403
  class: "title-detail"
5402
5404
  },
5403
5405
  [
@@ -5431,7 +5433,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5431
5433
  "div",
5432
5434
  {
5433
5435
  class: "alarm-msg-line-right alarm-content-object",
5434
- style: En({ color: a.msgItem.color })
5436
+ style: Sn({ color: a.msgItem.color })
5435
5437
  },
5436
5438
  Y(a.msgItem.alarmLevelName || ""),
5437
5439
  5
@@ -5471,7 +5473,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5471
5473
  )
5472
5474
  ]),
5473
5475
  $("div", Vp, [
5474
- a.msgItem.equipmentCode && a.msgItem.equipmentPanelCode ? (H(), q(A(Te), {
5476
+ a.msgItem.equipmentCode && a.msgItem.equipmentPanelCode ? (H(), V(A(Te), {
5475
5477
  key: 0,
5476
5478
  block: "",
5477
5479
  onClick: ne(i, ["stop"]),
@@ -5488,7 +5490,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5488
5490
  _: 1
5489
5491
  /* STABLE */
5490
5492
  })) : U("v-if", !0),
5491
- a.alarmhandle ? (H(), q(A(Te), {
5493
+ a.alarmhandle ? (H(), V(A(Te), {
5492
5494
  key: 1,
5493
5495
  block: "",
5494
5496
  btnType: "primary-text",
@@ -5540,27 +5542,27 @@ const Xp = () => {
5540
5542
  loop: !1
5541
5543
  // 轮播-无限次播放
5542
5544
  });
5543
- te.addEventListenerFromMicroApp("alarm:change-alarmconfig", (E) => {
5544
- const { isRealTimeAlarm: C, audioPlay: M } = E.data;
5545
+ X.addEventListenerFromMicroApp("alarm:change-alarmconfig", (S) => {
5546
+ const { isRealTimeAlarm: C, audioPlay: M } = S.data;
5545
5547
  C != null && (l.value = C), M != null && (c.value = M, c.value || w());
5546
5548
  });
5547
- const u = (E) => {
5549
+ const u = (S) => {
5548
5550
  var M;
5549
5551
  const C = [];
5550
- C.push({ alarmId: E.recordId }), r.value = C, (M = t.value) == null || M.open();
5551
- }, { entryApp: b } = bt.hooks.useEntryApp(), g = (E) => {
5552
- ko(E.equipmentCode, E.equipmentPanelCode);
5552
+ C.push({ alarmId: S.recordId }), r.value = C, (M = t.value) == null || M.open();
5553
+ }, { entryApp: b } = bt.hooks.useEntryApp(), g = (S) => {
5554
+ ko(S.equipmentCode, S.equipmentPanelCode);
5553
5555
  }, { handleAlarmVue: f } = Dp(t, r), v = async () => {
5554
5556
  var M;
5555
- const C = (((M = J().appcategorys) == null ? void 0 : M.map((L) => L.apps).flat()) ?? []).find((L) => L.code === "alarm");
5557
+ const C = (((M = F().appcategorys) == null ? void 0 : M.map((L) => L.apps).flat()) ?? []).find((L) => L.code === "alarm");
5556
5558
  C && b({ microApp: C, menuPath: `/${C.routeUrl}/realTimeAlarm` });
5557
- }, y = [], p = (E) => {
5558
- if (y.push(E), i.value.length < 2) {
5559
+ }, y = [], p = (S) => {
5560
+ if (y.push(S), i.value.length < 2) {
5559
5561
  d(y[0]), y.shift();
5560
5562
  return;
5561
5563
  }
5562
- }, d = (E) => {
5563
- if (!E) return;
5564
+ }, d = (S) => {
5565
+ if (!S) return;
5564
5566
  const C = Gp();
5565
5567
  yt.open({
5566
5568
  key: C,
@@ -5568,7 +5570,7 @@ const Xp = () => {
5568
5570
  message: Q("新告警").value,
5569
5571
  placement: "bottomRight",
5570
5572
  description: he(Kp, {
5571
- msgItem: E,
5573
+ msgItem: S,
5572
5574
  alarmhandle: a.value,
5573
5575
  onHanderDetail: g,
5574
5576
  onHanderFn: u
@@ -5586,24 +5588,24 @@ const Xp = () => {
5586
5588
  }
5587
5589
  }, 300);
5588
5590
  }
5589
- }), i.value.includes(C) || i.value.push(C), m(E);
5590
- }, m = (E) => {
5591
- if (E) {
5591
+ }), i.value.includes(C) || i.value.push(C), m(S);
5592
+ }, m = (S) => {
5593
+ if (S) {
5592
5594
  if (!c.value) {
5593
5595
  w();
5594
5596
  return;
5595
5597
  }
5596
- if (!E.coverId) {
5598
+ if (!S.coverId) {
5597
5599
  if (s.value.playLine === null) {
5598
- w(), Number(E.noticeNum) != 0 && _(E);
5600
+ w(), Number(S.noticeNum) != 0 && _(S);
5599
5601
  return;
5600
5602
  }
5601
- Number(E.alarmLevelId) < s.value.playLine && (w(), Number(E.noticeNum) != 0 && _(E));
5603
+ Number(S.alarmLevelId) < s.value.playLine && (w(), Number(S.noticeNum) != 0 && _(S));
5602
5604
  }
5603
5605
  }
5604
- }, _ = (E) => {
5605
- const C = Number(E.noticeNum), M = location.origin + "/oss";
5606
- s.value.isplay && s.value.playId == E.recordId ? w() : (C < 0 ? s.value.loop = !0 : s.value.loop = !1, C > 0 ? (s.value.loopTotalCount = Number(E.noticeNum), s.value.loopCount = 0) : (s.value.loopTotalCount = 0, s.value.loopCount = 0), s.value.isplay = !0, s.value.playId = E.recordId, s.value.playLine = Number(E.alarmLevelId), s.value.playPath = M + E.noticePath, k());
5606
+ }, _ = (S) => {
5607
+ const C = Number(S.noticeNum), M = location.origin + "/oss";
5608
+ s.value.isplay && s.value.playId == S.recordId ? w() : (C < 0 ? s.value.loop = !0 : s.value.loop = !1, C > 0 ? (s.value.loopTotalCount = Number(S.noticeNum), s.value.loopCount = 0) : (s.value.loopTotalCount = 0, s.value.loopCount = 0), s.value.isplay = !0, s.value.playId = S.recordId, s.value.playLine = Number(S.alarmLevelId), s.value.playPath = M + S.noticePath, k());
5607
5609
  }, w = () => {
5608
5610
  s.value.playId = "", s.value.playPath = "", s.value.playLine = null, s.value.loopCount = 0, s.value.loopTotalCount = 0, s.value.isplay = !1, s.value.loop = !1;
5609
5611
  }, k = () => {
@@ -5611,8 +5613,8 @@ const Xp = () => {
5611
5613
  s.value.loopCount = s.value.loopCount + 1, s.value.loopTotalCount && s.value.loopTotalCount && (s.value.loopCount == s.value.loopTotalCount ? (s.value.playPath = "", s.value.isplay = !1, s.value.playId = "", s.value.loopTotalCount = 0, s.value.loopCount = 0, s.value.playLine = null) : o.value.play());
5612
5614
  };
5613
5615
  }, B = async () => {
5614
- const [E, C] = await Ap().run();
5615
- E || (c.value = C.isEnable);
5616
+ const [S, C] = await Ap().run();
5617
+ S || (c.value = C.isEnable);
5616
5618
  };
5617
5619
  return {
5618
5620
  alarmSocket: n,
@@ -5622,11 +5624,11 @@ const Xp = () => {
5622
5624
  handleAlarmVue: f,
5623
5625
  creatAlarmSocket: async () => {
5624
5626
  B();
5625
- const [E, C] = await pp().run({
5627
+ const [S, C] = await pp().run({
5626
5628
  code: "alarm",
5627
5629
  showBtn: !0
5628
5630
  });
5629
- if (E || !C || !C.length) return;
5631
+ if (S || !C || !C.length) return;
5630
5632
  let M = !1;
5631
5633
  C.forEach((L) => {
5632
5634
  L.code === "alarm.realTimeAlarm" && (M = !0, L.children && L.children.length ? L.children.forEach((N) => {
@@ -5640,7 +5642,7 @@ const Xp = () => {
5640
5642
  L && n.value.send(L);
5641
5643
  },
5642
5644
  message: async (L) => {
5643
- te.sendMessageToMicroApp("enterpriseadmin/alarm", "alarmmessage", { alarmMessage: L }), L.messageType === "ADD" && (e.value = e.value + 1, L.coverId || p(L)), L.messageType === "DELETE" && (e.value = e.value - 1, s.value.playId == L.recordId && w());
5645
+ X.sendMessageToMicroApp("enterpriseadmin/alarm", "alarmmessage", { alarmMessage: L }), L.messageType === "ADD" && (e.value = e.value + 1, L.coverId || p(L)), L.messageType === "DELETE" && (e.value = e.value - 1, s.value.playId == L.recordId && w());
5644
5646
  }
5645
5647
  }));
5646
5648
  }
@@ -5651,7 +5653,7 @@ const Xp = () => {
5651
5653
  const { alarmSocket: e, creatAlarmSocket: t, audioObj: o, audioAlarmRef: r, handleAlarmVue: i } = Xp();
5652
5654
  return Qe(async () => {
5653
5655
  await Tt(), t();
5654
- }), St(() => {
5656
+ }), Et(() => {
5655
5657
  e.value && e.value.disconnect(), e.value = null;
5656
5658
  }), (a, l) => (H(), de(
5657
5659
  We,
@@ -5675,8 +5677,8 @@ const Xp = () => {
5675
5677
  }), ef = { class: "das-main-app-container" }, tf = /* @__PURE__ */ pe({
5676
5678
  __name: "index",
5677
5679
  setup(n) {
5678
- const { isFullscreen: e } = lt(), t = Ce(() => !e.value), o = Ce(() => F.excludeRoutes), r = Ce(() => F.routeKeepAliveVisible), i = Ce(() => ({ mode: Ct.value === 1 ? "vertical" : "inline" })), { initNextTick: a } = yu(), { innerPage: l, commandList: c, initNextTick: s } = _u(a);
5679
- Eu(l, a, s), Su(), Cu(), Bu();
5680
+ const { isFullscreen: e } = lt(), t = Ce(() => !e.value), o = Ce(() => te.excludeRoutes), r = Ce(() => te.routeKeepAliveVisible), i = Ce(() => ({ mode: Ct.value === 1 ? "vertical" : "inline" })), { initNextTick: a } = yu(), { innerPage: l, commandList: c, initNextTick: s } = _u(a);
5681
+ Su(l, a, s), Eu(), Cu(), Bu();
5680
5682
  const { $changePwd: u, $personSetDialog: b } = Tu(), { changeEnterprisesVisible: g, userId: f, tenantId: v, changeEnterprise: y } = fr();
5681
5683
  wu();
5682
5684
  const { fontColor: p, backgroudColor: d, borderColor: m } = Iu();
@@ -5733,15 +5735,15 @@ T("@das-fed/web");
5733
5735
  const of = [
5734
5736
  {
5735
5737
  path: ke,
5736
- component: () => import("./index-DGFe8dVS.js")
5738
+ component: () => import("./index-DOTMbc-l.js")
5737
5739
  },
5738
5740
  {
5739
5741
  path: Je,
5740
- component: () => import("./index-csrvxtZY.js")
5742
+ component: () => import("./index-Bnb7HNMb.js")
5741
5743
  },
5742
5744
  {
5743
5745
  path: Do,
5744
- component: () => import("./index-BmlzT8Nw.js")
5746
+ component: () => import("./index-CBrBve1k.js")
5745
5747
  }
5746
5748
  ], qf = {
5747
5749
  routes: of,
@@ -5762,7 +5764,7 @@ export {
5762
5764
  qe as c,
5763
5765
  Wt as d,
5764
5766
  At as e,
5765
- F as l,
5767
+ te as l,
5766
5768
  qf as m,
5767
5769
  et as u
5768
5770
  };