@das-fed/web 6.4.0-dev.23 → 6.4.0-dev.24

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 v, mergeProps as Ir, withCtx as x, renderSlot as $e, createVNode as M, getCurrentScope as Er, onScopeDispose as Sr, getCurrentInstance as Tr, onMounted as Qe, nextTick as Fe, ref as E, watch as oe, reactive as yo, createElementVNode as L, createTextVNode as le, createElementBlock as de, Fragment as We, renderList as _o, withDirectives as kr, toDisplayString as Z, createCommentVNode as U, h as he, render as vt, onBeforeUnmount as Et, useCssVars as Pr, normalizeClass as Br, withModifiers as te, toRefs as Or, normalizeStyle as Sn, isRef as Dr } from "vue";
1
+ import { defineComponent as pe, computed as Ce, openBlock as N, createBlock as V, unref as v, mergeProps as Ir, withCtx as M, renderSlot as $e, createVNode as R, getCurrentScope as Er, onScopeDispose as Sr, getCurrentInstance as Tr, onMounted as Qe, nextTick as Fe, ref as E, watch as oe, reactive as yo, createElementVNode as x, createTextVNode as le, createElementBlock as de, Fragment as We, renderList as _o, withDirectives as kr, toDisplayString as Z, createCommentVNode as U, h as he, render as vt, onBeforeUnmount as Et, useCssVars as Pr, normalizeClass as Br, withModifiers as te, toRefs as Or, normalizeStyle as Sn, isRef as Dr } from "vue";
2
2
  import { i18n as Q } from "@das-fed/web/packages/i18n/index";
3
3
  import { DasWebLayout as $r, DasWebNav as Lr, DasWebMenu as xr, DasWebTabs as Mr, layout as D } from "@das-fed/web/packages/layout/index";
4
4
  import { DasChangePwdRef as Rr, DasChangePwd as Qr } from "@das-fed/ui/packages/business-components/change-pwd/index";
@@ -6,7 +6,7 @@ import { DasChangeEnterprises as jr } from "@das-fed/ui/packages/business-compon
6
6
  import { pureImageSrc as Xt } from "@das-fed/utils/pure-image-src";
7
7
  import { DasNotification as yt } from "@das-fed/ui/packages/components/notification/index";
8
8
  import { flatTree as ye, filterTreeArray as Hr, isEmpty as Nr, treeFind as Tn, updateFavIcon as Ur, dateFormat as Fr, runPromiseByQueue as Jr, objEqual as Nt, setShowWatermark as Ut, setShowLayout as Ft, getUrlParams as Wr, withToken as zr } from "@das-fed/utils/common-tools";
9
- import { getSubApps as F, getTabInfo as ae, getPersonalInfo as St, getTenantInfo as Zt, getProjectInfo as Pe, getToken as Yt, getUserInfo as bo, getMenus as _t } from "@das-fed/utils/common-info";
9
+ import { getSubApps as J, getTabInfo as ae, getPersonalInfo as St, getTenantInfo as Zt, getProjectInfo as Pe, getToken as Yt, getUserInfo as bo, getMenus as _t } from "@das-fed/utils/common-info";
10
10
  import { setProcessEngineProject as wo, setProcessEngineToken as Co } from "@das-fed/utils/process-engine-info";
11
11
  import { oauthServer as Io, justauth as en, enterpriseright as tn, iotModules as Vr, portal as Be, systemConfiguration as nn } from "@das-fed/utils/api-services/modules";
12
12
  import { createService as je } from "@das-fed/utils/create-api-service";
@@ -71,23 +71,23 @@ const nt = "/", Ie = "/application", Po = [
71
71
  excludeRoutes: e.excludeRoutes,
72
72
  routeKeepAliveVisible: e.routeKeepAliveVisible
73
73
  }));
74
- return (r, i) => (H(), V(v($r), Ir({ "transition-config": t.value }, o.value), {
75
- header: x(() => [
74
+ return (r, s) => (N(), V(v($r), Ir({ "transition-config": t.value }, o.value), {
75
+ header: M(() => [
76
76
  $e(r.$slots, "header", {}, () => [
77
- M(v(Lr))
77
+ R(v(Lr))
78
78
  ])
79
79
  ]),
80
- aside: x(() => [
80
+ aside: M(() => [
81
81
  $e(r.$slots, "aside", {}, () => [
82
- M(v(xr), { menuAttr: r.menuAttr }, null, 8, ["menuAttr"])
82
+ R(v(xr), { menuAttr: r.menuAttr }, null, 8, ["menuAttr"])
83
83
  ])
84
84
  ]),
85
- tab: x(() => [
85
+ tab: M(() => [
86
86
  $e(r.$slots, "tab", {}, () => [
87
- M(v(Mr), { tabsAttr: r.tabsAttr }, null, 8, ["tabsAttr"])
87
+ R(v(Mr), { tabsAttr: r.tabsAttr }, null, 8, ["tabsAttr"])
88
88
  ])
89
89
  ]),
90
- banner: x(() => [
90
+ banner: M(() => [
91
91
  $e(r.$slots, "banner")
92
92
  ]),
93
93
  _: 3
@@ -122,14 +122,14 @@ function _s(...n) {
122
122
  if (hs(n[0]) || Array.isArray(n[0]) ? ([t, o, r] = n, e = vs) : [e, t, o, r] = n, !e)
123
123
  return gs;
124
124
  Array.isArray(t) || (t = [t]), Array.isArray(o) || (o = [o]);
125
- const i = [], a = () => {
126
- i.forEach((u) => u()), i.length = 0;
127
- }, l = (u, m, A, f) => (u.addEventListener(m, A, f), () => u.removeEventListener(m, A, f)), c = oe(() => [$o(e), Oo(r)], ([u, m]) => {
128
- a(), u && i.push(...t.flatMap((A) => o.map((f) => l(u, A, f, m))));
129
- }, { immediate: !0, flush: "post" }), s = () => {
125
+ const s = [], a = () => {
126
+ s.forEach((u) => u()), s.length = 0;
127
+ }, l = (u, A, p, h) => (u.addEventListener(A, p, h), () => u.removeEventListener(A, p, h)), c = oe(() => [$o(e), Oo(r)], ([u, A]) => {
128
+ a(), u && s.push(...t.flatMap((p) => o.map((h) => l(u, p, h, A))));
129
+ }, { immediate: !0, flush: "post" }), i = () => {
130
130
  c(), a();
131
131
  };
132
- return Do(s), s;
132
+ return Do(i), i;
133
133
  }
134
134
  function bs(n, e = !1) {
135
135
  const t = E(), o = () => t.value = !!n();
@@ -180,7 +180,7 @@ const Ln = [
180
180
  ]
181
181
  ];
182
182
  function lt(n, e = {}) {
183
- const { document: t = ys, autoExit: o = !1 } = e, r = n || (t == null ? void 0 : t.querySelector("html")), i = E(!1);
183
+ const { document: t = ys, autoExit: o = !1 } = e, r = n || (t == null ? void 0 : t.querySelector("html")), s = E(!1);
184
184
  let a = Ln[0];
185
185
  const l = bs(() => {
186
186
  if (t) {
@@ -190,27 +190,27 @@ function lt(n, e = {}) {
190
190
  } else
191
191
  return !1;
192
192
  return !1;
193
- }), [c, s, u, , m] = a;
194
- async function A() {
195
- l.value && (t != null && t[u] && await t[s](), i.value = !1);
193
+ }), [c, i, u, , A] = a;
194
+ async function p() {
195
+ l.value && (t != null && t[u] && await t[i](), s.value = !1);
196
196
  }
197
- async function f() {
197
+ async function h() {
198
198
  if (!l.value)
199
199
  return;
200
- await A();
200
+ await p();
201
201
  const b = $o(r);
202
- b && (await b[c](), i.value = !0);
202
+ b && (await b[c](), s.value = !0);
203
203
  }
204
204
  async function S() {
205
- i.value ? await A() : await f();
205
+ s.value ? await p() : await h();
206
206
  }
207
- return t && _s(t, m, () => {
208
- i.value = !!(t != null && t[u]);
209
- }, !1), o && Do(A), {
207
+ return t && _s(t, A, () => {
208
+ s.value = !!(t != null && t[u]);
209
+ }, !1), o && Do(p), {
210
210
  isSupported: l,
211
- isFullscreen: i,
212
- enter: f,
213
- exit: A,
211
+ isFullscreen: s,
212
+ enter: h,
213
+ exit: p,
214
214
  toggle: S
215
215
  };
216
216
  }
@@ -261,67 +261,67 @@ const Ts = Kr.get("watermark"), ks = /* @__PURE__ */ pe({
261
261
  platformInitNextTick: {}
262
262
  },
263
263
  setup(n) {
264
- const e = n, t = E({}), o = E(120), r = E(64), i = E([]), a = E([]), l = yo({
264
+ const e = n, t = E({}), o = E(120), r = E(64), s = E([]), a = E([]), l = yo({
265
265
  color: "rgba(0,0,0,.15)",
266
266
  fontSize: 16
267
- }), c = (b, p) => {
267
+ }), c = (b, f) => {
268
268
  const d = document.createElement("span");
269
- d.innerHTML = b, d.style.fontSize = p + "px", d.style.fontFamily = "sans-serif", d.style.visibility = "hidden", document.body.appendChild(d);
270
- const g = d.getBoundingClientRect();
271
- o.value = Math.ceil(g.width) + p / 2, r.value = Math.ceil(g.height), document.body.removeChild(d);
272
- }, s = E(!1), u = () => new Promise((b) => {
273
- const p = () => {
274
- if (s) return b(!0);
275
- setTimeout(() => p(), 50);
269
+ d.innerHTML = b, d.style.fontSize = f + "px", d.style.fontFamily = "sans-serif", d.style.visibility = "hidden", document.body.appendChild(d);
270
+ const m = d.getBoundingClientRect();
271
+ o.value = Math.ceil(m.width) + f / 2, r.value = Math.ceil(m.height), document.body.removeChild(d);
272
+ }, i = E(!1), u = () => new Promise((b) => {
273
+ const f = () => {
274
+ if (i) return b(!0);
275
+ setTimeout(() => f(), 50);
276
276
  };
277
- p();
278
- }), m = async (b) => {
277
+ f();
278
+ }), A = async (b) => {
279
279
  var d;
280
280
  await u();
281
- const p = !!((d = t.value) != null && d.pageSwith);
282
- a.value = b && p ? [...i.value] : [];
283
- }, A = async () => {
284
- var g, _, y, k, w, P, C;
285
- s.value = !0, await (e == null ? void 0 : e.platformInitNextTick());
286
- const [b, p] = await Ts().run();
281
+ const f = !!((d = t.value) != null && d.pageSwith);
282
+ a.value = b && f ? [...s.value] : [];
283
+ }, p = async () => {
284
+ var m, y, _, T, B, L, w;
285
+ i.value = !0, await (e == null ? void 0 : e.platformInitNextTick());
286
+ const [b, f] = await Ts().run();
287
287
  if (b) return null;
288
- if (t.value = p, !!((g = t.value) != null && g.pageSwith)) {
289
- i.value = [];
290
- const { name: T, phone: R } = await ss();
288
+ if (t.value = f, !!((m = t.value) != null && m.pageSwith)) {
289
+ s.value = [];
290
+ const { name: C, phone: P } = await ss();
291
291
  let $ = "";
292
- if ((_ = t.value) != null && _.nameSwith && T && (i.value.push(T), $ = $ + `${T} `), (y = t.value) != null && y.phoneSwith && R) {
293
- const N = R.slice(-4);
294
- i.value.push(N), $ = $ + `${N} `;
292
+ if ((y = t.value) != null && y.nameSwith && C && (s.value.push(C), $ = $ + `${C} `), (_ = t.value) != null && _.phoneSwith && P) {
293
+ const H = P.slice(-4);
294
+ s.value.push(H), $ = $ + `${H} `;
295
295
  }
296
- if ((k = t.value) != null && k.textSwith && ((w = t.value) != null && w.text)) {
297
- i.value.push(t.value.text);
298
- const N = t.value.text.replaceAll(`
296
+ if ((T = t.value) != null && T.textSwith && ((B = t.value) != null && B.text)) {
297
+ s.value.push(t.value.text);
298
+ const H = t.value.text.replaceAll(`
299
299
  `, "<br/>");
300
- $ = $ + `${N}`;
300
+ $ = $ + `${H}`;
301
301
  }
302
- i.value.length && (i.value = i.value.join(" ").split(`
303
- `)), 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($, l.fontSize);
302
+ s.value.length && (s.value = s.value.join(" ").split(`
303
+ `)), l.color = (L = t.value) != null && L.textColor ? t.value.textColor : "rgba(0,0,0,.15)", l.fontSize = (w = t.value) != null && w.textSize ? parseInt(t.value.textSize) : 16, c($, l.fontSize);
304
304
  }
305
- return s.value = !1, p;
305
+ return i.value = !1, f;
306
306
  };
307
- A();
308
- const f = Ge(), S = on();
307
+ p();
308
+ const h = Ge(), S = on();
309
309
  return oe(
310
- () => f.currentRoute.value,
310
+ () => h.currentRoute.value,
311
311
  (b) => {
312
- var _, y, k;
313
- const p = !!((_ = t.value) != null && _.pageSwith), d = ((y = b.meta) == null ? void 0 : y.showWatermark) ?? !0;
314
- let g = ((k = b.query) == null ? void 0 : k.showWatermark) ?? !0;
315
- g === "false" && (g = !1), m(p && !!(d && g));
312
+ var y, _, T;
313
+ const f = !!((y = t.value) != null && y.pageSwith), d = ((_ = b.meta) == null ? void 0 : _.showWatermark) ?? !0;
314
+ let m = ((T = b.query) == null ? void 0 : T.showWatermark) ?? !0;
315
+ m === "false" && (m = !1), A(f && !!(d && m));
316
316
  },
317
317
  { immediate: !0 }
318
318
  ), ue.addEventListenerFromMicroApp("systemconfig:watermark-change", async () => {
319
- var d, g;
320
- await A();
319
+ var d, m;
320
+ await p();
321
321
  const b = !!((d = t.value) != null && d.pageSwith);
322
- let p = ((g = S.query) == null ? void 0 : g.showWatermark) ?? !0;
323
- p === "false" && (p = !1), m(!!(b && p));
324
- }), (b, p) => (H(), V(v(as), {
322
+ let f = ((m = S.query) == null ? void 0 : m.showWatermark) ?? !0;
323
+ f === "false" && (f = !1), A(!!(b && f));
324
+ }), (b, f) => (N(), V(v(as), {
325
325
  class: "watermark",
326
326
  font: l,
327
327
  zIndex: 2147483647,
@@ -329,7 +329,7 @@ const Ts = Kr.get("watermark"), ks = /* @__PURE__ */ pe({
329
329
  width: o.value,
330
330
  height: r.value
331
331
  }, {
332
- default: x(() => [
332
+ default: M(() => [
333
333
  $e(b.$slots, "default", {}, void 0, !0)
334
334
  ]),
335
335
  _: 3
@@ -355,7 +355,7 @@ const Ts = Kr.get("watermark"), ks = /* @__PURE__ */ pe({
355
355
  },
356
356
  setup(n) {
357
357
  const e = E(!0);
358
- return (t, o) => (H(), V(v(sn), {
358
+ return (t, o) => (N(), V(v(sn), {
359
359
  modelValue: e.value,
360
360
  "onUpdate:modelValue": o[0] || (o[0] = (r) => e.value = r),
361
361
  type: "feedback",
@@ -366,14 +366,14 @@ const Ts = Kr.get("watermark"), ks = /* @__PURE__ */ pe({
366
366
  "custom-class": "menu-tip-diaolg",
367
367
  onClosed: t.closeCallback
368
368
  }, {
369
- footer: x(() => [
370
- L("div", Ds, [
371
- M(v(ke), {
369
+ footer: M(() => [
370
+ x("div", Ds, [
371
+ R(v(ke), {
372
372
  btnType: "default",
373
373
  size: "small",
374
374
  onClick: t.closeCallback
375
375
  }, {
376
- default: x(() => o[2] || (o[2] = [
376
+ default: M(() => o[2] || (o[2] = [
377
377
  le("我知道了")
378
378
  ])),
379
379
  _: 1
@@ -381,27 +381,27 @@ const Ts = Kr.get("watermark"), ks = /* @__PURE__ */ pe({
381
381
  }, 8, ["onClick"])
382
382
  ])
383
383
  ]),
384
- default: x(() => [
385
- L("div", {
384
+ default: M(() => [
385
+ x("div", {
386
386
  class: "content",
387
387
  innerHTML: t.content
388
388
  }, null, 8, Os),
389
- t.desc && t.desc.length ? (H(), de(
389
+ t.desc && t.desc.length ? (N(), de(
390
390
  We,
391
391
  { key: 0 },
392
392
  [
393
- o[1] || (o[1] = L(
393
+ o[1] || (o[1] = x(
394
394
  "div",
395
395
  { class: "divide" },
396
396
  null,
397
397
  -1
398
398
  /* HOISTED */
399
399
  )),
400
- (H(!0), de(
400
+ (N(!0), de(
401
401
  We,
402
402
  null,
403
- _o(t.desc, (r, i) => kr((H(), de("div", {
404
- key: i,
403
+ _o(t.desc, (r, s) => kr((N(), de("div", {
404
+ key: s,
405
405
  class: "desc-item"
406
406
  }, [
407
407
  le(
@@ -462,8 +462,8 @@ const xs = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
462
462
  if (Array.isArray(t.value))
463
463
  e.tabMap[r] = t.value;
464
464
  else if ((o = e.tabMap[r]) != null && o.length) {
465
- const i = e.tabMap[r].findIndex((a) => a.code === t.value.code);
466
- i !== -1 ? e.tabMap[r].splice(i, 1, t.value) : e.tabMap[r].push(t.value);
465
+ const s = e.tabMap[r].findIndex((a) => a.code === t.value.code);
466
+ s !== -1 ? e.tabMap[r].splice(s, 1, t.value) : e.tabMap[r].push(t.value);
467
467
  } else
468
468
  e.tabMap[r] = [t.value];
469
469
  } else if (t.key.startsWith("preTab")) {
@@ -475,7 +475,7 @@ const xs = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
475
475
  }, xo = () => {
476
476
  sessionStorage.removeItem("tabs");
477
477
  }, Ae = (n) => {
478
- let e = F();
478
+ let e = J();
479
479
  n.forEach((t) => {
480
480
  if (t.key === "subAppList" && !Array.isArray(t.value)) {
481
481
  const o = e.subAppList.findIndex((r) => r.code === t.value.code);
@@ -490,57 +490,57 @@ const xs = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
490
490
  { key: "subAppList", value: [] }
491
491
  ]);
492
492
  }, Mo = (n) => {
493
- let e = F();
493
+ let e = J();
494
494
  e.currentSubApp.currentMenuCode = n;
495
495
  for (const t in e.subAppList)
496
496
  e.subAppList[t].code === e.currentSubAppCode && (e.subAppList[t].currentMenuCode = n);
497
497
  sessionStorage.setItem("subApps", JSON.stringify(e));
498
498
  }, Us = (n, e) => {
499
- const t = "permission-btn", o = JSON.parse(sessionStorage.getItem(t) || "{}") || {}, r = n != null && n.length ? n.filter((c) => c.routeUrl) : [], i = n != null && n.length ? n.filter((c) => !c.routeUrl && c.children).map((c) => c.children).flat() : [], a = [...r, ...i], l = {};
499
+ const t = "permission-btn", o = JSON.parse(sessionStorage.getItem(t) || "{}") || {}, r = n != null && n.length ? n.filter((c) => c.routeUrl) : [], s = n != null && n.length ? n.filter((c) => !c.routeUrl && c.children).map((c) => c.children).flat() : [], a = [...r, ...s], l = {};
500
500
  return a.forEach((c) => {
501
- var A;
502
- const s = c.code, u = (c == null ? void 0 : c.originalCode) ?? "";
503
- l[s] || (l[s] = []);
504
- let m = [];
505
- c != null && c.children && ((A = c == null ? void 0 : c.children) != null && A.length) && (c.children.forEach((f) => {
501
+ var p;
502
+ const i = c.code, u = (c == null ? void 0 : c.originalCode) ?? "";
503
+ l[i] || (l[i] = []);
504
+ let A = [];
505
+ c != null && c.children && ((p = c == null ? void 0 : c.children) != null && p.length) && (c.children.forEach((h) => {
506
506
  var S;
507
- !(f != null && f.children) || !((S = f.children) != null && S.length) ? m.push({
508
- code: f.code,
509
- originalCode: f.originalCode,
510
- name: f.name
511
- }) : ye([f]).forEach((p) => {
512
- m.push({
513
- code: p.code,
514
- originalCode: p.originalCode,
515
- name: p.name
507
+ !(h != null && h.children) || !((S = h.children) != null && S.length) ? A.push({
508
+ code: h.code,
509
+ originalCode: h.originalCode,
510
+ name: h.name
511
+ }) : ye([h]).forEach((f) => {
512
+ A.push({
513
+ code: f.code,
514
+ originalCode: f.originalCode,
515
+ name: f.name
516
516
  });
517
517
  });
518
- }), m.forEach((f) => {
519
- let S = f.originalCode ? f.originalCode : f.code ? f.code : "";
520
- S.includes(s + ".") && (S = S.replace(s + ".", "").replaceAll(".", "-")), S.includes(u + ".") && (S = S.replace(u + ".", "").replaceAll(".", "-"));
518
+ }), A.forEach((h) => {
519
+ let S = h.originalCode ? h.originalCode : h.code ? h.code : "";
520
+ S.includes(i + ".") && (S = S.replace(i + ".", "").replaceAll(".", "-")), S.includes(u + ".") && (S = S.replace(u + ".", "").replaceAll(".", "-"));
521
521
  const b = {
522
522
  code: S,
523
- name: f.name
523
+ name: h.name
524
524
  };
525
- l[s].push(b), u && s !== u && (l["origin-auth"] || (l["origin-auth"] = {}), l["origin-auth"][u] || (l["origin-auth"][u] = []), l["origin-auth"][u].push(b));
525
+ l[i].push(b), u && i !== u && (l["origin-auth"] || (l["origin-auth"] = {}), l["origin-auth"][u] || (l["origin-auth"][u] = []), l["origin-auth"][u].push(b));
526
526
  }));
527
527
  }), o[e] = l, sessionStorage.setItem(t, JSON.stringify(o)), o;
528
528
  }, Fs = () => {
529
529
  sessionStorage.removeItem("permission-btn");
530
530
  }, Js = (n, e) => {
531
- const t = "breadcrumb", o = n.filter((i) => i.routeUrl), r = JSON.parse(sessionStorage.getItem(t) || "{}") || {};
532
- return o.forEach((i) => {
533
- const l = ((i == null ? void 0 : i.style) ?? 1) === 1, c = i.code;
531
+ const t = "breadcrumb", o = n.filter((s) => s.routeUrl), r = JSON.parse(sessionStorage.getItem(t) || "{}") || {};
532
+ return o.forEach((s) => {
533
+ const l = ((s == null ? void 0 : s.style) ?? 1) === 1, c = s.code;
534
534
  r[e] || (r[e] = {}), r[e][c] = l;
535
535
  }), sessionStorage.setItem(t, JSON.stringify(r)), r;
536
536
  }, Ws = () => {
537
537
  sessionStorage.removeItem("breadcrumb");
538
538
  }, zs = (n, e) => {
539
- const t = "tabStyle", o = n.filter((i) => i.routeUrl), r = JSON.parse(sessionStorage.getItem(t) || "{}") || {};
540
- return o.forEach((i) => {
541
- const a = i.code, l = {
542
- fontColor: i.fontColor,
543
- backgroundColor: i.backgroundColor
539
+ const t = "tabStyle", o = n.filter((s) => s.routeUrl), r = JSON.parse(sessionStorage.getItem(t) || "{}") || {};
540
+ return o.forEach((s) => {
541
+ const a = s.code, l = {
542
+ fontColor: s.fontColor,
543
+ backgroundColor: s.backgroundColor
544
544
  };
545
545
  r[e] || (r[e] = {}), r[e][a] = l;
546
546
  }), sessionStorage.setItem(t, JSON.stringify(r)), r;
@@ -561,9 +561,9 @@ const xs = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
561
561
  if (!e || !e.length) return;
562
562
  const t = JSON.parse(sessionStorage.getItem(n) || "{}");
563
563
  if (t && JSON.stringify(t) !== "{}" && t != null && t.closeTabPageConfirm && t.closeTabPageConfirm.length) {
564
- const o = t.closeTabPageConfirm.map((i) => i.code), r = e.find((i) => o.includes(i));
564
+ const o = t.closeTabPageConfirm.map((s) => s.code), r = e.find((s) => o.includes(s));
565
565
  if (r) {
566
- const i = t.closeTabPageConfirm.find((c) => c.code === r), a = (i == null ? void 0 : i.text) ?? "确认关闭?";
566
+ const s = t.closeTabPageConfirm.find((c) => c.code === r), a = (s == null ? void 0 : s.text) ?? "确认关闭?";
567
567
  if (!window.confirm(a)) throw new Error("取消关闭");
568
568
  }
569
569
  }
@@ -839,8 +839,8 @@ function Fo(n, e, t) {
839
839
  function Bt(n, e, t, o) {
840
840
  var r = !t;
841
841
  t || (t = {});
842
- for (var i = -1, a = e.length; ++i < a; ) {
843
- var l = e[i], c = void 0;
842
+ for (var s = -1, a = e.length; ++s < a; ) {
843
+ var l = e[s], c = void 0;
844
844
  c === void 0 && (c = n[l]), r ? Uo(t, l, c) : Fo(t, l, c);
845
845
  }
846
846
  return t;
@@ -893,13 +893,13 @@ var qo = typeof exports == "object" && exports && !exports.nodeType && exports,
893
893
  }
894
894
  }(), Jn = Ve && Ve.isTypedArray, Ka = Jn ? dn(Jn) : Va, Ga = Object.prototype, Xa = Ga.hasOwnProperty;
895
895
  function Ko(n, e) {
896
- var t = un(n), o = !t && ga(n), r = !t && !o && zo(n), i = !t && !o && !r && Ka(n), a = t || o || r || i, l = a ? da(n.length, String) : [], c = l.length;
897
- for (var s in n)
898
- (e || Xa.call(n, s)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
899
- (s == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
900
- r && (s == "offset" || s == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
901
- i && (s == "buffer" || s == "byteLength" || s == "byteOffset") || // Skip index properties.
902
- ba(s, c))) && l.push(s);
896
+ var t = un(n), o = !t && ga(n), r = !t && !o && zo(n), s = !t && !o && !r && Ka(n), a = t || o || r || s, l = a ? da(n.length, String) : [], c = l.length;
897
+ for (var i in n)
898
+ (e || Xa.call(n, i)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
899
+ (i == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
900
+ r && (i == "offset" || i == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
901
+ s && (i == "buffer" || i == "byteLength" || i == "byteOffset") || // Skip index properties.
902
+ ba(i, c))) && l.push(i);
903
903
  return l;
904
904
  }
905
905
  var Za = Object.prototype;
@@ -966,11 +966,11 @@ function dc(n, e) {
966
966
  return e;
967
967
  }
968
968
  function pc(n, e) {
969
- for (var t = -1, o = n == null ? 0 : n.length, r = 0, i = []; ++t < o; ) {
969
+ for (var t = -1, o = n == null ? 0 : n.length, r = 0, s = []; ++t < o; ) {
970
970
  var a = n[t];
971
- e(a, t, n) && (i[r++] = a);
971
+ e(a, t, n) && (s[r++] = a);
972
972
  }
973
- return i;
973
+ return s;
974
974
  }
975
975
  function Yo() {
976
976
  return [];
@@ -1109,11 +1109,11 @@ var ro = Ve && Ve.isMap, rl = ro ? dn(ro) : ol, sl = "[object Set]";
1109
1109
  function il(n) {
1110
1110
  return pt(n) && we(n) == sl;
1111
1111
  }
1112
- var so = Ve && Ve.isSet, al = so ? dn(so) : il, cl = 1, ll = 2, ul = 4, rr = "[object Arguments]", dl = "[object Array]", pl = "[object Boolean]", fl = "[object Date]", hl = "[object Error]", sr = "[object Function]", gl = "[object GeneratorFunction]", Al = "[object Map]", ml = "[object Number]", ir = "[object Object]", vl = "[object RegExp]", yl = "[object Set]", _l = "[object String]", bl = "[object Symbol]", wl = "[object WeakMap]", Cl = "[object ArrayBuffer]", Il = "[object DataView]", El = "[object Float32Array]", Sl = "[object Float64Array]", Tl = "[object Int8Array]", kl = "[object Int16Array]", Pl = "[object Int32Array]", Bl = "[object Uint8Array]", Ol = "[object Uint8ClampedArray]", Dl = "[object Uint16Array]", $l = "[object Uint32Array]", J = {};
1113
- J[rr] = J[dl] = J[Cl] = J[Il] = J[pl] = J[fl] = J[El] = J[Sl] = J[Tl] = J[kl] = J[Pl] = J[Al] = J[ml] = J[ir] = J[vl] = J[yl] = J[_l] = J[bl] = J[Bl] = J[Ol] = J[Dl] = J[$l] = !0;
1114
- J[hl] = J[sr] = J[wl] = !1;
1115
- function mt(n, e, t, o, r, i) {
1116
- var a, l = e & cl, c = e & ll, s = e & ul;
1112
+ var so = Ve && Ve.isSet, al = so ? dn(so) : il, cl = 1, ll = 2, ul = 4, rr = "[object Arguments]", dl = "[object Array]", pl = "[object Boolean]", fl = "[object Date]", hl = "[object Error]", sr = "[object Function]", gl = "[object GeneratorFunction]", Al = "[object Map]", ml = "[object Number]", ir = "[object Object]", vl = "[object RegExp]", yl = "[object Set]", _l = "[object String]", bl = "[object Symbol]", wl = "[object WeakMap]", Cl = "[object ArrayBuffer]", Il = "[object DataView]", El = "[object Float32Array]", Sl = "[object Float64Array]", Tl = "[object Int8Array]", kl = "[object Int16Array]", Pl = "[object Int32Array]", Bl = "[object Uint8Array]", Ol = "[object Uint8ClampedArray]", Dl = "[object Uint16Array]", $l = "[object Uint32Array]", W = {};
1113
+ W[rr] = W[dl] = W[Cl] = W[Il] = W[pl] = W[fl] = W[El] = W[Sl] = W[Tl] = W[kl] = W[Pl] = W[Al] = W[ml] = W[ir] = W[vl] = W[yl] = W[_l] = W[bl] = W[Bl] = W[Ol] = W[Dl] = W[$l] = !0;
1114
+ W[hl] = W[sr] = W[wl] = !1;
1115
+ function mt(n, e, t, o, r, s) {
1116
+ var a, l = e & cl, c = e & ll, i = e & ul;
1117
1117
  if (a !== void 0)
1118
1118
  return a;
1119
1119
  if (!dt(n))
@@ -1123,30 +1123,30 @@ function mt(n, e, t, o, r, i) {
1123
1123
  if (a = kc(n), !l)
1124
1124
  return dc(n, a);
1125
1125
  } else {
1126
- var m = we(n), A = m == sr || m == gl;
1126
+ var A = we(n), p = A == sr || A == gl;
1127
1127
  if (zo(n))
1128
1128
  return uc(n, l);
1129
- if (m == ir || m == rr || A && !r) {
1130
- if (a = c || A ? {} : tl(n), !l)
1129
+ if (A == ir || A == rr || p && !r) {
1130
+ if (a = c || p ? {} : tl(n), !l)
1131
1131
  return c ? mc(n, cc(a, n)) : gc(n, oc(a, n));
1132
1132
  } else {
1133
- if (!J[m])
1133
+ if (!W[A])
1134
1134
  return r ? n : {};
1135
- a = Yc(n, m, l);
1135
+ a = Yc(n, A, l);
1136
1136
  }
1137
1137
  }
1138
- i || (i = new Ye());
1139
- var f = i.get(n);
1140
- if (f)
1141
- return f;
1142
- i.set(n, a), al(n) ? n.forEach(function(p) {
1143
- a.add(mt(p, e, t, p, n, i));
1144
- }) : rl(n) && n.forEach(function(p, d) {
1145
- a.set(d, mt(p, e, t, d, n, i));
1138
+ s || (s = new Ye());
1139
+ var h = s.get(n);
1140
+ if (h)
1141
+ return h;
1142
+ s.set(n, a), al(n) ? n.forEach(function(f) {
1143
+ a.add(mt(f, e, t, f, n, s));
1144
+ }) : rl(n) && n.forEach(function(f, d) {
1145
+ a.set(d, mt(f, e, t, d, n, s));
1146
1146
  });
1147
- var S = s ? c ? yc : vc : c ? hn : fn, b = u ? void 0 : S(n);
1148
- return ca(b || n, function(p, d) {
1149
- b && (d = p, p = n[d]), Fo(a, d, mt(p, e, t, d, n, i));
1147
+ var S = i ? c ? yc : vc : c ? hn : fn, b = u ? void 0 : S(n);
1148
+ return ca(b || n, function(f, d) {
1149
+ b && (d = f, f = n[d]), Fo(a, d, mt(f, e, t, d, n, s));
1150
1150
  }), a;
1151
1151
  }
1152
1152
  var Ll = 1, xl = 4;
@@ -1176,10 +1176,10 @@ const wt = (n, e = "") => {
1176
1176
  let t;
1177
1177
  const o = n.findIndex((a) => a.code === e);
1178
1178
  if (o === -1) return { index: o, target: t };
1179
- const r = n.slice(0, o), i = n.slice(o + 1);
1180
- return i.length && (t = i[0]), t || r.length && (t = r[r.length - 1]), { index: o, target: t };
1179
+ const r = n.slice(0, o), s = n.slice(o + 1);
1180
+ return s.length && (t = s[0]), t || r.length && (t = r[r.length - 1]), { index: o, target: t };
1181
1181
  }, Gt = (n) => {
1182
- const e = F().subAppList ?? [];
1182
+ const e = J().subAppList ?? [];
1183
1183
  let { index: t, target: o } = Ml(e, n);
1184
1184
  return e.splice(t, 1), e.length ? Ae([{ key: "subAppList", value: e }]) : ln(), ce([
1185
1185
  { key: "currentCode", value: "" },
@@ -1188,11 +1188,11 @@ const wt = (n, e = "") => {
1188
1188
  { key: `tabMap:${n}`, value: [] }
1189
1189
  ]), o || (o = { fixed: !0, path: Ie }), { currentApp: o };
1190
1190
  }, Rl = (n, e) => {
1191
- const t = n.findIndex((i) => i.code === e), o = n.slice(0, t), r = n.slice(t + 1);
1191
+ const t = n.findIndex((s) => s.code === e), o = n.slice(0, t), r = n.slice(t + 1);
1192
1192
  return { left: o, right: r };
1193
1193
  }, Ql = (n, e, t) => {
1194
- var m;
1195
- const o = ye(e).filter((A) => A.routeUrl).filter((A) => !(A != null && A.disable) && !(A != null && A.expired)), i = (((m = ae()) == null ? void 0 : m.tabMap) ?? {})[n] ?? [], { left: a, right: l } = Rl(i, t), c = i.filter((A) => o.find((f) => f.code === A.code));
1194
+ var A;
1195
+ const o = ye(e).filter((p) => p.routeUrl).filter((p) => !(p != null && p.disable) && !(p != null && p.expired)), s = (((A = ae()) == null ? void 0 : A.tabMap) ?? {})[n] ?? [], { left: a, right: l } = Rl(s, t), c = s.filter((p) => o.find((h) => h.code === p.code));
1196
1196
  if (!a.length && !l.length || !c.length)
1197
1197
  return ce([
1198
1198
  { key: "currentCode", value: "" },
@@ -1200,30 +1200,30 @@ const wt = (n, e = "") => {
1200
1200
  { key: `preTab:${n}`, value: {} },
1201
1201
  { key: `tabMap:${n}`, value: [] }
1202
1202
  ]), Gt(n);
1203
- let s = null;
1203
+ let i = null;
1204
1204
  if (l.length) {
1205
- const A = l.find((f) => c.map((S) => S.code).includes(f.code));
1206
- A && (s = A);
1205
+ const p = l.find((h) => c.map((S) => S.code).includes(h.code));
1206
+ p && (i = p);
1207
1207
  }
1208
- if (!s && a.length) {
1209
- const A = a.reverse().find((f) => c.map((S) => S.code).includes(f.code));
1210
- A && (s = A);
1208
+ if (!i && a.length) {
1209
+ const p = a.reverse().find((h) => c.map((S) => S.code).includes(h.code));
1210
+ p && (i = p);
1211
1211
  }
1212
- return s ? (ce([
1212
+ return i ? (ce([
1213
1213
  {
1214
1214
  key: "currentCode",
1215
- value: s.code
1215
+ value: i.code
1216
1216
  },
1217
1217
  {
1218
1218
  key: "currentTab",
1219
- value: s
1219
+ value: i
1220
1220
  },
1221
1221
  {
1222
1222
  key: `preTab:${n}`,
1223
- value: s
1223
+ value: i
1224
1224
  },
1225
1225
  { key: `tabMap:${n}`, value: c }
1226
- ]), Mo(s.code), { currentMenu: o.find((A) => A.code === s.code), currentTab: s }) : (ce([
1226
+ ]), Mo(i.code), { currentMenu: o.find((p) => p.code === i.code), currentTab: i }) : (ce([
1227
1227
  { key: `preTab:${n}`, value: {} },
1228
1228
  { key: `tabMap:${n}`, value: [] }
1229
1229
  ]), Gt(n));
@@ -1238,61 +1238,61 @@ const wt = (n, e = "") => {
1238
1238
  const o = ye(t);
1239
1239
  Js(o, n), zs(o, n);
1240
1240
  let r = Hr(t, (a) => a.isMenu);
1241
- const i = qe(r);
1241
+ const s = qe(r);
1242
1242
  return r.forEach((a) => {
1243
1243
  a != null && a.children && a.children.length && (a.originalChildren = qe(a.children)), (a != null && a.expired || a != null && a.disable) && (a.children = []);
1244
- }), { menus: r, originalMenus: i };
1244
+ }), { menus: r, originalMenus: s };
1245
1245
  }, jl = async (n) => {
1246
- var A, f, S, b;
1246
+ var p, h, S, b;
1247
1247
  let { microApp: e = null, menuCode: t = "", menuPath: o = "", route: r = {} } = n;
1248
- const i = ((A = r.meta) == null ? void 0 : A.showLayout) ?? !0;
1249
- let a = ((f = r.query) == null ? void 0 : f.showLayout) ?? !0;
1248
+ const s = ((p = r.meta) == null ? void 0 : p.showLayout) ?? !0;
1249
+ let a = ((h = r.query) == null ? void 0 : h.showLayout) ?? !0;
1250
1250
  a === "false" && (a = !1);
1251
1251
  let l = (e == null ? void 0 : e.code) ?? "";
1252
1252
  if (!l) return { menuConfig: [], currentApp: null, currentMenu: null, query: null };
1253
- let c = [], s = [];
1254
- const u = F().subAppList ?? [];
1255
- if (u.length && (c = ((S = u.find((p) => p.code === e.code)) == null ? void 0 : S.menus) ?? []), !c.length) {
1256
- const { menus: p, originalMenus: d } = await mn(l);
1257
- c = p ?? [], s = d ?? [];
1253
+ let c = [], i = [];
1254
+ const u = J().subAppList ?? [];
1255
+ if (u.length && (c = ((S = u.find((f) => f.code === e.code)) == null ? void 0 : S.menus) ?? []), !c.length) {
1256
+ const { menus: f, originalMenus: d } = await mn(l);
1257
+ c = f ?? [], i = d ?? [];
1258
1258
  }
1259
- if (!c.length && (!i || !a))
1259
+ if (!c.length && (!s || !a))
1260
1260
  return { menuConfig: [], currentApp: null, currentMenu: null, query: null };
1261
1261
  if (e.routeUrl === "iot/iot") {
1262
- const { instanceInfo: p } = await ii();
1263
- if (p) {
1262
+ const { instanceInfo: f } = await ii();
1263
+ if (f) {
1264
1264
  let d = !1;
1265
- c.forEach((_) => {
1266
- _.routeUrl === "/deviceInstance" && (_.fixed = !0, _.divise = !0, _.menuCode = _.code, _.tagName = _.tabName = "实例", _.name = p.instanceName, _.leftIcon = "change2", _.rightIcon = "change2");
1265
+ c.forEach((y) => {
1266
+ 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");
1267
1267
  });
1268
- const g = Nr(p.endTime) || p.endTime == 0 || p.endTime === 253370736e6 || p.endTime === "253370736000000" ? "-" : Number(p.endTime);
1269
- if (d = Jt().endOf("day") > Jt(g).endOf("day"), !t && p.id && !d) {
1270
- const y = ye(c).find((k) => k.routeUrl === "/statisticalReport");
1271
- y && (t = y.code);
1268
+ const m = Nr(f.endTime) || f.endTime == 0 || f.endTime === 253370736e6 || f.endTime === "253370736000000" ? "-" : Number(f.endTime);
1269
+ if (d = Jt().endOf("day") > Jt(m).endOf("day"), !t && !o && f.id && !d) {
1270
+ const _ = ye(c).find((T) => T.routeUrl === "/statisticalReport");
1271
+ _ && (t = _.code);
1272
1272
  }
1273
1273
  }
1274
1274
  }
1275
- if (i && a) {
1275
+ if (s && a) {
1276
1276
  const d = (ae().tabMap ?? {})[e.code] ?? [];
1277
1277
  if (d.length) {
1278
- const g = d.filter(
1279
- (_) => t && t === _.code || o && o === `/${_.applicationPath}${_.path}`.replace(/\/\//g, "/") || ye(c).map((y) => y.code).includes(_.code)
1278
+ const m = d.filter(
1279
+ (y) => t && t === y.code || o && o === `/${y.applicationPath}${y.path}`.replace(/\/\//g, "/") || ye(c).map((_) => _.code).includes(y.code)
1280
1280
  );
1281
1281
  ce([
1282
1282
  {
1283
1283
  key: `tabMap:${e.code}`,
1284
- value: g
1284
+ value: m
1285
1285
  }
1286
1286
  ]);
1287
1287
  }
1288
1288
  }
1289
1289
  if (!t && o) {
1290
- const p = ye(c).find((d) => {
1291
- const g = `/${d.applicationPath}${d.routeUrl}`.replace(/\/\//g, "/");
1292
- return d.applicationPath && d.routeUrl && (o === g || o.startsWith(`/${g}/`));
1290
+ const f = ye(c).find((d) => {
1291
+ const m = `/${d.applicationPath}${d.routeUrl}`.replace(/\/\//g, "/");
1292
+ return d.applicationPath && d.routeUrl && (o === m || o.startsWith(`/${m}/`));
1293
1293
  });
1294
- if (p)
1295
- t = p.code;
1294
+ if (f)
1295
+ t = f.code;
1296
1296
  else
1297
1297
  return {
1298
1298
  menuConfig: c,
@@ -1301,57 +1301,57 @@ const wt = (n, e = "") => {
1301
1301
  query: { ...r.query, app: l }
1302
1302
  };
1303
1303
  }
1304
- let m = wt(c, t);
1305
- if (!m) {
1306
- if (!i || !a)
1304
+ let A = wt(c, t);
1305
+ if (!A) {
1306
+ if (!s || !a)
1307
1307
  return { menuConfig: c, currentApp: null, currentMenu: null, query: { ...r.query, app: l } };
1308
- const p = Ql(e.code, c, t);
1309
- p != null && p.currentApp && (e = p.currentApp), p != null && p.currentMenu && (m = p.currentMenu), p != null && p.currentTab && (r.query = ((b = p.currentTab) == null ? void 0 : b.query) ?? {});
1308
+ const f = Ql(e.code, c, t);
1309
+ f != null && f.currentApp && (e = f.currentApp), f != null && f.currentMenu && (A = f.currentMenu), f != null && f.currentTab && (r.query = ((b = f.currentTab) == null ? void 0 : b.query) ?? {});
1310
1310
  }
1311
1311
  if ((e == null ? void 0 : e.routeUrl) === Ie)
1312
1312
  return { menuConfig: [], currentApp: e, currentMenu: null, query: null };
1313
- if (m) {
1314
- const p = `/${m.applicationPath}${m.routeUrl}`;
1313
+ if (A) {
1314
+ const f = `/${A.applicationPath}${A.routeUrl}`;
1315
1315
  let d = "";
1316
- o && o.startsWith(p) && o !== p && (d = o);
1317
- const g = { ...r.query, app: l, menu: m.code };
1318
- if (i && a) {
1319
- const _ = { ...e, currentMenuCode: m.code, menus: c, originalMenus: s };
1316
+ o && o.startsWith(f) && o !== f && (d = o);
1317
+ const m = { ...r.query, app: l, menu: A.code };
1318
+ if (s && a) {
1319
+ const y = { ...e, currentMenuCode: A.code, menus: c, originalMenus: i };
1320
1320
  Ae([
1321
- { key: "currentSubApp", value: _ },
1321
+ { key: "currentSubApp", value: y },
1322
1322
  { key: "currentSubAppCode", value: l },
1323
- { key: "subAppList", value: _ }
1323
+ { key: "subAppList", value: y }
1324
1324
  ]);
1325
- const y = {
1325
+ const _ = {
1326
1326
  currentApplication: e.routeUrl,
1327
- applicationPath: m.applicationPath,
1327
+ applicationPath: A.applicationPath,
1328
1328
  applicationCode: l,
1329
- menuId: m.id,
1330
- code: m.code,
1331
- name: (m == null ? void 0 : m.tabName) ?? m.name,
1332
- path: m.routeUrl,
1333
- query: g
1329
+ menuId: A.id,
1330
+ code: A.code,
1331
+ name: (A == null ? void 0 : A.tabName) ?? A.name,
1332
+ path: A.routeUrl,
1333
+ query: m
1334
1334
  };
1335
1335
  ce([
1336
1336
  {
1337
1337
  key: "currentCode",
1338
- value: m.code
1338
+ value: A.code
1339
1339
  },
1340
1340
  {
1341
1341
  key: "currentTab",
1342
- value: y
1342
+ value: _
1343
1343
  },
1344
1344
  {
1345
1345
  key: `tabMap:${l}`,
1346
- value: y
1346
+ value: _
1347
1347
  },
1348
1348
  {
1349
1349
  key: `preTab:${l}`,
1350
- value: y
1350
+ value: _
1351
1351
  }
1352
1352
  ]);
1353
1353
  }
1354
- return { menuConfig: c, currentApp: e, currentMenu: m, query: g, microPath: d };
1354
+ return { menuConfig: c, currentApp: e, currentMenu: A, query: m, microPath: d };
1355
1355
  }
1356
1356
  return { menuConfig: c, currentApp: e, currentMenu: null, query: { ...r.query, app: l } };
1357
1357
  }, Hl = Be.get("/appcategory"), io = E([]), ao = E(!1), ar = async () => {
@@ -1363,16 +1363,16 @@ const wt = (n, e = "") => {
1363
1363
  const n = Zt();
1364
1364
  let e = [], t = null;
1365
1365
  if ((n == null ? void 0 : n.flag) === 4) {
1366
- const [i, a] = await Jl().run();
1366
+ const [s, a] = await Jl().run();
1367
1367
  if (e = a, e && e.length) {
1368
1368
  const l = ((o = Pe()) == null ? void 0 : o.id) || 0;
1369
1369
  if (l && (t = e.find((c) => c.id === l)), !l || !t) {
1370
- const c = n.tenant.id ?? "", s = e.filter((u) => u.tenant === c);
1371
- s && s.length && (t = s[0]);
1370
+ const c = n.tenant.id ?? "", i = e.filter((u) => u.tenant === c);
1371
+ i && i.length && (t = i[0]);
1372
1372
  }
1373
1373
  }
1374
1374
  } else {
1375
- const [i, a] = await Ul().run();
1375
+ const [s, a] = await Ul().run();
1376
1376
  if (e = a, e && e.length) {
1377
1377
  const l = ((r = Pe()) == null ? void 0 : r.id) || 0;
1378
1378
  l && (t = Tn(e, (c) => c.id === l)), (!l || !t) && (t = Tn(e, (c) => c.type === 7));
@@ -1394,45 +1394,45 @@ const wt = (n, e = "") => {
1394
1394
  }, tu = Be.post("/menu/personal-setting"), nu = { class: "preson-style-drawer" }, ou = { class: "preson-style-container" }, ru = { class: "title" }, su = { class: "content" }, iu = { class: "item-content" }, au = ["src"], cu = { class: "item-content" }, lu = ["src"], uu = { class: "preson-style-footer" }, du = /* @__PURE__ */ pe({
1395
1395
  __name: "index",
1396
1396
  setup(n, { expose: e }) {
1397
- const t = E(!1), o = E(!1), r = E(!1), i = E(!1), a = () => {
1397
+ const t = E(!1), o = E(!1), r = E(!1), s = E(!1), a = () => {
1398
1398
  o.value = Ct.value === 1, r.value = Ct.value === 2, t.value = !0;
1399
- }, l = (s) => {
1400
- s === 1 ? r.value = !1 : o.value = !1;
1399
+ }, l = (i) => {
1400
+ i === 1 ? r.value = !1 : o.value = !1;
1401
1401
  }, c = async () => {
1402
- const [s] = await tu().run({ style: o.value ? 1 : 2 });
1403
- s || (await lr(), t.value = !1);
1402
+ const [i] = await tu().run({ style: o.value ? 1 : 2 });
1403
+ i || (await lr(), t.value = !1);
1404
1404
  };
1405
1405
  return e({
1406
1406
  /** 打开弹窗 */
1407
1407
  openDialog: a
1408
- }), (s, u) => (H(), de("div", nu, [
1409
- M(v(cs), {
1408
+ }), (i, u) => (N(), de("div", nu, [
1409
+ R(v(cs), {
1410
1410
  title: v(Q)("主题设置").value,
1411
1411
  modelValue: t.value,
1412
- "onUpdate:modelValue": u[5] || (u[5] = (m) => t.value = m),
1412
+ "onUpdate:modelValue": u[5] || (u[5] = (A) => t.value = A),
1413
1413
  "body-style": { padding: 0 },
1414
1414
  direction: "rtl"
1415
1415
  }, {
1416
- footer: x(() => [
1417
- L("div", uu, [
1418
- M(v(ke), {
1416
+ footer: M(() => [
1417
+ x("div", uu, [
1418
+ R(v(ke), {
1419
1419
  size: "middle",
1420
- onClick: u[4] || (u[4] = (m) => t.value = !1),
1420
+ onClick: u[4] || (u[4] = (A) => t.value = !1),
1421
1421
  style: { "margin-right": "12px" }
1422
1422
  }, {
1423
- default: x(() => u[6] || (u[6] = [
1423
+ default: M(() => u[6] || (u[6] = [
1424
1424
  le("取消")
1425
1425
  ])),
1426
1426
  _: 1
1427
1427
  /* STABLE */
1428
1428
  }),
1429
- M(v(ke), {
1429
+ R(v(ke), {
1430
1430
  btnType: "primary",
1431
1431
  size: "middle",
1432
- loading: i.value,
1432
+ loading: s.value,
1433
1433
  onClick: c
1434
1434
  }, {
1435
- default: x(() => u[7] || (u[7] = [
1435
+ default: M(() => u[7] || (u[7] = [
1436
1436
  le("确定")
1437
1437
  ])),
1438
1438
  _: 1
@@ -1440,29 +1440,29 @@ const wt = (n, e = "") => {
1440
1440
  }, 8, ["loading"])
1441
1441
  ])
1442
1442
  ]),
1443
- default: x(() => [
1444
- L("div", ou, [
1445
- L(
1443
+ default: M(() => [
1444
+ x("div", ou, [
1445
+ x(
1446
1446
  "p",
1447
1447
  ru,
1448
1448
  Z(v(Q)("侧边菜单栏").value),
1449
1449
  1
1450
1450
  /* TEXT */
1451
1451
  ),
1452
- L("div", su, [
1453
- L("div", iu, [
1454
- L("img", {
1452
+ x("div", su, [
1453
+ x("div", iu, [
1454
+ x("img", {
1455
1455
  src: v(xs),
1456
1456
  alt: "",
1457
1457
  width: "180",
1458
1458
  height: "120"
1459
1459
  }, null, 8, au),
1460
- M(v(kn), {
1460
+ R(v(kn), {
1461
1461
  modelValue: o.value,
1462
- "onUpdate:modelValue": u[0] || (u[0] = (m) => o.value = m),
1463
- onChange: u[1] || (u[1] = (m) => l(1))
1462
+ "onUpdate:modelValue": u[0] || (u[0] = (A) => o.value = A),
1463
+ onChange: u[1] || (u[1] = (A) => l(1))
1464
1464
  }, {
1465
- default: x(() => [
1465
+ default: M(() => [
1466
1466
  le(
1467
1467
  Z(v(Q)("弹出式菜单栏").value),
1468
1468
  1
@@ -1473,19 +1473,19 @@ const wt = (n, e = "") => {
1473
1473
  /* STABLE */
1474
1474
  }, 8, ["modelValue"])
1475
1475
  ]),
1476
- L("div", cu, [
1477
- L("img", {
1476
+ x("div", cu, [
1477
+ x("img", {
1478
1478
  src: v(Ms),
1479
1479
  alt: "",
1480
1480
  width: "180",
1481
1481
  height: "120"
1482
1482
  }, null, 8, lu),
1483
- M(v(kn), {
1483
+ R(v(kn), {
1484
1484
  modelValue: r.value,
1485
- "onUpdate:modelValue": u[2] || (u[2] = (m) => r.value = m),
1486
- onChange: u[3] || (u[3] = (m) => l(2))
1485
+ "onUpdate:modelValue": u[2] || (u[2] = (A) => r.value = A),
1486
+ onChange: u[3] || (u[3] = (A) => l(2))
1487
1487
  }, {
1488
- default: x(() => [
1488
+ default: M(() => [
1489
1489
  le(
1490
1490
  Z(v(Q)("内嵌式菜单栏").value),
1491
1491
  1
@@ -1506,8 +1506,8 @@ const wt = (n, e = "") => {
1506
1506
  }
1507
1507
  }), pu = /* @__PURE__ */ Ee(du, [["__scopeId", "data-v-760eb710"]]), fu = () => E(null), hu = en.get("/login/history"), gu = () => {
1508
1508
  const n = () => ["/licenseActivate", "/licenseDataManage", "/sso-logout"].some((c) => new RegExp(`^${c}$`, "i").test(location.pathname)), e = (a) => {
1509
- const { browserLogoImgHost: l = "", browserLogoImg: c = "" } = a || {}, s = c ? l + Xt(c) : "";
1510
- Hs(s), Ur(s);
1509
+ const { browserLogoImgHost: l = "", browserLogoImg: c = "" } = a || {}, i = c ? l + Xt(c) : "";
1510
+ Hs(i), Ur(i);
1511
1511
  }, t = async () => {
1512
1512
  const [a, l] = await hu().run({ userId: bo().id });
1513
1513
  a || !l || JSON.stringify(l) === "{}" || (yt.open({
@@ -1526,7 +1526,7 @@ const wt = (n, e = "") => {
1526
1526
  }, o = async () => {
1527
1527
  const [{ loginConfig: a }, { platformConfig: l }] = await Promise.all([Zl(), Yl()]);
1528
1528
  e(l), D.nav.setLogo((l == null ? void 0 : l.platformLogoImg) ?? ""), !n() && a != null && a.loginInfoTip && !sessionStorage.getItem("loginInfoTip") && t();
1529
- }, r = E(!1), i = () => new Promise((a) => {
1529
+ }, r = E(!1), s = () => new Promise((a) => {
1530
1530
  const l = () => {
1531
1531
  if (r.value) return a();
1532
1532
  setTimeout(() => l(), 50);
@@ -1540,23 +1540,23 @@ const wt = (n, e = "") => {
1540
1540
  Co({ accessToken: a }), r.value = !0;
1541
1541
  }), {
1542
1542
  platformInited: r,
1543
- initNextTick: i
1543
+ initNextTick: s
1544
1544
  };
1545
1545
  }, Au = (n) => {
1546
- const e = Ge(), t = on(), { getMenu: o } = qr(), { getHistoryList: r, getSearchList: i } = Du(), a = E(!0), l = E([]), c = E([]), s = E(!1), u = E(!1);
1546
+ const e = Ge(), t = on(), { getMenu: o } = qr(), { getHistoryList: r, getSearchList: s } = Du(), a = E(!0), l = E([]), c = E([]), i = E(!1), u = E(!1);
1547
1547
  oe(
1548
1548
  () => t.path,
1549
1549
  (S) => {
1550
- s.value = S === nt;
1550
+ i.value = S === nt;
1551
1551
  },
1552
1552
  {
1553
1553
  immediate: !0
1554
1554
  }
1555
1555
  ), oe(
1556
- () => [s.value, u.value],
1556
+ () => [i.value, u.value],
1557
1557
  () => {
1558
1558
  D.nav.setConfig({
1559
- showFullScreen: s.value,
1559
+ showFullScreen: i.value,
1560
1560
  showChangeEnterprise: u.value,
1561
1561
  showSearch: !0,
1562
1562
  showProjectTree: !0
@@ -1566,43 +1566,43 @@ const wt = (n, e = "") => {
1566
1566
  immediate: !0
1567
1567
  }
1568
1568
  );
1569
- const m = async () => {
1569
+ const A = async () => {
1570
1570
  let S = {};
1571
- return await Jr([oi, Wl, eu, ar, lr]).then((p) => Object.assign(S, ...p)), a.value = !1, S;
1572
- }, A = E(!1);
1571
+ return await Jr([oi, Wl, eu, ar, lr]).then((f) => Object.assign(S, ...f)), a.value = !1, S;
1572
+ }, p = E(!1);
1573
1573
  return D.nav.addEventListener("onBeforeMount", async () => {
1574
- var C;
1574
+ var w;
1575
1575
  await n();
1576
- const S = await m();
1576
+ const S = await A();
1577
1577
  if (!S) return;
1578
- const { homeConfig: b, projectConfig: p, currentProject: d, tenantList: g, personalMenuConfig: _ } = S;
1579
- u.value = ((C = Zt()) == null ? void 0 : C.flag) !== 4 && g && g.length > 1;
1580
- const y = [...Po];
1581
- y.forEach((T) => {
1582
- b != null && b.appAlias && T.value === Ie && (T.label = b.appAlias), b != null && b.homeAlias && T.value === nt && (T.label = b.homeAlias);
1583
- }), l.value = y, b != null && b.enable || (l.value = l.value.filter((T) => T.path === Ie), t.path === nt && await e.replace(Ie)), D.nav.setItems(l.value), p && p.length && (D.nav.setProjectConfig({
1578
+ const { homeConfig: b, projectConfig: f, currentProject: d, tenantList: m, personalMenuConfig: y } = S;
1579
+ u.value = ((w = Zt()) == null ? void 0 : w.flag) !== 4 && m && m.length > 1;
1580
+ const _ = [...Po];
1581
+ _.forEach((C) => {
1582
+ b != null && b.appAlias && C.value === Ie && (C.label = b.appAlias), b != null && b.homeAlias && C.value === nt && (C.label = b.homeAlias);
1583
+ }), l.value = _, b != null && b.enable || (l.value = l.value.filter((C) => C.path === Ie), t.path === nt && await e.replace(Ie)), D.nav.setItems(l.value), f && f.length && (D.nav.setProjectConfig({
1584
1584
  treeProps: {
1585
- disabled: (T) => T.type !== 7
1585
+ disabled: (C) => C.type !== 7
1586
1586
  },
1587
1587
  // 过滤的节点
1588
- filterNodeMethod: (T) => T.type === 7,
1588
+ filterNodeMethod: (C) => C.type === 7,
1589
1589
  // 树打平之后保留的数据
1590
- filterFlatCondition: (T) => T.type === 7
1591
- }), D.nav.setProjects(p || []), d && D.nav.setActiveProject(d));
1592
- const k = St() ?? {}, w = k != null && k.headPicture ? Xt(k.headPicture) : void 0;
1593
- c.value = [...ps], d && d.id !== 0 ? await o("personCenter", "", "/userInfo") || (c.value = c.value.filter((R) => R.value !== "1")) : c.value = c.value.filter((T) => T.value !== "1"), D.nav.setUserInfo({ headPicture: w, commandList: c.value }), D.nav.setSearchConfig({
1590
+ filterFlatCondition: (C) => C.type === 7
1591
+ }), D.nav.setProjects(f || []), d && D.nav.setActiveProject(d));
1592
+ const T = St() ?? {}, B = T != null && T.headPicture ? Xt(T.headPicture) : void 0;
1593
+ c.value = [...ps], d && d.id !== 0 ? await o("personCenter", "", "/userInfo") || (c.value = c.value.filter((P) => P.value !== "1")) : c.value = c.value.filter((C) => C.value !== "1"), D.nav.setUserInfo({ headPicture: B, commandList: c.value }), D.nav.setSearchConfig({
1594
1594
  getHistoryList: r,
1595
- getSearchList: i
1595
+ getSearchList: s
1596
1596
  });
1597
- const P = F().subAppList ?? [];
1598
- P.length && (P.forEach((T) => {
1599
- T.menus = [], T.originalMenus = [];
1600
- }), Ae([{ key: "subAppList", value: P }])), A.value = !0;
1601
- }), { loading: a, innerPage: l, commandList: c, layoutInited: A, initNextTick: () => new Promise((S) => {
1597
+ const L = J().subAppList ?? [];
1598
+ L.length && (L.forEach((C) => {
1599
+ C.menus = [], C.originalMenus = [];
1600
+ }), Ae([{ key: "subAppList", value: L }])), p.value = !0;
1601
+ }), { loading: a, innerPage: l, commandList: c, layoutInited: p, initNextTick: () => new Promise((S) => {
1602
1602
  const b = async () => {
1603
- var g;
1604
- let p = ((g = t.meta) == null ? void 0 : g.showLayout) ?? !0, { showLayout: d = !0 } = t.query;
1605
- if (d === "false" && (d = !1), !p || !d || A.value) {
1603
+ var m;
1604
+ let f = ((m = t.meta) == null ? void 0 : m.showLayout) ?? !0, { showLayout: d = !0 } = t.query;
1605
+ if (d === "false" && (d = !1), !f || !d || p.value) {
1606
1606
  S();
1607
1607
  return;
1608
1608
  }
@@ -1626,8 +1626,8 @@ const wt = (n, e = "") => {
1626
1626
  const t = ye(_t(e.applicationCode)).filter((o) => !o.disable && !o.expired).find((o) => o.code === e.code);
1627
1627
  if (!(t && !t.routeUrl)) {
1628
1628
  if (!t) {
1629
- const { title: o, content: r, desc: i } = await vn(t);
1630
- await rt({ title: o, content: r, desc: i });
1629
+ const { title: o, content: r, desc: s } = await vn(t);
1630
+ await rt({ title: o, content: r, desc: s });
1631
1631
  return;
1632
1632
  }
1633
1633
  n({ currentMenu: t });
@@ -1636,119 +1636,119 @@ const wt = (n, e = "") => {
1636
1636
  }, yu = () => {
1637
1637
  const { changeApp: n, deleteApp: e, beforeEntryApp: t } = et();
1638
1638
  D.nav.addEventListener("onItemClick", async (r) => {
1639
- const i = F().currentSubAppCode ?? "";
1640
- if (i !== r.code) {
1641
- if (i && Ks(i), !r.fixed && !await t(r))
1639
+ const s = J().currentSubAppCode ?? "";
1640
+ if (s !== r.code) {
1641
+ if (s && Ks(s), !r.fixed && !await t(r))
1642
1642
  throw new Error("取消切换");
1643
1643
  n(r);
1644
1644
  }
1645
1645
  }), D.nav.addEventListener("onItemRemove", (r) => {
1646
- var s;
1647
- const i = F();
1648
- if (!((s = i.subAppList) != null && s.length) || i.subAppList.findIndex((u) => u.code === r.code) === -1) return;
1646
+ var i;
1647
+ const s = J();
1648
+ if (!((i = s.subAppList) != null && i.length) || s.subAppList.findIndex((u) => u.code === r.code) === -1) return;
1649
1649
  const c = (ae().tabMap[r.code] ?? []).map((u) => u.code);
1650
1650
  c && c.length && At(r.code, c), e(r);
1651
1651
  });
1652
1652
  const { enter: o } = lt();
1653
1653
  return D.nav.addEventListener("fullScreenHandle", o), {};
1654
1654
  }, _u = () => {
1655
- const n = Ge(), e = "#666666", t = "#FAFAFA", o = "#D9D9D9", r = E(e), i = E(t), a = E(o);
1655
+ const n = Ge(), e = "#666666", t = "#FAFAFA", o = "#D9D9D9", r = E(e), s = E(t), a = E(o);
1656
1656
  let l = "", c = {};
1657
1657
  oe(
1658
1658
  () => n.currentRoute.value,
1659
1659
  async (d) => {
1660
- var P, C, T, R, $, N, W;
1661
- const g = ((P = d.meta) == null ? void 0 : P.showLayout) ?? !0;
1662
- let _ = ((C = d.query) == null ? void 0 : C.showLayout) ?? !0;
1663
- if (_ === "false" && (_ = !1), !g || !_ || d.path === l && Nt(d.query, c)) return;
1660
+ var L, w, C, P, $, H, F;
1661
+ const m = ((L = d.meta) == null ? void 0 : L.showLayout) ?? !0;
1662
+ let y = ((w = d.query) == null ? void 0 : w.showLayout) ?? !0;
1663
+ if (y === "false" && (y = !1), !m || !y || d.path === l && Nt(d.query, c)) return;
1664
1664
  l = qe(d.path), c = qe(d.query);
1665
- const y = F().currentSubAppCode ?? "";
1666
- if (!y) return;
1667
- const k = ((T = d.query) == null ? void 0 : T.menu) ?? ((R = ae()) == null ? void 0 : R.currentCode) ?? "";
1668
- if (!k) return;
1669
- const w = JSON.parse(sessionStorage.getItem("tabStyle") || "{}") || {};
1670
- w && JSON.stringify(w) !== "{}" && (r.value = ($ = w[y][k]) != null && $.fontColor ? w[y][k].fontColor : e, i.value = (N = w[y][k]) != null && N.backgroundColor ? w[y][k].backgroundColor : t, a.value = (W = w[y][k]) != null && W.backgroundColor ? w[y][k].backgroundColor : o);
1665
+ const _ = J().currentSubAppCode ?? "";
1666
+ if (!_) return;
1667
+ const T = ((C = d.query) == null ? void 0 : C.menu) ?? ((P = ae()) == null ? void 0 : P.currentCode) ?? "";
1668
+ if (!T) return;
1669
+ const B = JSON.parse(sessionStorage.getItem("tabStyle") || "{}") || {};
1670
+ B && JSON.stringify(B) !== "{}" && (r.value = ($ = B[_][T]) != null && $.fontColor ? B[_][T].fontColor : e, s.value = (H = B[_][T]) != null && H.backgroundColor ? B[_][T].backgroundColor : t, a.value = (F = B[_][T]) != null && F.backgroundColor ? B[_][T].backgroundColor : o);
1671
1671
  }
1672
1672
  );
1673
- const { deleteApp: s } = et(), { entryMenu: u } = Ot(), { reloadRoute: m, unloadRoute: A } = ur(), f = (d) => {
1674
- var k;
1675
- const g = ye(_t(d.applicationCode)).find((w) => w.code === d.code), y = (((k = ae().tabMap) == null ? void 0 : k[d.applicationCode]) ?? []).find((w) => w.code === d.code);
1676
- u({ currentMenu: g, route: { path: y.path, query: y.query ?? {} } });
1673
+ const { deleteApp: i } = et(), { entryMenu: u } = Ot(), { reloadRoute: A, unloadRoute: p } = ur(), h = (d) => {
1674
+ var T;
1675
+ const m = ye(_t(d.applicationCode)).find((B) => B.code === d.code), _ = (((T = ae().tabMap) == null ? void 0 : T[d.applicationCode]) ?? []).find((B) => B.code === d.code);
1676
+ u({ currentMenu: m, route: { path: _.path, query: _.query ?? {} } });
1677
1677
  }, S = (d) => {
1678
1678
  if (!d || !d.length) return;
1679
- const g = d.map((_) => _.path);
1680
- A(g);
1679
+ const m = d.map((y) => y.path);
1680
+ p(m);
1681
1681
  }, b = (d) => {
1682
- const g = F().currentSubAppCode ?? "";
1682
+ const m = J().currentSubAppCode ?? "";
1683
1683
  ee.innerSet = !0;
1684
- const _ = ae(), y = _.tabMap[g], k = y.findIndex(($) => $.code === d.data.code);
1685
- if (k === -1) return;
1686
- const w = () => {
1687
- var W;
1688
- let N = (((W = F().appcategorys) == null ? void 0 : W.map((se) => se.apps).flat()) ?? []).find((se) => se.code === g);
1689
- N = { ...N, value: N.code, label: N.name }, s(N), D.nav.removeItem(g);
1684
+ const y = ae(), _ = y.tabMap[m], T = _.findIndex(($) => $.code === d.data.code);
1685
+ if (T === -1) return;
1686
+ const B = () => {
1687
+ var F;
1688
+ let H = (((F = J().appcategorys) == null ? void 0 : F.map((se) => se.apps).flat()) ?? []).find((se) => se.code === m);
1689
+ H = { ...H, value: H.code, label: H.name }, i(H), D.nav.removeItem(m);
1690
1690
  };
1691
1691
  ({
1692
1692
  me: async ($) => {
1693
- if (y.length === 1) {
1694
- w();
1693
+ if (_.length === 1) {
1694
+ B();
1695
1695
  return;
1696
1696
  }
1697
- const N = _.currentCode;
1698
- let W = null;
1699
- N === $.value && (k + 1 === y.length ? y[k - 1] && (W = y[k - 1]) : y[k + 1] && (W = y[k + 1])), y.splice(k, 1), S([$]), ce([{ key: `tabMap:${g}`, value: y }]), W ? f(W) : ce([{ key: `preTab:${g}`, value: {} }]);
1697
+ const H = y.currentCode;
1698
+ let F = null;
1699
+ H === $.value && (T + 1 === _.length ? _[T - 1] && (F = _[T - 1]) : _[T + 1] && (F = _[T + 1])), _.splice(T, 1), S([$]), ce([{ key: `tabMap:${m}`, value: _ }]), F ? h(F) : ce([{ key: `preTab:${m}`, value: {} }]);
1700
1700
  },
1701
- all: w,
1701
+ all: B,
1702
1702
  other: async ($) => {
1703
- const N = y[k];
1703
+ const H = _[T];
1704
1704
  n.push({
1705
- path: `/${N.applicationPath}${N.path}`.replace(/\/\//g, "/"),
1706
- query: N.query
1707
- }), D.menu.setActiveItem(N.menuId), D.tab.setActiveItem(N.code);
1708
- const W = y.filter((se) => se.code !== $.value);
1709
- W.forEach((se) => D.tab.removeItem(se.code)), S(W), ce([{ key: `tabMap:${g}`, value: [N] }]), f(N);
1705
+ path: `/${H.applicationPath}${H.path}`.replace(/\/\//g, "/"),
1706
+ query: H.query
1707
+ }), D.menu.setActiveItem(H.menuId), D.tab.setActiveItem(H.code);
1708
+ const F = _.filter((se) => se.code !== $.value);
1709
+ F.forEach((se) => D.tab.removeItem(se.code)), S(F), ce([{ key: `tabMap:${m}`, value: [H] }]), h(H);
1710
1710
  },
1711
1711
  right: async ($) => {
1712
- const N = _.currentCode;
1713
- if (N !== $.value && y.findIndex((Te) => Te.code === N) > k) {
1714
- const Te = y[k];
1715
- f(Te);
1712
+ const H = y.currentCode;
1713
+ if (H !== $.value && _.findIndex((Te) => Te.code === H) > T) {
1714
+ const Te = _[T];
1715
+ h(Te);
1716
1716
  }
1717
- const W = y.slice(k + 1);
1718
- W.forEach((se) => D.tab.removeItem(se.code)), S(W), y.splice(k + 1), ce([{ key: `tabMap:${g}`, value: y }]);
1717
+ const F = _.slice(T + 1);
1718
+ F.forEach((se) => D.tab.removeItem(se.code)), S(F), _.splice(T + 1), ce([{ key: `tabMap:${m}`, value: _ }]);
1719
1719
  }
1720
1720
  })[d.type](d.data);
1721
1721
  };
1722
1722
  D.tab.addEventListener("onItemClick", async (d) => {
1723
- ae().currentCode !== d.currentCode && (ee.innerSet = !0, f(d));
1723
+ ae().currentCode !== d.currentCode && (ee.innerSet = !0, h(d));
1724
1724
  }), D.tab.addEventListener("onItemRemove", (d) => {
1725
- const g = ae(), _ = F().currentSubAppCode ?? "";
1726
- g.tabMap[_].findIndex((w) => w.code === d.code) !== -1 && (At(d.applicationCode, [d.code]), b({ type: "me", data: d }));
1725
+ const m = ae(), y = J().currentSubAppCode ?? "";
1726
+ m.tabMap[y].findIndex((B) => B.code === d.code) !== -1 && (At(d.applicationCode, [d.code]), b({ type: "me", data: d }));
1727
1727
  }), D.tab.addEventListener("onMenuClick", (d) => {
1728
- let g = [];
1729
- const _ = ae().tabMap[d.applicationCode] ?? [];
1728
+ let m = [];
1729
+ const y = ae().tabMap[d.applicationCode] ?? [];
1730
1730
  if (d.type.key === "right") {
1731
- const y = _.findIndex((k) => k.code === d.data.value);
1732
- g = _.slice(y + 1);
1731
+ const _ = y.findIndex((T) => T.code === d.data.value);
1732
+ m = y.slice(_ + 1);
1733
1733
  }
1734
- d.type.key === "other" && (g = _.filter((y) => y.code !== d.data.value)), d.type.key === "all" && (g = [..._]), At(
1734
+ d.type.key === "other" && (m = y.filter((_) => _.code !== d.data.value)), d.type.key === "all" && (m = [...y]), At(
1735
1735
  d.applicationCode,
1736
- g.map((y) => y.code)
1736
+ m.map((_) => _.code)
1737
1737
  ), b({ type: d.type.key, data: d.data });
1738
1738
  }), D.tab.addEventListener("onPageRefresh", async (d) => {
1739
1739
  if (!d || d.path === Je) return;
1740
1740
  At(d.applicationCode, [d.code]);
1741
- const g = ye(_t(d.applicationCode)).find((k) => k.code === d.code);
1742
- if (!g) return;
1743
- if (g.routeUrl !== d.path) {
1744
- m([d.path]), A([`/${d.applicationPath}${g.routeUrl}`]), await u({ currentMenu: g });
1741
+ const m = ye(_t(d.applicationCode)).find((T) => T.code === d.code);
1742
+ if (!m) return;
1743
+ if (m.routeUrl !== d.path) {
1744
+ A([d.path]), p([`/${d.applicationPath}${m.routeUrl}`]), await u({ currentMenu: m });
1745
1745
  return;
1746
1746
  }
1747
- const _ = { app: g.applicationCode, menu: g.code }, y = { ...d.query };
1748
- Nt(_, y) || await u({ currentMenu: g }), m([d.path]);
1747
+ const y = { app: m.applicationCode, menu: m.code }, _ = { ...d.query };
1748
+ Nt(y, _) || await u({ currentMenu: m }), A([d.path]);
1749
1749
  });
1750
- const { enter: p } = lt();
1751
- return D.tab.addEventListener("onToggleFullScreen", p), { fontColor: r, backgroudColor: i, borderColor: a };
1750
+ const { enter: f } = lt();
1751
+ return D.tab.addEventListener("onToggleFullScreen", f), { fontColor: r, backgroudColor: s, borderColor: a };
1752
1752
  }, Qt = He(), co = (Qt == null ? void 0 : Qt.isAutoCloseApp) ?? !0, lo = location.href.includes("showLayout=false"), uo = window.self !== window.top, bu = () => {
1753
1753
  const n = () => {
1754
1754
  D.nav.setItems([]), D.menu.setItems([]), D.tab.setItems([]), Ro();
@@ -1765,63 +1765,63 @@ const wt = (n, e = "") => {
1765
1765
  window.__isAutoCloseApp = !0;
1766
1766
  return;
1767
1767
  }
1768
- const t = F();
1768
+ const t = J();
1769
1769
  t.subAppList && t.subAppList.length && sessionStorage.setItem("has-subapp", "true"), n();
1770
1770
  }), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`), sessionStorage.removeItem("has-subapp")), ue.addEventListenerFromMicroApp("system-reload", () => {
1771
1771
  n(), window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`);
1772
1772
  });
1773
1773
  }, et = () => {
1774
1774
  const n = Ge(), { entryMenu: e } = Ot(), { unloadRoute: t } = ur();
1775
- let { mainAppName: o = "", microAppName: r = "", microApps: i = [] } = He();
1776
- !o && r && (i = [{ name: r }]);
1777
- const a = i.map((A) => A.name), l = () => {
1775
+ let { mainAppName: o = "", microAppName: r = "", microApps: s = [] } = He();
1776
+ !o && r && (s = [{ name: r }]);
1777
+ const a = s.map((p) => p.name), l = () => {
1778
1778
  D.menu.setItems([]), D.menu.setActiveItem(""), D.tab.setItems([]), D.tab.setActiveItem("");
1779
- }, c = async (A) => {
1780
- if (A.routeUrl && !a.includes(A.routeUrl)) return !0;
1781
- const f = A.code ?? "", b = (F().subAppList ?? []).find((y) => y.code === f);
1782
- let p = [], d = [], g = !1;
1783
- if (b && (p = b.menus ?? []), !p.length) {
1784
- const { menus: y, originalMenus: k, err: w } = await mn(f);
1785
- if (w) return !1;
1786
- p = y ?? [], d = k ?? [];
1779
+ }, c = async (p) => {
1780
+ if (p.routeUrl && !a.includes(p.routeUrl)) return !0;
1781
+ const h = p.code ?? "", b = (J().subAppList ?? []).find((_) => _.code === h);
1782
+ let f = [], d = [], m = !1;
1783
+ if (b && (f = b.menus ?? []), !f.length) {
1784
+ const { menus: _, originalMenus: T, err: B } = await mn(h);
1785
+ if (B) return !1;
1786
+ f = _ ?? [], d = T ?? [];
1787
1787
  }
1788
- if (p.length ? wt(p) || (await rt({ title: "提示", content: "此应用菜单已过期/已收回/配置有误<br/>无法使用" }), g = !0) : (await rt({ title: "提示", content: "此应用未配置菜单/无菜单权限<br/>无法使用" }), g = !0), g) return !1;
1789
- const _ = { ...A, menus: p, originalMenus: d };
1790
- return Ae([{ key: "subAppList", value: _ }]), !0;
1791
- }, s = async (A) => {
1792
- var N, W, se, Te, ft;
1793
- const { microApp: f = null, menuCode: S = "", menuPath: b = "", route: p = {} } = A;
1794
- let d = p;
1795
- if (!f && b) {
1788
+ if (f.length ? wt(f) || (await rt({ title: "提示", content: "此应用菜单已过期/已收回/配置有误<br/>无法使用" }), m = !0) : (await rt({ title: "提示", content: "此应用未配置菜单/无菜单权限<br/>无法使用" }), m = !0), m) return !1;
1789
+ const y = { ...p, menus: f, originalMenus: d };
1790
+ return Ae([{ key: "subAppList", value: y }]), !0;
1791
+ }, i = async (p) => {
1792
+ var H, F, se, Te, ft;
1793
+ const { microApp: h = null, menuCode: S = "", menuPath: b = "", route: f = {} } = p;
1794
+ let d = f;
1795
+ if (!h && b) {
1796
1796
  if (l(), !(a && a.find((G) => b.startsWith("/" + G) || b.startsWith(G)))) return;
1797
1797
  n.push({ path: b, query: d.query });
1798
1798
  return;
1799
1799
  }
1800
- const g = ((N = d.meta) == null ? void 0 : N.showLayout) ?? !0;
1801
- let _ = ((W = d.query) == null ? void 0 : W.showLayout) ?? !0;
1802
- _ === "false" && (_ = !1);
1803
- const y = (f == null ? void 0 : f.openType) ?? 1, k = (f == null ? void 0 : f.type) ?? 1;
1804
- if (f.routeUrl && !a.includes(f.routeUrl)) {
1800
+ const m = ((H = d.meta) == null ? void 0 : H.showLayout) ?? !0;
1801
+ let y = ((F = d.query) == null ? void 0 : F.showLayout) ?? !0;
1802
+ y === "false" && (y = !1);
1803
+ const _ = (h == null ? void 0 : h.openType) ?? 1, T = (h == null ? void 0 : h.type) ?? 1;
1804
+ if (h.routeUrl && !a.includes(h.routeUrl)) {
1805
1805
  l();
1806
- const ne = ((se = F()) == null ? void 0 : se.subAppList) ?? [];
1807
- if ((ne == null ? void 0 : ne.find((fe) => fe.code === f.code)) || ne == null || ne.push(f), Ae([
1808
- { key: "currentSubApp", value: f },
1809
- { key: "currentSubAppCode", value: f.code },
1806
+ const ne = ((se = J()) == null ? void 0 : se.subAppList) ?? [];
1807
+ if ((ne == null ? void 0 : ne.find((fe) => fe.code === h.code)) || ne == null || ne.push(h), Ae([
1808
+ { key: "currentSubApp", value: h },
1809
+ { key: "currentSubAppCode", value: h.code },
1810
1810
  { key: "subAppList", value: ne }
1811
1811
  ]), ne.forEach((fe) => {
1812
1812
  const Oe = { ...fe, value: fe.code, label: fe.name };
1813
1813
  D.nav.appendItem(Oe);
1814
- }), D.nav.setActiveItem(f.code), f.routeUrl.includes("entrance=main")) {
1815
- n.push({ path: f.routeUrl, query: { ...d.query, app: f.code } });
1814
+ }), D.nav.setActiveItem(h.code), h.routeUrl.includes("entrance=main")) {
1815
+ n.push({ path: h.routeUrl, query: { ...d.query, app: h.code } });
1816
1816
  return;
1817
1817
  }
1818
- if (y === 1 && k === 2) {
1819
- const fe = Wt(Ut(Ft(f.routeUrl)));
1818
+ if (_ === 1 && T === 2) {
1819
+ const fe = Wt(Ut(Ft(h.routeUrl)));
1820
1820
  n.push({
1821
1821
  path: Je,
1822
1822
  query: {
1823
1823
  ...d.query,
1824
- app: f.code,
1824
+ app: h.code,
1825
1825
  iframeSrc: fe
1826
1826
  }
1827
1827
  });
@@ -1829,25 +1829,25 @@ const wt = (n, e = "") => {
1829
1829
  }
1830
1830
  }
1831
1831
  const {
1832
- menuConfig: w = [],
1833
- currentApp: P = null,
1834
- currentMenu: C = null,
1835
- microPath: T = "",
1836
- query: R = {}
1837
- } = await jl({ microApp: f, menuCode: S, menuPath: b, route: d });
1838
- if (C && (d = {
1839
- path: T || `/${C.applicationPath}${C.routeUrl}`.replace(/\/\//g, "/"),
1840
- query: { ...R, app: C.applicationCode, menu: C.code },
1832
+ menuConfig: B = [],
1833
+ currentApp: L = null,
1834
+ currentMenu: w = null,
1835
+ microPath: C = "",
1836
+ query: P = {}
1837
+ } = await jl({ microApp: h, menuCode: S, menuPath: b, route: d });
1838
+ if (w && (d = {
1839
+ path: C || `/${w.applicationPath}${w.routeUrl}`.replace(/\/\//g, "/"),
1840
+ query: { ...P, app: w.applicationCode, menu: w.code },
1841
1841
  meta: { ...(d == null ? void 0 : d.meta) ?? {} }
1842
- }), P && (P == null ? void 0 : P.code) !== (f == null ? void 0 : f.code)) {
1843
- if (P.fixed && (n.push(P.path), l(), D.nav.setActiveItem(P.path)), !P.fixed) {
1844
- const ne = (Te = F().subAppList) == null ? void 0 : Te.find((Oe) => Oe.code === P.code), G = ae().preTab[P.code], fe = { ...(G == null ? void 0 : G.query) ?? {} };
1845
- await s({ microApp: ne, menuCode: (G == null ? void 0 : G.code) ?? "", route: { query: fe } });
1842
+ }), L && (L == null ? void 0 : L.code) !== (h == null ? void 0 : h.code)) {
1843
+ if (L.fixed && (n.push(L.path), l(), D.nav.setActiveItem(L.path)), !L.fixed) {
1844
+ const ne = (Te = J().subAppList) == null ? void 0 : Te.find((Oe) => Oe.code === L.code), G = ae().preTab[L.code], fe = { ...(G == null ? void 0 : G.query) ?? {} };
1845
+ await i({ microApp: ne, menuCode: (G == null ? void 0 : G.code) ?? "", route: { query: fe } });
1846
1846
  }
1847
1847
  return;
1848
1848
  }
1849
- const $ = P || f;
1850
- if (!C && b) {
1849
+ const $ = L || h;
1850
+ if (!w && b) {
1851
1851
  n.push({
1852
1852
  path: b,
1853
1853
  query: {
@@ -1857,11 +1857,11 @@ const wt = (n, e = "") => {
1857
1857
  });
1858
1858
  return;
1859
1859
  }
1860
- if (g && _) {
1861
- (ft = F().subAppList) == null || ft.forEach((G) => {
1860
+ if (m && y) {
1861
+ (ft = J().subAppList) == null || ft.forEach((G) => {
1862
1862
  const fe = { ...G, value: G.code, label: G.name };
1863
1863
  D.nav.appendItem(fe);
1864
- }), D.nav.setActiveItem($.code), D.menu.setItems(w);
1864
+ }), D.nav.setActiveItem($.code), D.menu.setItems(B);
1865
1865
  const ne = ae().tabMap[$.code] ?? [];
1866
1866
  ne.length && ne.forEach((G) => {
1867
1867
  D.tab.appendItem({
@@ -1871,11 +1871,11 @@ const wt = (n, e = "") => {
1871
1871
  });
1872
1872
  });
1873
1873
  }
1874
- e({ currentMenu: C, microPath: T, route: d });
1875
- }, u = async (A) => {
1876
- var f;
1877
- if (ee.innerSet = !0, A.fixed) {
1878
- n.push(A.path), D.menu.setItems([]), D.tab.setItems([]), D.nav.setActiveItem(A.path), Ae([
1874
+ e({ currentMenu: w, microPath: C, route: d });
1875
+ }, u = async (p) => {
1876
+ var h;
1877
+ if (ee.innerSet = !0, p.fixed) {
1878
+ n.push(p.path), D.menu.setItems([]), D.tab.setItems([]), D.nav.setActiveItem(p.path), Ae([
1879
1879
  { key: "currentSubAppCode", value: "" },
1880
1880
  { key: "currentSubApp", value: {} }
1881
1881
  ]), ce([
@@ -1884,87 +1884,87 @@ const wt = (n, e = "") => {
1884
1884
  ]);
1885
1885
  return;
1886
1886
  }
1887
- if (!A.fixed) {
1888
- const S = (f = F().subAppList) == null ? void 0 : f.find((g) => g.code === A.code), b = ae().preTab[A.code], p = (b == null ? void 0 : b.code) ?? "", d = { ...(b == null ? void 0 : b.query) ?? {} };
1889
- await s({ microApp: S, menuCode: p, route: { query: d } });
1887
+ if (!p.fixed) {
1888
+ const S = (h = J().subAppList) == null ? void 0 : h.find((m) => m.code === p.code), b = ae().preTab[p.code], f = (b == null ? void 0 : b.code) ?? "", d = { ...(b == null ? void 0 : b.query) ?? {} };
1889
+ await i({ microApp: S, menuCode: f, route: { query: d } });
1890
1890
  }
1891
1891
  };
1892
1892
  return {
1893
1893
  beforeEntryApp: c,
1894
- entryApp: s,
1894
+ entryApp: i,
1895
1895
  changeApp: u,
1896
- deleteApp: async (A) => {
1896
+ deleteApp: async (p) => {
1897
1897
  var d;
1898
- const f = F();
1899
- if (!((d = f.subAppList) != null && d.length)) return;
1900
- const S = f.subAppList.findIndex((g) => g.code === A.code);
1898
+ const h = J();
1899
+ if (!((d = h.subAppList) != null && d.length)) return;
1900
+ const S = h.subAppList.findIndex((m) => m.code === p.code);
1901
1901
  if (S === -1) return;
1902
- const b = ae().tabMap[A.code] ?? [];
1902
+ const b = ae().tabMap[p.code] ?? [];
1903
1903
  if (b.length) {
1904
- const g = b.map((_) => _.path);
1905
- t(g);
1904
+ const m = b.map((y) => y.path);
1905
+ t(m);
1906
1906
  }
1907
- let p = null;
1908
- if (f.currentSubAppCode === A.code && (S + 1 !== f.subAppList.length ? f.subAppList[S + 1] && (p = f.subAppList[S + 1]) : f.subAppList[S - 1] && (p = f.subAppList[S - 1])), f.subAppList.splice(S, 1), Ae([{ key: "subAppList", value: f.subAppList }]), ce([
1909
- { key: `preTab:${A.code}`, value: {} },
1910
- { key: `tabMap:${A.code}`, value: [] }
1911
- ]), p) {
1912
- const g = { ...p, value: p.code, label: p.name };
1913
- await u(g), D.nav.setActiveItem(p.code);
1907
+ let f = null;
1908
+ if (h.currentSubAppCode === p.code && (S + 1 !== h.subAppList.length ? h.subAppList[S + 1] && (f = h.subAppList[S + 1]) : h.subAppList[S - 1] && (f = h.subAppList[S - 1])), h.subAppList.splice(S, 1), Ae([{ key: "subAppList", value: h.subAppList }]), ce([
1909
+ { key: `preTab:${p.code}`, value: {} },
1910
+ { key: `tabMap:${p.code}`, value: [] }
1911
+ ]), f) {
1912
+ const m = { ...f, value: f.code, label: f.name };
1913
+ await u(m), D.nav.setActiveItem(f.code);
1914
1914
  }
1915
- if (!f.subAppList.length) {
1915
+ if (!h.subAppList.length) {
1916
1916
  D.menu.setItems([]), D.tab.setItems([]);
1917
- const g = Po.find((_) => _.value === Ie);
1918
- g && u(g), ln(), xo();
1917
+ const m = Po.find((y) => y.value === Ie);
1918
+ m && u(m), ln(), xo();
1919
1919
  }
1920
1920
  }
1921
1921
  };
1922
1922
  }, Ot = () => {
1923
1923
  const n = Ge();
1924
1924
  let { mainAppName: e = "", microAppName: t = "", microApps: o = [] } = He();
1925
- return !e && t && (o = [{ name: t }]), o.map((i) => i.name), { entryMenu: async (i) => {
1925
+ return !e && t && (o = [{ name: t }]), o.map((s) => s.name), { entryMenu: async (s) => {
1926
1926
  var b;
1927
- const { currentMenu: a, route: l = {}, microPath: c = "" } = i;
1927
+ const { currentMenu: a, route: l = {}, microPath: c = "" } = s;
1928
1928
  if (!a) return;
1929
- let s = { ...l.query, app: a.applicationCode, menu: a.code };
1930
- const u = (a == null ? void 0 : a.openType) ?? 1, m = (a == null ? void 0 : a.type) ?? 1;
1931
- let A = "";
1929
+ let i = { ...l.query, app: a.applicationCode, menu: a.code };
1930
+ const u = (a == null ? void 0 : a.openType) ?? 1, A = (a == null ? void 0 : a.type) ?? 1;
1931
+ let p = "";
1932
1932
  if (u === 1)
1933
- if (m === 1)
1933
+ if (A === 1)
1934
1934
  if (a.routeUrl.startsWith(Je)) {
1935
- ue.hideAllMicroApp(), A = Je;
1936
- const p = Wr(a.routeUrl, "iframeSrc");
1937
- s = { ...s, iframeSrc: p }, n.push({ path: A, query: s });
1938
- } else a.applicationPath && (A = c || a.routeUrl, A = `/${a.applicationPath}${A}`.replace(/\/\//g, "/"), n.push({ path: A, query: s }));
1935
+ ue.hideAllMicroApp(), p = Je;
1936
+ const f = Wr(a.routeUrl, "iframeSrc");
1937
+ i = { ...i, iframeSrc: f }, n.push({ path: p, query: i });
1938
+ } else a.applicationPath && (p = c || a.routeUrl, p = `/${a.applicationPath}${p}`.replace(/\/\//g, "/"), n.push({ path: p, query: i }));
1939
1939
  else {
1940
- ue.hideAllMicroApp(), A = Je;
1941
- const p = Wt(Ut(Ft(a.routeUrl)));
1942
- s = { ...s, iframeSrc: p }, n.push({ path: A, query: s });
1940
+ ue.hideAllMicroApp(), p = Je;
1941
+ const f = Wt(Ut(Ft(a.routeUrl)));
1942
+ i = { ...i, iframeSrc: f }, n.push({ path: p, query: i });
1943
1943
  }
1944
1944
  if (u === 2) {
1945
- let p = m === 1 ? `/${a.applicationPath}${a.routeUrl}`.replace(/\/\//g, "/") : a.routeUrl;
1946
- p = Wt(Ut(Ft(p))), ee.innerSet ? (ue.hideAllMicroApp(), A = Bo, n.push({ path: A, query: s }), p && window.open(p, "_blank")) : m === 1 && (A = p, s = { ...s, showLayout: !1 }, n.push({
1947
- path: A,
1948
- query: s
1945
+ let f = A === 1 ? `/${a.applicationPath}${a.routeUrl}`.replace(/\/\//g, "/") : a.routeUrl;
1946
+ f = Wt(Ut(Ft(f))), ee.innerSet ? (ue.hideAllMicroApp(), p = Bo, n.push({ path: p, query: i }), f && window.open(f, "_blank")) : A === 1 && (p = f, i = { ...i, showLayout: !1 }, n.push({
1947
+ path: p,
1948
+ query: i
1949
1949
  }));
1950
1950
  }
1951
- const f = ((b = l.meta) == null ? void 0 : b.showLayout) ?? !0;
1952
- let S = (s == null ? void 0 : s.showLayout) ?? !0;
1953
- if (S === "false" && (S = !1), f && S) {
1954
- const p = {
1955
- currentApplication: F().currentSubApp.routeUrl,
1951
+ const h = ((b = l.meta) == null ? void 0 : b.showLayout) ?? !0;
1952
+ let S = (i == null ? void 0 : i.showLayout) ?? !0;
1953
+ if (S === "false" && (S = !1), h && S) {
1954
+ const f = {
1955
+ currentApplication: J().currentSubApp.routeUrl,
1956
1956
  applicationPath: a.applicationPath,
1957
1957
  applicationCode: a.applicationCode,
1958
1958
  menuId: a.id,
1959
1959
  code: a.code,
1960
1960
  name: (a == null ? void 0 : a.tabName) ?? a.name,
1961
- path: A,
1962
- query: s
1961
+ path: p,
1962
+ query: i
1963
1963
  };
1964
1964
  D.tab.appendItem({
1965
- ...p,
1966
- value: p.code,
1967
- label: p.name
1965
+ ...f,
1966
+ value: f.code,
1967
+ label: f.name
1968
1968
  }), D.tab.setActiveItem(a.code), D.menu.setActiveItem(a.id), Mo(a.code), ce([
1969
1969
  {
1970
1970
  key: "currentCode",
@@ -1972,99 +1972,102 @@ const wt = (n, e = "") => {
1972
1972
  },
1973
1973
  {
1974
1974
  key: "currentTab",
1975
- value: p
1975
+ value: f
1976
1976
  },
1977
1977
  {
1978
1978
  key: `preTab:${a.applicationCode}`,
1979
- value: p
1979
+ value: f
1980
1980
  },
1981
1981
  {
1982
1982
  key: `tabMap:${a.applicationCode}`,
1983
- value: p
1983
+ value: f
1984
1984
  }
1985
1985
  ]);
1986
1986
  }
1987
1987
  } };
1988
1988
  }, wu = (n, e, t) => {
1989
- const { entryApp: o } = et(), r = Ge(), i = async (c) => {
1990
- var g, _, y, k;
1991
- let s = { ...c }, { showLayout: u = !0 } = s.query;
1992
- u === "false" && (u = !1);
1993
- const m = async () => {
1994
- var C, T;
1995
- let w = F().appcategorys ?? [];
1989
+ const { entryApp: o } = et(), r = Ge();
1990
+ let { mainAppName: s = "", microAppName: a = "", microApps: l = [] } = He();
1991
+ !s && a && (l = [{ name: a }]);
1992
+ const c = async (A) => {
1993
+ var _, T, B, L;
1994
+ let p = { ...A }, { showLayout: h = !0 } = p.query;
1995
+ h === "false" && (h = !1);
1996
+ const S = async () => {
1997
+ var P, $;
1998
+ let w = J().appcategorys ?? [];
1996
1999
  if (!Array.isArray(w)) return [];
1997
- if (s.query) {
1998
- const R = ((C = s.query) == null ? void 0 : C.project) ?? ((T = s.query) == null ? void 0 : T.projectId) ?? "";
1999
- if (!w.length || R && R !== Pe().id) {
2000
+ if (p.query) {
2001
+ const H = ((P = p.query) == null ? void 0 : P.project) ?? (($ = p.query) == null ? void 0 : $.projectId) ?? "";
2002
+ if (!w.length || H && H !== Pe().id) {
2000
2003
  await e();
2001
- const { navConfig: $ } = await ar();
2002
- $ && (w = $);
2004
+ const { navConfig: F } = await ar();
2005
+ F && (w = F);
2003
2006
  }
2004
2007
  }
2005
- return w.map((R) => R.apps).flat() ?? [];
2006
- }, A = He().microApps ?? [], f = A.filter((w) => w.public);
2007
- if (f.length) {
2008
- const w = f.find(
2009
- (P) => s.path.startsWith("/" + P.name) || s.path.startsWith(P.name)
2008
+ return w.map((H) => H.apps).flat() ?? [];
2009
+ }, b = l.filter((w) => w.public);
2010
+ if (b.length) {
2011
+ const w = b.find(
2012
+ (C) => p.path.startsWith("/" + C.name) || p.path.startsWith(C.name)
2010
2013
  );
2011
2014
  if (w) {
2012
2015
  o({
2013
2016
  microApp: { routeUrl: w.name, code: "" },
2014
- menuCode: s.query.menu,
2015
- menuPath: s.path,
2016
- route: s
2017
+ menuCode: p.query.menu,
2018
+ menuPath: p.path,
2019
+ route: p
2017
2020
  });
2018
2021
  return;
2019
2022
  }
2020
2023
  }
2021
- const S = await m(), b = S.map((w) => w.code), p = ((g = s.query) == null ? void 0 : g.app) ?? "", d = ((_ = F()) == null ? void 0 : _.subAppList) ?? [];
2022
- if (d.length) {
2023
- const w = d.filter((C) => C.code !== p && !b.includes(C.code)), P = d.filter(
2024
- (C) => p === C.code || b.includes(C.code)
2024
+ const f = await S(), d = f.map((w) => w.code), m = ((_ = p.query) == null ? void 0 : _.app) ?? "", y = ((T = J()) == null ? void 0 : T.subAppList) ?? [];
2025
+ if (y.length) {
2026
+ const w = y.filter((P) => P.code !== m && !d.includes(P.code)), C = y.filter(
2027
+ (P) => m === P.code || d.includes(P.code)
2025
2028
  );
2026
- Ae([{ key: "subAppList", value: P }]), w && w.length && w.forEach((C) => {
2029
+ Ae([{ key: "subAppList", value: C }]), w && w.length && w.forEach((P) => {
2027
2030
  ce([
2028
- { key: `preTab:${C.code}`, value: {} },
2029
- { key: `tabMap:${C.code}`, value: [] }
2031
+ { key: `preTab:${P.code}`, value: {} },
2032
+ { key: `tabMap:${P.code}`, value: [] }
2030
2033
  ]);
2031
2034
  });
2032
2035
  }
2033
- if (s.query.app) {
2034
- let w = S.find((P) => P.code === s.query.app);
2035
- if (!w && u) {
2036
- const { currentApp: P } = Gt(s.query.app);
2037
- if (P) {
2038
- w = P;
2039
- const T = (ae().preTab ?? {})[w.code];
2040
- s = {}, T && (s.path = `/${T.applicationPath}${T.path}`.replace(/\/\//g, "/"), s.query = T.query);
2036
+ if (p.query.app) {
2037
+ let w = f.find((C) => C.code === p.query.app);
2038
+ if (!w && h) {
2039
+ const { currentApp: C } = Gt(p.query.app);
2040
+ if (C) {
2041
+ w = C;
2042
+ const $ = (ae().preTab ?? {})[w.code];
2043
+ p = {}, $ && (p.path = `/${$.applicationPath}${$.path}`.replace(/\/\//g, "/"), p.query = $.query);
2041
2044
  }
2042
2045
  }
2043
- w != null && w.fixed ? (r.push(w.path), D.menu.setItems([]), D.tab.setItems([]), D.nav.setActiveItem(w.path)) : o({ microApp: w, menuCode: s.query.menu, menuPath: s.path, route: s });
2046
+ w != null && w.fixed ? (r.push(w.path), D.menu.setItems([]), D.tab.setItems([]), D.nav.setActiveItem(w.path)) : o({ microApp: w, menuCode: p.query.menu, menuPath: p.path, route: p });
2044
2047
  return;
2045
2048
  } else {
2046
- const w = A && A.find(
2047
- (P) => s.path.startsWith("/" + P.name) || s.path.startsWith(P.name)
2049
+ const w = l && l.find(
2050
+ (C) => p.path.startsWith("/" + C.name) || p.path.startsWith(C.name)
2048
2051
  );
2049
2052
  if (w) {
2050
- let P = S.find((C) => C.routeUrl === w.name);
2051
- P || (P = S.find(
2052
- (C) => (C == null ? void 0 : C.routePath) && C.routePath.length && C.routePath.includes(w.name)
2053
+ let C = f.find((P) => P.routeUrl === w.name);
2054
+ C || (C = f.find(
2055
+ (P) => (P == null ? void 0 : P.routePath) && P.routePath.length && P.routePath.includes(w.name)
2053
2056
  )), o({
2054
- microApp: P,
2055
- menuCode: s.query.menu,
2056
- menuPath: s.path,
2057
- route: s
2057
+ microApp: C,
2058
+ menuCode: p.query.menu,
2059
+ menuPath: p.path,
2060
+ route: p
2058
2061
  });
2059
2062
  return;
2060
2063
  }
2061
2064
  }
2062
- if (u) {
2063
- (k = (y = F()) == null ? void 0 : y.subAppList) == null || k.forEach((P) => {
2064
- const C = { ...P, value: P.code, label: P.name };
2065
- D.nav.appendItem(C);
2065
+ if (h) {
2066
+ (L = (B = J()) == null ? void 0 : B.subAppList) == null || L.forEach((C) => {
2067
+ const P = { ...C, value: C.code, label: C.name };
2068
+ D.nav.appendItem(P);
2066
2069
  });
2067
- const w = n.value.find((P) => P.path === location.pathname);
2070
+ const w = n.value.find((C) => C.path === location.pathname);
2068
2071
  w && (D.nav.setActiveItem(w.path), D.menu.setItems([]), D.tab.setItems([]), Ae([
2069
2072
  { key: "currentSubAppCode", value: "" },
2070
2073
  { key: "currentSubApp", value: {} }
@@ -2074,16 +2077,16 @@ const wt = (n, e = "") => {
2074
2077
  ]));
2075
2078
  }
2076
2079
  };
2077
- let a = "", l = {};
2080
+ let i = "", u = {};
2078
2081
  oe(
2079
2082
  () => r.currentRoute.value,
2080
- async (c) => {
2081
- if (!(c.path === a && Nt(c.query, l))) {
2082
- if (a = qe(c.path), l = qe(c.query), await t(), ee.innerSet) {
2083
+ async (A) => {
2084
+ if (!(A.path === i && Nt(A.query, u))) {
2085
+ if (i = qe(A.path), u = qe(A.query), await t(), ee.innerSet) {
2083
2086
  ee.innerSet = !1;
2084
2087
  return;
2085
2088
  }
2086
- i(c);
2089
+ c(A);
2087
2090
  }
2088
2091
  }
2089
2092
  );
@@ -2110,24 +2113,24 @@ const wt = (n, e = "") => {
2110
2113
  logout: "true"
2111
2114
  };
2112
2115
  t.ssoLocale && (c.locale = "locale");
2113
- const s = Object.keys(c).map((m) => `${m}=${c[m]}`).join("&"), u = `${t.baseURL}${a.logout}?${s}`;
2116
+ const i = Object.keys(c).map((A) => `${A}=${c[A]}`).join("&"), u = `${t.baseURL}${a.logout}?${i}`;
2114
2117
  window.__isAutoCloseApp = !1, location.replace(u), sessionStorage.clear(), Xr(), localStorage.removeItem("idelTime");
2115
- }, { entryApp: r } = et(), i = async () => {
2116
- const a = "personCenter", c = (F().appcategorys || []).map((f) => f.apps).flat(), { originalMenus: s = [] } = await mn(a), m = ye(s).filter((f) => f.isMenu && f.routeUrl).find((f) => f.routeUrl === "/userInfo");
2117
- if (m != null && m.disable || m != null && m.expired) {
2118
- const { title: f, content: S, desc: b } = await vn(m);
2119
- await rt({ title: f, content: S, desc: b });
2118
+ }, { entryApp: r } = et(), s = async () => {
2119
+ const a = "personCenter", c = (J().appcategorys || []).map((h) => h.apps).flat(), { originalMenus: i = [] } = await mn(a), A = ye(i).filter((h) => h.isMenu && h.routeUrl).find((h) => h.routeUrl === "/userInfo");
2120
+ if (A != null && A.disable || A != null && A.expired) {
2121
+ const { title: h, content: S, desc: b } = await vn(A);
2122
+ await rt({ title: h, content: S, desc: b });
2120
2123
  return;
2121
2124
  }
2122
- const A = c.find((f) => f.code === a);
2123
- A && r({ microApp: A, menuPath: `/${A.routeUrl}/userInfo` });
2125
+ const p = c.find((h) => h.code === a);
2126
+ p && r({ microApp: p, menuPath: `/${p.routeUrl}/userInfo` });
2124
2127
  };
2125
2128
  return D.nav.addEventListener("onUserCommandChange", (a) => {
2126
- var c, s;
2129
+ var c, i;
2127
2130
  ({
2128
2131
  0: (c = e.value) == null ? void 0 : c.openDialog,
2129
- 1: i,
2130
- 2: (s = n.value) == null ? void 0 : s.openDialog,
2132
+ 1: s,
2133
+ 2: (i = n.value) == null ? void 0 : i.openDialog,
2131
2134
  3: o
2132
2135
  })[a]();
2133
2136
  }), {
@@ -2141,7 +2144,7 @@ const wt = (n, e = "") => {
2141
2144
  D.nav.addEventListener("changeEnterpriseHandle", () => {
2142
2145
  r();
2143
2146
  });
2144
- const i = () => {
2147
+ const s = () => {
2145
2148
  Ro(), Ns(), window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`);
2146
2149
  };
2147
2150
  return {
@@ -2149,35 +2152,35 @@ const wt = (n, e = "") => {
2149
2152
  userId: t,
2150
2153
  tenantId: o,
2151
2154
  changeEnterprise: async (l) => {
2152
- const [c, s] = await Iu().run({ tenant: l });
2155
+ const [c, i] = await Iu().run({ tenant: l });
2153
2156
  if (c) return;
2154
2157
  e.value = !1;
2155
- const { access_token: u = "", refresh_token: m = "", expires_in: A = 0, sub: f = "", name: S = "", flag: b = "", tenant: p = "" } = s, d = {
2158
+ const { access_token: u = "", refresh_token: A = "", expires_in: p = 0, sub: h = "", name: S = "", flag: b = "", tenant: f = "" } = i, d = {
2156
2159
  accessToken: u,
2157
- accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(A) * 1e3,
2158
- refreshToken: m,
2159
- info: s
2160
+ accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(p) * 1e3,
2161
+ refreshToken: A,
2162
+ info: i
2160
2163
  };
2161
2164
  Yr().save(d), Co(d);
2162
- const g = {
2163
- id: f,
2165
+ const m = {
2166
+ id: h,
2164
2167
  name: S,
2165
2168
  flag: b,
2166
- tenantId: p
2169
+ tenantId: f
2167
2170
  };
2168
- sessionStorage.setItem("hotentUserInfo", JSON.stringify(g)), es(u);
2169
- let _ = "";
2171
+ sessionStorage.setItem("hotentUserInfo", JSON.stringify(m)), es(u);
2172
+ let y = "";
2170
2173
  if (n != null && n.ssoLocale)
2171
- _ = `http://127.0.0.1:5000/oauth/refreshOauthToken?tenantId=${l}`;
2174
+ y = `http://127.0.0.1:5000/oauth/refreshOauthToken?tenantId=${l}`;
2172
2175
  else {
2173
- const [y, k] = await Eu().run();
2174
- k != null && k.loginHost && (_ = `${k.loginHost}/oauth/refreshOauthToken?tenantId=${l}`);
2176
+ const [_, T] = await Eu().run();
2177
+ T != null && T.loginHost && (y = `${T.loginHost}/oauth/refreshOauthToken?tenantId=${l}`);
2175
2178
  }
2176
- if (_) {
2177
- const y = document.createElement("iframe");
2178
- y.src = _, y.style.display = "none", document.body.appendChild(y), setTimeout(() => i(), 300);
2179
+ if (y) {
2180
+ const _ = document.createElement("iframe");
2181
+ _.src = y, _.style.display = "none", document.body.appendChild(_), setTimeout(() => s(), 300);
2179
2182
  } else
2180
- i();
2183
+ s();
2181
2184
  }
2182
2185
  };
2183
2186
  }, Su = () => {
@@ -2193,24 +2196,24 @@ const wt = (n, e = "") => {
2193
2196
  }, Tu = Be.get("/menu/search"), ku = Be.get("/searchhistory"), Pu = Be.post("/searchhistory"), Bu = Be.delete("/searchhistory"), Ou = Be.delete("/searchhistory/deleteone"), Du = () => {
2194
2197
  const n = async () => {
2195
2198
  const [o, r] = await ku().run();
2196
- return o ? [] : r.map((i) => i.clickData).filter((i) => i.routeUrl);
2199
+ return o ? [] : r.map((s) => s.clickData).filter((s) => s.routeUrl);
2197
2200
  }, e = async (o) => {
2198
- const [r, i] = await Tu().run({ name: o });
2199
- return r ? [] : i.filter((a) => a.routeUrl);
2201
+ const [r, s] = await Tu().run({ name: o });
2202
+ return r ? [] : s.filter((a) => a.routeUrl);
2200
2203
  }, { entryApp: t } = et();
2201
2204
  return D.nav.addEventListener("searchToPage", async (o) => {
2202
- const { item: r, keyword: i, cb: a } = o;
2205
+ const { item: r, keyword: s, cb: a } = o;
2203
2206
  if (r != null && r.disable || r != null && r.expired) {
2204
- const { title: u, content: m, desc: A } = await vn(r);
2205
- await rt({ title: u, content: m, desc: A });
2207
+ const { title: u, content: A, desc: p } = await vn(r);
2208
+ await rt({ title: u, content: A, desc: p });
2206
2209
  return;
2207
2210
  }
2208
- await Pu().run({ searchVal: i, clickData: r });
2209
- const s = ((F().appcategorys ?? []).map((u) => u.apps).flat() ?? []).find((u) => u.code === r.applicationCode);
2210
- s && (t({ microApp: s, menuCode: r.code }), a());
2211
+ await Pu().run({ searchVal: s, clickData: r });
2212
+ const i = ((J().appcategorys ?? []).map((u) => u.apps).flat() ?? []).find((u) => u.code === r.applicationCode);
2213
+ i && (t({ microApp: i, menuCode: r.code }), a());
2211
2214
  }), D.nav.addEventListener("deleteSearchItem", async (o) => {
2212
- const { value: r, cb: i } = o;
2213
- await Ou().run({ id: r }), i();
2215
+ const { value: r, cb: s } = o;
2216
+ await Ou().run({ id: r }), s();
2214
2217
  }), D.nav.addEventListener("clearSearchList", async (o) => {
2215
2218
  const { cb: r } = o;
2216
2219
  await Bu().run(), r();
@@ -2225,18 +2228,18 @@ const wt = (n, e = "") => {
2225
2228
  routeKeepAliveVisible: !0
2226
2229
  }), $u = () => {
2227
2230
  ue.addEventListenerFromMicroApp("iot:change-instance", (n) => {
2228
- const e = F(), t = e.currentSubAppCode;
2231
+ const e = J(), t = e.currentSubAppCode;
2229
2232
  let o = _t(t);
2230
- o.forEach((i) => {
2231
- i.fixed && (i.name = n.data.instanceInfo.instanceName);
2233
+ o.forEach((s) => {
2234
+ s.fixed && (s.name = n.data.instanceInfo.instanceName);
2232
2235
  }), D.menu.setItems(o);
2233
2236
  const r = e.subAppList;
2234
- r == null || r.forEach((i) => {
2235
- i.code === t && (i.menus = o);
2237
+ r == null || r.forEach((s) => {
2238
+ s.code === t && (s.menus = o);
2236
2239
  }), Ae([
2237
2240
  {
2238
2241
  key: "currentSubApp",
2239
- value: r == null ? void 0 : r.find((i) => i.code === t)
2242
+ value: r == null ? void 0 : r.find((s) => s.code === t)
2240
2243
  },
2241
2244
  {
2242
2245
  key: "subAppList",
@@ -2247,14 +2250,14 @@ const wt = (n, e = "") => {
2247
2250
  }, Lu = (n) => {
2248
2251
  ["personcenter", "rightmanage"].forEach((t) => {
2249
2252
  ue.addEventListenerFromMicroApp(`${t}:change-userinfo`, (o) => {
2250
- const { userInfo: r } = o.data, i = r != null && r.headPicture ? Xt(r.headPicture) : void 0;
2251
- D.nav.setUserInfo({ headPicture: i, commandList: n.value }), sessionStorage.setItem("userInfo", JSON.stringify(r));
2253
+ const { userInfo: r } = o.data, s = r != null && r.headPicture ? Xt(r.headPicture) : void 0;
2254
+ D.nav.setUserInfo({ headPicture: s, commandList: n.value }), sessionStorage.setItem("userInfo", JSON.stringify(r));
2252
2255
  });
2253
2256
  });
2254
2257
  }, xu = () => {
2255
2258
  ue.addEventListenerFromMicroApp("devicePanelShow", (n) => {
2256
- const { deviceId: e = "", panelCode: t = "", deviceName: o = "", x: r = 0, y: i = 0, isCenter: a = !1 } = n.data;
2257
- So(e, t, o, r, i, a);
2259
+ const { deviceId: e = "", panelCode: t = "", deviceName: o = "", x: r = 0, y: s = 0, isCenter: a = !1 } = n.data;
2260
+ So(e, t, o, r, s, a);
2258
2261
  }), ue.addEventListenerFromMicroApp("closeDevicePanel", (n) => {
2259
2262
  ns();
2260
2263
  }), ue.addEventListenerFromMicroApp("alarmDevicePanelShow", (n) => {
@@ -2266,9 +2269,9 @@ const wt = (n, e = "") => {
2266
2269
  }, Mu = nn.get("/platform/login/pwd-advance-notify-check"), Ru = () => {
2267
2270
  const n = E([]), e = E(null), t = E([]), { entryApp: o } = bt.hooks.useEntryApp(), r = () => {
2268
2271
  var c;
2269
- const l = (((c = F().appcategorys) == null ? void 0 : c.map((s) => s.apps).flat()) ?? []).find((s) => s.code === "messagecenter");
2272
+ const l = (((c = J().appcategorys) == null ? void 0 : c.map((i) => i.apps).flat()) ?? []).find((i) => i.code === "messagecenter");
2270
2273
  l && o({ microApp: l });
2271
- }, i = () => {
2274
+ }, s = () => {
2272
2275
  e.value = new an({
2273
2276
  url: "/api/messagecenter/message/v1/innersend",
2274
2277
  reconnectWhenClose: !0,
@@ -2279,23 +2282,23 @@ const wt = (n, e = "") => {
2279
2282
  if (ue.sendMessageToMicroApp("enterpriseadmin/messagecenter", "message", { msgList: a }), window.self !== window.top) return;
2280
2283
  const c = Pe().id;
2281
2284
  n.value = a.filter(
2282
- (s) => s.projectId === c || s.projectId === 0 || s.projectId === "0"
2283
- ), t.value && t.value.length && (t.value.forEach((s) => yt.close(s)), t.value = []), await Fe(), n.value.forEach((s, u) => {
2285
+ (i) => i.projectId === c || i.projectId === 0 || i.projectId === "0"
2286
+ ), t.value && t.value.length && (t.value.forEach((i) => yt.close(i)), t.value = []), await Fe(), n.value.forEach((i, u) => {
2284
2287
  yt.info({
2285
- key: s.id,
2288
+ key: i.id,
2286
2289
  class: "message-center-notify",
2287
- message: s.title,
2290
+ message: i.title,
2288
2291
  top: "55px",
2289
2292
  description: he("div", {}, [
2290
2293
  // 标题
2291
2294
  he("div", { class: "custom-title" }, [
2292
2295
  he(De, { icon: "warning-face", width: 24, height: 24, iconColor: "#5582f3" }),
2293
- he("div", { class: "title" }, s.title)
2296
+ he("div", { class: "title" }, i.title)
2294
2297
  ]),
2295
2298
  // 内容
2296
- he("div", { class: "custom-content" }, s.content),
2299
+ he("div", { class: "custom-content" }, i.content),
2297
2300
  // 底部按钮
2298
- s.title !== "密码更新提醒" ? he(
2301
+ i.title !== "密码更新提醒" ? he(
2299
2302
  "div",
2300
2303
  {
2301
2304
  class: "footer-btn",
@@ -2306,13 +2309,13 @@ const wt = (n, e = "") => {
2306
2309
  "查看详情"
2307
2310
  ) : null
2308
2311
  ])
2309
- }), t.value.push(s.id);
2312
+ }), t.value.push(i.id);
2310
2313
  });
2311
2314
  }
2312
2315
  });
2313
2316
  };
2314
2317
  Qe(async () => {
2315
- await Tt(), i();
2318
+ await Tt(), s();
2316
2319
  }), Et(() => {
2317
2320
  e.value && e.value.disconnect(), e.value = null;
2318
2321
  });
@@ -2342,23 +2345,23 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ pe({
2342
2345
  emits: ["itemClick"],
2343
2346
  setup(n, { emit: e }) {
2344
2347
  Pr((u) => ({
2345
- "23bfa220": s.value
2348
+ "23bfa220": i.value
2346
2349
  }));
2347
- const t = n, o = e, r = E(), { toggle: i, isFullscreen: a } = lt(r), l = () => {
2350
+ const t = n, o = e, r = E(), { toggle: s, isFullscreen: a } = lt(r), l = () => {
2348
2351
  r.value != document.fullscreenElement && (a.value ? (a.value = !1, Fe(() => {
2349
- i();
2350
- })) : i());
2352
+ s();
2353
+ })) : s());
2351
2354
  }, c = () => {
2352
2355
  o("itemClick");
2353
- }, s = Ce(() => `calc(100% / ${Math.sqrt(t.gridNum)})`);
2354
- return (u, m) => (H(), de(
2356
+ }, i = Ce(() => `calc(100% / ${Math.sqrt(t.gridNum)})`);
2357
+ return (u, A) => (N(), de(
2355
2358
  "div",
2356
2359
  {
2357
2360
  ref_key: "containerRef",
2358
2361
  ref: r,
2359
2362
  class: Br(["wrapper", { "is-active": t.active }]),
2360
- onDblclick: m[0] || (m[0] = (A) => l()),
2361
- onClick: m[1] || (m[1] = (A) => c())
2363
+ onDblclick: A[0] || (A[0] = (p) => l()),
2364
+ onClick: A[1] || (A[1] = (p) => c())
2362
2365
  },
2363
2366
  [
2364
2367
  $e(u.$slots, "default", {}, void 0, !0)
@@ -2376,21 +2379,21 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ pe({
2376
2379
  },
2377
2380
  emits: ["update:activeIndex"],
2378
2381
  setup(n, { emit: e }) {
2379
- const t = n, o = e, r = (i) => {
2380
- o("update:activeIndex", i);
2382
+ const t = n, o = e, r = (s) => {
2383
+ o("update:activeIndex", s);
2381
2384
  };
2382
- return (i, a) => (H(), de("div", zu, [
2385
+ return (s, a) => (N(), de("div", zu, [
2383
2386
  U(' :active="index === activeIndex" '),
2384
- (H(!0), de(
2387
+ (N(!0), de(
2385
2388
  We,
2386
2389
  null,
2387
- _o(t.gridNum, (l, c) => (H(), V(Wu, {
2390
+ _o(t.gridNum, (l, c) => (N(), V(Wu, {
2388
2391
  active: !1,
2389
2392
  "grid-num": t.gridNum,
2390
- onItemClick: (s) => r(c)
2393
+ onItemClick: (i) => r(c)
2391
2394
  }, {
2392
- default: x(() => [
2393
- i.showFn(c) ? $e(i.$slots, "default", {
2395
+ default: M(() => [
2396
+ s.showFn(c) ? $e(s.$slots, "default", {
2394
2397
  key: 0,
2395
2398
  index: c
2396
2399
  }, void 0, !0) : U("v-if", !0)
@@ -2410,98 +2413,98 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ pe({
2410
2413
  const t = e, o = (r) => {
2411
2414
  t("change", r);
2412
2415
  };
2413
- return (r, i) => (H(), de(
2416
+ return (r, s) => (N(), de(
2414
2417
  "div",
2415
2418
  {
2416
2419
  class: "direction-control",
2417
- onDblclick: i[9] || (i[9] = te((a) => a.stopPropagation(), ["stop"]))
2420
+ onDblclick: s[9] || (s[9] = te((a) => a.stopPropagation(), ["stop"]))
2418
2421
  },
2419
2422
  [
2420
- M(v(ie), { content: "左上" }, {
2421
- default: x(() => [
2422
- L("div", {
2423
+ R(v(ie), { content: "左上" }, {
2424
+ default: M(() => [
2425
+ x("div", {
2423
2426
  class: "icon icon-top-left",
2424
- onClick: i[0] || (i[0] = te((a) => o("leftUp"), ["stop"]))
2427
+ onClick: s[0] || (s[0] = te((a) => o("leftUp"), ["stop"]))
2425
2428
  })
2426
2429
  ]),
2427
2430
  _: 1
2428
2431
  /* STABLE */
2429
2432
  }),
2430
- M(v(ie), { content: "上" }, {
2431
- default: x(() => [
2432
- L("div", {
2433
+ R(v(ie), { content: "上" }, {
2434
+ default: M(() => [
2435
+ x("div", {
2433
2436
  class: "icon icon-top",
2434
- onClick: i[1] || (i[1] = te((a) => o("up"), ["stop"]))
2437
+ onClick: s[1] || (s[1] = te((a) => o("up"), ["stop"]))
2435
2438
  })
2436
2439
  ]),
2437
2440
  _: 1
2438
2441
  /* STABLE */
2439
2442
  }),
2440
- M(v(ie), { content: "右上" }, {
2441
- default: x(() => [
2442
- L("div", {
2443
+ R(v(ie), { content: "右上" }, {
2444
+ default: M(() => [
2445
+ x("div", {
2443
2446
  class: "icon icon-top-right",
2444
- onClick: i[2] || (i[2] = te((a) => o("rightUp"), ["stop"]))
2447
+ onClick: s[2] || (s[2] = te((a) => o("rightUp"), ["stop"]))
2445
2448
  })
2446
2449
  ]),
2447
2450
  _: 1
2448
2451
  /* STABLE */
2449
2452
  }),
2450
- M(v(ie), { content: "左" }, {
2451
- default: x(() => [
2452
- L("div", {
2453
+ R(v(ie), { content: "左" }, {
2454
+ default: M(() => [
2455
+ x("div", {
2453
2456
  class: "icon icon-left",
2454
- onClick: i[3] || (i[3] = te((a) => o("left"), ["stop"]))
2457
+ onClick: s[3] || (s[3] = te((a) => o("left"), ["stop"]))
2455
2458
  })
2456
2459
  ]),
2457
2460
  _: 1
2458
2461
  /* STABLE */
2459
2462
  }),
2460
- M(v(ie), { content: "自动" }, {
2461
- default: x(() => [
2462
- L("div", {
2463
+ R(v(ie), { content: "自动" }, {
2464
+ default: M(() => [
2465
+ x("div", {
2463
2466
  class: "icon icon-auto",
2464
- onClick: i[4] || (i[4] = te((a) => o("auto"), ["stop"]))
2467
+ onClick: s[4] || (s[4] = te((a) => o("auto"), ["stop"]))
2465
2468
  })
2466
2469
  ]),
2467
2470
  _: 1
2468
2471
  /* STABLE */
2469
2472
  }),
2470
- M(v(ie), { content: "右" }, {
2471
- default: x(() => [
2472
- L("div", {
2473
+ R(v(ie), { content: "右" }, {
2474
+ default: M(() => [
2475
+ x("div", {
2473
2476
  class: "icon icon-right",
2474
- onClick: i[5] || (i[5] = te((a) => o("right"), ["stop"]))
2477
+ onClick: s[5] || (s[5] = te((a) => o("right"), ["stop"]))
2475
2478
  })
2476
2479
  ]),
2477
2480
  _: 1
2478
2481
  /* STABLE */
2479
2482
  }),
2480
- M(v(ie), { content: "左下" }, {
2481
- default: x(() => [
2482
- L("div", {
2483
+ R(v(ie), { content: "左下" }, {
2484
+ default: M(() => [
2485
+ x("div", {
2483
2486
  class: "icon icon-bottom-left",
2484
- onClick: i[6] || (i[6] = te((a) => o("leftDown"), ["stop"]))
2487
+ onClick: s[6] || (s[6] = te((a) => o("leftDown"), ["stop"]))
2485
2488
  })
2486
2489
  ]),
2487
2490
  _: 1
2488
2491
  /* STABLE */
2489
2492
  }),
2490
- M(v(ie), { content: "下" }, {
2491
- default: x(() => [
2492
- L("div", {
2493
+ R(v(ie), { content: "下" }, {
2494
+ default: M(() => [
2495
+ x("div", {
2493
2496
  class: "icon icon-bottom",
2494
- onClick: i[7] || (i[7] = te((a) => o("down"), ["stop"]))
2497
+ onClick: s[7] || (s[7] = te((a) => o("down"), ["stop"]))
2495
2498
  })
2496
2499
  ]),
2497
2500
  _: 1
2498
2501
  /* STABLE */
2499
2502
  }),
2500
- M(v(ie), { content: "右下" }, {
2501
- default: x(() => [
2502
- L("div", {
2503
+ R(v(ie), { content: "右下" }, {
2504
+ default: M(() => [
2505
+ x("div", {
2503
2506
  class: "icon icon-bottom-right",
2504
- onClick: i[8] || (i[8] = te((a) => o("rightDown"), ["stop"]))
2507
+ onClick: s[8] || (s[8] = te((a) => o("rightDown"), ["stop"]))
2505
2508
  })
2506
2509
  ]),
2507
2510
  _: 1
@@ -2537,38 +2540,38 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ pe({
2537
2540
  enlarge: import("@das-fed/ui/packages/icons/enlarge"),
2538
2541
  "direction-control": import("@das-fed/ui/packages/icons/direction-control")
2539
2542
  });
2540
- const t = n, o = e, r = E(!0), i = E(), a = E(!1), l = E(), c = Ce(() => {
2541
- var _;
2542
- return (_ = l.value) == null ? void 0 : _.video;
2543
- }), s = E(!1), u = E(!0), m = (_) => {
2544
- i.value = _, i.value.on(window.mpegts.Events.ERROR, (y) => {
2543
+ const t = n, o = e, r = E(!0), s = E(), a = E(!1), l = E(), c = Ce(() => {
2544
+ var y;
2545
+ return (y = l.value) == null ? void 0 : y.video;
2546
+ }), i = E(!1), u = E(!0), A = (y) => {
2547
+ s.value = y, s.value.on(window.mpegts.Events.ERROR, (_) => {
2545
2548
  });
2546
- }, A = () => {
2547
- r.value = !r.value, i.value && (i.value.muted = r.value);
2548
- }, f = () => {
2549
+ }, p = () => {
2550
+ r.value = !r.value, s.value && (s.value.muted = r.value);
2551
+ }, h = () => {
2549
2552
  a.value = !a.value;
2550
2553
  }, S = E(""), b = () => {
2551
- const _ = document.createElement("canvas");
2554
+ const y = document.createElement("canvas");
2552
2555
  if (c.value) {
2553
- _.width = c.value.clientWidth, _.height = c.value.clientHeight;
2554
- const y = _.getContext("2d");
2555
- y == null || y.drawImage(c.value, 0, 0, _.width, _.height);
2556
- const k = _.toDataURL("image/jpg"), w = `【${t.title}】${Jt().format("YYYYMMDDHHmmss").toString()}.jpg`;
2557
- if (S.value = k, "download" in document.createElement("a")) {
2558
- const P = document.createElement("a");
2559
- P.download = w, P.style.display = "none", P.href = k, document.body.appendChild(P), document.body.appendChild(_), P.click(), URL.revokeObjectURL(P.href), document.body.removeChild(P), document.body.removeChild(_);
2556
+ y.width = c.value.clientWidth, y.height = c.value.clientHeight;
2557
+ const _ = y.getContext("2d");
2558
+ _ == null || _.drawImage(c.value, 0, 0, y.width, y.height);
2559
+ const T = y.toDataURL("image/jpg"), B = `【${t.title}】${Jt().format("YYYYMMDDHHmmss").toString()}.jpg`;
2560
+ if (S.value = T, "download" in document.createElement("a")) {
2561
+ const L = document.createElement("a");
2562
+ L.download = B, L.style.display = "none", L.href = T, document.body.appendChild(L), document.body.appendChild(y), L.click(), URL.revokeObjectURL(L.href), document.body.removeChild(L), document.body.removeChild(y);
2560
2563
  }
2561
2564
  }
2562
- }, p = (_) => {
2563
- o("directionControl", _);
2564
- }, d = (_) => {
2565
- o("zoomControl", _);
2566
- }, g = (_) => t.authType.includes(_);
2565
+ }, f = (y) => {
2566
+ o("directionControl", y);
2567
+ }, d = (y) => {
2568
+ o("zoomControl", y);
2569
+ }, m = (y) => t.authType.includes(y);
2567
2570
  return oe(
2568
2571
  () => c.value,
2569
2572
  () => {
2570
2573
  c.value && c.value.addEventListener("ended", () => {
2571
- s.value = !0, t.type === "playback" && (u.value = !1);
2574
+ i.value = !0, t.type === "playback" && (u.value = !1);
2572
2575
  });
2573
2576
  }
2574
2577
  ), oe(
@@ -2579,10 +2582,10 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ pe({
2579
2582
  });
2580
2583
  }
2581
2584
  ), oe(
2582
- () => i.value,
2585
+ () => s.value,
2583
2586
  () => {
2584
- i.value && Fe(() => {
2585
- i.value.muted = r.value;
2587
+ s.value && Fe(() => {
2588
+ s.value.muted = r.value;
2586
2589
  });
2587
2590
  }
2588
2591
  ), oe(
@@ -2596,7 +2599,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ pe({
2596
2599
  ), oe(
2597
2600
  () => t.paused,
2598
2601
  () => {
2599
- i.value && (t.paused ? i.value.pause() : i.value.play());
2602
+ s.value && (t.paused ? s.value.pause() : s.value.play());
2600
2603
  }
2601
2604
  ), oe(
2602
2605
  () => t.videoUrl,
@@ -2605,17 +2608,17 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ pe({
2605
2608
  u.value = !0;
2606
2609
  });
2607
2610
  }
2608
- ), (_, y) => (H(), de("div", Xu, [
2609
- M(v(ko), {
2611
+ ), (y, _) => (N(), de("div", Xu, [
2612
+ R(v(ko), {
2610
2613
  spinning: t.loading,
2611
2614
  type: "component",
2612
2615
  tip: "加载中..."
2613
2616
  }, {
2614
- default: x(() => [
2615
- L("div", Zu, [
2616
- L("div", Yu, [
2617
- L("div", ed, [
2618
- L(
2617
+ default: M(() => [
2618
+ x("div", Zu, [
2619
+ x("div", Yu, [
2620
+ x("div", ed, [
2621
+ x(
2619
2622
  "div",
2620
2623
  td,
2621
2624
  Z(t.title.length > 20 ? t.title.slice(0, 19) + "..." : t.title),
@@ -2624,50 +2627,50 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ pe({
2624
2627
  )
2625
2628
  ])
2626
2629
  ]),
2627
- L("div", nd, [
2628
- ["live"].includes(_.type) ? (H(), de("span", od, "正在实时预览")) : U("v-if", !0),
2630
+ x("div", nd, [
2631
+ ["live"].includes(y.type) ? (N(), de("span", od, "正在实时预览")) : U("v-if", !0),
2629
2632
  U(' <das-icon class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
2630
2633
  ])
2631
2634
  ]),
2632
- t.videoUrl && u.value ? (H(), V(v(is), {
2635
+ t.videoUrl && u.value ? (N(), V(v(is), {
2633
2636
  key: 0,
2634
2637
  type: "flv",
2635
2638
  ref_key: "dasLivePlayerRef",
2636
2639
  ref: l,
2637
2640
  muted: r.value,
2638
- onLoaded: m,
2641
+ onLoaded: A,
2639
2642
  src: t.videoUrl
2640
2643
  }, null, 8, ["muted", "src"])) : U("v-if", !0),
2641
- L("div", rd, [
2642
- y[3] || (y[3] = L(
2644
+ x("div", rd, [
2645
+ _[3] || (_[3] = x(
2643
2646
  "div",
2644
2647
  { class: "video-bottom_l" },
2645
2648
  null,
2646
2649
  -1
2647
2650
  /* HOISTED */
2648
2651
  )),
2649
- L("div", sd, [
2650
- L(
2652
+ x("div", sd, [
2653
+ x(
2651
2654
  "div",
2652
2655
  {
2653
2656
  class: "controls",
2654
- onDblclick: y[2] || (y[2] = te((k) => k.stopPropagation(), ["stop"]))
2657
+ onDblclick: _[2] || (_[2] = te((T) => T.stopPropagation(), ["stop"]))
2655
2658
  },
2656
2659
  [
2657
- M(v(ie), { content: "声音" }, {
2658
- default: x(() => [
2659
- M(v(De), {
2660
+ R(v(ie), { content: "声音" }, {
2661
+ default: M(() => [
2662
+ R(v(De), {
2660
2663
  class: "icon icon-volume",
2661
2664
  icon: r.value ? "muted" : "volume",
2662
- onClick: te(A, ["stop"])
2665
+ onClick: te(p, ["stop"])
2663
2666
  }, null, 8, ["icon"])
2664
2667
  ]),
2665
2668
  _: 1
2666
2669
  /* STABLE */
2667
2670
  }),
2668
- M(v(ie), { content: "截图" }, {
2669
- default: x(() => [
2670
- M(v(De), {
2671
+ R(v(ie), { content: "截图" }, {
2672
+ default: M(() => [
2673
+ R(v(De), {
2671
2674
  class: "icon icon-screenshot",
2672
2675
  icon: "screenshot",
2673
2676
  onClick: te(b, ["stop"])
@@ -2676,46 +2679,46 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ pe({
2676
2679
  _: 1
2677
2680
  /* STABLE */
2678
2681
  }),
2679
- g("control") ? (H(), V(v(ie), {
2682
+ m("control") ? (N(), V(v(ie), {
2680
2683
  key: 0,
2681
2684
  content: "聚焦-"
2682
2685
  }, {
2683
- default: x(() => [
2684
- ["live", "polling"].includes(t.type) ? (H(), V(v(De), {
2686
+ default: M(() => [
2687
+ ["live", "polling"].includes(t.type) ? (N(), V(v(De), {
2685
2688
  key: 0,
2686
2689
  class: "icon icon-shrink",
2687
2690
  icon: "shrink",
2688
- onClick: y[0] || (y[0] = te((k) => d("zoomOut"), ["stop"]))
2691
+ onClick: _[0] || (_[0] = te((T) => d("zoomOut"), ["stop"]))
2689
2692
  })) : U("v-if", !0)
2690
2693
  ]),
2691
2694
  _: 1
2692
2695
  /* STABLE */
2693
2696
  })) : U("v-if", !0),
2694
- g("control") ? (H(), V(v(ie), {
2697
+ m("control") ? (N(), V(v(ie), {
2695
2698
  key: 1,
2696
2699
  content: "聚焦+"
2697
2700
  }, {
2698
- default: x(() => [
2699
- ["live", "polling"].includes(t.type) ? (H(), V(v(De), {
2701
+ default: M(() => [
2702
+ ["live", "polling"].includes(t.type) ? (N(), V(v(De), {
2700
2703
  key: 0,
2701
2704
  class: "icon icon-enlarge",
2702
2705
  icon: "enlarge",
2703
- onClick: y[1] || (y[1] = te((k) => d("zoomIn"), ["stop"]))
2706
+ onClick: _[1] || (_[1] = te((T) => d("zoomIn"), ["stop"]))
2704
2707
  })) : U("v-if", !0)
2705
2708
  ]),
2706
2709
  _: 1
2707
2710
  /* STABLE */
2708
2711
  })) : U("v-if", !0),
2709
- g("control") ? (H(), V(v(ie), {
2712
+ m("control") ? (N(), V(v(ie), {
2710
2713
  key: 2,
2711
2714
  content: "方向控制"
2712
2715
  }, {
2713
- default: x(() => [
2714
- ["live", "polling"].includes(t.type) ? (H(), V(v(De), {
2716
+ default: M(() => [
2717
+ ["live", "polling"].includes(t.type) ? (N(), V(v(De), {
2715
2718
  key: 0,
2716
2719
  class: "icon icon-direction-control",
2717
2720
  icon: "direction-control",
2718
- onClick: te(f, ["stop"])
2721
+ onClick: te(h, ["stop"])
2719
2722
  })) : U("v-if", !0)
2720
2723
  ]),
2721
2724
  _: 1
@@ -2727,9 +2730,9 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ pe({
2727
2730
  )
2728
2731
  ])
2729
2732
  ]),
2730
- a.value ? (H(), V(Gu, {
2733
+ a.value ? (N(), V(Gu, {
2731
2734
  key: 1,
2732
- onChange: p
2735
+ onChange: f
2733
2736
  })) : U("v-if", !0)
2734
2737
  ]),
2735
2738
  _: 1
@@ -2749,15 +2752,15 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ pe({
2749
2752
  }) {
2750
2753
  const {
2751
2754
  deviceInfo: t
2752
- } = Or(n), o = E(!1), r = E(""), i = async () => {
2755
+ } = Or(n), o = E(!1), r = E(""), s = async () => {
2753
2756
  var u;
2754
2757
  if (!((u = t.value) != null && u.deviceId)) return;
2755
2758
  o.value = !0;
2756
- const [c, s] = await Uu({
2759
+ const [c, i] = await Uu({
2757
2760
  productId: t.value.productId,
2758
2761
  deviceId: t.value.deviceId
2759
2762
  });
2760
- c || (r.value = zr(s == null ? void 0 : s.wsFlvStreamURL)), o.value = !1;
2763
+ c || (r.value = zr(i == null ? void 0 : i.wsFlvStreamURL)), o.value = !1;
2761
2764
  }, a = (c) => {
2762
2765
  po({
2763
2766
  productId: t.value.productId,
@@ -2774,12 +2777,12 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ pe({
2774
2777
  });
2775
2778
  };
2776
2779
  return Qe(() => {
2777
- i();
2780
+ s();
2778
2781
  }), oe(() => t.value, () => {
2779
- i();
2782
+ s();
2780
2783
  }, {
2781
2784
  deep: !0
2782
- }), () => M(We, null, [e.default({
2785
+ }), () => R(We, null, [e.default({
2783
2786
  videoUrl: r.value,
2784
2787
  loading: o.value,
2785
2788
  onDirectionControl: a,
@@ -2793,7 +2796,7 @@ function ld(n) {
2793
2796
  isFullscreen: r
2794
2797
  } = lt(t);
2795
2798
  return {
2796
- render: () => M(qu, {
2799
+ render: () => R(qu, {
2797
2800
  ref: t,
2798
2801
  gridNum: n.gridNum,
2799
2802
  activeIndex: e.value,
@@ -2804,20 +2807,20 @@ function ld(n) {
2804
2807
  index: a
2805
2808
  }) => {
2806
2809
  const l = n.deviceList[a];
2807
- return M(cd, {
2810
+ return R(cd, {
2808
2811
  deviceInfo: l
2809
2812
  }, {
2810
2813
  default: ({
2811
2814
  videoUrl: c,
2812
- onDirectionControl: s,
2815
+ onDirectionControl: i,
2813
2816
  onZoomControl: u,
2814
- loading: m
2815
- }) => M(ad, {
2817
+ loading: A
2818
+ }) => R(ad, {
2816
2819
  type: "live",
2817
- loading: m,
2820
+ loading: A,
2818
2821
  videoUrl: c,
2819
2822
  title: l.deviceName,
2820
- onDirectionControl: s,
2823
+ onDirectionControl: i,
2821
2824
  onZoomControl: u,
2822
2825
  authType: l.authType === 2 ? ["control"] : []
2823
2826
  }, null)
@@ -2838,7 +2841,7 @@ const ud = /* @__PURE__ */ pe({
2838
2841
  To({
2839
2842
  fullscreen2: import("@das-fed/ui/packages/icons/fullscreen-2")
2840
2843
  });
2841
- const e = n, t = E(!0), { render: o, toggleFullscreen: r } = ld(e), i = Ce(() => {
2844
+ const e = n, t = E(!0), { render: o, toggleFullscreen: r } = ld(e), s = Ce(() => {
2842
2845
  let a = {};
2843
2846
  switch (e.gridNum) {
2844
2847
  case 1:
@@ -2853,10 +2856,10 @@ const ud = /* @__PURE__ */ pe({
2853
2856
  }
2854
2857
  return a;
2855
2858
  });
2856
- return (a, l) => (H(), V(v(sn), {
2859
+ return (a, l) => (N(), V(v(sn), {
2857
2860
  size: "mini",
2858
2861
  title: "视频监控",
2859
- "custom-class": `das-linakge-video-dialog ${i.value}`,
2862
+ "custom-class": `das-linakge-video-dialog ${s.value}`,
2860
2863
  modelValue: t.value,
2861
2864
  "onUpdate:modelValue": l[0] || (l[0] = (c) => t.value = c),
2862
2865
  bodyStyle: { padding: 0 },
@@ -2866,17 +2869,17 @@ const ud = /* @__PURE__ */ pe({
2866
2869
  "header-style": { display: "flex", justifyContent: "space-between", alignItems: "center" },
2867
2870
  onClosed: a.closeCallback
2868
2871
  }, {
2869
- header: x(() => [
2870
- l[1] || (l[1] = L(
2872
+ header: M(() => [
2873
+ l[1] || (l[1] = x(
2871
2874
  "div",
2872
2875
  null,
2873
2876
  "视频监控",
2874
2877
  -1
2875
2878
  /* HOISTED */
2876
2879
  )),
2877
- M(v(ie), { content: "页面全屏" }, {
2878
- default: x(() => [
2879
- M(v(De), {
2880
+ R(v(ie), { content: "页面全屏" }, {
2881
+ default: M(() => [
2882
+ R(v(De), {
2880
2883
  class: "icon",
2881
2884
  icon: "fullscreen2",
2882
2885
  iconColor: "#999",
@@ -2887,8 +2890,8 @@ const ud = /* @__PURE__ */ pe({
2887
2890
  /* STABLE */
2888
2891
  })
2889
2892
  ]),
2890
- default: x(() => [
2891
- t.value ? (H(), V(v(o), { key: 0 })) : U("v-if", !0)
2893
+ default: M(() => [
2894
+ t.value ? (N(), V(v(o), { key: 0 })) : U("v-if", !0)
2892
2895
  ]),
2893
2896
  _: 1
2894
2897
  /* STABLE */
@@ -2905,26 +2908,26 @@ const ud = /* @__PURE__ */ pe({
2905
2908
  vt(a, r);
2906
2909
  });
2907
2910
  }, pd = () => {
2908
- const n = E(4), e = E([]), t = E(null), o = async (i) => {
2909
- const [a, l] = await Fu(i).run();
2911
+ const n = E(4), e = E([]), t = E(null), o = async (s) => {
2912
+ const [a, l] = await Fu(s).run();
2910
2913
  if (!a)
2911
2914
  return l;
2912
2915
  }, r = async () => {
2913
- const i = Pe().id, [a, l] = await Hu().run({
2916
+ const s = Pe().id, [a, l] = await Hu().run({
2914
2917
  code: "strategy",
2915
2918
  showBtn: !1
2916
2919
  });
2917
- a || !l || !l.length || !l.find((s) => s.code === "strategy.linkageModel") || t.value || (t.value = new an({
2920
+ a || !l || !l.length || !l.find((i) => i.code === "strategy.linkageModel") || t.value || (t.value = new an({
2918
2921
  url: "/api/strategy/linkage-strategy/v1/video-popup/subscribe",
2919
- params: { project: i },
2920
- message: async (s) => {
2922
+ params: { project: s },
2923
+ message: async (i) => {
2921
2924
  var u;
2922
- if ((s == null ? void 0 : s.project) === i) {
2923
- n.value = s.layout;
2924
- let m = {
2925
- projectId: i,
2926
- deviceIds: s == null ? void 0 : s.deviceId
2927
- }, f = (await o(m)).map((S) => {
2925
+ if ((i == null ? void 0 : i.project) === s) {
2926
+ n.value = i.layout;
2927
+ let A = {
2928
+ projectId: s,
2929
+ deviceIds: i == null ? void 0 : i.deviceId
2930
+ }, h = (await o(A)).map((S) => {
2928
2931
  let b = S.lookupOrOperation == 1;
2929
2932
  return {
2930
2933
  id: S.id,
@@ -2936,7 +2939,7 @@ const ud = /* @__PURE__ */ pe({
2936
2939
  show: !!b
2937
2940
  };
2938
2941
  });
2939
- e.value = f.filter((S) => !!S.show), (u = e.value) != null && u.length && dd({ gridNum: n.value, deviceList: e.value });
2942
+ e.value = h.filter((S) => !!S.show), (u = e.value) != null && u.length && dd({ gridNum: n.value, deviceList: e.value });
2940
2943
  }
2941
2944
  }
2942
2945
  }));
@@ -3074,10 +3077,10 @@ class Dt {
3074
3077
  return "";
3075
3078
  }
3076
3079
  }
3077
- var h;
3080
+ var g;
3078
3081
  (function(n) {
3079
3082
  n[n.Trace = 0] = "Trace", n[n.Debug = 1] = "Debug", n[n.Information = 2] = "Information", n[n.Warning = 3] = "Warning", n[n.Error = 4] = "Error", n[n.Critical = 5] = "Critical", n[n.None = 6] = "None";
3080
- })(h || (h = {}));
3083
+ })(g || (g = {}));
3081
3084
  class at {
3082
3085
  constructor() {
3083
3086
  }
@@ -3137,20 +3140,20 @@ function Re(n) {
3137
3140
  return n && typeof ArrayBuffer < "u" && (n instanceof ArrayBuffer || // Sometimes we get an ArrayBuffer that doesn't satisfy instanceof
3138
3141
  n.constructor && n.constructor.name === "ArrayBuffer");
3139
3142
  }
3140
- async function gr(n, e, t, o, r, i) {
3143
+ async function gr(n, e, t, o, r, s) {
3141
3144
  const a = {}, [l, c] = Ke();
3142
- a[l] = c, n.log(h.Trace, `(${e} transport) sending data. ${ct(r, i.logMessageContent)}.`);
3143
- const s = Re(r) ? "arraybuffer" : "text", u = await t.post(o, {
3145
+ a[l] = c, n.log(g.Trace, `(${e} transport) sending data. ${ct(r, s.logMessageContent)}.`);
3146
+ const i = Re(r) ? "arraybuffer" : "text", u = await t.post(o, {
3144
3147
  content: r,
3145
- headers: { ...a, ...i.headers },
3146
- responseType: s,
3147
- timeout: i.timeout,
3148
- withCredentials: i.withCredentials
3148
+ headers: { ...a, ...s.headers },
3149
+ responseType: i,
3150
+ timeout: s.timeout,
3151
+ withCredentials: s.withCredentials
3149
3152
  });
3150
- n.log(h.Trace, `(${e} transport) request complete. Response status: ${u.statusCode}.`);
3153
+ n.log(g.Trace, `(${e} transport) request complete. Response status: ${u.statusCode}.`);
3151
3154
  }
3152
3155
  function yd(n) {
3153
- return n === void 0 ? new It(h.Information) : n === null ? at.instance : n.log !== void 0 ? n : new It(n);
3156
+ return n === void 0 ? new It(g.Information) : n === null ? at.instance : n.log !== void 0 ? n : new It(n);
3154
3157
  }
3155
3158
  class _d {
3156
3159
  constructor(e, t) {
@@ -3168,16 +3171,16 @@ class It {
3168
3171
  }
3169
3172
  log(e, t) {
3170
3173
  if (e >= this._minLevel) {
3171
- const o = `[${(/* @__PURE__ */ new Date()).toISOString()}] ${h[e]}: ${t}`;
3174
+ const o = `[${(/* @__PURE__ */ new Date()).toISOString()}] ${g[e]}: ${t}`;
3172
3175
  switch (e) {
3173
- case h.Critical:
3174
- case h.Error:
3176
+ case g.Critical:
3177
+ case g.Error:
3175
3178
  this.out.error(o);
3176
3179
  break;
3177
- case h.Warning:
3180
+ case g.Warning:
3178
3181
  this.out.warn(o);
3179
3182
  break;
3180
- case h.Information:
3183
+ case g.Information:
3181
3184
  this.out.info(o);
3182
3185
  break;
3183
3186
  default:
@@ -3193,8 +3196,8 @@ function Ke() {
3193
3196
  }
3194
3197
  function bd(n, e, t, o) {
3195
3198
  let r = "Microsoft SignalR/";
3196
- const i = n.split(".");
3197
- return r += `${i[0]}.${i[1]}`, r += ` (${n}; `, e && e !== "" ? r += `${e}; ` : r += "Unknown OS; ", r += `${t}`, o ? r += `; ${o}` : r += "; Unknown Runtime Version", r += ")", r;
3199
+ const s = n.split(".");
3200
+ return r += `${s[0]}.${s[1]}`, r += ` (${n}; `, e && e !== "" ? r += `${e}; ` : r += "Unknown OS; ", r += `${t}`, o ? r += `; ${o}` : r += "; Unknown Runtime Version", r += ")", r;
3198
3201
  }
3199
3202
  function wd() {
3200
3203
  if (K.isNode)
@@ -3262,13 +3265,13 @@ class Sd extends Dt {
3262
3265
  if (e.timeout) {
3263
3266
  const c = e.timeout;
3264
3267
  r = setTimeout(() => {
3265
- t.abort(), this._logger.log(h.Warning, "Timeout from HTTP request."), o = new yn();
3268
+ t.abort(), this._logger.log(g.Warning, "Timeout from HTTP request."), o = new yn();
3266
3269
  }, c);
3267
3270
  }
3268
3271
  e.content === "" && (e.content = void 0), e.content && (e.headers = e.headers || {}, Re(e.content) ? e.headers["Content-Type"] = "application/octet-stream" : e.headers["Content-Type"] = "text/plain;charset=UTF-8");
3269
- let i;
3272
+ let s;
3270
3273
  try {
3271
- i = await this._fetchType(e.url, {
3274
+ s = await this._fetchType(e.url, {
3272
3275
  body: e.content,
3273
3276
  cache: "no-cache",
3274
3277
  credentials: e.withCredentials === !0 ? "include" : "same-origin",
@@ -3282,16 +3285,16 @@ class Sd extends Dt {
3282
3285
  signal: t.signal
3283
3286
  });
3284
3287
  } catch (c) {
3285
- throw o || (this._logger.log(h.Warning, `Error from HTTP request. ${c}.`), c);
3288
+ throw o || (this._logger.log(g.Warning, `Error from HTTP request. ${c}.`), c);
3286
3289
  } finally {
3287
3290
  r && clearTimeout(r), e.abortSignal && (e.abortSignal.onabort = null);
3288
3291
  }
3289
- if (!i.ok) {
3290
- const c = await ho(i, "text");
3291
- throw new Le(c || i.statusText, i.status);
3292
+ if (!s.ok) {
3293
+ const c = await ho(s, "text");
3294
+ throw new Le(c || s.statusText, s.status);
3292
3295
  }
3293
- const l = await ho(i, e.responseType);
3294
- return new hr(i.status, i.statusText, l);
3296
+ const l = await ho(s, e.responseType);
3297
+ return new hr(s.status, s.statusText, l);
3295
3298
  }
3296
3299
  getCookieString(e) {
3297
3300
  let t = "";
@@ -3326,17 +3329,17 @@ class Td extends Dt {
3326
3329
  return e.abortSignal && e.abortSignal.aborted ? Promise.reject(new ve()) : e.method ? e.url ? new Promise((t, o) => {
3327
3330
  const r = new XMLHttpRequest();
3328
3331
  r.open(e.method, e.url, !0), r.withCredentials = e.withCredentials === void 0 ? !0 : e.withCredentials, r.setRequestHeader("X-Requested-With", "XMLHttpRequest"), e.content === "" && (e.content = void 0), e.content && (Re(e.content) ? r.setRequestHeader("Content-Type", "application/octet-stream") : r.setRequestHeader("Content-Type", "text/plain;charset=UTF-8"));
3329
- const i = e.headers;
3330
- i && Object.keys(i).forEach((a) => {
3331
- r.setRequestHeader(a, i[a]);
3332
+ const s = e.headers;
3333
+ s && Object.keys(s).forEach((a) => {
3334
+ r.setRequestHeader(a, s[a]);
3332
3335
  }), e.responseType && (r.responseType = e.responseType), e.abortSignal && (e.abortSignal.onabort = () => {
3333
3336
  r.abort(), o(new ve());
3334
3337
  }), e.timeout && (r.timeout = e.timeout), r.onload = () => {
3335
3338
  e.abortSignal && (e.abortSignal.onabort = null), r.status >= 200 && r.status < 300 ? t(new hr(r.status, r.statusText, r.response || r.responseText)) : o(new Le(r.response || r.responseText || r.statusText, r.status));
3336
3339
  }, r.onerror = () => {
3337
- this._logger.log(h.Warning, `Error from HTTP request. ${r.status}: ${r.statusText}.`), o(new Le(r.statusText, r.status));
3340
+ this._logger.log(g.Warning, `Error from HTTP request. ${r.status}: ${r.statusText}.`), o(new Le(r.statusText, r.status));
3338
3341
  }, r.ontimeout = () => {
3339
- this._logger.log(h.Warning, "Timeout from HTTP request."), o(new yn());
3342
+ this._logger.log(g.Warning, "Timeout from HTTP request."), o(new yn());
3340
3343
  }, r.send(e.content);
3341
3344
  }) : Promise.reject(new Error("No url defined.")) : Promise.reject(new Error("No method defined."));
3342
3345
  }
@@ -3383,19 +3386,19 @@ class Pd {
3383
3386
  const l = new Uint8Array(e), c = l.indexOf(ge.RecordSeparatorCode);
3384
3387
  if (c === -1)
3385
3388
  throw new Error("Message is incomplete.");
3386
- const s = c + 1;
3387
- t = String.fromCharCode.apply(null, Array.prototype.slice.call(l.slice(0, s))), o = l.byteLength > s ? l.slice(s).buffer : null;
3389
+ const i = c + 1;
3390
+ t = String.fromCharCode.apply(null, Array.prototype.slice.call(l.slice(0, i))), o = l.byteLength > i ? l.slice(i).buffer : null;
3388
3391
  } else {
3389
3392
  const l = e, c = l.indexOf(ge.RecordSeparator);
3390
3393
  if (c === -1)
3391
3394
  throw new Error("Message is incomplete.");
3392
- const s = c + 1;
3393
- t = l.substring(0, s), o = l.length > s ? l.substring(s) : null;
3395
+ const i = c + 1;
3396
+ t = l.substring(0, i), o = l.length > i ? l.substring(i) : null;
3394
3397
  }
3395
- const r = ge.parse(t), i = JSON.parse(r[0]);
3396
- if (i.type)
3398
+ const r = ge.parse(t), s = JSON.parse(r[0]);
3399
+ if (s.type)
3397
3400
  throw new Error("Expected a handshake response from the server.");
3398
- return [o, i];
3401
+ return [o, s];
3399
3402
  }
3400
3403
  }
3401
3404
  var j;
@@ -3432,11 +3435,11 @@ class Od {
3432
3435
  if (this._isInvocationMessage(e)) {
3433
3436
  this._totalMessageCount++;
3434
3437
  let r = () => {
3435
- }, i = () => {
3438
+ }, s = () => {
3436
3439
  };
3437
3440
  Re(t) ? this._bufferedByteCount += t.byteLength : this._bufferedByteCount += t.length, this._bufferedByteCount >= this._bufferSize && (o = new Promise((a, l) => {
3438
- r = a, i = l;
3439
- })), this._messages.push(new Dd(t, this._totalMessageCount, r, i));
3441
+ r = a, s = l;
3442
+ })), this._messages.push(new Dd(t, this._totalMessageCount, r, s));
3440
3443
  }
3441
3444
  try {
3442
3445
  this._reconnectInProgress || await this._connection.send(t);
@@ -3530,13 +3533,13 @@ class _n {
3530
3533
  // create method that can be used by HubConnectionBuilder. An "internal" constructor would just
3531
3534
  // be stripped away and the '.d.ts' file would have no constructor, which is interpreted as a
3532
3535
  // public parameter-less constructor.
3533
- static create(e, t, o, r, i, a, l) {
3534
- return new _n(e, t, o, r, i, a, l);
3536
+ static create(e, t, o, r, s, a, l) {
3537
+ return new _n(e, t, o, r, s, a, l);
3535
3538
  }
3536
- constructor(e, t, o, r, i, a, l) {
3539
+ constructor(e, t, o, r, s, a, l) {
3537
3540
  this._nextKeepAlive = 0, this._freezeEventListener = () => {
3538
- 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");
3539
- }, Y.isRequired(e, "connection"), Y.isRequired(t, "logger"), Y.isRequired(o, "protocol"), this.serverTimeoutInMilliseconds = i ?? $d, this.keepAliveIntervalInMilliseconds = a ?? Ld, this._statefulReconnectBufferSize = l ?? xd, this._logger = t, this._protocol = o, this.connection = e, this._reconnectPolicy = r, this._handshakeProtocol = new Pd(), this.connection.onreceive = (c) => this._processIncomingData(c), this.connection.onclose = (c) => this._connectionClosed(c), this._callbacks = {}, this._methods = {}, this._closedCallbacks = [], this._reconnectingCallbacks = [], this._reconnectedCallbacks = [], this._invocationId = 0, this._receivedHandshakeResponse = !1, this._connectionState = q.Disconnected, this._connectionStarted = !1, this._cachedPingMessage = this._protocol.writeMessage({ type: j.Ping });
3541
+ this._logger.log(g.Warning, "The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep");
3542
+ }, Y.isRequired(e, "connection"), Y.isRequired(t, "logger"), Y.isRequired(o, "protocol"), this.serverTimeoutInMilliseconds = s ?? $d, this.keepAliveIntervalInMilliseconds = a ?? Ld, this._statefulReconnectBufferSize = l ?? xd, this._logger = t, this._protocol = o, this.connection = e, this._reconnectPolicy = r, this._handshakeProtocol = new Pd(), this.connection.onreceive = (c) => this._processIncomingData(c), this.connection.onclose = (c) => this._connectionClosed(c), this._callbacks = {}, this._methods = {}, this._closedCallbacks = [], this._reconnectingCallbacks = [], this._reconnectedCallbacks = [], this._invocationId = 0, this._receivedHandshakeResponse = !1, this._connectionState = q.Disconnected, this._connectionStarted = !1, this._cachedPingMessage = this._protocol.writeMessage({ type: j.Ping });
3540
3543
  }
3541
3544
  /** Indicates the state of the {@link HubConnection} to the server. */
3542
3545
  get state() {
@@ -3574,11 +3577,11 @@ class _n {
3574
3577
  async _startWithStateTransitions() {
3575
3578
  if (this._connectionState !== q.Disconnected)
3576
3579
  return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));
3577
- this._connectionState = q.Connecting, this._logger.log(h.Debug, "Starting HubConnection.");
3580
+ this._connectionState = q.Connecting, this._logger.log(g.Debug, "Starting HubConnection.");
3578
3581
  try {
3579
- await this._startInternal(), K.isBrowser && window.document.addEventListener("freeze", this._freezeEventListener), this._connectionState = q.Connected, this._connectionStarted = !0, this._logger.log(h.Debug, "HubConnection connected successfully.");
3582
+ await this._startInternal(), K.isBrowser && window.document.addEventListener("freeze", this._freezeEventListener), this._connectionState = q.Connected, this._connectionStarted = !0, this._logger.log(g.Debug, "HubConnection connected successfully.");
3580
3583
  } catch (e) {
3581
- return this._connectionState = q.Disconnected, this._logger.log(h.Debug, `HubConnection failed to start successfully because of error '${e}'.`), Promise.reject(e);
3584
+ return this._connectionState = q.Disconnected, this._logger.log(g.Debug, `HubConnection failed to start successfully because of error '${e}'.`), Promise.reject(e);
3582
3585
  }
3583
3586
  }
3584
3587
  async _startInternal() {
@@ -3594,14 +3597,14 @@ class _n {
3594
3597
  protocol: this._protocol.name,
3595
3598
  version: t
3596
3599
  };
3597
- if (this._logger.log(h.Debug, "Sending handshake request."), await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(o)), this._logger.log(h.Information, `Using HubProtocol '${this._protocol.name}'.`), this._cleanupTimeout(), this._resetTimeoutPeriod(), this._resetKeepAliveInterval(), await e, this._stopDuringStartError)
3600
+ if (this._logger.log(g.Debug, "Sending handshake request."), await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(o)), this._logger.log(g.Information, `Using HubProtocol '${this._protocol.name}'.`), this._cleanupTimeout(), this._resetTimeoutPeriod(), this._resetKeepAliveInterval(), await e, this._stopDuringStartError)
3598
3601
  throw this._stopDuringStartError;
3599
3602
  (this.connection.features.reconnect || !1) && (this._messageBuffer = new Od(this._protocol, this.connection, this._statefulReconnectBufferSize), this.connection.features.disconnected = this._messageBuffer._disconnected.bind(this._messageBuffer), this.connection.features.resend = () => {
3600
3603
  if (this._messageBuffer)
3601
3604
  return this._messageBuffer._resend();
3602
3605
  }), this.connection.features.inherentKeepAlive || await this._sendMessage(this._cachedPingMessage);
3603
3606
  } catch (t) {
3604
- throw this._logger.log(h.Debug, `Hub handshake failed with error '${t}' during start(). Stopping HubConnection.`), this._cleanupTimeout(), this._cleanupPingTimer(), await this.connection.stop(t), t;
3607
+ throw this._logger.log(g.Debug, `Hub handshake failed with error '${t}' during start(). Stopping HubConnection.`), this._cleanupTimeout(), this._cleanupPingTimer(), await this.connection.stop(t), t;
3605
3608
  }
3606
3609
  }
3607
3610
  /** Stops the connection.
@@ -3618,11 +3621,11 @@ class _n {
3618
3621
  }
3619
3622
  _stopInternal(e) {
3620
3623
  if (this._connectionState === q.Disconnected)
3621
- return this._logger.log(h.Debug, `Call to HubConnection.stop(${e}) ignored because it is already in the disconnected state.`), Promise.resolve();
3624
+ return this._logger.log(g.Debug, `Call to HubConnection.stop(${e}) ignored because it is already in the disconnected state.`), Promise.resolve();
3622
3625
  if (this._connectionState === q.Disconnecting)
3623
- return this._logger.log(h.Debug, `Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`), this._stopPromise;
3626
+ return this._logger.log(g.Debug, `Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`), this._stopPromise;
3624
3627
  const t = this._connectionState;
3625
- return this._connectionState = q.Disconnecting, this._logger.log(h.Debug, "Stopping HubConnection."), this._reconnectDelayHandle ? (this._logger.log(h.Debug, "Connection stopped during reconnect delay. Done reconnecting."), clearTimeout(this._reconnectDelayHandle), this._reconnectDelayHandle = void 0, this._completeClose(), Promise.resolve()) : (t === q.Connected && this._sendCloseMessage(), this._cleanupTimeout(), this._cleanupPingTimer(), this._stopDuringStartError = e || new ve("The connection was stopped before the hub handshake could complete."), this.connection.stop(e));
3628
+ return this._connectionState = q.Disconnecting, this._logger.log(g.Debug, "Stopping HubConnection."), this._reconnectDelayHandle ? (this._logger.log(g.Debug, "Connection stopped during reconnect delay. Done reconnecting."), clearTimeout(this._reconnectDelayHandle), this._reconnectDelayHandle = void 0, this._completeClose(), Promise.resolve()) : (t === q.Connected && this._sendCloseMessage(), this._cleanupTimeout(), this._cleanupPingTimer(), this._stopDuringStartError = e || new ve("The connection was stopped before the hub handshake could complete."), this.connection.stop(e));
3626
3629
  }
3627
3630
  async _sendCloseMessage() {
3628
3631
  try {
@@ -3638,19 +3641,19 @@ class _n {
3638
3641
  * @returns {IStreamResult<T>} An object that yields results from the server as they are received.
3639
3642
  */
3640
3643
  stream(e, ...t) {
3641
- const [o, r] = this._replaceStreamingParams(t), i = this._createStreamInvocation(e, t, r);
3644
+ const [o, r] = this._replaceStreamingParams(t), s = this._createStreamInvocation(e, t, r);
3642
3645
  let a;
3643
3646
  const l = new Bd();
3644
3647
  return l.cancelCallback = () => {
3645
- const c = this._createCancelInvocation(i.invocationId);
3646
- return delete this._callbacks[i.invocationId], a.then(() => this._sendWithProtocol(c));
3647
- }, this._callbacks[i.invocationId] = (c, s) => {
3648
- if (s) {
3649
- l.error(s);
3648
+ const c = this._createCancelInvocation(s.invocationId);
3649
+ return delete this._callbacks[s.invocationId], a.then(() => this._sendWithProtocol(c));
3650
+ }, this._callbacks[s.invocationId] = (c, i) => {
3651
+ if (i) {
3652
+ l.error(i);
3650
3653
  return;
3651
3654
  } else c && (c.type === j.Completion ? c.error ? l.error(new Error(c.error)) : l.complete() : l.next(c.item));
3652
- }, a = this._sendWithProtocol(i).catch((c) => {
3653
- l.error(c), delete this._callbacks[i.invocationId];
3655
+ }, a = this._sendWithProtocol(s).catch((c) => {
3656
+ l.error(c), delete this._callbacks[s.invocationId];
3654
3657
  }), this._launchStreams(o, a), l;
3655
3658
  }
3656
3659
  _sendMessage(e) {
@@ -3673,8 +3676,8 @@ class _n {
3673
3676
  * @returns {Promise<void>} A Promise that resolves when the invocation has been successfully sent, or rejects with an error.
3674
3677
  */
3675
3678
  send(e, ...t) {
3676
- const [o, r] = this._replaceStreamingParams(t), i = this._sendWithProtocol(this._createInvocation(e, t, !0, r));
3677
- return this._launchStreams(o, i), i;
3679
+ const [o, r] = this._replaceStreamingParams(t), s = this._sendWithProtocol(this._createInvocation(e, t, !0, r));
3680
+ return this._launchStreams(o, s), s;
3678
3681
  }
3679
3682
  /** Invokes a hub method on the server using the specified name and arguments.
3680
3683
  *
@@ -3688,18 +3691,18 @@ class _n {
3688
3691
  * @returns {Promise<T>} A Promise that resolves with the result of the server method (if any), or rejects with an error.
3689
3692
  */
3690
3693
  invoke(e, ...t) {
3691
- const [o, r] = this._replaceStreamingParams(t), i = this._createInvocation(e, t, !1, r);
3694
+ const [o, r] = this._replaceStreamingParams(t), s = this._createInvocation(e, t, !1, r);
3692
3695
  return new Promise((l, c) => {
3693
- this._callbacks[i.invocationId] = (u, m) => {
3694
- if (m) {
3695
- c(m);
3696
+ this._callbacks[s.invocationId] = (u, A) => {
3697
+ if (A) {
3698
+ c(A);
3696
3699
  return;
3697
3700
  } else u && (u.type === j.Completion ? u.error ? c(new Error(u.error)) : l(u.result) : c(new Error(`Unexpected message type: ${u.type}`)));
3698
3701
  };
3699
- const s = this._sendWithProtocol(i).catch((u) => {
3700
- c(u), delete this._callbacks[i.invocationId];
3702
+ const i = this._sendWithProtocol(s).catch((u) => {
3703
+ c(u), delete this._callbacks[s.invocationId];
3701
3704
  });
3702
- this._launchStreams(o, s);
3705
+ this._launchStreams(o, i);
3703
3706
  });
3704
3707
  }
3705
3708
  on(e, t) {
@@ -3746,7 +3749,7 @@ class _n {
3746
3749
  switch (o.type) {
3747
3750
  case j.Invocation:
3748
3751
  this._invokeClientMethod(o).catch((r) => {
3749
- this._logger.log(h.Error, `Invoke client method threw error: ${jt(r)}`);
3752
+ this._logger.log(g.Error, `Invoke client method threw error: ${jt(r)}`);
3750
3753
  });
3751
3754
  break;
3752
3755
  case j.StreamItem:
@@ -3756,8 +3759,8 @@ class _n {
3756
3759
  o.type === j.Completion && delete this._callbacks[o.invocationId];
3757
3760
  try {
3758
3761
  r(o);
3759
- } catch (i) {
3760
- this._logger.log(h.Error, `Stream callback threw error: ${jt(i)}`);
3762
+ } catch (s) {
3763
+ this._logger.log(g.Error, `Stream callback threw error: ${jt(s)}`);
3761
3764
  }
3762
3765
  }
3763
3766
  break;
@@ -3765,7 +3768,7 @@ class _n {
3765
3768
  case j.Ping:
3766
3769
  break;
3767
3770
  case j.Close: {
3768
- this._logger.log(h.Information, "Close message received from server.");
3771
+ this._logger.log(g.Information, "Close message received from server.");
3769
3772
  const r = o.error ? new Error("Server returned an error on close: " + o.error) : void 0;
3770
3773
  o.allowReconnect === !0 ? this.connection.stop(r) : this._stopPromise = this._stopInternal(r);
3771
3774
  break;
@@ -3777,7 +3780,7 @@ class _n {
3777
3780
  this._messageBuffer && this._messageBuffer._resetSequence(o);
3778
3781
  break;
3779
3782
  default:
3780
- this._logger.log(h.Warning, `Invalid message type: ${o.type}.`);
3783
+ this._logger.log(g.Warning, `Invalid message type: ${o.type}.`);
3781
3784
  break;
3782
3785
  }
3783
3786
  }
@@ -3788,18 +3791,18 @@ class _n {
3788
3791
  try {
3789
3792
  [o, t] = this._handshakeProtocol.parseHandshakeResponse(e);
3790
3793
  } catch (r) {
3791
- const i = "Error parsing handshake response: " + r;
3792
- this._logger.log(h.Error, i);
3793
- const a = new Error(i);
3794
+ const s = "Error parsing handshake response: " + r;
3795
+ this._logger.log(g.Error, s);
3796
+ const a = new Error(s);
3794
3797
  throw this._handshakeRejecter(a), a;
3795
3798
  }
3796
3799
  if (t.error) {
3797
3800
  const r = "Server returned handshake error: " + t.error;
3798
- this._logger.log(h.Error, r);
3799
- const i = new Error(r);
3800
- throw this._handshakeRejecter(i), i;
3801
+ this._logger.log(g.Error, r);
3802
+ const s = new Error(r);
3803
+ throw this._handshakeRejecter(s), s;
3801
3804
  } else
3802
- this._logger.log(h.Debug, "Server handshake complete.");
3805
+ this._logger.log(g.Debug, "Server handshake complete.");
3803
3806
  return this._handshakeResolver(), o;
3804
3807
  }
3805
3808
  _resetKeepAliveInterval() {
@@ -3825,22 +3828,22 @@ class _n {
3825
3828
  async _invokeClientMethod(e) {
3826
3829
  const t = e.target.toLowerCase(), o = this._methods[t];
3827
3830
  if (!o) {
3828
- this._logger.log(h.Warning, `No client method with the name '${t}' found.`), e.invocationId && (this._logger.log(h.Warning, `No result given for '${t}' method and invocation ID '${e.invocationId}'.`), await this._sendWithProtocol(this._createCompletionMessage(e.invocationId, "Client didn't provide a result.", null)));
3831
+ this._logger.log(g.Warning, `No client method with the name '${t}' found.`), e.invocationId && (this._logger.log(g.Warning, `No result given for '${t}' method and invocation ID '${e.invocationId}'.`), await this._sendWithProtocol(this._createCompletionMessage(e.invocationId, "Client didn't provide a result.", null)));
3829
3832
  return;
3830
3833
  }
3831
- const r = o.slice(), i = !!e.invocationId;
3834
+ const r = o.slice(), s = !!e.invocationId;
3832
3835
  let a, l, c;
3833
- for (const s of r)
3836
+ for (const i of r)
3834
3837
  try {
3835
3838
  const u = a;
3836
- a = await s.apply(this, e.arguments), i && a && u && (this._logger.log(h.Error, `Multiple results provided for '${t}'. Sending error to server.`), c = this._createCompletionMessage(e.invocationId, "Client provided multiple results.", null)), l = void 0;
3839
+ a = await i.apply(this, e.arguments), s && a && u && (this._logger.log(g.Error, `Multiple results provided for '${t}'. Sending error to server.`), c = this._createCompletionMessage(e.invocationId, "Client provided multiple results.", null)), l = void 0;
3837
3840
  } catch (u) {
3838
- l = u, this._logger.log(h.Error, `A callback for the method '${t}' threw error '${u}'.`);
3841
+ l = u, this._logger.log(g.Error, `A callback for the method '${t}' threw error '${u}'.`);
3839
3842
  }
3840
- c ? await this._sendWithProtocol(c) : i ? (l ? c = this._createCompletionMessage(e.invocationId, `${l}`, null) : a !== void 0 ? c = this._createCompletionMessage(e.invocationId, null, a) : (this._logger.log(h.Warning, `No result given for '${t}' method and invocation ID '${e.invocationId}'.`), c = this._createCompletionMessage(e.invocationId, "Client didn't provide a result.", null)), await this._sendWithProtocol(c)) : a && this._logger.log(h.Error, `Result given for '${t}' method but server is not expecting a result.`);
3843
+ c ? await this._sendWithProtocol(c) : s ? (l ? c = this._createCompletionMessage(e.invocationId, `${l}`, null) : a !== void 0 ? c = this._createCompletionMessage(e.invocationId, null, a) : (this._logger.log(g.Warning, `No result given for '${t}' method and invocation ID '${e.invocationId}'.`), c = this._createCompletionMessage(e.invocationId, "Client didn't provide a result.", null)), await this._sendWithProtocol(c)) : a && this._logger.log(g.Error, `Result given for '${t}' method but server is not expecting a result.`);
3841
3844
  }
3842
3845
  _connectionClosed(e) {
3843
- this._logger.log(h.Debug, `HubConnection.connectionClosed(${e}) called while in state ${this._connectionState}.`), this._stopDuringStartError = this._stopDuringStartError || e || new ve("The underlying connection was closed before the hub handshake could complete."), this._handshakeResolver && this._handshakeResolver(), this._cancelCallbacksWithError(e || new Error("Invocation canceled due to the underlying connection being closed.")), this._cleanupTimeout(), this._cleanupPingTimer(), this._connectionState === q.Disconnecting ? this._completeClose(e) : this._connectionState === q.Connected && this._reconnectPolicy ? this._reconnect(e) : this._connectionState === q.Connected && this._completeClose(e);
3846
+ this._logger.log(g.Debug, `HubConnection.connectionClosed(${e}) called while in state ${this._connectionState}.`), this._stopDuringStartError = this._stopDuringStartError || e || new ve("The underlying connection was closed before the hub handshake could complete."), this._handshakeResolver && this._handshakeResolver(), this._cancelCallbacksWithError(e || new Error("Invocation canceled due to the underlying connection being closed.")), this._cleanupTimeout(), this._cleanupPingTimer(), this._connectionState === q.Disconnecting ? this._completeClose(e) : this._connectionState === q.Connected && this._reconnectPolicy ? this._reconnect(e) : this._connectionState === q.Connected && this._completeClose(e);
3844
3847
  }
3845
3848
  _completeClose(e) {
3846
3849
  if (this._connectionStarted) {
@@ -3848,52 +3851,52 @@ class _n {
3848
3851
  try {
3849
3852
  this._closedCallbacks.forEach((t) => t.apply(this, [e]));
3850
3853
  } catch (t) {
3851
- this._logger.log(h.Error, `An onclose callback called with error '${e}' threw error '${t}'.`);
3854
+ this._logger.log(g.Error, `An onclose callback called with error '${e}' threw error '${t}'.`);
3852
3855
  }
3853
3856
  }
3854
3857
  }
3855
3858
  async _reconnect(e) {
3856
3859
  const t = Date.now();
3857
- let o = 0, r = e !== void 0 ? e : new Error("Attempting to reconnect due to a unknown error."), i = this._getNextRetryDelay(o++, 0, r);
3858
- if (i === null) {
3859
- this._logger.log(h.Debug, "Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."), this._completeClose(e);
3860
+ let o = 0, r = e !== void 0 ? e : new Error("Attempting to reconnect due to a unknown error."), s = this._getNextRetryDelay(o++, 0, r);
3861
+ if (s === null) {
3862
+ this._logger.log(g.Debug, "Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."), this._completeClose(e);
3860
3863
  return;
3861
3864
  }
3862
- if (this._connectionState = q.Reconnecting, e ? this._logger.log(h.Information, `Connection reconnecting because of error '${e}'.`) : this._logger.log(h.Information, "Connection reconnecting."), this._reconnectingCallbacks.length !== 0) {
3865
+ if (this._connectionState = q.Reconnecting, e ? this._logger.log(g.Information, `Connection reconnecting because of error '${e}'.`) : this._logger.log(g.Information, "Connection reconnecting."), this._reconnectingCallbacks.length !== 0) {
3863
3866
  try {
3864
3867
  this._reconnectingCallbacks.forEach((a) => a.apply(this, [e]));
3865
3868
  } catch (a) {
3866
- this._logger.log(h.Error, `An onreconnecting callback called with error '${e}' threw error '${a}'.`);
3869
+ this._logger.log(g.Error, `An onreconnecting callback called with error '${e}' threw error '${a}'.`);
3867
3870
  }
3868
3871
  if (this._connectionState !== q.Reconnecting) {
3869
- this._logger.log(h.Debug, "Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");
3872
+ this._logger.log(g.Debug, "Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");
3870
3873
  return;
3871
3874
  }
3872
3875
  }
3873
- for (; i !== null; ) {
3874
- if (this._logger.log(h.Information, `Reconnect attempt number ${o} will start in ${i} ms.`), await new Promise((a) => {
3875
- this._reconnectDelayHandle = setTimeout(a, i);
3876
+ for (; s !== null; ) {
3877
+ if (this._logger.log(g.Information, `Reconnect attempt number ${o} will start in ${s} ms.`), await new Promise((a) => {
3878
+ this._reconnectDelayHandle = setTimeout(a, s);
3876
3879
  }), this._reconnectDelayHandle = void 0, this._connectionState !== q.Reconnecting) {
3877
- this._logger.log(h.Debug, "Connection left the reconnecting state during reconnect delay. Done reconnecting.");
3880
+ this._logger.log(g.Debug, "Connection left the reconnecting state during reconnect delay. Done reconnecting.");
3878
3881
  return;
3879
3882
  }
3880
3883
  try {
3881
- if (await this._startInternal(), this._connectionState = q.Connected, this._logger.log(h.Information, "HubConnection reconnected successfully."), this._reconnectedCallbacks.length !== 0)
3884
+ if (await this._startInternal(), this._connectionState = q.Connected, this._logger.log(g.Information, "HubConnection reconnected successfully."), this._reconnectedCallbacks.length !== 0)
3882
3885
  try {
3883
3886
  this._reconnectedCallbacks.forEach((a) => a.apply(this, [this.connection.connectionId]));
3884
3887
  } catch (a) {
3885
- this._logger.log(h.Error, `An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${a}'.`);
3888
+ this._logger.log(g.Error, `An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${a}'.`);
3886
3889
  }
3887
3890
  return;
3888
3891
  } catch (a) {
3889
- if (this._logger.log(h.Information, `Reconnect attempt failed because of error '${a}'.`), this._connectionState !== q.Reconnecting) {
3890
- this._logger.log(h.Debug, `Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`), this._connectionState === q.Disconnecting && this._completeClose();
3892
+ if (this._logger.log(g.Information, `Reconnect attempt failed because of error '${a}'.`), this._connectionState !== q.Reconnecting) {
3893
+ this._logger.log(g.Debug, `Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`), this._connectionState === q.Disconnecting && this._completeClose();
3891
3894
  return;
3892
3895
  }
3893
- r = a instanceof Error ? a : new Error(a.toString()), i = this._getNextRetryDelay(o++, Date.now() - t, r);
3896
+ r = a instanceof Error ? a : new Error(a.toString()), s = this._getNextRetryDelay(o++, Date.now() - t, r);
3894
3897
  }
3895
3898
  }
3896
- this._logger.log(h.Information, `Reconnect retries have been exhausted after ${Date.now() - t} ms and ${o} failed attempts. Connection disconnecting.`), this._completeClose();
3899
+ this._logger.log(g.Information, `Reconnect retries have been exhausted after ${Date.now() - t} ms and ${o} failed attempts. Connection disconnecting.`), this._completeClose();
3897
3900
  }
3898
3901
  _getNextRetryDelay(e, t, o) {
3899
3902
  try {
@@ -3903,7 +3906,7 @@ class _n {
3903
3906
  retryReason: o
3904
3907
  });
3905
3908
  } catch (r) {
3906
- return this._logger.log(h.Error, `IRetryPolicy.nextRetryDelayInMilliseconds(${e}, ${t}) threw error '${r}'.`), null;
3909
+ return this._logger.log(g.Error, `IRetryPolicy.nextRetryDelayInMilliseconds(${e}, ${t}) threw error '${r}'.`), null;
3907
3910
  }
3908
3911
  }
3909
3912
  _cancelCallbacksWithError(e) {
@@ -3912,8 +3915,8 @@ class _n {
3912
3915
  const r = t[o];
3913
3916
  try {
3914
3917
  r(null, e);
3915
- } catch (i) {
3916
- this._logger.log(h.Error, `Stream 'error' callback called with '${e}' threw error: ${jt(i)}`);
3918
+ } catch (s) {
3919
+ this._logger.log(g.Error, `Stream 'error' callback called with '${e}' threw error: ${jt(s)}`);
3917
3920
  }
3918
3921
  });
3919
3922
  }
@@ -3936,16 +3939,16 @@ class _n {
3936
3939
  type: j.Invocation
3937
3940
  };
3938
3941
  {
3939
- const i = this._invocationId;
3942
+ const s = this._invocationId;
3940
3943
  return this._invocationId++, r.length !== 0 ? {
3941
3944
  arguments: t,
3942
- invocationId: i.toString(),
3945
+ invocationId: s.toString(),
3943
3946
  streamIds: r,
3944
3947
  target: e,
3945
3948
  type: j.Invocation
3946
3949
  } : {
3947
3950
  arguments: t,
3948
- invocationId: i.toString(),
3951
+ invocationId: s.toString(),
3949
3952
  target: e,
3950
3953
  type: j.Invocation
3951
3954
  };
@@ -3960,8 +3963,8 @@ class _n {
3960
3963
  t = t.then(() => this._sendWithProtocol(this._createCompletionMessage(o)));
3961
3964
  },
3962
3965
  error: (r) => {
3963
- let i;
3964
- r instanceof Error ? i = r.message : r && r.toString ? i = r.toString() : i = "Unknown error", t = t.then(() => this._sendWithProtocol(this._createCompletionMessage(o, i)));
3966
+ let s;
3967
+ r instanceof Error ? s = r.message : r && r.toString ? s = r.toString() : s = "Unknown error", t = t.then(() => this._sendWithProtocol(this._createCompletionMessage(o, s)));
3965
3968
  },
3966
3969
  next: (r) => {
3967
3970
  t = t.then(() => this._sendWithProtocol(this._createStreamItemMessage(o, r)));
@@ -3972,10 +3975,10 @@ class _n {
3972
3975
  _replaceStreamingParams(e) {
3973
3976
  const t = [], o = [];
3974
3977
  for (let r = 0; r < e.length; r++) {
3975
- const i = e[r];
3976
- if (this._isObservable(i)) {
3978
+ const s = e[r];
3979
+ if (this._isObservable(s)) {
3977
3980
  const a = this._invocationId;
3978
- this._invocationId++, t[a] = i, o.push(a.toString()), e.splice(r, 1);
3981
+ this._invocationId++, t[a] = s, o.push(a.toString()), e.splice(r, 1);
3979
3982
  }
3980
3983
  }
3981
3984
  return [t, o];
@@ -4087,42 +4090,42 @@ class Ao {
4087
4090
  this._httpClient = e, this._logger = t, this._pollAbort = new Qd(), this._options = o, this._running = !1, this.onreceive = null, this.onclose = null;
4088
4091
  }
4089
4092
  async connect(e, t) {
4090
- if (Y.isRequired(e, "url"), Y.isRequired(t, "transferFormat"), Y.isIn(t, re, "transferFormat"), this._url = e, this._logger.log(h.Trace, "(LongPolling transport) Connecting."), t === re.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
4093
+ if (Y.isRequired(e, "url"), Y.isRequired(t, "transferFormat"), Y.isIn(t, re, "transferFormat"), this._url = e, this._logger.log(g.Trace, "(LongPolling transport) Connecting."), t === re.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
4091
4094
  throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");
4092
- const [o, r] = Ke(), i = { [o]: r, ...this._options.headers }, a = {
4095
+ const [o, r] = Ke(), s = { [o]: r, ...this._options.headers }, a = {
4093
4096
  abortSignal: this._pollAbort.signal,
4094
- headers: i,
4097
+ headers: s,
4095
4098
  timeout: 1e5,
4096
4099
  withCredentials: this._options.withCredentials
4097
4100
  };
4098
4101
  t === re.Binary && (a.responseType = "arraybuffer");
4099
4102
  const l = `${e}&_=${Date.now()}`;
4100
- this._logger.log(h.Trace, `(LongPolling transport) polling: ${l}.`);
4103
+ this._logger.log(g.Trace, `(LongPolling transport) polling: ${l}.`);
4101
4104
  const c = await this._httpClient.get(l, a);
4102
- c.statusCode !== 200 ? (this._logger.log(h.Error, `(LongPolling transport) Unexpected response code: ${c.statusCode}.`), this._closeError = new Le(c.statusText || "", c.statusCode), this._running = !1) : this._running = !0, this._receiving = this._poll(this._url, a);
4105
+ c.statusCode !== 200 ? (this._logger.log(g.Error, `(LongPolling transport) Unexpected response code: ${c.statusCode}.`), this._closeError = new Le(c.statusText || "", c.statusCode), this._running = !1) : this._running = !0, this._receiving = this._poll(this._url, a);
4103
4106
  }
4104
4107
  async _poll(e, t) {
4105
4108
  try {
4106
4109
  for (; this._running; )
4107
4110
  try {
4108
4111
  const o = `${e}&_=${Date.now()}`;
4109
- this._logger.log(h.Trace, `(LongPolling transport) polling: ${o}.`);
4112
+ this._logger.log(g.Trace, `(LongPolling transport) polling: ${o}.`);
4110
4113
  const r = await this._httpClient.get(o, t);
4111
- r.statusCode === 204 ? (this._logger.log(h.Information, "(LongPolling transport) Poll terminated by server."), this._running = !1) : r.statusCode !== 200 ? (this._logger.log(h.Error, `(LongPolling transport) Unexpected response code: ${r.statusCode}.`), this._closeError = new Le(r.statusText || "", r.statusCode), this._running = !1) : r.content ? (this._logger.log(h.Trace, `(LongPolling transport) data received. ${ct(r.content, this._options.logMessageContent)}.`), this.onreceive && this.onreceive(r.content)) : this._logger.log(h.Trace, "(LongPolling transport) Poll timed out, reissuing.");
4114
+ r.statusCode === 204 ? (this._logger.log(g.Information, "(LongPolling transport) Poll terminated by server."), this._running = !1) : r.statusCode !== 200 ? (this._logger.log(g.Error, `(LongPolling transport) Unexpected response code: ${r.statusCode}.`), this._closeError = new Le(r.statusText || "", r.statusCode), this._running = !1) : r.content ? (this._logger.log(g.Trace, `(LongPolling transport) data received. ${ct(r.content, this._options.logMessageContent)}.`), this.onreceive && this.onreceive(r.content)) : this._logger.log(g.Trace, "(LongPolling transport) Poll timed out, reissuing.");
4112
4115
  } catch (o) {
4113
- this._running ? o instanceof yn ? this._logger.log(h.Trace, "(LongPolling transport) Poll timed out, reissuing.") : (this._closeError = o, this._running = !1) : this._logger.log(h.Trace, `(LongPolling transport) Poll errored after shutdown: ${o.message}`);
4116
+ this._running ? o instanceof yn ? this._logger.log(g.Trace, "(LongPolling transport) Poll timed out, reissuing.") : (this._closeError = o, this._running = !1) : this._logger.log(g.Trace, `(LongPolling transport) Poll errored after shutdown: ${o.message}`);
4114
4117
  }
4115
4118
  } finally {
4116
- this._logger.log(h.Trace, "(LongPolling transport) Polling complete."), this.pollAborted || this._raiseOnClose();
4119
+ this._logger.log(g.Trace, "(LongPolling transport) Polling complete."), this.pollAborted || this._raiseOnClose();
4117
4120
  }
4118
4121
  }
4119
4122
  async send(e) {
4120
4123
  return this._running ? gr(this._logger, "LongPolling", this._httpClient, this._url, e, this._options) : Promise.reject(new Error("Cannot send until the transport is connected"));
4121
4124
  }
4122
4125
  async stop() {
4123
- this._logger.log(h.Trace, "(LongPolling transport) Stopping polling."), this._running = !1, this._pollAbort.abort();
4126
+ this._logger.log(g.Trace, "(LongPolling transport) Stopping polling."), this._running = !1, this._pollAbort.abort();
4124
4127
  try {
4125
- await this._receiving, this._logger.log(h.Trace, `(LongPolling transport) sending DELETE request to ${this._url}.`);
4128
+ await this._receiving, this._logger.log(g.Trace, `(LongPolling transport) sending DELETE request to ${this._url}.`);
4126
4129
  const e = {}, [t, o] = Ke();
4127
4130
  e[t] = o;
4128
4131
  const r = {
@@ -4130,21 +4133,21 @@ class Ao {
4130
4133
  timeout: this._options.timeout,
4131
4134
  withCredentials: this._options.withCredentials
4132
4135
  };
4133
- let i;
4136
+ let s;
4134
4137
  try {
4135
4138
  await this._httpClient.delete(this._url, r);
4136
4139
  } catch (a) {
4137
- i = a;
4140
+ s = a;
4138
4141
  }
4139
- i ? i instanceof Le && (i.statusCode === 404 ? this._logger.log(h.Trace, "(LongPolling transport) A 404 response was returned from sending a DELETE request.") : this._logger.log(h.Trace, `(LongPolling transport) Error sending a DELETE request: ${i}`)) : this._logger.log(h.Trace, "(LongPolling transport) DELETE request accepted.");
4142
+ s ? s instanceof Le && (s.statusCode === 404 ? this._logger.log(g.Trace, "(LongPolling transport) A 404 response was returned from sending a DELETE request.") : this._logger.log(g.Trace, `(LongPolling transport) Error sending a DELETE request: ${s}`)) : this._logger.log(g.Trace, "(LongPolling transport) DELETE request accepted.");
4140
4143
  } finally {
4141
- this._logger.log(h.Trace, "(LongPolling transport) Stop finished."), this._raiseOnClose();
4144
+ this._logger.log(g.Trace, "(LongPolling transport) Stop finished."), this._raiseOnClose();
4142
4145
  }
4143
4146
  }
4144
4147
  _raiseOnClose() {
4145
4148
  if (this.onclose) {
4146
4149
  let e = "(LongPolling transport) Firing onclose event.";
4147
- this._closeError && (e += " Error: " + this._closeError), this._logger.log(h.Trace, e), this.onclose(this._closeError);
4150
+ this._closeError && (e += " Error: " + this._closeError), this._logger.log(g.Trace, e), this.onclose(this._closeError);
4148
4151
  }
4149
4152
  }
4150
4153
  }
@@ -4153,8 +4156,8 @@ class jd {
4153
4156
  this._httpClient = e, this._accessToken = t, this._logger = o, this._options = r, this.onreceive = null, this.onclose = null;
4154
4157
  }
4155
4158
  async connect(e, t) {
4156
- return Y.isRequired(e, "url"), Y.isRequired(t, "transferFormat"), Y.isIn(t, re, "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) => {
4157
- let i = !1;
4159
+ return Y.isRequired(e, "url"), Y.isRequired(t, "transferFormat"), Y.isIn(t, re, "transferFormat"), this._logger.log(g.Trace, "(SSE transport) Connecting."), this._url = e, this._accessToken && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(this._accessToken)}`), new Promise((o, r) => {
4160
+ let s = !1;
4158
4161
  if (t !== re.Text) {
4159
4162
  r(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));
4160
4163
  return;
@@ -4165,22 +4168,22 @@ class jd {
4165
4168
  else {
4166
4169
  const l = this._httpClient.getCookieString(e), c = {};
4167
4170
  c.Cookie = l;
4168
- const [s, u] = Ke();
4169
- c[s] = u, a = new this._options.EventSource(e, { withCredentials: this._options.withCredentials, headers: { ...c, ...this._options.headers } });
4171
+ const [i, u] = Ke();
4172
+ c[i] = u, a = new this._options.EventSource(e, { withCredentials: this._options.withCredentials, headers: { ...c, ...this._options.headers } });
4170
4173
  }
4171
4174
  try {
4172
4175
  a.onmessage = (l) => {
4173
4176
  if (this.onreceive)
4174
4177
  try {
4175
- this._logger.log(h.Trace, `(SSE transport) data received. ${ct(l.data, this._options.logMessageContent)}.`), this.onreceive(l.data);
4178
+ this._logger.log(g.Trace, `(SSE transport) data received. ${ct(l.data, this._options.logMessageContent)}.`), this.onreceive(l.data);
4176
4179
  } catch (c) {
4177
4180
  this._close(c);
4178
4181
  return;
4179
4182
  }
4180
4183
  }, a.onerror = (l) => {
4181
- i ? this._close() : r(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."));
4184
+ s ? this._close() : r(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."));
4182
4185
  }, a.onopen = () => {
4183
- this._logger.log(h.Information, `SSE connected to ${this._url}`), this._eventSource = a, i = !0, o();
4186
+ this._logger.log(g.Information, `SSE connected to ${this._url}`), this._eventSource = a, s = !0, o();
4184
4187
  };
4185
4188
  } catch (l) {
4186
4189
  r(l);
@@ -4199,49 +4202,49 @@ class jd {
4199
4202
  }
4200
4203
  }
4201
4204
  class Hd {
4202
- constructor(e, t, o, r, i, a) {
4203
- this._logger = o, this._accessTokenFactory = t, this._logMessageContent = r, this._webSocketConstructor = i, this._httpClient = e, this.onreceive = null, this.onclose = null, this._headers = a;
4205
+ constructor(e, t, o, r, s, a) {
4206
+ this._logger = o, this._accessTokenFactory = t, this._logMessageContent = r, this._webSocketConstructor = s, this._httpClient = e, this.onreceive = null, this.onclose = null, this._headers = a;
4204
4207
  }
4205
4208
  async connect(e, t) {
4206
- Y.isRequired(e, "url"), Y.isRequired(t, "transferFormat"), Y.isIn(t, re, "transferFormat"), this._logger.log(h.Trace, "(WebSockets transport) Connecting.");
4209
+ Y.isRequired(e, "url"), Y.isRequired(t, "transferFormat"), Y.isIn(t, re, "transferFormat"), this._logger.log(g.Trace, "(WebSockets transport) Connecting.");
4207
4210
  let o;
4208
- return this._accessTokenFactory && (o = await this._accessTokenFactory()), new Promise((r, i) => {
4211
+ return this._accessTokenFactory && (o = await this._accessTokenFactory()), new Promise((r, s) => {
4209
4212
  e = e.replace(/^http/, "ws");
4210
4213
  let a;
4211
4214
  const l = this._httpClient.getCookieString(e);
4212
4215
  let c = !1;
4213
4216
  if (K.isNode || K.isReactNative) {
4214
- const s = {}, [u, m] = Ke();
4215
- s[u] = m, o && (s[xe.Authorization] = `Bearer ${o}`), l && (s[xe.Cookie] = l), a = new this._webSocketConstructor(e, void 0, {
4216
- headers: { ...s, ...this._headers }
4217
+ const i = {}, [u, A] = Ke();
4218
+ i[u] = A, o && (i[xe.Authorization] = `Bearer ${o}`), l && (i[xe.Cookie] = l), a = new this._webSocketConstructor(e, void 0, {
4219
+ headers: { ...i, ...this._headers }
4217
4220
  });
4218
4221
  } else
4219
4222
  o && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(o)}`);
4220
- a || (a = new this._webSocketConstructor(e)), t === re.Binary && (a.binaryType = "arraybuffer"), a.onopen = (s) => {
4221
- this._logger.log(h.Information, `WebSocket connected to ${e}.`), this._webSocket = a, c = !0, r();
4222
- }, a.onerror = (s) => {
4223
+ a || (a = new this._webSocketConstructor(e)), t === re.Binary && (a.binaryType = "arraybuffer"), a.onopen = (i) => {
4224
+ this._logger.log(g.Information, `WebSocket connected to ${e}.`), this._webSocket = a, c = !0, r();
4225
+ }, a.onerror = (i) => {
4223
4226
  let u = null;
4224
- typeof ErrorEvent < "u" && s instanceof ErrorEvent ? u = s.error : u = "There was an error with the transport", this._logger.log(h.Information, `(WebSockets transport) ${u}.`);
4225
- }, a.onmessage = (s) => {
4226
- if (this._logger.log(h.Trace, `(WebSockets transport) data received. ${ct(s.data, this._logMessageContent)}.`), this.onreceive)
4227
+ typeof ErrorEvent < "u" && i instanceof ErrorEvent ? u = i.error : u = "There was an error with the transport", this._logger.log(g.Information, `(WebSockets transport) ${u}.`);
4228
+ }, a.onmessage = (i) => {
4229
+ if (this._logger.log(g.Trace, `(WebSockets transport) data received. ${ct(i.data, this._logMessageContent)}.`), this.onreceive)
4227
4230
  try {
4228
- this.onreceive(s.data);
4231
+ this.onreceive(i.data);
4229
4232
  } catch (u) {
4230
4233
  this._close(u);
4231
4234
  return;
4232
4235
  }
4233
- }, a.onclose = (s) => {
4236
+ }, a.onclose = (i) => {
4234
4237
  if (c)
4235
- this._close(s);
4238
+ this._close(i);
4236
4239
  else {
4237
4240
  let u = null;
4238
- typeof ErrorEvent < "u" && s instanceof ErrorEvent ? u = s.error : u = "WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.", i(new Error(u));
4241
+ typeof ErrorEvent < "u" && i instanceof ErrorEvent ? u = i.error : u = "WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.", s(new Error(u));
4239
4242
  }
4240
4243
  };
4241
4244
  });
4242
4245
  }
4243
4246
  send(e) {
4244
- return this._webSocket && this._webSocket.readyState === this._webSocketConstructor.OPEN ? (this._logger.log(h.Trace, `(WebSockets transport) sending data. ${ct(e, this._logMessageContent)}.`), this._webSocket.send(e), Promise.resolve()) : Promise.reject("WebSocket is not in the OPEN state");
4247
+ return this._webSocket && this._webSocket.readyState === this._webSocketConstructor.OPEN ? (this._logger.log(g.Trace, `(WebSockets transport) sending data. ${ct(e, this._logMessageContent)}.`), this._webSocket.send(e), Promise.resolve()) : Promise.reject("WebSocket is not in the OPEN state");
4245
4248
  }
4246
4249
  stop() {
4247
4250
  return this._webSocket && this._close(void 0), Promise.resolve();
@@ -4250,7 +4253,7 @@ class Hd {
4250
4253
  this._webSocket && (this._webSocket.onclose = () => {
4251
4254
  }, this._webSocket.onmessage = () => {
4252
4255
  }, this._webSocket.onerror = () => {
4253
- }, this._webSocket.close(), this._webSocket = void 0), this._logger.log(h.Trace, "(WebSockets transport) socket closed."), this.onclose && (this._isCloseEvent(e) && (e.wasClean === !1 || e.code !== 1e3) ? this.onclose(new Error(`WebSocket closed with status code: ${e.code} (${e.reason || "no reason given"}).`)) : e instanceof Error ? this.onclose(e) : this.onclose());
4256
+ }, this._webSocket.close(), this._webSocket = void 0), this._logger.log(g.Trace, "(WebSockets transport) socket closed."), this.onclose && (this._isCloseEvent(e) && (e.wasClean === !1 || e.code !== 1e3) ? this.onclose(new Error(`WebSocket closed with status code: ${e.code} (${e.reason || "no reason given"}).`)) : e instanceof Error ? this.onclose(e) : this.onclose());
4254
4257
  }
4255
4258
  _isCloseEvent(e) {
4256
4259
  return e && typeof e.wasClean == "boolean" && typeof e.code == "number";
@@ -4267,20 +4270,20 @@ class Nd {
4267
4270
  t.timeout = t.timeout === void 0 ? 100 * 1e3 : t.timeout;
4268
4271
  let o = null, r = null;
4269
4272
  if (K.isNode && typeof require < "u") {
4270
- const i = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
4271
- o = i("ws"), r = i("eventsource");
4273
+ const s = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
4274
+ o = s("ws"), r = s("eventsource");
4272
4275
  }
4273
4276
  !K.isNode && typeof WebSocket < "u" && !t.WebSocket ? t.WebSocket = WebSocket : K.isNode && !t.WebSocket && o && (t.WebSocket = o), !K.isNode && typeof EventSource < "u" && !t.EventSource ? t.EventSource = EventSource : K.isNode && !t.EventSource && typeof r < "u" && (t.EventSource = r), this._httpClient = new Rd(t.httpClient || new kd(this._logger), t.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = t, this.onreceive = null, this.onclose = null;
4274
4277
  }
4275
4278
  async start(e) {
4276
- if (e = e || re.Binary, Y.isIn(e, re, "transferFormat"), this._logger.log(h.Debug, `Starting connection with transfer format '${re[e]}'.`), this._connectionState !== "Disconnected")
4279
+ if (e = e || re.Binary, Y.isIn(e, re, "transferFormat"), this._logger.log(g.Debug, `Starting connection with transfer format '${re[e]}'.`), this._connectionState !== "Disconnected")
4277
4280
  return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));
4278
4281
  if (this._connectionState = "Connecting", this._startInternalPromise = this._startInternal(e), await this._startInternalPromise, this._connectionState === "Disconnecting") {
4279
4282
  const t = "Failed to start the HttpConnection before stop() was called.";
4280
- return this._logger.log(h.Error, t), await this._stopPromise, Promise.reject(new ve(t));
4283
+ return this._logger.log(g.Error, t), await this._stopPromise, Promise.reject(new ve(t));
4281
4284
  } else if (this._connectionState !== "Connected") {
4282
4285
  const t = "HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";
4283
- return this._logger.log(h.Error, t), Promise.reject(new ve(t));
4286
+ return this._logger.log(g.Error, t), Promise.reject(new ve(t));
4284
4287
  }
4285
4288
  this._connectionStarted = !0;
4286
4289
  }
@@ -4289,9 +4292,9 @@ class Nd {
4289
4292
  }
4290
4293
  async stop(e) {
4291
4294
  if (this._connectionState === "Disconnected")
4292
- return this._logger.log(h.Debug, `Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnected state.`), Promise.resolve();
4295
+ return this._logger.log(g.Debug, `Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnected state.`), Promise.resolve();
4293
4296
  if (this._connectionState === "Disconnecting")
4294
- return this._logger.log(h.Debug, `Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`), this._stopPromise;
4297
+ return this._logger.log(g.Debug, `Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`), this._stopPromise;
4295
4298
  this._connectionState = "Disconnecting", this._stopPromise = new Promise((t) => {
4296
4299
  this._stopPromiseResolver = t;
4297
4300
  }), await this._stopInternal(e), await this._stopPromise;
@@ -4306,11 +4309,11 @@ class Nd {
4306
4309
  try {
4307
4310
  await this.transport.stop();
4308
4311
  } catch (t) {
4309
- this._logger.log(h.Error, `HttpConnection.transport.stop() threw error '${t}'.`), this._stopConnection();
4312
+ this._logger.log(g.Error, `HttpConnection.transport.stop() threw error '${t}'.`), this._stopConnection();
4310
4313
  }
4311
4314
  this.transport = void 0;
4312
4315
  } else
4313
- this._logger.log(h.Debug, "HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.");
4316
+ this._logger.log(g.Debug, "HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.");
4314
4317
  }
4315
4318
  async _startInternal(e) {
4316
4319
  let t = this.baseUrl;
@@ -4331,8 +4334,8 @@ class Nd {
4331
4334
  if (o.ProtocolVersion)
4332
4335
  throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");
4333
4336
  if (o.url && (t = o.url), o.accessToken) {
4334
- const i = o.accessToken;
4335
- this._accessTokenFactory = () => i, this._httpClient._accessToken = i, this._httpClient._accessTokenFactory = void 0;
4337
+ const s = o.accessToken;
4338
+ this._accessTokenFactory = () => s, this._httpClient._accessToken = s, this._httpClient._accessTokenFactory = void 0;
4336
4339
  }
4337
4340
  r++;
4338
4341
  } while (o.url && r < mo);
@@ -4340,18 +4343,18 @@ class Nd {
4340
4343
  throw new Error("Negotiate redirection limit exceeded.");
4341
4344
  await this._createTransport(t, this._options.transport, o, e);
4342
4345
  }
4343
- this.transport instanceof Ao && (this.features.inherentKeepAlive = !0), this._connectionState === "Connecting" && (this._logger.log(h.Debug, "The HttpConnection connected successfully."), this._connectionState = "Connected");
4346
+ this.transport instanceof Ao && (this.features.inherentKeepAlive = !0), this._connectionState === "Connecting" && (this._logger.log(g.Debug, "The HttpConnection connected successfully."), this._connectionState = "Connected");
4344
4347
  } catch (o) {
4345
- return this._logger.log(h.Error, "Failed to start the connection: " + o), this._connectionState = "Disconnected", this.transport = void 0, this._stopPromiseResolver(), Promise.reject(o);
4348
+ return this._logger.log(g.Error, "Failed to start the connection: " + o), this._connectionState = "Disconnected", this.transport = void 0, this._stopPromiseResolver(), Promise.reject(o);
4346
4349
  }
4347
4350
  }
4348
4351
  async _getNegotiationResponse(e) {
4349
4352
  const t = {}, [o, r] = Ke();
4350
4353
  t[o] = r;
4351
- const i = this._resolveNegotiateUrl(e);
4352
- this._logger.log(h.Debug, `Sending negotiation request: ${i}.`);
4354
+ const s = this._resolveNegotiateUrl(e);
4355
+ this._logger.log(g.Debug, `Sending negotiation request: ${s}.`);
4353
4356
  try {
4354
- const a = await this._httpClient.post(i, {
4357
+ const a = await this._httpClient.post(s, {
4355
4358
  content: "",
4356
4359
  headers: { ...t, ...this._options.headers },
4357
4360
  timeout: this._options.timeout,
@@ -4363,40 +4366,40 @@ class Nd {
4363
4366
  return (!l.negotiateVersion || l.negotiateVersion < 1) && (l.connectionToken = l.connectionId), l.useStatefulReconnect && this._options._useStatefulReconnect !== !0 ? Promise.reject(new fo("Client didn't negotiate Stateful Reconnect but the server did.")) : l;
4364
4367
  } catch (a) {
4365
4368
  let l = "Failed to complete negotiation with the server: " + a;
4366
- return a instanceof Le && a.statusCode === 404 && (l = l + " Either this is not a SignalR endpoint or there is a proxy blocking the connection."), this._logger.log(h.Error, l), Promise.reject(new fo(l));
4369
+ return a instanceof Le && a.statusCode === 404 && (l = l + " Either this is not a SignalR endpoint or there is a proxy blocking the connection."), this._logger.log(g.Error, l), Promise.reject(new fo(l));
4367
4370
  }
4368
4371
  }
4369
4372
  _createConnectUrl(e, t) {
4370
4373
  return t ? e + (e.indexOf("?") === -1 ? "?" : "&") + `id=${t}` : e;
4371
4374
  }
4372
4375
  async _createTransport(e, t, o, r) {
4373
- let i = this._createConnectUrl(e, o.connectionToken);
4376
+ let s = this._createConnectUrl(e, o.connectionToken);
4374
4377
  if (this._isITransport(t)) {
4375
- this._logger.log(h.Debug, "Connection was provided an instance of ITransport, using that directly."), this.transport = t, await this._startTransport(i, r), this.connectionId = o.connectionId;
4378
+ this._logger.log(g.Debug, "Connection was provided an instance of ITransport, using that directly."), this.transport = t, await this._startTransport(s, r), this.connectionId = o.connectionId;
4376
4379
  return;
4377
4380
  }
4378
4381
  const a = [], l = o.availableTransports || [];
4379
4382
  let c = o;
4380
- for (const s of l) {
4381
- const u = this._resolveTransportOrError(s, t, r, (c == null ? void 0 : c.useStatefulReconnect) === !0);
4383
+ for (const i of l) {
4384
+ const u = this._resolveTransportOrError(i, t, r, (c == null ? void 0 : c.useStatefulReconnect) === !0);
4382
4385
  if (u instanceof Error)
4383
- a.push(`${s.transport} failed:`), a.push(u);
4386
+ a.push(`${i.transport} failed:`), a.push(u);
4384
4387
  else if (this._isITransport(u)) {
4385
4388
  if (this.transport = u, !c) {
4386
4389
  try {
4387
4390
  c = await this._getNegotiationResponse(e);
4388
- } catch (m) {
4389
- return Promise.reject(m);
4391
+ } catch (A) {
4392
+ return Promise.reject(A);
4390
4393
  }
4391
- i = this._createConnectUrl(e, c.connectionToken);
4394
+ s = this._createConnectUrl(e, c.connectionToken);
4392
4395
  }
4393
4396
  try {
4394
- await this._startTransport(i, r), this.connectionId = c.connectionId;
4397
+ await this._startTransport(s, r), this.connectionId = c.connectionId;
4395
4398
  return;
4396
- } catch (m) {
4397
- if (this._logger.log(h.Error, `Failed to start the transport '${s.transport}': ${m}`), c = void 0, a.push(new gd(`${s.transport} failed: ${m}`, X[s.transport])), this._connectionState !== "Connecting") {
4398
- const A = "Failed to select transport before stop() was called.";
4399
- return this._logger.log(h.Debug, A), Promise.reject(new ve(A));
4399
+ } catch (A) {
4400
+ if (this._logger.log(g.Error, `Failed to start the transport '${i.transport}': ${A}`), c = void 0, a.push(new gd(`${i.transport} failed: ${A}`, X[i.transport])), this._connectionState !== "Connecting") {
4401
+ const p = "Failed to select transport before stop() was called.";
4402
+ return this._logger.log(g.Debug, p), Promise.reject(new ve(p));
4400
4403
  }
4401
4404
  }
4402
4405
  }
@@ -4436,42 +4439,42 @@ class Nd {
4436
4439
  } : this.transport.onclose = (o) => this._stopConnection(o), this.transport.connect(e, t);
4437
4440
  }
4438
4441
  _resolveTransportOrError(e, t, o, r) {
4439
- const i = X[e.transport];
4440
- if (i == null)
4441
- 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.`);
4442
- if (Ud(t, i))
4442
+ const s = X[e.transport];
4443
+ if (s == null)
4444
+ return this._logger.log(g.Debug, `Skipping transport '${e.transport}' because it is not supported by this client.`), new Error(`Skipping transport '${e.transport}' because it is not supported by this client.`);
4445
+ if (Ud(t, s))
4443
4446
  if (e.transferFormats.map((l) => re[l]).indexOf(o) >= 0) {
4444
- if (i === X.WebSockets && !this._options.WebSocket || i === X.ServerSentEvents && !this._options.EventSource)
4445
- return this._logger.log(h.Debug, `Skipping transport '${X[i]}' because it is not supported in your environment.'`), new fd(`'${X[i]}' is not supported in your environment.`, i);
4446
- this._logger.log(h.Debug, `Selecting transport '${X[i]}'.`);
4447
+ if (s === X.WebSockets && !this._options.WebSocket || s === X.ServerSentEvents && !this._options.EventSource)
4448
+ return this._logger.log(g.Debug, `Skipping transport '${X[s]}' because it is not supported in your environment.'`), new fd(`'${X[s]}' is not supported in your environment.`, s);
4449
+ this._logger.log(g.Debug, `Selecting transport '${X[s]}'.`);
4447
4450
  try {
4448
- return this.features.reconnect = i === X.WebSockets ? r : void 0, this._constructTransport(i);
4451
+ return this.features.reconnect = s === X.WebSockets ? r : void 0, this._constructTransport(s);
4449
4452
  } catch (l) {
4450
4453
  return l;
4451
4454
  }
4452
4455
  } else
4453
- return this._logger.log(h.Debug, `Skipping transport '${X[i]}' because it does not support the requested transfer format '${re[o]}'.`), new Error(`'${X[i]}' does not support ${re[o]}.`);
4456
+ return this._logger.log(g.Debug, `Skipping transport '${X[s]}' because it does not support the requested transfer format '${re[o]}'.`), new Error(`'${X[s]}' does not support ${re[o]}.`);
4454
4457
  else
4455
- return this._logger.log(h.Debug, `Skipping transport '${X[i]}' because it was disabled by the client.`), new hd(`'${X[i]}' is disabled by the client.`, i);
4458
+ return this._logger.log(g.Debug, `Skipping transport '${X[s]}' because it was disabled by the client.`), new hd(`'${X[s]}' is disabled by the client.`, s);
4456
4459
  }
4457
4460
  _isITransport(e) {
4458
4461
  return e && typeof e == "object" && "connect" in e;
4459
4462
  }
4460
4463
  _stopConnection(e) {
4461
- if (this._logger.log(h.Debug, `HttpConnection.stopConnection(${e}) called while in state ${this._connectionState}.`), this.transport = void 0, e = this._stopError || e, this._stopError = void 0, this._connectionState === "Disconnected") {
4462
- this._logger.log(h.Debug, `Call to HttpConnection.stopConnection(${e}) was ignored because the connection is already in the disconnected state.`);
4464
+ if (this._logger.log(g.Debug, `HttpConnection.stopConnection(${e}) called while in state ${this._connectionState}.`), this.transport = void 0, e = this._stopError || e, this._stopError = void 0, this._connectionState === "Disconnected") {
4465
+ this._logger.log(g.Debug, `Call to HttpConnection.stopConnection(${e}) was ignored because the connection is already in the disconnected state.`);
4463
4466
  return;
4464
4467
  }
4465
4468
  if (this._connectionState === "Connecting")
4466
- throw this._logger.log(h.Warning, `Call to HttpConnection.stopConnection(${e}) was ignored because the connection is still in the connecting state.`), new Error(`HttpConnection.stopConnection(${e}) was called while the connection is still in the connecting state.`);
4467
- if (this._connectionState === "Disconnecting" && this._stopPromiseResolver(), e ? this._logger.log(h.Error, `Connection disconnected with error '${e}'.`) : this._logger.log(h.Information, "Connection disconnected."), this._sendQueue && (this._sendQueue.stop().catch((t) => {
4468
- this._logger.log(h.Error, `TransportSendQueue.stop() threw error '${t}'.`);
4469
+ throw this._logger.log(g.Warning, `Call to HttpConnection.stopConnection(${e}) was ignored because the connection is still in the connecting state.`), new Error(`HttpConnection.stopConnection(${e}) was called while the connection is still in the connecting state.`);
4470
+ if (this._connectionState === "Disconnecting" && this._stopPromiseResolver(), e ? this._logger.log(g.Error, `Connection disconnected with error '${e}'.`) : this._logger.log(g.Information, "Connection disconnected."), this._sendQueue && (this._sendQueue.stop().catch((t) => {
4471
+ this._logger.log(g.Error, `TransportSendQueue.stop() threw error '${t}'.`);
4469
4472
  }), this._sendQueue = void 0), this.connectionId = void 0, this._connectionState = "Disconnected", this._connectionStarted) {
4470
4473
  this._connectionStarted = !1;
4471
4474
  try {
4472
4475
  this.onclose && this.onclose(e);
4473
4476
  } catch (t) {
4474
- this._logger.log(h.Error, `HttpConnection.onclose(${e}) threw error '${t}'.`);
4477
+ this._logger.log(g.Error, `HttpConnection.onclose(${e}) threw error '${t}'.`);
4475
4478
  }
4476
4479
  }
4477
4480
  }
@@ -4481,7 +4484,7 @@ class Nd {
4481
4484
  if (!K.isBrowser)
4482
4485
  throw new Error(`Cannot resolve '${e}'.`);
4483
4486
  const t = window.document.createElement("a");
4484
- return t.href = e, this._logger.log(h.Information, `Normalizing '${e}' to '${t.href}'.`), t.href;
4487
+ return t.href = e, this._logger.log(g.Information, `Normalizing '${e}' to '${t.href}'.`), t.href;
4485
4488
  }
4486
4489
  _resolveNegotiateUrl(e) {
4487
4490
  const t = new URL(e);
@@ -4527,10 +4530,10 @@ class bn {
4527
4530
  }
4528
4531
  }
4529
4532
  static _concatBuffers(e) {
4530
- const t = e.map((i) => i.byteLength).reduce((i, a) => i + a), o = new Uint8Array(t);
4533
+ const t = e.map((s) => s.byteLength).reduce((s, a) => s + a), o = new Uint8Array(t);
4531
4534
  let r = 0;
4532
- for (const i of e)
4533
- o.set(new Uint8Array(i), r), r += i.byteLength;
4535
+ for (const s of e)
4536
+ o.set(new Uint8Array(s), r), r += s.byteLength;
4534
4537
  return o.buffer;
4535
4538
  }
4536
4539
  }
@@ -4562,8 +4565,8 @@ class Jd {
4562
4565
  return [];
4563
4566
  t === null && (t = at.instance);
4564
4567
  const o = ge.parse(e), r = [];
4565
- for (const i of o) {
4566
- const a = JSON.parse(i);
4568
+ for (const s of o) {
4569
+ const a = JSON.parse(s);
4567
4570
  if (typeof a.type != "number")
4568
4571
  throw new Error("Invalid payload.");
4569
4572
  switch (a.type) {
@@ -4587,7 +4590,7 @@ class Jd {
4587
4590
  this._isSequenceMessage(a);
4588
4591
  break;
4589
4592
  default:
4590
- t.log(h.Information, "Unknown message type '" + a.type + "' ignored.");
4593
+ t.log(g.Information, "Unknown message type '" + a.type + "' ignored.");
4591
4594
  continue;
4592
4595
  }
4593
4596
  r.push(a);
@@ -4628,15 +4631,15 @@ class Jd {
4628
4631
  }
4629
4632
  }
4630
4633
  const Wd = {
4631
- trace: h.Trace,
4632
- debug: h.Debug,
4633
- info: h.Information,
4634
- information: h.Information,
4635
- warn: h.Warning,
4636
- warning: h.Warning,
4637
- error: h.Error,
4638
- critical: h.Critical,
4639
- none: h.None
4634
+ trace: g.Trace,
4635
+ debug: g.Debug,
4636
+ info: g.Information,
4637
+ information: g.Information,
4638
+ warn: g.Warning,
4639
+ warning: g.Warning,
4640
+ error: g.Error,
4641
+ critical: g.Critical,
4642
+ none: g.None
4640
4643
  };
4641
4644
  function zd(n) {
4642
4645
  const e = Wd[n.toLowerCase()];
@@ -4727,98 +4730,98 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
4727
4730
  let o = null;
4728
4731
  return Qe(async () => {
4729
4732
  var d;
4730
- let r = ((d = n.meta) == null ? void 0 : d.showLayout) ?? !0, { showLayout: i = !0 } = n.query;
4731
- if (i === "false" && (i = !1), !r || !i) return;
4733
+ let r = ((d = n.meta) == null ? void 0 : d.showLayout) ?? !0, { showLayout: s = !0 } = n.query;
4734
+ if (s === "false" && (s = !1), !r || !s) return;
4732
4735
  await Tt();
4733
- const a = (g) => {
4736
+ const a = (m) => {
4734
4737
  try {
4735
- return JSON.parse(g);
4738
+ return JSON.parse(m);
4736
4739
  } catch {
4737
4740
  return !1;
4738
4741
  }
4739
- }, l = async (g) => {
4740
- var k;
4741
- const _ = F(), y = ((k = _.appcategorys) == null ? void 0 : k.map((w) => w.apps).flat()) || [];
4742
- if (Array.isArray(g)) {
4743
- const w = g.filter((P) => P.code).map((P) => P.code);
4744
- if (g.length) {
4745
- if (_.currentSubAppCode) {
4746
- const C = _.currentSubApp.menus ?? [], T = ye(C).find((R) => w.includes(R.code));
4747
- if (T) {
4748
- t({ currentMenu: T });
4742
+ }, l = async (m) => {
4743
+ var T;
4744
+ const y = J(), _ = ((T = y.appcategorys) == null ? void 0 : T.map((B) => B.apps).flat()) || [];
4745
+ if (Array.isArray(m)) {
4746
+ const B = m.filter((L) => L.code).map((L) => L.code);
4747
+ if (m.length) {
4748
+ if (y.currentSubAppCode) {
4749
+ const w = y.currentSubApp.menus ?? [], C = ye(w).find((P) => B.includes(P.code));
4750
+ if (C) {
4751
+ t({ currentMenu: C });
4749
4752
  return;
4750
4753
  }
4751
4754
  }
4752
- const P = y.find((C) => w.includes(C.code));
4753
- P && e({ microApp: P });
4755
+ const L = _.find((w) => B.includes(w.code));
4756
+ L && e({ microApp: L });
4754
4757
  }
4755
4758
  }
4756
- if (typeof g == "string")
4757
- if (g.includes(":")) {
4758
- const w = g.split(":"), [P = "", C = ""] = w;
4759
- if (!P) return;
4760
- const T = y.find((R) => R.code === P);
4761
- T && e({ microApp: T, menuCode: C });
4759
+ if (typeof m == "string")
4760
+ if (m.includes(":")) {
4761
+ const B = m.split(":"), [L = "", w = ""] = B;
4762
+ if (!L) return;
4763
+ const C = _.find((P) => P.code === L);
4764
+ C && e({ microApp: C, menuCode: w });
4762
4765
  } else {
4763
- const w = g, P = y.find((C) => C.code === w);
4764
- if (P)
4765
- e({ microApp: P });
4766
+ const B = m, L = _.find((w) => w.code === B);
4767
+ if (L)
4768
+ e({ microApp: L });
4766
4769
  else {
4767
- const [C, T] = await np().run({ menuCode: w });
4768
- if (C) return;
4769
- const R = y.find(($) => $.code === T);
4770
- R && e({ microApp: R, menuCode: w });
4770
+ const [w, C] = await np().run({ menuCode: B });
4771
+ if (w) return;
4772
+ const P = _.find(($) => $.code === C);
4773
+ P && e({ microApp: P, menuCode: B });
4771
4774
  }
4772
4775
  }
4773
4776
  };
4774
4777
  let c = E(!0);
4775
- const s = (g) => {
4778
+ const i = (m) => {
4776
4779
  setTimeout(async () => {
4777
- var _, y;
4780
+ var y, _;
4778
4781
  if (c.value) {
4779
- const [k, w] = await ep().run({}, { params: { aliasName: g.actionValue } });
4780
- k ? await Ht().run({
4781
- uniqueId: g.uniqueId,
4782
+ const [T, B] = await ep().run({}, { params: { aliasName: m.actionValue } });
4783
+ T ? await Ht().run({
4784
+ uniqueId: m.uniqueId,
4782
4785
  status: 0,
4783
- errorMsg: "未找到" + g.actionValue
4784
- }) : w.length ? (w.length > 1 ? l(w) : l((_ = w[0]) == null ? void 0 : _.code), await Ht().run({
4785
- uniqueId: g.uniqueId,
4786
+ errorMsg: "未找到" + m.actionValue
4787
+ }) : B.length ? (B.length > 1 ? l(B) : l((y = B[0]) == null ? void 0 : y.code), await Ht().run({
4788
+ uniqueId: m.uniqueId,
4786
4789
  status: 1,
4787
- targetName: (y = w[0]) == null ? void 0 : y.name
4790
+ targetName: (_ = B[0]) == null ? void 0 : _.name
4788
4791
  })) : await Ht().run({
4789
- uniqueId: g.uniqueId,
4792
+ uniqueId: m.uniqueId,
4790
4793
  status: 0,
4791
- errorMsg: "未找到" + g.actionValue
4794
+ errorMsg: "未找到" + m.actionValue
4792
4795
  });
4793
4796
  }
4794
4797
  c.value = !0;
4795
4798
  }, 2e3);
4796
- }, u = (g) => {
4797
- const _ = Yt(), y = JSON.parse(atob(_.split(".")[1])).sub;
4798
- Gd().on(`${g}:${y}`, async function(w) {
4799
- let P = a(w);
4800
- if (P)
4801
- P.uniqueId && P.actionKey == "switch-menu" && s(P);
4802
- else if (w.includes("openAppMenu=")) {
4803
- const C = w.split("="), T = JSON.parse(C[1]);
4804
- l(T);
4805
- } else w.includes("iocIsRun") && (c.value = !1);
4799
+ }, u = (m) => {
4800
+ const y = Yt(), _ = JSON.parse(atob(y.split(".")[1])).sub;
4801
+ Gd().on(`${m}:${_}`, async function(B) {
4802
+ let L = a(B);
4803
+ if (L)
4804
+ L.uniqueId && L.actionKey == "switch-menu" && i(L);
4805
+ else if (B.includes("openAppMenu=")) {
4806
+ const w = B.split("="), C = JSON.parse(w[1]);
4807
+ l(C);
4808
+ } else B.includes("iocIsRun") && (c.value = !1);
4806
4809
  });
4807
- }, m = E(""), [A, f] = await vo().run();
4808
- m.value = f, u(m.value);
4810
+ }, A = E(""), [p, h] = await vo().run();
4811
+ A.value = h, u(A.value);
4809
4812
  const S = async () => {
4810
- const [g, _] = await vo().run();
4811
- _ !== m.value && (m.value = _, u(m.value));
4813
+ const [m, y] = await vo().run();
4814
+ y !== A.value && (A.value = y, u(A.value));
4812
4815
  };
4813
4816
  o = setInterval(() => {
4814
4817
  S();
4815
4818
  }, 72e5);
4816
- const b = E("online"), p = (g) => {
4817
- g === "online" && b.value === "offline" && setTimeout(() => {
4819
+ const b = E("online"), f = (m) => {
4820
+ m === "online" && b.value === "offline" && setTimeout(() => {
4818
4821
  S();
4819
4822
  }, 5e3), b.value = (window.navigator.onLine ? "on" : "off") + "line";
4820
4823
  };
4821
- window.addEventListener("online", () => p("online")), window.addEventListener("offline", () => p("offline"));
4824
+ window.addEventListener("online", () => f("online")), window.addEventListener("offline", () => f("offline"));
4822
4825
  }), Et(() => {
4823
4826
  o && clearInterval(o);
4824
4827
  }), {};
@@ -4832,9 +4835,9 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
4832
4835
  },
4833
4836
  emits: ["emitFn"],
4834
4837
  setup(n, { expose: e, emit: t }) {
4835
- const o = n, r = t, i = E(!1), a = E(null), l = E(0), c = E(!1);
4838
+ const o = n, r = t, s = E(!1), a = E(null), l = E(0), c = E(!1);
4836
4839
  E("");
4837
- const s = E({
4840
+ const i = E({
4838
4841
  processTypeId: "confirm",
4839
4842
  // 处理类型
4840
4843
  reason: "",
@@ -4880,78 +4883,78 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
4880
4883
  // 事件等级id
4881
4884
  timeLimit: ""
4882
4885
  // 处置时限
4883
- }), m = E(!1), A = E([]), f = E([]), S = E([
4886
+ }), A = E(!1), p = E([]), h = E([]), S = E([
4884
4887
  { id: 2, name: Q("时").value },
4885
4888
  { id: 1, name: Q("分").value },
4886
4889
  { id: 3, name: Q("不限").value }
4887
- ]), b = E([]), p = E(""), d = E("告警对象位置"), g = E(""), _ = E([]), y = E("");
4890
+ ]), b = E([]), f = E(""), d = E("告警对象位置"), m = E(""), y = E([]), _ = E("");
4888
4891
  E("[]");
4889
- const k = E(!0), w = E(!0), P = async (O) => {
4892
+ const T = E(!0), B = E(!0), L = async (O) => {
4890
4893
  const I = { name: "1" };
4891
4894
  O != null && O.id && (I.spaceId = O.id);
4892
- const [B, me] = await dp(I).run();
4893
- return B ? {} : me;
4894
- }, C = async (O) => {
4895
- const I = { name: O || "" }, [B, me] = await pp(I).run();
4896
- return B ? {} : me;
4897
- }, T = E(!0), R = E(!0), $ = E([]), N = async () => {
4895
+ const [k, me] = await dp(I).run();
4896
+ return k ? {} : me;
4897
+ }, w = async (O) => {
4898
+ const I = { name: O || "" }, [k, me] = await pp(I).run();
4899
+ return k ? {} : me;
4900
+ }, C = E(!0), P = E(!0), $ = E([]), H = async () => {
4898
4901
  const [O, I] = await up().run({ pageIndex: -1, pageSize: -1 });
4899
4902
  if (O) return {};
4900
- $.value = I.data.filter((B) => B.status), $.value.length > 0 && (s.value.workOrderRules = $.value[0].id);
4903
+ $.value = I.data.filter((k) => k.status), $.value.length > 0 && (i.value.workOrderRules = $.value[0].id);
4901
4904
  };
4902
4905
  oe(c, (O) => {
4903
4906
  O || (G(), fe());
4904
4907
  }), oe(
4905
- w,
4908
+ B,
4906
4909
  (O) => {
4907
- O ? (k.value = !0, s.value.customPath = Q("选填").value) : (k.value = !1, s.value.customPath = "");
4910
+ O ? (T.value = !0, i.value.customPath = Q("选填").value) : (T.value = !1, i.value.customPath = "");
4908
4911
  },
4909
4912
  { immediate: !0 }
4910
4913
  ), oe(
4911
- R,
4914
+ P,
4912
4915
  (O) => {
4913
- O ? (s.value.reportTheme = Q("告警对象").value, T.value = !0) : (g.value = "请输入", s.value.reportTheme = "", T.value = !1);
4916
+ O ? (i.value.reportTheme = Q("告警对象").value, C.value = !0) : (m.value = "请输入", i.value.reportTheme = "", C.value = !1);
4914
4917
  },
4915
4918
  { immediate: !0 }
4916
4919
  );
4917
- const W = (O) => {
4920
+ const F = (O) => {
4918
4921
  var I;
4919
4922
  return (I = a.value) == null ? void 0 : I.parentNode.parentNode;
4920
4923
  }, se = (O) => {
4921
4924
  u.value.reportTheme = "";
4922
4925
  }, Te = (O, I) => {
4923
- I.length > 0 && (p.value = I[0].path), s.value.reportPosition = O, y.value = "";
4926
+ I.length > 0 && (f.value = I[0].path), i.value.reportPosition = O, _.value = "";
4924
4927
  }, ft = (O) => {
4925
- O && (u.value.reportPosition = "", p.value = ""), O ? (s.value.reportPosition = null, p.value = "", d.value = "告警对象位置") : (s.value.reportPosition = null, p.value = "", d.value = "请选择");
4928
+ O && (u.value.reportPosition = "", f.value = ""), O ? (i.value.reportPosition = null, f.value = "", d.value = "告警对象位置") : (i.value.reportPosition = null, f.value = "", d.value = "请选择");
4926
4929
  }, ne = (O) => {
4927
- O && (u.value.reportTheme = ""), O ? (s.value.reportTheme = "", g.value = "告警对象") : (s.value.reportTheme = "", g.value = "请输入");
4930
+ O && (u.value.reportTheme = ""), O ? (i.value.reportTheme = "", m.value = "告警对象") : (i.value.reportTheme = "", m.value = "请输入");
4928
4931
  }, G = () => {
4929
4932
  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 = "";
4930
4933
  }, fe = () => {
4931
- s.value.processTypeId = "confirm", s.value.reason = "", s.value.treatmentPlan = "", s.value.remarks = "", s.value.reportPosition = "", s.value.reportTheme = "", s.value.workOrderRules = null, w.value = !0, R.value = !0, T.value = !0, s.value.reportTheme = Q("告警对象").value, p.value = "", d.value = "告警对象位置", g.value = "请输入", s.value.eventTypeId = "", s.value.eventLevelId = null, s.value.timeLimit = "", s.value.interval = 1, A.value = [], f.value = [];
4934
+ i.value.processTypeId = "confirm", i.value.reason = "", i.value.treatmentPlan = "", i.value.remarks = "", i.value.reportPosition = "", i.value.reportTheme = "", i.value.workOrderRules = null, B.value = !0, P.value = !0, C.value = !0, i.value.reportTheme = Q("告警对象").value, f.value = "", d.value = "告警对象位置", m.value = "请输入", i.value.eventTypeId = "", i.value.eventLevelId = null, i.value.timeLimit = "", i.value.interval = 1, p.value = [], h.value = [];
4932
4935
  }, Oe = (O) => {
4933
- O == "eventTypeId" && (s.value.eventLevelId = null, Cn()), O == "eventLevelId" && In(), O == "interval" && (u.value.timeLimit = "", s.value.interval == 3 ? (m.value = !0, s.value.timeLimit = "") : m.value = !1);
4936
+ O == "eventTypeId" && (i.value.eventLevelId = null, Cn()), O == "eventLevelId" && In(), O == "interval" && (u.value.timeLimit = "", i.value.interval == 3 ? (A.value = !0, i.value.timeLimit = "") : A.value = !1);
4934
4937
  }, mr = async () => {
4935
4938
  const [O, I] = await fp().run();
4936
4939
  if (O) return {};
4937
- A.value = I, s.value.eventTypeId || (s.value.eventTypeId = I[0] ? I[0].id : null), Cn();
4940
+ p.value = I, i.value.eventTypeId || (i.value.eventTypeId = I[0] ? I[0].id : null), Cn();
4938
4941
  }, Cn = async () => {
4939
4942
  const O = {
4940
- eventTypeId: s.value.eventTypeId
4941
- }, [I, B] = await hp(O).run();
4943
+ eventTypeId: i.value.eventTypeId
4944
+ }, [I, k] = await hp(O).run();
4942
4945
  if (I) return {};
4943
4946
  const me = { 1: "一级", 2: "二级", 3: "三级", 4: "四级" };
4944
- f.value = B.map((ht) => ({
4947
+ h.value = k.map((ht) => ({
4945
4948
  id: `${ht}`,
4946
4949
  name: me[ht] ? me[ht] : ht
4947
- })), B.length && !s.value.eventLevelId && (s.value.eventLevelId = f.value[0].id, In());
4950
+ })), k.length && !i.value.eventLevelId && (i.value.eventLevelId = h.value[0].id, In());
4948
4951
  }, In = async () => {
4949
4952
  const O = {
4950
- eventTypeId: s.value.eventTypeId,
4951
- eventLevel: s.value.eventLevelId
4952
- }, [I, B] = await gp(O).run();
4953
+ eventTypeId: i.value.eventTypeId,
4954
+ eventLevel: i.value.eventLevelId
4955
+ }, [I, k] = await gp(O).run();
4953
4956
  if (I) return {};
4954
- s.value.interval = B.handleTimeUnit, B.handleTimeUnit == 3 ? s.value.timeLimit = "" : s.value.timeLimit = B.handleTime;
4957
+ i.value.interval = k.handleTimeUnit, k.handleTimeUnit == 3 ? i.value.timeLimit = "" : i.value.timeLimit = k.handleTime;
4955
4958
  }, vr = (O) => {
4956
4959
  G();
4957
4960
  }, yr = async () => {
@@ -4960,24 +4963,24 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
4960
4963
  isTime: !1,
4961
4964
  projectId: o.projectId
4962
4965
  };
4963
- i.value = !0;
4964
- const [I, B] = await ap(O).run();
4966
+ s.value = !0;
4967
+ const [I, k] = await ap(O).run();
4965
4968
  if (I) {
4966
- i.value = !1;
4969
+ s.value = !1;
4967
4970
  return;
4968
4971
  }
4969
- i.value = !1, b.value = B;
4972
+ s.value = !1, b.value = k;
4970
4973
  for (let me = 0; me < b.value.length; me++)
4971
- b.value[me].id === "createorder" && N(), b.value[me].id === "createcontingency" && mr();
4974
+ b.value[me].id === "createorder" && H(), b.value[me].id === "createcontingency" && mr();
4972
4975
  }, _r = () => {
4973
4976
  let O = !0;
4974
- if (s.value.processTypeId == "dealwith")
4975
- s.value.reason.trim() || (O = !1, u.value.reason = Q("必填,最多50个字符/汉字").value), s.value.treatmentPlan.trim() || (O = !1, u.value.treatmentPlan = Q("必填,最多50个字符/汉字").value);
4976
- else if (s.value.processTypeId == "createorder")
4977
- w.value ? u.value.reportPosition = "" : !s.value.reportPosition && !s.value.customPath ? (O = !1, u.value.reportPosition = Q("必填").value) : u.value.reportPosition = "", R.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);
4978
- else if (s.value.processTypeId == "createcontingency") {
4977
+ if (i.value.processTypeId == "dealwith")
4978
+ i.value.reason.trim() || (O = !1, u.value.reason = Q("必填,最多50个字符/汉字").value), i.value.treatmentPlan.trim() || (O = !1, u.value.treatmentPlan = Q("必填,最多50个字符/汉字").value);
4979
+ else if (i.value.processTypeId == "createorder")
4980
+ B.value ? u.value.reportPosition = "" : !i.value.reportPosition && !i.value.customPath ? (O = !1, u.value.reportPosition = Q("必填").value) : u.value.reportPosition = "", P.value || i.value.reportTheme ? u.value.reportTheme = "" : (O = !1, u.value.reportTheme = Q("必填,最多20个汉字/字符").value), i.value.workOrderRules ? u.value.workOrderRules = "" : (O = !1, u.value.workOrderRules = Q("必填").value);
4981
+ else if (i.value.processTypeId == "createcontingency") {
4979
4982
  const I = /^[1-9][0-9]{0,2}$/;
4980
- 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);
4983
+ i.value.eventTypeId || (O = !1, u.value.eventTypeId = Q("必选").value), i.value.eventLevelId || (O = !1, u.value.eventLevelId = Q("必选").value), i.value.interval != 3 && !I.test(i.value.timeLimit) && (O = !1, u.value.timeLimit = Q("必填,请输入1~999之间的正整数").value);
4981
4984
  }
4982
4985
  return O;
4983
4986
  }, br = () => {
@@ -4991,20 +4994,20 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
4991
4994
  //处理状态 1=结束处理 2=继续处理
4992
4995
  alarms: o.handerIds,
4993
4996
  // 告警id
4994
- processTypeId: s.value.processTypeId
4997
+ processTypeId: i.value.processTypeId
4995
4998
  //处理类型id
4996
4999
  };
4997
- s.value.processTypeId === "createorder" ? (O.path = w.value ? "" : s.value.customPath, O.topic = R.value ? "" : s.value.reportTheme, O.spaceId = w.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");
4998
- const [I, B] = await cp(O, {
5000
+ i.value.processTypeId === "createorder" ? (O.path = B.value ? "" : i.value.customPath, O.topic = P.value ? "" : i.value.reportTheme, O.spaceId = B.value ? "" : i.value.reportPosition ?? "", O.orderId = i.value.workOrderRules) : i.value.processTypeId === "createcontingency" ? (O.eventTypeId = i.value.eventTypeId, O.eventLevelId = i.value.eventLevelId, O.timeLimit = i.value.interval == 3 ? null : Number(i.value.timeLimit), O.interval = i.value.interval) : (O.reason = i.value.reason, O.treatmentPlan = i.value.treatmentPlan, O.remarks = i.value.remarks), s.value = !0, r("emitFn", "startHandle");
5001
+ const [I, k] = await cp(O, {
4999
5002
  params: {
5000
5003
  projectId: o.projectId
5001
5004
  }
5002
5005
  }).run();
5003
5006
  if (I) {
5004
- i.value = !1;
5007
+ s.value = !1;
5005
5008
  return;
5006
5009
  }
5007
- r("emitFn", "successHandle", s.value.processTypeId), i.value = !1, xt();
5010
+ r("emitFn", "successHandle", i.value.processTypeId), s.value = !1, xt();
5008
5011
  }, Cr = () => {
5009
5012
  c.value = !0, yr();
5010
5013
  }, xt = () => {
@@ -5013,10 +5016,10 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
5013
5016
  return e({
5014
5017
  open: Cr,
5015
5018
  close: xt
5016
- }), (O, I) => (H(), de("div", Ap, [
5017
- M(v(sn), {
5019
+ }), (O, I) => (N(), de("div", Ap, [
5020
+ R(v(sn), {
5018
5021
  modelValue: c.value,
5019
- "onUpdate:modelValue": I[31] || (I[31] = (B) => c.value = B),
5022
+ "onUpdate:modelValue": I[31] || (I[31] = (k) => c.value = k),
5020
5023
  type: "basic",
5021
5024
  size: "small",
5022
5025
  height: 500,
@@ -5026,20 +5029,20 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
5026
5029
  },
5027
5030
  "destroy-on-close": ""
5028
5031
  }, {
5029
- header: x(() => [
5032
+ header: M(() => [
5030
5033
  le(
5031
5034
  Z(v(Q)("告警处理").value),
5032
5035
  1
5033
5036
  /* TEXT */
5034
5037
  )
5035
5038
  ]),
5036
- footer: x(() => [
5037
- L("div", bp, [
5038
- M(v(ke), {
5039
+ footer: M(() => [
5040
+ x("div", bp, [
5041
+ R(v(ke), {
5039
5042
  size: "middle",
5040
5043
  onClick: br
5041
5044
  }, {
5042
- default: x(() => [
5045
+ default: M(() => [
5043
5046
  le(
5044
5047
  Z(v(Q)("取消").value),
5045
5048
  1
@@ -5049,11 +5052,11 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
5049
5052
  _: 1
5050
5053
  /* STABLE */
5051
5054
  }),
5052
- M(v(ke), {
5055
+ R(v(ke), {
5053
5056
  size: "middle",
5054
- onClick: I[29] || (I[29] = (B) => En(1))
5057
+ onClick: I[29] || (I[29] = (k) => En(1))
5055
5058
  }, {
5056
- default: x(() => [
5059
+ default: M(() => [
5057
5060
  le(
5058
5061
  Z(v(Q)("结束处理").value),
5059
5062
  1
@@ -5063,12 +5066,12 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
5063
5066
  _: 1
5064
5067
  /* STABLE */
5065
5068
  }),
5066
- M(v(ke), {
5069
+ R(v(ke), {
5067
5070
  btnType: "primary",
5068
5071
  size: "middle",
5069
- onClick: I[30] || (I[30] = (B) => En(2))
5072
+ onClick: I[30] || (I[30] = (k) => En(2))
5070
5073
  }, {
5071
- default: x(() => [
5074
+ default: M(() => [
5072
5075
  le(
5073
5076
  Z(v(Q)("继续处理").value),
5074
5077
  1
@@ -5080,10 +5083,10 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
5080
5083
  })
5081
5084
  ])
5082
5085
  ]),
5083
- default: x(() => [
5084
- M(v(ko), { spinning: i.value }, {
5085
- default: x(() => [
5086
- L(
5086
+ default: M(() => [
5087
+ R(v(ko), { spinning: s.value }, {
5088
+ default: M(() => [
5089
+ x(
5087
5090
  "div",
5088
5091
  {
5089
5092
  ref_key: "myDialogBody",
@@ -5091,58 +5094,58 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
5091
5094
  class: "handle-alarm-dialog-content"
5092
5095
  },
5093
5096
  [
5094
- M(v(ds), {
5097
+ R(v(ds), {
5095
5098
  style: { width: "100%", height: "100%", "align-items": "center" },
5096
5099
  cols: 1,
5097
5100
  alignType: "horizontal"
5098
5101
  }, {
5099
- default: x(() => [
5100
- M(v(_e), {
5102
+ default: M(() => [
5103
+ R(v(_e), {
5101
5104
  label: v(Q)("处理类型").value,
5102
5105
  required: "",
5103
5106
  type: "select",
5104
- modelValue: s.value.processTypeId,
5105
- "onUpdate:modelValue": I[0] || (I[0] = (B) => s.value.processTypeId = B),
5107
+ modelValue: i.value.processTypeId,
5108
+ "onUpdate:modelValue": I[0] || (I[0] = (k) => i.value.processTypeId = k),
5106
5109
  options: b.value,
5107
5110
  col: 1,
5108
5111
  optionsLabelKey: "name",
5109
5112
  optionsValueKey: "id",
5110
- "get-popup-container": W,
5113
+ "get-popup-container": F,
5111
5114
  marginBottom: "30px",
5112
5115
  marginRight: "0",
5113
5116
  onChange: vr
5114
5117
  }, null, 8, ["label", "modelValue", "options"]),
5115
- s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), V(v(_e), {
5118
+ i.value.processTypeId !== "createorder" && i.value.processTypeId !== "createcontingency" ? (N(), V(v(_e), {
5116
5119
  key: 0,
5117
5120
  label: v(Q)("告警原因").value,
5118
- required: s.value.processTypeId == "dealwith",
5121
+ required: i.value.processTypeId == "dealwith",
5119
5122
  type: "input",
5120
5123
  maxlength: "50",
5121
5124
  col: 1,
5122
- onFocus: I[1] || (I[1] = (B) => u.value.reason = ""),
5123
- modelValue: s.value.reason,
5124
- "onUpdate:modelValue": I[2] || (I[2] = (B) => s.value.reason = B),
5125
+ onFocus: I[1] || (I[1] = (k) => u.value.reason = ""),
5126
+ modelValue: i.value.reason,
5127
+ "onUpdate:modelValue": I[2] || (I[2] = (k) => i.value.reason = k),
5125
5128
  error: u.value.reason,
5126
- "onUpdate:error": I[3] || (I[3] = (B) => u.value.reason = B),
5129
+ "onUpdate:error": I[3] || (I[3] = (k) => u.value.reason = k),
5127
5130
  marginBottom: "30px",
5128
5131
  marginRight: "0"
5129
5132
  }, null, 8, ["label", "required", "modelValue", "error"])) : U("v-if", !0),
5130
- s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), V(v(_e), {
5133
+ i.value.processTypeId !== "createorder" && i.value.processTypeId !== "createcontingency" ? (N(), V(v(_e), {
5131
5134
  key: 1,
5132
5135
  label: v(Q)("处理方案").value,
5133
- required: s.value.processTypeId == "dealwith",
5136
+ required: i.value.processTypeId == "dealwith",
5134
5137
  type: "input",
5135
5138
  maxlength: "50",
5136
5139
  col: 1,
5137
- onFocus: I[4] || (I[4] = (B) => u.value.treatmentPlan = ""),
5138
- modelValue: s.value.treatmentPlan,
5139
- "onUpdate:modelValue": I[5] || (I[5] = (B) => s.value.treatmentPlan = B),
5140
+ onFocus: I[4] || (I[4] = (k) => u.value.treatmentPlan = ""),
5141
+ modelValue: i.value.treatmentPlan,
5142
+ "onUpdate:modelValue": I[5] || (I[5] = (k) => i.value.treatmentPlan = k),
5140
5143
  error: u.value.treatmentPlan,
5141
- "onUpdate:error": I[6] || (I[6] = (B) => u.value.treatmentPlan = B),
5144
+ "onUpdate:error": I[6] || (I[6] = (k) => u.value.treatmentPlan = k),
5142
5145
  marginBottom: "30px",
5143
5146
  marginRight: "0"
5144
5147
  }, null, 8, ["label", "required", "modelValue", "error"])) : U("v-if", !0),
5145
- s.value.processTypeId !== "createorder" && s.value.processTypeId !== "createcontingency" ? (H(), V(v(_e), {
5148
+ i.value.processTypeId !== "createorder" && i.value.processTypeId !== "createcontingency" ? (N(), V(v(_e), {
5146
5149
  key: 2,
5147
5150
  label: v(Q)("备注").value,
5148
5151
  type: "textarea",
@@ -5150,60 +5153,60 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
5150
5153
  autosize: "",
5151
5154
  maxlength: "100",
5152
5155
  col: 1,
5153
- modelValue: s.value.remarks,
5154
- "onUpdate:modelValue": I[7] || (I[7] = (B) => s.value.remarks = B),
5156
+ modelValue: i.value.remarks,
5157
+ "onUpdate:modelValue": I[7] || (I[7] = (k) => i.value.remarks = k),
5155
5158
  marginBottom: "30px",
5156
5159
  marginRight: "0"
5157
5160
  }, null, 8, ["label", "modelValue"])) : U("v-if", !0),
5158
- s.value.processTypeId == "createorder" ? (H(), V(v(_e), {
5161
+ i.value.processTypeId == "createorder" ? (N(), V(v(_e), {
5159
5162
  key: 3,
5160
5163
  label: v(Q)("报事位置").value,
5161
5164
  required: "",
5162
5165
  type: "custom",
5163
5166
  error: u.value.reportPosition,
5164
- "onUpdate:error": I[13] || (I[13] = (B) => u.value.reportPosition = B),
5167
+ "onUpdate:error": I[13] || (I[13] = (k) => u.value.reportPosition = k),
5165
5168
  marginBottom: "20px",
5166
5169
  marginRight: "0"
5167
5170
  }, {
5168
- default: x(() => [
5169
- L("div", mp, [
5170
- L("div", vp, [
5171
- M(v(us), {
5171
+ default: M(() => [
5172
+ x("div", mp, [
5173
+ x("div", vp, [
5174
+ R(v(us), {
5172
5175
  borderType: "underline",
5173
5176
  props: { disabled: "_disabled", label: "name" },
5174
- modelValue: s.value.reportPosition,
5175
- "onUpdate:modelValue": I[8] || (I[8] = (B) => s.value.reportPosition = B),
5176
- path: p.value,
5177
- "onUpdate:path": I[9] || (I[9] = (B) => p.value = B),
5178
- keyword: y.value,
5179
- "onUpdate:keyword": I[10] || (I[10] = (B) => y.value = B),
5177
+ modelValue: i.value.reportPosition,
5178
+ "onUpdate:modelValue": I[8] || (I[8] = (k) => i.value.reportPosition = k),
5179
+ path: f.value,
5180
+ "onUpdate:path": I[9] || (I[9] = (k) => f.value = k),
5181
+ keyword: _.value,
5182
+ "onUpdate:keyword": I[10] || (I[10] = (k) => _.value = k),
5180
5183
  showFullPath: !0,
5181
- data: _.value,
5184
+ data: y.value,
5182
5185
  placeholder: d.value,
5183
- disabled: k.value,
5184
- load: P,
5185
- search: C,
5186
+ disabled: T.value,
5187
+ load: L,
5188
+ search: w,
5186
5189
  onChange: Te,
5187
5190
  filter: !0,
5188
5191
  allowClear: !0
5189
5192
  }, null, 8, ["modelValue", "path", "keyword", "data", "placeholder", "disabled"]),
5190
- M(v(Pn), {
5193
+ R(v(Pn), {
5191
5194
  ref: "testInput",
5192
- modelValue: s.value.customPath,
5193
- "onUpdate:modelValue": I[11] || (I[11] = (B) => s.value.customPath = B),
5195
+ modelValue: i.value.customPath,
5196
+ "onUpdate:modelValue": I[11] || (I[11] = (k) => i.value.customPath = k),
5194
5197
  placeholder: "选填",
5195
- disabled: k.value,
5198
+ disabled: T.value,
5196
5199
  maxlength: "20"
5197
5200
  }, null, 8, ["modelValue", "disabled"])
5198
5201
  ]),
5199
- M(v(Bn), {
5200
- modelValue: w.value,
5201
- "onUpdate:modelValue": I[12] || (I[12] = (B) => w.value = B),
5202
+ R(v(Bn), {
5203
+ modelValue: B.value,
5204
+ "onUpdate:modelValue": I[12] || (I[12] = (k) => B.value = k),
5202
5205
  checkboxType: "default",
5203
5206
  onChange: ft,
5204
5207
  size: "middle"
5205
5208
  }, {
5206
- default: x(() => [
5209
+ default: M(() => [
5207
5210
  le(
5208
5211
  Z(v(Q)("告警对象位置").value),
5209
5212
  1
@@ -5218,34 +5221,34 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
5218
5221
  _: 1
5219
5222
  /* STABLE */
5220
5223
  }, 8, ["label", "error"])) : U("v-if", !0),
5221
- s.value.processTypeId == "createorder" ? (H(), V(v(_e), {
5224
+ i.value.processTypeId == "createorder" ? (N(), V(v(_e), {
5222
5225
  key: 4,
5223
5226
  label: v(Q)("报事主题").value,
5224
5227
  required: "",
5225
5228
  type: "custom",
5226
5229
  error: u.value.reportTheme,
5227
- "onUpdate:error": I[16] || (I[16] = (B) => u.value.reportTheme = B),
5230
+ "onUpdate:error": I[16] || (I[16] = (k) => u.value.reportTheme = k),
5228
5231
  marginBottom: "20px",
5229
5232
  marginRight: "0"
5230
5233
  }, {
5231
- default: x(() => [
5232
- L("div", yp, [
5233
- M(v(Pn), {
5234
+ default: M(() => [
5235
+ x("div", yp, [
5236
+ R(v(Pn), {
5234
5237
  maxlength: "20",
5235
- disabled: T.value,
5236
- modelValue: s.value.reportTheme,
5237
- "onUpdate:modelValue": I[14] || (I[14] = (B) => s.value.reportTheme = B),
5238
- placeholder: g.value,
5238
+ disabled: C.value,
5239
+ modelValue: i.value.reportTheme,
5240
+ "onUpdate:modelValue": I[14] || (I[14] = (k) => i.value.reportTheme = k),
5241
+ placeholder: m.value,
5239
5242
  onChange: se
5240
5243
  }, null, 8, ["disabled", "modelValue", "placeholder"]),
5241
- M(v(Bn), {
5242
- modelValue: R.value,
5243
- "onUpdate:modelValue": I[15] || (I[15] = (B) => R.value = B),
5244
+ R(v(Bn), {
5245
+ modelValue: P.value,
5246
+ "onUpdate:modelValue": I[15] || (I[15] = (k) => P.value = k),
5244
5247
  checkboxType: "default",
5245
5248
  onChange: ne,
5246
5249
  size: "middle"
5247
5250
  }, {
5248
- default: x(() => [
5251
+ default: M(() => [
5249
5252
  le(
5250
5253
  Z(v(Q)("告警对象").value),
5251
5254
  1
@@ -5260,81 +5263,81 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
5260
5263
  _: 1
5261
5264
  /* STABLE */
5262
5265
  }, 8, ["label", "error"])) : U("v-if", !0),
5263
- s.value.processTypeId == "createorder" ? (H(), V(v(_e), {
5266
+ i.value.processTypeId == "createorder" ? (N(), V(v(_e), {
5264
5267
  key: 5,
5265
5268
  label: v(Q)("工单规则").value,
5266
5269
  required: "",
5267
5270
  type: "select",
5268
- modelValue: s.value.workOrderRules,
5269
- "onUpdate:modelValue": I[17] || (I[17] = (B) => s.value.workOrderRules = B),
5271
+ modelValue: i.value.workOrderRules,
5272
+ "onUpdate:modelValue": I[17] || (I[17] = (k) => i.value.workOrderRules = k),
5270
5273
  error: u.value.workOrderRules,
5271
- "onUpdate:error": I[18] || (I[18] = (B) => u.value.workOrderRules = B),
5274
+ "onUpdate:error": I[18] || (I[18] = (k) => u.value.workOrderRules = k),
5272
5275
  options: $.value,
5273
5276
  col: 1,
5274
5277
  optionsLabelKey: "name",
5275
5278
  optionsValueKey: "id",
5276
- "get-popup-container": W,
5279
+ "get-popup-container": F,
5277
5280
  marginBottom: "0px",
5278
5281
  marginRight: "0"
5279
5282
  }, null, 8, ["label", "modelValue", "error", "options"])) : U("v-if", !0),
5280
5283
  U(" createcontingency 生成应急事件 "),
5281
- s.value.processTypeId == "createcontingency" ? (H(), V(v(_e), {
5284
+ i.value.processTypeId == "createcontingency" ? (N(), V(v(_e), {
5282
5285
  key: 6,
5283
5286
  label: v(Q)("事件类型").value,
5284
5287
  required: "",
5285
5288
  type: "select",
5286
- modelValue: s.value.eventTypeId,
5287
- "onUpdate:modelValue": I[19] || (I[19] = (B) => s.value.eventTypeId = B),
5289
+ modelValue: i.value.eventTypeId,
5290
+ "onUpdate:modelValue": I[19] || (I[19] = (k) => i.value.eventTypeId = k),
5288
5291
  error: u.value.eventTypeId,
5289
- "onUpdate:error": I[20] || (I[20] = (B) => u.value.eventTypeId = B),
5290
- options: A.value,
5292
+ "onUpdate:error": I[20] || (I[20] = (k) => u.value.eventTypeId = k),
5293
+ options: p.value,
5291
5294
  col: 1,
5292
5295
  optionsLabelKey: "typeName",
5293
5296
  optionsValueKey: "id",
5294
- "get-popup-container": W,
5297
+ "get-popup-container": F,
5295
5298
  marginBottom: "30px",
5296
5299
  marginRight: "0",
5297
- onChange: I[21] || (I[21] = (B) => Oe("eventTypeId"))
5300
+ onChange: I[21] || (I[21] = (k) => Oe("eventTypeId"))
5298
5301
  }, null, 8, ["label", "modelValue", "error", "options"])) : U("v-if", !0),
5299
- s.value.processTypeId == "createcontingency" ? (H(), V(v(_e), {
5302
+ i.value.processTypeId == "createcontingency" ? (N(), V(v(_e), {
5300
5303
  key: 7,
5301
5304
  label: v(Q)("事件等级").value,
5302
5305
  required: "",
5303
5306
  type: "select",
5304
- modelValue: s.value.eventLevelId,
5305
- "onUpdate:modelValue": I[22] || (I[22] = (B) => s.value.eventLevelId = B),
5307
+ modelValue: i.value.eventLevelId,
5308
+ "onUpdate:modelValue": I[22] || (I[22] = (k) => i.value.eventLevelId = k),
5306
5309
  error: u.value.eventLevelId,
5307
- "onUpdate:error": I[23] || (I[23] = (B) => u.value.eventLevelId = B),
5308
- options: f.value,
5310
+ "onUpdate:error": I[23] || (I[23] = (k) => u.value.eventLevelId = k),
5311
+ options: h.value,
5309
5312
  col: 1,
5310
5313
  optionsLabelKey: "name",
5311
5314
  optionsValueKey: "id",
5312
- "get-popup-container": W,
5315
+ "get-popup-container": F,
5313
5316
  marginBottom: "30px",
5314
5317
  marginRight: "0",
5315
- onChange: I[24] || (I[24] = (B) => Oe("eventLevelId"))
5318
+ onChange: I[24] || (I[24] = (k) => Oe("eventLevelId"))
5316
5319
  }, null, 8, ["label", "modelValue", "error", "options"])) : U("v-if", !0),
5317
- s.value.processTypeId == "createcontingency" ? (H(), V(v(_e), {
5320
+ i.value.processTypeId == "createcontingency" ? (N(), V(v(_e), {
5318
5321
  key: 8,
5319
5322
  label: v(Q)("处置时限").value,
5320
5323
  required: "",
5321
5324
  type: "input",
5322
5325
  maxlength: "3",
5323
5326
  col: 1,
5324
- modelValue: s.value.timeLimit,
5325
- "onUpdate:modelValue": I[27] || (I[27] = (B) => s.value.timeLimit = B),
5327
+ modelValue: i.value.timeLimit,
5328
+ "onUpdate:modelValue": I[27] || (I[27] = (k) => i.value.timeLimit = k),
5326
5329
  error: u.value.timeLimit,
5327
- "onUpdate:error": I[28] || (I[28] = (B) => u.value.timeLimit = B),
5328
- disabled: s.value.interval == 3,
5330
+ "onUpdate:error": I[28] || (I[28] = (k) => u.value.timeLimit = k),
5331
+ disabled: i.value.interval == 3,
5329
5332
  marginBottom: "30px",
5330
5333
  marginRight: "0"
5331
5334
  }, {
5332
- default: x(() => [
5333
- L("div", _p, [
5334
- M(v(ls), {
5335
+ default: M(() => [
5336
+ x("div", _p, [
5337
+ R(v(ls), {
5335
5338
  class: "select",
5336
- modelValue: s.value.interval,
5337
- "onUpdate:modelValue": I[25] || (I[25] = (B) => s.value.interval = B),
5339
+ modelValue: i.value.interval,
5340
+ "onUpdate:modelValue": I[25] || (I[25] = (k) => i.value.interval = k),
5338
5341
  width: "64px",
5339
5342
  fieldNames: {
5340
5343
  value: "id",
@@ -5343,8 +5346,8 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
5343
5346
  options: S.value,
5344
5347
  "border-type": "underline",
5345
5348
  size: "small",
5346
- "get-popup-container": W,
5347
- onChange: I[26] || (I[26] = (B) => Oe("interval")),
5349
+ "get-popup-container": F,
5350
+ onChange: I[26] || (I[26] = (k) => Oe("interval")),
5348
5351
  placeholder: "请选择"
5349
5352
  }, null, 8, ["modelValue", "options"])
5350
5353
  ])
@@ -5375,7 +5378,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
5375
5378
  handerIds: e.value,
5376
5379
  projectId: St().id,
5377
5380
  ref: n,
5378
- onEmitFn: (r, i) => {
5381
+ onEmitFn: (r, s) => {
5379
5382
  }
5380
5383
  })
5381
5384
  }), Sp = { class: "alarm-msg" }, Tp = { style: { position: "relative" } }, kp = { class: "title-left" }, Pp = { class: "title-box" }, Bp = { class: "content-box" }, Op = { class: "alarm-msg-line" }, Dp = { class: "alarm-msg-line-left" }, $p = { class: "alarm-msg-line" }, Lp = { class: "alarm-msg-line-left" }, xp = { class: "alarm-msg-line-right alarm-content-object" }, Mp = { class: "alarm-msg-line" }, Rp = { class: "alarm-msg-line-left" }, Qp = { class: "alarm-msg-line-right alarm-content" }, jp = { class: "btn-box" }, Hp = {
@@ -5390,28 +5393,28 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
5390
5393
  setup(n, { emit: e }) {
5391
5394
  const t = n, o = e, r = () => {
5392
5395
  o("handerFn", t.msgItem);
5393
- }, i = () => {
5396
+ }, s = () => {
5394
5397
  o("handerDetail", t.msgItem);
5395
5398
  };
5396
- return (a, l) => (H(), de(
5399
+ return (a, l) => (N(), de(
5397
5400
  We,
5398
5401
  null,
5399
5402
  [
5400
5403
  U(` <div class="alarm-msg" :style="{ 'border-color': msgItem.color }"> `),
5401
- L("div", Sp, [
5402
- L("div", Tp, [
5403
- L(
5404
+ x("div", Sp, [
5405
+ x("div", Tp, [
5406
+ x(
5404
5407
  "div",
5405
5408
  {
5406
5409
  style: Sn({ "background-color": a.msgItem.color }),
5407
5410
  class: "title-detail"
5408
5411
  },
5409
5412
  [
5410
- L("div", kp, [
5413
+ x("div", kp, [
5411
5414
  U(` <div class="icon-box" :style="{ color: msgItem.color }">\r
5412
5415
  !\r
5413
5416
  </div> `),
5414
- L(
5417
+ x(
5415
5418
  "div",
5416
5419
  Pp,
5417
5420
  Z(v(Q)("新告警").value),
@@ -5419,7 +5422,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
5419
5422
  /* TEXT */
5420
5423
  )
5421
5424
  ]),
5422
- l[0] || (l[0] = L(
5425
+ l[0] || (l[0] = x(
5423
5426
  "div",
5424
5427
  { class: "title-right" },
5425
5428
  null,
@@ -5430,16 +5433,16 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
5430
5433
  4
5431
5434
  /* STYLE */
5432
5435
  ),
5433
- L("div", Bp, [
5434
- L("div", Op, [
5435
- L(
5436
+ x("div", Bp, [
5437
+ x("div", Op, [
5438
+ x(
5436
5439
  "div",
5437
5440
  Dp,
5438
5441
  Z(v(Q)("告警等级:").value),
5439
5442
  1
5440
5443
  /* TEXT */
5441
5444
  ),
5442
- L(
5445
+ x(
5443
5446
  "div",
5444
5447
  {
5445
5448
  class: "alarm-msg-line-right alarm-content-object",
@@ -5450,15 +5453,15 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
5450
5453
  /* TEXT, STYLE */
5451
5454
  )
5452
5455
  ]),
5453
- L("div", $p, [
5454
- L(
5456
+ x("div", $p, [
5457
+ x(
5455
5458
  "div",
5456
5459
  Lp,
5457
5460
  Z(v(Q)("告警对象:").value),
5458
5461
  1
5459
5462
  /* TEXT */
5460
5463
  ),
5461
- L(
5464
+ x(
5462
5465
  "div",
5463
5466
  xp,
5464
5467
  Z(a.msgItem.equipmentName || ""),
@@ -5466,15 +5469,15 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
5466
5469
  /* TEXT */
5467
5470
  )
5468
5471
  ]),
5469
- L("div", Mp, [
5470
- L(
5472
+ x("div", Mp, [
5473
+ x(
5471
5474
  "div",
5472
5475
  Rp,
5473
5476
  Z(v(Q)("告警内容:").value),
5474
5477
  1
5475
5478
  /* TEXT */
5476
5479
  ),
5477
- L(
5480
+ x(
5478
5481
  "div",
5479
5482
  Qp,
5480
5483
  Z(a.msgItem.alarmContent || ""),
@@ -5482,15 +5485,15 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
5482
5485
  /* TEXT */
5483
5486
  )
5484
5487
  ]),
5485
- L("div", jp, [
5486
- a.msgItem.equipmentCode && a.msgItem.equipmentPanelCode ? (H(), V(v(ke), {
5488
+ x("div", jp, [
5489
+ a.msgItem.equipmentCode && a.msgItem.equipmentPanelCode ? (N(), V(v(ke), {
5487
5490
  key: 0,
5488
5491
  block: "",
5489
- onClick: te(i, ["stop"]),
5492
+ onClick: te(s, ["stop"]),
5490
5493
  btnType: "primary-text",
5491
5494
  size: "middle"
5492
5495
  }, {
5493
- default: x(() => [
5496
+ default: M(() => [
5494
5497
  le(
5495
5498
  Z(v(Q)("设备详情").value),
5496
5499
  1
@@ -5500,14 +5503,14 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
5500
5503
  _: 1
5501
5504
  /* STABLE */
5502
5505
  })) : U("v-if", !0),
5503
- a.alarmhandle ? (H(), V(v(ke), {
5506
+ a.alarmhandle ? (N(), V(v(ke), {
5504
5507
  key: 1,
5505
5508
  block: "",
5506
5509
  btnType: "primary-text",
5507
5510
  onClick: te(r, ["stop"]),
5508
5511
  size: "middle"
5509
5512
  }, {
5510
- default: x(() => [
5513
+ default: M(() => [
5511
5514
  le(
5512
5515
  Z(v(Q)("处理").value),
5513
5516
  1
@@ -5536,7 +5539,7 @@ let Up = (n = 21) => {
5536
5539
  return e;
5537
5540
  };
5538
5541
  const Fp = () => {
5539
- const n = E(null), e = E(0), t = E(null), o = E(null), r = E([]), i = E([]), a = E(!1), l = E(!1), c = E(!1), s = E({
5542
+ const n = E(null), e = E(0), t = E(null), o = E(null), r = E([]), s = E([]), a = E(!1), l = E(!1), c = E(!1), i = E({
5540
5543
  playId: "",
5541
5544
  // 播放的告警的recordId
5542
5545
  playPath: "",
@@ -5552,37 +5555,37 @@ const Fp = () => {
5552
5555
  loop: !1
5553
5556
  // 轮播-无限次播放
5554
5557
  });
5555
- ue.addEventListenerFromMicroApp("alarm:change-alarmconfig", (C) => {
5556
- const { isRealTimeAlarm: T, audioPlay: R } = C.data;
5557
- T != null && (l.value = T), R != null && (c.value = R, c.value || y());
5558
+ ue.addEventListenerFromMicroApp("alarm:change-alarmconfig", (w) => {
5559
+ const { isRealTimeAlarm: C, audioPlay: P } = w.data;
5560
+ C != null && (l.value = C), P != null && (c.value = P, c.value || _());
5558
5561
  });
5559
- const u = (C) => {
5560
- var R;
5561
- const T = [];
5562
- T.push({ alarmId: C.recordId }), r.value = T, (R = t.value) == null || R.open();
5563
- }, { entryApp: m } = bt.hooks.useEntryApp(), A = (C) => {
5564
- So(C.equipmentCode, C.equipmentPanelCode);
5565
- }, { handleAlarmVue: f } = Ep(t, r), S = async () => {
5566
- var R;
5567
- const T = (((R = F().appcategorys) == null ? void 0 : R.map(($) => $.apps).flat()) ?? []).find(($) => $.code === "alarm");
5568
- T && m({ microApp: T, menuPath: `/${T.routeUrl}/realTimeAlarm` });
5569
- }, b = [], p = (C) => {
5570
- if (b.push(C), i.value.length < 2) {
5562
+ const u = (w) => {
5563
+ var P;
5564
+ const C = [];
5565
+ C.push({ alarmId: w.recordId }), r.value = C, (P = t.value) == null || P.open();
5566
+ }, { entryApp: A } = bt.hooks.useEntryApp(), p = (w) => {
5567
+ So(w.equipmentCode, w.equipmentPanelCode);
5568
+ }, { handleAlarmVue: h } = Ep(t, r), S = async () => {
5569
+ var P;
5570
+ const C = (((P = J().appcategorys) == null ? void 0 : P.map(($) => $.apps).flat()) ?? []).find(($) => $.code === "alarm");
5571
+ C && A({ microApp: C, menuPath: `/${C.routeUrl}/realTimeAlarm` });
5572
+ }, b = [], f = (w) => {
5573
+ if (b.push(w), s.value.length < 2) {
5571
5574
  d(b[0]), b.shift();
5572
5575
  return;
5573
5576
  }
5574
- }, d = (C) => {
5575
- if (!C) return;
5576
- const T = Up();
5577
+ }, d = (w) => {
5578
+ if (!w) return;
5579
+ const C = Up();
5577
5580
  yt.open({
5578
- key: T,
5581
+ key: C,
5579
5582
  class: "alarm-notify",
5580
5583
  message: Q("新告警").value,
5581
5584
  placement: "bottomRight",
5582
5585
  description: he(Np, {
5583
- msgItem: C,
5586
+ msgItem: w,
5584
5587
  alarmhandle: a.value,
5585
- onHanderDetail: A,
5588
+ onHanderDetail: p,
5586
5589
  onHanderFn: u
5587
5590
  }),
5588
5591
  duration: 5,
@@ -5591,60 +5594,60 @@ const Fp = () => {
5591
5594
  },
5592
5595
  onClose: () => {
5593
5596
  setTimeout(() => {
5594
- const R = i.value.findIndex(($) => $ == T);
5595
- if (R >= 0 && i.value.splice(R, 1), i.value.length < 2 && b.length) {
5597
+ const P = s.value.findIndex(($) => $ == C);
5598
+ if (P >= 0 && s.value.splice(P, 1), s.value.length < 2 && b.length) {
5596
5599
  d(b[0]), b.shift();
5597
5600
  return;
5598
5601
  }
5599
5602
  }, 300);
5600
5603
  }
5601
- }), i.value.includes(T) || i.value.push(T), g(C);
5602
- }, g = (C) => {
5603
- if (C) {
5604
+ }), s.value.includes(C) || s.value.push(C), m(w);
5605
+ }, m = (w) => {
5606
+ if (w) {
5604
5607
  if (!c.value) {
5605
- y();
5608
+ _();
5606
5609
  return;
5607
5610
  }
5608
- if (!C.coverId) {
5609
- if (s.value.playLine === null) {
5610
- y(), Number(C.noticeNum) != 0 && _(C);
5611
+ if (!w.coverId) {
5612
+ if (i.value.playLine === null) {
5613
+ _(), Number(w.noticeNum) != 0 && y(w);
5611
5614
  return;
5612
5615
  }
5613
- Number(C.alarmLevelId) < s.value.playLine && (y(), Number(C.noticeNum) != 0 && _(C));
5616
+ Number(w.alarmLevelId) < i.value.playLine && (_(), Number(w.noticeNum) != 0 && y(w));
5614
5617
  }
5615
5618
  }
5616
- }, _ = (C) => {
5617
- const T = Number(C.noticeNum), R = location.origin + "/oss";
5618
- s.value.isplay && s.value.playId == C.recordId ? y() : (T < 0 ? s.value.loop = !0 : s.value.loop = !1, T > 0 ? (s.value.loopTotalCount = Number(C.noticeNum), s.value.loopCount = 0) : (s.value.loopTotalCount = 0, s.value.loopCount = 0), s.value.isplay = !0, s.value.playId = C.recordId, s.value.playLine = Number(C.alarmLevelId), s.value.playPath = R + C.noticePath, k());
5619
- }, y = () => {
5620
- 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;
5621
- }, k = () => {
5619
+ }, y = (w) => {
5620
+ const C = Number(w.noticeNum), P = location.origin + "/oss";
5621
+ i.value.isplay && i.value.playId == w.recordId ? _() : (C < 0 ? i.value.loop = !0 : i.value.loop = !1, C > 0 ? (i.value.loopTotalCount = Number(w.noticeNum), i.value.loopCount = 0) : (i.value.loopTotalCount = 0, i.value.loopCount = 0), i.value.isplay = !0, i.value.playId = w.recordId, i.value.playLine = Number(w.alarmLevelId), i.value.playPath = P + w.noticePath, T());
5622
+ }, _ = () => {
5623
+ i.value.playId = "", i.value.playPath = "", i.value.playLine = null, i.value.loopCount = 0, i.value.loopTotalCount = 0, i.value.isplay = !1, i.value.loop = !1;
5624
+ }, T = () => {
5622
5625
  o.value.onended = function() {
5623
- 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());
5626
+ i.value.loopCount = i.value.loopCount + 1, i.value.loopTotalCount && i.value.loopTotalCount && (i.value.loopCount == i.value.loopTotalCount ? (i.value.playPath = "", i.value.isplay = !1, i.value.playId = "", i.value.loopTotalCount = 0, i.value.loopCount = 0, i.value.playLine = null) : o.value.play());
5624
5627
  };
5625
- }, w = async () => {
5626
- const [C, T] = await lp().run();
5627
- C || (c.value = T.isEnable);
5628
+ }, B = async () => {
5629
+ const [w, C] = await lp().run();
5630
+ w || (c.value = C.isEnable);
5628
5631
  };
5629
5632
  return {
5630
5633
  alarmSocket: n,
5631
5634
  alarmCount: e,
5632
- audioObj: s,
5635
+ audioObj: i,
5633
5636
  audioAlarmRef: o,
5634
- handleAlarmVue: f,
5637
+ handleAlarmVue: h,
5635
5638
  creatAlarmSocket: async () => {
5636
- w();
5637
- const [C, T] = await sp().run({
5639
+ B();
5640
+ const [w, C] = await sp().run({
5638
5641
  code: "alarm",
5639
5642
  showBtn: !0
5640
5643
  });
5641
- if (C || !T || !T.length) return;
5642
- let R = !1;
5643
- T.forEach(($) => {
5644
- $.code === "alarm.realTimeAlarm" && (R = !0, $.children && $.children.length ? $.children.forEach((N) => {
5645
- N.code == "alarm.realTimeAlarm.handle" ? a.value = !0 : a.value = !1;
5644
+ if (w || !C || !C.length) return;
5645
+ let P = !1;
5646
+ C.forEach(($) => {
5647
+ $.code === "alarm.realTimeAlarm" && (P = !0, $.children && $.children.length ? $.children.forEach((H) => {
5648
+ H.code == "alarm.realTimeAlarm.handle" ? a.value = !0 : a.value = !1;
5646
5649
  }) : a.value = !1);
5647
- }), R && (n.value = new an({
5650
+ }), P && (n.value = new an({
5648
5651
  url: "/api/alarm/socket/v1/record/subscribe",
5649
5652
  reconnectWhenClose: !0,
5650
5653
  opened: () => {
@@ -5652,7 +5655,7 @@ const Fp = () => {
5652
5655
  $ && n.value.send($);
5653
5656
  },
5654
5657
  message: async ($) => {
5655
- ue.sendMessageToMicroApp("enterpriseadmin/alarm", "alarmmessage", { alarmMessage: $ }), window.self === window.top && ($.messageType === "ADD" && (e.value = e.value + 1, $.coverId || p($)), $.messageType === "DELETE" && (e.value = e.value - 1, s.value.playId == $.recordId && y()));
5658
+ ue.sendMessageToMicroApp("enterpriseadmin/alarm", "alarmmessage", { alarmMessage: $ }), window.self === window.top && ($.messageType === "ADD" && (e.value = e.value + 1, $.coverId || f($)), $.messageType === "DELETE" && (e.value = e.value - 1, i.value.playId == $.recordId && _()));
5656
5659
  }
5657
5660
  }));
5658
5661
  }
@@ -5660,17 +5663,17 @@ const Fp = () => {
5660
5663
  }, Jp = ["src", "muted", "loop"], Wp = /* @__PURE__ */ pe({
5661
5664
  __name: "index",
5662
5665
  setup(n) {
5663
- const { alarmSocket: e, creatAlarmSocket: t, audioObj: o, audioAlarmRef: r, handleAlarmVue: i } = Fp();
5666
+ const { alarmSocket: e, creatAlarmSocket: t, audioObj: o, audioAlarmRef: r, handleAlarmVue: s } = Fp();
5664
5667
  return Qe(async () => {
5665
5668
  await Tt(), t();
5666
5669
  }), Et(() => {
5667
5670
  e.value && e.value.disconnect(), e.value = null;
5668
- }), (a, l) => (H(), de(
5671
+ }), (a, l) => (N(), de(
5669
5672
  We,
5670
5673
  null,
5671
5674
  [
5672
- M(v(i)),
5673
- L("audio", {
5675
+ R(v(s)),
5676
+ x("audio", {
5674
5677
  src: v(o).playPath,
5675
5678
  class: "audio-alarm-level",
5676
5679
  ref_key: "audioAlarmRef",
@@ -5687,35 +5690,35 @@ const Fp = () => {
5687
5690
  }), zp = { class: "das-main-app-container" }, Vp = /* @__PURE__ */ pe({
5688
5691
  __name: "index",
5689
5692
  setup(n) {
5690
- 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 } = gu(), { innerPage: l, commandList: c, initNextTick: s } = Au(a);
5691
- wu(l, a, s), bu(), yu(), Su();
5692
- const { $changePwd: u, $personSetDialog: m } = Cu(), { changeEnterprisesVisible: A, userId: f, tenantId: S, changeEnterprise: b } = dr();
5693
+ const { isFullscreen: e } = lt(), t = Ce(() => !e.value), o = Ce(() => ee.excludeRoutes), r = Ce(() => ee.routeKeepAliveVisible), s = Ce(() => ({ mode: Ct.value === 1 ? "vertical" : "inline" })), { initNextTick: a } = gu(), { innerPage: l, commandList: c, initNextTick: i } = Au(a);
5694
+ wu(l, a, i), bu(), yu(), Su();
5695
+ const { $changePwd: u, $personSetDialog: A } = Cu(), { changeEnterprisesVisible: p, userId: h, tenantId: S, changeEnterprise: b } = dr();
5693
5696
  vu();
5694
- const { fontColor: p, backgroudColor: d, borderColor: g } = _u();
5695
- return $u(), Lu(c), xu(), Ru(), pd(), op(), (_, y) => (H(), de("div", zp, [
5696
- M(v(Ps), { platformInitNextTick: v(a) }, {
5697
- default: x(() => [
5698
- M(fs, {
5697
+ const { fontColor: f, backgroudColor: d, borderColor: m } = _u();
5698
+ return $u(), Lu(c), xu(), Ru(), pd(), op(), (y, _) => (N(), de("div", zp, [
5699
+ R(v(Ps), { platformInitNextTick: v(a) }, {
5700
+ default: M(() => [
5701
+ R(fs, {
5699
5702
  showLayout: t.value,
5700
5703
  excludeRoutes: o.value,
5701
5704
  routeKeepAliveVisible: r.value,
5702
- tabsAttr: { fontColor: v(p), backgroudColor: v(d), borderColor: v(g) },
5703
- menuAttr: i.value
5705
+ tabsAttr: { fontColor: v(f), backgroudColor: v(d), borderColor: v(m) },
5706
+ menuAttr: s.value
5704
5707
  }, null, 8, ["showLayout", "excludeRoutes", "routeKeepAliveVisible", "tabsAttr", "menuAttr"])
5705
5708
  ]),
5706
5709
  _: 1
5707
5710
  /* STABLE */
5708
5711
  }, 8, ["platformInitNextTick"]),
5709
5712
  U(" 切换租户 "),
5710
- M(v(jr), {
5711
- visible: v(A),
5712
- "onUpdate:visible": y[0] || (y[0] = (k) => Dr(A) ? A.value = k : null),
5713
- userId: v(f),
5713
+ R(v(jr), {
5714
+ visible: v(p),
5715
+ "onUpdate:visible": _[0] || (_[0] = (T) => Dr(p) ? p.value = T : null),
5716
+ userId: v(h),
5714
5717
  tenantId: v(S),
5715
5718
  onConfirm: v(b)
5716
5719
  }, null, 8, ["visible", "userId", "tenantId", "onConfirm"]),
5717
5720
  U(" 修改密码 "),
5718
- M(
5721
+ R(
5719
5722
  v(Qr),
5720
5723
  {
5721
5724
  ref_key: "$changePwd",
@@ -5726,18 +5729,18 @@ const Fp = () => {
5726
5729
  /* NEED_PATCH */
5727
5730
  ),
5728
5731
  U(" 个性化设置 "),
5729
- M(
5732
+ R(
5730
5733
  v(pu),
5731
5734
  {
5732
5735
  ref_key: "$personSetDialog",
5733
- ref: m
5736
+ ref: A
5734
5737
  },
5735
5738
  null,
5736
5739
  512
5737
5740
  /* NEED_PATCH */
5738
5741
  ),
5739
5742
  U(" 告警 "),
5740
- M(v(Wp))
5743
+ R(v(Wp))
5741
5744
  ]));
5742
5745
  }
5743
5746
  }), qp = /* @__PURE__ */ Ee(Vp, [["__scopeId", "data-v-45ef70df"]]);
@@ -5745,15 +5748,15 @@ E("@das-fed/web");
5745
5748
  const Kp = [
5746
5749
  {
5747
5750
  path: Ie,
5748
- component: () => import("./index-Dmb3C3y5.js")
5751
+ component: () => import("./index-B0_wDXgo.js")
5749
5752
  },
5750
5753
  {
5751
5754
  path: Je,
5752
- component: () => import("./index-DuIncATn.js")
5755
+ component: () => import("./index-DFNYnsJI.js")
5753
5756
  },
5754
5757
  {
5755
5758
  path: Bo,
5756
- component: () => import("./index-DCqOCM9d.js")
5759
+ component: () => import("./index-f5pYmnKV.js")
5757
5760
  }
5758
5761
  ], Hf = {
5759
5762
  routes: Kp,