@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { setI18nRule as bn, t as W } from "@das-fed/web/packages/i18n/index";
|
|
2
2
|
import { curringHttp as wn } from "@das-fed/utils/curring-http";
|
|
3
3
|
import { getToken as Sn, getQuery as En, login as An, getTokenParams as On, real_uri as Rn } from "@das-fed/utils/create-api-service/sso";
|
|
4
|
-
import
|
|
4
|
+
import Ot from "dayjs";
|
|
5
5
|
import Pn from "dayjs/plugin/utc";
|
|
6
6
|
import Tn from "dayjs/plugin/timezone";
|
|
7
7
|
import { getProjectInfo as xn, getInstanceInfo as Cn } from "@das-fed/utils/common-info";
|
|
@@ -12,7 +12,7 @@ function Or(t, e) {
|
|
|
12
12
|
return t.apply(e, arguments);
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
const { toString: Nn } = Object.prototype, { getPrototypeOf:
|
|
15
|
+
const { toString: Nn } = Object.prototype, { getPrototypeOf: Rt } = Object, Me = /* @__PURE__ */ ((t) => (e) => {
|
|
16
16
|
const n = Nn.call(e);
|
|
17
17
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
18
18
|
})(/* @__PURE__ */ Object.create(null)), B = (t) => (t = t.toLowerCase(), (e) => Me(e) === t), qe = (t) => (e) => typeof e === t, { isArray: ue } = Array, we = qe("undefined");
|
|
@@ -27,7 +27,7 @@ function _n(t) {
|
|
|
27
27
|
const In = qe("string"), I = qe("function"), Pr = qe("number"), je = (t) => t !== null && typeof t == "object", $n = (t) => t === !0 || t === !1, Fe = (t) => {
|
|
28
28
|
if (Me(t) !== "object")
|
|
29
29
|
return !1;
|
|
30
|
-
const e =
|
|
30
|
+
const e = Rt(t);
|
|
31
31
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
32
32
|
}, Bn = B("Date"), Un = B("File"), Ln = B("Blob"), kn = B("FileList"), Mn = (t) => je(t) && I(t.pipe), qn = (t) => {
|
|
33
33
|
let e;
|
|
@@ -80,14 +80,14 @@ const Vn = (t, e, n, { allOwnKeys: r } = {}) => (Se(e, (o, a) => {
|
|
|
80
80
|
do {
|
|
81
81
|
for (o = Object.getOwnPropertyNames(t), a = o.length; a-- > 0; )
|
|
82
82
|
i = o[a], (!r || r(i, t, e)) && !s[i] && (e[i] = t[i], s[i] = !0);
|
|
83
|
-
t = n !== !1 &&
|
|
83
|
+
t = n !== !1 && Rt(t);
|
|
84
84
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
85
85
|
return e;
|
|
86
|
-
},
|
|
86
|
+
}, Zn = (t, e, n) => {
|
|
87
87
|
t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
|
|
88
88
|
const r = t.indexOf(e, n);
|
|
89
89
|
return r !== -1 && r === n;
|
|
90
|
-
},
|
|
90
|
+
}, Yn = (t) => {
|
|
91
91
|
if (!t) return null;
|
|
92
92
|
if (ue(t)) return t;
|
|
93
93
|
let e = t.length;
|
|
@@ -96,7 +96,7 @@ const Vn = (t, e, n, { allOwnKeys: r } = {}) => (Se(e, (o, a) => {
|
|
|
96
96
|
for (; e-- > 0; )
|
|
97
97
|
n[e] = t[e];
|
|
98
98
|
return n;
|
|
99
|
-
}, eo = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" &&
|
|
99
|
+
}, eo = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Rt(Uint8Array)), to = (t, e) => {
|
|
100
100
|
const r = (t && t[Symbol.iterator]).call(t);
|
|
101
101
|
let o;
|
|
102
102
|
for (; (o = r.next()) && !o.done; ) {
|
|
@@ -215,8 +215,8 @@ const po = (t) => {
|
|
|
215
215
|
toFlatObject: Xn,
|
|
216
216
|
kindOf: Me,
|
|
217
217
|
kindOfTest: B,
|
|
218
|
-
endsWith:
|
|
219
|
-
toArray:
|
|
218
|
+
endsWith: Zn,
|
|
219
|
+
toArray: Yn,
|
|
220
220
|
forEachEntry: to,
|
|
221
221
|
matchAll: ro,
|
|
222
222
|
isHTMLForm: no,
|
|
@@ -384,10 +384,10 @@ function jt(t) {
|
|
|
384
384
|
return e[r];
|
|
385
385
|
});
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function Pt(t, e) {
|
|
388
388
|
this._pairs = [], t && ze(t, this, e);
|
|
389
389
|
}
|
|
390
|
-
const $r =
|
|
390
|
+
const $r = Pt.prototype;
|
|
391
391
|
$r.append = function(e, n) {
|
|
392
392
|
this._pairs.push([e, n]);
|
|
393
393
|
};
|
|
@@ -407,7 +407,7 @@ function Br(t, e, n) {
|
|
|
407
407
|
return t;
|
|
408
408
|
const r = n && n.encode || wo, o = n && n.serialize;
|
|
409
409
|
let a;
|
|
410
|
-
if (o ? a = o(e, n) : a = f.isURLSearchParams(e) ? e.toString() : new
|
|
410
|
+
if (o ? a = o(e, n) : a = f.isURLSearchParams(e) ? e.toString() : new Pt(e, n).toString(r), a) {
|
|
411
411
|
const i = t.indexOf("#");
|
|
412
412
|
i !== -1 && (t = t.slice(0, i)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
|
|
413
413
|
}
|
|
@@ -471,7 +471,7 @@ const Ur = {
|
|
|
471
471
|
silentJSONParsing: !0,
|
|
472
472
|
forcedJSONParsing: !0,
|
|
473
473
|
clarifyTimeoutError: !1
|
|
474
|
-
}, So = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
474
|
+
}, So = typeof URLSearchParams < "u" ? URLSearchParams : Pt, Eo = typeof FormData < "u" ? FormData : null, Ao = typeof Blob < "u" ? Blob : null, Oo = {
|
|
475
475
|
isBrowser: !0,
|
|
476
476
|
classes: {
|
|
477
477
|
URLSearchParams: So,
|
|
@@ -479,10 +479,10 @@ const Ur = {
|
|
|
479
479
|
Blob: Ao
|
|
480
480
|
},
|
|
481
481
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
482
|
-
},
|
|
483
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", To =
|
|
482
|
+
}, Tt = typeof window < "u" && typeof document < "u", ft = typeof navigator == "object" && navigator || void 0, Ro = Tt && (!ft || ["ReactNative", "NativeScript", "NS"].indexOf(ft.product) < 0), Po = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
483
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", To = Tt && window.location.href || "http://localhost", xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
484
484
|
__proto__: null,
|
|
485
|
-
hasBrowserEnv:
|
|
485
|
+
hasBrowserEnv: Tt,
|
|
486
486
|
hasStandardBrowserEnv: Ro,
|
|
487
487
|
hasStandardBrowserWebWorkerEnv: Po,
|
|
488
488
|
navigator: ft,
|
|
@@ -1171,13 +1171,13 @@ const jr = (t) => {
|
|
|
1171
1171
|
}, {
|
|
1172
1172
|
highWaterMark: 2
|
|
1173
1173
|
});
|
|
1174
|
-
}, He = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", zr = He && typeof ReadableStream == "function",
|
|
1174
|
+
}, He = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", zr = He && typeof ReadableStream == "function", Zo = He && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), Hr = (t, ...e) => {
|
|
1175
1175
|
try {
|
|
1176
1176
|
return !!t(...e);
|
|
1177
1177
|
} catch {
|
|
1178
1178
|
return !1;
|
|
1179
1179
|
}
|
|
1180
|
-
},
|
|
1180
|
+
}, Yo = zr && Hr(() => {
|
|
1181
1181
|
let t = !1;
|
|
1182
1182
|
const e = new Request(D.origin, {
|
|
1183
1183
|
body: new ReadableStream(),
|
|
@@ -1210,7 +1210,7 @@ const ea = async (t) => {
|
|
|
1210
1210
|
if (f.isArrayBufferView(t) || f.isArrayBuffer(t))
|
|
1211
1211
|
return t.byteLength;
|
|
1212
1212
|
if (f.isURLSearchParams(t) && (t = t + ""), f.isString(t))
|
|
1213
|
-
return (await
|
|
1213
|
+
return (await Zo(t)).byteLength;
|
|
1214
1214
|
}, ta = async (t, e) => {
|
|
1215
1215
|
const n = f.toFiniteNumber(t.getContentLength());
|
|
1216
1216
|
return n ?? ea(e);
|
|
@@ -1236,7 +1236,7 @@ const ea = async (t) => {
|
|
|
1236
1236
|
});
|
|
1237
1237
|
let h;
|
|
1238
1238
|
try {
|
|
1239
|
-
if (u &&
|
|
1239
|
+
if (u && Yo && n !== "get" && n !== "head" && (h = await ta(c, r)) !== 0) {
|
|
1240
1240
|
let A = new Request(e, {
|
|
1241
1241
|
method: "POST",
|
|
1242
1242
|
body: r,
|
|
@@ -1366,14 +1366,14 @@ function Xt(t) {
|
|
|
1366
1366
|
), r.response.headers = _.from(r.response.headers))), Promise.reject(r);
|
|
1367
1367
|
});
|
|
1368
1368
|
}
|
|
1369
|
-
const Gr = "1.7.7",
|
|
1369
|
+
const Gr = "1.7.7", xt = {};
|
|
1370
1370
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
1371
|
-
|
|
1371
|
+
xt[t] = function(r) {
|
|
1372
1372
|
return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
1373
1373
|
};
|
|
1374
1374
|
});
|
|
1375
|
-
const
|
|
1376
|
-
|
|
1375
|
+
const Zt = {};
|
|
1376
|
+
xt.transitional = function(e, n, r) {
|
|
1377
1377
|
function o(a, i) {
|
|
1378
1378
|
return "[Axios v" + Gr + "] Transitional option '" + a + "'" + i + (r ? ". " + r : "");
|
|
1379
1379
|
}
|
|
@@ -1383,7 +1383,7 @@ Ct.transitional = function(e, n, r) {
|
|
|
1383
1383
|
o(i, " has been removed" + (n ? " in " + n : "")),
|
|
1384
1384
|
b.ERR_DEPRECATED
|
|
1385
1385
|
);
|
|
1386
|
-
return n && !
|
|
1386
|
+
return n && !Zt[i] && (Zt[i] = !0), e ? e(a, i, s) : !0;
|
|
1387
1387
|
};
|
|
1388
1388
|
};
|
|
1389
1389
|
function oa(t, e, n) {
|
|
@@ -1405,9 +1405,9 @@ function oa(t, e, n) {
|
|
|
1405
1405
|
}
|
|
1406
1406
|
const yt = {
|
|
1407
1407
|
assertOptions: oa,
|
|
1408
|
-
validators:
|
|
1408
|
+
validators: xt
|
|
1409
1409
|
}, G = yt.validators;
|
|
1410
|
-
class
|
|
1410
|
+
class Z {
|
|
1411
1411
|
constructor(e) {
|
|
1412
1412
|
this.defaults = e, this.interceptors = {
|
|
1413
1413
|
request: new zt(),
|
|
@@ -1505,7 +1505,7 @@ class Y {
|
|
|
1505
1505
|
}
|
|
1506
1506
|
}
|
|
1507
1507
|
f.forEach(["delete", "get", "head", "options"], function(e) {
|
|
1508
|
-
|
|
1508
|
+
Z.prototype[e] = function(n, r) {
|
|
1509
1509
|
return this.request(te(r || {}, {
|
|
1510
1510
|
method: e,
|
|
1511
1511
|
url: n,
|
|
@@ -1526,9 +1526,9 @@ f.forEach(["post", "put", "patch"], function(e) {
|
|
|
1526
1526
|
}));
|
|
1527
1527
|
};
|
|
1528
1528
|
}
|
|
1529
|
-
|
|
1529
|
+
Z.prototype[e] = n(), Z.prototype[e + "Form"] = n(!0);
|
|
1530
1530
|
});
|
|
1531
|
-
class
|
|
1531
|
+
class Ct {
|
|
1532
1532
|
constructor(e) {
|
|
1533
1533
|
if (typeof e != "function")
|
|
1534
1534
|
throw new TypeError("executor must be a function.");
|
|
@@ -1594,7 +1594,7 @@ class Ft {
|
|
|
1594
1594
|
static source() {
|
|
1595
1595
|
let e;
|
|
1596
1596
|
return {
|
|
1597
|
-
token: new
|
|
1597
|
+
token: new Ct(function(o) {
|
|
1598
1598
|
e = o;
|
|
1599
1599
|
}),
|
|
1600
1600
|
cancel: e
|
|
@@ -1678,15 +1678,15 @@ Object.entries(ht).forEach(([t, e]) => {
|
|
|
1678
1678
|
ht[e] = t;
|
|
1679
1679
|
});
|
|
1680
1680
|
function Jr(t) {
|
|
1681
|
-
const e = new
|
|
1682
|
-
return f.extend(n,
|
|
1681
|
+
const e = new Z(t), n = Or(Z.prototype.request, e);
|
|
1682
|
+
return f.extend(n, Z.prototype, e, { allOwnKeys: !0 }), f.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
1683
1683
|
return Jr(te(t, o));
|
|
1684
1684
|
}, n;
|
|
1685
1685
|
}
|
|
1686
1686
|
const R = Jr(Ee);
|
|
1687
|
-
R.Axios =
|
|
1687
|
+
R.Axios = Z;
|
|
1688
1688
|
R.CanceledError = fe;
|
|
1689
|
-
R.CancelToken =
|
|
1689
|
+
R.CancelToken = Ct;
|
|
1690
1690
|
R.isCancel = kr;
|
|
1691
1691
|
R.VERSION = Gr;
|
|
1692
1692
|
R.toFormData = ze;
|
|
@@ -1703,7 +1703,7 @@ R.formToJSON = (t) => Lr(f.isHTMLForm(t) ? new FormData(t) : t);
|
|
|
1703
1703
|
R.getAdapter = Wr.getAdapter;
|
|
1704
1704
|
R.HttpStatusCode = ht;
|
|
1705
1705
|
R.default = R;
|
|
1706
|
-
var
|
|
1706
|
+
var Yt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1707
1707
|
function sa(t) {
|
|
1708
1708
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1709
1709
|
}
|
|
@@ -1794,31 +1794,31 @@ var ca = Error, ua = EvalError, fa = RangeError, pa = ReferenceError, Vr = Synta
|
|
|
1794
1794
|
l.prototype = n.prototype, o.prototype = new l(), l.prototype = null;
|
|
1795
1795
|
}
|
|
1796
1796
|
return o;
|
|
1797
|
-
}, Pa = Ra,
|
|
1797
|
+
}, Pa = Ra, Ft = Function.prototype.bind || Pa, Ta = Function.prototype.call, xa = Object.prototype.hasOwnProperty, Ca = Ft, Fa = Ca.call(Ta, xa), w, Na = ca, Da = ua, _a = fa, Ia = pa, se = Vr, ie = Ae, $a = da, Kr = Function, Ze = function(t) {
|
|
1798
1798
|
try {
|
|
1799
1799
|
return Kr('"use strict"; return (' + t + ").constructor;")();
|
|
1800
1800
|
} catch {
|
|
1801
1801
|
}
|
|
1802
|
-
},
|
|
1803
|
-
if (
|
|
1802
|
+
}, Y = Object.getOwnPropertyDescriptor;
|
|
1803
|
+
if (Y)
|
|
1804
1804
|
try {
|
|
1805
|
-
|
|
1805
|
+
Y({}, "");
|
|
1806
1806
|
} catch {
|
|
1807
|
-
|
|
1807
|
+
Y = null;
|
|
1808
1808
|
}
|
|
1809
|
-
var
|
|
1809
|
+
var Ye = function() {
|
|
1810
1810
|
throw new ie();
|
|
1811
|
-
}, Ba =
|
|
1811
|
+
}, Ba = Y ? function() {
|
|
1812
1812
|
try {
|
|
1813
|
-
return arguments.callee,
|
|
1813
|
+
return arguments.callee, Ye;
|
|
1814
1814
|
} catch {
|
|
1815
1815
|
try {
|
|
1816
|
-
return
|
|
1816
|
+
return Y(arguments, "callee").get;
|
|
1817
1817
|
} catch {
|
|
1818
|
-
return
|
|
1818
|
+
return Ye;
|
|
1819
1819
|
}
|
|
1820
1820
|
}
|
|
1821
|
-
}() :
|
|
1821
|
+
}() : Ye, ne = ma(), Ua = va(), x = Object.getPrototypeOf || (Ua ? function(t) {
|
|
1822
1822
|
return t.__proto__;
|
|
1823
1823
|
} : null), ae = {}, La = typeof Uint8Array > "u" || !x ? w : x(Uint8Array), ee = {
|
|
1824
1824
|
__proto__: null,
|
|
@@ -1900,11 +1900,11 @@ if (x)
|
|
|
1900
1900
|
var Ma = function t(e) {
|
|
1901
1901
|
var n;
|
|
1902
1902
|
if (e === "%AsyncFunction%")
|
|
1903
|
-
n =
|
|
1903
|
+
n = Ze("async function () {}");
|
|
1904
1904
|
else if (e === "%GeneratorFunction%")
|
|
1905
|
-
n =
|
|
1905
|
+
n = Ze("function* () {}");
|
|
1906
1906
|
else if (e === "%AsyncGeneratorFunction%")
|
|
1907
|
-
n =
|
|
1907
|
+
n = Ze("async function* () {}");
|
|
1908
1908
|
else if (e === "%AsyncGenerator%") {
|
|
1909
1909
|
var r = t("%AsyncGeneratorFunction%");
|
|
1910
1910
|
r && (n = r.prototype);
|
|
@@ -1966,7 +1966,7 @@ var Ma = function t(e) {
|
|
|
1966
1966
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
1967
1967
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
1968
1968
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
1969
|
-
}, Oe =
|
|
1969
|
+
}, Oe = Ft, Be = Fa, qa = Oe.call(Function.call, Array.prototype.concat), ja = Oe.call(Function.apply, Array.prototype.splice), nr = Oe.call(Function.call, String.prototype.replace), Ue = Oe.call(Function.call, String.prototype.slice), za = Oe.call(Function.call, RegExp.prototype.exec), Ha = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Wa = /\\(\\)?/g, Ga = function(e) {
|
|
1970
1970
|
var n = Ue(e, 0, 1), r = Ue(e, -1);
|
|
1971
1971
|
if (n === "%" && r !== "%")
|
|
1972
1972
|
throw new se("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -2010,8 +2010,8 @@ var Ma = function t(e) {
|
|
|
2010
2010
|
throw new ie("base intrinsic for " + e + " exists, but the property is not available.");
|
|
2011
2011
|
return;
|
|
2012
2012
|
}
|
|
2013
|
-
if (
|
|
2014
|
-
var m =
|
|
2013
|
+
if (Y && c + 1 >= r.length) {
|
|
2014
|
+
var m = Y(s, d);
|
|
2015
2015
|
p = !!m, p && "get" in m && !("originalValue" in m.get) ? s = m.get : s = s[d];
|
|
2016
2016
|
} else
|
|
2017
2017
|
p = Be(s, d), s = s[d];
|
|
@@ -2020,7 +2020,7 @@ var Ma = function t(e) {
|
|
|
2020
2020
|
}
|
|
2021
2021
|
return s;
|
|
2022
2022
|
}, Qr = { exports: {} }, et, or;
|
|
2023
|
-
function
|
|
2023
|
+
function Nt() {
|
|
2024
2024
|
if (or) return et;
|
|
2025
2025
|
or = 1;
|
|
2026
2026
|
var t = pe, e = t("%Object.defineProperty%", !0) || !1;
|
|
@@ -2039,7 +2039,7 @@ if (De)
|
|
|
2039
2039
|
} catch {
|
|
2040
2040
|
De = null;
|
|
2041
2041
|
}
|
|
2042
|
-
var Xr = De, ar =
|
|
2042
|
+
var Xr = De, ar = Nt(), Ka = Vr, oe = Ae, ir = Xr, Qa = function(e, n, r) {
|
|
2043
2043
|
if (!e || typeof e != "object" && typeof e != "function")
|
|
2044
2044
|
throw new oe("`obj` must be an object or a function`");
|
|
2045
2045
|
if (typeof n != "string" && typeof n != "symbol")
|
|
@@ -2064,10 +2064,10 @@ var Xr = De, ar = Dt(), Ka = Vr, oe = Ae, ir = Xr, Qa = function(e, n, r) {
|
|
|
2064
2064
|
e[n] = r;
|
|
2065
2065
|
else
|
|
2066
2066
|
throw new Ka("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
2067
|
-
}, mt =
|
|
2067
|
+
}, mt = Nt(), Zr = function() {
|
|
2068
2068
|
return !!mt;
|
|
2069
2069
|
};
|
|
2070
|
-
|
|
2070
|
+
Zr.hasArrayLengthDefineBug = function() {
|
|
2071
2071
|
if (!mt)
|
|
2072
2072
|
return null;
|
|
2073
2073
|
try {
|
|
@@ -2076,7 +2076,7 @@ Yr.hasArrayLengthDefineBug = function() {
|
|
|
2076
2076
|
return !0;
|
|
2077
2077
|
}
|
|
2078
2078
|
};
|
|
2079
|
-
var Xa =
|
|
2079
|
+
var Xa = Zr, Za = pe, sr = Qa, Ya = Xa(), lr = Xr, cr = Ae, ei = Za("%Math.floor%"), ti = function(e, n) {
|
|
2080
2080
|
if (typeof e != "function")
|
|
2081
2081
|
throw new cr("`fn` is not a function");
|
|
2082
2082
|
if (typeof n != "number" || n < 0 || n > 4294967295 || ei(n) !== n)
|
|
@@ -2086,7 +2086,7 @@ var Xa = Yr, Ya = pe, sr = Qa, Za = Xa(), lr = Xr, cr = Ae, ei = Ya("%Math.floor
|
|
|
2086
2086
|
var i = lr(e, "length");
|
|
2087
2087
|
i && !i.configurable && (o = !1), i && !i.writable && (a = !1);
|
|
2088
2088
|
}
|
|
2089
|
-
return (o || a || !r) && (
|
|
2089
|
+
return (o || a || !r) && (Ya ? sr(
|
|
2090
2090
|
/** @type {Parameters<define>[0]} */
|
|
2091
2091
|
e,
|
|
2092
2092
|
"length",
|
|
@@ -2101,7 +2101,7 @@ var Xa = Yr, Ya = pe, sr = Qa, Za = Xa(), lr = Xr, cr = Ae, ei = Ya("%Math.floor
|
|
|
2101
2101
|
)), e;
|
|
2102
2102
|
};
|
|
2103
2103
|
(function(t) {
|
|
2104
|
-
var e =
|
|
2104
|
+
var e = Ft, n = pe, r = ti, o = Ae, a = n("%Function.prototype.apply%"), i = n("%Function.prototype.call%"), s = n("%Reflect.apply%", !0) || e.call(i, a), u = Nt(), l = n("%Math.max%");
|
|
2105
2105
|
t.exports = function(d) {
|
|
2106
2106
|
if (typeof d != "function")
|
|
2107
2107
|
throw new o("a function is required");
|
|
@@ -2117,15 +2117,15 @@ var Xa = Yr, Ya = pe, sr = Qa, Za = Xa(), lr = Xr, cr = Ae, ei = Ya("%Math.floor
|
|
|
2117
2117
|
};
|
|
2118
2118
|
u ? u(t.exports, "apply", { value: c }) : t.exports.apply = c;
|
|
2119
2119
|
})(Qr);
|
|
2120
|
-
var ri = Qr.exports,
|
|
2121
|
-
var r =
|
|
2120
|
+
var ri = Qr.exports, Yr = pe, en = ri, ni = en(Yr("String.prototype.indexOf")), oi = function(e, n) {
|
|
2121
|
+
var r = Yr(e, !!n);
|
|
2122
2122
|
return typeof r == "function" && ni(e, ".prototype.") > -1 ? en(r) : r;
|
|
2123
2123
|
};
|
|
2124
2124
|
const ai = {}, ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2125
2125
|
__proto__: null,
|
|
2126
2126
|
default: ai
|
|
2127
2127
|
}, Symbol.toStringTag, { value: "Module" })), si = /* @__PURE__ */ la(ii);
|
|
2128
|
-
var
|
|
2128
|
+
var Dt = typeof Map == "function" && Map.prototype, tt = Object.getOwnPropertyDescriptor && Dt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Le = Dt && tt && typeof tt.get == "function" ? tt.get : null, ur = Dt && Map.prototype.forEach, _t = typeof Set == "function" && Set.prototype, rt = Object.getOwnPropertyDescriptor && _t ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, ke = _t && rt && typeof rt.get == "function" ? rt.get : null, fr = _t && Set.prototype.forEach, li = typeof WeakMap == "function" && WeakMap.prototype, ge = li ? WeakMap.prototype.has : null, ci = typeof WeakSet == "function" && WeakSet.prototype, ve = ci ? WeakSet.prototype.has : null, ui = typeof WeakRef == "function" && WeakRef.prototype, pr = ui ? WeakRef.prototype.deref : null, fi = Boolean.prototype.valueOf, pi = Object.prototype.toString, di = Function.prototype.toString, yi = String.prototype.match, It = String.prototype.slice, V = String.prototype.replace, hi = String.prototype.toUpperCase, dr = String.prototype.toLowerCase, tn = RegExp.prototype.test, yr = Array.prototype.concat, M = Array.prototype.join, mi = Array.prototype.slice, hr = Math.floor, gt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, nt = Object.getOwnPropertySymbols, vt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, le = typeof Symbol == "function" && typeof Symbol.iterator == "object", C = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === le || !0) ? Symbol.toStringTag : null, rn = Object.prototype.propertyIsEnumerable, mr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
2129
2129
|
return t.__proto__;
|
|
2130
2130
|
} : null);
|
|
2131
2131
|
function gr(t, e) {
|
|
@@ -2135,7 +2135,7 @@ function gr(t, e) {
|
|
|
2135
2135
|
if (typeof t == "number") {
|
|
2136
2136
|
var r = t < 0 ? -hr(-t) : hr(t);
|
|
2137
2137
|
if (r !== t) {
|
|
2138
|
-
var o = String(r), a =
|
|
2138
|
+
var o = String(r), a = It.call(e, o.length + 1);
|
|
2139
2139
|
return V.call(o, n, "$&_") + "." + V.call(V.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
2140
2140
|
}
|
|
2141
2141
|
}
|
|
@@ -2247,10 +2247,10 @@ var bt = si, vr = bt.custom, br = on(vr) ? vr : null, gi = function t(e, n, r, o
|
|
|
2247
2247
|
return me(d(String(e)));
|
|
2248
2248
|
if (typeof window < "u" && e === window)
|
|
2249
2249
|
return "{ [object Window] }";
|
|
2250
|
-
if (typeof globalThis < "u" && e === globalThis || typeof
|
|
2250
|
+
if (typeof globalThis < "u" && e === globalThis || typeof Yt < "u" && e === Yt)
|
|
2251
2251
|
return "{ [object globalThis] }";
|
|
2252
2252
|
if (!bi(e) && !wr(e)) {
|
|
2253
|
-
var N = Pe(e, d), q = mr ? mr(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", j = !q && C && Object(e) === e && C in e ?
|
|
2253
|
+
var N = Pe(e, d), q = mr ? mr(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", j = !q && C && Object(e) === e && C in e ? It.call(K(e), 8, -1) : U ? "Object" : "", Re = q || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", re = Re + (j || U ? "[" + M.call(yr.call([], j || [], U || []), ": ") + "] " : "");
|
|
2254
2254
|
return N.length === 0 ? re + "{}" : p ? re + "{" + St(N, p) + "}" : re + "{ " + M.call(N, ", ") + " }";
|
|
2255
2255
|
}
|
|
2256
2256
|
return String(e);
|
|
@@ -2403,7 +2403,7 @@ function Di(t) {
|
|
|
2403
2403
|
function sn(t, e) {
|
|
2404
2404
|
if (t.length > e.maxStringLength) {
|
|
2405
2405
|
var n = t.length - e.maxStringLength, r = "... " + n + " more character" + (n > 1 ? "s" : "");
|
|
2406
|
-
return sn(
|
|
2406
|
+
return sn(It.call(t, 0, e.maxStringLength), e) + r;
|
|
2407
2407
|
}
|
|
2408
2408
|
var o = V.call(V.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, _i);
|
|
2409
2409
|
return nn(o, "single", e);
|
|
@@ -2476,16 +2476,16 @@ function Pe(t, e) {
|
|
|
2476
2476
|
rn.call(t, a[l]) && r.push("[" + e(a[l]) + "]: " + e(t[a[l]], t));
|
|
2477
2477
|
return r;
|
|
2478
2478
|
}
|
|
2479
|
-
var ln = pe, de = oi, Bi = gi, Ui = Ae, Te = ln("%WeakMap%", !0), xe = ln("%Map%", !0), Li = de("WeakMap.prototype.get", !0), ki = de("WeakMap.prototype.set", !0), Mi = de("WeakMap.prototype.has", !0), qi = de("Map.prototype.get", !0), ji = de("Map.prototype.set", !0), zi = de("Map.prototype.has", !0),
|
|
2479
|
+
var ln = pe, de = oi, Bi = gi, Ui = Ae, Te = ln("%WeakMap%", !0), xe = ln("%Map%", !0), Li = de("WeakMap.prototype.get", !0), ki = de("WeakMap.prototype.set", !0), Mi = de("WeakMap.prototype.has", !0), qi = de("Map.prototype.get", !0), ji = de("Map.prototype.set", !0), zi = de("Map.prototype.has", !0), $t = function(t, e) {
|
|
2480
2480
|
for (var n = t, r; (r = n.next) !== null; n = r)
|
|
2481
2481
|
if (r.key === e)
|
|
2482
2482
|
return n.next = r.next, r.next = /** @type {NonNullable<typeof list.next>} */
|
|
2483
2483
|
t.next, t.next = r, r;
|
|
2484
2484
|
}, Hi = function(t, e) {
|
|
2485
|
-
var n =
|
|
2485
|
+
var n = $t(t, e);
|
|
2486
2486
|
return n && n.value;
|
|
2487
2487
|
}, Wi = function(t, e, n) {
|
|
2488
|
-
var r =
|
|
2488
|
+
var r = $t(t, e);
|
|
2489
2489
|
r ? r.value = n : t.next = /** @type {import('.').ListNode<typeof value>} */
|
|
2490
2490
|
{
|
|
2491
2491
|
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
@@ -2494,7 +2494,7 @@ var ln = pe, de = oi, Bi = gi, Ui = Ae, Te = ln("%WeakMap%", !0), xe = ln("%Map%
|
|
|
2494
2494
|
value: n
|
|
2495
2495
|
};
|
|
2496
2496
|
}, Gi = function(t, e) {
|
|
2497
|
-
return
|
|
2497
|
+
return !!$t(t, e);
|
|
2498
2498
|
}, Ji = function() {
|
|
2499
2499
|
var e, n, r, o = {
|
|
2500
2500
|
assert: function(a) {
|
|
@@ -2530,7 +2530,7 @@ var ln = pe, de = oi, Bi = gi, Ui = Ae, Te = ln("%WeakMap%", !0), xe = ln("%Map%
|
|
|
2530
2530
|
}, Vi = String.prototype.replace, Ki = /%20/g, at = {
|
|
2531
2531
|
RFC1738: "RFC1738",
|
|
2532
2532
|
RFC3986: "RFC3986"
|
|
2533
|
-
},
|
|
2533
|
+
}, Bt = {
|
|
2534
2534
|
default: at.RFC3986,
|
|
2535
2535
|
formatters: {
|
|
2536
2536
|
RFC1738: function(t) {
|
|
@@ -2542,7 +2542,7 @@ var ln = pe, de = oi, Bi = gi, Ui = Ae, Te = ln("%WeakMap%", !0), xe = ln("%Map%
|
|
|
2542
2542
|
},
|
|
2543
2543
|
RFC1738: at.RFC1738,
|
|
2544
2544
|
RFC3986: at.RFC3986
|
|
2545
|
-
}, Qi =
|
|
2545
|
+
}, Qi = Bt, it = Object.prototype.hasOwnProperty, Q = Array.isArray, L = function() {
|
|
2546
2546
|
for (var t = [], e = 0; e < 256; ++e)
|
|
2547
2547
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
2548
2548
|
return t;
|
|
@@ -2559,7 +2559,7 @@ var ln = pe, de = oi, Bi = gi, Ui = Ae, Te = ln("%WeakMap%", !0), xe = ln("%Map%
|
|
|
2559
2559
|
for (var r = n && n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = 0; o < e.length; ++o)
|
|
2560
2560
|
typeof e[o] < "u" && (r[o] = e[o]);
|
|
2561
2561
|
return r;
|
|
2562
|
-
},
|
|
2562
|
+
}, Zi = function t(e, n, r) {
|
|
2563
2563
|
if (!n)
|
|
2564
2564
|
return e;
|
|
2565
2565
|
if (typeof n != "object") {
|
|
@@ -2584,7 +2584,7 @@ var ln = pe, de = oi, Bi = gi, Ui = Ae, Te = ln("%WeakMap%", !0), xe = ln("%Map%
|
|
|
2584
2584
|
var s = n[i];
|
|
2585
2585
|
return it.call(a, i) ? a[i] = t(a[i], s, r) : a[i] = s, a;
|
|
2586
2586
|
}, o);
|
|
2587
|
-
},
|
|
2587
|
+
}, Yi = function(e, n) {
|
|
2588
2588
|
return Object.keys(n).reduce(function(r, o) {
|
|
2589
2589
|
return r[o] = n[o], r;
|
|
2590
2590
|
}, e);
|
|
@@ -2651,7 +2651,7 @@ var ln = pe, de = oi, Bi = gi, Ui = Ae, Te = ln("%WeakMap%", !0), xe = ln("%Map%
|
|
|
2651
2651
|
return n(e);
|
|
2652
2652
|
}, un = {
|
|
2653
2653
|
arrayToObject: cn,
|
|
2654
|
-
assign:
|
|
2654
|
+
assign: Yi,
|
|
2655
2655
|
combine: as,
|
|
2656
2656
|
compact: rs,
|
|
2657
2657
|
decode: es,
|
|
@@ -2659,8 +2659,8 @@ var ln = pe, de = oi, Bi = gi, Ui = Ae, Te = ln("%WeakMap%", !0), xe = ln("%Map%
|
|
|
2659
2659
|
isBuffer: os,
|
|
2660
2660
|
isRegExp: ns,
|
|
2661
2661
|
maybeMap: is,
|
|
2662
|
-
merge:
|
|
2663
|
-
}, fn = Ji, _e = un, be =
|
|
2662
|
+
merge: Zi
|
|
2663
|
+
}, fn = Ji, _e = un, be = Bt, ss = Object.prototype.hasOwnProperty, pn = {
|
|
2664
2664
|
brackets: function(e) {
|
|
2665
2665
|
return e + "[]";
|
|
2666
2666
|
},
|
|
@@ -2969,7 +2969,7 @@ var ln = pe, de = oi, Bi = gi, Ui = Ae, Te = ln("%WeakMap%", !0), xe = ln("%Map%
|
|
|
2969
2969
|
o = ce.merge(o, u, n);
|
|
2970
2970
|
}
|
|
2971
2971
|
return n.allowSparse === !0 ? o : ce.compact(o);
|
|
2972
|
-
}, As = ds, Os = Es, Rs =
|
|
2972
|
+
}, As = ds, Os = Es, Rs = Bt, Ps = {
|
|
2973
2973
|
formats: Rs,
|
|
2974
2974
|
parse: Os,
|
|
2975
2975
|
stringify: As
|
|
@@ -3048,33 +3048,33 @@ function At(t, e) {
|
|
|
3048
3048
|
var Cs = At(xs, { path: "/" });
|
|
3049
3049
|
const Fs = {
|
|
3050
3050
|
参数校验错误: { "zh-CN": "参数校验错误", en: "Parameter Validation Error", _appCode: "framework" },
|
|
3051
|
-
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api
|
|
3051
|
+
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api endpoint not found", _appCode: "framework" },
|
|
3052
3052
|
服务器内部错误: { "zh-CN": "服务器内部错误", en: "Internal Server Error", _appCode: "framework" },
|
|
3053
3053
|
解析错误: { "zh-CN": "解析错误", en: "Parsing Error", _appCode: "framework" },
|
|
3054
3054
|
请求配置异常: { "zh-CN": "请求配置异常", en: "Request Configuration Error", _appCode: "framework" },
|
|
3055
3055
|
"网络异常,请检查您的网络情况": {
|
|
3056
3056
|
"zh-CN": "网络异常,请检查您的网络情况",
|
|
3057
|
-
en: "Network
|
|
3057
|
+
en: "Network error, please check your network status",
|
|
3058
3058
|
_appCode: "framework"
|
|
3059
3059
|
}
|
|
3060
3060
|
};
|
|
3061
3061
|
bn(Fs);
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
const
|
|
3062
|
+
Ot.extend(Pn);
|
|
3063
|
+
Ot.extend(Tn);
|
|
3064
|
+
const Ut = Ar(), hn = Ut.sso ?? !0, Ns = Ut.i18n ?? !0, mn = Ut.noRedireLogin ?? !1, gn = () => {
|
|
3065
3065
|
if (mn) return;
|
|
3066
3066
|
const t = "/login";
|
|
3067
3067
|
location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
|
|
3068
|
-
},
|
|
3068
|
+
}, Ds = async (t) => {
|
|
3069
3069
|
var n;
|
|
3070
3070
|
return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
|
|
3071
|
-
},
|
|
3071
|
+
}, _s = async (t, e) => {
|
|
3072
3072
|
var u, l, c, p, d;
|
|
3073
3073
|
let n = ((u = t.response) == null ? void 0 : u.status) || 500, r = (l = t.response) == null ? void 0 : l.message, o = {};
|
|
3074
3074
|
const a = { 400: W("参数校验错误"), 404: W("接口地址未找到"), 500: W("服务器内部错误") };
|
|
3075
3075
|
let i = ((c = t == null ? void 0 : t.response) == null ? void 0 : c.data) || {};
|
|
3076
3076
|
if (!(En("code") || "") && !mn && (n === 401 || (i == null ? void 0 : i.code) === 401))
|
|
3077
|
-
|
|
3077
|
+
hn ? An({ ...On, redirect_uri: Rn }) : gn(), o = i;
|
|
3078
3078
|
else {
|
|
3079
3079
|
if (t.response) {
|
|
3080
3080
|
if (i instanceof Blob && (i = await new Promise((g) => {
|
|
@@ -3087,7 +3087,7 @@ const hn = Ar(), Ot = hn.sso ?? !0, mn = hn.noRedireLogin ?? !1, gn = () => {
|
|
|
3087
3087
|
}
|
|
3088
3088
|
};
|
|
3089
3089
|
})), i.code) {
|
|
3090
|
-
if (n = i.code,
|
|
3090
|
+
if (n = i.code, Ns) {
|
|
3091
3091
|
const g = (i == null ? void 0 : i.status) ?? "";
|
|
3092
3092
|
r = !(i != null && i.data) || !i.data.length ? W(g) : W(g, ...i.data);
|
|
3093
3093
|
} else
|
|
@@ -3099,7 +3099,7 @@ const hn = Ar(), Ot = hn.sso ?? !0, mn = hn.noRedireLogin ?? !1, gn = () => {
|
|
|
3099
3099
|
e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((d = (p = window.DasMessage) == null ? void 0 : p.error) == null || d.call(p, { message: r, showClose: !0 }));
|
|
3100
3100
|
}
|
|
3101
3101
|
return { ...o, code: n, msg: r, error: t };
|
|
3102
|
-
},
|
|
3102
|
+
}, Is = (t, e) => {
|
|
3103
3103
|
const n = R.create();
|
|
3104
3104
|
return wn(n, async (r) => {
|
|
3105
3105
|
const o = Ar();
|
|
@@ -3109,9 +3109,9 @@ const hn = Ar(), Ot = hn.sso ?? !0, mn = hn.noRedireLogin ?? !1, gn = () => {
|
|
|
3109
3109
|
const c = new URL(location.href).searchParams;
|
|
3110
3110
|
l = c.get("token") || c.get("accessToken") || c.get("accesstoken") || "";
|
|
3111
3111
|
}
|
|
3112
|
-
|
|
3112
|
+
hn ? l || (l = await Sn(r)) : (l || (l = Fn()), l || gn()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
|
|
3113
3113
|
}
|
|
3114
|
-
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Ts.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess =
|
|
3114
|
+
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Ts.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Ds), r.onError || (r.onError = _s), (r.csrf ?? !1) && (r.headers["csrf-token"] = Cs.get("csrf-token"));
|
|
3115
3115
|
const s = r.params || {};
|
|
3116
3116
|
if (s.project === void 0) {
|
|
3117
3117
|
let l = 0;
|
|
@@ -3122,9 +3122,9 @@ const hn = Ar(), Ot = hn.sso ?? !0, mn = hn.noRedireLogin ?? !1, gn = () => {
|
|
|
3122
3122
|
const { instanceInfo: l } = Cn();
|
|
3123
3123
|
l != null && l.instanceId && (s.instance = l.instanceId);
|
|
3124
3124
|
}
|
|
3125
|
-
return r.params = s, r.headers.Timezone =
|
|
3125
|
+
return r.params = s, r.headers.Timezone = Ot.tz.guess(), r;
|
|
3126
3126
|
});
|
|
3127
|
-
},
|
|
3127
|
+
}, $s = "v1", Ws = Is(`/api/supply/brand/${$s}`);
|
|
3128
3128
|
export {
|
|
3129
|
-
|
|
3129
|
+
Ws as enterpriseadminBrandModel
|
|
3130
3130
|
};
|
|
Binary file
|