@das-fed/utils 6.4.0-dev.55.8 → 6.4.0-dev.56
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/i18n/index.js +1 -1
- package/api-services/i18n/index.js.gz +0 -0
- package/api-services/index.js +128 -128
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +94 -94
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +94 -94
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +93 -93
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +94 -94
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +92 -92
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +94 -94
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +125 -125
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +94 -94
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +165 -165
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +95 -95
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +92 -92
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +94 -94
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +94 -94
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +94 -94
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +96 -96
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +94 -94
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +94 -94
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +95 -95
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +95 -95
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +94 -94
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +94 -94
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +94 -94
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +93 -93
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/getInfoFromUrl/index.js.gz +0 -0
- package/common-info/index.d.ts +7 -1
- package/common-info/index.js +84 -51
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-info/type.d.ts +175 -120
- package/common-tools/extract-file-name/index.js.gz +0 -0
- package/common-tools/get-url-params/index.js.gz +0 -0
- package/create-api-service/i18n/index.js +2 -2
- package/create-api-service/index.js +93 -93
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.js +35 -35
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/index.js.gz +0 -0
- package/curring-http/type.d.ts +87 -87
- package/directive/auth/index.js.gz +0 -0
- package/dom-check-in/index.js +2 -2
- package/esm-map.json +3 -1
- package/hooks/use-get-auth/index.js.gz +0 -0
- package/nextTiken/index.js.gz +0 -0
- package/package.json +4 -4
- package/pinyin-first-character/index.js.gz +0 -0
- package/style/index.js.gz +0 -0
- package/use-low-code/index.js +3 -3
- package/use-low-code/index.js.gz +0 -0
- package/use-low-code/style.css +1 -1
- package/webSocket-service/index.js.gz +0 -0
- package/webSocket-service/type.d.ts +28 -28
package/api-services/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { setI18nRule as Wr, t as C } from "@das-fed/web/packages/i18n/index";
|
|
2
2
|
import { curringHttp as qn } from "@das-fed/utils/curring-http";
|
|
3
|
-
import { getToken as Hn, getQuery as Wn, login as Kn, getTokenParams as Gn, real_uri as
|
|
3
|
+
import { getToken as Hn, getQuery as Wn, login as Kn, getTokenParams as Gn, real_uri as Jn } from "@das-fed/utils/create-api-service/sso";
|
|
4
4
|
import et from "dayjs";
|
|
5
|
-
import
|
|
5
|
+
import Vn from "dayjs/plugin/utc";
|
|
6
6
|
import Qn from "dayjs/plugin/timezone";
|
|
7
7
|
import { getProjectInfo as Xn, getInstanceInfo as Yn } from "@das-fed/utils/common-info";
|
|
8
8
|
import { getAccessToken as Zn } from "@das-fed/utils/token-tools";
|
|
9
9
|
import { getConfig as Ge } from "@das-fed/utils/config";
|
|
10
10
|
import { extractFilename as ar } from "@das-fed/utils/common-tools";
|
|
11
|
-
import { ref as
|
|
11
|
+
import { ref as J } from "vue";
|
|
12
12
|
const eo = {
|
|
13
13
|
导入进度: { "zh-CN": "导入进度", en: "Import Progress", _appCode: "framework" },
|
|
14
14
|
上传失败: { "zh-CN": "上传失败", en: "Upload Failed", _appCode: "framework" },
|
|
@@ -21,7 +21,7 @@ const eo = {
|
|
|
21
21
|
部分: { "zh-CN": "部分", en: "Partial", _appCode: "framework" },
|
|
22
22
|
"部分数据校验不通过,请下载附件并修改,重新导入!": {
|
|
23
23
|
"zh-CN": "部分数据校验不通过,请下载附件并修改,重新导入!",
|
|
24
|
-
en: "Some
|
|
24
|
+
en: "Some data validation failed, please download the attachment, correct it, and re-import!",
|
|
25
25
|
_appCode: "framework"
|
|
26
26
|
},
|
|
27
27
|
"das-utils_export-success-tip": { "zh-CN": "$0成功", en: "$0 Success", _appCode: "framework" },
|
|
@@ -37,7 +37,7 @@ function Kr(t, e) {
|
|
|
37
37
|
return t.apply(e, arguments);
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
const { toString: to } = Object.prototype, { getPrototypeOf:
|
|
40
|
+
const { toString: to } = Object.prototype, { getPrototypeOf: zt } = Object, tt = /* @__PURE__ */ ((t) => (e) => {
|
|
41
41
|
const n = to.call(e);
|
|
42
42
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
43
43
|
})(/* @__PURE__ */ Object.create(null)), Q = (t) => (t = t.toLowerCase(), (e) => tt(e) === t), rt = (t) => (e) => typeof e === t, { isArray: Ae } = Array, _e = rt("undefined");
|
|
@@ -49,10 +49,10 @@ function no(t) {
|
|
|
49
49
|
let e;
|
|
50
50
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Gr(t.buffer), e;
|
|
51
51
|
}
|
|
52
|
-
const oo = rt("string"), K = rt("function"),
|
|
52
|
+
const oo = rt("string"), K = rt("function"), Jr = rt("number"), nt = (t) => t !== null && typeof t == "object", ao = (t) => t === !0 || t === !1, qe = (t) => {
|
|
53
53
|
if (tt(t) !== "object")
|
|
54
54
|
return !1;
|
|
55
|
-
const e =
|
|
55
|
+
const e = zt(t);
|
|
56
56
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
57
57
|
}, io = Q("Date"), so = Q("File"), lo = Q("Blob"), co = Q("FileList"), uo = (t) => nt(t) && K(t.pipe), fo = (t) => {
|
|
58
58
|
let e;
|
|
@@ -73,7 +73,7 @@ function Fe(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
|
73
73
|
s = a[r], e.call(null, t[s], s, t);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Vr(t, e) {
|
|
77
77
|
e = e.toLowerCase();
|
|
78
78
|
const n = Object.keys(t);
|
|
79
79
|
let r = n.length, o;
|
|
@@ -85,7 +85,7 @@ function Jr(t, e) {
|
|
|
85
85
|
const ce = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Qr = (t) => !_e(t) && t !== ce;
|
|
86
86
|
function xt() {
|
|
87
87
|
const { caseless: t } = Qr(this) && this || {}, e = {}, n = (r, o) => {
|
|
88
|
-
const a = t &&
|
|
88
|
+
const a = t && Vr(e, o) || o;
|
|
89
89
|
qe(e[a]) && qe(r) ? e[a] = xt(e[a], r) : qe(r) ? e[a] = xt({}, r) : Ae(r) ? e[a] = r.slice() : e[a] = r;
|
|
90
90
|
};
|
|
91
91
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
@@ -105,7 +105,7 @@ const wo = (t, e, n, { allOwnKeys: r } = {}) => (Fe(e, (o, a) => {
|
|
|
105
105
|
do {
|
|
106
106
|
for (o = Object.getOwnPropertyNames(t), a = o.length; a-- > 0; )
|
|
107
107
|
i = o[a], (!r || r(i, t, e)) && !s[i] && (e[i] = t[i], s[i] = !0);
|
|
108
|
-
t = n !== !1 &&
|
|
108
|
+
t = n !== !1 && zt(t);
|
|
109
109
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
110
110
|
return e;
|
|
111
111
|
}, Ao = (t, e, n) => {
|
|
@@ -116,12 +116,12 @@ const wo = (t, e, n, { allOwnKeys: r } = {}) => (Fe(e, (o, a) => {
|
|
|
116
116
|
if (!t) return null;
|
|
117
117
|
if (Ae(t)) return t;
|
|
118
118
|
let e = t.length;
|
|
119
|
-
if (!
|
|
119
|
+
if (!Jr(e)) return null;
|
|
120
120
|
const n = new Array(e);
|
|
121
121
|
for (; e-- > 0; )
|
|
122
122
|
n[e] = t[e];
|
|
123
123
|
return n;
|
|
124
|
-
}, Ro = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" &&
|
|
124
|
+
}, Ro = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && zt(Uint8Array)), Po = (t, e) => {
|
|
125
125
|
const r = (t && t[Symbol.iterator]).call(t);
|
|
126
126
|
let o;
|
|
127
127
|
for (; (o = r.next()) && !o.done; ) {
|
|
@@ -213,7 +213,7 @@ const Bo = (t) => {
|
|
|
213
213
|
isFormData: fo,
|
|
214
214
|
isArrayBufferView: no,
|
|
215
215
|
isString: oo,
|
|
216
|
-
isNumber:
|
|
216
|
+
isNumber: Jr,
|
|
217
217
|
isBoolean: ao,
|
|
218
218
|
isObject: nt,
|
|
219
219
|
isPlainObject: qe,
|
|
@@ -254,7 +254,7 @@ const Bo = (t) => {
|
|
|
254
254
|
toCamelCase: $o,
|
|
255
255
|
noop: Fo,
|
|
256
256
|
toFiniteNumber: Do,
|
|
257
|
-
findKey:
|
|
257
|
+
findKey: Vr,
|
|
258
258
|
global: ce,
|
|
259
259
|
isContextDefined: Qr,
|
|
260
260
|
ALPHABET: Yr,
|
|
@@ -409,10 +409,10 @@ function cr(t) {
|
|
|
409
409
|
return e[r];
|
|
410
410
|
});
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function qt(t, e) {
|
|
413
413
|
this._pairs = [], t && ot(t, this, e);
|
|
414
414
|
}
|
|
415
|
-
const nn =
|
|
415
|
+
const nn = qt.prototype;
|
|
416
416
|
nn.append = function(e, n) {
|
|
417
417
|
this._pairs.push([e, n]);
|
|
418
418
|
};
|
|
@@ -432,7 +432,7 @@ function on(t, e, n) {
|
|
|
432
432
|
return t;
|
|
433
433
|
const r = n && n.encode || Ho, o = n && n.serialize;
|
|
434
434
|
let a;
|
|
435
|
-
if (o ? a = o(e, n) : a = f.isURLSearchParams(e) ? e.toString() : new
|
|
435
|
+
if (o ? a = o(e, n) : a = f.isURLSearchParams(e) ? e.toString() : new qt(e, n).toString(r), a) {
|
|
436
436
|
const i = t.indexOf("#");
|
|
437
437
|
i !== -1 && (t = t.slice(0, i)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
|
|
438
438
|
}
|
|
@@ -496,7 +496,7 @@ const an = {
|
|
|
496
496
|
silentJSONParsing: !0,
|
|
497
497
|
forcedJSONParsing: !0,
|
|
498
498
|
clarifyTimeoutError: !1
|
|
499
|
-
}, Wo = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
499
|
+
}, Wo = typeof URLSearchParams < "u" ? URLSearchParams : qt, Ko = typeof FormData < "u" ? FormData : null, Go = typeof Blob < "u" ? Blob : null, Jo = {
|
|
500
500
|
isBrowser: !0,
|
|
501
501
|
classes: {
|
|
502
502
|
URLSearchParams: Wo,
|
|
@@ -504,17 +504,17 @@ const an = {
|
|
|
504
504
|
Blob: Go
|
|
505
505
|
},
|
|
506
506
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
507
|
-
},
|
|
508
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Xo =
|
|
507
|
+
}, Ht = typeof window < "u" && typeof document < "u", $t = typeof navigator == "object" && navigator || void 0, Vo = Ht && (!$t || ["ReactNative", "NativeScript", "NS"].indexOf($t.product) < 0), Qo = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
508
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Xo = Ht && window.location.href || "http://localhost", Yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
509
509
|
__proto__: null,
|
|
510
|
-
hasBrowserEnv:
|
|
511
|
-
hasStandardBrowserEnv:
|
|
510
|
+
hasBrowserEnv: Ht,
|
|
511
|
+
hasStandardBrowserEnv: Vo,
|
|
512
512
|
hasStandardBrowserWebWorkerEnv: Qo,
|
|
513
513
|
navigator: $t,
|
|
514
514
|
origin: Xo
|
|
515
515
|
}, Symbol.toStringTag, { value: "Module" })), H = {
|
|
516
516
|
...Yo,
|
|
517
|
-
...
|
|
517
|
+
...Jo
|
|
518
518
|
};
|
|
519
519
|
function Zo(t, e) {
|
|
520
520
|
return ot(t, new H.classes.URLSearchParams(), Object.assign({
|
|
@@ -880,7 +880,7 @@ function fa(t, e) {
|
|
|
880
880
|
}, r - p)));
|
|
881
881
|
}, () => o && i(o)];
|
|
882
882
|
}
|
|
883
|
-
const
|
|
883
|
+
const Je = (t, e, n = 3) => {
|
|
884
884
|
let r = 0;
|
|
885
885
|
const o = ua(50, 250);
|
|
886
886
|
return fa((a) => {
|
|
@@ -1106,7 +1106,7 @@ const fn = (t) => {
|
|
|
1106
1106
|
)), m = null;
|
|
1107
1107
|
}, a === void 0 && i.setContentType(null), "setRequestHeader" in m && f.forEach(i.toJSON(), function(F, T) {
|
|
1108
1108
|
m.setRequestHeader(T, F);
|
|
1109
|
-
}), f.isUndefined(o.withCredentials) || (m.withCredentials = !!o.withCredentials), s && s !== "json" && (m.responseType = o.responseType), l && ([d, y] =
|
|
1109
|
+
}), f.isUndefined(o.withCredentials) || (m.withCredentials = !!o.withCredentials), s && s !== "json" && (m.responseType = o.responseType), l && ([d, y] = Je(l, !0), m.addEventListener("progress", d)), u && m.upload && ([p, g] = Je(u), m.upload.addEventListener("progress", p), m.upload.addEventListener("loadend", g)), (o.cancelToken || o.signal) && (c = (v) => {
|
|
1110
1110
|
m && (r(!v || v.type ? new Oe(null, t, m) : v), m.abort(), m = null);
|
|
1111
1111
|
}, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
|
|
1112
1112
|
const P = ca(o.url);
|
|
@@ -1212,12 +1212,12 @@ const fn = (t) => {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
}).headers.has("Content-Type");
|
|
1214
1214
|
return t && !e;
|
|
1215
|
-
}), hr = 64 * 1024, Ct = pn && dn(() => f.isReadableStream(new Response("").body)),
|
|
1215
|
+
}), hr = 64 * 1024, Ct = pn && dn(() => f.isReadableStream(new Response("").body)), Ve = {
|
|
1216
1216
|
stream: Ct && ((t) => t.body)
|
|
1217
1217
|
};
|
|
1218
1218
|
at && ((t) => {
|
|
1219
1219
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
|
1220
|
-
!
|
|
1220
|
+
!Ve[e] && (Ve[e] = f.isFunction(t[e]) ? (n) => n[e]() : (n, r) => {
|
|
1221
1221
|
throw new S(`Response type '${e}' is not supported`, S.ERR_NOT_SUPPORT, r);
|
|
1222
1222
|
});
|
|
1223
1223
|
});
|
|
@@ -1270,7 +1270,7 @@ const Oa = async (t) => {
|
|
|
1270
1270
|
if (f.isFormData(r) && (B = T.headers.get("content-type")) && c.setContentType(B), T.body) {
|
|
1271
1271
|
const [L, G] = pr(
|
|
1272
1272
|
m,
|
|
1273
|
-
|
|
1273
|
+
Je(dr(u))
|
|
1274
1274
|
);
|
|
1275
1275
|
r = mr(T.body, hr, L, G);
|
|
1276
1276
|
}
|
|
@@ -1290,12 +1290,12 @@ const Oa = async (t) => {
|
|
|
1290
1290
|
const v = Ct && (l === "stream" || l === "response");
|
|
1291
1291
|
if (Ct && (s || v && h)) {
|
|
1292
1292
|
const T = {};
|
|
1293
|
-
["status", "statusText", "headers"].forEach((
|
|
1294
|
-
T[
|
|
1293
|
+
["status", "statusText", "headers"].forEach((V) => {
|
|
1294
|
+
T[V] = P[V];
|
|
1295
1295
|
});
|
|
1296
1296
|
const B = f.toFiniteNumber(P.headers.get("content-length")), [L, G] = s && pr(
|
|
1297
1297
|
B,
|
|
1298
|
-
|
|
1298
|
+
Je(dr(s), !0)
|
|
1299
1299
|
) || [];
|
|
1300
1300
|
P = new Response(
|
|
1301
1301
|
mr(P.body, hr, L, () => {
|
|
@@ -1305,7 +1305,7 @@ const Oa = async (t) => {
|
|
|
1305
1305
|
);
|
|
1306
1306
|
}
|
|
1307
1307
|
l = l || "text";
|
|
1308
|
-
let F = await
|
|
1308
|
+
let F = await Ve[f.findKey(Ve, l) || "text"](P, t);
|
|
1309
1309
|
return !v && h && h(), await new Promise((T, B) => {
|
|
1310
1310
|
cn(T, B, {
|
|
1311
1311
|
data: F,
|
|
@@ -1391,14 +1391,14 @@ function vr(t) {
|
|
|
1391
1391
|
), r.response.headers = W.from(r.response.headers))), Promise.reject(r);
|
|
1392
1392
|
});
|
|
1393
1393
|
}
|
|
1394
|
-
const mn = "1.7.7",
|
|
1394
|
+
const mn = "1.7.7", Wt = {};
|
|
1395
1395
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
1396
|
-
|
|
1396
|
+
Wt[t] = function(r) {
|
|
1397
1397
|
return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
1398
1398
|
};
|
|
1399
1399
|
});
|
|
1400
1400
|
const wr = {};
|
|
1401
|
-
|
|
1401
|
+
Wt.transitional = function(e, n, r) {
|
|
1402
1402
|
function o(a, i) {
|
|
1403
1403
|
return "[Axios v" + mn + "] Transitional option '" + a + "'" + i + (r ? ". " + r : "");
|
|
1404
1404
|
}
|
|
@@ -1430,7 +1430,7 @@ function Ta(t, e, n) {
|
|
|
1430
1430
|
}
|
|
1431
1431
|
const _t = {
|
|
1432
1432
|
assertOptions: Ta,
|
|
1433
|
-
validators:
|
|
1433
|
+
validators: Wt
|
|
1434
1434
|
}, ne = _t.validators;
|
|
1435
1435
|
class ue {
|
|
1436
1436
|
constructor(e) {
|
|
@@ -1553,7 +1553,7 @@ f.forEach(["post", "put", "patch"], function(e) {
|
|
|
1553
1553
|
}
|
|
1554
1554
|
ue.prototype[e] = n(), ue.prototype[e + "Form"] = n(!0);
|
|
1555
1555
|
});
|
|
1556
|
-
class
|
|
1556
|
+
class Kt {
|
|
1557
1557
|
constructor(e) {
|
|
1558
1558
|
if (typeof e != "function")
|
|
1559
1559
|
throw new TypeError("executor must be a function.");
|
|
@@ -1619,7 +1619,7 @@ class Gt {
|
|
|
1619
1619
|
static source() {
|
|
1620
1620
|
let e;
|
|
1621
1621
|
return {
|
|
1622
|
-
token: new
|
|
1622
|
+
token: new Kt(function(o) {
|
|
1623
1623
|
e = o;
|
|
1624
1624
|
}),
|
|
1625
1625
|
cancel: e
|
|
@@ -1711,7 +1711,7 @@ function hn(t) {
|
|
|
1711
1711
|
const D = hn(De);
|
|
1712
1712
|
D.Axios = ue;
|
|
1713
1713
|
D.CanceledError = Oe;
|
|
1714
|
-
D.CancelToken =
|
|
1714
|
+
D.CancelToken = Kt;
|
|
1715
1715
|
D.isCancel = ln;
|
|
1716
1716
|
D.VERSION = mn;
|
|
1717
1717
|
D.toFormData = ot;
|
|
@@ -1791,11 +1791,11 @@ var Fa = Error, Da = EvalError, Ia = RangeError, ka = ReferenceError, gn = Synta
|
|
|
1791
1791
|
for (var r = [], o = n, a = 0; o < e.length; o += 1, a += 1)
|
|
1792
1792
|
r[a] = e[o];
|
|
1793
1793
|
return r;
|
|
1794
|
-
},
|
|
1794
|
+
}, Ja = function(t, e) {
|
|
1795
1795
|
for (var n = "", r = 0; r < t.length; r += 1)
|
|
1796
1796
|
n += t[r], r + 1 < t.length && (n += e);
|
|
1797
1797
|
return n;
|
|
1798
|
-
},
|
|
1798
|
+
}, Va = function(e) {
|
|
1799
1799
|
var n = this;
|
|
1800
1800
|
if (typeof n != "function" || Ha.apply(n) !== Ka)
|
|
1801
1801
|
throw new TypeError(qa + n);
|
|
@@ -1813,13 +1813,13 @@ var Fa = Error, Da = EvalError, Ia = RangeError, ka = ReferenceError, gn = Synta
|
|
|
1813
1813
|
);
|
|
1814
1814
|
}, i = Wa(0, n.length - r.length), s = [], u = 0; u < i; u++)
|
|
1815
1815
|
s[u] = "$" + u;
|
|
1816
|
-
if (o = Function("binder", "return function (" +
|
|
1816
|
+
if (o = Function("binder", "return function (" + Ja(s, ",") + "){ return binder.apply(this,arguments); }")(a), n.prototype) {
|
|
1817
1817
|
var l = function() {
|
|
1818
1818
|
};
|
|
1819
1819
|
l.prototype = n.prototype, o.prototype = new l(), l.prototype = null;
|
|
1820
1820
|
}
|
|
1821
1821
|
return o;
|
|
1822
|
-
}, Qa =
|
|
1822
|
+
}, Qa = Va, Gt = Function.prototype.bind || Qa, Xa = Function.prototype.call, Ya = Object.prototype.hasOwnProperty, Za = Gt, ei = Za.call(Xa, Ya), A, ti = Fa, ri = Da, ni = Ia, oi = ka, be = gn, we = Ie, ai = Ba, vn = Function, mt = function(t) {
|
|
1823
1823
|
try {
|
|
1824
1824
|
return vn('"use strict"; return (' + t + ").constructor;")();
|
|
1825
1825
|
} catch {
|
|
@@ -1991,7 +1991,7 @@ var ui = function t(e) {
|
|
|
1991
1991
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
1992
1992
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
1993
1993
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
1994
|
-
}, ke =
|
|
1994
|
+
}, ke = Gt, Qe = ei, fi = ke.call(Function.call, Array.prototype.concat), pi = ke.call(Function.apply, Array.prototype.splice), Or = ke.call(Function.call, String.prototype.replace), Xe = ke.call(Function.call, String.prototype.slice), di = ke.call(Function.call, RegExp.prototype.exec), yi = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, mi = /\\(\\)?/g, hi = function(e) {
|
|
1995
1995
|
var n = Xe(e, 0, 1), r = Xe(e, -1);
|
|
1996
1996
|
if (n === "%" && r !== "%")
|
|
1997
1997
|
throw new be("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -2126,7 +2126,7 @@ var Si = Sn, Ei = Re, Tr = bi, Ai = Si(), $r = bn, Cr = Ie, Oi = Ei("%Math.floor
|
|
|
2126
2126
|
)), e;
|
|
2127
2127
|
};
|
|
2128
2128
|
(function(t) {
|
|
2129
|
-
var e =
|
|
2129
|
+
var e = Gt, n = Re, r = Ri, o = Ie, a = n("%Function.prototype.apply%"), i = n("%Function.prototype.call%"), s = n("%Reflect.apply%", !0) || e.call(i, a), u = Jt(), l = n("%Math.max%");
|
|
2130
2130
|
t.exports = function(d) {
|
|
2131
2131
|
if (typeof d != "function")
|
|
2132
2132
|
throw new o("a function is required");
|
|
@@ -2150,7 +2150,7 @@ const $i = {}, Ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2150
2150
|
__proto__: null,
|
|
2151
2151
|
default: $i
|
|
2152
2152
|
}, Symbol.toStringTag, { value: "Module" })), Ni = /* @__PURE__ */ _a(Ci);
|
|
2153
|
-
var
|
|
2153
|
+
var Vt = typeof Map == "function" && Map.prototype, vt = Object.getOwnPropertyDescriptor && Vt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ye = Vt && vt && typeof vt.get == "function" ? vt.get : null, Nr = Vt && Map.prototype.forEach, Qt = typeof Set == "function" && Set.prototype, wt = Object.getOwnPropertyDescriptor && Qt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Ze = Qt && wt && typeof wt.get == "function" ? wt.get : null, _r = Qt && Set.prototype.forEach, _i = typeof WeakMap == "function" && WeakMap.prototype, $e = _i ? WeakMap.prototype.has : null, Fi = typeof WeakSet == "function" && WeakSet.prototype, Ce = Fi ? WeakSet.prototype.has : null, Di = typeof WeakRef == "function" && WeakRef.prototype, Fr = Di ? WeakRef.prototype.deref : null, Ii = Boolean.prototype.valueOf, ki = Object.prototype.toString, Bi = Function.prototype.toString, Li = String.prototype.match, Xt = String.prototype.slice, ae = String.prototype.replace, Ui = String.prototype.toUpperCase, Dr = String.prototype.toLowerCase, On = RegExp.prototype.test, Ir = Array.prototype.concat, ee = Array.prototype.join, Mi = Array.prototype.slice, kr = Math.floor, It = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, bt = Object.getOwnPropertySymbols, kt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Se = typeof Symbol == "function" && typeof Symbol.iterator == "object", U = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Se || !0) ? Symbol.toStringTag : null, Rn = Object.prototype.propertyIsEnumerable, Br = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
2154
2154
|
return t.__proto__;
|
|
2155
2155
|
} : null);
|
|
2156
2156
|
function Lr(t, e) {
|
|
@@ -2160,7 +2160,7 @@ function Lr(t, e) {
|
|
|
2160
2160
|
if (typeof t == "number") {
|
|
2161
2161
|
var r = t < 0 ? -kr(-t) : kr(t);
|
|
2162
2162
|
if (r !== t) {
|
|
2163
|
-
var o = String(r), a =
|
|
2163
|
+
var o = String(r), a = Xt.call(e, o.length + 1);
|
|
2164
2164
|
return ae.call(o, n, "$&_") + "." + ae.call(ae.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
2165
2165
|
}
|
|
2166
2166
|
}
|
|
@@ -2264,7 +2264,7 @@ var Bt = Ni, Ur = Bt.custom, Mr = xn(Ur) ? Ur : null, ji = function t(e, n, r, o
|
|
|
2264
2264
|
return St("WeakRef");
|
|
2265
2265
|
if (Ki(e))
|
|
2266
2266
|
return Te(d(Number(e)));
|
|
2267
|
-
if (
|
|
2267
|
+
if (Ji(e))
|
|
2268
2268
|
return Te(d(It.call(e)));
|
|
2269
2269
|
if (Gi(e))
|
|
2270
2270
|
return Te(Ii.call(e));
|
|
@@ -2275,7 +2275,7 @@ var Bt = Ni, Ur = Bt.custom, Mr = xn(Ur) ? Ur : null, ji = function t(e, n, r, o
|
|
|
2275
2275
|
if (typeof globalThis < "u" && e === globalThis || typeof br < "u" && e === br)
|
|
2276
2276
|
return "{ [object globalThis] }";
|
|
2277
2277
|
if (!qi(e) && !jr(e)) {
|
|
2278
|
-
var L = Le(e, d), G = Br ? Br(e) === Object.prototype : e instanceof Object || e.constructor === Object,
|
|
2278
|
+
var L = Le(e, d), G = Br ? Br(e) === Object.prototype : e instanceof Object || e.constructor === Object, V = e instanceof Object ? "" : "null prototype", E = !G && U && Object(e) === e && U in e ? Xt.call(ie(e), 8, -1) : V ? "Object" : "", O = G || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", $ = O + (E || V ? "[" + ee.call(Ir.call([], E || [], V || []), ": ") + "] " : "");
|
|
2279
2279
|
return L.length === 0 ? $ + "{}" : p ? $ + "{" + Ut(L, p) + "}" : $ + "{ " + ee.call(L, ", ") + " }";
|
|
2280
2280
|
}
|
|
2281
2281
|
return String(e);
|
|
@@ -2321,7 +2321,7 @@ function xn(t) {
|
|
|
2321
2321
|
}
|
|
2322
2322
|
return !1;
|
|
2323
2323
|
}
|
|
2324
|
-
function
|
|
2324
|
+
function Ji(t) {
|
|
2325
2325
|
if (!t || typeof t != "object" || !It)
|
|
2326
2326
|
return !1;
|
|
2327
2327
|
try {
|
|
@@ -2330,11 +2330,11 @@ function Vi(t) {
|
|
|
2330
2330
|
}
|
|
2331
2331
|
return !1;
|
|
2332
2332
|
}
|
|
2333
|
-
var
|
|
2333
|
+
var Vi = Object.prototype.hasOwnProperty || function(t) {
|
|
2334
2334
|
return t in this;
|
|
2335
2335
|
};
|
|
2336
2336
|
function oe(t, e) {
|
|
2337
|
-
return
|
|
2337
|
+
return Vi.call(t, e);
|
|
2338
2338
|
}
|
|
2339
2339
|
function ie(t) {
|
|
2340
2340
|
return ki.call(t);
|
|
@@ -2428,7 +2428,7 @@ function rs(t) {
|
|
|
2428
2428
|
function $n(t, e) {
|
|
2429
2429
|
if (t.length > e.maxStringLength) {
|
|
2430
2430
|
var n = t.length - e.maxStringLength, r = "... " + n + " more character" + (n > 1 ? "s" : "");
|
|
2431
|
-
return $n(
|
|
2431
|
+
return $n(Xt.call(t, 0, e.maxStringLength), e) + r;
|
|
2432
2432
|
}
|
|
2433
2433
|
var o = ae.call(ae.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, ns);
|
|
2434
2434
|
return Pn(o, "single", e);
|
|
@@ -2501,16 +2501,16 @@ function Le(t, e) {
|
|
|
2501
2501
|
Rn.call(t, a[l]) && r.push("[" + e(a[l]) + "]: " + e(t[a[l]], t));
|
|
2502
2502
|
return r;
|
|
2503
2503
|
}
|
|
2504
|
-
var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%", !0), ls = Pe("WeakMap.prototype.get", !0), cs = Pe("WeakMap.prototype.set", !0), us = Pe("WeakMap.prototype.has", !0), fs = Pe("Map.prototype.get", !0), ps = Pe("Map.prototype.set", !0), ds = Pe("Map.prototype.has", !0),
|
|
2504
|
+
var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%", !0), ls = Pe("WeakMap.prototype.get", !0), cs = Pe("WeakMap.prototype.set", !0), us = Pe("WeakMap.prototype.has", !0), fs = Pe("Map.prototype.get", !0), ps = Pe("Map.prototype.set", !0), ds = Pe("Map.prototype.has", !0), Yt = function(t, e) {
|
|
2505
2505
|
for (var n = t, r; (r = n.next) !== null; n = r)
|
|
2506
2506
|
if (r.key === e)
|
|
2507
2507
|
return n.next = r.next, r.next = /** @type {NonNullable<typeof list.next>} */
|
|
2508
2508
|
t.next, t.next = r, r;
|
|
2509
2509
|
}, ys = function(t, e) {
|
|
2510
|
-
var n =
|
|
2510
|
+
var n = Yt(t, e);
|
|
2511
2511
|
return n && n.value;
|
|
2512
2512
|
}, ms = function(t, e, n) {
|
|
2513
|
-
var r =
|
|
2513
|
+
var r = Yt(t, e);
|
|
2514
2514
|
r ? r.value = n : t.next = /** @type {import('.').ListNode<typeof value>} */
|
|
2515
2515
|
{
|
|
2516
2516
|
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
@@ -2519,7 +2519,7 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2519
2519
|
value: n
|
|
2520
2520
|
};
|
|
2521
2521
|
}, hs = function(t, e) {
|
|
2522
|
-
return !!
|
|
2522
|
+
return !!Yt(t, e);
|
|
2523
2523
|
}, gs = function() {
|
|
2524
2524
|
var e, n, r, o = {
|
|
2525
2525
|
assert: function(a) {
|
|
@@ -2555,7 +2555,7 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2555
2555
|
}, vs = String.prototype.replace, ws = /%20/g, Et = {
|
|
2556
2556
|
RFC1738: "RFC1738",
|
|
2557
2557
|
RFC3986: "RFC3986"
|
|
2558
|
-
},
|
|
2558
|
+
}, Zt = {
|
|
2559
2559
|
default: Et.RFC3986,
|
|
2560
2560
|
formatters: {
|
|
2561
2561
|
RFC1738: function(t) {
|
|
@@ -2567,7 +2567,7 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2567
2567
|
},
|
|
2568
2568
|
RFC1738: Et.RFC1738,
|
|
2569
2569
|
RFC3986: Et.RFC3986
|
|
2570
|
-
}, bs =
|
|
2570
|
+
}, bs = Zt, At = Object.prototype.hasOwnProperty, le = Array.isArray, Y = function() {
|
|
2571
2571
|
for (var t = [], e = 0; e < 256; ++e)
|
|
2572
2572
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
2573
2573
|
return t;
|
|
@@ -2685,7 +2685,7 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2685
2685
|
isRegExp: xs,
|
|
2686
2686
|
maybeMap: Cs,
|
|
2687
2687
|
merge: Es
|
|
2688
|
-
}, Fn = gs, Ke = _n, Ne =
|
|
2688
|
+
}, Fn = gs, Ke = _n, Ne = Zt, Ns = Object.prototype.hasOwnProperty, Dn = {
|
|
2689
2689
|
brackets: function(e) {
|
|
2690
2690
|
return e + "[]";
|
|
2691
2691
|
},
|
|
@@ -2745,9 +2745,9 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2745
2745
|
}
|
|
2746
2746
|
return [h(n) + "=" + h(String(v))];
|
|
2747
2747
|
}
|
|
2748
|
-
var
|
|
2748
|
+
var V = [];
|
|
2749
2749
|
if (typeof v > "u")
|
|
2750
|
-
return
|
|
2750
|
+
return V;
|
|
2751
2751
|
var E;
|
|
2752
2752
|
if (r === "comma" && Z(v))
|
|
2753
2753
|
m && l && (v = Ke.maybeMap(v, l)), E = [{ value: v.length > 0 ? v.join(",") || null : void 0 }];
|
|
@@ -2766,7 +2766,7 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2766
2766
|
var j = d && u ? w.replace(/\./g, "%2E") : w, z = Z(v) ? typeof r == "function" ? r(x, j) : x : x + (d ? "." + j : "[" + j + "]");
|
|
2767
2767
|
P.set(e, T);
|
|
2768
2768
|
var se = Fn();
|
|
2769
|
-
se.set(Rt, P), In(
|
|
2769
|
+
se.set(Rt, P), In(V, t(
|
|
2770
2770
|
M,
|
|
2771
2771
|
z,
|
|
2772
2772
|
r,
|
|
@@ -2788,7 +2788,7 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2788
2788
|
));
|
|
2789
2789
|
}
|
|
2790
2790
|
}
|
|
2791
|
-
return
|
|
2791
|
+
return V;
|
|
2792
2792
|
}, ks = function(e) {
|
|
2793
2793
|
if (!e)
|
|
2794
2794
|
return I;
|
|
@@ -2994,9 +2994,9 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2994
2994
|
o = Ee.merge(o, u, n);
|
|
2995
2995
|
}
|
|
2996
2996
|
return n.allowSparse === !0 ? o : Ee.compact(o);
|
|
2997
|
-
}, Gs = Bs,
|
|
2998
|
-
formats:
|
|
2999
|
-
parse:
|
|
2997
|
+
}, Gs = Bs, Js = Ks, Vs = Zt, Qs = {
|
|
2998
|
+
formats: Vs,
|
|
2999
|
+
parse: Js,
|
|
3000
3000
|
stringify: Gs
|
|
3001
3001
|
};
|
|
3002
3002
|
const Xs = /* @__PURE__ */ Na(Qs);
|
|
@@ -3073,33 +3073,33 @@ function jt(t, e) {
|
|
|
3073
3073
|
var Zs = jt(Ys, { path: "/" });
|
|
3074
3074
|
const el = {
|
|
3075
3075
|
参数校验错误: { "zh-CN": "参数校验错误", en: "Parameter Validation Error", _appCode: "framework" },
|
|
3076
|
-
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api
|
|
3076
|
+
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api endpoint not found", _appCode: "framework" },
|
|
3077
3077
|
服务器内部错误: { "zh-CN": "服务器内部错误", en: "Internal Server Error", _appCode: "framework" },
|
|
3078
3078
|
解析错误: { "zh-CN": "解析错误", en: "Parsing Error", _appCode: "framework" },
|
|
3079
3079
|
请求配置异常: { "zh-CN": "请求配置异常", en: "Request Configuration Error", _appCode: "framework" },
|
|
3080
3080
|
"网络异常,请检查您的网络情况": {
|
|
3081
3081
|
"zh-CN": "网络异常,请检查您的网络情况",
|
|
3082
|
-
en: "Network
|
|
3082
|
+
en: "Network error, please check your network status",
|
|
3083
3083
|
_appCode: "framework"
|
|
3084
3084
|
}
|
|
3085
3085
|
};
|
|
3086
3086
|
Wr(el);
|
|
3087
|
-
et.extend(
|
|
3087
|
+
et.extend(Vn);
|
|
3088
3088
|
et.extend(Qn);
|
|
3089
|
-
const
|
|
3089
|
+
const er = Ge(), Bn = er.sso ?? !0, tl = er.i18n ?? !0, Ln = er.noRedireLogin ?? !1, Un = () => {
|
|
3090
3090
|
if (Ln) return;
|
|
3091
3091
|
const t = "/login";
|
|
3092
3092
|
location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
|
|
3093
|
-
},
|
|
3093
|
+
}, rl = async (t) => {
|
|
3094
3094
|
var n;
|
|
3095
3095
|
return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
|
|
3096
|
-
},
|
|
3096
|
+
}, nl = async (t, e) => {
|
|
3097
3097
|
var u, l, c, p, d;
|
|
3098
3098
|
let n = ((u = t.response) == null ? void 0 : u.status) || 500, r = (l = t.response) == null ? void 0 : l.message, o = {};
|
|
3099
3099
|
const a = { 400: C("参数校验错误"), 404: C("接口地址未找到"), 500: C("服务器内部错误") };
|
|
3100
3100
|
let i = ((c = t == null ? void 0 : t.response) == null ? void 0 : c.data) || {};
|
|
3101
3101
|
if (!(Wn("code") || "") && !Ln && (n === 401 || (i == null ? void 0 : i.code) === 401))
|
|
3102
|
-
|
|
3102
|
+
Bn ? Kn({ ...Gn, redirect_uri: Jn }) : Un(), o = i;
|
|
3103
3103
|
else {
|
|
3104
3104
|
if (t.response) {
|
|
3105
3105
|
if (i instanceof Blob && (i = await new Promise((g) => {
|
|
@@ -3112,7 +3112,7 @@ const Bn = Ge(), zt = Bn.sso ?? !0, Ln = Bn.noRedireLogin ?? !1, Un = () => {
|
|
|
3112
3112
|
}
|
|
3113
3113
|
};
|
|
3114
3114
|
})), i.code) {
|
|
3115
|
-
if (n = i.code,
|
|
3115
|
+
if (n = i.code, tl) {
|
|
3116
3116
|
const g = (i == null ? void 0 : i.status) ?? "";
|
|
3117
3117
|
r = !(i != null && i.data) || !i.data.length ? C(g) : C(g, ...i.data);
|
|
3118
3118
|
} else
|
|
@@ -3134,9 +3134,9 @@ const Bn = Ge(), zt = Bn.sso ?? !0, Ln = Bn.noRedireLogin ?? !1, Un = () => {
|
|
|
3134
3134
|
const c = new URL(location.href).searchParams;
|
|
3135
3135
|
l = c.get("token") || c.get("accessToken") || c.get("accesstoken") || "";
|
|
3136
3136
|
}
|
|
3137
|
-
|
|
3137
|
+
Bn ? l || (l = await Hn(r)) : (l || (l = Zn()), l || Un()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
|
|
3138
3138
|
}
|
|
3139
|
-
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Xs.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess =
|
|
3139
|
+
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Xs.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = rl), r.onError || (r.onError = nl), (r.csrf ?? !1) && (r.headers["csrf-token"] = Zs.get("csrf-token"));
|
|
3140
3140
|
const s = r.params || {};
|
|
3141
3141
|
if (s.project === void 0) {
|
|
3142
3142
|
let l = 0;
|
|
@@ -3149,11 +3149,11 @@ const Bn = Ge(), zt = Bn.sso ?? !0, Ln = Bn.noRedireLogin ?? !1, Un = () => {
|
|
|
3149
3149
|
}
|
|
3150
3150
|
return r.params = s, r.headers.Timezone = et.tz.guess(), (e == null ? void 0 : e(r)) || r;
|
|
3151
3151
|
});
|
|
3152
|
-
},
|
|
3152
|
+
}, ol = "v1", Bl = b(`/api/app-manager/application/${ol}`), al = "v1", Ll = b(`/api/license/admin/${al}`), il = "v1", Pt = `/api/bems/data-manage/${il}`, Ul = {
|
|
3153
3153
|
energyType: b(`${Pt}/energy-type`),
|
|
3154
3154
|
energyObject: b(`${Pt}/energy-object`),
|
|
3155
3155
|
energyDimension: b(`${Pt}/energy-dimension`)
|
|
3156
|
-
},
|
|
3156
|
+
}, sl = "v1", Ml = b(`/api/supply/contract/${sl}`), ze = "v1", jl = {
|
|
3157
3157
|
classes: b(`/api/duty-manage/classes/${ze}`),
|
|
3158
3158
|
// 班次管理
|
|
3159
3159
|
group: b(`/api/duty-manage/group/${ze}`),
|
|
@@ -3162,17 +3162,17 @@ const Bn = Ge(), zt = Bn.sso ?? !0, Ln = Bn.noRedireLogin ?? !1, Un = () => {
|
|
|
3162
3162
|
// 排班管理
|
|
3163
3163
|
shift: b(`/api/duty-manage/shift/${ze}`)
|
|
3164
3164
|
// 交接班管理
|
|
3165
|
-
},
|
|
3165
|
+
}, ll = "v1", zl = b(`/api/enterpriseright/permission/${ll}`), te = "v1", ql = b(`/api/iot/${te}`), Hl = {
|
|
3166
3166
|
thingmodel: b(`/api/iot-device/thingmodel/${te}`),
|
|
3167
3167
|
deviceManage: b(`/api/iot-device/devicemanage/${te}`),
|
|
3168
3168
|
product: b(`/api/iot-device/product/${te}`),
|
|
3169
3169
|
productStorage: b(`/api/iot-device/product-storage/${te}`)
|
|
3170
|
-
},
|
|
3170
|
+
}, Wl = {
|
|
3171
3171
|
projectDevice: b(`/api/device-relation/deviceproject/${te}`),
|
|
3172
3172
|
deviceRules: b(`/api/device-relation/devicerule/${te}`),
|
|
3173
3173
|
project: b(`/api/device-relation/project/${te}`)
|
|
3174
|
-
}, tr = b(`/api/oss/minio/${te}`),
|
|
3175
|
-
let
|
|
3174
|
+
}, tr = b(`/api/oss/minio/${te}`), cl = b(`/api/progress/accessor/${te}`);
|
|
3175
|
+
let ul = (t = 21) => {
|
|
3176
3176
|
let e = "", n = crypto.getRandomValues(new Uint8Array(t));
|
|
3177
3177
|
for (; t--; ) {
|
|
3178
3178
|
let r = n[t] & 63;
|
|
@@ -3180,12 +3180,12 @@ let cl = (t = 21) => {
|
|
|
3180
3180
|
}
|
|
3181
3181
|
return e;
|
|
3182
3182
|
};
|
|
3183
|
-
const
|
|
3184
|
-
let t =
|
|
3183
|
+
const fl = tr.get("token"), pl = tr.post("put-object", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), dl = tr.post("upload-objects", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), yl = cl.get("progress"), Kl = () => {
|
|
3184
|
+
let t = J(!1), e = J(""), n = J(0), r = J("normal"), o = J(!1), a, i = J(""), s = J(""), u = J(""), l = J(""), c = J(!1), p = J(""), d = "", g = J(""), y;
|
|
3185
3185
|
const h = () => {
|
|
3186
3186
|
s.value = "", u.value = "", l.value = "", c.value = !1, p.value = "";
|
|
3187
3187
|
}, m = async () => {
|
|
3188
|
-
const [E, O] = await
|
|
3188
|
+
const [E, O] = await fl().run();
|
|
3189
3189
|
return E ? { stauts: !1 } : { status: !0, data: O };
|
|
3190
3190
|
}, R = (E) => new Promise((O, $) => {
|
|
3191
3191
|
const _ = [];
|
|
@@ -3202,7 +3202,7 @@ const ul = tr.get("token"), fl = tr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3202
3202
|
const M = await m();
|
|
3203
3203
|
if (!M.status) return;
|
|
3204
3204
|
let j = M.data, z = null, { autoContentType: se, bucketName: q, importFileName: me } = $;
|
|
3205
|
-
const st = w ?
|
|
3205
|
+
const st = w ? dl : pl;
|
|
3206
3206
|
if (w) {
|
|
3207
3207
|
let re = [];
|
|
3208
3208
|
await O.forEach(async (Be) => {
|
|
@@ -3227,7 +3227,7 @@ const ul = tr.get("token"), fl = tr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3227
3227
|
}
|
|
3228
3228
|
const [jn, zn] = await st(z).run();
|
|
3229
3229
|
if (jn) return t.value = !1;
|
|
3230
|
-
const X = await
|
|
3230
|
+
const X = await hl(zn.data);
|
|
3231
3231
|
if (!w && (X == null ? void 0 : X.statusCode) != 200 || w && (X != null && X.some((re) => (re == null ? void 0 : re.statusCode) != 200))) {
|
|
3232
3232
|
t.value = !1, (nr = window.DasMessage) == null || nr.error({
|
|
3233
3233
|
message: (X == null ? void 0 : X.errorMsg) || C("上传失败"),
|
|
@@ -3274,7 +3274,7 @@ const ul = tr.get("token"), fl = tr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3274
3274
|
clearTimeout(a), a = null, t.value = !1;
|
|
3275
3275
|
}, L = async (E, O = "export", $, x = "") => {
|
|
3276
3276
|
var j, z, se;
|
|
3277
|
-
const [_, w] = await
|
|
3277
|
+
const [_, w] = await yl("", {
|
|
3278
3278
|
url: `progress/${E}`
|
|
3279
3279
|
}).run();
|
|
3280
3280
|
if (_) {
|
|
@@ -3342,14 +3342,14 @@ const ul = tr.get("token"), fl = tr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3342
3342
|
fileAction: v,
|
|
3343
3343
|
generateUniqueName: (E) => {
|
|
3344
3344
|
const O = E == null ? void 0 : E.match(/(.*?)(\.[^.]*$|$)/), $ = O.length ? O[2] : "";
|
|
3345
|
-
return `${O.length ? O[1] : E}${
|
|
3345
|
+
return `${O.length ? O[1] : E}${ul()}${$}`;
|
|
3346
3346
|
},
|
|
3347
3347
|
downloadFile: Hr,
|
|
3348
3348
|
resetStataus: h,
|
|
3349
3349
|
checkProgress: T,
|
|
3350
3350
|
fileHandleType: g
|
|
3351
3351
|
};
|
|
3352
|
-
},
|
|
3352
|
+
}, ml = (t) => {
|
|
3353
3353
|
let e = t == null ? void 0 : t.toLocaleLowerCase();
|
|
3354
3354
|
return {
|
|
3355
3355
|
excel: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
@@ -3382,7 +3382,7 @@ const ul = tr.get("token"), fl = tr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3382
3382
|
const r = new XMLHttpRequest();
|
|
3383
3383
|
r.open("get", t), r.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), r.responseType = "blob", r.onload = function(o) {
|
|
3384
3384
|
const a = new Blob([this.response], {
|
|
3385
|
-
type:
|
|
3385
|
+
type: ml(n)
|
|
3386
3386
|
}), i = URL.createObjectURL(a);
|
|
3387
3387
|
if (window.navigator.msSaveOrOpenBlob)
|
|
3388
3388
|
navigator.msSaveBlob(a, e);
|
|
@@ -3391,54 +3391,54 @@ const ul = tr.get("token"), fl = tr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3391
3391
|
s.href = i, s.download = e, s.click(), window.URL.revokeObjectURL(i);
|
|
3392
3392
|
}
|
|
3393
3393
|
}, r.send();
|
|
3394
|
-
},
|
|
3394
|
+
}, hl = (t) => new Promise((e, n) => {
|
|
3395
3395
|
var r = new FileReader();
|
|
3396
3396
|
r.onload = function(o) {
|
|
3397
3397
|
let a = "";
|
|
3398
3398
|
typeof r.result == "string" && (a = JSON.parse(r.result)), e(a);
|
|
3399
3399
|
}, r.readAsText(t);
|
|
3400
|
-
}),
|
|
3400
|
+
}), gl = "v2", Gl = b(`/api/edge/${gl}`), Mn = "v1", Jl = b(`/api/justauth/oauth-server/${Mn}/visitor`), Vl = b(`/api/justauth/oauth-server/${Mn}`), vl = "v1", Ql = b(`/api/knowledge-base/knowledge/${vl}`), wl = "v1", Xl = b(`/api/custom-datasource/custom/${wl}`), bl = "v1", Yl = b(`/api/permission/${bl}`), de = "v1", Zl = b(`/api/customer/customer/${de}`), ec = b(`/api/customer/company/${de}`), tc = b(`/api/customer/customer-grade/${de}`), rc = b(`/api/customer/customer-type/${de}`), nc = {
|
|
3401
3401
|
list: b(`/api/project/${de}/list`),
|
|
3402
3402
|
app: b(`/api/project/${de}/app`),
|
|
3403
3403
|
people: b(`/api/project/${de}/people`)
|
|
3404
|
-
},
|
|
3404
|
+
}, Sl = "v1", oc = b(`/api/portal/user/${Sl}`), El = "v1", ac = b(`/api/space-manage/space-tree/${El}`), it = "v1", ic = b(`/api/superadmin/portal/${it}`), sc = b(`/api/superadmin/permission/${it}`), lc = b(`/api/superadmin/resource/${it}`), cc = b(`/api/superadmin/license/${it}`), rr = "v1", uc = b(`/api/supply/supplier/${rr}`), fc = b(`/api/supplier/${rr}`), pc = b(`/api/supplier/${rr}/classification`), Al = "v1", dc = b(`/api/supply/brand/${Al}`), Ol = "v2", yc = b(`/api/tool/${Ol}`), Rl = "v1", mc = b(`/api/system-config/${Rl}`);
|
|
3405
3405
|
Wr(eo);
|
|
3406
3406
|
export {
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3407
|
+
Bl as appManage,
|
|
3408
|
+
Ll as authentication,
|
|
3409
|
+
Ul as bemsModules,
|
|
3410
|
+
ec as company,
|
|
3411
|
+
Ml as contract,
|
|
3412
3412
|
b as createService,
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3413
|
+
Zl as customer,
|
|
3414
|
+
tc as customerGrade,
|
|
3415
|
+
rc as customerType,
|
|
3416
|
+
Xl as daslink,
|
|
3417
3417
|
Hr as downloadFile,
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3418
|
+
jl as dutyModules,
|
|
3419
|
+
dc as enterpriseadminBrandModel,
|
|
3420
|
+
zl as enterpriseright,
|
|
3421
|
+
Gl as gatewayEdge,
|
|
3422
|
+
ql as iot,
|
|
3423
3423
|
tr as iotMinio,
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3424
|
+
Hl as iotModules,
|
|
3425
|
+
cl as iotProgress,
|
|
3426
|
+
Wl as iotRelationModules,
|
|
3427
|
+
Jl as justauth,
|
|
3428
|
+
Ql as knowledgeBase,
|
|
3429
3429
|
Vl as oauthServer,
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3430
|
+
Yl as permission,
|
|
3431
|
+
oc as portal,
|
|
3432
|
+
nc as projectManage,
|
|
3433
|
+
ac as spaceManage,
|
|
3434
|
+
cc as superadminLicense,
|
|
3435
|
+
sc as superadminPermission,
|
|
3436
|
+
ic as superadminPortal,
|
|
3437
|
+
lc as superadminResource,
|
|
3438
|
+
uc as supplier,
|
|
3439
|
+
pc as supplierClassification,
|
|
3440
|
+
fc as supplierManage,
|
|
3441
|
+
mc as systemConfiguration,
|
|
3442
|
+
yc as tool,
|
|
3443
|
+
Kl as useFile
|
|
3444
3444
|
};
|