@das-fed/upf-utils 6.4.0-dev.238 → 6.4.0-dev.240
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/api-services/es5.d.ts +2 -0
- package/api-services/es5.js +1360 -1345
- package/api-services/i18n/es5.d.ts +63 -0
- package/api-services/index.js +1076 -1060
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.d.ts +2 -0
- package/api-services/modules/app-manage/es5.js +25 -19
- package/api-services/modules/app-manage/index.js +17 -15
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.d.ts +2 -0
- package/api-services/modules/authentication/es5.js +1100 -1082
- package/api-services/modules/authentication/index.js +911 -891
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.d.ts +6 -0
- package/api-services/modules/bems/es5.js +96 -90
- package/api-services/modules/bems/index.js +75 -73
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.d.ts +2 -0
- package/api-services/modules/contract/es5.js +25 -19
- package/api-services/modules/contract/index.js +17 -15
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.d.ts +7 -0
- package/api-services/modules/duty-manage/es5.js +23 -17
- package/api-services/modules/duty-manage/index.js +16 -14
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.d.ts +2 -0
- package/api-services/modules/enterpriseright/es5.js +829 -826
- package/api-services/modules/enterpriseright/index.js +651 -653
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.d.ts +21 -0
- package/api-services/modules/es5.js +1353 -1356
- package/api-services/modules/file/es5.d.ts +37 -0
- package/api-services/modules/file/es5.js +1226 -1232
- package/api-services/modules/file/index.js +993 -1009
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.d.ts +2 -0
- package/api-services/modules/gateway-edge/es5.js +1343 -1325
- package/api-services/modules/gateway-edge/index.js +1140 -1120
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1062 -1074
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.d.ts +16 -0
- package/api-services/modules/iot/es5.js +33 -27
- package/api-services/modules/iot/index.js +23 -21
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.d.ts +3 -0
- package/api-services/modules/justauth/es5.js +1345 -1351
- package/api-services/modules/justauth/index.js +1127 -1143
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.d.ts +2 -0
- package/api-services/modules/knowledge/es5.js +1343 -1325
- package/api-services/modules/knowledge/index.js +1140 -1120
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.d.ts +2 -0
- package/api-services/modules/link/es5.js +25 -19
- package/api-services/modules/link/index.js +17 -15
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.d.ts +2 -0
- package/api-services/modules/permission/es5.js +1100 -1106
- package/api-services/modules/permission/index.js +897 -913
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.d.ts +14 -0
- package/api-services/modules/platformManage/es5.js +1350 -1356
- package/api-services/modules/platformManage/index.js +1131 -1147
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.d.ts +2 -0
- package/api-services/modules/portal/es5.js +1343 -1349
- package/api-services/modules/portal/index.js +1126 -1142
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.d.ts +2 -0
- package/api-services/modules/space-manage/es5.js +1343 -1349
- package/api-services/modules/space-manage/index.js +1126 -1142
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.d.ts +8 -0
- package/api-services/modules/super-admin/es5.js +1104 -1110
- package/api-services/modules/super-admin/index.js +899 -915
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.d.ts +6 -0
- package/api-services/modules/supplier/es5.js +1104 -1110
- package/api-services/modules/supplier/index.js +899 -915
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.d.ts +2 -0
- package/api-services/modules/supplychain-manage/es5.js +1343 -1325
- package/api-services/modules/supplychain-manage/index.js +1140 -1120
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.d.ts +2 -0
- package/api-services/modules/systemConfiguration/es5.js +25 -19
- package/api-services/modules/systemConfiguration/index.js +17 -15
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.d.ts +2 -0
- package/api-services/modules/tool/es5.js +845 -836
- package/api-services/modules/tool/index.js +660 -654
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.d.ts +1 -0
- package/api-services/src/create-service/es5.js +99 -93
- package/api-services/src/create-service/index.js +78 -76
- package/api-services/src/create-service/index.js.gz +0 -0
- package/atob/es5.d.ts +2 -0
- package/common-info/es5.d.ts +48 -0
- package/common-info/es5.js +915 -965
- package/common-info/getIframeUrl/es5.d.ts +9 -0
- package/common-info/getInfoFromUrl/es5.d.ts +8 -0
- package/common-info/getPermissionMethod/es5.d.ts +77 -0
- package/common-info/getPermissionMethod/es5.js +1371 -1355
- package/common-info/getPermissionMethod/index.d.ts +27 -9
- package/common-info/getPermissionMethod/index.js +1141 -1125
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.d.ts +1 -29
- package/common-info/index.js +725 -757
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/es5.d.ts +5 -0
- package/common-info/type.d.ts +2 -2
- package/common-tools/arr-tools/es5.d.ts +15 -0
- package/common-tools/calc-text-width/es5.d.ts +1 -0
- package/common-tools/date-format/es5.d.ts +7 -0
- package/common-tools/es5.d.ts +15 -0
- package/common-tools/es5.js +9 -0
- package/common-tools/extract-file-name/es5.d.ts +1 -0
- package/common-tools/get-file-extension/es5.d.ts +6 -0
- package/common-tools/get-url-params/es5.d.ts +46 -0
- package/common-tools/handle-data/es5.d.ts +34 -0
- package/common-tools/handle-data/es5.js +44 -6
- package/common-tools/handle-data/index.d.ts +16 -1
- package/common-tools/handle-data/index.js +1 -1
- package/common-tools/handle-data/index.js.gz +0 -0
- package/common-tools/index.d.ts +1 -0
- package/common-tools/index.js +1 -0
- package/common-tools/nest-tree-format/es5.d.ts +30 -0
- package/common-tools/obj-tools/es5.d.ts +7 -0
- package/common-tools/platform-tools/es5.d.ts +19 -0
- package/common-tools/queue-promise/es5.d.ts +6 -0
- package/common-tools/setHtmlMinWH/es5.d.ts +5 -0
- package/common-tools/timezone-format/es5.d.ts +28 -0
- package/common-tools/timezone-format/es5.js +140 -0
- package/common-tools/timezone-format/index.d.ts +28 -0
- package/common-tools/timezone-format/index.js +81 -0
- package/common-tools/timezone-format/index.js.gz +0 -0
- package/common-tools/update-browser-title/es5.d.ts +1 -0
- package/common-tools/update-fav-icon/es5.d.ts +11 -0
- package/config/es5.d.ts +2 -0
- package/create-api-service/access-token-auto-refresh/es5.d.ts +20 -0
- package/create-api-service/access-token-auto-refresh/es5.js +27 -26
- package/create-api-service/access-token-auto-refresh/index.js +27 -26
- package/create-api-service/access-token-auto-refresh/index.js.gz +0 -0
- package/create-api-service/check-token/es5.d.ts +12 -0
- package/create-api-service/es5.d.ts +8 -0
- package/create-api-service/es5.js +24 -18
- package/create-api-service/i18n/es5.d.ts +39 -0
- package/create-api-service/index.js +17 -15
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/proxy-sso/es5.d.ts +3 -0
- package/create-api-service/sso/es5.d.ts +21 -0
- package/create-api-service/token-refresh-shared/es5.d.ts +30 -0
- package/curring-http/es5.d.ts +12 -0
- package/dimple-canvas/es5.d.ts +3 -0
- package/directive/auth/es5.d.ts +8 -0
- package/directive/clickOutside/es5.d.ts +6 -0
- package/directive/es5.d.ts +3 -0
- package/directive/hoverInside/es5.d.ts +6 -0
- package/directive/utils/es5.d.ts +7 -0
- package/dom-check-in/es5.d.ts +6 -0
- package/dom-watcher/es5.d.ts +25 -0
- package/esm-map.json +32 -7
- package/hooks/popup-manager/use-zindex/es5.d.ts +3 -0
- package/i18n-bridge/es5.d.ts +10 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/load-js/es5.d.ts +3 -0
- package/nextTiken/es5.d.ts +12 -0
- package/oss/es5.d.ts +2 -0
- package/package.json +4 -3
- package/pinyin-first-character/es5.d.ts +2 -0
- package/process-engine-info/es5.d.ts +13 -0
- package/pure-image-src/es5.d.ts +2 -0
- package/size-watcher/es5.d.ts +6 -0
- package/style/es5.d.ts +2 -0
- package/theme/es5.d.ts +92 -0
- package/theme/es5.js +1365 -0
- package/theme/index.d.ts +92 -0
- package/theme/index.js +871 -0
- package/theme/index.js.gz +0 -0
- package/token-tools/es5.d.ts +21 -0
- package/use-low-code/es5.d.ts +1 -0
- package/vue/es5.d.ts +1 -0
- package/vue/hooks/use-model-value/es5.d.ts +9 -0
- package/webSocket-service/es5.d.ts +41 -0
- package/with-install/es5.d.ts +11 -0
- package/hooks/use-get-auth/es5.js +0 -67
- package/hooks/use-get-auth/index.d.ts +0 -4
- package/hooks/use-get-auth/index.js +0 -19
|
@@ -101,7 +101,7 @@ const To = (t, e, r, { allOwnKeys: n } = {}) => (_e(e, (o, a) => {
|
|
|
101
101
|
t = String(t), (r === void 0 || r > t.length) && (r = t.length), r -= e.length;
|
|
102
102
|
const n = t.indexOf(e, r);
|
|
103
103
|
return n !== -1 && n === r;
|
|
104
|
-
},
|
|
104
|
+
}, No = (t) => {
|
|
105
105
|
if (!t) return null;
|
|
106
106
|
if (he(t)) return t;
|
|
107
107
|
let e = t.length;
|
|
@@ -110,7 +110,7 @@ const To = (t, e, r, { allOwnKeys: n } = {}) => (_e(e, (o, a) => {
|
|
|
110
110
|
for (; e-- > 0; )
|
|
111
111
|
r[e] = t[e];
|
|
112
112
|
return r;
|
|
113
|
-
},
|
|
113
|
+
}, $o = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && jt(Uint8Array)), Do = (t, e) => {
|
|
114
114
|
const n = (t && t[Qe]).call(t);
|
|
115
115
|
let o;
|
|
116
116
|
for (; (o = n.next()) && !o.done; ) {
|
|
@@ -211,7 +211,7 @@ const zo = (t) => {
|
|
|
211
211
|
isFunction: D,
|
|
212
212
|
isStream: wo,
|
|
213
213
|
isURLSearchParams: So,
|
|
214
|
-
isTypedArray:
|
|
214
|
+
isTypedArray: $o,
|
|
215
215
|
isFileList: vo,
|
|
216
216
|
forEach: _e,
|
|
217
217
|
merge: Ct,
|
|
@@ -223,7 +223,7 @@ const zo = (t) => {
|
|
|
223
223
|
kindOf: Xe,
|
|
224
224
|
kindOfTest: q,
|
|
225
225
|
endsWith: Fo,
|
|
226
|
-
toArray:
|
|
226
|
+
toArray: No,
|
|
227
227
|
forEachEntry: Do,
|
|
228
228
|
matchAll: Io,
|
|
229
229
|
isHTMLForm: Uo,
|
|
@@ -493,22 +493,22 @@ const fn = {
|
|
|
493
493
|
Blob: ta
|
|
494
494
|
},
|
|
495
495
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
496
|
-
}, zt = typeof window < "u" && typeof document < "u",
|
|
496
|
+
}, zt = typeof window < "u" && typeof document < "u", Nt = typeof navigator == "object" && navigator || void 0, na = zt && (!Nt || ["ReactNative", "NativeScript", "NS"].indexOf(Nt.product) < 0), oa = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
497
497
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", aa = zt && window.location.href || "http://localhost", ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
498
498
|
__proto__: null,
|
|
499
499
|
hasBrowserEnv: zt,
|
|
500
500
|
hasStandardBrowserEnv: na,
|
|
501
501
|
hasStandardBrowserWebWorkerEnv: oa,
|
|
502
|
-
navigator:
|
|
502
|
+
navigator: Nt,
|
|
503
503
|
origin: aa
|
|
504
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
504
|
+
}, Symbol.toStringTag, { value: "Module" })), $ = {
|
|
505
505
|
...ia,
|
|
506
506
|
...ra
|
|
507
507
|
};
|
|
508
508
|
function sa(t, e) {
|
|
509
|
-
return Ye(t, new
|
|
509
|
+
return Ye(t, new $.classes.URLSearchParams(), {
|
|
510
510
|
visitor: function(r, n, o, a) {
|
|
511
|
-
return
|
|
511
|
+
return $.isNode && f.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
512
512
|
},
|
|
513
513
|
...e
|
|
514
514
|
});
|
|
@@ -603,8 +603,8 @@ const Ce = {
|
|
|
603
603
|
maxContentLength: -1,
|
|
604
604
|
maxBodyLength: -1,
|
|
605
605
|
env: {
|
|
606
|
-
FormData:
|
|
607
|
-
Blob:
|
|
606
|
+
FormData: $.classes.FormData,
|
|
607
|
+
Blob: $.classes.Blob
|
|
608
608
|
},
|
|
609
609
|
validateStatus: function(e) {
|
|
610
610
|
return e >= 200 && e < 300;
|
|
@@ -904,10 +904,10 @@ const We = (t, e, r = 3) => {
|
|
|
904
904
|
total: t,
|
|
905
905
|
loaded: n
|
|
906
906
|
}), e[1]];
|
|
907
|
-
}, sr = (t) => (...e) => f.asap(() => t(...e)), ba =
|
|
908
|
-
new URL(
|
|
909
|
-
|
|
910
|
-
) : () => !0, Sa =
|
|
907
|
+
}, sr = (t) => (...e) => f.asap(() => t(...e)), ba = $.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (r) => (r = new URL(r, $.origin), t.protocol === r.protocol && t.host === r.host && (e || t.port === r.port)))(
|
|
908
|
+
new URL($.origin),
|
|
909
|
+
$.navigator && /(msie|trident)/i.test($.navigator.userAgent)
|
|
910
|
+
) : () => !0, Sa = $.hasStandardBrowserEnv ? (
|
|
911
911
|
// Standard browser envs support document.cookie
|
|
912
912
|
{
|
|
913
913
|
write(t, e, r, n, o, a, i) {
|
|
@@ -1018,7 +1018,7 @@ const mn = (t) => {
|
|
|
1018
1018
|
"Authorization",
|
|
1019
1019
|
"Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
|
|
1020
1020
|
), f.isFormData(r)) {
|
|
1021
|
-
if (
|
|
1021
|
+
if ($.hasStandardBrowserEnv || $.hasStandardBrowserWebWorkerEnv)
|
|
1022
1022
|
i.setContentType(void 0);
|
|
1023
1023
|
else if (f.isFunction(r.getHeaders)) {
|
|
1024
1024
|
const c = r.getHeaders(), u = ["content-type", "content-length"];
|
|
@@ -1027,7 +1027,7 @@ const mn = (t) => {
|
|
|
1027
1027
|
});
|
|
1028
1028
|
}
|
|
1029
1029
|
}
|
|
1030
|
-
if (
|
|
1030
|
+
if ($.hasStandardBrowserEnv && (n && f.isFunction(n) && (n = n(e)), n || n !== !1 && ba(e.url))) {
|
|
1031
1031
|
const c = o && a && Sa.read(a);
|
|
1032
1032
|
c && i.set(o, c);
|
|
1033
1033
|
}
|
|
@@ -1084,7 +1084,7 @@ const mn = (t) => {
|
|
|
1084
1084
|
h && (n(!g || g.type ? new me(null, t, h) : g), h.abort(), h = null);
|
|
1085
1085
|
}, o.cancelToken && o.cancelToken.subscribe(l), o.signal && (o.signal.aborted ? l() : o.signal.addEventListener("abort", l)));
|
|
1086
1086
|
const O = ga(o.url);
|
|
1087
|
-
if (O &&
|
|
1087
|
+
if (O && $.protocols.indexOf(O) === -1) {
|
|
1088
1088
|
n(new w("Unsupported protocol " + O + ":", w.ERR_BAD_REQUEST, t));
|
|
1089
1089
|
return;
|
|
1090
1090
|
}
|
|
@@ -1191,7 +1191,7 @@ const mn = (t) => {
|
|
|
1191
1191
|
return !1;
|
|
1192
1192
|
const s = o && Ie(fr), c = o && (typeof pr == "function" ? /* @__PURE__ */ ((d) => (m) => d.encode(m))(new pr()) : async (d) => new Uint8Array(await new r(d).arrayBuffer())), u = a && s && dr(() => {
|
|
1193
1193
|
let d = !1;
|
|
1194
|
-
const m = new r(
|
|
1194
|
+
const m = new r($.origin, {
|
|
1195
1195
|
body: new fr(),
|
|
1196
1196
|
method: "POST",
|
|
1197
1197
|
get duplex() {
|
|
@@ -1216,7 +1216,7 @@ const mn = (t) => {
|
|
|
1216
1216
|
if (f.isBlob(d))
|
|
1217
1217
|
return d.size;
|
|
1218
1218
|
if (f.isSpecCompliantForm(d))
|
|
1219
|
-
return (await new r(
|
|
1219
|
+
return (await new r($.origin, {
|
|
1220
1220
|
method: "POST",
|
|
1221
1221
|
body: d
|
|
1222
1222
|
}).arrayBuffer()).byteLength;
|
|
@@ -1265,14 +1265,14 @@ const mn = (t) => {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
1267
|
f.isString(L) || (L = L ? "include" : "omit");
|
|
1268
|
-
const
|
|
1268
|
+
const N = a && "credentials" in r.prototype, ie = {
|
|
1269
1269
|
...M,
|
|
1270
1270
|
signal: k,
|
|
1271
1271
|
method: h.toUpperCase(),
|
|
1272
1272
|
headers: V.normalize().toJSON(),
|
|
1273
1273
|
body: S,
|
|
1274
1274
|
duplex: "half",
|
|
1275
|
-
credentials:
|
|
1275
|
+
credentials: N ? L : void 0
|
|
1276
1276
|
};
|
|
1277
1277
|
C = a && new r(m, ie);
|
|
1278
1278
|
let j = await (a ? Z(C, M) : Z(m, ie));
|
|
@@ -1305,23 +1305,23 @@ const mn = (t) => {
|
|
|
1305
1305
|
request: C
|
|
1306
1306
|
});
|
|
1307
1307
|
});
|
|
1308
|
-
} catch (
|
|
1309
|
-
throw F && F(),
|
|
1308
|
+
} catch (N) {
|
|
1309
|
+
throw F && F(), N && N.name === "TypeError" && /Load failed|fetch/i.test(N.message) ? Object.assign(
|
|
1310
1310
|
new w("Network Error", w.ERR_NETWORK, d, C),
|
|
1311
1311
|
{
|
|
1312
|
-
cause:
|
|
1312
|
+
cause: N.cause || N
|
|
1313
1313
|
}
|
|
1314
|
-
) : w.from(
|
|
1314
|
+
) : w.from(N, N && N.code, d, C);
|
|
1315
1315
|
}
|
|
1316
1316
|
};
|
|
1317
|
-
},
|
|
1317
|
+
}, Na = /* @__PURE__ */ new Map(), gn = (t) => {
|
|
1318
1318
|
let e = t && t.env || {};
|
|
1319
1319
|
const { fetch: r, Request: n, Response: o } = e, a = [
|
|
1320
1320
|
n,
|
|
1321
1321
|
o,
|
|
1322
1322
|
r
|
|
1323
1323
|
];
|
|
1324
|
-
let i = a.length, s = i, c, u, l =
|
|
1324
|
+
let i = a.length, s = i, c, u, l = Na;
|
|
1325
1325
|
for (; s--; )
|
|
1326
1326
|
c = a[s], u = l.get(c), u === void 0 && l.set(c, u = s ? /* @__PURE__ */ new Map() : Fa(e)), l = u;
|
|
1327
1327
|
return u;
|
|
@@ -1343,7 +1343,7 @@ f.forEach(Wt, (t, e) => {
|
|
|
1343
1343
|
Object.defineProperty(t, "adapterName", { value: e });
|
|
1344
1344
|
}
|
|
1345
1345
|
});
|
|
1346
|
-
const yr = (t) => `- ${t}`,
|
|
1346
|
+
const yr = (t) => `- ${t}`, $a = (t) => f.isFunction(t) || t === null || t === !1;
|
|
1347
1347
|
function Da(t, e) {
|
|
1348
1348
|
t = f.isArray(t) ? t : [t];
|
|
1349
1349
|
const { length: r } = t;
|
|
@@ -1352,7 +1352,7 @@ function Da(t, e) {
|
|
|
1352
1352
|
for (let i = 0; i < r; i++) {
|
|
1353
1353
|
n = t[i];
|
|
1354
1354
|
let s;
|
|
1355
|
-
if (o = n,
|
|
1355
|
+
if (o = n, !$a(n) && (o = Wt[(s = String(n)).toLowerCase()], o === void 0))
|
|
1356
1356
|
throw new w(`Unknown adapter '${s}'`);
|
|
1357
1357
|
if (o && (f.isFunction(o) || (o = o.get(e))))
|
|
1358
1358
|
break;
|
|
@@ -1655,7 +1655,7 @@ function Ua(t) {
|
|
|
1655
1655
|
function La(t) {
|
|
1656
1656
|
return f.isObject(t) && t.isAxiosError === !0;
|
|
1657
1657
|
}
|
|
1658
|
-
const
|
|
1658
|
+
const $t = {
|
|
1659
1659
|
Continue: 100,
|
|
1660
1660
|
SwitchingProtocols: 101,
|
|
1661
1661
|
Processing: 102,
|
|
@@ -1726,8 +1726,8 @@ const Nt = {
|
|
|
1726
1726
|
SslHandshakeFailed: 525,
|
|
1727
1727
|
InvalidSslCertificate: 526
|
|
1728
1728
|
};
|
|
1729
|
-
Object.entries(
|
|
1730
|
-
|
|
1729
|
+
Object.entries($t).forEach(([t, e]) => {
|
|
1730
|
+
$t[e] = t;
|
|
1731
1731
|
});
|
|
1732
1732
|
function bn(t) {
|
|
1733
1733
|
const e = new te(t), r = Xr(te.prototype.request, e);
|
|
@@ -1753,7 +1753,7 @@ R.mergeConfig = ne;
|
|
|
1753
1753
|
R.AxiosHeaders = I;
|
|
1754
1754
|
R.formToJSON = (t) => pn(f.isHTMLForm(t) ? new FormData(t) : t);
|
|
1755
1755
|
R.getAdapter = vn.getAdapter;
|
|
1756
|
-
R.HttpStatusCode =
|
|
1756
|
+
R.HttpStatusCode = $t;
|
|
1757
1757
|
R.default = R;
|
|
1758
1758
|
var gr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1759
1759
|
function Ba(t) {
|
|
@@ -1849,10 +1849,10 @@ var Ut = ja, Pr = Ut.custom, Tr = Rn(Pr) ? Pr : null, On = {
|
|
|
1849
1849
|
return "[Circular]";
|
|
1850
1850
|
function y(C, F, B) {
|
|
1851
1851
|
if (F && (o = Xa.call(o), o.push(F)), B) {
|
|
1852
|
-
var
|
|
1852
|
+
var N = {
|
|
1853
1853
|
depth: a.depth
|
|
1854
1854
|
};
|
|
1855
|
-
return J(a, "quoteStyle") && (
|
|
1855
|
+
return J(a, "quoteStyle") && (N.quoteStyle = a.quoteStyle), t(C, N, n + 1, o);
|
|
1856
1856
|
}
|
|
1857
1857
|
return t(C, a, n + 1, o);
|
|
1858
1858
|
}
|
|
@@ -2199,7 +2199,7 @@ var gi = tt, vi = ge, rt = function(t, e, r) {
|
|
|
2199
2199
|
}
|
|
2200
2200
|
};
|
|
2201
2201
|
return r;
|
|
2202
|
-
}, xn = Object, Ai = Error, Ri = EvalError, Pi = RangeError, Ti = ReferenceError, xi = SyntaxError, _i = URIError, Ci = Math.abs, Fi = Math.floor,
|
|
2202
|
+
}, xn = Object, Ai = Error, Ri = EvalError, Pi = RangeError, Ti = ReferenceError, xi = SyntaxError, _i = URIError, Ci = Math.abs, Fi = Math.floor, Ni = Math.max, $i = Math.min, Di = Math.pow, Ii = Math.round, Ui = Number.isNaN || function(e) {
|
|
2203
2203
|
return e !== e;
|
|
2204
2204
|
}, Li = Ui, Bi = function(e) {
|
|
2205
2205
|
return Li(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
@@ -2256,14 +2256,14 @@ function ji() {
|
|
|
2256
2256
|
return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
|
|
2257
2257
|
}, yt;
|
|
2258
2258
|
}
|
|
2259
|
-
var ht,
|
|
2259
|
+
var ht, Nr;
|
|
2260
2260
|
function Cn() {
|
|
2261
|
-
return
|
|
2261
|
+
return Nr || (Nr = 1, ht = typeof Reflect < "u" && Reflect.getPrototypeOf || null), ht;
|
|
2262
2262
|
}
|
|
2263
|
-
var mt,
|
|
2263
|
+
var mt, $r;
|
|
2264
2264
|
function Fn() {
|
|
2265
|
-
if (
|
|
2266
|
-
|
|
2265
|
+
if ($r) return mt;
|
|
2266
|
+
$r = 1;
|
|
2267
2267
|
var t = xn;
|
|
2268
2268
|
return mt = t.getPrototypeOf || null, mt;
|
|
2269
2269
|
}
|
|
@@ -2306,10 +2306,10 @@ var Hi = "Function.prototype.bind called on incompatible ", zi = Object.prototyp
|
|
|
2306
2306
|
}
|
|
2307
2307
|
return o;
|
|
2308
2308
|
}, Qi = Ki, nt = Function.prototype.bind || Qi, Qt = Function.prototype.call, gt, Ir;
|
|
2309
|
-
function
|
|
2309
|
+
function Nn() {
|
|
2310
2310
|
return Ir || (Ir = 1, gt = Function.prototype.apply), gt;
|
|
2311
2311
|
}
|
|
2312
|
-
var Xi = typeof Reflect < "u" && Reflect && Reflect.apply, Zi = nt, Yi =
|
|
2312
|
+
var Xi = typeof Reflect < "u" && Reflect && Reflect.apply, Zi = nt, Yi = Nn(), es = Qt, ts = Xi, rs = ts || Zi.call(es, Yi), ns = nt, os = ge, as = Qt, is = rs, $n = function(e) {
|
|
2313
2313
|
if (e.length < 1 || typeof e[0] != "function")
|
|
2314
2314
|
throw new os("a function is required");
|
|
2315
2315
|
return is(ns, as, e);
|
|
@@ -2317,7 +2317,7 @@ var Xi = typeof Reflect < "u" && Reflect && Reflect.apply, Zi = nt, Yi = $n(), e
|
|
|
2317
2317
|
function ss() {
|
|
2318
2318
|
if (Ur) return vt;
|
|
2319
2319
|
Ur = 1;
|
|
2320
|
-
var t =
|
|
2320
|
+
var t = $n, e = _n, r;
|
|
2321
2321
|
try {
|
|
2322
2322
|
r = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
2323
2323
|
[].__proto__ === Array.prototype;
|
|
@@ -2359,7 +2359,7 @@ function cs() {
|
|
|
2359
2359
|
var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, r = nt;
|
|
2360
2360
|
return bt = r.call(t, e), bt;
|
|
2361
2361
|
}
|
|
2362
|
-
var b, us = xn, fs = Ai, ps = Ri, ds = Pi, ys = Ti, ye = xi, fe = ge, hs = _i, ms = Ci, gs = Fi, vs =
|
|
2362
|
+
var b, us = xn, fs = Ai, ps = Ri, ds = Pi, ys = Ti, ye = xi, fe = ge, hs = _i, ms = Ci, gs = Fi, vs = Ni, ws = $i, bs = Di, Ss = Ii, Es = Bi, Dn = Function, St = function(t) {
|
|
2363
2363
|
try {
|
|
2364
2364
|
return Dn('"use strict"; return (' + t + ").constructor;")();
|
|
2365
2365
|
} catch {
|
|
@@ -2376,7 +2376,7 @@ var b, us = xn, fs = Ai, ps = Ri, ds = Pi, ys = Ti, ye = xi, fe = ge, hs = _i, m
|
|
|
2376
2376
|
return Et;
|
|
2377
2377
|
}
|
|
2378
2378
|
}
|
|
2379
|
-
}() : Et, le = ji()(), _ = ls(), Rs = Fn(), Ps = Cn(), In =
|
|
2379
|
+
}() : Et, le = ji()(), _ = ls(), Rs = Fn(), Ps = Cn(), In = Nn(), Fe = Qt, ue = {}, Ts = typeof Uint8Array > "u" || !_ ? b : _(Uint8Array), re = {
|
|
2380
2380
|
__proto__: null,
|
|
2381
2381
|
"%AggregateError%": typeof AggregateError > "u" ? b : AggregateError,
|
|
2382
2382
|
"%Array%": Array,
|
|
@@ -2536,14 +2536,14 @@ var _s = function t(e) {
|
|
|
2536
2536
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2537
2537
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2538
2538
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2539
|
-
},
|
|
2539
|
+
}, Ne = nt, Ve = cs(), Cs = Ne.call(Fe, Array.prototype.concat), Fs = Ne.call(In, Array.prototype.splice), kr = Ne.call(Fe, String.prototype.replace), Ke = Ne.call(Fe, String.prototype.slice), Ns = Ne.call(Fe, RegExp.prototype.exec), $s = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Ds = /\\(\\)?/g, Is = function(e) {
|
|
2540
2540
|
var r = Ke(e, 0, 1), n = Ke(e, -1);
|
|
2541
2541
|
if (r === "%" && n !== "%")
|
|
2542
2542
|
throw new ye("invalid intrinsic syntax, expected closing `%`");
|
|
2543
2543
|
if (n === "%" && r !== "%")
|
|
2544
2544
|
throw new ye("invalid intrinsic syntax, expected opening `%`");
|
|
2545
2545
|
var o = [];
|
|
2546
|
-
return kr(e,
|
|
2546
|
+
return kr(e, $s, function(a, i, s, c) {
|
|
2547
2547
|
o[o.length] = s ? kr(c, Ds, "$1") : i || a;
|
|
2548
2548
|
}), o;
|
|
2549
2549
|
}, Us = function(e, r) {
|
|
@@ -2564,7 +2564,7 @@ var _s = function t(e) {
|
|
|
2564
2564
|
throw new fe("intrinsic name must be a non-empty string");
|
|
2565
2565
|
if (arguments.length > 1 && typeof r != "boolean")
|
|
2566
2566
|
throw new fe('"allowMissing" argument must be a boolean');
|
|
2567
|
-
if (
|
|
2567
|
+
if (Ns(/^%?[^%]*%?$/, e) === null)
|
|
2568
2568
|
throw new ye("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
2569
2569
|
var n = Is(e), o = n.length > 0 ? n[0] : "", a = Us("%" + o + "%", r), i = a.name, s = a.value, c = !1, u = a.alias;
|
|
2570
2570
|
u && (o = u[0], Fs(n, Cs([0, 1], u)));
|
|
@@ -2589,7 +2589,7 @@ var _s = function t(e) {
|
|
|
2589
2589
|
}
|
|
2590
2590
|
}
|
|
2591
2591
|
return s;
|
|
2592
|
-
}, Un = Xt, Ln =
|
|
2592
|
+
}, Un = Xt, Ln = $n, Ls = Ln([Un("%String.prototype.indexOf%")]), Bn = function(e, r) {
|
|
2593
2593
|
var n = (
|
|
2594
2594
|
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
2595
2595
|
Un(e, !!r)
|
|
@@ -2598,7 +2598,7 @@ var _s = function t(e) {
|
|
|
2598
2598
|
/** @type {const} */
|
|
2599
2599
|
[n]
|
|
2600
2600
|
) : n;
|
|
2601
|
-
}, Bs = Xt,
|
|
2601
|
+
}, Bs = Xt, $e = Bn, Ms = tt, ks = ge, qr = Bs("%Map%", !0), qs = $e("Map.prototype.get", !0), js = $e("Map.prototype.set", !0), Hs = $e("Map.prototype.has", !0), zs = $e("Map.prototype.delete", !0), Ws = $e("Map.prototype.size", !0), Mn = !!qr && /** @type {Exclude<import('.'), false>} */
|
|
2602
2602
|
function() {
|
|
2603
2603
|
var e, r = {
|
|
2604
2604
|
assert: function(n) {
|
|
@@ -2883,13 +2883,13 @@ function() {
|
|
|
2883
2883
|
if (a && W(g) && g.length === 0)
|
|
2884
2884
|
return C + "[]";
|
|
2885
2885
|
for (var F = 0; F < M.length; ++F) {
|
|
2886
|
-
var B = M[F],
|
|
2887
|
-
if (!(s &&
|
|
2886
|
+
var B = M[F], N = typeof B == "object" && B && typeof B.value < "u" ? B.value : g[B];
|
|
2887
|
+
if (!(s && N === null)) {
|
|
2888
2888
|
var ie = y && c ? String(B).replace(/\./g, "%2E") : String(B), j = W(g) ? typeof n == "function" ? n(C, ie) : C : C + (y ? "." + ie : "[" + ie + "]");
|
|
2889
2889
|
O.set(e, P);
|
|
2890
2890
|
var ve = jn();
|
|
2891
2891
|
ve.set(Pt, O), zn(L, t(
|
|
2892
|
-
|
|
2892
|
+
N,
|
|
2893
2893
|
j,
|
|
2894
2894
|
n,
|
|
2895
2895
|
o,
|
|
@@ -3069,7 +3069,7 @@ function() {
|
|
|
3069
3069
|
i = c;
|
|
3070
3070
|
}
|
|
3071
3071
|
return i;
|
|
3072
|
-
},
|
|
3072
|
+
}, Nl = function(e, r, n, o) {
|
|
3073
3073
|
if (e) {
|
|
3074
3074
|
var a = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, c = n.depth > 0 && i.exec(a), u = c ? a.slice(0, c.index) : a, l = [];
|
|
3075
3075
|
if (u) {
|
|
@@ -3089,7 +3089,7 @@ function() {
|
|
|
3089
3089
|
}
|
|
3090
3090
|
return Fl(l, r, n, o);
|
|
3091
3091
|
}
|
|
3092
|
-
},
|
|
3092
|
+
}, $l = function(e) {
|
|
3093
3093
|
if (!e)
|
|
3094
3094
|
return A;
|
|
3095
3095
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
@@ -3131,11 +3131,11 @@ function() {
|
|
|
3131
3131
|
throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
|
|
3132
3132
|
};
|
|
3133
3133
|
}, Dl = function(t, e) {
|
|
3134
|
-
var r =
|
|
3134
|
+
var r = $l(e);
|
|
3135
3135
|
if (t === "" || t === null || typeof t > "u")
|
|
3136
3136
|
return r.plainObjects ? { __proto__: null } : {};
|
|
3137
3137
|
for (var n = typeof t == "string" ? Cl(t, r) : t, o = r.plainObjects ? { __proto__: null } : {}, a = Object.keys(n), i = 0; i < a.length; ++i) {
|
|
3138
|
-
var s = a[i], c =
|
|
3138
|
+
var s = a[i], c = Nl(s, n[s], r, typeof t == "string");
|
|
3139
3139
|
o = oe.merge(o, c, r);
|
|
3140
3140
|
}
|
|
3141
3141
|
return r.allowSparse === !0 ? o : oe.compact(o);
|
|
@@ -3218,9 +3218,9 @@ function kt(t, e) {
|
|
|
3218
3218
|
var zr = kt(kl, { path: "/" });
|
|
3219
3219
|
qt.extend(ro);
|
|
3220
3220
|
qt.extend(no);
|
|
3221
|
-
const Yt = Qr(), Gn = Yt.sso ?? !0, Wr = Yt.i18n ?? !0, Jn = Yt.noRedireLogin ?? !1;
|
|
3221
|
+
const ql = "UTC", jl = () => qt.tz.guess() || ql, Yt = Qr(), Gn = Yt.sso ?? !0, Wr = Yt.i18n ?? !0, Jn = Yt.noRedireLogin ?? !1;
|
|
3222
3222
|
let Gr = "", Jr = 0;
|
|
3223
|
-
const
|
|
3223
|
+
const Hl = 1e3, Vr = async (t, e, r = []) => {
|
|
3224
3224
|
const n = Date.now(), o = 1200, a = 60;
|
|
3225
3225
|
for (; Date.now() - n < o; ) {
|
|
3226
3226
|
const i = t(e, ...r);
|
|
@@ -3230,17 +3230,19 @@ const ql = 1e3, Vr = async (t, e, r = []) => {
|
|
|
3230
3230
|
return t(e, ...r);
|
|
3231
3231
|
};
|
|
3232
3232
|
let Tt = !1;
|
|
3233
|
-
const
|
|
3233
|
+
const zl = 5e3, Vn = () => Tt ? !1 : (Tt = !0, setTimeout(() => {
|
|
3234
3234
|
Tt = !1;
|
|
3235
|
-
},
|
|
3236
|
-
var e, r;
|
|
3235
|
+
}, zl), !0), Kn = () => {
|
|
3237
3236
|
if (Jn) return;
|
|
3238
3237
|
const t = "/login";
|
|
3239
|
-
location.pathname
|
|
3240
|
-
|
|
3238
|
+
if (location.pathname === t) return;
|
|
3239
|
+
window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = !1;
|
|
3240
|
+
const e = window.top;
|
|
3241
|
+
e != null && e.vueRouter ? e.vueRouter.replace(t) : window.location.replace(`/#${t}`);
|
|
3242
|
+
}, Wl = () => Zn("code") || "" || Jn ? !1 : Vn() ? (Gn ? Yn({ ...eo, redirect_uri: to }) : Kn(), !0) : !1, Gl = async (t) => {
|
|
3241
3243
|
var r;
|
|
3242
3244
|
return ((r = t.config) == null ? void 0 : r.responseType) === "blob" ? t : t.data ?? t;
|
|
3243
|
-
},
|
|
3245
|
+
}, Jl = async (t, e) => {
|
|
3244
3246
|
var d, m, h, S;
|
|
3245
3247
|
const { t: r } = Kr();
|
|
3246
3248
|
let n, o, a = {};
|
|
@@ -3248,7 +3250,7 @@ const jl = 5e3, Vn = () => Tt ? !1 : (Tt = !0, setTimeout(() => {
|
|
|
3248
3250
|
let s = ((d = t == null ? void 0 : t.response) == null ? void 0 : d.data) || {};
|
|
3249
3251
|
const c = s == null ? void 0 : s.code, u = (m = t.response) == null ? void 0 : m.status;
|
|
3250
3252
|
if (c === 401 || u === 401) {
|
|
3251
|
-
|
|
3253
|
+
Wl(), n = c || u, a = s;
|
|
3252
3254
|
const O = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3253
3255
|
if (Wr && O && (s != null && s.status)) {
|
|
3254
3256
|
const g = !(s != null && s.data) || !s.data.length ? [] : s.data, E = r(s.status, ...g);
|
|
@@ -3278,7 +3280,7 @@ const jl = 5e3, Vn = () => Tt ? !1 : (Tt = !0, setTimeout(() => {
|
|
|
3278
3280
|
o || (o = i[t.response.status] || t.message);
|
|
3279
3281
|
} else t.request ? (n = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = r("网络异常,请检查您的网络情况")) : (n = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = r("请求配置异常"));
|
|
3280
3282
|
e != null && e.customErrorMessage && (o = e == null ? void 0 : e.customErrorMessage(o, t));
|
|
3281
|
-
const p = Date.now(), y = o === Gr, v = p - Jr <
|
|
3283
|
+
const p = Date.now(), y = o === Gr, v = p - Jr < Hl;
|
|
3282
3284
|
return !(e != null && e.ignoreErrorMessage) && o && (!y || !v) && ((S = (h = window.DasMessage) == null ? void 0 : h.error) == null || S.call(h, { message: o, showClose: !0 }), Gr = o, Jr = p), { ...a, code: n, msg: o, error: t };
|
|
3283
3285
|
};
|
|
3284
3286
|
function xt(t, e) {
|
|
@@ -3302,7 +3304,7 @@ function xt(t, e) {
|
|
|
3302
3304
|
}
|
|
3303
3305
|
p && !n.headers.Authorization && (n.headers.Authorization = `Bearer ${p}`);
|
|
3304
3306
|
}
|
|
3305
|
-
n.baseURL || (n.baseURL = a.baseURL || ""), n.urlPrefix || (n.urlPrefix = t), n.paramsSerializer || (n.paramsSerializer = { serialize: (p) => Ml.stringify(p, { indices: !1 }) }), n.onSuccess || (n.onSuccess =
|
|
3307
|
+
n.baseURL || (n.baseURL = a.baseURL || ""), n.urlPrefix || (n.urlPrefix = t), n.paramsSerializer || (n.paramsSerializer = { serialize: (p) => Ml.stringify(p, { indices: !1 }) }), n.onSuccess || (n.onSuccess = Gl), n.onError || (n.onError = Jl), (n.csrf ?? !1) && (n.headers["csrf-token"] = zr.get("csrf-token"));
|
|
3306
3308
|
const c = n.params || {};
|
|
3307
3309
|
if (c.project === void 0) {
|
|
3308
3310
|
let p = 0;
|
|
@@ -3313,16 +3315,16 @@ function xt(t, e) {
|
|
|
3313
3315
|
const { instanceInfo: p } = ao();
|
|
3314
3316
|
p != null && p.instanceId && (c.instance = p.instanceId);
|
|
3315
3317
|
}
|
|
3316
|
-
n.params = c, n.headers.Timezone =
|
|
3318
|
+
n.params = c, n.headers.Timezone = jl(), n.headers["X-Origin"] = location.origin;
|
|
3317
3319
|
const l = (o == null ? void 0 : o.value) ?? "";
|
|
3318
3320
|
return l && (n.headers["Accept-Language"] = l), l && zr.set("locale", l), n;
|
|
3319
3321
|
});
|
|
3320
3322
|
}
|
|
3321
|
-
const
|
|
3323
|
+
const Vl = "v1", _t = `/api/bems/data-manage/${Vl}`, ic = {
|
|
3322
3324
|
energyType: xt(`${_t}/energy-type`),
|
|
3323
3325
|
energyObject: xt(`${_t}/energy-object`),
|
|
3324
3326
|
energyDimension: xt(`${_t}/energy-dimension`)
|
|
3325
3327
|
};
|
|
3326
3328
|
export {
|
|
3327
|
-
|
|
3329
|
+
ic as bemsModules
|
|
3328
3330
|
};
|
|
Binary file
|
|
@@ -3797,13 +3797,17 @@ var jr = Bt(Bl, {
|
|
|
3797
3797
|
});
|
|
3798
3798
|
Mt.extend(eo);
|
|
3799
3799
|
Mt.extend(to);
|
|
3800
|
-
var
|
|
3800
|
+
var Ml = "UTC",
|
|
3801
|
+
kl = function kl() {
|
|
3802
|
+
return Mt.tz.guess() || Ml;
|
|
3803
|
+
},
|
|
3804
|
+
Xt = config.getConfig(),
|
|
3801
3805
|
zn = (_Xt$sso = Xt.sso) !== null && _Xt$sso !== void 0 ? _Xt$sso : true,
|
|
3802
3806
|
Hr = (_Xt$i18n = Xt.i18n) !== null && _Xt$i18n !== void 0 ? _Xt$i18n : true,
|
|
3803
3807
|
Wn = (_Xt$noRedireLogin = Xt.noRedireLogin) !== null && _Xt$noRedireLogin !== void 0 ? _Xt$noRedireLogin : false;
|
|
3804
3808
|
var zr = "",
|
|
3805
3809
|
Wr = 0;
|
|
3806
|
-
var
|
|
3810
|
+
var ql = 1e3,
|
|
3807
3811
|
Gr = /*#__PURE__*/function () {
|
|
3808
3812
|
var _ref22 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9(t, e) {
|
|
3809
3813
|
var r,
|
|
@@ -3846,24 +3850,26 @@ var Ml = 1e3,
|
|
|
3846
3850
|
};
|
|
3847
3851
|
}();
|
|
3848
3852
|
var Tt = false;
|
|
3849
|
-
var
|
|
3853
|
+
var jl = 5e3,
|
|
3850
3854
|
Gn = function Gn() {
|
|
3851
3855
|
return Tt ? false : (Tt = true, setTimeout(function () {
|
|
3852
3856
|
Tt = false;
|
|
3853
|
-
},
|
|
3857
|
+
}, jl), true);
|
|
3854
3858
|
},
|
|
3855
3859
|
Jn = function Jn() {
|
|
3856
|
-
var e, r;
|
|
3857
3860
|
if (Wn) return;
|
|
3858
3861
|
var t = "/login";
|
|
3859
|
-
location.pathname
|
|
3862
|
+
if (location.pathname === t) return;
|
|
3863
|
+
window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = false;
|
|
3864
|
+
var e = window.top;
|
|
3865
|
+
e != null && e.vueRouter ? e.vueRouter.replace(t) : window.location.replace("/#".concat(t));
|
|
3860
3866
|
},
|
|
3861
|
-
|
|
3867
|
+
Hl = function Hl() {
|
|
3862
3868
|
return sso.getQuery("code") || "" || Wn ? false : Gn() ? (zn ? sso.login(_objectSpread(_objectSpread({}, sso.getTokenParams), {}, {
|
|
3863
3869
|
redirect_uri: sso.real_uri
|
|
3864
3870
|
})) : Jn(), true) : false;
|
|
3865
3871
|
},
|
|
3866
|
-
|
|
3872
|
+
zl = /*#__PURE__*/function () {
|
|
3867
3873
|
var _ref23 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(t) {
|
|
3868
3874
|
var _t$data;
|
|
3869
3875
|
var r;
|
|
@@ -3874,11 +3880,11 @@ var kl = 5e3,
|
|
|
3874
3880
|
}
|
|
3875
3881
|
}, _callee0);
|
|
3876
3882
|
}));
|
|
3877
|
-
return function
|
|
3883
|
+
return function zl(_x11) {
|
|
3878
3884
|
return _ref23.apply(this, arguments);
|
|
3879
3885
|
};
|
|
3880
3886
|
}(),
|
|
3881
|
-
|
|
3887
|
+
Wl = /*#__PURE__*/function () {
|
|
3882
3888
|
var _ref24 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(t, e) {
|
|
3883
3889
|
var d, m, h, S, _i18nBridge$getI18nBr, r, n, o, a, i, s, c, u, _ref25, O, g, E, _ref26, _ref27, _O, _g, _E, p, y, v, _t11, _t12, _t13;
|
|
3884
3890
|
return _regenerator().w(function (_context10) {
|
|
@@ -3897,7 +3903,7 @@ var kl = 5e3,
|
|
|
3897
3903
|
_context10.n = 6;
|
|
3898
3904
|
break;
|
|
3899
3905
|
}
|
|
3900
|
-
|
|
3906
|
+
Hl(), n = c || u, a = s;
|
|
3901
3907
|
O = (_ref25 = e == null ? undefined : e.i18n) !== null && _ref25 !== void 0 ? _ref25 : true;
|
|
3902
3908
|
if (!(Hr && O && s != null && s.status)) {
|
|
3903
3909
|
_context10.n = 4;
|
|
@@ -3994,7 +4000,7 @@ var kl = 5e3,
|
|
|
3994
4000
|
t.request ? (n = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = r("网络异常,请检查您的网络情况")) : (n = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = r("请求配置异常"));
|
|
3995
4001
|
case 17:
|
|
3996
4002
|
e != null && e.customErrorMessage && (o = e == null ? undefined : e.customErrorMessage(o, t));
|
|
3997
|
-
p = Date.now(), y = o === zr, v = p - Wr <
|
|
4003
|
+
p = Date.now(), y = o === zr, v = p - Wr < ql;
|
|
3998
4004
|
return _context10.a(2, (!(e != null && e.ignoreErrorMessage) && o && (!y || !v) && ((S = (h = window.DasMessage) == null ? undefined : h.error) == null || S.call(h, {
|
|
3999
4005
|
message: o,
|
|
4000
4006
|
showClose: true
|
|
@@ -4006,11 +4012,11 @@ var kl = 5e3,
|
|
|
4006
4012
|
}
|
|
4007
4013
|
}, _callee1);
|
|
4008
4014
|
}));
|
|
4009
|
-
return function
|
|
4015
|
+
return function Wl(_x12, _x13) {
|
|
4010
4016
|
return _ref24.apply(this, arguments);
|
|
4011
4017
|
};
|
|
4012
4018
|
}();
|
|
4013
|
-
function
|
|
4019
|
+
function Gl(t, e) {
|
|
4014
4020
|
var r = R.create();
|
|
4015
4021
|
return curringHttp.curringHttp(r, /*#__PURE__*/function () {
|
|
4016
4022
|
var _ref28 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10(n) {
|
|
@@ -4071,7 +4077,7 @@ function zl(t, e) {
|
|
|
4071
4077
|
indices: false
|
|
4072
4078
|
});
|
|
4073
4079
|
}
|
|
4074
|
-
}), n.onSuccess || (n.onSuccess =
|
|
4080
|
+
}), n.onSuccess || (n.onSuccess = zl), n.onError || (n.onError = Wl), ((_n$csrf = n.csrf) !== null && _n$csrf !== void 0 ? _n$csrf : false) && (n.headers["csrf-token"] = jr.get("csrf-token"));
|
|
4075
4081
|
c = n.params || {};
|
|
4076
4082
|
if (c.project === undefined) {
|
|
4077
4083
|
_p = 0;
|
|
@@ -4082,7 +4088,7 @@ function zl(t, e) {
|
|
|
4082
4088
|
_commonInfo$getInstan = commonInfo.getInstanceInfo(), _p2 = _commonInfo$getInstan.instanceInfo;
|
|
4083
4089
|
_p2 != null && _p2.instanceId && (c.instance = _p2.instanceId);
|
|
4084
4090
|
}
|
|
4085
|
-
n.params = c, n.headers.Timezone =
|
|
4091
|
+
n.params = c, n.headers.Timezone = kl(), n.headers["X-Origin"] = location.origin;
|
|
4086
4092
|
l = (_ref29 = o == null ? undefined : o.value) !== null && _ref29 !== void 0 ? _ref29 : "";
|
|
4087
4093
|
return _context11.a(2, (l && (n.headers["Accept-Language"] = l), l && jr.set("locale", l), n));
|
|
4088
4094
|
}
|
|
@@ -4093,6 +4099,6 @@ function zl(t, e) {
|
|
|
4093
4099
|
};
|
|
4094
4100
|
}());
|
|
4095
4101
|
}
|
|
4096
|
-
var
|
|
4097
|
-
|
|
4098
|
-
exports.contract =
|
|
4102
|
+
var Jl = "v1",
|
|
4103
|
+
ac = Gl("/api/supply/contract/".concat(Jl));
|
|
4104
|
+
exports.contract = ac;
|