@matchain/matchid-sdk-react 0.1.56-alpha.3 → 0.1.56-alpha.5

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.
Files changed (61) hide show
  1. package/dist/api.d.mts +2 -2
  2. package/dist/api.d.ts +2 -2
  3. package/dist/api.js +59 -47
  4. package/dist/api.js.map +1 -1
  5. package/dist/api.mjs +3 -3
  6. package/dist/{chunk-M5LCJX2T.mjs → chunk-2SJCPZJQ.mjs} +2 -2
  7. package/dist/{chunk-FKXS2XRG.mjs → chunk-GD7URBBZ.mjs} +54 -1
  8. package/dist/chunk-GD7URBBZ.mjs.map +1 -0
  9. package/dist/{chunk-KDVKIXOS.mjs → chunk-YR46VC65.mjs} +393 -354
  10. package/dist/chunk-YR46VC65.mjs.map +1 -0
  11. package/dist/components.d.mts +3 -3
  12. package/dist/components.d.ts +3 -3
  13. package/dist/components.js +416 -360
  14. package/dist/components.js.map +1 -1
  15. package/dist/components.mjs +2 -2
  16. package/dist/hooks.d.mts +2 -2
  17. package/dist/hooks.d.ts +2 -2
  18. package/dist/hooks.js +234 -178
  19. package/dist/hooks.js.map +1 -1
  20. package/dist/hooks.mjs +2 -2
  21. package/dist/icon.d.mts +2 -2
  22. package/dist/icon.d.ts +2 -2
  23. package/dist/icon.js +53 -0
  24. package/dist/icon.js.map +1 -1
  25. package/dist/icon.mjs +7 -1
  26. package/dist/{index-CsUEaGtM.d.ts → index-BcuSCgol.d.ts} +2 -2
  27. package/dist/{index-CPTgrfjn.d.mts → index-BlMLqmS2.d.mts} +1 -1
  28. package/dist/{index-B7ZEyP1j.d.ts → index-C1Nyy5zx.d.ts} +1 -1
  29. package/dist/{index-FKxw4Vaa.d.mts → index-CBcBTQyU.d.mts} +1 -1
  30. package/dist/{index-BXbfmVoU.d.mts → index-CD0dACxf.d.mts} +2 -2
  31. package/dist/{index-TjbO7d74.d.mts → index-CER00guz.d.mts} +1 -1
  32. package/dist/{index-BtjgRcNJ.d.ts → index-CjekOYJl.d.mts} +2 -2
  33. package/dist/{index-C82WIWvx.d.ts → index-DN-jrh8-.d.ts} +13 -3
  34. package/dist/{index-BKSGbw7b.d.mts → index-DdN22cwf.d.ts} +2 -2
  35. package/dist/{index-YPRyEYt6.d.mts → index-DkIIQLbh.d.ts} +10 -4
  36. package/dist/{index-4dZbgWG2.d.ts → index-DlaCsN95.d.ts} +1 -1
  37. package/dist/{index-DK7l3lsH.d.ts → index-lh6qBAf_.d.mts} +10 -4
  38. package/dist/{index-CwHXzvvB.d.ts → index-o0WW1c5O.d.ts} +1 -1
  39. package/dist/{index-D7E317WV.d.mts → index-xThRnNN3.d.mts} +13 -3
  40. package/dist/index.css +35 -1
  41. package/dist/index.d.mts +8 -8
  42. package/dist/index.d.ts +8 -8
  43. package/dist/index.js +497 -412
  44. package/dist/index.js.map +1 -1
  45. package/dist/index.mjs +3 -3
  46. package/dist/{types-DEsY_CPH.d.mts → types-CheN9vHJ.d.mts} +4 -0
  47. package/dist/{types-DEsY_CPH.d.ts → types-CheN9vHJ.d.ts} +4 -0
  48. package/dist/types.d.mts +1 -1
  49. package/dist/types.d.ts +1 -1
  50. package/dist/ui.d.mts +3 -3
  51. package/dist/ui.d.ts +3 -3
  52. package/dist/ui.js +192 -105
  53. package/dist/ui.js.map +1 -1
  54. package/dist/ui.mjs +4 -2
  55. package/example/src/pages/UI/components/Checkbox.tsx +10 -0
  56. package/example/src/pages/UI/components/Input.tsx +12 -0
  57. package/example/src/pages/UI/index.tsx +4 -0
  58. package/package.json +1 -1
  59. package/dist/chunk-FKXS2XRG.mjs.map +0 -1
  60. package/dist/chunk-KDVKIXOS.mjs.map +0 -1
  61. /package/dist/{chunk-M5LCJX2T.mjs.map → chunk-2SJCPZJQ.mjs.map} +0 -0
package/dist/index.js CHANGED
@@ -707,6 +707,8 @@ __export(icon_exports, {
707
707
  BitgetIcon: () => BitgetIcon,
708
708
  CheckIcon: () => CheckIcon,
709
709
  CheckRoundIcon: () => CheckRoundIcon,
710
+ CheckboxCheckedIcon: () => CheckboxCheckedIcon,
711
+ CheckboxIcon: () => CheckboxIcon,
710
712
  CloseEyeIcon: () => CloseEyeIcon,
711
713
  CloseIcon: () => CloseIcon,
712
714
  CloseRoundIcon: () => CloseRoundIcon,
@@ -723,6 +725,7 @@ __export(icon_exports, {
723
725
  GoogleIcon: () => GoogleIcon,
724
726
  InfoLineIcon: () => InfoLineIcon,
725
727
  InfoRoundIcon: () => InfoRoundIcon,
728
+ InputLengthIcon: () => InputLengthIcon,
726
729
  LeatherIcon: () => LeatherIcon,
727
730
  LinkedinIcon: () => LinkedinIcon,
728
731
  LoadingIcon: () => LoadingIcon_default,
@@ -1982,6 +1985,53 @@ function MoreIcon({
1982
1985
  ] });
1983
1986
  }
1984
1987
 
1988
+ // src/assets/icon/CheckboxIcon.tsx
1989
+ var import_jsx_runtime52 = require("react/jsx-runtime");
1990
+ function CheckboxIcon({
1991
+ size = 16,
1992
+ color = "#E3E3E3",
1993
+ ...props
1994
+ }) {
1995
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("svg", { width: size, height: size, viewBox: "0 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("rect", { x: "2.08203", y: "2.58325", width: "11.8333", height: "11.8333", rx: "3.25", stroke: color, strokeWidth: "1.5" }) });
1996
+ }
1997
+
1998
+ // src/assets/icon/CheckboxCheckedIcon.tsx
1999
+ var import_jsx_runtime53 = require("react/jsx-runtime");
2000
+ function CheckboxCheckedIcon({
2001
+ size = 16,
2002
+ color = "#FC802D",
2003
+ ...props
2004
+ }) {
2005
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("svg", { width: size, height: size, viewBox: "0 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
2006
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("rect", { x: "1.33203", y: "1.83325", width: "13.3333", height: "13.3333", rx: "4", fill: color }),
2007
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2008
+ "path",
2009
+ {
2010
+ d: "M5.96094 7.63565L7.23226 8.90697L9.87499 6.26424C10.113 6.02621 10.4989 6.02621 10.737 6.26424C10.975 6.50227 10.975 6.8882 10.737 7.12623L7.80211 10.0611C7.48739 10.3758 6.97714 10.3758 6.66242 10.0611L5.09896 8.49764C4.86093 8.25961 4.86093 7.87368 5.09896 7.63565C5.33699 7.39762 5.72291 7.39762 5.96094 7.63565Z",
2011
+ fill: "white"
2012
+ }
2013
+ )
2014
+ ] });
2015
+ }
2016
+
2017
+ // src/assets/icon/InputLengthIcon.tsx
2018
+ var import_jsx_runtime54 = require("react/jsx-runtime");
2019
+ function InputLengthIcon({
2020
+ size = 12,
2021
+ color = "#B6B6B6",
2022
+ ...props
2023
+ }) {
2024
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("svg", { width: size, height: size, viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2025
+ "path",
2026
+ {
2027
+ "fill-rule": "evenodd",
2028
+ "clip-rule": "evenodd",
2029
+ d: "M1.10097 12L12 1.10097L10.899 0L0 10.899L1.10097 12ZM7.19277 11.4594L11.6684 6.98378L10.5675 5.88281L6.0918 10.3585L7.19277 11.4594Z",
2030
+ fill: color
2031
+ }
2032
+ ) });
2033
+ }
2034
+
1985
2035
  // src/hooks/useLayout.tsx
1986
2036
  var useLayout_exports = {};
1987
2037
  __export(useLayout_exports, {
@@ -2003,39 +2053,39 @@ function useDownMd() {
2003
2053
  }
2004
2054
 
2005
2055
  // src/hooks/useConfig.tsx
2006
- var import_jsx_runtime52 = require("react/jsx-runtime");
2056
+ var import_jsx_runtime55 = require("react/jsx-runtime");
2007
2057
  var DEFAULT_WALLET_METHODS = ["evm", "sol", "btc", "tron", "ton"];
2008
2058
  var WALLET_METHODS = ["evm", "sol", "btc", "tron", "ton"];
2009
2059
  function useWalletConfig() {
2010
2060
  const isDownMd = useDownMd();
2011
2061
  const walletMap = {
2012
2062
  evm: {
2013
- icon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(EVMDarkIcon, { size: isDownMd ? 36 : 40 }),
2014
- activeIcon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(EVMLightIcon, { size: isDownMd ? 36 : 40 }),
2063
+ icon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(EVMDarkIcon, { size: isDownMd ? 36 : 40 }),
2064
+ activeIcon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(EVMLightIcon, { size: isDownMd ? 36 : 40 }),
2015
2065
  name: "EVM",
2016
2066
  method: "evm"
2017
2067
  },
2018
2068
  sol: {
2019
- icon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SOLDarkIcon, { size: isDownMd ? 36 : 40 }),
2020
- activeIcon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SOLLightIcon, { size: isDownMd ? 36 : 40 }),
2069
+ icon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SOLDarkIcon, { size: isDownMd ? 36 : 40 }),
2070
+ activeIcon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SOLLightIcon, { size: isDownMd ? 36 : 40 }),
2021
2071
  name: "SOL",
2022
2072
  method: "sol"
2023
2073
  },
2024
2074
  btc: {
2025
- icon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(BTCDarkIcon, { size: isDownMd ? 36 : 40 }),
2026
- activeIcon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(BTCLightIcon, { size: isDownMd ? 36 : 40 }),
2075
+ icon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(BTCDarkIcon, { size: isDownMd ? 36 : 40 }),
2076
+ activeIcon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(BTCLightIcon, { size: isDownMd ? 36 : 40 }),
2027
2077
  name: "BTC",
2028
2078
  method: "btc"
2029
2079
  },
2030
2080
  tron: {
2031
- icon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(TRXDarkIcon, { size: isDownMd ? 36 : 40 }),
2032
- activeIcon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(TRXLightIcon, { size: isDownMd ? 36 : 40 }),
2081
+ icon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(TRXDarkIcon, { size: isDownMd ? 36 : 40 }),
2082
+ activeIcon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(TRXLightIcon, { size: isDownMd ? 36 : 40 }),
2033
2083
  name: "TRON",
2034
2084
  method: "tron"
2035
2085
  },
2036
2086
  ton: {
2037
- icon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(TonLightIcon, { size: isDownMd ? 36 : 40 }),
2038
- activeIcon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(TonLightIcon2, { size: isDownMd ? 36 : 40 }),
2087
+ icon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(TonLightIcon, { size: isDownMd ? 36 : 40 }),
2088
+ activeIcon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(TonLightIcon2, { size: isDownMd ? 36 : 40 }),
2039
2089
  name: "TON",
2040
2090
  method: "ton"
2041
2091
  }
@@ -2442,6 +2492,7 @@ var ui_exports = {};
2442
2492
  __export(ui_exports, {
2443
2493
  AlphaAvatar: () => AlphaAvatar2,
2444
2494
  Button: () => Button,
2495
+ Checkbox: () => Checkbox,
2445
2496
  ConfirmModal: () => ConfirmModal,
2446
2497
  Drawer: () => Drawer,
2447
2498
  Field: () => Field,
@@ -2460,7 +2511,7 @@ __export(ui_exports, {
2460
2511
  });
2461
2512
 
2462
2513
  // src/ui/Button/index.tsx
2463
- var import_jsx_runtime53 = require("react/jsx-runtime");
2514
+ var import_jsx_runtime56 = require("react/jsx-runtime");
2464
2515
  function Button({
2465
2516
  size = "df",
2466
2517
  disabled = false,
@@ -2480,7 +2531,7 @@ function Button({
2480
2531
  onClick && onClick();
2481
2532
  }
2482
2533
  };
2483
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2534
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
2484
2535
  "button",
2485
2536
  {
2486
2537
  type,
@@ -2491,14 +2542,14 @@ function Button({
2491
2542
  },
2492
2543
  onClick: onAction,
2493
2544
  ...dataset,
2494
- children: loading ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(LoadingIcon_default, { className: "matchid-btn-loading-icon", color: "var(--matchid-btn-loading-color)" }) : children
2545
+ children: loading ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(LoadingIcon_default, { className: "matchid-btn-loading-icon", color: "var(--matchid-btn-loading-color)" }) : children
2495
2546
  }
2496
2547
  );
2497
2548
  }
2498
2549
 
2499
2550
  // src/ui/Overlay/index.tsx
2500
2551
  var import_react4 = require("react");
2501
- var import_jsx_runtime54 = require("react/jsx-runtime");
2552
+ var import_jsx_runtime57 = require("react/jsx-runtime");
2502
2553
  function Overlay({
2503
2554
  isOpen = false,
2504
2555
  children,
@@ -2514,7 +2565,7 @@ function Overlay({
2514
2565
  document.body.style.overflow = "";
2515
2566
  };
2516
2567
  }, [isOpen]);
2517
- return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2568
+ return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2518
2569
  "div",
2519
2570
  {
2520
2571
  className: "matchid-overlay",
@@ -2523,11 +2574,11 @@ function Overlay({
2523
2574
  },
2524
2575
  children
2525
2576
  }
2526
- ) : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_jsx_runtime54.Fragment, {});
2577
+ ) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_jsx_runtime57.Fragment, {});
2527
2578
  }
2528
2579
 
2529
2580
  // src/ui/Drawer/index.tsx
2530
- var import_jsx_runtime55 = require("react/jsx-runtime");
2581
+ var import_jsx_runtime58 = require("react/jsx-runtime");
2531
2582
  function Drawer({
2532
2583
  children,
2533
2584
  showClose = true,
@@ -2538,22 +2589,22 @@ function Drawer({
2538
2589
  onBack
2539
2590
  }) {
2540
2591
  if (!isOpen) {
2541
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_jsx_runtime55.Fragment, {});
2592
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_jsx_runtime58.Fragment, {});
2542
2593
  }
2543
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "matchid-drawer", children: [
2544
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: `matchid-drawer-header matchid-flex`, children: [
2545
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: `matchid-drawer-header-content matchid-flex`, children: [
2546
- onBack && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ArrowLeftIcon, { height: 25, width: 24, className: "matchid-drawer-header-back", onClick: onBack }),
2594
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "matchid-drawer", children: [
2595
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: `matchid-drawer-header matchid-flex`, children: [
2596
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: `matchid-drawer-header-content matchid-flex`, children: [
2597
+ onBack && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ArrowLeftIcon, { height: 25, width: 24, className: "matchid-drawer-header-back", onClick: onBack }),
2547
2598
  title
2548
2599
  ] }),
2549
- showClose && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(CloseRoundIcon, { className: "matchid-drawer-header-close", onClick: onClose })
2600
+ showClose && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(CloseRoundIcon, { className: "matchid-drawer-header-close", onClick: onClose })
2550
2601
  ] }),
2551
2602
  children
2552
2603
  ] }) });
2553
2604
  }
2554
2605
 
2555
2606
  // src/ui/Field/index.tsx
2556
- var import_jsx_runtime56 = require("react/jsx-runtime");
2607
+ var import_jsx_runtime59 = require("react/jsx-runtime");
2557
2608
  function Field({
2558
2609
  label,
2559
2610
  children,
@@ -2561,13 +2612,13 @@ function Field({
2561
2612
  required,
2562
2613
  className = ""
2563
2614
  }) {
2564
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: `matchid-field-box ${className}`, children: [
2565
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "matchid-field-label", children: [
2566
- required && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "matchid-field-required", children: "*" }),
2615
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: `matchid-field-box ${className}`, children: [
2616
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "matchid-field-label", children: [
2617
+ required && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "matchid-field-required", children: "*" }),
2567
2618
  label
2568
2619
  ] }),
2569
2620
  children,
2570
- error && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "matchid-field-error", children: error })
2621
+ error && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "matchid-field-error", children: error })
2571
2622
  ] });
2572
2623
  }
2573
2624
 
@@ -2613,27 +2664,48 @@ var import_react6 = require("react");
2613
2664
 
2614
2665
  // src/ui/Input/index.tsx
2615
2666
  var import_react5 = require("react");
2616
- var import_jsx_runtime57 = require("react/jsx-runtime");
2667
+ var import_jsx_runtime60 = require("react/jsx-runtime");
2617
2668
  function Input({
2618
2669
  onChange,
2619
2670
  type,
2620
2671
  after,
2672
+ showLength = false,
2673
+ showClear = true,
2621
2674
  className = "",
2675
+ rows = 1,
2676
+ maxRows = 4,
2677
+ children,
2622
2678
  ...props
2623
2679
  }) {
2624
2680
  const [inputType, setInputType] = (0, import_react5.useState)(type);
2625
2681
  const isDownMd = useDownMd();
2626
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
2682
+ const textareaRef = (0, import_react5.useRef)(null);
2683
+ (0, import_react5.useEffect)(() => {
2684
+ const textarea = textareaRef.current;
2685
+ if (textarea) {
2686
+ textarea.style.height = "auto";
2687
+ const lineHeight = 24;
2688
+ const maxHeight = lineHeight * 4;
2689
+ textarea.style.height = Math.min(textarea.scrollHeight, maxHeight) + "px";
2690
+ }
2691
+ }, [props.value]);
2692
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
2627
2693
  "div",
2628
2694
  {
2629
- className: `matchid-input-box ${props.value && props.value.length > 0 ? "matchid-input-has-content" : ""} ${className}`,
2695
+ className: `matchid-input-box matchid-input-${type} ${props.value && props.value.length > 0 ? "matchid-input-has-content" : ""} ${className}`,
2696
+ style: {
2697
+ // @ts-ignore
2698
+ "--max-rows": maxRows
2699
+ },
2630
2700
  children: [
2631
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("input", { type: inputType, onChange, ...props, className: "matchid-input-field" }),
2632
- props.value && props.value.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "matchid-input-delete-icon", onClick: (e) => {
2701
+ children ?? (type == "textarea" ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("textarea", { rows: 1, onChange, ...props, className: "matchid-input-field", ref: textareaRef, style: {
2702
+ maxHeight: maxRows * 24 + "px"
2703
+ } }) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("input", { type: inputType, onChange, ...props, className: "matchid-input-field" })),
2704
+ type != "textarea" && showClear && props.value && props.value.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "matchid-input-delete-icon", onClick: (e) => {
2633
2705
  if (onChange) {
2634
2706
  onChange({ target: { value: "" } });
2635
2707
  }
2636
- }, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2708
+ }, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2637
2709
  DeleteRoundIcon,
2638
2710
  {
2639
2711
  height: isDownMd ? 16 : 21,
@@ -2641,9 +2713,17 @@ function Input({
2641
2713
  color: "var(--matchid-input-delete-icon-color)"
2642
2714
  }
2643
2715
  ) }),
2644
- type === "password" && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "matchid-input-eye-icon", onClick: () => {
2716
+ type === "password" && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "matchid-input-eye-icon", onClick: () => {
2645
2717
  setInputType(inputType === "password" ? "text" : "password");
2646
- }, children: inputType === "password" ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(CloseEyeIcon, { size: isDownMd ? 16 : 20 }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(OpenEyeIcon, { size: isDownMd ? 16 : 20 }) }),
2718
+ }, children: inputType === "password" ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(CloseEyeIcon, { size: isDownMd ? 16 : 20 }) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(OpenEyeIcon, { size: isDownMd ? 16 : 20 }) }),
2719
+ showLength && props.maxLength && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: `matchid-input-length`, children: [
2720
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("span", { children: [
2721
+ props.value.length || 0,
2722
+ "/",
2723
+ props.maxLength
2724
+ ] }),
2725
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(InputLengthIcon, { color: "var(--icon-color)" })
2726
+ ] }),
2647
2727
  after
2648
2728
  ]
2649
2729
  }
@@ -2652,7 +2732,7 @@ function Input({
2652
2732
 
2653
2733
  // src/components/EmailModal/StepEmail.tsx
2654
2734
  var import_react_intl = require("react-intl");
2655
- var import_jsx_runtime58 = require("react/jsx-runtime");
2735
+ var import_jsx_runtime61 = require("react/jsx-runtime");
2656
2736
  function StepEmail(props) {
2657
2737
  const intl = (0, import_react_intl.useIntl)();
2658
2738
  const [emailVal, setEmailVal] = (0, import_react6.useState)("");
@@ -2667,10 +2747,10 @@ function StepEmail(props) {
2667
2747
  const onContinue = async () => {
2668
2748
  props.onContinue(emailVal);
2669
2749
  };
2670
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "matchid-email-email-box", children: [
2671
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Field, { label: intl.formatMessage({
2750
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "matchid-email-email-box", children: [
2751
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Field, { label: intl.formatMessage({
2672
2752
  id: "emailAddress"
2673
- }), children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2753
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2674
2754
  Input,
2675
2755
  {
2676
2756
  placeholder: intl.formatMessage({
@@ -2680,9 +2760,9 @@ function StepEmail(props) {
2680
2760
  value: emailVal
2681
2761
  }
2682
2762
  ) }),
2683
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Button, { disabled: !canContinue, style: {
2763
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Button, { disabled: !canContinue, style: {
2684
2764
  marginTop: "64px"
2685
- }, onClick: onContinue, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react_intl.FormattedMessage, { id: "continue" }) })
2765
+ }, onClick: onContinue, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react_intl.FormattedMessage, { id: "continue" }) })
2686
2766
  ] });
2687
2767
  }
2688
2768
 
@@ -2696,7 +2776,7 @@ var NATIVE_TOKEN_ADDRESS = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
2696
2776
 
2697
2777
  // src/components/EmailModal/StepVerify.tsx
2698
2778
  var import_react_intl2 = require("react-intl");
2699
- var import_jsx_runtime59 = require("react/jsx-runtime");
2779
+ var import_jsx_runtime62 = require("react/jsx-runtime");
2700
2780
  function StepVerify(props) {
2701
2781
  const intl = (0, import_react_intl2.useIntl)();
2702
2782
  const { getLoginEmailCode, loginByEmail } = useUserInfo();
@@ -2773,17 +2853,17 @@ function StepVerify(props) {
2773
2853
  setSubmitting(false);
2774
2854
  }
2775
2855
  };
2776
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "matchid-email-verify-box", children: [
2777
- /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "matchid-email-verify-header", children: [
2778
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "matchid-email-verify-header-icon", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(EmailLineIcon, { size: isDownMd ? 19 : 24 }) }),
2779
- /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "matchid-email-verify-header-content", children: [
2780
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "matchid-email-verify-header-value", children: props.email }),
2781
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "matchid-email-verify-header-tips", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react_intl2.FormattedMessage, { id: "sendEmailTips" }) })
2856
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "matchid-email-verify-box", children: [
2857
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "matchid-email-verify-header", children: [
2858
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "matchid-email-verify-header-icon", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(EmailLineIcon, { size: isDownMd ? 19 : 24 }) }),
2859
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "matchid-email-verify-header-content", children: [
2860
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "matchid-email-verify-header-value", children: props.email }),
2861
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "matchid-email-verify-header-tips", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react_intl2.FormattedMessage, { id: "sendEmailTips" }) })
2782
2862
  ] })
2783
2863
  ] }),
2784
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Field, { label: intl.formatMessage({
2864
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Field, { label: intl.formatMessage({
2785
2865
  id: "verificationCode"
2786
- }), error, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2866
+ }), error, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2787
2867
  Input,
2788
2868
  {
2789
2869
  placeholder: intl.formatMessage({
@@ -2793,7 +2873,7 @@ function StepVerify(props) {
2793
2873
  maxLength: codeLength,
2794
2874
  onChange: (e) => setCode(e.target.value),
2795
2875
  value: code,
2796
- after: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2876
+ after: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2797
2877
  Button,
2798
2878
  {
2799
2879
  highlight: true,
@@ -2812,13 +2892,13 @@ function StepVerify(props) {
2812
2892
  )
2813
2893
  }
2814
2894
  ) }),
2815
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Button, { disabled: !canContinue, loading: submitting, highlight: true, block: true, size: "lg", onClick: onContinue, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react_intl2.FormattedMessage, { id: "continue" }) })
2895
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Button, { disabled: !canContinue, loading: submitting, highlight: true, block: true, size: "lg", onClick: onContinue, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react_intl2.FormattedMessage, { id: "continue" }) })
2816
2896
  ] });
2817
2897
  }
2818
2898
 
2819
2899
  // src/components/EmailModal/index.tsx
2820
2900
  var import_react_intl3 = require("react-intl");
2821
- var import_jsx_runtime60 = require("react/jsx-runtime");
2901
+ var import_jsx_runtime63 = require("react/jsx-runtime");
2822
2902
  function EmailModal({
2823
2903
  isOpen = false,
2824
2904
  width = 480,
@@ -2835,7 +2915,7 @@ function EmailModal({
2835
2915
  setEmailVal("");
2836
2916
  }
2837
2917
  }, [isOpen]);
2838
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2918
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2839
2919
  ModalWithHeader,
2840
2920
  {
2841
2921
  isOpen,
@@ -2845,17 +2925,17 @@ function EmailModal({
2845
2925
  id: "email"
2846
2926
  }),
2847
2927
  onBack: step == "verify" ? () => setStep("input") : onBack,
2848
- children: step === "input" ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(StepEmail, { email: emailVal, onContinue: (email) => {
2928
+ children: step === "input" ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(StepEmail, { email: emailVal, onContinue: (email) => {
2849
2929
  setEmailVal(email);
2850
2930
  setStep("verify");
2851
- } }) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(StepVerify, { email: emailVal, onSuccess: onLogin })
2931
+ } }) : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(StepVerify, { email: emailVal, onSuccess: onLogin })
2852
2932
  }
2853
2933
  );
2854
2934
  }
2855
2935
 
2856
2936
  // src/ui/Popover/index.tsx
2857
2937
  var import_react9 = require("react");
2858
- var import_jsx_runtime61 = require("react/jsx-runtime");
2938
+ var import_jsx_runtime64 = require("react/jsx-runtime");
2859
2939
  function Popover({
2860
2940
  children,
2861
2941
  content,
@@ -2865,7 +2945,7 @@ function Popover({
2865
2945
  gap = "20px"
2866
2946
  }) {
2867
2947
  const [active, setActive] = (0, import_react9.useState)(false);
2868
- return children && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
2948
+ return children && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
2869
2949
  "div",
2870
2950
  {
2871
2951
  onClick: () => {
@@ -2876,9 +2956,9 @@ function Popover({
2876
2956
  className: `matchid-popover-box matchid-popover-${position} matchid-popover-${type} ${className} ${type == "click" && active ? "matchid-popover-click-active" : ""}`,
2877
2957
  children: [
2878
2958
  children,
2879
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { style: {
2959
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { style: {
2880
2960
  paddingTop: gap
2881
- }, className: `matchid-popover-area`, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: `matchid-popover-content`, children: content }) })
2961
+ }, className: `matchid-popover-area`, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: `matchid-popover-content`, children: content }) })
2882
2962
  ]
2883
2963
  }
2884
2964
  );
@@ -2909,7 +2989,7 @@ function useAppConfig() {
2909
2989
  }
2910
2990
 
2911
2991
  // src/components/LoginBox/index.tsx
2912
- var import_jsx_runtime62 = require("react/jsx-runtime");
2992
+ var import_jsx_runtime65 = require("react/jsx-runtime");
2913
2993
  var RecommendItem = ({
2914
2994
  icon,
2915
2995
  name,
@@ -2918,20 +2998,20 @@ var RecommendItem = ({
2918
2998
  children,
2919
2999
  footer
2920
3000
  }) => {
2921
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "matchid-login-recommend-method", children: [
2922
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "matchid-login-recommend-method-item", onClick, children: [
2923
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "matchid-login-recommend-method-content", children: [
2924
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "matchid-login-recommend-method-icon", children: icon }),
2925
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "matchid-login-recommend-method-name", children: name })
3001
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "matchid-login-recommend-method", children: [
3002
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "matchid-login-recommend-method-item", onClick, children: [
3003
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "matchid-login-recommend-method-content", children: [
3004
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "matchid-login-recommend-method-icon", children: icon }),
3005
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "matchid-login-recommend-method-name", children: name })
2926
3006
  ] }),
2927
- footer ? footer : children ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3007
+ footer ? footer : children ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
2928
3008
  ArrowDownIcon,
2929
3009
  {
2930
3010
  className: `matchid-login-recommend-method-arrow ${showChildren ? "matchid-login-recommend-method-arrow-active" : ""}`,
2931
3011
  size: 20,
2932
3012
  color: "var(--matchid-arrow-color)"
2933
3013
  }
2934
- ) : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3014
+ ) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
2935
3015
  ArrowRightIcon,
2936
3016
  {
2937
3017
  className: "matchid-login-recommend-method-arrow",
@@ -2940,7 +3020,7 @@ var RecommendItem = ({
2940
3020
  }
2941
3021
  )
2942
3022
  ] }),
2943
- children && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3023
+ children && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
2944
3024
  "div",
2945
3025
  {
2946
3026
  className: `matchid-login-recommend-method-popover ${showChildren ? "matchid-login-recommend-method-popover-active" : ""}`,
@@ -3005,75 +3085,75 @@ function LoginBox({
3005
3085
  const isDownMd = useDownMd();
3006
3086
  const methodMap = {
3007
3087
  wallet: {
3008
- icon: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(WalletIcon, { size: isDownMd ? 36 : 40 }),
3088
+ icon: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(WalletIcon, { size: isDownMd ? 36 : 40 }),
3009
3089
  name: intl.formatMessage({ id: "wallet" }),
3010
3090
  onClick: () => setShowWallet(!showWallet),
3011
3091
  type: "wallet"
3012
3092
  },
3013
3093
  email: {
3014
- icon: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(EmailIcon, { size: isDownMd ? 36 : 40 }),
3094
+ icon: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(EmailIcon, { size: isDownMd ? 36 : 40 }),
3015
3095
  name: intl.formatMessage({ id: "email" }),
3016
3096
  onClick: () => {
3017
3097
  setEmailOpen(true);
3018
3098
  }
3019
3099
  },
3020
3100
  google: {
3021
- icon: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(GoogleIcon, { size: isDownMd ? 36 : 40 }),
3101
+ icon: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(GoogleIcon, { size: isDownMd ? 36 : 40 }),
3022
3102
  name: "Google",
3023
3103
  onClick: () => login("google")
3024
3104
  },
3025
3105
  twitter: {
3026
- icon: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(XIcon, { size: isDownMd ? 36 : 40 }),
3106
+ icon: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(XIcon, { size: isDownMd ? 36 : 40 }),
3027
3107
  name: "X",
3028
3108
  onClick: () => login("twitter")
3029
3109
  },
3030
3110
  telegram: {
3031
- icon: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(TelegramIcon, { size: isDownMd ? 36 : 40 }),
3111
+ icon: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(TelegramIcon, { size: isDownMd ? 36 : 40 }),
3032
3112
  name: "Telegram",
3033
3113
  onClick: () => login("telegram")
3034
3114
  },
3035
3115
  github: {
3036
- icon: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(GithubIcon, { size: isDownMd ? 36 : 40 }),
3116
+ icon: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(GithubIcon, { size: isDownMd ? 36 : 40 }),
3037
3117
  name: "Github",
3038
3118
  onClick: () => login("github")
3039
3119
  },
3040
3120
  discord: {
3041
- icon: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(DiscordIcon, { size: isDownMd ? 36 : 40 }),
3121
+ icon: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DiscordIcon, { size: isDownMd ? 36 : 40 }),
3042
3122
  name: "Discord",
3043
3123
  onClick: () => login("discord")
3044
3124
  },
3045
3125
  linkedin: {
3046
- icon: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(LinkedinIcon, { size: isDownMd ? 36 : 40 }),
3126
+ icon: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(LinkedinIcon, { size: isDownMd ? 36 : 40 }),
3047
3127
  name: "LinkedIn",
3048
3128
  onClick: () => login("linkedin")
3049
3129
  },
3050
3130
  facebook: {
3051
- icon: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FacebookIcon, { size: isDownMd ? 36 : 40 }),
3131
+ icon: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(FacebookIcon, { size: isDownMd ? 36 : 40 }),
3052
3132
  name: "Facebook",
3053
3133
  onClick: () => login("facebook")
3054
3134
  },
3055
3135
  youtube: {
3056
- icon: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(YoutubeIcon, { size: isDownMd ? 36 : 40 }),
3136
+ icon: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(YoutubeIcon, { size: isDownMd ? 36 : 40 }),
3057
3137
  name: "Youtube",
3058
3138
  onClick: () => login("youtube")
3059
3139
  }
3060
3140
  };
3061
3141
  const { walletMap } = useWalletConfig();
3062
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
3063
- (!inModal || !emailOpen) && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "matchid-login-box", children: [
3064
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "matchid-login-recommend-list", children: methodConfig.recommendMethods.map((m) => {
3065
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3142
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
3143
+ (!inModal || !emailOpen) && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "matchid-login-box", children: [
3144
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "matchid-login-recommend-list", children: methodConfig.recommendMethods.map((m) => {
3145
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3066
3146
  RecommendItem,
3067
3147
  {
3068
3148
  icon: methodMap[m]?.icon,
3069
3149
  name: methodMap[m]?.name,
3070
3150
  onClick: methodMap[m]?.onClick,
3071
3151
  showChildren: m == "wallet" && showWallet,
3072
- children: m == "wallet" && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
3073
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "matchid-login-recommend-wallet-divider" }),
3074
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "matchid-login-recommend-wallet-list", children: methodConfig.walletMethods.map((n) => {
3152
+ children: m == "wallet" && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
3153
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "matchid-login-recommend-wallet-divider" }),
3154
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "matchid-login-recommend-wallet-list", children: methodConfig.walletMethods.map((n) => {
3075
3155
  const m2 = walletMap[n];
3076
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
3156
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
3077
3157
  "div",
3078
3158
  {
3079
3159
  className: "matchid-login-recommend-wallet-item",
@@ -3081,16 +3161,16 @@ function LoginBox({
3081
3161
  login(m2.method);
3082
3162
  },
3083
3163
  children: [
3084
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "matchid-login-recommend-wallet-item-content", children: [
3085
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "matchid-login-recommend-wallet-item-icon", children: m2.icon }),
3086
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3164
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "matchid-login-recommend-wallet-item-content", children: [
3165
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "matchid-login-recommend-wallet-item-icon", children: m2.icon }),
3166
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3087
3167
  "div",
3088
3168
  {
3089
3169
  className: "matchid-login-recommend-wallet-item-hover-icon",
3090
3170
  children: m2.activeIcon
3091
3171
  }
3092
3172
  ),
3093
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3173
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3094
3174
  "span",
3095
3175
  {
3096
3176
  className: "matchid-login-recommend-wallet-item-name",
@@ -3098,7 +3178,7 @@ function LoginBox({
3098
3178
  }
3099
3179
  )
3100
3180
  ] }),
3101
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3181
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3102
3182
  ArrowRightIcon,
3103
3183
  {
3104
3184
  className: "matchid-login-recommend-wallet-item-arrow",
@@ -3116,10 +3196,10 @@ function LoginBox({
3116
3196
  m
3117
3197
  );
3118
3198
  }) }),
3119
- methodConfig.methods.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "matchid-login-other", children: [
3120
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "matchid-login-other-text", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react_intl4.FormattedMessage, { id: "otherLoginMethods" }) }),
3121
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "matchid-login-method-box", children: methodConfig.methods.map((m) => {
3122
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3199
+ methodConfig.methods.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "matchid-login-other", children: [
3200
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "matchid-login-other-text", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react_intl4.FormattedMessage, { id: "otherLoginMethods" }) }),
3201
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "matchid-login-method-box", children: methodConfig.methods.map((m) => {
3202
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3123
3203
  "div",
3124
3204
  {
3125
3205
  className: "matchid-login-method-item",
@@ -3132,7 +3212,7 @@ function LoginBox({
3132
3212
  }) })
3133
3213
  ] })
3134
3214
  ] }),
3135
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3215
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3136
3216
  EmailModal,
3137
3217
  {
3138
3218
  isOpen: emailOpen,
@@ -3152,40 +3232,40 @@ var import_react12 = require("react");
3152
3232
 
3153
3233
  // src/components/LoginPanel/index.tsx
3154
3234
  var import_react_intl5 = require("react-intl");
3155
- var import_jsx_runtime63 = require("react/jsx-runtime");
3235
+ var import_jsx_runtime66 = require("react/jsx-runtime");
3156
3236
  function LoginPanel({
3157
3237
  header,
3158
3238
  onClose,
3159
3239
  ...props
3160
3240
  }) {
3161
3241
  const isDownMd = useDownMd();
3162
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "matchid-login-panel", children: [
3163
- header ? header : /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "matchid-login-panel-header", children: [
3164
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "matchid-login-panel-header-content", children: [
3165
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "matchid-login-panel-header-title", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react_intl5.FormattedMessage, { id: "loginTitle" }) }),
3166
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "matchid-login-panel-header-subtilte", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react_intl5.FormattedMessage, { id: "loginTips" }) })
3242
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "matchid-login-panel", children: [
3243
+ header ? header : /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "matchid-login-panel-header", children: [
3244
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "matchid-login-panel-header-content", children: [
3245
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "matchid-login-panel-header-title", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_intl5.FormattedMessage, { id: "loginTitle" }) }),
3246
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "matchid-login-panel-header-subtilte", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_intl5.FormattedMessage, { id: "loginTips" }) })
3167
3247
  ] }),
3168
- onClose && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "matchid-login-panel-header-close", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30 }) })
3248
+ onClose && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "matchid-login-panel-header-close", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30 }) })
3169
3249
  ] }),
3170
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "matchid-login-panel-divide" }),
3171
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "matchid-login-panel-box", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(LoginBox, { ...props }) })
3250
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "matchid-login-panel-divide" }),
3251
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "matchid-login-panel-box", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(LoginBox, { ...props }) })
3172
3252
  ] });
3173
3253
  }
3174
3254
 
3175
3255
  // src/components/LoginModal/index.tsx
3176
- var import_jsx_runtime64 = require("react/jsx-runtime");
3256
+ var import_jsx_runtime67 = require("react/jsx-runtime");
3177
3257
  function LoginModal({
3178
3258
  isOpen = false,
3179
3259
  width = 480,
3180
3260
  ...props
3181
3261
  }) {
3182
3262
  const { isLogin } = useUserInfo();
3183
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3263
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3184
3264
  Modal,
3185
3265
  {
3186
3266
  isOpen: isOpen && !isLogin,
3187
3267
  width,
3188
- children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(LoginPanel, { ...props, inModal: true })
3268
+ children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(LoginPanel, { ...props, inModal: true })
3189
3269
  }
3190
3270
  );
3191
3271
  }
@@ -3194,10 +3274,10 @@ function LoginModal({
3194
3274
  var import_react11 = require("react");
3195
3275
 
3196
3276
  // src/assets/icon/ProfileIcon.tsx
3197
- var import_jsx_runtime65 = require("react/jsx-runtime");
3277
+ var import_jsx_runtime68 = require("react/jsx-runtime");
3198
3278
  function ProfileIcon({ size = 24, color = "black", ...props }) {
3199
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3200
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3279
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3280
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3201
3281
  "path",
3202
3282
  {
3203
3283
  fillRule: "evenodd",
@@ -3206,7 +3286,7 @@ function ProfileIcon({ size = 24, color = "black", ...props }) {
3206
3286
  fill: color
3207
3287
  }
3208
3288
  ),
3209
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3289
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3210
3290
  "path",
3211
3291
  {
3212
3292
  fillRule: "evenodd",
@@ -3220,7 +3300,7 @@ function ProfileIcon({ size = 24, color = "black", ...props }) {
3220
3300
 
3221
3301
  // src/components/UserPopover/index.tsx
3222
3302
  var import_react_intl6 = require("react-intl");
3223
- var import_jsx_runtime66 = require("react/jsx-runtime");
3303
+ var import_jsx_runtime69 = require("react/jsx-runtime");
3224
3304
  function UserContent() {
3225
3305
  const { logout, address, username } = useUserInfo();
3226
3306
  const [logouting, setLogouting] = (0, import_react11.useState)(false);
@@ -3241,34 +3321,34 @@ function UserContent() {
3241
3321
  rightIcon,
3242
3322
  onClick
3243
3323
  }) => {
3244
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "matchid-user-popover-item", onClick, children: [
3245
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: `matchid-user-popover-item-content`, children: [
3324
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "matchid-user-popover-item", onClick, children: [
3325
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: `matchid-user-popover-item-content`, children: [
3246
3326
  icon,
3247
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "matchid-user-popover-item-text", children })
3327
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "matchid-user-popover-item-text", children })
3248
3328
  ] }),
3249
3329
  rightIcon
3250
3330
  ] });
3251
3331
  };
3252
3332
  const UserDivider = () => {
3253
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: `matchid-user-popover-divider` });
3333
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: `matchid-user-popover-divider` });
3254
3334
  };
3255
3335
  const [usernameOpen, setUsernameOpen] = (0, import_react11.useState)(false);
3256
3336
  const [copied, setCopied] = useCopyClipboard();
3257
3337
  const intl = (0, import_react_intl6.useIntl)();
3258
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "matchid-user-popover-content", children: [
3259
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "matchid-user-popover-list", children: [
3260
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(UserItem, { onClick: () => {
3338
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "matchid-user-popover-content", children: [
3339
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "matchid-user-popover-list", children: [
3340
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(UserItem, { onClick: () => {
3261
3341
  setCopied(address);
3262
- }, icon: copied ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(CheckIcon, { size: 20, color: "#0ecb81" }) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(CopyIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(CheckIcon, { size: 20, color: "var(--icon-color)" }), children: truncateAddress(address) }),
3263
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(UserDivider, {}),
3264
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(UserItem, { onClick: () => {
3342
+ }, icon: copied ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(CheckIcon, { size: 20, color: "#0ecb81" }) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(CopyIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(CheckIcon, { size: 20, color: "var(--icon-color)" }), children: truncateAddress(address) }),
3343
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(UserDivider, {}),
3344
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(UserItem, { onClick: () => {
3265
3345
  setUsernameOpen(true);
3266
- }, icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(ProfileIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(ArrowRightIcon, { size: 20, color: "var(--icon-color)" }), children: username || intl.formatMessage({
3346
+ }, icon: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ProfileIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ArrowRightIcon, { size: 20, color: "var(--icon-color)" }), children: username || intl.formatMessage({
3267
3347
  id: "setUsername"
3268
3348
  }) })
3269
3349
  ] }),
3270
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Button, { onClick: onLogout, loading: logouting, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_intl6.FormattedMessage, { id: "disconnect" }) }),
3271
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(UsernameModal, { isOpen: usernameOpen, onClose: () => {
3350
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Button, { onClick: onLogout, loading: logouting, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react_intl6.FormattedMessage, { id: "disconnect" }) }),
3351
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(UsernameModal, { isOpen: usernameOpen, onClose: () => {
3272
3352
  setUsernameOpen(false);
3273
3353
  }, onSuccess: () => {
3274
3354
  setUsernameOpen(false);
@@ -3279,12 +3359,12 @@ function UserPopover({
3279
3359
  children,
3280
3360
  ...props
3281
3361
  }) {
3282
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Popover, { ...props, content: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(UserContent, {}), children });
3362
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Popover, { ...props, content: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(UserContent, {}), children });
3283
3363
  }
3284
3364
 
3285
3365
  // src/components/LoginButton/index.tsx
3286
3366
  var import_react_intl7 = require("react-intl");
3287
- var import_jsx_runtime67 = require("react/jsx-runtime");
3367
+ var import_jsx_runtime70 = require("react/jsx-runtime");
3288
3368
  function LoginButton({
3289
3369
  loginRender,
3290
3370
  methods,
@@ -3300,8 +3380,8 @@ function LoginButton({
3300
3380
  const { isLogin, username } = useUserInfo();
3301
3381
  const [loginOpen, setLoginOpen] = (0, import_react12.useState)(false);
3302
3382
  if (!isLogin) {
3303
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx_runtime67.Fragment, { children: [
3304
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3383
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_jsx_runtime70.Fragment, { children: [
3384
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3305
3385
  LoginModal,
3306
3386
  {
3307
3387
  methods,
@@ -3311,15 +3391,15 @@ function LoginButton({
3311
3391
  onClose: () => setLoginOpen(false)
3312
3392
  }
3313
3393
  ),
3314
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Button, { className: "matchid-unlogin-btn", ...props, highlight: true, onClick: () => setLoginOpen(true), children: [
3315
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(UnLoginIcon_default, {}),
3316
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react_intl7.FormattedMessage, { id: "login" }) })
3394
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(Button, { className: "matchid-unlogin-btn", ...props, highlight: true, onClick: () => setLoginOpen(true), children: [
3395
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(UnLoginIcon_default, {}),
3396
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react_intl7.FormattedMessage, { id: "login" }) })
3317
3397
  ] })
3318
3398
  ] });
3319
3399
  }
3320
- return loginRender ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_jsx_runtime67.Fragment, { children: loginRender }) : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(UserPopover, { position: popoverPosition, type: popoverType, gap: popoverGap, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Button, { onClick: onLoginClick, className: "matchid-login-btn", ...props, children: [
3321
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(LoginIcon_default, {}),
3322
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { children: username ? truncateAddress(username) : "MatchID " + intl.formatMessage({
3400
+ return loginRender ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_jsx_runtime70.Fragment, { children: loginRender }) : /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(UserPopover, { position: popoverPosition, type: popoverType, gap: popoverGap, children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(Button, { onClick: onLoginClick, className: "matchid-login-btn", ...props, children: [
3401
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(LoginIcon_default, {}),
3402
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { children: username ? truncateAddress(username) : "MatchID " + intl.formatMessage({
3323
3403
  id: "user"
3324
3404
  }) })
3325
3405
  ] }) });
@@ -3328,15 +3408,15 @@ function LoginButton({
3328
3408
  // src/components/UsernameModal/index.tsx
3329
3409
  var import_react13 = require("react");
3330
3410
  var import_react_intl8 = require("react-intl");
3331
- var import_jsx_runtime68 = require("react/jsx-runtime");
3411
+ var import_jsx_runtime71 = require("react/jsx-runtime");
3332
3412
  var ValidItem = ({
3333
3413
  success = false,
3334
3414
  text
3335
3415
  }) => {
3336
3416
  const isDownMd = useDownMd();
3337
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: `matchid-valid-status-item matchid-valid-status-${success ? "success" : "error"}`, children: [
3338
- success ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(CheckRoundIcon, { size: isDownMd ? 12 : 16 }) : /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(InfoLineIcon, { size: isDownMd ? 12 : 16 }),
3339
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { children: text })
3417
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: `matchid-valid-status-item matchid-valid-status-${success ? "success" : "error"}`, children: [
3418
+ success ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(CheckRoundIcon, { size: isDownMd ? 12 : 16 }) : /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(InfoLineIcon, { size: isDownMd ? 12 : 16 }),
3419
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { children: text })
3340
3420
  ] });
3341
3421
  };
3342
3422
  function UsernameModal({
@@ -3384,12 +3464,12 @@ function UsernameModal({
3384
3464
  }
3385
3465
  };
3386
3466
  const intl = (0, import_react_intl8.useIntl)();
3387
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ModalWithHeader, { isOpen: isOpen && isLogin, ...props, title: title || intl.formatMessage({
3467
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(ModalWithHeader, { isOpen: isOpen && isLogin, ...props, title: title || intl.formatMessage({
3388
3468
  id: username ? "editUsernameTitle" : "setUsernameTitle"
3389
- }), children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "matchid-username-box", children: [
3390
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Field, { label: intl.formatMessage({
3469
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "matchid-username-box", children: [
3470
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Field, { label: intl.formatMessage({
3391
3471
  id: "username"
3392
- }), error, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3472
+ }), error, children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3393
3473
  Input,
3394
3474
  {
3395
3475
  placeholder: intl.formatMessage({
@@ -3402,8 +3482,8 @@ function UsernameModal({
3402
3482
  value: val
3403
3483
  }
3404
3484
  ) }),
3405
- /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "matchid-valid", children: [
3406
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3485
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "matchid-valid", children: [
3486
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3407
3487
  ValidItem,
3408
3488
  {
3409
3489
  success: isValid,
@@ -3412,16 +3492,16 @@ function UsernameModal({
3412
3492
  })
3413
3493
  }
3414
3494
  ),
3415
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ValidItem, { success: isLength, text: intl.formatMessage({
3495
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(ValidItem, { success: isLength, text: intl.formatMessage({
3416
3496
  id: "usernameLengthError"
3417
3497
  }) })
3418
3498
  ] }),
3419
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Button, { disabled: !isSafe, loading: isSubmitting, style: {
3499
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Button, { disabled: !isSafe, loading: isSubmitting, style: {
3420
3500
  marginTop: isDownMd ? "36px" : "64px"
3421
- }, onClick: onSubmit, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react_intl8.FormattedMessage, { id: "confirm" }) }),
3422
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Button, { style: {
3501
+ }, onClick: onSubmit, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react_intl8.FormattedMessage, { id: "confirm" }) }),
3502
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Button, { style: {
3423
3503
  marginTop: isDownMd ? "12px" : "24px"
3424
- }, onClick: props.onClose, size: "lg", block: true, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react_intl8.FormattedMessage, { id: "cancel" }) })
3504
+ }, onClick: props.onClose, size: "lg", block: true, children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react_intl8.FormattedMessage, { id: "cancel" }) })
3425
3505
  ] }) });
3426
3506
  }
3427
3507
 
@@ -3477,7 +3557,7 @@ var walletConnectImage = wallet_default;
3477
3557
  var walletSigningImage = signing_default;
3478
3558
 
3479
3559
  // src/components/WalletModalContent/index.tsx
3480
- var import_jsx_runtime69 = require("react/jsx-runtime");
3560
+ var import_jsx_runtime72 = require("react/jsx-runtime");
3481
3561
  function WalletModalContent({
3482
3562
  status,
3483
3563
  error,
@@ -3547,15 +3627,15 @@ function WalletModalContent({
3547
3627
  statusImage: walletConnectImage
3548
3628
  };
3549
3629
  }, [visible, connected, status, error, address]);
3550
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "matchid-wallet-container", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: `matchid-wallet-box`, children: [
3551
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: `matchid-wallet-content`, children: [
3552
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Lottie_default, { animationData: pageData.statusImage, style: {
3630
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "matchid-wallet-container", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: `matchid-wallet-box`, children: [
3631
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: `matchid-wallet-content`, children: [
3632
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Lottie_default, { animationData: pageData.statusImage, style: {
3553
3633
  width: 128,
3554
3634
  height: 128
3555
3635
  } }),
3556
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: pageData.isError ? "matchid-error" : "", children: pageData.text })
3636
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: pageData.isError ? "matchid-error" : "", children: pageData.text })
3557
3637
  ] }),
3558
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3638
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3559
3639
  Button,
3560
3640
  {
3561
3641
  block: true,
@@ -3631,15 +3711,15 @@ function WalletModalContentV2(props) {
3631
3711
  statusImage: walletConnectImage
3632
3712
  };
3633
3713
  }, [props, submitting]);
3634
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "matchid-wallet-container", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: `matchid-wallet-box`, children: [
3635
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: `matchid-wallet-content`, children: [
3636
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Lottie_default, { animationData: pageData.statusImage, style: {
3714
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "matchid-wallet-container", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: `matchid-wallet-box`, children: [
3715
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: `matchid-wallet-content`, children: [
3716
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Lottie_default, { animationData: pageData.statusImage, style: {
3637
3717
  width: 128,
3638
3718
  height: 128
3639
3719
  } }),
3640
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: props.status == "error" ? "matchid-error" : "", children: pageData.text })
3720
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: props.status == "error" ? "matchid-error" : "", children: pageData.text })
3641
3721
  ] }),
3642
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3722
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3643
3723
  Button,
3644
3724
  {
3645
3725
  block: true,
@@ -3921,7 +4001,7 @@ async function getEthersSigner(config, { chainId } = {}) {
3921
4001
  // src/components/EVMModal/index.tsx
3922
4002
  var import_siwe = require("siwe");
3923
4003
  var import_styles = require("@rainbow-me/rainbowkit/styles.css");
3924
- var import_jsx_runtime70 = require("react/jsx-runtime");
4004
+ var import_jsx_runtime73 = require("react/jsx-runtime");
3925
4005
  function WalletContent({
3926
4006
  onSuccess,
3927
4007
  type
@@ -4079,7 +4159,7 @@ function WalletContent({
4079
4159
  setNonce(void 0);
4080
4160
  setStatus("start");
4081
4161
  };
4082
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4162
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4083
4163
  WalletModalContentV2,
4084
4164
  {
4085
4165
  status,
@@ -4097,14 +4177,14 @@ function EVMConnectModal({
4097
4177
  ...props
4098
4178
  }) {
4099
4179
  const intl = (0, import_react_intl9.useIntl)();
4100
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
4180
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
4101
4181
  id: type == "bind" ? "bindWith" : "loginWith"
4102
4182
  }, {
4103
4183
  name: "EVM"
4104
- }), children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(WalletContent, { onSuccess, type }) });
4184
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(WalletContent, { onSuccess, type }) });
4105
4185
  }
4106
4186
  function EVMModal(props) {
4107
- return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_rainbowkit.RainbowKitProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(EVMConnectModal, { ...props }) });
4187
+ return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_rainbowkit.RainbowKitProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(EVMConnectModal, { ...props }) });
4108
4188
  }
4109
4189
 
4110
4190
  // src/components/TRONModal/index.tsx
@@ -4219,7 +4299,7 @@ var useTRONWallet = () => {
4219
4299
  };
4220
4300
 
4221
4301
  // src/components/TRONModal/index.tsx
4222
- var import_jsx_runtime71 = require("react/jsx-runtime");
4302
+ var import_jsx_runtime74 = require("react/jsx-runtime");
4223
4303
  function TRONConnectModal({
4224
4304
  type = "login",
4225
4305
  onSuccess,
@@ -4229,9 +4309,9 @@ function TRONConnectModal({
4229
4309
  const intl = (0, import_react_intl10.useIntl)();
4230
4310
  const { wallets, installedWallets, chooseWallet, wallet, address, onConnect } = useTRONWallet();
4231
4311
  const iconMaps = {
4232
- tronlink: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(TronLinkIcon, { size: isDownMd ? 36 : 40 }),
4233
- bitget: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(BitgetIcon, { size: isDownMd ? 36 : 40 }),
4234
- okx: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(OKXIcon, { size: isDownMd ? 36 : 40 })
4312
+ tronlink: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(TronLinkIcon, { size: isDownMd ? 36 : 40 }),
4313
+ bitget: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(BitgetIcon, { size: isDownMd ? 36 : 40 }),
4314
+ okx: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(OKXIcon, { size: isDownMd ? 36 : 40 })
4235
4315
  };
4236
4316
  const { events, login } = useMatch();
4237
4317
  const [status, setStatus] = (0, import_react18.useState)("");
@@ -4323,11 +4403,11 @@ function TRONConnectModal({
4323
4403
  disconnect();
4324
4404
  }
4325
4405
  }, [props.isOpen]);
4326
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
4406
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
4327
4407
  id: type == "bind" ? "bindWith" : "loginWith"
4328
4408
  }, {
4329
4409
  name: "TRON"
4330
- }), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4410
+ }), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4331
4411
  WalletModalContent,
4332
4412
  {
4333
4413
  error,
@@ -4340,9 +4420,9 @@ function TRONConnectModal({
4340
4420
  setVisible: () => {
4341
4421
  }
4342
4422
  }
4343
- ) : /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "matchid-login-box", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "matchid-login-recommend-list", children: [
4423
+ ) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "matchid-login-box", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "matchid-login-recommend-list", children: [
4344
4424
  installedWallets.map((wallet2) => {
4345
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4425
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4346
4426
  RecommendItem,
4347
4427
  {
4348
4428
  icon: iconMaps[wallet2.walletKey],
@@ -4355,14 +4435,14 @@ function TRONConnectModal({
4355
4435
  );
4356
4436
  }),
4357
4437
  wallets.filter((wallet2) => !installedWallets.find((installedWallet) => installedWallet.walletKey == wallet2.walletKey)).map((wallet2) => {
4358
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4438
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4359
4439
  RecommendItem,
4360
4440
  {
4361
4441
  icon: iconMaps[wallet2.walletKey],
4362
4442
  name: wallet2.name,
4363
4443
  onClick: () => {
4364
4444
  },
4365
- footer: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Button, { size: "sm", onClick: () => {
4445
+ footer: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Button, { size: "sm", onClick: () => {
4366
4446
  window.open(wallet2.website);
4367
4447
  }, children: "Install" })
4368
4448
  },
@@ -4372,14 +4452,14 @@ function TRONConnectModal({
4372
4452
  ] }) }) });
4373
4453
  }
4374
4454
  function TRONModal(props) {
4375
- return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(TRONConnectModal, { ...props, type: props.type });
4455
+ return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(TRONConnectModal, { ...props, type: props.type });
4376
4456
  }
4377
4457
 
4378
4458
  // src/components/TONModal/index.tsx
4379
4459
  var import_react19 = __toESM(require("react"));
4380
4460
  var import_react_intl11 = require("react-intl");
4381
4461
  var import_ui_react = require("@tonconnect/ui-react");
4382
- var import_jsx_runtime72 = require("react/jsx-runtime");
4462
+ var import_jsx_runtime75 = require("react/jsx-runtime");
4383
4463
  function WalletContent2({
4384
4464
  onSuccess,
4385
4465
  type
@@ -4506,7 +4586,7 @@ function WalletContent2({
4506
4586
  }
4507
4587
  }
4508
4588
  }, [state]);
4509
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
4589
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4510
4590
  WalletModalContent,
4511
4591
  {
4512
4592
  connected,
@@ -4540,20 +4620,20 @@ function TONConnectModal({
4540
4620
  const intl = (0, import_react_intl11.useIntl)();
4541
4621
  const { endpoints, appid } = useLocalStore_default();
4542
4622
  const manifestUrl = `${endpoints.back}api/v1/wallet/ton?appid=${appid}&url=` + encodeURIComponent(window.location.origin);
4543
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
4623
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
4544
4624
  id: type == "bind" ? "bindWith" : "loginWith"
4545
4625
  }, {
4546
4626
  name: "TON"
4547
- }), children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
4627
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4548
4628
  import_ui_react.TonConnectUIProvider,
4549
4629
  {
4550
4630
  manifestUrl,
4551
- children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(WalletContent2, { onSuccess, type })
4631
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(WalletContent2, { onSuccess, type })
4552
4632
  }
4553
4633
  ) });
4554
4634
  }
4555
4635
  function TONModal(props) {
4556
- return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(TONConnectModal, { ...props });
4636
+ return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(TONConnectModal, { ...props });
4557
4637
  }
4558
4638
 
4559
4639
  // src/components/BTCModal/index.tsx
@@ -4776,7 +4856,7 @@ var useBTCWallet = () => {
4776
4856
  };
4777
4857
 
4778
4858
  // src/components/BTCModal/index.tsx
4779
- var import_jsx_runtime73 = require("react/jsx-runtime");
4859
+ var import_jsx_runtime76 = require("react/jsx-runtime");
4780
4860
  function BTCConnectModal({
4781
4861
  type = "login",
4782
4862
  onSuccess,
@@ -4786,10 +4866,10 @@ function BTCConnectModal({
4786
4866
  const intl = (0, import_react_intl12.useIntl)();
4787
4867
  const { wallets, installedWallets, chooseWallet, wallet, address, onConnect } = useBTCWallet();
4788
4868
  const iconMaps = {
4789
- leather: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(LeatherIcon, { size: isDownMd ? 36 : 40 }),
4790
- unisat: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(UnisatIcon, { size: isDownMd ? 36 : 40 }),
4791
- xverse: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(XverseIcon, { size: isDownMd ? 36 : 40 }),
4792
- phantom: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(PhantomIcon, { size: isDownMd ? 36 : 40 })
4869
+ leather: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(LeatherIcon, { size: isDownMd ? 36 : 40 }),
4870
+ unisat: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(UnisatIcon, { size: isDownMd ? 36 : 40 }),
4871
+ xverse: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(XverseIcon, { size: isDownMd ? 36 : 40 }),
4872
+ phantom: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(PhantomIcon, { size: isDownMd ? 36 : 40 })
4793
4873
  };
4794
4874
  const { events, login } = useMatch();
4795
4875
  const [status, setStatus] = (0, import_react21.useState)("");
@@ -4889,11 +4969,11 @@ function BTCConnectModal({
4889
4969
  statusRef.current = "";
4890
4970
  setError("");
4891
4971
  };
4892
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
4972
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
4893
4973
  id: type == "bind" ? "bindWith" : "loginWith"
4894
4974
  }, {
4895
4975
  name: "BTC"
4896
- }), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4976
+ }), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4897
4977
  WalletModalContent,
4898
4978
  {
4899
4979
  error,
@@ -4906,9 +4986,9 @@ function BTCConnectModal({
4906
4986
  setVisible: () => {
4907
4987
  }
4908
4988
  }
4909
- ) : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "matchid-login-box", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "matchid-login-recommend-list", children: [
4989
+ ) : /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "matchid-login-box", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "matchid-login-recommend-list", children: [
4910
4990
  installedWallets.map((wallet2) => {
4911
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4991
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4912
4992
  RecommendItem,
4913
4993
  {
4914
4994
  icon: iconMaps[wallet2.walletKey],
@@ -4921,14 +5001,14 @@ function BTCConnectModal({
4921
5001
  );
4922
5002
  }),
4923
5003
  wallets.filter((wallet2) => !installedWallets.find((installedWallet) => installedWallet.walletKey == wallet2.walletKey)).map((wallet2) => {
4924
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
5004
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4925
5005
  RecommendItem,
4926
5006
  {
4927
5007
  icon: iconMaps[wallet2.walletKey],
4928
5008
  name: wallet2.name,
4929
5009
  onClick: () => {
4930
5010
  },
4931
- footer: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Button, { size: "sm", onClick: () => {
5011
+ footer: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Button, { size: "sm", onClick: () => {
4932
5012
  window.open(wallet2.website);
4933
5013
  }, children: "Install" })
4934
5014
  },
@@ -4938,13 +5018,13 @@ function BTCConnectModal({
4938
5018
  ] }) }) });
4939
5019
  }
4940
5020
  function BTCModal(props) {
4941
- return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(BTCConnectModal, { ...props });
5021
+ return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(BTCConnectModal, { ...props });
4942
5022
  }
4943
5023
 
4944
5024
  // src/components/WalletModal/index.tsx
4945
5025
  var import_react22 = require("react");
4946
5026
  var import_react_intl13 = require("react-intl");
4947
- var import_jsx_runtime74 = require("react/jsx-runtime");
5027
+ var import_jsx_runtime77 = require("react/jsx-runtime");
4948
5028
  function WalletConnectModal({
4949
5029
  type,
4950
5030
  methods: _methods,
@@ -4962,13 +5042,13 @@ function WalletConnectModal({
4962
5042
  const platform = config.platform.map((p) => p.toLowerCase());
4963
5043
  return WALLET_METHODS.filter((m) => platform.includes(m));
4964
5044
  }, [config.platform, _methods]);
4965
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
5045
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
4966
5046
  id: type == "bind" ? "bindWith" : "loginWith"
4967
5047
  }, {
4968
5048
  name: ""
4969
- }), children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "matchid-login-box", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "matchid-login-recommend-list", children: methods.map((method, index) => {
5049
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "matchid-login-box", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "matchid-login-recommend-list", children: methods.map((method, index) => {
4970
5050
  const m = walletMap[method];
4971
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
5051
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4972
5052
  RecommendItem,
4973
5053
  {
4974
5054
  icon: m?.icon,
@@ -4982,12 +5062,12 @@ function WalletConnectModal({
4982
5062
  }) }) }) });
4983
5063
  }
4984
5064
  function WalletModal(props) {
4985
- return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(WalletConnectModal, { ...props });
5065
+ return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(WalletConnectModal, { ...props });
4986
5066
  }
4987
5067
 
4988
5068
  // src/components/AlphaAvatar/index.tsx
4989
5069
  var import_react23 = require("react");
4990
- var import_jsx_runtime75 = require("react/jsx-runtime");
5070
+ var import_jsx_runtime78 = require("react/jsx-runtime");
4991
5071
  function AlphaAvatar({ name, size = 40, className = "" }) {
4992
5072
  const [avatar, setAvatar] = (0, import_react23.useState)(void 0);
4993
5073
  (0, import_react23.useEffect)(() => {
@@ -4996,7 +5076,7 @@ function AlphaAvatar({ name, size = 40, className = "" }) {
4996
5076
  setAvatar(char);
4997
5077
  }
4998
5078
  }, [name]);
4999
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
5079
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
5000
5080
  width: size,
5001
5081
  height: size,
5002
5082
  fontSize: Math.ceil(size / 2)
@@ -5004,7 +5084,7 @@ function AlphaAvatar({ name, size = 40, className = "" }) {
5004
5084
  }
5005
5085
 
5006
5086
  // src/components/WalletAsset/index.tsx
5007
- var import_jsx_runtime76 = require("react/jsx-runtime");
5087
+ var import_jsx_runtime79 = require("react/jsx-runtime");
5008
5088
  function WalletAsset({
5009
5089
  onAssetClick,
5010
5090
  matchWalletAssetsOptions
@@ -5014,7 +5094,7 @@ function WalletAsset({
5014
5094
  list: walletAssets.mergedAssets
5015
5095
  });
5016
5096
  const { list } = useMatchChain();
5017
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "matchid-wallet-asset-list", children: matchWalletAssetList.list.map((n, index) => {
5097
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "matchid-wallet-asset-list", children: matchWalletAssetList.list.map((n, index) => {
5018
5098
  const clickFunc = onAssetClick && onAssetClick(n);
5019
5099
  const chain = list?.find((m) => m.id.toString() === n.chain_id);
5020
5100
  const getFooterColor = () => {
@@ -5029,11 +5109,11 @@ function WalletAsset({
5029
5109
  }
5030
5110
  return "";
5031
5111
  };
5032
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: `matchid-wallet-asset-item`, onClick: clickFunc, style: {
5112
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: `matchid-wallet-asset-item`, onClick: clickFunc, style: {
5033
5113
  cursor: clickFunc ? "pointer" : "default"
5034
5114
  }, children: [
5035
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "matchid-wallet-asset-logo", title: n.symbol || n.name || "", children: [
5036
- n.icon ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("img", { src: n.icon, alt: n.symbol, className: `matchid-wallet-asset-icon` }) : /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
5115
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "matchid-wallet-asset-logo", title: n.symbol || n.name || "", children: [
5116
+ n.icon ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("img", { src: n.icon, alt: n.symbol, className: `matchid-wallet-asset-icon` }) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
5037
5117
  AlphaAvatar,
5038
5118
  {
5039
5119
  className: `matchid-wallet-asset-icon`,
@@ -5041,12 +5121,12 @@ function WalletAsset({
5041
5121
  name: n.symbol || n.name || ""
5042
5122
  }
5043
5123
  ),
5044
- chain?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-wallet-asset-chain` })
5124
+ chain?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-wallet-asset-chain` })
5045
5125
  ] }),
5046
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: `matchid-wallet-asset-info`, children: [
5047
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: `matchid-wallet-asset-name`, children: n.symbol }),
5048
- "price" in n && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: `matchid-wallet-asset-content`, children: [
5049
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "matchid-wallet-asset-price", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
5126
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: `matchid-wallet-asset-info`, children: [
5127
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: `matchid-wallet-asset-name`, children: n.symbol }),
5128
+ "price" in n && /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: `matchid-wallet-asset-content`, children: [
5129
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "matchid-wallet-asset-price", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
5050
5130
  NumberFormatter,
5051
5131
  {
5052
5132
  value: n.price,
@@ -5054,7 +5134,7 @@ function WalletAsset({
5054
5134
  tFixNum: 2
5055
5135
  }
5056
5136
  ) }),
5057
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "matchid-wallet-asset-value", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
5137
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "matchid-wallet-asset-value", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
5058
5138
  NumberFormatter,
5059
5139
  {
5060
5140
  value: n.value,
@@ -5063,15 +5143,15 @@ function WalletAsset({
5063
5143
  }
5064
5144
  ) })
5065
5145
  ] }),
5066
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: `matchid-wallet-asset-footer`, children: [
5067
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: `matchid-wallet-asset-balance`, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
5146
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: `matchid-wallet-asset-footer`, children: [
5147
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: `matchid-wallet-asset-balance`, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
5068
5148
  NumberFormatter,
5069
5149
  {
5070
5150
  value: n.balance,
5071
5151
  tFixNum: 3
5072
5152
  }
5073
5153
  ) }),
5074
- "price_change_24h" in n && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: `matchid-wallet-asset-change ${getFooterColor()}`, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
5154
+ "price_change_24h" in n && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: `matchid-wallet-asset-change ${getFooterColor()}`, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
5075
5155
  NumberFormatter,
5076
5156
  {
5077
5157
  prefix: `${(n?.price_change_24h || 0) < 0 ? "-" : "+"} `,
@@ -5090,7 +5170,7 @@ function WalletAsset({
5090
5170
  var import_react24 = require("react");
5091
5171
  var import_viem3 = require("viem");
5092
5172
  var import_react_intl14 = require("react-intl");
5093
- var import_jsx_runtime77 = require("react/jsx-runtime");
5173
+ var import_jsx_runtime80 = require("react/jsx-runtime");
5094
5174
  function Input2({
5095
5175
  onChange,
5096
5176
  placeholder,
@@ -5100,8 +5180,8 @@ function Input2({
5100
5180
  error,
5101
5181
  size = "df"
5102
5182
  }) {
5103
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: `matchid-token-input-box ${"matchid-token-input-" + size}`, children: [
5104
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
5183
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: `matchid-token-input-box ${"matchid-token-input-" + size}`, children: [
5184
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
5105
5185
  "input",
5106
5186
  {
5107
5187
  placeholder,
@@ -5112,7 +5192,7 @@ function Input2({
5112
5192
  className: `matchid-token-input ${error ? "matchid-token-input-error" : ""}`
5113
5193
  }
5114
5194
  ),
5115
- error && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "matchid-token-input-error-text", children: error })
5195
+ error && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "matchid-token-input-error-text", children: error })
5116
5196
  ] });
5117
5197
  }
5118
5198
  function TokenSend({
@@ -5240,24 +5320,24 @@ function TokenSend({
5240
5320
  window.removeEventListener("message", receiveMessage);
5241
5321
  };
5242
5322
  }, []);
5243
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(ModalDrawer, { isOpen: true, onClose, zIndex, title: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react_intl14.FormattedMessage, { id: "send" }), onBack, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: `matchid-token-send-box`, children: [
5244
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "matchid-token-send-content", children: [
5245
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: `matchid-token-amount-content`, children: [
5246
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: `matchid-token-amount-header`, children: [
5247
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: `matchid-token-amount-title`, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react_intl14.FormattedMessage, { id: "amount" }) }),
5248
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: `matchid-token-amount-chain`, children: [
5249
- token.icon ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
5323
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(ModalDrawer, { isOpen: true, onClose, zIndex, title: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react_intl14.FormattedMessage, { id: "send" }), onBack, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: `matchid-token-send-box`, children: [
5324
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "matchid-token-send-content", children: [
5325
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: `matchid-token-amount-content`, children: [
5326
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: `matchid-token-amount-header`, children: [
5327
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: `matchid-token-amount-title`, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react_intl14.FormattedMessage, { id: "amount" }) }),
5328
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: `matchid-token-amount-chain`, children: [
5329
+ token.icon ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
5250
5330
  "img",
5251
5331
  {
5252
5332
  src: token?.icon,
5253
5333
  alt: token?.symbol,
5254
5334
  className: `matchid-token-amount-chain-icon`
5255
5335
  }
5256
- ) : /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(AlphaAvatar2, { name: token.symbol || token.name || "", size: 16 }),
5257
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { children: token?.symbol })
5336
+ ) : /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(AlphaAvatar2, { name: token.symbol || token.name || "", size: 16 }),
5337
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { children: token?.symbol })
5258
5338
  ] })
5259
5339
  ] }),
5260
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
5340
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
5261
5341
  Input2,
5262
5342
  {
5263
5343
  type: "text",
@@ -5270,18 +5350,18 @@ function TokenSend({
5270
5350
  error: error.amount || txError
5271
5351
  }
5272
5352
  ),
5273
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: `matchid-token-amount-footer`, children: [
5274
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: `matchid-token-amount-title`, children: [
5275
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react_intl14.FormattedMessage, { id: "balance" }),
5353
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: `matchid-token-amount-footer`, children: [
5354
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: `matchid-token-amount-title`, children: [
5355
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react_intl14.FormattedMessage, { id: "balance" }),
5276
5356
  ":"
5277
5357
  ] }),
5278
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: `matchid-token-amount-value`, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(NumberFormatter, { value: token.balance, tFixNum: 10, suffix: " " + token.symbol }) })
5358
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: `matchid-token-amount-value`, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(NumberFormatter, { value: token.balance, tFixNum: 10, suffix: " " + token.symbol }) })
5279
5359
  ] }),
5280
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(TransferIcon, { className: "matchid-token-amount-transfer" })
5360
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(TransferIcon, { className: "matchid-token-amount-transfer" })
5281
5361
  ] }),
5282
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: `matchid-token-address-content`, children: [
5283
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: `matchid-token-address-header`, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: `matchid-token-address-title`, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react_intl14.FormattedMessage, { id: "receiveTitle" }) }) }),
5284
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
5362
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: `matchid-token-address-content`, children: [
5363
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: `matchid-token-address-header`, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: `matchid-token-address-title`, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react_intl14.FormattedMessage, { id: "receiveTitle" }) }) }),
5364
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
5285
5365
  Input2,
5286
5366
  {
5287
5367
  type: "text",
@@ -5297,7 +5377,7 @@ function TokenSend({
5297
5377
  )
5298
5378
  ] })
5299
5379
  ] }),
5300
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
5380
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
5301
5381
  Button,
5302
5382
  {
5303
5383
  size: "lg",
@@ -5306,7 +5386,7 @@ function TokenSend({
5306
5386
  disabled: !canSend || !!txError,
5307
5387
  onClick: onNext,
5308
5388
  loading: loading || sending,
5309
- children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react_intl14.FormattedMessage, { id: "next" })
5389
+ children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react_intl14.FormattedMessage, { id: "next" })
5310
5390
  }
5311
5391
  )
5312
5392
  ] }) });
@@ -5314,7 +5394,7 @@ function TokenSend({
5314
5394
 
5315
5395
  // src/components/TokenDetail/index.tsx
5316
5396
  var import_react_intl15 = require("react-intl");
5317
- var import_jsx_runtime78 = require("react/jsx-runtime");
5397
+ var import_jsx_runtime81 = require("react/jsx-runtime");
5318
5398
  function TokenDetail({
5319
5399
  onClose,
5320
5400
  token
@@ -5324,41 +5404,41 @@ function TokenDetail({
5324
5404
  const chain = chainList?.find((m) => m.id.toString() === token.chain_id);
5325
5405
  const onSend = () => {
5326
5406
  modal.show((props) => {
5327
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(TokenSend, { onClose: () => {
5407
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(TokenSend, { onClose: () => {
5328
5408
  props.close();
5329
5409
  onClose();
5330
5410
  }, onBack: props.close, zIndex: props.zIndex, token });
5331
5411
  });
5332
5412
  };
5333
5413
  const intl = (0, import_react_intl15.useIntl)();
5334
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ModalDrawer, { isOpen: true, title: intl.formatMessage({
5414
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ModalDrawer, { isOpen: true, title: intl.formatMessage({
5335
5415
  id: "tokenDetails"
5336
- }), onClose, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: `matchid-token-detail`, children: [
5337
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: `matchid-token-main`, children: [
5338
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: `matchid-token-info`, children: [
5339
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: `matchid-token-logo`, children: [
5340
- token.icon ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("img", { src: token.icon, alt: token.symbol, className: `matchid-token-icon` }) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(AlphaAvatar2, { className: `matchid-token-icon`, size: 48, name: token.symbol || token.name || "" }),
5341
- chain?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-token-chain` })
5416
+ }), onClose, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: `matchid-token-detail`, children: [
5417
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: `matchid-token-main`, children: [
5418
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: `matchid-token-info`, children: [
5419
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: `matchid-token-logo`, children: [
5420
+ token.icon ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("img", { src: token.icon, alt: token.symbol, className: `matchid-token-icon` }) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(AlphaAvatar2, { className: `matchid-token-icon`, size: 48, name: token.symbol || token.name || "" }),
5421
+ chain?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-token-chain` })
5342
5422
  ] }),
5343
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: `matchid-token-name`, children: [
5344
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(NumberFormatter, { value: token.balance, tFixNum: 10 }),
5423
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: `matchid-token-name`, children: [
5424
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(NumberFormatter, { value: token.balance, tFixNum: 10 }),
5345
5425
  " ",
5346
5426
  token.symbol
5347
5427
  ] })
5348
5428
  ] }),
5349
- token.address.toLowerCase() != NATIVE_TOKEN_ADDRESS && /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: `matchid-token-contract`, children: [
5350
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "matchid-token-contract-title", children: "Contract address" }),
5351
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "matchid-token-contract-address", children: token.address })
5429
+ token.address.toLowerCase() != NATIVE_TOKEN_ADDRESS && /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: `matchid-token-contract`, children: [
5430
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "matchid-token-contract-title", children: "Contract address" }),
5431
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "matchid-token-contract-address", children: token.address })
5352
5432
  ] })
5353
5433
  ] }),
5354
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Button, { size: "lg", block: true, highlight: true, onClick: onSend, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react_intl15.FormattedMessage, { id: "send" }) })
5434
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Button, { size: "lg", block: true, highlight: true, onClick: onSend, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react_intl15.FormattedMessage, { id: "send" }) })
5355
5435
  ] }) });
5356
5436
  }
5357
5437
 
5358
5438
  // src/components/TokenSendList/index.tsx
5359
5439
  var import_react25 = require("react");
5360
5440
  var import_react_intl16 = require("react-intl");
5361
- var import_jsx_runtime79 = require("react/jsx-runtime");
5441
+ var import_jsx_runtime82 = require("react/jsx-runtime");
5362
5442
  function TokenSendList({ close }) {
5363
5443
  const isDownMd = useDownMd();
5364
5444
  const walletAssets = useMatchWalletAssets();
@@ -5370,16 +5450,16 @@ function TokenSendList({ close }) {
5370
5450
  const modal = useModal();
5371
5451
  const onNext = () => {
5372
5452
  checked && modal.show((props) => {
5373
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(TokenSend, { onClose: () => {
5453
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(TokenSend, { onClose: () => {
5374
5454
  props.close();
5375
5455
  close();
5376
5456
  }, onBack: props.close, zIndex: props.zIndex, token: checked });
5377
5457
  });
5378
5458
  };
5379
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "matchid-token-send-list-box", children: [
5380
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "matchid-token-send-list", children: matchWalletAssetList.list.map((n, index) => {
5459
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "matchid-token-send-list-box", children: [
5460
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "matchid-token-send-list", children: matchWalletAssetList.list.map((n, index) => {
5381
5461
  const chain = list?.find((m) => m.id.toString() === n.chain_id);
5382
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
5462
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
5383
5463
  "div",
5384
5464
  {
5385
5465
  className: `matchid-token-send-item ${checked?.address == n.address ? "matchid-token-send-chekced" : ""}`,
@@ -5387,10 +5467,10 @@ function TokenSendList({ close }) {
5387
5467
  setChecked(n);
5388
5468
  },
5389
5469
  children: [
5390
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Radio, { checked: checked?.address == n.address, size: isDownMd ? 18 : 24 }),
5391
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "matchid-token-send-content", children: [
5392
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "matchid-token-send-logo", children: [
5393
- n.icon ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("img", { src: n.icon, alt: n.symbol, className: `matchid-token-send-icon` }) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
5470
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Radio, { checked: checked?.address == n.address, size: isDownMd ? 18 : 24 }),
5471
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "matchid-token-send-content", children: [
5472
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "matchid-token-send-logo", children: [
5473
+ n.icon ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("img", { src: n.icon, alt: n.symbol, className: `matchid-token-send-icon` }) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
5394
5474
  AlphaAvatar,
5395
5475
  {
5396
5476
  className: `matchid-token-send-icon`,
@@ -5398,7 +5478,7 @@ function TokenSendList({ close }) {
5398
5478
  name: n.symbol || n.name || ""
5399
5479
  }
5400
5480
  ),
5401
- chain?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
5481
+ chain?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
5402
5482
  "img",
5403
5483
  {
5404
5484
  src: chain.iconUrl,
@@ -5407,9 +5487,9 @@ function TokenSendList({ close }) {
5407
5487
  }
5408
5488
  )
5409
5489
  ] }),
5410
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: `matchid-token-send-info`, children: [
5411
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: `matchid-token-send-name`, children: n.symbol }),
5412
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: `matchid-token-send-balance`, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(NumberFormatter, { value: n.balance, tFixNum: 3 }) })
5490
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: `matchid-token-send-info`, children: [
5491
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: `matchid-token-send-name`, children: n.symbol }),
5492
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: `matchid-token-send-balance`, children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(NumberFormatter, { value: n.balance, tFixNum: 3 }) })
5413
5493
  ] })
5414
5494
  ] })
5415
5495
  ]
@@ -5417,7 +5497,7 @@ function TokenSendList({ close }) {
5417
5497
  index
5418
5498
  );
5419
5499
  }) }),
5420
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Button, { size: "lg", highlight: true, block: true, disabled: !checked, onClick: onNext, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react_intl16.FormattedMessage, { id: "next" }) })
5500
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Button, { size: "lg", highlight: true, block: true, disabled: !checked, onClick: onNext, children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_react_intl16.FormattedMessage, { id: "next" }) })
5421
5501
  ] });
5422
5502
  }
5423
5503
 
@@ -5525,7 +5605,7 @@ function useHash({
5525
5605
 
5526
5606
  // src/components/TransactionList/index.tsx
5527
5607
  var import_react_intl17 = require("react-intl");
5528
- var import_jsx_runtime80 = require("react/jsx-runtime");
5608
+ var import_jsx_runtime83 = require("react/jsx-runtime");
5529
5609
  var Item = ({ data }) => {
5530
5610
  const { address } = useWallet();
5531
5611
  const isOut = data.from.toLowerCase() == address.toLowerCase();
@@ -5612,18 +5692,18 @@ var Item = ({ data }) => {
5612
5692
  }
5613
5693
  return chain?.nativeCurrency.symbol || chain?.nativeCurrency.name;
5614
5694
  }, [transferType, chain, contracts, chainId, data.to]);
5615
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
5695
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
5616
5696
  "a",
5617
5697
  {
5618
5698
  href: explorerLink(`tx/${data.hash}`),
5619
5699
  target: "_blank",
5620
5700
  className: `matchid-transaction-item`,
5621
5701
  children: [
5622
- /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: `matchid-transacton-item-container`, children: [
5623
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "matchid-transaction-item-icon", children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(ArrowSendIcon, { className: !isOut ? "rotate-180" : "" }) }),
5624
- /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: `matchid-transaction-item-details`, children: [
5625
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: `matchid-transaction-item-address`, children: formatAddress(to, 6, 4) }),
5626
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
5702
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: `matchid-transacton-item-container`, children: [
5703
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "matchid-transaction-item-icon", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(ArrowSendIcon, { className: !isOut ? "rotate-180" : "" }) }),
5704
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: `matchid-transaction-item-details`, children: [
5705
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: `matchid-transaction-item-address`, children: formatAddress(to, 6, 4) }),
5706
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
5627
5707
  "div",
5628
5708
  {
5629
5709
  className: `matchid-transaction-item-timestamp`,
@@ -5632,11 +5712,11 @@ var Item = ({ data }) => {
5632
5712
  )
5633
5713
  ] })
5634
5714
  ] }),
5635
- /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: `matchid-transaction-item-amount ${"matchid-transaction-item-" + status}`, children: [
5636
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(NumberFormatter, { value: amount, tFixNum: 6, prefix: isOut ? "-" : "+", suffix: " " + symbol }),
5637
- status == "loading" && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(LoadingIcon_default, { color: "#000000", size: 16, rotate: true }),
5638
- status == "success" && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(CheckRoundIcon, { size: 16 }),
5639
- status == "error" && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(InfoRoundIcon, { size: 16 })
5715
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: `matchid-transaction-item-amount ${"matchid-transaction-item-" + status}`, children: [
5716
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(NumberFormatter, { value: amount, tFixNum: 6, prefix: isOut ? "-" : "+", suffix: " " + symbol }),
5717
+ status == "loading" && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(LoadingIcon_default, { color: "#000000", size: 16, rotate: true }),
5718
+ status == "success" && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(CheckRoundIcon, { size: 16 }),
5719
+ status == "error" && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(InfoRoundIcon, { size: 16 })
5640
5720
  ] })
5641
5721
  ]
5642
5722
  }
@@ -5646,26 +5726,26 @@ function TransactionList({
5646
5726
  scrollableTarget
5647
5727
  }) {
5648
5728
  const { fetchMoreData, hasMore, items } = useMatchWalletRecords();
5649
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
5729
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
5650
5730
  import_react_infinite_scroll_component.default,
5651
5731
  {
5652
5732
  scrollableTarget,
5653
5733
  dataLength: items.length,
5654
5734
  next: fetchMoreData,
5655
5735
  hasMore,
5656
- loader: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "matchid-list-nomore", children: [
5657
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(LoadingIcon_default, { rotate: true, size: 16, color: "black" }),
5736
+ loader: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "matchid-list-nomore", children: [
5737
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(LoadingIcon_default, { rotate: true, size: 16, color: "black" }),
5658
5738
  "Loading..."
5659
5739
  ] }),
5660
- endMessage: items.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: `matchid-list-nomore`, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react_intl17.FormattedMessage, { id: "noMoreRecords" }) }) : /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: `matchid-list-nomore`, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react_intl17.FormattedMessage, { id: "noRecords" }) }),
5661
- children: items.length == 0 && !hasMore ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "mt-[150px]" }) : /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: `matchid-transaction-list`, children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Item, { data: item }, index)) })
5740
+ endMessage: items.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: `matchid-list-nomore`, children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_react_intl17.FormattedMessage, { id: "noMoreRecords" }) }) : /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: `matchid-list-nomore`, children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_react_intl17.FormattedMessage, { id: "noRecords" }) }),
5741
+ children: items.length == 0 && !hasMore ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "mt-[150px]" }) : /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: `matchid-transaction-list`, children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Item, { data: item }, index)) })
5662
5742
  }
5663
5743
  );
5664
5744
  }
5665
5745
 
5666
5746
  // src/ui/Modal/index.tsx
5667
5747
  var import_react_intl18 = require("react-intl");
5668
- var import_jsx_runtime81 = require("react/jsx-runtime");
5748
+ var import_jsx_runtime84 = require("react/jsx-runtime");
5669
5749
  function Modal({
5670
5750
  children,
5671
5751
  isOpen,
@@ -5673,10 +5753,10 @@ function Modal({
5673
5753
  zIndex = 100,
5674
5754
  className = ""
5675
5755
  }) {
5676
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: `matchid-modal ${className}`, style: {
5756
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: `matchid-modal ${className}`, style: {
5677
5757
  width
5678
5758
  }, children: [
5679
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "matchid-modal-mobile-header" }),
5759
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "matchid-modal-mobile-header" }),
5680
5760
  children
5681
5761
  ] }) });
5682
5762
  }
@@ -5690,13 +5770,13 @@ function ModalWithHeader({
5690
5770
  ...props
5691
5771
  }) {
5692
5772
  const isDownMd = useDownMd();
5693
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(Modal, { ...props, children: [
5694
- /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: `matchid-modal-header ${showBorder ? "matchid-modal-header-border" : ""}`, children: [
5695
- /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "matchid-modal-header-content", children: [
5696
- onBack && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ArrowLeftIcon, { height: isDownMd ? 20 : 25, width: isDownMd ? 20 : 24, className: "matchid-modal-header-back", onClick: onBack }),
5697
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "matchid-modal-header-title", children: title })
5773
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(Modal, { ...props, children: [
5774
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: `matchid-modal-header ${showBorder ? "matchid-modal-header-border" : ""}`, children: [
5775
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "matchid-modal-header-content", children: [
5776
+ onBack && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ArrowLeftIcon, { height: isDownMd ? 20 : 25, width: isDownMd ? 20 : 24, className: "matchid-modal-header-back", onClick: onBack }),
5777
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: "matchid-modal-header-title", children: title })
5698
5778
  ] }),
5699
- onClose && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30, className: "matchid-modal-header-close", onClick: onClose })
5779
+ onClose && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30, className: "matchid-modal-header-close", onClick: onClose })
5700
5780
  ] }),
5701
5781
  children
5702
5782
  ] });
@@ -5731,17 +5811,17 @@ function ConfirmModal({
5731
5811
  setLoading(false);
5732
5812
  }
5733
5813
  };
5734
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ModalWithHeader, { isOpen, onClose, title, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "matchid-confirm-modal", children: [
5735
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "matchid-w-full", children }),
5736
- error && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: `matchid-error`, children: error }),
5737
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Button, { size: "lg", onClick: onSubmit, loading, block: true, highlight: true, children: confirmText ?? intl.formatMessage({
5814
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ModalWithHeader, { isOpen, onClose, title, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "matchid-confirm-modal", children: [
5815
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "matchid-w-full", children }),
5816
+ error && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: `matchid-error`, children: error }),
5817
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Button, { size: "lg", onClick: onSubmit, loading, block: true, highlight: true, children: confirmText ?? intl.formatMessage({
5738
5818
  id: "Confirm"
5739
5819
  }) })
5740
5820
  ] }) });
5741
5821
  }
5742
5822
 
5743
5823
  // src/ui/ModalDrawer/index.tsx
5744
- var import_jsx_runtime82 = require("react/jsx-runtime");
5824
+ var import_jsx_runtime85 = require("react/jsx-runtime");
5745
5825
  function ModalDrawer({
5746
5826
  title,
5747
5827
  drawerTitleVisible = true,
@@ -5749,13 +5829,13 @@ function ModalDrawer({
5749
5829
  }) {
5750
5830
  const isDownMd = useDownMd();
5751
5831
  if (isDownMd) {
5752
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ModalWithHeader, { ...props, title });
5832
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ModalWithHeader, { ...props, title });
5753
5833
  }
5754
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Drawer, { ...props, title: drawerTitleVisible ? title : null });
5834
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Drawer, { ...props, title: drawerTitleVisible ? title : null });
5755
5835
  }
5756
5836
 
5757
5837
  // src/ui/HashPanel/index.tsx
5758
- var import_jsx_runtime83 = require("react/jsx-runtime");
5838
+ var import_jsx_runtime86 = require("react/jsx-runtime");
5759
5839
  function HashPanel({
5760
5840
  hash,
5761
5841
  chain,
@@ -5815,14 +5895,14 @@ function HashPanel({
5815
5895
  }
5816
5896
  }, [hashQuery.data]);
5817
5897
  const link = chain ? `${chain?.blockExplorers?.default.url}/tx/${hash}` : "";
5818
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
5898
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
5819
5899
  ModalDrawer,
5820
5900
  {
5821
5901
  isOpen,
5822
5902
  showClose: true,
5823
5903
  onClose,
5824
5904
  zIndex,
5825
- title: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
5905
+ title: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
5826
5906
  "div",
5827
5907
  {
5828
5908
  className: "matchid-hashpanel-header",
@@ -5832,32 +5912,32 @@ function HashPanel({
5832
5912
  children: statusValue.text
5833
5913
  }
5834
5914
  ),
5835
- children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "matchid-hashpanel-box", children: [
5836
- /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "matchid-hashpanel-content", children: [
5837
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: `matchid-hashpanel-status`, style: {
5915
+ children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "matchid-hashpanel-box", children: [
5916
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "matchid-hashpanel-content", children: [
5917
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: `matchid-hashpanel-status`, style: {
5838
5918
  color: statusValue.color
5839
5919
  }, children: statusValue.text }),
5840
- statusValue.lottie && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Lottie_default, { animationData: statusValue.lottie, style: {
5920
+ statusValue.lottie && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Lottie_default, { animationData: statusValue.lottie, style: {
5841
5921
  width: "96px",
5842
5922
  height: "96px"
5843
5923
  } }),
5844
- hash && /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "matchid-hashpanel-hash", children: [
5924
+ hash && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "matchid-hashpanel-hash", children: [
5845
5925
  "Hash:",
5846
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("a", { href: link, target: "_blank", children: hash })
5926
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("a", { href: link, target: "_blank", children: hash })
5847
5927
  ] }),
5848
- error && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "matchid-hashpanel-text", children: error })
5928
+ error && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "matchid-hashpanel-text", children: error })
5849
5929
  ] }),
5850
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Button, { onClick: onClose, size: "lg", block: true, children: "Back" })
5930
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Button, { onClick: onClose, size: "lg", block: true, children: "Back" })
5851
5931
  ] })
5852
5932
  }
5853
5933
  );
5854
5934
  }
5855
5935
  function HashPanel_default(props) {
5856
- return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(HashPanel, { ...props });
5936
+ return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(HashPanel, { ...props });
5857
5937
  }
5858
5938
 
5859
5939
  // src/ui/Switch/index.tsx
5860
- var import_jsx_runtime84 = require("react/jsx-runtime");
5940
+ var import_jsx_runtime87 = require("react/jsx-runtime");
5861
5941
  function Switch({
5862
5942
  size = "default",
5863
5943
  checked = false,
@@ -5872,12 +5952,12 @@ function Switch({
5872
5952
  onChange && onChange(!checked);
5873
5953
  }
5874
5954
  };
5875
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { onClick, className: `matchid-switch matchid-switch-${size} ${checked ? "matchid-switch-checked" : ""} ${disabled ? "matchid-switch-disabled" : ""} ${loading ? "matchid-switch-loading" : ""}`, ...props, children: loading ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(LoadingIcon_default, { className: "matchid-switch-loading-icon", size: size == "default" ? 24 : 18, color: "var(--matchid-swicth-loading-color)" }) : /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "matchid-switch-ball" }) });
5955
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { onClick, className: `matchid-switch matchid-switch-${size} ${checked ? "matchid-switch-checked" : ""} ${disabled ? "matchid-switch-disabled" : ""} ${loading ? "matchid-switch-loading" : ""}`, ...props, children: loading ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(LoadingIcon_default, { className: "matchid-switch-loading-icon", size: size == "default" ? 24 : 18, color: "var(--matchid-swicth-loading-color)" }) : /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "matchid-switch-ball" }) });
5876
5956
  }
5877
5957
 
5878
5958
  // src/ui/AlphaAvatar/index.tsx
5879
5959
  var import_react29 = require("react");
5880
- var import_jsx_runtime85 = require("react/jsx-runtime");
5960
+ var import_jsx_runtime88 = require("react/jsx-runtime");
5881
5961
  function AlphaAvatar2({
5882
5962
  name,
5883
5963
  size = "default",
@@ -5894,7 +5974,7 @@ function AlphaAvatar2({
5894
5974
  return "";
5895
5975
  }, [name]);
5896
5976
  const numberSize = typeof size === "number" ? size : size === "sm" ? 24 : size === "default" ? 40 : 64;
5897
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
5977
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
5898
5978
  width: numberSize,
5899
5979
  height: numberSize,
5900
5980
  fontSize: Math.ceil(numberSize / 2),
@@ -5903,7 +5983,7 @@ function AlphaAvatar2({
5903
5983
  }
5904
5984
 
5905
5985
  // src/ui/Radio/index.tsx
5906
- var import_jsx_runtime86 = require("react/jsx-runtime");
5986
+ var import_jsx_runtime89 = require("react/jsx-runtime");
5907
5987
  function Radio({
5908
5988
  checked = false,
5909
5989
  onChange,
@@ -5912,20 +5992,20 @@ function Radio({
5912
5992
  className = "",
5913
5993
  style = {}
5914
5994
  }) {
5915
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { onClick: onChange, className: `matchid-radio ${className} ${checked ? "matchid-radio-checked" : ""}`, style: {
5995
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { onClick: onChange, className: `matchid-radio ${className} ${checked ? "matchid-radio-checked" : ""}`, style: {
5916
5996
  width: size,
5917
5997
  height: size,
5918
5998
  ...style,
5919
5999
  // @ts-ignore
5920
6000
  "--matchid-radio-checked": color
5921
- }, children: checked && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: `matchid-radio-content`, style: {
6001
+ }, children: checked && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: `matchid-radio-content`, style: {
5922
6002
  width: Math.floor(size * 0.7),
5923
6003
  height: Math.floor(size * 0.7)
5924
6004
  } }) });
5925
6005
  }
5926
6006
 
5927
6007
  // src/ui/Skeleton/index.tsx
5928
- var import_jsx_runtime87 = require("react/jsx-runtime");
6008
+ var import_jsx_runtime90 = require("react/jsx-runtime");
5929
6009
  var Skeleton = ({
5930
6010
  style = {},
5931
6011
  className = "",
@@ -5936,7 +6016,7 @@ var Skeleton = ({
5936
6016
  children
5937
6017
  }) => {
5938
6018
  if (!loading) {
5939
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_jsx_runtime87.Fragment, { children });
6019
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_jsx_runtime90.Fragment, { children });
5940
6020
  }
5941
6021
  const skeletonStyle = {
5942
6022
  width,
@@ -5944,7 +6024,7 @@ var Skeleton = ({
5944
6024
  borderRadius: radius,
5945
6025
  ...style
5946
6026
  };
5947
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
6027
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
5948
6028
  "div",
5949
6029
  {
5950
6030
  className: "matchid-skeleton " + className,
@@ -5955,10 +6035,10 @@ var Skeleton = ({
5955
6035
  var Skeleton_default = Skeleton;
5956
6036
 
5957
6037
  // src/ui/Tabs/index.tsx
5958
- var import_jsx_runtime88 = require("react/jsx-runtime");
6038
+ var import_jsx_runtime91 = require("react/jsx-runtime");
5959
6039
  function Tabs(props) {
5960
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: `matchid-tabs`, children: props.tabs.map((tab, index) => {
5961
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { onClick: () => props.setActiveTab(index), className: `matchid-tab ${props.activeTab === index ? "matchid-tab-active" : ""}`, children: tab }, index);
6040
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: `matchid-tabs`, children: props.tabs.map((tab, index) => {
6041
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { onClick: () => props.setActiveTab(index), className: `matchid-tab ${props.activeTab === index ? "matchid-tab-active" : ""}`, children: tab }, index);
5962
6042
  }) });
5963
6043
  }
5964
6044
 
@@ -5975,8 +6055,17 @@ var LazyLottie = (props) => {
5975
6055
  };
5976
6056
  var Lottie_default = LazyLottie;
5977
6057
 
6058
+ // src/ui/Checkbox/index.tsx
6059
+ var import_jsx_runtime92 = require("react/jsx-runtime");
6060
+ function Checkbox({
6061
+ checked = false,
6062
+ onChange
6063
+ }) {
6064
+ return checked ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(CheckboxCheckedIcon, { onClick: () => onChange?.(false) }) : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(CheckboxIcon, { onClick: () => onChange?.(true) });
6065
+ }
6066
+
5978
6067
  // src/context/ModalContext.tsx
5979
- var import_jsx_runtime89 = require("react/jsx-runtime");
6068
+ var import_jsx_runtime93 = require("react/jsx-runtime");
5980
6069
  var ModalContext = (0, import_react30.createContext)(null);
5981
6070
  function ModalProvider({ children }) {
5982
6071
  const [modalState, setModalState] = (0, import_react30.useState)({
@@ -5989,15 +6078,11 @@ function ModalProvider({ children }) {
5989
6078
  return highestIndexRef.current;
5990
6079
  }, []);
5991
6080
  const closeModal = (0, import_react30.useCallback)((index) => {
5992
- console.log("closeModal", index);
5993
6081
  setModalState((prevState) => ({
5994
6082
  modals: prevState.modals.filter((modal) => modal.index !== index),
5995
6083
  highestZIndex: prevState.highestZIndex
5996
6084
  }));
5997
6085
  }, []);
5998
- (0, import_react30.useEffect)(() => {
5999
- console.log("modalState", modalState);
6000
- }, [modalState]);
6001
6086
  const show = (0, import_react30.useCallback)((content, index) => {
6002
6087
  setModalState((prevState) => {
6003
6088
  const modalIndex = index ?? getNextIndex();
@@ -6024,7 +6109,7 @@ function ModalProvider({ children }) {
6024
6109
  index: modalIndex,
6025
6110
  zIndex: newZIndex,
6026
6111
  close: () => closeModal(modalIndex),
6027
- content: ({ close, zIndex }) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(ModalDrawer, { showClose: true, isOpen: true, onClose: close, title: props.title, zIndex, onBack: props.onBack, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(props.content, { close, zIndex }) })
6112
+ content: ({ close, zIndex }) => /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(ModalDrawer, { showClose: true, isOpen: true, onClose: close, title: props.title, zIndex, onBack: props.onBack, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(props.content, { close, zIndex }) })
6028
6113
  }],
6029
6114
  highestZIndex: newZIndex
6030
6115
  };
@@ -6032,11 +6117,11 @@ function ModalProvider({ children }) {
6032
6117
  }, [getNextIndex, closeModal]);
6033
6118
  const modalElements = modalState.modals.map(
6034
6119
  (modal) => modal.visible ? (0, import_react_dom.createPortal)(
6035
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(modal.content, { zIndex: modal.zIndex, close: modal.close }, modal.index),
6120
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(modal.content, { zIndex: modal.zIndex, close: modal.close }, modal.index),
6036
6121
  document.body
6037
6122
  ) : null
6038
6123
  );
6039
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(ModalContext.Provider, { value: { show, open }, children: [
6124
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(ModalContext.Provider, { value: { show, open }, children: [
6040
6125
  children,
6041
6126
  modalElements
6042
6127
  ] });
@@ -6080,7 +6165,7 @@ var useTransactionStore = (0, import_zustand5.create)((0, import_middleware3.dev
6080
6165
  var useTransactionStore_default = useTransactionStore;
6081
6166
 
6082
6167
  // src/hooks/useWallet.tsx
6083
- var import_jsx_runtime90 = require("react/jsx-runtime");
6168
+ var import_jsx_runtime94 = require("react/jsx-runtime");
6084
6169
  var AppClientId = "react-sdk-" + getVersion();
6085
6170
  function useWallet() {
6086
6171
  const { address, wallet: walletConfig } = useLocalStore_default();
@@ -6254,12 +6339,12 @@ function useWallet() {
6254
6339
  address: evmAccount.address
6255
6340
  });
6256
6341
  modal.show((props) => {
6257
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, hash: txHash, chain: _chain });
6342
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, hash: txHash, chain: _chain });
6258
6343
  });
6259
6344
  return txHash;
6260
6345
  } catch (error) {
6261
6346
  modal.show((props) => {
6262
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, error: typeof error == "string" ? error : error.details || error.message, chain: _chain });
6347
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, error: typeof error == "string" ? error : error.details || error.message, chain: _chain });
6263
6348
  });
6264
6349
  throw error;
6265
6350
  }
@@ -6337,7 +6422,7 @@ function useCopyClipboard(timeout = 500) {
6337
6422
  // src/context/ToastContext.tsx
6338
6423
  var import_react33 = require("react");
6339
6424
  var import_react_dom2 = require("react-dom");
6340
- var import_jsx_runtime91 = require("react/jsx-runtime");
6425
+ var import_jsx_runtime95 = require("react/jsx-runtime");
6341
6426
  var ToastContext = (0, import_react33.createContext)(null);
6342
6427
  function ToastProvider({ children, zIndex = 299 }) {
6343
6428
  const [toasts, setToasts] = (0, import_react33.useState)([]);
@@ -6350,28 +6435,28 @@ function ToastProvider({ children, zIndex = 299 }) {
6350
6435
  setTimeout(() => removeToast(id), timeout);
6351
6436
  }, [removeToast]);
6352
6437
  const success = (0, import_react33.useCallback)((text, timeout) => {
6353
- show({ icon: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(CheckRoundIcon, { color: "#2FCC00", size: 24 }), text, timeout });
6438
+ show({ icon: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(CheckRoundIcon, { color: "#2FCC00", size: 24 }), text, timeout });
6354
6439
  }, [show]);
6355
6440
  const error = (0, import_react33.useCallback)((text, timeout) => {
6356
- show({ icon: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(ErrorRoundIcon, { size: 24 }), text, timeout });
6441
+ show({ icon: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(ErrorRoundIcon, { size: 24 }), text, timeout });
6357
6442
  }, [show]);
6358
6443
  const ToastComponent = (0, import_react_dom2.createPortal)(
6359
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: "matchid-toast-box", style: {
6444
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "matchid-toast-box", style: {
6360
6445
  zIndex
6361
- }, children: toasts.reverse().map(({ id, icon, text }) => /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
6446
+ }, children: toasts.reverse().map(({ id, icon, text }) => /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
6362
6447
  "div",
6363
6448
  {
6364
6449
  className: "matchid-toast",
6365
6450
  children: [
6366
- icon && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { children: icon }),
6367
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { children: text })
6451
+ icon && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { children: icon }),
6452
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { children: text })
6368
6453
  ]
6369
6454
  },
6370
6455
  id
6371
6456
  )) }),
6372
6457
  document.body
6373
6458
  );
6374
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(ToastContext.Provider, { value: { show, success, error }, children: [
6459
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(ToastContext.Provider, { value: { show, success, error }, children: [
6375
6460
  children,
6376
6461
  ToastComponent
6377
6462
  ] });
@@ -6516,7 +6601,7 @@ function useWalletAssetListQuery({
6516
6601
  var import_react34 = require("react");
6517
6602
  var import_viem10 = require("viem");
6518
6603
  var import_react_intl19 = require("react-intl");
6519
- var import_jsx_runtime92 = require("react/jsx-runtime");
6604
+ var import_jsx_runtime96 = require("react/jsx-runtime");
6520
6605
  function useMatchChain() {
6521
6606
  const chainListQuery = useChainListQuery();
6522
6607
  const modal = useModal();
@@ -6547,28 +6632,28 @@ function useMatchChain() {
6547
6632
  const { chainId: storeChainId2, setChainId: setChainId2 } = useLocalStore_default();
6548
6633
  const [selectedChainId, setSelectedChainId] = (0, import_react34.useState)(storeChainId2);
6549
6634
  const isDownMd = useDownMd();
6550
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: `matchid-change-network-box`, children: [
6551
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: `matchid-change-network-list`, children: chainListQuery.data?.map((item, index) => {
6552
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
6635
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: `matchid-change-network-box`, children: [
6636
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: `matchid-change-network-list`, children: chainListQuery.data?.map((item, index) => {
6637
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
6553
6638
  "div",
6554
6639
  {
6555
6640
  onClick: () => setSelectedChainId(item.id),
6556
6641
  className: `matchid-change-network-item ${selectedChainId == item.id ? "matchid-change-network-selected" : ""}`,
6557
6642
  children: [
6558
- /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: `matchid-change-network-item-content`, children: [
6559
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("img", { src: item.iconUrl, className: `matchid-change-network-item-icon` }),
6560
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: "matchid-change-network-item-name", children: item.name })
6643
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: `matchid-change-network-item-content`, children: [
6644
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("img", { src: item.iconUrl, className: `matchid-change-network-item-icon` }),
6645
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { className: "matchid-change-network-item-name", children: item.name })
6561
6646
  ] }),
6562
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Radio, { checked: selectedChainId === item.id, size: isDownMd ? 18 : 24 })
6647
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Radio, { checked: selectedChainId === item.id, size: isDownMd ? 18 : 24 })
6563
6648
  ]
6564
6649
  },
6565
6650
  index
6566
6651
  );
6567
6652
  }) }),
6568
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Button, { size: "lg", highlight: true, onClick: () => {
6653
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Button, { size: "lg", highlight: true, onClick: () => {
6569
6654
  setChainId2(selectedChainId || 0);
6570
6655
  close();
6571
- }, block: true, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_react_intl19.FormattedMessage, { id: "confirm" }) })
6656
+ }, block: true, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_react_intl19.FormattedMessage, { id: "confirm" }) })
6572
6657
  ] });
6573
6658
  }
6574
6659
  const showChangeNetwork = () => {
@@ -6641,7 +6726,7 @@ function useIsContract({
6641
6726
  }
6642
6727
 
6643
6728
  // src/components/ImportToken/index.tsx
6644
- var import_jsx_runtime93 = require("react/jsx-runtime");
6729
+ var import_jsx_runtime97 = require("react/jsx-runtime");
6645
6730
  function ImportToken({ close }) {
6646
6731
  const [status, setStatus] = (0, import_react35.useState)("");
6647
6732
  const { token } = useUserInfo();
@@ -6752,22 +6837,22 @@ function ImportToken({ close }) {
6752
6837
  enabled: canImport
6753
6838
  });
6754
6839
  if (status == "success" || status == "fail") {
6755
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: `matchid-import-token-result matchid-flex`, children: [
6756
- /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: `matchid-import-token-result-box matchid-flex`, children: [
6757
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: `matchid-import-token-result-img`, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Lottie_default, { animationData: status == "success" ? success_default : fail_default, style: {
6840
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: `matchid-import-token-result matchid-flex`, children: [
6841
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: `matchid-import-token-result-box matchid-flex`, children: [
6842
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: `matchid-import-token-result-img`, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Lottie_default, { animationData: status == "success" ? success_default : fail_default, style: {
6758
6843
  width: "96px",
6759
6844
  height: "96px"
6760
6845
  } }) }),
6761
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: `matchid-import-token-result-text matchid-import-token-result-text-${status}`, children: status == "success" ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react_intl20.FormattedMessage, { id: "importSuccess" }) : /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react_intl20.FormattedMessage, { id: "importFail" }) })
6846
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: `matchid-import-token-result-text matchid-import-token-result-text-${status}`, children: status == "success" ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_react_intl20.FormattedMessage, { id: "importSuccess" }) : /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_react_intl20.FormattedMessage, { id: "importFail" }) })
6762
6847
  ] }),
6763
- status == "success" ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Button, { size: "lg", onClick: close, block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react_intl20.FormattedMessage, { id: "close" }) }) : /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Button, { size: "lg", onClick: () => setStatus(""), block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react_intl20.FormattedMessage, { id: "back" }) })
6848
+ status == "success" ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Button, { size: "lg", onClick: close, block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_react_intl20.FormattedMessage, { id: "close" }) }) : /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Button, { size: "lg", onClick: () => setStatus(""), block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_react_intl20.FormattedMessage, { id: "back" }) })
6764
6849
  ] });
6765
6850
  }
6766
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: `matchid-import-token`, children: [
6767
- /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "matchid-import-token-form", children: [
6768
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Field, { label: intl.formatMessage({
6851
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: `matchid-import-token`, children: [
6852
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "matchid-import-token-form", children: [
6853
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Field, { label: intl.formatMessage({
6769
6854
  id: "tokenSmartContract"
6770
- }), error: error.address ? error.address : isContractQuery.isFetched && !isContractQuery.isLoading && !isContractQuery.data && canImport ? "Address isn't a contract address" : "", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
6855
+ }), error: error.address ? error.address : isContractQuery.isFetched && !isContractQuery.isLoading && !isContractQuery.data && canImport ? "Address isn't a contract address" : "", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
6771
6856
  Input,
6772
6857
  {
6773
6858
  placeholder: intl.formatMessage({
@@ -6778,9 +6863,9 @@ function ImportToken({ close }) {
6778
6863
  maxLength: 42
6779
6864
  }
6780
6865
  ) }),
6781
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Field, { label: intl.formatMessage({
6866
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Field, { label: intl.formatMessage({
6782
6867
  id: "tokenSymbol"
6783
- }), error: error.symbol, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
6868
+ }), error: error.symbol, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
6784
6869
  Input,
6785
6870
  {
6786
6871
  placeholder: intl.formatMessage({
@@ -6791,9 +6876,9 @@ function ImportToken({ close }) {
6791
6876
  maxLength: 16
6792
6877
  }
6793
6878
  ) }),
6794
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Field, { label: intl.formatMessage({
6879
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Field, { label: intl.formatMessage({
6795
6880
  id: "tokenDecimals"
6796
- }), error: error.decimals, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
6881
+ }), error: error.decimals, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
6797
6882
  Input,
6798
6883
  {
6799
6884
  placeholder: intl.formatMessage({
@@ -6805,7 +6890,7 @@ function ImportToken({ close }) {
6805
6890
  }
6806
6891
  ) })
6807
6892
  ] }),
6808
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
6893
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
6809
6894
  Button,
6810
6895
  {
6811
6896
  size: "lg",
@@ -6814,14 +6899,14 @@ function ImportToken({ close }) {
6814
6899
  loading: loading || isContractQuery.isLoading,
6815
6900
  disabled: !canImport || !isContractQuery.data,
6816
6901
  highlight: true,
6817
- children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react_intl20.FormattedMessage, { id: "import" })
6902
+ children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_react_intl20.FormattedMessage, { id: "import" })
6818
6903
  }
6819
6904
  )
6820
6905
  ] });
6821
6906
  }
6822
6907
 
6823
6908
  // src/hooks/useMatchWallet.tsx
6824
- var import_jsx_runtime94 = require("react/jsx-runtime");
6909
+ var import_jsx_runtime98 = require("react/jsx-runtime");
6825
6910
  var ReceiveModal = () => {
6826
6911
  const chain = useMatchChain();
6827
6912
  const { address } = useWallet();
@@ -6835,10 +6920,10 @@ var ReceiveModal = () => {
6835
6920
  }));
6836
6921
  };
6837
6922
  const chainLink = chain.explorerLink("address/" + address);
6838
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: `matchid-receive-modal`, children: [
6839
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "matchid-receive-container", children: [
6840
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: `matchid-receive-text`, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_intl21.FormattedMessage, { id: "receiveQrcode" }) }),
6841
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: `matchid-qr-container`, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
6923
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: `matchid-receive-modal`, children: [
6924
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "matchid-receive-container", children: [
6925
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: `matchid-receive-text`, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_react_intl21.FormattedMessage, { id: "receiveQrcode" }) }),
6926
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: `matchid-qr-container`, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
6842
6927
  import_react_qrcode.QRCode,
6843
6928
  {
6844
6929
  margin: "0",
@@ -6846,7 +6931,7 @@ var ReceiveModal = () => {
6846
6931
  value: address
6847
6932
  }
6848
6933
  ) }),
6849
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
6934
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
6850
6935
  "a",
6851
6936
  {
6852
6937
  href: chainLink,
@@ -6856,7 +6941,7 @@ var ReceiveModal = () => {
6856
6941
  }
6857
6942
  )
6858
6943
  ] }),
6859
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Button, { size: "lg", onClick: onCopy, block: true, highlight: true, disabled: copied, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
6944
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Button, { size: "lg", onClick: onCopy, block: true, highlight: true, disabled: copied, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
6860
6945
  import_react_intl21.FormattedMessage,
6861
6946
  {
6862
6947
  id: "copyAddress"
@@ -7480,7 +7565,7 @@ function useTransaction({
7480
7565
  // src/components/CEXBindModal/index.tsx
7481
7566
  var import_react39 = require("react");
7482
7567
  var import_react_intl22 = require("react-intl");
7483
- var import_jsx_runtime95 = require("react/jsx-runtime");
7568
+ var import_jsx_runtime99 = require("react/jsx-runtime");
7484
7569
  function CEXBindModal({
7485
7570
  onClose,
7486
7571
  type,
@@ -7535,20 +7620,20 @@ function CEXBindModal({
7535
7620
  setLoading(false);
7536
7621
  }
7537
7622
  };
7538
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(ModalWithHeader, { showClose: true, isOpen, onClose, title: intl.formatMessage({
7623
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(ModalWithHeader, { showClose: true, isOpen, onClose, title: intl.formatMessage({
7539
7624
  id: "CEXBindTitle"
7540
7625
  }, {
7541
7626
  type
7542
- }), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "matchid-cex-modal", children: [
7543
- /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { children: [
7544
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_intl22.FormattedMessage, { id: "CEXBindAttention" }) }),
7545
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_intl22.FormattedMessage, { id: "CEXBindTips1" }) }),
7546
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_intl22.FormattedMessage, { id: "CEXBindTips2" }) }),
7547
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_intl22.FormattedMessage, { id: "CEXBindTips3" }) })
7627
+ }), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "matchid-cex-modal", children: [
7628
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { children: [
7629
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_intl22.FormattedMessage, { id: "CEXBindAttention" }) }),
7630
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_intl22.FormattedMessage, { id: "CEXBindTips1" }) }),
7631
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_intl22.FormattedMessage, { id: "CEXBindTips2" }) }),
7632
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_intl22.FormattedMessage, { id: "CEXBindTips3" }) })
7548
7633
  ] }),
7549
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Field, { label: intl.formatMessage({
7634
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Field, { label: intl.formatMessage({
7550
7635
  id: "CEXBindApiKey"
7551
- }), children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
7636
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
7552
7637
  Input,
7553
7638
  {
7554
7639
  value: key,
@@ -7556,9 +7641,9 @@ function CEXBindModal({
7556
7641
  placeholder: "**** **** ****"
7557
7642
  }
7558
7643
  ) }),
7559
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Field, { label: intl.formatMessage({
7644
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Field, { label: intl.formatMessage({
7560
7645
  id: "CEXBindApiSecretKey"
7561
- }), error: !needPassphrase && error, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
7646
+ }), error: !needPassphrase && error, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
7562
7647
  Input,
7563
7648
  {
7564
7649
  value: secret,
@@ -7566,9 +7651,9 @@ function CEXBindModal({
7566
7651
  placeholder: "**** **** ****"
7567
7652
  }
7568
7653
  ) }),
7569
- needPassphrase && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Field, { error, label: intl.formatMessage({
7654
+ needPassphrase && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Field, { error, label: intl.formatMessage({
7570
7655
  id: "CEXBindApiPassphrase"
7571
- }), children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
7656
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
7572
7657
  Input,
7573
7658
  {
7574
7659
  value: APIPassphrase,
@@ -7576,7 +7661,7 @@ function CEXBindModal({
7576
7661
  placeholder: "**** **** ****"
7577
7662
  }
7578
7663
  ) }),
7579
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
7664
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
7580
7665
  Button,
7581
7666
  {
7582
7667
  onClick: SubmitApi,
@@ -7584,7 +7669,7 @@ function CEXBindModal({
7584
7669
  block: true,
7585
7670
  loading,
7586
7671
  disabled: !key || !secret,
7587
- children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_intl22.FormattedMessage, { id: "continue" })
7672
+ children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_intl22.FormattedMessage, { id: "continue" })
7588
7673
  }
7589
7674
  )
7590
7675
  ] }) });
@@ -7592,7 +7677,7 @@ function CEXBindModal({
7592
7677
 
7593
7678
  // src/context/BusinessProvider.tsx
7594
7679
  var import_react_query9 = require("@tanstack/react-query");
7595
- var import_jsx_runtime96 = require("react/jsx-runtime");
7680
+ var import_jsx_runtime100 = require("react/jsx-runtime");
7596
7681
  function BusinessProvider({ children }) {
7597
7682
  const { overview, token } = useUserInfo();
7598
7683
  const { type: EVMType, isOpen: EVMIsOpen, close: EVMClose } = useEVMModalStore();
@@ -7626,8 +7711,8 @@ function BusinessProvider({ children }) {
7626
7711
  enabled: !!tgAppAuthCode,
7627
7712
  refetchInterval: 1e3 * 5
7628
7713
  });
7629
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_jsx_runtime96.Fragment, { children: [
7630
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
7714
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_jsx_runtime100.Fragment, { children: [
7715
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
7631
7716
  EVMModal,
7632
7717
  {
7633
7718
  isOpen: EVMIsOpen && (EVMType == "login" && !overview && !token || EVMType == "bind" && !!token && !!overview),
@@ -7637,7 +7722,7 @@ function BusinessProvider({ children }) {
7637
7722
  zIndex: 199
7638
7723
  }
7639
7724
  ),
7640
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
7725
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
7641
7726
  TRONModal,
7642
7727
  {
7643
7728
  isOpen: TRONIsOpen && (TRONType == "login" && !overview && !token || TRONType == "bind" && !!token && !!overview),
@@ -7647,7 +7732,7 @@ function BusinessProvider({ children }) {
7647
7732
  zIndex: 199
7648
7733
  }
7649
7734
  ),
7650
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
7735
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
7651
7736
  TONModal,
7652
7737
  {
7653
7738
  isOpen: TONIsOpen && (TONType == "login" && !overview && !token || TONType == "bind" && !!token && !!overview),
@@ -7657,7 +7742,7 @@ function BusinessProvider({ children }) {
7657
7742
  zIndex: 199
7658
7743
  }
7659
7744
  ),
7660
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
7745
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
7661
7746
  BTCModal,
7662
7747
  {
7663
7748
  isOpen: BTCIsOpen && (BTCType == "login" && !overview && !token || BTCType == "bind" && !!token && !!overview),
@@ -7667,7 +7752,7 @@ function BusinessProvider({ children }) {
7667
7752
  zIndex: 199
7668
7753
  }
7669
7754
  ),
7670
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
7755
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
7671
7756
  CEXBindModal,
7672
7757
  {
7673
7758
  isOpen: CEXIsOpen && (!!token && !!overview),
@@ -7676,7 +7761,7 @@ function BusinessProvider({ children }) {
7676
7761
  zIndex: 199
7677
7762
  }
7678
7763
  ),
7679
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
7764
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
7680
7765
  WalletModal,
7681
7766
  {
7682
7767
  isOpen: WalletModalStore.isOpen && (WalletModalStore.type == "login" && !overview && !token || WalletModalStore.type == "bind" && !!token && !!overview),
@@ -7691,9 +7776,9 @@ function BusinessProvider({ children }) {
7691
7776
  }
7692
7777
 
7693
7778
  // src/context/index.tsx
7694
- var import_jsx_runtime97 = require("react/jsx-runtime");
7779
+ var import_jsx_runtime101 = require("react/jsx-runtime");
7695
7780
  var Providers = ({ children }) => {
7696
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(ToastProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(ModalProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(BusinessProvider, { children }) }) });
7781
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(ToastProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(ModalProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(BusinessProvider, { children }) }) });
7697
7782
  };
7698
7783
  var context_default = Providers;
7699
7784
 
@@ -8955,7 +9040,7 @@ var matchTest = /* @__PURE__ */ (0, import_viem17.defineChain)({
8955
9040
 
8956
9041
  // src/MatchContext.tsx
8957
9042
  var import_wagmi3 = require("wagmi");
8958
- var import_jsx_runtime98 = require("react/jsx-runtime");
9043
+ var import_jsx_runtime102 = require("react/jsx-runtime");
8959
9044
  var queryClient = new import_react_query10.QueryClient();
8960
9045
  var wagmiConfig = (0, import_rainbowkit2.getDefaultConfig)({
8961
9046
  appName: "MatchID",
@@ -8994,7 +9079,7 @@ var MatchProvider = ({
8994
9079
  useWalletInit({
8995
9080
  config: wallet
8996
9081
  });
8997
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_react_intl23.IntlProvider, { locale: realLocale, messages: messages[realLocale], children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_wagmi3.WagmiProvider, { config: wagmiConfig, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_react_query10.QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
9082
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_react_intl23.IntlProvider, { locale: realLocale, messages: messages[realLocale], children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_wagmi3.WagmiProvider, { config: wagmiConfig, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_react_query10.QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
8998
9083
  MatchContext.Provider,
8999
9084
  {
9000
9085
  value: {
@@ -9005,7 +9090,7 @@ var MatchProvider = ({
9005
9090
  theme,
9006
9091
  locale: realLocale
9007
9092
  },
9008
- children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(context_default, { children })
9093
+ children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(context_default, { children })
9009
9094
  }
9010
9095
  ) }) }) });
9011
9096
  };