best-unit 2.0.13 → 2.0.14
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 +6 -6
- package/dist/best-unit.js +287 -283
- package/package.json +1 -1
- package/src/components/common/date-picker/index.tsx +1 -1
- package/src/local/en.ts +1 -0
- package/src/local/zh.ts +1 -0
package/dist/best-unit.js
CHANGED
|
@@ -45,13 +45,13 @@ function Te() {
|
|
|
45
45
|
Te.__r = 0;
|
|
46
46
|
}
|
|
47
47
|
function on(e, t, n, r, o, a, i, s, p, c, f) {
|
|
48
|
-
var u,
|
|
49
|
-
for (p = er(n, t, S, p, L), u = 0; u < L; u++) (m = n.__k[u]) != null && (
|
|
50
|
-
return n.__e =
|
|
48
|
+
var u, x, m, h, _, b, S = r && r.__k || nn, L = t.length;
|
|
49
|
+
for (p = er(n, t, S, p, 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, p, c, f), h = m.__e, m.ref && x.ref != m.ref && (x.ref && ct(x.ref, null, m), f.push(m.ref, m.__c || h, m)), _ == null && h != null && (_ = h), 4 & m.__u || x.__k === m.__k ? p = an(m, p, e) : typeof m.type == "function" && b !== void 0 ? p = b : h && (p = h.nextSibling), m.__u &= -7);
|
|
50
|
+
return n.__e = _, p;
|
|
51
51
|
}
|
|
52
52
|
function er(e, t, n, r, o) {
|
|
53
|
-
var a, i, s, p, c, f = n.length, u = f,
|
|
54
|
-
for (e.__k = new Array(o), a = 0; a < o; a++) (i = t[a]) != null && typeof i != "boolean" && typeof i != "function" ? (p = a +
|
|
53
|
+
var a, i, s, p, c, f = n.length, u = f, x = 0;
|
|
54
|
+
for (e.__k = new Array(o), a = 0; a < o; a++) (i = t[a]) != null && typeof i != "boolean" && typeof i != "function" ? (p = 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, p, u)) != -1 && (u--, (s = n[c]) && (s.__u |= 2)), s == null || s.__v == null ? (c == -1 && (o > f ? x-- : o < f && x++), typeof i.type != "function" && (i.__u |= 4)) : c != p && (c == p - 1 ? x-- : c == p + 1 ? x++ : (c > p ? x-- : x++, i.__u |= 4))) : e.__k[a] = null;
|
|
55
55
|
if (u) for (a = 0; a < f; a++) (s = n[a]) != null && (2 & s.__u) == 0 && (s.__e == r && (r = ae(s)), cn(s, s));
|
|
56
56
|
return r;
|
|
57
57
|
}
|
|
@@ -114,11 +114,11 @@ function kt(e) {
|
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
116
|
function lt(e, t, n, r, o, a, i, s, p, c) {
|
|
117
|
-
var f, u,
|
|
117
|
+
var f, u, x, m, h, _, b, S, L, T, A, M, R, P, w, F, U, $ = t.type;
|
|
118
118
|
if (t.constructor != null) return null;
|
|
119
119
|
128 & n.__u && (p = !!(32 & n.__u), a = [s = t.__e = n.__e]), (f = I.__b) && f(t);
|
|
120
120
|
e: if (typeof $ == "function") try {
|
|
121
|
-
if (S = t.props, L = "prototype" in $ && $.prototype.render, T = (f = $.contextType) && r[f.__c], A = f ? T ? T.props.value : f.__ : r, n.__c ? b = (u = t.__c = n.__c).__ = u.__E : (L ? t.__c = u = new $(S, A) : (t.__c = u = new Ae(S, A), u.constructor = $, u.render = rr), T && T.sub(u), u.props = S, u.state || (u.state = {}), u.context = A, u.__n = r,
|
|
121
|
+
if (S = t.props, L = "prototype" in $ && $.prototype.render, T = (f = $.contextType) && r[f.__c], A = f ? T ? T.props.value : f.__ : r, n.__c ? b = (u = t.__c = n.__c).__ = u.__E : (L ? t.__c = u = new $(S, A) : (t.__c = u = new Ae(S, A), u.constructor = $, 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 && $.getDerivedStateFromProps != null && (u.__s == u.state && (u.__s = K({}, u.__s)), K(u.__s, $.getDerivedStateFromProps(S, u.__s))), m = u.props, h = u.state, u.__v = t, x) L && $.getDerivedStateFromProps == null && u.componentWillMount != null && u.componentWillMount(), L && u.componentDidMount != null && u.__h.push(u.componentDidMount);
|
|
122
122
|
else {
|
|
123
123
|
if (L && $.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) {
|
|
@@ -128,7 +128,7 @@ function lt(e, t, n, r, o, a, i, s, p, c) {
|
|
|
128
128
|
break e;
|
|
129
129
|
}
|
|
130
130
|
u.componentWillUpdate != null && u.componentWillUpdate(S, u.__s, A), L && u.componentDidUpdate != null && u.__h.push(function() {
|
|
131
|
-
u.componentDidUpdate(m, h,
|
|
131
|
+
u.componentDidUpdate(m, h, _);
|
|
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) {
|
|
@@ -137,7 +137,7 @@ function lt(e, t, n, r, o, a, i, s, p, c) {
|
|
|
137
137
|
} else do
|
|
138
138
|
u.__d = !1, R && R(t), f = 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 && !
|
|
140
|
+
u.state = u.__s, u.getChildContext != null && (r = K(K({}, r), u.getChildContext())), L && !x && u.getSnapshotBeforeUpdate != null && (_ = u.getSnapshotBeforeUpdate(m, h)), F = f, f != null && f.type === ne && f.key == null && (F = ln(f.props.children)), s = on(e, De(F) ? F : [F], t, n, r, o, a, i, s, p, c), u.base = t.__e, t.__u &= -161, u.__h.length && i.push(u), b && (u.__E = u.__ = null);
|
|
141
141
|
} catch (V) {
|
|
142
142
|
if (t.__v = null, p || a != null) if (V.then) {
|
|
143
143
|
for (t.__u |= p ? 160 : 128; s && s.nodeType == 8 && s.nextSibling; ) s = s.nextSibling;
|
|
@@ -165,7 +165,7 @@ 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
167
|
function nr(e, t, n, r, o, a, i, s, p) {
|
|
168
|
-
var c, f, u,
|
|
168
|
+
var c, f, 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,10 +186,10 @@ 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" ?
|
|
189
|
+
for (c in S) m = S[c], c == "children" ? x = m : c == "dangerouslySetInnerHTML" ? f = m : c == "value" ? h = m : c == "checked" ? _ = m : s && typeof m != "function" || b[c] === m || Le(e, c, m, b[c], o);
|
|
190
190
|
if (f) s || u && (f.__html == u.__html || f.__html == e.innerHTML) || (e.innerHTML = f.__html), t.__k = [];
|
|
191
|
-
else if (u && (e.innerHTML = ""), on(t.type == "template" ? e.content : e, De(
|
|
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",
|
|
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, p), a != null) for (c = a.length; c--; ) st(a[c]);
|
|
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;
|
|
195
195
|
}
|
|
@@ -272,17 +272,17 @@ function ir(e, t, n) {
|
|
|
272
272
|
}], r.__c = D, !D.__f)) {
|
|
273
273
|
var o = function(s, p, c) {
|
|
274
274
|
if (!r.__c.__H) return !0;
|
|
275
|
-
var f = r.__c.__H.__.filter(function(
|
|
276
|
-
return !!
|
|
275
|
+
var f = r.__c.__H.__.filter(function(x) {
|
|
276
|
+
return !!x.__c;
|
|
277
277
|
});
|
|
278
|
-
if (f.every(function(
|
|
279
|
-
return !
|
|
278
|
+
if (f.every(function(x) {
|
|
279
|
+
return !x.__N;
|
|
280
280
|
})) return !a || a.call(this, s, p, c);
|
|
281
281
|
var u = r.__c.props !== s;
|
|
282
|
-
return f.forEach(function(
|
|
283
|
-
if (
|
|
284
|
-
var m =
|
|
285
|
-
|
|
282
|
+
return f.forEach(function(x) {
|
|
283
|
+
if (x.__N) {
|
|
284
|
+
var m = x.__[0];
|
|
285
|
+
x.__ = x.__N, x.__N = void 0, m !== x.__[0] && (u = !0);
|
|
286
286
|
}
|
|
287
287
|
}), a && a.call(this, s, p, c) || u;
|
|
288
288
|
};
|
|
@@ -679,8 +679,8 @@ function We(e, t, n) {
|
|
|
679
679
|
metaTokens: !0,
|
|
680
680
|
dots: !1,
|
|
681
681
|
indexes: !1
|
|
682
|
-
}, !1, function(
|
|
683
|
-
return !g.isUndefined(b[
|
|
682
|
+
}, !1, function(_, b) {
|
|
683
|
+
return !g.isUndefined(b[_]);
|
|
684
684
|
});
|
|
685
685
|
const r = n.metaTokens, o = n.visitor || f, a = n.dots, i = n.indexes, p = (n.Blob || typeof Blob < "u" && Blob) && g.isSpecCompliantForm(t);
|
|
686
686
|
if (!g.isFunction(o))
|
|
@@ -695,39 +695,39 @@ function We(e, t, n) {
|
|
|
695
695
|
throw new C("Blob is not supported. Use a Buffer instead.");
|
|
696
696
|
return g.isArrayBuffer(h) || g.isTypedArray(h) ? p && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
|
|
697
697
|
}
|
|
698
|
-
function f(h,
|
|
698
|
+
function f(h, _, b) {
|
|
699
699
|
let S = h;
|
|
700
700
|
if (h && !b && typeof h == "object") {
|
|
701
|
-
if (g.endsWith(
|
|
702
|
-
|
|
703
|
-
else if (g.isArray(h) && Gr(h) || (g.isFileList(h) || g.endsWith(
|
|
704
|
-
return
|
|
701
|
+
if (g.endsWith(_, "{}"))
|
|
702
|
+
_ = r ? _ : _.slice(0, -2), h = JSON.stringify(h);
|
|
703
|
+
else if (g.isArray(h) && Gr(h) || (g.isFileList(h) || g.endsWith(_, "[]")) && (S = g.toArray(h)))
|
|
704
|
+
return _ = kn(_), S.forEach(function(T, A) {
|
|
705
705
|
!(g.isUndefined(T) || T === null) && t.append(
|
|
706
706
|
// eslint-disable-next-line no-nested-ternary
|
|
707
|
-
i === !0 ? Dt([
|
|
707
|
+
i === !0 ? Dt([_], A, a) : i === null ? _ : _ + "[]",
|
|
708
708
|
c(T)
|
|
709
709
|
);
|
|
710
710
|
}), !1;
|
|
711
711
|
}
|
|
712
|
-
return et(h) ? !0 : (t.append(Dt(b,
|
|
712
|
+
return et(h) ? !0 : (t.append(Dt(b, _, a), c(h)), !1);
|
|
713
713
|
}
|
|
714
|
-
const u = [],
|
|
714
|
+
const u = [], x = Object.assign(Kr, {
|
|
715
715
|
defaultVisitor: f,
|
|
716
716
|
convertValue: c,
|
|
717
717
|
isVisitable: et
|
|
718
718
|
});
|
|
719
|
-
function m(h,
|
|
719
|
+
function m(h, _) {
|
|
720
720
|
if (!g.isUndefined(h)) {
|
|
721
721
|
if (u.indexOf(h) !== -1)
|
|
722
|
-
throw Error("Circular reference detected in " +
|
|
722
|
+
throw Error("Circular reference detected in " + _.join("."));
|
|
723
723
|
u.push(h), g.forEach(h, function(S, L) {
|
|
724
724
|
(!(g.isUndefined(S) || S === null) && o.call(
|
|
725
725
|
t,
|
|
726
726
|
S,
|
|
727
727
|
g.isString(L) ? L.trim() : L,
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
)) === !0 && m(S,
|
|
728
|
+
_,
|
|
729
|
+
x
|
|
730
|
+
)) === !0 && m(S, _ ? _.concat(L) : [L]);
|
|
731
731
|
}), u.pop();
|
|
732
732
|
}
|
|
733
733
|
}
|
|
@@ -1211,13 +1211,13 @@ function yo(e, t) {
|
|
|
1211
1211
|
return t = t !== void 0 ? t : 1e3, function(p) {
|
|
1212
1212
|
const c = Date.now(), f = r[a];
|
|
1213
1213
|
i || (i = c), n[o] = p, r[o] = c;
|
|
1214
|
-
let u = a,
|
|
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
1219
|
const m = f && c - f;
|
|
1220
|
-
return m ? Math.round(
|
|
1220
|
+
return m ? Math.round(x * 1e3 / m) : void 0;
|
|
1221
1221
|
};
|
|
1222
1222
|
}
|
|
1223
1223
|
function xo(e, t) {
|
|
@@ -1302,14 +1302,14 @@ const $t = (e) => e instanceof q ? { ...e } : e;
|
|
|
1302
1302
|
function te(e, t) {
|
|
1303
1303
|
t = t || {};
|
|
1304
1304
|
const n = {};
|
|
1305
|
-
function r(c, f, u,
|
|
1306
|
-
return g.isPlainObject(c) && g.isPlainObject(f) ? g.merge.call({ caseless:
|
|
1305
|
+
function r(c, f, u, x) {
|
|
1306
|
+
return g.isPlainObject(c) && g.isPlainObject(f) ? g.merge.call({ caseless: x }, c, f) : g.isPlainObject(f) ? g.merge({}, f) : g.isArray(f) ? f.slice() : f;
|
|
1307
1307
|
}
|
|
1308
|
-
function o(c, f, u,
|
|
1308
|
+
function o(c, f, u, x) {
|
|
1309
1309
|
if (g.isUndefined(f)) {
|
|
1310
1310
|
if (!g.isUndefined(c))
|
|
1311
|
-
return r(void 0, c, u,
|
|
1312
|
-
} else return r(c, f, u,
|
|
1311
|
+
return r(void 0, c, u, x);
|
|
1312
|
+
} else return r(c, f, u, x);
|
|
1313
1313
|
}
|
|
1314
1314
|
function a(c, f) {
|
|
1315
1315
|
if (!g.isUndefined(f))
|
|
@@ -1359,8 +1359,8 @@ function te(e, t) {
|
|
|
1359
1359
|
headers: (c, f, u) => o($t(c), $t(f), u, !0)
|
|
1360
1360
|
};
|
|
1361
1361
|
return g.forEach(Object.keys(Object.assign({}, e, t)), function(f) {
|
|
1362
|
-
const u = p[f] || o,
|
|
1363
|
-
g.isUndefined(
|
|
1362
|
+
const u = p[f] || o, x = u(e[f], t[f], f);
|
|
1363
|
+
g.isUndefined(x) && u !== s || (n[f] = x);
|
|
1364
1364
|
}), n;
|
|
1365
1365
|
}
|
|
1366
1366
|
const Fn = (e) => {
|
|
@@ -1389,8 +1389,8 @@ 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: p, onDownloadProgress: c } = o, f, u,
|
|
1393
|
-
function
|
|
1392
|
+
let { responseType: s, onUploadProgress: p, onDownloadProgress: c } = o, f, u, x, m, h;
|
|
1393
|
+
function _() {
|
|
1394
1394
|
m && m(), h && h(), o.cancelToken && o.cancelToken.unsubscribe(f), o.signal && o.signal.removeEventListener("abort", f);
|
|
1395
1395
|
}
|
|
1396
1396
|
let b = new XMLHttpRequest();
|
|
@@ -1409,9 +1409,9 @@ const Fn = (e) => {
|
|
|
1409
1409
|
request: b
|
|
1410
1410
|
};
|
|
1411
1411
|
Bn(function(P) {
|
|
1412
|
-
n(P),
|
|
1412
|
+
n(P), _();
|
|
1413
1413
|
}, function(P) {
|
|
1414
|
-
r(P),
|
|
1414
|
+
r(P), _();
|
|
1415
1415
|
}, M), b = null;
|
|
1416
1416
|
}
|
|
1417
1417
|
"onloadend" in b ? b.onloadend = S : b.onreadystatechange = function() {
|
|
@@ -1431,7 +1431,7 @@ 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 && ([
|
|
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)), p && b.upload && ([u, m] = Re(p), b.upload.addEventListener("progress", u), b.upload.addEventListener("loadend", m)), (o.cancelToken || o.signal) && (f = (T) => {
|
|
1435
1435
|
b && (r(!T || T.type ? new ce(null, e, b) : T), b.abort(), b = null);
|
|
1436
1436
|
}, o.cancelToken && o.cancelToken.subscribe(f), o.signal && (o.signal.aborted ? f() : o.signal.addEventListener("abort", f)));
|
|
1437
1437
|
const L = bo(o.url);
|
|
@@ -1507,8 +1507,8 @@ const Fn = (e) => {
|
|
|
1507
1507
|
}
|
|
1508
1508
|
let u = f.byteLength;
|
|
1509
1509
|
if (n) {
|
|
1510
|
-
let
|
|
1511
|
-
n(
|
|
1510
|
+
let x = a += u;
|
|
1511
|
+
n(x);
|
|
1512
1512
|
}
|
|
1513
1513
|
p.enqueue(new Uint8Array(f));
|
|
1514
1514
|
} catch (c) {
|
|
@@ -1577,11 +1577,11 @@ const Ro = async (e) => {
|
|
|
1577
1577
|
responseType: c,
|
|
1578
1578
|
headers: f,
|
|
1579
1579
|
withCredentials: u = "same-origin",
|
|
1580
|
-
fetchOptions:
|
|
1580
|
+
fetchOptions: x
|
|
1581
1581
|
} = Fn(e);
|
|
1582
1582
|
c = c ? (c + "").toLowerCase() : "text";
|
|
1583
1583
|
let m = Eo([o, a && a.toAbortSignal()], i), h;
|
|
1584
|
-
const
|
|
1584
|
+
const _ = m && m.unsubscribe && (() => {
|
|
1585
1585
|
m.unsubscribe();
|
|
1586
1586
|
});
|
|
1587
1587
|
let b;
|
|
@@ -1603,7 +1603,7 @@ const Ro = async (e) => {
|
|
|
1603
1603
|
g.isString(u) || (u = u ? "include" : "omit");
|
|
1604
1604
|
const S = "credentials" in Request.prototype;
|
|
1605
1605
|
h = new Request(t, {
|
|
1606
|
-
...
|
|
1606
|
+
...x,
|
|
1607
1607
|
signal: m,
|
|
1608
1608
|
method: n.toUpperCase(),
|
|
1609
1609
|
headers: f.normalize().toJSON(),
|
|
@@ -1611,9 +1611,9 @@ const Ro = async (e) => {
|
|
|
1611
1611
|
duplex: "half",
|
|
1612
1612
|
credentials: S ? u : void 0
|
|
1613
1613
|
});
|
|
1614
|
-
let L = await fetch(h,
|
|
1614
|
+
let L = await fetch(h, x);
|
|
1615
1615
|
const T = nt && (c === "stream" || c === "response");
|
|
1616
|
-
if (nt && (s || T &&
|
|
1616
|
+
if (nt && (s || T && _)) {
|
|
1617
1617
|
const M = {};
|
|
1618
1618
|
["status", "statusText", "headers"].forEach((F) => {
|
|
1619
1619
|
M[F] = L[F];
|
|
@@ -1624,14 +1624,14 @@ const Ro = async (e) => {
|
|
|
1624
1624
|
) || [];
|
|
1625
1625
|
L = new Response(
|
|
1626
1626
|
Wt(L.body, Ht, P, () => {
|
|
1627
|
-
w && w(),
|
|
1627
|
+
w && w(), _ && _();
|
|
1628
1628
|
}),
|
|
1629
1629
|
M
|
|
1630
1630
|
);
|
|
1631
1631
|
}
|
|
1632
1632
|
c = c || "text";
|
|
1633
1633
|
let A = await Fe[g.findKey(Fe, c) || "text"](L, e);
|
|
1634
|
-
return !T &&
|
|
1634
|
+
return !T && _ && _(), await new Promise((M, R) => {
|
|
1635
1635
|
Bn(M, R, {
|
|
1636
1636
|
data: A,
|
|
1637
1637
|
headers: q.from(L.headers),
|
|
@@ -1642,7 +1642,7 @@ const Ro = async (e) => {
|
|
|
1642
1642
|
});
|
|
1643
1643
|
});
|
|
1644
1644
|
} catch (S) {
|
|
1645
|
-
throw
|
|
1645
|
+
throw _ && _(), S && S.name === "TypeError" && /Load failed|fetch/i.test(S.message) ? Object.assign(
|
|
1646
1646
|
new C("Network Error", C.ERR_NETWORK, e, h),
|
|
1647
1647
|
{
|
|
1648
1648
|
cause: S.cause || S
|
|
@@ -1825,28 +1825,28 @@ let ee = class {
|
|
|
1825
1825
|
), n.headers = q.concat(i, a);
|
|
1826
1826
|
const s = [];
|
|
1827
1827
|
let p = !0;
|
|
1828
|
-
this.interceptors.request.forEach(function(
|
|
1829
|
-
typeof
|
|
1828
|
+
this.interceptors.request.forEach(function(_) {
|
|
1829
|
+
typeof _.runWhen == "function" && _.runWhen(n) === !1 || (p = p && _.synchronous, s.unshift(_.fulfilled, _.rejected));
|
|
1830
1830
|
});
|
|
1831
1831
|
const c = [];
|
|
1832
|
-
this.interceptors.response.forEach(function(
|
|
1833
|
-
c.push(
|
|
1832
|
+
this.interceptors.response.forEach(function(_) {
|
|
1833
|
+
c.push(_.fulfilled, _.rejected);
|
|
1834
1834
|
});
|
|
1835
|
-
let f, u = 0,
|
|
1835
|
+
let f, u = 0, x;
|
|
1836
1836
|
if (!p) {
|
|
1837
1837
|
const h = [qt.bind(this), void 0];
|
|
1838
|
-
for (h.unshift.apply(h, s), h.push.apply(h, c),
|
|
1838
|
+
for (h.unshift.apply(h, s), h.push.apply(h, c), x = h.length, f = Promise.resolve(n); u < x; )
|
|
1839
1839
|
f = f.then(h[u++], h[u++]);
|
|
1840
1840
|
return f;
|
|
1841
1841
|
}
|
|
1842
|
-
|
|
1842
|
+
x = s.length;
|
|
1843
1843
|
let m = n;
|
|
1844
|
-
for (u = 0; u <
|
|
1845
|
-
const h = s[u++],
|
|
1844
|
+
for (u = 0; u < x; ) {
|
|
1845
|
+
const h = s[u++], _ = s[u++];
|
|
1846
1846
|
try {
|
|
1847
1847
|
m = h(m);
|
|
1848
1848
|
} catch (b) {
|
|
1849
|
-
|
|
1849
|
+
_.call(this, b);
|
|
1850
1850
|
break;
|
|
1851
1851
|
}
|
|
1852
1852
|
}
|
|
@@ -1855,7 +1855,7 @@ let ee = class {
|
|
|
1855
1855
|
} catch (h) {
|
|
1856
1856
|
return Promise.reject(h);
|
|
1857
1857
|
}
|
|
1858
|
-
for (u = 0,
|
|
1858
|
+
for (u = 0, x = c.length; u < x; )
|
|
1859
1859
|
f = f.then(c[u++], c[u++]);
|
|
1860
1860
|
return f;
|
|
1861
1861
|
}
|
|
@@ -2516,6 +2516,7 @@ const Zo = {
|
|
|
2516
2516
|
"注:地区/币种/卡类型可能影响手续费,最终以平台为准。": "注:地区/币种/卡类型可能影响手续费,最终以平台为准。",
|
|
2517
2517
|
确定: "确定",
|
|
2518
2518
|
提交成功: "提交成功",
|
|
2519
|
+
年: "年",
|
|
2519
2520
|
// 余额相关
|
|
2520
2521
|
余额详情: "余额详情",
|
|
2521
2522
|
真实金额: "真实金额",
|
|
@@ -2644,6 +2645,7 @@ const ei = {
|
|
|
2644
2645
|
"注:地区/币种/卡类型可能影响手续费,最终以平台为准。": "Note: Region/currency/card type may affect handling fees, subject to the platform.",
|
|
2645
2646
|
确定: "Confirm",
|
|
2646
2647
|
提交成功: "Submit Success",
|
|
2648
|
+
年: "Year",
|
|
2647
2649
|
// 余额相关
|
|
2648
2650
|
余额详情: "Balance Details",
|
|
2649
2651
|
真实金额: "Real Balance",
|
|
@@ -2770,7 +2772,7 @@ function ni() {
|
|
|
2770
2772
|
sessionStorage.getItem("fund_unit_params") || "{}"
|
|
2771
2773
|
).locale || Oe.ZH;
|
|
2772
2774
|
}
|
|
2773
|
-
function
|
|
2775
|
+
function y(e) {
|
|
2774
2776
|
return ni() === "zh" ? Qo(e) : ti(e);
|
|
2775
2777
|
}
|
|
2776
2778
|
const Yt = {
|
|
@@ -2863,11 +2865,11 @@ const it = ({
|
|
|
2863
2865
|
dropdownClassName: c,
|
|
2864
2866
|
children: f
|
|
2865
2867
|
}) => {
|
|
2866
|
-
const [u,
|
|
2868
|
+
const [u, x] = B(!1), m = se(null), [h, _] = B(null), b = ri(), S = E("size");
|
|
2867
2869
|
J(() => {
|
|
2868
2870
|
if (!u) return;
|
|
2869
2871
|
const A = (M) => {
|
|
2870
|
-
m.current && !m.current.contains(M.target) &&
|
|
2872
|
+
m.current && !m.current.contains(M.target) && x(!1);
|
|
2871
2873
|
};
|
|
2872
2874
|
return document.addEventListener("mousedown", A), () => document.removeEventListener("mousedown", A);
|
|
2873
2875
|
}, [u]);
|
|
@@ -2898,7 +2900,7 @@ const it = ({
|
|
|
2898
2900
|
/* @__PURE__ */ d(
|
|
2899
2901
|
"div",
|
|
2900
2902
|
{
|
|
2901
|
-
onClick: () => !i &&
|
|
2903
|
+
onClick: () => !i && x((A) => !A),
|
|
2902
2904
|
style: {
|
|
2903
2905
|
minHeight: S === l.SMALL ? 32 : 40,
|
|
2904
2906
|
borderRadius: 6,
|
|
@@ -2979,7 +2981,7 @@ const it = ({
|
|
|
2979
2981
|
viewBox: "0 0 64 41",
|
|
2980
2982
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2981
2983
|
children: [
|
|
2982
|
-
/* @__PURE__ */ d("title", { children:
|
|
2984
|
+
/* @__PURE__ */ d("title", { children: y("暂无数据") }),
|
|
2983
2985
|
/* @__PURE__ */ d("g", { transform: "translate(0 1)", fill: "none", fillRule: "evenodd", children: [
|
|
2984
2986
|
/* @__PURE__ */ d(
|
|
2985
2987
|
"ellipse",
|
|
@@ -3013,7 +3015,7 @@ const it = ({
|
|
|
3013
3015
|
color: "#bfbfbf",
|
|
3014
3016
|
fontSize: S === l.SMALL ? 12 : 15
|
|
3015
3017
|
},
|
|
3016
|
-
children:
|
|
3018
|
+
children: y("暂无数据")
|
|
3017
3019
|
}
|
|
3018
3020
|
)
|
|
3019
3021
|
]
|
|
@@ -3023,10 +3025,10 @@ const it = ({
|
|
|
3023
3025
|
"div",
|
|
3024
3026
|
{
|
|
3025
3027
|
onClick: () => {
|
|
3026
|
-
A.disabled || (
|
|
3028
|
+
A.disabled || (x(!1), t?.(A.value));
|
|
3027
3029
|
},
|
|
3028
|
-
onMouseEnter: () =>
|
|
3029
|
-
onMouseLeave: () =>
|
|
3030
|
+
onMouseEnter: () => _(M),
|
|
3031
|
+
onMouseLeave: () => _(null),
|
|
3030
3032
|
style: {
|
|
3031
3033
|
padding: S === l.SMALL ? "6px 10px" : "10px 16px",
|
|
3032
3034
|
fontSize: S === l.SMALL ? 12 : 15,
|
|
@@ -3248,31 +3250,31 @@ function si(e) {
|
|
|
3248
3250
|
return isNaN(t) ? "" : t.toFixed(2);
|
|
3249
3251
|
}
|
|
3250
3252
|
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, p] = B(""), [c, f] = B(""), [u,
|
|
3253
|
+
const o = JSON.parse(sessionStorage.getItem("all_dicts") || "{}"), a = o?.currency || [], i = o?.channel?.filter((h) => h.payment_support) || [], [s, p] = B(""), [c, f] = B(""), [u, x] = B(!1), m = ii();
|
|
3252
3254
|
return J(() => {
|
|
3253
3255
|
e.currency && e.amount && e.rechargeChannel ? Hn({
|
|
3254
3256
|
channel: e.rechargeChannel,
|
|
3255
3257
|
amount: e.amount,
|
|
3256
3258
|
currency: e.currency
|
|
3257
3259
|
}).then((h) => {
|
|
3258
|
-
p(h.paymentAmount), f(h.fee),
|
|
3260
|
+
p(h.paymentAmount), f(h.fee), x(!0);
|
|
3259
3261
|
}).catch((h) => {
|
|
3260
|
-
console.error("计算支付金额失败:", h),
|
|
3261
|
-
}) :
|
|
3262
|
+
console.error("计算支付金额失败:", h), x(!1);
|
|
3263
|
+
}) : x(!1);
|
|
3262
3264
|
}, [e.currency, e.amount, e.rechargeChannel]), /* @__PURE__ */ d(ne, { children: [
|
|
3263
3265
|
/* @__PURE__ */ d("div", { style: { marginBottom: 18 }, children: [
|
|
3264
3266
|
/* @__PURE__ */ d("div", { style: m.label, children: [
|
|
3265
3267
|
/* @__PURE__ */ d("span", { style: { color: "#F53F3F" }, children: "*" }),
|
|
3266
3268
|
" ",
|
|
3267
|
-
|
|
3269
|
+
y("充值币种")
|
|
3268
3270
|
] }),
|
|
3269
3271
|
/* @__PURE__ */ d(
|
|
3270
3272
|
it,
|
|
3271
3273
|
{
|
|
3272
3274
|
value: e.currency,
|
|
3273
3275
|
onChange: (h) => {
|
|
3274
|
-
t((
|
|
3275
|
-
...
|
|
3276
|
+
t((_) => ({
|
|
3277
|
+
..._,
|
|
3276
3278
|
currency: h
|
|
3277
3279
|
}));
|
|
3278
3280
|
},
|
|
@@ -3280,7 +3282,7 @@ const li = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
|
3280
3282
|
value: h.value,
|
|
3281
3283
|
label: h.label
|
|
3282
3284
|
})),
|
|
3283
|
-
placeholder:
|
|
3285
|
+
placeholder: y("请选择充值币种")
|
|
3284
3286
|
}
|
|
3285
3287
|
)
|
|
3286
3288
|
] }),
|
|
@@ -3288,36 +3290,36 @@ const li = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
|
3288
3290
|
/* @__PURE__ */ d("div", { style: m.label, children: [
|
|
3289
3291
|
/* @__PURE__ */ d("span", { style: { color: "#F53F3F" }, children: "*" }),
|
|
3290
3292
|
" ",
|
|
3291
|
-
|
|
3293
|
+
y("充值金额")
|
|
3292
3294
|
] }),
|
|
3293
3295
|
/* @__PURE__ */ d(
|
|
3294
3296
|
"input",
|
|
3295
3297
|
{
|
|
3296
3298
|
type: "text",
|
|
3297
|
-
placeholder:
|
|
3299
|
+
placeholder: y("请输入充值金额"),
|
|
3298
3300
|
value: e.amount,
|
|
3299
3301
|
onInput: (h) => {
|
|
3300
|
-
let
|
|
3301
|
-
|
|
3302
|
+
let _ = h.target.value;
|
|
3303
|
+
_ = ai(_);
|
|
3302
3304
|
let b = "";
|
|
3303
|
-
if (
|
|
3304
|
-
let S = parseFloat(
|
|
3305
|
-
if (!isNaN(S) && (S < 1 && (S = 1), S > 999999.99 && (S = 999999.99),
|
|
3305
|
+
if (_ && !_.endsWith(".")) {
|
|
3306
|
+
let S = parseFloat(_);
|
|
3307
|
+
if (!isNaN(S) && (S < 1 && (S = 1), S > 999999.99 && (S = 999999.99), _ = S.toString(), /\./.test(h.target.value))) {
|
|
3306
3308
|
const L = h.target.value.split(".")[1];
|
|
3307
|
-
L !== void 0 && L.length > 0 && (
|
|
3309
|
+
L !== void 0 && L.length > 0 && (_ = S.toFixed(Math.min(L.length, 2)));
|
|
3308
3310
|
}
|
|
3309
3311
|
}
|
|
3310
3312
|
t((S) => ({
|
|
3311
3313
|
...S,
|
|
3312
|
-
amount:
|
|
3314
|
+
amount: _,
|
|
3313
3315
|
amountError: b
|
|
3314
3316
|
}));
|
|
3315
3317
|
},
|
|
3316
3318
|
onBlur: (h) => {
|
|
3317
|
-
let
|
|
3318
|
-
|
|
3319
|
+
let _ = h.target.value;
|
|
3320
|
+
_ = si(_), t((b) => ({
|
|
3319
3321
|
...b,
|
|
3320
|
-
amount:
|
|
3322
|
+
amount: _,
|
|
3321
3323
|
amountError: ""
|
|
3322
3324
|
}));
|
|
3323
3325
|
},
|
|
@@ -3333,24 +3335,24 @@ const li = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
|
3333
3335
|
/* @__PURE__ */ d("div", { style: m.label, children: [
|
|
3334
3336
|
/* @__PURE__ */ d("span", { style: { color: "#F53F3F" }, children: "*" }),
|
|
3335
3337
|
" ",
|
|
3336
|
-
|
|
3338
|
+
y("支付平台")
|
|
3337
3339
|
] }),
|
|
3338
3340
|
/* @__PURE__ */ d(
|
|
3339
3341
|
it,
|
|
3340
3342
|
{
|
|
3341
3343
|
value: e.rechargeChannel,
|
|
3342
3344
|
onChange: (h) => {
|
|
3343
|
-
t((
|
|
3344
|
-
...
|
|
3345
|
+
t((_) => ({
|
|
3346
|
+
..._,
|
|
3345
3347
|
rechargeChannel: h,
|
|
3346
|
-
rechargeChannelError: h ? "" :
|
|
3348
|
+
rechargeChannelError: h ? "" : _.rechargeChannelError
|
|
3347
3349
|
}));
|
|
3348
3350
|
},
|
|
3349
3351
|
options: i?.map((h) => ({
|
|
3350
3352
|
value: h.value,
|
|
3351
3353
|
label: h.label
|
|
3352
3354
|
})),
|
|
3353
|
-
placeholder:
|
|
3355
|
+
placeholder: y("请选择支付平台")
|
|
3354
3356
|
}
|
|
3355
3357
|
),
|
|
3356
3358
|
e.rechargeChannelError && /* @__PURE__ */ d("div", { style: m.error, children: e.rechargeChannelError })
|
|
@@ -3359,26 +3361,26 @@ const li = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
|
3359
3361
|
i.find(
|
|
3360
3362
|
(h) => h.value === e.rechargeChannel
|
|
3361
3363
|
)?.label || e.rechargeChannel,
|
|
3362
|
-
|
|
3364
|
+
y("需要收取手续费,实际支付金额约为:"),
|
|
3363
3365
|
"$",
|
|
3364
3366
|
s
|
|
3365
3367
|
] }),
|
|
3366
3368
|
u && s && /* @__PURE__ */ d("div", { style: m.feeDetailBox, children: [
|
|
3367
3369
|
/* @__PURE__ */ d("div", { style: m.feeDetailTitle, children: [
|
|
3368
|
-
|
|
3370
|
+
y("手续费约为:"),
|
|
3369
3371
|
/* @__PURE__ */ d("span", { style: m.feeAmount, children: [
|
|
3370
3372
|
"$",
|
|
3371
3373
|
c
|
|
3372
3374
|
] })
|
|
3373
3375
|
] }),
|
|
3374
|
-
/* @__PURE__ */ d("div", { style: m.feeDetailDesc, children:
|
|
3376
|
+
/* @__PURE__ */ d("div", { style: m.feeDetailDesc, children: y(
|
|
3375
3377
|
"额外费用说明:您的地区、币种、支付卡类型等因素可能会导致手续费的变动,最终手续费以官方为准。"
|
|
3376
3378
|
) })
|
|
3377
3379
|
] }),
|
|
3378
3380
|
e.error && /* @__PURE__ */ d("div", { style: { color: "#ff4d4f", marginBottom: 12 }, children: e.error }),
|
|
3379
3381
|
/* @__PURE__ */ d("div", { style: { display: "flex", justifyContent: "flex-end", gap: 12 }, children: [
|
|
3380
|
-
/* @__PURE__ */ d("button", { type: "button", onClick: n, style: m.buttonCancel, children:
|
|
3381
|
-
/* @__PURE__ */ d("button", { type: "submit", disabled: r, style: m.buttonSubmit, children:
|
|
3382
|
+
/* @__PURE__ */ d("button", { type: "button", onClick: n, style: m.buttonCancel, children: y("取消") }),
|
|
3383
|
+
/* @__PURE__ */ d("button", { type: "submit", disabled: r, style: m.buttonSubmit, children: y(r ? "提交中..." : "去支付") })
|
|
3382
3384
|
] })
|
|
3383
3385
|
] });
|
|
3384
3386
|
};
|
|
@@ -3475,8 +3477,8 @@ const ui = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3475
3477
|
multiple: o = !0,
|
|
3476
3478
|
disabled: a = !1
|
|
3477
3479
|
}) => {
|
|
3478
|
-
const i = E("size"), s = se(null), [p, c] = B(!1), [f, u] = B(0),
|
|
3479
|
-
const b = Array.from(
|
|
3480
|
+
const i = E("size"), s = se(null), [p, c] = B(!1), [f, u] = B(0), x = di(), m = async (_) => {
|
|
3481
|
+
const b = Array.from(_.target.files).slice(
|
|
3480
3482
|
0,
|
|
3481
3483
|
n
|
|
3482
3484
|
);
|
|
@@ -3497,8 +3499,8 @@ const ui = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3497
3499
|
}
|
|
3498
3500
|
}
|
|
3499
3501
|
c(!1), u(0), t?.([...e, ...S]), s.current && (s.current.value = "");
|
|
3500
|
-
}, h = (
|
|
3501
|
-
const b = e.filter((S, L) => L !==
|
|
3502
|
+
}, h = (_) => {
|
|
3503
|
+
const b = e.filter((S, L) => L !== _);
|
|
3502
3504
|
t?.(b);
|
|
3503
3505
|
};
|
|
3504
3506
|
return /* @__PURE__ */ d("div", { children: [
|
|
@@ -3506,8 +3508,8 @@ const ui = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3506
3508
|
"div",
|
|
3507
3509
|
{
|
|
3508
3510
|
style: {
|
|
3509
|
-
...
|
|
3510
|
-
cursor: a ? "not-allowed" :
|
|
3511
|
+
...x.container,
|
|
3512
|
+
cursor: a ? "not-allowed" : x.container.cursor,
|
|
3511
3513
|
opacity: a ? 0.6 : 1
|
|
3512
3514
|
},
|
|
3513
3515
|
onClick: () => !a && s.current?.click(),
|
|
@@ -3532,10 +3534,10 @@ const ui = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3532
3534
|
fontSize: i === l.SMALL ? 13 : 16,
|
|
3533
3535
|
marginBottom: i === l.SMALL ? 4 : 8
|
|
3534
3536
|
},
|
|
3535
|
-
children:
|
|
3537
|
+
children: y("Please upload the bank transfer receipt")
|
|
3536
3538
|
}
|
|
3537
3539
|
),
|
|
3538
|
-
/* @__PURE__ */ d("div", { style: { color: "#999", fontSize: i === l.SMALL ? 12 : 13 }, children:
|
|
3540
|
+
/* @__PURE__ */ d("div", { style: { color: "#999", fontSize: i === l.SMALL ? 12 : 13 }, children: y("Click or drag file to this area to upload") }),
|
|
3539
3541
|
/* @__PURE__ */ d(
|
|
3540
3542
|
"input",
|
|
3541
3543
|
{
|
|
@@ -3556,7 +3558,7 @@ const ui = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3556
3558
|
color: "#1677ff"
|
|
3557
3559
|
},
|
|
3558
3560
|
children: [
|
|
3559
|
-
|
|
3561
|
+
y("正在上传..."),
|
|
3560
3562
|
" ",
|
|
3561
3563
|
f,
|
|
3562
3564
|
"%"
|
|
@@ -3566,8 +3568,8 @@ const ui = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3566
3568
|
]
|
|
3567
3569
|
}
|
|
3568
3570
|
),
|
|
3569
|
-
e && e.length > 0 && /* @__PURE__ */ d("div", { style: { marginTop: i === l.SMALL ? 8 : 12 }, children: e.map((
|
|
3570
|
-
/* @__PURE__ */ d("div", { style: { display: "flex", alignItems: "center", flex: 1 }, children: /* @__PURE__ */ d("span", { style: { fontWeight: 500, wordBreak: "break-all" }, children:
|
|
3571
|
+
e && e.length > 0 && /* @__PURE__ */ d("div", { style: { marginTop: i === l.SMALL ? 8 : 12 }, children: e.map((_, b) => /* @__PURE__ */ d("div", { style: x.fileItem, children: [
|
|
3572
|
+
/* @__PURE__ */ d("div", { style: { display: "flex", alignItems: "center", flex: 1 }, children: /* @__PURE__ */ d("span", { style: { fontWeight: 500, wordBreak: "break-all" }, children: _.split("/").pop() }) }),
|
|
3571
3573
|
/* @__PURE__ */ d(
|
|
3572
3574
|
"button",
|
|
3573
3575
|
{
|
|
@@ -3575,12 +3577,12 @@ const ui = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3575
3577
|
onClick: (S) => {
|
|
3576
3578
|
S.stopPropagation(), h(b);
|
|
3577
3579
|
},
|
|
3578
|
-
style:
|
|
3580
|
+
style: x.removeBtn,
|
|
3579
3581
|
disabled: a,
|
|
3580
|
-
children:
|
|
3582
|
+
children: y("移除")
|
|
3581
3583
|
}
|
|
3582
3584
|
)
|
|
3583
|
-
] },
|
|
3585
|
+
] }, _)) })
|
|
3584
3586
|
] });
|
|
3585
3587
|
};
|
|
3586
3588
|
function fi() {
|
|
@@ -3834,7 +3836,7 @@ const hi = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
|
3834
3836
|
console.log(o, "allDicts");
|
|
3835
3837
|
const a = o?.channel || [], i = pi(), [s, p] = B([]), c = async (u) => {
|
|
3836
3838
|
u.preventDefault();
|
|
3837
|
-
let
|
|
3839
|
+
let x = !0;
|
|
3838
3840
|
t((m) => ({
|
|
3839
3841
|
...m,
|
|
3840
3842
|
platformError: "",
|
|
@@ -3842,28 +3844,28 @@ const hi = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
|
3842
3844
|
filesError: ""
|
|
3843
3845
|
})), e.platform || (t((m) => ({
|
|
3844
3846
|
...m,
|
|
3845
|
-
platformError:
|
|
3846
|
-
})),
|
|
3847
|
+
platformError: y("请选择支付平台")
|
|
3848
|
+
})), x = !1), e.transactionId.trim() || (t((m) => ({
|
|
3847
3849
|
...m,
|
|
3848
|
-
transactionIdError:
|
|
3849
|
-
})),
|
|
3850
|
+
transactionIdError: y("请输入转账交易ID")
|
|
3851
|
+
})), x = !1), (!e.files || e.files.length === 0) && (t((m) => ({
|
|
3850
3852
|
...m,
|
|
3851
|
-
filesError:
|
|
3852
|
-
})),
|
|
3853
|
+
filesError: y("请上传转账凭证")
|
|
3854
|
+
})), x = !1), x && (await $n({
|
|
3853
3855
|
transferChannel: e.platform,
|
|
3854
3856
|
transferNo: e.transactionId,
|
|
3855
3857
|
voucherUrls: e.files
|
|
3856
|
-
}), n(), Ie.success(
|
|
3858
|
+
}), n(), Ie.success(y("提交成功")));
|
|
3857
3859
|
};
|
|
3858
3860
|
function f(u) {
|
|
3859
|
-
t((
|
|
3860
|
-
...
|
|
3861
|
+
t((x) => ({
|
|
3862
|
+
...x,
|
|
3861
3863
|
platform: u,
|
|
3862
|
-
platformError: u ? "" :
|
|
3864
|
+
platformError: u ? "" : x.platformError
|
|
3863
3865
|
})), jn({
|
|
3864
3866
|
code: u
|
|
3865
|
-
}).then((
|
|
3866
|
-
p(Array.isArray(
|
|
3867
|
+
}).then((x) => {
|
|
3868
|
+
p(Array.isArray(x) ? x : x ? [String(x)] : []);
|
|
3867
3869
|
});
|
|
3868
3870
|
}
|
|
3869
3871
|
return /* @__PURE__ */ d("form", { onSubmit: c, children: [
|
|
@@ -3871,7 +3873,7 @@ const hi = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
|
3871
3873
|
/* @__PURE__ */ d("div", { style: i.label, children: [
|
|
3872
3874
|
/* @__PURE__ */ d("span", { style: { color: "#F53F3F" }, children: "*" }),
|
|
3873
3875
|
" ",
|
|
3874
|
-
|
|
3876
|
+
y("第三方支付平台")
|
|
3875
3877
|
] }),
|
|
3876
3878
|
/* @__PURE__ */ d(
|
|
3877
3879
|
it,
|
|
@@ -3886,31 +3888,31 @@ const hi = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
|
3886
3888
|
label: u.label
|
|
3887
3889
|
}))
|
|
3888
3890
|
],
|
|
3889
|
-
placeholder:
|
|
3891
|
+
placeholder: y("请选择支付平台")
|
|
3890
3892
|
}
|
|
3891
3893
|
),
|
|
3892
3894
|
e.platformError && /* @__PURE__ */ d("div", { style: i.error, children: e.platformError }),
|
|
3893
|
-
s.length > 0 && /* @__PURE__ */ d("div", { style: i.channelInfoBox, children: s.map((u,
|
|
3895
|
+
s.length > 0 && /* @__PURE__ */ d("div", { style: i.channelInfoBox, children: s.map((u, x) => /* @__PURE__ */ d("div", { style: i.channelInfoItem, children: u }, x)) })
|
|
3894
3896
|
] }),
|
|
3895
3897
|
/* @__PURE__ */ d("div", { style: { marginBottom: 18 }, children: [
|
|
3896
3898
|
/* @__PURE__ */ d("div", { style: i.label, children: [
|
|
3897
3899
|
/* @__PURE__ */ d("span", { style: { color: "#F53F3F" }, children: "*" }),
|
|
3898
3900
|
" ",
|
|
3899
|
-
|
|
3901
|
+
y("交易ID")
|
|
3900
3902
|
] }),
|
|
3901
3903
|
/* @__PURE__ */ d(
|
|
3902
3904
|
"input",
|
|
3903
3905
|
{
|
|
3904
3906
|
type: "text",
|
|
3905
|
-
placeholder:
|
|
3907
|
+
placeholder: y("请输入转账交易ID"),
|
|
3906
3908
|
value: e.transactionId,
|
|
3907
3909
|
maxLength: 200,
|
|
3908
3910
|
onInput: (u) => {
|
|
3909
|
-
let
|
|
3910
|
-
|
|
3911
|
+
let x = u.target.value;
|
|
3912
|
+
x.length > 200 && (x = x.slice(0, 200)), t((m) => ({
|
|
3911
3913
|
...m,
|
|
3912
|
-
transactionId:
|
|
3913
|
-
transactionIdError:
|
|
3914
|
+
transactionId: x,
|
|
3915
|
+
transactionIdError: x ? "" : m.transactionIdError
|
|
3914
3916
|
}));
|
|
3915
3917
|
},
|
|
3916
3918
|
style: {
|
|
@@ -3925,14 +3927,14 @@ const hi = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
|
3925
3927
|
/* @__PURE__ */ d("div", { style: i.label, children: [
|
|
3926
3928
|
/* @__PURE__ */ d("span", { style: { color: "#F53F3F" }, children: "*" }),
|
|
3927
3929
|
" ",
|
|
3928
|
-
|
|
3930
|
+
y("上传文件")
|
|
3929
3931
|
] }),
|
|
3930
3932
|
/* @__PURE__ */ d(
|
|
3931
3933
|
qn,
|
|
3932
3934
|
{
|
|
3933
3935
|
value: e.files,
|
|
3934
|
-
onChange: (u) => t((
|
|
3935
|
-
...
|
|
3936
|
+
onChange: (u) => t((x) => ({
|
|
3937
|
+
...x,
|
|
3936
3938
|
files: u,
|
|
3937
3939
|
filesError: ""
|
|
3938
3940
|
})),
|
|
@@ -3944,8 +3946,8 @@ const hi = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
|
3944
3946
|
e.filesError && /* @__PURE__ */ d("div", { style: i.error, children: e.filesError })
|
|
3945
3947
|
] }),
|
|
3946
3948
|
/* @__PURE__ */ d("div", { style: { display: "flex", justifyContent: "flex-end", gap: 12 }, children: [
|
|
3947
|
-
/* @__PURE__ */ d("button", { type: "button", onClick: n, style: i.buttonCancel, children:
|
|
3948
|
-
/* @__PURE__ */ d("button", { type: "submit", disabled: r, style: i.buttonSubmit, children:
|
|
3949
|
+
/* @__PURE__ */ d("button", { type: "button", onClick: n, style: i.buttonCancel, children: y("取消") }),
|
|
3950
|
+
/* @__PURE__ */ d("button", { type: "submit", disabled: r, style: i.buttonSubmit, children: y("确定") })
|
|
3949
3951
|
] })
|
|
3950
3952
|
] });
|
|
3951
3953
|
};
|
|
@@ -4088,7 +4090,7 @@ function Jn({
|
|
|
4088
4090
|
}, [f]);
|
|
4089
4091
|
const u = (m) => {
|
|
4090
4092
|
m.target === m.currentTarget ? c(!0) : c(!1);
|
|
4091
|
-
},
|
|
4093
|
+
}, x = (m) => {
|
|
4092
4094
|
m.target === m.currentTarget && p && s && t(), c(!1);
|
|
4093
4095
|
};
|
|
4094
4096
|
return e ? /* @__PURE__ */ d(
|
|
@@ -4107,7 +4109,7 @@ function Jn({
|
|
|
4107
4109
|
zIndex: 9999
|
|
4108
4110
|
},
|
|
4109
4111
|
onMouseDown: u,
|
|
4110
|
-
onMouseUp:
|
|
4112
|
+
onMouseUp: x,
|
|
4111
4113
|
children: /* @__PURE__ */ d(
|
|
4112
4114
|
"div",
|
|
4113
4115
|
{
|
|
@@ -4266,15 +4268,15 @@ function Si({ visible: e, onClose: t, onSubmit: n }) {
|
|
|
4266
4268
|
}, [e]);
|
|
4267
4269
|
const f = async (u) => {
|
|
4268
4270
|
u.preventDefault();
|
|
4269
|
-
let
|
|
4271
|
+
let x = !0;
|
|
4270
4272
|
if (o((m) => ({
|
|
4271
4273
|
...m,
|
|
4272
4274
|
amountError: "",
|
|
4273
4275
|
rechargeChannelError: ""
|
|
4274
|
-
})), r.amount.trim() || (o((m) => ({ ...m, amountError:
|
|
4276
|
+
})), r.amount.trim() || (o((m) => ({ ...m, amountError: y("请输入充值金额") })), x = !1), r.rechargeChannel || (o((m) => ({
|
|
4275
4277
|
...m,
|
|
4276
|
-
rechargeChannelError:
|
|
4277
|
-
})),
|
|
4278
|
+
rechargeChannelError: y("请选择支付平台")
|
|
4279
|
+
})), x = !1), !!x) {
|
|
4278
4280
|
o((m) => ({ ...m, loading: !0, error: "" }));
|
|
4279
4281
|
try {
|
|
4280
4282
|
await n({
|
|
@@ -4283,13 +4285,13 @@ function Si({ visible: e, onClose: t, onSubmit: n }) {
|
|
|
4283
4285
|
currency: r.currency
|
|
4284
4286
|
}), t();
|
|
4285
4287
|
} catch {
|
|
4286
|
-
o((m) => ({ ...m, error:
|
|
4288
|
+
o((m) => ({ ...m, error: y("提交失败,请重试") }));
|
|
4287
4289
|
} finally {
|
|
4288
4290
|
o((m) => ({ ...m, loading: !1 }));
|
|
4289
4291
|
}
|
|
4290
4292
|
}
|
|
4291
4293
|
};
|
|
4292
|
-
return /* @__PURE__ */ d(Jn, { visible: e, onClose: t, title:
|
|
4294
|
+
return /* @__PURE__ */ d(Jn, { visible: e, onClose: t, title: y("充值 / 转账"), children: [
|
|
4293
4295
|
/* @__PURE__ */ d(
|
|
4294
4296
|
"div",
|
|
4295
4297
|
{
|
|
@@ -4304,7 +4306,7 @@ function Si({ visible: e, onClose: t, onSubmit: n }) {
|
|
|
4304
4306
|
type: "button",
|
|
4305
4307
|
onClick: () => p("online"),
|
|
4306
4308
|
style: c.tabBtn(s === "online", !0),
|
|
4307
|
-
children:
|
|
4309
|
+
children: y("在线充值")
|
|
4308
4310
|
}
|
|
4309
4311
|
),
|
|
4310
4312
|
/* @__PURE__ */ d(
|
|
@@ -4313,7 +4315,7 @@ function Si({ visible: e, onClose: t, onSubmit: n }) {
|
|
|
4313
4315
|
type: "button",
|
|
4314
4316
|
onClick: () => p("offline"),
|
|
4315
4317
|
style: c.tabBtn(s === "offline", !1),
|
|
4316
|
-
children:
|
|
4318
|
+
children: y("线下转账")
|
|
4317
4319
|
}
|
|
4318
4320
|
)
|
|
4319
4321
|
]
|
|
@@ -4423,7 +4425,7 @@ function Ci() {
|
|
|
4423
4425
|
window.open(o, "_blank");
|
|
4424
4426
|
};
|
|
4425
4427
|
return /* @__PURE__ */ d("div", { children: [
|
|
4426
|
-
/* @__PURE__ */ d(ht, { onClick: () => t(!0), children:
|
|
4428
|
+
/* @__PURE__ */ d(ht, { onClick: () => t(!0), children: y("充值/转账") }),
|
|
4427
4429
|
/* @__PURE__ */ d(
|
|
4428
4430
|
Si,
|
|
4429
4431
|
{
|
|
@@ -4972,7 +4974,7 @@ function Ri({
|
|
|
4972
4974
|
initialPaymentType: a = "online",
|
|
4973
4975
|
amountError: i = ""
|
|
4974
4976
|
}) {
|
|
4975
|
-
const s = Bi(), [p, c] = B([]), [f, u] = B([]), [
|
|
4977
|
+
const s = Bi(), [p, c] = B([]), [f, u] = B([]), [x, m] = B([]), [h, _] = B({
|
|
4976
4978
|
currency: o,
|
|
4977
4979
|
amount: r,
|
|
4978
4980
|
onlineChannel: "",
|
|
@@ -5001,7 +5003,7 @@ function Ri({
|
|
|
5001
5003
|
const F = w.onlineChannel || [], U = w.offlineChannel || [];
|
|
5002
5004
|
u(F), m(U);
|
|
5003
5005
|
const $ = F.length > 0, V = U?.[0]?.value || "", Se = F?.[0]?.value || "", de = $ ? a : "bank", k = de === "online" ? Se : V;
|
|
5004
|
-
|
|
5006
|
+
_((v) => ({
|
|
5005
5007
|
...v,
|
|
5006
5008
|
onlineChannel: Se,
|
|
5007
5009
|
bankChannel: V,
|
|
@@ -5013,12 +5015,12 @@ function Ri({
|
|
|
5013
5015
|
return w = w.replace(/[^\d.]/g, ""), w = w.replace(/\.(?=.*\.)/g, ""), w = w.replace(/^(\d+)(\.\d{0,2})?.*$/, "$1$2"), w = w.replace(/^0+(\d)/, "$1"), w.startsWith(".") && (w = "0" + w), w;
|
|
5014
5016
|
}
|
|
5015
5017
|
const M = (w) => {
|
|
5016
|
-
|
|
5018
|
+
_((F) => ({ ...F, currency: w })), n(w), T(void 0, w);
|
|
5017
5019
|
}, R = (w) => {
|
|
5018
5020
|
const F = A(w);
|
|
5019
|
-
|
|
5021
|
+
_((U) => ({ ...U, amount: F, amountError: "" })), t(F), T(F);
|
|
5020
5022
|
}, P = (w, F) => {
|
|
5021
|
-
|
|
5023
|
+
_((U) => ({
|
|
5022
5024
|
...U,
|
|
5023
5025
|
[F === "online" ? "onlineChannel" : "bankChannel"]: w,
|
|
5024
5026
|
paymentType: F
|
|
@@ -5027,9 +5029,9 @@ function Ri({
|
|
|
5027
5029
|
return /* @__PURE__ */ d("div", { style: s.left, children: [
|
|
5028
5030
|
/* @__PURE__ */ d("div", { style: s.blockTitle, children: [
|
|
5029
5031
|
/* @__PURE__ */ d("span", { style: s.titleBar }),
|
|
5030
|
-
|
|
5032
|
+
y("选择支付方式")
|
|
5031
5033
|
] }),
|
|
5032
|
-
/* @__PURE__ */ d("div", { style: s.fieldLabel, children:
|
|
5034
|
+
/* @__PURE__ */ d("div", { style: s.fieldLabel, children: y("支付币种") }),
|
|
5033
5035
|
/* @__PURE__ */ d("div", { style: s.currencyRow, children: (p || []).slice(0, 4).map((w) => /* @__PURE__ */ d(
|
|
5034
5036
|
"button",
|
|
5035
5037
|
{
|
|
@@ -5042,14 +5044,14 @@ function Ri({
|
|
|
5042
5044
|
/* @__PURE__ */ d("div", { style: { height: 12 } }),
|
|
5043
5045
|
/* @__PURE__ */ d("div", { style: s.fieldLabel, children: [
|
|
5044
5046
|
/* @__PURE__ */ d("span", { style: s.required, children: "*" }),
|
|
5045
|
-
|
|
5047
|
+
y("支付金额")
|
|
5046
5048
|
] }),
|
|
5047
5049
|
/* @__PURE__ */ d("div", { style: s.inputWrapper, children: [
|
|
5048
5050
|
/* @__PURE__ */ d(
|
|
5049
5051
|
"input",
|
|
5050
5052
|
{
|
|
5051
5053
|
type: "text",
|
|
5052
|
-
placeholder:
|
|
5054
|
+
placeholder: y("请输入充值金额"),
|
|
5053
5055
|
value: h.amount,
|
|
5054
5056
|
onInput: (w) => {
|
|
5055
5057
|
R(w.target.value);
|
|
@@ -5064,16 +5066,16 @@ function Ri({
|
|
|
5064
5066
|
] }),
|
|
5065
5067
|
i && /* @__PURE__ */ d("div", { style: s.error, children: i }),
|
|
5066
5068
|
b && b.consistent === !1 && /* @__PURE__ */ d("div", { style: s.bizRateBox, children: [
|
|
5067
|
-
/* @__PURE__ */ d("div", { children:
|
|
5069
|
+
/* @__PURE__ */ d("div", { children: y("您的支付币种与默认币种不一致,将转换为默认币种入账") }),
|
|
5068
5070
|
/* @__PURE__ */ d("div", { children: [
|
|
5069
|
-
|
|
5071
|
+
y("目前汇率为:"),
|
|
5070
5072
|
" ",
|
|
5071
5073
|
h.currency,
|
|
5072
|
-
|
|
5074
|
+
y(`→${b.currency} = `),
|
|
5073
5075
|
/* @__PURE__ */ d("span", { style: s.bizRateStrong, children: b.exchangeRate })
|
|
5074
5076
|
] }),
|
|
5075
5077
|
/* @__PURE__ */ d("div", { children: [
|
|
5076
|
-
|
|
5078
|
+
y("钱包预计增加"),
|
|
5077
5079
|
/* @__PURE__ */ d("span", { style: s.bizRateStrong, children: [
|
|
5078
5080
|
b.currency,
|
|
5079
5081
|
" ",
|
|
@@ -5082,9 +5084,9 @@ function Ri({
|
|
|
5082
5084
|
] })
|
|
5083
5085
|
] }),
|
|
5084
5086
|
/* @__PURE__ */ d("div", { style: { height: 20 } }),
|
|
5085
|
-
/* @__PURE__ */ d("div", { style: s.fieldLabel, children:
|
|
5087
|
+
/* @__PURE__ */ d("div", { style: s.fieldLabel, children: y("支付方式") }),
|
|
5086
5088
|
f.length > 0 && /* @__PURE__ */ d("div", { children: [
|
|
5087
|
-
/* @__PURE__ */ d("div", { style: s.subTitle, children:
|
|
5089
|
+
/* @__PURE__ */ d("div", { style: s.subTitle, children: y("线上支付") }),
|
|
5088
5090
|
/* @__PURE__ */ d("div", { style: s.methodList, children: f.map((w) => /* @__PURE__ */ d(
|
|
5089
5091
|
"button",
|
|
5090
5092
|
{
|
|
@@ -5107,8 +5109,8 @@ function Ri({
|
|
|
5107
5109
|
}
|
|
5108
5110
|
)) })
|
|
5109
5111
|
] }),
|
|
5110
|
-
/* @__PURE__ */ d("div", { style: s.subTitle, children:
|
|
5111
|
-
/* @__PURE__ */ d("div", { style: s.bankList, children:
|
|
5112
|
+
/* @__PURE__ */ d("div", { style: s.subTitle, children: y("银行转账") }),
|
|
5113
|
+
/* @__PURE__ */ d("div", { style: s.bankList, children: x.map((w) => /* @__PURE__ */ d(
|
|
5112
5114
|
"button",
|
|
5113
5115
|
{
|
|
5114
5116
|
type: "button",
|
|
@@ -5318,10 +5320,10 @@ function Di({
|
|
|
5318
5320
|
loading: o,
|
|
5319
5321
|
error: a,
|
|
5320
5322
|
amountError: ""
|
|
5321
|
-
}), [u,
|
|
5323
|
+
}), [u, x] = B(null);
|
|
5322
5324
|
J(() => {
|
|
5323
|
-
f((
|
|
5324
|
-
...
|
|
5325
|
+
f((_) => ({
|
|
5326
|
+
..._,
|
|
5325
5327
|
amount: t,
|
|
5326
5328
|
currency: n,
|
|
5327
5329
|
channel: r,
|
|
@@ -5329,14 +5331,14 @@ function Di({
|
|
|
5329
5331
|
error: a
|
|
5330
5332
|
}));
|
|
5331
5333
|
const h = setTimeout(() => {
|
|
5332
|
-
t && r && n ? Hn({ channel: r, amount: t, currency: n }).then((
|
|
5334
|
+
t && r && n ? Hn({ channel: r, amount: t, currency: n }).then((_) => x(_)).catch(() => x(null)) : x(null);
|
|
5333
5335
|
}, 300);
|
|
5334
5336
|
return () => clearTimeout(h);
|
|
5335
5337
|
}, [t, n, r, o, a]);
|
|
5336
5338
|
const m = async (h) => {
|
|
5337
5339
|
h && h.preventDefault();
|
|
5338
|
-
let
|
|
5339
|
-
if (t.trim() || (
|
|
5340
|
+
let _ = !0;
|
|
5341
|
+
if (t.trim() || (_ = !1, i?.(y("请输入充值金额"))), r || (_ = !1, f((b) => ({ ...b, error: y("请选择支付平台") }))), !!_) {
|
|
5340
5342
|
f((b) => ({ ...b, loading: !0, error: "" }));
|
|
5341
5343
|
try {
|
|
5342
5344
|
await e({
|
|
@@ -5352,7 +5354,7 @@ function Di({
|
|
|
5352
5354
|
return /* @__PURE__ */ d("div", { style: s.right, children: [
|
|
5353
5355
|
/* @__PURE__ */ d("div", { style: s.blockTitle, children: [
|
|
5354
5356
|
/* @__PURE__ */ d("span", { style: s.titleBar }),
|
|
5355
|
-
|
|
5357
|
+
y("在线支付")
|
|
5356
5358
|
] }),
|
|
5357
5359
|
/* @__PURE__ */ d("form", { onSubmit: m, children: [
|
|
5358
5360
|
/* @__PURE__ */ d("div", { style: s.inputWrapper, children: [
|
|
@@ -5360,7 +5362,7 @@ function Di({
|
|
|
5360
5362
|
"input",
|
|
5361
5363
|
{
|
|
5362
5364
|
type: "text",
|
|
5363
|
-
placeholder:
|
|
5365
|
+
placeholder: y("支付金额"),
|
|
5364
5366
|
value: c.amount,
|
|
5365
5367
|
readOnly: !0,
|
|
5366
5368
|
disabled: !0,
|
|
@@ -5379,31 +5381,31 @@ function Di({
|
|
|
5379
5381
|
type: "submit",
|
|
5380
5382
|
disabled: c.loading,
|
|
5381
5383
|
style: s.payButton,
|
|
5382
|
-
children: c.loading ?
|
|
5384
|
+
children: c.loading ? y("提交中...") : y("立即支付")
|
|
5383
5385
|
}
|
|
5384
5386
|
)
|
|
5385
5387
|
] }),
|
|
5386
5388
|
u && /* @__PURE__ */ d("div", { style: s.calcBox, children: [
|
|
5387
5389
|
/* @__PURE__ */ d("div", { style: s.calcLine, children: [
|
|
5388
|
-
|
|
5390
|
+
y("预计支付金额约为:"),
|
|
5389
5391
|
/* @__PURE__ */ d("span", { style: s.calcAmount, children: `$${u.paymentAmount}` }),
|
|
5390
5392
|
u.currency
|
|
5391
5393
|
] }),
|
|
5392
5394
|
/* @__PURE__ */ d("div", { style: s.calcLine, children: [
|
|
5393
|
-
|
|
5395
|
+
y("手续费约为:"),
|
|
5394
5396
|
/* @__PURE__ */ d("span", { style: s.calcAmount, children: `$${u.fee}` }),
|
|
5395
5397
|
u.currency
|
|
5396
5398
|
] }),
|
|
5397
|
-
/* @__PURE__ */ d("div", { children:
|
|
5399
|
+
/* @__PURE__ */ d("div", { children: y("注:地区/币种/卡类型可能影响手续费,最终以平台为准。") })
|
|
5398
5400
|
] }),
|
|
5399
|
-
/* @__PURE__ */ d("div", { style: s.noticeBox, children:
|
|
5400
|
-
/* @__PURE__ */ d("div", { style: s.reminderTitle, children:
|
|
5401
|
+
/* @__PURE__ */ d("div", { style: s.noticeBox, children: y("请在转账后提交银行回单,否则可能无法及时核验") }),
|
|
5402
|
+
/* @__PURE__ */ d("div", { style: s.reminderTitle, children: y("温馨提示") }),
|
|
5401
5403
|
/* @__PURE__ */ d("ul", { style: s.reminderList, children: [
|
|
5402
|
-
/* @__PURE__ */ d("li", { style: s.listItem, children:
|
|
5403
|
-
/* @__PURE__ */ d("li", { style: s.listItem, children:
|
|
5404
|
-
/* @__PURE__ */ d("li", { style: s.listItem, children:
|
|
5405
|
-
/* @__PURE__ */ d("li", { style: s.listItem, children:
|
|
5406
|
-
/* @__PURE__ */ d("li", { style: s.listItem, children:
|
|
5404
|
+
/* @__PURE__ */ d("li", { style: s.listItem, children: y("支付金额须与申请金额一致,请勿多付、少付或分批提交。") }),
|
|
5405
|
+
/* @__PURE__ */ d("li", { style: s.listItem, children: y("请妥善保存回单并提供准确的支付时间,否则可能无法核验。") }),
|
|
5406
|
+
/* @__PURE__ */ d("li", { style: s.listItem, children: y("工作时间提交4小时内审核,非工作时间将顺延至下一个工作日。") }),
|
|
5407
|
+
/* @__PURE__ */ d("li", { style: s.listItem, children: y("如有问题,请联系平台客服。") }),
|
|
5408
|
+
/* @__PURE__ */ d("li", { style: s.listItem, children: y("预付充值将收取平台服务费,具体以官方为准。") })
|
|
5407
5409
|
] }),
|
|
5408
5410
|
c.error && /* @__PURE__ */ d("div", { style: s.error, children: c.error })
|
|
5409
5411
|
] });
|
|
@@ -6012,7 +6014,7 @@ function Ui() {
|
|
|
6012
6014
|
}
|
|
6013
6015
|
function $i({
|
|
6014
6016
|
value: e = "",
|
|
6015
|
-
placeholder: t =
|
|
6017
|
+
placeholder: t = y("请选择日期"),
|
|
6016
6018
|
disabled: n = !1,
|
|
6017
6019
|
size: r = "middle",
|
|
6018
6020
|
onChange: o,
|
|
@@ -6021,7 +6023,7 @@ function $i({
|
|
|
6021
6023
|
className: s = "",
|
|
6022
6024
|
style: p = {}
|
|
6023
6025
|
}) {
|
|
6024
|
-
const c = Ui(), [f, u] = B(!1), [
|
|
6026
|
+
const c = Ui(), [f, u] = B(!1), [x, m] = B(e), [h, _] = B(/* @__PURE__ */ new Date()), [b, S] = B(!1), L = se(null), T = (k) => {
|
|
6025
6027
|
if (!k) return "";
|
|
6026
6028
|
const v = new Date(k);
|
|
6027
6029
|
return `${v.getFullYear()}-${String(v.getMonth() + 1).padStart(
|
|
@@ -6041,7 +6043,7 @@ function $i({
|
|
|
6041
6043
|
"0"
|
|
6042
6044
|
)}-${String(yt - H).padStart(2, "0")}`
|
|
6043
6045
|
});
|
|
6044
|
-
const Gn = /* @__PURE__ */ new Date(), xt =
|
|
6046
|
+
const Gn = /* @__PURE__ */ new Date(), xt = x ? new Date(x) : null;
|
|
6045
6047
|
for (let H = 1; H <= ue; H++) {
|
|
6046
6048
|
const _t = `${k}-${String(v + 1).padStart(2, "0")}-${String(
|
|
6047
6049
|
H
|
|
@@ -6071,13 +6073,13 @@ function $i({
|
|
|
6071
6073
|
m(k), u(!1), o?.(k);
|
|
6072
6074
|
}, w = (k) => {
|
|
6073
6075
|
const v = new Date(h);
|
|
6074
|
-
k === "prev" ? v.setMonth(v.getMonth() - 1) : v.setMonth(v.getMonth() + 1),
|
|
6076
|
+
k === "prev" ? v.setMonth(v.getMonth() - 1) : v.setMonth(v.getMonth() + 1), _(v);
|
|
6075
6077
|
}, F = (k) => {
|
|
6076
6078
|
const v = new Date(h);
|
|
6077
|
-
k === "prev" ? v.setFullYear(v.getFullYear() - 1) : v.setFullYear(v.getFullYear() + 1),
|
|
6079
|
+
k === "prev" ? v.setFullYear(v.getFullYear() - 1) : v.setFullYear(v.getFullYear() + 1), _(v);
|
|
6078
6080
|
}, U = (k) => {
|
|
6079
6081
|
const v = new Date(h);
|
|
6080
|
-
v.setFullYear(k),
|
|
6082
|
+
v.setFullYear(k), _(v), S(!1);
|
|
6081
6083
|
}, $ = () => {
|
|
6082
6084
|
const k = (/* @__PURE__ */ new Date()).getFullYear(), v = [];
|
|
6083
6085
|
for (let ue = k - 50; ue <= k + 50; ue++)
|
|
@@ -6092,26 +6094,26 @@ function $i({
|
|
|
6092
6094
|
return document.addEventListener("mousedown", k), () => document.removeEventListener("mousedown", k);
|
|
6093
6095
|
}, [f]);
|
|
6094
6096
|
const V = R(), Se = [
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
|
|
6098
|
-
|
|
6099
|
-
|
|
6100
|
-
|
|
6101
|
-
|
|
6102
|
-
|
|
6103
|
-
|
|
6104
|
-
|
|
6105
|
-
|
|
6106
|
-
|
|
6097
|
+
y("一月"),
|
|
6098
|
+
y("二月"),
|
|
6099
|
+
y("三月"),
|
|
6100
|
+
y("四月"),
|
|
6101
|
+
y("五月"),
|
|
6102
|
+
y("六月"),
|
|
6103
|
+
y("七月"),
|
|
6104
|
+
y("八月"),
|
|
6105
|
+
y("九月"),
|
|
6106
|
+
y("十月"),
|
|
6107
|
+
y("十一月"),
|
|
6108
|
+
y("十二月")
|
|
6107
6109
|
], de = [
|
|
6108
|
-
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
|
|
6110
|
+
y("日"),
|
|
6111
|
+
y("一"),
|
|
6112
|
+
y("二"),
|
|
6113
|
+
y("三"),
|
|
6114
|
+
y("四"),
|
|
6115
|
+
y("五"),
|
|
6116
|
+
y("六")
|
|
6115
6117
|
];
|
|
6116
6118
|
return /* @__PURE__ */ d(
|
|
6117
6119
|
"div",
|
|
@@ -6132,7 +6134,7 @@ function $i({
|
|
|
6132
6134
|
onFocus: a,
|
|
6133
6135
|
onBlur: i,
|
|
6134
6136
|
children: [
|
|
6135
|
-
/* @__PURE__ */ d("span", { style: c.inputText, children:
|
|
6137
|
+
/* @__PURE__ */ d("span", { style: c.inputText, children: x ? T(x) : t }),
|
|
6136
6138
|
/* @__PURE__ */ d("img", { src: Pi, alt: "calendar", style: c.calendarIcon })
|
|
6137
6139
|
]
|
|
6138
6140
|
}
|
|
@@ -6164,7 +6166,9 @@ function $i({
|
|
|
6164
6166
|
onClick: () => S(!b),
|
|
6165
6167
|
children: [
|
|
6166
6168
|
h.getFullYear(),
|
|
6167
|
-
"
|
|
6169
|
+
" ",
|
|
6170
|
+
y("年"),
|
|
6171
|
+
" ",
|
|
6168
6172
|
Se[h.getMonth()]
|
|
6169
6173
|
]
|
|
6170
6174
|
}
|
|
@@ -6248,14 +6252,14 @@ function Wi({
|
|
|
6248
6252
|
J(() => {
|
|
6249
6253
|
u((m) => ({ ...m, transferAmount: r }));
|
|
6250
6254
|
}, [r]);
|
|
6251
|
-
const
|
|
6255
|
+
const x = async () => {
|
|
6252
6256
|
let m = !0;
|
|
6253
|
-
if (f.urls.length === 0 && (m = !1, u((h) => ({ ...h, filesError:
|
|
6257
|
+
if (f.urls.length === 0 && (m = !1, u((h) => ({ ...h, filesError: y("请上传银行转账回单") }))), f.transferTime || (m = !1, u((h) => ({ ...h, timeError: y("请选择转账时间") }))), r.trim() || (m = !1, a?.(y("请输入充值金额"))), f.transactionId.trim() || (m = !1, u((h) => ({
|
|
6254
6258
|
...h,
|
|
6255
|
-
transactionIdError:
|
|
6259
|
+
transactionIdError: y("请输入转账交易ID")
|
|
6256
6260
|
}))), f.payerName.trim() || (m = !1, u((h) => ({
|
|
6257
6261
|
...h,
|
|
6258
|
-
payerNameError:
|
|
6262
|
+
payerNameError: y("请输入付款人名称")
|
|
6259
6263
|
}))), !!m)
|
|
6260
6264
|
try {
|
|
6261
6265
|
await $n({
|
|
@@ -6266,7 +6270,7 @@ function Wi({
|
|
|
6266
6270
|
payerName: f.payerName,
|
|
6267
6271
|
submitAmount: r,
|
|
6268
6272
|
submitCurrency: n
|
|
6269
|
-
}), Ie.success(
|
|
6273
|
+
}), Ie.success(y("提交成功")), t();
|
|
6270
6274
|
} finally {
|
|
6271
6275
|
u((h) => ({ ...h, loading: !1 }));
|
|
6272
6276
|
}
|
|
@@ -6274,7 +6278,7 @@ function Wi({
|
|
|
6274
6278
|
return /* @__PURE__ */ d("div", { style: i.container, children: [
|
|
6275
6279
|
/* @__PURE__ */ d("div", { style: i.header, children: /* @__PURE__ */ d("button", { type: "button", onClick: e, style: i.backButton, children: [
|
|
6276
6280
|
/* @__PURE__ */ d("span", { style: i.backIcon, children: "←" }),
|
|
6277
|
-
|
|
6281
|
+
y("返回账户信息")
|
|
6278
6282
|
] }) }),
|
|
6279
6283
|
/* @__PURE__ */ d("div", { style: i.uploadSection, children: [
|
|
6280
6284
|
/* @__PURE__ */ d(
|
|
@@ -6294,13 +6298,13 @@ function Wi({
|
|
|
6294
6298
|
/* @__PURE__ */ d("div", { style: i.fieldSection, children: [
|
|
6295
6299
|
/* @__PURE__ */ d("label", { style: i.fieldLabel, children: [
|
|
6296
6300
|
/* @__PURE__ */ d("span", { style: i.required, children: "*" }),
|
|
6297
|
-
|
|
6301
|
+
y("转账时间")
|
|
6298
6302
|
] }),
|
|
6299
6303
|
/* @__PURE__ */ d(
|
|
6300
6304
|
$i,
|
|
6301
6305
|
{
|
|
6302
6306
|
value: f.transferTime,
|
|
6303
|
-
placeholder:
|
|
6307
|
+
placeholder: y("请选择转账时间"),
|
|
6304
6308
|
onChange: (m) => {
|
|
6305
6309
|
u((h) => ({
|
|
6306
6310
|
...h,
|
|
@@ -6314,13 +6318,13 @@ function Wi({
|
|
|
6314
6318
|
f.timeError && /* @__PURE__ */ d("div", { style: i.error, children: f.timeError })
|
|
6315
6319
|
] }),
|
|
6316
6320
|
/* @__PURE__ */ d("div", { style: i.fieldSection, children: [
|
|
6317
|
-
/* @__PURE__ */ d("label", { style: i.fieldLabel, children:
|
|
6321
|
+
/* @__PURE__ */ d("label", { style: i.fieldLabel, children: y("转账金额") }),
|
|
6318
6322
|
/* @__PURE__ */ d("div", { style: i.inputWrapper, children: [
|
|
6319
6323
|
/* @__PURE__ */ d(
|
|
6320
6324
|
"input",
|
|
6321
6325
|
{
|
|
6322
6326
|
type: "text",
|
|
6323
|
-
placeholder:
|
|
6327
|
+
placeholder: y("请输入实际转账金额"),
|
|
6324
6328
|
value: f.transferAmount,
|
|
6325
6329
|
readOnly: !0,
|
|
6326
6330
|
disabled: !0,
|
|
@@ -6336,13 +6340,13 @@ function Wi({
|
|
|
6336
6340
|
/* @__PURE__ */ d("div", { style: i.fieldSection, children: [
|
|
6337
6341
|
/* @__PURE__ */ d("label", { style: i.fieldLabel, children: [
|
|
6338
6342
|
/* @__PURE__ */ d("span", { style: i.required, children: "*" }),
|
|
6339
|
-
|
|
6343
|
+
y("交易ID")
|
|
6340
6344
|
] }),
|
|
6341
6345
|
/* @__PURE__ */ d(
|
|
6342
6346
|
"input",
|
|
6343
6347
|
{
|
|
6344
6348
|
type: "text",
|
|
6345
|
-
placeholder:
|
|
6349
|
+
placeholder: y("请输入转账交易ID"),
|
|
6346
6350
|
value: f.transactionId,
|
|
6347
6351
|
onChange: (m) => {
|
|
6348
6352
|
u((h) => ({
|
|
@@ -6362,13 +6366,13 @@ function Wi({
|
|
|
6362
6366
|
/* @__PURE__ */ d("div", { style: i.fieldSection, children: [
|
|
6363
6367
|
/* @__PURE__ */ d("label", { style: i.fieldLabel, children: [
|
|
6364
6368
|
/* @__PURE__ */ d("span", { style: i.required, children: "*" }),
|
|
6365
|
-
|
|
6369
|
+
y("付款人名称")
|
|
6366
6370
|
] }),
|
|
6367
6371
|
/* @__PURE__ */ d(
|
|
6368
6372
|
"input",
|
|
6369
6373
|
{
|
|
6370
6374
|
type: "text",
|
|
6371
|
-
placeholder:
|
|
6375
|
+
placeholder: y("请输入付款人名称"),
|
|
6372
6376
|
value: f.payerName,
|
|
6373
6377
|
onChange: (m) => {
|
|
6374
6378
|
u((h) => ({
|
|
@@ -6386,8 +6390,8 @@ function Wi({
|
|
|
6386
6390
|
f.payerNameError && /* @__PURE__ */ d("div", { style: i.error, children: f.payerNameError })
|
|
6387
6391
|
] }),
|
|
6388
6392
|
/* @__PURE__ */ d("div", { style: i.buttonSection, children: [
|
|
6389
|
-
/* @__PURE__ */ d("button", { type: "button", onClick: t, style: i.cancelButton, children:
|
|
6390
|
-
/* @__PURE__ */ d("button", { type: "button", onClick:
|
|
6393
|
+
/* @__PURE__ */ d("button", { type: "button", onClick: t, style: i.cancelButton, children: y("取消") }),
|
|
6394
|
+
/* @__PURE__ */ d("button", { type: "button", onClick: x, style: i.submitButton, children: y("提交审核") })
|
|
6391
6395
|
] })
|
|
6392
6396
|
] });
|
|
6393
6397
|
}
|
|
@@ -6693,7 +6697,7 @@ function qi({ onConfirm: e, channelCode: t }) {
|
|
|
6693
6697
|
}, [t]), /* @__PURE__ */ d("div", { style: n.container, children: [
|
|
6694
6698
|
/* @__PURE__ */ d("div", { style: n.header, children: [
|
|
6695
6699
|
/* @__PURE__ */ d("span", { style: n.titleBar }),
|
|
6696
|
-
|
|
6700
|
+
y("银行转账")
|
|
6697
6701
|
] }),
|
|
6698
6702
|
r.length > 0 && /* @__PURE__ */ d("div", { style: n.detailCard, children: r.map((a, i) => {
|
|
6699
6703
|
const s = String(a).split(":"), p = s.shift()?.trim() || "", c = s.join(":").trim();
|
|
@@ -6713,21 +6717,21 @@ function qi({ onConfirm: e, channelCode: t }) {
|
|
|
6713
6717
|
i
|
|
6714
6718
|
);
|
|
6715
6719
|
}) }),
|
|
6716
|
-
/* @__PURE__ */ d("button", { type: "button", onClick: e, style: n.confirmButton, children:
|
|
6717
|
-
/* @__PURE__ */ d("div", { style: n.noticeBox, children:
|
|
6718
|
-
/* @__PURE__ */ d("div", { style: n.reminderTitle, children:
|
|
6720
|
+
/* @__PURE__ */ d("button", { type: "button", onClick: e, style: n.confirmButton, children: y("确认转账详情") }),
|
|
6721
|
+
/* @__PURE__ */ d("div", { style: n.noticeBox, children: y("转账后提交银行回单提示") }),
|
|
6722
|
+
/* @__PURE__ */ d("div", { style: n.reminderTitle, children: y("温馨提示") }),
|
|
6719
6723
|
/* @__PURE__ */ d("ul", { style: n.reminderList, children: [
|
|
6720
|
-
/* @__PURE__ */ d("li", { children:
|
|
6721
|
-
/* @__PURE__ */ d("li", { children:
|
|
6722
|
-
/* @__PURE__ */ d("li", { children:
|
|
6723
|
-
/* @__PURE__ */ d("li", { children:
|
|
6724
|
-
/* @__PURE__ */ d("li", { children:
|
|
6724
|
+
/* @__PURE__ */ d("li", { children: y("支付金额匹配提醒") }),
|
|
6725
|
+
/* @__PURE__ */ d("li", { children: y("保存交易回单提醒") }),
|
|
6726
|
+
/* @__PURE__ */ d("li", { children: y("查看余额提醒") }),
|
|
6727
|
+
/* @__PURE__ */ d("li", { children: y("联系客服提醒") }),
|
|
6728
|
+
/* @__PURE__ */ d("li", { children: y("P卡转账延迟提醒") }),
|
|
6725
6729
|
/* @__PURE__ */ d("li", { children: [
|
|
6726
|
-
|
|
6730
|
+
y("平台服务费说明"),
|
|
6727
6731
|
" ",
|
|
6728
|
-
/* @__PURE__ */ d("a", { href: "#", style: n.link, children:
|
|
6732
|
+
/* @__PURE__ */ d("a", { href: "#", style: n.link, children: y("费用政策") }),
|
|
6729
6733
|
" ",
|
|
6730
|
-
|
|
6734
|
+
y("详情")
|
|
6731
6735
|
] })
|
|
6732
6736
|
] })
|
|
6733
6737
|
] });
|
|
@@ -6750,10 +6754,10 @@ function Ji({
|
|
|
6750
6754
|
// 新增:是否显示银行转账回单上传页面
|
|
6751
6755
|
});
|
|
6752
6756
|
J(() => {
|
|
6753
|
-
const
|
|
6757
|
+
const _ = () => {
|
|
6754
6758
|
a(window.innerWidth <= 1020);
|
|
6755
6759
|
};
|
|
6756
|
-
return
|
|
6760
|
+
return _(), window.addEventListener("resize", _), () => window.removeEventListener("resize", _);
|
|
6757
6761
|
}, []), J(() => {
|
|
6758
6762
|
e || s({
|
|
6759
6763
|
currency: "USD",
|
|
@@ -6767,39 +6771,39 @@ function Ji({
|
|
|
6767
6771
|
showOfflineUpload: !1
|
|
6768
6772
|
});
|
|
6769
6773
|
}, [e]);
|
|
6770
|
-
const p = (
|
|
6774
|
+
const p = (_, b) => {
|
|
6771
6775
|
s((S) => ({
|
|
6772
6776
|
...S,
|
|
6773
|
-
channel:
|
|
6777
|
+
channel: _,
|
|
6774
6778
|
paymentType: b,
|
|
6775
6779
|
channelError: ""
|
|
6776
6780
|
}));
|
|
6777
|
-
}, c = (
|
|
6778
|
-
s((b) => ({ ...b, amount:
|
|
6779
|
-
}, f = (
|
|
6780
|
-
s((b) => ({ ...b, amountError:
|
|
6781
|
-
}, u = (
|
|
6782
|
-
s((b) => ({ ...b, currency:
|
|
6783
|
-
},
|
|
6781
|
+
}, c = (_) => {
|
|
6782
|
+
s((b) => ({ ...b, amount: _, amountError: "" }));
|
|
6783
|
+
}, f = (_) => {
|
|
6784
|
+
s((b) => ({ ...b, amountError: _ }));
|
|
6785
|
+
}, u = (_) => {
|
|
6786
|
+
s((b) => ({ ...b, currency: _ }));
|
|
6787
|
+
}, x = async (_) => {
|
|
6784
6788
|
s((b) => ({ ...b, loading: !0, error: "" }));
|
|
6785
6789
|
try {
|
|
6786
|
-
await n(
|
|
6790
|
+
await n(_), t();
|
|
6787
6791
|
} catch {
|
|
6788
|
-
s((b) => ({ ...b, error:
|
|
6792
|
+
s((b) => ({ ...b, error: y("提交失败,请重试") }));
|
|
6789
6793
|
} finally {
|
|
6790
6794
|
s((b) => ({ ...b, loading: !1 }));
|
|
6791
6795
|
}
|
|
6792
6796
|
}, m = () => {
|
|
6793
|
-
console.log("用户确认银行转账详情"), s((
|
|
6797
|
+
console.log("用户确认银行转账详情"), s((_) => ({ ..._, showOfflineUpload: !0 }));
|
|
6794
6798
|
}, h = () => {
|
|
6795
|
-
s((
|
|
6799
|
+
s((_) => ({ ..._, showOfflineUpload: !1 }));
|
|
6796
6800
|
};
|
|
6797
6801
|
return /* @__PURE__ */ d(
|
|
6798
6802
|
Jn,
|
|
6799
6803
|
{
|
|
6800
6804
|
visible: e,
|
|
6801
6805
|
onClose: t,
|
|
6802
|
-
title:
|
|
6806
|
+
title: y("充值/转账"),
|
|
6803
6807
|
width: o ? "95%" : 960,
|
|
6804
6808
|
maxWidth: o ? "95%" : 1e3,
|
|
6805
6809
|
children: /* @__PURE__ */ d(
|
|
@@ -6829,7 +6833,7 @@ function Ji({
|
|
|
6829
6833
|
i.paymentType === "online" ? /* @__PURE__ */ d(
|
|
6830
6834
|
Di,
|
|
6831
6835
|
{
|
|
6832
|
-
onSubmit:
|
|
6836
|
+
onSubmit: x,
|
|
6833
6837
|
amount: i.amount,
|
|
6834
6838
|
currency: i.currency,
|
|
6835
6839
|
channel: i.channel,
|
|
@@ -6870,7 +6874,7 @@ function Vi() {
|
|
|
6870
6874
|
window.open(o, "_blank");
|
|
6871
6875
|
};
|
|
6872
6876
|
return /* @__PURE__ */ d("div", { children: [
|
|
6873
|
-
/* @__PURE__ */ d(ht, { onClick: () => t(!0), children:
|
|
6877
|
+
/* @__PURE__ */ d(ht, { onClick: () => t(!0), children: y("充值/转账") }),
|
|
6874
6878
|
/* @__PURE__ */ d(
|
|
6875
6879
|
Ji,
|
|
6876
6880
|
{
|
|
@@ -6924,15 +6928,15 @@ const Gi = ({
|
|
|
6924
6928
|
offsetX: a,
|
|
6925
6929
|
popoverPosition: i = "top"
|
|
6926
6930
|
}) => {
|
|
6927
|
-
const s = E("size"), p = n ?? (s === l.SMALL ? 200 : 300), c = r ?? (s === l.SMALL ? 150 : 200), f = o ?? (s === l.SMALL ? 8 : 16), u = a ?? (s === l.SMALL ? 8 : 16), [
|
|
6931
|
+
const s = E("size"), p = n ?? (s === l.SMALL ? 200 : 300), c = r ?? (s === l.SMALL ? 150 : 200), f = 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 = () => {
|
|
6928
6932
|
if (S.current && (clearTimeout(S.current), S.current = null), i === "top" || i === "bottom")
|
|
6929
6933
|
if (b.current) {
|
|
6930
6934
|
const P = b.current.getBoundingClientRect();
|
|
6931
|
-
i === "top" && P.top < 100 ?
|
|
6935
|
+
i === "top" && P.top < 100 ? _("bottom") : i === "bottom" && window.innerHeight - P.bottom < 100 ? _("top") : _(i);
|
|
6932
6936
|
} else
|
|
6933
|
-
|
|
6937
|
+
_(i);
|
|
6934
6938
|
else
|
|
6935
|
-
|
|
6939
|
+
_(i);
|
|
6936
6940
|
m(!0);
|
|
6937
6941
|
}, A = () => {
|
|
6938
6942
|
S.current = window.setTimeout(() => {
|
|
@@ -7020,7 +7024,7 @@ const Gi = ({
|
|
|
7020
7024
|
onMouseLeave: A,
|
|
7021
7025
|
children: [
|
|
7022
7026
|
t,
|
|
7023
|
-
|
|
7027
|
+
x && /* @__PURE__ */ d(
|
|
7024
7028
|
"div",
|
|
7025
7029
|
{
|
|
7026
7030
|
style: M,
|
|
@@ -7216,33 +7220,33 @@ function Zi(e) {
|
|
|
7216
7220
|
}, []);
|
|
7217
7221
|
const o = Xi(), a = [
|
|
7218
7222
|
{
|
|
7219
|
-
label:
|
|
7223
|
+
label: y("真实金额"),
|
|
7220
7224
|
value: t.details[0]?.value || 0,
|
|
7221
7225
|
color: "#15b36b",
|
|
7222
7226
|
dot: "#15b36b"
|
|
7223
7227
|
},
|
|
7224
7228
|
{
|
|
7225
|
-
label:
|
|
7229
|
+
label: y("冻结金额"),
|
|
7226
7230
|
value: t.details[1]?.value || 0,
|
|
7227
7231
|
color: "#f59e0b",
|
|
7228
7232
|
dot: "#f59e0b"
|
|
7229
7233
|
},
|
|
7230
7234
|
...t.details.length > 4 ? [
|
|
7231
7235
|
{
|
|
7232
|
-
label:
|
|
7236
|
+
label: y("信用额度"),
|
|
7233
7237
|
value: t.details[2]?.value || 0,
|
|
7234
7238
|
color: "#1890ff",
|
|
7235
7239
|
dot: "#1890ff"
|
|
7236
7240
|
},
|
|
7237
7241
|
{
|
|
7238
|
-
label:
|
|
7242
|
+
label: y("已用额度"),
|
|
7239
7243
|
value: t.details[3]?.value || 0,
|
|
7240
7244
|
color: "#ff0000",
|
|
7241
7245
|
dot: "#ff0000"
|
|
7242
7246
|
}
|
|
7243
7247
|
] : [],
|
|
7244
7248
|
{
|
|
7245
|
-
label:
|
|
7249
|
+
label: y("可用余额"),
|
|
7246
7250
|
value: t.details[4]?.value || 0,
|
|
7247
7251
|
color: "#1890ff",
|
|
7248
7252
|
dot: "#15b36b"
|
|
@@ -7252,7 +7256,7 @@ function Zi(e) {
|
|
|
7252
7256
|
Gi,
|
|
7253
7257
|
{
|
|
7254
7258
|
popover: /* @__PURE__ */ d(ne, { children: [
|
|
7255
|
-
/* @__PURE__ */ d("div", { style: o.popoverTitle, children:
|
|
7259
|
+
/* @__PURE__ */ d("div", { style: o.popoverTitle, children: y("余额详情") }),
|
|
7256
7260
|
a.map((i) => /* @__PURE__ */ d("div", { style: o.detailRow, children: [
|
|
7257
7261
|
/* @__PURE__ */ d("span", { style: o.detailLabel, children: [
|
|
7258
7262
|
/* @__PURE__ */ d("span", { style: o.detailDot(i.dot) }),
|