@das-fed/web 6.4.0-dev.11 → 6.4.0-dev.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/{index-D7VM--Bp.js → index-B0_oruhN.js} +1 -1
  2. package/{index-CdrOv9ce.js → index-C2ZSdOo4.js} +900 -885
  3. package/index-C2ZSdOo4.js.gz +0 -0
  4. package/{index-CzmiHoa4.js → index-DCv0mp9Q.js} +1 -1
  5. package/index-DCv0mp9Q.js.gz +0 -0
  6. package/{index-jFzyVhGM.js → index-E3_VNsYI.js} +16 -15
  7. package/index-E3_VNsYI.js.gz +0 -0
  8. package/index.js +1 -1
  9. package/package.json +6 -6
  10. package/packages/create-das-web-app/index.js +40 -40
  11. package/packages/create-das-web-app/index.js.gz +0 -0
  12. package/packages/layout/index.js +214 -202
  13. package/packages/layout/index.js.gz +0 -0
  14. package/packages/layout/style.css +1 -1
  15. package/packages/layout/style.css.gz +0 -0
  16. package/packages/main-app-framework/{index-_nvo7ltJ.js → index-BKvL69_g.js} +167 -164
  17. package/packages/main-app-framework/index-BKvL69_g.js.gz +0 -0
  18. package/packages/main-app-framework/{index-D38gLa5D.js → index-BmlzT8Nw.js} +1 -1
  19. package/packages/main-app-framework/{index-Cq8Fro8z.js → index-DGFe8dVS.js} +16 -15
  20. package/packages/main-app-framework/index-DGFe8dVS.js.gz +0 -0
  21. package/packages/main-app-framework/{index-DyKCvROV.js → index-csrvxtZY.js} +1 -1
  22. package/packages/main-app-framework/index-csrvxtZY.js.gz +0 -0
  23. package/packages/main-app-framework/index.js +1 -1
  24. package/packages/micro-frontend/index.js +34 -22
  25. package/packages/micro-frontend/index.js.gz +0 -0
  26. package/style.css +1 -1
  27. package/style.css.gz +0 -0
  28. package/index-CdrOv9ce.js.gz +0 -0
  29. package/index-CzmiHoa4.js.gz +0 -0
  30. package/index-jFzyVhGM.js.gz +0 -0
  31. package/packages/main-app-framework/index-Cq8Fro8z.js.gz +0 -0
  32. package/packages/main-app-framework/index-DyKCvROV.js.gz +0 -0
  33. package/packages/main-app-framework/index-_nvo7ltJ.js.gz +0 -0
@@ -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 R, renderSlot as Ue, createVNode as x, getCurrentScope as Tr, onScopeDispose as kr, getCurrentInstance as Pr, onMounted as Re, 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 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";
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";
@@ -9,12 +9,12 @@ import { flatTree as ye, filterTreeArray as Ur, isEmpty as Fr, treeFind as Tn, u
9
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
10
  import { setProcessEngineProject as Io, setProcessEngineToken as So } from "@das-fed/utils/process-engine-info";
11
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";
12
- import { createService as Qe } from "@das-fed/utils/create-api-service";
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
16
  import { microFrontend as te } from "@das-fed/web/packages/micro-frontend/index";
17
- import { getConfig as je } from "@das-fed/utils/config";
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";
20
20
  import { DasDialog as sn } from "@das-fed/ui/packages/components/dialog/index";
@@ -72,21 +72,24 @@ const nt = "/", ke = "/application", Oo = [
72
72
  routeKeepAliveVisible: e.routeKeepAliveVisible
73
73
  }));
74
74
  return (r, i) => (H(), q(A(Lr), Er({ "transition-config": t.value }, o.value), {
75
- header: R(() => [
76
- Ue(r.$slots, "header", {}, () => [
77
- x(A(xr))
75
+ header: x(() => [
76
+ $e(r.$slots, "header", {}, () => [
77
+ R(A(xr))
78
78
  ])
79
79
  ]),
80
- aside: R(() => [
81
- Ue(r.$slots, "aside", {}, () => [
82
- x(A(Rr), { menuAttr: r.menuAttr }, null, 8, ["menuAttr"])
80
+ aside: x(() => [
81
+ $e(r.$slots, "aside", {}, () => [
82
+ R(A(Rr), { menuAttr: r.menuAttr }, null, 8, ["menuAttr"])
83
83
  ])
84
84
  ]),
85
- tab: R(() => [
86
- Ue(r.$slots, "tab", {}, () => [
87
- x(A(Qr), { tabsAttr: r.tabsAttr }, null, 8, ["tabsAttr"])
85
+ tab: x(() => [
86
+ $e(r.$slots, "tab", {}, () => [
87
+ R(A(Qr), { tabsAttr: r.tabsAttr }, null, 8, ["tabsAttr"])
88
88
  ])
89
89
  ]),
90
+ banner: x(() => [
91
+ $e(r.$slots, "banner")
92
+ ]),
90
93
  _: 3
91
94
  /* FORWARDED */
92
95
  }, 16, ["transition-config"]));
@@ -106,7 +109,7 @@ function Mo(n) {
106
109
  return Tr() ? (kr(n), !0) : !1;
107
110
  }
108
111
  function ys(n, e = !0) {
109
- Pr() ? Re(n) : e ? n() : Fe(n);
112
+ Pr() ? Qe(n) : e ? n() : Fe(n);
110
113
  }
111
114
  function Lo(n) {
112
115
  var e;
@@ -321,8 +324,8 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
321
324
  width: o.value,
322
325
  height: r.value
323
326
  }, {
324
- default: R(() => [
325
- Ue(f.$slots, "default", {}, void 0, !0)
327
+ default: x(() => [
328
+ $e(f.$slots, "default", {}, void 0, !0)
326
329
  ]),
327
330
  _: 3
328
331
  /* FORWARDED */
@@ -364,14 +367,14 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
364
367
  "custom-class": "menu-tip-diaolg",
365
368
  onClosed: t.closeCallback
366
369
  }, {
367
- footer: R(() => [
370
+ footer: x(() => [
368
371
  $("div", xs, [
369
- x(A(Te), {
372
+ R(A(Te), {
370
373
  btnType: "default",
371
374
  size: "small",
372
375
  onClick: t.closeCallback
373
376
  }, {
374
- default: R(() => [
377
+ default: x(() => [
375
378
  ue("我知道了")
376
379
  ]),
377
380
  _: 1
@@ -379,7 +382,7 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
379
382
  }, 8, ["onClick"])
380
383
  ])
381
384
  ]),
382
- default: R(() => [
385
+ default: x(() => [
383
386
  $("div", {
384
387
  class: "content",
385
388
  innerHTML: t.content
@@ -562,7 +565,7 @@ const js = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
562
565
  }, Wt = (n) => {
563
566
  const e = new URL(n, location.origin);
564
567
  return ["true", "1"].includes(e.searchParams.get("autoSetToken")) && (e.searchParams.append("access_token", Zr()), e.searchParams.delete("autoSetToken")), e.toString();
565
- }, ei = "v1", ti = Qe(`/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 = Eo.get("/user-info"), ri = en.post("/tenant/page"), si = async () => {
566
569
  const [n, e] = await ni().run({});
567
570
  return n ? { personalConfig: null } : (Ns(e), { personalConfig: e });
568
571
  }, ii = async () => {
@@ -674,7 +677,7 @@ function Li(n) {
674
677
  return !!jn && jn in n;
675
678
  }
676
679
  var xi = Function.prototype, Ri = xi.toString;
677
- function He(n) {
680
+ function Ne(n) {
678
681
  if (n != null) {
679
682
  try {
680
683
  return Ri.call(n);
@@ -694,16 +697,16 @@ function Wi(n) {
694
697
  if (!dt(n) || Li(n))
695
698
  return !1;
696
699
  var e = Fo(n) ? Ji : ji;
697
- return e.test(He(n));
700
+ return e.test(Ne(n));
698
701
  }
699
702
  function zi(n, e) {
700
703
  return n == null ? void 0 : n[e];
701
704
  }
702
- function Ne(n, e) {
705
+ function Ue(n, e) {
703
706
  var t = zi(n, e);
704
707
  return Wi(t) ? t : void 0;
705
708
  }
706
- var st = Ne(be, "Map"), it = Ne(Object, "create");
709
+ var st = Ue(be, "Map"), it = Ue(Object, "create");
707
710
  function Vi() {
708
711
  this.__data__ = it ? it(null) : {}, this.size = 0;
709
712
  }
@@ -730,23 +733,23 @@ function oa(n, e) {
730
733
  var t = this.__data__;
731
734
  return this.size += this.has(n) ? 0 : 1, t[n] = it && e === void 0 ? na : e, this;
732
735
  }
733
- function Le(n) {
736
+ function xe(n) {
734
737
  var e = -1, t = n == null ? 0 : n.length;
735
738
  for (this.clear(); ++e < t; ) {
736
739
  var o = n[e];
737
740
  this.set(o[0], o[1]);
738
741
  }
739
742
  }
740
- Le.prototype.clear = Vi;
741
- Le.prototype.delete = qi;
742
- Le.prototype.get = Zi;
743
- Le.prototype.has = ta;
744
- Le.prototype.set = oa;
743
+ xe.prototype.clear = Vi;
744
+ xe.prototype.delete = qi;
745
+ xe.prototype.get = Zi;
746
+ xe.prototype.has = ta;
747
+ xe.prototype.set = oa;
745
748
  function ra() {
746
749
  this.size = 0, this.__data__ = {
747
- hash: new Le(),
750
+ hash: new xe(),
748
751
  map: new (st || Se)(),
749
- string: new Le()
752
+ string: new xe()
750
753
  };
751
754
  }
752
755
  function sa(n) {
@@ -810,7 +813,7 @@ function pa(n, e) {
810
813
  }
811
814
  var Hn = function() {
812
815
  try {
813
- var n = Ne(Object, "defineProperty");
816
+ var n = Ue(Object, "defineProperty");
814
817
  return n({}, "", {}), n;
815
818
  } catch {
816
819
  }
@@ -998,9 +1001,9 @@ function wc(n) {
998
1001
  function Cc(n) {
999
1002
  return sr(n, hn, rr);
1000
1003
  }
1001
- var zt = Ne(be, "DataView"), Vt = Ne(be, "Promise"), qt = Ne(be, "Set"), Kt = Ne(be, "WeakMap"), Kn = "[object Map]", Ic = "[object Object]", Gn = "[object Promise]", Xn = "[object Set]", Zn = "[object WeakMap]", Yn = "[object DataView]", Sc = He(zt), Ec = He(st), Tc = He(Vt), kc = He(qt), Pc = He(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]", Sc = Ne(zt), Ec = Ne(st), Tc = Ne(Vt), kc = Ne(qt), Pc = Ne(Kt), we = ut;
1002
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) {
1003
- var e = ut(n), t = e == Ic ? n.constructor : void 0, o = t ? He(t) : "";
1006
+ var e = ut(n), t = e == Ic ? n.constructor : void 0, o = t ? Ne(t) : "";
1004
1007
  if (o)
1005
1008
  switch (o) {
1006
1009
  case Sc:
@@ -1350,7 +1353,7 @@ const wt = (n, e = "") => {
1350
1353
  ao.value = !0;
1351
1354
  const [n, e] = await Jl().run({ userType: 1 });
1352
1355
  return ao.value = !1, n ? (io.value = [], { navConfig: [] }) : (io.value = e, Ae([{ key: "appcategorys", value: e }]), { navConfig: e });
1353
- }, Wl = "v1", zl = tn.get("/organization/authProjectTree"), Vl = Qe(`/api/customer/customer/${Wl}`), ql = Vl.get("/project/list"), Kl = async () => {
1356
+ }, Wl = "v1", zl = tn.get("/organization/authProjectTree"), Vl = je(`/api/customer/customer/${Wl}`), ql = Vl.get("/project/list"), Kl = async () => {
1354
1357
  var o, r;
1355
1358
  const n = Zt();
1356
1359
  let e = [], t = null;
@@ -1371,7 +1374,7 @@ const wt = (n, e = "") => {
1371
1374
  }
1372
1375
  }
1373
1376
  return xo(t || { id: 0 }), Io((t == null ? void 0 : t.id) || 0), { projectConfig: e, currentProject: t };
1374
- }, Gl = "v1", Xl = nn.get("/visitor/login/with-default", (n) => (n.public = !0, n)), Zl = nn.get("/visitor/appearance/with-default", (n) => (n.public = !0, n)), Yl = Qe(`/api/portal/manager/${Gl}`), eu = Yl.get("/basics/home/info"), tu = Be.get("/menu/personal-setting"), nu = async () => {
1377
+ }, Gl = "v1", Xl = nn.get("/visitor/login/with-default", (n) => (n.public = !0, n)), Zl = nn.get("/visitor/appearance/with-default", (n) => (n.public = !0, n)), Yl = je(`/api/portal/manager/${Gl}`), eu = Yl.get("/basics/home/info"), tu = Be.get("/menu/personal-setting"), nu = async () => {
1375
1378
  const [n, e] = await Xl().run();
1376
1379
  return n ? { loginConfig: null } : { loginConfig: e };
1377
1380
  }, ou = async () => {
@@ -1398,33 +1401,33 @@ const wt = (n, e = "") => {
1398
1401
  /** 打开弹窗 */
1399
1402
  openDialog: a
1400
1403
  }), (s, u) => (H(), de("div", iu, [
1401
- x(A(us), {
1404
+ R(A(us), {
1402
1405
  title: A(Q)("主题设置").value,
1403
1406
  modelValue: t.value,
1404
1407
  "onUpdate:modelValue": u[5] || (u[5] = (b) => t.value = b),
1405
1408
  "body-style": { padding: 0 },
1406
1409
  direction: "rtl"
1407
1410
  }, {
1408
- footer: R(() => [
1411
+ footer: x(() => [
1409
1412
  $("div", hu, [
1410
- x(A(Te), {
1413
+ R(A(Te), {
1411
1414
  size: "middle",
1412
1415
  onClick: u[4] || (u[4] = (b) => t.value = !1),
1413
1416
  style: { "margin-right": "12px" }
1414
1417
  }, {
1415
- default: R(() => [
1418
+ default: x(() => [
1416
1419
  ue("取消")
1417
1420
  ]),
1418
1421
  _: 1
1419
1422
  /* STABLE */
1420
1423
  }),
1421
- x(A(Te), {
1424
+ R(A(Te), {
1422
1425
  btnType: "primary",
1423
1426
  size: "middle",
1424
1427
  loading: i.value,
1425
1428
  onClick: c
1426
1429
  }, {
1427
- default: R(() => [
1430
+ default: x(() => [
1428
1431
  ue("确定")
1429
1432
  ]),
1430
1433
  _: 1
@@ -1432,7 +1435,7 @@ const wt = (n, e = "") => {
1432
1435
  }, 8, ["loading"])
1433
1436
  ])
1434
1437
  ]),
1435
- default: R(() => [
1438
+ default: x(() => [
1436
1439
  $("div", au, [
1437
1440
  $(
1438
1441
  "p",
@@ -1449,12 +1452,12 @@ const wt = (n, e = "") => {
1449
1452
  width: "180",
1450
1453
  height: "120"
1451
1454
  }, null, 8, du),
1452
- x(A(kn), {
1455
+ R(A(kn), {
1453
1456
  modelValue: o.value,
1454
1457
  "onUpdate:modelValue": u[0] || (u[0] = (b) => o.value = b),
1455
1458
  onChange: u[1] || (u[1] = (b) => l(1))
1456
1459
  }, {
1457
- default: R(() => [
1460
+ default: x(() => [
1458
1461
  ue(
1459
1462
  Y(A(Q)("弹出式菜单栏").value),
1460
1463
  1
@@ -1472,12 +1475,12 @@ const wt = (n, e = "") => {
1472
1475
  width: "180",
1473
1476
  height: "120"
1474
1477
  }, null, 8, fu),
1475
- x(A(kn), {
1478
+ R(A(kn), {
1476
1479
  modelValue: r.value,
1477
1480
  "onUpdate:modelValue": u[2] || (u[2] = (b) => r.value = b),
1478
1481
  onChange: u[3] || (u[3] = (b) => l(2))
1479
1482
  }, {
1480
- default: R(() => [
1483
+ default: x(() => [
1481
1484
  ue(
1482
1485
  Y(A(Q)("内嵌式菜单栏").value),
1483
1486
  1
@@ -1525,7 +1528,7 @@ const wt = (n, e = "") => {
1525
1528
  };
1526
1529
  l();
1527
1530
  });
1528
- return Re(async () => {
1531
+ return Qe(async () => {
1529
1532
  if (await o(), n()) return;
1530
1533
  await ii(), await si();
1531
1534
  const a = Yt();
@@ -1741,7 +1744,7 @@ const wt = (n, e = "") => {
1741
1744
  });
1742
1745
  const { enter: p } = lt();
1743
1746
  return D.tab.addEventListener("onToggleFullScreen", p), { fontColor: r, backgroudColor: i, borderColor: a };
1744
- }, Qt = je(), 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, Su = () => {
1745
1748
  const n = () => {
1746
1749
  te.unloadAllMicroApp(), D.nav.setItems([]), D.menu.setItems([]), D.tab.setItems([]), jo();
1747
1750
  };
@@ -1762,7 +1765,7 @@ const wt = (n, e = "") => {
1762
1765
  }), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`), sessionStorage.removeItem("has-subapp"));
1763
1766
  }, et = () => {
1764
1767
  const n = Ge(), { entryMenu: e } = Ot(), { unloadRoute: t } = pr();
1765
- let { mainAppName: o = "", microAppName: r = "", microApps: i = [] } = je();
1768
+ let { mainAppName: o = "", microAppName: r = "", microApps: i = [] } = He();
1766
1769
  !o && r && (i = [{ name: r }]);
1767
1770
  const a = i.map((g) => g.name), l = () => {
1768
1771
  D.menu.setItems([]), D.menu.setActiveItem(""), D.tab.setItems([]), D.tab.setActiveItem("");
@@ -1909,7 +1912,7 @@ const wt = (n, e = "") => {
1909
1912
  };
1910
1913
  }, Ot = () => {
1911
1914
  const n = Ge();
1912
- let { mainAppName: e = "", microAppName: t = "", microApps: o = [] } = je();
1915
+ let { mainAppName: e = "", microAppName: t = "", microApps: o = [] } = He();
1913
1916
  return !e && t && (o = [{ name: t }]), o.map((i) => i.name), { entryMenu: async (i) => {
1914
1917
  var y;
1915
1918
  const { currentMenu: a, route: l = {}, microPath: c = "" } = i;
@@ -1991,7 +1994,7 @@ const wt = (n, e = "") => {
1991
1994
  }
1992
1995
  }
1993
1996
  return S.map((L) => L.apps).flat() ?? [];
1994
- }, g = je().microApps ?? [], f = g.filter((S) => S.public);
1997
+ }, g = He().microApps ?? [], f = g.filter((S) => S.public);
1995
1998
  if (f.length) {
1996
1999
  const S = f.find(
1997
2000
  (E) => s.path.startsWith("/" + E.name) || s.path.startsWith(E.name)
@@ -2081,7 +2084,7 @@ const wt = (n, e = "") => {
2081
2084
  F.routeKeepAliveVisible = !0, F.excludeRoutes = [];
2082
2085
  }, 100);
2083
2086
  } }), Tu = () => {
2084
- const n = jr(), e = mu(), t = je(), o = {
2087
+ const n = jr(), e = mu(), t = He(), o = {
2085
2088
  logout: "/api/justauth/oauth-server/v1/visitor/logout"
2086
2089
  }, r = async () => {
2087
2090
  const l = `${location.origin}/`, c = {
@@ -2120,7 +2123,7 @@ const wt = (n, e = "") => {
2120
2123
  $personSetDialog: e
2121
2124
  };
2122
2125
  }, ku = Eo.get("/convert/tenant"), Pu = en.get("/platform/withdefault"), fr = () => {
2123
- const n = je(), e = T(!1), t = T(""), o = T(""), r = () => {
2126
+ const n = He(), e = T(!1), t = T(""), o = T(""), r = () => {
2124
2127
  t.value = Et().id, o.value = Co().tenantId, e.value = !0;
2125
2128
  };
2126
2129
  D.nav.addEventListener("changeEnterpriseHandle", () => {
@@ -2296,7 +2299,7 @@ const wt = (n, e = "") => {
2296
2299
  }
2297
2300
  });
2298
2301
  };
2299
- Re(async () => {
2302
+ Qe(async () => {
2300
2303
  await Tt(), i();
2301
2304
  }), St(() => {
2302
2305
  e.value && e.value.disconnect(), e.value = null;
@@ -2346,7 +2349,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2346
2349
  onClick: b[1] || (b[1] = (g) => c())
2347
2350
  },
2348
2351
  [
2349
- Ue(u.$slots, "default", {}, void 0, !0)
2352
+ $e(u.$slots, "default", {}, void 0, !0)
2350
2353
  ],
2351
2354
  34
2352
2355
  /* CLASS, NEED_HYDRATION */
@@ -2374,8 +2377,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2374
2377
  "grid-num": t.gridNum,
2375
2378
  onItemClick: (s) => r(c)
2376
2379
  }, {
2377
- default: R(() => [
2378
- i.showFn(c) ? Ue(i.$slots, "default", {
2380
+ default: x(() => [
2381
+ i.showFn(c) ? $e(i.$slots, "default", {
2379
2382
  key: 0,
2380
2383
  index: c
2381
2384
  }, void 0, !0) : U("v-if", !0)
@@ -2402,8 +2405,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2402
2405
  onDblclick: i[9] || (i[9] = ne((a) => a.stopPropagation(), ["stop"]))
2403
2406
  },
2404
2407
  [
2405
- x(A(ae), { content: "左上" }, {
2406
- default: R(() => [
2408
+ R(A(ae), { content: "左上" }, {
2409
+ default: x(() => [
2407
2410
  $("div", {
2408
2411
  class: "icon icon-top-left",
2409
2412
  onClick: i[0] || (i[0] = ne((a) => o("leftUp"), ["stop"]))
@@ -2412,8 +2415,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2412
2415
  _: 1
2413
2416
  /* STABLE */
2414
2417
  }),
2415
- x(A(ae), { content: "上" }, {
2416
- default: R(() => [
2418
+ R(A(ae), { content: "上" }, {
2419
+ default: x(() => [
2417
2420
  $("div", {
2418
2421
  class: "icon icon-top",
2419
2422
  onClick: i[1] || (i[1] = ne((a) => o("up"), ["stop"]))
@@ -2422,8 +2425,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2422
2425
  _: 1
2423
2426
  /* STABLE */
2424
2427
  }),
2425
- x(A(ae), { content: "右上" }, {
2426
- default: R(() => [
2428
+ R(A(ae), { content: "右上" }, {
2429
+ default: x(() => [
2427
2430
  $("div", {
2428
2431
  class: "icon icon-top-right",
2429
2432
  onClick: i[2] || (i[2] = ne((a) => o("rightUp"), ["stop"]))
@@ -2432,8 +2435,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2432
2435
  _: 1
2433
2436
  /* STABLE */
2434
2437
  }),
2435
- x(A(ae), { content: "左" }, {
2436
- default: R(() => [
2438
+ R(A(ae), { content: "左" }, {
2439
+ default: x(() => [
2437
2440
  $("div", {
2438
2441
  class: "icon icon-left",
2439
2442
  onClick: i[3] || (i[3] = ne((a) => o("left"), ["stop"]))
@@ -2442,8 +2445,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2442
2445
  _: 1
2443
2446
  /* STABLE */
2444
2447
  }),
2445
- x(A(ae), { content: "自动" }, {
2446
- default: R(() => [
2448
+ R(A(ae), { content: "自动" }, {
2449
+ default: x(() => [
2447
2450
  $("div", {
2448
2451
  class: "icon icon-auto",
2449
2452
  onClick: i[4] || (i[4] = ne((a) => o("auto"), ["stop"]))
@@ -2452,8 +2455,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2452
2455
  _: 1
2453
2456
  /* STABLE */
2454
2457
  }),
2455
- x(A(ae), { content: "右" }, {
2456
- default: R(() => [
2458
+ R(A(ae), { content: "右" }, {
2459
+ default: x(() => [
2457
2460
  $("div", {
2458
2461
  class: "icon icon-right",
2459
2462
  onClick: i[5] || (i[5] = ne((a) => o("right"), ["stop"]))
@@ -2462,8 +2465,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2462
2465
  _: 1
2463
2466
  /* STABLE */
2464
2467
  }),
2465
- x(A(ae), { content: "左下" }, {
2466
- default: R(() => [
2468
+ R(A(ae), { content: "左下" }, {
2469
+ default: x(() => [
2467
2470
  $("div", {
2468
2471
  class: "icon icon-bottom-left",
2469
2472
  onClick: i[6] || (i[6] = ne((a) => o("leftDown"), ["stop"]))
@@ -2472,8 +2475,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2472
2475
  _: 1
2473
2476
  /* STABLE */
2474
2477
  }),
2475
- x(A(ae), { content: "下" }, {
2476
- default: R(() => [
2478
+ R(A(ae), { content: "下" }, {
2479
+ default: x(() => [
2477
2480
  $("div", {
2478
2481
  class: "icon icon-bottom",
2479
2482
  onClick: i[7] || (i[7] = ne((a) => o("down"), ["stop"]))
@@ -2482,8 +2485,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2482
2485
  _: 1
2483
2486
  /* STABLE */
2484
2487
  }),
2485
- x(A(ae), { content: "右下" }, {
2486
- default: R(() => [
2488
+ R(A(ae), { content: "右下" }, {
2489
+ default: x(() => [
2487
2490
  $("div", {
2488
2491
  class: "icon icon-bottom-right",
2489
2492
  onClick: i[8] || (i[8] = ne((a) => o("rightDown"), ["stop"]))
@@ -2597,12 +2600,12 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2597
2600
  });
2598
2601
  }
2599
2602
  ), (_, w) => (H(), de("div", nd, [
2600
- x(A(Bo), {
2603
+ R(A(Bo), {
2601
2604
  spinning: t.loading,
2602
2605
  type: "component",
2603
2606
  tip: "加载中..."
2604
2607
  }, {
2605
- default: R(() => [
2608
+ default: x(() => [
2606
2609
  $("div", od, [
2607
2610
  $("div", rd, [
2608
2611
  $("div", sd, [
@@ -2639,9 +2642,9 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2639
2642
  onDblclick: w[2] || (w[2] = ne((k) => k.stopPropagation(), ["stop"]))
2640
2643
  },
2641
2644
  [
2642
- x(A(ae), { content: "声音" }, {
2643
- default: R(() => [
2644
- x(A(De), {
2645
+ R(A(ae), { content: "声音" }, {
2646
+ default: x(() => [
2647
+ R(A(De), {
2645
2648
  class: "icon icon-volume",
2646
2649
  icon: r.value ? "muted" : "volume",
2647
2650
  onClick: ne(g, ["stop"])
@@ -2650,9 +2653,9 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2650
2653
  _: 1
2651
2654
  /* STABLE */
2652
2655
  }),
2653
- x(A(ae), { content: "截图" }, {
2654
- default: R(() => [
2655
- x(A(De), {
2656
+ R(A(ae), { content: "截图" }, {
2657
+ default: x(() => [
2658
+ R(A(De), {
2656
2659
  class: "icon icon-screenshot",
2657
2660
  icon: "screenshot",
2658
2661
  onClick: ne(y, ["stop"])
@@ -2665,7 +2668,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2665
2668
  key: 0,
2666
2669
  content: "聚焦-"
2667
2670
  }, {
2668
- default: R(() => [
2671
+ default: x(() => [
2669
2672
  ["live", "polling"].includes(t.type) ? (H(), q(A(De), {
2670
2673
  key: 0,
2671
2674
  class: "icon icon-shrink",
@@ -2680,7 +2683,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2680
2683
  key: 1,
2681
2684
  content: "聚焦+"
2682
2685
  }, {
2683
- default: R(() => [
2686
+ default: x(() => [
2684
2687
  ["live", "polling"].includes(t.type) ? (H(), q(A(De), {
2685
2688
  key: 0,
2686
2689
  class: "icon icon-enlarge",
@@ -2695,7 +2698,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2695
2698
  key: 2,
2696
2699
  content: "方向控制"
2697
2700
  }, {
2698
- default: R(() => [
2701
+ default: x(() => [
2699
2702
  ["live", "polling"].includes(t.type) ? (H(), q(A(De), {
2700
2703
  key: 0,
2701
2704
  class: "icon icon-direction-control",
@@ -2758,13 +2761,13 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2758
2761
  zoom: c
2759
2762
  });
2760
2763
  };
2761
- return Re(() => {
2764
+ return Qe(() => {
2762
2765
  i();
2763
2766
  }), re(() => t.value, () => {
2764
2767
  i();
2765
2768
  }, {
2766
2769
  deep: !0
2767
- }), () => x(We, null, [e.default({
2770
+ }), () => R(We, null, [e.default({
2768
2771
  videoUrl: r.value,
2769
2772
  loading: o.value,
2770
2773
  onDirectionControl: a,
@@ -2778,7 +2781,7 @@ function gd(n) {
2778
2781
  isFullscreen: r
2779
2782
  } = lt(t);
2780
2783
  return {
2781
- render: () => x(Zu, {
2784
+ render: () => R(Zu, {
2782
2785
  ref: t,
2783
2786
  gridNum: n.gridNum,
2784
2787
  activeIndex: e.value,
@@ -2789,7 +2792,7 @@ function gd(n) {
2789
2792
  index: a
2790
2793
  }) => {
2791
2794
  const l = n.deviceList[a];
2792
- return x(hd, {
2795
+ return R(hd, {
2793
2796
  deviceInfo: l
2794
2797
  }, {
2795
2798
  default: ({
@@ -2797,7 +2800,7 @@ function gd(n) {
2797
2800
  onDirectionControl: s,
2798
2801
  onZoomControl: u,
2799
2802
  loading: b
2800
- }) => x(fd, {
2803
+ }) => R(fd, {
2801
2804
  type: "live",
2802
2805
  loading: b,
2803
2806
  videoUrl: c,
@@ -2857,11 +2860,11 @@ const Ad = /* @__PURE__ */ $(
2857
2860
  "header-style": { display: "flex", justifyContent: "space-between", alignItems: "center" },
2858
2861
  onClosed: a.closeCallback
2859
2862
  }, {
2860
- header: R(() => [
2863
+ header: x(() => [
2861
2864
  Ad,
2862
- x(A(ae), { content: "页面全屏" }, {
2863
- default: R(() => [
2864
- x(A(De), {
2865
+ R(A(ae), { content: "页面全屏" }, {
2866
+ default: x(() => [
2867
+ R(A(De), {
2865
2868
  class: "icon",
2866
2869
  icon: "fullscreen2",
2867
2870
  iconColor: "#999",
@@ -2872,7 +2875,7 @@ const Ad = /* @__PURE__ */ $(
2872
2875
  /* STABLE */
2873
2876
  })
2874
2877
  ]),
2875
- default: R(() => [
2878
+ default: x(() => [
2876
2879
  t.value ? (H(), q(A(o), { key: 0 })) : U("v-if", !0)
2877
2880
  ]),
2878
2881
  _: 1
@@ -2926,7 +2929,7 @@ const Ad = /* @__PURE__ */ $(
2926
2929
  }
2927
2930
  }));
2928
2931
  };
2929
- return Re(async () => {
2932
+ return Qe(async () => {
2930
2933
  await Tt(), r();
2931
2934
  }), St(() => {
2932
2935
  t.value && t.value.disconnect(), t.value = null;
@@ -2937,7 +2940,7 @@ const Ad = /* @__PURE__ */ $(
2937
2940
  connectLinkVideoSocket: r
2938
2941
  };
2939
2942
  };
2940
- class $e extends Error {
2943
+ class Me extends Error {
2941
2944
  /** Constructs a new instance of {@link @microsoft/signalr.HttpError}.
2942
2945
  *
2943
2946
  * @param {string} errorMessage A descriptive error message.
@@ -3108,7 +3111,7 @@ class G {
3108
3111
  }
3109
3112
  function ct(n, e) {
3110
3113
  let t = "";
3111
- return xe(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;
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;
3112
3115
  }
3113
3116
  function Sd(n) {
3114
3117
  const e = new Uint8Array(n);
@@ -3118,14 +3121,14 @@ function Sd(n) {
3118
3121
  t += `0x${r}${o.toString(16)} `;
3119
3122
  }), t.substr(0, t.length - 1);
3120
3123
  }
3121
- function xe(n) {
3124
+ function Re(n) {
3122
3125
  return n && typeof ArrayBuffer < "u" && (n instanceof ArrayBuffer || // Sometimes we get an ArrayBuffer that doesn't satisfy instanceof
3123
3126
  n.constructor && n.constructor.name === "ArrayBuffer");
3124
3127
  }
3125
3128
  async function mr(n, e, t, o, r, i) {
3126
3129
  const a = {}, [l, c] = Ke();
3127
3130
  a[l] = c, n.log(h.Trace, `(${e} transport) sending data. ${ct(r, i.logMessageContent)}.`);
3128
- const s = xe(r) ? "arraybuffer" : "text", u = await t.post(o, {
3131
+ const s = Re(r) ? "arraybuffer" : "text", u = await t.post(o, {
3129
3132
  content: r,
3130
3133
  headers: { ...a, ...i.headers },
3131
3134
  responseType: s,
@@ -3250,7 +3253,7 @@ class $d extends Dt {
3250
3253
  t.abort(), this._logger.log(h.Warning, "Timeout from HTTP request."), o = new yn();
3251
3254
  }, c);
3252
3255
  }
3253
- e.content === "" && (e.content = void 0), e.content && (e.headers = e.headers || {}, xe(e.content) ? e.headers["Content-Type"] = "application/octet-stream" : e.headers["Content-Type"] = "text/plain;charset=UTF-8");
3256
+ e.content === "" && (e.content = void 0), e.content && (e.headers = e.headers || {}, Re(e.content) ? e.headers["Content-Type"] = "application/octet-stream" : e.headers["Content-Type"] = "text/plain;charset=UTF-8");
3254
3257
  let i;
3255
3258
  try {
3256
3259
  i = await this._fetchType(e.url, {
@@ -3273,7 +3276,7 @@ class $d extends Dt {
3273
3276
  }
3274
3277
  if (!i.ok) {
3275
3278
  const c = await ho(i, "text");
3276
- throw new $e(c || i.statusText, i.status);
3279
+ throw new Me(c || i.statusText, i.status);
3277
3280
  }
3278
3281
  const l = await ho(i, e.responseType);
3279
3282
  return new Ar(i.status, i.statusText, l);
@@ -3310,16 +3313,16 @@ class Md extends Dt {
3310
3313
  send(e) {
3311
3314
  return e.abortSignal && e.abortSignal.aborted ? Promise.reject(new ve()) : e.method ? e.url ? new Promise((t, o) => {
3312
3315
  const r = new XMLHttpRequest();
3313
- r.open(e.method, e.url, !0), r.withCredentials = e.withCredentials === void 0 ? !0 : e.withCredentials, r.setRequestHeader("X-Requested-With", "XMLHttpRequest"), e.content === "" && (e.content = void 0), e.content && (xe(e.content) ? r.setRequestHeader("Content-Type", "application/octet-stream") : r.setRequestHeader("Content-Type", "text/plain;charset=UTF-8"));
3316
+ r.open(e.method, e.url, !0), r.withCredentials = e.withCredentials === void 0 ? !0 : e.withCredentials, r.setRequestHeader("X-Requested-With", "XMLHttpRequest"), e.content === "" && (e.content = void 0), e.content && (Re(e.content) ? r.setRequestHeader("Content-Type", "application/octet-stream") : r.setRequestHeader("Content-Type", "text/plain;charset=UTF-8"));
3314
3317
  const i = e.headers;
3315
3318
  i && Object.keys(i).forEach((a) => {
3316
3319
  r.setRequestHeader(a, i[a]);
3317
3320
  }), e.responseType && (r.responseType = e.responseType), e.abortSignal && (e.abortSignal.onabort = () => {
3318
3321
  r.abort(), o(new ve());
3319
3322
  }), e.timeout && (r.timeout = e.timeout), r.onload = () => {
3320
- e.abortSignal && (e.abortSignal.onabort = null), r.status >= 200 && r.status < 300 ? t(new Ar(r.status, r.statusText, r.response || r.responseText)) : o(new $e(r.response || r.responseText || r.statusText, r.status));
3323
+ e.abortSignal && (e.abortSignal.onabort = null), r.status >= 200 && r.status < 300 ? t(new Ar(r.status, r.statusText, r.response || r.responseText)) : o(new Me(r.response || r.responseText || r.statusText, r.status));
3321
3324
  }, r.onerror = () => {
3322
- this._logger.log(h.Warning, `Error from HTTP request. ${r.status}: ${r.statusText}.`), o(new $e(r.statusText, r.status));
3325
+ this._logger.log(h.Warning, `Error from HTTP request. ${r.status}: ${r.statusText}.`), o(new Me(r.statusText, r.status));
3323
3326
  }, r.ontimeout = () => {
3324
3327
  this._logger.log(h.Warning, "Timeout from HTTP request."), o(new yn());
3325
3328
  }, r.send(e.content);
@@ -3364,7 +3367,7 @@ class xd {
3364
3367
  }
3365
3368
  parseHandshakeResponse(e) {
3366
3369
  let t, o;
3367
- if (xe(e)) {
3370
+ if (Re(e)) {
3368
3371
  const l = new Uint8Array(e), c = l.indexOf(ge.RecordSeparatorCode);
3369
3372
  if (c === -1)
3370
3373
  throw new Error("Message is incomplete.");
@@ -3419,7 +3422,7 @@ class Qd {
3419
3422
  let r = () => {
3420
3423
  }, i = () => {
3421
3424
  };
3422
- xe(t) ? this._bufferedByteCount += t.byteLength : this._bufferedByteCount += t.length, this._bufferedByteCount >= this._bufferSize && (o = new Promise((a, l) => {
3425
+ Re(t) ? this._bufferedByteCount += t.byteLength : this._bufferedByteCount += t.length, this._bufferedByteCount >= this._bufferSize && (o = new Promise((a, l) => {
3423
3426
  r = a, i = l;
3424
3427
  })), this._messages.push(new jd(t, this._totalMessageCount, r, i));
3425
3428
  }
@@ -3435,7 +3438,7 @@ class Qd {
3435
3438
  for (let o = 0; o < this._messages.length; o++) {
3436
3439
  const r = this._messages[o];
3437
3440
  if (r._id <= e.sequenceId)
3438
- t = o, xe(r._message) ? this._bufferedByteCount -= r._message.byteLength : this._bufferedByteCount -= r._message.length, r._resolver();
3441
+ t = o, Re(r._message) ? this._bufferedByteCount -= r._message.byteLength : this._bufferedByteCount -= r._message.length, r._resolver();
3439
3442
  else if (this._bufferedByteCount < this._bufferSize)
3440
3443
  r._resolver();
3441
3444
  else
@@ -4020,10 +4023,10 @@ class go {
4020
4023
  return this._retryDelays[e.previousRetryCount];
4021
4024
  }
4022
4025
  }
4023
- class Me {
4026
+ class Le {
4024
4027
  }
4025
- Me.Authorization = "Authorization";
4026
- Me.Cookie = "Cookie";
4028
+ Le.Authorization = "Authorization";
4029
+ Le.Cookie = "Cookie";
4027
4030
  class Jd extends Dt {
4028
4031
  constructor(e, t) {
4029
4032
  super(), this._innerClient = e, this._accessTokenFactory = t;
@@ -4035,7 +4038,7 @@ class Jd extends Dt {
4035
4038
  return t && o.statusCode === 401 && this._accessTokenFactory ? (this._accessToken = await this._accessTokenFactory(), this._setAuthorizationHeader(e), await this._innerClient.send(e)) : o;
4036
4039
  }
4037
4040
  _setAuthorizationHeader(e) {
4038
- e.headers || (e.headers = {}), this._accessToken ? e.headers[Me.Authorization] = `Bearer ${this._accessToken}` : this._accessTokenFactory && e.headers[Me.Authorization] && delete e.headers[Me.Authorization];
4041
+ e.headers || (e.headers = {}), this._accessToken ? e.headers[Le.Authorization] = `Bearer ${this._accessToken}` : this._accessTokenFactory && e.headers[Le.Authorization] && delete e.headers[Le.Authorization];
4039
4042
  }
4040
4043
  getCookieString(e) {
4041
4044
  return this._innerClient.getCookieString(e);
@@ -4084,7 +4087,7 @@ class Ao {
4084
4087
  const l = `${e}&_=${Date.now()}`;
4085
4088
  this._logger.log(h.Trace, `(LongPolling transport) polling: ${l}.`);
4086
4089
  const c = await this._httpClient.get(l, a);
4087
- c.statusCode !== 200 ? (this._logger.log(h.Error, `(LongPolling transport) Unexpected response code: ${c.statusCode}.`), this._closeError = new $e(c.statusText || "", c.statusCode), this._running = !1) : this._running = !0, this._receiving = this._poll(this._url, a);
4090
+ c.statusCode !== 200 ? (this._logger.log(h.Error, `(LongPolling transport) Unexpected response code: ${c.statusCode}.`), this._closeError = new Me(c.statusText || "", c.statusCode), this._running = !1) : this._running = !0, this._receiving = this._poll(this._url, a);
4088
4091
  }
4089
4092
  async _poll(e, t) {
4090
4093
  try {
@@ -4093,7 +4096,7 @@ class Ao {
4093
4096
  const o = `${e}&_=${Date.now()}`;
4094
4097
  this._logger.log(h.Trace, `(LongPolling transport) polling: ${o}.`);
4095
4098
  const r = await this._httpClient.get(o, t);
4096
- r.statusCode === 204 ? (this._logger.log(h.Information, "(LongPolling transport) Poll terminated by server."), this._running = !1) : r.statusCode !== 200 ? (this._logger.log(h.Error, `(LongPolling transport) Unexpected response code: ${r.statusCode}.`), this._closeError = new $e(r.statusText || "", r.statusCode), this._running = !1) : r.content ? (this._logger.log(h.Trace, `(LongPolling transport) data received. ${ct(r.content, this._options.logMessageContent)}.`), this.onreceive && this.onreceive(r.content)) : this._logger.log(h.Trace, "(LongPolling transport) Poll timed out, reissuing.");
4099
+ r.statusCode === 204 ? (this._logger.log(h.Information, "(LongPolling transport) Poll terminated by server."), this._running = !1) : r.statusCode !== 200 ? (this._logger.log(h.Error, `(LongPolling transport) Unexpected response code: ${r.statusCode}.`), this._closeError = new Me(r.statusText || "", r.statusCode), this._running = !1) : r.content ? (this._logger.log(h.Trace, `(LongPolling transport) data received. ${ct(r.content, this._options.logMessageContent)}.`), this.onreceive && this.onreceive(r.content)) : this._logger.log(h.Trace, "(LongPolling transport) Poll timed out, reissuing.");
4097
4100
  } catch (o) {
4098
4101
  this._running ? o instanceof yn ? this._logger.log(h.Trace, "(LongPolling transport) Poll timed out, reissuing.") : (this._closeError = o, this._running = !1) : this._logger.log(h.Trace, `(LongPolling transport) Poll errored after shutdown: ${o.message}`);
4099
4102
  }
@@ -4121,7 +4124,7 @@ class Ao {
4121
4124
  } catch (a) {
4122
4125
  i = a;
4123
4126
  }
4124
- i ? i instanceof $e && (i.statusCode === 404 ? this._logger.log(h.Trace, "(LongPolling transport) A 404 response was returned from sending a DELETE request.") : this._logger.log(h.Trace, `(LongPolling transport) Error sending a DELETE request: ${i}`)) : this._logger.log(h.Trace, "(LongPolling transport) DELETE request accepted.");
4127
+ i ? i instanceof Me && (i.statusCode === 404 ? this._logger.log(h.Trace, "(LongPolling transport) A 404 response was returned from sending a DELETE request.") : this._logger.log(h.Trace, `(LongPolling transport) Error sending a DELETE request: ${i}`)) : this._logger.log(h.Trace, "(LongPolling transport) DELETE request accepted.");
4125
4128
  } finally {
4126
4129
  this._logger.log(h.Trace, "(LongPolling transport) Stop finished."), this._raiseOnClose();
4127
4130
  }
@@ -4197,7 +4200,7 @@ class Vd {
4197
4200
  let c = !1;
4198
4201
  if (G.isNode || G.isReactNative) {
4199
4202
  const s = {}, [u, b] = Ke();
4200
- s[u] = b, o && (s[Me.Authorization] = `Bearer ${o}`), l && (s[Me.Cookie] = l), a = new this._webSocketConstructor(e, void 0, {
4203
+ s[u] = b, o && (s[Le.Authorization] = `Bearer ${o}`), l && (s[Le.Cookie] = l), a = new this._webSocketConstructor(e, void 0, {
4201
4204
  headers: { ...s, ...this._headers }
4202
4205
  });
4203
4206
  } else
@@ -4348,7 +4351,7 @@ class qd {
4348
4351
  return (!l.negotiateVersion || l.negotiateVersion < 1) && (l.connectionToken = l.connectionId), l.useStatefulReconnect && this._options._useStatefulReconnect !== !0 ? Promise.reject(new fo("Client didn't negotiate Stateful Reconnect but the server did.")) : l;
4349
4352
  } catch (a) {
4350
4353
  let l = "Failed to complete negotiation with the server: " + a;
4351
- return a instanceof $e && a.statusCode === 404 && (l = l + " Either this is not a SignalR endpoint or there is a proxy blocking the connection."), this._logger.log(h.Error, l), Promise.reject(new fo(l));
4354
+ return a instanceof Me && a.statusCode === 404 && (l = l + " Either this is not a SignalR endpoint or there is a proxy blocking the connection."), this._logger.log(h.Error, l), Promise.reject(new fo(l));
4352
4355
  }
4353
4356
  }
4354
4357
  _createConnectUrl(e, t) {
@@ -4694,7 +4697,7 @@ class ep {
4694
4697
  function tp(n) {
4695
4698
  return n.log !== void 0;
4696
4699
  }
4697
- let { baseURL: np } = je();
4700
+ let { baseURL: np } = He();
4698
4701
  const op = () => {
4699
4702
  const n = new ep().withUrl(`${np}/api/tool/event-bus`, {
4700
4703
  skipNegotiation: !0,
@@ -4705,12 +4708,12 @@ const op = () => {
4705
4708
  }), n.onclose((e) => {
4706
4709
  }), n.onreconnected(() => {
4707
4710
  }), n;
4708
- }, $t = "v1", rp = Qe(`/api/graphics-engine/component/${$t}`, (n) => (n.customErrorMessage = () => "", n)), sp = Qe(`/api/portal/manager/${$t}`, (n) => (n.customErrorMessage = () => "", n)), ip = Qe(`/api/speech-base/speech/${$t}`, (n) => (n.customErrorMessage = () => "", n)), vo = rp.get("/component/client/heartbeat"), ap = sp.get("/basics/by-alias");
4711
+ }, $t = "v1", rp = je(`/api/graphics-engine/component/${$t}`, (n) => (n.customErrorMessage = () => "", n)), sp = je(`/api/portal/manager/${$t}`, (n) => (n.customErrorMessage = () => "", n)), ip = je(`/api/speech-base/speech/${$t}`, (n) => (n.customErrorMessage = () => "", n)), vo = rp.get("/component/client/heartbeat"), ap = sp.get("/basics/by-alias");
4709
4712
  ip.post("/control/callBack");
4710
- const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.get("/permissionset/application"), up = () => {
4713
+ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.get("/permissionset/application"), up = () => {
4711
4714
  const n = on(), { entryApp: e } = bt.hooks.useEntryApp(), { entryMenu: t } = bt.hooks.useEntryMenu();
4712
4715
  let o = null;
4713
- return Re(async () => {
4716
+ return Qe(async () => {
4714
4717
  var d;
4715
4718
  let r = ((d = n.meta) == null ? void 0 : d.showLayout) ?? !0, { showLayout: i = !0 } = n.query;
4716
4719
  if (i === "false" && (i = !1), !r || !i) return;
@@ -4999,7 +5002,7 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
4999
5002
  open: Sr,
5000
5003
  close: Lt
5001
5004
  }), (O, I) => (H(), de("div", Cp, [
5002
- x(A(sn), {
5005
+ R(A(sn), {
5003
5006
  modelValue: c.value,
5004
5007
  "onUpdate:modelValue": I[31] || (I[31] = (P) => c.value = P),
5005
5008
  type: "basic",
@@ -5011,20 +5014,20 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5011
5014
  },
5012
5015
  "destroy-on-close": ""
5013
5016
  }, {
5014
- header: R(() => [
5017
+ header: x(() => [
5015
5018
  ue(
5016
5019
  Y(A(Q)("告警处理").value),
5017
5020
  1
5018
5021
  /* TEXT */
5019
5022
  )
5020
5023
  ]),
5021
- footer: R(() => [
5024
+ footer: x(() => [
5022
5025
  $("div", kp, [
5023
- x(A(Te), {
5026
+ R(A(Te), {
5024
5027
  size: "middle",
5025
5028
  onClick: Cr
5026
5029
  }, {
5027
- default: R(() => [
5030
+ default: x(() => [
5028
5031
  ue(
5029
5032
  Y(A(Q)("取消").value),
5030
5033
  1
@@ -5034,11 +5037,11 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5034
5037
  _: 1
5035
5038
  /* STABLE */
5036
5039
  }),
5037
- x(A(Te), {
5040
+ R(A(Te), {
5038
5041
  size: "middle",
5039
5042
  onClick: I[29] || (I[29] = (P) => Sn(1))
5040
5043
  }, {
5041
- default: R(() => [
5044
+ default: x(() => [
5042
5045
  ue(
5043
5046
  Y(A(Q)("结束处理").value),
5044
5047
  1
@@ -5048,12 +5051,12 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5048
5051
  _: 1
5049
5052
  /* STABLE */
5050
5053
  }),
5051
- x(A(Te), {
5054
+ R(A(Te), {
5052
5055
  btnType: "primary",
5053
5056
  size: "middle",
5054
5057
  onClick: I[30] || (I[30] = (P) => Sn(2))
5055
5058
  }, {
5056
- default: R(() => [
5059
+ default: x(() => [
5057
5060
  ue(
5058
5061
  Y(A(Q)("继续处理").value),
5059
5062
  1
@@ -5065,9 +5068,9 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5065
5068
  })
5066
5069
  ])
5067
5070
  ]),
5068
- default: R(() => [
5069
- x(A(Bo), { spinning: i.value }, {
5070
- default: R(() => [
5071
+ default: x(() => [
5072
+ R(A(Bo), { spinning: i.value }, {
5073
+ default: x(() => [
5071
5074
  $(
5072
5075
  "div",
5073
5076
  {
@@ -5076,13 +5079,13 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5076
5079
  class: "handle-alarm-dialog-content"
5077
5080
  },
5078
5081
  [
5079
- x(A(fs), {
5082
+ R(A(fs), {
5080
5083
  style: { width: "100%", height: "100%", "align-items": "center" },
5081
5084
  cols: 1,
5082
5085
  alignType: "horizontal"
5083
5086
  }, {
5084
- default: R(() => [
5085
- x(A(_e), {
5087
+ default: x(() => [
5088
+ R(A(_e), {
5086
5089
  label: A(Q)("处理类型").value,
5087
5090
  required: "",
5088
5091
  type: "select",
@@ -5150,10 +5153,10 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5150
5153
  marginBottom: "20px",
5151
5154
  marginRight: "0"
5152
5155
  }, {
5153
- default: R(() => [
5156
+ default: x(() => [
5154
5157
  $("div", Ip, [
5155
5158
  $("div", Sp, [
5156
- x(A(ps), {
5159
+ R(A(ps), {
5157
5160
  borderType: "underline",
5158
5161
  props: { disabled: "_disabled", label: "name" },
5159
5162
  modelValue: s.value.reportPosition,
@@ -5172,7 +5175,7 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5172
5175
  filter: !0,
5173
5176
  allowClear: !0
5174
5177
  }, null, 8, ["modelValue", "path", "keyword", "data", "placeholder", "disabled"]),
5175
- x(A(Pn), {
5178
+ R(A(Pn), {
5176
5179
  ref: "testInput",
5177
5180
  modelValue: s.value.customPath,
5178
5181
  "onUpdate:modelValue": I[11] || (I[11] = (P) => s.value.customPath = P),
@@ -5181,14 +5184,14 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5181
5184
  maxlength: "20"
5182
5185
  }, null, 8, ["modelValue", "disabled"])
5183
5186
  ]),
5184
- x(A(Bn), {
5187
+ R(A(Bn), {
5185
5188
  modelValue: B.value,
5186
5189
  "onUpdate:modelValue": I[12] || (I[12] = (P) => B.value = P),
5187
5190
  checkboxType: "default",
5188
5191
  onChange: ft,
5189
5192
  size: "middle"
5190
5193
  }, {
5191
- default: R(() => [
5194
+ default: x(() => [
5192
5195
  ue(
5193
5196
  Y(A(Q)("告警对象位置").value),
5194
5197
  1
@@ -5213,9 +5216,9 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5213
5216
  marginBottom: "20px",
5214
5217
  marginRight: "0"
5215
5218
  }, {
5216
- default: R(() => [
5219
+ default: x(() => [
5217
5220
  $("div", Ep, [
5218
- x(A(Pn), {
5221
+ R(A(Pn), {
5219
5222
  maxlength: "20",
5220
5223
  disabled: C.value,
5221
5224
  modelValue: s.value.reportTheme,
@@ -5223,14 +5226,14 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5223
5226
  placeholder: m.value,
5224
5227
  onChange: ie
5225
5228
  }, null, 8, ["disabled", "modelValue", "placeholder"]),
5226
- x(A(Bn), {
5229
+ R(A(Bn), {
5227
5230
  modelValue: M.value,
5228
5231
  "onUpdate:modelValue": I[15] || (I[15] = (P) => M.value = P),
5229
5232
  checkboxType: "default",
5230
5233
  onChange: oe,
5231
5234
  size: "middle"
5232
5235
  }, {
5233
- default: R(() => [
5236
+ default: x(() => [
5234
5237
  ue(
5235
5238
  Y(A(Q)("告警对象").value),
5236
5239
  1
@@ -5314,9 +5317,9 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5314
5317
  marginBottom: "30px",
5315
5318
  marginRight: "0"
5316
5319
  }, {
5317
- default: R(() => [
5320
+ default: x(() => [
5318
5321
  $("div", Tp, [
5319
- x(A(ds), {
5322
+ R(A(ds), {
5320
5323
  class: "select",
5321
5324
  modelValue: s.value.interval,
5322
5325
  "onUpdate:modelValue": I[25] || (I[25] = (P) => s.value.interval = P),
@@ -5475,7 +5478,7 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5475
5478
  btnType: "primary-text",
5476
5479
  size: "middle"
5477
5480
  }, {
5478
- default: R(() => [
5481
+ default: x(() => [
5479
5482
  ue(
5480
5483
  Y(A(Q)("设备详情").value),
5481
5484
  1
@@ -5492,7 +5495,7 @@ const cp = Qe(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5492
5495
  onClick: ne(r, ["stop"]),
5493
5496
  size: "middle"
5494
5497
  }, {
5495
- default: R(() => [
5498
+ default: x(() => [
5496
5499
  ue(
5497
5500
  Y(A(Q)("处理").value),
5498
5501
  1
@@ -5646,7 +5649,7 @@ const Xp = () => {
5646
5649
  __name: "index",
5647
5650
  setup(n) {
5648
5651
  const { alarmSocket: e, creatAlarmSocket: t, audioObj: o, audioAlarmRef: r, handleAlarmVue: i } = Xp();
5649
- return Re(async () => {
5652
+ return Qe(async () => {
5650
5653
  await Tt(), t();
5651
5654
  }), St(() => {
5652
5655
  e.value && e.value.disconnect(), e.value = null;
@@ -5654,7 +5657,7 @@ const Xp = () => {
5654
5657
  We,
5655
5658
  null,
5656
5659
  [
5657
- x(A(i)),
5660
+ R(A(i)),
5658
5661
  $("audio", {
5659
5662
  src: A(o).playPath,
5660
5663
  class: "audio-alarm-level",
@@ -5678,9 +5681,9 @@ const Xp = () => {
5678
5681
  wu();
5679
5682
  const { fontColor: p, backgroudColor: d, borderColor: m } = Iu();
5680
5683
  return Ru(), Qu(c), ju(), Nu(), yd(), up(), (_, w) => (H(), de("div", ef, [
5681
- x(A(Os), { platformInitNextTick: A(a) }, {
5682
- default: R(() => [
5683
- x(gs, {
5684
+ R(A(Os), { platformInitNextTick: A(a) }, {
5685
+ default: x(() => [
5686
+ R(gs, {
5684
5687
  showLayout: t.value,
5685
5688
  excludeRoutes: o.value,
5686
5689
  routeKeepAliveVisible: r.value,
@@ -5692,7 +5695,7 @@ const Xp = () => {
5692
5695
  /* STABLE */
5693
5696
  }, 8, ["platformInitNextTick"]),
5694
5697
  U(" 切换租户 "),
5695
- x(A(Nr), {
5698
+ R(A(Nr), {
5696
5699
  visible: A(g),
5697
5700
  "onUpdate:visible": w[0] || (w[0] = (k) => Mr(g) ? g.value = k : null),
5698
5701
  userId: A(f),
@@ -5700,7 +5703,7 @@ const Xp = () => {
5700
5703
  onConfirm: A(y)
5701
5704
  }, null, 8, ["visible", "userId", "tenantId", "onConfirm"]),
5702
5705
  U(" 修改密码 "),
5703
- x(
5706
+ R(
5704
5707
  A(Hr),
5705
5708
  {
5706
5709
  ref_key: "$changePwd",
@@ -5711,7 +5714,7 @@ const Xp = () => {
5711
5714
  /* NEED_PATCH */
5712
5715
  ),
5713
5716
  U(" 个性化设置 "),
5714
- x(
5717
+ R(
5715
5718
  A(Au),
5716
5719
  {
5717
5720
  ref_key: "$personSetDialog",
@@ -5722,7 +5725,7 @@ const Xp = () => {
5722
5725
  /* NEED_PATCH */
5723
5726
  ),
5724
5727
  U(" 告警 "),
5725
- x(A(Yp))
5728
+ R(A(Yp))
5726
5729
  ]));
5727
5730
  }
5728
5731
  }), nf = /* @__PURE__ */ Ie(tf, [["__scopeId", "data-v-6e85c13f"]]);
@@ -5730,15 +5733,15 @@ T("@das-fed/web");
5730
5733
  const of = [
5731
5734
  {
5732
5735
  path: ke,
5733
- component: () => import("./index-Cq8Fro8z.js")
5736
+ component: () => import("./index-DGFe8dVS.js")
5734
5737
  },
5735
5738
  {
5736
5739
  path: Je,
5737
- component: () => import("./index-DyKCvROV.js")
5740
+ component: () => import("./index-csrvxtZY.js")
5738
5741
  },
5739
5742
  {
5740
5743
  path: Do,
5741
- component: () => import("./index-D38gLa5D.js")
5744
+ component: () => import("./index-BmlzT8Nw.js")
5742
5745
  }
5743
5746
  ], qf = {
5744
5747
  routes: of,