@das-fed/web 6.4.0-dev.32 → 6.4.0-dev.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{index-puk4QfAT.js → index-B3Zo7C9d.js} +259 -259
- package/index-B3Zo7C9d.js.gz +0 -0
- package/{packages/main-app-framework/index-B9FQmM02.js → index-DJ8zDx6p.js} +1 -1
- package/index-DJ8zDx6p.js.gz +0 -0
- package/{index-DPpRTnrf.js → index-DKcYM4y1.js} +1 -1
- package/{index-2T_H15dv.js → index-XC7gVyAV.js} +1 -1
- package/index-XC7gVyAV.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/layout/index.js +2 -6
- package/packages/layout/index.js.gz +0 -0
- package/packages/main-app-framework/{index-A69EQVG4.js → index-BGqxNwVK.js} +243 -239
- package/packages/main-app-framework/index-BGqxNwVK.js.gz +0 -0
- package/{index-CjVC66ff.js → packages/main-app-framework/index-BYJ_iw6e.js} +1 -1
- package/packages/main-app-framework/index-BYJ_iw6e.js.gz +0 -0
- package/packages/main-app-framework/{index-j5ACjIDv.js → index-C2gtyFHH.js} +1 -1
- package/packages/main-app-framework/index-C2gtyFHH.js.gz +0 -0
- package/packages/main-app-framework/{index-DLw2CpC0.js → index-FJjkdoP_.js} +1 -1
- package/packages/main-app-framework/index.js +1 -1
- package/packages/micro-frontend/index.js +2 -6
- package/packages/micro-frontend/index.js.gz +0 -0
- package/index-2T_H15dv.js.gz +0 -0
- package/index-CjVC66ff.js.gz +0 -0
- package/index-puk4QfAT.js.gz +0 -0
- package/packages/main-app-framework/index-A69EQVG4.js.gz +0 -0
- package/packages/main-app-framework/index-B9FQmM02.js.gz +0 -0
- package/packages/main-app-framework/index-j5ACjIDv.js.gz +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as pe, computed as Ce, openBlock as N, createBlock as V, unref as v, mergeProps as Ir, withCtx as M, renderSlot as $e, createVNode as R, getCurrentScope as Er, onScopeDispose as Sr, getCurrentInstance as Tr, onMounted as Qe, nextTick as Fe, ref as E, watch as re, reactive as yo, createElementVNode as x, createTextVNode as ue, createElementBlock as de, Fragment as We, renderList as _o, withDirectives as kr, toDisplayString as Z, createCommentVNode as U, h as fe, render as mt, onBeforeUnmount as It, useCssVars as Pr, normalizeClass as Br, withModifiers as te, toRefs as Or, normalizeStyle as Sn, isRef as Dr } from "vue";
|
|
2
2
|
import { i18n as Q } from "@das-fed/web/packages/i18n/index";
|
|
3
3
|
import { DasWebLayout as $r, DasWebNav as Lr, DasWebMenu as xr, DasWebTabs as Mr, layout as D } from "@das-fed/web/packages/layout/index";
|
|
4
4
|
import { DasChangePwdRef as Rr, DasChangePwd as Qr } from "@das-fed/ui/packages/business-components/change-pwd/index";
|
|
5
5
|
import { DasChangeEnterprises as jr } from "@das-fed/ui/packages/business-components/change-enterprises/index";
|
|
6
6
|
import { pureImageSrc as Xt } from "@das-fed/utils/pure-image-src";
|
|
7
|
-
import { DasNotification as
|
|
7
|
+
import { DasNotification as vt } from "@das-fed/ui/packages/components/notification/index";
|
|
8
8
|
import { flatTree as ye, filterTreeArray as Hr, isEmpty as Nr, treeFind as Tn, updateFavIcon as Ur, dateFormat as Fr, runPromiseByQueue as Jr, objEqual as Nt, setShowWatermark as Ut, setShowLayout as Ft, getUrlParams as Wr, withToken as zr } from "@das-fed/utils/common-tools";
|
|
9
|
-
import { getSubApps as J, getTabInfo as
|
|
9
|
+
import { getSubApps as J, getTabInfo as ce, getPersonalInfo as Et, getTenantInfo as Zt, getProjectInfo as Pe, getToken as Yt, getUserInfo as wo, getMenus as yt } from "@das-fed/utils/common-info";
|
|
10
10
|
import { setProcessEngineProject as bo, setProcessEngineToken as Co } from "@das-fed/utils/process-engine-info";
|
|
11
11
|
import { oauthServer as Io, justauth as en, enterpriseright as tn, iotModules as Vr, portal as Be, systemConfiguration as nn } from "@das-fed/utils/api-services/modules";
|
|
12
12
|
import { createService as je } from "@das-fed/utils/create-api-service";
|
|
@@ -26,9 +26,9 @@ import { setThemeRule as ts } from "@das-fed/web/packages/theme/index";
|
|
|
26
26
|
import { devicePanelShow as So, closeDevicePanel as ns, alarmDevicePanelShow as os, closeAlarmPanel as rs } from "@das-fed/ui/packages/business-components/device-panel/index";
|
|
27
27
|
import { DasIcon as De, DasAutoRegisterIcon as To } from "@das-fed/ui/packages/components/icon/index";
|
|
28
28
|
import { socketService as an } from "@das-fed/utils/webSocket-service";
|
|
29
|
-
import { userInfoNextTick as ss, tokenNextTick as
|
|
30
|
-
import { mainAppFramework as
|
|
31
|
-
import { DasTooltip as
|
|
29
|
+
import { userInfoNextTick as ss, tokenNextTick as St } from "@das-fed/utils/nextTiken";
|
|
30
|
+
import { mainAppFramework as _t } from "@das-fed/web/packages/main-app-framework/index";
|
|
31
|
+
import { DasTooltip as ae } from "@das-fed/ui/packages/components/tooltip/index";
|
|
32
32
|
import { DasLivePlayer as is } from "@das-fed/ui/packages/components/live-player/index";
|
|
33
33
|
import { DasSpin as ko } from "@das-fed/ui/packages/components/spin/index";
|
|
34
34
|
import { DasWatermark as as } from "@das-fed/ui/packages/components/watermark/index";
|
|
@@ -48,7 +48,7 @@ const nt = "/", Ie = "/application", Po = [
|
|
|
48
48
|
{ value: "1", label: Q("个人中心").value },
|
|
49
49
|
{ value: "2", label: Q("修改密码").value },
|
|
50
50
|
{ value: "3", label: Q("退出登录").value }
|
|
51
|
-
], fs = /* @__PURE__ */
|
|
51
|
+
], fs = /* @__PURE__ */ pe({
|
|
52
52
|
__name: "base-layout",
|
|
53
53
|
props: {
|
|
54
54
|
transitionConfig: { default: () => ({}) },
|
|
@@ -124,7 +124,7 @@ function _s(...n) {
|
|
|
124
124
|
Array.isArray(t) || (t = [t]), Array.isArray(o) || (o = [o]);
|
|
125
125
|
const s = [], a = () => {
|
|
126
126
|
s.forEach((u) => u()), s.length = 0;
|
|
127
|
-
}, l = (u, A, p, h) => (u.addEventListener(A, p, h), () => u.removeEventListener(A, p, h)), c =
|
|
127
|
+
}, l = (u, A, p, h) => (u.addEventListener(A, p, h), () => u.removeEventListener(A, p, h)), c = re(() => [$o(e), Oo(r)], ([u, A]) => {
|
|
128
128
|
a(), u && s.push(...t.flatMap((p) => o.map((h) => l(u, p, h, A))));
|
|
129
129
|
}, { immediate: !0, flush: "post" }), i = () => {
|
|
130
130
|
c(), a();
|
|
@@ -255,7 +255,7 @@ const Ss = {
|
|
|
255
255
|
Es({
|
|
256
256
|
linear: As
|
|
257
257
|
}, Ss);
|
|
258
|
-
const Ts = Kr.get("watermark"), ks = /* @__PURE__ */
|
|
258
|
+
const Ts = Kr.get("watermark"), ks = /* @__PURE__ */ pe({
|
|
259
259
|
__name: "index",
|
|
260
260
|
props: {
|
|
261
261
|
platformInitNextTick: {}
|
|
@@ -306,7 +306,7 @@ const Ts = Kr.get("watermark"), ks = /* @__PURE__ */ de({
|
|
|
306
306
|
};
|
|
307
307
|
p();
|
|
308
308
|
const h = Ge(), S = on();
|
|
309
|
-
return
|
|
309
|
+
return re(
|
|
310
310
|
() => h.currentRoute.value,
|
|
311
311
|
(w) => {
|
|
312
312
|
var y, _, T;
|
|
@@ -345,7 +345,7 @@ const Ts = Kr.get("watermark"), ks = /* @__PURE__ */ de({
|
|
|
345
345
|
"--menu-tip-diaolg-content": "#212121",
|
|
346
346
|
"--menu-tip-diaolg-divide": "#d9d9d9",
|
|
347
347
|
"--menu-tip-diaolg-info": "#999999"
|
|
348
|
-
}, Os = ["innerHTML"], Ds = { class: "footer" }, $s = /* @__PURE__ */
|
|
348
|
+
}, Os = ["innerHTML"], Ds = { class: "footer" }, $s = /* @__PURE__ */ pe({
|
|
349
349
|
__name: "tip",
|
|
350
350
|
props: {
|
|
351
351
|
title: {},
|
|
@@ -374,7 +374,7 @@ const Ts = Kr.get("watermark"), ks = /* @__PURE__ */ de({
|
|
|
374
374
|
onClick: t.closeCallback
|
|
375
375
|
}, {
|
|
376
376
|
default: M(() => o[2] || (o[2] = [
|
|
377
|
-
|
|
377
|
+
ue("我知道了")
|
|
378
378
|
])),
|
|
379
379
|
_: 1
|
|
380
380
|
/* STABLE */
|
|
@@ -386,7 +386,7 @@ const Ts = Kr.get("watermark"), ks = /* @__PURE__ */ de({
|
|
|
386
386
|
class: "content",
|
|
387
387
|
innerHTML: t.content
|
|
388
388
|
}, null, 8, Os),
|
|
389
|
-
t.desc && t.desc.length ? (N(),
|
|
389
|
+
t.desc && t.desc.length ? (N(), de(
|
|
390
390
|
We,
|
|
391
391
|
{ key: 0 },
|
|
392
392
|
[
|
|
@@ -397,14 +397,14 @@ const Ts = Kr.get("watermark"), ks = /* @__PURE__ */ de({
|
|
|
397
397
|
-1
|
|
398
398
|
/* HOISTED */
|
|
399
399
|
)),
|
|
400
|
-
(N(!0),
|
|
400
|
+
(N(!0), de(
|
|
401
401
|
We,
|
|
402
402
|
null,
|
|
403
|
-
_o(t.desc, (r, s) => kr((N(),
|
|
403
|
+
_o(t.desc, (r, s) => kr((N(), de("div", {
|
|
404
404
|
key: s,
|
|
405
405
|
class: "desc-item"
|
|
406
406
|
}, [
|
|
407
|
-
|
|
407
|
+
ue(
|
|
408
408
|
Z(r),
|
|
409
409
|
1
|
|
410
410
|
/* TEXT */
|
|
@@ -428,9 +428,9 @@ const Ts = Kr.get("watermark"), ks = /* @__PURE__ */ de({
|
|
|
428
428
|
const r = document.createElement("div");
|
|
429
429
|
r.setAttribute("id", "entry-app-dialog"), document.body.appendChild(r);
|
|
430
430
|
const a = fe(Ls, { title: n, content: e, desc: t, closeCallback: () => {
|
|
431
|
-
|
|
431
|
+
mt(null, r), document.body.removeChild(r), o(null);
|
|
432
432
|
} });
|
|
433
|
-
|
|
433
|
+
mt(a, r);
|
|
434
434
|
});
|
|
435
435
|
ts(Bs);
|
|
436
436
|
const xs = "data:image/png;base64,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", Ms = "data:image/png;base64,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", Rs = (n = {}) => {
|
|
@@ -453,8 +453,8 @@ const xs = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
453
453
|
sessionStorage.setItem("projectInfo", JSON.stringify(n || { id: 0 })), sessionStorage.setItem("project", (n == null ? void 0 : n.id) || 0);
|
|
454
454
|
}, Ns = () => {
|
|
455
455
|
sessionStorage.removeItem("projectInfo"), sessionStorage.removeItem("project");
|
|
456
|
-
},
|
|
457
|
-
let e =
|
|
456
|
+
}, le = (n) => {
|
|
457
|
+
let e = ce();
|
|
458
458
|
n.forEach((t) => {
|
|
459
459
|
var o;
|
|
460
460
|
if (t.key.startsWith("tabMap")) {
|
|
@@ -557,7 +557,7 @@ const xs = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
557
557
|
if (e.exitConfirmPages.includes(t) && !window.confirm("切换后已录入的数据将会丢失且不可恢复,确定切换?"))
|
|
558
558
|
throw new Error("取消切换");
|
|
559
559
|
}
|
|
560
|
-
},
|
|
560
|
+
}, gt = (n, e) => {
|
|
561
561
|
if (!e || !e.length) return;
|
|
562
562
|
const t = JSON.parse(sessionStorage.getItem(n) || "{}");
|
|
563
563
|
if (t && JSON.stringify(t) !== "{}" && t != null && t.closeTabPageConfirm && t.closeTabPageConfirm.length) {
|
|
@@ -578,7 +578,7 @@ const xs = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
578
578
|
return n ? { tenantConfig: null } : (Qs(e), { tenantConfig: e });
|
|
579
579
|
}, oi = async () => {
|
|
580
580
|
const [n, e] = await ei().run({
|
|
581
|
-
userId:
|
|
581
|
+
userId: Et().id,
|
|
582
582
|
pageSize: 20,
|
|
583
583
|
pageIndex: 1
|
|
584
584
|
});
|
|
@@ -594,7 +594,7 @@ function ai() {
|
|
|
594
594
|
function Qo(n, e) {
|
|
595
595
|
return n === e || n !== n && e !== e;
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function Tt(n, e) {
|
|
598
598
|
for (var t = n.length; t--; )
|
|
599
599
|
if (Qo(n[t][0], e))
|
|
600
600
|
return t;
|
|
@@ -602,21 +602,21 @@ function kt(n, e) {
|
|
|
602
602
|
}
|
|
603
603
|
var ci = Array.prototype, li = ci.splice;
|
|
604
604
|
function ui(n) {
|
|
605
|
-
var e = this.__data__, t =
|
|
605
|
+
var e = this.__data__, t = Tt(e, n);
|
|
606
606
|
if (t < 0)
|
|
607
607
|
return !1;
|
|
608
608
|
var o = e.length - 1;
|
|
609
609
|
return t == o ? e.pop() : li.call(e, t, 1), --this.size, !0;
|
|
610
610
|
}
|
|
611
611
|
function di(n) {
|
|
612
|
-
var e = this.__data__, t =
|
|
612
|
+
var e = this.__data__, t = Tt(e, n);
|
|
613
613
|
return t < 0 ? void 0 : e[t][1];
|
|
614
614
|
}
|
|
615
615
|
function pi(n) {
|
|
616
|
-
return
|
|
616
|
+
return Tt(this.__data__, n) > -1;
|
|
617
617
|
}
|
|
618
618
|
function fi(n, e) {
|
|
619
|
-
var t = this.__data__, o =
|
|
619
|
+
var t = this.__data__, o = Tt(t, n);
|
|
620
620
|
return o < 0 ? (++this.size, t.push([n, e])) : t[o][1] = e, this;
|
|
621
621
|
}
|
|
622
622
|
function Se(n) {
|
|
@@ -761,22 +761,22 @@ function ta(n) {
|
|
|
761
761
|
var e = typeof n;
|
|
762
762
|
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? n !== "__proto__" : n === null;
|
|
763
763
|
}
|
|
764
|
-
function
|
|
764
|
+
function kt(n, e) {
|
|
765
765
|
var t = n.__data__;
|
|
766
766
|
return ta(e) ? t[typeof e == "string" ? "string" : "hash"] : t.map;
|
|
767
767
|
}
|
|
768
768
|
function na(n) {
|
|
769
|
-
var e =
|
|
769
|
+
var e = kt(this, n).delete(n);
|
|
770
770
|
return this.size -= e ? 1 : 0, e;
|
|
771
771
|
}
|
|
772
772
|
function oa(n) {
|
|
773
|
-
return
|
|
773
|
+
return kt(this, n).get(n);
|
|
774
774
|
}
|
|
775
775
|
function ra(n) {
|
|
776
|
-
return
|
|
776
|
+
return kt(this, n).has(n);
|
|
777
777
|
}
|
|
778
778
|
function sa(n, e) {
|
|
779
|
-
var t =
|
|
779
|
+
var t = kt(this, n), o = t.size;
|
|
780
780
|
return t.set(n, e), this.size += t.size == o ? 0 : 1, this;
|
|
781
781
|
}
|
|
782
782
|
function Ze(n) {
|
|
@@ -836,7 +836,7 @@ function Fo(n, e, t) {
|
|
|
836
836
|
var o = n[e];
|
|
837
837
|
(!(ua.call(n, e) && Qo(o, t)) || t === void 0 && !(e in n)) && Uo(n, e, t);
|
|
838
838
|
}
|
|
839
|
-
function
|
|
839
|
+
function Pt(n, e, t, o) {
|
|
840
840
|
var r = !t;
|
|
841
841
|
t || (t = {});
|
|
842
842
|
for (var s = -1, a = e.length; ++s < a; ) {
|
|
@@ -928,7 +928,7 @@ function fn(n) {
|
|
|
928
928
|
return Xo(n) ? Ko(n) : nc(n);
|
|
929
929
|
}
|
|
930
930
|
function oc(n, e) {
|
|
931
|
-
return n &&
|
|
931
|
+
return n && Pt(e, fn(e), n);
|
|
932
932
|
}
|
|
933
933
|
function rc(n) {
|
|
934
934
|
var e = [];
|
|
@@ -950,7 +950,7 @@ function hn(n) {
|
|
|
950
950
|
return Xo(n) ? Ko(n, !0) : ac(n);
|
|
951
951
|
}
|
|
952
952
|
function cc(n, e) {
|
|
953
|
-
return n &&
|
|
953
|
+
return n && Pt(e, hn(e), n);
|
|
954
954
|
}
|
|
955
955
|
var Zo = typeof exports == "object" && exports && !exports.nodeType && exports, Wn = Zo && typeof module == "object" && module && !module.nodeType && module, lc = Wn && Wn.exports === Zo, zn = lc ? we.Buffer : void 0, Vn = zn ? zn.allocUnsafe : void 0;
|
|
956
956
|
function uc(n, e) {
|
|
@@ -981,7 +981,7 @@ var fc = Object.prototype, hc = fc.propertyIsEnumerable, qn = Object.getOwnPrope
|
|
|
981
981
|
}));
|
|
982
982
|
} : Yo;
|
|
983
983
|
function gc(n, e) {
|
|
984
|
-
return
|
|
984
|
+
return Pt(n, gn(n), e);
|
|
985
985
|
}
|
|
986
986
|
function er(n, e) {
|
|
987
987
|
for (var t = -1, o = e.length, r = n.length; ++t < o; )
|
|
@@ -994,7 +994,7 @@ var tr = Go(Object.getPrototypeOf, Object), Ac = Object.getOwnPropertySymbols, n
|
|
|
994
994
|
return e;
|
|
995
995
|
} : Yo;
|
|
996
996
|
function mc(n, e) {
|
|
997
|
-
return
|
|
997
|
+
return Pt(n, nr(n), e);
|
|
998
998
|
}
|
|
999
999
|
function or(n, e, t) {
|
|
1000
1000
|
var o = e(n);
|
|
@@ -1112,7 +1112,7 @@ function il(n) {
|
|
|
1112
1112
|
var so = Ve && Ve.isSet, al = so ? dn(so) : il, cl = 1, ll = 2, ul = 4, rr = "[object Arguments]", dl = "[object Array]", pl = "[object Boolean]", fl = "[object Date]", hl = "[object Error]", sr = "[object Function]", gl = "[object GeneratorFunction]", Al = "[object Map]", ml = "[object Number]", ir = "[object Object]", vl = "[object RegExp]", yl = "[object Set]", _l = "[object String]", wl = "[object Symbol]", bl = "[object WeakMap]", Cl = "[object ArrayBuffer]", Il = "[object DataView]", El = "[object Float32Array]", Sl = "[object Float64Array]", Tl = "[object Int8Array]", kl = "[object Int16Array]", Pl = "[object Int32Array]", Bl = "[object Uint8Array]", Ol = "[object Uint8ClampedArray]", Dl = "[object Uint16Array]", $l = "[object Uint32Array]", W = {};
|
|
1113
1113
|
W[rr] = W[dl] = W[Cl] = W[Il] = W[pl] = W[fl] = W[El] = W[Sl] = W[Tl] = W[kl] = W[Pl] = W[Al] = W[ml] = W[ir] = W[vl] = W[yl] = W[_l] = W[wl] = W[Bl] = W[Ol] = W[Dl] = W[$l] = !0;
|
|
1114
1114
|
W[hl] = W[sr] = W[bl] = !1;
|
|
1115
|
-
function
|
|
1115
|
+
function At(n, e, t, o, r, s) {
|
|
1116
1116
|
var a, l = e & cl, c = e & ll, i = e & ul;
|
|
1117
1117
|
if (a !== void 0)
|
|
1118
1118
|
return a;
|
|
@@ -1140,34 +1140,34 @@ function mt(n, e, t, o, r, s) {
|
|
|
1140
1140
|
if (h)
|
|
1141
1141
|
return h;
|
|
1142
1142
|
s.set(n, a), al(n) ? n.forEach(function(f) {
|
|
1143
|
-
a.add(
|
|
1143
|
+
a.add(At(f, e, t, f, n, s));
|
|
1144
1144
|
}) : rl(n) && n.forEach(function(f, d) {
|
|
1145
|
-
a.set(d,
|
|
1145
|
+
a.set(d, At(f, e, t, d, n, s));
|
|
1146
1146
|
});
|
|
1147
1147
|
var S = i ? c ? yc : vc : c ? hn : fn, w = u ? void 0 : S(n);
|
|
1148
1148
|
return ca(w || n, function(f, d) {
|
|
1149
|
-
w && (d = f, f = n[d]), Fo(a, d,
|
|
1149
|
+
w && (d = f, f = n[d]), Fo(a, d, At(f, e, t, d, n, s));
|
|
1150
1150
|
}), a;
|
|
1151
1151
|
}
|
|
1152
1152
|
var Ll = 1, xl = 4;
|
|
1153
1153
|
function qe(n) {
|
|
1154
|
-
return
|
|
1154
|
+
return At(n, Ll | xl);
|
|
1155
1155
|
}
|
|
1156
|
-
const
|
|
1156
|
+
const wt = (n, e = "") => {
|
|
1157
1157
|
for (let t of n)
|
|
1158
1158
|
if (!(t != null && t.disable) && !(t != null && t.expired))
|
|
1159
1159
|
if (e) {
|
|
1160
1160
|
if (t.routeUrl && t.code === e)
|
|
1161
1161
|
return t;
|
|
1162
1162
|
if (t.children && t.children.length) {
|
|
1163
|
-
const o =
|
|
1163
|
+
const o = wt(t.children, e);
|
|
1164
1164
|
if (o) return o;
|
|
1165
1165
|
}
|
|
1166
1166
|
} else {
|
|
1167
1167
|
if (t.routeUrl)
|
|
1168
1168
|
return t;
|
|
1169
1169
|
if (t.children && t.children.length) {
|
|
1170
|
-
const o =
|
|
1170
|
+
const o = wt(t.children, e);
|
|
1171
1171
|
if (o) return o;
|
|
1172
1172
|
}
|
|
1173
1173
|
}
|
|
@@ -1181,7 +1181,7 @@ const bt = (n, e = "") => {
|
|
|
1181
1181
|
}, Gt = (n) => {
|
|
1182
1182
|
const e = J().subAppList ?? [];
|
|
1183
1183
|
let { index: t, target: o } = Ml(e, n);
|
|
1184
|
-
return e.splice(t, 1), e.length ? ge([{ key: "subAppList", value: e }]) : ln(),
|
|
1184
|
+
return e.splice(t, 1), e.length ? ge([{ key: "subAppList", value: e }]) : ln(), le([
|
|
1185
1185
|
{ key: "currentCode", value: "" },
|
|
1186
1186
|
{ key: "currentTab", value: {} },
|
|
1187
1187
|
{ key: `preTab:${n}`, value: {} },
|
|
@@ -1192,9 +1192,9 @@ const bt = (n, e = "") => {
|
|
|
1192
1192
|
return { left: o, right: r };
|
|
1193
1193
|
}, Ql = (n, e, t) => {
|
|
1194
1194
|
var A;
|
|
1195
|
-
const o = ye(e).filter((p) => p.routeUrl).filter((p) => !(p != null && p.disable) && !(p != null && p.expired)), s = (((A =
|
|
1195
|
+
const o = ye(e).filter((p) => p.routeUrl).filter((p) => !(p != null && p.disable) && !(p != null && p.expired)), s = (((A = ce()) == null ? void 0 : A.tabMap) ?? {})[n] ?? [], { left: a, right: l } = Rl(s, t), c = s.filter((p) => o.find((h) => h.code === p.code));
|
|
1196
1196
|
if (!a.length && !l.length || !c.length)
|
|
1197
|
-
return
|
|
1197
|
+
return le([
|
|
1198
1198
|
{ key: "currentCode", value: "" },
|
|
1199
1199
|
{ key: "currentTab", value: {} },
|
|
1200
1200
|
{ key: `preTab:${n}`, value: {} },
|
|
@@ -1209,7 +1209,7 @@ const bt = (n, e = "") => {
|
|
|
1209
1209
|
const p = a.reverse().find((h) => c.map((S) => S.code).includes(h.code));
|
|
1210
1210
|
p && (i = p);
|
|
1211
1211
|
}
|
|
1212
|
-
return i ? (
|
|
1212
|
+
return i ? (le([
|
|
1213
1213
|
{
|
|
1214
1214
|
key: "currentCode",
|
|
1215
1215
|
value: i.code
|
|
@@ -1223,7 +1223,7 @@ const bt = (n, e = "") => {
|
|
|
1223
1223
|
value: i
|
|
1224
1224
|
},
|
|
1225
1225
|
{ key: `tabMap:${n}`, value: c }
|
|
1226
|
-
]), Mo(i.code), { currentMenu: o.find((p) => p.code === i.code), currentTab: i }) : (
|
|
1226
|
+
]), Mo(i.code), { currentMenu: o.find((p) => p.code === i.code), currentTab: i }) : (le([
|
|
1227
1227
|
{ key: `preTab:${n}`, value: {} },
|
|
1228
1228
|
{ key: `tabMap:${n}`, value: [] }
|
|
1229
1229
|
]), Gt(n));
|
|
@@ -1273,12 +1273,12 @@ const bt = (n, e = "") => {
|
|
|
1273
1273
|
}
|
|
1274
1274
|
}
|
|
1275
1275
|
if (s && a) {
|
|
1276
|
-
const d = (
|
|
1276
|
+
const d = (ce().tabMap ?? {})[e.code] ?? [];
|
|
1277
1277
|
if (d.length) {
|
|
1278
1278
|
const m = d.filter(
|
|
1279
1279
|
(y) => t && t === y.code || o && o === `/${y.applicationPath}${y.path}`.replace(/\/\//g, "/") || ye(c).map((_) => _.code).includes(y.code)
|
|
1280
1280
|
);
|
|
1281
|
-
|
|
1281
|
+
le([
|
|
1282
1282
|
{
|
|
1283
1283
|
key: `tabMap:${e.code}`,
|
|
1284
1284
|
value: m
|
|
@@ -1301,7 +1301,7 @@ const bt = (n, e = "") => {
|
|
|
1301
1301
|
query: { ...r.query, app: l }
|
|
1302
1302
|
};
|
|
1303
1303
|
}
|
|
1304
|
-
let A =
|
|
1304
|
+
let A = wt(c, t);
|
|
1305
1305
|
if (!A) {
|
|
1306
1306
|
if (!s || !a)
|
|
1307
1307
|
return { menuConfig: c, currentApp: null, currentMenu: null, query: { ...r.query, app: l } };
|
|
@@ -1332,7 +1332,7 @@ const bt = (n, e = "") => {
|
|
|
1332
1332
|
path: A.routeUrl,
|
|
1333
1333
|
query: m
|
|
1334
1334
|
};
|
|
1335
|
-
|
|
1335
|
+
le([
|
|
1336
1336
|
{
|
|
1337
1337
|
key: "currentCode",
|
|
1338
1338
|
value: A.code
|
|
@@ -1388,14 +1388,14 @@ const bt = (n, e = "") => {
|
|
|
1388
1388
|
}, cr = E(null), eu = async () => {
|
|
1389
1389
|
const [n, e] = await Gl().run();
|
|
1390
1390
|
return n ? { homeConfig: null } : (e && (js(e), cr.value = e), { homeConfig: e });
|
|
1391
|
-
},
|
|
1391
|
+
}, bt = E(1), lr = async () => {
|
|
1392
1392
|
const [n, e] = await Xl().run();
|
|
1393
|
-
return n ? { personalMenuConfig: null } : (
|
|
1394
|
-
}, tu = Be.post("/menu/personal-setting"), nu = { class: "preson-style-drawer" }, ou = { class: "preson-style-container" }, ru = { class: "title" }, su = { class: "content" }, iu = { class: "item-content" }, au = ["src"], cu = { class: "item-content" }, lu = ["src"], uu = { class: "preson-style-footer" }, du = /* @__PURE__ */
|
|
1393
|
+
return n ? { personalMenuConfig: null } : (bt.value = (e == null ? void 0 : e.style) ?? 1, { personalMenuConfig: e });
|
|
1394
|
+
}, tu = Be.post("/menu/personal-setting"), nu = { class: "preson-style-drawer" }, ou = { class: "preson-style-container" }, ru = { class: "title" }, su = { class: "content" }, iu = { class: "item-content" }, au = ["src"], cu = { class: "item-content" }, lu = ["src"], uu = { class: "preson-style-footer" }, du = /* @__PURE__ */ pe({
|
|
1395
1395
|
__name: "index",
|
|
1396
1396
|
setup(n, { expose: e }) {
|
|
1397
1397
|
const t = E(!1), o = E(!1), r = E(!1), s = E(!1), a = () => {
|
|
1398
|
-
o.value =
|
|
1398
|
+
o.value = bt.value === 1, r.value = bt.value === 2, t.value = !0;
|
|
1399
1399
|
}, l = (i) => {
|
|
1400
1400
|
i === 1 ? r.value = !1 : o.value = !1;
|
|
1401
1401
|
}, c = async () => {
|
|
@@ -1405,7 +1405,7 @@ const bt = (n, e = "") => {
|
|
|
1405
1405
|
return e({
|
|
1406
1406
|
/** 打开弹窗 */
|
|
1407
1407
|
openDialog: a
|
|
1408
|
-
}), (i, u) => (N(),
|
|
1408
|
+
}), (i, u) => (N(), de("div", nu, [
|
|
1409
1409
|
R(v(cs), {
|
|
1410
1410
|
title: v(Q)("主题设置").value,
|
|
1411
1411
|
modelValue: t.value,
|
|
@@ -1421,7 +1421,7 @@ const bt = (n, e = "") => {
|
|
|
1421
1421
|
style: { "margin-right": "12px" }
|
|
1422
1422
|
}, {
|
|
1423
1423
|
default: M(() => u[6] || (u[6] = [
|
|
1424
|
-
|
|
1424
|
+
ue("取消")
|
|
1425
1425
|
])),
|
|
1426
1426
|
_: 1
|
|
1427
1427
|
/* STABLE */
|
|
@@ -1433,7 +1433,7 @@ const bt = (n, e = "") => {
|
|
|
1433
1433
|
onClick: c
|
|
1434
1434
|
}, {
|
|
1435
1435
|
default: M(() => u[7] || (u[7] = [
|
|
1436
|
-
|
|
1436
|
+
ue("确定")
|
|
1437
1437
|
])),
|
|
1438
1438
|
_: 1
|
|
1439
1439
|
/* STABLE */
|
|
@@ -1463,7 +1463,7 @@ const bt = (n, e = "") => {
|
|
|
1463
1463
|
onChange: u[1] || (u[1] = (A) => l(1))
|
|
1464
1464
|
}, {
|
|
1465
1465
|
default: M(() => [
|
|
1466
|
-
|
|
1466
|
+
ue(
|
|
1467
1467
|
Z(v(Q)("弹出式菜单栏").value),
|
|
1468
1468
|
1
|
|
1469
1469
|
/* TEXT */
|
|
@@ -1486,7 +1486,7 @@ const bt = (n, e = "") => {
|
|
|
1486
1486
|
onChange: u[3] || (u[3] = (A) => l(2))
|
|
1487
1487
|
}, {
|
|
1488
1488
|
default: M(() => [
|
|
1489
|
-
|
|
1489
|
+
ue(
|
|
1490
1490
|
Z(v(Q)("内嵌式菜单栏").value),
|
|
1491
1491
|
1
|
|
1492
1492
|
/* TEXT */
|
|
@@ -1510,7 +1510,7 @@ const bt = (n, e = "") => {
|
|
|
1510
1510
|
Hs(i), Ur(i);
|
|
1511
1511
|
}, t = async () => {
|
|
1512
1512
|
const [a, l] = await hu().run({ userId: wo().id });
|
|
1513
|
-
a || !l || JSON.stringify(l) === "{}" || (
|
|
1513
|
+
a || !l || JSON.stringify(l) === "{}" || (vt.open({
|
|
1514
1514
|
key: "loginTip",
|
|
1515
1515
|
message: "上次登录信息",
|
|
1516
1516
|
placement: "bottomRight",
|
|
@@ -1544,7 +1544,7 @@ const bt = (n, e = "") => {
|
|
|
1544
1544
|
};
|
|
1545
1545
|
}, Au = (n) => {
|
|
1546
1546
|
const e = Ge(), t = on(), { getMenu: o } = qr(), { getHistoryList: r, getSearchList: s } = Du(), a = E(!0), l = E([]), c = E([]), i = E(!1), u = E(!1);
|
|
1547
|
-
|
|
1547
|
+
re(
|
|
1548
1548
|
() => t.path,
|
|
1549
1549
|
(S) => {
|
|
1550
1550
|
i.value = S === nt;
|
|
@@ -1552,7 +1552,7 @@ const bt = (n, e = "") => {
|
|
|
1552
1552
|
{
|
|
1553
1553
|
immediate: !0
|
|
1554
1554
|
}
|
|
1555
|
-
),
|
|
1555
|
+
), re(
|
|
1556
1556
|
() => [i.value, u.value],
|
|
1557
1557
|
() => {
|
|
1558
1558
|
D.nav.setConfig({
|
|
@@ -1589,7 +1589,7 @@ const bt = (n, e = "") => {
|
|
|
1589
1589
|
// 树打平之后保留的数据
|
|
1590
1590
|
filterFlatCondition: (C) => C.type === 7
|
|
1591
1591
|
}), D.nav.setProjects(f || []), d && D.nav.setActiveProject(d));
|
|
1592
|
-
const T =
|
|
1592
|
+
const T = Et() ?? {}, B = T != null && T.headPicture ? Xt(T.headPicture) : void 0;
|
|
1593
1593
|
c.value = [...ps], d && d.id !== 0 ? await o("personCenter", "", "/userInfo") || (c.value = c.value.filter((P) => P.value !== "1")) : c.value = c.value.filter((C) => C.value !== "1"), D.nav.setUserInfo({ headPicture: B, commandList: c.value }), D.nav.setSearchConfig({
|
|
1594
1594
|
getHistoryList: r,
|
|
1595
1595
|
getSearchList: s
|
|
@@ -1620,10 +1620,10 @@ const bt = (n, e = "") => {
|
|
|
1620
1620
|
desc: t.menuExpirationExpiredInfo
|
|
1621
1621
|
};
|
|
1622
1622
|
}, vu = () => {
|
|
1623
|
-
const { entryMenu: n } =
|
|
1623
|
+
const { entryMenu: n } = Bt();
|
|
1624
1624
|
D.menu.addEventListener("onItemClick", async (e) => {
|
|
1625
1625
|
ee.innerSet = !0;
|
|
1626
|
-
const t = ye(
|
|
1626
|
+
const t = ye(yt(e.applicationCode)).filter((o) => !o.disable && !o.expired).find((o) => o.code === e.code);
|
|
1627
1627
|
if (!(t && !t.routeUrl)) {
|
|
1628
1628
|
if (!t) {
|
|
1629
1629
|
const { title: o, content: r, desc: s } = await vn(t);
|
|
@@ -1646,15 +1646,15 @@ const bt = (n, e = "") => {
|
|
|
1646
1646
|
var i;
|
|
1647
1647
|
const s = J();
|
|
1648
1648
|
if (!((i = s.subAppList) != null && i.length) || s.subAppList.findIndex((u) => u.code === r.code) === -1) return;
|
|
1649
|
-
const c = (
|
|
1650
|
-
c && c.length &&
|
|
1649
|
+
const c = (ce().tabMap[r.code] ?? []).map((u) => u.code);
|
|
1650
|
+
c && c.length && gt(r.code, c), e(r);
|
|
1651
1651
|
});
|
|
1652
1652
|
const { enter: o } = lt();
|
|
1653
1653
|
return D.nav.addEventListener("fullScreenHandle", o), {};
|
|
1654
1654
|
}, _u = () => {
|
|
1655
1655
|
const n = Ge(), e = "#666666", t = "#FAFAFA", o = "#D9D9D9", r = E(e), s = E(t), a = E(o);
|
|
1656
1656
|
let l = "", c = {};
|
|
1657
|
-
|
|
1657
|
+
re(
|
|
1658
1658
|
() => n.currentRoute.value,
|
|
1659
1659
|
async (d) => {
|
|
1660
1660
|
var L, b, C, P, $, H, F;
|
|
@@ -1664,15 +1664,15 @@ const bt = (n, e = "") => {
|
|
|
1664
1664
|
l = qe(d.path), c = qe(d.query);
|
|
1665
1665
|
const _ = J().currentSubAppCode ?? "";
|
|
1666
1666
|
if (!_) return;
|
|
1667
|
-
const T = ((C = d.query) == null ? void 0 : C.menu) ?? ((P =
|
|
1667
|
+
const T = ((C = d.query) == null ? void 0 : C.menu) ?? ((P = ce()) == null ? void 0 : P.currentCode) ?? "";
|
|
1668
1668
|
if (!T) return;
|
|
1669
1669
|
const B = JSON.parse(sessionStorage.getItem("tabStyle") || "{}") || {};
|
|
1670
1670
|
B && JSON.stringify(B) !== "{}" && (r.value = ($ = B[_][T]) != null && $.fontColor ? B[_][T].fontColor : e, s.value = (H = B[_][T]) != null && H.backgroundColor ? B[_][T].backgroundColor : t, a.value = (F = B[_][T]) != null && F.backgroundColor ? B[_][T].backgroundColor : o);
|
|
1671
1671
|
}
|
|
1672
1672
|
);
|
|
1673
|
-
const { deleteApp: i } = et(), { entryMenu: u } =
|
|
1673
|
+
const { deleteApp: i } = et(), { entryMenu: u } = Bt(), { reloadRoute: A, unloadRoute: p } = ur(), h = (d) => {
|
|
1674
1674
|
var T;
|
|
1675
|
-
const m = ye(
|
|
1675
|
+
const m = ye(yt(d.applicationCode)).find((B) => B.code === d.code), _ = (((T = ce().tabMap) == null ? void 0 : T[d.applicationCode]) ?? []).find((B) => B.code === d.code);
|
|
1676
1676
|
u({ currentMenu: m, route: { path: _.path, query: _.query ?? {} } });
|
|
1677
1677
|
}, S = (d) => {
|
|
1678
1678
|
if (!d || !d.length) return;
|
|
@@ -1681,11 +1681,11 @@ const bt = (n, e = "") => {
|
|
|
1681
1681
|
}, w = (d) => {
|
|
1682
1682
|
const m = J().currentSubAppCode ?? "";
|
|
1683
1683
|
ee.innerSet = !0;
|
|
1684
|
-
const y =
|
|
1684
|
+
const y = ce(), _ = y.tabMap[m], T = _.findIndex(($) => $.code === d.data.code);
|
|
1685
1685
|
if (T === -1) return;
|
|
1686
1686
|
const B = () => {
|
|
1687
1687
|
var F;
|
|
1688
|
-
let H = (((F = J().appcategorys) == null ? void 0 : F.map((
|
|
1688
|
+
let H = (((F = J().appcategorys) == null ? void 0 : F.map((ie) => ie.apps).flat()) ?? []).find((ie) => ie.code === m);
|
|
1689
1689
|
H = { ...H, value: H.code, label: H.name }, i(H), D.nav.removeItem(m);
|
|
1690
1690
|
};
|
|
1691
1691
|
({
|
|
@@ -1696,7 +1696,7 @@ const bt = (n, e = "") => {
|
|
|
1696
1696
|
}
|
|
1697
1697
|
const H = y.currentCode;
|
|
1698
1698
|
let F = null;
|
|
1699
|
-
H === $.value && (T + 1 === _.length ? _[T - 1] && (F = _[T - 1]) : _[T + 1] && (F = _[T + 1])), _.splice(T, 1), S([$]),
|
|
1699
|
+
H === $.value && (T + 1 === _.length ? _[T - 1] && (F = _[T - 1]) : _[T + 1] && (F = _[T + 1])), _.splice(T, 1), S([$]), le([{ key: `tabMap:${m}`, value: _ }]), F ? h(F) : le([{ key: `preTab:${m}`, value: {} }]);
|
|
1700
1700
|
},
|
|
1701
1701
|
all: B,
|
|
1702
1702
|
other: async ($) => {
|
|
@@ -1705,8 +1705,8 @@ const bt = (n, e = "") => {
|
|
|
1705
1705
|
path: `/${H.applicationPath}${H.path}`.replace(/\/\//g, "/"),
|
|
1706
1706
|
query: H.query
|
|
1707
1707
|
}), D.menu.setActiveItem(H.menuId), D.tab.setActiveItem(H.code);
|
|
1708
|
-
const F = _.filter((
|
|
1709
|
-
F.forEach((
|
|
1708
|
+
const F = _.filter((ie) => ie.code !== $.value);
|
|
1709
|
+
F.forEach((ie) => D.tab.removeItem(ie.code)), S(F), le([{ key: `tabMap:${m}`, value: [H] }]), h(H);
|
|
1710
1710
|
},
|
|
1711
1711
|
right: async ($) => {
|
|
1712
1712
|
const H = y.currentCode;
|
|
@@ -1715,30 +1715,30 @@ const bt = (n, e = "") => {
|
|
|
1715
1715
|
h(Te);
|
|
1716
1716
|
}
|
|
1717
1717
|
const F = _.slice(T + 1);
|
|
1718
|
-
F.forEach((
|
|
1718
|
+
F.forEach((ie) => D.tab.removeItem(ie.code)), S(F), _.splice(T + 1), le([{ key: `tabMap:${m}`, value: _ }]);
|
|
1719
1719
|
}
|
|
1720
1720
|
})[d.type](d.data);
|
|
1721
1721
|
};
|
|
1722
1722
|
D.tab.addEventListener("onItemClick", async (d) => {
|
|
1723
|
-
|
|
1723
|
+
ce().currentCode !== d.currentCode && (ee.innerSet = !0, h(d));
|
|
1724
1724
|
}), D.tab.addEventListener("onItemRemove", (d) => {
|
|
1725
|
-
const m =
|
|
1726
|
-
m.tabMap[y].findIndex((B) => B.code === d.code) !== -1 && (
|
|
1725
|
+
const m = ce(), y = J().currentSubAppCode ?? "";
|
|
1726
|
+
m.tabMap[y].findIndex((B) => B.code === d.code) !== -1 && (gt(d.applicationCode, [d.code]), w({ type: "me", data: d }));
|
|
1727
1727
|
}), D.tab.addEventListener("onMenuClick", (d) => {
|
|
1728
1728
|
let m = [];
|
|
1729
|
-
const y =
|
|
1729
|
+
const y = ce().tabMap[d.applicationCode] ?? [];
|
|
1730
1730
|
if (d.type.key === "right") {
|
|
1731
1731
|
const _ = y.findIndex((T) => T.code === d.data.value);
|
|
1732
1732
|
m = y.slice(_ + 1);
|
|
1733
1733
|
}
|
|
1734
|
-
d.type.key === "other" && (m = y.filter((_) => _.code !== d.data.value)), d.type.key === "all" && (m = [...y]),
|
|
1734
|
+
d.type.key === "other" && (m = y.filter((_) => _.code !== d.data.value)), d.type.key === "all" && (m = [...y]), gt(
|
|
1735
1735
|
d.applicationCode,
|
|
1736
1736
|
m.map((_) => _.code)
|
|
1737
1737
|
), w({ type: d.type.key, data: d.data });
|
|
1738
1738
|
}), D.tab.addEventListener("onPageRefresh", async (d) => {
|
|
1739
1739
|
if (!d || d.path === Je) return;
|
|
1740
|
-
|
|
1741
|
-
const m = ye(
|
|
1740
|
+
gt(d.applicationCode, [d.code]);
|
|
1741
|
+
const m = ye(yt(d.applicationCode)).find((T) => T.code === d.code);
|
|
1742
1742
|
if (!m) return;
|
|
1743
1743
|
if (m.routeUrl !== d.path) {
|
|
1744
1744
|
A([d.path]), p([`/${d.applicationPath}${m.routeUrl}`]), await u({ currentMenu: m });
|
|
@@ -1771,7 +1771,7 @@ const bt = (n, e = "") => {
|
|
|
1771
1771
|
n(), window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`);
|
|
1772
1772
|
});
|
|
1773
1773
|
}, et = () => {
|
|
1774
|
-
const n = Ge(), { entryMenu: e } =
|
|
1774
|
+
const n = Ge(), { entryMenu: e } = Bt(), { unloadRoute: t } = ur();
|
|
1775
1775
|
let { mainAppName: o = "", microAppName: r = "", microApps: s = [] } = He();
|
|
1776
1776
|
!o && r && (s = [{ name: r }]);
|
|
1777
1777
|
const a = s.map((p) => p.name), l = () => {
|
|
@@ -1785,15 +1785,15 @@ const bt = (n, e = "") => {
|
|
|
1785
1785
|
if (B) return !1;
|
|
1786
1786
|
f = _ ?? [], d = T ?? [];
|
|
1787
1787
|
}
|
|
1788
|
-
if (f.length ?
|
|
1788
|
+
if (f.length ? wt(f) || (await rt({ title: "提示", content: "此应用菜单已过期/已收回/配置有误<br/>无法使用" }), m = !0) : (await rt({ title: "提示", content: "此应用未配置菜单/无菜单权限<br/>无法使用" }), m = !0), m) return !1;
|
|
1789
1789
|
const y = { ...p, menus: f, originalMenus: d };
|
|
1790
1790
|
return ge([{ key: "subAppList", value: y }]), !0;
|
|
1791
1791
|
}, i = async (p) => {
|
|
1792
|
-
var H, F,
|
|
1792
|
+
var H, F, ie, Te;
|
|
1793
1793
|
const { microApp: h = null, menuCode: S = "", menuPath: w = "", route: f = {} } = p;
|
|
1794
1794
|
let d = f;
|
|
1795
1795
|
if (!h && w) {
|
|
1796
|
-
if (l(), !(a && a.find((
|
|
1796
|
+
if (l(), !(a && a.find((ne) => w.startsWith("/" + ne) || w.startsWith(ne)))) return;
|
|
1797
1797
|
await n.push({ path: w, query: d.query });
|
|
1798
1798
|
return;
|
|
1799
1799
|
}
|
|
@@ -1803,26 +1803,26 @@ const bt = (n, e = "") => {
|
|
|
1803
1803
|
const _ = (h == null ? void 0 : h.openType) ?? 1, T = (h == null ? void 0 : h.type) ?? 1;
|
|
1804
1804
|
if (h.routeUrl && !a.includes(h.routeUrl)) {
|
|
1805
1805
|
l();
|
|
1806
|
-
const
|
|
1807
|
-
if ((
|
|
1806
|
+
const oe = ((ie = J()) == null ? void 0 : ie.subAppList) ?? [];
|
|
1807
|
+
if ((oe == null ? void 0 : oe.find((G) => G.code === h.code)) || oe == null || oe.push(h), ge([
|
|
1808
1808
|
{ key: "currentSubApp", value: h },
|
|
1809
1809
|
{ key: "currentSubAppCode", value: h.code },
|
|
1810
|
-
{ key: "subAppList", value:
|
|
1811
|
-
]),
|
|
1812
|
-
const Oe = { ...
|
|
1810
|
+
{ key: "subAppList", value: oe }
|
|
1811
|
+
]), oe.forEach((G) => {
|
|
1812
|
+
const Oe = { ...G, value: G.code, label: G.name };
|
|
1813
1813
|
D.nav.appendItem(Oe);
|
|
1814
1814
|
}), D.nav.setActiveItem(h.code), h.routeUrl.includes("entrance=main")) {
|
|
1815
1815
|
await n.push({ path: h.routeUrl, query: { ...d.query, app: h.code } });
|
|
1816
1816
|
return;
|
|
1817
1817
|
}
|
|
1818
1818
|
if (_ === 1 && T === 2) {
|
|
1819
|
-
const
|
|
1819
|
+
const G = Wt(Ut(Ft(h.routeUrl)));
|
|
1820
1820
|
await n.push({
|
|
1821
1821
|
path: Je,
|
|
1822
1822
|
query: {
|
|
1823
1823
|
...d.query,
|
|
1824
1824
|
app: h.code,
|
|
1825
|
-
iframeSrc:
|
|
1825
|
+
iframeSrc: G
|
|
1826
1826
|
}
|
|
1827
1827
|
});
|
|
1828
1828
|
return;
|
|
@@ -1841,8 +1841,8 @@ const bt = (n, e = "") => {
|
|
|
1841
1841
|
meta: { ...(d == null ? void 0 : d.meta) ?? {} }
|
|
1842
1842
|
}), L && (L == null ? void 0 : L.code) !== (h == null ? void 0 : h.code)) {
|
|
1843
1843
|
if (L.fixed && (await n.push(L.path), l(), D.nav.setActiveItem(L.path)), !L.fixed) {
|
|
1844
|
-
const
|
|
1845
|
-
await i({ microApp:
|
|
1844
|
+
const oe = (Te = J().subAppList) == null ? void 0 : Te.find((Oe) => Oe.code === L.code), ne = ce().preTab[L.code], G = { ...(ne == null ? void 0 : ne.query) ?? {} };
|
|
1845
|
+
await i({ microApp: oe, menuCode: (ne == null ? void 0 : ne.code) ?? "", route: { query: G } });
|
|
1846
1846
|
}
|
|
1847
1847
|
return;
|
|
1848
1848
|
}
|
|
@@ -1858,18 +1858,22 @@ const bt = (n, e = "") => {
|
|
|
1858
1858
|
return;
|
|
1859
1859
|
}
|
|
1860
1860
|
if (m && y) {
|
|
1861
|
-
(
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1861
|
+
setTimeout(() => {
|
|
1862
|
+
var ne;
|
|
1863
|
+
(ne = J().subAppList) == null || ne.forEach((G) => {
|
|
1864
|
+
const Oe = { ...G, value: G.code, label: G.name };
|
|
1865
|
+
D.nav.appendItem(Oe);
|
|
1866
|
+
}), D.nav.setActiveItem($.code), D.menu.setItems(B);
|
|
1867
|
+
}, 200);
|
|
1868
|
+
const oe = ce().tabMap[$.code] ?? [];
|
|
1869
|
+
if (oe.length) {
|
|
1870
|
+
const ne = oe.map((G) => ({
|
|
1868
1871
|
...G,
|
|
1869
1872
|
value: G.code,
|
|
1870
1873
|
label: G.name
|
|
1871
|
-
});
|
|
1872
|
-
|
|
1874
|
+
})) || [];
|
|
1875
|
+
D.tab.setItems(ne);
|
|
1876
|
+
}
|
|
1873
1877
|
}
|
|
1874
1878
|
e({ currentMenu: b, microPath: C, route: d });
|
|
1875
1879
|
}, u = async (p) => {
|
|
@@ -1878,14 +1882,14 @@ const bt = (n, e = "") => {
|
|
|
1878
1882
|
await n.push(p.path), D.menu.setItems([]), D.tab.setItems([]), D.nav.setActiveItem(p.path), ge([
|
|
1879
1883
|
{ key: "currentSubAppCode", value: "" },
|
|
1880
1884
|
{ key: "currentSubApp", value: {} }
|
|
1881
|
-
]),
|
|
1885
|
+
]), le([
|
|
1882
1886
|
{ key: "currentCode", value: "" },
|
|
1883
1887
|
{ key: "currentTab", value: {} }
|
|
1884
1888
|
]);
|
|
1885
1889
|
return;
|
|
1886
1890
|
}
|
|
1887
1891
|
if (!p.fixed) {
|
|
1888
|
-
const S = (h = J().subAppList) == null ? void 0 : h.find((m) => m.code === p.code), w =
|
|
1892
|
+
const S = (h = J().subAppList) == null ? void 0 : h.find((m) => m.code === p.code), w = ce().preTab[p.code], f = (w == null ? void 0 : w.code) ?? "", d = { ...(w == null ? void 0 : w.query) ?? {} };
|
|
1889
1893
|
await i({ microApp: S, menuCode: f, route: { query: d } });
|
|
1890
1894
|
}
|
|
1891
1895
|
};
|
|
@@ -1899,13 +1903,13 @@ const bt = (n, e = "") => {
|
|
|
1899
1903
|
if (!((d = h.subAppList) != null && d.length)) return;
|
|
1900
1904
|
const S = h.subAppList.findIndex((m) => m.code === p.code);
|
|
1901
1905
|
if (S === -1) return;
|
|
1902
|
-
const w =
|
|
1906
|
+
const w = ce().tabMap[p.code] ?? [];
|
|
1903
1907
|
if (w.length) {
|
|
1904
1908
|
const m = w.map((y) => y.path);
|
|
1905
1909
|
t(m);
|
|
1906
1910
|
}
|
|
1907
1911
|
let f = null;
|
|
1908
|
-
if (h.currentSubAppCode === p.code && (S + 1 !== h.subAppList.length ? h.subAppList[S + 1] && (f = h.subAppList[S + 1]) : h.subAppList[S - 1] && (f = h.subAppList[S - 1])), h.subAppList.splice(S, 1), ge([{ key: "subAppList", value: h.subAppList }]),
|
|
1912
|
+
if (h.currentSubAppCode === p.code && (S + 1 !== h.subAppList.length ? h.subAppList[S + 1] && (f = h.subAppList[S + 1]) : h.subAppList[S - 1] && (f = h.subAppList[S - 1])), h.subAppList.splice(S, 1), ge([{ key: "subAppList", value: h.subAppList }]), le([
|
|
1909
1913
|
{ key: `preTab:${p.code}`, value: {} },
|
|
1910
1914
|
{ key: `tabMap:${p.code}`, value: [] }
|
|
1911
1915
|
]), f) {
|
|
@@ -1919,7 +1923,7 @@ const bt = (n, e = "") => {
|
|
|
1919
1923
|
}
|
|
1920
1924
|
}
|
|
1921
1925
|
};
|
|
1922
|
-
},
|
|
1926
|
+
}, Bt = () => {
|
|
1923
1927
|
const n = Ge();
|
|
1924
1928
|
let { mainAppName: e = "", microAppName: t = "", microApps: o = [] } = He();
|
|
1925
1929
|
return !e && t && (o = [{ name: t }]), o.map((s) => s.name), { entryMenu: async (s) => {
|
|
@@ -1965,7 +1969,7 @@ const bt = (n, e = "") => {
|
|
|
1965
1969
|
...f,
|
|
1966
1970
|
value: f.code,
|
|
1967
1971
|
label: f.name
|
|
1968
|
-
}), D.tab.setActiveItem(a.code), D.menu.setActiveItem(a.id), Mo(a.code),
|
|
1972
|
+
}), D.tab.setActiveItem(a.code), D.menu.setActiveItem(a.id), Mo(a.code), le([
|
|
1969
1973
|
{
|
|
1970
1974
|
key: "currentCode",
|
|
1971
1975
|
value: a.code
|
|
@@ -2027,7 +2031,7 @@ const bt = (n, e = "") => {
|
|
|
2027
2031
|
(P) => m === P.code || d.includes(P.code)
|
|
2028
2032
|
);
|
|
2029
2033
|
ge([{ key: "subAppList", value: C }]), b && b.length && b.forEach((P) => {
|
|
2030
|
-
|
|
2034
|
+
le([
|
|
2031
2035
|
{ key: `preTab:${P.code}`, value: {} },
|
|
2032
2036
|
{ key: `tabMap:${P.code}`, value: [] }
|
|
2033
2037
|
]);
|
|
@@ -2039,7 +2043,7 @@ const bt = (n, e = "") => {
|
|
|
2039
2043
|
const { currentApp: C } = Gt(p.query.app);
|
|
2040
2044
|
if (C) {
|
|
2041
2045
|
b = C;
|
|
2042
|
-
const $ = (
|
|
2046
|
+
const $ = (ce().preTab ?? {})[b.code];
|
|
2043
2047
|
p = {}, $ && (p.path = `/${$.applicationPath}${$.path}`.replace(/\/\//g, "/"), p.query = $.query);
|
|
2044
2048
|
}
|
|
2045
2049
|
}
|
|
@@ -2071,14 +2075,14 @@ const bt = (n, e = "") => {
|
|
|
2071
2075
|
b && (D.nav.setActiveItem(b.path), D.menu.setItems([]), D.tab.setItems([]), ge([
|
|
2072
2076
|
{ key: "currentSubAppCode", value: "" },
|
|
2073
2077
|
{ key: "currentSubApp", value: {} }
|
|
2074
|
-
]),
|
|
2078
|
+
]), le([
|
|
2075
2079
|
{ key: "currentCode", value: "" },
|
|
2076
2080
|
{ key: "currentTab", value: {} }
|
|
2077
2081
|
]));
|
|
2078
2082
|
}
|
|
2079
2083
|
};
|
|
2080
2084
|
let i = "", u = {};
|
|
2081
|
-
|
|
2085
|
+
re(
|
|
2082
2086
|
() => r.currentRoute.value,
|
|
2083
2087
|
async (A) => {
|
|
2084
2088
|
if (!(A.path === i && Nt(A.query, u))) {
|
|
@@ -2139,7 +2143,7 @@ const bt = (n, e = "") => {
|
|
|
2139
2143
|
};
|
|
2140
2144
|
}, Iu = Io.get("/convert/tenant"), Eu = en.get("/platform/withdefault"), dr = () => {
|
|
2141
2145
|
const n = He(), e = E(!1), t = E(""), o = E(""), r = () => {
|
|
2142
|
-
t.value =
|
|
2146
|
+
t.value = Et().id, o.value = wo().tenantId, e.value = !0;
|
|
2143
2147
|
};
|
|
2144
2148
|
D.nav.addEventListener("changeEnterpriseHandle", () => {
|
|
2145
2149
|
r();
|
|
@@ -2229,7 +2233,7 @@ const bt = (n, e = "") => {
|
|
|
2229
2233
|
}), $u = () => {
|
|
2230
2234
|
me.addEventListenerFromMicroApp("iot:change-instance", (n) => {
|
|
2231
2235
|
const e = J(), t = e.currentSubAppCode;
|
|
2232
|
-
let o =
|
|
2236
|
+
let o = yt(t);
|
|
2233
2237
|
o.forEach((s) => {
|
|
2234
2238
|
s.fixed && (s.name = n.data.instanceInfo.instanceName);
|
|
2235
2239
|
}), D.menu.setItems(o);
|
|
@@ -2267,7 +2271,7 @@ const bt = (n, e = "") => {
|
|
|
2267
2271
|
rs();
|
|
2268
2272
|
});
|
|
2269
2273
|
}, Mu = nn.get("/platform/login/pwd-advance-notify-check"), Ru = () => {
|
|
2270
|
-
const n = E([]), e = E(null), t = E([]), { entryApp: o } =
|
|
2274
|
+
const n = E([]), e = E(null), t = E([]), { entryApp: o } = _t.hooks.useEntryApp(), r = () => {
|
|
2271
2275
|
var c;
|
|
2272
2276
|
const l = (((c = J().appcategorys) == null ? void 0 : c.map((i) => i.apps).flat()) ?? []).find((i) => i.code === "messagecenter");
|
|
2273
2277
|
l && o({ microApp: l });
|
|
@@ -2283,8 +2287,8 @@ const bt = (n, e = "") => {
|
|
|
2283
2287
|
const c = Pe().id;
|
|
2284
2288
|
n.value = a.filter(
|
|
2285
2289
|
(i) => i.projectId === c || i.projectId === 0 || i.projectId === "0"
|
|
2286
|
-
), t.value && t.value.length && (t.value.forEach((i) =>
|
|
2287
|
-
|
|
2290
|
+
), t.value && t.value.length && (t.value.forEach((i) => vt.close(i)), t.value = []), await Fe(), n.value.forEach((i, u) => {
|
|
2291
|
+
vt.info({
|
|
2288
2292
|
key: i.id,
|
|
2289
2293
|
class: "message-center-notify",
|
|
2290
2294
|
message: i.title,
|
|
@@ -2315,8 +2319,8 @@ const bt = (n, e = "") => {
|
|
|
2315
2319
|
});
|
|
2316
2320
|
};
|
|
2317
2321
|
Qe(async () => {
|
|
2318
|
-
await
|
|
2319
|
-
}),
|
|
2322
|
+
await St(), s();
|
|
2323
|
+
}), It(() => {
|
|
2320
2324
|
e.value && e.value.disconnect(), e.value = null;
|
|
2321
2325
|
});
|
|
2322
2326
|
}, Qu = "v1", ju = Xe(`/api/enterpriseright/permission/${Qu}`), pr = Xe("/api/device-relation/deviceproject/v1/project/device/video", Nu), Hu = rn.get("/permissionset/user-portal-menu");
|
|
@@ -2336,7 +2340,7 @@ function po(n) {
|
|
|
2336
2340
|
function Uu(n) {
|
|
2337
2341
|
return pr.post(`/url/preview?${fr(n)}`)().run();
|
|
2338
2342
|
}
|
|
2339
|
-
const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */
|
|
2343
|
+
const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ pe({
|
|
2340
2344
|
__name: "GridItem",
|
|
2341
2345
|
props: {
|
|
2342
2346
|
active: { type: Boolean },
|
|
@@ -2354,7 +2358,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ de({
|
|
|
2354
2358
|
}, c = () => {
|
|
2355
2359
|
o("itemClick");
|
|
2356
2360
|
}, i = Ce(() => `calc(100% / ${Math.sqrt(t.gridNum)})`);
|
|
2357
|
-
return (u, A) => (N(),
|
|
2361
|
+
return (u, A) => (N(), de(
|
|
2358
2362
|
"div",
|
|
2359
2363
|
{
|
|
2360
2364
|
ref_key: "containerRef",
|
|
@@ -2370,7 +2374,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ de({
|
|
|
2370
2374
|
/* CLASS, NEED_HYDRATION */
|
|
2371
2375
|
));
|
|
2372
2376
|
}
|
|
2373
|
-
}), Wu = /* @__PURE__ */ Ee(Ju, [["__scopeId", "data-v-68946aef"]]), zu = { class: "layout-wrapper" }, Vu = /* @__PURE__ */
|
|
2377
|
+
}), Wu = /* @__PURE__ */ Ee(Ju, [["__scopeId", "data-v-68946aef"]]), zu = { class: "layout-wrapper" }, Vu = /* @__PURE__ */ pe({
|
|
2374
2378
|
__name: "GridLayout",
|
|
2375
2379
|
props: {
|
|
2376
2380
|
gridNum: {},
|
|
@@ -2382,9 +2386,9 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ de({
|
|
|
2382
2386
|
const t = n, o = e, r = (s) => {
|
|
2383
2387
|
o("update:activeIndex", s);
|
|
2384
2388
|
};
|
|
2385
|
-
return (s, a) => (N(),
|
|
2389
|
+
return (s, a) => (N(), de("div", zu, [
|
|
2386
2390
|
U(' :active="index === activeIndex" '),
|
|
2387
|
-
(N(!0),
|
|
2391
|
+
(N(!0), de(
|
|
2388
2392
|
We,
|
|
2389
2393
|
null,
|
|
2390
2394
|
_o(t.gridNum, (l, c) => (N(), V(Wu, {
|
|
@@ -2406,21 +2410,21 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ de({
|
|
|
2406
2410
|
))
|
|
2407
2411
|
]));
|
|
2408
2412
|
}
|
|
2409
|
-
}), qu = /* @__PURE__ */ Ee(Vu, [["__scopeId", "data-v-22baf4d8"]]), Ku = /* @__PURE__ */
|
|
2413
|
+
}), qu = /* @__PURE__ */ Ee(Vu, [["__scopeId", "data-v-22baf4d8"]]), Ku = /* @__PURE__ */ pe({
|
|
2410
2414
|
__name: "DirectionControl",
|
|
2411
2415
|
emits: ["change"],
|
|
2412
2416
|
setup(n, { emit: e }) {
|
|
2413
2417
|
const t = e, o = (r) => {
|
|
2414
2418
|
t("change", r);
|
|
2415
2419
|
};
|
|
2416
|
-
return (r, s) => (N(),
|
|
2420
|
+
return (r, s) => (N(), de(
|
|
2417
2421
|
"div",
|
|
2418
2422
|
{
|
|
2419
2423
|
class: "direction-control",
|
|
2420
2424
|
onDblclick: s[9] || (s[9] = te((a) => a.stopPropagation(), ["stop"]))
|
|
2421
2425
|
},
|
|
2422
2426
|
[
|
|
2423
|
-
R(v(
|
|
2427
|
+
R(v(ae), { content: "左上" }, {
|
|
2424
2428
|
default: M(() => [
|
|
2425
2429
|
x("div", {
|
|
2426
2430
|
class: "icon icon-top-left",
|
|
@@ -2430,7 +2434,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ de({
|
|
|
2430
2434
|
_: 1
|
|
2431
2435
|
/* STABLE */
|
|
2432
2436
|
}),
|
|
2433
|
-
R(v(
|
|
2437
|
+
R(v(ae), { content: "上" }, {
|
|
2434
2438
|
default: M(() => [
|
|
2435
2439
|
x("div", {
|
|
2436
2440
|
class: "icon icon-top",
|
|
@@ -2440,7 +2444,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ de({
|
|
|
2440
2444
|
_: 1
|
|
2441
2445
|
/* STABLE */
|
|
2442
2446
|
}),
|
|
2443
|
-
R(v(
|
|
2447
|
+
R(v(ae), { content: "右上" }, {
|
|
2444
2448
|
default: M(() => [
|
|
2445
2449
|
x("div", {
|
|
2446
2450
|
class: "icon icon-top-right",
|
|
@@ -2450,7 +2454,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ de({
|
|
|
2450
2454
|
_: 1
|
|
2451
2455
|
/* STABLE */
|
|
2452
2456
|
}),
|
|
2453
|
-
R(v(
|
|
2457
|
+
R(v(ae), { content: "左" }, {
|
|
2454
2458
|
default: M(() => [
|
|
2455
2459
|
x("div", {
|
|
2456
2460
|
class: "icon icon-left",
|
|
@@ -2460,7 +2464,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ de({
|
|
|
2460
2464
|
_: 1
|
|
2461
2465
|
/* STABLE */
|
|
2462
2466
|
}),
|
|
2463
|
-
R(v(
|
|
2467
|
+
R(v(ae), { content: "自动" }, {
|
|
2464
2468
|
default: M(() => [
|
|
2465
2469
|
x("div", {
|
|
2466
2470
|
class: "icon icon-auto",
|
|
@@ -2470,7 +2474,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ de({
|
|
|
2470
2474
|
_: 1
|
|
2471
2475
|
/* STABLE */
|
|
2472
2476
|
}),
|
|
2473
|
-
R(v(
|
|
2477
|
+
R(v(ae), { content: "右" }, {
|
|
2474
2478
|
default: M(() => [
|
|
2475
2479
|
x("div", {
|
|
2476
2480
|
class: "icon icon-right",
|
|
@@ -2480,7 +2484,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ de({
|
|
|
2480
2484
|
_: 1
|
|
2481
2485
|
/* STABLE */
|
|
2482
2486
|
}),
|
|
2483
|
-
R(v(
|
|
2487
|
+
R(v(ae), { content: "左下" }, {
|
|
2484
2488
|
default: M(() => [
|
|
2485
2489
|
x("div", {
|
|
2486
2490
|
class: "icon icon-bottom-left",
|
|
@@ -2490,7 +2494,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ de({
|
|
|
2490
2494
|
_: 1
|
|
2491
2495
|
/* STABLE */
|
|
2492
2496
|
}),
|
|
2493
|
-
R(v(
|
|
2497
|
+
R(v(ae), { content: "下" }, {
|
|
2494
2498
|
default: M(() => [
|
|
2495
2499
|
x("div", {
|
|
2496
2500
|
class: "icon icon-bottom",
|
|
@@ -2500,7 +2504,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ de({
|
|
|
2500
2504
|
_: 1
|
|
2501
2505
|
/* STABLE */
|
|
2502
2506
|
}),
|
|
2503
|
-
R(v(
|
|
2507
|
+
R(v(ae), { content: "右下" }, {
|
|
2504
2508
|
default: M(() => [
|
|
2505
2509
|
x("div", {
|
|
2506
2510
|
class: "icon icon-bottom-right",
|
|
@@ -2518,7 +2522,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ de({
|
|
|
2518
2522
|
}), Gu = /* @__PURE__ */ Ee(Ku, [["__scopeId", "data-v-69100474"]]), Xu = { class: "video-wrapper" }, Zu = { class: "video-top" }, Yu = { class: "video-top_l" }, ed = { class: "video-title-wrapper" }, td = { class: "video-title" }, nd = { class: "video-top_r" }, od = {
|
|
2519
2523
|
key: 0,
|
|
2520
2524
|
class: "play-status"
|
|
2521
|
-
}, rd = { class: "video-bottom" }, sd = { class: "video-bottom_r" }, id = /* @__PURE__ */
|
|
2525
|
+
}, rd = { class: "video-bottom" }, sd = { class: "video-bottom_r" }, id = /* @__PURE__ */ pe({
|
|
2522
2526
|
__name: "index",
|
|
2523
2527
|
props: {
|
|
2524
2528
|
videoUrl: {},
|
|
@@ -2567,28 +2571,28 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ de({
|
|
|
2567
2571
|
}, d = (y) => {
|
|
2568
2572
|
o("zoomControl", y);
|
|
2569
2573
|
}, m = (y) => t.authType.includes(y);
|
|
2570
|
-
return
|
|
2574
|
+
return re(
|
|
2571
2575
|
() => c.value,
|
|
2572
2576
|
() => {
|
|
2573
2577
|
c.value && c.value.addEventListener("ended", () => {
|
|
2574
2578
|
i.value = !0, t.type === "playback" && (u.value = !1);
|
|
2575
2579
|
});
|
|
2576
2580
|
}
|
|
2577
|
-
),
|
|
2581
|
+
), re(
|
|
2578
2582
|
() => c.value,
|
|
2579
2583
|
() => {
|
|
2580
2584
|
c.value && Fe(() => {
|
|
2581
2585
|
c.value.playbackRate = t.playbackRate || 1;
|
|
2582
2586
|
});
|
|
2583
2587
|
}
|
|
2584
|
-
),
|
|
2588
|
+
), re(
|
|
2585
2589
|
() => s.value,
|
|
2586
2590
|
() => {
|
|
2587
2591
|
s.value && Fe(() => {
|
|
2588
2592
|
s.value.muted = r.value;
|
|
2589
2593
|
});
|
|
2590
2594
|
}
|
|
2591
|
-
),
|
|
2595
|
+
), re(
|
|
2592
2596
|
() => t.playbackRate,
|
|
2593
2597
|
() => {
|
|
2594
2598
|
c.value && (c.value.playbackRate = t.playbackRate || 1);
|
|
@@ -2596,19 +2600,19 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ de({
|
|
|
2596
2600
|
{
|
|
2597
2601
|
immediate: !0
|
|
2598
2602
|
}
|
|
2599
|
-
),
|
|
2603
|
+
), re(
|
|
2600
2604
|
() => t.paused,
|
|
2601
2605
|
() => {
|
|
2602
2606
|
s.value && (t.paused ? s.value.pause() : s.value.play());
|
|
2603
2607
|
}
|
|
2604
|
-
),
|
|
2608
|
+
), re(
|
|
2605
2609
|
() => t.videoUrl,
|
|
2606
2610
|
() => {
|
|
2607
2611
|
u.value = !1, Fe(() => {
|
|
2608
2612
|
u.value = !0;
|
|
2609
2613
|
});
|
|
2610
2614
|
}
|
|
2611
|
-
), (y, _) => (N(),
|
|
2615
|
+
), (y, _) => (N(), de("div", Xu, [
|
|
2612
2616
|
R(v(ko), {
|
|
2613
2617
|
spinning: t.loading,
|
|
2614
2618
|
type: "component",
|
|
@@ -2628,7 +2632,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ de({
|
|
|
2628
2632
|
])
|
|
2629
2633
|
]),
|
|
2630
2634
|
x("div", nd, [
|
|
2631
|
-
["live"].includes(y.type) ? (N(),
|
|
2635
|
+
["live"].includes(y.type) ? (N(), de("span", od, "正在实时预览")) : U("v-if", !0),
|
|
2632
2636
|
U(' <das-icon class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
|
|
2633
2637
|
])
|
|
2634
2638
|
]),
|
|
@@ -2657,7 +2661,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ de({
|
|
|
2657
2661
|
onDblclick: _[2] || (_[2] = te((T) => T.stopPropagation(), ["stop"]))
|
|
2658
2662
|
},
|
|
2659
2663
|
[
|
|
2660
|
-
R(v(
|
|
2664
|
+
R(v(ae), { content: "声音" }, {
|
|
2661
2665
|
default: M(() => [
|
|
2662
2666
|
R(v(De), {
|
|
2663
2667
|
class: "icon icon-volume",
|
|
@@ -2668,7 +2672,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ de({
|
|
|
2668
2672
|
_: 1
|
|
2669
2673
|
/* STABLE */
|
|
2670
2674
|
}),
|
|
2671
|
-
R(v(
|
|
2675
|
+
R(v(ae), { content: "截图" }, {
|
|
2672
2676
|
default: M(() => [
|
|
2673
2677
|
R(v(De), {
|
|
2674
2678
|
class: "icon icon-screenshot",
|
|
@@ -2679,7 +2683,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ de({
|
|
|
2679
2683
|
_: 1
|
|
2680
2684
|
/* STABLE */
|
|
2681
2685
|
}),
|
|
2682
|
-
m("control") ? (N(), V(v(
|
|
2686
|
+
m("control") ? (N(), V(v(ae), {
|
|
2683
2687
|
key: 0,
|
|
2684
2688
|
content: "聚焦-"
|
|
2685
2689
|
}, {
|
|
@@ -2694,7 +2698,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ de({
|
|
|
2694
2698
|
_: 1
|
|
2695
2699
|
/* STABLE */
|
|
2696
2700
|
})) : U("v-if", !0),
|
|
2697
|
-
m("control") ? (N(), V(v(
|
|
2701
|
+
m("control") ? (N(), V(v(ae), {
|
|
2698
2702
|
key: 1,
|
|
2699
2703
|
content: "聚焦+"
|
|
2700
2704
|
}, {
|
|
@@ -2709,7 +2713,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ de({
|
|
|
2709
2713
|
_: 1
|
|
2710
2714
|
/* STABLE */
|
|
2711
2715
|
})) : U("v-if", !0),
|
|
2712
|
-
m("control") ? (N(), V(v(
|
|
2716
|
+
m("control") ? (N(), V(v(ae), {
|
|
2713
2717
|
key: 2,
|
|
2714
2718
|
content: "方向控制"
|
|
2715
2719
|
}, {
|
|
@@ -2740,7 +2744,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ de({
|
|
|
2740
2744
|
}, 8, ["spinning"])
|
|
2741
2745
|
]));
|
|
2742
2746
|
}
|
|
2743
|
-
}), ad = /* @__PURE__ */ Ee(id, [["__scopeId", "data-v-6c626546"]]), cd = /* @__PURE__ */
|
|
2747
|
+
}), ad = /* @__PURE__ */ Ee(id, [["__scopeId", "data-v-6c626546"]]), cd = /* @__PURE__ */ pe({
|
|
2744
2748
|
props: {
|
|
2745
2749
|
deviceInfo: {
|
|
2746
2750
|
type: Object,
|
|
@@ -2781,7 +2785,7 @@ const Fu = ju.post("data/device-auth"), Ju = /* @__PURE__ */ de({
|
|
|
2781
2785
|
};
|
|
2782
2786
|
return Qe(() => {
|
|
2783
2787
|
s();
|
|
2784
|
-
}),
|
|
2788
|
+
}), re(() => t.value, () => {
|
|
2785
2789
|
s();
|
|
2786
2790
|
}, {
|
|
2787
2791
|
deep: !0
|
|
@@ -2833,7 +2837,7 @@ function ld(n) {
|
|
|
2833
2837
|
toggleFullscreen: o
|
|
2834
2838
|
};
|
|
2835
2839
|
}
|
|
2836
|
-
const ud = /* @__PURE__ */
|
|
2840
|
+
const ud = /* @__PURE__ */ pe({
|
|
2837
2841
|
__name: "index",
|
|
2838
2842
|
props: {
|
|
2839
2843
|
deviceList: { default: () => [] },
|
|
@@ -2880,7 +2884,7 @@ const ud = /* @__PURE__ */ de({
|
|
|
2880
2884
|
-1
|
|
2881
2885
|
/* HOISTED */
|
|
2882
2886
|
)),
|
|
2883
|
-
R(v(
|
|
2887
|
+
R(v(ae), { content: "页面全屏" }, {
|
|
2884
2888
|
default: M(() => [
|
|
2885
2889
|
R(v(De), {
|
|
2886
2890
|
class: "icon",
|
|
@@ -2906,9 +2910,9 @@ const ud = /* @__PURE__ */ de({
|
|
|
2906
2910
|
let r = document.body.querySelector("#video-dialog");
|
|
2907
2911
|
r || (r = document.createElement("div"), r.setAttribute("id", "video-dialog-container"), document.body.appendChild(r));
|
|
2908
2912
|
const a = fe(ud, { gridNum: e, deviceList: t, closeCallback: () => {
|
|
2909
|
-
|
|
2913
|
+
mt(null, r), document.body.removeChild(r), o(null);
|
|
2910
2914
|
} });
|
|
2911
|
-
|
|
2915
|
+
mt(a, r);
|
|
2912
2916
|
});
|
|
2913
2917
|
}, pd = () => {
|
|
2914
2918
|
const n = E(4), e = E([]), t = E(null), o = async (s) => {
|
|
@@ -2948,8 +2952,8 @@ const ud = /* @__PURE__ */ de({
|
|
|
2948
2952
|
}));
|
|
2949
2953
|
};
|
|
2950
2954
|
return Qe(async () => {
|
|
2951
|
-
await
|
|
2952
|
-
}),
|
|
2955
|
+
await St(), r();
|
|
2956
|
+
}), It(() => {
|
|
2953
2957
|
t.value && t.value.disconnect(), t.value = null;
|
|
2954
2958
|
}), {
|
|
2955
2959
|
gridNum: n,
|
|
@@ -3048,7 +3052,7 @@ class hr {
|
|
|
3048
3052
|
this.statusCode = e, this.statusText = t, this.content = o;
|
|
3049
3053
|
}
|
|
3050
3054
|
}
|
|
3051
|
-
class
|
|
3055
|
+
class Ot {
|
|
3052
3056
|
get(e, t) {
|
|
3053
3057
|
return this.send({
|
|
3054
3058
|
...t,
|
|
@@ -3156,7 +3160,7 @@ async function gr(n, e, t, o, r, s) {
|
|
|
3156
3160
|
n.log(g.Trace, `(${e} transport) request complete. Response status: ${u.statusCode}.`);
|
|
3157
3161
|
}
|
|
3158
3162
|
function yd(n) {
|
|
3159
|
-
return n === void 0 ? new
|
|
3163
|
+
return n === void 0 ? new Ct(g.Information) : n === null ? at.instance : n.log !== void 0 ? n : new Ct(n);
|
|
3160
3164
|
}
|
|
3161
3165
|
class _d {
|
|
3162
3166
|
constructor(e, t) {
|
|
@@ -3168,7 +3172,7 @@ class _d {
|
|
|
3168
3172
|
});
|
|
3169
3173
|
}
|
|
3170
3174
|
}
|
|
3171
|
-
class
|
|
3175
|
+
class Ct {
|
|
3172
3176
|
constructor(e) {
|
|
3173
3177
|
this._minLevel = e, this.out = console;
|
|
3174
3178
|
}
|
|
@@ -3238,7 +3242,7 @@ function Ed() {
|
|
|
3238
3242
|
return global;
|
|
3239
3243
|
throw new Error("could not find global");
|
|
3240
3244
|
}
|
|
3241
|
-
class Sd extends
|
|
3245
|
+
class Sd extends Ot {
|
|
3242
3246
|
constructor(e) {
|
|
3243
3247
|
if (super(), this._logger = e, typeof fetch > "u" || K.isNode) {
|
|
3244
3248
|
const t = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
@@ -3323,7 +3327,7 @@ function ho(n, e) {
|
|
|
3323
3327
|
}
|
|
3324
3328
|
return t;
|
|
3325
3329
|
}
|
|
3326
|
-
class Td extends
|
|
3330
|
+
class Td extends Ot {
|
|
3327
3331
|
constructor(e) {
|
|
3328
3332
|
super(), this._logger = e;
|
|
3329
3333
|
}
|
|
@@ -3347,7 +3351,7 @@ class Td extends Dt {
|
|
|
3347
3351
|
}) : Promise.reject(new Error("No url defined.")) : Promise.reject(new Error("No method defined."));
|
|
3348
3352
|
}
|
|
3349
3353
|
}
|
|
3350
|
-
class kd extends
|
|
3354
|
+
class kd extends Ot {
|
|
3351
3355
|
/** Creates a new instance of the {@link @microsoft/signalr.DefaultHttpClient}, using the provided {@link @microsoft/signalr.ILogger} to log messages. */
|
|
3352
3356
|
constructor(e) {
|
|
3353
3357
|
if (super(), typeof fetch < "u" || K.isNode)
|
|
@@ -4045,7 +4049,7 @@ class xe {
|
|
|
4045
4049
|
}
|
|
4046
4050
|
xe.Authorization = "Authorization";
|
|
4047
4051
|
xe.Cookie = "Cookie";
|
|
4048
|
-
class Rd extends
|
|
4052
|
+
class Rd extends Ot {
|
|
4049
4053
|
constructor(e, t) {
|
|
4050
4054
|
super(), this._innerClient = e, this._accessTokenFactory = t;
|
|
4051
4055
|
}
|
|
@@ -4066,10 +4070,10 @@ var X;
|
|
|
4066
4070
|
(function(n) {
|
|
4067
4071
|
n[n.None = 0] = "None", n[n.WebSockets = 1] = "WebSockets", n[n.ServerSentEvents = 2] = "ServerSentEvents", n[n.LongPolling = 4] = "LongPolling";
|
|
4068
4072
|
})(X || (X = {}));
|
|
4069
|
-
var
|
|
4073
|
+
var se;
|
|
4070
4074
|
(function(n) {
|
|
4071
4075
|
n[n.Text = 1] = "Text", n[n.Binary = 2] = "Binary";
|
|
4072
|
-
})(
|
|
4076
|
+
})(se || (se = {}));
|
|
4073
4077
|
let Qd = class {
|
|
4074
4078
|
constructor() {
|
|
4075
4079
|
this._isAborted = !1, this.onabort = null;
|
|
@@ -4093,7 +4097,7 @@ class Ao {
|
|
|
4093
4097
|
this._httpClient = e, this._logger = t, this._pollAbort = new Qd(), this._options = o, this._running = !1, this.onreceive = null, this.onclose = null;
|
|
4094
4098
|
}
|
|
4095
4099
|
async connect(e, t) {
|
|
4096
|
-
if (Y.isRequired(e, "url"), Y.isRequired(t, "transferFormat"), Y.isIn(t,
|
|
4100
|
+
if (Y.isRequired(e, "url"), Y.isRequired(t, "transferFormat"), Y.isIn(t, se, "transferFormat"), this._url = e, this._logger.log(g.Trace, "(LongPolling transport) Connecting."), t === se.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
|
|
4097
4101
|
throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");
|
|
4098
4102
|
const [o, r] = Ke(), s = { [o]: r, ...this._options.headers }, a = {
|
|
4099
4103
|
abortSignal: this._pollAbort.signal,
|
|
@@ -4101,7 +4105,7 @@ class Ao {
|
|
|
4101
4105
|
timeout: 1e5,
|
|
4102
4106
|
withCredentials: this._options.withCredentials
|
|
4103
4107
|
};
|
|
4104
|
-
t ===
|
|
4108
|
+
t === se.Binary && (a.responseType = "arraybuffer");
|
|
4105
4109
|
const l = `${e}&_=${Date.now()}`;
|
|
4106
4110
|
this._logger.log(g.Trace, `(LongPolling transport) polling: ${l}.`);
|
|
4107
4111
|
const c = await this._httpClient.get(l, a);
|
|
@@ -4159,9 +4163,9 @@ class jd {
|
|
|
4159
4163
|
this._httpClient = e, this._accessToken = t, this._logger = o, this._options = r, this.onreceive = null, this.onclose = null;
|
|
4160
4164
|
}
|
|
4161
4165
|
async connect(e, t) {
|
|
4162
|
-
return Y.isRequired(e, "url"), Y.isRequired(t, "transferFormat"), Y.isIn(t,
|
|
4166
|
+
return Y.isRequired(e, "url"), Y.isRequired(t, "transferFormat"), Y.isIn(t, se, "transferFormat"), this._logger.log(g.Trace, "(SSE transport) Connecting."), this._url = e, this._accessToken && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(this._accessToken)}`), new Promise((o, r) => {
|
|
4163
4167
|
let s = !1;
|
|
4164
|
-
if (t !==
|
|
4168
|
+
if (t !== se.Text) {
|
|
4165
4169
|
r(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));
|
|
4166
4170
|
return;
|
|
4167
4171
|
}
|
|
@@ -4209,7 +4213,7 @@ class Hd {
|
|
|
4209
4213
|
this._logger = o, this._accessTokenFactory = t, this._logMessageContent = r, this._webSocketConstructor = s, this._httpClient = e, this.onreceive = null, this.onclose = null, this._headers = a;
|
|
4210
4214
|
}
|
|
4211
4215
|
async connect(e, t) {
|
|
4212
|
-
Y.isRequired(e, "url"), Y.isRequired(t, "transferFormat"), Y.isIn(t,
|
|
4216
|
+
Y.isRequired(e, "url"), Y.isRequired(t, "transferFormat"), Y.isIn(t, se, "transferFormat"), this._logger.log(g.Trace, "(WebSockets transport) Connecting.");
|
|
4213
4217
|
let o;
|
|
4214
4218
|
return this._accessTokenFactory && (o = await this._accessTokenFactory()), new Promise((r, s) => {
|
|
4215
4219
|
e = e.replace(/^http/, "ws");
|
|
@@ -4223,7 +4227,7 @@ class Hd {
|
|
|
4223
4227
|
});
|
|
4224
4228
|
} else
|
|
4225
4229
|
o && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(o)}`);
|
|
4226
|
-
a || (a = new this._webSocketConstructor(e)), t ===
|
|
4230
|
+
a || (a = new this._webSocketConstructor(e)), t === se.Binary && (a.binaryType = "arraybuffer"), a.onopen = (i) => {
|
|
4227
4231
|
this._logger.log(g.Information, `WebSocket connected to ${e}.`), this._webSocket = a, c = !0, r();
|
|
4228
4232
|
}, a.onerror = (i) => {
|
|
4229
4233
|
let u = null;
|
|
@@ -4279,7 +4283,7 @@ class Nd {
|
|
|
4279
4283
|
!K.isNode && typeof WebSocket < "u" && !t.WebSocket ? t.WebSocket = WebSocket : K.isNode && !t.WebSocket && o && (t.WebSocket = o), !K.isNode && typeof EventSource < "u" && !t.EventSource ? t.EventSource = EventSource : K.isNode && !t.EventSource && typeof r < "u" && (t.EventSource = r), this._httpClient = new Rd(t.httpClient || new kd(this._logger), t.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = t, this.onreceive = null, this.onclose = null;
|
|
4280
4284
|
}
|
|
4281
4285
|
async start(e) {
|
|
4282
|
-
if (e = e ||
|
|
4286
|
+
if (e = e || se.Binary, Y.isIn(e, se, "transferFormat"), this._logger.log(g.Debug, `Starting connection with transfer format '${se[e]}'.`), this._connectionState !== "Disconnected")
|
|
4283
4287
|
return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));
|
|
4284
4288
|
if (this._connectionState = "Connecting", this._startInternalPromise = this._startInternal(e), await this._startInternalPromise, this._connectionState === "Disconnecting") {
|
|
4285
4289
|
const t = "Failed to start the HttpConnection before stop() was called.";
|
|
@@ -4446,7 +4450,7 @@ class Nd {
|
|
|
4446
4450
|
if (s == null)
|
|
4447
4451
|
return this._logger.log(g.Debug, `Skipping transport '${e.transport}' because it is not supported by this client.`), new Error(`Skipping transport '${e.transport}' because it is not supported by this client.`);
|
|
4448
4452
|
if (Ud(t, s))
|
|
4449
|
-
if (e.transferFormats.map((l) =>
|
|
4453
|
+
if (e.transferFormats.map((l) => se[l]).indexOf(o) >= 0) {
|
|
4450
4454
|
if (s === X.WebSockets && !this._options.WebSocket || s === X.ServerSentEvents && !this._options.EventSource)
|
|
4451
4455
|
return this._logger.log(g.Debug, `Skipping transport '${X[s]}' because it is not supported in your environment.'`), new fd(`'${X[s]}' is not supported in your environment.`, s);
|
|
4452
4456
|
this._logger.log(g.Debug, `Selecting transport '${X[s]}'.`);
|
|
@@ -4456,7 +4460,7 @@ class Nd {
|
|
|
4456
4460
|
return l;
|
|
4457
4461
|
}
|
|
4458
4462
|
} else
|
|
4459
|
-
return this._logger.log(g.Debug, `Skipping transport '${X[s]}' because it does not support the requested transfer format '${
|
|
4463
|
+
return this._logger.log(g.Debug, `Skipping transport '${X[s]}' because it does not support the requested transfer format '${se[o]}'.`), new Error(`'${X[s]}' does not support ${se[o]}.`);
|
|
4460
4464
|
else
|
|
4461
4465
|
return this._logger.log(g.Debug, `Skipping transport '${X[s]}' because it was disabled by the client.`), new hd(`'${X[s]}' is disabled by the client.`, s);
|
|
4462
4466
|
}
|
|
@@ -4501,10 +4505,10 @@ function Ud(n, e) {
|
|
|
4501
4505
|
}
|
|
4502
4506
|
class wn {
|
|
4503
4507
|
constructor(e) {
|
|
4504
|
-
this._transport = e, this._buffer = [], this._executing = !0, this._sendBufferedData = new
|
|
4508
|
+
this._transport = e, this._buffer = [], this._executing = !0, this._sendBufferedData = new ht(), this._transportResult = new ht(), this._sendLoopPromise = this._sendLoop();
|
|
4505
4509
|
}
|
|
4506
4510
|
send(e) {
|
|
4507
|
-
return this._bufferData(e), this._transportResult || (this._transportResult = new
|
|
4511
|
+
return this._bufferData(e), this._transportResult || (this._transportResult = new ht()), this._transportResult.promise;
|
|
4508
4512
|
}
|
|
4509
4513
|
stop() {
|
|
4510
4514
|
return this._executing = !1, this._sendBufferedData.resolve(), this._sendLoopPromise;
|
|
@@ -4520,7 +4524,7 @@ class wn {
|
|
|
4520
4524
|
this._transportResult && this._transportResult.reject("Connection stopped.");
|
|
4521
4525
|
break;
|
|
4522
4526
|
}
|
|
4523
|
-
this._sendBufferedData = new
|
|
4527
|
+
this._sendBufferedData = new ht();
|
|
4524
4528
|
const e = this._transportResult;
|
|
4525
4529
|
this._transportResult = void 0;
|
|
4526
4530
|
const t = typeof this._buffer[0] == "string" ? this._buffer.join("") : wn._concatBuffers(this._buffer);
|
|
@@ -4540,7 +4544,7 @@ class wn {
|
|
|
4540
4544
|
return o.buffer;
|
|
4541
4545
|
}
|
|
4542
4546
|
}
|
|
4543
|
-
class
|
|
4547
|
+
class ht {
|
|
4544
4548
|
constructor() {
|
|
4545
4549
|
this.promise = new Promise((e, t) => [this._resolver, this._rejecter] = [e, t]);
|
|
4546
4550
|
}
|
|
@@ -4554,7 +4558,7 @@ class gt {
|
|
|
4554
4558
|
const Fd = "json";
|
|
4555
4559
|
class Jd {
|
|
4556
4560
|
constructor() {
|
|
4557
|
-
this.name = Fd, this.version = 2, this.transferFormat =
|
|
4561
|
+
this.name = Fd, this.version = 2, this.transferFormat = se.Text;
|
|
4558
4562
|
}
|
|
4559
4563
|
/** Creates an array of {@link @microsoft/signalr.HubMessage} objects from the specified serialized representation.
|
|
4560
4564
|
*
|
|
@@ -4656,9 +4660,9 @@ class Vd {
|
|
|
4656
4660
|
this.logger = e;
|
|
4657
4661
|
else if (typeof e == "string") {
|
|
4658
4662
|
const t = zd(e);
|
|
4659
|
-
this.logger = new
|
|
4663
|
+
this.logger = new Ct(t);
|
|
4660
4664
|
} else
|
|
4661
|
-
this.logger = new
|
|
4665
|
+
this.logger = new Ct(e);
|
|
4662
4666
|
return this;
|
|
4663
4667
|
}
|
|
4664
4668
|
withUrl(e, t) {
|
|
@@ -4726,16 +4730,16 @@ const Gd = () => {
|
|
|
4726
4730
|
}), n.onclose((e) => {
|
|
4727
4731
|
}), n.onreconnected(() => {
|
|
4728
4732
|
}), n;
|
|
4729
|
-
},
|
|
4733
|
+
}, Dt = "v1", Xd = je(`/api/graphics-engine/component/${Dt}`, (n) => (n.customErrorMessage = () => "", n)), Zd = je(`/api/portal/manager/${Dt}`, (n) => (n.customErrorMessage = () => "", n)), Yd = je(`/api/speech-base/speech/${Dt}`, (n) => (n.customErrorMessage = () => "", n)), vo = Xd.get("/component/client/heartbeat"), ep = Zd.get("/basics/by-alias");
|
|
4730
4734
|
Yd.post("/control/callBack");
|
|
4731
|
-
const tp = je(`/api/tool/event-bus/${
|
|
4732
|
-
const n = on(), { entryApp: e } =
|
|
4735
|
+
const tp = je(`/api/tool/event-bus/${Dt}/`), Ht = tp.post("/publish"), np = tn.get("/permissionset/application"), op = () => {
|
|
4736
|
+
const n = on(), { entryApp: e } = _t.hooks.useEntryApp(), { entryMenu: t } = _t.hooks.useEntryMenu();
|
|
4733
4737
|
let o = null;
|
|
4734
4738
|
return Qe(async () => {
|
|
4735
4739
|
var d;
|
|
4736
4740
|
let r = ((d = n.meta) == null ? void 0 : d.showLayout) ?? !0, { showLayout: s = !0 } = n.query;
|
|
4737
4741
|
if (s === "false" && (s = !1), !r || !s) return;
|
|
4738
|
-
await
|
|
4742
|
+
await St();
|
|
4739
4743
|
const a = (m) => {
|
|
4740
4744
|
try {
|
|
4741
4745
|
return JSON.parse(m);
|
|
@@ -4825,12 +4829,12 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
4825
4829
|
}, 5e3), w.value = (window.navigator.onLine ? "on" : "off") + "line";
|
|
4826
4830
|
};
|
|
4827
4831
|
window.addEventListener("online", () => f("online")), window.addEventListener("offline", () => f("offline"));
|
|
4828
|
-
}),
|
|
4832
|
+
}), It(() => {
|
|
4829
4833
|
o && clearInterval(o);
|
|
4830
4834
|
}), {};
|
|
4831
|
-
},
|
|
4835
|
+
}, $t = "v1", rp = Xe(`/api/fms/report/${$t}`), bn = Xe(`/api/emergency/manage/${$t}`), sp = rn.get("/permissionset/user-portal-menu"), Ar = Xe(`/api/alarm/config/${$t}`), ip = Xe(`/api/alarm/run-time/${$t}`), ap = Ar.get("/alarm-definition/status-option"), cp = ip.post("/record/handling"), lp = Ar.get("/alarm-level/prompttone"), up = rp.get("/alarm/rule/list"), dp = Eo.get("/controller/space-children-all-type"), pp = Eo.get("/controller/fuzzy-area-small"), fp = bn.get("/emergency-event/event/type"), hp = bn.get("/emergency-event/event/level"), gp = bn.get("/emergency-plan/plan/handle-time"), Ap = { class: "handle-alarm-container" }, mp = { class: "select-check" }, vp = { class: "form-box" }, yp = { class: "select-check" }, _p = { style: { "margin-left": "8px" } }, wp = { class: "foot-btn-box" }, bp = {
|
|
4832
4836
|
name: "handleAlarm"
|
|
4833
|
-
}, Cp = /* @__PURE__ */
|
|
4837
|
+
}, Cp = /* @__PURE__ */ pe({
|
|
4834
4838
|
...bp,
|
|
4835
4839
|
props: {
|
|
4836
4840
|
projectId: { default: "" },
|
|
@@ -4905,15 +4909,15 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
4905
4909
|
if (O) return {};
|
|
4906
4910
|
$.value = I.data.filter((k) => k.status), $.value.length > 0 && (i.value.workOrderRules = $.value[0].id);
|
|
4907
4911
|
};
|
|
4908
|
-
|
|
4909
|
-
O || (G(),
|
|
4910
|
-
}),
|
|
4912
|
+
re(c, (O) => {
|
|
4913
|
+
O || (G(), Oe());
|
|
4914
|
+
}), re(
|
|
4911
4915
|
B,
|
|
4912
4916
|
(O) => {
|
|
4913
4917
|
O ? (T.value = !0, i.value.customPath = Q("选填").value) : (T.value = !1, i.value.customPath = "");
|
|
4914
4918
|
},
|
|
4915
4919
|
{ immediate: !0 }
|
|
4916
|
-
),
|
|
4920
|
+
), re(
|
|
4917
4921
|
P,
|
|
4918
4922
|
(O) => {
|
|
4919
4923
|
O ? (i.value.reportTheme = Q("告警对象").value, C.value = !0) : (m.value = "请输入", i.value.reportTheme = "", C.value = !1);
|
|
@@ -4923,19 +4927,19 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
4923
4927
|
const F = (O) => {
|
|
4924
4928
|
var I;
|
|
4925
4929
|
return (I = a.value) == null ? void 0 : I.parentNode.parentNode;
|
|
4926
|
-
},
|
|
4930
|
+
}, ie = (O) => {
|
|
4927
4931
|
u.value.reportTheme = "";
|
|
4928
4932
|
}, Te = (O, I) => {
|
|
4929
4933
|
I.length > 0 && (f.value = I[0].path), i.value.reportPosition = O, _.value = "";
|
|
4930
|
-
},
|
|
4934
|
+
}, oe = (O) => {
|
|
4931
4935
|
O && (u.value.reportPosition = "", f.value = ""), O ? (i.value.reportPosition = null, f.value = "", d.value = "告警对象位置") : (i.value.reportPosition = null, f.value = "", d.value = "请选择");
|
|
4932
4936
|
}, ne = (O) => {
|
|
4933
4937
|
O && (u.value.reportTheme = ""), O ? (i.value.reportTheme = "", m.value = "告警对象") : (i.value.reportTheme = "", m.value = "请输入");
|
|
4934
4938
|
}, G = () => {
|
|
4935
4939
|
u.value.processTypeId = "", u.value.reason = "", u.value.treatmentPlan = "", u.value.reportPosition = "", u.value.reportTheme = "", u.value.workOrderRules = "", u.value.eventTypeId = "", u.value.eventLevelId = "", u.value.timeLimit = "";
|
|
4936
|
-
},
|
|
4940
|
+
}, Oe = () => {
|
|
4937
4941
|
i.value.processTypeId = "confirm", i.value.reason = "", i.value.treatmentPlan = "", i.value.remarks = "", i.value.reportPosition = "", i.value.reportTheme = "", i.value.workOrderRules = null, B.value = !0, P.value = !0, C.value = !0, i.value.reportTheme = Q("告警对象").value, f.value = "", d.value = "告警对象位置", m.value = "请输入", i.value.eventTypeId = "", i.value.eventLevelId = null, i.value.timeLimit = "", i.value.interval = 1, p.value = [], h.value = [];
|
|
4938
|
-
},
|
|
4942
|
+
}, Lt = (O) => {
|
|
4939
4943
|
O == "eventTypeId" && (i.value.eventLevelId = null, Cn()), O == "eventLevelId" && In(), O == "interval" && (u.value.timeLimit = "", i.value.interval == 3 ? (A.value = !0, i.value.timeLimit = "") : A.value = !1);
|
|
4940
4944
|
}, mr = async () => {
|
|
4941
4945
|
const [O, I] = await fp().run();
|
|
@@ -4947,9 +4951,9 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
4947
4951
|
}, [I, k] = await hp(O).run();
|
|
4948
4952
|
if (I) return {};
|
|
4949
4953
|
const Ae = { 1: "一级", 2: "二级", 3: "三级", 4: "四级" };
|
|
4950
|
-
h.value = k.map((
|
|
4951
|
-
id: `${
|
|
4952
|
-
name: Ae[
|
|
4954
|
+
h.value = k.map((ft) => ({
|
|
4955
|
+
id: `${ft}`,
|
|
4956
|
+
name: Ae[ft] ? Ae[ft] : ft
|
|
4953
4957
|
})), k.length && !i.value.eventLevelId && (i.value.eventLevelId = h.value[0].id, In());
|
|
4954
4958
|
}, In = async () => {
|
|
4955
4959
|
const O = {
|
|
@@ -5019,7 +5023,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5019
5023
|
return e({
|
|
5020
5024
|
open: Cr,
|
|
5021
5025
|
close: xt
|
|
5022
|
-
}), (O, I) => (N(),
|
|
5026
|
+
}), (O, I) => (N(), de("div", Ap, [
|
|
5023
5027
|
R(v(sn), {
|
|
5024
5028
|
modelValue: c.value,
|
|
5025
5029
|
"onUpdate:modelValue": I[31] || (I[31] = (k) => c.value = k),
|
|
@@ -5033,7 +5037,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5033
5037
|
"destroy-on-close": ""
|
|
5034
5038
|
}, {
|
|
5035
5039
|
header: M(() => [
|
|
5036
|
-
|
|
5040
|
+
ue(
|
|
5037
5041
|
Z(v(Q)("告警处理").value),
|
|
5038
5042
|
1
|
|
5039
5043
|
/* TEXT */
|
|
@@ -5046,7 +5050,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5046
5050
|
onClick: wr
|
|
5047
5051
|
}, {
|
|
5048
5052
|
default: M(() => [
|
|
5049
|
-
|
|
5053
|
+
ue(
|
|
5050
5054
|
Z(v(Q)("取消").value),
|
|
5051
5055
|
1
|
|
5052
5056
|
/* TEXT */
|
|
@@ -5060,7 +5064,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5060
5064
|
onClick: I[29] || (I[29] = (k) => En(1))
|
|
5061
5065
|
}, {
|
|
5062
5066
|
default: M(() => [
|
|
5063
|
-
|
|
5067
|
+
ue(
|
|
5064
5068
|
Z(v(Q)("结束处理").value),
|
|
5065
5069
|
1
|
|
5066
5070
|
/* TEXT */
|
|
@@ -5075,7 +5079,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5075
5079
|
onClick: I[30] || (I[30] = (k) => En(2))
|
|
5076
5080
|
}, {
|
|
5077
5081
|
default: M(() => [
|
|
5078
|
-
|
|
5082
|
+
ue(
|
|
5079
5083
|
Z(v(Q)("继续处理").value),
|
|
5080
5084
|
1
|
|
5081
5085
|
/* TEXT */
|
|
@@ -5206,11 +5210,11 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5206
5210
|
modelValue: B.value,
|
|
5207
5211
|
"onUpdate:modelValue": I[12] || (I[12] = (k) => B.value = k),
|
|
5208
5212
|
checkboxType: "default",
|
|
5209
|
-
onChange:
|
|
5213
|
+
onChange: oe,
|
|
5210
5214
|
size: "middle"
|
|
5211
5215
|
}, {
|
|
5212
5216
|
default: M(() => [
|
|
5213
|
-
|
|
5217
|
+
ue(
|
|
5214
5218
|
Z(v(Q)("告警对象位置").value),
|
|
5215
5219
|
1
|
|
5216
5220
|
/* TEXT */
|
|
@@ -5242,7 +5246,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5242
5246
|
modelValue: i.value.reportTheme,
|
|
5243
5247
|
"onUpdate:modelValue": I[14] || (I[14] = (k) => i.value.reportTheme = k),
|
|
5244
5248
|
placeholder: m.value,
|
|
5245
|
-
onChange:
|
|
5249
|
+
onChange: ie
|
|
5246
5250
|
}, null, 8, ["disabled", "modelValue", "placeholder"]),
|
|
5247
5251
|
R(v(Bn), {
|
|
5248
5252
|
modelValue: P.value,
|
|
@@ -5252,7 +5256,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5252
5256
|
size: "middle"
|
|
5253
5257
|
}, {
|
|
5254
5258
|
default: M(() => [
|
|
5255
|
-
|
|
5259
|
+
ue(
|
|
5256
5260
|
Z(v(Q)("告警对象").value),
|
|
5257
5261
|
1
|
|
5258
5262
|
/* TEXT */
|
|
@@ -5300,7 +5304,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5300
5304
|
"get-popup-container": F,
|
|
5301
5305
|
marginBottom: "30px",
|
|
5302
5306
|
marginRight: "0",
|
|
5303
|
-
onChange: I[21] || (I[21] = (k) =>
|
|
5307
|
+
onChange: I[21] || (I[21] = (k) => Lt("eventTypeId"))
|
|
5304
5308
|
}, null, 8, ["label", "modelValue", "error", "options"])) : U("v-if", !0),
|
|
5305
5309
|
i.value.processTypeId == "createcontingency" ? (N(), V(v(_e), {
|
|
5306
5310
|
key: 7,
|
|
@@ -5318,7 +5322,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5318
5322
|
"get-popup-container": F,
|
|
5319
5323
|
marginBottom: "30px",
|
|
5320
5324
|
marginRight: "0",
|
|
5321
|
-
onChange: I[24] || (I[24] = (k) =>
|
|
5325
|
+
onChange: I[24] || (I[24] = (k) => Lt("eventLevelId"))
|
|
5322
5326
|
}, null, 8, ["label", "modelValue", "error", "options"])) : U("v-if", !0),
|
|
5323
5327
|
i.value.processTypeId == "createcontingency" ? (N(), V(v(_e), {
|
|
5324
5328
|
key: 8,
|
|
@@ -5350,7 +5354,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5350
5354
|
"border-type": "underline",
|
|
5351
5355
|
size: "small",
|
|
5352
5356
|
"get-popup-container": F,
|
|
5353
|
-
onChange: I[26] || (I[26] = (k) =>
|
|
5357
|
+
onChange: I[26] || (I[26] = (k) => Lt("interval")),
|
|
5354
5358
|
placeholder: "请选择"
|
|
5355
5359
|
}, null, 8, ["modelValue", "options"])
|
|
5356
5360
|
])
|
|
@@ -5379,14 +5383,14 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5379
5383
|
}), Ip = /* @__PURE__ */ Ee(Cp, [["__scopeId", "data-v-1ecf3324"]]), Ep = (n, e, t) => ({
|
|
5380
5384
|
handleAlarmVue: () => fe(Ip, {
|
|
5381
5385
|
handerIds: e.value,
|
|
5382
|
-
projectId:
|
|
5386
|
+
projectId: Et().id,
|
|
5383
5387
|
ref: n,
|
|
5384
5388
|
onEmitFn: (r, s) => {
|
|
5385
5389
|
}
|
|
5386
5390
|
})
|
|
5387
5391
|
}), Sp = { class: "alarm-msg" }, Tp = { style: { position: "relative" } }, kp = { class: "title-left" }, Pp = { class: "title-box" }, Bp = { class: "content-box" }, Op = { class: "alarm-msg-line" }, Dp = { class: "alarm-msg-line-left" }, $p = { class: "alarm-msg-line" }, Lp = { class: "alarm-msg-line-left" }, xp = { class: "alarm-msg-line-right alarm-content-object" }, Mp = { class: "alarm-msg-line" }, Rp = { class: "alarm-msg-line-left" }, Qp = { class: "alarm-msg-line-right alarm-content" }, jp = { class: "btn-box" }, Hp = {
|
|
5388
5392
|
name: "alarm"
|
|
5389
|
-
}, Np = /* @__PURE__ */
|
|
5393
|
+
}, Np = /* @__PURE__ */ pe({
|
|
5390
5394
|
...Hp,
|
|
5391
5395
|
props: {
|
|
5392
5396
|
alarmhandle: { type: Boolean, default: !1 },
|
|
@@ -5399,7 +5403,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5399
5403
|
}, s = () => {
|
|
5400
5404
|
o("handerDetail", t.msgItem);
|
|
5401
5405
|
};
|
|
5402
|
-
return (a, l) => (N(),
|
|
5406
|
+
return (a, l) => (N(), de(
|
|
5403
5407
|
We,
|
|
5404
5408
|
null,
|
|
5405
5409
|
[
|
|
@@ -5497,7 +5501,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5497
5501
|
size: "middle"
|
|
5498
5502
|
}, {
|
|
5499
5503
|
default: M(() => [
|
|
5500
|
-
|
|
5504
|
+
ue(
|
|
5501
5505
|
Z(v(Q)("设备详情").value),
|
|
5502
5506
|
1
|
|
5503
5507
|
/* TEXT */
|
|
@@ -5514,7 +5518,7 @@ const tp = je(`/api/tool/event-bus/${$t}/`), Ht = tp.post("/publish"), np = tn.g
|
|
|
5514
5518
|
size: "middle"
|
|
5515
5519
|
}, {
|
|
5516
5520
|
default: M(() => [
|
|
5517
|
-
|
|
5521
|
+
ue(
|
|
5518
5522
|
Z(v(Q)("处理").value),
|
|
5519
5523
|
1
|
|
5520
5524
|
/* TEXT */
|
|
@@ -5566,7 +5570,7 @@ const Fp = () => {
|
|
|
5566
5570
|
var P;
|
|
5567
5571
|
const C = [];
|
|
5568
5572
|
C.push({ alarmId: b.recordId }), r.value = C, (P = t.value) == null || P.open();
|
|
5569
|
-
}, { entryApp: A } =
|
|
5573
|
+
}, { entryApp: A } = _t.hooks.useEntryApp(), p = (b) => {
|
|
5570
5574
|
So(b.equipmentCode, b.equipmentPanelCode);
|
|
5571
5575
|
}, { handleAlarmVue: h } = Ep(t, r), S = async () => {
|
|
5572
5576
|
var P;
|
|
@@ -5580,7 +5584,7 @@ const Fp = () => {
|
|
|
5580
5584
|
}, d = (b) => {
|
|
5581
5585
|
if (!b) return;
|
|
5582
5586
|
const C = Up();
|
|
5583
|
-
|
|
5587
|
+
vt.open({
|
|
5584
5588
|
key: C,
|
|
5585
5589
|
class: "alarm-notify",
|
|
5586
5590
|
message: Q("新告警").value,
|
|
@@ -5663,15 +5667,15 @@ const Fp = () => {
|
|
|
5663
5667
|
}));
|
|
5664
5668
|
}
|
|
5665
5669
|
};
|
|
5666
|
-
}, Jp = ["src", "muted", "loop"], Wp = /* @__PURE__ */
|
|
5670
|
+
}, Jp = ["src", "muted", "loop"], Wp = /* @__PURE__ */ pe({
|
|
5667
5671
|
__name: "index",
|
|
5668
5672
|
setup(n) {
|
|
5669
5673
|
const { alarmSocket: e, creatAlarmSocket: t, audioObj: o, audioAlarmRef: r, handleAlarmVue: s } = Fp();
|
|
5670
5674
|
return Qe(async () => {
|
|
5671
|
-
await
|
|
5672
|
-
}),
|
|
5675
|
+
await St(), t();
|
|
5676
|
+
}), It(() => {
|
|
5673
5677
|
e.value && e.value.disconnect(), e.value = null;
|
|
5674
|
-
}), (a, l) => (N(),
|
|
5678
|
+
}), (a, l) => (N(), de(
|
|
5675
5679
|
We,
|
|
5676
5680
|
null,
|
|
5677
5681
|
[
|
|
@@ -5690,15 +5694,15 @@ const Fp = () => {
|
|
|
5690
5694
|
/* STABLE_FRAGMENT */
|
|
5691
5695
|
));
|
|
5692
5696
|
}
|
|
5693
|
-
}), zp = { class: "das-main-app-container" }, Vp = /* @__PURE__ */
|
|
5697
|
+
}), zp = { class: "das-main-app-container" }, Vp = /* @__PURE__ */ pe({
|
|
5694
5698
|
__name: "index",
|
|
5695
5699
|
setup(n) {
|
|
5696
|
-
const { isFullscreen: e } = lt(), t = Ce(() => !e.value), o = Ce(() => ee.excludeRoutes), r = Ce(() => ee.routeKeepAliveVisible), s = Ce(() => ({ mode:
|
|
5700
|
+
const { isFullscreen: e } = lt(), t = Ce(() => !e.value), o = Ce(() => ee.excludeRoutes), r = Ce(() => ee.routeKeepAliveVisible), s = Ce(() => ({ mode: bt.value === 1 ? "vertical" : "inline" })), { initNextTick: a } = gu(), { innerPage: l, commandList: c, initNextTick: i } = Au(a);
|
|
5697
5701
|
bu(l, a, i), wu(), yu(), Su();
|
|
5698
5702
|
const { $changePwd: u, $personSetDialog: A } = Cu(), { changeEnterprisesVisible: p, userId: h, tenantId: S, changeEnterprise: w } = dr();
|
|
5699
5703
|
vu();
|
|
5700
5704
|
const { fontColor: f, backgroudColor: d, borderColor: m } = _u();
|
|
5701
|
-
return $u(), Lu(c), xu(), Ru(), pd(), op(), (y, _) => (N(),
|
|
5705
|
+
return $u(), Lu(c), xu(), Ru(), pd(), op(), (y, _) => (N(), de("div", zp, [
|
|
5702
5706
|
R(v(Ps), { platformInitNextTick: v(a) }, {
|
|
5703
5707
|
default: M(() => [
|
|
5704
5708
|
R(fs, {
|
|
@@ -5751,15 +5755,15 @@ E("@das-fed/web");
|
|
|
5751
5755
|
const Kp = [
|
|
5752
5756
|
{
|
|
5753
5757
|
path: Ie,
|
|
5754
|
-
component: () => import("./index-
|
|
5758
|
+
component: () => import("./index-C2gtyFHH.js")
|
|
5755
5759
|
},
|
|
5756
5760
|
{
|
|
5757
5761
|
path: Je,
|
|
5758
|
-
component: () => import("./index-
|
|
5762
|
+
component: () => import("./index-BYJ_iw6e.js")
|
|
5759
5763
|
},
|
|
5760
5764
|
{
|
|
5761
5765
|
path: Bo,
|
|
5762
|
-
component: () => import("./index-
|
|
5766
|
+
component: () => import("./index-FJjkdoP_.js")
|
|
5763
5767
|
}
|
|
5764
5768
|
], Hf = {
|
|
5765
5769
|
routes: Kp,
|
|
@@ -5769,7 +5773,7 @@ const Kp = [
|
|
|
5769
5773
|
},
|
|
5770
5774
|
hooks: {
|
|
5771
5775
|
useEntryApp: et,
|
|
5772
|
-
useEntryMenu:
|
|
5776
|
+
useEntryMenu: Bt
|
|
5773
5777
|
}
|
|
5774
5778
|
};
|
|
5775
5779
|
export {
|
|
@@ -5779,7 +5783,7 @@ export {
|
|
|
5779
5783
|
ao as b,
|
|
5780
5784
|
qe as c,
|
|
5781
5785
|
Wt as d,
|
|
5782
|
-
|
|
5786
|
+
gt as e,
|
|
5783
5787
|
ee as l,
|
|
5784
5788
|
Hf as m,
|
|
5785
5789
|
et as u
|