best-unit 2.0.15 → 2.0.17
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 +10 -10
- package/dist/best-unit.js +286 -280
- package/package.json +1 -1
- package/src/api/index.ts +12 -0
- package/src/components/business/statistical-balance/index.tsx +5 -1
package/dist/best-unit.js
CHANGED
|
@@ -44,15 +44,15 @@ function Te() {
|
|
|
44
44
|
for (var e, t, n, r, o, a, i, s = 1; Z.length; ) Z.length > s && Z.sort(en), e = Z.shift(), s = Z.length, e.__d && (n = void 0, o = (r = (t = e).__v).__e, a = [], i = [], t.__P && ((n = K({}, r)).__v = r.__v + 1, I.vnode && I.vnode(n), lt(t.__P, n, r, t.__n, t.__P.namespaceURI, 32 & r.__u ? [o] : null, a, o ?? ae(r), !!(32 & r.__u), i), n.__v = r.__v, n.__.__k[n.__i] = n, sn(a, n, i), n.__e != o && rn(n)));
|
|
45
45
|
Te.__r = 0;
|
|
46
46
|
}
|
|
47
|
-
function on(e, t, n, r, o, a, i, s,
|
|
47
|
+
function on(e, t, n, r, o, a, i, s, f, c, p) {
|
|
48
48
|
var u, x, m, h, _, b, S = r && r.__k || nn, L = t.length;
|
|
49
|
-
for (
|
|
50
|
-
return n.__e = _,
|
|
49
|
+
for (f = er(n, t, S, f, L), u = 0; u < L; u++) (m = n.__k[u]) != null && (x = m.__i == -1 ? me : S[m.__i] || me, m.__i = u, b = lt(e, m, x, o, a, i, s, f, c, p), h = m.__e, m.ref && x.ref != m.ref && (x.ref && ct(x.ref, null, m), p.push(m.ref, m.__c || h, m)), _ == null && h != null && (_ = h), 4 & m.__u || x.__k === m.__k ? f = an(m, f, e) : typeof m.type == "function" && b !== void 0 ? f = b : h && (f = h.nextSibling), m.__u &= -7);
|
|
50
|
+
return n.__e = _, f;
|
|
51
51
|
}
|
|
52
52
|
function er(e, t, n, r, o) {
|
|
53
|
-
var a, i, s,
|
|
54
|
-
for (e.__k = new Array(o), a = 0; a < o; a++) (i = t[a]) != null && typeof i != "boolean" && typeof i != "function" ? (
|
|
55
|
-
if (u) for (a = 0; a <
|
|
53
|
+
var a, i, s, f, c, p = n.length, u = p, x = 0;
|
|
54
|
+
for (e.__k = new Array(o), a = 0; a < o; a++) (i = t[a]) != null && typeof i != "boolean" && typeof i != "function" ? (f = a + x, (i = e.__k[a] = typeof i == "string" || typeof i == "number" || typeof i == "bigint" || i.constructor == String ? he(null, i, null, null, null) : De(i) ? he(ne, { children: i }, null, null, null) : i.constructor == null && i.__b > 0 ? he(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i).__ = e, i.__b = e.__b + 1, s = null, (c = i.__i = tr(i, n, f, u)) != -1 && (u--, (s = n[c]) && (s.__u |= 2)), s == null || s.__v == null ? (c == -1 && (o > p ? x-- : o < p && x++), typeof i.type != "function" && (i.__u |= 4)) : c != f && (c == f - 1 ? x-- : c == f + 1 ? x++ : (c > f ? x-- : x++, i.__u |= 4))) : e.__k[a] = null;
|
|
55
|
+
if (u) for (a = 0; a < p; a++) (s = n[a]) != null && (2 & s.__u) == 0 && (s.__e == r && (r = ae(s)), cn(s, s));
|
|
56
56
|
return r;
|
|
57
57
|
}
|
|
58
58
|
function an(e, t, n) {
|
|
@@ -68,15 +68,15 @@ function an(e, t, n) {
|
|
|
68
68
|
return t;
|
|
69
69
|
}
|
|
70
70
|
function tr(e, t, n, r) {
|
|
71
|
-
var o, a, i = e.key, s = e.type,
|
|
72
|
-
if (
|
|
73
|
-
if (r > (
|
|
71
|
+
var o, a, i = e.key, s = e.type, f = t[n];
|
|
72
|
+
if (f === null && e.key == null || f && i == f.key && s == f.type && (2 & f.__u) == 0) return n;
|
|
73
|
+
if (r > (f != null && (2 & f.__u) == 0 ? 1 : 0)) for (o = n - 1, a = n + 1; o >= 0 || a < t.length; ) {
|
|
74
74
|
if (o >= 0) {
|
|
75
|
-
if ((
|
|
75
|
+
if ((f = t[o]) && (2 & f.__u) == 0 && i == f.key && s == f.type) return o;
|
|
76
76
|
o--;
|
|
77
77
|
}
|
|
78
78
|
if (a < t.length) {
|
|
79
|
-
if ((
|
|
79
|
+
if ((f = t[a]) && (2 & f.__u) == 0 && i == f.key && s == f.type) return a;
|
|
80
80
|
a++;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
@@ -113,12 +113,12 @@ function kt(e) {
|
|
|
113
113
|
}
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
|
-
function lt(e, t, n, r, o, a, i, s,
|
|
117
|
-
var
|
|
116
|
+
function lt(e, t, n, r, o, a, i, s, f, c) {
|
|
117
|
+
var p, u, x, m, h, _, b, S, L, T, A, M, R, P, w, F, U, W = t.type;
|
|
118
118
|
if (t.constructor != null) return null;
|
|
119
|
-
128 & n.__u && (
|
|
119
|
+
128 & n.__u && (f = !!(32 & n.__u), a = [s = t.__e = n.__e]), (p = I.__b) && p(t);
|
|
120
120
|
e: if (typeof W == "function") try {
|
|
121
|
-
if (S = t.props, L = "prototype" in W && W.prototype.render, T = (
|
|
121
|
+
if (S = t.props, L = "prototype" in W && W.prototype.render, T = (p = W.contextType) && r[p.__c], A = p ? T ? T.props.value : p.__ : r, n.__c ? b = (u = t.__c = n.__c).__ = u.__E : (L ? t.__c = u = new W(S, A) : (t.__c = u = new Ae(S, A), u.constructor = W, u.render = rr), T && T.sub(u), u.props = S, u.state || (u.state = {}), u.context = A, u.__n = r, x = u.__d = !0, u.__h = [], u._sb = []), L && u.__s == null && (u.__s = u.state), L && W.getDerivedStateFromProps != null && (u.__s == u.state && (u.__s = K({}, u.__s)), K(u.__s, W.getDerivedStateFromProps(S, u.__s))), m = u.props, h = u.state, u.__v = t, x) L && W.getDerivedStateFromProps == null && u.componentWillMount != null && u.componentWillMount(), L && u.componentDidMount != null && u.__h.push(u.componentDidMount);
|
|
122
122
|
else {
|
|
123
123
|
if (L && W.getDerivedStateFromProps == null && S !== m && u.componentWillReceiveProps != null && u.componentWillReceiveProps(S, A), !u.__e && u.shouldComponentUpdate != null && u.shouldComponentUpdate(S, u.__s, A) === !1 || t.__v == n.__v) {
|
|
124
124
|
for (t.__v != n.__v && (u.props = S, u.state = u.__s, u.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(V) {
|
|
@@ -132,22 +132,22 @@ function lt(e, t, n, r, o, a, i, s, p, c) {
|
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
134
|
if (u.context = A, u.props = S, u.__P = e, u.__e = !1, R = I.__r, P = 0, L) {
|
|
135
|
-
for (u.state = u.__s, u.__d = !1, R && R(t),
|
|
135
|
+
for (u.state = u.__s, u.__d = !1, R && R(t), p = u.render(u.props, u.state, u.context), w = 0; w < u._sb.length; w++) u.__h.push(u._sb[w]);
|
|
136
136
|
u._sb = [];
|
|
137
137
|
} else do
|
|
138
|
-
u.__d = !1, R && R(t),
|
|
138
|
+
u.__d = !1, R && R(t), p = u.render(u.props, u.state, u.context), u.state = u.__s;
|
|
139
139
|
while (u.__d && ++P < 25);
|
|
140
|
-
u.state = u.__s, u.getChildContext != null && (r = K(K({}, r), u.getChildContext())), L && !x && u.getSnapshotBeforeUpdate != null && (_ = u.getSnapshotBeforeUpdate(m, h)), F =
|
|
140
|
+
u.state = u.__s, u.getChildContext != null && (r = K(K({}, r), u.getChildContext())), L && !x && u.getSnapshotBeforeUpdate != null && (_ = u.getSnapshotBeforeUpdate(m, h)), F = p, p != null && p.type === ne && p.key == null && (F = ln(p.props.children)), s = on(e, De(F) ? F : [F], t, n, r, o, a, i, s, f, c), u.base = t.__e, t.__u &= -161, u.__h.length && i.push(u), b && (u.__E = u.__ = null);
|
|
141
141
|
} catch (V) {
|
|
142
|
-
if (t.__v = null,
|
|
143
|
-
for (t.__u |=
|
|
142
|
+
if (t.__v = null, f || a != null) if (V.then) {
|
|
143
|
+
for (t.__u |= f ? 160 : 128; s && s.nodeType == 8 && s.nextSibling; ) s = s.nextSibling;
|
|
144
144
|
a[a.indexOf(s)] = null, t.__e = s;
|
|
145
145
|
} else for (U = a.length; U--; ) st(a[U]);
|
|
146
146
|
else t.__e = n.__e, t.__k = n.__k;
|
|
147
147
|
I.__e(V, t, n);
|
|
148
148
|
}
|
|
149
|
-
else a == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : s = t.__e = nr(n.__e, t, n, r, o, a, i,
|
|
150
|
-
return (
|
|
149
|
+
else a == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : s = t.__e = nr(n.__e, t, n, r, o, a, i, f, c);
|
|
150
|
+
return (p = I.diffed) && p(t), 128 & t.__u ? void 0 : s;
|
|
151
151
|
}
|
|
152
152
|
function sn(e, t, n) {
|
|
153
153
|
for (var r = 0; r < n.length; r++) ct(n[r], n[++r], n[++r]);
|
|
@@ -164,8 +164,8 @@ function sn(e, t, n) {
|
|
|
164
164
|
function ln(e) {
|
|
165
165
|
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : De(e) ? e.map(ln) : K({}, e);
|
|
166
166
|
}
|
|
167
|
-
function nr(e, t, n, r, o, a, i, s,
|
|
168
|
-
var c,
|
|
167
|
+
function nr(e, t, n, r, o, a, i, s, f) {
|
|
168
|
+
var c, p, u, x, m, h, _, b = n.props, S = t.props, L = t.type;
|
|
169
169
|
if (L == "svg" ? o = "http://www.w3.org/2000/svg" : L == "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), a != null) {
|
|
170
170
|
for (c = 0; c < a.length; c++) if ((m = a[c]) && "setAttribute" in m == !!L && (L ? m.localName == L : m.nodeType == 3)) {
|
|
171
171
|
e = m, a[c] = null;
|
|
@@ -186,9 +186,9 @@ function nr(e, t, n, r, o, a, i, s, p) {
|
|
|
186
186
|
Le(e, c, null, m, o);
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
for (c in S) m = S[c], c == "children" ? x = m : c == "dangerouslySetInnerHTML" ?
|
|
190
|
-
if (
|
|
191
|
-
else if (u && (e.innerHTML = ""), on(t.type == "template" ? e.content : e, De(x) ? x : [x], t, n, r, L == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, a, i, a ? a[0] : n.__k && ae(n, 0), s,
|
|
189
|
+
for (c in S) m = S[c], c == "children" ? x = m : c == "dangerouslySetInnerHTML" ? p = m : c == "value" ? h = m : c == "checked" ? _ = m : s && typeof m != "function" || b[c] === m || Le(e, c, m, b[c], o);
|
|
190
|
+
if (p) s || u && (p.__html == u.__html || p.__html == e.innerHTML) || (e.innerHTML = p.__html), t.__k = [];
|
|
191
|
+
else if (u && (e.innerHTML = ""), on(t.type == "template" ? e.content : e, De(x) ? x : [x], t, n, r, L == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, a, i, a ? a[0] : n.__k && ae(n, 0), s, f), a != null) for (c = a.length; c--; ) st(a[c]);
|
|
192
192
|
s || (c = "value", L == "progress" && h == null ? e.removeAttribute("value") : h != null && (h !== e[c] || L == "progress" && !h || L == "option" && h != b[c]) && Le(e, c, h, b[c], o), c = "checked", _ != null && _ != e[c] && Le(e, c, _, b[c], o));
|
|
193
193
|
}
|
|
194
194
|
return e;
|
|
@@ -249,10 +249,10 @@ ye = nn.slice, I = { __e: function(e, t, n, r) {
|
|
|
249
249
|
var or = 0;
|
|
250
250
|
function d(e, t, n, r, o, a) {
|
|
251
251
|
t || (t = {});
|
|
252
|
-
var i, s,
|
|
253
|
-
if ("ref" in
|
|
254
|
-
var c = { type: e, props:
|
|
255
|
-
if (typeof e == "function" && (i = e.defaultProps)) for (s in i)
|
|
252
|
+
var i, s, f = t;
|
|
253
|
+
if ("ref" in f) for (s in f = {}, t) s == "ref" ? i = t[s] : f[s] = t[s];
|
|
254
|
+
var c = { type: e, props: f, key: n, ref: i, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --or, __i: -1, __u: 0, __source: o, __self: a };
|
|
255
|
+
if (typeof e == "function" && (i = e.defaultProps)) for (s in i) f[s] === void 0 && (f[s] = i[s]);
|
|
256
256
|
return I.vnode && I.vnode(c), c;
|
|
257
257
|
}
|
|
258
258
|
var ge, D, Je, Et, Be = 0, fn = [], O = I, Ct = O.__b, vt = O.__r, Mt = O.diffed, Tt = O.__c, Bt = O.unmount, Rt = O.__;
|
|
@@ -267,33 +267,33 @@ function B(e) {
|
|
|
267
267
|
function ir(e, t, n) {
|
|
268
268
|
var r = dt(ge++, 2);
|
|
269
269
|
if (r.t = e, !r.__c && (r.__ = [hn(void 0, t), function(s) {
|
|
270
|
-
var
|
|
271
|
-
|
|
270
|
+
var f = r.__N ? r.__N[0] : r.__[0], c = r.t(f, s);
|
|
271
|
+
f !== c && (r.__N = [c, r.__[1]], r.__c.setState({}));
|
|
272
272
|
}], r.__c = D, !D.__f)) {
|
|
273
|
-
var o = function(s,
|
|
273
|
+
var o = function(s, f, c) {
|
|
274
274
|
if (!r.__c.__H) return !0;
|
|
275
|
-
var
|
|
275
|
+
var p = r.__c.__H.__.filter(function(x) {
|
|
276
276
|
return !!x.__c;
|
|
277
277
|
});
|
|
278
|
-
if (
|
|
278
|
+
if (p.every(function(x) {
|
|
279
279
|
return !x.__N;
|
|
280
|
-
})) return !a || a.call(this, s,
|
|
280
|
+
})) return !a || a.call(this, s, f, c);
|
|
281
281
|
var u = r.__c.props !== s;
|
|
282
|
-
return
|
|
282
|
+
return p.forEach(function(x) {
|
|
283
283
|
if (x.__N) {
|
|
284
284
|
var m = x.__[0];
|
|
285
285
|
x.__ = x.__N, x.__N = void 0, m !== x.__[0] && (u = !0);
|
|
286
286
|
}
|
|
287
|
-
}), a && a.call(this, s,
|
|
287
|
+
}), a && a.call(this, s, f, c) || u;
|
|
288
288
|
};
|
|
289
289
|
D.__f = !0;
|
|
290
290
|
var a = D.shouldComponentUpdate, i = D.componentWillUpdate;
|
|
291
|
-
D.componentWillUpdate = function(s,
|
|
291
|
+
D.componentWillUpdate = function(s, f, c) {
|
|
292
292
|
if (this.__e) {
|
|
293
|
-
var
|
|
294
|
-
a = void 0, o(s,
|
|
293
|
+
var p = a;
|
|
294
|
+
a = void 0, o(s, f, c), a = p;
|
|
295
295
|
}
|
|
296
|
-
i && i.call(this, s,
|
|
296
|
+
i && i.call(this, s, f, c);
|
|
297
297
|
}, D.shouldComponentUpdate = o;
|
|
298
298
|
}
|
|
299
299
|
return r.__N || r.__;
|
|
@@ -530,8 +530,8 @@ const Hr = (e) => {
|
|
|
530
530
|
t[o] = r;
|
|
531
531
|
const a = le(r) ? [] : {};
|
|
532
532
|
return xe(r, (i, s) => {
|
|
533
|
-
const
|
|
534
|
-
!be(
|
|
533
|
+
const f = n(i, o + 1);
|
|
534
|
+
!be(f) && (a[s] = f);
|
|
535
535
|
}), t[o] = void 0, a;
|
|
536
536
|
}
|
|
537
537
|
}
|
|
@@ -650,8 +650,8 @@ Object.defineProperties(C, An);
|
|
|
650
650
|
Object.defineProperty(wn, "isAxiosError", { value: !0 });
|
|
651
651
|
C.from = (e, t, n, r, o, a) => {
|
|
652
652
|
const i = Object.create(wn);
|
|
653
|
-
return g.toFlatObject(e, i, function(
|
|
654
|
-
return
|
|
653
|
+
return g.toFlatObject(e, i, function(f) {
|
|
654
|
+
return f !== Error.prototype;
|
|
655
655
|
}, (s) => s !== "isAxiosError"), C.call(i, e.message, t, n, r, o), i.cause = e, i.name = e.name, a && Object.assign(i, a), i;
|
|
656
656
|
};
|
|
657
657
|
const Yr = null;
|
|
@@ -682,7 +682,7 @@ function $e(e, t, n) {
|
|
|
682
682
|
}, !1, function(_, b) {
|
|
683
683
|
return !g.isUndefined(b[_]);
|
|
684
684
|
});
|
|
685
|
-
const r = n.metaTokens, o = n.visitor ||
|
|
685
|
+
const r = n.metaTokens, o = n.visitor || p, a = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && g.isSpecCompliantForm(t);
|
|
686
686
|
if (!g.isFunction(o))
|
|
687
687
|
throw new TypeError("visitor must be a function");
|
|
688
688
|
function c(h) {
|
|
@@ -691,11 +691,11 @@ function $e(e, t, n) {
|
|
|
691
691
|
return h.toISOString();
|
|
692
692
|
if (g.isBoolean(h))
|
|
693
693
|
return h.toString();
|
|
694
|
-
if (!
|
|
694
|
+
if (!f && g.isBlob(h))
|
|
695
695
|
throw new C("Blob is not supported. Use a Buffer instead.");
|
|
696
|
-
return g.isArrayBuffer(h) || g.isTypedArray(h) ?
|
|
696
|
+
return g.isArrayBuffer(h) || g.isTypedArray(h) ? f && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function p(h, _, b) {
|
|
699
699
|
let S = h;
|
|
700
700
|
if (h && !b && typeof h == "object") {
|
|
701
701
|
if (g.endsWith(_, "{}"))
|
|
@@ -712,7 +712,7 @@ function $e(e, t, n) {
|
|
|
712
712
|
return et(h) ? !0 : (t.append(Dt(b, _, a), c(h)), !1);
|
|
713
713
|
}
|
|
714
714
|
const u = [], x = Object.assign(Kr, {
|
|
715
|
-
defaultVisitor:
|
|
715
|
+
defaultVisitor: p,
|
|
716
716
|
convertValue: c,
|
|
717
717
|
isVisitable: et
|
|
718
718
|
});
|
|
@@ -883,8 +883,8 @@ function Mn(e) {
|
|
|
883
883
|
function t(n, r, o, a) {
|
|
884
884
|
let i = n[a++];
|
|
885
885
|
if (i === "__proto__") return !0;
|
|
886
|
-
const s = Number.isFinite(+i),
|
|
887
|
-
return i = !i && g.isArray(o) ? o.length : i,
|
|
886
|
+
const s = Number.isFinite(+i), f = a >= n.length;
|
|
887
|
+
return i = !i && g.isArray(o) ? o.length : i, f ? (g.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !s) : ((!o[i] || !g.isObject(o[i])) && (o[i] = []), t(n, r, o[i], a) && g.isArray(o[i]) && (o[i] = lo(o[i])), !s);
|
|
888
888
|
}
|
|
889
889
|
if (g.isFormData(e) && g.isFunction(e.entries)) {
|
|
890
890
|
const n = {};
|
|
@@ -922,10 +922,10 @@ const _e = {
|
|
|
922
922
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
923
923
|
return ao(t, this.formSerializer).toString();
|
|
924
924
|
if ((s = g.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
925
|
-
const
|
|
925
|
+
const f = this.env && this.env.FormData;
|
|
926
926
|
return $e(
|
|
927
927
|
s ? { "files[]": t } : t,
|
|
928
|
-
|
|
928
|
+
f && new f(),
|
|
929
929
|
this.formSerializer
|
|
930
930
|
);
|
|
931
931
|
}
|
|
@@ -1043,24 +1043,24 @@ let q = class {
|
|
|
1043
1043
|
}
|
|
1044
1044
|
set(t, n, r) {
|
|
1045
1045
|
const o = this;
|
|
1046
|
-
function a(s,
|
|
1047
|
-
const
|
|
1048
|
-
if (!
|
|
1046
|
+
function a(s, f, c) {
|
|
1047
|
+
const p = pe(f);
|
|
1048
|
+
if (!p)
|
|
1049
1049
|
throw new Error("header name must be a non-empty string");
|
|
1050
|
-
const u = g.findKey(o,
|
|
1051
|
-
(!u || o[u] === void 0 || c === !0 || c === void 0 && o[u] !== !1) && (o[u ||
|
|
1050
|
+
const u = g.findKey(o, p);
|
|
1051
|
+
(!u || o[u] === void 0 || c === !0 || c === void 0 && o[u] !== !1) && (o[u || f] = Ce(s));
|
|
1052
1052
|
}
|
|
1053
|
-
const i = (s,
|
|
1053
|
+
const i = (s, f) => g.forEach(s, (c, p) => a(c, p, f));
|
|
1054
1054
|
if (g.isPlainObject(t) || t instanceof this.constructor)
|
|
1055
1055
|
i(t, n);
|
|
1056
1056
|
else if (g.isString(t) && (t = t.trim()) && !ho(t))
|
|
1057
1057
|
i(fo(t), n);
|
|
1058
1058
|
else if (g.isObject(t) && g.isIterable(t)) {
|
|
1059
|
-
let s = {},
|
|
1060
|
-
for (const
|
|
1061
|
-
if (!g.isArray(
|
|
1059
|
+
let s = {}, f, c;
|
|
1060
|
+
for (const p of t) {
|
|
1061
|
+
if (!g.isArray(p))
|
|
1062
1062
|
throw TypeError("Object iterator must return a key-value pair");
|
|
1063
|
-
s[c =
|
|
1063
|
+
s[c = p[0]] = (f = s[c]) ? g.isArray(f) ? [...f, p[1]] : [f, p[1]] : p[1];
|
|
1064
1064
|
}
|
|
1065
1065
|
i(s, n);
|
|
1066
1066
|
} else
|
|
@@ -1208,26 +1208,26 @@ function yo(e, t) {
|
|
|
1208
1208
|
e = e || 10;
|
|
1209
1209
|
const n = new Array(e), r = new Array(e);
|
|
1210
1210
|
let o = 0, a = 0, i;
|
|
1211
|
-
return t = t !== void 0 ? t : 1e3, function(
|
|
1212
|
-
const c = Date.now(),
|
|
1213
|
-
i || (i = c), n[o] =
|
|
1211
|
+
return t = t !== void 0 ? t : 1e3, function(f) {
|
|
1212
|
+
const c = Date.now(), p = r[a];
|
|
1213
|
+
i || (i = c), n[o] = f, r[o] = c;
|
|
1214
1214
|
let u = a, x = 0;
|
|
1215
1215
|
for (; u !== o; )
|
|
1216
1216
|
x += n[u++], u = u % e;
|
|
1217
1217
|
if (o = (o + 1) % e, o === a && (a = (a + 1) % e), c - i < t)
|
|
1218
1218
|
return;
|
|
1219
|
-
const m =
|
|
1219
|
+
const m = p && c - p;
|
|
1220
1220
|
return m ? Math.round(x * 1e3 / m) : void 0;
|
|
1221
1221
|
};
|
|
1222
1222
|
}
|
|
1223
1223
|
function xo(e, t) {
|
|
1224
1224
|
let n = 0, r = 1e3 / t, o, a;
|
|
1225
|
-
const i = (c,
|
|
1226
|
-
n =
|
|
1225
|
+
const i = (c, p = Date.now()) => {
|
|
1226
|
+
n = p, o = null, a && (clearTimeout(a), a = null), e.apply(null, c);
|
|
1227
1227
|
};
|
|
1228
1228
|
return [(...c) => {
|
|
1229
|
-
const
|
|
1230
|
-
u >= r ? i(c,
|
|
1229
|
+
const p = Date.now(), u = p - n;
|
|
1230
|
+
u >= r ? i(c, p) : (o = c, a || (a = setTimeout(() => {
|
|
1231
1231
|
a = null, i(o);
|
|
1232
1232
|
}, r - u)));
|
|
1233
1233
|
}, () => o && i(o)];
|
|
@@ -1236,15 +1236,15 @@ const Re = (e, t, n = 3) => {
|
|
|
1236
1236
|
let r = 0;
|
|
1237
1237
|
const o = yo(50, 250);
|
|
1238
1238
|
return xo((a) => {
|
|
1239
|
-
const i = a.loaded, s = a.lengthComputable ? a.total : void 0,
|
|
1239
|
+
const i = a.loaded, s = a.lengthComputable ? a.total : void 0, f = i - r, c = o(f), p = i <= s;
|
|
1240
1240
|
r = i;
|
|
1241
1241
|
const u = {
|
|
1242
1242
|
loaded: i,
|
|
1243
1243
|
total: s,
|
|
1244
1244
|
progress: s ? i / s : void 0,
|
|
1245
|
-
bytes:
|
|
1245
|
+
bytes: f,
|
|
1246
1246
|
rate: c || void 0,
|
|
1247
|
-
estimated: c && s &&
|
|
1247
|
+
estimated: c && s && p ? (s - i) / c : void 0,
|
|
1248
1248
|
event: a,
|
|
1249
1249
|
lengthComputable: s != null,
|
|
1250
1250
|
[t ? "download" : "upload"]: !0
|
|
@@ -1302,32 +1302,32 @@ const Wt = (e) => e instanceof q ? { ...e } : e;
|
|
|
1302
1302
|
function te(e, t) {
|
|
1303
1303
|
t = t || {};
|
|
1304
1304
|
const n = {};
|
|
1305
|
-
function r(c,
|
|
1306
|
-
return g.isPlainObject(c) && g.isPlainObject(
|
|
1305
|
+
function r(c, p, u, x) {
|
|
1306
|
+
return g.isPlainObject(c) && g.isPlainObject(p) ? g.merge.call({ caseless: x }, c, p) : g.isPlainObject(p) ? g.merge({}, p) : g.isArray(p) ? p.slice() : p;
|
|
1307
1307
|
}
|
|
1308
|
-
function o(c,
|
|
1309
|
-
if (g.isUndefined(
|
|
1308
|
+
function o(c, p, u, x) {
|
|
1309
|
+
if (g.isUndefined(p)) {
|
|
1310
1310
|
if (!g.isUndefined(c))
|
|
1311
1311
|
return r(void 0, c, u, x);
|
|
1312
|
-
} else return r(c,
|
|
1312
|
+
} else return r(c, p, u, x);
|
|
1313
1313
|
}
|
|
1314
|
-
function a(c,
|
|
1315
|
-
if (!g.isUndefined(
|
|
1316
|
-
return r(void 0,
|
|
1314
|
+
function a(c, p) {
|
|
1315
|
+
if (!g.isUndefined(p))
|
|
1316
|
+
return r(void 0, p);
|
|
1317
1317
|
}
|
|
1318
|
-
function i(c,
|
|
1319
|
-
if (g.isUndefined(
|
|
1318
|
+
function i(c, p) {
|
|
1319
|
+
if (g.isUndefined(p)) {
|
|
1320
1320
|
if (!g.isUndefined(c))
|
|
1321
1321
|
return r(void 0, c);
|
|
1322
|
-
} else return r(void 0,
|
|
1322
|
+
} else return r(void 0, p);
|
|
1323
1323
|
}
|
|
1324
|
-
function s(c,
|
|
1324
|
+
function s(c, p, u) {
|
|
1325
1325
|
if (u in t)
|
|
1326
|
-
return r(c,
|
|
1326
|
+
return r(c, p);
|
|
1327
1327
|
if (u in e)
|
|
1328
1328
|
return r(void 0, c);
|
|
1329
1329
|
}
|
|
1330
|
-
const
|
|
1330
|
+
const f = {
|
|
1331
1331
|
url: a,
|
|
1332
1332
|
method: a,
|
|
1333
1333
|
data: a,
|
|
@@ -1356,11 +1356,11 @@ function te(e, t) {
|
|
|
1356
1356
|
socketPath: i,
|
|
1357
1357
|
responseEncoding: i,
|
|
1358
1358
|
validateStatus: s,
|
|
1359
|
-
headers: (c,
|
|
1359
|
+
headers: (c, p, u) => o(Wt(c), Wt(p), u, !0)
|
|
1360
1360
|
};
|
|
1361
|
-
return g.forEach(Object.keys(Object.assign({}, e, t)), function(
|
|
1362
|
-
const u = p
|
|
1363
|
-
g.isUndefined(x) && u !== s || (n[
|
|
1361
|
+
return g.forEach(Object.keys(Object.assign({}, e, t)), function(p) {
|
|
1362
|
+
const u = f[p] || o, x = u(e[p], t[p], p);
|
|
1363
|
+
g.isUndefined(x) && u !== s || (n[p] = x);
|
|
1364
1364
|
}), n;
|
|
1365
1365
|
}
|
|
1366
1366
|
const Fn = (e) => {
|
|
@@ -1370,13 +1370,13 @@ const Fn = (e) => {
|
|
|
1370
1370
|
"Authorization",
|
|
1371
1371
|
"Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
|
|
1372
1372
|
);
|
|
1373
|
-
let
|
|
1373
|
+
let f;
|
|
1374
1374
|
if (g.isFormData(n)) {
|
|
1375
1375
|
if ($.hasStandardBrowserEnv || $.hasStandardBrowserWebWorkerEnv)
|
|
1376
1376
|
i.setContentType(void 0);
|
|
1377
|
-
else if ((
|
|
1378
|
-
const [c, ...
|
|
1379
|
-
i.setContentType([c || "multipart/form-data", ...
|
|
1377
|
+
else if ((f = i.getContentType()) !== !1) {
|
|
1378
|
+
const [c, ...p] = f ? f.split(";").map((u) => u.trim()).filter(Boolean) : [];
|
|
1379
|
+
i.setContentType([c || "multipart/form-data", ...p].join("; "));
|
|
1380
1380
|
}
|
|
1381
1381
|
}
|
|
1382
1382
|
if ($.hasStandardBrowserEnv && (r && g.isFunction(r) && (r = r(t)), r || r !== !1 && _o(t.url))) {
|
|
@@ -1389,9 +1389,9 @@ const Fn = (e) => {
|
|
|
1389
1389
|
const o = Fn(e);
|
|
1390
1390
|
let a = o.data;
|
|
1391
1391
|
const i = q.from(o.headers).normalize();
|
|
1392
|
-
let { responseType: s, onUploadProgress:
|
|
1392
|
+
let { responseType: s, onUploadProgress: f, onDownloadProgress: c } = o, p, u, x, m, h;
|
|
1393
1393
|
function _() {
|
|
1394
|
-
m && m(), h && h(), o.cancelToken && o.cancelToken.unsubscribe(
|
|
1394
|
+
m && m(), h && h(), o.cancelToken && o.cancelToken.unsubscribe(p), o.signal && o.signal.removeEventListener("abort", p);
|
|
1395
1395
|
}
|
|
1396
1396
|
let b = new XMLHttpRequest();
|
|
1397
1397
|
b.open(o.method.toUpperCase(), o.url, !0), b.timeout = o.timeout;
|
|
@@ -1431,9 +1431,9 @@ const Fn = (e) => {
|
|
|
1431
1431
|
)), b = null;
|
|
1432
1432
|
}, a === void 0 && i.setContentType(null), "setRequestHeader" in b && g.forEach(i.toJSON(), function(A, M) {
|
|
1433
1433
|
b.setRequestHeader(M, A);
|
|
1434
|
-
}), g.isUndefined(o.withCredentials) || (b.withCredentials = !!o.withCredentials), s && s !== "json" && (b.responseType = o.responseType), c && ([x, h] = Re(c, !0), b.addEventListener("progress", x)),
|
|
1434
|
+
}), g.isUndefined(o.withCredentials) || (b.withCredentials = !!o.withCredentials), s && s !== "json" && (b.responseType = o.responseType), c && ([x, h] = Re(c, !0), b.addEventListener("progress", x)), f && b.upload && ([u, m] = Re(f), b.upload.addEventListener("progress", u), b.upload.addEventListener("loadend", m)), (o.cancelToken || o.signal) && (p = (T) => {
|
|
1435
1435
|
b && (r(!T || T.type ? new ce(null, e, b) : T), b.abort(), b = null);
|
|
1436
|
-
}, o.cancelToken && o.cancelToken.subscribe(
|
|
1436
|
+
}, o.cancelToken && o.cancelToken.subscribe(p), o.signal && (o.signal.aborted ? p() : o.signal.addEventListener("abort", p)));
|
|
1437
1437
|
const L = bo(o.url);
|
|
1438
1438
|
if (L && $.protocols.indexOf(L) === -1) {
|
|
1439
1439
|
r(new C("Unsupported protocol " + L + ":", C.ERR_BAD_REQUEST, e));
|
|
@@ -1448,8 +1448,8 @@ const Fn = (e) => {
|
|
|
1448
1448
|
const a = function(c) {
|
|
1449
1449
|
if (!o) {
|
|
1450
1450
|
o = !0, s();
|
|
1451
|
-
const
|
|
1452
|
-
r.abort(
|
|
1451
|
+
const p = c instanceof Error ? c : this.reason;
|
|
1452
|
+
r.abort(p instanceof C ? p : new ce(p instanceof Error ? p.message : p));
|
|
1453
1453
|
}
|
|
1454
1454
|
};
|
|
1455
1455
|
let i = t && setTimeout(() => {
|
|
@@ -1461,8 +1461,8 @@ const Fn = (e) => {
|
|
|
1461
1461
|
}), e = null);
|
|
1462
1462
|
};
|
|
1463
1463
|
e.forEach((c) => c.addEventListener("abort", a));
|
|
1464
|
-
const { signal:
|
|
1465
|
-
return
|
|
1464
|
+
const { signal: f } = r;
|
|
1465
|
+
return f.unsubscribe = () => g.asap(s), f;
|
|
1466
1466
|
}
|
|
1467
1467
|
}, Co = function* (e, t) {
|
|
1468
1468
|
let n = e.byteLength;
|
|
@@ -1494,29 +1494,29 @@ const Fn = (e) => {
|
|
|
1494
1494
|
}
|
|
1495
1495
|
}, $t = (e, t, n, r) => {
|
|
1496
1496
|
const o = vo(e, t);
|
|
1497
|
-
let a = 0, i, s = (
|
|
1498
|
-
i || (i = !0, r && r(
|
|
1497
|
+
let a = 0, i, s = (f) => {
|
|
1498
|
+
i || (i = !0, r && r(f));
|
|
1499
1499
|
};
|
|
1500
1500
|
return new ReadableStream({
|
|
1501
|
-
async pull(
|
|
1501
|
+
async pull(f) {
|
|
1502
1502
|
try {
|
|
1503
|
-
const { done: c, value:
|
|
1503
|
+
const { done: c, value: p } = await o.next();
|
|
1504
1504
|
if (c) {
|
|
1505
|
-
s(),
|
|
1505
|
+
s(), f.close();
|
|
1506
1506
|
return;
|
|
1507
1507
|
}
|
|
1508
|
-
let u =
|
|
1508
|
+
let u = p.byteLength;
|
|
1509
1509
|
if (n) {
|
|
1510
1510
|
let x = a += u;
|
|
1511
1511
|
n(x);
|
|
1512
1512
|
}
|
|
1513
|
-
|
|
1513
|
+
f.enqueue(new Uint8Array(p));
|
|
1514
1514
|
} catch (c) {
|
|
1515
1515
|
throw s(c), c;
|
|
1516
1516
|
}
|
|
1517
1517
|
},
|
|
1518
|
-
cancel(
|
|
1519
|
-
return s(
|
|
1518
|
+
cancel(f) {
|
|
1519
|
+
return s(f), o.return();
|
|
1520
1520
|
}
|
|
1521
1521
|
}, {
|
|
1522
1522
|
highWaterMark: 2
|
|
@@ -1573,9 +1573,9 @@ const Ro = async (e) => {
|
|
|
1573
1573
|
cancelToken: a,
|
|
1574
1574
|
timeout: i,
|
|
1575
1575
|
onDownloadProgress: s,
|
|
1576
|
-
onUploadProgress:
|
|
1576
|
+
onUploadProgress: f,
|
|
1577
1577
|
responseType: c,
|
|
1578
|
-
headers:
|
|
1578
|
+
headers: p,
|
|
1579
1579
|
withCredentials: u = "same-origin",
|
|
1580
1580
|
fetchOptions: x
|
|
1581
1581
|
} = Fn(e);
|
|
@@ -1586,16 +1586,16 @@ const Ro = async (e) => {
|
|
|
1586
1586
|
});
|
|
1587
1587
|
let b;
|
|
1588
1588
|
try {
|
|
1589
|
-
if (
|
|
1589
|
+
if (f && Bo && n !== "get" && n !== "head" && (b = await Fo(p, r)) !== 0) {
|
|
1590
1590
|
let M = new Request(t, {
|
|
1591
1591
|
method: "POST",
|
|
1592
1592
|
body: r,
|
|
1593
1593
|
duplex: "half"
|
|
1594
1594
|
}), R;
|
|
1595
|
-
if (g.isFormData(r) && (R = M.headers.get("content-type")) &&
|
|
1595
|
+
if (g.isFormData(r) && (R = M.headers.get("content-type")) && p.setContentType(R), M.body) {
|
|
1596
1596
|
const [P, w] = Nt(
|
|
1597
1597
|
b,
|
|
1598
|
-
Re(Ut(
|
|
1598
|
+
Re(Ut(f))
|
|
1599
1599
|
);
|
|
1600
1600
|
r = $t(M.body, Ht, P, w);
|
|
1601
1601
|
}
|
|
@@ -1606,7 +1606,7 @@ const Ro = async (e) => {
|
|
|
1606
1606
|
...x,
|
|
1607
1607
|
signal: m,
|
|
1608
1608
|
method: n.toUpperCase(),
|
|
1609
|
-
headers:
|
|
1609
|
+
headers: p.normalize().toJSON(),
|
|
1610
1610
|
body: r,
|
|
1611
1611
|
duplex: "half",
|
|
1612
1612
|
credentials: S ? u : void 0
|
|
@@ -1680,7 +1680,7 @@ const jt = (e) => `- ${e}`, Do = (e) => g.isFunction(e) || e === null || e === !
|
|
|
1680
1680
|
}
|
|
1681
1681
|
if (!r) {
|
|
1682
1682
|
const a = Object.entries(o).map(
|
|
1683
|
-
([s,
|
|
1683
|
+
([s, f]) => `adapter ${s} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1684
1684
|
);
|
|
1685
1685
|
let i = t ? a.length > 1 ? `since :
|
|
1686
1686
|
` + a.map(jt).join(`
|
|
@@ -1752,9 +1752,9 @@ function zo(e, t, n) {
|
|
|
1752
1752
|
for (; o-- > 0; ) {
|
|
1753
1753
|
const a = r[o], i = t[a];
|
|
1754
1754
|
if (i) {
|
|
1755
|
-
const s = e[a],
|
|
1756
|
-
if (
|
|
1757
|
-
throw new C("option " + a + " must be " +
|
|
1755
|
+
const s = e[a], f = s === void 0 || i(s, a, e);
|
|
1756
|
+
if (f !== !0)
|
|
1757
|
+
throw new C("option " + a + " must be " + f, C.ERR_BAD_OPTION_VALUE);
|
|
1758
1758
|
continue;
|
|
1759
1759
|
}
|
|
1760
1760
|
if (n !== !0)
|
|
@@ -1824,20 +1824,20 @@ let ee = class {
|
|
|
1824
1824
|
}
|
|
1825
1825
|
), n.headers = q.concat(i, a);
|
|
1826
1826
|
const s = [];
|
|
1827
|
-
let
|
|
1827
|
+
let f = !0;
|
|
1828
1828
|
this.interceptors.request.forEach(function(_) {
|
|
1829
|
-
typeof _.runWhen == "function" && _.runWhen(n) === !1 || (
|
|
1829
|
+
typeof _.runWhen == "function" && _.runWhen(n) === !1 || (f = f && _.synchronous, s.unshift(_.fulfilled, _.rejected));
|
|
1830
1830
|
});
|
|
1831
1831
|
const c = [];
|
|
1832
1832
|
this.interceptors.response.forEach(function(_) {
|
|
1833
1833
|
c.push(_.fulfilled, _.rejected);
|
|
1834
1834
|
});
|
|
1835
|
-
let
|
|
1836
|
-
if (!
|
|
1835
|
+
let p, u = 0, x;
|
|
1836
|
+
if (!f) {
|
|
1837
1837
|
const h = [qt.bind(this), void 0];
|
|
1838
|
-
for (h.unshift.apply(h, s), h.push.apply(h, c), x = h.length,
|
|
1839
|
-
|
|
1840
|
-
return
|
|
1838
|
+
for (h.unshift.apply(h, s), h.push.apply(h, c), x = h.length, p = Promise.resolve(n); u < x; )
|
|
1839
|
+
p = p.then(h[u++], h[u++]);
|
|
1840
|
+
return p;
|
|
1841
1841
|
}
|
|
1842
1842
|
x = s.length;
|
|
1843
1843
|
let m = n;
|
|
@@ -1851,13 +1851,13 @@ let ee = class {
|
|
|
1851
1851
|
}
|
|
1852
1852
|
}
|
|
1853
1853
|
try {
|
|
1854
|
-
|
|
1854
|
+
p = qt.call(this, m);
|
|
1855
1855
|
} catch (h) {
|
|
1856
1856
|
return Promise.reject(h);
|
|
1857
1857
|
}
|
|
1858
1858
|
for (u = 0, x = c.length; u < x; )
|
|
1859
|
-
|
|
1860
|
-
return
|
|
1859
|
+
p = p.then(c[u++], c[u++]);
|
|
1860
|
+
return p;
|
|
1861
1861
|
}
|
|
1862
1862
|
getUri(t) {
|
|
1863
1863
|
t = te(this.defaults, t);
|
|
@@ -2104,23 +2104,23 @@ function Uo(e = {}) {
|
|
|
2104
2104
|
break;
|
|
2105
2105
|
}
|
|
2106
2106
|
const { baseURL: o = r, timeout: a = 1e4, onError: i } = e, s = z.create({ baseURL: o, timeout: a });
|
|
2107
|
-
return s.interceptors.request.use((
|
|
2108
|
-
const { token: c, locale:
|
|
2109
|
-
return
|
|
2110
|
-
...
|
|
2107
|
+
return s.interceptors.request.use((f) => {
|
|
2108
|
+
const { token: c, locale: p } = t;
|
|
2109
|
+
return f.headers = {
|
|
2110
|
+
...f.headers,
|
|
2111
2111
|
Authorization: c,
|
|
2112
|
-
"x-locale":
|
|
2113
|
-
},
|
|
2112
|
+
"x-locale": p === Oe.ZH ? "zh-CN" : "en-US"
|
|
2113
|
+
}, f;
|
|
2114
2114
|
}), s.interceptors.response.use(
|
|
2115
|
-
(
|
|
2116
|
-
if (
|
|
2117
|
-
return
|
|
2118
|
-
const c =
|
|
2119
|
-
return Ie.error(c), i && i(c,
|
|
2120
|
-
},
|
|
2121
|
-
(
|
|
2122
|
-
const c =
|
|
2123
|
-
return Ie.error(c), i && i(c,
|
|
2115
|
+
(f) => {
|
|
2116
|
+
if (f.data && f.data.code === 0)
|
|
2117
|
+
return f.data;
|
|
2118
|
+
const c = f.data?.msg || f.data?.message || "未知错误";
|
|
2119
|
+
return Ie.error(c), i && i(c, f), Promise.reject(f.data || { message: "未知错误" });
|
|
2120
|
+
},
|
|
2121
|
+
(f) => {
|
|
2122
|
+
const c = f.response?.data?.msg || f.response?.data?.message || f.message || "网络请求失败";
|
|
2123
|
+
return Ie.error(c), i && i(c, f), Promise.reject(f);
|
|
2124
2124
|
}
|
|
2125
2125
|
), s;
|
|
2126
2126
|
}
|
|
@@ -2199,7 +2199,10 @@ const $o = async () => X().get("/all-dicts", {}).then((e) => (sessionStorage.set
|
|
|
2199
2199
|
payer_name: e.payerName,
|
|
2200
2200
|
submit_amount: e.submitAmount,
|
|
2201
2201
|
submit_currency: e.submitCurrency,
|
|
2202
|
-
voucher_urls: e.voucherUrls
|
|
2202
|
+
voucher_urls: e.voucherUrls,
|
|
2203
|
+
metadata: t.bizType === "ad" ? {
|
|
2204
|
+
transaction_reason: "OfflineRecharge"
|
|
2205
|
+
} : void 0
|
|
2203
2206
|
};
|
|
2204
2207
|
return X().post("/offline/recharge/create", n, {});
|
|
2205
2208
|
}, $n = async (e) => {
|
|
@@ -2213,7 +2216,10 @@ const $o = async () => X().get("/all-dicts", {}).then((e) => (sessionStorage.set
|
|
|
2213
2216
|
amount: e.amount,
|
|
2214
2217
|
currency: e.currency,
|
|
2215
2218
|
recharge_channel: e.rechargeChannel,
|
|
2216
|
-
return_url: window.location.href
|
|
2219
|
+
return_url: window.location.href,
|
|
2220
|
+
metadata: t.bizType === "ad" ? {
|
|
2221
|
+
transaction_reason: "OnlineRecharge"
|
|
2222
|
+
} : void 0
|
|
2217
2223
|
};
|
|
2218
2224
|
return X().post("/online/recharge/create", n, {}).then((r) => r.data.redirect_url);
|
|
2219
2225
|
}, Hn = async (e) => X().get("/calc-payment-amount", {
|
|
@@ -2285,11 +2291,11 @@ function Sa(e) {
|
|
|
2285
2291
|
theme: a = N.WHITE,
|
|
2286
2292
|
locale: i = Oe.ZH,
|
|
2287
2293
|
env: s,
|
|
2288
|
-
size:
|
|
2294
|
+
size: f,
|
|
2289
2295
|
themeConfig: c
|
|
2290
2296
|
} = e;
|
|
2291
2297
|
console.log(e, "InitParams1111");
|
|
2292
|
-
const
|
|
2298
|
+
const p = "Bearer " + e.token;
|
|
2293
2299
|
return sessionStorage.setItem(
|
|
2294
2300
|
"fund_unit_params",
|
|
2295
2301
|
JSON.stringify({
|
|
@@ -2297,15 +2303,15 @@ function Sa(e) {
|
|
|
2297
2303
|
bizType: n,
|
|
2298
2304
|
fundBalanceId: r,
|
|
2299
2305
|
userId: o,
|
|
2300
|
-
token:
|
|
2306
|
+
token: p,
|
|
2301
2307
|
theme: a,
|
|
2302
2308
|
locale: i,
|
|
2303
2309
|
env: s,
|
|
2304
|
-
size:
|
|
2310
|
+
size: f,
|
|
2305
2311
|
themeConfig: c
|
|
2306
2312
|
})
|
|
2307
2313
|
), Wo(), $o(), {
|
|
2308
|
-
token:
|
|
2314
|
+
token: p,
|
|
2309
2315
|
merchantId: t,
|
|
2310
2316
|
bizType: n,
|
|
2311
2317
|
fundBalanceId: r,
|
|
@@ -2313,7 +2319,7 @@ function Sa(e) {
|
|
|
2313
2319
|
theme: a,
|
|
2314
2320
|
locale: i,
|
|
2315
2321
|
env: s,
|
|
2316
|
-
size:
|
|
2322
|
+
size: f
|
|
2317
2323
|
};
|
|
2318
2324
|
}
|
|
2319
2325
|
function E(e) {
|
|
@@ -2423,8 +2429,8 @@ class Go {
|
|
|
2423
2429
|
<rect x="7.25" y="5" width="1.5" height="1.5" rx="0.75" fill="white"/>
|
|
2424
2430
|
`, s.appendChild(c);
|
|
2425
2431
|
}
|
|
2426
|
-
const
|
|
2427
|
-
if (
|
|
2432
|
+
const f = document.createElement("div");
|
|
2433
|
+
if (f.textContent = r, f.style.flex = "1", f.style.color = i.color, s.appendChild(f), a) {
|
|
2428
2434
|
const c = document.createElement("button");
|
|
2429
2435
|
c.textContent = "✕", c.style.cssText = `
|
|
2430
2436
|
background: none;
|
|
@@ -2859,9 +2865,9 @@ const it = ({
|
|
|
2859
2865
|
error: a,
|
|
2860
2866
|
disabled: i,
|
|
2861
2867
|
dropdownStyle: s,
|
|
2862
|
-
className:
|
|
2868
|
+
className: f,
|
|
2863
2869
|
dropdownClassName: c,
|
|
2864
|
-
children:
|
|
2870
|
+
children: p
|
|
2865
2871
|
}) => {
|
|
2866
2872
|
const [u, x] = B(!1), m = se(null), [h, _] = B(null), b = ri(), S = E("size");
|
|
2867
2873
|
J(() => {
|
|
@@ -2876,7 +2882,7 @@ const it = ({
|
|
|
2876
2882
|
"div",
|
|
2877
2883
|
{
|
|
2878
2884
|
ref: m,
|
|
2879
|
-
className:
|
|
2885
|
+
className: f,
|
|
2880
2886
|
style: { position: "relative", ...o },
|
|
2881
2887
|
children: [
|
|
2882
2888
|
/* @__PURE__ */ d("style", { children: `
|
|
@@ -3046,7 +3052,7 @@ const it = ({
|
|
|
3046
3052
|
]
|
|
3047
3053
|
}
|
|
3048
3054
|
),
|
|
3049
|
-
|
|
3055
|
+
p
|
|
3050
3056
|
]
|
|
3051
3057
|
}
|
|
3052
3058
|
);
|
|
@@ -3248,14 +3254,14 @@ function si(e) {
|
|
|
3248
3254
|
return isNaN(t) ? "" : t.toFixed(2);
|
|
3249
3255
|
}
|
|
3250
3256
|
const li = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
3251
|
-
const o = JSON.parse(sessionStorage.getItem("all_dicts") || "{}"), a = o?.currency || [], i = o?.channel?.filter((h) => h.payment_support) || [], [s,
|
|
3257
|
+
const o = JSON.parse(sessionStorage.getItem("all_dicts") || "{}"), a = o?.currency || [], i = o?.channel?.filter((h) => h.payment_support) || [], [s, f] = B(""), [c, p] = B(""), [u, x] = B(!1), m = ii();
|
|
3252
3258
|
return J(() => {
|
|
3253
3259
|
e.currency && e.amount && e.rechargeChannel ? Hn({
|
|
3254
3260
|
channel: e.rechargeChannel,
|
|
3255
3261
|
amount: e.amount,
|
|
3256
3262
|
currency: e.currency
|
|
3257
3263
|
}).then((h) => {
|
|
3258
|
-
|
|
3264
|
+
f(h.paymentAmount), p(h.fee), x(!0);
|
|
3259
3265
|
}).catch((h) => {
|
|
3260
3266
|
console.error("计算支付金额失败:", h), x(!1);
|
|
3261
3267
|
}) : x(!1);
|
|
@@ -3475,7 +3481,7 @@ const ui = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3475
3481
|
multiple: o = !0,
|
|
3476
3482
|
disabled: a = !1
|
|
3477
3483
|
}) => {
|
|
3478
|
-
const i = E("size"), s = se(null), [
|
|
3484
|
+
const i = E("size"), s = se(null), [f, c] = B(!1), [p, u] = B(0), x = di(), m = async (_) => {
|
|
3479
3485
|
const b = Array.from(_.target.files).slice(
|
|
3480
3486
|
0,
|
|
3481
3487
|
n
|
|
@@ -3548,7 +3554,7 @@ const ui = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3548
3554
|
disabled: a
|
|
3549
3555
|
}
|
|
3550
3556
|
),
|
|
3551
|
-
|
|
3557
|
+
f && /* @__PURE__ */ d(
|
|
3552
3558
|
"div",
|
|
3553
3559
|
{
|
|
3554
3560
|
style: {
|
|
@@ -3558,7 +3564,7 @@ const ui = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3558
3564
|
children: [
|
|
3559
3565
|
y("正在上传..."),
|
|
3560
3566
|
" ",
|
|
3561
|
-
|
|
3567
|
+
p,
|
|
3562
3568
|
"%"
|
|
3563
3569
|
]
|
|
3564
3570
|
}
|
|
@@ -3832,7 +3838,7 @@ function pi() {
|
|
|
3832
3838
|
const hi = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
3833
3839
|
const o = JSON.parse(sessionStorage.getItem("all_dicts") || "{}");
|
|
3834
3840
|
console.log(o, "allDicts");
|
|
3835
|
-
const a = o?.channel || [], i = pi(), [s,
|
|
3841
|
+
const a = o?.channel || [], i = pi(), [s, f] = B([]), c = async (u) => {
|
|
3836
3842
|
u.preventDefault();
|
|
3837
3843
|
let x = !0;
|
|
3838
3844
|
t((m) => ({
|
|
@@ -3855,7 +3861,7 @@ const hi = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
|
3855
3861
|
voucherUrls: e.files
|
|
3856
3862
|
}), n(), Ie.success(y("提交成功")));
|
|
3857
3863
|
};
|
|
3858
|
-
function
|
|
3864
|
+
function p(u) {
|
|
3859
3865
|
t((x) => ({
|
|
3860
3866
|
...x,
|
|
3861
3867
|
platform: u,
|
|
@@ -3863,7 +3869,7 @@ const hi = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
|
3863
3869
|
})), jn({
|
|
3864
3870
|
code: u
|
|
3865
3871
|
}).then((x) => {
|
|
3866
|
-
|
|
3872
|
+
f(Array.isArray(x) ? x : x ? [String(x)] : []);
|
|
3867
3873
|
});
|
|
3868
3874
|
}
|
|
3869
3875
|
return /* @__PURE__ */ d("form", { onSubmit: c, children: [
|
|
@@ -3878,7 +3884,7 @@ const hi = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
|
3878
3884
|
{
|
|
3879
3885
|
value: e.platform,
|
|
3880
3886
|
onChange: (u) => {
|
|
3881
|
-
|
|
3887
|
+
p(u);
|
|
3882
3888
|
},
|
|
3883
3889
|
options: [
|
|
3884
3890
|
...a?.map((u) => ({
|
|
@@ -4082,14 +4088,14 @@ function Jn({
|
|
|
4082
4088
|
showClose: i = !0,
|
|
4083
4089
|
maskClosable: s = !0
|
|
4084
4090
|
}) {
|
|
4085
|
-
const [
|
|
4091
|
+
const [f, c] = B(!1), p = gi();
|
|
4086
4092
|
J(() => {
|
|
4087
|
-
bi(
|
|
4088
|
-
}, [
|
|
4093
|
+
bi(p);
|
|
4094
|
+
}, [p]);
|
|
4089
4095
|
const u = (m) => {
|
|
4090
4096
|
m.target === m.currentTarget ? c(!0) : c(!1);
|
|
4091
4097
|
}, x = (m) => {
|
|
4092
|
-
m.target === m.currentTarget &&
|
|
4098
|
+
m.target === m.currentTarget && f && s && t(), c(!1);
|
|
4093
4099
|
};
|
|
4094
4100
|
return e ? /* @__PURE__ */ d(
|
|
4095
4101
|
"div",
|
|
@@ -4100,7 +4106,7 @@ function Jn({
|
|
|
4100
4106
|
left: 0,
|
|
4101
4107
|
right: 0,
|
|
4102
4108
|
bottom: 0,
|
|
4103
|
-
background:
|
|
4109
|
+
background: p.mask,
|
|
4104
4110
|
display: "flex",
|
|
4105
4111
|
alignItems: "center",
|
|
4106
4112
|
justifyContent: "center",
|
|
@@ -4112,12 +4118,12 @@ function Jn({
|
|
|
4112
4118
|
"div",
|
|
4113
4119
|
{
|
|
4114
4120
|
style: {
|
|
4115
|
-
background:
|
|
4121
|
+
background: p.modalBg,
|
|
4116
4122
|
borderRadius: re === l.SMALL ? 8 : 12,
|
|
4117
4123
|
minWidth: o,
|
|
4118
4124
|
maxWidth: a,
|
|
4119
|
-
color:
|
|
4120
|
-
boxShadow:
|
|
4125
|
+
color: p.modalColor,
|
|
4126
|
+
boxShadow: p.modalBoxShadow,
|
|
4121
4127
|
position: "relative",
|
|
4122
4128
|
// 响应式设计
|
|
4123
4129
|
width: typeof o == "string" ? o : `${o}px`,
|
|
@@ -4133,11 +4139,11 @@ function Jn({
|
|
|
4133
4139
|
style: {
|
|
4134
4140
|
position: "sticky",
|
|
4135
4141
|
top: 0,
|
|
4136
|
-
background:
|
|
4142
|
+
background: p.modalBg,
|
|
4137
4143
|
borderRadius: re === l.SMALL ? "8px 8px 0 0" : "12px 12px 0 0",
|
|
4138
4144
|
padding: re === l.SMALL ? "24px 24px 0 24px" : "32px 32px 0 32px",
|
|
4139
4145
|
zIndex: 1,
|
|
4140
|
-
borderBottom: `1px solid ${
|
|
4146
|
+
borderBottom: `1px solid ${p.headerBorder}`
|
|
4141
4147
|
},
|
|
4142
4148
|
children: [
|
|
4143
4149
|
i && /* @__PURE__ */ d(
|
|
@@ -4145,19 +4151,19 @@ function Jn({
|
|
|
4145
4151
|
{
|
|
4146
4152
|
type: "button",
|
|
4147
4153
|
onClick: t,
|
|
4148
|
-
style:
|
|
4154
|
+
style: p.closeBtn,
|
|
4149
4155
|
"aria-label": "关闭",
|
|
4150
4156
|
children: "×"
|
|
4151
4157
|
}
|
|
4152
4158
|
),
|
|
4153
|
-
n && /* @__PURE__ */ d("div", { style:
|
|
4159
|
+
n && /* @__PURE__ */ d("div", { style: p.title, children: n })
|
|
4154
4160
|
]
|
|
4155
4161
|
}
|
|
4156
4162
|
),
|
|
4157
4163
|
/* @__PURE__ */ d(
|
|
4158
4164
|
"div",
|
|
4159
4165
|
{
|
|
4160
|
-
className: `modal-content ${
|
|
4166
|
+
className: `modal-content ${p.scrollbarClass}`,
|
|
4161
4167
|
style: {
|
|
4162
4168
|
flex: 1,
|
|
4163
4169
|
overflowY: "auto",
|
|
@@ -4243,9 +4249,9 @@ function Si({ visible: e, onClose: t, onSubmit: n }) {
|
|
|
4243
4249
|
transactionIdError: "",
|
|
4244
4250
|
filesError: "",
|
|
4245
4251
|
loading: !1
|
|
4246
|
-
}), [s,
|
|
4252
|
+
}), [s, f] = B("online"), c = xi();
|
|
4247
4253
|
J(() => {
|
|
4248
|
-
e || (
|
|
4254
|
+
e || (f("online"), o({
|
|
4249
4255
|
amount: "",
|
|
4250
4256
|
rechargeChannel: "",
|
|
4251
4257
|
currency: "USD",
|
|
@@ -4264,7 +4270,7 @@ function Si({ visible: e, onClose: t, onSubmit: n }) {
|
|
|
4264
4270
|
loading: !1
|
|
4265
4271
|
}));
|
|
4266
4272
|
}, [e]);
|
|
4267
|
-
const
|
|
4273
|
+
const p = async (u) => {
|
|
4268
4274
|
u.preventDefault();
|
|
4269
4275
|
let x = !0;
|
|
4270
4276
|
if (o((m) => ({
|
|
@@ -4302,7 +4308,7 @@ function Si({ visible: e, onClose: t, onSubmit: n }) {
|
|
|
4302
4308
|
"button",
|
|
4303
4309
|
{
|
|
4304
4310
|
type: "button",
|
|
4305
|
-
onClick: () =>
|
|
4311
|
+
onClick: () => f("online"),
|
|
4306
4312
|
style: c.tabBtn(s === "online", !0),
|
|
4307
4313
|
children: y("在线充值")
|
|
4308
4314
|
}
|
|
@@ -4311,7 +4317,7 @@ function Si({ visible: e, onClose: t, onSubmit: n }) {
|
|
|
4311
4317
|
"button",
|
|
4312
4318
|
{
|
|
4313
4319
|
type: "button",
|
|
4314
|
-
onClick: () =>
|
|
4320
|
+
onClick: () => f("offline"),
|
|
4315
4321
|
style: c.tabBtn(s === "offline", !1),
|
|
4316
4322
|
children: y("线下转账")
|
|
4317
4323
|
}
|
|
@@ -4319,7 +4325,7 @@ function Si({ visible: e, onClose: t, onSubmit: n }) {
|
|
|
4319
4325
|
]
|
|
4320
4326
|
}
|
|
4321
4327
|
),
|
|
4322
|
-
/* @__PURE__ */ d("div", { style: { display: s === "online" ? "block" : "none" }, children: /* @__PURE__ */ d("form", { onSubmit:
|
|
4328
|
+
/* @__PURE__ */ d("div", { style: { display: s === "online" ? "block" : "none" }, children: /* @__PURE__ */ d("form", { onSubmit: p, children: /* @__PURE__ */ d(
|
|
4323
4329
|
li,
|
|
4324
4330
|
{
|
|
4325
4331
|
formState: r,
|
|
@@ -4355,8 +4361,8 @@ function wi(e) {
|
|
|
4355
4361
|
};
|
|
4356
4362
|
var t = e.children, n = function(r, o) {
|
|
4357
4363
|
if (r == null) return {};
|
|
4358
|
-
var a, i, s = {},
|
|
4359
|
-
for (i = 0; i <
|
|
4364
|
+
var a, i, s = {}, f = Object.keys(r);
|
|
4365
|
+
for (i = 0; i < f.length; i++) o.indexOf(a = f[i]) >= 0 || (s[a] = r[a]);
|
|
4360
4366
|
return s;
|
|
4361
4367
|
}(e, Li);
|
|
4362
4368
|
return un(t, n);
|
|
@@ -4366,11 +4372,11 @@ function Ai() {
|
|
|
4366
4372
|
this.dispatchEvent(e), this._vdom = ie(wi, mt({}, this._props, { context: e.detail.context }), function t(n, r) {
|
|
4367
4373
|
if (n.nodeType === 3) return n.data;
|
|
4368
4374
|
if (n.nodeType !== 1) return null;
|
|
4369
|
-
var o = [], a = {}, i = 0, s = n.attributes,
|
|
4375
|
+
var o = [], a = {}, i = 0, s = n.attributes, f = n.childNodes;
|
|
4370
4376
|
for (i = s.length; i--; ) s[i].name !== "slot" && (a[s[i].name] = s[i].value, a[Vn(s[i].name)] = s[i].value);
|
|
4371
|
-
for (i =
|
|
4372
|
-
var c = t(
|
|
4373
|
-
|
|
4377
|
+
for (i = f.length; i--; ) {
|
|
4378
|
+
var c = t(f[i], null), p = f[i].slot;
|
|
4379
|
+
p ? a[p] = ie(Gt, { name: p }, c) : o[i] = c;
|
|
4374
4380
|
}
|
|
4375
4381
|
var u = r ? ie(Gt, null, o) : o;
|
|
4376
4382
|
return ie(r || n.nodeName.toLowerCase(), a, u);
|
|
@@ -4972,7 +4978,7 @@ function Ri({
|
|
|
4972
4978
|
initialPaymentType: a = "online",
|
|
4973
4979
|
amountError: i = ""
|
|
4974
4980
|
}) {
|
|
4975
|
-
const s = Bi(), [
|
|
4981
|
+
const s = Bi(), [f, c] = B([]), [p, u] = B([]), [x, m] = B([]), [h, _] = B({
|
|
4976
4982
|
currency: o,
|
|
4977
4983
|
amount: r,
|
|
4978
4984
|
onlineChannel: "",
|
|
@@ -5030,7 +5036,7 @@ function Ri({
|
|
|
5030
5036
|
y("选择支付方式")
|
|
5031
5037
|
] }),
|
|
5032
5038
|
/* @__PURE__ */ d("div", { style: s.fieldLabel, children: y("支付币种") }),
|
|
5033
|
-
/* @__PURE__ */ d("div", { style: s.currencyRow, children: (
|
|
5039
|
+
/* @__PURE__ */ d("div", { style: s.currencyRow, children: (f || []).slice(0, 4).map((w) => /* @__PURE__ */ d(
|
|
5034
5040
|
"button",
|
|
5035
5041
|
{
|
|
5036
5042
|
type: "button",
|
|
@@ -5083,9 +5089,9 @@ function Ri({
|
|
|
5083
5089
|
] }),
|
|
5084
5090
|
/* @__PURE__ */ d("div", { style: { height: 20 } }),
|
|
5085
5091
|
/* @__PURE__ */ d("div", { style: s.fieldLabel, children: y("支付方式") }),
|
|
5086
|
-
|
|
5092
|
+
p.length > 0 && /* @__PURE__ */ d("div", { children: [
|
|
5087
5093
|
/* @__PURE__ */ d("div", { style: s.subTitle, children: y("线上支付") }),
|
|
5088
|
-
/* @__PURE__ */ d("div", { style: s.methodList, children:
|
|
5094
|
+
/* @__PURE__ */ d("div", { style: s.methodList, children: p.map((w) => /* @__PURE__ */ d(
|
|
5089
5095
|
"button",
|
|
5090
5096
|
{
|
|
5091
5097
|
type: "button",
|
|
@@ -5311,7 +5317,7 @@ function Di({
|
|
|
5311
5317
|
error: a = "",
|
|
5312
5318
|
onAmountError: i
|
|
5313
5319
|
}) {
|
|
5314
|
-
const s = Ii(),
|
|
5320
|
+
const s = Ii(), f = s.right.background === "#181A20", [c, p] = B({
|
|
5315
5321
|
amount: t,
|
|
5316
5322
|
currency: n,
|
|
5317
5323
|
channel: r,
|
|
@@ -5320,7 +5326,7 @@ function Di({
|
|
|
5320
5326
|
amountError: ""
|
|
5321
5327
|
}), [u, x] = B(null);
|
|
5322
5328
|
J(() => {
|
|
5323
|
-
|
|
5329
|
+
p((_) => ({
|
|
5324
5330
|
..._,
|
|
5325
5331
|
amount: t,
|
|
5326
5332
|
currency: n,
|
|
@@ -5336,8 +5342,8 @@ function Di({
|
|
|
5336
5342
|
const m = async (h) => {
|
|
5337
5343
|
h && h.preventDefault();
|
|
5338
5344
|
let _ = !0;
|
|
5339
|
-
if (t.trim() || (_ = !1, i?.(y("请输入充值金额"))), r || (_ = !1,
|
|
5340
|
-
|
|
5345
|
+
if (t.trim() || (_ = !1, i?.(y("请输入充值金额"))), r || (_ = !1, p((b) => ({ ...b, error: y("请选择支付平台") }))), !!_) {
|
|
5346
|
+
p((b) => ({ ...b, loading: !0, error: "" }));
|
|
5341
5347
|
try {
|
|
5342
5348
|
await e({
|
|
5343
5349
|
amount: t,
|
|
@@ -5345,7 +5351,7 @@ function Di({
|
|
|
5345
5351
|
rechargeChannel: r
|
|
5346
5352
|
});
|
|
5347
5353
|
} finally {
|
|
5348
|
-
|
|
5354
|
+
p((b) => ({ ...b, loading: !1 }));
|
|
5349
5355
|
}
|
|
5350
5356
|
}
|
|
5351
5357
|
};
|
|
@@ -5366,7 +5372,7 @@ function Di({
|
|
|
5366
5372
|
disabled: !0,
|
|
5367
5373
|
style: {
|
|
5368
5374
|
...s.input,
|
|
5369
|
-
...
|
|
5375
|
+
...f ? s.disabledDark : s.disabled,
|
|
5370
5376
|
width: "100%"
|
|
5371
5377
|
}
|
|
5372
5378
|
}
|
|
@@ -6029,9 +6035,9 @@ function Wi({
|
|
|
6029
6035
|
onFocus: a,
|
|
6030
6036
|
onBlur: i,
|
|
6031
6037
|
className: s = "",
|
|
6032
|
-
style:
|
|
6038
|
+
style: f = {}
|
|
6033
6039
|
}) {
|
|
6034
|
-
const c = Ui(), [
|
|
6040
|
+
const c = Ui(), [p, u] = B(!1), [x, m] = B(e), [h, _] = B(/* @__PURE__ */ new Date()), [b, S] = B(!1), L = se(null), T = (k) => {
|
|
6035
6041
|
if (!k) return "";
|
|
6036
6042
|
const v = new Date(k);
|
|
6037
6043
|
return `${v.getFullYear()}-${String(v.getMonth() + 1).padStart(
|
|
@@ -6098,9 +6104,9 @@ function Wi({
|
|
|
6098
6104
|
const k = (v) => {
|
|
6099
6105
|
L.current && !L.current.contains(v.target) && u(!1);
|
|
6100
6106
|
};
|
|
6101
|
-
if (
|
|
6107
|
+
if (p)
|
|
6102
6108
|
return document.addEventListener("mousedown", k), () => document.removeEventListener("mousedown", k);
|
|
6103
|
-
}, [
|
|
6109
|
+
}, [p]);
|
|
6104
6110
|
const V = R(), Se = [
|
|
6105
6111
|
y("一月"),
|
|
6106
6112
|
y("二月"),
|
|
@@ -6128,7 +6134,7 @@ function Wi({
|
|
|
6128
6134
|
{
|
|
6129
6135
|
ref: L,
|
|
6130
6136
|
className: `date-picker-container ${s}`,
|
|
6131
|
-
style: { ...c.container, ...
|
|
6137
|
+
style: { ...c.container, ...f },
|
|
6132
6138
|
children: [
|
|
6133
6139
|
/* @__PURE__ */ d(
|
|
6134
6140
|
"div",
|
|
@@ -6138,7 +6144,7 @@ function Wi({
|
|
|
6138
6144
|
...c[r],
|
|
6139
6145
|
...n ? c.disabled : {}
|
|
6140
6146
|
},
|
|
6141
|
-
onClick: () => !n && u(!
|
|
6147
|
+
onClick: () => !n && u(!p),
|
|
6142
6148
|
onFocus: a,
|
|
6143
6149
|
onBlur: i,
|
|
6144
6150
|
children: [
|
|
@@ -6147,7 +6153,7 @@ function Wi({
|
|
|
6147
6153
|
]
|
|
6148
6154
|
}
|
|
6149
6155
|
),
|
|
6150
|
-
|
|
6156
|
+
p && /* @__PURE__ */ d("div", { style: c.panel, children: [
|
|
6151
6157
|
/* @__PURE__ */ d("div", { style: c.header, children: [
|
|
6152
6158
|
/* @__PURE__ */ d(
|
|
6153
6159
|
"button",
|
|
@@ -6243,9 +6249,9 @@ function $i({
|
|
|
6243
6249
|
channel: o = "",
|
|
6244
6250
|
onAmountError: a
|
|
6245
6251
|
}) {
|
|
6246
|
-
const i = Oi(), s = i.container.background === "#181A20",
|
|
6247
|
-
|
|
6248
|
-
).padStart(2, "0")}-${String(
|
|
6252
|
+
const i = Oi(), s = i.container.background === "#181A20", f = /* @__PURE__ */ new Date(), c = `${f.getFullYear()}-${String(
|
|
6253
|
+
f.getMonth() + 1
|
|
6254
|
+
).padStart(2, "0")}-${String(f.getDate()).padStart(2, "0")}`, [p, u] = B({
|
|
6249
6255
|
urls: [],
|
|
6250
6256
|
transferTime: c,
|
|
6251
6257
|
transferAmount: r,
|
|
@@ -6262,20 +6268,20 @@ function $i({
|
|
|
6262
6268
|
}, [r]);
|
|
6263
6269
|
const x = async () => {
|
|
6264
6270
|
let m = !0;
|
|
6265
|
-
if (
|
|
6271
|
+
if (p.urls.length === 0 && (m = !1, u((h) => ({ ...h, filesError: y("请上传银行转账回单") }))), p.transferTime || (m = !1, u((h) => ({ ...h, timeError: y("请选择转账时间") }))), r.trim() || (m = !1, a?.(y("请输入充值金额"))), p.transactionId.trim() || (m = !1, u((h) => ({
|
|
6266
6272
|
...h,
|
|
6267
6273
|
transactionIdError: y("请输入转账交易ID")
|
|
6268
|
-
}))),
|
|
6274
|
+
}))), p.payerName.trim() || (m = !1, u((h) => ({
|
|
6269
6275
|
...h,
|
|
6270
6276
|
payerNameError: y("请输入付款人名称")
|
|
6271
6277
|
}))), !!m)
|
|
6272
6278
|
try {
|
|
6273
6279
|
await Wn({
|
|
6274
|
-
transferDate:
|
|
6275
|
-
transferNo:
|
|
6280
|
+
transferDate: p.transferTime,
|
|
6281
|
+
transferNo: p.transactionId,
|
|
6276
6282
|
transferChannel: o,
|
|
6277
|
-
voucherUrls:
|
|
6278
|
-
payerName:
|
|
6283
|
+
voucherUrls: p.urls,
|
|
6284
|
+
payerName: p.payerName,
|
|
6279
6285
|
submitAmount: r,
|
|
6280
6286
|
submitCurrency: n
|
|
6281
6287
|
}), Ie.success(y("提交成功")), t();
|
|
@@ -6292,7 +6298,7 @@ function $i({
|
|
|
6292
6298
|
/* @__PURE__ */ d(
|
|
6293
6299
|
qn,
|
|
6294
6300
|
{
|
|
6295
|
-
value:
|
|
6301
|
+
value: p.urls,
|
|
6296
6302
|
onChange: (m) => {
|
|
6297
6303
|
u((h) => ({ ...h, urls: m, filesError: "" }));
|
|
6298
6304
|
},
|
|
@@ -6301,7 +6307,7 @@ function $i({
|
|
|
6301
6307
|
multiple: !0
|
|
6302
6308
|
}
|
|
6303
6309
|
),
|
|
6304
|
-
|
|
6310
|
+
p.filesError && /* @__PURE__ */ d("div", { style: i.error, children: p.filesError })
|
|
6305
6311
|
] }),
|
|
6306
6312
|
/* @__PURE__ */ d("div", { style: i.fieldSection, children: [
|
|
6307
6313
|
/* @__PURE__ */ d("label", { style: i.fieldLabel, children: [
|
|
@@ -6311,7 +6317,7 @@ function $i({
|
|
|
6311
6317
|
/* @__PURE__ */ d(
|
|
6312
6318
|
Wi,
|
|
6313
6319
|
{
|
|
6314
|
-
value:
|
|
6320
|
+
value: p.transferTime,
|
|
6315
6321
|
placeholder: y("请选择转账时间"),
|
|
6316
6322
|
onChange: (m) => {
|
|
6317
6323
|
u((h) => ({
|
|
@@ -6323,7 +6329,7 @@ function $i({
|
|
|
6323
6329
|
style: { width: "100%" }
|
|
6324
6330
|
}
|
|
6325
6331
|
),
|
|
6326
|
-
|
|
6332
|
+
p.timeError && /* @__PURE__ */ d("div", { style: i.error, children: p.timeError })
|
|
6327
6333
|
] }),
|
|
6328
6334
|
/* @__PURE__ */ d("div", { style: i.fieldSection, children: [
|
|
6329
6335
|
/* @__PURE__ */ d("label", { style: i.fieldLabel, children: y("转账金额") }),
|
|
@@ -6333,7 +6339,7 @@ function $i({
|
|
|
6333
6339
|
{
|
|
6334
6340
|
type: "text",
|
|
6335
6341
|
placeholder: y("请输入实际转账金额"),
|
|
6336
|
-
value:
|
|
6342
|
+
value: p.transferAmount,
|
|
6337
6343
|
readOnly: !0,
|
|
6338
6344
|
disabled: !0,
|
|
6339
6345
|
style: {
|
|
@@ -6355,7 +6361,7 @@ function $i({
|
|
|
6355
6361
|
{
|
|
6356
6362
|
type: "text",
|
|
6357
6363
|
placeholder: y("请输入转账交易ID"),
|
|
6358
|
-
value:
|
|
6364
|
+
value: p.transactionId,
|
|
6359
6365
|
onChange: (m) => {
|
|
6360
6366
|
u((h) => ({
|
|
6361
6367
|
...h,
|
|
@@ -6365,11 +6371,11 @@ function $i({
|
|
|
6365
6371
|
},
|
|
6366
6372
|
style: {
|
|
6367
6373
|
...i.input,
|
|
6368
|
-
...
|
|
6374
|
+
...p.transactionIdError ? i.inputError : {}
|
|
6369
6375
|
}
|
|
6370
6376
|
}
|
|
6371
6377
|
),
|
|
6372
|
-
|
|
6378
|
+
p.transactionIdError && /* @__PURE__ */ d("div", { style: i.error, children: p.transactionIdError })
|
|
6373
6379
|
] }),
|
|
6374
6380
|
/* @__PURE__ */ d("div", { style: i.fieldSection, children: [
|
|
6375
6381
|
/* @__PURE__ */ d("label", { style: i.fieldLabel, children: [
|
|
@@ -6381,7 +6387,7 @@ function $i({
|
|
|
6381
6387
|
{
|
|
6382
6388
|
type: "text",
|
|
6383
6389
|
placeholder: y("请输入付款人名称"),
|
|
6384
|
-
value:
|
|
6390
|
+
value: p.payerName,
|
|
6385
6391
|
onChange: (m) => {
|
|
6386
6392
|
u((h) => ({
|
|
6387
6393
|
...h,
|
|
@@ -6391,11 +6397,11 @@ function $i({
|
|
|
6391
6397
|
},
|
|
6392
6398
|
style: {
|
|
6393
6399
|
...i.input,
|
|
6394
|
-
...
|
|
6400
|
+
...p.payerNameError ? i.inputError : {}
|
|
6395
6401
|
}
|
|
6396
6402
|
}
|
|
6397
6403
|
),
|
|
6398
|
-
|
|
6404
|
+
p.payerNameError && /* @__PURE__ */ d("div", { style: i.error, children: p.payerNameError })
|
|
6399
6405
|
] }),
|
|
6400
6406
|
/* @__PURE__ */ d("div", { style: i.buttonSection, children: [
|
|
6401
6407
|
/* @__PURE__ */ d("button", { type: "button", onClick: t, style: i.cancelButton, children: y("取消") }),
|
|
@@ -6691,9 +6697,9 @@ function qi({ onConfirm: e, channelCode: t }) {
|
|
|
6691
6697
|
}
|
|
6692
6698
|
if (i && typeof i == "object") {
|
|
6693
6699
|
const s = [];
|
|
6694
|
-
Object.keys(i).forEach((
|
|
6695
|
-
const c = i[
|
|
6696
|
-
s.push(`${
|
|
6700
|
+
Object.keys(i).forEach((f) => {
|
|
6701
|
+
const c = i[f];
|
|
6702
|
+
s.push(`${f}: ${c}`);
|
|
6697
6703
|
}), o(s);
|
|
6698
6704
|
return;
|
|
6699
6705
|
}
|
|
@@ -6708,7 +6714,7 @@ function qi({ onConfirm: e, channelCode: t }) {
|
|
|
6708
6714
|
y("银行转账")
|
|
6709
6715
|
] }),
|
|
6710
6716
|
r.length > 0 && /* @__PURE__ */ d("div", { style: n.detailCard, children: r.map((a, i) => {
|
|
6711
|
-
const s = String(a).split(":"),
|
|
6717
|
+
const s = String(a).split(":"), f = s.shift()?.trim() || "", c = s.join(":").trim();
|
|
6712
6718
|
return /* @__PURE__ */ d(
|
|
6713
6719
|
"div",
|
|
6714
6720
|
{
|
|
@@ -6718,7 +6724,7 @@ function qi({ onConfirm: e, channelCode: t }) {
|
|
|
6718
6724
|
...i % 2 === 1 ? n.rowAlt : {}
|
|
6719
6725
|
},
|
|
6720
6726
|
children: [
|
|
6721
|
-
/* @__PURE__ */ d("div", { style: n.labelMuted, children:
|
|
6727
|
+
/* @__PURE__ */ d("div", { style: n.labelMuted, children: f }),
|
|
6722
6728
|
/* @__PURE__ */ d("div", { style: n.valueStrong, children: c || "-" })
|
|
6723
6729
|
]
|
|
6724
6730
|
},
|
|
@@ -6774,7 +6780,7 @@ function Ji({
|
|
|
6774
6780
|
showOfflineUpload: !1
|
|
6775
6781
|
});
|
|
6776
6782
|
}, [e]);
|
|
6777
|
-
const
|
|
6783
|
+
const f = (_, b) => {
|
|
6778
6784
|
s((S) => ({
|
|
6779
6785
|
...S,
|
|
6780
6786
|
channel: _,
|
|
@@ -6783,7 +6789,7 @@ function Ji({
|
|
|
6783
6789
|
}));
|
|
6784
6790
|
}, c = (_) => {
|
|
6785
6791
|
s((b) => ({ ...b, amount: _, amountError: "" }));
|
|
6786
|
-
},
|
|
6792
|
+
}, p = (_) => {
|
|
6787
6793
|
s((b) => ({ ...b, amountError: _ }));
|
|
6788
6794
|
}, u = (_) => {
|
|
6789
6795
|
s((b) => ({ ...b, currency: _ }));
|
|
@@ -6824,7 +6830,7 @@ function Ji({
|
|
|
6824
6830
|
/* @__PURE__ */ d(
|
|
6825
6831
|
Ri,
|
|
6826
6832
|
{
|
|
6827
|
-
onChannelChange:
|
|
6833
|
+
onChannelChange: f,
|
|
6828
6834
|
onAmountChange: c,
|
|
6829
6835
|
onCurrencyChange: u,
|
|
6830
6836
|
initialAmount: i.amount,
|
|
@@ -6842,7 +6848,7 @@ function Ji({
|
|
|
6842
6848
|
channel: i.channel,
|
|
6843
6849
|
loading: i.loading,
|
|
6844
6850
|
error: i.error,
|
|
6845
|
-
onAmountError:
|
|
6851
|
+
onAmountError: p
|
|
6846
6852
|
}
|
|
6847
6853
|
) : i.showOfflineUpload ? /* @__PURE__ */ d(
|
|
6848
6854
|
$i,
|
|
@@ -6852,7 +6858,7 @@ function Ji({
|
|
|
6852
6858
|
currency: i.currency,
|
|
6853
6859
|
amount: i.amount,
|
|
6854
6860
|
channel: i.channel,
|
|
6855
|
-
onAmountError:
|
|
6861
|
+
onAmountError: p
|
|
6856
6862
|
}
|
|
6857
6863
|
) : /* @__PURE__ */ d(
|
|
6858
6864
|
qi,
|
|
@@ -6931,7 +6937,7 @@ const Gi = ({
|
|
|
6931
6937
|
offsetX: a,
|
|
6932
6938
|
popoverPosition: i = "top"
|
|
6933
6939
|
}) => {
|
|
6934
|
-
const s = E("size"),
|
|
6940
|
+
const s = E("size"), f = n ?? (s === l.SMALL ? 200 : 300), c = r ?? (s === l.SMALL ? 150 : 200), p = o ?? (s === l.SMALL ? 8 : 16), u = a ?? (s === l.SMALL ? 8 : 16), [x, m] = B(!1), [h, _] = B(i), b = se(null), S = se(null), L = Yi(), T = () => {
|
|
6935
6941
|
if (S.current && (clearTimeout(S.current), S.current = null), i === "top" || i === "bottom")
|
|
6936
6942
|
if (b.current) {
|
|
6937
6943
|
const P = b.current.getBoundingClientRect();
|
|
@@ -6952,7 +6958,7 @@ const Gi = ({
|
|
|
6952
6958
|
borderRadius: 6,
|
|
6953
6959
|
fontSize: s === l.SMALL ? 12 : 15,
|
|
6954
6960
|
minWidth: c,
|
|
6955
|
-
width:
|
|
6961
|
+
width: f,
|
|
6956
6962
|
padding: s === l.SMALL ? "6px 12px" : "8px 14px",
|
|
6957
6963
|
pointerEvents: "auto",
|
|
6958
6964
|
textAlign: "center",
|
|
@@ -6981,7 +6987,7 @@ const Gi = ({
|
|
|
6981
6987
|
...M,
|
|
6982
6988
|
left: "50%",
|
|
6983
6989
|
top: "100%",
|
|
6984
|
-
marginTop:
|
|
6990
|
+
marginTop: p,
|
|
6985
6991
|
transform: "translateX(-50%)"
|
|
6986
6992
|
}, R = {
|
|
6987
6993
|
...R,
|
|
@@ -7159,69 +7165,69 @@ function Zi(e) {
|
|
|
7159
7165
|
currBalance: 0,
|
|
7160
7166
|
currency: "USD",
|
|
7161
7167
|
details: []
|
|
7162
|
-
}), r = async () => {
|
|
7168
|
+
}), [r, o] = B(!0), a = async () => {
|
|
7163
7169
|
try {
|
|
7164
|
-
const
|
|
7170
|
+
const f = await Un(), c = [
|
|
7165
7171
|
{
|
|
7166
7172
|
label: "",
|
|
7167
7173
|
// 翻译在渲染时处理
|
|
7168
|
-
value:
|
|
7174
|
+
value: f.totalAmount,
|
|
7169
7175
|
color: "#15b36b",
|
|
7170
7176
|
dot: "#15b36b"
|
|
7171
7177
|
},
|
|
7172
7178
|
{
|
|
7173
7179
|
label: "",
|
|
7174
|
-
value:
|
|
7180
|
+
value: f.frozenAmount,
|
|
7175
7181
|
color: "#f59e0b",
|
|
7176
7182
|
dot: "#f59e0b"
|
|
7177
7183
|
},
|
|
7178
|
-
...
|
|
7184
|
+
...f.isCredit ? [
|
|
7179
7185
|
{
|
|
7180
7186
|
label: "",
|
|
7181
|
-
value:
|
|
7187
|
+
value: f.creditLimit,
|
|
7182
7188
|
color: "#1890ff",
|
|
7183
7189
|
dot: "#1890ff"
|
|
7184
7190
|
},
|
|
7185
7191
|
{
|
|
7186
7192
|
label: "",
|
|
7187
|
-
value:
|
|
7193
|
+
value: f.creditUsed,
|
|
7188
7194
|
color: "#ff0000",
|
|
7189
7195
|
dot: "#ff0000"
|
|
7190
7196
|
}
|
|
7191
7197
|
] : [],
|
|
7192
7198
|
{
|
|
7193
7199
|
label: "",
|
|
7194
|
-
value:
|
|
7200
|
+
value: f.availableAmount,
|
|
7195
7201
|
color: "#1890ff",
|
|
7196
7202
|
dot: "#15b36b"
|
|
7197
7203
|
}
|
|
7198
7204
|
], p = {
|
|
7199
|
-
currBalance:
|
|
7200
|
-
currency:
|
|
7201
|
-
details:
|
|
7205
|
+
currBalance: f.currBalance,
|
|
7206
|
+
currency: f.currency,
|
|
7207
|
+
details: c
|
|
7202
7208
|
};
|
|
7203
|
-
n(p);
|
|
7204
|
-
} catch (
|
|
7205
|
-
console.error("获取余额失败:",
|
|
7209
|
+
n(p), o(!1);
|
|
7210
|
+
} catch (f) {
|
|
7211
|
+
console.error("获取余额失败:", f), o(!1);
|
|
7206
7212
|
}
|
|
7207
7213
|
};
|
|
7208
7214
|
J(() => {
|
|
7209
|
-
|
|
7215
|
+
a();
|
|
7210
7216
|
}, []), J(() => {
|
|
7211
|
-
const
|
|
7212
|
-
|
|
7217
|
+
const f = () => {
|
|
7218
|
+
a();
|
|
7213
7219
|
};
|
|
7214
7220
|
return window.addEventListener(
|
|
7215
7221
|
"refresh-balance",
|
|
7216
|
-
|
|
7222
|
+
f
|
|
7217
7223
|
), () => {
|
|
7218
7224
|
window.removeEventListener(
|
|
7219
7225
|
"refresh-balance",
|
|
7220
|
-
|
|
7226
|
+
f
|
|
7221
7227
|
);
|
|
7222
7228
|
};
|
|
7223
7229
|
}, []);
|
|
7224
|
-
const
|
|
7230
|
+
const i = Xi(), s = [
|
|
7225
7231
|
{
|
|
7226
7232
|
label: y("真实金额"),
|
|
7227
7233
|
value: t.details[0]?.value || 0,
|
|
@@ -7255,23 +7261,23 @@ function Zi(e) {
|
|
|
7255
7261
|
dot: "#15b36b"
|
|
7256
7262
|
}
|
|
7257
7263
|
];
|
|
7258
|
-
return /* @__PURE__ */ d(
|
|
7264
|
+
return r ? null : /* @__PURE__ */ d(
|
|
7259
7265
|
Gi,
|
|
7260
7266
|
{
|
|
7261
7267
|
popover: /* @__PURE__ */ d(ne, { children: [
|
|
7262
|
-
/* @__PURE__ */ d("div", { style:
|
|
7263
|
-
|
|
7264
|
-
/* @__PURE__ */ d("span", { style:
|
|
7265
|
-
/* @__PURE__ */ d("span", { style:
|
|
7266
|
-
|
|
7268
|
+
/* @__PURE__ */ d("div", { style: i.popoverTitle, children: y("余额详情") }),
|
|
7269
|
+
s.map((f) => /* @__PURE__ */ d("div", { style: i.detailRow, children: [
|
|
7270
|
+
/* @__PURE__ */ d("span", { style: i.detailLabel, children: [
|
|
7271
|
+
/* @__PURE__ */ d("span", { style: i.detailDot(f.dot) }),
|
|
7272
|
+
f.label
|
|
7267
7273
|
] }),
|
|
7268
|
-
/* @__PURE__ */ d("span", { style:
|
|
7269
|
-
] },
|
|
7274
|
+
/* @__PURE__ */ d("span", { style: i.detailValue(f.color), children: Xt(f.value) })
|
|
7275
|
+
] }, f.label))
|
|
7270
7276
|
] }),
|
|
7271
7277
|
popoverPosition: e.popoverPosition || "bottom",
|
|
7272
|
-
children: /* @__PURE__ */ d("div", { style:
|
|
7278
|
+
children: /* @__PURE__ */ d("div", { style: i.main, children: [
|
|
7273
7279
|
Xt(t.currBalance),
|
|
7274
|
-
/* @__PURE__ */ d("span", { style:
|
|
7280
|
+
/* @__PURE__ */ d("span", { style: i.currency, children: t.currency })
|
|
7275
7281
|
] })
|
|
7276
7282
|
}
|
|
7277
7283
|
);
|
|
@@ -7360,7 +7366,7 @@ function ta({
|
|
|
7360
7366
|
/* @__PURE__ */ d(ht, { onClick: async () => {
|
|
7361
7367
|
o(!0);
|
|
7362
7368
|
try {
|
|
7363
|
-
Vo(), await new Promise((
|
|
7369
|
+
Vo(), await new Promise((p) => setTimeout(p, 300));
|
|
7364
7370
|
} finally {
|
|
7365
7371
|
o(!1);
|
|
7366
7372
|
}
|