@das-fed/web 6.4.0-dev.13 → 6.4.0-dev.15

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