@matchain/matchid-sdk-react 0.1.56-alpha.2 → 0.1.56-alpha.4

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 (40) hide show
  1. package/dist/api.js +57 -48
  2. package/dist/api.js.map +1 -1
  3. package/dist/api.mjs +3 -3
  4. package/dist/{chunk-NIGHV7RT.mjs → chunk-2HVTQUPR.mjs} +358 -343
  5. package/dist/chunk-2HVTQUPR.mjs.map +1 -0
  6. package/dist/{chunk-SPVA3A6Z.mjs → chunk-NGNJ44SH.mjs} +2 -2
  7. package/dist/{chunk-FKXS2XRG.mjs → chunk-OSY7MTZY.mjs} +34 -1
  8. package/dist/chunk-OSY7MTZY.mjs.map +1 -0
  9. package/dist/components.js +369 -360
  10. package/dist/components.js.map +1 -1
  11. package/dist/components.mjs +2 -2
  12. package/dist/hooks.js +187 -178
  13. package/dist/hooks.js.map +1 -1
  14. package/dist/hooks.mjs +2 -2
  15. package/dist/icon.d.mts +1 -1
  16. package/dist/icon.d.ts +1 -1
  17. package/dist/icon.js +33 -0
  18. package/dist/icon.js.map +1 -1
  19. package/dist/icon.mjs +5 -1
  20. package/dist/{index-C82WIWvx.d.ts → index-AtpUyTIk.d.ts} +9 -2
  21. package/dist/{index-D7E317WV.d.mts → index-CRLiCVf9.d.mts} +9 -2
  22. package/dist/{index-DK7l3lsH.d.ts → index-nwqg5fYH.d.ts} +8 -2
  23. package/dist/{index-YPRyEYt6.d.mts → index-zmJl2a0q.d.mts} +8 -2
  24. package/dist/index.d.mts +2 -2
  25. package/dist/index.d.ts +2 -2
  26. package/dist/index.js +456 -413
  27. package/dist/index.js.map +1 -1
  28. package/dist/index.mjs +3 -3
  29. package/dist/ui.d.mts +1 -1
  30. package/dist/ui.d.ts +1 -1
  31. package/dist/ui.js +145 -105
  32. package/dist/ui.js.map +1 -1
  33. package/dist/ui.mjs +4 -2
  34. package/example/src/pages/UI/components/Checkbox.tsx +10 -0
  35. package/example/src/pages/UI/components/Modal.tsx +38 -0
  36. package/example/src/pages/UI/index.tsx +4 -0
  37. package/package.json +1 -1
  38. package/dist/chunk-FKXS2XRG.mjs.map +0 -1
  39. package/dist/chunk-NIGHV7RT.mjs.map +0 -1
  40. /package/dist/{chunk-SPVA3A6Z.mjs.map → chunk-NGNJ44SH.mjs.map} +0 -0
@@ -26,6 +26,8 @@ import {
26
26
  BitgetIcon,
27
27
  CheckIcon,
28
28
  CheckRoundIcon,
29
+ CheckboxCheckedIcon,
30
+ CheckboxIcon,
29
31
  CloseEyeIcon,
30
32
  CloseRoundIcon,
31
33
  CopyIcon,
@@ -63,7 +65,7 @@ import {
63
65
  XIcon,
64
66
  XverseIcon,
65
67
  YoutubeIcon
66
- } from "./chunk-FKXS2XRG.mjs";
68
+ } from "./chunk-OSY7MTZY.mjs";
67
69
  import {
68
70
  confirm_default,
69
71
  connecting_default,
@@ -107,7 +109,7 @@ __export(components_exports, {
107
109
  });
108
110
 
109
111
  // src/components/EmailModal/index.tsx
110
- import { useEffect as useEffect19, useState as useState19 } from "react";
112
+ import { useEffect as useEffect20, useState as useState19 } from "react";
111
113
 
112
114
  // src/ui/Modal/index.tsx
113
115
  import { useEffect as useEffect3, useState as useState2 } from "react";
@@ -944,11 +946,11 @@ var useStore_default = useStore;
944
946
  // src/hooks/useWallet.tsx
945
947
  import { toAccount } from "viem/accounts";
946
948
  import { createWalletClient } from "viem";
947
- import { useEffect as useEffect7, useMemo as useMemo3 } from "react";
949
+ import { useEffect as useEffect8, useMemo as useMemo3 } from "react";
948
950
  import { encodeDeployData } from "viem";
949
951
 
950
952
  // src/context/ModalContext.tsx
951
- import React3, { useState as useState7, useCallback, createContext, useContext } from "react";
953
+ import { useState as useState7, useCallback, createContext, useContext, useRef } from "react";
952
954
  import { createPortal } from "react-dom";
953
955
 
954
956
  // src/ui/index.ts
@@ -956,6 +958,7 @@ var ui_exports = {};
956
958
  __export(ui_exports, {
957
959
  AlphaAvatar: () => AlphaAvatar,
958
960
  Button: () => Button,
961
+ Checkbox: () => Checkbox,
959
962
  ConfirmModal: () => ConfirmModal,
960
963
  Drawer: () => Drawer,
961
964
  Field: () => Field,
@@ -1308,17 +1311,28 @@ var LazyLottie = (props) => {
1308
1311
  };
1309
1312
  var Lottie_default = LazyLottie;
1310
1313
 
1314
+ // src/ui/Checkbox/index.tsx
1315
+ import { jsx as jsx16 } from "react/jsx-runtime";
1316
+ function Checkbox({
1317
+ checked = false,
1318
+ onChange
1319
+ }) {
1320
+ return checked ? /* @__PURE__ */ jsx16(CheckboxCheckedIcon, { onClick: () => onChange?.(false) }) : /* @__PURE__ */ jsx16(CheckboxIcon, { onClick: () => onChange?.(true) });
1321
+ }
1322
+
1311
1323
  // src/context/ModalContext.tsx
1312
- import { jsx as jsx16, jsxs as jsxs8 } from "react/jsx-runtime";
1324
+ import { jsx as jsx17, jsxs as jsxs8 } from "react/jsx-runtime";
1313
1325
  var ModalContext = createContext(null);
1314
1326
  function ModalProvider({ children }) {
1315
1327
  const [modalState, setModalState] = useState7({
1316
1328
  modals: [],
1317
1329
  highestZIndex: 100
1318
1330
  });
1331
+ const highestIndexRef = useRef(100);
1319
1332
  const getNextIndex = useCallback(() => {
1320
- return Math.max(...modalState.modals.map((modal) => modal.index), 0) + 1 || 100;
1321
- }, [modalState]);
1333
+ highestIndexRef.current += 1;
1334
+ return highestIndexRef.current;
1335
+ }, []);
1322
1336
  const closeModal = useCallback((index) => {
1323
1337
  setModalState((prevState) => ({
1324
1338
  modals: prevState.modals.filter((modal) => modal.index !== index),
@@ -1327,7 +1341,7 @@ function ModalProvider({ children }) {
1327
1341
  }, []);
1328
1342
  const show = useCallback((content, index) => {
1329
1343
  setModalState((prevState) => {
1330
- const modalIndex = index !== void 0 ? index : getNextIndex();
1344
+ const modalIndex = index ?? getNextIndex();
1331
1345
  const newZIndex = prevState.highestZIndex + 1;
1332
1346
  return {
1333
1347
  modals: [...prevState.modals, {
@@ -1343,7 +1357,7 @@ function ModalProvider({ children }) {
1343
1357
  }, [getNextIndex, closeModal]);
1344
1358
  const open = useCallback((props) => {
1345
1359
  setModalState((prevState) => {
1346
- const modalIndex = props.index !== void 0 ? props.index : getNextIndex();
1360
+ const modalIndex = props.index ?? getNextIndex();
1347
1361
  const newZIndex = prevState.highestZIndex + 1;
1348
1362
  return {
1349
1363
  modals: [...prevState.modals, {
@@ -1351,15 +1365,15 @@ function ModalProvider({ children }) {
1351
1365
  index: modalIndex,
1352
1366
  zIndex: newZIndex,
1353
1367
  close: () => closeModal(modalIndex),
1354
- content: ({ close, zIndex }) => /* @__PURE__ */ jsx16(ModalDrawer, { showClose: true, isOpen: true, onClose: close, title: props.title, zIndex, onBack: props.onBack, children: /* @__PURE__ */ jsx16(props.content, { close, zIndex }) })
1368
+ content: ({ close, zIndex }) => /* @__PURE__ */ jsx17(ModalDrawer, { showClose: true, isOpen: true, onClose: close, title: props.title, zIndex, onBack: props.onBack, children: /* @__PURE__ */ jsx17(props.content, { close, zIndex }) })
1355
1369
  }],
1356
1370
  highestZIndex: newZIndex
1357
1371
  };
1358
1372
  });
1359
1373
  }, [getNextIndex, closeModal]);
1360
- const modalElements = modalState.modals.sort((a, b) => b.zIndex - a.zIndex).map(
1374
+ const modalElements = modalState.modals.map(
1361
1375
  (modal) => modal.visible ? createPortal(
1362
- React3.createElement(modal.content, { zIndex: modal.zIndex, close: modal.close }),
1376
+ /* @__PURE__ */ jsx17(modal.content, { zIndex: modal.zIndex, close: modal.close }, modal.index),
1363
1377
  document.body
1364
1378
  ) : null
1365
1379
  );
@@ -1407,7 +1421,7 @@ var useTransactionStore = create3(devtools2(persistedState2));
1407
1421
  var useTransactionStore_default = useTransactionStore;
1408
1422
 
1409
1423
  // src/hooks/useWallet.tsx
1410
- import { jsx as jsx17 } from "react/jsx-runtime";
1424
+ import { jsx as jsx18 } from "react/jsx-runtime";
1411
1425
  var AppClientId = "react-sdk-" + getVersion();
1412
1426
  function useWallet() {
1413
1427
  const { address, wallet: walletConfig } = useLocalStore_default();
@@ -1497,7 +1511,7 @@ function useWallet() {
1497
1511
  return void 0;
1498
1512
  }
1499
1513
  }, [address]);
1500
- useEffect7(() => {
1514
+ useEffect8(() => {
1501
1515
  matchlog_default.log("qwe-evmAccount", evmAccount);
1502
1516
  }, [evmAccount]);
1503
1517
  const realCreateWalletClient = (parameters) => {
@@ -1581,12 +1595,12 @@ function useWallet() {
1581
1595
  address: evmAccount.address
1582
1596
  });
1583
1597
  modal.show((props) => {
1584
- return /* @__PURE__ */ jsx17(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, hash: txHash, chain: _chain });
1598
+ return /* @__PURE__ */ jsx18(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, hash: txHash, chain: _chain });
1585
1599
  });
1586
1600
  return txHash;
1587
1601
  } catch (error) {
1588
1602
  modal.show((props) => {
1589
- return /* @__PURE__ */ jsx17(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, error: typeof error == "string" ? error : error.details || error.message, chain: _chain });
1603
+ return /* @__PURE__ */ jsx18(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, error: typeof error == "string" ? error : error.details || error.message, chain: _chain });
1590
1604
  });
1591
1605
  throw error;
1592
1606
  }
@@ -1640,14 +1654,14 @@ function useWallet() {
1640
1654
 
1641
1655
  // src/hooks/useCopyClipboard.ts
1642
1656
  import copy from "copy-to-clipboard";
1643
- import { useCallback as useCallback2, useEffect as useEffect8, useState as useState9 } from "react";
1657
+ import { useCallback as useCallback2, useEffect as useEffect9, useState as useState9 } from "react";
1644
1658
  function useCopyClipboard(timeout = 500) {
1645
1659
  const [isCopied, setIsCopied] = useState9(false);
1646
1660
  const staticCopy = useCallback2((text) => {
1647
1661
  const didCopy = copy(text);
1648
1662
  setIsCopied(didCopy);
1649
1663
  }, []);
1650
- useEffect8(() => {
1664
+ useEffect9(() => {
1651
1665
  if (isCopied) {
1652
1666
  const hide = setTimeout(() => {
1653
1667
  setIsCopied(false);
@@ -1664,7 +1678,7 @@ function useCopyClipboard(timeout = 500) {
1664
1678
  // src/context/ToastContext.tsx
1665
1679
  import { useState as useState10, useCallback as useCallback3, createContext as createContext2, useContext as useContext2 } from "react";
1666
1680
  import { createPortal as createPortal2 } from "react-dom";
1667
- import { jsx as jsx18, jsxs as jsxs9 } from "react/jsx-runtime";
1681
+ import { jsx as jsx19, jsxs as jsxs9 } from "react/jsx-runtime";
1668
1682
  var ToastContext = createContext2(null);
1669
1683
  function ToastProvider({ children, zIndex = 299 }) {
1670
1684
  const [toasts, setToasts] = useState10([]);
@@ -1677,21 +1691,21 @@ function ToastProvider({ children, zIndex = 299 }) {
1677
1691
  setTimeout(() => removeToast(id), timeout);
1678
1692
  }, [removeToast]);
1679
1693
  const success = useCallback3((text, timeout) => {
1680
- show({ icon: /* @__PURE__ */ jsx18(CheckRoundIcon, { color: "#2FCC00", size: 24 }), text, timeout });
1694
+ show({ icon: /* @__PURE__ */ jsx19(CheckRoundIcon, { color: "#2FCC00", size: 24 }), text, timeout });
1681
1695
  }, [show]);
1682
1696
  const error = useCallback3((text, timeout) => {
1683
- show({ icon: /* @__PURE__ */ jsx18(ErrorRoundIcon, { size: 24 }), text, timeout });
1697
+ show({ icon: /* @__PURE__ */ jsx19(ErrorRoundIcon, { size: 24 }), text, timeout });
1684
1698
  }, [show]);
1685
1699
  const ToastComponent = createPortal2(
1686
- /* @__PURE__ */ jsx18("div", { className: "matchid-toast-box", style: {
1700
+ /* @__PURE__ */ jsx19("div", { className: "matchid-toast-box", style: {
1687
1701
  zIndex
1688
1702
  }, children: toasts.reverse().map(({ id, icon, text }) => /* @__PURE__ */ jsxs9(
1689
1703
  "div",
1690
1704
  {
1691
1705
  className: "matchid-toast",
1692
1706
  children: [
1693
- icon && /* @__PURE__ */ jsx18("span", { children: icon }),
1694
- /* @__PURE__ */ jsx18("span", { children: text })
1707
+ icon && /* @__PURE__ */ jsx19("span", { children: icon }),
1708
+ /* @__PURE__ */ jsx19("span", { children: text })
1695
1709
  ]
1696
1710
  },
1697
1711
  id
@@ -1843,7 +1857,7 @@ function useWalletAssetListQuery({
1843
1857
  import { useMemo as useMemo4, useState as useState11 } from "react";
1844
1858
  import { createPublicClient as createPublicClient3, formatUnits, http as http3, parseUnits } from "viem";
1845
1859
  import { FormattedMessage as FormattedMessage2, useIntl as useIntl3 } from "react-intl";
1846
- import { jsx as jsx19, jsxs as jsxs10 } from "react/jsx-runtime";
1860
+ import { jsx as jsx20, jsxs as jsxs10 } from "react/jsx-runtime";
1847
1861
  function useMatchChain() {
1848
1862
  const chainListQuery = useChainListQuery();
1849
1863
  const modal = useModal();
@@ -1875,7 +1889,7 @@ function useMatchChain() {
1875
1889
  const [selectedChainId, setSelectedChainId] = useState11(storeChainId2);
1876
1890
  const isDownMd = useDownMd();
1877
1891
  return /* @__PURE__ */ jsxs10("div", { className: `matchid-change-network-box`, children: [
1878
- /* @__PURE__ */ jsx19("div", { className: `matchid-change-network-list`, children: chainListQuery.data?.map((item, index) => {
1892
+ /* @__PURE__ */ jsx20("div", { className: `matchid-change-network-list`, children: chainListQuery.data?.map((item, index) => {
1879
1893
  return /* @__PURE__ */ jsxs10(
1880
1894
  "div",
1881
1895
  {
@@ -1883,19 +1897,19 @@ function useMatchChain() {
1883
1897
  className: `matchid-change-network-item ${selectedChainId == item.id ? "matchid-change-network-selected" : ""}`,
1884
1898
  children: [
1885
1899
  /* @__PURE__ */ jsxs10("div", { className: `matchid-change-network-item-content`, children: [
1886
- /* @__PURE__ */ jsx19("img", { src: item.iconUrl, className: `matchid-change-network-item-icon` }),
1887
- /* @__PURE__ */ jsx19("span", { className: "matchid-change-network-item-name", children: item.name })
1900
+ /* @__PURE__ */ jsx20("img", { src: item.iconUrl, className: `matchid-change-network-item-icon` }),
1901
+ /* @__PURE__ */ jsx20("span", { className: "matchid-change-network-item-name", children: item.name })
1888
1902
  ] }),
1889
- /* @__PURE__ */ jsx19(Radio, { checked: selectedChainId === item.id, size: isDownMd ? 18 : 24 })
1903
+ /* @__PURE__ */ jsx20(Radio, { checked: selectedChainId === item.id, size: isDownMd ? 18 : 24 })
1890
1904
  ]
1891
1905
  },
1892
1906
  index
1893
1907
  );
1894
1908
  }) }),
1895
- /* @__PURE__ */ jsx19(Button, { size: "lg", highlight: true, onClick: () => {
1909
+ /* @__PURE__ */ jsx20(Button, { size: "lg", highlight: true, onClick: () => {
1896
1910
  setChainId2(selectedChainId || 0);
1897
1911
  close();
1898
- }, block: true, children: /* @__PURE__ */ jsx19(FormattedMessage2, { id: "confirm" }) })
1912
+ }, block: true, children: /* @__PURE__ */ jsx20(FormattedMessage2, { id: "confirm" }) })
1899
1913
  ] });
1900
1914
  }
1901
1915
  const showChangeNetwork = () => {
@@ -1932,7 +1946,7 @@ function useMatchChain() {
1932
1946
 
1933
1947
  // src/hooks/useMatchWallet.tsx
1934
1948
  import { QRCode } from "react-qrcode";
1935
- import { useEffect as useEffect11, useMemo as useMemo6, useRef, useState as useState13 } from "react";
1949
+ import { useEffect as useEffect12, useMemo as useMemo6, useRef as useRef2, useState as useState13 } from "react";
1936
1950
  import { useQuery as useQuery4 } from "@tanstack/react-query";
1937
1951
 
1938
1952
  // src/config/index.tsx
@@ -2003,7 +2017,7 @@ var useContractStore_default = useContractStore;
2003
2017
  import { FormattedMessage as FormattedMessage4, useIntl as useIntl5 } from "react-intl";
2004
2018
 
2005
2019
  // src/components/ImportToken/index.tsx
2006
- import { useEffect as useEffect10, useMemo as useMemo5, useState as useState12 } from "react";
2020
+ import { useEffect as useEffect11, useMemo as useMemo5, useState as useState12 } from "react";
2007
2021
  import { FormattedMessage as FormattedMessage3, useIntl as useIntl4 } from "react-intl";
2008
2022
  import { useQueryClient } from "@tanstack/react-query";
2009
2023
  import { defineChain, erc20Abi } from "viem";
@@ -2033,7 +2047,7 @@ function useIsContract({
2033
2047
  }
2034
2048
 
2035
2049
  // src/components/ImportToken/index.tsx
2036
- import { jsx as jsx20, jsxs as jsxs11 } from "react/jsx-runtime";
2050
+ import { jsx as jsx21, jsxs as jsxs11 } from "react/jsx-runtime";
2037
2051
  function ImportToken({ close }) {
2038
2052
  const [status, setStatus] = useState12("");
2039
2053
  const { token } = useUserInfo();
@@ -2074,7 +2088,7 @@ function ImportToken({ close }) {
2074
2088
  }
2075
2089
  };
2076
2090
  const intl = useIntl4();
2077
- useEffect10(() => {
2091
+ useEffect11(() => {
2078
2092
  if (address.length === 42) {
2079
2093
  const reg = /^0x[0-9a-fA-F]{40}$/;
2080
2094
  if (!reg.test(address)) {
@@ -2146,20 +2160,20 @@ function ImportToken({ close }) {
2146
2160
  if (status == "success" || status == "fail") {
2147
2161
  return /* @__PURE__ */ jsxs11("div", { className: `matchid-import-token-result matchid-flex`, children: [
2148
2162
  /* @__PURE__ */ jsxs11("div", { className: `matchid-import-token-result-box matchid-flex`, children: [
2149
- /* @__PURE__ */ jsx20("div", { className: `matchid-import-token-result-img`, children: /* @__PURE__ */ jsx20(Lottie_default, { animationData: status == "success" ? success_default : fail_default, style: {
2163
+ /* @__PURE__ */ jsx21("div", { className: `matchid-import-token-result-img`, children: /* @__PURE__ */ jsx21(Lottie_default, { animationData: status == "success" ? success_default : fail_default, style: {
2150
2164
  width: "96px",
2151
2165
  height: "96px"
2152
2166
  } }) }),
2153
- /* @__PURE__ */ jsx20("div", { className: `matchid-import-token-result-text matchid-import-token-result-text-${status}`, children: status == "success" ? /* @__PURE__ */ jsx20(FormattedMessage3, { id: "importSuccess" }) : /* @__PURE__ */ jsx20(FormattedMessage3, { id: "importFail" }) })
2167
+ /* @__PURE__ */ jsx21("div", { className: `matchid-import-token-result-text matchid-import-token-result-text-${status}`, children: status == "success" ? /* @__PURE__ */ jsx21(FormattedMessage3, { id: "importSuccess" }) : /* @__PURE__ */ jsx21(FormattedMessage3, { id: "importFail" }) })
2154
2168
  ] }),
2155
- status == "success" ? /* @__PURE__ */ jsx20(Button, { size: "lg", onClick: close, block: true, highlight: true, children: /* @__PURE__ */ jsx20(FormattedMessage3, { id: "close" }) }) : /* @__PURE__ */ jsx20(Button, { size: "lg", onClick: () => setStatus(""), block: true, highlight: true, children: /* @__PURE__ */ jsx20(FormattedMessage3, { id: "back" }) })
2169
+ status == "success" ? /* @__PURE__ */ jsx21(Button, { size: "lg", onClick: close, block: true, highlight: true, children: /* @__PURE__ */ jsx21(FormattedMessage3, { id: "close" }) }) : /* @__PURE__ */ jsx21(Button, { size: "lg", onClick: () => setStatus(""), block: true, highlight: true, children: /* @__PURE__ */ jsx21(FormattedMessage3, { id: "back" }) })
2156
2170
  ] });
2157
2171
  }
2158
2172
  return /* @__PURE__ */ jsxs11("div", { className: `matchid-import-token`, children: [
2159
2173
  /* @__PURE__ */ jsxs11("div", { className: "matchid-import-token-form", children: [
2160
- /* @__PURE__ */ jsx20(Field, { label: intl.formatMessage({
2174
+ /* @__PURE__ */ jsx21(Field, { label: intl.formatMessage({
2161
2175
  id: "tokenSmartContract"
2162
- }), error: error.address ? error.address : isContractQuery.isFetched && !isContractQuery.isLoading && !isContractQuery.data && canImport ? "Address isn't a contract address" : "", children: /* @__PURE__ */ jsx20(
2176
+ }), error: error.address ? error.address : isContractQuery.isFetched && !isContractQuery.isLoading && !isContractQuery.data && canImport ? "Address isn't a contract address" : "", children: /* @__PURE__ */ jsx21(
2163
2177
  Input,
2164
2178
  {
2165
2179
  placeholder: intl.formatMessage({
@@ -2170,9 +2184,9 @@ function ImportToken({ close }) {
2170
2184
  maxLength: 42
2171
2185
  }
2172
2186
  ) }),
2173
- /* @__PURE__ */ jsx20(Field, { label: intl.formatMessage({
2187
+ /* @__PURE__ */ jsx21(Field, { label: intl.formatMessage({
2174
2188
  id: "tokenSymbol"
2175
- }), error: error.symbol, children: /* @__PURE__ */ jsx20(
2189
+ }), error: error.symbol, children: /* @__PURE__ */ jsx21(
2176
2190
  Input,
2177
2191
  {
2178
2192
  placeholder: intl.formatMessage({
@@ -2183,9 +2197,9 @@ function ImportToken({ close }) {
2183
2197
  maxLength: 16
2184
2198
  }
2185
2199
  ) }),
2186
- /* @__PURE__ */ jsx20(Field, { label: intl.formatMessage({
2200
+ /* @__PURE__ */ jsx21(Field, { label: intl.formatMessage({
2187
2201
  id: "tokenDecimals"
2188
- }), error: error.decimals, children: /* @__PURE__ */ jsx20(
2202
+ }), error: error.decimals, children: /* @__PURE__ */ jsx21(
2189
2203
  Input,
2190
2204
  {
2191
2205
  placeholder: intl.formatMessage({
@@ -2197,7 +2211,7 @@ function ImportToken({ close }) {
2197
2211
  }
2198
2212
  ) })
2199
2213
  ] }),
2200
- /* @__PURE__ */ jsx20(
2214
+ /* @__PURE__ */ jsx21(
2201
2215
  Button,
2202
2216
  {
2203
2217
  size: "lg",
@@ -2206,14 +2220,14 @@ function ImportToken({ close }) {
2206
2220
  loading: loading || isContractQuery.isLoading,
2207
2221
  disabled: !canImport || !isContractQuery.data,
2208
2222
  highlight: true,
2209
- children: /* @__PURE__ */ jsx20(FormattedMessage3, { id: "import" })
2223
+ children: /* @__PURE__ */ jsx21(FormattedMessage3, { id: "import" })
2210
2224
  }
2211
2225
  )
2212
2226
  ] });
2213
2227
  }
2214
2228
 
2215
2229
  // src/hooks/useMatchWallet.tsx
2216
- import { jsx as jsx21, jsxs as jsxs12 } from "react/jsx-runtime";
2230
+ import { jsx as jsx22, jsxs as jsxs12 } from "react/jsx-runtime";
2217
2231
  var ReceiveModal = () => {
2218
2232
  const chain = useMatchChain();
2219
2233
  const { address } = useWallet();
@@ -2229,8 +2243,8 @@ var ReceiveModal = () => {
2229
2243
  const chainLink = chain.explorerLink("address/" + address);
2230
2244
  return /* @__PURE__ */ jsxs12("div", { className: `matchid-receive-modal`, children: [
2231
2245
  /* @__PURE__ */ jsxs12("div", { className: "matchid-receive-container", children: [
2232
- /* @__PURE__ */ jsx21("div", { className: `matchid-receive-text`, children: /* @__PURE__ */ jsx21(FormattedMessage4, { id: "receiveQrcode" }) }),
2233
- /* @__PURE__ */ jsx21("div", { className: `matchid-qr-container`, children: /* @__PURE__ */ jsx21(
2246
+ /* @__PURE__ */ jsx22("div", { className: `matchid-receive-text`, children: /* @__PURE__ */ jsx22(FormattedMessage4, { id: "receiveQrcode" }) }),
2247
+ /* @__PURE__ */ jsx22("div", { className: `matchid-qr-container`, children: /* @__PURE__ */ jsx22(
2234
2248
  QRCode,
2235
2249
  {
2236
2250
  margin: "0",
@@ -2238,7 +2252,7 @@ var ReceiveModal = () => {
2238
2252
  value: address
2239
2253
  }
2240
2254
  ) }),
2241
- /* @__PURE__ */ jsx21(
2255
+ /* @__PURE__ */ jsx22(
2242
2256
  "a",
2243
2257
  {
2244
2258
  href: chainLink,
@@ -2248,7 +2262,7 @@ var ReceiveModal = () => {
2248
2262
  }
2249
2263
  )
2250
2264
  ] }),
2251
- /* @__PURE__ */ jsx21(Button, { size: "lg", onClick: onCopy, block: true, highlight: true, disabled: copied, children: /* @__PURE__ */ jsx21(
2265
+ /* @__PURE__ */ jsx22(Button, { size: "lg", onClick: onCopy, block: true, highlight: true, disabled: copied, children: /* @__PURE__ */ jsx22(
2252
2266
  FormattedMessage4,
2253
2267
  {
2254
2268
  id: "copyAddress"
@@ -2294,8 +2308,8 @@ function useMatchWalletRecords() {
2294
2308
  const [items, setItems] = useState13([]);
2295
2309
  const { chainId, publicClient } = useMatchChain();
2296
2310
  const { address } = useWallet();
2297
- const hasMoreRef = useRef(hasMore);
2298
- const nextPageParamsRef = useRef(void 0);
2311
+ const hasMoreRef = useRef2(hasMore);
2312
+ const nextPageParamsRef = useRef2(void 0);
2299
2313
  const { contracts, setContracts } = useContractStore_default();
2300
2314
  const fetchMoreData = async () => {
2301
2315
  const chainIdStr = chainId ? chainId.toString() : "";
@@ -2322,7 +2336,7 @@ function useMatchWalletRecords() {
2322
2336
  hasMoreRef.current = true;
2323
2337
  fetchMoreData();
2324
2338
  };
2325
- useEffect11(() => {
2339
+ useEffect12(() => {
2326
2340
  if (chainId && address) {
2327
2341
  onInit();
2328
2342
  }
@@ -2557,7 +2571,7 @@ function useMatchWalletAssetList({
2557
2571
  return { ...asset, balance, value, balanceValue };
2558
2572
  });
2559
2573
  }, [list, nativeBalanceQuery.data, erc20BalanceQuery.data]);
2560
- useEffect11(() => {
2574
+ useEffect12(() => {
2561
2575
  const list2 = enrichedAssets.sort((a, b) => {
2562
2576
  if (a.address === NATIVE_TOKEN_ADDRESS) return -1;
2563
2577
  if (b.address === NATIVE_TOKEN_ADDRESS) return 1;
@@ -2582,7 +2596,7 @@ function useMatchWalletAssetList({
2582
2596
  }
2583
2597
 
2584
2598
  // src/hooks/useReceipt.tsx
2585
- import { useState as useState14, useCallback as useCallback4, useEffect as useEffect12 } from "react";
2599
+ import { useState as useState14, useCallback as useCallback4, useEffect as useEffect13 } from "react";
2586
2600
  import { useQuery as useQuery5 } from "@tanstack/react-query";
2587
2601
  import { createPublicClient as createPublicClient5, defineChain as defineChain2, http as http5 } from "viem";
2588
2602
  var CACHE_TTL = 86400 * 30 * 1e3;
@@ -2600,7 +2614,7 @@ function useReceiptCache() {
2600
2614
  return false;
2601
2615
  }
2602
2616
  })();
2603
- useEffect12(() => {
2617
+ useEffect13(() => {
2604
2618
  if (isLocalStorageAvailable) {
2605
2619
  try {
2606
2620
  const storedData = localStorage.getItem(STORAGE_KEY);
@@ -2717,7 +2731,7 @@ function useReceipt({
2717
2731
  },
2718
2732
  refetchInterval: shouldRefetch ? 1e4 : false
2719
2733
  });
2720
- useEffect12(() => {
2734
+ useEffect13(() => {
2721
2735
  if (query.data) {
2722
2736
  setShouldRefetch(false);
2723
2737
  }
@@ -2726,7 +2740,7 @@ function useReceipt({
2726
2740
  }
2727
2741
 
2728
2742
  // src/hooks/useTransaction.tsx
2729
- import { useState as useState15, useCallback as useCallback5, useEffect as useEffect13 } from "react";
2743
+ import { useState as useState15, useCallback as useCallback5, useEffect as useEffect14 } from "react";
2730
2744
  import { useQuery as useQuery6 } from "@tanstack/react-query";
2731
2745
  import { createPublicClient as createPublicClient6, defineChain as defineChain3, http as http6 } from "viem";
2732
2746
  var CACHE_TTL2 = 86400 * 30 * 1e3;
@@ -2744,7 +2758,7 @@ function useTransactionCache() {
2744
2758
  return false;
2745
2759
  }
2746
2760
  })();
2747
- useEffect13(() => {
2761
+ useEffect14(() => {
2748
2762
  if (isLocalStorageAvailable) {
2749
2763
  try {
2750
2764
  const storedData = localStorage.getItem(STORAGE_KEY2);
@@ -2861,7 +2875,7 @@ function useTransaction({
2861
2875
  },
2862
2876
  refetchInterval: shouldRefetch ? 1e4 : false
2863
2877
  });
2864
- useEffect13(() => {
2878
+ useEffect14(() => {
2865
2879
  if (query.data) {
2866
2880
  setShouldRefetch(false);
2867
2881
  }
@@ -2873,39 +2887,39 @@ function useTransaction({
2873
2887
  import { create as create5 } from "zustand";
2874
2888
 
2875
2889
  // src/hooks/useConfig.tsx
2876
- import { jsx as jsx22 } from "react/jsx-runtime";
2890
+ import { jsx as jsx23 } from "react/jsx-runtime";
2877
2891
  var DEFAULT_WALLET_METHODS = ["evm", "sol", "btc", "tron", "ton"];
2878
2892
  var WALLET_METHODS = ["evm", "sol", "btc", "tron", "ton"];
2879
2893
  function useWalletConfig() {
2880
2894
  const isDownMd = useDownMd();
2881
2895
  const walletMap = {
2882
2896
  evm: {
2883
- icon: /* @__PURE__ */ jsx22(EVMDarkIcon, { size: isDownMd ? 36 : 40 }),
2884
- activeIcon: /* @__PURE__ */ jsx22(EVMLightIcon, { size: isDownMd ? 36 : 40 }),
2897
+ icon: /* @__PURE__ */ jsx23(EVMDarkIcon, { size: isDownMd ? 36 : 40 }),
2898
+ activeIcon: /* @__PURE__ */ jsx23(EVMLightIcon, { size: isDownMd ? 36 : 40 }),
2885
2899
  name: "EVM",
2886
2900
  method: "evm"
2887
2901
  },
2888
2902
  sol: {
2889
- icon: /* @__PURE__ */ jsx22(SOLDarkIcon, { size: isDownMd ? 36 : 40 }),
2890
- activeIcon: /* @__PURE__ */ jsx22(SOLLightIcon, { size: isDownMd ? 36 : 40 }),
2903
+ icon: /* @__PURE__ */ jsx23(SOLDarkIcon, { size: isDownMd ? 36 : 40 }),
2904
+ activeIcon: /* @__PURE__ */ jsx23(SOLLightIcon, { size: isDownMd ? 36 : 40 }),
2891
2905
  name: "SOL",
2892
2906
  method: "sol"
2893
2907
  },
2894
2908
  btc: {
2895
- icon: /* @__PURE__ */ jsx22(BTCDarkIcon, { size: isDownMd ? 36 : 40 }),
2896
- activeIcon: /* @__PURE__ */ jsx22(BTCLightIcon, { size: isDownMd ? 36 : 40 }),
2909
+ icon: /* @__PURE__ */ jsx23(BTCDarkIcon, { size: isDownMd ? 36 : 40 }),
2910
+ activeIcon: /* @__PURE__ */ jsx23(BTCLightIcon, { size: isDownMd ? 36 : 40 }),
2897
2911
  name: "BTC",
2898
2912
  method: "btc"
2899
2913
  },
2900
2914
  tron: {
2901
- icon: /* @__PURE__ */ jsx22(TRXDarkIcon, { size: isDownMd ? 36 : 40 }),
2902
- activeIcon: /* @__PURE__ */ jsx22(TRXLightIcon, { size: isDownMd ? 36 : 40 }),
2915
+ icon: /* @__PURE__ */ jsx23(TRXDarkIcon, { size: isDownMd ? 36 : 40 }),
2916
+ activeIcon: /* @__PURE__ */ jsx23(TRXLightIcon, { size: isDownMd ? 36 : 40 }),
2903
2917
  name: "TRON",
2904
2918
  method: "tron"
2905
2919
  },
2906
2920
  ton: {
2907
- icon: /* @__PURE__ */ jsx22(TonLightIcon, { size: isDownMd ? 36 : 40 }),
2908
- activeIcon: /* @__PURE__ */ jsx22(TonLightIcon2, { size: isDownMd ? 36 : 40 }),
2921
+ icon: /* @__PURE__ */ jsx23(TonLightIcon, { size: isDownMd ? 36 : 40 }),
2922
+ activeIcon: /* @__PURE__ */ jsx23(TonLightIcon2, { size: isDownMd ? 36 : 40 }),
2909
2923
  name: "TON",
2910
2924
  method: "ton"
2911
2925
  }
@@ -2955,9 +2969,9 @@ var useWalletModalStore = create5((set) => ({
2955
2969
  }));
2956
2970
 
2957
2971
  // src/components/CEXBindModal/index.tsx
2958
- import { useEffect as useEffect14, useMemo as useMemo7, useState as useState16 } from "react";
2972
+ import { useEffect as useEffect15, useMemo as useMemo7, useState as useState16 } from "react";
2959
2973
  import { FormattedMessage as FormattedMessage5, useIntl as useIntl6 } from "react-intl";
2960
- import { jsx as jsx23, jsxs as jsxs13 } from "react/jsx-runtime";
2974
+ import { jsx as jsx24, jsxs as jsxs13 } from "react/jsx-runtime";
2961
2975
  function CEXBindModal({
2962
2976
  onClose,
2963
2977
  type,
@@ -2975,7 +2989,7 @@ function CEXBindModal({
2975
2989
  const needPassphrase = useMemo7(() => {
2976
2990
  return ["bitget", "okx"].includes(type.toLowerCase());
2977
2991
  }, [type]);
2978
- useEffect14(() => {
2992
+ useEffect15(() => {
2979
2993
  if (isOpen) {
2980
2994
  setSecret("");
2981
2995
  setKey("");
@@ -3012,20 +3026,20 @@ function CEXBindModal({
3012
3026
  setLoading(false);
3013
3027
  }
3014
3028
  };
3015
- return /* @__PURE__ */ jsx23(ModalWithHeader, { showClose: true, isOpen, onClose, title: intl.formatMessage({
3029
+ return /* @__PURE__ */ jsx24(ModalWithHeader, { showClose: true, isOpen, onClose, title: intl.formatMessage({
3016
3030
  id: "CEXBindTitle"
3017
3031
  }, {
3018
3032
  type
3019
3033
  }), ...props, children: /* @__PURE__ */ jsxs13("div", { className: "matchid-cex-modal", children: [
3020
3034
  /* @__PURE__ */ jsxs13("div", { children: [
3021
- /* @__PURE__ */ jsx23("p", { children: /* @__PURE__ */ jsx23(FormattedMessage5, { id: "CEXBindAttention" }) }),
3022
- /* @__PURE__ */ jsx23("p", { children: /* @__PURE__ */ jsx23(FormattedMessage5, { id: "CEXBindTips1" }) }),
3023
- /* @__PURE__ */ jsx23("p", { children: /* @__PURE__ */ jsx23(FormattedMessage5, { id: "CEXBindTips2" }) }),
3024
- /* @__PURE__ */ jsx23("p", { children: /* @__PURE__ */ jsx23(FormattedMessage5, { id: "CEXBindTips3" }) })
3035
+ /* @__PURE__ */ jsx24("p", { children: /* @__PURE__ */ jsx24(FormattedMessage5, { id: "CEXBindAttention" }) }),
3036
+ /* @__PURE__ */ jsx24("p", { children: /* @__PURE__ */ jsx24(FormattedMessage5, { id: "CEXBindTips1" }) }),
3037
+ /* @__PURE__ */ jsx24("p", { children: /* @__PURE__ */ jsx24(FormattedMessage5, { id: "CEXBindTips2" }) }),
3038
+ /* @__PURE__ */ jsx24("p", { children: /* @__PURE__ */ jsx24(FormattedMessage5, { id: "CEXBindTips3" }) })
3025
3039
  ] }),
3026
- /* @__PURE__ */ jsx23(Field, { label: intl.formatMessage({
3040
+ /* @__PURE__ */ jsx24(Field, { label: intl.formatMessage({
3027
3041
  id: "CEXBindApiKey"
3028
- }), children: /* @__PURE__ */ jsx23(
3042
+ }), children: /* @__PURE__ */ jsx24(
3029
3043
  Input,
3030
3044
  {
3031
3045
  value: key,
@@ -3033,9 +3047,9 @@ function CEXBindModal({
3033
3047
  placeholder: "**** **** ****"
3034
3048
  }
3035
3049
  ) }),
3036
- /* @__PURE__ */ jsx23(Field, { label: intl.formatMessage({
3050
+ /* @__PURE__ */ jsx24(Field, { label: intl.formatMessage({
3037
3051
  id: "CEXBindApiSecretKey"
3038
- }), error: !needPassphrase && error, children: /* @__PURE__ */ jsx23(
3052
+ }), error: !needPassphrase && error, children: /* @__PURE__ */ jsx24(
3039
3053
  Input,
3040
3054
  {
3041
3055
  value: secret,
@@ -3043,9 +3057,9 @@ function CEXBindModal({
3043
3057
  placeholder: "**** **** ****"
3044
3058
  }
3045
3059
  ) }),
3046
- needPassphrase && /* @__PURE__ */ jsx23(Field, { error, label: intl.formatMessage({
3060
+ needPassphrase && /* @__PURE__ */ jsx24(Field, { error, label: intl.formatMessage({
3047
3061
  id: "CEXBindApiPassphrase"
3048
- }), children: /* @__PURE__ */ jsx23(
3062
+ }), children: /* @__PURE__ */ jsx24(
3049
3063
  Input,
3050
3064
  {
3051
3065
  value: APIPassphrase,
@@ -3053,7 +3067,7 @@ function CEXBindModal({
3053
3067
  placeholder: "**** **** ****"
3054
3068
  }
3055
3069
  ) }),
3056
- /* @__PURE__ */ jsx23(
3070
+ /* @__PURE__ */ jsx24(
3057
3071
  Button,
3058
3072
  {
3059
3073
  onClick: SubmitApi,
@@ -3061,7 +3075,7 @@ function CEXBindModal({
3061
3075
  block: true,
3062
3076
  loading,
3063
3077
  disabled: !key || !secret,
3064
- children: /* @__PURE__ */ jsx23(FormattedMessage5, { id: "continue" })
3078
+ children: /* @__PURE__ */ jsx24(FormattedMessage5, { id: "continue" })
3065
3079
  }
3066
3080
  )
3067
3081
  ] }) });
@@ -3069,7 +3083,7 @@ function CEXBindModal({
3069
3083
 
3070
3084
  // src/context/BusinessProvider.tsx
3071
3085
  import { useQuery as useQuery7 } from "@tanstack/react-query";
3072
- import { Fragment as Fragment4, jsx as jsx24, jsxs as jsxs14 } from "react/jsx-runtime";
3086
+ import { Fragment as Fragment4, jsx as jsx25, jsxs as jsxs14 } from "react/jsx-runtime";
3073
3087
  function BusinessProvider({ children }) {
3074
3088
  const { overview, token } = useUserInfo();
3075
3089
  const { type: EVMType, isOpen: EVMIsOpen, close: EVMClose } = useEVMModalStore();
@@ -3104,7 +3118,7 @@ function BusinessProvider({ children }) {
3104
3118
  refetchInterval: 1e3 * 5
3105
3119
  });
3106
3120
  return /* @__PURE__ */ jsxs14(Fragment4, { children: [
3107
- /* @__PURE__ */ jsx24(
3121
+ /* @__PURE__ */ jsx25(
3108
3122
  EVMModal,
3109
3123
  {
3110
3124
  isOpen: EVMIsOpen && (EVMType == "login" && !overview && !token || EVMType == "bind" && !!token && !!overview),
@@ -3114,7 +3128,7 @@ function BusinessProvider({ children }) {
3114
3128
  zIndex: 199
3115
3129
  }
3116
3130
  ),
3117
- /* @__PURE__ */ jsx24(
3131
+ /* @__PURE__ */ jsx25(
3118
3132
  TRONModal,
3119
3133
  {
3120
3134
  isOpen: TRONIsOpen && (TRONType == "login" && !overview && !token || TRONType == "bind" && !!token && !!overview),
@@ -3124,7 +3138,7 @@ function BusinessProvider({ children }) {
3124
3138
  zIndex: 199
3125
3139
  }
3126
3140
  ),
3127
- /* @__PURE__ */ jsx24(
3141
+ /* @__PURE__ */ jsx25(
3128
3142
  TONModal,
3129
3143
  {
3130
3144
  isOpen: TONIsOpen && (TONType == "login" && !overview && !token || TONType == "bind" && !!token && !!overview),
@@ -3134,7 +3148,7 @@ function BusinessProvider({ children }) {
3134
3148
  zIndex: 199
3135
3149
  }
3136
3150
  ),
3137
- /* @__PURE__ */ jsx24(
3151
+ /* @__PURE__ */ jsx25(
3138
3152
  BTCModal,
3139
3153
  {
3140
3154
  isOpen: BTCIsOpen && (BTCType == "login" && !overview && !token || BTCType == "bind" && !!token && !!overview),
@@ -3144,7 +3158,7 @@ function BusinessProvider({ children }) {
3144
3158
  zIndex: 199
3145
3159
  }
3146
3160
  ),
3147
- /* @__PURE__ */ jsx24(
3161
+ /* @__PURE__ */ jsx25(
3148
3162
  CEXBindModal,
3149
3163
  {
3150
3164
  isOpen: CEXIsOpen && (!!token && !!overview),
@@ -3153,7 +3167,7 @@ function BusinessProvider({ children }) {
3153
3167
  zIndex: 199
3154
3168
  }
3155
3169
  ),
3156
- /* @__PURE__ */ jsx24(
3170
+ /* @__PURE__ */ jsx25(
3157
3171
  WalletModal,
3158
3172
  {
3159
3173
  isOpen: WalletModalStore.isOpen && (WalletModalStore.type == "login" && !overview && !token || WalletModalStore.type == "bind" && !!token && !!overview),
@@ -3168,14 +3182,14 @@ function BusinessProvider({ children }) {
3168
3182
  }
3169
3183
 
3170
3184
  // src/context/index.tsx
3171
- import { jsx as jsx25 } from "react/jsx-runtime";
3185
+ import { jsx as jsx26 } from "react/jsx-runtime";
3172
3186
  var Providers = ({ children }) => {
3173
- return /* @__PURE__ */ jsx25(ToastProvider, { children: /* @__PURE__ */ jsx25(ModalProvider, { children: /* @__PURE__ */ jsx25(BusinessProvider, { children }) }) });
3187
+ return /* @__PURE__ */ jsx26(ToastProvider, { children: /* @__PURE__ */ jsx26(ModalProvider, { children: /* @__PURE__ */ jsx26(BusinessProvider, { children }) }) });
3174
3188
  };
3175
3189
  var context_default = Providers;
3176
3190
 
3177
3191
  // src/hooks/useWalletInit.ts
3178
- import { useEffect as useEffect15, useRef as useRef2 } from "react";
3192
+ import { useEffect as useEffect16, useRef as useRef3 } from "react";
3179
3193
 
3180
3194
  // src/utils/wallet.ts
3181
3195
  var sendMessage = ({ method, data, resolve, reject, timeout }) => {
@@ -3208,11 +3222,11 @@ function useWalletInit({
3208
3222
  }) {
3209
3223
  const { endpoints, token, setWallet, appid, refreshOverview } = useLocalStore_default();
3210
3224
  const { setWalletReady, walletReady } = useStore_default();
3211
- const iframeReadyRef = useRef2(walletReady);
3212
- useEffect15(() => {
3225
+ const iframeReadyRef = useRef3(walletReady);
3226
+ useEffect16(() => {
3213
3227
  setWallet(config);
3214
3228
  }, [config]);
3215
- useEffect15(() => {
3229
+ useEffect16(() => {
3216
3230
  matchlog_default.log("sdk.mpc.status", walletReady, iframeReadyRef.current);
3217
3231
  iframeReadyRef.current = walletReady;
3218
3232
  if (iframeReadyRef.current) {
@@ -3229,7 +3243,7 @@ function useWalletInit({
3229
3243
  onReady();
3230
3244
  }
3231
3245
  }, [walletReady]);
3232
- useEffect15(() => {
3246
+ useEffect16(() => {
3233
3247
  if (!endpoints.auth || !appid || !token || !config) {
3234
3248
  const existingIframe = getWalletIframe();
3235
3249
  if (existingIframe) {
@@ -3329,7 +3343,7 @@ function useWalletInit({
3329
3343
  }
3330
3344
  }
3331
3345
  }, [endpoints.auth, appid, token, config]);
3332
- useEffect15(() => {
3346
+ useEffect16(() => {
3333
3347
  const messageHandle = async (e) => {
3334
3348
  if (e.origin !== endpoints.auth.substring(0, endpoints.auth.length - 1)) {
3335
3349
  return;
@@ -3410,7 +3424,7 @@ function useWalletInit({
3410
3424
  }
3411
3425
 
3412
3426
  // src/hooks/useInit.tsx
3413
- import { useEffect as useEffect16, useRef as useRef3 } from "react";
3427
+ import { useEffect as useEffect17, useRef as useRef4 } from "react";
3414
3428
  function useInit({
3415
3429
  theme,
3416
3430
  appid,
@@ -3430,24 +3444,24 @@ function useInit({
3430
3444
  locale: realLocale
3431
3445
  } = useLocalStore_default();
3432
3446
  const walletModalStore = useWalletModalStore();
3433
- const overviewLoadingRef = useRef3(false);
3447
+ const overviewLoadingRef = useRef4(false);
3434
3448
  const searchParams = new URLSearchParams(window.location.search);
3435
3449
  const matchToken = searchParams.get("matchToken");
3436
3450
  const matchidt = searchParams.get("matchidt");
3437
3451
  const realEndpoints = endpoints || env_default.endpoints;
3438
- useEffect16(() => {
3452
+ useEffect17(() => {
3439
3453
  setTheme(theme);
3440
3454
  }, [theme]);
3441
- useEffect16(() => {
3455
+ useEffect17(() => {
3442
3456
  setAppid(appid);
3443
3457
  }, [appid]);
3444
- useEffect16(() => {
3458
+ useEffect17(() => {
3445
3459
  setEndpoints(realEndpoints);
3446
3460
  }, [realEndpoints]);
3447
- useEffect16(() => {
3461
+ useEffect17(() => {
3448
3462
  setLocale(locale || "en");
3449
3463
  }, [locale]);
3450
- useEffect16(() => {
3464
+ useEffect17(() => {
3451
3465
  if (matchToken) {
3452
3466
  const tokenData = JSON.parse(atob(matchToken));
3453
3467
  if (tokenData && tokenData.mid && tokenData.token) {
@@ -3458,7 +3472,7 @@ function useInit({
3458
3472
  }
3459
3473
  }
3460
3474
  }, [matchToken]);
3461
- useEffect16(() => {
3475
+ useEffect17(() => {
3462
3476
  if (matchidt) {
3463
3477
  const tokenData = decodeURIComponent(matchidt);
3464
3478
  const data = JSON.parse(decodeBase64(tokenData));
@@ -3488,7 +3502,7 @@ function useInit({
3488
3502
  }
3489
3503
  }
3490
3504
  }, [matchidt]);
3491
- useEffect16(() => {
3505
+ useEffect17(() => {
3492
3506
  const onLoginMessage = (event) => {
3493
3507
  const res = event.data;
3494
3508
  if (res.event === "login" && res.data && (res.data.token || res.data.token_type && res.data.access_token)) {
@@ -3525,7 +3539,7 @@ function useInit({
3525
3539
  overviewLoadingRef.current = false;
3526
3540
  }
3527
3541
  };
3528
- useEffect16(() => {
3542
+ useEffect17(() => {
3529
3543
  if (token) {
3530
3544
  loadOverview();
3531
3545
  }
@@ -4374,7 +4388,7 @@ import {
4374
4388
  } from "@rainbow-me/rainbowkit/wallets";
4375
4389
  import { arbitrum, base, bsc, mainnet, optimism, polygon } from "wagmi/chains";
4376
4390
  import { WagmiProvider } from "wagmi";
4377
- import { jsx as jsx26 } from "react/jsx-runtime";
4391
+ import { jsx as jsx27 } from "react/jsx-runtime";
4378
4392
  var queryClient = new QueryClient();
4379
4393
  var wagmiConfig = getDefaultConfig({
4380
4394
  appName: "MatchID",
@@ -4413,7 +4427,7 @@ var MatchProvider = ({
4413
4427
  useWalletInit({
4414
4428
  config: wallet
4415
4429
  });
4416
- return /* @__PURE__ */ jsx26(IntlProvider, { locale: realLocale, messages: messages[realLocale], children: /* @__PURE__ */ jsx26(WagmiProvider, { config: wagmiConfig, children: /* @__PURE__ */ jsx26(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx26(
4430
+ return /* @__PURE__ */ jsx27(IntlProvider, { locale: realLocale, messages: messages[realLocale], children: /* @__PURE__ */ jsx27(WagmiProvider, { config: wagmiConfig, children: /* @__PURE__ */ jsx27(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx27(
4417
4431
  MatchContext.Provider,
4418
4432
  {
4419
4433
  value: {
@@ -4424,7 +4438,7 @@ var MatchProvider = ({
4424
4438
  theme,
4425
4439
  locale: realLocale
4426
4440
  },
4427
- children: /* @__PURE__ */ jsx26(context_default, { children })
4441
+ children: /* @__PURE__ */ jsx27(context_default, { children })
4428
4442
  }
4429
4443
  ) }) }) });
4430
4444
  };
@@ -4734,9 +4748,9 @@ function useUserInfo() {
4734
4748
  }
4735
4749
 
4736
4750
  // src/components/EmailModal/StepVerify.tsx
4737
- import { useEffect as useEffect18, useMemo as useMemo9, useRef as useRef4, useState as useState18 } from "react";
4751
+ import { useEffect as useEffect19, useMemo as useMemo9, useRef as useRef5, useState as useState18 } from "react";
4738
4752
  import { FormattedMessage as FormattedMessage6, useIntl as useIntl7 } from "react-intl";
4739
- import { jsx as jsx27, jsxs as jsxs15 } from "react/jsx-runtime";
4753
+ import { jsx as jsx28, jsxs as jsxs15 } from "react/jsx-runtime";
4740
4754
  function StepVerify(props) {
4741
4755
  const intl = useIntl7();
4742
4756
  const { getLoginEmailCode, loginByEmail } = useUserInfo();
@@ -4744,13 +4758,13 @@ function StepVerify(props) {
4744
4758
  const [code, setCode] = useState18("");
4745
4759
  const [sending, setSending] = useState18(false);
4746
4760
  const [submitting, setSubmitting] = useState18(false);
4747
- const sendTimeRef = useRef4(0);
4761
+ const sendTimeRef = useRef5(0);
4748
4762
  const [sendBtnText, setSendBtnText] = useState18(intl.formatMessage({
4749
4763
  id: "send"
4750
4764
  }));
4751
4765
  const intervalTime = EMAIL_INTERVAL;
4752
4766
  const codeLength = EMAIL_CODE_LENGTH;
4753
- const intervalRef = useRef4(null);
4767
+ const intervalRef = useRef5(null);
4754
4768
  const isDownMd = useDownMd();
4755
4769
  const onSend = async () => {
4756
4770
  if (sendTimeRef.current > 0) {
@@ -4781,7 +4795,7 @@ function StepVerify(props) {
4781
4795
  setSending(false);
4782
4796
  }
4783
4797
  };
4784
- useEffect18(() => {
4798
+ useEffect19(() => {
4785
4799
  onSend();
4786
4800
  return () => {
4787
4801
  if (intervalRef.current) {
@@ -4815,15 +4829,15 @@ function StepVerify(props) {
4815
4829
  };
4816
4830
  return /* @__PURE__ */ jsxs15("div", { className: "matchid-email-verify-box", children: [
4817
4831
  /* @__PURE__ */ jsxs15("div", { className: "matchid-email-verify-header", children: [
4818
- /* @__PURE__ */ jsx27("div", { className: "matchid-email-verify-header-icon", children: /* @__PURE__ */ jsx27(EmailLineIcon, { size: isDownMd ? 19 : 24 }) }),
4832
+ /* @__PURE__ */ jsx28("div", { className: "matchid-email-verify-header-icon", children: /* @__PURE__ */ jsx28(EmailLineIcon, { size: isDownMd ? 19 : 24 }) }),
4819
4833
  /* @__PURE__ */ jsxs15("div", { className: "matchid-email-verify-header-content", children: [
4820
- /* @__PURE__ */ jsx27("div", { className: "matchid-email-verify-header-value", children: props.email }),
4821
- /* @__PURE__ */ jsx27("div", { className: "matchid-email-verify-header-tips", children: /* @__PURE__ */ jsx27(FormattedMessage6, { id: "sendEmailTips" }) })
4834
+ /* @__PURE__ */ jsx28("div", { className: "matchid-email-verify-header-value", children: props.email }),
4835
+ /* @__PURE__ */ jsx28("div", { className: "matchid-email-verify-header-tips", children: /* @__PURE__ */ jsx28(FormattedMessage6, { id: "sendEmailTips" }) })
4822
4836
  ] })
4823
4837
  ] }),
4824
- /* @__PURE__ */ jsx27(Field, { label: intl.formatMessage({
4838
+ /* @__PURE__ */ jsx28(Field, { label: intl.formatMessage({
4825
4839
  id: "verificationCode"
4826
- }), error, children: /* @__PURE__ */ jsx27(
4840
+ }), error, children: /* @__PURE__ */ jsx28(
4827
4841
  Input,
4828
4842
  {
4829
4843
  placeholder: intl.formatMessage({
@@ -4833,7 +4847,7 @@ function StepVerify(props) {
4833
4847
  maxLength: codeLength,
4834
4848
  onChange: (e) => setCode(e.target.value),
4835
4849
  value: code,
4836
- after: /* @__PURE__ */ jsx27(
4850
+ after: /* @__PURE__ */ jsx28(
4837
4851
  Button,
4838
4852
  {
4839
4853
  highlight: true,
@@ -4852,13 +4866,13 @@ function StepVerify(props) {
4852
4866
  )
4853
4867
  }
4854
4868
  ) }),
4855
- /* @__PURE__ */ jsx27(Button, { disabled: !canContinue, loading: submitting, highlight: true, block: true, size: "lg", onClick: onContinue, children: /* @__PURE__ */ jsx27(FormattedMessage6, { id: "continue" }) })
4869
+ /* @__PURE__ */ jsx28(Button, { disabled: !canContinue, loading: submitting, highlight: true, block: true, size: "lg", onClick: onContinue, children: /* @__PURE__ */ jsx28(FormattedMessage6, { id: "continue" }) })
4856
4870
  ] });
4857
4871
  }
4858
4872
 
4859
4873
  // src/components/EmailModal/index.tsx
4860
4874
  import { useIntl as useIntl8 } from "react-intl";
4861
- import { jsx as jsx28 } from "react/jsx-runtime";
4875
+ import { jsx as jsx29 } from "react/jsx-runtime";
4862
4876
  function EmailModal({
4863
4877
  isOpen = false,
4864
4878
  width = 480,
@@ -4869,13 +4883,13 @@ function EmailModal({
4869
4883
  const [step, setStep] = useState19("input");
4870
4884
  const [emailVal, setEmailVal] = useState19("");
4871
4885
  const intl = useIntl8();
4872
- useEffect19(() => {
4886
+ useEffect20(() => {
4873
4887
  if (!isOpen) {
4874
4888
  setStep("input");
4875
4889
  setEmailVal("");
4876
4890
  }
4877
4891
  }, [isOpen]);
4878
- return /* @__PURE__ */ jsx28(
4892
+ return /* @__PURE__ */ jsx29(
4879
4893
  ModalWithHeader,
4880
4894
  {
4881
4895
  isOpen,
@@ -4885,10 +4899,10 @@ function EmailModal({
4885
4899
  id: "email"
4886
4900
  }),
4887
4901
  onBack: step == "verify" ? () => setStep("input") : onBack,
4888
- children: step === "input" ? /* @__PURE__ */ jsx28(StepEmail, { email: emailVal, onContinue: (email) => {
4902
+ children: step === "input" ? /* @__PURE__ */ jsx29(StepEmail, { email: emailVal, onContinue: (email) => {
4889
4903
  setEmailVal(email);
4890
4904
  setStep("verify");
4891
- } }) : /* @__PURE__ */ jsx28(StepVerify, { email: emailVal, onSuccess: onLogin })
4905
+ } }) : /* @__PURE__ */ jsx29(StepVerify, { email: emailVal, onSuccess: onLogin })
4892
4906
  }
4893
4907
  );
4894
4908
  }
@@ -4918,7 +4932,7 @@ function useAppConfig() {
4918
4932
  }
4919
4933
 
4920
4934
  // src/components/LoginBox/index.tsx
4921
- import { Fragment as Fragment5, jsx as jsx29, jsxs as jsxs16 } from "react/jsx-runtime";
4935
+ import { Fragment as Fragment5, jsx as jsx30, jsxs as jsxs16 } from "react/jsx-runtime";
4922
4936
  var RecommendItem = ({
4923
4937
  icon,
4924
4938
  name,
@@ -4930,17 +4944,17 @@ var RecommendItem = ({
4930
4944
  return /* @__PURE__ */ jsxs16("div", { className: "matchid-login-recommend-method", children: [
4931
4945
  /* @__PURE__ */ jsxs16("div", { className: "matchid-login-recommend-method-item", onClick, children: [
4932
4946
  /* @__PURE__ */ jsxs16("div", { className: "matchid-login-recommend-method-content", children: [
4933
- /* @__PURE__ */ jsx29("div", { className: "matchid-login-recommend-method-icon", children: icon }),
4934
- /* @__PURE__ */ jsx29("span", { className: "matchid-login-recommend-method-name", children: name })
4947
+ /* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-method-icon", children: icon }),
4948
+ /* @__PURE__ */ jsx30("span", { className: "matchid-login-recommend-method-name", children: name })
4935
4949
  ] }),
4936
- footer ? footer : children ? /* @__PURE__ */ jsx29(
4950
+ footer ? footer : children ? /* @__PURE__ */ jsx30(
4937
4951
  ArrowDownIcon,
4938
4952
  {
4939
4953
  className: `matchid-login-recommend-method-arrow ${showChildren ? "matchid-login-recommend-method-arrow-active" : ""}`,
4940
4954
  size: 20,
4941
4955
  color: "var(--matchid-arrow-color)"
4942
4956
  }
4943
- ) : /* @__PURE__ */ jsx29(
4957
+ ) : /* @__PURE__ */ jsx30(
4944
4958
  ArrowRightIcon,
4945
4959
  {
4946
4960
  className: "matchid-login-recommend-method-arrow",
@@ -4949,7 +4963,7 @@ var RecommendItem = ({
4949
4963
  }
4950
4964
  )
4951
4965
  ] }),
4952
- children && /* @__PURE__ */ jsx29(
4966
+ children && /* @__PURE__ */ jsx30(
4953
4967
  "div",
4954
4968
  {
4955
4969
  className: `matchid-login-recommend-method-popover ${showChildren ? "matchid-login-recommend-method-popover-active" : ""}`,
@@ -5014,55 +5028,55 @@ function LoginBox({
5014
5028
  const isDownMd = useDownMd();
5015
5029
  const methodMap = {
5016
5030
  wallet: {
5017
- icon: /* @__PURE__ */ jsx29(WalletIcon, { size: isDownMd ? 36 : 40 }),
5031
+ icon: /* @__PURE__ */ jsx30(WalletIcon, { size: isDownMd ? 36 : 40 }),
5018
5032
  name: intl.formatMessage({ id: "wallet" }),
5019
5033
  onClick: () => setShowWallet(!showWallet),
5020
5034
  type: "wallet"
5021
5035
  },
5022
5036
  email: {
5023
- icon: /* @__PURE__ */ jsx29(EmailIcon, { size: isDownMd ? 36 : 40 }),
5037
+ icon: /* @__PURE__ */ jsx30(EmailIcon, { size: isDownMd ? 36 : 40 }),
5024
5038
  name: intl.formatMessage({ id: "email" }),
5025
5039
  onClick: () => {
5026
5040
  setEmailOpen(true);
5027
5041
  }
5028
5042
  },
5029
5043
  google: {
5030
- icon: /* @__PURE__ */ jsx29(GoogleIcon, { size: isDownMd ? 36 : 40 }),
5044
+ icon: /* @__PURE__ */ jsx30(GoogleIcon, { size: isDownMd ? 36 : 40 }),
5031
5045
  name: "Google",
5032
5046
  onClick: () => login("google")
5033
5047
  },
5034
5048
  twitter: {
5035
- icon: /* @__PURE__ */ jsx29(XIcon, { size: isDownMd ? 36 : 40 }),
5049
+ icon: /* @__PURE__ */ jsx30(XIcon, { size: isDownMd ? 36 : 40 }),
5036
5050
  name: "X",
5037
5051
  onClick: () => login("twitter")
5038
5052
  },
5039
5053
  telegram: {
5040
- icon: /* @__PURE__ */ jsx29(TelegramIcon, { size: isDownMd ? 36 : 40 }),
5054
+ icon: /* @__PURE__ */ jsx30(TelegramIcon, { size: isDownMd ? 36 : 40 }),
5041
5055
  name: "Telegram",
5042
5056
  onClick: () => login("telegram")
5043
5057
  },
5044
5058
  github: {
5045
- icon: /* @__PURE__ */ jsx29(GithubIcon, { size: isDownMd ? 36 : 40 }),
5059
+ icon: /* @__PURE__ */ jsx30(GithubIcon, { size: isDownMd ? 36 : 40 }),
5046
5060
  name: "Github",
5047
5061
  onClick: () => login("github")
5048
5062
  },
5049
5063
  discord: {
5050
- icon: /* @__PURE__ */ jsx29(DiscordIcon, { size: isDownMd ? 36 : 40 }),
5064
+ icon: /* @__PURE__ */ jsx30(DiscordIcon, { size: isDownMd ? 36 : 40 }),
5051
5065
  name: "Discord",
5052
5066
  onClick: () => login("discord")
5053
5067
  },
5054
5068
  linkedin: {
5055
- icon: /* @__PURE__ */ jsx29(LinkedinIcon, { size: isDownMd ? 36 : 40 }),
5069
+ icon: /* @__PURE__ */ jsx30(LinkedinIcon, { size: isDownMd ? 36 : 40 }),
5056
5070
  name: "LinkedIn",
5057
5071
  onClick: () => login("linkedin")
5058
5072
  },
5059
5073
  facebook: {
5060
- icon: /* @__PURE__ */ jsx29(FacebookIcon, { size: isDownMd ? 36 : 40 }),
5074
+ icon: /* @__PURE__ */ jsx30(FacebookIcon, { size: isDownMd ? 36 : 40 }),
5061
5075
  name: "Facebook",
5062
5076
  onClick: () => login("facebook")
5063
5077
  },
5064
5078
  youtube: {
5065
- icon: /* @__PURE__ */ jsx29(YoutubeIcon, { size: isDownMd ? 36 : 40 }),
5079
+ icon: /* @__PURE__ */ jsx30(YoutubeIcon, { size: isDownMd ? 36 : 40 }),
5066
5080
  name: "Youtube",
5067
5081
  onClick: () => login("youtube")
5068
5082
  }
@@ -5070,8 +5084,8 @@ function LoginBox({
5070
5084
  const { walletMap } = useWalletConfig();
5071
5085
  return /* @__PURE__ */ jsxs16(Fragment5, { children: [
5072
5086
  (!inModal || !emailOpen) && /* @__PURE__ */ jsxs16("div", { className: "matchid-login-box", children: [
5073
- /* @__PURE__ */ jsx29("div", { className: "matchid-login-recommend-list", children: methodConfig.recommendMethods.map((m) => {
5074
- return /* @__PURE__ */ jsx29(
5087
+ /* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-list", children: methodConfig.recommendMethods.map((m) => {
5088
+ return /* @__PURE__ */ jsx30(
5075
5089
  RecommendItem,
5076
5090
  {
5077
5091
  icon: methodMap[m]?.icon,
@@ -5079,8 +5093,8 @@ function LoginBox({
5079
5093
  onClick: methodMap[m]?.onClick,
5080
5094
  showChildren: m == "wallet" && showWallet,
5081
5095
  children: m == "wallet" && /* @__PURE__ */ jsxs16(Fragment5, { children: [
5082
- /* @__PURE__ */ jsx29("div", { className: "matchid-login-recommend-wallet-divider" }),
5083
- /* @__PURE__ */ jsx29("div", { className: "matchid-login-recommend-wallet-list", children: methodConfig.walletMethods.map((n) => {
5096
+ /* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-wallet-divider" }),
5097
+ /* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-wallet-list", children: methodConfig.walletMethods.map((n) => {
5084
5098
  const m2 = walletMap[n];
5085
5099
  return /* @__PURE__ */ jsxs16(
5086
5100
  "div",
@@ -5091,15 +5105,15 @@ function LoginBox({
5091
5105
  },
5092
5106
  children: [
5093
5107
  /* @__PURE__ */ jsxs16("div", { className: "matchid-login-recommend-wallet-item-content", children: [
5094
- /* @__PURE__ */ jsx29("div", { className: "matchid-login-recommend-wallet-item-icon", children: m2.icon }),
5095
- /* @__PURE__ */ jsx29(
5108
+ /* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-wallet-item-icon", children: m2.icon }),
5109
+ /* @__PURE__ */ jsx30(
5096
5110
  "div",
5097
5111
  {
5098
5112
  className: "matchid-login-recommend-wallet-item-hover-icon",
5099
5113
  children: m2.activeIcon
5100
5114
  }
5101
5115
  ),
5102
- /* @__PURE__ */ jsx29(
5116
+ /* @__PURE__ */ jsx30(
5103
5117
  "span",
5104
5118
  {
5105
5119
  className: "matchid-login-recommend-wallet-item-name",
@@ -5107,7 +5121,7 @@ function LoginBox({
5107
5121
  }
5108
5122
  )
5109
5123
  ] }),
5110
- /* @__PURE__ */ jsx29(
5124
+ /* @__PURE__ */ jsx30(
5111
5125
  ArrowRightIcon,
5112
5126
  {
5113
5127
  className: "matchid-login-recommend-wallet-item-arrow",
@@ -5126,9 +5140,9 @@ function LoginBox({
5126
5140
  );
5127
5141
  }) }),
5128
5142
  methodConfig.methods.length > 0 && /* @__PURE__ */ jsxs16("div", { className: "matchid-login-other", children: [
5129
- /* @__PURE__ */ jsx29("div", { className: "matchid-login-other-text", children: /* @__PURE__ */ jsx29(FormattedMessage7, { id: "otherLoginMethods" }) }),
5130
- /* @__PURE__ */ jsx29("div", { className: "matchid-login-method-box", children: methodConfig.methods.map((m) => {
5131
- return /* @__PURE__ */ jsx29(
5143
+ /* @__PURE__ */ jsx30("div", { className: "matchid-login-other-text", children: /* @__PURE__ */ jsx30(FormattedMessage7, { id: "otherLoginMethods" }) }),
5144
+ /* @__PURE__ */ jsx30("div", { className: "matchid-login-method-box", children: methodConfig.methods.map((m) => {
5145
+ return /* @__PURE__ */ jsx30(
5132
5146
  "div",
5133
5147
  {
5134
5148
  className: "matchid-login-method-item",
@@ -5141,7 +5155,7 @@ function LoginBox({
5141
5155
  }) })
5142
5156
  ] })
5143
5157
  ] }),
5144
- /* @__PURE__ */ jsx29(
5158
+ /* @__PURE__ */ jsx30(
5145
5159
  EmailModal,
5146
5160
  {
5147
5161
  isOpen: emailOpen,
@@ -5161,7 +5175,7 @@ import { useState as useState22 } from "react";
5161
5175
 
5162
5176
  // src/components/LoginPanel/index.tsx
5163
5177
  import { FormattedMessage as FormattedMessage8 } from "react-intl";
5164
- import { jsx as jsx30, jsxs as jsxs17 } from "react/jsx-runtime";
5178
+ import { jsx as jsx31, jsxs as jsxs17 } from "react/jsx-runtime";
5165
5179
  function LoginPanel({
5166
5180
  header,
5167
5181
  onClose,
@@ -5171,30 +5185,30 @@ function LoginPanel({
5171
5185
  return /* @__PURE__ */ jsxs17("div", { className: "matchid-login-panel", children: [
5172
5186
  header ? header : /* @__PURE__ */ jsxs17("div", { className: "matchid-login-panel-header", children: [
5173
5187
  /* @__PURE__ */ jsxs17("div", { className: "matchid-login-panel-header-content", children: [
5174
- /* @__PURE__ */ jsx30("div", { className: "matchid-login-panel-header-title", children: /* @__PURE__ */ jsx30(FormattedMessage8, { id: "loginTitle" }) }),
5175
- /* @__PURE__ */ jsx30("div", { className: "matchid-login-panel-header-subtilte", children: /* @__PURE__ */ jsx30(FormattedMessage8, { id: "loginTips" }) })
5188
+ /* @__PURE__ */ jsx31("div", { className: "matchid-login-panel-header-title", children: /* @__PURE__ */ jsx31(FormattedMessage8, { id: "loginTitle" }) }),
5189
+ /* @__PURE__ */ jsx31("div", { className: "matchid-login-panel-header-subtilte", children: /* @__PURE__ */ jsx31(FormattedMessage8, { id: "loginTips" }) })
5176
5190
  ] }),
5177
- onClose && /* @__PURE__ */ jsx30("div", { className: "matchid-login-panel-header-close", onClick: onClose, children: /* @__PURE__ */ jsx30(CloseRoundIcon, { size: isDownMd ? 24 : 30 }) })
5191
+ onClose && /* @__PURE__ */ jsx31("div", { className: "matchid-login-panel-header-close", onClick: onClose, children: /* @__PURE__ */ jsx31(CloseRoundIcon, { size: isDownMd ? 24 : 30 }) })
5178
5192
  ] }),
5179
- /* @__PURE__ */ jsx30("div", { className: "matchid-login-panel-divide" }),
5180
- /* @__PURE__ */ jsx30("div", { className: "matchid-login-panel-box", children: /* @__PURE__ */ jsx30(LoginBox, { ...props }) })
5193
+ /* @__PURE__ */ jsx31("div", { className: "matchid-login-panel-divide" }),
5194
+ /* @__PURE__ */ jsx31("div", { className: "matchid-login-panel-box", children: /* @__PURE__ */ jsx31(LoginBox, { ...props }) })
5181
5195
  ] });
5182
5196
  }
5183
5197
 
5184
5198
  // src/components/LoginModal/index.tsx
5185
- import { jsx as jsx31 } from "react/jsx-runtime";
5199
+ import { jsx as jsx32 } from "react/jsx-runtime";
5186
5200
  function LoginModal({
5187
5201
  isOpen = false,
5188
5202
  width = 480,
5189
5203
  ...props
5190
5204
  }) {
5191
5205
  const { isLogin } = useUserInfo();
5192
- return /* @__PURE__ */ jsx31(
5206
+ return /* @__PURE__ */ jsx32(
5193
5207
  Modal,
5194
5208
  {
5195
5209
  isOpen: isOpen && !isLogin,
5196
5210
  width,
5197
- children: /* @__PURE__ */ jsx31(LoginPanel, { ...props, inModal: true })
5211
+ children: /* @__PURE__ */ jsx32(LoginPanel, { ...props, inModal: true })
5198
5212
  }
5199
5213
  );
5200
5214
  }
@@ -5203,10 +5217,10 @@ function LoginModal({
5203
5217
  import { useState as useState21 } from "react";
5204
5218
 
5205
5219
  // src/assets/icon/ProfileIcon.tsx
5206
- import { jsx as jsx32, jsxs as jsxs18 } from "react/jsx-runtime";
5220
+ import { jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
5207
5221
  function ProfileIcon({ size = 24, color = "black", ...props }) {
5208
5222
  return /* @__PURE__ */ jsxs18("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
5209
- /* @__PURE__ */ jsx32(
5223
+ /* @__PURE__ */ jsx33(
5210
5224
  "path",
5211
5225
  {
5212
5226
  fillRule: "evenodd",
@@ -5215,7 +5229,7 @@ function ProfileIcon({ size = 24, color = "black", ...props }) {
5215
5229
  fill: color
5216
5230
  }
5217
5231
  ),
5218
- /* @__PURE__ */ jsx32(
5232
+ /* @__PURE__ */ jsx33(
5219
5233
  "path",
5220
5234
  {
5221
5235
  fillRule: "evenodd",
@@ -5229,7 +5243,7 @@ function ProfileIcon({ size = 24, color = "black", ...props }) {
5229
5243
 
5230
5244
  // src/components/UserPopover/index.tsx
5231
5245
  import { FormattedMessage as FormattedMessage9, useIntl as useIntl10 } from "react-intl";
5232
- import { jsx as jsx33, jsxs as jsxs19 } from "react/jsx-runtime";
5246
+ import { jsx as jsx34, jsxs as jsxs19 } from "react/jsx-runtime";
5233
5247
  function UserContent() {
5234
5248
  const { logout, address, username } = useUserInfo();
5235
5249
  const [logouting, setLogouting] = useState21(false);
@@ -5253,31 +5267,31 @@ function UserContent() {
5253
5267
  return /* @__PURE__ */ jsxs19("div", { className: "matchid-user-popover-item", onClick, children: [
5254
5268
  /* @__PURE__ */ jsxs19("div", { className: `matchid-user-popover-item-content`, children: [
5255
5269
  icon,
5256
- /* @__PURE__ */ jsx33("div", { className: "matchid-user-popover-item-text", children })
5270
+ /* @__PURE__ */ jsx34("div", { className: "matchid-user-popover-item-text", children })
5257
5271
  ] }),
5258
5272
  rightIcon
5259
5273
  ] });
5260
5274
  };
5261
5275
  const UserDivider = () => {
5262
- return /* @__PURE__ */ jsx33("div", { className: `matchid-user-popover-divider` });
5276
+ return /* @__PURE__ */ jsx34("div", { className: `matchid-user-popover-divider` });
5263
5277
  };
5264
5278
  const [usernameOpen, setUsernameOpen] = useState21(false);
5265
5279
  const [copied, setCopied] = useCopyClipboard();
5266
5280
  const intl = useIntl10();
5267
5281
  return /* @__PURE__ */ jsxs19("div", { className: "matchid-user-popover-content", children: [
5268
5282
  /* @__PURE__ */ jsxs19("div", { className: "matchid-user-popover-list", children: [
5269
- /* @__PURE__ */ jsx33(UserItem, { onClick: () => {
5283
+ /* @__PURE__ */ jsx34(UserItem, { onClick: () => {
5270
5284
  setCopied(address);
5271
- }, icon: copied ? /* @__PURE__ */ jsx33(CheckIcon, { size: 20, color: "#0ecb81" }) : /* @__PURE__ */ jsx33(CopyIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ jsx33(CheckIcon, { size: 20, color: "var(--icon-color)" }), children: truncateAddress(address) }),
5272
- /* @__PURE__ */ jsx33(UserDivider, {}),
5273
- /* @__PURE__ */ jsx33(UserItem, { onClick: () => {
5285
+ }, icon: copied ? /* @__PURE__ */ jsx34(CheckIcon, { size: 20, color: "#0ecb81" }) : /* @__PURE__ */ jsx34(CopyIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ jsx34(CheckIcon, { size: 20, color: "var(--icon-color)" }), children: truncateAddress(address) }),
5286
+ /* @__PURE__ */ jsx34(UserDivider, {}),
5287
+ /* @__PURE__ */ jsx34(UserItem, { onClick: () => {
5274
5288
  setUsernameOpen(true);
5275
- }, icon: /* @__PURE__ */ jsx33(ProfileIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ jsx33(ArrowRightIcon, { size: 20, color: "var(--icon-color)" }), children: username || intl.formatMessage({
5289
+ }, icon: /* @__PURE__ */ jsx34(ProfileIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ jsx34(ArrowRightIcon, { size: 20, color: "var(--icon-color)" }), children: username || intl.formatMessage({
5276
5290
  id: "setUsername"
5277
5291
  }) })
5278
5292
  ] }),
5279
- /* @__PURE__ */ jsx33(Button, { onClick: onLogout, loading: logouting, children: /* @__PURE__ */ jsx33(FormattedMessage9, { id: "disconnect" }) }),
5280
- /* @__PURE__ */ jsx33(UsernameModal, { isOpen: usernameOpen, onClose: () => {
5293
+ /* @__PURE__ */ jsx34(Button, { onClick: onLogout, loading: logouting, children: /* @__PURE__ */ jsx34(FormattedMessage9, { id: "disconnect" }) }),
5294
+ /* @__PURE__ */ jsx34(UsernameModal, { isOpen: usernameOpen, onClose: () => {
5281
5295
  setUsernameOpen(false);
5282
5296
  }, onSuccess: () => {
5283
5297
  setUsernameOpen(false);
@@ -5288,12 +5302,12 @@ function UserPopover({
5288
5302
  children,
5289
5303
  ...props
5290
5304
  }) {
5291
- return /* @__PURE__ */ jsx33(Popover, { ...props, content: /* @__PURE__ */ jsx33(UserContent, {}), children });
5305
+ return /* @__PURE__ */ jsx34(Popover, { ...props, content: /* @__PURE__ */ jsx34(UserContent, {}), children });
5292
5306
  }
5293
5307
 
5294
5308
  // src/components/LoginButton/index.tsx
5295
5309
  import { FormattedMessage as FormattedMessage10, useIntl as useIntl11 } from "react-intl";
5296
- import { Fragment as Fragment6, jsx as jsx34, jsxs as jsxs20 } from "react/jsx-runtime";
5310
+ import { Fragment as Fragment6, jsx as jsx35, jsxs as jsxs20 } from "react/jsx-runtime";
5297
5311
  function LoginButton({
5298
5312
  loginRender,
5299
5313
  methods,
@@ -5310,7 +5324,7 @@ function LoginButton({
5310
5324
  const [loginOpen, setLoginOpen] = useState22(false);
5311
5325
  if (!isLogin) {
5312
5326
  return /* @__PURE__ */ jsxs20(Fragment6, { children: [
5313
- /* @__PURE__ */ jsx34(
5327
+ /* @__PURE__ */ jsx35(
5314
5328
  LoginModal,
5315
5329
  {
5316
5330
  methods,
@@ -5321,31 +5335,31 @@ function LoginButton({
5321
5335
  }
5322
5336
  ),
5323
5337
  /* @__PURE__ */ jsxs20(Button, { className: "matchid-unlogin-btn", ...props, highlight: true, onClick: () => setLoginOpen(true), children: [
5324
- /* @__PURE__ */ jsx34(UnLoginIcon_default, {}),
5325
- /* @__PURE__ */ jsx34("span", { children: /* @__PURE__ */ jsx34(FormattedMessage10, { id: "login" }) })
5338
+ /* @__PURE__ */ jsx35(UnLoginIcon_default, {}),
5339
+ /* @__PURE__ */ jsx35("span", { children: /* @__PURE__ */ jsx35(FormattedMessage10, { id: "login" }) })
5326
5340
  ] })
5327
5341
  ] });
5328
5342
  }
5329
- return loginRender ? /* @__PURE__ */ jsx34(Fragment6, { children: loginRender }) : /* @__PURE__ */ jsx34(UserPopover, { position: popoverPosition, type: popoverType, gap: popoverGap, children: /* @__PURE__ */ jsxs20(Button, { onClick: onLoginClick, className: "matchid-login-btn", ...props, children: [
5330
- /* @__PURE__ */ jsx34(LoginIcon_default, {}),
5331
- /* @__PURE__ */ jsx34("span", { children: username ? truncateAddress(username) : "MatchID " + intl.formatMessage({
5343
+ return loginRender ? /* @__PURE__ */ jsx35(Fragment6, { children: loginRender }) : /* @__PURE__ */ jsx35(UserPopover, { position: popoverPosition, type: popoverType, gap: popoverGap, children: /* @__PURE__ */ jsxs20(Button, { onClick: onLoginClick, className: "matchid-login-btn", ...props, children: [
5344
+ /* @__PURE__ */ jsx35(LoginIcon_default, {}),
5345
+ /* @__PURE__ */ jsx35("span", { children: username ? truncateAddress(username) : "MatchID " + intl.formatMessage({
5332
5346
  id: "user"
5333
5347
  }) })
5334
5348
  ] }) });
5335
5349
  }
5336
5350
 
5337
5351
  // src/components/UsernameModal/index.tsx
5338
- import { useEffect as useEffect20, useMemo as useMemo11, useState as useState23 } from "react";
5352
+ import { useEffect as useEffect21, useMemo as useMemo11, useState as useState23 } from "react";
5339
5353
  import { FormattedMessage as FormattedMessage11, useIntl as useIntl12 } from "react-intl";
5340
- import { jsx as jsx35, jsxs as jsxs21 } from "react/jsx-runtime";
5354
+ import { jsx as jsx36, jsxs as jsxs21 } from "react/jsx-runtime";
5341
5355
  var ValidItem = ({
5342
5356
  success = false,
5343
5357
  text
5344
5358
  }) => {
5345
5359
  const isDownMd = useDownMd();
5346
5360
  return /* @__PURE__ */ jsxs21("div", { className: `matchid-valid-status-item matchid-valid-status-${success ? "success" : "error"}`, children: [
5347
- success ? /* @__PURE__ */ jsx35(CheckRoundIcon, { size: isDownMd ? 12 : 16 }) : /* @__PURE__ */ jsx35(InfoLineIcon, { size: isDownMd ? 12 : 16 }),
5348
- /* @__PURE__ */ jsx35("span", { children: text })
5361
+ success ? /* @__PURE__ */ jsx36(CheckRoundIcon, { size: isDownMd ? 12 : 16 }) : /* @__PURE__ */ jsx36(InfoLineIcon, { size: isDownMd ? 12 : 16 }),
5362
+ /* @__PURE__ */ jsx36("span", { children: text })
5349
5363
  ] });
5350
5364
  };
5351
5365
  function UsernameModal({
@@ -5359,7 +5373,7 @@ function UsernameModal({
5359
5373
  const [val, setVal] = useState23(username);
5360
5374
  const [error, setError] = useState23("");
5361
5375
  const isDownMd = useDownMd();
5362
- useEffect20(() => {
5376
+ useEffect21(() => {
5363
5377
  if (isOpen) {
5364
5378
  setVal(username);
5365
5379
  setError("");
@@ -5393,12 +5407,12 @@ function UsernameModal({
5393
5407
  }
5394
5408
  };
5395
5409
  const intl = useIntl12();
5396
- return /* @__PURE__ */ jsx35(ModalWithHeader, { isOpen: isOpen && isLogin, ...props, title: title || intl.formatMessage({
5410
+ return /* @__PURE__ */ jsx36(ModalWithHeader, { isOpen: isOpen && isLogin, ...props, title: title || intl.formatMessage({
5397
5411
  id: username ? "editUsernameTitle" : "setUsernameTitle"
5398
5412
  }), children: /* @__PURE__ */ jsxs21("div", { className: "matchid-username-box", children: [
5399
- /* @__PURE__ */ jsx35(Field, { label: intl.formatMessage({
5413
+ /* @__PURE__ */ jsx36(Field, { label: intl.formatMessage({
5400
5414
  id: "username"
5401
- }), error, children: /* @__PURE__ */ jsx35(
5415
+ }), error, children: /* @__PURE__ */ jsx36(
5402
5416
  Input,
5403
5417
  {
5404
5418
  placeholder: intl.formatMessage({
@@ -5412,7 +5426,7 @@ function UsernameModal({
5412
5426
  }
5413
5427
  ) }),
5414
5428
  /* @__PURE__ */ jsxs21("div", { className: "matchid-valid", children: [
5415
- /* @__PURE__ */ jsx35(
5429
+ /* @__PURE__ */ jsx36(
5416
5430
  ValidItem,
5417
5431
  {
5418
5432
  success: isValid,
@@ -5421,21 +5435,21 @@ function UsernameModal({
5421
5435
  })
5422
5436
  }
5423
5437
  ),
5424
- /* @__PURE__ */ jsx35(ValidItem, { success: isLength, text: intl.formatMessage({
5438
+ /* @__PURE__ */ jsx36(ValidItem, { success: isLength, text: intl.formatMessage({
5425
5439
  id: "usernameLengthError"
5426
5440
  }) })
5427
5441
  ] }),
5428
- /* @__PURE__ */ jsx35(Button, { disabled: !isSafe, loading: isSubmitting, style: {
5442
+ /* @__PURE__ */ jsx36(Button, { disabled: !isSafe, loading: isSubmitting, style: {
5429
5443
  marginTop: isDownMd ? "36px" : "64px"
5430
- }, onClick: onSubmit, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ jsx35(FormattedMessage11, { id: "confirm" }) }),
5431
- /* @__PURE__ */ jsx35(Button, { style: {
5444
+ }, onClick: onSubmit, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ jsx36(FormattedMessage11, { id: "confirm" }) }),
5445
+ /* @__PURE__ */ jsx36(Button, { style: {
5432
5446
  marginTop: isDownMd ? "12px" : "24px"
5433
- }, onClick: props.onClose, size: "lg", block: true, children: /* @__PURE__ */ jsx35(FormattedMessage11, { id: "cancel" }) })
5447
+ }, onClick: props.onClose, size: "lg", block: true, children: /* @__PURE__ */ jsx36(FormattedMessage11, { id: "cancel" }) })
5434
5448
  ] }) });
5435
5449
  }
5436
5450
 
5437
5451
  // src/components/EVMModal/index.tsx
5438
- import { useCallback as useCallback6, useEffect as useEffect22, useState as useState26 } from "react";
5452
+ import { useCallback as useCallback6, useEffect as useEffect23, useState as useState26 } from "react";
5439
5453
  import { useIntl as useIntl13 } from "react-intl";
5440
5454
 
5441
5455
  // src/components/WalletModalContent/index.tsx
@@ -5449,7 +5463,7 @@ var walletConnectImage = wallet_default;
5449
5463
  var walletSigningImage = signing_default;
5450
5464
 
5451
5465
  // src/components/WalletModalContent/index.tsx
5452
- import { jsx as jsx36, jsxs as jsxs22 } from "react/jsx-runtime";
5466
+ import { jsx as jsx37, jsxs as jsxs22 } from "react/jsx-runtime";
5453
5467
  function WalletModalContent({
5454
5468
  status,
5455
5469
  error,
@@ -5519,15 +5533,15 @@ function WalletModalContent({
5519
5533
  statusImage: walletConnectImage
5520
5534
  };
5521
5535
  }, [visible, connected, status, error, address]);
5522
- return /* @__PURE__ */ jsx36("div", { className: "matchid-wallet-container", children: /* @__PURE__ */ jsxs22("div", { className: `matchid-wallet-box`, children: [
5536
+ return /* @__PURE__ */ jsx37("div", { className: "matchid-wallet-container", children: /* @__PURE__ */ jsxs22("div", { className: `matchid-wallet-box`, children: [
5523
5537
  /* @__PURE__ */ jsxs22("div", { className: `matchid-wallet-content`, children: [
5524
- /* @__PURE__ */ jsx36(Lottie_default, { animationData: pageData.statusImage, style: {
5538
+ /* @__PURE__ */ jsx37(Lottie_default, { animationData: pageData.statusImage, style: {
5525
5539
  width: 128,
5526
5540
  height: 128
5527
5541
  } }),
5528
- /* @__PURE__ */ jsx36("div", { className: pageData.isError ? "matchid-error" : "", children: pageData.text })
5542
+ /* @__PURE__ */ jsx37("div", { className: pageData.isError ? "matchid-error" : "", children: pageData.text })
5529
5543
  ] }),
5530
- /* @__PURE__ */ jsx36(
5544
+ /* @__PURE__ */ jsx37(
5531
5545
  Button,
5532
5546
  {
5533
5547
  block: true,
@@ -5603,15 +5617,15 @@ function WalletModalContentV2(props) {
5603
5617
  statusImage: walletConnectImage
5604
5618
  };
5605
5619
  }, [props, submitting]);
5606
- return /* @__PURE__ */ jsx36("div", { className: "matchid-wallet-container", children: /* @__PURE__ */ jsxs22("div", { className: `matchid-wallet-box`, children: [
5620
+ return /* @__PURE__ */ jsx37("div", { className: "matchid-wallet-container", children: /* @__PURE__ */ jsxs22("div", { className: `matchid-wallet-box`, children: [
5607
5621
  /* @__PURE__ */ jsxs22("div", { className: `matchid-wallet-content`, children: [
5608
- /* @__PURE__ */ jsx36(Lottie_default, { animationData: pageData.statusImage, style: {
5622
+ /* @__PURE__ */ jsx37(Lottie_default, { animationData: pageData.statusImage, style: {
5609
5623
  width: 128,
5610
5624
  height: 128
5611
5625
  } }),
5612
- /* @__PURE__ */ jsx36("div", { className: props.status == "error" ? "matchid-error" : "", children: pageData.text })
5626
+ /* @__PURE__ */ jsx37("div", { className: props.status == "error" ? "matchid-error" : "", children: pageData.text })
5613
5627
  ] }),
5614
- /* @__PURE__ */ jsx36(
5628
+ /* @__PURE__ */ jsx37(
5615
5629
  Button,
5616
5630
  {
5617
5631
  block: true,
@@ -5630,13 +5644,13 @@ import { RainbowKitProvider as RainbowKitProvider2, useConnectModal } from "@rai
5630
5644
  import { useAccount, useChainId, useConfig, useDisconnect } from "wagmi";
5631
5645
 
5632
5646
  // src/hooks/useWalletBox.ts
5633
- import { useEffect as useEffect21, useRef as useRef5, useState as useState25 } from "react";
5647
+ import { useEffect as useEffect22, useRef as useRef6, useState as useState25 } from "react";
5634
5648
  function useWalletBox({
5635
5649
  onInit
5636
5650
  }) {
5637
5651
  const [status, setStateStatus] = useState25("start");
5638
5652
  const [error, setError] = useState25("");
5639
- const statusRef = useRef5(status);
5653
+ const statusRef = useRef6(status);
5640
5654
  const [nonce, setNonce] = useState25();
5641
5655
  const setStatus = (status2) => {
5642
5656
  statusRef.current = status2;
@@ -5646,7 +5660,7 @@ function useWalletBox({
5646
5660
  setError("");
5647
5661
  setNonce(null);
5648
5662
  };
5649
- useEffect21(() => {
5663
+ useEffect22(() => {
5650
5664
  init();
5651
5665
  onInit({
5652
5666
  setStatus
@@ -5893,7 +5907,7 @@ async function getEthersSigner(config, { chainId } = {}) {
5893
5907
  // src/components/EVMModal/index.tsx
5894
5908
  import { SiweMessage } from "siwe";
5895
5909
  import "@rainbow-me/rainbowkit/styles.css";
5896
- import { jsx as jsx37 } from "react/jsx-runtime";
5910
+ import { jsx as jsx38 } from "react/jsx-runtime";
5897
5911
  function WalletContent({
5898
5912
  onSuccess,
5899
5913
  type
@@ -5910,10 +5924,10 @@ function WalletContent({
5910
5924
  setStatus2("start");
5911
5925
  }
5912
5926
  });
5913
- useEffect22(() => {
5927
+ useEffect23(() => {
5914
5928
  matchlog_default.log(`status=${status}`, `connectModalOpen=${connectModalOpen}`, `address=${address}`, `isConnected=${isConnected}`);
5915
5929
  }, [status, connectModalOpen, isConnected, address]);
5916
- useEffect22(() => {
5930
+ useEffect23(() => {
5917
5931
  if (connectModalOpen) {
5918
5932
  setStatus("connecting");
5919
5933
  return;
@@ -5926,7 +5940,7 @@ function WalletContent({
5926
5940
  setStatus("start");
5927
5941
  }
5928
5942
  }, [connectModalOpen, address]);
5929
- useEffect22(() => {
5943
+ useEffect23(() => {
5930
5944
  if (openConnectModal && !isConnected && !inited) {
5931
5945
  openConnectModal && openConnectModal();
5932
5946
  setInited(true);
@@ -6009,7 +6023,7 @@ function WalletContent({
6009
6023
  setError(error2.reason || error2.message);
6010
6024
  }
6011
6025
  }, [nonce, status, address]);
6012
- useEffect22(() => {
6026
+ useEffect23(() => {
6013
6027
  if (signature) {
6014
6028
  signature();
6015
6029
  }
@@ -6051,7 +6065,7 @@ function WalletContent({
6051
6065
  setNonce(void 0);
6052
6066
  setStatus("start");
6053
6067
  };
6054
- return /* @__PURE__ */ jsx37(
6068
+ return /* @__PURE__ */ jsx38(
6055
6069
  WalletModalContentV2,
6056
6070
  {
6057
6071
  status,
@@ -6069,18 +6083,18 @@ function EVMConnectModal({
6069
6083
  ...props
6070
6084
  }) {
6071
6085
  const intl = useIntl13();
6072
- return /* @__PURE__ */ jsx37(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6086
+ return /* @__PURE__ */ jsx38(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6073
6087
  id: type == "bind" ? "bindWith" : "loginWith"
6074
6088
  }, {
6075
6089
  name: "EVM"
6076
- }), children: /* @__PURE__ */ jsx37(WalletContent, { onSuccess, type }) });
6090
+ }), children: /* @__PURE__ */ jsx38(WalletContent, { onSuccess, type }) });
6077
6091
  }
6078
6092
  function EVMModal(props) {
6079
- return props.isOpen && /* @__PURE__ */ jsx37(RainbowKitProvider2, { children: /* @__PURE__ */ jsx37(EVMConnectModal, { ...props }) });
6093
+ return props.isOpen && /* @__PURE__ */ jsx38(RainbowKitProvider2, { children: /* @__PURE__ */ jsx38(EVMConnectModal, { ...props }) });
6080
6094
  }
6081
6095
 
6082
6096
  // src/components/TRONModal/index.tsx
6083
- import React11, { useEffect as useEffect24, useMemo as useMemo14, useState as useState28 } from "react";
6097
+ import React11, { useEffect as useEffect25, useMemo as useMemo14, useState as useState28 } from "react";
6084
6098
  import { useIntl as useIntl14 } from "react-intl";
6085
6099
 
6086
6100
  // src/lib/tron/TronLinkAdapter.ts
@@ -6114,7 +6128,7 @@ var TronLinkAdapter = class {
6114
6128
  };
6115
6129
 
6116
6130
  // src/hooks/useTRONWallet.ts
6117
- import { useEffect as useEffect23, useState as useState27 } from "react";
6131
+ import { useEffect as useEffect24, useState as useState27 } from "react";
6118
6132
 
6119
6133
  // src/lib/tron/BitgetAdapter.ts
6120
6134
  var BitgetAdapter = class {
@@ -6161,7 +6175,7 @@ var useTRONWallet = () => {
6161
6175
  const wallets = [new TronLinkAdapter(), new BitgetAdapter(), new OKXAdapter()];
6162
6176
  const [installedWallets, setInstalledWallets] = useState27([]);
6163
6177
  const [address, setAddress] = useState27(null);
6164
- useEffect23(() => {
6178
+ useEffect24(() => {
6165
6179
  const getInstalled = async () => {
6166
6180
  const installed = await Promise.all(wallets.map((wallet2) => wallet2.isInstalled().then((isInstalled) => ({
6167
6181
  wallet: wallet2,
@@ -6175,7 +6189,7 @@ var useTRONWallet = () => {
6175
6189
  const onConnect = async () => {
6176
6190
  setAddress(await wallet.connect());
6177
6191
  };
6178
- useEffect23(() => {
6192
+ useEffect24(() => {
6179
6193
  if (!wallet) {
6180
6194
  setAddress(null);
6181
6195
  }
@@ -6191,7 +6205,7 @@ var useTRONWallet = () => {
6191
6205
  };
6192
6206
 
6193
6207
  // src/components/TRONModal/index.tsx
6194
- import { jsx as jsx38, jsxs as jsxs23 } from "react/jsx-runtime";
6208
+ import { jsx as jsx39, jsxs as jsxs23 } from "react/jsx-runtime";
6195
6209
  function TRONConnectModal({
6196
6210
  type = "login",
6197
6211
  onSuccess,
@@ -6201,9 +6215,9 @@ function TRONConnectModal({
6201
6215
  const intl = useIntl14();
6202
6216
  const { wallets, installedWallets, chooseWallet, wallet, address, onConnect } = useTRONWallet();
6203
6217
  const iconMaps = {
6204
- tronlink: /* @__PURE__ */ jsx38(TronLinkIcon, { size: isDownMd ? 36 : 40 }),
6205
- bitget: /* @__PURE__ */ jsx38(BitgetIcon, { size: isDownMd ? 36 : 40 }),
6206
- okx: /* @__PURE__ */ jsx38(OKXIcon, { size: isDownMd ? 36 : 40 })
6218
+ tronlink: /* @__PURE__ */ jsx39(TronLinkIcon, { size: isDownMd ? 36 : 40 }),
6219
+ bitget: /* @__PURE__ */ jsx39(BitgetIcon, { size: isDownMd ? 36 : 40 }),
6220
+ okx: /* @__PURE__ */ jsx39(OKXIcon, { size: isDownMd ? 36 : 40 })
6207
6221
  };
6208
6222
  const { events, login } = useMatch();
6209
6223
  const [status, setStatus] = useState28("");
@@ -6277,7 +6291,7 @@ function TRONConnectModal({
6277
6291
  statusRef.current = "";
6278
6292
  }
6279
6293
  };
6280
- useEffect24(() => {
6294
+ useEffect25(() => {
6281
6295
  if (wallet) {
6282
6296
  console.log("onConnect");
6283
6297
  onConnect();
@@ -6285,21 +6299,21 @@ function TRONConnectModal({
6285
6299
  setStatus("");
6286
6300
  }
6287
6301
  }, [wallet]);
6288
- useEffect24(() => {
6302
+ useEffect25(() => {
6289
6303
  if (address) {
6290
6304
  toLoginInWallet();
6291
6305
  }
6292
6306
  }, [address]);
6293
- useEffect24(() => {
6307
+ useEffect25(() => {
6294
6308
  if (!props.isOpen) {
6295
6309
  disconnect();
6296
6310
  }
6297
6311
  }, [props.isOpen]);
6298
- return /* @__PURE__ */ jsx38(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6312
+ return /* @__PURE__ */ jsx39(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6299
6313
  id: type == "bind" ? "bindWith" : "loginWith"
6300
6314
  }, {
6301
6315
  name: "TRON"
6302
- }), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ jsx38(
6316
+ }), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ jsx39(
6303
6317
  WalletModalContent,
6304
6318
  {
6305
6319
  error,
@@ -6312,9 +6326,9 @@ function TRONConnectModal({
6312
6326
  setVisible: () => {
6313
6327
  }
6314
6328
  }
6315
- ) : /* @__PURE__ */ jsx38("div", { className: "matchid-login-box", children: /* @__PURE__ */ jsxs23("div", { className: "matchid-login-recommend-list", children: [
6329
+ ) : /* @__PURE__ */ jsx39("div", { className: "matchid-login-box", children: /* @__PURE__ */ jsxs23("div", { className: "matchid-login-recommend-list", children: [
6316
6330
  installedWallets.map((wallet2) => {
6317
- return /* @__PURE__ */ jsx38(
6331
+ return /* @__PURE__ */ jsx39(
6318
6332
  RecommendItem,
6319
6333
  {
6320
6334
  icon: iconMaps[wallet2.walletKey],
@@ -6327,14 +6341,14 @@ function TRONConnectModal({
6327
6341
  );
6328
6342
  }),
6329
6343
  wallets.filter((wallet2) => !installedWallets.find((installedWallet) => installedWallet.walletKey == wallet2.walletKey)).map((wallet2) => {
6330
- return /* @__PURE__ */ jsx38(
6344
+ return /* @__PURE__ */ jsx39(
6331
6345
  RecommendItem,
6332
6346
  {
6333
6347
  icon: iconMaps[wallet2.walletKey],
6334
6348
  name: wallet2.name,
6335
6349
  onClick: () => {
6336
6350
  },
6337
- footer: /* @__PURE__ */ jsx38(Button, { size: "sm", onClick: () => {
6351
+ footer: /* @__PURE__ */ jsx39(Button, { size: "sm", onClick: () => {
6338
6352
  window.open(wallet2.website);
6339
6353
  }, children: "Install" })
6340
6354
  },
@@ -6344,11 +6358,11 @@ function TRONConnectModal({
6344
6358
  ] }) }) });
6345
6359
  }
6346
6360
  function TRONModal(props) {
6347
- return props.isOpen && /* @__PURE__ */ jsx38(TRONConnectModal, { ...props, type: props.type });
6361
+ return props.isOpen && /* @__PURE__ */ jsx39(TRONConnectModal, { ...props, type: props.type });
6348
6362
  }
6349
6363
 
6350
6364
  // src/components/TONModal/index.tsx
6351
- import React12, { useEffect as useEffect25, useState as useState29 } from "react";
6365
+ import React12, { useEffect as useEffect26, useState as useState29 } from "react";
6352
6366
  import { useIntl as useIntl15 } from "react-intl";
6353
6367
  import {
6354
6368
  TonConnectUIProvider,
@@ -6357,7 +6371,7 @@ import {
6357
6371
  useTonConnectUI,
6358
6372
  useTonWallet
6359
6373
  } from "@tonconnect/ui-react";
6360
- import { jsx as jsx39 } from "react/jsx-runtime";
6374
+ import { jsx as jsx40 } from "react/jsx-runtime";
6361
6375
  function WalletContent2({
6362
6376
  onSuccess,
6363
6377
  type
@@ -6371,7 +6385,7 @@ function WalletContent2({
6371
6385
  const [status, setStatus] = useState29("");
6372
6386
  const statusRef = React12.useRef(status);
6373
6387
  const [error, setError] = useState29("");
6374
- useEffect25(() => {
6388
+ useEffect26(() => {
6375
6389
  const init = async () => {
6376
6390
  if (tonConnectUI.connected) {
6377
6391
  await tonConnectUI.disconnect();
@@ -6444,7 +6458,7 @@ function WalletContent2({
6444
6458
  }
6445
6459
  });
6446
6460
  }, []);
6447
- useEffect25(() => {
6461
+ useEffect26(() => {
6448
6462
  if (wallet) {
6449
6463
  setConnected(true);
6450
6464
  console.log("Wallet connected:", wallet);
@@ -6455,7 +6469,7 @@ function WalletContent2({
6455
6469
  setStatus("");
6456
6470
  }
6457
6471
  }, [wallet]);
6458
- useEffect25(() => {
6472
+ useEffect26(() => {
6459
6473
  console.log({
6460
6474
  state,
6461
6475
  wallet
@@ -6484,7 +6498,7 @@ function WalletContent2({
6484
6498
  }
6485
6499
  }
6486
6500
  }, [state]);
6487
- return /* @__PURE__ */ jsx39(
6501
+ return /* @__PURE__ */ jsx40(
6488
6502
  WalletModalContent,
6489
6503
  {
6490
6504
  connected,
@@ -6518,24 +6532,24 @@ function TONConnectModal({
6518
6532
  const intl = useIntl15();
6519
6533
  const { endpoints, appid } = useLocalStore_default();
6520
6534
  const manifestUrl = `${endpoints.back}api/v1/wallet/ton?appid=${appid}&url=` + encodeURIComponent(window.location.origin);
6521
- return /* @__PURE__ */ jsx39(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6535
+ return /* @__PURE__ */ jsx40(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6522
6536
  id: type == "bind" ? "bindWith" : "loginWith"
6523
6537
  }, {
6524
6538
  name: "TON"
6525
- }), children: /* @__PURE__ */ jsx39(
6539
+ }), children: /* @__PURE__ */ jsx40(
6526
6540
  TonConnectUIProvider,
6527
6541
  {
6528
6542
  manifestUrl,
6529
- children: /* @__PURE__ */ jsx39(WalletContent2, { onSuccess, type })
6543
+ children: /* @__PURE__ */ jsx40(WalletContent2, { onSuccess, type })
6530
6544
  }
6531
6545
  ) });
6532
6546
  }
6533
6547
  function TONModal(props) {
6534
- return props.isOpen && /* @__PURE__ */ jsx39(TONConnectModal, { ...props });
6548
+ return props.isOpen && /* @__PURE__ */ jsx40(TONConnectModal, { ...props });
6535
6549
  }
6536
6550
 
6537
6551
  // src/components/BTCModal/index.tsx
6538
- import React13, { useEffect as useEffect27, useMemo as useMemo15, useState as useState31 } from "react";
6552
+ import React13, { useEffect as useEffect28, useMemo as useMemo15, useState as useState31 } from "react";
6539
6553
  import { useIntl as useIntl16 } from "react-intl";
6540
6554
 
6541
6555
  // src/lib/btc/UnisatAdapter.ts
@@ -6690,7 +6704,7 @@ var LeatherAdapter = class {
6690
6704
  };
6691
6705
 
6692
6706
  // src/hooks/useBTCWallet.ts
6693
- import { useEffect as useEffect26, useState as useState30 } from "react";
6707
+ import { useEffect as useEffect27, useState as useState30 } from "react";
6694
6708
 
6695
6709
  // src/lib/btc/PhantomAdapter.ts
6696
6710
  var PhantomAdapter = class {
@@ -6730,7 +6744,7 @@ var useBTCWallet = () => {
6730
6744
  const wallets = [new UnisatAdapter(), new XverseAdapter(), new LeatherAdapter(), new PhantomAdapter()];
6731
6745
  const [installedWallets, setInstalledWallets] = useState30([]);
6732
6746
  const [address, setAddress] = useState30(null);
6733
- useEffect26(() => {
6747
+ useEffect27(() => {
6734
6748
  const getInstalled = async () => {
6735
6749
  const installed = await Promise.all(wallets.map((wallet2) => wallet2.isInstalled().then((isInstalled) => ({
6736
6750
  wallet: wallet2,
@@ -6744,7 +6758,7 @@ var useBTCWallet = () => {
6744
6758
  const onConnect = async () => {
6745
6759
  setAddress(await wallet.connect());
6746
6760
  };
6747
- useEffect26(() => {
6761
+ useEffect27(() => {
6748
6762
  if (!wallet) {
6749
6763
  setAddress(null);
6750
6764
  }
@@ -6760,7 +6774,7 @@ var useBTCWallet = () => {
6760
6774
  };
6761
6775
 
6762
6776
  // src/components/BTCModal/index.tsx
6763
- import { jsx as jsx40, jsxs as jsxs24 } from "react/jsx-runtime";
6777
+ import { jsx as jsx41, jsxs as jsxs24 } from "react/jsx-runtime";
6764
6778
  function BTCConnectModal({
6765
6779
  type = "login",
6766
6780
  onSuccess,
@@ -6770,10 +6784,10 @@ function BTCConnectModal({
6770
6784
  const intl = useIntl16();
6771
6785
  const { wallets, installedWallets, chooseWallet, wallet, address, onConnect } = useBTCWallet();
6772
6786
  const iconMaps = {
6773
- leather: /* @__PURE__ */ jsx40(LeatherIcon, { size: isDownMd ? 36 : 40 }),
6774
- unisat: /* @__PURE__ */ jsx40(UnisatIcon, { size: isDownMd ? 36 : 40 }),
6775
- xverse: /* @__PURE__ */ jsx40(XverseIcon, { size: isDownMd ? 36 : 40 }),
6776
- phantom: /* @__PURE__ */ jsx40(PhantomIcon, { size: isDownMd ? 36 : 40 })
6787
+ leather: /* @__PURE__ */ jsx41(LeatherIcon, { size: isDownMd ? 36 : 40 }),
6788
+ unisat: /* @__PURE__ */ jsx41(UnisatIcon, { size: isDownMd ? 36 : 40 }),
6789
+ xverse: /* @__PURE__ */ jsx41(XverseIcon, { size: isDownMd ? 36 : 40 }),
6790
+ phantom: /* @__PURE__ */ jsx41(PhantomIcon, { size: isDownMd ? 36 : 40 })
6777
6791
  };
6778
6792
  const { events, login } = useMatch();
6779
6793
  const [status, setStatus] = useState31("");
@@ -6843,7 +6857,7 @@ function BTCConnectModal({
6843
6857
  statusRef.current = "";
6844
6858
  }
6845
6859
  };
6846
- useEffect27(() => {
6860
+ useEffect28(() => {
6847
6861
  if (wallet) {
6848
6862
  console.log("onConnect");
6849
6863
  try {
@@ -6856,12 +6870,12 @@ function BTCConnectModal({
6856
6870
  setStatus("");
6857
6871
  }
6858
6872
  }, [wallet]);
6859
- useEffect27(() => {
6873
+ useEffect28(() => {
6860
6874
  if (address) {
6861
6875
  toLoginInWallet();
6862
6876
  }
6863
6877
  }, [address]);
6864
- useEffect27(() => {
6878
+ useEffect28(() => {
6865
6879
  if (!props.isOpen) {
6866
6880
  disconnect();
6867
6881
  }
@@ -6873,11 +6887,11 @@ function BTCConnectModal({
6873
6887
  statusRef.current = "";
6874
6888
  setError("");
6875
6889
  };
6876
- return /* @__PURE__ */ jsx40(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6890
+ return /* @__PURE__ */ jsx41(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6877
6891
  id: type == "bind" ? "bindWith" : "loginWith"
6878
6892
  }, {
6879
6893
  name: "BTC"
6880
- }), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ jsx40(
6894
+ }), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ jsx41(
6881
6895
  WalletModalContent,
6882
6896
  {
6883
6897
  error,
@@ -6890,9 +6904,9 @@ function BTCConnectModal({
6890
6904
  setVisible: () => {
6891
6905
  }
6892
6906
  }
6893
- ) : /* @__PURE__ */ jsx40("div", { className: "matchid-login-box", children: /* @__PURE__ */ jsxs24("div", { className: "matchid-login-recommend-list", children: [
6907
+ ) : /* @__PURE__ */ jsx41("div", { className: "matchid-login-box", children: /* @__PURE__ */ jsxs24("div", { className: "matchid-login-recommend-list", children: [
6894
6908
  installedWallets.map((wallet2) => {
6895
- return /* @__PURE__ */ jsx40(
6909
+ return /* @__PURE__ */ jsx41(
6896
6910
  RecommendItem,
6897
6911
  {
6898
6912
  icon: iconMaps[wallet2.walletKey],
@@ -6905,14 +6919,14 @@ function BTCConnectModal({
6905
6919
  );
6906
6920
  }),
6907
6921
  wallets.filter((wallet2) => !installedWallets.find((installedWallet) => installedWallet.walletKey == wallet2.walletKey)).map((wallet2) => {
6908
- return /* @__PURE__ */ jsx40(
6922
+ return /* @__PURE__ */ jsx41(
6909
6923
  RecommendItem,
6910
6924
  {
6911
6925
  icon: iconMaps[wallet2.walletKey],
6912
6926
  name: wallet2.name,
6913
6927
  onClick: () => {
6914
6928
  },
6915
- footer: /* @__PURE__ */ jsx40(Button, { size: "sm", onClick: () => {
6929
+ footer: /* @__PURE__ */ jsx41(Button, { size: "sm", onClick: () => {
6916
6930
  window.open(wallet2.website);
6917
6931
  }, children: "Install" })
6918
6932
  },
@@ -6922,13 +6936,13 @@ function BTCConnectModal({
6922
6936
  ] }) }) });
6923
6937
  }
6924
6938
  function BTCModal(props) {
6925
- return props.isOpen && /* @__PURE__ */ jsx40(BTCConnectModal, { ...props });
6939
+ return props.isOpen && /* @__PURE__ */ jsx41(BTCConnectModal, { ...props });
6926
6940
  }
6927
6941
 
6928
6942
  // src/components/WalletModal/index.tsx
6929
6943
  import { useMemo as useMemo16 } from "react";
6930
6944
  import { useIntl as useIntl17 } from "react-intl";
6931
- import { jsx as jsx41 } from "react/jsx-runtime";
6945
+ import { jsx as jsx42 } from "react/jsx-runtime";
6932
6946
  function WalletConnectModal({
6933
6947
  type,
6934
6948
  methods: _methods,
@@ -6946,13 +6960,13 @@ function WalletConnectModal({
6946
6960
  const platform = config.platform.map((p) => p.toLowerCase());
6947
6961
  return WALLET_METHODS.filter((m) => platform.includes(m));
6948
6962
  }, [config.platform, _methods]);
6949
- return /* @__PURE__ */ jsx41(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6963
+ return /* @__PURE__ */ jsx42(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6950
6964
  id: type == "bind" ? "bindWith" : "loginWith"
6951
6965
  }, {
6952
6966
  name: ""
6953
- }), children: /* @__PURE__ */ jsx41("div", { className: "matchid-login-box", children: /* @__PURE__ */ jsx41("div", { className: "matchid-login-recommend-list", children: methods.map((method, index) => {
6967
+ }), children: /* @__PURE__ */ jsx42("div", { className: "matchid-login-box", children: /* @__PURE__ */ jsx42("div", { className: "matchid-login-recommend-list", children: methods.map((method, index) => {
6954
6968
  const m = walletMap[method];
6955
- return /* @__PURE__ */ jsx41(
6969
+ return /* @__PURE__ */ jsx42(
6956
6970
  RecommendItem,
6957
6971
  {
6958
6972
  icon: m?.icon,
@@ -6966,21 +6980,21 @@ function WalletConnectModal({
6966
6980
  }) }) }) });
6967
6981
  }
6968
6982
  function WalletModal(props) {
6969
- return props.isOpen && /* @__PURE__ */ jsx41(WalletConnectModal, { ...props });
6983
+ return props.isOpen && /* @__PURE__ */ jsx42(WalletConnectModal, { ...props });
6970
6984
  }
6971
6985
 
6972
6986
  // src/components/AlphaAvatar/index.tsx
6973
- import { useEffect as useEffect28, useState as useState32 } from "react";
6974
- import { jsx as jsx42 } from "react/jsx-runtime";
6987
+ import { useEffect as useEffect29, useState as useState32 } from "react";
6988
+ import { jsx as jsx43 } from "react/jsx-runtime";
6975
6989
  function AlphaAvatar2({ name, size = 40, className = "" }) {
6976
6990
  const [avatar, setAvatar] = useState32(void 0);
6977
- useEffect28(() => {
6991
+ useEffect29(() => {
6978
6992
  if (name) {
6979
6993
  const char = name[0].toUpperCase();
6980
6994
  setAvatar(char);
6981
6995
  }
6982
6996
  }, [name]);
6983
- return /* @__PURE__ */ jsx42("div", { className: `matchid-alpha-avatar ${className}`, style: {
6997
+ return /* @__PURE__ */ jsx43("div", { className: `matchid-alpha-avatar ${className}`, style: {
6984
6998
  width: size,
6985
6999
  height: size,
6986
7000
  fontSize: Math.ceil(size / 2)
@@ -6988,7 +7002,7 @@ function AlphaAvatar2({ name, size = 40, className = "" }) {
6988
7002
  }
6989
7003
 
6990
7004
  // src/components/WalletAsset/index.tsx
6991
- import { jsx as jsx43, jsxs as jsxs25 } from "react/jsx-runtime";
7005
+ import { jsx as jsx44, jsxs as jsxs25 } from "react/jsx-runtime";
6992
7006
  function WalletAsset({
6993
7007
  onAssetClick,
6994
7008
  matchWalletAssetsOptions
@@ -6998,7 +7012,7 @@ function WalletAsset({
6998
7012
  list: walletAssets.mergedAssets
6999
7013
  });
7000
7014
  const { list } = useMatchChain();
7001
- return /* @__PURE__ */ jsx43("div", { className: "matchid-wallet-asset-list", children: matchWalletAssetList.list.map((n, index) => {
7015
+ return /* @__PURE__ */ jsx44("div", { className: "matchid-wallet-asset-list", children: matchWalletAssetList.list.map((n, index) => {
7002
7016
  const clickFunc = onAssetClick && onAssetClick(n);
7003
7017
  const chain = list?.find((m) => m.id.toString() === n.chain_id);
7004
7018
  const getFooterColor = () => {
@@ -7017,7 +7031,7 @@ function WalletAsset({
7017
7031
  cursor: clickFunc ? "pointer" : "default"
7018
7032
  }, children: [
7019
7033
  /* @__PURE__ */ jsxs25("div", { className: "matchid-wallet-asset-logo", title: n.symbol || n.name || "", children: [
7020
- n.icon ? /* @__PURE__ */ jsx43("img", { src: n.icon, alt: n.symbol, className: `matchid-wallet-asset-icon` }) : /* @__PURE__ */ jsx43(
7034
+ n.icon ? /* @__PURE__ */ jsx44("img", { src: n.icon, alt: n.symbol, className: `matchid-wallet-asset-icon` }) : /* @__PURE__ */ jsx44(
7021
7035
  AlphaAvatar2,
7022
7036
  {
7023
7037
  className: `matchid-wallet-asset-icon`,
@@ -7025,12 +7039,12 @@ function WalletAsset({
7025
7039
  name: n.symbol || n.name || ""
7026
7040
  }
7027
7041
  ),
7028
- chain?.iconUrl && /* @__PURE__ */ jsx43("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-wallet-asset-chain` })
7042
+ chain?.iconUrl && /* @__PURE__ */ jsx44("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-wallet-asset-chain` })
7029
7043
  ] }),
7030
7044
  /* @__PURE__ */ jsxs25("div", { className: `matchid-wallet-asset-info`, children: [
7031
- /* @__PURE__ */ jsx43("div", { className: `matchid-wallet-asset-name`, children: n.symbol }),
7045
+ /* @__PURE__ */ jsx44("div", { className: `matchid-wallet-asset-name`, children: n.symbol }),
7032
7046
  "price" in n && /* @__PURE__ */ jsxs25("div", { className: `matchid-wallet-asset-content`, children: [
7033
- /* @__PURE__ */ jsx43("div", { className: "matchid-wallet-asset-price", children: /* @__PURE__ */ jsx43(
7047
+ /* @__PURE__ */ jsx44("div", { className: "matchid-wallet-asset-price", children: /* @__PURE__ */ jsx44(
7034
7048
  NumberFormatter,
7035
7049
  {
7036
7050
  value: n.price,
@@ -7038,7 +7052,7 @@ function WalletAsset({
7038
7052
  tFixNum: 2
7039
7053
  }
7040
7054
  ) }),
7041
- /* @__PURE__ */ jsx43("div", { className: "matchid-wallet-asset-value", children: /* @__PURE__ */ jsx43(
7055
+ /* @__PURE__ */ jsx44("div", { className: "matchid-wallet-asset-value", children: /* @__PURE__ */ jsx44(
7042
7056
  NumberFormatter,
7043
7057
  {
7044
7058
  value: n.value,
@@ -7048,14 +7062,14 @@ function WalletAsset({
7048
7062
  ) })
7049
7063
  ] }),
7050
7064
  /* @__PURE__ */ jsxs25("div", { className: `matchid-wallet-asset-footer`, children: [
7051
- /* @__PURE__ */ jsx43("div", { className: `matchid-wallet-asset-balance`, children: /* @__PURE__ */ jsx43(
7065
+ /* @__PURE__ */ jsx44("div", { className: `matchid-wallet-asset-balance`, children: /* @__PURE__ */ jsx44(
7052
7066
  NumberFormatter,
7053
7067
  {
7054
7068
  value: n.balance,
7055
7069
  tFixNum: 3
7056
7070
  }
7057
7071
  ) }),
7058
- "price_change_24h" in n && /* @__PURE__ */ jsx43("div", { className: `matchid-wallet-asset-change ${getFooterColor()}`, children: /* @__PURE__ */ jsx43(
7072
+ "price_change_24h" in n && /* @__PURE__ */ jsx44("div", { className: `matchid-wallet-asset-change ${getFooterColor()}`, children: /* @__PURE__ */ jsx44(
7059
7073
  NumberFormatter,
7060
7074
  {
7061
7075
  prefix: `${(n?.price_change_24h || 0) < 0 ? "-" : "+"} `,
@@ -7071,10 +7085,10 @@ function WalletAsset({
7071
7085
  }
7072
7086
 
7073
7087
  // src/components/TokenSend/index.tsx
7074
- import { useEffect as useEffect29, useMemo as useMemo17, useState as useState33 } from "react";
7088
+ import { useEffect as useEffect30, useMemo as useMemo17, useState as useState33 } from "react";
7075
7089
  import { defineChain as defineChain4, encodeFunctionData as encodeFunctionData2, erc20Abi as erc20Abi3, http as http8, parseUnits as parseUnits2 } from "viem";
7076
7090
  import { FormattedMessage as FormattedMessage12, useIntl as useIntl18 } from "react-intl";
7077
- import { jsx as jsx44, jsxs as jsxs26 } from "react/jsx-runtime";
7091
+ import { jsx as jsx45, jsxs as jsxs26 } from "react/jsx-runtime";
7078
7092
  function Input2({
7079
7093
  onChange,
7080
7094
  placeholder,
@@ -7085,7 +7099,7 @@ function Input2({
7085
7099
  size = "df"
7086
7100
  }) {
7087
7101
  return /* @__PURE__ */ jsxs26("div", { className: `matchid-token-input-box ${"matchid-token-input-" + size}`, children: [
7088
- /* @__PURE__ */ jsx44(
7102
+ /* @__PURE__ */ jsx45(
7089
7103
  "input",
7090
7104
  {
7091
7105
  placeholder,
@@ -7096,7 +7110,7 @@ function Input2({
7096
7110
  className: `matchid-token-input ${error ? "matchid-token-input-error" : ""}`
7097
7111
  }
7098
7112
  ),
7099
- error && /* @__PURE__ */ jsx44("div", { className: "matchid-token-input-error-text", children: error })
7113
+ error && /* @__PURE__ */ jsx45("div", { className: "matchid-token-input-error-text", children: error })
7100
7114
  ] });
7101
7115
  }
7102
7116
  function TokenSend({
@@ -7208,7 +7222,7 @@ function TokenSend({
7208
7222
  }
7209
7223
  onClose();
7210
7224
  };
7211
- useEffect29(() => {
7225
+ useEffect30(() => {
7212
7226
  const receiveMessage = (event) => {
7213
7227
  if (event.data) {
7214
7228
  if (event.data.source == "match-wallet") {
@@ -7224,24 +7238,24 @@ function TokenSend({
7224
7238
  window.removeEventListener("message", receiveMessage);
7225
7239
  };
7226
7240
  }, []);
7227
- return /* @__PURE__ */ jsx44(ModalDrawer, { isOpen: true, onClose, zIndex, title: /* @__PURE__ */ jsx44(FormattedMessage12, { id: "send" }), onBack, children: /* @__PURE__ */ jsxs26("div", { className: `matchid-token-send-box`, children: [
7241
+ return /* @__PURE__ */ jsx45(ModalDrawer, { isOpen: true, onClose, zIndex, title: /* @__PURE__ */ jsx45(FormattedMessage12, { id: "send" }), onBack, children: /* @__PURE__ */ jsxs26("div", { className: `matchid-token-send-box`, children: [
7228
7242
  /* @__PURE__ */ jsxs26("div", { className: "matchid-token-send-content", children: [
7229
7243
  /* @__PURE__ */ jsxs26("div", { className: `matchid-token-amount-content`, children: [
7230
7244
  /* @__PURE__ */ jsxs26("div", { className: `matchid-token-amount-header`, children: [
7231
- /* @__PURE__ */ jsx44("div", { className: `matchid-token-amount-title`, children: /* @__PURE__ */ jsx44(FormattedMessage12, { id: "amount" }) }),
7245
+ /* @__PURE__ */ jsx45("div", { className: `matchid-token-amount-title`, children: /* @__PURE__ */ jsx45(FormattedMessage12, { id: "amount" }) }),
7232
7246
  /* @__PURE__ */ jsxs26("div", { className: `matchid-token-amount-chain`, children: [
7233
- token.icon ? /* @__PURE__ */ jsx44(
7247
+ token.icon ? /* @__PURE__ */ jsx45(
7234
7248
  "img",
7235
7249
  {
7236
7250
  src: token?.icon,
7237
7251
  alt: token?.symbol,
7238
7252
  className: `matchid-token-amount-chain-icon`
7239
7253
  }
7240
- ) : /* @__PURE__ */ jsx44(AlphaAvatar, { name: token.symbol || token.name || "", size: 16 }),
7241
- /* @__PURE__ */ jsx44("span", { children: token?.symbol })
7254
+ ) : /* @__PURE__ */ jsx45(AlphaAvatar, { name: token.symbol || token.name || "", size: 16 }),
7255
+ /* @__PURE__ */ jsx45("span", { children: token?.symbol })
7242
7256
  ] })
7243
7257
  ] }),
7244
- /* @__PURE__ */ jsx44(
7258
+ /* @__PURE__ */ jsx45(
7245
7259
  Input2,
7246
7260
  {
7247
7261
  type: "text",
@@ -7256,16 +7270,16 @@ function TokenSend({
7256
7270
  ),
7257
7271
  /* @__PURE__ */ jsxs26("div", { className: `matchid-token-amount-footer`, children: [
7258
7272
  /* @__PURE__ */ jsxs26("div", { className: `matchid-token-amount-title`, children: [
7259
- /* @__PURE__ */ jsx44(FormattedMessage12, { id: "balance" }),
7273
+ /* @__PURE__ */ jsx45(FormattedMessage12, { id: "balance" }),
7260
7274
  ":"
7261
7275
  ] }),
7262
- /* @__PURE__ */ jsx44("div", { className: `matchid-token-amount-value`, children: /* @__PURE__ */ jsx44(NumberFormatter, { value: token.balance, tFixNum: 10, suffix: " " + token.symbol }) })
7276
+ /* @__PURE__ */ jsx45("div", { className: `matchid-token-amount-value`, children: /* @__PURE__ */ jsx45(NumberFormatter, { value: token.balance, tFixNum: 10, suffix: " " + token.symbol }) })
7263
7277
  ] }),
7264
- /* @__PURE__ */ jsx44(TransferIcon, { className: "matchid-token-amount-transfer" })
7278
+ /* @__PURE__ */ jsx45(TransferIcon, { className: "matchid-token-amount-transfer" })
7265
7279
  ] }),
7266
7280
  /* @__PURE__ */ jsxs26("div", { className: `matchid-token-address-content`, children: [
7267
- /* @__PURE__ */ jsx44("div", { className: `matchid-token-address-header`, children: /* @__PURE__ */ jsx44("div", { className: `matchid-token-address-title`, children: /* @__PURE__ */ jsx44(FormattedMessage12, { id: "receiveTitle" }) }) }),
7268
- /* @__PURE__ */ jsx44(
7281
+ /* @__PURE__ */ jsx45("div", { className: `matchid-token-address-header`, children: /* @__PURE__ */ jsx45("div", { className: `matchid-token-address-title`, children: /* @__PURE__ */ jsx45(FormattedMessage12, { id: "receiveTitle" }) }) }),
7282
+ /* @__PURE__ */ jsx45(
7269
7283
  Input2,
7270
7284
  {
7271
7285
  type: "text",
@@ -7281,7 +7295,7 @@ function TokenSend({
7281
7295
  )
7282
7296
  ] })
7283
7297
  ] }),
7284
- /* @__PURE__ */ jsx44(
7298
+ /* @__PURE__ */ jsx45(
7285
7299
  Button,
7286
7300
  {
7287
7301
  size: "lg",
@@ -7290,7 +7304,7 @@ function TokenSend({
7290
7304
  disabled: !canSend || !!txError,
7291
7305
  onClick: onNext,
7292
7306
  loading: loading || sending,
7293
- children: /* @__PURE__ */ jsx44(FormattedMessage12, { id: "next" })
7307
+ children: /* @__PURE__ */ jsx45(FormattedMessage12, { id: "next" })
7294
7308
  }
7295
7309
  )
7296
7310
  ] }) });
@@ -7298,7 +7312,7 @@ function TokenSend({
7298
7312
 
7299
7313
  // src/components/TokenDetail/index.tsx
7300
7314
  import { FormattedMessage as FormattedMessage13, useIntl as useIntl19 } from "react-intl";
7301
- import { jsx as jsx45, jsxs as jsxs27 } from "react/jsx-runtime";
7315
+ import { jsx as jsx46, jsxs as jsxs27 } from "react/jsx-runtime";
7302
7316
  function TokenDetail({
7303
7317
  onClose,
7304
7318
  token
@@ -7308,41 +7322,41 @@ function TokenDetail({
7308
7322
  const chain = chainList?.find((m) => m.id.toString() === token.chain_id);
7309
7323
  const onSend = () => {
7310
7324
  modal.show((props) => {
7311
- return /* @__PURE__ */ jsx45(TokenSend, { onClose: () => {
7325
+ return /* @__PURE__ */ jsx46(TokenSend, { onClose: () => {
7312
7326
  props.close();
7313
7327
  onClose();
7314
7328
  }, onBack: props.close, zIndex: props.zIndex, token });
7315
7329
  });
7316
7330
  };
7317
7331
  const intl = useIntl19();
7318
- return /* @__PURE__ */ jsx45(ModalDrawer, { isOpen: true, title: intl.formatMessage({
7332
+ return /* @__PURE__ */ jsx46(ModalDrawer, { isOpen: true, title: intl.formatMessage({
7319
7333
  id: "tokenDetails"
7320
7334
  }), onClose, children: /* @__PURE__ */ jsxs27("div", { className: `matchid-token-detail`, children: [
7321
7335
  /* @__PURE__ */ jsxs27("div", { className: `matchid-token-main`, children: [
7322
7336
  /* @__PURE__ */ jsxs27("div", { className: `matchid-token-info`, children: [
7323
7337
  /* @__PURE__ */ jsxs27("div", { className: `matchid-token-logo`, children: [
7324
- token.icon ? /* @__PURE__ */ jsx45("img", { src: token.icon, alt: token.symbol, className: `matchid-token-icon` }) : /* @__PURE__ */ jsx45(AlphaAvatar, { className: `matchid-token-icon`, size: 48, name: token.symbol || token.name || "" }),
7325
- chain?.iconUrl && /* @__PURE__ */ jsx45("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-token-chain` })
7338
+ token.icon ? /* @__PURE__ */ jsx46("img", { src: token.icon, alt: token.symbol, className: `matchid-token-icon` }) : /* @__PURE__ */ jsx46(AlphaAvatar, { className: `matchid-token-icon`, size: 48, name: token.symbol || token.name || "" }),
7339
+ chain?.iconUrl && /* @__PURE__ */ jsx46("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-token-chain` })
7326
7340
  ] }),
7327
7341
  /* @__PURE__ */ jsxs27("div", { className: `matchid-token-name`, children: [
7328
- /* @__PURE__ */ jsx45(NumberFormatter, { value: token.balance, tFixNum: 10 }),
7342
+ /* @__PURE__ */ jsx46(NumberFormatter, { value: token.balance, tFixNum: 10 }),
7329
7343
  " ",
7330
7344
  token.symbol
7331
7345
  ] })
7332
7346
  ] }),
7333
7347
  token.address.toLowerCase() != NATIVE_TOKEN_ADDRESS && /* @__PURE__ */ jsxs27("div", { className: `matchid-token-contract`, children: [
7334
- /* @__PURE__ */ jsx45("div", { className: "matchid-token-contract-title", children: "Contract address" }),
7335
- /* @__PURE__ */ jsx45("div", { className: "matchid-token-contract-address", children: token.address })
7348
+ /* @__PURE__ */ jsx46("div", { className: "matchid-token-contract-title", children: "Contract address" }),
7349
+ /* @__PURE__ */ jsx46("div", { className: "matchid-token-contract-address", children: token.address })
7336
7350
  ] })
7337
7351
  ] }),
7338
- /* @__PURE__ */ jsx45(Button, { size: "lg", block: true, highlight: true, onClick: onSend, children: /* @__PURE__ */ jsx45(FormattedMessage13, { id: "send" }) })
7352
+ /* @__PURE__ */ jsx46(Button, { size: "lg", block: true, highlight: true, onClick: onSend, children: /* @__PURE__ */ jsx46(FormattedMessage13, { id: "send" }) })
7339
7353
  ] }) });
7340
7354
  }
7341
7355
 
7342
7356
  // src/components/TokenSendList/index.tsx
7343
7357
  import { useState as useState34 } from "react";
7344
7358
  import { FormattedMessage as FormattedMessage14 } from "react-intl";
7345
- import { jsx as jsx46, jsxs as jsxs28 } from "react/jsx-runtime";
7359
+ import { jsx as jsx47, jsxs as jsxs28 } from "react/jsx-runtime";
7346
7360
  function TokenSendList({ close }) {
7347
7361
  const isDownMd = useDownMd();
7348
7362
  const walletAssets = useMatchWalletAssets();
@@ -7354,14 +7368,14 @@ function TokenSendList({ close }) {
7354
7368
  const modal = useModal();
7355
7369
  const onNext = () => {
7356
7370
  checked && modal.show((props) => {
7357
- return /* @__PURE__ */ jsx46(TokenSend, { onClose: () => {
7371
+ return /* @__PURE__ */ jsx47(TokenSend, { onClose: () => {
7358
7372
  props.close();
7359
7373
  close();
7360
7374
  }, onBack: props.close, zIndex: props.zIndex, token: checked });
7361
7375
  });
7362
7376
  };
7363
7377
  return /* @__PURE__ */ jsxs28("div", { className: "matchid-token-send-list-box", children: [
7364
- /* @__PURE__ */ jsx46("div", { className: "matchid-token-send-list", children: matchWalletAssetList.list.map((n, index) => {
7378
+ /* @__PURE__ */ jsx47("div", { className: "matchid-token-send-list", children: matchWalletAssetList.list.map((n, index) => {
7365
7379
  const chain = list?.find((m) => m.id.toString() === n.chain_id);
7366
7380
  return /* @__PURE__ */ jsxs28(
7367
7381
  "div",
@@ -7371,10 +7385,10 @@ function TokenSendList({ close }) {
7371
7385
  setChecked(n);
7372
7386
  },
7373
7387
  children: [
7374
- /* @__PURE__ */ jsx46(Radio, { checked: checked?.address == n.address, size: isDownMd ? 18 : 24 }),
7388
+ /* @__PURE__ */ jsx47(Radio, { checked: checked?.address == n.address, size: isDownMd ? 18 : 24 }),
7375
7389
  /* @__PURE__ */ jsxs28("div", { className: "matchid-token-send-content", children: [
7376
7390
  /* @__PURE__ */ jsxs28("div", { className: "matchid-token-send-logo", children: [
7377
- n.icon ? /* @__PURE__ */ jsx46("img", { src: n.icon, alt: n.symbol, className: `matchid-token-send-icon` }) : /* @__PURE__ */ jsx46(
7391
+ n.icon ? /* @__PURE__ */ jsx47("img", { src: n.icon, alt: n.symbol, className: `matchid-token-send-icon` }) : /* @__PURE__ */ jsx47(
7378
7392
  AlphaAvatar2,
7379
7393
  {
7380
7394
  className: `matchid-token-send-icon`,
@@ -7382,7 +7396,7 @@ function TokenSendList({ close }) {
7382
7396
  name: n.symbol || n.name || ""
7383
7397
  }
7384
7398
  ),
7385
- chain?.iconUrl && /* @__PURE__ */ jsx46(
7399
+ chain?.iconUrl && /* @__PURE__ */ jsx47(
7386
7400
  "img",
7387
7401
  {
7388
7402
  src: chain.iconUrl,
@@ -7392,8 +7406,8 @@ function TokenSendList({ close }) {
7392
7406
  )
7393
7407
  ] }),
7394
7408
  /* @__PURE__ */ jsxs28("div", { className: `matchid-token-send-info`, children: [
7395
- /* @__PURE__ */ jsx46("div", { className: `matchid-token-send-name`, children: n.symbol }),
7396
- /* @__PURE__ */ jsx46("div", { className: `matchid-token-send-balance`, children: /* @__PURE__ */ jsx46(NumberFormatter, { value: n.balance, tFixNum: 3 }) })
7409
+ /* @__PURE__ */ jsx47("div", { className: `matchid-token-send-name`, children: n.symbol }),
7410
+ /* @__PURE__ */ jsx47("div", { className: `matchid-token-send-balance`, children: /* @__PURE__ */ jsx47(NumberFormatter, { value: n.balance, tFixNum: 3 }) })
7397
7411
  ] })
7398
7412
  ] })
7399
7413
  ]
@@ -7401,17 +7415,17 @@ function TokenSendList({ close }) {
7401
7415
  index
7402
7416
  );
7403
7417
  }) }),
7404
- /* @__PURE__ */ jsx46(Button, { size: "lg", highlight: true, block: true, disabled: !checked, onClick: onNext, children: /* @__PURE__ */ jsx46(FormattedMessage14, { id: "next" }) })
7418
+ /* @__PURE__ */ jsx47(Button, { size: "lg", highlight: true, block: true, disabled: !checked, onClick: onNext, children: /* @__PURE__ */ jsx47(FormattedMessage14, { id: "next" }) })
7405
7419
  ] });
7406
7420
  }
7407
7421
 
7408
7422
  // src/components/TransactionList/index.tsx
7409
7423
  import InfiniteScroll from "react-infinite-scroll-component";
7410
- import { useEffect as useEffect30, useMemo as useMemo18, useState as useState35 } from "react";
7424
+ import { useEffect as useEffect31, useMemo as useMemo18, useState as useState35 } from "react";
7411
7425
  import { decodeFunctionData, defineChain as defineChain5, formatUnits as formatUnits3 } from "viem";
7412
7426
  import { erc20Abi as erc20Abi4 } from "viem";
7413
7427
  import { FormattedMessage as FormattedMessage15 } from "react-intl";
7414
- import { jsx as jsx47, jsxs as jsxs29 } from "react/jsx-runtime";
7428
+ import { jsx as jsx48, jsxs as jsxs29 } from "react/jsx-runtime";
7415
7429
  var Item = ({ data }) => {
7416
7430
  const { address } = useWallet();
7417
7431
  const isOut = data.from.toLowerCase() == address.toLowerCase();
@@ -7486,7 +7500,7 @@ var Item = ({ data }) => {
7486
7500
  }
7487
7501
  return "loading";
7488
7502
  }, [data.extra?.status, data.source, hashQuery.data]);
7489
- useEffect30(() => {
7503
+ useEffect31(() => {
7490
7504
  if (data.hash) {
7491
7505
  setShouldRefetch(status == "loading");
7492
7506
  }
@@ -7506,10 +7520,10 @@ var Item = ({ data }) => {
7506
7520
  className: `matchid-transaction-item`,
7507
7521
  children: [
7508
7522
  /* @__PURE__ */ jsxs29("div", { className: `matchid-transacton-item-container`, children: [
7509
- /* @__PURE__ */ jsx47("div", { className: "matchid-transaction-item-icon", children: /* @__PURE__ */ jsx47(ArrowSendIcon, { className: !isOut ? "rotate-180" : "" }) }),
7523
+ /* @__PURE__ */ jsx48("div", { className: "matchid-transaction-item-icon", children: /* @__PURE__ */ jsx48(ArrowSendIcon, { className: !isOut ? "rotate-180" : "" }) }),
7510
7524
  /* @__PURE__ */ jsxs29("div", { className: `matchid-transaction-item-details`, children: [
7511
- /* @__PURE__ */ jsx47("div", { className: `matchid-transaction-item-address`, children: formatAddress(to, 6, 4) }),
7512
- /* @__PURE__ */ jsx47(
7525
+ /* @__PURE__ */ jsx48("div", { className: `matchid-transaction-item-address`, children: formatAddress(to, 6, 4) }),
7526
+ /* @__PURE__ */ jsx48(
7513
7527
  "div",
7514
7528
  {
7515
7529
  className: `matchid-transaction-item-timestamp`,
@@ -7519,10 +7533,10 @@ var Item = ({ data }) => {
7519
7533
  ] })
7520
7534
  ] }),
7521
7535
  /* @__PURE__ */ jsxs29("div", { className: `matchid-transaction-item-amount ${"matchid-transaction-item-" + status}`, children: [
7522
- /* @__PURE__ */ jsx47(NumberFormatter, { value: amount, tFixNum: 6, prefix: isOut ? "-" : "+", suffix: " " + symbol }),
7523
- status == "loading" && /* @__PURE__ */ jsx47(LoadingIcon_default, { color: "#000000", size: 16, rotate: true }),
7524
- status == "success" && /* @__PURE__ */ jsx47(CheckRoundIcon, { size: 16 }),
7525
- status == "error" && /* @__PURE__ */ jsx47(InfoRoundIcon, { size: 16 })
7536
+ /* @__PURE__ */ jsx48(NumberFormatter, { value: amount, tFixNum: 6, prefix: isOut ? "-" : "+", suffix: " " + symbol }),
7537
+ status == "loading" && /* @__PURE__ */ jsx48(LoadingIcon_default, { color: "#000000", size: 16, rotate: true }),
7538
+ status == "success" && /* @__PURE__ */ jsx48(CheckRoundIcon, { size: 16 }),
7539
+ status == "error" && /* @__PURE__ */ jsx48(InfoRoundIcon, { size: 16 })
7526
7540
  ] })
7527
7541
  ]
7528
7542
  }
@@ -7532,7 +7546,7 @@ function TransactionList({
7532
7546
  scrollableTarget
7533
7547
  }) {
7534
7548
  const { fetchMoreData, hasMore, items } = useMatchWalletRecords();
7535
- return /* @__PURE__ */ jsx47(
7549
+ return /* @__PURE__ */ jsx48(
7536
7550
  InfiniteScroll,
7537
7551
  {
7538
7552
  scrollableTarget,
@@ -7540,11 +7554,11 @@ function TransactionList({
7540
7554
  next: fetchMoreData,
7541
7555
  hasMore,
7542
7556
  loader: /* @__PURE__ */ jsxs29("div", { className: "matchid-list-nomore", children: [
7543
- /* @__PURE__ */ jsx47(LoadingIcon_default, { rotate: true, size: 16, color: "black" }),
7557
+ /* @__PURE__ */ jsx48(LoadingIcon_default, { rotate: true, size: 16, color: "black" }),
7544
7558
  "Loading..."
7545
7559
  ] }),
7546
- endMessage: items.length > 0 ? /* @__PURE__ */ jsx47("div", { className: `matchid-list-nomore`, children: /* @__PURE__ */ jsx47(FormattedMessage15, { id: "noMoreRecords" }) }) : /* @__PURE__ */ jsx47("div", { className: `matchid-list-nomore`, children: /* @__PURE__ */ jsx47(FormattedMessage15, { id: "noRecords" }) }),
7547
- children: items.length == 0 && !hasMore ? /* @__PURE__ */ jsx47("div", { className: "mt-[150px]" }) : /* @__PURE__ */ jsx47("div", { className: `matchid-transaction-list`, children: items.map((item, index) => /* @__PURE__ */ jsx47(Item, { data: item }, index)) })
7560
+ endMessage: items.length > 0 ? /* @__PURE__ */ jsx48("div", { className: `matchid-list-nomore`, children: /* @__PURE__ */ jsx48(FormattedMessage15, { id: "noMoreRecords" }) }) : /* @__PURE__ */ jsx48("div", { className: `matchid-list-nomore`, children: /* @__PURE__ */ jsx48(FormattedMessage15, { id: "noRecords" }) }),
7561
+ children: items.length == 0 && !hasMore ? /* @__PURE__ */ jsx48("div", { className: "mt-[150px]" }) : /* @__PURE__ */ jsx48("div", { className: `matchid-transaction-list`, children: items.map((item, index) => /* @__PURE__ */ jsx48(Item, { data: item }, index)) })
7548
7562
  }
7549
7563
  );
7550
7564
  }
@@ -7598,6 +7612,7 @@ export {
7598
7612
  Skeleton_default,
7599
7613
  Tabs,
7600
7614
  Lottie_default,
7615
+ Checkbox,
7601
7616
  ui_exports,
7602
7617
  ModalProvider,
7603
7618
  useModal,
@@ -7618,4 +7633,4 @@ export {
7618
7633
  MatchProvider,
7619
7634
  useMatch
7620
7635
  };
7621
- //# sourceMappingURL=chunk-NIGHV7RT.mjs.map
7636
+ //# sourceMappingURL=chunk-2HVTQUPR.mjs.map