best-unit 2.0.12 → 2.0.13

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.js CHANGED
@@ -2065,22 +2065,22 @@ z.getAdapter = zn.getAdapter;
2065
2065
  z.HttpStatusCode = ot;
2066
2066
  z.default = z;
2067
2067
  const {
2068
- Axios: ra,
2069
- AxiosError: oa,
2070
- CanceledError: ia,
2071
- isCancel: aa,
2072
- CancelToken: sa,
2073
- VERSION: la,
2074
- all: ca,
2075
- Cancel: da,
2076
- isAxiosError: ua,
2077
- spread: fa,
2078
- toFormData: pa,
2079
- AxiosHeaders: ha,
2080
- HttpStatusCode: ma,
2081
- formToJSON: ga,
2082
- getAdapter: ba,
2083
- mergeConfig: ya
2068
+ Axios: oa,
2069
+ AxiosError: ia,
2070
+ CanceledError: aa,
2071
+ isCancel: sa,
2072
+ CancelToken: la,
2073
+ VERSION: ca,
2074
+ all: da,
2075
+ Cancel: ua,
2076
+ isAxiosError: fa,
2077
+ spread: pa,
2078
+ toFormData: ha,
2079
+ AxiosHeaders: ma,
2080
+ HttpStatusCode: ga,
2081
+ formToJSON: ba,
2082
+ getAdapter: ya,
2083
+ mergeConfig: xa
2084
2084
  } = z;
2085
2085
  function Uo(e = {}) {
2086
2086
  const t = JSON.parse(
@@ -2161,7 +2161,19 @@ function Un() {
2161
2161
  return sessionStorage.setItem("balanceData", JSON.stringify(r)), r;
2162
2162
  });
2163
2163
  }
2164
- const Wo = async () => X().get("/all-dicts", {}).then((e) => (sessionStorage.setItem("all_dicts", JSON.stringify(e.data)), e.data || {})), Ho = async (e, t) => X().post("/oss/upload", e, {
2164
+ const Wo = async () => X().get("/all-dicts", {}).then((e) => (sessionStorage.setItem("all_dicts", JSON.stringify(e.data)), e.data || {})), Ho = async () => {
2165
+ const e = JSON.parse(
2166
+ sessionStorage.getItem("fund_unit_params") || "{}"
2167
+ );
2168
+ return X().get("/currency", {
2169
+ params: {
2170
+ biz_type: e.bizType
2171
+ }
2172
+ }).then((t) => t.data.currency.map((n) => ({
2173
+ value: n.value,
2174
+ label: n.label
2175
+ })) || []);
2176
+ }, jo = async (e, t) => X().post("/oss/upload", e, {
2165
2177
  headers: {
2166
2178
  "Content-Type": "multipart/form-data"
2167
2179
  },
@@ -2223,7 +2235,7 @@ const Wo = async () => X().get("/all-dicts", {}).then((e) => (sessionStorage.set
2223
2235
  biz_type: t.bizType
2224
2236
  }
2225
2237
  }).then((n) => n.data?.detail || []);
2226
- }, jo = async (e) => {
2238
+ }, qo = async (e) => {
2227
2239
  const t = JSON.parse(
2228
2240
  sessionStorage.getItem("fund_unit_params") || "{}"
2229
2241
  );
@@ -2244,7 +2256,7 @@ const Wo = async () => X().get("/all-dicts", {}).then((e) => (sessionStorage.set
2244
2256
  icon: r.icon
2245
2257
  })) || []
2246
2258
  }));
2247
- }, qo = async (e) => {
2259
+ }, Jo = async (e) => {
2248
2260
  const t = JSON.parse(
2249
2261
  sessionStorage.getItem("fund_unit_params") || "{}"
2250
2262
  );
@@ -2261,10 +2273,10 @@ const Wo = async () => X().get("/all-dicts", {}).then((e) => (sessionStorage.set
2261
2273
  consistent: n.data.consistent
2262
2274
  }));
2263
2275
  };
2264
- async function xa() {
2276
+ async function _a() {
2265
2277
  return await Un();
2266
2278
  }
2267
- function _a(e) {
2279
+ function Sa(e) {
2268
2280
  const {
2269
2281
  merchant_id: t,
2270
2282
  biz_type: n,
@@ -2318,7 +2330,7 @@ function E(e) {
2318
2330
  }
2319
2331
  return t[e];
2320
2332
  }
2321
- function Jo() {
2333
+ function Vo() {
2322
2334
  const e = new CustomEvent("refresh-balance", {
2323
2335
  detail: {},
2324
2336
  bubbles: !0,
@@ -2342,15 +2354,15 @@ const Vt = {
2342
2354
  closeColor: "#B5B8BE"
2343
2355
  }
2344
2356
  };
2345
- function Vo() {
2357
+ function Yo() {
2346
2358
  return E("theme") === N.WHITE ? Vt.white : Vt.dark;
2347
2359
  }
2348
- class Yo {
2360
+ class Go {
2349
2361
  parseArg(t) {
2350
2362
  return typeof t == "string" ? { content: t } : t;
2351
2363
  }
2352
2364
  show(t, n) {
2353
- const { content: r, duration: o, closable: a } = this.parseArg(n), i = Vo(), s = document.createElement("div");
2365
+ const { content: r, duration: o, closable: a } = this.parseArg(n), i = Yo(), s = document.createElement("div");
2354
2366
  if (s.style.cssText = `
2355
2367
  position: fixed;
2356
2368
  top: 20px;
@@ -2442,14 +2454,14 @@ class Yo {
2442
2454
  this.show("info", t);
2443
2455
  }
2444
2456
  }
2445
- const Ie = new Yo();
2446
- function Sa() {
2457
+ const Ie = new Go();
2458
+ function La() {
2447
2459
  console.log("npm package test!!!");
2448
2460
  }
2449
- function La() {
2461
+ function wa() {
2450
2462
  console.log("Current time:", (/* @__PURE__ */ new Date()).toISOString());
2451
2463
  }
2452
- const wa = {
2464
+ const Aa = {
2453
2465
  "/api": {
2454
2466
  target: "https://fund.bestfulfill.tech/api/sdk",
2455
2467
  changeOrigin: !0,
@@ -2457,7 +2469,7 @@ const wa = {
2457
2469
  secure: !1
2458
2470
  }
2459
2471
  };
2460
- function Go() {
2472
+ function Ko() {
2461
2473
  const e = E("size");
2462
2474
  return {
2463
2475
  white: {
@@ -2482,8 +2494,8 @@ function Go() {
2482
2494
  }
2483
2495
  };
2484
2496
  }
2485
- function Ko(e) {
2486
- const t = E("theme"), n = E("themeConfig"), r = t === N.WHITE, o = Go();
2497
+ function Xo(e) {
2498
+ const t = E("theme"), n = E("themeConfig"), r = t === N.WHITE, o = Ko();
2487
2499
  let a = e;
2488
2500
  return !a && n && (a = (r ? n.white : n.dark)?.color), r ? {
2489
2501
  ...o.white,
@@ -2494,10 +2506,10 @@ function Ko(e) {
2494
2506
  };
2495
2507
  }
2496
2508
  function ht({ onClick: e, color: t, children: n }) {
2497
- const r = Ko(t);
2509
+ const r = Xo(t);
2498
2510
  return /* @__PURE__ */ d("button", { style: r, onClick: e, type: "button", children: n });
2499
2511
  }
2500
- const Xo = {
2512
+ const Zo = {
2501
2513
  "额外费用说明:您的地区、币种、支付卡类型等因素可能会导致手续费的变动,最终手续费以官方为准。": "额外费用说明:您的地区、币种、支付卡类型等因素可能会导致手续费的变动,最终手续费以官方为准。",
2502
2514
  "手续费约为:": "手续费约为:",
2503
2515
  "预计支付金额约为:": "预计支付金额约为:",
@@ -2622,10 +2634,10 @@ const Xo = {
2622
2634
  已上传: "已上传",
2623
2635
  移除: "移除"
2624
2636
  };
2625
- function Zo(e) {
2626
- return Xo[e] || e;
2637
+ function Qo(e) {
2638
+ return Zo[e] || e;
2627
2639
  }
2628
- const Qo = {
2640
+ const ei = {
2629
2641
  "额外费用说明:您的地区、币种、支付卡类型等因素可能会导致手续费的变动,最终手续费以官方为准。": "Additional note: Your region, currency, and card type may affect the processing fee; the final fee is determined by the provider.",
2630
2642
  "手续费约为:": "Fee approximately: ",
2631
2643
  "预计支付金额约为:": "Estimated payment amount is approximately: ",
@@ -2750,16 +2762,16 @@ const Qo = {
2750
2762
  五: "Fri",
2751
2763
  六: "Sat"
2752
2764
  };
2753
- function ei(e) {
2754
- return Qo[e] || e;
2765
+ function ti(e) {
2766
+ return ei[e] || e;
2755
2767
  }
2756
- function ti() {
2768
+ function ni() {
2757
2769
  return JSON.parse(
2758
2770
  sessionStorage.getItem("fund_unit_params") || "{}"
2759
2771
  ).locale || Oe.ZH;
2760
2772
  }
2761
2773
  function _(e) {
2762
- return ti() === "zh" ? Zo(e) : ei(e);
2774
+ return ni() === "zh" ? Qo(e) : ti(e);
2763
2775
  }
2764
2776
  const Yt = {
2765
2777
  white: {
@@ -2823,7 +2835,7 @@ const Yt = {
2823
2835
  boxShadow: "0 2px 8px rgba(0,0,0,0.32)"
2824
2836
  }
2825
2837
  };
2826
- function ni() {
2838
+ function ri() {
2827
2839
  const e = E("theme"), t = E("themeConfig"), n = e === N.WHITE, r = n ? Yt.white : Yt.dark;
2828
2840
  if (t) {
2829
2841
  const o = n ? t.white : t.dark;
@@ -2851,7 +2863,7 @@ const it = ({
2851
2863
  dropdownClassName: c,
2852
2864
  children: f
2853
2865
  }) => {
2854
- const [u, y] = B(!1), m = se(null), [h, x] = B(null), b = ni(), S = E("size");
2866
+ const [u, y] = B(!1), m = se(null), [h, x] = B(null), b = ri(), S = E("size");
2855
2867
  J(() => {
2856
2868
  if (!u) return;
2857
2869
  const A = (M) => {
@@ -3039,7 +3051,7 @@ const it = ({
3039
3051
  }
3040
3052
  );
3041
3053
  };
3042
- function ri() {
3054
+ function oi() {
3043
3055
  const e = E("size");
3044
3056
  return {
3045
3057
  white: {
@@ -3212,8 +3224,8 @@ function ri() {
3212
3224
  }
3213
3225
  };
3214
3226
  }
3215
- function oi() {
3216
- const e = E("theme"), t = E("themeConfig"), n = e === N.WHITE, r = ri(), o = n ? r.white : r.dark;
3227
+ function ii() {
3228
+ const e = E("theme"), t = E("themeConfig"), n = e === N.WHITE, r = oi(), o = n ? r.white : r.dark;
3217
3229
  if (t) {
3218
3230
  const a = n ? t.white : t.dark;
3219
3231
  if (a?.color)
@@ -3227,16 +3239,16 @@ function oi() {
3227
3239
  }
3228
3240
  return o;
3229
3241
  }
3230
- function ii(e) {
3242
+ function ai(e) {
3231
3243
  return e = e.replace(/[^\d.]/g, ""), e = e.replace(/\.(?=.*\.)/g, ""), e = e.replace(/^(\d+)(\.\d{0,2})?.*$/, "$1$2"), e = e.replace(/^0+(\d)/, "$1"), e.startsWith(".") && (e = "0" + e), e;
3232
3244
  }
3233
- function ai(e) {
3245
+ function si(e) {
3234
3246
  if (!e) return "";
3235
3247
  const t = parseFloat(e);
3236
3248
  return isNaN(t) ? "" : t.toFixed(2);
3237
3249
  }
3238
- const si = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
3239
- 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, y] = B(!1), m = oi();
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, y] = B(!1), m = ii();
3240
3252
  return J(() => {
3241
3253
  e.currency && e.amount && e.rechargeChannel ? Hn({
3242
3254
  channel: e.rechargeChannel,
@@ -3286,7 +3298,7 @@ const si = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
3286
3298
  value: e.amount,
3287
3299
  onInput: (h) => {
3288
3300
  let x = h.target.value;
3289
- x = ii(x);
3301
+ x = ai(x);
3290
3302
  let b = "";
3291
3303
  if (x && !x.endsWith(".")) {
3292
3304
  let S = parseFloat(x);
@@ -3303,7 +3315,7 @@ const si = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
3303
3315
  },
3304
3316
  onBlur: (h) => {
3305
3317
  let x = h.target.value;
3306
- x = ai(x), t((b) => ({
3318
+ x = si(x), t((b) => ({
3307
3319
  ...b,
3308
3320
  amount: x,
3309
3321
  amountError: ""
@@ -3370,7 +3382,7 @@ const si = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
3370
3382
  ] })
3371
3383
  ] });
3372
3384
  };
3373
- function li() {
3385
+ function ci() {
3374
3386
  const e = E("size");
3375
3387
  return {
3376
3388
  white: {
@@ -3451,11 +3463,11 @@ function li() {
3451
3463
  }
3452
3464
  };
3453
3465
  }
3454
- function ci() {
3455
- const t = E("theme") === N.WHITE, n = li();
3466
+ function di() {
3467
+ const t = E("theme") === N.WHITE, n = ci();
3456
3468
  return t ? n.white : n.dark;
3457
3469
  }
3458
- const di = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1760084964886'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7145'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M519.224889%20451.498667a9.102222%209.102222%200%200%200-14.421333%200l-128%20161.962666a9.102222%209.102222%200%200%200%207.224888%2014.734223h84.451556v277.048888c0%205.006222%204.096%209.102222%209.130667%209.102223h68.551111a9.159111%209.159111%200%200%200%209.159111-9.102223v-276.935111H640a9.102222%209.102222%200%200%200%207.224889-14.734222l-128-162.076444z'%20p-id='7146'%20fill='%231677ff'%3e%3c/path%3e%3cpath%20d='M854.186667%20345.742222C801.848889%20207.644444%20668.444444%20109.511111%20512.227556%20109.511111S222.634667%20207.559111%20170.296889%20345.6A228.693333%20228.693333%200%200%200%200%20566.670222a228.494222%20228.494222%200%200%200%20228.465778%20228.579556h45.795555a9.159111%209.159111%200%200%200%209.159111-9.159111v-68.551111a9.159111%209.159111%200%200%200-9.130666-9.159112H228.465778a140.885333%20140.885333%200%200%201-101.717334-43.064888%20141.653333%20141.653333%200%200%201-39.879111-103.537778%20140.600889%20140.600889%200%200%201%2029.923556-82.403556%20143.217778%20143.217778%200%200%201%2075.548444-49.948444l43.320889-11.320889%2015.872-41.813333a280.632889%20280.632889%200%200%201%20100.693334-129.479112%20276.707556%20276.707556%200%200%201%20160-50.545777c57.742222%200%20113.038222%2017.493333%20160%2050.517333a280.832%20280.832%200%200%201%20100.693333%20129.479111l15.758222%2041.728%2043.207111%2011.434667a142.364444%20142.364444%200%200%201%20105.244445%20137.244444c0%2037.831111-14.734222%2073.500444-41.472%20100.238222a140.572444%20140.572444%200%200%201-100.124445%2041.472h-45.795555a9.159111%209.159111%200%200%200-9.159111%209.159112v68.551111c0%205.034667%204.096%209.159111%209.130666%209.159111h45.824A228.494222%20228.494222%200%200%200%201024%20566.641778a228.608%20228.608%200%200%200-169.813333-220.899556z'%20p-id='7147'%20fill='%231677ff'%3e%3c/path%3e%3c/svg%3e", qn = ({
3470
+ const ui = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1760084964886'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7145'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M519.224889%20451.498667a9.102222%209.102222%200%200%200-14.421333%200l-128%20161.962666a9.102222%209.102222%200%200%200%207.224888%2014.734223h84.451556v277.048888c0%205.006222%204.096%209.102222%209.130667%209.102223h68.551111a9.159111%209.159111%200%200%200%209.159111-9.102223v-276.935111H640a9.102222%209.102222%200%200%200%207.224889-14.734222l-128-162.076444z'%20p-id='7146'%20fill='%231677ff'%3e%3c/path%3e%3cpath%20d='M854.186667%20345.742222C801.848889%20207.644444%20668.444444%20109.511111%20512.227556%20109.511111S222.634667%20207.559111%20170.296889%20345.6A228.693333%20228.693333%200%200%200%200%20566.670222a228.494222%20228.494222%200%200%200%20228.465778%20228.579556h45.795555a9.159111%209.159111%200%200%200%209.159111-9.159111v-68.551111a9.159111%209.159111%200%200%200-9.130666-9.159112H228.465778a140.885333%20140.885333%200%200%201-101.717334-43.064888%20141.653333%20141.653333%200%200%201-39.879111-103.537778%20140.600889%20140.600889%200%200%201%2029.923556-82.403556%20143.217778%20143.217778%200%200%201%2075.548444-49.948444l43.320889-11.320889%2015.872-41.813333a280.632889%20280.632889%200%200%201%20100.693334-129.479112%20276.707556%20276.707556%200%200%201%20160-50.545777c57.742222%200%20113.038222%2017.493333%20160%2050.517333a280.832%20280.832%200%200%201%20100.693333%20129.479111l15.758222%2041.728%2043.207111%2011.434667a142.364444%20142.364444%200%200%201%20105.244445%20137.244444c0%2037.831111-14.734222%2073.500444-41.472%20100.238222a140.572444%20140.572444%200%200%201-100.124445%2041.472h-45.795555a9.159111%209.159111%200%200%200-9.159111%209.159112v68.551111c0%205.034667%204.096%209.159111%209.130666%209.159111h45.824A228.494222%20228.494222%200%200%200%201024%20566.641778a228.608%20228.608%200%200%200-169.813333-220.899556z'%20p-id='7147'%20fill='%231677ff'%3e%3c/path%3e%3c/svg%3e", qn = ({
3459
3471
  value: e = [],
3460
3472
  onChange: t,
3461
3473
  maxCount: n = 10,
@@ -3463,7 +3475,7 @@ const di = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3463
3475
  multiple: o = !0,
3464
3476
  disabled: a = !1
3465
3477
  }) => {
3466
- const i = E("size"), s = se(null), [p, c] = B(!1), [f, u] = B(0), y = ci(), m = async (x) => {
3478
+ const i = E("size"), s = se(null), [p, c] = B(!1), [f, u] = B(0), y = di(), m = async (x) => {
3467
3479
  const b = Array.from(x.target.files).slice(
3468
3480
  0,
3469
3481
  n
@@ -3476,7 +3488,7 @@ const di = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3476
3488
  const T = new FormData();
3477
3489
  T.append("file", b[L]);
3478
3490
  try {
3479
- const A = await Ho(
3491
+ const A = await jo(
3480
3492
  T,
3481
3493
  (M) => u(M)
3482
3494
  );
@@ -3503,7 +3515,7 @@ const di = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3503
3515
  /* @__PURE__ */ d(
3504
3516
  "img",
3505
3517
  {
3506
- src: di,
3518
+ src: ui,
3507
3519
  alt: "upload",
3508
3520
  style: {
3509
3521
  width: i === l.SMALL ? 40 : 48,
@@ -3571,7 +3583,7 @@ const di = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3571
3583
  ] }, x)) })
3572
3584
  ] });
3573
3585
  };
3574
- function ui() {
3586
+ function fi() {
3575
3587
  const e = E("size");
3576
3588
  return {
3577
3589
  white: {
@@ -3802,8 +3814,8 @@ function ui() {
3802
3814
  }
3803
3815
  };
3804
3816
  }
3805
- function fi() {
3806
- const e = E("theme"), t = E("themeConfig"), n = e === N.WHITE, r = ui(), o = n ? r.white : r.dark;
3817
+ function pi() {
3818
+ const e = E("theme"), t = E("themeConfig"), n = e === N.WHITE, r = fi(), o = n ? r.white : r.dark;
3807
3819
  if (console.log(t, "themeConfig"), t) {
3808
3820
  const a = n ? t.white : t.dark;
3809
3821
  if (a?.color)
@@ -3817,10 +3829,10 @@ function fi() {
3817
3829
  }
3818
3830
  return o;
3819
3831
  }
3820
- const pi = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
3832
+ const hi = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
3821
3833
  const o = JSON.parse(sessionStorage.getItem("all_dicts") || "{}");
3822
3834
  console.log(o, "allDicts");
3823
- const a = o?.channel || [], i = fi(), [s, p] = B([]), c = async (u) => {
3835
+ const a = o?.channel || [], i = pi(), [s, p] = B([]), c = async (u) => {
3824
3836
  u.preventDefault();
3825
3837
  let y = !0;
3826
3838
  t((m) => ({
@@ -3937,7 +3949,7 @@ const pi = ({ formState: e, setFormState: t, onClose: n, loading: r }) => {
3937
3949
  ] })
3938
3950
  ] });
3939
3951
  };
3940
- function hi() {
3952
+ function mi() {
3941
3953
  const e = E("size");
3942
3954
  return {
3943
3955
  white: {
@@ -4030,12 +4042,12 @@ function hi() {
4030
4042
  }
4031
4043
  };
4032
4044
  }
4033
- function mi() {
4034
- const t = E("theme") === N.WHITE, n = hi();
4045
+ function gi() {
4046
+ const t = E("theme") === N.WHITE, n = mi();
4035
4047
  return t ? n.white : n.dark;
4036
4048
  }
4037
4049
  const re = E("size");
4038
- function gi(e) {
4050
+ function bi(e) {
4039
4051
  const t = `modal-scrollbar-${e.scrollbarClass}`;
4040
4052
  if (document.getElementById(t))
4041
4053
  return t;
@@ -4070,9 +4082,9 @@ function Jn({
4070
4082
  showClose: i = !0,
4071
4083
  maskClosable: s = !0
4072
4084
  }) {
4073
- const [p, c] = B(!1), f = mi();
4085
+ const [p, c] = B(!1), f = gi();
4074
4086
  J(() => {
4075
- gi(f);
4087
+ bi(f);
4076
4088
  }, [f]);
4077
4089
  const u = (m) => {
4078
4090
  m.target === m.currentTarget ? c(!0) : c(!1);
@@ -4160,7 +4172,7 @@ function Jn({
4160
4172
  }
4161
4173
  ) : null;
4162
4174
  }
4163
- function bi() {
4175
+ function yi() {
4164
4176
  const e = E("size");
4165
4177
  return {
4166
4178
  white: {
@@ -4197,8 +4209,8 @@ function bi() {
4197
4209
  }
4198
4210
  };
4199
4211
  }
4200
- function yi() {
4201
- const e = E("theme"), t = E("themeConfig"), n = e === N.WHITE, r = bi(), o = n ? r.white : r.dark;
4212
+ function xi() {
4213
+ const e = E("theme"), t = E("themeConfig"), n = e === N.WHITE, r = yi(), o = n ? r.white : r.dark;
4202
4214
  if (t) {
4203
4215
  const a = n ? t.white : t.dark;
4204
4216
  if (a?.color)
@@ -4212,8 +4224,8 @@ function yi() {
4212
4224
  }
4213
4225
  return o;
4214
4226
  }
4215
- const xi = E("size");
4216
- function _i({ visible: e, onClose: t, onSubmit: n }) {
4227
+ const _i = E("size");
4228
+ function Si({ visible: e, onClose: t, onSubmit: n }) {
4217
4229
  const [r, o] = B({
4218
4230
  amount: "",
4219
4231
  rechargeChannel: "",
@@ -4231,7 +4243,7 @@ function _i({ visible: e, onClose: t, onSubmit: n }) {
4231
4243
  transactionIdError: "",
4232
4244
  filesError: "",
4233
4245
  loading: !1
4234
- }), [s, p] = B("online"), c = yi();
4246
+ }), [s, p] = B("online"), c = xi();
4235
4247
  J(() => {
4236
4248
  e || (p("online"), o({
4237
4249
  amount: "",
@@ -4283,7 +4295,7 @@ function _i({ visible: e, onClose: t, onSubmit: n }) {
4283
4295
  {
4284
4296
  style: {
4285
4297
  display: "flex",
4286
- marginBottom: xi === l.SMALL ? 16 : 28
4298
+ marginBottom: _i === l.SMALL ? 16 : 28
4287
4299
  },
4288
4300
  children: [
4289
4301
  /* @__PURE__ */ d(
@@ -4308,7 +4320,7 @@ function _i({ visible: e, onClose: t, onSubmit: n }) {
4308
4320
  }
4309
4321
  ),
4310
4322
  /* @__PURE__ */ d("div", { style: { display: s === "online" ? "block" : "none" }, children: /* @__PURE__ */ d("form", { onSubmit: f, children: /* @__PURE__ */ d(
4311
- si,
4323
+ li,
4312
4324
  {
4313
4325
  formState: r,
4314
4326
  setFormState: o,
@@ -4317,7 +4329,7 @@ function _i({ visible: e, onClose: t, onSubmit: n }) {
4317
4329
  }
4318
4330
  ) }) }),
4319
4331
  /* @__PURE__ */ d("div", { style: { display: s === "offline" ? "block" : "none" }, children: /* @__PURE__ */ d(
4320
- pi,
4332
+ hi,
4321
4333
  {
4322
4334
  formState: a,
4323
4335
  setFormState: i,
@@ -4336,8 +4348,8 @@ function mt() {
4336
4348
  return e;
4337
4349
  }).apply(this, arguments);
4338
4350
  }
4339
- var Si = ["context", "children"];
4340
- function Li(e) {
4351
+ var Li = ["context", "children"];
4352
+ function wi(e) {
4341
4353
  this.getChildContext = function() {
4342
4354
  return e.context;
4343
4355
  };
@@ -4346,12 +4358,12 @@ function Li(e) {
4346
4358
  var a, i, s = {}, p = Object.keys(r);
4347
4359
  for (i = 0; i < p.length; i++) o.indexOf(a = p[i]) >= 0 || (s[a] = r[a]);
4348
4360
  return s;
4349
- }(e, Si);
4361
+ }(e, Li);
4350
4362
  return un(t, n);
4351
4363
  }
4352
- function wi() {
4364
+ function Ai() {
4353
4365
  var e = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
4354
- this.dispatchEvent(e), this._vdom = ie(Li, mt({}, this._props, { context: e.detail.context }), function t(n, r) {
4366
+ this.dispatchEvent(e), this._vdom = ie(wi, mt({}, this._props, { context: e.detail.context }), function t(n, r) {
4355
4367
  if (n.nodeType === 3) return n.data;
4356
4368
  if (n.nodeType !== 1) return null;
4357
4369
  var o = [], a = {}, i = 0, s = n.attributes, p = n.childNodes;
@@ -4369,13 +4381,13 @@ function Vn(e) {
4369
4381
  return n ? n.toUpperCase() : "";
4370
4382
  });
4371
4383
  }
4372
- function Ai(e, t, n) {
4384
+ function ki(e, t, n) {
4373
4385
  if (this._vdom) {
4374
4386
  var r = {};
4375
4387
  r[e] = n = n ?? void 0, r[Vn(e)] = n, this._vdom = un(this._vdom, r), ze(this._vdom, this._root);
4376
4388
  }
4377
4389
  }
4378
- function ki() {
4390
+ function Ei() {
4379
4391
  ze(this._vdom = null, this._root);
4380
4392
  }
4381
4393
  function Gt(e, t) {
@@ -4391,7 +4403,7 @@ function qe(e, t, n, r) {
4391
4403
  var a = Reflect.construct(HTMLElement, [], o);
4392
4404
  return a._vdomComponent = e, a._root = r && r.shadow ? a.attachShadow({ mode: r.mode || "open" }) : a, a;
4393
4405
  }
4394
- return (o.prototype = Object.create(HTMLElement.prototype)).constructor = o, o.prototype.connectedCallback = wi, o.prototype.attributeChangedCallback = Ai, o.prototype.disconnectedCallback = ki, n = n || e.observedAttributes || Object.keys(e.propTypes || {}), o.observedAttributes = n, n.forEach(function(a) {
4406
+ return (o.prototype = Object.create(HTMLElement.prototype)).constructor = o, o.prototype.connectedCallback = Ai, o.prototype.attributeChangedCallback = ki, o.prototype.disconnectedCallback = Ei, n = n || e.observedAttributes || Object.keys(e.propTypes || {}), o.observedAttributes = n, n.forEach(function(a) {
4395
4407
  Object.defineProperty(o.prototype, a, { get: function() {
4396
4408
  return this._vdom.props[a];
4397
4409
  }, set: function(i) {
@@ -4401,7 +4413,7 @@ function qe(e, t, n, r) {
4401
4413
  } });
4402
4414
  }), customElements.define(t || e.tagName || e.displayName || e.name, o);
4403
4415
  }
4404
- function Ei() {
4416
+ function Ci() {
4405
4417
  const [e, t] = B(!1), n = async (r) => {
4406
4418
  const o = await Wn({
4407
4419
  amount: r.amount,
@@ -4413,7 +4425,7 @@ function Ei() {
4413
4425
  return /* @__PURE__ */ d("div", { children: [
4414
4426
  /* @__PURE__ */ d(ht, { onClick: () => t(!0), children: _("充值/转账") }),
4415
4427
  /* @__PURE__ */ d(
4416
- _i,
4428
+ Si,
4417
4429
  {
4418
4430
  visible: e,
4419
4431
  onClose: () => t(!1),
@@ -4422,8 +4434,8 @@ function Ei() {
4422
4434
  )
4423
4435
  ] });
4424
4436
  }
4425
- qe(Ei, "best-recharge", ["theme"], { shadow: !1 });
4426
- function Ci() {
4437
+ qe(Ci, "best-recharge", ["theme"], { shadow: !1 });
4438
+ function vi() {
4427
4439
  const e = E("size"), t = {
4428
4440
  wrapper: {
4429
4441
  display: "grid",
@@ -4692,8 +4704,8 @@ function Ci() {
4692
4704
  }
4693
4705
  };
4694
4706
  }
4695
- function vi() {
4696
- const e = E("theme"), t = E("themeConfig"), n = e === N.WHITE, r = Ci(), o = n ? r.white : r.dark;
4707
+ function Mi() {
4708
+ const e = E("theme"), t = E("themeConfig"), n = e === N.WHITE, r = vi(), o = n ? r.white : r.dark;
4697
4709
  if (t) {
4698
4710
  const a = n ? t.white : t.dark;
4699
4711
  if (a?.color)
@@ -4713,7 +4725,7 @@ function vi() {
4713
4725
  }
4714
4726
  return o;
4715
4727
  }
4716
- function Mi() {
4728
+ function Ti() {
4717
4729
  const e = E("size"), t = {
4718
4730
  left: {
4719
4731
  background: "#fff",
@@ -4926,8 +4938,8 @@ function Mi() {
4926
4938
  }
4927
4939
  };
4928
4940
  }
4929
- function Ti() {
4930
- const e = E("theme"), t = E("themeConfig"), n = e === N.WHITE, r = Mi(), o = n ? r.white : r.dark;
4941
+ function Bi() {
4942
+ const e = E("theme"), t = E("themeConfig"), n = e === N.WHITE, r = Ti(), o = n ? r.white : r.dark;
4931
4943
  if (t) {
4932
4944
  const a = n ? t.white : t.dark;
4933
4945
  if (a?.color)
@@ -4951,7 +4963,7 @@ function Ti() {
4951
4963
  }
4952
4964
  return o;
4953
4965
  }
4954
- function Bi({
4966
+ function Ri({
4955
4967
  onChannelChange: e,
4956
4968
  onAmountChange: t,
4957
4969
  onCurrencyChange: n,
@@ -4960,7 +4972,7 @@ function Bi({
4960
4972
  initialPaymentType: a = "online",
4961
4973
  amountError: i = ""
4962
4974
  }) {
4963
- const s = Ti(), c = JSON.parse(sessionStorage.getItem("all_dicts") || "{}")?.currency || [], [f, u] = B([]), [y, m] = B([]), [h, x] = B({
4975
+ const s = Bi(), [p, c] = B([]), [f, u] = B([]), [y, m] = B([]), [h, x] = B({
4964
4976
  currency: o,
4965
4977
  amount: r,
4966
4978
  onlineChannel: "",
@@ -4974,14 +4986,18 @@ function Bi({
4974
4986
  return;
4975
4987
  }
4976
4988
  L.current && clearTimeout(L.current), L.current = window.setTimeout(() => {
4977
- qo({
4989
+ Jo({
4978
4990
  currency: $,
4979
4991
  amount: U
4980
4992
  }).then((V) => S(V)).catch(() => S(null));
4981
4993
  }, 300);
4982
4994
  };
4983
4995
  J(() => {
4984
- jo({ currency: h.currency }).then((w) => {
4996
+ Ho().then((w) => {
4997
+ c(w || []);
4998
+ });
4999
+ }, []), J(() => {
5000
+ qo({ currency: h.currency }).then((w) => {
4985
5001
  const F = w.onlineChannel || [], U = w.offlineChannel || [];
4986
5002
  u(F), m(U);
4987
5003
  const $ = F.length > 0, V = U?.[0]?.value || "", Se = F?.[0]?.value || "", de = $ ? a : "bank", k = de === "online" ? Se : V;
@@ -5014,7 +5030,7 @@ function Bi({
5014
5030
  _("选择支付方式")
5015
5031
  ] }),
5016
5032
  /* @__PURE__ */ d("div", { style: s.fieldLabel, children: _("支付币种") }),
5017
- /* @__PURE__ */ d("div", { style: s.currencyRow, children: (c || []).slice(0, 4).map((w) => /* @__PURE__ */ d(
5033
+ /* @__PURE__ */ d("div", { style: s.currencyRow, children: (p || []).slice(0, 4).map((w) => /* @__PURE__ */ d(
5018
5034
  "button",
5019
5035
  {
5020
5036
  type: "button",
@@ -5108,7 +5124,7 @@ function Bi({
5108
5124
  )) })
5109
5125
  ] });
5110
5126
  }
5111
- function Ri() {
5127
+ function Fi() {
5112
5128
  const e = E("size"), t = {
5113
5129
  right: { background: "#fff", borderRadius: 8, padding: 16 },
5114
5130
  blockTitle: {
@@ -5273,8 +5289,8 @@ function Ri() {
5273
5289
  }
5274
5290
  };
5275
5291
  }
5276
- function Fi() {
5277
- const e = E("theme"), t = E("themeConfig"), n = e === N.WHITE, r = Ri(), o = n ? r.white : r.dark;
5292
+ function Ii() {
5293
+ const e = E("theme"), t = E("themeConfig"), n = e === N.WHITE, r = Fi(), o = n ? r.white : r.dark;
5278
5294
  if (t) {
5279
5295
  const a = n ? t.white : t.dark;
5280
5296
  if (a?.color)
@@ -5286,7 +5302,7 @@ function Fi() {
5286
5302
  }
5287
5303
  return o;
5288
5304
  }
5289
- function Ii({
5305
+ function Di({
5290
5306
  onSubmit: e,
5291
5307
  amount: t,
5292
5308
  currency: n,
@@ -5295,7 +5311,7 @@ function Ii({
5295
5311
  error: a = "",
5296
5312
  onAmountError: i
5297
5313
  }) {
5298
- const s = Fi(), p = s.right.background === "#181A20", [c, f] = B({
5314
+ const s = Ii(), p = s.right.background === "#181A20", [c, f] = B({
5299
5315
  amount: t,
5300
5316
  currency: n,
5301
5317
  channel: r,
@@ -5392,7 +5408,7 @@ function Ii({
5392
5408
  c.error && /* @__PURE__ */ d("div", { style: s.error, children: c.error })
5393
5409
  ] });
5394
5410
  }
5395
- function Di() {
5411
+ function zi() {
5396
5412
  const e = E("size"), t = {
5397
5413
  container: {
5398
5414
  background: "#fff",
@@ -5657,8 +5673,8 @@ function Di() {
5657
5673
  }
5658
5674
  };
5659
5675
  }
5660
- function zi() {
5661
- const e = E("theme"), t = E("themeConfig"), n = e === N.WHITE, r = Di(), o = n ? r.white : r.dark;
5676
+ function Oi() {
5677
+ const e = E("theme"), t = E("themeConfig"), n = e === N.WHITE, r = zi(), o = n ? r.white : r.dark;
5662
5678
  if (t) {
5663
5679
  const a = n ? t.white : t.dark;
5664
5680
  if (a?.color)
@@ -5670,8 +5686,8 @@ function zi() {
5670
5686
  }
5671
5687
  return o;
5672
5688
  }
5673
- const Oi = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1760084950168'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='6759'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M932.579556%20137.272889h-192V64.142222a9.159111%209.159111%200%200%200-9.130667-9.159111h-64a9.159111%209.159111%200%200%200-9.159111%209.159111v73.130667H365.738667V64.142222a9.159111%209.159111%200%200%200-9.159111-9.159111h-64a9.159111%209.159111%200%200%200-9.130667%209.159111v73.130667h-192c-20.224%200-36.579556%2016.355556-36.579556%2036.579555v758.869334c0%2020.195556%2016.355556%2036.551111%2036.579556%2036.551111h841.130667c20.252444%200%2036.579556-16.327111%2036.579555-36.551111V173.852444c0-20.224-16.355556-36.579556-36.579555-36.579555zM886.897778%20887.011556H137.159111V452.693333H886.897778v434.261334z%20m-749.710222-512V219.534222h146.289777v54.869334c0%205.034667%204.124444%209.130667%209.130667%209.130666h64a9.159111%209.159111%200%200%200%209.159111-9.130666V219.562667h292.551111v54.869333c0%205.034667%204.124444%209.130667%209.159111%209.130667h64a9.159111%209.159111%200%200%200%209.130667-9.130667V219.562667h146.289778v155.448889H137.159111z'%20p-id='6760'%3e%3c/path%3e%3c/svg%3e";
5674
- function Pi() {
5689
+ const Pi = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1760084950168'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='6759'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M932.579556%20137.272889h-192V64.142222a9.159111%209.159111%200%200%200-9.130667-9.159111h-64a9.159111%209.159111%200%200%200-9.159111%209.159111v73.130667H365.738667V64.142222a9.159111%209.159111%200%200%200-9.159111-9.159111h-64a9.159111%209.159111%200%200%200-9.130667%209.159111v73.130667h-192c-20.224%200-36.579556%2016.355556-36.579556%2036.579555v758.869334c0%2020.195556%2016.355556%2036.551111%2036.579556%2036.551111h841.130667c20.252444%200%2036.579556-16.327111%2036.579555-36.551111V173.852444c0-20.224-16.355556-36.579556-36.579555-36.579555zM886.897778%20887.011556H137.159111V452.693333H886.897778v434.261334z%20m-749.710222-512V219.534222h146.289777v54.869334c0%205.034667%204.124444%209.130667%209.130667%209.130666h64a9.159111%209.159111%200%200%200%209.159111-9.130666V219.562667h292.551111v54.869333c0%205.034667%204.124444%209.130667%209.159111%209.130667h64a9.159111%209.159111%200%200%200%209.130667-9.130667V219.562667h146.289778v155.448889H137.159111z'%20p-id='6760'%3e%3c/path%3e%3c/svg%3e";
5690
+ function Ni() {
5675
5691
  const e = E("theme"), t = E("themeConfig"), n = {
5676
5692
  container: {
5677
5693
  position: "relative",
@@ -5991,10 +6007,10 @@ function Pi() {
5991
6007
  }, o = r[e] || r.white, a = t?.[e]?.color;
5992
6008
  return a && (o.dayToday.color = a, o.daySelected.backgroundColor = a, o.yearSelected.backgroundColor = a, e === "dark" && (o.daySelected.color = "#111", o.yearSelected.color = "#111")), o;
5993
6009
  }
5994
- function Ni() {
5995
- return Pi();
6010
+ function Ui() {
6011
+ return Ni();
5996
6012
  }
5997
- function Ui({
6013
+ function $i({
5998
6014
  value: e = "",
5999
6015
  placeholder: t = _("请选择日期"),
6000
6016
  disabled: n = !1,
@@ -6005,7 +6021,7 @@ function Ui({
6005
6021
  className: s = "",
6006
6022
  style: p = {}
6007
6023
  }) {
6008
- const c = Ni(), [f, u] = B(!1), [y, m] = B(e), [h, x] = B(/* @__PURE__ */ new Date()), [b, S] = B(!1), L = se(null), T = (k) => {
6024
+ const c = Ui(), [f, u] = B(!1), [y, m] = B(e), [h, x] = B(/* @__PURE__ */ new Date()), [b, S] = B(!1), L = se(null), T = (k) => {
6009
6025
  if (!k) return "";
6010
6026
  const v = new Date(k);
6011
6027
  return `${v.getFullYear()}-${String(v.getMonth() + 1).padStart(
@@ -6117,7 +6133,7 @@ function Ui({
6117
6133
  onBlur: i,
6118
6134
  children: [
6119
6135
  /* @__PURE__ */ d("span", { style: c.inputText, children: y ? T(y) : t }),
6120
- /* @__PURE__ */ d("img", { src: Oi, alt: "calendar", style: c.calendarIcon })
6136
+ /* @__PURE__ */ d("img", { src: Pi, alt: "calendar", style: c.calendarIcon })
6121
6137
  ]
6122
6138
  }
6123
6139
  ),
@@ -6207,7 +6223,7 @@ function Ui({
6207
6223
  }
6208
6224
  );
6209
6225
  }
6210
- function $i({
6226
+ function Wi({
6211
6227
  onBack: e,
6212
6228
  onCancel: t,
6213
6229
  currency: n = "USD",
@@ -6215,7 +6231,7 @@ function $i({
6215
6231
  channel: o = "",
6216
6232
  onAmountError: a
6217
6233
  }) {
6218
- const i = zi(), s = i.container.background === "#181A20", p = /* @__PURE__ */ new Date(), c = `${p.getFullYear()}-${String(
6234
+ const i = Oi(), s = i.container.background === "#181A20", p = /* @__PURE__ */ new Date(), c = `${p.getFullYear()}-${String(
6219
6235
  p.getMonth() + 1
6220
6236
  ).padStart(2, "0")}-${String(p.getDate()).padStart(2, "0")}`, [f, u] = B({
6221
6237
  urls: [],
@@ -6281,7 +6297,7 @@ function $i({
6281
6297
  _("转账时间")
6282
6298
  ] }),
6283
6299
  /* @__PURE__ */ d(
6284
- Ui,
6300
+ $i,
6285
6301
  {
6286
6302
  value: f.transferTime,
6287
6303
  placeholder: _("请选择转账时间"),
@@ -6375,7 +6391,7 @@ function $i({
6375
6391
  ] })
6376
6392
  ] });
6377
6393
  }
6378
- function Wi() {
6394
+ function Hi() {
6379
6395
  const e = E("size"), t = {
6380
6396
  container: {
6381
6397
  background: "#fff",
@@ -6635,8 +6651,8 @@ function Wi() {
6635
6651
  }
6636
6652
  };
6637
6653
  }
6638
- function Hi() {
6639
- const e = E("theme"), t = E("themeConfig"), n = e === N.WHITE, r = Wi(), o = n ? r.white : r.dark;
6654
+ function ji() {
6655
+ const e = E("theme"), t = E("themeConfig"), n = e === N.WHITE, r = Hi(), o = n ? r.white : r.dark;
6640
6656
  if (t) {
6641
6657
  const a = n ? t.white : t.dark;
6642
6658
  if (a?.color)
@@ -6650,8 +6666,8 @@ function Hi() {
6650
6666
  }
6651
6667
  return o;
6652
6668
  }
6653
- function ji({ onConfirm: e, channelCode: t }) {
6654
- const n = Hi(), [r, o] = B([]);
6669
+ function qi({ onConfirm: e, channelCode: t }) {
6670
+ const n = ji(), [r, o] = B([]);
6655
6671
  return J(() => {
6656
6672
  if (!t) return;
6657
6673
  let a = !0;
@@ -6716,12 +6732,12 @@ function ji({ onConfirm: e, channelCode: t }) {
6716
6732
  ] })
6717
6733
  ] });
6718
6734
  }
6719
- function qi({
6735
+ function Ji({
6720
6736
  visible: e,
6721
6737
  onClose: t,
6722
6738
  onSubmit: n
6723
6739
  }) {
6724
- const r = vi(), [o, a] = B(!1), [i, s] = B({
6740
+ const r = Mi(), [o, a] = B(!1), [i, s] = B({
6725
6741
  currency: "USD",
6726
6742
  amount: "",
6727
6743
  channel: "",
@@ -6799,7 +6815,7 @@ function qi({
6799
6815
  },
6800
6816
  children: [
6801
6817
  /* @__PURE__ */ d(
6802
- Bi,
6818
+ Ri,
6803
6819
  {
6804
6820
  onChannelChange: p,
6805
6821
  onAmountChange: c,
@@ -6811,7 +6827,7 @@ function qi({
6811
6827
  }
6812
6828
  ),
6813
6829
  i.paymentType === "online" ? /* @__PURE__ */ d(
6814
- Ii,
6830
+ Di,
6815
6831
  {
6816
6832
  onSubmit: y,
6817
6833
  amount: i.amount,
@@ -6822,7 +6838,7 @@ function qi({
6822
6838
  onAmountError: f
6823
6839
  }
6824
6840
  ) : i.showOfflineUpload ? /* @__PURE__ */ d(
6825
- $i,
6841
+ Wi,
6826
6842
  {
6827
6843
  onBack: h,
6828
6844
  onCancel: t,
@@ -6832,7 +6848,7 @@ function qi({
6832
6848
  onAmountError: f
6833
6849
  }
6834
6850
  ) : /* @__PURE__ */ d(
6835
- ji,
6851
+ qi,
6836
6852
  {
6837
6853
  onConfirm: m,
6838
6854
  channelCode: i.channel
@@ -6844,7 +6860,7 @@ function qi({
6844
6860
  }
6845
6861
  );
6846
6862
  }
6847
- function Ji() {
6863
+ function Vi() {
6848
6864
  const [e, t] = B(!1), n = async (r) => {
6849
6865
  const o = await Wn({
6850
6866
  amount: r.amount,
@@ -6856,7 +6872,7 @@ function Ji() {
6856
6872
  return /* @__PURE__ */ d("div", { children: [
6857
6873
  /* @__PURE__ */ d(ht, { onClick: () => t(!0), children: _("充值/转账") }),
6858
6874
  /* @__PURE__ */ d(
6859
- qi,
6875
+ Ji,
6860
6876
  {
6861
6877
  visible: e,
6862
6878
  onClose: () => t(!1),
@@ -6865,7 +6881,7 @@ function Ji() {
6865
6881
  )
6866
6882
  ] });
6867
6883
  }
6868
- qe(Ji, "best-payment", ["theme"], { shadow: !1 });
6884
+ qe(Vi, "best-payment", ["theme"], { shadow: !1 });
6869
6885
  const Kt = {
6870
6886
  white: {
6871
6887
  popover: {
@@ -6896,10 +6912,10 @@ const Kt = {
6896
6912
  }
6897
6913
  }
6898
6914
  };
6899
- function Vi() {
6915
+ function Yi() {
6900
6916
  return E("theme") === N.WHITE ? Kt.white : Kt.dark;
6901
6917
  }
6902
- const Yi = ({
6918
+ const Gi = ({
6903
6919
  popover: e,
6904
6920
  children: t,
6905
6921
  popoverWidth: n,
@@ -6908,7 +6924,7 @@ const Yi = ({
6908
6924
  offsetX: a,
6909
6925
  popoverPosition: i = "top"
6910
6926
  }) => {
6911
- 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), [y, m] = B(!1), [h, x] = B(i), b = se(null), S = se(null), L = Vi(), T = () => {
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), [y, m] = B(!1), [h, x] = B(i), b = se(null), S = se(null), L = Yi(), T = () => {
6912
6928
  if (S.current && (clearTimeout(S.current), S.current = null), i === "top" || i === "bottom")
6913
6929
  if (b.current) {
6914
6930
  const P = b.current.getBoundingClientRect();
@@ -7020,7 +7036,7 @@ const Yi = ({
7020
7036
  }
7021
7037
  );
7022
7038
  };
7023
- function Gi() {
7039
+ function Ki() {
7024
7040
  const e = E("size");
7025
7041
  return {
7026
7042
  white: {
@@ -7121,8 +7137,8 @@ function Gi() {
7121
7137
  }
7122
7138
  };
7123
7139
  }
7124
- function Ki() {
7125
- const t = E("theme") === N.WHITE, n = Gi();
7140
+ function Xi() {
7141
+ const t = E("theme") === N.WHITE, n = Ki();
7126
7142
  return t ? n.white : n.dark;
7127
7143
  }
7128
7144
  function Xt(e) {
@@ -7131,7 +7147,7 @@ function Xt(e) {
7131
7147
  maximumFractionDigits: 2
7132
7148
  });
7133
7149
  }
7134
- function Xi(e) {
7150
+ function Zi(e) {
7135
7151
  const [t, n] = B({
7136
7152
  currBalance: 0,
7137
7153
  currency: "USD",
@@ -7198,7 +7214,7 @@ function Xi(e) {
7198
7214
  );
7199
7215
  };
7200
7216
  }, []);
7201
- const o = Ki(), a = [
7217
+ const o = Xi(), a = [
7202
7218
  {
7203
7219
  label: _("真实金额"),
7204
7220
  value: t.details[0]?.value || 0,
@@ -7233,7 +7249,7 @@ function Xi(e) {
7233
7249
  }
7234
7250
  ];
7235
7251
  return /* @__PURE__ */ d(
7236
- Yi,
7252
+ Gi,
7237
7253
  {
7238
7254
  popover: /* @__PURE__ */ d(ne, { children: [
7239
7255
  /* @__PURE__ */ d("div", { style: o.popoverTitle, children: _("余额详情") }),
@@ -7253,7 +7269,7 @@ function Xi(e) {
7253
7269
  }
7254
7270
  );
7255
7271
  }
7256
- qe(Xi, "best-statistical-balance");
7272
+ qe(Zi, "best-statistical-balance");
7257
7273
  const we = {
7258
7274
  white: {
7259
7275
  background: "#1890ff",
@@ -7274,7 +7290,7 @@ const we = {
7274
7290
  transition: "all 0.2s ease"
7275
7291
  }
7276
7292
  };
7277
- function Zi(e) {
7293
+ function Qi(e) {
7278
7294
  return E("theme") === N.WHITE ? {
7279
7295
  ...we.white,
7280
7296
  background: e || we.white.background
@@ -7283,7 +7299,7 @@ function Zi(e) {
7283
7299
  background: e || we.dark.background
7284
7300
  };
7285
7301
  }
7286
- function Qi(e) {
7302
+ function ea(e) {
7287
7303
  switch (e) {
7288
7304
  case "small":
7289
7305
  return {
@@ -7302,12 +7318,12 @@ function Qi(e) {
7302
7318
  };
7303
7319
  }
7304
7320
  }
7305
- function ea({
7321
+ function ta({
7306
7322
  color: e,
7307
7323
  size: t = "medium",
7308
7324
  children: n
7309
7325
  }) {
7310
- const [r, o] = B(!1), a = Zi(e), i = Qi(t), s = {
7326
+ const [r, o] = B(!1), a = Qi(e), i = ea(t), s = {
7311
7327
  ...a,
7312
7328
  ...i,
7313
7329
  display: "flex",
@@ -7337,7 +7353,7 @@ function ea({
7337
7353
  /* @__PURE__ */ d(ht, { onClick: async () => {
7338
7354
  o(!0);
7339
7355
  try {
7340
- Jo(), await new Promise((f) => setTimeout(f, 300));
7356
+ Vo(), await new Promise((f) => setTimeout(f, 300));
7341
7357
  } finally {
7342
7358
  o(!1);
7343
7359
  }
@@ -7370,19 +7386,19 @@ function ea({
7370
7386
  ] }) })
7371
7387
  ] });
7372
7388
  }
7373
- qe(ea, "best-refresh-button", [], { shadow: !0 });
7374
- const Aa = [
7389
+ qe(ta, "best-refresh-button", [], { shadow: !0 });
7390
+ const ka = [
7375
7391
  "best-recharge",
7376
7392
  "best-payment",
7377
7393
  "best-statistical-balance",
7378
7394
  "best-refresh-button"
7379
7395
  ];
7380
7396
  export {
7381
- Aa as components,
7382
- xa as getBalanceData,
7383
- _a as initFundUnit,
7384
- Sa as npmTest,
7385
- La as printCurrentTime,
7386
- Jo as refreshBalance,
7387
- wa as viteProxy
7397
+ ka as components,
7398
+ _a as getBalanceData,
7399
+ Sa as initFundUnit,
7400
+ La as npmTest,
7401
+ wa as printCurrentTime,
7402
+ Vo as refreshBalance,
7403
+ Aa as viteProxy
7388
7404
  };