@das-fed/web 6.4.0-hot.5 → 6.4.0-hot.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { defineComponent as pe, computed as Ce, openBlock as H, createBlock as V, unref as A, mergeProps as Sr, withCtx as x, renderSlot as $e, createVNode as R, getCurrentScope as Tr, onScopeDispose as kr, getCurrentInstance as Pr, onMounted as Qe, nextTick as Fe, ref as T, watch as re, reactive as yo, createElementVNode as $, createTextVNode as ue, createElementBlock as de, Fragment as We, renderList as _o, withDirectives as Br, toDisplayString as Y, createCommentVNode as U, pushScopeId as bo, popScopeId as wo, h as he, render as vt, onBeforeUnmount as Et, useCssVars as Or, normalizeClass as Dr, withModifiers as ne, toRefs as $r, normalizeStyle as Sn, isRef as Mr } from "vue";
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";
@@ -13,12 +13,12 @@ import { createService as je } from "@das-fed/utils/create-api-service";
13
13
  import { useRouter as Ge, useRoute as on } from "vue-router";
14
14
  import { useGetAuth as Gr } from "@das-fed/utils/hooks/use-get-auth";
15
15
  import { systemConfiguration as Xr, enterpriseright as rn, createService as Xe, spaceManage as To } from "@das-fed/utils/api-services";
16
- import { microFrontend as X } from "@das-fed/web/packages/micro-frontend/index";
16
+ import { microFrontend as te } from "@das-fed/web/packages/micro-frontend/index";
17
17
  import { getConfig as He } from "@das-fed/utils/config";
18
18
  import Jt from "dayjs";
19
19
  import { getAccessToken as Zr, removeAccessToken as Yr } from "@das-fed/utils/token-tools";
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,23 +71,23 @@ const nt = "/", ke = "/application", Oo = [
71
71
  excludeRoutes: e.excludeRoutes,
72
72
  routeKeepAliveVisible: e.routeKeepAliveVisible
73
73
  }));
74
- return (r, i) => (H(), V(A(Lr), Sr({ "transition-config": t.value }, o.value), {
75
- header: x(() => [
74
+ return (r, i) => (H(), V(v(Lr), Sr({ "transition-config": t.value }, o.value), {
75
+ header: L(() => [
76
76
  $e(r.$slots, "header", {}, () => [
77
- R(A(xr))
77
+ x(v(xr))
78
78
  ])
79
79
  ]),
80
- aside: x(() => [
80
+ aside: L(() => [
81
81
  $e(r.$slots, "aside", {}, () => [
82
- R(A(Rr), { menuAttr: r.menuAttr }, null, 8, ["menuAttr"])
82
+ x(v(Rr), { menuAttr: r.menuAttr }, null, 8, ["menuAttr"])
83
83
  ])
84
84
  ]),
85
- tab: x(() => [
85
+ tab: L(() => [
86
86
  $e(r.$slots, "tab", {}, () => [
87
- R(A(Qr), { tabsAttr: r.tabsAttr }, null, 8, ["tabsAttr"])
87
+ x(v(Qr), { tabsAttr: r.tabsAttr }, null, 8, ["tabsAttr"])
88
88
  ])
89
89
  ]),
90
- banner: x(() => [
90
+ banner: L(() => [
91
91
  $e(r.$slots, "banner")
92
92
  ]),
93
93
  _: 3
@@ -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() : A(n);
103
+ return typeof n == "function" ? n() : v(n);
104
104
  }
105
105
  function vs(n) {
106
106
  return n;
@@ -124,15 +124,15 @@ function ws(...n) {
124
124
  Array.isArray(t) || (t = [t]), Array.isArray(o) || (o = [o]);
125
125
  const i = [], a = () => {
126
126
  i.forEach((u) => u()), i.length = 0;
127
- }, l = (u, b, g, f) => (u.addEventListener(b, g, f), () => u.removeEventListener(b, g, f)), c = re(() => [Lo(e), $o(r)], ([u, b]) => {
128
- a(), u && i.push(...t.flatMap((g) => o.map((f) => l(u, g, f, b))));
127
+ }, l = (u, A, g, p) => (u.addEventListener(A, g, p), () => u.removeEventListener(A, g, p)), c = re(() => [Lo(e), $o(r)], ([u, A]) => {
128
+ a(), u && i.push(...t.flatMap((g) => o.map((p) => l(u, g, p, A))));
129
129
  }, { immediate: !0, flush: "post" }), s = () => {
130
130
  c(), a();
131
131
  };
132
132
  return Mo(s), s;
133
133
  }
134
134
  function Cs(n, e = !1) {
135
- const t = T(), o = () => t.value = !!n();
135
+ const t = S(), o = () => t.value = !!n();
136
136
  return o(), ys(o, e), t;
137
137
  }
138
138
  const Dn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, $n = "__vueuse_ssr_handlers__";
@@ -180,38 +180,38 @@ const Mn = [
180
180
  ]
181
181
  ];
182
182
  function lt(n, e = {}) {
183
- const { document: t = bs, autoExit: o = !1 } = e, r = n || (t == null ? void 0 : t.querySelector("html")), i = T(!1);
183
+ const { document: t = bs, autoExit: o = !1 } = e, r = n || (t == null ? void 0 : t.querySelector("html")), i = S(!1);
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;
193
- }), [c, s, u, , b] = a;
193
+ }), [c, s, u, , A] = a;
194
194
  async function g() {
195
195
  l.value && (t != null && t[u] && await t[s](), i.value = !1);
196
196
  }
197
- async function f() {
197
+ async function p() {
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
- async function v() {
205
- i.value ? await g() : await f();
204
+ async function w() {
205
+ i.value ? await g() : await p();
206
206
  }
207
- return t && ws(t, b, () => {
207
+ return t && ws(t, A, () => {
208
208
  i.value = !!(t != null && t[u]);
209
209
  }, !1), o && Mo(g), {
210
210
  isSupported: l,
211
211
  isFullscreen: i,
212
- enter: f,
212
+ enter: p,
213
213
  exit: g,
214
- toggle: v
214
+ toggle: w
215
215
  };
216
216
  }
217
217
  var Ln;
@@ -261,62 +261,62 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
261
261
  platformInitNextTick: {}
262
262
  },
263
263
  setup(n) {
264
- const e = n, t = T({}), o = T(120), r = T(64);
264
+ const e = n, t = S({}), o = S(120), r = S(64);
265
265
  let i = [];
266
- const a = T([]), l = yo({
266
+ const a = S([]), l = yo({
267
267
  color: "rgba(0,0,0,.15)",
268
268
  fontSize: 16
269
- }), c = (f, v) => {
270
- const y = document.createElement("span");
271
- y.innerHTML = f, y.style.fontSize = v + "px", y.style.fontFamily = "sans-serif", y.style.visibility = "hidden", document.body.appendChild(y);
272
- const p = y.getBoundingClientRect();
273
- o.value = Math.ceil(p.width) + v / 2, r.value = Math.ceil(p.height), document.body.removeChild(y);
274
- }, s = (f) => {
275
- var y;
276
- const v = !!((y = t.value) != null && y.pageSwith);
277
- a.value = f && v ? [...i] : [];
269
+ }), c = (p, w) => {
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
+ }, s = (p) => {
275
+ var _;
276
+ const w = !!((_ = t.value) != null && _.pageSwith);
277
+ a.value = p && w ? [...i] : [];
278
278
  }, u = async () => {
279
- var p, d, m, _, w, k, B;
279
+ var f, d, m, y, b, P, C;
280
280
  await (e == null ? void 0 : e.platformInitNextTick());
281
- const [f, v] = await Ps().run();
282
- if (f) return null;
283
- if (t.value = v, !!((p = t.value) != null && p.pageSwith)) {
281
+ const [p, w] = await Ps().run();
282
+ if (p) return null;
283
+ if (t.value = w, !!((f = t.value) != null && f.pageSwith)) {
284
284
  i = [];
285
- const { name: E, phone: S } = await as();
286
- let C = "";
287
- if ((d = t.value) != null && d.nameSwith && E && (i.push(E), C = C + `${E} `), (m = t.value) != null && m.phoneSwith && S) {
288
- const M = S.slice(-4);
289
- i.push(M), C = C + `${M} `;
285
+ const { name: k, phone: I } = await as();
286
+ let T = "";
287
+ if ((d = t.value) != null && d.nameSwith && k && (i.push(k), T = T + `${k} `), (m = t.value) != null && m.phoneSwith && I) {
288
+ const M = I.slice(-4);
289
+ i.push(M), T = T + `${M} `;
290
290
  }
291
- if ((_ = t.value) != null && _.textSwith && ((w = t.value) != null && w.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/>");
295
- C = C + `${M}`;
295
+ T = T + `${M}`;
296
296
  }
297
297
  i.length && (i = i.join(" ").split(`
298
- `)), l.color = (k = t.value) != null && k.textColor ? t.value.textColor : "rgba(0,0,0,.15)", l.fontSize = (B = t.value) != null && B.textSize ? parseInt(t.value.textSize) : 16, c(C, l.fontSize);
298
+ `)), l.color = (P = t.value) != null && P.textColor ? t.value.textColor : "rgba(0,0,0,.15)", l.fontSize = (C = t.value) != null && C.textSize ? parseInt(t.value.textSize) : 16, c(T, l.fontSize);
299
299
  }
300
- return v;
300
+ return w;
301
301
  };
302
302
  u();
303
- const b = Ge(), g = on();
303
+ const A = Ge(), g = on();
304
304
  return re(
305
- () => b.currentRoute.value,
306
- (f) => {
307
- var d, m, _;
308
- const v = !!((d = t.value) != null && d.pageSwith), y = ((m = f.meta) == null ? void 0 : m.showWatermark) ?? !0;
309
- let p = ((_ = f.query) == null ? void 0 : _.showWatermark) ?? !0;
310
- p === "false" && (p = !1), s(v && !!(y && p));
305
+ () => A.currentRoute.value,
306
+ (p) => {
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
- ), X.addEventListenerFromMicroApp("systemconfig:watermark-change", () => {
314
- var y, p;
313
+ ), te.addEventListenerFromMicroApp("systemconfig:watermark-change", () => {
314
+ var _, f;
315
315
  u();
316
- const f = !!((y = t.value) != null && y.pageSwith);
317
- let v = ((p = g.query) == null ? void 0 : p.showWatermark) ?? !0;
318
- v === "false" && (v = !1), s(!!(f && v));
319
- }), (f, v) => (H(), V(A(ls), {
316
+ const p = !!((_ = t.value) != null && _.pageSwith);
317
+ let w = ((f = g.query) == null ? void 0 : f.showWatermark) ?? !0;
318
+ w === "false" && (w = !1), s(!!(p && w));
319
+ }), (p, w) => (H(), V(v(ls), {
320
320
  class: "watermark",
321
321
  font: l,
322
322
  zIndex: 2147483647,
@@ -324,19 +324,19 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
324
324
  width: o.value,
325
325
  height: r.value
326
326
  }, {
327
- default: x(() => [
328
- $e(f.$slots, "default", {}, void 0, !0)
327
+ default: L(() => [
328
+ $e(p.$slots, "default", {}, void 0, !0)
329
329
  ]),
330
330
  _: 3
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-6be90334"]]), 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"
@@ -355,8 +355,8 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
355
355
  closeCallback: {}
356
356
  },
357
357
  setup(n) {
358
- const e = T(!0);
359
- return (t, o) => (H(), V(A(sn), {
358
+ const e = S(!0);
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",
@@ -367,14 +367,14 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
367
367
  "custom-class": "menu-tip-diaolg",
368
368
  onClosed: t.closeCallback
369
369
  }, {
370
- footer: x(() => [
370
+ footer: L(() => [
371
371
  $("div", xs, [
372
- R(A(Te), {
372
+ x(v(ke), {
373
373
  btnType: "default",
374
374
  size: "small",
375
375
  onClick: t.closeCallback
376
376
  }, {
377
- default: x(() => [
377
+ default: L(() => [
378
378
  ue("我知道了")
379
379
  ]),
380
380
  _: 1
@@ -382,7 +382,7 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
382
382
  }, 8, ["onClick"])
383
383
  ])
384
384
  ]),
385
- default: x(() => [
385
+ default: L(() => [
386
386
  $("div", {
387
387
  class: "content",
388
388
  innerHTML: t.content
@@ -400,12 +400,12 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
400
400
  class: "desc-item"
401
401
  }, [
402
402
  ue(
403
- Y(r),
403
+ Z(r),
404
404
  1
405
405
  /* TEXT */
406
406
  )
407
407
  ])), [
408
- [A(es)]
408
+ [v(es)]
409
409
  ])),
410
410
  128
411
411
  /* KEYED_FRAGMENT */
@@ -413,13 +413,13 @@ const Ps = Xr.get("watermark"), Bs = /* @__PURE__ */ pe({
413
413
  ],
414
414
  64
415
415
  /* STABLE_FRAGMENT */
416
- )) : U("v-if", !0)
416
+ )) : N("v-if", !0)
417
417
  ]),
418
418
  _: 1
419
419
  /* STABLE */
420
420
  }, 8, ["modelValue", "width", "height", "title", "onClosed"]));
421
421
  }
422
- }), Qs = /* @__PURE__ */ Ie(Rs, [["__scopeId", "data-v-f9de08eb"]]), 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: () => {
@@ -496,28 +496,28 @@ const js = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
496
496
  var g;
497
497
  const s = c.code, u = (c == null ? void 0 : c.originalCode) ?? "";
498
498
  l[s] || (l[s] = []);
499
- let b = [];
500
- c != null && c.children && ((g = c == null ? void 0 : c.children) != null && g.length) && (c.children.forEach((f) => {
501
- var v;
502
- !(f != null && f.children) || !((v = f.children) != null && v.length) ? b.push({
503
- code: f.code,
504
- originalCode: f.originalCode,
505
- name: f.name
506
- }) : ye([f]).forEach((p) => {
507
- b.push({
508
- code: p.code,
509
- originalCode: p.originalCode,
510
- name: p.name
499
+ let A = [];
500
+ c != null && c.children && ((g = c == null ? void 0 : c.children) != null && g.length) && (c.children.forEach((p) => {
501
+ var w;
502
+ !(p != null && p.children) || !((w = p.children) != null && w.length) ? A.push({
503
+ code: p.code,
504
+ originalCode: p.originalCode,
505
+ name: p.name
506
+ }) : ye([p]).forEach((f) => {
507
+ A.push({
508
+ code: f.code,
509
+ originalCode: f.originalCode,
510
+ name: f.name
511
511
  });
512
512
  });
513
- }), b.forEach((f) => {
514
- let v = f.originalCode ? f.originalCode : f.code ? f.code : "";
515
- v.includes(s + ".") && (v = v.replace(s + ".", "").replaceAll(".", "-")), v.includes(u + ".") && (v = v.replace(u + ".", "").replaceAll(".", "-"));
516
- const y = {
517
- code: v,
518
- name: f.name
513
+ }), A.forEach((p) => {
514
+ let w = p.originalCode ? p.originalCode : p.code ? p.code : "";
515
+ w.includes(s + ".") && (w = w.replace(s + ".", "").replaceAll(".", "-")), w.includes(u + ".") && (w = w.replace(u + ".", "").replaceAll(".", "-"));
516
+ const _ = {
517
+ code: w,
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;
@@ -1118,30 +1118,30 @@ function mt(n, e, t, o, r, i) {
1118
1118
  if (a = Dc(n), !l)
1119
1119
  return gc(n, a);
1120
1120
  } else {
1121
- var b = we(n), g = b == ar || b == yl;
1121
+ var A = we(n), g = A == ar || A == yl;
1122
1122
  if (qo(n))
1123
1123
  return hc(n, l);
1124
- if (b == cr || b == ir || g && !r) {
1124
+ if (A == cr || A == ir || g && !r) {
1125
1125
  if (a = c || g ? {} : sl(n), !l)
1126
1126
  return c ? bc(n, pc(a, n)) : yc(n, ac(a, n));
1127
1127
  } else {
1128
- if (!J[b])
1128
+ if (!J[A])
1129
1129
  return r ? n : {};
1130
- a = ol(n, b, l);
1130
+ a = ol(n, A, l);
1131
1131
  }
1132
1132
  }
1133
1133
  i || (i = new Ye());
1134
- var f = i.get(n);
1135
- if (f)
1136
- return f;
1137
- i.set(n, a), dl(n) ? n.forEach(function(p) {
1138
- a.add(mt(p, e, t, p, n, i));
1139
- }) : cl(n) && n.forEach(function(p, d) {
1140
- a.set(d, mt(p, e, t, d, n, i));
1134
+ var p = i.get(n);
1135
+ if (p)
1136
+ return p;
1137
+ i.set(n, a), dl(n) ? n.forEach(function(f) {
1138
+ a.add(mt(f, e, t, f, n, i));
1139
+ }) : cl(n) && n.forEach(function(f, d) {
1140
+ a.set(d, mt(f, e, t, d, n, i));
1141
1141
  });
1142
- var v = s ? c ? Cc : wc : c ? hn : fn, y = u ? void 0 : v(n);
1143
- return pa(y || n, function(p, d) {
1144
- y && (d = p, p = n[d]), Wo(a, d, mt(p, 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,13 +1181,13 @@ 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 };
1188
1188
  }, Ul = (n, e, t) => {
1189
- var b;
1190
- const o = ye(e).filter((g) => g.routeUrl).filter((g) => !(g != null && g.disable) && !(g != null && g.expired)), i = (((b = ce()) == null ? void 0 : b.tabMap) ?? {})[n] ?? [], { left: a, right: l } = Nl(i, t), c = i.filter((g) => o.find((f) => f.code === g.code));
1189
+ var A;
1190
+ const o = ye(e).filter((g) => g.routeUrl).filter((g) => !(g != null && g.disable) && !(g != null && g.expired)), i = (((A = ce()) == null ? void 0 : A.tabMap) ?? {})[n] ?? [], { left: a, right: l } = Nl(i, t), c = i.filter((g) => o.find((p) => p.code === g.code));
1191
1191
  if (!a.length && !l.length || !c.length)
1192
1192
  return le([
1193
1193
  { key: "currentCode", value: "" },
@@ -1197,11 +1197,11 @@ const wt = (n, e = "") => {
1197
1197
  ]), Gt(n);
1198
1198
  let s = null;
1199
1199
  if (l.length) {
1200
- const g = l.find((f) => c.map((v) => v.code).includes(f.code));
1200
+ const g = l.find((p) => c.map((w) => w.code).includes(p.code));
1201
1201
  g && (s = g);
1202
1202
  }
1203
1203
  if (!s && a.length) {
1204
- const g = a.reverse().find((f) => c.map((v) => v.code).includes(f.code));
1204
+ const g = a.reverse().find((p) => c.map((w) => w.code).includes(p.code));
1205
1205
  g && (s = g);
1206
1206
  }
1207
1207
  return s ? (le([
@@ -1238,32 +1238,32 @@ 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, f, v, 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
- let a = ((f = r.query) == null ? void 0 : f.showLayout) ?? !0;
1244
+ let a = ((p = r.query) == null ? void 0 : p.showLayout) ?? !0;
1245
1245
  a === "false" && (a = !1);
1246
1246
  let l = (e == null ? void 0 : e.code) ?? "";
1247
1247
  if (!l) return { menuConfig: [], currentApp: null, currentMenu: null, query: null };
1248
1248
  let c = [], s = [];
1249
1249
  const u = F().subAppList ?? [];
1250
- if (u.length && (c = ((v = u.find((p) => p.code === e.code)) == null ? void 0 : v.menus) ?? []), !c.length) {
1251
- const { menus: p, originalMenus: d } = await mn(l);
1252
- c = p ?? [], s = d ?? [];
1250
+ if (u.length && (c = ((w = u.find((f) => f.code === e.code)) == null ? void 0 : w.menus) ?? []), !c.length) {
1251
+ const { menus: f, originalMenus: d } = await mn(l);
1252
+ c = f ?? [], s = d ?? [];
1253
1253
  }
1254
1254
  if (!c.length && (!i || !a))
1255
1255
  return { menuConfig: [], currentApp: null, currentMenu: null, query: null };
1256
1256
  if (e.routeUrl === "iot/iot") {
1257
- const { instanceInfo: p } = await ui();
1258
- if (p) {
1257
+ const { instanceInfo: f } = await ui();
1258
+ if (f) {
1259
1259
  let d = !1;
1260
- c.forEach((_) => {
1261
- _.routeUrl === "/deviceInstance" && (_.fixed = !0, _.divise = !0, _.menuCode = _.code, _.tagName = _.tabName = "实例", _.name = p.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 m = Fr(p.endTime) || p.endTime == 0 || p.endTime === 253370736e6 || p.endTime === "253370736000000" ? "-" : Number(p.endTime);
1264
- if (d = Jt().endOf("day") > Jt(m).endOf("day"), !t && p.id && !d) {
1265
- const w = ye(c).find((k) => k.routeUrl === "/statisticalReport");
1266
- w && (t = w.code);
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
+ const b = ye(c).find((P) => P.routeUrl === "/statisticalReport");
1266
+ b && (t = b.code);
1267
1267
  }
1268
1268
  }
1269
1269
  }
@@ -1271,7 +1271,7 @@ const wt = (n, e = "") => {
1271
1271
  const d = (ce().tabMap ?? {})[e.code] ?? [];
1272
1272
  if (d.length) {
1273
1273
  const m = d.filter(
1274
- (_) => t && t === _.code || o && o === `/${_.applicationPath}${_.path}`.replace(/\/\//g, "/") || ye(c).map((w) => w.code).includes(_.code)
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
  {
@@ -1282,12 +1282,12 @@ const wt = (n, e = "") => {
1282
1282
  }
1283
1283
  }
1284
1284
  if (!t && o) {
1285
- const p = ye(c).find((d) => {
1285
+ const f = ye(c).find((d) => {
1286
1286
  const m = `/${d.applicationPath}${d.routeUrl}`.replace(/\/\//g, "/");
1287
1287
  return d.applicationPath && d.routeUrl && (o === m || o.startsWith(`/${m}/`));
1288
1288
  });
1289
- if (p)
1290
- t = p.code;
1289
+ if (f)
1290
+ t = f.code;
1291
1291
  else
1292
1292
  return {
1293
1293
  menuConfig: c,
@@ -1296,60 +1296,60 @@ const wt = (n, e = "") => {
1296
1296
  query: { ...r.query, app: l }
1297
1297
  };
1298
1298
  }
1299
- let b = wt(c, t);
1300
- if (!b) {
1299
+ let A = wt(c, t);
1300
+ if (!A) {
1301
1301
  if (!i || !a)
1302
1302
  return { menuConfig: c, currentApp: null, currentMenu: null, query: { ...r.query, app: l } };
1303
- const p = Ul(e.code, c, t);
1304
- p != null && p.currentApp && (e = p.currentApp), p != null && p.currentMenu && (b = p.currentMenu), p != null && p.currentTab && (r.query = ((y = p.currentTab) == null ? void 0 : y.query) ?? {});
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 = ((_ = 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
- if (b) {
1309
- const p = `/${b.applicationPath}${b.routeUrl}`;
1308
+ if (A) {
1309
+ const f = `/${A.applicationPath}${A.routeUrl}`;
1310
1310
  let d = "";
1311
- o && o.startsWith(p) && o !== p && (d = o);
1312
- const m = { ...r.query, app: l, menu: b.code };
1311
+ o && o.startsWith(f) && o !== f && (d = o);
1312
+ const m = { ...r.query, app: l, menu: A.code };
1313
1313
  if (i && a) {
1314
- const _ = { ...e, currentMenuCode: b.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
- const w = {
1320
+ const b = {
1321
1321
  currentApplication: e.routeUrl,
1322
- applicationPath: b.applicationPath,
1322
+ applicationPath: A.applicationPath,
1323
1323
  applicationCode: l,
1324
- menuId: b.id,
1325
- code: b.code,
1326
- name: (b == null ? void 0 : b.tabName) ?? b.name,
1327
- path: b.routeUrl,
1324
+ menuId: A.id,
1325
+ code: A.code,
1326
+ name: (A == null ? void 0 : A.tabName) ?? A.name,
1327
+ path: A.routeUrl,
1328
1328
  query: m
1329
1329
  };
1330
1330
  le([
1331
1331
  {
1332
1332
  key: "currentCode",
1333
- value: b.code
1333
+ value: A.code
1334
1334
  },
1335
1335
  {
1336
1336
  key: "currentTab",
1337
- value: w
1337
+ value: b
1338
1338
  },
1339
1339
  {
1340
1340
  key: `tabMap:${l}`,
1341
- value: w
1341
+ value: b
1342
1342
  },
1343
1343
  {
1344
1344
  key: `preTab:${l}`,
1345
- value: w
1345
+ value: b
1346
1346
  }
1347
1347
  ]);
1348
1348
  }
1349
- return { menuConfig: c, currentApp: e, currentMenu: b, query: m, 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
- }, Jl = Be.get("/appcategory"), io = T([]), ao = T(!1), lr = async () => {
1352
+ }, Jl = Be.get("/appcategory"), io = S([]), ao = S(!1), lr = async () => {
1353
1353
  ao.value = !0;
1354
1354
  const [n, e] = await Jl().run({ userType: 1 });
1355
1355
  return ao.value = !1, n ? (io.value = [], { navConfig: [] }) : (io.value = e, Ae([{ key: "appcategorys", value: e }]), { navConfig: e });
@@ -1380,16 +1380,16 @@ const wt = (n, e = "") => {
1380
1380
  }, ou = async () => {
1381
1381
  const [n, e] = await Zl().run();
1382
1382
  return n ? { platformConfig: null } : { platformConfig: e };
1383
- }, ur = T(null), ru = async () => {
1383
+ }, ur = S(null), ru = async () => {
1384
1384
  const [n, e] = await eu().run();
1385
1385
  return n ? { homeConfig: null } : (e && (Fs(e), ur.value = e), { homeConfig: e });
1386
- }, Ct = T(1), dr = async () => {
1386
+ }, Ct = S(1), dr = async () => {
1387
1387
  const [n, e] = await tu().run();
1388
1388
  return n ? { personalMenuConfig: null } : (Ct.value = (e == null ? void 0 : e.style) ?? 1, { personalMenuConfig: e });
1389
1389
  }, su = Be.post("/menu/personal-setting"), iu = { class: "preson-style-drawer" }, au = { class: "preson-style-container" }, cu = { class: "title" }, lu = { class: "content" }, uu = { class: "item-content" }, du = ["src"], pu = { class: "item-content" }, fu = ["src"], hu = { class: "preson-style-footer" }, gu = /* @__PURE__ */ pe({
1390
1390
  __name: "index",
1391
1391
  setup(n, { expose: e }) {
1392
- const t = T(!1), o = T(!1), r = T(!1), i = T(!1), a = () => {
1392
+ const t = S(!1), o = S(!1), r = S(!1), i = S(!1), a = () => {
1393
1393
  o.value = Ct.value === 1, r.value = Ct.value === 2, t.value = !0;
1394
1394
  }, l = (s) => {
1395
1395
  s === 1 ? r.value = !1 : o.value = !1;
@@ -1401,33 +1401,33 @@ const wt = (n, e = "") => {
1401
1401
  /** 打开弹窗 */
1402
1402
  openDialog: a
1403
1403
  }), (s, u) => (H(), de("div", iu, [
1404
- R(A(us), {
1405
- title: A(Q)("主题设置").value,
1404
+ x(v(us), {
1405
+ title: v(Q)("主题设置").value,
1406
1406
  modelValue: t.value,
1407
- "onUpdate:modelValue": u[5] || (u[5] = (b) => t.value = b),
1407
+ "onUpdate:modelValue": u[5] || (u[5] = (A) => t.value = A),
1408
1408
  "body-style": { padding: 0 },
1409
1409
  direction: "rtl"
1410
1410
  }, {
1411
- footer: x(() => [
1411
+ footer: L(() => [
1412
1412
  $("div", hu, [
1413
- R(A(Te), {
1413
+ x(v(ke), {
1414
1414
  size: "middle",
1415
- onClick: u[4] || (u[4] = (b) => t.value = !1),
1415
+ onClick: u[4] || (u[4] = (A) => t.value = !1),
1416
1416
  style: { "margin-right": "12px" }
1417
1417
  }, {
1418
- default: x(() => [
1418
+ default: L(() => [
1419
1419
  ue("取消")
1420
1420
  ]),
1421
1421
  _: 1
1422
1422
  /* STABLE */
1423
1423
  }),
1424
- R(A(Te), {
1424
+ x(v(ke), {
1425
1425
  btnType: "primary",
1426
1426
  size: "middle",
1427
1427
  loading: i.value,
1428
1428
  onClick: c
1429
1429
  }, {
1430
- default: x(() => [
1430
+ default: L(() => [
1431
1431
  ue("确定")
1432
1432
  ]),
1433
1433
  _: 1
@@ -1435,31 +1435,31 @@ const wt = (n, e = "") => {
1435
1435
  }, 8, ["loading"])
1436
1436
  ])
1437
1437
  ]),
1438
- default: x(() => [
1438
+ default: L(() => [
1439
1439
  $("div", au, [
1440
1440
  $(
1441
1441
  "p",
1442
1442
  cu,
1443
- Y(A(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: A(js),
1450
+ src: v(js),
1451
1451
  alt: "",
1452
1452
  width: "180",
1453
1453
  height: "120"
1454
1454
  }, null, 8, du),
1455
- R(A(kn), {
1455
+ x(v(kn), {
1456
1456
  modelValue: o.value,
1457
- "onUpdate:modelValue": u[0] || (u[0] = (b) => o.value = b),
1458
- onChange: u[1] || (u[1] = (b) => l(1))
1457
+ "onUpdate:modelValue": u[0] || (u[0] = (A) => o.value = A),
1458
+ onChange: u[1] || (u[1] = (A) => l(1))
1459
1459
  }, {
1460
- default: x(() => [
1460
+ default: L(() => [
1461
1461
  ue(
1462
- Y(A(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: A(Hs),
1473
+ src: v(Hs),
1474
1474
  alt: "",
1475
1475
  width: "180",
1476
1476
  height: "120"
1477
1477
  }, null, 8, fu),
1478
- R(A(kn), {
1478
+ x(v(kn), {
1479
1479
  modelValue: r.value,
1480
- "onUpdate:modelValue": u[2] || (u[2] = (b) => r.value = b),
1481
- onChange: u[3] || (u[3] = (b) => l(2))
1480
+ "onUpdate:modelValue": u[2] || (u[2] = (A) => r.value = A),
1481
+ onChange: u[3] || (u[3] = (A) => l(2))
1482
1482
  }, {
1483
- default: x(() => [
1483
+ default: L(() => [
1484
1484
  ue(
1485
- Y(A(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-d271fb9a"]]), mu = () => T(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);
@@ -1521,7 +1521,7 @@ const wt = (n, e = "") => {
1521
1521
  }, o = async () => {
1522
1522
  const [{ loginConfig: a }, { platformConfig: l }] = await Promise.all([nu(), ou()]);
1523
1523
  e(l), D.nav.setLogo((l == null ? void 0 : l.platformLogoImg) ?? ""), !n() && a != null && a.loginInfoTip && !sessionStorage.getItem("loginInfoTip") && t();
1524
- }, r = T(!1), i = () => new Promise((a) => {
1524
+ }, r = S(!1), i = () => new Promise((a) => {
1525
1525
  const l = () => {
1526
1526
  if (r.value) return a();
1527
1527
  setTimeout(() => l(), 50);
@@ -1538,11 +1538,11 @@ const wt = (n, e = "") => {
1538
1538
  initNextTick: i
1539
1539
  };
1540
1540
  }, _u = (n) => {
1541
- const e = Ge(), t = on(), { getMenu: o } = Gr(), { getHistoryList: r, getSearchList: i } = xu(), a = T(!0), l = T([]), c = T([]), s = T(!1), u = T(!1);
1541
+ const e = Ge(), t = on(), { getMenu: o } = Gr(), { getHistoryList: r, getSearchList: i } = xu(), a = S(!0), l = S([]), c = S([]), s = S(!1), u = S(!1);
1542
1542
  re(
1543
1543
  () => t.path,
1544
- (v) => {
1545
- s.value = v === nt;
1544
+ (w) => {
1545
+ s.value = w === nt;
1546
1546
  },
1547
1547
  {
1548
1548
  immediate: !0
@@ -1561,49 +1561,49 @@ const wt = (n, e = "") => {
1561
1561
  immediate: !0
1562
1562
  }
1563
1563
  );
1564
- const b = async () => {
1565
- let v = {};
1566
- return await zr([ai, Kl, ru, lr, dr]).then((p) => Object.assign(v, ...p)), a.value = !1, v;
1567
- }, g = T(!1);
1564
+ const A = async () => {
1565
+ let w = {};
1566
+ return await zr([ai, Kl, ru, lr, dr]).then((f) => Object.assign(w, ...f)), a.value = !1, w;
1567
+ }, g = S(!1);
1568
1568
  return D.nav.addEventListener("onBeforeMount", async () => {
1569
- var S;
1569
+ var I;
1570
1570
  await n();
1571
- const v = await b();
1572
- if (!v) return;
1573
- const { homeConfig: y, projectConfig: p, currentProject: d, tenantList: m, personalMenuConfig: _ } = v;
1574
- u.value = ((S = Zt()) == null ? void 0 : S.flag) !== 4 && m && m.length > 1;
1575
- const w = [...Oo];
1576
- w.forEach((C) => {
1577
- y != null && y.appAlias && C.value === ke && (C.label = y.appAlias), y != null && y.homeAlias && C.value === nt && (C.label = y.homeAlias);
1578
- }), l.value = w, y != null && y.enable || (l.value = l.value.filter((C) => C.path === ke), t.path === nt && await e.replace(ke)), D.nav.setItems(l.value), p && p.length && (D.nav.setProjectConfig({
1571
+ const w = await A();
1572
+ if (!w) return;
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
+ const b = [...Oo];
1576
+ b.forEach((T) => {
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
- disabled: (C) => C.type !== 7
1580
+ disabled: (T) => T.type !== 7
1581
1581
  },
1582
1582
  // 过滤的节点
1583
- filterNodeMethod: (C) => C.type === 7,
1583
+ filterNodeMethod: (T) => T.type === 7,
1584
1584
  // 树打平之后保留的数据
1585
- filterFlatCondition: (C) => C.type === 7
1586
- }), D.nav.setProjects(p || []), d && D.nav.setActiveProject(d));
1587
- const k = St() ?? {}, B = k != null && k.headPicture ? Xt(k.headPicture) : void 0;
1588
- c.value = [...hs], d && d.id !== 0 ? await o("personCenter", "", "/userInfo") || (c.value = c.value.filter((M) => M.value !== "1")) : c.value = c.value.filter((C) => C.value !== "1"), D.nav.setUserInfo({ headPicture: B, commandList: c.value }), D.nav.setSearchConfig({
1585
+ filterFlatCondition: (T) => T.type === 7
1586
+ }), D.nav.setProjects(f || []), d && D.nav.setActiveProject(d));
1587
+ const P = St() ?? {}, C = P != null && P.headPicture ? Xt(P.headPicture) : void 0;
1588
+ c.value = [...hs], d && d.id !== 0 ? await o("personCenter", "", "/userInfo") || (c.value = c.value.filter((M) => M.value !== "1")) : c.value = c.value.filter((T) => T.value !== "1"), D.nav.setUserInfo({ headPicture: C, commandList: c.value }), D.nav.setSearchConfig({
1589
1589
  getHistoryList: r,
1590
1590
  getSearchList: i
1591
1591
  });
1592
- const E = F().subAppList ?? [];
1593
- E.length && (E.forEach((C) => {
1594
- C.menus = [], C.originalMenus = [];
1595
- }), Ae([{ key: "subAppList", value: E }])), g.value = !0;
1596
- }), { loading: a, innerPage: l, commandList: c, layoutInited: g, initNextTick: () => new Promise((v) => {
1597
- const y = async () => {
1592
+ const k = F().subAppList ?? [];
1593
+ k.length && (k.forEach((T) => {
1594
+ T.menus = [], T.originalMenus = [];
1595
+ }), Ae([{ key: "subAppList", value: k }])), g.value = !0;
1596
+ }), { loading: a, innerPage: l, commandList: c, layoutInited: g, initNextTick: () => new Promise((w) => {
1597
+ const _ = async () => {
1598
1598
  var m;
1599
- let p = ((m = t.meta) == null ? void 0 : m.showLayout) ?? !0, { showLayout: d = !0 } = t.query;
1600
- if (d === "false" && (d = !1), !p || !d || g.value) {
1601
- v();
1599
+ let f = ((m = t.meta) == null ? void 0 : m.showLayout) ?? !0, { showLayout: d = !0 } = t.query;
1600
+ if (d === "false" && (d = !1), !f || !d || g.value) {
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();
@@ -1617,7 +1617,7 @@ const wt = (n, e = "") => {
1617
1617
  }, wu = () => {
1618
1618
  const { entryMenu: n } = Ot();
1619
1619
  D.menu.addEventListener("onItemClick", async (e) => {
1620
- te.innerSet = !0;
1620
+ ee.innerSet = !0;
1621
1621
  const t = ye(_t(e.applicationCode)).filter((o) => !o.disable && !o.expired).find((o) => o.code === e.code);
1622
1622
  if (!(t && !t.routeUrl)) {
1623
1623
  if (!t) {
@@ -1647,106 +1647,106 @@ const wt = (n, e = "") => {
1647
1647
  const { enter: o } = lt();
1648
1648
  return D.nav.addEventListener("fullScreenHandle", o), {};
1649
1649
  }, Iu = () => {
1650
- const n = Ge(), e = "#666666", t = "#FAFAFA", o = "#D9D9D9", r = T(e), i = T(t), a = T(o);
1650
+ const n = Ge(), e = "#666666", t = "#FAFAFA", o = "#D9D9D9", r = S(e), i = S(t), a = S(o);
1651
1651
  let l = "", c = {};
1652
1652
  re(
1653
1653
  () => n.currentRoute.value,
1654
1654
  async (d) => {
1655
- var E, S, C, M, L, N, W;
1656
- const m = ((E = d.meta) == null ? void 0 : E.showLayout) ?? !0;
1657
- let _ = ((S = d.query) == null ? void 0 : S.showLayout) ?? !0;
1658
- if (_ === "false" && (_ = !1), !m || !_ || d.path === l && Nt(d.query, c)) return;
1655
+ var k, I, T, M, R, U, W;
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
- const w = F().currentSubAppCode ?? "";
1661
- if (!w) return;
1662
- const k = ((C = d.query) == null ? void 0 : C.menu) ?? ((M = ce()) == null ? void 0 : M.currentCode) ?? "";
1663
- if (!k) return;
1664
- const B = JSON.parse(sessionStorage.getItem("tabStyle") || "{}") || {};
1665
- B && JSON.stringify(B) !== "{}" && (r.value = (L = B[w][k]) != null && L.fontColor ? B[w][k].fontColor : e, i.value = (N = B[w][k]) != null && N.backgroundColor ? B[w][k].backgroundColor : t, a.value = (W = B[w][k]) != null && W.backgroundColor ? B[w][k].backgroundColor : o);
1660
+ const b = F().currentSubAppCode ?? "";
1661
+ if (!b) return;
1662
+ const P = ((T = d.query) == null ? void 0 : T.menu) ?? ((M = ce()) == null ? void 0 : M.currentCode) ?? "";
1663
+ if (!P) return;
1664
+ const C = JSON.parse(sessionStorage.getItem("tabStyle") || "{}") || {};
1665
+ C && JSON.stringify(C) !== "{}" && (r.value = (R = C[b][P]) != null && R.fontColor ? C[b][P].fontColor : e, i.value = (U = C[b][P]) != null && U.backgroundColor ? C[b][P].backgroundColor : t, a.value = (W = C[b][P]) != null && W.backgroundColor ? C[b][P].backgroundColor : o);
1666
1666
  }
1667
1667
  );
1668
- const { deleteApp: s } = et(), { entryMenu: u } = Ot(), { reloadRoute: b, unloadRoute: g } = pr(), f = (d) => {
1669
- var k;
1670
- const m = ye(_t(d.applicationCode)).find((B) => B.code === d.code), w = (((k = ce().tabMap) == null ? void 0 : k[d.applicationCode]) ?? []).find((B) => B.code === d.code);
1671
- u({ currentMenu: m, route: { path: w.path, query: w.query ?? {} } });
1672
- }, v = (d) => {
1668
+ const { deleteApp: s } = et(), { entryMenu: u } = Ot(), { reloadRoute: A, unloadRoute: g } = pr(), p = (d) => {
1669
+ var P;
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
+ }, w = (d) => {
1673
1673
  if (!d || !d.length) return;
1674
- const m = d.map((_) => _.path);
1674
+ const m = d.map((y) => y.path);
1675
1675
  g(m);
1676
- }, y = (d) => {
1676
+ }, _ = (d) => {
1677
1677
  const m = F().currentSubAppCode ?? "";
1678
- te.innerSet = !0;
1679
- const _ = ce(), w = _.tabMap[m], k = w.findIndex((L) => L.code === d.data.code);
1680
- if (k === -1) return;
1681
- const B = () => {
1678
+ ee.innerSet = !0;
1679
+ const y = ce(), b = y.tabMap[m], P = b.findIndex((R) => R.code === d.data.code);
1680
+ if (P === -1) return;
1681
+ const C = () => {
1682
1682
  var W;
1683
- let N = (((W = F().appcategorys) == null ? void 0 : W.map((ie) => ie.apps).flat()) ?? []).find((ie) => ie.code === m);
1684
- N = { ...N, value: N.code, label: N.name }, s(N), D.nav.removeItem(m);
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
- me: async (L) => {
1688
- if (w.length === 1) {
1689
- B();
1687
+ me: async (R) => {
1688
+ if (b.length === 1) {
1689
+ C();
1690
1690
  return;
1691
1691
  }
1692
- const N = _.currentCode;
1692
+ const U = y.currentCode;
1693
1693
  let W = null;
1694
- N === L.value && (k + 1 === w.length ? w[k - 1] && (W = w[k - 1]) : w[k + 1] && (W = w[k + 1])), w.splice(k, 1), v([L]), le([{ key: `tabMap:${m}`, value: w }]), W ? f(W) : le([{ key: `preTab:${m}`, value: {} }]);
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
- all: B,
1697
- other: async (L) => {
1698
- const N = w[k];
1696
+ all: C,
1697
+ other: async (R) => {
1698
+ const U = b[P];
1699
1699
  n.push({
1700
- path: `/${N.applicationPath}${N.path}`.replace(/\/\//g, "/"),
1701
- query: N.query
1702
- }), D.menu.setActiveItem(N.menuId), D.tab.setActiveItem(N.code);
1703
- const W = w.filter((ie) => ie.code !== L.value);
1704
- W.forEach((ie) => D.tab.removeItem(ie.code)), v(W), le([{ key: `tabMap:${m}`, value: [N] }]), f(N);
1700
+ path: `/${U.applicationPath}${U.path}`.replace(/\/\//g, "/"),
1701
+ query: U.query
1702
+ }), D.menu.setActiveItem(U.menuId), D.tab.setActiveItem(U.code);
1703
+ const W = b.filter((ie) => ie.code !== R.value);
1704
+ W.forEach((ie) => D.tab.removeItem(ie.code)), w(W), le([{ key: `tabMap:${m}`, value: [U] }]), p(U);
1705
1705
  },
1706
- right: async (L) => {
1707
- const N = _.currentCode;
1708
- if (N !== L.value && w.findIndex((Se) => Se.code === N) > k) {
1709
- const Se = w[k];
1710
- f(Se);
1706
+ right: async (R) => {
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
- const W = w.slice(k + 1);
1713
- W.forEach((ie) => D.tab.removeItem(ie.code)), v(W), w.splice(k + 1), le([{ key: `tabMap:${m}`, value: w }]);
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:${m}`, value: b }]);
1714
1714
  }
1715
1715
  })[d.type](d.data);
1716
1716
  };
1717
1717
  D.tab.addEventListener("onItemClick", async (d) => {
1718
- ce().currentCode !== d.currentCode && (te.innerSet = !0, f(d));
1718
+ ce().currentCode !== d.currentCode && (ee.innerSet = !0, p(d));
1719
1719
  }), D.tab.addEventListener("onItemRemove", (d) => {
1720
- const m = ce(), _ = F().currentSubAppCode ?? "";
1721
- m.tabMap[_].findIndex((B) => B.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
1723
  let m = [];
1724
- const _ = ce().tabMap[d.applicationCode] ?? [];
1724
+ const y = ce().tabMap[d.applicationCode] ?? [];
1725
1725
  if (d.type.key === "right") {
1726
- const w = _.findIndex((k) => k.code === d.data.value);
1727
- m = _.slice(w + 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" && (m = _.filter((w) => w.code !== d.data.value)), d.type.key === "all" && (m = [..._]), 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
- m.map((w) => w.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 m = ye(_t(d.applicationCode)).find((k) => k.code === d.code);
1736
+ const m = ye(_t(d.applicationCode)).find((P) => P.code === d.code);
1737
1737
  if (!m) return;
1738
1738
  if (m.routeUrl !== d.path) {
1739
- b([d.path]), g([`/${d.applicationPath}${m.routeUrl}`]), await u({ currentMenu: m });
1739
+ A([d.path]), g([`/${d.applicationPath}${m.routeUrl}`]), await u({ currentMenu: m });
1740
1740
  return;
1741
1741
  }
1742
- const _ = { app: m.applicationCode, menu: m.code }, w = { ...d.query };
1743
- Nt(_, w) || await u({ currentMenu: m }), b([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
- const { enter: p } = lt();
1746
- return D.tab.addEventListener("onToggleFullScreen", p), { fontColor: r, backgroudColor: i, borderColor: a };
1745
+ const { enter: f } = lt();
1746
+ return D.tab.addEventListener("onToggleFullScreen", f), { fontColor: r, backgroudColor: i, borderColor: a };
1747
1747
  }, Qt = He(), co = (Qt == null ? void 0 : Qt.isAutoCloseApp) ?? !0, lo = location.href.includes("showLayout=false"), uo = window.self !== window.top, Eu = () => {
1748
1748
  const n = () => {
1749
- X.unloadAllMicroApp(), D.nav.setItems([]), D.menu.setItems([]), D.tab.setItems([]), jo();
1749
+ D.nav.setItems([]), D.menu.setItems([]), D.tab.setItems([]), jo();
1750
1750
  };
1751
1751
  window.addEventListener("beforeunload", function(e) {
1752
1752
  if (!(lo || !co || uo) && window.__isAutoCloseApp) {
@@ -1762,7 +1762,7 @@ const wt = (n, e = "") => {
1762
1762
  }
1763
1763
  const t = F();
1764
1764
  t.subAppList && t.subAppList.length && sessionStorage.setItem("has-subapp", "true"), n();
1765
- }), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`), sessionStorage.removeItem("has-subapp")), X.addEventListenerFromMicroApp("system-reload", () => {
1765
+ }), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`), sessionStorage.removeItem("has-subapp")), te.addEventListenerFromMicroApp("system-reload", () => {
1766
1766
  n(), window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`);
1767
1767
  });
1768
1768
  }, et = () => {
@@ -1773,49 +1773,49 @@ 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 f = g.code ?? "", y = (F().subAppList ?? []).find((w) => w.code === f);
1777
- let p = [], d = [], m = !1;
1778
- if (y && (p = y.menus ?? []), !p.length) {
1779
- const { menus: w, originalMenus: k, err: B } = await mn(f);
1780
- if (B) return !1;
1781
- p = w ?? [], d = k ?? [];
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
+ const { menus: b, originalMenus: P, err: C } = await mn(p);
1780
+ if (C) return !1;
1781
+ f = b ?? [], d = P ?? [];
1782
1782
  }
1783
- if (p.length ? wt(p) || (await rt({ title: "提示", content: "此应用菜单已过期/已收回/配置有误<br/>无法使用" }), m = !0) : (await rt({ title: "提示", content: "此应用未配置菜单/无菜单权限<br/>无法使用" }), m = !0), m) return !1;
1784
- const _ = { ...g, menus: p, 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 N, W, ie, Se, ft;
1788
- const { microApp: f = null, menuCode: v = "", menuPath: y = "", route: p = {} } = g;
1789
- let d = p;
1790
- if (l(), !f && y) {
1791
- if (!(a && a.find((G) => y.startsWith("/" + G) || y.startsWith(G)))) return;
1792
- n.push({ path: y, query: d.query });
1787
+ var U, W, ie, Te, ft;
1788
+ const { microApp: p = null, menuCode: w = "", menuPath: _ = "", route: f = {} } = g;
1789
+ let d = f;
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 m = ((N = d.meta) == null ? void 0 : N.showLayout) ?? !0;
1796
- let _ = ((W = d.query) == null ? void 0 : W.showLayout) ?? !0;
1797
- _ === "false" && (_ = !1);
1798
- const w = (f == null ? void 0 : f.openType) ?? 1, k = (f == null ? void 0 : f.type) ?? 1;
1799
- if (f.routeUrl && !a.includes(f.routeUrl)) {
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
+ const b = (p == null ? void 0 : p.openType) ?? 1, P = (p == null ? void 0 : p.type) ?? 1;
1799
+ if (p.routeUrl && !a.includes(p.routeUrl)) {
1800
1800
  const oe = ((ie = F()) == null ? void 0 : ie.subAppList) ?? [];
1801
- if ((oe == null ? void 0 : oe.find((fe) => fe.code === f.code)) || oe == null || oe.push(f), Ae([
1802
- { key: "currentSubApp", value: f },
1803
- { key: "currentSubAppCode", value: f.code },
1801
+ if ((oe == null ? void 0 : oe.find((fe) => fe.code === p.code)) || oe == null || oe.push(p), Ae([
1802
+ { key: "currentSubApp", value: p },
1803
+ { key: "currentSubAppCode", value: p.code },
1804
1804
  { key: "subAppList", value: oe }
1805
1805
  ]), oe.forEach((fe) => {
1806
1806
  const Oe = { ...fe, value: fe.code, label: fe.name };
1807
1807
  D.nav.appendItem(Oe);
1808
- }), D.nav.setActiveItem(f.code), X.hideAllMicroApp(), f.routeUrl.includes("entrance=main")) {
1809
- n.push({ path: f.routeUrl, query: { ...d.query, app: f.code } });
1808
+ }), D.nav.setActiveItem(p.code), te.hideAllMicroApp(), p.routeUrl.includes("entrance=main")) {
1809
+ n.push({ path: p.routeUrl, query: { ...d.query, app: p.code } });
1810
1810
  return;
1811
1811
  }
1812
- if (w === 1 && k === 2) {
1813
- const fe = Wt(Ut(Ft(f.routeUrl)));
1812
+ if (b === 1 && P === 2) {
1813
+ const fe = Wt(Ut(Ft(p.routeUrl)));
1814
1814
  n.push({
1815
1815
  path: Je,
1816
1816
  query: {
1817
1817
  ...d.query,
1818
- app: f.code,
1818
+ app: p.code,
1819
1819
  iframeSrc: fe
1820
1820
  }
1821
1821
  });
@@ -1823,40 +1823,40 @@ const wt = (n, e = "") => {
1823
1823
  }
1824
1824
  }
1825
1825
  const {
1826
- menuConfig: B = [],
1827
- currentApp: E = null,
1828
- currentMenu: S = null,
1829
- microPath: C = "",
1826
+ menuConfig: C = [],
1827
+ currentApp: k = null,
1828
+ currentMenu: I = null,
1829
+ microPath: T = "",
1830
1830
  query: M = {}
1831
- } = await Fl({ microApp: f, menuCode: v, menuPath: y, route: d });
1832
- if (S && (d = {
1833
- path: C || `/${S.applicationPath}${S.routeUrl}`.replace(/\/\//g, "/"),
1834
- query: { ...M, app: S.applicationCode, menu: S.code },
1831
+ } = await Fl({ microApp: p, menuCode: w, menuPath: _, route: d });
1832
+ if (I && (d = {
1833
+ path: T || `/${I.applicationPath}${I.routeUrl}`.replace(/\/\//g, "/"),
1834
+ query: { ...M, app: I.applicationCode, menu: I.code },
1835
1835
  meta: { ...(d == null ? void 0 : d.meta) ?? {} }
1836
- }), E && (E == null ? void 0 : E.code) !== (f == null ? void 0 : f.code)) {
1837
- if (E.fixed && (D.menu.setItems([]), D.tab.setItems([]), n.push(E.path), D.nav.setActiveItem(E.path), X.hideAllMicroApp()), !E.fixed) {
1838
- const oe = (Se = F().subAppList) == null ? void 0 : Se.find((Oe) => Oe.code === E.code), G = ce().preTab[E.code], fe = { ...(G == null ? void 0 : G.query) ?? {} };
1836
+ }), k && (k == null ? void 0 : k.code) !== (p == null ? void 0 : p.code)) {
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 = (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
- const L = E || f;
1844
- if (!S && y) {
1843
+ const R = k || p;
1844
+ if (!I && _) {
1845
1845
  n.push({
1846
- path: y,
1846
+ path: _,
1847
1847
  query: {
1848
1848
  ...d.query,
1849
- app: L.code
1849
+ app: R.code
1850
1850
  }
1851
1851
  });
1852
1852
  return;
1853
1853
  }
1854
- if (m && _) {
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);
1858
- }), D.nav.setActiveItem(L.code), D.menu.setItems(B);
1859
- const oe = ce().tabMap[L.code] ?? [];
1858
+ }), D.nav.setActiveItem(R.code), D.menu.setItems(C);
1859
+ const oe = ce().tabMap[R.code] ?? [];
1860
1860
  oe.length && oe.forEach((G) => {
1861
1861
  D.tab.appendItem({
1862
1862
  ...G,
@@ -1865,22 +1865,22 @@ const wt = (n, e = "") => {
1865
1865
  });
1866
1866
  });
1867
1867
  }
1868
- e({ currentMenu: S, microPath: C, route: d });
1868
+ e({ currentMenu: I, microPath: T, route: d });
1869
1869
  }, u = async (g) => {
1870
- var f;
1871
- if (te.innerSet = !0, g.fixed) {
1870
+ var p;
1871
+ if (ee.innerSet = !0, g.fixed) {
1872
1872
  D.menu.setItems([]), D.tab.setItems([]), n.push(g.path), D.nav.setActiveItem(g.path), Ae([
1873
1873
  { key: "currentSubAppCode", value: "" },
1874
1874
  { key: "currentSubApp", value: {} }
1875
1875
  ]), le([
1876
1876
  { key: "currentCode", value: "" },
1877
1877
  { key: "currentTab", value: {} }
1878
- ]), X.hideAllMicroApp();
1878
+ ]), te.hideAllMicroApp();
1879
1879
  return;
1880
1880
  }
1881
1881
  if (!g.fixed) {
1882
- const v = (f = F().subAppList) == null ? void 0 : f.find((m) => m.code === g.code), y = ce().preTab[g.code], p = (y == null ? void 0 : y.code) ?? "", d = { ...(y == null ? void 0 : y.query) ?? {} };
1883
- await s({ microApp: v, menuCode: p, route: { query: d } });
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
+ await s({ microApp: w, menuCode: f, route: { query: d } });
1884
1884
  }
1885
1885
  };
1886
1886
  return {
@@ -1889,26 +1889,27 @@ const wt = (n, e = "") => {
1889
1889
  changeApp: u,
1890
1890
  deleteApp: async (g) => {
1891
1891
  var d;
1892
- const f = F();
1893
- if (!((d = f.subAppList) != null && d.length)) return;
1894
- const v = f.subAppList.findIndex((m) => m.code === g.code);
1895
- if (v === -1) return;
1896
- const y = ce().tabMap[g.code] ?? [];
1897
- if (y.length) {
1898
- const m = y.map((_) => _.path);
1892
+ const p = F();
1893
+ if (!((d = p.subAppList) != null && d.length)) return;
1894
+ const w = p.subAppList.findIndex((m) => m.code === g.code);
1895
+ if (w === -1) return;
1896
+ const _ = ce().tabMap[g.code] ?? [];
1897
+ if (_.length) {
1898
+ const m = _.map((y) => y.path);
1899
1899
  t(m);
1900
1900
  }
1901
- let p = null;
1902
- if (f.currentSubAppCode === g.code && (v + 1 !== f.subAppList.length ? f.subAppList[v + 1] && (p = f.subAppList[v + 1]) : f.subAppList[v - 1] && (p = f.subAppList[v - 1])), f.subAppList.splice(v, 1), Ae([{ key: "subAppList", value: f.subAppList }]), le([
1901
+ let f = null;
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
- ]), p) {
1906
- const m = { ...p, value: p.code, label: p.name };
1907
- await u(m), D.nav.setActiveItem(p.code);
1905
+ ]), f) {
1906
+ const m = { ...f, value: f.code, label: f.name };
1907
+ await u(m), D.nav.setActiveItem(f.code);
1908
1908
  }
1909
- if (!f.subAppList.length) {
1910
- const m = Oo[1];
1911
- D.menu.setItems([]), D.tab.setItems([]), X.unloadAllMicroApp(), u(m), ln(), Ro();
1909
+ if (!p.subAppList.length) {
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,35 +1917,35 @@ 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 };
1923
- const u = (a == null ? void 0 : a.openType) ?? 1, b = (a == null ? void 0 : a.type) ?? 1;
1924
+ const u = (a == null ? void 0 : a.openType) ?? 1, A = (a == null ? void 0 : a.type) ?? 1;
1924
1925
  let g = "";
1925
1926
  if (u === 1)
1926
- if (b === 1)
1927
+ if (A === 1)
1927
1928
  if (a.routeUrl.startsWith(Je)) {
1928
- X.hideAllMicroApp(), g = Je;
1929
- const p = Vr(a.routeUrl, "iframeSrc");
1930
- s = { ...s, iframeSrc: p }, n.push({ path: g, query: s });
1929
+ te.hideAllMicroApp(), g = Je;
1930
+ const f = Vr(a.routeUrl, "iframeSrc");
1931
+ s = { ...s, iframeSrc: f }, n.push({ path: g, query: s });
1931
1932
  } else a.applicationPath && (g = c || a.routeUrl, g = `/${a.applicationPath}${g}`.replace(/\/\//g, "/"), n.push({ path: g, query: s }));
1932
1933
  else {
1933
- X.hideAllMicroApp(), g = Je;
1934
- const p = Wt(Ut(Ft(a.routeUrl)));
1935
- s = { ...s, iframeSrc: p }, n.push({ path: g, query: s });
1934
+ te.hideAllMicroApp(), g = Je;
1935
+ const f = Wt(Ut(Ft(a.routeUrl)));
1936
+ s = { ...s, iframeSrc: f }, n.push({ path: g, query: s });
1936
1937
  }
1937
1938
  if (u === 2) {
1938
- let p = b === 1 ? `/${a.applicationPath}${a.routeUrl}`.replace(/\/\//g, "/") : a.routeUrl;
1939
- p = Wt(Ut(Ft(p))), te.innerSet ? (X.hideAllMicroApp(), g = Do, n.push({ path: g, query: s }), p && window.open(p, "_blank")) : b === 1 && (g = p, s = { ...s, showLayout: !1 }, n.push({
1939
+ let f = A === 1 ? `/${a.applicationPath}${a.routeUrl}`.replace(/\/\//g, "/") : a.routeUrl;
1940
+ f = Wt(Ut(Ft(f))), ee.innerSet ? (te.hideAllMicroApp(), g = Do, n.push({ path: g, query: s }), f && window.open(f, "_blank")) : A === 1 && (g = f, s = { ...s, showLayout: !1 }, n.push({
1940
1941
  path: g,
1941
1942
  query: s
1942
1943
  }));
1943
1944
  }
1944
- const f = ((y = l.meta) == null ? void 0 : y.showLayout) ?? !0;
1945
- let v = (s == null ? void 0 : s.showLayout) ?? !0;
1946
- if (v === "false" && (v = !1), f && v) {
1947
- const p = {
1945
+ const p = ((_ = l.meta) == null ? void 0 : _.showLayout) ?? !0;
1946
+ let w = (s == null ? void 0 : s.showLayout) ?? !0;
1947
+ if (w === "false" && (w = !1), p && w) {
1948
+ const f = {
1948
1949
  currentApplication: F().currentSubApp.routeUrl,
1949
1950
  applicationPath: a.applicationPath,
1950
1951
  applicationCode: a.applicationCode,
@@ -1955,9 +1956,9 @@ const wt = (n, e = "") => {
1955
1956
  query: s
1956
1957
  };
1957
1958
  D.tab.appendItem({
1958
- ...p,
1959
- value: p.code,
1960
- label: p.name
1959
+ ...f,
1960
+ value: f.code,
1961
+ label: f.name
1961
1962
  }), D.tab.setActiveItem(a.code), D.menu.setActiveItem(a.id), Qo(a.code), le([
1962
1963
  {
1963
1964
  key: "currentCode",
@@ -1965,45 +1966,45 @@ const wt = (n, e = "") => {
1965
1966
  },
1966
1967
  {
1967
1968
  key: "currentTab",
1968
- value: p
1969
+ value: f
1969
1970
  },
1970
1971
  {
1971
1972
  key: `preTab:${a.applicationCode}`,
1972
- value: p
1973
+ value: f
1973
1974
  },
1974
1975
  {
1975
1976
  key: `tabMap:${a.applicationCode}`,
1976
- value: p
1977
+ value: f
1977
1978
  }
1978
1979
  ]);
1979
1980
  }
1980
1981
  } };
1981
1982
  }, Su = (n, e, t) => {
1982
1983
  const { entryApp: o } = et(), r = Ge(), i = async (c) => {
1983
- var _, w, k, B;
1984
+ var m, y, b, P;
1984
1985
  let s = { ...c }, { showLayout: u = !0 } = s.query;
1985
1986
  u === "false" && (u = !1);
1986
- const b = async () => {
1987
- var C, M;
1988
- let E = F().appcategorys ?? [];
1989
- if (!Array.isArray(E)) return [];
1987
+ const A = async () => {
1988
+ var I, T;
1989
+ let C = F().appcategorys ?? [];
1990
+ if (!Array.isArray(C)) return [];
1990
1991
  if (s.query) {
1991
- const L = ((C = s.query) == null ? void 0 : C.project) ?? ((M = s.query) == null ? void 0 : M.projectId) ?? "";
1992
- if (!E.length || L && L !== Pe().id) {
1992
+ const M = ((I = s.query) == null ? void 0 : I.project) ?? ((T = s.query) == null ? void 0 : T.projectId) ?? "";
1993
+ if (!C.length || M && M !== Pe().id) {
1993
1994
  await e();
1994
- const { navConfig: N } = await lr();
1995
- N && (E = N);
1995
+ const { navConfig: R } = await lr();
1996
+ R && (C = R);
1996
1997
  }
1997
1998
  }
1998
- return E.map((L) => L.apps).flat() ?? [];
1999
- }, g = He().microApps ?? [], f = g.filter((E) => E.public);
2000
- if (f.length) {
2001
- const E = f.find(
2002
- (S) => s.path.startsWith("/" + S.name) || s.path.startsWith(S.name)
1999
+ return C.map((M) => M.apps).flat() ?? [];
2000
+ }, g = He().microApps ?? [], p = g.filter((C) => C.public);
2001
+ if (p.length) {
2002
+ const C = p.find(
2003
+ (k) => s.path.startsWith("/" + k.name) || s.path.startsWith(k.name)
2003
2004
  );
2004
- if (E) {
2005
+ if (C) {
2005
2006
  o({
2006
- microApp: { routeUrl: E.name, code: "" },
2007
+ microApp: { routeUrl: C.name, code: "" },
2007
2008
  menuCode: s.query.menu,
2008
2009
  menuPath: s.path,
2009
2010
  route: s
@@ -2011,40 +2012,40 @@ const wt = (n, e = "") => {
2011
2012
  return;
2012
2013
  }
2013
2014
  }
2014
- const v = await b(), y = v.map((E) => E.code), p = ((_ = s.query) == null ? void 0 : _.app) ?? "", d = ((w = F()) == null ? void 0 : w.subAppList) ?? [];
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 E = d.filter((C) => C.code !== p && !y.includes(C.code)), S = d.filter(
2017
- (C) => p === C.code || y.includes(C.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
- Ae([{ key: "subAppList", value: S }]), E && E.length && E.forEach((C) => {
2020
+ Ae([{ key: "subAppList", value: k }]), C && C.length && C.forEach((I) => {
2020
2021
  le([
2021
- { key: `preTab:${C.code}`, value: {} },
2022
- { key: `tabMap:${C.code}`, value: [] }
2022
+ { key: `preTab:${I.code}`, value: {} },
2023
+ { key: `tabMap:${I.code}`, value: [] }
2023
2024
  ]);
2024
2025
  });
2025
2026
  }
2026
2027
  if (s.query.app) {
2027
- let E = v.find((S) => S.code === s.query.app);
2028
- if (!E && u) {
2029
- const { currentApp: S } = Gt(s.query.app);
2030
- if (S) {
2031
- E = S;
2032
- const M = (ce().preTab ?? {})[E.code];
2033
- s = {}, M && (s.path = `/${M.applicationPath}${M.path}`.replace(/\/\//g, "/"), s.query = M.query);
2028
+ let C = w.find((k) => k.code === s.query.app);
2029
+ if (!C && u) {
2030
+ const { currentApp: k } = Gt(s.query.app);
2031
+ if (k) {
2032
+ C = k;
2033
+ const T = (ce().preTab ?? {})[C.code];
2034
+ s = {}, T && (s.path = `/${T.applicationPath}${T.path}`.replace(/\/\//g, "/"), s.query = T.query);
2034
2035
  }
2035
2036
  }
2036
- E != null && E.fixed ? (D.menu.setItems([]), D.tab.setItems([]), r.push(E.path), D.nav.setActiveItem(E.path), X.hideAllMicroApp()) : o({ microApp: E, menuCode: s.query.menu, menuPath: s.path, route: s });
2037
+ C != null && C.fixed ? (D.menu.setItems([]), D.tab.setItems([]), r.push(C.path), D.nav.setActiveItem(C.path), te.hideAllMicroApp()) : o({ microApp: C, menuCode: s.query.menu, menuPath: s.path, route: s });
2037
2038
  return;
2038
2039
  } else {
2039
- const E = g && g.find(
2040
- (S) => s.path.startsWith("/" + S.name) || s.path.startsWith(S.name)
2040
+ const C = g && g.find(
2041
+ (k) => s.path.startsWith("/" + k.name) || s.path.startsWith(k.name)
2041
2042
  );
2042
- if (E) {
2043
- let S = v.find((C) => C.routeUrl === E.name);
2044
- S || (S = v.find(
2045
- (C) => (C == null ? void 0 : C.routePath) && C.routePath.length && C.routePath.includes(E.name)
2043
+ if (C) {
2044
+ let k = w.find((I) => I.routeUrl === C.name);
2045
+ k || (k = w.find(
2046
+ (I) => (I == null ? void 0 : I.routePath) && I.routePath.length && I.routePath.includes(C.name)
2046
2047
  )), o({
2047
- microApp: S,
2048
+ microApp: k,
2048
2049
  menuCode: s.query.menu,
2049
2050
  menuPath: s.path,
2050
2051
  route: s
@@ -2052,25 +2053,28 @@ const wt = (n, e = "") => {
2052
2053
  return;
2053
2054
  }
2054
2055
  }
2055
- const m = n.value.find((E) => E.path === location.pathname);
2056
- m && D.nav.setActiveItem(m.path), (B = (k = F()) == null ? void 0 : k.subAppList) == null || B.forEach((E) => {
2057
- const S = { ...E, value: E.code, label: E.name };
2058
- D.nav.appendItem(S);
2059
- }), D.menu.setItems([]), D.tab.setItems([]), X.hideAllMicroApp(), Ae([
2060
- { key: "currentSubAppCode", value: "" },
2061
- { key: "currentSubApp", value: {} }
2062
- ]), le([
2063
- { key: "currentCode", value: "" },
2064
- { key: "currentTab", value: {} }
2065
- ]);
2056
+ if (u) {
2057
+ te.hideAllMicroApp(), (P = (b = F()) == null ? void 0 : b.subAppList) == null || P.forEach((k) => {
2058
+ const I = { ...k, value: k.code, label: k.name };
2059
+ D.nav.appendItem(I);
2060
+ });
2061
+ const C = n.value.find((k) => k.path === location.pathname);
2062
+ C && (D.nav.setActiveItem(C.path), D.menu.setItems([]), D.tab.setItems([]), Ae([
2063
+ { key: "currentSubAppCode", value: "" },
2064
+ { key: "currentSubApp", value: {} }
2065
+ ]), le([
2066
+ { key: "currentCode", value: "" },
2067
+ { key: "currentTab", value: {} }
2068
+ ]));
2069
+ }
2066
2070
  };
2067
2071
  let a = "", l = {};
2068
2072
  re(
2069
2073
  () => r.currentRoute.value,
2070
2074
  async (c) => {
2071
2075
  if (!(c.path === a && Nt(c.query, l))) {
2072
- if (a = qe(c.path), l = qe(c.query), await t(), te.innerSet) {
2073
- te.innerSet = !1;
2076
+ if (a = qe(c.path), l = qe(c.query), await t(), ee.innerSet) {
2077
+ ee.innerSet = !1;
2074
2078
  return;
2075
2079
  }
2076
2080
  i(c);
@@ -2078,18 +2082,18 @@ const wt = (n, e = "") => {
2078
2082
  }
2079
2083
  );
2080
2084
  }, pr = () => ({ reloadRoute: (t) => {
2081
- te.excludeRoutes = Array.from(/* @__PURE__ */ new Set([...te.excludeRoutes, ...t])), te.routeKeepAliveVisible = !1, setTimeout(() => {
2082
- te.routeKeepAliveVisible = !0, te.excludeRoutes = [];
2085
+ ee.excludeRoutes = Array.from(/* @__PURE__ */ new Set([...ee.excludeRoutes, ...t])), ee.routeKeepAliveVisible = !1, setTimeout(() => {
2086
+ ee.routeKeepAliveVisible = !0, ee.excludeRoutes = [];
2083
2087
  }, 300);
2084
2088
  }, unloadRoute: (t) => {
2085
- te.excludeRoutes = Array.from(/* @__PURE__ */ new Set([...te.excludeRoutes, ...t])), te.routeKeepAliveVisible = !1, setTimeout(() => {
2086
- te.routeKeepAliveVisible = !0, te.excludeRoutes = [];
2089
+ ee.excludeRoutes = Array.from(/* @__PURE__ */ new Set([...ee.excludeRoutes, ...t])), ee.routeKeepAliveVisible = !1, setTimeout(() => {
2090
+ ee.routeKeepAliveVisible = !0, ee.excludeRoutes = [];
2087
2091
  }, 100);
2088
2092
  } }), Tu = () => {
2089
- const n = jr(), e = mu(), t = He(), o = {
2090
- logout: "/api/justauth/oauth-server/v1/visitor/logout"
2091
- }, r = async () => {
2092
- const l = `${location.origin}/`, c = {
2093
+ const n = jr(), e = mu(), t = He(), o = async () => {
2094
+ const a = {
2095
+ logout: "/api/justauth/oauth-server/v1/visitor/logout"
2096
+ }, l = `${location.origin}/`, c = {
2093
2097
  response_type: "code",
2094
2098
  scope: "sever",
2095
2099
  client_id: "sys",
@@ -2100,32 +2104,32 @@ const wt = (n, e = "") => {
2100
2104
  logout: "true"
2101
2105
  };
2102
2106
  t.ssoLocale && (c.locale = "locale");
2103
- const s = Object.keys(c).map((b) => `${b}=${c[b]}`).join("&"), u = `${t.baseURL}${o.logout}?${s}`;
2107
+ const s = Object.keys(c).map((A) => `${A}=${c[A]}`).join("&"), u = `${t.baseURL}${a.logout}?${s}`;
2104
2108
  window.__isAutoCloseApp = !1, location.replace(u), sessionStorage.clear(), Yr(), localStorage.removeItem("idelTime");
2105
- }, { entryApp: i } = et(), a = async () => {
2106
- const l = "personCenter", s = (F().appcategorys || []).map((v) => v.apps).flat(), { originalMenus: u = [] } = await mn(l), g = ye(u).filter((v) => v.isMenu && v.routeUrl).find((v) => v.routeUrl === "/userInfo");
2107
- if (g != null && g.disable || g != null && g.expired) {
2108
- const { title: v, content: y, desc: p } = await vn(g);
2109
- await rt({ title: v, content: y, desc: p });
2109
+ }, { entryApp: r } = et(), i = async () => {
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");
2111
+ if (A != null && A.disable || A != null && A.expired) {
2112
+ const { title: p, content: w, desc: _ } = await vn(A);
2113
+ await rt({ title: p, content: w, desc: _ });
2110
2114
  return;
2111
2115
  }
2112
- const f = s.find((v) => v.code === l);
2113
- f && i({ microApp: f, menuPath: `/${f.routeUrl}/userInfo` });
2116
+ const g = c.find((p) => p.code === a);
2117
+ g && r({ microApp: g, menuPath: `/${g.routeUrl}/userInfo` });
2114
2118
  };
2115
- return D.nav.addEventListener("onUserCommandChange", (l) => {
2116
- var s, u;
2119
+ return D.nav.addEventListener("onUserCommandChange", (a) => {
2120
+ var c, s;
2117
2121
  ({
2118
- 0: (s = e.value) == null ? void 0 : s.openDialog,
2119
- 1: a,
2120
- 2: (u = n.value) == null ? void 0 : u.openDialog,
2121
- 3: r
2122
- })[l]();
2122
+ 0: (c = e.value) == null ? void 0 : c.openDialog,
2123
+ 1: i,
2124
+ 2: (s = n.value) == null ? void 0 : s.openDialog,
2125
+ 3: o
2126
+ })[a]();
2123
2127
  }), {
2124
2128
  $changePwd: n,
2125
2129
  $personSetDialog: e
2126
2130
  };
2127
2131
  }, ku = So.get("/convert/tenant"), Pu = en.get("/platform/withdefault"), fr = () => {
2128
- const n = He(), e = T(!1), t = T(""), o = T(""), r = () => {
2132
+ const n = He(), e = S(!1), t = S(""), o = S(""), r = () => {
2129
2133
  t.value = St().id, o.value = Co().tenantId, e.value = !0;
2130
2134
  };
2131
2135
  D.nav.addEventListener("changeEnterpriseHandle", () => {
@@ -2142,30 +2146,30 @@ const wt = (n, e = "") => {
2142
2146
  const [c, s] = await ku().run({ tenant: l });
2143
2147
  if (c) return;
2144
2148
  e.value = !1;
2145
- const { access_token: u = "", refresh_token: b = "", expires_in: g = 0, sub: f = "", name: v = "", flag: y = "", tenant: p = "" } = s, d = {
2149
+ const { access_token: u = "", refresh_token: A = "", expires_in: g = 0, sub: p = "", name: w = "", flag: _ = "", tenant: f = "" } = s, d = {
2146
2150
  accessToken: u,
2147
2151
  accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(g) * 1e3,
2148
- refreshToken: b,
2152
+ refreshToken: A,
2149
2153
  info: s
2150
2154
  };
2151
2155
  ts().save(d), Eo(d);
2152
2156
  const m = {
2153
- id: f,
2154
- name: v,
2155
- flag: y,
2156
- tenantId: p
2157
+ id: p,
2158
+ name: w,
2159
+ flag: _,
2160
+ tenantId: f
2157
2161
  };
2158
2162
  sessionStorage.setItem("hotentUserInfo", JSON.stringify(m)), ns(u);
2159
- let _ = "";
2163
+ let y = "";
2160
2164
  if (n != null && n.ssoLocale)
2161
- _ = `http://127.0.0.1:5000/oauth/refreshOauthToken?tenantId=${l}`;
2165
+ y = `http://127.0.0.1:5000/oauth/refreshOauthToken?tenantId=${l}`;
2162
2166
  else {
2163
- const [w, k] = await Pu().run();
2164
- k != null && k.loginHost && (_ = `${k.loginHost}/oauth/refreshOauthToken?tenantId=${l}`);
2167
+ const [b, P] = await Pu().run();
2168
+ P != null && P.loginHost && (y = `${P.loginHost}/oauth/refreshOauthToken?tenantId=${l}`);
2165
2169
  }
2166
- if (_) {
2167
- const w = document.createElement("iframe");
2168
- w.src = _, w.style.display = "none", document.body.appendChild(w), setTimeout(() => i(), 300);
2170
+ if (y) {
2171
+ const b = document.createElement("iframe");
2172
+ b.src = y, b.style.display = "none", document.body.appendChild(b), setTimeout(() => i(), 300);
2169
2173
  } else
2170
2174
  i();
2171
2175
  }
@@ -2191,8 +2195,8 @@ const wt = (n, e = "") => {
2191
2195
  return D.nav.addEventListener("searchToPage", async (o) => {
2192
2196
  const { item: r, keyword: i, cb: a } = o;
2193
2197
  if (r != null && r.disable || r != null && r.expired) {
2194
- const { title: u, content: b, desc: g } = await vn(r);
2195
- await rt({ title: u, content: b, desc: g });
2198
+ const { title: u, content: A, desc: g } = await vn(r);
2199
+ await rt({ title: u, content: A, desc: g });
2196
2200
  return;
2197
2201
  }
2198
2202
  await $u().run({ searchVal: i, clickData: r });
@@ -2208,13 +2212,13 @@ const wt = (n, e = "") => {
2208
2212
  getHistoryList: n,
2209
2213
  getSearchList: e
2210
2214
  };
2211
- }, te = yo({
2215
+ }, ee = yo({
2212
2216
  /** 菜单或者应用跳转是否通过触发界面调用的 */
2213
2217
  innerSet: !1,
2214
2218
  excludeRoutes: [],
2215
2219
  routeKeepAliveVisible: !0
2216
2220
  }), Ru = () => {
2217
- X.addEventListenerFromMicroApp("iot:change-instance", (n) => {
2221
+ te.addEventListenerFromMicroApp("iot:change-instance", (n) => {
2218
2222
  const e = F(), t = e.currentSubAppCode;
2219
2223
  let o = _t(t);
2220
2224
  o.forEach((i) => {
@@ -2236,25 +2240,25 @@ const wt = (n, e = "") => {
2236
2240
  });
2237
2241
  }, Qu = (n) => {
2238
2242
  ["personcenter", "rightmanage"].forEach((t) => {
2239
- X.addEventListenerFromMicroApp(`${t}:change-userinfo`, (o) => {
2243
+ te.addEventListenerFromMicroApp(`${t}:change-userinfo`, (o) => {
2240
2244
  const { userInfo: r } = o.data, i = r != null && r.headPicture ? Xt(r.headPicture) : void 0;
2241
2245
  D.nav.setUserInfo({ headPicture: i, commandList: n.value }), sessionStorage.setItem("userInfo", JSON.stringify(r));
2242
2246
  });
2243
2247
  });
2244
2248
  }, ju = () => {
2245
- X.addEventListenerFromMicroApp("devicePanelShow", (n) => {
2249
+ te.addEventListenerFromMicroApp("devicePanelShow", (n) => {
2246
2250
  const { deviceId: e = "", panelCode: t = "", deviceName: o = "", x: r = 0, y: i = 0, isCenter: a = !1 } = n.data;
2247
2251
  ko(e, t, o, r, i, a);
2248
- }), X.addEventListenerFromMicroApp("closeDevicePanel", (n) => {
2252
+ }), te.addEventListenerFromMicroApp("closeDevicePanel", (n) => {
2249
2253
  rs();
2250
- }), X.addEventListenerFromMicroApp("alarmDevicePanelShow", (n) => {
2254
+ }), te.addEventListenerFromMicroApp("alarmDevicePanelShow", (n) => {
2251
2255
  const { deviceId: e = "", panelCode: t = "", alarmTime: o = "" } = n.data;
2252
2256
  ss(e, t, o);
2253
- }), X.addEventListenerFromMicroApp("closeAlarmPanel", (n) => {
2257
+ }), te.addEventListenerFromMicroApp("closeAlarmPanel", (n) => {
2254
2258
  is();
2255
2259
  });
2256
2260
  }, Hu = nn.get("/platform/login/pwd-advance-notify-check"), Nu = () => {
2257
- const n = T([]), e = T(null), t = T([]), { entryApp: o } = bt.hooks.useEntryApp(), r = () => {
2261
+ const n = S([]), e = S(null), t = S([]), { entryApp: o } = bt.hooks.useEntryApp(), r = () => {
2258
2262
  var c;
2259
2263
  const l = (((c = F().appcategorys) == null ? void 0 : c.map((s) => s.apps).flat()) ?? []).find((s) => s.code === "messagecenter");
2260
2264
  l && o({ microApp: l });
@@ -2266,7 +2270,7 @@ const wt = (n, e = "") => {
2266
2270
  await Hu().run();
2267
2271
  },
2268
2272
  message: async (a) => {
2269
- if (X.sendMessageToMicroApp("enterpriseadmin/messagecenter", "message", { msgList: a }), window.self !== window.top) return;
2273
+ if (te.sendMessageToMicroApp("enterpriseadmin/messagecenter", "message", { msgList: a }), window.self !== window.top) return;
2270
2274
  const c = Pe().id;
2271
2275
  n.value = a.filter(
2272
2276
  (s) => s.projectId === c || s.projectId === 0 || s.projectId === "0"
@@ -2306,7 +2310,7 @@ const wt = (n, e = "") => {
2306
2310
  }), Et(() => {
2307
2311
  e.value && e.value.disconnect(), e.value = null;
2308
2312
  });
2309
- }, 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");
2310
2314
  function Wu(n) {
2311
2315
  const e = Pe() ? Pe().id : 1;
2312
2316
  return n.params || (n.params = {}), n.params.project = e, n.params.projectId = e, n;
@@ -2318,10 +2322,10 @@ function gr(n) {
2318
2322
  return e.toString();
2319
2323
  }
2320
2324
  function po(n) {
2321
- return hr.post(`/device/ptz?${gr(n)}`)().run();
2325
+ return hr.post(`/ptz?${gr(n)}`)().run();
2322
2326
  }
2323
2327
  function zu(n) {
2324
- return hr.post(`/device/video/url/preview?${gr(n)}`)().run();
2328
+ return hr.post(`/url/preview?${gr(n)}`)().run();
2325
2329
  }
2326
2330
  const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2327
2331
  __name: "GridItem",
@@ -2334,21 +2338,21 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2334
2338
  Or((u) => ({
2335
2339
  "6cb537a6": s.value
2336
2340
  }));
2337
- const t = n, o = e, r = T(), { toggle: i, isFullscreen: a } = lt(r), l = () => {
2341
+ const t = n, o = e, r = S(), { toggle: i, isFullscreen: a } = lt(r), l = () => {
2338
2342
  r.value != document.fullscreenElement && (a.value ? (a.value = !1, Fe(() => {
2339
2343
  i();
2340
2344
  })) : i());
2341
2345
  }, c = () => {
2342
2346
  o("itemClick");
2343
2347
  }, s = Ce(() => `calc(100% / ${Math.sqrt(t.gridNum)})`);
2344
- return (u, b) => (H(), de(
2348
+ return (u, A) => (H(), de(
2345
2349
  "div",
2346
2350
  {
2347
2351
  ref_key: "containerRef",
2348
2352
  ref: r,
2349
2353
  class: Dr(["wrapper", { "is-active": t.active }]),
2350
- onDblclick: b[0] || (b[0] = (g) => l()),
2351
- onClick: b[1] || (b[1] = (g) => c())
2354
+ onDblclick: A[0] || (A[0] = (g) => l()),
2355
+ onClick: A[1] || (A[1] = (g) => c())
2352
2356
  },
2353
2357
  [
2354
2358
  $e(u.$slots, "default", {}, void 0, !0)
@@ -2357,7 +2361,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2357
2361
  /* CLASS, NEED_HYDRATION */
2358
2362
  ));
2359
2363
  }
2360
- }), Ku = /* @__PURE__ */ Ie(qu, [["__scopeId", "data-v-2e9b0fda"]]), Gu = { class: "layout-wrapper" }, Xu = /* @__PURE__ */ pe({
2364
+ }), Ku = /* @__PURE__ */ Ee(qu, [["__scopeId", "data-v-2e9b0fda"]]), Gu = { class: "layout-wrapper" }, Xu = /* @__PURE__ */ pe({
2361
2365
  __name: "GridLayout",
2362
2366
  props: {
2363
2367
  gridNum: {},
@@ -2370,7 +2374,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2370
2374
  o("update:activeIndex", i);
2371
2375
  };
2372
2376
  return (i, a) => (H(), de("div", Gu, [
2373
- U(' :active="index === activeIndex" '),
2377
+ N(' :active="index === activeIndex" '),
2374
2378
  (H(!0), de(
2375
2379
  We,
2376
2380
  null,
@@ -2379,11 +2383,11 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2379
2383
  "grid-num": t.gridNum,
2380
2384
  onItemClick: (s) => r(c)
2381
2385
  }, {
2382
- default: x(() => [
2386
+ default: L(() => [
2383
2387
  i.showFn(c) ? $e(i.$slots, "default", {
2384
2388
  key: 0,
2385
2389
  index: c
2386
- }, void 0, !0) : U("v-if", !0)
2390
+ }, void 0, !0) : N("v-if", !0)
2387
2391
  ]),
2388
2392
  _: 2
2389
2393
  /* DYNAMIC */
@@ -2393,7 +2397,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2393
2397
  ))
2394
2398
  ]));
2395
2399
  }
2396
- }), Zu = /* @__PURE__ */ Ie(Xu, [["__scopeId", "data-v-d36ddc74"]]), Yu = /* @__PURE__ */ pe({
2400
+ }), Zu = /* @__PURE__ */ Ee(Xu, [["__scopeId", "data-v-d36ddc74"]]), Yu = /* @__PURE__ */ pe({
2397
2401
  __name: "DirectionControl",
2398
2402
  emits: ["change"],
2399
2403
  setup(n, { emit: e }) {
@@ -2407,8 +2411,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2407
2411
  onDblclick: i[9] || (i[9] = ne((a) => a.stopPropagation(), ["stop"]))
2408
2412
  },
2409
2413
  [
2410
- R(A(ae), { content: "左上" }, {
2411
- default: x(() => [
2414
+ x(v(ae), { content: "左上" }, {
2415
+ default: L(() => [
2412
2416
  $("div", {
2413
2417
  class: "icon icon-top-left",
2414
2418
  onClick: i[0] || (i[0] = ne((a) => o("leftUp"), ["stop"]))
@@ -2417,8 +2421,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2417
2421
  _: 1
2418
2422
  /* STABLE */
2419
2423
  }),
2420
- R(A(ae), { content: "上" }, {
2421
- default: x(() => [
2424
+ x(v(ae), { content: "上" }, {
2425
+ default: L(() => [
2422
2426
  $("div", {
2423
2427
  class: "icon icon-top",
2424
2428
  onClick: i[1] || (i[1] = ne((a) => o("up"), ["stop"]))
@@ -2427,8 +2431,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2427
2431
  _: 1
2428
2432
  /* STABLE */
2429
2433
  }),
2430
- R(A(ae), { content: "右上" }, {
2431
- default: x(() => [
2434
+ x(v(ae), { content: "右上" }, {
2435
+ default: L(() => [
2432
2436
  $("div", {
2433
2437
  class: "icon icon-top-right",
2434
2438
  onClick: i[2] || (i[2] = ne((a) => o("rightUp"), ["stop"]))
@@ -2437,8 +2441,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2437
2441
  _: 1
2438
2442
  /* STABLE */
2439
2443
  }),
2440
- R(A(ae), { content: "左" }, {
2441
- default: x(() => [
2444
+ x(v(ae), { content: "左" }, {
2445
+ default: L(() => [
2442
2446
  $("div", {
2443
2447
  class: "icon icon-left",
2444
2448
  onClick: i[3] || (i[3] = ne((a) => o("left"), ["stop"]))
@@ -2447,8 +2451,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2447
2451
  _: 1
2448
2452
  /* STABLE */
2449
2453
  }),
2450
- R(A(ae), { content: "自动" }, {
2451
- default: x(() => [
2454
+ x(v(ae), { content: "自动" }, {
2455
+ default: L(() => [
2452
2456
  $("div", {
2453
2457
  class: "icon icon-auto",
2454
2458
  onClick: i[4] || (i[4] = ne((a) => o("auto"), ["stop"]))
@@ -2457,8 +2461,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2457
2461
  _: 1
2458
2462
  /* STABLE */
2459
2463
  }),
2460
- R(A(ae), { content: "右" }, {
2461
- default: x(() => [
2464
+ x(v(ae), { content: "右" }, {
2465
+ default: L(() => [
2462
2466
  $("div", {
2463
2467
  class: "icon icon-right",
2464
2468
  onClick: i[5] || (i[5] = ne((a) => o("right"), ["stop"]))
@@ -2467,8 +2471,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2467
2471
  _: 1
2468
2472
  /* STABLE */
2469
2473
  }),
2470
- R(A(ae), { content: "左下" }, {
2471
- default: x(() => [
2474
+ x(v(ae), { content: "左下" }, {
2475
+ default: L(() => [
2472
2476
  $("div", {
2473
2477
  class: "icon icon-bottom-left",
2474
2478
  onClick: i[6] || (i[6] = ne((a) => o("leftDown"), ["stop"]))
@@ -2477,8 +2481,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2477
2481
  _: 1
2478
2482
  /* STABLE */
2479
2483
  }),
2480
- R(A(ae), { content: "下" }, {
2481
- default: x(() => [
2484
+ x(v(ae), { content: "下" }, {
2485
+ default: L(() => [
2482
2486
  $("div", {
2483
2487
  class: "icon icon-bottom",
2484
2488
  onClick: i[7] || (i[7] = ne((a) => o("down"), ["stop"]))
@@ -2487,8 +2491,8 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2487
2491
  _: 1
2488
2492
  /* STABLE */
2489
2493
  }),
2490
- R(A(ae), { content: "右下" }, {
2491
- default: x(() => [
2494
+ x(v(ae), { content: "右下" }, {
2495
+ default: L(() => [
2492
2496
  $("div", {
2493
2497
  class: "icon icon-bottom-right",
2494
2498
  onClick: i[8] || (i[8] = ne((a) => o("rightDown"), ["stop"]))
@@ -2502,7 +2506,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2502
2506
  /* NEED_HYDRATION */
2503
2507
  ));
2504
2508
  }
2505
- }), ed = /* @__PURE__ */ Ie(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
+ }), 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 = {
2506
2510
  key: 0,
2507
2511
  class: "play-status"
2508
2512
  }, ld = { class: "video-bottom" }, ud = /* @__PURE__ */ td(() => /* @__PURE__ */ $(
@@ -2533,33 +2537,33 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2533
2537
  enlarge: import("@das-fed/ui/packages/icons/enlarge"),
2534
2538
  "direction-control": import("@das-fed/ui/packages/icons/direction-control")
2535
2539
  });
2536
- const t = n, o = e, r = T(!0), i = T(), a = T(!1), l = T(), c = Ce(() => {
2537
- var _;
2538
- return (_ = l.value) == null ? void 0 : _.video;
2539
- }), s = T(!1), u = T(!0), b = (_) => {
2540
- i.value = _, i.value.on(window.mpegts.Events.ERROR, (w) => {
2540
+ const t = n, o = e, r = S(!0), i = S(), a = S(!1), l = S(), c = Ce(() => {
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) => {
2541
2545
  });
2542
2546
  }, g = () => {
2543
2547
  r.value = !r.value, i.value && (i.value.muted = r.value);
2544
- }, f = () => {
2548
+ }, p = () => {
2545
2549
  a.value = !a.value;
2546
- }, v = T(""), y = () => {
2547
- const _ = document.createElement("canvas");
2550
+ }, w = S(""), _ = () => {
2551
+ const y = document.createElement("canvas");
2548
2552
  if (c.value) {
2549
- _.width = c.value.clientWidth, _.height = c.value.clientHeight;
2550
- const w = _.getContext("2d");
2551
- w == null || w.drawImage(c.value, 0, 0, _.width, _.height);
2552
- const k = _.toDataURL("image/jpg"), B = `【${t.title}】${Jt().format("YYYYMMDDHHmmss").toString()}.jpg`;
2553
- if (v.value = k, "download" in document.createElement("a")) {
2554
- const E = document.createElement("a");
2555
- E.download = B, E.style.display = "none", E.href = k, document.body.appendChild(E), document.body.appendChild(_), E.click(), URL.revokeObjectURL(E.href), document.body.removeChild(E), document.body.removeChild(_);
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`;
2557
+ if (w.value = P, "download" in document.createElement("a")) {
2558
+ const k = document.createElement("a");
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);
2556
2560
  }
2557
2561
  }
2558
- }, p = (_) => {
2559
- o("directionControl", _);
2560
- }, d = (_) => {
2561
- o("zoomControl", _);
2562
- }, m = (_) => t.authType.includes(_);
2562
+ }, f = (y) => {
2563
+ o("directionControl", y);
2564
+ }, d = (y) => {
2565
+ o("zoomControl", y);
2566
+ }, m = (y) => t.authType.includes(y);
2563
2567
  return re(
2564
2568
  () => c.value,
2565
2569
  () => {
@@ -2601,39 +2605,39 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2601
2605
  u.value = !0;
2602
2606
  });
2603
2607
  }
2604
- ), (_, w) => (H(), de("div", nd, [
2605
- R(A(Bo), {
2608
+ ), (y, b) => (H(), de("div", nd, [
2609
+ x(v(Bo), {
2606
2610
  spinning: t.loading,
2607
2611
  type: "component",
2608
2612
  tip: "加载中..."
2609
2613
  }, {
2610
- default: x(() => [
2614
+ default: L(() => [
2611
2615
  $("div", od, [
2612
2616
  $("div", rd, [
2613
2617
  $("div", sd, [
2614
2618
  $(
2615
2619
  "div",
2616
2620
  id,
2617
- Y(t.title.length > 20 ? t.title.slice(0, 19) + "..." : t.title),
2621
+ Z(t.title.length > 20 ? t.title.slice(0, 19) + "..." : t.title),
2618
2622
  1
2619
2623
  /* TEXT */
2620
2624
  )
2621
2625
  ])
2622
2626
  ]),
2623
2627
  $("div", ad, [
2624
- ["live"].includes(_.type) ? (H(), de("span", cd, "正在实时预览")) : U("v-if", !0),
2625
- U(' <das-icon class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
2628
+ ["live"].includes(y.type) ? (H(), de("span", cd, "正在实时预览")) : N("v-if", !0),
2629
+ N(' <das-icon class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
2626
2630
  ])
2627
2631
  ]),
2628
- t.videoUrl && u.value ? (H(), V(A(cs), {
2632
+ t.videoUrl && u.value ? (H(), V(v(cs), {
2629
2633
  key: 0,
2630
2634
  type: "flv",
2631
2635
  ref_key: "dasLivePlayerRef",
2632
2636
  ref: l,
2633
2637
  muted: r.value,
2634
- onLoaded: b,
2638
+ onLoaded: A,
2635
2639
  src: t.videoUrl
2636
- }, null, 8, ["muted", "src"])) : U("v-if", !0),
2640
+ }, null, 8, ["muted", "src"])) : N("v-if", !0),
2637
2641
  $("div", ld, [
2638
2642
  ud,
2639
2643
  $("div", dd, [
@@ -2641,12 +2645,12 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2641
2645
  "div",
2642
2646
  {
2643
2647
  class: "controls",
2644
- onDblclick: w[2] || (w[2] = ne((k) => k.stopPropagation(), ["stop"]))
2648
+ onDblclick: b[2] || (b[2] = ne((P) => P.stopPropagation(), ["stop"]))
2645
2649
  },
2646
2650
  [
2647
- R(A(ae), { content: "声音" }, {
2648
- default: x(() => [
2649
- R(A(De), {
2651
+ x(v(ae), { content: "声音" }, {
2652
+ default: L(() => [
2653
+ x(v(De), {
2650
2654
  class: "icon icon-volume",
2651
2655
  icon: r.value ? "muted" : "volume",
2652
2656
  onClick: ne(g, ["stop"])
@@ -2655,62 +2659,62 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2655
2659
  _: 1
2656
2660
  /* STABLE */
2657
2661
  }),
2658
- R(A(ae), { content: "截图" }, {
2659
- default: x(() => [
2660
- R(A(De), {
2662
+ x(v(ae), { content: "截图" }, {
2663
+ default: L(() => [
2664
+ x(v(De), {
2661
2665
  class: "icon icon-screenshot",
2662
2666
  icon: "screenshot",
2663
- onClick: ne(y, ["stop"])
2667
+ onClick: ne(_, ["stop"])
2664
2668
  })
2665
2669
  ]),
2666
2670
  _: 1
2667
2671
  /* STABLE */
2668
2672
  }),
2669
- m("control") ? (H(), V(A(ae), {
2673
+ m("control") ? (H(), V(v(ae), {
2670
2674
  key: 0,
2671
2675
  content: "聚焦-"
2672
2676
  }, {
2673
- default: x(() => [
2674
- ["live", "polling"].includes(t.type) ? (H(), V(A(De), {
2677
+ default: L(() => [
2678
+ ["live", "polling"].includes(t.type) ? (H(), V(v(De), {
2675
2679
  key: 0,
2676
2680
  class: "icon icon-shrink",
2677
2681
  icon: "shrink",
2678
- onClick: w[0] || (w[0] = ne((k) => d("zoomOut"), ["stop"]))
2679
- })) : U("v-if", !0)
2682
+ onClick: b[0] || (b[0] = ne((P) => d("zoomOut"), ["stop"]))
2683
+ })) : N("v-if", !0)
2680
2684
  ]),
2681
2685
  _: 1
2682
2686
  /* STABLE */
2683
- })) : U("v-if", !0),
2684
- m("control") ? (H(), V(A(ae), {
2687
+ })) : N("v-if", !0),
2688
+ m("control") ? (H(), V(v(ae), {
2685
2689
  key: 1,
2686
2690
  content: "聚焦+"
2687
2691
  }, {
2688
- default: x(() => [
2689
- ["live", "polling"].includes(t.type) ? (H(), V(A(De), {
2692
+ default: L(() => [
2693
+ ["live", "polling"].includes(t.type) ? (H(), V(v(De), {
2690
2694
  key: 0,
2691
2695
  class: "icon icon-enlarge",
2692
2696
  icon: "enlarge",
2693
- onClick: w[1] || (w[1] = ne((k) => d("zoomIn"), ["stop"]))
2694
- })) : U("v-if", !0)
2697
+ onClick: b[1] || (b[1] = ne((P) => d("zoomIn"), ["stop"]))
2698
+ })) : N("v-if", !0)
2695
2699
  ]),
2696
2700
  _: 1
2697
2701
  /* STABLE */
2698
- })) : U("v-if", !0),
2699
- m("control") ? (H(), V(A(ae), {
2702
+ })) : N("v-if", !0),
2703
+ m("control") ? (H(), V(v(ae), {
2700
2704
  key: 2,
2701
2705
  content: "方向控制"
2702
2706
  }, {
2703
- default: x(() => [
2704
- ["live", "polling"].includes(t.type) ? (H(), V(A(De), {
2707
+ default: L(() => [
2708
+ ["live", "polling"].includes(t.type) ? (H(), V(v(De), {
2705
2709
  key: 0,
2706
2710
  class: "icon icon-direction-control",
2707
2711
  icon: "direction-control",
2708
- onClick: ne(f, ["stop"])
2709
- })) : U("v-if", !0)
2712
+ onClick: ne(p, ["stop"])
2713
+ })) : N("v-if", !0)
2710
2714
  ]),
2711
2715
  _: 1
2712
2716
  /* STABLE */
2713
- })) : U("v-if", !0)
2717
+ })) : N("v-if", !0)
2714
2718
  ],
2715
2719
  32
2716
2720
  /* NEED_HYDRATION */
@@ -2719,15 +2723,15 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2719
2723
  ]),
2720
2724
  a.value ? (H(), V(ed, {
2721
2725
  key: 1,
2722
- onChange: p
2723
- })) : U("v-if", !0)
2726
+ onChange: f
2727
+ })) : N("v-if", !0)
2724
2728
  ]),
2725
2729
  _: 1
2726
2730
  /* STABLE */
2727
2731
  }, 8, ["spinning"])
2728
2732
  ]));
2729
2733
  }
2730
- }), fd = /* @__PURE__ */ Ie(pd, [["__scopeId", "data-v-866a3799"]]), hd = /* @__PURE__ */ pe({
2734
+ }), fd = /* @__PURE__ */ Ee(pd, [["__scopeId", "data-v-866a3799"]]), hd = /* @__PURE__ */ pe({
2731
2735
  props: {
2732
2736
  deviceInfo: {
2733
2737
  type: Object,
@@ -2739,7 +2743,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2739
2743
  }) {
2740
2744
  const {
2741
2745
  deviceInfo: t
2742
- } = $r(n), o = T(!1), r = T(""), i = async () => {
2746
+ } = $r(n), o = S(!1), r = S(""), i = async () => {
2743
2747
  var u;
2744
2748
  if (!((u = t.value) != null && u.deviceId)) return;
2745
2749
  o.value = !0;
@@ -2769,7 +2773,7 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2769
2773
  i();
2770
2774
  }, {
2771
2775
  deep: !0
2772
- }), () => R(We, null, [e.default({
2776
+ }), () => x(We, null, [e.default({
2773
2777
  videoUrl: r.value,
2774
2778
  loading: o.value,
2775
2779
  onDirectionControl: a,
@@ -2778,12 +2782,12 @@ const Vu = Fu.post("data/device-auth"), qu = /* @__PURE__ */ pe({
2778
2782
  }
2779
2783
  });
2780
2784
  function gd(n) {
2781
- const e = T(0), t = T(), {
2785
+ const e = S(0), t = S(), {
2782
2786
  toggle: o,
2783
2787
  isFullscreen: r
2784
2788
  } = lt(t);
2785
2789
  return {
2786
- render: () => R(Zu, {
2790
+ render: () => x(Zu, {
2787
2791
  ref: t,
2788
2792
  gridNum: n.gridNum,
2789
2793
  activeIndex: e.value,
@@ -2794,17 +2798,17 @@ function gd(n) {
2794
2798
  index: a
2795
2799
  }) => {
2796
2800
  const l = n.deviceList[a];
2797
- return R(hd, {
2801
+ return x(hd, {
2798
2802
  deviceInfo: l
2799
2803
  }, {
2800
2804
  default: ({
2801
2805
  videoUrl: c,
2802
2806
  onDirectionControl: s,
2803
2807
  onZoomControl: u,
2804
- loading: b
2805
- }) => R(fd, {
2808
+ loading: A
2809
+ }) => x(fd, {
2806
2810
  type: "live",
2807
- loading: b,
2811
+ loading: A,
2808
2812
  videoUrl: c,
2809
2813
  title: l.deviceName,
2810
2814
  onDirectionControl: s,
@@ -2834,7 +2838,7 @@ const Ad = /* @__PURE__ */ $(
2834
2838
  Po({
2835
2839
  fullscreen2: import("@das-fed/ui/packages/icons/fullscreen-2")
2836
2840
  });
2837
- const e = n, t = T(!0), { render: o, toggleFullscreen: r } = gd(e), i = Ce(() => {
2841
+ const e = n, t = S(!0), { render: o, toggleFullscreen: r } = gd(e), i = Ce(() => {
2838
2842
  let a = {};
2839
2843
  switch (e.gridNum) {
2840
2844
  case 1:
@@ -2849,7 +2853,7 @@ const Ad = /* @__PURE__ */ $(
2849
2853
  }
2850
2854
  return a;
2851
2855
  });
2852
- return (a, l) => (H(), V(A(sn), {
2856
+ return (a, l) => (H(), V(v(sn), {
2853
2857
  size: "mini",
2854
2858
  title: "视频监控",
2855
2859
  "custom-class": `das-linakge-video-dialog ${i.value}`,
@@ -2862,23 +2866,23 @@ const Ad = /* @__PURE__ */ $(
2862
2866
  "header-style": { display: "flex", justifyContent: "space-between", alignItems: "center" },
2863
2867
  onClosed: a.closeCallback
2864
2868
  }, {
2865
- header: x(() => [
2869
+ header: L(() => [
2866
2870
  Ad,
2867
- R(A(ae), { content: "页面全屏" }, {
2868
- default: x(() => [
2869
- R(A(De), {
2871
+ x(v(ae), { content: "页面全屏" }, {
2872
+ default: L(() => [
2873
+ x(v(De), {
2870
2874
  class: "icon",
2871
2875
  icon: "fullscreen2",
2872
2876
  iconColor: "#999",
2873
- onClick: A(r)
2877
+ onClick: v(r)
2874
2878
  }, null, 8, ["onClick"])
2875
2879
  ]),
2876
2880
  _: 1
2877
2881
  /* STABLE */
2878
2882
  })
2879
2883
  ]),
2880
- default: x(() => [
2881
- t.value ? (H(), V(A(o), { key: 0 })) : U("v-if", !0)
2884
+ default: L(() => [
2885
+ t.value ? (H(), V(v(o), { key: 0 })) : N("v-if", !0)
2882
2886
  ]),
2883
2887
  _: 1
2884
2888
  /* STABLE */
@@ -2895,7 +2899,7 @@ const Ad = /* @__PURE__ */ $(
2895
2899
  vt(a, r);
2896
2900
  });
2897
2901
  }, yd = () => {
2898
- const n = T(4), e = T([]), t = T(null), o = async (i) => {
2902
+ const n = S(4), e = S([]), t = S(null), o = async (i) => {
2899
2903
  const [a, l] = await Vu(i).run();
2900
2904
  if (!a)
2901
2905
  return l;
@@ -2911,22 +2915,22 @@ const Ad = /* @__PURE__ */ $(
2911
2915
  var u;
2912
2916
  if ((s == null ? void 0 : s.project) === i) {
2913
2917
  n.value = s.layout;
2914
- let b = {
2918
+ let A = {
2915
2919
  projectId: i,
2916
2920
  deviceIds: s == null ? void 0 : s.deviceId
2917
- }, f = (await o(b)).map((v) => {
2918
- let y = v.lookupOrOperation == 1;
2921
+ }, p = (await o(A)).map((w) => {
2922
+ let _ = w.lookupOrOperation == 1;
2919
2923
  return {
2920
- id: v.id,
2921
- productId: v.productId,
2922
- deviceId: v.deviceId,
2923
- deviceName: v.deviceName,
2924
- authType: v.controlAuthorization == 1 ? 2 : 1,
2924
+ id: w.id,
2925
+ productId: w.productId,
2926
+ deviceId: w.deviceId,
2927
+ deviceName: w.deviceName,
2928
+ authType: w.controlAuthorization == 1 ? 2 : 1,
2925
2929
  // 1 查看权限 2 查看+操作权限
2926
- show: !!y
2930
+ show: !!_
2927
2931
  };
2928
2932
  });
2929
- e.value = f.filter((v) => !!v.show), (u = e.value) != null && u.length && vd({ gridNum: n.value, deviceList: e.value });
2933
+ e.value = p.filter((w) => !!w.show), (u = e.value) != null && u.length && vd({ gridNum: n.value, deviceList: e.value });
2930
2934
  }
2931
2935
  }
2932
2936
  }));
@@ -3078,7 +3082,7 @@ class at {
3078
3082
  }
3079
3083
  at.instance = new at();
3080
3084
  const Id = "8.0.7";
3081
- class ee {
3085
+ class Y {
3082
3086
  static isRequired(e, t) {
3083
3087
  if (e == null)
3084
3088
  throw new Error(`The '${t}' argument is required.`);
@@ -3526,7 +3530,7 @@ class _n {
3526
3530
  constructor(e, t, o, r, i, a, l) {
3527
3531
  this._nextKeepAlive = 0, this._freezeEventListener = () => {
3528
3532
  this._logger.log(h.Warning, "The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep");
3529
- }, ee.isRequired(e, "connection"), ee.isRequired(t, "logger"), ee.isRequired(o, "protocol"), this.serverTimeoutInMilliseconds = i ?? Hd, this.keepAliveIntervalInMilliseconds = a ?? Nd, this._statefulReconnectBufferSize = l ?? Ud, this._logger = t, this._protocol = o, this.connection = e, this._reconnectPolicy = r, this._handshakeProtocol = new xd(), this.connection.onreceive = (c) => this._processIncomingData(c), this.connection.onclose = (c) => this._connectionClosed(c), this._callbacks = {}, this._methods = {}, this._closedCallbacks = [], this._reconnectingCallbacks = [], this._reconnectedCallbacks = [], this._invocationId = 0, this._receivedHandshakeResponse = !1, this._connectionState = q.Disconnected, this._connectionStarted = !1, this._cachedPingMessage = this._protocol.writeMessage({ type: j.Ping });
3533
+ }, Y.isRequired(e, "connection"), Y.isRequired(t, "logger"), Y.isRequired(o, "protocol"), this.serverTimeoutInMilliseconds = i ?? Hd, this.keepAliveIntervalInMilliseconds = a ?? Nd, this._statefulReconnectBufferSize = l ?? Ud, this._logger = t, this._protocol = o, this.connection = e, this._reconnectPolicy = r, this._handshakeProtocol = new xd(), this.connection.onreceive = (c) => this._processIncomingData(c), this.connection.onclose = (c) => this._connectionClosed(c), this._callbacks = {}, this._methods = {}, this._closedCallbacks = [], this._reconnectingCallbacks = [], this._reconnectedCallbacks = [], this._invocationId = 0, this._receivedHandshakeResponse = !1, this._connectionState = q.Disconnected, this._connectionStarted = !1, this._cachedPingMessage = this._protocol.writeMessage({ type: j.Ping });
3530
3534
  }
3531
3535
  /** Indicates the state of the {@link HubConnection} to the server. */
3532
3536
  get state() {
@@ -3680,9 +3684,9 @@ class _n {
3680
3684
  invoke(e, ...t) {
3681
3685
  const [o, r] = this._replaceStreamingParams(t), i = this._createInvocation(e, t, !1, r);
3682
3686
  return new Promise((l, c) => {
3683
- this._callbacks[i.invocationId] = (u, b) => {
3684
- if (b) {
3685
- c(b);
3687
+ this._callbacks[i.invocationId] = (u, A) => {
3688
+ if (A) {
3689
+ c(A);
3686
3690
  return;
3687
3691
  } else u && (u.type === j.Completion ? u.error ? c(new Error(u.error)) : l(u.result) : c(new Error(`Unexpected message type: ${u.type}`)));
3688
3692
  };
@@ -4046,10 +4050,10 @@ class Jd extends Dt {
4046
4050
  return this._innerClient.getCookieString(e);
4047
4051
  }
4048
4052
  }
4049
- var Z;
4053
+ var X;
4050
4054
  (function(n) {
4051
4055
  n[n.None = 0] = "None", n[n.WebSockets = 1] = "WebSockets", n[n.ServerSentEvents = 2] = "ServerSentEvents", n[n.LongPolling = 4] = "LongPolling";
4052
- })(Z || (Z = {}));
4056
+ })(X || (X = {}));
4053
4057
  var se;
4054
4058
  (function(n) {
4055
4059
  n[n.Text = 1] = "Text", n[n.Binary = 2] = "Binary";
@@ -4077,7 +4081,7 @@ class Ao {
4077
4081
  this._httpClient = e, this._logger = t, this._pollAbort = new Wd(), this._options = o, this._running = !1, this.onreceive = null, this.onclose = null;
4078
4082
  }
4079
4083
  async connect(e, t) {
4080
- if (ee.isRequired(e, "url"), ee.isRequired(t, "transferFormat"), ee.isIn(t, se, "transferFormat"), this._url = e, this._logger.log(h.Trace, "(LongPolling transport) Connecting."), t === se.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
4084
+ if (Y.isRequired(e, "url"), Y.isRequired(t, "transferFormat"), Y.isIn(t, se, "transferFormat"), this._url = e, this._logger.log(h.Trace, "(LongPolling transport) Connecting."), t === se.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
4081
4085
  throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");
4082
4086
  const [o, r] = Ke(), i = { [o]: r, ...this._options.headers }, a = {
4083
4087
  abortSignal: this._pollAbort.signal,
@@ -4143,7 +4147,7 @@ class zd {
4143
4147
  this._httpClient = e, this._accessToken = t, this._logger = o, this._options = r, this.onreceive = null, this.onclose = null;
4144
4148
  }
4145
4149
  async connect(e, t) {
4146
- return ee.isRequired(e, "url"), ee.isRequired(t, "transferFormat"), ee.isIn(t, se, "transferFormat"), this._logger.log(h.Trace, "(SSE transport) Connecting."), this._url = e, this._accessToken && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(this._accessToken)}`), new Promise((o, r) => {
4150
+ return Y.isRequired(e, "url"), Y.isRequired(t, "transferFormat"), Y.isIn(t, se, "transferFormat"), this._logger.log(h.Trace, "(SSE transport) Connecting."), this._url = e, this._accessToken && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(this._accessToken)}`), new Promise((o, r) => {
4147
4151
  let i = !1;
4148
4152
  if (t !== se.Text) {
4149
4153
  r(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));
@@ -4193,7 +4197,7 @@ class Vd {
4193
4197
  this._logger = o, this._accessTokenFactory = t, this._logMessageContent = r, this._webSocketConstructor = i, this._httpClient = e, this.onreceive = null, this.onclose = null, this._headers = a;
4194
4198
  }
4195
4199
  async connect(e, t) {
4196
- ee.isRequired(e, "url"), ee.isRequired(t, "transferFormat"), ee.isIn(t, se, "transferFormat"), this._logger.log(h.Trace, "(WebSockets transport) Connecting.");
4200
+ Y.isRequired(e, "url"), Y.isRequired(t, "transferFormat"), Y.isIn(t, se, "transferFormat"), this._logger.log(h.Trace, "(WebSockets transport) Connecting.");
4197
4201
  let o;
4198
4202
  return this._accessTokenFactory && (o = await this._accessTokenFactory()), new Promise((r, i) => {
4199
4203
  e = e.replace(/^http/, "ws");
@@ -4201,8 +4205,8 @@ class Vd {
4201
4205
  const l = this._httpClient.getCookieString(e);
4202
4206
  let c = !1;
4203
4207
  if (K.isNode || K.isReactNative) {
4204
- const s = {}, [u, b] = Ke();
4205
- s[u] = b, o && (s[Le.Authorization] = `Bearer ${o}`), l && (s[Le.Cookie] = l), a = new this._webSocketConstructor(e, void 0, {
4208
+ const s = {}, [u, A] = Ke();
4209
+ s[u] = A, o && (s[Le.Authorization] = `Bearer ${o}`), l && (s[Le.Cookie] = l), a = new this._webSocketConstructor(e, void 0, {
4206
4210
  headers: { ...s, ...this._headers }
4207
4211
  });
4208
4212
  } else
@@ -4250,7 +4254,7 @@ const mo = 100;
4250
4254
  class qd {
4251
4255
  constructor(e, t = {}) {
4252
4256
  if (this._stopPromiseResolver = () => {
4253
- }, this.features = {}, this._negotiateVersion = 1, ee.isRequired(e, "url"), this._logger = Sd(t.logger), this.baseUrl = this._resolveUrl(e), t = t || {}, t.logMessageContent = t.logMessageContent === void 0 ? !1 : t.logMessageContent, typeof t.withCredentials == "boolean" || t.withCredentials === void 0)
4257
+ }, this.features = {}, this._negotiateVersion = 1, Y.isRequired(e, "url"), this._logger = Sd(t.logger), this.baseUrl = this._resolveUrl(e), t = t || {}, t.logMessageContent = t.logMessageContent === void 0 ? !1 : t.logMessageContent, typeof t.withCredentials == "boolean" || t.withCredentials === void 0)
4254
4258
  t.withCredentials = t.withCredentials === void 0 ? !0 : t.withCredentials;
4255
4259
  else
4256
4260
  throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");
@@ -4263,7 +4267,7 @@ class qd {
4263
4267
  !K.isNode && typeof WebSocket < "u" && !t.WebSocket ? t.WebSocket = WebSocket : K.isNode && !t.WebSocket && o && (t.WebSocket = o), !K.isNode && typeof EventSource < "u" && !t.EventSource ? t.EventSource = EventSource : K.isNode && !t.EventSource && typeof r < "u" && (t.EventSource = r), this._httpClient = new Jd(t.httpClient || new Ld(this._logger), t.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = t, this.onreceive = null, this.onclose = null;
4264
4268
  }
4265
4269
  async start(e) {
4266
- if (e = e || se.Binary, ee.isIn(e, se, "transferFormat"), this._logger.log(h.Debug, `Starting connection with transfer format '${se[e]}'.`), this._connectionState !== "Disconnected")
4270
+ if (e = e || se.Binary, Y.isIn(e, se, "transferFormat"), this._logger.log(h.Debug, `Starting connection with transfer format '${se[e]}'.`), this._connectionState !== "Disconnected")
4267
4271
  return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));
4268
4272
  if (this._connectionState = "Connecting", this._startInternalPromise = this._startInternal(e), await this._startInternalPromise, this._connectionState === "Disconnecting") {
4269
4273
  const t = "Failed to start the HttpConnection before stop() was called.";
@@ -4307,8 +4311,8 @@ class qd {
4307
4311
  this._accessTokenFactory = this._options.accessTokenFactory, this._httpClient._accessTokenFactory = this._accessTokenFactory;
4308
4312
  try {
4309
4313
  if (this._options.skipNegotiation)
4310
- if (this._options.transport === Z.WebSockets)
4311
- this.transport = this._constructTransport(Z.WebSockets), await this._startTransport(t, e);
4314
+ if (this._options.transport === X.WebSockets)
4315
+ this.transport = this._constructTransport(X.WebSockets), await this._startTransport(t, e);
4312
4316
  else
4313
4317
  throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");
4314
4318
  else {
@@ -4375,16 +4379,16 @@ class qd {
4375
4379
  if (this.transport = u, !c) {
4376
4380
  try {
4377
4381
  c = await this._getNegotiationResponse(e);
4378
- } catch (b) {
4379
- return Promise.reject(b);
4382
+ } catch (A) {
4383
+ return Promise.reject(A);
4380
4384
  }
4381
4385
  i = this._createConnectUrl(e, c.connectionToken);
4382
4386
  }
4383
4387
  try {
4384
4388
  await this._startTransport(i, r), this.connectionId = c.connectionId;
4385
4389
  return;
4386
- } catch (b) {
4387
- if (this._logger.log(h.Error, `Failed to start the transport '${s.transport}': ${b}`), c = void 0, a.push(new wd(`${s.transport} failed: ${b}`, Z[s.transport])), this._connectionState !== "Connecting") {
4390
+ } catch (A) {
4391
+ if (this._logger.log(h.Error, `Failed to start the transport '${s.transport}': ${A}`), c = void 0, a.push(new wd(`${s.transport} failed: ${A}`, X[s.transport])), this._connectionState !== "Connecting") {
4388
4392
  const g = "Failed to select transport before stop() was called.";
4389
4393
  return this._logger.log(h.Debug, g), Promise.reject(new ve(g));
4390
4394
  }
@@ -4395,15 +4399,15 @@ class qd {
4395
4399
  }
4396
4400
  _constructTransport(e) {
4397
4401
  switch (e) {
4398
- case Z.WebSockets:
4402
+ case X.WebSockets:
4399
4403
  if (!this._options.WebSocket)
4400
4404
  throw new Error("'WebSocket' is not supported in your environment.");
4401
4405
  return new Vd(this._httpClient, this._accessTokenFactory, this._logger, this._options.logMessageContent, this._options.WebSocket, this._options.headers || {});
4402
- case Z.ServerSentEvents:
4406
+ case X.ServerSentEvents:
4403
4407
  if (!this._options.EventSource)
4404
4408
  throw new Error("'EventSource' is not supported in your environment.");
4405
4409
  return new zd(this._httpClient, this._httpClient._accessToken, this._logger, this._options);
4406
- case Z.LongPolling:
4410
+ case X.LongPolling:
4407
4411
  return new Ao(this._httpClient, this._logger, this._options);
4408
4412
  default:
4409
4413
  throw new Error(`Unknown transport: ${e}.`);
@@ -4426,23 +4430,23 @@ class qd {
4426
4430
  } : this.transport.onclose = (o) => this._stopConnection(o), this.transport.connect(e, t);
4427
4431
  }
4428
4432
  _resolveTransportOrError(e, t, o, r) {
4429
- const i = Z[e.transport];
4433
+ const i = X[e.transport];
4430
4434
  if (i == null)
4431
4435
  return this._logger.log(h.Debug, `Skipping transport '${e.transport}' because it is not supported by this client.`), new Error(`Skipping transport '${e.transport}' because it is not supported by this client.`);
4432
4436
  if (Kd(t, i))
4433
4437
  if (e.transferFormats.map((l) => se[l]).indexOf(o) >= 0) {
4434
- if (i === Z.WebSockets && !this._options.WebSocket || i === Z.ServerSentEvents && !this._options.EventSource)
4435
- return this._logger.log(h.Debug, `Skipping transport '${Z[i]}' because it is not supported in your environment.'`), new _d(`'${Z[i]}' is not supported in your environment.`, i);
4436
- this._logger.log(h.Debug, `Selecting transport '${Z[i]}'.`);
4438
+ if (i === X.WebSockets && !this._options.WebSocket || i === X.ServerSentEvents && !this._options.EventSource)
4439
+ return this._logger.log(h.Debug, `Skipping transport '${X[i]}' because it is not supported in your environment.'`), new _d(`'${X[i]}' is not supported in your environment.`, i);
4440
+ this._logger.log(h.Debug, `Selecting transport '${X[i]}'.`);
4437
4441
  try {
4438
- return this.features.reconnect = i === Z.WebSockets ? r : void 0, this._constructTransport(i);
4442
+ return this.features.reconnect = i === X.WebSockets ? r : void 0, this._constructTransport(i);
4439
4443
  } catch (l) {
4440
4444
  return l;
4441
4445
  }
4442
4446
  } else
4443
- return this._logger.log(h.Debug, `Skipping transport '${Z[i]}' because it does not support the requested transfer format '${se[o]}'.`), new Error(`'${Z[i]}' does not support ${se[o]}.`);
4447
+ return this._logger.log(h.Debug, `Skipping transport '${X[i]}' because it does not support the requested transfer format '${se[o]}'.`), new Error(`'${X[i]}' does not support ${se[o]}.`);
4444
4448
  else
4445
- return this._logger.log(h.Debug, `Skipping transport '${Z[i]}' because it was disabled by the client.`), new bd(`'${Z[i]}' is disabled by the client.`, i);
4449
+ return this._logger.log(h.Debug, `Skipping transport '${X[i]}' because it was disabled by the client.`), new bd(`'${X[i]}' is disabled by the client.`, i);
4446
4450
  }
4447
4451
  _isITransport(e) {
4448
4452
  return e && typeof e == "object" && "connect" in e;
@@ -4636,7 +4640,7 @@ function Yd(n) {
4636
4640
  }
4637
4641
  class ep {
4638
4642
  configureLogging(e) {
4639
- if (ee.isRequired(e, "logging"), tp(e))
4643
+ if (Y.isRequired(e, "logging"), tp(e))
4640
4644
  this.logger = e;
4641
4645
  else if (typeof e == "string") {
4642
4646
  const t = Yd(e);
@@ -4646,7 +4650,7 @@ class ep {
4646
4650
  return this;
4647
4651
  }
4648
4652
  withUrl(e, t) {
4649
- return ee.isRequired(e, "url"), ee.isNotEmpty(e, "url"), this.url = e, typeof t == "object" ? this.httpConnectionOptions = { ...this.httpConnectionOptions, ...t } : this.httpConnectionOptions = {
4653
+ return Y.isRequired(e, "url"), Y.isNotEmpty(e, "url"), this.url = e, typeof t == "object" ? this.httpConnectionOptions = { ...this.httpConnectionOptions, ...t } : this.httpConnectionOptions = {
4650
4654
  ...this.httpConnectionOptions,
4651
4655
  transport: t
4652
4656
  }, this;
@@ -4656,7 +4660,7 @@ class ep {
4656
4660
  * @param {IHubProtocol} protocol The {@link @microsoft/signalr.IHubProtocol} implementation to use.
4657
4661
  */
4658
4662
  withHubProtocol(e) {
4659
- return ee.isRequired(e, "protocol"), this.protocol = e, this;
4663
+ return Y.isRequired(e, "protocol"), this.protocol = e, this;
4660
4664
  }
4661
4665
  withAutomaticReconnect(e) {
4662
4666
  if (this.reconnectPolicy)
@@ -4668,14 +4672,14 @@ class ep {
4668
4672
  * @returns The {@link @microsoft/signalr.HubConnectionBuilder} instance, for chaining.
4669
4673
  */
4670
4674
  withServerTimeout(e) {
4671
- return ee.isRequired(e, "milliseconds"), this._serverTimeoutInMilliseconds = e, this;
4675
+ return Y.isRequired(e, "milliseconds"), this._serverTimeoutInMilliseconds = e, this;
4672
4676
  }
4673
4677
  /** Configures {@link @microsoft/signalr.HubConnection.keepAliveIntervalInMilliseconds} for the {@link @microsoft/signalr.HubConnection}.
4674
4678
  *
4675
4679
  * @returns The {@link @microsoft/signalr.HubConnectionBuilder} instance, for chaining.
4676
4680
  */
4677
4681
  withKeepAliveInterval(e) {
4678
- return ee.isRequired(e, "milliseconds"), this._keepAliveIntervalInMilliseconds = e, this;
4682
+ return Y.isRequired(e, "milliseconds"), this._keepAliveIntervalInMilliseconds = e, this;
4679
4683
  }
4680
4684
  /** Enables and configures options for the Stateful Reconnect feature.
4681
4685
  *
@@ -4703,7 +4707,7 @@ let { baseURL: np } = He();
4703
4707
  const op = () => {
4704
4708
  const n = new ep().withUrl(`${np}/api/tool/event-bus`, {
4705
4709
  skipNegotiation: !0,
4706
- transport: Z.WebSockets
4710
+ transport: X.WebSockets
4707
4711
  }).withAutomaticReconnect().build();
4708
4712
  return n.start().then(() => {
4709
4713
  }).catch((e) => {
@@ -4727,54 +4731,54 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
4727
4731
  return !1;
4728
4732
  }
4729
4733
  }, l = async (m) => {
4730
- var k;
4731
- const _ = F(), w = ((k = _.appcategorys) == null ? void 0 : k.map((B) => B.apps).flat()) || [];
4734
+ var P;
4735
+ const y = F(), b = ((P = y.appcategorys) == null ? void 0 : P.map((C) => C.apps).flat()) || [];
4732
4736
  if (Array.isArray(m)) {
4733
- const B = m.filter((E) => E.code).map((E) => E.code);
4737
+ const C = m.filter((k) => k.code).map((k) => k.code);
4734
4738
  if (m.length) {
4735
- if (_.currentSubAppCode) {
4736
- const S = _.currentSubApp.menus ?? [], C = ye(S).find((M) => B.includes(M.code));
4737
- if (C) {
4738
- t({ currentMenu: C });
4739
+ if (y.currentSubAppCode) {
4740
+ const I = y.currentSubApp.menus ?? [], T = ye(I).find((M) => C.includes(M.code));
4741
+ if (T) {
4742
+ t({ currentMenu: T });
4739
4743
  return;
4740
4744
  }
4741
4745
  }
4742
- const E = w.find((S) => B.includes(S.code));
4743
- E && e({ microApp: E });
4746
+ const k = b.find((I) => C.includes(I.code));
4747
+ k && e({ microApp: k });
4744
4748
  }
4745
4749
  }
4746
4750
  if (typeof m == "string")
4747
4751
  if (m.includes(":")) {
4748
- const B = m.split(":"), [E = "", S = ""] = B;
4749
- if (!E) return;
4750
- const C = w.find((M) => M.code === E);
4751
- C && e({ microApp: C, menuCode: S });
4752
+ const C = m.split(":"), [k = "", I = ""] = C;
4753
+ if (!k) return;
4754
+ const T = b.find((M) => M.code === k);
4755
+ T && e({ microApp: T, menuCode: I });
4752
4756
  } else {
4753
- const B = m, E = w.find((S) => S.code === B);
4754
- if (E)
4755
- e({ microApp: E });
4757
+ const C = m, k = b.find((I) => I.code === C);
4758
+ if (k)
4759
+ e({ microApp: k });
4756
4760
  else {
4757
- const [S, C] = await lp().run({ menuCode: B });
4758
- if (S) return;
4759
- const M = w.find((L) => L.code === C);
4760
- M && e({ microApp: M, menuCode: B });
4761
+ const [I, T] = await lp().run({ menuCode: C });
4762
+ if (I) return;
4763
+ const M = b.find((R) => R.code === T);
4764
+ M && e({ microApp: M, menuCode: C });
4761
4765
  }
4762
4766
  }
4763
4767
  };
4764
- let c = T(!0);
4768
+ let c = S(!0);
4765
4769
  const s = (m) => {
4766
4770
  setTimeout(async () => {
4767
- var _, w;
4771
+ var y, b;
4768
4772
  if (c.value) {
4769
- const [k, B] = await ap().run({}, { params: { aliasName: m.actionValue } });
4770
- k ? await Ht().run({
4773
+ const [P, C] = await ap().run({}, { params: { aliasName: m.actionValue } });
4774
+ P ? await Ht().run({
4771
4775
  uniqueId: m.uniqueId,
4772
4776
  status: 0,
4773
4777
  errorMsg: "未找到" + m.actionValue
4774
- }) : B.length ? (B.length > 1 ? l(B) : l((_ = B[0]) == null ? void 0 : _.code), await Ht().run({
4778
+ }) : C.length ? (C.length > 1 ? l(C) : l((y = C[0]) == null ? void 0 : y.code), await Ht().run({
4775
4779
  uniqueId: m.uniqueId,
4776
4780
  status: 1,
4777
- targetName: (w = B[0]) == null ? void 0 : w.name
4781
+ targetName: (b = C[0]) == null ? void 0 : b.name
4778
4782
  })) : await Ht().run({
4779
4783
  uniqueId: m.uniqueId,
4780
4784
  status: 0,
@@ -4784,31 +4788,31 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
4784
4788
  c.value = !0;
4785
4789
  }, 2e3);
4786
4790
  }, u = (m) => {
4787
- const _ = Yt(), w = JSON.parse(atob(_.split(".")[1])).sub;
4788
- op().on(`${m}:${w}`, async function(B) {
4789
- let E = a(B);
4790
- if (E)
4791
- E.uniqueId && E.actionKey == "switch-menu" && s(E);
4792
- else if (B.includes("openAppMenu=")) {
4793
- const S = B.split("="), C = JSON.parse(S[1]);
4794
- l(C);
4795
- } else B.includes("iocIsRun") && (c.value = !1);
4791
+ const y = Yt(), b = JSON.parse(atob(y.split(".")[1])).sub;
4792
+ op().on(`${m}:${b}`, async function(C) {
4793
+ let k = a(C);
4794
+ if (k)
4795
+ k.uniqueId && k.actionKey == "switch-menu" && s(k);
4796
+ else if (C.includes("openAppMenu=")) {
4797
+ const I = C.split("="), T = JSON.parse(I[1]);
4798
+ l(T);
4799
+ } else C.includes("iocIsRun") && (c.value = !1);
4796
4800
  });
4797
- }, b = T(""), [g, f] = await vo().run();
4798
- b.value = f, u(b.value);
4799
- const v = async () => {
4800
- const [m, _] = await vo().run();
4801
- _ !== b.value && (b.value = _, u(b.value));
4801
+ }, A = S(""), [g, p] = await vo().run();
4802
+ A.value = p, u(A.value);
4803
+ const w = async () => {
4804
+ const [m, y] = await vo().run();
4805
+ y !== A.value && (A.value = y, u(A.value));
4802
4806
  };
4803
4807
  o = setInterval(() => {
4804
- v();
4808
+ w();
4805
4809
  }, 72e5);
4806
- const y = T("online"), p = (m) => {
4807
- m === "online" && y.value === "offline" && setTimeout(() => {
4808
- v();
4809
- }, 5e3), y.value = (window.navigator.onLine ? "on" : "off") + "line";
4810
+ const _ = S("online"), f = (m) => {
4811
+ m === "online" && _.value === "offline" && setTimeout(() => {
4812
+ w();
4813
+ }, 5e3), _.value = (window.navigator.onLine ? "on" : "off") + "line";
4810
4814
  };
4811
- window.addEventListener("online", () => p("online")), window.addEventListener("offline", () => p("offline"));
4815
+ window.addEventListener("online", () => f("online")), window.addEventListener("offline", () => f("offline"));
4812
4816
  }), Et(() => {
4813
4817
  o && clearInterval(o);
4814
4818
  }), {};
@@ -4822,9 +4826,9 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
4822
4826
  },
4823
4827
  emits: ["emitFn"],
4824
4828
  setup(n, { expose: e, emit: t }) {
4825
- const o = n, r = t, i = T(!1), a = T(null), l = T(0), c = T(!1);
4826
- T("");
4827
- const s = T({
4829
+ const o = n, r = t, i = S(!1), a = S(null), l = S(0), c = S(!1);
4830
+ S("");
4831
+ const s = S({
4828
4832
  processTypeId: "confirm",
4829
4833
  // 处理类型
4830
4834
  reason: "",
@@ -4850,7 +4854,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
4850
4854
  // 处置时限
4851
4855
  interval: 2
4852
4856
  // 时限刻度 默认选择“时”
4853
- }), u = T({
4857
+ }), u = S({
4854
4858
  processTypeId: "",
4855
4859
  // 处理类型 必填
4856
4860
  reason: "",
@@ -4870,78 +4874,78 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
4870
4874
  // 事件等级id
4871
4875
  timeLimit: ""
4872
4876
  // 处置时限
4873
- }), b = T(!1), g = T([]), f = T([]), v = T([
4877
+ }), A = S(!1), g = S([]), p = S([]), w = S([
4874
4878
  { id: 2, name: Q("时").value },
4875
4879
  { id: 1, name: Q("分").value },
4876
4880
  { id: 3, name: Q("不限").value }
4877
- ]), y = T([]), p = T(""), d = T("告警对象位置"), m = T(""), _ = T([]), w = T("");
4878
- T("[]");
4879
- const k = T(!0), B = T(!0), E = async (O) => {
4880
- const I = { name: "1" };
4881
- O != null && O.id && (I.spaceId = O.id);
4882
- const [P, me] = await vp(I).run();
4883
- return P ? {} : me;
4884
- }, S = async (O) => {
4885
- const I = { name: O || "" }, [P, me] = await yp(I).run();
4886
- return P ? {} : me;
4887
- }, C = T(!0), M = T(!0), L = T([]), N = async () => {
4888
- const [O, I] = await mp().run({ pageIndex: -1, pageSize: -1 });
4881
+ ]), _ = S([]), f = S(""), d = S("告警对象位置"), m = S(""), y = S([]), b = S("");
4882
+ S("[]");
4883
+ const P = S(!0), C = S(!0), k = async (O) => {
4884
+ const E = { name: "1" };
4885
+ O != null && O.id && (E.spaceId = O.id);
4886
+ const [B, me] = await vp(E).run();
4887
+ return B ? {} : me;
4888
+ }, I = async (O) => {
4889
+ const E = { name: O || "" }, [B, me] = await yp(E).run();
4890
+ return B ? {} : me;
4891
+ }, T = S(!0), M = S(!0), R = S([]), U = async () => {
4892
+ const [O, E] = await mp().run({ pageIndex: -1, pageSize: -1 });
4889
4893
  if (O) return {};
4890
- L.value = I.data.filter((P) => P.status), L.value.length > 0 && (s.value.workOrderRules = L.value[0].id);
4894
+ R.value = E.data.filter((B) => B.status), R.value.length > 0 && (s.value.workOrderRules = R.value[0].id);
4891
4895
  };
4892
4896
  re(c, (O) => {
4893
4897
  O || (G(), fe());
4894
4898
  }), re(
4895
- B,
4899
+ C,
4896
4900
  (O) => {
4897
- O ? (k.value = !0, s.value.customPath = Q("选填").value) : (k.value = !1, s.value.customPath = "");
4901
+ O ? (P.value = !0, s.value.customPath = Q("选填").value) : (P.value = !1, s.value.customPath = "");
4898
4902
  },
4899
4903
  { immediate: !0 }
4900
4904
  ), re(
4901
4905
  M,
4902
4906
  (O) => {
4903
- O ? (s.value.reportTheme = Q("告警对象").value, C.value = !0) : (m.value = "请输入", s.value.reportTheme = "", C.value = !1);
4907
+ O ? (s.value.reportTheme = Q("告警对象").value, T.value = !0) : (m.value = "请输入", s.value.reportTheme = "", T.value = !1);
4904
4908
  },
4905
4909
  { immediate: !0 }
4906
4910
  );
4907
4911
  const W = (O) => {
4908
- var I;
4909
- return (I = a.value) == null ? void 0 : I.parentNode.parentNode;
4912
+ var E;
4913
+ return (E = a.value) == null ? void 0 : E.parentNode.parentNode;
4910
4914
  }, ie = (O) => {
4911
4915
  u.value.reportTheme = "";
4912
- }, Se = (O, I) => {
4913
- I.length > 0 && (p.value = I[0].path), s.value.reportPosition = O, w.value = "";
4916
+ }, Te = (O, E) => {
4917
+ E.length > 0 && (f.value = E[0].path), s.value.reportPosition = O, b.value = "";
4914
4918
  }, ft = (O) => {
4915
- O && (u.value.reportPosition = "", p.value = ""), O ? (s.value.reportPosition = null, p.value = "", d.value = "告警对象位置") : (s.value.reportPosition = null, p.value = "", d.value = "请选择");
4919
+ O && (u.value.reportPosition = "", f.value = ""), O ? (s.value.reportPosition = null, f.value = "", d.value = "告警对象位置") : (s.value.reportPosition = null, f.value = "", d.value = "请选择");
4916
4920
  }, oe = (O) => {
4917
4921
  O && (u.value.reportTheme = ""), O ? (s.value.reportTheme = "", m.value = "告警对象") : (s.value.reportTheme = "", m.value = "请输入");
4918
4922
  }, G = () => {
4919
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 = "";
4920
4924
  }, fe = () => {
4921
- s.value.processTypeId = "confirm", s.value.reason = "", s.value.treatmentPlan = "", s.value.remarks = "", s.value.reportPosition = "", s.value.reportTheme = "", s.value.workOrderRules = null, B.value = !0, M.value = !0, C.value = !0, s.value.reportTheme = Q("告警对象").value, p.value = "", d.value = "告警对象位置", m.value = "请输入", s.value.eventTypeId = "", s.value.eventLevelId = null, s.value.timeLimit = "", s.value.interval = 1, g.value = [], f.value = [];
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 = [];
4922
4926
  }, Oe = (O) => {
4923
- O == "eventTypeId" && (s.value.eventLevelId = null, Cn()), O == "eventLevelId" && In(), O == "interval" && (u.value.timeLimit = "", s.value.interval == 3 ? (b.value = !0, s.value.timeLimit = "") : b.value = !1);
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);
4924
4928
  }, yr = async () => {
4925
- const [O, I] = await _p().run();
4929
+ const [O, E] = await _p().run();
4926
4930
  if (O) return {};
4927
- g.value = I, s.value.eventTypeId || (s.value.eventTypeId = I[0] ? I[0].id : null), Cn();
4931
+ g.value = E, s.value.eventTypeId || (s.value.eventTypeId = E[0] ? E[0].id : null), Cn();
4928
4932
  }, Cn = async () => {
4929
4933
  const O = {
4930
4934
  eventTypeId: s.value.eventTypeId
4931
- }, [I, P] = await bp(O).run();
4932
- if (I) return {};
4935
+ }, [E, B] = await bp(O).run();
4936
+ if (E) return {};
4933
4937
  const me = { 1: "一级", 2: "二级", 3: "三级", 4: "四级" };
4934
- f.value = P.map((ht) => ({
4938
+ p.value = B.map((ht) => ({
4935
4939
  id: `${ht}`,
4936
4940
  name: me[ht] ? me[ht] : ht
4937
- })), P.length && !s.value.eventLevelId && (s.value.eventLevelId = f.value[0].id, In());
4941
+ })), B.length && !s.value.eventLevelId && (s.value.eventLevelId = p.value[0].id, In());
4938
4942
  }, In = async () => {
4939
4943
  const O = {
4940
4944
  eventTypeId: s.value.eventTypeId,
4941
4945
  eventLevel: s.value.eventLevelId
4942
- }, [I, P] = await wp(O).run();
4943
- if (I) return {};
4944
- s.value.interval = P.handleTimeUnit, P.handleTimeUnit == 3 ? s.value.timeLimit = "" : s.value.timeLimit = P.handleTime;
4946
+ }, [E, B] = await wp(O).run();
4947
+ if (E) return {};
4948
+ s.value.interval = B.handleTimeUnit, B.handleTimeUnit == 3 ? s.value.timeLimit = "" : s.value.timeLimit = B.handleTime;
4945
4949
  }, _r = (O) => {
4946
4950
  G();
4947
4951
  }, br = async () => {
@@ -4951,23 +4955,23 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
4951
4955
  projectId: o.projectId
4952
4956
  };
4953
4957
  i.value = !0;
4954
- const [I, P] = await hp(O).run();
4955
- if (I) {
4958
+ const [E, B] = await hp(O).run();
4959
+ if (E) {
4956
4960
  i.value = !1;
4957
4961
  return;
4958
4962
  }
4959
- i.value = !1, y.value = P;
4960
- for (let me = 0; me < y.value.length; me++)
4961
- y.value[me].id === "createorder" && N(), 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();
4962
4966
  }, wr = () => {
4963
4967
  let O = !0;
4964
4968
  if (s.value.processTypeId == "dealwith")
4965
4969
  s.value.reason.trim() || (O = !1, u.value.reason = Q("必填,最多50个字符/汉字").value), s.value.treatmentPlan.trim() || (O = !1, u.value.treatmentPlan = Q("必填,最多50个字符/汉字").value);
4966
4970
  else if (s.value.processTypeId == "createorder")
4967
- B.value ? u.value.reportPosition = "" : !s.value.reportPosition && !s.value.customPath ? (O = !1, u.value.reportPosition = Q("必填").value) : u.value.reportPosition = "", M.value || s.value.reportTheme ? u.value.reportTheme = "" : (O = !1, u.value.reportTheme = Q("必填,最多20个汉字/字符").value), s.value.workOrderRules ? u.value.workOrderRules = "" : (O = !1, u.value.workOrderRules = Q("必填").value);
4971
+ C.value ? u.value.reportPosition = "" : !s.value.reportPosition && !s.value.customPath ? (O = !1, u.value.reportPosition = Q("必填").value) : u.value.reportPosition = "", M.value || s.value.reportTheme ? u.value.reportTheme = "" : (O = !1, u.value.reportTheme = Q("必填,最多20个汉字/字符").value), s.value.workOrderRules ? u.value.workOrderRules = "" : (O = !1, u.value.workOrderRules = Q("必填").value);
4968
4972
  else if (s.value.processTypeId == "createcontingency") {
4969
- const I = /^[1-9][0-9]{0,2}$/;
4970
- s.value.eventTypeId || (O = !1, u.value.eventTypeId = Q("必选").value), s.value.eventLevelId || (O = !1, u.value.eventLevelId = Q("必选").value), s.value.interval != 3 && !I.test(s.value.timeLimit) && (O = !1, u.value.timeLimit = Q("必填,请输入1~999之间的正整数").value);
4973
+ const E = /^[1-9][0-9]{0,2}$/;
4974
+ s.value.eventTypeId || (O = !1, u.value.eventTypeId = Q("必选").value), s.value.eventLevelId || (O = !1, u.value.eventLevelId = Q("必选").value), s.value.interval != 3 && !E.test(s.value.timeLimit) && (O = !1, u.value.timeLimit = Q("必填,请输入1~999之间的正整数").value);
4971
4975
  }
4972
4976
  return O;
4973
4977
  }, Cr = () => {
@@ -4984,13 +4988,13 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
4984
4988
  processTypeId: s.value.processTypeId
4985
4989
  //处理类型id
4986
4990
  };
4987
- s.value.processTypeId === "createorder" ? (O.path = B.value ? "" : s.value.customPath, O.topic = M.value ? "" : s.value.reportTheme, O.spaceId = B.value ? "" : s.value.reportPosition ?? "", O.orderId = s.value.workOrderRules) : s.value.processTypeId === "createcontingency" ? (O.eventTypeId = s.value.eventTypeId, O.eventLevelId = s.value.eventLevelId, O.timeLimit = s.value.interval == 3 ? null : Number(s.value.timeLimit), O.interval = s.value.interval) : (O.reason = s.value.reason, O.treatmentPlan = s.value.treatmentPlan, O.remarks = s.value.remarks), i.value = !0, r("emitFn", "startHandle");
4988
- const [I, P] = await gp(O, {
4991
+ s.value.processTypeId === "createorder" ? (O.path = C.value ? "" : s.value.customPath, O.topic = M.value ? "" : s.value.reportTheme, O.spaceId = C.value ? "" : s.value.reportPosition ?? "", O.orderId = s.value.workOrderRules) : s.value.processTypeId === "createcontingency" ? (O.eventTypeId = s.value.eventTypeId, O.eventLevelId = s.value.eventLevelId, O.timeLimit = s.value.interval == 3 ? null : Number(s.value.timeLimit), O.interval = s.value.interval) : (O.reason = s.value.reason, O.treatmentPlan = s.value.treatmentPlan, O.remarks = s.value.remarks), i.value = !0, r("emitFn", "startHandle");
4992
+ const [E, B] = await gp(O, {
4989
4993
  params: {
4990
4994
  projectId: o.projectId
4991
4995
  }
4992
4996
  }).run();
4993
- if (I) {
4997
+ if (E) {
4994
4998
  i.value = !1;
4995
4999
  return;
4996
5000
  }
@@ -5003,10 +5007,10 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5003
5007
  return e({
5004
5008
  open: Er,
5005
5009
  close: Lt
5006
- }), (O, I) => (H(), de("div", Cp, [
5007
- R(A(sn), {
5010
+ }), (O, E) => (H(), de("div", Cp, [
5011
+ x(v(sn), {
5008
5012
  modelValue: c.value,
5009
- "onUpdate:modelValue": I[31] || (I[31] = (P) => c.value = P),
5013
+ "onUpdate:modelValue": E[31] || (E[31] = (B) => c.value = B),
5010
5014
  type: "basic",
5011
5015
  size: "small",
5012
5016
  height: 500,
@@ -5016,22 +5020,22 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5016
5020
  },
5017
5021
  "destroy-on-close": ""
5018
5022
  }, {
5019
- header: x(() => [
5023
+ header: L(() => [
5020
5024
  ue(
5021
- Y(A(Q)("告警处理").value),
5025
+ Z(v(Q)("告警处理").value),
5022
5026
  1
5023
5027
  /* TEXT */
5024
5028
  )
5025
5029
  ]),
5026
- footer: x(() => [
5030
+ footer: L(() => [
5027
5031
  $("div", kp, [
5028
- R(A(Te), {
5032
+ x(v(ke), {
5029
5033
  size: "middle",
5030
5034
  onClick: Cr
5031
5035
  }, {
5032
- default: x(() => [
5036
+ default: L(() => [
5033
5037
  ue(
5034
- Y(A(Q)("取消").value),
5038
+ Z(v(Q)("取消").value),
5035
5039
  1
5036
5040
  /* TEXT */
5037
5041
  )
@@ -5039,13 +5043,13 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5039
5043
  _: 1
5040
5044
  /* STABLE */
5041
5045
  }),
5042
- R(A(Te), {
5046
+ x(v(ke), {
5043
5047
  size: "middle",
5044
- onClick: I[29] || (I[29] = (P) => En(1))
5048
+ onClick: E[29] || (E[29] = (B) => En(1))
5045
5049
  }, {
5046
- default: x(() => [
5050
+ default: L(() => [
5047
5051
  ue(
5048
- Y(A(Q)("结束处理").value),
5052
+ Z(v(Q)("结束处理").value),
5049
5053
  1
5050
5054
  /* TEXT */
5051
5055
  )
@@ -5053,14 +5057,14 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5053
5057
  _: 1
5054
5058
  /* STABLE */
5055
5059
  }),
5056
- R(A(Te), {
5060
+ x(v(ke), {
5057
5061
  btnType: "primary",
5058
5062
  size: "middle",
5059
- onClick: I[30] || (I[30] = (P) => En(2))
5063
+ onClick: E[30] || (E[30] = (B) => En(2))
5060
5064
  }, {
5061
- default: x(() => [
5065
+ default: L(() => [
5062
5066
  ue(
5063
- Y(A(Q)("继续处理").value),
5067
+ Z(v(Q)("继续处理").value),
5064
5068
  1
5065
5069
  /* TEXT */
5066
5070
  )
@@ -5070,9 +5074,9 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5070
5074
  })
5071
5075
  ])
5072
5076
  ]),
5073
- default: x(() => [
5074
- R(A(Bo), { spinning: i.value }, {
5075
- default: x(() => [
5077
+ default: L(() => [
5078
+ x(v(Bo), { spinning: i.value }, {
5079
+ default: L(() => [
5076
5080
  $(
5077
5081
  "div",
5078
5082
  {
@@ -5081,19 +5085,19 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5081
5085
  class: "handle-alarm-dialog-content"
5082
5086
  },
5083
5087
  [
5084
- R(A(fs), {
5088
+ x(v(fs), {
5085
5089
  style: { width: "100%", height: "100%", "align-items": "center" },
5086
5090
  cols: 1,
5087
5091
  alignType: "horizontal"
5088
5092
  }, {
5089
- default: x(() => [
5090
- R(A(_e), {
5091
- label: A(Q)("处理类型").value,
5093
+ default: L(() => [
5094
+ x(v(_e), {
5095
+ label: v(Q)("处理类型").value,
5092
5096
  required: "",
5093
5097
  type: "select",
5094
5098
  modelValue: s.value.processTypeId,
5095
- "onUpdate:modelValue": I[0] || (I[0] = (P) => s.value.processTypeId = P),
5096
- options: y.value,
5099
+ "onUpdate:modelValue": E[0] || (E[0] = (B) => s.value.processTypeId = B),
5100
+ options: _.value,
5097
5101
  col: 1,
5098
5102
  optionsLabelKey: "name",
5099
5103
  optionsValueKey: "id",
@@ -5102,100 +5106,100 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5102
5106
  marginRight: "0",
5103
5107
  onChange: _r
5104
5108
  }, null, 8, ["label", "modelValue", "options"]),
5105
- s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), V(A(_e), {
5109
+ s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), V(v(_e), {
5106
5110
  key: 0,
5107
- label: A(Q)("告警原因").value,
5111
+ label: v(Q)("告警原因").value,
5108
5112
  required: s.value.processTypeId == "dealwith",
5109
5113
  type: "input",
5110
5114
  maxlength: "50",
5111
5115
  col: 1,
5112
- onFocus: I[1] || (I[1] = (P) => u.value.reason = ""),
5116
+ onFocus: E[1] || (E[1] = (B) => u.value.reason = ""),
5113
5117
  modelValue: s.value.reason,
5114
- "onUpdate:modelValue": I[2] || (I[2] = (P) => s.value.reason = P),
5118
+ "onUpdate:modelValue": E[2] || (E[2] = (B) => s.value.reason = B),
5115
5119
  error: u.value.reason,
5116
- "onUpdate:error": I[3] || (I[3] = (P) => u.value.reason = P),
5120
+ "onUpdate:error": E[3] || (E[3] = (B) => u.value.reason = B),
5117
5121
  marginBottom: "30px",
5118
5122
  marginRight: "0"
5119
- }, null, 8, ["label", "required", "modelValue", "error"])) : U("v-if", !0),
5120
- s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), V(A(_e), {
5123
+ }, null, 8, ["label", "required", "modelValue", "error"])) : N("v-if", !0),
5124
+ s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), V(v(_e), {
5121
5125
  key: 1,
5122
- label: A(Q)("处理方案").value,
5126
+ label: v(Q)("处理方案").value,
5123
5127
  required: s.value.processTypeId == "dealwith",
5124
5128
  type: "input",
5125
5129
  maxlength: "50",
5126
5130
  col: 1,
5127
- onFocus: I[4] || (I[4] = (P) => u.value.treatmentPlan = ""),
5131
+ onFocus: E[4] || (E[4] = (B) => u.value.treatmentPlan = ""),
5128
5132
  modelValue: s.value.treatmentPlan,
5129
- "onUpdate:modelValue": I[5] || (I[5] = (P) => s.value.treatmentPlan = P),
5133
+ "onUpdate:modelValue": E[5] || (E[5] = (B) => s.value.treatmentPlan = B),
5130
5134
  error: u.value.treatmentPlan,
5131
- "onUpdate:error": I[6] || (I[6] = (P) => u.value.treatmentPlan = P),
5135
+ "onUpdate:error": E[6] || (E[6] = (B) => u.value.treatmentPlan = B),
5132
5136
  marginBottom: "30px",
5133
5137
  marginRight: "0"
5134
- }, null, 8, ["label", "required", "modelValue", "error"])) : U("v-if", !0),
5135
- s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), V(A(_e), {
5138
+ }, null, 8, ["label", "required", "modelValue", "error"])) : N("v-if", !0),
5139
+ s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), V(v(_e), {
5136
5140
  key: 2,
5137
- label: A(Q)("备注").value,
5141
+ label: v(Q)("备注").value,
5138
5142
  type: "textarea",
5139
5143
  "show-word-limit": "",
5140
5144
  autosize: "",
5141
5145
  maxlength: "100",
5142
5146
  col: 1,
5143
5147
  modelValue: s.value.remarks,
5144
- "onUpdate:modelValue": I[7] || (I[7] = (P) => s.value.remarks = P),
5148
+ "onUpdate:modelValue": E[7] || (E[7] = (B) => s.value.remarks = B),
5145
5149
  marginBottom: "30px",
5146
5150
  marginRight: "0"
5147
- }, null, 8, ["label", "modelValue"])) : U("v-if", !0),
5148
- s.value.processTypeId == "createorder" ? (H(), V(A(_e), {
5151
+ }, null, 8, ["label", "modelValue"])) : N("v-if", !0),
5152
+ s.value.processTypeId == "createorder" ? (H(), V(v(_e), {
5149
5153
  key: 3,
5150
- label: A(Q)("报事位置").value,
5154
+ label: v(Q)("报事位置").value,
5151
5155
  required: "",
5152
5156
  type: "custom",
5153
5157
  error: u.value.reportPosition,
5154
- "onUpdate:error": I[13] || (I[13] = (P) => u.value.reportPosition = P),
5158
+ "onUpdate:error": E[13] || (E[13] = (B) => u.value.reportPosition = B),
5155
5159
  marginBottom: "20px",
5156
5160
  marginRight: "0"
5157
5161
  }, {
5158
- default: x(() => [
5162
+ default: L(() => [
5159
5163
  $("div", Ip, [
5160
5164
  $("div", Ep, [
5161
- R(A(ps), {
5165
+ x(v(ps), {
5162
5166
  borderType: "underline",
5163
5167
  props: { disabled: "_disabled", label: "name" },
5164
5168
  modelValue: s.value.reportPosition,
5165
- "onUpdate:modelValue": I[8] || (I[8] = (P) => s.value.reportPosition = P),
5166
- path: p.value,
5167
- "onUpdate:path": I[9] || (I[9] = (P) => p.value = P),
5168
- keyword: w.value,
5169
- "onUpdate:keyword": I[10] || (I[10] = (P) => w.value = P),
5169
+ "onUpdate:modelValue": E[8] || (E[8] = (B) => s.value.reportPosition = B),
5170
+ path: f.value,
5171
+ "onUpdate:path": E[9] || (E[9] = (B) => f.value = B),
5172
+ keyword: b.value,
5173
+ "onUpdate:keyword": E[10] || (E[10] = (B) => b.value = B),
5170
5174
  showFullPath: !0,
5171
- data: _.value,
5175
+ data: y.value,
5172
5176
  placeholder: d.value,
5173
- disabled: k.value,
5174
- load: E,
5175
- search: S,
5176
- onChange: Se,
5177
+ disabled: P.value,
5178
+ load: k,
5179
+ search: I,
5180
+ onChange: Te,
5177
5181
  filter: !0,
5178
5182
  allowClear: !0
5179
5183
  }, null, 8, ["modelValue", "path", "keyword", "data", "placeholder", "disabled"]),
5180
- R(A(Pn), {
5184
+ x(v(Pn), {
5181
5185
  ref: "testInput",
5182
5186
  modelValue: s.value.customPath,
5183
- "onUpdate:modelValue": I[11] || (I[11] = (P) => s.value.customPath = P),
5187
+ "onUpdate:modelValue": E[11] || (E[11] = (B) => s.value.customPath = B),
5184
5188
  placeholder: "选填",
5185
- disabled: k.value,
5189
+ disabled: P.value,
5186
5190
  maxlength: "20"
5187
5191
  }, null, 8, ["modelValue", "disabled"])
5188
5192
  ]),
5189
- R(A(Bn), {
5190
- modelValue: B.value,
5191
- "onUpdate:modelValue": I[12] || (I[12] = (P) => B.value = P),
5193
+ x(v(Bn), {
5194
+ modelValue: C.value,
5195
+ "onUpdate:modelValue": E[12] || (E[12] = (B) => C.value = B),
5192
5196
  checkboxType: "default",
5193
5197
  onChange: ft,
5194
5198
  size: "middle"
5195
5199
  }, {
5196
- default: x(() => [
5200
+ default: L(() => [
5197
5201
  ue(
5198
- Y(A(Q)("告警对象位置").value),
5202
+ Z(v(Q)("告警对象位置").value),
5199
5203
  1
5200
5204
  /* TEXT */
5201
5205
  )
@@ -5207,37 +5211,37 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5207
5211
  ]),
5208
5212
  _: 1
5209
5213
  /* STABLE */
5210
- }, 8, ["label", "error"])) : U("v-if", !0),
5211
- s.value.processTypeId == "createorder" ? (H(), V(A(_e), {
5214
+ }, 8, ["label", "error"])) : N("v-if", !0),
5215
+ s.value.processTypeId == "createorder" ? (H(), V(v(_e), {
5212
5216
  key: 4,
5213
- label: A(Q)("报事主题").value,
5217
+ label: v(Q)("报事主题").value,
5214
5218
  required: "",
5215
5219
  type: "custom",
5216
5220
  error: u.value.reportTheme,
5217
- "onUpdate:error": I[16] || (I[16] = (P) => u.value.reportTheme = P),
5221
+ "onUpdate:error": E[16] || (E[16] = (B) => u.value.reportTheme = B),
5218
5222
  marginBottom: "20px",
5219
5223
  marginRight: "0"
5220
5224
  }, {
5221
- default: x(() => [
5225
+ default: L(() => [
5222
5226
  $("div", Sp, [
5223
- R(A(Pn), {
5227
+ x(v(Pn), {
5224
5228
  maxlength: "20",
5225
- disabled: C.value,
5229
+ disabled: T.value,
5226
5230
  modelValue: s.value.reportTheme,
5227
- "onUpdate:modelValue": I[14] || (I[14] = (P) => s.value.reportTheme = P),
5231
+ "onUpdate:modelValue": E[14] || (E[14] = (B) => s.value.reportTheme = B),
5228
5232
  placeholder: m.value,
5229
5233
  onChange: ie
5230
5234
  }, null, 8, ["disabled", "modelValue", "placeholder"]),
5231
- R(A(Bn), {
5235
+ x(v(Bn), {
5232
5236
  modelValue: M.value,
5233
- "onUpdate:modelValue": I[15] || (I[15] = (P) => M.value = P),
5237
+ "onUpdate:modelValue": E[15] || (E[15] = (B) => M.value = B),
5234
5238
  checkboxType: "default",
5235
5239
  onChange: oe,
5236
5240
  size: "middle"
5237
5241
  }, {
5238
- default: x(() => [
5242
+ default: L(() => [
5239
5243
  ue(
5240
- Y(A(Q)("告警对象").value),
5244
+ Z(v(Q)("告警对象").value),
5241
5245
  1
5242
5246
  /* TEXT */
5243
5247
  )
@@ -5249,34 +5253,34 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5249
5253
  ]),
5250
5254
  _: 1
5251
5255
  /* STABLE */
5252
- }, 8, ["label", "error"])) : U("v-if", !0),
5253
- s.value.processTypeId == "createorder" ? (H(), V(A(_e), {
5256
+ }, 8, ["label", "error"])) : N("v-if", !0),
5257
+ s.value.processTypeId == "createorder" ? (H(), V(v(_e), {
5254
5258
  key: 5,
5255
- label: A(Q)("工单规则").value,
5259
+ label: v(Q)("工单规则").value,
5256
5260
  required: "",
5257
5261
  type: "select",
5258
5262
  modelValue: s.value.workOrderRules,
5259
- "onUpdate:modelValue": I[17] || (I[17] = (P) => s.value.workOrderRules = P),
5263
+ "onUpdate:modelValue": E[17] || (E[17] = (B) => s.value.workOrderRules = B),
5260
5264
  error: u.value.workOrderRules,
5261
- "onUpdate:error": I[18] || (I[18] = (P) => u.value.workOrderRules = P),
5262
- options: L.value,
5265
+ "onUpdate:error": E[18] || (E[18] = (B) => u.value.workOrderRules = B),
5266
+ options: R.value,
5263
5267
  col: 1,
5264
5268
  optionsLabelKey: "name",
5265
5269
  optionsValueKey: "id",
5266
5270
  "get-popup-container": W,
5267
5271
  marginBottom: "0px",
5268
5272
  marginRight: "0"
5269
- }, null, 8, ["label", "modelValue", "error", "options"])) : U("v-if", !0),
5270
- U(" createcontingency 生成应急事件 "),
5271
- s.value.processTypeId == "createcontingency" ? (H(), V(A(_e), {
5273
+ }, null, 8, ["label", "modelValue", "error", "options"])) : N("v-if", !0),
5274
+ N(" createcontingency 生成应急事件 "),
5275
+ s.value.processTypeId == "createcontingency" ? (H(), V(v(_e), {
5272
5276
  key: 6,
5273
- label: A(Q)("事件类型").value,
5277
+ label: v(Q)("事件类型").value,
5274
5278
  required: "",
5275
5279
  type: "select",
5276
5280
  modelValue: s.value.eventTypeId,
5277
- "onUpdate:modelValue": I[19] || (I[19] = (P) => s.value.eventTypeId = P),
5281
+ "onUpdate:modelValue": E[19] || (E[19] = (B) => s.value.eventTypeId = B),
5278
5282
  error: u.value.eventTypeId,
5279
- "onUpdate:error": I[20] || (I[20] = (P) => u.value.eventTypeId = P),
5283
+ "onUpdate:error": E[20] || (E[20] = (B) => u.value.eventTypeId = B),
5280
5284
  options: g.value,
5281
5285
  col: 1,
5282
5286
  optionsLabelKey: "typeName",
@@ -5284,64 +5288,64 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5284
5288
  "get-popup-container": W,
5285
5289
  marginBottom: "30px",
5286
5290
  marginRight: "0",
5287
- onChange: I[21] || (I[21] = (P) => Oe("eventTypeId"))
5288
- }, null, 8, ["label", "modelValue", "error", "options"])) : U("v-if", !0),
5289
- s.value.processTypeId == "createcontingency" ? (H(), V(A(_e), {
5291
+ onChange: E[21] || (E[21] = (B) => Oe("eventTypeId"))
5292
+ }, null, 8, ["label", "modelValue", "error", "options"])) : N("v-if", !0),
5293
+ s.value.processTypeId == "createcontingency" ? (H(), V(v(_e), {
5290
5294
  key: 7,
5291
- label: A(Q)("事件等级").value,
5295
+ label: v(Q)("事件等级").value,
5292
5296
  required: "",
5293
5297
  type: "select",
5294
5298
  modelValue: s.value.eventLevelId,
5295
- "onUpdate:modelValue": I[22] || (I[22] = (P) => s.value.eventLevelId = P),
5299
+ "onUpdate:modelValue": E[22] || (E[22] = (B) => s.value.eventLevelId = B),
5296
5300
  error: u.value.eventLevelId,
5297
- "onUpdate:error": I[23] || (I[23] = (P) => u.value.eventLevelId = P),
5298
- options: f.value,
5301
+ "onUpdate:error": E[23] || (E[23] = (B) => u.value.eventLevelId = B),
5302
+ options: p.value,
5299
5303
  col: 1,
5300
5304
  optionsLabelKey: "name",
5301
5305
  optionsValueKey: "id",
5302
5306
  "get-popup-container": W,
5303
5307
  marginBottom: "30px",
5304
5308
  marginRight: "0",
5305
- onChange: I[24] || (I[24] = (P) => Oe("eventLevelId"))
5306
- }, null, 8, ["label", "modelValue", "error", "options"])) : U("v-if", !0),
5307
- s.value.processTypeId == "createcontingency" ? (H(), V(A(_e), {
5309
+ onChange: E[24] || (E[24] = (B) => Oe("eventLevelId"))
5310
+ }, null, 8, ["label", "modelValue", "error", "options"])) : N("v-if", !0),
5311
+ s.value.processTypeId == "createcontingency" ? (H(), V(v(_e), {
5308
5312
  key: 8,
5309
- label: A(Q)("处置时限").value,
5313
+ label: v(Q)("处置时限").value,
5310
5314
  required: "",
5311
5315
  type: "input",
5312
5316
  maxlength: "3",
5313
5317
  col: 1,
5314
5318
  modelValue: s.value.timeLimit,
5315
- "onUpdate:modelValue": I[27] || (I[27] = (P) => s.value.timeLimit = P),
5319
+ "onUpdate:modelValue": E[27] || (E[27] = (B) => s.value.timeLimit = B),
5316
5320
  error: u.value.timeLimit,
5317
- "onUpdate:error": I[28] || (I[28] = (P) => u.value.timeLimit = P),
5321
+ "onUpdate:error": E[28] || (E[28] = (B) => u.value.timeLimit = B),
5318
5322
  disabled: s.value.interval == 3,
5319
5323
  marginBottom: "30px",
5320
5324
  marginRight: "0"
5321
5325
  }, {
5322
- default: x(() => [
5326
+ default: L(() => [
5323
5327
  $("div", Tp, [
5324
- R(A(ds), {
5328
+ x(v(ds), {
5325
5329
  class: "select",
5326
5330
  modelValue: s.value.interval,
5327
- "onUpdate:modelValue": I[25] || (I[25] = (P) => s.value.interval = P),
5331
+ "onUpdate:modelValue": E[25] || (E[25] = (B) => s.value.interval = B),
5328
5332
  width: "64px",
5329
5333
  fieldNames: {
5330
5334
  value: "id",
5331
5335
  label: "name"
5332
5336
  },
5333
- options: v.value,
5337
+ options: w.value,
5334
5338
  "border-type": "underline",
5335
5339
  size: "small",
5336
5340
  "get-popup-container": W,
5337
- onChange: I[26] || (I[26] = (P) => Oe("interval")),
5341
+ onChange: E[26] || (E[26] = (B) => Oe("interval")),
5338
5342
  placeholder: "请选择"
5339
5343
  }, null, 8, ["modelValue", "options"])
5340
5344
  ])
5341
5345
  ]),
5342
5346
  _: 1
5343
5347
  /* STABLE */
5344
- }, 8, ["label", "modelValue", "error", "disabled"])) : U("v-if", !0)
5348
+ }, 8, ["label", "modelValue", "error", "disabled"])) : N("v-if", !0)
5345
5349
  ]),
5346
5350
  _: 1
5347
5351
  /* STABLE */
@@ -5360,7 +5364,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5360
5364
  }, 8, ["modelValue"])
5361
5365
  ]));
5362
5366
  }
5363
- }), Op = /* @__PURE__ */ Ie(Bp, [["__scopeId", "data-v-a6a58a01"]]), Dp = (n, e, t) => ({
5367
+ }), Op = /* @__PURE__ */ Ee(Bp, [["__scopeId", "data-v-a6a58a01"]]), Dp = (n, e, t) => ({
5364
5368
  handleAlarmVue: () => he(Op, {
5365
5369
  handerIds: e.value,
5366
5370
  projectId: St().id,
@@ -5393,7 +5397,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5393
5397
  We,
5394
5398
  null,
5395
5399
  [
5396
- U(` <div class="alarm-msg" :style="{ 'border-color': msgItem.color }"> `),
5400
+ N(` <div class="alarm-msg" :style="{ 'border-color': msgItem.color }"> `),
5397
5401
  $("div", $p, [
5398
5402
  $("div", Mp, [
5399
5403
  $(
@@ -5404,13 +5408,13 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5404
5408
  },
5405
5409
  [
5406
5410
  $("div", Lp, [
5407
- U(` <div class="icon-box" :style="{ color: msgItem.color }">
5411
+ N(` <div class="icon-box" :style="{ color: msgItem.color }">
5408
5412
  !
5409
5413
  </div> `),
5410
5414
  $(
5411
5415
  "div",
5412
5416
  xp,
5413
- Y(A(Q)("新告警").value),
5417
+ Z(v(Q)("新告警").value),
5414
5418
  1
5415
5419
  /* TEXT */
5416
5420
  )
@@ -5425,7 +5429,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5425
5429
  $(
5426
5430
  "div",
5427
5431
  Hp,
5428
- Y(A(Q)("告警等级:").value),
5432
+ Z(v(Q)("告警等级:").value),
5429
5433
  1
5430
5434
  /* TEXT */
5431
5435
  ),
@@ -5435,7 +5439,7 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5435
5439
  class: "alarm-msg-line-right alarm-content-object",
5436
5440
  style: Sn({ color: a.msgItem.color })
5437
5441
  },
5438
- Y(a.msgItem.alarmLevelName || ""),
5442
+ Z(a.msgItem.alarmLevelName || ""),
5439
5443
  5
5440
5444
  /* TEXT, STYLE */
5441
5445
  )
@@ -5444,14 +5448,14 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5444
5448
  $(
5445
5449
  "div",
5446
5450
  Up,
5447
- Y(A(Q)("告警对象:").value),
5451
+ Z(v(Q)("告警对象:").value),
5448
5452
  1
5449
5453
  /* TEXT */
5450
5454
  ),
5451
5455
  $(
5452
5456
  "div",
5453
5457
  Fp,
5454
- Y(a.msgItem.equipmentName || ""),
5458
+ Z(a.msgItem.equipmentName || ""),
5455
5459
  1
5456
5460
  /* TEXT */
5457
5461
  )
@@ -5460,53 +5464,53 @@ const cp = je(`/api/tool/event-bus/${$t}/`), Ht = cp.post("/publish"), lp = tn.g
5460
5464
  $(
5461
5465
  "div",
5462
5466
  Wp,
5463
- Y(A(Q)("告警内容:").value),
5467
+ Z(v(Q)("告警内容:").value),
5464
5468
  1
5465
5469
  /* TEXT */
5466
5470
  ),
5467
5471
  $(
5468
5472
  "div",
5469
5473
  zp,
5470
- Y(a.msgItem.alarmContent || ""),
5474
+ Z(a.msgItem.alarmContent || ""),
5471
5475
  1
5472
5476
  /* TEXT */
5473
5477
  )
5474
5478
  ]),
5475
5479
  $("div", Vp, [
5476
- a.msgItem.equipmentCode && a.msgItem.equipmentPanelCode ? (H(), V(A(Te), {
5480
+ a.msgItem.equipmentCode && a.msgItem.equipmentPanelCode ? (H(), V(v(ke), {
5477
5481
  key: 0,
5478
5482
  block: "",
5479
5483
  onClick: ne(i, ["stop"]),
5480
5484
  btnType: "primary-text",
5481
5485
  size: "middle"
5482
5486
  }, {
5483
- default: x(() => [
5487
+ default: L(() => [
5484
5488
  ue(
5485
- Y(A(Q)("设备详情").value),
5489
+ Z(v(Q)("设备详情").value),
5486
5490
  1
5487
5491
  /* TEXT */
5488
5492
  )
5489
5493
  ]),
5490
5494
  _: 1
5491
5495
  /* STABLE */
5492
- })) : U("v-if", !0),
5493
- a.alarmhandle ? (H(), V(A(Te), {
5496
+ })) : N("v-if", !0),
5497
+ a.alarmhandle ? (H(), V(v(ke), {
5494
5498
  key: 1,
5495
5499
  block: "",
5496
5500
  btnType: "primary-text",
5497
5501
  onClick: ne(r, ["stop"]),
5498
5502
  size: "middle"
5499
5503
  }, {
5500
- default: x(() => [
5504
+ default: L(() => [
5501
5505
  ue(
5502
- Y(A(Q)("处理").value),
5506
+ Z(v(Q)("处理").value),
5503
5507
  1
5504
5508
  /* TEXT */
5505
5509
  )
5506
5510
  ]),
5507
5511
  _: 1
5508
5512
  /* STABLE */
5509
- })) : U("v-if", !0)
5513
+ })) : N("v-if", !0)
5510
5514
  ])
5511
5515
  ])
5512
5516
  ])
@@ -5526,7 +5530,7 @@ let Gp = (n = 21) => {
5526
5530
  return e;
5527
5531
  };
5528
5532
  const Xp = () => {
5529
- const n = T(null), e = T(0), t = T(null), o = T(null), r = T([]), i = T([]), a = T(!1), l = T(!1), c = T(!1), s = T({
5533
+ const n = S(null), e = S(0), t = S(null), o = S(null), r = S([]), i = S([]), a = S(!1), l = S(!1), c = S(!1), s = S({
5530
5534
  playId: "",
5531
5535
  // 播放的告警的recordId
5532
5536
  playPath: "",
@@ -5542,107 +5546,107 @@ const Xp = () => {
5542
5546
  loop: !1
5543
5547
  // 轮播-无限次播放
5544
5548
  });
5545
- X.addEventListenerFromMicroApp("alarm:change-alarmconfig", (S) => {
5546
- const { isRealTimeAlarm: C, audioPlay: M } = S.data;
5547
- C != null && (l.value = C), M != null && (c.value = M, c.value || w());
5549
+ te.addEventListenerFromMicroApp("alarm:change-alarmconfig", (I) => {
5550
+ const { isRealTimeAlarm: T, audioPlay: M } = I.data;
5551
+ T != null && (l.value = T), M != null && (c.value = M, c.value || b());
5548
5552
  });
5549
- const u = (S) => {
5553
+ const u = (I) => {
5550
5554
  var M;
5551
- const C = [];
5552
- C.push({ alarmId: S.recordId }), r.value = C, (M = t.value) == null || M.open();
5553
- }, { entryApp: b } = bt.hooks.useEntryApp(), g = (S) => {
5554
- ko(S.equipmentCode, S.equipmentPanelCode);
5555
- }, { handleAlarmVue: f } = Dp(t, r), v = async () => {
5555
+ const T = [];
5556
+ T.push({ alarmId: I.recordId }), r.value = T, (M = t.value) == null || M.open();
5557
+ }, { entryApp: A } = bt.hooks.useEntryApp(), g = (I) => {
5558
+ ko(I.equipmentCode, I.equipmentPanelCode);
5559
+ }, { handleAlarmVue: p } = Dp(t, r), w = async () => {
5556
5560
  var M;
5557
- const C = (((M = F().appcategorys) == null ? void 0 : M.map((L) => L.apps).flat()) ?? []).find((L) => L.code === "alarm");
5558
- C && b({ microApp: C, menuPath: `/${C.routeUrl}/realTimeAlarm` });
5559
- }, y = [], p = (S) => {
5560
- if (y.push(S), i.value.length < 2) {
5561
- d(y[0]), y.shift();
5561
+ const T = (((M = F().appcategorys) == null ? void 0 : M.map((R) => R.apps).flat()) ?? []).find((R) => R.code === "alarm");
5562
+ T && A({ microApp: T, menuPath: `/${T.routeUrl}/realTimeAlarm` });
5563
+ }, _ = [], f = (I) => {
5564
+ if (_.push(I), i.value.length < 2) {
5565
+ d(_[0]), _.shift();
5562
5566
  return;
5563
5567
  }
5564
- }, d = (S) => {
5565
- if (!S) return;
5566
- const C = Gp();
5568
+ }, d = (I) => {
5569
+ if (!I) return;
5570
+ const T = Gp();
5567
5571
  yt.open({
5568
- key: C,
5572
+ key: T,
5569
5573
  class: "alarm-notify",
5570
5574
  message: Q("新告警").value,
5571
5575
  placement: "bottomRight",
5572
5576
  description: he(Kp, {
5573
- msgItem: S,
5577
+ msgItem: I,
5574
5578
  alarmhandle: a.value,
5575
5579
  onHanderDetail: g,
5576
5580
  onHanderFn: u
5577
5581
  }),
5578
5582
  duration: 5,
5579
5583
  onClick: () => {
5580
- v();
5584
+ w();
5581
5585
  },
5582
5586
  onClose: () => {
5583
5587
  setTimeout(() => {
5584
- const M = i.value.findIndex((L) => L == C);
5585
- if (M >= 0 && i.value.splice(M, 1), i.value.length < 2 && y.length) {
5586
- d(y[0]), y.shift();
5588
+ const M = i.value.findIndex((R) => R == T);
5589
+ if (M >= 0 && i.value.splice(M, 1), i.value.length < 2 && _.length) {
5590
+ d(_[0]), _.shift();
5587
5591
  return;
5588
5592
  }
5589
5593
  }, 300);
5590
5594
  }
5591
- }), i.value.includes(C) || i.value.push(C), m(S);
5592
- }, m = (S) => {
5593
- if (S) {
5595
+ }), i.value.includes(T) || i.value.push(T), m(I);
5596
+ }, m = (I) => {
5597
+ if (I) {
5594
5598
  if (!c.value) {
5595
- w();
5599
+ b();
5596
5600
  return;
5597
5601
  }
5598
- if (!S.coverId) {
5602
+ if (!I.coverId) {
5599
5603
  if (s.value.playLine === null) {
5600
- w(), Number(S.noticeNum) != 0 && _(S);
5604
+ b(), Number(I.noticeNum) != 0 && y(I);
5601
5605
  return;
5602
5606
  }
5603
- Number(S.alarmLevelId) < s.value.playLine && (w(), Number(S.noticeNum) != 0 && _(S));
5607
+ Number(I.alarmLevelId) < s.value.playLine && (b(), Number(I.noticeNum) != 0 && y(I));
5604
5608
  }
5605
5609
  }
5606
- }, _ = (S) => {
5607
- const C = Number(S.noticeNum), M = location.origin + "/oss";
5608
- s.value.isplay && s.value.playId == S.recordId ? w() : (C < 0 ? s.value.loop = !0 : s.value.loop = !1, C > 0 ? (s.value.loopTotalCount = Number(S.noticeNum), s.value.loopCount = 0) : (s.value.loopTotalCount = 0, s.value.loopCount = 0), s.value.isplay = !0, s.value.playId = S.recordId, s.value.playLine = Number(S.alarmLevelId), s.value.playPath = M + S.noticePath, k());
5609
- }, w = () => {
5610
+ }, y = (I) => {
5611
+ const T = Number(I.noticeNum), M = location.origin + "/oss";
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());
5613
+ }, b = () => {
5610
5614
  s.value.playId = "", s.value.playPath = "", s.value.playLine = null, s.value.loopCount = 0, s.value.loopTotalCount = 0, s.value.isplay = !1, s.value.loop = !1;
5611
- }, k = () => {
5615
+ }, P = () => {
5612
5616
  o.value.onended = function() {
5613
5617
  s.value.loopCount = s.value.loopCount + 1, s.value.loopTotalCount && s.value.loopTotalCount && (s.value.loopCount == s.value.loopTotalCount ? (s.value.playPath = "", s.value.isplay = !1, s.value.playId = "", s.value.loopTotalCount = 0, s.value.loopCount = 0, s.value.playLine = null) : o.value.play());
5614
5618
  };
5615
- }, B = async () => {
5616
- const [S, C] = await Ap().run();
5617
- S || (c.value = C.isEnable);
5619
+ }, C = async () => {
5620
+ const [I, T] = await Ap().run();
5621
+ I || (c.value = T.isEnable);
5618
5622
  };
5619
5623
  return {
5620
5624
  alarmSocket: n,
5621
5625
  alarmCount: e,
5622
5626
  audioObj: s,
5623
5627
  audioAlarmRef: o,
5624
- handleAlarmVue: f,
5628
+ handleAlarmVue: p,
5625
5629
  creatAlarmSocket: async () => {
5626
- B();
5627
- const [S, C] = await pp().run({
5630
+ C();
5631
+ const [I, T] = await pp().run({
5628
5632
  code: "alarm",
5629
5633
  showBtn: !0
5630
5634
  });
5631
- if (S || !C || !C.length) return;
5635
+ if (I || !T || !T.length) return;
5632
5636
  let M = !1;
5633
- C.forEach((L) => {
5634
- L.code === "alarm.realTimeAlarm" && (M = !0, L.children && L.children.length ? L.children.forEach((N) => {
5635
- N.code == "alarm.realTimeAlarm.handle" ? a.value = !0 : a.value = !1;
5637
+ T.forEach((R) => {
5638
+ R.code === "alarm.realTimeAlarm" && (M = !0, R.children && R.children.length ? R.children.forEach((U) => {
5639
+ U.code == "alarm.realTimeAlarm.handle" ? a.value = !0 : a.value = !1;
5636
5640
  }) : a.value = !1);
5637
5641
  }), M && (n.value = new an({
5638
5642
  url: "/api/alarm/socket/v1/record/subscribe",
5639
5643
  reconnectWhenClose: !0,
5640
5644
  opened: () => {
5641
- const L = Pe().id;
5642
- L && n.value.send(L);
5645
+ const R = Pe().id;
5646
+ R && n.value.send(R);
5643
5647
  },
5644
- message: async (L) => {
5645
- X.sendMessageToMicroApp("enterpriseadmin/alarm", "alarmmessage", { alarmMessage: L }), L.messageType === "ADD" && (e.value = e.value + 1, L.coverId || p(L)), L.messageType === "DELETE" && (e.value = e.value - 1, s.value.playId == L.recordId && w());
5648
+ message: async (R) => {
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()));
5646
5650
  }
5647
5651
  }));
5648
5652
  }
@@ -5659,14 +5663,14 @@ const Xp = () => {
5659
5663
  We,
5660
5664
  null,
5661
5665
  [
5662
- R(A(i)),
5666
+ x(v(i)),
5663
5667
  $("audio", {
5664
- src: A(o).playPath,
5668
+ src: v(o).playPath,
5665
5669
  class: "audio-alarm-level",
5666
5670
  ref_key: "audioAlarmRef",
5667
5671
  ref: r,
5668
- muted: !A(o).isplay,
5669
- loop: A(o).loop,
5672
+ muted: !v(o).isplay,
5673
+ loop: v(o).loop,
5670
5674
  autoplay: ""
5671
5675
  }, null, 8, Zp)
5672
5676
  ],
@@ -5677,36 +5681,36 @@ const Xp = () => {
5677
5681
  }), ef = { class: "das-main-app-container" }, tf = /* @__PURE__ */ pe({
5678
5682
  __name: "index",
5679
5683
  setup(n) {
5680
- const { isFullscreen: e } = lt(), t = Ce(() => !e.value), o = Ce(() => te.excludeRoutes), r = Ce(() => te.routeKeepAliveVisible), i = Ce(() => ({ mode: Ct.value === 1 ? "vertical" : "inline" })), { initNextTick: a } = yu(), { innerPage: l, commandList: c, initNextTick: s } = _u(a);
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);
5681
5685
  Su(l, a, s), Eu(), Cu(), Bu();
5682
- const { $changePwd: u, $personSetDialog: b } = Tu(), { changeEnterprisesVisible: g, userId: f, tenantId: v, changeEnterprise: y } = fr();
5686
+ const { $changePwd: u, $personSetDialog: A } = Tu(), { changeEnterprisesVisible: g, userId: p, tenantId: w, changeEnterprise: _ } = fr();
5683
5687
  wu();
5684
- const { fontColor: p, backgroudColor: d, borderColor: m } = Iu();
5685
- return Ru(), Qu(c), ju(), Nu(), yd(), up(), (_, w) => (H(), de("div", ef, [
5686
- R(A(Os), { platformInitNextTick: A(a) }, {
5687
- default: x(() => [
5688
- R(gs, {
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) }, {
5691
+ default: L(() => [
5692
+ x(gs, {
5689
5693
  showLayout: t.value,
5690
5694
  excludeRoutes: o.value,
5691
5695
  routeKeepAliveVisible: r.value,
5692
- tabsAttr: { fontColor: A(p), backgroudColor: A(d), borderColor: A(m) },
5696
+ tabsAttr: { fontColor: v(f), backgroudColor: v(d), borderColor: v(m) },
5693
5697
  menuAttr: i.value
5694
5698
  }, null, 8, ["showLayout", "excludeRoutes", "routeKeepAliveVisible", "tabsAttr", "menuAttr"])
5695
5699
  ]),
5696
5700
  _: 1
5697
5701
  /* STABLE */
5698
5702
  }, 8, ["platformInitNextTick"]),
5699
- U(" 切换租户 "),
5700
- R(A(Nr), {
5701
- visible: A(g),
5702
- "onUpdate:visible": w[0] || (w[0] = (k) => Mr(g) ? g.value = k : null),
5703
- userId: A(f),
5704
- tenantId: A(v),
5705
- onConfirm: A(y)
5703
+ N(" 切换租户 "),
5704
+ x(v(Nr), {
5705
+ visible: v(g),
5706
+ "onUpdate:visible": b[0] || (b[0] = (P) => Mr(g) ? g.value = P : null),
5707
+ userId: v(p),
5708
+ tenantId: v(w),
5709
+ onConfirm: v(_)
5706
5710
  }, null, 8, ["visible", "userId", "tenantId", "onConfirm"]),
5707
- U(" 修改密码 "),
5708
- R(
5709
- A(Hr),
5711
+ N(" 修改密码 "),
5712
+ x(
5713
+ v(Hr),
5710
5714
  {
5711
5715
  ref_key: "$changePwd",
5712
5716
  ref: u
@@ -5715,35 +5719,35 @@ const Xp = () => {
5715
5719
  512
5716
5720
  /* NEED_PATCH */
5717
5721
  ),
5718
- U(" 个性化设置 "),
5719
- R(
5720
- A(Au),
5722
+ N(" 个性化设置 "),
5723
+ x(
5724
+ v(Au),
5721
5725
  {
5722
5726
  ref_key: "$personSetDialog",
5723
- ref: b
5727
+ ref: A
5724
5728
  },
5725
5729
  null,
5726
5730
  512
5727
5731
  /* NEED_PATCH */
5728
5732
  ),
5729
- U(" 告警 "),
5730
- R(A(Yp))
5733
+ N(" 告警 "),
5734
+ x(v(Yp))
5731
5735
  ]));
5732
5736
  }
5733
- }), nf = /* @__PURE__ */ Ie(tf, [["__scopeId", "data-v-6e85c13f"]]);
5734
- T("@das-fed/web");
5737
+ }), nf = /* @__PURE__ */ Ee(tf, [["__scopeId", "data-v-6e85c13f"]]);
5738
+ S("@das-fed/web");
5735
5739
  const of = [
5736
5740
  {
5737
- path: ke,
5738
- component: () => import("./index-DOTMbc-l.js")
5741
+ path: Ie,
5742
+ component: () => import("./index-E1pACiHI.js")
5739
5743
  },
5740
5744
  {
5741
5745
  path: Je,
5742
- component: () => import("./index-Bnb7HNMb.js")
5746
+ component: () => import("./index-CfM1liO6.js")
5743
5747
  },
5744
5748
  {
5745
5749
  path: Do,
5746
- component: () => import("./index-CBrBve1k.js")
5750
+ component: () => import("./index-Bcz8SW2I.js")
5747
5751
  }
5748
5752
  ], qf = {
5749
5753
  routes: of,
@@ -5758,13 +5762,13 @@ const of = [
5758
5762
  };
5759
5763
  export {
5760
5764
  Je as I,
5761
- Ie as _,
5765
+ Ee as _,
5762
5766
  io as a,
5763
5767
  ao as b,
5764
5768
  qe as c,
5765
5769
  Wt as d,
5766
5770
  At as e,
5767
- te as l,
5771
+ ee as l,
5768
5772
  qf as m,
5769
5773
  et as u
5770
5774
  };