@das-fed/web 6.4.0-dev.18 → 6.4.0-dev.19

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 (38) hide show
  1. package/{index-B-XOjXDJ.js → index-C-ieIBXO.js} +1 -1
  2. package/{index-B3m4y2dw.js → index-C8k4wrGJ.js} +14 -14
  3. package/index-C8k4wrGJ.js.gz +0 -0
  4. package/{index-bUBu99dZ.js → index-CicbdbyR.js} +1 -1
  5. package/index-CicbdbyR.js.gz +0 -0
  6. package/{index-CvndlsmJ.js → index-CwfFnT6z.js} +222 -221
  7. package/index-CwfFnT6z.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.gz +0 -0
  11. package/packages/i18n/index.js.gz +0 -0
  12. package/packages/layout/index.js +2 -2
  13. package/packages/layout/index.js.gz +0 -0
  14. package/packages/layout/style.css +2 -2
  15. package/packages/layout/style.css.gz +0 -0
  16. package/packages/main-app-framework/{index-DGMLWSQr.js → index-Bcz8SW2I.js} +1 -1
  17. package/packages/main-app-framework/{index-xl1hHq_y.js → index-CfM1liO6.js} +14 -14
  18. package/packages/main-app-framework/index-CfM1liO6.js.gz +0 -0
  19. package/packages/main-app-framework/{index-Bw0-EQjV.js → index-DRQHVvCk.js} +354 -353
  20. package/packages/main-app-framework/index-DRQHVvCk.js.gz +0 -0
  21. package/packages/main-app-framework/{index-BryL7_iB.js → index-E1pACiHI.js} +1 -1
  22. package/packages/main-app-framework/index-E1pACiHI.js.gz +0 -0
  23. package/packages/main-app-framework/index.js +1 -1
  24. package/packages/main-app-framework/style.css +1 -1
  25. package/packages/main-app-framework/style.css.gz +0 -0
  26. package/packages/micro-frontend/index.js +2 -2
  27. package/packages/micro-frontend/index.js.gz +0 -0
  28. package/packages/micro-frontend/style.css +1 -1
  29. package/packages/style/style.css.gz +0 -0
  30. package/packages/theme/index.js.gz +0 -0
  31. package/style.css +2 -2
  32. package/style.css.gz +0 -0
  33. package/index-B3m4y2dw.js.gz +0 -0
  34. package/index-CvndlsmJ.js.gz +0 -0
  35. package/index-bUBu99dZ.js.gz +0 -0
  36. package/packages/main-app-framework/index-BryL7_iB.js.gz +0 -0
  37. package/packages/main-app-framework/index-Bw0-EQjV.js.gz +0 -0
  38. package/packages/main-app-framework/index-xl1hHq_y.js.gz +0 -0
@@ -1,4 +1,4 @@
1
- import { defineComponent as pe, computed as Ce, openBlock as H, createBlock as V, unref as m, mergeProps as Sr, withCtx as L, renderSlot as $e, createVNode as x, getCurrentScope as Tr, onScopeDispose as kr, getCurrentInstance as Pr, onMounted as Qe, nextTick as Fe, ref as S, 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 Z, createCommentVNode as N, 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";
1
+ import { defineComponent as pe, computed as Ce, openBlock as H, createBlock as V, unref as v, mergeProps as Sr, withCtx as L, renderSlot as $e, createVNode as x, getCurrentScope as Tr, onScopeDispose as kr, getCurrentInstance as Pr, onMounted as Qe, nextTick as Fe, ref as S, 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 Z, createCommentVNode as N, 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";
@@ -18,7 +18,7 @@ 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";
21
- import { DasButton as Te } from "@das-fed/ui/packages/components/button/index";
21
+ import { DasButton as ke } from "@das-fed/ui/packages/components/button/index";
22
22
  import { vDasTooltip as es } from "@das-fed/ui/packages/components/text-tooltip/index";
23
23
  import { tokenStorage as ts } from "@das-fed/utils/create-api-service/sso";
24
24
  import { setPersonalInfo as ns } from "@das-fed/utils/common-info/set-personal-info";
@@ -40,9 +40,9 @@ import { DasInput as Pn } from "@das-fed/ui/packages/components/input/index";
40
40
  import { DasCheckbox as Bn } from "@das-fed/ui/packages/components/checkbox/index";
41
41
  import { DasForm as fs } from "@das-fed/ui/packages/components/form/index";
42
42
  import { DasFormItem as _e } from "@das-fed/ui/packages/components/form-item/index";
43
- const nt = "/", ke = "/application", Oo = [
43
+ const nt = "/", Ie = "/application", Oo = [
44
44
  { value: nt, label: Q("首页").value, path: nt, fixed: !0 },
45
- { value: ke, label: Q("应用").value, path: ke, fixed: !0 }
45
+ { value: Ie, label: Q("应用").value, path: Ie, fixed: !0 }
46
46
  ], Je = "/outerView", Do = "/placeholder", hs = [
47
47
  { value: "0", label: Q("主题设置").value },
48
48
  { value: "1", label: Q("个人中心").value },
@@ -71,20 +71,20 @@ const nt = "/", ke = "/application", Oo = [
71
71
  excludeRoutes: e.excludeRoutes,
72
72
  routeKeepAliveVisible: e.routeKeepAliveVisible
73
73
  }));
74
- return (r, i) => (H(), V(m(Lr), Sr({ "transition-config": t.value }, o.value), {
74
+ return (r, i) => (H(), V(v(Lr), Sr({ "transition-config": t.value }, o.value), {
75
75
  header: L(() => [
76
76
  $e(r.$slots, "header", {}, () => [
77
- x(m(xr))
77
+ x(v(xr))
78
78
  ])
79
79
  ]),
80
80
  aside: L(() => [
81
81
  $e(r.$slots, "aside", {}, () => [
82
- x(m(Rr), { menuAttr: r.menuAttr }, null, 8, ["menuAttr"])
82
+ x(v(Rr), { menuAttr: r.menuAttr }, null, 8, ["menuAttr"])
83
83
  ])
84
84
  ]),
85
85
  tab: L(() => [
86
86
  $e(r.$slots, "tab", {}, () => [
87
- x(m(Qr), { tabsAttr: r.tabsAttr }, null, 8, ["tabsAttr"])
87
+ x(v(Qr), { tabsAttr: r.tabsAttr }, null, 8, ["tabsAttr"])
88
88
  ])
89
89
  ]),
90
90
  banner: L(() => [
@@ -100,7 +100,7 @@ const cn = typeof window < "u", As = (n) => typeof n == "string", ms = () => {
100
100
  };
101
101
  cn && ((On = window == null ? void 0 : window.navigator) != null && On.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
102
102
  function $o(n) {
103
- return typeof n == "function" ? n() : m(n);
103
+ return typeof n == "function" ? n() : v(n);
104
104
  }
105
105
  function vs(n) {
106
106
  return n;
@@ -184,9 +184,9 @@ function lt(n, e = {}) {
184
184
  let a = Mn[0];
185
185
  const l = Cs(() => {
186
186
  if (t) {
187
- for (const y of Mn)
188
- if (y[1] in t)
189
- return a = y, !0;
187
+ for (const _ of Mn)
188
+ if (_[1] in t)
189
+ return a = _, !0;
190
190
  } else
191
191
  return !1;
192
192
  return !1;
@@ -198,8 +198,8 @@ function lt(n, e = {}) {
198
198
  if (!l.value)
199
199
  return;
200
200
  await g();
201
- const y = Lo(r);
202
- y && (await y[c](), i.value = !0);
201
+ const _ = Lo(r);
202
+ _ && (await _[c](), i.value = !0);
203
203
  }
204
204
  async function w() {
205
205
  i.value ? await g() : await p();
@@ -267,16 +267,16 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
267
267
  color: "rgba(0,0,0,.15)",
268
268
  fontSize: 16
269
269
  }), c = (p, w) => {
270
- const y = document.createElement("span");
271
- y.innerHTML = p, y.style.fontSize = w + "px", y.style.fontFamily = "sans-serif", y.style.visibility = "hidden", document.body.appendChild(y);
272
- const f = y.getBoundingClientRect();
273
- o.value = Math.ceil(f.width) + w / 2, r.value = Math.ceil(f.height), document.body.removeChild(y);
270
+ const _ = document.createElement("span");
271
+ _.innerHTML = p, _.style.fontSize = w + "px", _.style.fontFamily = "sans-serif", _.style.visibility = "hidden", document.body.appendChild(_);
272
+ const f = _.getBoundingClientRect();
273
+ o.value = Math.ceil(f.width) + w / 2, r.value = Math.ceil(f.height), document.body.removeChild(_);
274
274
  }, s = (p) => {
275
- var y;
276
- const w = !!((y = t.value) != null && y.pageSwith);
275
+ var _;
276
+ const w = !!((_ = t.value) != null && _.pageSwith);
277
277
  a.value = p && w ? [...i] : [];
278
278
  }, u = async () => {
279
- var f, d, v, _, b, P, C;
279
+ var f, d, m, y, b, P, C;
280
280
  await (e == null ? void 0 : e.platformInitNextTick());
281
281
  const [p, w] = await Ps().run();
282
282
  if (p) return null;
@@ -284,11 +284,11 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
284
284
  i = [];
285
285
  const { name: k, phone: I } = await as();
286
286
  let T = "";
287
- if ((d = t.value) != null && d.nameSwith && k && (i.push(k), T = T + `${k} `), (v = t.value) != null && v.phoneSwith && I) {
287
+ if ((d = t.value) != null && d.nameSwith && k && (i.push(k), T = T + `${k} `), (m = t.value) != null && m.phoneSwith && I) {
288
288
  const M = I.slice(-4);
289
289
  i.push(M), T = T + `${M} `;
290
290
  }
291
- if ((_ = t.value) != null && _.textSwith && ((b = t.value) != null && b.text)) {
291
+ if ((y = t.value) != null && y.textSwith && ((b = t.value) != null && b.text)) {
292
292
  i.push(t.value.text);
293
293
  const M = t.value.text.replaceAll(`
294
294
  `, "<br/>");
@@ -304,19 +304,19 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
304
304
  return re(
305
305
  () => A.currentRoute.value,
306
306
  (p) => {
307
- var d, v, _;
308
- const w = !!((d = t.value) != null && d.pageSwith), y = ((v = p.meta) == null ? void 0 : v.showWatermark) ?? !0;
309
- let f = ((_ = p.query) == null ? void 0 : _.showWatermark) ?? !0;
310
- f === "false" && (f = !1), s(w && !!(y && f));
307
+ var d, m, y;
308
+ const w = !!((d = t.value) != null && d.pageSwith), _ = ((m = p.meta) == null ? void 0 : m.showWatermark) ?? !0;
309
+ let f = ((y = p.query) == null ? void 0 : y.showWatermark) ?? !0;
310
+ f === "false" && (f = !1), s(w && !!(_ && f));
311
311
  },
312
312
  { immediate: !0 }
313
313
  ), te.addEventListenerFromMicroApp("systemconfig:watermark-change", () => {
314
- var y, f;
314
+ var _, f;
315
315
  u();
316
- const p = !!((y = t.value) != null && y.pageSwith);
316
+ const p = !!((_ = t.value) != null && _.pageSwith);
317
317
  let w = ((f = g.query) == null ? void 0 : f.showWatermark) ?? !0;
318
318
  w === "false" && (w = !1), s(!!(p && w));
319
- }), (p, w) => (H(), V(m(ls), {
319
+ }), (p, w) => (H(), V(v(ls), {
320
320
  class: "watermark",
321
321
  font: l,
322
322
  zIndex: 2147483647,
@@ -331,16 +331,16 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
331
331
  /* FORWARDED */
332
332
  }, 8, ["font", "content", "width", "height"]));
333
333
  }
334
- }), Ie = (n, e) => {
334
+ }), Ee = (n, e) => {
335
335
  const t = n.__vccOpts || n;
336
336
  for (const [o, r] of e)
337
337
  t[o] = r;
338
338
  return t;
339
- }, Os = /* @__PURE__ */ Ie(Bs, [["__scopeId", "data-v-933399ef"]]), Ds = {
339
+ }, Os = /* @__PURE__ */ Ee(Bs, [["__scopeId", "data-v-6be90334"]]), Ds = {
340
340
  "--menu-tip-diaolg-content": "#212121",
341
341
  "--menu-tip-diaolg-divide": "#d9d9d9",
342
342
  "--menu-tip-diaolg-info": "#999999"
343
- }, $s = (n) => (bo("data-v-72bc9a80"), n = n(), wo(), n), Ms = ["innerHTML"], Ls = /* @__PURE__ */ $s(() => /* @__PURE__ */ $(
343
+ }, $s = (n) => (bo("data-v-f9de08eb"), n = n(), wo(), n), Ms = ["innerHTML"], Ls = /* @__PURE__ */ $s(() => /* @__PURE__ */ $(
344
344
  "div",
345
345
  { class: "divide" },
346
346
  null,
@@ -356,7 +356,7 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
356
356
  },
357
357
  setup(n) {
358
358
  const e = S(!0);
359
- return (t, o) => (H(), V(m(sn), {
359
+ return (t, o) => (H(), V(v(sn), {
360
360
  modelValue: e.value,
361
361
  "onUpdate:modelValue": o[0] || (o[0] = (r) => e.value = r),
362
362
  type: "feedback",
@@ -369,7 +369,7 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
369
369
  }, {
370
370
  footer: L(() => [
371
371
  $("div", xs, [
372
- x(m(Te), {
372
+ x(v(ke), {
373
373
  btnType: "default",
374
374
  size: "small",
375
375
  onClick: t.closeCallback
@@ -405,7 +405,7 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
405
405
  /* TEXT */
406
406
  )
407
407
  ])), [
408
- [m(es)]
408
+ [v(es)]
409
409
  ])),
410
410
  128
411
411
  /* KEYED_FRAGMENT */
@@ -419,7 +419,7 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
419
419
  /* STABLE */
420
420
  }, 8, ["modelValue", "width", "height", "title", "onClosed"]));
421
421
  }
422
- }), Qs = /* @__PURE__ */ Ie(Rs, [["__scopeId", "data-v-72bc9a80"]]), rt = ({ title: n = "", content: e = "", desc: t = [] }) => new Promise((o) => {
422
+ }), Qs = /* @__PURE__ */ Ee(Rs, [["__scopeId", "data-v-f9de08eb"]]), rt = ({ title: n = "", content: e = "", desc: t = [] }) => new Promise((o) => {
423
423
  const r = document.createElement("div");
424
424
  r.setAttribute("id", "entry-app-dialog"), document.body.appendChild(r);
425
425
  const a = he(Qs, { title: n, content: e, desc: t, closeCallback: () => {
@@ -513,11 +513,11 @@ const js = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
513
513
  }), A.forEach((p) => {
514
514
  let w = p.originalCode ? p.originalCode : p.code ? p.code : "";
515
515
  w.includes(s + ".") && (w = w.replace(s + ".", "").replaceAll(".", "-")), w.includes(u + ".") && (w = w.replace(u + ".", "").replaceAll(".", "-"));
516
- const y = {
516
+ const _ = {
517
517
  code: w,
518
518
  name: p.name
519
519
  };
520
- l[s].push(y), u && s !== u && (l["origin-auth"] || (l["origin-auth"] = {}), l["origin-auth"][u] || (l["origin-auth"][u] = []), l["origin-auth"][u].push(y));
520
+ l[s].push(_), u && s !== u && (l["origin-auth"] || (l["origin-auth"] = {}), l["origin-auth"][u] || (l["origin-auth"][u] = []), l["origin-auth"][u].push(_));
521
521
  }));
522
522
  }), o[e] = l, sessionStorage.setItem(t, JSON.stringify(o)), o;
523
523
  }, Vs = () => {
@@ -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 Ee(n) {
617
+ function Se(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
- Ee.prototype.clear = di;
625
- Ee.prototype.delete = hi;
626
- Ee.prototype.get = gi;
627
- Ee.prototype.has = Ai;
628
- Ee.prototype.set = mi;
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;
629
629
  function vi() {
630
- this.__data__ = new Ee(), this.size = 0;
630
+ this.__data__ = new Se(), this.size = 0;
631
631
  }
632
632
  function yi(n) {
633
633
  var e = this.__data__, t = e.delete(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 || Ee)(),
751
+ map: new (st || Se)(),
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 Ee) {
792
+ if (t instanceof Se) {
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 Ee(n);
801
+ var e = this.__data__ = new Se(n);
802
802
  this.size = e.size;
803
803
  }
804
804
  Ye.prototype.clear = vi;
@@ -1139,9 +1139,9 @@ function mt(n, e, t, o, r, i) {
1139
1139
  }) : cl(n) && n.forEach(function(f, d) {
1140
1140
  a.set(d, mt(f, e, t, d, n, i));
1141
1141
  });
1142
- var w = s ? c ? Cc : wc : c ? hn : fn, y = u ? void 0 : w(n);
1143
- return pa(y || n, function(f, d) {
1144
- y && (d = f, f = n[d]), Wo(a, d, mt(f, e, t, d, n, i));
1142
+ var w = s ? c ? Cc : wc : c ? hn : fn, _ = u ? void 0 : w(n);
1143
+ return pa(_ || n, function(f, d) {
1144
+ _ && (d = f, f = n[d]), Wo(a, d, mt(f, e, t, d, n, i));
1145
1145
  }), a;
1146
1146
  }
1147
1147
  var Ql = 1, jl = 4;
@@ -1181,7 +1181,7 @@ const wt = (n, e = "") => {
1181
1181
  { key: "currentTab", value: {} },
1182
1182
  { key: `preTab:${n}`, value: {} },
1183
1183
  { key: `tabMap:${n}`, value: [] }
1184
- ]), o || (o = { fixed: !0, path: ke }), { currentApp: o };
1184
+ ]), o || (o = { fixed: !0, path: Ie }), { currentApp: o };
1185
1185
  }, Nl = (n, e) => {
1186
1186
  const t = n.findIndex((i) => i.code === e), o = n.slice(0, t), r = n.slice(t + 1);
1187
1187
  return { left: o, right: r };
@@ -1238,7 +1238,7 @@ const wt = (n, e = "") => {
1238
1238
  a != null && a.children && a.children.length && (a.originalChildren = qe(a.children)), (a != null && a.expired || a != null && a.disable) && (a.children = []);
1239
1239
  }), { menus: r, originalMenus: i };
1240
1240
  }, Fl = async (n) => {
1241
- var g, p, w, y;
1241
+ var g, p, w, _;
1242
1242
  let { microApp: e = null, menuCode: t = "", menuPath: o = "", route: r = {} } = n;
1243
1243
  const i = ((g = r.meta) == null ? void 0 : g.showLayout) ?? !0;
1244
1244
  let a = ((p = r.query) == null ? void 0 : p.showLayout) ?? !0;
@@ -1257,11 +1257,11 @@ const wt = (n, e = "") => {
1257
1257
  const { instanceInfo: f } = await ui();
1258
1258
  if (f) {
1259
1259
  let d = !1;
1260
- c.forEach((_) => {
1261
- _.routeUrl === "/deviceInstance" && (_.fixed = !0, _.divise = !0, _.menuCode = _.code, _.tagName = _.tabName = "实例", _.name = f.instanceName, _.leftIcon = "change2", _.rightIcon = "change2");
1260
+ c.forEach((y) => {
1261
+ y.routeUrl === "/deviceInstance" && (y.fixed = !0, y.divise = !0, y.menuCode = y.code, y.tagName = y.tabName = "实例", y.name = f.instanceName, y.leftIcon = "change2", y.rightIcon = "change2");
1262
1262
  });
1263
- const v = Fr(f.endTime) || f.endTime == 0 || f.endTime === 253370736e6 || f.endTime === "253370736000000" ? "-" : Number(f.endTime);
1264
- if (d = Jt().endOf("day") > Jt(v).endOf("day"), !t && f.id && !d) {
1263
+ const m = Fr(f.endTime) || f.endTime == 0 || f.endTime === 253370736e6 || f.endTime === "253370736000000" ? "-" : Number(f.endTime);
1264
+ if (d = Jt().endOf("day") > Jt(m).endOf("day"), !t && f.id && !d) {
1265
1265
  const b = ye(c).find((P) => P.routeUrl === "/statisticalReport");
1266
1266
  b && (t = b.code);
1267
1267
  }
@@ -1270,21 +1270,21 @@ const wt = (n, e = "") => {
1270
1270
  if (i && a) {
1271
1271
  const d = (ce().tabMap ?? {})[e.code] ?? [];
1272
1272
  if (d.length) {
1273
- const v = d.filter(
1274
- (_) => t && t === _.code || o && o === `/${_.applicationPath}${_.path}`.replace(/\/\//g, "/") || ye(c).map((b) => b.code).includes(_.code)
1273
+ const m = d.filter(
1274
+ (y) => t && t === y.code || o && o === `/${y.applicationPath}${y.path}`.replace(/\/\//g, "/") || ye(c).map((b) => b.code).includes(y.code)
1275
1275
  );
1276
1276
  le([
1277
1277
  {
1278
1278
  key: `tabMap:${e.code}`,
1279
- value: v
1279
+ value: m
1280
1280
  }
1281
1281
  ]);
1282
1282
  }
1283
1283
  }
1284
1284
  if (!t && o) {
1285
1285
  const f = ye(c).find((d) => {
1286
- const v = `/${d.applicationPath}${d.routeUrl}`.replace(/\/\//g, "/");
1287
- return d.applicationPath && d.routeUrl && (o === v || o.startsWith(`/${v}/`));
1286
+ const m = `/${d.applicationPath}${d.routeUrl}`.replace(/\/\//g, "/");
1287
+ return d.applicationPath && d.routeUrl && (o === m || o.startsWith(`/${m}/`));
1288
1288
  });
1289
1289
  if (f)
1290
1290
  t = f.code;
@@ -1301,21 +1301,21 @@ const wt = (n, e = "") => {
1301
1301
  if (!i || !a)
1302
1302
  return { menuConfig: c, currentApp: null, currentMenu: null, query: { ...r.query, app: l } };
1303
1303
  const f = Ul(e.code, c, t);
1304
- f != null && f.currentApp && (e = f.currentApp), f != null && f.currentMenu && (A = f.currentMenu), f != null && f.currentTab && (r.query = ((y = f.currentTab) == null ? void 0 : y.query) ?? {});
1304
+ f != null && f.currentApp && (e = f.currentApp), f != null && f.currentMenu && (A = f.currentMenu), f != null && f.currentTab && (r.query = ((_ = f.currentTab) == null ? void 0 : _.query) ?? {});
1305
1305
  }
1306
- if ((e == null ? void 0 : e.routeUrl) === ke)
1306
+ if ((e == null ? void 0 : e.routeUrl) === Ie)
1307
1307
  return { menuConfig: [], currentApp: e, currentMenu: null, query: null };
1308
1308
  if (A) {
1309
1309
  const f = `/${A.applicationPath}${A.routeUrl}`;
1310
1310
  let d = "";
1311
1311
  o && o.startsWith(f) && o !== f && (d = o);
1312
- const v = { ...r.query, app: l, menu: A.code };
1312
+ const m = { ...r.query, app: l, menu: A.code };
1313
1313
  if (i && a) {
1314
- const _ = { ...e, currentMenuCode: A.code, menus: c, originalMenus: s };
1314
+ const y = { ...e, currentMenuCode: A.code, menus: c, originalMenus: s };
1315
1315
  Ae([
1316
- { key: "currentSubApp", value: _ },
1316
+ { key: "currentSubApp", value: y },
1317
1317
  { key: "currentSubAppCode", value: l },
1318
- { key: "subAppList", value: _ }
1318
+ { key: "subAppList", value: y }
1319
1319
  ]);
1320
1320
  const b = {
1321
1321
  currentApplication: e.routeUrl,
@@ -1325,7 +1325,7 @@ const wt = (n, e = "") => {
1325
1325
  code: A.code,
1326
1326
  name: (A == null ? void 0 : A.tabName) ?? A.name,
1327
1327
  path: A.routeUrl,
1328
- query: v
1328
+ query: m
1329
1329
  };
1330
1330
  le([
1331
1331
  {
@@ -1346,7 +1346,7 @@ const wt = (n, e = "") => {
1346
1346
  }
1347
1347
  ]);
1348
1348
  }
1349
- return { menuConfig: c, currentApp: e, currentMenu: A, query: v, microPath: d };
1349
+ return { menuConfig: c, currentApp: e, currentMenu: A, query: m, microPath: d };
1350
1350
  }
1351
1351
  return { menuConfig: c, currentApp: e, currentMenu: null, query: { ...r.query, app: l } };
1352
1352
  }, Jl = Be.get("/appcategory"), io = S([]), ao = S(!1), lr = async () => {
@@ -1401,8 +1401,8 @@ const wt = (n, e = "") => {
1401
1401
  /** 打开弹窗 */
1402
1402
  openDialog: a
1403
1403
  }), (s, u) => (H(), de("div", iu, [
1404
- x(m(us), {
1405
- title: m(Q)("主题设置").value,
1404
+ x(v(us), {
1405
+ title: v(Q)("主题设置").value,
1406
1406
  modelValue: t.value,
1407
1407
  "onUpdate:modelValue": u[5] || (u[5] = (A) => t.value = A),
1408
1408
  "body-style": { padding: 0 },
@@ -1410,7 +1410,7 @@ const wt = (n, e = "") => {
1410
1410
  }, {
1411
1411
  footer: L(() => [
1412
1412
  $("div", hu, [
1413
- x(m(Te), {
1413
+ x(v(ke), {
1414
1414
  size: "middle",
1415
1415
  onClick: u[4] || (u[4] = (A) => t.value = !1),
1416
1416
  style: { "margin-right": "12px" }
@@ -1421,7 +1421,7 @@ const wt = (n, e = "") => {
1421
1421
  _: 1
1422
1422
  /* STABLE */
1423
1423
  }),
1424
- x(m(Te), {
1424
+ x(v(ke), {
1425
1425
  btnType: "primary",
1426
1426
  size: "middle",
1427
1427
  loading: i.value,
@@ -1440,26 +1440,26 @@ const wt = (n, e = "") => {
1440
1440
  $(
1441
1441
  "p",
1442
1442
  cu,
1443
- Z(m(Q)("侧边菜单栏").value),
1443
+ Z(v(Q)("侧边菜单栏").value),
1444
1444
  1
1445
1445
  /* TEXT */
1446
1446
  ),
1447
1447
  $("div", lu, [
1448
1448
  $("div", uu, [
1449
1449
  $("img", {
1450
- src: m(js),
1450
+ src: v(js),
1451
1451
  alt: "",
1452
1452
  width: "180",
1453
1453
  height: "120"
1454
1454
  }, null, 8, du),
1455
- x(m(kn), {
1455
+ x(v(kn), {
1456
1456
  modelValue: o.value,
1457
1457
  "onUpdate:modelValue": u[0] || (u[0] = (A) => o.value = A),
1458
1458
  onChange: u[1] || (u[1] = (A) => l(1))
1459
1459
  }, {
1460
1460
  default: L(() => [
1461
1461
  ue(
1462
- Z(m(Q)("弹出式菜单栏").value),
1462
+ Z(v(Q)("弹出式菜单栏").value),
1463
1463
  1
1464
1464
  /* TEXT */
1465
1465
  )
@@ -1470,19 +1470,19 @@ const wt = (n, e = "") => {
1470
1470
  ]),
1471
1471
  $("div", pu, [
1472
1472
  $("img", {
1473
- src: m(Hs),
1473
+ src: v(Hs),
1474
1474
  alt: "",
1475
1475
  width: "180",
1476
1476
  height: "120"
1477
1477
  }, null, 8, fu),
1478
- x(m(kn), {
1478
+ x(v(kn), {
1479
1479
  modelValue: r.value,
1480
1480
  "onUpdate:modelValue": u[2] || (u[2] = (A) => r.value = A),
1481
1481
  onChange: u[3] || (u[3] = (A) => l(2))
1482
1482
  }, {
1483
1483
  default: L(() => [
1484
1484
  ue(
1485
- Z(m(Q)("内嵌式菜单栏").value),
1485
+ Z(v(Q)("内嵌式菜单栏").value),
1486
1486
  1
1487
1487
  /* TEXT */
1488
1488
  )
@@ -1499,7 +1499,7 @@ const wt = (n, e = "") => {
1499
1499
  }, 8, ["title", "modelValue"])
1500
1500
  ]));
1501
1501
  }
1502
- }), Au = /* @__PURE__ */ Ie(gu, [["__scopeId", "data-v-760eb710"]]), mu = () => S(null), vu = en.get("/login/history"), yu = () => {
1502
+ }), Au = /* @__PURE__ */ Ee(gu, [["__scopeId", "data-v-d271fb9a"]]), mu = () => S(null), vu = en.get("/login/history"), yu = () => {
1503
1503
  const n = () => ["/licenseActivate", "/licenseDataManage", "/sso-logout"].some((c) => new RegExp(`^${c}$`, "i").test(location.pathname)), e = (a) => {
1504
1504
  const { browserLogoImgHost: l = "", browserLogoImg: c = "" } = a || {}, s = c ? l + Xt(c) : "";
1505
1505
  Js(s), Jr(s);
@@ -1570,12 +1570,12 @@ const wt = (n, e = "") => {
1570
1570
  await n();
1571
1571
  const w = await A();
1572
1572
  if (!w) return;
1573
- const { homeConfig: y, projectConfig: f, currentProject: d, tenantList: v, personalMenuConfig: _ } = w;
1574
- u.value = ((I = Zt()) == null ? void 0 : I.flag) !== 4 && v && v.length > 1;
1573
+ const { homeConfig: _, projectConfig: f, currentProject: d, tenantList: m, personalMenuConfig: y } = w;
1574
+ u.value = ((I = Zt()) == null ? void 0 : I.flag) !== 4 && m && m.length > 1;
1575
1575
  const b = [...Oo];
1576
1576
  b.forEach((T) => {
1577
- y != null && y.appAlias && T.value === ke && (T.label = y.appAlias), y != null && y.homeAlias && T.value === nt && (T.label = y.homeAlias);
1578
- }), l.value = b, y != null && y.enable || (l.value = l.value.filter((T) => T.path === ke), t.path === nt && await e.replace(ke)), D.nav.setItems(l.value), f && f.length && (D.nav.setProjectConfig({
1577
+ _ != null && _.appAlias && T.value === Ie && (T.label = _.appAlias), _ != null && _.homeAlias && T.value === nt && (T.label = _.homeAlias);
1578
+ }), l.value = b, _ != null && _.enable || (l.value = l.value.filter((T) => T.path === Ie), t.path === nt && await e.replace(Ie)), D.nav.setItems(l.value), f && f.length && (D.nav.setProjectConfig({
1579
1579
  treeProps: {
1580
1580
  disabled: (T) => T.type !== 7
1581
1581
  },
@@ -1594,16 +1594,16 @@ const wt = (n, e = "") => {
1594
1594
  T.menus = [], T.originalMenus = [];
1595
1595
  }), Ae([{ key: "subAppList", value: k }])), g.value = !0;
1596
1596
  }), { loading: a, innerPage: l, commandList: c, layoutInited: g, initNextTick: () => new Promise((w) => {
1597
- const y = async () => {
1598
- var v;
1599
- let f = ((v = t.meta) == null ? void 0 : v.showLayout) ?? !0, { showLayout: d = !0 } = t.query;
1597
+ const _ = async () => {
1598
+ var m;
1599
+ let f = ((m = t.meta) == null ? void 0 : m.showLayout) ?? !0, { showLayout: d = !0 } = t.query;
1600
1600
  if (d === "false" && (d = !1), !f || !d || g.value) {
1601
1601
  w();
1602
1602
  return;
1603
1603
  }
1604
- setTimeout(() => y(), 50);
1604
+ setTimeout(() => _(), 50);
1605
1605
  };
1606
- y();
1606
+ _();
1607
1607
  }) };
1608
1608
  }, bu = rn.get("/data/menu-expiration"), vn = async (n) => {
1609
1609
  const [e, t] = await bu().run();
@@ -1653,9 +1653,9 @@ const wt = (n, e = "") => {
1653
1653
  () => n.currentRoute.value,
1654
1654
  async (d) => {
1655
1655
  var k, I, T, M, R, U, W;
1656
- const v = ((k = d.meta) == null ? void 0 : k.showLayout) ?? !0;
1657
- let _ = ((I = d.query) == null ? void 0 : I.showLayout) ?? !0;
1658
- if (_ === "false" && (_ = !1), !v || !_ || d.path === l && Nt(d.query, c)) return;
1656
+ const m = ((k = d.meta) == null ? void 0 : k.showLayout) ?? !0;
1657
+ let y = ((I = d.query) == null ? void 0 : I.showLayout) ?? !0;
1658
+ if (y === "false" && (y = !1), !m || !y || d.path === l && Nt(d.query, c)) return;
1659
1659
  l = qe(d.path), c = qe(d.query);
1660
1660
  const b = F().currentSubAppCode ?? "";
1661
1661
  if (!b) return;
@@ -1667,21 +1667,21 @@ const wt = (n, e = "") => {
1667
1667
  );
1668
1668
  const { deleteApp: s } = et(), { entryMenu: u } = Ot(), { reloadRoute: A, unloadRoute: g } = pr(), p = (d) => {
1669
1669
  var P;
1670
- const v = ye(_t(d.applicationCode)).find((C) => C.code === d.code), b = (((P = ce().tabMap) == null ? void 0 : P[d.applicationCode]) ?? []).find((C) => C.code === d.code);
1671
- u({ currentMenu: v, route: { path: b.path, query: b.query ?? {} } });
1670
+ const m = ye(_t(d.applicationCode)).find((C) => C.code === d.code), b = (((P = ce().tabMap) == null ? void 0 : P[d.applicationCode]) ?? []).find((C) => C.code === d.code);
1671
+ u({ currentMenu: m, route: { path: b.path, query: b.query ?? {} } });
1672
1672
  }, w = (d) => {
1673
1673
  if (!d || !d.length) return;
1674
- const v = d.map((_) => _.path);
1675
- g(v);
1676
- }, y = (d) => {
1677
- const v = F().currentSubAppCode ?? "";
1674
+ const m = d.map((y) => y.path);
1675
+ g(m);
1676
+ }, _ = (d) => {
1677
+ const m = F().currentSubAppCode ?? "";
1678
1678
  ee.innerSet = !0;
1679
- const _ = ce(), b = _.tabMap[v], P = b.findIndex((R) => R.code === d.data.code);
1679
+ const y = ce(), b = y.tabMap[m], P = b.findIndex((R) => R.code === d.data.code);
1680
1680
  if (P === -1) return;
1681
1681
  const C = () => {
1682
1682
  var W;
1683
- let U = (((W = F().appcategorys) == null ? void 0 : W.map((ie) => ie.apps).flat()) ?? []).find((ie) => ie.code === v);
1684
- U = { ...U, value: U.code, label: U.name }, s(U), D.nav.removeItem(v);
1683
+ let U = (((W = F().appcategorys) == null ? void 0 : W.map((ie) => ie.apps).flat()) ?? []).find((ie) => ie.code === m);
1684
+ U = { ...U, value: U.code, label: U.name }, s(U), D.nav.removeItem(m);
1685
1685
  };
1686
1686
  ({
1687
1687
  me: async (R) => {
@@ -1689,9 +1689,9 @@ const wt = (n, e = "") => {
1689
1689
  C();
1690
1690
  return;
1691
1691
  }
1692
- const U = _.currentCode;
1692
+ const U = y.currentCode;
1693
1693
  let W = null;
1694
- U === R.value && (P + 1 === b.length ? b[P - 1] && (W = b[P - 1]) : b[P + 1] && (W = b[P + 1])), b.splice(P, 1), w([R]), le([{ key: `tabMap:${v}`, value: b }]), W ? p(W) : le([{ key: `preTab:${v}`, value: {} }]);
1694
+ U === R.value && (P + 1 === b.length ? b[P - 1] && (W = b[P - 1]) : b[P + 1] && (W = b[P + 1])), b.splice(P, 1), w([R]), le([{ key: `tabMap:${m}`, value: b }]), W ? p(W) : le([{ key: `preTab:${m}`, value: {} }]);
1695
1695
  },
1696
1696
  all: C,
1697
1697
  other: async (R) => {
@@ -1701,46 +1701,46 @@ const wt = (n, e = "") => {
1701
1701
  query: U.query
1702
1702
  }), D.menu.setActiveItem(U.menuId), D.tab.setActiveItem(U.code);
1703
1703
  const W = b.filter((ie) => ie.code !== R.value);
1704
- W.forEach((ie) => D.tab.removeItem(ie.code)), w(W), le([{ key: `tabMap:${v}`, value: [U] }]), p(U);
1704
+ W.forEach((ie) => D.tab.removeItem(ie.code)), w(W), le([{ key: `tabMap:${m}`, value: [U] }]), p(U);
1705
1705
  },
1706
1706
  right: async (R) => {
1707
- const U = _.currentCode;
1708
- if (U !== R.value && b.findIndex((Se) => Se.code === U) > P) {
1709
- const Se = b[P];
1710
- p(Se);
1707
+ const U = y.currentCode;
1708
+ if (U !== R.value && b.findIndex((Te) => Te.code === U) > P) {
1709
+ const Te = b[P];
1710
+ p(Te);
1711
1711
  }
1712
1712
  const W = b.slice(P + 1);
1713
- W.forEach((ie) => D.tab.removeItem(ie.code)), w(W), b.splice(P + 1), le([{ key: `tabMap:${v}`, value: b }]);
1713
+ W.forEach((ie) => D.tab.removeItem(ie.code)), w(W), b.splice(P + 1), le([{ key: `tabMap:${m}`, value: b }]);
1714
1714
  }
1715
1715
  })[d.type](d.data);
1716
1716
  };
1717
1717
  D.tab.addEventListener("onItemClick", async (d) => {
1718
1718
  ce().currentCode !== d.currentCode && (ee.innerSet = !0, p(d));
1719
1719
  }), D.tab.addEventListener("onItemRemove", (d) => {
1720
- const v = ce(), _ = F().currentSubAppCode ?? "";
1721
- v.tabMap[_].findIndex((C) => C.code === d.code) !== -1 && (At(d.applicationCode, [d.code]), y({ type: "me", data: d }));
1720
+ const m = ce(), y = F().currentSubAppCode ?? "";
1721
+ m.tabMap[y].findIndex((C) => C.code === d.code) !== -1 && (At(d.applicationCode, [d.code]), _({ type: "me", data: d }));
1722
1722
  }), D.tab.addEventListener("onMenuClick", (d) => {
1723
- let v = [];
1724
- const _ = ce().tabMap[d.applicationCode] ?? [];
1723
+ let m = [];
1724
+ const y = ce().tabMap[d.applicationCode] ?? [];
1725
1725
  if (d.type.key === "right") {
1726
- const b = _.findIndex((P) => P.code === d.data.value);
1727
- v = _.slice(b + 1);
1726
+ const b = y.findIndex((P) => P.code === d.data.value);
1727
+ m = y.slice(b + 1);
1728
1728
  }
1729
- d.type.key === "other" && (v = _.filter((b) => b.code !== d.data.value)), d.type.key === "all" && (v = [..._]), At(
1729
+ d.type.key === "other" && (m = y.filter((b) => b.code !== d.data.value)), d.type.key === "all" && (m = [...y]), At(
1730
1730
  d.applicationCode,
1731
- v.map((b) => b.code)
1732
- ), y({ type: d.type.key, data: d.data });
1731
+ m.map((b) => b.code)
1732
+ ), _({ type: d.type.key, data: d.data });
1733
1733
  }), D.tab.addEventListener("onPageRefresh", async (d) => {
1734
1734
  if (!d || d.path === Je) return;
1735
1735
  At(d.applicationCode, [d.code]);
1736
- const v = ye(_t(d.applicationCode)).find((P) => P.code === d.code);
1737
- if (!v) return;
1738
- if (v.routeUrl !== d.path) {
1739
- A([d.path]), g([`/${d.applicationPath}${v.routeUrl}`]), await u({ currentMenu: v });
1736
+ const m = ye(_t(d.applicationCode)).find((P) => P.code === d.code);
1737
+ if (!m) return;
1738
+ if (m.routeUrl !== d.path) {
1739
+ A([d.path]), g([`/${d.applicationPath}${m.routeUrl}`]), await u({ currentMenu: m });
1740
1740
  return;
1741
1741
  }
1742
- const _ = { app: v.applicationCode, menu: v.code }, b = { ...d.query };
1743
- Nt(_, b) || await u({ currentMenu: v }), A([d.path]);
1742
+ const y = { app: m.applicationCode, menu: m.code }, b = { ...d.query };
1743
+ Nt(y, b) || await u({ currentMenu: m }), A([d.path]);
1744
1744
  });
1745
1745
  const { enter: f } = lt();
1746
1746
  return D.tab.addEventListener("onToggleFullScreen", f), { fontColor: r, backgroudColor: i, borderColor: a };
@@ -1773,28 +1773,28 @@ const wt = (n, e = "") => {
1773
1773
  D.menu.setItems([]), D.menu.setActiveItem(""), D.tab.setItems([]), D.tab.setActiveItem("");
1774
1774
  }, c = async (g) => {
1775
1775
  if (g.routeUrl && !a.includes(g.routeUrl)) return !0;
1776
- const p = g.code ?? "", y = (F().subAppList ?? []).find((b) => b.code === p);
1777
- let f = [], d = [], v = !1;
1778
- if (y && (f = y.menus ?? []), !f.length) {
1776
+ const p = g.code ?? "", _ = (F().subAppList ?? []).find((b) => b.code === p);
1777
+ let f = [], d = [], m = !1;
1778
+ if (_ && (f = _.menus ?? []), !f.length) {
1779
1779
  const { menus: b, originalMenus: P, err: C } = await mn(p);
1780
1780
  if (C) return !1;
1781
1781
  f = b ?? [], d = P ?? [];
1782
1782
  }
1783
- if (f.length ? wt(f) || (await rt({ title: "提示", content: "此应用菜单已过期/已收回/配置有误<br/>无法使用" }), v = !0) : (await rt({ title: "提示", content: "此应用未配置菜单/无菜单权限<br/>无法使用" }), v = !0), v) return !1;
1784
- const _ = { ...g, menus: f, originalMenus: d };
1785
- return Ae([{ key: "subAppList", value: _ }]), !0;
1783
+ if (f.length ? wt(f) || (await rt({ title: "提示", content: "此应用菜单已过期/已收回/配置有误<br/>无法使用" }), m = !0) : (await rt({ title: "提示", content: "此应用未配置菜单/无菜单权限<br/>无法使用" }), m = !0), m) return !1;
1784
+ const y = { ...g, menus: f, originalMenus: d };
1785
+ return Ae([{ key: "subAppList", value: y }]), !0;
1786
1786
  }, s = async (g) => {
1787
- var U, W, ie, Se, ft;
1788
- const { microApp: p = null, menuCode: w = "", menuPath: y = "", route: f = {} } = g;
1787
+ var U, W, ie, Te, ft;
1788
+ const { microApp: p = null, menuCode: w = "", menuPath: _ = "", route: f = {} } = g;
1789
1789
  let d = f;
1790
- if (l(), !p && y) {
1791
- if (!(a && a.find((G) => y.startsWith("/" + G) || y.startsWith(G)))) return;
1792
- n.push({ path: y, query: d.query });
1790
+ if (l(), !p && _) {
1791
+ if (!(a && a.find((G) => _.startsWith("/" + G) || _.startsWith(G)))) return;
1792
+ n.push({ path: _, query: d.query });
1793
1793
  return;
1794
1794
  }
1795
- const v = ((U = d.meta) == null ? void 0 : U.showLayout) ?? !0;
1796
- let _ = ((W = d.query) == null ? void 0 : W.showLayout) ?? !0;
1797
- _ === "false" && (_ = !1);
1795
+ const m = ((U = d.meta) == null ? void 0 : U.showLayout) ?? !0;
1796
+ let y = ((W = d.query) == null ? void 0 : W.showLayout) ?? !0;
1797
+ y === "false" && (y = !1);
1798
1798
  const b = (p == null ? void 0 : p.openType) ?? 1, P = (p == null ? void 0 : p.type) ?? 1;
1799
1799
  if (p.routeUrl && !a.includes(p.routeUrl)) {
1800
1800
  const oe = ((ie = F()) == null ? void 0 : ie.subAppList) ?? [];
@@ -1828,22 +1828,22 @@ const wt = (n, e = "") => {
1828
1828
  currentMenu: I = null,
1829
1829
  microPath: T = "",
1830
1830
  query: M = {}
1831
- } = await Fl({ microApp: p, menuCode: w, menuPath: y, route: d });
1831
+ } = await Fl({ microApp: p, menuCode: w, menuPath: _, route: d });
1832
1832
  if (I && (d = {
1833
1833
  path: T || `/${I.applicationPath}${I.routeUrl}`.replace(/\/\//g, "/"),
1834
1834
  query: { ...M, app: I.applicationCode, menu: I.code },
1835
1835
  meta: { ...(d == null ? void 0 : d.meta) ?? {} }
1836
1836
  }), k && (k == null ? void 0 : k.code) !== (p == null ? void 0 : p.code)) {
1837
1837
  if (k.fixed && (D.menu.setItems([]), D.tab.setItems([]), n.push(k.path), D.nav.setActiveItem(k.path), te.hideAllMicroApp()), !k.fixed) {
1838
- const oe = (Se = F().subAppList) == null ? void 0 : Se.find((Oe) => Oe.code === k.code), G = ce().preTab[k.code], fe = { ...(G == null ? void 0 : G.query) ?? {} };
1838
+ const oe = (Te = F().subAppList) == null ? void 0 : Te.find((Oe) => Oe.code === k.code), G = ce().preTab[k.code], fe = { ...(G == null ? void 0 : G.query) ?? {} };
1839
1839
  await s({ microApp: oe, menuCode: (G == null ? void 0 : G.code) ?? "", route: { query: fe } });
1840
1840
  }
1841
1841
  return;
1842
1842
  }
1843
1843
  const R = k || p;
1844
- if (!I && y) {
1844
+ if (!I && _) {
1845
1845
  n.push({
1846
- path: y,
1846
+ path: _,
1847
1847
  query: {
1848
1848
  ...d.query,
1849
1849
  app: R.code
@@ -1851,7 +1851,7 @@ const wt = (n, e = "") => {
1851
1851
  });
1852
1852
  return;
1853
1853
  }
1854
- if (v && _) {
1854
+ if (m && y) {
1855
1855
  (ft = F().subAppList) == null || ft.forEach((G) => {
1856
1856
  const fe = { ...G, value: G.code, label: G.name };
1857
1857
  D.nav.appendItem(fe);
@@ -1879,7 +1879,7 @@ const wt = (n, e = "") => {
1879
1879
  return;
1880
1880
  }
1881
1881
  if (!g.fixed) {
1882
- const w = (p = F().subAppList) == null ? void 0 : p.find((v) => v.code === g.code), y = ce().preTab[g.code], f = (y == null ? void 0 : y.code) ?? "", d = { ...(y == null ? void 0 : y.query) ?? {} };
1882
+ const w = (p = F().subAppList) == null ? void 0 : p.find((m) => m.code === g.code), _ = ce().preTab[g.code], f = (_ == null ? void 0 : _.code) ?? "", d = { ...(_ == null ? void 0 : _.query) ?? {} };
1883
1883
  await s({ microApp: w, menuCode: f, route: { query: d } });
1884
1884
  }
1885
1885
  };
@@ -1891,24 +1891,25 @@ const wt = (n, e = "") => {
1891
1891
  var d;
1892
1892
  const p = F();
1893
1893
  if (!((d = p.subAppList) != null && d.length)) return;
1894
- const w = p.subAppList.findIndex((v) => v.code === g.code);
1894
+ const w = p.subAppList.findIndex((m) => m.code === g.code);
1895
1895
  if (w === -1) return;
1896
- const y = ce().tabMap[g.code] ?? [];
1897
- if (y.length) {
1898
- const v = y.map((_) => _.path);
1899
- t(v);
1896
+ const _ = ce().tabMap[g.code] ?? [];
1897
+ if (_.length) {
1898
+ const m = _.map((y) => y.path);
1899
+ t(m);
1900
1900
  }
1901
1901
  let f = null;
1902
1902
  if (p.currentSubAppCode === g.code && (w + 1 !== p.subAppList.length ? p.subAppList[w + 1] && (f = p.subAppList[w + 1]) : p.subAppList[w - 1] && (f = p.subAppList[w - 1])), p.subAppList.splice(w, 1), Ae([{ key: "subAppList", value: p.subAppList }]), le([
1903
1903
  { key: `preTab:${g.code}`, value: {} },
1904
1904
  { key: `tabMap:${g.code}`, value: [] }
1905
1905
  ]), f) {
1906
- const v = { ...f, value: f.code, label: f.name };
1907
- await u(v), D.nav.setActiveItem(f.code);
1906
+ const m = { ...f, value: f.code, label: f.name };
1907
+ await u(m), D.nav.setActiveItem(f.code);
1908
1908
  }
1909
1909
  if (!p.subAppList.length) {
1910
- const v = Oo[1];
1911
- D.menu.setItems([]), D.tab.setItems([]), u(v), ln(), Ro();
1910
+ D.menu.setItems([]), D.tab.setItems([]);
1911
+ const m = Oo.find((y) => y.value === Ie);
1912
+ m && u(m), ln(), Ro();
1912
1913
  }
1913
1914
  }
1914
1915
  };
@@ -1916,7 +1917,7 @@ const wt = (n, e = "") => {
1916
1917
  const n = Ge();
1917
1918
  let { mainAppName: e = "", microAppName: t = "", microApps: o = [] } = He();
1918
1919
  return !e && t && (o = [{ name: t }]), o.map((i) => i.name), { entryMenu: async (i) => {
1919
- var y;
1920
+ var _;
1920
1921
  const { currentMenu: a, route: l = {}, microPath: c = "" } = i;
1921
1922
  if (!a) return;
1922
1923
  let s = { ...l.query, app: a.applicationCode, menu: a.code };
@@ -1941,7 +1942,7 @@ const wt = (n, e = "") => {
1941
1942
  query: s
1942
1943
  }));
1943
1944
  }
1944
- const p = ((y = l.meta) == null ? void 0 : y.showLayout) ?? !0;
1945
+ const p = ((_ = l.meta) == null ? void 0 : _.showLayout) ?? !0;
1945
1946
  let w = (s == null ? void 0 : s.showLayout) ?? !0;
1946
1947
  if (w === "false" && (w = !1), p && w) {
1947
1948
  const f = {
@@ -1980,7 +1981,7 @@ const wt = (n, e = "") => {
1980
1981
  } };
1981
1982
  }, Su = (n, e, t) => {
1982
1983
  const { entryApp: o } = et(), r = Ge(), i = async (c) => {
1983
- var v, _, b, P;
1984
+ var m, y, b, P;
1984
1985
  let s = { ...c }, { showLayout: u = !0 } = s.query;
1985
1986
  u === "false" && (u = !1);
1986
1987
  const A = async () => {
@@ -2011,10 +2012,10 @@ const wt = (n, e = "") => {
2011
2012
  return;
2012
2013
  }
2013
2014
  }
2014
- const w = await A(), y = w.map((C) => C.code), f = ((v = s.query) == null ? void 0 : v.app) ?? "", d = ((_ = F()) == null ? void 0 : _.subAppList) ?? [];
2015
+ const w = await A(), _ = w.map((C) => C.code), f = ((m = s.query) == null ? void 0 : m.app) ?? "", d = ((y = F()) == null ? void 0 : y.subAppList) ?? [];
2015
2016
  if (d.length) {
2016
- const C = d.filter((I) => I.code !== f && !y.includes(I.code)), k = d.filter(
2017
- (I) => f === I.code || y.includes(I.code)
2017
+ const C = d.filter((I) => I.code !== f && !_.includes(I.code)), k = d.filter(
2018
+ (I) => f === I.code || _.includes(I.code)
2018
2019
  );
2019
2020
  Ae([{ key: "subAppList", value: k }]), C && C.length && C.forEach((I) => {
2020
2021
  le([
@@ -2108,8 +2109,8 @@ const wt = (n, e = "") => {
2108
2109
  }, { entryApp: r } = et(), i = async () => {
2109
2110
  const a = "personCenter", c = (F().appcategorys || []).map((p) => p.apps).flat(), { originalMenus: s = [] } = await mn(a), A = ye(s).filter((p) => p.isMenu && p.routeUrl).find((p) => p.routeUrl === "/userInfo");
2110
2111
  if (A != null && A.disable || A != null && A.expired) {
2111
- const { title: p, content: w, desc: y } = await vn(A);
2112
- await rt({ title: p, content: w, desc: y });
2112
+ const { title: p, content: w, desc: _ } = await vn(A);
2113
+ await rt({ title: p, content: w, desc: _ });
2113
2114
  return;
2114
2115
  }
2115
2116
  const g = c.find((p) => p.code === a);
@@ -2145,30 +2146,30 @@ const wt = (n, e = "") => {
2145
2146
  const [c, s] = await ku().run({ tenant: l });
2146
2147
  if (c) return;
2147
2148
  e.value = !1;
2148
- const { access_token: u = "", refresh_token: A = "", expires_in: g = 0, sub: p = "", name: w = "", flag: y = "", tenant: f = "" } = s, d = {
2149
+ const { access_token: u = "", refresh_token: A = "", expires_in: g = 0, sub: p = "", name: w = "", flag: _ = "", tenant: f = "" } = s, d = {
2149
2150
  accessToken: u,
2150
2151
  accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(g) * 1e3,
2151
2152
  refreshToken: A,
2152
2153
  info: s
2153
2154
  };
2154
2155
  ts().save(d), Eo(d);
2155
- const v = {
2156
+ const m = {
2156
2157
  id: p,
2157
2158
  name: w,
2158
- flag: y,
2159
+ flag: _,
2159
2160
  tenantId: f
2160
2161
  };
2161
- sessionStorage.setItem("hotentUserInfo", JSON.stringify(v)), ns(u);
2162
- let _ = "";
2162
+ sessionStorage.setItem("hotentUserInfo", JSON.stringify(m)), ns(u);
2163
+ let y = "";
2163
2164
  if (n != null && n.ssoLocale)
2164
- _ = `http://127.0.0.1:5000/oauth/refreshOauthToken?tenantId=${l}`;
2165
+ y = `http://127.0.0.1:5000/oauth/refreshOauthToken?tenantId=${l}`;
2165
2166
  else {
2166
2167
  const [b, P] = await Pu().run();
2167
- P != null && P.loginHost && (_ = `${P.loginHost}/oauth/refreshOauthToken?tenantId=${l}`);
2168
+ P != null && P.loginHost && (y = `${P.loginHost}/oauth/refreshOauthToken?tenantId=${l}`);
2168
2169
  }
2169
- if (_) {
2170
+ if (y) {
2170
2171
  const b = document.createElement("iframe");
2171
- b.src = _, b.style.display = "none", document.body.appendChild(b), setTimeout(() => i(), 300);
2172
+ b.src = y, b.style.display = "none", document.body.appendChild(b), setTimeout(() => i(), 300);
2172
2173
  } else
2173
2174
  i();
2174
2175
  }
@@ -2309,7 +2310,7 @@ const wt = (n, e = "") => {
2309
2310
  }), Et(() => {
2310
2311
  e.value && e.value.disconnect(), e.value = null;
2311
2312
  });
2312
- }, Uu = "v1", Fu = Xe(`/api/enterpriseright/permission/${Uu}`), hr = Xe("/api/intelligent-security/video/v1", Wu), Ju = rn.get("/permissionset/user-portal-menu");
2313
+ }, Uu = "v1", Fu = Xe(`/api/enterpriseright/permission/${Uu}`), hr = Xe("/api/device-relation/deviceproject/v1/project/device/video", Wu), Ju = rn.get("/permissionset/user-portal-menu");
2313
2314
  function Wu(n) {
2314
2315
  const e = Pe() ? Pe().id : 1;
2315
2316
  return n.params || (n.params = {}), n.params.project = e, n.params.projectId = e, n;
@@ -2321,10 +2322,10 @@ function gr(n) {
2321
2322
  return e.toString();
2322
2323
  }
2323
2324
  function po(n) {
2324
- return hr.post(`/device/ptz?${gr(n)}`)().run();
2325
+ return hr.post(`/ptz?${gr(n)}`)().run();
2325
2326
  }
2326
2327
  function zu(n) {
2327
- return hr.post(`/device/video/url/preview?${gr(n)}`)().run();
2328
+ return hr.post(`/url/preview?${gr(n)}`)().run();
2328
2329
  }
2329
2330
  const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2330
2331
  __name: "GridItem",
@@ -2335,7 +2336,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2335
2336
  emits: ["itemClick"],
2336
2337
  setup(n, { emit: e }) {
2337
2338
  Or((u) => ({
2338
- "23bfa220": s.value
2339
+ "6cb537a6": s.value
2339
2340
  }));
2340
2341
  const t = n, o = e, r = S(), { toggle: i, isFullscreen: a } = lt(r), l = () => {
2341
2342
  r.value != document.fullscreenElement && (a.value ? (a.value = !1, Fe(() => {
@@ -2360,7 +2361,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2360
2361
  /* CLASS, NEED_HYDRATION */
2361
2362
  ));
2362
2363
  }
2363
- }), Ku = /* @__PURE__ */ Ie(qu, [["__scopeId", "data-v-68946aef"]]), Gu = { class: "layout-wrapper" }, Xu = /* @__PURE__ */ pe({
2364
+ }), Ku = /* @__PURE__ */ Ee(qu, [["__scopeId", "data-v-2e9b0fda"]]), Gu = { class: "layout-wrapper" }, Xu = /* @__PURE__ */ pe({
2364
2365
  __name: "GridLayout",
2365
2366
  props: {
2366
2367
  gridNum: {},
@@ -2396,7 +2397,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2396
2397
  ))
2397
2398
  ]));
2398
2399
  }
2399
- }), Zu = /* @__PURE__ */ Ie(Xu, [["__scopeId", "data-v-22baf4d8"]]), Yu = /* @__PURE__ */ pe({
2400
+ }), Zu = /* @__PURE__ */ Ee(Xu, [["__scopeId", "data-v-d36ddc74"]]), Yu = /* @__PURE__ */ pe({
2400
2401
  __name: "DirectionControl",
2401
2402
  emits: ["change"],
2402
2403
  setup(n, { emit: e }) {
@@ -2410,7 +2411,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2410
2411
  onDblclick: i[9] || (i[9] = ne((a) => a.stopPropagation(), ["stop"]))
2411
2412
  },
2412
2413
  [
2413
- x(m(ae), { content: "左上" }, {
2414
+ x(v(ae), { content: "左上" }, {
2414
2415
  default: L(() => [
2415
2416
  $("div", {
2416
2417
  class: "icon icon-top-left",
@@ -2420,7 +2421,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2420
2421
  _: 1
2421
2422
  /* STABLE */
2422
2423
  }),
2423
- x(m(ae), { content: "上" }, {
2424
+ x(v(ae), { content: "上" }, {
2424
2425
  default: L(() => [
2425
2426
  $("div", {
2426
2427
  class: "icon icon-top",
@@ -2430,7 +2431,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2430
2431
  _: 1
2431
2432
  /* STABLE */
2432
2433
  }),
2433
- x(m(ae), { content: "右上" }, {
2434
+ x(v(ae), { content: "右上" }, {
2434
2435
  default: L(() => [
2435
2436
  $("div", {
2436
2437
  class: "icon icon-top-right",
@@ -2440,7 +2441,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2440
2441
  _: 1
2441
2442
  /* STABLE */
2442
2443
  }),
2443
- x(m(ae), { content: "左" }, {
2444
+ x(v(ae), { content: "左" }, {
2444
2445
  default: L(() => [
2445
2446
  $("div", {
2446
2447
  class: "icon icon-left",
@@ -2450,7 +2451,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2450
2451
  _: 1
2451
2452
  /* STABLE */
2452
2453
  }),
2453
- x(m(ae), { content: "自动" }, {
2454
+ x(v(ae), { content: "自动" }, {
2454
2455
  default: L(() => [
2455
2456
  $("div", {
2456
2457
  class: "icon icon-auto",
@@ -2460,7 +2461,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2460
2461
  _: 1
2461
2462
  /* STABLE */
2462
2463
  }),
2463
- x(m(ae), { content: "右" }, {
2464
+ x(v(ae), { content: "右" }, {
2464
2465
  default: L(() => [
2465
2466
  $("div", {
2466
2467
  class: "icon icon-right",
@@ -2470,7 +2471,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2470
2471
  _: 1
2471
2472
  /* STABLE */
2472
2473
  }),
2473
- x(m(ae), { content: "左下" }, {
2474
+ x(v(ae), { content: "左下" }, {
2474
2475
  default: L(() => [
2475
2476
  $("div", {
2476
2477
  class: "icon icon-bottom-left",
@@ -2480,7 +2481,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2480
2481
  _: 1
2481
2482
  /* STABLE */
2482
2483
  }),
2483
- x(m(ae), { content: "下" }, {
2484
+ x(v(ae), { content: "下" }, {
2484
2485
  default: L(() => [
2485
2486
  $("div", {
2486
2487
  class: "icon icon-bottom",
@@ -2490,7 +2491,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2490
2491
  _: 1
2491
2492
  /* STABLE */
2492
2493
  }),
2493
- x(m(ae), { content: "右下" }, {
2494
+ x(v(ae), { content: "右下" }, {
2494
2495
  default: L(() => [
2495
2496
  $("div", {
2496
2497
  class: "icon icon-bottom-right",
@@ -2505,7 +2506,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2505
2506
  /* NEED_HYDRATION */
2506
2507
  ));
2507
2508
  }
2508
- }), ed = /* @__PURE__ */ Ie(Yu, [["__scopeId", "data-v-69100474"]]), td = (n) => (bo("data-v-6c626546"), n = n(), wo(), n), nd = { class: "video-wrapper" }, od = { class: "video-top" }, rd = { class: "video-top_l" }, sd = { class: "video-title-wrapper" }, id = { class: "video-title" }, ad = { class: "video-top_r" }, cd = {
2509
+ }), ed = /* @__PURE__ */ Ee(Yu, [["__scopeId", "data-v-6d1b5d7b"]]), td = (n) => (bo("data-v-866a3799"), n = n(), wo(), n), nd = { class: "video-wrapper" }, od = { class: "video-top" }, rd = { class: "video-top_l" }, sd = { class: "video-title-wrapper" }, id = { class: "video-title" }, ad = { class: "video-top_r" }, cd = {
2509
2510
  key: 0,
2510
2511
  class: "play-status"
2511
2512
  }, ld = { class: "video-bottom" }, ud = /* @__PURE__ */ td(() => /* @__PURE__ */ $(
@@ -2537,32 +2538,32 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2537
2538
  "direction-control": import("@das-fed/ui/packages/icons/direction-control")
2538
2539
  });
2539
2540
  const t = n, o = e, r = S(!0), i = S(), a = S(!1), l = S(), c = Ce(() => {
2540
- var _;
2541
- return (_ = l.value) == null ? void 0 : _.video;
2542
- }), s = S(!1), u = S(!0), A = (_) => {
2543
- i.value = _, i.value.on(window.mpegts.Events.ERROR, (b) => {
2541
+ var y;
2542
+ return (y = l.value) == null ? void 0 : y.video;
2543
+ }), s = S(!1), u = S(!0), A = (y) => {
2544
+ i.value = y, i.value.on(window.mpegts.Events.ERROR, (b) => {
2544
2545
  });
2545
2546
  }, g = () => {
2546
2547
  r.value = !r.value, i.value && (i.value.muted = r.value);
2547
2548
  }, p = () => {
2548
2549
  a.value = !a.value;
2549
- }, w = S(""), y = () => {
2550
- const _ = document.createElement("canvas");
2550
+ }, w = S(""), _ = () => {
2551
+ const y = document.createElement("canvas");
2551
2552
  if (c.value) {
2552
- _.width = c.value.clientWidth, _.height = c.value.clientHeight;
2553
- const b = _.getContext("2d");
2554
- b == null || b.drawImage(c.value, 0, 0, _.width, _.height);
2555
- const P = _.toDataURL("image/jpg"), C = `【${t.title}】${Jt().format("YYYYMMDDHHmmss").toString()}.jpg`;
2553
+ y.width = c.value.clientWidth, y.height = c.value.clientHeight;
2554
+ const b = y.getContext("2d");
2555
+ b == null || b.drawImage(c.value, 0, 0, y.width, y.height);
2556
+ const P = y.toDataURL("image/jpg"), C = `【${t.title}】${Jt().format("YYYYMMDDHHmmss").toString()}.jpg`;
2556
2557
  if (w.value = P, "download" in document.createElement("a")) {
2557
2558
  const k = document.createElement("a");
2558
- k.download = C, k.style.display = "none", k.href = P, document.body.appendChild(k), document.body.appendChild(_), k.click(), URL.revokeObjectURL(k.href), document.body.removeChild(k), document.body.removeChild(_);
2559
+ k.download = C, k.style.display = "none", k.href = P, document.body.appendChild(k), document.body.appendChild(y), k.click(), URL.revokeObjectURL(k.href), document.body.removeChild(k), document.body.removeChild(y);
2559
2560
  }
2560
2561
  }
2561
- }, f = (_) => {
2562
- o("directionControl", _);
2563
- }, d = (_) => {
2564
- o("zoomControl", _);
2565
- }, v = (_) => t.authType.includes(_);
2562
+ }, f = (y) => {
2563
+ o("directionControl", y);
2564
+ }, d = (y) => {
2565
+ o("zoomControl", y);
2566
+ }, m = (y) => t.authType.includes(y);
2566
2567
  return re(
2567
2568
  () => c.value,
2568
2569
  () => {
@@ -2604,8 +2605,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2604
2605
  u.value = !0;
2605
2606
  });
2606
2607
  }
2607
- ), (_, b) => (H(), de("div", nd, [
2608
- x(m(Bo), {
2608
+ ), (y, b) => (H(), de("div", nd, [
2609
+ x(v(Bo), {
2609
2610
  spinning: t.loading,
2610
2611
  type: "component",
2611
2612
  tip: "加载中..."
@@ -2624,11 +2625,11 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2624
2625
  ])
2625
2626
  ]),
2626
2627
  $("div", ad, [
2627
- ["live"].includes(_.type) ? (H(), de("span", cd, "正在实时预览")) : N("v-if", !0),
2628
+ ["live"].includes(y.type) ? (H(), de("span", cd, "正在实时预览")) : N("v-if", !0),
2628
2629
  N(' <das-icon class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
2629
2630
  ])
2630
2631
  ]),
2631
- t.videoUrl && u.value ? (H(), V(m(cs), {
2632
+ t.videoUrl && u.value ? (H(), V(v(cs), {
2632
2633
  key: 0,
2633
2634
  type: "flv",
2634
2635
  ref_key: "dasLivePlayerRef",
@@ -2647,9 +2648,9 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2647
2648
  onDblclick: b[2] || (b[2] = ne((P) => P.stopPropagation(), ["stop"]))
2648
2649
  },
2649
2650
  [
2650
- x(m(ae), { content: "声音" }, {
2651
+ x(v(ae), { content: "声音" }, {
2651
2652
  default: L(() => [
2652
- x(m(De), {
2653
+ x(v(De), {
2653
2654
  class: "icon icon-volume",
2654
2655
  icon: r.value ? "muted" : "volume",
2655
2656
  onClick: ne(g, ["stop"])
@@ -2658,23 +2659,23 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2658
2659
  _: 1
2659
2660
  /* STABLE */
2660
2661
  }),
2661
- x(m(ae), { content: "截图" }, {
2662
+ x(v(ae), { content: "截图" }, {
2662
2663
  default: L(() => [
2663
- x(m(De), {
2664
+ x(v(De), {
2664
2665
  class: "icon icon-screenshot",
2665
2666
  icon: "screenshot",
2666
- onClick: ne(y, ["stop"])
2667
+ onClick: ne(_, ["stop"])
2667
2668
  })
2668
2669
  ]),
2669
2670
  _: 1
2670
2671
  /* STABLE */
2671
2672
  }),
2672
- v("control") ? (H(), V(m(ae), {
2673
+ m("control") ? (H(), V(v(ae), {
2673
2674
  key: 0,
2674
2675
  content: "聚焦-"
2675
2676
  }, {
2676
2677
  default: L(() => [
2677
- ["live", "polling"].includes(t.type) ? (H(), V(m(De), {
2678
+ ["live", "polling"].includes(t.type) ? (H(), V(v(De), {
2678
2679
  key: 0,
2679
2680
  class: "icon icon-shrink",
2680
2681
  icon: "shrink",
@@ -2684,12 +2685,12 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2684
2685
  _: 1
2685
2686
  /* STABLE */
2686
2687
  })) : N("v-if", !0),
2687
- v("control") ? (H(), V(m(ae), {
2688
+ m("control") ? (H(), V(v(ae), {
2688
2689
  key: 1,
2689
2690
  content: "聚焦+"
2690
2691
  }, {
2691
2692
  default: L(() => [
2692
- ["live", "polling"].includes(t.type) ? (H(), V(m(De), {
2693
+ ["live", "polling"].includes(t.type) ? (H(), V(v(De), {
2693
2694
  key: 0,
2694
2695
  class: "icon icon-enlarge",
2695
2696
  icon: "enlarge",
@@ -2699,12 +2700,12 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2699
2700
  _: 1
2700
2701
  /* STABLE */
2701
2702
  })) : N("v-if", !0),
2702
- v("control") ? (H(), V(m(ae), {
2703
+ m("control") ? (H(), V(v(ae), {
2703
2704
  key: 2,
2704
2705
  content: "方向控制"
2705
2706
  }, {
2706
2707
  default: L(() => [
2707
- ["live", "polling"].includes(t.type) ? (H(), V(m(De), {
2708
+ ["live", "polling"].includes(t.type) ? (H(), V(v(De), {
2708
2709
  key: 0,
2709
2710
  class: "icon icon-direction-control",
2710
2711
  icon: "direction-control",
@@ -2730,7 +2731,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2730
2731
  }, 8, ["spinning"])
2731
2732
  ]));
2732
2733
  }
2733
- }), fd = /* @__PURE__ */ Ie(pd, [["__scopeId", "data-v-6c626546"]]), hd = /* @__PURE__ */ pe({
2734
+ }), fd = /* @__PURE__ */ Ee(pd, [["__scopeId", "data-v-866a3799"]]), hd = /* @__PURE__ */ pe({
2734
2735
  props: {
2735
2736
  deviceInfo: {
2736
2737
  type: Object,
@@ -2852,7 +2853,7 @@ const Ad = /* @__PURE__ */ $(
2852
2853
  }
2853
2854
  return a;
2854
2855
  });
2855
- return (a, l) => (H(), V(m(sn), {
2856
+ return (a, l) => (H(), V(v(sn), {
2856
2857
  size: "mini",
2857
2858
  title: "视频监控",
2858
2859
  "custom-class": `das-linakge-video-dialog ${i.value}`,
@@ -2867,13 +2868,13 @@ const Ad = /* @__PURE__ */ $(
2867
2868
  }, {
2868
2869
  header: L(() => [
2869
2870
  Ad,
2870
- x(m(ae), { content: "页面全屏" }, {
2871
+ x(v(ae), { content: "页面全屏" }, {
2871
2872
  default: L(() => [
2872
- x(m(De), {
2873
+ x(v(De), {
2873
2874
  class: "icon",
2874
2875
  icon: "fullscreen2",
2875
2876
  iconColor: "#999",
2876
- onClick: m(r)
2877
+ onClick: v(r)
2877
2878
  }, null, 8, ["onClick"])
2878
2879
  ]),
2879
2880
  _: 1
@@ -2881,7 +2882,7 @@ const Ad = /* @__PURE__ */ $(
2881
2882
  })
2882
2883
  ]),
2883
2884
  default: L(() => [
2884
- t.value ? (H(), V(m(o), { key: 0 })) : N("v-if", !0)
2885
+ t.value ? (H(), V(v(o), { key: 0 })) : N("v-if", !0)
2885
2886
  ]),
2886
2887
  _: 1
2887
2888
  /* STABLE */
@@ -2918,7 +2919,7 @@ const Ad = /* @__PURE__ */ $(
2918
2919
  projectId: i,
2919
2920
  deviceIds: s == null ? void 0 : s.deviceId
2920
2921
  }, p = (await o(A)).map((w) => {
2921
- let y = w.lookupOrOperation == 1;
2922
+ let _ = w.lookupOrOperation == 1;
2922
2923
  return {
2923
2924
  id: w.id,
2924
2925
  productId: w.productId,
@@ -2926,7 +2927,7 @@ const Ad = /* @__PURE__ */ $(
2926
2927
  deviceName: w.deviceName,
2927
2928
  authType: w.controlAuthorization == 1 ? 2 : 1,
2928
2929
  // 1 查看权限 2 查看+操作权限
2929
- show: !!y
2930
+ show: !!_
2930
2931
  };
2931
2932
  });
2932
2933
  e.value = p.filter((w) => !!w.show), (u = e.value) != null && u.length && vd({ gridNum: n.value, deviceList: e.value });
@@ -4723,20 +4724,20 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
4723
4724
  let r = ((d = n.meta) == null ? void 0 : d.showLayout) ?? !0, { showLayout: i = !0 } = n.query;
4724
4725
  if (i === "false" && (i = !1), !r || !i) return;
4725
4726
  await Tt();
4726
- const a = (v) => {
4727
+ const a = (m) => {
4727
4728
  try {
4728
- return JSON.parse(v);
4729
+ return JSON.parse(m);
4729
4730
  } catch {
4730
4731
  return !1;
4731
4732
  }
4732
- }, l = async (v) => {
4733
+ }, l = async (m) => {
4733
4734
  var P;
4734
- const _ = F(), b = ((P = _.appcategorys) == null ? void 0 : P.map((C) => C.apps).flat()) || [];
4735
- if (Array.isArray(v)) {
4736
- const C = v.filter((k) => k.code).map((k) => k.code);
4737
- if (v.length) {
4738
- if (_.currentSubAppCode) {
4739
- const I = _.currentSubApp.menus ?? [], T = ye(I).find((M) => C.includes(M.code));
4735
+ const y = F(), b = ((P = y.appcategorys) == null ? void 0 : P.map((C) => C.apps).flat()) || [];
4736
+ if (Array.isArray(m)) {
4737
+ const C = m.filter((k) => k.code).map((k) => k.code);
4738
+ if (m.length) {
4739
+ if (y.currentSubAppCode) {
4740
+ const I = y.currentSubApp.menus ?? [], T = ye(I).find((M) => C.includes(M.code));
4740
4741
  if (T) {
4741
4742
  t({ currentMenu: T });
4742
4743
  return;
@@ -4746,14 +4747,14 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
4746
4747
  k && e({ microApp: k });
4747
4748
  }
4748
4749
  }
4749
- if (typeof v == "string")
4750
- if (v.includes(":")) {
4751
- const C = v.split(":"), [k = "", I = ""] = C;
4750
+ if (typeof m == "string")
4751
+ if (m.includes(":")) {
4752
+ const C = m.split(":"), [k = "", I = ""] = C;
4752
4753
  if (!k) return;
4753
4754
  const T = b.find((M) => M.code === k);
4754
4755
  T && e({ microApp: T, menuCode: I });
4755
4756
  } else {
4756
- const C = v, k = b.find((I) => I.code === C);
4757
+ const C = m, k = b.find((I) => I.code === C);
4757
4758
  if (k)
4758
4759
  e({ microApp: k });
4759
4760
  else {
@@ -4765,30 +4766,30 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
4765
4766
  }
4766
4767
  };
4767
4768
  let c = S(!0);
4768
- const s = (v) => {
4769
+ const s = (m) => {
4769
4770
  setTimeout(async () => {
4770
- var _, b;
4771
+ var y, b;
4771
4772
  if (c.value) {
4772
- const [P, C] = await ap().run({}, { params: { aliasName: v.actionValue } });
4773
+ const [P, C] = await ap().run({}, { params: { aliasName: m.actionValue } });
4773
4774
  P ? await Ht().run({
4774
- uniqueId: v.uniqueId,
4775
+ uniqueId: m.uniqueId,
4775
4776
  status: 0,
4776
- errorMsg: "未找到" + v.actionValue
4777
- }) : C.length ? (C.length > 1 ? l(C) : l((_ = C[0]) == null ? void 0 : _.code), await Ht().run({
4778
- uniqueId: v.uniqueId,
4777
+ errorMsg: "未找到" + m.actionValue
4778
+ }) : C.length ? (C.length > 1 ? l(C) : l((y = C[0]) == null ? void 0 : y.code), await Ht().run({
4779
+ uniqueId: m.uniqueId,
4779
4780
  status: 1,
4780
4781
  targetName: (b = C[0]) == null ? void 0 : b.name
4781
4782
  })) : await Ht().run({
4782
- uniqueId: v.uniqueId,
4783
+ uniqueId: m.uniqueId,
4783
4784
  status: 0,
4784
- errorMsg: "未找到" + v.actionValue
4785
+ errorMsg: "未找到" + m.actionValue
4785
4786
  });
4786
4787
  }
4787
4788
  c.value = !0;
4788
4789
  }, 2e3);
4789
- }, u = (v) => {
4790
- const _ = Yt(), b = JSON.parse(atob(_.split(".")[1])).sub;
4791
- op().on(`${v}:${b}`, async function(C) {
4790
+ }, u = (m) => {
4791
+ const y = Yt(), b = JSON.parse(atob(y.split(".")[1])).sub;
4792
+ op().on(`${m}:${b}`, async function(C) {
4792
4793
  let k = a(C);
4793
4794
  if (k)
4794
4795
  k.uniqueId && k.actionKey == "switch-menu" && s(k);
@@ -4800,16 +4801,16 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
4800
4801
  }, A = S(""), [g, p] = await vo().run();
4801
4802
  A.value = p, u(A.value);
4802
4803
  const w = async () => {
4803
- const [v, _] = await vo().run();
4804
- _ !== A.value && (A.value = _, u(A.value));
4804
+ const [m, y] = await vo().run();
4805
+ y !== A.value && (A.value = y, u(A.value));
4805
4806
  };
4806
4807
  o = setInterval(() => {
4807
4808
  w();
4808
4809
  }, 72e5);
4809
- const y = S("online"), f = (v) => {
4810
- v === "online" && y.value === "offline" && setTimeout(() => {
4810
+ const _ = S("online"), f = (m) => {
4811
+ m === "online" && _.value === "offline" && setTimeout(() => {
4811
4812
  w();
4812
- }, 5e3), y.value = (window.navigator.onLine ? "on" : "off") + "line";
4813
+ }, 5e3), _.value = (window.navigator.onLine ? "on" : "off") + "line";
4813
4814
  };
4814
4815
  window.addEventListener("online", () => f("online")), window.addEventListener("offline", () => f("offline"));
4815
4816
  }), Et(() => {
@@ -4877,7 +4878,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
4877
4878
  { id: 2, name: Q("时").value },
4878
4879
  { id: 1, name: Q("分").value },
4879
4880
  { id: 3, name: Q("不限").value }
4880
- ]), y = S([]), f = S(""), d = S("告警对象位置"), v = S(""), _ = S([]), b = S("");
4881
+ ]), _ = S([]), f = S(""), d = S("告警对象位置"), m = S(""), y = S([]), b = S("");
4881
4882
  S("[]");
4882
4883
  const P = S(!0), C = S(!0), k = async (O) => {
4883
4884
  const E = { name: "1" };
@@ -4903,7 +4904,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
4903
4904
  ), re(
4904
4905
  M,
4905
4906
  (O) => {
4906
- O ? (s.value.reportTheme = Q("告警对象").value, T.value = !0) : (v.value = "请输入", s.value.reportTheme = "", T.value = !1);
4907
+ O ? (s.value.reportTheme = Q("告警对象").value, T.value = !0) : (m.value = "请输入", s.value.reportTheme = "", T.value = !1);
4907
4908
  },
4908
4909
  { immediate: !0 }
4909
4910
  );
@@ -4912,16 +4913,16 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
4912
4913
  return (E = a.value) == null ? void 0 : E.parentNode.parentNode;
4913
4914
  }, ie = (O) => {
4914
4915
  u.value.reportTheme = "";
4915
- }, Se = (O, E) => {
4916
+ }, Te = (O, E) => {
4916
4917
  E.length > 0 && (f.value = E[0].path), s.value.reportPosition = O, b.value = "";
4917
4918
  }, ft = (O) => {
4918
4919
  O && (u.value.reportPosition = "", f.value = ""), O ? (s.value.reportPosition = null, f.value = "", d.value = "告警对象位置") : (s.value.reportPosition = null, f.value = "", d.value = "请选择");
4919
4920
  }, oe = (O) => {
4920
- O && (u.value.reportTheme = ""), O ? (s.value.reportTheme = "", v.value = "告警对象") : (s.value.reportTheme = "", v.value = "请输入");
4921
+ O && (u.value.reportTheme = ""), O ? (s.value.reportTheme = "", m.value = "告警对象") : (s.value.reportTheme = "", m.value = "请输入");
4921
4922
  }, G = () => {
4922
4923
  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 = "";
4923
4924
  }, fe = () => {
4924
- s.value.processTypeId = "confirm", s.value.reason = "", s.value.treatmentPlan = "", s.value.remarks = "", s.value.reportPosition = "", s.value.reportTheme = "", s.value.workOrderRules = null, C.value = !0, M.value = !0, T.value = !0, s.value.reportTheme = Q("告警对象").value, f.value = "", d.value = "告警对象位置", v.value = "请输入", s.value.eventTypeId = "", s.value.eventLevelId = null, s.value.timeLimit = "", s.value.interval = 1, g.value = [], p.value = [];
4925
+ s.value.processTypeId = "confirm", s.value.reason = "", s.value.treatmentPlan = "", s.value.remarks = "", s.value.reportPosition = "", s.value.reportTheme = "", s.value.workOrderRules = null, C.value = !0, M.value = !0, T.value = !0, s.value.reportTheme = Q("告警对象").value, f.value = "", d.value = "告警对象位置", m.value = "请输入", s.value.eventTypeId = "", s.value.eventLevelId = null, s.value.timeLimit = "", s.value.interval = 1, g.value = [], p.value = [];
4925
4926
  }, Oe = (O) => {
4926
4927
  O == "eventTypeId" && (s.value.eventLevelId = null, Cn()), O == "eventLevelId" && In(), O == "interval" && (u.value.timeLimit = "", s.value.interval == 3 ? (A.value = !0, s.value.timeLimit = "") : A.value = !1);
4927
4928
  }, yr = async () => {
@@ -4959,9 +4960,9 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
4959
4960
  i.value = !1;
4960
4961
  return;
4961
4962
  }
4962
- i.value = !1, y.value = B;
4963
- for (let me = 0; me < y.value.length; me++)
4964
- y.value[me].id === "createorder" && U(), y.value[me].id === "createcontingency" && yr();
4963
+ i.value = !1, _.value = B;
4964
+ for (let me = 0; me < _.value.length; me++)
4965
+ _.value[me].id === "createorder" && U(), _.value[me].id === "createcontingency" && yr();
4965
4966
  }, wr = () => {
4966
4967
  let O = !0;
4967
4968
  if (s.value.processTypeId == "dealwith")
@@ -5007,7 +5008,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5007
5008
  open: Er,
5008
5009
  close: Lt
5009
5010
  }), (O, E) => (H(), de("div", Cp, [
5010
- x(m(sn), {
5011
+ x(v(sn), {
5011
5012
  modelValue: c.value,
5012
5013
  "onUpdate:modelValue": E[31] || (E[31] = (B) => c.value = B),
5013
5014
  type: "basic",
@@ -5021,20 +5022,20 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5021
5022
  }, {
5022
5023
  header: L(() => [
5023
5024
  ue(
5024
- Z(m(Q)("告警处理").value),
5025
+ Z(v(Q)("告警处理").value),
5025
5026
  1
5026
5027
  /* TEXT */
5027
5028
  )
5028
5029
  ]),
5029
5030
  footer: L(() => [
5030
5031
  $("div", kp, [
5031
- x(m(Te), {
5032
+ x(v(ke), {
5032
5033
  size: "middle",
5033
5034
  onClick: Cr
5034
5035
  }, {
5035
5036
  default: L(() => [
5036
5037
  ue(
5037
- Z(m(Q)("取消").value),
5038
+ Z(v(Q)("取消").value),
5038
5039
  1
5039
5040
  /* TEXT */
5040
5041
  )
@@ -5042,13 +5043,13 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5042
5043
  _: 1
5043
5044
  /* STABLE */
5044
5045
  }),
5045
- x(m(Te), {
5046
+ x(v(ke), {
5046
5047
  size: "middle",
5047
5048
  onClick: E[29] || (E[29] = (B) => En(1))
5048
5049
  }, {
5049
5050
  default: L(() => [
5050
5051
  ue(
5051
- Z(m(Q)("结束处理").value),
5052
+ Z(v(Q)("结束处理").value),
5052
5053
  1
5053
5054
  /* TEXT */
5054
5055
  )
@@ -5056,14 +5057,14 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5056
5057
  _: 1
5057
5058
  /* STABLE */
5058
5059
  }),
5059
- x(m(Te), {
5060
+ x(v(ke), {
5060
5061
  btnType: "primary",
5061
5062
  size: "middle",
5062
5063
  onClick: E[30] || (E[30] = (B) => En(2))
5063
5064
  }, {
5064
5065
  default: L(() => [
5065
5066
  ue(
5066
- Z(m(Q)("继续处理").value),
5067
+ Z(v(Q)("继续处理").value),
5067
5068
  1
5068
5069
  /* TEXT */
5069
5070
  )
@@ -5074,7 +5075,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5074
5075
  ])
5075
5076
  ]),
5076
5077
  default: L(() => [
5077
- x(m(Bo), { spinning: i.value }, {
5078
+ x(v(Bo), { spinning: i.value }, {
5078
5079
  default: L(() => [
5079
5080
  $(
5080
5081
  "div",
@@ -5084,19 +5085,19 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5084
5085
  class: "handle-alarm-dialog-content"
5085
5086
  },
5086
5087
  [
5087
- x(m(fs), {
5088
+ x(v(fs), {
5088
5089
  style: { width: "100%", height: "100%", "align-items": "center" },
5089
5090
  cols: 1,
5090
5091
  alignType: "horizontal"
5091
5092
  }, {
5092
5093
  default: L(() => [
5093
- x(m(_e), {
5094
- label: m(Q)("处理类型").value,
5094
+ x(v(_e), {
5095
+ label: v(Q)("处理类型").value,
5095
5096
  required: "",
5096
5097
  type: "select",
5097
5098
  modelValue: s.value.processTypeId,
5098
5099
  "onUpdate:modelValue": E[0] || (E[0] = (B) => s.value.processTypeId = B),
5099
- options: y.value,
5100
+ options: _.value,
5100
5101
  col: 1,
5101
5102
  optionsLabelKey: "name",
5102
5103
  optionsValueKey: "id",
@@ -5105,9 +5106,9 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5105
5106
  marginRight: "0",
5106
5107
  onChange: _r
5107
5108
  }, null, 8, ["label", "modelValue", "options"]),
5108
- s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), V(m(_e), {
5109
+ s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), V(v(_e), {
5109
5110
  key: 0,
5110
- label: m(Q)("告警原因").value,
5111
+ label: v(Q)("告警原因").value,
5111
5112
  required: s.value.processTypeId == "dealwith",
5112
5113
  type: "input",
5113
5114
  maxlength: "50",
@@ -5120,9 +5121,9 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5120
5121
  marginBottom: "30px",
5121
5122
  marginRight: "0"
5122
5123
  }, null, 8, ["label", "required", "modelValue", "error"])) : N("v-if", !0),
5123
- s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), V(m(_e), {
5124
+ s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), V(v(_e), {
5124
5125
  key: 1,
5125
- label: m(Q)("处理方案").value,
5126
+ label: v(Q)("处理方案").value,
5126
5127
  required: s.value.processTypeId == "dealwith",
5127
5128
  type: "input",
5128
5129
  maxlength: "50",
@@ -5135,9 +5136,9 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5135
5136
  marginBottom: "30px",
5136
5137
  marginRight: "0"
5137
5138
  }, null, 8, ["label", "required", "modelValue", "error"])) : N("v-if", !0),
5138
- s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), V(m(_e), {
5139
+ s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), V(v(_e), {
5139
5140
  key: 2,
5140
- label: m(Q)("备注").value,
5141
+ label: v(Q)("备注").value,
5141
5142
  type: "textarea",
5142
5143
  "show-word-limit": "",
5143
5144
  autosize: "",
@@ -5148,9 +5149,9 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5148
5149
  marginBottom: "30px",
5149
5150
  marginRight: "0"
5150
5151
  }, null, 8, ["label", "modelValue"])) : N("v-if", !0),
5151
- s.value.processTypeId == "createorder" ? (H(), V(m(_e), {
5152
+ s.value.processTypeId == "createorder" ? (H(), V(v(_e), {
5152
5153
  key: 3,
5153
- label: m(Q)("报事位置").value,
5154
+ label: v(Q)("报事位置").value,
5154
5155
  required: "",
5155
5156
  type: "custom",
5156
5157
  error: u.value.reportPosition,
@@ -5161,7 +5162,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5161
5162
  default: L(() => [
5162
5163
  $("div", Ip, [
5163
5164
  $("div", Ep, [
5164
- x(m(ps), {
5165
+ x(v(ps), {
5165
5166
  borderType: "underline",
5166
5167
  props: { disabled: "_disabled", label: "name" },
5167
5168
  modelValue: s.value.reportPosition,
@@ -5171,16 +5172,16 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5171
5172
  keyword: b.value,
5172
5173
  "onUpdate:keyword": E[10] || (E[10] = (B) => b.value = B),
5173
5174
  showFullPath: !0,
5174
- data: _.value,
5175
+ data: y.value,
5175
5176
  placeholder: d.value,
5176
5177
  disabled: P.value,
5177
5178
  load: k,
5178
5179
  search: I,
5179
- onChange: Se,
5180
+ onChange: Te,
5180
5181
  filter: !0,
5181
5182
  allowClear: !0
5182
5183
  }, null, 8, ["modelValue", "path", "keyword", "data", "placeholder", "disabled"]),
5183
- x(m(Pn), {
5184
+ x(v(Pn), {
5184
5185
  ref: "testInput",
5185
5186
  modelValue: s.value.customPath,
5186
5187
  "onUpdate:modelValue": E[11] || (E[11] = (B) => s.value.customPath = B),
@@ -5189,7 +5190,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5189
5190
  maxlength: "20"
5190
5191
  }, null, 8, ["modelValue", "disabled"])
5191
5192
  ]),
5192
- x(m(Bn), {
5193
+ x(v(Bn), {
5193
5194
  modelValue: C.value,
5194
5195
  "onUpdate:modelValue": E[12] || (E[12] = (B) => C.value = B),
5195
5196
  checkboxType: "default",
@@ -5198,7 +5199,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5198
5199
  }, {
5199
5200
  default: L(() => [
5200
5201
  ue(
5201
- Z(m(Q)("告警对象位置").value),
5202
+ Z(v(Q)("告警对象位置").value),
5202
5203
  1
5203
5204
  /* TEXT */
5204
5205
  )
@@ -5211,9 +5212,9 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5211
5212
  _: 1
5212
5213
  /* STABLE */
5213
5214
  }, 8, ["label", "error"])) : N("v-if", !0),
5214
- s.value.processTypeId == "createorder" ? (H(), V(m(_e), {
5215
+ s.value.processTypeId == "createorder" ? (H(), V(v(_e), {
5215
5216
  key: 4,
5216
- label: m(Q)("报事主题").value,
5217
+ label: v(Q)("报事主题").value,
5217
5218
  required: "",
5218
5219
  type: "custom",
5219
5220
  error: u.value.reportTheme,
@@ -5223,15 +5224,15 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5223
5224
  }, {
5224
5225
  default: L(() => [
5225
5226
  $("div", Sp, [
5226
- x(m(Pn), {
5227
+ x(v(Pn), {
5227
5228
  maxlength: "20",
5228
5229
  disabled: T.value,
5229
5230
  modelValue: s.value.reportTheme,
5230
5231
  "onUpdate:modelValue": E[14] || (E[14] = (B) => s.value.reportTheme = B),
5231
- placeholder: v.value,
5232
+ placeholder: m.value,
5232
5233
  onChange: ie
5233
5234
  }, null, 8, ["disabled", "modelValue", "placeholder"]),
5234
- x(m(Bn), {
5235
+ x(v(Bn), {
5235
5236
  modelValue: M.value,
5236
5237
  "onUpdate:modelValue": E[15] || (E[15] = (B) => M.value = B),
5237
5238
  checkboxType: "default",
@@ -5240,7 +5241,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5240
5241
  }, {
5241
5242
  default: L(() => [
5242
5243
  ue(
5243
- Z(m(Q)("告警对象").value),
5244
+ Z(v(Q)("告警对象").value),
5244
5245
  1
5245
5246
  /* TEXT */
5246
5247
  )
@@ -5253,9 +5254,9 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5253
5254
  _: 1
5254
5255
  /* STABLE */
5255
5256
  }, 8, ["label", "error"])) : N("v-if", !0),
5256
- s.value.processTypeId == "createorder" ? (H(), V(m(_e), {
5257
+ s.value.processTypeId == "createorder" ? (H(), V(v(_e), {
5257
5258
  key: 5,
5258
- label: m(Q)("工单规则").value,
5259
+ label: v(Q)("工单规则").value,
5259
5260
  required: "",
5260
5261
  type: "select",
5261
5262
  modelValue: s.value.workOrderRules,
@@ -5271,9 +5272,9 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5271
5272
  marginRight: "0"
5272
5273
  }, null, 8, ["label", "modelValue", "error", "options"])) : N("v-if", !0),
5273
5274
  N(" createcontingency 生成应急事件 "),
5274
- s.value.processTypeId == "createcontingency" ? (H(), V(m(_e), {
5275
+ s.value.processTypeId == "createcontingency" ? (H(), V(v(_e), {
5275
5276
  key: 6,
5276
- label: m(Q)("事件类型").value,
5277
+ label: v(Q)("事件类型").value,
5277
5278
  required: "",
5278
5279
  type: "select",
5279
5280
  modelValue: s.value.eventTypeId,
@@ -5289,9 +5290,9 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5289
5290
  marginRight: "0",
5290
5291
  onChange: E[21] || (E[21] = (B) => Oe("eventTypeId"))
5291
5292
  }, null, 8, ["label", "modelValue", "error", "options"])) : N("v-if", !0),
5292
- s.value.processTypeId == "createcontingency" ? (H(), V(m(_e), {
5293
+ s.value.processTypeId == "createcontingency" ? (H(), V(v(_e), {
5293
5294
  key: 7,
5294
- label: m(Q)("事件等级").value,
5295
+ label: v(Q)("事件等级").value,
5295
5296
  required: "",
5296
5297
  type: "select",
5297
5298
  modelValue: s.value.eventLevelId,
@@ -5307,9 +5308,9 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5307
5308
  marginRight: "0",
5308
5309
  onChange: E[24] || (E[24] = (B) => Oe("eventLevelId"))
5309
5310
  }, null, 8, ["label", "modelValue", "error", "options"])) : N("v-if", !0),
5310
- s.value.processTypeId == "createcontingency" ? (H(), V(m(_e), {
5311
+ s.value.processTypeId == "createcontingency" ? (H(), V(v(_e), {
5311
5312
  key: 8,
5312
- label: m(Q)("处置时限").value,
5313
+ label: v(Q)("处置时限").value,
5313
5314
  required: "",
5314
5315
  type: "input",
5315
5316
  maxlength: "3",
@@ -5324,7 +5325,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5324
5325
  }, {
5325
5326
  default: L(() => [
5326
5327
  $("div", Tp, [
5327
- x(m(ds), {
5328
+ x(v(ds), {
5328
5329
  class: "select",
5329
5330
  modelValue: s.value.interval,
5330
5331
  "onUpdate:modelValue": E[25] || (E[25] = (B) => s.value.interval = B),
@@ -5363,7 +5364,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5363
5364
  }, 8, ["modelValue"])
5364
5365
  ]));
5365
5366
  }
5366
- }), Op = /* @__PURE__ */ Ie(Bp, [["__scopeId", "data-v-1ecf3324"]]), Dp = (n, e, t) => ({
5367
+ }), Op = /* @__PURE__ */ Ee(Bp, [["__scopeId", "data-v-a6a58a01"]]), Dp = (n, e, t) => ({
5367
5368
  handleAlarmVue: () => he(Op, {
5368
5369
  handerIds: e.value,
5369
5370
  projectId: St().id,
@@ -5407,13 +5408,13 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5407
5408
  },
5408
5409
  [
5409
5410
  $("div", Lp, [
5410
- N(` <div class="icon-box" :style="{ color: msgItem.color }">\r
5411
- !\r
5411
+ N(` <div class="icon-box" :style="{ color: msgItem.color }">
5412
+ !
5412
5413
  </div> `),
5413
5414
  $(
5414
5415
  "div",
5415
5416
  xp,
5416
- Z(m(Q)("新告警").value),
5417
+ Z(v(Q)("新告警").value),
5417
5418
  1
5418
5419
  /* TEXT */
5419
5420
  )
@@ -5428,7 +5429,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5428
5429
  $(
5429
5430
  "div",
5430
5431
  Hp,
5431
- Z(m(Q)("告警等级:").value),
5432
+ Z(v(Q)("告警等级:").value),
5432
5433
  1
5433
5434
  /* TEXT */
5434
5435
  ),
@@ -5447,7 +5448,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5447
5448
  $(
5448
5449
  "div",
5449
5450
  Up,
5450
- Z(m(Q)("告警对象:").value),
5451
+ Z(v(Q)("告警对象:").value),
5451
5452
  1
5452
5453
  /* TEXT */
5453
5454
  ),
@@ -5463,7 +5464,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5463
5464
  $(
5464
5465
  "div",
5465
5466
  Wp,
5466
- Z(m(Q)("告警内容:").value),
5467
+ Z(v(Q)("告警内容:").value),
5467
5468
  1
5468
5469
  /* TEXT */
5469
5470
  ),
@@ -5476,7 +5477,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5476
5477
  )
5477
5478
  ]),
5478
5479
  $("div", Vp, [
5479
- a.msgItem.equipmentCode && a.msgItem.equipmentPanelCode ? (H(), V(m(Te), {
5480
+ a.msgItem.equipmentCode && a.msgItem.equipmentPanelCode ? (H(), V(v(ke), {
5480
5481
  key: 0,
5481
5482
  block: "",
5482
5483
  onClick: ne(i, ["stop"]),
@@ -5485,7 +5486,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5485
5486
  }, {
5486
5487
  default: L(() => [
5487
5488
  ue(
5488
- Z(m(Q)("设备详情").value),
5489
+ Z(v(Q)("设备详情").value),
5489
5490
  1
5490
5491
  /* TEXT */
5491
5492
  )
@@ -5493,7 +5494,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5493
5494
  _: 1
5494
5495
  /* STABLE */
5495
5496
  })) : N("v-if", !0),
5496
- a.alarmhandle ? (H(), V(m(Te), {
5497
+ a.alarmhandle ? (H(), V(v(ke), {
5497
5498
  key: 1,
5498
5499
  block: "",
5499
5500
  btnType: "primary-text",
@@ -5502,7 +5503,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5502
5503
  }, {
5503
5504
  default: L(() => [
5504
5505
  ue(
5505
- Z(m(Q)("处理").value),
5506
+ Z(v(Q)("处理").value),
5506
5507
  1
5507
5508
  /* TEXT */
5508
5509
  )
@@ -5559,9 +5560,9 @@ const Xp = () => {
5559
5560
  var M;
5560
5561
  const T = (((M = F().appcategorys) == null ? void 0 : M.map((R) => R.apps).flat()) ?? []).find((R) => R.code === "alarm");
5561
5562
  T && A({ microApp: T, menuPath: `/${T.routeUrl}/realTimeAlarm` });
5562
- }, y = [], f = (I) => {
5563
- if (y.push(I), i.value.length < 2) {
5564
- d(y[0]), y.shift();
5563
+ }, _ = [], f = (I) => {
5564
+ if (_.push(I), i.value.length < 2) {
5565
+ d(_[0]), _.shift();
5565
5566
  return;
5566
5567
  }
5567
5568
  }, d = (I) => {
@@ -5585,14 +5586,14 @@ const Xp = () => {
5585
5586
  onClose: () => {
5586
5587
  setTimeout(() => {
5587
5588
  const M = i.value.findIndex((R) => R == T);
5588
- if (M >= 0 && i.value.splice(M, 1), i.value.length < 2 && y.length) {
5589
- d(y[0]), y.shift();
5589
+ if (M >= 0 && i.value.splice(M, 1), i.value.length < 2 && _.length) {
5590
+ d(_[0]), _.shift();
5590
5591
  return;
5591
5592
  }
5592
5593
  }, 300);
5593
5594
  }
5594
- }), i.value.includes(T) || i.value.push(T), v(I);
5595
- }, v = (I) => {
5595
+ }), i.value.includes(T) || i.value.push(T), m(I);
5596
+ }, m = (I) => {
5596
5597
  if (I) {
5597
5598
  if (!c.value) {
5598
5599
  b();
@@ -5600,13 +5601,13 @@ const Xp = () => {
5600
5601
  }
5601
5602
  if (!I.coverId) {
5602
5603
  if (s.value.playLine === null) {
5603
- b(), Number(I.noticeNum) != 0 && _(I);
5604
+ b(), Number(I.noticeNum) != 0 && y(I);
5604
5605
  return;
5605
5606
  }
5606
- Number(I.alarmLevelId) < s.value.playLine && (b(), Number(I.noticeNum) != 0 && _(I));
5607
+ Number(I.alarmLevelId) < s.value.playLine && (b(), Number(I.noticeNum) != 0 && y(I));
5607
5608
  }
5608
5609
  }
5609
- }, _ = (I) => {
5610
+ }, y = (I) => {
5610
5611
  const T = Number(I.noticeNum), M = location.origin + "/oss";
5611
5612
  s.value.isplay && s.value.playId == I.recordId ? b() : (T < 0 ? s.value.loop = !0 : s.value.loop = !1, T > 0 ? (s.value.loopTotalCount = Number(I.noticeNum), s.value.loopCount = 0) : (s.value.loopTotalCount = 0, s.value.loopCount = 0), s.value.isplay = !0, s.value.playId = I.recordId, s.value.playLine = Number(I.alarmLevelId), s.value.playPath = M + I.noticePath, P());
5612
5613
  }, b = () => {
@@ -5645,7 +5646,7 @@ const Xp = () => {
5645
5646
  R && n.value.send(R);
5646
5647
  },
5647
5648
  message: async (R) => {
5648
- te.sendMessageToMicroApp("enterpriseadmin/alarm", "alarmmessage", { alarmMessage: R }), R.messageType === "ADD" && (e.value = e.value + 1, R.coverId || f(R)), R.messageType === "DELETE" && (e.value = e.value - 1, s.value.playId == R.recordId && b());
5649
+ te.sendMessageToMicroApp("enterpriseadmin/alarm", "alarmmessage", { alarmMessage: R }), window.self === window.top && (R.messageType === "ADD" && (e.value = e.value + 1, R.coverId || f(R)), R.messageType === "DELETE" && (e.value = e.value - 1, s.value.playId == R.recordId && b()));
5649
5650
  }
5650
5651
  }));
5651
5652
  }
@@ -5662,14 +5663,14 @@ const Xp = () => {
5662
5663
  We,
5663
5664
  null,
5664
5665
  [
5665
- x(m(i)),
5666
+ x(v(i)),
5666
5667
  $("audio", {
5667
- src: m(o).playPath,
5668
+ src: v(o).playPath,
5668
5669
  class: "audio-alarm-level",
5669
5670
  ref_key: "audioAlarmRef",
5670
5671
  ref: r,
5671
- muted: !m(o).isplay,
5672
- loop: m(o).loop,
5672
+ muted: !v(o).isplay,
5673
+ loop: v(o).loop,
5673
5674
  autoplay: ""
5674
5675
  }, null, 8, Zp)
5675
5676
  ],
@@ -5682,17 +5683,17 @@ const Xp = () => {
5682
5683
  setup(n) {
5683
5684
  const { isFullscreen: e } = lt(), t = Ce(() => !e.value), o = Ce(() => ee.excludeRoutes), r = Ce(() => ee.routeKeepAliveVisible), i = Ce(() => ({ mode: Ct.value === 1 ? "vertical" : "inline" })), { initNextTick: a } = yu(), { innerPage: l, commandList: c, initNextTick: s } = _u(a);
5684
5685
  Su(l, a, s), Eu(), Cu(), Bu();
5685
- const { $changePwd: u, $personSetDialog: A } = Tu(), { changeEnterprisesVisible: g, userId: p, tenantId: w, changeEnterprise: y } = fr();
5686
+ const { $changePwd: u, $personSetDialog: A } = Tu(), { changeEnterprisesVisible: g, userId: p, tenantId: w, changeEnterprise: _ } = fr();
5686
5687
  wu();
5687
- const { fontColor: f, backgroudColor: d, borderColor: v } = Iu();
5688
- return Ru(), Qu(c), ju(), Nu(), yd(), up(), (_, b) => (H(), de("div", ef, [
5689
- x(m(Os), { platformInitNextTick: m(a) }, {
5688
+ const { fontColor: f, backgroudColor: d, borderColor: m } = Iu();
5689
+ return Ru(), Qu(c), ju(), Nu(), yd(), up(), (y, b) => (H(), de("div", ef, [
5690
+ x(v(Os), { platformInitNextTick: v(a) }, {
5690
5691
  default: L(() => [
5691
5692
  x(gs, {
5692
5693
  showLayout: t.value,
5693
5694
  excludeRoutes: o.value,
5694
5695
  routeKeepAliveVisible: r.value,
5695
- tabsAttr: { fontColor: m(f), backgroudColor: m(d), borderColor: m(v) },
5696
+ tabsAttr: { fontColor: v(f), backgroudColor: v(d), borderColor: v(m) },
5696
5697
  menuAttr: i.value
5697
5698
  }, null, 8, ["showLayout", "excludeRoutes", "routeKeepAliveVisible", "tabsAttr", "menuAttr"])
5698
5699
  ]),
@@ -5700,16 +5701,16 @@ const Xp = () => {
5700
5701
  /* STABLE */
5701
5702
  }, 8, ["platformInitNextTick"]),
5702
5703
  N(" 切换租户 "),
5703
- x(m(Nr), {
5704
- visible: m(g),
5704
+ x(v(Nr), {
5705
+ visible: v(g),
5705
5706
  "onUpdate:visible": b[0] || (b[0] = (P) => Mr(g) ? g.value = P : null),
5706
- userId: m(p),
5707
- tenantId: m(w),
5708
- onConfirm: m(y)
5707
+ userId: v(p),
5708
+ tenantId: v(w),
5709
+ onConfirm: v(_)
5709
5710
  }, null, 8, ["visible", "userId", "tenantId", "onConfirm"]),
5710
5711
  N(" 修改密码 "),
5711
5712
  x(
5712
- m(Hr),
5713
+ v(Hr),
5713
5714
  {
5714
5715
  ref_key: "$changePwd",
5715
5716
  ref: u
@@ -5720,7 +5721,7 @@ const Xp = () => {
5720
5721
  ),
5721
5722
  N(" 个性化设置 "),
5722
5723
  x(
5723
- m(Au),
5724
+ v(Au),
5724
5725
  {
5725
5726
  ref_key: "$personSetDialog",
5726
5727
  ref: A
@@ -5730,23 +5731,23 @@ const Xp = () => {
5730
5731
  /* NEED_PATCH */
5731
5732
  ),
5732
5733
  N(" 告警 "),
5733
- x(m(Yp))
5734
+ x(v(Yp))
5734
5735
  ]));
5735
5736
  }
5736
- }), nf = /* @__PURE__ */ Ie(tf, [["__scopeId", "data-v-45ef70df"]]);
5737
+ }), nf = /* @__PURE__ */ Ee(tf, [["__scopeId", "data-v-6e85c13f"]]);
5737
5738
  S("@das-fed/web");
5738
5739
  const of = [
5739
5740
  {
5740
- path: ke,
5741
- component: () => import("./index-BryL7_iB.js")
5741
+ path: Ie,
5742
+ component: () => import("./index-E1pACiHI.js")
5742
5743
  },
5743
5744
  {
5744
5745
  path: Je,
5745
- component: () => import("./index-xl1hHq_y.js")
5746
+ component: () => import("./index-CfM1liO6.js")
5746
5747
  },
5747
5748
  {
5748
5749
  path: Do,
5749
- component: () => import("./index-DGMLWSQr.js")
5750
+ component: () => import("./index-Bcz8SW2I.js")
5750
5751
  }
5751
5752
  ], qf = {
5752
5753
  routes: of,
@@ -5761,7 +5762,7 @@ const of = [
5761
5762
  };
5762
5763
  export {
5763
5764
  Je as I,
5764
- Ie as _,
5765
+ Ee as _,
5765
5766
  io as a,
5766
5767
  ao as b,
5767
5768
  qe as c,