@das-fed/web 6.4.0-test.2 → 6.4.0-test.2.1
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-DEYJwN2T.js → index-6_iWBDs0.js} +881 -881
- package/index-6_iWBDs0.js.gz +0 -0
- package/{packages/main-app-framework/index-Xn4wzM8V.js → index-C9vVY6r3.js} +1 -1
- package/index-C9vVY6r3.js.gz +0 -0
- package/{index-3y8fHBtE.js → index-DC-9kRIP.js} +1 -1
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/main-app-framework/{index-DnFSz1TN.js → index-DCVBm-dM.js} +1 -1
- package/packages/main-app-framework/{index-Bo4ASgsm.js → index-DHWdFr1t.js} +655 -655
- package/packages/main-app-framework/index-DHWdFr1t.js.gz +0 -0
- package/{index-DXnYb5jk.js → packages/main-app-framework/index-DiKwf0Vc.js} +1 -1
- package/packages/main-app-framework/index-DiKwf0Vc.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/index-DEYJwN2T.js.gz +0 -0
- package/index-DXnYb5jk.js.gz +0 -0
- package/packages/main-app-framework/index-Bo4ASgsm.js.gz +0 -0
- package/packages/main-app-framework/index-Xn4wzM8V.js.gz +0 -0
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { ref as T, createApp as gs, reactive as Fe, computed as H, defineComponent as
|
|
2
|
-
import { initTheme as
|
|
3
|
-
import { initI18n as
|
|
4
|
-
import { DasWebLayout as Bn, DasWebNav as cr, DasWebMenu as lr, DasWebTabs as ur, layout as
|
|
5
|
-
import { createPinia as
|
|
6
|
-
import
|
|
7
|
-
import { createRouter as
|
|
8
|
-
import { DasChangePwdRef as Ms, DasChangePwd as
|
|
9
|
-
import { DasChangeEnterprises as
|
|
1
|
+
import { ref as T, createApp as gs, reactive as Fe, computed as H, defineComponent as ee, watch as G, openBlock as $, createElementBlock as z, Fragment as Oe, createBlock as V, TransitionGroup as ms, normalizeProps as wn, mergeProps as Dt, withCtx as x, renderList as Tt, withDirectives as be, resolveDynamicComponent as ct, vShow as Ee, unref as A, createCommentVNode as j, nextTick as je, resolveComponent as vs, createElementVNode as M, normalizeClass as ir, normalizeStyle as _n, renderSlot as he, createVNode as Q, Transition as lo, guardReactiveProps as uo, KeepAlive as po, h as le, onBeforeMount as As, onMounted as ze, onUnmounted as ys, getCurrentScope as ws, onScopeDispose as _s, getCurrentInstance as bs, onActivated as Cs, createTextVNode as ye, toDisplayString as re, render as qt, onBeforeUnmount as Ot, useCssVars as Is, withModifiers as ue, toRefs as Es, isRef as Ts } from "vue";
|
|
2
|
+
import { initTheme as ks, setThemeRule as Ss } from "@das-fed/web/packages/theme/index";
|
|
3
|
+
import { initI18n as Ps, i18n as N } from "@das-fed/web/packages/i18n/index";
|
|
4
|
+
import { DasWebLayout as Bn, DasWebNav as cr, DasWebMenu as lr, DasWebTabs as ur, layout as O } from "@das-fed/web/packages/layout/index";
|
|
5
|
+
import { createPinia as Ls } from "pinia";
|
|
6
|
+
import $s from "pinia-plugin-persistedstate";
|
|
7
|
+
import { createRouter as Ds, createWebHistory as Os, useRouter as et, useRoute as Mt } from "vue-router";
|
|
8
|
+
import { DasChangePwdRef as Ms, DasChangePwd as Bs } from "@das-fed/ui/packages/business-components/change-pwd/index";
|
|
9
|
+
import { DasChangeEnterprises as Rs } from "@das-fed/ui/packages/business-components/change-enterprises/index";
|
|
10
10
|
import { pureImageSrc as Rn } from "@das-fed/utils/pure-image-src";
|
|
11
11
|
import { DasNotification as Jt } from "@das-fed/ui/packages/components/notification/index";
|
|
12
|
-
import { flatTree as
|
|
12
|
+
import { flatTree as Me, filterTreeArray as xs, isEmpty as Qs, treeFind as fo, updateFavIcon as js, dateFormat as Ns, runPromiseByQueue as Hs, objEqual as bn, setShowWatermark as Cn, setShowLayout as In, getUrlParams as Us, withToken as Fs } from "@das-fed/utils/common-tools";
|
|
13
13
|
import { getSubApps as J, getTabInfo as ve, getPersonalInfo as Bt, getTenantInfo as xn, getProjectInfo as Ue, getToken as tn, getUserInfo as dr, getMenus as Kt } from "@das-fed/utils/common-info";
|
|
14
14
|
import { setProcessEngineProject as pr, setProcessEngineToken as fr } from "@das-fed/utils/process-engine-info";
|
|
15
|
-
import { oauthServer as hr, justauth as Qn, enterpriseright as jn, iotModules as
|
|
15
|
+
import { oauthServer as hr, justauth as Qn, enterpriseright as jn, iotModules as Vs, portal as qe, systemConfiguration as Nn } from "@das-fed/utils/api-services/modules";
|
|
16
16
|
import { createService as tt } from "@das-fed/utils/create-api-service";
|
|
17
|
-
import { useGetAuth as
|
|
18
|
-
import { systemConfiguration as
|
|
17
|
+
import { useGetAuth as Ws } from "@das-fed/utils/hooks/use-get-auth";
|
|
18
|
+
import { systemConfiguration as zs, enterpriseright as Hn, createService as ht, spaceManage as gr } from "@das-fed/utils/api-services";
|
|
19
19
|
import { getConfig as nt } from "@das-fed/utils/config";
|
|
20
20
|
import En from "dayjs";
|
|
21
|
-
import { getAccessToken as
|
|
21
|
+
import { getAccessToken as qs, removeAccessToken as Js } from "@das-fed/utils/token-tools";
|
|
22
22
|
import { DasSpin as Un } from "@das-fed/ui/packages/components/spin/index";
|
|
23
23
|
import { DasDialog as Fn } from "@das-fed/ui/packages/components/dialog/index";
|
|
24
24
|
import { DasButton as We } from "@das-fed/ui/packages/components/button/index";
|
|
25
|
-
import { vDasTooltip as
|
|
25
|
+
import { vDasTooltip as Ks } from "@das-fed/ui/packages/components/text-tooltip/index";
|
|
26
26
|
import { microFrontend as $e } from "@das-fed/web/packages/micro-frontend/index";
|
|
27
|
-
import { tokenStorage as
|
|
28
|
-
import { setPersonalInfo as
|
|
29
|
-
import { devicePanelShow as mr, closeDevicePanel as
|
|
30
|
-
import { DasIcon as
|
|
27
|
+
import { tokenStorage as Gs } from "@das-fed/utils/create-api-service/sso";
|
|
28
|
+
import { setPersonalInfo as Xs } from "@das-fed/utils/common-info/set-personal-info";
|
|
29
|
+
import { devicePanelShow as mr, closeDevicePanel as Zs, alarmDevicePanelShow as Ys, closeAlarmPanel as ea } from "@das-fed/ui/packages/business-components/device-panel/index";
|
|
30
|
+
import { DasIcon as Je, DasAutoRegisterIcon as vr } from "@das-fed/ui/packages/components/icon/index";
|
|
31
31
|
import { socketService as Vn } from "@das-fed/utils/webSocket-service";
|
|
32
|
-
import { userInfoNextTick as
|
|
32
|
+
import { userInfoNextTick as ta, tokenNextTick as nn } from "@das-fed/utils/nextTiken";
|
|
33
33
|
import { mainAppFramework as Gt } from "@das-fed/web/packages/main-app-framework/index";
|
|
34
34
|
import { DasTooltip as me } from "@das-fed/ui/packages/components/tooltip/index";
|
|
35
|
-
import { DasLivePlayer as
|
|
36
|
-
import { DasWatermark as
|
|
37
|
-
import { DasDrawer as
|
|
35
|
+
import { DasLivePlayer as na } from "@das-fed/ui/packages/components/live-player/index";
|
|
36
|
+
import { DasWatermark as oa } from "@das-fed/ui/packages/components/watermark/index";
|
|
37
|
+
import { DasDrawer as ra } from "@das-fed/ui/packages/components/drawer/index";
|
|
38
38
|
import { DasRadio as ho } from "@das-fed/ui/packages/components/radio/index";
|
|
39
|
-
import { DasSelect as
|
|
40
|
-
import { DasTreeSelect as
|
|
39
|
+
import { DasSelect as sa } from "@das-fed/ui/packages/components/select/index";
|
|
40
|
+
import { DasTreeSelect as aa } from "@das-fed/ui/packages/components/tree-select/index";
|
|
41
41
|
import { DasInput as go } from "@das-fed/ui/packages/components/input/index";
|
|
42
42
|
import { DasCheckbox as mo } from "@das-fed/ui/packages/components/checkbox/index";
|
|
43
|
-
import { DasForm as
|
|
43
|
+
import { DasForm as ia } from "@das-fed/ui/packages/components/form/index";
|
|
44
44
|
import { DasFormItem as Be } from "@das-fed/ui/packages/components/form-item/index";
|
|
45
|
-
import { flatTree as
|
|
46
|
-
import { setHtmlMinWH as
|
|
47
|
-
import { createCeNav as
|
|
48
|
-
const
|
|
45
|
+
import { flatTree as ca } from "@das-fed/utils/common-tools/nest-tree-format";
|
|
46
|
+
import { setHtmlMinWH as la } from "@das-fed/utils/common-tools/setHtmlMinWH";
|
|
47
|
+
import { createCeNav as ua, createCeTabs as da, createCeMenu as pa } from "@das-fed/web-components/das-web-app";
|
|
48
|
+
const fa = {
|
|
49
49
|
install: (t, e) => {
|
|
50
50
|
var o;
|
|
51
51
|
const n = (o = e == null ? void 0 : e.plugins) == null ? void 0 : o.glob;
|
|
@@ -53,9 +53,9 @@ const pa = {
|
|
|
53
53
|
r.default && r.default.install && t.use(r.default, e), r.install && t.use(r, e);
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
}, Tn =
|
|
57
|
-
Tn.use(
|
|
58
|
-
const
|
|
56
|
+
}, Tn = Ls();
|
|
57
|
+
Tn.use($s);
|
|
58
|
+
const ha = (t) => {
|
|
59
59
|
var i, u, h, d, f;
|
|
60
60
|
const e = ((i = t == null ? void 0 : t.router) == null ? void 0 : i.routerBase) ?? "/", n = ((u = t == null ? void 0 : t.router) == null ? void 0 : u.options) || {};
|
|
61
61
|
let o = Object.assign(((h = t == null ? void 0 : t.router) == null ? void 0 : h.glob) || {});
|
|
@@ -78,49 +78,49 @@ const fa = (t) => {
|
|
|
78
78
|
...pn(a, t),
|
|
79
79
|
...pn(s, t)
|
|
80
80
|
];
|
|
81
|
-
return { router:
|
|
81
|
+
return { router: Ds({ history: Os(e), routes: c, ...n }) };
|
|
82
82
|
}, pn = (t, e) => t.map((n) => {
|
|
83
83
|
const o = n.meta || {};
|
|
84
84
|
return o.keepAlive = o.keepAlive ?? (e == null ? void 0 : e.keepAlive) ?? !0, { ...n, meta: o };
|
|
85
|
-
}),
|
|
85
|
+
}), Ng = (t) => {
|
|
86
86
|
t || (t = {});
|
|
87
87
|
const e = T(!0);
|
|
88
|
-
Promise.all([
|
|
88
|
+
Promise.all([ks(t), Ps(t)]).then(() => {
|
|
89
89
|
e.value = !1;
|
|
90
90
|
});
|
|
91
91
|
const { container: n, component: o, props: r } = (t == null ? void 0 : t.root) || {}, s = gs(o || Bn, r);
|
|
92
|
-
s.use(
|
|
93
|
-
const { router: a } =
|
|
92
|
+
s.use(fa, t), s.use(Tn);
|
|
93
|
+
const { router: a } = ha(t);
|
|
94
94
|
return s.use(a), s.mount(n || "#app"), { app: s, router: a, loading: e, store: Tn };
|
|
95
|
-
}, Ar = Fe({}), yr = Fe({}), Xt = T("zh-CN"),
|
|
95
|
+
}, Ar = Fe({}), yr = Fe({}), Xt = T("zh-CN"), ga = "dasI18n", vo = (t, e) => {
|
|
96
96
|
const n = e === "global", o = !n;
|
|
97
97
|
for (const r in t)
|
|
98
98
|
n && (yr[r] = t[r]), o && (Ar[r] = t[r]);
|
|
99
|
-
},
|
|
99
|
+
}, Hg = async (t) => {
|
|
100
100
|
var o, r;
|
|
101
|
-
const e = window[
|
|
101
|
+
const e = window[ga];
|
|
102
102
|
e && vo(e, "global");
|
|
103
103
|
let n = Object.assign(((o = t == null ? void 0 : t.i18n) == null ? void 0 : o.glob) || {});
|
|
104
104
|
(r = t == null ? void 0 : t.microApps) == null || r.map((s) => {
|
|
105
105
|
var a;
|
|
106
106
|
n = Object.assign(n, ((a = s.i18n) == null ? void 0 : a.glob) || {});
|
|
107
107
|
}), Object.values(n).filter((s) => !!s).flat().map((s) => vo(s));
|
|
108
|
-
},
|
|
108
|
+
}, ma = (t, ...e) => H(() => {
|
|
109
109
|
const n = yr[t] || Ar[t] || t;
|
|
110
110
|
if (n === t) return t;
|
|
111
111
|
let o = n[Xt.value];
|
|
112
112
|
return Xt.value === "zh-CN" && n["zh-cn"] && !n["zh-CN"] && (o = n["zh-cn"]), e.map((r, s) => {
|
|
113
113
|
o = o.replace(`$${s}`, r);
|
|
114
114
|
}), o;
|
|
115
|
-
}),
|
|
115
|
+
}), va = ma, Ug = (t, ...e) => va(t, ...e).value, Fg = (t) => {
|
|
116
116
|
Xt.value = t;
|
|
117
|
-
},
|
|
117
|
+
}, Vg = () => Xt, lt = T("light"), wt = T({
|
|
118
118
|
light: {},
|
|
119
119
|
dark: {}
|
|
120
120
|
}), _t = T({
|
|
121
121
|
light: {},
|
|
122
122
|
dark: {}
|
|
123
|
-
}),
|
|
123
|
+
}), Aa = "dasTheme", Ct = "das-theme", ya = (t) => {
|
|
124
124
|
let e = {
|
|
125
125
|
light: {},
|
|
126
126
|
dark: {}
|
|
@@ -136,7 +136,7 @@ const fa = (t) => {
|
|
|
136
136
|
}
|
|
137
137
|
return e;
|
|
138
138
|
};
|
|
139
|
-
function
|
|
139
|
+
function wa(t) {
|
|
140
140
|
const e = "das-global-theme", n = "das-custom-theme";
|
|
141
141
|
if (!document.getElementById(n)) {
|
|
142
142
|
const r = document.createElement("style");
|
|
@@ -152,7 +152,7 @@ function ya(t) {
|
|
|
152
152
|
}
|
|
153
153
|
const Ao = (t, e) => {
|
|
154
154
|
e || (e = "custom");
|
|
155
|
-
const n =
|
|
155
|
+
const n = wa(e), o = ya(t);
|
|
156
156
|
for (const s in o) {
|
|
157
157
|
const a = o[s];
|
|
158
158
|
for (const c in a) {
|
|
@@ -163,21 +163,21 @@ const Ao = (t, e) => {
|
|
|
163
163
|
}
|
|
164
164
|
const r = `${Ct}-${lt.value}`;
|
|
165
165
|
document.body.classList.contains(r) || document.body.classList.add(r);
|
|
166
|
-
},
|
|
166
|
+
}, Wg = async (t) => {
|
|
167
167
|
var o, r;
|
|
168
|
-
const e = window[
|
|
168
|
+
const e = window[Aa];
|
|
169
169
|
e && Ao(e, "global");
|
|
170
170
|
let n = Object.assign(((o = t == null ? void 0 : t.theme) == null ? void 0 : o.glob) || {});
|
|
171
171
|
(r = t == null ? void 0 : t.microApps) == null || r.map((s) => {
|
|
172
172
|
var a;
|
|
173
173
|
n = Object.assign(n, ((a = s.theme) == null ? void 0 : a.glob) || {});
|
|
174
174
|
}), Object.values(n).filter((s) => !!s).flat().map((s) => Ao(s));
|
|
175
|
-
},
|
|
175
|
+
}, zg = (t) => {
|
|
176
176
|
document.body.classList.add(`${Ct}-light`), t === "light" && document.body.classList.remove(`${Ct}-${lt.value}`), lt.value = t, document.body.classList.add(`${Ct}-${lt.value}`);
|
|
177
|
-
},
|
|
177
|
+
}, _a = (t) => H(() => {
|
|
178
178
|
var e, n, o, r;
|
|
179
179
|
return ((n = (e = _t.value) == null ? void 0 : e[lt.value]) == null ? void 0 : n[t]) || ((r = (o = wt.value) == null ? void 0 : o[lt.value]) == null ? void 0 : r[t]) || t;
|
|
180
|
-
}),
|
|
180
|
+
}), qg = (t) => `var(${t})`, Jg = _a, X = Fe({
|
|
181
181
|
visible: !1,
|
|
182
182
|
logo: "",
|
|
183
183
|
items: [],
|
|
@@ -188,51 +188,51 @@ const Ao = (t, e) => {
|
|
|
188
188
|
// activeItem: '',
|
|
189
189
|
// activeProject: {},
|
|
190
190
|
eventListeners: {}
|
|
191
|
-
}),
|
|
191
|
+
}), ba = {
|
|
192
192
|
show: () => {
|
|
193
|
-
|
|
193
|
+
X.visible = !0;
|
|
194
194
|
},
|
|
195
195
|
hide: () => {
|
|
196
|
-
|
|
196
|
+
X.visible = !1;
|
|
197
197
|
},
|
|
198
198
|
setLogo: (t) => {
|
|
199
|
-
|
|
199
|
+
X.logo = t;
|
|
200
200
|
},
|
|
201
201
|
setItems: (t) => {
|
|
202
|
-
|
|
202
|
+
X.visible || (X.visible = !0), X.items = t;
|
|
203
203
|
},
|
|
204
|
-
getItems: () =>
|
|
204
|
+
getItems: () => X.items,
|
|
205
205
|
removeItem: (t) => {
|
|
206
|
-
const e =
|
|
207
|
-
|
|
206
|
+
const e = X.items.filter((n) => n.value !== t);
|
|
207
|
+
X.items = e;
|
|
208
208
|
},
|
|
209
209
|
appendItem: (t) => {
|
|
210
|
-
|
|
210
|
+
X.visible || (X.visible = !0), !X.items.find((n) => n.value == t.value) && X.items.push(t);
|
|
211
211
|
},
|
|
212
212
|
setActiveItem: (t) => {
|
|
213
|
-
|
|
213
|
+
X.activeItem = t;
|
|
214
214
|
},
|
|
215
215
|
setConfig: (t) => {
|
|
216
|
-
|
|
216
|
+
X.config = t;
|
|
217
217
|
},
|
|
218
218
|
setProjects: (t) => {
|
|
219
|
-
|
|
219
|
+
X.projects = t;
|
|
220
220
|
},
|
|
221
221
|
setProjectConfig: (t) => {
|
|
222
|
-
|
|
222
|
+
X.projectConfig = t;
|
|
223
223
|
},
|
|
224
224
|
setActiveProject: (t) => {
|
|
225
|
-
|
|
225
|
+
X.activeProject = t;
|
|
226
226
|
},
|
|
227
227
|
setUserInfo: (t) => {
|
|
228
|
-
|
|
228
|
+
X.userInfo = t;
|
|
229
229
|
},
|
|
230
230
|
setSearchConfig: (t) => {
|
|
231
|
-
|
|
231
|
+
X.searchConfig = t;
|
|
232
232
|
},
|
|
233
233
|
triggerEventListener: (t, e, n) => {
|
|
234
234
|
var a;
|
|
235
|
-
const o =
|
|
235
|
+
const o = X.eventListeners, { autoRemove: r = !1 } = n || {}, s = [];
|
|
236
236
|
for (const c in o) {
|
|
237
237
|
const l = o[c];
|
|
238
238
|
l.type === t && s.push(
|
|
@@ -245,9 +245,9 @@ const Ao = (t, e) => {
|
|
|
245
245
|
},
|
|
246
246
|
addEventListener: (t, e) => {
|
|
247
247
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), o = () => {
|
|
248
|
-
|
|
248
|
+
X.eventListeners[n] && delete X.eventListeners[n];
|
|
249
249
|
};
|
|
250
|
-
return
|
|
250
|
+
return X.eventListeners[n] = {
|
|
251
251
|
type: t,
|
|
252
252
|
handler: async (r) => {
|
|
253
253
|
try {
|
|
@@ -264,7 +264,7 @@ const Ao = (t, e) => {
|
|
|
264
264
|
}, xe = Fe({
|
|
265
265
|
items: [],
|
|
266
266
|
eventListeners: {}
|
|
267
|
-
}),
|
|
267
|
+
}), Ca = {
|
|
268
268
|
setItems: (t) => {
|
|
269
269
|
xe.items = t;
|
|
270
270
|
},
|
|
@@ -309,7 +309,7 @@ const Ao = (t, e) => {
|
|
|
309
309
|
}, _e = Fe({
|
|
310
310
|
items: [],
|
|
311
311
|
eventListeners: {}
|
|
312
|
-
}),
|
|
312
|
+
}), Ia = {
|
|
313
313
|
setItems: (t) => {
|
|
314
314
|
_e.items = t;
|
|
315
315
|
},
|
|
@@ -358,7 +358,7 @@ const Ao = (t, e) => {
|
|
|
358
358
|
}
|
|
359
359
|
}, bt = Fe({
|
|
360
360
|
eventListeners: {}
|
|
361
|
-
}),
|
|
361
|
+
}), Ea = {
|
|
362
362
|
triggerEventListener: (t, e, n) => {
|
|
363
363
|
var a;
|
|
364
364
|
const o = bt.eventListeners, { autoRemove: r = !1 } = n || {}, s = [];
|
|
@@ -393,25 +393,25 @@ const Ao = (t, e) => {
|
|
|
393
393
|
}, kn = Fe({
|
|
394
394
|
visible: !1,
|
|
395
395
|
style: {}
|
|
396
|
-
}),
|
|
396
|
+
}), Ta = {
|
|
397
397
|
set: (t, e) => {
|
|
398
398
|
kn.visible = t, e || (e = {}), e.transition || (e.transition = "all 0.3s"), e && (kn.style = e);
|
|
399
399
|
}
|
|
400
|
-
},
|
|
401
|
-
nav:
|
|
400
|
+
}, Ke = {
|
|
401
|
+
nav: X,
|
|
402
402
|
menu: xe,
|
|
403
403
|
tab: _e,
|
|
404
404
|
overlay: kn,
|
|
405
405
|
iframeView: bt,
|
|
406
406
|
visible: T(!0)
|
|
407
407
|
}, W = {
|
|
408
|
-
nav:
|
|
409
|
-
menu:
|
|
410
|
-
tab:
|
|
411
|
-
overlay:
|
|
412
|
-
iframeView:
|
|
413
|
-
setVisible: (t) =>
|
|
414
|
-
},
|
|
408
|
+
nav: ba,
|
|
409
|
+
menu: Ca,
|
|
410
|
+
tab: Ia,
|
|
411
|
+
overlay: Ta,
|
|
412
|
+
iframeView: Ea,
|
|
413
|
+
setVisible: (t) => Ke.visible.value = t
|
|
414
|
+
}, ka = ["name"], Sa = ["name"], Pa = /* @__PURE__ */ ee({
|
|
415
415
|
__name: "das-iframe-router-view",
|
|
416
416
|
props: {
|
|
417
417
|
needTransition: { type: Boolean },
|
|
@@ -426,7 +426,7 @@ const Ao = (t, e) => {
|
|
|
426
426
|
...e.transitionConfig || {}
|
|
427
427
|
};
|
|
428
428
|
return f;
|
|
429
|
-
}), o = et(), r =
|
|
429
|
+
}), o = et(), r = Mt(), s = T([]), a = H(() => s.value.filter((d) => {
|
|
430
430
|
var f;
|
|
431
431
|
return (f = d.meta) == null ? void 0 : f.isOpen;
|
|
432
432
|
})), c = (d) => {
|
|
@@ -436,7 +436,7 @@ const Ao = (t, e) => {
|
|
|
436
436
|
m.meta.key === d && (m.meta.key = `${m.path}-${y}`);
|
|
437
437
|
});
|
|
438
438
|
};
|
|
439
|
-
|
|
439
|
+
G(
|
|
440
440
|
() => e.exclude,
|
|
441
441
|
(d) => {
|
|
442
442
|
if (!d || !d.length) return;
|
|
@@ -470,7 +470,7 @@ const Ao = (t, e) => {
|
|
|
470
470
|
f && ((y = f.meta) != null && y.isOpen || (f.meta.isOpen = !0), (m = f.meta) != null && m.isShow || (f.meta.isShow = !0), await je(), W.iframeView.triggerEventListener("onActivated", { route: f }));
|
|
471
471
|
};
|
|
472
472
|
let h = 0;
|
|
473
|
-
return
|
|
473
|
+
return G(
|
|
474
474
|
() => o.currentRoute.value,
|
|
475
475
|
() => {
|
|
476
476
|
const d = o.options.routes.length;
|
|
@@ -491,7 +491,7 @@ const Ao = (t, e) => {
|
|
|
491
491
|
d.meta.key.includes("0") ? d.meta.key = d.meta.key.replaceAll("0", "1") : d.meta.key = d.meta.key.replaceAll("1", "0");
|
|
492
492
|
});
|
|
493
493
|
}), (d, f) => ($(), z(
|
|
494
|
-
|
|
494
|
+
Oe,
|
|
495
495
|
null,
|
|
496
496
|
[
|
|
497
497
|
d.needTransition ? ($(), V(
|
|
@@ -500,7 +500,7 @@ const Ao = (t, e) => {
|
|
|
500
500
|
{
|
|
501
501
|
default: x(() => [
|
|
502
502
|
($(!0), z(
|
|
503
|
-
|
|
503
|
+
Oe,
|
|
504
504
|
null,
|
|
505
505
|
Tt(a.value, ({ path: y, meta: m }) => be(($(), z("div", {
|
|
506
506
|
class: "das-iframe-router-view",
|
|
@@ -510,7 +510,7 @@ const Ao = (t, e) => {
|
|
|
510
510
|
($(), V(ct(m.componentInstance), {
|
|
511
511
|
key: m.key
|
|
512
512
|
}))
|
|
513
|
-
], 8,
|
|
513
|
+
], 8, ka)), [
|
|
514
514
|
[Ee, m.componentInstance && y === A(r).path]
|
|
515
515
|
])),
|
|
516
516
|
128
|
|
@@ -524,7 +524,7 @@ const Ao = (t, e) => {
|
|
|
524
524
|
/* FULL_PROPS */
|
|
525
525
|
)) : j("v-if", !0),
|
|
526
526
|
d.needTransition ? j("v-if", !0) : ($(!0), z(
|
|
527
|
-
|
|
527
|
+
Oe,
|
|
528
528
|
{ key: 1 },
|
|
529
529
|
Tt(a.value, ({ path: y, meta: m }) => be(($(), z("div", {
|
|
530
530
|
class: "das-iframe-router-view",
|
|
@@ -534,7 +534,7 @@ const Ao = (t, e) => {
|
|
|
534
534
|
($(), V(ct(m.componentInstance), {
|
|
535
535
|
key: m.key
|
|
536
536
|
}))
|
|
537
|
-
], 8,
|
|
537
|
+
], 8, Sa)), [
|
|
538
538
|
[Ee, m.componentInstance && y === A(r).path]
|
|
539
539
|
])),
|
|
540
540
|
128
|
|
@@ -550,25 +550,25 @@ const Ao = (t, e) => {
|
|
|
550
550
|
for (const [o, r] of e)
|
|
551
551
|
n[o] = r;
|
|
552
552
|
return n;
|
|
553
|
-
},
|
|
553
|
+
}, La = /* @__PURE__ */ we(Pa, [["__scopeId", "data-v-b03d395b"]]), $a = { class: "das-web-app-container" }, Da = {
|
|
554
554
|
key: 0,
|
|
555
555
|
class: "das-web-app-header"
|
|
556
|
-
},
|
|
556
|
+
}, Oa = { class: "das-web-app-main" }, Ma = {
|
|
557
557
|
key: 0,
|
|
558
558
|
class: "aside"
|
|
559
|
-
},
|
|
559
|
+
}, Ba = { class: "das-web-app-main-container" }, Ra = {
|
|
560
560
|
key: 0,
|
|
561
561
|
class: "tab"
|
|
562
|
-
},
|
|
562
|
+
}, xa = { class: "das-web-app-main-content" }, Qa = { class: "banner" }, ja = { class: "das-web-app-main-router-view" }, Na = { style: { width: "100%", height: "100%" } }, Ha = {
|
|
563
563
|
key: 0,
|
|
564
564
|
style: { width: "100%", height: "100%" }
|
|
565
|
-
},
|
|
565
|
+
}, Ua = {
|
|
566
566
|
key: 1,
|
|
567
567
|
style: { width: "100%", height: "100%" }
|
|
568
|
-
},
|
|
568
|
+
}, Fa = { style: { width: "100%", height: "100%" } }, Va = {
|
|
569
569
|
class: "micro-app",
|
|
570
570
|
style: { height: "100%", width: "100%" }
|
|
571
|
-
},
|
|
571
|
+
}, Wa = /* @__PURE__ */ ee({
|
|
572
572
|
__name: "das-web-layout",
|
|
573
573
|
props: {
|
|
574
574
|
needTransition: { type: Boolean, default: !0 },
|
|
@@ -582,13 +582,13 @@ const Ao = (t, e) => {
|
|
|
582
582
|
},
|
|
583
583
|
setup(t) {
|
|
584
584
|
const e = t;
|
|
585
|
-
|
|
586
|
-
const n =
|
|
585
|
+
ua(), da(), pa();
|
|
586
|
+
const n = Mt(), o = T(!1), r = T(!1), s = T(!1), a = H(() => o.value && e.showLayout), c = H(() => r.value && e.showLayout && e.showAside), l = H(() => o.value && e.showLayout && e.showTabs), i = H(() => e.routerViewVisible ?? !0), u = H(() => Ke.overlay.visible ?? !1), h = H(() => ({
|
|
587
587
|
"das-web-app-overlay-show": u.value === !0,
|
|
588
588
|
"das-web-app-overlay-hide": u.value === !1,
|
|
589
589
|
"das-web-app-overlay-destroy": u.value === "destroy"
|
|
590
|
-
})), d = H(() =>
|
|
591
|
-
|
|
590
|
+
})), d = H(() => Ke.overlay.style ?? { backgroundColor: "rgba(0,0,0,0.5)" }), f = H(() => e.excludeRoutes), y = H(() => e.routeKeepAliveVisible);
|
|
591
|
+
G(
|
|
592
592
|
() => [n.meta, n.query],
|
|
593
593
|
([_, v]) => {
|
|
594
594
|
const { showLayout: C = !0, showAside: k = !0, showTabs: P = !0, layout: I = {} } = _, {
|
|
@@ -597,7 +597,7 @@ const Ao = (t, e) => {
|
|
|
597
597
|
showTabs: B = !0,
|
|
598
598
|
app: F
|
|
599
599
|
} = v;
|
|
600
|
-
|
|
600
|
+
la(I);
|
|
601
601
|
let q = !0, ae = !0, Ie = !0;
|
|
602
602
|
(C === !1 || E === !1 || E === "false") && (q = !1, ae = !1, Ie = !1), (k === !1 || D === !1 || D === "false") && (ae = !1), (P === !1 || B === !1 || B === "false") && (Ie = !1), o.value = q, r.value = ae, s.value = Ie;
|
|
603
603
|
}
|
|
@@ -616,11 +616,11 @@ const Ao = (t, e) => {
|
|
|
616
616
|
return le("div", { style: { width: "100%", height: "100%" } }, [le(_)]);
|
|
617
617
|
}
|
|
618
618
|
}, g.set(v, C)), le(C);
|
|
619
|
-
}, w = H(() =>
|
|
619
|
+
}, w = H(() => Ke.visible.value);
|
|
620
620
|
return (_, v) => {
|
|
621
621
|
const C = vs("router-view");
|
|
622
|
-
return $(), z("div",
|
|
623
|
-
be(
|
|
622
|
+
return $(), z("div", $a, [
|
|
623
|
+
be(M(
|
|
624
624
|
"div",
|
|
625
625
|
{
|
|
626
626
|
class: ir(["das-web-app-overlay", h.value]),
|
|
@@ -634,7 +634,7 @@ const Ao = (t, e) => {
|
|
|
634
634
|
]),
|
|
635
635
|
a.value ? be(($(), z(
|
|
636
636
|
"div",
|
|
637
|
-
|
|
637
|
+
Da,
|
|
638
638
|
[
|
|
639
639
|
he(_.$slots, "header", {}, void 0, !0)
|
|
640
640
|
],
|
|
@@ -643,7 +643,7 @@ const Ao = (t, e) => {
|
|
|
643
643
|
)), [
|
|
644
644
|
[Ee, w.value]
|
|
645
645
|
]) : j("v-if", !0),
|
|
646
|
-
|
|
646
|
+
M("div", Oa, [
|
|
647
647
|
c.value ? be(($(), z(
|
|
648
648
|
"div",
|
|
649
649
|
Ma,
|
|
@@ -655,10 +655,10 @@ const Ao = (t, e) => {
|
|
|
655
655
|
)), [
|
|
656
656
|
[Ee, w.value]
|
|
657
657
|
]) : j("v-if", !0),
|
|
658
|
-
|
|
658
|
+
M("div", Ba, [
|
|
659
659
|
l.value ? be(($(), z(
|
|
660
660
|
"div",
|
|
661
|
-
|
|
661
|
+
Ra,
|
|
662
662
|
[
|
|
663
663
|
he(_.$slots, "tab", {}, void 0, !0)
|
|
664
664
|
],
|
|
@@ -667,10 +667,10 @@ const Ao = (t, e) => {
|
|
|
667
667
|
)), [
|
|
668
668
|
[Ee, w.value]
|
|
669
669
|
]) : j("v-if", !0),
|
|
670
|
-
|
|
671
|
-
be(
|
|
670
|
+
M("div", xa, [
|
|
671
|
+
be(M(
|
|
672
672
|
"div",
|
|
673
|
-
|
|
673
|
+
Qa,
|
|
674
674
|
[
|
|
675
675
|
he(_.$slots, "banner", {}, void 0, !0)
|
|
676
676
|
],
|
|
@@ -679,10 +679,10 @@ const Ao = (t, e) => {
|
|
|
679
679
|
), [
|
|
680
680
|
[Ee, w.value]
|
|
681
681
|
]),
|
|
682
|
-
|
|
683
|
-
be(
|
|
682
|
+
M("div", ja, [
|
|
683
|
+
be(M(
|
|
684
684
|
"div",
|
|
685
|
-
|
|
685
|
+
Na,
|
|
686
686
|
[
|
|
687
687
|
he(_.$slots, "router-view", {}, () => [
|
|
688
688
|
j(" 有动画 "),
|
|
@@ -716,7 +716,7 @@ const Ao = (t, e) => {
|
|
|
716
716
|
wn(uo(m.value)),
|
|
717
717
|
{
|
|
718
718
|
default: x(() => [
|
|
719
|
-
!A(n).meta.keepAlive && !A(n).meta.isIframe ? ($(), z("div",
|
|
719
|
+
!A(n).meta.keepAlive && !A(n).meta.isIframe ? ($(), z("div", Ha, [
|
|
720
720
|
($(), V(ct(k), {
|
|
721
721
|
key: A(n).path
|
|
722
722
|
}))
|
|
@@ -743,7 +743,7 @@ const Ao = (t, e) => {
|
|
|
743
743
|
key: A(n).path
|
|
744
744
|
})) : j("v-if", !0)
|
|
745
745
|
], 1032, ["exclude"])) : j("v-if", !0),
|
|
746
|
-
!A(n).meta.keepAlive && !A(n).meta.isIframe ? ($(), z("div",
|
|
746
|
+
!A(n).meta.keepAlive && !A(n).meta.isIframe ? ($(), z("div", Ua, [
|
|
747
747
|
($(), V(ct(k), {
|
|
748
748
|
key: A(n).path
|
|
749
749
|
}))
|
|
@@ -752,11 +752,11 @@ const Ao = (t, e) => {
|
|
|
752
752
|
_: 1
|
|
753
753
|
/* STABLE */
|
|
754
754
|
})),
|
|
755
|
-
be(
|
|
755
|
+
be(M(
|
|
756
756
|
"div",
|
|
757
|
-
|
|
757
|
+
Fa,
|
|
758
758
|
[
|
|
759
|
-
Q(
|
|
759
|
+
Q(La, {
|
|
760
760
|
exclude: f.value,
|
|
761
761
|
transitionConfig: m.value,
|
|
762
762
|
needTransition: _.needTransition
|
|
@@ -774,9 +774,9 @@ const Ao = (t, e) => {
|
|
|
774
774
|
), [
|
|
775
775
|
[Ee, i.value]
|
|
776
776
|
]),
|
|
777
|
-
be(
|
|
777
|
+
be(M(
|
|
778
778
|
"div",
|
|
779
|
-
|
|
779
|
+
Va,
|
|
780
780
|
[
|
|
781
781
|
he(_.$slots, "default", {}, void 0, !0)
|
|
782
782
|
],
|
|
@@ -792,10 +792,10 @@ const Ao = (t, e) => {
|
|
|
792
792
|
]);
|
|
793
793
|
};
|
|
794
794
|
}
|
|
795
|
-
}),
|
|
795
|
+
}), Kg = /* @__PURE__ */ we(Wa, [["__scopeId", "data-v-b6d7b17e"]]), za = ["modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], Gg = /* @__PURE__ */ ee({
|
|
796
796
|
__name: "das-web-nav",
|
|
797
797
|
setup(t) {
|
|
798
|
-
const { nav: e } =
|
|
798
|
+
const { nav: e } = Ke, n = H(() => e.logo || ""), o = H(() => e.activeItem || ""), r = H(() => (e.items || []).filter((k) => k.fixed)), s = H(() => (e.items || []).filter((k) => !k.fixed)), a = H(() => {
|
|
799
799
|
var C, k, P, I;
|
|
800
800
|
return {
|
|
801
801
|
showFullScreen: ((C = e.config) == null ? void 0 : C.showFullScreen) ?? !1,
|
|
@@ -843,7 +843,7 @@ const Ao = (t, e) => {
|
|
|
843
843
|
};
|
|
844
844
|
return As(() => {
|
|
845
845
|
W.nav.triggerEventListener("onBeforeMount", null, { autoRemove: !0 });
|
|
846
|
-
}),
|
|
846
|
+
}), ze(() => {
|
|
847
847
|
W.nav.triggerEventListener("onMounted", null, { autoRemove: !0 });
|
|
848
848
|
}), ys(() => {
|
|
849
849
|
W.nav.triggerEventListener("onUnmounted", null, { autoRemove: !0 });
|
|
@@ -865,16 +865,16 @@ const Ao = (t, e) => {
|
|
|
865
865
|
"on:deleteSearchItem": w,
|
|
866
866
|
"on:changeEnterpriseHandle": _,
|
|
867
867
|
"on:fullScreen": v
|
|
868
|
-
}, null, 40,
|
|
868
|
+
}, null, 40, za));
|
|
869
869
|
}
|
|
870
|
-
}),
|
|
870
|
+
}), qa = ["modelValue", "data", "collapse", "fixedTopMenu", "subMenuAttrs"], Xg = /* @__PURE__ */ ee({
|
|
871
871
|
__name: "das-web-menu",
|
|
872
872
|
props: {
|
|
873
873
|
menuAttr: {}
|
|
874
874
|
},
|
|
875
875
|
setup(t) {
|
|
876
|
-
const { menu: e } =
|
|
877
|
-
const h = u.detail[0], d =
|
|
876
|
+
const { menu: e } = Ke, n = t, o = H(() => n.menuAttr || {}), r = H(() => e.items), s = H(() => e.items.find((u) => u.fixed)), a = H(() => e.activeItem || ""), c = H(() => e.collapse ?? !1), l = H(() => ({ popupClassName: e.popupClassName ?? "" })), i = async (u) => {
|
|
877
|
+
const h = u.detail[0], d = ca(r.value).find((y) => h === y.id);
|
|
878
878
|
await W.menu.triggerEventListener("onItemClick", d) && W.menu.setActiveItem(d.id);
|
|
879
879
|
};
|
|
880
880
|
return (u, h) => r.value.length > 0 ? ($(), z("das-ce-menu", Dt({
|
|
@@ -884,15 +884,15 @@ const Ao = (t, e) => {
|
|
|
884
884
|
collapse: c.value,
|
|
885
885
|
fixedTopMenu: s.value,
|
|
886
886
|
subMenuAttrs: l.value
|
|
887
|
-
}, o.value, { onChange: i }), null, 16,
|
|
887
|
+
}, o.value, { onChange: i }), null, 16, qa)) : j("v-if", !0);
|
|
888
888
|
}
|
|
889
|
-
}),
|
|
889
|
+
}), Ja = ["modelValue", "options"], Zg = /* @__PURE__ */ ee({
|
|
890
890
|
__name: "das-web-tabs",
|
|
891
891
|
props: {
|
|
892
892
|
tabsAttr: {}
|
|
893
893
|
},
|
|
894
894
|
setup(t) {
|
|
895
|
-
const { tab: e } =
|
|
895
|
+
const { tab: e } = Ke, n = t, o = H(() => n.tabsAttr || {}), r = H(() => e.items.map((h) => ({
|
|
896
896
|
...h,
|
|
897
897
|
key: h.value,
|
|
898
898
|
tab: h.label
|
|
@@ -919,7 +919,7 @@ const Ao = (t, e) => {
|
|
|
919
919
|
"on:menuClick": l,
|
|
920
920
|
"on:pageRefresh": i,
|
|
921
921
|
"on:toggleFullScreen": u
|
|
922
|
-
}), null, 16,
|
|
922
|
+
}), null, 16, Ja)) : j("v-if", !0);
|
|
923
923
|
}
|
|
924
924
|
}), yo = T("/das-micro-app"), pe = T([]), Vt = T(!1), Ht = T([]), Ut = T(!0);
|
|
925
925
|
let Te = null, ke = null, at = null;
|
|
@@ -937,7 +937,7 @@ const it = (t, e, n) => {
|
|
|
937
937
|
var o;
|
|
938
938
|
const { origin: n } = new URL(location.href);
|
|
939
939
|
(o = window.top) == null || o.postMessage({ type: t, data: e }, n);
|
|
940
|
-
},
|
|
940
|
+
}, Ka = () => {
|
|
941
941
|
ke || (ke || (ke = {}), window.addEventListener(
|
|
942
942
|
"message",
|
|
943
943
|
(t) => {
|
|
@@ -948,7 +948,7 @@ const it = (t, e, n) => {
|
|
|
948
948
|
},
|
|
949
949
|
!1
|
|
950
950
|
));
|
|
951
|
-
},
|
|
951
|
+
}, Ga = () => {
|
|
952
952
|
Te || (Te || (Te = {}), window.addEventListener(
|
|
953
953
|
"message",
|
|
954
954
|
(t) => {
|
|
@@ -959,16 +959,16 @@ const it = (t, e, n) => {
|
|
|
959
959
|
},
|
|
960
960
|
!1
|
|
961
961
|
));
|
|
962
|
-
},
|
|
963
|
-
|
|
962
|
+
}, Xa = (t, e) => {
|
|
963
|
+
Ga();
|
|
964
964
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8);
|
|
965
965
|
return Te[t] || (Te[t] = {}), Te[t][n] = e, {
|
|
966
966
|
remove: () => {
|
|
967
967
|
Te[t] && Te[t][n] && delete Te[t][n];
|
|
968
968
|
}
|
|
969
969
|
};
|
|
970
|
-
},
|
|
971
|
-
|
|
970
|
+
}, Za = (t, e) => {
|
|
971
|
+
Ka();
|
|
972
972
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8);
|
|
973
973
|
return ke[t] || (ke[t] = {}), ke[t][n] = e, {
|
|
974
974
|
remove: () => {
|
|
@@ -978,12 +978,12 @@ const it = (t, e, n) => {
|
|
|
978
978
|
}, hn = async (t) => {
|
|
979
979
|
await Promise.all(
|
|
980
980
|
pe.value.filter((e) => e.loaded).map((e) => new Promise(async (n) => {
|
|
981
|
-
e.dom || await new Promise((o) =>
|
|
981
|
+
e.dom || await new Promise((o) => G(() => e.dom, o)), setTimeout(() => {
|
|
982
982
|
it(e.name, "sessionStorage", t), n(!0);
|
|
983
983
|
}, 0);
|
|
984
984
|
}))
|
|
985
985
|
);
|
|
986
|
-
},
|
|
986
|
+
}, te = {
|
|
987
987
|
loadMicroApp: (t) => {
|
|
988
988
|
Vt.value = !0;
|
|
989
989
|
const e = pe.value.find((a) => a.name === t), n = pe.value.find((a) => a.actived), o = !!e, r = !(e != null && e.loaded), s = e == null ? void 0 : e.actived;
|
|
@@ -1004,7 +1004,7 @@ const it = (t, e, n) => {
|
|
|
1004
1004
|
},
|
|
1005
1005
|
hideMicroApp: async (t) => {
|
|
1006
1006
|
const e = pe.value.find((n) => n.name === t);
|
|
1007
|
-
e && e.loaded && (e.dom || await new Promise((n) =>
|
|
1007
|
+
e && e.loaded && (e.dom || await new Promise((n) => G(() => e.dom, n)), it(t, "router", {
|
|
1008
1008
|
cmd: "push",
|
|
1009
1009
|
route: {
|
|
1010
1010
|
name: "das-micro-app-ghost",
|
|
@@ -1028,7 +1028,7 @@ const it = (t, e, n) => {
|
|
|
1028
1028
|
},
|
|
1029
1029
|
setMicroAppRoute: async (t, e, n) => {
|
|
1030
1030
|
const o = pe.value.find((c) => c.name === e);
|
|
1031
|
-
if (!o || !o.loaded || !o.actived || (o.dom || await new Promise((c) =>
|
|
1031
|
+
if (!o || !o.loaded || !o.actived || (o.dom || await new Promise((c) => G(() => o.dom, c)), !o.actived)) return o;
|
|
1032
1032
|
const r = n.path || n, s = n.query || {}, a = n.params || {};
|
|
1033
1033
|
return t.push({
|
|
1034
1034
|
path: `/${e}${r}`,
|
|
@@ -1046,8 +1046,8 @@ const it = (t, e, n) => {
|
|
|
1046
1046
|
},
|
|
1047
1047
|
sendMessageToMicroApp: it,
|
|
1048
1048
|
sendMessageToMainApp: fn,
|
|
1049
|
-
addEventListenerFromMainApp:
|
|
1050
|
-
addEventListenerFromMicroApp:
|
|
1049
|
+
addEventListenerFromMainApp: Xa,
|
|
1050
|
+
addEventListenerFromMicroApp: Za,
|
|
1051
1051
|
setMainAppOverlay: (t, e) => {
|
|
1052
1052
|
fn("bodyOverlay", { visible: t, style: e });
|
|
1053
1053
|
},
|
|
@@ -1088,55 +1088,55 @@ const it = (t, e, n) => {
|
|
|
1088
1088
|
},
|
|
1089
1089
|
reloadMicroAppRoute: async (t, e) => {
|
|
1090
1090
|
const n = pe.value.find((o) => o.name === t);
|
|
1091
|
-
n && (!n.loaded || !n.actived || (n.dom || await new Promise((o) =>
|
|
1091
|
+
n && (!n.loaded || !n.actived || (n.dom || await new Promise((o) => G(() => n.dom, o)), it(t, "route", { cmd: "reload", path: e })));
|
|
1092
1092
|
},
|
|
1093
1093
|
unloadMicroAppRoute: async (t, e) => {
|
|
1094
1094
|
const n = pe.value.find((o) => o.name === t);
|
|
1095
|
-
n && (!n.loaded || !n.actived || (n.dom || await new Promise((o) =>
|
|
1095
|
+
n && (!n.loaded || !n.actived || (n.dom || await new Promise((o) => G(() => n.dom, o)), it(t, "route", { cmd: "unload", path: e })));
|
|
1096
1096
|
},
|
|
1097
1097
|
setMainAppLayoutVisible: (t) => {
|
|
1098
1098
|
fn("layoutVisible", { visible: t });
|
|
1099
1099
|
}
|
|
1100
1100
|
};
|
|
1101
1101
|
var wo;
|
|
1102
|
-
const Wn = typeof window < "u",
|
|
1102
|
+
const Wn = typeof window < "u", Ya = (t) => typeof t == "string", ei = () => {
|
|
1103
1103
|
};
|
|
1104
1104
|
Wn && ((wo = window == null ? void 0 : window.navigator) != null && wo.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
1105
1105
|
function wr(t) {
|
|
1106
1106
|
return typeof t == "function" ? t() : A(t);
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1108
|
+
function ti(t) {
|
|
1109
1109
|
return t;
|
|
1110
1110
|
}
|
|
1111
1111
|
function _r(t) {
|
|
1112
1112
|
return ws() ? (_s(t), !0) : !1;
|
|
1113
1113
|
}
|
|
1114
|
-
function
|
|
1115
|
-
bs() ?
|
|
1114
|
+
function ni(t, e = !0) {
|
|
1115
|
+
bs() ? ze(t) : e ? t() : je(t);
|
|
1116
1116
|
}
|
|
1117
1117
|
function br(t) {
|
|
1118
1118
|
var e;
|
|
1119
1119
|
const n = wr(t);
|
|
1120
1120
|
return (e = n == null ? void 0 : n.$el) != null ? e : n;
|
|
1121
1121
|
}
|
|
1122
|
-
const
|
|
1123
|
-
function
|
|
1122
|
+
const oi = Wn ? window : void 0, ri = Wn ? window.document : void 0;
|
|
1123
|
+
function si(...t) {
|
|
1124
1124
|
let e, n, o, r;
|
|
1125
|
-
if (
|
|
1126
|
-
return
|
|
1125
|
+
if (Ya(t[0]) || Array.isArray(t[0]) ? ([n, o, r] = t, e = oi) : [e, n, o, r] = t, !e)
|
|
1126
|
+
return ei;
|
|
1127
1127
|
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
1128
1128
|
const s = [], a = () => {
|
|
1129
1129
|
s.forEach((u) => u()), s.length = 0;
|
|
1130
|
-
}, c = (u, h, d, f) => (u.addEventListener(h, d, f), () => u.removeEventListener(h, d, f)), l =
|
|
1130
|
+
}, c = (u, h, d, f) => (u.addEventListener(h, d, f), () => u.removeEventListener(h, d, f)), l = G(() => [br(e), wr(r)], ([u, h]) => {
|
|
1131
1131
|
a(), u && s.push(...n.flatMap((d) => o.map((f) => c(u, d, f, h))));
|
|
1132
1132
|
}, { immediate: !0, flush: "post" }), i = () => {
|
|
1133
1133
|
l(), a();
|
|
1134
1134
|
};
|
|
1135
1135
|
return _r(i), i;
|
|
1136
1136
|
}
|
|
1137
|
-
function
|
|
1137
|
+
function ai(t, e = !1) {
|
|
1138
1138
|
const n = T(), o = () => n.value = !!t();
|
|
1139
|
-
return o(),
|
|
1139
|
+
return o(), ni(o, e), n;
|
|
1140
1140
|
}
|
|
1141
1141
|
const _o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, bo = "__vueuse_ssr_handlers__";
|
|
1142
1142
|
_o[bo] = _o[bo] || {};
|
|
@@ -1183,9 +1183,9 @@ const Co = [
|
|
|
1183
1183
|
]
|
|
1184
1184
|
];
|
|
1185
1185
|
function gt(t, e = {}) {
|
|
1186
|
-
const { document: n =
|
|
1186
|
+
const { document: n = ri, autoExit: o = !1 } = e, r = t || (n == null ? void 0 : n.querySelector("html")), s = T(!1);
|
|
1187
1187
|
let a = Co[0];
|
|
1188
|
-
const c =
|
|
1188
|
+
const c = ai(() => {
|
|
1189
1189
|
if (n) {
|
|
1190
1190
|
for (const m of Co)
|
|
1191
1191
|
if (m[1] in n)
|
|
@@ -1207,7 +1207,7 @@ function gt(t, e = {}) {
|
|
|
1207
1207
|
async function y() {
|
|
1208
1208
|
s.value ? await d() : await f();
|
|
1209
1209
|
}
|
|
1210
|
-
return n &&
|
|
1210
|
+
return n && si(n, h, () => {
|
|
1211
1211
|
s.value = !!(n != null && n[u]);
|
|
1212
1212
|
}, !1), o && _r(d), {
|
|
1213
1213
|
isSupported: c,
|
|
@@ -1221,15 +1221,15 @@ var Io;
|
|
|
1221
1221
|
(function(t) {
|
|
1222
1222
|
t.UP = "UP", t.RIGHT = "RIGHT", t.DOWN = "DOWN", t.LEFT = "LEFT", t.NONE = "NONE";
|
|
1223
1223
|
})(Io || (Io = {}));
|
|
1224
|
-
var
|
|
1224
|
+
var ii = Object.defineProperty, Eo = Object.getOwnPropertySymbols, ci = Object.prototype.hasOwnProperty, li = Object.prototype.propertyIsEnumerable, To = (t, e, n) => e in t ? ii(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, ui = (t, e) => {
|
|
1225
1225
|
for (var n in e || (e = {}))
|
|
1226
|
-
|
|
1226
|
+
ci.call(e, n) && To(t, n, e[n]);
|
|
1227
1227
|
if (Eo)
|
|
1228
1228
|
for (var n of Eo(e))
|
|
1229
|
-
|
|
1229
|
+
li.call(e, n) && To(t, n, e[n]);
|
|
1230
1230
|
return t;
|
|
1231
1231
|
};
|
|
1232
|
-
const
|
|
1232
|
+
const di = {
|
|
1233
1233
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
1234
1234
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
1235
1235
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -1255,10 +1255,10 @@ const ui = {
|
|
|
1255
1255
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
1256
1256
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
1257
1257
|
};
|
|
1258
|
-
|
|
1259
|
-
linear:
|
|
1260
|
-
},
|
|
1261
|
-
const
|
|
1258
|
+
ui({
|
|
1259
|
+
linear: ti
|
|
1260
|
+
}, di);
|
|
1261
|
+
const pi = ["src", "entry", "name"], fi = /* @__PURE__ */ ee({
|
|
1262
1262
|
__name: "das-micro-app",
|
|
1263
1263
|
props: {
|
|
1264
1264
|
src: {},
|
|
@@ -1270,7 +1270,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1270
1270
|
const n = t, o = e, r = (c) => {
|
|
1271
1271
|
o("onLoaded", c);
|
|
1272
1272
|
}, s = H(() => n.actived);
|
|
1273
|
-
return
|
|
1273
|
+
return G(() => s.value, (c) => {
|
|
1274
1274
|
c && o("onActivated"), c || o("onDeactivated");
|
|
1275
1275
|
}), (c, l) => ($(), z("iframe", {
|
|
1276
1276
|
class: "das-micro-app",
|
|
@@ -1279,9 +1279,9 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1279
1279
|
name: n.name,
|
|
1280
1280
|
frameborder: "0",
|
|
1281
1281
|
onLoad: r
|
|
1282
|
-
}, null, 40,
|
|
1282
|
+
}, null, 40, pi));
|
|
1283
1283
|
}
|
|
1284
|
-
}),
|
|
1284
|
+
}), hi = /* @__PURE__ */ we(fi, [["__scopeId", "data-v-8ae871f6"]]), gi = /* @__PURE__ */ ee({
|
|
1285
1285
|
__name: "das-micro-apps",
|
|
1286
1286
|
setup(t) {
|
|
1287
1287
|
const e = T(null), n = async (s, a) => {
|
|
@@ -1292,26 +1292,26 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1292
1292
|
const d = e.value.getBoundingClientRect() || {};
|
|
1293
1293
|
return d.width = e.value.clientWidth, d.height = e.value.clientHeight, d;
|
|
1294
1294
|
};
|
|
1295
|
-
|
|
1295
|
+
te.sendMessageToMicroApp(a, "onLoaded", {
|
|
1296
1296
|
href: location.href,
|
|
1297
1297
|
microAppContainerRect: l(),
|
|
1298
1298
|
entry: c.entry,
|
|
1299
1299
|
name: c.name
|
|
1300
1300
|
});
|
|
1301
1301
|
const { dom: i, ...u } = c;
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
}).observe(e.value),
|
|
1302
|
+
te.triggerMicroAppLifeCycleListener("onLoaded", u), new ResizeObserver(() => {
|
|
1303
|
+
te.sendMessageToMicroApp(a, "resize", l());
|
|
1304
|
+
}).observe(e.value), te.sendMessageToMicroApp(a, "setProxyMessageStatus", { visible: !0, parentHref: location.href }), te.sendMessageToMicroApp(a, "setProxSsoStatus", { visible: !0, parentHref: location.href });
|
|
1305
1305
|
}, o = (s, a) => {
|
|
1306
1306
|
const c = pe.value.find((u) => u.name === a);
|
|
1307
1307
|
if (!c) return;
|
|
1308
1308
|
const { dom: l, ...i } = c;
|
|
1309
|
-
|
|
1309
|
+
te.sendMessageToMicroApp(a, "onActivated"), te.triggerMicroAppLifeCycleListener("onActivated", i);
|
|
1310
1310
|
}, r = (s, a) => {
|
|
1311
1311
|
const c = pe.value.find((u) => u.name === a);
|
|
1312
1312
|
if (!c) return;
|
|
1313
1313
|
const { dom: l, ...i } = c;
|
|
1314
|
-
|
|
1314
|
+
te.sendMessageToMicroApp(a, "onDeactivated"), te.triggerMicroAppLifeCycleListener("onDeactivated", i);
|
|
1315
1315
|
};
|
|
1316
1316
|
return (s, a) => ($(), z(
|
|
1317
1317
|
"div",
|
|
@@ -1322,13 +1322,13 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1322
1322
|
},
|
|
1323
1323
|
[
|
|
1324
1324
|
($(!0), z(
|
|
1325
|
-
|
|
1325
|
+
Oe,
|
|
1326
1326
|
null,
|
|
1327
1327
|
Tt(A(pe), (c) => ($(), z(
|
|
1328
|
-
|
|
1328
|
+
Oe,
|
|
1329
1329
|
null,
|
|
1330
1330
|
[
|
|
1331
|
-
c.loaded ? be(($(), V(
|
|
1331
|
+
c.loaded ? be(($(), V(hi, {
|
|
1332
1332
|
key: 0,
|
|
1333
1333
|
src: c.src || "",
|
|
1334
1334
|
name: c.name,
|
|
@@ -1351,7 +1351,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1351
1351
|
/* NEED_PATCH */
|
|
1352
1352
|
));
|
|
1353
1353
|
}
|
|
1354
|
-
}),
|
|
1354
|
+
}), mi = /* @__PURE__ */ we(gi, [["__scopeId", "data-v-3abdb1e9"]]), Yg = /* @__PURE__ */ ee({
|
|
1355
1355
|
__name: "das-main-app-layout",
|
|
1356
1356
|
props: {
|
|
1357
1357
|
transitionConfig: { default: () => {
|
|
@@ -1389,13 +1389,13 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1389
1389
|
])
|
|
1390
1390
|
]),
|
|
1391
1391
|
default: x(() => [
|
|
1392
|
-
Q(
|
|
1392
|
+
Q(mi)
|
|
1393
1393
|
]),
|
|
1394
1394
|
_: 3
|
|
1395
1395
|
/* FORWARDED */
|
|
1396
1396
|
}, 16, ["transition-config", "router-view-visible"]));
|
|
1397
1397
|
}
|
|
1398
|
-
}), Cr = /* @__PURE__ */
|
|
1398
|
+
}), Cr = /* @__PURE__ */ ee({
|
|
1399
1399
|
__name: "das-micro-app-ghost",
|
|
1400
1400
|
setup(t) {
|
|
1401
1401
|
return Cs(() => {
|
|
@@ -1404,32 +1404,32 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1404
1404
|
}, 300);
|
|
1405
1405
|
}), (e, n) => null;
|
|
1406
1406
|
}
|
|
1407
|
-
}),
|
|
1407
|
+
}), vi = (t) => ["http://", "https://", "ws://", "wss://", "/"].find((n) => t.startsWith(n)) ? t : `/${t}`, em = (t, e) => {
|
|
1408
1408
|
if (!(t != null && t.microApps) || !Array.isArray(t.microApps)) return;
|
|
1409
|
-
window.__IN_DAS_MAIN_APP = !0, t != null && t.microAppRouterPrefix && (yo.value = t.microAppRouterPrefix), pe.value = (t.microApps || []).filter((r) => !!r.name).map((r) => ({ ...r, entry:
|
|
1409
|
+
window.__IN_DAS_MAIN_APP = !0, t != null && t.microAppRouterPrefix && (yo.value = t.microAppRouterPrefix), pe.value = (t.microApps || []).filter((r) => !!r.name).map((r) => ({ ...r, entry: vi(r.entry || r.name) })), e == null || e.addRoute({
|
|
1410
1410
|
name: "das-micro-app",
|
|
1411
1411
|
path: `${yo.value}/:pathMatch(.*)*`,
|
|
1412
1412
|
component: Cr,
|
|
1413
1413
|
meta: { isMicroApp: !0, keepAlive: !0 }
|
|
1414
|
-
}),
|
|
1414
|
+
}), te.addEventListenerFromMicroApp("bodyOverlay", (r) => {
|
|
1415
1415
|
const { visible: s, style: a } = r.data;
|
|
1416
1416
|
W.overlay.set(s, a);
|
|
1417
|
-
}),
|
|
1417
|
+
}), te.addEventListenerFromMicroApp("layoutVisible", (r) => {
|
|
1418
1418
|
const { visible: s } = r.data;
|
|
1419
1419
|
W.setVisible(s);
|
|
1420
|
-
}),
|
|
1420
|
+
}), te.addEventListenerFromMicroApp("route", (r) => {
|
|
1421
1421
|
const { name: s, cmd: a, path: c } = r.data;
|
|
1422
|
-
a === "reload" &&
|
|
1422
|
+
a === "reload" && te.reloadMicroAppRoute(s, c), a === "unload" && te.unloadMicroAppRoute(s, c);
|
|
1423
1423
|
});
|
|
1424
1424
|
const { enter: n, exit: o } = gt();
|
|
1425
|
-
|
|
1425
|
+
te.addEventListenerFromMicroApp("fullscreen", (r) => {
|
|
1426
1426
|
const s = r.data;
|
|
1427
1427
|
s && n(), s || o();
|
|
1428
|
-
}),
|
|
1428
|
+
}), te.addEventListenerFromMicroApp("location", (r) => {
|
|
1429
1429
|
const { cmd: s, isAutoCloseApp: a } = r.data || {};
|
|
1430
1430
|
s === "reload" && (a !== void 0 && (window.__isAutoCloseApp = a), location.reload());
|
|
1431
1431
|
});
|
|
1432
|
-
},
|
|
1432
|
+
}, tm = (t, e) => {
|
|
1433
1433
|
if (!(t != null && t.microAppName)) return;
|
|
1434
1434
|
window.config.microAppName = t.microAppName, window.self !== window.top && t.microAppName && (window.__IN_DAS_MICRO_APP = !0);
|
|
1435
1435
|
const n = "das-micro-app-ghost";
|
|
@@ -1440,7 +1440,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1440
1440
|
meta: { isMicroApp: !0, keepAlive: !0 }
|
|
1441
1441
|
});
|
|
1442
1442
|
const o = T(!1), r = T(!1), s = T("");
|
|
1443
|
-
|
|
1443
|
+
G(
|
|
1444
1444
|
() => e.currentRoute.value,
|
|
1445
1445
|
(a) => {
|
|
1446
1446
|
if (o.value) {
|
|
@@ -1456,7 +1456,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1456
1456
|
s.value = "";
|
|
1457
1457
|
return;
|
|
1458
1458
|
}
|
|
1459
|
-
|
|
1459
|
+
te.sendMessageToMainApp("router", {
|
|
1460
1460
|
cmd: "push",
|
|
1461
1461
|
route: {
|
|
1462
1462
|
path: c,
|
|
@@ -1466,27 +1466,27 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1466
1466
|
}
|
|
1467
1467
|
});
|
|
1468
1468
|
}
|
|
1469
|
-
),
|
|
1469
|
+
), te.addEventListenerFromMainApp("router", async (a) => {
|
|
1470
1470
|
var u;
|
|
1471
1471
|
const { cmd: c, route: l, microAppName: i = "" } = a.data;
|
|
1472
1472
|
s.value = ("/" + i + l.path).replace(/\/\//g, "/"), (u = e == null ? void 0 : e[c]) == null || u.call(e, l);
|
|
1473
|
-
}),
|
|
1473
|
+
}), te.addEventListenerFromMainApp("onLoaded", (a) => {
|
|
1474
1474
|
const { href: c, microAppContainerRect: l } = a.data;
|
|
1475
1475
|
window.__IN_DAS_MICRO_APP = !0, window.__DAS_MICRO_APP_NAME = t.microAppName, window.__DAS_MAIN_APP_HREF = c, window.__DAS_MICRO_APP_CONTAINER_RECT = l;
|
|
1476
|
-
}),
|
|
1476
|
+
}), te.addEventListenerFromMainApp("onDeactivated", (a) => {
|
|
1477
1477
|
const { name: c = "", path: l, params: i = {}, query: u = {} } = e.currentRoute.value;
|
|
1478
1478
|
r.value = !0, e == null || e.push({
|
|
1479
1479
|
name: n,
|
|
1480
1480
|
query: { microAppName: t.microAppName, fromQuery: JSON.stringify(u), fromPath: l },
|
|
1481
1481
|
params: i
|
|
1482
1482
|
});
|
|
1483
|
-
}),
|
|
1483
|
+
}), te.addEventListenerFromMainApp("onActivated", (a) => {
|
|
1484
1484
|
const { name: c = "", params: l = {}, query: i = {} } = e.currentRoute.value, { fromPath: u = "", fromQuery: h = "{}" } = i || {};
|
|
1485
1485
|
o.value = !0, e == null || e.push({ path: u, query: JSON.parse(h), params: l });
|
|
1486
|
-
}),
|
|
1486
|
+
}), te.addEventListenerFromMainApp("sessionStorage", (a) => {
|
|
1487
1487
|
const { cmd: c, key: l, value: i } = a.data;
|
|
1488
1488
|
c === "setItem" && window.sessionStorage.setItem(l, i), c === "getItem" && window.sessionStorage.getItem(l), c === "removeItem" && window.sessionStorage.removeItem(l), c === "clear" && window.sessionStorage.clear();
|
|
1489
|
-
}),
|
|
1489
|
+
}), te.addEventListenerFromMainApp("route", (a) => {
|
|
1490
1490
|
const { cmd: c, path: l } = a.data;
|
|
1491
1491
|
c === "reload" && (Ht.value.push(l), Ut.value = !1, setTimeout(() => {
|
|
1492
1492
|
Ut.value = !0, Ht.value = [];
|
|
@@ -1497,12 +1497,12 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1497
1497
|
}, It = "/", Ne = "/application", Ir = [
|
|
1498
1498
|
{ value: It, label: N("首页").value, path: It, fixed: !0 },
|
|
1499
1499
|
{ value: Ne, label: N("应用").value, path: Ne, fixed: !0 }
|
|
1500
|
-
], He = "/outerView", Er = "/placeholder",
|
|
1500
|
+
], He = "/outerView", Er = "/placeholder", Ai = [
|
|
1501
1501
|
{ value: "0", label: N("主题设置").value },
|
|
1502
1502
|
{ value: "1", label: N("个人中心").value },
|
|
1503
1503
|
{ value: "2", label: N("修改密码").value },
|
|
1504
1504
|
{ value: "3", label: N("退出登录").value }
|
|
1505
|
-
],
|
|
1505
|
+
], yi = /* @__PURE__ */ ee({
|
|
1506
1506
|
__name: "base-layout",
|
|
1507
1507
|
props: {
|
|
1508
1508
|
transitionConfig: { default: () => ({}) },
|
|
@@ -1548,7 +1548,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1548
1548
|
/* FORWARDED */
|
|
1549
1549
|
}, 16, ["transition-config"]));
|
|
1550
1550
|
}
|
|
1551
|
-
}),
|
|
1551
|
+
}), wi = zs.get("watermark"), _i = /* @__PURE__ */ ee({
|
|
1552
1552
|
__name: "index",
|
|
1553
1553
|
props: {
|
|
1554
1554
|
platformInitNextTick: {}
|
|
@@ -1576,11 +1576,11 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1576
1576
|
}, d = async () => {
|
|
1577
1577
|
var w, _, v, C, k, P, I;
|
|
1578
1578
|
i.value = !0, await (e == null ? void 0 : e.platformInitNextTick());
|
|
1579
|
-
const [m, g] = await
|
|
1579
|
+
const [m, g] = await wi().run();
|
|
1580
1580
|
if (m) return null;
|
|
1581
1581
|
if (n.value = g, !!((w = n.value) != null && w.pageSwith)) {
|
|
1582
1582
|
s.value = [];
|
|
1583
|
-
const { name: E, phone: D } = await
|
|
1583
|
+
const { name: E, phone: D } = await ta();
|
|
1584
1584
|
let B = "";
|
|
1585
1585
|
if ((_ = n.value) != null && _.nameSwith && E && (s.value.push(E), B = B + `${E} `), (v = n.value) != null && v.phoneSwith && D) {
|
|
1586
1586
|
const F = D.slice(-4);
|
|
@@ -1598,8 +1598,8 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1598
1598
|
return i.value = !1, g;
|
|
1599
1599
|
};
|
|
1600
1600
|
d();
|
|
1601
|
-
const f = et(), y =
|
|
1602
|
-
return
|
|
1601
|
+
const f = et(), y = Mt();
|
|
1602
|
+
return G(
|
|
1603
1603
|
() => f.currentRoute.value,
|
|
1604
1604
|
(m) => {
|
|
1605
1605
|
var _, v, C;
|
|
@@ -1614,7 +1614,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1614
1614
|
const m = !!((p = n.value) != null && p.pageSwith);
|
|
1615
1615
|
let g = ((w = y.query) == null ? void 0 : w.showWatermark) ?? !0;
|
|
1616
1616
|
g === "false" && (g = !1), h(!!(m && g));
|
|
1617
|
-
}), (m, g) => ($(), V(A(
|
|
1617
|
+
}), (m, g) => ($(), V(A(oa), {
|
|
1618
1618
|
class: "watermark",
|
|
1619
1619
|
font: c,
|
|
1620
1620
|
zIndex: 2147483647,
|
|
@@ -1629,11 +1629,11 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1629
1629
|
/* FORWARDED */
|
|
1630
1630
|
}, 8, ["font", "content", "width", "height"]));
|
|
1631
1631
|
}
|
|
1632
|
-
}),
|
|
1632
|
+
}), bi = /* @__PURE__ */ we(_i, [["__scopeId", "data-v-dacc9554"]]), Ci = {
|
|
1633
1633
|
"--menu-tip-diaolg-content": "#212121",
|
|
1634
1634
|
"--menu-tip-diaolg-divide": "#d9d9d9",
|
|
1635
1635
|
"--menu-tip-diaolg-info": "#999999"
|
|
1636
|
-
},
|
|
1636
|
+
}, Ii = ["innerHTML"], Ei = { class: "footer" }, Ti = /* @__PURE__ */ ee({
|
|
1637
1637
|
__name: "tip",
|
|
1638
1638
|
props: {
|
|
1639
1639
|
title: {},
|
|
@@ -1655,7 +1655,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1655
1655
|
onClosed: n.closeCallback
|
|
1656
1656
|
}, {
|
|
1657
1657
|
footer: x(() => [
|
|
1658
|
-
|
|
1658
|
+
M("div", Ei, [
|
|
1659
1659
|
Q(A(We), {
|
|
1660
1660
|
btnType: "default",
|
|
1661
1661
|
size: "small",
|
|
@@ -1670,15 +1670,15 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1670
1670
|
])
|
|
1671
1671
|
]),
|
|
1672
1672
|
default: x(() => [
|
|
1673
|
-
|
|
1673
|
+
M("div", {
|
|
1674
1674
|
class: "content",
|
|
1675
1675
|
innerHTML: n.content
|
|
1676
|
-
}, null, 8,
|
|
1676
|
+
}, null, 8, Ii),
|
|
1677
1677
|
n.desc && n.desc.length ? ($(), z(
|
|
1678
|
-
|
|
1678
|
+
Oe,
|
|
1679
1679
|
{ key: 0 },
|
|
1680
1680
|
[
|
|
1681
|
-
o[1] || (o[1] =
|
|
1681
|
+
o[1] || (o[1] = M(
|
|
1682
1682
|
"div",
|
|
1683
1683
|
{ class: "divide" },
|
|
1684
1684
|
null,
|
|
@@ -1686,7 +1686,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1686
1686
|
/* HOISTED */
|
|
1687
1687
|
)),
|
|
1688
1688
|
($(!0), z(
|
|
1689
|
-
|
|
1689
|
+
Oe,
|
|
1690
1690
|
null,
|
|
1691
1691
|
Tt(n.desc, (r, s) => be(($(), z("div", {
|
|
1692
1692
|
key: s,
|
|
@@ -1698,7 +1698,7 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1698
1698
|
/* TEXT */
|
|
1699
1699
|
)
|
|
1700
1700
|
])), [
|
|
1701
|
-
[A(
|
|
1701
|
+
[A(Ks)]
|
|
1702
1702
|
])),
|
|
1703
1703
|
128
|
|
1704
1704
|
/* KEYED_FRAGMENT */
|
|
@@ -1712,18 +1712,18 @@ const di = ["src", "entry", "name"], pi = /* @__PURE__ */ ne({
|
|
|
1712
1712
|
/* STABLE */
|
|
1713
1713
|
}, 8, ["modelValue", "width", "height", "title", "onClosed"]));
|
|
1714
1714
|
}
|
|
1715
|
-
}),
|
|
1715
|
+
}), ki = /* @__PURE__ */ we(Ti, [["__scopeId", "data-v-72bc9a80"]]), kt = ({ title: t = "", content: e = "", desc: n = [] }) => new Promise((o) => {
|
|
1716
1716
|
const r = document.createElement("div");
|
|
1717
1717
|
r.setAttribute("id", "entry-app-dialog"), document.body.appendChild(r);
|
|
1718
|
-
const a = le(
|
|
1718
|
+
const a = le(ki, { title: t, content: e, desc: n, closeCallback: () => {
|
|
1719
1719
|
qt(null, r), document.body.removeChild(r), o(null);
|
|
1720
1720
|
} });
|
|
1721
1721
|
qt(a, r);
|
|
1722
1722
|
});
|
|
1723
|
-
|
|
1724
|
-
const
|
|
1723
|
+
Ss(Ci);
|
|
1724
|
+
const Si = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAdSSURBVHic7d0xiltXAIZRORG4SuvimZDO07qdUpBdZAHGpfECQhZgXIYsILsITDnttDOdGfQKt6mmCE4tMgLDe5/uWDmnlBD8jeDjwuU+2+/3XzYAAKHvRg8AAM6f4AAAcoIDAMgJDgAgJzgAgNz22Be3n/4+5Q5O7OKnHx79fJqmEy8B4JzM8/zo5044AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByggMAyAkOACAnOACAnOAAAHKCAwDIHX1L5WvsLi/W2sGKrq5vR08AgANOOACAnOAAAHKCAwDICQ4AICc4AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByggMAyC16S8WbHQDA13DCAQDkBAcAkBMcAEBOcAAAOcEBAOQW3VLh/MzzPHoCAGfICQcAkBMcAEBOcAAAOcEBAOQEBwCQc0uFA9M0jZ4AwDfs2G1HJxwAQE5wAAA5wQEA5AQHAJATHABAbtEtld3lxVo7WNHV9e3oCQBwwAkHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAC5RW+peLPj2/XLb/8c+eb+pDtoXP3x4+gJAAeccAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAC57ZIf//7Xy7V2sKK3P+9HT1jF61fPNx/fvxg9Y7ibu4fNuw+fR88AWMQJBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAuUVvqZzLmx08TTd3D5vdm/vRMwBYgRMOACAnOACAnOAAAHKCAwDICQ4AICc4AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByggMAyAkOACAnOACAnOAAAHKCAwDICQ4AILdd8uPd5cVaO1jR1fXt6AmreP3q+ebj+xejZwx3c/eweffh8+gZAIs44QAAcoIDAMgJDgAgJzgAgJzgAAByggMAyAkOACAnOACAnOAAAHKCAwDICQ4AILfoLZVzebODp+nm7mGze3M/egYAK3DCAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABAbjt6AGP8+ev3j34+TdOJlwDwf+CEAwDICQ4AICc4AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByggMAyAkOACAnOACAnOAAAHKCAwDICQ4AICc4AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByggMAyAkOACAnOACAnOAAAHKCAwDICQ4AICc4AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByggMAyAkOACAnOACAnOAAAHKCAwDICQ4AILcdPYCnZZ7n0RMAOENOOACAnOAAAHKCAwDICQ4AICc4AICcWyocmKZp9AR4co7d3vJ/gf869n9xwgEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAuWf7/f7L6BEAwHlzwgEA5AQHAJATHABATnAAADnBAQDk/gXn601crysaUAAAAABJRU5ErkJggg==", Pi = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAdRSURBVHic7d0xa1tnGIZhpQgChawZlCFbvGb1KOgP6RY6huwpdA8Zu3bpvyh49OrV3krQGbIWCp6SWdSHCI5ufbF6XaON4VkMNy8cvie73e7LCgAg9MPoAQDA+RMcAEBOcAAAOcEBAOQEBwCQW8/94vbvf065gxO7ePnswZ9vNpsTLwHgnEzT9ODPXTgAgJzgAAByggMAyAkOACAnOACAnOAAAHKCAwDICQ4AICc4AICc4AAAcoIDAMjNvqVyiO3lxbF2cERX17ejJwDAHhcOACAnOACAnOAAAHKCAwDICQ4AICc4AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByi95S8WYHAHAIFw4AICc4AICc4AAAcoIDAMgJDgAgt+grFc7PNE2jJwBwhlw4AICc4AAAcoIDAMgJDgAgJzgAgJyvVNiz2WxGTwDgEZv72tGFAwDICQ4AICc4AICc4AAAcoIDAMgt+kple3lxrB0c0dX17egJALDHhQMAyAkOACAnOACAnOAAAHKCAwDICQ4AICc4AICc4AAAcoIDAMgJDgAgJzgAgNyit1S82QEAHMKFAwDICQ4AICc4AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByggMAyAkOACAnOACAnOAAAHKCAwDICQ4AICc4AICc4AAAcoIDAMitl/zx73+9ONYOjuiXn3ajJwDAHhcOACAnOACAnOAAAHKCAwDICQ4AICc4AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByi95S8WYHAHAIFw4AICc4AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByggMAyAkOACAnOACAnOAAAHKCAwDICQ4AICc4AIDc7PP0v/3x4yl3cGJ//jp6AQD/Jy4cAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQG49esASr189XX1893z0jOFu7u5Xbz98Hj0DAGa5cAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkHvUb6nc3N2vtm8+jZ4BAHyDCwcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQW48esMTrV09XH989Hz1juJu7+9XbD59HzwCAWS4cAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkHvVbKjd396vtm0+jZwAA3+DCAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOTWowfwfZmmafQEAM6QCwcAkBMcAEBOcAAAOcEBAOQEBwCQm/1K5f3P/55yByf37MGfbjabE++A79/c11v+X+C/5v5fXDgAgJzgAAByggMAyAkOACAnOACAnOAAAHKCAwDICQ4AICc4AICc4AAAcoIDAMgJDgAgJzgAgJzgAAByggMAyAkOACAnOACA3HrJH28vL461gyO6ur4dPQEA9rhwAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQW/SWijc7AIBDuHAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDkBAcAkBMcAEBOcAAAOcEBAOQEBwCQExwAQE5wAAA5wQEA5AQHAJATHABATnAAADnBAQDknux2uy+jRwAA582FAwDICQ4AICc4AICc4AAAcoIDAMh9BZ3dS+/izVuGAAAAAElFTkSuQmCC", Li = (t = {}) => {
|
|
1725
1725
|
sessionStorage.setItem("userInfo", JSON.stringify(t));
|
|
1726
|
-
},
|
|
1726
|
+
}, $i = (t = {}) => {
|
|
1727
1727
|
var n;
|
|
1728
1728
|
sessionStorage.setItem("tenantInfo", JSON.stringify(t));
|
|
1729
1729
|
const e = {
|
|
@@ -1733,9 +1733,9 @@ const ki = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
1733
1733
|
tenantId: ((n = t == null ? void 0 : t.tenant) == null ? void 0 : n.id) ?? ""
|
|
1734
1734
|
};
|
|
1735
1735
|
sessionStorage.setItem("hotentUserInfo", JSON.stringify(e));
|
|
1736
|
-
},
|
|
1736
|
+
}, Di = (t = {}) => {
|
|
1737
1737
|
sessionStorage.setItem("home-config", JSON.stringify(t));
|
|
1738
|
-
},
|
|
1738
|
+
}, Oi = (t) => {
|
|
1739
1739
|
localStorage.setItem("fav-icon", t);
|
|
1740
1740
|
}, Tr = (t) => {
|
|
1741
1741
|
sessionStorage.setItem("projectInfo", JSON.stringify(t || { id: 0 })), sessionStorage.setItem("project", (t == null ? void 0 : t.id) || 0);
|
|
@@ -1783,7 +1783,7 @@ const ki = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
1783
1783
|
for (const n in e.subAppList)
|
|
1784
1784
|
e.subAppList[n].code === e.currentSubAppCode && (e.subAppList[n].currentMenuCode = t);
|
|
1785
1785
|
sessionStorage.setItem("subApps", JSON.stringify(e));
|
|
1786
|
-
},
|
|
1786
|
+
}, Bi = (t, e) => {
|
|
1787
1787
|
const n = "permission-btn", o = JSON.parse(sessionStorage.getItem(n) || "{}") || {}, r = t != null && t.length ? t.filter((l) => l.routeUrl) : [], s = t != null && t.length ? t.filter((l) => !l.routeUrl && l.children).map((l) => l.children).flat() : [], a = [...r, ...s], c = {};
|
|
1788
1788
|
return a.forEach((l) => {
|
|
1789
1789
|
var d;
|
|
@@ -1796,7 +1796,7 @@ const ki = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
1796
1796
|
code: f.code,
|
|
1797
1797
|
originalCode: f.originalCode,
|
|
1798
1798
|
name: f.name
|
|
1799
|
-
}) :
|
|
1799
|
+
}) : Me([f]).forEach((g) => {
|
|
1800
1800
|
h.push({
|
|
1801
1801
|
code: g.code,
|
|
1802
1802
|
originalCode: g.originalCode,
|
|
@@ -1813,17 +1813,17 @@ const ki = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
1813
1813
|
c[i].push(m), u && i !== u && (c["origin-auth"] || (c["origin-auth"] = {}), c["origin-auth"][u] || (c["origin-auth"][u] = []), c["origin-auth"][u].push(m));
|
|
1814
1814
|
}));
|
|
1815
1815
|
}), o[e] = c, sessionStorage.setItem(n, JSON.stringify(o)), o;
|
|
1816
|
-
},
|
|
1816
|
+
}, Ri = () => {
|
|
1817
1817
|
sessionStorage.removeItem("permission-btn");
|
|
1818
|
-
},
|
|
1818
|
+
}, xi = (t, e) => {
|
|
1819
1819
|
const n = "breadcrumb", o = t.filter((s) => s.routeUrl), r = JSON.parse(sessionStorage.getItem(n) || "{}") || {};
|
|
1820
1820
|
return o.forEach((s) => {
|
|
1821
1821
|
const c = ((s == null ? void 0 : s.style) ?? 1) === 1, l = s.code;
|
|
1822
1822
|
r[e] || (r[e] = {}), r[e][l] = c;
|
|
1823
1823
|
}), sessionStorage.setItem(n, JSON.stringify(r)), r;
|
|
1824
|
-
},
|
|
1824
|
+
}, Qi = () => {
|
|
1825
1825
|
sessionStorage.removeItem("breadcrumb");
|
|
1826
|
-
},
|
|
1826
|
+
}, ji = (t, e) => {
|
|
1827
1827
|
const n = "tabStyle", o = t.filter((s) => s.routeUrl), r = JSON.parse(sessionStorage.getItem(n) || "{}") || {};
|
|
1828
1828
|
return o.forEach((s) => {
|
|
1829
1829
|
const a = s.code, c = {
|
|
@@ -1832,13 +1832,13 @@ const ki = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
1832
1832
|
};
|
|
1833
1833
|
r[e] || (r[e] = {}), r[e][a] = c;
|
|
1834
1834
|
}), sessionStorage.setItem(n, JSON.stringify(r)), r;
|
|
1835
|
-
},
|
|
1835
|
+
}, Ni = () => {
|
|
1836
1836
|
sessionStorage.removeItem("tabStyle");
|
|
1837
|
-
},
|
|
1837
|
+
}, Hi = (t) => {
|
|
1838
1838
|
sessionStorage.setItem("instance", JSON.stringify(t));
|
|
1839
1839
|
}, Pr = () => {
|
|
1840
|
-
|
|
1841
|
-
},
|
|
1840
|
+
Ri(), zn(), kr(), Qi(), Ni();
|
|
1841
|
+
}, Ui = (t) => {
|
|
1842
1842
|
const e = JSON.parse(sessionStorage.getItem(t) || "{}");
|
|
1843
1843
|
if (e && JSON.stringify(e) !== "{}" && e != null && e.exitConfirmPages && e.exitConfirmPages.length) {
|
|
1844
1844
|
const n = (e == null ? void 0 : e.currentPage) ?? "";
|
|
@@ -1857,26 +1857,26 @@ const ki = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAFoCAYAAAAcpSI2AA
|
|
|
1857
1857
|
}
|
|
1858
1858
|
}, Sn = (t) => {
|
|
1859
1859
|
const e = new URL(t, location.origin);
|
|
1860
|
-
return ["true", "1"].includes(e.searchParams.get("autoSetToken")) && (e.searchParams.append("access_token",
|
|
1861
|
-
},
|
|
1862
|
-
const [t, e] = await
|
|
1863
|
-
return t ? { personalConfig: null } : (
|
|
1864
|
-
}, Ji = async () => {
|
|
1865
|
-
const [t, e] = await Wi().run();
|
|
1866
|
-
return t ? { tenantConfig: null } : (Li(e), { tenantConfig: e });
|
|
1860
|
+
return ["true", "1"].includes(e.searchParams.get("autoSetToken")) && (e.searchParams.append("access_token", qs()), e.searchParams.delete("autoSetToken")), e.toString();
|
|
1861
|
+
}, Fi = "v1", Vi = tt(`/api/personal-center/personal-server/${Fi}`), Wi = Vi.get("/info"), zi = hr.get("/user-info"), qi = Qn.post("/tenant/page"), Ji = async () => {
|
|
1862
|
+
const [t, e] = await Wi().run({});
|
|
1863
|
+
return t ? { personalConfig: null } : (Li(e), { personalConfig: e });
|
|
1867
1864
|
}, Ki = async () => {
|
|
1868
|
-
const [t, e] = await zi().run(
|
|
1865
|
+
const [t, e] = await zi().run();
|
|
1866
|
+
return t ? { tenantConfig: null } : ($i(e), { tenantConfig: e });
|
|
1867
|
+
}, Gi = async () => {
|
|
1868
|
+
const [t, e] = await qi().run({
|
|
1869
1869
|
userId: Bt().id,
|
|
1870
1870
|
pageSize: 20,
|
|
1871
1871
|
pageIndex: 1
|
|
1872
1872
|
});
|
|
1873
1873
|
if (t) return { tenantList: [] };
|
|
1874
1874
|
if (e.data && e.data.length) return { tenantList: e.data };
|
|
1875
|
-
},
|
|
1876
|
-
const [t, e] = await
|
|
1877
|
-
return
|
|
1875
|
+
}, Xi = jn.get("/permissionset/user-portal-menu"), Zi = Vs.deviceManage.get("/instance/getLast"), Yi = async () => {
|
|
1876
|
+
const [t, e] = await Zi().run(), n = { instanceInfo: e ?? null };
|
|
1877
|
+
return Hi(n), n;
|
|
1878
1878
|
};
|
|
1879
|
-
function
|
|
1879
|
+
function ec() {
|
|
1880
1880
|
this.__data__ = [], this.size = 0;
|
|
1881
1881
|
}
|
|
1882
1882
|
function Lr(t, e) {
|
|
@@ -1888,22 +1888,22 @@ function on(t, e) {
|
|
|
1888
1888
|
return n;
|
|
1889
1889
|
return -1;
|
|
1890
1890
|
}
|
|
1891
|
-
var
|
|
1892
|
-
function
|
|
1891
|
+
var tc = Array.prototype, nc = tc.splice;
|
|
1892
|
+
function oc(t) {
|
|
1893
1893
|
var e = this.__data__, n = on(e, t);
|
|
1894
1894
|
if (n < 0)
|
|
1895
1895
|
return !1;
|
|
1896
1896
|
var o = e.length - 1;
|
|
1897
|
-
return n == o ? e.pop() :
|
|
1897
|
+
return n == o ? e.pop() : nc.call(e, n, 1), --this.size, !0;
|
|
1898
1898
|
}
|
|
1899
|
-
function
|
|
1899
|
+
function rc(t) {
|
|
1900
1900
|
var e = this.__data__, n = on(e, t);
|
|
1901
1901
|
return n < 0 ? void 0 : e[n][1];
|
|
1902
1902
|
}
|
|
1903
|
-
function
|
|
1903
|
+
function sc(t) {
|
|
1904
1904
|
return on(this.__data__, t) > -1;
|
|
1905
1905
|
}
|
|
1906
|
-
function
|
|
1906
|
+
function ac(t, e) {
|
|
1907
1907
|
var n = this.__data__, o = on(n, t);
|
|
1908
1908
|
return o < 0 ? (++this.size, n.push([t, e])) : n[o][1] = e, this;
|
|
1909
1909
|
}
|
|
@@ -1914,66 +1914,66 @@ function Ve(t) {
|
|
|
1914
1914
|
this.set(o[0], o[1]);
|
|
1915
1915
|
}
|
|
1916
1916
|
}
|
|
1917
|
-
Ve.prototype.clear =
|
|
1918
|
-
Ve.prototype.delete =
|
|
1919
|
-
Ve.prototype.get =
|
|
1920
|
-
Ve.prototype.has =
|
|
1921
|
-
Ve.prototype.set =
|
|
1922
|
-
function
|
|
1917
|
+
Ve.prototype.clear = ec;
|
|
1918
|
+
Ve.prototype.delete = oc;
|
|
1919
|
+
Ve.prototype.get = rc;
|
|
1920
|
+
Ve.prototype.has = sc;
|
|
1921
|
+
Ve.prototype.set = ac;
|
|
1922
|
+
function ic() {
|
|
1923
1923
|
this.__data__ = new Ve(), this.size = 0;
|
|
1924
1924
|
}
|
|
1925
|
-
function
|
|
1925
|
+
function cc(t) {
|
|
1926
1926
|
var e = this.__data__, n = e.delete(t);
|
|
1927
1927
|
return this.size = e.size, n;
|
|
1928
1928
|
}
|
|
1929
|
-
function
|
|
1929
|
+
function lc(t) {
|
|
1930
1930
|
return this.__data__.get(t);
|
|
1931
1931
|
}
|
|
1932
|
-
function
|
|
1932
|
+
function uc(t) {
|
|
1933
1933
|
return this.__data__.has(t);
|
|
1934
1934
|
}
|
|
1935
|
-
var $r = typeof global == "object" && global && global.Object === Object && global,
|
|
1936
|
-
function
|
|
1937
|
-
var e =
|
|
1935
|
+
var $r = typeof global == "object" && global && global.Object === Object && global, dc = typeof self == "object" && self && self.Object === Object && self, Re = $r || dc || Function("return this")(), ut = Re.Symbol, Dr = Object.prototype, pc = Dr.hasOwnProperty, fc = Dr.toString, yt = ut ? ut.toStringTag : void 0;
|
|
1936
|
+
function hc(t) {
|
|
1937
|
+
var e = pc.call(t, yt), n = t[yt];
|
|
1938
1938
|
try {
|
|
1939
1939
|
t[yt] = void 0;
|
|
1940
1940
|
var o = !0;
|
|
1941
1941
|
} catch {
|
|
1942
1942
|
}
|
|
1943
|
-
var r =
|
|
1943
|
+
var r = fc.call(t);
|
|
1944
1944
|
return o && (e ? t[yt] = n : delete t[yt]), r;
|
|
1945
1945
|
}
|
|
1946
|
-
var
|
|
1947
|
-
function
|
|
1948
|
-
return
|
|
1946
|
+
var gc = Object.prototype, mc = gc.toString;
|
|
1947
|
+
function vc(t) {
|
|
1948
|
+
return mc.call(t);
|
|
1949
1949
|
}
|
|
1950
|
-
var
|
|
1950
|
+
var Ac = "[object Null]", yc = "[object Undefined]", ko = ut ? ut.toStringTag : void 0;
|
|
1951
1951
|
function Rt(t) {
|
|
1952
|
-
return t == null ? t === void 0 ?
|
|
1952
|
+
return t == null ? t === void 0 ? yc : Ac : ko && ko in Object(t) ? hc(t) : vc(t);
|
|
1953
1953
|
}
|
|
1954
1954
|
function xt(t) {
|
|
1955
1955
|
var e = typeof t;
|
|
1956
1956
|
return t != null && (e == "object" || e == "function");
|
|
1957
1957
|
}
|
|
1958
|
-
var
|
|
1959
|
-
function
|
|
1958
|
+
var wc = "[object AsyncFunction]", _c = "[object Function]", bc = "[object GeneratorFunction]", Cc = "[object Proxy]";
|
|
1959
|
+
function Or(t) {
|
|
1960
1960
|
if (!xt(t))
|
|
1961
1961
|
return !1;
|
|
1962
1962
|
var e = Rt(t);
|
|
1963
|
-
return e ==
|
|
1963
|
+
return e == _c || e == bc || e == wc || e == Cc;
|
|
1964
1964
|
}
|
|
1965
1965
|
var gn = Re["__core-js_shared__"], So = function() {
|
|
1966
1966
|
var t = /[^.]+$/.exec(gn && gn.keys && gn.keys.IE_PROTO || "");
|
|
1967
1967
|
return t ? "Symbol(src)_1." + t : "";
|
|
1968
1968
|
}();
|
|
1969
|
-
function
|
|
1969
|
+
function Ic(t) {
|
|
1970
1970
|
return !!So && So in t;
|
|
1971
1971
|
}
|
|
1972
|
-
var
|
|
1972
|
+
var Ec = Function.prototype, Tc = Ec.toString;
|
|
1973
1973
|
function ot(t) {
|
|
1974
1974
|
if (t != null) {
|
|
1975
1975
|
try {
|
|
1976
|
-
return
|
|
1976
|
+
return Tc.call(t);
|
|
1977
1977
|
} catch {
|
|
1978
1978
|
}
|
|
1979
1979
|
try {
|
|
@@ -1983,87 +1983,87 @@ function ot(t) {
|
|
|
1983
1983
|
}
|
|
1984
1984
|
return "";
|
|
1985
1985
|
}
|
|
1986
|
-
var
|
|
1987
|
-
"^" +
|
|
1986
|
+
var kc = /[\\^$.*+?()[\]{}|]/g, Sc = /^\[object .+?Constructor\]$/, Pc = Function.prototype, Lc = Object.prototype, $c = Pc.toString, Dc = Lc.hasOwnProperty, Oc = RegExp(
|
|
1987
|
+
"^" + $c.call(Dc).replace(kc, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1988
1988
|
);
|
|
1989
1989
|
function Mc(t) {
|
|
1990
|
-
if (!xt(t) ||
|
|
1990
|
+
if (!xt(t) || Ic(t))
|
|
1991
1991
|
return !1;
|
|
1992
|
-
var e =
|
|
1992
|
+
var e = Or(t) ? Oc : Sc;
|
|
1993
1993
|
return e.test(ot(t));
|
|
1994
1994
|
}
|
|
1995
|
-
function
|
|
1995
|
+
function Bc(t, e) {
|
|
1996
1996
|
return t == null ? void 0 : t[e];
|
|
1997
1997
|
}
|
|
1998
1998
|
function rt(t, e) {
|
|
1999
|
-
var n =
|
|
1999
|
+
var n = Bc(t, e);
|
|
2000
2000
|
return Mc(n) ? n : void 0;
|
|
2001
2001
|
}
|
|
2002
2002
|
var St = rt(Re, "Map"), Pt = rt(Object, "create");
|
|
2003
|
-
function
|
|
2003
|
+
function Rc() {
|
|
2004
2004
|
this.__data__ = Pt ? Pt(null) : {}, this.size = 0;
|
|
2005
2005
|
}
|
|
2006
|
-
function
|
|
2006
|
+
function xc(t) {
|
|
2007
2007
|
var e = this.has(t) && delete this.__data__[t];
|
|
2008
2008
|
return this.size -= e ? 1 : 0, e;
|
|
2009
2009
|
}
|
|
2010
|
-
var
|
|
2011
|
-
function
|
|
2010
|
+
var Qc = "__lodash_hash_undefined__", jc = Object.prototype, Nc = jc.hasOwnProperty;
|
|
2011
|
+
function Hc(t) {
|
|
2012
2012
|
var e = this.__data__;
|
|
2013
2013
|
if (Pt) {
|
|
2014
2014
|
var n = e[t];
|
|
2015
|
-
return n ===
|
|
2015
|
+
return n === Qc ? void 0 : n;
|
|
2016
2016
|
}
|
|
2017
|
-
return
|
|
2017
|
+
return Nc.call(e, t) ? e[t] : void 0;
|
|
2018
2018
|
}
|
|
2019
|
-
var
|
|
2020
|
-
function
|
|
2019
|
+
var Uc = Object.prototype, Fc = Uc.hasOwnProperty;
|
|
2020
|
+
function Vc(t) {
|
|
2021
2021
|
var e = this.__data__;
|
|
2022
|
-
return Pt ? e[t] !== void 0 :
|
|
2022
|
+
return Pt ? e[t] !== void 0 : Fc.call(e, t);
|
|
2023
2023
|
}
|
|
2024
|
-
var
|
|
2025
|
-
function
|
|
2024
|
+
var Wc = "__lodash_hash_undefined__";
|
|
2025
|
+
function zc(t, e) {
|
|
2026
2026
|
var n = this.__data__;
|
|
2027
|
-
return this.size += this.has(t) ? 0 : 1, n[t] = Pt && e === void 0 ?
|
|
2027
|
+
return this.size += this.has(t) ? 0 : 1, n[t] = Pt && e === void 0 ? Wc : e, this;
|
|
2028
2028
|
}
|
|
2029
|
-
function
|
|
2029
|
+
function Ze(t) {
|
|
2030
2030
|
var e = -1, n = t == null ? 0 : t.length;
|
|
2031
2031
|
for (this.clear(); ++e < n; ) {
|
|
2032
2032
|
var o = t[e];
|
|
2033
2033
|
this.set(o[0], o[1]);
|
|
2034
2034
|
}
|
|
2035
2035
|
}
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
function
|
|
2036
|
+
Ze.prototype.clear = Rc;
|
|
2037
|
+
Ze.prototype.delete = xc;
|
|
2038
|
+
Ze.prototype.get = Hc;
|
|
2039
|
+
Ze.prototype.has = Vc;
|
|
2040
|
+
Ze.prototype.set = zc;
|
|
2041
|
+
function qc() {
|
|
2042
2042
|
this.size = 0, this.__data__ = {
|
|
2043
|
-
hash: new
|
|
2043
|
+
hash: new Ze(),
|
|
2044
2044
|
map: new (St || Ve)(),
|
|
2045
|
-
string: new
|
|
2045
|
+
string: new Ze()
|
|
2046
2046
|
};
|
|
2047
2047
|
}
|
|
2048
|
-
function
|
|
2048
|
+
function Jc(t) {
|
|
2049
2049
|
var e = typeof t;
|
|
2050
2050
|
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
|
|
2051
2051
|
}
|
|
2052
2052
|
function rn(t, e) {
|
|
2053
2053
|
var n = t.__data__;
|
|
2054
|
-
return
|
|
2054
|
+
return Jc(e) ? n[typeof e == "string" ? "string" : "hash"] : n.map;
|
|
2055
2055
|
}
|
|
2056
|
-
function
|
|
2056
|
+
function Kc(t) {
|
|
2057
2057
|
var e = rn(this, t).delete(t);
|
|
2058
2058
|
return this.size -= e ? 1 : 0, e;
|
|
2059
2059
|
}
|
|
2060
|
-
function
|
|
2060
|
+
function Gc(t) {
|
|
2061
2061
|
return rn(this, t).get(t);
|
|
2062
2062
|
}
|
|
2063
|
-
function
|
|
2063
|
+
function Xc(t) {
|
|
2064
2064
|
return rn(this, t).has(t);
|
|
2065
2065
|
}
|
|
2066
|
-
function
|
|
2066
|
+
function Zc(t, e) {
|
|
2067
2067
|
var n = rn(this, t), o = n.size;
|
|
2068
2068
|
return n.set(t, e), this.size += n.size == o ? 0 : 1, this;
|
|
2069
2069
|
}
|
|
@@ -2074,17 +2074,17 @@ function mt(t) {
|
|
|
2074
2074
|
this.set(o[0], o[1]);
|
|
2075
2075
|
}
|
|
2076
2076
|
}
|
|
2077
|
-
mt.prototype.clear =
|
|
2078
|
-
mt.prototype.delete =
|
|
2079
|
-
mt.prototype.get =
|
|
2080
|
-
mt.prototype.has =
|
|
2081
|
-
mt.prototype.set =
|
|
2082
|
-
var
|
|
2083
|
-
function
|
|
2077
|
+
mt.prototype.clear = qc;
|
|
2078
|
+
mt.prototype.delete = Kc;
|
|
2079
|
+
mt.prototype.get = Gc;
|
|
2080
|
+
mt.prototype.has = Xc;
|
|
2081
|
+
mt.prototype.set = Zc;
|
|
2082
|
+
var Yc = 200;
|
|
2083
|
+
function el(t, e) {
|
|
2084
2084
|
var n = this.__data__;
|
|
2085
2085
|
if (n instanceof Ve) {
|
|
2086
2086
|
var o = n.__data__;
|
|
2087
|
-
if (!St || o.length <
|
|
2087
|
+
if (!St || o.length < Yc - 1)
|
|
2088
2088
|
return o.push([t, e]), this.size = ++n.size, this;
|
|
2089
2089
|
n = this.__data__ = new mt(o);
|
|
2090
2090
|
}
|
|
@@ -2094,12 +2094,12 @@ function vt(t) {
|
|
|
2094
2094
|
var e = this.__data__ = new Ve(t);
|
|
2095
2095
|
this.size = e.size;
|
|
2096
2096
|
}
|
|
2097
|
-
vt.prototype.clear =
|
|
2098
|
-
vt.prototype.delete =
|
|
2099
|
-
vt.prototype.get =
|
|
2100
|
-
vt.prototype.has =
|
|
2101
|
-
vt.prototype.set =
|
|
2102
|
-
function
|
|
2097
|
+
vt.prototype.clear = ic;
|
|
2098
|
+
vt.prototype.delete = cc;
|
|
2099
|
+
vt.prototype.get = lc;
|
|
2100
|
+
vt.prototype.has = uc;
|
|
2101
|
+
vt.prototype.set = el;
|
|
2102
|
+
function tl(t, e) {
|
|
2103
2103
|
for (var n = -1, o = t == null ? 0 : t.length; ++n < o && e(t[n], n, t) !== !1; )
|
|
2104
2104
|
;
|
|
2105
2105
|
return t;
|
|
@@ -2111,7 +2111,7 @@ var Po = function() {
|
|
|
2111
2111
|
} catch {
|
|
2112
2112
|
}
|
|
2113
2113
|
}();
|
|
2114
|
-
function
|
|
2114
|
+
function Mr(t, e, n) {
|
|
2115
2115
|
e == "__proto__" && Po ? Po(t, e, {
|
|
2116
2116
|
configurable: !0,
|
|
2117
2117
|
enumerable: !0,
|
|
@@ -2119,21 +2119,21 @@ function Or(t, e, n) {
|
|
|
2119
2119
|
writable: !0
|
|
2120
2120
|
}) : t[e] = n;
|
|
2121
2121
|
}
|
|
2122
|
-
var
|
|
2122
|
+
var nl = Object.prototype, ol = nl.hasOwnProperty;
|
|
2123
2123
|
function Br(t, e, n) {
|
|
2124
2124
|
var o = t[e];
|
|
2125
|
-
(!(
|
|
2125
|
+
(!(ol.call(t, e) && Lr(o, n)) || n === void 0 && !(e in t)) && Mr(t, e, n);
|
|
2126
2126
|
}
|
|
2127
2127
|
function sn(t, e, n, o) {
|
|
2128
2128
|
var r = !n;
|
|
2129
2129
|
n || (n = {});
|
|
2130
2130
|
for (var s = -1, a = e.length; ++s < a; ) {
|
|
2131
2131
|
var c = e[s], l = void 0;
|
|
2132
|
-
l === void 0 && (l = t[c]), r ?
|
|
2132
|
+
l === void 0 && (l = t[c]), r ? Mr(n, c, l) : Br(n, c, l);
|
|
2133
2133
|
}
|
|
2134
2134
|
return n;
|
|
2135
2135
|
}
|
|
2136
|
-
function
|
|
2136
|
+
function rl(t, e) {
|
|
2137
2137
|
for (var n = -1, o = Array(t); ++n < t; )
|
|
2138
2138
|
o[n] = e(n);
|
|
2139
2139
|
return o;
|
|
@@ -2141,58 +2141,58 @@ function ol(t, e) {
|
|
|
2141
2141
|
function Qt(t) {
|
|
2142
2142
|
return t != null && typeof t == "object";
|
|
2143
2143
|
}
|
|
2144
|
-
var
|
|
2144
|
+
var sl = "[object Arguments]";
|
|
2145
2145
|
function Lo(t) {
|
|
2146
|
-
return Qt(t) && Rt(t) ==
|
|
2146
|
+
return Qt(t) && Rt(t) == sl;
|
|
2147
2147
|
}
|
|
2148
|
-
var Rr = Object.prototype,
|
|
2148
|
+
var Rr = Object.prototype, al = Rr.hasOwnProperty, il = Rr.propertyIsEnumerable, cl = Lo(/* @__PURE__ */ function() {
|
|
2149
2149
|
return arguments;
|
|
2150
2150
|
}()) ? Lo : function(t) {
|
|
2151
|
-
return Qt(t) &&
|
|
2151
|
+
return Qt(t) && al.call(t, "callee") && !il.call(t, "callee");
|
|
2152
2152
|
}, qn = Array.isArray;
|
|
2153
|
-
function
|
|
2153
|
+
function ll() {
|
|
2154
2154
|
return !1;
|
|
2155
2155
|
}
|
|
2156
|
-
var xr = typeof exports == "object" && exports && !exports.nodeType && exports, $o = xr && typeof module == "object" && module && !module.nodeType && module,
|
|
2157
|
-
function
|
|
2156
|
+
var xr = typeof exports == "object" && exports && !exports.nodeType && exports, $o = xr && typeof module == "object" && module && !module.nodeType && module, ul = $o && $o.exports === xr, Do = ul ? Re.Buffer : void 0, dl = Do ? Do.isBuffer : void 0, Qr = dl || ll, pl = 9007199254740991, fl = /^(?:0|[1-9]\d*)$/;
|
|
2157
|
+
function hl(t, e) {
|
|
2158
2158
|
var n = typeof t;
|
|
2159
|
-
return e = e ??
|
|
2159
|
+
return e = e ?? pl, !!e && (n == "number" || n != "symbol" && fl.test(t)) && t > -1 && t % 1 == 0 && t < e;
|
|
2160
2160
|
}
|
|
2161
|
-
var
|
|
2161
|
+
var gl = 9007199254740991;
|
|
2162
2162
|
function jr(t) {
|
|
2163
|
-
return typeof t == "number" && t > -1 && t % 1 == 0 && t <=
|
|
2163
|
+
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= gl;
|
|
2164
2164
|
}
|
|
2165
|
-
var
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
function
|
|
2169
|
-
return Qt(t) && jr(t.length) && !!
|
|
2165
|
+
var ml = "[object Arguments]", vl = "[object Array]", Al = "[object Boolean]", yl = "[object Date]", wl = "[object Error]", _l = "[object Function]", bl = "[object Map]", Cl = "[object Number]", Il = "[object Object]", El = "[object RegExp]", Tl = "[object Set]", kl = "[object String]", Sl = "[object WeakMap]", Pl = "[object ArrayBuffer]", Ll = "[object DataView]", $l = "[object Float32Array]", Dl = "[object Float64Array]", Ol = "[object Int8Array]", Ml = "[object Int16Array]", Bl = "[object Int32Array]", Rl = "[object Uint8Array]", xl = "[object Uint8ClampedArray]", Ql = "[object Uint16Array]", jl = "[object Uint32Array]", Z = {};
|
|
2166
|
+
Z[$l] = Z[Dl] = Z[Ol] = Z[Ml] = Z[Bl] = Z[Rl] = Z[xl] = Z[Ql] = Z[jl] = !0;
|
|
2167
|
+
Z[ml] = Z[vl] = Z[Pl] = Z[Al] = Z[Ll] = Z[yl] = Z[wl] = Z[_l] = Z[bl] = Z[Cl] = Z[Il] = Z[El] = Z[Tl] = Z[kl] = Z[Sl] = !1;
|
|
2168
|
+
function Nl(t) {
|
|
2169
|
+
return Qt(t) && jr(t.length) && !!Z[Rt(t)];
|
|
2170
2170
|
}
|
|
2171
2171
|
function Jn(t) {
|
|
2172
2172
|
return function(e) {
|
|
2173
2173
|
return t(e);
|
|
2174
2174
|
};
|
|
2175
2175
|
}
|
|
2176
|
-
var Nr = typeof exports == "object" && exports && !exports.nodeType && exports, Et = Nr && typeof module == "object" && module && !module.nodeType && module,
|
|
2176
|
+
var Nr = typeof exports == "object" && exports && !exports.nodeType && exports, Et = Nr && typeof module == "object" && module && !module.nodeType && module, Hl = Et && Et.exports === Nr, mn = Hl && $r.process, dt = function() {
|
|
2177
2177
|
try {
|
|
2178
2178
|
var t = Et && Et.require && Et.require("util").types;
|
|
2179
2179
|
return t || mn && mn.binding && mn.binding("util");
|
|
2180
2180
|
} catch {
|
|
2181
2181
|
}
|
|
2182
|
-
}(),
|
|
2182
|
+
}(), Oo = dt && dt.isTypedArray, Ul = Oo ? Jn(Oo) : Nl, Fl = Object.prototype, Vl = Fl.hasOwnProperty;
|
|
2183
2183
|
function Hr(t, e) {
|
|
2184
|
-
var n = qn(t), o = !n &&
|
|
2184
|
+
var n = qn(t), o = !n && cl(t), r = !n && !o && Qr(t), s = !n && !o && !r && Ul(t), a = n || o || r || s, c = a ? rl(t.length, String) : [], l = c.length;
|
|
2185
2185
|
for (var i in t)
|
|
2186
|
-
(e ||
|
|
2186
|
+
(e || Vl.call(t, i)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
2187
2187
|
(i == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
2188
2188
|
r && (i == "offset" || i == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
2189
2189
|
s && (i == "buffer" || i == "byteLength" || i == "byteOffset") || // Skip index properties.
|
|
2190
|
-
|
|
2190
|
+
hl(i, l))) && c.push(i);
|
|
2191
2191
|
return c;
|
|
2192
2192
|
}
|
|
2193
|
-
var
|
|
2193
|
+
var Wl = Object.prototype;
|
|
2194
2194
|
function Kn(t) {
|
|
2195
|
-
var e = t && t.constructor, n = typeof e == "function" && e.prototype ||
|
|
2195
|
+
var e = t && t.constructor, n = typeof e == "function" && e.prototype || Wl;
|
|
2196
2196
|
return t === n;
|
|
2197
2197
|
}
|
|
2198
2198
|
function Ur(t, e) {
|
|
@@ -2200,60 +2200,60 @@ function Ur(t, e) {
|
|
|
2200
2200
|
return t(e(n));
|
|
2201
2201
|
};
|
|
2202
2202
|
}
|
|
2203
|
-
var
|
|
2204
|
-
function
|
|
2203
|
+
var zl = Ur(Object.keys, Object), ql = Object.prototype, Jl = ql.hasOwnProperty;
|
|
2204
|
+
function Kl(t) {
|
|
2205
2205
|
if (!Kn(t))
|
|
2206
|
-
return
|
|
2206
|
+
return zl(t);
|
|
2207
2207
|
var e = [];
|
|
2208
2208
|
for (var n in Object(t))
|
|
2209
|
-
|
|
2209
|
+
Jl.call(t, n) && n != "constructor" && e.push(n);
|
|
2210
2210
|
return e;
|
|
2211
2211
|
}
|
|
2212
2212
|
function Fr(t) {
|
|
2213
|
-
return t != null && jr(t.length) && !
|
|
2213
|
+
return t != null && jr(t.length) && !Or(t);
|
|
2214
2214
|
}
|
|
2215
2215
|
function Gn(t) {
|
|
2216
|
-
return Fr(t) ? Hr(t) :
|
|
2216
|
+
return Fr(t) ? Hr(t) : Kl(t);
|
|
2217
2217
|
}
|
|
2218
|
-
function
|
|
2218
|
+
function Gl(t, e) {
|
|
2219
2219
|
return t && sn(e, Gn(e), t);
|
|
2220
2220
|
}
|
|
2221
|
-
function
|
|
2221
|
+
function Xl(t) {
|
|
2222
2222
|
var e = [];
|
|
2223
2223
|
if (t != null)
|
|
2224
2224
|
for (var n in Object(t))
|
|
2225
2225
|
e.push(n);
|
|
2226
2226
|
return e;
|
|
2227
2227
|
}
|
|
2228
|
-
var
|
|
2229
|
-
function
|
|
2228
|
+
var Zl = Object.prototype, Yl = Zl.hasOwnProperty;
|
|
2229
|
+
function eu(t) {
|
|
2230
2230
|
if (!xt(t))
|
|
2231
|
-
return
|
|
2231
|
+
return Xl(t);
|
|
2232
2232
|
var e = Kn(t), n = [];
|
|
2233
2233
|
for (var o in t)
|
|
2234
|
-
o == "constructor" && (e || !
|
|
2234
|
+
o == "constructor" && (e || !Yl.call(t, o)) || n.push(o);
|
|
2235
2235
|
return n;
|
|
2236
2236
|
}
|
|
2237
2237
|
function Xn(t) {
|
|
2238
|
-
return Fr(t) ? Hr(t, !0) :
|
|
2238
|
+
return Fr(t) ? Hr(t, !0) : eu(t);
|
|
2239
2239
|
}
|
|
2240
|
-
function
|
|
2240
|
+
function tu(t, e) {
|
|
2241
2241
|
return t && sn(e, Xn(e), t);
|
|
2242
2242
|
}
|
|
2243
|
-
var Vr = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
2244
|
-
function
|
|
2243
|
+
var Vr = typeof exports == "object" && exports && !exports.nodeType && exports, Mo = Vr && typeof module == "object" && module && !module.nodeType && module, nu = Mo && Mo.exports === Vr, Bo = nu ? Re.Buffer : void 0, Ro = Bo ? Bo.allocUnsafe : void 0;
|
|
2244
|
+
function ou(t, e) {
|
|
2245
2245
|
if (e)
|
|
2246
2246
|
return t.slice();
|
|
2247
2247
|
var n = t.length, o = Ro ? Ro(n) : new t.constructor(n);
|
|
2248
2248
|
return t.copy(o), o;
|
|
2249
2249
|
}
|
|
2250
|
-
function
|
|
2250
|
+
function ru(t, e) {
|
|
2251
2251
|
var n = -1, o = t.length;
|
|
2252
2252
|
for (e || (e = Array(o)); ++n < o; )
|
|
2253
2253
|
e[n] = t[n];
|
|
2254
2254
|
return e;
|
|
2255
2255
|
}
|
|
2256
|
-
function
|
|
2256
|
+
function su(t, e) {
|
|
2257
2257
|
for (var n = -1, o = t == null ? 0 : t.length, r = 0, s = []; ++n < o; ) {
|
|
2258
2258
|
var a = t[n];
|
|
2259
2259
|
e(a, n, t) && (s[r++] = a);
|
|
@@ -2263,12 +2263,12 @@ function ru(t, e) {
|
|
|
2263
2263
|
function Wr() {
|
|
2264
2264
|
return [];
|
|
2265
2265
|
}
|
|
2266
|
-
var
|
|
2267
|
-
return t == null ? [] : (t = Object(t),
|
|
2268
|
-
return
|
|
2266
|
+
var au = Object.prototype, iu = au.propertyIsEnumerable, xo = Object.getOwnPropertySymbols, Zn = xo ? function(t) {
|
|
2267
|
+
return t == null ? [] : (t = Object(t), su(xo(t), function(e) {
|
|
2268
|
+
return iu.call(t, e);
|
|
2269
2269
|
}));
|
|
2270
2270
|
} : Wr;
|
|
2271
|
-
function
|
|
2271
|
+
function cu(t, e) {
|
|
2272
2272
|
return sn(t, Zn(t), e);
|
|
2273
2273
|
}
|
|
2274
2274
|
function zr(t, e) {
|
|
@@ -2276,81 +2276,80 @@ function zr(t, e) {
|
|
|
2276
2276
|
t[r + n] = e[n];
|
|
2277
2277
|
return t;
|
|
2278
2278
|
}
|
|
2279
|
-
var qr = Ur(Object.getPrototypeOf, Object),
|
|
2279
|
+
var qr = Ur(Object.getPrototypeOf, Object), lu = Object.getOwnPropertySymbols, Jr = lu ? function(t) {
|
|
2280
2280
|
for (var e = []; t; )
|
|
2281
2281
|
zr(e, Zn(t)), t = qr(t);
|
|
2282
2282
|
return e;
|
|
2283
2283
|
} : Wr;
|
|
2284
|
-
function
|
|
2284
|
+
function uu(t, e) {
|
|
2285
2285
|
return sn(t, Jr(t), e);
|
|
2286
2286
|
}
|
|
2287
2287
|
function Kr(t, e, n) {
|
|
2288
2288
|
var o = e(t);
|
|
2289
2289
|
return qn(t) ? o : zr(o, n(t));
|
|
2290
2290
|
}
|
|
2291
|
-
function
|
|
2291
|
+
function du(t) {
|
|
2292
2292
|
return Kr(t, Gn, Zn);
|
|
2293
2293
|
}
|
|
2294
|
-
function
|
|
2294
|
+
function pu(t) {
|
|
2295
2295
|
return Kr(t, Xn, Jr);
|
|
2296
2296
|
}
|
|
2297
|
-
var Pn = rt(Re, "DataView"), Ln = rt(Re, "Promise"), $n = rt(Re, "Set"), Dn = rt(Re, "WeakMap"), Qo = "[object Map]",
|
|
2297
|
+
var Pn = rt(Re, "DataView"), Ln = rt(Re, "Promise"), $n = rt(Re, "Set"), Dn = rt(Re, "WeakMap"), Qo = "[object Map]", fu = "[object Object]", jo = "[object Promise]", No = "[object Set]", Ho = "[object WeakMap]", Uo = "[object DataView]", hu = ot(Pn), gu = ot(St), mu = ot(Ln), vu = ot($n), Au = ot(Dn), Qe = Rt;
|
|
2298
2298
|
(Pn && Qe(new Pn(new ArrayBuffer(1))) != Uo || St && Qe(new St()) != Qo || Ln && Qe(Ln.resolve()) != jo || $n && Qe(new $n()) != No || Dn && Qe(new Dn()) != Ho) && (Qe = function(t) {
|
|
2299
|
-
var e = Rt(t), n = e ==
|
|
2299
|
+
var e = Rt(t), n = e == fu ? t.constructor : void 0, o = n ? ot(n) : "";
|
|
2300
2300
|
if (o)
|
|
2301
2301
|
switch (o) {
|
|
2302
|
-
case fu:
|
|
2303
|
-
return Uo;
|
|
2304
2302
|
case hu:
|
|
2305
|
-
return
|
|
2303
|
+
return Uo;
|
|
2306
2304
|
case gu:
|
|
2307
|
-
return
|
|
2305
|
+
return Qo;
|
|
2308
2306
|
case mu:
|
|
2309
|
-
return
|
|
2307
|
+
return jo;
|
|
2310
2308
|
case vu:
|
|
2309
|
+
return No;
|
|
2310
|
+
case Au:
|
|
2311
2311
|
return Ho;
|
|
2312
2312
|
}
|
|
2313
2313
|
return e;
|
|
2314
2314
|
});
|
|
2315
|
-
var
|
|
2316
|
-
function
|
|
2315
|
+
var yu = Object.prototype, wu = yu.hasOwnProperty;
|
|
2316
|
+
function _u(t) {
|
|
2317
2317
|
var e = t.length, n = new t.constructor(e);
|
|
2318
|
-
return e && typeof t[0] == "string" &&
|
|
2318
|
+
return e && typeof t[0] == "string" && wu.call(t, "index") && (n.index = t.index, n.input = t.input), n;
|
|
2319
2319
|
}
|
|
2320
2320
|
var Fo = Re.Uint8Array;
|
|
2321
2321
|
function Yn(t) {
|
|
2322
2322
|
var e = new t.constructor(t.byteLength);
|
|
2323
2323
|
return new Fo(e).set(new Fo(t)), e;
|
|
2324
2324
|
}
|
|
2325
|
-
function
|
|
2325
|
+
function bu(t, e) {
|
|
2326
2326
|
var n = e ? Yn(t.buffer) : t.buffer;
|
|
2327
2327
|
return new t.constructor(n, t.byteOffset, t.byteLength);
|
|
2328
2328
|
}
|
|
2329
|
-
var
|
|
2330
|
-
function
|
|
2331
|
-
var e = new t.constructor(t.source,
|
|
2329
|
+
var Cu = /\w*$/;
|
|
2330
|
+
function Iu(t) {
|
|
2331
|
+
var e = new t.constructor(t.source, Cu.exec(t));
|
|
2332
2332
|
return e.lastIndex = t.lastIndex, e;
|
|
2333
2333
|
}
|
|
2334
2334
|
var Vo = ut ? ut.prototype : void 0, Wo = Vo ? Vo.valueOf : void 0;
|
|
2335
|
-
function
|
|
2335
|
+
function Eu(t) {
|
|
2336
2336
|
return Wo ? Object(Wo.call(t)) : {};
|
|
2337
2337
|
}
|
|
2338
|
-
function
|
|
2338
|
+
function Tu(t, e) {
|
|
2339
2339
|
var n = e ? Yn(t.buffer) : t.buffer;
|
|
2340
2340
|
return new t.constructor(n, t.byteOffset, t.length);
|
|
2341
2341
|
}
|
|
2342
|
-
var
|
|
2343
|
-
function
|
|
2342
|
+
var ku = "[object Boolean]", Su = "[object Date]", Pu = "[object Map]", Lu = "[object Number]", $u = "[object RegExp]", Du = "[object Set]", Ou = "[object String]", Mu = "[object Symbol]", Bu = "[object ArrayBuffer]", Ru = "[object DataView]", xu = "[object Float32Array]", Qu = "[object Float64Array]", ju = "[object Int8Array]", Nu = "[object Int16Array]", Hu = "[object Int32Array]", Uu = "[object Uint8Array]", Fu = "[object Uint8ClampedArray]", Vu = "[object Uint16Array]", Wu = "[object Uint32Array]";
|
|
2343
|
+
function zu(t, e, n) {
|
|
2344
2344
|
var o = t.constructor;
|
|
2345
2345
|
switch (e) {
|
|
2346
|
-
case
|
|
2346
|
+
case Bu:
|
|
2347
2347
|
return Yn(t);
|
|
2348
|
-
case Tu:
|
|
2349
2348
|
case ku:
|
|
2349
|
+
case Su:
|
|
2350
2350
|
return new o(+t);
|
|
2351
|
-
case Bu:
|
|
2352
|
-
return _u(t, n);
|
|
2353
2351
|
case Ru:
|
|
2352
|
+
return bu(t, n);
|
|
2354
2353
|
case xu:
|
|
2355
2354
|
case Qu:
|
|
2356
2355
|
case ju:
|
|
@@ -2359,21 +2358,22 @@ function Wu(t, e, n) {
|
|
|
2359
2358
|
case Uu:
|
|
2360
2359
|
case Fu:
|
|
2361
2360
|
case Vu:
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
return new o();
|
|
2361
|
+
case Wu:
|
|
2362
|
+
return Tu(t, n);
|
|
2365
2363
|
case Pu:
|
|
2366
|
-
|
|
2367
|
-
return new o(t);
|
|
2364
|
+
return new o();
|
|
2368
2365
|
case Lu:
|
|
2369
|
-
|
|
2366
|
+
case Ou:
|
|
2367
|
+
return new o(t);
|
|
2370
2368
|
case $u:
|
|
2369
|
+
return Iu(t);
|
|
2370
|
+
case Du:
|
|
2371
2371
|
return new o();
|
|
2372
2372
|
case Mu:
|
|
2373
|
-
return
|
|
2373
|
+
return Eu(t);
|
|
2374
2374
|
}
|
|
2375
2375
|
}
|
|
2376
|
-
var zo = Object.create,
|
|
2376
|
+
var zo = Object.create, qu = /* @__PURE__ */ function() {
|
|
2377
2377
|
function t() {
|
|
2378
2378
|
}
|
|
2379
2379
|
return function(e) {
|
|
@@ -2386,60 +2386,60 @@ var zo = Object.create, zu = /* @__PURE__ */ function() {
|
|
|
2386
2386
|
return t.prototype = void 0, n;
|
|
2387
2387
|
};
|
|
2388
2388
|
}();
|
|
2389
|
-
function
|
|
2390
|
-
return typeof t.constructor == "function" && !Kn(t) ?
|
|
2389
|
+
function Ju(t) {
|
|
2390
|
+
return typeof t.constructor == "function" && !Kn(t) ? qu(qr(t)) : {};
|
|
2391
2391
|
}
|
|
2392
|
-
var
|
|
2393
|
-
function
|
|
2394
|
-
return Qt(t) && Qe(t) ==
|
|
2392
|
+
var Ku = "[object Map]";
|
|
2393
|
+
function Gu(t) {
|
|
2394
|
+
return Qt(t) && Qe(t) == Ku;
|
|
2395
2395
|
}
|
|
2396
|
-
var qo = dt && dt.isMap,
|
|
2397
|
-
function
|
|
2398
|
-
return Qt(t) && Qe(t) ==
|
|
2396
|
+
var qo = dt && dt.isMap, Xu = qo ? Jn(qo) : Gu, Zu = "[object Set]";
|
|
2397
|
+
function Yu(t) {
|
|
2398
|
+
return Qt(t) && Qe(t) == Zu;
|
|
2399
2399
|
}
|
|
2400
|
-
var Jo = dt && dt.isSet,
|
|
2401
|
-
K[Gr] = K[
|
|
2402
|
-
K[
|
|
2400
|
+
var Jo = dt && dt.isSet, ed = Jo ? Jn(Jo) : Yu, td = 1, nd = 2, od = 4, Gr = "[object Arguments]", rd = "[object Array]", sd = "[object Boolean]", ad = "[object Date]", id = "[object Error]", Xr = "[object Function]", cd = "[object GeneratorFunction]", ld = "[object Map]", ud = "[object Number]", Zr = "[object Object]", dd = "[object RegExp]", pd = "[object Set]", fd = "[object String]", hd = "[object Symbol]", gd = "[object WeakMap]", md = "[object ArrayBuffer]", vd = "[object DataView]", Ad = "[object Float32Array]", yd = "[object Float64Array]", wd = "[object Int8Array]", _d = "[object Int16Array]", bd = "[object Int32Array]", Cd = "[object Uint8Array]", Id = "[object Uint8ClampedArray]", Ed = "[object Uint16Array]", Td = "[object Uint32Array]", K = {};
|
|
2401
|
+
K[Gr] = K[rd] = K[md] = K[vd] = K[sd] = K[ad] = K[Ad] = K[yd] = K[wd] = K[_d] = K[bd] = K[ld] = K[ud] = K[Zr] = K[dd] = K[pd] = K[fd] = K[hd] = K[Cd] = K[Id] = K[Ed] = K[Td] = !0;
|
|
2402
|
+
K[id] = K[Xr] = K[gd] = !1;
|
|
2403
2403
|
function zt(t, e, n, o, r, s) {
|
|
2404
|
-
var a, c = e &
|
|
2404
|
+
var a, c = e & td, l = e & nd, i = e & od;
|
|
2405
2405
|
if (a !== void 0)
|
|
2406
2406
|
return a;
|
|
2407
2407
|
if (!xt(t))
|
|
2408
2408
|
return t;
|
|
2409
2409
|
var u = qn(t);
|
|
2410
2410
|
if (u) {
|
|
2411
|
-
if (a =
|
|
2412
|
-
return
|
|
2411
|
+
if (a = _u(t), !c)
|
|
2412
|
+
return ru(t, a);
|
|
2413
2413
|
} else {
|
|
2414
|
-
var h = Qe(t), d = h == Xr || h ==
|
|
2414
|
+
var h = Qe(t), d = h == Xr || h == cd;
|
|
2415
2415
|
if (Qr(t))
|
|
2416
|
-
return
|
|
2416
|
+
return ou(t, c);
|
|
2417
2417
|
if (h == Zr || h == Gr || d && !r) {
|
|
2418
|
-
if (a = l || d ? {} :
|
|
2419
|
-
return l ?
|
|
2418
|
+
if (a = l || d ? {} : Ju(t), !c)
|
|
2419
|
+
return l ? uu(t, tu(a, t)) : cu(t, Gl(a, t));
|
|
2420
2420
|
} else {
|
|
2421
2421
|
if (!K[h])
|
|
2422
2422
|
return r ? t : {};
|
|
2423
|
-
a =
|
|
2423
|
+
a = zu(t, h, c);
|
|
2424
2424
|
}
|
|
2425
2425
|
}
|
|
2426
2426
|
s || (s = new vt());
|
|
2427
2427
|
var f = s.get(t);
|
|
2428
2428
|
if (f)
|
|
2429
2429
|
return f;
|
|
2430
|
-
s.set(t, a),
|
|
2430
|
+
s.set(t, a), ed(t) ? t.forEach(function(g) {
|
|
2431
2431
|
a.add(zt(g, e, n, g, t, s));
|
|
2432
|
-
}) :
|
|
2432
|
+
}) : Xu(t) && t.forEach(function(g, p) {
|
|
2433
2433
|
a.set(p, zt(g, e, n, p, t, s));
|
|
2434
2434
|
});
|
|
2435
|
-
var y = i ? l ?
|
|
2436
|
-
return
|
|
2435
|
+
var y = i ? l ? pu : du : l ? Xn : Gn, m = u ? void 0 : y(t);
|
|
2436
|
+
return tl(m || t, function(g, p) {
|
|
2437
2437
|
m && (p = g, g = t[p]), Br(a, p, zt(g, e, n, p, t, s));
|
|
2438
2438
|
}), a;
|
|
2439
2439
|
}
|
|
2440
|
-
var
|
|
2440
|
+
var kd = 1, Sd = 4;
|
|
2441
2441
|
function pt(t) {
|
|
2442
|
-
return zt(t,
|
|
2442
|
+
return zt(t, kd | Sd);
|
|
2443
2443
|
}
|
|
2444
2444
|
const Zt = (t, e = "") => {
|
|
2445
2445
|
for (let n of t)
|
|
@@ -2460,34 +2460,34 @@ const Zt = (t, e = "") => {
|
|
|
2460
2460
|
}
|
|
2461
2461
|
}
|
|
2462
2462
|
return null;
|
|
2463
|
-
},
|
|
2463
|
+
}, Pd = (t, e) => {
|
|
2464
2464
|
let n;
|
|
2465
2465
|
const o = t.findIndex((a) => a.code === e);
|
|
2466
2466
|
if (o === -1) return { index: o, target: n };
|
|
2467
2467
|
const r = t.slice(0, o), s = t.slice(o + 1);
|
|
2468
2468
|
return s.length && (n = s[0]), n || r.length && (n = r[r.length - 1]), { index: o, target: n };
|
|
2469
|
-
},
|
|
2469
|
+
}, On = (t) => {
|
|
2470
2470
|
const e = J().subAppList ?? [];
|
|
2471
|
-
let { index: n, target: o } =
|
|
2471
|
+
let { index: n, target: o } = Pd(e, t);
|
|
2472
2472
|
return e.splice(n, 1), e.length ? Se([{ key: "subAppList", value: e }]) : zn(), Ae([
|
|
2473
2473
|
{ key: "currentCode", value: "" },
|
|
2474
2474
|
{ key: "currentTab", value: {} },
|
|
2475
2475
|
{ key: `preTab:${t}`, value: {} },
|
|
2476
2476
|
{ key: `tabMap:${t}`, value: [] }
|
|
2477
2477
|
]), o || (o = { fixed: !0, path: Ne }), { currentApp: o };
|
|
2478
|
-
},
|
|
2478
|
+
}, Ld = (t, e) => {
|
|
2479
2479
|
const n = t.findIndex((s) => s.code === e), o = t.slice(0, n), r = t.slice(n + 1);
|
|
2480
2480
|
return { left: o, right: r };
|
|
2481
|
-
},
|
|
2481
|
+
}, $d = (t, e, n) => {
|
|
2482
2482
|
var h;
|
|
2483
|
-
const o =
|
|
2483
|
+
const o = Me(e).filter((d) => d.routeUrl).filter((d) => !(d != null && d.disable) && !(d != null && d.expired)), s = (((h = ve()) == null ? void 0 : h.tabMap) ?? {})[t] ?? [], { left: a, right: c } = Ld(s, n), l = s.filter((d) => o.find((f) => f.code === d.code));
|
|
2484
2484
|
if (!a.length && !c.length || !l.length)
|
|
2485
2485
|
return Ae([
|
|
2486
2486
|
{ key: "currentCode", value: "" },
|
|
2487
2487
|
{ key: "currentTab", value: {} },
|
|
2488
2488
|
{ key: `preTab:${t}`, value: {} },
|
|
2489
2489
|
{ key: `tabMap:${t}`, value: [] }
|
|
2490
|
-
]),
|
|
2490
|
+
]), On(t);
|
|
2491
2491
|
let i = null;
|
|
2492
2492
|
if (c.length) {
|
|
2493
2493
|
const d = c.find((f) => l.map((y) => y.code).includes(f.code));
|
|
@@ -2514,23 +2514,23 @@ const Zt = (t, e = "") => {
|
|
|
2514
2514
|
]), Sr(i.code), { currentMenu: o.find((d) => d.code === i.code), currentTab: i }) : (Ae([
|
|
2515
2515
|
{ key: `preTab:${t}`, value: {} },
|
|
2516
2516
|
{ key: `tabMap:${t}`, value: [] }
|
|
2517
|
-
]),
|
|
2517
|
+
]), On(t));
|
|
2518
2518
|
}, eo = async (t) => {
|
|
2519
|
-
const [e, n] = await
|
|
2519
|
+
const [e, n] = await Xi().run({
|
|
2520
2520
|
code: t,
|
|
2521
2521
|
showBtn: !0,
|
|
2522
2522
|
userType: 1
|
|
2523
2523
|
});
|
|
2524
2524
|
if (e || !n || !n.length) return { menus: [], originalMenus: [], err: e };
|
|
2525
|
-
|
|
2526
|
-
const o =
|
|
2527
|
-
|
|
2528
|
-
let r =
|
|
2525
|
+
Bi(n, t);
|
|
2526
|
+
const o = Me(n);
|
|
2527
|
+
xi(o, t), ji(o, t);
|
|
2528
|
+
let r = xs(n, (a) => a.isMenu);
|
|
2529
2529
|
const s = pt(r);
|
|
2530
2530
|
return r.forEach((a) => {
|
|
2531
2531
|
a != null && a.children && a.children.length && (a.originalChildren = pt(a.children)), (a != null && a.expired || a != null && a.disable) && (a.children = []);
|
|
2532
2532
|
}), { menus: r, originalMenus: s };
|
|
2533
|
-
},
|
|
2533
|
+
}, Dd = async (t) => {
|
|
2534
2534
|
var d, f, y, m;
|
|
2535
2535
|
let { microApp: e = null, menuCode: n = "", menuPath: o = "", route: r = {} } = t;
|
|
2536
2536
|
const s = ((d = r.meta) == null ? void 0 : d.showLayout) ?? !0;
|
|
@@ -2547,15 +2547,15 @@ const Zt = (t, e = "") => {
|
|
|
2547
2547
|
if (!l.length && (!s || !a))
|
|
2548
2548
|
return { menuConfig: [], currentApp: null, currentMenu: null, query: null };
|
|
2549
2549
|
if (e.routeUrl === "iot/iot") {
|
|
2550
|
-
const { instanceInfo: g } = await
|
|
2550
|
+
const { instanceInfo: g } = await Yi();
|
|
2551
2551
|
if (g) {
|
|
2552
2552
|
let p = !1;
|
|
2553
2553
|
l.forEach((_) => {
|
|
2554
2554
|
_.routeUrl === "/deviceInstance" && (_.fixed = !0, _.divise = !0, _.menuCode = _.code, _.tagName = _.tabName = "实例", _.name = g.instanceName, _.leftIcon = "change2", _.rightIcon = "change2");
|
|
2555
2555
|
});
|
|
2556
|
-
const w =
|
|
2556
|
+
const w = Qs(g.endTime) || g.endTime == 0 || g.endTime === 253370736e6 || g.endTime === "253370736000000" ? "-" : Number(g.endTime);
|
|
2557
2557
|
if (p = En().endOf("day") > En(w).endOf("day"), !n && !o && g.id && !p) {
|
|
2558
|
-
const v =
|
|
2558
|
+
const v = Me(l).find((C) => C.routeUrl === "/statisticalReport");
|
|
2559
2559
|
v && (n = v.code);
|
|
2560
2560
|
}
|
|
2561
2561
|
}
|
|
@@ -2564,7 +2564,7 @@ const Zt = (t, e = "") => {
|
|
|
2564
2564
|
const p = (ve().tabMap ?? {})[e.code] ?? [];
|
|
2565
2565
|
if (p.length) {
|
|
2566
2566
|
const w = p.filter(
|
|
2567
|
-
(_) => n && n === _.code || o && o === `/${_.applicationPath}${_.path}`.replace(/\/\//g, "/") ||
|
|
2567
|
+
(_) => n && n === _.code || o && o === `/${_.applicationPath}${_.path}`.replace(/\/\//g, "/") || Me(l).map((v) => v.code).includes(_.code)
|
|
2568
2568
|
);
|
|
2569
2569
|
Ae([
|
|
2570
2570
|
{
|
|
@@ -2575,7 +2575,7 @@ const Zt = (t, e = "") => {
|
|
|
2575
2575
|
}
|
|
2576
2576
|
}
|
|
2577
2577
|
if (!n && o) {
|
|
2578
|
-
const g =
|
|
2578
|
+
const g = Me(l).find((p) => {
|
|
2579
2579
|
const w = `/${p.applicationPath}${p.routeUrl}`.replace(/\/\//g, "/");
|
|
2580
2580
|
return p.applicationPath && p.routeUrl && (o === w || o.startsWith(`/${w}/`));
|
|
2581
2581
|
});
|
|
@@ -2593,7 +2593,7 @@ const Zt = (t, e = "") => {
|
|
|
2593
2593
|
if (!h) {
|
|
2594
2594
|
if (!s || !a)
|
|
2595
2595
|
return { menuConfig: l, currentApp: null, currentMenu: null, query: { ...r.query, app: c } };
|
|
2596
|
-
const g =
|
|
2596
|
+
const g = $d(e.code, l, n);
|
|
2597
2597
|
g != null && g.currentApp && (e = g.currentApp), g != null && g.currentMenu && (h = g.currentMenu), g != null && g.currentTab && (r.query = ((m = g.currentTab) == null ? void 0 : m.query) ?? {});
|
|
2598
2598
|
}
|
|
2599
2599
|
if ((e == null ? void 0 : e.routeUrl) === Ne)
|
|
@@ -2642,16 +2642,16 @@ const Zt = (t, e = "") => {
|
|
|
2642
2642
|
return { menuConfig: l, currentApp: e, currentMenu: h, query: w, microPath: p };
|
|
2643
2643
|
}
|
|
2644
2644
|
return { menuConfig: l, currentApp: e, currentMenu: null, query: { ...r.query, app: c } };
|
|
2645
|
-
},
|
|
2645
|
+
}, Od = qe.get("/appcategory"), Ko = T([]), Go = T(!1), Yr = async () => {
|
|
2646
2646
|
Go.value = !0;
|
|
2647
|
-
const [t, e] = await
|
|
2647
|
+
const [t, e] = await Od().run({ userType: 1 });
|
|
2648
2648
|
return Go.value = !1, t ? (Ko.value = [], { navConfig: [] }) : (Ko.value = e, Se([{ key: "appcategorys", value: e }]), { navConfig: e });
|
|
2649
|
-
}, Md = "v1",
|
|
2649
|
+
}, Md = "v1", Bd = jn.get("/organization/authProjectTree"), Rd = tt(`/api/customer/customer/${Md}`), xd = Rd.get("/project/list"), Qd = async () => {
|
|
2650
2650
|
var o, r;
|
|
2651
2651
|
const t = xn();
|
|
2652
2652
|
let e = [], n = null;
|
|
2653
2653
|
if ((t == null ? void 0 : t.flag) === 4) {
|
|
2654
|
-
const [s, a] = await
|
|
2654
|
+
const [s, a] = await xd().run();
|
|
2655
2655
|
if (e = a, e && e.length) {
|
|
2656
2656
|
const c = ((o = Ue()) == null ? void 0 : o.id) || 0;
|
|
2657
2657
|
if (c && (n = e.find((l) => l.id === c)), !c || !n) {
|
|
@@ -2660,26 +2660,26 @@ const Zt = (t, e = "") => {
|
|
|
2660
2660
|
}
|
|
2661
2661
|
}
|
|
2662
2662
|
} else {
|
|
2663
|
-
const [s, a] = await
|
|
2663
|
+
const [s, a] = await Bd().run();
|
|
2664
2664
|
if (e = a, e && e.length) {
|
|
2665
2665
|
const c = ((r = Ue()) == null ? void 0 : r.id) || 0;
|
|
2666
2666
|
c && (n = fo(e, (l) => l.id === c)), (!c || !n) && (n = fo(e, (l) => l.type === 7));
|
|
2667
2667
|
}
|
|
2668
2668
|
}
|
|
2669
2669
|
return Tr(n || { id: 0 }), pr((n == null ? void 0 : n.id) || 0), { projectConfig: e, currentProject: n };
|
|
2670
|
-
},
|
|
2671
|
-
const [t, e] = await jd().run();
|
|
2672
|
-
return t ? { loginConfig: null } : { loginConfig: e };
|
|
2673
|
-
}, Wd = async () => {
|
|
2670
|
+
}, jd = "v1", Nd = Nn.get("/visitor/login/with-default", (t) => (t.public = !0, t)), Hd = Nn.get("/visitor/appearance/with-default", (t) => (t.public = !0, t)), Ud = tt(`/api/portal/manager/${jd}`), Fd = Ud.get("/basics/home/info"), Vd = qe.get("/menu/personal-setting"), Wd = async () => {
|
|
2674
2671
|
const [t, e] = await Nd().run();
|
|
2672
|
+
return t ? { loginConfig: null } : { loginConfig: e };
|
|
2673
|
+
}, zd = async () => {
|
|
2674
|
+
const [t, e] = await Hd().run();
|
|
2675
2675
|
return t ? { platformConfig: null } : { platformConfig: e };
|
|
2676
|
-
}, es = T(null),
|
|
2677
|
-
const [t, e] = await Ud().run();
|
|
2678
|
-
return t ? { homeConfig: null } : (e && ($i(e), es.value = e), { homeConfig: e });
|
|
2679
|
-
}, Yt = T(1), ts = async () => {
|
|
2676
|
+
}, es = T(null), qd = async () => {
|
|
2680
2677
|
const [t, e] = await Fd().run();
|
|
2678
|
+
return t ? { homeConfig: null } : (e && (Di(e), es.value = e), { homeConfig: e });
|
|
2679
|
+
}, Yt = T(1), ts = async () => {
|
|
2680
|
+
const [t, e] = await Vd().run();
|
|
2681
2681
|
return t ? { personalMenuConfig: null } : (Yt.value = (e == null ? void 0 : e.style) ?? 1, { personalMenuConfig: e });
|
|
2682
|
-
},
|
|
2682
|
+
}, Jd = qe.post("/menu/personal-setting"), Kd = { class: "preson-style-drawer" }, Gd = { class: "preson-style-container" }, Xd = { class: "title" }, Zd = { class: "content" }, Yd = { class: "item-content" }, ep = ["src"], tp = { class: "item-content" }, np = ["src"], op = { class: "preson-style-footer" }, rp = /* @__PURE__ */ ee({
|
|
2683
2683
|
__name: "index",
|
|
2684
2684
|
setup(t, { expose: e }) {
|
|
2685
2685
|
const n = T(!1), o = T(!1), r = T(!1), s = T(!1), a = () => {
|
|
@@ -2687,14 +2687,14 @@ const Zt = (t, e = "") => {
|
|
|
2687
2687
|
}, c = (i) => {
|
|
2688
2688
|
i === 1 ? r.value = !1 : o.value = !1;
|
|
2689
2689
|
}, l = async () => {
|
|
2690
|
-
const [i] = await
|
|
2690
|
+
const [i] = await Jd().run({ style: o.value ? 1 : 2 });
|
|
2691
2691
|
i || (await ts(), n.value = !1);
|
|
2692
2692
|
};
|
|
2693
2693
|
return e({
|
|
2694
2694
|
/** 打开弹窗 */
|
|
2695
2695
|
openDialog: a
|
|
2696
|
-
}), (i, u) => ($(), z("div",
|
|
2697
|
-
Q(A(
|
|
2696
|
+
}), (i, u) => ($(), z("div", Kd, [
|
|
2697
|
+
Q(A(ra), {
|
|
2698
2698
|
title: A(N)("主题设置").value,
|
|
2699
2699
|
modelValue: n.value,
|
|
2700
2700
|
"onUpdate:modelValue": u[5] || (u[5] = (h) => n.value = h),
|
|
@@ -2702,7 +2702,7 @@ const Zt = (t, e = "") => {
|
|
|
2702
2702
|
direction: "rtl"
|
|
2703
2703
|
}, {
|
|
2704
2704
|
footer: x(() => [
|
|
2705
|
-
|
|
2705
|
+
M("div", op, [
|
|
2706
2706
|
Q(A(We), {
|
|
2707
2707
|
size: "middle",
|
|
2708
2708
|
onClick: u[4] || (u[4] = (h) => n.value = !1),
|
|
@@ -2729,22 +2729,22 @@ const Zt = (t, e = "") => {
|
|
|
2729
2729
|
])
|
|
2730
2730
|
]),
|
|
2731
2731
|
default: x(() => [
|
|
2732
|
-
|
|
2733
|
-
|
|
2732
|
+
M("div", Gd, [
|
|
2733
|
+
M(
|
|
2734
2734
|
"p",
|
|
2735
|
-
|
|
2735
|
+
Xd,
|
|
2736
2736
|
re(A(N)("侧边菜单栏").value),
|
|
2737
2737
|
1
|
|
2738
2738
|
/* TEXT */
|
|
2739
2739
|
),
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
src: A(
|
|
2740
|
+
M("div", Zd, [
|
|
2741
|
+
M("div", Yd, [
|
|
2742
|
+
M("img", {
|
|
2743
|
+
src: A(Si),
|
|
2744
2744
|
alt: "",
|
|
2745
2745
|
width: "180",
|
|
2746
2746
|
height: "120"
|
|
2747
|
-
}, null, 8,
|
|
2747
|
+
}, null, 8, ep),
|
|
2748
2748
|
Q(A(ho), {
|
|
2749
2749
|
modelValue: o.value,
|
|
2750
2750
|
"onUpdate:modelValue": u[0] || (u[0] = (h) => o.value = h),
|
|
@@ -2761,13 +2761,13 @@ const Zt = (t, e = "") => {
|
|
|
2761
2761
|
/* STABLE */
|
|
2762
2762
|
}, 8, ["modelValue"])
|
|
2763
2763
|
]),
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
src: A(
|
|
2764
|
+
M("div", tp, [
|
|
2765
|
+
M("img", {
|
|
2766
|
+
src: A(Pi),
|
|
2767
2767
|
alt: "",
|
|
2768
2768
|
width: "180",
|
|
2769
2769
|
height: "120"
|
|
2770
|
-
}, null, 8,
|
|
2770
|
+
}, null, 8, np),
|
|
2771
2771
|
Q(A(ho), {
|
|
2772
2772
|
modelValue: r.value,
|
|
2773
2773
|
"onUpdate:modelValue": u[2] || (u[2] = (h) => r.value = h),
|
|
@@ -2792,7 +2792,7 @@ const Zt = (t, e = "") => {
|
|
|
2792
2792
|
}, 8, ["title", "modelValue"])
|
|
2793
2793
|
]));
|
|
2794
2794
|
}
|
|
2795
|
-
}),
|
|
2795
|
+
}), sp = /* @__PURE__ */ we(rp, [["__scopeId", "data-v-760eb710"]]), ap = () => T(null), ip = { class: "iframe-container" }, cp = ["src"], lp = /* @__PURE__ */ ee({
|
|
2796
2796
|
__name: "index",
|
|
2797
2797
|
props: {
|
|
2798
2798
|
src: { default: "" }
|
|
@@ -2811,15 +2811,15 @@ const Zt = (t, e = "") => {
|
|
|
2811
2811
|
}, s = () => {
|
|
2812
2812
|
o.value = !0, r();
|
|
2813
2813
|
};
|
|
2814
|
-
return
|
|
2814
|
+
return Ot(() => {
|
|
2815
2815
|
o.value = !1;
|
|
2816
|
-
}), (a, c) => ($(), z("div",
|
|
2816
|
+
}), (a, c) => ($(), z("div", ip, [
|
|
2817
2817
|
a.src ? ($(), V(A(Un), {
|
|
2818
2818
|
key: 0,
|
|
2819
2819
|
spinning: !o.value
|
|
2820
2820
|
}, {
|
|
2821
2821
|
default: x(() => [
|
|
2822
|
-
be(
|
|
2822
|
+
be(M("iframe", {
|
|
2823
2823
|
id: "iframe-view",
|
|
2824
2824
|
ref_key: "iframeRef",
|
|
2825
2825
|
ref: n,
|
|
@@ -2827,7 +2827,7 @@ const Zt = (t, e = "") => {
|
|
|
2827
2827
|
height: "100%",
|
|
2828
2828
|
src: a.src,
|
|
2829
2829
|
onLoad: s
|
|
2830
|
-
}, null, 40,
|
|
2830
|
+
}, null, 40, cp), [
|
|
2831
2831
|
[Ee, o.value]
|
|
2832
2832
|
])
|
|
2833
2833
|
]),
|
|
@@ -2836,12 +2836,12 @@ const Zt = (t, e = "") => {
|
|
|
2836
2836
|
}, 8, ["spinning"])) : j("v-if", !0)
|
|
2837
2837
|
]));
|
|
2838
2838
|
}
|
|
2839
|
-
}),
|
|
2839
|
+
}), Mn = /* @__PURE__ */ we(lp, [["__scopeId", "data-v-ed99a1f3"]]), up = Qn.get("/login/history"), dp = () => {
|
|
2840
2840
|
const t = () => ["/licenseActivate", "/licenseDataManage", "/sso-logout"].some((l) => new RegExp(`^${l}$`, "i").test(location.pathname)), e = (a) => {
|
|
2841
2841
|
const { browserLogoImgHost: c = "", browserLogoImg: l = "" } = a || {}, i = l ? c + Rn(l) : "";
|
|
2842
|
-
|
|
2842
|
+
Oi(i), js(i);
|
|
2843
2843
|
}, n = async () => {
|
|
2844
|
-
const [a, c] = await
|
|
2844
|
+
const [a, c] = await up().run({ userId: dr().id });
|
|
2845
2845
|
a || !c || JSON.stringify(c) === "{}" || (Jt.open({
|
|
2846
2846
|
key: "loginTip",
|
|
2847
2847
|
message: "上次登录信息",
|
|
@@ -2850,14 +2850,14 @@ const Zt = (t, e = "") => {
|
|
|
2850
2850
|
le(
|
|
2851
2851
|
"div",
|
|
2852
2852
|
{ style: "font-size: 12px;color:#212121;margin-bottom:8px" },
|
|
2853
|
-
"时间:" +
|
|
2853
|
+
"时间:" + Ns(c.lastModificationTime)
|
|
2854
2854
|
),
|
|
2855
2855
|
le("div", { style: "font-size: 12px;color:#212121;" }, "IP地址:" + c.ip)
|
|
2856
2856
|
])
|
|
2857
2857
|
}), sessionStorage.setItem("loginInfoTip", "true"));
|
|
2858
2858
|
}, o = async () => {
|
|
2859
|
-
const [{ loginConfig: a }, { platformConfig: c }] = await Promise.all([
|
|
2860
|
-
e(c),
|
|
2859
|
+
const [{ loginConfig: a }, { platformConfig: c }] = await Promise.all([Wd(), zd()]);
|
|
2860
|
+
e(c), O.nav.setLogo((c == null ? void 0 : c.platformLogoImg) ?? ""), !t() && a != null && a.loginInfoTip && !sessionStorage.getItem("loginInfoTip") && n();
|
|
2861
2861
|
}, r = T(!1), s = () => new Promise((a) => {
|
|
2862
2862
|
const c = () => {
|
|
2863
2863
|
if (r.value) return a();
|
|
@@ -2865,18 +2865,18 @@ const Zt = (t, e = "") => {
|
|
|
2865
2865
|
};
|
|
2866
2866
|
c();
|
|
2867
2867
|
});
|
|
2868
|
-
return
|
|
2868
|
+
return ze(async () => {
|
|
2869
2869
|
if (await o(), t()) return;
|
|
2870
|
-
await
|
|
2870
|
+
await Ki(), await Ji();
|
|
2871
2871
|
const a = tn();
|
|
2872
2872
|
fr({ accessToken: a }), r.value = !0;
|
|
2873
2873
|
}), {
|
|
2874
2874
|
platformInited: r,
|
|
2875
2875
|
initNextTick: s
|
|
2876
2876
|
};
|
|
2877
|
-
},
|
|
2878
|
-
const e = et(), n =
|
|
2879
|
-
|
|
2877
|
+
}, pp = (t) => {
|
|
2878
|
+
const e = et(), n = Mt(), { getMenu: o } = Ws(), { getHistoryList: r, getSearchList: s } = Sp(), a = T(!0), c = T([]), l = T([]), i = T(!1), u = T(!1);
|
|
2879
|
+
G(
|
|
2880
2880
|
() => n.path,
|
|
2881
2881
|
(y) => {
|
|
2882
2882
|
i.value = y === It;
|
|
@@ -2884,10 +2884,10 @@ const Zt = (t, e = "") => {
|
|
|
2884
2884
|
{
|
|
2885
2885
|
immediate: !0
|
|
2886
2886
|
}
|
|
2887
|
-
),
|
|
2887
|
+
), G(
|
|
2888
2888
|
() => [i.value, u.value],
|
|
2889
2889
|
() => {
|
|
2890
|
-
|
|
2890
|
+
O.nav.setConfig({
|
|
2891
2891
|
showFullScreen: i.value,
|
|
2892
2892
|
showChangeEnterprise: u.value,
|
|
2893
2893
|
showSearch: !0,
|
|
@@ -2900,9 +2900,9 @@ const Zt = (t, e = "") => {
|
|
|
2900
2900
|
);
|
|
2901
2901
|
const h = async () => {
|
|
2902
2902
|
let y = {};
|
|
2903
|
-
return await
|
|
2903
|
+
return await Hs([Gi, Qd, qd, Yr, ts]).then((g) => Object.assign(y, ...g)), a.value = !1, y;
|
|
2904
2904
|
}, d = T(!1);
|
|
2905
|
-
return
|
|
2905
|
+
return O.nav.addEventListener("onBeforeMount", async () => {
|
|
2906
2906
|
var I;
|
|
2907
2907
|
await t();
|
|
2908
2908
|
const y = await h();
|
|
@@ -2912,7 +2912,7 @@ const Zt = (t, e = "") => {
|
|
|
2912
2912
|
const v = [...Ir];
|
|
2913
2913
|
v.forEach((E) => {
|
|
2914
2914
|
m != null && m.appAlias && E.value === Ne && (E.label = m.appAlias), m != null && m.homeAlias && E.value === It && (E.label = m.homeAlias);
|
|
2915
|
-
}), c.value = v, m != null && m.enable || (c.value = c.value.filter((E) => E.path === Ne), n.path === It && await e.replace(Ne)),
|
|
2915
|
+
}), c.value = v, m != null && m.enable || (c.value = c.value.filter((E) => E.path === Ne), n.path === It && await e.replace(Ne)), O.nav.setItems(c.value), g && g.length && (O.nav.setProjectConfig({
|
|
2916
2916
|
treeProps: {
|
|
2917
2917
|
disabled: (E) => E.type !== 7
|
|
2918
2918
|
},
|
|
@@ -2920,9 +2920,9 @@ const Zt = (t, e = "") => {
|
|
|
2920
2920
|
filterNodeMethod: (E) => E.type === 7,
|
|
2921
2921
|
// 树打平之后保留的数据
|
|
2922
2922
|
filterFlatCondition: (E) => E.type === 7
|
|
2923
|
-
}),
|
|
2923
|
+
}), O.nav.setProjects(g || []), p && O.nav.setActiveProject(p));
|
|
2924
2924
|
const C = Bt() ?? {}, k = C != null && C.headPicture ? Rn(C.headPicture) : void 0;
|
|
2925
|
-
l.value = [...
|
|
2925
|
+
l.value = [...Ai], p && p.id !== 0 ? await o("personCenter", "", "/userInfo") || (l.value = l.value.filter((D) => D.value !== "1")) : l.value = l.value.filter((E) => E.value !== "1"), O.nav.setUserInfo({ headPicture: k, commandList: l.value }), O.nav.setSearchConfig({
|
|
2926
2926
|
getHistoryList: r,
|
|
2927
2927
|
getSearchList: s
|
|
2928
2928
|
});
|
|
@@ -2942,8 +2942,8 @@ const Zt = (t, e = "") => {
|
|
|
2942
2942
|
};
|
|
2943
2943
|
m();
|
|
2944
2944
|
}) };
|
|
2945
|
-
},
|
|
2946
|
-
const [e, n] = await
|
|
2945
|
+
}, fp = Hn.get("/data/menu-expiration"), to = async (t) => {
|
|
2946
|
+
const [e, n] = await fp().run();
|
|
2947
2947
|
if (e) return { title: "", content: "", decs: [] };
|
|
2948
2948
|
const o = (t == null ? void 0 : t.expired) ?? !1;
|
|
2949
2949
|
return {
|
|
@@ -2951,11 +2951,11 @@ const Zt = (t, e = "") => {
|
|
|
2951
2951
|
content: o ? n.menuExpirationExpiredContent : n.menuExpirationRetrieveContent,
|
|
2952
2952
|
desc: n.menuExpirationExpiredInfo
|
|
2953
2953
|
};
|
|
2954
|
-
},
|
|
2954
|
+
}, hp = () => {
|
|
2955
2955
|
const { entryMenu: t } = an();
|
|
2956
|
-
|
|
2956
|
+
O.menu.addEventListener("onItemClick", async (e) => {
|
|
2957
2957
|
ce.innerSet = !0;
|
|
2958
|
-
const n =
|
|
2958
|
+
const n = Me(Kt(e.applicationCode)).filter((o) => !o.disable && !o.expired).find((o) => o.code === e.code);
|
|
2959
2959
|
if (!(n && !n.routeUrl)) {
|
|
2960
2960
|
if (!n) {
|
|
2961
2961
|
const { title: o, content: r, desc: s } = await to(n);
|
|
@@ -2965,16 +2965,16 @@ const Zt = (t, e = "") => {
|
|
|
2965
2965
|
t({ currentMenu: n });
|
|
2966
2966
|
}
|
|
2967
2967
|
});
|
|
2968
|
-
},
|
|
2968
|
+
}, gp = () => {
|
|
2969
2969
|
const { changeApp: t, deleteApp: e, beforeEntryApp: n } = At();
|
|
2970
|
-
|
|
2970
|
+
O.nav.addEventListener("onItemClick", async (r) => {
|
|
2971
2971
|
const s = J().currentSubAppCode ?? "";
|
|
2972
2972
|
if (s !== r.code) {
|
|
2973
|
-
if (s &&
|
|
2973
|
+
if (s && Ui(s), !r.fixed && !await n(r))
|
|
2974
2974
|
throw new Error("取消切换");
|
|
2975
2975
|
t(r);
|
|
2976
2976
|
}
|
|
2977
|
-
}),
|
|
2977
|
+
}), O.nav.addEventListener("onItemRemove", (r) => {
|
|
2978
2978
|
var i;
|
|
2979
2979
|
const s = J();
|
|
2980
2980
|
if (!((i = s.subAppList) != null && i.length) || s.subAppList.findIndex((u) => u.code === r.code) === -1) return;
|
|
@@ -2982,11 +2982,11 @@ const Zt = (t, e = "") => {
|
|
|
2982
2982
|
l && l.length && Wt(r.code, l), e(r);
|
|
2983
2983
|
});
|
|
2984
2984
|
const { enter: o } = gt();
|
|
2985
|
-
return
|
|
2986
|
-
},
|
|
2985
|
+
return O.nav.addEventListener("fullScreenHandle", o), {};
|
|
2986
|
+
}, mp = () => {
|
|
2987
2987
|
const t = et(), e = "#666666", n = "#FAFAFA", o = "#D9D9D9", r = T(e), s = T(n), a = T(o);
|
|
2988
2988
|
let c = "", l = {};
|
|
2989
|
-
|
|
2989
|
+
G(
|
|
2990
2990
|
() => t.currentRoute.value,
|
|
2991
2991
|
async (p) => {
|
|
2992
2992
|
var P, I, E, D, B, F, q;
|
|
@@ -3004,12 +3004,12 @@ const Zt = (t, e = "") => {
|
|
|
3004
3004
|
);
|
|
3005
3005
|
const { deleteApp: i } = At(), { entryMenu: u } = an(), { reloadRoute: h, unloadRoute: d } = ns(), f = (p) => {
|
|
3006
3006
|
var C;
|
|
3007
|
-
const w =
|
|
3007
|
+
const w = Me(Kt(p.applicationCode)).find((k) => k.code === p.code), v = (((C = ve().tabMap) == null ? void 0 : C[p.applicationCode]) ?? []).find((k) => k.code === p.code);
|
|
3008
3008
|
u({ currentMenu: w, route: { path: v.path, query: v.query ?? {} } });
|
|
3009
3009
|
}, y = (p) => {
|
|
3010
3010
|
if (!p || !p.length) return;
|
|
3011
3011
|
const w = p.filter((v) => !v.path.startsWith(He)).map((v) => v.path);
|
|
3012
|
-
d(w), p.filter((v) => v.path.startsWith(He)).map((v) => v.path).forEach((v) =>
|
|
3012
|
+
d(w), p.filter((v) => v.path.startsWith(He)).map((v) => v.path).forEach((v) => O.iframeView.triggerEventListener("onRefreshPage", v));
|
|
3013
3013
|
}, m = (p) => {
|
|
3014
3014
|
const w = J().currentSubAppCode ?? "";
|
|
3015
3015
|
ce.innerSet = !0;
|
|
@@ -3018,7 +3018,7 @@ const Zt = (t, e = "") => {
|
|
|
3018
3018
|
const k = () => {
|
|
3019
3019
|
var q;
|
|
3020
3020
|
let F = (((q = J().appcategorys) == null ? void 0 : q.map((ae) => ae.apps).flat()) ?? []).find((ae) => ae.code === w);
|
|
3021
|
-
F = { ...F, value: F.code, label: F.name }, i(F),
|
|
3021
|
+
F = { ...F, value: F.code, label: F.name }, i(F), O.nav.removeItem(w);
|
|
3022
3022
|
};
|
|
3023
3023
|
({
|
|
3024
3024
|
me: async (B) => {
|
|
@@ -3036,9 +3036,9 @@ const Zt = (t, e = "") => {
|
|
|
3036
3036
|
await t.push({
|
|
3037
3037
|
path: `/${F.applicationPath}${F.path}`.replace(/\/\//g, "/"),
|
|
3038
3038
|
query: F.query
|
|
3039
|
-
}),
|
|
3039
|
+
}), O.menu.setActiveItem(F.menuId), O.tab.setActiveItem(F.code);
|
|
3040
3040
|
const q = v.filter((ae) => ae.code !== B.value);
|
|
3041
|
-
q.forEach((ae) =>
|
|
3041
|
+
q.forEach((ae) => O.tab.removeItem(ae.code)), y(q), Ae([{ key: `tabMap:${w}`, value: [F] }]), f(F);
|
|
3042
3042
|
},
|
|
3043
3043
|
right: async (B) => {
|
|
3044
3044
|
const F = _.currentCode;
|
|
@@ -3047,16 +3047,16 @@ const Zt = (t, e = "") => {
|
|
|
3047
3047
|
f(Ie);
|
|
3048
3048
|
}
|
|
3049
3049
|
const q = v.slice(C + 1);
|
|
3050
|
-
q.forEach((ae) =>
|
|
3050
|
+
q.forEach((ae) => O.tab.removeItem(ae.code)), y(q), v.splice(C + 1), Ae([{ key: `tabMap:${w}`, value: v }]);
|
|
3051
3051
|
}
|
|
3052
3052
|
})[p.type](p.data);
|
|
3053
3053
|
};
|
|
3054
|
-
|
|
3054
|
+
O.tab.addEventListener("onItemClick", async (p) => {
|
|
3055
3055
|
ve().currentCode !== p.currentCode && (ce.innerSet = !0, f(p));
|
|
3056
|
-
}),
|
|
3056
|
+
}), O.tab.addEventListener("onItemRemove", (p) => {
|
|
3057
3057
|
const w = ve(), _ = J().currentSubAppCode ?? "";
|
|
3058
3058
|
w.tabMap[_].findIndex((k) => k.code === p.code) !== -1 && (Wt(p.applicationCode, [p.code]), m({ type: "me", data: p }));
|
|
3059
|
-
}),
|
|
3059
|
+
}), O.tab.addEventListener("onMenuClick", (p) => {
|
|
3060
3060
|
let w = [];
|
|
3061
3061
|
const _ = ve().tabMap[p.applicationCode] ?? [];
|
|
3062
3062
|
if (p.type.key === "right") {
|
|
@@ -3067,14 +3067,14 @@ const Zt = (t, e = "") => {
|
|
|
3067
3067
|
p.applicationCode,
|
|
3068
3068
|
w.map((v) => v.code)
|
|
3069
3069
|
), m({ type: p.type.key, data: p.data });
|
|
3070
|
-
}),
|
|
3070
|
+
}), O.tab.addEventListener("onPageRefresh", async (p) => {
|
|
3071
3071
|
if (!p) return;
|
|
3072
3072
|
if (p.path.startsWith(He)) {
|
|
3073
|
-
|
|
3073
|
+
O.iframeView.triggerEventListener("onRefreshCurrentPage");
|
|
3074
3074
|
return;
|
|
3075
3075
|
}
|
|
3076
3076
|
Wt(p.applicationCode, [p.code]);
|
|
3077
|
-
const w =
|
|
3077
|
+
const w = Me(Kt(p.applicationCode)).find((C) => C.code === p.code);
|
|
3078
3078
|
if (!w) return;
|
|
3079
3079
|
if (w.routeUrl !== p.path) {
|
|
3080
3080
|
h([p.path]), d([`/${p.applicationPath}${w.routeUrl}`]), await u({ currentMenu: w });
|
|
@@ -3084,10 +3084,10 @@ const Zt = (t, e = "") => {
|
|
|
3084
3084
|
bn(_, v) || await u({ currentMenu: w }), h([p.path]);
|
|
3085
3085
|
});
|
|
3086
3086
|
const { enter: g } = gt();
|
|
3087
|
-
return
|
|
3088
|
-
}, vn = nt(), Xo = (vn == null ? void 0 : vn.isAutoCloseApp) ?? !0, Zo = location.href.includes("showLayout=false"), Yo = window.self !== window.top,
|
|
3087
|
+
return O.tab.addEventListener("onToggleFullScreen", g), { fontColor: r, backgroudColor: s, borderColor: a };
|
|
3088
|
+
}, vn = nt(), Xo = (vn == null ? void 0 : vn.isAutoCloseApp) ?? !0, Zo = location.href.includes("showLayout=false"), Yo = window.self !== window.top, vp = () => {
|
|
3089
3089
|
const t = () => {
|
|
3090
|
-
|
|
3090
|
+
O.nav.setItems([]), O.menu.setItems([]), O.tab.setItems([]), Pr();
|
|
3091
3091
|
};
|
|
3092
3092
|
window.addEventListener("beforeunload", function(e) {
|
|
3093
3093
|
if (!(Zo || !Xo || Yo) && window.__isAutoCloseApp) {
|
|
@@ -3111,7 +3111,7 @@ const Zt = (t, e = "") => {
|
|
|
3111
3111
|
let { mainAppName: o = "", microAppName: r = "", microApps: s = [] } = nt();
|
|
3112
3112
|
!o && r && (s = [{ name: r }]);
|
|
3113
3113
|
const a = s.map((d) => d.name), c = () => {
|
|
3114
|
-
|
|
3114
|
+
O.menu.setItems([]), O.menu.setActiveItem(""), O.tab.setItems([]), O.tab.setActiveItem("");
|
|
3115
3115
|
}, l = async (d) => {
|
|
3116
3116
|
if (d.routeUrl && !a.includes(d.routeUrl)) return !0;
|
|
3117
3117
|
const f = d.code ?? "", m = (J().subAppList ?? []).find((v) => v.code === f);
|
|
@@ -3146,8 +3146,8 @@ const Zt = (t, e = "") => {
|
|
|
3146
3146
|
{ key: "subAppList", value: fe }
|
|
3147
3147
|
]), fe.forEach((de) => {
|
|
3148
3148
|
const Pe = { ...de, value: de.code, label: de.name };
|
|
3149
|
-
|
|
3150
|
-
}),
|
|
3149
|
+
O.nav.appendItem(Pe);
|
|
3150
|
+
}), O.nav.setActiveItem(f.code), f.routeUrl.includes("entrance=main")) {
|
|
3151
3151
|
await t.push({ path: f.routeUrl, query: { ...p.query, app: f.code } });
|
|
3152
3152
|
return;
|
|
3153
3153
|
}
|
|
@@ -3156,7 +3156,7 @@ const Zt = (t, e = "") => {
|
|
|
3156
3156
|
if (!t.options.routes.find((st) => st.path === Pe)) {
|
|
3157
3157
|
const st = {
|
|
3158
3158
|
path: Pe,
|
|
3159
|
-
component: le(
|
|
3159
|
+
component: le(Mn, {
|
|
3160
3160
|
src: de
|
|
3161
3161
|
}),
|
|
3162
3162
|
meta: { isIframe: !0, keepAlive: !0 }
|
|
@@ -3179,13 +3179,13 @@ const Zt = (t, e = "") => {
|
|
|
3179
3179
|
currentMenu: I = null,
|
|
3180
3180
|
microPath: E = "",
|
|
3181
3181
|
query: D = {}
|
|
3182
|
-
} = await
|
|
3182
|
+
} = await Dd({ microApp: f, menuCode: y, menuPath: m, route: p });
|
|
3183
3183
|
if (I && (p = {
|
|
3184
3184
|
path: E || `/${I.applicationPath}${I.routeUrl}`.replace(/\/\//g, "/"),
|
|
3185
3185
|
query: { ...D, app: I.applicationCode, menu: I.code },
|
|
3186
3186
|
meta: { ...(p == null ? void 0 : p.meta) ?? {} }
|
|
3187
3187
|
}), P && (P == null ? void 0 : P.code) !== (f == null ? void 0 : f.code)) {
|
|
3188
|
-
if (P.fixed && (await t.push(P.path), c(),
|
|
3188
|
+
if (P.fixed && (await t.push(P.path), c(), O.nav.setActiveItem(P.path)), !P.fixed) {
|
|
3189
3189
|
const fe = (Ie = J().subAppList) == null ? void 0 : Ie.find((Pe) => Pe.code === P.code), ie = ve().preTab[P.code], de = { ...(ie == null ? void 0 : ie.query) ?? {} };
|
|
3190
3190
|
await i({ microApp: fe, menuCode: (ie == null ? void 0 : ie.code) ?? "", route: { query: de } });
|
|
3191
3191
|
}
|
|
@@ -3205,8 +3205,8 @@ const Zt = (t, e = "") => {
|
|
|
3205
3205
|
if (w && _) {
|
|
3206
3206
|
(jt = J().subAppList) == null || jt.forEach((ie) => {
|
|
3207
3207
|
const de = { ...ie, value: ie.code, label: ie.name };
|
|
3208
|
-
|
|
3209
|
-
}),
|
|
3208
|
+
O.nav.appendItem(de);
|
|
3209
|
+
}), O.nav.setActiveItem(B.code), O.menu.setItems(k);
|
|
3210
3210
|
const fe = ve().tabMap[B.code] ?? [];
|
|
3211
3211
|
if (fe.length) {
|
|
3212
3212
|
const ie = fe.map((de) => ({
|
|
@@ -3214,15 +3214,15 @@ const Zt = (t, e = "") => {
|
|
|
3214
3214
|
value: de.code,
|
|
3215
3215
|
label: de.name
|
|
3216
3216
|
})) || [];
|
|
3217
|
-
|
|
3217
|
+
O.tab.setItems(ie);
|
|
3218
3218
|
} else
|
|
3219
|
-
|
|
3219
|
+
O.tab.setItems([]);
|
|
3220
3220
|
}
|
|
3221
3221
|
e({ currentMenu: I, microPath: E, route: p });
|
|
3222
3222
|
}, u = async (d) => {
|
|
3223
3223
|
var f;
|
|
3224
3224
|
if (ce.innerSet = !0, d.fixed) {
|
|
3225
|
-
await t.push(d.path),
|
|
3225
|
+
await t.push(d.path), O.menu.setItems([]), O.tab.setItems([]), O.nav.setActiveItem(d.path), Se([
|
|
3226
3226
|
{ key: "currentSubAppCode", value: "" },
|
|
3227
3227
|
{ key: "currentSubApp", value: {} }
|
|
3228
3228
|
]), Ae([
|
|
@@ -3249,7 +3249,7 @@ const Zt = (t, e = "") => {
|
|
|
3249
3249
|
const m = ve().tabMap[d.code] ?? [];
|
|
3250
3250
|
if (m.length) {
|
|
3251
3251
|
const w = m.filter((v) => !v.path.startsWith(He)).map((v) => v.path);
|
|
3252
|
-
n(w), m.filter((v) => v.path.startsWith(He)).map((v) => v.path).forEach((v) =>
|
|
3252
|
+
n(w), m.filter((v) => v.path.startsWith(He)).map((v) => v.path).forEach((v) => O.iframeView.triggerEventListener("onRefreshPage", v));
|
|
3253
3253
|
}
|
|
3254
3254
|
let g = null;
|
|
3255
3255
|
if (f.currentSubAppCode === d.code && (y + 1 !== f.subAppList.length ? f.subAppList[y + 1] && (g = f.subAppList[y + 1]) : f.subAppList[y - 1] && (g = f.subAppList[y - 1])), f.subAppList.splice(y, 1), Se([{ key: "subAppList", value: f.subAppList }]), Ae([
|
|
@@ -3257,10 +3257,10 @@ const Zt = (t, e = "") => {
|
|
|
3257
3257
|
{ key: `tabMap:${d.code}`, value: [] }
|
|
3258
3258
|
]), g) {
|
|
3259
3259
|
const w = { ...g, value: g.code, label: g.name };
|
|
3260
|
-
await u(w),
|
|
3260
|
+
await u(w), O.nav.setActiveItem(g.code);
|
|
3261
3261
|
}
|
|
3262
3262
|
if (!f.subAppList.length) {
|
|
3263
|
-
|
|
3263
|
+
O.menu.setItems([]), O.tab.setItems([]);
|
|
3264
3264
|
const w = Ir.find((_) => _.value === Ne);
|
|
3265
3265
|
w && u(w), zn(), kr();
|
|
3266
3266
|
}
|
|
@@ -3279,12 +3279,12 @@ const Zt = (t, e = "") => {
|
|
|
3279
3279
|
if (u === 1)
|
|
3280
3280
|
if (h === 1)
|
|
3281
3281
|
if (a.routeUrl.startsWith(He)) {
|
|
3282
|
-
const g =
|
|
3282
|
+
const g = Us(a.routeUrl, "iframeSrc");
|
|
3283
3283
|
if (d = `${He}-${a.code}`, !t.options.routes.find((p) => p.path === d)) {
|
|
3284
3284
|
const p = {
|
|
3285
3285
|
path: d,
|
|
3286
3286
|
name: d,
|
|
3287
|
-
component: le(
|
|
3287
|
+
component: le(Mn, {
|
|
3288
3288
|
src: g
|
|
3289
3289
|
}),
|
|
3290
3290
|
meta: { isIframe: !0, keepAlive: !0 }
|
|
@@ -3299,7 +3299,7 @@ const Zt = (t, e = "") => {
|
|
|
3299
3299
|
const p = {
|
|
3300
3300
|
path: d,
|
|
3301
3301
|
name: d,
|
|
3302
|
-
component: le(
|
|
3302
|
+
component: le(Mn, {
|
|
3303
3303
|
src: g
|
|
3304
3304
|
}),
|
|
3305
3305
|
meta: { isIframe: !0, keepAlive: !0 }
|
|
@@ -3328,11 +3328,11 @@ const Zt = (t, e = "") => {
|
|
|
3328
3328
|
path: d,
|
|
3329
3329
|
query: i
|
|
3330
3330
|
};
|
|
3331
|
-
|
|
3331
|
+
O.tab.appendItem({
|
|
3332
3332
|
...g,
|
|
3333
3333
|
value: g.code,
|
|
3334
3334
|
label: g.name
|
|
3335
|
-
}),
|
|
3335
|
+
}), O.tab.setActiveItem(a.code), O.menu.setActiveItem(a.id), Sr(a.code), Ae([
|
|
3336
3336
|
{
|
|
3337
3337
|
key: "currentCode",
|
|
3338
3338
|
value: a.code
|
|
@@ -3352,7 +3352,7 @@ const Zt = (t, e = "") => {
|
|
|
3352
3352
|
]);
|
|
3353
3353
|
}
|
|
3354
3354
|
} };
|
|
3355
|
-
},
|
|
3355
|
+
}, Ap = (t, e, n) => {
|
|
3356
3356
|
const { entryApp: o } = At(), r = et();
|
|
3357
3357
|
let { mainAppName: s = "", microAppName: a = "", microApps: c = [] } = nt();
|
|
3358
3358
|
!s && a && (c = [{ name: a }]);
|
|
@@ -3403,14 +3403,14 @@ const Zt = (t, e = "") => {
|
|
|
3403
3403
|
if (d.query.app) {
|
|
3404
3404
|
let I = g.find((E) => E.code === d.query.app);
|
|
3405
3405
|
if (!I && f) {
|
|
3406
|
-
const { currentApp: E } =
|
|
3406
|
+
const { currentApp: E } = On(d.query.app);
|
|
3407
3407
|
if (E) {
|
|
3408
3408
|
I = E;
|
|
3409
3409
|
const B = (ve().preTab ?? {})[I.code];
|
|
3410
3410
|
d = {}, B && (d.path = `/${B.applicationPath}${B.path}`.replace(/\/\//g, "/"), d.query = B.query);
|
|
3411
3411
|
}
|
|
3412
3412
|
}
|
|
3413
|
-
I != null && I.fixed ? (await r.push(I.path),
|
|
3413
|
+
I != null && I.fixed ? (await r.push(I.path), O.menu.setItems([]), O.tab.setItems([]), O.nav.setActiveItem(I.path)) : o({ microApp: I, menuCode: d.query.menu, menuPath: d.path, route: d });
|
|
3414
3414
|
return;
|
|
3415
3415
|
} else {
|
|
3416
3416
|
const I = c && c.find(
|
|
@@ -3432,10 +3432,10 @@ const Zt = (t, e = "") => {
|
|
|
3432
3432
|
if (f) {
|
|
3433
3433
|
(P = (k = J()) == null ? void 0 : k.subAppList) == null || P.forEach((E) => {
|
|
3434
3434
|
const D = { ...E, value: E.code, label: E.name };
|
|
3435
|
-
|
|
3435
|
+
O.nav.appendItem(D);
|
|
3436
3436
|
});
|
|
3437
3437
|
const I = t.value.find((E) => E.path === location.pathname);
|
|
3438
|
-
I && (
|
|
3438
|
+
I && (O.nav.setActiveItem(I.path), O.menu.setItems([]), O.tab.setItems([]), Se([
|
|
3439
3439
|
{ key: "currentSubAppCode", value: "" },
|
|
3440
3440
|
{ key: "currentSubApp", value: {} }
|
|
3441
3441
|
]), Ae([
|
|
@@ -3445,7 +3445,7 @@ const Zt = (t, e = "") => {
|
|
|
3445
3445
|
}
|
|
3446
3446
|
};
|
|
3447
3447
|
let i = "", u = {};
|
|
3448
|
-
|
|
3448
|
+
G(
|
|
3449
3449
|
() => r.currentRoute.value,
|
|
3450
3450
|
async (h) => {
|
|
3451
3451
|
if (!(h.path === i && bn(h.query, u))) {
|
|
@@ -3465,8 +3465,8 @@ const Zt = (t, e = "") => {
|
|
|
3465
3465
|
ce.excludeRoutes = Array.from(/* @__PURE__ */ new Set([...ce.excludeRoutes, ...n])), ce.routeKeepAliveVisible = !1, setTimeout(() => {
|
|
3466
3466
|
ce.routeKeepAliveVisible = !0, ce.excludeRoutes = [];
|
|
3467
3467
|
}, 100);
|
|
3468
|
-
} }),
|
|
3469
|
-
const t = Ms(), e =
|
|
3468
|
+
} }), yp = () => {
|
|
3469
|
+
const t = Ms(), e = ap(), n = nt(), o = async () => {
|
|
3470
3470
|
const a = {
|
|
3471
3471
|
logout: "/api/justauth/oauth-server/v1/visitor/logout"
|
|
3472
3472
|
}, c = `${location.origin}/`, l = {
|
|
@@ -3481,9 +3481,9 @@ const Zt = (t, e = "") => {
|
|
|
3481
3481
|
};
|
|
3482
3482
|
n.ssoLocale && (l.locale = "locale");
|
|
3483
3483
|
const i = Object.keys(l).map((h) => `${h}=${l[h]}`).join("&"), u = `${n.baseURL}${a.logout}?${i}`;
|
|
3484
|
-
window.__isAutoCloseApp = !1, location.replace(u), sessionStorage.clear(),
|
|
3484
|
+
window.__isAutoCloseApp = !1, location.replace(u), sessionStorage.clear(), Js(), localStorage.removeItem("idelTime");
|
|
3485
3485
|
}, { entryApp: r } = At(), s = async () => {
|
|
3486
|
-
const a = "personCenter", l = (J().appcategorys || []).map((f) => f.apps).flat(), { originalMenus: i = [] } = await eo(a), h =
|
|
3486
|
+
const a = "personCenter", l = (J().appcategorys || []).map((f) => f.apps).flat(), { originalMenus: i = [] } = await eo(a), h = Me(i).filter((f) => f.isMenu && f.routeUrl).find((f) => f.routeUrl === "/userInfo");
|
|
3487
3487
|
if (h != null && h.disable || h != null && h.expired) {
|
|
3488
3488
|
const { title: f, content: y, desc: m } = await to(h);
|
|
3489
3489
|
await kt({ title: f, content: y, desc: m });
|
|
@@ -3492,7 +3492,7 @@ const Zt = (t, e = "") => {
|
|
|
3492
3492
|
const d = l.find((f) => f.code === a);
|
|
3493
3493
|
d && r({ microApp: d, menuPath: `/${d.routeUrl}/userInfo` });
|
|
3494
3494
|
};
|
|
3495
|
-
return
|
|
3495
|
+
return O.nav.addEventListener("onUserCommandChange", (a) => {
|
|
3496
3496
|
var l, i;
|
|
3497
3497
|
({
|
|
3498
3498
|
0: (l = e.value) == null ? void 0 : l.openDialog,
|
|
@@ -3504,11 +3504,11 @@ const Zt = (t, e = "") => {
|
|
|
3504
3504
|
$changePwd: t,
|
|
3505
3505
|
$personSetDialog: e
|
|
3506
3506
|
};
|
|
3507
|
-
},
|
|
3507
|
+
}, wp = hr.get("/convert/tenant"), _p = Qn.get("/platform/withdefault"), os = () => {
|
|
3508
3508
|
const t = nt(), e = T(!1), n = T(""), o = T(""), r = () => {
|
|
3509
3509
|
n.value = Bt().id, o.value = dr().tenantId, e.value = !0;
|
|
3510
3510
|
};
|
|
3511
|
-
|
|
3511
|
+
O.nav.addEventListener("changeEnterpriseHandle", () => {
|
|
3512
3512
|
r();
|
|
3513
3513
|
});
|
|
3514
3514
|
const s = () => {
|
|
@@ -3519,7 +3519,7 @@ const Zt = (t, e = "") => {
|
|
|
3519
3519
|
userId: n,
|
|
3520
3520
|
tenantId: o,
|
|
3521
3521
|
changeEnterprise: async (c) => {
|
|
3522
|
-
const [l, i] = await
|
|
3522
|
+
const [l, i] = await wp().run({ tenant: c });
|
|
3523
3523
|
if (l) return;
|
|
3524
3524
|
e.value = !1;
|
|
3525
3525
|
const { access_token: u = "", refresh_token: h = "", expires_in: d = 0, sub: f = "", name: y = "", flag: m = "", tenant: g = "" } = i, p = {
|
|
@@ -3528,19 +3528,19 @@ const Zt = (t, e = "") => {
|
|
|
3528
3528
|
refreshToken: h,
|
|
3529
3529
|
info: i
|
|
3530
3530
|
};
|
|
3531
|
-
|
|
3531
|
+
Gs().save(p), fr(p);
|
|
3532
3532
|
const w = {
|
|
3533
3533
|
id: f,
|
|
3534
3534
|
name: y,
|
|
3535
3535
|
flag: m,
|
|
3536
3536
|
tenantId: g
|
|
3537
3537
|
};
|
|
3538
|
-
sessionStorage.setItem("hotentUserInfo", JSON.stringify(w)),
|
|
3538
|
+
sessionStorage.setItem("hotentUserInfo", JSON.stringify(w)), Xs(u);
|
|
3539
3539
|
let _ = "";
|
|
3540
3540
|
if (t != null && t.ssoLocale)
|
|
3541
3541
|
_ = `http://127.0.0.1:5000/oauth/refreshOauthToken?tenantId=${c}`;
|
|
3542
3542
|
else {
|
|
3543
|
-
const [v, C] = await
|
|
3543
|
+
const [v, C] = await _p().run();
|
|
3544
3544
|
C != null && C.loginHost && (_ = `${C.loginHost}/oauth/refreshOauthToken?tenantId=${c}`);
|
|
3545
3545
|
}
|
|
3546
3546
|
if (_) {
|
|
@@ -3550,9 +3550,9 @@ const Zt = (t, e = "") => {
|
|
|
3550
3550
|
s();
|
|
3551
3551
|
}
|
|
3552
3552
|
};
|
|
3553
|
-
},
|
|
3553
|
+
}, bp = () => {
|
|
3554
3554
|
const { changeEnterprise: t } = os();
|
|
3555
|
-
|
|
3555
|
+
O.nav.addEventListener("onProjectChange", async (e) => {
|
|
3556
3556
|
const n = xn();
|
|
3557
3557
|
if ((n == null ? void 0 : n.flag) === 4) {
|
|
3558
3558
|
const o = n.tenant.id, r = (e == null ? void 0 : e.tenant) ?? "";
|
|
@@ -3560,30 +3560,30 @@ const Zt = (t, e = "") => {
|
|
|
3560
3560
|
}
|
|
3561
3561
|
Tr(e || { id: 0 }), pr((e == null ? void 0 : e.id) || 0), (n == null ? void 0 : n.flag) !== 4 && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
3562
3562
|
});
|
|
3563
|
-
},
|
|
3563
|
+
}, Cp = qe.get("/menu/search"), Ip = qe.get("/searchhistory"), Ep = qe.post("/searchhistory"), Tp = qe.delete("/searchhistory"), kp = qe.delete("/searchhistory/deleteone"), Sp = () => {
|
|
3564
3564
|
const t = async () => {
|
|
3565
|
-
const [o, r] = await
|
|
3565
|
+
const [o, r] = await Ip().run();
|
|
3566
3566
|
return o ? [] : r.map((s) => s.clickData).filter((s) => s.routeUrl);
|
|
3567
3567
|
}, e = async (o) => {
|
|
3568
|
-
const [r, s] = await
|
|
3568
|
+
const [r, s] = await Cp().run({ name: o });
|
|
3569
3569
|
return r ? [] : s.filter((a) => a.routeUrl);
|
|
3570
3570
|
}, { entryApp: n } = At();
|
|
3571
|
-
return
|
|
3571
|
+
return O.nav.addEventListener("searchToPage", async (o) => {
|
|
3572
3572
|
const { item: r, keyword: s, cb: a } = o;
|
|
3573
3573
|
if (r != null && r.disable || r != null && r.expired) {
|
|
3574
3574
|
const { title: u, content: h, desc: d } = await to(r);
|
|
3575
3575
|
await kt({ title: u, content: h, desc: d });
|
|
3576
3576
|
return;
|
|
3577
3577
|
}
|
|
3578
|
-
await
|
|
3578
|
+
await Ep().run({ searchVal: s, clickData: r });
|
|
3579
3579
|
const i = ((J().appcategorys ?? []).map((u) => u.apps).flat() ?? []).find((u) => u.code === r.applicationCode);
|
|
3580
3580
|
i && (n({ microApp: i, menuCode: r.code }), a());
|
|
3581
|
-
}),
|
|
3581
|
+
}), O.nav.addEventListener("deleteSearchItem", async (o) => {
|
|
3582
3582
|
const { value: r, cb: s } = o;
|
|
3583
|
-
await
|
|
3584
|
-
}),
|
|
3583
|
+
await kp().run({ id: r }), s();
|
|
3584
|
+
}), O.nav.addEventListener("clearSearchList", async (o) => {
|
|
3585
3585
|
const { cb: r } = o;
|
|
3586
|
-
await
|
|
3586
|
+
await Tp().run(), r();
|
|
3587
3587
|
}), {
|
|
3588
3588
|
getHistoryList: t,
|
|
3589
3589
|
getSearchList: e
|
|
@@ -3593,13 +3593,13 @@ const Zt = (t, e = "") => {
|
|
|
3593
3593
|
innerSet: !1,
|
|
3594
3594
|
excludeRoutes: [],
|
|
3595
3595
|
routeKeepAliveVisible: !0
|
|
3596
|
-
}),
|
|
3596
|
+
}), Pp = () => {
|
|
3597
3597
|
$e.addEventListenerFromMicroApp("iot:change-instance", (t) => {
|
|
3598
3598
|
const e = J(), n = e.currentSubAppCode;
|
|
3599
3599
|
let o = Kt(n);
|
|
3600
3600
|
o.forEach((s) => {
|
|
3601
3601
|
s.fixed && (s.name = t.data.instanceInfo.instanceName);
|
|
3602
|
-
}),
|
|
3602
|
+
}), O.menu.setItems(o);
|
|
3603
3603
|
const r = e.subAppList;
|
|
3604
3604
|
r == null || r.forEach((s) => {
|
|
3605
3605
|
s.code === n && (s.menus = o);
|
|
@@ -3614,26 +3614,26 @@ const Zt = (t, e = "") => {
|
|
|
3614
3614
|
}
|
|
3615
3615
|
]);
|
|
3616
3616
|
});
|
|
3617
|
-
},
|
|
3617
|
+
}, Lp = (t) => {
|
|
3618
3618
|
["personcenter", "rightmanage"].forEach((n) => {
|
|
3619
3619
|
$e.addEventListenerFromMicroApp(`${n}:change-userinfo`, (o) => {
|
|
3620
3620
|
const { userInfo: r } = o.data, s = r != null && r.headPicture ? Rn(r.headPicture) : void 0;
|
|
3621
|
-
|
|
3621
|
+
O.nav.setUserInfo({ headPicture: s, commandList: t.value }), sessionStorage.setItem("userInfo", JSON.stringify(r));
|
|
3622
3622
|
});
|
|
3623
3623
|
});
|
|
3624
|
-
},
|
|
3624
|
+
}, $p = () => {
|
|
3625
3625
|
$e.addEventListenerFromMicroApp("devicePanelShow", (t) => {
|
|
3626
3626
|
const { deviceId: e = "", panelCode: n = "", deviceName: o = "", x: r = 0, y: s = 0, isCenter: a = !1 } = t.data;
|
|
3627
3627
|
mr(e, n, o, r, s, a);
|
|
3628
3628
|
}), $e.addEventListenerFromMicroApp("closeDevicePanel", (t) => {
|
|
3629
|
-
|
|
3629
|
+
Zs();
|
|
3630
3630
|
}), $e.addEventListenerFromMicroApp("alarmDevicePanelShow", (t) => {
|
|
3631
3631
|
const { deviceId: e = "", panelCode: n = "", alarmTime: o = "" } = t.data;
|
|
3632
|
-
|
|
3632
|
+
Ys(e, n, o);
|
|
3633
3633
|
}), $e.addEventListenerFromMicroApp("closeAlarmPanel", (t) => {
|
|
3634
|
-
|
|
3634
|
+
ea();
|
|
3635
3635
|
});
|
|
3636
|
-
},
|
|
3636
|
+
}, Dp = Nn.get("/platform/login/pwd-advance-notify-check"), Op = () => {
|
|
3637
3637
|
const t = T([]), e = T(null), n = T([]), { entryApp: o } = Gt.hooks.useEntryApp(), r = () => {
|
|
3638
3638
|
var l;
|
|
3639
3639
|
const c = (((l = J().appcategorys) == null ? void 0 : l.map((i) => i.apps).flat()) ?? []).find((i) => i.code === "messagecenter");
|
|
@@ -3643,7 +3643,7 @@ const Zt = (t, e = "") => {
|
|
|
3643
3643
|
url: "/api/messagecenter/message/v1/innersend",
|
|
3644
3644
|
reconnectWhenClose: !0,
|
|
3645
3645
|
opened: async () => {
|
|
3646
|
-
await
|
|
3646
|
+
await Dp().run();
|
|
3647
3647
|
},
|
|
3648
3648
|
message: async (a) => {
|
|
3649
3649
|
if ($e.sendMessageToMicroApp("enterpriseadmin/messagecenter", "message", { msgList: a }), window.self !== window.top) return;
|
|
@@ -3659,7 +3659,7 @@ const Zt = (t, e = "") => {
|
|
|
3659
3659
|
description: le("div", {}, [
|
|
3660
3660
|
// 标题
|
|
3661
3661
|
le("div", { class: "custom-title" }, [
|
|
3662
|
-
le(
|
|
3662
|
+
le(Je, { icon: "warning-face", width: 24, height: 24, iconColor: "#5582f3" }),
|
|
3663
3663
|
le("div", { class: "title" }, i.title)
|
|
3664
3664
|
]),
|
|
3665
3665
|
// 内容
|
|
@@ -3681,13 +3681,13 @@ const Zt = (t, e = "") => {
|
|
|
3681
3681
|
}
|
|
3682
3682
|
});
|
|
3683
3683
|
};
|
|
3684
|
-
|
|
3684
|
+
ze(async () => {
|
|
3685
3685
|
await nn(), s();
|
|
3686
|
-
}),
|
|
3686
|
+
}), Ot(() => {
|
|
3687
3687
|
e.value && e.value.disconnect(), e.value = null;
|
|
3688
3688
|
});
|
|
3689
|
-
}, Mp = "v1",
|
|
3690
|
-
function
|
|
3689
|
+
}, Mp = "v1", Bp = ht(`/api/enterpriseright/permission/${Mp}`), rs = ht("/api/device-relation/deviceproject/v1/project/device/video", xp), Rp = Hn.get("/permissionset/user-portal-menu");
|
|
3690
|
+
function xp(t) {
|
|
3691
3691
|
const e = Ue() ? Ue().id : 1;
|
|
3692
3692
|
return t.params || (t.params = {}), t.params.project = e, t.params.projectId = e, t;
|
|
3693
3693
|
}
|
|
@@ -3700,10 +3700,10 @@ function ss(t) {
|
|
|
3700
3700
|
function er(t) {
|
|
3701
3701
|
return rs.post(`/ptz?${ss(t)}`)().run();
|
|
3702
3702
|
}
|
|
3703
|
-
function
|
|
3703
|
+
function Qp(t) {
|
|
3704
3704
|
return rs.post(`/url/preview?${ss(t)}`)().run();
|
|
3705
3705
|
}
|
|
3706
|
-
const
|
|
3706
|
+
const jp = Bp.post("data/device-auth"), Np = /* @__PURE__ */ ee({
|
|
3707
3707
|
__name: "GridItem",
|
|
3708
3708
|
props: {
|
|
3709
3709
|
active: { type: Boolean },
|
|
@@ -3737,7 +3737,7 @@ const Qp = Op.post("data/device-auth"), jp = /* @__PURE__ */ ne({
|
|
|
3737
3737
|
/* CLASS, NEED_HYDRATION */
|
|
3738
3738
|
));
|
|
3739
3739
|
}
|
|
3740
|
-
}),
|
|
3740
|
+
}), Hp = /* @__PURE__ */ we(Np, [["__scopeId", "data-v-68946aef"]]), Up = { class: "layout-wrapper" }, Fp = /* @__PURE__ */ ee({
|
|
3741
3741
|
__name: "GridLayout",
|
|
3742
3742
|
props: {
|
|
3743
3743
|
gridNum: {},
|
|
@@ -3749,12 +3749,12 @@ const Qp = Op.post("data/device-auth"), jp = /* @__PURE__ */ ne({
|
|
|
3749
3749
|
const n = t, o = e, r = (s) => {
|
|
3750
3750
|
o("update:activeIndex", s);
|
|
3751
3751
|
};
|
|
3752
|
-
return (s, a) => ($(), z("div",
|
|
3752
|
+
return (s, a) => ($(), z("div", Up, [
|
|
3753
3753
|
j(' :active="index === activeIndex" '),
|
|
3754
3754
|
($(!0), z(
|
|
3755
|
-
|
|
3755
|
+
Oe,
|
|
3756
3756
|
null,
|
|
3757
|
-
Tt(n.gridNum, (c, l) => ($(), V(
|
|
3757
|
+
Tt(n.gridNum, (c, l) => ($(), V(Hp, {
|
|
3758
3758
|
active: !1,
|
|
3759
3759
|
"grid-num": n.gridNum,
|
|
3760
3760
|
onItemClick: (i) => r(l)
|
|
@@ -3773,7 +3773,7 @@ const Qp = Op.post("data/device-auth"), jp = /* @__PURE__ */ ne({
|
|
|
3773
3773
|
))
|
|
3774
3774
|
]));
|
|
3775
3775
|
}
|
|
3776
|
-
}),
|
|
3776
|
+
}), Vp = /* @__PURE__ */ we(Fp, [["__scopeId", "data-v-22baf4d8"]]), Wp = /* @__PURE__ */ ee({
|
|
3777
3777
|
__name: "DirectionControl",
|
|
3778
3778
|
emits: ["change"],
|
|
3779
3779
|
setup(t, { emit: e }) {
|
|
@@ -3789,7 +3789,7 @@ const Qp = Op.post("data/device-auth"), jp = /* @__PURE__ */ ne({
|
|
|
3789
3789
|
[
|
|
3790
3790
|
Q(A(me), { content: "左上" }, {
|
|
3791
3791
|
default: x(() => [
|
|
3792
|
-
|
|
3792
|
+
M("div", {
|
|
3793
3793
|
class: "icon icon-top-left",
|
|
3794
3794
|
onClick: s[0] || (s[0] = ue((a) => o("leftUp"), ["stop"]))
|
|
3795
3795
|
})
|
|
@@ -3799,7 +3799,7 @@ const Qp = Op.post("data/device-auth"), jp = /* @__PURE__ */ ne({
|
|
|
3799
3799
|
}),
|
|
3800
3800
|
Q(A(me), { content: "上" }, {
|
|
3801
3801
|
default: x(() => [
|
|
3802
|
-
|
|
3802
|
+
M("div", {
|
|
3803
3803
|
class: "icon icon-top",
|
|
3804
3804
|
onClick: s[1] || (s[1] = ue((a) => o("up"), ["stop"]))
|
|
3805
3805
|
})
|
|
@@ -3809,7 +3809,7 @@ const Qp = Op.post("data/device-auth"), jp = /* @__PURE__ */ ne({
|
|
|
3809
3809
|
}),
|
|
3810
3810
|
Q(A(me), { content: "右上" }, {
|
|
3811
3811
|
default: x(() => [
|
|
3812
|
-
|
|
3812
|
+
M("div", {
|
|
3813
3813
|
class: "icon icon-top-right",
|
|
3814
3814
|
onClick: s[2] || (s[2] = ue((a) => o("rightUp"), ["stop"]))
|
|
3815
3815
|
})
|
|
@@ -3819,7 +3819,7 @@ const Qp = Op.post("data/device-auth"), jp = /* @__PURE__ */ ne({
|
|
|
3819
3819
|
}),
|
|
3820
3820
|
Q(A(me), { content: "左" }, {
|
|
3821
3821
|
default: x(() => [
|
|
3822
|
-
|
|
3822
|
+
M("div", {
|
|
3823
3823
|
class: "icon icon-left",
|
|
3824
3824
|
onClick: s[3] || (s[3] = ue((a) => o("left"), ["stop"]))
|
|
3825
3825
|
})
|
|
@@ -3829,7 +3829,7 @@ const Qp = Op.post("data/device-auth"), jp = /* @__PURE__ */ ne({
|
|
|
3829
3829
|
}),
|
|
3830
3830
|
Q(A(me), { content: "自动" }, {
|
|
3831
3831
|
default: x(() => [
|
|
3832
|
-
|
|
3832
|
+
M("div", {
|
|
3833
3833
|
class: "icon icon-auto",
|
|
3834
3834
|
onClick: s[4] || (s[4] = ue((a) => o("auto"), ["stop"]))
|
|
3835
3835
|
})
|
|
@@ -3839,7 +3839,7 @@ const Qp = Op.post("data/device-auth"), jp = /* @__PURE__ */ ne({
|
|
|
3839
3839
|
}),
|
|
3840
3840
|
Q(A(me), { content: "右" }, {
|
|
3841
3841
|
default: x(() => [
|
|
3842
|
-
|
|
3842
|
+
M("div", {
|
|
3843
3843
|
class: "icon icon-right",
|
|
3844
3844
|
onClick: s[5] || (s[5] = ue((a) => o("right"), ["stop"]))
|
|
3845
3845
|
})
|
|
@@ -3849,7 +3849,7 @@ const Qp = Op.post("data/device-auth"), jp = /* @__PURE__ */ ne({
|
|
|
3849
3849
|
}),
|
|
3850
3850
|
Q(A(me), { content: "左下" }, {
|
|
3851
3851
|
default: x(() => [
|
|
3852
|
-
|
|
3852
|
+
M("div", {
|
|
3853
3853
|
class: "icon icon-bottom-left",
|
|
3854
3854
|
onClick: s[6] || (s[6] = ue((a) => o("leftDown"), ["stop"]))
|
|
3855
3855
|
})
|
|
@@ -3859,7 +3859,7 @@ const Qp = Op.post("data/device-auth"), jp = /* @__PURE__ */ ne({
|
|
|
3859
3859
|
}),
|
|
3860
3860
|
Q(A(me), { content: "下" }, {
|
|
3861
3861
|
default: x(() => [
|
|
3862
|
-
|
|
3862
|
+
M("div", {
|
|
3863
3863
|
class: "icon icon-bottom",
|
|
3864
3864
|
onClick: s[7] || (s[7] = ue((a) => o("down"), ["stop"]))
|
|
3865
3865
|
})
|
|
@@ -3869,7 +3869,7 @@ const Qp = Op.post("data/device-auth"), jp = /* @__PURE__ */ ne({
|
|
|
3869
3869
|
}),
|
|
3870
3870
|
Q(A(me), { content: "右下" }, {
|
|
3871
3871
|
default: x(() => [
|
|
3872
|
-
|
|
3872
|
+
M("div", {
|
|
3873
3873
|
class: "icon icon-bottom-right",
|
|
3874
3874
|
onClick: s[8] || (s[8] = ue((a) => o("rightDown"), ["stop"]))
|
|
3875
3875
|
})
|
|
@@ -3882,10 +3882,10 @@ const Qp = Op.post("data/device-auth"), jp = /* @__PURE__ */ ne({
|
|
|
3882
3882
|
/* NEED_HYDRATION */
|
|
3883
3883
|
));
|
|
3884
3884
|
}
|
|
3885
|
-
}),
|
|
3885
|
+
}), zp = /* @__PURE__ */ we(Wp, [["__scopeId", "data-v-69100474"]]), qp = { class: "video-wrapper" }, Jp = { class: "video-top" }, Kp = { class: "video-top_l" }, Gp = { class: "video-title-wrapper" }, Xp = { class: "video-title" }, Zp = { class: "video-top_r" }, Yp = {
|
|
3886
3886
|
key: 0,
|
|
3887
3887
|
class: "play-status"
|
|
3888
|
-
},
|
|
3888
|
+
}, ef = { class: "video-bottom" }, tf = { class: "video-bottom_r" }, nf = /* @__PURE__ */ ee({
|
|
3889
3889
|
__name: "index",
|
|
3890
3890
|
props: {
|
|
3891
3891
|
videoUrl: {},
|
|
@@ -3934,28 +3934,28 @@ const Qp = Op.post("data/device-auth"), jp = /* @__PURE__ */ ne({
|
|
|
3934
3934
|
}, p = (_) => {
|
|
3935
3935
|
o("zoomControl", _);
|
|
3936
3936
|
}, w = (_) => n.authType.includes(_);
|
|
3937
|
-
return
|
|
3937
|
+
return G(
|
|
3938
3938
|
() => l.value,
|
|
3939
3939
|
() => {
|
|
3940
3940
|
l.value && l.value.addEventListener("ended", () => {
|
|
3941
3941
|
i.value = !0, n.type === "playback" && (u.value = !1);
|
|
3942
3942
|
});
|
|
3943
3943
|
}
|
|
3944
|
-
),
|
|
3944
|
+
), G(
|
|
3945
3945
|
() => l.value,
|
|
3946
3946
|
() => {
|
|
3947
3947
|
l.value && je(() => {
|
|
3948
3948
|
l.value.playbackRate = n.playbackRate || 1;
|
|
3949
3949
|
});
|
|
3950
3950
|
}
|
|
3951
|
-
),
|
|
3951
|
+
), G(
|
|
3952
3952
|
() => s.value,
|
|
3953
3953
|
() => {
|
|
3954
3954
|
s.value && je(() => {
|
|
3955
3955
|
s.value.muted = r.value;
|
|
3956
3956
|
});
|
|
3957
3957
|
}
|
|
3958
|
-
),
|
|
3958
|
+
), G(
|
|
3959
3959
|
() => n.playbackRate,
|
|
3960
3960
|
() => {
|
|
3961
3961
|
l.value && (l.value.playbackRate = n.playbackRate || 1);
|
|
@@ -3963,43 +3963,43 @@ const Qp = Op.post("data/device-auth"), jp = /* @__PURE__ */ ne({
|
|
|
3963
3963
|
{
|
|
3964
3964
|
immediate: !0
|
|
3965
3965
|
}
|
|
3966
|
-
),
|
|
3966
|
+
), G(
|
|
3967
3967
|
() => n.paused,
|
|
3968
3968
|
() => {
|
|
3969
3969
|
s.value && (n.paused ? s.value.pause() : s.value.play());
|
|
3970
3970
|
}
|
|
3971
|
-
),
|
|
3971
|
+
), G(
|
|
3972
3972
|
() => n.videoUrl,
|
|
3973
3973
|
() => {
|
|
3974
3974
|
u.value = !1, je(() => {
|
|
3975
3975
|
u.value = !0;
|
|
3976
3976
|
});
|
|
3977
3977
|
}
|
|
3978
|
-
), (_, v) => ($(), z("div",
|
|
3978
|
+
), (_, v) => ($(), z("div", qp, [
|
|
3979
3979
|
Q(A(Un), {
|
|
3980
3980
|
spinning: n.loading,
|
|
3981
3981
|
type: "component",
|
|
3982
3982
|
tip: "加载中..."
|
|
3983
3983
|
}, {
|
|
3984
3984
|
default: x(() => [
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3985
|
+
M("div", Jp, [
|
|
3986
|
+
M("div", Kp, [
|
|
3987
|
+
M("div", Gp, [
|
|
3988
|
+
M(
|
|
3989
3989
|
"div",
|
|
3990
|
-
|
|
3990
|
+
Xp,
|
|
3991
3991
|
re(n.title.length > 20 ? n.title.slice(0, 19) + "..." : n.title),
|
|
3992
3992
|
1
|
|
3993
3993
|
/* TEXT */
|
|
3994
3994
|
)
|
|
3995
3995
|
])
|
|
3996
3996
|
]),
|
|
3997
|
-
|
|
3998
|
-
["live"].includes(_.type) ? ($(), z("span",
|
|
3997
|
+
M("div", Zp, [
|
|
3998
|
+
["live"].includes(_.type) ? ($(), z("span", Yp, "正在实时预览")) : j("v-if", !0),
|
|
3999
3999
|
j(' <das-icon class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
|
|
4000
4000
|
])
|
|
4001
4001
|
]),
|
|
4002
|
-
n.videoUrl && u.value ? ($(), V(A(
|
|
4002
|
+
n.videoUrl && u.value ? ($(), V(A(na), {
|
|
4003
4003
|
key: 0,
|
|
4004
4004
|
type: "flv",
|
|
4005
4005
|
ref_key: "dasLivePlayerRef",
|
|
@@ -4008,16 +4008,16 @@ const Qp = Op.post("data/device-auth"), jp = /* @__PURE__ */ ne({
|
|
|
4008
4008
|
onLoaded: h,
|
|
4009
4009
|
src: n.videoUrl
|
|
4010
4010
|
}, null, 8, ["muted", "src"])) : j("v-if", !0),
|
|
4011
|
-
|
|
4012
|
-
v[3] || (v[3] =
|
|
4011
|
+
M("div", ef, [
|
|
4012
|
+
v[3] || (v[3] = M(
|
|
4013
4013
|
"div",
|
|
4014
4014
|
{ class: "video-bottom_l" },
|
|
4015
4015
|
null,
|
|
4016
4016
|
-1
|
|
4017
4017
|
/* HOISTED */
|
|
4018
4018
|
)),
|
|
4019
|
-
|
|
4020
|
-
|
|
4019
|
+
M("div", tf, [
|
|
4020
|
+
M(
|
|
4021
4021
|
"div",
|
|
4022
4022
|
{
|
|
4023
4023
|
class: "controls",
|
|
@@ -4026,7 +4026,7 @@ const Qp = Op.post("data/device-auth"), jp = /* @__PURE__ */ ne({
|
|
|
4026
4026
|
[
|
|
4027
4027
|
Q(A(me), { content: "声音" }, {
|
|
4028
4028
|
default: x(() => [
|
|
4029
|
-
Q(A(
|
|
4029
|
+
Q(A(Je), {
|
|
4030
4030
|
class: "icon icon-volume",
|
|
4031
4031
|
icon: r.value ? "muted" : "volume",
|
|
4032
4032
|
onClick: ue(d, ["stop"])
|
|
@@ -4037,7 +4037,7 @@ const Qp = Op.post("data/device-auth"), jp = /* @__PURE__ */ ne({
|
|
|
4037
4037
|
}),
|
|
4038
4038
|
Q(A(me), { content: "截图" }, {
|
|
4039
4039
|
default: x(() => [
|
|
4040
|
-
Q(A(
|
|
4040
|
+
Q(A(Je), {
|
|
4041
4041
|
class: "icon icon-screenshot",
|
|
4042
4042
|
icon: "screenshot",
|
|
4043
4043
|
onClick: ue(m, ["stop"])
|
|
@@ -4051,7 +4051,7 @@ const Qp = Op.post("data/device-auth"), jp = /* @__PURE__ */ ne({
|
|
|
4051
4051
|
content: "聚焦-"
|
|
4052
4052
|
}, {
|
|
4053
4053
|
default: x(() => [
|
|
4054
|
-
["live", "polling"].includes(n.type) ? ($(), V(A(
|
|
4054
|
+
["live", "polling"].includes(n.type) ? ($(), V(A(Je), {
|
|
4055
4055
|
key: 0,
|
|
4056
4056
|
class: "icon icon-shrink",
|
|
4057
4057
|
icon: "shrink",
|
|
@@ -4066,7 +4066,7 @@ const Qp = Op.post("data/device-auth"), jp = /* @__PURE__ */ ne({
|
|
|
4066
4066
|
content: "聚焦+"
|
|
4067
4067
|
}, {
|
|
4068
4068
|
default: x(() => [
|
|
4069
|
-
["live", "polling"].includes(n.type) ? ($(), V(A(
|
|
4069
|
+
["live", "polling"].includes(n.type) ? ($(), V(A(Je), {
|
|
4070
4070
|
key: 0,
|
|
4071
4071
|
class: "icon icon-enlarge",
|
|
4072
4072
|
icon: "enlarge",
|
|
@@ -4081,7 +4081,7 @@ const Qp = Op.post("data/device-auth"), jp = /* @__PURE__ */ ne({
|
|
|
4081
4081
|
content: "方向控制"
|
|
4082
4082
|
}, {
|
|
4083
4083
|
default: x(() => [
|
|
4084
|
-
["live", "polling"].includes(n.type) ? ($(), V(A(
|
|
4084
|
+
["live", "polling"].includes(n.type) ? ($(), V(A(Je), {
|
|
4085
4085
|
key: 0,
|
|
4086
4086
|
class: "icon icon-direction-control",
|
|
4087
4087
|
icon: "direction-control",
|
|
@@ -4097,7 +4097,7 @@ const Qp = Op.post("data/device-auth"), jp = /* @__PURE__ */ ne({
|
|
|
4097
4097
|
)
|
|
4098
4098
|
])
|
|
4099
4099
|
]),
|
|
4100
|
-
a.value ? ($(), V(
|
|
4100
|
+
a.value ? ($(), V(zp, {
|
|
4101
4101
|
key: 1,
|
|
4102
4102
|
onChange: g
|
|
4103
4103
|
})) : j("v-if", !0)
|
|
@@ -4107,7 +4107,7 @@ const Qp = Op.post("data/device-auth"), jp = /* @__PURE__ */ ne({
|
|
|
4107
4107
|
}, 8, ["spinning"])
|
|
4108
4108
|
]));
|
|
4109
4109
|
}
|
|
4110
|
-
}),
|
|
4110
|
+
}), of = /* @__PURE__ */ we(nf, [["__scopeId", "data-v-6c626546"]]), rf = /* @__PURE__ */ ee({
|
|
4111
4111
|
props: {
|
|
4112
4112
|
deviceInfo: {
|
|
4113
4113
|
type: Object,
|
|
@@ -4119,16 +4119,16 @@ const Qp = Op.post("data/device-auth"), jp = /* @__PURE__ */ ne({
|
|
|
4119
4119
|
}) {
|
|
4120
4120
|
const {
|
|
4121
4121
|
deviceInfo: n
|
|
4122
|
-
} =
|
|
4122
|
+
} = Es(t), o = T(!1), r = T(""), s = async () => {
|
|
4123
4123
|
var u;
|
|
4124
4124
|
if (!((u = n.value) != null && u.deviceId)) return;
|
|
4125
4125
|
o.value = !0;
|
|
4126
|
-
const [l, i] = await
|
|
4126
|
+
const [l, i] = await Qp({
|
|
4127
4127
|
productId: n.value.productId,
|
|
4128
4128
|
deviceId: n.value.deviceId,
|
|
4129
4129
|
source: "strategy"
|
|
4130
4130
|
});
|
|
4131
|
-
l || (r.value =
|
|
4131
|
+
l || (r.value = Fs(i == null ? void 0 : i.wsFlvStreamURL)), o.value = !1;
|
|
4132
4132
|
}, a = (l) => {
|
|
4133
4133
|
er({
|
|
4134
4134
|
productId: n.value.productId,
|
|
@@ -4146,13 +4146,13 @@ const Qp = Op.post("data/device-auth"), jp = /* @__PURE__ */ ne({
|
|
|
4146
4146
|
source: "strategy"
|
|
4147
4147
|
});
|
|
4148
4148
|
};
|
|
4149
|
-
return
|
|
4149
|
+
return ze(() => {
|
|
4150
4150
|
s();
|
|
4151
|
-
}),
|
|
4151
|
+
}), G(() => n.value, () => {
|
|
4152
4152
|
s();
|
|
4153
4153
|
}, {
|
|
4154
4154
|
deep: !0
|
|
4155
|
-
}), () => Q(
|
|
4155
|
+
}), () => Q(Oe, null, [e.default({
|
|
4156
4156
|
videoUrl: r.value,
|
|
4157
4157
|
loading: o.value,
|
|
4158
4158
|
onDirectionControl: a,
|
|
@@ -4160,13 +4160,13 @@ const Qp = Op.post("data/device-auth"), jp = /* @__PURE__ */ ne({
|
|
|
4160
4160
|
})]);
|
|
4161
4161
|
}
|
|
4162
4162
|
});
|
|
4163
|
-
function
|
|
4164
|
-
const e =
|
|
4163
|
+
function sf(t) {
|
|
4164
|
+
const e = T(0), n = T(), {
|
|
4165
4165
|
toggle: o,
|
|
4166
4166
|
isFullscreen: r
|
|
4167
4167
|
} = gt(n);
|
|
4168
4168
|
return {
|
|
4169
|
-
render: () => Q(
|
|
4169
|
+
render: () => Q(Vp, {
|
|
4170
4170
|
ref: n,
|
|
4171
4171
|
gridNum: t.gridNum,
|
|
4172
4172
|
activeIndex: e.value,
|
|
@@ -4177,7 +4177,7 @@ function rf(t) {
|
|
|
4177
4177
|
index: a
|
|
4178
4178
|
}) => {
|
|
4179
4179
|
const c = t.deviceList[a];
|
|
4180
|
-
return Q(
|
|
4180
|
+
return Q(rf, {
|
|
4181
4181
|
deviceInfo: c
|
|
4182
4182
|
}, {
|
|
4183
4183
|
default: ({
|
|
@@ -4185,7 +4185,7 @@ function rf(t) {
|
|
|
4185
4185
|
onDirectionControl: i,
|
|
4186
4186
|
onZoomControl: u,
|
|
4187
4187
|
loading: h
|
|
4188
|
-
}) => Q(
|
|
4188
|
+
}) => Q(of, {
|
|
4189
4189
|
type: "live",
|
|
4190
4190
|
loading: h,
|
|
4191
4191
|
videoUrl: l,
|
|
@@ -4200,7 +4200,7 @@ function rf(t) {
|
|
|
4200
4200
|
toggleFullscreen: o
|
|
4201
4201
|
};
|
|
4202
4202
|
}
|
|
4203
|
-
const
|
|
4203
|
+
const af = /* @__PURE__ */ ee({
|
|
4204
4204
|
__name: "index",
|
|
4205
4205
|
props: {
|
|
4206
4206
|
deviceList: { default: () => [] },
|
|
@@ -4211,7 +4211,7 @@ const sf = /* @__PURE__ */ ne({
|
|
|
4211
4211
|
vr({
|
|
4212
4212
|
fullscreen2: import("@das-fed/ui/packages/icons/fullscreen-2")
|
|
4213
4213
|
});
|
|
4214
|
-
const e = t, n = T(!0), { render: o, toggleFullscreen: r } =
|
|
4214
|
+
const e = t, n = T(!0), { render: o, toggleFullscreen: r } = sf(e), s = H(() => {
|
|
4215
4215
|
let a = {};
|
|
4216
4216
|
switch (e.gridNum) {
|
|
4217
4217
|
case 1:
|
|
@@ -4240,7 +4240,7 @@ const sf = /* @__PURE__ */ ne({
|
|
|
4240
4240
|
onClosed: a.closeCallback
|
|
4241
4241
|
}, {
|
|
4242
4242
|
header: x(() => [
|
|
4243
|
-
c[1] || (c[1] =
|
|
4243
|
+
c[1] || (c[1] = M(
|
|
4244
4244
|
"div",
|
|
4245
4245
|
null,
|
|
4246
4246
|
"视频监控",
|
|
@@ -4249,7 +4249,7 @@ const sf = /* @__PURE__ */ ne({
|
|
|
4249
4249
|
)),
|
|
4250
4250
|
Q(A(me), { content: "页面全屏" }, {
|
|
4251
4251
|
default: x(() => [
|
|
4252
|
-
Q(A(
|
|
4252
|
+
Q(A(Je), {
|
|
4253
4253
|
class: "icon",
|
|
4254
4254
|
icon: "fullscreen2",
|
|
4255
4255
|
iconColor: "#999",
|
|
@@ -4267,23 +4267,23 @@ const sf = /* @__PURE__ */ ne({
|
|
|
4267
4267
|
/* STABLE */
|
|
4268
4268
|
}, 8, ["custom-class", "modelValue", "onClosed"]));
|
|
4269
4269
|
}
|
|
4270
|
-
}),
|
|
4270
|
+
}), cf = (t) => {
|
|
4271
4271
|
const { gridNum: e = 4, deviceList: n = [] } = t;
|
|
4272
4272
|
return new Promise((o) => {
|
|
4273
4273
|
let r = document.body.querySelector("#video-dialog");
|
|
4274
4274
|
r || (r = document.createElement("div"), r.setAttribute("id", "video-dialog-container"), document.body.appendChild(r));
|
|
4275
|
-
const a = le(
|
|
4275
|
+
const a = le(af, { gridNum: e, deviceList: n, closeCallback: () => {
|
|
4276
4276
|
qt(null, r), document.body.removeChild(r), o(null);
|
|
4277
4277
|
} });
|
|
4278
4278
|
qt(a, r);
|
|
4279
4279
|
});
|
|
4280
|
-
},
|
|
4280
|
+
}, lf = () => {
|
|
4281
4281
|
const t = T(4), e = T([]), n = T(null), o = async (s) => {
|
|
4282
|
-
const [a, c] = await
|
|
4282
|
+
const [a, c] = await jp(s).run();
|
|
4283
4283
|
if (!a)
|
|
4284
4284
|
return c;
|
|
4285
4285
|
}, r = async () => {
|
|
4286
|
-
const s = Ue().id, [a, c] = await
|
|
4286
|
+
const s = Ue().id, [a, c] = await Rp().run({
|
|
4287
4287
|
code: "strategy",
|
|
4288
4288
|
showBtn: !1
|
|
4289
4289
|
});
|
|
@@ -4309,14 +4309,14 @@ const sf = /* @__PURE__ */ ne({
|
|
|
4309
4309
|
show: !!m
|
|
4310
4310
|
};
|
|
4311
4311
|
});
|
|
4312
|
-
e.value = f.filter((y) => !!y.show), (u = e.value) != null && u.length &&
|
|
4312
|
+
e.value = f.filter((y) => !!y.show), (u = e.value) != null && u.length && cf({ gridNum: t.value, deviceList: e.value });
|
|
4313
4313
|
}
|
|
4314
4314
|
}
|
|
4315
4315
|
}));
|
|
4316
4316
|
};
|
|
4317
|
-
return
|
|
4317
|
+
return ze(async () => {
|
|
4318
4318
|
await nn(), r();
|
|
4319
|
-
}),
|
|
4319
|
+
}), Ot(() => {
|
|
4320
4320
|
n.value && n.value.disconnect(), n.value = null;
|
|
4321
4321
|
}), {
|
|
4322
4322
|
gridNum: t,
|
|
@@ -4325,7 +4325,7 @@ const sf = /* @__PURE__ */ ne({
|
|
|
4325
4325
|
connectLinkVideoSocket: r
|
|
4326
4326
|
};
|
|
4327
4327
|
};
|
|
4328
|
-
class
|
|
4328
|
+
class Ge extends Error {
|
|
4329
4329
|
/** Constructs a new instance of {@link @microsoft/signalr.HttpError}.
|
|
4330
4330
|
*
|
|
4331
4331
|
* @param {string} errorMessage A descriptive error message.
|
|
@@ -4356,7 +4356,7 @@ class De extends Error {
|
|
|
4356
4356
|
super(e), this.__proto__ = n;
|
|
4357
4357
|
}
|
|
4358
4358
|
}
|
|
4359
|
-
class
|
|
4359
|
+
class uf extends Error {
|
|
4360
4360
|
/** Constructs a new instance of {@link @microsoft/signalr.UnsupportedTransportError}.
|
|
4361
4361
|
*
|
|
4362
4362
|
* @param {string} message A descriptive error message.
|
|
@@ -4367,7 +4367,7 @@ class lf extends Error {
|
|
|
4367
4367
|
super(e), this.transport = n, this.errorType = "UnsupportedTransportError", this.__proto__ = o;
|
|
4368
4368
|
}
|
|
4369
4369
|
}
|
|
4370
|
-
class
|
|
4370
|
+
class df extends Error {
|
|
4371
4371
|
/** Constructs a new instance of {@link @microsoft/signalr.DisabledTransportError}.
|
|
4372
4372
|
*
|
|
4373
4373
|
* @param {string} message A descriptive error message.
|
|
@@ -4378,7 +4378,7 @@ class uf extends Error {
|
|
|
4378
4378
|
super(e), this.transport = n, this.errorType = "DisabledTransportError", this.__proto__ = o;
|
|
4379
4379
|
}
|
|
4380
4380
|
}
|
|
4381
|
-
class
|
|
4381
|
+
class pf extends Error {
|
|
4382
4382
|
/** Constructs a new instance of {@link @microsoft/signalr.FailedToStartTransportError}.
|
|
4383
4383
|
*
|
|
4384
4384
|
* @param {string} message A descriptive error message.
|
|
@@ -4399,7 +4399,7 @@ class tr extends Error {
|
|
|
4399
4399
|
super(e), this.errorType = "FailedToNegotiateWithServerError", this.__proto__ = n;
|
|
4400
4400
|
}
|
|
4401
4401
|
}
|
|
4402
|
-
class
|
|
4402
|
+
class ff extends Error {
|
|
4403
4403
|
/** Constructs a new instance of {@link @microsoft/signalr.AggregateErrors}.
|
|
4404
4404
|
*
|
|
4405
4405
|
* @param {string} message A descriptive error message.
|
|
@@ -4460,7 +4460,7 @@ class Lt {
|
|
|
4460
4460
|
}
|
|
4461
4461
|
}
|
|
4462
4462
|
Lt.instance = new Lt();
|
|
4463
|
-
const
|
|
4463
|
+
const hf = "8.0.7";
|
|
4464
4464
|
class se {
|
|
4465
4465
|
static isRequired(e, n) {
|
|
4466
4466
|
if (e == null)
|
|
@@ -4475,18 +4475,18 @@ class se {
|
|
|
4475
4475
|
throw new Error(`Unknown ${o} value: ${e}.`);
|
|
4476
4476
|
}
|
|
4477
4477
|
}
|
|
4478
|
-
class
|
|
4478
|
+
class ne {
|
|
4479
4479
|
// react-native has a window but no document so we should check both
|
|
4480
4480
|
static get isBrowser() {
|
|
4481
|
-
return !
|
|
4481
|
+
return !ne.isNode && typeof window == "object" && typeof window.document == "object";
|
|
4482
4482
|
}
|
|
4483
4483
|
// WebWorkers don't have a window object so the isBrowser check would fail
|
|
4484
4484
|
static get isWebWorker() {
|
|
4485
|
-
return !
|
|
4485
|
+
return !ne.isNode && typeof self == "object" && "importScripts" in self;
|
|
4486
4486
|
}
|
|
4487
4487
|
// react-native has a window but no document
|
|
4488
4488
|
static get isReactNative() {
|
|
4489
|
-
return !
|
|
4489
|
+
return !ne.isNode && typeof window == "object" && typeof window.document > "u";
|
|
4490
4490
|
}
|
|
4491
4491
|
// Node apps shouldn't have a window object, but WebWorkers don't either
|
|
4492
4492
|
// so we need to check for both WebWorker and window
|
|
@@ -4496,9 +4496,9 @@ class te {
|
|
|
4496
4496
|
}
|
|
4497
4497
|
function $t(t, e) {
|
|
4498
4498
|
let n = "";
|
|
4499
|
-
return
|
|
4499
|
+
return Ye(t) ? (n = `Binary data of length ${t.byteLength}`, e && (n += `. Content: '${gf(t)}'`)) : typeof t == "string" && (n = `String data of length ${t.length}`, e && (n += `. Content: '${t}'`)), n;
|
|
4500
4500
|
}
|
|
4501
|
-
function
|
|
4501
|
+
function gf(t) {
|
|
4502
4502
|
const e = new Uint8Array(t);
|
|
4503
4503
|
let n = "";
|
|
4504
4504
|
return e.forEach((o) => {
|
|
@@ -4506,14 +4506,14 @@ function hf(t) {
|
|
|
4506
4506
|
n += `0x${r}${o.toString(16)} `;
|
|
4507
4507
|
}), n.substr(0, n.length - 1);
|
|
4508
4508
|
}
|
|
4509
|
-
function
|
|
4509
|
+
function Ye(t) {
|
|
4510
4510
|
return t && typeof ArrayBuffer < "u" && (t instanceof ArrayBuffer || // Sometimes we get an ArrayBuffer that doesn't satisfy instanceof
|
|
4511
4511
|
t.constructor && t.constructor.name === "ArrayBuffer");
|
|
4512
4512
|
}
|
|
4513
4513
|
async function is(t, e, n, o, r, s) {
|
|
4514
4514
|
const a = {}, [c, l] = ft();
|
|
4515
4515
|
a[c] = l, t.log(b.Trace, `(${e} transport) sending data. ${$t(r, s.logMessageContent)}.`);
|
|
4516
|
-
const i =
|
|
4516
|
+
const i = Ye(r) ? "arraybuffer" : "text", u = await n.post(o, {
|
|
4517
4517
|
content: r,
|
|
4518
4518
|
headers: { ...a, ...s.headers },
|
|
4519
4519
|
responseType: i,
|
|
@@ -4522,10 +4522,10 @@ async function is(t, e, n, o, r, s) {
|
|
|
4522
4522
|
});
|
|
4523
4523
|
t.log(b.Trace, `(${e} transport) request complete. Response status: ${u.statusCode}.`);
|
|
4524
4524
|
}
|
|
4525
|
-
function
|
|
4525
|
+
function mf(t) {
|
|
4526
4526
|
return t === void 0 ? new en(b.Information) : t === null ? Lt.instance : t.log !== void 0 ? t : new en(t);
|
|
4527
4527
|
}
|
|
4528
|
-
class
|
|
4528
|
+
class vf {
|
|
4529
4529
|
constructor(e, n) {
|
|
4530
4530
|
this._subject = e, this._observer = n;
|
|
4531
4531
|
}
|
|
@@ -4562,15 +4562,15 @@ class en {
|
|
|
4562
4562
|
}
|
|
4563
4563
|
function ft() {
|
|
4564
4564
|
let t = "X-SignalR-User-Agent";
|
|
4565
|
-
return
|
|
4565
|
+
return ne.isNode && (t = "User-Agent"), [t, Af(hf, yf(), _f(), wf())];
|
|
4566
4566
|
}
|
|
4567
|
-
function
|
|
4567
|
+
function Af(t, e, n, o) {
|
|
4568
4568
|
let r = "Microsoft SignalR/";
|
|
4569
4569
|
const s = t.split(".");
|
|
4570
4570
|
return r += `${s[0]}.${s[1]}`, r += ` (${t}; `, e && e !== "" ? r += `${e}; ` : r += "Unknown OS; ", r += `${n}`, o ? r += `; ${o}` : r += "; Unknown Runtime Version", r += ")", r;
|
|
4571
4571
|
}
|
|
4572
|
-
function
|
|
4573
|
-
if (
|
|
4572
|
+
function yf() {
|
|
4573
|
+
if (ne.isNode)
|
|
4574
4574
|
switch (process.platform) {
|
|
4575
4575
|
case "win32":
|
|
4576
4576
|
return "Windows NT";
|
|
@@ -4584,17 +4584,17 @@ function Af() {
|
|
|
4584
4584
|
else
|
|
4585
4585
|
return "";
|
|
4586
4586
|
}
|
|
4587
|
-
function
|
|
4588
|
-
if (
|
|
4587
|
+
function wf() {
|
|
4588
|
+
if (ne.isNode)
|
|
4589
4589
|
return process.versions.node;
|
|
4590
4590
|
}
|
|
4591
|
-
function
|
|
4592
|
-
return
|
|
4591
|
+
function _f() {
|
|
4592
|
+
return ne.isNode ? "NodeJS" : "Browser";
|
|
4593
4593
|
}
|
|
4594
4594
|
function An(t) {
|
|
4595
4595
|
return t.stack ? t.stack : t.message ? t.message : `${t}`;
|
|
4596
4596
|
}
|
|
4597
|
-
function
|
|
4597
|
+
function bf() {
|
|
4598
4598
|
if (typeof globalThis < "u")
|
|
4599
4599
|
return globalThis;
|
|
4600
4600
|
if (typeof self < "u")
|
|
@@ -4605,13 +4605,13 @@ function _f() {
|
|
|
4605
4605
|
return global;
|
|
4606
4606
|
throw new Error("could not find global");
|
|
4607
4607
|
}
|
|
4608
|
-
class
|
|
4608
|
+
class Cf extends cn {
|
|
4609
4609
|
constructor(e) {
|
|
4610
|
-
if (super(), this._logger = e, typeof fetch > "u" ||
|
|
4610
|
+
if (super(), this._logger = e, typeof fetch > "u" || ne.isNode) {
|
|
4611
4611
|
const n = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
4612
4612
|
this._jar = new (n("tough-cookie")).CookieJar(), typeof fetch > "u" ? this._fetchType = n("node-fetch") : this._fetchType = fetch, this._fetchType = n("fetch-cookie")(this._fetchType, this._jar);
|
|
4613
4613
|
} else
|
|
4614
|
-
this._fetchType = fetch.bind(
|
|
4614
|
+
this._fetchType = fetch.bind(bf());
|
|
4615
4615
|
if (typeof AbortController > "u") {
|
|
4616
4616
|
const n = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
4617
4617
|
this._abortControllerType = n("abort-controller");
|
|
@@ -4638,7 +4638,7 @@ class bf extends cn {
|
|
|
4638
4638
|
n.abort(), this._logger.log(b.Warning, "Timeout from HTTP request."), o = new no();
|
|
4639
4639
|
}, l);
|
|
4640
4640
|
}
|
|
4641
|
-
e.content === "" && (e.content = void 0), e.content && (e.headers = e.headers || {},
|
|
4641
|
+
e.content === "" && (e.content = void 0), e.content && (e.headers = e.headers || {}, Ye(e.content) ? e.headers["Content-Type"] = "application/octet-stream" : e.headers["Content-Type"] = "text/plain;charset=UTF-8");
|
|
4642
4642
|
let s;
|
|
4643
4643
|
try {
|
|
4644
4644
|
s = await this._fetchType(e.url, {
|
|
@@ -4661,14 +4661,14 @@ class bf extends cn {
|
|
|
4661
4661
|
}
|
|
4662
4662
|
if (!s.ok) {
|
|
4663
4663
|
const l = await nr(s, "text");
|
|
4664
|
-
throw new
|
|
4664
|
+
throw new Ge(l || s.statusText, s.status);
|
|
4665
4665
|
}
|
|
4666
4666
|
const c = await nr(s, e.responseType);
|
|
4667
4667
|
return new as(s.status, s.statusText, c);
|
|
4668
4668
|
}
|
|
4669
4669
|
getCookieString(e) {
|
|
4670
4670
|
let n = "";
|
|
4671
|
-
return
|
|
4671
|
+
return ne.isNode && this._jar && this._jar.getCookies(e, (o, r) => n = r.join("; ")), n;
|
|
4672
4672
|
}
|
|
4673
4673
|
}
|
|
4674
4674
|
function nr(t, e) {
|
|
@@ -4690,7 +4690,7 @@ function nr(t, e) {
|
|
|
4690
4690
|
}
|
|
4691
4691
|
return n;
|
|
4692
4692
|
}
|
|
4693
|
-
class
|
|
4693
|
+
class If extends cn {
|
|
4694
4694
|
constructor(e) {
|
|
4695
4695
|
super(), this._logger = e;
|
|
4696
4696
|
}
|
|
@@ -4698,29 +4698,29 @@ class Cf extends cn {
|
|
|
4698
4698
|
send(e) {
|
|
4699
4699
|
return e.abortSignal && e.abortSignal.aborted ? Promise.reject(new De()) : e.method ? e.url ? new Promise((n, o) => {
|
|
4700
4700
|
const r = new XMLHttpRequest();
|
|
4701
|
-
r.open(e.method, e.url, !0), r.withCredentials = e.withCredentials === void 0 ? !0 : e.withCredentials, r.setRequestHeader("X-Requested-With", "XMLHttpRequest"), e.content === "" && (e.content = void 0), e.content && (
|
|
4701
|
+
r.open(e.method, e.url, !0), r.withCredentials = e.withCredentials === void 0 ? !0 : e.withCredentials, r.setRequestHeader("X-Requested-With", "XMLHttpRequest"), e.content === "" && (e.content = void 0), e.content && (Ye(e.content) ? r.setRequestHeader("Content-Type", "application/octet-stream") : r.setRequestHeader("Content-Type", "text/plain;charset=UTF-8"));
|
|
4702
4702
|
const s = e.headers;
|
|
4703
4703
|
s && Object.keys(s).forEach((a) => {
|
|
4704
4704
|
r.setRequestHeader(a, s[a]);
|
|
4705
4705
|
}), e.responseType && (r.responseType = e.responseType), e.abortSignal && (e.abortSignal.onabort = () => {
|
|
4706
4706
|
r.abort(), o(new De());
|
|
4707
4707
|
}), e.timeout && (r.timeout = e.timeout), r.onload = () => {
|
|
4708
|
-
e.abortSignal && (e.abortSignal.onabort = null), r.status >= 200 && r.status < 300 ? n(new as(r.status, r.statusText, r.response || r.responseText)) : o(new
|
|
4708
|
+
e.abortSignal && (e.abortSignal.onabort = null), r.status >= 200 && r.status < 300 ? n(new as(r.status, r.statusText, r.response || r.responseText)) : o(new Ge(r.response || r.responseText || r.statusText, r.status));
|
|
4709
4709
|
}, r.onerror = () => {
|
|
4710
|
-
this._logger.log(b.Warning, `Error from HTTP request. ${r.status}: ${r.statusText}.`), o(new
|
|
4710
|
+
this._logger.log(b.Warning, `Error from HTTP request. ${r.status}: ${r.statusText}.`), o(new Ge(r.statusText, r.status));
|
|
4711
4711
|
}, r.ontimeout = () => {
|
|
4712
4712
|
this._logger.log(b.Warning, "Timeout from HTTP request."), o(new no());
|
|
4713
4713
|
}, r.send(e.content);
|
|
4714
4714
|
}) : Promise.reject(new Error("No url defined.")) : Promise.reject(new Error("No method defined."));
|
|
4715
4715
|
}
|
|
4716
4716
|
}
|
|
4717
|
-
class
|
|
4717
|
+
class Ef extends cn {
|
|
4718
4718
|
/** Creates a new instance of the {@link @microsoft/signalr.DefaultHttpClient}, using the provided {@link @microsoft/signalr.ILogger} to log messages. */
|
|
4719
4719
|
constructor(e) {
|
|
4720
|
-
if (super(), typeof fetch < "u" ||
|
|
4721
|
-
this._httpClient = new bf(e);
|
|
4722
|
-
else if (typeof XMLHttpRequest < "u")
|
|
4720
|
+
if (super(), typeof fetch < "u" || ne.isNode)
|
|
4723
4721
|
this._httpClient = new Cf(e);
|
|
4722
|
+
else if (typeof XMLHttpRequest < "u")
|
|
4723
|
+
this._httpClient = new If(e);
|
|
4724
4724
|
else
|
|
4725
4725
|
throw new Error("No usable HttpClient found.");
|
|
4726
4726
|
}
|
|
@@ -4745,14 +4745,14 @@ class Ce {
|
|
|
4745
4745
|
}
|
|
4746
4746
|
Ce.RecordSeparatorCode = 30;
|
|
4747
4747
|
Ce.RecordSeparator = String.fromCharCode(Ce.RecordSeparatorCode);
|
|
4748
|
-
class
|
|
4748
|
+
class Tf {
|
|
4749
4749
|
// Handshake request is always JSON
|
|
4750
4750
|
writeHandshakeRequest(e) {
|
|
4751
4751
|
return Ce.write(JSON.stringify(e));
|
|
4752
4752
|
}
|
|
4753
4753
|
parseHandshakeResponse(e) {
|
|
4754
4754
|
let n, o;
|
|
4755
|
-
if (
|
|
4755
|
+
if (Ye(e)) {
|
|
4756
4756
|
const c = new Uint8Array(e), l = c.indexOf(Ce.RecordSeparatorCode);
|
|
4757
4757
|
if (l === -1)
|
|
4758
4758
|
throw new Error("Message is incomplete.");
|
|
@@ -4775,7 +4775,7 @@ var U;
|
|
|
4775
4775
|
(function(t) {
|
|
4776
4776
|
t[t.Invocation = 1] = "Invocation", t[t.StreamItem = 2] = "StreamItem", t[t.Completion = 3] = "Completion", t[t.StreamInvocation = 4] = "StreamInvocation", t[t.CancelInvocation = 5] = "CancelInvocation", t[t.Ping = 6] = "Ping", t[t.Close = 7] = "Close", t[t.Ack = 8] = "Ack", t[t.Sequence = 9] = "Sequence";
|
|
4777
4777
|
})(U || (U = {}));
|
|
4778
|
-
class
|
|
4778
|
+
class kf {
|
|
4779
4779
|
constructor() {
|
|
4780
4780
|
this.observers = [];
|
|
4781
4781
|
}
|
|
@@ -4792,10 +4792,10 @@ class Tf {
|
|
|
4792
4792
|
e.complete && e.complete();
|
|
4793
4793
|
}
|
|
4794
4794
|
subscribe(e) {
|
|
4795
|
-
return this.observers.push(e), new
|
|
4795
|
+
return this.observers.push(e), new vf(this, e);
|
|
4796
4796
|
}
|
|
4797
4797
|
}
|
|
4798
|
-
class
|
|
4798
|
+
class Sf {
|
|
4799
4799
|
constructor(e, n, o) {
|
|
4800
4800
|
this._bufferSize = 1e5, this._messages = [], this._totalMessageCount = 0, this._waitForSequenceMessage = !1, this._nextReceivingSequenceId = 1, this._latestReceivedSequenceId = 0, this._bufferedByteCount = 0, this._reconnectInProgress = !1, this._protocol = e, this._connection = n, this._bufferSize = o;
|
|
4801
4801
|
}
|
|
@@ -4807,9 +4807,9 @@ class kf {
|
|
|
4807
4807
|
let r = () => {
|
|
4808
4808
|
}, s = () => {
|
|
4809
4809
|
};
|
|
4810
|
-
|
|
4810
|
+
Ye(n) ? this._bufferedByteCount += n.byteLength : this._bufferedByteCount += n.length, this._bufferedByteCount >= this._bufferSize && (o = new Promise((a, c) => {
|
|
4811
4811
|
r = a, s = c;
|
|
4812
|
-
})), this._messages.push(new
|
|
4812
|
+
})), this._messages.push(new Pf(n, this._totalMessageCount, r, s));
|
|
4813
4813
|
}
|
|
4814
4814
|
try {
|
|
4815
4815
|
this._reconnectInProgress || await this._connection.send(n);
|
|
@@ -4823,7 +4823,7 @@ class kf {
|
|
|
4823
4823
|
for (let o = 0; o < this._messages.length; o++) {
|
|
4824
4824
|
const r = this._messages[o];
|
|
4825
4825
|
if (r._id <= e.sequenceId)
|
|
4826
|
-
n = o,
|
|
4826
|
+
n = o, Ye(r._message) ? this._bufferedByteCount -= r._message.byteLength : this._bufferedByteCount -= r._message.length, r._resolver();
|
|
4827
4827
|
else if (this._bufferedByteCount < this._bufferSize)
|
|
4828
4828
|
r._resolver();
|
|
4829
4829
|
else
|
|
@@ -4887,12 +4887,12 @@ class kf {
|
|
|
4887
4887
|
}, 1e3));
|
|
4888
4888
|
}
|
|
4889
4889
|
}
|
|
4890
|
-
class
|
|
4890
|
+
class Pf {
|
|
4891
4891
|
constructor(e, n, o, r) {
|
|
4892
4892
|
this._message = e, this._id = n, this._resolver = o, this._rejector = r;
|
|
4893
4893
|
}
|
|
4894
4894
|
}
|
|
4895
|
-
const
|
|
4895
|
+
const Lf = 30 * 1e3, $f = 15 * 1e3, Df = 1e5;
|
|
4896
4896
|
var Y;
|
|
4897
4897
|
(function(t) {
|
|
4898
4898
|
t.Disconnected = "Disconnected", t.Connecting = "Connecting", t.Connected = "Connected", t.Disconnecting = "Disconnecting", t.Reconnecting = "Reconnecting";
|
|
@@ -4909,7 +4909,7 @@ class oo {
|
|
|
4909
4909
|
constructor(e, n, o, r, s, a, c) {
|
|
4910
4910
|
this._nextKeepAlive = 0, this._freezeEventListener = () => {
|
|
4911
4911
|
this._logger.log(b.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");
|
|
4912
|
-
}, se.isRequired(e, "connection"), se.isRequired(n, "logger"), se.isRequired(o, "protocol"), this.serverTimeoutInMilliseconds = s ??
|
|
4912
|
+
}, se.isRequired(e, "connection"), se.isRequired(n, "logger"), se.isRequired(o, "protocol"), this.serverTimeoutInMilliseconds = s ?? Lf, this.keepAliveIntervalInMilliseconds = a ?? $f, this._statefulReconnectBufferSize = c ?? Df, this._logger = n, this._protocol = o, this.connection = e, this._reconnectPolicy = r, this._handshakeProtocol = new Tf(), this.connection.onreceive = (l) => this._processIncomingData(l), this.connection.onclose = (l) => this._connectionClosed(l), this._callbacks = {}, this._methods = {}, this._closedCallbacks = [], this._reconnectingCallbacks = [], this._reconnectedCallbacks = [], this._invocationId = 0, this._receivedHandshakeResponse = !1, this._connectionState = Y.Disconnected, this._connectionStarted = !1, this._cachedPingMessage = this._protocol.writeMessage({ type: U.Ping });
|
|
4913
4913
|
}
|
|
4914
4914
|
/** Indicates the state of the {@link HubConnection} to the server. */
|
|
4915
4915
|
get state() {
|
|
@@ -4949,7 +4949,7 @@ class oo {
|
|
|
4949
4949
|
return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));
|
|
4950
4950
|
this._connectionState = Y.Connecting, this._logger.log(b.Debug, "Starting HubConnection.");
|
|
4951
4951
|
try {
|
|
4952
|
-
await this._startInternal(),
|
|
4952
|
+
await this._startInternal(), ne.isBrowser && window.document.addEventListener("freeze", this._freezeEventListener), this._connectionState = Y.Connected, this._connectionStarted = !0, this._logger.log(b.Debug, "HubConnection connected successfully.");
|
|
4953
4953
|
} catch (e) {
|
|
4954
4954
|
return this._connectionState = Y.Disconnected, this._logger.log(b.Debug, `HubConnection failed to start successfully because of error '${e}'.`), Promise.reject(e);
|
|
4955
4955
|
}
|
|
@@ -4969,7 +4969,7 @@ class oo {
|
|
|
4969
4969
|
};
|
|
4970
4970
|
if (this._logger.log(b.Debug, "Sending handshake request."), await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(o)), this._logger.log(b.Information, `Using HubProtocol '${this._protocol.name}'.`), this._cleanupTimeout(), this._resetTimeoutPeriod(), this._resetKeepAliveInterval(), await e, this._stopDuringStartError)
|
|
4971
4971
|
throw this._stopDuringStartError;
|
|
4972
|
-
(this.connection.features.reconnect || !1) && (this._messageBuffer = new
|
|
4972
|
+
(this.connection.features.reconnect || !1) && (this._messageBuffer = new Sf(this._protocol, this.connection, this._statefulReconnectBufferSize), this.connection.features.disconnected = this._messageBuffer._disconnected.bind(this._messageBuffer), this.connection.features.resend = () => {
|
|
4973
4973
|
if (this._messageBuffer)
|
|
4974
4974
|
return this._messageBuffer._resend();
|
|
4975
4975
|
}), this.connection.features.inherentKeepAlive || await this._sendMessage(this._cachedPingMessage);
|
|
@@ -5013,7 +5013,7 @@ class oo {
|
|
|
5013
5013
|
stream(e, ...n) {
|
|
5014
5014
|
const [o, r] = this._replaceStreamingParams(n), s = this._createStreamInvocation(e, n, r);
|
|
5015
5015
|
let a;
|
|
5016
|
-
const c = new
|
|
5016
|
+
const c = new kf();
|
|
5017
5017
|
return c.cancelCallback = () => {
|
|
5018
5018
|
const l = this._createCancelInvocation(s.invocationId);
|
|
5019
5019
|
return delete this._callbacks[s.invocationId], a.then(() => this._sendWithProtocol(l));
|
|
@@ -5217,7 +5217,7 @@ class oo {
|
|
|
5217
5217
|
}
|
|
5218
5218
|
_completeClose(e) {
|
|
5219
5219
|
if (this._connectionStarted) {
|
|
5220
|
-
this._connectionState = Y.Disconnected, this._connectionStarted = !1, this._messageBuffer && (this._messageBuffer._dispose(e ?? new Error("Connection closed.")), this._messageBuffer = void 0),
|
|
5220
|
+
this._connectionState = Y.Disconnected, this._connectionStarted = !1, this._messageBuffer && (this._messageBuffer._dispose(e ?? new Error("Connection closed.")), this._messageBuffer = void 0), ne.isBrowser && window.document.removeEventListener("freeze", this._freezeEventListener);
|
|
5221
5221
|
try {
|
|
5222
5222
|
this._closedCallbacks.forEach((n) => n.apply(this, [e]));
|
|
5223
5223
|
} catch (n) {
|
|
@@ -5399,19 +5399,19 @@ class oo {
|
|
|
5399
5399
|
return { type: U.Close };
|
|
5400
5400
|
}
|
|
5401
5401
|
}
|
|
5402
|
-
const
|
|
5402
|
+
const Of = [0, 2e3, 1e4, 3e4, null];
|
|
5403
5403
|
class or {
|
|
5404
5404
|
constructor(e) {
|
|
5405
|
-
this._retryDelays = e !== void 0 ? [...e, null] :
|
|
5405
|
+
this._retryDelays = e !== void 0 ? [...e, null] : Of;
|
|
5406
5406
|
}
|
|
5407
5407
|
nextRetryDelayInMilliseconds(e) {
|
|
5408
5408
|
return this._retryDelays[e.previousRetryCount];
|
|
5409
5409
|
}
|
|
5410
5410
|
}
|
|
5411
|
-
class
|
|
5411
|
+
class Xe {
|
|
5412
5412
|
}
|
|
5413
|
-
|
|
5414
|
-
|
|
5413
|
+
Xe.Authorization = "Authorization";
|
|
5414
|
+
Xe.Cookie = "Cookie";
|
|
5415
5415
|
class Mf extends cn {
|
|
5416
5416
|
constructor(e, n) {
|
|
5417
5417
|
super(), this._innerClient = e, this._accessTokenFactory = n;
|
|
@@ -5423,7 +5423,7 @@ class Mf extends cn {
|
|
|
5423
5423
|
return n && o.statusCode === 401 && this._accessTokenFactory ? (this._accessToken = await this._accessTokenFactory(), this._setAuthorizationHeader(e), await this._innerClient.send(e)) : o;
|
|
5424
5424
|
}
|
|
5425
5425
|
_setAuthorizationHeader(e) {
|
|
5426
|
-
e.headers || (e.headers = {}), this._accessToken ? e.headers[
|
|
5426
|
+
e.headers || (e.headers = {}), this._accessToken ? e.headers[Xe.Authorization] = `Bearer ${this._accessToken}` : this._accessTokenFactory && e.headers[Xe.Authorization] && delete e.headers[Xe.Authorization];
|
|
5427
5427
|
}
|
|
5428
5428
|
getCookieString(e) {
|
|
5429
5429
|
return this._innerClient.getCookieString(e);
|
|
@@ -5437,7 +5437,7 @@ var ge;
|
|
|
5437
5437
|
(function(t) {
|
|
5438
5438
|
t[t.Text = 1] = "Text", t[t.Binary = 2] = "Binary";
|
|
5439
5439
|
})(ge || (ge = {}));
|
|
5440
|
-
let
|
|
5440
|
+
let Bf = class {
|
|
5441
5441
|
constructor() {
|
|
5442
5442
|
this._isAborted = !1, this.onabort = null;
|
|
5443
5443
|
}
|
|
@@ -5457,7 +5457,7 @@ class rr {
|
|
|
5457
5457
|
return this._pollAbort.aborted;
|
|
5458
5458
|
}
|
|
5459
5459
|
constructor(e, n, o) {
|
|
5460
|
-
this._httpClient = e, this._logger = n, this._pollAbort = new
|
|
5460
|
+
this._httpClient = e, this._logger = n, this._pollAbort = new Bf(), this._options = o, this._running = !1, this.onreceive = null, this.onclose = null;
|
|
5461
5461
|
}
|
|
5462
5462
|
async connect(e, n) {
|
|
5463
5463
|
if (se.isRequired(e, "url"), se.isRequired(n, "transferFormat"), se.isIn(n, ge, "transferFormat"), this._url = e, this._logger.log(b.Trace, "(LongPolling transport) Connecting."), n === ge.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
|
|
@@ -5472,7 +5472,7 @@ class rr {
|
|
|
5472
5472
|
const c = `${e}&_=${Date.now()}`;
|
|
5473
5473
|
this._logger.log(b.Trace, `(LongPolling transport) polling: ${c}.`);
|
|
5474
5474
|
const l = await this._httpClient.get(c, a);
|
|
5475
|
-
l.statusCode !== 200 ? (this._logger.log(b.Error, `(LongPolling transport) Unexpected response code: ${l.statusCode}.`), this._closeError = new
|
|
5475
|
+
l.statusCode !== 200 ? (this._logger.log(b.Error, `(LongPolling transport) Unexpected response code: ${l.statusCode}.`), this._closeError = new Ge(l.statusText || "", l.statusCode), this._running = !1) : this._running = !0, this._receiving = this._poll(this._url, a);
|
|
5476
5476
|
}
|
|
5477
5477
|
async _poll(e, n) {
|
|
5478
5478
|
try {
|
|
@@ -5481,7 +5481,7 @@ class rr {
|
|
|
5481
5481
|
const o = `${e}&_=${Date.now()}`;
|
|
5482
5482
|
this._logger.log(b.Trace, `(LongPolling transport) polling: ${o}.`);
|
|
5483
5483
|
const r = await this._httpClient.get(o, n);
|
|
5484
|
-
r.statusCode === 204 ? (this._logger.log(b.Information, "(LongPolling transport) Poll terminated by server."), this._running = !1) : r.statusCode !== 200 ? (this._logger.log(b.Error, `(LongPolling transport) Unexpected response code: ${r.statusCode}.`), this._closeError = new
|
|
5484
|
+
r.statusCode === 204 ? (this._logger.log(b.Information, "(LongPolling transport) Poll terminated by server."), this._running = !1) : r.statusCode !== 200 ? (this._logger.log(b.Error, `(LongPolling transport) Unexpected response code: ${r.statusCode}.`), this._closeError = new Ge(r.statusText || "", r.statusCode), this._running = !1) : r.content ? (this._logger.log(b.Trace, `(LongPolling transport) data received. ${$t(r.content, this._options.logMessageContent)}.`), this.onreceive && this.onreceive(r.content)) : this._logger.log(b.Trace, "(LongPolling transport) Poll timed out, reissuing.");
|
|
5485
5485
|
} catch (o) {
|
|
5486
5486
|
this._running ? o instanceof no ? this._logger.log(b.Trace, "(LongPolling transport) Poll timed out, reissuing.") : (this._closeError = o, this._running = !1) : this._logger.log(b.Trace, `(LongPolling transport) Poll errored after shutdown: ${o.message}`);
|
|
5487
5487
|
}
|
|
@@ -5509,7 +5509,7 @@ class rr {
|
|
|
5509
5509
|
} catch (a) {
|
|
5510
5510
|
s = a;
|
|
5511
5511
|
}
|
|
5512
|
-
s ? s instanceof
|
|
5512
|
+
s ? s instanceof Ge && (s.statusCode === 404 ? this._logger.log(b.Trace, "(LongPolling transport) A 404 response was returned from sending a DELETE request.") : this._logger.log(b.Trace, `(LongPolling transport) Error sending a DELETE request: ${s}`)) : this._logger.log(b.Trace, "(LongPolling transport) DELETE request accepted.");
|
|
5513
5513
|
} finally {
|
|
5514
5514
|
this._logger.log(b.Trace, "(LongPolling transport) Stop finished."), this._raiseOnClose();
|
|
5515
5515
|
}
|
|
@@ -5521,7 +5521,7 @@ class rr {
|
|
|
5521
5521
|
}
|
|
5522
5522
|
}
|
|
5523
5523
|
}
|
|
5524
|
-
class
|
|
5524
|
+
class Rf {
|
|
5525
5525
|
constructor(e, n, o, r) {
|
|
5526
5526
|
this._httpClient = e, this._accessToken = n, this._logger = o, this._options = r, this.onreceive = null, this.onclose = null;
|
|
5527
5527
|
}
|
|
@@ -5533,7 +5533,7 @@ class Bf {
|
|
|
5533
5533
|
return;
|
|
5534
5534
|
}
|
|
5535
5535
|
let a;
|
|
5536
|
-
if (
|
|
5536
|
+
if (ne.isBrowser || ne.isWebWorker)
|
|
5537
5537
|
a = new this._options.EventSource(e, { withCredentials: this._options.withCredentials });
|
|
5538
5538
|
else {
|
|
5539
5539
|
const c = this._httpClient.getCookieString(e), l = {};
|
|
@@ -5571,7 +5571,7 @@ class Bf {
|
|
|
5571
5571
|
this._eventSource && (this._eventSource.close(), this._eventSource = void 0, this.onclose && this.onclose(e));
|
|
5572
5572
|
}
|
|
5573
5573
|
}
|
|
5574
|
-
class
|
|
5574
|
+
class xf {
|
|
5575
5575
|
constructor(e, n, o, r, s, a) {
|
|
5576
5576
|
this._logger = o, this._accessTokenFactory = n, this._logMessageContent = r, this._webSocketConstructor = s, this._httpClient = e, this.onreceive = null, this.onclose = null, this._headers = a;
|
|
5577
5577
|
}
|
|
@@ -5583,9 +5583,9 @@ class Rf {
|
|
|
5583
5583
|
let a;
|
|
5584
5584
|
const c = this._httpClient.getCookieString(e);
|
|
5585
5585
|
let l = !1;
|
|
5586
|
-
if (
|
|
5586
|
+
if (ne.isNode || ne.isReactNative) {
|
|
5587
5587
|
const i = {}, [u, h] = ft();
|
|
5588
|
-
i[u] = h, o && (i[
|
|
5588
|
+
i[u] = h, o && (i[Xe.Authorization] = `Bearer ${o}`), c && (i[Xe.Cookie] = c), a = new this._webSocketConstructor(e, void 0, {
|
|
5589
5589
|
headers: { ...i, ...this._headers }
|
|
5590
5590
|
});
|
|
5591
5591
|
} else
|
|
@@ -5630,20 +5630,20 @@ class Rf {
|
|
|
5630
5630
|
}
|
|
5631
5631
|
}
|
|
5632
5632
|
const sr = 100;
|
|
5633
|
-
class
|
|
5633
|
+
class Qf {
|
|
5634
5634
|
constructor(e, n = {}) {
|
|
5635
5635
|
if (this._stopPromiseResolver = () => {
|
|
5636
|
-
}, this.features = {}, this._negotiateVersion = 1, se.isRequired(e, "url"), this._logger =
|
|
5636
|
+
}, this.features = {}, this._negotiateVersion = 1, se.isRequired(e, "url"), this._logger = mf(n.logger), this.baseUrl = this._resolveUrl(e), n = n || {}, n.logMessageContent = n.logMessageContent === void 0 ? !1 : n.logMessageContent, typeof n.withCredentials == "boolean" || n.withCredentials === void 0)
|
|
5637
5637
|
n.withCredentials = n.withCredentials === void 0 ? !0 : n.withCredentials;
|
|
5638
5638
|
else
|
|
5639
5639
|
throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");
|
|
5640
5640
|
n.timeout = n.timeout === void 0 ? 100 * 1e3 : n.timeout;
|
|
5641
5641
|
let o = null, r = null;
|
|
5642
|
-
if (
|
|
5642
|
+
if (ne.isNode && typeof require < "u") {
|
|
5643
5643
|
const s = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
5644
5644
|
o = s("ws"), r = s("eventsource");
|
|
5645
5645
|
}
|
|
5646
|
-
!
|
|
5646
|
+
!ne.isNode && typeof WebSocket < "u" && !n.WebSocket ? n.WebSocket = WebSocket : ne.isNode && !n.WebSocket && o && (n.WebSocket = o), !ne.isNode && typeof EventSource < "u" && !n.EventSource ? n.EventSource = EventSource : ne.isNode && !n.EventSource && typeof r < "u" && (n.EventSource = r), this._httpClient = new Mf(n.httpClient || new Ef(this._logger), n.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = n, this.onreceive = null, this.onclose = null;
|
|
5647
5647
|
}
|
|
5648
5648
|
async start(e) {
|
|
5649
5649
|
if (e = e || ge.Binary, se.isIn(e, ge, "transferFormat"), this._logger.log(b.Debug, `Starting connection with transfer format '${ge[e]}'.`), this._connectionState !== "Disconnected")
|
|
@@ -5736,7 +5736,7 @@ class xf {
|
|
|
5736
5736
|
return (!c.negotiateVersion || c.negotiateVersion < 1) && (c.connectionToken = c.connectionId), c.useStatefulReconnect && this._options._useStatefulReconnect !== !0 ? Promise.reject(new tr("Client didn't negotiate Stateful Reconnect but the server did.")) : c;
|
|
5737
5737
|
} catch (a) {
|
|
5738
5738
|
let c = "Failed to complete negotiation with the server: " + a;
|
|
5739
|
-
return a instanceof
|
|
5739
|
+
return a instanceof Ge && a.statusCode === 404 && (c = c + " Either this is not a SignalR endpoint or there is a proxy blocking the connection."), this._logger.log(b.Error, c), Promise.reject(new tr(c));
|
|
5740
5740
|
}
|
|
5741
5741
|
}
|
|
5742
5742
|
_createConnectUrl(e, n) {
|
|
@@ -5767,25 +5767,25 @@ class xf {
|
|
|
5767
5767
|
await this._startTransport(s, r), this.connectionId = l.connectionId;
|
|
5768
5768
|
return;
|
|
5769
5769
|
} catch (h) {
|
|
5770
|
-
if (this._logger.log(b.Error, `Failed to start the transport '${i.transport}': ${h}`), l = void 0, a.push(new
|
|
5770
|
+
if (this._logger.log(b.Error, `Failed to start the transport '${i.transport}': ${h}`), l = void 0, a.push(new pf(`${i.transport} failed: ${h}`, oe[i.transport])), this._connectionState !== "Connecting") {
|
|
5771
5771
|
const d = "Failed to select transport before stop() was called.";
|
|
5772
5772
|
return this._logger.log(b.Debug, d), Promise.reject(new De(d));
|
|
5773
5773
|
}
|
|
5774
5774
|
}
|
|
5775
5775
|
}
|
|
5776
5776
|
}
|
|
5777
|
-
return a.length > 0 ? Promise.reject(new
|
|
5777
|
+
return a.length > 0 ? Promise.reject(new ff(`Unable to connect to the server with any of the available transports. ${a.join(" ")}`, a)) : Promise.reject(new Error("None of the transports supported by the client are supported by the server."));
|
|
5778
5778
|
}
|
|
5779
5779
|
_constructTransport(e) {
|
|
5780
5780
|
switch (e) {
|
|
5781
5781
|
case oe.WebSockets:
|
|
5782
5782
|
if (!this._options.WebSocket)
|
|
5783
5783
|
throw new Error("'WebSocket' is not supported in your environment.");
|
|
5784
|
-
return new
|
|
5784
|
+
return new xf(this._httpClient, this._accessTokenFactory, this._logger, this._options.logMessageContent, this._options.WebSocket, this._options.headers || {});
|
|
5785
5785
|
case oe.ServerSentEvents:
|
|
5786
5786
|
if (!this._options.EventSource)
|
|
5787
5787
|
throw new Error("'EventSource' is not supported in your environment.");
|
|
5788
|
-
return new
|
|
5788
|
+
return new Rf(this._httpClient, this._httpClient._accessToken, this._logger, this._options);
|
|
5789
5789
|
case oe.LongPolling:
|
|
5790
5790
|
return new rr(this._httpClient, this._logger, this._options);
|
|
5791
5791
|
default:
|
|
@@ -5812,10 +5812,10 @@ class xf {
|
|
|
5812
5812
|
const s = oe[e.transport];
|
|
5813
5813
|
if (s == null)
|
|
5814
5814
|
return this._logger.log(b.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.`);
|
|
5815
|
-
if (
|
|
5815
|
+
if (jf(n, s))
|
|
5816
5816
|
if (e.transferFormats.map((c) => ge[c]).indexOf(o) >= 0) {
|
|
5817
5817
|
if (s === oe.WebSockets && !this._options.WebSocket || s === oe.ServerSentEvents && !this._options.EventSource)
|
|
5818
|
-
return this._logger.log(b.Debug, `Skipping transport '${oe[s]}' because it is not supported in your environment.'`), new
|
|
5818
|
+
return this._logger.log(b.Debug, `Skipping transport '${oe[s]}' because it is not supported in your environment.'`), new uf(`'${oe[s]}' is not supported in your environment.`, s);
|
|
5819
5819
|
this._logger.log(b.Debug, `Selecting transport '${oe[s]}'.`);
|
|
5820
5820
|
try {
|
|
5821
5821
|
return this.features.reconnect = s === oe.WebSockets ? r : void 0, this._constructTransport(s);
|
|
@@ -5825,7 +5825,7 @@ class xf {
|
|
|
5825
5825
|
} else
|
|
5826
5826
|
return this._logger.log(b.Debug, `Skipping transport '${oe[s]}' because it does not support the requested transfer format '${ge[o]}'.`), new Error(`'${oe[s]}' does not support ${ge[o]}.`);
|
|
5827
5827
|
else
|
|
5828
|
-
return this._logger.log(b.Debug, `Skipping transport '${oe[s]}' because it was disabled by the client.`), new
|
|
5828
|
+
return this._logger.log(b.Debug, `Skipping transport '${oe[s]}' because it was disabled by the client.`), new df(`'${oe[s]}' is disabled by the client.`, s);
|
|
5829
5829
|
}
|
|
5830
5830
|
_isITransport(e) {
|
|
5831
5831
|
return e && typeof e == "object" && "connect" in e;
|
|
@@ -5851,7 +5851,7 @@ class xf {
|
|
|
5851
5851
|
_resolveUrl(e) {
|
|
5852
5852
|
if (e.lastIndexOf("https://", 0) === 0 || e.lastIndexOf("http://", 0) === 0)
|
|
5853
5853
|
return e;
|
|
5854
|
-
if (!
|
|
5854
|
+
if (!ne.isBrowser)
|
|
5855
5855
|
throw new Error(`Cannot resolve '${e}'.`);
|
|
5856
5856
|
const n = window.document.createElement("a");
|
|
5857
5857
|
return n.href = e, this._logger.log(b.Information, `Normalizing '${e}' to '${n.href}'.`), n.href;
|
|
@@ -5863,7 +5863,7 @@ class xf {
|
|
|
5863
5863
|
return o.has("negotiateVersion") || o.append("negotiateVersion", this._negotiateVersion.toString()), o.has("useStatefulReconnect") ? o.get("useStatefulReconnect") === "true" && (this._options._useStatefulReconnect = !0) : this._options._useStatefulReconnect === !0 && o.append("useStatefulReconnect", "true"), n.search = o.toString(), n.toString();
|
|
5864
5864
|
}
|
|
5865
5865
|
}
|
|
5866
|
-
function
|
|
5866
|
+
function jf(t, e) {
|
|
5867
5867
|
return !t || (e & t) !== 0;
|
|
5868
5868
|
}
|
|
5869
5869
|
class ro {
|
|
@@ -5918,10 +5918,10 @@ class Ft {
|
|
|
5918
5918
|
this._rejecter(e);
|
|
5919
5919
|
}
|
|
5920
5920
|
}
|
|
5921
|
-
const
|
|
5922
|
-
class
|
|
5921
|
+
const Nf = "json";
|
|
5922
|
+
class Hf {
|
|
5923
5923
|
constructor() {
|
|
5924
|
-
this.name =
|
|
5924
|
+
this.name = Nf, this.version = 2, this.transferFormat = ge.Text;
|
|
5925
5925
|
}
|
|
5926
5926
|
/** Creates an array of {@link @microsoft/signalr.HubMessage} objects from the specified serialized representation.
|
|
5927
5927
|
*
|
|
@@ -6000,7 +6000,7 @@ class Nf {
|
|
|
6000
6000
|
throw new Error(n);
|
|
6001
6001
|
}
|
|
6002
6002
|
}
|
|
6003
|
-
const
|
|
6003
|
+
const Uf = {
|
|
6004
6004
|
trace: b.Trace,
|
|
6005
6005
|
debug: b.Debug,
|
|
6006
6006
|
info: b.Information,
|
|
@@ -6011,18 +6011,18 @@ const Hf = {
|
|
|
6011
6011
|
critical: b.Critical,
|
|
6012
6012
|
none: b.None
|
|
6013
6013
|
};
|
|
6014
|
-
function
|
|
6015
|
-
const e =
|
|
6014
|
+
function Ff(t) {
|
|
6015
|
+
const e = Uf[t.toLowerCase()];
|
|
6016
6016
|
if (typeof e < "u")
|
|
6017
6017
|
return e;
|
|
6018
6018
|
throw new Error(`Unknown log level: ${t}`);
|
|
6019
6019
|
}
|
|
6020
|
-
class
|
|
6020
|
+
class Vf {
|
|
6021
6021
|
configureLogging(e) {
|
|
6022
|
-
if (se.isRequired(e, "logging"),
|
|
6022
|
+
if (se.isRequired(e, "logging"), Wf(e))
|
|
6023
6023
|
this.logger = e;
|
|
6024
6024
|
else if (typeof e == "string") {
|
|
6025
|
-
const n =
|
|
6025
|
+
const n = Ff(e);
|
|
6026
6026
|
this.logger = new en(n);
|
|
6027
6027
|
} else
|
|
6028
6028
|
this.logger = new en(e);
|
|
@@ -6075,16 +6075,16 @@ class Ff {
|
|
|
6075
6075
|
const e = this.httpConnectionOptions || {};
|
|
6076
6076
|
if (e.logger === void 0 && (e.logger = this.logger), !this.url)
|
|
6077
6077
|
throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");
|
|
6078
|
-
const n = new
|
|
6079
|
-
return oo.create(n, this.logger || Lt.instance, this.protocol || new
|
|
6078
|
+
const n = new Qf(this.url, e);
|
|
6079
|
+
return oo.create(n, this.logger || Lt.instance, this.protocol || new Hf(), this.reconnectPolicy, this._serverTimeoutInMilliseconds, this._keepAliveIntervalInMilliseconds, this._statefulReconnectBufferSize);
|
|
6080
6080
|
}
|
|
6081
6081
|
}
|
|
6082
|
-
function
|
|
6082
|
+
function Wf(t) {
|
|
6083
6083
|
return t.log !== void 0;
|
|
6084
6084
|
}
|
|
6085
|
-
let { baseURL:
|
|
6086
|
-
const
|
|
6087
|
-
const t = new
|
|
6085
|
+
let { baseURL: zf } = nt();
|
|
6086
|
+
const qf = () => {
|
|
6087
|
+
const t = new Vf().withUrl(`${zf}/api/tool/event-bus`, {
|
|
6088
6088
|
skipNegotiation: !0,
|
|
6089
6089
|
transport: oe.WebSockets
|
|
6090
6090
|
}).withAutomaticReconnect().build();
|
|
@@ -6093,12 +6093,12 @@ const zf = () => {
|
|
|
6093
6093
|
}), t.onclose((e) => {
|
|
6094
6094
|
}), t.onreconnected(() => {
|
|
6095
6095
|
}), t;
|
|
6096
|
-
}, ln = "v1",
|
|
6097
|
-
|
|
6098
|
-
const
|
|
6099
|
-
const t =
|
|
6096
|
+
}, ln = "v1", Jf = tt(`/api/graphics-engine/component/${ln}`, (t) => (t.customErrorMessage = () => "", t)), Kf = tt(`/api/portal/manager/${ln}`, (t) => (t.customErrorMessage = () => "", t)), Gf = tt(`/api/speech-base/speech/${ln}`, (t) => (t.customErrorMessage = () => "", t)), ar = Jf.get("/component/client/heartbeat"), Xf = Kf.get("/basics/by-alias");
|
|
6097
|
+
Gf.post("/control/callBack");
|
|
6098
|
+
const Zf = tt(`/api/tool/event-bus/${ln}/`), yn = Zf.post("/publish"), Yf = jn.get("/permissionset/application"), eh = () => {
|
|
6099
|
+
const t = Mt(), { entryApp: e } = Gt.hooks.useEntryApp(), { entryMenu: n } = Gt.hooks.useEntryMenu();
|
|
6100
6100
|
let o = null;
|
|
6101
|
-
return
|
|
6101
|
+
return ze(async () => {
|
|
6102
6102
|
var p;
|
|
6103
6103
|
let r = ((p = t.meta) == null ? void 0 : p.showLayout) ?? !0, { showLayout: s = !0 } = t.query;
|
|
6104
6104
|
if (s === "false" && (s = !1), !r || !s) return;
|
|
@@ -6116,7 +6116,7 @@ const Xf = tt(`/api/tool/event-bus/${ln}/`), yn = Xf.post("/publish"), Zf = jn.g
|
|
|
6116
6116
|
const k = w.filter((P) => P.code).map((P) => P.code);
|
|
6117
6117
|
if (w.length) {
|
|
6118
6118
|
if (_.currentSubAppCode) {
|
|
6119
|
-
const I = _.currentSubApp.menus ?? [], E =
|
|
6119
|
+
const I = _.currentSubApp.menus ?? [], E = Me(I).find((D) => k.includes(D.code));
|
|
6120
6120
|
if (E) {
|
|
6121
6121
|
n({ currentMenu: E });
|
|
6122
6122
|
return;
|
|
@@ -6137,7 +6137,7 @@ const Xf = tt(`/api/tool/event-bus/${ln}/`), yn = Xf.post("/publish"), Zf = jn.g
|
|
|
6137
6137
|
if (P)
|
|
6138
6138
|
e({ microApp: P });
|
|
6139
6139
|
else {
|
|
6140
|
-
const [I, E] = await
|
|
6140
|
+
const [I, E] = await Yf().run({ menuCode: k });
|
|
6141
6141
|
if (I) return;
|
|
6142
6142
|
const D = v.find((B) => B.code === E);
|
|
6143
6143
|
D && e({ microApp: D, menuCode: k });
|
|
@@ -6149,7 +6149,7 @@ const Xf = tt(`/api/tool/event-bus/${ln}/`), yn = Xf.post("/publish"), Zf = jn.g
|
|
|
6149
6149
|
setTimeout(async () => {
|
|
6150
6150
|
var _, v;
|
|
6151
6151
|
if (l.value) {
|
|
6152
|
-
const [C, k] = await
|
|
6152
|
+
const [C, k] = await Xf().run({}, { params: { aliasName: w.actionValue } });
|
|
6153
6153
|
C ? await yn().run({
|
|
6154
6154
|
uniqueId: w.uniqueId,
|
|
6155
6155
|
status: 0,
|
|
@@ -6168,7 +6168,7 @@ const Xf = tt(`/api/tool/event-bus/${ln}/`), yn = Xf.post("/publish"), Zf = jn.g
|
|
|
6168
6168
|
}, 2e3);
|
|
6169
6169
|
}, u = (w) => {
|
|
6170
6170
|
const _ = tn(), v = JSON.parse(atob(_.split(".")[1])).sub;
|
|
6171
|
-
|
|
6171
|
+
qf().on(`${w}:${v}`, async function(k) {
|
|
6172
6172
|
let P = a(k);
|
|
6173
6173
|
if (P)
|
|
6174
6174
|
P.uniqueId && P.actionKey == "switch-menu" && i(P);
|
|
@@ -6192,13 +6192,13 @@ const Xf = tt(`/api/tool/event-bus/${ln}/`), yn = Xf.post("/publish"), Zf = jn.g
|
|
|
6192
6192
|
}, 5e3), m.value = (window.navigator.onLine ? "on" : "off") + "line";
|
|
6193
6193
|
};
|
|
6194
6194
|
window.addEventListener("online", () => g("online")), window.addEventListener("offline", () => g("offline"));
|
|
6195
|
-
}),
|
|
6195
|
+
}), Ot(() => {
|
|
6196
6196
|
o && clearInterval(o);
|
|
6197
6197
|
}), {};
|
|
6198
|
-
}, un = "v1",
|
|
6198
|
+
}, un = "v1", th = ht(`/api/fms/report/${un}`), so = ht(`/api/emergency/manage/${un}`), nh = Hn.get("/permissionset/user-portal-menu"), cs = ht(`/api/alarm/config/${un}`), oh = ht(`/api/alarm/run-time/${un}`), rh = cs.get("/alarm-definition/status-option"), sh = oh.post("/record/handling"), ah = cs.get("/alarm-level/prompttone"), ih = th.get("/alarm/rule/list"), ch = gr.get("/controller/space-children-all-type"), lh = gr.get("/controller/fuzzy-area-small"), uh = so.get("/emergency-event/event/type"), dh = so.get("/emergency-event/event/level"), ph = so.get("/emergency-plan/plan/handle-time"), fh = { class: "handle-alarm-container" }, hh = { class: "select-check" }, gh = { class: "form-box" }, mh = { class: "select-check" }, vh = { style: { "margin-left": "8px" } }, Ah = { class: "foot-btn-box" }, yh = {
|
|
6199
6199
|
name: "handleAlarm"
|
|
6200
|
-
},
|
|
6201
|
-
...
|
|
6200
|
+
}, wh = /* @__PURE__ */ ee({
|
|
6201
|
+
...yh,
|
|
6202
6202
|
props: {
|
|
6203
6203
|
projectId: { default: "" },
|
|
6204
6204
|
handerIds: { default: [] }
|
|
@@ -6262,25 +6262,25 @@ const Xf = tt(`/api/tool/event-bus/${ln}/`), yn = Xf.post("/publish"), Zf = jn.g
|
|
|
6262
6262
|
const C = T(!0), k = T(!0), P = async (R) => {
|
|
6263
6263
|
const S = { name: "1" };
|
|
6264
6264
|
R != null && R.id && (S.spaceId = R.id);
|
|
6265
|
-
const [L, Le] = await
|
|
6265
|
+
const [L, Le] = await ch(S).run();
|
|
6266
6266
|
return L ? {} : Le;
|
|
6267
6267
|
}, I = async (R) => {
|
|
6268
|
-
const S = { name: R || "" }, [L, Le] = await
|
|
6268
|
+
const S = { name: R || "" }, [L, Le] = await lh(S).run();
|
|
6269
6269
|
return L ? {} : Le;
|
|
6270
6270
|
}, E = T(!0), D = T(!0), B = T([]), F = async () => {
|
|
6271
|
-
const [R, S] = await
|
|
6271
|
+
const [R, S] = await ih().run({ pageIndex: -1, pageSize: -1 });
|
|
6272
6272
|
if (R) return {};
|
|
6273
6273
|
B.value = S.data.filter((L) => L.status), B.value.length > 0 && (i.value.workOrderRules = B.value[0].id);
|
|
6274
6274
|
};
|
|
6275
|
-
|
|
6275
|
+
G(l, (R) => {
|
|
6276
6276
|
R || (ie(), de());
|
|
6277
|
-
}),
|
|
6277
|
+
}), G(
|
|
6278
6278
|
k,
|
|
6279
6279
|
(R) => {
|
|
6280
6280
|
R ? (C.value = !0, i.value.customPath = N("选填").value) : (C.value = !1, i.value.customPath = "");
|
|
6281
6281
|
},
|
|
6282
6282
|
{ immediate: !0 }
|
|
6283
|
-
),
|
|
6283
|
+
), G(
|
|
6284
6284
|
D,
|
|
6285
6285
|
(R) => {
|
|
6286
6286
|
R ? (i.value.reportTheme = N("告警对象").value, E.value = !0) : (w.value = "请输入", i.value.reportTheme = "", E.value = !1);
|
|
@@ -6305,13 +6305,13 @@ const Xf = tt(`/api/tool/event-bus/${ln}/`), yn = Xf.post("/publish"), Zf = jn.g
|
|
|
6305
6305
|
}, Pe = (R) => {
|
|
6306
6306
|
R == "eventTypeId" && (i.value.eventLevelId = null, ao()), R == "eventLevelId" && io(), R == "interval" && (u.value.timeLimit = "", i.value.interval == 3 ? (h.value = !0, i.value.timeLimit = "") : h.value = !1);
|
|
6307
6307
|
}, st = async () => {
|
|
6308
|
-
const [R, S] = await
|
|
6308
|
+
const [R, S] = await uh().run();
|
|
6309
6309
|
if (R) return {};
|
|
6310
6310
|
d.value = S, i.value.eventTypeId || (i.value.eventTypeId = S[0] ? S[0].id : null), ao();
|
|
6311
6311
|
}, ao = async () => {
|
|
6312
6312
|
const R = {
|
|
6313
6313
|
eventTypeId: i.value.eventTypeId
|
|
6314
|
-
}, [S, L] = await
|
|
6314
|
+
}, [S, L] = await dh(R).run();
|
|
6315
6315
|
if (S) return {};
|
|
6316
6316
|
const Le = { 1: "一级", 2: "二级", 3: "三级", 4: "四级" };
|
|
6317
6317
|
f.value = L.map((Nt) => ({
|
|
@@ -6322,7 +6322,7 @@ const Xf = tt(`/api/tool/event-bus/${ln}/`), yn = Xf.post("/publish"), Zf = jn.g
|
|
|
6322
6322
|
const R = {
|
|
6323
6323
|
eventTypeId: i.value.eventTypeId,
|
|
6324
6324
|
eventLevel: i.value.eventLevelId
|
|
6325
|
-
}, [S, L] = await
|
|
6325
|
+
}, [S, L] = await ph(R).run();
|
|
6326
6326
|
if (S) return {};
|
|
6327
6327
|
i.value.interval = L.handleTimeUnit, L.handleTimeUnit == 3 ? i.value.timeLimit = "" : i.value.timeLimit = L.handleTime;
|
|
6328
6328
|
}, ls = (R) => {
|
|
@@ -6334,7 +6334,7 @@ const Xf = tt(`/api/tool/event-bus/${ln}/`), yn = Xf.post("/publish"), Zf = jn.g
|
|
|
6334
6334
|
projectId: o.projectId
|
|
6335
6335
|
};
|
|
6336
6336
|
s.value = !0;
|
|
6337
|
-
const [S, L] = await
|
|
6337
|
+
const [S, L] = await rh(R).run();
|
|
6338
6338
|
if (S) {
|
|
6339
6339
|
s.value = !1;
|
|
6340
6340
|
return;
|
|
@@ -6368,7 +6368,7 @@ const Xf = tt(`/api/tool/event-bus/${ln}/`), yn = Xf.post("/publish"), Zf = jn.g
|
|
|
6368
6368
|
//处理类型id
|
|
6369
6369
|
};
|
|
6370
6370
|
i.value.processTypeId === "createorder" ? (R.path = k.value ? "" : i.value.customPath, R.topic = D.value ? "" : i.value.reportTheme, R.spaceId = k.value ? "" : i.value.reportPosition ?? "", R.orderId = i.value.workOrderRules) : i.value.processTypeId === "createcontingency" ? (R.eventTypeId = i.value.eventTypeId, R.eventLevelId = i.value.eventLevelId, R.timeLimit = i.value.interval == 3 ? null : Number(i.value.timeLimit), R.interval = i.value.interval) : (R.reason = i.value.reason, R.treatmentPlan = i.value.treatmentPlan, R.remarks = i.value.remarks), s.value = !0, r("emitFn", "startHandle");
|
|
6371
|
-
const [S, L] = await
|
|
6371
|
+
const [S, L] = await sh(R, {
|
|
6372
6372
|
params: {
|
|
6373
6373
|
projectId: o.projectId
|
|
6374
6374
|
}
|
|
@@ -6386,7 +6386,7 @@ const Xf = tt(`/api/tool/event-bus/${ln}/`), yn = Xf.post("/publish"), Zf = jn.g
|
|
|
6386
6386
|
return e({
|
|
6387
6387
|
open: hs,
|
|
6388
6388
|
close: dn
|
|
6389
|
-
}), (R, S) => ($(), z("div",
|
|
6389
|
+
}), (R, S) => ($(), z("div", fh, [
|
|
6390
6390
|
Q(A(Fn), {
|
|
6391
6391
|
modelValue: l.value,
|
|
6392
6392
|
"onUpdate:modelValue": S[31] || (S[31] = (L) => l.value = L),
|
|
@@ -6407,7 +6407,7 @@ const Xf = tt(`/api/tool/event-bus/${ln}/`), yn = Xf.post("/publish"), Zf = jn.g
|
|
|
6407
6407
|
)
|
|
6408
6408
|
]),
|
|
6409
6409
|
footer: x(() => [
|
|
6410
|
-
|
|
6410
|
+
M("div", Ah, [
|
|
6411
6411
|
Q(A(We), {
|
|
6412
6412
|
size: "middle",
|
|
6413
6413
|
onClick: ps
|
|
@@ -6456,7 +6456,7 @@ const Xf = tt(`/api/tool/event-bus/${ln}/`), yn = Xf.post("/publish"), Zf = jn.g
|
|
|
6456
6456
|
default: x(() => [
|
|
6457
6457
|
Q(A(Un), { spinning: s.value }, {
|
|
6458
6458
|
default: x(() => [
|
|
6459
|
-
|
|
6459
|
+
M(
|
|
6460
6460
|
"div",
|
|
6461
6461
|
{
|
|
6462
6462
|
ref_key: "myDialogBody",
|
|
@@ -6464,7 +6464,7 @@ const Xf = tt(`/api/tool/event-bus/${ln}/`), yn = Xf.post("/publish"), Zf = jn.g
|
|
|
6464
6464
|
class: "handle-alarm-dialog-content"
|
|
6465
6465
|
},
|
|
6466
6466
|
[
|
|
6467
|
-
Q(A(
|
|
6467
|
+
Q(A(ia), {
|
|
6468
6468
|
style: { width: "100%", height: "100%", "align-items": "center" },
|
|
6469
6469
|
cols: 1,
|
|
6470
6470
|
alignType: "horizontal"
|
|
@@ -6539,9 +6539,9 @@ const Xf = tt(`/api/tool/event-bus/${ln}/`), yn = Xf.post("/publish"), Zf = jn.g
|
|
|
6539
6539
|
marginRight: "0"
|
|
6540
6540
|
}, {
|
|
6541
6541
|
default: x(() => [
|
|
6542
|
-
|
|
6543
|
-
|
|
6544
|
-
Q(A(
|
|
6542
|
+
M("div", hh, [
|
|
6543
|
+
M("div", gh, [
|
|
6544
|
+
Q(A(aa), {
|
|
6545
6545
|
borderType: "underline",
|
|
6546
6546
|
props: { disabled: "_disabled", label: "name" },
|
|
6547
6547
|
modelValue: i.value.reportPosition,
|
|
@@ -6602,7 +6602,7 @@ const Xf = tt(`/api/tool/event-bus/${ln}/`), yn = Xf.post("/publish"), Zf = jn.g
|
|
|
6602
6602
|
marginRight: "0"
|
|
6603
6603
|
}, {
|
|
6604
6604
|
default: x(() => [
|
|
6605
|
-
|
|
6605
|
+
M("div", mh, [
|
|
6606
6606
|
Q(A(go), {
|
|
6607
6607
|
maxlength: "20",
|
|
6608
6608
|
disabled: E.value,
|
|
@@ -6703,8 +6703,8 @@ const Xf = tt(`/api/tool/event-bus/${ln}/`), yn = Xf.post("/publish"), Zf = jn.g
|
|
|
6703
6703
|
marginRight: "0"
|
|
6704
6704
|
}, {
|
|
6705
6705
|
default: x(() => [
|
|
6706
|
-
|
|
6707
|
-
Q(A(
|
|
6706
|
+
M("div", vh, [
|
|
6707
|
+
Q(A(sa), {
|
|
6708
6708
|
class: "select",
|
|
6709
6709
|
modelValue: i.value.interval,
|
|
6710
6710
|
"onUpdate:modelValue": S[25] || (S[25] = (L) => i.value.interval = L),
|
|
@@ -6743,18 +6743,18 @@ const Xf = tt(`/api/tool/event-bus/${ln}/`), yn = Xf.post("/publish"), Zf = jn.g
|
|
|
6743
6743
|
}, 8, ["modelValue"])
|
|
6744
6744
|
]));
|
|
6745
6745
|
}
|
|
6746
|
-
}),
|
|
6747
|
-
handleAlarmVue: () => le(
|
|
6746
|
+
}), _h = /* @__PURE__ */ we(wh, [["__scopeId", "data-v-1ecf3324"]]), bh = (t, e, n) => ({
|
|
6747
|
+
handleAlarmVue: () => le(_h, {
|
|
6748
6748
|
handerIds: e.value,
|
|
6749
6749
|
projectId: Bt().id,
|
|
6750
6750
|
ref: t,
|
|
6751
6751
|
onEmitFn: (r, s) => {
|
|
6752
6752
|
}
|
|
6753
6753
|
})
|
|
6754
|
-
}),
|
|
6754
|
+
}), Ch = { class: "alarm-msg" }, Ih = { style: { position: "relative" } }, Eh = { class: "title-left" }, Th = { class: "title-box" }, kh = { class: "content-box" }, Sh = { class: "alarm-msg-line" }, Ph = { class: "alarm-msg-line-left" }, Lh = { class: "alarm-msg-line" }, $h = { class: "alarm-msg-line-left" }, Dh = { class: "alarm-msg-line-right alarm-content-object" }, Oh = { class: "alarm-msg-line" }, Mh = { class: "alarm-msg-line-left" }, Bh = { class: "alarm-msg-line-right alarm-content" }, Rh = { class: "btn-box" }, xh = {
|
|
6755
6755
|
name: "alarm"
|
|
6756
|
-
},
|
|
6757
|
-
...
|
|
6756
|
+
}, Qh = /* @__PURE__ */ ee({
|
|
6757
|
+
...xh,
|
|
6758
6758
|
props: {
|
|
6759
6759
|
alarmhandle: { type: Boolean, default: !1 },
|
|
6760
6760
|
msgItem: { default: {} }
|
|
@@ -6767,32 +6767,32 @@ const Xf = tt(`/api/tool/event-bus/${ln}/`), yn = Xf.post("/publish"), Zf = jn.g
|
|
|
6767
6767
|
o("handerDetail", n.msgItem);
|
|
6768
6768
|
};
|
|
6769
6769
|
return (a, c) => ($(), z(
|
|
6770
|
-
|
|
6770
|
+
Oe,
|
|
6771
6771
|
null,
|
|
6772
6772
|
[
|
|
6773
6773
|
j(` <div class="alarm-msg" :style="{ 'border-color': msgItem.color }"> `),
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6774
|
+
M("div", Ch, [
|
|
6775
|
+
M("div", Ih, [
|
|
6776
|
+
M(
|
|
6777
6777
|
"div",
|
|
6778
6778
|
{
|
|
6779
6779
|
style: _n({ "background-color": a.msgItem.color }),
|
|
6780
6780
|
class: "title-detail"
|
|
6781
6781
|
},
|
|
6782
6782
|
[
|
|
6783
|
-
|
|
6783
|
+
M("div", Eh, [
|
|
6784
6784
|
j(` <div class="icon-box" :style="{ color: msgItem.color }">\r
|
|
6785
6785
|
!\r
|
|
6786
6786
|
</div> `),
|
|
6787
|
-
|
|
6787
|
+
M(
|
|
6788
6788
|
"div",
|
|
6789
|
-
|
|
6789
|
+
Th,
|
|
6790
6790
|
re(A(N)("新告警").value),
|
|
6791
6791
|
1
|
|
6792
6792
|
/* TEXT */
|
|
6793
6793
|
)
|
|
6794
6794
|
]),
|
|
6795
|
-
c[0] || (c[0] =
|
|
6795
|
+
c[0] || (c[0] = M(
|
|
6796
6796
|
"div",
|
|
6797
6797
|
{ class: "title-right" },
|
|
6798
6798
|
null,
|
|
@@ -6803,16 +6803,16 @@ const Xf = tt(`/api/tool/event-bus/${ln}/`), yn = Xf.post("/publish"), Zf = jn.g
|
|
|
6803
6803
|
4
|
|
6804
6804
|
/* STYLE */
|
|
6805
6805
|
),
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6806
|
+
M("div", kh, [
|
|
6807
|
+
M("div", Sh, [
|
|
6808
|
+
M(
|
|
6809
6809
|
"div",
|
|
6810
|
-
|
|
6810
|
+
Ph,
|
|
6811
6811
|
re(A(N)("告警等级:").value),
|
|
6812
6812
|
1
|
|
6813
6813
|
/* TEXT */
|
|
6814
6814
|
),
|
|
6815
|
-
|
|
6815
|
+
M(
|
|
6816
6816
|
"div",
|
|
6817
6817
|
{
|
|
6818
6818
|
class: "alarm-msg-line-right alarm-content-object",
|
|
@@ -6823,39 +6823,39 @@ const Xf = tt(`/api/tool/event-bus/${ln}/`), yn = Xf.post("/publish"), Zf = jn.g
|
|
|
6823
6823
|
/* TEXT, STYLE */
|
|
6824
6824
|
)
|
|
6825
6825
|
]),
|
|
6826
|
-
|
|
6827
|
-
|
|
6826
|
+
M("div", Lh, [
|
|
6827
|
+
M(
|
|
6828
6828
|
"div",
|
|
6829
|
-
|
|
6829
|
+
$h,
|
|
6830
6830
|
re(A(N)("告警对象:").value),
|
|
6831
6831
|
1
|
|
6832
6832
|
/* TEXT */
|
|
6833
6833
|
),
|
|
6834
|
-
|
|
6834
|
+
M(
|
|
6835
6835
|
"div",
|
|
6836
|
-
|
|
6836
|
+
Dh,
|
|
6837
6837
|
re(a.msgItem.equipmentName || ""),
|
|
6838
6838
|
1
|
|
6839
6839
|
/* TEXT */
|
|
6840
6840
|
)
|
|
6841
6841
|
]),
|
|
6842
|
-
|
|
6843
|
-
|
|
6842
|
+
M("div", Oh, [
|
|
6843
|
+
M(
|
|
6844
6844
|
"div",
|
|
6845
6845
|
Mh,
|
|
6846
6846
|
re(A(N)("告警内容:").value),
|
|
6847
6847
|
1
|
|
6848
6848
|
/* TEXT */
|
|
6849
6849
|
),
|
|
6850
|
-
|
|
6850
|
+
M(
|
|
6851
6851
|
"div",
|
|
6852
|
-
|
|
6852
|
+
Bh,
|
|
6853
6853
|
re(a.msgItem.alarmContent || ""),
|
|
6854
6854
|
1
|
|
6855
6855
|
/* TEXT */
|
|
6856
6856
|
)
|
|
6857
6857
|
]),
|
|
6858
|
-
|
|
6858
|
+
M("div", Rh, [
|
|
6859
6859
|
a.msgItem.equipmentCode && a.msgItem.equipmentPanelCode ? ($(), V(A(We), {
|
|
6860
6860
|
key: 0,
|
|
6861
6861
|
block: "",
|
|
@@ -6900,7 +6900,7 @@ const Xf = tt(`/api/tool/event-bus/${ln}/`), yn = Xf.post("/publish"), Zf = jn.g
|
|
|
6900
6900
|
));
|
|
6901
6901
|
}
|
|
6902
6902
|
});
|
|
6903
|
-
let
|
|
6903
|
+
let jh = (t = 21) => {
|
|
6904
6904
|
let e = "", n = crypto.getRandomValues(new Uint8Array(t));
|
|
6905
6905
|
for (; t--; ) {
|
|
6906
6906
|
let o = n[t] & 63;
|
|
@@ -6908,7 +6908,7 @@ let Qh = (t = 21) => {
|
|
|
6908
6908
|
}
|
|
6909
6909
|
return e;
|
|
6910
6910
|
};
|
|
6911
|
-
const
|
|
6911
|
+
const Nh = () => {
|
|
6912
6912
|
const t = T(null), e = T(0), n = T(null), o = T(null), r = T([]), s = T([]), a = T(!1), c = T(!1), l = T(!1), i = T({
|
|
6913
6913
|
playId: "",
|
|
6914
6914
|
// 播放的告警的recordId
|
|
@@ -6935,7 +6935,7 @@ const jh = () => {
|
|
|
6935
6935
|
E.push({ alarmId: I.recordId }), r.value = E, (D = n.value) == null || D.open();
|
|
6936
6936
|
}, { entryApp: h } = Gt.hooks.useEntryApp(), d = (I) => {
|
|
6937
6937
|
mr(I.equipmentCode, I.equipmentPanelCode);
|
|
6938
|
-
}, { handleAlarmVue: f } =
|
|
6938
|
+
}, { handleAlarmVue: f } = bh(n, r), y = async () => {
|
|
6939
6939
|
var D;
|
|
6940
6940
|
const E = (((D = J().appcategorys) == null ? void 0 : D.map((B) => B.apps).flat()) ?? []).find((B) => B.code === "alarm");
|
|
6941
6941
|
E && h({ microApp: E, menuPath: `/${E.routeUrl}/realTimeAlarm` });
|
|
@@ -6946,13 +6946,13 @@ const jh = () => {
|
|
|
6946
6946
|
}
|
|
6947
6947
|
}, p = (I) => {
|
|
6948
6948
|
if (!I) return;
|
|
6949
|
-
const E =
|
|
6949
|
+
const E = jh();
|
|
6950
6950
|
Jt.open({
|
|
6951
6951
|
key: E,
|
|
6952
6952
|
class: "alarm-notify",
|
|
6953
6953
|
message: N("新告警").value,
|
|
6954
6954
|
placement: "bottomRight",
|
|
6955
|
-
description: le(
|
|
6955
|
+
description: le(Qh, {
|
|
6956
6956
|
msgItem: I,
|
|
6957
6957
|
alarmhandle: a.value,
|
|
6958
6958
|
onHanderDetail: d,
|
|
@@ -6996,7 +6996,7 @@ const jh = () => {
|
|
|
6996
6996
|
i.value.loopCount = i.value.loopCount + 1, i.value.loopTotalCount && i.value.loopTotalCount && (i.value.loopCount == i.value.loopTotalCount ? (i.value.playPath = "", i.value.isplay = !1, i.value.playId = "", i.value.loopTotalCount = 0, i.value.loopCount = 0, i.value.playLine = null) : o.value.play());
|
|
6997
6997
|
};
|
|
6998
6998
|
}, k = async () => {
|
|
6999
|
-
const [I, E] = await
|
|
6999
|
+
const [I, E] = await ah().run();
|
|
7000
7000
|
I || (l.value = E.isEnable);
|
|
7001
7001
|
};
|
|
7002
7002
|
return {
|
|
@@ -7007,7 +7007,7 @@ const jh = () => {
|
|
|
7007
7007
|
handleAlarmVue: f,
|
|
7008
7008
|
creatAlarmSocket: async () => {
|
|
7009
7009
|
k();
|
|
7010
|
-
const [I, E] = await
|
|
7010
|
+
const [I, E] = await nh().run({
|
|
7011
7011
|
code: "alarm",
|
|
7012
7012
|
showBtn: !0
|
|
7013
7013
|
});
|
|
@@ -7030,20 +7030,20 @@ const jh = () => {
|
|
|
7030
7030
|
}));
|
|
7031
7031
|
}
|
|
7032
7032
|
};
|
|
7033
|
-
},
|
|
7033
|
+
}, Hh = ["src", "muted", "loop"], Uh = /* @__PURE__ */ ee({
|
|
7034
7034
|
__name: "index",
|
|
7035
7035
|
setup(t) {
|
|
7036
|
-
const { alarmSocket: e, creatAlarmSocket: n, audioObj: o, audioAlarmRef: r, handleAlarmVue: s } =
|
|
7037
|
-
return
|
|
7036
|
+
const { alarmSocket: e, creatAlarmSocket: n, audioObj: o, audioAlarmRef: r, handleAlarmVue: s } = Nh();
|
|
7037
|
+
return ze(async () => {
|
|
7038
7038
|
await nn(), n();
|
|
7039
|
-
}),
|
|
7039
|
+
}), Ot(() => {
|
|
7040
7040
|
e.value && e.value.disconnect(), e.value = null;
|
|
7041
7041
|
}), (a, c) => ($(), z(
|
|
7042
|
-
|
|
7042
|
+
Oe,
|
|
7043
7043
|
null,
|
|
7044
7044
|
[
|
|
7045
7045
|
Q(A(s)),
|
|
7046
|
-
|
|
7046
|
+
M("audio", {
|
|
7047
7047
|
src: A(o).playPath,
|
|
7048
7048
|
class: "audio-alarm-level",
|
|
7049
7049
|
ref_key: "audioAlarmRef",
|
|
@@ -7051,24 +7051,24 @@ const jh = () => {
|
|
|
7051
7051
|
muted: !A(o).isplay,
|
|
7052
7052
|
loop: A(o).loop,
|
|
7053
7053
|
autoplay: ""
|
|
7054
|
-
}, null, 8,
|
|
7054
|
+
}, null, 8, Hh)
|
|
7055
7055
|
],
|
|
7056
7056
|
64
|
|
7057
7057
|
/* STABLE_FRAGMENT */
|
|
7058
7058
|
));
|
|
7059
7059
|
}
|
|
7060
|
-
}),
|
|
7060
|
+
}), Fh = { class: "das-main-app-container" }, Vh = /* @__PURE__ */ ee({
|
|
7061
7061
|
__name: "index",
|
|
7062
7062
|
setup(t) {
|
|
7063
|
-
const { isFullscreen: e } = gt(), n = H(() => !e.value), o = H(() => ce.excludeRoutes), r = H(() => ce.routeKeepAliveVisible), s = H(() => ({ mode: Yt.value === 1 ? "vertical" : "inline" })), { initNextTick: a } =
|
|
7064
|
-
|
|
7065
|
-
const { $changePwd: u, $personSetDialog: h } =
|
|
7066
|
-
|
|
7067
|
-
const { fontColor: g, backgroudColor: p, borderColor: w } =
|
|
7068
|
-
return
|
|
7069
|
-
Q(A(
|
|
7063
|
+
const { isFullscreen: e } = gt(), n = H(() => !e.value), o = H(() => ce.excludeRoutes), r = H(() => ce.routeKeepAliveVisible), s = H(() => ({ mode: Yt.value === 1 ? "vertical" : "inline" })), { initNextTick: a } = dp(), { innerPage: c, commandList: l, initNextTick: i } = pp(a);
|
|
7064
|
+
Ap(c, a, i), vp(), gp(), bp();
|
|
7065
|
+
const { $changePwd: u, $personSetDialog: h } = yp(), { changeEnterprisesVisible: d, userId: f, tenantId: y, changeEnterprise: m } = os();
|
|
7066
|
+
hp();
|
|
7067
|
+
const { fontColor: g, backgroudColor: p, borderColor: w } = mp();
|
|
7068
|
+
return Pp(), Lp(l), $p(), Op(), lf(), eh(), (_, v) => ($(), z("div", Fh, [
|
|
7069
|
+
Q(A(bi), { platformInitNextTick: A(a) }, {
|
|
7070
7070
|
default: x(() => [
|
|
7071
|
-
Q(
|
|
7071
|
+
Q(yi, {
|
|
7072
7072
|
showLayout: n.value,
|
|
7073
7073
|
excludeRoutes: o.value,
|
|
7074
7074
|
routeKeepAliveVisible: r.value,
|
|
@@ -7080,16 +7080,16 @@ const jh = () => {
|
|
|
7080
7080
|
/* STABLE */
|
|
7081
7081
|
}, 8, ["platformInitNextTick"]),
|
|
7082
7082
|
j(" 切换租户 "),
|
|
7083
|
-
Q(A(
|
|
7083
|
+
Q(A(Rs), {
|
|
7084
7084
|
visible: A(d),
|
|
7085
|
-
"onUpdate:visible": v[0] || (v[0] = (C) =>
|
|
7085
|
+
"onUpdate:visible": v[0] || (v[0] = (C) => Ts(d) ? d.value = C : null),
|
|
7086
7086
|
userId: A(f),
|
|
7087
7087
|
tenantId: A(y),
|
|
7088
7088
|
onConfirm: A(m)
|
|
7089
7089
|
}, null, 8, ["visible", "userId", "tenantId", "onConfirm"]),
|
|
7090
7090
|
j(" 修改密码 "),
|
|
7091
7091
|
Q(
|
|
7092
|
-
A(
|
|
7092
|
+
A(Bs),
|
|
7093
7093
|
{
|
|
7094
7094
|
ref_key: "$changePwd",
|
|
7095
7095
|
ref: u
|
|
@@ -7100,7 +7100,7 @@ const jh = () => {
|
|
|
7100
7100
|
),
|
|
7101
7101
|
j(" 个性化设置 "),
|
|
7102
7102
|
Q(
|
|
7103
|
-
A(
|
|
7103
|
+
A(sp),
|
|
7104
7104
|
{
|
|
7105
7105
|
ref_key: "$personSetDialog",
|
|
7106
7106
|
ref: h
|
|
@@ -7110,23 +7110,23 @@ const jh = () => {
|
|
|
7110
7110
|
/* NEED_PATCH */
|
|
7111
7111
|
),
|
|
7112
7112
|
j(" 告警 "),
|
|
7113
|
-
Q(A(
|
|
7113
|
+
Q(A(Uh))
|
|
7114
7114
|
]));
|
|
7115
7115
|
}
|
|
7116
|
-
}),
|
|
7116
|
+
}), Wh = /* @__PURE__ */ we(Vh, [["__scopeId", "data-v-45ef70df"]]);
|
|
7117
7117
|
T("@das-fed/web");
|
|
7118
|
-
const
|
|
7118
|
+
const zh = [
|
|
7119
7119
|
{
|
|
7120
7120
|
path: Ne,
|
|
7121
|
-
component: () => import("./index-
|
|
7121
|
+
component: () => import("./index-C9vVY6r3.js")
|
|
7122
7122
|
},
|
|
7123
7123
|
{
|
|
7124
7124
|
path: Er,
|
|
7125
|
-
component: () => import("./index-
|
|
7125
|
+
component: () => import("./index-DC-9kRIP.js")
|
|
7126
7126
|
}
|
|
7127
|
-
],
|
|
7128
|
-
routes:
|
|
7129
|
-
Layout:
|
|
7127
|
+
], om = {
|
|
7128
|
+
routes: zh,
|
|
7129
|
+
Layout: Wh,
|
|
7130
7130
|
data: {
|
|
7131
7131
|
homeInfo: es
|
|
7132
7132
|
},
|
|
@@ -7137,37 +7137,37 @@ const Wh = [
|
|
|
7137
7137
|
};
|
|
7138
7138
|
export {
|
|
7139
7139
|
W as A,
|
|
7140
|
-
|
|
7141
|
-
|
|
7142
|
-
|
|
7143
|
-
|
|
7144
|
-
|
|
7145
|
-
|
|
7140
|
+
Ke as B,
|
|
7141
|
+
em as C,
|
|
7142
|
+
tm as D,
|
|
7143
|
+
te as E,
|
|
7144
|
+
Yg as F,
|
|
7145
|
+
om as G,
|
|
7146
7146
|
we as _,
|
|
7147
7147
|
Ko as a,
|
|
7148
7148
|
Go as b,
|
|
7149
7149
|
pt as c,
|
|
7150
7150
|
Sn as d,
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
|
|
7154
|
-
|
|
7155
|
-
|
|
7156
|
-
|
|
7151
|
+
Ng as e,
|
|
7152
|
+
va as f,
|
|
7153
|
+
ma as g,
|
|
7154
|
+
Fg as h,
|
|
7155
|
+
Hg as i,
|
|
7156
|
+
Vg as j,
|
|
7157
7157
|
Xt as k,
|
|
7158
7158
|
ce as l,
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
|
|
7159
|
+
Wg as m,
|
|
7160
|
+
zg as n,
|
|
7161
|
+
_a as o,
|
|
7162
7162
|
lt as p,
|
|
7163
7163
|
Ao as q,
|
|
7164
|
-
|
|
7164
|
+
qg as r,
|
|
7165
7165
|
vo as s,
|
|
7166
|
-
|
|
7166
|
+
Ug as t,
|
|
7167
7167
|
At as u,
|
|
7168
|
-
|
|
7169
|
-
|
|
7170
|
-
|
|
7171
|
-
|
|
7172
|
-
|
|
7168
|
+
Jg as v,
|
|
7169
|
+
Kg as w,
|
|
7170
|
+
Gg as x,
|
|
7171
|
+
Xg as y,
|
|
7172
|
+
Zg as z
|
|
7173
7173
|
};
|