best-unit 1.4.8 → 1.4.9
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/dist/best-unit.cjs +13 -13
- package/dist/best-unit.js +901 -861
- package/package.json +1 -1
- package/src/api/index.ts +18 -1
- package/src/components/business/recharge-sdk/components/offline-transfer-form/index.tsx +31 -6
- package/src/components/business/recharge-sdk/components/offline-transfer-form/theme.tsx +26 -0
package/dist/best-unit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
function
|
|
1
|
+
function pi() {
|
|
2
2
|
console.log("npm package test!!!");
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function hi() {
|
|
5
5
|
console.log("Current time:", (/* @__PURE__ */ new Date()).toISOString());
|
|
6
6
|
}
|
|
7
7
|
function Nt(e, t) {
|
|
@@ -12,30 +12,30 @@ function Nt(e, t) {
|
|
|
12
12
|
const { toString: Cn } = Object.prototype, { getPrototypeOf: Ye } = Object, { iterator: ve, toStringTag: zt } = Symbol, ke = /* @__PURE__ */ ((e) => (t) => {
|
|
13
13
|
const n = Cn.call(t);
|
|
14
14
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
15
|
-
})(/* @__PURE__ */ Object.create(null)), z = (e) => (e = e.toLowerCase(), (t) => ke(t) === e), Te = (e) => (t) => typeof t === e, { isArray:
|
|
15
|
+
})(/* @__PURE__ */ Object.create(null)), z = (e) => (e = e.toLowerCase(), (t) => ke(t) === e), Te = (e) => (t) => typeof t === e, { isArray: ee } = Array, ie = Te("undefined");
|
|
16
16
|
function Mn(e) {
|
|
17
|
-
return e !== null && !ie(e) && e.constructor !== null && !ie(e.constructor) &&
|
|
17
|
+
return e !== null && !ie(e) && e.constructor !== null && !ie(e.constructor) && I(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
18
18
|
}
|
|
19
19
|
const Ut = z("ArrayBuffer");
|
|
20
20
|
function Rn(e) {
|
|
21
21
|
let t;
|
|
22
22
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ut(e.buffer), t;
|
|
23
23
|
}
|
|
24
|
-
const Bn = Te("string"),
|
|
24
|
+
const Bn = Te("string"), I = Te("function"), Ht = Te("number"), Ce = (e) => e !== null && typeof e == "object", Fn = (e) => e === !0 || e === !1, me = (e) => {
|
|
25
25
|
if (ke(e) !== "object")
|
|
26
26
|
return !1;
|
|
27
27
|
const t = Ye(e);
|
|
28
28
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(zt in e) && !(ve in e);
|
|
29
|
-
}, On = z("Date"),
|
|
29
|
+
}, On = z("Date"), In = z("File"), Pn = z("Blob"), Dn = z("FileList"), Nn = (e) => Ce(e) && I(e.pipe), zn = (e) => {
|
|
30
30
|
let t;
|
|
31
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
32
|
-
t === "object" &&
|
|
31
|
+
return e && (typeof FormData == "function" && e instanceof FormData || I(e.append) && ((t = ke(e)) === "formdata" || // detect form-data instance
|
|
32
|
+
t === "object" && I(e.toString) && e.toString() === "[object FormData]"));
|
|
33
33
|
}, Un = z("URLSearchParams"), [Hn, jn, $n, Wn] = ["ReadableStream", "Request", "Response", "Headers"].map(z), qn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
34
34
|
function ce(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
35
35
|
if (e === null || typeof e > "u")
|
|
36
36
|
return;
|
|
37
37
|
let r, o;
|
|
38
|
-
if (typeof e != "object" && (e = [e]),
|
|
38
|
+
if (typeof e != "object" && (e = [e]), ee(e))
|
|
39
39
|
for (r = 0, o = e.length; r < o; r++)
|
|
40
40
|
t.call(null, e[r], r, e);
|
|
41
41
|
else {
|
|
@@ -58,14 +58,14 @@ const J = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : type
|
|
|
58
58
|
function He() {
|
|
59
59
|
const { caseless: e } = $t(this) && this || {}, t = {}, n = (r, o) => {
|
|
60
60
|
const s = e && jt(t, o) || o;
|
|
61
|
-
me(t[s]) && me(r) ? t[s] = He(t[s], r) : me(r) ? t[s] = He({}, r) :
|
|
61
|
+
me(t[s]) && me(r) ? t[s] = He(t[s], r) : me(r) ? t[s] = He({}, r) : ee(r) ? t[s] = r.slice() : t[s] = r;
|
|
62
62
|
};
|
|
63
63
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
64
64
|
arguments[r] && ce(arguments[r], n);
|
|
65
65
|
return t;
|
|
66
66
|
}
|
|
67
67
|
const Jn = (e, t, n, { allOwnKeys: r } = {}) => (ce(t, (o, s) => {
|
|
68
|
-
n &&
|
|
68
|
+
n && I(o) ? e[s] = Nt(o, n) : e[s] = o;
|
|
69
69
|
}, { allOwnKeys: r }), e), Vn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Gn = (e, t, n, r) => {
|
|
70
70
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
71
71
|
value: t.prototype
|
|
@@ -86,7 +86,7 @@ const Jn = (e, t, n, { allOwnKeys: r } = {}) => (ce(t, (o, s) => {
|
|
|
86
86
|
return r !== -1 && r === n;
|
|
87
87
|
}, Zn = (e) => {
|
|
88
88
|
if (!e) return null;
|
|
89
|
-
if (
|
|
89
|
+
if (ee(e)) return e;
|
|
90
90
|
let t = e.length;
|
|
91
91
|
if (!Ht(t)) return null;
|
|
92
92
|
const n = new Array(t);
|
|
@@ -119,10 +119,10 @@ const Jn = (e, t, n, { allOwnKeys: r } = {}) => (ce(t, (o, s) => {
|
|
|
119
119
|
}), Object.defineProperties(e, r);
|
|
120
120
|
}, or = (e) => {
|
|
121
121
|
Wt(e, (t, n) => {
|
|
122
|
-
if (
|
|
122
|
+
if (I(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
123
123
|
return !1;
|
|
124
124
|
const r = e[n];
|
|
125
|
-
if (
|
|
125
|
+
if (I(r)) {
|
|
126
126
|
if (t.enumerable = !1, "writable" in t) {
|
|
127
127
|
t.writable = !1;
|
|
128
128
|
return;
|
|
@@ -138,11 +138,11 @@ const Jn = (e, t, n, { allOwnKeys: r } = {}) => (ce(t, (o, s) => {
|
|
|
138
138
|
n[s] = !0;
|
|
139
139
|
});
|
|
140
140
|
};
|
|
141
|
-
return
|
|
141
|
+
return ee(e) ? r(e) : r(String(e).split(t)), n;
|
|
142
142
|
}, sr = () => {
|
|
143
143
|
}, ar = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
144
144
|
function lr(e) {
|
|
145
|
-
return !!(e &&
|
|
145
|
+
return !!(e && I(e.append) && e[zt] === "FormData" && e[ve]);
|
|
146
146
|
}
|
|
147
147
|
const cr = (e) => {
|
|
148
148
|
const t = new Array(10), n = (r, o) => {
|
|
@@ -151,25 +151,25 @@ const cr = (e) => {
|
|
|
151
151
|
return;
|
|
152
152
|
if (!("toJSON" in r)) {
|
|
153
153
|
t[o] = r;
|
|
154
|
-
const s =
|
|
154
|
+
const s = ee(r) ? [] : {};
|
|
155
155
|
return ce(r, (i, a) => {
|
|
156
|
-
const
|
|
157
|
-
!ie(
|
|
156
|
+
const d = n(i, o + 1);
|
|
157
|
+
!ie(d) && (s[a] = d);
|
|
158
158
|
}), t[o] = void 0, s;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
return r;
|
|
162
162
|
};
|
|
163
163
|
return n(e, 0);
|
|
164
|
-
}, ur = z("AsyncFunction"), dr = (e) => e && (Ce(e) ||
|
|
164
|
+
}, ur = z("AsyncFunction"), dr = (e) => e && (Ce(e) || I(e)) && I(e.then) && I(e.catch), qt = ((e, t) => e ? setImmediate : t ? ((n, r) => (J.addEventListener("message", ({ source: o, data: s }) => {
|
|
165
165
|
o === J && s === n && r.length && r.shift()();
|
|
166
166
|
}, !1), (o) => {
|
|
167
167
|
r.push(o), J.postMessage(n, "*");
|
|
168
168
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
169
169
|
typeof setImmediate == "function",
|
|
170
|
-
|
|
171
|
-
), fr = typeof queueMicrotask < "u" ? queueMicrotask.bind(J) : typeof process < "u" && process.nextTick || qt, pr = (e) => e != null &&
|
|
172
|
-
isArray:
|
|
170
|
+
I(J.postMessage)
|
|
171
|
+
), fr = typeof queueMicrotask < "u" ? queueMicrotask.bind(J) : typeof process < "u" && process.nextTick || qt, pr = (e) => e != null && I(e[ve]), p = {
|
|
172
|
+
isArray: ee,
|
|
173
173
|
isArrayBuffer: Ut,
|
|
174
174
|
isBuffer: Mn,
|
|
175
175
|
isFormData: zn,
|
|
@@ -185,14 +185,14 @@ const cr = (e) => {
|
|
|
185
185
|
isHeaders: Wn,
|
|
186
186
|
isUndefined: ie,
|
|
187
187
|
isDate: On,
|
|
188
|
-
isFile:
|
|
189
|
-
isBlob:
|
|
188
|
+
isFile: In,
|
|
189
|
+
isBlob: Pn,
|
|
190
190
|
isRegExp: rr,
|
|
191
|
-
isFunction:
|
|
191
|
+
isFunction: I,
|
|
192
192
|
isStream: Nn,
|
|
193
193
|
isURLSearchParams: Un,
|
|
194
194
|
isTypedArray: Yn,
|
|
195
|
-
isFileList:
|
|
195
|
+
isFileList: Dn,
|
|
196
196
|
forEach: ce,
|
|
197
197
|
merge: He,
|
|
198
198
|
extend: Jn,
|
|
@@ -273,8 +273,8 @@ Object.defineProperties(A, Vt);
|
|
|
273
273
|
Object.defineProperty(Jt, "isAxiosError", { value: !0 });
|
|
274
274
|
A.from = (e, t, n, r, o, s) => {
|
|
275
275
|
const i = Object.create(Jt);
|
|
276
|
-
return p.toFlatObject(e, i, function(
|
|
277
|
-
return
|
|
276
|
+
return p.toFlatObject(e, i, function(d) {
|
|
277
|
+
return d !== Error.prototype;
|
|
278
278
|
}, (a) => a !== "isAxiosError"), A.call(i, e.message, t, n, r, o), i.cause = e, i.name = e.name, s && Object.assign(i, s), i;
|
|
279
279
|
};
|
|
280
280
|
const hr = null;
|
|
@@ -302,61 +302,61 @@ function Me(e, t, n) {
|
|
|
302
302
|
metaTokens: !0,
|
|
303
303
|
dots: !1,
|
|
304
304
|
indexes: !1
|
|
305
|
-
}, !1, function(
|
|
306
|
-
return !p.isUndefined(
|
|
305
|
+
}, !1, function(y, b) {
|
|
306
|
+
return !p.isUndefined(b[y]);
|
|
307
307
|
});
|
|
308
|
-
const r = n.metaTokens, o = n.visitor || f, s = n.dots, i = n.indexes,
|
|
308
|
+
const r = n.metaTokens, o = n.visitor || f, s = n.dots, i = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && p.isSpecCompliantForm(t);
|
|
309
309
|
if (!p.isFunction(o))
|
|
310
310
|
throw new TypeError("visitor must be a function");
|
|
311
|
-
function l(
|
|
312
|
-
if (
|
|
313
|
-
if (p.isDate(
|
|
314
|
-
return
|
|
315
|
-
if (p.isBoolean(
|
|
316
|
-
return
|
|
317
|
-
if (!
|
|
311
|
+
function l(_) {
|
|
312
|
+
if (_ === null) return "";
|
|
313
|
+
if (p.isDate(_))
|
|
314
|
+
return _.toISOString();
|
|
315
|
+
if (p.isBoolean(_))
|
|
316
|
+
return _.toString();
|
|
317
|
+
if (!d && p.isBlob(_))
|
|
318
318
|
throw new A("Blob is not supported. Use a Buffer instead.");
|
|
319
|
-
return p.isArrayBuffer(
|
|
319
|
+
return p.isArrayBuffer(_) || p.isTypedArray(_) ? d && typeof Blob == "function" ? new Blob([_]) : Buffer.from(_) : _;
|
|
320
320
|
}
|
|
321
|
-
function f(
|
|
322
|
-
let
|
|
323
|
-
if (
|
|
324
|
-
if (p.endsWith(
|
|
325
|
-
|
|
326
|
-
else if (p.isArray(
|
|
327
|
-
return
|
|
321
|
+
function f(_, y, b) {
|
|
322
|
+
let x = _;
|
|
323
|
+
if (_ && !b && typeof _ == "object") {
|
|
324
|
+
if (p.endsWith(y, "{}"))
|
|
325
|
+
y = r ? y : y.slice(0, -2), _ = JSON.stringify(_);
|
|
326
|
+
else if (p.isArray(_) && mr(_) || (p.isFileList(_) || p.endsWith(y, "[]")) && (x = p.toArray(_)))
|
|
327
|
+
return y = Gt(y), x.forEach(function(v, w) {
|
|
328
328
|
!(p.isUndefined(v) || v === null) && t.append(
|
|
329
329
|
// eslint-disable-next-line no-nested-ternary
|
|
330
|
-
i === !0 ? ct([
|
|
330
|
+
i === !0 ? ct([y], w, s) : i === null ? y : y + "[]",
|
|
331
331
|
l(v)
|
|
332
332
|
);
|
|
333
333
|
}), !1;
|
|
334
334
|
}
|
|
335
|
-
return je(
|
|
335
|
+
return je(_) ? !0 : (t.append(ct(b, y, s), l(_)), !1);
|
|
336
336
|
}
|
|
337
|
-
const c = [],
|
|
337
|
+
const c = [], g = Object.assign(_r, {
|
|
338
338
|
defaultVisitor: f,
|
|
339
339
|
convertValue: l,
|
|
340
340
|
isVisitable: je
|
|
341
341
|
});
|
|
342
|
-
function _
|
|
343
|
-
if (!p.isUndefined(
|
|
344
|
-
if (c.indexOf(
|
|
345
|
-
throw Error("Circular reference detected in " +
|
|
346
|
-
c.push(
|
|
347
|
-
(!(p.isUndefined(
|
|
342
|
+
function h(_, y) {
|
|
343
|
+
if (!p.isUndefined(_)) {
|
|
344
|
+
if (c.indexOf(_) !== -1)
|
|
345
|
+
throw Error("Circular reference detected in " + y.join("."));
|
|
346
|
+
c.push(_), p.forEach(_, function(x, S) {
|
|
347
|
+
(!(p.isUndefined(x) || x === null) && o.call(
|
|
348
348
|
t,
|
|
349
|
-
|
|
349
|
+
x,
|
|
350
350
|
p.isString(S) ? S.trim() : S,
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
)) === !0 &&
|
|
351
|
+
y,
|
|
352
|
+
g
|
|
353
|
+
)) === !0 && h(x, y ? y.concat(S) : [S]);
|
|
354
354
|
}), c.pop();
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
if (!p.isObject(e))
|
|
358
358
|
throw new TypeError("data must be an object");
|
|
359
|
-
return
|
|
359
|
+
return h(e), t;
|
|
360
360
|
}
|
|
361
361
|
function ut(e) {
|
|
362
362
|
const t = {
|
|
@@ -479,14 +479,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ar
|
|
|
479
479
|
hasStandardBrowserWebWorkerEnv: wr,
|
|
480
480
|
navigator: $e,
|
|
481
481
|
origin: Ar
|
|
482
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
482
|
+
}, Symbol.toStringTag, { value: "Module" })), O = {
|
|
483
483
|
...Er,
|
|
484
484
|
...Sr
|
|
485
485
|
};
|
|
486
486
|
function vr(e, t) {
|
|
487
|
-
return Me(e, new
|
|
487
|
+
return Me(e, new O.classes.URLSearchParams(), Object.assign({
|
|
488
488
|
visitor: function(n, r, o, s) {
|
|
489
|
-
return
|
|
489
|
+
return O.isNode && p.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
490
490
|
}
|
|
491
491
|
}, t));
|
|
492
492
|
}
|
|
@@ -506,8 +506,8 @@ function Yt(e) {
|
|
|
506
506
|
function t(n, r, o, s) {
|
|
507
507
|
let i = n[s++];
|
|
508
508
|
if (i === "__proto__") return !0;
|
|
509
|
-
const a = Number.isFinite(+i),
|
|
510
|
-
return i = !i && p.isArray(o) ? o.length : i,
|
|
509
|
+
const a = Number.isFinite(+i), d = s >= n.length;
|
|
510
|
+
return i = !i && p.isArray(o) ? o.length : i, d ? (p.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !a) : ((!o[i] || !p.isObject(o[i])) && (o[i] = []), t(n, r, o[i], s) && p.isArray(o[i]) && (o[i] = Tr(o[i])), !a);
|
|
511
511
|
}
|
|
512
512
|
if (p.isFormData(e) && p.isFunction(e.entries)) {
|
|
513
513
|
const n = {};
|
|
@@ -545,10 +545,10 @@ const ue = {
|
|
|
545
545
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
546
546
|
return vr(t, this.formSerializer).toString();
|
|
547
547
|
if ((a = p.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
548
|
-
const
|
|
548
|
+
const d = this.env && this.env.FormData;
|
|
549
549
|
return Me(
|
|
550
550
|
a ? { "files[]": t } : t,
|
|
551
|
-
|
|
551
|
+
d && new d(),
|
|
552
552
|
this.formSerializer
|
|
553
553
|
);
|
|
554
554
|
}
|
|
@@ -580,8 +580,8 @@ const ue = {
|
|
|
580
580
|
maxContentLength: -1,
|
|
581
581
|
maxBodyLength: -1,
|
|
582
582
|
env: {
|
|
583
|
-
FormData:
|
|
584
|
-
Blob:
|
|
583
|
+
FormData: O.classes.FormData,
|
|
584
|
+
Blob: O.classes.Blob
|
|
585
585
|
},
|
|
586
586
|
validateStatus: function(t) {
|
|
587
587
|
return t >= 200 && t < 300;
|
|
@@ -636,7 +636,7 @@ function Br(e) {
|
|
|
636
636
|
return t;
|
|
637
637
|
}
|
|
638
638
|
const Fr = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
639
|
-
function
|
|
639
|
+
function De(e, t, n, r, o) {
|
|
640
640
|
if (p.isFunction(r))
|
|
641
641
|
return r.call(this, t, n);
|
|
642
642
|
if (o && (t = n), !!p.isString(t)) {
|
|
@@ -649,7 +649,7 @@ function Ie(e, t, n, r, o) {
|
|
|
649
649
|
function Or(e) {
|
|
650
650
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function Ir(e, t) {
|
|
653
653
|
const n = p.toCamelCase(" " + t);
|
|
654
654
|
["get", "set", "has"].forEach((r) => {
|
|
655
655
|
Object.defineProperty(e, r + n, {
|
|
@@ -660,30 +660,30 @@ function Pr(e, t) {
|
|
|
660
660
|
});
|
|
661
661
|
});
|
|
662
662
|
}
|
|
663
|
-
let
|
|
663
|
+
let P = class {
|
|
664
664
|
constructor(t) {
|
|
665
665
|
t && this.set(t);
|
|
666
666
|
}
|
|
667
667
|
set(t, n, r) {
|
|
668
668
|
const o = this;
|
|
669
|
-
function s(a,
|
|
670
|
-
const f = re(
|
|
669
|
+
function s(a, d, l) {
|
|
670
|
+
const f = re(d);
|
|
671
671
|
if (!f)
|
|
672
672
|
throw new Error("header name must be a non-empty string");
|
|
673
673
|
const c = p.findKey(o, f);
|
|
674
|
-
(!c || o[c] === void 0 || l === !0 || l === void 0 && o[c] !== !1) && (o[c ||
|
|
674
|
+
(!c || o[c] === void 0 || l === !0 || l === void 0 && o[c] !== !1) && (o[c || d] = _e(a));
|
|
675
675
|
}
|
|
676
|
-
const i = (a,
|
|
676
|
+
const i = (a, d) => p.forEach(a, (l, f) => s(l, f, d));
|
|
677
677
|
if (p.isPlainObject(t) || t instanceof this.constructor)
|
|
678
678
|
i(t, n);
|
|
679
679
|
else if (p.isString(t) && (t = t.trim()) && !Fr(t))
|
|
680
680
|
i(Rr(t), n);
|
|
681
681
|
else if (p.isObject(t) && p.isIterable(t)) {
|
|
682
|
-
let a = {},
|
|
682
|
+
let a = {}, d, l;
|
|
683
683
|
for (const f of t) {
|
|
684
684
|
if (!p.isArray(f))
|
|
685
685
|
throw TypeError("Object iterator must return a key-value pair");
|
|
686
|
-
a[l = f[0]] = (
|
|
686
|
+
a[l = f[0]] = (d = a[l]) ? p.isArray(d) ? [...d, f[1]] : [d, f[1]] : f[1];
|
|
687
687
|
}
|
|
688
688
|
i(a, n);
|
|
689
689
|
} else
|
|
@@ -710,7 +710,7 @@ let D = class {
|
|
|
710
710
|
has(t, n) {
|
|
711
711
|
if (t = re(t), t) {
|
|
712
712
|
const r = p.findKey(this, t);
|
|
713
|
-
return !!(r && this[r] !== void 0 && (!n ||
|
|
713
|
+
return !!(r && this[r] !== void 0 && (!n || De(this, this[r], r, n)));
|
|
714
714
|
}
|
|
715
715
|
return !1;
|
|
716
716
|
}
|
|
@@ -720,7 +720,7 @@ let D = class {
|
|
|
720
720
|
function s(i) {
|
|
721
721
|
if (i = re(i), i) {
|
|
722
722
|
const a = p.findKey(r, i);
|
|
723
|
-
a && (!n ||
|
|
723
|
+
a && (!n || De(r, r[a], a, n)) && (delete r[a], o = !0);
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
726
|
return p.isArray(t) ? t.forEach(s) : s(t), o;
|
|
@@ -730,7 +730,7 @@ let D = class {
|
|
|
730
730
|
let r = n.length, o = !1;
|
|
731
731
|
for (; r--; ) {
|
|
732
732
|
const s = n[r];
|
|
733
|
-
(!t ||
|
|
733
|
+
(!t || De(this, this[s], s, t, !0)) && (delete this[s], o = !0);
|
|
734
734
|
}
|
|
735
735
|
return o;
|
|
736
736
|
}
|
|
@@ -781,13 +781,13 @@ let D = class {
|
|
|
781
781
|
}).accessors, o = this.prototype;
|
|
782
782
|
function s(i) {
|
|
783
783
|
const a = re(i);
|
|
784
|
-
r[a] || (
|
|
784
|
+
r[a] || (Ir(o, i), r[a] = !0);
|
|
785
785
|
}
|
|
786
786
|
return p.isArray(t) ? t.forEach(s) : s(t), this;
|
|
787
787
|
}
|
|
788
788
|
};
|
|
789
|
-
|
|
790
|
-
p.reduceDescriptors(
|
|
789
|
+
P.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
790
|
+
p.reduceDescriptors(P.prototype, ({ value: e }, t) => {
|
|
791
791
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
792
792
|
return {
|
|
793
793
|
get: () => e,
|
|
@@ -796,9 +796,9 @@ p.reduceDescriptors(D.prototype, ({ value: e }, t) => {
|
|
|
796
796
|
}
|
|
797
797
|
};
|
|
798
798
|
});
|
|
799
|
-
p.freezeMethods(
|
|
799
|
+
p.freezeMethods(P);
|
|
800
800
|
function Ne(e, t) {
|
|
801
|
-
const n = this || ue, r = t || n, o =
|
|
801
|
+
const n = this || ue, r = t || n, o = P.from(r.headers);
|
|
802
802
|
let s = r.data;
|
|
803
803
|
return p.forEach(e, function(a) {
|
|
804
804
|
s = a.call(n, s, o.normalize(), t ? t.status : void 0);
|
|
@@ -807,10 +807,10 @@ function Ne(e, t) {
|
|
|
807
807
|
function Qt(e) {
|
|
808
808
|
return !!(e && e.__CANCEL__);
|
|
809
809
|
}
|
|
810
|
-
function
|
|
810
|
+
function te(e, t, n) {
|
|
811
811
|
A.call(this, e ?? "canceled", A.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
812
812
|
}
|
|
813
|
-
p.inherits(
|
|
813
|
+
p.inherits(te, A, {
|
|
814
814
|
__CANCEL__: !0
|
|
815
815
|
});
|
|
816
816
|
function en(e, t, n) {
|
|
@@ -823,24 +823,24 @@ function en(e, t, n) {
|
|
|
823
823
|
n
|
|
824
824
|
));
|
|
825
825
|
}
|
|
826
|
-
function
|
|
826
|
+
function Pr(e) {
|
|
827
827
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
828
828
|
return t && t[1] || "";
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function Dr(e, t) {
|
|
831
831
|
e = e || 10;
|
|
832
832
|
const n = new Array(e), r = new Array(e);
|
|
833
833
|
let o = 0, s = 0, i;
|
|
834
|
-
return t = t !== void 0 ? t : 1e3, function(
|
|
834
|
+
return t = t !== void 0 ? t : 1e3, function(d) {
|
|
835
835
|
const l = Date.now(), f = r[s];
|
|
836
|
-
i || (i = l), n[o] =
|
|
837
|
-
let c = s,
|
|
836
|
+
i || (i = l), n[o] = d, r[o] = l;
|
|
837
|
+
let c = s, g = 0;
|
|
838
838
|
for (; c !== o; )
|
|
839
|
-
|
|
839
|
+
g += n[c++], c = c % e;
|
|
840
840
|
if (o = (o + 1) % e, o === s && (s = (s + 1) % e), l - i < t)
|
|
841
841
|
return;
|
|
842
|
-
const
|
|
843
|
-
return
|
|
842
|
+
const h = f && l - f;
|
|
843
|
+
return h ? Math.round(g * 1e3 / h) : void 0;
|
|
844
844
|
};
|
|
845
845
|
}
|
|
846
846
|
function Nr(e, t) {
|
|
@@ -857,15 +857,15 @@ function Nr(e, t) {
|
|
|
857
857
|
}
|
|
858
858
|
const Se = (e, t, n = 3) => {
|
|
859
859
|
let r = 0;
|
|
860
|
-
const o =
|
|
860
|
+
const o = Dr(50, 250);
|
|
861
861
|
return Nr((s) => {
|
|
862
|
-
const i = s.loaded, a = s.lengthComputable ? s.total : void 0,
|
|
862
|
+
const i = s.loaded, a = s.lengthComputable ? s.total : void 0, d = i - r, l = o(d), f = i <= a;
|
|
863
863
|
r = i;
|
|
864
864
|
const c = {
|
|
865
865
|
loaded: i,
|
|
866
866
|
total: a,
|
|
867
867
|
progress: a ? i / a : void 0,
|
|
868
|
-
bytes:
|
|
868
|
+
bytes: d,
|
|
869
869
|
rate: l || void 0,
|
|
870
870
|
estimated: l && a && f ? (a - i) / l : void 0,
|
|
871
871
|
event: s,
|
|
@@ -881,10 +881,10 @@ const Se = (e, t, n = 3) => {
|
|
|
881
881
|
total: e,
|
|
882
882
|
loaded: r
|
|
883
883
|
}), t[1]];
|
|
884
|
-
}, ht = (e) => (...t) => p.asap(() => e(...t)), zr =
|
|
885
|
-
new URL(
|
|
886
|
-
|
|
887
|
-
) : () => !0, Ur =
|
|
884
|
+
}, ht = (e) => (...t) => p.asap(() => e(...t)), zr = O.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, O.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
885
|
+
new URL(O.origin),
|
|
886
|
+
O.navigator && /(msie|trident)/i.test(O.navigator.userAgent)
|
|
887
|
+
) : () => !0, Ur = O.hasStandardBrowserEnv ? (
|
|
888
888
|
// Standard browser envs support document.cookie
|
|
889
889
|
{
|
|
890
890
|
write(e, t, n, r, o, s) {
|
|
@@ -921,18 +921,18 @@ function tn(e, t, n) {
|
|
|
921
921
|
let r = !Hr(t);
|
|
922
922
|
return e && (r || n == !1) ? jr(e, t) : t;
|
|
923
923
|
}
|
|
924
|
-
const mt = (e) => e instanceof
|
|
924
|
+
const mt = (e) => e instanceof P ? { ...e } : e;
|
|
925
925
|
function G(e, t) {
|
|
926
926
|
t = t || {};
|
|
927
927
|
const n = {};
|
|
928
|
-
function r(l, f, c,
|
|
929
|
-
return p.isPlainObject(l) && p.isPlainObject(f) ? p.merge.call({ caseless:
|
|
928
|
+
function r(l, f, c, g) {
|
|
929
|
+
return p.isPlainObject(l) && p.isPlainObject(f) ? p.merge.call({ caseless: g }, l, f) : p.isPlainObject(f) ? p.merge({}, f) : p.isArray(f) ? f.slice() : f;
|
|
930
930
|
}
|
|
931
|
-
function o(l, f, c,
|
|
931
|
+
function o(l, f, c, g) {
|
|
932
932
|
if (p.isUndefined(f)) {
|
|
933
933
|
if (!p.isUndefined(l))
|
|
934
|
-
return r(void 0, l, c,
|
|
935
|
-
} else return r(l, f, c,
|
|
934
|
+
return r(void 0, l, c, g);
|
|
935
|
+
} else return r(l, f, c, g);
|
|
936
936
|
}
|
|
937
937
|
function s(l, f) {
|
|
938
938
|
if (!p.isUndefined(f))
|
|
@@ -950,7 +950,7 @@ function G(e, t) {
|
|
|
950
950
|
if (c in e)
|
|
951
951
|
return r(void 0, l);
|
|
952
952
|
}
|
|
953
|
-
const
|
|
953
|
+
const d = {
|
|
954
954
|
url: s,
|
|
955
955
|
method: s,
|
|
956
956
|
data: s,
|
|
@@ -982,27 +982,27 @@ function G(e, t) {
|
|
|
982
982
|
headers: (l, f, c) => o(mt(l), mt(f), c, !0)
|
|
983
983
|
};
|
|
984
984
|
return p.forEach(Object.keys(Object.assign({}, e, t)), function(f) {
|
|
985
|
-
const c =
|
|
986
|
-
p.isUndefined(
|
|
985
|
+
const c = d[f] || o, g = c(e[f], t[f], f);
|
|
986
|
+
p.isUndefined(g) && c !== a || (n[f] = g);
|
|
987
987
|
}), n;
|
|
988
988
|
}
|
|
989
989
|
const nn = (e) => {
|
|
990
990
|
const t = G({}, e);
|
|
991
991
|
let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: s, headers: i, auth: a } = t;
|
|
992
|
-
t.headers = i =
|
|
992
|
+
t.headers = i = P.from(i), t.url = Xt(tn(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && i.set(
|
|
993
993
|
"Authorization",
|
|
994
994
|
"Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
|
|
995
995
|
);
|
|
996
|
-
let
|
|
996
|
+
let d;
|
|
997
997
|
if (p.isFormData(n)) {
|
|
998
|
-
if (
|
|
998
|
+
if (O.hasStandardBrowserEnv || O.hasStandardBrowserWebWorkerEnv)
|
|
999
999
|
i.setContentType(void 0);
|
|
1000
|
-
else if ((
|
|
1001
|
-
const [l, ...f] =
|
|
1000
|
+
else if ((d = i.getContentType()) !== !1) {
|
|
1001
|
+
const [l, ...f] = d ? d.split(";").map((c) => c.trim()).filter(Boolean) : [];
|
|
1002
1002
|
i.setContentType([l || "multipart/form-data", ...f].join("; "));
|
|
1003
1003
|
}
|
|
1004
1004
|
}
|
|
1005
|
-
if (
|
|
1005
|
+
if (O.hasStandardBrowserEnv && (r && p.isFunction(r) && (r = r(t)), r || r !== !1 && zr(t.url))) {
|
|
1006
1006
|
const l = o && s && Ur.read(s);
|
|
1007
1007
|
l && i.set(o, l);
|
|
1008
1008
|
}
|
|
@@ -1011,58 +1011,58 @@ const nn = (e) => {
|
|
|
1011
1011
|
return new Promise(function(n, r) {
|
|
1012
1012
|
const o = nn(e);
|
|
1013
1013
|
let s = o.data;
|
|
1014
|
-
const i =
|
|
1015
|
-
let { responseType: a, onUploadProgress:
|
|
1016
|
-
function b() {
|
|
1017
|
-
_ && _(), m && m(), o.cancelToken && o.cancelToken.unsubscribe(f), o.signal && o.signal.removeEventListener("abort", f);
|
|
1018
|
-
}
|
|
1019
|
-
let g = new XMLHttpRequest();
|
|
1020
|
-
g.open(o.method.toUpperCase(), o.url, !0), g.timeout = o.timeout;
|
|
1014
|
+
const i = P.from(o.headers).normalize();
|
|
1015
|
+
let { responseType: a, onUploadProgress: d, onDownloadProgress: l } = o, f, c, g, h, _;
|
|
1021
1016
|
function y() {
|
|
1022
|
-
|
|
1017
|
+
h && h(), _ && _(), o.cancelToken && o.cancelToken.unsubscribe(f), o.signal && o.signal.removeEventListener("abort", f);
|
|
1018
|
+
}
|
|
1019
|
+
let b = new XMLHttpRequest();
|
|
1020
|
+
b.open(o.method.toUpperCase(), o.url, !0), b.timeout = o.timeout;
|
|
1021
|
+
function x() {
|
|
1022
|
+
if (!b)
|
|
1023
1023
|
return;
|
|
1024
|
-
const v =
|
|
1025
|
-
"getAllResponseHeaders" in
|
|
1024
|
+
const v = P.from(
|
|
1025
|
+
"getAllResponseHeaders" in b && b.getAllResponseHeaders()
|
|
1026
1026
|
), E = {
|
|
1027
|
-
data: !a || a === "text" || a === "json" ?
|
|
1028
|
-
status:
|
|
1029
|
-
statusText:
|
|
1027
|
+
data: !a || a === "text" || a === "json" ? b.responseText : b.response,
|
|
1028
|
+
status: b.status,
|
|
1029
|
+
statusText: b.statusText,
|
|
1030
1030
|
headers: v,
|
|
1031
1031
|
config: e,
|
|
1032
|
-
request:
|
|
1032
|
+
request: b
|
|
1033
1033
|
};
|
|
1034
|
-
en(function(
|
|
1035
|
-
n(
|
|
1036
|
-
}, function(
|
|
1037
|
-
r(
|
|
1038
|
-
}, E),
|
|
1034
|
+
en(function(D) {
|
|
1035
|
+
n(D), y();
|
|
1036
|
+
}, function(D) {
|
|
1037
|
+
r(D), y();
|
|
1038
|
+
}, E), b = null;
|
|
1039
1039
|
}
|
|
1040
|
-
"onloadend" in
|
|
1041
|
-
!
|
|
1042
|
-
},
|
|
1043
|
-
|
|
1044
|
-
},
|
|
1045
|
-
r(new A("Network Error", A.ERR_NETWORK, e,
|
|
1046
|
-
},
|
|
1040
|
+
"onloadend" in b ? b.onloadend = x : b.onreadystatechange = function() {
|
|
1041
|
+
!b || b.readyState !== 4 || b.status === 0 && !(b.responseURL && b.responseURL.indexOf("file:") === 0) || setTimeout(x);
|
|
1042
|
+
}, b.onabort = function() {
|
|
1043
|
+
b && (r(new A("Request aborted", A.ECONNABORTED, e, b)), b = null);
|
|
1044
|
+
}, b.onerror = function() {
|
|
1045
|
+
r(new A("Network Error", A.ERR_NETWORK, e, b)), b = null;
|
|
1046
|
+
}, b.ontimeout = function() {
|
|
1047
1047
|
let w = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
1048
1048
|
const E = o.transitional || Zt;
|
|
1049
1049
|
o.timeoutErrorMessage && (w = o.timeoutErrorMessage), r(new A(
|
|
1050
1050
|
w,
|
|
1051
1051
|
E.clarifyTimeoutError ? A.ETIMEDOUT : A.ECONNABORTED,
|
|
1052
1052
|
e,
|
|
1053
|
-
|
|
1054
|
-
)),
|
|
1055
|
-
}, s === void 0 && i.setContentType(null), "setRequestHeader" in
|
|
1056
|
-
|
|
1057
|
-
}), p.isUndefined(o.withCredentials) || (
|
|
1058
|
-
|
|
1053
|
+
b
|
|
1054
|
+
)), b = null;
|
|
1055
|
+
}, s === void 0 && i.setContentType(null), "setRequestHeader" in b && p.forEach(i.toJSON(), function(w, E) {
|
|
1056
|
+
b.setRequestHeader(E, w);
|
|
1057
|
+
}), p.isUndefined(o.withCredentials) || (b.withCredentials = !!o.withCredentials), a && a !== "json" && (b.responseType = o.responseType), l && ([g, _] = Se(l, !0), b.addEventListener("progress", g)), d && b.upload && ([c, h] = Se(d), b.upload.addEventListener("progress", c), b.upload.addEventListener("loadend", h)), (o.cancelToken || o.signal) && (f = (v) => {
|
|
1058
|
+
b && (r(!v || v.type ? new te(null, e, b) : v), b.abort(), b = null);
|
|
1059
1059
|
}, o.cancelToken && o.cancelToken.subscribe(f), o.signal && (o.signal.aborted ? f() : o.signal.addEventListener("abort", f)));
|
|
1060
|
-
const S =
|
|
1061
|
-
if (S &&
|
|
1060
|
+
const S = Pr(o.url);
|
|
1061
|
+
if (S && O.protocols.indexOf(S) === -1) {
|
|
1062
1062
|
r(new A("Unsupported protocol " + S + ":", A.ERR_BAD_REQUEST, e));
|
|
1063
1063
|
return;
|
|
1064
1064
|
}
|
|
1065
|
-
|
|
1065
|
+
b.send(s || null);
|
|
1066
1066
|
});
|
|
1067
1067
|
}, qr = (e, t) => {
|
|
1068
1068
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
@@ -1072,7 +1072,7 @@ const nn = (e) => {
|
|
|
1072
1072
|
if (!o) {
|
|
1073
1073
|
o = !0, a();
|
|
1074
1074
|
const f = l instanceof Error ? l : this.reason;
|
|
1075
|
-
r.abort(f instanceof A ? f : new
|
|
1075
|
+
r.abort(f instanceof A ? f : new te(f instanceof Error ? f.message : f));
|
|
1076
1076
|
}
|
|
1077
1077
|
};
|
|
1078
1078
|
let i = t && setTimeout(() => {
|
|
@@ -1084,8 +1084,8 @@ const nn = (e) => {
|
|
|
1084
1084
|
}), e = null);
|
|
1085
1085
|
};
|
|
1086
1086
|
e.forEach((l) => l.addEventListener("abort", s));
|
|
1087
|
-
const { signal:
|
|
1088
|
-
return
|
|
1087
|
+
const { signal: d } = r;
|
|
1088
|
+
return d.unsubscribe = () => p.asap(a), d;
|
|
1089
1089
|
}
|
|
1090
1090
|
}, Jr = function* (e, t) {
|
|
1091
1091
|
let n = e.byteLength;
|
|
@@ -1117,29 +1117,29 @@ const nn = (e) => {
|
|
|
1117
1117
|
}
|
|
1118
1118
|
}, _t = (e, t, n, r) => {
|
|
1119
1119
|
const o = Vr(e, t);
|
|
1120
|
-
let s = 0, i, a = (
|
|
1121
|
-
i || (i = !0, r && r(
|
|
1120
|
+
let s = 0, i, a = (d) => {
|
|
1121
|
+
i || (i = !0, r && r(d));
|
|
1122
1122
|
};
|
|
1123
1123
|
return new ReadableStream({
|
|
1124
|
-
async pull(
|
|
1124
|
+
async pull(d) {
|
|
1125
1125
|
try {
|
|
1126
1126
|
const { done: l, value: f } = await o.next();
|
|
1127
1127
|
if (l) {
|
|
1128
|
-
a(),
|
|
1128
|
+
a(), d.close();
|
|
1129
1129
|
return;
|
|
1130
1130
|
}
|
|
1131
1131
|
let c = f.byteLength;
|
|
1132
1132
|
if (n) {
|
|
1133
|
-
let
|
|
1134
|
-
n(
|
|
1133
|
+
let g = s += c;
|
|
1134
|
+
n(g);
|
|
1135
1135
|
}
|
|
1136
|
-
|
|
1136
|
+
d.enqueue(new Uint8Array(f));
|
|
1137
1137
|
} catch (l) {
|
|
1138
1138
|
throw a(l), l;
|
|
1139
1139
|
}
|
|
1140
1140
|
},
|
|
1141
|
-
cancel(
|
|
1142
|
-
return a(
|
|
1141
|
+
cancel(d) {
|
|
1142
|
+
return a(d), o.return();
|
|
1143
1143
|
}
|
|
1144
1144
|
}, {
|
|
1145
1145
|
highWaterMark: 2
|
|
@@ -1152,7 +1152,7 @@ const nn = (e) => {
|
|
|
1152
1152
|
}
|
|
1153
1153
|
}, Xr = rn && on(() => {
|
|
1154
1154
|
let e = !1;
|
|
1155
|
-
const t = new Request(
|
|
1155
|
+
const t = new Request(O.origin, {
|
|
1156
1156
|
body: new ReadableStream(),
|
|
1157
1157
|
method: "POST",
|
|
1158
1158
|
get duplex() {
|
|
@@ -1176,7 +1176,7 @@ const Zr = async (e) => {
|
|
|
1176
1176
|
if (p.isBlob(e))
|
|
1177
1177
|
return e.size;
|
|
1178
1178
|
if (p.isSpecCompliantForm(e))
|
|
1179
|
-
return (await new Request(
|
|
1179
|
+
return (await new Request(O.origin, {
|
|
1180
1180
|
method: "POST",
|
|
1181
1181
|
body: e
|
|
1182
1182
|
}).arrayBuffer()).byteLength;
|
|
@@ -1196,81 +1196,81 @@ const Zr = async (e) => {
|
|
|
1196
1196
|
cancelToken: s,
|
|
1197
1197
|
timeout: i,
|
|
1198
1198
|
onDownloadProgress: a,
|
|
1199
|
-
onUploadProgress:
|
|
1199
|
+
onUploadProgress: d,
|
|
1200
1200
|
responseType: l,
|
|
1201
1201
|
headers: f,
|
|
1202
1202
|
withCredentials: c = "same-origin",
|
|
1203
|
-
fetchOptions:
|
|
1203
|
+
fetchOptions: g
|
|
1204
1204
|
} = nn(e);
|
|
1205
1205
|
l = l ? (l + "").toLowerCase() : "text";
|
|
1206
|
-
let
|
|
1207
|
-
const
|
|
1208
|
-
|
|
1206
|
+
let h = qr([o, s && s.toAbortSignal()], i), _;
|
|
1207
|
+
const y = h && h.unsubscribe && (() => {
|
|
1208
|
+
h.unsubscribe();
|
|
1209
1209
|
});
|
|
1210
|
-
let
|
|
1210
|
+
let b;
|
|
1211
1211
|
try {
|
|
1212
|
-
if (
|
|
1212
|
+
if (d && Xr && n !== "get" && n !== "head" && (b = await Yr(f, r)) !== 0) {
|
|
1213
1213
|
let E = new Request(t, {
|
|
1214
1214
|
method: "POST",
|
|
1215
1215
|
body: r,
|
|
1216
1216
|
duplex: "half"
|
|
1217
1217
|
}), C;
|
|
1218
1218
|
if (p.isFormData(r) && (C = E.headers.get("content-type")) && f.setContentType(C), E.body) {
|
|
1219
|
-
const [
|
|
1220
|
-
|
|
1221
|
-
Se(ht(
|
|
1219
|
+
const [D, $] = pt(
|
|
1220
|
+
b,
|
|
1221
|
+
Se(ht(d))
|
|
1222
1222
|
);
|
|
1223
|
-
r = _t(E.body, gt,
|
|
1223
|
+
r = _t(E.body, gt, D, $);
|
|
1224
1224
|
}
|
|
1225
1225
|
}
|
|
1226
1226
|
p.isString(c) || (c = c ? "include" : "omit");
|
|
1227
|
-
const
|
|
1228
|
-
|
|
1229
|
-
...
|
|
1230
|
-
signal:
|
|
1227
|
+
const x = "credentials" in Request.prototype;
|
|
1228
|
+
_ = new Request(t, {
|
|
1229
|
+
...g,
|
|
1230
|
+
signal: h,
|
|
1231
1231
|
method: n.toUpperCase(),
|
|
1232
1232
|
headers: f.normalize().toJSON(),
|
|
1233
1233
|
body: r,
|
|
1234
1234
|
duplex: "half",
|
|
1235
|
-
credentials:
|
|
1235
|
+
credentials: x ? c : void 0
|
|
1236
1236
|
});
|
|
1237
|
-
let S = await fetch(
|
|
1237
|
+
let S = await fetch(_, g);
|
|
1238
1238
|
const v = We && (l === "stream" || l === "response");
|
|
1239
|
-
if (We && (a || v &&
|
|
1239
|
+
if (We && (a || v && y)) {
|
|
1240
1240
|
const E = {};
|
|
1241
1241
|
["status", "statusText", "headers"].forEach((W) => {
|
|
1242
1242
|
E[W] = S[W];
|
|
1243
1243
|
});
|
|
1244
|
-
const C = p.toFiniteNumber(S.headers.get("content-length")), [
|
|
1244
|
+
const C = p.toFiniteNumber(S.headers.get("content-length")), [D, $] = a && pt(
|
|
1245
1245
|
C,
|
|
1246
1246
|
Se(ht(a), !0)
|
|
1247
1247
|
) || [];
|
|
1248
1248
|
S = new Response(
|
|
1249
|
-
_t(S.body, gt,
|
|
1250
|
-
$ && $(),
|
|
1249
|
+
_t(S.body, gt, D, () => {
|
|
1250
|
+
$ && $(), y && y();
|
|
1251
1251
|
}),
|
|
1252
1252
|
E
|
|
1253
1253
|
);
|
|
1254
1254
|
}
|
|
1255
1255
|
l = l || "text";
|
|
1256
1256
|
let w = await Le[p.findKey(Le, l) || "text"](S, e);
|
|
1257
|
-
return !v &&
|
|
1257
|
+
return !v && y && y(), await new Promise((E, C) => {
|
|
1258
1258
|
en(E, C, {
|
|
1259
1259
|
data: w,
|
|
1260
|
-
headers:
|
|
1260
|
+
headers: P.from(S.headers),
|
|
1261
1261
|
status: S.status,
|
|
1262
1262
|
statusText: S.statusText,
|
|
1263
1263
|
config: e,
|
|
1264
|
-
request:
|
|
1264
|
+
request: _
|
|
1265
1265
|
});
|
|
1266
1266
|
});
|
|
1267
|
-
} catch (
|
|
1268
|
-
throw
|
|
1269
|
-
new A("Network Error", A.ERR_NETWORK, e,
|
|
1267
|
+
} catch (x) {
|
|
1268
|
+
throw y && y(), x && x.name === "TypeError" && /Load failed|fetch/i.test(x.message) ? Object.assign(
|
|
1269
|
+
new A("Network Error", A.ERR_NETWORK, e, _),
|
|
1270
1270
|
{
|
|
1271
|
-
cause:
|
|
1271
|
+
cause: x.cause || x
|
|
1272
1272
|
}
|
|
1273
|
-
) : A.from(
|
|
1273
|
+
) : A.from(x, x && x.code, e, _);
|
|
1274
1274
|
}
|
|
1275
1275
|
}), qe = {
|
|
1276
1276
|
http: hr,
|
|
@@ -1303,7 +1303,7 @@ const bt = (e) => `- ${e}`, eo = (e) => p.isFunction(e) || e === null || e === !
|
|
|
1303
1303
|
}
|
|
1304
1304
|
if (!r) {
|
|
1305
1305
|
const s = Object.entries(o).map(
|
|
1306
|
-
([a,
|
|
1306
|
+
([a, d]) => `adapter ${a} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1307
1307
|
);
|
|
1308
1308
|
let i = t ? s.length > 1 ? `since :
|
|
1309
1309
|
` + s.map(bt).join(`
|
|
@@ -1319,10 +1319,10 @@ const bt = (e) => `- ${e}`, eo = (e) => p.isFunction(e) || e === null || e === !
|
|
|
1319
1319
|
};
|
|
1320
1320
|
function ze(e) {
|
|
1321
1321
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1322
|
-
throw new
|
|
1322
|
+
throw new te(null, e);
|
|
1323
1323
|
}
|
|
1324
1324
|
function yt(e) {
|
|
1325
|
-
return ze(e), e.headers =
|
|
1325
|
+
return ze(e), e.headers = P.from(e.headers), e.data = Ne.call(
|
|
1326
1326
|
e,
|
|
1327
1327
|
e.transformRequest
|
|
1328
1328
|
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), sn.getAdapter(e.adapter || ue.adapter)(e).then(function(r) {
|
|
@@ -1330,13 +1330,13 @@ function yt(e) {
|
|
|
1330
1330
|
e,
|
|
1331
1331
|
e.transformResponse,
|
|
1332
1332
|
r
|
|
1333
|
-
), r.headers =
|
|
1333
|
+
), r.headers = P.from(r.headers), r;
|
|
1334
1334
|
}, function(r) {
|
|
1335
1335
|
return Qt(r) || (ze(e), r && r.response && (r.response.data = Ne.call(
|
|
1336
1336
|
e,
|
|
1337
1337
|
e.transformResponse,
|
|
1338
1338
|
r.response
|
|
1339
|
-
), r.response.headers =
|
|
1339
|
+
), r.response.headers = P.from(r.response.headers))), Promise.reject(r);
|
|
1340
1340
|
});
|
|
1341
1341
|
}
|
|
1342
1342
|
const an = "1.10.0", Be = {};
|
|
@@ -1375,9 +1375,9 @@ function to(e, t, n) {
|
|
|
1375
1375
|
for (; o-- > 0; ) {
|
|
1376
1376
|
const s = r[o], i = t[s];
|
|
1377
1377
|
if (i) {
|
|
1378
|
-
const a = e[s],
|
|
1379
|
-
if (
|
|
1380
|
-
throw new A("option " + s + " must be " +
|
|
1378
|
+
const a = e[s], d = a === void 0 || i(a, s, e);
|
|
1379
|
+
if (d !== !0)
|
|
1380
|
+
throw new A("option " + s + " must be " + d, A.ERR_BAD_OPTION_VALUE);
|
|
1381
1381
|
continue;
|
|
1382
1382
|
}
|
|
1383
1383
|
if (n !== !0)
|
|
@@ -1442,43 +1442,43 @@ let V = class {
|
|
|
1442
1442
|
);
|
|
1443
1443
|
s && p.forEach(
|
|
1444
1444
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1445
|
-
(
|
|
1446
|
-
delete s[
|
|
1445
|
+
(_) => {
|
|
1446
|
+
delete s[_];
|
|
1447
1447
|
}
|
|
1448
|
-
), n.headers =
|
|
1448
|
+
), n.headers = P.concat(i, s);
|
|
1449
1449
|
const a = [];
|
|
1450
|
-
let
|
|
1451
|
-
this.interceptors.request.forEach(function(
|
|
1452
|
-
typeof
|
|
1450
|
+
let d = !0;
|
|
1451
|
+
this.interceptors.request.forEach(function(y) {
|
|
1452
|
+
typeof y.runWhen == "function" && y.runWhen(n) === !1 || (d = d && y.synchronous, a.unshift(y.fulfilled, y.rejected));
|
|
1453
1453
|
});
|
|
1454
1454
|
const l = [];
|
|
1455
|
-
this.interceptors.response.forEach(function(
|
|
1456
|
-
l.push(
|
|
1455
|
+
this.interceptors.response.forEach(function(y) {
|
|
1456
|
+
l.push(y.fulfilled, y.rejected);
|
|
1457
1457
|
});
|
|
1458
|
-
let f, c = 0,
|
|
1459
|
-
if (!
|
|
1460
|
-
const
|
|
1461
|
-
for (
|
|
1462
|
-
f = f.then(
|
|
1458
|
+
let f, c = 0, g;
|
|
1459
|
+
if (!d) {
|
|
1460
|
+
const _ = [yt.bind(this), void 0];
|
|
1461
|
+
for (_.unshift.apply(_, a), _.push.apply(_, l), g = _.length, f = Promise.resolve(n); c < g; )
|
|
1462
|
+
f = f.then(_[c++], _[c++]);
|
|
1463
1463
|
return f;
|
|
1464
1464
|
}
|
|
1465
|
-
|
|
1466
|
-
let
|
|
1467
|
-
for (c = 0; c <
|
|
1468
|
-
const
|
|
1465
|
+
g = a.length;
|
|
1466
|
+
let h = n;
|
|
1467
|
+
for (c = 0; c < g; ) {
|
|
1468
|
+
const _ = a[c++], y = a[c++];
|
|
1469
1469
|
try {
|
|
1470
|
-
|
|
1471
|
-
} catch (
|
|
1472
|
-
|
|
1470
|
+
h = _(h);
|
|
1471
|
+
} catch (b) {
|
|
1472
|
+
y.call(this, b);
|
|
1473
1473
|
break;
|
|
1474
1474
|
}
|
|
1475
1475
|
}
|
|
1476
1476
|
try {
|
|
1477
|
-
f = yt.call(this,
|
|
1478
|
-
} catch (
|
|
1479
|
-
return Promise.reject(
|
|
1477
|
+
f = yt.call(this, h);
|
|
1478
|
+
} catch (_) {
|
|
1479
|
+
return Promise.reject(_);
|
|
1480
1480
|
}
|
|
1481
|
-
for (c = 0,
|
|
1481
|
+
for (c = 0, g = l.length; c < g; )
|
|
1482
1482
|
f = f.then(l[c++], l[c++]);
|
|
1483
1483
|
return f;
|
|
1484
1484
|
}
|
|
@@ -1536,7 +1536,7 @@ let no = class ln {
|
|
|
1536
1536
|
r.unsubscribe(s);
|
|
1537
1537
|
}, i;
|
|
1538
1538
|
}, t(function(s, i, a) {
|
|
1539
|
-
r.reason || (r.reason = new
|
|
1539
|
+
r.reason || (r.reason = new te(s, i, a), n(r.reason));
|
|
1540
1540
|
});
|
|
1541
1541
|
}
|
|
1542
1542
|
/**
|
|
@@ -1669,7 +1669,7 @@ function cn(e) {
|
|
|
1669
1669
|
}
|
|
1670
1670
|
const R = cn(ue);
|
|
1671
1671
|
R.Axios = V;
|
|
1672
|
-
R.CanceledError =
|
|
1672
|
+
R.CanceledError = te;
|
|
1673
1673
|
R.CancelToken = no;
|
|
1674
1674
|
R.isCancel = Qt;
|
|
1675
1675
|
R.VERSION = an;
|
|
@@ -1682,28 +1682,28 @@ R.all = function(t) {
|
|
|
1682
1682
|
R.spread = ro;
|
|
1683
1683
|
R.isAxiosError = oo;
|
|
1684
1684
|
R.mergeConfig = G;
|
|
1685
|
-
R.AxiosHeaders =
|
|
1685
|
+
R.AxiosHeaders = P;
|
|
1686
1686
|
R.formToJSON = (e) => Yt(p.isHTMLForm(e) ? new FormData(e) : e);
|
|
1687
1687
|
R.getAdapter = sn.getAdapter;
|
|
1688
1688
|
R.HttpStatusCode = Je;
|
|
1689
1689
|
R.default = R;
|
|
1690
1690
|
const {
|
|
1691
|
-
Axios:
|
|
1692
|
-
AxiosError:
|
|
1693
|
-
CanceledError:
|
|
1694
|
-
isCancel:
|
|
1695
|
-
CancelToken:
|
|
1696
|
-
VERSION:
|
|
1697
|
-
all:
|
|
1698
|
-
Cancel:
|
|
1699
|
-
isAxiosError:
|
|
1700
|
-
spread:
|
|
1701
|
-
toFormData:
|
|
1702
|
-
AxiosHeaders:
|
|
1703
|
-
HttpStatusCode:
|
|
1704
|
-
formToJSON:
|
|
1705
|
-
getAdapter:
|
|
1706
|
-
mergeConfig:
|
|
1691
|
+
Axios: gi,
|
|
1692
|
+
AxiosError: bi,
|
|
1693
|
+
CanceledError: yi,
|
|
1694
|
+
isCancel: xi,
|
|
1695
|
+
CancelToken: Si,
|
|
1696
|
+
VERSION: Li,
|
|
1697
|
+
all: wi,
|
|
1698
|
+
Cancel: Ai,
|
|
1699
|
+
isAxiosError: Ei,
|
|
1700
|
+
spread: vi,
|
|
1701
|
+
toFormData: ki,
|
|
1702
|
+
AxiosHeaders: Ti,
|
|
1703
|
+
HttpStatusCode: Ci,
|
|
1704
|
+
formToJSON: Mi,
|
|
1705
|
+
getAdapter: Ri,
|
|
1706
|
+
mergeConfig: Bi
|
|
1707
1707
|
} = R;
|
|
1708
1708
|
var de, T, un, q, St, dn, fn, pn, tt, Ve, Ge, se = {}, hn = [], io = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Fe = Array.isArray;
|
|
1709
1709
|
function j(e, t) {
|
|
@@ -1713,7 +1713,7 @@ function j(e, t) {
|
|
|
1713
1713
|
function nt(e) {
|
|
1714
1714
|
e && e.parentNode && e.parentNode.removeChild(e);
|
|
1715
1715
|
}
|
|
1716
|
-
function
|
|
1716
|
+
function Y(e, t, n) {
|
|
1717
1717
|
var r, o, s, i = {};
|
|
1718
1718
|
for (s in t) s == "key" ? r = t[s] : s == "ref" ? o = t[s] : i[s] = t[s];
|
|
1719
1719
|
if (arguments.length > 2 && (i.children = arguments.length > 3 ? de.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null) for (s in e.defaultProps) i[s] === void 0 && (i[s] = e.defaultProps[s]);
|
|
@@ -1729,10 +1729,10 @@ function K(e) {
|
|
|
1729
1729
|
function be(e, t) {
|
|
1730
1730
|
this.props = e, this.context = t;
|
|
1731
1731
|
}
|
|
1732
|
-
function
|
|
1733
|
-
if (t == null) return e.__ ?
|
|
1732
|
+
function Q(e, t) {
|
|
1733
|
+
if (t == null) return e.__ ? Q(e.__, e.__i + 1) : null;
|
|
1734
1734
|
for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
|
|
1735
|
-
return typeof e.type == "function" ?
|
|
1735
|
+
return typeof e.type == "function" ? Q(e) : null;
|
|
1736
1736
|
}
|
|
1737
1737
|
function mn(e) {
|
|
1738
1738
|
var t, n;
|
|
@@ -1748,18 +1748,18 @@ function Lt(e) {
|
|
|
1748
1748
|
(!e.__d && (e.__d = !0) && q.push(e) && !we.__r++ || St != T.debounceRendering) && ((St = T.debounceRendering) || dn)(we);
|
|
1749
1749
|
}
|
|
1750
1750
|
function we() {
|
|
1751
|
-
for (var e, t, n, r, o, s, i, a = 1; q.length; ) q.length > a && q.sort(fn), e = q.shift(), a = q.length, e.__d && (n = void 0, o = (r = (t = e).__v).__e, s = [], i = [], t.__P && ((n = j({}, r)).__v = r.__v + 1, T.vnode && T.vnode(n), rt(t.__P, n, r, t.__n, t.__P.namespaceURI, 32 & r.__u ? [o] : null, s, o ??
|
|
1751
|
+
for (var e, t, n, r, o, s, i, a = 1; q.length; ) q.length > a && q.sort(fn), e = q.shift(), a = q.length, e.__d && (n = void 0, o = (r = (t = e).__v).__e, s = [], i = [], t.__P && ((n = j({}, r)).__v = r.__v + 1, T.vnode && T.vnode(n), rt(t.__P, n, r, t.__n, t.__P.namespaceURI, 32 & r.__u ? [o] : null, s, o ?? Q(r), !!(32 & r.__u), i), n.__v = r.__v, n.__.__k[n.__i] = n, bn(s, n, i), n.__e != o && mn(n)));
|
|
1752
1752
|
we.__r = 0;
|
|
1753
1753
|
}
|
|
1754
|
-
function _n(e, t, n, r, o, s, i, a,
|
|
1755
|
-
var c,
|
|
1756
|
-
for (
|
|
1757
|
-
return n.__e =
|
|
1754
|
+
function _n(e, t, n, r, o, s, i, a, d, l, f) {
|
|
1755
|
+
var c, g, h, _, y, b, x = r && r.__k || hn, S = t.length;
|
|
1756
|
+
for (d = so(n, t, x, d, S), c = 0; c < S; c++) (h = n.__k[c]) != null && (g = h.__i == -1 ? se : x[h.__i] || se, h.__i = c, b = rt(e, h, g, o, s, i, a, d, l, f), _ = h.__e, h.ref && g.ref != h.ref && (g.ref && ot(g.ref, null, h), f.push(h.ref, h.__c || _, h)), y == null && _ != null && (y = _), 4 & h.__u || g.__k === h.__k ? d = gn(h, d, e) : typeof h.type == "function" && b !== void 0 ? d = b : _ && (d = _.nextSibling), h.__u &= -7);
|
|
1757
|
+
return n.__e = y, d;
|
|
1758
1758
|
}
|
|
1759
1759
|
function so(e, t, n, r, o) {
|
|
1760
|
-
var s, i, a,
|
|
1761
|
-
for (e.__k = new Array(o), s = 0; s < o; s++) (i = t[s]) != null && typeof i != "boolean" && typeof i != "function" ? (
|
|
1762
|
-
if (c) for (s = 0; s < f; s++) (a = n[s]) != null && (2 & a.__u) == 0 && (a.__e == r && (r =
|
|
1760
|
+
var s, i, a, d, l, f = n.length, c = f, g = 0;
|
|
1761
|
+
for (e.__k = new Array(o), s = 0; s < o; s++) (i = t[s]) != null && typeof i != "boolean" && typeof i != "function" ? (d = s + g, (i = e.__k[s] = typeof i == "string" || typeof i == "number" || typeof i == "bigint" || i.constructor == String ? oe(null, i, null, null, null) : Fe(i) ? oe(K, { children: i }, null, null, null) : i.constructor == null && i.__b > 0 ? oe(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i).__ = e, i.__b = e.__b + 1, a = null, (l = i.__i = ao(i, n, d, c)) != -1 && (c--, (a = n[l]) && (a.__u |= 2)), a == null || a.__v == null ? (l == -1 && (o > f ? g-- : o < f && g++), typeof i.type != "function" && (i.__u |= 4)) : l != d && (l == d - 1 ? g-- : l == d + 1 ? g++ : (l > d ? g-- : g++, i.__u |= 4))) : e.__k[s] = null;
|
|
1762
|
+
if (c) for (s = 0; s < f; s++) (a = n[s]) != null && (2 & a.__u) == 0 && (a.__e == r && (r = Q(a)), xn(a, a));
|
|
1763
1763
|
return r;
|
|
1764
1764
|
}
|
|
1765
1765
|
function gn(e, t, n) {
|
|
@@ -1768,22 +1768,22 @@ function gn(e, t, n) {
|
|
|
1768
1768
|
for (r = e.__k, o = 0; r && o < r.length; o++) r[o] && (r[o].__ = e, t = gn(r[o], t, n));
|
|
1769
1769
|
return t;
|
|
1770
1770
|
}
|
|
1771
|
-
e.__e != t && (t && e.type && !n.contains(t) && (t =
|
|
1771
|
+
e.__e != t && (t && e.type && !n.contains(t) && (t = Q(e)), n.insertBefore(e.__e, t || null), t = e.__e);
|
|
1772
1772
|
do
|
|
1773
1773
|
t = t && t.nextSibling;
|
|
1774
1774
|
while (t != null && t.nodeType == 8);
|
|
1775
1775
|
return t;
|
|
1776
1776
|
}
|
|
1777
1777
|
function ao(e, t, n, r) {
|
|
1778
|
-
var o, s, i = e.key, a = e.type,
|
|
1779
|
-
if (
|
|
1780
|
-
if (r > (
|
|
1778
|
+
var o, s, i = e.key, a = e.type, d = t[n];
|
|
1779
|
+
if (d === null && e.key == null || d && i == d.key && a == d.type && (2 & d.__u) == 0) return n;
|
|
1780
|
+
if (r > (d != null && (2 & d.__u) == 0 ? 1 : 0)) for (o = n - 1, s = n + 1; o >= 0 || s < t.length; ) {
|
|
1781
1781
|
if (o >= 0) {
|
|
1782
|
-
if ((
|
|
1782
|
+
if ((d = t[o]) && (2 & d.__u) == 0 && i == d.key && a == d.type) return o;
|
|
1783
1783
|
o--;
|
|
1784
1784
|
}
|
|
1785
1785
|
if (s < t.length) {
|
|
1786
|
-
if ((
|
|
1786
|
+
if ((d = t[s]) && (2 & d.__u) == 0 && i == d.key && a == d.type) return s;
|
|
1787
1787
|
s++;
|
|
1788
1788
|
}
|
|
1789
1789
|
}
|
|
@@ -1820,40 +1820,40 @@ function At(e) {
|
|
|
1820
1820
|
}
|
|
1821
1821
|
};
|
|
1822
1822
|
}
|
|
1823
|
-
function rt(e, t, n, r, o, s, i, a,
|
|
1824
|
-
var f, c,
|
|
1823
|
+
function rt(e, t, n, r, o, s, i, a, d, l) {
|
|
1824
|
+
var f, c, g, h, _, y, b, x, S, v, w, E, C, D, $, W, Pe, U = t.type;
|
|
1825
1825
|
if (t.constructor != null) return null;
|
|
1826
|
-
128 & n.__u && (
|
|
1826
|
+
128 & n.__u && (d = !!(32 & n.__u), s = [a = t.__e = n.__e]), (f = T.__b) && f(t);
|
|
1827
1827
|
e: if (typeof U == "function") try {
|
|
1828
|
-
if (
|
|
1828
|
+
if (x = t.props, S = "prototype" in U && U.prototype.render, v = (f = U.contextType) && r[f.__c], w = f ? v ? v.props.value : f.__ : r, n.__c ? b = (c = t.__c = n.__c).__ = c.__E : (S ? t.__c = c = new U(x, w) : (t.__c = c = new be(x, w), c.constructor = U, c.render = co), v && v.sub(c), c.props = x, c.state || (c.state = {}), c.context = w, c.__n = r, g = c.__d = !0, c.__h = [], c._sb = []), S && c.__s == null && (c.__s = c.state), S && U.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = j({}, c.__s)), j(c.__s, U.getDerivedStateFromProps(x, c.__s))), h = c.props, _ = c.state, c.__v = t, g) S && U.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), S && c.componentDidMount != null && c.__h.push(c.componentDidMount);
|
|
1829
1829
|
else {
|
|
1830
|
-
if (S && U.getDerivedStateFromProps == null &&
|
|
1831
|
-
for (t.__v != n.__v && (c.props =
|
|
1830
|
+
if (S && U.getDerivedStateFromProps == null && x !== h && c.componentWillReceiveProps != null && c.componentWillReceiveProps(x, w), !c.__e && c.shouldComponentUpdate != null && c.shouldComponentUpdate(x, c.__s, w) === !1 || t.__v == n.__v) {
|
|
1831
|
+
for (t.__v != n.__v && (c.props = x, c.state = c.__s, c.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(ne) {
|
|
1832
1832
|
ne && (ne.__ = t);
|
|
1833
1833
|
}), E = 0; E < c._sb.length; E++) c.__h.push(c._sb[E]);
|
|
1834
1834
|
c._sb = [], c.__h.length && i.push(c);
|
|
1835
1835
|
break e;
|
|
1836
1836
|
}
|
|
1837
|
-
c.componentWillUpdate != null && c.componentWillUpdate(
|
|
1838
|
-
c.componentDidUpdate(
|
|
1837
|
+
c.componentWillUpdate != null && c.componentWillUpdate(x, c.__s, w), S && c.componentDidUpdate != null && c.__h.push(function() {
|
|
1838
|
+
c.componentDidUpdate(h, _, y);
|
|
1839
1839
|
});
|
|
1840
1840
|
}
|
|
1841
|
-
if (c.context = w, c.props =
|
|
1841
|
+
if (c.context = w, c.props = x, c.__P = e, c.__e = !1, C = T.__r, D = 0, S) {
|
|
1842
1842
|
for (c.state = c.__s, c.__d = !1, C && C(t), f = c.render(c.props, c.state, c.context), $ = 0; $ < c._sb.length; $++) c.__h.push(c._sb[$]);
|
|
1843
1843
|
c._sb = [];
|
|
1844
1844
|
} else do
|
|
1845
1845
|
c.__d = !1, C && C(t), f = c.render(c.props, c.state, c.context), c.state = c.__s;
|
|
1846
|
-
while (c.__d && ++
|
|
1847
|
-
c.state = c.__s, c.getChildContext != null && (r = j(j({}, r), c.getChildContext())), S && !
|
|
1846
|
+
while (c.__d && ++D < 25);
|
|
1847
|
+
c.state = c.__s, c.getChildContext != null && (r = j(j({}, r), c.getChildContext())), S && !g && c.getSnapshotBeforeUpdate != null && (y = c.getSnapshotBeforeUpdate(h, _)), W = f, f != null && f.type === K && f.key == null && (W = yn(f.props.children)), a = _n(e, Fe(W) ? W : [W], t, n, r, o, s, i, a, d, l), c.base = t.__e, t.__u &= -161, c.__h.length && i.push(c), b && (c.__E = c.__ = null);
|
|
1848
1848
|
} catch (ne) {
|
|
1849
|
-
if (t.__v = null,
|
|
1850
|
-
for (t.__u |=
|
|
1849
|
+
if (t.__v = null, d || s != null) if (ne.then) {
|
|
1850
|
+
for (t.__u |= d ? 160 : 128; a && a.nodeType == 8 && a.nextSibling; ) a = a.nextSibling;
|
|
1851
1851
|
s[s.indexOf(a)] = null, t.__e = a;
|
|
1852
|
-
} else for (
|
|
1852
|
+
} else for (Pe = s.length; Pe--; ) nt(s[Pe]);
|
|
1853
1853
|
else t.__e = n.__e, t.__k = n.__k;
|
|
1854
1854
|
T.__e(ne, t, n);
|
|
1855
1855
|
}
|
|
1856
|
-
else s == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : a = t.__e = lo(n.__e, t, n, r, o, s, i,
|
|
1856
|
+
else s == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : a = t.__e = lo(n.__e, t, n, r, o, s, i, d, l);
|
|
1857
1857
|
return (f = T.diffed) && f(t), 128 & t.__u ? void 0 : a;
|
|
1858
1858
|
}
|
|
1859
1859
|
function bn(e, t, n) {
|
|
@@ -1871,32 +1871,32 @@ function bn(e, t, n) {
|
|
|
1871
1871
|
function yn(e) {
|
|
1872
1872
|
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Fe(e) ? e.map(yn) : j({}, e);
|
|
1873
1873
|
}
|
|
1874
|
-
function lo(e, t, n, r, o, s, i, a,
|
|
1875
|
-
var l, f, c,
|
|
1874
|
+
function lo(e, t, n, r, o, s, i, a, d) {
|
|
1875
|
+
var l, f, c, g, h, _, y, b = n.props, x = t.props, S = t.type;
|
|
1876
1876
|
if (S == "svg" ? o = "http://www.w3.org/2000/svg" : S == "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), s != null) {
|
|
1877
|
-
for (l = 0; l < s.length; l++) if ((
|
|
1878
|
-
e =
|
|
1877
|
+
for (l = 0; l < s.length; l++) if ((h = s[l]) && "setAttribute" in h == !!S && (S ? h.localName == S : h.nodeType == 3)) {
|
|
1878
|
+
e = h, s[l] = null;
|
|
1879
1879
|
break;
|
|
1880
1880
|
}
|
|
1881
1881
|
}
|
|
1882
1882
|
if (e == null) {
|
|
1883
|
-
if (S == null) return document.createTextNode(
|
|
1884
|
-
e = document.createElementNS(o, S,
|
|
1883
|
+
if (S == null) return document.createTextNode(x);
|
|
1884
|
+
e = document.createElementNS(o, S, x.is && x), a && (T.__m && T.__m(t, s), a = !1), s = null;
|
|
1885
1885
|
}
|
|
1886
|
-
if (S == null)
|
|
1886
|
+
if (S == null) b === x || a && e.data == x || (e.data = x);
|
|
1887
1887
|
else {
|
|
1888
|
-
if (s = s && de.call(e.childNodes),
|
|
1889
|
-
for (l in
|
|
1890
|
-
if (l == "dangerouslySetInnerHTML") c =
|
|
1891
|
-
else if (!(l in
|
|
1892
|
-
if (l == "value" && "defaultValue" in
|
|
1893
|
-
fe(e, l, null,
|
|
1888
|
+
if (s = s && de.call(e.childNodes), b = n.props || se, !a && s != null) for (b = {}, l = 0; l < e.attributes.length; l++) b[(h = e.attributes[l]).name] = h.value;
|
|
1889
|
+
for (l in b) if (h = b[l], l != "children") {
|
|
1890
|
+
if (l == "dangerouslySetInnerHTML") c = h;
|
|
1891
|
+
else if (!(l in x)) {
|
|
1892
|
+
if (l == "value" && "defaultValue" in x || l == "checked" && "defaultChecked" in x) continue;
|
|
1893
|
+
fe(e, l, null, h, o);
|
|
1894
1894
|
}
|
|
1895
1895
|
}
|
|
1896
|
-
for (l in
|
|
1896
|
+
for (l in x) h = x[l], l == "children" ? g = h : l == "dangerouslySetInnerHTML" ? f = h : l == "value" ? _ = h : l == "checked" ? y = h : a && typeof h != "function" || b[l] === h || fe(e, l, h, b[l], o);
|
|
1897
1897
|
if (f) a || c && (f.__html == c.__html || f.__html == e.innerHTML) || (e.innerHTML = f.__html), t.__k = [];
|
|
1898
|
-
else if (c && (e.innerHTML = ""), _n(t.type == "template" ? e.content : e, Fe(
|
|
1899
|
-
a || (l = "value", S == "progress" &&
|
|
1898
|
+
else if (c && (e.innerHTML = ""), _n(t.type == "template" ? e.content : e, Fe(g) ? g : [g], t, n, r, S == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, s, i, s ? s[0] : n.__k && Q(n, 0), a, d), s != null) for (l = s.length; l--; ) nt(s[l]);
|
|
1899
|
+
a || (l = "value", S == "progress" && _ == null ? e.removeAttribute("value") : _ != null && (_ !== e[l] || S == "progress" && !_ || S == "option" && _ != b[l]) && fe(e, l, _, b[l], o), l = "checked", y != null && y != e[l] && fe(e, l, y, b[l], o));
|
|
1900
1900
|
}
|
|
1901
1901
|
return e;
|
|
1902
1902
|
}
|
|
@@ -1928,7 +1928,7 @@ function co(e, t, n) {
|
|
|
1928
1928
|
}
|
|
1929
1929
|
function Oe(e, t, n) {
|
|
1930
1930
|
var r, o, s, i;
|
|
1931
|
-
t == document && (t = document.documentElement), T.__ && T.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, s = [], i = [], rt(t, e = (!r && n || t).__k =
|
|
1931
|
+
t == document && (t = document.documentElement), T.__ && T.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, s = [], i = [], rt(t, e = (!r && n || t).__k = Y(K, null, [e]), o || se, se, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? de.call(t.childNodes) : null, s, !r && n ? n : o ? o.__e : t.firstChild, r, i), bn(s, e, i);
|
|
1932
1932
|
}
|
|
1933
1933
|
function Sn(e, t) {
|
|
1934
1934
|
Oe(e, t, Sn);
|
|
@@ -1954,12 +1954,12 @@ de = hn.slice, T = { __e: function(e, t, n, r) {
|
|
|
1954
1954
|
return e.__v.__b - t.__v.__b;
|
|
1955
1955
|
}, we.__r = 0, pn = /(PointerCapture)$|Capture$/i, tt = 0, Ve = At(!1), Ge = At(!0);
|
|
1956
1956
|
var uo = 0;
|
|
1957
|
-
function
|
|
1957
|
+
function m(e, t, n, r, o, s) {
|
|
1958
1958
|
t || (t = {});
|
|
1959
|
-
var i, a,
|
|
1960
|
-
if ("ref" in
|
|
1961
|
-
var l = { type: e, props:
|
|
1962
|
-
if (typeof e == "function" && (i = e.defaultProps)) for (a in i)
|
|
1959
|
+
var i, a, d = t;
|
|
1960
|
+
if ("ref" in d) for (a in d = {}, t) a == "ref" ? i = t[a] : d[a] = t[a];
|
|
1961
|
+
var l = { type: e, props: d, key: n, ref: i, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --uo, __i: -1, __u: 0, __source: o, __self: s };
|
|
1962
|
+
if (typeof e == "function" && (i = e.defaultProps)) for (a in i) d[a] === void 0 && (d[a] = i[a]);
|
|
1963
1963
|
return T.vnode && T.vnode(l), l;
|
|
1964
1964
|
}
|
|
1965
1965
|
var ae, M, Ue, Et, Ae = 0, wn = [], B = T, vt = B.__b, kt = B.__r, Tt = B.diffed, Ct = B.__c, Mt = B.unmount, Rt = B.__;
|
|
@@ -1968,39 +1968,39 @@ function it(e, t) {
|
|
|
1968
1968
|
var n = M.__H || (M.__H = { __: [], __h: [] });
|
|
1969
1969
|
return e >= n.__.length && n.__.push({}), n.__[e];
|
|
1970
1970
|
}
|
|
1971
|
-
function
|
|
1971
|
+
function F(e) {
|
|
1972
1972
|
return Ae = 1, fo(En, e);
|
|
1973
1973
|
}
|
|
1974
1974
|
function fo(e, t, n) {
|
|
1975
1975
|
var r = it(ae++, 2);
|
|
1976
1976
|
if (r.t = e, !r.__c && (r.__ = [En(void 0, t), function(a) {
|
|
1977
|
-
var
|
|
1978
|
-
|
|
1977
|
+
var d = r.__N ? r.__N[0] : r.__[0], l = r.t(d, a);
|
|
1978
|
+
d !== l && (r.__N = [l, r.__[1]], r.__c.setState({}));
|
|
1979
1979
|
}], r.__c = M, !M.__f)) {
|
|
1980
|
-
var o = function(a,
|
|
1980
|
+
var o = function(a, d, l) {
|
|
1981
1981
|
if (!r.__c.__H) return !0;
|
|
1982
|
-
var f = r.__c.__H.__.filter(function(
|
|
1983
|
-
return !!
|
|
1982
|
+
var f = r.__c.__H.__.filter(function(g) {
|
|
1983
|
+
return !!g.__c;
|
|
1984
1984
|
});
|
|
1985
|
-
if (f.every(function(
|
|
1986
|
-
return !
|
|
1987
|
-
})) return !s || s.call(this, a,
|
|
1985
|
+
if (f.every(function(g) {
|
|
1986
|
+
return !g.__N;
|
|
1987
|
+
})) return !s || s.call(this, a, d, l);
|
|
1988
1988
|
var c = r.__c.props !== a;
|
|
1989
|
-
return f.forEach(function(
|
|
1990
|
-
if (
|
|
1991
|
-
var
|
|
1992
|
-
|
|
1989
|
+
return f.forEach(function(g) {
|
|
1990
|
+
if (g.__N) {
|
|
1991
|
+
var h = g.__[0];
|
|
1992
|
+
g.__ = g.__N, g.__N = void 0, h !== g.__[0] && (c = !0);
|
|
1993
1993
|
}
|
|
1994
|
-
}), s && s.call(this, a,
|
|
1994
|
+
}), s && s.call(this, a, d, l) || c;
|
|
1995
1995
|
};
|
|
1996
1996
|
M.__f = !0;
|
|
1997
1997
|
var s = M.shouldComponentUpdate, i = M.componentWillUpdate;
|
|
1998
|
-
M.componentWillUpdate = function(a,
|
|
1998
|
+
M.componentWillUpdate = function(a, d, l) {
|
|
1999
1999
|
if (this.__e) {
|
|
2000
2000
|
var f = s;
|
|
2001
|
-
s = void 0, o(a,
|
|
2001
|
+
s = void 0, o(a, d, l), s = f;
|
|
2002
2002
|
}
|
|
2003
|
-
i && i.call(this, a,
|
|
2003
|
+
i && i.call(this, a, d, l);
|
|
2004
2004
|
}, M.shouldComponentUpdate = o;
|
|
2005
2005
|
}
|
|
2006
2006
|
return r.__N || r.__;
|
|
@@ -2087,7 +2087,7 @@ function An(e, t) {
|
|
|
2087
2087
|
function En(e, t) {
|
|
2088
2088
|
return typeof t == "function" ? t(e) : t;
|
|
2089
2089
|
}
|
|
2090
|
-
var
|
|
2090
|
+
var Ie = /* @__PURE__ */ ((e) => (e.ZH = "zh", e.EN = "en", e))(Ie || {}), N = /* @__PURE__ */ ((e) => (e.WHITE = "white", e.DARK = "dark", e))(N || {}), Z = /* @__PURE__ */ ((e) => (e.DEV = "dev", e.DEVELOPMENT = "development", e.TEST = "test", e.PROD = "prod", e.PRODUCTION = "production", e))(Z || {}), u = /* @__PURE__ */ ((e) => (e.SMALL = "small", e.MEDIUM = "medium", e))(u || {});
|
|
2091
2091
|
const Ft = {
|
|
2092
2092
|
white: {
|
|
2093
2093
|
background: "#fff",
|
|
@@ -2173,8 +2173,8 @@ class go {
|
|
|
2173
2173
|
<rect x="7.25" y="5" width="1.5" height="1.5" rx="0.75" fill="white"/>
|
|
2174
2174
|
`, a.appendChild(l);
|
|
2175
2175
|
}
|
|
2176
|
-
const
|
|
2177
|
-
if (
|
|
2176
|
+
const d = document.createElement("div");
|
|
2177
|
+
if (d.textContent = r, d.style.flex = "1", d.style.color = i.color, a.appendChild(d), s) {
|
|
2178
2178
|
const l = document.createElement("button");
|
|
2179
2179
|
l.textContent = "✕", l.style.cssText = `
|
|
2180
2180
|
background: none;
|
|
@@ -2213,42 +2213,42 @@ function bo(e = {}) {
|
|
|
2213
2213
|
const { env: n } = t;
|
|
2214
2214
|
let r;
|
|
2215
2215
|
switch (n) {
|
|
2216
|
-
case
|
|
2217
|
-
case
|
|
2216
|
+
case Z.DEV:
|
|
2217
|
+
case Z.DEVELOPMENT:
|
|
2218
2218
|
r = "/api";
|
|
2219
2219
|
break;
|
|
2220
|
-
case
|
|
2220
|
+
case Z.TEST:
|
|
2221
2221
|
r = "https://fund.bestfulfill.tech/api/sdk";
|
|
2222
2222
|
break;
|
|
2223
|
-
case
|
|
2224
|
-
case
|
|
2223
|
+
case Z.PROD:
|
|
2224
|
+
case Z.PRODUCTION:
|
|
2225
2225
|
default:
|
|
2226
2226
|
r = "https://fund.bestfulfill.com/api/sdk";
|
|
2227
2227
|
break;
|
|
2228
2228
|
}
|
|
2229
2229
|
const { baseURL: o = r, timeout: s = 1e4, onError: i } = e, a = R.create({ baseURL: o, timeout: s });
|
|
2230
|
-
return a.interceptors.request.use((
|
|
2230
|
+
return a.interceptors.request.use((d) => {
|
|
2231
2231
|
const { token: l, locale: f } = t;
|
|
2232
|
-
return
|
|
2233
|
-
...
|
|
2232
|
+
return d.headers = {
|
|
2233
|
+
...d.headers,
|
|
2234
2234
|
Authorization: l,
|
|
2235
|
-
"x-locale": f ===
|
|
2236
|
-
},
|
|
2235
|
+
"x-locale": f === Ie.ZH ? "zh-CN" : "en-US"
|
|
2236
|
+
}, d;
|
|
2237
2237
|
}), a.interceptors.response.use(
|
|
2238
|
-
(
|
|
2239
|
-
if (
|
|
2240
|
-
return
|
|
2241
|
-
const l =
|
|
2242
|
-
return Xe.error(l), i && i(l,
|
|
2238
|
+
(d) => {
|
|
2239
|
+
if (d.data && d.data.code === 0)
|
|
2240
|
+
return d.data;
|
|
2241
|
+
const l = d.data?.msg || d.data?.message || "未知错误";
|
|
2242
|
+
return Xe.error(l), i && i(l, d), Promise.reject(d.data || { message: "未知错误" });
|
|
2243
2243
|
},
|
|
2244
|
-
(
|
|
2245
|
-
const l =
|
|
2246
|
-
return Xe.error(l), i && i(l,
|
|
2244
|
+
(d) => {
|
|
2245
|
+
const l = d.response?.data?.msg || d.response?.data?.message || d.message || "网络请求失败";
|
|
2246
|
+
return Xe.error(l), i && i(l, d), Promise.reject(d);
|
|
2247
2247
|
}
|
|
2248
2248
|
), a;
|
|
2249
2249
|
}
|
|
2250
2250
|
let xe = null;
|
|
2251
|
-
function
|
|
2251
|
+
function X() {
|
|
2252
2252
|
return xe || (xe = bo()), xe;
|
|
2253
2253
|
}
|
|
2254
2254
|
function yo() {
|
|
@@ -2258,7 +2258,7 @@ function vn() {
|
|
|
2258
2258
|
const e = JSON.parse(
|
|
2259
2259
|
sessionStorage.getItem("fund_unit_params") || "{}"
|
|
2260
2260
|
);
|
|
2261
|
-
return
|
|
2261
|
+
return X().get("/balance", {
|
|
2262
2262
|
params: {
|
|
2263
2263
|
merchant_id: e.merchantId,
|
|
2264
2264
|
biz_type: e.bizType,
|
|
@@ -2284,7 +2284,7 @@ function vn() {
|
|
|
2284
2284
|
return sessionStorage.setItem("balanceData", JSON.stringify(r)), r;
|
|
2285
2285
|
});
|
|
2286
2286
|
}
|
|
2287
|
-
const xo = async () =>
|
|
2287
|
+
const xo = async () => X().get("/all-dicts", {}).then((e) => (sessionStorage.setItem("all_dicts", JSON.stringify(e.data)), e.data || {})), So = async (e, t) => X().post("/oss/upload", e, {
|
|
2288
2288
|
headers: {
|
|
2289
2289
|
"Content-Type": "multipart/form-data"
|
|
2290
2290
|
},
|
|
@@ -2308,7 +2308,7 @@ const xo = async () => te().get("/all-dicts", {}).then((e) => (sessionStorage.se
|
|
|
2308
2308
|
transfer_channel: e.transferChannel,
|
|
2309
2309
|
voucher_urls: e.voucherUrls
|
|
2310
2310
|
};
|
|
2311
|
-
return
|
|
2311
|
+
return X().post("/offline/recharge/create", n, {});
|
|
2312
2312
|
}, wo = async (e) => {
|
|
2313
2313
|
const t = JSON.parse(
|
|
2314
2314
|
sessionStorage.getItem("fund_unit_params") || "{}"
|
|
@@ -2322,8 +2322,8 @@ const xo = async () => te().get("/all-dicts", {}).then((e) => (sessionStorage.se
|
|
|
2322
2322
|
recharge_channel: e.rechargeChannel,
|
|
2323
2323
|
return_url: window.location.href
|
|
2324
2324
|
};
|
|
2325
|
-
return
|
|
2326
|
-
}, Ao = async (e) =>
|
|
2325
|
+
return X().post("/online/recharge/create", n, {}).then((r) => r.data.redirect_url);
|
|
2326
|
+
}, Ao = async (e) => X().get("/calc-payment-amount", {
|
|
2327
2327
|
params: e
|
|
2328
2328
|
}).then((t) => {
|
|
2329
2329
|
const n = t.data;
|
|
@@ -2332,20 +2332,25 @@ const xo = async () => te().get("/all-dicts", {}).then((e) => (sessionStorage.se
|
|
|
2332
2332
|
fee: n.fee,
|
|
2333
2333
|
currency: n.currency
|
|
2334
2334
|
};
|
|
2335
|
-
})
|
|
2336
|
-
|
|
2335
|
+
}), Eo = async (e) => X().get("/channel/info", {
|
|
2336
|
+
params: {
|
|
2337
|
+
code: e.code,
|
|
2338
|
+
biz_type: e.bizType
|
|
2339
|
+
}
|
|
2340
|
+
}).then((t) => t.data?.detail || []);
|
|
2341
|
+
async function Fi() {
|
|
2337
2342
|
return await vn();
|
|
2338
2343
|
}
|
|
2339
|
-
function
|
|
2344
|
+
function Oi(e) {
|
|
2340
2345
|
const {
|
|
2341
2346
|
merchant_id: t,
|
|
2342
2347
|
biz_type: n,
|
|
2343
2348
|
fund_balance_id: r,
|
|
2344
2349
|
user_id: o,
|
|
2345
2350
|
theme: s = N.WHITE,
|
|
2346
|
-
locale: i =
|
|
2351
|
+
locale: i = Ie.ZH,
|
|
2347
2352
|
env: a,
|
|
2348
|
-
size:
|
|
2353
|
+
size: d,
|
|
2349
2354
|
themeConfig: l
|
|
2350
2355
|
} = e;
|
|
2351
2356
|
console.log(e, "InitParams1111");
|
|
@@ -2361,7 +2366,7 @@ function Fi(e) {
|
|
|
2361
2366
|
theme: s,
|
|
2362
2367
|
locale: i,
|
|
2363
2368
|
env: a,
|
|
2364
|
-
size:
|
|
2369
|
+
size: d,
|
|
2365
2370
|
themeConfig: l
|
|
2366
2371
|
})
|
|
2367
2372
|
), yo(), xo(), {
|
|
@@ -2373,7 +2378,7 @@ function Fi(e) {
|
|
|
2373
2378
|
theme: s,
|
|
2374
2379
|
locale: i,
|
|
2375
2380
|
env: a,
|
|
2376
|
-
size:
|
|
2381
|
+
size: d
|
|
2377
2382
|
};
|
|
2378
2383
|
}
|
|
2379
2384
|
function k(e) {
|
|
@@ -2390,7 +2395,7 @@ function k(e) {
|
|
|
2390
2395
|
}
|
|
2391
2396
|
return t[e];
|
|
2392
2397
|
}
|
|
2393
|
-
function
|
|
2398
|
+
function vo() {
|
|
2394
2399
|
const e = new CustomEvent("refresh-balance", {
|
|
2395
2400
|
detail: {},
|
|
2396
2401
|
bubbles: !0,
|
|
@@ -2398,7 +2403,7 @@ function Eo() {
|
|
|
2398
2403
|
});
|
|
2399
2404
|
window.dispatchEvent(e);
|
|
2400
2405
|
}
|
|
2401
|
-
const
|
|
2406
|
+
const Ii = {
|
|
2402
2407
|
"/api": {
|
|
2403
2408
|
target: "https://fund.bestfulfill.tech/api/sdk",
|
|
2404
2409
|
changeOrigin: !0,
|
|
@@ -2406,7 +2411,7 @@ const Oi = {
|
|
|
2406
2411
|
secure: !1
|
|
2407
2412
|
}
|
|
2408
2413
|
};
|
|
2409
|
-
function
|
|
2414
|
+
function ko() {
|
|
2410
2415
|
const e = k("size");
|
|
2411
2416
|
return {
|
|
2412
2417
|
white: {
|
|
@@ -2414,9 +2419,9 @@ function vo() {
|
|
|
2414
2419
|
color: "#fff",
|
|
2415
2420
|
border: "none",
|
|
2416
2421
|
borderRadius: 6,
|
|
2417
|
-
padding: e ===
|
|
2422
|
+
padding: e === u.SMALL ? "6px 10px" : "8px 16px",
|
|
2418
2423
|
cursor: "pointer",
|
|
2419
|
-
fontSize: e ===
|
|
2424
|
+
fontSize: e === u.SMALL ? 12 : 16,
|
|
2420
2425
|
fontWeight: 600
|
|
2421
2426
|
},
|
|
2422
2427
|
dark: {
|
|
@@ -2424,15 +2429,15 @@ function vo() {
|
|
|
2424
2429
|
color: "#fff",
|
|
2425
2430
|
border: "none",
|
|
2426
2431
|
borderRadius: 6,
|
|
2427
|
-
padding: e ===
|
|
2432
|
+
padding: e === u.SMALL ? "6px 10px" : "8px 16px",
|
|
2428
2433
|
cursor: "pointer",
|
|
2429
|
-
fontSize: e ===
|
|
2434
|
+
fontSize: e === u.SMALL ? 12 : 16,
|
|
2430
2435
|
fontWeight: 600
|
|
2431
2436
|
}
|
|
2432
2437
|
};
|
|
2433
2438
|
}
|
|
2434
|
-
function
|
|
2435
|
-
const t = k("theme"), n = k("themeConfig"), r = t === N.WHITE, o =
|
|
2439
|
+
function To(e) {
|
|
2440
|
+
const t = k("theme"), n = k("themeConfig"), r = t === N.WHITE, o = ko();
|
|
2436
2441
|
let s = e;
|
|
2437
2442
|
return !s && n && (s = (r ? n.white : n.dark)?.color), r ? {
|
|
2438
2443
|
...o.white,
|
|
@@ -2443,10 +2448,10 @@ function ko(e) {
|
|
|
2443
2448
|
};
|
|
2444
2449
|
}
|
|
2445
2450
|
function kn({ onClick: e, color: t, children: n }) {
|
|
2446
|
-
const r =
|
|
2447
|
-
return /* @__PURE__ */
|
|
2451
|
+
const r = To(t);
|
|
2452
|
+
return /* @__PURE__ */ m("button", { style: r, onClick: e, type: "button", children: n });
|
|
2448
2453
|
}
|
|
2449
|
-
const
|
|
2454
|
+
const Co = {
|
|
2450
2455
|
"额外费用说明:您的地区、币种、支付卡类型等因素可能会导致手续费的变动,最终手续费以官方为准。": "额外费用说明:您的地区、币种、支付卡类型等因素可能会导致手续费的变动,最终手续费以官方为准。",
|
|
2451
2456
|
"手续费约为:": "手续费约为:",
|
|
2452
2457
|
确定: "确定",
|
|
@@ -2499,10 +2504,10 @@ const To = {
|
|
|
2499
2504
|
已上传: "已上传",
|
|
2500
2505
|
移除: "移除"
|
|
2501
2506
|
};
|
|
2502
|
-
function
|
|
2503
|
-
return
|
|
2507
|
+
function Mo(e) {
|
|
2508
|
+
return Co[e] || e;
|
|
2504
2509
|
}
|
|
2505
|
-
const
|
|
2510
|
+
const Ro = {
|
|
2506
2511
|
"额外费用说明:您的地区、币种、支付卡类型等因素可能会导致手续费的变动,最终手续费以官方为准。": "Additional note: Your region, currency, and card type may affect the processing fee; the final fee is determined by the provider.",
|
|
2507
2512
|
"手续费约为:": "Fee approximately: ",
|
|
2508
2513
|
确定: "Confirm",
|
|
@@ -2555,16 +2560,16 @@ const Mo = {
|
|
|
2555
2560
|
已上传: "Uploaded",
|
|
2556
2561
|
移除: "Remove"
|
|
2557
2562
|
};
|
|
2558
|
-
function
|
|
2559
|
-
return
|
|
2563
|
+
function Bo(e) {
|
|
2564
|
+
return Ro[e] || e;
|
|
2560
2565
|
}
|
|
2561
|
-
function
|
|
2566
|
+
function Fo() {
|
|
2562
2567
|
return JSON.parse(
|
|
2563
2568
|
sessionStorage.getItem("fund_unit_params") || "{}"
|
|
2564
|
-
).locale ||
|
|
2569
|
+
).locale || Ie.ZH;
|
|
2565
2570
|
}
|
|
2566
2571
|
function L(e) {
|
|
2567
|
-
return
|
|
2572
|
+
return Fo() === "zh" ? Mo(e) : Bo(e);
|
|
2568
2573
|
}
|
|
2569
2574
|
const Ot = {
|
|
2570
2575
|
white: {
|
|
@@ -2628,7 +2633,7 @@ const Ot = {
|
|
|
2628
2633
|
boxShadow: "0 2px 8px rgba(0,0,0,0.32)"
|
|
2629
2634
|
}
|
|
2630
2635
|
};
|
|
2631
|
-
function
|
|
2636
|
+
function Oo() {
|
|
2632
2637
|
const e = k("theme"), t = k("themeConfig"), n = e === N.WHITE, r = n ? Ot.white : Ot.dark;
|
|
2633
2638
|
if (t) {
|
|
2634
2639
|
const o = n ? t.white : t.dark;
|
|
@@ -2652,53 +2657,53 @@ const Ze = ({
|
|
|
2652
2657
|
error: s,
|
|
2653
2658
|
disabled: i,
|
|
2654
2659
|
dropdownStyle: a,
|
|
2655
|
-
className:
|
|
2660
|
+
className: d,
|
|
2656
2661
|
dropdownClassName: l,
|
|
2657
2662
|
children: f
|
|
2658
2663
|
}) => {
|
|
2659
|
-
const [c,
|
|
2664
|
+
const [c, g] = F(!1), h = Ee(null), [_, y] = F(null), b = Oo(), x = k("size");
|
|
2660
2665
|
le(() => {
|
|
2661
2666
|
if (!c) return;
|
|
2662
2667
|
const w = (E) => {
|
|
2663
|
-
|
|
2668
|
+
h.current && !h.current.contains(E.target) && g(!1);
|
|
2664
2669
|
};
|
|
2665
2670
|
return document.addEventListener("mousedown", w), () => document.removeEventListener("mousedown", w);
|
|
2666
2671
|
}, [c]);
|
|
2667
|
-
const S = n.find((w) => w.value === e), v = () => s ?
|
|
2668
|
-
return /* @__PURE__ */
|
|
2672
|
+
const S = n.find((w) => w.value === e), v = () => s ? b.triggerError : i ? b.triggerDisabled : b.trigger;
|
|
2673
|
+
return /* @__PURE__ */ m(
|
|
2669
2674
|
"div",
|
|
2670
2675
|
{
|
|
2671
|
-
ref:
|
|
2672
|
-
className:
|
|
2676
|
+
ref: h,
|
|
2677
|
+
className: d,
|
|
2673
2678
|
style: { position: "relative", ...o },
|
|
2674
2679
|
children: [
|
|
2675
|
-
/* @__PURE__ */
|
|
2680
|
+
/* @__PURE__ */ m("style", { children: `
|
|
2676
2681
|
.custom-select-dropdown {
|
|
2677
2682
|
scrollbar-width: thin;
|
|
2678
|
-
scrollbar-color: ${
|
|
2683
|
+
scrollbar-color: ${b.scrollbarThumb} ${b.scrollbarTrack};
|
|
2679
2684
|
}
|
|
2680
2685
|
.custom-select-dropdown::-webkit-scrollbar {
|
|
2681
|
-
width: ${
|
|
2686
|
+
width: ${x === u.SMALL ? 6 : 8}px;
|
|
2682
2687
|
}
|
|
2683
2688
|
.custom-select-dropdown::-webkit-scrollbar-thumb {
|
|
2684
2689
|
border-radius: 4px;
|
|
2685
|
-
background: ${
|
|
2690
|
+
background: ${b.scrollbarThumb};
|
|
2686
2691
|
}
|
|
2687
2692
|
.custom-select-dropdown::-webkit-scrollbar-track {
|
|
2688
|
-
background: ${
|
|
2693
|
+
background: ${b.scrollbarTrack};
|
|
2689
2694
|
}
|
|
2690
2695
|
` }),
|
|
2691
|
-
/* @__PURE__ */
|
|
2696
|
+
/* @__PURE__ */ m(
|
|
2692
2697
|
"div",
|
|
2693
2698
|
{
|
|
2694
|
-
onClick: () => !i &&
|
|
2699
|
+
onClick: () => !i && g((w) => !w),
|
|
2695
2700
|
style: {
|
|
2696
|
-
minHeight:
|
|
2701
|
+
minHeight: x === u.SMALL ? 32 : 40,
|
|
2697
2702
|
borderRadius: 6,
|
|
2698
2703
|
display: "flex",
|
|
2699
2704
|
alignItems: "center",
|
|
2700
|
-
padding:
|
|
2701
|
-
fontSize:
|
|
2705
|
+
padding: x === u.SMALL ? "0 10px" : "0 12px",
|
|
2706
|
+
fontSize: x === u.SMALL ? 12 : 15,
|
|
2702
2707
|
cursor: i ? "not-allowed" : "pointer",
|
|
2703
2708
|
boxSizing: "border-box",
|
|
2704
2709
|
transition: "border 0.2s",
|
|
@@ -2709,16 +2714,16 @@ const Ze = ({
|
|
|
2709
2714
|
},
|
|
2710
2715
|
tabIndex: 0,
|
|
2711
2716
|
children: [
|
|
2712
|
-
/* @__PURE__ */
|
|
2713
|
-
/* @__PURE__ */
|
|
2717
|
+
/* @__PURE__ */ m("span", { style: { flex: 1 }, children: S ? S.label : /* @__PURE__ */ m("span", { style: b.placeholder, children: r || "请选择" }) }),
|
|
2718
|
+
/* @__PURE__ */ m("span", { style: { marginLeft: 8, display: "flex", alignItems: "center" }, children: /* @__PURE__ */ m(
|
|
2714
2719
|
"svg",
|
|
2715
2720
|
{
|
|
2716
|
-
width:
|
|
2717
|
-
height:
|
|
2721
|
+
width: x === u.SMALL ? 16 : 20,
|
|
2722
|
+
height: x === u.SMALL ? 16 : 20,
|
|
2718
2723
|
viewBox: "0 0 20 20",
|
|
2719
2724
|
fill: "none",
|
|
2720
2725
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2721
|
-
children: /* @__PURE__ */
|
|
2726
|
+
children: /* @__PURE__ */ m(
|
|
2722
2727
|
"path",
|
|
2723
2728
|
{
|
|
2724
2729
|
d: "M6 8L10 12L14 8",
|
|
@@ -2733,7 +2738,7 @@ const Ze = ({
|
|
|
2733
2738
|
]
|
|
2734
2739
|
}
|
|
2735
2740
|
),
|
|
2736
|
-
c && !i && /* @__PURE__ */
|
|
2741
|
+
c && !i && /* @__PURE__ */ m(
|
|
2737
2742
|
"div",
|
|
2738
2743
|
{
|
|
2739
2744
|
className: `custom-select-dropdown${l ? " " + l : ""}`,
|
|
@@ -2741,17 +2746,17 @@ const Ze = ({
|
|
|
2741
2746
|
position: "absolute",
|
|
2742
2747
|
left: 0,
|
|
2743
2748
|
right: 0,
|
|
2744
|
-
top:
|
|
2749
|
+
top: x === u.SMALL ? 32 : 44,
|
|
2745
2750
|
zIndex: 10,
|
|
2746
2751
|
borderRadius: 6,
|
|
2747
|
-
boxShadow:
|
|
2748
|
-
maxHeight:
|
|
2752
|
+
boxShadow: b.boxShadow,
|
|
2753
|
+
maxHeight: x === u.SMALL ? 160 : 220,
|
|
2749
2754
|
overflowY: "auto",
|
|
2750
|
-
...
|
|
2755
|
+
...b.dropdown,
|
|
2751
2756
|
...a
|
|
2752
2757
|
},
|
|
2753
2758
|
children: [
|
|
2754
|
-
n.length === 0 && /* @__PURE__ */
|
|
2759
|
+
n.length === 0 && /* @__PURE__ */ m(
|
|
2755
2760
|
"div",
|
|
2756
2761
|
{
|
|
2757
2762
|
style: {
|
|
@@ -2759,22 +2764,22 @@ const Ze = ({
|
|
|
2759
2764
|
flexDirection: "column",
|
|
2760
2765
|
alignItems: "center",
|
|
2761
2766
|
justifyContent: "center",
|
|
2762
|
-
minHeight:
|
|
2767
|
+
minHeight: x === u.SMALL ? 80 : 120,
|
|
2763
2768
|
width: "100%",
|
|
2764
2769
|
userSelect: "none"
|
|
2765
2770
|
},
|
|
2766
2771
|
children: [
|
|
2767
|
-
/* @__PURE__ */
|
|
2772
|
+
/* @__PURE__ */ m(
|
|
2768
2773
|
"svg",
|
|
2769
2774
|
{
|
|
2770
|
-
width:
|
|
2771
|
-
height:
|
|
2775
|
+
width: x === u.SMALL ? 48 : 64,
|
|
2776
|
+
height: x === u.SMALL ? 32 : 41,
|
|
2772
2777
|
viewBox: "0 0 64 41",
|
|
2773
2778
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2774
2779
|
children: [
|
|
2775
|
-
/* @__PURE__ */
|
|
2776
|
-
/* @__PURE__ */
|
|
2777
|
-
/* @__PURE__ */
|
|
2780
|
+
/* @__PURE__ */ m("title", { children: L("暂无数据") }),
|
|
2781
|
+
/* @__PURE__ */ m("g", { transform: "translate(0 1)", fill: "none", fillRule: "evenodd", children: [
|
|
2782
|
+
/* @__PURE__ */ m(
|
|
2778
2783
|
"ellipse",
|
|
2779
2784
|
{
|
|
2780
2785
|
fill: "#f5f5f5",
|
|
@@ -2784,9 +2789,9 @@ const Ze = ({
|
|
|
2784
2789
|
ry: "7"
|
|
2785
2790
|
}
|
|
2786
2791
|
),
|
|
2787
|
-
/* @__PURE__ */
|
|
2788
|
-
/* @__PURE__ */
|
|
2789
|
-
/* @__PURE__ */
|
|
2792
|
+
/* @__PURE__ */ m("g", { fillRule: "nonzero", stroke: "#d9d9d9", children: [
|
|
2793
|
+
/* @__PURE__ */ m("path", { d: "M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z" }),
|
|
2794
|
+
/* @__PURE__ */ m(
|
|
2790
2795
|
"path",
|
|
2791
2796
|
{
|
|
2792
2797
|
d: "M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",
|
|
@@ -2798,13 +2803,13 @@ const Ze = ({
|
|
|
2798
2803
|
]
|
|
2799
2804
|
}
|
|
2800
2805
|
),
|
|
2801
|
-
/* @__PURE__ */
|
|
2806
|
+
/* @__PURE__ */ m(
|
|
2802
2807
|
"div",
|
|
2803
2808
|
{
|
|
2804
2809
|
style: {
|
|
2805
2810
|
marginTop: 8,
|
|
2806
2811
|
color: "#bfbfbf",
|
|
2807
|
-
fontSize:
|
|
2812
|
+
fontSize: x === u.SMALL ? 12 : 15
|
|
2808
2813
|
},
|
|
2809
2814
|
children: L("暂无数据")
|
|
2810
2815
|
}
|
|
@@ -2812,24 +2817,24 @@ const Ze = ({
|
|
|
2812
2817
|
]
|
|
2813
2818
|
}
|
|
2814
2819
|
),
|
|
2815
|
-
n.map((w, E) => /* @__PURE__ */
|
|
2820
|
+
n.map((w, E) => /* @__PURE__ */ m(
|
|
2816
2821
|
"div",
|
|
2817
2822
|
{
|
|
2818
2823
|
onClick: () => {
|
|
2819
|
-
w.disabled || (
|
|
2824
|
+
w.disabled || (g(!1), t?.(w.value));
|
|
2820
2825
|
},
|
|
2821
|
-
onMouseEnter: () =>
|
|
2822
|
-
onMouseLeave: () =>
|
|
2826
|
+
onMouseEnter: () => y(E),
|
|
2827
|
+
onMouseLeave: () => y(null),
|
|
2823
2828
|
style: {
|
|
2824
|
-
padding:
|
|
2825
|
-
fontSize:
|
|
2829
|
+
padding: x === u.SMALL ? "6px 10px" : "10px 16px",
|
|
2830
|
+
fontSize: x === u.SMALL ? 12 : 15,
|
|
2826
2831
|
cursor: w.disabled ? "not-allowed" : "pointer",
|
|
2827
2832
|
fontWeight: e === w.value ? 600 : 400,
|
|
2828
2833
|
opacity: w.disabled ? 0.6 : 1,
|
|
2829
|
-
...
|
|
2834
|
+
...b.option(
|
|
2830
2835
|
e === w.value,
|
|
2831
2836
|
!!w.disabled,
|
|
2832
|
-
|
|
2837
|
+
_ === E
|
|
2833
2838
|
)
|
|
2834
2839
|
},
|
|
2835
2840
|
children: w.label
|
|
@@ -2844,26 +2849,26 @@ const Ze = ({
|
|
|
2844
2849
|
}
|
|
2845
2850
|
);
|
|
2846
2851
|
};
|
|
2847
|
-
function
|
|
2852
|
+
function Io() {
|
|
2848
2853
|
const e = k("size");
|
|
2849
2854
|
return {
|
|
2850
2855
|
white: {
|
|
2851
2856
|
label: {
|
|
2852
|
-
marginBottom: e ===
|
|
2853
|
-
fontSize: e ===
|
|
2857
|
+
marginBottom: e === u.SMALL ? 6 : 8,
|
|
2858
|
+
fontSize: e === u.SMALL ? 12 : 14,
|
|
2854
2859
|
color: "#222",
|
|
2855
2860
|
textAlign: "left",
|
|
2856
2861
|
display: "block"
|
|
2857
2862
|
},
|
|
2858
2863
|
input: {
|
|
2859
2864
|
width: "100%",
|
|
2860
|
-
padding: e ===
|
|
2865
|
+
padding: e === u.SMALL ? "8px 10px" : "10px 12px",
|
|
2861
2866
|
borderRadius: 6,
|
|
2862
2867
|
boxSizing: "border-box",
|
|
2863
2868
|
border: "1px solid #E5E6EB",
|
|
2864
2869
|
background: "#fff",
|
|
2865
2870
|
color: "#222",
|
|
2866
|
-
fontSize: e ===
|
|
2871
|
+
fontSize: e === u.SMALL ? 12 : 15,
|
|
2867
2872
|
outline: "none",
|
|
2868
2873
|
marginBottom: 0
|
|
2869
2874
|
},
|
|
@@ -2875,8 +2880,8 @@ function Oo() {
|
|
|
2875
2880
|
},
|
|
2876
2881
|
error: {
|
|
2877
2882
|
color: "#ff4d4f",
|
|
2878
|
-
fontSize: e ===
|
|
2879
|
-
marginTop: e ===
|
|
2883
|
+
fontSize: e === u.SMALL ? 12 : 13,
|
|
2884
|
+
marginTop: e === u.SMALL ? 2 : 4,
|
|
2880
2885
|
textAlign: "left"
|
|
2881
2886
|
},
|
|
2882
2887
|
buttonCancel: {
|
|
@@ -2884,8 +2889,8 @@ function Oo() {
|
|
|
2884
2889
|
color: "#222",
|
|
2885
2890
|
border: "1px solid #E5E6EB",
|
|
2886
2891
|
borderRadius: 6,
|
|
2887
|
-
padding: e ===
|
|
2888
|
-
fontSize: e ===
|
|
2892
|
+
padding: e === u.SMALL ? "6px 16px" : "8px 24px",
|
|
2893
|
+
fontSize: e === u.SMALL ? 12 : 15,
|
|
2889
2894
|
cursor: "pointer"
|
|
2890
2895
|
},
|
|
2891
2896
|
buttonSubmit: {
|
|
@@ -2893,61 +2898,61 @@ function Oo() {
|
|
|
2893
2898
|
color: "#fff",
|
|
2894
2899
|
border: "none",
|
|
2895
2900
|
borderRadius: 6,
|
|
2896
|
-
padding: e ===
|
|
2897
|
-
fontSize: e ===
|
|
2901
|
+
padding: e === u.SMALL ? "6px 16px" : "8px 24px",
|
|
2902
|
+
fontSize: e === u.SMALL ? 12 : 15,
|
|
2898
2903
|
cursor: "pointer",
|
|
2899
2904
|
fontWeight: 600
|
|
2900
2905
|
},
|
|
2901
2906
|
feeTip: {
|
|
2902
2907
|
marginBottom: 24,
|
|
2903
|
-
padding: e ===
|
|
2908
|
+
padding: e === u.SMALL ? "8px 10px" : "12px 16px",
|
|
2904
2909
|
background: "#f6ffed",
|
|
2905
2910
|
border: "1px solid #b7eb8f",
|
|
2906
2911
|
borderRadius: 6,
|
|
2907
|
-
fontSize: e ===
|
|
2912
|
+
fontSize: e === u.SMALL ? 12 : 14,
|
|
2908
2913
|
color: "#52c41a"
|
|
2909
2914
|
},
|
|
2910
2915
|
feeDetailBox: {
|
|
2911
|
-
marginTop: e ===
|
|
2912
|
-
marginBottom: e ===
|
|
2913
|
-
padding: e ===
|
|
2916
|
+
marginTop: e === u.SMALL ? 8 : 10,
|
|
2917
|
+
marginBottom: e === u.SMALL ? 16 : 20,
|
|
2918
|
+
padding: e === u.SMALL ? "8px 10px" : "12px 16px",
|
|
2914
2919
|
background: "#fff",
|
|
2915
2920
|
border: "1px solid #E5E6EB",
|
|
2916
2921
|
borderRadius: 6
|
|
2917
2922
|
},
|
|
2918
2923
|
feeDetailTitle: {
|
|
2919
|
-
fontSize: e ===
|
|
2924
|
+
fontSize: e === u.SMALL ? 12 : 14,
|
|
2920
2925
|
color: "#222",
|
|
2921
2926
|
fontWeight: 600,
|
|
2922
|
-
marginBottom: e ===
|
|
2927
|
+
marginBottom: e === u.SMALL ? 6 : 8
|
|
2923
2928
|
},
|
|
2924
2929
|
feeAmount: {
|
|
2925
2930
|
color: "#F53F3F",
|
|
2926
2931
|
marginLeft: 4
|
|
2927
2932
|
},
|
|
2928
2933
|
feeDetailDesc: {
|
|
2929
|
-
fontSize: e ===
|
|
2934
|
+
fontSize: e === u.SMALL ? 12 : 13,
|
|
2930
2935
|
color: "#6b7280",
|
|
2931
2936
|
lineHeight: 1.5
|
|
2932
2937
|
}
|
|
2933
2938
|
},
|
|
2934
2939
|
dark: {
|
|
2935
2940
|
label: {
|
|
2936
|
-
marginBottom: e ===
|
|
2937
|
-
fontSize: e ===
|
|
2941
|
+
marginBottom: e === u.SMALL ? 6 : 8,
|
|
2942
|
+
fontSize: e === u.SMALL ? 12 : 14,
|
|
2938
2943
|
color: "#fff",
|
|
2939
2944
|
textAlign: "left",
|
|
2940
2945
|
display: "block"
|
|
2941
2946
|
},
|
|
2942
2947
|
input: {
|
|
2943
2948
|
width: "100%",
|
|
2944
|
-
padding: e ===
|
|
2949
|
+
padding: e === u.SMALL ? "8px 10px" : "10px 12px",
|
|
2945
2950
|
borderRadius: 6,
|
|
2946
2951
|
boxSizing: "border-box",
|
|
2947
2952
|
border: "1px solid #374151",
|
|
2948
2953
|
background: "#23262F",
|
|
2949
2954
|
color: "#fff",
|
|
2950
|
-
fontSize: e ===
|
|
2955
|
+
fontSize: e === u.SMALL ? 12 : 15,
|
|
2951
2956
|
outline: "none",
|
|
2952
2957
|
marginBottom: 0
|
|
2953
2958
|
},
|
|
@@ -2959,8 +2964,8 @@ function Oo() {
|
|
|
2959
2964
|
},
|
|
2960
2965
|
error: {
|
|
2961
2966
|
color: "#ff4d4f",
|
|
2962
|
-
fontSize: e ===
|
|
2963
|
-
marginTop: e ===
|
|
2967
|
+
fontSize: e === u.SMALL ? 12 : 13,
|
|
2968
|
+
marginTop: e === u.SMALL ? 2 : 4,
|
|
2964
2969
|
textAlign: "left"
|
|
2965
2970
|
},
|
|
2966
2971
|
buttonCancel: {
|
|
@@ -2968,8 +2973,8 @@ function Oo() {
|
|
|
2968
2973
|
color: "#fff",
|
|
2969
2974
|
border: "none",
|
|
2970
2975
|
borderRadius: 6,
|
|
2971
|
-
padding: e ===
|
|
2972
|
-
fontSize: e ===
|
|
2976
|
+
padding: e === u.SMALL ? "6px 16px" : "8px 24px",
|
|
2977
|
+
fontSize: e === u.SMALL ? 12 : 15,
|
|
2973
2978
|
cursor: "pointer"
|
|
2974
2979
|
},
|
|
2975
2980
|
buttonSubmit: {
|
|
@@ -2977,40 +2982,40 @@ function Oo() {
|
|
|
2977
2982
|
color: "#fff",
|
|
2978
2983
|
border: "none",
|
|
2979
2984
|
borderRadius: 6,
|
|
2980
|
-
padding: e ===
|
|
2981
|
-
fontSize: e ===
|
|
2985
|
+
padding: e === u.SMALL ? "6px 16px" : "8px 24px",
|
|
2986
|
+
fontSize: e === u.SMALL ? 12 : 15,
|
|
2982
2987
|
cursor: "pointer",
|
|
2983
2988
|
fontWeight: 600
|
|
2984
2989
|
},
|
|
2985
2990
|
feeTip: {
|
|
2986
|
-
marginBottom: e ===
|
|
2987
|
-
padding: e ===
|
|
2991
|
+
marginBottom: e === u.SMALL ? 16 : 24,
|
|
2992
|
+
padding: e === u.SMALL ? "8px 10px" : "12px 16px",
|
|
2988
2993
|
background: "#1a1a1a",
|
|
2989
2994
|
border: "1px solid #333",
|
|
2990
2995
|
borderRadius: 6,
|
|
2991
|
-
fontSize: e ===
|
|
2996
|
+
fontSize: e === u.SMALL ? 12 : 14,
|
|
2992
2997
|
color: "#52c41a"
|
|
2993
2998
|
},
|
|
2994
2999
|
feeDetailBox: {
|
|
2995
|
-
marginTop: e ===
|
|
2996
|
-
marginBottom: e ===
|
|
2997
|
-
padding: e ===
|
|
3000
|
+
marginTop: e === u.SMALL ? 8 : 10,
|
|
3001
|
+
marginBottom: e === u.SMALL ? 16 : 20,
|
|
3002
|
+
padding: e === u.SMALL ? "8px 10px" : "12px 16px",
|
|
2998
3003
|
background: "#23262F",
|
|
2999
3004
|
border: "1px solid #374151",
|
|
3000
3005
|
borderRadius: 6
|
|
3001
3006
|
},
|
|
3002
3007
|
feeDetailTitle: {
|
|
3003
|
-
fontSize: e ===
|
|
3008
|
+
fontSize: e === u.SMALL ? 12 : 14,
|
|
3004
3009
|
color: "#fff",
|
|
3005
3010
|
fontWeight: 600,
|
|
3006
|
-
marginBottom: e ===
|
|
3011
|
+
marginBottom: e === u.SMALL ? 6 : 8
|
|
3007
3012
|
},
|
|
3008
3013
|
feeAmount: {
|
|
3009
3014
|
color: "#FF6B6B",
|
|
3010
3015
|
marginLeft: 4
|
|
3011
3016
|
},
|
|
3012
3017
|
feeDetailDesc: {
|
|
3013
|
-
fontSize: e ===
|
|
3018
|
+
fontSize: e === u.SMALL ? 12 : 13,
|
|
3014
3019
|
color: "#B5B8BE",
|
|
3015
3020
|
lineHeight: 1.5
|
|
3016
3021
|
}
|
|
@@ -3018,7 +3023,7 @@ function Oo() {
|
|
|
3018
3023
|
};
|
|
3019
3024
|
}
|
|
3020
3025
|
function Po() {
|
|
3021
|
-
const e = k("theme"), t = k("themeConfig"), n = e === N.WHITE, r =
|
|
3026
|
+
const e = k("theme"), t = k("themeConfig"), n = e === N.WHITE, r = Io(), o = n ? r.white : r.dark;
|
|
3022
3027
|
if (t) {
|
|
3023
3028
|
const s = n ? t.white : t.dark;
|
|
3024
3029
|
if (s?.color)
|
|
@@ -3035,147 +3040,147 @@ function Po() {
|
|
|
3035
3040
|
function Do(e) {
|
|
3036
3041
|
return e = e.replace(/[^\d.]/g, ""), e = e.replace(/\.(?=.*\.)/g, ""), e = e.replace(/^(\d+)(\.\d{0,2})?.*$/, "$1$2"), e = e.replace(/^0+(\d)/, "$1"), e.startsWith(".") && (e = "0" + e), e;
|
|
3037
3042
|
}
|
|
3038
|
-
function
|
|
3043
|
+
function No(e) {
|
|
3039
3044
|
if (!e) return "";
|
|
3040
3045
|
const t = parseFloat(e);
|
|
3041
3046
|
return isNaN(t) ? "" : t.toFixed(2);
|
|
3042
3047
|
}
|
|
3043
|
-
const
|
|
3044
|
-
const o = JSON.parse(sessionStorage.getItem("all_dicts") || "{}"), s = o?.currency || [], i = o?.channel?.filter((
|
|
3048
|
+
const zo = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
3049
|
+
const o = JSON.parse(sessionStorage.getItem("all_dicts") || "{}"), s = o?.currency || [], i = o?.channel?.filter((_) => _.payment_support) || [], [a, d] = F(""), [l, f] = F(""), [c, g] = F(!1), h = Po();
|
|
3045
3050
|
return le(() => {
|
|
3046
3051
|
e.currency && e.amount && e.rechargeChannel ? Ao({
|
|
3047
3052
|
channel: e.rechargeChannel,
|
|
3048
3053
|
amount: e.amount,
|
|
3049
3054
|
currency: e.currency
|
|
3050
|
-
}).then((
|
|
3051
|
-
|
|
3052
|
-
}).catch((
|
|
3053
|
-
console.error("计算支付金额失败:",
|
|
3054
|
-
}) :
|
|
3055
|
-
}, [e.currency, e.amount, e.rechargeChannel]), /* @__PURE__ */
|
|
3056
|
-
/* @__PURE__ */
|
|
3057
|
-
/* @__PURE__ */
|
|
3058
|
-
/* @__PURE__ */
|
|
3055
|
+
}).then((_) => {
|
|
3056
|
+
d(_.paymentAmount), f(_.fee), g(!0);
|
|
3057
|
+
}).catch((_) => {
|
|
3058
|
+
console.error("计算支付金额失败:", _), g(!1);
|
|
3059
|
+
}) : g(!1);
|
|
3060
|
+
}, [e.currency, e.amount, e.rechargeChannel]), /* @__PURE__ */ m(K, { children: [
|
|
3061
|
+
/* @__PURE__ */ m("div", { style: { marginBottom: 18 }, children: [
|
|
3062
|
+
/* @__PURE__ */ m("div", { style: h.label, children: [
|
|
3063
|
+
/* @__PURE__ */ m("span", { style: { color: "#F53F3F" }, children: "*" }),
|
|
3059
3064
|
" ",
|
|
3060
3065
|
L("充值币种")
|
|
3061
3066
|
] }),
|
|
3062
|
-
/* @__PURE__ */
|
|
3067
|
+
/* @__PURE__ */ m(
|
|
3063
3068
|
Ze,
|
|
3064
3069
|
{
|
|
3065
3070
|
value: e.currency,
|
|
3066
|
-
onChange: (
|
|
3067
|
-
t((
|
|
3068
|
-
...
|
|
3069
|
-
currency:
|
|
3071
|
+
onChange: (_) => {
|
|
3072
|
+
t((y) => ({
|
|
3073
|
+
...y,
|
|
3074
|
+
currency: _
|
|
3070
3075
|
}));
|
|
3071
3076
|
},
|
|
3072
|
-
options: s?.map((
|
|
3073
|
-
value:
|
|
3074
|
-
label:
|
|
3077
|
+
options: s?.map((_) => ({
|
|
3078
|
+
value: _.value,
|
|
3079
|
+
label: _.label
|
|
3075
3080
|
})),
|
|
3076
3081
|
placeholder: L("请选择充值币种")
|
|
3077
3082
|
}
|
|
3078
3083
|
)
|
|
3079
3084
|
] }),
|
|
3080
|
-
/* @__PURE__ */
|
|
3081
|
-
/* @__PURE__ */
|
|
3082
|
-
/* @__PURE__ */
|
|
3085
|
+
/* @__PURE__ */ m("div", { style: { marginBottom: 18 }, children: [
|
|
3086
|
+
/* @__PURE__ */ m("div", { style: h.label, children: [
|
|
3087
|
+
/* @__PURE__ */ m("span", { style: { color: "#F53F3F" }, children: "*" }),
|
|
3083
3088
|
" ",
|
|
3084
3089
|
L("充值金额")
|
|
3085
3090
|
] }),
|
|
3086
|
-
/* @__PURE__ */
|
|
3091
|
+
/* @__PURE__ */ m(
|
|
3087
3092
|
"input",
|
|
3088
3093
|
{
|
|
3089
3094
|
type: "text",
|
|
3090
3095
|
placeholder: L("请输入充值金额"),
|
|
3091
3096
|
value: e.amount,
|
|
3092
|
-
onInput: (
|
|
3093
|
-
let
|
|
3094
|
-
|
|
3095
|
-
let
|
|
3096
|
-
if (
|
|
3097
|
-
let
|
|
3098
|
-
if (!isNaN(
|
|
3099
|
-
const S =
|
|
3100
|
-
S !== void 0 && S.length > 0 && (
|
|
3097
|
+
onInput: (_) => {
|
|
3098
|
+
let y = _.target.value;
|
|
3099
|
+
y = Do(y);
|
|
3100
|
+
let b = "";
|
|
3101
|
+
if (y && !y.endsWith(".")) {
|
|
3102
|
+
let x = parseFloat(y);
|
|
3103
|
+
if (!isNaN(x) && (x < 1 && (x = 1), x > 999999.99 && (x = 999999.99), y = x.toString(), /\./.test(_.target.value))) {
|
|
3104
|
+
const S = _.target.value.split(".")[1];
|
|
3105
|
+
S !== void 0 && S.length > 0 && (y = x.toFixed(Math.min(S.length, 2)));
|
|
3101
3106
|
}
|
|
3102
3107
|
}
|
|
3103
|
-
t((
|
|
3104
|
-
...
|
|
3105
|
-
amount:
|
|
3106
|
-
amountError:
|
|
3108
|
+
t((x) => ({
|
|
3109
|
+
...x,
|
|
3110
|
+
amount: y,
|
|
3111
|
+
amountError: b
|
|
3107
3112
|
}));
|
|
3108
3113
|
},
|
|
3109
|
-
onBlur: (
|
|
3110
|
-
let
|
|
3111
|
-
|
|
3112
|
-
...
|
|
3113
|
-
amount:
|
|
3114
|
+
onBlur: (_) => {
|
|
3115
|
+
let y = _.target.value;
|
|
3116
|
+
y = No(y), t((b) => ({
|
|
3117
|
+
...b,
|
|
3118
|
+
amount: y,
|
|
3114
3119
|
amountError: ""
|
|
3115
3120
|
}));
|
|
3116
3121
|
},
|
|
3117
3122
|
style: {
|
|
3118
|
-
...
|
|
3119
|
-
...e.amountError ?
|
|
3123
|
+
...h.input,
|
|
3124
|
+
...e.amountError ? h.inputError : {}
|
|
3120
3125
|
}
|
|
3121
3126
|
}
|
|
3122
3127
|
),
|
|
3123
|
-
e.amountError && /* @__PURE__ */
|
|
3128
|
+
e.amountError && /* @__PURE__ */ m("div", { style: h.error, children: e.amountError })
|
|
3124
3129
|
] }),
|
|
3125
|
-
/* @__PURE__ */
|
|
3126
|
-
/* @__PURE__ */
|
|
3127
|
-
/* @__PURE__ */
|
|
3130
|
+
/* @__PURE__ */ m("div", { style: { marginBottom: 24 }, children: [
|
|
3131
|
+
/* @__PURE__ */ m("div", { style: h.label, children: [
|
|
3132
|
+
/* @__PURE__ */ m("span", { style: { color: "#F53F3F" }, children: "*" }),
|
|
3128
3133
|
" ",
|
|
3129
3134
|
L("支付平台")
|
|
3130
3135
|
] }),
|
|
3131
|
-
/* @__PURE__ */
|
|
3136
|
+
/* @__PURE__ */ m(
|
|
3132
3137
|
Ze,
|
|
3133
3138
|
{
|
|
3134
3139
|
value: e.rechargeChannel,
|
|
3135
|
-
onChange: (
|
|
3136
|
-
t((
|
|
3137
|
-
...
|
|
3138
|
-
rechargeChannel:
|
|
3139
|
-
rechargeChannelError:
|
|
3140
|
+
onChange: (_) => {
|
|
3141
|
+
t((y) => ({
|
|
3142
|
+
...y,
|
|
3143
|
+
rechargeChannel: _,
|
|
3144
|
+
rechargeChannelError: _ ? "" : y.rechargeChannelError
|
|
3140
3145
|
}));
|
|
3141
3146
|
},
|
|
3142
|
-
options: i?.map((
|
|
3143
|
-
value:
|
|
3144
|
-
label:
|
|
3147
|
+
options: i?.map((_) => ({
|
|
3148
|
+
value: _.value,
|
|
3149
|
+
label: _.label
|
|
3145
3150
|
})),
|
|
3146
3151
|
placeholder: L("请选择支付平台")
|
|
3147
3152
|
}
|
|
3148
3153
|
),
|
|
3149
|
-
e.rechargeChannelError && /* @__PURE__ */
|
|
3154
|
+
e.rechargeChannelError && /* @__PURE__ */ m("div", { style: h.error, children: e.rechargeChannelError })
|
|
3150
3155
|
] }),
|
|
3151
|
-
c && a && /* @__PURE__ */
|
|
3156
|
+
c && a && /* @__PURE__ */ m("div", { style: h.feeTip, children: [
|
|
3152
3157
|
i.find(
|
|
3153
|
-
(
|
|
3158
|
+
(_) => _.value === e.rechargeChannel
|
|
3154
3159
|
)?.label || e.rechargeChannel,
|
|
3155
3160
|
L("需要收取手续费,实际支付金额约为:"),
|
|
3156
3161
|
"$",
|
|
3157
3162
|
a
|
|
3158
3163
|
] }),
|
|
3159
|
-
c && a && /* @__PURE__ */
|
|
3160
|
-
/* @__PURE__ */
|
|
3164
|
+
c && a && /* @__PURE__ */ m("div", { style: h.feeDetailBox, children: [
|
|
3165
|
+
/* @__PURE__ */ m("div", { style: h.feeDetailTitle, children: [
|
|
3161
3166
|
L("手续费约为:"),
|
|
3162
|
-
/* @__PURE__ */
|
|
3167
|
+
/* @__PURE__ */ m("span", { style: h.feeAmount, children: [
|
|
3163
3168
|
"$",
|
|
3164
3169
|
l
|
|
3165
3170
|
] })
|
|
3166
3171
|
] }),
|
|
3167
|
-
/* @__PURE__ */
|
|
3172
|
+
/* @__PURE__ */ m("div", { style: h.feeDetailDesc, children: L(
|
|
3168
3173
|
"额外费用说明:您的地区、币种、支付卡类型等因素可能会导致手续费的变动,最终手续费以官方为准。"
|
|
3169
3174
|
) })
|
|
3170
3175
|
] }),
|
|
3171
|
-
e.error && /* @__PURE__ */
|
|
3172
|
-
/* @__PURE__ */
|
|
3173
|
-
/* @__PURE__ */
|
|
3174
|
-
/* @__PURE__ */
|
|
3176
|
+
e.error && /* @__PURE__ */ m("div", { style: { color: "#ff4d4f", marginBottom: 12 }, children: e.error }),
|
|
3177
|
+
/* @__PURE__ */ m("div", { style: { display: "flex", justifyContent: "flex-end", gap: 12 }, children: [
|
|
3178
|
+
/* @__PURE__ */ m("button", { type: "button", onClick: n, style: h.buttonCancel, children: L("取消") }),
|
|
3179
|
+
/* @__PURE__ */ m("button", { type: "submit", disabled: r, style: h.buttonSubmit, children: L(r ? "提交中..." : "去支付") })
|
|
3175
3180
|
] })
|
|
3176
3181
|
] });
|
|
3177
3182
|
};
|
|
3178
|
-
function
|
|
3183
|
+
function Uo() {
|
|
3179
3184
|
const e = k("size");
|
|
3180
3185
|
return {
|
|
3181
3186
|
white: {
|
|
@@ -3183,25 +3188,25 @@ function zo() {
|
|
|
3183
3188
|
border: "1px dashed #E5E6EB",
|
|
3184
3189
|
borderRadius: 8,
|
|
3185
3190
|
background: "#FCFCFD",
|
|
3186
|
-
padding: e ===
|
|
3191
|
+
padding: e === u.SMALL ? 16 : 24,
|
|
3187
3192
|
textAlign: "center",
|
|
3188
3193
|
cursor: "pointer",
|
|
3189
|
-
minHeight: e ===
|
|
3194
|
+
minHeight: e === u.SMALL ? 80 : 120,
|
|
3190
3195
|
display: "flex",
|
|
3191
3196
|
flexDirection: "column",
|
|
3192
3197
|
alignItems: "center",
|
|
3193
3198
|
justifyContent: "center",
|
|
3194
3199
|
color: "#999",
|
|
3195
|
-
fontSize: e ===
|
|
3200
|
+
fontSize: e === u.SMALL ? 12 : 15
|
|
3196
3201
|
},
|
|
3197
3202
|
fileItem: {
|
|
3198
3203
|
display: "flex",
|
|
3199
3204
|
alignItems: "center",
|
|
3200
3205
|
background: "#F7F8FA",
|
|
3201
3206
|
borderRadius: 8,
|
|
3202
|
-
padding: e ===
|
|
3207
|
+
padding: e === u.SMALL ? "8px 10px" : "12px 16px",
|
|
3203
3208
|
marginBottom: 8,
|
|
3204
|
-
fontSize: e ===
|
|
3209
|
+
fontSize: e === u.SMALL ? 12 : 15,
|
|
3205
3210
|
color: "#222",
|
|
3206
3211
|
justifyContent: "space-between"
|
|
3207
3212
|
},
|
|
@@ -3210,9 +3215,9 @@ function zo() {
|
|
|
3210
3215
|
color: "#fff",
|
|
3211
3216
|
border: "none",
|
|
3212
3217
|
borderRadius: 6,
|
|
3213
|
-
padding: e ===
|
|
3214
|
-
fontSize: e ===
|
|
3215
|
-
marginLeft: e ===
|
|
3218
|
+
padding: e === u.SMALL ? "6px 10px" : "4px 14px",
|
|
3219
|
+
fontSize: e === u.SMALL ? 12 : 15,
|
|
3220
|
+
marginLeft: e === u.SMALL ? 8 : 16,
|
|
3216
3221
|
cursor: "pointer"
|
|
3217
3222
|
}
|
|
3218
3223
|
},
|
|
@@ -3221,25 +3226,25 @@ function zo() {
|
|
|
3221
3226
|
border: "1.5px dashed #444C5C",
|
|
3222
3227
|
borderRadius: 8,
|
|
3223
3228
|
background: "#181A20",
|
|
3224
|
-
padding: e ===
|
|
3229
|
+
padding: e === u.SMALL ? 16 : 24,
|
|
3225
3230
|
textAlign: "center",
|
|
3226
3231
|
cursor: "pointer",
|
|
3227
|
-
minHeight: e ===
|
|
3232
|
+
minHeight: e === u.SMALL ? 80 : 120,
|
|
3228
3233
|
display: "flex",
|
|
3229
3234
|
flexDirection: "column",
|
|
3230
3235
|
alignItems: "center",
|
|
3231
3236
|
justifyContent: "center",
|
|
3232
3237
|
color: "#999",
|
|
3233
|
-
fontSize: e ===
|
|
3238
|
+
fontSize: e === u.SMALL ? 12 : 15
|
|
3234
3239
|
},
|
|
3235
3240
|
fileItem: {
|
|
3236
3241
|
display: "flex",
|
|
3237
3242
|
alignItems: "center",
|
|
3238
3243
|
background: "#23262F",
|
|
3239
3244
|
borderRadius: 8,
|
|
3240
|
-
padding: e ===
|
|
3245
|
+
padding: e === u.SMALL ? "8px 10px" : "12px 16px",
|
|
3241
3246
|
marginBottom: 8,
|
|
3242
|
-
fontSize: e ===
|
|
3247
|
+
fontSize: e === u.SMALL ? 12 : 15,
|
|
3243
3248
|
color: "#fff",
|
|
3244
3249
|
justifyContent: "space-between"
|
|
3245
3250
|
},
|
|
@@ -3248,19 +3253,19 @@ function zo() {
|
|
|
3248
3253
|
color: "#fff",
|
|
3249
3254
|
border: "none",
|
|
3250
3255
|
borderRadius: 6,
|
|
3251
|
-
padding: e ===
|
|
3252
|
-
fontSize: e ===
|
|
3253
|
-
marginLeft: e ===
|
|
3256
|
+
padding: e === u.SMALL ? "6px 10px" : "4px 14px",
|
|
3257
|
+
fontSize: e === u.SMALL ? 12 : 15,
|
|
3258
|
+
marginLeft: e === u.SMALL ? 8 : 16,
|
|
3254
3259
|
cursor: "pointer"
|
|
3255
3260
|
}
|
|
3256
3261
|
}
|
|
3257
3262
|
};
|
|
3258
3263
|
}
|
|
3259
|
-
function
|
|
3260
|
-
const t = k("theme") === N.WHITE, n =
|
|
3264
|
+
function Ho() {
|
|
3265
|
+
const t = k("theme") === N.WHITE, n = Uo();
|
|
3261
3266
|
return t ? n.white : n.dark;
|
|
3262
3267
|
}
|
|
3263
|
-
const
|
|
3268
|
+
const jo = ({
|
|
3264
3269
|
value: e = [],
|
|
3265
3270
|
onChange: t,
|
|
3266
3271
|
maxCount: n = 10,
|
|
@@ -3268,72 +3273,72 @@ const Ho = ({
|
|
|
3268
3273
|
multiple: o = !0,
|
|
3269
3274
|
disabled: s = !1
|
|
3270
3275
|
}) => {
|
|
3271
|
-
const i = k("size"), a = Ee(null), [
|
|
3272
|
-
const
|
|
3276
|
+
const i = k("size"), a = Ee(null), [d, l] = F(!1), [f, c] = F(0), g = Ho(), h = async (y) => {
|
|
3277
|
+
const b = Array.from(y.target.files).slice(
|
|
3273
3278
|
0,
|
|
3274
3279
|
n
|
|
3275
3280
|
);
|
|
3276
|
-
if (!
|
|
3281
|
+
if (!b.length) return;
|
|
3277
3282
|
l(!0);
|
|
3278
|
-
const
|
|
3279
|
-
for (let S = 0; S <
|
|
3283
|
+
const x = [];
|
|
3284
|
+
for (let S = 0; S < b.length; S++) {
|
|
3280
3285
|
c(0);
|
|
3281
3286
|
const v = new FormData();
|
|
3282
|
-
v.append("file",
|
|
3287
|
+
v.append("file", b[S]);
|
|
3283
3288
|
try {
|
|
3284
3289
|
const w = await So(
|
|
3285
3290
|
v,
|
|
3286
3291
|
(E) => c(E)
|
|
3287
3292
|
);
|
|
3288
|
-
w &&
|
|
3293
|
+
w && x.push(w);
|
|
3289
3294
|
} catch {
|
|
3290
3295
|
}
|
|
3291
3296
|
}
|
|
3292
|
-
l(!1), c(0), t?.([...e, ...
|
|
3293
|
-
},
|
|
3294
|
-
const
|
|
3295
|
-
t?.(
|
|
3297
|
+
l(!1), c(0), t?.([...e, ...x]), a.current && (a.current.value = "");
|
|
3298
|
+
}, _ = (y) => {
|
|
3299
|
+
const b = e.filter((x, S) => S !== y);
|
|
3300
|
+
t?.(b);
|
|
3296
3301
|
};
|
|
3297
|
-
return /* @__PURE__ */
|
|
3298
|
-
/* @__PURE__ */
|
|
3302
|
+
return /* @__PURE__ */ m("div", { children: [
|
|
3303
|
+
/* @__PURE__ */ m(
|
|
3299
3304
|
"div",
|
|
3300
3305
|
{
|
|
3301
3306
|
style: {
|
|
3302
|
-
...
|
|
3303
|
-
cursor: s ? "not-allowed" :
|
|
3307
|
+
...g.container,
|
|
3308
|
+
cursor: s ? "not-allowed" : g.container.cursor,
|
|
3304
3309
|
opacity: s ? 0.6 : 1
|
|
3305
3310
|
},
|
|
3306
3311
|
onClick: () => !s && a.current?.click(),
|
|
3307
3312
|
children: [
|
|
3308
|
-
/* @__PURE__ */
|
|
3313
|
+
/* @__PURE__ */ m(
|
|
3309
3314
|
"div",
|
|
3310
3315
|
{
|
|
3311
3316
|
style: {
|
|
3312
|
-
fontSize: i ===
|
|
3313
|
-
marginBottom: i ===
|
|
3317
|
+
fontSize: i === u.SMALL ? 32 : 48,
|
|
3318
|
+
marginBottom: i === u.SMALL ? 8 : 12
|
|
3314
3319
|
},
|
|
3315
3320
|
children: "📁"
|
|
3316
3321
|
}
|
|
3317
3322
|
),
|
|
3318
|
-
/* @__PURE__ */
|
|
3323
|
+
/* @__PURE__ */ m(
|
|
3319
3324
|
"div",
|
|
3320
3325
|
{
|
|
3321
3326
|
style: {
|
|
3322
3327
|
color: "#222",
|
|
3323
|
-
fontSize: i ===
|
|
3324
|
-
marginBottom: i ===
|
|
3328
|
+
fontSize: i === u.SMALL ? 12 : 15,
|
|
3329
|
+
marginBottom: i === u.SMALL ? 4 : 8
|
|
3325
3330
|
},
|
|
3326
3331
|
children: L("点击或拖拽文件到此处上传")
|
|
3327
3332
|
}
|
|
3328
3333
|
),
|
|
3329
|
-
/* @__PURE__ */
|
|
3334
|
+
/* @__PURE__ */ m("div", { style: { color: "#999", fontSize: i === u.SMALL ? 12 : 13 }, children: [
|
|
3330
3335
|
L("支持 JPG、PNG、PDF 格式,单个文件不超过 20MB,最多上传"),
|
|
3331
3336
|
" ",
|
|
3332
3337
|
n,
|
|
3333
3338
|
" ",
|
|
3334
3339
|
L("个文件")
|
|
3335
3340
|
] }),
|
|
3336
|
-
/* @__PURE__ */
|
|
3341
|
+
/* @__PURE__ */ m(
|
|
3337
3342
|
"input",
|
|
3338
3343
|
{
|
|
3339
3344
|
ref: a,
|
|
@@ -3341,15 +3346,15 @@ const Ho = ({
|
|
|
3341
3346
|
multiple: o,
|
|
3342
3347
|
accept: r,
|
|
3343
3348
|
style: { display: "none" },
|
|
3344
|
-
onChange:
|
|
3349
|
+
onChange: h,
|
|
3345
3350
|
disabled: s
|
|
3346
3351
|
}
|
|
3347
3352
|
),
|
|
3348
|
-
|
|
3353
|
+
d && /* @__PURE__ */ m(
|
|
3349
3354
|
"div",
|
|
3350
3355
|
{
|
|
3351
3356
|
style: {
|
|
3352
|
-
marginTop: i ===
|
|
3357
|
+
marginTop: i === u.SMALL ? 8 : 12,
|
|
3353
3358
|
color: "#1677ff"
|
|
3354
3359
|
},
|
|
3355
3360
|
children: [
|
|
@@ -3363,43 +3368,43 @@ const Ho = ({
|
|
|
3363
3368
|
]
|
|
3364
3369
|
}
|
|
3365
3370
|
),
|
|
3366
|
-
e && e.length > 0 && /* @__PURE__ */
|
|
3367
|
-
/* @__PURE__ */
|
|
3368
|
-
/* @__PURE__ */
|
|
3371
|
+
e && e.length > 0 && /* @__PURE__ */ m("div", { style: { marginTop: i === u.SMALL ? 8 : 12 }, children: e.map((y, b) => /* @__PURE__ */ m("div", { style: g.fileItem, children: [
|
|
3372
|
+
/* @__PURE__ */ m("div", { style: { display: "flex", alignItems: "center", flex: 1 }, children: /* @__PURE__ */ m("span", { style: { fontWeight: 500, wordBreak: "break-all" }, children: y.split("/").pop() }) }),
|
|
3373
|
+
/* @__PURE__ */ m(
|
|
3369
3374
|
"button",
|
|
3370
3375
|
{
|
|
3371
3376
|
type: "button",
|
|
3372
|
-
onClick: (
|
|
3373
|
-
|
|
3377
|
+
onClick: (x) => {
|
|
3378
|
+
x.stopPropagation(), _(b);
|
|
3374
3379
|
},
|
|
3375
|
-
style:
|
|
3380
|
+
style: g.removeBtn,
|
|
3376
3381
|
disabled: s,
|
|
3377
3382
|
children: L("移除")
|
|
3378
3383
|
}
|
|
3379
3384
|
)
|
|
3380
|
-
] },
|
|
3385
|
+
] }, y)) })
|
|
3381
3386
|
] });
|
|
3382
3387
|
};
|
|
3383
|
-
function
|
|
3388
|
+
function $o() {
|
|
3384
3389
|
const e = k("size");
|
|
3385
3390
|
return {
|
|
3386
3391
|
white: {
|
|
3387
3392
|
label: {
|
|
3388
|
-
marginBottom: e ===
|
|
3389
|
-
fontSize: e ===
|
|
3393
|
+
marginBottom: e === u.SMALL ? 6 : 8,
|
|
3394
|
+
fontSize: e === u.SMALL ? 12 : 14,
|
|
3390
3395
|
color: "#222",
|
|
3391
3396
|
textAlign: "left",
|
|
3392
3397
|
display: "block"
|
|
3393
3398
|
},
|
|
3394
3399
|
input: {
|
|
3395
3400
|
width: "100%",
|
|
3396
|
-
padding: e ===
|
|
3401
|
+
padding: e === u.SMALL ? "8px 10px" : "10px 12px",
|
|
3397
3402
|
borderRadius: 6,
|
|
3398
3403
|
boxSizing: "border-box",
|
|
3399
3404
|
border: "1px solid #E5E6EB",
|
|
3400
3405
|
background: "#fff",
|
|
3401
3406
|
color: "#222",
|
|
3402
|
-
fontSize: e ===
|
|
3407
|
+
fontSize: e === u.SMALL ? 12 : 15,
|
|
3403
3408
|
outline: "none",
|
|
3404
3409
|
marginBottom: 0
|
|
3405
3410
|
},
|
|
@@ -3408,12 +3413,12 @@ function jo() {
|
|
|
3408
3413
|
},
|
|
3409
3414
|
select: {
|
|
3410
3415
|
width: "100%",
|
|
3411
|
-
padding: e ===
|
|
3416
|
+
padding: e === u.SMALL ? "8px 10px" : "10px 12px",
|
|
3412
3417
|
borderRadius: 6,
|
|
3413
3418
|
border: "1px solid #E5E6EB",
|
|
3414
3419
|
background: "#fff",
|
|
3415
3420
|
color: "#222",
|
|
3416
|
-
fontSize: e ===
|
|
3421
|
+
fontSize: e === u.SMALL ? 12 : 15,
|
|
3417
3422
|
outline: "none"
|
|
3418
3423
|
},
|
|
3419
3424
|
selectError: {
|
|
@@ -3423,16 +3428,16 @@ function jo() {
|
|
|
3423
3428
|
border: "1px dashed #E5E6EB",
|
|
3424
3429
|
borderRadius: 8,
|
|
3425
3430
|
background: "#FCFCFD",
|
|
3426
|
-
padding: e ===
|
|
3431
|
+
padding: e === u.SMALL ? 12 : 24,
|
|
3427
3432
|
textAlign: "center",
|
|
3428
3433
|
cursor: "pointer",
|
|
3429
|
-
minHeight: e ===
|
|
3434
|
+
minHeight: e === u.SMALL ? 100 : 120,
|
|
3430
3435
|
display: "flex",
|
|
3431
3436
|
flexDirection: "column",
|
|
3432
3437
|
alignItems: "center",
|
|
3433
3438
|
justifyContent: "center",
|
|
3434
3439
|
color: "#999",
|
|
3435
|
-
fontSize: e ===
|
|
3440
|
+
fontSize: e === u.SMALL ? 12 : 15
|
|
3436
3441
|
},
|
|
3437
3442
|
uploadError: {
|
|
3438
3443
|
border: "1px dashed #ff4d4f"
|
|
@@ -3442,9 +3447,9 @@ function jo() {
|
|
|
3442
3447
|
alignItems: "center",
|
|
3443
3448
|
background: "#F7F8FA",
|
|
3444
3449
|
borderRadius: 8,
|
|
3445
|
-
padding: e ===
|
|
3446
|
-
marginBottom: e ===
|
|
3447
|
-
fontSize: e ===
|
|
3450
|
+
padding: e === u.SMALL ? "8px 10px" : "12px 16px",
|
|
3451
|
+
marginBottom: e === u.SMALL ? 6 : 8,
|
|
3452
|
+
fontSize: e === u.SMALL ? 12 : 15,
|
|
3448
3453
|
color: "#222",
|
|
3449
3454
|
justifyContent: "space-between"
|
|
3450
3455
|
},
|
|
@@ -3453,7 +3458,7 @@ function jo() {
|
|
|
3453
3458
|
color: "#222",
|
|
3454
3459
|
border: "1px solid #E5E6EB",
|
|
3455
3460
|
borderRadius: 6,
|
|
3456
|
-
padding: e ===
|
|
3461
|
+
padding: e === u.SMALL ? "6px 18px" : "8px 24px",
|
|
3457
3462
|
cursor: "pointer"
|
|
3458
3463
|
},
|
|
3459
3464
|
buttonSubmit: {
|
|
@@ -3461,7 +3466,7 @@ function jo() {
|
|
|
3461
3466
|
color: "#fff",
|
|
3462
3467
|
border: "none",
|
|
3463
3468
|
borderRadius: 6,
|
|
3464
|
-
padding: e ===
|
|
3469
|
+
padding: e === u.SMALL ? "6px 18px" : "8px 24px",
|
|
3465
3470
|
cursor: "pointer",
|
|
3466
3471
|
fontWeight: 600
|
|
3467
3472
|
},
|
|
@@ -3470,35 +3475,48 @@ function jo() {
|
|
|
3470
3475
|
color: "#fff",
|
|
3471
3476
|
border: "none",
|
|
3472
3477
|
borderRadius: 6,
|
|
3473
|
-
padding: e ===
|
|
3474
|
-
fontSize: e ===
|
|
3475
|
-
marginLeft: e ===
|
|
3478
|
+
padding: e === u.SMALL ? "6px 18px" : "4px 14px",
|
|
3479
|
+
fontSize: e === u.SMALL ? 12 : 15,
|
|
3480
|
+
marginLeft: e === u.SMALL ? 8 : 16,
|
|
3476
3481
|
cursor: "pointer"
|
|
3477
3482
|
},
|
|
3478
3483
|
error: {
|
|
3479
3484
|
color: "#ff4d4f",
|
|
3480
|
-
fontSize: e ===
|
|
3481
|
-
marginTop: e ===
|
|
3485
|
+
fontSize: e === u.SMALL ? 12 : 13,
|
|
3486
|
+
marginTop: e === u.SMALL ? 2 : 4,
|
|
3482
3487
|
textAlign: "left"
|
|
3488
|
+
},
|
|
3489
|
+
channelInfoBox: {
|
|
3490
|
+
marginTop: e === u.SMALL ? 8 : 10,
|
|
3491
|
+
padding: e === u.SMALL ? "8px 10px" : "10px 12px",
|
|
3492
|
+
borderRadius: 6,
|
|
3493
|
+
background: "#F7F8FA",
|
|
3494
|
+
border: "1px solid #E5E6EB"
|
|
3495
|
+
},
|
|
3496
|
+
channelInfoItem: {
|
|
3497
|
+
color: "#222",
|
|
3498
|
+
fontSize: e === u.SMALL ? 12 : 13,
|
|
3499
|
+
lineHeight: 1.6,
|
|
3500
|
+
wordBreak: "break-all"
|
|
3483
3501
|
}
|
|
3484
3502
|
},
|
|
3485
3503
|
dark: {
|
|
3486
3504
|
label: {
|
|
3487
|
-
marginBottom: e ===
|
|
3488
|
-
fontSize: e ===
|
|
3505
|
+
marginBottom: e === u.SMALL ? 4 : 8,
|
|
3506
|
+
fontSize: e === u.SMALL ? 12 : 14,
|
|
3489
3507
|
color: "#fff",
|
|
3490
3508
|
textAlign: "left",
|
|
3491
3509
|
display: "block"
|
|
3492
3510
|
},
|
|
3493
3511
|
input: {
|
|
3494
3512
|
width: "100%",
|
|
3495
|
-
padding: e ===
|
|
3513
|
+
padding: e === u.SMALL ? "8px 10px" : "10px 12px",
|
|
3496
3514
|
borderRadius: 6,
|
|
3497
3515
|
boxSizing: "border-box",
|
|
3498
3516
|
border: "1px solid #374151",
|
|
3499
3517
|
background: "#23262F",
|
|
3500
3518
|
color: "#fff",
|
|
3501
|
-
fontSize: e ===
|
|
3519
|
+
fontSize: e === u.SMALL ? 12 : 15,
|
|
3502
3520
|
outline: "none",
|
|
3503
3521
|
marginBottom: 0
|
|
3504
3522
|
},
|
|
@@ -3507,12 +3525,12 @@ function jo() {
|
|
|
3507
3525
|
},
|
|
3508
3526
|
select: {
|
|
3509
3527
|
width: "100%",
|
|
3510
|
-
padding: e ===
|
|
3528
|
+
padding: e === u.SMALL ? "8px 10px" : "10px 12px",
|
|
3511
3529
|
borderRadius: 6,
|
|
3512
3530
|
border: "1px solid #374151",
|
|
3513
3531
|
background: "#23262F",
|
|
3514
3532
|
color: "#fff",
|
|
3515
|
-
fontSize: e ===
|
|
3533
|
+
fontSize: e === u.SMALL ? 12 : 15,
|
|
3516
3534
|
outline: "none"
|
|
3517
3535
|
},
|
|
3518
3536
|
selectError: {
|
|
@@ -3522,16 +3540,16 @@ function jo() {
|
|
|
3522
3540
|
border: "1px dashed #374151",
|
|
3523
3541
|
borderRadius: 8,
|
|
3524
3542
|
background: "#181A20",
|
|
3525
|
-
padding: e ===
|
|
3543
|
+
padding: e === u.SMALL ? 12 : 24,
|
|
3526
3544
|
textAlign: "center",
|
|
3527
3545
|
cursor: "pointer",
|
|
3528
|
-
minHeight: e ===
|
|
3546
|
+
minHeight: e === u.SMALL ? 100 : 120,
|
|
3529
3547
|
display: "flex",
|
|
3530
3548
|
flexDirection: "column",
|
|
3531
3549
|
alignItems: "center",
|
|
3532
3550
|
justifyContent: "center",
|
|
3533
3551
|
color: "#999",
|
|
3534
|
-
fontSize: e ===
|
|
3552
|
+
fontSize: e === u.SMALL ? 12 : 14
|
|
3535
3553
|
},
|
|
3536
3554
|
uploadError: {
|
|
3537
3555
|
border: "1px dashed #ff4d4f"
|
|
@@ -3541,9 +3559,9 @@ function jo() {
|
|
|
3541
3559
|
alignItems: "center",
|
|
3542
3560
|
background: "#23262F",
|
|
3543
3561
|
borderRadius: 8,
|
|
3544
|
-
padding: e ===
|
|
3545
|
-
marginBottom: e ===
|
|
3546
|
-
fontSize: e ===
|
|
3562
|
+
padding: e === u.SMALL ? "8px 10px" : "12px 16px",
|
|
3563
|
+
marginBottom: e === u.SMALL ? 6 : 8,
|
|
3564
|
+
fontSize: e === u.SMALL ? 12 : 15,
|
|
3547
3565
|
color: "#fff",
|
|
3548
3566
|
justifyContent: "space-between"
|
|
3549
3567
|
},
|
|
@@ -3552,8 +3570,8 @@ function jo() {
|
|
|
3552
3570
|
color: "#fff",
|
|
3553
3571
|
border: "none",
|
|
3554
3572
|
borderRadius: 6,
|
|
3555
|
-
padding: e ===
|
|
3556
|
-
fontSize: e ===
|
|
3573
|
+
padding: e === u.SMALL ? "6px 18px" : "8px 24px",
|
|
3574
|
+
fontSize: e === u.SMALL ? 12 : 15,
|
|
3557
3575
|
cursor: "pointer"
|
|
3558
3576
|
},
|
|
3559
3577
|
buttonSubmit: {
|
|
@@ -3561,8 +3579,8 @@ function jo() {
|
|
|
3561
3579
|
color: "#fff",
|
|
3562
3580
|
border: "none",
|
|
3563
3581
|
borderRadius: 6,
|
|
3564
|
-
padding: e ===
|
|
3565
|
-
fontSize: e ===
|
|
3582
|
+
padding: e === u.SMALL ? "6px 18px" : "8px 24px",
|
|
3583
|
+
fontSize: e === u.SMALL ? 12 : 14,
|
|
3566
3584
|
cursor: "pointer",
|
|
3567
3585
|
fontWeight: 600
|
|
3568
3586
|
},
|
|
@@ -3571,22 +3589,35 @@ function jo() {
|
|
|
3571
3589
|
color: "#fff",
|
|
3572
3590
|
border: "none",
|
|
3573
3591
|
borderRadius: 6,
|
|
3574
|
-
padding: e ===
|
|
3575
|
-
fontSize: e ===
|
|
3576
|
-
marginLeft: e ===
|
|
3592
|
+
padding: e === u.SMALL ? "6px 18px" : "4px 14px",
|
|
3593
|
+
fontSize: e === u.SMALL ? 12 : 15,
|
|
3594
|
+
marginLeft: e === u.SMALL ? 8 : 16,
|
|
3577
3595
|
cursor: "pointer"
|
|
3578
3596
|
},
|
|
3579
3597
|
error: {
|
|
3580
3598
|
color: "#ff4d4f",
|
|
3581
|
-
fontSize: e ===
|
|
3582
|
-
marginTop: e ===
|
|
3599
|
+
fontSize: e === u.SMALL ? 12 : 13,
|
|
3600
|
+
marginTop: e === u.SMALL ? 2 : 4,
|
|
3583
3601
|
textAlign: "left"
|
|
3602
|
+
},
|
|
3603
|
+
channelInfoBox: {
|
|
3604
|
+
marginTop: e === u.SMALL ? 8 : 10,
|
|
3605
|
+
padding: e === u.SMALL ? "8px 10px" : "10px 12px",
|
|
3606
|
+
borderRadius: 6,
|
|
3607
|
+
background: "#23262F",
|
|
3608
|
+
border: "1px solid #374151"
|
|
3609
|
+
},
|
|
3610
|
+
channelInfoItem: {
|
|
3611
|
+
color: "#fff",
|
|
3612
|
+
fontSize: e === u.SMALL ? 12 : 13,
|
|
3613
|
+
lineHeight: 1.6,
|
|
3614
|
+
wordBreak: "break-all"
|
|
3584
3615
|
}
|
|
3585
3616
|
}
|
|
3586
3617
|
};
|
|
3587
3618
|
}
|
|
3588
|
-
function
|
|
3589
|
-
const e = k("theme"), t = k("themeConfig"), n = e === N.WHITE, r =
|
|
3619
|
+
function Wo() {
|
|
3620
|
+
const e = k("theme"), t = k("themeConfig"), n = e === N.WHITE, r = $o(), o = n ? r.white : r.dark;
|
|
3590
3621
|
if (console.log(t, "themeConfig"), t) {
|
|
3591
3622
|
const s = n ? t.white : t.dark;
|
|
3592
3623
|
if (s?.color)
|
|
@@ -3600,80 +3631,89 @@ function $o() {
|
|
|
3600
3631
|
}
|
|
3601
3632
|
return o;
|
|
3602
3633
|
}
|
|
3603
|
-
const
|
|
3634
|
+
const qo = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
3604
3635
|
const o = JSON.parse(sessionStorage.getItem("all_dicts") || "{}");
|
|
3605
3636
|
console.log(o, "allDicts");
|
|
3606
|
-
const s = o?.channel || [], i =
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
...f,
|
|
3637
|
+
const s = o?.channel || [], i = Wo(), [a, d] = F([]), l = async (c) => {
|
|
3638
|
+
c.preventDefault();
|
|
3639
|
+
let g = !0;
|
|
3640
|
+
t((h) => ({
|
|
3641
|
+
...h,
|
|
3612
3642
|
platformError: "",
|
|
3613
3643
|
transactionIdError: "",
|
|
3614
3644
|
filesError: ""
|
|
3615
|
-
})), e.platform || (t((
|
|
3616
|
-
...
|
|
3645
|
+
})), e.platform || (t((h) => ({
|
|
3646
|
+
...h,
|
|
3617
3647
|
platformError: L("请选择支付平台")
|
|
3618
|
-
})),
|
|
3619
|
-
...
|
|
3648
|
+
})), g = !1), e.transactionId.trim() || (t((h) => ({
|
|
3649
|
+
...h,
|
|
3620
3650
|
transactionIdError: L("请输入转账交易ID")
|
|
3621
|
-
})),
|
|
3622
|
-
...
|
|
3651
|
+
})), g = !1), (!e.files || e.files.length === 0) && (t((h) => ({
|
|
3652
|
+
...h,
|
|
3623
3653
|
filesError: L("请上传转账凭证")
|
|
3624
|
-
})),
|
|
3654
|
+
})), g = !1), g && (await Lo({
|
|
3625
3655
|
transferChannel: e.platform,
|
|
3626
3656
|
transferNo: e.transactionId,
|
|
3627
3657
|
voucherUrls: e.files
|
|
3628
3658
|
}), n(), Xe.success(L("提交成功")));
|
|
3629
|
-
}
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3659
|
+
};
|
|
3660
|
+
function f(c) {
|
|
3661
|
+
t((g) => ({
|
|
3662
|
+
...g,
|
|
3663
|
+
platform: c,
|
|
3664
|
+
platformError: c ? "" : g.platformError
|
|
3665
|
+
})), console.log(c, "value"), Eo({
|
|
3666
|
+
code: c,
|
|
3667
|
+
bizType: "fulfill"
|
|
3668
|
+
}).then((g) => {
|
|
3669
|
+
console.log(g, "res"), d(Array.isArray(g) ? g : g ? [String(g)] : []);
|
|
3670
|
+
});
|
|
3671
|
+
}
|
|
3672
|
+
return /* @__PURE__ */ m("form", { onSubmit: l, children: [
|
|
3673
|
+
/* @__PURE__ */ m("div", { style: { marginBottom: 18 }, children: [
|
|
3674
|
+
/* @__PURE__ */ m("div", { style: i.label, children: [
|
|
3675
|
+
/* @__PURE__ */ m("span", { style: { color: "#F53F3F" }, children: "*" }),
|
|
3633
3676
|
" ",
|
|
3634
3677
|
L("第三方支付平台")
|
|
3635
3678
|
] }),
|
|
3636
|
-
/* @__PURE__ */
|
|
3679
|
+
/* @__PURE__ */ m(
|
|
3637
3680
|
Ze,
|
|
3638
3681
|
{
|
|
3639
3682
|
value: e.platform,
|
|
3640
|
-
onChange: (
|
|
3641
|
-
|
|
3642
|
-
...l,
|
|
3643
|
-
platform: u,
|
|
3644
|
-
platformError: u ? "" : l.platformError
|
|
3645
|
-
}));
|
|
3683
|
+
onChange: (c) => {
|
|
3684
|
+
f(c);
|
|
3646
3685
|
},
|
|
3647
3686
|
options: [
|
|
3648
|
-
...s?.map((
|
|
3649
|
-
value:
|
|
3650
|
-
label:
|
|
3687
|
+
...s?.map((c) => ({
|
|
3688
|
+
value: c.value,
|
|
3689
|
+
label: c.label
|
|
3651
3690
|
}))
|
|
3652
3691
|
],
|
|
3653
3692
|
placeholder: L("请选择支付平台")
|
|
3654
3693
|
}
|
|
3655
3694
|
),
|
|
3656
|
-
e.platformError && /* @__PURE__ */
|
|
3695
|
+
e.platformError && /* @__PURE__ */ m("div", { style: i.error, children: e.platformError }),
|
|
3696
|
+
a.length > 0 && /* @__PURE__ */ m("div", { style: i.channelInfoBox, children: a.map((c, g) => /* @__PURE__ */ m("div", { style: i.channelInfoItem, children: c }, g)) })
|
|
3657
3697
|
] }),
|
|
3658
|
-
/* @__PURE__ */
|
|
3659
|
-
/* @__PURE__ */
|
|
3660
|
-
/* @__PURE__ */
|
|
3698
|
+
/* @__PURE__ */ m("div", { style: { marginBottom: 18 }, children: [
|
|
3699
|
+
/* @__PURE__ */ m("div", { style: i.label, children: [
|
|
3700
|
+
/* @__PURE__ */ m("span", { style: { color: "#F53F3F" }, children: "*" }),
|
|
3661
3701
|
" ",
|
|
3662
3702
|
L("交易ID")
|
|
3663
3703
|
] }),
|
|
3664
|
-
/* @__PURE__ */
|
|
3704
|
+
/* @__PURE__ */ m(
|
|
3665
3705
|
"input",
|
|
3666
3706
|
{
|
|
3667
3707
|
type: "text",
|
|
3668
3708
|
placeholder: L("请输入转账交易ID"),
|
|
3669
3709
|
value: e.transactionId,
|
|
3670
3710
|
maxLength: 200,
|
|
3671
|
-
onInput: (
|
|
3672
|
-
let
|
|
3673
|
-
|
|
3674
|
-
...
|
|
3675
|
-
transactionId:
|
|
3676
|
-
transactionIdError:
|
|
3711
|
+
onInput: (c) => {
|
|
3712
|
+
let g = c.target.value;
|
|
3713
|
+
g.length > 200 && (g = g.slice(0, 200)), t((h) => ({
|
|
3714
|
+
...h,
|
|
3715
|
+
transactionId: g,
|
|
3716
|
+
transactionIdError: g ? "" : h.transactionIdError
|
|
3677
3717
|
}));
|
|
3678
3718
|
},
|
|
3679
3719
|
style: {
|
|
@@ -3682,21 +3722,21 @@ const Wo = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
|
3682
3722
|
}
|
|
3683
3723
|
}
|
|
3684
3724
|
),
|
|
3685
|
-
e.transactionIdError && /* @__PURE__ */
|
|
3725
|
+
e.transactionIdError && /* @__PURE__ */ m("div", { style: i.error, children: e.transactionIdError })
|
|
3686
3726
|
] }),
|
|
3687
|
-
/* @__PURE__ */
|
|
3688
|
-
/* @__PURE__ */
|
|
3689
|
-
/* @__PURE__ */
|
|
3727
|
+
/* @__PURE__ */ m("div", { style: { marginBottom: 24 }, children: [
|
|
3728
|
+
/* @__PURE__ */ m("div", { style: i.label, children: [
|
|
3729
|
+
/* @__PURE__ */ m("span", { style: { color: "#F53F3F" }, children: "*" }),
|
|
3690
3730
|
" ",
|
|
3691
3731
|
L("上传文件")
|
|
3692
3732
|
] }),
|
|
3693
|
-
/* @__PURE__ */
|
|
3694
|
-
|
|
3733
|
+
/* @__PURE__ */ m(
|
|
3734
|
+
jo,
|
|
3695
3735
|
{
|
|
3696
3736
|
value: e.files,
|
|
3697
|
-
onChange: (
|
|
3698
|
-
...
|
|
3699
|
-
files:
|
|
3737
|
+
onChange: (c) => t((g) => ({
|
|
3738
|
+
...g,
|
|
3739
|
+
files: c,
|
|
3700
3740
|
filesError: ""
|
|
3701
3741
|
})),
|
|
3702
3742
|
maxCount: 10,
|
|
@@ -3704,15 +3744,15 @@ const Wo = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
|
3704
3744
|
multiple: !0
|
|
3705
3745
|
}
|
|
3706
3746
|
),
|
|
3707
|
-
e.filesError && /* @__PURE__ */
|
|
3747
|
+
e.filesError && /* @__PURE__ */ m("div", { style: i.error, children: e.filesError })
|
|
3708
3748
|
] }),
|
|
3709
|
-
/* @__PURE__ */
|
|
3710
|
-
/* @__PURE__ */
|
|
3711
|
-
/* @__PURE__ */
|
|
3749
|
+
/* @__PURE__ */ m("div", { style: { display: "flex", justifyContent: "flex-end", gap: 12 }, children: [
|
|
3750
|
+
/* @__PURE__ */ m("button", { type: "button", onClick: n, style: i.buttonCancel, children: L("取消") }),
|
|
3751
|
+
/* @__PURE__ */ m("button", { type: "submit", disabled: r, style: i.buttonSubmit, children: L("确定") })
|
|
3712
3752
|
] })
|
|
3713
3753
|
] });
|
|
3714
3754
|
};
|
|
3715
|
-
function
|
|
3755
|
+
function Jo() {
|
|
3716
3756
|
const e = k("size");
|
|
3717
3757
|
return {
|
|
3718
3758
|
white: {
|
|
@@ -3726,31 +3766,31 @@ function qo() {
|
|
|
3726
3766
|
right: "16px",
|
|
3727
3767
|
background: "none",
|
|
3728
3768
|
border: "none",
|
|
3729
|
-
fontSize: e ===
|
|
3769
|
+
fontSize: e === u.SMALL ? 16 : 24,
|
|
3730
3770
|
cursor: "pointer",
|
|
3731
3771
|
color: "#999",
|
|
3732
3772
|
padding: "0",
|
|
3733
|
-
width: e ===
|
|
3734
|
-
height: e ===
|
|
3773
|
+
width: e === u.SMALL ? 16 : 24,
|
|
3774
|
+
height: e === u.SMALL ? 16 : 24,
|
|
3735
3775
|
display: "flex",
|
|
3736
3776
|
alignItems: "center",
|
|
3737
3777
|
justifyContent: "center"
|
|
3738
3778
|
},
|
|
3739
3779
|
title: {
|
|
3740
|
-
fontSize: e ===
|
|
3780
|
+
fontSize: e === u.SMALL ? 16 : 18,
|
|
3741
3781
|
fontWeight: "600",
|
|
3742
|
-
marginBottom: e ===
|
|
3782
|
+
marginBottom: e === u.SMALL ? 16 : 24,
|
|
3743
3783
|
color: "#222"
|
|
3744
3784
|
},
|
|
3745
3785
|
tabBtn: (t, n) => ({
|
|
3746
3786
|
flex: 1,
|
|
3747
|
-
padding: e ===
|
|
3787
|
+
padding: e === u.SMALL ? "8px 10px" : "12px 16px",
|
|
3748
3788
|
background: t ? "#1890ff" : "transparent",
|
|
3749
3789
|
color: t ? "#fff" : "#666",
|
|
3750
3790
|
border: "1px solid #d9d9d9",
|
|
3751
3791
|
borderRight: n ? "none" : "1px solid #d9d9d9",
|
|
3752
3792
|
cursor: "pointer",
|
|
3753
|
-
fontSize: e ===
|
|
3793
|
+
fontSize: e === u.SMALL ? 12 : 14,
|
|
3754
3794
|
fontWeight: t ? "600" : "400",
|
|
3755
3795
|
borderRadius: n ? "6px 0 0 6px" : "0 6px 6px 0"
|
|
3756
3796
|
})
|
|
@@ -3762,62 +3802,62 @@ function qo() {
|
|
|
3762
3802
|
modalBoxShadow: "0 6px 16px rgba(0,0,0,0.32)",
|
|
3763
3803
|
closeBtn: {
|
|
3764
3804
|
position: "absolute",
|
|
3765
|
-
top: e ===
|
|
3766
|
-
right: e ===
|
|
3805
|
+
top: e === u.SMALL ? "12px" : "16px",
|
|
3806
|
+
right: e === u.SMALL ? "12px" : "16px",
|
|
3767
3807
|
background: "none",
|
|
3768
3808
|
border: "none",
|
|
3769
|
-
fontSize: e ===
|
|
3809
|
+
fontSize: e === u.SMALL ? 16 : 24,
|
|
3770
3810
|
cursor: "pointer",
|
|
3771
3811
|
color: "#B5B8BE",
|
|
3772
3812
|
padding: "0",
|
|
3773
|
-
width: e ===
|
|
3774
|
-
height: e ===
|
|
3813
|
+
width: e === u.SMALL ? 16 : 24,
|
|
3814
|
+
height: e === u.SMALL ? 16 : 24,
|
|
3775
3815
|
display: "flex",
|
|
3776
3816
|
alignItems: "center",
|
|
3777
3817
|
justifyContent: "center"
|
|
3778
3818
|
},
|
|
3779
3819
|
title: {
|
|
3780
|
-
fontSize: e ===
|
|
3820
|
+
fontSize: e === u.SMALL ? 16 : 18,
|
|
3781
3821
|
fontWeight: "600",
|
|
3782
|
-
marginBottom: e ===
|
|
3822
|
+
marginBottom: e === u.SMALL ? 16 : 24,
|
|
3783
3823
|
color: "#F5F6FA"
|
|
3784
3824
|
},
|
|
3785
3825
|
tabBtn: (t, n) => ({
|
|
3786
3826
|
flex: 1,
|
|
3787
|
-
padding: e ===
|
|
3827
|
+
padding: e === u.SMALL ? "8px 10px" : "12px 16px",
|
|
3788
3828
|
background: t ? "#00E8C6" : "transparent",
|
|
3789
3829
|
color: t ? "#fff" : "#B5B8BE",
|
|
3790
3830
|
border: "1px solid #444C5C",
|
|
3791
3831
|
borderRight: n ? "none" : "1px solid #444C5C",
|
|
3792
3832
|
cursor: "pointer",
|
|
3793
|
-
fontSize: e ===
|
|
3833
|
+
fontSize: e === u.SMALL ? 12 : 14,
|
|
3794
3834
|
fontWeight: t ? "600" : "400",
|
|
3795
3835
|
borderRadius: n ? "6px 0 0 6px" : "0 6px 6px 0"
|
|
3796
3836
|
})
|
|
3797
3837
|
}
|
|
3798
3838
|
};
|
|
3799
3839
|
}
|
|
3800
|
-
function
|
|
3801
|
-
const t = k("theme") === N.WHITE, n =
|
|
3840
|
+
function Vo() {
|
|
3841
|
+
const t = k("theme") === N.WHITE, n = Jo();
|
|
3802
3842
|
return t ? n.white : n.dark;
|
|
3803
3843
|
}
|
|
3804
3844
|
const pe = k("size");
|
|
3805
|
-
function
|
|
3845
|
+
function Go({
|
|
3806
3846
|
visible: e,
|
|
3807
3847
|
onClose: t,
|
|
3808
3848
|
title: n,
|
|
3809
3849
|
children: r,
|
|
3810
|
-
width: o = pe ===
|
|
3811
|
-
maxWidth: s = pe ===
|
|
3850
|
+
width: o = pe === u.SMALL ? 300 : 400,
|
|
3851
|
+
maxWidth: s = pe === u.SMALL ? 300 : 400,
|
|
3812
3852
|
showClose: i = !0,
|
|
3813
3853
|
maskClosable: a = !0
|
|
3814
3854
|
}) {
|
|
3815
|
-
const [
|
|
3816
|
-
|
|
3817
|
-
},
|
|
3818
|
-
|
|
3855
|
+
const [d, l] = F(!1), f = Vo(), c = (h) => {
|
|
3856
|
+
h.target === h.currentTarget ? l(!0) : l(!1);
|
|
3857
|
+
}, g = (h) => {
|
|
3858
|
+
h.target === h.currentTarget && d && a && t(), l(!1);
|
|
3819
3859
|
};
|
|
3820
|
-
return e ? /* @__PURE__ */
|
|
3860
|
+
return e ? /* @__PURE__ */ m(
|
|
3821
3861
|
"div",
|
|
3822
3862
|
{
|
|
3823
3863
|
style: {
|
|
@@ -3833,23 +3873,23 @@ function Vo({
|
|
|
3833
3873
|
zIndex: 9999
|
|
3834
3874
|
},
|
|
3835
3875
|
onMouseDown: c,
|
|
3836
|
-
onMouseUp:
|
|
3837
|
-
children: /* @__PURE__ */
|
|
3876
|
+
onMouseUp: g,
|
|
3877
|
+
children: /* @__PURE__ */ m(
|
|
3838
3878
|
"div",
|
|
3839
3879
|
{
|
|
3840
3880
|
style: {
|
|
3841
3881
|
background: f.modalBg,
|
|
3842
|
-
padding: pe ===
|
|
3843
|
-
borderRadius: pe ===
|
|
3882
|
+
padding: pe === u.SMALL ? 24 : 32,
|
|
3883
|
+
borderRadius: pe === u.SMALL ? 8 : 12,
|
|
3844
3884
|
minWidth: o,
|
|
3845
3885
|
maxWidth: s,
|
|
3846
3886
|
color: f.modalColor,
|
|
3847
3887
|
boxShadow: f.modalBoxShadow,
|
|
3848
3888
|
position: "relative"
|
|
3849
3889
|
},
|
|
3850
|
-
onClick: (
|
|
3890
|
+
onClick: (h) => h.stopPropagation(),
|
|
3851
3891
|
children: [
|
|
3852
|
-
i && /* @__PURE__ */
|
|
3892
|
+
i && /* @__PURE__ */ m(
|
|
3853
3893
|
"button",
|
|
3854
3894
|
{
|
|
3855
3895
|
type: "button",
|
|
@@ -3859,7 +3899,7 @@ function Vo({
|
|
|
3859
3899
|
children: "×"
|
|
3860
3900
|
}
|
|
3861
3901
|
),
|
|
3862
|
-
n && /* @__PURE__ */
|
|
3902
|
+
n && /* @__PURE__ */ m("div", { style: f.title, children: n }),
|
|
3863
3903
|
r
|
|
3864
3904
|
]
|
|
3865
3905
|
}
|
|
@@ -3867,7 +3907,7 @@ function Vo({
|
|
|
3867
3907
|
}
|
|
3868
3908
|
) : null;
|
|
3869
3909
|
}
|
|
3870
|
-
function
|
|
3910
|
+
function Ko() {
|
|
3871
3911
|
const e = k("size");
|
|
3872
3912
|
return {
|
|
3873
3913
|
white: {
|
|
@@ -3878,8 +3918,8 @@ function Go() {
|
|
|
3878
3918
|
border: "1px solid #F0F1F3",
|
|
3879
3919
|
borderRadius: n ? "8px 0 0 8px" : "0 8px 8px 0",
|
|
3880
3920
|
fontWeight: 500,
|
|
3881
|
-
fontSize: e ===
|
|
3882
|
-
height: e ===
|
|
3921
|
+
fontSize: e === u.SMALL ? 12 : 16,
|
|
3922
|
+
height: e === u.SMALL ? 32 : 48,
|
|
3883
3923
|
boxShadow: t ? "0 2px 8px 0 rgba(20,20,20,0.04)" : "none",
|
|
3884
3924
|
outline: "none",
|
|
3885
3925
|
cursor: "pointer"
|
|
@@ -3894,8 +3934,8 @@ function Go() {
|
|
|
3894
3934
|
border: "1px solid #444C5C",
|
|
3895
3935
|
borderRadius: n ? "8px 0 0 8px" : "0 8px 8px 0",
|
|
3896
3936
|
fontWeight: 500,
|
|
3897
|
-
fontSize: e ===
|
|
3898
|
-
height: e ===
|
|
3937
|
+
fontSize: e === u.SMALL ? 12 : 16,
|
|
3938
|
+
height: e === u.SMALL ? 32 : 48,
|
|
3899
3939
|
boxShadow: t ? "0 2px 8px 0 rgba(20,20,20,0.10)" : "none",
|
|
3900
3940
|
outline: "none",
|
|
3901
3941
|
cursor: "pointer"
|
|
@@ -3904,8 +3944,8 @@ function Go() {
|
|
|
3904
3944
|
}
|
|
3905
3945
|
};
|
|
3906
3946
|
}
|
|
3907
|
-
function
|
|
3908
|
-
const e = k("theme"), t = k("themeConfig"), n = e === N.WHITE, r =
|
|
3947
|
+
function Xo() {
|
|
3948
|
+
const e = k("theme"), t = k("themeConfig"), n = e === N.WHITE, r = Ko(), o = n ? r.white : r.dark;
|
|
3909
3949
|
if (t) {
|
|
3910
3950
|
const s = n ? t.white : t.dark;
|
|
3911
3951
|
if (s?.color)
|
|
@@ -3919,9 +3959,9 @@ function Ko() {
|
|
|
3919
3959
|
}
|
|
3920
3960
|
return o;
|
|
3921
3961
|
}
|
|
3922
|
-
const
|
|
3923
|
-
function
|
|
3924
|
-
const [r, o] =
|
|
3962
|
+
const Zo = k("size");
|
|
3963
|
+
function Yo({ visible: e, onClose: t, onSubmit: n }) {
|
|
3964
|
+
const [r, o] = F({
|
|
3925
3965
|
amount: "",
|
|
3926
3966
|
rechargeChannel: "",
|
|
3927
3967
|
currency: "USD",
|
|
@@ -3930,7 +3970,7 @@ function Zo({ visible: e, onClose: t, onSubmit: n }) {
|
|
|
3930
3970
|
amountError: "",
|
|
3931
3971
|
rechargeChannelError: "",
|
|
3932
3972
|
currencyError: ""
|
|
3933
|
-
}), [s, i] =
|
|
3973
|
+
}), [s, i] = F({
|
|
3934
3974
|
platform: "",
|
|
3935
3975
|
transactionId: "",
|
|
3936
3976
|
files: [],
|
|
@@ -3938,9 +3978,9 @@ function Zo({ visible: e, onClose: t, onSubmit: n }) {
|
|
|
3938
3978
|
transactionIdError: "",
|
|
3939
3979
|
filesError: "",
|
|
3940
3980
|
loading: !1
|
|
3941
|
-
}), [a,
|
|
3981
|
+
}), [a, d] = F("online"), l = Xo();
|
|
3942
3982
|
le(() => {
|
|
3943
|
-
e || (
|
|
3983
|
+
e || (d("online"), o({
|
|
3944
3984
|
amount: "",
|
|
3945
3985
|
rechargeChannel: "",
|
|
3946
3986
|
currency: "USD",
|
|
@@ -3961,16 +4001,16 @@ function Zo({ visible: e, onClose: t, onSubmit: n }) {
|
|
|
3961
4001
|
}, [e]);
|
|
3962
4002
|
const f = async (c) => {
|
|
3963
4003
|
c.preventDefault();
|
|
3964
|
-
let
|
|
3965
|
-
if (o((
|
|
3966
|
-
...
|
|
4004
|
+
let g = !0;
|
|
4005
|
+
if (o((h) => ({
|
|
4006
|
+
...h,
|
|
3967
4007
|
amountError: "",
|
|
3968
4008
|
rechargeChannelError: ""
|
|
3969
|
-
})), r.amount.trim() || (o((
|
|
3970
|
-
...
|
|
4009
|
+
})), r.amount.trim() || (o((h) => ({ ...h, amountError: L("请输入充值金额") })), g = !1), r.rechargeChannel || (o((h) => ({
|
|
4010
|
+
...h,
|
|
3971
4011
|
rechargeChannelError: L("请选择支付平台")
|
|
3972
|
-
})),
|
|
3973
|
-
o((
|
|
4012
|
+
})), g = !1), !!g) {
|
|
4013
|
+
o((h) => ({ ...h, loading: !0, error: "" }));
|
|
3974
4014
|
try {
|
|
3975
4015
|
await n({
|
|
3976
4016
|
amount: r.amount,
|
|
@@ -3978,35 +4018,35 @@ function Zo({ visible: e, onClose: t, onSubmit: n }) {
|
|
|
3978
4018
|
currency: r.currency
|
|
3979
4019
|
}), t();
|
|
3980
4020
|
} catch {
|
|
3981
|
-
o((
|
|
4021
|
+
o((h) => ({ ...h, error: L("提交失败,请重试") }));
|
|
3982
4022
|
} finally {
|
|
3983
|
-
o((
|
|
4023
|
+
o((h) => ({ ...h, loading: !1 }));
|
|
3984
4024
|
}
|
|
3985
4025
|
}
|
|
3986
4026
|
};
|
|
3987
|
-
return /* @__PURE__ */
|
|
3988
|
-
/* @__PURE__ */
|
|
4027
|
+
return /* @__PURE__ */ m(Go, { visible: e, onClose: t, title: L("充值 / 转账"), children: [
|
|
4028
|
+
/* @__PURE__ */ m(
|
|
3989
4029
|
"div",
|
|
3990
4030
|
{
|
|
3991
4031
|
style: {
|
|
3992
4032
|
display: "flex",
|
|
3993
|
-
marginBottom:
|
|
4033
|
+
marginBottom: Zo === u.SMALL ? 16 : 28
|
|
3994
4034
|
},
|
|
3995
4035
|
children: [
|
|
3996
|
-
/* @__PURE__ */
|
|
4036
|
+
/* @__PURE__ */ m(
|
|
3997
4037
|
"button",
|
|
3998
4038
|
{
|
|
3999
4039
|
type: "button",
|
|
4000
|
-
onClick: () =>
|
|
4040
|
+
onClick: () => d("online"),
|
|
4001
4041
|
style: l.tabBtn(a === "online", !0),
|
|
4002
4042
|
children: L("在线充值")
|
|
4003
4043
|
}
|
|
4004
4044
|
),
|
|
4005
|
-
/* @__PURE__ */
|
|
4045
|
+
/* @__PURE__ */ m(
|
|
4006
4046
|
"button",
|
|
4007
4047
|
{
|
|
4008
4048
|
type: "button",
|
|
4009
|
-
onClick: () =>
|
|
4049
|
+
onClick: () => d("offline"),
|
|
4010
4050
|
style: l.tabBtn(a === "offline", !1),
|
|
4011
4051
|
children: L("线下转账")
|
|
4012
4052
|
}
|
|
@@ -4014,8 +4054,8 @@ function Zo({ visible: e, onClose: t, onSubmit: n }) {
|
|
|
4014
4054
|
]
|
|
4015
4055
|
}
|
|
4016
4056
|
),
|
|
4017
|
-
/* @__PURE__ */
|
|
4018
|
-
|
|
4057
|
+
/* @__PURE__ */ m("div", { style: { display: a === "online" ? "block" : "none" }, children: /* @__PURE__ */ m("form", { onSubmit: f, children: /* @__PURE__ */ m(
|
|
4058
|
+
zo,
|
|
4019
4059
|
{
|
|
4020
4060
|
formState: r,
|
|
4021
4061
|
setFormState: o,
|
|
@@ -4023,8 +4063,8 @@ function Zo({ visible: e, onClose: t, onSubmit: n }) {
|
|
|
4023
4063
|
loading: r.loading
|
|
4024
4064
|
}
|
|
4025
4065
|
) }) }),
|
|
4026
|
-
/* @__PURE__ */
|
|
4027
|
-
|
|
4066
|
+
/* @__PURE__ */ m("div", { style: { display: a === "offline" ? "block" : "none" }, children: /* @__PURE__ */ m(
|
|
4067
|
+
qo,
|
|
4028
4068
|
{
|
|
4029
4069
|
formState: s,
|
|
4030
4070
|
setFormState: i,
|
|
@@ -4043,32 +4083,32 @@ function st() {
|
|
|
4043
4083
|
return e;
|
|
4044
4084
|
}).apply(this, arguments);
|
|
4045
4085
|
}
|
|
4046
|
-
var
|
|
4047
|
-
function
|
|
4086
|
+
var Qo = ["context", "children"];
|
|
4087
|
+
function ei(e) {
|
|
4048
4088
|
this.getChildContext = function() {
|
|
4049
4089
|
return e.context;
|
|
4050
4090
|
};
|
|
4051
4091
|
var t = e.children, n = function(r, o) {
|
|
4052
4092
|
if (r == null) return {};
|
|
4053
|
-
var s, i, a = {},
|
|
4054
|
-
for (i = 0; i <
|
|
4093
|
+
var s, i, a = {}, d = Object.keys(r);
|
|
4094
|
+
for (i = 0; i < d.length; i++) o.indexOf(s = d[i]) >= 0 || (a[s] = r[s]);
|
|
4055
4095
|
return a;
|
|
4056
|
-
}(e,
|
|
4096
|
+
}(e, Qo);
|
|
4057
4097
|
return Ln(t, n);
|
|
4058
4098
|
}
|
|
4059
|
-
function
|
|
4099
|
+
function ti() {
|
|
4060
4100
|
var e = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
|
|
4061
|
-
this.dispatchEvent(e), this._vdom =
|
|
4101
|
+
this.dispatchEvent(e), this._vdom = Y(ei, st({}, this._props, { context: e.detail.context }), function t(n, r) {
|
|
4062
4102
|
if (n.nodeType === 3) return n.data;
|
|
4063
4103
|
if (n.nodeType !== 1) return null;
|
|
4064
|
-
var o = [], s = {}, i = 0, a = n.attributes,
|
|
4104
|
+
var o = [], s = {}, i = 0, a = n.attributes, d = n.childNodes;
|
|
4065
4105
|
for (i = a.length; i--; ) a[i].name !== "slot" && (s[a[i].name] = a[i].value, s[Tn(a[i].name)] = a[i].value);
|
|
4066
|
-
for (i =
|
|
4067
|
-
var l = t(
|
|
4068
|
-
f ? s[f] =
|
|
4106
|
+
for (i = d.length; i--; ) {
|
|
4107
|
+
var l = t(d[i], null), f = d[i].slot;
|
|
4108
|
+
f ? s[f] = Y(It, { name: f }, l) : o[i] = l;
|
|
4069
4109
|
}
|
|
4070
|
-
var c = r ?
|
|
4071
|
-
return
|
|
4110
|
+
var c = r ? Y(It, null, o) : o;
|
|
4111
|
+
return Y(r || n.nodeName.toLowerCase(), s, c);
|
|
4072
4112
|
}(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? Sn : Oe)(this._vdom, this._root);
|
|
4073
4113
|
}
|
|
4074
4114
|
function Tn(e) {
|
|
@@ -4076,18 +4116,18 @@ function Tn(e) {
|
|
|
4076
4116
|
return n ? n.toUpperCase() : "";
|
|
4077
4117
|
});
|
|
4078
4118
|
}
|
|
4079
|
-
function
|
|
4119
|
+
function ni(e, t, n) {
|
|
4080
4120
|
if (this._vdom) {
|
|
4081
4121
|
var r = {};
|
|
4082
4122
|
r[e] = n = n ?? void 0, r[Tn(e)] = n, this._vdom = Ln(this._vdom, r), Oe(this._vdom, this._root);
|
|
4083
4123
|
}
|
|
4084
4124
|
}
|
|
4085
|
-
function
|
|
4125
|
+
function ri() {
|
|
4086
4126
|
Oe(this._vdom = null, this._root);
|
|
4087
4127
|
}
|
|
4088
|
-
function
|
|
4128
|
+
function It(e, t) {
|
|
4089
4129
|
var n = this;
|
|
4090
|
-
return
|
|
4130
|
+
return Y("slot", st({}, e, { ref: function(r) {
|
|
4091
4131
|
r ? (n.ref = r, n._listener || (n._listener = function(o) {
|
|
4092
4132
|
o.stopPropagation(), o.detail.context = t;
|
|
4093
4133
|
}, r.addEventListener("_preact", n._listener))) : n.ref.removeEventListener("_preact", n._listener);
|
|
@@ -4098,7 +4138,7 @@ function at(e, t, n, r) {
|
|
|
4098
4138
|
var s = Reflect.construct(HTMLElement, [], o);
|
|
4099
4139
|
return s._vdomComponent = e, s._root = r && r.shadow ? s.attachShadow({ mode: r.mode || "open" }) : s, s;
|
|
4100
4140
|
}
|
|
4101
|
-
return (o.prototype = Object.create(HTMLElement.prototype)).constructor = o, o.prototype.connectedCallback =
|
|
4141
|
+
return (o.prototype = Object.create(HTMLElement.prototype)).constructor = o, o.prototype.connectedCallback = ti, o.prototype.attributeChangedCallback = ni, o.prototype.disconnectedCallback = ri, n = n || e.observedAttributes || Object.keys(e.propTypes || {}), o.observedAttributes = n, n.forEach(function(s) {
|
|
4102
4142
|
Object.defineProperty(o.prototype, s, { get: function() {
|
|
4103
4143
|
return this._vdom.props[s];
|
|
4104
4144
|
}, set: function(i) {
|
|
@@ -4108,8 +4148,8 @@ function at(e, t, n, r) {
|
|
|
4108
4148
|
} });
|
|
4109
4149
|
}), customElements.define(t || e.tagName || e.displayName || e.name, o);
|
|
4110
4150
|
}
|
|
4111
|
-
function
|
|
4112
|
-
const [e, t] =
|
|
4151
|
+
function oi() {
|
|
4152
|
+
const [e, t] = F(!1), n = async (r) => {
|
|
4113
4153
|
const o = await wo({
|
|
4114
4154
|
amount: r.amount,
|
|
4115
4155
|
currency: r.currency,
|
|
@@ -4117,10 +4157,10 @@ function ri() {
|
|
|
4117
4157
|
});
|
|
4118
4158
|
window.open(o, "_blank");
|
|
4119
4159
|
};
|
|
4120
|
-
return /* @__PURE__ */
|
|
4121
|
-
/* @__PURE__ */
|
|
4122
|
-
/* @__PURE__ */
|
|
4123
|
-
|
|
4160
|
+
return /* @__PURE__ */ m("div", { children: [
|
|
4161
|
+
/* @__PURE__ */ m(kn, { onClick: () => t(!0), children: L("充值/转账") }),
|
|
4162
|
+
/* @__PURE__ */ m(
|
|
4163
|
+
Yo,
|
|
4124
4164
|
{
|
|
4125
4165
|
visible: e,
|
|
4126
4166
|
onClose: () => t(!1),
|
|
@@ -4129,8 +4169,8 @@ function ri() {
|
|
|
4129
4169
|
)
|
|
4130
4170
|
] });
|
|
4131
4171
|
}
|
|
4132
|
-
at(
|
|
4133
|
-
const
|
|
4172
|
+
at(oi, "best-recharge", ["theme"], { shadow: !1 });
|
|
4173
|
+
const Pt = {
|
|
4134
4174
|
white: {
|
|
4135
4175
|
popover: {
|
|
4136
4176
|
background: "#fff",
|
|
@@ -4160,10 +4200,10 @@ const Dt = {
|
|
|
4160
4200
|
}
|
|
4161
4201
|
}
|
|
4162
4202
|
};
|
|
4163
|
-
function
|
|
4164
|
-
return k("theme") === N.WHITE ?
|
|
4203
|
+
function ii() {
|
|
4204
|
+
return k("theme") === N.WHITE ? Pt.white : Pt.dark;
|
|
4165
4205
|
}
|
|
4166
|
-
const
|
|
4206
|
+
const si = ({
|
|
4167
4207
|
popover: e,
|
|
4168
4208
|
children: t,
|
|
4169
4209
|
popoverWidth: n,
|
|
@@ -4172,29 +4212,29 @@ const ii = ({
|
|
|
4172
4212
|
offsetX: s,
|
|
4173
4213
|
popoverPosition: i = "top"
|
|
4174
4214
|
}) => {
|
|
4175
|
-
const a = k("size"),
|
|
4176
|
-
if (
|
|
4177
|
-
if (
|
|
4178
|
-
const
|
|
4179
|
-
i === "top" &&
|
|
4215
|
+
const a = k("size"), d = n ?? (a === u.SMALL ? 200 : 300), l = r ?? (a === u.SMALL ? 150 : 200), f = o ?? (a === u.SMALL ? 8 : 16), c = s ?? (a === u.SMALL ? 8 : 16), [g, h] = F(!1), [_, y] = F(i), b = Ee(null), x = Ee(null), S = ii(), v = () => {
|
|
4216
|
+
if (x.current && (clearTimeout(x.current), x.current = null), i === "top" || i === "bottom")
|
|
4217
|
+
if (b.current) {
|
|
4218
|
+
const D = b.current.getBoundingClientRect();
|
|
4219
|
+
i === "top" && D.top < 100 ? y("bottom") : i === "bottom" && window.innerHeight - D.bottom < 100 ? y("top") : y(i);
|
|
4180
4220
|
} else
|
|
4181
|
-
|
|
4221
|
+
y(i);
|
|
4182
4222
|
else
|
|
4183
|
-
|
|
4184
|
-
|
|
4223
|
+
y(i);
|
|
4224
|
+
h(!0);
|
|
4185
4225
|
}, w = () => {
|
|
4186
|
-
|
|
4187
|
-
|
|
4226
|
+
x.current = window.setTimeout(() => {
|
|
4227
|
+
h(!1);
|
|
4188
4228
|
}, 120);
|
|
4189
4229
|
};
|
|
4190
4230
|
let E = {
|
|
4191
4231
|
position: "absolute",
|
|
4192
4232
|
zIndex: 999,
|
|
4193
4233
|
borderRadius: 6,
|
|
4194
|
-
fontSize: a ===
|
|
4234
|
+
fontSize: a === u.SMALL ? 12 : 15,
|
|
4195
4235
|
minWidth: l,
|
|
4196
|
-
width:
|
|
4197
|
-
padding: a ===
|
|
4236
|
+
width: d,
|
|
4237
|
+
padding: a === u.SMALL ? "6px 12px" : "8px 14px",
|
|
4198
4238
|
pointerEvents: "auto",
|
|
4199
4239
|
textAlign: "center",
|
|
4200
4240
|
animation: "fadeInUp 0.3s",
|
|
@@ -4205,7 +4245,7 @@ const ii = ({
|
|
|
4205
4245
|
width: 0,
|
|
4206
4246
|
height: 0
|
|
4207
4247
|
};
|
|
4208
|
-
return
|
|
4248
|
+
return _ === "top" ? (E = {
|
|
4209
4249
|
...E,
|
|
4210
4250
|
left: "50%",
|
|
4211
4251
|
top: -48,
|
|
@@ -4218,7 +4258,7 @@ const ii = ({
|
|
|
4218
4258
|
borderLeft: "8px solid transparent",
|
|
4219
4259
|
borderRight: "8px solid transparent",
|
|
4220
4260
|
borderTop: `8px solid ${S.arrow.top}`
|
|
4221
|
-
}) :
|
|
4261
|
+
}) : _ === "bottom" ? (E = {
|
|
4222
4262
|
...E,
|
|
4223
4263
|
left: "50%",
|
|
4224
4264
|
top: "100%",
|
|
@@ -4232,7 +4272,7 @@ const ii = ({
|
|
|
4232
4272
|
borderLeft: "8px solid transparent",
|
|
4233
4273
|
borderRight: "8px solid transparent",
|
|
4234
4274
|
borderBottom: `8px solid ${S.arrow.bottom}`
|
|
4235
|
-
}) :
|
|
4275
|
+
}) : _ === "leftTop" ? (E = {
|
|
4236
4276
|
...E,
|
|
4237
4277
|
right: "100%",
|
|
4238
4278
|
top: 0,
|
|
@@ -4241,11 +4281,11 @@ const ii = ({
|
|
|
4241
4281
|
}, C = {
|
|
4242
4282
|
...C,
|
|
4243
4283
|
right: -8,
|
|
4244
|
-
top: a ===
|
|
4284
|
+
top: a === u.SMALL ? 8 : 12,
|
|
4245
4285
|
borderTop: "8px solid transparent",
|
|
4246
4286
|
borderBottom: "8px solid transparent",
|
|
4247
4287
|
borderLeft: `8px solid ${S.arrow.left}`
|
|
4248
|
-
}) :
|
|
4288
|
+
}) : _ === "rightTop" && (E = {
|
|
4249
4289
|
...E,
|
|
4250
4290
|
left: "100%",
|
|
4251
4291
|
top: 0,
|
|
@@ -4259,16 +4299,16 @@ const ii = ({
|
|
|
4259
4299
|
borderTop: "8px solid transparent",
|
|
4260
4300
|
borderBottom: "8px solid transparent",
|
|
4261
4301
|
borderRight: `8px solid ${S.arrow.right}`
|
|
4262
|
-
}), /* @__PURE__ */
|
|
4302
|
+
}), /* @__PURE__ */ m(
|
|
4263
4303
|
"div",
|
|
4264
4304
|
{
|
|
4265
|
-
ref:
|
|
4305
|
+
ref: b,
|
|
4266
4306
|
style: { position: "relative", display: "inline-block" },
|
|
4267
4307
|
onMouseEnter: v,
|
|
4268
4308
|
onMouseLeave: w,
|
|
4269
4309
|
children: [
|
|
4270
4310
|
t,
|
|
4271
|
-
|
|
4311
|
+
g && /* @__PURE__ */ m(
|
|
4272
4312
|
"div",
|
|
4273
4313
|
{
|
|
4274
4314
|
style: E,
|
|
@@ -4276,7 +4316,7 @@ const ii = ({
|
|
|
4276
4316
|
onMouseLeave: w,
|
|
4277
4317
|
children: [
|
|
4278
4318
|
e,
|
|
4279
|
-
/* @__PURE__ */
|
|
4319
|
+
/* @__PURE__ */ m("div", { style: C })
|
|
4280
4320
|
]
|
|
4281
4321
|
}
|
|
4282
4322
|
)
|
|
@@ -4284,24 +4324,24 @@ const ii = ({
|
|
|
4284
4324
|
}
|
|
4285
4325
|
);
|
|
4286
4326
|
};
|
|
4287
|
-
function
|
|
4327
|
+
function ai() {
|
|
4288
4328
|
const e = k("size");
|
|
4289
4329
|
return {
|
|
4290
4330
|
white: {
|
|
4291
4331
|
popoverTitle: {
|
|
4292
|
-
fontSize: e ===
|
|
4332
|
+
fontSize: e === u.SMALL ? 12 : 16,
|
|
4293
4333
|
fontWeight: 600,
|
|
4294
4334
|
color: "#222",
|
|
4295
|
-
marginBottom: e ===
|
|
4335
|
+
marginBottom: e === u.SMALL ? 12 : 16,
|
|
4296
4336
|
textAlign: "center"
|
|
4297
4337
|
},
|
|
4298
4338
|
detailRow: {
|
|
4299
4339
|
display: "flex",
|
|
4300
4340
|
justifyContent: "space-between",
|
|
4301
4341
|
alignItems: "center",
|
|
4302
|
-
padding: e ===
|
|
4342
|
+
padding: e === u.SMALL ? "6px 0" : "8px 0",
|
|
4303
4343
|
borderBottom: "1px solid #e5e7eb",
|
|
4304
|
-
fontSize: e ===
|
|
4344
|
+
fontSize: e === u.SMALL ? 12 : 15
|
|
4305
4345
|
},
|
|
4306
4346
|
detailLabel: {
|
|
4307
4347
|
display: "flex",
|
|
@@ -4311,45 +4351,45 @@ function si() {
|
|
|
4311
4351
|
},
|
|
4312
4352
|
detailDot: (t) => ({
|
|
4313
4353
|
display: "inline-block",
|
|
4314
|
-
width: e ===
|
|
4315
|
-
height: e ===
|
|
4354
|
+
width: e === u.SMALL ? 6 : 8,
|
|
4355
|
+
height: e === u.SMALL ? 6 : 8,
|
|
4316
4356
|
borderRadius: "50%",
|
|
4317
4357
|
background: t,
|
|
4318
|
-
marginRight: e ===
|
|
4358
|
+
marginRight: e === u.SMALL ? 6 : 8
|
|
4319
4359
|
}),
|
|
4320
4360
|
detailValue: (t) => ({
|
|
4321
4361
|
color: t,
|
|
4322
4362
|
fontWeight: 600,
|
|
4323
|
-
fontSize: e ===
|
|
4363
|
+
fontSize: e === u.SMALL ? 12 : 15
|
|
4324
4364
|
}),
|
|
4325
4365
|
main: {
|
|
4326
|
-
fontSize: e ===
|
|
4366
|
+
fontSize: e === u.SMALL ? 18 : 24,
|
|
4327
4367
|
fontWeight: 800,
|
|
4328
4368
|
color: "#111827",
|
|
4329
4369
|
display: "inline-block"
|
|
4330
4370
|
},
|
|
4331
4371
|
currency: {
|
|
4332
|
-
fontSize: e ===
|
|
4372
|
+
fontSize: e === u.SMALL ? 16 : 18,
|
|
4333
4373
|
color: "#6b7280",
|
|
4334
|
-
marginLeft: e ===
|
|
4374
|
+
marginLeft: e === u.SMALL ? 6 : 8,
|
|
4335
4375
|
fontWeight: 600
|
|
4336
4376
|
}
|
|
4337
4377
|
},
|
|
4338
4378
|
dark: {
|
|
4339
4379
|
popoverTitle: {
|
|
4340
|
-
fontSize: e ===
|
|
4380
|
+
fontSize: e === u.SMALL ? 14 : 16,
|
|
4341
4381
|
fontWeight: 600,
|
|
4342
4382
|
color: "#fff",
|
|
4343
|
-
marginBottom: e ===
|
|
4383
|
+
marginBottom: e === u.SMALL ? 14 : 16,
|
|
4344
4384
|
textAlign: "center"
|
|
4345
4385
|
},
|
|
4346
4386
|
detailRow: {
|
|
4347
4387
|
display: "flex",
|
|
4348
4388
|
justifyContent: "space-between",
|
|
4349
4389
|
alignItems: "center",
|
|
4350
|
-
padding: e ===
|
|
4390
|
+
padding: e === u.SMALL ? "6px 0" : "8px 0",
|
|
4351
4391
|
borderBottom: "1px solid #374151",
|
|
4352
|
-
fontSize: e ===
|
|
4392
|
+
fontSize: e === u.SMALL ? 12 : 15
|
|
4353
4393
|
},
|
|
4354
4394
|
detailLabel: {
|
|
4355
4395
|
display: "flex",
|
|
@@ -4359,44 +4399,44 @@ function si() {
|
|
|
4359
4399
|
},
|
|
4360
4400
|
detailDot: (t) => ({
|
|
4361
4401
|
display: "inline-block",
|
|
4362
|
-
width: e ===
|
|
4363
|
-
height: e ===
|
|
4402
|
+
width: e === u.SMALL ? 6 : 8,
|
|
4403
|
+
height: e === u.SMALL ? 6 : 8,
|
|
4364
4404
|
borderRadius: "50%",
|
|
4365
4405
|
background: t,
|
|
4366
|
-
marginRight: e ===
|
|
4406
|
+
marginRight: e === u.SMALL ? 6 : 8
|
|
4367
4407
|
}),
|
|
4368
4408
|
detailValue: (t) => ({
|
|
4369
4409
|
color: t,
|
|
4370
4410
|
fontWeight: 600,
|
|
4371
|
-
fontSize: e ===
|
|
4411
|
+
fontSize: e === u.SMALL ? 12 : 15
|
|
4372
4412
|
}),
|
|
4373
4413
|
main: {
|
|
4374
|
-
fontSize: e ===
|
|
4414
|
+
fontSize: e === u.SMALL ? 18 : 24,
|
|
4375
4415
|
fontWeight: 800,
|
|
4376
4416
|
color: "#fff",
|
|
4377
4417
|
display: "inline-block"
|
|
4378
4418
|
},
|
|
4379
4419
|
currency: {
|
|
4380
|
-
fontSize: e ===
|
|
4420
|
+
fontSize: e === u.SMALL ? 16 : 18,
|
|
4381
4421
|
color: "#B5B8BE",
|
|
4382
|
-
marginLeft: e ===
|
|
4422
|
+
marginLeft: e === u.SMALL ? 6 : 8,
|
|
4383
4423
|
fontWeight: 600
|
|
4384
4424
|
}
|
|
4385
4425
|
}
|
|
4386
4426
|
};
|
|
4387
4427
|
}
|
|
4388
|
-
function
|
|
4389
|
-
const t = k("theme") === N.WHITE, n =
|
|
4428
|
+
function li() {
|
|
4429
|
+
const t = k("theme") === N.WHITE, n = ai();
|
|
4390
4430
|
return t ? n.white : n.dark;
|
|
4391
4431
|
}
|
|
4392
|
-
function
|
|
4432
|
+
function Dt(e) {
|
|
4393
4433
|
return e.toLocaleString("en-US", {
|
|
4394
4434
|
minimumFractionDigits: 2,
|
|
4395
4435
|
maximumFractionDigits: 2
|
|
4396
4436
|
});
|
|
4397
4437
|
}
|
|
4398
|
-
function
|
|
4399
|
-
const [t, n] =
|
|
4438
|
+
function ci(e) {
|
|
4439
|
+
const [t, n] = F({
|
|
4400
4440
|
currBalance: 0,
|
|
4401
4441
|
currency: "USD",
|
|
4402
4442
|
details: []
|
|
@@ -4436,13 +4476,13 @@ function li(e) {
|
|
|
4436
4476
|
color: "#1890ff",
|
|
4437
4477
|
dot: "#15b36b"
|
|
4438
4478
|
}
|
|
4439
|
-
],
|
|
4479
|
+
], d = {
|
|
4440
4480
|
currBalance: i.currBalance,
|
|
4441
4481
|
currency: "USD",
|
|
4442
4482
|
symbol: "$",
|
|
4443
4483
|
details: a
|
|
4444
4484
|
};
|
|
4445
|
-
n(
|
|
4485
|
+
n(d);
|
|
4446
4486
|
} catch (i) {
|
|
4447
4487
|
console.error("获取余额失败:", i);
|
|
4448
4488
|
}
|
|
@@ -4463,7 +4503,7 @@ function li(e) {
|
|
|
4463
4503
|
);
|
|
4464
4504
|
};
|
|
4465
4505
|
}, []);
|
|
4466
|
-
const o =
|
|
4506
|
+
const o = li(), s = [
|
|
4467
4507
|
{
|
|
4468
4508
|
label: L("真实金额"),
|
|
4469
4509
|
value: t.details[0]?.value || 0,
|
|
@@ -4497,28 +4537,28 @@ function li(e) {
|
|
|
4497
4537
|
dot: "#15b36b"
|
|
4498
4538
|
}
|
|
4499
4539
|
];
|
|
4500
|
-
return /* @__PURE__ */
|
|
4501
|
-
|
|
4540
|
+
return /* @__PURE__ */ m(
|
|
4541
|
+
si,
|
|
4502
4542
|
{
|
|
4503
|
-
popover: /* @__PURE__ */
|
|
4504
|
-
/* @__PURE__ */
|
|
4505
|
-
s.map((i) => /* @__PURE__ */
|
|
4506
|
-
/* @__PURE__ */
|
|
4507
|
-
/* @__PURE__ */
|
|
4543
|
+
popover: /* @__PURE__ */ m(K, { children: [
|
|
4544
|
+
/* @__PURE__ */ m("div", { style: o.popoverTitle, children: L("余额详情") }),
|
|
4545
|
+
s.map((i) => /* @__PURE__ */ m("div", { style: o.detailRow, children: [
|
|
4546
|
+
/* @__PURE__ */ m("span", { style: o.detailLabel, children: [
|
|
4547
|
+
/* @__PURE__ */ m("span", { style: o.detailDot(i.dot) }),
|
|
4508
4548
|
i.label
|
|
4509
4549
|
] }),
|
|
4510
|
-
/* @__PURE__ */
|
|
4550
|
+
/* @__PURE__ */ m("span", { style: o.detailValue(i.color), children: Dt(i.value) })
|
|
4511
4551
|
] }, i.label))
|
|
4512
4552
|
] }),
|
|
4513
4553
|
popoverPosition: e.popoverPosition || "bottom",
|
|
4514
|
-
children: /* @__PURE__ */
|
|
4515
|
-
|
|
4516
|
-
/* @__PURE__ */
|
|
4554
|
+
children: /* @__PURE__ */ m("div", { style: o.main, children: [
|
|
4555
|
+
Dt(t.currBalance),
|
|
4556
|
+
/* @__PURE__ */ m("span", { style: o.currency, children: t.currency })
|
|
4517
4557
|
] })
|
|
4518
4558
|
}
|
|
4519
4559
|
);
|
|
4520
4560
|
}
|
|
4521
|
-
at(
|
|
4561
|
+
at(ci, "best-statistical-balance");
|
|
4522
4562
|
const he = {
|
|
4523
4563
|
white: {
|
|
4524
4564
|
background: "#1890ff",
|
|
@@ -4539,7 +4579,7 @@ const he = {
|
|
|
4539
4579
|
transition: "all 0.2s ease"
|
|
4540
4580
|
}
|
|
4541
4581
|
};
|
|
4542
|
-
function
|
|
4582
|
+
function ui(e) {
|
|
4543
4583
|
return k("theme") === N.WHITE ? {
|
|
4544
4584
|
...he.white,
|
|
4545
4585
|
background: e || he.white.background
|
|
@@ -4548,7 +4588,7 @@ function ci(e) {
|
|
|
4548
4588
|
background: e || he.dark.background
|
|
4549
4589
|
};
|
|
4550
4590
|
}
|
|
4551
|
-
function
|
|
4591
|
+
function di(e) {
|
|
4552
4592
|
switch (e) {
|
|
4553
4593
|
case "small":
|
|
4554
4594
|
return {
|
|
@@ -4567,19 +4607,19 @@ function ui(e) {
|
|
|
4567
4607
|
};
|
|
4568
4608
|
}
|
|
4569
4609
|
}
|
|
4570
|
-
function
|
|
4610
|
+
function fi({
|
|
4571
4611
|
color: e,
|
|
4572
4612
|
size: t = "medium",
|
|
4573
4613
|
children: n
|
|
4574
4614
|
}) {
|
|
4575
|
-
const [r, o] =
|
|
4615
|
+
const [r, o] = F(!1), s = ui(e), i = di(t), a = {
|
|
4576
4616
|
...s,
|
|
4577
4617
|
...i,
|
|
4578
4618
|
display: "flex",
|
|
4579
4619
|
alignItems: "center"
|
|
4580
4620
|
};
|
|
4581
|
-
return /* @__PURE__ */
|
|
4582
|
-
/* @__PURE__ */
|
|
4621
|
+
return /* @__PURE__ */ m(K, { children: [
|
|
4622
|
+
/* @__PURE__ */ m("style", { children: `
|
|
4583
4623
|
@keyframes spin {
|
|
4584
4624
|
from {
|
|
4585
4625
|
transform: rotate(0deg);
|
|
@@ -4599,15 +4639,15 @@ function di({
|
|
|
4599
4639
|
display: inline-block;
|
|
4600
4640
|
}
|
|
4601
4641
|
` }),
|
|
4602
|
-
/* @__PURE__ */
|
|
4642
|
+
/* @__PURE__ */ m(kn, { onClick: async () => {
|
|
4603
4643
|
o(!0);
|
|
4604
4644
|
try {
|
|
4605
|
-
|
|
4645
|
+
vo(), await new Promise((f) => setTimeout(f, 300));
|
|
4606
4646
|
} finally {
|
|
4607
4647
|
o(!1);
|
|
4608
4648
|
}
|
|
4609
|
-
}, color: e, children: /* @__PURE__ */
|
|
4610
|
-
/* @__PURE__ */
|
|
4649
|
+
}, color: e, children: /* @__PURE__ */ m("div", { style: a, children: [
|
|
4650
|
+
/* @__PURE__ */ m(
|
|
4611
4651
|
"svg",
|
|
4612
4652
|
{
|
|
4613
4653
|
className: "refresh-icon",
|
|
@@ -4624,18 +4664,18 @@ function di({
|
|
|
4624
4664
|
transition: "all 0.2s ease"
|
|
4625
4665
|
},
|
|
4626
4666
|
children: [
|
|
4627
|
-
/* @__PURE__ */
|
|
4628
|
-
/* @__PURE__ */
|
|
4629
|
-
/* @__PURE__ */
|
|
4630
|
-
/* @__PURE__ */
|
|
4667
|
+
/* @__PURE__ */ m("path", { d: "M21 2v6h-6" }),
|
|
4668
|
+
/* @__PURE__ */ m("path", { d: "M3 12a9 9 0 0 1 15-6.7L21 8" }),
|
|
4669
|
+
/* @__PURE__ */ m("path", { d: "M3 22v-6h6" }),
|
|
4670
|
+
/* @__PURE__ */ m("path", { d: "M21 12a9 9 0 0 1-15 6.7L3 16" })
|
|
4631
4671
|
]
|
|
4632
4672
|
}
|
|
4633
4673
|
),
|
|
4634
|
-
n && /* @__PURE__ */
|
|
4674
|
+
n && /* @__PURE__ */ m("span", { children: n })
|
|
4635
4675
|
] }) })
|
|
4636
4676
|
] });
|
|
4637
4677
|
}
|
|
4638
|
-
at(
|
|
4678
|
+
at(fi, "best-refresh-button", [], { shadow: !0 });
|
|
4639
4679
|
const Pi = [
|
|
4640
4680
|
"best-recharge",
|
|
4641
4681
|
"best-statistical-balance",
|
|
@@ -4643,10 +4683,10 @@ const Pi = [
|
|
|
4643
4683
|
];
|
|
4644
4684
|
export {
|
|
4645
4685
|
Pi as components,
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4686
|
+
Fi as getBalanceData,
|
|
4687
|
+
Oi as initFundUnit,
|
|
4688
|
+
pi as npmTest,
|
|
4689
|
+
hi as printCurrentTime,
|
|
4690
|
+
vo as refreshBalance,
|
|
4691
|
+
Ii as viteProxy
|
|
4652
4692
|
};
|