@das-fed/web 6.4.0-dev.5 → 6.4.0-dev.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{index-CSW3V9iM.js → index-BBbzRiUk.js} +1 -1
- package/index-BBbzRiUk.js.gz +0 -0
- package/{index-Qnt1mIXl.js → index-C8iO4QVt.js} +894 -881
- package/index-C8iO4QVt.js.gz +0 -0
- package/{packages/main-app-framework/index-BxcXvcDR.js → index-CeDdJysJ.js} +1 -1
- package/{packages/main-app-framework/index-BPpl9r07.js → index-GDnK0PX4.js} +1 -1
- package/index-GDnK0PX4.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/create-das-web-app/index.js +14 -11
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/layout/index.js +153 -151
- package/packages/layout/index.js.gz +0 -0
- package/packages/main-app-framework/{index-DISjj1fO.js → index-CB6yJ78W.js} +17 -17
- package/packages/main-app-framework/index-CB6yJ78W.js.gz +0 -0
- package/packages/main-app-framework/{index-B7vVpeEH.js → index-CIYEqxNR.js} +2222 -2189
- package/packages/main-app-framework/index-CIYEqxNR.js.gz +0 -0
- package/{index-Cd0QB2SW.js → packages/main-app-framework/index-CxDxCkSy.js} +1 -1
- package/{index-CliY3-cx.js → packages/main-app-framework/index-DHvYQRkj.js} +1 -1
- package/packages/main-app-framework/index-DHvYQRkj.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/packages/main-app-framework/style.css +1 -1
- package/packages/main-app-framework/style.css.gz +0 -0
- package/packages/micro-frontend/index.js +1 -1
- package/packages/micro-frontend/index.js.gz +0 -0
- package/style.css +1 -1
- package/style.css.gz +0 -0
- package/index-CSW3V9iM.js.gz +0 -0
- package/index-CliY3-cx.js.gz +0 -0
- package/index-Qnt1mIXl.js.gz +0 -0
- package/packages/main-app-framework/index-B7vVpeEH.js.gz +0 -0
- package/packages/main-app-framework/index-BPpl9r07.js.gz +0 -0
- package/packages/main-app-framework/index-DISjj1fO.js.gz +0 -0
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { effectScope as Qs, ref as C, markRaw as Rr, toRaw as
|
|
1
|
+
import { effectScope as Qs, ref as C, markRaw as Rr, toRaw as to, watch as ne, unref as v, createApp as Ys, reactive as et, computed as K, defineComponent as pe, openBlock as N, createElementBlock as X, Fragment as He, createBlock as Q, TransitionGroup as Xs, normalizeProps as Vn, mergeProps as Xt, withCtx as B, renderList as qt, withDirectives as De, resolveDynamicComponent as St, vShow as Fe, createCommentVNode as W, nextTick as Ze, resolveComponent as Zs, createElementVNode as H, normalizeClass as Dr, normalizeStyle as Hn, renderSlot as ke, createVNode as q, Transition as Po, guardReactiveProps as Lo, KeepAlive as Mo, h as Ce, onBeforeMount as ei, onMounted as it, onUnmounted as ti, getCurrentScope as ni, onScopeDispose as oi, getCurrentInstance as ri, onActivated as si, createTextVNode as qe, toDisplayString as we, pushScopeId as xr, popScopeId as Or, render as hn, onBeforeUnmount as In, useCssVars as ii, withModifiers as ve, toRefs as ai, isRef as ci } from "vue";
|
|
2
2
|
import { initTheme as li, setThemeRule as ui } from "@das-fed/web/packages/theme/index";
|
|
3
3
|
import { initI18n as di, i18n as J } from "@das-fed/web/packages/i18n/index";
|
|
4
|
-
import { DasWebLayout as
|
|
5
|
-
import { createRouter as pi, createWebHistory as fi, useRouter as
|
|
4
|
+
import { DasWebLayout as no, DasWebNav as jr, DasWebMenu as Nr, DasWebTabs as Ur, layout as V } from "@das-fed/web/packages/layout/index";
|
|
5
|
+
import { createRouter as pi, createWebHistory as fi, useRouter as Lt, useRoute as Zt } from "vue-router";
|
|
6
6
|
import { DasChangePwdRef as hi, DasChangePwd as gi } from "@das-fed/ui/packages/business-components/change-pwd/index";
|
|
7
7
|
import { DasChangeEnterprises as mi } from "@das-fed/ui/packages/business-components/change-enterprises/index";
|
|
8
|
-
import { pureImageSrc as
|
|
9
|
-
import { DasNotification as
|
|
10
|
-
import { flatTree as Be, filterTreeArray as vi, isEmpty as yi, treeFind as
|
|
11
|
-
import { getSubApps as ae, getTabInfo as Ee, getPersonalInfo as
|
|
8
|
+
import { pureImageSrc as oo } from "@das-fed/utils/pure-image-src";
|
|
9
|
+
import { DasNotification as gn } from "@das-fed/ui/packages/components/notification/index";
|
|
10
|
+
import { flatTree as Be, filterTreeArray as vi, isEmpty as yi, treeFind as Ro, updateFavIcon as _i, dateFormat as bi, runPromiseByQueue as wi, objEqual as Bn, setShowLayout as Wn, getUrlParams as Ii, withToken as Si } from "@das-fed/utils/common-tools";
|
|
11
|
+
import { getSubApps as ae, getTabInfo as Ee, getPersonalInfo as Sn, getTenantInfo as ro, getProjectInfo as ft, getToken as so, getUserInfo as Fr, getMenus as mn } from "@das-fed/utils/common-info";
|
|
12
12
|
import { setProcessEngineProject as Vr, setProcessEngineToken as Hr } from "@das-fed/utils/process-engine-info";
|
|
13
|
-
import { oauthServer as Br, justauth as
|
|
13
|
+
import { oauthServer as Br, justauth as io, enterpriseright as ao, iotModules as Ci, portal as mt, systemConfiguration as co } from "@das-fed/utils/api-services/modules";
|
|
14
14
|
import { createService as vt } from "@das-fed/utils/create-api-service";
|
|
15
|
-
import { useGetAuth as
|
|
16
|
-
import { systemConfiguration as
|
|
15
|
+
import { useGetAuth as Ti } from "@das-fed/utils/hooks/use-get-auth";
|
|
16
|
+
import { systemConfiguration as Ai, enterpriseright as lo, createService as Mt, spaceManage as Wr } from "@das-fed/utils/api-services";
|
|
17
17
|
import { microFrontend as _e } from "@das-fed/web/packages/micro-frontend/index";
|
|
18
|
-
import { getConfig as
|
|
18
|
+
import { getConfig as Rt } from "@das-fed/utils/config";
|
|
19
19
|
import { getAccessToken as ki, removeAccessToken as $i } from "@das-fed/utils/token-tools";
|
|
20
|
-
import { DasDialog as
|
|
21
|
-
import { DasButton as
|
|
20
|
+
import { DasDialog as uo } from "@das-fed/ui/packages/components/dialog/index";
|
|
21
|
+
import { DasButton as Tt } from "@das-fed/ui/packages/components/button/index";
|
|
22
22
|
import { vDasTooltip as Ei } from "@das-fed/ui/packages/components/text-tooltip/index";
|
|
23
23
|
import { tokenStorage as Pi } from "@das-fed/utils/create-api-service/sso";
|
|
24
24
|
import { setPersonalInfo as Li } from "@das-fed/utils/common-info/set-personal-info";
|
|
25
25
|
import { devicePanelShow as qr, closeDevicePanel as Mi, alarmDevicePanelShow as Ri, closeAlarmPanel as Di } from "@das-fed/ui/packages/business-components/device-panel/index";
|
|
26
26
|
import { DasIcon as ct, DasAutoRegisterIcon as zr } from "@das-fed/ui/packages/components/icon/index";
|
|
27
|
-
import { socketService as
|
|
28
|
-
import { userInfoNextTick as
|
|
29
|
-
import { mainAppFramework as
|
|
30
|
-
import { DasTooltip as
|
|
31
|
-
import { DasLivePlayer as
|
|
27
|
+
import { socketService as po } from "@das-fed/utils/webSocket-service";
|
|
28
|
+
import { userInfoNextTick as xi, tokenNextTick as Cn } from "@das-fed/utils/nextTiken";
|
|
29
|
+
import { mainAppFramework as vn } from "@das-fed/web/packages/main-app-framework/index";
|
|
30
|
+
import { DasTooltip as Ae } from "@das-fed/ui/packages/components/tooltip/index";
|
|
31
|
+
import { DasLivePlayer as Oi } from "@das-fed/ui/packages/components/live-player/index";
|
|
32
32
|
import { DasSpin as Kr } from "@das-fed/ui/packages/components/spin/index";
|
|
33
33
|
import { DasWatermark as ji } from "@das-fed/ui/packages/components/watermark/index";
|
|
34
34
|
import { DasSelect as Ni } from "@das-fed/ui/packages/components/select/index";
|
|
35
35
|
import { DasTreeSelect as Ui } from "@das-fed/ui/packages/components/tree-select/index";
|
|
36
36
|
import { DasInput as Do } from "@das-fed/ui/packages/components/input/index";
|
|
37
|
-
import { DasCheckbox as
|
|
37
|
+
import { DasCheckbox as xo } from "@das-fed/ui/packages/components/checkbox/index";
|
|
38
38
|
import { DasForm as Fi } from "@das-fed/ui/packages/components/form/index";
|
|
39
39
|
import { DasFormItem as We } from "@das-fed/ui/packages/components/form-item/index";
|
|
40
40
|
import { flatTree as Vi } from "@das-fed/utils/common-tools/nest-tree-format";
|
|
41
|
-
import { setHtmlMinWH as
|
|
41
|
+
import { setHtmlMinWH as Mn } from "@das-fed/utils/common-tools/setHtmlMinWH";
|
|
42
42
|
import { createCeNav as Hi, createCeTabs as Bi, createCeMenu as Wi } from "@das-fed/web-components/das-web-app";
|
|
43
43
|
const qi = {
|
|
44
44
|
install: (t, e) => {
|
|
@@ -57,13 +57,13 @@ function Jr() {
|
|
|
57
57
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
58
58
|
}
|
|
59
59
|
const Ji = typeof Proxy == "function", Gi = "devtools-plugin:setup", Qi = "plugin:settings:set";
|
|
60
|
-
let bt,
|
|
60
|
+
let bt, qn;
|
|
61
61
|
function Yi() {
|
|
62
62
|
var t;
|
|
63
|
-
return bt !== void 0 || (typeof window < "u" && window.performance ? (bt = !0,
|
|
63
|
+
return bt !== void 0 || (typeof window < "u" && window.performance ? (bt = !0, qn = window.performance) : typeof globalThis < "u" && (!((t = globalThis.perf_hooks) === null || t === void 0) && t.performance) ? (bt = !0, qn = globalThis.perf_hooks.performance) : bt = !1), bt;
|
|
64
64
|
}
|
|
65
65
|
function Xi() {
|
|
66
|
-
return Yi() ?
|
|
66
|
+
return Yi() ? qn.now() : Date.now();
|
|
67
67
|
}
|
|
68
68
|
class Zi {
|
|
69
69
|
constructor(e, n) {
|
|
@@ -153,11 +153,11 @@ var lt;
|
|
|
153
153
|
(function(t) {
|
|
154
154
|
t.direct = "direct", t.patchObject = "patch object", t.patchFunction = "patch function";
|
|
155
155
|
})(lt || (lt = {}));
|
|
156
|
-
const Qr = typeof window < "u",
|
|
156
|
+
const Qr = typeof window < "u", Oo = (process.env.NODE_ENV !== "production" || !1) && process.env.NODE_ENV !== "test" && Qr, jo = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
|
|
157
157
|
function ta(t, { autoBom: e = !1 } = {}) {
|
|
158
158
|
return e && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type) ? new Blob(["\uFEFF", t], { type: t.type }) : t;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function fo(t, e, n) {
|
|
161
161
|
const o = new XMLHttpRequest();
|
|
162
162
|
o.open("GET", t), o.responseType = "blob", o.onload = function() {
|
|
163
163
|
Zr(o.response, e, n);
|
|
@@ -173,7 +173,7 @@ function Yr(t) {
|
|
|
173
173
|
}
|
|
174
174
|
return e.status >= 200 && e.status <= 299;
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function cn(t) {
|
|
177
177
|
try {
|
|
178
178
|
t.dispatchEvent(new MouseEvent("click"));
|
|
179
179
|
} catch {
|
|
@@ -181,11 +181,11 @@ function an(t) {
|
|
|
181
181
|
n.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), t.dispatchEvent(n);
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
const
|
|
184
|
+
const ln = typeof navigator == "object" ? navigator : { userAgent: "" }, Xr = /Macintosh/.test(ln.userAgent) && /AppleWebKit/.test(ln.userAgent) && !/Safari/.test(ln.userAgent), Zr = Qr ? (
|
|
185
185
|
// Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
|
|
186
186
|
typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !Xr ? na : (
|
|
187
187
|
// Use msSaveOrOpenBlob as a second approach
|
|
188
|
-
"msSaveOrOpenBlob" in
|
|
188
|
+
"msSaveOrOpenBlob" in ln ? oa : (
|
|
189
189
|
// Fallback to using FileReader and a popup
|
|
190
190
|
ra
|
|
191
191
|
)
|
|
@@ -194,20 +194,20 @@ const cn = typeof navigator == "object" ? navigator : { userAgent: "" }, Xr = /M
|
|
|
194
194
|
};
|
|
195
195
|
function na(t, e = "download", n) {
|
|
196
196
|
const o = document.createElement("a");
|
|
197
|
-
o.download = e, o.rel = "noopener", typeof t == "string" ? (o.href = t, o.origin !== location.origin ? Yr(o.href) ?
|
|
197
|
+
o.download = e, o.rel = "noopener", typeof t == "string" ? (o.href = t, o.origin !== location.origin ? Yr(o.href) ? fo(t, e, n) : (o.target = "_blank", cn(o)) : cn(o)) : (o.href = URL.createObjectURL(t), setTimeout(function() {
|
|
198
198
|
URL.revokeObjectURL(o.href);
|
|
199
199
|
}, 4e4), setTimeout(function() {
|
|
200
|
-
|
|
200
|
+
cn(o);
|
|
201
201
|
}, 0));
|
|
202
202
|
}
|
|
203
203
|
function oa(t, e = "download", n) {
|
|
204
204
|
if (typeof t == "string")
|
|
205
205
|
if (Yr(t))
|
|
206
|
-
|
|
206
|
+
fo(t, e, n);
|
|
207
207
|
else {
|
|
208
208
|
const o = document.createElement("a");
|
|
209
209
|
o.href = t, o.target = "_blank", setTimeout(function() {
|
|
210
|
-
|
|
210
|
+
cn(o);
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
213
|
else
|
|
@@ -215,7 +215,7 @@ function oa(t, e = "download", n) {
|
|
|
215
215
|
}
|
|
216
216
|
function ra(t, e, n, o) {
|
|
217
217
|
if (o = o || open("", "_blank"), o && (o.document.title = o.document.body.innerText = "downloading..."), typeof t == "string")
|
|
218
|
-
return
|
|
218
|
+
return fo(t, e, n);
|
|
219
219
|
const r = t.type === "application/octet-stream", s = /constructor/i.test(String(jo.HTMLElement)) || "safari" in jo, i = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
220
220
|
if ((i || r && s || Xr) && typeof FileReader < "u") {
|
|
221
221
|
const c = new FileReader();
|
|
@@ -236,7 +236,7 @@ function ye(t, e) {
|
|
|
236
236
|
const n = "🍍 " + t;
|
|
237
237
|
typeof __VUE_DEVTOOLS_TOAST__ == "function" && __VUE_DEVTOOLS_TOAST__(n, e);
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function ho(t) {
|
|
240
240
|
return "_a" in t && "install" in t;
|
|
241
241
|
}
|
|
242
242
|
function es() {
|
|
@@ -315,10 +315,10 @@ function Ue(t) {
|
|
|
315
315
|
}
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
|
-
const os = "🍍 Pinia (root)",
|
|
318
|
+
const os = "🍍 Pinia (root)", zn = "_root";
|
|
319
319
|
function ua(t) {
|
|
320
|
-
return
|
|
321
|
-
id:
|
|
320
|
+
return ho(t) ? {
|
|
321
|
+
id: zn,
|
|
322
322
|
label: os
|
|
323
323
|
} : {
|
|
324
324
|
id: t.$id,
|
|
@@ -326,7 +326,7 @@ function ua(t) {
|
|
|
326
326
|
};
|
|
327
327
|
}
|
|
328
328
|
function da(t) {
|
|
329
|
-
if (
|
|
329
|
+
if (ho(t)) {
|
|
330
330
|
const n = Array.from(t._s.keys()), o = t._s;
|
|
331
331
|
return {
|
|
332
332
|
state: n.map((s) => ({
|
|
@@ -387,7 +387,7 @@ function fa(t) {
|
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
389
|
let Ct = !0;
|
|
390
|
-
const
|
|
390
|
+
const un = [], at = "pinia:mutations", Se = "pinia", { assign: ha } = Object, yn = (t) => "🍍 " + t;
|
|
391
391
|
function ga(t, e) {
|
|
392
392
|
Gr({
|
|
393
393
|
id: "dev.esm.pinia",
|
|
@@ -395,7 +395,7 @@ function ga(t, e) {
|
|
|
395
395
|
logo: "https://pinia.vuejs.org/logo.svg",
|
|
396
396
|
packageName: "pinia",
|
|
397
397
|
homepage: "https://pinia.vuejs.org",
|
|
398
|
-
componentStateTypes:
|
|
398
|
+
componentStateTypes: un,
|
|
399
399
|
app: t
|
|
400
400
|
}, (n) => {
|
|
401
401
|
typeof n.now != "function" && ye("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), n.addTimelineLayer({
|
|
@@ -453,12 +453,12 @@ function ga(t, e) {
|
|
|
453
453
|
const i = o.componentInstance.proxy._pStores;
|
|
454
454
|
Object.values(i).forEach((c) => {
|
|
455
455
|
o.instanceData.state.push({
|
|
456
|
-
type:
|
|
456
|
+
type: yn(c.$id),
|
|
457
457
|
key: "state",
|
|
458
458
|
editable: !0,
|
|
459
459
|
value: c._isOptionsAPI ? {
|
|
460
460
|
_custom: {
|
|
461
|
-
value:
|
|
461
|
+
value: to(c.$state),
|
|
462
462
|
actions: [
|
|
463
463
|
{
|
|
464
464
|
icon: "restore",
|
|
@@ -472,7 +472,7 @@ function ga(t, e) {
|
|
|
472
472
|
Object.keys(c.$state).reduce((l, a) => (l[a] = c.$state[a], l), {})
|
|
473
473
|
)
|
|
474
474
|
}), c._getters && c._getters.length && o.instanceData.state.push({
|
|
475
|
-
type:
|
|
475
|
+
type: yn(c.$id),
|
|
476
476
|
key: "getters",
|
|
477
477
|
editable: !1,
|
|
478
478
|
value: c._getters.reduce((l, a) => {
|
|
@@ -493,18 +493,18 @@ function ga(t, e) {
|
|
|
493
493
|
}
|
|
494
494
|
}), n.on.getInspectorState((o) => {
|
|
495
495
|
if (o.app === t && o.inspectorId === Se) {
|
|
496
|
-
const r = o.nodeId ===
|
|
496
|
+
const r = o.nodeId === zn ? e : e._s.get(o.nodeId);
|
|
497
497
|
if (!r)
|
|
498
498
|
return;
|
|
499
499
|
r && (o.state = da(r));
|
|
500
500
|
}
|
|
501
501
|
}), n.on.editInspectorState((o, r) => {
|
|
502
502
|
if (o.app === t && o.inspectorId === Se) {
|
|
503
|
-
const s = o.nodeId ===
|
|
503
|
+
const s = o.nodeId === zn ? e : e._s.get(o.nodeId);
|
|
504
504
|
if (!s)
|
|
505
505
|
return ye(`store "${o.nodeId}" not found`, "error");
|
|
506
506
|
const { path: i } = o;
|
|
507
|
-
|
|
507
|
+
ho(s) ? i.unshift("state") : (i.length !== 1 || !s._customProperties.has(i[0]) || i[0] in s.$state) && i.unshift("$state"), Ct = !1, o.set(s, i, o.state.value), Ct = !0;
|
|
508
508
|
}
|
|
509
509
|
}), n.on.editComponentState((o) => {
|
|
510
510
|
if (o.type.startsWith("🍍")) {
|
|
@@ -522,13 +522,13 @@ Only state can be modified.`);
|
|
|
522
522
|
});
|
|
523
523
|
}
|
|
524
524
|
function ma(t, e) {
|
|
525
|
-
|
|
525
|
+
un.includes(yn(e.$id)) || un.push(yn(e.$id)), Gr({
|
|
526
526
|
id: "dev.esm.pinia",
|
|
527
527
|
label: "Pinia 🍍",
|
|
528
528
|
logo: "https://pinia.vuejs.org/logo.svg",
|
|
529
529
|
packageName: "pinia",
|
|
530
530
|
homepage: "https://pinia.vuejs.org",
|
|
531
|
-
componentStateTypes:
|
|
531
|
+
componentStateTypes: un,
|
|
532
532
|
app: t,
|
|
533
533
|
settings: {
|
|
534
534
|
logStoreChanges: {
|
|
@@ -594,7 +594,7 @@ function ma(t, e) {
|
|
|
594
594
|
});
|
|
595
595
|
});
|
|
596
596
|
}, !0), e._customProperties.forEach((i) => {
|
|
597
|
-
|
|
597
|
+
ne(() => v(e[i]), (c, l) => {
|
|
598
598
|
n.notifyComponentUpdate(), n.sendInspectorState(Se), Ct && n.addTimelineEvent({
|
|
599
599
|
layerId: at,
|
|
600
600
|
event: {
|
|
@@ -653,7 +653,7 @@ function ma(t, e) {
|
|
|
653
653
|
}
|
|
654
654
|
let rs = 0, rt;
|
|
655
655
|
function No(t, e, n) {
|
|
656
|
-
const o = e.reduce((r, s) => (r[s] =
|
|
656
|
+
const o = e.reduce((r, s) => (r[s] = to(t)[s], r), {});
|
|
657
657
|
for (const r in o)
|
|
658
658
|
t[r] = function() {
|
|
659
659
|
const s = rs, i = n ? new Proxy(t, {
|
|
@@ -674,7 +674,7 @@ function va({ app: t, store: e, options: n }) {
|
|
|
674
674
|
return;
|
|
675
675
|
e._isOptionsAPI = !!n.state, No(e, Object.keys(n.actions), e._isOptionsAPI);
|
|
676
676
|
const o = e._hotUpdate;
|
|
677
|
-
|
|
677
|
+
to(e)._hotUpdate = function(r) {
|
|
678
678
|
o.apply(this, arguments), No(e, Object.keys(r._hmrPayload.actions), !!e._isOptionsAPI);
|
|
679
679
|
}, ma(
|
|
680
680
|
t,
|
|
@@ -687,7 +687,7 @@ function ya() {
|
|
|
687
687
|
let n = [], o = [];
|
|
688
688
|
const r = Rr({
|
|
689
689
|
install(s) {
|
|
690
|
-
r._a = s, s.provide(ea, r), s.config.globalProperties.$pinia = r,
|
|
690
|
+
r._a = s, s.provide(ea, r), s.config.globalProperties.$pinia = r, Oo && ga(s, r), o.forEach((i) => n.push(i)), o = [];
|
|
691
691
|
},
|
|
692
692
|
use(s) {
|
|
693
693
|
return !this._a && !zi ? o.push(s) : n.push(s), this;
|
|
@@ -700,7 +700,7 @@ function ya() {
|
|
|
700
700
|
_s: /* @__PURE__ */ new Map(),
|
|
701
701
|
state: e
|
|
702
702
|
});
|
|
703
|
-
return
|
|
703
|
+
return Oo && typeof Proxy < "u" && r.use(va), r;
|
|
704
704
|
}
|
|
705
705
|
process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
|
|
706
706
|
/* istanbul ignore next */
|
|
@@ -809,10 +809,10 @@ function Ca(t = {}) {
|
|
|
809
809
|
});
|
|
810
810
|
};
|
|
811
811
|
}
|
|
812
|
-
var
|
|
813
|
-
const
|
|
814
|
-
|
|
815
|
-
const
|
|
812
|
+
var Ta = Ca();
|
|
813
|
+
const Kn = ya();
|
|
814
|
+
Kn.use(Ta);
|
|
815
|
+
const Aa = (t) => {
|
|
816
816
|
var a, u, h, p, f;
|
|
817
817
|
const e = ((a = t == null ? void 0 : t.router) == null ? void 0 : a.routerBase) ?? "/", n = ((u = t == null ? void 0 : t.router) == null ? void 0 : u.options) || {};
|
|
818
818
|
let o = Object.assign(((h = t == null ? void 0 : t.router) == null ? void 0 : h.glob) || {});
|
|
@@ -825,29 +825,29 @@ const Ta = (t) => {
|
|
|
825
825
|
);
|
|
826
826
|
});
|
|
827
827
|
const i = ((f = t == null ? void 0 : t.router) == null ? void 0 : f.routers) || [], c = [
|
|
828
|
-
...
|
|
829
|
-
...
|
|
830
|
-
...
|
|
828
|
+
...Rn(r, t),
|
|
829
|
+
...Rn(i, t),
|
|
830
|
+
...Rn(s, t)
|
|
831
831
|
];
|
|
832
832
|
return { router: pi({ history: fi(e), routes: c, ...n }) };
|
|
833
|
-
},
|
|
833
|
+
}, Rn = (t, e) => t.map((n) => {
|
|
834
834
|
const o = n.meta || {};
|
|
835
835
|
return o.keepAlive = o.keepAlive ?? (e == null ? void 0 : e.keepAlive) ?? !0, { ...n, meta: o };
|
|
836
|
-
}),
|
|
836
|
+
}), Vm = (t) => {
|
|
837
837
|
t || (t = {});
|
|
838
838
|
const e = C(!0);
|
|
839
839
|
Promise.all([li(t), di(t)]).then(() => {
|
|
840
840
|
e.value = !1;
|
|
841
841
|
});
|
|
842
|
-
const { container: n, component: o, props: r } = (t == null ? void 0 : t.root) || {}, s = Ys(o ||
|
|
843
|
-
s.use(qi, t), s.use(
|
|
844
|
-
const { router: i } =
|
|
845
|
-
return s.use(i), s.mount(n || "#app"), { app: s, router: i, loading: e, store:
|
|
846
|
-
}, ss = et({}), is = et({}),
|
|
842
|
+
const { container: n, component: o, props: r } = (t == null ? void 0 : t.root) || {}, s = Ys(o || no, r);
|
|
843
|
+
s.use(qi, t), s.use(Kn);
|
|
844
|
+
const { router: i } = Aa(t);
|
|
845
|
+
return s.use(i), s.mount(n || "#app"), { app: s, router: i, loading: e, store: Kn };
|
|
846
|
+
}, ss = et({}), is = et({}), _n = C("zh-CN"), ka = "dasI18n", Ho = (t, e) => {
|
|
847
847
|
const n = e === "global", o = !n;
|
|
848
848
|
for (const r in t)
|
|
849
849
|
n && (is[r] = t[r]), o && (ss[r] = t[r]);
|
|
850
|
-
},
|
|
850
|
+
}, Hm = async (t) => {
|
|
851
851
|
var o, r;
|
|
852
852
|
const e = window[ka];
|
|
853
853
|
e && Ho(e, "global");
|
|
@@ -859,19 +859,19 @@ const Ta = (t) => {
|
|
|
859
859
|
}, $a = (t, ...e) => K(() => {
|
|
860
860
|
const n = is[t] || ss[t] || t;
|
|
861
861
|
if (n === t) return t;
|
|
862
|
-
let o = n[
|
|
863
|
-
return
|
|
862
|
+
let o = n[_n.value];
|
|
863
|
+
return _n.value === "zh-CN" && n["zh-cn"] && !n["zh-CN"] && (o = n["zh-cn"]), e.map((r, s) => {
|
|
864
864
|
o = o.replace(`$${s}`, r);
|
|
865
865
|
}), o;
|
|
866
|
-
}), Ea = $a,
|
|
867
|
-
|
|
868
|
-
},
|
|
866
|
+
}), Ea = $a, Bm = (t, ...e) => Ea(t, ...e).value, Wm = (t) => {
|
|
867
|
+
_n.value = t;
|
|
868
|
+
}, qm = () => _n, At = C("light"), Ut = C({
|
|
869
869
|
light: {},
|
|
870
870
|
dark: {}
|
|
871
|
-
}),
|
|
871
|
+
}), Ft = C({
|
|
872
872
|
light: {},
|
|
873
873
|
dark: {}
|
|
874
|
-
}), Pa = "dasTheme",
|
|
874
|
+
}), Pa = "dasTheme", Ht = "das-theme", La = (t) => {
|
|
875
875
|
let e = {
|
|
876
876
|
light: {},
|
|
877
877
|
dark: {}
|
|
@@ -907,14 +907,14 @@ const Bo = (t, e) => {
|
|
|
907
907
|
for (const s in o) {
|
|
908
908
|
const i = o[s];
|
|
909
909
|
for (const c in i) {
|
|
910
|
-
const l = i[c], a = `${
|
|
910
|
+
const l = i[c], a = `${Ht}-${s}`;
|
|
911
911
|
n.insertRule(`.${a} { ${c}:${l} } `, n.cssRules.length);
|
|
912
912
|
}
|
|
913
|
-
e === "global" && (
|
|
913
|
+
e === "global" && (Ft.value[s] || (Ft.value[s] = {}), Ft.value[s] = { ...Ft.value[s], ...i }), e === "custom" && (Ut.value[s] || (Ut.value[s] = {}), Ut.value[s] = { ...Ut.value[s], ...i });
|
|
914
914
|
}
|
|
915
|
-
const r = `${
|
|
915
|
+
const r = `${Ht}-${At.value}`;
|
|
916
916
|
document.body.classList.contains(r) || document.body.classList.add(r);
|
|
917
|
-
},
|
|
917
|
+
}, zm = async (t) => {
|
|
918
918
|
var o, r;
|
|
919
919
|
const e = window[Pa];
|
|
920
920
|
e && Bo(e, "global");
|
|
@@ -923,12 +923,12 @@ const Bo = (t, e) => {
|
|
|
923
923
|
var i;
|
|
924
924
|
n = Object.assign(n, ((i = s.theme) == null ? void 0 : i.glob) || {});
|
|
925
925
|
}), Object.values(n).filter((s) => !!s).flat().map((s) => Bo(s));
|
|
926
|
-
},
|
|
927
|
-
document.body.classList.add(`${
|
|
926
|
+
}, Km = (t) => {
|
|
927
|
+
document.body.classList.add(`${Ht}-light`), t === "light" && document.body.classList.remove(`${Ht}-${At.value}`), At.value = t, document.body.classList.add(`${Ht}-${At.value}`);
|
|
928
928
|
}, Ra = (t) => K(() => {
|
|
929
929
|
var e, n, o, r;
|
|
930
|
-
return ((n = (e =
|
|
931
|
-
}),
|
|
930
|
+
return ((n = (e = Ft.value) == null ? void 0 : e[At.value]) == null ? void 0 : n[t]) || ((r = (o = Ut.value) == null ? void 0 : o[At.value]) == null ? void 0 : r[t]) || t;
|
|
931
|
+
}), Jm = (t) => `var(${t})`, Gm = Ra, se = et({
|
|
932
932
|
visible: !1,
|
|
933
933
|
logo: "",
|
|
934
934
|
items: [],
|
|
@@ -1015,7 +1015,7 @@ const Bo = (t, e) => {
|
|
|
1015
1015
|
}, Ye = et({
|
|
1016
1016
|
items: [],
|
|
1017
1017
|
eventListeners: {}
|
|
1018
|
-
}),
|
|
1018
|
+
}), xa = {
|
|
1019
1019
|
setItems: (t) => {
|
|
1020
1020
|
Ye.items = t;
|
|
1021
1021
|
},
|
|
@@ -1060,7 +1060,7 @@ const Bo = (t, e) => {
|
|
|
1060
1060
|
}, Pe = et({
|
|
1061
1061
|
items: [],
|
|
1062
1062
|
eventListeners: {}
|
|
1063
|
-
}),
|
|
1063
|
+
}), Oa = {
|
|
1064
1064
|
setItems: (t) => {
|
|
1065
1065
|
Pe.items = t;
|
|
1066
1066
|
},
|
|
@@ -1107,12 +1107,12 @@ const Bo = (t, e) => {
|
|
|
1107
1107
|
remove: o
|
|
1108
1108
|
};
|
|
1109
1109
|
}
|
|
1110
|
-
},
|
|
1110
|
+
}, Vt = et({
|
|
1111
1111
|
eventListeners: {}
|
|
1112
1112
|
}), ja = {
|
|
1113
1113
|
triggerEventListener: (t, e, n) => {
|
|
1114
1114
|
var i;
|
|
1115
|
-
const o =
|
|
1115
|
+
const o = Vt.eventListeners, { autoRemove: r = !1 } = n || {}, s = [];
|
|
1116
1116
|
for (const c in o) {
|
|
1117
1117
|
const l = o[c];
|
|
1118
1118
|
l.type === t && s.push(
|
|
@@ -1125,9 +1125,9 @@ const Bo = (t, e) => {
|
|
|
1125
1125
|
},
|
|
1126
1126
|
addEventListener: (t, e) => {
|
|
1127
1127
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), o = () => {
|
|
1128
|
-
|
|
1128
|
+
Vt.eventListeners[n] && delete Vt.eventListeners[n];
|
|
1129
1129
|
};
|
|
1130
|
-
return
|
|
1130
|
+
return Vt.eventListeners[n] = {
|
|
1131
1131
|
type: t,
|
|
1132
1132
|
handler: async (r) => {
|
|
1133
1133
|
try {
|
|
@@ -1141,24 +1141,24 @@ const Bo = (t, e) => {
|
|
|
1141
1141
|
remove: o
|
|
1142
1142
|
};
|
|
1143
1143
|
}
|
|
1144
|
-
},
|
|
1144
|
+
}, Jn = et({
|
|
1145
1145
|
visible: !1,
|
|
1146
1146
|
style: {}
|
|
1147
1147
|
}), Na = {
|
|
1148
1148
|
set: (t, e) => {
|
|
1149
|
-
|
|
1149
|
+
Jn.visible = t, e || (e = {}), e.transition || (e.transition = "all 0.3s"), e && (Jn.style = e);
|
|
1150
1150
|
}
|
|
1151
1151
|
}, ut = {
|
|
1152
1152
|
nav: se,
|
|
1153
1153
|
menu: Ye,
|
|
1154
1154
|
tab: Pe,
|
|
1155
|
-
overlay:
|
|
1156
|
-
iframeView:
|
|
1155
|
+
overlay: Jn,
|
|
1156
|
+
iframeView: Vt,
|
|
1157
1157
|
visible: C(!0)
|
|
1158
1158
|
}, Z = {
|
|
1159
1159
|
nav: Da,
|
|
1160
|
-
menu:
|
|
1161
|
-
tab:
|
|
1160
|
+
menu: xa,
|
|
1161
|
+
tab: Oa,
|
|
1162
1162
|
overlay: Na,
|
|
1163
1163
|
iframeView: ja,
|
|
1164
1164
|
setVisible: (t) => ut.visible.value = t
|
|
@@ -1177,7 +1177,7 @@ const Bo = (t, e) => {
|
|
|
1177
1177
|
...e.transitionConfig || {}
|
|
1178
1178
|
};
|
|
1179
1179
|
return p;
|
|
1180
|
-
}), o =
|
|
1180
|
+
}), o = Lt(), r = Zt(), s = C([]), i = K(() => s.value.filter((h) => {
|
|
1181
1181
|
var p;
|
|
1182
1182
|
return (p = h.meta) == null ? void 0 : p.isOpen;
|
|
1183
1183
|
})), c = (h) => {
|
|
@@ -1187,7 +1187,7 @@ const Bo = (t, e) => {
|
|
|
1187
1187
|
g.meta.key === h && (g.meta.key = `${g.path}-${f}`);
|
|
1188
1188
|
});
|
|
1189
1189
|
};
|
|
1190
|
-
|
|
1190
|
+
ne(
|
|
1191
1191
|
() => e.exclude,
|
|
1192
1192
|
(h) => {
|
|
1193
1193
|
if (!h || !h.length) return;
|
|
@@ -1220,7 +1220,7 @@ const Bo = (t, e) => {
|
|
|
1220
1220
|
const p = s.value.find((_) => _.path === r.path);
|
|
1221
1221
|
p && ((f = p.meta) != null && f.isOpen || (p.meta.isOpen = !0), (g = p.meta) != null && g.isShow || (p.meta.isShow = !0), await Ze(), Z.iframeView.triggerEventListener("onActivated", { route: p }));
|
|
1222
1222
|
};
|
|
1223
|
-
return a(),
|
|
1223
|
+
return a(), ne(
|
|
1224
1224
|
() => r.path,
|
|
1225
1225
|
() => {
|
|
1226
1226
|
u();
|
|
@@ -1231,13 +1231,13 @@ const Bo = (t, e) => {
|
|
|
1231
1231
|
[
|
|
1232
1232
|
h.needTransition ? (N(), Q(
|
|
1233
1233
|
Xs,
|
|
1234
|
-
|
|
1234
|
+
Vn(Xt({ key: 0 }, n.value)),
|
|
1235
1235
|
{
|
|
1236
1236
|
default: B(() => [
|
|
1237
1237
|
(N(!0), X(
|
|
1238
1238
|
He,
|
|
1239
1239
|
null,
|
|
1240
|
-
|
|
1240
|
+
qt(i.value, ({ path: f, meta: g }) => De((N(), X("div", {
|
|
1241
1241
|
class: "das-iframe-router-view",
|
|
1242
1242
|
key: f,
|
|
1243
1243
|
name: f
|
|
@@ -1261,7 +1261,7 @@ const Bo = (t, e) => {
|
|
|
1261
1261
|
h.needTransition ? W("v-if", !0) : (N(!0), X(
|
|
1262
1262
|
He,
|
|
1263
1263
|
{ key: 1 },
|
|
1264
|
-
|
|
1264
|
+
qt(i.value, ({ path: f, meta: g }) => De((N(), X("div", {
|
|
1265
1265
|
class: "das-iframe-router-view",
|
|
1266
1266
|
key: f,
|
|
1267
1267
|
name: f
|
|
@@ -1318,23 +1318,23 @@ const Bo = (t, e) => {
|
|
|
1318
1318
|
setup(t) {
|
|
1319
1319
|
const e = t;
|
|
1320
1320
|
Hi(), Bi(), Wi();
|
|
1321
|
-
const n =
|
|
1321
|
+
const n = Zt(), o = C(!1), r = C(!1), s = C(!1), i = K(() => o.value && e.showLayout), c = K(() => r.value && e.showLayout && e.showAside), l = K(() => o.value && e.showLayout && e.showTabs), a = K(() => e.routerViewVisible ?? !0), u = K(() => ut.overlay.visible ?? !1), h = K(() => ({
|
|
1322
1322
|
"das-web-app-overlay-show": u.value === !0,
|
|
1323
1323
|
"das-web-app-overlay-hide": u.value === !1,
|
|
1324
1324
|
"das-web-app-overlay-destroy": u.value === "destroy"
|
|
1325
1325
|
})), p = K(() => ut.overlay.style ?? { backgroundColor: "rgba(0,0,0,0.5)" }), f = K(() => e.excludeRoutes), g = K(() => e.routeKeepAliveVisible);
|
|
1326
|
-
|
|
1326
|
+
ne(
|
|
1327
1327
|
() => [n.meta, n.query],
|
|
1328
1328
|
([m, S]) => {
|
|
1329
1329
|
const { showLayout: I = !0, showAside: E = !0, showTabs: L = !0, layout: P = {} } = m, {
|
|
1330
|
-
showLayout:
|
|
1330
|
+
showLayout: A = !0,
|
|
1331
1331
|
showAside: R = !0,
|
|
1332
1332
|
showTabs: $ = !0,
|
|
1333
1333
|
app: Y
|
|
1334
1334
|
} = S;
|
|
1335
|
-
window.__IN_DAS_MAIN_APP && (Y ?
|
|
1335
|
+
window.__IN_DAS_MAIN_APP && (Y ? Mn({ minHeight: "auto", minWidth: "auto" }) : Mn({ minHeight: "600px", minWidth: "1200px" })), window.__IN_DAS_MICRO_APP && Mn(P);
|
|
1336
1336
|
let re = !0, U = !0, D = !0;
|
|
1337
|
-
(I === !1 ||
|
|
1337
|
+
(I === !1 || A === !1 || A === "false") && (re = !1, U = !1, D = !1), (E === !1 || R === !1 || R === "false") && (U = !1), (L === !1 || $ === !1 || $ === "false") && (D = !1), o.value = re, r.value = U, s.value = D;
|
|
1338
1338
|
}
|
|
1339
1339
|
);
|
|
1340
1340
|
const _ = K(() => ({
|
|
@@ -1359,7 +1359,7 @@ const Bo = (t, e) => {
|
|
|
1359
1359
|
"div",
|
|
1360
1360
|
{
|
|
1361
1361
|
class: Dr(["das-web-app-overlay", h.value]),
|
|
1362
|
-
style:
|
|
1362
|
+
style: Hn(p.value)
|
|
1363
1363
|
},
|
|
1364
1364
|
null,
|
|
1365
1365
|
6
|
|
@@ -1424,13 +1424,13 @@ const Bo = (t, e) => {
|
|
|
1424
1424
|
m.needTransition ? (N(), Q(I, { key: 0 }, {
|
|
1425
1425
|
default: B(({ Component: E }) => [
|
|
1426
1426
|
q(
|
|
1427
|
-
|
|
1428
|
-
|
|
1427
|
+
Po,
|
|
1428
|
+
Vn(Lo(_.value)),
|
|
1429
1429
|
{
|
|
1430
1430
|
default: B(() => {
|
|
1431
1431
|
var L;
|
|
1432
1432
|
return [
|
|
1433
|
-
v(n).meta.keepAlive ? (N(), Q(
|
|
1433
|
+
v(n).meta.keepAlive ? (N(), Q(Mo, {
|
|
1434
1434
|
key: 0,
|
|
1435
1435
|
exclude: f.value
|
|
1436
1436
|
}, [
|
|
@@ -1447,8 +1447,8 @@ const Bo = (t, e) => {
|
|
|
1447
1447
|
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
1448
1448
|
),
|
|
1449
1449
|
q(
|
|
1450
|
-
|
|
1451
|
-
|
|
1450
|
+
Po,
|
|
1451
|
+
Vn(Lo(_.value)),
|
|
1452
1452
|
{
|
|
1453
1453
|
default: B(() => [
|
|
1454
1454
|
!v(n).meta.keepAlive && !v(n).meta.isIframe ? (N(), X("div", Za, [
|
|
@@ -1470,7 +1470,7 @@ const Bo = (t, e) => {
|
|
|
1470
1470
|
W(" 无动画 "),
|
|
1471
1471
|
m.needTransition ? W("v-if", !0) : (N(), Q(I, { key: 1 }, {
|
|
1472
1472
|
default: B(({ Component: E }) => [
|
|
1473
|
-
v(n).meta.keepAlive ? (N(), Q(
|
|
1473
|
+
v(n).meta.keepAlive ? (N(), Q(Mo, {
|
|
1474
1474
|
key: 0,
|
|
1475
1475
|
exclude: f.value
|
|
1476
1476
|
}, [
|
|
@@ -1527,7 +1527,7 @@ const Bo = (t, e) => {
|
|
|
1527
1527
|
]);
|
|
1528
1528
|
};
|
|
1529
1529
|
}
|
|
1530
|
-
}),
|
|
1530
|
+
}), Qm = /* @__PURE__ */ je(oc, [["__scopeId", "data-v-1c818b3a"]]), rc = ["modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], Ym = /* @__PURE__ */ pe({
|
|
1531
1531
|
__name: "das-web-nav",
|
|
1532
1532
|
setup(t) {
|
|
1533
1533
|
const { nav: e } = ut, n = K(() => e.logo || ""), o = K(() => e.activeItem || ""), r = K(() => (e.items || []).filter((E) => E.fixed)), s = K(() => (e.items || []).filter((E) => !E.fixed)), i = K(() => {
|
|
@@ -1537,7 +1537,7 @@ const Bo = (t, e) => {
|
|
|
1537
1537
|
showChangeEnterprise: ((E = e.config) == null ? void 0 : E.showChangeEnterprise) ?? !1,
|
|
1538
1538
|
showSearch: ((L = e.config) == null ? void 0 : L.showSearch) ?? !0,
|
|
1539
1539
|
showProjectTree: ((P = e.config) == null ? void 0 : P.showProjectTree) ?? !0,
|
|
1540
|
-
subAppList: s.value.map((
|
|
1540
|
+
subAppList: s.value.map((A) => ({ code: A.value, name: A.label, ...A }))
|
|
1541
1541
|
};
|
|
1542
1542
|
}), c = K(() => {
|
|
1543
1543
|
const I = r.value.find((E) => E.value === e.activeItem);
|
|
@@ -1552,13 +1552,13 @@ const Bo = (t, e) => {
|
|
|
1552
1552
|
},
|
|
1553
1553
|
...e.projectConfig
|
|
1554
1554
|
})), a = K(() => e.userInfo), u = K(() => e.searchConfig), h = async (I) => {
|
|
1555
|
-
const E = I.detail[0], L = r.value.find((
|
|
1555
|
+
const E = I.detail[0], L = r.value.find((A) => E.value === A.value);
|
|
1556
1556
|
await Z.nav.triggerEventListener("onItemClick", L) && Z.nav.setActiveItem(L.value);
|
|
1557
1557
|
}, p = async (I) => {
|
|
1558
|
-
const E = I.detail[0], L = s.value.find((
|
|
1558
|
+
const E = I.detail[0], L = s.value.find((A) => E === A.value);
|
|
1559
1559
|
await Z.nav.triggerEventListener("onItemClick", L) && Z.nav.setActiveItem(L.value);
|
|
1560
1560
|
}, f = async (I) => {
|
|
1561
|
-
const E = I.detail[0], L = s.value.find((
|
|
1561
|
+
const E = I.detail[0], L = s.value.find((A) => E === A.value);
|
|
1562
1562
|
await Z.nav.triggerEventListener("onItemRemove", L) && Z.nav.removeItem(L.value);
|
|
1563
1563
|
}, g = async (I) => {
|
|
1564
1564
|
const [E, L] = I.detail;
|
|
@@ -1602,7 +1602,7 @@ const Bo = (t, e) => {
|
|
|
1602
1602
|
"on:fullScreen": S
|
|
1603
1603
|
}, null, 40, rc));
|
|
1604
1604
|
}
|
|
1605
|
-
}), sc = ["modelValue", "data", "collapse", "fixedTopMenu", "subMenuAttrs"],
|
|
1605
|
+
}), sc = ["modelValue", "data", "collapse", "fixedTopMenu", "subMenuAttrs"], Xm = /* @__PURE__ */ pe({
|
|
1606
1606
|
__name: "das-web-menu",
|
|
1607
1607
|
props: {
|
|
1608
1608
|
menuAttr: {}
|
|
@@ -1612,7 +1612,7 @@ const Bo = (t, e) => {
|
|
|
1612
1612
|
const h = u.detail[0], p = Vi(r.value).find((g) => h === g.id);
|
|
1613
1613
|
await Z.menu.triggerEventListener("onItemClick", p) && Z.menu.setActiveItem(p.id);
|
|
1614
1614
|
};
|
|
1615
|
-
return (u, h) => r.value.length > 0 ? (N(), X("das-ce-menu",
|
|
1615
|
+
return (u, h) => r.value.length > 0 ? (N(), X("das-ce-menu", Xt({
|
|
1616
1616
|
key: 0,
|
|
1617
1617
|
modelValue: i.value,
|
|
1618
1618
|
data: r.value,
|
|
@@ -1621,7 +1621,7 @@ const Bo = (t, e) => {
|
|
|
1621
1621
|
subMenuAttrs: l.value
|
|
1622
1622
|
}, o.value, { onChange: a }), null, 16, sc)) : W("v-if", !0);
|
|
1623
1623
|
}
|
|
1624
|
-
}), ic = ["modelValue", "options"],
|
|
1624
|
+
}), ic = ["modelValue", "options"], Zm = /* @__PURE__ */ pe({
|
|
1625
1625
|
__name: "das-web-tabs",
|
|
1626
1626
|
props: {
|
|
1627
1627
|
tabsAttr: {}
|
|
@@ -1644,7 +1644,7 @@ const Bo = (t, e) => {
|
|
|
1644
1644
|
}, u = () => {
|
|
1645
1645
|
Z.tab.triggerEventListener("onToggleFullScreen");
|
|
1646
1646
|
};
|
|
1647
|
-
return (h, p) => r.value.length > 0 ? (N(), X("das-ce-tabs",
|
|
1647
|
+
return (h, p) => r.value.length > 0 ? (N(), X("das-ce-tabs", Xt({
|
|
1648
1648
|
key: 0,
|
|
1649
1649
|
modelValue: s.value,
|
|
1650
1650
|
options: r.value
|
|
@@ -1656,8 +1656,8 @@ const Bo = (t, e) => {
|
|
|
1656
1656
|
"on:toggleFullScreen": u
|
|
1657
1657
|
}), null, 16, ic)) : W("v-if", !0);
|
|
1658
1658
|
}
|
|
1659
|
-
}), Wo = C("/das-micro-app"), be = C([]),
|
|
1660
|
-
let
|
|
1659
|
+
}), Wo = C("/das-micro-app"), be = C([]), dn = C(!1), rn = C([]), sn = C(!0);
|
|
1660
|
+
let xe = null, Oe = null, wt = null;
|
|
1661
1661
|
const It = (t, e, n) => {
|
|
1662
1662
|
var r, s, i, c;
|
|
1663
1663
|
const o = be.value.find((l) => l.name === t);
|
|
@@ -1668,61 +1668,61 @@ const It = (t, e, n) => {
|
|
|
1668
1668
|
}
|
|
1669
1669
|
(c = (i = o.dom) == null ? void 0 : i.contentWindow) == null || c.postMessage({ type: e, data: n }, o.entry);
|
|
1670
1670
|
}
|
|
1671
|
-
},
|
|
1671
|
+
}, Dn = (t, e) => {
|
|
1672
1672
|
var s;
|
|
1673
1673
|
const { __IN_DAS_MICRO_APP: n, __DAS_MAIN_APP_HREF: o } = window;
|
|
1674
1674
|
if (!n || !o) return;
|
|
1675
1675
|
const { origin: r } = new URL(o);
|
|
1676
1676
|
(s = window.top) == null || s.postMessage({ type: t, data: e }, r);
|
|
1677
1677
|
}, ac = () => {
|
|
1678
|
-
|
|
1678
|
+
Oe || (Oe || (Oe = {}), window.addEventListener(
|
|
1679
1679
|
"message",
|
|
1680
1680
|
(t) => {
|
|
1681
1681
|
const { type: e, source: n } = t.data || {};
|
|
1682
|
-
if (n !== "react-devtools-content-script" &&
|
|
1683
|
-
for (const o in
|
|
1684
|
-
|
|
1682
|
+
if (n !== "react-devtools-content-script" && Oe[e])
|
|
1683
|
+
for (const o in Oe[e])
|
|
1684
|
+
Oe[e][o](t.data);
|
|
1685
1685
|
},
|
|
1686
1686
|
!1
|
|
1687
1687
|
));
|
|
1688
1688
|
}, cc = () => {
|
|
1689
|
-
|
|
1689
|
+
xe || (xe || (xe = {}), window.addEventListener(
|
|
1690
1690
|
"message",
|
|
1691
1691
|
(t) => {
|
|
1692
1692
|
const { type: e } = t.data || {};
|
|
1693
|
-
if (
|
|
1694
|
-
for (const n in
|
|
1695
|
-
|
|
1693
|
+
if (xe[e])
|
|
1694
|
+
for (const n in xe[e])
|
|
1695
|
+
xe[e][n](t.data);
|
|
1696
1696
|
},
|
|
1697
1697
|
!1
|
|
1698
1698
|
));
|
|
1699
1699
|
}, lc = (t, e) => {
|
|
1700
1700
|
cc();
|
|
1701
1701
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8);
|
|
1702
|
-
return
|
|
1702
|
+
return xe[t] || (xe[t] = {}), xe[t][n] = e, {
|
|
1703
1703
|
remove: () => {
|
|
1704
|
-
|
|
1704
|
+
xe[t] && xe[t][n] && delete xe[t][n];
|
|
1705
1705
|
}
|
|
1706
1706
|
};
|
|
1707
1707
|
}, uc = (t, e) => {
|
|
1708
1708
|
ac();
|
|
1709
1709
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8);
|
|
1710
|
-
return
|
|
1710
|
+
return Oe[t] || (Oe[t] = {}), Oe[t][n] = e, {
|
|
1711
1711
|
remove: () => {
|
|
1712
|
-
|
|
1712
|
+
Oe[t] && Oe[t][n] && delete Oe[t][n];
|
|
1713
1713
|
}
|
|
1714
1714
|
};
|
|
1715
|
-
},
|
|
1715
|
+
}, xn = async (t) => {
|
|
1716
1716
|
await Promise.all(
|
|
1717
1717
|
be.value.filter((e) => e.loaded).map((e) => new Promise(async (n) => {
|
|
1718
|
-
e.dom || await new Promise((o) =>
|
|
1718
|
+
e.dom || await new Promise((o) => ne(() => e.dom, o)), setTimeout(() => {
|
|
1719
1719
|
It(e.name, "sessionStorage", t), n(!0);
|
|
1720
1720
|
}, 0);
|
|
1721
1721
|
}))
|
|
1722
1722
|
);
|
|
1723
1723
|
}, ue = {
|
|
1724
1724
|
loadMicroApp: (t) => {
|
|
1725
|
-
|
|
1725
|
+
dn.value = !0;
|
|
1726
1726
|
const e = be.value.find((i) => i.name === t), n = be.value.find((i) => i.actived), o = !!e, r = !(e != null && e.loaded), s = e == null ? void 0 : e.actived;
|
|
1727
1727
|
if (!o) {
|
|
1728
1728
|
n && (n.actived = !1);
|
|
@@ -1741,7 +1741,7 @@ const It = (t, e, n) => {
|
|
|
1741
1741
|
},
|
|
1742
1742
|
hideMicroApp: async (t) => {
|
|
1743
1743
|
const e = be.value.find((n) => n.name === t);
|
|
1744
|
-
e && e.loaded && (e.dom || await new Promise((n) =>
|
|
1744
|
+
e && e.loaded && (e.dom || await new Promise((n) => ne(() => e.dom, n)), It(t, "router", {
|
|
1745
1745
|
cmd: "push",
|
|
1746
1746
|
route: {
|
|
1747
1747
|
name: "das-micro-app-ghost",
|
|
@@ -1750,7 +1750,7 @@ const It = (t, e, n) => {
|
|
|
1750
1750
|
}));
|
|
1751
1751
|
},
|
|
1752
1752
|
hideAllMicroApp: () => {
|
|
1753
|
-
|
|
1753
|
+
dn.value = !1, be.value.map((t) => {
|
|
1754
1754
|
t.actived = !1;
|
|
1755
1755
|
});
|
|
1756
1756
|
},
|
|
@@ -1759,13 +1759,13 @@ const It = (t, e, n) => {
|
|
|
1759
1759
|
e && (e.loaded = !1, e.actived = !1, e.dom = void 0);
|
|
1760
1760
|
},
|
|
1761
1761
|
unloadAllMicroApp: () => {
|
|
1762
|
-
|
|
1762
|
+
dn.value = !1, be.value.map((t) => {
|
|
1763
1763
|
t.loaded = !1, t.actived = !1, t.dom = void 0;
|
|
1764
1764
|
});
|
|
1765
1765
|
},
|
|
1766
1766
|
setMicroAppRoute: async (t, e, n) => {
|
|
1767
1767
|
const o = be.value.find((c) => c.name === e);
|
|
1768
|
-
if (!o || !o.loaded || !o.actived || (o.dom || await new Promise((c) =>
|
|
1768
|
+
if (!o || !o.loaded || !o.actived || (o.dom || await new Promise((c) => ne(() => o.dom, c)), !o.actived)) return o;
|
|
1769
1769
|
const r = n.path || n, s = n.query || {}, i = n.params || {};
|
|
1770
1770
|
return t.push({
|
|
1771
1771
|
path: `/${e}${r}`,
|
|
@@ -1782,23 +1782,23 @@ const It = (t, e, n) => {
|
|
|
1782
1782
|
}, 0), o;
|
|
1783
1783
|
},
|
|
1784
1784
|
sendMessageToMicroApp: It,
|
|
1785
|
-
sendMessageToMainApp:
|
|
1785
|
+
sendMessageToMainApp: Dn,
|
|
1786
1786
|
addEventListenerFromMainApp: lc,
|
|
1787
1787
|
addEventListenerFromMicroApp: uc,
|
|
1788
1788
|
setMainAppOverlay: (t, e) => {
|
|
1789
|
-
|
|
1789
|
+
Dn("bodyOverlay", { visible: t, style: e });
|
|
1790
1790
|
},
|
|
1791
1791
|
sessionStorage: {
|
|
1792
1792
|
key: window.sessionStorage.key,
|
|
1793
1793
|
getItem: window.sessionStorage.getItem,
|
|
1794
1794
|
setItem: (t, e) => {
|
|
1795
|
-
window.sessionStorage.setItem(t, e),
|
|
1795
|
+
window.sessionStorage.setItem(t, e), xn({ cmd: "setItem", key: t, value: e });
|
|
1796
1796
|
},
|
|
1797
1797
|
removeItem: (t) => {
|
|
1798
|
-
window.sessionStorage.removeItem(t),
|
|
1798
|
+
window.sessionStorage.removeItem(t), xn({ cmd: "removeItem", key: t });
|
|
1799
1799
|
},
|
|
1800
1800
|
clear: () => {
|
|
1801
|
-
window.sessionStorage.clear(),
|
|
1801
|
+
window.sessionStorage.clear(), xn({ cmd: "clear" });
|
|
1802
1802
|
}
|
|
1803
1803
|
},
|
|
1804
1804
|
addMicroAppLifeCycleListener: (t, e) => {
|
|
@@ -1825,20 +1825,20 @@ const It = (t, e, n) => {
|
|
|
1825
1825
|
},
|
|
1826
1826
|
reloadMicroAppRoute: async (t, e) => {
|
|
1827
1827
|
const n = be.value.find((o) => o.name === t);
|
|
1828
|
-
n && (!n.loaded || !n.actived || (n.dom || await new Promise((o) =>
|
|
1828
|
+
n && (!n.loaded || !n.actived || (n.dom || await new Promise((o) => ne(() => n.dom, o)), It(t, "route", { cmd: "reload", path: e })));
|
|
1829
1829
|
},
|
|
1830
1830
|
unloadMicroAppRoute: async (t, e) => {
|
|
1831
1831
|
const n = be.value.find((o) => o.name === t);
|
|
1832
|
-
n && (!n.loaded || !n.actived || (n.dom || await new Promise((o) =>
|
|
1832
|
+
n && (!n.loaded || !n.actived || (n.dom || await new Promise((o) => ne(() => n.dom, o)), It(t, "route", { cmd: "unload", path: e })));
|
|
1833
1833
|
},
|
|
1834
1834
|
setMainAppLayoutVisible: (t) => {
|
|
1835
|
-
|
|
1835
|
+
Dn("layoutVisible", { visible: t });
|
|
1836
1836
|
}
|
|
1837
1837
|
};
|
|
1838
1838
|
var qo;
|
|
1839
|
-
const
|
|
1839
|
+
const go = typeof window < "u", dc = (t) => typeof t == "string", pc = () => {
|
|
1840
1840
|
};
|
|
1841
|
-
|
|
1841
|
+
go && ((qo = window == null ? void 0 : window.navigator) != null && qo.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
1842
1842
|
function as(t) {
|
|
1843
1843
|
return typeof t == "function" ? t() : v(t);
|
|
1844
1844
|
}
|
|
@@ -1856,7 +1856,7 @@ function ls(t) {
|
|
|
1856
1856
|
const n = as(t);
|
|
1857
1857
|
return (e = n == null ? void 0 : n.$el) != null ? e : n;
|
|
1858
1858
|
}
|
|
1859
|
-
const gc =
|
|
1859
|
+
const gc = go ? window : void 0, mc = go ? window.document : void 0;
|
|
1860
1860
|
function vc(...t) {
|
|
1861
1861
|
let e, n, o, r;
|
|
1862
1862
|
if (dc(t[0]) || Array.isArray(t[0]) ? ([n, o, r] = t, e = gc) : [e, n, o, r] = t, !e)
|
|
@@ -1864,7 +1864,7 @@ function vc(...t) {
|
|
|
1864
1864
|
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
1865
1865
|
const s = [], i = () => {
|
|
1866
1866
|
s.forEach((u) => u()), s.length = 0;
|
|
1867
|
-
}, c = (u, h, p, f) => (u.addEventListener(h, p, f), () => u.removeEventListener(h, p, f)), l =
|
|
1867
|
+
}, c = (u, h, p, f) => (u.addEventListener(h, p, f), () => u.removeEventListener(h, p, f)), l = ne(() => [ls(e), as(r)], ([u, h]) => {
|
|
1868
1868
|
i(), u && s.push(...n.flatMap((p) => o.map((f) => c(u, p, f, h))));
|
|
1869
1869
|
}, { immediate: !0, flush: "post" }), a = () => {
|
|
1870
1870
|
l(), i();
|
|
@@ -1919,7 +1919,7 @@ const Jo = [
|
|
|
1919
1919
|
"MSFullscreenError"
|
|
1920
1920
|
]
|
|
1921
1921
|
];
|
|
1922
|
-
function
|
|
1922
|
+
function Dt(t, e = {}) {
|
|
1923
1923
|
const { document: n = mc, autoExit: o = !1 } = e, r = t || (n == null ? void 0 : n.querySelector("html")), s = C(!1);
|
|
1924
1924
|
let i = Jo[0];
|
|
1925
1925
|
const c = yc(() => {
|
|
@@ -1995,7 +1995,7 @@ const Sc = {
|
|
|
1995
1995
|
Ic({
|
|
1996
1996
|
linear: fc
|
|
1997
1997
|
}, Sc);
|
|
1998
|
-
const Cc = ["src", "entry", "name"],
|
|
1998
|
+
const Cc = ["src", "entry", "name"], Tc = /* @__PURE__ */ pe({
|
|
1999
1999
|
__name: "das-micro-app",
|
|
2000
2000
|
props: {
|
|
2001
2001
|
src: {},
|
|
@@ -2007,7 +2007,7 @@ const Cc = ["src", "entry", "name"], Ac = /* @__PURE__ */ pe({
|
|
|
2007
2007
|
const n = t, o = e, r = (c) => {
|
|
2008
2008
|
o("onLoaded", c);
|
|
2009
2009
|
}, s = K(() => n.actived);
|
|
2010
|
-
return
|
|
2010
|
+
return ne(() => s.value, (c) => {
|
|
2011
2011
|
c && o("onActivated"), c || o("onDeactivated");
|
|
2012
2012
|
}), (c, l) => (N(), X("iframe", {
|
|
2013
2013
|
class: "das-micro-app",
|
|
@@ -2018,7 +2018,7 @@ const Cc = ["src", "entry", "name"], Ac = /* @__PURE__ */ pe({
|
|
|
2018
2018
|
onLoad: r
|
|
2019
2019
|
}, null, 40, Cc));
|
|
2020
2020
|
}
|
|
2021
|
-
}),
|
|
2021
|
+
}), Ac = /* @__PURE__ */ je(Tc, [["__scopeId", "data-v-2266bab0"]]), kc = /* @__PURE__ */ pe({
|
|
2022
2022
|
__name: "das-micro-apps",
|
|
2023
2023
|
setup(t) {
|
|
2024
2024
|
const e = C(null), n = async (s, i) => {
|
|
@@ -2061,11 +2061,11 @@ const Cc = ["src", "entry", "name"], Ac = /* @__PURE__ */ pe({
|
|
|
2061
2061
|
(N(!0), X(
|
|
2062
2062
|
He,
|
|
2063
2063
|
null,
|
|
2064
|
-
|
|
2064
|
+
qt(v(be), (c) => (N(), X(
|
|
2065
2065
|
He,
|
|
2066
2066
|
null,
|
|
2067
2067
|
[
|
|
2068
|
-
c.loaded ? De((N(), Q(
|
|
2068
|
+
c.loaded ? De((N(), Q(Ac, {
|
|
2069
2069
|
key: 0,
|
|
2070
2070
|
src: c.src || "",
|
|
2071
2071
|
name: c.name,
|
|
@@ -2088,7 +2088,7 @@ const Cc = ["src", "entry", "name"], Ac = /* @__PURE__ */ pe({
|
|
|
2088
2088
|
/* NEED_PATCH */
|
|
2089
2089
|
));
|
|
2090
2090
|
}
|
|
2091
|
-
}), $c = /* @__PURE__ */ je(kc, [["__scopeId", "data-v-2e3798bc"]]),
|
|
2091
|
+
}), $c = /* @__PURE__ */ je(kc, [["__scopeId", "data-v-2e3798bc"]]), ev = /* @__PURE__ */ pe({
|
|
2092
2092
|
__name: "das-main-app-layout",
|
|
2093
2093
|
props: {
|
|
2094
2094
|
transitionConfig: { default: () => {
|
|
@@ -2102,11 +2102,11 @@ const Cc = ["src", "entry", "name"], Ac = /* @__PURE__ */ pe({
|
|
|
2102
2102
|
} }
|
|
2103
2103
|
},
|
|
2104
2104
|
setup(t) {
|
|
2105
|
-
const e = t, n = K(() => !
|
|
2105
|
+
const e = t, n = K(() => !dn.value), o = K(() => ({
|
|
2106
2106
|
"enter-active-class": "animate__animated animate__fadeInLeft",
|
|
2107
2107
|
...e.transitionConfig
|
|
2108
2108
|
})), r = K(() => ({ showLayout: e.showLayout, showAside: e.showAside, showTabs: e.showTabs }));
|
|
2109
|
-
return (s, i) => (N(), Q(v(
|
|
2109
|
+
return (s, i) => (N(), Q(v(no), Xt({
|
|
2110
2110
|
"transition-config": o.value,
|
|
2111
2111
|
"router-view-visible": n.value
|
|
2112
2112
|
}, r.value), {
|
|
@@ -2141,7 +2141,7 @@ const Cc = ["src", "entry", "name"], Ac = /* @__PURE__ */ pe({
|
|
|
2141
2141
|
}, 300);
|
|
2142
2142
|
}), (e, n) => null;
|
|
2143
2143
|
}
|
|
2144
|
-
}), Ec = (t) => ["http://", "https://", "ws://", "wss://", "/"].find((n) => t.startsWith(n)) ? t : `/${t}`,
|
|
2144
|
+
}), Ec = (t) => ["http://", "https://", "ws://", "wss://", "/"].find((n) => t.startsWith(n)) ? t : `/${t}`, tv = (t, e) => {
|
|
2145
2145
|
if (!(t != null && t.microApps) || !Array.isArray(t.microApps)) return;
|
|
2146
2146
|
window.__IN_DAS_MAIN_APP = !0, t != null && t.microAppRouterPrefix && (Wo.value = t.microAppRouterPrefix), be.value = (t.microApps || []).filter((r) => !!r.name).map((r) => ({ ...r, entry: Ec(r.entry || r.name) })), e == null || e.addRoute({
|
|
2147
2147
|
name: "das-micro-app",
|
|
@@ -2158,7 +2158,7 @@ const Cc = ["src", "entry", "name"], Ac = /* @__PURE__ */ pe({
|
|
|
2158
2158
|
const { name: s, cmd: i, path: c } = r.data;
|
|
2159
2159
|
i === "reload" && ue.reloadMicroAppRoute(s, c), i === "unload" && ue.unloadMicroAppRoute(s, c);
|
|
2160
2160
|
});
|
|
2161
|
-
const { enter: n, exit: o } =
|
|
2161
|
+
const { enter: n, exit: o } = Dt();
|
|
2162
2162
|
ue.addEventListenerFromMicroApp("fullscreen", (r) => {
|
|
2163
2163
|
const s = r.data;
|
|
2164
2164
|
s && n(), s || o();
|
|
@@ -2166,7 +2166,7 @@ const Cc = ["src", "entry", "name"], Ac = /* @__PURE__ */ pe({
|
|
|
2166
2166
|
const { cmd: s, isAutoCloseApp: i } = r.data || {};
|
|
2167
2167
|
s === "reload" && (i !== void 0 && (window.__isAutoCloseApp = i), location.reload());
|
|
2168
2168
|
});
|
|
2169
|
-
},
|
|
2169
|
+
}, nv = (t, e) => {
|
|
2170
2170
|
if (!(t != null && t.microAppName)) return;
|
|
2171
2171
|
window.config.microAppName = t.microAppName, window.self !== window.top && t.microAppName && (window.__IN_DAS_MICRO_APP = !0);
|
|
2172
2172
|
const n = "das-micro-app-ghost";
|
|
@@ -2177,7 +2177,7 @@ const Cc = ["src", "entry", "name"], Ac = /* @__PURE__ */ pe({
|
|
|
2177
2177
|
meta: { isMicroApp: !0, keepAlive: !0 }
|
|
2178
2178
|
});
|
|
2179
2179
|
const o = C(!1), r = C(!1), s = C("");
|
|
2180
|
-
|
|
2180
|
+
ne(
|
|
2181
2181
|
() => e.currentRoute.value,
|
|
2182
2182
|
(i) => {
|
|
2183
2183
|
if (o.value) {
|
|
@@ -2225,14 +2225,14 @@ const Cc = ["src", "entry", "name"], Ac = /* @__PURE__ */ pe({
|
|
|
2225
2225
|
c === "setItem" && window.sessionStorage.setItem(l, a), c === "getItem" && window.sessionStorage.getItem(l), c === "removeItem" && window.sessionStorage.removeItem(l), c === "clear" && window.sessionStorage.clear();
|
|
2226
2226
|
}), ue.addEventListenerFromMainApp("route", (i) => {
|
|
2227
2227
|
const { cmd: c, path: l } = i.data;
|
|
2228
|
-
c === "reload" && (
|
|
2229
|
-
|
|
2230
|
-
}, 300)), c === "unload" && (
|
|
2231
|
-
|
|
2228
|
+
c === "reload" && (rn.value.push(l), sn.value = !1, setTimeout(() => {
|
|
2229
|
+
sn.value = !0, rn.value = [];
|
|
2230
|
+
}, 300)), c === "unload" && (rn.value.push(l), sn.value = !1, setTimeout(() => {
|
|
2231
|
+
sn.value = !0, rn.value = [];
|
|
2232
2232
|
}, 100));
|
|
2233
2233
|
});
|
|
2234
|
-
},
|
|
2235
|
-
{ value:
|
|
2234
|
+
}, Bt = "/", st = "/application", ds = [
|
|
2235
|
+
{ value: Bt, label: J("首页").value, path: Bt, fixed: !0 },
|
|
2236
2236
|
{ value: st, label: J("应用").value, path: st, fixed: !0 }
|
|
2237
2237
|
], kt = "/outerView", ps = "/placeholder", Pc = [
|
|
2238
2238
|
{ value: "0", label: J("主题设置").value },
|
|
@@ -2262,7 +2262,7 @@ const Cc = ["src", "entry", "name"], Ac = /* @__PURE__ */ pe({
|
|
|
2262
2262
|
excludeRoutes: e.excludeRoutes,
|
|
2263
2263
|
routeKeepAliveVisible: e.routeKeepAliveVisible
|
|
2264
2264
|
}));
|
|
2265
|
-
return (r, s) => (N(), Q(v(
|
|
2265
|
+
return (r, s) => (N(), Q(v(no), Xt({ "transition-config": n.value }, o.value), {
|
|
2266
2266
|
header: B(() => [
|
|
2267
2267
|
ke(r.$slots, "header", {}, () => [
|
|
2268
2268
|
q(v(jr))
|
|
@@ -2282,7 +2282,7 @@ const Cc = ["src", "entry", "name"], Ac = /* @__PURE__ */ pe({
|
|
|
2282
2282
|
/* FORWARDED */
|
|
2283
2283
|
}, 16, ["transition-config"]));
|
|
2284
2284
|
}
|
|
2285
|
-
}), Mc =
|
|
2285
|
+
}), Mc = Ai.get("watermark"), Rc = /* @__PURE__ */ pe({
|
|
2286
2286
|
__name: "index",
|
|
2287
2287
|
props: {
|
|
2288
2288
|
platformInitNextTick: {}
|
|
@@ -2311,26 +2311,26 @@ const Cc = ["src", "entry", "name"], Ac = /* @__PURE__ */ pe({
|
|
|
2311
2311
|
const _ = !!((d = n.value) != null && d.pageSwith);
|
|
2312
2312
|
if (_) {
|
|
2313
2313
|
s = [];
|
|
2314
|
-
const { name: L, phone: P } = await
|
|
2315
|
-
let
|
|
2316
|
-
if ((y = n.value) != null && y.nameSwith && L && (s.push(L),
|
|
2314
|
+
const { name: L, phone: P } = await xi();
|
|
2315
|
+
let A = "";
|
|
2316
|
+
if ((y = n.value) != null && y.nameSwith && L && (s.push(L), A = A + `${L} `), (w = n.value) != null && w.phoneSwith && P) {
|
|
2317
2317
|
const R = P.slice(-4);
|
|
2318
|
-
s.push(R),
|
|
2318
|
+
s.push(R), A = A + `${R} `;
|
|
2319
2319
|
}
|
|
2320
2320
|
if ((m = n.value) != null && m.textSwith && ((S = n.value) != null && S.text)) {
|
|
2321
2321
|
s.push(n.value.text);
|
|
2322
2322
|
const R = n.value.text.replaceAll(`
|
|
2323
2323
|
`, "<br/>");
|
|
2324
|
-
|
|
2324
|
+
A = A + `${R}`;
|
|
2325
2325
|
}
|
|
2326
2326
|
s.length && (s = s.join(" ").split(`
|
|
2327
|
-
`)), c.color = (I = n.value) != null && I.textColor ? n.value.textColor : "rgba(0,0,0,.15)", c.fontSize = (E = n.value) != null && E.textSize ? parseInt(n.value.textSize) : 16, l(
|
|
2327
|
+
`)), c.color = (I = n.value) != null && I.textColor ? n.value.textColor : "rgba(0,0,0,.15)", c.fontSize = (E = n.value) != null && E.textSize ? parseInt(n.value.textSize) : 16, l(A, c.fontSize);
|
|
2328
2328
|
}
|
|
2329
2329
|
return a(_), g;
|
|
2330
2330
|
};
|
|
2331
2331
|
u();
|
|
2332
|
-
const h =
|
|
2333
|
-
return
|
|
2332
|
+
const h = Zt(), p = C(!0);
|
|
2333
|
+
return ne(
|
|
2334
2334
|
() => h.meta,
|
|
2335
2335
|
(f) => {
|
|
2336
2336
|
const { showWatermark: g = !0 } = f;
|
|
@@ -2354,11 +2354,11 @@ const Cc = ["src", "entry", "name"], Ac = /* @__PURE__ */ pe({
|
|
|
2354
2354
|
/* FORWARDED */
|
|
2355
2355
|
}, 8, ["font", "content", "width", "height"]));
|
|
2356
2356
|
}
|
|
2357
|
-
}), Dc = /* @__PURE__ */ je(Rc, [["__scopeId", "data-v-61b46ed6"]]),
|
|
2357
|
+
}), Dc = /* @__PURE__ */ je(Rc, [["__scopeId", "data-v-61b46ed6"]]), xc = {
|
|
2358
2358
|
"--menu-tip-diaolg-content": "#212121",
|
|
2359
2359
|
"--menu-tip-diaolg-divide": "#d9d9d9",
|
|
2360
2360
|
"--menu-tip-diaolg-info": "#999999"
|
|
2361
|
-
},
|
|
2361
|
+
}, Oc = (t) => (xr("data-v-f9de08eb"), t = t(), Or(), t), jc = ["innerHTML"], Nc = /* @__PURE__ */ Oc(() => /* @__PURE__ */ H(
|
|
2362
2362
|
"div",
|
|
2363
2363
|
{ class: "divide" },
|
|
2364
2364
|
null,
|
|
@@ -2374,7 +2374,7 @@ const Cc = ["src", "entry", "name"], Ac = /* @__PURE__ */ pe({
|
|
|
2374
2374
|
},
|
|
2375
2375
|
setup(t) {
|
|
2376
2376
|
const e = C(!0);
|
|
2377
|
-
return (n, o) => (N(), Q(v(
|
|
2377
|
+
return (n, o) => (N(), Q(v(uo), {
|
|
2378
2378
|
modelValue: e.value,
|
|
2379
2379
|
"onUpdate:modelValue": o[0] || (o[0] = (r) => e.value = r),
|
|
2380
2380
|
type: "feedback",
|
|
@@ -2387,7 +2387,7 @@ const Cc = ["src", "entry", "name"], Ac = /* @__PURE__ */ pe({
|
|
|
2387
2387
|
}, {
|
|
2388
2388
|
footer: B(() => [
|
|
2389
2389
|
H("div", Uc, [
|
|
2390
|
-
q(v(
|
|
2390
|
+
q(v(Tt), {
|
|
2391
2391
|
btnType: "default",
|
|
2392
2392
|
size: "small",
|
|
2393
2393
|
onClick: n.closeCallback
|
|
@@ -2413,7 +2413,7 @@ const Cc = ["src", "entry", "name"], Ac = /* @__PURE__ */ pe({
|
|
|
2413
2413
|
(N(!0), X(
|
|
2414
2414
|
He,
|
|
2415
2415
|
null,
|
|
2416
|
-
|
|
2416
|
+
qt(n.desc, (r, s) => De((N(), X("div", {
|
|
2417
2417
|
key: s,
|
|
2418
2418
|
class: "desc-item"
|
|
2419
2419
|
}, [
|
|
@@ -2437,15 +2437,15 @@ const Cc = ["src", "entry", "name"], Ac = /* @__PURE__ */ pe({
|
|
|
2437
2437
|
/* STABLE */
|
|
2438
2438
|
}, 8, ["modelValue", "width", "height", "title", "onClosed"]));
|
|
2439
2439
|
}
|
|
2440
|
-
}), Vc = /* @__PURE__ */ je(Fc, [["__scopeId", "data-v-f9de08eb"]]),
|
|
2440
|
+
}), Vc = /* @__PURE__ */ je(Fc, [["__scopeId", "data-v-f9de08eb"]]), zt = ({ title: t = "", content: e = "", desc: n = [] }) => new Promise((o) => {
|
|
2441
2441
|
const r = document.createElement("div");
|
|
2442
2442
|
r.setAttribute("id", "entry-app-dialog"), document.body.appendChild(r);
|
|
2443
2443
|
const i = Ce(Vc, { title: t, content: e, desc: n, closeCallback: () => {
|
|
2444
|
-
|
|
2444
|
+
hn(null, r), document.body.removeChild(r), o(null);
|
|
2445
2445
|
} });
|
|
2446
|
-
|
|
2446
|
+
hn(i, r);
|
|
2447
2447
|
});
|
|
2448
|
-
ui(
|
|
2448
|
+
ui(xc);
|
|
2449
2449
|
const Hc = (t = {}) => {
|
|
2450
2450
|
sessionStorage.setItem("userInfo", JSON.stringify(t));
|
|
2451
2451
|
}, Bc = (t = {}) => {
|
|
@@ -2496,7 +2496,7 @@ const Hc = (t = {}) => {
|
|
|
2496
2496
|
} else
|
|
2497
2497
|
Object.assign(e, { [n.key]: n.value });
|
|
2498
2498
|
}), sessionStorage.setItem("subApps", JSON.stringify(e));
|
|
2499
|
-
},
|
|
2499
|
+
}, mo = () => {
|
|
2500
2500
|
ze([
|
|
2501
2501
|
{ key: "currentSubApp", value: {} },
|
|
2502
2502
|
{ key: "currentSubAppCode", value: "" },
|
|
@@ -2562,7 +2562,7 @@ const Hc = (t = {}) => {
|
|
|
2562
2562
|
}, Zc = (t) => {
|
|
2563
2563
|
sessionStorage.setItem("instance", JSON.stringify(t));
|
|
2564
2564
|
}, ms = () => {
|
|
2565
|
-
Jc(),
|
|
2565
|
+
Jc(), mo(), hs(), Qc(), Xc();
|
|
2566
2566
|
}, el = (t) => {
|
|
2567
2567
|
const e = JSON.parse(sessionStorage.getItem(t) || "{}");
|
|
2568
2568
|
if (e && JSON.stringify(e) !== "{}" && e != null && e.exitConfirmPages && e.exitConfirmPages.length) {
|
|
@@ -2570,7 +2570,7 @@ const Hc = (t = {}) => {
|
|
|
2570
2570
|
if (e.exitConfirmPages.includes(n) && !window.confirm("切换后已录入的数据将会丢失且不可恢复,确定切换?"))
|
|
2571
2571
|
throw new Error("取消切换");
|
|
2572
2572
|
}
|
|
2573
|
-
},
|
|
2573
|
+
}, pn = (t, e) => {
|
|
2574
2574
|
if (!e || !e.length) return;
|
|
2575
2575
|
const n = JSON.parse(sessionStorage.getItem(t) || "{}");
|
|
2576
2576
|
if (n && JSON.stringify(n) !== "{}" && n != null && n.closeTabPageConfirm && n.closeTabPageConfirm.length) {
|
|
@@ -2580,10 +2580,10 @@ const Hc = (t = {}) => {
|
|
|
2580
2580
|
if (!window.confirm(i)) throw new Error("取消关闭");
|
|
2581
2581
|
}
|
|
2582
2582
|
}
|
|
2583
|
-
},
|
|
2583
|
+
}, Gn = (t) => {
|
|
2584
2584
|
const e = new URL(t, location.origin);
|
|
2585
2585
|
return ["true", "1"].includes(e.searchParams.get("autoSetToken")) && (e.searchParams.append("access_token", ki()), e.searchParams.delete("autoSetToken")), e.toString();
|
|
2586
|
-
}, tl = "v1", nl = vt(`/api/personal-center/personal-server/${tl}`), ol = nl.get("/info"), rl = Br.get("/user-info"), sl =
|
|
2586
|
+
}, tl = "v1", nl = vt(`/api/personal-center/personal-server/${tl}`), ol = nl.get("/info"), rl = Br.get("/user-info"), sl = io.post("/tenant/page"), il = async () => {
|
|
2587
2587
|
const [t, e] = await ol().run({});
|
|
2588
2588
|
return t ? { personalConfig: null } : (Hc(e), { personalConfig: e });
|
|
2589
2589
|
}, al = async () => {
|
|
@@ -2591,13 +2591,13 @@ const Hc = (t = {}) => {
|
|
|
2591
2591
|
return t ? { tenantConfig: null } : (Bc(e), { tenantConfig: e });
|
|
2592
2592
|
}, cl = async () => {
|
|
2593
2593
|
const [t, e] = await sl().run({
|
|
2594
|
-
userId:
|
|
2594
|
+
userId: Sn().id,
|
|
2595
2595
|
pageSize: 20,
|
|
2596
2596
|
pageIndex: 1
|
|
2597
2597
|
});
|
|
2598
2598
|
if (t) return { tenantList: [] };
|
|
2599
2599
|
if (e.data && e.data.length) return { tenantList: e.data };
|
|
2600
|
-
}, ll =
|
|
2600
|
+
}, ll = ao.get("/permissionset/user-portal-menu"), ul = Ci.deviceManage.get("/instance/getLast"), dl = async () => {
|
|
2601
2601
|
const [t, e] = await ul().run(), n = { instanceInfo: e ?? null };
|
|
2602
2602
|
return Zc(n), n;
|
|
2603
2603
|
};
|
|
@@ -2607,7 +2607,7 @@ function pl() {
|
|
|
2607
2607
|
function vs(t, e) {
|
|
2608
2608
|
return t === e || t !== t && e !== e;
|
|
2609
2609
|
}
|
|
2610
|
-
function
|
|
2610
|
+
function Tn(t, e) {
|
|
2611
2611
|
for (var n = t.length; n--; )
|
|
2612
2612
|
if (vs(t[n][0], e))
|
|
2613
2613
|
return n;
|
|
@@ -2615,21 +2615,21 @@ function Cn(t, e) {
|
|
|
2615
2615
|
}
|
|
2616
2616
|
var fl = Array.prototype, hl = fl.splice;
|
|
2617
2617
|
function gl(t) {
|
|
2618
|
-
var e = this.__data__, n =
|
|
2618
|
+
var e = this.__data__, n = Tn(e, t);
|
|
2619
2619
|
if (n < 0)
|
|
2620
2620
|
return !1;
|
|
2621
2621
|
var o = e.length - 1;
|
|
2622
2622
|
return n == o ? e.pop() : hl.call(e, n, 1), --this.size, !0;
|
|
2623
2623
|
}
|
|
2624
2624
|
function ml(t) {
|
|
2625
|
-
var e = this.__data__, n =
|
|
2625
|
+
var e = this.__data__, n = Tn(e, t);
|
|
2626
2626
|
return n < 0 ? void 0 : e[n][1];
|
|
2627
2627
|
}
|
|
2628
2628
|
function vl(t) {
|
|
2629
|
-
return
|
|
2629
|
+
return Tn(this.__data__, t) > -1;
|
|
2630
2630
|
}
|
|
2631
2631
|
function yl(t, e) {
|
|
2632
|
-
var n = this.__data__, o =
|
|
2632
|
+
var n = this.__data__, o = Tn(n, t);
|
|
2633
2633
|
return o < 0 ? (++this.size, n.push([t, e])) : n[o][1] = e, this;
|
|
2634
2634
|
}
|
|
2635
2635
|
function tt(t) {
|
|
@@ -2657,41 +2657,41 @@ function wl(t) {
|
|
|
2657
2657
|
function Il(t) {
|
|
2658
2658
|
return this.__data__.has(t);
|
|
2659
2659
|
}
|
|
2660
|
-
var ys = typeof global == "object" && global && global.Object === Object && global, Sl = typeof self == "object" && self && self.Object === Object && self, Ke = ys || Sl || Function("return this")(), $t = Ke.Symbol, _s = Object.prototype, Cl = _s.hasOwnProperty,
|
|
2661
|
-
function
|
|
2662
|
-
var e = Cl.call(t,
|
|
2660
|
+
var ys = typeof global == "object" && global && global.Object === Object && global, Sl = typeof self == "object" && self && self.Object === Object && self, Ke = ys || Sl || Function("return this")(), $t = Ke.Symbol, _s = Object.prototype, Cl = _s.hasOwnProperty, Tl = _s.toString, Nt = $t ? $t.toStringTag : void 0;
|
|
2661
|
+
function Al(t) {
|
|
2662
|
+
var e = Cl.call(t, Nt), n = t[Nt];
|
|
2663
2663
|
try {
|
|
2664
|
-
t[
|
|
2664
|
+
t[Nt] = void 0;
|
|
2665
2665
|
var o = !0;
|
|
2666
2666
|
} catch {
|
|
2667
2667
|
}
|
|
2668
|
-
var r =
|
|
2669
|
-
return o && (e ? t[
|
|
2668
|
+
var r = Tl.call(t);
|
|
2669
|
+
return o && (e ? t[Nt] = n : delete t[Nt]), r;
|
|
2670
2670
|
}
|
|
2671
2671
|
var kl = Object.prototype, $l = kl.toString;
|
|
2672
2672
|
function El(t) {
|
|
2673
2673
|
return $l.call(t);
|
|
2674
2674
|
}
|
|
2675
2675
|
var Pl = "[object Null]", Ll = "[object Undefined]", Xo = $t ? $t.toStringTag : void 0;
|
|
2676
|
-
function
|
|
2677
|
-
return t == null ? t === void 0 ? Ll : Pl : Xo && Xo in Object(t) ?
|
|
2676
|
+
function en(t) {
|
|
2677
|
+
return t == null ? t === void 0 ? Ll : Pl : Xo && Xo in Object(t) ? Al(t) : El(t);
|
|
2678
2678
|
}
|
|
2679
|
-
function
|
|
2679
|
+
function tn(t) {
|
|
2680
2680
|
var e = typeof t;
|
|
2681
2681
|
return t != null && (e == "object" || e == "function");
|
|
2682
2682
|
}
|
|
2683
|
-
var Ml = "[object AsyncFunction]", Rl = "[object Function]", Dl = "[object GeneratorFunction]",
|
|
2683
|
+
var Ml = "[object AsyncFunction]", Rl = "[object Function]", Dl = "[object GeneratorFunction]", xl = "[object Proxy]";
|
|
2684
2684
|
function bs(t) {
|
|
2685
|
-
if (!
|
|
2685
|
+
if (!tn(t))
|
|
2686
2686
|
return !1;
|
|
2687
|
-
var e =
|
|
2688
|
-
return e == Rl || e == Dl || e == Ml || e ==
|
|
2687
|
+
var e = en(t);
|
|
2688
|
+
return e == Rl || e == Dl || e == Ml || e == xl;
|
|
2689
2689
|
}
|
|
2690
2690
|
var On = Ke["__core-js_shared__"], Zo = function() {
|
|
2691
2691
|
var t = /[^.]+$/.exec(On && On.keys && On.keys.IE_PROTO || "");
|
|
2692
2692
|
return t ? "Symbol(src)_1." + t : "";
|
|
2693
2693
|
}();
|
|
2694
|
-
function
|
|
2694
|
+
function Ol(t) {
|
|
2695
2695
|
return !!Zo && Zo in t;
|
|
2696
2696
|
}
|
|
2697
2697
|
var jl = Function.prototype, Nl = jl.toString;
|
|
@@ -2712,7 +2712,7 @@ var Ul = /[\\^$.*+?()[\]{}|]/g, Fl = /^\[object .+?Constructor\]$/, Vl = Functio
|
|
|
2712
2712
|
"^" + Bl.call(Wl).replace(Ul, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
2713
2713
|
);
|
|
2714
2714
|
function zl(t) {
|
|
2715
|
-
if (!
|
|
2715
|
+
if (!tn(t) || Ol(t))
|
|
2716
2716
|
return !1;
|
|
2717
2717
|
var e = bs(t) ? ql : Fl;
|
|
2718
2718
|
return e.test(yt(t));
|
|
@@ -2724,9 +2724,9 @@ function _t(t, e) {
|
|
|
2724
2724
|
var n = Kl(t, e);
|
|
2725
2725
|
return zl(n) ? n : void 0;
|
|
2726
2726
|
}
|
|
2727
|
-
var
|
|
2727
|
+
var Kt = _t(Ke, "Map"), Jt = _t(Object, "create");
|
|
2728
2728
|
function Jl() {
|
|
2729
|
-
this.__data__ =
|
|
2729
|
+
this.__data__ = Jt ? Jt(null) : {}, this.size = 0;
|
|
2730
2730
|
}
|
|
2731
2731
|
function Gl(t) {
|
|
2732
2732
|
var e = this.has(t) && delete this.__data__[t];
|
|
@@ -2735,7 +2735,7 @@ function Gl(t) {
|
|
|
2735
2735
|
var Ql = "__lodash_hash_undefined__", Yl = Object.prototype, Xl = Yl.hasOwnProperty;
|
|
2736
2736
|
function Zl(t) {
|
|
2737
2737
|
var e = this.__data__;
|
|
2738
|
-
if (
|
|
2738
|
+
if (Jt) {
|
|
2739
2739
|
var n = e[t];
|
|
2740
2740
|
return n === Ql ? void 0 : n;
|
|
2741
2741
|
}
|
|
@@ -2744,12 +2744,12 @@ function Zl(t) {
|
|
|
2744
2744
|
var eu = Object.prototype, tu = eu.hasOwnProperty;
|
|
2745
2745
|
function nu(t) {
|
|
2746
2746
|
var e = this.__data__;
|
|
2747
|
-
return
|
|
2747
|
+
return Jt ? e[t] !== void 0 : tu.call(e, t);
|
|
2748
2748
|
}
|
|
2749
2749
|
var ou = "__lodash_hash_undefined__";
|
|
2750
2750
|
function ru(t, e) {
|
|
2751
2751
|
var n = this.__data__;
|
|
2752
|
-
return this.size += this.has(t) ? 0 : 1, n[t] =
|
|
2752
|
+
return this.size += this.has(t) ? 0 : 1, n[t] = Jt && e === void 0 ? ou : e, this;
|
|
2753
2753
|
}
|
|
2754
2754
|
function ht(t) {
|
|
2755
2755
|
var e = -1, n = t == null ? 0 : t.length;
|
|
@@ -2766,7 +2766,7 @@ ht.prototype.set = ru;
|
|
|
2766
2766
|
function su() {
|
|
2767
2767
|
this.size = 0, this.__data__ = {
|
|
2768
2768
|
hash: new ht(),
|
|
2769
|
-
map: new (
|
|
2769
|
+
map: new (Kt || tt)(),
|
|
2770
2770
|
string: new ht()
|
|
2771
2771
|
};
|
|
2772
2772
|
}
|
|
@@ -2792,26 +2792,26 @@ function uu(t, e) {
|
|
|
2792
2792
|
var n = An(this, t), o = n.size;
|
|
2793
2793
|
return n.set(t, e), this.size += n.size == o ? 0 : 1, this;
|
|
2794
2794
|
}
|
|
2795
|
-
function
|
|
2795
|
+
function xt(t) {
|
|
2796
2796
|
var e = -1, n = t == null ? 0 : t.length;
|
|
2797
2797
|
for (this.clear(); ++e < n; ) {
|
|
2798
2798
|
var o = t[e];
|
|
2799
2799
|
this.set(o[0], o[1]);
|
|
2800
2800
|
}
|
|
2801
2801
|
}
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2802
|
+
xt.prototype.clear = su;
|
|
2803
|
+
xt.prototype.delete = au;
|
|
2804
|
+
xt.prototype.get = cu;
|
|
2805
|
+
xt.prototype.has = lu;
|
|
2806
|
+
xt.prototype.set = uu;
|
|
2807
2807
|
var du = 200;
|
|
2808
2808
|
function pu(t, e) {
|
|
2809
2809
|
var n = this.__data__;
|
|
2810
2810
|
if (n instanceof tt) {
|
|
2811
2811
|
var o = n.__data__;
|
|
2812
|
-
if (!
|
|
2812
|
+
if (!Kt || o.length < du - 1)
|
|
2813
2813
|
return o.push([t, e]), this.size = ++n.size, this;
|
|
2814
|
-
n = this.__data__ = new
|
|
2814
|
+
n = this.__data__ = new xt(o);
|
|
2815
2815
|
}
|
|
2816
2816
|
return n.set(t, e), this.size = n.size, this;
|
|
2817
2817
|
}
|
|
@@ -2849,7 +2849,7 @@ function Is(t, e, n) {
|
|
|
2849
2849
|
var o = t[e];
|
|
2850
2850
|
(!(gu.call(t, e) && vs(o, n)) || n === void 0 && !(e in t)) && ws(t, e, n);
|
|
2851
2851
|
}
|
|
2852
|
-
function
|
|
2852
|
+
function kn(t, e, n, o) {
|
|
2853
2853
|
var r = !n;
|
|
2854
2854
|
n || (n = {});
|
|
2855
2855
|
for (var s = -1, i = e.length; ++s < i; ) {
|
|
@@ -2863,60 +2863,60 @@ function mu(t, e) {
|
|
|
2863
2863
|
o[n] = e(n);
|
|
2864
2864
|
return o;
|
|
2865
2865
|
}
|
|
2866
|
-
function
|
|
2866
|
+
function nn(t) {
|
|
2867
2867
|
return t != null && typeof t == "object";
|
|
2868
2868
|
}
|
|
2869
2869
|
var vu = "[object Arguments]";
|
|
2870
2870
|
function tr(t) {
|
|
2871
|
-
return
|
|
2871
|
+
return nn(t) && en(t) == vu;
|
|
2872
2872
|
}
|
|
2873
2873
|
var Ss = Object.prototype, yu = Ss.hasOwnProperty, _u = Ss.propertyIsEnumerable, bu = tr(/* @__PURE__ */ function() {
|
|
2874
2874
|
return arguments;
|
|
2875
2875
|
}()) ? tr : function(t) {
|
|
2876
|
-
return
|
|
2877
|
-
},
|
|
2876
|
+
return nn(t) && yu.call(t, "callee") && !_u.call(t, "callee");
|
|
2877
|
+
}, vo = Array.isArray;
|
|
2878
2878
|
function wu() {
|
|
2879
2879
|
return !1;
|
|
2880
2880
|
}
|
|
2881
|
-
var Cs = typeof exports == "object" && exports && !exports.nodeType && exports, nr = Cs && typeof module == "object" && module && !module.nodeType && module, Iu = nr && nr.exports === Cs, or = Iu ? Ke.Buffer : void 0, Su = or ? or.isBuffer : void 0,
|
|
2882
|
-
function
|
|
2881
|
+
var Cs = typeof exports == "object" && exports && !exports.nodeType && exports, nr = Cs && typeof module == "object" && module && !module.nodeType && module, Iu = nr && nr.exports === Cs, or = Iu ? Ke.Buffer : void 0, Su = or ? or.isBuffer : void 0, Ts = Su || wu, Cu = 9007199254740991, Tu = /^(?:0|[1-9]\d*)$/;
|
|
2882
|
+
function Au(t, e) {
|
|
2883
2883
|
var n = typeof t;
|
|
2884
|
-
return e = e ?? Cu, !!e && (n == "number" || n != "symbol" &&
|
|
2884
|
+
return e = e ?? Cu, !!e && (n == "number" || n != "symbol" && Tu.test(t)) && t > -1 && t % 1 == 0 && t < e;
|
|
2885
2885
|
}
|
|
2886
2886
|
var ku = 9007199254740991;
|
|
2887
|
-
function
|
|
2887
|
+
function As(t) {
|
|
2888
2888
|
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= ku;
|
|
2889
2889
|
}
|
|
2890
|
-
var $u = "[object Arguments]", Eu = "[object Array]", Pu = "[object Boolean]", Lu = "[object Date]", Mu = "[object Error]", Ru = "[object Function]", Du = "[object Map]",
|
|
2890
|
+
var $u = "[object Arguments]", Eu = "[object Array]", Pu = "[object Boolean]", Lu = "[object Date]", Mu = "[object Error]", Ru = "[object Function]", Du = "[object Map]", xu = "[object Number]", Ou = "[object Object]", ju = "[object RegExp]", Nu = "[object Set]", Uu = "[object String]", Fu = "[object WeakMap]", Vu = "[object ArrayBuffer]", Hu = "[object DataView]", Bu = "[object Float32Array]", Wu = "[object Float64Array]", qu = "[object Int8Array]", zu = "[object Int16Array]", Ku = "[object Int32Array]", Ju = "[object Uint8Array]", Gu = "[object Uint8ClampedArray]", Qu = "[object Uint16Array]", Yu = "[object Uint32Array]", ie = {};
|
|
2891
2891
|
ie[Bu] = ie[Wu] = ie[qu] = ie[zu] = ie[Ku] = ie[Ju] = ie[Gu] = ie[Qu] = ie[Yu] = !0;
|
|
2892
|
-
ie[$u] = ie[Eu] = ie[Vu] = ie[Pu] = ie[Hu] = ie[Lu] = ie[Mu] = ie[Ru] = ie[Du] = ie[
|
|
2892
|
+
ie[$u] = ie[Eu] = ie[Vu] = ie[Pu] = ie[Hu] = ie[Lu] = ie[Mu] = ie[Ru] = ie[Du] = ie[xu] = ie[Ou] = ie[ju] = ie[Nu] = ie[Uu] = ie[Fu] = !1;
|
|
2893
2893
|
function Xu(t) {
|
|
2894
|
-
return
|
|
2894
|
+
return nn(t) && As(t.length) && !!ie[en(t)];
|
|
2895
2895
|
}
|
|
2896
|
-
function
|
|
2896
|
+
function yo(t) {
|
|
2897
2897
|
return function(e) {
|
|
2898
2898
|
return t(e);
|
|
2899
2899
|
};
|
|
2900
2900
|
}
|
|
2901
|
-
var ks = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
2901
|
+
var ks = typeof exports == "object" && exports && !exports.nodeType && exports, Wt = ks && typeof module == "object" && module && !module.nodeType && module, Zu = Wt && Wt.exports === ks, jn = Zu && ys.process, Et = function() {
|
|
2902
2902
|
try {
|
|
2903
|
-
var t =
|
|
2904
|
-
return t ||
|
|
2903
|
+
var t = Wt && Wt.require && Wt.require("util").types;
|
|
2904
|
+
return t || jn && jn.binding && jn.binding("util");
|
|
2905
2905
|
} catch {
|
|
2906
2906
|
}
|
|
2907
|
-
}(), rr = Et && Et.isTypedArray, ed = rr ?
|
|
2907
|
+
}(), rr = Et && Et.isTypedArray, ed = rr ? yo(rr) : Xu, td = Object.prototype, nd = td.hasOwnProperty;
|
|
2908
2908
|
function $s(t, e) {
|
|
2909
|
-
var n =
|
|
2909
|
+
var n = vo(t), o = !n && bu(t), r = !n && !o && Ts(t), s = !n && !o && !r && ed(t), i = n || o || r || s, c = i ? mu(t.length, String) : [], l = c.length;
|
|
2910
2910
|
for (var a in t)
|
|
2911
2911
|
(e || nd.call(t, a)) && !(i && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
2912
2912
|
(a == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
2913
2913
|
r && (a == "offset" || a == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
2914
2914
|
s && (a == "buffer" || a == "byteLength" || a == "byteOffset") || // Skip index properties.
|
|
2915
|
-
|
|
2915
|
+
Au(a, l))) && c.push(a);
|
|
2916
2916
|
return c;
|
|
2917
2917
|
}
|
|
2918
2918
|
var od = Object.prototype;
|
|
2919
|
-
function
|
|
2919
|
+
function _o(t) {
|
|
2920
2920
|
var e = t && t.constructor, n = typeof e == "function" && e.prototype || od;
|
|
2921
2921
|
return t === n;
|
|
2922
2922
|
}
|
|
@@ -2927,7 +2927,7 @@ function Es(t, e) {
|
|
|
2927
2927
|
}
|
|
2928
2928
|
var rd = Es(Object.keys, Object), sd = Object.prototype, id = sd.hasOwnProperty;
|
|
2929
2929
|
function ad(t) {
|
|
2930
|
-
if (!
|
|
2930
|
+
if (!_o(t))
|
|
2931
2931
|
return rd(t);
|
|
2932
2932
|
var e = [];
|
|
2933
2933
|
for (var n in Object(t))
|
|
@@ -2935,13 +2935,13 @@ function ad(t) {
|
|
|
2935
2935
|
return e;
|
|
2936
2936
|
}
|
|
2937
2937
|
function Ps(t) {
|
|
2938
|
-
return t != null &&
|
|
2938
|
+
return t != null && As(t.length) && !bs(t);
|
|
2939
2939
|
}
|
|
2940
|
-
function
|
|
2940
|
+
function bo(t) {
|
|
2941
2941
|
return Ps(t) ? $s(t) : ad(t);
|
|
2942
2942
|
}
|
|
2943
2943
|
function cd(t, e) {
|
|
2944
|
-
return t &&
|
|
2944
|
+
return t && kn(e, bo(e), t);
|
|
2945
2945
|
}
|
|
2946
2946
|
function ld(t) {
|
|
2947
2947
|
var e = [];
|
|
@@ -2952,18 +2952,18 @@ function ld(t) {
|
|
|
2952
2952
|
}
|
|
2953
2953
|
var ud = Object.prototype, dd = ud.hasOwnProperty;
|
|
2954
2954
|
function pd(t) {
|
|
2955
|
-
if (!
|
|
2955
|
+
if (!tn(t))
|
|
2956
2956
|
return ld(t);
|
|
2957
|
-
var e =
|
|
2957
|
+
var e = _o(t), n = [];
|
|
2958
2958
|
for (var o in t)
|
|
2959
2959
|
o == "constructor" && (e || !dd.call(t, o)) || n.push(o);
|
|
2960
2960
|
return n;
|
|
2961
2961
|
}
|
|
2962
|
-
function
|
|
2962
|
+
function wo(t) {
|
|
2963
2963
|
return Ps(t) ? $s(t, !0) : pd(t);
|
|
2964
2964
|
}
|
|
2965
2965
|
function fd(t, e) {
|
|
2966
|
-
return t &&
|
|
2966
|
+
return t && kn(e, wo(e), t);
|
|
2967
2967
|
}
|
|
2968
2968
|
var Ls = typeof exports == "object" && exports && !exports.nodeType && exports, sr = Ls && typeof module == "object" && module && !module.nodeType && module, hd = sr && sr.exports === Ls, ir = hd ? Ke.Buffer : void 0, ar = ir ? ir.allocUnsafe : void 0;
|
|
2969
2969
|
function gd(t, e) {
|
|
@@ -2988,43 +2988,43 @@ function vd(t, e) {
|
|
|
2988
2988
|
function Ms() {
|
|
2989
2989
|
return [];
|
|
2990
2990
|
}
|
|
2991
|
-
var yd = Object.prototype, _d = yd.propertyIsEnumerable, cr = Object.getOwnPropertySymbols,
|
|
2991
|
+
var yd = Object.prototype, _d = yd.propertyIsEnumerable, cr = Object.getOwnPropertySymbols, Io = cr ? function(t) {
|
|
2992
2992
|
return t == null ? [] : (t = Object(t), vd(cr(t), function(e) {
|
|
2993
2993
|
return _d.call(t, e);
|
|
2994
2994
|
}));
|
|
2995
2995
|
} : Ms;
|
|
2996
2996
|
function bd(t, e) {
|
|
2997
|
-
return
|
|
2997
|
+
return kn(t, Io(t), e);
|
|
2998
2998
|
}
|
|
2999
2999
|
function Rs(t, e) {
|
|
3000
3000
|
for (var n = -1, o = e.length, r = t.length; ++n < o; )
|
|
3001
3001
|
t[r + n] = e[n];
|
|
3002
3002
|
return t;
|
|
3003
3003
|
}
|
|
3004
|
-
var Ds = Es(Object.getPrototypeOf, Object), wd = Object.getOwnPropertySymbols,
|
|
3004
|
+
var Ds = Es(Object.getPrototypeOf, Object), wd = Object.getOwnPropertySymbols, xs = wd ? function(t) {
|
|
3005
3005
|
for (var e = []; t; )
|
|
3006
|
-
Rs(e,
|
|
3006
|
+
Rs(e, Io(t)), t = Ds(t);
|
|
3007
3007
|
return e;
|
|
3008
3008
|
} : Ms;
|
|
3009
3009
|
function Id(t, e) {
|
|
3010
|
-
return
|
|
3010
|
+
return kn(t, xs(t), e);
|
|
3011
3011
|
}
|
|
3012
|
-
function
|
|
3012
|
+
function Os(t, e, n) {
|
|
3013
3013
|
var o = e(t);
|
|
3014
|
-
return
|
|
3014
|
+
return vo(t) ? o : Rs(o, n(t));
|
|
3015
3015
|
}
|
|
3016
3016
|
function Sd(t) {
|
|
3017
|
-
return
|
|
3017
|
+
return Os(t, bo, Io);
|
|
3018
3018
|
}
|
|
3019
3019
|
function Cd(t) {
|
|
3020
|
-
return
|
|
3020
|
+
return Os(t, wo, xs);
|
|
3021
3021
|
}
|
|
3022
|
-
var
|
|
3023
|
-
(
|
|
3024
|
-
var e =
|
|
3022
|
+
var Qn = _t(Ke, "DataView"), Yn = _t(Ke, "Promise"), Xn = _t(Ke, "Set"), Zn = _t(Ke, "WeakMap"), lr = "[object Map]", Td = "[object Object]", ur = "[object Promise]", dr = "[object Set]", pr = "[object WeakMap]", fr = "[object DataView]", Ad = yt(Qn), kd = yt(Kt), $d = yt(Yn), Ed = yt(Xn), Pd = yt(Zn), Xe = en;
|
|
3023
|
+
(Qn && Xe(new Qn(new ArrayBuffer(1))) != fr || Kt && Xe(new Kt()) != lr || Yn && Xe(Yn.resolve()) != ur || Xn && Xe(new Xn()) != dr || Zn && Xe(new Zn()) != pr) && (Xe = function(t) {
|
|
3024
|
+
var e = en(t), n = e == Td ? t.constructor : void 0, o = n ? yt(n) : "";
|
|
3025
3025
|
if (o)
|
|
3026
3026
|
switch (o) {
|
|
3027
|
-
case
|
|
3027
|
+
case Ad:
|
|
3028
3028
|
return fr;
|
|
3029
3029
|
case kd:
|
|
3030
3030
|
return lr;
|
|
@@ -3043,17 +3043,17 @@ function Rd(t) {
|
|
|
3043
3043
|
return e && typeof t[0] == "string" && Md.call(t, "index") && (n.index = t.index, n.input = t.input), n;
|
|
3044
3044
|
}
|
|
3045
3045
|
var hr = Ke.Uint8Array;
|
|
3046
|
-
function
|
|
3046
|
+
function So(t) {
|
|
3047
3047
|
var e = new t.constructor(t.byteLength);
|
|
3048
3048
|
return new hr(e).set(new hr(t)), e;
|
|
3049
3049
|
}
|
|
3050
3050
|
function Dd(t, e) {
|
|
3051
|
-
var n = e ?
|
|
3051
|
+
var n = e ? So(t.buffer) : t.buffer;
|
|
3052
3052
|
return new t.constructor(n, t.byteOffset, t.byteLength);
|
|
3053
3053
|
}
|
|
3054
|
-
var
|
|
3055
|
-
function
|
|
3056
|
-
var e = new t.constructor(t.source,
|
|
3054
|
+
var xd = /\w*$/;
|
|
3055
|
+
function Od(t) {
|
|
3056
|
+
var e = new t.constructor(t.source, xd.exec(t));
|
|
3057
3057
|
return e.lastIndex = t.lastIndex, e;
|
|
3058
3058
|
}
|
|
3059
3059
|
var gr = $t ? $t.prototype : void 0, mr = gr ? gr.valueOf : void 0;
|
|
@@ -3061,7 +3061,7 @@ function jd(t) {
|
|
|
3061
3061
|
return mr ? Object(mr.call(t)) : {};
|
|
3062
3062
|
}
|
|
3063
3063
|
function Nd(t, e) {
|
|
3064
|
-
var n = e ?
|
|
3064
|
+
var n = e ? So(t.buffer) : t.buffer;
|
|
3065
3065
|
return new t.constructor(n, t.byteOffset, t.length);
|
|
3066
3066
|
}
|
|
3067
3067
|
var Ud = "[object Boolean]", Fd = "[object Date]", Vd = "[object Map]", Hd = "[object Number]", Bd = "[object RegExp]", Wd = "[object Set]", qd = "[object String]", zd = "[object Symbol]", Kd = "[object ArrayBuffer]", Jd = "[object DataView]", Gd = "[object Float32Array]", Qd = "[object Float64Array]", Yd = "[object Int8Array]", Xd = "[object Int16Array]", Zd = "[object Int32Array]", ep = "[object Uint8Array]", tp = "[object Uint8ClampedArray]", np = "[object Uint16Array]", op = "[object Uint32Array]";
|
|
@@ -3069,7 +3069,7 @@ function rp(t, e, n) {
|
|
|
3069
3069
|
var o = t.constructor;
|
|
3070
3070
|
switch (e) {
|
|
3071
3071
|
case Kd:
|
|
3072
|
-
return
|
|
3072
|
+
return So(t);
|
|
3073
3073
|
case Ud:
|
|
3074
3074
|
case Fd:
|
|
3075
3075
|
return new o(+t);
|
|
@@ -3091,7 +3091,7 @@ function rp(t, e, n) {
|
|
|
3091
3091
|
case qd:
|
|
3092
3092
|
return new o(t);
|
|
3093
3093
|
case Bd:
|
|
3094
|
-
return
|
|
3094
|
+
return Od(t);
|
|
3095
3095
|
case Wd:
|
|
3096
3096
|
return new o();
|
|
3097
3097
|
case zd:
|
|
@@ -3102,7 +3102,7 @@ var vr = Object.create, sp = /* @__PURE__ */ function() {
|
|
|
3102
3102
|
function t() {
|
|
3103
3103
|
}
|
|
3104
3104
|
return function(e) {
|
|
3105
|
-
if (!
|
|
3105
|
+
if (!tn(e))
|
|
3106
3106
|
return {};
|
|
3107
3107
|
if (vr)
|
|
3108
3108
|
return vr(e);
|
|
@@ -3112,38 +3112,38 @@ var vr = Object.create, sp = /* @__PURE__ */ function() {
|
|
|
3112
3112
|
};
|
|
3113
3113
|
}();
|
|
3114
3114
|
function ip(t) {
|
|
3115
|
-
return typeof t.constructor == "function" && !
|
|
3115
|
+
return typeof t.constructor == "function" && !_o(t) ? sp(Ds(t)) : {};
|
|
3116
3116
|
}
|
|
3117
3117
|
var ap = "[object Map]";
|
|
3118
3118
|
function cp(t) {
|
|
3119
|
-
return
|
|
3119
|
+
return nn(t) && Xe(t) == ap;
|
|
3120
3120
|
}
|
|
3121
|
-
var yr = Et && Et.isMap, lp = yr ?
|
|
3121
|
+
var yr = Et && Et.isMap, lp = yr ? yo(yr) : cp, up = "[object Set]";
|
|
3122
3122
|
function dp(t) {
|
|
3123
|
-
return
|
|
3123
|
+
return nn(t) && Xe(t) == up;
|
|
3124
3124
|
}
|
|
3125
|
-
var _r = Et && Et.isSet, pp = _r ?
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
function
|
|
3125
|
+
var _r = Et && Et.isSet, pp = _r ? yo(_r) : dp, fp = 1, hp = 2, gp = 4, js = "[object Arguments]", mp = "[object Array]", vp = "[object Boolean]", yp = "[object Date]", _p = "[object Error]", Ns = "[object Function]", bp = "[object GeneratorFunction]", wp = "[object Map]", Ip = "[object Number]", Us = "[object Object]", Sp = "[object RegExp]", Cp = "[object Set]", Tp = "[object String]", Ap = "[object Symbol]", kp = "[object WeakMap]", $p = "[object ArrayBuffer]", Ep = "[object DataView]", Pp = "[object Float32Array]", Lp = "[object Float64Array]", Mp = "[object Int8Array]", Rp = "[object Int16Array]", Dp = "[object Int32Array]", xp = "[object Uint8Array]", Op = "[object Uint8ClampedArray]", jp = "[object Uint16Array]", Np = "[object Uint32Array]", oe = {};
|
|
3126
|
+
oe[js] = oe[mp] = oe[$p] = oe[Ep] = oe[vp] = oe[yp] = oe[Pp] = oe[Lp] = oe[Mp] = oe[Rp] = oe[Dp] = oe[wp] = oe[Ip] = oe[Us] = oe[Sp] = oe[Cp] = oe[Tp] = oe[Ap] = oe[xp] = oe[Op] = oe[jp] = oe[Np] = !0;
|
|
3127
|
+
oe[_p] = oe[Ns] = oe[kp] = !1;
|
|
3128
|
+
function fn(t, e, n, o, r, s) {
|
|
3129
3129
|
var i, c = e & fp, l = e & hp, a = e & gp;
|
|
3130
3130
|
if (i !== void 0)
|
|
3131
3131
|
return i;
|
|
3132
|
-
if (!
|
|
3132
|
+
if (!tn(t))
|
|
3133
3133
|
return t;
|
|
3134
|
-
var u =
|
|
3134
|
+
var u = vo(t);
|
|
3135
3135
|
if (u) {
|
|
3136
3136
|
if (i = Rd(t), !c)
|
|
3137
3137
|
return md(t, i);
|
|
3138
3138
|
} else {
|
|
3139
3139
|
var h = Xe(t), p = h == Ns || h == bp;
|
|
3140
|
-
if (
|
|
3140
|
+
if (Ts(t))
|
|
3141
3141
|
return gd(t, c);
|
|
3142
3142
|
if (h == Us || h == js || p && !r) {
|
|
3143
3143
|
if (i = l || p ? {} : ip(t), !c)
|
|
3144
3144
|
return l ? Id(t, fd(i, t)) : bd(t, cd(i, t));
|
|
3145
3145
|
} else {
|
|
3146
|
-
if (!
|
|
3146
|
+
if (!oe[h])
|
|
3147
3147
|
return r ? t : {};
|
|
3148
3148
|
i = rp(t, h, c);
|
|
3149
3149
|
}
|
|
@@ -3153,18 +3153,18 @@ function pn(t, e, n, o, r, s) {
|
|
|
3153
3153
|
if (f)
|
|
3154
3154
|
return f;
|
|
3155
3155
|
s.set(t, i), pp(t) ? t.forEach(function(d) {
|
|
3156
|
-
i.add(
|
|
3156
|
+
i.add(fn(d, e, n, d, t, s));
|
|
3157
3157
|
}) : lp(t) && t.forEach(function(d, y) {
|
|
3158
|
-
i.set(y,
|
|
3158
|
+
i.set(y, fn(d, e, n, y, t, s));
|
|
3159
3159
|
});
|
|
3160
|
-
var g = a ? l ? Cd : Sd : l ?
|
|
3160
|
+
var g = a ? l ? Cd : Sd : l ? wo : bo, _ = u ? void 0 : g(t);
|
|
3161
3161
|
return fu(_ || t, function(d, y) {
|
|
3162
|
-
_ && (y = d, d = t[y]), Is(i, y,
|
|
3162
|
+
_ && (y = d, d = t[y]), Is(i, y, fn(d, e, n, y, t, s));
|
|
3163
3163
|
}), i;
|
|
3164
3164
|
}
|
|
3165
3165
|
var Up = 1, Fp = 4;
|
|
3166
|
-
function
|
|
3167
|
-
return
|
|
3166
|
+
function Gt(t) {
|
|
3167
|
+
return fn(t, Up | Fp);
|
|
3168
3168
|
}
|
|
3169
3169
|
var Vp = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3170
3170
|
function Hp(t) {
|
|
@@ -3179,15 +3179,15 @@ var Fs = { exports: {} };
|
|
|
3179
3179
|
var D = ["th", "st", "nd", "rd"], M = U % 100;
|
|
3180
3180
|
return "[" + U + (D[(M - 20) % 10] || D[M] || D[0]) + "]";
|
|
3181
3181
|
} }, m = function(U, D, M) {
|
|
3182
|
-
var
|
|
3183
|
-
return !
|
|
3182
|
+
var O = String(U);
|
|
3183
|
+
return !O || O.length >= D ? U : "" + Array(D + 1 - O.length).join(M) + U;
|
|
3184
3184
|
}, S = { s: m, z: function(U) {
|
|
3185
|
-
var D = -U.utcOffset(), M = Math.abs(D),
|
|
3186
|
-
return (D <= 0 ? "+" : "-") + m(
|
|
3185
|
+
var D = -U.utcOffset(), M = Math.abs(D), O = Math.floor(M / 60), k = M % 60;
|
|
3186
|
+
return (D <= 0 ? "+" : "-") + m(O, 2, "0") + ":" + m(k, 2, "0");
|
|
3187
3187
|
}, m: function U(D, M) {
|
|
3188
3188
|
if (D.date() < M.date()) return -U(M, D);
|
|
3189
|
-
var
|
|
3190
|
-
return +(-(
|
|
3189
|
+
var O = 12 * (M.year() - D.year()) + (M.month() - D.month()), k = D.clone().add(O, h), F = M - k < 0, z = D.clone().add(O + (F ? -1 : 1), h);
|
|
3190
|
+
return +(-(O + (M - k) / (F ? k - z : z - k)) || 0);
|
|
3191
3191
|
}, a: function(U) {
|
|
3192
3192
|
return U < 0 ? Math.ceil(U) || 0 : Math.floor(U);
|
|
3193
3193
|
}, p: function(U) {
|
|
@@ -3198,7 +3198,7 @@ var Fs = { exports: {} };
|
|
|
3198
3198
|
E[I] = w;
|
|
3199
3199
|
var L = "$isDayjsObject", P = function(U) {
|
|
3200
3200
|
return U instanceof Y || !(!U || !U[L]);
|
|
3201
|
-
},
|
|
3201
|
+
}, A = function U(D, M, O) {
|
|
3202
3202
|
var k;
|
|
3203
3203
|
if (!D) return I;
|
|
3204
3204
|
if (typeof D == "string") {
|
|
@@ -3207,34 +3207,34 @@ var Fs = { exports: {} };
|
|
|
3207
3207
|
var z = D.split("-");
|
|
3208
3208
|
if (!k && z.length > 1) return U(z[0]);
|
|
3209
3209
|
} else {
|
|
3210
|
-
var
|
|
3211
|
-
E[
|
|
3210
|
+
var te = D.name;
|
|
3211
|
+
E[te] = D, k = te;
|
|
3212
3212
|
}
|
|
3213
|
-
return !
|
|
3213
|
+
return !O && k && (I = k), k || !O && I;
|
|
3214
3214
|
}, R = function(U, D) {
|
|
3215
3215
|
if (P(U)) return U.clone();
|
|
3216
3216
|
var M = typeof D == "object" ? D : {};
|
|
3217
3217
|
return M.date = U, M.args = arguments, new Y(M);
|
|
3218
3218
|
}, $ = S;
|
|
3219
|
-
$.l =
|
|
3219
|
+
$.l = A, $.i = P, $.w = function(U, D) {
|
|
3220
3220
|
return R(U, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
|
|
3221
3221
|
};
|
|
3222
3222
|
var Y = function() {
|
|
3223
3223
|
function U(M) {
|
|
3224
|
-
this.$L =
|
|
3224
|
+
this.$L = A(M.locale, null, !0), this.parse(M), this.$x = this.$x || M.x || {}, this[L] = !0;
|
|
3225
3225
|
}
|
|
3226
3226
|
var D = U.prototype;
|
|
3227
3227
|
return D.parse = function(M) {
|
|
3228
|
-
this.$d = function(
|
|
3229
|
-
var k =
|
|
3228
|
+
this.$d = function(O) {
|
|
3229
|
+
var k = O.date, F = O.utc;
|
|
3230
3230
|
if (k === null) return /* @__PURE__ */ new Date(NaN);
|
|
3231
3231
|
if ($.u(k)) return /* @__PURE__ */ new Date();
|
|
3232
3232
|
if (k instanceof Date) return new Date(k);
|
|
3233
3233
|
if (typeof k == "string" && !/Z$/i.test(k)) {
|
|
3234
3234
|
var z = k.match(d);
|
|
3235
3235
|
if (z) {
|
|
3236
|
-
var
|
|
3237
|
-
return F ? new Date(Date.UTC(z[1],
|
|
3236
|
+
var te = z[2] - 1 || 0, ce = (z[7] || "0").substring(0, 3);
|
|
3237
|
+
return F ? new Date(Date.UTC(z[1], te, z[3] || 1, z[4] || 0, z[5] || 0, z[6] || 0, ce)) : new Date(z[1], te, z[3] || 1, z[4] || 0, z[5] || 0, z[6] || 0, ce);
|
|
3238
3238
|
}
|
|
3239
3239
|
}
|
|
3240
3240
|
return new Date(k);
|
|
@@ -3246,21 +3246,21 @@ var Fs = { exports: {} };
|
|
|
3246
3246
|
return $;
|
|
3247
3247
|
}, D.isValid = function() {
|
|
3248
3248
|
return this.$d.toString() !== _;
|
|
3249
|
-
}, D.isSame = function(M,
|
|
3249
|
+
}, D.isSame = function(M, O) {
|
|
3250
3250
|
var k = R(M);
|
|
3251
|
-
return this.startOf(
|
|
3252
|
-
}, D.isAfter = function(M,
|
|
3253
|
-
return R(M) < this.startOf(
|
|
3254
|
-
}, D.isBefore = function(M,
|
|
3255
|
-
return this.endOf(
|
|
3256
|
-
}, D.$g = function(M,
|
|
3257
|
-
return $.u(M) ? this[
|
|
3251
|
+
return this.startOf(O) <= k && k <= this.endOf(O);
|
|
3252
|
+
}, D.isAfter = function(M, O) {
|
|
3253
|
+
return R(M) < this.startOf(O);
|
|
3254
|
+
}, D.isBefore = function(M, O) {
|
|
3255
|
+
return this.endOf(O) < R(M);
|
|
3256
|
+
}, D.$g = function(M, O, k) {
|
|
3257
|
+
return $.u(M) ? this[O] : this.set(k, M);
|
|
3258
3258
|
}, D.unix = function() {
|
|
3259
3259
|
return Math.floor(this.valueOf() / 1e3);
|
|
3260
3260
|
}, D.valueOf = function() {
|
|
3261
3261
|
return this.$d.getTime();
|
|
3262
|
-
}, D.startOf = function(M,
|
|
3263
|
-
var k = this, F = !!$.u(
|
|
3262
|
+
}, D.startOf = function(M, O) {
|
|
3263
|
+
var k = this, F = !!$.u(O) || O, z = $.p(M), te = function(Ge, Ie) {
|
|
3264
3264
|
var Re = $.w(k.$u ? Date.UTC(k.$y, Ie, Ge) : new Date(k.$y, Ie, Ge), k);
|
|
3265
3265
|
return F ? Re : Re.endOf(a);
|
|
3266
3266
|
}, ce = function(Ge, Ie) {
|
|
@@ -3268,12 +3268,12 @@ var Fs = { exports: {} };
|
|
|
3268
3268
|
}, fe = this.$W, me = this.$M, $e = this.$D, nt = "set" + (this.$u ? "UTC" : "");
|
|
3269
3269
|
switch (z) {
|
|
3270
3270
|
case f:
|
|
3271
|
-
return F ?
|
|
3271
|
+
return F ? te(1, 0) : te(31, 11);
|
|
3272
3272
|
case h:
|
|
3273
|
-
return F ?
|
|
3273
|
+
return F ? te(1, me) : te(0, me + 1);
|
|
3274
3274
|
case u:
|
|
3275
3275
|
var Je = this.$locale().weekStart || 0, ot = (fe < Je ? fe + 7 : fe) - Je;
|
|
3276
|
-
return
|
|
3276
|
+
return te(F ? $e - ot : $e + (6 - ot), me);
|
|
3277
3277
|
case a:
|
|
3278
3278
|
case g:
|
|
3279
3279
|
return ce(nt + "Hours", 0);
|
|
@@ -3288,50 +3288,50 @@ var Fs = { exports: {} };
|
|
|
3288
3288
|
}
|
|
3289
3289
|
}, D.endOf = function(M) {
|
|
3290
3290
|
return this.startOf(M, !1);
|
|
3291
|
-
}, D.$set = function(M,
|
|
3292
|
-
var k, F = $.p(M), z = "set" + (this.$u ? "UTC" : ""),
|
|
3291
|
+
}, D.$set = function(M, O) {
|
|
3292
|
+
var k, F = $.p(M), z = "set" + (this.$u ? "UTC" : ""), te = (k = {}, k[a] = z + "Date", k[g] = z + "Date", k[h] = z + "Month", k[f] = z + "FullYear", k[l] = z + "Hours", k[c] = z + "Minutes", k[i] = z + "Seconds", k[s] = z + "Milliseconds", k)[F], ce = F === a ? this.$D + (O - this.$W) : O;
|
|
3293
3293
|
if (F === h || F === f) {
|
|
3294
3294
|
var fe = this.clone().set(g, 1);
|
|
3295
|
-
fe.$d[
|
|
3296
|
-
} else
|
|
3295
|
+
fe.$d[te](ce), fe.init(), this.$d = fe.set(g, Math.min(this.$D, fe.daysInMonth())).$d;
|
|
3296
|
+
} else te && this.$d[te](ce);
|
|
3297
3297
|
return this.init(), this;
|
|
3298
|
-
}, D.set = function(M,
|
|
3299
|
-
return this.clone().$set(M,
|
|
3298
|
+
}, D.set = function(M, O) {
|
|
3299
|
+
return this.clone().$set(M, O);
|
|
3300
3300
|
}, D.get = function(M) {
|
|
3301
3301
|
return this[$.p(M)]();
|
|
3302
|
-
}, D.add = function(M,
|
|
3302
|
+
}, D.add = function(M, O) {
|
|
3303
3303
|
var k, F = this;
|
|
3304
3304
|
M = Number(M);
|
|
3305
|
-
var z = $.p(
|
|
3305
|
+
var z = $.p(O), te = function(me) {
|
|
3306
3306
|
var $e = R(F);
|
|
3307
3307
|
return $.w($e.date($e.date() + Math.round(me * M)), F);
|
|
3308
3308
|
};
|
|
3309
3309
|
if (z === h) return this.set(h, this.$M + M);
|
|
3310
3310
|
if (z === f) return this.set(f, this.$y + M);
|
|
3311
|
-
if (z === a) return
|
|
3312
|
-
if (z === u) return
|
|
3311
|
+
if (z === a) return te(1);
|
|
3312
|
+
if (z === u) return te(7);
|
|
3313
3313
|
var ce = (k = {}, k[c] = o, k[l] = r, k[i] = n, k)[z] || 1, fe = this.$d.getTime() + M * ce;
|
|
3314
3314
|
return $.w(fe, this);
|
|
3315
|
-
}, D.subtract = function(M,
|
|
3316
|
-
return this.add(-1 * M,
|
|
3315
|
+
}, D.subtract = function(M, O) {
|
|
3316
|
+
return this.add(-1 * M, O);
|
|
3317
3317
|
}, D.format = function(M) {
|
|
3318
|
-
var
|
|
3318
|
+
var O = this, k = this.$locale();
|
|
3319
3319
|
if (!this.isValid()) return k.invalidDate || _;
|
|
3320
|
-
var F = M || "YYYY-MM-DDTHH:mm:ssZ", z = $.z(this),
|
|
3321
|
-
return Ie && (Ie[Re] || Ie(
|
|
3320
|
+
var F = M || "YYYY-MM-DDTHH:mm:ssZ", z = $.z(this), te = this.$H, ce = this.$m, fe = this.$M, me = k.weekdays, $e = k.months, nt = k.meridiem, Je = function(Ie, Re, j, T) {
|
|
3321
|
+
return Ie && (Ie[Re] || Ie(O, F)) || j[Re].slice(0, T);
|
|
3322
3322
|
}, ot = function(Ie) {
|
|
3323
|
-
return $.s(
|
|
3323
|
+
return $.s(te % 12 || 12, Ie, "0");
|
|
3324
3324
|
}, Ge = nt || function(Ie, Re, j) {
|
|
3325
|
-
var
|
|
3326
|
-
return j ?
|
|
3325
|
+
var T = Ie < 12 ? "AM" : "PM";
|
|
3326
|
+
return j ? T.toLowerCase() : T;
|
|
3327
3327
|
};
|
|
3328
3328
|
return F.replace(y, function(Ie, Re) {
|
|
3329
3329
|
return Re || function(j) {
|
|
3330
3330
|
switch (j) {
|
|
3331
3331
|
case "YY":
|
|
3332
|
-
return String(
|
|
3332
|
+
return String(O.$y).slice(-2);
|
|
3333
3333
|
case "YYYY":
|
|
3334
|
-
return $.s(
|
|
3334
|
+
return $.s(O.$y, 4, "0");
|
|
3335
3335
|
case "M":
|
|
3336
3336
|
return fe + 1;
|
|
3337
3337
|
case "MM":
|
|
@@ -3341,39 +3341,39 @@ var Fs = { exports: {} };
|
|
|
3341
3341
|
case "MMMM":
|
|
3342
3342
|
return Je($e, fe);
|
|
3343
3343
|
case "D":
|
|
3344
|
-
return
|
|
3344
|
+
return O.$D;
|
|
3345
3345
|
case "DD":
|
|
3346
|
-
return $.s(
|
|
3346
|
+
return $.s(O.$D, 2, "0");
|
|
3347
3347
|
case "d":
|
|
3348
|
-
return String(
|
|
3348
|
+
return String(O.$W);
|
|
3349
3349
|
case "dd":
|
|
3350
|
-
return Je(k.weekdaysMin,
|
|
3350
|
+
return Je(k.weekdaysMin, O.$W, me, 2);
|
|
3351
3351
|
case "ddd":
|
|
3352
|
-
return Je(k.weekdaysShort,
|
|
3352
|
+
return Je(k.weekdaysShort, O.$W, me, 3);
|
|
3353
3353
|
case "dddd":
|
|
3354
|
-
return me[
|
|
3354
|
+
return me[O.$W];
|
|
3355
3355
|
case "H":
|
|
3356
|
-
return String(
|
|
3356
|
+
return String(te);
|
|
3357
3357
|
case "HH":
|
|
3358
|
-
return $.s(
|
|
3358
|
+
return $.s(te, 2, "0");
|
|
3359
3359
|
case "h":
|
|
3360
3360
|
return ot(1);
|
|
3361
3361
|
case "hh":
|
|
3362
3362
|
return ot(2);
|
|
3363
3363
|
case "a":
|
|
3364
|
-
return Ge(
|
|
3364
|
+
return Ge(te, ce, !0);
|
|
3365
3365
|
case "A":
|
|
3366
|
-
return Ge(
|
|
3366
|
+
return Ge(te, ce, !1);
|
|
3367
3367
|
case "m":
|
|
3368
3368
|
return String(ce);
|
|
3369
3369
|
case "mm":
|
|
3370
3370
|
return $.s(ce, 2, "0");
|
|
3371
3371
|
case "s":
|
|
3372
|
-
return String(
|
|
3372
|
+
return String(O.$s);
|
|
3373
3373
|
case "ss":
|
|
3374
|
-
return $.s(
|
|
3374
|
+
return $.s(O.$s, 2, "0");
|
|
3375
3375
|
case "SSS":
|
|
3376
|
-
return $.s(
|
|
3376
|
+
return $.s(O.$ms, 3, "0");
|
|
3377
3377
|
case "Z":
|
|
3378
3378
|
return z;
|
|
3379
3379
|
}
|
|
@@ -3382,11 +3382,11 @@ var Fs = { exports: {} };
|
|
|
3382
3382
|
});
|
|
3383
3383
|
}, D.utcOffset = function() {
|
|
3384
3384
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
3385
|
-
}, D.diff = function(M,
|
|
3386
|
-
var F, z = this,
|
|
3385
|
+
}, D.diff = function(M, O, k) {
|
|
3386
|
+
var F, z = this, te = $.p(O), ce = R(M), fe = (ce.utcOffset() - this.utcOffset()) * o, me = this - ce, $e = function() {
|
|
3387
3387
|
return $.m(z, ce);
|
|
3388
3388
|
};
|
|
3389
|
-
switch (
|
|
3389
|
+
switch (te) {
|
|
3390
3390
|
case f:
|
|
3391
3391
|
F = $e() / 12;
|
|
3392
3392
|
break;
|
|
@@ -3419,9 +3419,9 @@ var Fs = { exports: {} };
|
|
|
3419
3419
|
return this.endOf(h).$D;
|
|
3420
3420
|
}, D.$locale = function() {
|
|
3421
3421
|
return E[this.$L];
|
|
3422
|
-
}, D.locale = function(M,
|
|
3422
|
+
}, D.locale = function(M, O) {
|
|
3423
3423
|
if (!M) return this.$L;
|
|
3424
|
-
var k = this.clone(), F =
|
|
3424
|
+
var k = this.clone(), F = A(M, O, !0);
|
|
3425
3425
|
return F && (k.$L = F), k;
|
|
3426
3426
|
}, D.clone = function() {
|
|
3427
3427
|
return $.w(this.$d, this);
|
|
@@ -3441,27 +3441,27 @@ var Fs = { exports: {} };
|
|
|
3441
3441
|
};
|
|
3442
3442
|
}), R.extend = function(U, D) {
|
|
3443
3443
|
return U.$i || (U(D, Y, R), U.$i = !0), R;
|
|
3444
|
-
}, R.locale =
|
|
3444
|
+
}, R.locale = A, R.isDayjs = P, R.unix = function(U) {
|
|
3445
3445
|
return R(1e3 * U);
|
|
3446
3446
|
}, R.en = E[I], R.Ls = E, R.p = {}, R;
|
|
3447
3447
|
});
|
|
3448
3448
|
})(Fs);
|
|
3449
3449
|
var Bp = Fs.exports;
|
|
3450
|
-
const
|
|
3450
|
+
const eo = /* @__PURE__ */ Hp(Bp), bn = (t, e = "") => {
|
|
3451
3451
|
for (let n of t)
|
|
3452
3452
|
if (!(n != null && n.disable) && !(n != null && n.expired))
|
|
3453
3453
|
if (e) {
|
|
3454
3454
|
if (n.routeUrl && n.code === e)
|
|
3455
3455
|
return n;
|
|
3456
3456
|
if (n.children && n.children.length) {
|
|
3457
|
-
const o =
|
|
3457
|
+
const o = bn(n.children, e);
|
|
3458
3458
|
if (o) return o;
|
|
3459
3459
|
}
|
|
3460
3460
|
} else {
|
|
3461
3461
|
if (n.routeUrl)
|
|
3462
3462
|
return n;
|
|
3463
3463
|
if (n.children && n.children.length) {
|
|
3464
|
-
const o =
|
|
3464
|
+
const o = bn(n.children, e);
|
|
3465
3465
|
if (o) return o;
|
|
3466
3466
|
}
|
|
3467
3467
|
}
|
|
@@ -3475,7 +3475,7 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
3475
3475
|
}, br = (t) => {
|
|
3476
3476
|
const e = ae().subAppList ?? [];
|
|
3477
3477
|
let { index: n, target: o } = Wp(e, t);
|
|
3478
|
-
return e.splice(n, 1), e.length ? ze([{ key: "subAppList", value: e }]) :
|
|
3478
|
+
return e.splice(n, 1), e.length ? ze([{ key: "subAppList", value: e }]) : mo(), Le([
|
|
3479
3479
|
{ key: "currentCode", value: "" },
|
|
3480
3480
|
{ key: "currentTab", value: {} },
|
|
3481
3481
|
{ key: `preTab:${t}`, value: {} },
|
|
@@ -3521,7 +3521,7 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
3521
3521
|
{ key: `preTab:${t}`, value: {} },
|
|
3522
3522
|
{ key: `tabMap:${t}`, value: [] }
|
|
3523
3523
|
]), br(t));
|
|
3524
|
-
},
|
|
3524
|
+
}, Co = async (t) => {
|
|
3525
3525
|
const [e, n] = await ll().run({
|
|
3526
3526
|
code: t,
|
|
3527
3527
|
showBtn: !0,
|
|
@@ -3532,9 +3532,9 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
3532
3532
|
const o = Be(n);
|
|
3533
3533
|
Gc(o, t), Yc(o, t);
|
|
3534
3534
|
let r = vi(n, (i) => i.isMenu);
|
|
3535
|
-
const s =
|
|
3535
|
+
const s = Gt(r);
|
|
3536
3536
|
return r.forEach((i) => {
|
|
3537
|
-
i != null && i.children && i.children.length && (i.originalChildren =
|
|
3537
|
+
i != null && i.children && i.children.length && (i.originalChildren = Gt(i.children)), (i != null && i.expired || i != null && i.disable) && (i.children = []);
|
|
3538
3538
|
}), { menus: r, originalMenus: s };
|
|
3539
3539
|
}, Kp = async (t) => {
|
|
3540
3540
|
var p, f, g, _;
|
|
@@ -3547,7 +3547,7 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
3547
3547
|
let l = [], a = [];
|
|
3548
3548
|
const u = ae().subAppList ?? [];
|
|
3549
3549
|
if (u.length && (l = ((g = u.find((d) => d.code === e.code)) == null ? void 0 : g.menus) ?? []), !l.length) {
|
|
3550
|
-
const { menus: d, originalMenus: y } = await
|
|
3550
|
+
const { menus: d, originalMenus: y } = await Co(c);
|
|
3551
3551
|
l = d ?? [], a = y ?? [];
|
|
3552
3552
|
}
|
|
3553
3553
|
if (!l.length && (!s || !i))
|
|
@@ -3560,7 +3560,7 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
3560
3560
|
m.routeUrl === "/deviceInstance" && (m.fixed = !0, m.divise = !0, m.menuCode = m.code, m.tagName = m.tabName = "实例", m.name = d.instanceName, m.leftIcon = "change2", m.rightIcon = "change2");
|
|
3561
3561
|
});
|
|
3562
3562
|
const w = yi(d.endTime) || d.endTime == 0 || d.endTime === 253370736e6 || d.endTime === "253370736000000" ? "-" : Number(d.endTime);
|
|
3563
|
-
if (y =
|
|
3563
|
+
if (y = eo().endOf("day") > eo(w).endOf("day"), !n && d.id && !y) {
|
|
3564
3564
|
const S = Be(l).find((I) => I.routeUrl === "/statisticalReport");
|
|
3565
3565
|
S && (n = S.code);
|
|
3566
3566
|
}
|
|
@@ -3595,7 +3595,7 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
3595
3595
|
query: { ...r.query, app: c }
|
|
3596
3596
|
};
|
|
3597
3597
|
}
|
|
3598
|
-
let h =
|
|
3598
|
+
let h = bn(l, n);
|
|
3599
3599
|
if (!h) {
|
|
3600
3600
|
if (!s || !i)
|
|
3601
3601
|
return { menuConfig: l, currentApp: null, currentMenu: null, query: { ...r.query, app: c } };
|
|
@@ -3652,9 +3652,9 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
3652
3652
|
Ir.value = !0;
|
|
3653
3653
|
const [t, e] = await Jp().run({ userType: 1 });
|
|
3654
3654
|
return Ir.value = !1, t ? (wr.value = [], { navConfig: [] }) : (wr.value = e, ze([{ key: "appcategorys", value: e }]), { navConfig: e });
|
|
3655
|
-
}, Qp = "v1", Yp =
|
|
3655
|
+
}, Qp = "v1", Yp = ao.get("/organization/authProjectTree"), Xp = vt(`/api/customer/customer/${Qp}`), Zp = Xp.get("/project/list"), ef = async () => {
|
|
3656
3656
|
var o, r;
|
|
3657
|
-
const t =
|
|
3657
|
+
const t = ro();
|
|
3658
3658
|
let e = [], n = null;
|
|
3659
3659
|
if ((t == null ? void 0 : t.flag) === 4) {
|
|
3660
3660
|
const [s, i] = await Zp().run();
|
|
@@ -3669,11 +3669,11 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
3669
3669
|
const [s, i] = await Yp().run();
|
|
3670
3670
|
if (e = i, e && e.length) {
|
|
3671
3671
|
const c = ((r = ft()) == null ? void 0 : r.id) || 0;
|
|
3672
|
-
c && (n =
|
|
3672
|
+
c && (n = Ro(e, (l) => l.id === c)), (!c || !n) && (n = Ro(e, (l) => l.type === 7));
|
|
3673
3673
|
}
|
|
3674
3674
|
}
|
|
3675
3675
|
return fs(n || { id: 0 }), Vr((n == null ? void 0 : n.id) || 0), { projectConfig: e, currentProject: n };
|
|
3676
|
-
}, tf = "v1", nf =
|
|
3676
|
+
}, tf = "v1", nf = co.get("/visitor/login/with-default", (t) => (t.public = !0, t)), of = co.get("/visitor/appearance/with-default", (t) => (t.public = !0, t)), rf = vt(`/api/portal/manager/${tf}`), sf = rf.get("/basics/home/info"), af = mt.get("/menu/personal-setting"), cf = async () => {
|
|
3677
3677
|
const [t, e] = await nf().run();
|
|
3678
3678
|
return t ? { loginConfig: null } : { loginConfig: e };
|
|
3679
3679
|
}, lf = async () => {
|
|
@@ -3685,13 +3685,13 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
3685
3685
|
}, Hs = C(1), df = async () => {
|
|
3686
3686
|
const [t, e] = await af().run();
|
|
3687
3687
|
return t ? { personalMenuConfig: null } : (Hs.value = (e == null ? void 0 : e.style) ?? 1, { personalMenuConfig: e });
|
|
3688
|
-
}, pf = () => C(null), ff =
|
|
3688
|
+
}, pf = () => C(null), ff = io.get("/login/history"), hf = () => {
|
|
3689
3689
|
const t = () => ["/licenseActivate", "/licenseDataManage", "/sso-logout"].some((l) => new RegExp(`^${l}$`, "i").test(location.pathname)), e = (i) => {
|
|
3690
|
-
const { browserLogoImgHost: c = "", browserLogoImg: l = "" } = i || {}, a = l ? c +
|
|
3690
|
+
const { browserLogoImgHost: c = "", browserLogoImg: l = "" } = i || {}, a = l ? c + oo(l) : "";
|
|
3691
3691
|
qc(a), _i(a);
|
|
3692
3692
|
}, n = async () => {
|
|
3693
3693
|
const [i, c] = await ff().run({ userId: Fr().id });
|
|
3694
|
-
i || !c || JSON.stringify(c) === "{}" || (
|
|
3694
|
+
i || !c || JSON.stringify(c) === "{}" || (gn.open({
|
|
3695
3695
|
key: "loginTip",
|
|
3696
3696
|
message: "上次登录信息",
|
|
3697
3697
|
placement: "bottomRight",
|
|
@@ -3717,23 +3717,23 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
3717
3717
|
return it(async () => {
|
|
3718
3718
|
if (await o(), t()) return;
|
|
3719
3719
|
await al(), await il();
|
|
3720
|
-
const i =
|
|
3720
|
+
const i = so();
|
|
3721
3721
|
Hr({ accessToken: i }), r.value = !0;
|
|
3722
3722
|
}), {
|
|
3723
3723
|
platformInited: r,
|
|
3724
3724
|
initNextTick: s
|
|
3725
3725
|
};
|
|
3726
3726
|
}, gf = (t) => {
|
|
3727
|
-
const e =
|
|
3728
|
-
|
|
3727
|
+
const e = Lt(), n = Zt(), { getMenu: o } = Ti(), { getHistoryList: r, getSearchList: s } = Lf(), i = C(!0), c = C([]), l = C([]), a = C(!1), u = C(!1);
|
|
3728
|
+
ne(
|
|
3729
3729
|
() => n.path,
|
|
3730
3730
|
(g) => {
|
|
3731
|
-
a.value = g ===
|
|
3731
|
+
a.value = g === Bt;
|
|
3732
3732
|
},
|
|
3733
3733
|
{
|
|
3734
3734
|
immediate: !0
|
|
3735
3735
|
}
|
|
3736
|
-
),
|
|
3736
|
+
), ne(
|
|
3737
3737
|
() => [a.value, u.value],
|
|
3738
3738
|
() => {
|
|
3739
3739
|
V.nav.setConfig({
|
|
@@ -3757,27 +3757,27 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
3757
3757
|
const g = await h();
|
|
3758
3758
|
if (!g) return;
|
|
3759
3759
|
const { homeConfig: _, projectConfig: d, currentProject: y, tenantList: w, personalMenuConfig: m } = g;
|
|
3760
|
-
u.value = ((P =
|
|
3760
|
+
u.value = ((P = ro()) == null ? void 0 : P.flag) !== 4 && w && w.length > 1;
|
|
3761
3761
|
const S = [...ds];
|
|
3762
|
-
S.forEach((
|
|
3763
|
-
_ != null && _.appAlias &&
|
|
3764
|
-
}), c.value = S, _ != null && _.enable || (c.value = c.value.filter((
|
|
3762
|
+
S.forEach((A) => {
|
|
3763
|
+
_ != null && _.appAlias && A.value === st && (A.label = _.appAlias), _ != null && _.homeAlias && A.value === Bt && (A.label = _.homeAlias);
|
|
3764
|
+
}), c.value = S, _ != null && _.enable || (c.value = c.value.filter((A) => A.path === st), n.path === Bt && await e.replace(st)), V.nav.setItems(c.value), d && d.length && (V.nav.setProjectConfig({
|
|
3765
3765
|
treeProps: {
|
|
3766
|
-
disabled: (
|
|
3766
|
+
disabled: (A) => A.type !== 7
|
|
3767
3767
|
},
|
|
3768
3768
|
// 过滤的节点
|
|
3769
|
-
filterNodeMethod: (
|
|
3769
|
+
filterNodeMethod: (A) => A.type === 7,
|
|
3770
3770
|
// 树打平之后保留的数据
|
|
3771
|
-
filterFlatCondition: (
|
|
3771
|
+
filterFlatCondition: (A) => A.type === 7
|
|
3772
3772
|
}), V.nav.setProjects(d || []), y && V.nav.setActiveProject(y));
|
|
3773
|
-
const I =
|
|
3774
|
-
l.value = [...Pc], y && y.id !== 0 ? await o("personCenter", "", "/userInfo") || (l.value = l.value.filter((R) => R.value !== "1")) : l.value = l.value.filter((
|
|
3773
|
+
const I = Sn() ?? {}, E = I != null && I.headPicture ? oo(I.headPicture) : void 0;
|
|
3774
|
+
l.value = [...Pc], y && y.id !== 0 ? await o("personCenter", "", "/userInfo") || (l.value = l.value.filter((R) => R.value !== "1")) : l.value = l.value.filter((A) => A.value !== "1"), V.nav.setUserInfo({ headPicture: E, commandList: l.value }), V.nav.setSearchConfig({
|
|
3775
3775
|
getHistoryList: r,
|
|
3776
3776
|
getSearchList: s
|
|
3777
3777
|
});
|
|
3778
3778
|
const L = ae().subAppList ?? [];
|
|
3779
|
-
L.length && (L.forEach((
|
|
3780
|
-
|
|
3779
|
+
L.length && (L.forEach((A) => {
|
|
3780
|
+
A.menus = [], A.originalMenus = [];
|
|
3781
3781
|
}), ze([{ key: "subAppList", value: L }])), p.value = !0;
|
|
3782
3782
|
}), { loading: i, innerPage: c, commandList: l, layoutInited: p, initNextTick: () => new Promise((g) => {
|
|
3783
3783
|
const _ = async () => {
|
|
@@ -3791,7 +3791,7 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
3791
3791
|
};
|
|
3792
3792
|
_();
|
|
3793
3793
|
}) };
|
|
3794
|
-
}, mf =
|
|
3794
|
+
}, mf = lo.get("/data/menu-expiration"), To = async (t) => {
|
|
3795
3795
|
const [e, n] = await mf().run();
|
|
3796
3796
|
if (e) return { title: "", content: "", decs: [] };
|
|
3797
3797
|
const o = (t == null ? void 0 : t.expired) ?? !1;
|
|
@@ -3801,21 +3801,21 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
3801
3801
|
desc: n.menuExpirationExpiredInfo
|
|
3802
3802
|
};
|
|
3803
3803
|
}, vf = () => {
|
|
3804
|
-
const { entryMenu: t } =
|
|
3804
|
+
const { entryMenu: t } = $n();
|
|
3805
3805
|
V.menu.addEventListener("onItemClick", async (e) => {
|
|
3806
|
-
|
|
3807
|
-
const n = Be(
|
|
3806
|
+
ee.innerSet = !0;
|
|
3807
|
+
const n = Be(mn(e.applicationCode)).filter((o) => !o.disable && !o.expired).find((o) => o.code === e.code);
|
|
3808
3808
|
if (!(n && !n.routeUrl)) {
|
|
3809
3809
|
if (!n) {
|
|
3810
|
-
const { title: o, content: r, desc: s } = await
|
|
3811
|
-
await
|
|
3810
|
+
const { title: o, content: r, desc: s } = await To(n);
|
|
3811
|
+
await zt({ title: o, content: r, desc: s });
|
|
3812
3812
|
return;
|
|
3813
3813
|
}
|
|
3814
3814
|
t({ currentMenu: n });
|
|
3815
3815
|
}
|
|
3816
3816
|
});
|
|
3817
3817
|
}, yf = () => {
|
|
3818
|
-
const { changeApp: t, deleteApp: e, beforeEntryApp: n } =
|
|
3818
|
+
const { changeApp: t, deleteApp: e, beforeEntryApp: n } = jt();
|
|
3819
3819
|
V.nav.addEventListener("onItemClick", async (r) => {
|
|
3820
3820
|
const s = ae().currentSubAppCode ?? "";
|
|
3821
3821
|
if (s !== r.code) {
|
|
@@ -3828,32 +3828,32 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
3828
3828
|
const s = ae();
|
|
3829
3829
|
if (!((a = s.subAppList) != null && a.length) || s.subAppList.findIndex((u) => u.code === r.code) === -1) return;
|
|
3830
3830
|
const l = (Ee().tabMap[r.code] ?? []).map((u) => u.code);
|
|
3831
|
-
l && l.length &&
|
|
3831
|
+
l && l.length && pn(r.code, l), e(r);
|
|
3832
3832
|
});
|
|
3833
|
-
const { enter: o } =
|
|
3833
|
+
const { enter: o } = Dt();
|
|
3834
3834
|
return V.nav.addEventListener("fullScreenHandle", o), {};
|
|
3835
3835
|
}, _f = () => {
|
|
3836
|
-
const t =
|
|
3836
|
+
const t = Lt(), e = "#666666", n = "#FAFAFA", o = "#D9D9D9", r = C(e), s = C(n), i = C(o);
|
|
3837
3837
|
let c = {};
|
|
3838
|
-
|
|
3838
|
+
ne(
|
|
3839
3839
|
() => t.currentRoute.value,
|
|
3840
3840
|
async (d) => {
|
|
3841
|
-
var E, L, P,
|
|
3841
|
+
var E, L, P, A, R, $, Y;
|
|
3842
3842
|
const y = ((E = d.meta) == null ? void 0 : E.showLayout) ?? !0;
|
|
3843
3843
|
let w = ((L = d.query) == null ? void 0 : L.showLayout) ?? !0;
|
|
3844
|
-
if (w === "false" && (w = !1), !y || !w || d.path === c.path &&
|
|
3845
|
-
c =
|
|
3844
|
+
if (w === "false" && (w = !1), !y || !w || d.path === c.path && Bn(d.query, c.query)) return;
|
|
3845
|
+
c = Gt(d);
|
|
3846
3846
|
const m = ae().currentSubAppCode ?? "";
|
|
3847
3847
|
if (!m) return;
|
|
3848
|
-
const S = ((P = d.query) == null ? void 0 : P.menu) ?? ((
|
|
3848
|
+
const S = ((P = d.query) == null ? void 0 : P.menu) ?? ((A = Ee()) == null ? void 0 : A.currentCode) ?? "";
|
|
3849
3849
|
if (!S) return;
|
|
3850
3850
|
const I = JSON.parse(sessionStorage.getItem("tabStyle") || "{}") || {};
|
|
3851
3851
|
I && JSON.stringify(I) !== "{}" && (r.value = (R = I[m][S]) != null && R.fontColor ? I[m][S].fontColor : e, s.value = ($ = I[m][S]) != null && $.backgroundColor ? I[m][S].backgroundColor : n, i.value = (Y = I[m][S]) != null && Y.backgroundColor ? I[m][S].backgroundColor : o);
|
|
3852
3852
|
}
|
|
3853
3853
|
);
|
|
3854
|
-
const { deleteApp: l } =
|
|
3854
|
+
const { deleteApp: l } = jt(), { entryMenu: a } = $n(), { reloadRoute: u, unloadRoute: h } = Bs(), p = (d) => {
|
|
3855
3855
|
var S;
|
|
3856
|
-
const y = Be(
|
|
3856
|
+
const y = Be(mn(d.applicationCode)).find((I) => I.code === d.code), m = (((S = Ee().tabMap) == null ? void 0 : S[d.applicationCode]) ?? []).find((I) => I.code === d.code);
|
|
3857
3857
|
a({ currentMenu: y, route: { path: m.path, query: m.query ?? {} } });
|
|
3858
3858
|
}, f = (d) => {
|
|
3859
3859
|
if (!d || !d.length) return;
|
|
@@ -3861,7 +3861,7 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
3861
3861
|
h(y);
|
|
3862
3862
|
}, g = (d) => {
|
|
3863
3863
|
const y = ae().currentSubAppCode ?? "";
|
|
3864
|
-
|
|
3864
|
+
ee.innerSet = !0;
|
|
3865
3865
|
const w = Ee(), m = w.tabMap[y], S = m.findIndex((R) => R.code === d.data.code);
|
|
3866
3866
|
if (S === -1) return;
|
|
3867
3867
|
const I = () => {
|
|
@@ -3901,10 +3901,10 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
3901
3901
|
})[d.type](d.data);
|
|
3902
3902
|
};
|
|
3903
3903
|
V.tab.addEventListener("onItemClick", async (d) => {
|
|
3904
|
-
Ee().currentCode !== d.currentCode && (
|
|
3904
|
+
Ee().currentCode !== d.currentCode && (ee.innerSet = !0, p(d));
|
|
3905
3905
|
}), V.tab.addEventListener("onItemRemove", (d) => {
|
|
3906
3906
|
const y = Ee(), w = ae().currentSubAppCode ?? "";
|
|
3907
|
-
y.tabMap[w].findIndex((I) => I.code === d.code) !== -1 && (
|
|
3907
|
+
y.tabMap[w].findIndex((I) => I.code === d.code) !== -1 && (pn(d.applicationCode, [d.code]), g({ type: "me", data: d }));
|
|
3908
3908
|
}), V.tab.addEventListener("onMenuClick", (d) => {
|
|
3909
3909
|
let y = [];
|
|
3910
3910
|
const w = Ee().tabMap[d.applicationCode] ?? [];
|
|
@@ -3912,36 +3912,36 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
3912
3912
|
const m = w.findIndex((S) => S.code === d.data.value);
|
|
3913
3913
|
y = w.slice(m + 1);
|
|
3914
3914
|
}
|
|
3915
|
-
d.type.key === "other" && (y = w.filter((m) => m.code !== d.data.value)), d.type.key === "all" && (y = [...w]),
|
|
3915
|
+
d.type.key === "other" && (y = w.filter((m) => m.code !== d.data.value)), d.type.key === "all" && (y = [...w]), pn(
|
|
3916
3916
|
d.applicationCode,
|
|
3917
3917
|
y.map((m) => m.code)
|
|
3918
3918
|
), g({ type: d.type.key, data: d.data });
|
|
3919
3919
|
}), V.tab.addEventListener("onPageRefresh", async (d) => {
|
|
3920
3920
|
if (!d || d.path === kt) return;
|
|
3921
|
-
|
|
3922
|
-
const y = Be(
|
|
3921
|
+
pn(d.applicationCode, [d.code]);
|
|
3922
|
+
const y = Be(mn(d.applicationCode)).find((S) => S.code === d.code);
|
|
3923
3923
|
if (!y) return;
|
|
3924
3924
|
if (y.routeUrl !== d.path) {
|
|
3925
3925
|
u([d.path]), h([`/${d.applicationPath}${y.routeUrl}`]), await a({ currentMenu: y });
|
|
3926
3926
|
return;
|
|
3927
3927
|
}
|
|
3928
3928
|
const w = { app: y.applicationCode, menu: y.code }, m = { ...d.query };
|
|
3929
|
-
|
|
3929
|
+
Bn(w, m) || await a({ currentMenu: y }), u([d.path]);
|
|
3930
3930
|
});
|
|
3931
|
-
const { enter: _ } =
|
|
3931
|
+
const { enter: _ } = Dt();
|
|
3932
3932
|
return V.tab.addEventListener("onToggleFullScreen", _), { fontColor: r, backgroudColor: s, borderColor: i };
|
|
3933
|
-
},
|
|
3933
|
+
}, Nn = Rt(), Sr = (Nn == null ? void 0 : Nn.isAutoCloseApp) ?? !0, Cr = location.href.includes("showLayout=false"), Tr = window.self !== window.top, bf = () => {
|
|
3934
3934
|
const t = () => {
|
|
3935
3935
|
_e.unloadAllMicroApp(), V.nav.setItems([]), V.menu.setItems([]), V.tab.setItems([]), ms();
|
|
3936
3936
|
};
|
|
3937
3937
|
window.addEventListener("beforeunload", function(e) {
|
|
3938
|
-
if (!(Cr || !Sr ||
|
|
3938
|
+
if (!(Cr || !Sr || Tr) && window.__isAutoCloseApp) {
|
|
3939
3939
|
e.preventDefault();
|
|
3940
3940
|
const n = "";
|
|
3941
3941
|
return e.returnValue = n, n;
|
|
3942
3942
|
}
|
|
3943
3943
|
}), window.addEventListener("unload", function(e) {
|
|
3944
|
-
if (Cr || !Sr ||
|
|
3944
|
+
if (Cr || !Sr || Tr) return;
|
|
3945
3945
|
if (!window.__isAutoCloseApp) {
|
|
3946
3946
|
window.__isAutoCloseApp = !0;
|
|
3947
3947
|
return;
|
|
@@ -3949,9 +3949,9 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
3949
3949
|
const n = ae();
|
|
3950
3950
|
n.subAppList && n.subAppList.length && sessionStorage.setItem("has-subapp", "true"), t();
|
|
3951
3951
|
}), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (window.__isAutoCloseApp = !1, window.location.replace(`${location.origin}/`), sessionStorage.removeItem("has-subapp"));
|
|
3952
|
-
},
|
|
3953
|
-
const t =
|
|
3954
|
-
let { mainAppName: o = "", microAppName: r = "", microApps: s = [] } =
|
|
3952
|
+
}, jt = () => {
|
|
3953
|
+
const t = Lt(), { entryMenu: e } = $n(), { unloadRoute: n } = Bs();
|
|
3954
|
+
let { mainAppName: o = "", microAppName: r = "", microApps: s = [] } = Rt();
|
|
3955
3955
|
!o && r && (s = [{ name: r }]);
|
|
3956
3956
|
const i = s.map((p) => p.name), c = () => {
|
|
3957
3957
|
V.menu.setItems([]), V.menu.setActiveItem(""), V.tab.setItems([]), V.tab.setActiveItem("");
|
|
@@ -3960,11 +3960,11 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
3960
3960
|
const f = p.code ?? "", _ = (ae().subAppList ?? []).find((S) => S.code === f);
|
|
3961
3961
|
let d = [], y = [], w = !1;
|
|
3962
3962
|
if (_ && (d = _.menus ?? []), !d.length) {
|
|
3963
|
-
const { menus: S, originalMenus: I, err: E } = await
|
|
3963
|
+
const { menus: S, originalMenus: I, err: E } = await Co(f);
|
|
3964
3964
|
if (E) return !1;
|
|
3965
3965
|
d = S ?? [], y = I ?? [];
|
|
3966
3966
|
}
|
|
3967
|
-
if (d.length ?
|
|
3967
|
+
if (d.length ? bn(d) || (await zt({ title: "提示", content: "此应用菜单已过期/已收回/配置有误<br/>无法使用" }), w = !0) : (await zt({ title: "提示", content: "此应用未配置菜单/无菜单权限<br/>无法使用" }), w = !0), w) return !1;
|
|
3968
3968
|
const m = { ...p, menus: d, originalMenus: y };
|
|
3969
3969
|
return ze([{ key: "subAppList", value: m }]), !0;
|
|
3970
3970
|
}, a = async (p) => {
|
|
@@ -3973,7 +3973,7 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
3973
3973
|
let y = d;
|
|
3974
3974
|
if (c(), !f && _) {
|
|
3975
3975
|
if (!(i && i.find((k) => _.startsWith("/" + k) || _.startsWith(k)))) return;
|
|
3976
|
-
|
|
3976
|
+
ee.innerSet && t.push({ path: _, query: y.query });
|
|
3977
3977
|
return;
|
|
3978
3978
|
}
|
|
3979
3979
|
const w = ((Y = y.meta) == null ? void 0 : Y.showLayout) ?? !0;
|
|
@@ -3981,21 +3981,21 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
3981
3981
|
m === "false" && (m = !1);
|
|
3982
3982
|
const S = (f == null ? void 0 : f.openType) ?? 1, I = (f == null ? void 0 : f.type) ?? 1;
|
|
3983
3983
|
if (f.routeUrl && !i.includes(f.routeUrl)) {
|
|
3984
|
-
const
|
|
3985
|
-
if ((
|
|
3984
|
+
const O = ((U = ae()) == null ? void 0 : U.subAppList) ?? [];
|
|
3985
|
+
if ((O == null ? void 0 : O.find((F) => F.code === f.code)) || O == null || O.push(f), ze([
|
|
3986
3986
|
{ key: "currentSubApp", value: f },
|
|
3987
3987
|
{ key: "currentSubAppCode", value: f.code },
|
|
3988
|
-
{ key: "subAppList", value:
|
|
3989
|
-
]),
|
|
3988
|
+
{ key: "subAppList", value: O }
|
|
3989
|
+
]), O.forEach((F) => {
|
|
3990
3990
|
const z = { ...F, value: F.code, label: F.name };
|
|
3991
3991
|
V.nav.appendItem(z);
|
|
3992
3992
|
}), V.nav.setActiveItem(f.code), _e.hideAllMicroApp(), f.routeUrl.includes("entrance=main")) {
|
|
3993
|
-
|
|
3993
|
+
ee.innerSet && t.push({ path: f.routeUrl, query: { ...y.query, app: f.code } });
|
|
3994
3994
|
return;
|
|
3995
3995
|
}
|
|
3996
3996
|
if (S === 1 && I === 2) {
|
|
3997
|
-
let F =
|
|
3998
|
-
F =
|
|
3997
|
+
let F = Wn(f.routeUrl);
|
|
3998
|
+
F = Gn(F), ee.innerSet && t.push({
|
|
3999
3999
|
path: kt,
|
|
4000
4000
|
query: {
|
|
4001
4001
|
...y.query,
|
|
@@ -4010,23 +4010,23 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
4010
4010
|
menuConfig: E = [],
|
|
4011
4011
|
currentApp: L = null,
|
|
4012
4012
|
currentMenu: P = null,
|
|
4013
|
-
microPath:
|
|
4013
|
+
microPath: A = "",
|
|
4014
4014
|
query: R = {}
|
|
4015
4015
|
} = await Kp({ microApp: f, menuCode: g, menuPath: _, route: y });
|
|
4016
4016
|
if (P && (y = {
|
|
4017
|
-
path:
|
|
4017
|
+
path: A || `/${P.applicationPath}${P.routeUrl}`.replace(/\/\//g, "/"),
|
|
4018
4018
|
query: { ...R, app: P.applicationCode, menu: P.code },
|
|
4019
4019
|
meta: { ...(y == null ? void 0 : y.meta) ?? {} }
|
|
4020
4020
|
}), L && (L == null ? void 0 : L.code) !== (f == null ? void 0 : f.code)) {
|
|
4021
|
-
if (L.fixed && (V.menu.setItems([]), V.tab.setItems([]),
|
|
4022
|
-
const
|
|
4023
|
-
await a({ microApp:
|
|
4021
|
+
if (L.fixed && (V.menu.setItems([]), V.tab.setItems([]), ee.innerSet && t.push(L.path), V.nav.setActiveItem(L.path), _e.hideAllMicroApp()), !L.fixed) {
|
|
4022
|
+
const O = (D = ae().subAppList) == null ? void 0 : D.find((z) => z.code === L.code), k = Ee().preTab[L.code], F = { ...(k == null ? void 0 : k.query) ?? {} };
|
|
4023
|
+
await a({ microApp: O, menuCode: (k == null ? void 0 : k.code) ?? "", route: { query: F } });
|
|
4024
4024
|
}
|
|
4025
4025
|
return;
|
|
4026
4026
|
}
|
|
4027
4027
|
const $ = L || f;
|
|
4028
4028
|
if (!P && _) {
|
|
4029
|
-
|
|
4029
|
+
ee.innerSet && t.push({
|
|
4030
4030
|
path: _,
|
|
4031
4031
|
query: {
|
|
4032
4032
|
...y.query,
|
|
@@ -4040,8 +4040,8 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
4040
4040
|
const F = { ...k, value: k.code, label: k.name };
|
|
4041
4041
|
V.nav.appendItem(F);
|
|
4042
4042
|
}), V.nav.setActiveItem($.code), V.menu.setItems(E);
|
|
4043
|
-
const
|
|
4044
|
-
|
|
4043
|
+
const O = Ee().tabMap[$.code] ?? [];
|
|
4044
|
+
O.length && O.forEach((k) => {
|
|
4045
4045
|
V.tab.appendItem({
|
|
4046
4046
|
...k,
|
|
4047
4047
|
value: k.code,
|
|
@@ -4049,11 +4049,11 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
4049
4049
|
});
|
|
4050
4050
|
});
|
|
4051
4051
|
}
|
|
4052
|
-
e({ currentMenu: P, microPath:
|
|
4052
|
+
e({ currentMenu: P, microPath: A, route: y });
|
|
4053
4053
|
}, u = async (p) => {
|
|
4054
4054
|
var f;
|
|
4055
|
-
if (
|
|
4056
|
-
V.menu.setItems([]), V.tab.setItems([]),
|
|
4055
|
+
if (ee.innerSet = !0, p.fixed) {
|
|
4056
|
+
V.menu.setItems([]), V.tab.setItems([]), ee.innerSet && t.push(p.path), V.nav.setActiveItem(p.path), ze([
|
|
4057
4057
|
{ key: "currentSubAppCode", value: "" },
|
|
4058
4058
|
{ key: "currentSubApp", value: {} }
|
|
4059
4059
|
]), Le([
|
|
@@ -4092,13 +4092,13 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
4092
4092
|
}
|
|
4093
4093
|
if (!f.subAppList.length) {
|
|
4094
4094
|
const w = ds[1];
|
|
4095
|
-
V.menu.setItems([]), V.tab.setItems([]), _e.unloadAllMicroApp(), u(w),
|
|
4095
|
+
V.menu.setItems([]), V.tab.setItems([]), _e.unloadAllMicroApp(), u(w), mo(), hs();
|
|
4096
4096
|
}
|
|
4097
4097
|
}
|
|
4098
4098
|
};
|
|
4099
|
-
},
|
|
4100
|
-
const t =
|
|
4101
|
-
let { mainAppName: e = "", microAppName: n = "", microApps: o = [] } =
|
|
4099
|
+
}, $n = () => {
|
|
4100
|
+
const t = Lt();
|
|
4101
|
+
let { mainAppName: e = "", microAppName: n = "", microApps: o = [] } = Rt();
|
|
4102
4102
|
return !e && n && (o = [{ name: n }]), o.map((s) => s.name), { entryMenu: async (s) => {
|
|
4103
4103
|
var _;
|
|
4104
4104
|
const { currentMenu: i, route: c = {}, microPath: l = "" } = s;
|
|
@@ -4111,16 +4111,16 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
4111
4111
|
if (i.routeUrl.startsWith(kt)) {
|
|
4112
4112
|
_e.hideAllMicroApp(), p = kt;
|
|
4113
4113
|
const d = Ii(i.routeUrl, "iframeSrc");
|
|
4114
|
-
a = { ...a, iframeSrc: d },
|
|
4115
|
-
} else i.applicationPath && (p = l || i.routeUrl, p = `/${i.applicationPath}${p}`.replace(/\/\//g, "/"),
|
|
4114
|
+
a = { ...a, iframeSrc: d }, ee.innerSet && t.push({ path: p, query: a });
|
|
4115
|
+
} else i.applicationPath && (p = l || i.routeUrl, p = `/${i.applicationPath}${p}`.replace(/\/\//g, "/"), ee.innerSet && t.push({ path: p, query: a }));
|
|
4116
4116
|
else {
|
|
4117
4117
|
_e.hideAllMicroApp(), p = kt;
|
|
4118
|
-
let d =
|
|
4119
|
-
d =
|
|
4118
|
+
let d = Wn(i.routeUrl);
|
|
4119
|
+
d = Gn(d), a = { ...a, iframeSrc: d }, ee.innerSet && t.push({ path: p, query: a });
|
|
4120
4120
|
}
|
|
4121
4121
|
if (u === 2) {
|
|
4122
4122
|
let d = h === 1 ? `/${i.applicationPath}${i.routeUrl}`.replace(/\/\//g, "/") : i.routeUrl;
|
|
4123
|
-
d =
|
|
4123
|
+
d = Wn(d), d = Gn(d), ee.innerSet ? (_e.hideAllMicroApp(), p = ps, ee.innerSet && t.push({ path: p, query: a }), d && window.open(d, "_blank")) : h === 1 && (p = d, a = { ...a, showLayout: !1 }, ee.innerSet && t.push({
|
|
4124
4124
|
path: p,
|
|
4125
4125
|
query: a
|
|
4126
4126
|
}));
|
|
@@ -4162,16 +4162,29 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
4162
4162
|
]);
|
|
4163
4163
|
}
|
|
4164
4164
|
} };
|
|
4165
|
+
}, wf = (t, e, n) => {
|
|
4166
|
+
jt();
|
|
4167
|
+
const o = Lt();
|
|
4168
|
+
let r = "", s = {};
|
|
4169
|
+
ne(
|
|
4170
|
+
() => o.currentRoute.value,
|
|
4171
|
+
async (i) => {
|
|
4172
|
+
if (!(i.path === r && Bn(i.query, s)) && (r = Gt(i.path), s = Gt(i.query), await n(), ee.innerSet)) {
|
|
4173
|
+
ee.innerSet = !1;
|
|
4174
|
+
return;
|
|
4175
|
+
}
|
|
4176
|
+
}
|
|
4177
|
+
);
|
|
4165
4178
|
}, Bs = () => ({ reloadRoute: (n) => {
|
|
4166
|
-
|
|
4167
|
-
|
|
4179
|
+
ee.excludeRoutes = Array.from(/* @__PURE__ */ new Set([...ee.excludeRoutes, ...n])), ee.routeKeepAliveVisible = !1, setTimeout(() => {
|
|
4180
|
+
ee.routeKeepAliveVisible = !0, ee.excludeRoutes = [];
|
|
4168
4181
|
}, 300);
|
|
4169
4182
|
}, unloadRoute: (n) => {
|
|
4170
|
-
|
|
4171
|
-
|
|
4183
|
+
ee.excludeRoutes = Array.from(/* @__PURE__ */ new Set([...ee.excludeRoutes, ...n])), ee.routeKeepAliveVisible = !1, setTimeout(() => {
|
|
4184
|
+
ee.routeKeepAliveVisible = !0, ee.excludeRoutes = [];
|
|
4172
4185
|
}, 100);
|
|
4173
|
-
} }),
|
|
4174
|
-
const t = hi(), e = pf(), n =
|
|
4186
|
+
} }), If = () => {
|
|
4187
|
+
const t = hi(), e = pf(), n = Rt(), o = {
|
|
4175
4188
|
logout: "/api/justauth/oauth-server/v1/visitor/logout"
|
|
4176
4189
|
}, r = async () => {
|
|
4177
4190
|
const c = `${location.origin}/`, l = {
|
|
@@ -4180,18 +4193,18 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
4180
4193
|
client_id: "sys",
|
|
4181
4194
|
state: +/* @__PURE__ */ new Date(),
|
|
4182
4195
|
redirect_uri: c,
|
|
4183
|
-
logout_token:
|
|
4196
|
+
logout_token: so(),
|
|
4184
4197
|
// 写用户访问日志逻辑配合
|
|
4185
4198
|
logout: "true"
|
|
4186
4199
|
};
|
|
4187
4200
|
n.ssoLocale && (l.locale = "locale");
|
|
4188
4201
|
const a = Object.keys(l).map((h) => `${h}=${l[h]}`).join("&"), u = `${n.baseURL}${o.logout}?${a}`;
|
|
4189
4202
|
window.__isAutoCloseApp = !1, location.replace(u), sessionStorage.clear(), $i(), localStorage.removeItem("idelTime");
|
|
4190
|
-
}, { entryApp: s } =
|
|
4191
|
-
const c = "personCenter", a = (ae().appcategorys || []).map((g) => g.apps).flat(), { originalMenus: u = [] } = await
|
|
4203
|
+
}, { entryApp: s } = jt(), i = async () => {
|
|
4204
|
+
const c = "personCenter", a = (ae().appcategorys || []).map((g) => g.apps).flat(), { originalMenus: u = [] } = await Co(c), p = Be(u).filter((g) => g.isMenu && g.routeUrl).find((g) => g.routeUrl === "/userInfo");
|
|
4192
4205
|
if (p != null && p.disable || p != null && p.expired) {
|
|
4193
|
-
const { title: g, content: _, desc: d } = await
|
|
4194
|
-
await
|
|
4206
|
+
const { title: g, content: _, desc: d } = await To(p);
|
|
4207
|
+
await zt({ title: g, content: _, desc: d });
|
|
4195
4208
|
return;
|
|
4196
4209
|
}
|
|
4197
4210
|
const f = a.find((g) => g.code === c);
|
|
@@ -4209,9 +4222,9 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
4209
4222
|
$changePwd: t,
|
|
4210
4223
|
$personSetDialog: e
|
|
4211
4224
|
};
|
|
4212
|
-
},
|
|
4213
|
-
const t =
|
|
4214
|
-
n.value =
|
|
4225
|
+
}, Sf = Br.get("/convert/tenant"), Cf = io.get("/platform/withdefault"), Ws = () => {
|
|
4226
|
+
const t = Rt(), e = C(!1), n = C(""), o = C(""), r = () => {
|
|
4227
|
+
n.value = Sn().id, o.value = Fr().tenantId, e.value = !0;
|
|
4215
4228
|
};
|
|
4216
4229
|
V.nav.addEventListener("changeEnterpriseHandle", () => {
|
|
4217
4230
|
r();
|
|
@@ -4224,7 +4237,7 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
4224
4237
|
userId: n,
|
|
4225
4238
|
tenantId: o,
|
|
4226
4239
|
changeEnterprise: async (c) => {
|
|
4227
|
-
const [l, a] = await
|
|
4240
|
+
const [l, a] = await Sf().run({ tenant: c });
|
|
4228
4241
|
if (l) return;
|
|
4229
4242
|
e.value = !1;
|
|
4230
4243
|
const { access_token: u = "", refresh_token: h = "", expires_in: p = 0, sub: f = "", name: g = "", flag: _ = "", tenant: d = "" } = a, y = {
|
|
@@ -4245,7 +4258,7 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
4245
4258
|
if (t != null && t.ssoLocale)
|
|
4246
4259
|
m = `http://127.0.0.1:5000/oauth/refreshOauthToken?tenantId=${c}`;
|
|
4247
4260
|
else {
|
|
4248
|
-
const [S, I] = await
|
|
4261
|
+
const [S, I] = await Cf().run();
|
|
4249
4262
|
I != null && I.loginHost && (m = `${I.loginHost}/oauth/refreshOauthToken?tenantId=${c}`);
|
|
4250
4263
|
}
|
|
4251
4264
|
if (m) {
|
|
@@ -4255,53 +4268,53 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
4255
4268
|
s();
|
|
4256
4269
|
}
|
|
4257
4270
|
};
|
|
4258
|
-
},
|
|
4271
|
+
}, Tf = () => {
|
|
4259
4272
|
const { changeEnterprise: t } = Ws();
|
|
4260
4273
|
V.nav.addEventListener("onProjectChange", async (e) => {
|
|
4261
|
-
const n =
|
|
4274
|
+
const n = ro();
|
|
4262
4275
|
if ((n == null ? void 0 : n.flag) === 4) {
|
|
4263
4276
|
const o = n.tenant.id, r = (e == null ? void 0 : e.tenant) ?? "";
|
|
4264
4277
|
o !== r && await t(r);
|
|
4265
4278
|
}
|
|
4266
4279
|
fs(e || { id: 0 }), Vr((e == null ? void 0 : e.id) || 0), (n == null ? void 0 : n.flag) !== 4 && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
4267
4280
|
});
|
|
4268
|
-
}, Af = mt.get("/menu/search"),
|
|
4281
|
+
}, Af = mt.get("/menu/search"), kf = mt.get("/searchhistory"), $f = mt.post("/searchhistory"), Ef = mt.delete("/searchhistory"), Pf = mt.delete("/searchhistory/deleteone"), Lf = () => {
|
|
4269
4282
|
const t = async () => {
|
|
4270
|
-
const [o, r] = await
|
|
4283
|
+
const [o, r] = await kf().run();
|
|
4271
4284
|
return o ? [] : r.map((s) => s.clickData).filter((s) => s.routeUrl);
|
|
4272
4285
|
}, e = async (o) => {
|
|
4273
4286
|
const [r, s] = await Af().run({ name: o });
|
|
4274
4287
|
return r ? [] : s.filter((i) => i.routeUrl);
|
|
4275
|
-
}, { entryApp: n } =
|
|
4288
|
+
}, { entryApp: n } = jt();
|
|
4276
4289
|
return V.nav.addEventListener("searchToPage", async (o) => {
|
|
4277
4290
|
const { item: r, keyword: s, cb: i } = o;
|
|
4278
4291
|
if (r != null && r.disable || r != null && r.expired) {
|
|
4279
|
-
const { title: u, content: h, desc: p } = await
|
|
4280
|
-
await
|
|
4292
|
+
const { title: u, content: h, desc: p } = await To(r);
|
|
4293
|
+
await zt({ title: u, content: h, desc: p });
|
|
4281
4294
|
return;
|
|
4282
4295
|
}
|
|
4283
|
-
await
|
|
4296
|
+
await $f().run({ searchVal: s, clickData: r });
|
|
4284
4297
|
const a = ((ae().appcategorys ?? []).map((u) => u.apps).flat() ?? []).find((u) => u.code === r.applicationCode);
|
|
4285
4298
|
a && (n({ microApp: a, menuCode: r.code }), i());
|
|
4286
4299
|
}), V.nav.addEventListener("deleteSearchItem", async (o) => {
|
|
4287
4300
|
const { value: r, cb: s } = o;
|
|
4288
|
-
await
|
|
4301
|
+
await Pf().run({ id: r }), s();
|
|
4289
4302
|
}), V.nav.addEventListener("clearSearchList", async (o) => {
|
|
4290
4303
|
const { cb: r } = o;
|
|
4291
|
-
await
|
|
4304
|
+
await Ef().run(), r();
|
|
4292
4305
|
}), {
|
|
4293
4306
|
getHistoryList: t,
|
|
4294
4307
|
getSearchList: e
|
|
4295
4308
|
};
|
|
4296
|
-
},
|
|
4309
|
+
}, ee = et({
|
|
4297
4310
|
/** 菜单或者应用跳转是否通过触发界面调用的 */
|
|
4298
4311
|
innerSet: !1,
|
|
4299
4312
|
excludeRoutes: [],
|
|
4300
4313
|
routeKeepAliveVisible: !0
|
|
4301
|
-
}),
|
|
4314
|
+
}), Mf = () => {
|
|
4302
4315
|
_e.addEventListenerFromMicroApp("iot:change-instance", (t) => {
|
|
4303
4316
|
const e = ae(), n = e.currentSubAppCode;
|
|
4304
|
-
let o =
|
|
4317
|
+
let o = mn(n);
|
|
4305
4318
|
o.forEach((s) => {
|
|
4306
4319
|
s.fixed && (s.name = t.data.instanceInfo.instanceName);
|
|
4307
4320
|
}), V.menu.setItems(o);
|
|
@@ -4319,14 +4332,14 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
4319
4332
|
}
|
|
4320
4333
|
]);
|
|
4321
4334
|
});
|
|
4322
|
-
},
|
|
4335
|
+
}, Rf = (t) => {
|
|
4323
4336
|
["personcenter", "rightmanage"].forEach((n) => {
|
|
4324
4337
|
_e.addEventListenerFromMicroApp(`${n}:change-userinfo`, (o) => {
|
|
4325
|
-
const { userInfo: r } = o.data, s = r != null && r.headPicture ?
|
|
4338
|
+
const { userInfo: r } = o.data, s = r != null && r.headPicture ? oo(r.headPicture) : void 0;
|
|
4326
4339
|
V.nav.setUserInfo({ headPicture: s, commandList: t.value }), sessionStorage.setItem("userInfo", JSON.stringify(r));
|
|
4327
4340
|
});
|
|
4328
4341
|
});
|
|
4329
|
-
},
|
|
4342
|
+
}, Df = () => {
|
|
4330
4343
|
_e.addEventListenerFromMicroApp("devicePanelShow", (t) => {
|
|
4331
4344
|
const { deviceId: e = "", panelCode: n = "", deviceName: o = "", x: r = 0, y: s = 0, isCenter: i = !1 } = t.data;
|
|
4332
4345
|
qr(e, n, o, r, s, i);
|
|
@@ -4338,25 +4351,25 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
4338
4351
|
}), _e.addEventListenerFromMicroApp("closeAlarmPanel", (t) => {
|
|
4339
4352
|
Di();
|
|
4340
4353
|
});
|
|
4341
|
-
},
|
|
4342
|
-
const t = C([]), e = C(null), n = C([]), { entryApp: o } =
|
|
4354
|
+
}, xf = co.get("/platform/login/pwd-advance-notify-check"), Of = () => {
|
|
4355
|
+
const t = C([]), e = C(null), n = C([]), { entryApp: o } = vn.hooks.useEntryApp(), r = () => {
|
|
4343
4356
|
var l;
|
|
4344
4357
|
const c = (((l = ae().appcategorys) == null ? void 0 : l.map((a) => a.apps).flat()) ?? []).find((a) => a.code === "messagecenter");
|
|
4345
4358
|
c && o({ microApp: c });
|
|
4346
4359
|
}, s = () => {
|
|
4347
|
-
e.value = new
|
|
4360
|
+
e.value = new po({
|
|
4348
4361
|
url: "/api/messagecenter/message/v1/innersend",
|
|
4349
4362
|
reconnectWhenClose: !0,
|
|
4350
4363
|
opened: async () => {
|
|
4351
|
-
await
|
|
4364
|
+
await xf().run();
|
|
4352
4365
|
},
|
|
4353
4366
|
message: async (i) => {
|
|
4354
4367
|
if (_e.sendMessageToMicroApp("enterpriseadmin/messagecenter", "message", { msgList: i }), window.self !== window.top) return;
|
|
4355
4368
|
const l = ft().id;
|
|
4356
4369
|
t.value = i.filter(
|
|
4357
4370
|
(a) => a.projectId === l || a.projectId === 0 || a.projectId === "0"
|
|
4358
|
-
), n.value && n.value.length && (n.value.forEach((a) =>
|
|
4359
|
-
|
|
4371
|
+
), n.value && n.value.length && (n.value.forEach((a) => gn.close(a)), n.value = []), await Ze(), t.value.forEach((a, u) => {
|
|
4372
|
+
gn.info({
|
|
4360
4373
|
key: a.id,
|
|
4361
4374
|
class: "message-center-notify",
|
|
4362
4375
|
message: a.title,
|
|
@@ -4387,12 +4400,12 @@ const Zn = /* @__PURE__ */ Hp(Bp), _n = (t, e = "") => {
|
|
|
4387
4400
|
});
|
|
4388
4401
|
};
|
|
4389
4402
|
it(async () => {
|
|
4390
|
-
await
|
|
4391
|
-
}),
|
|
4403
|
+
await Cn(), s();
|
|
4404
|
+
}), In(() => {
|
|
4392
4405
|
e.value && e.value.disconnect(), e.value = null;
|
|
4393
4406
|
});
|
|
4394
|
-
},
|
|
4395
|
-
function
|
|
4407
|
+
}, jf = "v1", Nf = Mt(`/api/enterpriseright/permission/${jf}`), qs = Mt("/api/intelligent-security/video/v1", Ff), Uf = lo.get("/permissionset/user-portal-menu");
|
|
4408
|
+
function Ff(t) {
|
|
4396
4409
|
const e = ft() ? ft().id : 1;
|
|
4397
4410
|
return t.params || (t.params = {}), t.params.project = e, t.params.projectId = e, t;
|
|
4398
4411
|
}
|
|
@@ -4402,13 +4415,13 @@ function zs(t) {
|
|
|
4402
4415
|
e.append(n, o);
|
|
4403
4416
|
return e.toString();
|
|
4404
4417
|
}
|
|
4405
|
-
function
|
|
4418
|
+
function Ar(t) {
|
|
4406
4419
|
return qs.post(`/device/ptz?${zs(t)}`)().run();
|
|
4407
4420
|
}
|
|
4408
|
-
function
|
|
4421
|
+
function Vf(t) {
|
|
4409
4422
|
return qs.post(`/device/video/url/preview?${zs(t)}`)().run();
|
|
4410
4423
|
}
|
|
4411
|
-
const
|
|
4424
|
+
const Hf = Nf.post("data/device-auth"), Bf = /* @__PURE__ */ pe({
|
|
4412
4425
|
__name: "GridItem",
|
|
4413
4426
|
props: {
|
|
4414
4427
|
active: { type: Boolean },
|
|
@@ -4419,7 +4432,7 @@ const Vf = jf.post("data/device-auth"), Hf = /* @__PURE__ */ pe({
|
|
|
4419
4432
|
ii((u) => ({
|
|
4420
4433
|
"6cb537a6": a.value
|
|
4421
4434
|
}));
|
|
4422
|
-
const n = t, o = e, r = C(), { toggle: s, isFullscreen: i } =
|
|
4435
|
+
const n = t, o = e, r = C(), { toggle: s, isFullscreen: i } = Dt(r), c = () => {
|
|
4423
4436
|
r.value != document.fullscreenElement && (i.value ? (i.value = !1, Ze(() => {
|
|
4424
4437
|
s();
|
|
4425
4438
|
})) : s());
|
|
@@ -4442,7 +4455,7 @@ const Vf = jf.post("data/device-auth"), Hf = /* @__PURE__ */ pe({
|
|
|
4442
4455
|
/* CLASS, NEED_HYDRATION */
|
|
4443
4456
|
));
|
|
4444
4457
|
}
|
|
4445
|
-
}),
|
|
4458
|
+
}), Wf = /* @__PURE__ */ je(Bf, [["__scopeId", "data-v-2e9b0fda"]]), qf = { class: "layout-wrapper" }, zf = /* @__PURE__ */ pe({
|
|
4446
4459
|
__name: "GridLayout",
|
|
4447
4460
|
props: {
|
|
4448
4461
|
gridNum: {},
|
|
@@ -4454,12 +4467,12 @@ const Vf = jf.post("data/device-auth"), Hf = /* @__PURE__ */ pe({
|
|
|
4454
4467
|
const n = t, o = e, r = (s) => {
|
|
4455
4468
|
o("update:activeIndex", s);
|
|
4456
4469
|
};
|
|
4457
|
-
return (s, i) => (N(), X("div",
|
|
4470
|
+
return (s, i) => (N(), X("div", qf, [
|
|
4458
4471
|
W(' :active="index === activeIndex" '),
|
|
4459
4472
|
(N(!0), X(
|
|
4460
4473
|
He,
|
|
4461
4474
|
null,
|
|
4462
|
-
|
|
4475
|
+
qt(n.gridNum, (c, l) => (N(), Q(Wf, {
|
|
4463
4476
|
active: !1,
|
|
4464
4477
|
"grid-num": n.gridNum,
|
|
4465
4478
|
onItemClick: (a) => r(l)
|
|
@@ -4478,7 +4491,7 @@ const Vf = jf.post("data/device-auth"), Hf = /* @__PURE__ */ pe({
|
|
|
4478
4491
|
))
|
|
4479
4492
|
]));
|
|
4480
4493
|
}
|
|
4481
|
-
}),
|
|
4494
|
+
}), Kf = /* @__PURE__ */ je(zf, [["__scopeId", "data-v-d36ddc74"]]), Jf = /* @__PURE__ */ pe({
|
|
4482
4495
|
__name: "DirectionControl",
|
|
4483
4496
|
emits: ["change"],
|
|
4484
4497
|
setup(t, { emit: e }) {
|
|
@@ -4492,7 +4505,7 @@ const Vf = jf.post("data/device-auth"), Hf = /* @__PURE__ */ pe({
|
|
|
4492
4505
|
onDblclick: s[9] || (s[9] = ve((i) => i.stopPropagation(), ["stop"]))
|
|
4493
4506
|
},
|
|
4494
4507
|
[
|
|
4495
|
-
q(v(
|
|
4508
|
+
q(v(Ae), { content: "左上" }, {
|
|
4496
4509
|
default: B(() => [
|
|
4497
4510
|
H("div", {
|
|
4498
4511
|
class: "icon icon-top-left",
|
|
@@ -4502,7 +4515,7 @@ const Vf = jf.post("data/device-auth"), Hf = /* @__PURE__ */ pe({
|
|
|
4502
4515
|
_: 1
|
|
4503
4516
|
/* STABLE */
|
|
4504
4517
|
}),
|
|
4505
|
-
q(v(
|
|
4518
|
+
q(v(Ae), { content: "上" }, {
|
|
4506
4519
|
default: B(() => [
|
|
4507
4520
|
H("div", {
|
|
4508
4521
|
class: "icon icon-top",
|
|
@@ -4512,7 +4525,7 @@ const Vf = jf.post("data/device-auth"), Hf = /* @__PURE__ */ pe({
|
|
|
4512
4525
|
_: 1
|
|
4513
4526
|
/* STABLE */
|
|
4514
4527
|
}),
|
|
4515
|
-
q(v(
|
|
4528
|
+
q(v(Ae), { content: "右上" }, {
|
|
4516
4529
|
default: B(() => [
|
|
4517
4530
|
H("div", {
|
|
4518
4531
|
class: "icon icon-top-right",
|
|
@@ -4522,7 +4535,7 @@ const Vf = jf.post("data/device-auth"), Hf = /* @__PURE__ */ pe({
|
|
|
4522
4535
|
_: 1
|
|
4523
4536
|
/* STABLE */
|
|
4524
4537
|
}),
|
|
4525
|
-
q(v(
|
|
4538
|
+
q(v(Ae), { content: "左" }, {
|
|
4526
4539
|
default: B(() => [
|
|
4527
4540
|
H("div", {
|
|
4528
4541
|
class: "icon icon-left",
|
|
@@ -4532,7 +4545,7 @@ const Vf = jf.post("data/device-auth"), Hf = /* @__PURE__ */ pe({
|
|
|
4532
4545
|
_: 1
|
|
4533
4546
|
/* STABLE */
|
|
4534
4547
|
}),
|
|
4535
|
-
q(v(
|
|
4548
|
+
q(v(Ae), { content: "自动" }, {
|
|
4536
4549
|
default: B(() => [
|
|
4537
4550
|
H("div", {
|
|
4538
4551
|
class: "icon icon-auto",
|
|
@@ -4542,7 +4555,7 @@ const Vf = jf.post("data/device-auth"), Hf = /* @__PURE__ */ pe({
|
|
|
4542
4555
|
_: 1
|
|
4543
4556
|
/* STABLE */
|
|
4544
4557
|
}),
|
|
4545
|
-
q(v(
|
|
4558
|
+
q(v(Ae), { content: "右" }, {
|
|
4546
4559
|
default: B(() => [
|
|
4547
4560
|
H("div", {
|
|
4548
4561
|
class: "icon icon-right",
|
|
@@ -4552,7 +4565,7 @@ const Vf = jf.post("data/device-auth"), Hf = /* @__PURE__ */ pe({
|
|
|
4552
4565
|
_: 1
|
|
4553
4566
|
/* STABLE */
|
|
4554
4567
|
}),
|
|
4555
|
-
q(v(
|
|
4568
|
+
q(v(Ae), { content: "左下" }, {
|
|
4556
4569
|
default: B(() => [
|
|
4557
4570
|
H("div", {
|
|
4558
4571
|
class: "icon icon-bottom-left",
|
|
@@ -4562,7 +4575,7 @@ const Vf = jf.post("data/device-auth"), Hf = /* @__PURE__ */ pe({
|
|
|
4562
4575
|
_: 1
|
|
4563
4576
|
/* STABLE */
|
|
4564
4577
|
}),
|
|
4565
|
-
q(v(
|
|
4578
|
+
q(v(Ae), { content: "下" }, {
|
|
4566
4579
|
default: B(() => [
|
|
4567
4580
|
H("div", {
|
|
4568
4581
|
class: "icon icon-bottom",
|
|
@@ -4572,7 +4585,7 @@ const Vf = jf.post("data/device-auth"), Hf = /* @__PURE__ */ pe({
|
|
|
4572
4585
|
_: 1
|
|
4573
4586
|
/* STABLE */
|
|
4574
4587
|
}),
|
|
4575
|
-
q(v(
|
|
4588
|
+
q(v(Ae), { content: "右下" }, {
|
|
4576
4589
|
default: B(() => [
|
|
4577
4590
|
H("div", {
|
|
4578
4591
|
class: "icon icon-bottom-right",
|
|
@@ -4587,16 +4600,16 @@ const Vf = jf.post("data/device-auth"), Hf = /* @__PURE__ */ pe({
|
|
|
4587
4600
|
/* NEED_HYDRATION */
|
|
4588
4601
|
));
|
|
4589
4602
|
}
|
|
4590
|
-
}),
|
|
4603
|
+
}), Gf = /* @__PURE__ */ je(Jf, [["__scopeId", "data-v-6d1b5d7b"]]), Qf = (t) => (xr("data-v-866a3799"), t = t(), Or(), t), Yf = { class: "video-wrapper" }, Xf = { class: "video-top" }, Zf = { class: "video-top_l" }, eh = { class: "video-title-wrapper" }, th = { class: "video-title" }, nh = { class: "video-top_r" }, oh = {
|
|
4591
4604
|
key: 0,
|
|
4592
4605
|
class: "play-status"
|
|
4593
|
-
},
|
|
4606
|
+
}, rh = { class: "video-bottom" }, sh = /* @__PURE__ */ Qf(() => /* @__PURE__ */ H(
|
|
4594
4607
|
"div",
|
|
4595
4608
|
{ class: "video-bottom_l" },
|
|
4596
4609
|
null,
|
|
4597
4610
|
-1
|
|
4598
4611
|
/* HOISTED */
|
|
4599
|
-
)),
|
|
4612
|
+
)), ih = { class: "video-bottom_r" }, ah = /* @__PURE__ */ pe({
|
|
4600
4613
|
__name: "index",
|
|
4601
4614
|
props: {
|
|
4602
4615
|
videoUrl: {},
|
|
@@ -4634,7 +4647,7 @@ const Vf = jf.post("data/device-auth"), Hf = /* @__PURE__ */ pe({
|
|
|
4634
4647
|
m.width = l.value.clientWidth, m.height = l.value.clientHeight;
|
|
4635
4648
|
const S = m.getContext("2d");
|
|
4636
4649
|
S == null || S.drawImage(l.value, 0, 0, m.width, m.height);
|
|
4637
|
-
const I = m.toDataURL("image/jpg"), E = `【${n.title}】${
|
|
4650
|
+
const I = m.toDataURL("image/jpg"), E = `【${n.title}】${eo().format("YYYYMMDDHHmmss").toString()}.jpg`;
|
|
4638
4651
|
if (g.value = I, "download" in document.createElement("a")) {
|
|
4639
4652
|
const L = document.createElement("a");
|
|
4640
4653
|
L.download = E, L.style.display = "none", L.href = I, document.body.appendChild(L), document.body.appendChild(m), L.click(), URL.revokeObjectURL(L.href), document.body.removeChild(L), document.body.removeChild(m);
|
|
@@ -4645,28 +4658,28 @@ const Vf = jf.post("data/device-auth"), Hf = /* @__PURE__ */ pe({
|
|
|
4645
4658
|
}, y = (m) => {
|
|
4646
4659
|
o("zoomControl", m);
|
|
4647
4660
|
}, w = (m) => n.authType.includes(m);
|
|
4648
|
-
return
|
|
4661
|
+
return ne(
|
|
4649
4662
|
() => l.value,
|
|
4650
4663
|
() => {
|
|
4651
4664
|
l.value && l.value.addEventListener("ended", () => {
|
|
4652
4665
|
a.value = !0, n.type === "playback" && (u.value = !1);
|
|
4653
4666
|
});
|
|
4654
4667
|
}
|
|
4655
|
-
),
|
|
4668
|
+
), ne(
|
|
4656
4669
|
() => l.value,
|
|
4657
4670
|
() => {
|
|
4658
4671
|
l.value && Ze(() => {
|
|
4659
4672
|
l.value.playbackRate = n.playbackRate || 1;
|
|
4660
4673
|
});
|
|
4661
4674
|
}
|
|
4662
|
-
),
|
|
4675
|
+
), ne(
|
|
4663
4676
|
() => s.value,
|
|
4664
4677
|
() => {
|
|
4665
4678
|
s.value && Ze(() => {
|
|
4666
4679
|
s.value.muted = r.value;
|
|
4667
4680
|
});
|
|
4668
4681
|
}
|
|
4669
|
-
),
|
|
4682
|
+
), ne(
|
|
4670
4683
|
() => n.playbackRate,
|
|
4671
4684
|
() => {
|
|
4672
4685
|
l.value && (l.value.playbackRate = n.playbackRate || 1);
|
|
@@ -4674,43 +4687,43 @@ const Vf = jf.post("data/device-auth"), Hf = /* @__PURE__ */ pe({
|
|
|
4674
4687
|
{
|
|
4675
4688
|
immediate: !0
|
|
4676
4689
|
}
|
|
4677
|
-
),
|
|
4690
|
+
), ne(
|
|
4678
4691
|
() => n.paused,
|
|
4679
4692
|
() => {
|
|
4680
4693
|
s.value && (n.paused ? s.value.pause() : s.value.play());
|
|
4681
4694
|
}
|
|
4682
|
-
),
|
|
4695
|
+
), ne(
|
|
4683
4696
|
() => n.videoUrl,
|
|
4684
4697
|
() => {
|
|
4685
4698
|
u.value = !1, Ze(() => {
|
|
4686
4699
|
u.value = !0;
|
|
4687
4700
|
});
|
|
4688
4701
|
}
|
|
4689
|
-
), (m, S) => (N(), X("div",
|
|
4702
|
+
), (m, S) => (N(), X("div", Yf, [
|
|
4690
4703
|
q(v(Kr), {
|
|
4691
4704
|
spinning: n.loading,
|
|
4692
4705
|
type: "component",
|
|
4693
4706
|
tip: "加载中..."
|
|
4694
4707
|
}, {
|
|
4695
4708
|
default: B(() => [
|
|
4696
|
-
H("div",
|
|
4697
|
-
H("div",
|
|
4698
|
-
H("div",
|
|
4709
|
+
H("div", Xf, [
|
|
4710
|
+
H("div", Zf, [
|
|
4711
|
+
H("div", eh, [
|
|
4699
4712
|
H(
|
|
4700
4713
|
"div",
|
|
4701
|
-
|
|
4714
|
+
th,
|
|
4702
4715
|
we(n.title.length > 20 ? n.title.slice(0, 19) + "..." : n.title),
|
|
4703
4716
|
1
|
|
4704
4717
|
/* TEXT */
|
|
4705
4718
|
)
|
|
4706
4719
|
])
|
|
4707
4720
|
]),
|
|
4708
|
-
H("div",
|
|
4709
|
-
["live"].includes(m.type) ? (N(), X("span",
|
|
4721
|
+
H("div", nh, [
|
|
4722
|
+
["live"].includes(m.type) ? (N(), X("span", oh, "正在实时预览")) : W("v-if", !0),
|
|
4710
4723
|
W(' <das-icon class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
|
|
4711
4724
|
])
|
|
4712
4725
|
]),
|
|
4713
|
-
n.videoUrl && u.value ? (N(), Q(v(
|
|
4726
|
+
n.videoUrl && u.value ? (N(), Q(v(Oi), {
|
|
4714
4727
|
key: 0,
|
|
4715
4728
|
type: "flv",
|
|
4716
4729
|
ref_key: "dasLivePlayerRef",
|
|
@@ -4719,9 +4732,9 @@ const Vf = jf.post("data/device-auth"), Hf = /* @__PURE__ */ pe({
|
|
|
4719
4732
|
onLoaded: h,
|
|
4720
4733
|
src: n.videoUrl
|
|
4721
4734
|
}, null, 8, ["muted", "src"])) : W("v-if", !0),
|
|
4722
|
-
H("div",
|
|
4723
|
-
|
|
4724
|
-
H("div",
|
|
4735
|
+
H("div", rh, [
|
|
4736
|
+
sh,
|
|
4737
|
+
H("div", ih, [
|
|
4725
4738
|
H(
|
|
4726
4739
|
"div",
|
|
4727
4740
|
{
|
|
@@ -4729,7 +4742,7 @@ const Vf = jf.post("data/device-auth"), Hf = /* @__PURE__ */ pe({
|
|
|
4729
4742
|
onDblclick: S[2] || (S[2] = ve((I) => I.stopPropagation(), ["stop"]))
|
|
4730
4743
|
},
|
|
4731
4744
|
[
|
|
4732
|
-
q(v(
|
|
4745
|
+
q(v(Ae), { content: "声音" }, {
|
|
4733
4746
|
default: B(() => [
|
|
4734
4747
|
q(v(ct), {
|
|
4735
4748
|
class: "icon icon-volume",
|
|
@@ -4740,7 +4753,7 @@ const Vf = jf.post("data/device-auth"), Hf = /* @__PURE__ */ pe({
|
|
|
4740
4753
|
_: 1
|
|
4741
4754
|
/* STABLE */
|
|
4742
4755
|
}),
|
|
4743
|
-
q(v(
|
|
4756
|
+
q(v(Ae), { content: "截图" }, {
|
|
4744
4757
|
default: B(() => [
|
|
4745
4758
|
q(v(ct), {
|
|
4746
4759
|
class: "icon icon-screenshot",
|
|
@@ -4751,7 +4764,7 @@ const Vf = jf.post("data/device-auth"), Hf = /* @__PURE__ */ pe({
|
|
|
4751
4764
|
_: 1
|
|
4752
4765
|
/* STABLE */
|
|
4753
4766
|
}),
|
|
4754
|
-
w("control") ? (N(), Q(v(
|
|
4767
|
+
w("control") ? (N(), Q(v(Ae), {
|
|
4755
4768
|
key: 0,
|
|
4756
4769
|
content: "聚焦-"
|
|
4757
4770
|
}, {
|
|
@@ -4766,7 +4779,7 @@ const Vf = jf.post("data/device-auth"), Hf = /* @__PURE__ */ pe({
|
|
|
4766
4779
|
_: 1
|
|
4767
4780
|
/* STABLE */
|
|
4768
4781
|
})) : W("v-if", !0),
|
|
4769
|
-
w("control") ? (N(), Q(v(
|
|
4782
|
+
w("control") ? (N(), Q(v(Ae), {
|
|
4770
4783
|
key: 1,
|
|
4771
4784
|
content: "聚焦+"
|
|
4772
4785
|
}, {
|
|
@@ -4781,7 +4794,7 @@ const Vf = jf.post("data/device-auth"), Hf = /* @__PURE__ */ pe({
|
|
|
4781
4794
|
_: 1
|
|
4782
4795
|
/* STABLE */
|
|
4783
4796
|
})) : W("v-if", !0),
|
|
4784
|
-
w("control") ? (N(), Q(v(
|
|
4797
|
+
w("control") ? (N(), Q(v(Ae), {
|
|
4785
4798
|
key: 2,
|
|
4786
4799
|
content: "方向控制"
|
|
4787
4800
|
}, {
|
|
@@ -4802,7 +4815,7 @@ const Vf = jf.post("data/device-auth"), Hf = /* @__PURE__ */ pe({
|
|
|
4802
4815
|
)
|
|
4803
4816
|
])
|
|
4804
4817
|
]),
|
|
4805
|
-
i.value ? (N(), Q(
|
|
4818
|
+
i.value ? (N(), Q(Gf, {
|
|
4806
4819
|
key: 1,
|
|
4807
4820
|
onChange: d
|
|
4808
4821
|
})) : W("v-if", !0)
|
|
@@ -4812,7 +4825,7 @@ const Vf = jf.post("data/device-auth"), Hf = /* @__PURE__ */ pe({
|
|
|
4812
4825
|
}, 8, ["spinning"])
|
|
4813
4826
|
]));
|
|
4814
4827
|
}
|
|
4815
|
-
}),
|
|
4828
|
+
}), ch = /* @__PURE__ */ je(ah, [["__scopeId", "data-v-866a3799"]]), lh = /* @__PURE__ */ pe({
|
|
4816
4829
|
props: {
|
|
4817
4830
|
deviceInfo: {
|
|
4818
4831
|
type: Object,
|
|
@@ -4828,20 +4841,20 @@ const Vf = jf.post("data/device-auth"), Hf = /* @__PURE__ */ pe({
|
|
|
4828
4841
|
var u;
|
|
4829
4842
|
if (!((u = n.value) != null && u.deviceId)) return;
|
|
4830
4843
|
o.value = !0;
|
|
4831
|
-
const [l, a] = await
|
|
4844
|
+
const [l, a] = await Vf({
|
|
4832
4845
|
productId: n.value.productId,
|
|
4833
4846
|
deviceId: n.value.deviceId
|
|
4834
4847
|
});
|
|
4835
4848
|
l || (r.value = Si(a == null ? void 0 : a.wsFlvStreamURL)), o.value = !1;
|
|
4836
4849
|
}, i = (l) => {
|
|
4837
|
-
|
|
4850
|
+
Ar({
|
|
4838
4851
|
productId: n.value.productId,
|
|
4839
4852
|
deviceId: n.value.deviceId,
|
|
4840
4853
|
direction: l,
|
|
4841
4854
|
zoom: ""
|
|
4842
4855
|
});
|
|
4843
4856
|
}, c = (l) => {
|
|
4844
|
-
|
|
4857
|
+
Ar({
|
|
4845
4858
|
productId: n.value.productId,
|
|
4846
4859
|
deviceId: n.value.deviceId,
|
|
4847
4860
|
direction: "",
|
|
@@ -4850,7 +4863,7 @@ const Vf = jf.post("data/device-auth"), Hf = /* @__PURE__ */ pe({
|
|
|
4850
4863
|
};
|
|
4851
4864
|
return it(() => {
|
|
4852
4865
|
s();
|
|
4853
|
-
}),
|
|
4866
|
+
}), ne(() => n.value, () => {
|
|
4854
4867
|
s();
|
|
4855
4868
|
}, {
|
|
4856
4869
|
deep: !0
|
|
@@ -4862,13 +4875,13 @@ const Vf = jf.post("data/device-auth"), Hf = /* @__PURE__ */ pe({
|
|
|
4862
4875
|
})]);
|
|
4863
4876
|
}
|
|
4864
4877
|
});
|
|
4865
|
-
function
|
|
4878
|
+
function uh(t) {
|
|
4866
4879
|
const e = C(0), n = C(), {
|
|
4867
4880
|
toggle: o,
|
|
4868
4881
|
isFullscreen: r
|
|
4869
|
-
} =
|
|
4882
|
+
} = Dt(n);
|
|
4870
4883
|
return {
|
|
4871
|
-
render: () => q(
|
|
4884
|
+
render: () => q(Kf, {
|
|
4872
4885
|
ref: n,
|
|
4873
4886
|
gridNum: t.gridNum,
|
|
4874
4887
|
activeIndex: e.value,
|
|
@@ -4879,7 +4892,7 @@ function lh(t) {
|
|
|
4879
4892
|
index: i
|
|
4880
4893
|
}) => {
|
|
4881
4894
|
const c = t.deviceList[i];
|
|
4882
|
-
return q(
|
|
4895
|
+
return q(lh, {
|
|
4883
4896
|
deviceInfo: c
|
|
4884
4897
|
}, {
|
|
4885
4898
|
default: ({
|
|
@@ -4887,7 +4900,7 @@ function lh(t) {
|
|
|
4887
4900
|
onDirectionControl: a,
|
|
4888
4901
|
onZoomControl: u,
|
|
4889
4902
|
loading: h
|
|
4890
|
-
}) => q(
|
|
4903
|
+
}) => q(ch, {
|
|
4891
4904
|
type: "live",
|
|
4892
4905
|
loading: h,
|
|
4893
4906
|
videoUrl: l,
|
|
@@ -4902,13 +4915,13 @@ function lh(t) {
|
|
|
4902
4915
|
toggleFullscreen: o
|
|
4903
4916
|
};
|
|
4904
4917
|
}
|
|
4905
|
-
const
|
|
4918
|
+
const dh = /* @__PURE__ */ H(
|
|
4906
4919
|
"div",
|
|
4907
4920
|
null,
|
|
4908
4921
|
"视频监控",
|
|
4909
4922
|
-1
|
|
4910
4923
|
/* HOISTED */
|
|
4911
|
-
),
|
|
4924
|
+
), ph = /* @__PURE__ */ pe({
|
|
4912
4925
|
__name: "index",
|
|
4913
4926
|
props: {
|
|
4914
4927
|
deviceList: { default: () => [] },
|
|
@@ -4919,7 +4932,7 @@ const uh = /* @__PURE__ */ H(
|
|
|
4919
4932
|
zr({
|
|
4920
4933
|
fullscreen2: import("@das-fed/ui/packages/icons/fullscreen-2")
|
|
4921
4934
|
});
|
|
4922
|
-
const e = t, n = C(!0), { render: o, toggleFullscreen: r } =
|
|
4935
|
+
const e = t, n = C(!0), { render: o, toggleFullscreen: r } = uh(e), s = K(() => {
|
|
4923
4936
|
let i = {};
|
|
4924
4937
|
switch (e.gridNum) {
|
|
4925
4938
|
case 1:
|
|
@@ -4934,7 +4947,7 @@ const uh = /* @__PURE__ */ H(
|
|
|
4934
4947
|
}
|
|
4935
4948
|
return i;
|
|
4936
4949
|
});
|
|
4937
|
-
return (i, c) => (N(), Q(v(
|
|
4950
|
+
return (i, c) => (N(), Q(v(uo), {
|
|
4938
4951
|
size: "mini",
|
|
4939
4952
|
title: "视频监控",
|
|
4940
4953
|
"custom-class": `das-linakge-video-dialog ${s.value}`,
|
|
@@ -4948,8 +4961,8 @@ const uh = /* @__PURE__ */ H(
|
|
|
4948
4961
|
onClosed: i.closeCallback
|
|
4949
4962
|
}, {
|
|
4950
4963
|
header: B(() => [
|
|
4951
|
-
|
|
4952
|
-
q(v(
|
|
4964
|
+
dh,
|
|
4965
|
+
q(v(Ae), { content: "页面全屏" }, {
|
|
4953
4966
|
default: B(() => [
|
|
4954
4967
|
q(v(ct), {
|
|
4955
4968
|
class: "icon",
|
|
@@ -4969,27 +4982,27 @@ const uh = /* @__PURE__ */ H(
|
|
|
4969
4982
|
/* STABLE */
|
|
4970
4983
|
}, 8, ["custom-class", "modelValue", "onClosed"]));
|
|
4971
4984
|
}
|
|
4972
|
-
}),
|
|
4985
|
+
}), fh = (t) => {
|
|
4973
4986
|
const { gridNum: e = 4, deviceList: n = [] } = t;
|
|
4974
4987
|
return new Promise((o) => {
|
|
4975
4988
|
let r = document.body.querySelector("#video-dialog");
|
|
4976
4989
|
r || (r = document.createElement("div"), r.setAttribute("id", "video-dialog-container"), document.body.appendChild(r));
|
|
4977
|
-
const i = Ce(
|
|
4978
|
-
|
|
4990
|
+
const i = Ce(ph, { gridNum: e, deviceList: n, closeCallback: () => {
|
|
4991
|
+
hn(null, r), document.body.removeChild(r), o(null);
|
|
4979
4992
|
} });
|
|
4980
|
-
|
|
4993
|
+
hn(i, r);
|
|
4981
4994
|
});
|
|
4982
|
-
},
|
|
4995
|
+
}, hh = () => {
|
|
4983
4996
|
const t = C(4), e = C([]), n = C(null), o = async (s) => {
|
|
4984
|
-
const [i, c] = await
|
|
4997
|
+
const [i, c] = await Hf(s).run();
|
|
4985
4998
|
if (!i)
|
|
4986
4999
|
return c;
|
|
4987
5000
|
}, r = async () => {
|
|
4988
|
-
const s = ft().id, [i, c] = await
|
|
5001
|
+
const s = ft().id, [i, c] = await Uf().run({
|
|
4989
5002
|
code: "strategy",
|
|
4990
5003
|
showBtn: !1
|
|
4991
5004
|
});
|
|
4992
|
-
i || !c || !c.length || !c.find((a) => a.code === "strategy.linkageModel") || n.value || (n.value = new
|
|
5005
|
+
i || !c || !c.length || !c.find((a) => a.code === "strategy.linkageModel") || n.value || (n.value = new po({
|
|
4993
5006
|
url: "/api/strategy/linkage-strategy/v1/video-popup/subscribe",
|
|
4994
5007
|
params: { project: s },
|
|
4995
5008
|
message: async (a) => {
|
|
@@ -5011,14 +5024,14 @@ const uh = /* @__PURE__ */ H(
|
|
|
5011
5024
|
show: !!_
|
|
5012
5025
|
};
|
|
5013
5026
|
});
|
|
5014
|
-
e.value = f.filter((g) => !!g.show), (u = e.value) != null && u.length &&
|
|
5027
|
+
e.value = f.filter((g) => !!g.show), (u = e.value) != null && u.length && fh({ gridNum: t.value, deviceList: e.value });
|
|
5015
5028
|
}
|
|
5016
5029
|
}
|
|
5017
5030
|
}));
|
|
5018
5031
|
};
|
|
5019
5032
|
return it(async () => {
|
|
5020
|
-
await
|
|
5021
|
-
}),
|
|
5033
|
+
await Cn(), r();
|
|
5034
|
+
}), In(() => {
|
|
5022
5035
|
n.value && n.value.disconnect(), n.value = null;
|
|
5023
5036
|
}), {
|
|
5024
5037
|
gridNum: t,
|
|
@@ -5058,7 +5071,7 @@ class Ve extends Error {
|
|
|
5058
5071
|
super(e), this.__proto__ = n;
|
|
5059
5072
|
}
|
|
5060
5073
|
}
|
|
5061
|
-
class
|
|
5074
|
+
class gh extends Error {
|
|
5062
5075
|
/** Constructs a new instance of {@link @microsoft/signalr.UnsupportedTransportError}.
|
|
5063
5076
|
*
|
|
5064
5077
|
* @param {string} message A descriptive error message.
|
|
@@ -5069,7 +5082,7 @@ class hh extends Error {
|
|
|
5069
5082
|
super(e), this.transport = n, this.errorType = "UnsupportedTransportError", this.__proto__ = o;
|
|
5070
5083
|
}
|
|
5071
5084
|
}
|
|
5072
|
-
class
|
|
5085
|
+
class mh extends Error {
|
|
5073
5086
|
/** Constructs a new instance of {@link @microsoft/signalr.DisabledTransportError}.
|
|
5074
5087
|
*
|
|
5075
5088
|
* @param {string} message A descriptive error message.
|
|
@@ -5080,7 +5093,7 @@ class gh extends Error {
|
|
|
5080
5093
|
super(e), this.transport = n, this.errorType = "DisabledTransportError", this.__proto__ = o;
|
|
5081
5094
|
}
|
|
5082
5095
|
}
|
|
5083
|
-
class
|
|
5096
|
+
class vh extends Error {
|
|
5084
5097
|
/** Constructs a new instance of {@link @microsoft/signalr.FailedToStartTransportError}.
|
|
5085
5098
|
*
|
|
5086
5099
|
* @param {string} message A descriptive error message.
|
|
@@ -5101,7 +5114,7 @@ class kr extends Error {
|
|
|
5101
5114
|
super(e), this.errorType = "FailedToNegotiateWithServerError", this.__proto__ = n;
|
|
5102
5115
|
}
|
|
5103
5116
|
}
|
|
5104
|
-
class
|
|
5117
|
+
class yh extends Error {
|
|
5105
5118
|
/** Constructs a new instance of {@link @microsoft/signalr.AggregateErrors}.
|
|
5106
5119
|
*
|
|
5107
5120
|
* @param {string} message A descriptive error message.
|
|
@@ -5117,7 +5130,7 @@ class Ks {
|
|
|
5117
5130
|
this.statusCode = e, this.statusText = n, this.content = o;
|
|
5118
5131
|
}
|
|
5119
5132
|
}
|
|
5120
|
-
class
|
|
5133
|
+
class En {
|
|
5121
5134
|
get(e, n) {
|
|
5122
5135
|
return this.send({
|
|
5123
5136
|
...n,
|
|
@@ -5153,7 +5166,7 @@ var b;
|
|
|
5153
5166
|
(function(t) {
|
|
5154
5167
|
t[t.Trace = 0] = "Trace", t[t.Debug = 1] = "Debug", t[t.Information = 2] = "Information", t[t.Warning = 3] = "Warning", t[t.Error = 4] = "Error", t[t.Critical = 5] = "Critical", t[t.None = 6] = "None";
|
|
5155
5168
|
})(b || (b = {}));
|
|
5156
|
-
class
|
|
5169
|
+
class Qt {
|
|
5157
5170
|
constructor() {
|
|
5158
5171
|
}
|
|
5159
5172
|
/** @inheritDoc */
|
|
@@ -5161,8 +5174,8 @@ class Kt {
|
|
|
5161
5174
|
log(e, n) {
|
|
5162
5175
|
}
|
|
5163
5176
|
}
|
|
5164
|
-
|
|
5165
|
-
const
|
|
5177
|
+
Qt.instance = new Qt();
|
|
5178
|
+
const _h = "8.0.7";
|
|
5166
5179
|
class ge {
|
|
5167
5180
|
static isRequired(e, n) {
|
|
5168
5181
|
if (e == null)
|
|
@@ -5196,11 +5209,11 @@ class de {
|
|
|
5196
5209
|
return typeof process < "u" && process.release && process.release.name === "node";
|
|
5197
5210
|
}
|
|
5198
5211
|
}
|
|
5199
|
-
function
|
|
5212
|
+
function Yt(t, e) {
|
|
5200
5213
|
let n = "";
|
|
5201
|
-
return gt(t) ? (n = `Binary data of length ${t.byteLength}`, e && (n += `. Content: '${
|
|
5214
|
+
return gt(t) ? (n = `Binary data of length ${t.byteLength}`, e && (n += `. Content: '${bh(t)}'`)) : typeof t == "string" && (n = `String data of length ${t.length}`, e && (n += `. Content: '${t}'`)), n;
|
|
5202
5215
|
}
|
|
5203
|
-
function
|
|
5216
|
+
function bh(t) {
|
|
5204
5217
|
const e = new Uint8Array(t);
|
|
5205
5218
|
let n = "";
|
|
5206
5219
|
return e.forEach((o) => {
|
|
@@ -5214,7 +5227,7 @@ function gt(t) {
|
|
|
5214
5227
|
}
|
|
5215
5228
|
async function Js(t, e, n, o, r, s) {
|
|
5216
5229
|
const i = {}, [c, l] = Pt();
|
|
5217
|
-
i[c] = l, t.log(b.Trace, `(${e} transport) sending data. ${
|
|
5230
|
+
i[c] = l, t.log(b.Trace, `(${e} transport) sending data. ${Yt(r, s.logMessageContent)}.`);
|
|
5218
5231
|
const a = gt(r) ? "arraybuffer" : "text", u = await n.post(o, {
|
|
5219
5232
|
content: r,
|
|
5220
5233
|
headers: { ...i, ...s.headers },
|
|
@@ -5224,10 +5237,10 @@ async function Js(t, e, n, o, r, s) {
|
|
|
5224
5237
|
});
|
|
5225
5238
|
t.log(b.Trace, `(${e} transport) request complete. Response status: ${u.statusCode}.`);
|
|
5226
5239
|
}
|
|
5227
|
-
function
|
|
5228
|
-
return t === void 0 ? new
|
|
5240
|
+
function wh(t) {
|
|
5241
|
+
return t === void 0 ? new wn(b.Information) : t === null ? Qt.instance : t.log !== void 0 ? t : new wn(t);
|
|
5229
5242
|
}
|
|
5230
|
-
class
|
|
5243
|
+
class Ih {
|
|
5231
5244
|
constructor(e, n) {
|
|
5232
5245
|
this._subject = e, this._observer = n;
|
|
5233
5246
|
}
|
|
@@ -5237,7 +5250,7 @@ class wh {
|
|
|
5237
5250
|
});
|
|
5238
5251
|
}
|
|
5239
5252
|
}
|
|
5240
|
-
class
|
|
5253
|
+
class wn {
|
|
5241
5254
|
constructor(e) {
|
|
5242
5255
|
this._minLevel = e, this.out = console;
|
|
5243
5256
|
}
|
|
@@ -5264,14 +5277,14 @@ class bn {
|
|
|
5264
5277
|
}
|
|
5265
5278
|
function Pt() {
|
|
5266
5279
|
let t = "X-SignalR-User-Agent";
|
|
5267
|
-
return de.isNode && (t = "User-Agent"), [t,
|
|
5280
|
+
return de.isNode && (t = "User-Agent"), [t, Sh(_h, Ch(), Ah(), Th())];
|
|
5268
5281
|
}
|
|
5269
|
-
function
|
|
5282
|
+
function Sh(t, e, n, o) {
|
|
5270
5283
|
let r = "Microsoft SignalR/";
|
|
5271
5284
|
const s = t.split(".");
|
|
5272
5285
|
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;
|
|
5273
5286
|
}
|
|
5274
|
-
function
|
|
5287
|
+
function Ch() {
|
|
5275
5288
|
if (de.isNode)
|
|
5276
5289
|
switch (process.platform) {
|
|
5277
5290
|
case "win32":
|
|
@@ -5286,17 +5299,17 @@ function Sh() {
|
|
|
5286
5299
|
else
|
|
5287
5300
|
return "";
|
|
5288
5301
|
}
|
|
5289
|
-
function
|
|
5302
|
+
function Th() {
|
|
5290
5303
|
if (de.isNode)
|
|
5291
5304
|
return process.versions.node;
|
|
5292
5305
|
}
|
|
5293
5306
|
function Ah() {
|
|
5294
5307
|
return de.isNode ? "NodeJS" : "Browser";
|
|
5295
5308
|
}
|
|
5296
|
-
function
|
|
5309
|
+
function Un(t) {
|
|
5297
5310
|
return t.stack ? t.stack : t.message ? t.message : `${t}`;
|
|
5298
5311
|
}
|
|
5299
|
-
function
|
|
5312
|
+
function kh() {
|
|
5300
5313
|
if (typeof globalThis < "u")
|
|
5301
5314
|
return globalThis;
|
|
5302
5315
|
if (typeof self < "u")
|
|
@@ -5307,13 +5320,13 @@ function Th() {
|
|
|
5307
5320
|
return global;
|
|
5308
5321
|
throw new Error("could not find global");
|
|
5309
5322
|
}
|
|
5310
|
-
class
|
|
5323
|
+
class $h extends En {
|
|
5311
5324
|
constructor(e) {
|
|
5312
5325
|
if (super(), this._logger = e, typeof fetch > "u" || de.isNode) {
|
|
5313
5326
|
const n = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
5314
5327
|
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);
|
|
5315
5328
|
} else
|
|
5316
|
-
this._fetchType = fetch.bind(
|
|
5329
|
+
this._fetchType = fetch.bind(kh());
|
|
5317
5330
|
if (typeof AbortController > "u") {
|
|
5318
5331
|
const n = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
5319
5332
|
this._abortControllerType = n("abort-controller");
|
|
@@ -5392,7 +5405,7 @@ function $r(t, e) {
|
|
|
5392
5405
|
}
|
|
5393
5406
|
return n;
|
|
5394
5407
|
}
|
|
5395
|
-
class
|
|
5408
|
+
class Eh extends En {
|
|
5396
5409
|
constructor(e) {
|
|
5397
5410
|
super(), this._logger = e;
|
|
5398
5411
|
}
|
|
@@ -5416,13 +5429,13 @@ class $h extends $n {
|
|
|
5416
5429
|
}) : Promise.reject(new Error("No url defined.")) : Promise.reject(new Error("No method defined."));
|
|
5417
5430
|
}
|
|
5418
5431
|
}
|
|
5419
|
-
class
|
|
5432
|
+
class Ph extends En {
|
|
5420
5433
|
/** Creates a new instance of the {@link @microsoft/signalr.DefaultHttpClient}, using the provided {@link @microsoft/signalr.ILogger} to log messages. */
|
|
5421
5434
|
constructor(e) {
|
|
5422
5435
|
if (super(), typeof fetch < "u" || de.isNode)
|
|
5423
|
-
this._httpClient = new kh(e);
|
|
5424
|
-
else if (typeof XMLHttpRequest < "u")
|
|
5425
5436
|
this._httpClient = new $h(e);
|
|
5437
|
+
else if (typeof XMLHttpRequest < "u")
|
|
5438
|
+
this._httpClient = new Eh(e);
|
|
5426
5439
|
else
|
|
5427
5440
|
throw new Error("No usable HttpClient found.");
|
|
5428
5441
|
}
|
|
@@ -5447,7 +5460,7 @@ class Me {
|
|
|
5447
5460
|
}
|
|
5448
5461
|
Me.RecordSeparatorCode = 30;
|
|
5449
5462
|
Me.RecordSeparator = String.fromCharCode(Me.RecordSeparatorCode);
|
|
5450
|
-
class
|
|
5463
|
+
class Lh {
|
|
5451
5464
|
// Handshake request is always JSON
|
|
5452
5465
|
writeHandshakeRequest(e) {
|
|
5453
5466
|
return Me.write(JSON.stringify(e));
|
|
@@ -5477,7 +5490,7 @@ var G;
|
|
|
5477
5490
|
(function(t) {
|
|
5478
5491
|
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";
|
|
5479
5492
|
})(G || (G = {}));
|
|
5480
|
-
class
|
|
5493
|
+
class Mh {
|
|
5481
5494
|
constructor() {
|
|
5482
5495
|
this.observers = [];
|
|
5483
5496
|
}
|
|
@@ -5494,10 +5507,10 @@ class Lh {
|
|
|
5494
5507
|
e.complete && e.complete();
|
|
5495
5508
|
}
|
|
5496
5509
|
subscribe(e) {
|
|
5497
|
-
return this.observers.push(e), new
|
|
5510
|
+
return this.observers.push(e), new Ih(this, e);
|
|
5498
5511
|
}
|
|
5499
5512
|
}
|
|
5500
|
-
class
|
|
5513
|
+
class Rh {
|
|
5501
5514
|
constructor(e, n, o) {
|
|
5502
5515
|
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;
|
|
5503
5516
|
}
|
|
@@ -5511,7 +5524,7 @@ class Mh {
|
|
|
5511
5524
|
};
|
|
5512
5525
|
gt(n) ? this._bufferedByteCount += n.byteLength : this._bufferedByteCount += n.length, this._bufferedByteCount >= this._bufferSize && (o = new Promise((i, c) => {
|
|
5513
5526
|
r = i, s = c;
|
|
5514
|
-
})), this._messages.push(new
|
|
5527
|
+
})), this._messages.push(new Dh(n, this._totalMessageCount, r, s));
|
|
5515
5528
|
}
|
|
5516
5529
|
try {
|
|
5517
5530
|
this._reconnectInProgress || await this._connection.send(n);
|
|
@@ -5589,29 +5602,29 @@ class Mh {
|
|
|
5589
5602
|
}, 1e3));
|
|
5590
5603
|
}
|
|
5591
5604
|
}
|
|
5592
|
-
class
|
|
5605
|
+
class Dh {
|
|
5593
5606
|
constructor(e, n, o, r) {
|
|
5594
5607
|
this._message = e, this._id = n, this._resolver = o, this._rejector = r;
|
|
5595
5608
|
}
|
|
5596
5609
|
}
|
|
5597
|
-
const
|
|
5610
|
+
const xh = 30 * 1e3, Oh = 15 * 1e3, jh = 1e5;
|
|
5598
5611
|
var le;
|
|
5599
5612
|
(function(t) {
|
|
5600
5613
|
t.Disconnected = "Disconnected", t.Connecting = "Connecting", t.Connected = "Connected", t.Disconnecting = "Disconnecting", t.Reconnecting = "Reconnecting";
|
|
5601
5614
|
})(le || (le = {}));
|
|
5602
|
-
class
|
|
5615
|
+
class ko {
|
|
5603
5616
|
/** @internal */
|
|
5604
5617
|
// Using a public static factory method means we can have a private constructor and an _internal_
|
|
5605
5618
|
// create method that can be used by HubConnectionBuilder. An "internal" constructor would just
|
|
5606
5619
|
// be stripped away and the '.d.ts' file would have no constructor, which is interpreted as a
|
|
5607
5620
|
// public parameter-less constructor.
|
|
5608
5621
|
static create(e, n, o, r, s, i, c) {
|
|
5609
|
-
return new
|
|
5622
|
+
return new ko(e, n, o, r, s, i, c);
|
|
5610
5623
|
}
|
|
5611
5624
|
constructor(e, n, o, r, s, i, c) {
|
|
5612
5625
|
this._nextKeepAlive = 0, this._freezeEventListener = () => {
|
|
5613
5626
|
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");
|
|
5614
|
-
}, ge.isRequired(e, "connection"), ge.isRequired(n, "logger"), ge.isRequired(o, "protocol"), this.serverTimeoutInMilliseconds = s ??
|
|
5627
|
+
}, ge.isRequired(e, "connection"), ge.isRequired(n, "logger"), ge.isRequired(o, "protocol"), this.serverTimeoutInMilliseconds = s ?? xh, this.keepAliveIntervalInMilliseconds = i ?? Oh, this._statefulReconnectBufferSize = c ?? jh, this._logger = n, this._protocol = o, this.connection = e, this._reconnectPolicy = r, this._handshakeProtocol = new Lh(), 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 = le.Disconnected, this._connectionStarted = !1, this._cachedPingMessage = this._protocol.writeMessage({ type: G.Ping });
|
|
5615
5628
|
}
|
|
5616
5629
|
/** Indicates the state of the {@link HubConnection} to the server. */
|
|
5617
5630
|
get state() {
|
|
@@ -5671,7 +5684,7 @@ class To {
|
|
|
5671
5684
|
};
|
|
5672
5685
|
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)
|
|
5673
5686
|
throw this._stopDuringStartError;
|
|
5674
|
-
(this.connection.features.reconnect || !1) && (this._messageBuffer = new
|
|
5687
|
+
(this.connection.features.reconnect || !1) && (this._messageBuffer = new Rh(this._protocol, this.connection, this._statefulReconnectBufferSize), this.connection.features.disconnected = this._messageBuffer._disconnected.bind(this._messageBuffer), this.connection.features.resend = () => {
|
|
5675
5688
|
if (this._messageBuffer)
|
|
5676
5689
|
return this._messageBuffer._resend();
|
|
5677
5690
|
}), this.connection.features.inherentKeepAlive || await this._sendMessage(this._cachedPingMessage);
|
|
@@ -5715,7 +5728,7 @@ class To {
|
|
|
5715
5728
|
stream(e, ...n) {
|
|
5716
5729
|
const [o, r] = this._replaceStreamingParams(n), s = this._createStreamInvocation(e, n, r);
|
|
5717
5730
|
let i;
|
|
5718
|
-
const c = new
|
|
5731
|
+
const c = new Mh();
|
|
5719
5732
|
return c.cancelCallback = () => {
|
|
5720
5733
|
const l = this._createCancelInvocation(s.invocationId);
|
|
5721
5734
|
return delete this._callbacks[s.invocationId], i.then(() => this._sendWithProtocol(l));
|
|
@@ -5821,7 +5834,7 @@ class To {
|
|
|
5821
5834
|
switch (o.type) {
|
|
5822
5835
|
case G.Invocation:
|
|
5823
5836
|
this._invokeClientMethod(o).catch((r) => {
|
|
5824
|
-
this._logger.log(b.Error, `Invoke client method threw error: ${
|
|
5837
|
+
this._logger.log(b.Error, `Invoke client method threw error: ${Un(r)}`);
|
|
5825
5838
|
});
|
|
5826
5839
|
break;
|
|
5827
5840
|
case G.StreamItem:
|
|
@@ -5832,7 +5845,7 @@ class To {
|
|
|
5832
5845
|
try {
|
|
5833
5846
|
r(o);
|
|
5834
5847
|
} catch (s) {
|
|
5835
|
-
this._logger.log(b.Error, `Stream callback threw error: ${
|
|
5848
|
+
this._logger.log(b.Error, `Stream callback threw error: ${Un(s)}`);
|
|
5836
5849
|
}
|
|
5837
5850
|
}
|
|
5838
5851
|
break;
|
|
@@ -5988,7 +6001,7 @@ class To {
|
|
|
5988
6001
|
try {
|
|
5989
6002
|
r(null, e);
|
|
5990
6003
|
} catch (s) {
|
|
5991
|
-
this._logger.log(b.Error, `Stream 'error' callback called with '${e}' threw error: ${
|
|
6004
|
+
this._logger.log(b.Error, `Stream 'error' callback called with '${e}' threw error: ${Un(s)}`);
|
|
5992
6005
|
}
|
|
5993
6006
|
});
|
|
5994
6007
|
}
|
|
@@ -6101,10 +6114,10 @@ class To {
|
|
|
6101
6114
|
return { type: G.Close };
|
|
6102
6115
|
}
|
|
6103
6116
|
}
|
|
6104
|
-
const
|
|
6117
|
+
const Nh = [0, 2e3, 1e4, 3e4, null];
|
|
6105
6118
|
class Er {
|
|
6106
6119
|
constructor(e) {
|
|
6107
|
-
this._retryDelays = e !== void 0 ? [...e, null] :
|
|
6120
|
+
this._retryDelays = e !== void 0 ? [...e, null] : Nh;
|
|
6108
6121
|
}
|
|
6109
6122
|
nextRetryDelayInMilliseconds(e) {
|
|
6110
6123
|
return this._retryDelays[e.previousRetryCount];
|
|
@@ -6114,7 +6127,7 @@ class pt {
|
|
|
6114
6127
|
}
|
|
6115
6128
|
pt.Authorization = "Authorization";
|
|
6116
6129
|
pt.Cookie = "Cookie";
|
|
6117
|
-
class
|
|
6130
|
+
class Uh extends En {
|
|
6118
6131
|
constructor(e, n) {
|
|
6119
6132
|
super(), this._innerClient = e, this._accessTokenFactory = n;
|
|
6120
6133
|
}
|
|
@@ -6135,11 +6148,11 @@ var he;
|
|
|
6135
6148
|
(function(t) {
|
|
6136
6149
|
t[t.None = 0] = "None", t[t.WebSockets = 1] = "WebSockets", t[t.ServerSentEvents = 2] = "ServerSentEvents", t[t.LongPolling = 4] = "LongPolling";
|
|
6137
6150
|
})(he || (he = {}));
|
|
6138
|
-
var
|
|
6151
|
+
var Te;
|
|
6139
6152
|
(function(t) {
|
|
6140
6153
|
t[t.Text = 1] = "Text", t[t.Binary = 2] = "Binary";
|
|
6141
|
-
})(
|
|
6142
|
-
let
|
|
6154
|
+
})(Te || (Te = {}));
|
|
6155
|
+
let Fh = class {
|
|
6143
6156
|
constructor() {
|
|
6144
6157
|
this._isAborted = !1, this.onabort = null;
|
|
6145
6158
|
}
|
|
@@ -6159,10 +6172,10 @@ class Pr {
|
|
|
6159
6172
|
return this._pollAbort.aborted;
|
|
6160
6173
|
}
|
|
6161
6174
|
constructor(e, n, o) {
|
|
6162
|
-
this._httpClient = e, this._logger = n, this._pollAbort = new
|
|
6175
|
+
this._httpClient = e, this._logger = n, this._pollAbort = new Fh(), this._options = o, this._running = !1, this.onreceive = null, this.onclose = null;
|
|
6163
6176
|
}
|
|
6164
6177
|
async connect(e, n) {
|
|
6165
|
-
if (ge.isRequired(e, "url"), ge.isRequired(n, "transferFormat"), ge.isIn(n,
|
|
6178
|
+
if (ge.isRequired(e, "url"), ge.isRequired(n, "transferFormat"), ge.isIn(n, Te, "transferFormat"), this._url = e, this._logger.log(b.Trace, "(LongPolling transport) Connecting."), n === Te.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
|
|
6166
6179
|
throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");
|
|
6167
6180
|
const [o, r] = Pt(), s = { [o]: r, ...this._options.headers }, i = {
|
|
6168
6181
|
abortSignal: this._pollAbort.signal,
|
|
@@ -6170,7 +6183,7 @@ class Pr {
|
|
|
6170
6183
|
timeout: 1e5,
|
|
6171
6184
|
withCredentials: this._options.withCredentials
|
|
6172
6185
|
};
|
|
6173
|
-
n ===
|
|
6186
|
+
n === Te.Binary && (i.responseType = "arraybuffer");
|
|
6174
6187
|
const c = `${e}&_=${Date.now()}`;
|
|
6175
6188
|
this._logger.log(b.Trace, `(LongPolling transport) polling: ${c}.`);
|
|
6176
6189
|
const l = await this._httpClient.get(c, i);
|
|
@@ -6183,7 +6196,7 @@ class Pr {
|
|
|
6183
6196
|
const o = `${e}&_=${Date.now()}`;
|
|
6184
6197
|
this._logger.log(b.Trace, `(LongPolling transport) polling: ${o}.`);
|
|
6185
6198
|
const r = await this._httpClient.get(o, n);
|
|
6186
|
-
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 dt(r.statusText || "", r.statusCode), this._running = !1) : r.content ? (this._logger.log(b.Trace, `(LongPolling transport) data received. ${
|
|
6199
|
+
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 dt(r.statusText || "", r.statusCode), this._running = !1) : r.content ? (this._logger.log(b.Trace, `(LongPolling transport) data received. ${Yt(r.content, this._options.logMessageContent)}.`), this.onreceive && this.onreceive(r.content)) : this._logger.log(b.Trace, "(LongPolling transport) Poll timed out, reissuing.");
|
|
6187
6200
|
} catch (o) {
|
|
6188
6201
|
this._running ? o instanceof Ao ? 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}`);
|
|
6189
6202
|
}
|
|
@@ -6223,14 +6236,14 @@ class Pr {
|
|
|
6223
6236
|
}
|
|
6224
6237
|
}
|
|
6225
6238
|
}
|
|
6226
|
-
class
|
|
6239
|
+
class Vh {
|
|
6227
6240
|
constructor(e, n, o, r) {
|
|
6228
6241
|
this._httpClient = e, this._accessToken = n, this._logger = o, this._options = r, this.onreceive = null, this.onclose = null;
|
|
6229
6242
|
}
|
|
6230
6243
|
async connect(e, n) {
|
|
6231
|
-
return ge.isRequired(e, "url"), ge.isRequired(n, "transferFormat"), ge.isIn(n,
|
|
6244
|
+
return ge.isRequired(e, "url"), ge.isRequired(n, "transferFormat"), ge.isIn(n, Te, "transferFormat"), this._logger.log(b.Trace, "(SSE transport) Connecting."), this._url = e, this._accessToken && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(this._accessToken)}`), new Promise((o, r) => {
|
|
6232
6245
|
let s = !1;
|
|
6233
|
-
if (n !==
|
|
6246
|
+
if (n !== Te.Text) {
|
|
6234
6247
|
r(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));
|
|
6235
6248
|
return;
|
|
6236
6249
|
}
|
|
@@ -6247,7 +6260,7 @@ class Fh {
|
|
|
6247
6260
|
i.onmessage = (c) => {
|
|
6248
6261
|
if (this.onreceive)
|
|
6249
6262
|
try {
|
|
6250
|
-
this._logger.log(b.Trace, `(SSE transport) data received. ${
|
|
6263
|
+
this._logger.log(b.Trace, `(SSE transport) data received. ${Yt(c.data, this._options.logMessageContent)}.`), this.onreceive(c.data);
|
|
6251
6264
|
} catch (l) {
|
|
6252
6265
|
this._close(l);
|
|
6253
6266
|
return;
|
|
@@ -6273,12 +6286,12 @@ class Fh {
|
|
|
6273
6286
|
this._eventSource && (this._eventSource.close(), this._eventSource = void 0, this.onclose && this.onclose(e));
|
|
6274
6287
|
}
|
|
6275
6288
|
}
|
|
6276
|
-
class
|
|
6289
|
+
class Hh {
|
|
6277
6290
|
constructor(e, n, o, r, s, i) {
|
|
6278
6291
|
this._logger = o, this._accessTokenFactory = n, this._logMessageContent = r, this._webSocketConstructor = s, this._httpClient = e, this.onreceive = null, this.onclose = null, this._headers = i;
|
|
6279
6292
|
}
|
|
6280
6293
|
async connect(e, n) {
|
|
6281
|
-
ge.isRequired(e, "url"), ge.isRequired(n, "transferFormat"), ge.isIn(n,
|
|
6294
|
+
ge.isRequired(e, "url"), ge.isRequired(n, "transferFormat"), ge.isIn(n, Te, "transferFormat"), this._logger.log(b.Trace, "(WebSockets transport) Connecting.");
|
|
6282
6295
|
let o;
|
|
6283
6296
|
return this._accessTokenFactory && (o = await this._accessTokenFactory()), new Promise((r, s) => {
|
|
6284
6297
|
e = e.replace(/^http/, "ws");
|
|
@@ -6292,13 +6305,13 @@ class Vh {
|
|
|
6292
6305
|
});
|
|
6293
6306
|
} else
|
|
6294
6307
|
o && (e += (e.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(o)}`);
|
|
6295
|
-
i || (i = new this._webSocketConstructor(e)), n ===
|
|
6308
|
+
i || (i = new this._webSocketConstructor(e)), n === Te.Binary && (i.binaryType = "arraybuffer"), i.onopen = (a) => {
|
|
6296
6309
|
this._logger.log(b.Information, `WebSocket connected to ${e}.`), this._webSocket = i, l = !0, r();
|
|
6297
6310
|
}, i.onerror = (a) => {
|
|
6298
6311
|
let u = null;
|
|
6299
6312
|
typeof ErrorEvent < "u" && a instanceof ErrorEvent ? u = a.error : u = "There was an error with the transport", this._logger.log(b.Information, `(WebSockets transport) ${u}.`);
|
|
6300
6313
|
}, i.onmessage = (a) => {
|
|
6301
|
-
if (this._logger.log(b.Trace, `(WebSockets transport) data received. ${
|
|
6314
|
+
if (this._logger.log(b.Trace, `(WebSockets transport) data received. ${Yt(a.data, this._logMessageContent)}.`), this.onreceive)
|
|
6302
6315
|
try {
|
|
6303
6316
|
this.onreceive(a.data);
|
|
6304
6317
|
} catch (u) {
|
|
@@ -6316,7 +6329,7 @@ class Vh {
|
|
|
6316
6329
|
});
|
|
6317
6330
|
}
|
|
6318
6331
|
send(e) {
|
|
6319
|
-
return this._webSocket && this._webSocket.readyState === this._webSocketConstructor.OPEN ? (this._logger.log(b.Trace, `(WebSockets transport) sending data. ${
|
|
6332
|
+
return this._webSocket && this._webSocket.readyState === this._webSocketConstructor.OPEN ? (this._logger.log(b.Trace, `(WebSockets transport) sending data. ${Yt(e, this._logMessageContent)}.`), this._webSocket.send(e), Promise.resolve()) : Promise.reject("WebSocket is not in the OPEN state");
|
|
6320
6333
|
}
|
|
6321
6334
|
stop() {
|
|
6322
6335
|
return this._webSocket && this._close(void 0), Promise.resolve();
|
|
@@ -6332,10 +6345,10 @@ class Vh {
|
|
|
6332
6345
|
}
|
|
6333
6346
|
}
|
|
6334
6347
|
const Lr = 100;
|
|
6335
|
-
class
|
|
6348
|
+
class Bh {
|
|
6336
6349
|
constructor(e, n = {}) {
|
|
6337
6350
|
if (this._stopPromiseResolver = () => {
|
|
6338
|
-
}, this.features = {}, this._negotiateVersion = 1, ge.isRequired(e, "url"), this._logger =
|
|
6351
|
+
}, this.features = {}, this._negotiateVersion = 1, ge.isRequired(e, "url"), this._logger = wh(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)
|
|
6339
6352
|
n.withCredentials = n.withCredentials === void 0 ? !0 : n.withCredentials;
|
|
6340
6353
|
else
|
|
6341
6354
|
throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");
|
|
@@ -6345,10 +6358,10 @@ class Hh {
|
|
|
6345
6358
|
const s = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
|
|
6346
6359
|
o = s("ws"), r = s("eventsource");
|
|
6347
6360
|
}
|
|
6348
|
-
!de.isNode && typeof WebSocket < "u" && !n.WebSocket ? n.WebSocket = WebSocket : de.isNode && !n.WebSocket && o && (n.WebSocket = o), !de.isNode && typeof EventSource < "u" && !n.EventSource ? n.EventSource = EventSource : de.isNode && !n.EventSource && typeof r < "u" && (n.EventSource = r), this._httpClient = new
|
|
6361
|
+
!de.isNode && typeof WebSocket < "u" && !n.WebSocket ? n.WebSocket = WebSocket : de.isNode && !n.WebSocket && o && (n.WebSocket = o), !de.isNode && typeof EventSource < "u" && !n.EventSource ? n.EventSource = EventSource : de.isNode && !n.EventSource && typeof r < "u" && (n.EventSource = r), this._httpClient = new Uh(n.httpClient || new Ph(this._logger), n.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = n, this.onreceive = null, this.onclose = null;
|
|
6349
6362
|
}
|
|
6350
6363
|
async start(e) {
|
|
6351
|
-
if (e = e ||
|
|
6364
|
+
if (e = e || Te.Binary, ge.isIn(e, Te, "transferFormat"), this._logger.log(b.Debug, `Starting connection with transfer format '${Te[e]}'.`), this._connectionState !== "Disconnected")
|
|
6352
6365
|
return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));
|
|
6353
6366
|
if (this._connectionState = "Connecting", this._startInternalPromise = this._startInternal(e), await this._startInternalPromise, this._connectionState === "Disconnecting") {
|
|
6354
6367
|
const n = "Failed to start the HttpConnection before stop() was called.";
|
|
@@ -6360,7 +6373,7 @@ class Hh {
|
|
|
6360
6373
|
this._connectionStarted = !0;
|
|
6361
6374
|
}
|
|
6362
6375
|
send(e) {
|
|
6363
|
-
return this._connectionState !== "Connected" ? Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")) : (this._sendQueue || (this._sendQueue = new
|
|
6376
|
+
return this._connectionState !== "Connected" ? Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")) : (this._sendQueue || (this._sendQueue = new $o(this.transport)), this._sendQueue.send(e));
|
|
6364
6377
|
}
|
|
6365
6378
|
async stop(e) {
|
|
6366
6379
|
if (this._connectionState === "Disconnected")
|
|
@@ -6469,25 +6482,25 @@ class Hh {
|
|
|
6469
6482
|
await this._startTransport(s, r), this.connectionId = l.connectionId;
|
|
6470
6483
|
return;
|
|
6471
6484
|
} catch (h) {
|
|
6472
|
-
if (this._logger.log(b.Error, `Failed to start the transport '${a.transport}': ${h}`), l = void 0, i.push(new
|
|
6485
|
+
if (this._logger.log(b.Error, `Failed to start the transport '${a.transport}': ${h}`), l = void 0, i.push(new vh(`${a.transport} failed: ${h}`, he[a.transport])), this._connectionState !== "Connecting") {
|
|
6473
6486
|
const p = "Failed to select transport before stop() was called.";
|
|
6474
6487
|
return this._logger.log(b.Debug, p), Promise.reject(new Ve(p));
|
|
6475
6488
|
}
|
|
6476
6489
|
}
|
|
6477
6490
|
}
|
|
6478
6491
|
}
|
|
6479
|
-
return i.length > 0 ? Promise.reject(new
|
|
6492
|
+
return i.length > 0 ? Promise.reject(new yh(`Unable to connect to the server with any of the available transports. ${i.join(" ")}`, i)) : Promise.reject(new Error("None of the transports supported by the client are supported by the server."));
|
|
6480
6493
|
}
|
|
6481
6494
|
_constructTransport(e) {
|
|
6482
6495
|
switch (e) {
|
|
6483
6496
|
case he.WebSockets:
|
|
6484
6497
|
if (!this._options.WebSocket)
|
|
6485
6498
|
throw new Error("'WebSocket' is not supported in your environment.");
|
|
6486
|
-
return new
|
|
6499
|
+
return new Hh(this._httpClient, this._accessTokenFactory, this._logger, this._options.logMessageContent, this._options.WebSocket, this._options.headers || {});
|
|
6487
6500
|
case he.ServerSentEvents:
|
|
6488
6501
|
if (!this._options.EventSource)
|
|
6489
6502
|
throw new Error("'EventSource' is not supported in your environment.");
|
|
6490
|
-
return new
|
|
6503
|
+
return new Vh(this._httpClient, this._httpClient._accessToken, this._logger, this._options);
|
|
6491
6504
|
case he.LongPolling:
|
|
6492
6505
|
return new Pr(this._httpClient, this._logger, this._options);
|
|
6493
6506
|
default:
|
|
@@ -6514,10 +6527,10 @@ class Hh {
|
|
|
6514
6527
|
const s = he[e.transport];
|
|
6515
6528
|
if (s == null)
|
|
6516
6529
|
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.`);
|
|
6517
|
-
if (
|
|
6518
|
-
if (e.transferFormats.map((c) =>
|
|
6530
|
+
if (Wh(n, s))
|
|
6531
|
+
if (e.transferFormats.map((c) => Te[c]).indexOf(o) >= 0) {
|
|
6519
6532
|
if (s === he.WebSockets && !this._options.WebSocket || s === he.ServerSentEvents && !this._options.EventSource)
|
|
6520
|
-
return this._logger.log(b.Debug, `Skipping transport '${he[s]}' because it is not supported in your environment.'`), new
|
|
6533
|
+
return this._logger.log(b.Debug, `Skipping transport '${he[s]}' because it is not supported in your environment.'`), new gh(`'${he[s]}' is not supported in your environment.`, s);
|
|
6521
6534
|
this._logger.log(b.Debug, `Selecting transport '${he[s]}'.`);
|
|
6522
6535
|
try {
|
|
6523
6536
|
return this.features.reconnect = s === he.WebSockets ? r : void 0, this._constructTransport(s);
|
|
@@ -6525,9 +6538,9 @@ class Hh {
|
|
|
6525
6538
|
return c;
|
|
6526
6539
|
}
|
|
6527
6540
|
} else
|
|
6528
|
-
return this._logger.log(b.Debug, `Skipping transport '${he[s]}' because it does not support the requested transfer format '${
|
|
6541
|
+
return this._logger.log(b.Debug, `Skipping transport '${he[s]}' because it does not support the requested transfer format '${Te[o]}'.`), new Error(`'${he[s]}' does not support ${Te[o]}.`);
|
|
6529
6542
|
else
|
|
6530
|
-
return this._logger.log(b.Debug, `Skipping transport '${he[s]}' because it was disabled by the client.`), new
|
|
6543
|
+
return this._logger.log(b.Debug, `Skipping transport '${he[s]}' because it was disabled by the client.`), new mh(`'${he[s]}' is disabled by the client.`, s);
|
|
6531
6544
|
}
|
|
6532
6545
|
_isITransport(e) {
|
|
6533
6546
|
return e && typeof e == "object" && "connect" in e;
|
|
@@ -6565,15 +6578,15 @@ class Hh {
|
|
|
6565
6578
|
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();
|
|
6566
6579
|
}
|
|
6567
6580
|
}
|
|
6568
|
-
function
|
|
6581
|
+
function Wh(t, e) {
|
|
6569
6582
|
return !t || (e & t) !== 0;
|
|
6570
6583
|
}
|
|
6571
|
-
class
|
|
6584
|
+
class $o {
|
|
6572
6585
|
constructor(e) {
|
|
6573
|
-
this._transport = e, this._buffer = [], this._executing = !0, this._sendBufferedData = new
|
|
6586
|
+
this._transport = e, this._buffer = [], this._executing = !0, this._sendBufferedData = new an(), this._transportResult = new an(), this._sendLoopPromise = this._sendLoop();
|
|
6574
6587
|
}
|
|
6575
6588
|
send(e) {
|
|
6576
|
-
return this._bufferData(e), this._transportResult || (this._transportResult = new
|
|
6589
|
+
return this._bufferData(e), this._transportResult || (this._transportResult = new an()), this._transportResult.promise;
|
|
6577
6590
|
}
|
|
6578
6591
|
stop() {
|
|
6579
6592
|
return this._executing = !1, this._sendBufferedData.resolve(), this._sendLoopPromise;
|
|
@@ -6589,10 +6602,10 @@ class ko {
|
|
|
6589
6602
|
this._transportResult && this._transportResult.reject("Connection stopped.");
|
|
6590
6603
|
break;
|
|
6591
6604
|
}
|
|
6592
|
-
this._sendBufferedData = new
|
|
6605
|
+
this._sendBufferedData = new an();
|
|
6593
6606
|
const e = this._transportResult;
|
|
6594
6607
|
this._transportResult = void 0;
|
|
6595
|
-
const n = typeof this._buffer[0] == "string" ? this._buffer.join("") :
|
|
6608
|
+
const n = typeof this._buffer[0] == "string" ? this._buffer.join("") : $o._concatBuffers(this._buffer);
|
|
6596
6609
|
this._buffer.length = 0;
|
|
6597
6610
|
try {
|
|
6598
6611
|
await this._transport.send(n), e.resolve();
|
|
@@ -6609,7 +6622,7 @@ class ko {
|
|
|
6609
6622
|
return o.buffer;
|
|
6610
6623
|
}
|
|
6611
6624
|
}
|
|
6612
|
-
class
|
|
6625
|
+
class an {
|
|
6613
6626
|
constructor() {
|
|
6614
6627
|
this.promise = new Promise((e, n) => [this._resolver, this._rejecter] = [e, n]);
|
|
6615
6628
|
}
|
|
@@ -6620,10 +6633,10 @@ class sn {
|
|
|
6620
6633
|
this._rejecter(e);
|
|
6621
6634
|
}
|
|
6622
6635
|
}
|
|
6623
|
-
const
|
|
6624
|
-
class
|
|
6636
|
+
const qh = "json";
|
|
6637
|
+
class zh {
|
|
6625
6638
|
constructor() {
|
|
6626
|
-
this.name =
|
|
6639
|
+
this.name = qh, this.version = 2, this.transferFormat = Te.Text;
|
|
6627
6640
|
}
|
|
6628
6641
|
/** Creates an array of {@link @microsoft/signalr.HubMessage} objects from the specified serialized representation.
|
|
6629
6642
|
*
|
|
@@ -6635,7 +6648,7 @@ class qh {
|
|
|
6635
6648
|
throw new Error("Invalid input for JSON hub protocol. Expected a string.");
|
|
6636
6649
|
if (!e)
|
|
6637
6650
|
return [];
|
|
6638
|
-
n === null && (n =
|
|
6651
|
+
n === null && (n = Qt.instance);
|
|
6639
6652
|
const o = Me.parse(e), r = [];
|
|
6640
6653
|
for (const s of o) {
|
|
6641
6654
|
const i = JSON.parse(s);
|
|
@@ -6702,7 +6715,7 @@ class qh {
|
|
|
6702
6715
|
throw new Error(n);
|
|
6703
6716
|
}
|
|
6704
6717
|
}
|
|
6705
|
-
const
|
|
6718
|
+
const Kh = {
|
|
6706
6719
|
trace: b.Trace,
|
|
6707
6720
|
debug: b.Debug,
|
|
6708
6721
|
info: b.Information,
|
|
@@ -6713,21 +6726,21 @@ const zh = {
|
|
|
6713
6726
|
critical: b.Critical,
|
|
6714
6727
|
none: b.None
|
|
6715
6728
|
};
|
|
6716
|
-
function
|
|
6717
|
-
const e =
|
|
6729
|
+
function Jh(t) {
|
|
6730
|
+
const e = Kh[t.toLowerCase()];
|
|
6718
6731
|
if (typeof e < "u")
|
|
6719
6732
|
return e;
|
|
6720
6733
|
throw new Error(`Unknown log level: ${t}`);
|
|
6721
6734
|
}
|
|
6722
|
-
class
|
|
6735
|
+
class Gh {
|
|
6723
6736
|
configureLogging(e) {
|
|
6724
|
-
if (ge.isRequired(e, "logging"),
|
|
6737
|
+
if (ge.isRequired(e, "logging"), Qh(e))
|
|
6725
6738
|
this.logger = e;
|
|
6726
6739
|
else if (typeof e == "string") {
|
|
6727
|
-
const n =
|
|
6728
|
-
this.logger = new
|
|
6740
|
+
const n = Jh(e);
|
|
6741
|
+
this.logger = new wn(n);
|
|
6729
6742
|
} else
|
|
6730
|
-
this.logger = new
|
|
6743
|
+
this.logger = new wn(e);
|
|
6731
6744
|
return this;
|
|
6732
6745
|
}
|
|
6733
6746
|
withUrl(e, n) {
|
|
@@ -6777,16 +6790,16 @@ class Jh {
|
|
|
6777
6790
|
const e = this.httpConnectionOptions || {};
|
|
6778
6791
|
if (e.logger === void 0 && (e.logger = this.logger), !this.url)
|
|
6779
6792
|
throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");
|
|
6780
|
-
const n = new
|
|
6781
|
-
return
|
|
6793
|
+
const n = new Bh(this.url, e);
|
|
6794
|
+
return ko.create(n, this.logger || Qt.instance, this.protocol || new zh(), this.reconnectPolicy, this._serverTimeoutInMilliseconds, this._keepAliveIntervalInMilliseconds, this._statefulReconnectBufferSize);
|
|
6782
6795
|
}
|
|
6783
6796
|
}
|
|
6784
|
-
function
|
|
6797
|
+
function Qh(t) {
|
|
6785
6798
|
return t.log !== void 0;
|
|
6786
6799
|
}
|
|
6787
|
-
let { baseURL:
|
|
6788
|
-
const
|
|
6789
|
-
const t = new
|
|
6800
|
+
let { baseURL: Yh } = Rt();
|
|
6801
|
+
const Xh = () => {
|
|
6802
|
+
const t = new Gh().withUrl(`${Yh}/api/tool/event-bus`, {
|
|
6790
6803
|
skipNegotiation: !0,
|
|
6791
6804
|
transport: he.WebSockets
|
|
6792
6805
|
}).withAutomaticReconnect().build();
|
|
@@ -6795,16 +6808,16 @@ const Yh = () => {
|
|
|
6795
6808
|
}), t.onclose((e) => {
|
|
6796
6809
|
}), t.onreconnected(() => {
|
|
6797
6810
|
}), t;
|
|
6798
|
-
},
|
|
6799
|
-
|
|
6800
|
-
const
|
|
6801
|
-
const t =
|
|
6811
|
+
}, Pn = "v1", Zh = vt(`/api/graphics-engine/component/${Pn}`, (t) => (t.customErrorMessage = () => "", t)), eg = vt(`/api/portal/manager/${Pn}`, (t) => (t.customErrorMessage = () => "", t)), tg = vt(`/api/speech-base/speech/${Pn}`, (t) => (t.customErrorMessage = () => "", t)), Mr = Zh.get("/component/client/heartbeat"), ng = eg.get("/basics/by-alias");
|
|
6812
|
+
tg.post("/control/callBack");
|
|
6813
|
+
const og = vt(`/api/tool/event-bus/${Pn}/`), Fn = og.post("/publish"), rg = ao.get("/permissionset/application"), sg = () => {
|
|
6814
|
+
const t = Zt(), { entryApp: e } = vn.hooks.useEntryApp(), { entryMenu: n } = vn.hooks.useEntryMenu();
|
|
6802
6815
|
let o = null;
|
|
6803
6816
|
return it(async () => {
|
|
6804
6817
|
var y;
|
|
6805
6818
|
let r = ((y = t.meta) == null ? void 0 : y.showLayout) ?? !0, { showLayout: s = !0 } = t.query;
|
|
6806
6819
|
if (s === "false" && (s = !1), !r || !s) return;
|
|
6807
|
-
await
|
|
6820
|
+
await Cn();
|
|
6808
6821
|
const i = (w) => {
|
|
6809
6822
|
try {
|
|
6810
6823
|
return JSON.parse(w);
|
|
@@ -6818,9 +6831,9 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
6818
6831
|
const E = w.filter((L) => L.code).map((L) => L.code);
|
|
6819
6832
|
if (w.length) {
|
|
6820
6833
|
if (m.currentSubAppCode) {
|
|
6821
|
-
const P = m.currentSubApp.menus ?? [],
|
|
6822
|
-
if (
|
|
6823
|
-
n({ currentMenu:
|
|
6834
|
+
const P = m.currentSubApp.menus ?? [], A = Be(P).find((R) => E.includes(R.code));
|
|
6835
|
+
if (A) {
|
|
6836
|
+
n({ currentMenu: A });
|
|
6824
6837
|
return;
|
|
6825
6838
|
}
|
|
6826
6839
|
}
|
|
@@ -6832,16 +6845,16 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
6832
6845
|
if (w.includes(":")) {
|
|
6833
6846
|
const E = w.split(":"), [L = "", P = ""] = E;
|
|
6834
6847
|
if (!L) return;
|
|
6835
|
-
const
|
|
6836
|
-
|
|
6848
|
+
const A = S.find((R) => R.code === L);
|
|
6849
|
+
A && e({ microApp: A, menuCode: P });
|
|
6837
6850
|
} else {
|
|
6838
6851
|
const E = w, L = S.find((P) => P.code === E);
|
|
6839
6852
|
if (L)
|
|
6840
6853
|
e({ microApp: L });
|
|
6841
6854
|
else {
|
|
6842
|
-
const [P,
|
|
6855
|
+
const [P, A] = await rg().run({ menuCode: E });
|
|
6843
6856
|
if (P) return;
|
|
6844
|
-
const R = S.find(($) => $.code ===
|
|
6857
|
+
const R = S.find(($) => $.code === A);
|
|
6845
6858
|
R && e({ microApp: R, menuCode: E });
|
|
6846
6859
|
}
|
|
6847
6860
|
}
|
|
@@ -6851,16 +6864,16 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
6851
6864
|
setTimeout(async () => {
|
|
6852
6865
|
var m, S;
|
|
6853
6866
|
if (l.value) {
|
|
6854
|
-
const [I, E] = await
|
|
6855
|
-
I ? await
|
|
6867
|
+
const [I, E] = await ng().run({}, { params: { aliasName: w.actionValue } });
|
|
6868
|
+
I ? await Fn().run({
|
|
6856
6869
|
uniqueId: w.uniqueId,
|
|
6857
6870
|
status: 0,
|
|
6858
6871
|
errorMsg: "未找到" + w.actionValue
|
|
6859
|
-
}) : E.length ? (E.length > 1 ? c(E) : c((m = E[0]) == null ? void 0 : m.code), await
|
|
6872
|
+
}) : E.length ? (E.length > 1 ? c(E) : c((m = E[0]) == null ? void 0 : m.code), await Fn().run({
|
|
6860
6873
|
uniqueId: w.uniqueId,
|
|
6861
6874
|
status: 1,
|
|
6862
6875
|
targetName: (S = E[0]) == null ? void 0 : S.name
|
|
6863
|
-
})) : await
|
|
6876
|
+
})) : await Fn().run({
|
|
6864
6877
|
uniqueId: w.uniqueId,
|
|
6865
6878
|
status: 0,
|
|
6866
6879
|
errorMsg: "未找到" + w.actionValue
|
|
@@ -6869,14 +6882,14 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
6869
6882
|
l.value = !0;
|
|
6870
6883
|
}, 2e3);
|
|
6871
6884
|
}, u = (w) => {
|
|
6872
|
-
const m =
|
|
6873
|
-
|
|
6885
|
+
const m = so(), S = JSON.parse(atob(m.split(".")[1])).sub;
|
|
6886
|
+
Xh().on(`${w}:${S}`, async function(E) {
|
|
6874
6887
|
let L = i(E);
|
|
6875
6888
|
if (L)
|
|
6876
6889
|
L.uniqueId && L.actionKey == "switch-menu" && a(L);
|
|
6877
6890
|
else if (E.includes("openAppMenu=")) {
|
|
6878
|
-
const P = E.split("="),
|
|
6879
|
-
c(
|
|
6891
|
+
const P = E.split("="), A = JSON.parse(P[1]);
|
|
6892
|
+
c(A);
|
|
6880
6893
|
} else E.includes("iocIsRun") && (l.value = !1);
|
|
6881
6894
|
});
|
|
6882
6895
|
}, h = C(""), [p, f] = await Mr().run();
|
|
@@ -6894,13 +6907,13 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
6894
6907
|
}, 5e3), _.value = (window.navigator.onLine ? "on" : "off") + "line";
|
|
6895
6908
|
};
|
|
6896
6909
|
window.addEventListener("online", () => d("online")), window.addEventListener("offline", () => d("offline"));
|
|
6897
|
-
}),
|
|
6910
|
+
}), In(() => {
|
|
6898
6911
|
o && clearInterval(o);
|
|
6899
6912
|
}), {};
|
|
6900
|
-
},
|
|
6913
|
+
}, Ln = "v1", ig = Mt(`/api/fms/report/${Ln}`), Eo = Mt(`/api/emergency/manage/${Ln}`), ag = lo.get("/permissionset/user-portal-menu"), Gs = Mt(`/api/alarm/config/${Ln}`), cg = Mt(`/api/alarm/run-time/${Ln}`), lg = Gs.get("/alarm-definition/status-option"), ug = cg.post("/record/handling"), dg = Gs.get("/alarm-level/prompttone"), pg = ig.get("/alarm/rule/list"), fg = Wr.get("/controller/space-children-all-type"), hg = Wr.get("/controller/fuzzy-area-small"), gg = Eo.get("/emergency-event/event/type"), mg = Eo.get("/emergency-event/event/level"), vg = Eo.get("/emergency-plan/plan/handle-time"), yg = { class: "handle-alarm-container" }, _g = { class: "select-check" }, bg = { class: "form-box" }, wg = { class: "select-check" }, Ig = { style: { "margin-left": "8px" } }, Sg = { class: "foot-btn-box" }, Cg = {
|
|
6901
6914
|
name: "handleAlarm"
|
|
6902
|
-
},
|
|
6903
|
-
...
|
|
6915
|
+
}, Tg = /* @__PURE__ */ pe({
|
|
6916
|
+
...Cg,
|
|
6904
6917
|
props: {
|
|
6905
6918
|
projectId: { default: "" },
|
|
6906
6919
|
handerIds: { default: [] }
|
|
@@ -6962,71 +6975,71 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
6962
6975
|
]), _ = C([]), d = C(""), y = C("告警对象位置"), w = C(""), m = C([]), S = C("");
|
|
6963
6976
|
C("[]");
|
|
6964
6977
|
const I = C(!0), E = C(!0), L = async (j) => {
|
|
6965
|
-
const
|
|
6966
|
-
j != null && j.id && (
|
|
6967
|
-
const [
|
|
6968
|
-
return
|
|
6978
|
+
const T = { name: "1" };
|
|
6979
|
+
j != null && j.id && (T.spaceId = j.id);
|
|
6980
|
+
const [x, Ne] = await fg(T).run();
|
|
6981
|
+
return x ? {} : Ne;
|
|
6969
6982
|
}, P = async (j) => {
|
|
6970
|
-
const
|
|
6971
|
-
return
|
|
6972
|
-
},
|
|
6973
|
-
const [j,
|
|
6983
|
+
const T = { name: j || "" }, [x, Ne] = await hg(T).run();
|
|
6984
|
+
return x ? {} : Ne;
|
|
6985
|
+
}, A = C(!0), R = C(!0), $ = C([]), Y = async () => {
|
|
6986
|
+
const [j, T] = await pg().run({ pageIndex: -1, pageSize: -1 });
|
|
6974
6987
|
if (j) return {};
|
|
6975
|
-
$.value =
|
|
6988
|
+
$.value = T.data.filter((x) => x.status), $.value.length > 0 && (a.value.workOrderRules = $.value[0].id);
|
|
6976
6989
|
};
|
|
6977
|
-
|
|
6990
|
+
ne(l, (j) => {
|
|
6978
6991
|
j || (k(), F());
|
|
6979
|
-
}),
|
|
6992
|
+
}), ne(
|
|
6980
6993
|
E,
|
|
6981
6994
|
(j) => {
|
|
6982
6995
|
j ? (I.value = !0, a.value.customPath = J("选填").value) : (I.value = !1, a.value.customPath = "");
|
|
6983
6996
|
},
|
|
6984
6997
|
{ immediate: !0 }
|
|
6985
|
-
),
|
|
6998
|
+
), ne(
|
|
6986
6999
|
R,
|
|
6987
7000
|
(j) => {
|
|
6988
|
-
j ? (a.value.reportTheme = J("告警对象").value,
|
|
7001
|
+
j ? (a.value.reportTheme = J("告警对象").value, A.value = !0) : (w.value = "请输入", a.value.reportTheme = "", A.value = !1);
|
|
6989
7002
|
},
|
|
6990
7003
|
{ immediate: !0 }
|
|
6991
7004
|
);
|
|
6992
7005
|
const re = (j) => {
|
|
6993
|
-
var
|
|
6994
|
-
return (
|
|
7006
|
+
var T;
|
|
7007
|
+
return (T = i.value) == null ? void 0 : T.parentNode.parentNode;
|
|
6995
7008
|
}, U = (j) => {
|
|
6996
7009
|
u.value.reportTheme = "";
|
|
6997
|
-
}, D = (j,
|
|
6998
|
-
|
|
7010
|
+
}, D = (j, T) => {
|
|
7011
|
+
T.length > 0 && (d.value = T[0].path), a.value.reportPosition = j, S.value = "";
|
|
6999
7012
|
}, M = (j) => {
|
|
7000
7013
|
j && (u.value.reportPosition = "", d.value = ""), j ? (a.value.reportPosition = null, d.value = "", y.value = "告警对象位置") : (a.value.reportPosition = null, d.value = "", y.value = "请选择");
|
|
7001
|
-
},
|
|
7014
|
+
}, O = (j) => {
|
|
7002
7015
|
j && (u.value.reportTheme = ""), j ? (a.value.reportTheme = "", w.value = "告警对象") : (a.value.reportTheme = "", w.value = "请输入");
|
|
7003
7016
|
}, k = () => {
|
|
7004
7017
|
u.value.processTypeId = "", u.value.reason = "", u.value.treatmentPlan = "", u.value.reportPosition = "", u.value.reportTheme = "", u.value.workOrderRules = "", u.value.eventTypeId = "", u.value.eventLevelId = "", u.value.timeLimit = "";
|
|
7005
7018
|
}, F = () => {
|
|
7006
|
-
a.value.processTypeId = "confirm", a.value.reason = "", a.value.treatmentPlan = "", a.value.remarks = "", a.value.reportPosition = "", a.value.reportTheme = "", a.value.workOrderRules = null, E.value = !0, R.value = !0,
|
|
7019
|
+
a.value.processTypeId = "confirm", a.value.reason = "", a.value.treatmentPlan = "", a.value.remarks = "", a.value.reportPosition = "", a.value.reportTheme = "", a.value.workOrderRules = null, E.value = !0, R.value = !0, A.value = !0, a.value.reportTheme = J("告警对象").value, d.value = "", y.value = "告警对象位置", w.value = "请输入", a.value.eventTypeId = "", a.value.eventLevelId = null, a.value.timeLimit = "", a.value.interval = 1, p.value = [], f.value = [];
|
|
7007
7020
|
}, z = (j) => {
|
|
7008
7021
|
j == "eventTypeId" && (a.value.eventLevelId = null, ce()), j == "eventLevelId" && fe(), j == "interval" && (u.value.timeLimit = "", a.value.interval == 3 ? (h.value = !0, a.value.timeLimit = "") : h.value = !1);
|
|
7009
|
-
},
|
|
7010
|
-
const [j,
|
|
7022
|
+
}, te = async () => {
|
|
7023
|
+
const [j, T] = await gg().run();
|
|
7011
7024
|
if (j) return {};
|
|
7012
|
-
p.value =
|
|
7025
|
+
p.value = T, a.value.eventTypeId || (a.value.eventTypeId = T[0] ? T[0].id : null), ce();
|
|
7013
7026
|
}, ce = async () => {
|
|
7014
7027
|
const j = {
|
|
7015
7028
|
eventTypeId: a.value.eventTypeId
|
|
7016
|
-
}, [
|
|
7017
|
-
if (
|
|
7029
|
+
}, [T, x] = await mg(j).run();
|
|
7030
|
+
if (T) return {};
|
|
7018
7031
|
const Ne = { 1: "一级", 2: "二级", 3: "三级", 4: "四级" };
|
|
7019
|
-
f.value =
|
|
7020
|
-
id: `${
|
|
7021
|
-
name: Ne[
|
|
7022
|
-
})),
|
|
7032
|
+
f.value = x.map((on) => ({
|
|
7033
|
+
id: `${on}`,
|
|
7034
|
+
name: Ne[on] ? Ne[on] : on
|
|
7035
|
+
})), x.length && !a.value.eventLevelId && (a.value.eventLevelId = f.value[0].id, fe());
|
|
7023
7036
|
}, fe = async () => {
|
|
7024
7037
|
const j = {
|
|
7025
7038
|
eventTypeId: a.value.eventTypeId,
|
|
7026
7039
|
eventLevel: a.value.eventLevelId
|
|
7027
|
-
}, [
|
|
7028
|
-
if (
|
|
7029
|
-
a.value.interval =
|
|
7040
|
+
}, [T, x] = await vg(j).run();
|
|
7041
|
+
if (T) return {};
|
|
7042
|
+
a.value.interval = x.handleTimeUnit, x.handleTimeUnit == 3 ? a.value.timeLimit = "" : a.value.timeLimit = x.handleTime;
|
|
7030
7043
|
}, me = (j) => {
|
|
7031
7044
|
k();
|
|
7032
7045
|
}, $e = async () => {
|
|
@@ -7036,14 +7049,14 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
7036
7049
|
projectId: o.projectId
|
|
7037
7050
|
};
|
|
7038
7051
|
s.value = !0;
|
|
7039
|
-
const [
|
|
7040
|
-
if (
|
|
7052
|
+
const [T, x] = await lg(j).run();
|
|
7053
|
+
if (T) {
|
|
7041
7054
|
s.value = !1;
|
|
7042
7055
|
return;
|
|
7043
7056
|
}
|
|
7044
|
-
s.value = !1, _.value =
|
|
7057
|
+
s.value = !1, _.value = x;
|
|
7045
7058
|
for (let Ne = 0; Ne < _.value.length; Ne++)
|
|
7046
|
-
_.value[Ne].id === "createorder" && Y(), _.value[Ne].id === "createcontingency" &&
|
|
7059
|
+
_.value[Ne].id === "createorder" && Y(), _.value[Ne].id === "createcontingency" && te();
|
|
7047
7060
|
}, nt = () => {
|
|
7048
7061
|
let j = !0;
|
|
7049
7062
|
if (a.value.processTypeId == "dealwith")
|
|
@@ -7051,8 +7064,8 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
7051
7064
|
else if (a.value.processTypeId == "createorder")
|
|
7052
7065
|
E.value ? u.value.reportPosition = "" : !a.value.reportPosition && !a.value.customPath ? (j = !1, u.value.reportPosition = J("必填").value) : u.value.reportPosition = "", R.value || a.value.reportTheme ? u.value.reportTheme = "" : (j = !1, u.value.reportTheme = J("必填,最多20个汉字/字符").value), a.value.workOrderRules ? u.value.workOrderRules = "" : (j = !1, u.value.workOrderRules = J("必填").value);
|
|
7053
7066
|
else if (a.value.processTypeId == "createcontingency") {
|
|
7054
|
-
const
|
|
7055
|
-
a.value.eventTypeId || (j = !1, u.value.eventTypeId = J("必选").value), a.value.eventLevelId || (j = !1, u.value.eventLevelId = J("必选").value), a.value.interval != 3 && !
|
|
7067
|
+
const T = /^[1-9][0-9]{0,2}$/;
|
|
7068
|
+
a.value.eventTypeId || (j = !1, u.value.eventTypeId = J("必选").value), a.value.eventLevelId || (j = !1, u.value.eventLevelId = J("必选").value), a.value.interval != 3 && !T.test(a.value.timeLimit) && (j = !1, u.value.timeLimit = J("必填,请输入1~999之间的正整数").value);
|
|
7056
7069
|
}
|
|
7057
7070
|
return j;
|
|
7058
7071
|
}, Je = () => {
|
|
@@ -7070,12 +7083,12 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
7070
7083
|
//处理类型id
|
|
7071
7084
|
};
|
|
7072
7085
|
a.value.processTypeId === "createorder" ? (j.path = E.value ? "" : a.value.customPath, j.topic = R.value ? "" : a.value.reportTheme, j.spaceId = E.value ? "" : a.value.reportPosition ?? "", j.orderId = a.value.workOrderRules) : a.value.processTypeId === "createcontingency" ? (j.eventTypeId = a.value.eventTypeId, j.eventLevelId = a.value.eventLevelId, j.timeLimit = a.value.interval == 3 ? null : Number(a.value.timeLimit), j.interval = a.value.interval) : (j.reason = a.value.reason, j.treatmentPlan = a.value.treatmentPlan, j.remarks = a.value.remarks), s.value = !0, r("emitFn", "startHandle");
|
|
7073
|
-
const [
|
|
7086
|
+
const [T, x] = await ug(j, {
|
|
7074
7087
|
params: {
|
|
7075
7088
|
projectId: o.projectId
|
|
7076
7089
|
}
|
|
7077
7090
|
}).run();
|
|
7078
|
-
if (
|
|
7091
|
+
if (T) {
|
|
7079
7092
|
s.value = !1;
|
|
7080
7093
|
return;
|
|
7081
7094
|
}
|
|
@@ -7088,10 +7101,10 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
7088
7101
|
return e({
|
|
7089
7102
|
open: Ie,
|
|
7090
7103
|
close: Re
|
|
7091
|
-
}), (j,
|
|
7092
|
-
q(v(
|
|
7104
|
+
}), (j, T) => (N(), X("div", yg, [
|
|
7105
|
+
q(v(uo), {
|
|
7093
7106
|
modelValue: l.value,
|
|
7094
|
-
"onUpdate:modelValue":
|
|
7107
|
+
"onUpdate:modelValue": T[31] || (T[31] = (x) => l.value = x),
|
|
7095
7108
|
type: "basic",
|
|
7096
7109
|
size: "small",
|
|
7097
7110
|
height: 500,
|
|
@@ -7109,8 +7122,8 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
7109
7122
|
)
|
|
7110
7123
|
]),
|
|
7111
7124
|
footer: B(() => [
|
|
7112
|
-
H("div",
|
|
7113
|
-
q(v(
|
|
7125
|
+
H("div", Sg, [
|
|
7126
|
+
q(v(Tt), {
|
|
7114
7127
|
size: "middle",
|
|
7115
7128
|
onClick: Je
|
|
7116
7129
|
}, {
|
|
@@ -7124,9 +7137,9 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
7124
7137
|
_: 1
|
|
7125
7138
|
/* STABLE */
|
|
7126
7139
|
}),
|
|
7127
|
-
q(v(
|
|
7140
|
+
q(v(Tt), {
|
|
7128
7141
|
size: "middle",
|
|
7129
|
-
onClick:
|
|
7142
|
+
onClick: T[29] || (T[29] = (x) => ot(1))
|
|
7130
7143
|
}, {
|
|
7131
7144
|
default: B(() => [
|
|
7132
7145
|
qe(
|
|
@@ -7138,10 +7151,10 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
7138
7151
|
_: 1
|
|
7139
7152
|
/* STABLE */
|
|
7140
7153
|
}),
|
|
7141
|
-
q(v(
|
|
7154
|
+
q(v(Tt), {
|
|
7142
7155
|
btnType: "primary",
|
|
7143
7156
|
size: "middle",
|
|
7144
|
-
onClick:
|
|
7157
|
+
onClick: T[30] || (T[30] = (x) => ot(2))
|
|
7145
7158
|
}, {
|
|
7146
7159
|
default: B(() => [
|
|
7147
7160
|
qe(
|
|
@@ -7177,7 +7190,7 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
7177
7190
|
required: "",
|
|
7178
7191
|
type: "select",
|
|
7179
7192
|
modelValue: a.value.processTypeId,
|
|
7180
|
-
"onUpdate:modelValue":
|
|
7193
|
+
"onUpdate:modelValue": T[0] || (T[0] = (x) => a.value.processTypeId = x),
|
|
7181
7194
|
options: _.value,
|
|
7182
7195
|
col: 1,
|
|
7183
7196
|
optionsLabelKey: "name",
|
|
@@ -7194,11 +7207,11 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
7194
7207
|
type: "input",
|
|
7195
7208
|
maxlength: "50",
|
|
7196
7209
|
col: 1,
|
|
7197
|
-
onFocus:
|
|
7210
|
+
onFocus: T[1] || (T[1] = (x) => u.value.reason = ""),
|
|
7198
7211
|
modelValue: a.value.reason,
|
|
7199
|
-
"onUpdate:modelValue":
|
|
7212
|
+
"onUpdate:modelValue": T[2] || (T[2] = (x) => a.value.reason = x),
|
|
7200
7213
|
error: u.value.reason,
|
|
7201
|
-
"onUpdate:error":
|
|
7214
|
+
"onUpdate:error": T[3] || (T[3] = (x) => u.value.reason = x),
|
|
7202
7215
|
marginBottom: "30px",
|
|
7203
7216
|
marginRight: "0"
|
|
7204
7217
|
}, null, 8, ["label", "required", "modelValue", "error"])) : W("v-if", !0),
|
|
@@ -7209,11 +7222,11 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
7209
7222
|
type: "input",
|
|
7210
7223
|
maxlength: "50",
|
|
7211
7224
|
col: 1,
|
|
7212
|
-
onFocus:
|
|
7225
|
+
onFocus: T[4] || (T[4] = (x) => u.value.treatmentPlan = ""),
|
|
7213
7226
|
modelValue: a.value.treatmentPlan,
|
|
7214
|
-
"onUpdate:modelValue":
|
|
7227
|
+
"onUpdate:modelValue": T[5] || (T[5] = (x) => a.value.treatmentPlan = x),
|
|
7215
7228
|
error: u.value.treatmentPlan,
|
|
7216
|
-
"onUpdate:error":
|
|
7229
|
+
"onUpdate:error": T[6] || (T[6] = (x) => u.value.treatmentPlan = x),
|
|
7217
7230
|
marginBottom: "30px",
|
|
7218
7231
|
marginRight: "0"
|
|
7219
7232
|
}, null, 8, ["label", "required", "modelValue", "error"])) : W("v-if", !0),
|
|
@@ -7226,7 +7239,7 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
7226
7239
|
maxlength: "100",
|
|
7227
7240
|
col: 1,
|
|
7228
7241
|
modelValue: a.value.remarks,
|
|
7229
|
-
"onUpdate:modelValue":
|
|
7242
|
+
"onUpdate:modelValue": T[7] || (T[7] = (x) => a.value.remarks = x),
|
|
7230
7243
|
marginBottom: "30px",
|
|
7231
7244
|
marginRight: "0"
|
|
7232
7245
|
}, null, 8, ["label", "modelValue"])) : W("v-if", !0),
|
|
@@ -7236,22 +7249,22 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
7236
7249
|
required: "",
|
|
7237
7250
|
type: "custom",
|
|
7238
7251
|
error: u.value.reportPosition,
|
|
7239
|
-
"onUpdate:error":
|
|
7252
|
+
"onUpdate:error": T[13] || (T[13] = (x) => u.value.reportPosition = x),
|
|
7240
7253
|
marginBottom: "20px",
|
|
7241
7254
|
marginRight: "0"
|
|
7242
7255
|
}, {
|
|
7243
7256
|
default: B(() => [
|
|
7244
|
-
H("div",
|
|
7245
|
-
H("div",
|
|
7257
|
+
H("div", _g, [
|
|
7258
|
+
H("div", bg, [
|
|
7246
7259
|
q(v(Ui), {
|
|
7247
7260
|
borderType: "underline",
|
|
7248
7261
|
props: { disabled: "_disabled", label: "name" },
|
|
7249
7262
|
modelValue: a.value.reportPosition,
|
|
7250
|
-
"onUpdate:modelValue":
|
|
7263
|
+
"onUpdate:modelValue": T[8] || (T[8] = (x) => a.value.reportPosition = x),
|
|
7251
7264
|
path: d.value,
|
|
7252
|
-
"onUpdate:path":
|
|
7265
|
+
"onUpdate:path": T[9] || (T[9] = (x) => d.value = x),
|
|
7253
7266
|
keyword: S.value,
|
|
7254
|
-
"onUpdate:keyword":
|
|
7267
|
+
"onUpdate:keyword": T[10] || (T[10] = (x) => S.value = x),
|
|
7255
7268
|
showFullPath: !0,
|
|
7256
7269
|
data: m.value,
|
|
7257
7270
|
placeholder: y.value,
|
|
@@ -7265,15 +7278,15 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
7265
7278
|
q(v(Do), {
|
|
7266
7279
|
ref: "testInput",
|
|
7267
7280
|
modelValue: a.value.customPath,
|
|
7268
|
-
"onUpdate:modelValue":
|
|
7281
|
+
"onUpdate:modelValue": T[11] || (T[11] = (x) => a.value.customPath = x),
|
|
7269
7282
|
placeholder: "选填",
|
|
7270
7283
|
disabled: I.value,
|
|
7271
7284
|
maxlength: "20"
|
|
7272
7285
|
}, null, 8, ["modelValue", "disabled"])
|
|
7273
7286
|
]),
|
|
7274
|
-
q(v(
|
|
7287
|
+
q(v(xo), {
|
|
7275
7288
|
modelValue: E.value,
|
|
7276
|
-
"onUpdate:modelValue":
|
|
7289
|
+
"onUpdate:modelValue": T[12] || (T[12] = (x) => E.value = x),
|
|
7277
7290
|
checkboxType: "default",
|
|
7278
7291
|
onChange: M,
|
|
7279
7292
|
size: "middle"
|
|
@@ -7299,25 +7312,25 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
7299
7312
|
required: "",
|
|
7300
7313
|
type: "custom",
|
|
7301
7314
|
error: u.value.reportTheme,
|
|
7302
|
-
"onUpdate:error":
|
|
7315
|
+
"onUpdate:error": T[16] || (T[16] = (x) => u.value.reportTheme = x),
|
|
7303
7316
|
marginBottom: "20px",
|
|
7304
7317
|
marginRight: "0"
|
|
7305
7318
|
}, {
|
|
7306
7319
|
default: B(() => [
|
|
7307
|
-
H("div",
|
|
7320
|
+
H("div", wg, [
|
|
7308
7321
|
q(v(Do), {
|
|
7309
7322
|
maxlength: "20",
|
|
7310
|
-
disabled:
|
|
7323
|
+
disabled: A.value,
|
|
7311
7324
|
modelValue: a.value.reportTheme,
|
|
7312
|
-
"onUpdate:modelValue":
|
|
7325
|
+
"onUpdate:modelValue": T[14] || (T[14] = (x) => a.value.reportTheme = x),
|
|
7313
7326
|
placeholder: w.value,
|
|
7314
7327
|
onChange: U
|
|
7315
7328
|
}, null, 8, ["disabled", "modelValue", "placeholder"]),
|
|
7316
|
-
q(v(
|
|
7329
|
+
q(v(xo), {
|
|
7317
7330
|
modelValue: R.value,
|
|
7318
|
-
"onUpdate:modelValue":
|
|
7331
|
+
"onUpdate:modelValue": T[15] || (T[15] = (x) => R.value = x),
|
|
7319
7332
|
checkboxType: "default",
|
|
7320
|
-
onChange:
|
|
7333
|
+
onChange: O,
|
|
7321
7334
|
size: "middle"
|
|
7322
7335
|
}, {
|
|
7323
7336
|
default: B(() => [
|
|
@@ -7341,9 +7354,9 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
7341
7354
|
required: "",
|
|
7342
7355
|
type: "select",
|
|
7343
7356
|
modelValue: a.value.workOrderRules,
|
|
7344
|
-
"onUpdate:modelValue":
|
|
7357
|
+
"onUpdate:modelValue": T[17] || (T[17] = (x) => a.value.workOrderRules = x),
|
|
7345
7358
|
error: u.value.workOrderRules,
|
|
7346
|
-
"onUpdate:error":
|
|
7359
|
+
"onUpdate:error": T[18] || (T[18] = (x) => u.value.workOrderRules = x),
|
|
7347
7360
|
options: $.value,
|
|
7348
7361
|
col: 1,
|
|
7349
7362
|
optionsLabelKey: "name",
|
|
@@ -7359,9 +7372,9 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
7359
7372
|
required: "",
|
|
7360
7373
|
type: "select",
|
|
7361
7374
|
modelValue: a.value.eventTypeId,
|
|
7362
|
-
"onUpdate:modelValue":
|
|
7375
|
+
"onUpdate:modelValue": T[19] || (T[19] = (x) => a.value.eventTypeId = x),
|
|
7363
7376
|
error: u.value.eventTypeId,
|
|
7364
|
-
"onUpdate:error":
|
|
7377
|
+
"onUpdate:error": T[20] || (T[20] = (x) => u.value.eventTypeId = x),
|
|
7365
7378
|
options: p.value,
|
|
7366
7379
|
col: 1,
|
|
7367
7380
|
optionsLabelKey: "typeName",
|
|
@@ -7369,7 +7382,7 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
7369
7382
|
"get-popup-container": re,
|
|
7370
7383
|
marginBottom: "30px",
|
|
7371
7384
|
marginRight: "0",
|
|
7372
|
-
onChange:
|
|
7385
|
+
onChange: T[21] || (T[21] = (x) => z("eventTypeId"))
|
|
7373
7386
|
}, null, 8, ["label", "modelValue", "error", "options"])) : W("v-if", !0),
|
|
7374
7387
|
a.value.processTypeId == "createcontingency" ? (N(), Q(v(We), {
|
|
7375
7388
|
key: 7,
|
|
@@ -7377,9 +7390,9 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
7377
7390
|
required: "",
|
|
7378
7391
|
type: "select",
|
|
7379
7392
|
modelValue: a.value.eventLevelId,
|
|
7380
|
-
"onUpdate:modelValue":
|
|
7393
|
+
"onUpdate:modelValue": T[22] || (T[22] = (x) => a.value.eventLevelId = x),
|
|
7381
7394
|
error: u.value.eventLevelId,
|
|
7382
|
-
"onUpdate:error":
|
|
7395
|
+
"onUpdate:error": T[23] || (T[23] = (x) => u.value.eventLevelId = x),
|
|
7383
7396
|
options: f.value,
|
|
7384
7397
|
col: 1,
|
|
7385
7398
|
optionsLabelKey: "name",
|
|
@@ -7387,7 +7400,7 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
7387
7400
|
"get-popup-container": re,
|
|
7388
7401
|
marginBottom: "30px",
|
|
7389
7402
|
marginRight: "0",
|
|
7390
|
-
onChange:
|
|
7403
|
+
onChange: T[24] || (T[24] = (x) => z("eventLevelId"))
|
|
7391
7404
|
}, null, 8, ["label", "modelValue", "error", "options"])) : W("v-if", !0),
|
|
7392
7405
|
a.value.processTypeId == "createcontingency" ? (N(), Q(v(We), {
|
|
7393
7406
|
key: 8,
|
|
@@ -7397,19 +7410,19 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
7397
7410
|
maxlength: "3",
|
|
7398
7411
|
col: 1,
|
|
7399
7412
|
modelValue: a.value.timeLimit,
|
|
7400
|
-
"onUpdate:modelValue":
|
|
7413
|
+
"onUpdate:modelValue": T[27] || (T[27] = (x) => a.value.timeLimit = x),
|
|
7401
7414
|
error: u.value.timeLimit,
|
|
7402
|
-
"onUpdate:error":
|
|
7415
|
+
"onUpdate:error": T[28] || (T[28] = (x) => u.value.timeLimit = x),
|
|
7403
7416
|
disabled: a.value.interval == 3,
|
|
7404
7417
|
marginBottom: "30px",
|
|
7405
7418
|
marginRight: "0"
|
|
7406
7419
|
}, {
|
|
7407
7420
|
default: B(() => [
|
|
7408
|
-
H("div",
|
|
7421
|
+
H("div", Ig, [
|
|
7409
7422
|
q(v(Ni), {
|
|
7410
7423
|
class: "select",
|
|
7411
7424
|
modelValue: a.value.interval,
|
|
7412
|
-
"onUpdate:modelValue":
|
|
7425
|
+
"onUpdate:modelValue": T[25] || (T[25] = (x) => a.value.interval = x),
|
|
7413
7426
|
width: "64px",
|
|
7414
7427
|
fieldNames: {
|
|
7415
7428
|
value: "id",
|
|
@@ -7419,7 +7432,7 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
7419
7432
|
"border-type": "underline",
|
|
7420
7433
|
size: "small",
|
|
7421
7434
|
"get-popup-container": re,
|
|
7422
|
-
onChange:
|
|
7435
|
+
onChange: T[26] || (T[26] = (x) => z("interval")),
|
|
7423
7436
|
placeholder: "请选择"
|
|
7424
7437
|
}, null, 8, ["modelValue", "options"])
|
|
7425
7438
|
])
|
|
@@ -7445,24 +7458,24 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
7445
7458
|
}, 8, ["modelValue"])
|
|
7446
7459
|
]));
|
|
7447
7460
|
}
|
|
7448
|
-
}), Ag = /* @__PURE__ */ je(
|
|
7461
|
+
}), Ag = /* @__PURE__ */ je(Tg, [["__scopeId", "data-v-a6a58a01"]]), kg = (t, e, n) => ({
|
|
7449
7462
|
handleAlarmVue: () => Ce(Ag, {
|
|
7450
7463
|
handerIds: e.value,
|
|
7451
|
-
projectId:
|
|
7464
|
+
projectId: Sn().id,
|
|
7452
7465
|
ref: t,
|
|
7453
7466
|
onEmitFn: (r, s) => {
|
|
7454
7467
|
}
|
|
7455
7468
|
})
|
|
7456
|
-
}),
|
|
7469
|
+
}), $g = { class: "alarm-msg" }, Eg = { style: { position: "relative" } }, Pg = { class: "title-left" }, Lg = { class: "title-box" }, Mg = /* @__PURE__ */ H(
|
|
7457
7470
|
"div",
|
|
7458
7471
|
{ class: "title-right" },
|
|
7459
7472
|
null,
|
|
7460
7473
|
-1
|
|
7461
7474
|
/* HOISTED */
|
|
7462
|
-
),
|
|
7475
|
+
), Rg = { class: "content-box" }, Dg = { class: "alarm-msg-line" }, xg = { class: "alarm-msg-line-left" }, Og = { class: "alarm-msg-line" }, jg = { class: "alarm-msg-line-left" }, Ng = { class: "alarm-msg-line-right alarm-content-object" }, Ug = { class: "alarm-msg-line" }, Fg = { class: "alarm-msg-line-left" }, Vg = { class: "alarm-msg-line-right alarm-content" }, Hg = { class: "btn-box" }, Bg = {
|
|
7463
7476
|
name: "alarm"
|
|
7464
|
-
},
|
|
7465
|
-
...
|
|
7477
|
+
}, Wg = /* @__PURE__ */ pe({
|
|
7478
|
+
...Bg,
|
|
7466
7479
|
props: {
|
|
7467
7480
|
alarmhandle: { type: Boolean, default: !1 },
|
|
7468
7481
|
msgItem: { default: {} }
|
|
@@ -7479,37 +7492,37 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
7479
7492
|
null,
|
|
7480
7493
|
[
|
|
7481
7494
|
W(` <div class="alarm-msg" :style="{ 'border-color': msgItem.color }"> `),
|
|
7482
|
-
H("div",
|
|
7483
|
-
H("div",
|
|
7495
|
+
H("div", $g, [
|
|
7496
|
+
H("div", Eg, [
|
|
7484
7497
|
H(
|
|
7485
7498
|
"div",
|
|
7486
7499
|
{
|
|
7487
|
-
style:
|
|
7500
|
+
style: Hn({ "background-color": i.msgItem.color }),
|
|
7488
7501
|
class: "title-detail"
|
|
7489
7502
|
},
|
|
7490
7503
|
[
|
|
7491
|
-
H("div",
|
|
7504
|
+
H("div", Pg, [
|
|
7492
7505
|
W(` <div class="icon-box" :style="{ color: msgItem.color }">
|
|
7493
7506
|
!
|
|
7494
7507
|
</div> `),
|
|
7495
7508
|
H(
|
|
7496
7509
|
"div",
|
|
7497
|
-
|
|
7510
|
+
Lg,
|
|
7498
7511
|
we(v(J)("新告警").value),
|
|
7499
7512
|
1
|
|
7500
7513
|
/* TEXT */
|
|
7501
7514
|
)
|
|
7502
7515
|
]),
|
|
7503
|
-
|
|
7516
|
+
Mg
|
|
7504
7517
|
],
|
|
7505
7518
|
4
|
|
7506
7519
|
/* STYLE */
|
|
7507
7520
|
),
|
|
7508
|
-
H("div",
|
|
7509
|
-
H("div",
|
|
7521
|
+
H("div", Rg, [
|
|
7522
|
+
H("div", Dg, [
|
|
7510
7523
|
H(
|
|
7511
7524
|
"div",
|
|
7512
|
-
|
|
7525
|
+
xg,
|
|
7513
7526
|
we(v(J)("告警等级:").value),
|
|
7514
7527
|
1
|
|
7515
7528
|
/* TEXT */
|
|
@@ -7518,7 +7531,7 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
7518
7531
|
"div",
|
|
7519
7532
|
{
|
|
7520
7533
|
class: "alarm-msg-line-right alarm-content-object",
|
|
7521
|
-
style:
|
|
7534
|
+
style: Hn({ color: i.msgItem.color })
|
|
7522
7535
|
},
|
|
7523
7536
|
we(i.msgItem.alarmLevelName || ""),
|
|
7524
7537
|
5
|
|
@@ -7528,37 +7541,37 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
7528
7541
|
H("div", Og, [
|
|
7529
7542
|
H(
|
|
7530
7543
|
"div",
|
|
7531
|
-
|
|
7544
|
+
jg,
|
|
7532
7545
|
we(v(J)("告警对象:").value),
|
|
7533
7546
|
1
|
|
7534
7547
|
/* TEXT */
|
|
7535
7548
|
),
|
|
7536
7549
|
H(
|
|
7537
7550
|
"div",
|
|
7538
|
-
|
|
7551
|
+
Ng,
|
|
7539
7552
|
we(i.msgItem.equipmentName || ""),
|
|
7540
7553
|
1
|
|
7541
7554
|
/* TEXT */
|
|
7542
7555
|
)
|
|
7543
7556
|
]),
|
|
7544
|
-
H("div",
|
|
7557
|
+
H("div", Ug, [
|
|
7545
7558
|
H(
|
|
7546
7559
|
"div",
|
|
7547
|
-
|
|
7560
|
+
Fg,
|
|
7548
7561
|
we(v(J)("告警内容:").value),
|
|
7549
7562
|
1
|
|
7550
7563
|
/* TEXT */
|
|
7551
7564
|
),
|
|
7552
7565
|
H(
|
|
7553
7566
|
"div",
|
|
7554
|
-
|
|
7567
|
+
Vg,
|
|
7555
7568
|
we(i.msgItem.alarmContent || ""),
|
|
7556
7569
|
1
|
|
7557
7570
|
/* TEXT */
|
|
7558
7571
|
)
|
|
7559
7572
|
]),
|
|
7560
|
-
H("div",
|
|
7561
|
-
i.msgItem.equipmentCode && i.msgItem.equipmentPanelCode ? (N(), Q(v(
|
|
7573
|
+
H("div", Hg, [
|
|
7574
|
+
i.msgItem.equipmentCode && i.msgItem.equipmentPanelCode ? (N(), Q(v(Tt), {
|
|
7562
7575
|
key: 0,
|
|
7563
7576
|
block: "",
|
|
7564
7577
|
onClick: ve(s, ["stop"]),
|
|
@@ -7575,7 +7588,7 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
7575
7588
|
_: 1
|
|
7576
7589
|
/* STABLE */
|
|
7577
7590
|
})) : W("v-if", !0),
|
|
7578
|
-
i.alarmhandle ? (N(), Q(v(
|
|
7591
|
+
i.alarmhandle ? (N(), Q(v(Tt), {
|
|
7579
7592
|
key: 1,
|
|
7580
7593
|
block: "",
|
|
7581
7594
|
btnType: "primary-text",
|
|
@@ -7602,7 +7615,7 @@ const ng = vt(`/api/tool/event-bus/${En}/`), Un = ng.post("/publish"), og = io.g
|
|
|
7602
7615
|
));
|
|
7603
7616
|
}
|
|
7604
7617
|
});
|
|
7605
|
-
let
|
|
7618
|
+
let qg = (t = 21) => {
|
|
7606
7619
|
let e = "", n = crypto.getRandomValues(new Uint8Array(t));
|
|
7607
7620
|
for (; t--; ) {
|
|
7608
7621
|
let o = n[t] & 63;
|
|
@@ -7610,7 +7623,7 @@ let Wg = (t = 21) => {
|
|
|
7610
7623
|
}
|
|
7611
7624
|
return e;
|
|
7612
7625
|
};
|
|
7613
|
-
const
|
|
7626
|
+
const zg = () => {
|
|
7614
7627
|
const t = C(null), e = C(0), n = C(null), o = C(null), r = C([]), s = C([]), i = C(!1), c = C(!1), l = C(!1), a = C({
|
|
7615
7628
|
playId: "",
|
|
7616
7629
|
// 播放的告警的recordId
|
|
@@ -7628,19 +7641,19 @@ const qg = () => {
|
|
|
7628
7641
|
// 轮播-无限次播放
|
|
7629
7642
|
});
|
|
7630
7643
|
_e.addEventListenerFromMicroApp("alarm:change-alarmconfig", (P) => {
|
|
7631
|
-
const { isRealTimeAlarm:
|
|
7632
|
-
|
|
7644
|
+
const { isRealTimeAlarm: A, audioPlay: R } = P.data;
|
|
7645
|
+
A != null && (c.value = A), R != null && (l.value = R, l.value || S());
|
|
7633
7646
|
});
|
|
7634
7647
|
const u = (P) => {
|
|
7635
7648
|
var R;
|
|
7636
|
-
const
|
|
7637
|
-
|
|
7638
|
-
}, { entryApp: h } =
|
|
7649
|
+
const A = [];
|
|
7650
|
+
A.push({ alarmId: P.recordId }), r.value = A, (R = n.value) == null || R.open();
|
|
7651
|
+
}, { entryApp: h } = vn.hooks.useEntryApp(), p = (P) => {
|
|
7639
7652
|
qr(P.equipmentCode, P.equipmentPanelCode);
|
|
7640
|
-
}, { handleAlarmVue: f } =
|
|
7653
|
+
}, { handleAlarmVue: f } = kg(n, r), g = async () => {
|
|
7641
7654
|
var R;
|
|
7642
|
-
const
|
|
7643
|
-
|
|
7655
|
+
const A = (((R = ae().appcategorys) == null ? void 0 : R.map(($) => $.apps).flat()) ?? []).find(($) => $.code === "alarm");
|
|
7656
|
+
A && h({ microApp: A, menuPath: `/${A.routeUrl}/realTimeAlarm` });
|
|
7644
7657
|
}, _ = [], d = (P) => {
|
|
7645
7658
|
if (_.push(P), s.value.length < 2) {
|
|
7646
7659
|
y(_[0]), _.shift();
|
|
@@ -7648,13 +7661,13 @@ const qg = () => {
|
|
|
7648
7661
|
}
|
|
7649
7662
|
}, y = (P) => {
|
|
7650
7663
|
if (!P) return;
|
|
7651
|
-
const
|
|
7652
|
-
|
|
7653
|
-
key:
|
|
7664
|
+
const A = qg();
|
|
7665
|
+
gn.open({
|
|
7666
|
+
key: A,
|
|
7654
7667
|
class: "alarm-notify",
|
|
7655
7668
|
message: J("新告警").value,
|
|
7656
7669
|
placement: "bottomRight",
|
|
7657
|
-
description: Ce(
|
|
7670
|
+
description: Ce(Wg, {
|
|
7658
7671
|
msgItem: P,
|
|
7659
7672
|
alarmhandle: i.value,
|
|
7660
7673
|
onHanderDetail: p,
|
|
@@ -7666,14 +7679,14 @@ const qg = () => {
|
|
|
7666
7679
|
},
|
|
7667
7680
|
onClose: () => {
|
|
7668
7681
|
setTimeout(() => {
|
|
7669
|
-
const R = s.value.findIndex(($) => $ ==
|
|
7682
|
+
const R = s.value.findIndex(($) => $ == A);
|
|
7670
7683
|
if (R >= 0 && s.value.splice(R, 1), s.value.length < 2 && _.length) {
|
|
7671
7684
|
y(_[0]), _.shift();
|
|
7672
7685
|
return;
|
|
7673
7686
|
}
|
|
7674
7687
|
}, 300);
|
|
7675
7688
|
}
|
|
7676
|
-
}), s.value.includes(
|
|
7689
|
+
}), s.value.includes(A) || s.value.push(A), w(P);
|
|
7677
7690
|
}, w = (P) => {
|
|
7678
7691
|
if (P) {
|
|
7679
7692
|
if (!l.value) {
|
|
@@ -7689,8 +7702,8 @@ const qg = () => {
|
|
|
7689
7702
|
}
|
|
7690
7703
|
}
|
|
7691
7704
|
}, m = (P) => {
|
|
7692
|
-
const
|
|
7693
|
-
a.value.isplay && a.value.playId == P.recordId ? S() : (
|
|
7705
|
+
const A = Number(P.noticeNum), R = location.origin + "/oss";
|
|
7706
|
+
a.value.isplay && a.value.playId == P.recordId ? S() : (A < 0 ? a.value.loop = !0 : a.value.loop = !1, A > 0 ? (a.value.loopTotalCount = Number(P.noticeNum), a.value.loopCount = 0) : (a.value.loopTotalCount = 0, a.value.loopCount = 0), a.value.isplay = !0, a.value.playId = P.recordId, a.value.playLine = Number(P.alarmLevelId), a.value.playPath = R + P.noticePath, I());
|
|
7694
7707
|
}, S = () => {
|
|
7695
7708
|
a.value.playId = "", a.value.playPath = "", a.value.playLine = null, a.value.loopCount = 0, a.value.loopTotalCount = 0, a.value.isplay = !1, a.value.loop = !1;
|
|
7696
7709
|
}, I = () => {
|
|
@@ -7698,8 +7711,8 @@ const qg = () => {
|
|
|
7698
7711
|
a.value.loopCount = a.value.loopCount + 1, a.value.loopTotalCount && a.value.loopTotalCount && (a.value.loopCount == a.value.loopTotalCount ? (a.value.playPath = "", a.value.isplay = !1, a.value.playId = "", a.value.loopTotalCount = 0, a.value.loopCount = 0, a.value.playLine = null) : o.value.play());
|
|
7699
7712
|
};
|
|
7700
7713
|
}, E = async () => {
|
|
7701
|
-
const [P,
|
|
7702
|
-
P || (l.value =
|
|
7714
|
+
const [P, A] = await dg().run();
|
|
7715
|
+
P || (l.value = A.isEnable);
|
|
7703
7716
|
};
|
|
7704
7717
|
return {
|
|
7705
7718
|
alarmSocket: t,
|
|
@@ -7709,17 +7722,17 @@ const qg = () => {
|
|
|
7709
7722
|
handleAlarmVue: f,
|
|
7710
7723
|
creatAlarmSocket: async () => {
|
|
7711
7724
|
E();
|
|
7712
|
-
const [P,
|
|
7725
|
+
const [P, A] = await ag().run({
|
|
7713
7726
|
code: "alarm",
|
|
7714
7727
|
showBtn: !0
|
|
7715
7728
|
});
|
|
7716
|
-
if (P || !
|
|
7729
|
+
if (P || !A || !A.length) return;
|
|
7717
7730
|
let R = !1;
|
|
7718
|
-
|
|
7731
|
+
A.forEach(($) => {
|
|
7719
7732
|
$.code === "alarm.realTimeAlarm" && (R = !0, $.children && $.children.length ? $.children.forEach((Y) => {
|
|
7720
7733
|
Y.code == "alarm.realTimeAlarm.handle" ? i.value = !0 : i.value = !1;
|
|
7721
7734
|
}) : i.value = !1);
|
|
7722
|
-
}), R && (t.value = new
|
|
7735
|
+
}), R && (t.value = new po({
|
|
7723
7736
|
url: "/api/alarm/socket/v1/record/subscribe",
|
|
7724
7737
|
reconnectWhenClose: !0,
|
|
7725
7738
|
opened: () => {
|
|
@@ -7732,13 +7745,13 @@ const qg = () => {
|
|
|
7732
7745
|
}));
|
|
7733
7746
|
}
|
|
7734
7747
|
};
|
|
7735
|
-
},
|
|
7748
|
+
}, Kg = ["src", "muted", "loop"], Jg = /* @__PURE__ */ pe({
|
|
7736
7749
|
__name: "index",
|
|
7737
7750
|
setup(t) {
|
|
7738
|
-
const { alarmSocket: e, creatAlarmSocket: n, audioObj: o, audioAlarmRef: r, handleAlarmVue: s } =
|
|
7751
|
+
const { alarmSocket: e, creatAlarmSocket: n, audioObj: o, audioAlarmRef: r, handleAlarmVue: s } = zg();
|
|
7739
7752
|
return it(async () => {
|
|
7740
|
-
await
|
|
7741
|
-
}),
|
|
7753
|
+
await Cn(), n();
|
|
7754
|
+
}), In(() => {
|
|
7742
7755
|
e.value && e.value.disconnect(), e.value = null;
|
|
7743
7756
|
}), (i, c) => (N(), X(
|
|
7744
7757
|
He,
|
|
@@ -7753,21 +7766,21 @@ const qg = () => {
|
|
|
7753
7766
|
muted: !v(o).isplay,
|
|
7754
7767
|
loop: v(o).loop,
|
|
7755
7768
|
autoplay: ""
|
|
7756
|
-
}, null, 8,
|
|
7769
|
+
}, null, 8, Kg)
|
|
7757
7770
|
],
|
|
7758
7771
|
64
|
|
7759
7772
|
/* STABLE_FRAGMENT */
|
|
7760
7773
|
));
|
|
7761
7774
|
}
|
|
7762
|
-
}),
|
|
7775
|
+
}), Gg = { class: "das-main-app-container" }, Qg = /* @__PURE__ */ pe({
|
|
7763
7776
|
__name: "index",
|
|
7764
7777
|
setup(t) {
|
|
7765
|
-
const { isFullscreen: e } =
|
|
7766
|
-
bf(), yf(),
|
|
7767
|
-
const { $changePwd: u, $personSetDialog: h } =
|
|
7778
|
+
const { isFullscreen: e } = Dt(), n = K(() => !e.value), o = K(() => ee.excludeRoutes), r = K(() => ee.routeKeepAliveVisible), s = K(() => ({ mode: Hs.value === 1 ? "vertical" : "inline" })), { initNextTick: i } = hf(), { innerPage: c, commandList: l, initNextTick: a } = gf(i);
|
|
7779
|
+
wf(c, i, a), bf(), yf(), Tf();
|
|
7780
|
+
const { $changePwd: u, $personSetDialog: h } = If(), { changeEnterprisesVisible: p, userId: f, tenantId: g, changeEnterprise: _ } = Ws();
|
|
7768
7781
|
vf();
|
|
7769
7782
|
const { fontColor: d, backgroudColor: y, borderColor: w } = _f();
|
|
7770
|
-
return
|
|
7783
|
+
return Mf(), Rf(l), Df(), Of(), hh(), sg(), (m, S) => (N(), X("div", Gg, [
|
|
7771
7784
|
q(v(Dc), { platformInitNextTick: v(i) }, {
|
|
7772
7785
|
default: B(() => [
|
|
7773
7786
|
q(Lc, {
|
|
@@ -7803,69 +7816,69 @@ const qg = () => {
|
|
|
7803
7816
|
W(" 个性化设置 "),
|
|
7804
7817
|
W(' <PersonSetDialog ref="$personSetDialog"></PersonSetDialog> '),
|
|
7805
7818
|
W(" 告警 "),
|
|
7806
|
-
q(v(
|
|
7819
|
+
q(v(Jg))
|
|
7807
7820
|
]));
|
|
7808
7821
|
}
|
|
7809
|
-
}),
|
|
7822
|
+
}), Yg = /* @__PURE__ */ je(Qg, [["__scopeId", "data-v-8a5864d3"]]);
|
|
7810
7823
|
C("@das-fed/web");
|
|
7811
|
-
const
|
|
7824
|
+
const Xg = [
|
|
7812
7825
|
{
|
|
7813
7826
|
path: st,
|
|
7814
|
-
component: () => import("./index-
|
|
7827
|
+
component: () => import("./index-GDnK0PX4.js")
|
|
7815
7828
|
},
|
|
7816
7829
|
{
|
|
7817
7830
|
path: kt,
|
|
7818
|
-
component: () => import("./index-
|
|
7831
|
+
component: () => import("./index-BBbzRiUk.js")
|
|
7819
7832
|
},
|
|
7820
7833
|
{
|
|
7821
7834
|
path: ps,
|
|
7822
|
-
component: () => import("./index-
|
|
7835
|
+
component: () => import("./index-CeDdJysJ.js")
|
|
7823
7836
|
}
|
|
7824
|
-
],
|
|
7825
|
-
routes:
|
|
7826
|
-
Layout:
|
|
7837
|
+
], rv = {
|
|
7838
|
+
routes: Xg,
|
|
7839
|
+
Layout: Yg,
|
|
7827
7840
|
data: {
|
|
7828
7841
|
homeInfo: Vs
|
|
7829
7842
|
},
|
|
7830
7843
|
hooks: {
|
|
7831
|
-
useEntryApp:
|
|
7832
|
-
useEntryMenu:
|
|
7844
|
+
useEntryApp: jt,
|
|
7845
|
+
useEntryMenu: $n
|
|
7833
7846
|
}
|
|
7834
7847
|
};
|
|
7835
7848
|
export {
|
|
7836
|
-
|
|
7849
|
+
Zm as A,
|
|
7837
7850
|
Z as B,
|
|
7838
|
-
|
|
7839
|
-
|
|
7851
|
+
tv as C,
|
|
7852
|
+
nv as D,
|
|
7840
7853
|
ue as E,
|
|
7841
|
-
|
|
7842
|
-
|
|
7854
|
+
ev as F,
|
|
7855
|
+
rv as G,
|
|
7843
7856
|
kt as I,
|
|
7844
7857
|
je as _,
|
|
7845
7858
|
wr as a,
|
|
7846
7859
|
Ir as b,
|
|
7847
|
-
|
|
7848
|
-
|
|
7849
|
-
|
|
7850
|
-
|
|
7860
|
+
Gt as c,
|
|
7861
|
+
Gn as d,
|
|
7862
|
+
pn as e,
|
|
7863
|
+
Vm as f,
|
|
7851
7864
|
$a as g,
|
|
7852
7865
|
Ea as h,
|
|
7853
|
-
|
|
7854
|
-
|
|
7855
|
-
|
|
7856
|
-
|
|
7857
|
-
|
|
7858
|
-
|
|
7859
|
-
|
|
7866
|
+
Hm as i,
|
|
7867
|
+
Wm as j,
|
|
7868
|
+
qm as k,
|
|
7869
|
+
ee as l,
|
|
7870
|
+
_n as m,
|
|
7871
|
+
zm as n,
|
|
7872
|
+
Km as o,
|
|
7860
7873
|
Ra as p,
|
|
7861
|
-
|
|
7874
|
+
At as q,
|
|
7862
7875
|
Bo as r,
|
|
7863
7876
|
Ho as s,
|
|
7864
|
-
|
|
7865
|
-
|
|
7866
|
-
|
|
7867
|
-
|
|
7868
|
-
|
|
7869
|
-
|
|
7870
|
-
|
|
7877
|
+
Bm as t,
|
|
7878
|
+
jt as u,
|
|
7879
|
+
Jm as v,
|
|
7880
|
+
Gm as w,
|
|
7881
|
+
Qm as x,
|
|
7882
|
+
Ym as y,
|
|
7883
|
+
Xm as z
|
|
7871
7884
|
};
|