@das-fed/web 7.0.4-beta.5 → 7.0.4-beta.6
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/{packages/main-app-framework/index-BHVW67vA.js → index-BkszOLEl.js} +1 -1
- package/index-BkszOLEl.js.gz +0 -0
- package/{index-ClSInn_i.js → index-DCtJbF-_.js} +702 -702
- package/index-DCtJbF-_.js.gz +0 -0
- package/{index-FzlB_orx.js → index-Dx4Hbw_o.js} +1 -1
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/main-app-framework/{index-DLSxrvBS.js → index-BWns6eOL.js} +1 -1
- package/{index-DUEDcITR.js → packages/main-app-framework/index-By9cITUY.js} +1 -1
- package/packages/main-app-framework/index-By9cITUY.js.gz +0 -0
- package/packages/main-app-framework/{index-G1MiVwgR.js → index-CCELsQEE.js} +4 -4
- package/packages/main-app-framework/{index-G1MiVwgR.js.gz → index-CCELsQEE.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/index-ClSInn_i.js.gz +0 -0
- package/index-DUEDcITR.js.gz +0 -0
- package/packages/main-app-framework/index-BHVW67vA.js.gz +0 -0
|
@@ -67,8 +67,8 @@ const iP = {
|
|
|
67
67
|
}, r7 = Or();
|
|
68
68
|
r7.use(Vr);
|
|
69
69
|
const pP = (v) => {
|
|
70
|
-
var P,
|
|
71
|
-
const A = ((P = v == null ? void 0 : v.router) == null ? void 0 : P.routerBase) ?? "/", f = ((
|
|
70
|
+
var P, z, l, X, c;
|
|
71
|
+
const A = ((P = v == null ? void 0 : v.router) == null ? void 0 : P.routerBase) ?? "/", f = ((z = v == null ? void 0 : v.router) == null ? void 0 : z.options) || {};
|
|
72
72
|
let e = Object.assign(((l = v == null ? void 0 : v.router) == null ? void 0 : l.glob) || {});
|
|
73
73
|
const n = Object.values(e).filter((b) => !!b).flat().sort((b, p) => (b.index ?? 0) - (p.index ?? 0)), r = [];
|
|
74
74
|
(X = v == null ? void 0 : v.microApps) == null || X.map((b) => {
|
|
@@ -259,8 +259,8 @@ const HP = sessionStorage.getItem("currentLang") ? sessionStorage.getItem("curre
|
|
|
259
259
|
if (r === v) return v;
|
|
260
260
|
typeof r == "string" && (r = { "zh-CN": r });
|
|
261
261
|
let t = r[pf.value];
|
|
262
|
-
return pf.value === "zh-CN" && r["zh-cn"] && !r["zh-CN"] && (t = r["zh-cn"]), A.map((u,
|
|
263
|
-
t && (t = t.replace(`$${
|
|
262
|
+
return pf.value === "zh-CN" && r["zh-cn"] && !r["zh-CN"] && (t = r["zh-cn"]), A.map((u, d) => {
|
|
263
|
+
t && (t = t.replace(`$${d}`, u));
|
|
264
264
|
}), t;
|
|
265
265
|
}), VP = OP, Dc = (v, ...A) => VP(v, ...A).value, jc = (v) => {
|
|
266
266
|
sessionStorage.setItem("currentLang", v), pf.value = v;
|
|
@@ -281,8 +281,8 @@ const HP = sessionStorage.getItem("currentLang") ? sessionStorage.getItem("curre
|
|
|
281
281
|
for (const t in r) {
|
|
282
282
|
const u = r[t];
|
|
283
283
|
if (typeof u == "string" && (A.light[t] = u), typeof u == "object")
|
|
284
|
-
for (const
|
|
285
|
-
A[
|
|
284
|
+
for (const d in u)
|
|
285
|
+
A[d] || (A[d] = {}), A[d][t] || (A[d][t] = {}), A[d][t] = u[d];
|
|
286
286
|
}
|
|
287
287
|
return A;
|
|
288
288
|
};
|
|
@@ -306,8 +306,8 @@ const vv = (v, A) => {
|
|
|
306
306
|
for (const r in e) {
|
|
307
307
|
const t = e[r];
|
|
308
308
|
for (const u in t) {
|
|
309
|
-
const
|
|
310
|
-
f.insertRule(`.${P} { ${u}:${
|
|
309
|
+
const d = t[u], P = `${af}-${r}`;
|
|
310
|
+
f.insertRule(`.${P} { ${u}:${d} } `, f.cssRules.length);
|
|
311
311
|
}
|
|
312
312
|
A === "global" && (zf.value[r] || (zf.value[r] = {}), zf.value[r] = { ...zf.value[r], ...t }), A === "custom" && (df.value[r] || (df.value[r] = {}), df.value[r] = { ...df.value[r], ...t });
|
|
313
313
|
}
|
|
@@ -388,10 +388,10 @@ const vv = (v, A) => {
|
|
|
388
388
|
var t;
|
|
389
389
|
const e = pA.eventListeners, { autoRemove: n = !1 } = f || {}, r = [];
|
|
390
390
|
for (const u in e) {
|
|
391
|
-
const
|
|
392
|
-
|
|
393
|
-
(t =
|
|
394
|
-
n &&
|
|
391
|
+
const d = e[u];
|
|
392
|
+
d.type === v && r.push(
|
|
393
|
+
(t = d == null ? void 0 : d.handler) == null ? void 0 : t.call(d, A).then(() => {
|
|
394
|
+
n && d.remove();
|
|
395
395
|
})
|
|
396
396
|
);
|
|
397
397
|
}
|
|
@@ -441,10 +441,10 @@ const vv = (v, A) => {
|
|
|
441
441
|
var t;
|
|
442
442
|
const e = P9.eventListeners, { autoRemove: n = !1 } = f || {}, r = [];
|
|
443
443
|
for (const u in e) {
|
|
444
|
-
const
|
|
445
|
-
|
|
446
|
-
(t =
|
|
447
|
-
n &&
|
|
444
|
+
const d = e[u];
|
|
445
|
+
d.type === v && r.push(
|
|
446
|
+
(t = d == null ? void 0 : d.handler) == null ? void 0 : t.call(d, A).then(() => {
|
|
447
|
+
n && d.remove();
|
|
448
448
|
})
|
|
449
449
|
);
|
|
450
450
|
}
|
|
@@ -495,10 +495,10 @@ const vv = (v, A) => {
|
|
|
495
495
|
var t;
|
|
496
496
|
const e = KA.eventListeners, { autoRemove: n = !1 } = f || {}, r = [];
|
|
497
497
|
for (const u in e) {
|
|
498
|
-
const
|
|
499
|
-
|
|
500
|
-
(t =
|
|
501
|
-
n &&
|
|
498
|
+
const d = e[u];
|
|
499
|
+
d.type === v && r.push(
|
|
500
|
+
(t = d == null ? void 0 : d.handler) == null ? void 0 : t.call(d, A).then(() => {
|
|
501
|
+
n && d.remove();
|
|
502
502
|
})
|
|
503
503
|
);
|
|
504
504
|
}
|
|
@@ -529,10 +529,10 @@ const vv = (v, A) => {
|
|
|
529
529
|
var t;
|
|
530
530
|
const e = Xf.eventListeners, { autoRemove: n = !1 } = f || {}, r = [];
|
|
531
531
|
for (const u in e) {
|
|
532
|
-
const
|
|
533
|
-
|
|
534
|
-
(t =
|
|
535
|
-
n &&
|
|
532
|
+
const d = e[u];
|
|
533
|
+
d.type === v && r.push(
|
|
534
|
+
(t = d == null ? void 0 : d.handler) == null ? void 0 : t.call(d, A).then(() => {
|
|
535
|
+
n && d.remove();
|
|
536
536
|
})
|
|
537
537
|
);
|
|
538
538
|
}
|
|
@@ -614,7 +614,7 @@ const vv = (v, A) => {
|
|
|
614
614
|
},
|
|
615
615
|
{ deep: !0 }
|
|
616
616
|
);
|
|
617
|
-
const
|
|
617
|
+
const d = async (X) => {
|
|
618
618
|
const c = X.component;
|
|
619
619
|
let b = null;
|
|
620
620
|
return typeof c == "function" ? b = (await c()).default : b = c, b;
|
|
@@ -623,14 +623,14 @@ const vv = (v, A) => {
|
|
|
623
623
|
const X = e.options.routes;
|
|
624
624
|
for (const b of X)
|
|
625
625
|
if ((c = b == null ? void 0 : b.meta) != null && c.isIframe && !r.value.find((p) => p.path === b.path)) {
|
|
626
|
-
const p = await
|
|
626
|
+
const p = await d(b);
|
|
627
627
|
r.value.push({
|
|
628
628
|
...b,
|
|
629
629
|
meta: { ...b.meta, key: `${b.path}-0`, componentInstance: p, isOpen: !1, isShow: !1 }
|
|
630
630
|
});
|
|
631
631
|
}
|
|
632
|
-
|
|
633
|
-
},
|
|
632
|
+
z();
|
|
633
|
+
}, z = async () => {
|
|
634
634
|
var b, p;
|
|
635
635
|
if (!r.value || !r.value.length) return;
|
|
636
636
|
const X = r.value.find((i) => i.meta.isShow);
|
|
@@ -643,7 +643,7 @@ const vv = (v, A) => {
|
|
|
643
643
|
() => e.currentRoute.value,
|
|
644
644
|
() => {
|
|
645
645
|
const X = e.options.routes.length;
|
|
646
|
-
X !== l ? (P(), l = X) :
|
|
646
|
+
X !== l ? (P(), l = X) : z();
|
|
647
647
|
},
|
|
648
648
|
{ immediate: !0 }
|
|
649
649
|
), zA.iframeView.addEventListener("onRefreshCurrentPage", () => {
|
|
@@ -749,10 +749,10 @@ const vv = (v, A) => {
|
|
|
749
749
|
setup(v) {
|
|
750
750
|
const A = v;
|
|
751
751
|
cP(), aP(), qP();
|
|
752
|
-
const f = $9(), e = D(!1), n = D(!1), r = D(!1), t = eA(() => e.value && A.showLayout), u = eA(() => n.value && A.showLayout && A.showAside),
|
|
753
|
-
"das-web-app-overlay-show":
|
|
754
|
-
"das-web-app-overlay-hide":
|
|
755
|
-
"das-web-app-overlay-destroy":
|
|
752
|
+
const f = $9(), e = D(!1), n = D(!1), r = D(!1), t = eA(() => e.value && A.showLayout), u = eA(() => n.value && A.showLayout && A.showAside), d = eA(() => e.value && A.showLayout && A.showTabs), P = eA(() => A.routerViewVisible ?? !0), z = eA(() => Z9.overlay.visible ?? !1), l = eA(() => ({
|
|
753
|
+
"das-web-app-overlay-show": z.value === !0,
|
|
754
|
+
"das-web-app-overlay-hide": z.value === !1,
|
|
755
|
+
"das-web-app-overlay-destroy": z.value === "destroy"
|
|
756
756
|
})), X = eA(() => Z9.overlay.style ?? { backgroundColor: "rgba(0,0,0,0.5)" }), c = eA(() => A.excludeRoutes), b = eA(() => A.routeKeepAliveVisible);
|
|
757
757
|
iA(
|
|
758
758
|
() => [f.meta, f.query],
|
|
@@ -822,7 +822,7 @@ const vv = (v, A) => {
|
|
|
822
822
|
[UA, a.value]
|
|
823
823
|
]) : AA("v-if", !0),
|
|
824
824
|
k("div", MP, [
|
|
825
|
-
|
|
825
|
+
d.value ? EA((Y(), dA(
|
|
826
826
|
"div",
|
|
827
827
|
kP,
|
|
828
828
|
[
|
|
@@ -968,7 +968,7 @@ const vv = (v, A) => {
|
|
|
968
968
|
showProjectTree: ((N = A.config) == null ? void 0 : N.showProjectTree) ?? !0,
|
|
969
969
|
subAppList: t.value.map((j) => ({ code: j.value, name: j.label, ...j }))
|
|
970
970
|
};
|
|
971
|
-
}),
|
|
971
|
+
}), d = eA(() => {
|
|
972
972
|
const R = r.value.find((V) => V.value === A.activeItem);
|
|
973
973
|
return {
|
|
974
974
|
activeInnerPagePath: (R == null ? void 0 : R.path) || "",
|
|
@@ -980,7 +980,7 @@ const vv = (v, A) => {
|
|
|
980
980
|
currentProject: A.activeProject
|
|
981
981
|
},
|
|
982
982
|
...A.projectConfig
|
|
983
|
-
})),
|
|
983
|
+
})), z = eA(() => A.userInfo), l = eA(() => A.searchConfig), X = async (R) => {
|
|
984
984
|
const V = R.detail[0], T = r.value.find((N) => V.value === N.value);
|
|
985
985
|
await zA.nav.triggerEventListener("onItemClick", T) && zA.nav.setActiveItem(T.value);
|
|
986
986
|
}, c = async (R) => {
|
|
@@ -1018,10 +1018,10 @@ const vv = (v, A) => {
|
|
|
1018
1018
|
modelValue: n.value,
|
|
1019
1019
|
logoUrl: e.value,
|
|
1020
1020
|
config: u.value,
|
|
1021
|
-
innerPagesConfig:
|
|
1021
|
+
innerPagesConfig: d.value,
|
|
1022
1022
|
searchConfig: l.value,
|
|
1023
1023
|
projectTreeConfig: P.value,
|
|
1024
|
-
userInfoConfig:
|
|
1024
|
+
userInfoConfig: z.value,
|
|
1025
1025
|
"on:userCommandHandle": i,
|
|
1026
1026
|
"on:changeInnerPage": X,
|
|
1027
1027
|
"on:handleTabClick": c,
|
|
@@ -1041,7 +1041,7 @@ const vv = (v, A) => {
|
|
|
1041
1041
|
menuAttr: {}
|
|
1042
1042
|
},
|
|
1043
1043
|
setup(v) {
|
|
1044
|
-
const { menu: A } = Z9, f = v, e = eA(() => A.theme), n = eA(() => f.menuAttr || {}), r = eA(() => A.items), t = eA(() => A.items.find((X) => X.fixed)), u = eA(() => A.activeItem || ""),
|
|
1044
|
+
const { menu: A } = Z9, f = v, e = eA(() => A.theme), n = eA(() => f.menuAttr || {}), r = eA(() => A.items), t = eA(() => A.items.find((X) => X.fixed)), u = eA(() => A.activeItem || ""), d = eA(() => A.collapse || !1), P = eA(() => ({ popupClassName: A.popupClassName ?? "" })), z = async (X) => {
|
|
1045
1045
|
const c = X.detail[0], b = XP(r.value).find((i) => c === i.id);
|
|
1046
1046
|
await zA.menu.triggerEventListener("onItemClick", b) && zA.menu.setActiveItem(b.id);
|
|
1047
1047
|
}, l = (X) => {
|
|
@@ -1052,11 +1052,11 @@ const vv = (v, A) => {
|
|
|
1052
1052
|
theme: e.value,
|
|
1053
1053
|
modelValue: u.value,
|
|
1054
1054
|
data: r.value,
|
|
1055
|
-
collapse:
|
|
1055
|
+
collapse: d.value,
|
|
1056
1056
|
fixedTopMenu: t.value,
|
|
1057
1057
|
subMenuAttrs: P.value
|
|
1058
1058
|
}, n.value, {
|
|
1059
|
-
onChange:
|
|
1059
|
+
onChange: z,
|
|
1060
1060
|
"on:toggleCollapse": l
|
|
1061
1061
|
}), null, 16, FP)) : AA("v-if", !0);
|
|
1062
1062
|
}
|
|
@@ -1073,12 +1073,12 @@ const vv = (v, A) => {
|
|
|
1073
1073
|
}))), t = eA(() => A.activeItem || ""), u = async (X) => {
|
|
1074
1074
|
const c = X.detail[0], b = r.value.find((i) => c === i.value);
|
|
1075
1075
|
await zA.tab.triggerEventListener("onItemClick", b) && zA.tab.setActiveItem(b.value);
|
|
1076
|
-
},
|
|
1076
|
+
}, d = async (X) => {
|
|
1077
1077
|
const c = X.detail[0], b = r.value.find((i) => c === i.value);
|
|
1078
1078
|
await zA.tab.triggerEventListener("onItemRemove", b) && zA.tab.removeItem(b.value);
|
|
1079
1079
|
}, P = async (X) => {
|
|
1080
1080
|
await zA.tab.triggerEventListener("onMenuClick", { type: X.detail[0], data: X.detail[1] });
|
|
1081
|
-
},
|
|
1081
|
+
}, z = async (X) => {
|
|
1082
1082
|
await zA.tab.triggerEventListener("onPageRefresh", X.detail[0]);
|
|
1083
1083
|
}, l = () => {
|
|
1084
1084
|
zA.tab.triggerEventListener("onToggleFullScreen");
|
|
@@ -1090,9 +1090,9 @@ const vv = (v, A) => {
|
|
|
1090
1090
|
options: r.value
|
|
1091
1091
|
}, e.value, {
|
|
1092
1092
|
"on:tabClick": u,
|
|
1093
|
-
"on:tabDelete":
|
|
1093
|
+
"on:tabDelete": d,
|
|
1094
1094
|
"on:menuClick": P,
|
|
1095
|
-
"on:pageRefresh":
|
|
1095
|
+
"on:pageRefresh": z,
|
|
1096
1096
|
"on:toggleFullScreen": l
|
|
1097
1097
|
}), null, 16, hP)) : AA("v-if", !0);
|
|
1098
1098
|
}
|
|
@@ -1313,11 +1313,11 @@ function dt(...v) {
|
|
|
1313
1313
|
return nt;
|
|
1314
1314
|
Array.isArray(f) || (f = [f]), Array.isArray(e) || (e = [e]);
|
|
1315
1315
|
const r = [], t = () => {
|
|
1316
|
-
r.forEach((
|
|
1317
|
-
}, u = (
|
|
1318
|
-
t(),
|
|
1316
|
+
r.forEach((z) => z()), r.length = 0;
|
|
1317
|
+
}, u = (z, l, X, c) => (z.addEventListener(l, X, c), () => z.removeEventListener(l, X, c)), d = iA(() => [Ke(A), Se(n)], ([z, l]) => {
|
|
1318
|
+
t(), z && r.push(...f.flatMap((X) => e.map((c) => u(z, X, c, l))));
|
|
1319
1319
|
}, { immediate: !0, flush: "post" }), P = () => {
|
|
1320
|
-
|
|
1320
|
+
d(), t();
|
|
1321
1321
|
};
|
|
1322
1322
|
return Qe(P), P;
|
|
1323
1323
|
}
|
|
@@ -1380,22 +1380,22 @@ function ff(v, A = {}) {
|
|
|
1380
1380
|
} else
|
|
1381
1381
|
return !1;
|
|
1382
1382
|
return !1;
|
|
1383
|
-
}), [
|
|
1383
|
+
}), [d, P, z, , l] = t;
|
|
1384
1384
|
async function X() {
|
|
1385
|
-
u.value && (f != null && f[
|
|
1385
|
+
u.value && (f != null && f[z] && await f[P](), r.value = !1);
|
|
1386
1386
|
}
|
|
1387
1387
|
async function c() {
|
|
1388
1388
|
if (!u.value)
|
|
1389
1389
|
return;
|
|
1390
1390
|
await X();
|
|
1391
1391
|
const p = Ke(n);
|
|
1392
|
-
p && (await p[
|
|
1392
|
+
p && (await p[d](), r.value = !0);
|
|
1393
1393
|
}
|
|
1394
1394
|
async function b() {
|
|
1395
1395
|
r.value ? await X() : await c();
|
|
1396
1396
|
}
|
|
1397
1397
|
return f && dt(f, l, () => {
|
|
1398
|
-
r.value = !!(f != null && f[
|
|
1398
|
+
r.value = !!(f != null && f[z]);
|
|
1399
1399
|
}, !1), e && Qe(X), {
|
|
1400
1400
|
isSupported: u,
|
|
1401
1401
|
isFullscreen: r,
|
|
@@ -1459,7 +1459,7 @@ const it = ["src", "entry", "name"], pt = /* @__PURE__ */ qA({
|
|
|
1459
1459
|
}, r = eA(() => f.actived);
|
|
1460
1460
|
return iA(() => r.value, (u) => {
|
|
1461
1461
|
u && e("onActivated"), u || e("onDeactivated");
|
|
1462
|
-
}), (u,
|
|
1462
|
+
}), (u, d) => (Y(), dA("iframe", {
|
|
1463
1463
|
class: "das-micro-app",
|
|
1464
1464
|
src: f.src,
|
|
1465
1465
|
entry: f.src,
|
|
@@ -1475,29 +1475,29 @@ const it = ["src", "entry", "name"], pt = /* @__PURE__ */ qA({
|
|
|
1475
1475
|
const u = wA.value.find((X) => X.name === t);
|
|
1476
1476
|
if (!u) return;
|
|
1477
1477
|
u.dom = r.target, await a9(), await new Promise((X) => setTimeout(X, 50));
|
|
1478
|
-
const
|
|
1478
|
+
const d = () => {
|
|
1479
1479
|
const X = A.value.getBoundingClientRect() || {};
|
|
1480
1480
|
return X.width = A.value.clientWidth, X.height = A.value.clientHeight, X;
|
|
1481
1481
|
};
|
|
1482
1482
|
OA.sendMessageToMicroApp(t, "onLoaded", {
|
|
1483
1483
|
href: location.href,
|
|
1484
|
-
microAppContainerRect:
|
|
1484
|
+
microAppContainerRect: d(),
|
|
1485
1485
|
entry: u.entry,
|
|
1486
1486
|
name: u.name
|
|
1487
1487
|
});
|
|
1488
|
-
const { dom: P, ...
|
|
1489
|
-
OA.triggerMicroAppLifeCycleListener("onLoaded",
|
|
1490
|
-
OA.sendMessageToMicroApp(t, "resize",
|
|
1488
|
+
const { dom: P, ...z } = u;
|
|
1489
|
+
OA.triggerMicroAppLifeCycleListener("onLoaded", z), new ResizeObserver(() => {
|
|
1490
|
+
OA.sendMessageToMicroApp(t, "resize", d());
|
|
1491
1491
|
}).observe(A.value), OA.sendMessageToMicroApp(t, "setProxyMessageStatus", { visible: !0, parentHref: location.href }), OA.sendMessageToMicroApp(t, "setProxSsoStatus", { visible: !0, parentHref: location.href });
|
|
1492
1492
|
}, e = (r, t) => {
|
|
1493
|
-
const u = wA.value.find((
|
|
1493
|
+
const u = wA.value.find((z) => z.name === t);
|
|
1494
1494
|
if (!u) return;
|
|
1495
|
-
const { dom:
|
|
1495
|
+
const { dom: d, ...P } = u;
|
|
1496
1496
|
OA.sendMessageToMicroApp(t, "onActivated"), OA.triggerMicroAppLifeCycleListener("onActivated", P);
|
|
1497
1497
|
}, n = (r, t) => {
|
|
1498
|
-
const u = wA.value.find((
|
|
1498
|
+
const u = wA.value.find((z) => z.name === t);
|
|
1499
1499
|
if (!u) return;
|
|
1500
|
-
const { dom:
|
|
1500
|
+
const { dom: d, ...P } = u;
|
|
1501
1501
|
OA.sendMessageToMicroApp(t, "onDeactivated"), OA.triggerMicroAppLifeCycleListener("onDeactivated", P);
|
|
1502
1502
|
};
|
|
1503
1503
|
return (r, t) => (Y(), dA(
|
|
@@ -1520,9 +1520,9 @@ const it = ["src", "entry", "name"], pt = /* @__PURE__ */ qA({
|
|
|
1520
1520
|
src: u.src || "",
|
|
1521
1521
|
name: u.name,
|
|
1522
1522
|
actived: u.actived,
|
|
1523
|
-
onOnLoaded: (
|
|
1524
|
-
onOnActivated: (
|
|
1525
|
-
onOnDeactivated: (
|
|
1523
|
+
onOnLoaded: (d) => f(d, u.name),
|
|
1524
|
+
onOnActivated: (d) => e(d, u.name),
|
|
1525
|
+
onOnDeactivated: (d) => n(d, u.name)
|
|
1526
1526
|
}, null, 8, ["src", "name", "actived", "onOnLoaded", "onOnActivated", "onOnDeactivated"])), [
|
|
1527
1527
|
[UA, u.actived]
|
|
1528
1528
|
]) : AA("v-if", !0)
|
|
@@ -1638,7 +1638,7 @@ const it = ["src", "entry", "name"], pt = /* @__PURE__ */ qA({
|
|
|
1638
1638
|
n.value = !1;
|
|
1639
1639
|
return;
|
|
1640
1640
|
}
|
|
1641
|
-
const { path: u, query:
|
|
1641
|
+
const { path: u, query: d, params: P, meta: z } = t;
|
|
1642
1642
|
if (r.value.includes(t.path)) {
|
|
1643
1643
|
r.value = "";
|
|
1644
1644
|
return;
|
|
@@ -1647,37 +1647,37 @@ const it = ["src", "entry", "name"], pt = /* @__PURE__ */ qA({
|
|
|
1647
1647
|
cmd: "push",
|
|
1648
1648
|
route: {
|
|
1649
1649
|
path: u,
|
|
1650
|
-
query: { ...
|
|
1650
|
+
query: { ...d, microAppName: v.microAppName },
|
|
1651
1651
|
params: P,
|
|
1652
|
-
meta:
|
|
1652
|
+
meta: z
|
|
1653
1653
|
}
|
|
1654
1654
|
});
|
|
1655
1655
|
}
|
|
1656
1656
|
), OA.addEventListenerFromMainApp("router", async (t) => {
|
|
1657
|
-
var
|
|
1658
|
-
const { cmd: u, route:
|
|
1659
|
-
r.value = ("/" + P +
|
|
1657
|
+
var z;
|
|
1658
|
+
const { cmd: u, route: d, microAppName: P = "" } = t.data;
|
|
1659
|
+
r.value = ("/" + P + d.path).replace(/\/\//g, "/"), (z = A == null ? void 0 : A[u]) == null || z.call(A, d);
|
|
1660
1660
|
}), OA.addEventListenerFromMainApp("onLoaded", (t) => {
|
|
1661
|
-
const { href: u, microAppContainerRect:
|
|
1662
|
-
window.__IN_DAS_MICRO_APP = !0, window.__DAS_MICRO_APP_NAME = v.microAppName, window.__DAS_MAIN_APP_HREF = u, window.__DAS_MICRO_APP_CONTAINER_RECT =
|
|
1661
|
+
const { href: u, microAppContainerRect: d } = t.data;
|
|
1662
|
+
window.__IN_DAS_MICRO_APP = !0, window.__DAS_MICRO_APP_NAME = v.microAppName, window.__DAS_MAIN_APP_HREF = u, window.__DAS_MICRO_APP_CONTAINER_RECT = d;
|
|
1663
1663
|
}), OA.addEventListenerFromMainApp("onDeactivated", (t) => {
|
|
1664
|
-
const { name: u = "", path:
|
|
1664
|
+
const { name: u = "", path: d, params: P = {}, query: z = {} } = A.currentRoute.value;
|
|
1665
1665
|
n.value = !0, A == null || A.push({
|
|
1666
1666
|
name: f,
|
|
1667
|
-
query: { microAppName: v.microAppName, fromQuery: JSON.stringify(
|
|
1667
|
+
query: { microAppName: v.microAppName, fromQuery: JSON.stringify(z), fromPath: d },
|
|
1668
1668
|
params: P
|
|
1669
1669
|
});
|
|
1670
1670
|
}), OA.addEventListenerFromMainApp("onActivated", (t) => {
|
|
1671
|
-
const { name: u = "", params:
|
|
1672
|
-
e.value = !0, A == null || A.push({ path:
|
|
1671
|
+
const { name: u = "", params: d = {}, query: P = {} } = A.currentRoute.value, { fromPath: z = "", fromQuery: l = "{}" } = P || {};
|
|
1672
|
+
e.value = !0, A == null || A.push({ path: z, query: JSON.parse(l), params: d });
|
|
1673
1673
|
}), OA.addEventListenerFromMainApp("sessionStorage", (t) => {
|
|
1674
|
-
const { cmd: u, key:
|
|
1675
|
-
u === "setItem" && window.sessionStorage.setItem(
|
|
1674
|
+
const { cmd: u, key: d, value: P } = t.data;
|
|
1675
|
+
u === "setItem" && window.sessionStorage.setItem(d, P), u === "getItem" && window.sessionStorage.getItem(d), u === "removeItem" && window.sessionStorage.removeItem(d), u === "clear" && window.sessionStorage.clear();
|
|
1676
1676
|
}), OA.addEventListenerFromMainApp("route", (t) => {
|
|
1677
|
-
const { cmd: u, path:
|
|
1678
|
-
u === "reload" && (Lf.value.push(
|
|
1677
|
+
const { cmd: u, path: d } = t.data;
|
|
1678
|
+
u === "reload" && (Lf.value.push(d), Wf.value = !1, setTimeout(() => {
|
|
1679
1679
|
Wf.value = !0, Lf.value = [];
|
|
1680
|
-
}, 300)), u === "unload" && (Lf.value.push(
|
|
1680
|
+
}, 300)), u === "unload" && (Lf.value.push(d), Wf.value = !1, setTimeout(() => {
|
|
1681
1681
|
Wf.value = !0, Lf.value = [];
|
|
1682
1682
|
}, 100));
|
|
1683
1683
|
});
|
|
@@ -1700,13 +1700,13 @@ const it = ["src", "entry", "name"], pt = /* @__PURE__ */ qA({
|
|
|
1700
1700
|
f("close-tip", !0), e.value = !0;
|
|
1701
1701
|
};
|
|
1702
1702
|
TA.sendMessageToMicroApp("iot/iot", "iot:banner-data-1", null, { awaitListener: !0 });
|
|
1703
|
-
const { remove:
|
|
1704
|
-
const
|
|
1705
|
-
e.value =
|
|
1703
|
+
const { remove: d } = TA.addEventListenerFromMicroApp("iot:banner-data-2", (P) => {
|
|
1704
|
+
const z = JSON.parse(P.data);
|
|
1705
|
+
e.value = z == null ? void 0 : z.isClosed, n.value = z == null ? void 0 : z.expireDate, r.value = z == null ? void 0 : z.relativeDate, t.value = z == null ? void 0 : z.curExample;
|
|
1706
1706
|
});
|
|
1707
1707
|
return ye(() => {
|
|
1708
|
-
|
|
1709
|
-
}), (P,
|
|
1708
|
+
d();
|
|
1709
|
+
}), (P, z) => e.value ? AA("v-if", !0) : (Y(), dA("div", Vt, [
|
|
1710
1710
|
k("div", xt, [
|
|
1711
1711
|
g(x(Nr), {
|
|
1712
1712
|
class: "icons",
|
|
@@ -1800,12 +1800,12 @@ const it = ["src", "entry", "name"], pt = /* @__PURE__ */ qA({
|
|
|
1800
1800
|
const A = v, f = D({}), e = D(120), n = D(64), r = D([]), t = D([]), u = X9({
|
|
1801
1801
|
color: "rgba(0,0,0,.15)",
|
|
1802
1802
|
fontSize: 16
|
|
1803
|
-
}),
|
|
1803
|
+
}), d = (p, i) => {
|
|
1804
1804
|
const q = document.createElement("span");
|
|
1805
1805
|
q.innerHTML = p, q.style.fontSize = i + "px", q.style.fontFamily = "sans-serif", q.style.visibility = "hidden", document.body.appendChild(q);
|
|
1806
1806
|
const a = q.getBoundingClientRect();
|
|
1807
1807
|
e.value = Math.ceil(a.width) + i / 2, n.value = Math.ceil(a.height), document.body.removeChild(q);
|
|
1808
|
-
}, P = D(!1),
|
|
1808
|
+
}, P = D(!1), z = () => new Promise((p) => {
|
|
1809
1809
|
const i = () => {
|
|
1810
1810
|
if (P) return p(!0);
|
|
1811
1811
|
setTimeout(() => i(), 50);
|
|
@@ -1813,7 +1813,7 @@ const it = ["src", "entry", "name"], pt = /* @__PURE__ */ qA({
|
|
|
1813
1813
|
i();
|
|
1814
1814
|
}), l = async (p) => {
|
|
1815
1815
|
var q;
|
|
1816
|
-
await
|
|
1816
|
+
await z();
|
|
1817
1817
|
const i = !!((q = f.value) != null && q.pageSwith);
|
|
1818
1818
|
t.value = p && i ? [...r.value] : [];
|
|
1819
1819
|
}, X = async () => {
|
|
@@ -1836,7 +1836,7 @@ const it = ["src", "entry", "name"], pt = /* @__PURE__ */ qA({
|
|
|
1836
1836
|
N = N + `${j}`;
|
|
1837
1837
|
}
|
|
1838
1838
|
r.value.length && (r.value = r.value.join(" ").split(`
|
|
1839
|
-
`)), u.color = (R = f.value) != null && R.textColor ? f.value.textColor : "rgba(0,0,0,.15)", u.fontSize = (V = f.value) != null && V.textSize ? parseInt(f.value.textSize) : 16,
|
|
1839
|
+
`)), u.color = (R = f.value) != null && R.textColor ? f.value.textColor : "rgba(0,0,0,.15)", u.fontSize = (V = f.value) != null && V.textSize ? parseInt(f.value.textSize) : 16, d(N, u.fontSize);
|
|
1840
1840
|
}
|
|
1841
1841
|
return P.value = !1, i;
|
|
1842
1842
|
};
|
|
@@ -2036,13 +2036,13 @@ const It = (v = {}) => {
|
|
|
2036
2036
|
A.subAppList[f].code === A.currentSubAppCode && (A.subAppList[f].currentMenuCode = v);
|
|
2037
2037
|
sessionStorage.setItem("subApps", JSON.stringify(A));
|
|
2038
2038
|
}, Gt = (v, A) => {
|
|
2039
|
-
const f = "permission-btn", e = JSON.parse(sessionStorage.getItem(f) || "{}") || {}, n = v != null && v.length ? v.filter((
|
|
2040
|
-
return t.forEach((
|
|
2039
|
+
const f = "permission-btn", e = JSON.parse(sessionStorage.getItem(f) || "{}") || {}, n = v != null && v.length ? v.filter((d) => d.routeUrl) : [], r = v != null && v.length ? v.filter((d) => !d.routeUrl && d.children).map((d) => d.children).flat() : [], t = [...n, ...r], u = {};
|
|
2040
|
+
return t.forEach((d) => {
|
|
2041
2041
|
var X;
|
|
2042
|
-
const P =
|
|
2042
|
+
const P = d.code, z = (d == null ? void 0 : d.originalCode) ?? "";
|
|
2043
2043
|
u[P] || (u[P] = []);
|
|
2044
2044
|
let l = [];
|
|
2045
|
-
|
|
2045
|
+
d != null && d.children && ((X = d == null ? void 0 : d.children) != null && X.length) && (d.children.forEach((c) => {
|
|
2046
2046
|
var b;
|
|
2047
2047
|
!(c != null && c.children) || !((b = c.children) != null && b.length) ? l.push({
|
|
2048
2048
|
code: c.code,
|
|
@@ -2057,12 +2057,12 @@ const It = (v = {}) => {
|
|
|
2057
2057
|
});
|
|
2058
2058
|
}), l.forEach((c) => {
|
|
2059
2059
|
let b = c.originalCode ? c.originalCode : c.code ? c.code : "";
|
|
2060
|
-
b.includes(P + ".") && (b = b.replace(P + ".", "").replaceAll(".", "-")), b.includes(
|
|
2060
|
+
b.includes(P + ".") && (b = b.replace(P + ".", "").replaceAll(".", "-")), b.includes(z + ".") && (b = b.replace(z + ".", "").replaceAll(".", "-"));
|
|
2061
2061
|
const p = {
|
|
2062
2062
|
code: b,
|
|
2063
2063
|
name: c.name
|
|
2064
2064
|
};
|
|
2065
|
-
u[P].push(p),
|
|
2065
|
+
u[P].push(p), z && P !== z && (u["origin-auth"] || (u["origin-auth"] = {}), u["origin-auth"][z] || (u["origin-auth"][z] = []), u["origin-auth"][z].push(p));
|
|
2066
2066
|
}));
|
|
2067
2067
|
}), e[A] = u, sessionStorage.setItem(f, JSON.stringify(e)), e;
|
|
2068
2068
|
}, Yt = () => {
|
|
@@ -2070,8 +2070,8 @@ const It = (v = {}) => {
|
|
|
2070
2070
|
}, St = (v, A) => {
|
|
2071
2071
|
const f = "breadcrumb", e = v.filter((r) => r.routeUrl), n = JSON.parse(sessionStorage.getItem(f) || "{}") || {};
|
|
2072
2072
|
return e.forEach((r) => {
|
|
2073
|
-
const u = ((r == null ? void 0 : r.style) ?? 1) === 1,
|
|
2074
|
-
n[A] || (n[A] = {}), n[A][
|
|
2073
|
+
const u = ((r == null ? void 0 : r.style) ?? 1) === 1, d = r.code;
|
|
2074
|
+
n[A] || (n[A] = {}), n[A][d] = u;
|
|
2075
2075
|
}), sessionStorage.setItem(f, JSON.stringify(n)), n;
|
|
2076
2076
|
}, Qt = () => {
|
|
2077
2077
|
sessionStorage.removeItem("breadcrumb");
|
|
@@ -2103,7 +2103,7 @@ const It = (v = {}) => {
|
|
|
2103
2103
|
if (f && JSON.stringify(f) !== "{}" && f != null && f.closeTabPageConfirm && f.closeTabPageConfirm.length) {
|
|
2104
2104
|
const e = f.closeTabPageConfirm.map((r) => r.code), n = A.find((r) => e.includes(r));
|
|
2105
2105
|
if (n) {
|
|
2106
|
-
const r = f.closeTabPageConfirm.find((
|
|
2106
|
+
const r = f.closeTabPageConfirm.find((d) => d.code === n), t = (r == null ? void 0 : r.text) ?? J("确认关闭?");
|
|
2107
2107
|
if (!window.confirm(t)) throw new Error(J("取消关闭"));
|
|
2108
2108
|
}
|
|
2109
2109
|
}
|
|
@@ -2174,7 +2174,7 @@ function XA() {
|
|
|
2174
2174
|
var H;
|
|
2175
2175
|
return a.prototype = s, H = new a(), a.prototype = null, H;
|
|
2176
2176
|
};
|
|
2177
|
-
}(),
|
|
2177
|
+
}(), d = {}, P = d.lib = {}, z = P.Base = /* @__PURE__ */ function() {
|
|
2178
2178
|
return {
|
|
2179
2179
|
/**
|
|
2180
2180
|
* Creates a new object that inherits from this object.
|
|
@@ -2259,7 +2259,7 @@ function XA() {
|
|
|
2259
2259
|
return this.init.prototype.extend(this);
|
|
2260
2260
|
}
|
|
2261
2261
|
};
|
|
2262
|
-
}(), l = P.WordArray =
|
|
2262
|
+
}(), l = P.WordArray = z.extend({
|
|
2263
2263
|
/**
|
|
2264
2264
|
* Initializes a newly created word array.
|
|
2265
2265
|
*
|
|
@@ -2335,7 +2335,7 @@ function XA() {
|
|
|
2335
2335
|
* var clone = wordArray.clone();
|
|
2336
2336
|
*/
|
|
2337
2337
|
clone: function() {
|
|
2338
|
-
var a =
|
|
2338
|
+
var a = z.clone.call(this);
|
|
2339
2339
|
return a.words = this.words.slice(0), a;
|
|
2340
2340
|
},
|
|
2341
2341
|
/**
|
|
@@ -2356,7 +2356,7 @@ function XA() {
|
|
|
2356
2356
|
s.push(t());
|
|
2357
2357
|
return new l.init(s, a);
|
|
2358
2358
|
}
|
|
2359
|
-
}), X =
|
|
2359
|
+
}), X = d.enc = {}, c = X.Hex = {
|
|
2360
2360
|
/**
|
|
2361
2361
|
* Converts a word array to a hex string.
|
|
2362
2362
|
*
|
|
@@ -2471,7 +2471,7 @@ function XA() {
|
|
|
2471
2471
|
parse: function(a) {
|
|
2472
2472
|
return b.parse(unescape(encodeURIComponent(a)));
|
|
2473
2473
|
}
|
|
2474
|
-
}, i = P.BufferedBlockAlgorithm =
|
|
2474
|
+
}, i = P.BufferedBlockAlgorithm = z.extend({
|
|
2475
2475
|
/**
|
|
2476
2476
|
* Resets this block algorithm's data buffer to its initial state.
|
|
2477
2477
|
*
|
|
@@ -2530,7 +2530,7 @@ function XA() {
|
|
|
2530
2530
|
* var clone = bufferedBlockAlgorithm.clone();
|
|
2531
2531
|
*/
|
|
2532
2532
|
clone: function() {
|
|
2533
|
-
var a =
|
|
2533
|
+
var a = z.clone.call(this);
|
|
2534
2534
|
return a._data = this._data.clone(), a;
|
|
2535
2535
|
},
|
|
2536
2536
|
_minBufferSize: 0
|
|
@@ -2539,7 +2539,7 @@ function XA() {
|
|
|
2539
2539
|
/**
|
|
2540
2540
|
* Configuration options.
|
|
2541
2541
|
*/
|
|
2542
|
-
cfg:
|
|
2542
|
+
cfg: z.extend(),
|
|
2543
2543
|
/**
|
|
2544
2544
|
* Initializes a newly created hasher.
|
|
2545
2545
|
*
|
|
@@ -2634,8 +2634,8 @@ function XA() {
|
|
|
2634
2634
|
};
|
|
2635
2635
|
}
|
|
2636
2636
|
});
|
|
2637
|
-
var q =
|
|
2638
|
-
return
|
|
2637
|
+
var q = d.algo = {};
|
|
2638
|
+
return d;
|
|
2639
2639
|
}(Math);
|
|
2640
2640
|
return f;
|
|
2641
2641
|
});
|
|
@@ -2648,8 +2648,8 @@ function _f() {
|
|
|
2648
2648
|
v.exports = e(XA());
|
|
2649
2649
|
})(uA, function(f) {
|
|
2650
2650
|
return function(e) {
|
|
2651
|
-
var n = f, r = n.lib, t = r.Base, u = r.WordArray,
|
|
2652
|
-
|
|
2651
|
+
var n = f, r = n.lib, t = r.Base, u = r.WordArray, d = n.x64 = {};
|
|
2652
|
+
d.Word = t.extend({
|
|
2653
2653
|
/**
|
|
2654
2654
|
* Initializes a newly created 64-bit word.
|
|
2655
2655
|
*
|
|
@@ -2660,8 +2660,8 @@ function _f() {
|
|
|
2660
2660
|
*
|
|
2661
2661
|
* var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607);
|
|
2662
2662
|
*/
|
|
2663
|
-
init: function(P,
|
|
2664
|
-
this.high = P, this.low =
|
|
2663
|
+
init: function(P, z) {
|
|
2664
|
+
this.high = P, this.low = z;
|
|
2665
2665
|
}
|
|
2666
2666
|
/**
|
|
2667
2667
|
* Bitwise NOTs this word.
|
|
@@ -2812,7 +2812,7 @@ function _f() {
|
|
|
2812
2812
|
// var high = (this.high + word.high + carry) | 0;
|
|
2813
2813
|
// return X64Word.create(high, low);
|
|
2814
2814
|
// }
|
|
2815
|
-
}),
|
|
2815
|
+
}), d.WordArray = t.extend({
|
|
2816
2816
|
/**
|
|
2817
2817
|
* Initializes a newly created word array.
|
|
2818
2818
|
*
|
|
@@ -2833,8 +2833,8 @@ function _f() {
|
|
|
2833
2833
|
* CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
|
|
2834
2834
|
* ], 10);
|
|
2835
2835
|
*/
|
|
2836
|
-
init: function(P,
|
|
2837
|
-
P = this.words = P || [],
|
|
2836
|
+
init: function(P, z) {
|
|
2837
|
+
P = this.words = P || [], z != e ? this.sigBytes = z : this.sigBytes = P.length * 8;
|
|
2838
2838
|
},
|
|
2839
2839
|
/**
|
|
2840
2840
|
* Converts this 64-bit word array to a 32-bit word array.
|
|
@@ -2846,7 +2846,7 @@ function _f() {
|
|
|
2846
2846
|
* var x32WordArray = x64WordArray.toX32();
|
|
2847
2847
|
*/
|
|
2848
2848
|
toX32: function() {
|
|
2849
|
-
for (var P = this.words,
|
|
2849
|
+
for (var P = this.words, z = P.length, l = [], X = 0; X < z; X++) {
|
|
2850
2850
|
var c = P[X];
|
|
2851
2851
|
l.push(c.high), l.push(c.low);
|
|
2852
2852
|
}
|
|
@@ -2862,8 +2862,8 @@ function _f() {
|
|
|
2862
2862
|
* var clone = x64WordArray.clone();
|
|
2863
2863
|
*/
|
|
2864
2864
|
clone: function() {
|
|
2865
|
-
for (var P = t.clone.call(this),
|
|
2866
|
-
|
|
2865
|
+
for (var P = t.clone.call(this), z = P.words = this.words.slice(0), l = z.length, X = 0; X < l; X++)
|
|
2866
|
+
z[X] = z[X].clone();
|
|
2867
2867
|
return P;
|
|
2868
2868
|
}
|
|
2869
2869
|
});
|
|
@@ -2879,11 +2879,11 @@ function nu() {
|
|
|
2879
2879
|
})(uA, function(f) {
|
|
2880
2880
|
return function() {
|
|
2881
2881
|
if (typeof ArrayBuffer == "function") {
|
|
2882
|
-
var e = f, n = e.lib, r = n.WordArray, t = r.init, u = r.init = function(
|
|
2883
|
-
if (
|
|
2884
|
-
for (var P =
|
|
2885
|
-
|
|
2886
|
-
t.call(this,
|
|
2882
|
+
var e = f, n = e.lib, r = n.WordArray, t = r.init, u = r.init = function(d) {
|
|
2883
|
+
if (d instanceof ArrayBuffer && (d = new Uint8Array(d)), (d instanceof Int8Array || typeof Uint8ClampedArray < "u" && d instanceof Uint8ClampedArray || d instanceof Int16Array || d instanceof Uint16Array || d instanceof Int32Array || d instanceof Uint32Array || d instanceof Float32Array || d instanceof Float64Array) && (d = new Uint8Array(d.buffer, d.byteOffset, d.byteLength)), d instanceof Uint8Array) {
|
|
2884
|
+
for (var P = d.byteLength, z = [], l = 0; l < P; l++)
|
|
2885
|
+
z[l >>> 2] |= d[l] << 24 - l % 4 * 8;
|
|
2886
|
+
t.call(this, z, P);
|
|
2887
2887
|
} else
|
|
2888
2888
|
t.apply(this, arguments);
|
|
2889
2889
|
};
|
|
@@ -2915,8 +2915,8 @@ function ru() {
|
|
|
2915
2915
|
*
|
|
2916
2916
|
* var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);
|
|
2917
2917
|
*/
|
|
2918
|
-
stringify: function(
|
|
2919
|
-
for (var P =
|
|
2918
|
+
stringify: function(d) {
|
|
2919
|
+
for (var P = d.words, z = d.sigBytes, l = [], X = 0; X < z; X += 2) {
|
|
2920
2920
|
var c = P[X >>> 2] >>> 16 - X % 4 * 8 & 65535;
|
|
2921
2921
|
l.push(String.fromCharCode(c));
|
|
2922
2922
|
}
|
|
@@ -2935,10 +2935,10 @@ function ru() {
|
|
|
2935
2935
|
*
|
|
2936
2936
|
* var wordArray = CryptoJS.enc.Utf16.parse(utf16String);
|
|
2937
2937
|
*/
|
|
2938
|
-
parse: function(
|
|
2939
|
-
for (var P =
|
|
2940
|
-
|
|
2941
|
-
return r.create(
|
|
2938
|
+
parse: function(d) {
|
|
2939
|
+
for (var P = d.length, z = [], l = 0; l < P; l++)
|
|
2940
|
+
z[l >>> 1] |= d.charCodeAt(l) << 16 - l % 2 * 16;
|
|
2941
|
+
return r.create(z, P * 2);
|
|
2942
2942
|
}
|
|
2943
2943
|
}, t.Utf16LE = {
|
|
2944
2944
|
/**
|
|
@@ -2954,8 +2954,8 @@ function ru() {
|
|
|
2954
2954
|
*
|
|
2955
2955
|
* var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);
|
|
2956
2956
|
*/
|
|
2957
|
-
stringify: function(
|
|
2958
|
-
for (var P =
|
|
2957
|
+
stringify: function(d) {
|
|
2958
|
+
for (var P = d.words, z = d.sigBytes, l = [], X = 0; X < z; X += 2) {
|
|
2959
2959
|
var c = u(P[X >>> 2] >>> 16 - X % 4 * 8 & 65535);
|
|
2960
2960
|
l.push(String.fromCharCode(c));
|
|
2961
2961
|
}
|
|
@@ -2974,14 +2974,14 @@ function ru() {
|
|
|
2974
2974
|
*
|
|
2975
2975
|
* var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);
|
|
2976
2976
|
*/
|
|
2977
|
-
parse: function(
|
|
2978
|
-
for (var P =
|
|
2979
|
-
|
|
2980
|
-
return r.create(
|
|
2977
|
+
parse: function(d) {
|
|
2978
|
+
for (var P = d.length, z = [], l = 0; l < P; l++)
|
|
2979
|
+
z[l >>> 1] |= u(d.charCodeAt(l) << 16 - l % 2 * 16);
|
|
2980
|
+
return r.create(z, P * 2);
|
|
2981
2981
|
}
|
|
2982
2982
|
};
|
|
2983
|
-
function u(
|
|
2984
|
-
return
|
|
2983
|
+
function u(d) {
|
|
2984
|
+
return d << 8 & 4278255360 | d >>> 8 & 16711935;
|
|
2985
2985
|
}
|
|
2986
2986
|
}(), f.enc.Utf16;
|
|
2987
2987
|
});
|
|
@@ -3009,11 +3009,11 @@ function W9() {
|
|
|
3009
3009
|
*
|
|
3010
3010
|
* var base64String = CryptoJS.enc.Base64.stringify(wordArray);
|
|
3011
3011
|
*/
|
|
3012
|
-
stringify: function(
|
|
3013
|
-
var P =
|
|
3014
|
-
|
|
3015
|
-
for (var X = [], c = 0; c <
|
|
3016
|
-
for (var b = P[c >>> 2] >>> 24 - c % 4 * 8 & 255, p = P[c + 1 >>> 2] >>> 24 - (c + 1) % 4 * 8 & 255, i = P[c + 2 >>> 2] >>> 24 - (c + 2) % 4 * 8 & 255, q = b << 16 | p << 8 | i, a = 0; a < 4 && c + a * 0.75 <
|
|
3012
|
+
stringify: function(d) {
|
|
3013
|
+
var P = d.words, z = d.sigBytes, l = this._map;
|
|
3014
|
+
d.clamp();
|
|
3015
|
+
for (var X = [], c = 0; c < z; c += 3)
|
|
3016
|
+
for (var b = P[c >>> 2] >>> 24 - c % 4 * 8 & 255, p = P[c + 1 >>> 2] >>> 24 - (c + 1) % 4 * 8 & 255, i = P[c + 2 >>> 2] >>> 24 - (c + 2) % 4 * 8 & 255, q = b << 16 | p << 8 | i, a = 0; a < 4 && c + a * 0.75 < z; a++)
|
|
3017
3017
|
X.push(l.charAt(q >>> 6 * (3 - a) & 63));
|
|
3018
3018
|
var s = l.charAt(64);
|
|
3019
3019
|
if (s)
|
|
@@ -3034,26 +3034,26 @@ function W9() {
|
|
|
3034
3034
|
*
|
|
3035
3035
|
* var wordArray = CryptoJS.enc.Base64.parse(base64String);
|
|
3036
3036
|
*/
|
|
3037
|
-
parse: function(
|
|
3038
|
-
var P =
|
|
3037
|
+
parse: function(d) {
|
|
3038
|
+
var P = d.length, z = this._map, l = this._reverseMap;
|
|
3039
3039
|
if (!l) {
|
|
3040
3040
|
l = this._reverseMap = [];
|
|
3041
|
-
for (var X = 0; X <
|
|
3042
|
-
l[
|
|
3041
|
+
for (var X = 0; X < z.length; X++)
|
|
3042
|
+
l[z.charCodeAt(X)] = X;
|
|
3043
3043
|
}
|
|
3044
|
-
var c =
|
|
3044
|
+
var c = z.charAt(64);
|
|
3045
3045
|
if (c) {
|
|
3046
|
-
var b =
|
|
3046
|
+
var b = d.indexOf(c);
|
|
3047
3047
|
b !== -1 && (P = b);
|
|
3048
3048
|
}
|
|
3049
|
-
return u(
|
|
3049
|
+
return u(d, P, l);
|
|
3050
3050
|
},
|
|
3051
3051
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
3052
3052
|
};
|
|
3053
|
-
function u(
|
|
3053
|
+
function u(d, P, z) {
|
|
3054
3054
|
for (var l = [], X = 0, c = 0; c < P; c++)
|
|
3055
3055
|
if (c % 4) {
|
|
3056
|
-
var b = d
|
|
3056
|
+
var b = z[d.charCodeAt(c - 1)] << c % 4 * 2, p = z[d.charCodeAt(c)] >>> 6 - c % 4 * 2, i = b | p;
|
|
3057
3057
|
l[X >>> 2] |= i << 24 - X % 4 * 8, X++;
|
|
3058
3058
|
}
|
|
3059
3059
|
return r.create(l, X);
|
|
@@ -3086,12 +3086,12 @@ function Pu() {
|
|
|
3086
3086
|
*
|
|
3087
3087
|
* var base64String = CryptoJS.enc.Base64url.stringify(wordArray);
|
|
3088
3088
|
*/
|
|
3089
|
-
stringify: function(
|
|
3089
|
+
stringify: function(d, P) {
|
|
3090
3090
|
P === void 0 && (P = !0);
|
|
3091
|
-
var
|
|
3092
|
-
|
|
3091
|
+
var z = d.words, l = d.sigBytes, X = P ? this._safe_map : this._map;
|
|
3092
|
+
d.clamp();
|
|
3093
3093
|
for (var c = [], b = 0; b < l; b += 3)
|
|
3094
|
-
for (var p =
|
|
3094
|
+
for (var p = z[b >>> 2] >>> 24 - b % 4 * 8 & 255, i = z[b + 1 >>> 2] >>> 24 - (b + 1) % 4 * 8 & 255, q = z[b + 2 >>> 2] >>> 24 - (b + 2) % 4 * 8 & 255, a = p << 16 | i << 8 | q, s = 0; s < 4 && b + s * 0.75 < l; s++)
|
|
3095
3095
|
c.push(X.charAt(a >>> 6 * (3 - s) & 63));
|
|
3096
3096
|
var H = X.charAt(64);
|
|
3097
3097
|
if (H)
|
|
@@ -3114,9 +3114,9 @@ function Pu() {
|
|
|
3114
3114
|
*
|
|
3115
3115
|
* var wordArray = CryptoJS.enc.Base64url.parse(base64String);
|
|
3116
3116
|
*/
|
|
3117
|
-
parse: function(
|
|
3117
|
+
parse: function(d, P) {
|
|
3118
3118
|
P === void 0 && (P = !0);
|
|
3119
|
-
var
|
|
3119
|
+
var z = d.length, l = P ? this._safe_map : this._map, X = this._reverseMap;
|
|
3120
3120
|
if (!X) {
|
|
3121
3121
|
X = this._reverseMap = [];
|
|
3122
3122
|
for (var c = 0; c < l.length; c++)
|
|
@@ -3124,18 +3124,18 @@ function Pu() {
|
|
|
3124
3124
|
}
|
|
3125
3125
|
var b = l.charAt(64);
|
|
3126
3126
|
if (b) {
|
|
3127
|
-
var p =
|
|
3128
|
-
p !== -1 && (
|
|
3127
|
+
var p = d.indexOf(b);
|
|
3128
|
+
p !== -1 && (z = p);
|
|
3129
3129
|
}
|
|
3130
|
-
return u(
|
|
3130
|
+
return u(d, z, X);
|
|
3131
3131
|
},
|
|
3132
3132
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
|
|
3133
3133
|
_safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
|
|
3134
3134
|
};
|
|
3135
|
-
function u(
|
|
3135
|
+
function u(d, P, z) {
|
|
3136
3136
|
for (var l = [], X = 0, c = 0; c < P; c++)
|
|
3137
3137
|
if (c % 4) {
|
|
3138
|
-
var b = d
|
|
3138
|
+
var b = z[d.charCodeAt(c - 1)] << c % 4 * 2, p = z[d.charCodeAt(c)] >>> 6 - c % 4 * 2, i = b | p;
|
|
3139
3139
|
l[X >>> 2] |= i << 24 - X % 4 * 8, X++;
|
|
3140
3140
|
}
|
|
3141
3141
|
return r.create(l, X);
|
|
@@ -3151,12 +3151,12 @@ function o9() {
|
|
|
3151
3151
|
v.exports = e(XA());
|
|
3152
3152
|
})(uA, function(f) {
|
|
3153
3153
|
return function(e) {
|
|
3154
|
-
var n = f, r = n.lib, t = r.WordArray, u = r.Hasher,
|
|
3154
|
+
var n = f, r = n.lib, t = r.WordArray, u = r.Hasher, d = n.algo, P = [];
|
|
3155
3155
|
(function() {
|
|
3156
3156
|
for (var p = 0; p < 64; p++)
|
|
3157
3157
|
P[p] = e.abs(e.sin(p + 1)) * 4294967296 | 0;
|
|
3158
3158
|
})();
|
|
3159
|
-
var
|
|
3159
|
+
var z = d.MD5 = u.extend({
|
|
3160
3160
|
_doReset: function() {
|
|
3161
3161
|
this._hash = new t.init([
|
|
3162
3162
|
1732584193,
|
|
@@ -3205,7 +3205,7 @@ function o9() {
|
|
|
3205
3205
|
var Z = p + (q ^ (i | ~a)) + s + O;
|
|
3206
3206
|
return (Z << H | Z >>> 32 - H) + i;
|
|
3207
3207
|
}
|
|
3208
|
-
n.MD5 = u._createHelper(
|
|
3208
|
+
n.MD5 = u._createHelper(z), n.HmacMD5 = u._createHmacHelper(z);
|
|
3209
3209
|
}(Math), f.MD5;
|
|
3210
3210
|
});
|
|
3211
3211
|
}(s3)), s3.exports;
|
|
@@ -3217,7 +3217,7 @@ function en() {
|
|
|
3217
3217
|
v.exports = e(XA());
|
|
3218
3218
|
})(uA, function(f) {
|
|
3219
3219
|
return function() {
|
|
3220
|
-
var e = f, n = e.lib, r = n.WordArray, t = n.Hasher, u = e.algo,
|
|
3220
|
+
var e = f, n = e.lib, r = n.WordArray, t = n.Hasher, u = e.algo, d = [], P = u.SHA1 = t.extend({
|
|
3221
3221
|
_doReset: function() {
|
|
3222
3222
|
this._hash = new r.init([
|
|
3223
3223
|
1732584193,
|
|
@@ -3227,26 +3227,26 @@ function en() {
|
|
|
3227
3227
|
3285377520
|
|
3228
3228
|
]);
|
|
3229
3229
|
},
|
|
3230
|
-
_doProcessBlock: function(
|
|
3230
|
+
_doProcessBlock: function(z, l) {
|
|
3231
3231
|
for (var X = this._hash.words, c = X[0], b = X[1], p = X[2], i = X[3], q = X[4], a = 0; a < 80; a++) {
|
|
3232
3232
|
if (a < 16)
|
|
3233
|
-
|
|
3233
|
+
d[a] = z[l + a] | 0;
|
|
3234
3234
|
else {
|
|
3235
|
-
var s =
|
|
3236
|
-
|
|
3235
|
+
var s = d[a - 3] ^ d[a - 8] ^ d[a - 14] ^ d[a - 16];
|
|
3236
|
+
d[a] = s << 1 | s >>> 31;
|
|
3237
3237
|
}
|
|
3238
|
-
var H = (c << 5 | c >>> 27) + q +
|
|
3238
|
+
var H = (c << 5 | c >>> 27) + q + d[a];
|
|
3239
3239
|
a < 20 ? H += (b & p | ~b & i) + 1518500249 : a < 40 ? H += (b ^ p ^ i) + 1859775393 : a < 60 ? H += (b & p | b & i | p & i) - 1894007588 : H += (b ^ p ^ i) - 899497514, q = i, i = p, p = b << 30 | b >>> 2, b = c, c = H;
|
|
3240
3240
|
}
|
|
3241
3241
|
X[0] = X[0] + c | 0, X[1] = X[1] + b | 0, X[2] = X[2] + p | 0, X[3] = X[3] + i | 0, X[4] = X[4] + q | 0;
|
|
3242
3242
|
},
|
|
3243
3243
|
_doFinalize: function() {
|
|
3244
|
-
var
|
|
3245
|
-
return l[c >>> 5] |= 128 << 24 - c % 32, l[(c + 64 >>> 9 << 4) + 14] = Math.floor(X / 4294967296), l[(c + 64 >>> 9 << 4) + 15] = X,
|
|
3244
|
+
var z = this._data, l = z.words, X = this._nDataBytes * 8, c = z.sigBytes * 8;
|
|
3245
|
+
return l[c >>> 5] |= 128 << 24 - c % 32, l[(c + 64 >>> 9 << 4) + 14] = Math.floor(X / 4294967296), l[(c + 64 >>> 9 << 4) + 15] = X, z.sigBytes = l.length * 4, this._process(), this._hash;
|
|
3246
3246
|
},
|
|
3247
3247
|
clone: function() {
|
|
3248
|
-
var
|
|
3249
|
-
return
|
|
3248
|
+
var z = t.clone.call(this);
|
|
3249
|
+
return z._hash = this._hash.clone(), z;
|
|
3250
3250
|
}
|
|
3251
3251
|
});
|
|
3252
3252
|
e.SHA1 = t._createHelper(P), e.HmacSHA1 = t._createHmacHelper(P);
|
|
@@ -3261,7 +3261,7 @@ function V7() {
|
|
|
3261
3261
|
v.exports = e(XA());
|
|
3262
3262
|
})(uA, function(f) {
|
|
3263
3263
|
return function(e) {
|
|
3264
|
-
var n = f, r = n.lib, t = r.WordArray, u = r.Hasher,
|
|
3264
|
+
var n = f, r = n.lib, t = r.WordArray, u = r.Hasher, d = n.algo, P = [], z = [];
|
|
3265
3265
|
(function() {
|
|
3266
3266
|
function c(q) {
|
|
3267
3267
|
for (var a = e.sqrt(q), s = 2; s <= a; s++)
|
|
@@ -3273,9 +3273,9 @@ function V7() {
|
|
|
3273
3273
|
return (q - (q | 0)) * 4294967296 | 0;
|
|
3274
3274
|
}
|
|
3275
3275
|
for (var p = 2, i = 0; i < 64; )
|
|
3276
|
-
c(p) && (i < 8 && (P[i] = b(e.pow(p, 1 / 2))),
|
|
3276
|
+
c(p) && (i < 8 && (P[i] = b(e.pow(p, 1 / 2))), z[i] = b(e.pow(p, 1 / 3)), i++), p++;
|
|
3277
3277
|
})();
|
|
3278
|
-
var l = [], X =
|
|
3278
|
+
var l = [], X = d.SHA256 = u.extend({
|
|
3279
3279
|
_doReset: function() {
|
|
3280
3280
|
this._hash = new t.init(P.slice(0));
|
|
3281
3281
|
},
|
|
@@ -3287,7 +3287,7 @@ function V7() {
|
|
|
3287
3287
|
var T = l[V - 15], m = (T << 25 | T >>> 7) ^ (T << 14 | T >>> 18) ^ T >>> 3, N = l[V - 2], j = (N << 15 | N >>> 17) ^ (N << 13 | N >>> 19) ^ N >>> 10;
|
|
3288
3288
|
l[V] = m + l[V - 7] + j + l[V - 16];
|
|
3289
3289
|
}
|
|
3290
|
-
var y = H & O ^ ~H & Z, M = i & q ^ i & a ^ q & a, Q = (i << 30 | i >>> 2) ^ (i << 19 | i >>> 13) ^ (i << 10 | i >>> 22), $ = (H << 26 | H >>> 6) ^ (H << 21 | H >>> 11) ^ (H << 7 | H >>> 25), K = R + $ + y +
|
|
3290
|
+
var y = H & O ^ ~H & Z, M = i & q ^ i & a ^ q & a, Q = (i << 30 | i >>> 2) ^ (i << 19 | i >>> 13) ^ (i << 10 | i >>> 22), $ = (H << 26 | H >>> 6) ^ (H << 21 | H >>> 11) ^ (H << 7 | H >>> 25), K = R + $ + y + z[V] + l[V], G = Q + M;
|
|
3291
3291
|
R = Z, Z = O, O = H, H = s + K | 0, s = a, a = q, q = i, i = K + G | 0;
|
|
3292
3292
|
}
|
|
3293
3293
|
p[0] = p[0] + i | 0, p[1] = p[1] + q | 0, p[2] = p[2] + a | 0, p[3] = p[3] + s | 0, p[4] = p[4] + H | 0, p[5] = p[5] + O | 0, p[6] = p[6] + Z | 0, p[7] = p[7] + R | 0;
|
|
@@ -3313,7 +3313,7 @@ function tu() {
|
|
|
3313
3313
|
v.exports = e(XA(), V7());
|
|
3314
3314
|
})(uA, function(f) {
|
|
3315
3315
|
return function() {
|
|
3316
|
-
var e = f, n = e.lib, r = n.WordArray, t = e.algo, u = t.SHA256,
|
|
3316
|
+
var e = f, n = e.lib, r = n.WordArray, t = e.algo, u = t.SHA256, d = t.SHA224 = u.extend({
|
|
3317
3317
|
_doReset: function() {
|
|
3318
3318
|
this._hash = new r.init([
|
|
3319
3319
|
3238371032,
|
|
@@ -3331,7 +3331,7 @@ function tu() {
|
|
|
3331
3331
|
return P.sigBytes -= 4, P;
|
|
3332
3332
|
}
|
|
3333
3333
|
});
|
|
3334
|
-
e.SHA224 = u._createHelper(
|
|
3334
|
+
e.SHA224 = u._createHelper(d), e.HmacSHA224 = u._createHmacHelper(d);
|
|
3335
3335
|
}(), f.SHA224;
|
|
3336
3336
|
});
|
|
3337
3337
|
}(m3)), m3.exports;
|
|
@@ -3343,99 +3343,99 @@ function nn() {
|
|
|
3343
3343
|
v.exports = e(XA(), _f());
|
|
3344
3344
|
})(uA, function(f) {
|
|
3345
3345
|
return function() {
|
|
3346
|
-
var e = f, n = e.lib, r = n.Hasher, t = e.x64, u = t.Word,
|
|
3347
|
-
function
|
|
3346
|
+
var e = f, n = e.lib, r = n.Hasher, t = e.x64, u = t.Word, d = t.WordArray, P = e.algo;
|
|
3347
|
+
function z() {
|
|
3348
3348
|
return u.create.apply(u, arguments);
|
|
3349
3349
|
}
|
|
3350
3350
|
var l = [
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3351
|
+
z(1116352408, 3609767458),
|
|
3352
|
+
z(1899447441, 602891725),
|
|
3353
|
+
z(3049323471, 3964484399),
|
|
3354
|
+
z(3921009573, 2173295548),
|
|
3355
|
+
z(961987163, 4081628472),
|
|
3356
|
+
z(1508970993, 3053834265),
|
|
3357
|
+
z(2453635748, 2937671579),
|
|
3358
|
+
z(2870763221, 3664609560),
|
|
3359
|
+
z(3624381080, 2734883394),
|
|
3360
|
+
z(310598401, 1164996542),
|
|
3361
|
+
z(607225278, 1323610764),
|
|
3362
|
+
z(1426881987, 3590304994),
|
|
3363
|
+
z(1925078388, 4068182383),
|
|
3364
|
+
z(2162078206, 991336113),
|
|
3365
|
+
z(2614888103, 633803317),
|
|
3366
|
+
z(3248222580, 3479774868),
|
|
3367
|
+
z(3835390401, 2666613458),
|
|
3368
|
+
z(4022224774, 944711139),
|
|
3369
|
+
z(264347078, 2341262773),
|
|
3370
|
+
z(604807628, 2007800933),
|
|
3371
|
+
z(770255983, 1495990901),
|
|
3372
|
+
z(1249150122, 1856431235),
|
|
3373
|
+
z(1555081692, 3175218132),
|
|
3374
|
+
z(1996064986, 2198950837),
|
|
3375
|
+
z(2554220882, 3999719339),
|
|
3376
|
+
z(2821834349, 766784016),
|
|
3377
|
+
z(2952996808, 2566594879),
|
|
3378
|
+
z(3210313671, 3203337956),
|
|
3379
|
+
z(3336571891, 1034457026),
|
|
3380
|
+
z(3584528711, 2466948901),
|
|
3381
|
+
z(113926993, 3758326383),
|
|
3382
|
+
z(338241895, 168717936),
|
|
3383
|
+
z(666307205, 1188179964),
|
|
3384
|
+
z(773529912, 1546045734),
|
|
3385
|
+
z(1294757372, 1522805485),
|
|
3386
|
+
z(1396182291, 2643833823),
|
|
3387
|
+
z(1695183700, 2343527390),
|
|
3388
|
+
z(1986661051, 1014477480),
|
|
3389
|
+
z(2177026350, 1206759142),
|
|
3390
|
+
z(2456956037, 344077627),
|
|
3391
|
+
z(2730485921, 1290863460),
|
|
3392
|
+
z(2820302411, 3158454273),
|
|
3393
|
+
z(3259730800, 3505952657),
|
|
3394
|
+
z(3345764771, 106217008),
|
|
3395
|
+
z(3516065817, 3606008344),
|
|
3396
|
+
z(3600352804, 1432725776),
|
|
3397
|
+
z(4094571909, 1467031594),
|
|
3398
|
+
z(275423344, 851169720),
|
|
3399
|
+
z(430227734, 3100823752),
|
|
3400
|
+
z(506948616, 1363258195),
|
|
3401
|
+
z(659060556, 3750685593),
|
|
3402
|
+
z(883997877, 3785050280),
|
|
3403
|
+
z(958139571, 3318307427),
|
|
3404
|
+
z(1322822218, 3812723403),
|
|
3405
|
+
z(1537002063, 2003034995),
|
|
3406
|
+
z(1747873779, 3602036899),
|
|
3407
|
+
z(1955562222, 1575990012),
|
|
3408
|
+
z(2024104815, 1125592928),
|
|
3409
|
+
z(2227730452, 2716904306),
|
|
3410
|
+
z(2361852424, 442776044),
|
|
3411
|
+
z(2428436474, 593698344),
|
|
3412
|
+
z(2756734187, 3733110249),
|
|
3413
|
+
z(3204031479, 2999351573),
|
|
3414
|
+
z(3329325298, 3815920427),
|
|
3415
|
+
z(3391569614, 3928383900),
|
|
3416
|
+
z(3515267271, 566280711),
|
|
3417
|
+
z(3940187606, 3454069534),
|
|
3418
|
+
z(4118630271, 4000239992),
|
|
3419
|
+
z(116418474, 1914138554),
|
|
3420
|
+
z(174292421, 2731055270),
|
|
3421
|
+
z(289380356, 3203993006),
|
|
3422
|
+
z(460393269, 320620315),
|
|
3423
|
+
z(685471733, 587496836),
|
|
3424
|
+
z(852142971, 1086792851),
|
|
3425
|
+
z(1017036298, 365543100),
|
|
3426
|
+
z(1126000580, 2618297676),
|
|
3427
|
+
z(1288033470, 3409855158),
|
|
3428
|
+
z(1501505948, 4234509866),
|
|
3429
|
+
z(1607167915, 987167468),
|
|
3430
|
+
z(1816402316, 1246189591)
|
|
3431
3431
|
], X = [];
|
|
3432
3432
|
(function() {
|
|
3433
3433
|
for (var b = 0; b < 80; b++)
|
|
3434
|
-
X[b] =
|
|
3434
|
+
X[b] = z();
|
|
3435
3435
|
})();
|
|
3436
3436
|
var c = P.SHA512 = r.extend({
|
|
3437
3437
|
_doReset: function() {
|
|
3438
|
-
this._hash = new
|
|
3438
|
+
this._hash = new d.init([
|
|
3439
3439
|
new u.init(1779033703, 4089235720),
|
|
3440
3440
|
new u.init(3144134277, 2227873595),
|
|
3441
3441
|
new u.init(1013904242, 4271175723),
|
|
@@ -3484,7 +3484,7 @@ function uu() {
|
|
|
3484
3484
|
v.exports = e(XA(), _f(), nn());
|
|
3485
3485
|
})(uA, function(f) {
|
|
3486
3486
|
return function() {
|
|
3487
|
-
var e = f, n = e.x64, r = n.Word, t = n.WordArray, u = e.algo,
|
|
3487
|
+
var e = f, n = e.x64, r = n.Word, t = n.WordArray, u = e.algo, d = u.SHA512, P = u.SHA384 = d.extend({
|
|
3488
3488
|
_doReset: function() {
|
|
3489
3489
|
this._hash = new t.init([
|
|
3490
3490
|
new r.init(3418070365, 3238371032),
|
|
@@ -3498,11 +3498,11 @@ function uu() {
|
|
|
3498
3498
|
]);
|
|
3499
3499
|
},
|
|
3500
3500
|
_doFinalize: function() {
|
|
3501
|
-
var
|
|
3502
|
-
return
|
|
3501
|
+
var z = d._doFinalize.call(this);
|
|
3502
|
+
return z.sigBytes -= 16, z;
|
|
3503
3503
|
}
|
|
3504
3504
|
});
|
|
3505
|
-
e.SHA384 =
|
|
3505
|
+
e.SHA384 = d._createHelper(P), e.HmacSHA384 = d._createHmacHelper(P);
|
|
3506
3506
|
}(), f.SHA384;
|
|
3507
3507
|
});
|
|
3508
3508
|
}(V3)), V3.exports;
|
|
@@ -3514,7 +3514,7 @@ function du() {
|
|
|
3514
3514
|
v.exports = e(XA(), _f());
|
|
3515
3515
|
})(uA, function(f) {
|
|
3516
3516
|
return function(e) {
|
|
3517
|
-
var n = f, r = n.lib, t = r.WordArray, u = r.Hasher,
|
|
3517
|
+
var n = f, r = n.lib, t = r.WordArray, u = r.Hasher, d = n.x64, P = d.Word, z = n.algo, l = [], X = [], c = [];
|
|
3518
3518
|
(function() {
|
|
3519
3519
|
for (var i = 1, q = 0, a = 0; a < 24; a++) {
|
|
3520
3520
|
l[i + 5 * q] = (a + 1) * (a + 2) / 2 % 64;
|
|
@@ -3540,7 +3540,7 @@ function du() {
|
|
|
3540
3540
|
for (var i = 0; i < 25; i++)
|
|
3541
3541
|
b[i] = P.create();
|
|
3542
3542
|
})();
|
|
3543
|
-
var p =
|
|
3543
|
+
var p = z.SHA3 = u.extend({
|
|
3544
3544
|
/**
|
|
3545
3545
|
* Configuration options.
|
|
3546
3546
|
*
|
|
@@ -3634,7 +3634,7 @@ function zu() {
|
|
|
3634
3634
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
3635
3635
|
*/
|
|
3636
3636
|
return function(e) {
|
|
3637
|
-
var n = f, r = n.lib, t = r.WordArray, u = r.Hasher,
|
|
3637
|
+
var n = f, r = n.lib, t = r.WordArray, u = r.Hasher, d = n.algo, P = t.create([
|
|
3638
3638
|
0,
|
|
3639
3639
|
1,
|
|
3640
3640
|
2,
|
|
@@ -3715,7 +3715,7 @@ function zu() {
|
|
|
3715
3715
|
6,
|
|
3716
3716
|
15,
|
|
3717
3717
|
13
|
|
3718
|
-
]),
|
|
3718
|
+
]), z = t.create([
|
|
3719
3719
|
5,
|
|
3720
3720
|
14,
|
|
3721
3721
|
7,
|
|
@@ -3958,7 +3958,7 @@ function zu() {
|
|
|
3958
3958
|
13,
|
|
3959
3959
|
11,
|
|
3960
3960
|
11
|
|
3961
|
-
]), c = t.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), b = t.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), p =
|
|
3961
|
+
]), c = t.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), b = t.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), p = d.RIPEMD160 = u.extend({
|
|
3962
3962
|
_doReset: function() {
|
|
3963
3963
|
this._hash = t.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
3964
3964
|
},
|
|
@@ -3967,7 +3967,7 @@ function zu() {
|
|
|
3967
3967
|
var T = R + V, m = Z[T];
|
|
3968
3968
|
Z[T] = (m << 8 | m >>> 24) & 16711935 | (m << 24 | m >>> 8) & 4278255360;
|
|
3969
3969
|
}
|
|
3970
|
-
var N = this._hash.words, j = c.words, y = b.words, M = P.words, Q =
|
|
3970
|
+
var N = this._hash.words, j = c.words, y = b.words, M = P.words, Q = z.words, $ = l.words, K = X.words, G, S, C, L, o, E, w, cA, aA, DA;
|
|
3971
3971
|
E = G = N[0], w = S = N[1], cA = C = N[2], aA = L = N[3], DA = o = N[4];
|
|
3972
3972
|
for (var _, V = 0; V < 80; V += 1)
|
|
3973
3973
|
_ = G + Z[R + M[V]] | 0, V < 16 ? _ += i(S, C, L) + j[0] : V < 32 ? _ += q(S, C, L) + j[1] : V < 48 ? _ += a(S, C, L) + j[2] : V < 64 ? _ += s(S, C, L) + j[3] : _ += H(S, C, L) + j[4], _ = _ | 0, _ = O(_, $[V]), _ = _ + o | 0, G = o, o = L, L = O(C, 10), C = S, S = _, _ = E + Z[R + Q[V]] | 0, V < 16 ? _ += H(w, cA, aA) + y[0] : V < 32 ? _ += s(w, cA, aA) + y[1] : V < 48 ? _ += a(w, cA, aA) + y[2] : V < 64 ? _ += q(w, cA, aA) + y[3] : _ += i(w, cA, aA) + y[4], _ = _ | 0, _ = O(_, K[V]), _ = _ + DA | 0, E = DA, DA = aA, aA = O(cA, 10), cA = w, w = _;
|
|
@@ -4017,8 +4017,8 @@ function x7() {
|
|
|
4017
4017
|
v.exports = e(XA());
|
|
4018
4018
|
})(uA, function(f) {
|
|
4019
4019
|
(function() {
|
|
4020
|
-
var e = f, n = e.lib, r = n.Base, t = e.enc, u = t.Utf8,
|
|
4021
|
-
|
|
4020
|
+
var e = f, n = e.lib, r = n.Base, t = e.enc, u = t.Utf8, d = e.algo;
|
|
4021
|
+
d.HMAC = r.extend({
|
|
4022
4022
|
/**
|
|
4023
4023
|
* Initializes a newly created HMAC.
|
|
4024
4024
|
*
|
|
@@ -4029,11 +4029,11 @@ function x7() {
|
|
|
4029
4029
|
*
|
|
4030
4030
|
* var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);
|
|
4031
4031
|
*/
|
|
4032
|
-
init: function(P,
|
|
4033
|
-
P = this._hasher = new P.init(), typeof
|
|
4032
|
+
init: function(P, z) {
|
|
4033
|
+
P = this._hasher = new P.init(), typeof z == "string" && (z = u.parse(z));
|
|
4034
4034
|
var l = P.blockSize, X = l * 4;
|
|
4035
|
-
|
|
4036
|
-
for (var c = this._oKey =
|
|
4035
|
+
z.sigBytes > X && (z = P.finalize(z)), z.clamp();
|
|
4036
|
+
for (var c = this._oKey = z.clone(), b = this._iKey = z.clone(), p = c.words, i = b.words, q = 0; q < l; q++)
|
|
4037
4037
|
p[q] ^= 1549556828, i[q] ^= 909522486;
|
|
4038
4038
|
c.sigBytes = b.sigBytes = X, this.reset();
|
|
4039
4039
|
},
|
|
@@ -4078,9 +4078,9 @@ function x7() {
|
|
|
4078
4078
|
* var hmac = hmacHasher.finalize(wordArray);
|
|
4079
4079
|
*/
|
|
4080
4080
|
finalize: function(P) {
|
|
4081
|
-
var
|
|
4082
|
-
|
|
4083
|
-
var X =
|
|
4081
|
+
var z = this._hasher, l = z.finalize(P);
|
|
4082
|
+
z.reset();
|
|
4083
|
+
var X = z.finalize(this._oKey.clone().concat(l));
|
|
4084
4084
|
return X;
|
|
4085
4085
|
}
|
|
4086
4086
|
});
|
|
@@ -4095,7 +4095,7 @@ function Xu() {
|
|
|
4095
4095
|
v.exports = e(XA(), V7(), x7());
|
|
4096
4096
|
})(uA, function(f) {
|
|
4097
4097
|
return function() {
|
|
4098
|
-
var e = f, n = e.lib, r = n.Base, t = n.WordArray, u = e.algo,
|
|
4098
|
+
var e = f, n = e.lib, r = n.Base, t = n.WordArray, u = e.algo, d = u.SHA256, P = u.HMAC, z = u.PBKDF2 = r.extend({
|
|
4099
4099
|
/**
|
|
4100
4100
|
* Configuration options.
|
|
4101
4101
|
*
|
|
@@ -4105,7 +4105,7 @@ function Xu() {
|
|
|
4105
4105
|
*/
|
|
4106
4106
|
cfg: r.extend({
|
|
4107
4107
|
keySize: 128 / 32,
|
|
4108
|
-
hasher:
|
|
4108
|
+
hasher: d,
|
|
4109
4109
|
iterations: 25e4
|
|
4110
4110
|
}),
|
|
4111
4111
|
/**
|
|
@@ -4149,7 +4149,7 @@ function Xu() {
|
|
|
4149
4149
|
}
|
|
4150
4150
|
});
|
|
4151
4151
|
e.PBKDF2 = function(l, X, c) {
|
|
4152
|
-
return
|
|
4152
|
+
return z.create(c).compute(l, X);
|
|
4153
4153
|
};
|
|
4154
4154
|
}(), f.PBKDF2;
|
|
4155
4155
|
});
|
|
@@ -4162,7 +4162,7 @@ function V9() {
|
|
|
4162
4162
|
v.exports = e(XA(), en(), x7());
|
|
4163
4163
|
})(uA, function(f) {
|
|
4164
4164
|
return function() {
|
|
4165
|
-
var e = f, n = e.lib, r = n.Base, t = n.WordArray, u = e.algo,
|
|
4165
|
+
var e = f, n = e.lib, r = n.Base, t = n.WordArray, u = e.algo, d = u.MD5, P = u.EvpKDF = r.extend({
|
|
4166
4166
|
/**
|
|
4167
4167
|
* Configuration options.
|
|
4168
4168
|
*
|
|
@@ -4172,7 +4172,7 @@ function V9() {
|
|
|
4172
4172
|
*/
|
|
4173
4173
|
cfg: r.extend({
|
|
4174
4174
|
keySize: 128 / 32,
|
|
4175
|
-
hasher:
|
|
4175
|
+
hasher: d,
|
|
4176
4176
|
iterations: 1
|
|
4177
4177
|
}),
|
|
4178
4178
|
/**
|
|
@@ -4186,8 +4186,8 @@ function V9() {
|
|
|
4186
4186
|
* var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8 });
|
|
4187
4187
|
* var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8, iterations: 1000 });
|
|
4188
4188
|
*/
|
|
4189
|
-
init: function(
|
|
4190
|
-
this.cfg = this.cfg.extend(
|
|
4189
|
+
init: function(z) {
|
|
4190
|
+
this.cfg = this.cfg.extend(z);
|
|
4191
4191
|
},
|
|
4192
4192
|
/**
|
|
4193
4193
|
* Derives a key from a password.
|
|
@@ -4201,9 +4201,9 @@ function V9() {
|
|
|
4201
4201
|
*
|
|
4202
4202
|
* var key = kdf.compute(password, salt);
|
|
4203
4203
|
*/
|
|
4204
|
-
compute: function(
|
|
4204
|
+
compute: function(z, l) {
|
|
4205
4205
|
for (var X, c = this.cfg, b = c.hasher.create(), p = t.create(), i = p.words, q = c.keySize, a = c.iterations; i.length < q; ) {
|
|
4206
|
-
X && b.update(X), X = b.update(
|
|
4206
|
+
X && b.update(X), X = b.update(z).finalize(l), b.reset();
|
|
4207
4207
|
for (var s = 1; s < a; s++)
|
|
4208
4208
|
X = b.finalize(X), b.reset();
|
|
4209
4209
|
p.concat(X);
|
|
@@ -4211,8 +4211,8 @@ function V9() {
|
|
|
4211
4211
|
return p.sigBytes = q * 4, p;
|
|
4212
4212
|
}
|
|
4213
4213
|
});
|
|
4214
|
-
e.EvpKDF = function(
|
|
4215
|
-
return P.create(X).compute(
|
|
4214
|
+
e.EvpKDF = function(z, l, X) {
|
|
4215
|
+
return P.create(X).compute(z, l);
|
|
4216
4216
|
};
|
|
4217
4217
|
}(), f.EvpKDF;
|
|
4218
4218
|
});
|
|
@@ -4225,9 +4225,9 @@ function LA() {
|
|
|
4225
4225
|
v.exports = e(XA(), V9());
|
|
4226
4226
|
})(uA, function(f) {
|
|
4227
4227
|
f.lib.Cipher || function(e) {
|
|
4228
|
-
var n = f, r = n.lib, t = r.Base, u = r.WordArray,
|
|
4228
|
+
var n = f, r = n.lib, t = r.Base, u = r.WordArray, d = r.BufferedBlockAlgorithm, P = n.enc;
|
|
4229
4229
|
P.Utf8;
|
|
4230
|
-
var
|
|
4230
|
+
var z = P.Base64, l = n.algo, X = l.EvpKDF, c = r.Cipher = d.extend({
|
|
4231
4231
|
/**
|
|
4232
4232
|
* Configuration options.
|
|
4233
4233
|
*
|
|
@@ -4290,7 +4290,7 @@ function LA() {
|
|
|
4290
4290
|
* cipher.reset();
|
|
4291
4291
|
*/
|
|
4292
4292
|
reset: function() {
|
|
4293
|
-
|
|
4293
|
+
d.reset.call(this), this._doReset();
|
|
4294
4294
|
},
|
|
4295
4295
|
/**
|
|
4296
4296
|
* Adds data to be encrypted or decrypted.
|
|
@@ -4568,7 +4568,7 @@ function LA() {
|
|
|
4568
4568
|
*/
|
|
4569
4569
|
stringify: function(m) {
|
|
4570
4570
|
var N, j = m.ciphertext, y = m.salt;
|
|
4571
|
-
return y ? N = u.create([1398893684, 1701076831]).concat(y).concat(j) : N = j, N.toString(
|
|
4571
|
+
return y ? N = u.create([1398893684, 1701076831]).concat(y).concat(j) : N = j, N.toString(z);
|
|
4572
4572
|
},
|
|
4573
4573
|
/**
|
|
4574
4574
|
* Converts an OpenSSL-compatible string to a cipher params object.
|
|
@@ -4584,7 +4584,7 @@ function LA() {
|
|
|
4584
4584
|
* var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
|
|
4585
4585
|
*/
|
|
4586
4586
|
parse: function(m) {
|
|
4587
|
-
var N, j =
|
|
4587
|
+
var N, j = z.parse(m), y = j.words;
|
|
4588
4588
|
return y[0] == 1398893684 && y[1] == 1701076831 && (N = u.create(y.slice(2, 4)), y.splice(0, 4), j.sigBytes -= 16), s.create({ ciphertext: j, salt: N });
|
|
4589
4589
|
}
|
|
4590
4590
|
}, Z = r.SerializableCipher = t.extend({
|
|
@@ -4766,18 +4766,18 @@ function bu() {
|
|
|
4766
4766
|
var e = f.lib.BlockCipherMode.extend();
|
|
4767
4767
|
e.Encryptor = e.extend({
|
|
4768
4768
|
processBlock: function(r, t) {
|
|
4769
|
-
var u = this._cipher,
|
|
4770
|
-
n.call(this, r, t,
|
|
4769
|
+
var u = this._cipher, d = u.blockSize;
|
|
4770
|
+
n.call(this, r, t, d, u), this._prevBlock = r.slice(t, t + d);
|
|
4771
4771
|
}
|
|
4772
4772
|
}), e.Decryptor = e.extend({
|
|
4773
4773
|
processBlock: function(r, t) {
|
|
4774
|
-
var u = this._cipher,
|
|
4775
|
-
n.call(this, r, t,
|
|
4774
|
+
var u = this._cipher, d = u.blockSize, P = r.slice(t, t + d);
|
|
4775
|
+
n.call(this, r, t, d, u), this._prevBlock = P;
|
|
4776
4776
|
}
|
|
4777
4777
|
});
|
|
4778
|
-
function n(r, t, u,
|
|
4779
|
-
var P,
|
|
4780
|
-
|
|
4778
|
+
function n(r, t, u, d) {
|
|
4779
|
+
var P, z = this._iv;
|
|
4780
|
+
z ? (P = z.slice(0), this._iv = void 0) : P = this._prevBlock, d.encryptBlock(P, 0);
|
|
4781
4781
|
for (var l = 0; l < u; l++)
|
|
4782
4782
|
r[t + l] ^= P[l];
|
|
4783
4783
|
}
|
|
@@ -4795,11 +4795,11 @@ function cu() {
|
|
|
4795
4795
|
return f.mode.CTR = function() {
|
|
4796
4796
|
var e = f.lib.BlockCipherMode.extend(), n = e.Encryptor = e.extend({
|
|
4797
4797
|
processBlock: function(r, t) {
|
|
4798
|
-
var u = this._cipher,
|
|
4799
|
-
P && (
|
|
4800
|
-
var l =
|
|
4801
|
-
u.encryptBlock(l, 0), d
|
|
4802
|
-
for (var X = 0; X <
|
|
4798
|
+
var u = this._cipher, d = u.blockSize, P = this._iv, z = this._counter;
|
|
4799
|
+
P && (z = this._counter = P.slice(0), this._iv = void 0);
|
|
4800
|
+
var l = z.slice(0);
|
|
4801
|
+
u.encryptBlock(l, 0), z[d - 1] = z[d - 1] + 1 | 0;
|
|
4802
|
+
for (var X = 0; X < d; X++)
|
|
4803
4803
|
r[t + X] ^= l[X];
|
|
4804
4804
|
}
|
|
4805
4805
|
});
|
|
@@ -4823,8 +4823,8 @@ function au() {
|
|
|
4823
4823
|
var e = f.lib.BlockCipherMode.extend();
|
|
4824
4824
|
function n(u) {
|
|
4825
4825
|
if ((u >> 24 & 255) === 255) {
|
|
4826
|
-
var
|
|
4827
|
-
|
|
4826
|
+
var d = u >> 16 & 255, P = u >> 8 & 255, z = u & 255;
|
|
4827
|
+
d === 255 ? (d = 0, P === 255 ? (P = 0, z === 255 ? z = 0 : ++z) : ++P) : ++d, u = 0, u += d << 16, u += P << 8, u += z;
|
|
4828
4828
|
} else
|
|
4829
4829
|
u += 1 << 24;
|
|
4830
4830
|
return u;
|
|
@@ -4833,13 +4833,13 @@ function au() {
|
|
|
4833
4833
|
return (u[0] = n(u[0])) === 0 && (u[1] = n(u[1])), u;
|
|
4834
4834
|
}
|
|
4835
4835
|
var t = e.Encryptor = e.extend({
|
|
4836
|
-
processBlock: function(u,
|
|
4837
|
-
var P = this._cipher,
|
|
4836
|
+
processBlock: function(u, d) {
|
|
4837
|
+
var P = this._cipher, z = P.blockSize, l = this._iv, X = this._counter;
|
|
4838
4838
|
l && (X = this._counter = l.slice(0), this._iv = void 0), r(X);
|
|
4839
4839
|
var c = X.slice(0);
|
|
4840
4840
|
P.encryptBlock(c, 0);
|
|
4841
|
-
for (var b = 0; b <
|
|
4842
|
-
u[
|
|
4841
|
+
for (var b = 0; b < z; b++)
|
|
4842
|
+
u[d + b] ^= c[b];
|
|
4843
4843
|
}
|
|
4844
4844
|
});
|
|
4845
4845
|
return e.Decryptor = t, e;
|
|
@@ -4856,10 +4856,10 @@ function qu() {
|
|
|
4856
4856
|
return f.mode.OFB = function() {
|
|
4857
4857
|
var e = f.lib.BlockCipherMode.extend(), n = e.Encryptor = e.extend({
|
|
4858
4858
|
processBlock: function(r, t) {
|
|
4859
|
-
var u = this._cipher,
|
|
4860
|
-
P && (
|
|
4861
|
-
for (var l = 0; l <
|
|
4862
|
-
r[t + l] ^=
|
|
4859
|
+
var u = this._cipher, d = u.blockSize, P = this._iv, z = this._keystream;
|
|
4860
|
+
P && (z = this._keystream = P.slice(0), this._iv = void 0), u.encryptBlock(z, 0);
|
|
4861
|
+
for (var l = 0; l < d; l++)
|
|
4862
|
+
r[t + l] ^= z[l];
|
|
4863
4863
|
}
|
|
4864
4864
|
});
|
|
4865
4865
|
return e.Decryptor = n, e;
|
|
@@ -4896,8 +4896,8 @@ function pu() {
|
|
|
4896
4896
|
})(uA, function(f) {
|
|
4897
4897
|
return f.pad.AnsiX923 = {
|
|
4898
4898
|
pad: function(e, n) {
|
|
4899
|
-
var r = e.sigBytes, t = n * 4, u = t - r % t,
|
|
4900
|
-
e.clamp(), e.words[
|
|
4899
|
+
var r = e.sigBytes, t = n * 4, u = t - r % t, d = r + u - 1;
|
|
4900
|
+
e.clamp(), e.words[d >>> 2] |= u << 24 - d % 4 * 8, e.sigBytes += u;
|
|
4901
4901
|
},
|
|
4902
4902
|
unpad: function(e) {
|
|
4903
4903
|
var n = e.words[e.sigBytes - 1 >>> 2] & 255;
|
|
@@ -4987,7 +4987,7 @@ function Ou() {
|
|
|
4987
4987
|
v.exports = e(XA(), LA());
|
|
4988
4988
|
})(uA, function(f) {
|
|
4989
4989
|
return function(e) {
|
|
4990
|
-
var n = f, r = n.lib, t = r.CipherParams, u = n.enc,
|
|
4990
|
+
var n = f, r = n.lib, t = r.CipherParams, u = n.enc, d = u.Hex, P = n.format;
|
|
4991
4991
|
P.Hex = {
|
|
4992
4992
|
/**
|
|
4993
4993
|
* Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
|
|
@@ -5002,8 +5002,8 @@ function Ou() {
|
|
|
5002
5002
|
*
|
|
5003
5003
|
* var hexString = CryptoJS.format.Hex.stringify(cipherParams);
|
|
5004
5004
|
*/
|
|
5005
|
-
stringify: function(
|
|
5006
|
-
return
|
|
5005
|
+
stringify: function(z) {
|
|
5006
|
+
return z.ciphertext.toString(d);
|
|
5007
5007
|
},
|
|
5008
5008
|
/**
|
|
5009
5009
|
* Converts a hexadecimally encoded ciphertext string to a cipher params object.
|
|
@@ -5018,8 +5018,8 @@ function Ou() {
|
|
|
5018
5018
|
*
|
|
5019
5019
|
* var cipherParams = CryptoJS.format.Hex.parse(hexString);
|
|
5020
5020
|
*/
|
|
5021
|
-
parse: function(
|
|
5022
|
-
var l =
|
|
5021
|
+
parse: function(z) {
|
|
5022
|
+
var l = d.parse(z);
|
|
5023
5023
|
return t.create({ ciphertext: l });
|
|
5024
5024
|
}
|
|
5025
5025
|
};
|
|
@@ -5034,15 +5034,15 @@ function Vu() {
|
|
|
5034
5034
|
v.exports = e(XA(), W9(), o9(), V9(), LA());
|
|
5035
5035
|
})(uA, function(f) {
|
|
5036
5036
|
return function() {
|
|
5037
|
-
var e = f, n = e.lib, r = n.BlockCipher, t = e.algo, u = [],
|
|
5037
|
+
var e = f, n = e.lib, r = n.BlockCipher, t = e.algo, u = [], d = [], P = [], z = [], l = [], X = [], c = [], b = [], p = [], i = [];
|
|
5038
5038
|
(function() {
|
|
5039
5039
|
for (var s = [], H = 0; H < 256; H++)
|
|
5040
5040
|
H < 128 ? s[H] = H << 1 : s[H] = H << 1 ^ 283;
|
|
5041
5041
|
for (var O = 0, Z = 0, H = 0; H < 256; H++) {
|
|
5042
5042
|
var R = Z ^ Z << 1 ^ Z << 2 ^ Z << 3 ^ Z << 4;
|
|
5043
|
-
R = R >>> 8 ^ R & 255 ^ 99, u[O] = R,
|
|
5043
|
+
R = R >>> 8 ^ R & 255 ^ 99, u[O] = R, d[R] = O;
|
|
5044
5044
|
var V = s[O], T = s[V], m = s[T], N = s[R] * 257 ^ R * 16843008;
|
|
5045
|
-
P[O] = N << 24 | N >>> 8,
|
|
5045
|
+
P[O] = N << 24 | N >>> 8, z[O] = N << 16 | N >>> 16, l[O] = N << 8 | N >>> 24, X[O] = N;
|
|
5046
5046
|
var N = m * 16843009 ^ T * 65537 ^ V * 257 ^ O * 16843008;
|
|
5047
5047
|
c[R] = N << 24 | N >>> 8, b[R] = N << 16 | N >>> 16, p[R] = N << 8 | N >>> 24, i[R] = N, O ? (O = V ^ s[s[s[m ^ V]]], Z ^= s[s[Z]]) : O = Z = 1;
|
|
5048
5048
|
}
|
|
@@ -5064,11 +5064,11 @@ function Vu() {
|
|
|
5064
5064
|
}
|
|
5065
5065
|
},
|
|
5066
5066
|
encryptBlock: function(s, H) {
|
|
5067
|
-
this._doCryptBlock(s, H, this._keySchedule, P,
|
|
5067
|
+
this._doCryptBlock(s, H, this._keySchedule, P, z, l, X, u);
|
|
5068
5068
|
},
|
|
5069
5069
|
decryptBlock: function(s, H) {
|
|
5070
5070
|
var O = s[H + 1];
|
|
5071
|
-
s[H + 1] = s[H + 3], s[H + 3] = O, this._doCryptBlock(s, H, this._invKeySchedule, c, b, p, i,
|
|
5071
|
+
s[H + 1] = s[H + 3], s[H + 3] = O, this._doCryptBlock(s, H, this._invKeySchedule, c, b, p, i, d);
|
|
5072
5072
|
var O = s[H + 1];
|
|
5073
5073
|
s[H + 1] = s[H + 3], s[H + 3] = O;
|
|
5074
5074
|
},
|
|
@@ -5094,7 +5094,7 @@ function xu() {
|
|
|
5094
5094
|
v.exports = e(XA(), W9(), o9(), V9(), LA());
|
|
5095
5095
|
})(uA, function(f) {
|
|
5096
5096
|
return function() {
|
|
5097
|
-
var e = f, n = e.lib, r = n.WordArray, t = n.BlockCipher, u = e.algo,
|
|
5097
|
+
var e = f, n = e.lib, r = n.WordArray, t = n.BlockCipher, u = e.algo, d = [
|
|
5098
5098
|
57,
|
|
5099
5099
|
49,
|
|
5100
5100
|
41,
|
|
@@ -5200,7 +5200,7 @@ function xu() {
|
|
|
5200
5200
|
36,
|
|
5201
5201
|
29,
|
|
5202
5202
|
32
|
|
5203
|
-
],
|
|
5203
|
+
], z = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28], l = [
|
|
5204
5204
|
{
|
|
5205
5205
|
0: 8421888,
|
|
5206
5206
|
268435456: 32768,
|
|
@@ -5741,11 +5741,11 @@ function xu() {
|
|
|
5741
5741
|
], c = u.DES = t.extend({
|
|
5742
5742
|
_doReset: function() {
|
|
5743
5743
|
for (var q = this._key, a = q.words, s = [], H = 0; H < 56; H++) {
|
|
5744
|
-
var O =
|
|
5744
|
+
var O = d[H] - 1;
|
|
5745
5745
|
s[H] = a[O >>> 5] >>> 31 - O % 32 & 1;
|
|
5746
5746
|
}
|
|
5747
5747
|
for (var Z = this._subKeys = [], R = 0; R < 16; R++) {
|
|
5748
|
-
for (var V = Z[R] = [], T =
|
|
5748
|
+
for (var V = Z[R] = [], T = z[R], H = 0; H < 24; H++)
|
|
5749
5749
|
V[H / 6 | 0] |= s[(P[H] - 1 + T) % 28] << 31 - H % 6, V[4 + (H / 6 | 0)] |= s[28 + (P[H + 24] - 1 + T) % 28] << 31 - H % 6;
|
|
5750
5750
|
V[0] = V[0] << 1 | V[0] >>> 31;
|
|
5751
5751
|
for (var H = 1; H < 7; H++)
|
|
@@ -5816,7 +5816,7 @@ function Ru() {
|
|
|
5816
5816
|
return function() {
|
|
5817
5817
|
var e = f, n = e.lib, r = n.StreamCipher, t = e.algo, u = t.RC4 = r.extend({
|
|
5818
5818
|
_doReset: function() {
|
|
5819
|
-
for (var
|
|
5819
|
+
for (var z = this._key, l = z.words, X = z.sigBytes, c = this._S = [], b = 0; b < 256; b++)
|
|
5820
5820
|
c[b] = b;
|
|
5821
5821
|
for (var b = 0, p = 0; b < 256; b++) {
|
|
5822
5822
|
var i = b % X, q = l[i >>> 2] >>> 24 - i % 4 * 8 & 255;
|
|
@@ -5826,17 +5826,17 @@ function Ru() {
|
|
|
5826
5826
|
}
|
|
5827
5827
|
this._i = this._j = 0;
|
|
5828
5828
|
},
|
|
5829
|
-
_doProcessBlock: function(
|
|
5830
|
-
|
|
5829
|
+
_doProcessBlock: function(z, l) {
|
|
5830
|
+
z[l] ^= d.call(this);
|
|
5831
5831
|
},
|
|
5832
5832
|
keySize: 256 / 32,
|
|
5833
5833
|
ivSize: 0
|
|
5834
5834
|
});
|
|
5835
|
-
function
|
|
5836
|
-
for (var
|
|
5837
|
-
l = (l + 1) % 256, X = (X +
|
|
5838
|
-
var p =
|
|
5839
|
-
|
|
5835
|
+
function d() {
|
|
5836
|
+
for (var z = this._S, l = this._i, X = this._j, c = 0, b = 0; b < 4; b++) {
|
|
5837
|
+
l = (l + 1) % 256, X = (X + z[l]) % 256;
|
|
5838
|
+
var p = z[l];
|
|
5839
|
+
z[l] = z[X], z[X] = p, c |= z[(z[l] + z[X]) % 256] << 24 - b * 8;
|
|
5840
5840
|
}
|
|
5841
5841
|
return this._i = l, this._j = X, c;
|
|
5842
5842
|
}
|
|
@@ -5852,8 +5852,8 @@ function Ru() {
|
|
|
5852
5852
|
}),
|
|
5853
5853
|
_doReset: function() {
|
|
5854
5854
|
u._doReset.call(this);
|
|
5855
|
-
for (var
|
|
5856
|
-
|
|
5855
|
+
for (var z = this.cfg.drop; z > 0; z--)
|
|
5856
|
+
d.call(this);
|
|
5857
5857
|
}
|
|
5858
5858
|
});
|
|
5859
5859
|
e.RC4Drop = r._createHelper(P);
|
|
@@ -5868,7 +5868,7 @@ function Nu() {
|
|
|
5868
5868
|
v.exports = e(XA(), W9(), o9(), V9(), LA());
|
|
5869
5869
|
})(uA, function(f) {
|
|
5870
5870
|
return function() {
|
|
5871
|
-
var e = f, n = e.lib, r = n.StreamCipher, t = e.algo, u = [],
|
|
5871
|
+
var e = f, n = e.lib, r = n.StreamCipher, t = e.algo, u = [], d = [], P = [], z = t.Rabbit = r.extend({
|
|
5872
5872
|
_doReset: function() {
|
|
5873
5873
|
for (var X = this._key.words, c = this.cfg.iv, b = 0; b < 4; b++)
|
|
5874
5874
|
X[b] = (X[b] << 8 | X[b] >>> 24) & 16711935 | (X[b] << 24 | X[b] >>> 8) & 4278255360;
|
|
@@ -5914,15 +5914,15 @@ function Nu() {
|
|
|
5914
5914
|
});
|
|
5915
5915
|
function l() {
|
|
5916
5916
|
for (var X = this._X, c = this._C, b = 0; b < 8; b++)
|
|
5917
|
-
|
|
5918
|
-
c[0] = c[0] + 1295307597 + this._b | 0, c[1] = c[1] + 3545052371 + (c[0] >>> 0 <
|
|
5917
|
+
d[b] = c[b];
|
|
5918
|
+
c[0] = c[0] + 1295307597 + this._b | 0, c[1] = c[1] + 3545052371 + (c[0] >>> 0 < d[0] >>> 0 ? 1 : 0) | 0, c[2] = c[2] + 886263092 + (c[1] >>> 0 < d[1] >>> 0 ? 1 : 0) | 0, c[3] = c[3] + 1295307597 + (c[2] >>> 0 < d[2] >>> 0 ? 1 : 0) | 0, c[4] = c[4] + 3545052371 + (c[3] >>> 0 < d[3] >>> 0 ? 1 : 0) | 0, c[5] = c[5] + 886263092 + (c[4] >>> 0 < d[4] >>> 0 ? 1 : 0) | 0, c[6] = c[6] + 1295307597 + (c[5] >>> 0 < d[5] >>> 0 ? 1 : 0) | 0, c[7] = c[7] + 3545052371 + (c[6] >>> 0 < d[6] >>> 0 ? 1 : 0) | 0, this._b = c[7] >>> 0 < d[7] >>> 0 ? 1 : 0;
|
|
5919
5919
|
for (var b = 0; b < 8; b++) {
|
|
5920
5920
|
var p = X[b] + c[b], i = p & 65535, q = p >>> 16, a = ((i * i >>> 17) + i * q >>> 15) + q * q, s = ((p & 4294901760) * p | 0) + ((p & 65535) * p | 0);
|
|
5921
5921
|
P[b] = a ^ s;
|
|
5922
5922
|
}
|
|
5923
5923
|
X[0] = P[0] + (P[7] << 16 | P[7] >>> 16) + (P[6] << 16 | P[6] >>> 16) | 0, X[1] = P[1] + (P[0] << 8 | P[0] >>> 24) + P[7] | 0, X[2] = P[2] + (P[1] << 16 | P[1] >>> 16) + (P[0] << 16 | P[0] >>> 16) | 0, X[3] = P[3] + (P[2] << 8 | P[2] >>> 24) + P[1] | 0, X[4] = P[4] + (P[3] << 16 | P[3] >>> 16) + (P[2] << 16 | P[2] >>> 16) | 0, X[5] = P[5] + (P[4] << 8 | P[4] >>> 24) + P[3] | 0, X[6] = P[6] + (P[5] << 16 | P[5] >>> 16) + (P[4] << 16 | P[4] >>> 16) | 0, X[7] = P[7] + (P[6] << 8 | P[6] >>> 24) + P[5] | 0;
|
|
5924
5924
|
}
|
|
5925
|
-
e.Rabbit = r._createHelper(
|
|
5925
|
+
e.Rabbit = r._createHelper(z);
|
|
5926
5926
|
}(), f.Rabbit;
|
|
5927
5927
|
});
|
|
5928
5928
|
}(G3)), G3.exports;
|
|
@@ -5934,7 +5934,7 @@ function Zu() {
|
|
|
5934
5934
|
v.exports = e(XA(), W9(), o9(), V9(), LA());
|
|
5935
5935
|
})(uA, function(f) {
|
|
5936
5936
|
return function() {
|
|
5937
|
-
var e = f, n = e.lib, r = n.StreamCipher, t = e.algo, u = [],
|
|
5937
|
+
var e = f, n = e.lib, r = n.StreamCipher, t = e.algo, u = [], d = [], P = [], z = t.RabbitLegacy = r.extend({
|
|
5938
5938
|
_doReset: function() {
|
|
5939
5939
|
var X = this._key.words, c = this.cfg.iv, b = this._X = [
|
|
5940
5940
|
X[0],
|
|
@@ -5978,15 +5978,15 @@ function Zu() {
|
|
|
5978
5978
|
});
|
|
5979
5979
|
function l() {
|
|
5980
5980
|
for (var X = this._X, c = this._C, b = 0; b < 8; b++)
|
|
5981
|
-
|
|
5982
|
-
c[0] = c[0] + 1295307597 + this._b | 0, c[1] = c[1] + 3545052371 + (c[0] >>> 0 <
|
|
5981
|
+
d[b] = c[b];
|
|
5982
|
+
c[0] = c[0] + 1295307597 + this._b | 0, c[1] = c[1] + 3545052371 + (c[0] >>> 0 < d[0] >>> 0 ? 1 : 0) | 0, c[2] = c[2] + 886263092 + (c[1] >>> 0 < d[1] >>> 0 ? 1 : 0) | 0, c[3] = c[3] + 1295307597 + (c[2] >>> 0 < d[2] >>> 0 ? 1 : 0) | 0, c[4] = c[4] + 3545052371 + (c[3] >>> 0 < d[3] >>> 0 ? 1 : 0) | 0, c[5] = c[5] + 886263092 + (c[4] >>> 0 < d[4] >>> 0 ? 1 : 0) | 0, c[6] = c[6] + 1295307597 + (c[5] >>> 0 < d[5] >>> 0 ? 1 : 0) | 0, c[7] = c[7] + 3545052371 + (c[6] >>> 0 < d[6] >>> 0 ? 1 : 0) | 0, this._b = c[7] >>> 0 < d[7] >>> 0 ? 1 : 0;
|
|
5983
5983
|
for (var b = 0; b < 8; b++) {
|
|
5984
5984
|
var p = X[b] + c[b], i = p & 65535, q = p >>> 16, a = ((i * i >>> 17) + i * q >>> 15) + q * q, s = ((p & 4294901760) * p | 0) + ((p & 65535) * p | 0);
|
|
5985
5985
|
P[b] = a ^ s;
|
|
5986
5986
|
}
|
|
5987
5987
|
X[0] = P[0] + (P[7] << 16 | P[7] >>> 16) + (P[6] << 16 | P[6] >>> 16) | 0, X[1] = P[1] + (P[0] << 8 | P[0] >>> 24) + P[7] | 0, X[2] = P[2] + (P[1] << 16 | P[1] >>> 16) + (P[0] << 16 | P[0] >>> 16) | 0, X[3] = P[3] + (P[2] << 8 | P[2] >>> 24) + P[1] | 0, X[4] = P[4] + (P[3] << 16 | P[3] >>> 16) + (P[2] << 16 | P[2] >>> 16) | 0, X[5] = P[5] + (P[4] << 8 | P[4] >>> 24) + P[3] | 0, X[6] = P[6] + (P[5] << 16 | P[5] >>> 16) + (P[4] << 16 | P[4] >>> 16) | 0, X[7] = P[7] + (P[6] << 8 | P[6] >>> 24) + P[5] | 0;
|
|
5988
5988
|
}
|
|
5989
|
-
e.RabbitLegacy = r._createHelper(
|
|
5989
|
+
e.RabbitLegacy = r._createHelper(z);
|
|
5990
5990
|
}(), f.RabbitLegacy;
|
|
5991
5991
|
});
|
|
5992
5992
|
}(Y3)), Y3.exports;
|
|
@@ -5999,7 +5999,7 @@ function Tu() {
|
|
|
5999
5999
|
})(uA, function(f) {
|
|
6000
6000
|
return function() {
|
|
6001
6001
|
var e = f, n = e.lib, r = n.BlockCipher, t = e.algo;
|
|
6002
|
-
const u = 16,
|
|
6002
|
+
const u = 16, d = [
|
|
6003
6003
|
608135816,
|
|
6004
6004
|
2242054355,
|
|
6005
6005
|
320440878,
|
|
@@ -7052,7 +7052,7 @@ function Tu() {
|
|
|
7052
7052
|
985887462
|
|
7053
7053
|
]
|
|
7054
7054
|
];
|
|
7055
|
-
var
|
|
7055
|
+
var z = {
|
|
7056
7056
|
pbox: [],
|
|
7057
7057
|
sbox: []
|
|
7058
7058
|
};
|
|
@@ -7080,7 +7080,7 @@ function Tu() {
|
|
|
7080
7080
|
}
|
|
7081
7081
|
let s = 0;
|
|
7082
7082
|
for (let R = 0; R < u + 2; R++)
|
|
7083
|
-
i.pbox[R] =
|
|
7083
|
+
i.pbox[R] = d[R] ^ q[s], s++, s >= a && (s = 0);
|
|
7084
7084
|
let H = 0, O = 0, Z = 0;
|
|
7085
7085
|
for (let R = 0; R < u + 2; R += 2)
|
|
7086
7086
|
Z = X(i, H, O), H = Z.left, O = Z.right, i.pbox[R] = H, i.pbox[R + 1] = O;
|
|
@@ -7093,15 +7093,15 @@ function Tu() {
|
|
|
7093
7093
|
_doReset: function() {
|
|
7094
7094
|
if (this._keyPriorReset !== this._key) {
|
|
7095
7095
|
var i = this._keyPriorReset = this._key, q = i.words, a = i.sigBytes / 4;
|
|
7096
|
-
b(
|
|
7096
|
+
b(z, q, a);
|
|
7097
7097
|
}
|
|
7098
7098
|
},
|
|
7099
7099
|
encryptBlock: function(i, q) {
|
|
7100
|
-
var a = X(
|
|
7100
|
+
var a = X(z, i[q], i[q + 1]);
|
|
7101
7101
|
i[q] = a.left, i[q + 1] = a.right;
|
|
7102
7102
|
},
|
|
7103
7103
|
decryptBlock: function(i, q) {
|
|
7104
|
-
var a = c(
|
|
7104
|
+
var a = c(z, i[q], i[q + 1]);
|
|
7105
7105
|
i[q] = a.left, i[q + 1] = a.right;
|
|
7106
7106
|
},
|
|
7107
7107
|
blockSize: 64 / 32,
|
|
@@ -7133,7 +7133,7 @@ function ju(v, A, f, e) {
|
|
|
7133
7133
|
});
|
|
7134
7134
|
}
|
|
7135
7135
|
function yu(v, A, f, e, n, r, t, u) {
|
|
7136
|
-
let
|
|
7136
|
+
let d = Pn(A, f, e, n, r), P = GA.AES.encrypt.apply(null, [v, d.key, d.options]), z = t === "base64" ? GA.enc.Base64 : GA.enc.Hex, l = P.ciphertext.toString(z);
|
|
7137
7137
|
u({
|
|
7138
7138
|
value: l,
|
|
7139
7139
|
error: null
|
|
@@ -7150,7 +7150,7 @@ function Lu(v, A, f, e) {
|
|
|
7150
7150
|
});
|
|
7151
7151
|
}
|
|
7152
7152
|
function Wu(v, A, f, e, n, r, t, u) {
|
|
7153
|
-
let
|
|
7153
|
+
let d = Pn(A, f, e, n, r), P = GA.DES.encrypt.apply(null, [v, d.key, d.options]), z = t === "base64" ? GA.enc.Base64 : GA.enc.Hex, l = P.ciphertext.toString(z);
|
|
7154
7154
|
u({
|
|
7155
7155
|
value: l,
|
|
7156
7156
|
error: null
|
|
@@ -7166,11 +7166,11 @@ async function rn(v, A) {
|
|
|
7166
7166
|
function Pn(v, A, f, e, n) {
|
|
7167
7167
|
let r = Fv(v, A), t = {}, u = GA.mode.CBC;
|
|
7168
7168
|
if (e === "CFB" ? u = GA.mode.CFB : e === "OFB" ? u = GA.mode.OFB : e === "ECB" && (u = GA.mode.ECB), t.mode = u, e !== "ECB") {
|
|
7169
|
-
let
|
|
7170
|
-
t.iv =
|
|
7169
|
+
let z = Fv(f, A === 8 ? 8 : 16);
|
|
7170
|
+
t.iv = z;
|
|
7171
7171
|
}
|
|
7172
|
-
let
|
|
7173
|
-
return n === "zero" ?
|
|
7172
|
+
let d = GA.pad.Pkcs7;
|
|
7173
|
+
return n === "zero" ? d = GA.pad.ZeroPadding : n === "iso10126" ? d = GA.pad.Iso10126 : n === "ansix923" && (d = GA.pad.AnsiX923), t.padding = d, {
|
|
7174
7174
|
key: r,
|
|
7175
7175
|
options: t
|
|
7176
7176
|
};
|
|
@@ -7179,8 +7179,8 @@ async function tn(v, A, f, e = !1, n) {
|
|
|
7179
7179
|
let r;
|
|
7180
7180
|
try {
|
|
7181
7181
|
r = await ou(f);
|
|
7182
|
-
} catch (
|
|
7183
|
-
return Promise.reject(
|
|
7182
|
+
} catch (z) {
|
|
7183
|
+
return Promise.reject(z);
|
|
7184
7184
|
}
|
|
7185
7185
|
let { iv: t = "" } = f || {};
|
|
7186
7186
|
if (r !== "ECB" && t.length === 0)
|
|
@@ -7188,22 +7188,22 @@ async function tn(v, A, f, e = !1, n) {
|
|
|
7188
7188
|
let u;
|
|
7189
7189
|
try {
|
|
7190
7190
|
u = await wu(f, e);
|
|
7191
|
-
} catch (
|
|
7192
|
-
return Promise.reject(
|
|
7191
|
+
} catch (z) {
|
|
7192
|
+
return Promise.reject(z);
|
|
7193
7193
|
}
|
|
7194
|
-
let
|
|
7194
|
+
let d;
|
|
7195
7195
|
try {
|
|
7196
|
-
|
|
7197
|
-
} catch (
|
|
7198
|
-
return Promise.reject(
|
|
7196
|
+
d = await Eu(f);
|
|
7197
|
+
} catch (z) {
|
|
7198
|
+
return Promise.reject(z);
|
|
7199
7199
|
}
|
|
7200
7200
|
let P;
|
|
7201
7201
|
try {
|
|
7202
7202
|
P = await Iu(f);
|
|
7203
|
-
} catch (
|
|
7204
|
-
return Promise.reject(
|
|
7203
|
+
} catch (z) {
|
|
7204
|
+
return Promise.reject(z);
|
|
7205
7205
|
}
|
|
7206
|
-
return [v, A, u, t, r,
|
|
7206
|
+
return [v, A, u, t, r, d, P, n];
|
|
7207
7207
|
}
|
|
7208
7208
|
async function ou(v) {
|
|
7209
7209
|
let { mode: A = "CBC" } = v || {};
|
|
@@ -7245,9 +7245,9 @@ const Mu = {
|
|
|
7245
7245
|
iso10126: "iso10126",
|
|
7246
7246
|
ansix923: "ansix923"
|
|
7247
7247
|
}, n = { hex: "hex", base64: "base64" };
|
|
7248
|
-
let r = v.encryptType || "", t = f[r.toLowerCase()], u = v.encryptMode || "",
|
|
7248
|
+
let r = v.encryptType || "", t = f[r.toLowerCase()], u = v.encryptMode || "", d = v.encryptKey || "", P = v.encryptOffset || "", z = v.encryptPadding || "", l = e[z.toLowerCase()], X = v.codingMode || "", c = n[X.toLowerCase()], p = (Number(v.encryptKeyLength) || 0) / 8;
|
|
7249
7249
|
return new Promise((i) => {
|
|
7250
|
-
t !== "aes" && t !== "des" ? i({ error: "加密类型出错==", value: null }) : Mu[t](A,
|
|
7250
|
+
t !== "aes" && t !== "des" ? i({ error: "加密类型出错==", value: null }) : Mu[t](A, d, { mode: u, keySize: p, padding: l, encoding: c, iv: P }, (q) => {
|
|
7251
7251
|
i(q);
|
|
7252
7252
|
});
|
|
7253
7253
|
});
|
|
@@ -7286,13 +7286,13 @@ async function gu(v) {
|
|
|
7286
7286
|
for (let n = 0; n < e.length; n++) {
|
|
7287
7287
|
let r = A[e[n]], { name: t, value: u } = r || {};
|
|
7288
7288
|
if (t && u) {
|
|
7289
|
-
let
|
|
7289
|
+
let d = u;
|
|
7290
7290
|
if (dn(u)) {
|
|
7291
7291
|
if (!i9())
|
|
7292
7292
|
return ge({ ...Be, redirect_uri: Je }), "goLogin";
|
|
7293
|
-
|
|
7293
|
+
d = await zn(u);
|
|
7294
7294
|
}
|
|
7295
|
-
f[t] =
|
|
7295
|
+
f[t] = d;
|
|
7296
7296
|
}
|
|
7297
7297
|
}
|
|
7298
7298
|
return JSON.stringify(f);
|
|
@@ -7300,19 +7300,19 @@ async function gu(v) {
|
|
|
7300
7300
|
async function Ju(v) {
|
|
7301
7301
|
let A = {};
|
|
7302
7302
|
for (let f = 0; f < v.length; f++) {
|
|
7303
|
-
let e = v[f] || {}, { attributeContentEnum: n, paramName: r, attributeContent: t, paramType: u, isEncrypted:
|
|
7303
|
+
let e = v[f] || {}, { attributeContentEnum: n, paramName: r, attributeContent: t, paramType: u, isEncrypted: d } = e, P = r, z = t;
|
|
7304
7304
|
if (dn(n)) {
|
|
7305
7305
|
if (!i9())
|
|
7306
7306
|
return ge({ ...Be, redirect_uri: Je }), "goLogin";
|
|
7307
|
-
|
|
7308
|
-
} else if (u === un.JSON && (
|
|
7307
|
+
z = await zn(n);
|
|
7308
|
+
} else if (u === un.JSON && (z = await gu(t), z === "goLogin"))
|
|
7309
7309
|
return "goLogin";
|
|
7310
|
-
if (P &&
|
|
7311
|
-
if (
|
|
7312
|
-
let l = await ku(e,
|
|
7313
|
-
l.error,
|
|
7310
|
+
if (P && z) {
|
|
7311
|
+
if (d) {
|
|
7312
|
+
let l = await ku(e, z);
|
|
7313
|
+
l.error, z = l.value ?? "";
|
|
7314
7314
|
}
|
|
7315
|
-
A[P] =
|
|
7315
|
+
A[P] = z;
|
|
7316
7316
|
}
|
|
7317
7317
|
}
|
|
7318
7318
|
return A;
|
|
@@ -7333,8 +7333,8 @@ function Uu(v) {
|
|
|
7333
7333
|
}
|
|
7334
7334
|
function Gu(v, A) {
|
|
7335
7335
|
let f = v.split("?").filter((P) => P.length > 0), e = Object.keys(A).map((P) => {
|
|
7336
|
-
let
|
|
7337
|
-
return `${encodeURIComponent(P)}=${encodeURIComponent(
|
|
7336
|
+
let z = A[P];
|
|
7337
|
+
return `${encodeURIComponent(P)}=${encodeURIComponent(z)}`;
|
|
7338
7338
|
}).join("&");
|
|
7339
7339
|
if (f.length !== 2)
|
|
7340
7340
|
return e.length > 0 ? `${v}?${e}` : v;
|
|
@@ -7344,8 +7344,8 @@ function Gu(v, A) {
|
|
|
7344
7344
|
}), t.forEach((P) => {
|
|
7345
7345
|
delete r[P];
|
|
7346
7346
|
});
|
|
7347
|
-
let u = e,
|
|
7348
|
-
return
|
|
7347
|
+
let u = e, d = Uu(r);
|
|
7348
|
+
return d.length > 0 && (e.length > 0 ? u = `${d}&${e}` : u = d), u.length > 0 ? `${n}?${u}` : n;
|
|
7349
7349
|
}
|
|
7350
7350
|
const Xn = async (v, A) => {
|
|
7351
7351
|
const f = await Ju(A);
|
|
@@ -7692,13 +7692,13 @@ var Zn = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
7692
7692
|
}
|
|
7693
7693
|
}(), ve = h9 && h9.isTypedArray, hd = ve ? N7(ve) : Kd, Cd = Object.prototype, _d = Cd.hasOwnProperty;
|
|
7694
7694
|
function $d(v, A) {
|
|
7695
|
-
var f = R7(v), e = !f && id(v), n = !f && !e && Rn(v), r = !f && !e && !n && hd(v), t = f || e || n || r, u = t ? bd(v.length, String) : [],
|
|
7695
|
+
var f = R7(v), e = !f && id(v), n = !f && !e && Rn(v), r = !f && !e && !n && hd(v), t = f || e || n || r, u = t ? bd(v.length, String) : [], d = u.length;
|
|
7696
7696
|
for (var P in v)
|
|
7697
7697
|
_d.call(v, P) && !(t && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
7698
7698
|
(P == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
7699
7699
|
n && (P == "offset" || P == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
7700
7700
|
r && (P == "buffer" || P == "byteLength" || P == "byteOffset") || // Skip index properties.
|
|
7701
|
-
Od(P,
|
|
7701
|
+
Od(P, d))) && u.push(P);
|
|
7702
7702
|
return u;
|
|
7703
7703
|
}
|
|
7704
7704
|
var Az = Object.prototype;
|
|
@@ -7875,21 +7875,21 @@ function Mf(v, A, f, e, n, r) {
|
|
|
7875
7875
|
if (u)
|
|
7876
7876
|
t = Nz(v);
|
|
7877
7877
|
else {
|
|
7878
|
-
var
|
|
7878
|
+
var d = c9(v), P = d == Ln || d == z5;
|
|
7879
7879
|
if (Rn(v))
|
|
7880
7880
|
return uz(v);
|
|
7881
|
-
if (
|
|
7881
|
+
if (d == Wn || d == yn || P && !n)
|
|
7882
7882
|
t = P ? {} : $z(v);
|
|
7883
7883
|
else {
|
|
7884
|
-
if (!sA[
|
|
7884
|
+
if (!sA[d])
|
|
7885
7885
|
return n ? v : {};
|
|
7886
|
-
t = Cz(v,
|
|
7886
|
+
t = Cz(v, d);
|
|
7887
7887
|
}
|
|
7888
7888
|
}
|
|
7889
7889
|
r || (r = new ef());
|
|
7890
|
-
var
|
|
7891
|
-
if (
|
|
7892
|
-
return
|
|
7890
|
+
var z = r.get(v);
|
|
7891
|
+
if (z)
|
|
7892
|
+
return z;
|
|
7893
7893
|
r.set(v, t), r5(v) ? v.forEach(function(c) {
|
|
7894
7894
|
t.add(Mf(c, A, f, c, v, r));
|
|
7895
7895
|
}) : v5(v) && v.forEach(function(c, b) {
|
|
@@ -7943,14 +7943,14 @@ const Bf = (v, A = "") => {
|
|
|
7943
7943
|
return { left: e, right: n };
|
|
7944
7944
|
}, W5 = (v, A, f) => {
|
|
7945
7945
|
var l;
|
|
7946
|
-
const e = e9(A).filter((X) => X.routeUrl).filter((X) => !(X != null && X.disable) && !(X != null && X.expired)), r = (((l = IA()) == null ? void 0 : l.tabMap) ?? {})[v] ?? [], { left: t, right: u } = L5(r, f),
|
|
7946
|
+
const e = e9(A).filter((X) => X.routeUrl).filter((X) => !(X != null && X.disable) && !(X != null && X.expired)), r = (((l = IA()) == null ? void 0 : l.tabMap) ?? {})[v] ?? [], { left: t, right: u } = L5(r, f), d = r.filter((X) => e.find((c) => c.code === X.code)).map((X) => {
|
|
7947
7947
|
var c, b;
|
|
7948
7948
|
return {
|
|
7949
7949
|
...X,
|
|
7950
7950
|
name: ((c = e.find((p) => p.code === X.code)) == null ? void 0 : c.tabName) ?? ((b = e.find((p) => p.code === X.code)) == null ? void 0 : b.name) ?? X.name
|
|
7951
7951
|
};
|
|
7952
7952
|
});
|
|
7953
|
-
if (!t.length && !u.length || !
|
|
7953
|
+
if (!t.length && !u.length || !d.length)
|
|
7954
7954
|
return QA([
|
|
7955
7955
|
{ key: "currentCode", value: "" },
|
|
7956
7956
|
{ key: "currentTab", value: {} },
|
|
@@ -7959,11 +7959,11 @@ const Bf = (v, A = "") => {
|
|
|
7959
7959
|
]), b7(v);
|
|
7960
7960
|
let P = null;
|
|
7961
7961
|
if (u.length) {
|
|
7962
|
-
const X = u.find((c) =>
|
|
7962
|
+
const X = u.find((c) => d.map((b) => b.code).includes(c.code));
|
|
7963
7963
|
X && (P = X);
|
|
7964
7964
|
}
|
|
7965
7965
|
if (!P && t.length) {
|
|
7966
|
-
const X = t.reverse().find((c) =>
|
|
7966
|
+
const X = t.reverse().find((c) => d.map((b) => b.code).includes(c.code));
|
|
7967
7967
|
X && (P = X);
|
|
7968
7968
|
}
|
|
7969
7969
|
return P ? (QA([
|
|
@@ -7979,7 +7979,7 @@ const Bf = (v, A = "") => {
|
|
|
7979
7979
|
key: `preTab:${v}`,
|
|
7980
7980
|
value: P
|
|
7981
7981
|
},
|
|
7982
|
-
{ key: `tabMap:${v}`, value:
|
|
7982
|
+
{ key: `tabMap:${v}`, value: d }
|
|
7983
7983
|
]), An(P.code), { currentMenu: e.find((X) => X.code === P.code), currentTab: P }) : (QA([
|
|
7984
7984
|
{ key: `preTab:${v}`, value: {} },
|
|
7985
7985
|
{ key: `tabMap:${v}`, value: [] }
|
|
@@ -8010,30 +8010,30 @@ const Bf = (v, A = "") => {
|
|
|
8010
8010
|
t === "false" && (t = !1);
|
|
8011
8011
|
let u = (A == null ? void 0 : A.code) ?? "";
|
|
8012
8012
|
if (!u) return { menuConfig: [], currentApp: null, currentMenu: null, query: null };
|
|
8013
|
-
let
|
|
8014
|
-
const
|
|
8015
|
-
if (
|
|
8013
|
+
let d = [], P = [];
|
|
8014
|
+
const z = bA().subAppList ?? [];
|
|
8015
|
+
if (z.length && (d = ((b = z.find((q) => q.code === A.code)) == null ? void 0 : b.menus) ?? []), !d.length) {
|
|
8016
8016
|
const { menus: q, originalMenus: a } = await T7(u);
|
|
8017
|
-
|
|
8017
|
+
d = q ?? [], P = a ?? [];
|
|
8018
8018
|
}
|
|
8019
|
-
if (!
|
|
8019
|
+
if (!d.length && (!r || !t))
|
|
8020
8020
|
return { menuConfig: [], currentApp: null, currentMenu: null, query: null };
|
|
8021
8021
|
if (A.routeUrl === "iot/iot") {
|
|
8022
8022
|
const { instanceInfo: q } = await r6();
|
|
8023
8023
|
if (q) {
|
|
8024
8024
|
let a = !1;
|
|
8025
|
-
|
|
8025
|
+
d.forEach((H) => {
|
|
8026
8026
|
H.routeUrl === "/deviceInstance" && (H.fixed = !0, H.divise = !0, H.menuCode = H.code, H.tagName = H.tabName = J("实例"), H.name = q.instanceName, H.leftIcon = "change2", H.rightIcon = "change2");
|
|
8027
8027
|
});
|
|
8028
8028
|
const s = Lr(q.endTime) || q.endTime == 0 || q.endTime === 253370736e6 || q.endTime === "253370736000000" ? "-" : Number(q.endTime);
|
|
8029
8029
|
if (a = e7().endOf("day") > e7(s).endOf("day"), !f && !e && q.id && !a) {
|
|
8030
|
-
const O = e9(
|
|
8030
|
+
const O = e9(d).find((Z) => Z.routeUrl === "/statisticalReport");
|
|
8031
8031
|
O && (f = O.code);
|
|
8032
8032
|
}
|
|
8033
8033
|
}
|
|
8034
8034
|
}
|
|
8035
8035
|
if (r && t) {
|
|
8036
|
-
const q = e9(
|
|
8036
|
+
const q = e9(d), s = ((p = (IA().tabMap ?? {})[A.code]) == null ? void 0 : p.map((H) => {
|
|
8037
8037
|
var O, Z;
|
|
8038
8038
|
return {
|
|
8039
8039
|
...H,
|
|
@@ -8053,7 +8053,7 @@ const Bf = (v, A = "") => {
|
|
|
8053
8053
|
}
|
|
8054
8054
|
}
|
|
8055
8055
|
if (!f && e) {
|
|
8056
|
-
const q = e9(
|
|
8056
|
+
const q = e9(d).find((a) => {
|
|
8057
8057
|
const s = `/${a.applicationPath}${a.routeUrl}`.replace(/\/\//g, "/");
|
|
8058
8058
|
return a.applicationPath && a.routeUrl && (e === s || e.startsWith(`/${s}/`));
|
|
8059
8059
|
});
|
|
@@ -8061,17 +8061,17 @@ const Bf = (v, A = "") => {
|
|
|
8061
8061
|
f = q.code;
|
|
8062
8062
|
else
|
|
8063
8063
|
return {
|
|
8064
|
-
menuConfig:
|
|
8064
|
+
menuConfig: d,
|
|
8065
8065
|
currentApp: A,
|
|
8066
8066
|
currentMenu: null,
|
|
8067
8067
|
query: { ...n.query, app: u }
|
|
8068
8068
|
};
|
|
8069
8069
|
}
|
|
8070
|
-
let l = Bf(
|
|
8070
|
+
let l = Bf(d, f);
|
|
8071
8071
|
if (!l) {
|
|
8072
8072
|
if (!r || !t)
|
|
8073
|
-
return { menuConfig:
|
|
8074
|
-
const q = W5(A.code,
|
|
8073
|
+
return { menuConfig: d, currentApp: null, currentMenu: null, query: { ...n.query, app: u } };
|
|
8074
|
+
const q = W5(A.code, d, f);
|
|
8075
8075
|
q != null && q.currentApp && (A = q.currentApp), q != null && q.currentMenu && (l = q.currentMenu), q != null && q.currentTab && (n.query = ((i = q.currentTab) == null ? void 0 : i.query) ?? {});
|
|
8076
8076
|
}
|
|
8077
8077
|
if ((A == null ? void 0 : A.routeUrl) === oA)
|
|
@@ -8082,7 +8082,7 @@ const Bf = (v, A = "") => {
|
|
|
8082
8082
|
e && e.startsWith(q) && e !== q && (a = e);
|
|
8083
8083
|
const s = { ...n.query, app: u, menu: l.code };
|
|
8084
8084
|
if (r && t) {
|
|
8085
|
-
const H = { ...A, currentMenuCode: l.code, menus:
|
|
8085
|
+
const H = { ...A, currentMenuCode: l.code, menus: d, originalMenus: P };
|
|
8086
8086
|
FA([
|
|
8087
8087
|
{ key: "currentSubApp", value: H },
|
|
8088
8088
|
{ key: "currentSubAppCode", value: u },
|
|
@@ -8117,9 +8117,9 @@ const Bf = (v, A = "") => {
|
|
|
8117
8117
|
}
|
|
8118
8118
|
]);
|
|
8119
8119
|
}
|
|
8120
|
-
return { menuConfig:
|
|
8120
|
+
return { menuConfig: d, currentApp: A, currentMenu: l, query: s, microPath: a };
|
|
8121
8121
|
}
|
|
8122
|
-
return { menuConfig:
|
|
8122
|
+
return { menuConfig: d, currentApp: A, currentMenu: null, query: { ...n.query, app: u } };
|
|
8123
8123
|
}, w5 = p9.get("/appcategory"), E5 = p9.get("/app/common"), pe = D(!1), c7 = D([]), I5 = eA(() => {
|
|
8124
8124
|
var v;
|
|
8125
8125
|
return ((v = c7.value) == null ? void 0 : v.map((A) => A.apps).flat()) || [];
|
|
@@ -8133,26 +8133,26 @@ const Bf = (v, A = "") => {
|
|
|
8133
8133
|
if (v)
|
|
8134
8134
|
return se.value = [], { fixedAppsConfig: [] };
|
|
8135
8135
|
se.value = A;
|
|
8136
|
-
const f = ((t = bA()) == null ? void 0 : t.subAppList) || [], e = f.map((u) => u.code), n = A.filter((u) => !e.includes(u.code)), r = [...f, ...n].filter((u) => I5.value.find((
|
|
8136
|
+
const f = ((t = bA()) == null ? void 0 : t.subAppList) || [], e = f.map((u) => u.code), n = A.filter((u) => !e.includes(u.code)), r = [...f, ...n].filter((u) => I5.value.find((d) => d.code === u.code));
|
|
8137
8137
|
return FA([{ key: "subAppList", value: r }]), { fixedAppsConfig: A };
|
|
8138
8138
|
}, wn = "v1", k5 = Qf.get("/organization/authProjectTree"), g5 = kA(`/api/customer/customer/${wn}`), J5 = g5.get("/project/list"), B5 = kA(`/api/project/project-server/${wn}`), U5 = B5.get("/list/message"), G5 = async () => {
|
|
8139
8139
|
var t, u;
|
|
8140
8140
|
const v = Gf();
|
|
8141
8141
|
let A = [], f = null, e = {};
|
|
8142
8142
|
if ((v == null ? void 0 : v.flag) === 4) {
|
|
8143
|
-
const [
|
|
8143
|
+
const [d, P = []] = await J5().run();
|
|
8144
8144
|
if (A = P, A && A.length) {
|
|
8145
|
-
const
|
|
8146
|
-
if (
|
|
8145
|
+
const z = ((t = $A()) == null ? void 0 : t.id) || 0;
|
|
8146
|
+
if (z && (f = A.find((l) => l.id === z)), !z || !f) {
|
|
8147
8147
|
const l = v.tenant.id ?? "", X = A.filter((c) => c.tenant === l);
|
|
8148
8148
|
X && X.length && (f = X[0]);
|
|
8149
8149
|
}
|
|
8150
8150
|
}
|
|
8151
8151
|
} else {
|
|
8152
|
-
const [
|
|
8152
|
+
const [d, P = []] = await k5().run();
|
|
8153
8153
|
if (A = P, A && A.length) {
|
|
8154
|
-
const
|
|
8155
|
-
|
|
8154
|
+
const z = ((u = $A()) == null ? void 0 : u.id) || 0;
|
|
8155
|
+
z && (f = Av(A, (l) => l.id === z)), (!z || !f) && (f = Av(A, (l) => l.type === 7));
|
|
8156
8156
|
}
|
|
8157
8157
|
}
|
|
8158
8158
|
const [n, r] = await U5().run({ projectId: (f == null ? void 0 : f.id) ?? 0 });
|
|
@@ -8188,19 +8188,19 @@ const Bf = (v, A = "") => {
|
|
|
8188
8188
|
isShow: { type: Boolean, default: !0 }
|
|
8189
8189
|
},
|
|
8190
8190
|
setup(v, { expose: A }) {
|
|
8191
|
-
const f = D(!1), e = D(!1), n = D(!1), r = D(!1), t = D(!1), u = D(!1),
|
|
8192
|
-
f.value = f9.value.style === 1, e.value = f9.value.style === 2, n.value = f9.value.skinStyle === "default", r.value = f9.value.skinStyle === "kjl", t.value = f9.value.skinStyle === "cjb", u.value = f9.value.skinStyle === "ssl",
|
|
8191
|
+
const f = D(!1), e = D(!1), n = D(!1), r = D(!1), t = D(!1), u = D(!1), d = D(!1), P = () => {
|
|
8192
|
+
f.value = f9.value.style === 1, e.value = f9.value.style === 2, n.value = f9.value.skinStyle === "default", r.value = f9.value.skinStyle === "kjl", t.value = f9.value.skinStyle === "cjb", u.value = f9.value.skinStyle === "ssl", d.value = f9.value.skinStyle === "dkh";
|
|
8193
8193
|
};
|
|
8194
8194
|
d9(P);
|
|
8195
|
-
const
|
|
8196
|
-
i === "menu" ? (f.value = q === 1, e.value = q === 2) : (n.value = q === 1, r.value = q === 2, t.value = q === 3, u.value = q === 4);
|
|
8195
|
+
const z = (i, q) => {
|
|
8196
|
+
i === "menu" ? (f.value = q === 1, e.value = q === 2) : (n.value = q === 1, r.value = q === 2, t.value = q === 3, u.value = q === 4, d.value = q === 5);
|
|
8197
8197
|
}, l = () => {
|
|
8198
8198
|
const i = {
|
|
8199
8199
|
default: n.value,
|
|
8200
8200
|
kjl: r.value,
|
|
8201
8201
|
cjb: t.value,
|
|
8202
8202
|
ssl: u.value,
|
|
8203
|
-
dkh:
|
|
8203
|
+
dkh: d.value
|
|
8204
8204
|
};
|
|
8205
8205
|
return Object.keys(i).find((q) => i[q] === !0) ?? "default";
|
|
8206
8206
|
}, X = () => ({
|
|
@@ -8236,7 +8236,7 @@ const Bf = (v, A = "") => {
|
|
|
8236
8236
|
k("div", V1, [
|
|
8237
8237
|
k("div", {
|
|
8238
8238
|
class: "item-content",
|
|
8239
|
-
onClick: q[1] || (q[1] = (a) =>
|
|
8239
|
+
onClick: q[1] || (q[1] = (a) => z("menu", 1))
|
|
8240
8240
|
}, [
|
|
8241
8241
|
k("img", {
|
|
8242
8242
|
src: x(e1),
|
|
@@ -8261,7 +8261,7 @@ const Bf = (v, A = "") => {
|
|
|
8261
8261
|
]),
|
|
8262
8262
|
k("div", {
|
|
8263
8263
|
class: "item-content",
|
|
8264
|
-
onClick: q[3] || (q[3] = (a) =>
|
|
8264
|
+
onClick: q[3] || (q[3] = (a) => z("menu", 2))
|
|
8265
8265
|
}, [
|
|
8266
8266
|
k("img", {
|
|
8267
8267
|
src: x(n1),
|
|
@@ -8297,7 +8297,7 @@ const Bf = (v, A = "") => {
|
|
|
8297
8297
|
k("div", T1, [
|
|
8298
8298
|
k("div", {
|
|
8299
8299
|
class: "item-content",
|
|
8300
|
-
onClick: q[5] || (q[5] = (a) =>
|
|
8300
|
+
onClick: q[5] || (q[5] = (a) => z("skin", 1))
|
|
8301
8301
|
}, [
|
|
8302
8302
|
k("img", {
|
|
8303
8303
|
src: x(r1),
|
|
@@ -8322,7 +8322,7 @@ const Bf = (v, A = "") => {
|
|
|
8322
8322
|
]),
|
|
8323
8323
|
k("div", {
|
|
8324
8324
|
class: "item-content",
|
|
8325
|
-
onClick: q[7] || (q[7] = (a) =>
|
|
8325
|
+
onClick: q[7] || (q[7] = (a) => z("skin", 2))
|
|
8326
8326
|
}, [
|
|
8327
8327
|
k("img", {
|
|
8328
8328
|
src: x(P1),
|
|
@@ -8349,7 +8349,7 @@ const Bf = (v, A = "") => {
|
|
|
8349
8349
|
k("div", y1, [
|
|
8350
8350
|
k("div", {
|
|
8351
8351
|
class: "item-content",
|
|
8352
|
-
onClick: q[9] || (q[9] = (a) =>
|
|
8352
|
+
onClick: q[9] || (q[9] = (a) => z("skin", 3))
|
|
8353
8353
|
}, [
|
|
8354
8354
|
k("img", {
|
|
8355
8355
|
src: x(t1),
|
|
@@ -8374,7 +8374,7 @@ const Bf = (v, A = "") => {
|
|
|
8374
8374
|
]),
|
|
8375
8375
|
k("div", {
|
|
8376
8376
|
class: "item-content",
|
|
8377
|
-
onClick: q[11] || (q[11] = (a) =>
|
|
8377
|
+
onClick: q[11] || (q[11] = (a) => z("skin", 4))
|
|
8378
8378
|
}, [
|
|
8379
8379
|
k("img", {
|
|
8380
8380
|
src: x(u1),
|
|
@@ -8401,7 +8401,7 @@ const Bf = (v, A = "") => {
|
|
|
8401
8401
|
k("div", o1, [
|
|
8402
8402
|
k("div", {
|
|
8403
8403
|
class: "item-content",
|
|
8404
|
-
onClick: q[13] || (q[13] = (a) =>
|
|
8404
|
+
onClick: q[13] || (q[13] = (a) => z("skin", 5))
|
|
8405
8405
|
}, [
|
|
8406
8406
|
k("img", {
|
|
8407
8407
|
src: x(d1),
|
|
@@ -8410,8 +8410,8 @@ const Bf = (v, A = "") => {
|
|
|
8410
8410
|
height: "120"
|
|
8411
8411
|
}, null, 8, w1),
|
|
8412
8412
|
g(x(R9), {
|
|
8413
|
-
modelValue:
|
|
8414
|
-
"onUpdate:modelValue": q[12] || (q[12] = (a) =>
|
|
8413
|
+
modelValue: d.value,
|
|
8414
|
+
"onUpdate:modelValue": q[12] || (q[12] = (a) => d.value = a)
|
|
8415
8415
|
}, {
|
|
8416
8416
|
default: U(() => [
|
|
8417
8417
|
HA(
|
|
@@ -8451,7 +8451,7 @@ const Bf = (v, A = "") => {
|
|
|
8451
8451
|
[UA, i.isShow]
|
|
8452
8452
|
]);
|
|
8453
8453
|
}
|
|
8454
|
-
}), J1 = /* @__PURE__ */ yA(g1, [["__scopeId", "data-v-
|
|
8454
|
+
}), J1 = /* @__PURE__ */ yA(g1, [["__scopeId", "data-v-6071b555"]]), B1 = { class: "set-lang" }, U1 = /* @__PURE__ */ qA({
|
|
8455
8455
|
__name: "index",
|
|
8456
8456
|
props: {
|
|
8457
8457
|
isShow: { type: Boolean }
|
|
@@ -8502,7 +8502,7 @@ const Bf = (v, A = "") => {
|
|
|
8502
8502
|
]);
|
|
8503
8503
|
}
|
|
8504
8504
|
}), G1 = /* @__PURE__ */ yA(U1, [["__scopeId", "data-v-b5871b7c"]]), Df = "v1", Y1 = `/api/portal/manager/${Df}`, j7 = kA(Y1), S1 = `/api/orchestration-engine/${Df}`, y7 = kA(`${S1}`), Q1 = `/api/workbench/workbench-server/${Df}`, K1 = kA(Q1), F1 = `/workflow/form/form/${Df}`, h1 = kA(F1), C1 = `/api/portal/user/${Df}`, Mn = kA(C1), _1 = Mn.get("/home"), $1 = Mn.delete("/home"), A8 = j7.get("/basics/home/type"), f8 = j7.get("/basics/tree-page"), v8 = j7.get("/basics/list"), e8 = y7.get("/device-list/arrange/page"), n8 = y7.get("/drawingArrangement/list"), r8 = y7.get("/data/arrange/page"), P8 = K1.get("/page/portal/list"), t8 = h1.post("/list"), u8 = (v) => {
|
|
8505
|
-
const { orgInfo: A, information: f, validate: e } = v, n = D(!1), r = D(""), t = D(""), u = D(""),
|
|
8505
|
+
const { orgInfo: A, information: f, validate: e } = v, n = D(!1), r = D(""), t = D(""), u = D(""), d = D([]), P = D({
|
|
8506
8506
|
id: "0",
|
|
8507
8507
|
path: "",
|
|
8508
8508
|
code: "",
|
|
@@ -8514,19 +8514,19 @@ const Bf = (v, A = "") => {
|
|
|
8514
8514
|
routeUrl: "",
|
|
8515
8515
|
applicationPath: "",
|
|
8516
8516
|
levelType: 1
|
|
8517
|
-
}),
|
|
8517
|
+
}), z = tP();
|
|
8518
8518
|
let l = !0;
|
|
8519
8519
|
const X = D(!1), { run: c } = f8(), { run: b } = v8(), p = () => {
|
|
8520
8520
|
var O;
|
|
8521
|
-
l = !0, (O =
|
|
8521
|
+
l = !0, (O = z.value) == null || O.resetLazyLoad();
|
|
8522
8522
|
};
|
|
8523
8523
|
return {
|
|
8524
8524
|
builtInDialog: n,
|
|
8525
|
-
$typeTree:
|
|
8525
|
+
$typeTree: z,
|
|
8526
8526
|
treeId: r,
|
|
8527
8527
|
treePath: t,
|
|
8528
8528
|
keyword: u,
|
|
8529
|
-
treeData:
|
|
8529
|
+
treeData: d,
|
|
8530
8530
|
openBuiltInDialog: () => {
|
|
8531
8531
|
var O, Z, R;
|
|
8532
8532
|
r.value = ((O = f.value) == null ? void 0 : O.urlId) ?? "", t.value = ((Z = f.value) == null ? void 0 : Z.urlPath) ?? ((R = f.value) == null ? void 0 : R.urlId) ?? "", u.value = "", n.value = !0, p();
|
|
@@ -8575,11 +8575,11 @@ const z8 = (v) => {
|
|
|
8575
8575
|
{ value: 2, label: J("设备看板") },
|
|
8576
8576
|
{ value: 3, label: J("数据编排") },
|
|
8577
8577
|
{ value: 4, label: J("轻分析") }
|
|
8578
|
-
]), u = D([]),
|
|
8578
|
+
]), u = D([]), d = D(20), P = D(1), z = D(0), l = D(""), X = D(""), c = D(""), b = D(!1), { run: p } = e8(), { run: i } = n8(), { run: q } = r8(), { run: a } = P8(), { run: s } = t8(), H = (K) => {
|
|
8579
8579
|
const G = [], S = K[2], C = S.displays, L = S.scenes, o = S[J("2D3D集成根目录")];
|
|
8580
8580
|
O(C, "2D", "/enterpriseadmin/ioc-server/?type=preview&tag=displays", G), O(L, "3D", "/enterpriseadmin/ioc-server/?type=preview3d&tag=scenes", G), O(o, J("集成"), "/enterpriseadmin/ioc-server/?type=preview2d3d&tag=scenes", G);
|
|
8581
|
-
const E = (P.value - 1) *
|
|
8582
|
-
u.value = G.filter((cA) => cA.name.includes(l.value)).slice(E, w),
|
|
8581
|
+
const E = (P.value - 1) * d.value, w = E + d.value;
|
|
8582
|
+
u.value = G.filter((cA) => cA.name.includes(l.value)).slice(E, w), z.value = G.length;
|
|
8583
8583
|
}, O = (K, G, S, C) => {
|
|
8584
8584
|
for (const L in K) {
|
|
8585
8585
|
const o = K[L];
|
|
@@ -8591,7 +8591,7 @@ const z8 = (v) => {
|
|
|
8591
8591
|
}
|
|
8592
8592
|
}
|
|
8593
8593
|
}, Z = () => {
|
|
8594
|
-
P.value = 1,
|
|
8594
|
+
P.value = 1, z.value = 0, l.value = "";
|
|
8595
8595
|
}, R = () => {
|
|
8596
8596
|
var K, G, S;
|
|
8597
8597
|
Z(), r.value = ((K = A.value) == null ? void 0 : K.urlType) ?? 0, X.value = ((G = A.value) == null ? void 0 : G.urlId) ?? "", c.value = ((S = A.value) == null ? void 0 : S.routeUrl) ?? "", of.afterMsg = H, N(), n.value = !0;
|
|
@@ -8622,7 +8622,7 @@ const z8 = (v) => {
|
|
|
8622
8622
|
project: e.value,
|
|
8623
8623
|
groupName: l.value,
|
|
8624
8624
|
pageIndex: P.value,
|
|
8625
|
-
pageSize:
|
|
8625
|
+
pageSize: d.value
|
|
8626
8626
|
};
|
|
8627
8627
|
b.value = !0;
|
|
8628
8628
|
const [G, S] = await i(K);
|
|
@@ -8630,13 +8630,13 @@ const z8 = (v) => {
|
|
|
8630
8630
|
u.value = [];
|
|
8631
8631
|
return;
|
|
8632
8632
|
}
|
|
8633
|
-
u.value = S.data.map((C) => (C.type = J("图纸编排"), C.name = C.groupName, C)) || [],
|
|
8633
|
+
u.value = S.data.map((C) => (C.type = J("图纸编排"), C.name = C.groupName, C)) || [], z.value = S.totalCount;
|
|
8634
8634
|
}, M = async () => {
|
|
8635
8635
|
const K = {
|
|
8636
8636
|
project: e.value,
|
|
8637
8637
|
name: l.value,
|
|
8638
8638
|
pageIndex: P.value,
|
|
8639
|
-
pageSize:
|
|
8639
|
+
pageSize: d.value
|
|
8640
8640
|
};
|
|
8641
8641
|
b.value = !0;
|
|
8642
8642
|
const [G, S] = await p(K);
|
|
@@ -8644,13 +8644,13 @@ const z8 = (v) => {
|
|
|
8644
8644
|
u.value = [];
|
|
8645
8645
|
return;
|
|
8646
8646
|
}
|
|
8647
|
-
u.value = S.data.map((C) => (C.type = J("设备看板"), C)) || [],
|
|
8647
|
+
u.value = S.data.map((C) => (C.type = J("设备看板"), C)) || [], z.value = S.totalCount;
|
|
8648
8648
|
}, Q = async () => {
|
|
8649
8649
|
const K = {
|
|
8650
8650
|
project: e.value,
|
|
8651
8651
|
pageName: l.value,
|
|
8652
8652
|
pageIndex: P.value,
|
|
8653
|
-
pageSize:
|
|
8653
|
+
pageSize: d.value
|
|
8654
8654
|
};
|
|
8655
8655
|
b.value = !0;
|
|
8656
8656
|
const [G, S] = await a(K);
|
|
@@ -8658,13 +8658,13 @@ const z8 = (v) => {
|
|
|
8658
8658
|
u.value = [];
|
|
8659
8659
|
return;
|
|
8660
8660
|
}
|
|
8661
|
-
u.value = S.data.map((C) => (C.type = J("轻分析"), C.name = C.pageName, C.url = C.uri, C)) || [],
|
|
8661
|
+
u.value = S.data.map((C) => (C.type = J("轻分析"), C.name = C.pageName, C.url = C.uri, C)) || [], z.value = S.totalCount;
|
|
8662
8662
|
}, $ = async () => {
|
|
8663
8663
|
const K = {
|
|
8664
8664
|
project: e.value,
|
|
8665
8665
|
name: l.value,
|
|
8666
8666
|
pageIndex: P.value,
|
|
8667
|
-
pageSize:
|
|
8667
|
+
pageSize: d.value
|
|
8668
8668
|
};
|
|
8669
8669
|
b.value = !0;
|
|
8670
8670
|
const [G, S] = await q(K);
|
|
@@ -8672,7 +8672,7 @@ const z8 = (v) => {
|
|
|
8672
8672
|
u.value = [];
|
|
8673
8673
|
return;
|
|
8674
8674
|
}
|
|
8675
|
-
u.value = S.data.map((C) => (C.type = J("数据编排"), C)) || [],
|
|
8675
|
+
u.value = S.data.map((C) => (C.type = J("数据编排"), C)) || [], z.value = S.totalCount;
|
|
8676
8676
|
};
|
|
8677
8677
|
return d9(() => {
|
|
8678
8678
|
of || (of = new hf({ url: d8, reconnectWhenClose: !0, message: H }));
|
|
@@ -8682,9 +8682,9 @@ const z8 = (v) => {
|
|
|
8682
8682
|
urlType: r,
|
|
8683
8683
|
urlTypeOptions: t,
|
|
8684
8684
|
tableData: u,
|
|
8685
|
-
pageSize:
|
|
8685
|
+
pageSize: d,
|
|
8686
8686
|
pageIndex: P,
|
|
8687
|
-
totalCount:
|
|
8687
|
+
totalCount: z,
|
|
8688
8688
|
tableFilter: l,
|
|
8689
8689
|
urlId: X,
|
|
8690
8690
|
openUrlDialog: R,
|
|
@@ -8704,21 +8704,21 @@ const z8 = (v) => {
|
|
|
8704
8704
|
n.value = !0;
|
|
8705
8705
|
}, u = () => {
|
|
8706
8706
|
e("confirm", () => n.value = !1);
|
|
8707
|
-
},
|
|
8707
|
+
}, d = () => {
|
|
8708
8708
|
e("cancel"), n.value = !1;
|
|
8709
8709
|
};
|
|
8710
8710
|
return A({
|
|
8711
8711
|
open: t
|
|
8712
|
-
}), (P,
|
|
8712
|
+
}), (P, z) => (Y(), PA(x(K9), {
|
|
8713
8713
|
class: "framework-portal-reset-home-dialog",
|
|
8714
8714
|
type: "feedback",
|
|
8715
8715
|
feedType: "primary",
|
|
8716
8716
|
size: "mini",
|
|
8717
8717
|
"default-footer": !0,
|
|
8718
8718
|
modelValue: n.value,
|
|
8719
|
-
"onUpdate:modelValue":
|
|
8719
|
+
"onUpdate:modelValue": z[0] || (z[0] = (l) => n.value = l),
|
|
8720
8720
|
onConfirm: u,
|
|
8721
|
-
onCancel:
|
|
8721
|
+
onCancel: d
|
|
8722
8722
|
}, {
|
|
8723
8723
|
header: U(() => [
|
|
8724
8724
|
HA(
|
|
@@ -8758,7 +8758,7 @@ const z8 = (v) => {
|
|
|
8758
8758
|
const e = f, n = $A(), r = D({}), t = D([]), u = D({
|
|
8759
8759
|
routeUrl: "",
|
|
8760
8760
|
homeAlias: ""
|
|
8761
|
-
}),
|
|
8761
|
+
}), d = async () => {
|
|
8762
8762
|
const _ = { orgId: n.id }, [fA, nA] = await A8().run(_);
|
|
8763
8763
|
if (fA) {
|
|
8764
8764
|
t.value = [];
|
|
@@ -8768,8 +8768,8 @@ const z8 = (v) => {
|
|
|
8768
8768
|
}, P = async () => {
|
|
8769
8769
|
const _ = { orgId: n.id }, [fA, nA] = await _1().run(_);
|
|
8770
8770
|
fA || (r.value = nA);
|
|
8771
|
-
},
|
|
8772
|
-
await
|
|
8771
|
+
}, z = async () => {
|
|
8772
|
+
await d(), await P();
|
|
8773
8773
|
}, l = () => {
|
|
8774
8774
|
r.value.routeUrl = "", u.value.routeUrl = "";
|
|
8775
8775
|
}, {
|
|
@@ -8825,8 +8825,8 @@ const z8 = (v) => {
|
|
|
8825
8825
|
};
|
|
8826
8826
|
return fA.type === 1 && (fA.portalId = _.originalId || _.portalId, fA.originalCode = _.originalCode, fA.applicationPath = _.applicationPath, fA.urlId = _.urlId, fA.urlPath = _.urlPath), fA.type === 2 && (fA.urlType = _.urlType, fA.urlId = _.urlId), fA;
|
|
8827
8827
|
};
|
|
8828
|
-
return d9(
|
|
8829
|
-
init:
|
|
8828
|
+
return d9(z), A({
|
|
8829
|
+
init: z,
|
|
8830
8830
|
formValidate: aA,
|
|
8831
8831
|
getResult: DA
|
|
8832
8832
|
}), (_, fA) => (Y(), dA(
|
|
@@ -9144,7 +9144,7 @@ const z8 = (v) => {
|
|
|
9144
9144
|
}), O8 = /* @__PURE__ */ yA(m8, [["__scopeId", "data-v-acf77da9"]]), V8 = "v1", x8 = `/api/portal/user/${V8}`, kn = kA(x8), R8 = Ur.post("/menu/personal-setting"), N8 = kn.put("/home"), Z8 = kn.put("/language"), T8 = { class: "preson-style-drawer" }, D8 = { class: "preson-style-footer" }, j8 = /* @__PURE__ */ qA({
|
|
9145
9145
|
__name: "index",
|
|
9146
9146
|
setup(v, { expose: A }) {
|
|
9147
|
-
const f = D(!1), e = D(!1), n = D(null), r = D(null), t = D(null), u = D("theme"),
|
|
9147
|
+
const f = D(!1), e = D(!1), n = D(null), r = D(null), t = D(null), u = D("theme"), d = D(""), P = D(!0), z = eA(() => [
|
|
9148
9148
|
{
|
|
9149
9149
|
key: "theme",
|
|
9150
9150
|
tab: J("主题设置")
|
|
@@ -9156,13 +9156,13 @@ const z8 = (v) => {
|
|
|
9156
9156
|
},
|
|
9157
9157
|
{
|
|
9158
9158
|
key: "home",
|
|
9159
|
-
tab: J("home-set",
|
|
9159
|
+
tab: J("home-set", d.value),
|
|
9160
9160
|
hidden: !P.value
|
|
9161
9161
|
}
|
|
9162
9162
|
]), l = () => {
|
|
9163
9163
|
var b, p;
|
|
9164
9164
|
const { flag: c } = Yf();
|
|
9165
|
-
c === 4 && (P.value = (b = q9.value) == null ? void 0 : b.companyIsDisplayHome),
|
|
9165
|
+
c === 4 && (P.value = (b = q9.value) == null ? void 0 : b.companyIsDisplayHome), d.value = (p = q9.value) != null && p.homeAlias ? q9.value.homeAlias : J("首页"), f.value = !0;
|
|
9166
9166
|
}, X = async () => {
|
|
9167
9167
|
var p, i, q, a;
|
|
9168
9168
|
const c = (p = n.value) == null ? void 0 : p.getResult(), [b] = await R8().run(c);
|
|
@@ -9237,7 +9237,7 @@ const z8 = (v) => {
|
|
|
9237
9237
|
]),
|
|
9238
9238
|
default: U(() => [
|
|
9239
9239
|
g(x(eP), {
|
|
9240
|
-
options:
|
|
9240
|
+
options: z.value,
|
|
9241
9241
|
activeKey: u.value,
|
|
9242
9242
|
"onUpdate:activeKey": b[0] || (b[0] = (p) => u.value = p),
|
|
9243
9243
|
"tab-width": "110px"
|
|
@@ -9309,8 +9309,8 @@ const z8 = (v) => {
|
|
|
9309
9309
|
]));
|
|
9310
9310
|
}
|
|
9311
9311
|
}), a7 = /* @__PURE__ */ yA(w8, [["__scopeId", "data-v-ed99a1f3"]]), E8 = p7.get("/login/history"), I8 = () => {
|
|
9312
|
-
const v = () => ["/licenseActivate", "/licenseDataManage", "/sso-logout"].some((
|
|
9313
|
-
const { browserLogoImgHost: u = "", browserLogoImg:
|
|
9312
|
+
const v = () => ["/licenseActivate", "/licenseDataManage", "/sso-logout"].some((d) => new RegExp(`^${d}$`, "i").test(location.pathname)), A = (t) => {
|
|
9313
|
+
const { browserLogoImgHost: u = "", browserLogoImg: d = "" } = t || {}, P = d ? u + Sf(d) : "./logo.svg";
|
|
9314
9314
|
Jt(P), Er(P);
|
|
9315
9315
|
}, f = async () => {
|
|
9316
9316
|
const [t, u] = await E8().run({ userId: Yf().id });
|
|
@@ -9345,7 +9345,7 @@ const z8 = (v) => {
|
|
|
9345
9345
|
initNextTick: r
|
|
9346
9346
|
};
|
|
9347
9347
|
}, M8 = (v, A, f) => (A >= v.length || f < 0 || f >= v.length || ([v[A], v[f]] = [v[f], v[A]]), v), k8 = (v) => {
|
|
9348
|
-
const A = m9(), f = $9(), { getMenu: e } = Jr(), { getHistoryList: n, getSearchList: r } = fX(), t = D("0"), u = D(!0),
|
|
9348
|
+
const A = m9(), f = $9(), { getMenu: e } = Jr(), { getHistoryList: n, getSearchList: r } = fX(), t = D("0"), u = D(!0), d = D([]), P = D([]), z = D(!1), l = D(!1), X = D(!1);
|
|
9349
9349
|
iA(
|
|
9350
9350
|
() => f.path,
|
|
9351
9351
|
(a) => {
|
|
@@ -9355,12 +9355,12 @@ const z8 = (v) => {
|
|
|
9355
9355
|
immediate: !0
|
|
9356
9356
|
}
|
|
9357
9357
|
), iA(
|
|
9358
|
-
() => [l.value, X.value,
|
|
9358
|
+
() => [l.value, X.value, z.value],
|
|
9359
9359
|
() => {
|
|
9360
9360
|
h.nav.setConfig({
|
|
9361
9361
|
showFullScreen: l.value,
|
|
9362
9362
|
showChangeEnterprise: X.value,
|
|
9363
|
-
showAIHelper:
|
|
9363
|
+
showAIHelper: z.value,
|
|
9364
9364
|
showSearch: !0,
|
|
9365
9365
|
showProjectTree: !0
|
|
9366
9366
|
});
|
|
@@ -9390,11 +9390,11 @@ const z8 = (v) => {
|
|
|
9390
9390
|
const { flag: R } = Yf();
|
|
9391
9391
|
return R === 4 ? a == null ? void 0 : a.companyIsDisplayHome : a == null ? void 0 : a.enable;
|
|
9392
9392
|
};
|
|
9393
|
-
H() ? ((a == null ? void 0 : a.displayPosition) === 2 && (s = M8(s, 0, 1)),
|
|
9393
|
+
H() ? ((a == null ? void 0 : a.displayPosition) === 2 && (s = M8(s, 0, 1)), d.value = s) : (d.value = s.filter((R) => R.path === oA), f.path === t9 && await A.replace(oA));
|
|
9394
9394
|
const O = H() && (a == null ? void 0 : a.displayPosition) !== 2 ? t9 : oA;
|
|
9395
9395
|
sessionStorage.getItem("defalt-page") || f.path !== O && await A.replace(O), sessionStorage.setItem("defalt-page", O);
|
|
9396
9396
|
const Z = h.nav.getItems().filter((R) => !R.fixed) ?? [];
|
|
9397
|
-
h.nav.setItems([...
|
|
9397
|
+
h.nav.setItems([...d.value, ...Z]);
|
|
9398
9398
|
}, p = D(!1), i = async () => {
|
|
9399
9399
|
var y;
|
|
9400
9400
|
await v();
|
|
@@ -9403,7 +9403,7 @@ const z8 = (v) => {
|
|
|
9403
9403
|
const { navConfig: H, projectConfig: O, currentProject: Z, tenantList: R } = s, V = (Z == null ? void 0 : Z.id) || 0;
|
|
9404
9404
|
a != V && (t.value = t.value === "0" ? "1" : "0"), X.value = ((y = Gf()) == null ? void 0 : y.flag) !== 4 && R && R.length > 1;
|
|
9405
9405
|
const T = await e("aiPlatform", "aiPlatform.dasaiassistant", "", "enterpriseadmin", !0);
|
|
9406
|
-
|
|
9406
|
+
z.value = !!T, b(), O && O.length && (h.nav.setProjectConfig({
|
|
9407
9407
|
treeProps: {
|
|
9408
9408
|
disabled: (M) => M.type !== 7
|
|
9409
9409
|
},
|
|
@@ -9431,7 +9431,7 @@ const z8 = (v) => {
|
|
|
9431
9431
|
b();
|
|
9432
9432
|
},
|
|
9433
9433
|
{ deep: !0 }
|
|
9434
|
-
), { loading: u, pageKey: t, innerPage:
|
|
9434
|
+
), { loading: u, pageKey: t, innerPage: d, commandList: P, layoutInited: p, initNextTick: () => new Promise((a) => {
|
|
9435
9435
|
const s = async () => {
|
|
9436
9436
|
var Z;
|
|
9437
9437
|
let H = ((Z = f.meta) == null ? void 0 : Z.showLayout) ?? !0, { showLayout: O = !0 } = f.query;
|
|
@@ -9460,8 +9460,8 @@ const z8 = (v) => {
|
|
|
9460
9460
|
const f = e9(kf(A.applicationCode)).filter((t) => !t.disable && !t.expired).find((t) => t.code === A.code);
|
|
9461
9461
|
if (f && !f.routeUrl) return;
|
|
9462
9462
|
if (!f) {
|
|
9463
|
-
const { title: t, content: u, desc:
|
|
9464
|
-
await sf({ title: t, content: u, desc:
|
|
9463
|
+
const { title: t, content: u, desc: d } = await L7(f);
|
|
9464
|
+
await sf({ title: t, content: u, desc: d });
|
|
9465
9465
|
return;
|
|
9466
9466
|
}
|
|
9467
9467
|
const n = (((r = IA().tabMap) == null ? void 0 : r[A.applicationCode]) ?? []).find((t) => t.code === A.code);
|
|
@@ -9483,9 +9483,9 @@ const z8 = (v) => {
|
|
|
9483
9483
|
}), h.nav.addEventListener("onItemRemove", (n) => {
|
|
9484
9484
|
var P;
|
|
9485
9485
|
const r = bA();
|
|
9486
|
-
if (!((P = r.subAppList) != null && P.length) || r.subAppList.findIndex((
|
|
9487
|
-
const
|
|
9488
|
-
|
|
9486
|
+
if (!((P = r.subAppList) != null && P.length) || r.subAppList.findIndex((z) => z.code === n.code) === -1) return;
|
|
9487
|
+
const d = (IA().tabMap[n.code] ?? []).map((z) => z.code);
|
|
9488
|
+
d && d.length && If(n.code, d), A(n);
|
|
9489
9489
|
});
|
|
9490
9490
|
const { enter: e } = ff();
|
|
9491
9491
|
return h.nav.addEventListener("fullScreenHandle", e), {};
|
|
@@ -9508,7 +9508,7 @@ const z8 = (v) => {
|
|
|
9508
9508
|
s && JSON.stringify(s) !== "{}" && (A.value = (T = (V = s[q]) == null ? void 0 : V[a]) != null && T.fontColor ? s[q][a].fontColor : "", f.value = (N = (m = s[q]) == null ? void 0 : m[a]) != null && N.backgroundColor ? s[q][a].backgroundColor : "", e.value = (y = (j = s[q]) == null ? void 0 : j[a]) != null && y.backgroundColor ? s[q][a].backgroundColor : "");
|
|
9509
9509
|
}
|
|
9510
9510
|
);
|
|
9511
|
-
const { deleteApp: t } = I9(), { entryMenu: u } = v3(), { reloadRoute:
|
|
9511
|
+
const { deleteApp: t } = I9(), { entryMenu: u } = v3(), { reloadRoute: d, unloadRoute: P } = gn(), z = (b) => {
|
|
9512
9512
|
var a;
|
|
9513
9513
|
const p = e9(kf(b.applicationCode)).find((s) => s.code === b.code), q = (((a = IA().tabMap) == null ? void 0 : a[b.applicationCode]) ?? []).find((s) => s.code === b.code);
|
|
9514
9514
|
u({ currentMenu: p, route: { path: q.path, query: q.query ?? {} } });
|
|
@@ -9534,7 +9534,7 @@ const z8 = (v) => {
|
|
|
9534
9534
|
}
|
|
9535
9535
|
const T = i.currentCode;
|
|
9536
9536
|
let m = null;
|
|
9537
|
-
T === V.value && (a + 1 === q.length ? q[a - 1] && (m = q[a - 1]) : q[a + 1] && (m = q[a + 1])), q.splice(a, 1), l([V]), QA([{ key: `tabMap:${p}`, value: q }]), m ?
|
|
9537
|
+
T === V.value && (a + 1 === q.length ? q[a - 1] && (m = q[a - 1]) : q[a + 1] && (m = q[a + 1])), q.splice(a, 1), l([V]), QA([{ key: `tabMap:${p}`, value: q }]), m ? z(m) : QA([{ key: `preTab:${p}`, value: {} }]);
|
|
9538
9538
|
},
|
|
9539
9539
|
all: s,
|
|
9540
9540
|
other: async (V) => {
|
|
@@ -9544,13 +9544,13 @@ const z8 = (v) => {
|
|
|
9544
9544
|
query: T.query
|
|
9545
9545
|
}), h.menu.setActiveItem(T.menuId), h.tab.setActiveItem(T.code);
|
|
9546
9546
|
const m = q.filter((N) => N.code !== V.value);
|
|
9547
|
-
m.forEach((N) => h.tab.removeItem(N.code)), l(m), QA([{ key: `tabMap:${p}`, value: [T] }]),
|
|
9547
|
+
m.forEach((N) => h.tab.removeItem(N.code)), l(m), QA([{ key: `tabMap:${p}`, value: [T] }]), z(T);
|
|
9548
9548
|
},
|
|
9549
9549
|
right: async (V) => {
|
|
9550
9550
|
const T = i.currentCode;
|
|
9551
9551
|
if (T !== V.value && q.findIndex((j) => j.code === T) > a) {
|
|
9552
9552
|
const j = q[a];
|
|
9553
|
-
|
|
9553
|
+
z(j);
|
|
9554
9554
|
}
|
|
9555
9555
|
const m = q.slice(a + 1);
|
|
9556
9556
|
m.forEach((N) => h.tab.removeItem(N.code)), l(m), q.splice(a + 1), QA([{ key: `tabMap:${p}`, value: q }]);
|
|
@@ -9558,7 +9558,7 @@ const z8 = (v) => {
|
|
|
9558
9558
|
})[b.type](b.data);
|
|
9559
9559
|
};
|
|
9560
9560
|
h.tab.addEventListener("onItemClick", async (b) => {
|
|
9561
|
-
IA().currentCode !== b.currentCode && (NA.innerSet = !0,
|
|
9561
|
+
IA().currentCode !== b.currentCode && (NA.innerSet = !0, z(b));
|
|
9562
9562
|
}), h.tab.addEventListener("onItemRemove", (b) => {
|
|
9563
9563
|
const p = IA(), i = bA().currentSubAppCode ?? "";
|
|
9564
9564
|
p.tabMap[i].findIndex((s) => s.code === b.code) !== -1 && (If(b.applicationCode, [b.code]), X({ type: "me", data: b }));
|
|
@@ -9583,11 +9583,11 @@ const z8 = (v) => {
|
|
|
9583
9583
|
const p = e9(kf(b.applicationCode)).find((a) => a.code === b.code);
|
|
9584
9584
|
if (!p) return;
|
|
9585
9585
|
if (p.routeUrl !== b.path) {
|
|
9586
|
-
|
|
9586
|
+
d([b.path]), P([`/${b.applicationPath}${p.routeUrl}`]), await u({ currentMenu: p });
|
|
9587
9587
|
return;
|
|
9588
9588
|
}
|
|
9589
9589
|
const i = { app: p.applicationCode, menu: p.code }, q = { ...b.query };
|
|
9590
|
-
A7(i, q) || await u({ currentMenu: p }),
|
|
9590
|
+
A7(i, q) || await u({ currentMenu: p }), d([b.path]);
|
|
9591
9591
|
});
|
|
9592
9592
|
const { enter: c } = ff();
|
|
9593
9593
|
return h.tab.addEventListener("onToggleFullScreen", c), { fontColor: A, backgroudColor: f, borderColor: e };
|
|
@@ -9618,7 +9618,7 @@ const z8 = (v) => {
|
|
|
9618
9618
|
!e && n && (r = [{ name: n }]);
|
|
9619
9619
|
const t = r.map((X) => X.name), u = () => {
|
|
9620
9620
|
h.menu.setItems([]), h.menu.setActiveItem(""), h.tab.setItems([]), h.tab.setActiveItem("");
|
|
9621
|
-
},
|
|
9621
|
+
}, d = async (X) => {
|
|
9622
9622
|
if (X.routeUrl && !t.includes(X.routeUrl)) return !0;
|
|
9623
9623
|
const c = X.code ?? "", p = (bA().subAppList ?? []).find((H) => H.code === c);
|
|
9624
9624
|
let i = [], q = [], a = !1;
|
|
@@ -9731,7 +9731,7 @@ const z8 = (v) => {
|
|
|
9731
9731
|
h.tab.setItems([]);
|
|
9732
9732
|
}
|
|
9733
9733
|
A({ currentMenu: V, microPath: T, route: q });
|
|
9734
|
-
},
|
|
9734
|
+
}, z = async (X) => {
|
|
9735
9735
|
var c;
|
|
9736
9736
|
if (NA.innerSet = !0, X.fixed) {
|
|
9737
9737
|
await v.push(X.path), h.menu.setItems([]), h.tab.setItems([]), h.nav.setActiveItem(X.path), FA([
|
|
@@ -9749,9 +9749,9 @@ const z8 = (v) => {
|
|
|
9749
9749
|
}
|
|
9750
9750
|
};
|
|
9751
9751
|
return {
|
|
9752
|
-
beforeEntryApp:
|
|
9752
|
+
beforeEntryApp: d,
|
|
9753
9753
|
entryApp: P,
|
|
9754
|
-
changeApp:
|
|
9754
|
+
changeApp: z,
|
|
9755
9755
|
deleteApp: async (X) => {
|
|
9756
9756
|
var q;
|
|
9757
9757
|
const c = bA();
|
|
@@ -9769,12 +9769,12 @@ const z8 = (v) => {
|
|
|
9769
9769
|
{ key: `tabMap:${X.code}`, value: [] }
|
|
9770
9770
|
]), i) {
|
|
9771
9771
|
const a = { ...i, value: i.code, label: i.name };
|
|
9772
|
-
await
|
|
9772
|
+
await z(a), h.nav.setActiveItem(i.code);
|
|
9773
9773
|
}
|
|
9774
9774
|
if (!c.subAppList.length) {
|
|
9775
9775
|
if (h.menu.setItems([]), h.tab.setItems([]), location.pathname !== oA && location.pathname !== t9) {
|
|
9776
9776
|
const a = he.find((s) => s.value === oA);
|
|
9777
|
-
a &&
|
|
9777
|
+
a && z(a);
|
|
9778
9778
|
}
|
|
9779
9779
|
O7(), $e();
|
|
9780
9780
|
}
|
|
@@ -9785,12 +9785,12 @@ const z8 = (v) => {
|
|
|
9785
9785
|
let { mainAppName: A = "", microAppName: f = "", microApps: e = [] } = O9();
|
|
9786
9786
|
return !A && f && (e = [{ name: f }]), e.map((r) => r.name), { entryMenu: async (r) => {
|
|
9787
9787
|
var p;
|
|
9788
|
-
const { currentMenu: t, route: u = {}, microPath:
|
|
9788
|
+
const { currentMenu: t, route: u = {}, microPath: d = "" } = r;
|
|
9789
9789
|
if (!t) return;
|
|
9790
9790
|
let P = { ...u.query, app: t.applicationCode, menu: t.code };
|
|
9791
|
-
const
|
|
9791
|
+
const z = (t == null ? void 0 : t.openType) ?? 1, l = (t == null ? void 0 : t.type) ?? 1;
|
|
9792
9792
|
let X = "";
|
|
9793
|
-
if (
|
|
9793
|
+
if (z === 1)
|
|
9794
9794
|
if (l === 1)
|
|
9795
9795
|
if (t.routeUrl.startsWith(T9)) {
|
|
9796
9796
|
const i = Mr(t.routeUrl, "iframeSrc");
|
|
@@ -9806,7 +9806,7 @@ const z8 = (v) => {
|
|
|
9806
9806
|
v.addRoute(q), v.options.routes.push(q);
|
|
9807
9807
|
}
|
|
9808
9808
|
await v.push({ path: X, query: P });
|
|
9809
|
-
} else t.applicationPath && (X =
|
|
9809
|
+
} else t.applicationPath && (X = d || t.routeUrl, X = `/${t.applicationPath}${X}`.replace(/\/\//g, "/"), await v.push({ path: X, query: P }));
|
|
9810
9810
|
else {
|
|
9811
9811
|
const i = await Xn(t.routeUrl, (t == null ? void 0 : t.param) ?? []), q = t7(f7(v7(i)));
|
|
9812
9812
|
if (X = `${T9}-${t.code}`, !v.options.routes.find((a) => a.path === X)) {
|
|
@@ -9822,7 +9822,7 @@ const z8 = (v) => {
|
|
|
9822
9822
|
}
|
|
9823
9823
|
await v.push({ path: X, query: P });
|
|
9824
9824
|
}
|
|
9825
|
-
if (
|
|
9825
|
+
if (z === 2) {
|
|
9826
9826
|
let i = l === 1 ? `/${t.applicationPath}${t.routeUrl}`.replace(/\/\//g, "/") : t.routeUrl;
|
|
9827
9827
|
i = t7(f7(v7(i))), NA.innerSet ? (X = Ce, await v.push({ path: X, query: P }), i && window.open(i, "_blank")) : l === 1 && (X = i, P = { ...P, showLayout: !1 }, await v.push({
|
|
9828
9828
|
path: X,
|
|
@@ -9876,7 +9876,7 @@ const z8 = (v) => {
|
|
|
9876
9876
|
const { entryApp: e } = I9(), n = m9();
|
|
9877
9877
|
let { mainAppName: r = "", microAppName: t = "", microApps: u = [] } = O9();
|
|
9878
9878
|
!r && t && (u = [{ name: t }]);
|
|
9879
|
-
const
|
|
9879
|
+
const d = async (l) => {
|
|
9880
9880
|
var H, O, Z, R;
|
|
9881
9881
|
let X = { ...l }, { showLayout: c = !0 } = X.query;
|
|
9882
9882
|
c === "false" && (c = !1);
|
|
@@ -9964,16 +9964,16 @@ const z8 = (v) => {
|
|
|
9964
9964
|
]));
|
|
9965
9965
|
}
|
|
9966
9966
|
};
|
|
9967
|
-
let P = "",
|
|
9967
|
+
let P = "", z = {};
|
|
9968
9968
|
iA(
|
|
9969
9969
|
() => n.currentRoute.value,
|
|
9970
9970
|
async (l) => {
|
|
9971
|
-
if (!(l.path === P && A7(l.query,
|
|
9972
|
-
if (P = C9(l.path),
|
|
9971
|
+
if (!(l.path === P && A7(l.query, z))) {
|
|
9972
|
+
if (P = C9(l.path), z = C9(l.query), z && z.source && localStorage.setItem("thirdLogouSource", z.source), await f(), NA.innerSet) {
|
|
9973
9973
|
NA.innerSet = !1;
|
|
9974
9974
|
return;
|
|
9975
9975
|
}
|
|
9976
|
-
|
|
9976
|
+
d(l);
|
|
9977
9977
|
}
|
|
9978
9978
|
}
|
|
9979
9979
|
);
|
|
@@ -9987,17 +9987,17 @@ const z8 = (v) => {
|
|
|
9987
9987
|
}, 100);
|
|
9988
9988
|
} }), S8 = () => {
|
|
9989
9989
|
const v = Tr(), A = L8(), f = O9(), e = () => {
|
|
9990
|
-
let
|
|
9991
|
-
return localStorage.getItem("thirdLogouSource") === "zhongshen" && (
|
|
9992
|
-
}, n = (
|
|
9990
|
+
let d = !1;
|
|
9991
|
+
return localStorage.getItem("thirdLogouSource") === "zhongshen" && (d = !0), d;
|
|
9992
|
+
}, n = (d) => {
|
|
9993
9993
|
if (localStorage.getItem("thirdLogouSource") === "zhongshen") {
|
|
9994
|
-
const l = `https://iam.shenyejituan.com:443/idp/profile/OAUTH2/Redirect/GLO?redirctToUrl=${encodeURIComponent(
|
|
9994
|
+
const l = `https://iam.shenyejituan.com:443/idp/profile/OAUTH2/Redirect/GLO?redirctToUrl=${encodeURIComponent(d)}&entityId=AIoT&redirectToLogin=true`;
|
|
9995
9995
|
localStorage.removeItem("thirdLogouSource"), location.href = l;
|
|
9996
9996
|
}
|
|
9997
9997
|
}, r = async () => {
|
|
9998
|
-
const
|
|
9998
|
+
const d = {
|
|
9999
9999
|
logout: "/api/justauth/oauth-server/v1/visitor/logout"
|
|
10000
|
-
}, P = location.origin + t9,
|
|
10000
|
+
}, P = location.origin + t9, z = {
|
|
10001
10001
|
response_type: "code",
|
|
10002
10002
|
scope: "sever",
|
|
10003
10003
|
client_id: "sys",
|
|
@@ -10007,27 +10007,27 @@ const z8 = (v) => {
|
|
|
10007
10007
|
// 写用户访问日志逻辑配合
|
|
10008
10008
|
logout: "true"
|
|
10009
10009
|
};
|
|
10010
|
-
f.ssoLocale && (
|
|
10011
|
-
const l = Object.keys(
|
|
10010
|
+
f.ssoLocale && (z.locale = "locale");
|
|
10011
|
+
const l = Object.keys(z).map((c) => `${c}=${z[c]}`).join("&"), X = `${f.baseURL}${d.logout}?${l}`;
|
|
10012
10012
|
window.__isAutoCloseApp = !1, e() ? n(X) : location.replace(X), sessionStorage.clear(), localStorage.removeItem("idelTime"), Sr();
|
|
10013
10013
|
}, { entryApp: t } = I9(), u = async () => {
|
|
10014
|
-
const
|
|
10014
|
+
const d = "personCenter", z = (bA().appcategorys || []).map((p) => p.apps).flat(), { originalMenus: l = [] } = await T7(d), c = e9(l).filter((p) => p.isMenu && p.routeUrl).find((p) => p.routeUrl === "/userInfo");
|
|
10015
10015
|
if (c != null && c.disable || c != null && c.expired) {
|
|
10016
10016
|
const { title: p, content: i, desc: q } = await L7(c);
|
|
10017
10017
|
await sf({ title: p, content: i, desc: q });
|
|
10018
10018
|
return;
|
|
10019
10019
|
}
|
|
10020
|
-
const b =
|
|
10020
|
+
const b = z.find((p) => p.code === d);
|
|
10021
10021
|
b && t({ microApp: b, menuPath: `/${b.routeUrl}/userInfo` });
|
|
10022
10022
|
};
|
|
10023
|
-
return h.nav.addEventListener("onUserCommandChange", (
|
|
10024
|
-
var
|
|
10023
|
+
return h.nav.addEventListener("onUserCommandChange", (d) => {
|
|
10024
|
+
var z, l;
|
|
10025
10025
|
({
|
|
10026
|
-
0: (
|
|
10026
|
+
0: (z = A.value) == null ? void 0 : z.openDialog,
|
|
10027
10027
|
1: u,
|
|
10028
10028
|
2: (l = v.value) == null ? void 0 : l.openDialog,
|
|
10029
10029
|
3: r
|
|
10030
|
-
})[
|
|
10030
|
+
})[d]();
|
|
10031
10031
|
}), {
|
|
10032
10032
|
$changePwd: v,
|
|
10033
10033
|
$personSetDialog: A
|
|
@@ -10047,11 +10047,11 @@ const z8 = (v) => {
|
|
|
10047
10047
|
userId: f,
|
|
10048
10048
|
tenantId: e,
|
|
10049
10049
|
changeEnterprise: async (u) => {
|
|
10050
|
-
const [
|
|
10051
|
-
if (
|
|
10050
|
+
const [d, P] = await Q8().run({ tenant: u });
|
|
10051
|
+
if (d) return;
|
|
10052
10052
|
A.value = !1;
|
|
10053
|
-
const { access_token:
|
|
10054
|
-
accessToken:
|
|
10053
|
+
const { access_token: z = "", refresh_token: l = "", expires_in: X = 0, sub: c = "", name: b = "", flag: p = "", tenant: i = "" } = P, q = {
|
|
10054
|
+
accessToken: z,
|
|
10055
10055
|
accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(X) * 1e3,
|
|
10056
10056
|
refreshToken: l,
|
|
10057
10057
|
info: P
|
|
@@ -10063,7 +10063,7 @@ const z8 = (v) => {
|
|
|
10063
10063
|
flag: p,
|
|
10064
10064
|
tenantId: i
|
|
10065
10065
|
};
|
|
10066
|
-
sessionStorage.setItem("hotentUserInfo", JSON.stringify(a)), Kr(
|
|
10066
|
+
sessionStorage.setItem("hotentUserInfo", JSON.stringify(a)), Kr(z);
|
|
10067
10067
|
let s = "";
|
|
10068
10068
|
if (v != null && v.ssoLocale)
|
|
10069
10069
|
s = `http://127.0.0.1:5000/oauth/refreshOauthToken?tenantId=${u}`;
|
|
@@ -10106,8 +10106,8 @@ const z8 = (v) => {
|
|
|
10106
10106
|
await _8().run({ searchVal: r, clickData: n });
|
|
10107
10107
|
const P = ((bA().appcategorys ?? []).map((l) => l.apps).flat() ?? []).find((l) => l.code === n.applicationCode);
|
|
10108
10108
|
if (!P) return;
|
|
10109
|
-
const
|
|
10110
|
-
f({ microApp: P, menuCode:
|
|
10109
|
+
const z = n.applicationCode !== n.code ? n.code : "";
|
|
10110
|
+
f({ microApp: P, menuCode: z }), t();
|
|
10111
10111
|
}), h.nav.addEventListener("deleteSearchItem", async (e) => {
|
|
10112
10112
|
const { value: n, cb: r } = e;
|
|
10113
10113
|
await AX().run({ id: n }), r();
|
|
@@ -10126,9 +10126,9 @@ const z8 = (v) => {
|
|
|
10126
10126
|
});
|
|
10127
10127
|
const f = (n) => {
|
|
10128
10128
|
let r = n.startsWith("/") ? `http://example.com${n}` : `http://example.com/${n}`;
|
|
10129
|
-
const t = new URL(r), u = new URLSearchParams(t.search),
|
|
10130
|
-
if (P &&
|
|
10131
|
-
const X = ((bA().appcategorys ?? []).map((c) => c.apps).flat() ?? []).find((c) => c.code ===
|
|
10129
|
+
const t = new URL(r), u = new URLSearchParams(t.search), d = u.get("app"), P = u.get("menu");
|
|
10130
|
+
if (P && d) {
|
|
10131
|
+
const X = ((bA().appcategorys ?? []).map((c) => c.apps).flat() ?? []).find((c) => c.code === d);
|
|
10132
10132
|
if (!X) return;
|
|
10133
10133
|
A({ microApp: X, menuCode: P });
|
|
10134
10134
|
}
|
|
@@ -10190,8 +10190,8 @@ const z8 = (v) => {
|
|
|
10190
10190
|
});
|
|
10191
10191
|
}, PX = Kf.get("/platform/login/pwd-advance-notify-check"), tX = () => {
|
|
10192
10192
|
const v = D([]), A = D(null), f = D([]), { entryApp: e } = Jf.hooks.useEntryApp(), n = () => {
|
|
10193
|
-
var
|
|
10194
|
-
const u = (((
|
|
10193
|
+
var d;
|
|
10194
|
+
const u = (((d = bA().appcategorys) == null ? void 0 : d.map((P) => P.apps).flat()) ?? []).find((P) => P.code === "messagecenter");
|
|
10195
10195
|
u && e({ microApp: u });
|
|
10196
10196
|
}, r = () => {
|
|
10197
10197
|
A.value = new hf({
|
|
@@ -10202,10 +10202,10 @@ const z8 = (v) => {
|
|
|
10202
10202
|
},
|
|
10203
10203
|
message: async (t) => {
|
|
10204
10204
|
if (TA.sendMessageToMicroApp("enterpriseadmin/messagecenter", "message-notify:message", { msgList: t }), window.self !== window.top) return;
|
|
10205
|
-
const
|
|
10205
|
+
const d = $A().id;
|
|
10206
10206
|
v.value = t.filter(
|
|
10207
|
-
(P) => P.projectId ===
|
|
10208
|
-
), f.value && f.value.length && (f.value.forEach((P) => gf.close(P)), f.value = []), await a9(), v.value.forEach((P,
|
|
10207
|
+
(P) => P.projectId === d || P.projectId === 0 || P.projectId === "0"
|
|
10208
|
+
), f.value && f.value.length && (f.value.forEach((P) => gf.close(P)), f.value = []), await a9(), v.value.forEach((P, z) => {
|
|
10209
10209
|
gf.info({
|
|
10210
10210
|
key: P.id,
|
|
10211
10211
|
class: "message-center-notify",
|
|
@@ -10266,27 +10266,27 @@ const cX = dX.post("data/device-auth"), aX = /* @__PURE__ */ qA({
|
|
|
10266
10266
|
},
|
|
10267
10267
|
emits: ["itemClick"],
|
|
10268
10268
|
setup(v, { emit: A }) {
|
|
10269
|
-
ar((
|
|
10269
|
+
ar((z) => ({
|
|
10270
10270
|
"23bfa220": P.value
|
|
10271
10271
|
}));
|
|
10272
10272
|
const f = v, e = A, n = D(), { toggle: r, isFullscreen: t } = ff(n), u = () => {
|
|
10273
10273
|
n.value != document.fullscreenElement && (t.value ? (t.value = !1, a9(() => {
|
|
10274
10274
|
r();
|
|
10275
10275
|
})) : r());
|
|
10276
|
-
},
|
|
10276
|
+
}, d = () => {
|
|
10277
10277
|
e("itemClick");
|
|
10278
10278
|
}, P = eA(() => `calc(100% / ${Math.sqrt(f.gridNum)})`);
|
|
10279
|
-
return (
|
|
10279
|
+
return (z, l) => (Y(), dA(
|
|
10280
10280
|
"div",
|
|
10281
10281
|
{
|
|
10282
10282
|
ref_key: "containerRef",
|
|
10283
10283
|
ref: n,
|
|
10284
10284
|
class: q7(["wrapper", { "is-active": f.active }]),
|
|
10285
10285
|
onDblclick: l[0] || (l[0] = (X) => u()),
|
|
10286
|
-
onClick: l[1] || (l[1] = (X) =>
|
|
10286
|
+
onClick: l[1] || (l[1] = (X) => d())
|
|
10287
10287
|
},
|
|
10288
10288
|
[
|
|
10289
|
-
WA(
|
|
10289
|
+
WA(z.$slots, "default", {}, void 0, !0)
|
|
10290
10290
|
],
|
|
10291
10291
|
34
|
|
10292
10292
|
/* CLASS, NEED_HYDRATION */
|
|
@@ -10309,15 +10309,15 @@ const cX = dX.post("data/device-auth"), aX = /* @__PURE__ */ qA({
|
|
|
10309
10309
|
(Y(!0), dA(
|
|
10310
10310
|
v9,
|
|
10311
10311
|
null,
|
|
10312
|
-
Q9(f.gridNum, (u,
|
|
10312
|
+
Q9(f.gridNum, (u, d) => (Y(), PA(qX, {
|
|
10313
10313
|
active: !1,
|
|
10314
10314
|
"grid-num": f.gridNum,
|
|
10315
|
-
onItemClick: (P) => n(
|
|
10315
|
+
onItemClick: (P) => n(d)
|
|
10316
10316
|
}, {
|
|
10317
10317
|
default: U(() => [
|
|
10318
|
-
r.showFn(
|
|
10318
|
+
r.showFn(d) ? WA(r.$slots, "default", {
|
|
10319
10319
|
key: 0,
|
|
10320
|
-
index:
|
|
10320
|
+
index: d
|
|
10321
10321
|
}, void 0, !0) : AA("v-if", !0)
|
|
10322
10322
|
]),
|
|
10323
10323
|
_: 2
|
|
@@ -10480,10 +10480,10 @@ const cX = dX.post("data/device-auth"), aX = /* @__PURE__ */ qA({
|
|
|
10480
10480
|
enlarge: import("@das-fed/ui/packages/icons/enlarge"),
|
|
10481
10481
|
"direction-control": import("@das-fed/ui/packages/icons/direction-control")
|
|
10482
10482
|
});
|
|
10483
|
-
const f = v, e = A, n = D(!0), r = D(), t = D(!1), u = D(),
|
|
10483
|
+
const f = v, e = A, n = D(!0), r = D(), t = D(!1), u = D(), d = eA(() => {
|
|
10484
10484
|
var s;
|
|
10485
10485
|
return (s = u.value) == null ? void 0 : s.video;
|
|
10486
|
-
}), P = D(!1),
|
|
10486
|
+
}), P = D(!1), z = D(!0), l = (s) => {
|
|
10487
10487
|
r.value = s, r.value.on(window.mpegts.Events.ERROR, (H) => {
|
|
10488
10488
|
});
|
|
10489
10489
|
}, X = () => {
|
|
@@ -10492,10 +10492,10 @@ const cX = dX.post("data/device-auth"), aX = /* @__PURE__ */ qA({
|
|
|
10492
10492
|
t.value = !t.value;
|
|
10493
10493
|
}, b = D(""), p = () => {
|
|
10494
10494
|
const s = document.createElement("canvas");
|
|
10495
|
-
if (
|
|
10496
|
-
s.width =
|
|
10495
|
+
if (d.value) {
|
|
10496
|
+
s.width = d.value.clientWidth, s.height = d.value.clientHeight;
|
|
10497
10497
|
const H = s.getContext("2d");
|
|
10498
|
-
H == null || H.drawImage(
|
|
10498
|
+
H == null || H.drawImage(d.value, 0, 0, s.width, s.height);
|
|
10499
10499
|
const O = s.toDataURL("image/jpg"), Z = `【${f.title}】${e7().format("YYYYMMDDHHmmss").toString()}.jpg`;
|
|
10500
10500
|
if (b.value = O, "download" in document.createElement("a")) {
|
|
10501
10501
|
const R = document.createElement("a");
|
|
@@ -10508,17 +10508,17 @@ const cX = dX.post("data/device-auth"), aX = /* @__PURE__ */ qA({
|
|
|
10508
10508
|
e("zoomControl", s);
|
|
10509
10509
|
}, a = (s) => f.authType.includes(s);
|
|
10510
10510
|
return iA(
|
|
10511
|
-
() =>
|
|
10511
|
+
() => d.value,
|
|
10512
10512
|
() => {
|
|
10513
|
-
|
|
10514
|
-
P.value = !0, f.type === "playback" && (
|
|
10513
|
+
d.value && d.value.addEventListener("ended", () => {
|
|
10514
|
+
P.value = !0, f.type === "playback" && (z.value = !1);
|
|
10515
10515
|
});
|
|
10516
10516
|
}
|
|
10517
10517
|
), iA(
|
|
10518
|
-
() =>
|
|
10518
|
+
() => d.value,
|
|
10519
10519
|
() => {
|
|
10520
|
-
|
|
10521
|
-
|
|
10520
|
+
d.value && a9(() => {
|
|
10521
|
+
d.value.playbackRate = f.playbackRate || 1;
|
|
10522
10522
|
});
|
|
10523
10523
|
}
|
|
10524
10524
|
), iA(
|
|
@@ -10531,7 +10531,7 @@ const cX = dX.post("data/device-auth"), aX = /* @__PURE__ */ qA({
|
|
|
10531
10531
|
), iA(
|
|
10532
10532
|
() => f.playbackRate,
|
|
10533
10533
|
() => {
|
|
10534
|
-
|
|
10534
|
+
d.value && (d.value.playbackRate = f.playbackRate || 1);
|
|
10535
10535
|
},
|
|
10536
10536
|
{
|
|
10537
10537
|
immediate: !0
|
|
@@ -10544,8 +10544,8 @@ const cX = dX.post("data/device-auth"), aX = /* @__PURE__ */ qA({
|
|
|
10544
10544
|
), iA(
|
|
10545
10545
|
() => f.videoUrl,
|
|
10546
10546
|
() => {
|
|
10547
|
-
|
|
10548
|
-
|
|
10547
|
+
z.value = !1, a9(() => {
|
|
10548
|
+
z.value = !0;
|
|
10549
10549
|
});
|
|
10550
10550
|
}
|
|
10551
10551
|
), (s, H) => (Y(), dA("div", mX, [
|
|
@@ -10578,7 +10578,7 @@ const cX = dX.post("data/device-auth"), aX = /* @__PURE__ */ qA({
|
|
|
10578
10578
|
AA(' <das-icon class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
|
|
10579
10579
|
])
|
|
10580
10580
|
]),
|
|
10581
|
-
f.videoUrl &&
|
|
10581
|
+
f.videoUrl && z.value ? (Y(), PA(x(AP), {
|
|
10582
10582
|
key: 0,
|
|
10583
10583
|
type: "flv",
|
|
10584
10584
|
ref_key: "dasLivePlayerRef",
|
|
@@ -10703,29 +10703,29 @@ const cX = dX.post("data/device-auth"), aX = /* @__PURE__ */ qA({
|
|
|
10703
10703
|
const {
|
|
10704
10704
|
deviceInfo: f
|
|
10705
10705
|
} = qr(v), e = D(!1), n = D(""), r = async () => {
|
|
10706
|
-
var
|
|
10707
|
-
if (!((
|
|
10706
|
+
var z;
|
|
10707
|
+
if (!((z = f.value) != null && z.deviceId)) return;
|
|
10708
10708
|
e.value = !0;
|
|
10709
|
-
const [
|
|
10709
|
+
const [d, P] = await bX({
|
|
10710
10710
|
productId: f.value.productId,
|
|
10711
10711
|
deviceId: f.value.deviceId,
|
|
10712
10712
|
source: "strategy"
|
|
10713
10713
|
});
|
|
10714
|
-
|
|
10715
|
-
}, t = (
|
|
10714
|
+
d || (n.value = kr(P == null ? void 0 : P.wsFlvStreamURL)), e.value = !1;
|
|
10715
|
+
}, t = (d) => {
|
|
10716
10716
|
Oe({
|
|
10717
10717
|
productId: f.value.productId,
|
|
10718
10718
|
deviceId: f.value.deviceId,
|
|
10719
|
-
direction:
|
|
10719
|
+
direction: d,
|
|
10720
10720
|
zoom: "",
|
|
10721
10721
|
source: "strategy"
|
|
10722
10722
|
});
|
|
10723
|
-
}, u = (
|
|
10723
|
+
}, u = (d) => {
|
|
10724
10724
|
Oe({
|
|
10725
10725
|
productId: f.value.productId,
|
|
10726
10726
|
deviceId: f.value.deviceId,
|
|
10727
10727
|
direction: "",
|
|
10728
|
-
zoom:
|
|
10728
|
+
zoom: d,
|
|
10729
10729
|
source: "strategy"
|
|
10730
10730
|
});
|
|
10731
10731
|
};
|
|
@@ -10764,15 +10764,15 @@ function WX(v) {
|
|
|
10764
10764
|
}, {
|
|
10765
10765
|
default: ({
|
|
10766
10766
|
videoUrl: u,
|
|
10767
|
-
onDirectionControl:
|
|
10767
|
+
onDirectionControl: d,
|
|
10768
10768
|
onZoomControl: P,
|
|
10769
|
-
loading:
|
|
10769
|
+
loading: z
|
|
10770
10770
|
}) => g(yX, {
|
|
10771
10771
|
type: "live",
|
|
10772
|
-
loading:
|
|
10772
|
+
loading: z,
|
|
10773
10773
|
videoUrl: u,
|
|
10774
10774
|
title: t.deviceName,
|
|
10775
|
-
onDirectionControl:
|
|
10775
|
+
onDirectionControl: d,
|
|
10776
10776
|
onZoomControl: P,
|
|
10777
10777
|
authType: t.authType === 2 ? ["control"] : []
|
|
10778
10778
|
}, null)
|
|
@@ -10813,7 +10813,7 @@ const oX = /* @__PURE__ */ qA({
|
|
|
10813
10813
|
title: x(J)("视频监控"),
|
|
10814
10814
|
"custom-class": `das-linakge-video-dialog ${r.value}`,
|
|
10815
10815
|
modelValue: f.value,
|
|
10816
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
10816
|
+
"onUpdate:modelValue": u[0] || (u[0] = (d) => f.value = d),
|
|
10817
10817
|
bodyStyle: { padding: 0 },
|
|
10818
10818
|
"close-on-click-modal": !1,
|
|
10819
10819
|
"close-on-press-escape": !1,
|
|
@@ -10875,7 +10875,7 @@ const oX = /* @__PURE__ */ qA({
|
|
|
10875
10875
|
url: "/api/strategy/linkage-strategy/v1/video-popup/subscribe",
|
|
10876
10876
|
params: { project: r },
|
|
10877
10877
|
message: async (P) => {
|
|
10878
|
-
var
|
|
10878
|
+
var z;
|
|
10879
10879
|
if (window.self === window.top && (P == null ? void 0 : P.project) === r) {
|
|
10880
10880
|
v.value = P.layout;
|
|
10881
10881
|
let l = {
|
|
@@ -10893,7 +10893,7 @@ const oX = /* @__PURE__ */ qA({
|
|
|
10893
10893
|
show: !!p
|
|
10894
10894
|
};
|
|
10895
10895
|
});
|
|
10896
|
-
A.value = c.filter((b) => !!b.show), (
|
|
10896
|
+
A.value = c.filter((b) => !!b.show), (z = A.value) != null && z.length && wX({ gridNum: v.value, deviceList: A.value });
|
|
10897
10897
|
}
|
|
10898
10898
|
}
|
|
10899
10899
|
}));
|
|
@@ -11095,16 +11095,16 @@ function L9(v) {
|
|
|
11095
11095
|
v.constructor && v.constructor.name === "ArrayBuffer");
|
|
11096
11096
|
}
|
|
11097
11097
|
async function Yn(v, A, f, e, n, r) {
|
|
11098
|
-
const t = {}, [u,
|
|
11099
|
-
t[u] =
|
|
11100
|
-
const P = L9(n) ? "arraybuffer" : "text",
|
|
11098
|
+
const t = {}, [u, d] = _9();
|
|
11099
|
+
t[u] = d, v.log(W.Trace, `(${A} transport) sending data. ${Of(n, r.logMessageContent)}.`);
|
|
11100
|
+
const P = L9(n) ? "arraybuffer" : "text", z = await f.post(e, {
|
|
11101
11101
|
content: n,
|
|
11102
11102
|
headers: { ...t, ...r.headers },
|
|
11103
11103
|
responseType: P,
|
|
11104
11104
|
timeout: r.timeout,
|
|
11105
11105
|
withCredentials: r.withCredentials
|
|
11106
11106
|
});
|
|
11107
|
-
v.log(W.Trace, `(${A} transport) request complete. Response status: ${
|
|
11107
|
+
v.log(W.Trace, `(${A} transport) request complete. Response status: ${z.statusCode}.`);
|
|
11108
11108
|
}
|
|
11109
11109
|
function UX(v) {
|
|
11110
11110
|
return v === void 0 ? new Uf(W.Information) : v === null ? mf.instance : v.log !== void 0 ? v : new Uf(v);
|
|
@@ -11217,10 +11217,10 @@ class hX extends e3 {
|
|
|
11217
11217
|
});
|
|
11218
11218
|
let n = null;
|
|
11219
11219
|
if (A.timeout) {
|
|
11220
|
-
const
|
|
11220
|
+
const d = A.timeout;
|
|
11221
11221
|
n = setTimeout(() => {
|
|
11222
11222
|
f.abort(), this._logger.log(W.Warning, "Timeout from HTTP request."), e = new W7();
|
|
11223
|
-
},
|
|
11223
|
+
}, d);
|
|
11224
11224
|
}
|
|
11225
11225
|
A.content === "" && (A.content = void 0), A.content && (A.headers = A.headers || {}, L9(A.content) ? A.headers["Content-Type"] = "application/octet-stream" : A.headers["Content-Type"] = "text/plain;charset=UTF-8");
|
|
11226
11226
|
let r;
|
|
@@ -11238,14 +11238,14 @@ class hX extends e3 {
|
|
|
11238
11238
|
redirect: "follow",
|
|
11239
11239
|
signal: f.signal
|
|
11240
11240
|
});
|
|
11241
|
-
} catch (
|
|
11242
|
-
throw e || (this._logger.log(W.Warning, `Error from HTTP request. ${
|
|
11241
|
+
} catch (d) {
|
|
11242
|
+
throw e || (this._logger.log(W.Warning, `Error from HTTP request. ${d}.`), d);
|
|
11243
11243
|
} finally {
|
|
11244
11244
|
n && clearTimeout(n), A.abortSignal && (A.abortSignal.onabort = null);
|
|
11245
11245
|
}
|
|
11246
11246
|
if (!r.ok) {
|
|
11247
|
-
const
|
|
11248
|
-
throw new D9(
|
|
11247
|
+
const d = await xe(r, "text");
|
|
11248
|
+
throw new D9(d || r.statusText, r.status);
|
|
11249
11249
|
}
|
|
11250
11250
|
const u = await xe(r, A.responseType);
|
|
11251
11251
|
return new Gn(r.status, r.statusText, u);
|
|
@@ -11337,16 +11337,16 @@ class $X {
|
|
|
11337
11337
|
parseHandshakeResponse(A) {
|
|
11338
11338
|
let f, e;
|
|
11339
11339
|
if (L9(A)) {
|
|
11340
|
-
const u = new Uint8Array(A),
|
|
11341
|
-
if (
|
|
11340
|
+
const u = new Uint8Array(A), d = u.indexOf(_A.RecordSeparatorCode);
|
|
11341
|
+
if (d === -1)
|
|
11342
11342
|
throw new Error("Message is incomplete.");
|
|
11343
|
-
const P =
|
|
11343
|
+
const P = d + 1;
|
|
11344
11344
|
f = String.fromCharCode.apply(null, Array.prototype.slice.call(u.slice(0, P))), e = u.byteLength > P ? u.slice(P).buffer : null;
|
|
11345
11345
|
} else {
|
|
11346
|
-
const u = A,
|
|
11347
|
-
if (
|
|
11346
|
+
const u = A, d = u.indexOf(_A.RecordSeparator);
|
|
11347
|
+
if (d === -1)
|
|
11348
11348
|
throw new Error("Message is incomplete.");
|
|
11349
|
-
const P =
|
|
11349
|
+
const P = d + 1;
|
|
11350
11350
|
f = u.substring(0, P), e = u.length > P ? u.substring(P) : null;
|
|
11351
11351
|
}
|
|
11352
11352
|
const n = _A.parse(f), r = JSON.parse(n[0]);
|
|
@@ -11493,7 +11493,7 @@ class o7 {
|
|
|
11493
11493
|
constructor(A, f, e, n, r, t, u) {
|
|
11494
11494
|
this._nextKeepAlive = 0, this._freezeEventListener = () => {
|
|
11495
11495
|
this._logger.log(W.Warning, "The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep");
|
|
11496
|
-
}, RA.isRequired(A, "connection"), RA.isRequired(f, "logger"), RA.isRequired(e, "protocol"), this.serverTimeoutInMilliseconds = r ?? e2, this.keepAliveIntervalInMilliseconds = t ?? n2, this._statefulReconnectBufferSize = u ?? r2, this._logger = f, this._protocol = e, this.connection = A, this._reconnectPolicy = n, this._handshakeProtocol = new $X(), this.connection.onreceive = (
|
|
11496
|
+
}, RA.isRequired(A, "connection"), RA.isRequired(f, "logger"), RA.isRequired(e, "protocol"), this.serverTimeoutInMilliseconds = r ?? e2, this.keepAliveIntervalInMilliseconds = t ?? n2, this._statefulReconnectBufferSize = u ?? r2, this._logger = f, this._protocol = e, this.connection = A, this._reconnectPolicy = n, this._handshakeProtocol = new $X(), this.connection.onreceive = (d) => this._processIncomingData(d), this.connection.onclose = (d) => this._connectionClosed(d), this._callbacks = {}, this._methods = {}, this._closedCallbacks = [], this._reconnectingCallbacks = [], this._reconnectedCallbacks = [], this._invocationId = 0, this._receivedHandshakeResponse = !1, this._connectionState = mA.Disconnected, this._connectionStarted = !1, this._cachedPingMessage = this._protocol.writeMessage({ type: rA.Ping });
|
|
11497
11497
|
}
|
|
11498
11498
|
/** Indicates the state of the {@link HubConnection} to the server. */
|
|
11499
11499
|
get state() {
|
|
@@ -11599,15 +11599,15 @@ class o7 {
|
|
|
11599
11599
|
let t;
|
|
11600
11600
|
const u = new A2();
|
|
11601
11601
|
return u.cancelCallback = () => {
|
|
11602
|
-
const
|
|
11603
|
-
return delete this._callbacks[r.invocationId], t.then(() => this._sendWithProtocol(
|
|
11604
|
-
}, this._callbacks[r.invocationId] = (
|
|
11602
|
+
const d = this._createCancelInvocation(r.invocationId);
|
|
11603
|
+
return delete this._callbacks[r.invocationId], t.then(() => this._sendWithProtocol(d));
|
|
11604
|
+
}, this._callbacks[r.invocationId] = (d, P) => {
|
|
11605
11605
|
if (P) {
|
|
11606
11606
|
u.error(P);
|
|
11607
11607
|
return;
|
|
11608
|
-
} else
|
|
11609
|
-
}, t = this._sendWithProtocol(r).catch((
|
|
11610
|
-
u.error(
|
|
11608
|
+
} else d && (d.type === rA.Completion ? d.error ? u.error(new Error(d.error)) : u.complete() : u.next(d.item));
|
|
11609
|
+
}, t = this._sendWithProtocol(r).catch((d) => {
|
|
11610
|
+
u.error(d), delete this._callbacks[r.invocationId];
|
|
11611
11611
|
}), this._launchStreams(e, t), u;
|
|
11612
11612
|
}
|
|
11613
11613
|
_sendMessage(A) {
|
|
@@ -11646,15 +11646,15 @@ class o7 {
|
|
|
11646
11646
|
*/
|
|
11647
11647
|
invoke(A, ...f) {
|
|
11648
11648
|
const [e, n] = this._replaceStreamingParams(f), r = this._createInvocation(A, f, !1, n);
|
|
11649
|
-
return new Promise((u,
|
|
11650
|
-
this._callbacks[r.invocationId] = (
|
|
11649
|
+
return new Promise((u, d) => {
|
|
11650
|
+
this._callbacks[r.invocationId] = (z, l) => {
|
|
11651
11651
|
if (l) {
|
|
11652
|
-
|
|
11652
|
+
d(l);
|
|
11653
11653
|
return;
|
|
11654
|
-
} else
|
|
11654
|
+
} else z && (z.type === rA.Completion ? z.error ? d(new Error(z.error)) : u(z.result) : d(new Error(`Unexpected message type: ${z.type}`)));
|
|
11655
11655
|
};
|
|
11656
|
-
const P = this._sendWithProtocol(r).catch((
|
|
11657
|
-
z
|
|
11656
|
+
const P = this._sendWithProtocol(r).catch((z) => {
|
|
11657
|
+
d(z), delete this._callbacks[r.invocationId];
|
|
11658
11658
|
});
|
|
11659
11659
|
this._launchStreams(e, P);
|
|
11660
11660
|
});
|
|
@@ -11786,15 +11786,15 @@ class o7 {
|
|
|
11786
11786
|
return;
|
|
11787
11787
|
}
|
|
11788
11788
|
const n = e.slice(), r = !!A.invocationId;
|
|
11789
|
-
let t, u,
|
|
11789
|
+
let t, u, d;
|
|
11790
11790
|
for (const P of n)
|
|
11791
11791
|
try {
|
|
11792
|
-
const
|
|
11793
|
-
t = await P.apply(this, A.arguments), r && t &&
|
|
11794
|
-
} catch (
|
|
11795
|
-
u =
|
|
11792
|
+
const z = t;
|
|
11793
|
+
t = await P.apply(this, A.arguments), r && t && z && (this._logger.log(W.Error, `Multiple results provided for '${f}'. Sending error to server.`), d = this._createCompletionMessage(A.invocationId, "Client provided multiple results.", null)), u = void 0;
|
|
11794
|
+
} catch (z) {
|
|
11795
|
+
u = z, this._logger.log(W.Error, `A callback for the method '${f}' threw error '${z}'.`);
|
|
11796
11796
|
}
|
|
11797
|
-
|
|
11797
|
+
d ? await this._sendWithProtocol(d) : r ? (u ? d = this._createCompletionMessage(A.invocationId, `${u}`, null) : t !== void 0 ? d = this._createCompletionMessage(A.invocationId, null, t) : (this._logger.log(W.Warning, `No result given for '${f}' method and invocation ID '${A.invocationId}'.`), d = this._createCompletionMessage(A.invocationId, "Client didn't provide a result.", null)), await this._sendWithProtocol(d)) : t && this._logger.log(W.Error, `Result given for '${f}' method but server is not expecting a result.`);
|
|
11798
11798
|
}
|
|
11799
11799
|
_connectionClosed(A) {
|
|
11800
11800
|
this._logger.log(W.Debug, `HubConnection.connectionClosed(${A}) called while in state ${this._connectionState}.`), this._stopDuringStartError = this._stopDuringStartError || A || new u9("The underlying connection was closed before the hub handshake could complete."), this._handshakeResolver && this._handshakeResolver(), this._cancelCallbacksWithError(A || new Error("Invocation canceled due to the underlying connection being closed.")), this._cleanupTimeout(), this._cleanupPingTimer(), this._connectionState === mA.Disconnecting ? this._completeClose(A) : this._connectionState === mA.Connected && this._reconnectPolicy ? this._reconnect(A) : this._connectionState === mA.Connected && this._completeClose(A);
|
|
@@ -12055,8 +12055,8 @@ class Ne {
|
|
|
12055
12055
|
f === MA.Binary && (t.responseType = "arraybuffer");
|
|
12056
12056
|
const u = `${A}&_=${Date.now()}`;
|
|
12057
12057
|
this._logger.log(W.Trace, `(LongPolling transport) polling: ${u}.`);
|
|
12058
|
-
const
|
|
12059
|
-
|
|
12058
|
+
const d = await this._httpClient.get(u, t);
|
|
12059
|
+
d.statusCode !== 200 ? (this._logger.log(W.Error, `(LongPolling transport) Unexpected response code: ${d.statusCode}.`), this._closeError = new D9(d.statusText || "", d.statusCode), this._running = !1) : this._running = !0, this._receiving = this._poll(this._url, t);
|
|
12060
12060
|
}
|
|
12061
12061
|
async _poll(A, f) {
|
|
12062
12062
|
try {
|
|
@@ -12120,18 +12120,18 @@ class d2 {
|
|
|
12120
12120
|
if (VA.isBrowser || VA.isWebWorker)
|
|
12121
12121
|
t = new this._options.EventSource(A, { withCredentials: this._options.withCredentials });
|
|
12122
12122
|
else {
|
|
12123
|
-
const u = this._httpClient.getCookieString(A),
|
|
12124
|
-
|
|
12125
|
-
const [P,
|
|
12126
|
-
|
|
12123
|
+
const u = this._httpClient.getCookieString(A), d = {};
|
|
12124
|
+
d.Cookie = u;
|
|
12125
|
+
const [P, z] = _9();
|
|
12126
|
+
d[P] = z, t = new this._options.EventSource(A, { withCredentials: this._options.withCredentials, headers: { ...d, ...this._options.headers } });
|
|
12127
12127
|
}
|
|
12128
12128
|
try {
|
|
12129
12129
|
t.onmessage = (u) => {
|
|
12130
12130
|
if (this.onreceive)
|
|
12131
12131
|
try {
|
|
12132
12132
|
this._logger.log(W.Trace, `(SSE transport) data received. ${Of(u.data, this._options.logMessageContent)}.`), this.onreceive(u.data);
|
|
12133
|
-
} catch (
|
|
12134
|
-
this._close(
|
|
12133
|
+
} catch (d) {
|
|
12134
|
+
this._close(d);
|
|
12135
12135
|
return;
|
|
12136
12136
|
}
|
|
12137
12137
|
}, t.onerror = (u) => {
|
|
@@ -12166,33 +12166,33 @@ class z2 {
|
|
|
12166
12166
|
A = A.replace(/^http/, "ws");
|
|
12167
12167
|
let t;
|
|
12168
12168
|
const u = this._httpClient.getCookieString(A);
|
|
12169
|
-
let
|
|
12169
|
+
let d = !1;
|
|
12170
12170
|
if (VA.isNode || VA.isReactNative) {
|
|
12171
|
-
const P = {}, [
|
|
12172
|
-
P[
|
|
12171
|
+
const P = {}, [z, l] = _9();
|
|
12172
|
+
P[z] = l, e && (P[j9.Authorization] = `Bearer ${e}`), u && (P[j9.Cookie] = u), t = new this._webSocketConstructor(A, void 0, {
|
|
12173
12173
|
headers: { ...P, ...this._headers }
|
|
12174
12174
|
});
|
|
12175
12175
|
} else
|
|
12176
12176
|
e && (A += (A.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(e)}`);
|
|
12177
12177
|
t || (t = new this._webSocketConstructor(A)), f === MA.Binary && (t.binaryType = "arraybuffer"), t.onopen = (P) => {
|
|
12178
|
-
this._logger.log(W.Information, `WebSocket connected to ${A}.`), this._webSocket = t,
|
|
12178
|
+
this._logger.log(W.Information, `WebSocket connected to ${A}.`), this._webSocket = t, d = !0, n();
|
|
12179
12179
|
}, t.onerror = (P) => {
|
|
12180
|
-
let
|
|
12181
|
-
typeof ErrorEvent < "u" && P instanceof ErrorEvent ?
|
|
12180
|
+
let z = null;
|
|
12181
|
+
typeof ErrorEvent < "u" && P instanceof ErrorEvent ? z = P.error : z = "There was an error with the transport", this._logger.log(W.Information, `(WebSockets transport) ${z}.`);
|
|
12182
12182
|
}, t.onmessage = (P) => {
|
|
12183
12183
|
if (this._logger.log(W.Trace, `(WebSockets transport) data received. ${Of(P.data, this._logMessageContent)}.`), this.onreceive)
|
|
12184
12184
|
try {
|
|
12185
12185
|
this.onreceive(P.data);
|
|
12186
|
-
} catch (
|
|
12187
|
-
this._close(
|
|
12186
|
+
} catch (z) {
|
|
12187
|
+
this._close(z);
|
|
12188
12188
|
return;
|
|
12189
12189
|
}
|
|
12190
12190
|
}, t.onclose = (P) => {
|
|
12191
|
-
if (
|
|
12191
|
+
if (d)
|
|
12192
12192
|
this._close(P);
|
|
12193
12193
|
else {
|
|
12194
|
-
let
|
|
12195
|
-
typeof ErrorEvent < "u" && P instanceof ErrorEvent ?
|
|
12194
|
+
let z = null;
|
|
12195
|
+
typeof ErrorEvent < "u" && P instanceof ErrorEvent ? z = P.error : z = "WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.", r(new Error(z));
|
|
12196
12196
|
}
|
|
12197
12197
|
};
|
|
12198
12198
|
});
|
|
@@ -12333,25 +12333,25 @@ class X2 {
|
|
|
12333
12333
|
return;
|
|
12334
12334
|
}
|
|
12335
12335
|
const t = [], u = e.availableTransports || [];
|
|
12336
|
-
let
|
|
12336
|
+
let d = e;
|
|
12337
12337
|
for (const P of u) {
|
|
12338
|
-
const
|
|
12339
|
-
if (
|
|
12340
|
-
t.push(`${P.transport} failed:`), t.push(
|
|
12341
|
-
else if (this._isITransport(
|
|
12342
|
-
if (this.transport =
|
|
12338
|
+
const z = this._resolveTransportOrError(P, f, n, (d == null ? void 0 : d.useStatefulReconnect) === !0);
|
|
12339
|
+
if (z instanceof Error)
|
|
12340
|
+
t.push(`${P.transport} failed:`), t.push(z);
|
|
12341
|
+
else if (this._isITransport(z)) {
|
|
12342
|
+
if (this.transport = z, !d) {
|
|
12343
12343
|
try {
|
|
12344
|
-
|
|
12344
|
+
d = await this._getNegotiationResponse(A);
|
|
12345
12345
|
} catch (l) {
|
|
12346
12346
|
return Promise.reject(l);
|
|
12347
12347
|
}
|
|
12348
|
-
r = this._createConnectUrl(A,
|
|
12348
|
+
r = this._createConnectUrl(A, d.connectionToken);
|
|
12349
12349
|
}
|
|
12350
12350
|
try {
|
|
12351
|
-
await this._startTransport(r, n), this.connectionId =
|
|
12351
|
+
await this._startTransport(r, n), this.connectionId = d.connectionId;
|
|
12352
12352
|
return;
|
|
12353
12353
|
} catch (l) {
|
|
12354
|
-
if (this._logger.log(W.Error, `Failed to start the transport '${P.transport}': ${l}`),
|
|
12354
|
+
if (this._logger.log(W.Error, `Failed to start the transport '${P.transport}': ${l}`), d = void 0, t.push(new kX(`${P.transport} failed: ${l}`, xA[P.transport])), this._connectionState !== "Connecting") {
|
|
12355
12355
|
const X = "Failed to select transport before stop() was called.";
|
|
12356
12356
|
return this._logger.log(W.Debug, X), Promise.reject(new u9(X));
|
|
12357
12357
|
}
|
|
@@ -12776,7 +12776,7 @@ const R2 = kA(`/api/tool/event-bus/${n3}/`), C3 = R2.post("/publish"), N2 = Qf.g
|
|
|
12776
12776
|
}
|
|
12777
12777
|
};
|
|
12778
12778
|
let u = D(!0);
|
|
12779
|
-
const
|
|
12779
|
+
const d = (i) => {
|
|
12780
12780
|
setTimeout(async () => {
|
|
12781
12781
|
var q, a;
|
|
12782
12782
|
if (u.value) {
|
|
@@ -12802,17 +12802,17 @@ const R2 = kA(`/api/tool/event-bus/${n3}/`), C3 = R2.post("/publish"), N2 = Qf.g
|
|
|
12802
12802
|
l2().on(`${i}:${a}`, async function(H) {
|
|
12803
12803
|
let O = r(H);
|
|
12804
12804
|
if (O)
|
|
12805
|
-
O.uniqueId && O.actionKey == "switch-menu" &&
|
|
12805
|
+
O.uniqueId && O.actionKey == "switch-menu" && d(O);
|
|
12806
12806
|
else if (H.includes("openAppMenu=")) {
|
|
12807
12807
|
const Z = H.split("="), R = JSON.parse(Z[1]);
|
|
12808
12808
|
t(R);
|
|
12809
12809
|
} else H.includes("iocIsRun") && (u.value = !1);
|
|
12810
12810
|
});
|
|
12811
|
-
},
|
|
12812
|
-
|
|
12811
|
+
}, z = D(""), [l, X] = await Te().run();
|
|
12812
|
+
z.value = X, P(z.value);
|
|
12813
12813
|
const c = async () => {
|
|
12814
12814
|
const [i, q] = await Te().run();
|
|
12815
|
-
q !==
|
|
12815
|
+
q !== z.value && (z.value = q, P(z.value));
|
|
12816
12816
|
};
|
|
12817
12817
|
n = setInterval(() => {
|
|
12818
12818
|
c();
|
|
@@ -12836,7 +12836,7 @@ const R2 = kA(`/api/tool/event-bus/${n3}/`), C3 = R2.post("/publish"), N2 = Qf.g
|
|
|
12836
12836
|
},
|
|
12837
12837
|
emits: ["emitFn"],
|
|
12838
12838
|
setup(v, { expose: A, emit: f }) {
|
|
12839
|
-
const e = v, n = f, r = D(!1), t = D(null), u = D(0),
|
|
12839
|
+
const e = v, n = f, r = D(!1), t = D(null), u = D(0), d = D(!1);
|
|
12840
12840
|
D("");
|
|
12841
12841
|
const P = D({
|
|
12842
12842
|
processTypeId: "confirm",
|
|
@@ -12864,7 +12864,7 @@ const R2 = kA(`/api/tool/event-bus/${n3}/`), C3 = R2.post("/publish"), N2 = Qf.g
|
|
|
12864
12864
|
// 处置时限
|
|
12865
12865
|
interval: 2
|
|
12866
12866
|
// 时限刻度 默认选择“时”
|
|
12867
|
-
}),
|
|
12867
|
+
}), z = D({
|
|
12868
12868
|
processTypeId: "",
|
|
12869
12869
|
// 处理类型 必填
|
|
12870
12870
|
reason: "",
|
|
@@ -12903,7 +12903,7 @@ const R2 = kA(`/api/tool/event-bus/${n3}/`), C3 = R2.post("/publish"), N2 = Qf.g
|
|
|
12903
12903
|
if (F) return {};
|
|
12904
12904
|
N.value = I.data.filter((B) => B.status), N.value.length > 0 && (P.value.workOrderRules = N.value[0].id);
|
|
12905
12905
|
};
|
|
12906
|
-
iA(
|
|
12906
|
+
iA(d, (F) => {
|
|
12907
12907
|
F || (G(), S());
|
|
12908
12908
|
}), iA(
|
|
12909
12909
|
Z,
|
|
@@ -12922,19 +12922,19 @@ const R2 = kA(`/api/tool/event-bus/${n3}/`), C3 = R2.post("/publish"), N2 = Qf.g
|
|
|
12922
12922
|
var I;
|
|
12923
12923
|
return (I = t.value) == null ? void 0 : I.parentNode.parentNode;
|
|
12924
12924
|
}, M = (F) => {
|
|
12925
|
-
|
|
12925
|
+
z.value.reportTheme = "";
|
|
12926
12926
|
}, Q = (F, I) => {
|
|
12927
12927
|
I.length > 0 && (i.value = I[0].path), P.value.reportPosition = F, H.value = "";
|
|
12928
12928
|
}, $ = (F) => {
|
|
12929
|
-
F && (
|
|
12929
|
+
F && (z.value.reportPosition = "", i.value = ""), F ? (P.value.reportPosition = null, i.value = "", q.value = vA("告警对象位置").value) : (P.value.reportPosition = null, i.value = "", q.value = vA("请选择").value);
|
|
12930
12930
|
}, K = (F) => {
|
|
12931
|
-
F && (
|
|
12931
|
+
F && (z.value.reportTheme = ""), F ? (P.value.reportTheme = "", a.value = vA("告警对象").value) : (P.value.reportTheme = "", a.value = vA("请输入").value);
|
|
12932
12932
|
}, G = () => {
|
|
12933
|
-
|
|
12933
|
+
z.value.processTypeId = "", z.value.reason = "", z.value.treatmentPlan = "", z.value.reportPosition = "", z.value.reportTheme = "", z.value.workOrderRules = "", z.value.eventTypeId = "", z.value.eventLevelId = "", z.value.timeLimit = "";
|
|
12934
12934
|
}, S = () => {
|
|
12935
12935
|
P.value.processTypeId = "confirm", P.value.reason = "", P.value.treatmentPlan = "", P.value.remarks = "", P.value.reportPosition = "", P.value.reportTheme = "", P.value.workOrderRules = null, Z.value = !0, m.value = !0, T.value = !0, P.value.reportTheme = vA("告警对象").value, i.value = "", q.value = vA("告警对象位置").value, a.value = vA("请输入").value, P.value.eventTypeId = "", P.value.eventLevelId = null, P.value.timeLimit = "", P.value.interval = 1, X.value = [], c.value = [];
|
|
12936
12936
|
}, C = (F) => {
|
|
12937
|
-
F == "eventTypeId" && (P.value.eventLevelId = null, o()), F == "eventLevelId" && E(), F == "interval" && (
|
|
12937
|
+
F == "eventTypeId" && (P.value.eventLevelId = null, o()), F == "eventLevelId" && E(), F == "interval" && (z.value.timeLimit = "", P.value.interval == 3 ? (l.value = !0, P.value.timeLimit = "") : l.value = !1);
|
|
12938
12938
|
}, L = async () => {
|
|
12939
12939
|
const [F, I] = await M2().run();
|
|
12940
12940
|
if (F) return {};
|
|
@@ -12976,12 +12976,12 @@ const R2 = kA(`/api/tool/event-bus/${n3}/`), C3 = R2.post("/publish"), N2 = Qf.g
|
|
|
12976
12976
|
}, aA = () => {
|
|
12977
12977
|
let F = !0;
|
|
12978
12978
|
if (P.value.processTypeId == "dealwith")
|
|
12979
|
-
P.value.reason.trim() || (F = !1,
|
|
12979
|
+
P.value.reason.trim() || (F = !1, z.value.reason = vA("必填,最多50个字符/汉字").value), P.value.treatmentPlan.trim() || (F = !1, z.value.treatmentPlan = vA("必填,最多50个字符/汉字").value);
|
|
12980
12980
|
else if (P.value.processTypeId == "createorder")
|
|
12981
|
-
Z.value ?
|
|
12981
|
+
Z.value ? z.value.reportPosition = "" : !P.value.reportPosition && !P.value.customPath ? (F = !1, z.value.reportPosition = vA("必填").value) : z.value.reportPosition = "", m.value || P.value.reportTheme ? z.value.reportTheme = "" : (F = !1, z.value.reportTheme = vA("必填,最多20个汉字/字符").value), P.value.workOrderRules ? z.value.workOrderRules = "" : (F = !1, z.value.workOrderRules = vA("必填").value);
|
|
12982
12982
|
else if (P.value.processTypeId == "createcontingency") {
|
|
12983
12983
|
const I = /^[1-9][0-9]{0,2}$/;
|
|
12984
|
-
P.value.eventTypeId || (F = !1,
|
|
12984
|
+
P.value.eventTypeId || (F = !1, z.value.eventTypeId = vA("必选").value), P.value.eventLevelId || (F = !1, z.value.eventLevelId = vA("必选").value), P.value.interval != 3 && !I.test(P.value.timeLimit) && (F = !1, z.value.timeLimit = vA("必填,请输入1~999之间的正整数").value);
|
|
12985
12985
|
}
|
|
12986
12986
|
return F;
|
|
12987
12987
|
}, DA = () => {
|
|
@@ -13010,17 +13010,17 @@ const R2 = kA(`/api/tool/event-bus/${n3}/`), C3 = R2.post("/publish"), N2 = Qf.g
|
|
|
13010
13010
|
}
|
|
13011
13011
|
n("emitFn", "successHandle", P.value.processTypeId), r.value = !1, x9();
|
|
13012
13012
|
}, nA = () => {
|
|
13013
|
-
|
|
13013
|
+
d.value = !0, cA();
|
|
13014
13014
|
}, x9 = () => {
|
|
13015
|
-
|
|
13015
|
+
d.value = !1;
|
|
13016
13016
|
};
|
|
13017
13017
|
return A({
|
|
13018
13018
|
open: nA,
|
|
13019
13019
|
close: x9
|
|
13020
13020
|
}), (F, I) => (Y(), dA("div", J2, [
|
|
13021
13021
|
g(x(K9), {
|
|
13022
|
-
modelValue:
|
|
13023
|
-
"onUpdate:modelValue": I[31] || (I[31] = (B) =>
|
|
13022
|
+
modelValue: d.value,
|
|
13023
|
+
"onUpdate:modelValue": I[31] || (I[31] = (B) => d.value = B),
|
|
13024
13024
|
type: "basic",
|
|
13025
13025
|
size: "small",
|
|
13026
13026
|
height: 500,
|
|
@@ -13125,11 +13125,11 @@ const R2 = kA(`/api/tool/event-bus/${n3}/`), C3 = R2.post("/publish"), N2 = Qf.g
|
|
|
13125
13125
|
type: "input",
|
|
13126
13126
|
maxlength: "50",
|
|
13127
13127
|
col: 1,
|
|
13128
|
-
onFocus: I[1] || (I[1] = (B) =>
|
|
13128
|
+
onFocus: I[1] || (I[1] = (B) => z.value.reason = ""),
|
|
13129
13129
|
modelValue: P.value.reason,
|
|
13130
13130
|
"onUpdate:modelValue": I[2] || (I[2] = (B) => P.value.reason = B),
|
|
13131
|
-
error:
|
|
13132
|
-
"onUpdate:error": I[3] || (I[3] = (B) =>
|
|
13131
|
+
error: z.value.reason,
|
|
13132
|
+
"onUpdate:error": I[3] || (I[3] = (B) => z.value.reason = B),
|
|
13133
13133
|
marginBottom: "30px",
|
|
13134
13134
|
marginRight: "0"
|
|
13135
13135
|
}, null, 8, ["label", "required", "modelValue", "error"])) : AA("v-if", !0),
|
|
@@ -13140,11 +13140,11 @@ const R2 = kA(`/api/tool/event-bus/${n3}/`), C3 = R2.post("/publish"), N2 = Qf.g
|
|
|
13140
13140
|
type: "input",
|
|
13141
13141
|
maxlength: "50",
|
|
13142
13142
|
col: 1,
|
|
13143
|
-
onFocus: I[4] || (I[4] = (B) =>
|
|
13143
|
+
onFocus: I[4] || (I[4] = (B) => z.value.treatmentPlan = ""),
|
|
13144
13144
|
modelValue: P.value.treatmentPlan,
|
|
13145
13145
|
"onUpdate:modelValue": I[5] || (I[5] = (B) => P.value.treatmentPlan = B),
|
|
13146
|
-
error:
|
|
13147
|
-
"onUpdate:error": I[6] || (I[6] = (B) =>
|
|
13146
|
+
error: z.value.treatmentPlan,
|
|
13147
|
+
"onUpdate:error": I[6] || (I[6] = (B) => z.value.treatmentPlan = B),
|
|
13148
13148
|
marginBottom: "30px",
|
|
13149
13149
|
marginRight: "0"
|
|
13150
13150
|
}, null, 8, ["label", "required", "modelValue", "error"])) : AA("v-if", !0),
|
|
@@ -13166,8 +13166,8 @@ const R2 = kA(`/api/tool/event-bus/${n3}/`), C3 = R2.post("/publish"), N2 = Qf.g
|
|
|
13166
13166
|
label: x(vA)("报事位置").value,
|
|
13167
13167
|
required: "",
|
|
13168
13168
|
type: "custom",
|
|
13169
|
-
error:
|
|
13170
|
-
"onUpdate:error": I[13] || (I[13] = (B) =>
|
|
13169
|
+
error: z.value.reportPosition,
|
|
13170
|
+
"onUpdate:error": I[13] || (I[13] = (B) => z.value.reportPosition = B),
|
|
13171
13171
|
marginBottom: "20px",
|
|
13172
13172
|
marginRight: "0"
|
|
13173
13173
|
}, {
|
|
@@ -13229,8 +13229,8 @@ const R2 = kA(`/api/tool/event-bus/${n3}/`), C3 = R2.post("/publish"), N2 = Qf.g
|
|
|
13229
13229
|
label: x(vA)("报事主题").value,
|
|
13230
13230
|
required: "",
|
|
13231
13231
|
type: "custom",
|
|
13232
|
-
error:
|
|
13233
|
-
"onUpdate:error": I[16] || (I[16] = (B) =>
|
|
13232
|
+
error: z.value.reportTheme,
|
|
13233
|
+
"onUpdate:error": I[16] || (I[16] = (B) => z.value.reportTheme = B),
|
|
13234
13234
|
marginBottom: "20px",
|
|
13235
13235
|
marginRight: "0"
|
|
13236
13236
|
}, {
|
|
@@ -13273,8 +13273,8 @@ const R2 = kA(`/api/tool/event-bus/${n3}/`), C3 = R2.post("/publish"), N2 = Qf.g
|
|
|
13273
13273
|
type: "select",
|
|
13274
13274
|
modelValue: P.value.workOrderRules,
|
|
13275
13275
|
"onUpdate:modelValue": I[17] || (I[17] = (B) => P.value.workOrderRules = B),
|
|
13276
|
-
error:
|
|
13277
|
-
"onUpdate:error": I[18] || (I[18] = (B) =>
|
|
13276
|
+
error: z.value.workOrderRules,
|
|
13277
|
+
"onUpdate:error": I[18] || (I[18] = (B) => z.value.workOrderRules = B),
|
|
13278
13278
|
options: N.value,
|
|
13279
13279
|
col: 1,
|
|
13280
13280
|
optionsLabelKey: "name",
|
|
@@ -13291,8 +13291,8 @@ const R2 = kA(`/api/tool/event-bus/${n3}/`), C3 = R2.post("/publish"), N2 = Qf.g
|
|
|
13291
13291
|
type: "select",
|
|
13292
13292
|
modelValue: P.value.eventTypeId,
|
|
13293
13293
|
"onUpdate:modelValue": I[19] || (I[19] = (B) => P.value.eventTypeId = B),
|
|
13294
|
-
error:
|
|
13295
|
-
"onUpdate:error": I[20] || (I[20] = (B) =>
|
|
13294
|
+
error: z.value.eventTypeId,
|
|
13295
|
+
"onUpdate:error": I[20] || (I[20] = (B) => z.value.eventTypeId = B),
|
|
13296
13296
|
options: X.value,
|
|
13297
13297
|
col: 1,
|
|
13298
13298
|
optionsLabelKey: "typeName",
|
|
@@ -13309,8 +13309,8 @@ const R2 = kA(`/api/tool/event-bus/${n3}/`), C3 = R2.post("/publish"), N2 = Qf.g
|
|
|
13309
13309
|
type: "select",
|
|
13310
13310
|
modelValue: P.value.eventLevelId,
|
|
13311
13311
|
"onUpdate:modelValue": I[22] || (I[22] = (B) => P.value.eventLevelId = B),
|
|
13312
|
-
error:
|
|
13313
|
-
"onUpdate:error": I[23] || (I[23] = (B) =>
|
|
13312
|
+
error: z.value.eventLevelId,
|
|
13313
|
+
"onUpdate:error": I[23] || (I[23] = (B) => z.value.eventLevelId = B),
|
|
13314
13314
|
options: c.value,
|
|
13315
13315
|
col: 1,
|
|
13316
13316
|
optionsLabelKey: "name",
|
|
@@ -13329,8 +13329,8 @@ const R2 = kA(`/api/tool/event-bus/${n3}/`), C3 = R2.post("/publish"), N2 = Qf.g
|
|
|
13329
13329
|
col: 1,
|
|
13330
13330
|
modelValue: P.value.timeLimit,
|
|
13331
13331
|
"onUpdate:modelValue": I[27] || (I[27] = (B) => P.value.timeLimit = B),
|
|
13332
|
-
error:
|
|
13333
|
-
"onUpdate:error": I[28] || (I[28] = (B) =>
|
|
13332
|
+
error: z.value.timeLimit,
|
|
13333
|
+
"onUpdate:error": I[28] || (I[28] = (B) => z.value.timeLimit = B),
|
|
13334
13334
|
disabled: P.value.interval == 3,
|
|
13335
13335
|
marginBottom: "30px",
|
|
13336
13336
|
marginRight: "0"
|
|
@@ -13542,7 +13542,7 @@ let cb = (v = 21) => {
|
|
|
13542
13542
|
return A;
|
|
13543
13543
|
};
|
|
13544
13544
|
const ab = () => {
|
|
13545
|
-
const v = D(null), A = D(0), f = D(null), e = D(null), n = D([]), r = D([]), t = D(!1), u = D(!1),
|
|
13545
|
+
const v = D(null), A = D(0), f = D(null), e = D(null), n = D([]), r = D([]), t = D(!1), u = D(!1), d = D(!1), P = D({
|
|
13546
13546
|
playId: "",
|
|
13547
13547
|
// 播放的告警的recordId
|
|
13548
13548
|
playPath: "",
|
|
@@ -13560,9 +13560,9 @@ const ab = () => {
|
|
|
13560
13560
|
});
|
|
13561
13561
|
TA.addEventListenerFromMicroApp("alarm:change-alarmconfig", (V) => {
|
|
13562
13562
|
const { isRealTimeAlarm: T, audioPlay: m } = V.data;
|
|
13563
|
-
T != null && (u.value = T), m != null && (
|
|
13563
|
+
T != null && (u.value = T), m != null && (d.value = m, d.value || H());
|
|
13564
13564
|
});
|
|
13565
|
-
const
|
|
13565
|
+
const z = (V) => {
|
|
13566
13566
|
var m;
|
|
13567
13567
|
const T = [];
|
|
13568
13568
|
T.push({ alarmId: V.recordId }), n.value = T, (m = f.value) == null || m.open();
|
|
@@ -13589,7 +13589,7 @@ const ab = () => {
|
|
|
13589
13589
|
msgItem: V,
|
|
13590
13590
|
alarmhandle: t.value,
|
|
13591
13591
|
onHanderDetail: X,
|
|
13592
|
-
onHanderFn:
|
|
13592
|
+
onHanderFn: z
|
|
13593
13593
|
}),
|
|
13594
13594
|
duration: 5,
|
|
13595
13595
|
onClick: () => {
|
|
@@ -13607,7 +13607,7 @@ const ab = () => {
|
|
|
13607
13607
|
}), r.value.includes(T) || r.value.push(T), a(V);
|
|
13608
13608
|
}, a = (V) => {
|
|
13609
13609
|
if (V) {
|
|
13610
|
-
if (!
|
|
13610
|
+
if (!d.value) {
|
|
13611
13611
|
H();
|
|
13612
13612
|
return;
|
|
13613
13613
|
}
|
|
@@ -13630,7 +13630,7 @@ const ab = () => {
|
|
|
13630
13630
|
};
|
|
13631
13631
|
}, Z = async () => {
|
|
13632
13632
|
const [V, T] = await o2().run();
|
|
13633
|
-
V || (
|
|
13633
|
+
V || (d.value = T.isEnable);
|
|
13634
13634
|
};
|
|
13635
13635
|
return {
|
|
13636
13636
|
alarmSocket: v,
|
|
@@ -13706,19 +13706,19 @@ const ab = () => {
|
|
|
13706
13706
|
},
|
|
13707
13707
|
{ immediate: !0 }
|
|
13708
13708
|
);
|
|
13709
|
-
const { initNextTick:
|
|
13710
|
-
Y8(l,
|
|
13709
|
+
const { initNextTick: d } = I8(), { loading: P, pageKey: z, innerPage: l, commandList: X, initNextTick: c } = k8(d);
|
|
13710
|
+
Y8(l, d, c), G8(), B8(), F8();
|
|
13711
13711
|
const { $changePwd: b, $personSetDialog: p } = S8(), { $aiPanel: i, toApp: q, getAIPanelStatus: a } = vX(), { changeEnterprisesVisible: s, userId: H, tenantId: O, changeEnterprise: Z } = Jn();
|
|
13712
13712
|
J8();
|
|
13713
13713
|
const { fontColor: R, backgroudColor: V, borderColor: T } = U8();
|
|
13714
13714
|
return eX(), nX(X), rX(), tX(), EX(), T2(), (m, N) => (Y(), dA("div", pb, [
|
|
13715
13715
|
AA(` <button @click="test(0)">test</button>\r
|
|
13716
13716
|
<button style="margin-left: 5px" @click="test(1)">test2</button> `),
|
|
13717
|
-
g(x(yt), { platformInitNextTick: x(
|
|
13717
|
+
g(x(yt), { platformInitNextTick: x(d) }, {
|
|
13718
13718
|
default: U(() => [
|
|
13719
13719
|
g(Tt, {
|
|
13720
13720
|
loading: x(P),
|
|
13721
|
-
pageKey: x(
|
|
13721
|
+
pageKey: x(z) + x(Rf),
|
|
13722
13722
|
showLayout: n.value,
|
|
13723
13723
|
excludeRoutes: r.value,
|
|
13724
13724
|
routeKeepAliveVisible: t.value,
|
|
@@ -13771,7 +13771,7 @@ const ab = () => {
|
|
|
13771
13771
|
),
|
|
13772
13772
|
AA(" AI助手 "),
|
|
13773
13773
|
g(x(yr), {
|
|
13774
|
-
platformInitNextTick: x(
|
|
13774
|
+
platformInitNextTick: x(d),
|
|
13775
13775
|
onToApp: x(q),
|
|
13776
13776
|
ref_key: "$aiPanel",
|
|
13777
13777
|
ref: i,
|
|
@@ -13951,11 +13951,11 @@ D("@das-fed/web");
|
|
|
13951
13951
|
const mb = [
|
|
13952
13952
|
{
|
|
13953
13953
|
path: oA,
|
|
13954
|
-
component: () => import("./index-
|
|
13954
|
+
component: () => import("./index-BkszOLEl.js")
|
|
13955
13955
|
},
|
|
13956
13956
|
{
|
|
13957
13957
|
path: Ce,
|
|
13958
|
-
component: () => import("./index-
|
|
13958
|
+
component: () => import("./index-Dx4Hbw_o.js")
|
|
13959
13959
|
}
|
|
13960
13960
|
], Gc = {
|
|
13961
13961
|
routes: mb,
|