@das-fed/web 6.4.0-hot.53 → 6.4.0-hot.55
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.
- package/{index-qMuktTvs.js → index-B4_pNzA2.js} +1 -1
- package/{index-C0KGEQ7t.js → index-BXgyXLXy.js} +2140 -2126
- package/index-BXgyXLXy.js.gz +0 -0
- package/{index-Bt0hdiGm.js → index-C28rnnFY.js} +33 -32
- package/index-C28rnnFY.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/main-app-framework/{index-C4x9zluU.js → index-CJt4Jf9a.js} +1 -1
- package/packages/main-app-framework/{index-CI649lUE.js → index-CPObYd5x.js} +33 -32
- package/packages/main-app-framework/index-CPObYd5x.js.gz +0 -0
- package/packages/main-app-framework/{index-BqB9cZ4D.js → index-PGuD_qkK.js} +944 -930
- package/packages/main-app-framework/index-PGuD_qkK.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/packages/main-app-framework/style.css +1 -1
- package/packages/main-app-framework/style.css.gz +0 -0
- package/style.css +1 -1
- package/style.css.gz +0 -0
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-ai-helper.d.ts +1 -0
- package/index-Bt0hdiGm.js.gz +0 -0
- package/index-C0KGEQ7t.js.gz +0 -0
- package/packages/main-app-framework/index-BqB9cZ4D.js.gz +0 -0
- package/packages/main-app-framework/index-CI649lUE.js.gz +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as qA, ref as o, onUnmounted as Xn, createElementBlock as
|
|
2
|
-
import { DasWebLayout as xn, DasWebTabs as On, DasWebMenu as mn, DasWebNav as ln, layout as
|
|
1
|
+
import { defineComponent as qA, ref as o, onUnmounted as Xn, createElementBlock as lA, createCommentVNode as nA, openBlock as fA, createElementVNode as Q, createVNode as k, createTextVNode as aA, unref as D, toDisplayString as rA, watch as OA, createBlock as XA, computed as EA, mergeProps as bn, withCtx as U, renderSlot as r9, getCurrentScope as cn, onScopeDispose as an, getCurrentInstance as sn, onMounted as _A, nextTick as R9, reactive as g3, Fragment as i9, renderList as ye, withDirectives as h9, h as jA, render as Q9, vShow as af, normalizeClass as B3, isRef as FA, onBeforeUnmount as K9, useCssVars as qn, withModifiers as VA, toRefs as Hn, normalizeStyle as b7, createSlots as pn } from "vue";
|
|
2
|
+
import { DasWebLayout as xn, DasWebTabs as On, DasWebMenu as mn, DasWebNav as ln, layout as S, layoutData as k3 } from "@das-fed/web/packages/layout/index";
|
|
3
3
|
import { useRoute as sf, useRouter as y9 } from "vue-router";
|
|
4
|
-
import { microFrontend as
|
|
5
|
-
import { i18n as AA, t as
|
|
4
|
+
import { microFrontend as mA } from "@das-fed/web/packages/micro-frontend/index";
|
|
5
|
+
import { i18n as AA, t as g, currentLang as C9, setLang as Dn, setI18nRule as Vn } from "@das-fed/web/packages/i18n/index";
|
|
6
6
|
import { DasIconWarning as Nn } from "@das-fed/ui/packages/icons/warning/index";
|
|
7
7
|
import { DasIconClose2 as Rn } from "@das-fed/ui/packages/icons/close-2/index";
|
|
8
8
|
import { DasChangePwdRef as jn, DasChangePwd as Zn } from "@das-fed/ui/packages/business-components/change-pwd/index";
|
|
@@ -69,16 +69,16 @@ const hA = "/home", RA = "/application", $3 = [
|
|
|
69
69
|
const f = A, v = o(!0), r = o(""), P = o(0), t = o({}), z = () => {
|
|
70
70
|
f("close-tip", !0), v.value = !0;
|
|
71
71
|
};
|
|
72
|
-
|
|
73
|
-
const { remove: d } =
|
|
72
|
+
mA.sendMessageToMicroApp("iot/iot", "iot:banner-data-1", null, { awaitListener: !0 });
|
|
73
|
+
const { remove: d } = mA.addEventListenerFromMicroApp("iot:banner-data-2", (n) => {
|
|
74
74
|
const u = JSON.parse(n.data);
|
|
75
75
|
v.value = u == null ? void 0 : u.isClosed, r.value = u == null ? void 0 : u.expireDate, P.value = u == null ? void 0 : u.relativeDate, t.value = u == null ? void 0 : u.curExample;
|
|
76
76
|
});
|
|
77
77
|
return Xn(() => {
|
|
78
78
|
d();
|
|
79
|
-
}), (n, u) => v.value ? nA("v-if", !0) : (fA(),
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
}), (n, u) => v.value ? nA("v-if", !0) : (fA(), lA("div", ar, [
|
|
80
|
+
Q("div", ir, [
|
|
81
|
+
k(D(Nn), {
|
|
82
82
|
class: "icons",
|
|
83
83
|
iconColor: "#fdaf1a"
|
|
84
84
|
}),
|
|
@@ -88,7 +88,7 @@ const hA = "/home", RA = "/application", $3 = [
|
|
|
88
88
|
/* TEXT */
|
|
89
89
|
)
|
|
90
90
|
]),
|
|
91
|
-
|
|
91
|
+
k(D(Rn), {
|
|
92
92
|
class: "icons close-icon",
|
|
93
93
|
iconColor: "#999999",
|
|
94
94
|
onClick: z
|
|
@@ -144,22 +144,22 @@ const hA = "/home", RA = "/application", $3 = [
|
|
|
144
144
|
}, v.value), {
|
|
145
145
|
header: U(() => [
|
|
146
146
|
r9(r.$slots, "header", {}, () => [
|
|
147
|
-
|
|
147
|
+
k(D(ln))
|
|
148
148
|
])
|
|
149
149
|
]),
|
|
150
150
|
aside: U(() => [
|
|
151
151
|
r9(r.$slots, "aside", {}, () => [
|
|
152
|
-
|
|
152
|
+
k(D(mn), { menuAttr: r.menuAttr }, null, 8, ["menuAttr"])
|
|
153
153
|
])
|
|
154
154
|
]),
|
|
155
155
|
tab: U(() => [
|
|
156
156
|
r9(r.$slots, "tab", {}, () => [
|
|
157
|
-
|
|
157
|
+
k(D(On), { tabsAttr: r.tabsAttr }, null, 8, ["tabsAttr"])
|
|
158
158
|
])
|
|
159
159
|
]),
|
|
160
160
|
banner: U(() => [
|
|
161
161
|
r9(r.$slots, "banner", {}, () => [
|
|
162
|
-
|
|
162
|
+
k(Hr)
|
|
163
163
|
])
|
|
164
164
|
]),
|
|
165
165
|
_: 3
|
|
@@ -196,8 +196,8 @@ function Nr(...e) {
|
|
|
196
196
|
Array.isArray(f) || (f = [f]), Array.isArray(v) || (v = [v]);
|
|
197
197
|
const P = [], t = () => {
|
|
198
198
|
P.forEach((u) => u()), P.length = 0;
|
|
199
|
-
}, z = (u, x, X,
|
|
200
|
-
t(), u && P.push(...f.flatMap((X) => v.map((
|
|
199
|
+
}, z = (u, x, X, a) => (u.addEventListener(x, X, a), () => u.removeEventListener(x, X, a)), d = OA(() => [vv(A), fv(r)], ([u, x]) => {
|
|
200
|
+
t(), u && P.push(...f.flatMap((X) => v.map((a) => z(u, X, a, x))));
|
|
201
201
|
}, { immediate: !0, flush: "post" }), n = () => {
|
|
202
202
|
d(), t();
|
|
203
203
|
};
|
|
@@ -266,24 +266,24 @@ function $9(e, A = {}) {
|
|
|
266
266
|
async function X() {
|
|
267
267
|
z.value && (f != null && f[u] && await f[n](), P.value = !1);
|
|
268
268
|
}
|
|
269
|
-
async function
|
|
269
|
+
async function a() {
|
|
270
270
|
if (!z.value)
|
|
271
271
|
return;
|
|
272
272
|
await X();
|
|
273
273
|
const s = vv(r);
|
|
274
274
|
s && (await s[d](), P.value = !0);
|
|
275
275
|
}
|
|
276
|
-
async function
|
|
277
|
-
P.value ? await X() : await
|
|
276
|
+
async function i() {
|
|
277
|
+
P.value ? await X() : await a();
|
|
278
278
|
}
|
|
279
279
|
return f && Nr(f, x, () => {
|
|
280
280
|
P.value = !!(f != null && f[u]);
|
|
281
281
|
}, !1), v && ev(X), {
|
|
282
282
|
isSupported: z,
|
|
283
283
|
isFullscreen: P,
|
|
284
|
-
enter:
|
|
284
|
+
enter: a,
|
|
285
285
|
exit: X,
|
|
286
|
-
toggle:
|
|
286
|
+
toggle: i
|
|
287
287
|
};
|
|
288
288
|
}
|
|
289
289
|
var x7;
|
|
@@ -377,9 +377,9 @@ const yr = Yn.get("watermark"), Wr = /* @__PURE__ */ qA({
|
|
|
377
377
|
return n.value = !1, b;
|
|
378
378
|
};
|
|
379
379
|
X();
|
|
380
|
-
const
|
|
380
|
+
const a = y9(), i = sf();
|
|
381
381
|
return OA(
|
|
382
|
-
() =>
|
|
382
|
+
() => a.currentRoute.value,
|
|
383
383
|
(s) => {
|
|
384
384
|
var q, p, m;
|
|
385
385
|
const b = !!((q = f.value) != null && q.pageSwith), H = ((p = s.meta) == null ? void 0 : p.showWatermark) ?? !0;
|
|
@@ -387,11 +387,11 @@ const yr = Yn.get("watermark"), Wr = /* @__PURE__ */ qA({
|
|
|
387
387
|
c === "false" && (c = !1), x(b && !!(H && c));
|
|
388
388
|
},
|
|
389
389
|
{ immediate: !0 }
|
|
390
|
-
),
|
|
390
|
+
), mA.addEventListenerFromMicroApp("systemconfig:watermark-change", async () => {
|
|
391
391
|
var H, c;
|
|
392
392
|
await X();
|
|
393
393
|
const s = !!((H = f.value) != null && H.pageSwith);
|
|
394
|
-
let b = ((c =
|
|
394
|
+
let b = ((c = i.query) == null ? void 0 : c.showWatermark) ?? !0;
|
|
395
395
|
b === "false" && (b = !1), x(!!(s && b));
|
|
396
396
|
}), (s, b) => (fA(), XA(D(vr), {
|
|
397
397
|
class: "watermark",
|
|
@@ -434,15 +434,15 @@ const yr = Yn.get("watermark"), Wr = /* @__PURE__ */ qA({
|
|
|
434
434
|
onClosed: f.closeCallback
|
|
435
435
|
}, {
|
|
436
436
|
footer: U(() => [
|
|
437
|
-
|
|
438
|
-
|
|
437
|
+
Q("div", Mr, [
|
|
438
|
+
k(D(kA), {
|
|
439
439
|
btnType: "default",
|
|
440
440
|
size: "small",
|
|
441
441
|
onClick: f.closeCallback
|
|
442
442
|
}, {
|
|
443
443
|
default: U(() => [
|
|
444
444
|
aA(
|
|
445
|
-
rA(D(
|
|
445
|
+
rA(D(g)("我知道了")),
|
|
446
446
|
1
|
|
447
447
|
/* TEXT */
|
|
448
448
|
)
|
|
@@ -453,25 +453,25 @@ const yr = Yn.get("watermark"), Wr = /* @__PURE__ */ qA({
|
|
|
453
453
|
])
|
|
454
454
|
]),
|
|
455
455
|
default: U(() => [
|
|
456
|
-
|
|
456
|
+
Q("div", {
|
|
457
457
|
class: "content",
|
|
458
458
|
innerHTML: f.content
|
|
459
459
|
}, null, 8, Ir),
|
|
460
|
-
f.desc && f.desc.length ? (fA(),
|
|
460
|
+
f.desc && f.desc.length ? (fA(), lA(
|
|
461
461
|
i9,
|
|
462
462
|
{ key: 0 },
|
|
463
463
|
[
|
|
464
|
-
v[1] || (v[1] =
|
|
464
|
+
v[1] || (v[1] = Q(
|
|
465
465
|
"div",
|
|
466
466
|
{ class: "divide" },
|
|
467
467
|
null,
|
|
468
468
|
-1
|
|
469
469
|
/* HOISTED */
|
|
470
470
|
)),
|
|
471
|
-
(fA(!0),
|
|
471
|
+
(fA(!0), lA(
|
|
472
472
|
i9,
|
|
473
473
|
null,
|
|
474
|
-
ye(f.desc, (r, P) => h9((fA(),
|
|
474
|
+
ye(f.desc, (r, P) => h9((fA(), lA("div", {
|
|
475
475
|
key: P,
|
|
476
476
|
class: "desc-item"
|
|
477
477
|
}, [
|
|
@@ -578,25 +578,25 @@ const kr = (e = {}) => {
|
|
|
578
578
|
const n = d.code, u = (d == null ? void 0 : d.originalCode) ?? "";
|
|
579
579
|
z[n] || (z[n] = []);
|
|
580
580
|
let x = [];
|
|
581
|
-
d != null && d.children && ((X = d == null ? void 0 : d.children) != null && X.length) && (d.children.forEach((
|
|
582
|
-
var
|
|
583
|
-
!(
|
|
584
|
-
code:
|
|
585
|
-
originalCode:
|
|
586
|
-
name:
|
|
587
|
-
}) : UA([
|
|
581
|
+
d != null && d.children && ((X = d == null ? void 0 : d.children) != null && X.length) && (d.children.forEach((a) => {
|
|
582
|
+
var i;
|
|
583
|
+
!(a != null && a.children) || !((i = a.children) != null && i.length) ? x.push({
|
|
584
|
+
code: a.code,
|
|
585
|
+
originalCode: a.originalCode,
|
|
586
|
+
name: a.name
|
|
587
|
+
}) : UA([a]).forEach((b) => {
|
|
588
588
|
x.push({
|
|
589
589
|
code: b.code,
|
|
590
590
|
originalCode: b.originalCode,
|
|
591
591
|
name: b.name
|
|
592
592
|
});
|
|
593
593
|
});
|
|
594
|
-
}), x.forEach((
|
|
595
|
-
let
|
|
596
|
-
|
|
594
|
+
}), x.forEach((a) => {
|
|
595
|
+
let i = a.originalCode ? a.originalCode : a.code ? a.code : "";
|
|
596
|
+
i.includes(n + ".") && (i = i.replace(n + ".", "").replaceAll(".", "-")), i.includes(u + ".") && (i = i.replace(u + ".", "").replaceAll(".", "-"));
|
|
597
597
|
const s = {
|
|
598
|
-
code:
|
|
599
|
-
name:
|
|
598
|
+
code: i,
|
|
599
|
+
name: a.name
|
|
600
600
|
};
|
|
601
601
|
z[n].push(s), u && n !== u && (z["origin-auth"] || (z["origin-auth"] = {}), z["origin-auth"][u] || (z["origin-auth"][u] = []), z["origin-auth"][u].push(s));
|
|
602
602
|
}));
|
|
@@ -630,8 +630,8 @@ const kr = (e = {}) => {
|
|
|
630
630
|
const A = JSON.parse(sessionStorage.getItem(e) || "{}");
|
|
631
631
|
if (A && JSON.stringify(A) !== "{}" && A != null && A.exitConfirmPages && A.exitConfirmPages.length) {
|
|
632
632
|
const f = (A == null ? void 0 : A.currentPage) ?? "";
|
|
633
|
-
if (A.exitConfirmPages.includes(f) && !window.confirm(
|
|
634
|
-
throw new Error(
|
|
633
|
+
if (A.exitConfirmPages.includes(f) && !window.confirm(g("切换后已录入的数据将会丢失且不可恢复,确定切换?")))
|
|
634
|
+
throw new Error(g("取消切换"));
|
|
635
635
|
}
|
|
636
636
|
}, tf = (e, A) => {
|
|
637
637
|
if (!A || !A.length) return;
|
|
@@ -639,8 +639,8 @@ const kr = (e = {}) => {
|
|
|
639
639
|
if (f && JSON.stringify(f) !== "{}" && f != null && f.closeTabPageConfirm && f.closeTabPageConfirm.length) {
|
|
640
640
|
const v = f.closeTabPageConfirm.map((P) => P.code), r = A.find((P) => v.includes(P));
|
|
641
641
|
if (r) {
|
|
642
|
-
const P = f.closeTabPageConfirm.find((d) => d.code === r), t = (P == null ? void 0 : P.text) ??
|
|
643
|
-
if (!window.confirm(t)) throw new Error(
|
|
642
|
+
const P = f.closeTabPageConfirm.find((d) => d.code === r), t = (P == null ? void 0 : P.text) ?? g("确认关闭?");
|
|
643
|
+
if (!window.confirm(t)) throw new Error(g("取消关闭"));
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
646
|
};
|
|
@@ -825,7 +825,7 @@ function tA() {
|
|
|
825
825
|
* var string = wordArray.toString(CryptoJS.enc.Utf8);
|
|
826
826
|
*/
|
|
827
827
|
toString: function(c) {
|
|
828
|
-
return (c ||
|
|
828
|
+
return (c || a).stringify(this);
|
|
829
829
|
},
|
|
830
830
|
/**
|
|
831
831
|
* Concatenates a word array to this word array.
|
|
@@ -892,7 +892,7 @@ function tA() {
|
|
|
892
892
|
q.push(t());
|
|
893
893
|
return new x.init(q, c);
|
|
894
894
|
}
|
|
895
|
-
}), X = d.enc = {},
|
|
895
|
+
}), X = d.enc = {}, a = X.Hex = {
|
|
896
896
|
/**
|
|
897
897
|
* Converts a word array to a hex string.
|
|
898
898
|
*
|
|
@@ -931,7 +931,7 @@ function tA() {
|
|
|
931
931
|
p[m >>> 3] |= parseInt(c.substr(m, 2), 16) << 24 - m % 8 * 4;
|
|
932
932
|
return new x.init(p, q / 2);
|
|
933
933
|
}
|
|
934
|
-
},
|
|
934
|
+
}, i = X.Latin1 = {
|
|
935
935
|
/**
|
|
936
936
|
* Converts a word array to a Latin1 string.
|
|
937
937
|
*
|
|
@@ -986,7 +986,7 @@ function tA() {
|
|
|
986
986
|
*/
|
|
987
987
|
stringify: function(c) {
|
|
988
988
|
try {
|
|
989
|
-
return decodeURIComponent(escape(
|
|
989
|
+
return decodeURIComponent(escape(i.stringify(c)));
|
|
990
990
|
} catch {
|
|
991
991
|
throw new Error("Malformed UTF-8 data");
|
|
992
992
|
}
|
|
@@ -1005,7 +1005,7 @@ function tA() {
|
|
|
1005
1005
|
* var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
|
|
1006
1006
|
*/
|
|
1007
1007
|
parse: function(c) {
|
|
1008
|
-
return
|
|
1008
|
+
return i.parse(unescape(encodeURIComponent(c)));
|
|
1009
1009
|
}
|
|
1010
1010
|
}, b = n.BufferedBlockAlgorithm = u.extend({
|
|
1011
1011
|
/**
|
|
@@ -1383,8 +1383,8 @@ function Df() {
|
|
|
1383
1383
|
*/
|
|
1384
1384
|
toX32: function() {
|
|
1385
1385
|
for (var n = this.words, u = n.length, x = [], X = 0; X < u; X++) {
|
|
1386
|
-
var
|
|
1387
|
-
x.push(
|
|
1386
|
+
var a = n[X];
|
|
1387
|
+
x.push(a.high), x.push(a.low);
|
|
1388
1388
|
}
|
|
1389
1389
|
return z.create(x, this.sigBytes);
|
|
1390
1390
|
},
|
|
@@ -1453,8 +1453,8 @@ function zP() {
|
|
|
1453
1453
|
*/
|
|
1454
1454
|
stringify: function(d) {
|
|
1455
1455
|
for (var n = d.words, u = d.sigBytes, x = [], X = 0; X < u; X += 2) {
|
|
1456
|
-
var
|
|
1457
|
-
x.push(String.fromCharCode(
|
|
1456
|
+
var a = n[X >>> 2] >>> 16 - X % 4 * 8 & 65535;
|
|
1457
|
+
x.push(String.fromCharCode(a));
|
|
1458
1458
|
}
|
|
1459
1459
|
return x.join("");
|
|
1460
1460
|
},
|
|
@@ -1492,8 +1492,8 @@ function zP() {
|
|
|
1492
1492
|
*/
|
|
1493
1493
|
stringify: function(d) {
|
|
1494
1494
|
for (var n = d.words, u = d.sigBytes, x = [], X = 0; X < u; X += 2) {
|
|
1495
|
-
var
|
|
1496
|
-
x.push(String.fromCharCode(
|
|
1495
|
+
var a = z(n[X >>> 2] >>> 16 - X % 4 * 8 & 65535);
|
|
1496
|
+
x.push(String.fromCharCode(a));
|
|
1497
1497
|
}
|
|
1498
1498
|
return x.join("");
|
|
1499
1499
|
},
|
|
@@ -1548,8 +1548,8 @@ function H9() {
|
|
|
1548
1548
|
stringify: function(d) {
|
|
1549
1549
|
var n = d.words, u = d.sigBytes, x = this._map;
|
|
1550
1550
|
d.clamp();
|
|
1551
|
-
for (var X = [],
|
|
1552
|
-
for (var
|
|
1551
|
+
for (var X = [], a = 0; a < u; a += 3)
|
|
1552
|
+
for (var i = n[a >>> 2] >>> 24 - a % 4 * 8 & 255, s = n[a + 1 >>> 2] >>> 24 - (a + 1) % 4 * 8 & 255, b = n[a + 2 >>> 2] >>> 24 - (a + 2) % 4 * 8 & 255, H = i << 16 | s << 8 | b, c = 0; c < 4 && a + c * 0.75 < u; c++)
|
|
1553
1553
|
X.push(x.charAt(H >>> 6 * (3 - c) & 63));
|
|
1554
1554
|
var q = x.charAt(64);
|
|
1555
1555
|
if (q)
|
|
@@ -1577,19 +1577,19 @@ function H9() {
|
|
|
1577
1577
|
for (var X = 0; X < u.length; X++)
|
|
1578
1578
|
x[u.charCodeAt(X)] = X;
|
|
1579
1579
|
}
|
|
1580
|
-
var
|
|
1581
|
-
if (
|
|
1582
|
-
var
|
|
1583
|
-
|
|
1580
|
+
var a = u.charAt(64);
|
|
1581
|
+
if (a) {
|
|
1582
|
+
var i = d.indexOf(a);
|
|
1583
|
+
i !== -1 && (n = i);
|
|
1584
1584
|
}
|
|
1585
1585
|
return z(d, n, x);
|
|
1586
1586
|
},
|
|
1587
1587
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
1588
1588
|
};
|
|
1589
1589
|
function z(d, n, u) {
|
|
1590
|
-
for (var x = [], X = 0,
|
|
1591
|
-
if (
|
|
1592
|
-
var
|
|
1590
|
+
for (var x = [], X = 0, a = 0; a < n; a++)
|
|
1591
|
+
if (a % 4) {
|
|
1592
|
+
var i = u[d.charCodeAt(a - 1)] << a % 4 * 2, s = u[d.charCodeAt(a)] >>> 6 - a % 4 * 2, b = i | s;
|
|
1593
1593
|
x[X >>> 2] |= b << 24 - X % 4 * 8, X++;
|
|
1594
1594
|
}
|
|
1595
1595
|
return P.create(x, X);
|
|
@@ -1626,14 +1626,14 @@ function dP() {
|
|
|
1626
1626
|
n === void 0 && (n = !0);
|
|
1627
1627
|
var u = d.words, x = d.sigBytes, X = n ? this._safe_map : this._map;
|
|
1628
1628
|
d.clamp();
|
|
1629
|
-
for (var
|
|
1630
|
-
for (var s = u[
|
|
1631
|
-
|
|
1629
|
+
for (var a = [], i = 0; i < x; i += 3)
|
|
1630
|
+
for (var s = u[i >>> 2] >>> 24 - i % 4 * 8 & 255, b = u[i + 1 >>> 2] >>> 24 - (i + 1) % 4 * 8 & 255, H = u[i + 2 >>> 2] >>> 24 - (i + 2) % 4 * 8 & 255, c = s << 16 | b << 8 | H, q = 0; q < 4 && i + q * 0.75 < x; q++)
|
|
1631
|
+
a.push(X.charAt(c >>> 6 * (3 - q) & 63));
|
|
1632
1632
|
var p = X.charAt(64);
|
|
1633
1633
|
if (p)
|
|
1634
|
-
for (;
|
|
1635
|
-
|
|
1636
|
-
return
|
|
1634
|
+
for (; a.length % 4; )
|
|
1635
|
+
a.push(p);
|
|
1636
|
+
return a.join("");
|
|
1637
1637
|
},
|
|
1638
1638
|
/**
|
|
1639
1639
|
* Converts a Base64url string to a word array.
|
|
@@ -1655,12 +1655,12 @@ function dP() {
|
|
|
1655
1655
|
var u = d.length, x = n ? this._safe_map : this._map, X = this._reverseMap;
|
|
1656
1656
|
if (!X) {
|
|
1657
1657
|
X = this._reverseMap = [];
|
|
1658
|
-
for (var
|
|
1659
|
-
X[x.charCodeAt(
|
|
1658
|
+
for (var a = 0; a < x.length; a++)
|
|
1659
|
+
X[x.charCodeAt(a)] = a;
|
|
1660
1660
|
}
|
|
1661
|
-
var
|
|
1662
|
-
if (
|
|
1663
|
-
var s = d.indexOf(
|
|
1661
|
+
var i = x.charAt(64);
|
|
1662
|
+
if (i) {
|
|
1663
|
+
var s = d.indexOf(i);
|
|
1664
1664
|
s !== -1 && (u = s);
|
|
1665
1665
|
}
|
|
1666
1666
|
return z(d, u, X);
|
|
@@ -1669,9 +1669,9 @@ function dP() {
|
|
|
1669
1669
|
_safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
|
|
1670
1670
|
};
|
|
1671
1671
|
function z(d, n, u) {
|
|
1672
|
-
for (var x = [], X = 0,
|
|
1673
|
-
if (
|
|
1674
|
-
var
|
|
1672
|
+
for (var x = [], X = 0, a = 0; a < n; a++)
|
|
1673
|
+
if (a % 4) {
|
|
1674
|
+
var i = u[d.charCodeAt(a - 1)] << a % 4 * 2, s = u[d.charCodeAt(a)] >>> 6 - a % 4 * 2, b = i | s;
|
|
1675
1675
|
x[X >>> 2] |= b << 24 - X % 4 * 8, X++;
|
|
1676
1676
|
}
|
|
1677
1677
|
return P.create(x, X);
|
|
@@ -1706,8 +1706,8 @@ function p9() {
|
|
|
1706
1706
|
var c = b + H, q = s[c];
|
|
1707
1707
|
s[c] = (q << 8 | q >>> 24) & 16711935 | (q << 24 | q >>> 8) & 4278255360;
|
|
1708
1708
|
}
|
|
1709
|
-
var p = this._hash.words, m = s[b + 0], V = s[b + 1], R = s[b + 2], l = s[b + 3], j = s[b + 4], O = s[b + 5], N = s[b + 6], Z = s[b + 7], T = s[b + 8],
|
|
1710
|
-
L = x(L, W, E, w, m, 7, n[0]), w = x(w, L, W, E, V, 12, n[1]), E = x(E, w, L, W, R, 17, n[2]), W = x(W, E, w, L, l, 22, n[3]), L = x(L, W, E, w, j, 7, n[4]), w = x(w, L, W, E, O, 12, n[5]), E = x(E, w, L, W, N, 17, n[6]), W = x(W, E, w, L, Z, 22, n[7]), L = x(L, W, E, w, T, 7, n[8]), w = x(w, L, W, E,
|
|
1709
|
+
var p = this._hash.words, m = s[b + 0], V = s[b + 1], R = s[b + 2], l = s[b + 3], j = s[b + 4], O = s[b + 5], N = s[b + 6], Z = s[b + 7], T = s[b + 8], M = s[b + 9], J = s[b + 10], _ = s[b + 11], G = s[b + 12], Y = s[b + 13], h = s[b + 14], C = s[b + 15], L = p[0], W = p[1], E = p[2], w = p[3];
|
|
1710
|
+
L = x(L, W, E, w, m, 7, n[0]), w = x(w, L, W, E, V, 12, n[1]), E = x(E, w, L, W, R, 17, n[2]), W = x(W, E, w, L, l, 22, n[3]), L = x(L, W, E, w, j, 7, n[4]), w = x(w, L, W, E, O, 12, n[5]), E = x(E, w, L, W, N, 17, n[6]), W = x(W, E, w, L, Z, 22, n[7]), L = x(L, W, E, w, T, 7, n[8]), w = x(w, L, W, E, M, 12, n[9]), E = x(E, w, L, W, J, 17, n[10]), W = x(W, E, w, L, _, 22, n[11]), L = x(L, W, E, w, G, 7, n[12]), w = x(w, L, W, E, Y, 12, n[13]), E = x(E, w, L, W, h, 17, n[14]), W = x(W, E, w, L, C, 22, n[15]), L = X(L, W, E, w, V, 5, n[16]), w = X(w, L, W, E, N, 9, n[17]), E = X(E, w, L, W, _, 14, n[18]), W = X(W, E, w, L, m, 20, n[19]), L = X(L, W, E, w, O, 5, n[20]), w = X(w, L, W, E, J, 9, n[21]), E = X(E, w, L, W, C, 14, n[22]), W = X(W, E, w, L, j, 20, n[23]), L = X(L, W, E, w, M, 5, n[24]), w = X(w, L, W, E, h, 9, n[25]), E = X(E, w, L, W, l, 14, n[26]), W = X(W, E, w, L, T, 20, n[27]), L = X(L, W, E, w, Y, 5, n[28]), w = X(w, L, W, E, R, 9, n[29]), E = X(E, w, L, W, Z, 14, n[30]), W = X(W, E, w, L, G, 20, n[31]), L = a(L, W, E, w, O, 4, n[32]), w = a(w, L, W, E, T, 11, n[33]), E = a(E, w, L, W, _, 16, n[34]), W = a(W, E, w, L, h, 23, n[35]), L = a(L, W, E, w, V, 4, n[36]), w = a(w, L, W, E, j, 11, n[37]), E = a(E, w, L, W, Z, 16, n[38]), W = a(W, E, w, L, J, 23, n[39]), L = a(L, W, E, w, Y, 4, n[40]), w = a(w, L, W, E, m, 11, n[41]), E = a(E, w, L, W, l, 16, n[42]), W = a(W, E, w, L, N, 23, n[43]), L = a(L, W, E, w, M, 4, n[44]), w = a(w, L, W, E, G, 11, n[45]), E = a(E, w, L, W, C, 16, n[46]), W = a(W, E, w, L, R, 23, n[47]), L = i(L, W, E, w, m, 6, n[48]), w = i(w, L, W, E, Z, 10, n[49]), E = i(E, w, L, W, h, 15, n[50]), W = i(W, E, w, L, O, 21, n[51]), L = i(L, W, E, w, G, 6, n[52]), w = i(w, L, W, E, l, 10, n[53]), E = i(E, w, L, W, J, 15, n[54]), W = i(W, E, w, L, V, 21, n[55]), L = i(L, W, E, w, T, 6, n[56]), w = i(w, L, W, E, C, 10, n[57]), E = i(E, w, L, W, N, 15, n[58]), W = i(W, E, w, L, Y, 21, n[59]), L = i(L, W, E, w, j, 6, n[60]), w = i(w, L, W, E, _, 10, n[61]), E = i(E, w, L, W, R, 15, n[62]), W = i(W, E, w, L, M, 21, n[63]), p[0] = p[0] + L | 0, p[1] = p[1] + W | 0, p[2] = p[2] + E | 0, p[3] = p[3] + w | 0;
|
|
1711
1711
|
},
|
|
1712
1712
|
_doFinalize: function() {
|
|
1713
1713
|
var s = this._data, b = s.words, H = this._nDataBytes * 8, c = s.sigBytes * 8;
|
|
@@ -1733,11 +1733,11 @@ function p9() {
|
|
|
1733
1733
|
var V = s + (b & c | H & ~c) + q + m;
|
|
1734
1734
|
return (V << p | V >>> 32 - p) + b;
|
|
1735
1735
|
}
|
|
1736
|
-
function
|
|
1736
|
+
function a(s, b, H, c, q, p, m) {
|
|
1737
1737
|
var V = s + (b ^ H ^ c) + q + m;
|
|
1738
1738
|
return (V << p | V >>> 32 - p) + b;
|
|
1739
1739
|
}
|
|
1740
|
-
function
|
|
1740
|
+
function i(s, b, H, c, q, p, m) {
|
|
1741
1741
|
var V = s + (H ^ (b | ~c)) + q + m;
|
|
1742
1742
|
return (V << p | V >>> 32 - p) + b;
|
|
1743
1743
|
}
|
|
@@ -1764,21 +1764,21 @@ function zv() {
|
|
|
1764
1764
|
]);
|
|
1765
1765
|
},
|
|
1766
1766
|
_doProcessBlock: function(u, x) {
|
|
1767
|
-
for (var X = this._hash.words,
|
|
1767
|
+
for (var X = this._hash.words, a = X[0], i = X[1], s = X[2], b = X[3], H = X[4], c = 0; c < 80; c++) {
|
|
1768
1768
|
if (c < 16)
|
|
1769
1769
|
d[c] = u[x + c] | 0;
|
|
1770
1770
|
else {
|
|
1771
1771
|
var q = d[c - 3] ^ d[c - 8] ^ d[c - 14] ^ d[c - 16];
|
|
1772
1772
|
d[c] = q << 1 | q >>> 31;
|
|
1773
1773
|
}
|
|
1774
|
-
var p = (
|
|
1775
|
-
c < 20 ? p += (
|
|
1774
|
+
var p = (a << 5 | a >>> 27) + H + d[c];
|
|
1775
|
+
c < 20 ? p += (i & s | ~i & b) + 1518500249 : c < 40 ? p += (i ^ s ^ b) + 1859775393 : c < 60 ? p += (i & s | i & b | s & b) - 1894007588 : p += (i ^ s ^ b) - 899497514, H = b, b = s, s = i << 30 | i >>> 2, i = a, a = p;
|
|
1776
1776
|
}
|
|
1777
|
-
X[0] = X[0] +
|
|
1777
|
+
X[0] = X[0] + a | 0, X[1] = X[1] + i | 0, X[2] = X[2] + s | 0, X[3] = X[3] + b | 0, X[4] = X[4] + H | 0;
|
|
1778
1778
|
},
|
|
1779
1779
|
_doFinalize: function() {
|
|
1780
|
-
var u = this._data, x = u.words, X = this._nDataBytes * 8,
|
|
1781
|
-
return x[
|
|
1780
|
+
var u = this._data, x = u.words, X = this._nDataBytes * 8, a = u.sigBytes * 8;
|
|
1781
|
+
return x[a >>> 5] |= 128 << 24 - a % 32, x[(a + 64 >>> 9 << 4) + 14] = Math.floor(X / 4294967296), x[(a + 64 >>> 9 << 4) + 15] = X, u.sigBytes = x.length * 4, this._process(), this._hash;
|
|
1782
1782
|
},
|
|
1783
1783
|
clone: function() {
|
|
1784
1784
|
var u = t.clone.call(this);
|
|
@@ -1799,42 +1799,42 @@ function Be() {
|
|
|
1799
1799
|
return function(v) {
|
|
1800
1800
|
var r = f, P = r.lib, t = P.WordArray, z = P.Hasher, d = r.algo, n = [], u = [];
|
|
1801
1801
|
(function() {
|
|
1802
|
-
function
|
|
1802
|
+
function a(H) {
|
|
1803
1803
|
for (var c = v.sqrt(H), q = 2; q <= c; q++)
|
|
1804
1804
|
if (!(H % q))
|
|
1805
1805
|
return !1;
|
|
1806
1806
|
return !0;
|
|
1807
1807
|
}
|
|
1808
|
-
function
|
|
1808
|
+
function i(H) {
|
|
1809
1809
|
return (H - (H | 0)) * 4294967296 | 0;
|
|
1810
1810
|
}
|
|
1811
1811
|
for (var s = 2, b = 0; b < 64; )
|
|
1812
|
-
|
|
1812
|
+
a(s) && (b < 8 && (n[b] = i(v.pow(s, 1 / 2))), u[b] = i(v.pow(s, 1 / 3)), b++), s++;
|
|
1813
1813
|
})();
|
|
1814
1814
|
var x = [], X = d.SHA256 = z.extend({
|
|
1815
1815
|
_doReset: function() {
|
|
1816
1816
|
this._hash = new t.init(n.slice(0));
|
|
1817
1817
|
},
|
|
1818
|
-
_doProcessBlock: function(
|
|
1818
|
+
_doProcessBlock: function(a, i) {
|
|
1819
1819
|
for (var s = this._hash.words, b = s[0], H = s[1], c = s[2], q = s[3], p = s[4], m = s[5], V = s[6], R = s[7], l = 0; l < 64; l++) {
|
|
1820
1820
|
if (l < 16)
|
|
1821
|
-
x[l] = i
|
|
1821
|
+
x[l] = a[i + l] | 0;
|
|
1822
1822
|
else {
|
|
1823
1823
|
var j = x[l - 15], O = (j << 25 | j >>> 7) ^ (j << 14 | j >>> 18) ^ j >>> 3, N = x[l - 2], Z = (N << 15 | N >>> 17) ^ (N << 13 | N >>> 19) ^ N >>> 10;
|
|
1824
1824
|
x[l] = O + x[l - 7] + Z + x[l - 16];
|
|
1825
1825
|
}
|
|
1826
|
-
var T = p & m ^ ~p & V,
|
|
1826
|
+
var T = p & m ^ ~p & V, M = b & H ^ b & c ^ H & c, J = (b << 30 | b >>> 2) ^ (b << 19 | b >>> 13) ^ (b << 10 | b >>> 22), _ = (p << 26 | p >>> 6) ^ (p << 21 | p >>> 11) ^ (p << 7 | p >>> 25), G = R + _ + T + u[l] + x[l], Y = J + M;
|
|
1827
1827
|
R = V, V = m, m = p, p = q + G | 0, q = c, c = H, H = b, b = G + Y | 0;
|
|
1828
1828
|
}
|
|
1829
1829
|
s[0] = s[0] + b | 0, s[1] = s[1] + H | 0, s[2] = s[2] + c | 0, s[3] = s[3] + q | 0, s[4] = s[4] + p | 0, s[5] = s[5] + m | 0, s[6] = s[6] + V | 0, s[7] = s[7] + R | 0;
|
|
1830
1830
|
},
|
|
1831
1831
|
_doFinalize: function() {
|
|
1832
|
-
var
|
|
1833
|
-
return
|
|
1832
|
+
var a = this._data, i = a.words, s = this._nDataBytes * 8, b = a.sigBytes * 8;
|
|
1833
|
+
return i[b >>> 5] |= 128 << 24 - b % 32, i[(b + 64 >>> 9 << 4) + 14] = v.floor(s / 4294967296), i[(b + 64 >>> 9 << 4) + 15] = s, a.sigBytes = i.length * 4, this._process(), this._hash;
|
|
1834
1834
|
},
|
|
1835
1835
|
clone: function() {
|
|
1836
|
-
var
|
|
1837
|
-
return
|
|
1836
|
+
var a = z.clone.call(this);
|
|
1837
|
+
return a._hash = this._hash.clone(), a;
|
|
1838
1838
|
}
|
|
1839
1839
|
});
|
|
1840
1840
|
r.SHA256 = z._createHelper(X), r.HmacSHA256 = z._createHmacHelper(X);
|
|
@@ -1966,10 +1966,10 @@ function dv() {
|
|
|
1966
1966
|
u(1816402316, 1246189591)
|
|
1967
1967
|
], X = [];
|
|
1968
1968
|
(function() {
|
|
1969
|
-
for (var
|
|
1970
|
-
X[
|
|
1969
|
+
for (var i = 0; i < 80; i++)
|
|
1970
|
+
X[i] = u();
|
|
1971
1971
|
})();
|
|
1972
|
-
var
|
|
1972
|
+
var a = n.SHA512 = P.extend({
|
|
1973
1973
|
_doReset: function() {
|
|
1974
1974
|
this._hash = new d.init([
|
|
1975
1975
|
new z.init(1779033703, 4089235720),
|
|
@@ -1982,33 +1982,33 @@ function dv() {
|
|
|
1982
1982
|
new z.init(1541459225, 327033209)
|
|
1983
1983
|
]);
|
|
1984
1984
|
},
|
|
1985
|
-
_doProcessBlock: function(
|
|
1986
|
-
for (var b = this._hash.words, H = b[0], c = b[1], q = b[2], p = b[3], m = b[4], V = b[5], R = b[6], l = b[7], j = H.high, O = H.low, N = c.high, Z = c.low, T = q.high,
|
|
1985
|
+
_doProcessBlock: function(i, s) {
|
|
1986
|
+
for (var b = this._hash.words, H = b[0], c = b[1], q = b[2], p = b[3], m = b[4], V = b[5], R = b[6], l = b[7], j = H.high, O = H.low, N = c.high, Z = c.low, T = q.high, M = q.low, J = p.high, _ = p.low, G = m.high, Y = m.low, h = V.high, C = V.low, L = R.high, W = R.low, E = l.high, w = l.low, zA = j, dA = O, DA = N, K = Z, $ = T, eA = M, d9 = J, F = _, I = G, B = Y, LA = h, CA = C, vf = L, I9 = W, Lf = E, M9 = w, JA = 0; JA < 80; JA++) {
|
|
1987
1987
|
var GA, v9, nf = X[JA];
|
|
1988
1988
|
if (JA < 16)
|
|
1989
|
-
v9 = nf.high =
|
|
1989
|
+
v9 = nf.high = i[s + JA * 2] | 0, GA = nf.low = i[s + JA * 2 + 1] | 0;
|
|
1990
1990
|
else {
|
|
1991
1991
|
var A7 = X[JA - 15], l9 = A7.high, g9 = A7.low, _v = (l9 >>> 1 | g9 << 31) ^ (l9 >>> 8 | g9 << 24) ^ l9 >>> 7, f7 = (g9 >>> 1 | l9 << 31) ^ (g9 >>> 8 | l9 << 24) ^ (g9 >>> 7 | l9 << 25), e7 = X[JA - 2], D9 = e7.high, B9 = e7.low, $v = (D9 >>> 19 | B9 << 13) ^ (D9 << 3 | B9 >>> 29) ^ D9 >>> 6, v7 = (B9 >>> 19 | D9 << 13) ^ (B9 << 3 | D9 >>> 29) ^ (B9 >>> 6 | D9 << 26), n7 = X[JA - 7], An = n7.high, fn = n7.low, r7 = X[JA - 16], en = r7.high, P7 = r7.low;
|
|
1992
1992
|
GA = f7 + fn, v9 = _v + An + (GA >>> 0 < f7 >>> 0 ? 1 : 0), GA = GA + v7, v9 = v9 + $v + (GA >>> 0 < v7 >>> 0 ? 1 : 0), GA = GA + P7, v9 = v9 + en + (GA >>> 0 < P7 >>> 0 ? 1 : 0), nf.high = v9, nf.low = GA;
|
|
1993
1993
|
}
|
|
1994
|
-
var vn = I & LA ^ ~I & vf, t7 =
|
|
1995
|
-
Lf = vf, M9 = I9, vf = LA, I9 = CA, LA = I, CA =
|
|
1994
|
+
var vn = I & LA ^ ~I & vf, t7 = B & CA ^ ~B & I9, nn = zA & DA ^ zA & $ ^ DA & $, rn = dA & K ^ dA & eA ^ K & eA, Pn = (zA >>> 28 | dA << 4) ^ (zA << 30 | dA >>> 2) ^ (zA << 25 | dA >>> 7), u7 = (dA >>> 28 | zA << 4) ^ (dA << 30 | zA >>> 2) ^ (dA << 25 | zA >>> 7), tn = (I >>> 14 | B << 18) ^ (I >>> 18 | B << 14) ^ (I << 23 | B >>> 9), un = (B >>> 14 | I << 18) ^ (B >>> 18 | I << 14) ^ (B << 23 | I >>> 9), z7 = x[JA], zn = z7.high, d7 = z7.low, BA = M9 + un, n9 = Lf + tn + (BA >>> 0 < M9 >>> 0 ? 1 : 0), BA = BA + t7, n9 = n9 + vn + (BA >>> 0 < t7 >>> 0 ? 1 : 0), BA = BA + d7, n9 = n9 + zn + (BA >>> 0 < d7 >>> 0 ? 1 : 0), BA = BA + GA, n9 = n9 + v9 + (BA >>> 0 < GA >>> 0 ? 1 : 0), X7 = u7 + rn, dn = Pn + nn + (X7 >>> 0 < u7 >>> 0 ? 1 : 0);
|
|
1995
|
+
Lf = vf, M9 = I9, vf = LA, I9 = CA, LA = I, CA = B, B = F + BA | 0, I = d9 + n9 + (B >>> 0 < F >>> 0 ? 1 : 0) | 0, d9 = $, F = eA, $ = DA, eA = K, DA = zA, K = dA, dA = BA + X7 | 0, zA = n9 + dn + (dA >>> 0 < BA >>> 0 ? 1 : 0) | 0;
|
|
1996
1996
|
}
|
|
1997
|
-
O = H.low = O + dA, H.high = j + zA + (O >>> 0 < dA >>> 0 ? 1 : 0), Z = c.low = Z + K, c.high = N +
|
|
1997
|
+
O = H.low = O + dA, H.high = j + zA + (O >>> 0 < dA >>> 0 ? 1 : 0), Z = c.low = Z + K, c.high = N + DA + (Z >>> 0 < K >>> 0 ? 1 : 0), M = q.low = M + eA, q.high = T + $ + (M >>> 0 < eA >>> 0 ? 1 : 0), _ = p.low = _ + F, p.high = J + d9 + (_ >>> 0 < F >>> 0 ? 1 : 0), Y = m.low = Y + B, m.high = G + I + (Y >>> 0 < B >>> 0 ? 1 : 0), C = V.low = C + CA, V.high = h + LA + (C >>> 0 < CA >>> 0 ? 1 : 0), W = R.low = W + I9, R.high = L + vf + (W >>> 0 < I9 >>> 0 ? 1 : 0), w = l.low = w + M9, l.high = E + Lf + (w >>> 0 < M9 >>> 0 ? 1 : 0);
|
|
1998
1998
|
},
|
|
1999
1999
|
_doFinalize: function() {
|
|
2000
|
-
var
|
|
2001
|
-
s[H >>> 5] |= 128 << 24 - H % 32, s[(H + 128 >>> 10 << 5) + 30] = Math.floor(b / 4294967296), s[(H + 128 >>> 10 << 5) + 31] = b,
|
|
2000
|
+
var i = this._data, s = i.words, b = this._nDataBytes * 8, H = i.sigBytes * 8;
|
|
2001
|
+
s[H >>> 5] |= 128 << 24 - H % 32, s[(H + 128 >>> 10 << 5) + 30] = Math.floor(b / 4294967296), s[(H + 128 >>> 10 << 5) + 31] = b, i.sigBytes = s.length * 4, this._process();
|
|
2002
2002
|
var c = this._hash.toX32();
|
|
2003
2003
|
return c;
|
|
2004
2004
|
},
|
|
2005
2005
|
clone: function() {
|
|
2006
|
-
var
|
|
2007
|
-
return
|
|
2006
|
+
var i = P.clone.call(this);
|
|
2007
|
+
return i._hash = this._hash.clone(), i;
|
|
2008
2008
|
},
|
|
2009
2009
|
blockSize: 1024 / 32
|
|
2010
2010
|
});
|
|
2011
|
-
v.SHA512 = P._createHelper(
|
|
2011
|
+
v.SHA512 = P._createHelper(a), v.HmacSHA512 = P._createHmacHelper(a);
|
|
2012
2012
|
}(), f.SHA512;
|
|
2013
2013
|
});
|
|
2014
2014
|
}(Gf)), Gf.exports;
|
|
@@ -2050,7 +2050,7 @@ function cP() {
|
|
|
2050
2050
|
e.exports = v(tA(), Df());
|
|
2051
2051
|
})(PA, function(f) {
|
|
2052
2052
|
return function(v) {
|
|
2053
|
-
var r = f, P = r.lib, t = P.WordArray, z = P.Hasher, d = r.x64, n = d.Word, u = r.algo, x = [], X = [],
|
|
2053
|
+
var r = f, P = r.lib, t = P.WordArray, z = P.Hasher, d = r.x64, n = d.Word, u = r.algo, x = [], X = [], a = [];
|
|
2054
2054
|
(function() {
|
|
2055
2055
|
for (var b = 1, H = 0, c = 0; c < 24; c++) {
|
|
2056
2056
|
x[b + 5 * H] = (c + 1) * (c + 2) / 2 % 64;
|
|
@@ -2068,13 +2068,13 @@ function cP() {
|
|
|
2068
2068
|
}
|
|
2069
2069
|
m & 128 ? m = m << 1 ^ 113 : m <<= 1;
|
|
2070
2070
|
}
|
|
2071
|
-
|
|
2071
|
+
a[V] = n.create(R, l);
|
|
2072
2072
|
}
|
|
2073
2073
|
})();
|
|
2074
|
-
var
|
|
2074
|
+
var i = [];
|
|
2075
2075
|
(function() {
|
|
2076
2076
|
for (var b = 0; b < 25; b++)
|
|
2077
|
-
|
|
2077
|
+
i[b] = n.create();
|
|
2078
2078
|
})();
|
|
2079
2079
|
var s = u.SHA3 = z.extend({
|
|
2080
2080
|
/**
|
|
@@ -2106,28 +2106,28 @@ function cP() {
|
|
|
2106
2106
|
var R = c[j + 5 * Z];
|
|
2107
2107
|
O ^= R.high, N ^= R.low;
|
|
2108
2108
|
}
|
|
2109
|
-
var T =
|
|
2109
|
+
var T = i[j];
|
|
2110
2110
|
T.high = O, T.low = N;
|
|
2111
2111
|
}
|
|
2112
2112
|
for (var j = 0; j < 5; j++)
|
|
2113
|
-
for (var
|
|
2113
|
+
for (var M = i[(j + 4) % 5], J = i[(j + 1) % 5], _ = J.high, G = J.low, O = M.high ^ (_ << 1 | G >>> 31), N = M.low ^ (G << 1 | _ >>> 31), Z = 0; Z < 5; Z++) {
|
|
2114
2114
|
var R = c[j + 5 * Z];
|
|
2115
2115
|
R.high ^= O, R.low ^= N;
|
|
2116
2116
|
}
|
|
2117
2117
|
for (var Y = 1; Y < 25; Y++) {
|
|
2118
|
-
var O, N, R = c[Y],
|
|
2119
|
-
L < 32 ? (O =
|
|
2120
|
-
var W =
|
|
2118
|
+
var O, N, R = c[Y], h = R.high, C = R.low, L = x[Y];
|
|
2119
|
+
L < 32 ? (O = h << L | C >>> 32 - L, N = C << L | h >>> 32 - L) : (O = C << L - 32 | h >>> 64 - L, N = h << L - 32 | C >>> 64 - L);
|
|
2120
|
+
var W = i[X[Y]];
|
|
2121
2121
|
W.high = O, W.low = N;
|
|
2122
2122
|
}
|
|
2123
|
-
var E =
|
|
2123
|
+
var E = i[0], w = c[0];
|
|
2124
2124
|
E.high = w.high, E.low = w.low;
|
|
2125
2125
|
for (var j = 0; j < 5; j++)
|
|
2126
2126
|
for (var Z = 0; Z < 5; Z++) {
|
|
2127
|
-
var Y = j + 5 * Z, R = c[Y], zA =
|
|
2128
|
-
R.high = zA.high ^ ~dA.high &
|
|
2127
|
+
var Y = j + 5 * Z, R = c[Y], zA = i[Y], dA = i[(j + 1) % 5 + 5 * Z], DA = i[(j + 2) % 5 + 5 * Z];
|
|
2128
|
+
R.high = zA.high ^ ~dA.high & DA.high, R.low = zA.low ^ ~dA.low & DA.low;
|
|
2129
2129
|
}
|
|
2130
|
-
var R = c[0], K =
|
|
2130
|
+
var R = c[0], K = a[l];
|
|
2131
2131
|
R.high ^= K.high, R.low ^= K.low;
|
|
2132
2132
|
}
|
|
2133
2133
|
},
|
|
@@ -2494,7 +2494,7 @@ function aP() {
|
|
|
2494
2494
|
13,
|
|
2495
2495
|
11,
|
|
2496
2496
|
11
|
|
2497
|
-
]),
|
|
2497
|
+
]), a = t.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), i = t.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), s = d.RIPEMD160 = z.extend({
|
|
2498
2498
|
_doReset: function() {
|
|
2499
2499
|
this._hash = t.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2500
2500
|
},
|
|
@@ -2503,11 +2503,11 @@ function aP() {
|
|
|
2503
2503
|
var j = R + l, O = V[j];
|
|
2504
2504
|
V[j] = (O << 8 | O >>> 24) & 16711935 | (O << 24 | O >>> 8) & 4278255360;
|
|
2505
2505
|
}
|
|
2506
|
-
var N = this._hash.words, Z =
|
|
2507
|
-
E = Y = N[0], w =
|
|
2506
|
+
var N = this._hash.words, Z = a.words, T = i.words, M = n.words, J = u.words, _ = x.words, G = X.words, Y, h, C, L, W, E, w, zA, dA, DA;
|
|
2507
|
+
E = Y = N[0], w = h = N[1], zA = C = N[2], dA = L = N[3], DA = W = N[4];
|
|
2508
2508
|
for (var K, l = 0; l < 80; l += 1)
|
|
2509
|
-
K = Y + V[R +
|
|
2510
|
-
K = N[1] + C + dA | 0, N[1] = N[2] + L +
|
|
2509
|
+
K = Y + V[R + M[l]] | 0, l < 16 ? K += b(h, C, L) + Z[0] : l < 32 ? K += H(h, C, L) + Z[1] : l < 48 ? K += c(h, C, L) + Z[2] : l < 64 ? K += q(h, C, L) + Z[3] : K += p(h, C, L) + Z[4], K = K | 0, K = m(K, _[l]), K = K + W | 0, Y = W, W = L, L = m(C, 10), C = h, h = K, K = E + V[R + J[l]] | 0, l < 16 ? K += p(w, zA, dA) + T[0] : l < 32 ? K += q(w, zA, dA) + T[1] : l < 48 ? K += c(w, zA, dA) + T[2] : l < 64 ? K += H(w, zA, dA) + T[3] : K += b(w, zA, dA) + T[4], K = K | 0, K = m(K, G[l]), K = K + DA | 0, E = DA, DA = dA, dA = m(zA, 10), zA = w, w = K;
|
|
2510
|
+
K = N[1] + C + dA | 0, N[1] = N[2] + L + DA | 0, N[2] = N[3] + W + E | 0, N[3] = N[4] + Y + w | 0, N[4] = N[0] + h + zA | 0, N[0] = K;
|
|
2511
2511
|
},
|
|
2512
2512
|
_doFinalize: function() {
|
|
2513
2513
|
var V = this._data, R = V.words, l = this._nDataBytes * 8, j = V.sigBytes * 8;
|
|
@@ -2569,9 +2569,9 @@ function ke() {
|
|
|
2569
2569
|
n = this._hasher = new n.init(), typeof u == "string" && (u = z.parse(u));
|
|
2570
2570
|
var x = n.blockSize, X = x * 4;
|
|
2571
2571
|
u.sigBytes > X && (u = n.finalize(u)), u.clamp();
|
|
2572
|
-
for (var
|
|
2572
|
+
for (var a = this._oKey = u.clone(), i = this._iKey = u.clone(), s = a.words, b = i.words, H = 0; H < x; H++)
|
|
2573
2573
|
s[H] ^= 1549556828, b[H] ^= 909522486;
|
|
2574
|
-
|
|
2574
|
+
a.sigBytes = i.sigBytes = X, this.reset();
|
|
2575
2575
|
},
|
|
2576
2576
|
/**
|
|
2577
2577
|
* Resets this HMAC to its initial state.
|
|
@@ -2671,11 +2671,11 @@ function iP() {
|
|
|
2671
2671
|
* var key = kdf.compute(password, salt);
|
|
2672
2672
|
*/
|
|
2673
2673
|
compute: function(x, X) {
|
|
2674
|
-
for (var
|
|
2675
|
-
var m =
|
|
2676
|
-
|
|
2674
|
+
for (var a = this.cfg, i = n.create(a.hasher, x), s = t.create(), b = t.create([1]), H = s.words, c = b.words, q = a.keySize, p = a.iterations; H.length < q; ) {
|
|
2675
|
+
var m = i.update(X).finalize(b);
|
|
2676
|
+
i.reset();
|
|
2677
2677
|
for (var V = m.words, R = V.length, l = m, j = 1; j < p; j++) {
|
|
2678
|
-
l =
|
|
2678
|
+
l = i.finalize(l), i.reset();
|
|
2679
2679
|
for (var O = l.words, N = 0; N < R; N++)
|
|
2680
2680
|
V[N] ^= O[N];
|
|
2681
2681
|
}
|
|
@@ -2684,8 +2684,8 @@ function iP() {
|
|
|
2684
2684
|
return s.sigBytes = q * 4, s;
|
|
2685
2685
|
}
|
|
2686
2686
|
});
|
|
2687
|
-
v.PBKDF2 = function(x, X,
|
|
2688
|
-
return u.create(
|
|
2687
|
+
v.PBKDF2 = function(x, X, a) {
|
|
2688
|
+
return u.create(a).compute(x, X);
|
|
2689
2689
|
};
|
|
2690
2690
|
}(), f.PBKDF2;
|
|
2691
2691
|
});
|
|
@@ -2738,10 +2738,10 @@ function z9() {
|
|
|
2738
2738
|
* var key = kdf.compute(password, salt);
|
|
2739
2739
|
*/
|
|
2740
2740
|
compute: function(u, x) {
|
|
2741
|
-
for (var X,
|
|
2742
|
-
X &&
|
|
2741
|
+
for (var X, a = this.cfg, i = a.hasher.create(), s = t.create(), b = s.words, H = a.keySize, c = a.iterations; b.length < H; ) {
|
|
2742
|
+
X && i.update(X), X = i.update(u).finalize(x), i.reset();
|
|
2743
2743
|
for (var q = 1; q < c; q++)
|
|
2744
|
-
X =
|
|
2744
|
+
X = i.finalize(X), i.reset();
|
|
2745
2745
|
s.concat(X);
|
|
2746
2746
|
}
|
|
2747
2747
|
return s.sigBytes = H * 4, s;
|
|
@@ -2755,7 +2755,7 @@ function z9() {
|
|
|
2755
2755
|
}(Kf)), Kf.exports;
|
|
2756
2756
|
}
|
|
2757
2757
|
var Cf = { exports: {} }, B7;
|
|
2758
|
-
function
|
|
2758
|
+
function NA() {
|
|
2759
2759
|
return B7 || (B7 = 1, function(e, A) {
|
|
2760
2760
|
(function(f, v, r) {
|
|
2761
2761
|
e.exports = v(tA(), z9());
|
|
@@ -2763,7 +2763,7 @@ function VA() {
|
|
|
2763
2763
|
f.lib.Cipher || function(v) {
|
|
2764
2764
|
var r = f, P = r.lib, t = P.Base, z = P.WordArray, d = P.BufferedBlockAlgorithm, n = r.enc;
|
|
2765
2765
|
n.Utf8;
|
|
2766
|
-
var u = n.Base64, x = r.algo, X = x.EvpKDF,
|
|
2766
|
+
var u = n.Base64, x = r.algo, X = x.EvpKDF, a = P.Cipher = d.extend({
|
|
2767
2767
|
/**
|
|
2768
2768
|
* Configuration options.
|
|
2769
2769
|
*
|
|
@@ -2885,24 +2885,24 @@ function VA() {
|
|
|
2885
2885
|
}
|
|
2886
2886
|
return function(N) {
|
|
2887
2887
|
return {
|
|
2888
|
-
encrypt: function(Z, T,
|
|
2889
|
-
return O(T).encrypt(N, Z, T,
|
|
2888
|
+
encrypt: function(Z, T, M) {
|
|
2889
|
+
return O(T).encrypt(N, Z, T, M);
|
|
2890
2890
|
},
|
|
2891
|
-
decrypt: function(Z, T,
|
|
2892
|
-
return O(T).decrypt(N, Z, T,
|
|
2891
|
+
decrypt: function(Z, T, M) {
|
|
2892
|
+
return O(T).decrypt(N, Z, T, M);
|
|
2893
2893
|
}
|
|
2894
2894
|
};
|
|
2895
2895
|
};
|
|
2896
2896
|
}()
|
|
2897
2897
|
});
|
|
2898
|
-
P.StreamCipher =
|
|
2898
|
+
P.StreamCipher = a.extend({
|
|
2899
2899
|
_doFinalize: function() {
|
|
2900
2900
|
var O = this._process(!0);
|
|
2901
2901
|
return O;
|
|
2902
2902
|
},
|
|
2903
2903
|
blockSize: 1
|
|
2904
2904
|
});
|
|
2905
|
-
var
|
|
2905
|
+
var i = r.mode = {}, s = P.BlockCipherMode = t.extend({
|
|
2906
2906
|
/**
|
|
2907
2907
|
* Creates this mode for encryption.
|
|
2908
2908
|
*
|
|
@@ -2946,7 +2946,7 @@ function VA() {
|
|
|
2946
2946
|
init: function(O, N) {
|
|
2947
2947
|
this._cipher = O, this._iv = N;
|
|
2948
2948
|
}
|
|
2949
|
-
}), b =
|
|
2949
|
+
}), b = i.CBC = function() {
|
|
2950
2950
|
var O = s.extend();
|
|
2951
2951
|
O.Encryptor = O.extend({
|
|
2952
2952
|
/**
|
|
@@ -2960,8 +2960,8 @@ function VA() {
|
|
|
2960
2960
|
* mode.processBlock(data.words, offset);
|
|
2961
2961
|
*/
|
|
2962
2962
|
processBlock: function(Z, T) {
|
|
2963
|
-
var
|
|
2964
|
-
N.call(this, Z, T,
|
|
2963
|
+
var M = this._cipher, J = M.blockSize;
|
|
2964
|
+
N.call(this, Z, T, J), M.encryptBlock(Z, T), this._prevBlock = Z.slice(T, T + J);
|
|
2965
2965
|
}
|
|
2966
2966
|
}), O.Decryptor = O.extend({
|
|
2967
2967
|
/**
|
|
@@ -2975,15 +2975,15 @@ function VA() {
|
|
|
2975
2975
|
* mode.processBlock(data.words, offset);
|
|
2976
2976
|
*/
|
|
2977
2977
|
processBlock: function(Z, T) {
|
|
2978
|
-
var
|
|
2979
|
-
|
|
2978
|
+
var M = this._cipher, J = M.blockSize, _ = Z.slice(T, T + J);
|
|
2979
|
+
M.decryptBlock(Z, T), N.call(this, Z, T, J), this._prevBlock = _;
|
|
2980
2980
|
}
|
|
2981
2981
|
});
|
|
2982
|
-
function N(Z, T,
|
|
2983
|
-
var
|
|
2984
|
-
_ ? (
|
|
2985
|
-
for (var G = 0; G <
|
|
2986
|
-
Z[T + G] ^=
|
|
2982
|
+
function N(Z, T, M) {
|
|
2983
|
+
var J, _ = this._iv;
|
|
2984
|
+
_ ? (J = _, this._iv = v) : J = this._prevBlock;
|
|
2985
|
+
for (var G = 0; G < M; G++)
|
|
2986
|
+
Z[T + G] ^= J[G];
|
|
2987
2987
|
}
|
|
2988
2988
|
return O;
|
|
2989
2989
|
}(), H = r.pad = {}, c = H.Pkcs7 = {
|
|
@@ -3000,9 +3000,9 @@ function VA() {
|
|
|
3000
3000
|
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
3001
3001
|
*/
|
|
3002
3002
|
pad: function(O, N) {
|
|
3003
|
-
for (var Z = N * 4, T = Z - O.sigBytes % Z,
|
|
3004
|
-
|
|
3005
|
-
var G = z.create(
|
|
3003
|
+
for (var Z = N * 4, T = Z - O.sigBytes % Z, M = T << 24 | T << 16 | T << 8 | T, J = [], _ = 0; _ < T; _ += 4)
|
|
3004
|
+
J.push(M);
|
|
3005
|
+
var G = z.create(J, T);
|
|
3006
3006
|
O.concat(G);
|
|
3007
3007
|
},
|
|
3008
3008
|
/**
|
|
@@ -3021,20 +3021,20 @@ function VA() {
|
|
|
3021
3021
|
O.sigBytes -= N;
|
|
3022
3022
|
}
|
|
3023
3023
|
};
|
|
3024
|
-
P.BlockCipher =
|
|
3024
|
+
P.BlockCipher = a.extend({
|
|
3025
3025
|
/**
|
|
3026
3026
|
* Configuration options.
|
|
3027
3027
|
*
|
|
3028
3028
|
* @property {Mode} mode The block mode to use. Default: CBC
|
|
3029
3029
|
* @property {Padding} padding The padding strategy to use. Default: Pkcs7
|
|
3030
3030
|
*/
|
|
3031
|
-
cfg:
|
|
3031
|
+
cfg: a.cfg.extend({
|
|
3032
3032
|
mode: b,
|
|
3033
3033
|
padding: c
|
|
3034
3034
|
}),
|
|
3035
3035
|
reset: function() {
|
|
3036
3036
|
var O;
|
|
3037
|
-
|
|
3037
|
+
a.reset.call(this);
|
|
3038
3038
|
var N = this.cfg, Z = N.iv, T = N.mode;
|
|
3039
3039
|
this._xformMode == this._ENC_XFORM_MODE ? O = T.createEncryptor : (O = T.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == O ? this._mode.init(this, Z && Z.words) : (this._mode = O.call(T, this, Z && Z.words), this._mode.__creator = O);
|
|
3040
3040
|
},
|
|
@@ -3152,9 +3152,9 @@ function VA() {
|
|
|
3152
3152
|
*/
|
|
3153
3153
|
encrypt: function(O, N, Z, T) {
|
|
3154
3154
|
T = this.cfg.extend(T);
|
|
3155
|
-
var
|
|
3155
|
+
var M = O.createEncryptor(Z, T), J = M.finalize(N), _ = M.cfg;
|
|
3156
3156
|
return q.create({
|
|
3157
|
-
ciphertext:
|
|
3157
|
+
ciphertext: J,
|
|
3158
3158
|
key: Z,
|
|
3159
3159
|
iv: _.iv,
|
|
3160
3160
|
algorithm: O,
|
|
@@ -3183,8 +3183,8 @@ function VA() {
|
|
|
3183
3183
|
*/
|
|
3184
3184
|
decrypt: function(O, N, Z, T) {
|
|
3185
3185
|
T = this.cfg.extend(T), N = this._parse(N, T.format);
|
|
3186
|
-
var
|
|
3187
|
-
return
|
|
3186
|
+
var M = O.createDecryptor(Z, T).finalize(N.ciphertext);
|
|
3187
|
+
return M;
|
|
3188
3188
|
},
|
|
3189
3189
|
/**
|
|
3190
3190
|
* Converts serialized ciphertext to CipherParams,
|
|
@@ -3222,13 +3222,13 @@ function VA() {
|
|
|
3222
3222
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
3223
3223
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
3224
3224
|
*/
|
|
3225
|
-
execute: function(O, N, Z, T,
|
|
3226
|
-
if (T || (T = z.random(64 / 8)),
|
|
3227
|
-
var
|
|
3225
|
+
execute: function(O, N, Z, T, M) {
|
|
3226
|
+
if (T || (T = z.random(64 / 8)), M)
|
|
3227
|
+
var J = X.create({ keySize: N + Z, hasher: M }).compute(O, T);
|
|
3228
3228
|
else
|
|
3229
|
-
var
|
|
3230
|
-
var _ = z.create(
|
|
3231
|
-
return
|
|
3229
|
+
var J = X.create({ keySize: N + Z }).compute(O, T);
|
|
3230
|
+
var _ = z.create(J.words.slice(N), Z * 4);
|
|
3231
|
+
return J.sigBytes = N * 4, q.create({ key: J, iv: _, salt: T });
|
|
3232
3232
|
}
|
|
3233
3233
|
}, j = P.PasswordBasedCipher = V.extend({
|
|
3234
3234
|
/**
|
|
@@ -3258,10 +3258,10 @@ function VA() {
|
|
|
3258
3258
|
*/
|
|
3259
3259
|
encrypt: function(O, N, Z, T) {
|
|
3260
3260
|
T = this.cfg.extend(T);
|
|
3261
|
-
var
|
|
3262
|
-
T.iv =
|
|
3263
|
-
var
|
|
3264
|
-
return
|
|
3261
|
+
var M = T.kdf.execute(Z, O.keySize, O.ivSize, T.salt, T.hasher);
|
|
3262
|
+
T.iv = M.iv;
|
|
3263
|
+
var J = V.encrypt.call(this, O, N, M.key, T);
|
|
3264
|
+
return J.mixIn(M), J;
|
|
3265
3265
|
},
|
|
3266
3266
|
/**
|
|
3267
3267
|
* Decrypts serialized ciphertext using a password.
|
|
@@ -3282,10 +3282,10 @@ function VA() {
|
|
|
3282
3282
|
*/
|
|
3283
3283
|
decrypt: function(O, N, Z, T) {
|
|
3284
3284
|
T = this.cfg.extend(T), N = this._parse(N, T.format);
|
|
3285
|
-
var
|
|
3286
|
-
T.iv =
|
|
3287
|
-
var
|
|
3288
|
-
return
|
|
3285
|
+
var M = T.kdf.execute(Z, O.keySize, O.ivSize, N.salt, T.hasher);
|
|
3286
|
+
T.iv = M.iv;
|
|
3287
|
+
var J = V.decrypt.call(this, O, N, M.key, T);
|
|
3288
|
+
return J;
|
|
3289
3289
|
}
|
|
3290
3290
|
});
|
|
3291
3291
|
}();
|
|
@@ -3296,7 +3296,7 @@ var _f = { exports: {} }, k7;
|
|
|
3296
3296
|
function sP() {
|
|
3297
3297
|
return k7 || (k7 = 1, function(e, A) {
|
|
3298
3298
|
(function(f, v, r) {
|
|
3299
|
-
e.exports = v(tA(),
|
|
3299
|
+
e.exports = v(tA(), NA());
|
|
3300
3300
|
})(PA, function(f) {
|
|
3301
3301
|
return f.mode.CFB = function() {
|
|
3302
3302
|
var v = f.lib.BlockCipherMode.extend();
|
|
@@ -3326,7 +3326,7 @@ var $f = { exports: {} }, Q7;
|
|
|
3326
3326
|
function qP() {
|
|
3327
3327
|
return Q7 || (Q7 = 1, function(e, A) {
|
|
3328
3328
|
(function(f, v, r) {
|
|
3329
|
-
e.exports = v(tA(),
|
|
3329
|
+
e.exports = v(tA(), NA());
|
|
3330
3330
|
})(PA, function(f) {
|
|
3331
3331
|
return f.mode.CTR = function() {
|
|
3332
3332
|
var v = f.lib.BlockCipherMode.extend(), r = v.Encryptor = v.extend({
|
|
@@ -3348,7 +3348,7 @@ var Ae = { exports: {} }, Y7;
|
|
|
3348
3348
|
function HP() {
|
|
3349
3349
|
return Y7 || (Y7 = 1, function(e, A) {
|
|
3350
3350
|
(function(f, v, r) {
|
|
3351
|
-
e.exports = v(tA(),
|
|
3351
|
+
e.exports = v(tA(), NA());
|
|
3352
3352
|
})(PA, function(f) {
|
|
3353
3353
|
/** @preserve
|
|
3354
3354
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
@@ -3372,10 +3372,10 @@ function HP() {
|
|
|
3372
3372
|
processBlock: function(z, d) {
|
|
3373
3373
|
var n = this._cipher, u = n.blockSize, x = this._iv, X = this._counter;
|
|
3374
3374
|
x && (X = this._counter = x.slice(0), this._iv = void 0), P(X);
|
|
3375
|
-
var
|
|
3376
|
-
n.encryptBlock(
|
|
3377
|
-
for (var
|
|
3378
|
-
z[d +
|
|
3375
|
+
var a = X.slice(0);
|
|
3376
|
+
n.encryptBlock(a, 0);
|
|
3377
|
+
for (var i = 0; i < u; i++)
|
|
3378
|
+
z[d + i] ^= a[i];
|
|
3379
3379
|
}
|
|
3380
3380
|
});
|
|
3381
3381
|
return v.Decryptor = t, v;
|
|
@@ -3387,7 +3387,7 @@ var fe = { exports: {} }, G7;
|
|
|
3387
3387
|
function pP() {
|
|
3388
3388
|
return G7 || (G7 = 1, function(e, A) {
|
|
3389
3389
|
(function(f, v, r) {
|
|
3390
|
-
e.exports = v(tA(),
|
|
3390
|
+
e.exports = v(tA(), NA());
|
|
3391
3391
|
})(PA, function(f) {
|
|
3392
3392
|
return f.mode.OFB = function() {
|
|
3393
3393
|
var v = f.lib.BlockCipherMode.extend(), r = v.Encryptor = v.extend({
|
|
@@ -3407,7 +3407,7 @@ var ee = { exports: {} }, U7;
|
|
|
3407
3407
|
function xP() {
|
|
3408
3408
|
return U7 || (U7 = 1, function(e, A) {
|
|
3409
3409
|
(function(f, v, r) {
|
|
3410
|
-
e.exports = v(tA(),
|
|
3410
|
+
e.exports = v(tA(), NA());
|
|
3411
3411
|
})(PA, function(f) {
|
|
3412
3412
|
return f.mode.ECB = function() {
|
|
3413
3413
|
var v = f.lib.BlockCipherMode.extend();
|
|
@@ -3428,7 +3428,7 @@ var ve = { exports: {} }, J7;
|
|
|
3428
3428
|
function OP() {
|
|
3429
3429
|
return J7 || (J7 = 1, function(e, A) {
|
|
3430
3430
|
(function(f, v, r) {
|
|
3431
|
-
e.exports = v(tA(),
|
|
3431
|
+
e.exports = v(tA(), NA());
|
|
3432
3432
|
})(PA, function(f) {
|
|
3433
3433
|
return f.pad.AnsiX923 = {
|
|
3434
3434
|
pad: function(v, r) {
|
|
@@ -3447,7 +3447,7 @@ var ne = { exports: {} }, F7;
|
|
|
3447
3447
|
function mP() {
|
|
3448
3448
|
return F7 || (F7 = 1, function(e, A) {
|
|
3449
3449
|
(function(f, v, r) {
|
|
3450
|
-
e.exports = v(tA(),
|
|
3450
|
+
e.exports = v(tA(), NA());
|
|
3451
3451
|
})(PA, function(f) {
|
|
3452
3452
|
return f.pad.Iso10126 = {
|
|
3453
3453
|
pad: function(v, r) {
|
|
@@ -3466,7 +3466,7 @@ var re = { exports: {} }, S7;
|
|
|
3466
3466
|
function lP() {
|
|
3467
3467
|
return S7 || (S7 = 1, function(e, A) {
|
|
3468
3468
|
(function(f, v, r) {
|
|
3469
|
-
e.exports = v(tA(),
|
|
3469
|
+
e.exports = v(tA(), NA());
|
|
3470
3470
|
})(PA, function(f) {
|
|
3471
3471
|
return f.pad.Iso97971 = {
|
|
3472
3472
|
pad: function(v, r) {
|
|
@@ -3483,7 +3483,7 @@ var Pe = { exports: {} }, h7;
|
|
|
3483
3483
|
function DP() {
|
|
3484
3484
|
return h7 || (h7 = 1, function(e, A) {
|
|
3485
3485
|
(function(f, v, r) {
|
|
3486
|
-
e.exports = v(tA(),
|
|
3486
|
+
e.exports = v(tA(), NA());
|
|
3487
3487
|
})(PA, function(f) {
|
|
3488
3488
|
return f.pad.ZeroPadding = {
|
|
3489
3489
|
pad: function(v, r) {
|
|
@@ -3505,7 +3505,7 @@ var te = { exports: {} }, K7;
|
|
|
3505
3505
|
function VP() {
|
|
3506
3506
|
return K7 || (K7 = 1, function(e, A) {
|
|
3507
3507
|
(function(f, v, r) {
|
|
3508
|
-
e.exports = v(tA(),
|
|
3508
|
+
e.exports = v(tA(), NA());
|
|
3509
3509
|
})(PA, function(f) {
|
|
3510
3510
|
return f.pad.NoPadding = {
|
|
3511
3511
|
pad: function() {
|
|
@@ -3520,7 +3520,7 @@ var ue = { exports: {} }, C7;
|
|
|
3520
3520
|
function NP() {
|
|
3521
3521
|
return C7 || (C7 = 1, function(e, A) {
|
|
3522
3522
|
(function(f, v, r) {
|
|
3523
|
-
e.exports = v(tA(),
|
|
3523
|
+
e.exports = v(tA(), NA());
|
|
3524
3524
|
})(PA, function(f) {
|
|
3525
3525
|
return function(v) {
|
|
3526
3526
|
var r = f, P = r.lib, t = P.CipherParams, z = r.enc, d = z.Hex, n = r.format;
|
|
@@ -3567,10 +3567,10 @@ var ze = { exports: {} }, _7;
|
|
|
3567
3567
|
function RP() {
|
|
3568
3568
|
return _7 || (_7 = 1, function(e, A) {
|
|
3569
3569
|
(function(f, v, r) {
|
|
3570
|
-
e.exports = v(tA(), H9(), p9(), z9(),
|
|
3570
|
+
e.exports = v(tA(), H9(), p9(), z9(), NA());
|
|
3571
3571
|
})(PA, function(f) {
|
|
3572
3572
|
return function() {
|
|
3573
|
-
var v = f, r = v.lib, P = r.BlockCipher, t = v.algo, z = [], d = [], n = [], u = [], x = [], X = [],
|
|
3573
|
+
var v = f, r = v.lib, P = r.BlockCipher, t = v.algo, z = [], d = [], n = [], u = [], x = [], X = [], a = [], i = [], s = [], b = [];
|
|
3574
3574
|
(function() {
|
|
3575
3575
|
for (var q = [], p = 0; p < 256; p++)
|
|
3576
3576
|
p < 128 ? q[p] = p << 1 : q[p] = p << 1 ^ 283;
|
|
@@ -3580,7 +3580,7 @@ function RP() {
|
|
|
3580
3580
|
var l = q[m], j = q[l], O = q[j], N = q[R] * 257 ^ R * 16843008;
|
|
3581
3581
|
n[m] = N << 24 | N >>> 8, u[m] = N << 16 | N >>> 16, x[m] = N << 8 | N >>> 24, X[m] = N;
|
|
3582
3582
|
var N = O * 16843009 ^ j * 65537 ^ l * 257 ^ m * 16843008;
|
|
3583
|
-
|
|
3583
|
+
a[R] = N << 24 | N >>> 8, i[R] = N << 16 | N >>> 16, s[R] = N << 8 | N >>> 24, b[R] = N, m ? (m = l ^ q[q[q[O ^ l]]], V ^= q[q[V]]) : m = V = 1;
|
|
3584
3584
|
}
|
|
3585
3585
|
})();
|
|
3586
3586
|
var H = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], c = t.AES = P.extend({
|
|
@@ -3595,7 +3595,7 @@ function RP() {
|
|
|
3595
3595
|
var q = j[O];
|
|
3596
3596
|
else
|
|
3597
3597
|
var q = j[O - 4];
|
|
3598
|
-
Z < 4 || O <= 4 ? N[Z] = q : N[Z] =
|
|
3598
|
+
Z < 4 || O <= 4 ? N[Z] = q : N[Z] = a[z[q >>> 24]] ^ i[z[q >>> 16 & 255]] ^ s[z[q >>> 8 & 255]] ^ b[z[q & 255]];
|
|
3599
3599
|
}
|
|
3600
3600
|
}
|
|
3601
3601
|
},
|
|
@@ -3604,17 +3604,17 @@ function RP() {
|
|
|
3604
3604
|
},
|
|
3605
3605
|
decryptBlock: function(q, p) {
|
|
3606
3606
|
var m = q[p + 1];
|
|
3607
|
-
q[p + 1] = q[p + 3], q[p + 3] = m, this._doCryptBlock(q, p, this._invKeySchedule,
|
|
3607
|
+
q[p + 1] = q[p + 3], q[p + 3] = m, this._doCryptBlock(q, p, this._invKeySchedule, a, i, s, b, d);
|
|
3608
3608
|
var m = q[p + 1];
|
|
3609
3609
|
q[p + 1] = q[p + 3], q[p + 3] = m;
|
|
3610
3610
|
},
|
|
3611
3611
|
_doCryptBlock: function(q, p, m, V, R, l, j, O) {
|
|
3612
|
-
for (var N = this._nRounds, Z = q[p] ^ m[0], T = q[p + 1] ^ m[1],
|
|
3613
|
-
var Y = V[Z >>> 24] ^ R[T >>> 16 & 255] ^ l[
|
|
3614
|
-
Z = Y, T =
|
|
3612
|
+
for (var N = this._nRounds, Z = q[p] ^ m[0], T = q[p + 1] ^ m[1], M = q[p + 2] ^ m[2], J = q[p + 3] ^ m[3], _ = 4, G = 1; G < N; G++) {
|
|
3613
|
+
var Y = V[Z >>> 24] ^ R[T >>> 16 & 255] ^ l[M >>> 8 & 255] ^ j[J & 255] ^ m[_++], h = V[T >>> 24] ^ R[M >>> 16 & 255] ^ l[J >>> 8 & 255] ^ j[Z & 255] ^ m[_++], C = V[M >>> 24] ^ R[J >>> 16 & 255] ^ l[Z >>> 8 & 255] ^ j[T & 255] ^ m[_++], L = V[J >>> 24] ^ R[Z >>> 16 & 255] ^ l[T >>> 8 & 255] ^ j[M & 255] ^ m[_++];
|
|
3614
|
+
Z = Y, T = h, M = C, J = L;
|
|
3615
3615
|
}
|
|
3616
|
-
var Y = (O[Z >>> 24] << 24 | O[T >>> 16 & 255] << 16 | O[
|
|
3617
|
-
q[p] = Y, q[p + 1] =
|
|
3616
|
+
var Y = (O[Z >>> 24] << 24 | O[T >>> 16 & 255] << 16 | O[M >>> 8 & 255] << 8 | O[J & 255]) ^ m[_++], h = (O[T >>> 24] << 24 | O[M >>> 16 & 255] << 16 | O[J >>> 8 & 255] << 8 | O[Z & 255]) ^ m[_++], C = (O[M >>> 24] << 24 | O[J >>> 16 & 255] << 16 | O[Z >>> 8 & 255] << 8 | O[T & 255]) ^ m[_++], L = (O[J >>> 24] << 24 | O[Z >>> 16 & 255] << 16 | O[T >>> 8 & 255] << 8 | O[M & 255]) ^ m[_++];
|
|
3617
|
+
q[p] = Y, q[p + 1] = h, q[p + 2] = C, q[p + 3] = L;
|
|
3618
3618
|
},
|
|
3619
3619
|
keySize: 256 / 32
|
|
3620
3620
|
});
|
|
@@ -3627,7 +3627,7 @@ var de = { exports: {} }, $7;
|
|
|
3627
3627
|
function jP() {
|
|
3628
3628
|
return $7 || ($7 = 1, function(e, A) {
|
|
3629
3629
|
(function(f, v, r) {
|
|
3630
|
-
e.exports = v(tA(), H9(), p9(), z9(),
|
|
3630
|
+
e.exports = v(tA(), H9(), p9(), z9(), NA());
|
|
3631
3631
|
})(PA, function(f) {
|
|
3632
3632
|
return function() {
|
|
3633
3633
|
var v = f, r = v.lib, P = r.WordArray, t = r.BlockCipher, z = v.algo, d = [
|
|
@@ -4274,7 +4274,7 @@ function jP() {
|
|
|
4274
4274
|
8064,
|
|
4275
4275
|
504,
|
|
4276
4276
|
2147483679
|
|
4277
|
-
],
|
|
4277
|
+
], a = z.DES = t.extend({
|
|
4278
4278
|
_doReset: function() {
|
|
4279
4279
|
for (var H = this._key, c = H.words, q = [], p = 0; p < 56; p++) {
|
|
4280
4280
|
var m = d[p] - 1;
|
|
@@ -4298,20 +4298,20 @@ function jP() {
|
|
|
4298
4298
|
this._doCryptBlock(H, c, this._invSubKeys);
|
|
4299
4299
|
},
|
|
4300
4300
|
_doCryptBlock: function(H, c, q) {
|
|
4301
|
-
this._lBlock = H[c], this._rBlock = H[c + 1],
|
|
4301
|
+
this._lBlock = H[c], this._rBlock = H[c + 1], i.call(this, 4, 252645135), i.call(this, 16, 65535), s.call(this, 2, 858993459), s.call(this, 8, 16711935), i.call(this, 1, 1431655765);
|
|
4302
4302
|
for (var p = 0; p < 16; p++) {
|
|
4303
4303
|
for (var m = q[p], V = this._lBlock, R = this._rBlock, l = 0, j = 0; j < 8; j++)
|
|
4304
4304
|
l |= x[j][((R ^ m[j]) & X[j]) >>> 0];
|
|
4305
4305
|
this._lBlock = R, this._rBlock = V ^ l;
|
|
4306
4306
|
}
|
|
4307
4307
|
var O = this._lBlock;
|
|
4308
|
-
this._lBlock = this._rBlock, this._rBlock = O,
|
|
4308
|
+
this._lBlock = this._rBlock, this._rBlock = O, i.call(this, 1, 1431655765), s.call(this, 8, 16711935), s.call(this, 2, 858993459), i.call(this, 16, 65535), i.call(this, 4, 252645135), H[c] = this._lBlock, H[c + 1] = this._rBlock;
|
|
4309
4309
|
},
|
|
4310
4310
|
keySize: 64 / 32,
|
|
4311
4311
|
ivSize: 64 / 32,
|
|
4312
4312
|
blockSize: 64 / 32
|
|
4313
4313
|
});
|
|
4314
|
-
function
|
|
4314
|
+
function i(H, c) {
|
|
4315
4315
|
var q = (this._lBlock >>> H ^ this._rBlock) & c;
|
|
4316
4316
|
this._rBlock ^= q, this._lBlock ^= q << H;
|
|
4317
4317
|
}
|
|
@@ -4319,14 +4319,14 @@ function jP() {
|
|
|
4319
4319
|
var q = (this._rBlock >>> H ^ this._lBlock) & c;
|
|
4320
4320
|
this._lBlock ^= q, this._rBlock ^= q << H;
|
|
4321
4321
|
}
|
|
4322
|
-
v.DES = t._createHelper(
|
|
4322
|
+
v.DES = t._createHelper(a);
|
|
4323
4323
|
var b = z.TripleDES = t.extend({
|
|
4324
4324
|
_doReset: function() {
|
|
4325
4325
|
var H = this._key, c = H.words;
|
|
4326
4326
|
if (c.length !== 2 && c.length !== 4 && c.length < 6)
|
|
4327
4327
|
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
|
|
4328
4328
|
var q = c.slice(0, 2), p = c.length < 4 ? c.slice(0, 2) : c.slice(2, 4), m = c.length < 6 ? c.slice(0, 2) : c.slice(4, 6);
|
|
4329
|
-
this._des1 =
|
|
4329
|
+
this._des1 = a.createEncryptor(P.create(q)), this._des2 = a.createEncryptor(P.create(p)), this._des3 = a.createEncryptor(P.create(m));
|
|
4330
4330
|
},
|
|
4331
4331
|
encryptBlock: function(H, c) {
|
|
4332
4332
|
this._des1.encryptBlock(H, c), this._des2.decryptBlock(H, c), this._des3.encryptBlock(H, c);
|
|
@@ -4347,18 +4347,18 @@ var Xe = { exports: {} }, A3;
|
|
|
4347
4347
|
function ZP() {
|
|
4348
4348
|
return A3 || (A3 = 1, function(e, A) {
|
|
4349
4349
|
(function(f, v, r) {
|
|
4350
|
-
e.exports = v(tA(), H9(), p9(), z9(),
|
|
4350
|
+
e.exports = v(tA(), H9(), p9(), z9(), NA());
|
|
4351
4351
|
})(PA, function(f) {
|
|
4352
4352
|
return function() {
|
|
4353
4353
|
var v = f, r = v.lib, P = r.StreamCipher, t = v.algo, z = t.RC4 = P.extend({
|
|
4354
4354
|
_doReset: function() {
|
|
4355
|
-
for (var u = this._key, x = u.words, X = u.sigBytes,
|
|
4356
|
-
i
|
|
4357
|
-
for (var
|
|
4358
|
-
var b =
|
|
4359
|
-
s = (s + i
|
|
4360
|
-
var c = i
|
|
4361
|
-
i
|
|
4355
|
+
for (var u = this._key, x = u.words, X = u.sigBytes, a = this._S = [], i = 0; i < 256; i++)
|
|
4356
|
+
a[i] = i;
|
|
4357
|
+
for (var i = 0, s = 0; i < 256; i++) {
|
|
4358
|
+
var b = i % X, H = x[b >>> 2] >>> 24 - b % 4 * 8 & 255;
|
|
4359
|
+
s = (s + a[i] + H) % 256;
|
|
4360
|
+
var c = a[i];
|
|
4361
|
+
a[i] = a[s], a[s] = c;
|
|
4362
4362
|
}
|
|
4363
4363
|
this._i = this._j = 0;
|
|
4364
4364
|
},
|
|
@@ -4369,12 +4369,12 @@ function ZP() {
|
|
|
4369
4369
|
ivSize: 0
|
|
4370
4370
|
});
|
|
4371
4371
|
function d() {
|
|
4372
|
-
for (var u = this._S, x = this._i, X = this._j,
|
|
4372
|
+
for (var u = this._S, x = this._i, X = this._j, a = 0, i = 0; i < 4; i++) {
|
|
4373
4373
|
x = (x + 1) % 256, X = (X + u[x]) % 256;
|
|
4374
4374
|
var s = u[x];
|
|
4375
|
-
u[x] = u[X], u[X] = s,
|
|
4375
|
+
u[x] = u[X], u[X] = s, a |= u[(u[x] + u[X]) % 256] << 24 - i * 8;
|
|
4376
4376
|
}
|
|
4377
|
-
return this._i = x, this._j = X,
|
|
4377
|
+
return this._i = x, this._j = X, a;
|
|
4378
4378
|
}
|
|
4379
4379
|
v.RC4 = P._createHelper(z);
|
|
4380
4380
|
var n = t.RC4Drop = z.extend({
|
|
@@ -4401,13 +4401,13 @@ var be = { exports: {} }, f3;
|
|
|
4401
4401
|
function TP() {
|
|
4402
4402
|
return f3 || (f3 = 1, function(e, A) {
|
|
4403
4403
|
(function(f, v, r) {
|
|
4404
|
-
e.exports = v(tA(), H9(), p9(), z9(),
|
|
4404
|
+
e.exports = v(tA(), H9(), p9(), z9(), NA());
|
|
4405
4405
|
})(PA, function(f) {
|
|
4406
4406
|
return function() {
|
|
4407
4407
|
var v = f, r = v.lib, P = r.StreamCipher, t = v.algo, z = [], d = [], n = [], u = t.Rabbit = P.extend({
|
|
4408
4408
|
_doReset: function() {
|
|
4409
|
-
for (var X = this._key.words,
|
|
4410
|
-
X[
|
|
4409
|
+
for (var X = this._key.words, a = this.cfg.iv, i = 0; i < 4; i++)
|
|
4410
|
+
X[i] = (X[i] << 8 | X[i] >>> 24) & 16711935 | (X[i] << 24 | X[i] >>> 8) & 4278255360;
|
|
4411
4411
|
var s = this._X = [
|
|
4412
4412
|
X[0],
|
|
4413
4413
|
X[3] << 16 | X[2] >>> 16,
|
|
@@ -4428,33 +4428,33 @@ function TP() {
|
|
|
4428
4428
|
X[3] & 4294901760 | X[0] & 65535
|
|
4429
4429
|
];
|
|
4430
4430
|
this._b = 0;
|
|
4431
|
-
for (var
|
|
4431
|
+
for (var i = 0; i < 4; i++)
|
|
4432
4432
|
x.call(this);
|
|
4433
|
-
for (var
|
|
4434
|
-
b[
|
|
4435
|
-
if (
|
|
4436
|
-
var H =
|
|
4433
|
+
for (var i = 0; i < 8; i++)
|
|
4434
|
+
b[i] ^= s[i + 4 & 7];
|
|
4435
|
+
if (a) {
|
|
4436
|
+
var H = a.words, c = H[0], q = H[1], p = (c << 8 | c >>> 24) & 16711935 | (c << 24 | c >>> 8) & 4278255360, m = (q << 8 | q >>> 24) & 16711935 | (q << 24 | q >>> 8) & 4278255360, V = p >>> 16 | m & 4294901760, R = m << 16 | p & 65535;
|
|
4437
4437
|
b[0] ^= p, b[1] ^= V, b[2] ^= m, b[3] ^= R, b[4] ^= p, b[5] ^= V, b[6] ^= m, b[7] ^= R;
|
|
4438
|
-
for (var
|
|
4438
|
+
for (var i = 0; i < 4; i++)
|
|
4439
4439
|
x.call(this);
|
|
4440
4440
|
}
|
|
4441
4441
|
},
|
|
4442
|
-
_doProcessBlock: function(X,
|
|
4443
|
-
var
|
|
4444
|
-
x.call(this), z[0] =
|
|
4442
|
+
_doProcessBlock: function(X, a) {
|
|
4443
|
+
var i = this._X;
|
|
4444
|
+
x.call(this), z[0] = i[0] ^ i[5] >>> 16 ^ i[3] << 16, z[1] = i[2] ^ i[7] >>> 16 ^ i[5] << 16, z[2] = i[4] ^ i[1] >>> 16 ^ i[7] << 16, z[3] = i[6] ^ i[3] >>> 16 ^ i[1] << 16;
|
|
4445
4445
|
for (var s = 0; s < 4; s++)
|
|
4446
|
-
z[s] = (z[s] << 8 | z[s] >>> 24) & 16711935 | (z[s] << 24 | z[s] >>> 8) & 4278255360, X[
|
|
4446
|
+
z[s] = (z[s] << 8 | z[s] >>> 24) & 16711935 | (z[s] << 24 | z[s] >>> 8) & 4278255360, X[a + s] ^= z[s];
|
|
4447
4447
|
},
|
|
4448
4448
|
blockSize: 128 / 32,
|
|
4449
4449
|
ivSize: 64 / 32
|
|
4450
4450
|
});
|
|
4451
4451
|
function x() {
|
|
4452
|
-
for (var X = this._X,
|
|
4453
|
-
d[
|
|
4454
|
-
|
|
4455
|
-
for (var
|
|
4456
|
-
var s = X[
|
|
4457
|
-
n[
|
|
4452
|
+
for (var X = this._X, a = this._C, i = 0; i < 8; i++)
|
|
4453
|
+
d[i] = a[i];
|
|
4454
|
+
a[0] = a[0] + 1295307597 + this._b | 0, a[1] = a[1] + 3545052371 + (a[0] >>> 0 < d[0] >>> 0 ? 1 : 0) | 0, a[2] = a[2] + 886263092 + (a[1] >>> 0 < d[1] >>> 0 ? 1 : 0) | 0, a[3] = a[3] + 1295307597 + (a[2] >>> 0 < d[2] >>> 0 ? 1 : 0) | 0, a[4] = a[4] + 3545052371 + (a[3] >>> 0 < d[3] >>> 0 ? 1 : 0) | 0, a[5] = a[5] + 886263092 + (a[4] >>> 0 < d[4] >>> 0 ? 1 : 0) | 0, a[6] = a[6] + 1295307597 + (a[5] >>> 0 < d[5] >>> 0 ? 1 : 0) | 0, a[7] = a[7] + 3545052371 + (a[6] >>> 0 < d[6] >>> 0 ? 1 : 0) | 0, this._b = a[7] >>> 0 < d[7] >>> 0 ? 1 : 0;
|
|
4455
|
+
for (var i = 0; i < 8; i++) {
|
|
4456
|
+
var s = X[i] + a[i], b = s & 65535, H = s >>> 16, c = ((b * b >>> 17) + b * H >>> 15) + H * H, q = ((s & 4294901760) * s | 0) + ((s & 65535) * s | 0);
|
|
4457
|
+
n[i] = c ^ q;
|
|
4458
4458
|
}
|
|
4459
4459
|
X[0] = n[0] + (n[7] << 16 | n[7] >>> 16) + (n[6] << 16 | n[6] >>> 16) | 0, X[1] = n[1] + (n[0] << 8 | n[0] >>> 24) + n[7] | 0, X[2] = n[2] + (n[1] << 16 | n[1] >>> 16) + (n[0] << 16 | n[0] >>> 16) | 0, X[3] = n[3] + (n[2] << 8 | n[2] >>> 24) + n[1] | 0, X[4] = n[4] + (n[3] << 16 | n[3] >>> 16) + (n[2] << 16 | n[2] >>> 16) | 0, X[5] = n[5] + (n[4] << 8 | n[4] >>> 24) + n[3] | 0, X[6] = n[6] + (n[5] << 16 | n[5] >>> 16) + (n[4] << 16 | n[4] >>> 16) | 0, X[7] = n[7] + (n[6] << 8 | n[6] >>> 24) + n[5] | 0;
|
|
4460
4460
|
}
|
|
@@ -4467,12 +4467,12 @@ var ce = { exports: {} }, e3;
|
|
|
4467
4467
|
function oP() {
|
|
4468
4468
|
return e3 || (e3 = 1, function(e, A) {
|
|
4469
4469
|
(function(f, v, r) {
|
|
4470
|
-
e.exports = v(tA(), H9(), p9(), z9(),
|
|
4470
|
+
e.exports = v(tA(), H9(), p9(), z9(), NA());
|
|
4471
4471
|
})(PA, function(f) {
|
|
4472
4472
|
return function() {
|
|
4473
4473
|
var v = f, r = v.lib, P = r.StreamCipher, t = v.algo, z = [], d = [], n = [], u = t.RabbitLegacy = P.extend({
|
|
4474
4474
|
_doReset: function() {
|
|
4475
|
-
var X = this._key.words,
|
|
4475
|
+
var X = this._key.words, a = this.cfg.iv, i = this._X = [
|
|
4476
4476
|
X[0],
|
|
4477
4477
|
X[3] << 16 | X[2] >>> 16,
|
|
4478
4478
|
X[1],
|
|
@@ -4495,30 +4495,30 @@ function oP() {
|
|
|
4495
4495
|
for (var b = 0; b < 4; b++)
|
|
4496
4496
|
x.call(this);
|
|
4497
4497
|
for (var b = 0; b < 8; b++)
|
|
4498
|
-
s[b] ^=
|
|
4499
|
-
if (
|
|
4500
|
-
var H =
|
|
4498
|
+
s[b] ^= i[b + 4 & 7];
|
|
4499
|
+
if (a) {
|
|
4500
|
+
var H = a.words, c = H[0], q = H[1], p = (c << 8 | c >>> 24) & 16711935 | (c << 24 | c >>> 8) & 4278255360, m = (q << 8 | q >>> 24) & 16711935 | (q << 24 | q >>> 8) & 4278255360, V = p >>> 16 | m & 4294901760, R = m << 16 | p & 65535;
|
|
4501
4501
|
s[0] ^= p, s[1] ^= V, s[2] ^= m, s[3] ^= R, s[4] ^= p, s[5] ^= V, s[6] ^= m, s[7] ^= R;
|
|
4502
4502
|
for (var b = 0; b < 4; b++)
|
|
4503
4503
|
x.call(this);
|
|
4504
4504
|
}
|
|
4505
4505
|
},
|
|
4506
|
-
_doProcessBlock: function(X,
|
|
4507
|
-
var
|
|
4508
|
-
x.call(this), z[0] =
|
|
4506
|
+
_doProcessBlock: function(X, a) {
|
|
4507
|
+
var i = this._X;
|
|
4508
|
+
x.call(this), z[0] = i[0] ^ i[5] >>> 16 ^ i[3] << 16, z[1] = i[2] ^ i[7] >>> 16 ^ i[5] << 16, z[2] = i[4] ^ i[1] >>> 16 ^ i[7] << 16, z[3] = i[6] ^ i[3] >>> 16 ^ i[1] << 16;
|
|
4509
4509
|
for (var s = 0; s < 4; s++)
|
|
4510
|
-
z[s] = (z[s] << 8 | z[s] >>> 24) & 16711935 | (z[s] << 24 | z[s] >>> 8) & 4278255360, X[
|
|
4510
|
+
z[s] = (z[s] << 8 | z[s] >>> 24) & 16711935 | (z[s] << 24 | z[s] >>> 8) & 4278255360, X[a + s] ^= z[s];
|
|
4511
4511
|
},
|
|
4512
4512
|
blockSize: 128 / 32,
|
|
4513
4513
|
ivSize: 64 / 32
|
|
4514
4514
|
});
|
|
4515
4515
|
function x() {
|
|
4516
|
-
for (var X = this._X,
|
|
4517
|
-
d[
|
|
4518
|
-
|
|
4519
|
-
for (var
|
|
4520
|
-
var s = X[
|
|
4521
|
-
n[
|
|
4516
|
+
for (var X = this._X, a = this._C, i = 0; i < 8; i++)
|
|
4517
|
+
d[i] = a[i];
|
|
4518
|
+
a[0] = a[0] + 1295307597 + this._b | 0, a[1] = a[1] + 3545052371 + (a[0] >>> 0 < d[0] >>> 0 ? 1 : 0) | 0, a[2] = a[2] + 886263092 + (a[1] >>> 0 < d[1] >>> 0 ? 1 : 0) | 0, a[3] = a[3] + 1295307597 + (a[2] >>> 0 < d[2] >>> 0 ? 1 : 0) | 0, a[4] = a[4] + 3545052371 + (a[3] >>> 0 < d[3] >>> 0 ? 1 : 0) | 0, a[5] = a[5] + 886263092 + (a[4] >>> 0 < d[4] >>> 0 ? 1 : 0) | 0, a[6] = a[6] + 1295307597 + (a[5] >>> 0 < d[5] >>> 0 ? 1 : 0) | 0, a[7] = a[7] + 3545052371 + (a[6] >>> 0 < d[6] >>> 0 ? 1 : 0) | 0, this._b = a[7] >>> 0 < d[7] >>> 0 ? 1 : 0;
|
|
4519
|
+
for (var i = 0; i < 8; i++) {
|
|
4520
|
+
var s = X[i] + a[i], b = s & 65535, H = s >>> 16, c = ((b * b >>> 17) + b * H >>> 15) + H * H, q = ((s & 4294901760) * s | 0) + ((s & 65535) * s | 0);
|
|
4521
|
+
n[i] = c ^ q;
|
|
4522
4522
|
}
|
|
4523
4523
|
X[0] = n[0] + (n[7] << 16 | n[7] >>> 16) + (n[6] << 16 | n[6] >>> 16) | 0, X[1] = n[1] + (n[0] << 8 | n[0] >>> 24) + n[7] | 0, X[2] = n[2] + (n[1] << 16 | n[1] >>> 16) + (n[0] << 16 | n[0] >>> 16) | 0, X[3] = n[3] + (n[2] << 8 | n[2] >>> 24) + n[1] | 0, X[4] = n[4] + (n[3] << 16 | n[3] >>> 16) + (n[2] << 16 | n[2] >>> 16) | 0, X[5] = n[5] + (n[4] << 8 | n[4] >>> 24) + n[3] | 0, X[6] = n[6] + (n[5] << 16 | n[5] >>> 16) + (n[4] << 16 | n[4] >>> 16) | 0, X[7] = n[7] + (n[6] << 8 | n[6] >>> 24) + n[5] | 0;
|
|
4524
4524
|
}
|
|
@@ -4531,7 +4531,7 @@ var ae = { exports: {} }, v3;
|
|
|
4531
4531
|
function LP() {
|
|
4532
4532
|
return v3 || (v3 = 1, function(e, A) {
|
|
4533
4533
|
(function(f, v, r) {
|
|
4534
|
-
e.exports = v(tA(), H9(), p9(), z9(),
|
|
4534
|
+
e.exports = v(tA(), H9(), p9(), z9(), NA());
|
|
4535
4535
|
})(PA, function(f) {
|
|
4536
4536
|
return function() {
|
|
4537
4537
|
var v = f, r = v.lib, P = r.BlockCipher, t = v.algo;
|
|
@@ -5602,13 +5602,13 @@ function LP() {
|
|
|
5602
5602
|
q = q ^ b.pbox[V], p = x(b, q) ^ p, m = q, q = p, p = m;
|
|
5603
5603
|
return m = q, q = p, p = m, p = p ^ b.pbox[z], q = q ^ b.pbox[z + 1], { left: q, right: p };
|
|
5604
5604
|
}
|
|
5605
|
-
function
|
|
5605
|
+
function a(b, H, c) {
|
|
5606
5606
|
let q = H, p = c, m;
|
|
5607
5607
|
for (let V = z + 1; V > 1; --V)
|
|
5608
5608
|
q = q ^ b.pbox[V], p = x(b, q) ^ p, m = q, q = p, p = m;
|
|
5609
5609
|
return m = q, q = p, p = m, p = p ^ b.pbox[1], q = q ^ b.pbox[0], { left: q, right: p };
|
|
5610
5610
|
}
|
|
5611
|
-
function
|
|
5611
|
+
function i(b, H, c) {
|
|
5612
5612
|
for (let R = 0; R < 4; R++) {
|
|
5613
5613
|
b.sbox[R] = [];
|
|
5614
5614
|
for (let l = 0; l < 256; l++)
|
|
@@ -5629,7 +5629,7 @@ function LP() {
|
|
|
5629
5629
|
_doReset: function() {
|
|
5630
5630
|
if (this._keyPriorReset !== this._key) {
|
|
5631
5631
|
var b = this._keyPriorReset = this._key, H = b.words, c = b.sigBytes / 4;
|
|
5632
|
-
|
|
5632
|
+
i(u, H, c);
|
|
5633
5633
|
}
|
|
5634
5634
|
},
|
|
5635
5635
|
encryptBlock: function(b, H) {
|
|
@@ -5637,7 +5637,7 @@ function LP() {
|
|
|
5637
5637
|
b[H] = c.left, b[H + 1] = c.right;
|
|
5638
5638
|
},
|
|
5639
5639
|
decryptBlock: function(b, H) {
|
|
5640
|
-
var c =
|
|
5640
|
+
var c = a(u, b[H], b[H + 1]);
|
|
5641
5641
|
b[H] = c.left, b[H + 1] = c.right;
|
|
5642
5642
|
},
|
|
5643
5643
|
blockSize: 64 / 32,
|
|
@@ -5651,7 +5651,7 @@ function LP() {
|
|
|
5651
5651
|
}
|
|
5652
5652
|
(function(e, A) {
|
|
5653
5653
|
(function(f, v, r) {
|
|
5654
|
-
e.exports = v(tA(), Df(), uP(), zP(), H9(), dP(), p9(), zv(), Be(), XP(), dv(), bP(), cP(), aP(), ke(), iP(), z9(),
|
|
5654
|
+
e.exports = v(tA(), Df(), uP(), zP(), H9(), dP(), p9(), zv(), Be(), XP(), dv(), bP(), cP(), aP(), ke(), iP(), z9(), NA(), sP(), qP(), HP(), pP(), xP(), OP(), mP(), lP(), DP(), VP(), NP(), RP(), jP(), ZP(), TP(), oP(), LP());
|
|
5655
5655
|
})(PA, function(f) {
|
|
5656
5656
|
return f;
|
|
5657
5657
|
});
|
|
@@ -5781,9 +5781,9 @@ const QP = {
|
|
|
5781
5781
|
iso10126: "iso10126",
|
|
5782
5782
|
ansix923: "ansix923"
|
|
5783
5783
|
}, r = { hex: "hex", base64: "base64" };
|
|
5784
|
-
let P = e.encryptType || "", t = f[P.toLowerCase()], z = e.encryptMode || "", d = e.encryptKey || "", n = e.encryptOffset || "", u = e.encryptPadding || "", x = v[u.toLowerCase()], X = e.codingMode || "",
|
|
5784
|
+
let P = e.encryptType || "", t = f[P.toLowerCase()], z = e.encryptMode || "", d = e.encryptKey || "", n = e.encryptOffset || "", u = e.encryptPadding || "", x = v[u.toLowerCase()], X = e.codingMode || "", a = r[X.toLowerCase()], s = (Number(e.encryptKeyLength) || 0) / 8;
|
|
5785
5785
|
return new Promise((b) => {
|
|
5786
|
-
t !== "aes" && t !== "des" ? b({ error: "加密类型出错==", value: null }) : QP[t](A, d, { mode: z, keySize: s, padding: x, encoding:
|
|
5786
|
+
t !== "aes" && t !== "des" ? b({ error: "加密类型出错==", value: null }) : QP[t](A, d, { mode: z, keySize: s, padding: x, encoding: a, iv: n }, (H) => {
|
|
5787
5787
|
b(H);
|
|
5788
5788
|
});
|
|
5789
5789
|
});
|
|
@@ -6426,14 +6426,14 @@ function uf(e, A, f, v, r, P) {
|
|
|
6426
6426
|
var u = P.get(e);
|
|
6427
6427
|
if (u)
|
|
6428
6428
|
return u;
|
|
6429
|
-
P.set(e, t), zd(e) ? e.forEach(function(
|
|
6430
|
-
t.add(uf(
|
|
6431
|
-
}) : Pd(e) && e.forEach(function(
|
|
6432
|
-
t.set(
|
|
6429
|
+
P.set(e, t), zd(e) ? e.forEach(function(a) {
|
|
6430
|
+
t.add(uf(a, A, f, a, e, P));
|
|
6431
|
+
}) : Pd(e) && e.forEach(function(a, i) {
|
|
6432
|
+
t.set(i, uf(a, A, f, i, e, P));
|
|
6433
6433
|
});
|
|
6434
6434
|
var x = Oz, X = z ? void 0 : x(e);
|
|
6435
|
-
return Xu(X || e, function(
|
|
6436
|
-
X && (
|
|
6435
|
+
return Xu(X || e, function(a, i) {
|
|
6436
|
+
X && (i = a, a = e[i]), iu(t, i, uf(a, A, f, i, e, P));
|
|
6437
6437
|
}), t;
|
|
6438
6438
|
}
|
|
6439
6439
|
var yd = 1, Wd = 4;
|
|
@@ -6479,11 +6479,11 @@ const bf = (e, A = "") => {
|
|
|
6479
6479
|
return { left: v, right: r };
|
|
6480
6480
|
}, Id = (e, A, f) => {
|
|
6481
6481
|
var x;
|
|
6482
|
-
const v = UA(A).filter((X) => X.routeUrl).filter((X) => !(X != null && X.disable) && !(X != null && X.expired)), P = (((x = ZA()) == null ? void 0 : x.tabMap) ?? {})[e] ?? [], { left: t, right: z } = Ed(P, f), d = P.filter((X) => v.find((
|
|
6483
|
-
var
|
|
6482
|
+
const v = UA(A).filter((X) => X.routeUrl).filter((X) => !(X != null && X.disable) && !(X != null && X.expired)), P = (((x = ZA()) == null ? void 0 : x.tabMap) ?? {})[e] ?? [], { left: t, right: z } = Ed(P, f), d = P.filter((X) => v.find((a) => a.code === X.code)).map((X) => {
|
|
6483
|
+
var a, i;
|
|
6484
6484
|
return {
|
|
6485
6485
|
...X,
|
|
6486
|
-
name: ((
|
|
6486
|
+
name: ((a = v.find((s) => s.code === X.code)) == null ? void 0 : a.tabName) ?? ((i = v.find((s) => s.code === X.code)) == null ? void 0 : i.name) ?? X.name
|
|
6487
6487
|
};
|
|
6488
6488
|
});
|
|
6489
6489
|
if (!t.length && !z.length || !d.length)
|
|
@@ -6495,11 +6495,11 @@ const bf = (e, A = "") => {
|
|
|
6495
6495
|
]), Te(e);
|
|
6496
6496
|
let n = null;
|
|
6497
6497
|
if (z.length) {
|
|
6498
|
-
const X = z.find((
|
|
6498
|
+
const X = z.find((a) => d.map((i) => i.code).includes(a.code));
|
|
6499
6499
|
X && (n = X);
|
|
6500
6500
|
}
|
|
6501
6501
|
if (!n && t.length) {
|
|
6502
|
-
const X = t.reverse().find((
|
|
6502
|
+
const X = t.reverse().find((a) => d.map((i) => i.code).includes(a.code));
|
|
6503
6503
|
X && (n = X);
|
|
6504
6504
|
}
|
|
6505
6505
|
return n ? (IA([
|
|
@@ -6530,22 +6530,25 @@ const bf = (e, A = "") => {
|
|
|
6530
6530
|
Sr(f, e);
|
|
6531
6531
|
const v = UA(f);
|
|
6532
6532
|
Kr(v, e), _r(v, e);
|
|
6533
|
-
let r = Wn(
|
|
6533
|
+
let r = Wn(
|
|
6534
|
+
f,
|
|
6535
|
+
(t) => t.isMenu && t.code !== "aiPlatform.dasaiassistant" && t.originalCode !== "aiPlatform.dasaiassistant"
|
|
6536
|
+
);
|
|
6534
6537
|
const P = o9(r);
|
|
6535
6538
|
return r.forEach((t) => {
|
|
6536
6539
|
t != null && t.children && t.children.length && (t.originalChildren = o9(t.children)), (t != null && t.expired || t != null && t.disable) && (t.children = []);
|
|
6537
6540
|
}), { menus: r, originalMenus: P };
|
|
6538
6541
|
}, Md = async (e) => {
|
|
6539
|
-
var X,
|
|
6542
|
+
var X, a, i, s, b;
|
|
6540
6543
|
let { microApp: A = null, menuCode: f = "", menuPath: v = "", route: r = {} } = e;
|
|
6541
6544
|
const P = ((X = r.meta) == null ? void 0 : X.showLayout) ?? !0;
|
|
6542
|
-
let t = ((
|
|
6545
|
+
let t = ((a = r.query) == null ? void 0 : a.showLayout) ?? !0;
|
|
6543
6546
|
t === "false" && (t = !1);
|
|
6544
6547
|
let z = (A == null ? void 0 : A.code) ?? "";
|
|
6545
6548
|
if (!z) return { menuConfig: [], currentApp: null, currentMenu: null, query: null };
|
|
6546
6549
|
let d = [], n = [];
|
|
6547
6550
|
const u = uA().subAppList ?? [];
|
|
6548
|
-
if (u.length && (d = ((
|
|
6551
|
+
if (u.length && (d = ((i = u.find((H) => H.code === A.code)) == null ? void 0 : i.menus) ?? []), !d.length) {
|
|
6549
6552
|
const { menus: H, originalMenus: c } = await Ue(z);
|
|
6550
6553
|
d = H ?? [], n = c ?? [];
|
|
6551
6554
|
}
|
|
@@ -6556,7 +6559,7 @@ const bf = (e, A = "") => {
|
|
|
6556
6559
|
if (H) {
|
|
6557
6560
|
let c = !1;
|
|
6558
6561
|
d.forEach((p) => {
|
|
6559
|
-
p.routeUrl === "/deviceInstance" && (p.fixed = !0, p.divise = !0, p.menuCode = p.code, p.tagName = p.tabName =
|
|
6562
|
+
p.routeUrl === "/deviceInstance" && (p.fixed = !0, p.divise = !0, p.menuCode = p.code, p.tagName = p.tabName = g("实例"), p.name = H.instanceName, p.leftIcon = "change2", p.rightIcon = "change2");
|
|
6560
6563
|
});
|
|
6561
6564
|
const q = yn(H.endTime) || H.endTime == 0 || H.endTime === 253370736e6 || H.endTime === "253370736000000" ? "-" : Number(H.endTime);
|
|
6562
6565
|
if (c = le().endOf("day") > le(q).endOf("day"), !f && !v && H.id && !c) {
|
|
@@ -6677,7 +6680,7 @@ const bf = (e, A = "") => {
|
|
|
6677
6680
|
if (A = n, A && A.length) {
|
|
6678
6681
|
const u = ((t = YA()) == null ? void 0 : t.id) || 0;
|
|
6679
6682
|
if (u && (f = A.find((x) => x.id === u)), !u || !f) {
|
|
6680
|
-
const x = e.tenant.id ?? "", X = A.filter((
|
|
6683
|
+
const x = e.tenant.id ?? "", X = A.filter((a) => a.tenant === x);
|
|
6681
6684
|
X && X.length && (f = X[0]);
|
|
6682
6685
|
}
|
|
6683
6686
|
}
|
|
@@ -6704,9 +6707,9 @@ const bf = (e, A = "") => {
|
|
|
6704
6707
|
SA.value = {
|
|
6705
6708
|
style: f,
|
|
6706
6709
|
skinStyle: v
|
|
6707
|
-
},
|
|
6710
|
+
}, S.setTheme(v);
|
|
6708
6711
|
const { platformConfig: r } = await kv(), P = v === "default" || v === "cjb" ? v5 : n5;
|
|
6709
|
-
return
|
|
6712
|
+
return S.nav.setLogo(r != null && r.platformLogoImg ? Hf(r.platformLogoImg) : P), sessionStorage.setItem("personal-config", JSON.stringify(SA.value)), {
|
|
6710
6713
|
personalMenuConfig: SA.value
|
|
6711
6714
|
};
|
|
6712
6715
|
}, P5 = async () => {
|
|
@@ -6746,42 +6749,42 @@ const bf = (e, A = "") => {
|
|
|
6746
6749
|
cjb: s ? i5 : p5,
|
|
6747
6750
|
ssl: s ? s5 : x5
|
|
6748
6751
|
}[u()];
|
|
6749
|
-
}), { onPreview:
|
|
6750
|
-
|
|
6752
|
+
}), { onPreview: a } = Pr(), i = () => {
|
|
6753
|
+
a({ previewList: [X.value], previewBtnConfig: !0 });
|
|
6751
6754
|
};
|
|
6752
6755
|
return A({
|
|
6753
6756
|
init: d,
|
|
6754
6757
|
getResult: x
|
|
6755
|
-
}), (s, b) => h9((fA(),
|
|
6758
|
+
}), (s, b) => h9((fA(), lA(
|
|
6756
6759
|
"div",
|
|
6757
6760
|
O5,
|
|
6758
6761
|
[
|
|
6759
|
-
|
|
6760
|
-
|
|
6762
|
+
Q("section", m5, [
|
|
6763
|
+
Q(
|
|
6761
6764
|
"p",
|
|
6762
6765
|
l5,
|
|
6763
|
-
rA(D(
|
|
6766
|
+
rA(D(g)("侧边菜单栏")),
|
|
6764
6767
|
1
|
|
6765
6768
|
/* TEXT */
|
|
6766
6769
|
),
|
|
6767
|
-
|
|
6768
|
-
|
|
6770
|
+
Q("div", D5, [
|
|
6771
|
+
Q("div", {
|
|
6769
6772
|
class: "item-content",
|
|
6770
6773
|
onClick: b[1] || (b[1] = (H) => n("menu", 1))
|
|
6771
6774
|
}, [
|
|
6772
|
-
|
|
6775
|
+
Q("img", {
|
|
6773
6776
|
src: D(t5),
|
|
6774
6777
|
alt: "",
|
|
6775
6778
|
width: "180",
|
|
6776
6779
|
height: "120"
|
|
6777
6780
|
}, null, 8, V5),
|
|
6778
|
-
|
|
6781
|
+
k(D(V9), {
|
|
6779
6782
|
modelValue: f.value,
|
|
6780
6783
|
"onUpdate:modelValue": b[0] || (b[0] = (H) => f.value = H)
|
|
6781
6784
|
}, {
|
|
6782
6785
|
default: U(() => [
|
|
6783
6786
|
aA(
|
|
6784
|
-
rA(D(
|
|
6787
|
+
rA(D(g)("弹出式菜单栏")),
|
|
6785
6788
|
1
|
|
6786
6789
|
/* TEXT */
|
|
6787
6790
|
)
|
|
@@ -6790,23 +6793,23 @@ const bf = (e, A = "") => {
|
|
|
6790
6793
|
/* STABLE */
|
|
6791
6794
|
}, 8, ["modelValue"])
|
|
6792
6795
|
]),
|
|
6793
|
-
|
|
6796
|
+
Q("div", {
|
|
6794
6797
|
class: "item-content",
|
|
6795
6798
|
onClick: b[3] || (b[3] = (H) => n("menu", 2))
|
|
6796
6799
|
}, [
|
|
6797
|
-
|
|
6800
|
+
Q("img", {
|
|
6798
6801
|
src: D(u5),
|
|
6799
6802
|
alt: "",
|
|
6800
6803
|
width: "180",
|
|
6801
6804
|
height: "120"
|
|
6802
6805
|
}, null, 8, N5),
|
|
6803
|
-
|
|
6806
|
+
k(D(V9), {
|
|
6804
6807
|
modelValue: v.value,
|
|
6805
6808
|
"onUpdate:modelValue": b[2] || (b[2] = (H) => v.value = H)
|
|
6806
6809
|
}, {
|
|
6807
6810
|
default: U(() => [
|
|
6808
6811
|
aA(
|
|
6809
|
-
rA(D(
|
|
6812
|
+
rA(D(g)("内嵌式菜单栏")),
|
|
6810
6813
|
1
|
|
6811
6814
|
/* TEXT */
|
|
6812
6815
|
)
|
|
@@ -6817,32 +6820,32 @@ const bf = (e, A = "") => {
|
|
|
6817
6820
|
])
|
|
6818
6821
|
])
|
|
6819
6822
|
]),
|
|
6820
|
-
|
|
6821
|
-
|
|
6823
|
+
Q("section", R5, [
|
|
6824
|
+
Q(
|
|
6822
6825
|
"p",
|
|
6823
6826
|
j5,
|
|
6824
|
-
rA(D(
|
|
6827
|
+
rA(D(g)("皮肤风格设置")),
|
|
6825
6828
|
1
|
|
6826
6829
|
/* TEXT */
|
|
6827
6830
|
),
|
|
6828
|
-
|
|
6829
|
-
|
|
6831
|
+
Q("div", Z5, [
|
|
6832
|
+
Q("div", {
|
|
6830
6833
|
class: "item-content",
|
|
6831
6834
|
onClick: b[5] || (b[5] = (H) => n("skin", 1))
|
|
6832
6835
|
}, [
|
|
6833
|
-
|
|
6836
|
+
Q("img", {
|
|
6834
6837
|
src: D(z5),
|
|
6835
6838
|
alt: "",
|
|
6836
6839
|
width: "180",
|
|
6837
6840
|
height: "120"
|
|
6838
6841
|
}, null, 8, T5),
|
|
6839
|
-
|
|
6842
|
+
k(D(V9), {
|
|
6840
6843
|
modelValue: r.value,
|
|
6841
6844
|
"onUpdate:modelValue": b[4] || (b[4] = (H) => r.value = H)
|
|
6842
6845
|
}, {
|
|
6843
6846
|
default: U(() => [
|
|
6844
6847
|
aA(
|
|
6845
|
-
rA(D(
|
|
6848
|
+
rA(D(g)("默认皮肤")),
|
|
6846
6849
|
1
|
|
6847
6850
|
/* TEXT */
|
|
6848
6851
|
)
|
|
@@ -6851,23 +6854,23 @@ const bf = (e, A = "") => {
|
|
|
6851
6854
|
/* STABLE */
|
|
6852
6855
|
}, 8, ["modelValue"])
|
|
6853
6856
|
]),
|
|
6854
|
-
|
|
6857
|
+
Q("div", {
|
|
6855
6858
|
class: "item-content",
|
|
6856
6859
|
onClick: b[7] || (b[7] = (H) => n("skin", 2))
|
|
6857
6860
|
}, [
|
|
6858
|
-
|
|
6861
|
+
Q("img", {
|
|
6859
6862
|
src: D(d5),
|
|
6860
6863
|
alt: "",
|
|
6861
6864
|
width: "180",
|
|
6862
6865
|
height: "120"
|
|
6863
6866
|
}, null, 8, o5),
|
|
6864
|
-
|
|
6867
|
+
k(D(V9), {
|
|
6865
6868
|
modelValue: P.value,
|
|
6866
6869
|
"onUpdate:modelValue": b[6] || (b[6] = (H) => P.value = H)
|
|
6867
6870
|
}, {
|
|
6868
6871
|
default: U(() => [
|
|
6869
6872
|
aA(
|
|
6870
|
-
rA(D(
|
|
6873
|
+
rA(D(g)("科技蓝")),
|
|
6871
6874
|
1
|
|
6872
6875
|
/* TEXT */
|
|
6873
6876
|
)
|
|
@@ -6877,24 +6880,24 @@ const bf = (e, A = "") => {
|
|
|
6877
6880
|
}, 8, ["modelValue"])
|
|
6878
6881
|
])
|
|
6879
6882
|
]),
|
|
6880
|
-
|
|
6881
|
-
|
|
6883
|
+
Q("div", L5, [
|
|
6884
|
+
Q("div", {
|
|
6882
6885
|
class: "item-content",
|
|
6883
6886
|
onClick: b[9] || (b[9] = (H) => n("skin", 3))
|
|
6884
6887
|
}, [
|
|
6885
|
-
|
|
6888
|
+
Q("img", {
|
|
6886
6889
|
src: D(X5),
|
|
6887
6890
|
alt: "",
|
|
6888
6891
|
width: "180",
|
|
6889
6892
|
height: "120"
|
|
6890
6893
|
}, null, 8, y5),
|
|
6891
|
-
|
|
6894
|
+
k(D(V9), {
|
|
6892
6895
|
modelValue: t.value,
|
|
6893
6896
|
"onUpdate:modelValue": b[8] || (b[8] = (H) => t.value = H)
|
|
6894
6897
|
}, {
|
|
6895
6898
|
default: U(() => [
|
|
6896
6899
|
aA(
|
|
6897
|
-
rA(D(
|
|
6900
|
+
rA(D(g)("纯净白")),
|
|
6898
6901
|
1
|
|
6899
6902
|
/* TEXT */
|
|
6900
6903
|
)
|
|
@@ -6903,23 +6906,23 @@ const bf = (e, A = "") => {
|
|
|
6903
6906
|
/* STABLE */
|
|
6904
6907
|
}, 8, ["modelValue"])
|
|
6905
6908
|
]),
|
|
6906
|
-
|
|
6909
|
+
Q("div", {
|
|
6907
6910
|
class: "item-content",
|
|
6908
6911
|
onClick: b[11] || (b[11] = (H) => n("skin", 4))
|
|
6909
6912
|
}, [
|
|
6910
|
-
|
|
6913
|
+
Q("img", {
|
|
6911
6914
|
src: D(b5),
|
|
6912
6915
|
alt: "",
|
|
6913
6916
|
width: "180",
|
|
6914
6917
|
height: "120"
|
|
6915
6918
|
}, null, 8, W5),
|
|
6916
|
-
|
|
6919
|
+
k(D(V9), {
|
|
6917
6920
|
modelValue: z.value,
|
|
6918
6921
|
"onUpdate:modelValue": b[10] || (b[10] = (H) => z.value = H)
|
|
6919
6922
|
}, {
|
|
6920
6923
|
default: U(() => [
|
|
6921
6924
|
aA(
|
|
6922
|
-
rA(D(
|
|
6925
|
+
rA(D(g)("深邃蓝")),
|
|
6923
6926
|
1
|
|
6924
6927
|
/* TEXT */
|
|
6925
6928
|
)
|
|
@@ -6930,21 +6933,21 @@ const bf = (e, A = "") => {
|
|
|
6930
6933
|
])
|
|
6931
6934
|
])
|
|
6932
6935
|
]),
|
|
6933
|
-
|
|
6934
|
-
|
|
6936
|
+
Q("section", w5, [
|
|
6937
|
+
Q(
|
|
6935
6938
|
"p",
|
|
6936
6939
|
E5,
|
|
6937
|
-
rA(D(
|
|
6940
|
+
rA(D(g)("效果预览")),
|
|
6938
6941
|
1
|
|
6939
6942
|
/* TEXT */
|
|
6940
6943
|
),
|
|
6941
|
-
|
|
6942
|
-
|
|
6944
|
+
Q("div", I5, [
|
|
6945
|
+
Q("img", {
|
|
6943
6946
|
src: X.value,
|
|
6944
6947
|
alt: "",
|
|
6945
6948
|
width: "100%",
|
|
6946
6949
|
height: "100% ",
|
|
6947
|
-
onClick:
|
|
6950
|
+
onClick: i
|
|
6948
6951
|
}, null, 8, M5)
|
|
6949
6952
|
])
|
|
6950
6953
|
])
|
|
@@ -6964,7 +6967,7 @@ const bf = (e, A = "") => {
|
|
|
6964
6967
|
const f = o([
|
|
6965
6968
|
{
|
|
6966
6969
|
code: 1,
|
|
6967
|
-
name:
|
|
6970
|
+
name: g("中文简体")
|
|
6968
6971
|
},
|
|
6969
6972
|
{
|
|
6970
6973
|
code: 2,
|
|
@@ -6973,20 +6976,20 @@ const bf = (e, A = "") => {
|
|
|
6973
6976
|
]), v = EA(() => ({ type: C9.value === "zh-CN" ? 1 : 2 }));
|
|
6974
6977
|
return A({
|
|
6975
6978
|
getResult: () => ({ ...v.value })
|
|
6976
|
-
}), (P, t) => h9((fA(),
|
|
6979
|
+
}), (P, t) => h9((fA(), lA(
|
|
6977
6980
|
"div",
|
|
6978
6981
|
k5,
|
|
6979
6982
|
[
|
|
6980
|
-
|
|
6983
|
+
k(D(Ie), {
|
|
6981
6984
|
width: "100%",
|
|
6982
6985
|
"label-length": 6,
|
|
6983
6986
|
"align-type": "horizontal",
|
|
6984
6987
|
cols: 1
|
|
6985
6988
|
}, {
|
|
6986
6989
|
default: U(() => [
|
|
6987
|
-
|
|
6990
|
+
k(D(yA), {
|
|
6988
6991
|
type: "select",
|
|
6989
|
-
label: D(
|
|
6992
|
+
label: D(g)("语言类型"),
|
|
6990
6993
|
modelValue: v.value.type,
|
|
6991
6994
|
"onUpdate:modelValue": t[0] || (t[0] = (z) => v.value.type = z),
|
|
6992
6995
|
options: f.value,
|
|
@@ -7020,7 +7023,7 @@ const bf = (e, A = "") => {
|
|
|
7020
7023
|
levelType: 1
|
|
7021
7024
|
}), u = zr();
|
|
7022
7025
|
let x = !0;
|
|
7023
|
-
const X = o(!1), { run:
|
|
7026
|
+
const X = o(!1), { run: a } = A6(), { run: i } = f6(), s = () => {
|
|
7024
7027
|
var m;
|
|
7025
7028
|
x = !0, (m = u.value) == null || m.resetLazyLoad();
|
|
7026
7029
|
};
|
|
@@ -7045,12 +7048,12 @@ const bf = (e, A = "") => {
|
|
|
7045
7048
|
isTenant: A.type === 1
|
|
7046
7049
|
};
|
|
7047
7050
|
x ? (x = !1, X.value = !0) : V.parentId = m.id;
|
|
7048
|
-
let [R, l] = await
|
|
7051
|
+
let [R, l] = await a(V);
|
|
7049
7052
|
return X.value = !1, R ? { data: [] } : { data: l.data || [] };
|
|
7050
7053
|
},
|
|
7051
7054
|
search: async (m) => {
|
|
7052
7055
|
if (!m) return {};
|
|
7053
|
-
const [V, R] = await
|
|
7056
|
+
const [V, R] = await i({
|
|
7054
7057
|
name: m,
|
|
7055
7058
|
orgId: A.id,
|
|
7056
7059
|
dataType: 2,
|
|
@@ -7063,7 +7066,7 @@ const bf = (e, A = "") => {
|
|
|
7063
7066
|
},
|
|
7064
7067
|
confirmFormBuiltIn: () => {
|
|
7065
7068
|
if (!P.value) {
|
|
7066
|
-
Ee.warning(
|
|
7069
|
+
Ee.warning(g("至少选择一个链接"));
|
|
7067
7070
|
return;
|
|
7068
7071
|
}
|
|
7069
7072
|
const m = f.value, V = n.value;
|
|
@@ -7074,49 +7077,49 @@ const bf = (e, A = "") => {
|
|
|
7074
7077
|
let rf = null;
|
|
7075
7078
|
const z6 = (e) => {
|
|
7076
7079
|
const { information: A, orgInfo: f } = e, v = EA(() => f.id), r = o(!1), P = o(0), t = o([
|
|
7077
|
-
{ value: 0, label:
|
|
7078
|
-
{ value: 1, label:
|
|
7079
|
-
{ value: 2, label:
|
|
7080
|
-
{ value: 3, label:
|
|
7081
|
-
{ value: 4, label:
|
|
7082
|
-
]), z = o([]), d = o(20), n = o(1), u = o(0), x = o(""), X = o(""),
|
|
7083
|
-
const Y = [],
|
|
7084
|
-
m(C, "2D", "/enterpriseadmin/ioc-server/?type=preview&tag=displays", Y), m(L, "3D", "/enterpriseadmin/ioc-server/?type=preview3d&tag=scenes", Y), m(W,
|
|
7080
|
+
{ value: 0, label: g("图纸") },
|
|
7081
|
+
{ value: 1, label: g("图纸编排") },
|
|
7082
|
+
{ value: 2, label: g("设备看板") },
|
|
7083
|
+
{ value: 3, label: g("数据编排") },
|
|
7084
|
+
{ value: 4, label: g("轻分析") }
|
|
7085
|
+
]), z = o([]), d = o(20), n = o(1), u = o(0), x = o(""), X = o(""), a = o(""), i = o(!1), { run: s } = e6(), { run: b } = v6(), { run: H } = n6(), { run: c } = r6(), { run: q } = P6(), p = (G) => {
|
|
7086
|
+
const Y = [], h = G[2], C = h.displays, L = h.scenes, W = h[g("2D3D集成根目录")];
|
|
7087
|
+
m(C, "2D", "/enterpriseadmin/ioc-server/?type=preview&tag=displays", Y), m(L, "3D", "/enterpriseadmin/ioc-server/?type=preview3d&tag=scenes", Y), m(W, g("集成"), "/enterpriseadmin/ioc-server/?type=preview2d3d&tag=scenes", Y);
|
|
7085
7088
|
const E = (n.value - 1) * d.value, w = E + d.value;
|
|
7086
7089
|
z.value = Y.filter((zA) => zA.name.includes(x.value)).slice(E, w), u.value = Y.length;
|
|
7087
|
-
}, m = (G, Y,
|
|
7090
|
+
}, m = (G, Y, h, C) => {
|
|
7088
7091
|
for (const L in G) {
|
|
7089
7092
|
const W = G[L];
|
|
7090
7093
|
if (W !== !0)
|
|
7091
|
-
m(W, Y, `${
|
|
7094
|
+
m(W, Y, `${h}/${L}`, C);
|
|
7092
7095
|
else if (L.includes(".json")) {
|
|
7093
|
-
const E = `${
|
|
7096
|
+
const E = `${h}/${L}&showLayout=false`;
|
|
7094
7097
|
C.push({ id: E, name: L.slice(0, -5), type: Y, url: E });
|
|
7095
7098
|
}
|
|
7096
7099
|
}
|
|
7097
7100
|
}, V = () => {
|
|
7098
7101
|
n.value = 1, u.value = 0, x.value = "";
|
|
7099
7102
|
}, R = () => {
|
|
7100
|
-
var G, Y,
|
|
7101
|
-
V(), P.value = ((G = A.value) == null ? void 0 : G.urlType) ?? 0, X.value = ((Y = A.value) == null ? void 0 : Y.urlId) ?? "",
|
|
7102
|
-
}, l = (G, Y,
|
|
7103
|
-
|
|
7103
|
+
var G, Y, h;
|
|
7104
|
+
V(), P.value = ((G = A.value) == null ? void 0 : G.urlType) ?? 0, X.value = ((Y = A.value) == null ? void 0 : Y.urlId) ?? "", a.value = ((h = A.value) == null ? void 0 : h.routeUrl) ?? "", rf.afterMsg = p, N(), r.value = !0;
|
|
7105
|
+
}, l = (G, Y, h) => {
|
|
7106
|
+
a.value = Y.url;
|
|
7104
7107
|
}, j = () => {
|
|
7105
7108
|
if (!X.value) {
|
|
7106
|
-
Ee.warning(
|
|
7109
|
+
Ee.warning(g("至少选择一个链接"));
|
|
7107
7110
|
return;
|
|
7108
7111
|
}
|
|
7109
|
-
A.value.urlType = P.value, A.value.urlId = X.value, A.value.routeUrl =
|
|
7112
|
+
A.value.urlType = P.value, A.value.urlId = X.value, A.value.routeUrl = a.value, r.value = !1;
|
|
7110
7113
|
}, O = (G) => {
|
|
7111
|
-
V(), P.value = G, X.value = "",
|
|
7114
|
+
V(), P.value = G, X.value = "", a.value = "", N();
|
|
7112
7115
|
}, N = () => {
|
|
7113
7116
|
if (f.type !== 7) return;
|
|
7114
7117
|
({
|
|
7115
7118
|
0: Z,
|
|
7116
7119
|
1: T,
|
|
7117
|
-
2:
|
|
7120
|
+
2: M,
|
|
7118
7121
|
3: _,
|
|
7119
|
-
4:
|
|
7122
|
+
4: J
|
|
7120
7123
|
})[P.value]();
|
|
7121
7124
|
}, Z = async () => {
|
|
7122
7125
|
const G = ["explore", "explore-displays", `proj/${v.value}`];
|
|
@@ -7128,41 +7131,41 @@ const z6 = (e) => {
|
|
|
7128
7131
|
pageIndex: n.value,
|
|
7129
7132
|
pageSize: d.value
|
|
7130
7133
|
};
|
|
7131
|
-
|
|
7132
|
-
const [Y,
|
|
7133
|
-
if (
|
|
7134
|
+
i.value = !0;
|
|
7135
|
+
const [Y, h] = await b(G);
|
|
7136
|
+
if (i.value = !1, Y) {
|
|
7134
7137
|
z.value = [];
|
|
7135
7138
|
return;
|
|
7136
7139
|
}
|
|
7137
|
-
z.value =
|
|
7138
|
-
},
|
|
7140
|
+
z.value = h.data.map((C) => (C.type = g("图纸编排"), C.name = C.groupName, C)) || [], u.value = h.totalCount;
|
|
7141
|
+
}, M = async () => {
|
|
7139
7142
|
const G = {
|
|
7140
7143
|
project: v.value,
|
|
7141
7144
|
name: x.value,
|
|
7142
7145
|
pageIndex: n.value,
|
|
7143
7146
|
pageSize: d.value
|
|
7144
7147
|
};
|
|
7145
|
-
|
|
7146
|
-
const [Y,
|
|
7147
|
-
if (
|
|
7148
|
+
i.value = !0;
|
|
7149
|
+
const [Y, h] = await s(G);
|
|
7150
|
+
if (i.value = !1, Y) {
|
|
7148
7151
|
z.value = [];
|
|
7149
7152
|
return;
|
|
7150
7153
|
}
|
|
7151
|
-
z.value =
|
|
7152
|
-
},
|
|
7154
|
+
z.value = h.data.map((C) => (C.type = g("设备看板"), C)) || [], u.value = h.totalCount;
|
|
7155
|
+
}, J = async () => {
|
|
7153
7156
|
const G = {
|
|
7154
7157
|
project: v.value,
|
|
7155
7158
|
pageName: x.value,
|
|
7156
7159
|
pageIndex: n.value,
|
|
7157
7160
|
pageSize: d.value
|
|
7158
7161
|
};
|
|
7159
|
-
|
|
7160
|
-
const [Y,
|
|
7161
|
-
if (
|
|
7162
|
+
i.value = !0;
|
|
7163
|
+
const [Y, h] = await c(G);
|
|
7164
|
+
if (i.value = !1, Y) {
|
|
7162
7165
|
z.value = [];
|
|
7163
7166
|
return;
|
|
7164
7167
|
}
|
|
7165
|
-
z.value =
|
|
7168
|
+
z.value = h.data.map((C) => (C.type = g("轻分析"), C.name = C.pageName, C.url = C.uri, C)) || [], u.value = h.totalCount;
|
|
7166
7169
|
}, _ = async () => {
|
|
7167
7170
|
const G = {
|
|
7168
7171
|
project: v.value,
|
|
@@ -7170,18 +7173,18 @@ const z6 = (e) => {
|
|
|
7170
7173
|
pageIndex: n.value,
|
|
7171
7174
|
pageSize: d.value
|
|
7172
7175
|
};
|
|
7173
|
-
|
|
7174
|
-
const [Y,
|
|
7175
|
-
if (
|
|
7176
|
+
i.value = !0;
|
|
7177
|
+
const [Y, h] = await H(G);
|
|
7178
|
+
if (i.value = !1, Y) {
|
|
7176
7179
|
z.value = [];
|
|
7177
7180
|
return;
|
|
7178
7181
|
}
|
|
7179
|
-
z.value =
|
|
7182
|
+
z.value = h.data.map((C) => (C.type = g("数据编排"), C)) || [], u.value = h.totalCount;
|
|
7180
7183
|
};
|
|
7181
7184
|
return _A(() => {
|
|
7182
7185
|
rf || (rf = new mf({ url: u6, reconnectWhenClose: !0, message: p }));
|
|
7183
7186
|
}), {
|
|
7184
|
-
loading:
|
|
7187
|
+
loading: i,
|
|
7185
7188
|
urlDialog: r,
|
|
7186
7189
|
urlType: P,
|
|
7187
7190
|
urlTypeOptions: t,
|
|
@@ -7203,7 +7206,7 @@ const z6 = (e) => {
|
|
|
7203
7206
|
setup(e, { expose: A, emit: f }) {
|
|
7204
7207
|
const v = f, r = o(!1), P = EA(() => {
|
|
7205
7208
|
var n;
|
|
7206
|
-
return (n = P9.value) != null && n.homeAlias ? P9.value.homeAlias :
|
|
7209
|
+
return (n = P9.value) != null && n.homeAlias ? P9.value.homeAlias : g("首页");
|
|
7207
7210
|
}), t = () => {
|
|
7208
7211
|
r.value = !0;
|
|
7209
7212
|
}, z = () => {
|
|
@@ -7226,13 +7229,13 @@ const z6 = (e) => {
|
|
|
7226
7229
|
}, {
|
|
7227
7230
|
header: U(() => [
|
|
7228
7231
|
aA(
|
|
7229
|
-
rA(D(
|
|
7232
|
+
rA(D(g)("操作确认")),
|
|
7230
7233
|
1
|
|
7231
7234
|
/* TEXT */
|
|
7232
7235
|
)
|
|
7233
7236
|
]),
|
|
7234
7237
|
feedbackImg: U(() => [
|
|
7235
|
-
|
|
7238
|
+
Q("img", {
|
|
7236
7239
|
src: D(d6),
|
|
7237
7240
|
width: "168",
|
|
7238
7241
|
height: "96",
|
|
@@ -7240,10 +7243,10 @@ const z6 = (e) => {
|
|
|
7240
7243
|
}, null, 8, X6)
|
|
7241
7244
|
]),
|
|
7242
7245
|
default: U(() => [
|
|
7243
|
-
|
|
7246
|
+
Q(
|
|
7244
7247
|
"div",
|
|
7245
7248
|
b6,
|
|
7246
|
-
rA(D(
|
|
7249
|
+
rA(D(g)("framework-reset-home-confirm", P.value)),
|
|
7247
7250
|
1
|
|
7248
7251
|
/* TEXT */
|
|
7249
7252
|
)
|
|
@@ -7278,8 +7281,8 @@ const z6 = (e) => {
|
|
|
7278
7281
|
P.value.routeUrl = "", z.value.routeUrl = "";
|
|
7279
7282
|
}, {
|
|
7280
7283
|
builtInDialog: X,
|
|
7281
|
-
$typeTree:
|
|
7282
|
-
treeId:
|
|
7284
|
+
$typeTree: a,
|
|
7285
|
+
treeId: i,
|
|
7283
7286
|
treePath: s,
|
|
7284
7287
|
keyword: b,
|
|
7285
7288
|
treeData: H,
|
|
@@ -7300,12 +7303,12 @@ const z6 = (e) => {
|
|
|
7300
7303
|
tableData: N,
|
|
7301
7304
|
pageSize: Z,
|
|
7302
7305
|
pageIndex: T,
|
|
7303
|
-
totalCount:
|
|
7304
|
-
tableFilter:
|
|
7306
|
+
totalCount: M,
|
|
7307
|
+
tableFilter: J,
|
|
7305
7308
|
urlId: _,
|
|
7306
7309
|
openUrlDialog: G,
|
|
7307
7310
|
tableChange: Y,
|
|
7308
|
-
confirmUrl:
|
|
7311
|
+
confirmUrl: h,
|
|
7309
7312
|
changeType: C,
|
|
7310
7313
|
getTable: L
|
|
7311
7314
|
} = z6({
|
|
@@ -7319,7 +7322,7 @@ const z6 = (e) => {
|
|
|
7319
7322
|
}, zA = async (K) => {
|
|
7320
7323
|
const [$, eA] = await _5().run();
|
|
7321
7324
|
$ || (await n(), await Je(), K(), v("reset-confirm"));
|
|
7322
|
-
}, dA = () => (P.value.type === 1 || P.value.type === 2) && !P.value.routeUrl ? (z.value.routeUrl =
|
|
7325
|
+
}, dA = () => (P.value.type === 1 || P.value.type === 2) && !P.value.routeUrl ? (z.value.routeUrl = g("必填"), !1) : (z.value.routeUrl = "", P.value.homeAlias && P.value.homeAlias.length > 50 ? (z.value.homeAlias = g("最多50个字符,可以是任意字符"), !1) : (z.value.homeAlias = "", !0)), DA = () => {
|
|
7323
7326
|
const K = P.value, $ = {
|
|
7324
7327
|
id: K.id,
|
|
7325
7328
|
type: K.type,
|
|
@@ -7332,16 +7335,16 @@ const z6 = (e) => {
|
|
|
7332
7335
|
return _A(u), A({
|
|
7333
7336
|
init: u,
|
|
7334
7337
|
formValidate: dA,
|
|
7335
|
-
getResult:
|
|
7336
|
-
}), (K, $) => (fA(),
|
|
7338
|
+
getResult: DA
|
|
7339
|
+
}), (K, $) => (fA(), lA(
|
|
7337
7340
|
i9,
|
|
7338
7341
|
null,
|
|
7339
7342
|
[
|
|
7340
|
-
h9(
|
|
7343
|
+
h9(Q(
|
|
7341
7344
|
"div",
|
|
7342
7345
|
a6,
|
|
7343
7346
|
[
|
|
7344
|
-
|
|
7347
|
+
k(D(Ie), {
|
|
7345
7348
|
width: "100%",
|
|
7346
7349
|
"label-length": 6,
|
|
7347
7350
|
"align-type": "horizontal",
|
|
@@ -7349,9 +7352,9 @@ const z6 = (e) => {
|
|
|
7349
7352
|
}, {
|
|
7350
7353
|
default: U(() => [
|
|
7351
7354
|
nA(" 首页展示类型 1内置门户 2外置门户 3轻分析 "),
|
|
7352
|
-
|
|
7355
|
+
k(D(yA), {
|
|
7353
7356
|
type: "select",
|
|
7354
|
-
label: D(
|
|
7357
|
+
label: D(g)("展示类型"),
|
|
7355
7358
|
modelValue: P.value.type,
|
|
7356
7359
|
"onUpdate:modelValue": $[0] || ($[0] = (eA) => P.value.type = eA),
|
|
7357
7360
|
options: t.value,
|
|
@@ -7360,16 +7363,16 @@ const z6 = (e) => {
|
|
|
7360
7363
|
"margin-right": "0",
|
|
7361
7364
|
onChange: x
|
|
7362
7365
|
}, null, 8, ["label", "modelValue", "options"]),
|
|
7363
|
-
|
|
7366
|
+
k(D(yA), {
|
|
7364
7367
|
type: "custom",
|
|
7365
|
-
label: D(
|
|
7368
|
+
label: D(g)("链接"),
|
|
7366
7369
|
error: z.value.routeUrl,
|
|
7367
7370
|
"onUpdate:error": $[2] || ($[2] = (eA) => z.value.routeUrl = eA),
|
|
7368
7371
|
"margin-right": "0",
|
|
7369
7372
|
required: P.value.type === 1 || P.value.type === 2
|
|
7370
7373
|
}, {
|
|
7371
7374
|
default: U(() => [
|
|
7372
|
-
|
|
7375
|
+
k(D(De), {
|
|
7373
7376
|
modelValue: P.value.routeUrl,
|
|
7374
7377
|
"onUpdate:modelValue": $[1] || ($[1] = (eA) => P.value.routeUrl = eA),
|
|
7375
7378
|
maxLength: 1e3,
|
|
@@ -7377,7 +7380,7 @@ const z6 = (e) => {
|
|
|
7377
7380
|
disabled: P.value.type !== 2
|
|
7378
7381
|
}, {
|
|
7379
7382
|
suffix: U(() => [
|
|
7380
|
-
|
|
7383
|
+
k(D(ur), {
|
|
7381
7384
|
class: B3({ disabled: !P.value.type || P.value.type === 3 }),
|
|
7382
7385
|
"icon-color": !P.value.type || P.value.type === 3 ? D(a7)("--das-ui-portal-management-disabled-color") : D(a7)("--das-ui-color-secondary"),
|
|
7383
7386
|
onClick: W
|
|
@@ -7390,10 +7393,10 @@ const z6 = (e) => {
|
|
|
7390
7393
|
_: 1
|
|
7391
7394
|
/* STABLE */
|
|
7392
7395
|
}, 8, ["label", "error", "required"]),
|
|
7393
|
-
|
|
7396
|
+
k(D(yA), {
|
|
7394
7397
|
type: "input",
|
|
7395
7398
|
prop: "homeAlias",
|
|
7396
|
-
label: D(
|
|
7399
|
+
label: D(g)("别名"),
|
|
7397
7400
|
maxlength: 50,
|
|
7398
7401
|
modelValue: P.value.homeAlias,
|
|
7399
7402
|
"onUpdate:modelValue": $[3] || ($[3] = (eA) => P.value.homeAlias = eA),
|
|
@@ -7401,13 +7404,13 @@ const z6 = (e) => {
|
|
|
7401
7404
|
"onUpdate:error": $[4] || ($[4] = (eA) => z.value.homeAlias = eA),
|
|
7402
7405
|
"margin-right": "0"
|
|
7403
7406
|
}, null, 8, ["label", "modelValue", "error"]),
|
|
7404
|
-
|
|
7407
|
+
k(D(yA), {
|
|
7405
7408
|
type: "custom",
|
|
7406
|
-
label: D(
|
|
7409
|
+
label: D(g)("还原"),
|
|
7407
7410
|
"margin-right": "0"
|
|
7408
7411
|
}, {
|
|
7409
7412
|
default: U(() => [
|
|
7410
|
-
|
|
7413
|
+
k(D(kA), {
|
|
7411
7414
|
btnType: "primary",
|
|
7412
7415
|
ghost: "",
|
|
7413
7416
|
size: "middle",
|
|
@@ -7416,7 +7419,7 @@ const z6 = (e) => {
|
|
|
7416
7419
|
}, {
|
|
7417
7420
|
default: U(() => [
|
|
7418
7421
|
aA(
|
|
7419
|
-
rA(D(
|
|
7422
|
+
rA(D(g)("恢复项目初始设置")),
|
|
7420
7423
|
1
|
|
7421
7424
|
/* TEXT */
|
|
7422
7425
|
)
|
|
@@ -7439,23 +7442,23 @@ const z6 = (e) => {
|
|
|
7439
7442
|
[af, K.isShow]
|
|
7440
7443
|
]),
|
|
7441
7444
|
nA(" 内置链接选择弹窗 "),
|
|
7442
|
-
|
|
7445
|
+
k(D(j9), {
|
|
7443
7446
|
modelValue: D(X),
|
|
7444
7447
|
"onUpdate:modelValue": $[9] || ($[9] = (eA) => FA(X) ? X.value = eA : null),
|
|
7445
7448
|
"body-style": { padding: 0 },
|
|
7446
|
-
title: D(
|
|
7449
|
+
title: D(g)("选择内置门户菜单"),
|
|
7447
7450
|
width: "610px",
|
|
7448
7451
|
height: "580px"
|
|
7449
7452
|
}, {
|
|
7450
7453
|
footer: U(() => [
|
|
7451
|
-
|
|
7452
|
-
|
|
7454
|
+
Q("div", null, [
|
|
7455
|
+
k(D(kA), {
|
|
7453
7456
|
size: "middle",
|
|
7454
7457
|
onClick: $[8] || ($[8] = (eA) => X.value = !1)
|
|
7455
7458
|
}, {
|
|
7456
7459
|
default: U(() => [
|
|
7457
7460
|
aA(
|
|
7458
|
-
rA(D(
|
|
7461
|
+
rA(D(g)("取消")),
|
|
7459
7462
|
1
|
|
7460
7463
|
/* TEXT */
|
|
7461
7464
|
)
|
|
@@ -7463,7 +7466,7 @@ const z6 = (e) => {
|
|
|
7463
7466
|
_: 1
|
|
7464
7467
|
/* STABLE */
|
|
7465
7468
|
}),
|
|
7466
|
-
|
|
7469
|
+
k(D(kA), {
|
|
7467
7470
|
btnType: "primary",
|
|
7468
7471
|
size: "middle",
|
|
7469
7472
|
style: { "margin-left": "12px" },
|
|
@@ -7471,7 +7474,7 @@ const z6 = (e) => {
|
|
|
7471
7474
|
}, {
|
|
7472
7475
|
default: U(() => [
|
|
7473
7476
|
aA(
|
|
7474
|
-
rA(D(
|
|
7477
|
+
rA(D(g)("确定")),
|
|
7475
7478
|
1
|
|
7476
7479
|
/* TEXT */
|
|
7477
7480
|
)
|
|
@@ -7482,12 +7485,12 @@ const z6 = (e) => {
|
|
|
7482
7485
|
])
|
|
7483
7486
|
]),
|
|
7484
7487
|
default: U(() => [
|
|
7485
|
-
|
|
7488
|
+
k(D(dr), {
|
|
7486
7489
|
"node-key": "id",
|
|
7487
7490
|
ref_key: "$typeTree",
|
|
7488
|
-
ref:
|
|
7489
|
-
modelValue: D(
|
|
7490
|
-
"onUpdate:modelValue": $[5] || ($[5] = (eA) => FA(
|
|
7491
|
+
ref: a,
|
|
7492
|
+
modelValue: D(i),
|
|
7493
|
+
"onUpdate:modelValue": $[5] || ($[5] = (eA) => FA(i) ? i.value = eA : null),
|
|
7491
7494
|
path: D(s),
|
|
7492
7495
|
"onUpdate:path": $[6] || ($[6] = (eA) => FA(s) ? s.value = eA : null),
|
|
7493
7496
|
"filter-value": D(b),
|
|
@@ -7497,7 +7500,7 @@ const z6 = (e) => {
|
|
|
7497
7500
|
"default-expanded-keys": ["-1"],
|
|
7498
7501
|
load: D(q),
|
|
7499
7502
|
search: D(p),
|
|
7500
|
-
"input-options": { placeholder: D(
|
|
7503
|
+
"input-options": { placeholder: D(g)("搜索门户名称") },
|
|
7501
7504
|
onNodeClick: D(m)
|
|
7502
7505
|
}, null, 8, ["modelValue", "path", "filter-value", "data", "load", "search", "input-options", "onNodeClick"])
|
|
7503
7506
|
]),
|
|
@@ -7505,24 +7508,24 @@ const z6 = (e) => {
|
|
|
7505
7508
|
/* STABLE */
|
|
7506
7509
|
}, 8, ["modelValue", "title"]),
|
|
7507
7510
|
nA(" 非内置链接选择弹窗 "),
|
|
7508
|
-
|
|
7511
|
+
k(D(j9), {
|
|
7509
7512
|
modelValue: D(l),
|
|
7510
7513
|
"onUpdate:modelValue": $[16] || ($[16] = (eA) => FA(l) ? l.value = eA : null),
|
|
7511
7514
|
"custom-class": "framework-portal-management-url-dialog",
|
|
7512
7515
|
"body-style": { padding: 0 },
|
|
7513
|
-
title: D(
|
|
7516
|
+
title: D(g)("选择URL链接"),
|
|
7514
7517
|
width: "960px",
|
|
7515
7518
|
height: "580px"
|
|
7516
7519
|
}, {
|
|
7517
7520
|
footer: U(() => [
|
|
7518
|
-
|
|
7519
|
-
|
|
7521
|
+
Q("div", null, [
|
|
7522
|
+
k(D(kA), {
|
|
7520
7523
|
size: "middle",
|
|
7521
7524
|
onClick: $[15] || ($[15] = (eA) => l.value = !1)
|
|
7522
7525
|
}, {
|
|
7523
7526
|
default: U(() => [
|
|
7524
7527
|
aA(
|
|
7525
|
-
rA(D(
|
|
7528
|
+
rA(D(g)("取消")),
|
|
7526
7529
|
1
|
|
7527
7530
|
/* TEXT */
|
|
7528
7531
|
)
|
|
@@ -7530,15 +7533,15 @@ const z6 = (e) => {
|
|
|
7530
7533
|
_: 1
|
|
7531
7534
|
/* STABLE */
|
|
7532
7535
|
}),
|
|
7533
|
-
|
|
7536
|
+
k(D(kA), {
|
|
7534
7537
|
btnType: "primary",
|
|
7535
7538
|
size: "middle",
|
|
7536
7539
|
style: { "margin-left": "12px" },
|
|
7537
|
-
onClick: D(
|
|
7540
|
+
onClick: D(h)
|
|
7538
7541
|
}, {
|
|
7539
7542
|
default: U(() => [
|
|
7540
7543
|
aA(
|
|
7541
|
-
rA(D(
|
|
7544
|
+
rA(D(g)("确定")),
|
|
7542
7545
|
1
|
|
7543
7546
|
/* TEXT */
|
|
7544
7547
|
)
|
|
@@ -7549,18 +7552,18 @@ const z6 = (e) => {
|
|
|
7549
7552
|
])
|
|
7550
7553
|
]),
|
|
7551
7554
|
default: U(() => [
|
|
7552
|
-
|
|
7555
|
+
k(D(Of), { spinning: D(R) }, {
|
|
7553
7556
|
default: U(() => [
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7557
|
+
Q("div", i6, [
|
|
7558
|
+
Q("div", s6, [
|
|
7559
|
+
Q(
|
|
7557
7560
|
"div",
|
|
7558
7561
|
q6,
|
|
7559
|
-
rA(D(
|
|
7562
|
+
rA(D(g)("类型")),
|
|
7560
7563
|
1
|
|
7561
7564
|
/* TEXT */
|
|
7562
7565
|
),
|
|
7563
|
-
|
|
7566
|
+
k(D(_3), {
|
|
7564
7567
|
modelValue: D(j),
|
|
7565
7568
|
"onUpdate:modelValue": $[10] || ($[10] = (eA) => FA(j) ? j.value = eA : null),
|
|
7566
7569
|
size: "small",
|
|
@@ -7569,21 +7572,21 @@ const z6 = (e) => {
|
|
|
7569
7572
|
onChange: D(C)
|
|
7570
7573
|
}, null, 8, ["modelValue", "options", "onChange"])
|
|
7571
7574
|
]),
|
|
7572
|
-
|
|
7573
|
-
|
|
7574
|
-
modelValue: D(
|
|
7575
|
-
"onUpdate:modelValue": $[11] || ($[11] = (eA) => FA(
|
|
7575
|
+
Q("div", H6, [
|
|
7576
|
+
k(D(Xr), {
|
|
7577
|
+
modelValue: D(J),
|
|
7578
|
+
"onUpdate:modelValue": $[11] || ($[11] = (eA) => FA(J) ? J.value = eA : null),
|
|
7576
7579
|
clearable: "",
|
|
7577
7580
|
size: "small",
|
|
7578
|
-
placeholder: D(
|
|
7581
|
+
placeholder: D(g)("搜索名称"),
|
|
7579
7582
|
onChange: D(L),
|
|
7580
7583
|
"is-icon-left": "",
|
|
7581
7584
|
onSearch: D(L)
|
|
7582
7585
|
}, null, 8, ["modelValue", "placeholder", "onChange", "onSearch"])
|
|
7583
7586
|
])
|
|
7584
7587
|
]),
|
|
7585
|
-
|
|
7586
|
-
|
|
7588
|
+
Q("div", p6, [
|
|
7589
|
+
k(D(tr), {
|
|
7587
7590
|
data: D(N),
|
|
7588
7591
|
currentRodioSelection: D(_),
|
|
7589
7592
|
"onUpdate:currentRodioSelection": $[12] || ($[12] = (eA) => FA(_) ? _.value = eA : null),
|
|
@@ -7593,25 +7596,25 @@ const z6 = (e) => {
|
|
|
7593
7596
|
"onUpdate:currentPage": $[13] || ($[13] = (eA) => FA(T) ? T.value = eA : null),
|
|
7594
7597
|
"page-size": D(Z),
|
|
7595
7598
|
"onUpdate:pageSize": $[14] || ($[14] = (eA) => FA(Z) ? Z.value = eA : null),
|
|
7596
|
-
total: D(
|
|
7599
|
+
total: D(M),
|
|
7597
7600
|
"pagination-props": { layout: "prev,next,sizes" },
|
|
7598
7601
|
onRadioChange: D(Y),
|
|
7599
7602
|
onCurrentPageChange: D(L),
|
|
7600
7603
|
onSizeChange: D(L)
|
|
7601
7604
|
}, {
|
|
7602
7605
|
default: U(() => [
|
|
7603
|
-
|
|
7604
|
-
label: D(
|
|
7606
|
+
k(D(yf), {
|
|
7607
|
+
label: D(g)("名称"),
|
|
7605
7608
|
"min-width": "36px",
|
|
7606
7609
|
prop: "name"
|
|
7607
7610
|
}, null, 8, ["label"]),
|
|
7608
|
-
|
|
7609
|
-
label: D(
|
|
7611
|
+
k(D(yf), {
|
|
7612
|
+
label: D(g)("类型"),
|
|
7610
7613
|
"min-width": "36px",
|
|
7611
7614
|
prop: "type"
|
|
7612
7615
|
}, null, 8, ["label"]),
|
|
7613
|
-
|
|
7614
|
-
label: D(
|
|
7616
|
+
k(D(yf), {
|
|
7617
|
+
label: D(g)("URL链接地址"),
|
|
7615
7618
|
"min-width": "72px",
|
|
7616
7619
|
prop: "url"
|
|
7617
7620
|
}, null, 8, ["label"])
|
|
@@ -7629,7 +7632,7 @@ const z6 = (e) => {
|
|
|
7629
7632
|
/* STABLE */
|
|
7630
7633
|
}, 8, ["modelValue", "title"]),
|
|
7631
7634
|
nA(" 恢复项目初始设置 二次确认 "),
|
|
7632
|
-
|
|
7635
|
+
k(
|
|
7633
7636
|
c6,
|
|
7634
7637
|
{
|
|
7635
7638
|
ref_key: "resetDialogRef",
|
|
@@ -7651,26 +7654,26 @@ const z6 = (e) => {
|
|
|
7651
7654
|
const f = o(!1), v = o(!1), r = o(null), P = o(null), t = o(null), z = o("theme"), d = o(""), n = EA(() => [
|
|
7652
7655
|
{
|
|
7653
7656
|
key: "theme",
|
|
7654
|
-
tab:
|
|
7657
|
+
tab: g("主题设置")
|
|
7655
7658
|
},
|
|
7656
7659
|
{
|
|
7657
7660
|
key: "lang",
|
|
7658
|
-
tab:
|
|
7661
|
+
tab: g("语言设置"),
|
|
7659
7662
|
hidden: Number(Ln()) < 2
|
|
7660
7663
|
},
|
|
7661
7664
|
{
|
|
7662
7665
|
key: "home",
|
|
7663
|
-
tab:
|
|
7666
|
+
tab: g("home-set", d.value)
|
|
7664
7667
|
}
|
|
7665
7668
|
]), u = () => {
|
|
7666
7669
|
var X;
|
|
7667
|
-
d.value = (X = P9.value) != null && X.homeAlias ? P9.value.homeAlias :
|
|
7670
|
+
d.value = (X = P9.value) != null && X.homeAlias ? P9.value.homeAlias : g("首页"), f.value = !0;
|
|
7668
7671
|
}, x = async () => {
|
|
7669
7672
|
var b, H, c, q;
|
|
7670
|
-
const X = (b = r.value) == null ? void 0 : b.getResult(), [
|
|
7671
|
-
if (
|
|
7673
|
+
const X = (b = r.value) == null ? void 0 : b.getResult(), [a] = await D6().run(X);
|
|
7674
|
+
if (a) return;
|
|
7672
7675
|
await Qv();
|
|
7673
|
-
const
|
|
7676
|
+
const i = (H = t.value) == null ? void 0 : H.getResult(), [s] = await N6().run(i);
|
|
7674
7677
|
if (s) {
|
|
7675
7678
|
z.value = "lang";
|
|
7676
7679
|
return;
|
|
@@ -7686,24 +7689,24 @@ const z6 = (e) => {
|
|
|
7686
7689
|
z.value = "home";
|
|
7687
7690
|
return;
|
|
7688
7691
|
}
|
|
7689
|
-
Ee.success(
|
|
7692
|
+
Ee.success(g("保存成功")), f.value = !1, window.__isAutoCloseApp = !1, window.location.reload();
|
|
7690
7693
|
};
|
|
7691
7694
|
return A({
|
|
7692
7695
|
openDialog: u
|
|
7693
|
-
}), (X,
|
|
7696
|
+
}), (X, a) => (fA(), lA("div", R6, [
|
|
7694
7697
|
f.value ? (fA(), XA(D(nr), {
|
|
7695
7698
|
key: 0,
|
|
7696
7699
|
title: D(AA)("个性化设置").value,
|
|
7697
7700
|
modelValue: f.value,
|
|
7698
|
-
"onUpdate:modelValue":
|
|
7701
|
+
"onUpdate:modelValue": a[3] || (a[3] = (i) => f.value = i),
|
|
7699
7702
|
"body-style": { padding: 0 },
|
|
7700
7703
|
direction: "rtl"
|
|
7701
7704
|
}, {
|
|
7702
7705
|
footer: U(() => [
|
|
7703
|
-
|
|
7704
|
-
|
|
7706
|
+
Q("div", j6, [
|
|
7707
|
+
k(D(kA), {
|
|
7705
7708
|
size: "middle",
|
|
7706
|
-
onClick:
|
|
7709
|
+
onClick: a[2] || (a[2] = (i) => f.value = !1),
|
|
7707
7710
|
style: { "margin-right": "12px" }
|
|
7708
7711
|
}, {
|
|
7709
7712
|
default: U(() => [
|
|
@@ -7716,7 +7719,7 @@ const z6 = (e) => {
|
|
|
7716
7719
|
_: 1
|
|
7717
7720
|
/* STABLE */
|
|
7718
7721
|
}),
|
|
7719
|
-
|
|
7722
|
+
k(D(kA), {
|
|
7720
7723
|
btnType: "primary",
|
|
7721
7724
|
size: "middle",
|
|
7722
7725
|
loading: v.value,
|
|
@@ -7735,27 +7738,27 @@ const z6 = (e) => {
|
|
|
7735
7738
|
])
|
|
7736
7739
|
]),
|
|
7737
7740
|
default: U(() => [
|
|
7738
|
-
|
|
7741
|
+
k(D(rr), {
|
|
7739
7742
|
options: n.value,
|
|
7740
7743
|
activeKey: z.value,
|
|
7741
|
-
"onUpdate:activeKey":
|
|
7744
|
+
"onUpdate:activeKey": a[0] || (a[0] = (i) => z.value = i),
|
|
7742
7745
|
"tab-width": "110px"
|
|
7743
7746
|
}, null, 8, ["options", "activeKey"]),
|
|
7744
|
-
|
|
7747
|
+
k(D(B5), {
|
|
7745
7748
|
ref_key: "setThemeStyleRef",
|
|
7746
7749
|
ref: r,
|
|
7747
7750
|
isShow: z.value === "theme"
|
|
7748
7751
|
}, null, 8, ["isShow"]),
|
|
7749
|
-
|
|
7752
|
+
k(D(Y5), {
|
|
7750
7753
|
ref_key: "setLangRef",
|
|
7751
7754
|
ref: t,
|
|
7752
7755
|
isShow: z.value === "lang"
|
|
7753
7756
|
}, null, 8, ["isShow"]),
|
|
7754
|
-
|
|
7757
|
+
k(D(O6), {
|
|
7755
7758
|
ref_key: "setHomeRef",
|
|
7756
7759
|
ref: P,
|
|
7757
7760
|
isShow: z.value === "home",
|
|
7758
|
-
onResetConfirm:
|
|
7761
|
+
onResetConfirm: a[1] || (a[1] = (i) => f.value = !1)
|
|
7759
7762
|
}, null, 8, ["isShow"])
|
|
7760
7763
|
]),
|
|
7761
7764
|
_: 1
|
|
@@ -7784,13 +7787,13 @@ const z6 = (e) => {
|
|
|
7784
7787
|
};
|
|
7785
7788
|
return K9(() => {
|
|
7786
7789
|
v.value = !1;
|
|
7787
|
-
}), (t, z) => (fA(),
|
|
7790
|
+
}), (t, z) => (fA(), lA("div", L6, [
|
|
7788
7791
|
t.src ? (fA(), XA(D(Of), {
|
|
7789
7792
|
key: 0,
|
|
7790
7793
|
spinning: !v.value
|
|
7791
7794
|
}, {
|
|
7792
7795
|
default: U(() => [
|
|
7793
|
-
h9(
|
|
7796
|
+
h9(Q("iframe", {
|
|
7794
7797
|
id: "iframe-view",
|
|
7795
7798
|
ref_key: "iframeRef",
|
|
7796
7799
|
ref: f,
|
|
@@ -7815,15 +7818,15 @@ const z6 = (e) => {
|
|
|
7815
7818
|
const [t, z] = await w6().run({ userId: Q3().id });
|
|
7816
7819
|
t || !z || JSON.stringify(z) === "{}" || (df.open({
|
|
7817
7820
|
key: "loginTip",
|
|
7818
|
-
message:
|
|
7821
|
+
message: g("上次登录信息"),
|
|
7819
7822
|
placement: "bottomRight",
|
|
7820
7823
|
description: jA("div", { class: "last-login-info" }, [
|
|
7821
7824
|
jA(
|
|
7822
7825
|
"div",
|
|
7823
7826
|
{ style: "font-size: 12px;color:#212121;margin-bottom:8px" },
|
|
7824
|
-
|
|
7827
|
+
g("时间:") + En(z.lastModificationTime)
|
|
7825
7828
|
),
|
|
7826
|
-
jA("div", { style: "font-size: 12px;color:#212121;" },
|
|
7829
|
+
jA("div", { style: "font-size: 12px;color:#212121;" }, g("IP地址:") + z.ip)
|
|
7827
7830
|
])
|
|
7828
7831
|
}), sessionStorage.setItem("loginInfoTip", "true"));
|
|
7829
7832
|
}, v = async () => {
|
|
@@ -7856,7 +7859,7 @@ const z6 = (e) => {
|
|
|
7856
7859
|
), OA(
|
|
7857
7860
|
() => [x.value, X.value, u.value],
|
|
7858
7861
|
() => {
|
|
7859
|
-
|
|
7862
|
+
S.nav.setConfig({
|
|
7860
7863
|
showFullScreen: x.value,
|
|
7861
7864
|
showChangeEnterprise: X.value,
|
|
7862
7865
|
showAIHelper: u.value,
|
|
@@ -7868,7 +7871,7 @@ const z6 = (e) => {
|
|
|
7868
7871
|
immediate: !0
|
|
7869
7872
|
}
|
|
7870
7873
|
);
|
|
7871
|
-
const
|
|
7874
|
+
const a = async () => {
|
|
7872
7875
|
let c = {};
|
|
7873
7876
|
return await Mn([
|
|
7874
7877
|
Sd,
|
|
@@ -7878,49 +7881,51 @@ const z6 = (e) => {
|
|
|
7878
7881
|
Qv,
|
|
7879
7882
|
Qd
|
|
7880
7883
|
]).then((p) => Object.assign(c, ...p)), z.value = !1, c;
|
|
7881
|
-
},
|
|
7884
|
+
}, i = async () => {
|
|
7882
7885
|
const c = P9.value;
|
|
7883
7886
|
let q = [...$3].map((V) => ({
|
|
7884
7887
|
...V,
|
|
7885
|
-
label:
|
|
7888
|
+
label: g(V.label)
|
|
7886
7889
|
}));
|
|
7887
7890
|
q.forEach((V) => (c != null && c.appAlias && V.value === RA && (V.label = c.appAlias), c != null && c.homeAlias && V.value === hA && (V.label = c.homeAlias), V)), c != null && c.enable ? ((c == null ? void 0 : c.displayPosition) === 2 && (q = I6(q, 0, 1)), d.value = q) : (d.value = q.filter((V) => V.path === RA), f.path === hA && await A.replace(RA));
|
|
7888
7891
|
const p = c != null && c.enable && (c == null ? void 0 : c.displayPosition) !== 2 ? hA : RA;
|
|
7889
7892
|
sessionStorage.getItem("defalt-page") || f.path !== p && await A.replace(p), sessionStorage.setItem("defalt-page", p);
|
|
7890
|
-
const m =
|
|
7891
|
-
|
|
7893
|
+
const m = S.nav.getItems().filter((V) => !V.fixed) ?? [];
|
|
7894
|
+
S.nav.setItems([...d.value, ...m]);
|
|
7892
7895
|
}, s = o(!1), b = async () => {
|
|
7893
|
-
var
|
|
7896
|
+
var T;
|
|
7894
7897
|
await e();
|
|
7895
|
-
const c = YA().id, q = await
|
|
7898
|
+
const c = YA().id, q = await a();
|
|
7896
7899
|
if (!q) return;
|
|
7897
7900
|
const { navConfig: p, projectConfig: m, currentProject: V, tenantList: R } = q, l = (V == null ? void 0 : V.id) || 0;
|
|
7898
|
-
c != l && (t.value = t.value === "0" ? "1" : "0"), X.value = ((
|
|
7901
|
+
c != l && (t.value = t.value === "0" ? "1" : "0"), X.value = ((T = qf()) == null ? void 0 : T.flag) !== 4 && R && R.length > 1;
|
|
7902
|
+
const j = await v("aiPlatform", "aiPlatform.dasaiassistant", "", "enterpriseadmin", !0);
|
|
7903
|
+
u.value = !!j, i(), m && m.length && (S.nav.setProjectConfig({
|
|
7899
7904
|
treeProps: {
|
|
7900
|
-
disabled: (
|
|
7905
|
+
disabled: (M) => M.type !== 7
|
|
7901
7906
|
},
|
|
7902
7907
|
// 过滤的节点
|
|
7903
|
-
filterNodeMethod: (
|
|
7908
|
+
filterNodeMethod: (M) => M.type === 7,
|
|
7904
7909
|
// 树打平之后保留的数据
|
|
7905
|
-
filterFlatCondition: (
|
|
7906
|
-
}),
|
|
7907
|
-
const
|
|
7908
|
-
n.value = [...cr].map((
|
|
7909
|
-
...
|
|
7910
|
-
label: M
|
|
7911
|
-
})), V && V.id !== 0 ? await v("personCenter",
|
|
7910
|
+
filterFlatCondition: (M) => M.type === 7
|
|
7911
|
+
}), S.nav.setProjects(m || []), V && S.nav.setActiveProject(V));
|
|
7912
|
+
const O = _9() ?? {}, N = O != null && O.headPicture ? Hf(O.headPicture) : void 0;
|
|
7913
|
+
n.value = [...cr].map((M) => ({
|
|
7914
|
+
...M,
|
|
7915
|
+
label: g(M.label)
|
|
7916
|
+
})), V && V.id !== 0 ? await v("personCenter", null, "/userInfo") || (n.value = n.value.filter((J) => J.value !== "1")) : n.value = n.value.filter((M) => M.value !== "1"), S.nav.setUserInfo({ headPicture: N, commandList: n.value }), S.nav.setSearchConfig({
|
|
7912
7917
|
getHistoryList: r,
|
|
7913
7918
|
getSearchList: P
|
|
7914
7919
|
});
|
|
7915
|
-
const
|
|
7916
|
-
|
|
7917
|
-
|
|
7918
|
-
}), MA([{ key: "subAppList", value:
|
|
7920
|
+
const Z = uA().subAppList ?? [];
|
|
7921
|
+
Z.length && (Z.forEach((M) => {
|
|
7922
|
+
M.menus = [], M.originalMenus = [];
|
|
7923
|
+
}), MA([{ key: "subAppList", value: Z }])), s.value = !0;
|
|
7919
7924
|
};
|
|
7920
|
-
return
|
|
7925
|
+
return S.nav.addEventListener("onBeforeMount", b), OA(
|
|
7921
7926
|
() => P9.value,
|
|
7922
7927
|
() => {
|
|
7923
|
-
|
|
7928
|
+
i();
|
|
7924
7929
|
},
|
|
7925
7930
|
{ deep: !0 }
|
|
7926
7931
|
), { loading: z, pageKey: t, innerPage: d, commandList: n, layoutInited: s, initNextTick: () => new Promise((c) => {
|
|
@@ -7946,7 +7951,7 @@ const z6 = (e) => {
|
|
|
7946
7951
|
};
|
|
7947
7952
|
}, B6 = () => {
|
|
7948
7953
|
const { entryMenu: e } = jf();
|
|
7949
|
-
|
|
7954
|
+
S.menu.addEventListener("onItemClick", async (A) => {
|
|
7950
7955
|
var P;
|
|
7951
7956
|
xA.innerSet = !0;
|
|
7952
7957
|
const f = UA(zf(A.applicationCode)).filter((t) => !t.disable && !t.expired).find((t) => t.code === A.code);
|
|
@@ -7958,21 +7963,21 @@ const z6 = (e) => {
|
|
|
7958
7963
|
}
|
|
7959
7964
|
const r = (((P = ZA().tabMap) == null ? void 0 : P[A.applicationCode]) ?? []).find((t) => t.code === A.code);
|
|
7960
7965
|
e(r ? { currentMenu: f, route: { path: r.path, query: r.query ?? {} } } : { currentMenu: f });
|
|
7961
|
-
}),
|
|
7966
|
+
}), S.menu.addEventListener("toggleCollapse", (A) => {
|
|
7962
7967
|
const f = k3.nav.activeItem;
|
|
7963
7968
|
let v = uA().menuCollapses || [];
|
|
7964
7969
|
A ? v = Array.from(/* @__PURE__ */ new Set([...v, f])) : v = v.filter((r) => r !== f), MA([{ key: "menuCollapses", value: v }]);
|
|
7965
7970
|
});
|
|
7966
7971
|
}, k6 = () => {
|
|
7967
7972
|
const { changeApp: e, deleteApp: A, beforeEntryApp: f } = m9();
|
|
7968
|
-
|
|
7973
|
+
S.nav.addEventListener("onItemClick", async (r) => {
|
|
7969
7974
|
const P = uA().currentSubAppCode ?? "";
|
|
7970
7975
|
if (P !== r.code) {
|
|
7971
7976
|
if (P && fP(P), !r.fixed && !await f(r))
|
|
7972
|
-
throw new Error(
|
|
7977
|
+
throw new Error(g("取消切换"));
|
|
7973
7978
|
e(r);
|
|
7974
7979
|
}
|
|
7975
|
-
}),
|
|
7980
|
+
}), S.nav.addEventListener("onItemRemove", (r) => {
|
|
7976
7981
|
var n;
|
|
7977
7982
|
const P = uA();
|
|
7978
7983
|
if (!((n = P.subAppList) != null && n.length) || P.subAppList.findIndex((u) => u.code === r.code) === -1) return;
|
|
@@ -7980,43 +7985,43 @@ const z6 = (e) => {
|
|
|
7980
7985
|
d && d.length && tf(r.code, d), A(r);
|
|
7981
7986
|
});
|
|
7982
7987
|
const { enter: v } = $9();
|
|
7983
|
-
return
|
|
7988
|
+
return S.nav.addEventListener("fullScreenHandle", v), {};
|
|
7984
7989
|
}, Q6 = () => {
|
|
7985
7990
|
const e = y9(), A = o(""), f = o(""), v = o("");
|
|
7986
7991
|
let r = "", P = {};
|
|
7987
7992
|
OA(
|
|
7988
7993
|
() => e.currentRoute.value,
|
|
7989
|
-
async (
|
|
7994
|
+
async (i) => {
|
|
7990
7995
|
var p, m, V, R, l, j, O, N, Z, T;
|
|
7991
|
-
const s = ((p =
|
|
7992
|
-
let b = ((m =
|
|
7993
|
-
if (b === "false" && (b = !1), !s || !b ||
|
|
7994
|
-
r = o9(
|
|
7996
|
+
const s = ((p = i.meta) == null ? void 0 : p.showLayout) ?? !0;
|
|
7997
|
+
let b = ((m = i.query) == null ? void 0 : m.showLayout) ?? !0;
|
|
7998
|
+
if (b === "false" && (b = !1), !s || !b || i.path === r && xe(i.query, P)) return;
|
|
7999
|
+
r = o9(i.path), P = o9(i.query);
|
|
7995
8000
|
const H = uA().currentSubAppCode ?? "";
|
|
7996
8001
|
if (!H) return;
|
|
7997
|
-
const c = ((V =
|
|
8002
|
+
const c = ((V = i.query) == null ? void 0 : V.menu) ?? ((R = ZA()) == null ? void 0 : R.currentCode) ?? "";
|
|
7998
8003
|
if (!c) return;
|
|
7999
8004
|
const q = JSON.parse(sessionStorage.getItem("tabStyle") || "{}") || {};
|
|
8000
8005
|
q && JSON.stringify(q) !== "{}" && (A.value = (j = (l = q[H]) == null ? void 0 : l[c]) != null && j.fontColor ? q[H][c].fontColor : "", f.value = (N = (O = q[H]) == null ? void 0 : O[c]) != null && N.backgroundColor ? q[H][c].backgroundColor : "", v.value = (T = (Z = q[H]) == null ? void 0 : Z[c]) != null && T.backgroundColor ? q[H][c].backgroundColor : "");
|
|
8001
8006
|
}
|
|
8002
8007
|
);
|
|
8003
|
-
const { deleteApp: t } = m9(), { entryMenu: z } = jf(), { reloadRoute: d, unloadRoute: n } = Uv(), u = (
|
|
8008
|
+
const { deleteApp: t } = m9(), { entryMenu: z } = jf(), { reloadRoute: d, unloadRoute: n } = Uv(), u = (i) => {
|
|
8004
8009
|
var c;
|
|
8005
|
-
const s = UA(zf(
|
|
8010
|
+
const s = UA(zf(i.applicationCode)).find((q) => q.code === i.code), H = (((c = ZA().tabMap) == null ? void 0 : c[i.applicationCode]) ?? []).find((q) => q.code === i.code);
|
|
8006
8011
|
z({ currentMenu: s, route: { path: H.path, query: H.query ?? {} } });
|
|
8007
|
-
}, x = (
|
|
8008
|
-
if (!
|
|
8009
|
-
const s =
|
|
8010
|
-
s && s.length && n(s),
|
|
8011
|
-
}, X = (
|
|
8012
|
+
}, x = (i) => {
|
|
8013
|
+
if (!i || !i.length) return;
|
|
8014
|
+
const s = i.filter((b) => !b.path.startsWith(b9)).map((b) => b.path);
|
|
8015
|
+
s && s.length && n(s), i.forEach((b) => S.iframeView.triggerEventListener("onUnloadPage", b.path));
|
|
8016
|
+
}, X = (i) => {
|
|
8012
8017
|
const s = uA().currentSubAppCode ?? "";
|
|
8013
8018
|
xA.innerSet = !0;
|
|
8014
|
-
const b = ZA(), H = b.tabMap[s], c = H.findIndex((l) => l.code ===
|
|
8019
|
+
const b = ZA(), H = b.tabMap[s], c = H.findIndex((l) => l.code === i.data.code);
|
|
8015
8020
|
if (c === -1) return;
|
|
8016
8021
|
const q = () => {
|
|
8017
8022
|
var O;
|
|
8018
8023
|
let j = (((O = uA().appcategorys) == null ? void 0 : O.map((N) => N.apps).flat()) ?? []).find((N) => N.code === s);
|
|
8019
|
-
j = { ...j, value: j.code, label: j.name }, t(j),
|
|
8024
|
+
j = { ...j, value: j.code, label: j.name }, t(j), S.nav.removeItem(s);
|
|
8020
8025
|
};
|
|
8021
8026
|
({
|
|
8022
8027
|
me: async (l) => {
|
|
@@ -8034,9 +8039,9 @@ const z6 = (e) => {
|
|
|
8034
8039
|
await e.push({
|
|
8035
8040
|
path: `/${j.applicationPath}${j.path}`.replace(/\/\//g, "/"),
|
|
8036
8041
|
query: j.query
|
|
8037
|
-
}),
|
|
8042
|
+
}), S.menu.setActiveItem(j.menuId), S.tab.setActiveItem(j.code);
|
|
8038
8043
|
const O = H.filter((N) => N.code !== l.value);
|
|
8039
|
-
O.forEach((N) =>
|
|
8044
|
+
O.forEach((N) => S.tab.removeItem(N.code)), x(O), IA([{ key: `tabMap:${s}`, value: [j] }]), u(j);
|
|
8040
8045
|
},
|
|
8041
8046
|
right: async (l) => {
|
|
8042
8047
|
const j = b.currentCode;
|
|
@@ -8045,47 +8050,47 @@ const z6 = (e) => {
|
|
|
8045
8050
|
u(Z);
|
|
8046
8051
|
}
|
|
8047
8052
|
const O = H.slice(c + 1);
|
|
8048
|
-
O.forEach((N) =>
|
|
8053
|
+
O.forEach((N) => S.tab.removeItem(N.code)), x(O), H.splice(c + 1), IA([{ key: `tabMap:${s}`, value: H }]);
|
|
8049
8054
|
}
|
|
8050
|
-
})[
|
|
8055
|
+
})[i.type](i.data);
|
|
8051
8056
|
};
|
|
8052
|
-
|
|
8053
|
-
ZA().currentCode !==
|
|
8054
|
-
}),
|
|
8057
|
+
S.tab.addEventListener("onItemClick", async (i) => {
|
|
8058
|
+
ZA().currentCode !== i.currentCode && (xA.innerSet = !0, u(i));
|
|
8059
|
+
}), S.tab.addEventListener("onItemRemove", (i) => {
|
|
8055
8060
|
const s = ZA(), b = uA().currentSubAppCode ?? "";
|
|
8056
|
-
s.tabMap[b].findIndex((q) => q.code ===
|
|
8057
|
-
}),
|
|
8061
|
+
s.tabMap[b].findIndex((q) => q.code === i.code) !== -1 && (tf(i.applicationCode, [i.code]), X({ type: "me", data: i }));
|
|
8062
|
+
}), S.tab.addEventListener("onMenuClick", (i) => {
|
|
8058
8063
|
let s = [];
|
|
8059
|
-
const b = ZA().tabMap[
|
|
8060
|
-
if (
|
|
8061
|
-
const H = b.findIndex((c) => c.code ===
|
|
8064
|
+
const b = ZA().tabMap[i.applicationCode] ?? [];
|
|
8065
|
+
if (i.type.key === "right") {
|
|
8066
|
+
const H = b.findIndex((c) => c.code === i.data.value);
|
|
8062
8067
|
s = b.slice(H + 1);
|
|
8063
8068
|
}
|
|
8064
|
-
|
|
8065
|
-
|
|
8069
|
+
i.type.key === "other" && (s = b.filter((H) => H.code !== i.data.value)), i.type.key === "all" && (s = [...b]), tf(
|
|
8070
|
+
i.applicationCode,
|
|
8066
8071
|
s.map((H) => H.code)
|
|
8067
|
-
), X({ type:
|
|
8068
|
-
}),
|
|
8069
|
-
if (!
|
|
8070
|
-
if (
|
|
8071
|
-
|
|
8072
|
+
), X({ type: i.type.key, data: i.data });
|
|
8073
|
+
}), S.tab.addEventListener("onPageRefresh", async (i) => {
|
|
8074
|
+
if (!i) return;
|
|
8075
|
+
if (i.path.startsWith(b9)) {
|
|
8076
|
+
S.iframeView.triggerEventListener("onRefreshCurrentPage");
|
|
8072
8077
|
return;
|
|
8073
8078
|
}
|
|
8074
|
-
tf(
|
|
8075
|
-
const s = UA(zf(
|
|
8079
|
+
tf(i.applicationCode, [i.code]);
|
|
8080
|
+
const s = UA(zf(i.applicationCode)).find((c) => c.code === i.code);
|
|
8076
8081
|
if (!s) return;
|
|
8077
|
-
if (s.routeUrl !==
|
|
8078
|
-
d([
|
|
8082
|
+
if (s.routeUrl !== i.path) {
|
|
8083
|
+
d([i.path]), n([`/${i.applicationPath}${s.routeUrl}`]), await z({ currentMenu: s });
|
|
8079
8084
|
return;
|
|
8080
8085
|
}
|
|
8081
|
-
const b = { app: s.applicationCode, menu: s.code }, H = { ...
|
|
8082
|
-
xe(b, H) || await z({ currentMenu: s }), d([
|
|
8086
|
+
const b = { app: s.applicationCode, menu: s.code }, H = { ...i.query };
|
|
8087
|
+
xe(b, H) || await z({ currentMenu: s }), d([i.path]);
|
|
8083
8088
|
});
|
|
8084
|
-
const { enter:
|
|
8085
|
-
return
|
|
8089
|
+
const { enter: a } = $9();
|
|
8090
|
+
return S.tab.addEventListener("onToggleFullScreen", a), { fontColor: A, backgroudColor: f, borderColor: v };
|
|
8086
8091
|
}, qe = u9(), j3 = (qe == null ? void 0 : qe.isAutoCloseApp) ?? !0, Z3 = location.href.includes("showLayout=false"), T3 = window.self !== window.top, Y6 = () => {
|
|
8087
8092
|
const e = () => {
|
|
8088
|
-
|
|
8093
|
+
S.nav.setItems([]), S.menu.setItems([]), S.tab.setItems([]), tv();
|
|
8089
8094
|
};
|
|
8090
8095
|
window.addEventListener("beforeunload", function(A) {
|
|
8091
8096
|
if (!(Z3 || !j3 || T3) && window.__isAutoCloseApp) {
|
|
@@ -8101,7 +8106,7 @@ const z6 = (e) => {
|
|
|
8101
8106
|
}
|
|
8102
8107
|
const f = uA();
|
|
8103
8108
|
f.subAppList && f.subAppList.length && sessionStorage.setItem("has-subapp", "true"), e();
|
|
8104
|
-
}), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (location.pathname !== RA && location.pathname !== hA && (window.__isAutoCloseApp = !1, window.location.replace(location.origin + RA)), sessionStorage.removeItem("has-subapp")),
|
|
8109
|
+
}), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (location.pathname !== RA && location.pathname !== hA && (window.__isAutoCloseApp = !1, window.location.replace(location.origin + RA)), sessionStorage.removeItem("has-subapp")), mA.addEventListenerFromMicroApp("system-reload", () => {
|
|
8105
8110
|
e(), location.pathname !== RA && location.pathname !== hA && (window.__isAutoCloseApp = !1, window.location.replace(location.origin + RA));
|
|
8106
8111
|
});
|
|
8107
8112
|
}, m9 = () => {
|
|
@@ -8109,27 +8114,27 @@ const z6 = (e) => {
|
|
|
8109
8114
|
let { mainAppName: v = "", microAppName: r = "", microApps: P = [] } = u9();
|
|
8110
8115
|
!v && r && (P = [{ name: r }]);
|
|
8111
8116
|
const t = P.map((X) => X.name), z = () => {
|
|
8112
|
-
|
|
8117
|
+
S.menu.setItems([]), S.menu.setActiveItem(""), S.tab.setItems([]), S.tab.setActiveItem("");
|
|
8113
8118
|
}, d = async (X) => {
|
|
8114
8119
|
if (X.routeUrl && !t.includes(X.routeUrl)) return !0;
|
|
8115
|
-
const
|
|
8120
|
+
const a = X.code ?? "", s = (uA().subAppList ?? []).find((p) => p.code === a);
|
|
8116
8121
|
let b = [], H = [], c = !1;
|
|
8117
8122
|
if (s && (b = s.menus ?? []), !b.length) {
|
|
8118
|
-
const { menus: p, originalMenus: m, err: V } = await Ue(
|
|
8123
|
+
const { menus: p, originalMenus: m, err: V } = await Ue(a);
|
|
8119
8124
|
if (V) return !1;
|
|
8120
8125
|
b = p ?? [], H = m ?? [];
|
|
8121
8126
|
}
|
|
8122
8127
|
if (b.length ? bf(b) || (await G9({
|
|
8123
|
-
title:
|
|
8124
|
-
content:
|
|
8125
|
-
}), c = !0) : (await G9({ title:
|
|
8128
|
+
title: g("提示"),
|
|
8129
|
+
content: g("此应用菜单已过期/已收回/配置有误") + "<br/>" + g("无法使用")
|
|
8130
|
+
}), c = !0) : (await G9({ title: g("提示"), content: g("此应用未配置菜单/无菜单权限") + "<br/>" + g("无法使用") }), c = !0), c) return !1;
|
|
8126
8131
|
const q = { ...X, menus: b, originalMenus: H };
|
|
8127
8132
|
return MA([{ key: "subAppList", value: q }]), !0;
|
|
8128
8133
|
}, n = async (X) => {
|
|
8129
|
-
var Z, T,
|
|
8130
|
-
const { microApp:
|
|
8134
|
+
var Z, T, M, J, _;
|
|
8135
|
+
const { microApp: a = null, menuCode: i = "", menuPath: s = "", route: b = {} } = X;
|
|
8131
8136
|
let H = b;
|
|
8132
|
-
if (!
|
|
8137
|
+
if (!a && s) {
|
|
8133
8138
|
if (z(), !(t && t.find((Y) => s.startsWith("/" + Y) || s.startsWith(Y)))) return;
|
|
8134
8139
|
await e.push({ path: s, query: H.query });
|
|
8135
8140
|
return;
|
|
@@ -8137,26 +8142,26 @@ const z6 = (e) => {
|
|
|
8137
8142
|
const c = ((Z = H.meta) == null ? void 0 : Z.showLayout) ?? !0;
|
|
8138
8143
|
let q = ((T = H.query) == null ? void 0 : T.showLayout) ?? !0;
|
|
8139
8144
|
q === "false" && (q = !1);
|
|
8140
|
-
const p = (
|
|
8141
|
-
if (
|
|
8145
|
+
const p = (a == null ? void 0 : a.openType) ?? 1, m = (a == null ? void 0 : a.type) ?? 1;
|
|
8146
|
+
if (a.routeUrl && !t.includes(a.routeUrl)) {
|
|
8142
8147
|
lv({
|
|
8143
|
-
appCode:
|
|
8144
|
-
displayAppName:
|
|
8148
|
+
appCode: a.code,
|
|
8149
|
+
displayAppName: a.name
|
|
8145
8150
|
}), z();
|
|
8146
|
-
const G = ((
|
|
8147
|
-
if ((G == null ? void 0 : G.find((
|
|
8148
|
-
{ key: "currentSubApp", value:
|
|
8149
|
-
{ key: "currentSubAppCode", value:
|
|
8151
|
+
const G = ((M = uA()) == null ? void 0 : M.subAppList) ?? [];
|
|
8152
|
+
if ((G == null ? void 0 : G.find((h) => h.code === a.code)) || G == null || G.push(a), MA([
|
|
8153
|
+
{ key: "currentSubApp", value: a },
|
|
8154
|
+
{ key: "currentSubAppCode", value: a.code },
|
|
8150
8155
|
{ key: "subAppList", value: G }
|
|
8151
|
-
]), G.forEach((
|
|
8152
|
-
const C = { ...
|
|
8153
|
-
|
|
8154
|
-
}),
|
|
8155
|
-
await e.push({ path:
|
|
8156
|
+
]), G.forEach((h) => {
|
|
8157
|
+
const C = { ...h, value: h.code, label: h.name };
|
|
8158
|
+
S.nav.appendItem(C);
|
|
8159
|
+
}), S.nav.setActiveItem(a.code), a.routeUrl.includes("entrance=main")) {
|
|
8160
|
+
await e.push({ path: a.routeUrl, query: { ...H.query, app: a.code } });
|
|
8156
8161
|
return;
|
|
8157
8162
|
}
|
|
8158
8163
|
if (p === 1 && m === 2) {
|
|
8159
|
-
const
|
|
8164
|
+
const h = await qv(a.routeUrl, (a == null ? void 0 : a.param) ?? []), C = Ve(Oe(me(h))), L = `${b9}-${a.code}`;
|
|
8160
8165
|
if (!e.options.routes.find((W) => W.path === L)) {
|
|
8161
8166
|
const W = {
|
|
8162
8167
|
path: L,
|
|
@@ -8171,7 +8176,7 @@ const z6 = (e) => {
|
|
|
8171
8176
|
path: L,
|
|
8172
8177
|
query: {
|
|
8173
8178
|
...H.query,
|
|
8174
|
-
app:
|
|
8179
|
+
app: a.code
|
|
8175
8180
|
}
|
|
8176
8181
|
});
|
|
8177
8182
|
return;
|
|
@@ -8183,19 +8188,19 @@ const z6 = (e) => {
|
|
|
8183
8188
|
currentMenu: l = null,
|
|
8184
8189
|
microPath: j = "",
|
|
8185
8190
|
query: O = {}
|
|
8186
|
-
} = await Md({ microApp:
|
|
8191
|
+
} = await Md({ microApp: a, menuCode: i, menuPath: s, route: H });
|
|
8187
8192
|
if (l && (H = {
|
|
8188
8193
|
path: j || `/${l.applicationPath}${l.routeUrl}`.replace(/\/\//g, "/"),
|
|
8189
8194
|
query: { ...O, app: l.applicationCode, menu: l.code },
|
|
8190
8195
|
meta: { ...(H == null ? void 0 : H.meta) ?? {} }
|
|
8191
|
-
}), R && (R == null ? void 0 : R.code) !== (
|
|
8192
|
-
if (R.fixed && (await e.push(R.path), z(),
|
|
8193
|
-
const G = (
|
|
8194
|
-
await n({ microApp: G, menuCode: (Y == null ? void 0 : Y.code) ?? "", route: { query:
|
|
8196
|
+
}), R && (R == null ? void 0 : R.code) !== (a == null ? void 0 : a.code)) {
|
|
8197
|
+
if (R.fixed && (await e.push(R.path), z(), S.nav.setActiveItem(R.path)), !R.fixed) {
|
|
8198
|
+
const G = (J = uA().subAppList) == null ? void 0 : J.find((C) => C.code === R.code), Y = ZA().preTab[R.code], h = { ...(Y == null ? void 0 : Y.query) ?? {} };
|
|
8199
|
+
await n({ microApp: G, menuCode: (Y == null ? void 0 : Y.code) ?? "", route: { query: h } });
|
|
8195
8200
|
}
|
|
8196
8201
|
return;
|
|
8197
8202
|
}
|
|
8198
|
-
const N = R ||
|
|
8203
|
+
const N = R || a;
|
|
8199
8204
|
if (!l && s) {
|
|
8200
8205
|
await e.push({
|
|
8201
8206
|
path: s,
|
|
@@ -8208,25 +8213,25 @@ const z6 = (e) => {
|
|
|
8208
8213
|
}
|
|
8209
8214
|
if (c && q) {
|
|
8210
8215
|
(_ = uA().subAppList) == null || _.forEach((Y) => {
|
|
8211
|
-
const
|
|
8212
|
-
|
|
8213
|
-
}),
|
|
8216
|
+
const h = { ...Y, value: Y.code, label: Y.name };
|
|
8217
|
+
S.nav.appendItem(h);
|
|
8218
|
+
}), S.nav.setActiveItem(N.code), S.menu.setItems(V);
|
|
8214
8219
|
const G = ZA().tabMap[N.code] ?? [];
|
|
8215
8220
|
if (G.length) {
|
|
8216
|
-
const Y = G.map((
|
|
8217
|
-
...
|
|
8218
|
-
value:
|
|
8219
|
-
label:
|
|
8221
|
+
const Y = G.map((h) => ({
|
|
8222
|
+
...h,
|
|
8223
|
+
value: h.code,
|
|
8224
|
+
label: h.name
|
|
8220
8225
|
})) || [];
|
|
8221
|
-
|
|
8226
|
+
S.tab.setItems(Y);
|
|
8222
8227
|
} else
|
|
8223
|
-
|
|
8228
|
+
S.tab.setItems([]);
|
|
8224
8229
|
}
|
|
8225
8230
|
A({ currentMenu: l, microPath: j, route: H });
|
|
8226
8231
|
}, u = async (X) => {
|
|
8227
|
-
var
|
|
8232
|
+
var a;
|
|
8228
8233
|
if (xA.innerSet = !0, X.fixed) {
|
|
8229
|
-
await e.push(X.path),
|
|
8234
|
+
await e.push(X.path), S.menu.setItems([]), S.tab.setItems([]), S.nav.setActiveItem(X.path), MA([
|
|
8230
8235
|
{ key: "currentSubAppCode", value: "" },
|
|
8231
8236
|
{ key: "currentSubApp", value: {} }
|
|
8232
8237
|
]), IA([
|
|
@@ -8236,8 +8241,8 @@ const z6 = (e) => {
|
|
|
8236
8241
|
return;
|
|
8237
8242
|
}
|
|
8238
8243
|
if (!X.fixed) {
|
|
8239
|
-
const
|
|
8240
|
-
await n({ microApp:
|
|
8244
|
+
const i = (a = uA().subAppList) == null ? void 0 : a.find((c) => c.code === X.code), s = ZA().preTab[X.code], b = (s == null ? void 0 : s.code) ?? "", H = { ...(s == null ? void 0 : s.query) ?? {} };
|
|
8245
|
+
await n({ microApp: i, menuCode: b, route: { query: H } });
|
|
8241
8246
|
}
|
|
8242
8247
|
};
|
|
8243
8248
|
return {
|
|
@@ -8246,25 +8251,25 @@ const z6 = (e) => {
|
|
|
8246
8251
|
changeApp: u,
|
|
8247
8252
|
deleteApp: async (X) => {
|
|
8248
8253
|
var H;
|
|
8249
|
-
const
|
|
8250
|
-
if (!((H =
|
|
8251
|
-
const
|
|
8252
|
-
if (
|
|
8254
|
+
const a = uA();
|
|
8255
|
+
if (!((H = a.subAppList) != null && H.length)) return;
|
|
8256
|
+
const i = a.subAppList.findIndex((c) => c.code === X.code);
|
|
8257
|
+
if (i === -1) return;
|
|
8253
8258
|
const s = ZA().tabMap[X.code] ?? [];
|
|
8254
8259
|
if (s.length) {
|
|
8255
8260
|
const c = s.filter((q) => !q.path.startsWith(b9)).map((q) => q.path);
|
|
8256
|
-
c && c.length && f(c), s.forEach((q) =>
|
|
8261
|
+
c && c.length && f(c), s.forEach((q) => S.iframeView.triggerEventListener("onUnloadPage", q.path));
|
|
8257
8262
|
}
|
|
8258
8263
|
let b = null;
|
|
8259
|
-
if (
|
|
8264
|
+
if (a.currentSubAppCode === X.code && (i + 1 !== a.subAppList.length ? a.subAppList[i + 1] && (b = a.subAppList[i + 1]) : a.subAppList[i - 1] && (b = a.subAppList[i - 1])), a.subAppList.splice(i, 1), MA([{ key: "subAppList", value: a.subAppList }]), IA([
|
|
8260
8265
|
{ key: `preTab:${X.code}`, value: {} },
|
|
8261
8266
|
{ key: `tabMap:${X.code}`, value: [] }
|
|
8262
8267
|
]), b) {
|
|
8263
8268
|
const c = { ...b, value: b.code, label: b.name };
|
|
8264
|
-
await u(c),
|
|
8269
|
+
await u(c), S.nav.setActiveItem(b.code);
|
|
8265
8270
|
}
|
|
8266
|
-
if (!
|
|
8267
|
-
if (
|
|
8271
|
+
if (!a.subAppList.length) {
|
|
8272
|
+
if (S.menu.setItems([]), S.tab.setItems([]), location.pathname !== RA && location.pathname !== hA) {
|
|
8268
8273
|
const c = $3.find((q) => q.value === RA);
|
|
8269
8274
|
c && u(c);
|
|
8270
8275
|
}
|
|
@@ -8327,9 +8332,9 @@ const z6 = (e) => {
|
|
|
8327
8332
|
menuCode: t.code,
|
|
8328
8333
|
displayMenuName: t.name
|
|
8329
8334
|
});
|
|
8330
|
-
const
|
|
8331
|
-
let
|
|
8332
|
-
if (
|
|
8335
|
+
const a = ((s = z.meta) == null ? void 0 : s.showLayout) ?? !0;
|
|
8336
|
+
let i = (n == null ? void 0 : n.showLayout) ?? !0;
|
|
8337
|
+
if (i === "false" && (i = !1), a && i) {
|
|
8333
8338
|
const b = {
|
|
8334
8339
|
currentApplication: uA().currentSubApp.routeUrl,
|
|
8335
8340
|
applicationPath: t.applicationPath,
|
|
@@ -8340,11 +8345,11 @@ const z6 = (e) => {
|
|
|
8340
8345
|
path: X,
|
|
8341
8346
|
query: n
|
|
8342
8347
|
};
|
|
8343
|
-
|
|
8348
|
+
S.tab.appendItem({
|
|
8344
8349
|
...b,
|
|
8345
8350
|
value: b.code,
|
|
8346
8351
|
label: b.name
|
|
8347
|
-
}),
|
|
8352
|
+
}), S.tab.setActiveItem(t.code), S.menu.setActiveItem(t.id), Pv(t.code), IA([
|
|
8348
8353
|
{
|
|
8349
8354
|
key: "currentCode",
|
|
8350
8355
|
value: t.code
|
|
@@ -8370,9 +8375,9 @@ const z6 = (e) => {
|
|
|
8370
8375
|
!P && t && (z = [{ name: t }]);
|
|
8371
8376
|
const d = async (x) => {
|
|
8372
8377
|
var p, m, V, R;
|
|
8373
|
-
let X = { ...x }, { showLayout:
|
|
8374
|
-
|
|
8375
|
-
const
|
|
8378
|
+
let X = { ...x }, { showLayout: a = !0 } = X.query;
|
|
8379
|
+
a === "false" && (a = !1);
|
|
8380
|
+
const i = async () => {
|
|
8376
8381
|
var O, N;
|
|
8377
8382
|
let l = uA().appcategorys ?? [];
|
|
8378
8383
|
if (!Array.isArray(l)) return [];
|
|
@@ -8400,7 +8405,7 @@ const z6 = (e) => {
|
|
|
8400
8405
|
return;
|
|
8401
8406
|
}
|
|
8402
8407
|
}
|
|
8403
|
-
const b = await
|
|
8408
|
+
const b = await i(), H = b.map((l) => l.code), c = ((p = X.query) == null ? void 0 : p.app) ?? "", q = ((m = uA()) == null ? void 0 : m.subAppList) ?? [];
|
|
8404
8409
|
if (q.length) {
|
|
8405
8410
|
const l = q.filter((O) => O.code !== c && !H.includes(O.code)), j = q.filter(
|
|
8406
8411
|
(O) => c === O.code || H.includes(O.code)
|
|
@@ -8414,7 +8419,7 @@ const z6 = (e) => {
|
|
|
8414
8419
|
}
|
|
8415
8420
|
if (X.query.app) {
|
|
8416
8421
|
let l = b.find((j) => j.code === X.query.app);
|
|
8417
|
-
if (!l &&
|
|
8422
|
+
if (!l && a) {
|
|
8418
8423
|
const { currentApp: j } = Te(X.query.app);
|
|
8419
8424
|
if (j) {
|
|
8420
8425
|
l = j;
|
|
@@ -8422,7 +8427,7 @@ const z6 = (e) => {
|
|
|
8422
8427
|
X = {}, N && (X.path = `/${N.applicationPath}${N.path}`.replace(/\/\//g, "/"), X.query = N.query);
|
|
8423
8428
|
}
|
|
8424
8429
|
}
|
|
8425
|
-
l != null && l.fixed ? (await r.push(l.path),
|
|
8430
|
+
l != null && l.fixed ? (await r.push(l.path), S.menu.setItems([]), S.tab.setItems([]), S.nav.setActiveItem(l.path)) : v({ microApp: l, menuCode: X.query.menu, menuPath: X.path, route: X });
|
|
8426
8431
|
return;
|
|
8427
8432
|
} else {
|
|
8428
8433
|
const l = z && z.find(
|
|
@@ -8441,13 +8446,13 @@ const z6 = (e) => {
|
|
|
8441
8446
|
return;
|
|
8442
8447
|
}
|
|
8443
8448
|
}
|
|
8444
|
-
if (
|
|
8449
|
+
if (a) {
|
|
8445
8450
|
(R = (V = uA()) == null ? void 0 : V.subAppList) == null || R.forEach((j) => {
|
|
8446
8451
|
const O = { ...j, value: j.code, label: j.name };
|
|
8447
|
-
|
|
8452
|
+
S.nav.appendItem(O);
|
|
8448
8453
|
});
|
|
8449
8454
|
const l = e.value.find((j) => j.path === location.pathname);
|
|
8450
|
-
l && (
|
|
8455
|
+
l && (S.nav.setActiveItem(l.path), S.menu.setItems([]), S.tab.setItems([]), MA([
|
|
8451
8456
|
{ key: "currentSubAppCode", value: "" },
|
|
8452
8457
|
{ key: "currentSubApp", value: {} }
|
|
8453
8458
|
]), IA([
|
|
@@ -8495,16 +8500,16 @@ const z6 = (e) => {
|
|
|
8495
8500
|
const n = Object.keys(d).map((x) => `${x}=${d[x]}`).join("&"), u = `${f.baseURL}${t.logout}?${n}`;
|
|
8496
8501
|
window.__isAutoCloseApp = !1, location.replace(u), sessionStorage.clear(), localStorage.removeItem("idelTime"), Fn();
|
|
8497
8502
|
}, { entryApp: r } = m9(), P = async () => {
|
|
8498
|
-
const t = "personCenter", d = (uA().appcategorys || []).map((
|
|
8503
|
+
const t = "personCenter", d = (uA().appcategorys || []).map((a) => a.apps).flat(), { originalMenus: n = [] } = await Ue(t), x = UA(n).filter((a) => a.isMenu && a.routeUrl).find((a) => a.routeUrl === "/userInfo");
|
|
8499
8504
|
if (x != null && x.disable || x != null && x.expired) {
|
|
8500
|
-
const { title:
|
|
8501
|
-
await G9({ title:
|
|
8505
|
+
const { title: a, content: i, desc: s } = await he(x);
|
|
8506
|
+
await G9({ title: a, content: i, desc: s });
|
|
8502
8507
|
return;
|
|
8503
8508
|
}
|
|
8504
|
-
const X = d.find((
|
|
8509
|
+
const X = d.find((a) => a.code === t);
|
|
8505
8510
|
X && r({ microApp: X, menuPath: `/${X.routeUrl}/userInfo` });
|
|
8506
8511
|
};
|
|
8507
|
-
return
|
|
8512
|
+
return S.nav.addEventListener("onUserCommandChange", (t) => {
|
|
8508
8513
|
var d, n;
|
|
8509
8514
|
({
|
|
8510
8515
|
0: (d = A.value) == null ? void 0 : d.openDialog,
|
|
@@ -8520,7 +8525,7 @@ const z6 = (e) => {
|
|
|
8520
8525
|
const e = u9(), A = o(!1), f = o(""), v = o(""), r = () => {
|
|
8521
8526
|
f.value = _9().id, v.value = Q3().tenantId, A.value = !0;
|
|
8522
8527
|
};
|
|
8523
|
-
|
|
8528
|
+
S.nav.addEventListener("changeEnterpriseHandle", () => {
|
|
8524
8529
|
r();
|
|
8525
8530
|
});
|
|
8526
8531
|
const P = () => {
|
|
@@ -8534,7 +8539,7 @@ const z6 = (e) => {
|
|
|
8534
8539
|
const [d, n] = await J6().run({ tenant: z });
|
|
8535
8540
|
if (d) return;
|
|
8536
8541
|
A.value = !1;
|
|
8537
|
-
const { access_token: u = "", refresh_token: x = "", expires_in: X = 0, sub:
|
|
8542
|
+
const { access_token: u = "", refresh_token: x = "", expires_in: X = 0, sub: a = "", name: i = "", flag: s = "", tenant: b = "" } = n, H = {
|
|
8538
8543
|
accessToken: u,
|
|
8539
8544
|
accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(X) * 1e3,
|
|
8540
8545
|
refreshToken: x,
|
|
@@ -8542,8 +8547,8 @@ const z6 = (e) => {
|
|
|
8542
8547
|
};
|
|
8543
8548
|
Un().save(H), G3(H);
|
|
8544
8549
|
const c = {
|
|
8545
|
-
id:
|
|
8546
|
-
name:
|
|
8550
|
+
id: a,
|
|
8551
|
+
name: i,
|
|
8547
8552
|
flag: s,
|
|
8548
8553
|
tenantId: b
|
|
8549
8554
|
};
|
|
@@ -8564,7 +8569,7 @@ const z6 = (e) => {
|
|
|
8564
8569
|
};
|
|
8565
8570
|
}, S6 = () => {
|
|
8566
8571
|
const { changeEnterprise: e } = Jv();
|
|
8567
|
-
|
|
8572
|
+
S.nav.addEventListener("onProjectChange", async (A) => {
|
|
8568
8573
|
const f = qf();
|
|
8569
8574
|
if ((f == null ? void 0 : f.flag) === 4) {
|
|
8570
8575
|
const v = f.tenant.id, r = (A == null ? void 0 : A.tenant) ?? "";
|
|
@@ -8580,11 +8585,11 @@ const z6 = (e) => {
|
|
|
8580
8585
|
const [r, P] = await h6().run({ name: v });
|
|
8581
8586
|
return r ? [] : P.filter((t) => t.routeUrl);
|
|
8582
8587
|
}, { entryApp: f } = m9();
|
|
8583
|
-
return
|
|
8588
|
+
return S.nav.addEventListener("searchToPage", async (v) => {
|
|
8584
8589
|
const { item: r, keyword: P, cb: t } = v;
|
|
8585
8590
|
if (r != null && r.disable || r != null && r.expired) {
|
|
8586
|
-
const { title: x, content: X, desc:
|
|
8587
|
-
await G9({ title: x, content: X, desc:
|
|
8591
|
+
const { title: x, content: X, desc: a } = await he(r);
|
|
8592
|
+
await G9({ title: x, content: X, desc: a });
|
|
8588
8593
|
return;
|
|
8589
8594
|
}
|
|
8590
8595
|
await C6().run({ searchVal: P, clickData: r });
|
|
@@ -8592,10 +8597,10 @@ const z6 = (e) => {
|
|
|
8592
8597
|
if (!n) return;
|
|
8593
8598
|
const u = r.applicationCode !== r.code ? r.code : "";
|
|
8594
8599
|
f({ microApp: n, menuCode: u }), t();
|
|
8595
|
-
}),
|
|
8600
|
+
}), S.nav.addEventListener("deleteSearchItem", async (v) => {
|
|
8596
8601
|
const { value: r, cb: P } = v;
|
|
8597
8602
|
await $6().run({ id: r }), P();
|
|
8598
|
-
}),
|
|
8603
|
+
}), S.nav.addEventListener("clearSearchList", async (v) => {
|
|
8599
8604
|
const { cb: r } = v;
|
|
8600
8605
|
await _6().run(), r();
|
|
8601
8606
|
}), {
|
|
@@ -8604,20 +8609,28 @@ const z6 = (e) => {
|
|
|
8604
8609
|
};
|
|
8605
8610
|
}, f1 = () => {
|
|
8606
8611
|
const e = o(), { entryApp: A } = m9();
|
|
8607
|
-
|
|
8608
|
-
var
|
|
8609
|
-
(
|
|
8612
|
+
S.nav.addEventListener("openAI", () => {
|
|
8613
|
+
var r;
|
|
8614
|
+
(r = e.value) == null || r.openPanel();
|
|
8615
|
+
});
|
|
8616
|
+
const f = (r) => {
|
|
8617
|
+
let P = r.startsWith("/") ? `http://example.com${r}` : `http://example.com/${r}`;
|
|
8618
|
+
const t = new URL(P), z = new URLSearchParams(t.search), d = z.get("app"), n = z.get("menu");
|
|
8619
|
+
if (n && d) {
|
|
8620
|
+
const X = ((uA().appcategorys ?? []).map((a) => a.apps).flat() ?? []).find((a) => a.code === d);
|
|
8621
|
+
if (!X) return;
|
|
8622
|
+
A({ microApp: X, menuCode: n });
|
|
8623
|
+
}
|
|
8624
|
+
}, v = (r) => {
|
|
8625
|
+
r && mA.sendMessageToMicroApp("", "openAIPanel");
|
|
8626
|
+
};
|
|
8627
|
+
return mA.addEventListenerFromMicroApp("aiPlatform:openHistoryPanel", () => {
|
|
8628
|
+
var r;
|
|
8629
|
+
(r = e.value) == null || r.closePanel();
|
|
8610
8630
|
}), {
|
|
8611
8631
|
$aiPanel: e,
|
|
8612
|
-
toApp:
|
|
8613
|
-
|
|
8614
|
-
const P = new URL(r), t = new URLSearchParams(P.search), z = t.get("app"), d = t.get("menu");
|
|
8615
|
-
if (d && z) {
|
|
8616
|
-
const x = ((uA().appcategorys ?? []).map((X) => X.apps).flat() ?? []).find((X) => X.code === z);
|
|
8617
|
-
if (!x) return;
|
|
8618
|
-
A({ microApp: x, menuCode: d });
|
|
8619
|
-
}
|
|
8620
|
-
}
|
|
8632
|
+
toApp: f,
|
|
8633
|
+
getAIPanelStatus: v
|
|
8621
8634
|
};
|
|
8622
8635
|
}, xA = g3({
|
|
8623
8636
|
/** 菜单或者应用跳转是否通过触发界面调用的 */
|
|
@@ -8625,12 +8638,12 @@ const z6 = (e) => {
|
|
|
8625
8638
|
excludeRoutes: [],
|
|
8626
8639
|
routeKeepAliveVisible: !0
|
|
8627
8640
|
}), e1 = () => {
|
|
8628
|
-
|
|
8641
|
+
mA.addEventListenerFromMicroApp("iot:change-instance", (e) => {
|
|
8629
8642
|
const A = uA(), f = A.currentSubAppCode;
|
|
8630
8643
|
let v = zf(f);
|
|
8631
8644
|
v.forEach((P) => {
|
|
8632
8645
|
P.fixed && (P.name = e.data.instanceInfo.instanceName);
|
|
8633
|
-
}),
|
|
8646
|
+
}), S.menu.setItems(v);
|
|
8634
8647
|
const r = A.subAppList;
|
|
8635
8648
|
r == null || r.forEach((P) => {
|
|
8636
8649
|
P.code === f && (P.menus = v);
|
|
@@ -8647,21 +8660,21 @@ const z6 = (e) => {
|
|
|
8647
8660
|
});
|
|
8648
8661
|
}, v1 = (e) => {
|
|
8649
8662
|
["personcenter", "rightmanage"].forEach((f) => {
|
|
8650
|
-
|
|
8663
|
+
mA.addEventListenerFromMicroApp(`${f}:change-userinfo`, (v) => {
|
|
8651
8664
|
const { userInfo: r } = v.data, P = r != null && r.headPicture ? Hf(r.headPicture) : void 0;
|
|
8652
|
-
|
|
8665
|
+
S.nav.setUserInfo({ headPicture: P, commandList: e.value }), sessionStorage.setItem("userInfo", JSON.stringify(r));
|
|
8653
8666
|
});
|
|
8654
8667
|
});
|
|
8655
8668
|
}, n1 = () => {
|
|
8656
|
-
|
|
8669
|
+
mA.addEventListenerFromMicroApp("devicePanelShow", (e) => {
|
|
8657
8670
|
const { deviceId: A = "", panelCode: f = "", deviceName: v = "", x: r = 0, y: P = 0, isCenter: t = !1 } = e.data;
|
|
8658
8671
|
K3(A, f, v, r, P, t);
|
|
8659
|
-
}),
|
|
8672
|
+
}), mA.addEventListenerFromMicroApp("closeDevicePanel", (e) => {
|
|
8660
8673
|
Cn();
|
|
8661
|
-
}),
|
|
8674
|
+
}), mA.addEventListenerFromMicroApp("alarmDevicePanelShow", (e) => {
|
|
8662
8675
|
const { deviceId: A = "", panelCode: f = "", alarmTime: v = "" } = e.data;
|
|
8663
8676
|
_n(A, f, v);
|
|
8664
|
-
}),
|
|
8677
|
+
}), mA.addEventListenerFromMicroApp("closeAlarmPanel", (e) => {
|
|
8665
8678
|
$n();
|
|
8666
8679
|
});
|
|
8667
8680
|
}, r1 = xf.get("/platform/login/pwd-advance-notify-check"), P1 = () => {
|
|
@@ -8677,7 +8690,7 @@ const z6 = (e) => {
|
|
|
8677
8690
|
await r1().run();
|
|
8678
8691
|
},
|
|
8679
8692
|
message: async (t) => {
|
|
8680
|
-
if (
|
|
8693
|
+
if (mA.sendMessageToMicroApp("enterpriseadmin/messagecenter", "message-notify:message", { msgList: t }), window.self !== window.top) return;
|
|
8681
8694
|
const d = YA().id;
|
|
8682
8695
|
e.value = t.filter(
|
|
8683
8696
|
(n) => n.projectId === d || n.projectId === 0 || n.projectId === "0"
|
|
@@ -8704,7 +8717,7 @@ const z6 = (e) => {
|
|
|
8704
8717
|
r();
|
|
8705
8718
|
}
|
|
8706
8719
|
},
|
|
8707
|
-
|
|
8720
|
+
g("查看详情")
|
|
8708
8721
|
) : null
|
|
8709
8722
|
])
|
|
8710
8723
|
}), f.value.push(n.id);
|
|
@@ -8752,7 +8765,7 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
8752
8765
|
}, d = () => {
|
|
8753
8766
|
v("itemClick");
|
|
8754
8767
|
}, n = EA(() => `calc(100% / ${Math.sqrt(f.gridNum)})`);
|
|
8755
|
-
return (u, x) => (fA(),
|
|
8768
|
+
return (u, x) => (fA(), lA(
|
|
8756
8769
|
"div",
|
|
8757
8770
|
{
|
|
8758
8771
|
ref_key: "containerRef",
|
|
@@ -8780,9 +8793,9 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
8780
8793
|
const f = e, v = A, r = (P) => {
|
|
8781
8794
|
v("update:activeIndex", P);
|
|
8782
8795
|
};
|
|
8783
|
-
return (P, t) => (fA(),
|
|
8796
|
+
return (P, t) => (fA(), lA("div", i1, [
|
|
8784
8797
|
nA(' :active="index === activeIndex" '),
|
|
8785
|
-
(fA(!0),
|
|
8798
|
+
(fA(!0), lA(
|
|
8786
8799
|
i9,
|
|
8787
8800
|
null,
|
|
8788
8801
|
ye(f.gridNum, (z, d) => (fA(), XA(a1, {
|
|
@@ -8811,116 +8824,116 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
8811
8824
|
const f = A, v = (r) => {
|
|
8812
8825
|
f("change", r);
|
|
8813
8826
|
};
|
|
8814
|
-
return (r, P) => (fA(),
|
|
8827
|
+
return (r, P) => (fA(), lA(
|
|
8815
8828
|
"div",
|
|
8816
8829
|
{
|
|
8817
8830
|
class: "direction-control",
|
|
8818
|
-
onDblclick: P[9] || (P[9] =
|
|
8831
|
+
onDblclick: P[9] || (P[9] = VA((t) => t.stopPropagation(), ["stop"]))
|
|
8819
8832
|
},
|
|
8820
8833
|
[
|
|
8821
|
-
|
|
8822
|
-
content: D(
|
|
8834
|
+
k(D(WA), {
|
|
8835
|
+
content: D(g)("左上")
|
|
8823
8836
|
}, {
|
|
8824
8837
|
default: U(() => [
|
|
8825
|
-
|
|
8838
|
+
Q("div", {
|
|
8826
8839
|
class: "icon icon-top-left",
|
|
8827
|
-
onClick: P[0] || (P[0] =
|
|
8840
|
+
onClick: P[0] || (P[0] = VA((t) => v("leftUp"), ["stop"]))
|
|
8828
8841
|
})
|
|
8829
8842
|
]),
|
|
8830
8843
|
_: 1
|
|
8831
8844
|
/* STABLE */
|
|
8832
8845
|
}, 8, ["content"]),
|
|
8833
|
-
|
|
8834
|
-
content: D(
|
|
8846
|
+
k(D(WA), {
|
|
8847
|
+
content: D(g)("上")
|
|
8835
8848
|
}, {
|
|
8836
8849
|
default: U(() => [
|
|
8837
|
-
|
|
8850
|
+
Q("div", {
|
|
8838
8851
|
class: "icon icon-top",
|
|
8839
|
-
onClick: P[1] || (P[1] =
|
|
8852
|
+
onClick: P[1] || (P[1] = VA((t) => v("up"), ["stop"]))
|
|
8840
8853
|
})
|
|
8841
8854
|
]),
|
|
8842
8855
|
_: 1
|
|
8843
8856
|
/* STABLE */
|
|
8844
8857
|
}, 8, ["content"]),
|
|
8845
|
-
|
|
8846
|
-
content: D(
|
|
8858
|
+
k(D(WA), {
|
|
8859
|
+
content: D(g)("右上")
|
|
8847
8860
|
}, {
|
|
8848
8861
|
default: U(() => [
|
|
8849
|
-
|
|
8862
|
+
Q("div", {
|
|
8850
8863
|
class: "icon icon-top-right",
|
|
8851
|
-
onClick: P[2] || (P[2] =
|
|
8864
|
+
onClick: P[2] || (P[2] = VA((t) => v("rightUp"), ["stop"]))
|
|
8852
8865
|
})
|
|
8853
8866
|
]),
|
|
8854
8867
|
_: 1
|
|
8855
8868
|
/* STABLE */
|
|
8856
8869
|
}, 8, ["content"]),
|
|
8857
|
-
|
|
8858
|
-
content: D(
|
|
8870
|
+
k(D(WA), {
|
|
8871
|
+
content: D(g)("左")
|
|
8859
8872
|
}, {
|
|
8860
8873
|
default: U(() => [
|
|
8861
|
-
|
|
8874
|
+
Q("div", {
|
|
8862
8875
|
class: "icon icon-left",
|
|
8863
|
-
onClick: P[3] || (P[3] =
|
|
8876
|
+
onClick: P[3] || (P[3] = VA((t) => v("left"), ["stop"]))
|
|
8864
8877
|
})
|
|
8865
8878
|
]),
|
|
8866
8879
|
_: 1
|
|
8867
8880
|
/* STABLE */
|
|
8868
8881
|
}, 8, ["content"]),
|
|
8869
|
-
|
|
8870
|
-
content: D(
|
|
8882
|
+
k(D(WA), {
|
|
8883
|
+
content: D(g)("自动")
|
|
8871
8884
|
}, {
|
|
8872
8885
|
default: U(() => [
|
|
8873
|
-
|
|
8886
|
+
Q("div", {
|
|
8874
8887
|
class: "icon icon-auto",
|
|
8875
|
-
onClick: P[4] || (P[4] =
|
|
8888
|
+
onClick: P[4] || (P[4] = VA((t) => v("auto"), ["stop"]))
|
|
8876
8889
|
})
|
|
8877
8890
|
]),
|
|
8878
8891
|
_: 1
|
|
8879
8892
|
/* STABLE */
|
|
8880
8893
|
}, 8, ["content"]),
|
|
8881
|
-
|
|
8882
|
-
content: D(
|
|
8894
|
+
k(D(WA), {
|
|
8895
|
+
content: D(g)("右")
|
|
8883
8896
|
}, {
|
|
8884
8897
|
default: U(() => [
|
|
8885
|
-
|
|
8898
|
+
Q("div", {
|
|
8886
8899
|
class: "icon icon-right",
|
|
8887
|
-
onClick: P[5] || (P[5] =
|
|
8900
|
+
onClick: P[5] || (P[5] = VA((t) => v("right"), ["stop"]))
|
|
8888
8901
|
})
|
|
8889
8902
|
]),
|
|
8890
8903
|
_: 1
|
|
8891
8904
|
/* STABLE */
|
|
8892
8905
|
}, 8, ["content"]),
|
|
8893
|
-
|
|
8894
|
-
content: D(
|
|
8906
|
+
k(D(WA), {
|
|
8907
|
+
content: D(g)("左下")
|
|
8895
8908
|
}, {
|
|
8896
8909
|
default: U(() => [
|
|
8897
|
-
|
|
8910
|
+
Q("div", {
|
|
8898
8911
|
class: "icon icon-bottom-left",
|
|
8899
|
-
onClick: P[6] || (P[6] =
|
|
8912
|
+
onClick: P[6] || (P[6] = VA((t) => v("leftDown"), ["stop"]))
|
|
8900
8913
|
})
|
|
8901
8914
|
]),
|
|
8902
8915
|
_: 1
|
|
8903
8916
|
/* STABLE */
|
|
8904
8917
|
}, 8, ["content"]),
|
|
8905
|
-
|
|
8906
|
-
content: D(
|
|
8918
|
+
k(D(WA), {
|
|
8919
|
+
content: D(g)("下")
|
|
8907
8920
|
}, {
|
|
8908
8921
|
default: U(() => [
|
|
8909
|
-
|
|
8922
|
+
Q("div", {
|
|
8910
8923
|
class: "icon icon-bottom",
|
|
8911
|
-
onClick: P[7] || (P[7] =
|
|
8924
|
+
onClick: P[7] || (P[7] = VA((t) => v("down"), ["stop"]))
|
|
8912
8925
|
})
|
|
8913
8926
|
]),
|
|
8914
8927
|
_: 1
|
|
8915
8928
|
/* STABLE */
|
|
8916
8929
|
}, 8, ["content"]),
|
|
8917
|
-
|
|
8918
|
-
content: D(
|
|
8930
|
+
k(D(WA), {
|
|
8931
|
+
content: D(g)("右下")
|
|
8919
8932
|
}, {
|
|
8920
8933
|
default: U(() => [
|
|
8921
|
-
|
|
8934
|
+
Q("div", {
|
|
8922
8935
|
class: "icon icon-bottom-right",
|
|
8923
|
-
onClick: P[8] || (P[8] =
|
|
8936
|
+
onClick: P[8] || (P[8] = VA((t) => v("rightDown"), ["stop"]))
|
|
8924
8937
|
})
|
|
8925
8938
|
]),
|
|
8926
8939
|
_: 1
|
|
@@ -8964,16 +8977,16 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
8964
8977
|
});
|
|
8965
8978
|
}, X = () => {
|
|
8966
8979
|
r.value = !r.value, P.value && (P.value.muted = r.value);
|
|
8967
|
-
},
|
|
8980
|
+
}, a = () => {
|
|
8968
8981
|
t.value = !t.value;
|
|
8969
|
-
},
|
|
8982
|
+
}, i = o(""), s = () => {
|
|
8970
8983
|
const q = document.createElement("canvas");
|
|
8971
8984
|
if (d.value) {
|
|
8972
8985
|
q.width = d.value.clientWidth, q.height = d.value.clientHeight;
|
|
8973
8986
|
const p = q.getContext("2d");
|
|
8974
8987
|
p == null || p.drawImage(d.value, 0, 0, q.width, q.height);
|
|
8975
8988
|
const m = q.toDataURL("image/jpg"), V = `【${f.title}】${le().format("YYYYMMDDHHmmss").toString()}.jpg`;
|
|
8976
|
-
if (
|
|
8989
|
+
if (i.value = m, "download" in document.createElement("a")) {
|
|
8977
8990
|
const R = document.createElement("a");
|
|
8978
8991
|
R.download = V, R.style.display = "none", R.href = m, document.body.appendChild(R), document.body.appendChild(q), R.click(), URL.revokeObjectURL(R.href), document.body.removeChild(R), document.body.removeChild(q);
|
|
8979
8992
|
}
|
|
@@ -9024,17 +9037,17 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
9024
9037
|
u.value = !0;
|
|
9025
9038
|
});
|
|
9026
9039
|
}
|
|
9027
|
-
), (q, p) => (fA(),
|
|
9028
|
-
|
|
9040
|
+
), (q, p) => (fA(), lA("div", x1, [
|
|
9041
|
+
k(D(Of), {
|
|
9029
9042
|
spinning: f.loading,
|
|
9030
9043
|
type: "component",
|
|
9031
9044
|
tip: "加载中..."
|
|
9032
9045
|
}, {
|
|
9033
9046
|
default: U(() => [
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
|
|
9037
|
-
|
|
9047
|
+
Q("div", O1, [
|
|
9048
|
+
Q("div", m1, [
|
|
9049
|
+
Q("div", l1, [
|
|
9050
|
+
Q(
|
|
9038
9051
|
"div",
|
|
9039
9052
|
D1,
|
|
9040
9053
|
rA(f.title.length > 20 ? f.title.slice(0, 19) + "..." : f.title),
|
|
@@ -9043,11 +9056,11 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
9043
9056
|
)
|
|
9044
9057
|
])
|
|
9045
9058
|
]),
|
|
9046
|
-
|
|
9047
|
-
["live"].includes(q.type) ? (fA(),
|
|
9059
|
+
Q("div", V1, [
|
|
9060
|
+
["live"].includes(q.type) ? (fA(), lA(
|
|
9048
9061
|
"span",
|
|
9049
9062
|
N1,
|
|
9050
|
-
rA(D(
|
|
9063
|
+
rA(D(g)("正在实时预览")),
|
|
9051
9064
|
1
|
|
9052
9065
|
/* TEXT */
|
|
9053
9066
|
)) : nA("v-if", !0),
|
|
@@ -9063,43 +9076,43 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
9063
9076
|
onLoaded: x,
|
|
9064
9077
|
src: f.videoUrl
|
|
9065
9078
|
}, null, 8, ["muted", "src"])) : nA("v-if", !0),
|
|
9066
|
-
|
|
9067
|
-
p[3] || (p[3] =
|
|
9079
|
+
Q("div", R1, [
|
|
9080
|
+
p[3] || (p[3] = Q(
|
|
9068
9081
|
"div",
|
|
9069
9082
|
{ class: "video-bottom_l" },
|
|
9070
9083
|
null,
|
|
9071
9084
|
-1
|
|
9072
9085
|
/* HOISTED */
|
|
9073
9086
|
)),
|
|
9074
|
-
|
|
9075
|
-
|
|
9087
|
+
Q("div", j1, [
|
|
9088
|
+
Q(
|
|
9076
9089
|
"div",
|
|
9077
9090
|
{
|
|
9078
9091
|
class: "controls",
|
|
9079
|
-
onDblclick: p[2] || (p[2] =
|
|
9092
|
+
onDblclick: p[2] || (p[2] = VA((m) => m.stopPropagation(), ["stop"]))
|
|
9080
9093
|
},
|
|
9081
9094
|
[
|
|
9082
|
-
|
|
9083
|
-
content: D(
|
|
9095
|
+
k(D(WA), {
|
|
9096
|
+
content: D(g)("声音")
|
|
9084
9097
|
}, {
|
|
9085
9098
|
default: U(() => [
|
|
9086
|
-
|
|
9099
|
+
k(D(N9), {
|
|
9087
9100
|
class: "icon icon-volume",
|
|
9088
9101
|
icon: r.value ? "muted" : "volume",
|
|
9089
|
-
onClick:
|
|
9102
|
+
onClick: VA(X, ["stop"])
|
|
9090
9103
|
}, null, 8, ["icon"])
|
|
9091
9104
|
]),
|
|
9092
9105
|
_: 1
|
|
9093
9106
|
/* STABLE */
|
|
9094
9107
|
}, 8, ["content"]),
|
|
9095
|
-
|
|
9096
|
-
content: D(
|
|
9108
|
+
k(D(WA), {
|
|
9109
|
+
content: D(g)("截图")
|
|
9097
9110
|
}, {
|
|
9098
9111
|
default: U(() => [
|
|
9099
|
-
|
|
9112
|
+
k(D(N9), {
|
|
9100
9113
|
class: "icon icon-screenshot",
|
|
9101
9114
|
icon: "screenshot",
|
|
9102
|
-
onClick:
|
|
9115
|
+
onClick: VA(s, ["stop"])
|
|
9103
9116
|
})
|
|
9104
9117
|
]),
|
|
9105
9118
|
_: 1
|
|
@@ -9107,14 +9120,14 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
9107
9120
|
}, 8, ["content"]),
|
|
9108
9121
|
c("control") ? (fA(), XA(D(WA), {
|
|
9109
9122
|
key: 0,
|
|
9110
|
-
content: D(
|
|
9123
|
+
content: D(g)("聚焦-")
|
|
9111
9124
|
}, {
|
|
9112
9125
|
default: U(() => [
|
|
9113
9126
|
["live", "polling"].includes(f.type) ? (fA(), XA(D(N9), {
|
|
9114
9127
|
key: 0,
|
|
9115
9128
|
class: "icon icon-shrink",
|
|
9116
9129
|
icon: "shrink",
|
|
9117
|
-
onClick: p[0] || (p[0] =
|
|
9130
|
+
onClick: p[0] || (p[0] = VA((m) => H("zoomOut"), ["stop"]))
|
|
9118
9131
|
})) : nA("v-if", !0)
|
|
9119
9132
|
]),
|
|
9120
9133
|
_: 1
|
|
@@ -9122,14 +9135,14 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
9122
9135
|
}, 8, ["content"])) : nA("v-if", !0),
|
|
9123
9136
|
c("control") ? (fA(), XA(D(WA), {
|
|
9124
9137
|
key: 1,
|
|
9125
|
-
content: D(
|
|
9138
|
+
content: D(g)("聚焦+")
|
|
9126
9139
|
}, {
|
|
9127
9140
|
default: U(() => [
|
|
9128
9141
|
["live", "polling"].includes(f.type) ? (fA(), XA(D(N9), {
|
|
9129
9142
|
key: 0,
|
|
9130
9143
|
class: "icon icon-enlarge",
|
|
9131
9144
|
icon: "enlarge",
|
|
9132
|
-
onClick: p[1] || (p[1] =
|
|
9145
|
+
onClick: p[1] || (p[1] = VA((m) => H("zoomIn"), ["stop"]))
|
|
9133
9146
|
})) : nA("v-if", !0)
|
|
9134
9147
|
]),
|
|
9135
9148
|
_: 1
|
|
@@ -9137,14 +9150,14 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
9137
9150
|
}, 8, ["content"])) : nA("v-if", !0),
|
|
9138
9151
|
c("control") ? (fA(), XA(D(WA), {
|
|
9139
9152
|
key: 2,
|
|
9140
|
-
content: D(
|
|
9153
|
+
content: D(g)("方向控制")
|
|
9141
9154
|
}, {
|
|
9142
9155
|
default: U(() => [
|
|
9143
9156
|
["live", "polling"].includes(f.type) ? (fA(), XA(D(N9), {
|
|
9144
9157
|
key: 0,
|
|
9145
9158
|
class: "icon icon-direction-control",
|
|
9146
9159
|
icon: "direction-control",
|
|
9147
|
-
onClick:
|
|
9160
|
+
onClick: VA(a, ["stop"])
|
|
9148
9161
|
})) : nA("v-if", !0)
|
|
9149
9162
|
]),
|
|
9150
9163
|
_: 1
|
|
@@ -9211,7 +9224,7 @@ const b1 = u1.post("data/device-auth"), c1 = /* @__PURE__ */ qA({
|
|
|
9211
9224
|
P();
|
|
9212
9225
|
}, {
|
|
9213
9226
|
deep: !0
|
|
9214
|
-
}), () =>
|
|
9227
|
+
}), () => k(i9, null, [A.default({
|
|
9215
9228
|
videoUrl: r.value,
|
|
9216
9229
|
loading: v.value,
|
|
9217
9230
|
onDirectionControl: t,
|
|
@@ -9224,7 +9237,7 @@ function L1(e) {
|
|
|
9224
9237
|
toggle: v
|
|
9225
9238
|
} = $9(f);
|
|
9226
9239
|
return {
|
|
9227
|
-
render: () =>
|
|
9240
|
+
render: () => k(q1, {
|
|
9228
9241
|
ref: f,
|
|
9229
9242
|
gridNum: e.gridNum,
|
|
9230
9243
|
activeIndex: A.value,
|
|
@@ -9235,7 +9248,7 @@ function L1(e) {
|
|
|
9235
9248
|
index: P
|
|
9236
9249
|
}) => {
|
|
9237
9250
|
const t = e.deviceList[P];
|
|
9238
|
-
return
|
|
9251
|
+
return k(o1, {
|
|
9239
9252
|
deviceInfo: t
|
|
9240
9253
|
}, {
|
|
9241
9254
|
default: ({
|
|
@@ -9243,7 +9256,7 @@ function L1(e) {
|
|
|
9243
9256
|
onDirectionControl: d,
|
|
9244
9257
|
onZoomControl: n,
|
|
9245
9258
|
loading: u
|
|
9246
|
-
}) =>
|
|
9259
|
+
}) => k(T1, {
|
|
9247
9260
|
type: "live",
|
|
9248
9261
|
loading: u,
|
|
9249
9262
|
videoUrl: z,
|
|
@@ -9286,7 +9299,7 @@ const y1 = /* @__PURE__ */ qA({
|
|
|
9286
9299
|
});
|
|
9287
9300
|
return (t, z) => (fA(), XA(D(j9), {
|
|
9288
9301
|
size: "mini",
|
|
9289
|
-
title: D(
|
|
9302
|
+
title: D(g)("视频监控"),
|
|
9290
9303
|
"custom-class": `das-linakge-video-dialog ${P.value}`,
|
|
9291
9304
|
modelValue: f.value,
|
|
9292
9305
|
"onUpdate:modelValue": z[0] || (z[0] = (d) => f.value = d),
|
|
@@ -9298,18 +9311,18 @@ const y1 = /* @__PURE__ */ qA({
|
|
|
9298
9311
|
onClosed: t.closeCallback
|
|
9299
9312
|
}, {
|
|
9300
9313
|
header: U(() => [
|
|
9301
|
-
|
|
9314
|
+
Q(
|
|
9302
9315
|
"div",
|
|
9303
9316
|
null,
|
|
9304
|
-
rA(D(
|
|
9317
|
+
rA(D(g)("视频监控")),
|
|
9305
9318
|
1
|
|
9306
9319
|
/* TEXT */
|
|
9307
9320
|
),
|
|
9308
|
-
|
|
9309
|
-
content: D(
|
|
9321
|
+
k(D(WA), {
|
|
9322
|
+
content: D(g)("页面全屏")
|
|
9310
9323
|
}, {
|
|
9311
9324
|
default: U(() => [
|
|
9312
|
-
|
|
9325
|
+
k(D(N9), {
|
|
9313
9326
|
class: "icon",
|
|
9314
9327
|
icon: "fullscreen2",
|
|
9315
9328
|
iconColor: "#999",
|
|
@@ -9357,19 +9370,19 @@ const y1 = /* @__PURE__ */ qA({
|
|
|
9357
9370
|
let x = {
|
|
9358
9371
|
projectId: P,
|
|
9359
9372
|
deviceIds: n == null ? void 0 : n.deviceId
|
|
9360
|
-
},
|
|
9361
|
-
let s =
|
|
9373
|
+
}, a = (await v(x)).map((i) => {
|
|
9374
|
+
let s = i.lookupOrOperation == 1;
|
|
9362
9375
|
return {
|
|
9363
|
-
id:
|
|
9364
|
-
productId:
|
|
9365
|
-
deviceId:
|
|
9366
|
-
deviceName:
|
|
9367
|
-
authType:
|
|
9376
|
+
id: i.id,
|
|
9377
|
+
productId: i.productId,
|
|
9378
|
+
deviceId: i.deviceId,
|
|
9379
|
+
deviceName: i.deviceName,
|
|
9380
|
+
authType: i.controlAuthorization == 1 ? 2 : 1,
|
|
9368
9381
|
// 1 查看权限 2 查看+操作权限
|
|
9369
9382
|
show: !!s
|
|
9370
9383
|
};
|
|
9371
9384
|
});
|
|
9372
|
-
A.value =
|
|
9385
|
+
A.value = a.filter((i) => !!i.show), (u = A.value) != null && u.length && W1({ gridNum: e.value, deviceList: A.value });
|
|
9373
9386
|
}
|
|
9374
9387
|
}
|
|
9375
9388
|
}));
|
|
@@ -11198,39 +11211,39 @@ const D8 = oA(`/api/tool/event-bus/${Tf}/`), pe = D8.post("/publish"), V8 = pf.g
|
|
|
11198
11211
|
j && (R = R.slice(0, R.indexOf(l)));
|
|
11199
11212
|
const O = "_zdkbInfo", N = R.endsWith(O);
|
|
11200
11213
|
if (N && (R = R.slice(0, R.indexOf(O))), R.includes(":")) {
|
|
11201
|
-
const Z = R.split(":"), [T = "",
|
|
11214
|
+
const Z = R.split(":"), [T = "", M = ""] = Z;
|
|
11202
11215
|
if (!T) return;
|
|
11203
|
-
const
|
|
11204
|
-
if (
|
|
11216
|
+
const J = H.find((_) => _.code === T);
|
|
11217
|
+
if (J) {
|
|
11205
11218
|
if (N || j) {
|
|
11206
|
-
const _ = await M3(
|
|
11219
|
+
const _ = await M3(J.code, M);
|
|
11207
11220
|
if (_) {
|
|
11208
11221
|
const G = JSON.stringify({ showEchartTooltip: j });
|
|
11209
|
-
(q = e.query) != null && q.app && e.query.app ===
|
|
11210
|
-
|
|
11222
|
+
(q = e.query) != null && q.app && e.query.app === J.code && ((p = e.query) != null && p.menu) && e.query.menu === M ? mA.sendMessageToMicroApp(_.applicationPath, `${M}:todetail`, G) : (await A({ microApp: J, menuCode: M }), setTimeout(() => {
|
|
11223
|
+
mA.sendMessageToMicroApp(_.applicationPath, `${M}:todetail`, G, {
|
|
11211
11224
|
awaitListener: !0
|
|
11212
11225
|
});
|
|
11213
11226
|
}, 300));
|
|
11214
11227
|
return;
|
|
11215
11228
|
}
|
|
11216
11229
|
}
|
|
11217
|
-
A({ microApp:
|
|
11230
|
+
A({ microApp: J, menuCode: M });
|
|
11218
11231
|
}
|
|
11219
11232
|
} else {
|
|
11220
|
-
const Z = R, T = H.find((
|
|
11233
|
+
const Z = R, T = H.find((M) => M.code === Z);
|
|
11221
11234
|
if (T)
|
|
11222
11235
|
A({ microApp: T });
|
|
11223
11236
|
else {
|
|
11224
|
-
const [
|
|
11225
|
-
if (
|
|
11226
|
-
const _ = H.find((G) => G.code ===
|
|
11237
|
+
const [M, J] = await V8().run({ menuCode: Z });
|
|
11238
|
+
if (M) return;
|
|
11239
|
+
const _ = H.find((G) => G.code === J);
|
|
11227
11240
|
if (_) {
|
|
11228
11241
|
if (N || j) {
|
|
11229
11242
|
const G = await M3(_.code, Z);
|
|
11230
11243
|
if (G) {
|
|
11231
11244
|
const Y = JSON.stringify({ showEchartTooltip: j });
|
|
11232
|
-
(m = e.query) != null && m.app && e.query.app === T.code && ((V = e.query) != null && V.menu) && e.query.menu === Z ?
|
|
11233
|
-
|
|
11245
|
+
(m = e.query) != null && m.app && e.query.app === T.code && ((V = e.query) != null && V.menu) && e.query.menu === Z ? mA.sendMessageToMicroApp(G.applicationPath, `${Z}:todetail`, Y) : (await A({ microApp: T, menuCode: Z }), setTimeout(() => {
|
|
11246
|
+
mA.sendMessageToMicroApp(G.applicationPath, `${Z}:todetail`, Y, {
|
|
11234
11247
|
awaitListener: !0
|
|
11235
11248
|
});
|
|
11236
11249
|
}, 300));
|
|
@@ -11285,12 +11298,12 @@ const D8 = oA(`/api/tool/event-bus/${Tf}/`), pe = D8.post("/publish"), V8 = pf.g
|
|
|
11285
11298
|
v = setInterval(() => {
|
|
11286
11299
|
X();
|
|
11287
11300
|
}, 72e5);
|
|
11288
|
-
const
|
|
11289
|
-
s === "online" &&
|
|
11301
|
+
const a = o("online"), i = (s) => {
|
|
11302
|
+
s === "online" && a.value === "offline" && setTimeout(() => {
|
|
11290
11303
|
X();
|
|
11291
|
-
}, 5e3),
|
|
11304
|
+
}, 5e3), a.value = (window.navigator.onLine ? "on" : "off") + "line";
|
|
11292
11305
|
};
|
|
11293
|
-
window.addEventListener("online", () =>
|
|
11306
|
+
window.addEventListener("online", () => i("online")), window.addEventListener("offline", () => i("offline"));
|
|
11294
11307
|
}), K9(() => {
|
|
11295
11308
|
v && clearInterval(v);
|
|
11296
11309
|
}), {};
|
|
@@ -11352,112 +11365,112 @@ const D8 = oA(`/api/tool/event-bus/${Tf}/`), pe = D8.post("/publish"), V8 = pf.g
|
|
|
11352
11365
|
// 事件等级id
|
|
11353
11366
|
timeLimit: ""
|
|
11354
11367
|
// 处置时限
|
|
11355
|
-
}), x = o(!1), X = o([]),
|
|
11368
|
+
}), x = o(!1), X = o([]), a = o([]), i = o([
|
|
11356
11369
|
{ id: 2, name: AA("时").value },
|
|
11357
11370
|
{ id: 1, name: AA("分").value },
|
|
11358
11371
|
{ id: 3, name: AA("不限").value }
|
|
11359
11372
|
]), s = o([]), b = o(""), H = o(AA("告警对象位置").value), c = o(""), q = o([]), p = o("");
|
|
11360
11373
|
o("[]");
|
|
11361
|
-
const m = o(!0), V = o(!0), R = async (
|
|
11374
|
+
const m = o(!0), V = o(!0), R = async (F) => {
|
|
11362
11375
|
const I = { name: "1" };
|
|
11363
|
-
|
|
11364
|
-
const [
|
|
11365
|
-
return
|
|
11366
|
-
}, l = async (
|
|
11367
|
-
const I = { name:
|
|
11368
|
-
return
|
|
11376
|
+
F != null && F.id && (I.spaceId = F.id);
|
|
11377
|
+
const [B, LA] = await w8(I).run();
|
|
11378
|
+
return B ? {} : LA;
|
|
11379
|
+
}, l = async (F) => {
|
|
11380
|
+
const I = { name: F || "" }, [B, LA] = await E8(I).run();
|
|
11381
|
+
return B ? {} : LA;
|
|
11369
11382
|
}, j = o(!0), O = o(!0), N = o([]), Z = async () => {
|
|
11370
|
-
const [
|
|
11371
|
-
if (
|
|
11372
|
-
N.value = I.data.filter((
|
|
11383
|
+
const [F, I] = await W8().run({ pageIndex: -1, pageSize: -1 });
|
|
11384
|
+
if (F) return {};
|
|
11385
|
+
N.value = I.data.filter((B) => B.status), N.value.length > 0 && (n.value.workOrderRules = N.value[0].id);
|
|
11373
11386
|
};
|
|
11374
|
-
OA(d, (
|
|
11375
|
-
|
|
11387
|
+
OA(d, (F) => {
|
|
11388
|
+
F || (Y(), h());
|
|
11376
11389
|
}), OA(
|
|
11377
11390
|
V,
|
|
11378
|
-
(
|
|
11379
|
-
|
|
11391
|
+
(F) => {
|
|
11392
|
+
F ? (m.value = !0, n.value.customPath = AA("选填").value) : (m.value = !1, n.value.customPath = "");
|
|
11380
11393
|
},
|
|
11381
11394
|
{ immediate: !0 }
|
|
11382
11395
|
), OA(
|
|
11383
11396
|
O,
|
|
11384
|
-
(
|
|
11385
|
-
|
|
11397
|
+
(F) => {
|
|
11398
|
+
F ? (n.value.reportTheme = AA("告警对象").value, j.value = !0) : (c.value = AA("请输入").value, n.value.reportTheme = "", j.value = !1);
|
|
11386
11399
|
},
|
|
11387
11400
|
{ immediate: !0 }
|
|
11388
11401
|
);
|
|
11389
|
-
const T = (
|
|
11402
|
+
const T = (F) => {
|
|
11390
11403
|
var I;
|
|
11391
11404
|
return (I = t.value) == null ? void 0 : I.parentNode.parentNode;
|
|
11392
|
-
},
|
|
11405
|
+
}, M = (F) => {
|
|
11393
11406
|
u.value.reportTheme = "";
|
|
11394
|
-
},
|
|
11395
|
-
I.length > 0 && (b.value = I[0].path), n.value.reportPosition =
|
|
11396
|
-
}, _ = (
|
|
11397
|
-
|
|
11398
|
-
}, G = (
|
|
11399
|
-
|
|
11407
|
+
}, J = (F, I) => {
|
|
11408
|
+
I.length > 0 && (b.value = I[0].path), n.value.reportPosition = F, p.value = "";
|
|
11409
|
+
}, _ = (F) => {
|
|
11410
|
+
F && (u.value.reportPosition = "", b.value = ""), F ? (n.value.reportPosition = null, b.value = "", H.value = AA("告警对象位置").value) : (n.value.reportPosition = null, b.value = "", H.value = AA("请选择").value);
|
|
11411
|
+
}, G = (F) => {
|
|
11412
|
+
F && (u.value.reportTheme = ""), F ? (n.value.reportTheme = "", c.value = AA("告警对象").value) : (n.value.reportTheme = "", c.value = AA("请输入").value);
|
|
11400
11413
|
}, Y = () => {
|
|
11401
11414
|
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 = "";
|
|
11402
|
-
},
|
|
11403
|
-
n.value.processTypeId = "confirm", n.value.reason = "", n.value.treatmentPlan = "", n.value.remarks = "", n.value.reportPosition = "", n.value.reportTheme = "", n.value.workOrderRules = null, V.value = !0, O.value = !0, j.value = !0, n.value.reportTheme = AA("告警对象").value, b.value = "", H.value = AA("告警对象位置").value, c.value = AA("请输入").value, n.value.eventTypeId = "", n.value.eventLevelId = null, n.value.timeLimit = "", n.value.interval = 1, X.value = [],
|
|
11404
|
-
}, C = (
|
|
11405
|
-
|
|
11415
|
+
}, h = () => {
|
|
11416
|
+
n.value.processTypeId = "confirm", n.value.reason = "", n.value.treatmentPlan = "", n.value.remarks = "", n.value.reportPosition = "", n.value.reportTheme = "", n.value.workOrderRules = null, V.value = !0, O.value = !0, j.value = !0, n.value.reportTheme = AA("告警对象").value, b.value = "", H.value = AA("告警对象位置").value, c.value = AA("请输入").value, n.value.eventTypeId = "", n.value.eventLevelId = null, n.value.timeLimit = "", n.value.interval = 1, X.value = [], a.value = [];
|
|
11417
|
+
}, C = (F) => {
|
|
11418
|
+
F == "eventTypeId" && (n.value.eventLevelId = null, W()), F == "eventLevelId" && E(), F == "interval" && (u.value.timeLimit = "", n.value.interval == 3 ? (x.value = !0, n.value.timeLimit = "") : x.value = !1);
|
|
11406
11419
|
}, L = async () => {
|
|
11407
|
-
const [
|
|
11408
|
-
if (
|
|
11420
|
+
const [F, I] = await I8().run();
|
|
11421
|
+
if (F) return {};
|
|
11409
11422
|
X.value = I, n.value.eventTypeId || (n.value.eventTypeId = I[0] ? I[0].id : null), W();
|
|
11410
11423
|
}, W = async () => {
|
|
11411
|
-
const
|
|
11424
|
+
const F = {
|
|
11412
11425
|
eventTypeId: n.value.eventTypeId
|
|
11413
|
-
}, [I,
|
|
11426
|
+
}, [I, B] = await M8(F).run();
|
|
11414
11427
|
if (I) return {};
|
|
11415
11428
|
const LA = { 1: AA("一级").value, 2: AA("二级").value, 3: AA("三级").value, 4: AA("四级").value };
|
|
11416
|
-
|
|
11429
|
+
a.value = B.map((CA) => ({
|
|
11417
11430
|
id: `${CA}`,
|
|
11418
11431
|
name: LA[CA] ? LA[CA] : CA
|
|
11419
|
-
})),
|
|
11432
|
+
})), B.length && !n.value.eventLevelId && (n.value.eventLevelId = a.value[0].id, E());
|
|
11420
11433
|
}, E = async () => {
|
|
11421
|
-
const
|
|
11434
|
+
const F = {
|
|
11422
11435
|
eventTypeId: n.value.eventTypeId,
|
|
11423
11436
|
eventLevel: n.value.eventLevelId
|
|
11424
|
-
}, [I,
|
|
11437
|
+
}, [I, B] = await g8(F).run();
|
|
11425
11438
|
if (I) return {};
|
|
11426
|
-
n.value.interval =
|
|
11427
|
-
}, w = (
|
|
11428
|
-
Y(),
|
|
11439
|
+
n.value.interval = B.handleTimeUnit, B.handleTimeUnit == 3 ? n.value.timeLimit = "" : n.value.timeLimit = B.handleTime;
|
|
11440
|
+
}, w = (F) => {
|
|
11441
|
+
Y(), F == "createcontingency" && L();
|
|
11429
11442
|
}, zA = async () => {
|
|
11430
|
-
const
|
|
11443
|
+
const F = {
|
|
11431
11444
|
logic: !1,
|
|
11432
11445
|
isTime: !1,
|
|
11433
11446
|
projectId: v.projectId
|
|
11434
11447
|
};
|
|
11435
11448
|
P.value = !0;
|
|
11436
|
-
const [I,
|
|
11449
|
+
const [I, B] = await o8(F).run();
|
|
11437
11450
|
if (I) {
|
|
11438
11451
|
P.value = !1;
|
|
11439
11452
|
return;
|
|
11440
11453
|
}
|
|
11441
|
-
P.value = !1, s.value =
|
|
11454
|
+
P.value = !1, s.value = B;
|
|
11442
11455
|
for (let LA = 0; LA < s.value.length; LA++)
|
|
11443
11456
|
s.value[LA].id === "createorder" && Z();
|
|
11444
11457
|
}, dA = () => {
|
|
11445
|
-
let
|
|
11458
|
+
let F = !0;
|
|
11446
11459
|
if (n.value.processTypeId == "dealwith")
|
|
11447
|
-
n.value.reason.trim() || (
|
|
11460
|
+
n.value.reason.trim() || (F = !1, u.value.reason = AA("必填,最多50个字符/汉字").value), n.value.treatmentPlan.trim() || (F = !1, u.value.treatmentPlan = AA("必填,最多50个字符/汉字").value);
|
|
11448
11461
|
else if (n.value.processTypeId == "createorder")
|
|
11449
|
-
V.value ? u.value.reportPosition = "" : !n.value.reportPosition && !n.value.customPath ? (
|
|
11462
|
+
V.value ? u.value.reportPosition = "" : !n.value.reportPosition && !n.value.customPath ? (F = !1, u.value.reportPosition = AA("必填").value) : u.value.reportPosition = "", O.value || n.value.reportTheme ? u.value.reportTheme = "" : (F = !1, u.value.reportTheme = AA("必填,最多20个汉字/字符").value), n.value.workOrderRules ? u.value.workOrderRules = "" : (F = !1, u.value.workOrderRules = AA("必填").value);
|
|
11450
11463
|
else if (n.value.processTypeId == "createcontingency") {
|
|
11451
11464
|
const I = /^[1-9][0-9]{0,2}$/;
|
|
11452
|
-
n.value.eventTypeId || (
|
|
11465
|
+
n.value.eventTypeId || (F = !1, u.value.eventTypeId = AA("必选").value), n.value.eventLevelId || (F = !1, u.value.eventLevelId = AA("必选").value), n.value.interval != 3 && !I.test(n.value.timeLimit) && (F = !1, u.value.timeLimit = AA("必填,请输入1~999之间的正整数").value);
|
|
11453
11466
|
}
|
|
11454
|
-
return
|
|
11455
|
-
},
|
|
11467
|
+
return F;
|
|
11468
|
+
}, DA = () => {
|
|
11456
11469
|
d9();
|
|
11457
|
-
}, K = async (
|
|
11458
|
-
dA() && (z.value =
|
|
11470
|
+
}, K = async (F) => {
|
|
11471
|
+
dA() && (z.value = F, $());
|
|
11459
11472
|
}, $ = async () => {
|
|
11460
|
-
const
|
|
11473
|
+
const F = {
|
|
11461
11474
|
projectId: v.projectId,
|
|
11462
11475
|
processStatus: z.value,
|
|
11463
11476
|
//处理状态 1=结束处理 2=继续处理
|
|
@@ -11466,8 +11479,8 @@ const D8 = oA(`/api/tool/event-bus/${Tf}/`), pe = D8.post("/publish"), V8 = pf.g
|
|
|
11466
11479
|
processTypeId: n.value.processTypeId
|
|
11467
11480
|
//处理类型id
|
|
11468
11481
|
};
|
|
11469
|
-
n.value.processTypeId === "createorder" ? (
|
|
11470
|
-
const [I,
|
|
11482
|
+
n.value.processTypeId === "createorder" ? (F.path = V.value ? "" : n.value.customPath, F.topic = O.value ? "" : n.value.reportTheme, F.spaceId = V.value ? "" : n.value.reportPosition ?? "", F.orderId = n.value.workOrderRules) : n.value.processTypeId === "createcontingency" ? (F.eventTypeId = n.value.eventTypeId, F.eventLevelId = n.value.eventLevelId, F.timeLimit = n.value.interval == 3 ? null : Number(n.value.timeLimit), F.interval = n.value.interval) : (F.reason = n.value.reason, F.treatmentPlan = n.value.treatmentPlan, F.remarks = n.value.remarks), P.value = !0, r("emitFn", "startHandle");
|
|
11483
|
+
const [I, B] = await L8(F, {
|
|
11471
11484
|
params: {
|
|
11472
11485
|
projectId: v.projectId
|
|
11473
11486
|
}
|
|
@@ -11485,10 +11498,10 @@ const D8 = oA(`/api/tool/event-bus/${Tf}/`), pe = D8.post("/publish"), V8 = pf.g
|
|
|
11485
11498
|
return A({
|
|
11486
11499
|
open: eA,
|
|
11487
11500
|
close: d9
|
|
11488
|
-
}), (
|
|
11489
|
-
|
|
11501
|
+
}), (F, I) => (fA(), lA("div", B8, [
|
|
11502
|
+
k(D(j9), {
|
|
11490
11503
|
modelValue: d.value,
|
|
11491
|
-
"onUpdate:modelValue": I[31] || (I[31] = (
|
|
11504
|
+
"onUpdate:modelValue": I[31] || (I[31] = (B) => d.value = B),
|
|
11492
11505
|
type: "basic",
|
|
11493
11506
|
size: "small",
|
|
11494
11507
|
height: 500,
|
|
@@ -11506,10 +11519,10 @@ const D8 = oA(`/api/tool/event-bus/${Tf}/`), pe = D8.post("/publish"), V8 = pf.g
|
|
|
11506
11519
|
)
|
|
11507
11520
|
]),
|
|
11508
11521
|
footer: U(() => [
|
|
11509
|
-
|
|
11510
|
-
|
|
11522
|
+
Q("div", U8, [
|
|
11523
|
+
k(D(kA), {
|
|
11511
11524
|
size: "middle",
|
|
11512
|
-
onClick:
|
|
11525
|
+
onClick: DA
|
|
11513
11526
|
}, {
|
|
11514
11527
|
default: U(() => [
|
|
11515
11528
|
aA(
|
|
@@ -11521,10 +11534,10 @@ const D8 = oA(`/api/tool/event-bus/${Tf}/`), pe = D8.post("/publish"), V8 = pf.g
|
|
|
11521
11534
|
_: 1
|
|
11522
11535
|
/* STABLE */
|
|
11523
11536
|
}),
|
|
11524
|
-
|
|
11537
|
+
k(D(kA), {
|
|
11525
11538
|
block: "",
|
|
11526
11539
|
size: "middle",
|
|
11527
|
-
onClick: I[29] || (I[29] = (
|
|
11540
|
+
onClick: I[29] || (I[29] = (B) => K(1))
|
|
11528
11541
|
}, {
|
|
11529
11542
|
default: U(() => [
|
|
11530
11543
|
aA(
|
|
@@ -11536,11 +11549,11 @@ const D8 = oA(`/api/tool/event-bus/${Tf}/`), pe = D8.post("/publish"), V8 = pf.g
|
|
|
11536
11549
|
_: 1
|
|
11537
11550
|
/* STABLE */
|
|
11538
11551
|
}),
|
|
11539
|
-
|
|
11552
|
+
k(D(kA), {
|
|
11540
11553
|
block: "",
|
|
11541
11554
|
btnType: "primary",
|
|
11542
11555
|
size: "middle",
|
|
11543
|
-
onClick: I[30] || (I[30] = (
|
|
11556
|
+
onClick: I[30] || (I[30] = (B) => K(2))
|
|
11544
11557
|
}, {
|
|
11545
11558
|
default: U(() => [
|
|
11546
11559
|
aA(
|
|
@@ -11555,9 +11568,9 @@ const D8 = oA(`/api/tool/event-bus/${Tf}/`), pe = D8.post("/publish"), V8 = pf.g
|
|
|
11555
11568
|
])
|
|
11556
11569
|
]),
|
|
11557
11570
|
default: U(() => [
|
|
11558
|
-
|
|
11571
|
+
k(D(Of), { spinning: P.value }, {
|
|
11559
11572
|
default: U(() => [
|
|
11560
|
-
|
|
11573
|
+
Q(
|
|
11561
11574
|
"div",
|
|
11562
11575
|
{
|
|
11563
11576
|
ref_key: "myDialogBody",
|
|
@@ -11565,18 +11578,18 @@ const D8 = oA(`/api/tool/event-bus/${Tf}/`), pe = D8.post("/publish"), V8 = pf.g
|
|
|
11565
11578
|
class: "handle-alarm-dialog-content"
|
|
11566
11579
|
},
|
|
11567
11580
|
[
|
|
11568
|
-
|
|
11581
|
+
k(D(Ie), {
|
|
11569
11582
|
style: { width: "100%", height: "100%", "align-items": "center" },
|
|
11570
11583
|
cols: 1,
|
|
11571
11584
|
alignType: "horizontal"
|
|
11572
11585
|
}, {
|
|
11573
11586
|
default: U(() => [
|
|
11574
|
-
|
|
11587
|
+
k(D(yA), {
|
|
11575
11588
|
label: D(AA)("处理类型").value,
|
|
11576
11589
|
required: "",
|
|
11577
11590
|
type: "select",
|
|
11578
11591
|
modelValue: n.value.processTypeId,
|
|
11579
|
-
"onUpdate:modelValue": I[0] || (I[0] = (
|
|
11592
|
+
"onUpdate:modelValue": I[0] || (I[0] = (B) => n.value.processTypeId = B),
|
|
11580
11593
|
options: s.value,
|
|
11581
11594
|
col: 1,
|
|
11582
11595
|
optionsLabelKey: "name",
|
|
@@ -11593,11 +11606,11 @@ const D8 = oA(`/api/tool/event-bus/${Tf}/`), pe = D8.post("/publish"), V8 = pf.g
|
|
|
11593
11606
|
type: "input",
|
|
11594
11607
|
maxlength: "50",
|
|
11595
11608
|
col: 1,
|
|
11596
|
-
onFocus: I[1] || (I[1] = (
|
|
11609
|
+
onFocus: I[1] || (I[1] = (B) => u.value.reason = ""),
|
|
11597
11610
|
modelValue: n.value.reason,
|
|
11598
|
-
"onUpdate:modelValue": I[2] || (I[2] = (
|
|
11611
|
+
"onUpdate:modelValue": I[2] || (I[2] = (B) => n.value.reason = B),
|
|
11599
11612
|
error: u.value.reason,
|
|
11600
|
-
"onUpdate:error": I[3] || (I[3] = (
|
|
11613
|
+
"onUpdate:error": I[3] || (I[3] = (B) => u.value.reason = B),
|
|
11601
11614
|
marginBottom: "30px",
|
|
11602
11615
|
marginRight: "0"
|
|
11603
11616
|
}, null, 8, ["label", "required", "modelValue", "error"])) : nA("v-if", !0),
|
|
@@ -11608,11 +11621,11 @@ const D8 = oA(`/api/tool/event-bus/${Tf}/`), pe = D8.post("/publish"), V8 = pf.g
|
|
|
11608
11621
|
type: "input",
|
|
11609
11622
|
maxlength: "50",
|
|
11610
11623
|
col: 1,
|
|
11611
|
-
onFocus: I[4] || (I[4] = (
|
|
11624
|
+
onFocus: I[4] || (I[4] = (B) => u.value.treatmentPlan = ""),
|
|
11612
11625
|
modelValue: n.value.treatmentPlan,
|
|
11613
|
-
"onUpdate:modelValue": I[5] || (I[5] = (
|
|
11626
|
+
"onUpdate:modelValue": I[5] || (I[5] = (B) => n.value.treatmentPlan = B),
|
|
11614
11627
|
error: u.value.treatmentPlan,
|
|
11615
|
-
"onUpdate:error": I[6] || (I[6] = (
|
|
11628
|
+
"onUpdate:error": I[6] || (I[6] = (B) => u.value.treatmentPlan = B),
|
|
11616
11629
|
marginBottom: "30px",
|
|
11617
11630
|
marginRight: "0"
|
|
11618
11631
|
}, null, 8, ["label", "required", "modelValue", "error"])) : nA("v-if", !0),
|
|
@@ -11625,7 +11638,7 @@ const D8 = oA(`/api/tool/event-bus/${Tf}/`), pe = D8.post("/publish"), V8 = pf.g
|
|
|
11625
11638
|
maxlength: "100",
|
|
11626
11639
|
col: 1,
|
|
11627
11640
|
modelValue: n.value.remarks,
|
|
11628
|
-
"onUpdate:modelValue": I[7] || (I[7] = (
|
|
11641
|
+
"onUpdate:modelValue": I[7] || (I[7] = (B) => n.value.remarks = B),
|
|
11629
11642
|
marginBottom: "30px",
|
|
11630
11643
|
marginRight: "0"
|
|
11631
11644
|
}, null, 8, ["label", "modelValue"])) : nA("v-if", !0),
|
|
@@ -11635,44 +11648,44 @@ const D8 = oA(`/api/tool/event-bus/${Tf}/`), pe = D8.post("/publish"), V8 = pf.g
|
|
|
11635
11648
|
required: "",
|
|
11636
11649
|
type: "custom",
|
|
11637
11650
|
error: u.value.reportPosition,
|
|
11638
|
-
"onUpdate:error": I[13] || (I[13] = (
|
|
11651
|
+
"onUpdate:error": I[13] || (I[13] = (B) => u.value.reportPosition = B),
|
|
11639
11652
|
marginBottom: "20px",
|
|
11640
11653
|
marginRight: "0"
|
|
11641
11654
|
}, {
|
|
11642
11655
|
default: U(() => [
|
|
11643
|
-
|
|
11644
|
-
|
|
11645
|
-
|
|
11656
|
+
Q("div", k8, [
|
|
11657
|
+
Q("div", Q8, [
|
|
11658
|
+
k(D(br), {
|
|
11646
11659
|
borderType: "underline",
|
|
11647
11660
|
props: { disabled: "_disabled", label: "name" },
|
|
11648
11661
|
modelValue: n.value.reportPosition,
|
|
11649
|
-
"onUpdate:modelValue": I[8] || (I[8] = (
|
|
11662
|
+
"onUpdate:modelValue": I[8] || (I[8] = (B) => n.value.reportPosition = B),
|
|
11650
11663
|
path: b.value,
|
|
11651
|
-
"onUpdate:path": I[9] || (I[9] = (
|
|
11664
|
+
"onUpdate:path": I[9] || (I[9] = (B) => b.value = B),
|
|
11652
11665
|
keyword: p.value,
|
|
11653
|
-
"onUpdate:keyword": I[10] || (I[10] = (
|
|
11666
|
+
"onUpdate:keyword": I[10] || (I[10] = (B) => p.value = B),
|
|
11654
11667
|
showFullPath: !0,
|
|
11655
11668
|
data: q.value,
|
|
11656
11669
|
placeholder: H.value,
|
|
11657
11670
|
disabled: m.value,
|
|
11658
11671
|
load: R,
|
|
11659
11672
|
search: l,
|
|
11660
|
-
onChange:
|
|
11673
|
+
onChange: J,
|
|
11661
11674
|
filter: !0,
|
|
11662
11675
|
allowClear: !0
|
|
11663
11676
|
}, null, 8, ["modelValue", "path", "keyword", "data", "placeholder", "disabled"]),
|
|
11664
|
-
|
|
11677
|
+
k(D(De), {
|
|
11665
11678
|
ref: "testInput",
|
|
11666
11679
|
modelValue: n.value.customPath,
|
|
11667
|
-
"onUpdate:modelValue": I[11] || (I[11] = (
|
|
11680
|
+
"onUpdate:modelValue": I[11] || (I[11] = (B) => n.value.customPath = B),
|
|
11668
11681
|
placeholder: D(AA)("选填").value,
|
|
11669
11682
|
disabled: m.value,
|
|
11670
11683
|
maxlength: "20"
|
|
11671
11684
|
}, null, 8, ["modelValue", "placeholder", "disabled"])
|
|
11672
11685
|
]),
|
|
11673
|
-
|
|
11686
|
+
k(D(i7), {
|
|
11674
11687
|
modelValue: V.value,
|
|
11675
|
-
"onUpdate:modelValue": I[12] || (I[12] = (
|
|
11688
|
+
"onUpdate:modelValue": I[12] || (I[12] = (B) => V.value = B),
|
|
11676
11689
|
checkboxType: "default",
|
|
11677
11690
|
onChange: _,
|
|
11678
11691
|
size: "middle"
|
|
@@ -11698,23 +11711,23 @@ const D8 = oA(`/api/tool/event-bus/${Tf}/`), pe = D8.post("/publish"), V8 = pf.g
|
|
|
11698
11711
|
required: "",
|
|
11699
11712
|
type: "custom",
|
|
11700
11713
|
error: u.value.reportTheme,
|
|
11701
|
-
"onUpdate:error": I[16] || (I[16] = (
|
|
11714
|
+
"onUpdate:error": I[16] || (I[16] = (B) => u.value.reportTheme = B),
|
|
11702
11715
|
marginBottom: "20px",
|
|
11703
11716
|
marginRight: "0"
|
|
11704
11717
|
}, {
|
|
11705
11718
|
default: U(() => [
|
|
11706
|
-
|
|
11707
|
-
|
|
11719
|
+
Q("div", Y8, [
|
|
11720
|
+
k(D(De), {
|
|
11708
11721
|
maxlength: "20",
|
|
11709
11722
|
disabled: j.value,
|
|
11710
11723
|
modelValue: n.value.reportTheme,
|
|
11711
|
-
"onUpdate:modelValue": I[14] || (I[14] = (
|
|
11724
|
+
"onUpdate:modelValue": I[14] || (I[14] = (B) => n.value.reportTheme = B),
|
|
11712
11725
|
placeholder: c.value,
|
|
11713
|
-
onChange:
|
|
11726
|
+
onChange: M
|
|
11714
11727
|
}, null, 8, ["disabled", "modelValue", "placeholder"]),
|
|
11715
|
-
|
|
11728
|
+
k(D(i7), {
|
|
11716
11729
|
modelValue: O.value,
|
|
11717
|
-
"onUpdate:modelValue": I[15] || (I[15] = (
|
|
11730
|
+
"onUpdate:modelValue": I[15] || (I[15] = (B) => O.value = B),
|
|
11718
11731
|
checkboxType: "default",
|
|
11719
11732
|
onChange: G,
|
|
11720
11733
|
size: "middle"
|
|
@@ -11740,9 +11753,9 @@ const D8 = oA(`/api/tool/event-bus/${Tf}/`), pe = D8.post("/publish"), V8 = pf.g
|
|
|
11740
11753
|
required: "",
|
|
11741
11754
|
type: "select",
|
|
11742
11755
|
modelValue: n.value.workOrderRules,
|
|
11743
|
-
"onUpdate:modelValue": I[17] || (I[17] = (
|
|
11756
|
+
"onUpdate:modelValue": I[17] || (I[17] = (B) => n.value.workOrderRules = B),
|
|
11744
11757
|
error: u.value.workOrderRules,
|
|
11745
|
-
"onUpdate:error": I[18] || (I[18] = (
|
|
11758
|
+
"onUpdate:error": I[18] || (I[18] = (B) => u.value.workOrderRules = B),
|
|
11746
11759
|
options: N.value,
|
|
11747
11760
|
col: 1,
|
|
11748
11761
|
optionsLabelKey: "name",
|
|
@@ -11758,9 +11771,9 @@ const D8 = oA(`/api/tool/event-bus/${Tf}/`), pe = D8.post("/publish"), V8 = pf.g
|
|
|
11758
11771
|
required: "",
|
|
11759
11772
|
type: "select",
|
|
11760
11773
|
modelValue: n.value.eventTypeId,
|
|
11761
|
-
"onUpdate:modelValue": I[19] || (I[19] = (
|
|
11774
|
+
"onUpdate:modelValue": I[19] || (I[19] = (B) => n.value.eventTypeId = B),
|
|
11762
11775
|
error: u.value.eventTypeId,
|
|
11763
|
-
"onUpdate:error": I[20] || (I[20] = (
|
|
11776
|
+
"onUpdate:error": I[20] || (I[20] = (B) => u.value.eventTypeId = B),
|
|
11764
11777
|
options: X.value,
|
|
11765
11778
|
col: 1,
|
|
11766
11779
|
optionsLabelKey: "typeName",
|
|
@@ -11768,7 +11781,7 @@ const D8 = oA(`/api/tool/event-bus/${Tf}/`), pe = D8.post("/publish"), V8 = pf.g
|
|
|
11768
11781
|
"get-popup-container": T,
|
|
11769
11782
|
marginBottom: "30px",
|
|
11770
11783
|
marginRight: "0",
|
|
11771
|
-
onChange: I[21] || (I[21] = (
|
|
11784
|
+
onChange: I[21] || (I[21] = (B) => C("eventTypeId"))
|
|
11772
11785
|
}, null, 8, ["label", "modelValue", "error", "options"])) : nA("v-if", !0),
|
|
11773
11786
|
n.value.processTypeId == "createcontingency" ? (fA(), XA(D(yA), {
|
|
11774
11787
|
key: 7,
|
|
@@ -11776,17 +11789,17 @@ const D8 = oA(`/api/tool/event-bus/${Tf}/`), pe = D8.post("/publish"), V8 = pf.g
|
|
|
11776
11789
|
required: "",
|
|
11777
11790
|
type: "select",
|
|
11778
11791
|
modelValue: n.value.eventLevelId,
|
|
11779
|
-
"onUpdate:modelValue": I[22] || (I[22] = (
|
|
11792
|
+
"onUpdate:modelValue": I[22] || (I[22] = (B) => n.value.eventLevelId = B),
|
|
11780
11793
|
error: u.value.eventLevelId,
|
|
11781
|
-
"onUpdate:error": I[23] || (I[23] = (
|
|
11782
|
-
options:
|
|
11794
|
+
"onUpdate:error": I[23] || (I[23] = (B) => u.value.eventLevelId = B),
|
|
11795
|
+
options: a.value,
|
|
11783
11796
|
col: 1,
|
|
11784
11797
|
optionsLabelKey: "name",
|
|
11785
11798
|
optionsValueKey: "id",
|
|
11786
11799
|
"get-popup-container": T,
|
|
11787
11800
|
marginBottom: "30px",
|
|
11788
11801
|
marginRight: "0",
|
|
11789
|
-
onChange: I[24] || (I[24] = (
|
|
11802
|
+
onChange: I[24] || (I[24] = (B) => C("eventLevelId"))
|
|
11790
11803
|
}, null, 8, ["label", "modelValue", "error", "options"])) : nA("v-if", !0),
|
|
11791
11804
|
n.value.processTypeId == "createcontingency" ? (fA(), XA(D(yA), {
|
|
11792
11805
|
key: 8,
|
|
@@ -11796,29 +11809,29 @@ const D8 = oA(`/api/tool/event-bus/${Tf}/`), pe = D8.post("/publish"), V8 = pf.g
|
|
|
11796
11809
|
maxlength: "3",
|
|
11797
11810
|
col: 1,
|
|
11798
11811
|
modelValue: n.value.timeLimit,
|
|
11799
|
-
"onUpdate:modelValue": I[27] || (I[27] = (
|
|
11812
|
+
"onUpdate:modelValue": I[27] || (I[27] = (B) => n.value.timeLimit = B),
|
|
11800
11813
|
error: u.value.timeLimit,
|
|
11801
|
-
"onUpdate:error": I[28] || (I[28] = (
|
|
11814
|
+
"onUpdate:error": I[28] || (I[28] = (B) => u.value.timeLimit = B),
|
|
11802
11815
|
disabled: n.value.interval == 3,
|
|
11803
11816
|
marginBottom: "30px",
|
|
11804
11817
|
marginRight: "0"
|
|
11805
11818
|
}, {
|
|
11806
11819
|
default: U(() => [
|
|
11807
|
-
|
|
11808
|
-
|
|
11820
|
+
Q("div", G8, [
|
|
11821
|
+
k(D(_3), {
|
|
11809
11822
|
class: "select",
|
|
11810
11823
|
modelValue: n.value.interval,
|
|
11811
|
-
"onUpdate:modelValue": I[25] || (I[25] = (
|
|
11824
|
+
"onUpdate:modelValue": I[25] || (I[25] = (B) => n.value.interval = B),
|
|
11812
11825
|
width: D(C9) == "zh-CN" ? "65px" : "85px",
|
|
11813
11826
|
fieldNames: {
|
|
11814
11827
|
value: "id",
|
|
11815
11828
|
label: "name"
|
|
11816
11829
|
},
|
|
11817
|
-
options:
|
|
11830
|
+
options: i.value,
|
|
11818
11831
|
"border-type": "underline",
|
|
11819
11832
|
size: "small",
|
|
11820
11833
|
"get-popup-container": T,
|
|
11821
|
-
onChange: I[26] || (I[26] = (
|
|
11834
|
+
onChange: I[26] || (I[26] = (B) => C("interval")),
|
|
11822
11835
|
placeholder: D(AA)("请选择").value
|
|
11823
11836
|
}, null, 8, ["modelValue", "width", "options", "placeholder"])
|
|
11824
11837
|
])
|
|
@@ -11867,25 +11880,25 @@ const D8 = oA(`/api/tool/event-bus/${Tf}/`), pe = D8.post("/publish"), V8 = pf.g
|
|
|
11867
11880
|
}, P = () => {
|
|
11868
11881
|
v("handerDetail", f.msgItem);
|
|
11869
11882
|
};
|
|
11870
|
-
return (t, z) => (fA(),
|
|
11883
|
+
return (t, z) => (fA(), lA(
|
|
11871
11884
|
i9,
|
|
11872
11885
|
null,
|
|
11873
11886
|
[
|
|
11874
11887
|
nA(` <div class="alarm-msg" :style="{ 'border-color': msgItem.color }"> `),
|
|
11875
|
-
|
|
11876
|
-
|
|
11877
|
-
|
|
11888
|
+
Q("div", K8, [
|
|
11889
|
+
Q("div", C8, [
|
|
11890
|
+
Q(
|
|
11878
11891
|
"div",
|
|
11879
11892
|
{
|
|
11880
11893
|
style: b7({ "background-color": t.msgItem.color }),
|
|
11881
11894
|
class: "title-detail"
|
|
11882
11895
|
},
|
|
11883
11896
|
[
|
|
11884
|
-
|
|
11897
|
+
Q("div", _8, [
|
|
11885
11898
|
nA(` <div class="icon-box" :style="{ color: msgItem.color }">\r
|
|
11886
11899
|
!\r
|
|
11887
11900
|
</div> `),
|
|
11888
|
-
|
|
11901
|
+
Q(
|
|
11889
11902
|
"div",
|
|
11890
11903
|
$8,
|
|
11891
11904
|
rA(D(AA)("新告警").value),
|
|
@@ -11893,7 +11906,7 @@ const D8 = oA(`/api/tool/event-bus/${Tf}/`), pe = D8.post("/publish"), V8 = pf.g
|
|
|
11893
11906
|
/* TEXT */
|
|
11894
11907
|
)
|
|
11895
11908
|
]),
|
|
11896
|
-
z[0] || (z[0] =
|
|
11909
|
+
z[0] || (z[0] = Q(
|
|
11897
11910
|
"div",
|
|
11898
11911
|
{ class: "title-right" },
|
|
11899
11912
|
null,
|
|
@@ -11904,16 +11917,16 @@ const D8 = oA(`/api/tool/event-bus/${Tf}/`), pe = D8.post("/publish"), V8 = pf.g
|
|
|
11904
11917
|
4
|
|
11905
11918
|
/* STYLE */
|
|
11906
11919
|
),
|
|
11907
|
-
|
|
11908
|
-
|
|
11909
|
-
|
|
11920
|
+
Q("div", AX, [
|
|
11921
|
+
Q("div", fX, [
|
|
11922
|
+
Q(
|
|
11910
11923
|
"div",
|
|
11911
11924
|
eX,
|
|
11912
11925
|
rA(D(AA)("告警等级:").value),
|
|
11913
11926
|
1
|
|
11914
11927
|
/* TEXT */
|
|
11915
11928
|
),
|
|
11916
|
-
|
|
11929
|
+
Q(
|
|
11917
11930
|
"div",
|
|
11918
11931
|
{
|
|
11919
11932
|
class: "alarm-msg-line-right alarm-content-object",
|
|
@@ -11924,15 +11937,15 @@ const D8 = oA(`/api/tool/event-bus/${Tf}/`), pe = D8.post("/publish"), V8 = pf.g
|
|
|
11924
11937
|
/* TEXT, STYLE */
|
|
11925
11938
|
)
|
|
11926
11939
|
]),
|
|
11927
|
-
|
|
11928
|
-
|
|
11940
|
+
Q("div", vX, [
|
|
11941
|
+
Q(
|
|
11929
11942
|
"div",
|
|
11930
11943
|
nX,
|
|
11931
11944
|
rA(D(AA)("告警对象:").value),
|
|
11932
11945
|
1
|
|
11933
11946
|
/* TEXT */
|
|
11934
11947
|
),
|
|
11935
|
-
|
|
11948
|
+
Q(
|
|
11936
11949
|
"div",
|
|
11937
11950
|
rX,
|
|
11938
11951
|
rA(t.msgItem.equipmentName || ""),
|
|
@@ -11940,15 +11953,15 @@ const D8 = oA(`/api/tool/event-bus/${Tf}/`), pe = D8.post("/publish"), V8 = pf.g
|
|
|
11940
11953
|
/* TEXT */
|
|
11941
11954
|
)
|
|
11942
11955
|
]),
|
|
11943
|
-
|
|
11944
|
-
|
|
11956
|
+
Q("div", PX, [
|
|
11957
|
+
Q(
|
|
11945
11958
|
"div",
|
|
11946
11959
|
tX,
|
|
11947
11960
|
rA(D(AA)("告警内容:").value),
|
|
11948
11961
|
1
|
|
11949
11962
|
/* TEXT */
|
|
11950
11963
|
),
|
|
11951
|
-
|
|
11964
|
+
Q(
|
|
11952
11965
|
"div",
|
|
11953
11966
|
uX,
|
|
11954
11967
|
rA(t.msgItem.alarmContent || ""),
|
|
@@ -11956,11 +11969,11 @@ const D8 = oA(`/api/tool/event-bus/${Tf}/`), pe = D8.post("/publish"), V8 = pf.g
|
|
|
11956
11969
|
/* TEXT */
|
|
11957
11970
|
)
|
|
11958
11971
|
]),
|
|
11959
|
-
|
|
11972
|
+
Q("div", zX, [
|
|
11960
11973
|
t.msgItem.equipmentCode && t.msgItem.equipmentPanelCode ? (fA(), XA(D(kA), {
|
|
11961
11974
|
key: 0,
|
|
11962
11975
|
block: "",
|
|
11963
|
-
onClick:
|
|
11976
|
+
onClick: VA(P, ["stop"]),
|
|
11964
11977
|
btnType: "primary-text",
|
|
11965
11978
|
size: "middle"
|
|
11966
11979
|
}, {
|
|
@@ -11978,7 +11991,7 @@ const D8 = oA(`/api/tool/event-bus/${Tf}/`), pe = D8.post("/publish"), V8 = pf.g
|
|
|
11978
11991
|
key: 1,
|
|
11979
11992
|
block: "",
|
|
11980
11993
|
btnType: "primary-text",
|
|
11981
|
-
onClick:
|
|
11994
|
+
onClick: VA(r, ["stop"]),
|
|
11982
11995
|
size: "middle"
|
|
11983
11996
|
}, {
|
|
11984
11997
|
default: U(() => [
|
|
@@ -12026,7 +12039,7 @@ const cX = () => {
|
|
|
12026
12039
|
loop: !1
|
|
12027
12040
|
// 轮播-无限次播放
|
|
12028
12041
|
});
|
|
12029
|
-
|
|
12042
|
+
mA.addEventListenerFromMicroApp("alarm:change-alarmconfig", (l) => {
|
|
12030
12043
|
const { isRealTimeAlarm: j, audioPlay: O } = l.data;
|
|
12031
12044
|
j != null && (z.value = j), O != null && (d.value = O, d.value || p());
|
|
12032
12045
|
});
|
|
@@ -12036,7 +12049,7 @@ const cX = () => {
|
|
|
12036
12049
|
j.push({ alarmId: l.recordId }), r.value = j, (O = f.value) == null || O.open();
|
|
12037
12050
|
}, { entryApp: x } = Xf.hooks.useEntryApp(), X = (l) => {
|
|
12038
12051
|
K3(l.equipmentCode, l.equipmentPanelCode);
|
|
12039
|
-
}, { handleAlarmVue:
|
|
12052
|
+
}, { handleAlarmVue: a } = h8(f, r), i = async () => {
|
|
12040
12053
|
var O;
|
|
12041
12054
|
const j = (((O = uA().appcategorys) == null ? void 0 : O.map((N) => N.apps).flat()) ?? []).find((N) => N.code === "alarm");
|
|
12042
12055
|
j && x({ microApp: j, menuPath: `/${j.routeUrl}/realTimeAlarm` });
|
|
@@ -12061,7 +12074,7 @@ const cX = () => {
|
|
|
12061
12074
|
}),
|
|
12062
12075
|
duration: 5,
|
|
12063
12076
|
onClick: () => {
|
|
12064
|
-
|
|
12077
|
+
i();
|
|
12065
12078
|
},
|
|
12066
12079
|
onClose: () => {
|
|
12067
12080
|
setTimeout(() => {
|
|
@@ -12105,7 +12118,7 @@ const cX = () => {
|
|
|
12105
12118
|
alarmCount: A,
|
|
12106
12119
|
audioObj: n,
|
|
12107
12120
|
audioAlarmRef: v,
|
|
12108
|
-
handleAlarmVue:
|
|
12121
|
+
handleAlarmVue: a,
|
|
12109
12122
|
creatAlarmSocket: async () => {
|
|
12110
12123
|
V();
|
|
12111
12124
|
const [l, j] = await Z8().run({
|
|
@@ -12124,7 +12137,7 @@ const cX = () => {
|
|
|
12124
12137
|
N && e.value.send(N);
|
|
12125
12138
|
},
|
|
12126
12139
|
message: async (N) => {
|
|
12127
|
-
|
|
12140
|
+
mA.sendMessageToMicroApp("enterpriseadmin/alarm", "alarm:message", { alarmMessage: N }), window.self === window.top && (N.messageType === "ADD" && (A.value = A.value + 1, N.coverId || b(N)), N.messageType === "DELETE" && (A.value = A.value - 1, n.value.playId == N.recordId && p()));
|
|
12128
12141
|
}
|
|
12129
12142
|
}));
|
|
12130
12143
|
}
|
|
@@ -12137,12 +12150,12 @@ const cX = () => {
|
|
|
12137
12150
|
await lf(), f();
|
|
12138
12151
|
}), K9(() => {
|
|
12139
12152
|
A.value && A.value.disconnect(), A.value = null;
|
|
12140
|
-
}), (t, z) => (fA(),
|
|
12153
|
+
}), (t, z) => (fA(), lA(
|
|
12141
12154
|
i9,
|
|
12142
12155
|
null,
|
|
12143
12156
|
[
|
|
12144
|
-
|
|
12145
|
-
|
|
12157
|
+
k(D(P)),
|
|
12158
|
+
Q("audio", {
|
|
12146
12159
|
src: D(v).playPath,
|
|
12147
12160
|
class: "audio-alarm-level",
|
|
12148
12161
|
ref_key: "audioAlarmRef",
|
|
@@ -12165,41 +12178,41 @@ const cX = () => {
|
|
|
12165
12178
|
const A = e, { isFullscreen: f } = $9(), v = u9().showLayout ?? !0, r = EA(() => v && A.showLayout && !f.value), P = EA(() => xA.excludeRoutes), t = EA(() => xA.routeKeepAliveVisible), z = EA(() => ({ mode: SA.value.style === 1 ? "vertical" : "inline" }));
|
|
12166
12179
|
OA(
|
|
12167
12180
|
() => k3.nav.activeItem,
|
|
12168
|
-
(
|
|
12169
|
-
var
|
|
12170
|
-
if (
|
|
12171
|
-
const
|
|
12172
|
-
|
|
12181
|
+
(O) => {
|
|
12182
|
+
var N;
|
|
12183
|
+
if (O) {
|
|
12184
|
+
const T = !!(((N = uA()) == null ? void 0 : N.menuCollapses) || []).find((M) => M === O);
|
|
12185
|
+
S.menu.setCollapse(T);
|
|
12173
12186
|
}
|
|
12174
12187
|
},
|
|
12175
12188
|
{ immediate: !0 }
|
|
12176
12189
|
);
|
|
12177
|
-
const { initNextTick: d } = E6(), { loading: n, pageKey: u, innerPage: x, commandList: X, initNextTick:
|
|
12178
|
-
G6(x, d,
|
|
12179
|
-
const { $changePwd:
|
|
12190
|
+
const { initNextTick: d } = E6(), { loading: n, pageKey: u, innerPage: x, commandList: X, initNextTick: a } = M6(d);
|
|
12191
|
+
G6(x, d, a), Y6(), k6(), S6();
|
|
12192
|
+
const { $changePwd: i, $personSetDialog: s } = U6(), { $aiPanel: b, toApp: H, getAIPanelStatus: c } = f1(), { changeEnterprisesVisible: q, userId: p, tenantId: m, changeEnterprise: V } = Jv();
|
|
12180
12193
|
B6();
|
|
12181
|
-
const { fontColor:
|
|
12182
|
-
return e1(), v1(X), n1(), P1(), w1(), R8(), (
|
|
12194
|
+
const { fontColor: R, backgroudColor: l, borderColor: j } = Q6();
|
|
12195
|
+
return e1(), v1(X), n1(), P1(), w1(), R8(), (O, N) => (fA(), lA("div", sX, [
|
|
12183
12196
|
nA(` <button @click="test(0)">test</button>\r
|
|
12184
12197
|
<button style="margin-left: 5px" @click="test(1)">test2</button> `),
|
|
12185
|
-
|
|
12198
|
+
k(D(wr), { platformInitNextTick: D(d) }, {
|
|
12186
12199
|
default: U(() => [
|
|
12187
|
-
|
|
12200
|
+
k(pr, {
|
|
12188
12201
|
loading: D(n),
|
|
12189
12202
|
pageKey: D(u) + D(C9),
|
|
12190
12203
|
showLayout: r.value,
|
|
12191
12204
|
excludeRoutes: P.value,
|
|
12192
12205
|
routeKeepAliveVisible: t.value,
|
|
12193
|
-
tabsAttr: { fontColor: D(
|
|
12206
|
+
tabsAttr: { fontColor: D(R), backgroudColor: D(l), borderColor: D(j) },
|
|
12194
12207
|
menuAttr: z.value
|
|
12195
12208
|
}, pn({
|
|
12196
12209
|
_: 2
|
|
12197
12210
|
/* DYNAMIC */
|
|
12198
12211
|
}, [
|
|
12199
|
-
ye(
|
|
12200
|
-
name:
|
|
12212
|
+
ye(O.$slots, (Z, T, M) => ({
|
|
12213
|
+
name: T,
|
|
12201
12214
|
fn: U(() => [
|
|
12202
|
-
r9(
|
|
12215
|
+
r9(O.$slots, T, {}, void 0, !0)
|
|
12203
12216
|
])
|
|
12204
12217
|
}))
|
|
12205
12218
|
]), 1032, ["loading", "pageKey", "showLayout", "excludeRoutes", "routeKeepAliveVisible", "tabsAttr", "menuAttr"])
|
|
@@ -12208,26 +12221,26 @@ const cX = () => {
|
|
|
12208
12221
|
/* FORWARDED */
|
|
12209
12222
|
}, 8, ["platformInitNextTick"]),
|
|
12210
12223
|
nA(" 切换租户 "),
|
|
12211
|
-
|
|
12212
|
-
visible: D(
|
|
12213
|
-
"onUpdate:visible":
|
|
12214
|
-
userId: D(
|
|
12215
|
-
tenantId: D(
|
|
12216
|
-
onConfirm: D(
|
|
12224
|
+
k(D(Tn), {
|
|
12225
|
+
visible: D(q),
|
|
12226
|
+
"onUpdate:visible": N[0] || (N[0] = (Z) => FA(q) ? q.value = Z : null),
|
|
12227
|
+
userId: D(p),
|
|
12228
|
+
tenantId: D(m),
|
|
12229
|
+
onConfirm: D(V)
|
|
12217
12230
|
}, null, 8, ["visible", "userId", "tenantId", "onConfirm"]),
|
|
12218
12231
|
nA(" 修改密码 "),
|
|
12219
|
-
|
|
12232
|
+
k(
|
|
12220
12233
|
D(Zn),
|
|
12221
12234
|
{
|
|
12222
12235
|
ref_key: "$changePwd",
|
|
12223
|
-
ref:
|
|
12236
|
+
ref: i
|
|
12224
12237
|
},
|
|
12225
12238
|
null,
|
|
12226
12239
|
512
|
|
12227
12240
|
/* NEED_PATCH */
|
|
12228
12241
|
),
|
|
12229
12242
|
nA(" 个性化设置 "),
|
|
12230
|
-
|
|
12243
|
+
k(
|
|
12231
12244
|
D(T6),
|
|
12232
12245
|
{
|
|
12233
12246
|
ref_key: "$personSetDialog",
|
|
@@ -12238,17 +12251,18 @@ const cX = () => {
|
|
|
12238
12251
|
/* NEED_PATCH */
|
|
12239
12252
|
),
|
|
12240
12253
|
nA(" AI助手 "),
|
|
12241
|
-
|
|
12254
|
+
k(D(on), {
|
|
12242
12255
|
platformInitNextTick: D(d),
|
|
12243
12256
|
onToApp: D(H),
|
|
12244
12257
|
ref_key: "$aiPanel",
|
|
12245
|
-
ref: b
|
|
12246
|
-
|
|
12258
|
+
ref: b,
|
|
12259
|
+
onGetStatus: D(c)
|
|
12260
|
+
}, null, 8, ["platformInitNextTick", "onToApp", "onGetStatus"]),
|
|
12247
12261
|
nA(" 告警 "),
|
|
12248
|
-
|
|
12262
|
+
k(D(iX))
|
|
12249
12263
|
]));
|
|
12250
12264
|
}
|
|
12251
|
-
}), HX = /* @__PURE__ */ gA(qX, [["__scopeId", "data-v-
|
|
12265
|
+
}), HX = /* @__PURE__ */ gA(qX, [["__scopeId", "data-v-0ae55213"]]), pX = {
|
|
12252
12266
|
正在实时预览: { "zh-CN": "正在实时预览", en: "Real-time Video", _appCode: "framework" },
|
|
12253
12267
|
声音: { "zh-CN": "声音", en: "Sound", _appCode: "framework" },
|
|
12254
12268
|
截图: { "zh-CN": "截图", en: "Screenshot", _appCode: "framework" },
|
|
@@ -12418,11 +12432,11 @@ o("@das-fed/web");
|
|
|
12418
12432
|
const xX = [
|
|
12419
12433
|
{
|
|
12420
12434
|
path: RA,
|
|
12421
|
-
component: () => import("./index-
|
|
12435
|
+
component: () => import("./index-CPObYd5x.js")
|
|
12422
12436
|
},
|
|
12423
12437
|
{
|
|
12424
12438
|
path: Av,
|
|
12425
|
-
component: () => import("./index-
|
|
12439
|
+
component: () => import("./index-CJt4Jf9a.js")
|
|
12426
12440
|
}
|
|
12427
12441
|
], O2 = {
|
|
12428
12442
|
routes: xX,
|