best-unit 2.0.13 → 2.0.15
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 +7 -7
- package/dist/best-unit.js +361 -354
- package/package.json +1 -1
- package/src/components/business/payment-sdk/offline-detail/index.tsx +7 -12
- package/src/components/business/payment-sdk/online-payment/index.tsx +21 -9
- package/src/components/common/date-picker/index.tsx +1 -1
- package/src/local/en.ts +14 -13
- package/src/local/zh.ts +8 -11
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,13 +114,13 @@ 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, W = 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
|
-
e: if (typeof
|
|
121
|
-
if (S = t.props, L = "prototype" in
|
|
120
|
+
e: if (typeof W == "function") try {
|
|
121
|
+
if (S = t.props, L = "prototype" in W && W.prototype.render, T = (f = W.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 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
|
-
if (L &&
|
|
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) {
|
|
125
125
|
V && (V.__ = t);
|
|
126
126
|
}), M = 0; M < u._sb.length; M++) u.__h.push(u._sb[M]);
|
|
@@ -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
|
};
|
|
@@ -398,12 +398,12 @@ function ur(e) {
|
|
|
398
398
|
let t;
|
|
399
399
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && bn(e.buffer), t;
|
|
400
400
|
}
|
|
401
|
-
const fr = Ue("string"), j = Ue("function"), yn = Ue("number"),
|
|
401
|
+
const fr = Ue("string"), j = Ue("function"), yn = Ue("number"), We = (e) => e !== null && typeof e == "object", pr = (e) => e === !0 || e === !1, Ee = (e) => {
|
|
402
402
|
if (Ne(e) !== "object")
|
|
403
403
|
return !1;
|
|
404
404
|
const t = ut(e);
|
|
405
405
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(gn in e) && !(Pe in e);
|
|
406
|
-
}, hr = Y("Date"), mr = Y("File"), gr = Y("Blob"), br = Y("FileList"), yr = (e) =>
|
|
406
|
+
}, hr = Y("Date"), mr = Y("File"), gr = Y("Blob"), br = Y("FileList"), yr = (e) => We(e) && j(e.pipe), xr = (e) => {
|
|
407
407
|
let t;
|
|
408
408
|
return e && (typeof FormData == "function" && e instanceof FormData || j(e.append) && ((t = Ne(e)) === "formdata" || // detect form-data instance
|
|
409
409
|
t === "object" && j(e.toString) && e.toString() === "[object FormData]"));
|
|
@@ -517,13 +517,13 @@ const Er = (e, t, n, { allOwnKeys: r } = {}) => (xe(t, (o, a) => {
|
|
|
517
517
|
};
|
|
518
518
|
return le(e) ? r(e) : r(String(e).split(t)), n;
|
|
519
519
|
}, Ur = () => {
|
|
520
|
-
},
|
|
521
|
-
function
|
|
520
|
+
}, Wr = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
521
|
+
function $r(e) {
|
|
522
522
|
return !!(e && j(e.append) && e[gn] === "FormData" && e[Pe]);
|
|
523
523
|
}
|
|
524
524
|
const Hr = (e) => {
|
|
525
525
|
const t = new Array(10), n = (r, o) => {
|
|
526
|
-
if (
|
|
526
|
+
if (We(r)) {
|
|
527
527
|
if (t.indexOf(r) >= 0)
|
|
528
528
|
return;
|
|
529
529
|
if (!("toJSON" in r)) {
|
|
@@ -538,7 +538,7 @@ const Hr = (e) => {
|
|
|
538
538
|
return r;
|
|
539
539
|
};
|
|
540
540
|
return n(e, 0);
|
|
541
|
-
}, jr = Y("AsyncFunction"), qr = (e) => e && (
|
|
541
|
+
}, jr = Y("AsyncFunction"), qr = (e) => e && (We(e) || j(e)) && j(e.then) && j(e.catch), Ln = ((e, t) => e ? setImmediate : t ? ((n, r) => (Q.addEventListener("message", ({ source: o, data: a }) => {
|
|
542
542
|
o === Q && a === n && r.length && r.shift()();
|
|
543
543
|
}, !1), (o) => {
|
|
544
544
|
r.push(o), Q.postMessage(n, "*");
|
|
@@ -554,7 +554,7 @@ const Hr = (e) => {
|
|
|
554
554
|
isString: fr,
|
|
555
555
|
isNumber: yn,
|
|
556
556
|
isBoolean: pr,
|
|
557
|
-
isObject:
|
|
557
|
+
isObject: We,
|
|
558
558
|
isPlainObject: Ee,
|
|
559
559
|
isReadableStream: Sr,
|
|
560
560
|
isRequest: Lr,
|
|
@@ -592,11 +592,11 @@ const Hr = (e) => {
|
|
|
592
592
|
toObjectSet: Nr,
|
|
593
593
|
toCamelCase: zr,
|
|
594
594
|
noop: Ur,
|
|
595
|
-
toFiniteNumber:
|
|
595
|
+
toFiniteNumber: Wr,
|
|
596
596
|
findKey: xn,
|
|
597
597
|
global: Q,
|
|
598
598
|
isContextDefined: _n,
|
|
599
|
-
isSpecCompliantForm:
|
|
599
|
+
isSpecCompliantForm: $r,
|
|
600
600
|
toJSONObject: Hr,
|
|
601
601
|
isAsyncFn: jr,
|
|
602
602
|
isThenable: qr,
|
|
@@ -672,15 +672,15 @@ function Gr(e) {
|
|
|
672
672
|
const Kr = g.toFlatObject(g, {}, null, function(t) {
|
|
673
673
|
return /^is[A-Z]/.test(t);
|
|
674
674
|
});
|
|
675
|
-
function
|
|
675
|
+
function $e(e, t, n) {
|
|
676
676
|
if (!g.isObject(e))
|
|
677
677
|
throw new TypeError("target must be an object");
|
|
678
678
|
t = t || new FormData(), n = g.toFlatObject(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
|
}
|
|
@@ -750,7 +750,7 @@ function zt(e) {
|
|
|
750
750
|
});
|
|
751
751
|
}
|
|
752
752
|
function ft(e, t) {
|
|
753
|
-
this._pairs = [], e &&
|
|
753
|
+
this._pairs = [], e && $e(e, this, t);
|
|
754
754
|
}
|
|
755
755
|
const En = ft.prototype;
|
|
756
756
|
En.append = function(t, n) {
|
|
@@ -856,14 +856,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", oo
|
|
|
856
856
|
hasStandardBrowserWebWorkerEnv: ro,
|
|
857
857
|
navigator: tt,
|
|
858
858
|
origin: oo
|
|
859
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
859
|
+
}, Symbol.toStringTag, { value: "Module" })), $ = {
|
|
860
860
|
...io,
|
|
861
861
|
...to
|
|
862
862
|
};
|
|
863
863
|
function ao(e, t) {
|
|
864
|
-
return
|
|
864
|
+
return $e(e, new $.classes.URLSearchParams(), Object.assign({
|
|
865
865
|
visitor: function(n, r, o, a) {
|
|
866
|
-
return
|
|
866
|
+
return $.isNode && g.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
867
867
|
}
|
|
868
868
|
}, t));
|
|
869
869
|
}
|
|
@@ -923,7 +923,7 @@ const _e = {
|
|
|
923
923
|
return ao(t, this.formSerializer).toString();
|
|
924
924
|
if ((s = g.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
925
925
|
const p = this.env && this.env.FormData;
|
|
926
|
-
return
|
|
926
|
+
return $e(
|
|
927
927
|
s ? { "files[]": t } : t,
|
|
928
928
|
p && new p(),
|
|
929
929
|
this.formSerializer
|
|
@@ -957,8 +957,8 @@ const _e = {
|
|
|
957
957
|
maxContentLength: -1,
|
|
958
958
|
maxBodyLength: -1,
|
|
959
959
|
env: {
|
|
960
|
-
FormData:
|
|
961
|
-
Blob:
|
|
960
|
+
FormData: $.classes.FormData,
|
|
961
|
+
Blob: $.classes.Blob
|
|
962
962
|
},
|
|
963
963
|
validateStatus: function(t) {
|
|
964
964
|
return t >= 200 && t < 300;
|
|
@@ -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) {
|
|
@@ -1258,10 +1258,10 @@ const Re = (e, t, n = 3) => {
|
|
|
1258
1258
|
total: e,
|
|
1259
1259
|
loaded: r
|
|
1260
1260
|
}), t[1]];
|
|
1261
|
-
}, Ut = (e) => (...t) => g.asap(() => e(...t)), _o =
|
|
1262
|
-
new URL(
|
|
1263
|
-
|
|
1264
|
-
) : () => !0, So =
|
|
1261
|
+
}, Ut = (e) => (...t) => g.asap(() => e(...t)), _o = $.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, $.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
1262
|
+
new URL($.origin),
|
|
1263
|
+
$.navigator && /(msie|trident)/i.test($.navigator.userAgent)
|
|
1264
|
+
) : () => !0, So = $.hasStandardBrowserEnv ? (
|
|
1265
1265
|
// Standard browser envs support document.cookie
|
|
1266
1266
|
{
|
|
1267
1267
|
write(e, t, n, r, o, a) {
|
|
@@ -1298,18 +1298,18 @@ function Rn(e, t, n) {
|
|
|
1298
1298
|
let r = !Lo(t);
|
|
1299
1299
|
return e && (r || n == !1) ? wo(e, t) : t;
|
|
1300
1300
|
}
|
|
1301
|
-
const
|
|
1301
|
+
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, 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))
|
|
@@ -1356,11 +1356,11 @@ function te(e, t) {
|
|
|
1356
1356
|
socketPath: i,
|
|
1357
1357
|
responseEncoding: i,
|
|
1358
1358
|
validateStatus: s,
|
|
1359
|
-
headers: (c, f, u) => o(
|
|
1359
|
+
headers: (c, f, u) => o(Wt(c), Wt(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) => {
|
|
@@ -1372,14 +1372,14 @@ const Fn = (e) => {
|
|
|
1372
1372
|
);
|
|
1373
1373
|
let p;
|
|
1374
1374
|
if (g.isFormData(n)) {
|
|
1375
|
-
if (
|
|
1375
|
+
if ($.hasStandardBrowserEnv || $.hasStandardBrowserWebWorkerEnv)
|
|
1376
1376
|
i.setContentType(void 0);
|
|
1377
1377
|
else if ((p = i.getContentType()) !== !1) {
|
|
1378
1378
|
const [c, ...f] = p ? p.split(";").map((u) => u.trim()).filter(Boolean) : [];
|
|
1379
1379
|
i.setContentType([c || "multipart/form-data", ...f].join("; "));
|
|
1380
1380
|
}
|
|
1381
1381
|
}
|
|
1382
|
-
if (
|
|
1382
|
+
if ($.hasStandardBrowserEnv && (r && g.isFunction(r) && (r = r(t)), r || r !== !1 && _o(t.url))) {
|
|
1383
1383
|
const c = o && a && So.read(a);
|
|
1384
1384
|
c && i.set(o, c);
|
|
1385
1385
|
}
|
|
@@ -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,11 +1431,11 @@ 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);
|
|
1438
|
-
if (L &&
|
|
1438
|
+
if (L && $.protocols.indexOf(L) === -1) {
|
|
1439
1439
|
r(new C("Unsupported protocol " + L + ":", C.ERR_BAD_REQUEST, e));
|
|
1440
1440
|
return;
|
|
1441
1441
|
}
|
|
@@ -1492,7 +1492,7 @@ const Fn = (e) => {
|
|
|
1492
1492
|
} finally {
|
|
1493
1493
|
await t.cancel();
|
|
1494
1494
|
}
|
|
1495
|
-
},
|
|
1495
|
+
}, $t = (e, t, n, r) => {
|
|
1496
1496
|
const o = vo(e, t);
|
|
1497
1497
|
let a = 0, i, s = (p) => {
|
|
1498
1498
|
i || (i = !0, r && r(p));
|
|
@@ -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) {
|
|
@@ -1529,7 +1529,7 @@ const Fn = (e) => {
|
|
|
1529
1529
|
}
|
|
1530
1530
|
}, Bo = In && Dn(() => {
|
|
1531
1531
|
let e = !1;
|
|
1532
|
-
const t = new Request(
|
|
1532
|
+
const t = new Request($.origin, {
|
|
1533
1533
|
body: new ReadableStream(),
|
|
1534
1534
|
method: "POST",
|
|
1535
1535
|
get duplex() {
|
|
@@ -1553,7 +1553,7 @@ const Ro = async (e) => {
|
|
|
1553
1553
|
if (g.isBlob(e))
|
|
1554
1554
|
return e.size;
|
|
1555
1555
|
if (g.isSpecCompliantForm(e))
|
|
1556
|
-
return (await new Request(
|
|
1556
|
+
return (await new Request($.origin, {
|
|
1557
1557
|
method: "POST",
|
|
1558
1558
|
body: e
|
|
1559
1559
|
}).arrayBuffer()).byteLength;
|
|
@@ -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;
|
|
@@ -1597,13 +1597,13 @@ const Ro = async (e) => {
|
|
|
1597
1597
|
b,
|
|
1598
1598
|
Re(Ut(p))
|
|
1599
1599
|
);
|
|
1600
|
-
r =
|
|
1600
|
+
r = $t(M.body, Ht, P, w);
|
|
1601
1601
|
}
|
|
1602
1602
|
}
|
|
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];
|
|
@@ -1623,15 +1623,15 @@ const Ro = async (e) => {
|
|
|
1623
1623
|
Re(Ut(s), !0)
|
|
1624
1624
|
) || [];
|
|
1625
1625
|
L = new Response(
|
|
1626
|
-
|
|
1627
|
-
w && w(),
|
|
1626
|
+
$t(L.body, Ht, P, () => {
|
|
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
|
}
|
|
@@ -2050,7 +2050,7 @@ z.CanceledError = ce;
|
|
|
2050
2050
|
z.CancelToken = Oo;
|
|
2051
2051
|
z.isCancel = Tn;
|
|
2052
2052
|
z.VERSION = On;
|
|
2053
|
-
z.toFormData =
|
|
2053
|
+
z.toFormData = $e;
|
|
2054
2054
|
z.AxiosError = C;
|
|
2055
2055
|
z.Cancel = z.CanceledError;
|
|
2056
2056
|
z.all = function(t) {
|
|
@@ -2128,7 +2128,7 @@ let Me = null;
|
|
|
2128
2128
|
function X() {
|
|
2129
2129
|
return Me || (Me = Uo()), Me;
|
|
2130
2130
|
}
|
|
2131
|
-
function
|
|
2131
|
+
function Wo() {
|
|
2132
2132
|
Me = null;
|
|
2133
2133
|
}
|
|
2134
2134
|
function Un() {
|
|
@@ -2161,7 +2161,7 @@ function Un() {
|
|
|
2161
2161
|
return sessionStorage.setItem("balanceData", JSON.stringify(r)), r;
|
|
2162
2162
|
});
|
|
2163
2163
|
}
|
|
2164
|
-
const
|
|
2164
|
+
const $o = async () => X().get("/all-dicts", {}).then((e) => (sessionStorage.setItem("all_dicts", JSON.stringify(e.data)), e.data || {})), Ho = async () => {
|
|
2165
2165
|
const e = JSON.parse(
|
|
2166
2166
|
sessionStorage.getItem("fund_unit_params") || "{}"
|
|
2167
2167
|
);
|
|
@@ -2185,7 +2185,7 @@ const Wo = async () => X().get("/all-dicts", {}).then((e) => (sessionStorage.set
|
|
|
2185
2185
|
t && t(r);
|
|
2186
2186
|
}
|
|
2187
2187
|
}
|
|
2188
|
-
}).then((n) => n.data?.url || ""),
|
|
2188
|
+
}).then((n) => n.data?.url || ""), Wn = async (e) => {
|
|
2189
2189
|
const t = JSON.parse(
|
|
2190
2190
|
sessionStorage.getItem("fund_unit_params") || "{}"
|
|
2191
2191
|
), n = {
|
|
@@ -2202,7 +2202,7 @@ const Wo = async () => X().get("/all-dicts", {}).then((e) => (sessionStorage.set
|
|
|
2202
2202
|
voucher_urls: e.voucherUrls
|
|
2203
2203
|
};
|
|
2204
2204
|
return X().post("/offline/recharge/create", n, {});
|
|
2205
|
-
},
|
|
2205
|
+
}, $n = async (e) => {
|
|
2206
2206
|
const t = JSON.parse(
|
|
2207
2207
|
sessionStorage.getItem("fund_unit_params") || "{}"
|
|
2208
2208
|
), n = {
|
|
@@ -2304,7 +2304,7 @@ function Sa(e) {
|
|
|
2304
2304
|
size: p,
|
|
2305
2305
|
themeConfig: c
|
|
2306
2306
|
})
|
|
2307
|
-
),
|
|
2307
|
+
), Wo(), $o(), {
|
|
2308
2308
|
token: f,
|
|
2309
2309
|
merchantId: t,
|
|
2310
2310
|
bizType: n,
|
|
@@ -2516,6 +2516,7 @@ const Zo = {
|
|
|
2516
2516
|
"注:地区/币种/卡类型可能影响手续费,最终以平台为准。": "注:地区/币种/卡类型可能影响手续费,最终以平台为准。",
|
|
2517
2517
|
确定: "确定",
|
|
2518
2518
|
提交成功: "提交成功",
|
|
2519
|
+
年: "年",
|
|
2519
2520
|
// 余额相关
|
|
2520
2521
|
余额详情: "余额详情",
|
|
2521
2522
|
真实金额: "真实金额",
|
|
@@ -2572,14 +2573,13 @@ const Zo = {
|
|
|
2572
2573
|
确认转账详情: "确认转账详情",
|
|
2573
2574
|
转账后提交银行回单提示: "请在转账后提交银行回单,否则可能无法及时核验",
|
|
2574
2575
|
温馨提示: "温馨提示",
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
详情: "。",
|
|
2576
|
+
"创建付款时请勿填写敏感备注,例如:topup ads、order等、建议填写数字代码": "创建付款时请勿填写敏感备注,例如:topup ads、order等、建议填写数字代码",
|
|
2577
|
+
"请填写正确的支付金额、币种、支付时间,相同的交易请勿重复提交。": "请填写正确的支付金额、币种、支付时间,相同的交易请勿重复提交。",
|
|
2578
|
+
"请上传交易凭证,否则无法核验并及时添加余额。": "请上传交易凭证,否则无法核验并及时添加余额。",
|
|
2579
|
+
"提交成功后根据实际到账金额添加余额。工作时间提交的转账当日处理,非工作时间提交的转账将在下一个工作日处理。": "提交成功后根据实际到账金额添加余额。工作时间提交的转账当日处理,非工作时间提交的转账将在下一个工作日处理。",
|
|
2580
|
+
"通过平台互转(例如payoneer转payoneer)付款方式可能会有10分钟延迟,请耐心等待。": "通过平台互转(例如payoneer转payoneer)付款方式可能会有10分钟延迟,请耐心等待。",
|
|
2581
|
+
"广告款项若入账金额为美金外其他币种额外扣除0.6%手续费,其中PayPal支付方式额外扣除2.5%手续费。": "广告款项若入账金额为美金外其他币种额外扣除0.6%手续费,其中PayPal支付方式额外扣除2.5%手续费。",
|
|
2582
|
+
"如有问题,请联系客服。": "如有问题,请联系客服。",
|
|
2583
2583
|
// 银行转账回单上传相关
|
|
2584
2584
|
返回账户信息: "返回账户信息",
|
|
2585
2585
|
请上传银行转账回单: "请上传银行转账回单",
|
|
@@ -2644,6 +2644,7 @@ const ei = {
|
|
|
2644
2644
|
"注:地区/币种/卡类型可能影响手续费,最终以平台为准。": "Note: Region/currency/card type may affect handling fees, subject to the platform.",
|
|
2645
2645
|
确定: "Confirm",
|
|
2646
2646
|
提交成功: "Submit Success",
|
|
2647
|
+
年: "Year",
|
|
2647
2648
|
// 余额相关
|
|
2648
2649
|
余额详情: "Balance Details",
|
|
2649
2650
|
真实金额: "Real Balance",
|
|
@@ -2722,14 +2723,13 @@ const ei = {
|
|
|
2722
2723
|
确认转账详情: "Confirm Transfer Details",
|
|
2723
2724
|
转账后提交银行回单提示: "Please make sure to submit the bank transaction slip after the transfer, otherwise the payment may not be verified in time",
|
|
2724
2725
|
温馨提示: "Friendly Reminder",
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
详情: "for details.",
|
|
2726
|
+
"创建付款时请勿填写敏感备注,例如:topup ads、order等、建议填写数字代码": "Do not include sensitive notes when creating a payment (e.g., “topup ads”, “order”). We recommend using a numeric code instead.",
|
|
2727
|
+
"请填写正确的支付金额、币种、支付时间,相同的交易请勿重复提交。": "Enter the correct amount, currency, and payment time. Please do not submit the same transaction more than once.",
|
|
2728
|
+
"请上传交易凭证,否则无法核验并及时添加余额。": "Upload the payment proof/receipt. Without it, we can’t verify the transfer or credit your balance in time.",
|
|
2729
|
+
"提交成功后根据实际到账金额添加余额。工作时间提交的转账当日处理,非工作时间提交的转账将在下一个工作日处理。": "After submission, your balance will be credited based on the actual received amount. Transfers submitted during business hours are processed the same day; those submitted outside business hours will be processed on the next business day.",
|
|
2730
|
+
"通过平台互转(例如payoneer转payoneer)付款方式可能会有10分钟延迟,请耐心等待。": "For platform-to-platform transfers (e.g., Payoneer → Payoneer), there may be a ~10-minute delay. Please wait patiently.",
|
|
2731
|
+
"广告款项若入账金额为美金外其他币种额外扣除0.6%手续费,其中PayPal支付方式额外扣除2.5%手续费。": "For advertising funds: if the received currency is non-USD, an additional 0.6% fee applies. PayPal payments incur an additional 2.5% fee. ",
|
|
2732
|
+
"如有问题,请联系客服。": "If you have any questions, please contact Customer Support.",
|
|
2733
2733
|
// Bank Transfer Receipt Upload Related
|
|
2734
2734
|
返回账户信息: "Return to Account Information",
|
|
2735
2735
|
请上传银行转账回单: "Please upload the bank transfer receipt",
|
|
@@ -2770,7 +2770,7 @@ function ni() {
|
|
|
2770
2770
|
sessionStorage.getItem("fund_unit_params") || "{}"
|
|
2771
2771
|
).locale || Oe.ZH;
|
|
2772
2772
|
}
|
|
2773
|
-
function
|
|
2773
|
+
function y(e) {
|
|
2774
2774
|
return ni() === "zh" ? Qo(e) : ti(e);
|
|
2775
2775
|
}
|
|
2776
2776
|
const Yt = {
|
|
@@ -2863,11 +2863,11 @@ const it = ({
|
|
|
2863
2863
|
dropdownClassName: c,
|
|
2864
2864
|
children: f
|
|
2865
2865
|
}) => {
|
|
2866
|
-
const [u,
|
|
2866
|
+
const [u, x] = B(!1), m = se(null), [h, _] = B(null), b = ri(), S = E("size");
|
|
2867
2867
|
J(() => {
|
|
2868
2868
|
if (!u) return;
|
|
2869
2869
|
const A = (M) => {
|
|
2870
|
-
m.current && !m.current.contains(M.target) &&
|
|
2870
|
+
m.current && !m.current.contains(M.target) && x(!1);
|
|
2871
2871
|
};
|
|
2872
2872
|
return document.addEventListener("mousedown", A), () => document.removeEventListener("mousedown", A);
|
|
2873
2873
|
}, [u]);
|
|
@@ -2898,7 +2898,7 @@ const it = ({
|
|
|
2898
2898
|
/* @__PURE__ */ d(
|
|
2899
2899
|
"div",
|
|
2900
2900
|
{
|
|
2901
|
-
onClick: () => !i &&
|
|
2901
|
+
onClick: () => !i && x((A) => !A),
|
|
2902
2902
|
style: {
|
|
2903
2903
|
minHeight: S === l.SMALL ? 32 : 40,
|
|
2904
2904
|
borderRadius: 6,
|
|
@@ -2979,7 +2979,7 @@ const it = ({
|
|
|
2979
2979
|
viewBox: "0 0 64 41",
|
|
2980
2980
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2981
2981
|
children: [
|
|
2982
|
-
/* @__PURE__ */ d("title", { children:
|
|
2982
|
+
/* @__PURE__ */ d("title", { children: y("暂无数据") }),
|
|
2983
2983
|
/* @__PURE__ */ d("g", { transform: "translate(0 1)", fill: "none", fillRule: "evenodd", children: [
|
|
2984
2984
|
/* @__PURE__ */ d(
|
|
2985
2985
|
"ellipse",
|
|
@@ -3013,7 +3013,7 @@ const it = ({
|
|
|
3013
3013
|
color: "#bfbfbf",
|
|
3014
3014
|
fontSize: S === l.SMALL ? 12 : 15
|
|
3015
3015
|
},
|
|
3016
|
-
children:
|
|
3016
|
+
children: y("暂无数据")
|
|
3017
3017
|
}
|
|
3018
3018
|
)
|
|
3019
3019
|
]
|
|
@@ -3023,10 +3023,10 @@ const it = ({
|
|
|
3023
3023
|
"div",
|
|
3024
3024
|
{
|
|
3025
3025
|
onClick: () => {
|
|
3026
|
-
A.disabled || (
|
|
3026
|
+
A.disabled || (x(!1), t?.(A.value));
|
|
3027
3027
|
},
|
|
3028
|
-
onMouseEnter: () =>
|
|
3029
|
-
onMouseLeave: () =>
|
|
3028
|
+
onMouseEnter: () => _(M),
|
|
3029
|
+
onMouseLeave: () => _(null),
|
|
3030
3030
|
style: {
|
|
3031
3031
|
padding: S === l.SMALL ? "6px 10px" : "10px 16px",
|
|
3032
3032
|
fontSize: S === l.SMALL ? 12 : 15,
|
|
@@ -3248,31 +3248,31 @@ function si(e) {
|
|
|
3248
3248
|
return isNaN(t) ? "" : t.toFixed(2);
|
|
3249
3249
|
}
|
|
3250
3250
|
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,
|
|
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, x] = B(!1), m = ii();
|
|
3252
3252
|
return J(() => {
|
|
3253
3253
|
e.currency && e.amount && e.rechargeChannel ? Hn({
|
|
3254
3254
|
channel: e.rechargeChannel,
|
|
3255
3255
|
amount: e.amount,
|
|
3256
3256
|
currency: e.currency
|
|
3257
3257
|
}).then((h) => {
|
|
3258
|
-
p(h.paymentAmount), f(h.fee),
|
|
3258
|
+
p(h.paymentAmount), f(h.fee), x(!0);
|
|
3259
3259
|
}).catch((h) => {
|
|
3260
|
-
console.error("计算支付金额失败:", h),
|
|
3261
|
-
}) :
|
|
3260
|
+
console.error("计算支付金额失败:", h), x(!1);
|
|
3261
|
+
}) : x(!1);
|
|
3262
3262
|
}, [e.currency, e.amount, e.rechargeChannel]), /* @__PURE__ */ d(ne, { children: [
|
|
3263
3263
|
/* @__PURE__ */ d("div", { style: { marginBottom: 18 }, children: [
|
|
3264
3264
|
/* @__PURE__ */ d("div", { style: m.label, children: [
|
|
3265
3265
|
/* @__PURE__ */ d("span", { style: { color: "#F53F3F" }, children: "*" }),
|
|
3266
3266
|
" ",
|
|
3267
|
-
|
|
3267
|
+
y("充值币种")
|
|
3268
3268
|
] }),
|
|
3269
3269
|
/* @__PURE__ */ d(
|
|
3270
3270
|
it,
|
|
3271
3271
|
{
|
|
3272
3272
|
value: e.currency,
|
|
3273
3273
|
onChange: (h) => {
|
|
3274
|
-
t((
|
|
3275
|
-
...
|
|
3274
|
+
t((_) => ({
|
|
3275
|
+
..._,
|
|
3276
3276
|
currency: h
|
|
3277
3277
|
}));
|
|
3278
3278
|
},
|
|
@@ -3280,7 +3280,7 @@ const li = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
|
3280
3280
|
value: h.value,
|
|
3281
3281
|
label: h.label
|
|
3282
3282
|
})),
|
|
3283
|
-
placeholder:
|
|
3283
|
+
placeholder: y("请选择充值币种")
|
|
3284
3284
|
}
|
|
3285
3285
|
)
|
|
3286
3286
|
] }),
|
|
@@ -3288,36 +3288,36 @@ const li = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
|
3288
3288
|
/* @__PURE__ */ d("div", { style: m.label, children: [
|
|
3289
3289
|
/* @__PURE__ */ d("span", { style: { color: "#F53F3F" }, children: "*" }),
|
|
3290
3290
|
" ",
|
|
3291
|
-
|
|
3291
|
+
y("充值金额")
|
|
3292
3292
|
] }),
|
|
3293
3293
|
/* @__PURE__ */ d(
|
|
3294
3294
|
"input",
|
|
3295
3295
|
{
|
|
3296
3296
|
type: "text",
|
|
3297
|
-
placeholder:
|
|
3297
|
+
placeholder: y("请输入充值金额"),
|
|
3298
3298
|
value: e.amount,
|
|
3299
3299
|
onInput: (h) => {
|
|
3300
|
-
let
|
|
3301
|
-
|
|
3300
|
+
let _ = h.target.value;
|
|
3301
|
+
_ = ai(_);
|
|
3302
3302
|
let b = "";
|
|
3303
|
-
if (
|
|
3304
|
-
let S = parseFloat(
|
|
3305
|
-
if (!isNaN(S) && (S < 1 && (S = 1), S > 999999.99 && (S = 999999.99),
|
|
3303
|
+
if (_ && !_.endsWith(".")) {
|
|
3304
|
+
let S = parseFloat(_);
|
|
3305
|
+
if (!isNaN(S) && (S < 1 && (S = 1), S > 999999.99 && (S = 999999.99), _ = S.toString(), /\./.test(h.target.value))) {
|
|
3306
3306
|
const L = h.target.value.split(".")[1];
|
|
3307
|
-
L !== void 0 && L.length > 0 && (
|
|
3307
|
+
L !== void 0 && L.length > 0 && (_ = S.toFixed(Math.min(L.length, 2)));
|
|
3308
3308
|
}
|
|
3309
3309
|
}
|
|
3310
3310
|
t((S) => ({
|
|
3311
3311
|
...S,
|
|
3312
|
-
amount:
|
|
3312
|
+
amount: _,
|
|
3313
3313
|
amountError: b
|
|
3314
3314
|
}));
|
|
3315
3315
|
},
|
|
3316
3316
|
onBlur: (h) => {
|
|
3317
|
-
let
|
|
3318
|
-
|
|
3317
|
+
let _ = h.target.value;
|
|
3318
|
+
_ = si(_), t((b) => ({
|
|
3319
3319
|
...b,
|
|
3320
|
-
amount:
|
|
3320
|
+
amount: _,
|
|
3321
3321
|
amountError: ""
|
|
3322
3322
|
}));
|
|
3323
3323
|
},
|
|
@@ -3333,24 +3333,24 @@ const li = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
|
3333
3333
|
/* @__PURE__ */ d("div", { style: m.label, children: [
|
|
3334
3334
|
/* @__PURE__ */ d("span", { style: { color: "#F53F3F" }, children: "*" }),
|
|
3335
3335
|
" ",
|
|
3336
|
-
|
|
3336
|
+
y("支付平台")
|
|
3337
3337
|
] }),
|
|
3338
3338
|
/* @__PURE__ */ d(
|
|
3339
3339
|
it,
|
|
3340
3340
|
{
|
|
3341
3341
|
value: e.rechargeChannel,
|
|
3342
3342
|
onChange: (h) => {
|
|
3343
|
-
t((
|
|
3344
|
-
...
|
|
3343
|
+
t((_) => ({
|
|
3344
|
+
..._,
|
|
3345
3345
|
rechargeChannel: h,
|
|
3346
|
-
rechargeChannelError: h ? "" :
|
|
3346
|
+
rechargeChannelError: h ? "" : _.rechargeChannelError
|
|
3347
3347
|
}));
|
|
3348
3348
|
},
|
|
3349
3349
|
options: i?.map((h) => ({
|
|
3350
3350
|
value: h.value,
|
|
3351
3351
|
label: h.label
|
|
3352
3352
|
})),
|
|
3353
|
-
placeholder:
|
|
3353
|
+
placeholder: y("请选择支付平台")
|
|
3354
3354
|
}
|
|
3355
3355
|
),
|
|
3356
3356
|
e.rechargeChannelError && /* @__PURE__ */ d("div", { style: m.error, children: e.rechargeChannelError })
|
|
@@ -3359,26 +3359,26 @@ const li = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
|
3359
3359
|
i.find(
|
|
3360
3360
|
(h) => h.value === e.rechargeChannel
|
|
3361
3361
|
)?.label || e.rechargeChannel,
|
|
3362
|
-
|
|
3362
|
+
y("需要收取手续费,实际支付金额约为:"),
|
|
3363
3363
|
"$",
|
|
3364
3364
|
s
|
|
3365
3365
|
] }),
|
|
3366
3366
|
u && s && /* @__PURE__ */ d("div", { style: m.feeDetailBox, children: [
|
|
3367
3367
|
/* @__PURE__ */ d("div", { style: m.feeDetailTitle, children: [
|
|
3368
|
-
|
|
3368
|
+
y("手续费约为:"),
|
|
3369
3369
|
/* @__PURE__ */ d("span", { style: m.feeAmount, children: [
|
|
3370
3370
|
"$",
|
|
3371
3371
|
c
|
|
3372
3372
|
] })
|
|
3373
3373
|
] }),
|
|
3374
|
-
/* @__PURE__ */ d("div", { style: m.feeDetailDesc, children:
|
|
3374
|
+
/* @__PURE__ */ d("div", { style: m.feeDetailDesc, children: y(
|
|
3375
3375
|
"额外费用说明:您的地区、币种、支付卡类型等因素可能会导致手续费的变动,最终手续费以官方为准。"
|
|
3376
3376
|
) })
|
|
3377
3377
|
] }),
|
|
3378
3378
|
e.error && /* @__PURE__ */ d("div", { style: { color: "#ff4d4f", marginBottom: 12 }, children: e.error }),
|
|
3379
3379
|
/* @__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:
|
|
3380
|
+
/* @__PURE__ */ d("button", { type: "button", onClick: n, style: m.buttonCancel, children: y("取消") }),
|
|
3381
|
+
/* @__PURE__ */ d("button", { type: "submit", disabled: r, style: m.buttonSubmit, children: y(r ? "提交中..." : "去支付") })
|
|
3382
3382
|
] })
|
|
3383
3383
|
] });
|
|
3384
3384
|
};
|
|
@@ -3475,8 +3475,8 @@ const ui = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3475
3475
|
multiple: o = !0,
|
|
3476
3476
|
disabled: a = !1
|
|
3477
3477
|
}) => {
|
|
3478
|
-
const i = E("size"), s = se(null), [p, c] = B(!1), [f, u] = B(0),
|
|
3479
|
-
const b = Array.from(
|
|
3478
|
+
const i = E("size"), s = se(null), [p, c] = B(!1), [f, u] = B(0), x = di(), m = async (_) => {
|
|
3479
|
+
const b = Array.from(_.target.files).slice(
|
|
3480
3480
|
0,
|
|
3481
3481
|
n
|
|
3482
3482
|
);
|
|
@@ -3497,8 +3497,8 @@ const ui = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3497
3497
|
}
|
|
3498
3498
|
}
|
|
3499
3499
|
c(!1), u(0), t?.([...e, ...S]), s.current && (s.current.value = "");
|
|
3500
|
-
}, h = (
|
|
3501
|
-
const b = e.filter((S, L) => L !==
|
|
3500
|
+
}, h = (_) => {
|
|
3501
|
+
const b = e.filter((S, L) => L !== _);
|
|
3502
3502
|
t?.(b);
|
|
3503
3503
|
};
|
|
3504
3504
|
return /* @__PURE__ */ d("div", { children: [
|
|
@@ -3506,8 +3506,8 @@ const ui = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3506
3506
|
"div",
|
|
3507
3507
|
{
|
|
3508
3508
|
style: {
|
|
3509
|
-
...
|
|
3510
|
-
cursor: a ? "not-allowed" :
|
|
3509
|
+
...x.container,
|
|
3510
|
+
cursor: a ? "not-allowed" : x.container.cursor,
|
|
3511
3511
|
opacity: a ? 0.6 : 1
|
|
3512
3512
|
},
|
|
3513
3513
|
onClick: () => !a && s.current?.click(),
|
|
@@ -3532,10 +3532,10 @@ const ui = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3532
3532
|
fontSize: i === l.SMALL ? 13 : 16,
|
|
3533
3533
|
marginBottom: i === l.SMALL ? 4 : 8
|
|
3534
3534
|
},
|
|
3535
|
-
children:
|
|
3535
|
+
children: y("Please upload the bank transfer receipt")
|
|
3536
3536
|
}
|
|
3537
3537
|
),
|
|
3538
|
-
/* @__PURE__ */ d("div", { style: { color: "#999", fontSize: i === l.SMALL ? 12 : 13 }, children:
|
|
3538
|
+
/* @__PURE__ */ d("div", { style: { color: "#999", fontSize: i === l.SMALL ? 12 : 13 }, children: y("Click or drag file to this area to upload") }),
|
|
3539
3539
|
/* @__PURE__ */ d(
|
|
3540
3540
|
"input",
|
|
3541
3541
|
{
|
|
@@ -3556,7 +3556,7 @@ const ui = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3556
3556
|
color: "#1677ff"
|
|
3557
3557
|
},
|
|
3558
3558
|
children: [
|
|
3559
|
-
|
|
3559
|
+
y("正在上传..."),
|
|
3560
3560
|
" ",
|
|
3561
3561
|
f,
|
|
3562
3562
|
"%"
|
|
@@ -3566,8 +3566,8 @@ const ui = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3566
3566
|
]
|
|
3567
3567
|
}
|
|
3568
3568
|
),
|
|
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:
|
|
3569
|
+
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: [
|
|
3570
|
+
/* @__PURE__ */ d("div", { style: { display: "flex", alignItems: "center", flex: 1 }, children: /* @__PURE__ */ d("span", { style: { fontWeight: 500, wordBreak: "break-all" }, children: _.split("/").pop() }) }),
|
|
3571
3571
|
/* @__PURE__ */ d(
|
|
3572
3572
|
"button",
|
|
3573
3573
|
{
|
|
@@ -3575,12 +3575,12 @@ const ui = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
3575
3575
|
onClick: (S) => {
|
|
3576
3576
|
S.stopPropagation(), h(b);
|
|
3577
3577
|
},
|
|
3578
|
-
style:
|
|
3578
|
+
style: x.removeBtn,
|
|
3579
3579
|
disabled: a,
|
|
3580
|
-
children:
|
|
3580
|
+
children: y("移除")
|
|
3581
3581
|
}
|
|
3582
3582
|
)
|
|
3583
|
-
] },
|
|
3583
|
+
] }, _)) })
|
|
3584
3584
|
] });
|
|
3585
3585
|
};
|
|
3586
3586
|
function fi() {
|
|
@@ -3834,7 +3834,7 @@ const hi = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
|
3834
3834
|
console.log(o, "allDicts");
|
|
3835
3835
|
const a = o?.channel || [], i = pi(), [s, p] = B([]), c = async (u) => {
|
|
3836
3836
|
u.preventDefault();
|
|
3837
|
-
let
|
|
3837
|
+
let x = !0;
|
|
3838
3838
|
t((m) => ({
|
|
3839
3839
|
...m,
|
|
3840
3840
|
platformError: "",
|
|
@@ -3842,28 +3842,28 @@ const hi = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
|
3842
3842
|
filesError: ""
|
|
3843
3843
|
})), e.platform || (t((m) => ({
|
|
3844
3844
|
...m,
|
|
3845
|
-
platformError:
|
|
3846
|
-
})),
|
|
3845
|
+
platformError: y("请选择支付平台")
|
|
3846
|
+
})), x = !1), e.transactionId.trim() || (t((m) => ({
|
|
3847
3847
|
...m,
|
|
3848
|
-
transactionIdError:
|
|
3849
|
-
})),
|
|
3848
|
+
transactionIdError: y("请输入转账交易ID")
|
|
3849
|
+
})), x = !1), (!e.files || e.files.length === 0) && (t((m) => ({
|
|
3850
3850
|
...m,
|
|
3851
|
-
filesError:
|
|
3852
|
-
})),
|
|
3851
|
+
filesError: y("请上传转账凭证")
|
|
3852
|
+
})), x = !1), x && (await Wn({
|
|
3853
3853
|
transferChannel: e.platform,
|
|
3854
3854
|
transferNo: e.transactionId,
|
|
3855
3855
|
voucherUrls: e.files
|
|
3856
|
-
}), n(), Ie.success(
|
|
3856
|
+
}), n(), Ie.success(y("提交成功")));
|
|
3857
3857
|
};
|
|
3858
3858
|
function f(u) {
|
|
3859
|
-
t((
|
|
3860
|
-
...
|
|
3859
|
+
t((x) => ({
|
|
3860
|
+
...x,
|
|
3861
3861
|
platform: u,
|
|
3862
|
-
platformError: u ? "" :
|
|
3862
|
+
platformError: u ? "" : x.platformError
|
|
3863
3863
|
})), jn({
|
|
3864
3864
|
code: u
|
|
3865
|
-
}).then((
|
|
3866
|
-
p(Array.isArray(
|
|
3865
|
+
}).then((x) => {
|
|
3866
|
+
p(Array.isArray(x) ? x : x ? [String(x)] : []);
|
|
3867
3867
|
});
|
|
3868
3868
|
}
|
|
3869
3869
|
return /* @__PURE__ */ d("form", { onSubmit: c, children: [
|
|
@@ -3871,7 +3871,7 @@ const hi = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
|
3871
3871
|
/* @__PURE__ */ d("div", { style: i.label, children: [
|
|
3872
3872
|
/* @__PURE__ */ d("span", { style: { color: "#F53F3F" }, children: "*" }),
|
|
3873
3873
|
" ",
|
|
3874
|
-
|
|
3874
|
+
y("第三方支付平台")
|
|
3875
3875
|
] }),
|
|
3876
3876
|
/* @__PURE__ */ d(
|
|
3877
3877
|
it,
|
|
@@ -3886,31 +3886,31 @@ const hi = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
|
3886
3886
|
label: u.label
|
|
3887
3887
|
}))
|
|
3888
3888
|
],
|
|
3889
|
-
placeholder:
|
|
3889
|
+
placeholder: y("请选择支付平台")
|
|
3890
3890
|
}
|
|
3891
3891
|
),
|
|
3892
3892
|
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,
|
|
3893
|
+
s.length > 0 && /* @__PURE__ */ d("div", { style: i.channelInfoBox, children: s.map((u, x) => /* @__PURE__ */ d("div", { style: i.channelInfoItem, children: u }, x)) })
|
|
3894
3894
|
] }),
|
|
3895
3895
|
/* @__PURE__ */ d("div", { style: { marginBottom: 18 }, children: [
|
|
3896
3896
|
/* @__PURE__ */ d("div", { style: i.label, children: [
|
|
3897
3897
|
/* @__PURE__ */ d("span", { style: { color: "#F53F3F" }, children: "*" }),
|
|
3898
3898
|
" ",
|
|
3899
|
-
|
|
3899
|
+
y("交易ID")
|
|
3900
3900
|
] }),
|
|
3901
3901
|
/* @__PURE__ */ d(
|
|
3902
3902
|
"input",
|
|
3903
3903
|
{
|
|
3904
3904
|
type: "text",
|
|
3905
|
-
placeholder:
|
|
3905
|
+
placeholder: y("请输入转账交易ID"),
|
|
3906
3906
|
value: e.transactionId,
|
|
3907
3907
|
maxLength: 200,
|
|
3908
3908
|
onInput: (u) => {
|
|
3909
|
-
let
|
|
3910
|
-
|
|
3909
|
+
let x = u.target.value;
|
|
3910
|
+
x.length > 200 && (x = x.slice(0, 200)), t((m) => ({
|
|
3911
3911
|
...m,
|
|
3912
|
-
transactionId:
|
|
3913
|
-
transactionIdError:
|
|
3912
|
+
transactionId: x,
|
|
3913
|
+
transactionIdError: x ? "" : m.transactionIdError
|
|
3914
3914
|
}));
|
|
3915
3915
|
},
|
|
3916
3916
|
style: {
|
|
@@ -3925,14 +3925,14 @@ const hi = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
|
3925
3925
|
/* @__PURE__ */ d("div", { style: i.label, children: [
|
|
3926
3926
|
/* @__PURE__ */ d("span", { style: { color: "#F53F3F" }, children: "*" }),
|
|
3927
3927
|
" ",
|
|
3928
|
-
|
|
3928
|
+
y("上传文件")
|
|
3929
3929
|
] }),
|
|
3930
3930
|
/* @__PURE__ */ d(
|
|
3931
3931
|
qn,
|
|
3932
3932
|
{
|
|
3933
3933
|
value: e.files,
|
|
3934
|
-
onChange: (u) => t((
|
|
3935
|
-
...
|
|
3934
|
+
onChange: (u) => t((x) => ({
|
|
3935
|
+
...x,
|
|
3936
3936
|
files: u,
|
|
3937
3937
|
filesError: ""
|
|
3938
3938
|
})),
|
|
@@ -3944,8 +3944,8 @@ const hi = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
|
|
|
3944
3944
|
e.filesError && /* @__PURE__ */ d("div", { style: i.error, children: e.filesError })
|
|
3945
3945
|
] }),
|
|
3946
3946
|
/* @__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:
|
|
3947
|
+
/* @__PURE__ */ d("button", { type: "button", onClick: n, style: i.buttonCancel, children: y("取消") }),
|
|
3948
|
+
/* @__PURE__ */ d("button", { type: "submit", disabled: r, style: i.buttonSubmit, children: y("确定") })
|
|
3949
3949
|
] })
|
|
3950
3950
|
] });
|
|
3951
3951
|
};
|
|
@@ -4088,7 +4088,7 @@ function Jn({
|
|
|
4088
4088
|
}, [f]);
|
|
4089
4089
|
const u = (m) => {
|
|
4090
4090
|
m.target === m.currentTarget ? c(!0) : c(!1);
|
|
4091
|
-
},
|
|
4091
|
+
}, x = (m) => {
|
|
4092
4092
|
m.target === m.currentTarget && p && s && t(), c(!1);
|
|
4093
4093
|
};
|
|
4094
4094
|
return e ? /* @__PURE__ */ d(
|
|
@@ -4107,7 +4107,7 @@ function Jn({
|
|
|
4107
4107
|
zIndex: 9999
|
|
4108
4108
|
},
|
|
4109
4109
|
onMouseDown: u,
|
|
4110
|
-
onMouseUp:
|
|
4110
|
+
onMouseUp: x,
|
|
4111
4111
|
children: /* @__PURE__ */ d(
|
|
4112
4112
|
"div",
|
|
4113
4113
|
{
|
|
@@ -4266,15 +4266,15 @@ function Si({ visible: e, onClose: t, onSubmit: n }) {
|
|
|
4266
4266
|
}, [e]);
|
|
4267
4267
|
const f = async (u) => {
|
|
4268
4268
|
u.preventDefault();
|
|
4269
|
-
let
|
|
4269
|
+
let x = !0;
|
|
4270
4270
|
if (o((m) => ({
|
|
4271
4271
|
...m,
|
|
4272
4272
|
amountError: "",
|
|
4273
4273
|
rechargeChannelError: ""
|
|
4274
|
-
})), r.amount.trim() || (o((m) => ({ ...m, amountError:
|
|
4274
|
+
})), r.amount.trim() || (o((m) => ({ ...m, amountError: y("请输入充值金额") })), x = !1), r.rechargeChannel || (o((m) => ({
|
|
4275
4275
|
...m,
|
|
4276
|
-
rechargeChannelError:
|
|
4277
|
-
})),
|
|
4276
|
+
rechargeChannelError: y("请选择支付平台")
|
|
4277
|
+
})), x = !1), !!x) {
|
|
4278
4278
|
o((m) => ({ ...m, loading: !0, error: "" }));
|
|
4279
4279
|
try {
|
|
4280
4280
|
await n({
|
|
@@ -4283,13 +4283,13 @@ function Si({ visible: e, onClose: t, onSubmit: n }) {
|
|
|
4283
4283
|
currency: r.currency
|
|
4284
4284
|
}), t();
|
|
4285
4285
|
} catch {
|
|
4286
|
-
o((m) => ({ ...m, error:
|
|
4286
|
+
o((m) => ({ ...m, error: y("提交失败,请重试") }));
|
|
4287
4287
|
} finally {
|
|
4288
4288
|
o((m) => ({ ...m, loading: !1 }));
|
|
4289
4289
|
}
|
|
4290
4290
|
}
|
|
4291
4291
|
};
|
|
4292
|
-
return /* @__PURE__ */ d(Jn, { visible: e, onClose: t, title:
|
|
4292
|
+
return /* @__PURE__ */ d(Jn, { visible: e, onClose: t, title: y("充值 / 转账"), children: [
|
|
4293
4293
|
/* @__PURE__ */ d(
|
|
4294
4294
|
"div",
|
|
4295
4295
|
{
|
|
@@ -4304,7 +4304,7 @@ function Si({ visible: e, onClose: t, onSubmit: n }) {
|
|
|
4304
4304
|
type: "button",
|
|
4305
4305
|
onClick: () => p("online"),
|
|
4306
4306
|
style: c.tabBtn(s === "online", !0),
|
|
4307
|
-
children:
|
|
4307
|
+
children: y("在线充值")
|
|
4308
4308
|
}
|
|
4309
4309
|
),
|
|
4310
4310
|
/* @__PURE__ */ d(
|
|
@@ -4313,7 +4313,7 @@ function Si({ visible: e, onClose: t, onSubmit: n }) {
|
|
|
4313
4313
|
type: "button",
|
|
4314
4314
|
onClick: () => p("offline"),
|
|
4315
4315
|
style: c.tabBtn(s === "offline", !1),
|
|
4316
|
-
children:
|
|
4316
|
+
children: y("线下转账")
|
|
4317
4317
|
}
|
|
4318
4318
|
)
|
|
4319
4319
|
]
|
|
@@ -4415,7 +4415,7 @@ function qe(e, t, n, r) {
|
|
|
4415
4415
|
}
|
|
4416
4416
|
function Ci() {
|
|
4417
4417
|
const [e, t] = B(!1), n = async (r) => {
|
|
4418
|
-
const o = await
|
|
4418
|
+
const o = await $n({
|
|
4419
4419
|
amount: r.amount,
|
|
4420
4420
|
currency: r.currency,
|
|
4421
4421
|
rechargeChannel: r.rechargeChannel
|
|
@@ -4423,7 +4423,7 @@ function Ci() {
|
|
|
4423
4423
|
window.open(o, "_blank");
|
|
4424
4424
|
};
|
|
4425
4425
|
return /* @__PURE__ */ d("div", { children: [
|
|
4426
|
-
/* @__PURE__ */ d(ht, { onClick: () => t(!0), children:
|
|
4426
|
+
/* @__PURE__ */ d(ht, { onClick: () => t(!0), children: y("充值/转账") }),
|
|
4427
4427
|
/* @__PURE__ */ d(
|
|
4428
4428
|
Si,
|
|
4429
4429
|
{
|
|
@@ -4972,7 +4972,7 @@ function Ri({
|
|
|
4972
4972
|
initialPaymentType: a = "online",
|
|
4973
4973
|
amountError: i = ""
|
|
4974
4974
|
}) {
|
|
4975
|
-
const s = Bi(), [p, c] = B([]), [f, u] = B([]), [
|
|
4975
|
+
const s = Bi(), [p, c] = B([]), [f, u] = B([]), [x, m] = B([]), [h, _] = B({
|
|
4976
4976
|
currency: o,
|
|
4977
4977
|
amount: r,
|
|
4978
4978
|
onlineChannel: "",
|
|
@@ -4980,14 +4980,14 @@ function Ri({
|
|
|
4980
4980
|
paymentType: a,
|
|
4981
4981
|
amountError: ""
|
|
4982
4982
|
}), [b, S] = B(null), L = se(null), T = (w, F) => {
|
|
4983
|
-
const U = w !== void 0 ? w : h.amount,
|
|
4983
|
+
const U = w !== void 0 ? w : h.amount, W = F !== void 0 ? F : h.currency;
|
|
4984
4984
|
if (!U || Number(U) <= 0) {
|
|
4985
4985
|
S(null);
|
|
4986
4986
|
return;
|
|
4987
4987
|
}
|
|
4988
4988
|
L.current && clearTimeout(L.current), L.current = window.setTimeout(() => {
|
|
4989
4989
|
Jo({
|
|
4990
|
-
currency:
|
|
4990
|
+
currency: W,
|
|
4991
4991
|
amount: U
|
|
4992
4992
|
}).then((V) => S(V)).catch(() => S(null));
|
|
4993
4993
|
}, 300);
|
|
@@ -5000,8 +5000,8 @@ function Ri({
|
|
|
5000
5000
|
qo({ currency: h.currency }).then((w) => {
|
|
5001
5001
|
const F = w.onlineChannel || [], U = w.offlineChannel || [];
|
|
5002
5002
|
u(F), m(U);
|
|
5003
|
-
const
|
|
5004
|
-
|
|
5003
|
+
const W = F.length > 0, V = U?.[0]?.value || "", Se = F?.[0]?.value || "", de = W ? a : "bank", k = de === "online" ? Se : V;
|
|
5004
|
+
_((v) => ({
|
|
5005
5005
|
...v,
|
|
5006
5006
|
onlineChannel: Se,
|
|
5007
5007
|
bankChannel: V,
|
|
@@ -5013,12 +5013,12 @@ function Ri({
|
|
|
5013
5013
|
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
5014
|
}
|
|
5015
5015
|
const M = (w) => {
|
|
5016
|
-
|
|
5016
|
+
_((F) => ({ ...F, currency: w })), n(w), T(void 0, w);
|
|
5017
5017
|
}, R = (w) => {
|
|
5018
5018
|
const F = A(w);
|
|
5019
|
-
|
|
5019
|
+
_((U) => ({ ...U, amount: F, amountError: "" })), t(F), T(F);
|
|
5020
5020
|
}, P = (w, F) => {
|
|
5021
|
-
|
|
5021
|
+
_((U) => ({
|
|
5022
5022
|
...U,
|
|
5023
5023
|
[F === "online" ? "onlineChannel" : "bankChannel"]: w,
|
|
5024
5024
|
paymentType: F
|
|
@@ -5027,9 +5027,9 @@ function Ri({
|
|
|
5027
5027
|
return /* @__PURE__ */ d("div", { style: s.left, children: [
|
|
5028
5028
|
/* @__PURE__ */ d("div", { style: s.blockTitle, children: [
|
|
5029
5029
|
/* @__PURE__ */ d("span", { style: s.titleBar }),
|
|
5030
|
-
|
|
5030
|
+
y("选择支付方式")
|
|
5031
5031
|
] }),
|
|
5032
|
-
/* @__PURE__ */ d("div", { style: s.fieldLabel, children:
|
|
5032
|
+
/* @__PURE__ */ d("div", { style: s.fieldLabel, children: y("支付币种") }),
|
|
5033
5033
|
/* @__PURE__ */ d("div", { style: s.currencyRow, children: (p || []).slice(0, 4).map((w) => /* @__PURE__ */ d(
|
|
5034
5034
|
"button",
|
|
5035
5035
|
{
|
|
@@ -5042,14 +5042,14 @@ function Ri({
|
|
|
5042
5042
|
/* @__PURE__ */ d("div", { style: { height: 12 } }),
|
|
5043
5043
|
/* @__PURE__ */ d("div", { style: s.fieldLabel, children: [
|
|
5044
5044
|
/* @__PURE__ */ d("span", { style: s.required, children: "*" }),
|
|
5045
|
-
|
|
5045
|
+
y("支付金额")
|
|
5046
5046
|
] }),
|
|
5047
5047
|
/* @__PURE__ */ d("div", { style: s.inputWrapper, children: [
|
|
5048
5048
|
/* @__PURE__ */ d(
|
|
5049
5049
|
"input",
|
|
5050
5050
|
{
|
|
5051
5051
|
type: "text",
|
|
5052
|
-
placeholder:
|
|
5052
|
+
placeholder: y("请输入充值金额"),
|
|
5053
5053
|
value: h.amount,
|
|
5054
5054
|
onInput: (w) => {
|
|
5055
5055
|
R(w.target.value);
|
|
@@ -5064,16 +5064,16 @@ function Ri({
|
|
|
5064
5064
|
] }),
|
|
5065
5065
|
i && /* @__PURE__ */ d("div", { style: s.error, children: i }),
|
|
5066
5066
|
b && b.consistent === !1 && /* @__PURE__ */ d("div", { style: s.bizRateBox, children: [
|
|
5067
|
-
/* @__PURE__ */ d("div", { children:
|
|
5067
|
+
/* @__PURE__ */ d("div", { children: y("您的支付币种与默认币种不一致,将转换为默认币种入账") }),
|
|
5068
5068
|
/* @__PURE__ */ d("div", { children: [
|
|
5069
|
-
|
|
5069
|
+
y("目前汇率为:"),
|
|
5070
5070
|
" ",
|
|
5071
5071
|
h.currency,
|
|
5072
|
-
|
|
5072
|
+
y(`→${b.currency} = `),
|
|
5073
5073
|
/* @__PURE__ */ d("span", { style: s.bizRateStrong, children: b.exchangeRate })
|
|
5074
5074
|
] }),
|
|
5075
5075
|
/* @__PURE__ */ d("div", { children: [
|
|
5076
|
-
|
|
5076
|
+
y("钱包预计增加"),
|
|
5077
5077
|
/* @__PURE__ */ d("span", { style: s.bizRateStrong, children: [
|
|
5078
5078
|
b.currency,
|
|
5079
5079
|
" ",
|
|
@@ -5082,9 +5082,9 @@ function Ri({
|
|
|
5082
5082
|
] })
|
|
5083
5083
|
] }),
|
|
5084
5084
|
/* @__PURE__ */ d("div", { style: { height: 20 } }),
|
|
5085
|
-
/* @__PURE__ */ d("div", { style: s.fieldLabel, children:
|
|
5085
|
+
/* @__PURE__ */ d("div", { style: s.fieldLabel, children: y("支付方式") }),
|
|
5086
5086
|
f.length > 0 && /* @__PURE__ */ d("div", { children: [
|
|
5087
|
-
/* @__PURE__ */ d("div", { style: s.subTitle, children:
|
|
5087
|
+
/* @__PURE__ */ d("div", { style: s.subTitle, children: y("线上支付") }),
|
|
5088
5088
|
/* @__PURE__ */ d("div", { style: s.methodList, children: f.map((w) => /* @__PURE__ */ d(
|
|
5089
5089
|
"button",
|
|
5090
5090
|
{
|
|
@@ -5107,8 +5107,8 @@ function Ri({
|
|
|
5107
5107
|
}
|
|
5108
5108
|
)) })
|
|
5109
5109
|
] }),
|
|
5110
|
-
/* @__PURE__ */ d("div", { style: s.subTitle, children:
|
|
5111
|
-
/* @__PURE__ */ d("div", { style: s.bankList, children:
|
|
5110
|
+
/* @__PURE__ */ d("div", { style: s.subTitle, children: y("银行转账") }),
|
|
5111
|
+
/* @__PURE__ */ d("div", { style: s.bankList, children: x.map((w) => /* @__PURE__ */ d(
|
|
5112
5112
|
"button",
|
|
5113
5113
|
{
|
|
5114
5114
|
type: "button",
|
|
@@ -5318,10 +5318,10 @@ function Di({
|
|
|
5318
5318
|
loading: o,
|
|
5319
5319
|
error: a,
|
|
5320
5320
|
amountError: ""
|
|
5321
|
-
}), [u,
|
|
5321
|
+
}), [u, x] = B(null);
|
|
5322
5322
|
J(() => {
|
|
5323
|
-
f((
|
|
5324
|
-
...
|
|
5323
|
+
f((_) => ({
|
|
5324
|
+
..._,
|
|
5325
5325
|
amount: t,
|
|
5326
5326
|
currency: n,
|
|
5327
5327
|
channel: r,
|
|
@@ -5329,14 +5329,14 @@ function Di({
|
|
|
5329
5329
|
error: a
|
|
5330
5330
|
}));
|
|
5331
5331
|
const h = setTimeout(() => {
|
|
5332
|
-
t && r && n ? Hn({ channel: r, amount: t, currency: n }).then((
|
|
5332
|
+
t && r && n ? Hn({ channel: r, amount: t, currency: n }).then((_) => x(_)).catch(() => x(null)) : x(null);
|
|
5333
5333
|
}, 300);
|
|
5334
5334
|
return () => clearTimeout(h);
|
|
5335
5335
|
}, [t, n, r, o, a]);
|
|
5336
5336
|
const m = async (h) => {
|
|
5337
5337
|
h && h.preventDefault();
|
|
5338
|
-
let
|
|
5339
|
-
if (t.trim() || (
|
|
5338
|
+
let _ = !0;
|
|
5339
|
+
if (t.trim() || (_ = !1, i?.(y("请输入充值金额"))), r || (_ = !1, f((b) => ({ ...b, error: y("请选择支付平台") }))), !!_) {
|
|
5340
5340
|
f((b) => ({ ...b, loading: !0, error: "" }));
|
|
5341
5341
|
try {
|
|
5342
5342
|
await e({
|
|
@@ -5352,7 +5352,7 @@ function Di({
|
|
|
5352
5352
|
return /* @__PURE__ */ d("div", { style: s.right, children: [
|
|
5353
5353
|
/* @__PURE__ */ d("div", { style: s.blockTitle, children: [
|
|
5354
5354
|
/* @__PURE__ */ d("span", { style: s.titleBar }),
|
|
5355
|
-
|
|
5355
|
+
y("在线支付")
|
|
5356
5356
|
] }),
|
|
5357
5357
|
/* @__PURE__ */ d("form", { onSubmit: m, children: [
|
|
5358
5358
|
/* @__PURE__ */ d("div", { style: s.inputWrapper, children: [
|
|
@@ -5360,7 +5360,7 @@ function Di({
|
|
|
5360
5360
|
"input",
|
|
5361
5361
|
{
|
|
5362
5362
|
type: "text",
|
|
5363
|
-
placeholder:
|
|
5363
|
+
placeholder: y("支付金额"),
|
|
5364
5364
|
value: c.amount,
|
|
5365
5365
|
readOnly: !0,
|
|
5366
5366
|
disabled: !0,
|
|
@@ -5379,31 +5379,41 @@ function Di({
|
|
|
5379
5379
|
type: "submit",
|
|
5380
5380
|
disabled: c.loading,
|
|
5381
5381
|
style: s.payButton,
|
|
5382
|
-
children: c.loading ?
|
|
5382
|
+
children: c.loading ? y("提交中...") : y("立即支付")
|
|
5383
5383
|
}
|
|
5384
5384
|
)
|
|
5385
5385
|
] }),
|
|
5386
5386
|
u && /* @__PURE__ */ d("div", { style: s.calcBox, children: [
|
|
5387
5387
|
/* @__PURE__ */ d("div", { style: s.calcLine, children: [
|
|
5388
|
-
|
|
5388
|
+
y("预计支付金额约为:"),
|
|
5389
5389
|
/* @__PURE__ */ d("span", { style: s.calcAmount, children: `$${u.paymentAmount}` }),
|
|
5390
5390
|
u.currency
|
|
5391
5391
|
] }),
|
|
5392
5392
|
/* @__PURE__ */ d("div", { style: s.calcLine, children: [
|
|
5393
|
-
|
|
5393
|
+
y("手续费约为:"),
|
|
5394
5394
|
/* @__PURE__ */ d("span", { style: s.calcAmount, children: `$${u.fee}` }),
|
|
5395
5395
|
u.currency
|
|
5396
5396
|
] }),
|
|
5397
|
-
/* @__PURE__ */ d("div", { children:
|
|
5397
|
+
/* @__PURE__ */ d("div", { children: y("注:地区/币种/卡类型可能影响手续费,最终以平台为准。") })
|
|
5398
5398
|
] }),
|
|
5399
|
-
/* @__PURE__ */ d("div", { style: s.noticeBox, children:
|
|
5400
|
-
/* @__PURE__ */ d("div", { style: s.reminderTitle, children:
|
|
5399
|
+
/* @__PURE__ */ d("div", { style: s.noticeBox, children: y("请在转账后提交银行回单,否则可能无法及时核验") }),
|
|
5400
|
+
/* @__PURE__ */ d("div", { style: s.reminderTitle, children: y("温馨提示") }),
|
|
5401
5401
|
/* @__PURE__ */ d("ul", { style: s.reminderList, children: [
|
|
5402
|
-
/* @__PURE__ */ d("li", {
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
/* @__PURE__ */ d("li", {
|
|
5406
|
-
/* @__PURE__ */ d("li", {
|
|
5402
|
+
/* @__PURE__ */ d("li", { children: y(
|
|
5403
|
+
"创建付款时请勿填写敏感备注,例如:topup ads、order等、建议填写数字代码"
|
|
5404
|
+
) }),
|
|
5405
|
+
/* @__PURE__ */ d("li", { children: y("请填写正确的支付金额、币种、支付时间,相同的交易请勿重复提交。") }),
|
|
5406
|
+
/* @__PURE__ */ d("li", { children: y("请上传交易凭证,否则无法核验并及时添加余额。") }),
|
|
5407
|
+
/* @__PURE__ */ d("li", { children: y(
|
|
5408
|
+
"提交成功后根据实际到账金额添加余额。工作时间提交的转账当日处理,非工作时间提交的转账将在下一个工作日处理。"
|
|
5409
|
+
) }),
|
|
5410
|
+
/* @__PURE__ */ d("li", { children: y(
|
|
5411
|
+
"通过平台互转(例如payoneer转payoneer)付款方式可能会有10分钟延迟,请耐心等待。"
|
|
5412
|
+
) }),
|
|
5413
|
+
/* @__PURE__ */ d("li", { children: y(
|
|
5414
|
+
"广告款项若入账金额为美金外其他币种额外扣除0.6%手续费,其中PayPal支付方式额外扣除2.5%手续费。"
|
|
5415
|
+
) }),
|
|
5416
|
+
/* @__PURE__ */ d("li", { children: y("如有问题,请联系客服。") })
|
|
5407
5417
|
] }),
|
|
5408
5418
|
c.error && /* @__PURE__ */ d("div", { style: s.error, children: c.error })
|
|
5409
5419
|
] });
|
|
@@ -6010,9 +6020,9 @@ function Ni() {
|
|
|
6010
6020
|
function Ui() {
|
|
6011
6021
|
return Ni();
|
|
6012
6022
|
}
|
|
6013
|
-
function
|
|
6023
|
+
function Wi({
|
|
6014
6024
|
value: e = "",
|
|
6015
|
-
placeholder: t =
|
|
6025
|
+
placeholder: t = y("请选择日期"),
|
|
6016
6026
|
disabled: n = !1,
|
|
6017
6027
|
size: r = "middle",
|
|
6018
6028
|
onChange: o,
|
|
@@ -6021,7 +6031,7 @@ function $i({
|
|
|
6021
6031
|
className: s = "",
|
|
6022
6032
|
style: p = {}
|
|
6023
6033
|
}) {
|
|
6024
|
-
const c = Ui(), [f, u] = B(!1), [
|
|
6034
|
+
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
6035
|
if (!k) return "";
|
|
6026
6036
|
const v = new Date(k);
|
|
6027
6037
|
return `${v.getFullYear()}-${String(v.getMonth() + 1).padStart(
|
|
@@ -6041,7 +6051,7 @@ function $i({
|
|
|
6041
6051
|
"0"
|
|
6042
6052
|
)}-${String(yt - H).padStart(2, "0")}`
|
|
6043
6053
|
});
|
|
6044
|
-
const Gn = /* @__PURE__ */ new Date(), xt =
|
|
6054
|
+
const Gn = /* @__PURE__ */ new Date(), xt = x ? new Date(x) : null;
|
|
6045
6055
|
for (let H = 1; H <= ue; H++) {
|
|
6046
6056
|
const _t = `${k}-${String(v + 1).padStart(2, "0")}-${String(
|
|
6047
6057
|
H
|
|
@@ -6071,14 +6081,14 @@ function $i({
|
|
|
6071
6081
|
m(k), u(!1), o?.(k);
|
|
6072
6082
|
}, w = (k) => {
|
|
6073
6083
|
const v = new Date(h);
|
|
6074
|
-
k === "prev" ? v.setMonth(v.getMonth() - 1) : v.setMonth(v.getMonth() + 1),
|
|
6084
|
+
k === "prev" ? v.setMonth(v.getMonth() - 1) : v.setMonth(v.getMonth() + 1), _(v);
|
|
6075
6085
|
}, F = (k) => {
|
|
6076
6086
|
const v = new Date(h);
|
|
6077
|
-
k === "prev" ? v.setFullYear(v.getFullYear() - 1) : v.setFullYear(v.getFullYear() + 1),
|
|
6087
|
+
k === "prev" ? v.setFullYear(v.getFullYear() - 1) : v.setFullYear(v.getFullYear() + 1), _(v);
|
|
6078
6088
|
}, U = (k) => {
|
|
6079
6089
|
const v = new Date(h);
|
|
6080
|
-
v.setFullYear(k),
|
|
6081
|
-
},
|
|
6090
|
+
v.setFullYear(k), _(v), S(!1);
|
|
6091
|
+
}, W = () => {
|
|
6082
6092
|
const k = (/* @__PURE__ */ new Date()).getFullYear(), v = [];
|
|
6083
6093
|
for (let ue = k - 50; ue <= k + 50; ue++)
|
|
6084
6094
|
v.push(ue);
|
|
@@ -6092,26 +6102,26 @@ function $i({
|
|
|
6092
6102
|
return document.addEventListener("mousedown", k), () => document.removeEventListener("mousedown", k);
|
|
6093
6103
|
}, [f]);
|
|
6094
6104
|
const V = R(), Se = [
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
|
|
6098
|
-
|
|
6099
|
-
|
|
6100
|
-
|
|
6101
|
-
|
|
6102
|
-
|
|
6103
|
-
|
|
6104
|
-
|
|
6105
|
-
|
|
6106
|
-
|
|
6105
|
+
y("一月"),
|
|
6106
|
+
y("二月"),
|
|
6107
|
+
y("三月"),
|
|
6108
|
+
y("四月"),
|
|
6109
|
+
y("五月"),
|
|
6110
|
+
y("六月"),
|
|
6111
|
+
y("七月"),
|
|
6112
|
+
y("八月"),
|
|
6113
|
+
y("九月"),
|
|
6114
|
+
y("十月"),
|
|
6115
|
+
y("十一月"),
|
|
6116
|
+
y("十二月")
|
|
6107
6117
|
], de = [
|
|
6108
|
-
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
|
|
6118
|
+
y("日"),
|
|
6119
|
+
y("一"),
|
|
6120
|
+
y("二"),
|
|
6121
|
+
y("三"),
|
|
6122
|
+
y("四"),
|
|
6123
|
+
y("五"),
|
|
6124
|
+
y("六")
|
|
6115
6125
|
];
|
|
6116
6126
|
return /* @__PURE__ */ d(
|
|
6117
6127
|
"div",
|
|
@@ -6132,7 +6142,7 @@ function $i({
|
|
|
6132
6142
|
onFocus: a,
|
|
6133
6143
|
onBlur: i,
|
|
6134
6144
|
children: [
|
|
6135
|
-
/* @__PURE__ */ d("span", { style: c.inputText, children:
|
|
6145
|
+
/* @__PURE__ */ d("span", { style: c.inputText, children: x ? T(x) : t }),
|
|
6136
6146
|
/* @__PURE__ */ d("img", { src: Pi, alt: "calendar", style: c.calendarIcon })
|
|
6137
6147
|
]
|
|
6138
6148
|
}
|
|
@@ -6164,7 +6174,9 @@ function $i({
|
|
|
6164
6174
|
onClick: () => S(!b),
|
|
6165
6175
|
children: [
|
|
6166
6176
|
h.getFullYear(),
|
|
6167
|
-
"
|
|
6177
|
+
" ",
|
|
6178
|
+
y("年"),
|
|
6179
|
+
" ",
|
|
6168
6180
|
Se[h.getMonth()]
|
|
6169
6181
|
]
|
|
6170
6182
|
}
|
|
@@ -6188,7 +6200,7 @@ function $i({
|
|
|
6188
6200
|
}
|
|
6189
6201
|
)
|
|
6190
6202
|
] }),
|
|
6191
|
-
b && /* @__PURE__ */ d("div", { style: c.yearPicker, children: /* @__PURE__ */ d("div", { style: c.yearGrid, children:
|
|
6203
|
+
b && /* @__PURE__ */ d("div", { style: c.yearPicker, children: /* @__PURE__ */ d("div", { style: c.yearGrid, children: W().map((k) => /* @__PURE__ */ d(
|
|
6192
6204
|
"button",
|
|
6193
6205
|
{
|
|
6194
6206
|
type: "button",
|
|
@@ -6223,7 +6235,7 @@ function $i({
|
|
|
6223
6235
|
}
|
|
6224
6236
|
);
|
|
6225
6237
|
}
|
|
6226
|
-
function
|
|
6238
|
+
function $i({
|
|
6227
6239
|
onBack: e,
|
|
6228
6240
|
onCancel: t,
|
|
6229
6241
|
currency: n = "USD",
|
|
@@ -6248,17 +6260,17 @@ function Wi({
|
|
|
6248
6260
|
J(() => {
|
|
6249
6261
|
u((m) => ({ ...m, transferAmount: r }));
|
|
6250
6262
|
}, [r]);
|
|
6251
|
-
const
|
|
6263
|
+
const x = async () => {
|
|
6252
6264
|
let m = !0;
|
|
6253
|
-
if (f.urls.length === 0 && (m = !1, u((h) => ({ ...h, filesError:
|
|
6265
|
+
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
6266
|
...h,
|
|
6255
|
-
transactionIdError:
|
|
6267
|
+
transactionIdError: y("请输入转账交易ID")
|
|
6256
6268
|
}))), f.payerName.trim() || (m = !1, u((h) => ({
|
|
6257
6269
|
...h,
|
|
6258
|
-
payerNameError:
|
|
6270
|
+
payerNameError: y("请输入付款人名称")
|
|
6259
6271
|
}))), !!m)
|
|
6260
6272
|
try {
|
|
6261
|
-
await
|
|
6273
|
+
await Wn({
|
|
6262
6274
|
transferDate: f.transferTime,
|
|
6263
6275
|
transferNo: f.transactionId,
|
|
6264
6276
|
transferChannel: o,
|
|
@@ -6266,7 +6278,7 @@ function Wi({
|
|
|
6266
6278
|
payerName: f.payerName,
|
|
6267
6279
|
submitAmount: r,
|
|
6268
6280
|
submitCurrency: n
|
|
6269
|
-
}), Ie.success(
|
|
6281
|
+
}), Ie.success(y("提交成功")), t();
|
|
6270
6282
|
} finally {
|
|
6271
6283
|
u((h) => ({ ...h, loading: !1 }));
|
|
6272
6284
|
}
|
|
@@ -6274,7 +6286,7 @@ function Wi({
|
|
|
6274
6286
|
return /* @__PURE__ */ d("div", { style: i.container, children: [
|
|
6275
6287
|
/* @__PURE__ */ d("div", { style: i.header, children: /* @__PURE__ */ d("button", { type: "button", onClick: e, style: i.backButton, children: [
|
|
6276
6288
|
/* @__PURE__ */ d("span", { style: i.backIcon, children: "←" }),
|
|
6277
|
-
|
|
6289
|
+
y("返回账户信息")
|
|
6278
6290
|
] }) }),
|
|
6279
6291
|
/* @__PURE__ */ d("div", { style: i.uploadSection, children: [
|
|
6280
6292
|
/* @__PURE__ */ d(
|
|
@@ -6294,13 +6306,13 @@ function Wi({
|
|
|
6294
6306
|
/* @__PURE__ */ d("div", { style: i.fieldSection, children: [
|
|
6295
6307
|
/* @__PURE__ */ d("label", { style: i.fieldLabel, children: [
|
|
6296
6308
|
/* @__PURE__ */ d("span", { style: i.required, children: "*" }),
|
|
6297
|
-
|
|
6309
|
+
y("转账时间")
|
|
6298
6310
|
] }),
|
|
6299
6311
|
/* @__PURE__ */ d(
|
|
6300
|
-
|
|
6312
|
+
Wi,
|
|
6301
6313
|
{
|
|
6302
6314
|
value: f.transferTime,
|
|
6303
|
-
placeholder:
|
|
6315
|
+
placeholder: y("请选择转账时间"),
|
|
6304
6316
|
onChange: (m) => {
|
|
6305
6317
|
u((h) => ({
|
|
6306
6318
|
...h,
|
|
@@ -6314,13 +6326,13 @@ function Wi({
|
|
|
6314
6326
|
f.timeError && /* @__PURE__ */ d("div", { style: i.error, children: f.timeError })
|
|
6315
6327
|
] }),
|
|
6316
6328
|
/* @__PURE__ */ d("div", { style: i.fieldSection, children: [
|
|
6317
|
-
/* @__PURE__ */ d("label", { style: i.fieldLabel, children:
|
|
6329
|
+
/* @__PURE__ */ d("label", { style: i.fieldLabel, children: y("转账金额") }),
|
|
6318
6330
|
/* @__PURE__ */ d("div", { style: i.inputWrapper, children: [
|
|
6319
6331
|
/* @__PURE__ */ d(
|
|
6320
6332
|
"input",
|
|
6321
6333
|
{
|
|
6322
6334
|
type: "text",
|
|
6323
|
-
placeholder:
|
|
6335
|
+
placeholder: y("请输入实际转账金额"),
|
|
6324
6336
|
value: f.transferAmount,
|
|
6325
6337
|
readOnly: !0,
|
|
6326
6338
|
disabled: !0,
|
|
@@ -6336,13 +6348,13 @@ function Wi({
|
|
|
6336
6348
|
/* @__PURE__ */ d("div", { style: i.fieldSection, children: [
|
|
6337
6349
|
/* @__PURE__ */ d("label", { style: i.fieldLabel, children: [
|
|
6338
6350
|
/* @__PURE__ */ d("span", { style: i.required, children: "*" }),
|
|
6339
|
-
|
|
6351
|
+
y("交易ID")
|
|
6340
6352
|
] }),
|
|
6341
6353
|
/* @__PURE__ */ d(
|
|
6342
6354
|
"input",
|
|
6343
6355
|
{
|
|
6344
6356
|
type: "text",
|
|
6345
|
-
placeholder:
|
|
6357
|
+
placeholder: y("请输入转账交易ID"),
|
|
6346
6358
|
value: f.transactionId,
|
|
6347
6359
|
onChange: (m) => {
|
|
6348
6360
|
u((h) => ({
|
|
@@ -6362,13 +6374,13 @@ function Wi({
|
|
|
6362
6374
|
/* @__PURE__ */ d("div", { style: i.fieldSection, children: [
|
|
6363
6375
|
/* @__PURE__ */ d("label", { style: i.fieldLabel, children: [
|
|
6364
6376
|
/* @__PURE__ */ d("span", { style: i.required, children: "*" }),
|
|
6365
|
-
|
|
6377
|
+
y("付款人名称")
|
|
6366
6378
|
] }),
|
|
6367
6379
|
/* @__PURE__ */ d(
|
|
6368
6380
|
"input",
|
|
6369
6381
|
{
|
|
6370
6382
|
type: "text",
|
|
6371
|
-
placeholder:
|
|
6383
|
+
placeholder: y("请输入付款人名称"),
|
|
6372
6384
|
value: f.payerName,
|
|
6373
6385
|
onChange: (m) => {
|
|
6374
6386
|
u((h) => ({
|
|
@@ -6386,8 +6398,8 @@ function Wi({
|
|
|
6386
6398
|
f.payerNameError && /* @__PURE__ */ d("div", { style: i.error, children: f.payerNameError })
|
|
6387
6399
|
] }),
|
|
6388
6400
|
/* @__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:
|
|
6401
|
+
/* @__PURE__ */ d("button", { type: "button", onClick: t, style: i.cancelButton, children: y("取消") }),
|
|
6402
|
+
/* @__PURE__ */ d("button", { type: "button", onClick: x, style: i.submitButton, children: y("提交审核") })
|
|
6391
6403
|
] })
|
|
6392
6404
|
] });
|
|
6393
6405
|
}
|
|
@@ -6693,7 +6705,7 @@ function qi({ onConfirm: e, channelCode: t }) {
|
|
|
6693
6705
|
}, [t]), /* @__PURE__ */ d("div", { style: n.container, children: [
|
|
6694
6706
|
/* @__PURE__ */ d("div", { style: n.header, children: [
|
|
6695
6707
|
/* @__PURE__ */ d("span", { style: n.titleBar }),
|
|
6696
|
-
|
|
6708
|
+
y("银行转账")
|
|
6697
6709
|
] }),
|
|
6698
6710
|
r.length > 0 && /* @__PURE__ */ d("div", { style: n.detailCard, children: r.map((a, i) => {
|
|
6699
6711
|
const s = String(a).split(":"), p = s.shift()?.trim() || "", c = s.join(":").trim();
|
|
@@ -6713,22 +6725,17 @@ function qi({ onConfirm: e, channelCode: t }) {
|
|
|
6713
6725
|
i
|
|
6714
6726
|
);
|
|
6715
6727
|
}) }),
|
|
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:
|
|
6728
|
+
/* @__PURE__ */ d("button", { type: "button", onClick: e, style: n.confirmButton, children: y("确认转账详情") }),
|
|
6729
|
+
/* @__PURE__ */ d("div", { style: n.noticeBox, children: y("转账后提交银行回单提示") }),
|
|
6730
|
+
/* @__PURE__ */ d("div", { style: n.reminderTitle, children: y("温馨提示") }),
|
|
6719
6731
|
/* @__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:
|
|
6725
|
-
/* @__PURE__ */ d("li", { children:
|
|
6726
|
-
|
|
6727
|
-
" ",
|
|
6728
|
-
/* @__PURE__ */ d("a", { href: "#", style: n.link, children: _("费用政策") }),
|
|
6729
|
-
" ",
|
|
6730
|
-
_("详情")
|
|
6731
|
-
] })
|
|
6732
|
+
/* @__PURE__ */ d("li", { children: y("创建付款时请勿填写敏感备注,例如:topup ads、order等、建议填写数字代码") }),
|
|
6733
|
+
/* @__PURE__ */ d("li", { children: y("请填写正确的支付金额、币种、支付时间,相同的交易请勿重复提交。") }),
|
|
6734
|
+
/* @__PURE__ */ d("li", { children: y("请上传交易凭证,否则无法核验并及时添加余额。") }),
|
|
6735
|
+
/* @__PURE__ */ d("li", { children: y("提交成功后根据实际到账金额添加余额。工作时间提交的转账当日处理,非工作时间提交的转账将在下一个工作日处理。") }),
|
|
6736
|
+
/* @__PURE__ */ d("li", { children: y("通过平台互转(例如payoneer转payoneer)付款方式可能会有10分钟延迟,请耐心等待。") }),
|
|
6737
|
+
/* @__PURE__ */ d("li", { children: y("广告款项若入账金额为美金外其他币种额外扣除0.6%手续费,其中PayPal支付方式额外扣除2.5%手续费。") }),
|
|
6738
|
+
/* @__PURE__ */ d("li", { children: y("如有问题,请联系客服。") })
|
|
6732
6739
|
] })
|
|
6733
6740
|
] });
|
|
6734
6741
|
}
|
|
@@ -6750,10 +6757,10 @@ function Ji({
|
|
|
6750
6757
|
// 新增:是否显示银行转账回单上传页面
|
|
6751
6758
|
});
|
|
6752
6759
|
J(() => {
|
|
6753
|
-
const
|
|
6760
|
+
const _ = () => {
|
|
6754
6761
|
a(window.innerWidth <= 1020);
|
|
6755
6762
|
};
|
|
6756
|
-
return
|
|
6763
|
+
return _(), window.addEventListener("resize", _), () => window.removeEventListener("resize", _);
|
|
6757
6764
|
}, []), J(() => {
|
|
6758
6765
|
e || s({
|
|
6759
6766
|
currency: "USD",
|
|
@@ -6767,39 +6774,39 @@ function Ji({
|
|
|
6767
6774
|
showOfflineUpload: !1
|
|
6768
6775
|
});
|
|
6769
6776
|
}, [e]);
|
|
6770
|
-
const p = (
|
|
6777
|
+
const p = (_, b) => {
|
|
6771
6778
|
s((S) => ({
|
|
6772
6779
|
...S,
|
|
6773
|
-
channel:
|
|
6780
|
+
channel: _,
|
|
6774
6781
|
paymentType: b,
|
|
6775
6782
|
channelError: ""
|
|
6776
6783
|
}));
|
|
6777
|
-
}, c = (
|
|
6778
|
-
s((b) => ({ ...b, amount:
|
|
6779
|
-
}, f = (
|
|
6780
|
-
s((b) => ({ ...b, amountError:
|
|
6781
|
-
}, u = (
|
|
6782
|
-
s((b) => ({ ...b, currency:
|
|
6783
|
-
},
|
|
6784
|
+
}, c = (_) => {
|
|
6785
|
+
s((b) => ({ ...b, amount: _, amountError: "" }));
|
|
6786
|
+
}, f = (_) => {
|
|
6787
|
+
s((b) => ({ ...b, amountError: _ }));
|
|
6788
|
+
}, u = (_) => {
|
|
6789
|
+
s((b) => ({ ...b, currency: _ }));
|
|
6790
|
+
}, x = async (_) => {
|
|
6784
6791
|
s((b) => ({ ...b, loading: !0, error: "" }));
|
|
6785
6792
|
try {
|
|
6786
|
-
await n(
|
|
6793
|
+
await n(_), t();
|
|
6787
6794
|
} catch {
|
|
6788
|
-
s((b) => ({ ...b, error:
|
|
6795
|
+
s((b) => ({ ...b, error: y("提交失败,请重试") }));
|
|
6789
6796
|
} finally {
|
|
6790
6797
|
s((b) => ({ ...b, loading: !1 }));
|
|
6791
6798
|
}
|
|
6792
6799
|
}, m = () => {
|
|
6793
|
-
console.log("用户确认银行转账详情"), s((
|
|
6800
|
+
console.log("用户确认银行转账详情"), s((_) => ({ ..._, showOfflineUpload: !0 }));
|
|
6794
6801
|
}, h = () => {
|
|
6795
|
-
s((
|
|
6802
|
+
s((_) => ({ ..._, showOfflineUpload: !1 }));
|
|
6796
6803
|
};
|
|
6797
6804
|
return /* @__PURE__ */ d(
|
|
6798
6805
|
Jn,
|
|
6799
6806
|
{
|
|
6800
6807
|
visible: e,
|
|
6801
6808
|
onClose: t,
|
|
6802
|
-
title:
|
|
6809
|
+
title: y("充值/转账"),
|
|
6803
6810
|
width: o ? "95%" : 960,
|
|
6804
6811
|
maxWidth: o ? "95%" : 1e3,
|
|
6805
6812
|
children: /* @__PURE__ */ d(
|
|
@@ -6829,7 +6836,7 @@ function Ji({
|
|
|
6829
6836
|
i.paymentType === "online" ? /* @__PURE__ */ d(
|
|
6830
6837
|
Di,
|
|
6831
6838
|
{
|
|
6832
|
-
onSubmit:
|
|
6839
|
+
onSubmit: x,
|
|
6833
6840
|
amount: i.amount,
|
|
6834
6841
|
currency: i.currency,
|
|
6835
6842
|
channel: i.channel,
|
|
@@ -6838,7 +6845,7 @@ function Ji({
|
|
|
6838
6845
|
onAmountError: f
|
|
6839
6846
|
}
|
|
6840
6847
|
) : i.showOfflineUpload ? /* @__PURE__ */ d(
|
|
6841
|
-
|
|
6848
|
+
$i,
|
|
6842
6849
|
{
|
|
6843
6850
|
onBack: h,
|
|
6844
6851
|
onCancel: t,
|
|
@@ -6862,7 +6869,7 @@ function Ji({
|
|
|
6862
6869
|
}
|
|
6863
6870
|
function Vi() {
|
|
6864
6871
|
const [e, t] = B(!1), n = async (r) => {
|
|
6865
|
-
const o = await
|
|
6872
|
+
const o = await $n({
|
|
6866
6873
|
amount: r.amount,
|
|
6867
6874
|
currency: r.currency,
|
|
6868
6875
|
rechargeChannel: r.rechargeChannel
|
|
@@ -6870,7 +6877,7 @@ function Vi() {
|
|
|
6870
6877
|
window.open(o, "_blank");
|
|
6871
6878
|
};
|
|
6872
6879
|
return /* @__PURE__ */ d("div", { children: [
|
|
6873
|
-
/* @__PURE__ */ d(ht, { onClick: () => t(!0), children:
|
|
6880
|
+
/* @__PURE__ */ d(ht, { onClick: () => t(!0), children: y("充值/转账") }),
|
|
6874
6881
|
/* @__PURE__ */ d(
|
|
6875
6882
|
Ji,
|
|
6876
6883
|
{
|
|
@@ -6924,15 +6931,15 @@ const Gi = ({
|
|
|
6924
6931
|
offsetX: a,
|
|
6925
6932
|
popoverPosition: i = "top"
|
|
6926
6933
|
}) => {
|
|
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), [
|
|
6934
|
+
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
6935
|
if (S.current && (clearTimeout(S.current), S.current = null), i === "top" || i === "bottom")
|
|
6929
6936
|
if (b.current) {
|
|
6930
6937
|
const P = b.current.getBoundingClientRect();
|
|
6931
|
-
i === "top" && P.top < 100 ?
|
|
6938
|
+
i === "top" && P.top < 100 ? _("bottom") : i === "bottom" && window.innerHeight - P.bottom < 100 ? _("top") : _(i);
|
|
6932
6939
|
} else
|
|
6933
|
-
|
|
6940
|
+
_(i);
|
|
6934
6941
|
else
|
|
6935
|
-
|
|
6942
|
+
_(i);
|
|
6936
6943
|
m(!0);
|
|
6937
6944
|
}, A = () => {
|
|
6938
6945
|
S.current = window.setTimeout(() => {
|
|
@@ -7020,7 +7027,7 @@ const Gi = ({
|
|
|
7020
7027
|
onMouseLeave: A,
|
|
7021
7028
|
children: [
|
|
7022
7029
|
t,
|
|
7023
|
-
|
|
7030
|
+
x && /* @__PURE__ */ d(
|
|
7024
7031
|
"div",
|
|
7025
7032
|
{
|
|
7026
7033
|
style: M,
|
|
@@ -7216,33 +7223,33 @@ function Zi(e) {
|
|
|
7216
7223
|
}, []);
|
|
7217
7224
|
const o = Xi(), a = [
|
|
7218
7225
|
{
|
|
7219
|
-
label:
|
|
7226
|
+
label: y("真实金额"),
|
|
7220
7227
|
value: t.details[0]?.value || 0,
|
|
7221
7228
|
color: "#15b36b",
|
|
7222
7229
|
dot: "#15b36b"
|
|
7223
7230
|
},
|
|
7224
7231
|
{
|
|
7225
|
-
label:
|
|
7232
|
+
label: y("冻结金额"),
|
|
7226
7233
|
value: t.details[1]?.value || 0,
|
|
7227
7234
|
color: "#f59e0b",
|
|
7228
7235
|
dot: "#f59e0b"
|
|
7229
7236
|
},
|
|
7230
7237
|
...t.details.length > 4 ? [
|
|
7231
7238
|
{
|
|
7232
|
-
label:
|
|
7239
|
+
label: y("信用额度"),
|
|
7233
7240
|
value: t.details[2]?.value || 0,
|
|
7234
7241
|
color: "#1890ff",
|
|
7235
7242
|
dot: "#1890ff"
|
|
7236
7243
|
},
|
|
7237
7244
|
{
|
|
7238
|
-
label:
|
|
7245
|
+
label: y("已用额度"),
|
|
7239
7246
|
value: t.details[3]?.value || 0,
|
|
7240
7247
|
color: "#ff0000",
|
|
7241
7248
|
dot: "#ff0000"
|
|
7242
7249
|
}
|
|
7243
7250
|
] : [],
|
|
7244
7251
|
{
|
|
7245
|
-
label:
|
|
7252
|
+
label: y("可用余额"),
|
|
7246
7253
|
value: t.details[4]?.value || 0,
|
|
7247
7254
|
color: "#1890ff",
|
|
7248
7255
|
dot: "#15b36b"
|
|
@@ -7252,7 +7259,7 @@ function Zi(e) {
|
|
|
7252
7259
|
Gi,
|
|
7253
7260
|
{
|
|
7254
7261
|
popover: /* @__PURE__ */ d(ne, { children: [
|
|
7255
|
-
/* @__PURE__ */ d("div", { style: o.popoverTitle, children:
|
|
7262
|
+
/* @__PURE__ */ d("div", { style: o.popoverTitle, children: y("余额详情") }),
|
|
7256
7263
|
a.map((i) => /* @__PURE__ */ d("div", { style: o.detailRow, children: [
|
|
7257
7264
|
/* @__PURE__ */ d("span", { style: o.detailLabel, children: [
|
|
7258
7265
|
/* @__PURE__ */ d("span", { style: o.detailDot(i.dot) }),
|