@matchain/matchid-sdk-react 0.1.55-alpha.9 → 0.1.55

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 (59) hide show
  1. package/dist/api.d.mts +2 -2
  2. package/dist/api.d.ts +2 -2
  3. package/dist/api.js +11 -12
  4. package/dist/api.js.map +1 -1
  5. package/dist/api.mjs +2 -2
  6. package/dist/assets/lottie.d.mts +1 -1
  7. package/dist/assets/lottie.d.ts +1 -1
  8. package/dist/chains.d.mts +1 -1
  9. package/dist/chains.d.ts +1 -1
  10. package/dist/{chunk-GCIXXSIH.mjs → chunk-6PWLEXC3.mjs} +2 -2
  11. package/dist/{chunk-2T4RY5BM.mjs → chunk-PAXASLBR.mjs} +282 -274
  12. package/dist/chunk-PAXASLBR.mjs.map +1 -0
  13. package/dist/components.d.mts +3 -3
  14. package/dist/components.d.ts +3 -3
  15. package/dist/components.js +295 -287
  16. package/dist/components.js.map +1 -1
  17. package/dist/components.mjs +1 -1
  18. package/dist/hooks.d.mts +4 -2
  19. package/dist/hooks.d.ts +4 -2
  20. package/dist/hooks.js +103 -100
  21. package/dist/hooks.js.map +1 -1
  22. package/dist/hooks.mjs +1 -1
  23. package/dist/icon.d.mts +2 -2
  24. package/dist/icon.d.ts +2 -2
  25. package/dist/{index-Bx7ztInz.d.ts → index-4dZbgWG2.d.ts} +1 -1
  26. package/dist/{index-DXRGMAbv.d.mts → index-B50DU_xT.d.mts} +4 -4
  27. package/dist/{index-DXRGMAbv.d.ts → index-B50DU_xT.d.ts} +4 -4
  28. package/dist/{index-D6wTVWuu.d.mts → index-BKSGbw7b.d.mts} +3 -3
  29. package/dist/{index-DL0LMDQ0.d.mts → index-BXbfmVoU.d.mts} +2 -2
  30. package/dist/{index-BTO2pJRz.d.ts → index-BtjgRcNJ.d.ts} +3 -3
  31. package/dist/{index-DY5CjOq2.d.ts → index-C82WIWvx.d.ts} +5 -5
  32. package/dist/{index-DysgDUCb.d.mts → index-CDTTHSh0.d.mts} +14 -14
  33. package/dist/{index-DysgDUCb.d.ts → index-CDTTHSh0.d.ts} +14 -14
  34. package/dist/{index-BjdOd1te.d.mts → index-CHG4-0Z1.d.mts} +987 -981
  35. package/dist/{index-8h2kA48e.d.ts → index-CsUEaGtM.d.ts} +2 -2
  36. package/dist/{index-CopoHLm5.d.ts → index-CwHXzvvB.d.ts} +1 -1
  37. package/dist/{index-DueNjDv_.d.ts → index-D1Ep9UMx.d.ts} +987 -981
  38. package/dist/{index-HYPgwvkU.d.mts → index-D7E317WV.d.mts} +5 -5
  39. package/dist/{index-B-u8_Lcy.d.ts → index-DK7l3lsH.d.ts} +13 -11
  40. package/dist/{index-BW1GRpQ3.d.mts → index-FKxw4Vaa.d.mts} +1 -1
  41. package/dist/{index-D2hhRO2j.d.mts → index-TjbO7d74.d.mts} +1 -1
  42. package/dist/{index-Ba8t2zs6.d.mts → index-YPRyEYt6.d.mts} +13 -11
  43. package/dist/index.d.mts +20 -20
  44. package/dist/index.d.ts +20 -20
  45. package/dist/index.js +99 -91
  46. package/dist/index.js.map +1 -1
  47. package/dist/index.mjs +2 -2
  48. package/dist/{types-Ch54HuTY.d.mts → types-DEsY_CPH.d.mts} +1 -1
  49. package/dist/{types-Ch54HuTY.d.ts → types-DEsY_CPH.d.ts} +1 -1
  50. package/dist/types.d.mts +1 -1
  51. package/dist/types.d.ts +1 -1
  52. package/dist/ui.d.mts +3 -4
  53. package/dist/ui.d.ts +3 -4
  54. package/dist/ui.js +13 -10
  55. package/dist/ui.js.map +1 -1
  56. package/dist/ui.mjs +3 -3
  57. package/package.json +2 -3
  58. package/dist/chunk-2T4RY5BM.mjs.map +0 -1
  59. /package/dist/{chunk-GCIXXSIH.mjs.map → chunk-6PWLEXC3.mjs.map} +0 -0
@@ -959,7 +959,7 @@ __export(ui_exports, {
959
959
  Field: () => Field,
960
960
  HashPanel: () => HashPanel_default,
961
961
  Input: () => Input,
962
- Lottie: () => Lottie,
962
+ Lottie: () => Lottie_default,
963
963
  Modal: () => Modal,
964
964
  ModalDrawer: () => ModalDrawer,
965
965
  ModalWithHeader: () => ModalWithHeader,
@@ -1140,7 +1140,7 @@ function HashPanel({
1140
1140
  /* @__PURE__ */ jsx9("div", { className: `matchid-hashpanel-status`, style: {
1141
1141
  color: statusValue.color
1142
1142
  }, children: statusValue.text }),
1143
- statusValue.lottie ? /* @__PURE__ */ jsx9(Lottie, { animationData: statusValue.lottie, style: {
1143
+ statusValue.lottie ? /* @__PURE__ */ jsx9(Lottie_default, { animationData: statusValue.lottie, style: {
1144
1144
  width: "96px",
1145
1145
  height: "96px"
1146
1146
  } }) : /* @__PURE__ */ jsx9("img", { src: statusValue.icon, alt: statusValue.text, className: `matchid-hashpanel-img` }),
@@ -1297,17 +1297,20 @@ function Tabs(props) {
1297
1297
  }
1298
1298
 
1299
1299
  // src/ui/Lottie/index.tsx
1300
- import LottieReact from "lottie-react";
1301
- import { jsx as jsx16 } from "react/jsx-runtime";
1302
- function Lottie(props) {
1303
- console.log("Lottie", props);
1304
- const result = /* @__PURE__ */ jsx16(LottieReact, { loop: true, autoplay: true, ...props });
1305
- console.log("result", result);
1306
- return result;
1307
- }
1300
+ import { useLottie } from "lottie-react";
1301
+ var LazyLottie = (props) => {
1302
+ const options = {
1303
+ animationData: props.animationData,
1304
+ loop: true,
1305
+ autoplay: true
1306
+ };
1307
+ const { View } = useLottie(options, props.style);
1308
+ return View;
1309
+ };
1310
+ var Lottie_default = LazyLottie;
1308
1311
 
1309
1312
  // src/context/ModalContext.tsx
1310
- import { jsx as jsx17, jsxs as jsxs8 } from "react/jsx-runtime";
1313
+ import { jsx as jsx16, jsxs as jsxs8 } from "react/jsx-runtime";
1311
1314
  var ModalContext = createContext(null);
1312
1315
  function ModalProvider({ children }) {
1313
1316
  const [modalState, setModalState] = useState7({
@@ -1349,7 +1352,7 @@ function ModalProvider({ children }) {
1349
1352
  index: modalIndex,
1350
1353
  zIndex: newZIndex,
1351
1354
  close: () => closeModal(modalIndex),
1352
- 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
+ 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 }) })
1353
1356
  }],
1354
1357
  highestZIndex: newZIndex
1355
1358
  };
@@ -1405,7 +1408,7 @@ var useTransactionStore = create3(devtools2(persistedState2));
1405
1408
  var useTransactionStore_default = useTransactionStore;
1406
1409
 
1407
1410
  // src/hooks/useWallet.tsx
1408
- import { jsx as jsx18 } from "react/jsx-runtime";
1411
+ import { jsx as jsx17 } from "react/jsx-runtime";
1409
1412
  var AppClientId = "react-sdk-" + getVersion();
1410
1413
  function useWallet() {
1411
1414
  const { address, wallet: walletConfig } = useLocalStore_default();
@@ -1579,12 +1582,12 @@ function useWallet() {
1579
1582
  address: evmAccount.address
1580
1583
  });
1581
1584
  modal.show((props) => {
1582
- return /* @__PURE__ */ jsx18(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, hash: txHash, chain: _chain });
1585
+ return /* @__PURE__ */ jsx17(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, hash: txHash, chain: _chain });
1583
1586
  });
1584
1587
  return txHash;
1585
1588
  } catch (error) {
1586
1589
  modal.show((props) => {
1587
- 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
+ return /* @__PURE__ */ jsx17(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, error: typeof error == "string" ? error : error.details || error.message, chain: _chain });
1588
1591
  });
1589
1592
  throw error;
1590
1593
  }
@@ -1662,7 +1665,7 @@ function useCopyClipboard(timeout = 500) {
1662
1665
  // src/context/ToastContext.tsx
1663
1666
  import { useState as useState10, useCallback as useCallback3, createContext as createContext2, useContext as useContext2 } from "react";
1664
1667
  import { createPortal as createPortal2 } from "react-dom";
1665
- import { jsx as jsx19, jsxs as jsxs9 } from "react/jsx-runtime";
1668
+ import { jsx as jsx18, jsxs as jsxs9 } from "react/jsx-runtime";
1666
1669
  var ToastContext = createContext2(null);
1667
1670
  function ToastProvider({ children, zIndex = 299 }) {
1668
1671
  const [toasts, setToasts] = useState10([]);
@@ -1675,21 +1678,21 @@ function ToastProvider({ children, zIndex = 299 }) {
1675
1678
  setTimeout(() => removeToast(id), timeout);
1676
1679
  }, [removeToast]);
1677
1680
  const success = useCallback3((text, timeout) => {
1678
- show({ icon: /* @__PURE__ */ jsx19(CheckRoundIcon, { color: "#2FCC00", size: 24 }), text, timeout });
1681
+ show({ icon: /* @__PURE__ */ jsx18(CheckRoundIcon, { color: "#2FCC00", size: 24 }), text, timeout });
1679
1682
  }, [show]);
1680
1683
  const error = useCallback3((text, timeout) => {
1681
- show({ icon: /* @__PURE__ */ jsx19(ErrorRoundIcon, { size: 24 }), text, timeout });
1684
+ show({ icon: /* @__PURE__ */ jsx18(ErrorRoundIcon, { size: 24 }), text, timeout });
1682
1685
  }, [show]);
1683
1686
  const ToastComponent = createPortal2(
1684
- /* @__PURE__ */ jsx19("div", { className: "matchid-toast-box", style: {
1687
+ /* @__PURE__ */ jsx18("div", { className: "matchid-toast-box", style: {
1685
1688
  zIndex
1686
1689
  }, children: toasts.reverse().map(({ id, icon, text }) => /* @__PURE__ */ jsxs9(
1687
1690
  "div",
1688
1691
  {
1689
1692
  className: "matchid-toast",
1690
1693
  children: [
1691
- icon && /* @__PURE__ */ jsx19("span", { children: icon }),
1692
- /* @__PURE__ */ jsx19("span", { children: text })
1694
+ icon && /* @__PURE__ */ jsx18("span", { children: icon }),
1695
+ /* @__PURE__ */ jsx18("span", { children: text })
1693
1696
  ]
1694
1697
  },
1695
1698
  id
@@ -1841,7 +1844,7 @@ function useWalletAssetListQuery({
1841
1844
  import { useMemo as useMemo4, useState as useState11 } from "react";
1842
1845
  import { createPublicClient as createPublicClient3, formatUnits, http as http3, parseUnits } from "viem";
1843
1846
  import { FormattedMessage as FormattedMessage2, useIntl as useIntl3 } from "react-intl";
1844
- import { jsx as jsx20, jsxs as jsxs10 } from "react/jsx-runtime";
1847
+ import { jsx as jsx19, jsxs as jsxs10 } from "react/jsx-runtime";
1845
1848
  function useMatchChain() {
1846
1849
  const chainListQuery = useChainListQuery();
1847
1850
  const modal = useModal();
@@ -1873,7 +1876,7 @@ function useMatchChain() {
1873
1876
  const [selectedChainId, setSelectedChainId] = useState11(storeChainId2);
1874
1877
  const isDownMd = useDownMd();
1875
1878
  return /* @__PURE__ */ jsxs10("div", { className: `matchid-change-network-box`, children: [
1876
- /* @__PURE__ */ jsx20("div", { className: `matchid-change-network-list`, children: chainListQuery.data?.map((item, index) => {
1879
+ /* @__PURE__ */ jsx19("div", { className: `matchid-change-network-list`, children: chainListQuery.data?.map((item, index) => {
1877
1880
  return /* @__PURE__ */ jsxs10(
1878
1881
  "div",
1879
1882
  {
@@ -1881,19 +1884,19 @@ function useMatchChain() {
1881
1884
  className: `matchid-change-network-item ${selectedChainId == item.id ? "matchid-change-network-selected" : ""}`,
1882
1885
  children: [
1883
1886
  /* @__PURE__ */ jsxs10("div", { className: `matchid-change-network-item-content`, children: [
1884
- /* @__PURE__ */ jsx20("img", { src: item.iconUrl, className: `matchid-change-network-item-icon` }),
1885
- /* @__PURE__ */ jsx20("span", { className: "matchid-change-network-item-name", children: item.name })
1887
+ /* @__PURE__ */ jsx19("img", { src: item.iconUrl, className: `matchid-change-network-item-icon` }),
1888
+ /* @__PURE__ */ jsx19("span", { className: "matchid-change-network-item-name", children: item.name })
1886
1889
  ] }),
1887
- /* @__PURE__ */ jsx20(Radio, { checked: selectedChainId === item.id, size: isDownMd ? 18 : 24 })
1890
+ /* @__PURE__ */ jsx19(Radio, { checked: selectedChainId === item.id, size: isDownMd ? 18 : 24 })
1888
1891
  ]
1889
1892
  },
1890
1893
  index
1891
1894
  );
1892
1895
  }) }),
1893
- /* @__PURE__ */ jsx20(Button, { size: "lg", highlight: true, onClick: () => {
1896
+ /* @__PURE__ */ jsx19(Button, { size: "lg", highlight: true, onClick: () => {
1894
1897
  setChainId2(selectedChainId || 0);
1895
1898
  close();
1896
- }, block: true, children: /* @__PURE__ */ jsx20(FormattedMessage2, { id: "confirm" }) })
1899
+ }, block: true, children: /* @__PURE__ */ jsx19(FormattedMessage2, { id: "confirm" }) })
1897
1900
  ] });
1898
1901
  }
1899
1902
  const showChangeNetwork = () => {
@@ -2031,7 +2034,7 @@ function useIsContract({
2031
2034
  }
2032
2035
 
2033
2036
  // src/components/ImportToken/index.tsx
2034
- import { jsx as jsx21, jsxs as jsxs11 } from "react/jsx-runtime";
2037
+ import { jsx as jsx20, jsxs as jsxs11 } from "react/jsx-runtime";
2035
2038
  function ImportToken({ close }) {
2036
2039
  const [status, setStatus] = useState12("");
2037
2040
  const { token } = useUserInfo();
@@ -2144,20 +2147,20 @@ function ImportToken({ close }) {
2144
2147
  if (status == "success" || status == "fail") {
2145
2148
  return /* @__PURE__ */ jsxs11("div", { className: `matchid-import-token-result matchid-flex`, children: [
2146
2149
  /* @__PURE__ */ jsxs11("div", { className: `matchid-import-token-result-box matchid-flex`, children: [
2147
- /* @__PURE__ */ jsx21("div", { className: `matchid-import-token-result-img`, children: /* @__PURE__ */ jsx21(Lottie, { animationData: status == "success" ? success_default : fail_default, style: {
2150
+ /* @__PURE__ */ jsx20("div", { className: `matchid-import-token-result-img`, children: /* @__PURE__ */ jsx20(Lottie_default, { animationData: status == "success" ? success_default : fail_default, style: {
2148
2151
  width: "96px",
2149
2152
  height: "96px"
2150
2153
  } }) }),
2151
- /* @__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
+ /* @__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" }) })
2152
2155
  ] }),
2153
- 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
+ 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" }) })
2154
2157
  ] });
2155
2158
  }
2156
2159
  return /* @__PURE__ */ jsxs11("div", { className: `matchid-import-token`, children: [
2157
2160
  /* @__PURE__ */ jsxs11("div", { className: "matchid-import-token-form", children: [
2158
- /* @__PURE__ */ jsx21(Field, { label: intl.formatMessage({
2161
+ /* @__PURE__ */ jsx20(Field, { label: intl.formatMessage({
2159
2162
  id: "tokenSmartContract"
2160
- }), error: error.address ? error.address : isContractQuery.isFetched && !isContractQuery.isLoading && !isContractQuery.data && canImport ? "Address isn't a contract address" : "", children: /* @__PURE__ */ jsx21(
2163
+ }), error: error.address ? error.address : isContractQuery.isFetched && !isContractQuery.isLoading && !isContractQuery.data && canImport ? "Address isn't a contract address" : "", children: /* @__PURE__ */ jsx20(
2161
2164
  Input,
2162
2165
  {
2163
2166
  placeholder: intl.formatMessage({
@@ -2168,9 +2171,9 @@ function ImportToken({ close }) {
2168
2171
  maxLength: 42
2169
2172
  }
2170
2173
  ) }),
2171
- /* @__PURE__ */ jsx21(Field, { label: intl.formatMessage({
2174
+ /* @__PURE__ */ jsx20(Field, { label: intl.formatMessage({
2172
2175
  id: "tokenSymbol"
2173
- }), error: error.symbol, children: /* @__PURE__ */ jsx21(
2176
+ }), error: error.symbol, children: /* @__PURE__ */ jsx20(
2174
2177
  Input,
2175
2178
  {
2176
2179
  placeholder: intl.formatMessage({
@@ -2181,9 +2184,9 @@ function ImportToken({ close }) {
2181
2184
  maxLength: 16
2182
2185
  }
2183
2186
  ) }),
2184
- /* @__PURE__ */ jsx21(Field, { label: intl.formatMessage({
2187
+ /* @__PURE__ */ jsx20(Field, { label: intl.formatMessage({
2185
2188
  id: "tokenDecimals"
2186
- }), error: error.decimals, children: /* @__PURE__ */ jsx21(
2189
+ }), error: error.decimals, children: /* @__PURE__ */ jsx20(
2187
2190
  Input,
2188
2191
  {
2189
2192
  placeholder: intl.formatMessage({
@@ -2195,7 +2198,7 @@ function ImportToken({ close }) {
2195
2198
  }
2196
2199
  ) })
2197
2200
  ] }),
2198
- /* @__PURE__ */ jsx21(
2201
+ /* @__PURE__ */ jsx20(
2199
2202
  Button,
2200
2203
  {
2201
2204
  size: "lg",
@@ -2204,14 +2207,14 @@ function ImportToken({ close }) {
2204
2207
  loading: loading || isContractQuery.isLoading,
2205
2208
  disabled: !canImport || !isContractQuery.data,
2206
2209
  highlight: true,
2207
- children: /* @__PURE__ */ jsx21(FormattedMessage3, { id: "import" })
2210
+ children: /* @__PURE__ */ jsx20(FormattedMessage3, { id: "import" })
2208
2211
  }
2209
2212
  )
2210
2213
  ] });
2211
2214
  }
2212
2215
 
2213
2216
  // src/hooks/useMatchWallet.tsx
2214
- import { jsx as jsx22, jsxs as jsxs12 } from "react/jsx-runtime";
2217
+ import { jsx as jsx21, jsxs as jsxs12 } from "react/jsx-runtime";
2215
2218
  var ReceiveModal = () => {
2216
2219
  const chain = useMatchChain();
2217
2220
  const { address } = useWallet();
@@ -2227,8 +2230,8 @@ var ReceiveModal = () => {
2227
2230
  const chainLink = chain.explorerLink("address/" + address);
2228
2231
  return /* @__PURE__ */ jsxs12("div", { className: `matchid-receive-modal`, children: [
2229
2232
  /* @__PURE__ */ jsxs12("div", { className: "matchid-receive-container", children: [
2230
- /* @__PURE__ */ jsx22("div", { className: `matchid-receive-text`, children: /* @__PURE__ */ jsx22(FormattedMessage4, { id: "receiveQrcode" }) }),
2231
- /* @__PURE__ */ jsx22("div", { className: `matchid-qr-container`, children: /* @__PURE__ */ jsx22(
2233
+ /* @__PURE__ */ jsx21("div", { className: `matchid-receive-text`, children: /* @__PURE__ */ jsx21(FormattedMessage4, { id: "receiveQrcode" }) }),
2234
+ /* @__PURE__ */ jsx21("div", { className: `matchid-qr-container`, children: /* @__PURE__ */ jsx21(
2232
2235
  QRCode,
2233
2236
  {
2234
2237
  margin: "0",
@@ -2236,7 +2239,7 @@ var ReceiveModal = () => {
2236
2239
  value: address
2237
2240
  }
2238
2241
  ) }),
2239
- /* @__PURE__ */ jsx22(
2242
+ /* @__PURE__ */ jsx21(
2240
2243
  "a",
2241
2244
  {
2242
2245
  href: chainLink,
@@ -2246,7 +2249,7 @@ var ReceiveModal = () => {
2246
2249
  }
2247
2250
  )
2248
2251
  ] }),
2249
- /* @__PURE__ */ jsx22(Button, { size: "lg", onClick: onCopy, block: true, highlight: true, disabled: copied, children: /* @__PURE__ */ jsx22(
2252
+ /* @__PURE__ */ jsx21(Button, { size: "lg", onClick: onCopy, block: true, highlight: true, disabled: copied, children: /* @__PURE__ */ jsx21(
2250
2253
  FormattedMessage4,
2251
2254
  {
2252
2255
  id: "copyAddress"
@@ -2871,39 +2874,39 @@ function useTransaction({
2871
2874
  import { create as create5 } from "zustand";
2872
2875
 
2873
2876
  // src/hooks/useConfig.tsx
2874
- import { jsx as jsx23 } from "react/jsx-runtime";
2877
+ import { jsx as jsx22 } from "react/jsx-runtime";
2875
2878
  var DEFAULT_WALLET_METHODS = ["evm", "sol", "btc", "tron", "ton"];
2876
2879
  var WALLET_METHODS = ["evm", "sol", "btc", "tron", "ton"];
2877
2880
  function useWalletConfig() {
2878
2881
  const isDownMd = useDownMd();
2879
2882
  const walletMap = {
2880
2883
  evm: {
2881
- icon: /* @__PURE__ */ jsx23(EVMDarkIcon, { size: isDownMd ? 36 : 40 }),
2882
- activeIcon: /* @__PURE__ */ jsx23(EVMLightIcon, { size: isDownMd ? 36 : 40 }),
2884
+ icon: /* @__PURE__ */ jsx22(EVMDarkIcon, { size: isDownMd ? 36 : 40 }),
2885
+ activeIcon: /* @__PURE__ */ jsx22(EVMLightIcon, { size: isDownMd ? 36 : 40 }),
2883
2886
  name: "EVM",
2884
2887
  method: "evm"
2885
2888
  },
2886
2889
  sol: {
2887
- icon: /* @__PURE__ */ jsx23(SOLDarkIcon, { size: isDownMd ? 36 : 40 }),
2888
- activeIcon: /* @__PURE__ */ jsx23(SOLLightIcon, { size: isDownMd ? 36 : 40 }),
2890
+ icon: /* @__PURE__ */ jsx22(SOLDarkIcon, { size: isDownMd ? 36 : 40 }),
2891
+ activeIcon: /* @__PURE__ */ jsx22(SOLLightIcon, { size: isDownMd ? 36 : 40 }),
2889
2892
  name: "SOL",
2890
2893
  method: "sol"
2891
2894
  },
2892
2895
  btc: {
2893
- icon: /* @__PURE__ */ jsx23(BTCDarkIcon, { size: isDownMd ? 36 : 40 }),
2894
- activeIcon: /* @__PURE__ */ jsx23(BTCLightIcon, { size: isDownMd ? 36 : 40 }),
2896
+ icon: /* @__PURE__ */ jsx22(BTCDarkIcon, { size: isDownMd ? 36 : 40 }),
2897
+ activeIcon: /* @__PURE__ */ jsx22(BTCLightIcon, { size: isDownMd ? 36 : 40 }),
2895
2898
  name: "BTC",
2896
2899
  method: "btc"
2897
2900
  },
2898
2901
  tron: {
2899
- icon: /* @__PURE__ */ jsx23(TRXDarkIcon, { size: isDownMd ? 36 : 40 }),
2900
- activeIcon: /* @__PURE__ */ jsx23(TRXLightIcon, { size: isDownMd ? 36 : 40 }),
2902
+ icon: /* @__PURE__ */ jsx22(TRXDarkIcon, { size: isDownMd ? 36 : 40 }),
2903
+ activeIcon: /* @__PURE__ */ jsx22(TRXLightIcon, { size: isDownMd ? 36 : 40 }),
2901
2904
  name: "TRON",
2902
2905
  method: "tron"
2903
2906
  },
2904
2907
  ton: {
2905
- icon: /* @__PURE__ */ jsx23(TonLightIcon, { size: isDownMd ? 36 : 40 }),
2906
- activeIcon: /* @__PURE__ */ jsx23(TonLightIcon2, { size: isDownMd ? 36 : 40 }),
2908
+ icon: /* @__PURE__ */ jsx22(TonLightIcon, { size: isDownMd ? 36 : 40 }),
2909
+ activeIcon: /* @__PURE__ */ jsx22(TonLightIcon2, { size: isDownMd ? 36 : 40 }),
2907
2910
  name: "TON",
2908
2911
  method: "ton"
2909
2912
  }
@@ -2955,7 +2958,7 @@ var useWalletModalStore = create5((set) => ({
2955
2958
  // src/components/CEXBindModal/index.tsx
2956
2959
  import { useEffect as useEffect14, useMemo as useMemo7, useState as useState16 } from "react";
2957
2960
  import { FormattedMessage as FormattedMessage5, useIntl as useIntl6 } from "react-intl";
2958
- import { jsx as jsx24, jsxs as jsxs13 } from "react/jsx-runtime";
2961
+ import { jsx as jsx23, jsxs as jsxs13 } from "react/jsx-runtime";
2959
2962
  function CEXBindModal({
2960
2963
  onClose,
2961
2964
  type,
@@ -3010,20 +3013,20 @@ function CEXBindModal({
3010
3013
  setLoading(false);
3011
3014
  }
3012
3015
  };
3013
- return /* @__PURE__ */ jsx24(ModalWithHeader, { showClose: true, isOpen, onClose, title: intl.formatMessage({
3016
+ return /* @__PURE__ */ jsx23(ModalWithHeader, { showClose: true, isOpen, onClose, title: intl.formatMessage({
3014
3017
  id: "CEXBindTitle"
3015
3018
  }, {
3016
3019
  type
3017
3020
  }), ...props, children: /* @__PURE__ */ jsxs13("div", { className: "matchid-cex-modal", children: [
3018
3021
  /* @__PURE__ */ jsxs13("div", { children: [
3019
- /* @__PURE__ */ jsx24("p", { children: /* @__PURE__ */ jsx24(FormattedMessage5, { id: "CEXBindAttention" }) }),
3020
- /* @__PURE__ */ jsx24("p", { children: /* @__PURE__ */ jsx24(FormattedMessage5, { id: "CEXBindTips1" }) }),
3021
- /* @__PURE__ */ jsx24("p", { children: /* @__PURE__ */ jsx24(FormattedMessage5, { id: "CEXBindTips2" }) }),
3022
- /* @__PURE__ */ jsx24("p", { children: /* @__PURE__ */ jsx24(FormattedMessage5, { id: "CEXBindTips3" }) })
3022
+ /* @__PURE__ */ jsx23("p", { children: /* @__PURE__ */ jsx23(FormattedMessage5, { id: "CEXBindAttention" }) }),
3023
+ /* @__PURE__ */ jsx23("p", { children: /* @__PURE__ */ jsx23(FormattedMessage5, { id: "CEXBindTips1" }) }),
3024
+ /* @__PURE__ */ jsx23("p", { children: /* @__PURE__ */ jsx23(FormattedMessage5, { id: "CEXBindTips2" }) }),
3025
+ /* @__PURE__ */ jsx23("p", { children: /* @__PURE__ */ jsx23(FormattedMessage5, { id: "CEXBindTips3" }) })
3023
3026
  ] }),
3024
- /* @__PURE__ */ jsx24(Field, { label: intl.formatMessage({
3027
+ /* @__PURE__ */ jsx23(Field, { label: intl.formatMessage({
3025
3028
  id: "CEXBindApiKey"
3026
- }), children: /* @__PURE__ */ jsx24(
3029
+ }), children: /* @__PURE__ */ jsx23(
3027
3030
  Input,
3028
3031
  {
3029
3032
  value: key,
@@ -3031,9 +3034,9 @@ function CEXBindModal({
3031
3034
  placeholder: "**** **** ****"
3032
3035
  }
3033
3036
  ) }),
3034
- /* @__PURE__ */ jsx24(Field, { label: intl.formatMessage({
3037
+ /* @__PURE__ */ jsx23(Field, { label: intl.formatMessage({
3035
3038
  id: "CEXBindApiSecretKey"
3036
- }), error: !needPassphrase && error, children: /* @__PURE__ */ jsx24(
3039
+ }), error: !needPassphrase && error, children: /* @__PURE__ */ jsx23(
3037
3040
  Input,
3038
3041
  {
3039
3042
  value: secret,
@@ -3041,9 +3044,9 @@ function CEXBindModal({
3041
3044
  placeholder: "**** **** ****"
3042
3045
  }
3043
3046
  ) }),
3044
- needPassphrase && /* @__PURE__ */ jsx24(Field, { error, label: intl.formatMessage({
3047
+ needPassphrase && /* @__PURE__ */ jsx23(Field, { error, label: intl.formatMessage({
3045
3048
  id: "CEXBindApiPassphrase"
3046
- }), children: /* @__PURE__ */ jsx24(
3049
+ }), children: /* @__PURE__ */ jsx23(
3047
3050
  Input,
3048
3051
  {
3049
3052
  value: APIPassphrase,
@@ -3051,7 +3054,7 @@ function CEXBindModal({
3051
3054
  placeholder: "**** **** ****"
3052
3055
  }
3053
3056
  ) }),
3054
- /* @__PURE__ */ jsx24(
3057
+ /* @__PURE__ */ jsx23(
3055
3058
  Button,
3056
3059
  {
3057
3060
  onClick: SubmitApi,
@@ -3059,7 +3062,7 @@ function CEXBindModal({
3059
3062
  block: true,
3060
3063
  loading,
3061
3064
  disabled: !key || !secret,
3062
- children: /* @__PURE__ */ jsx24(FormattedMessage5, { id: "continue" })
3065
+ children: /* @__PURE__ */ jsx23(FormattedMessage5, { id: "continue" })
3063
3066
  }
3064
3067
  )
3065
3068
  ] }) });
@@ -3067,7 +3070,7 @@ function CEXBindModal({
3067
3070
 
3068
3071
  // src/context/BusinessProvider.tsx
3069
3072
  import { useQuery as useQuery7 } from "@tanstack/react-query";
3070
- import { Fragment as Fragment4, jsx as jsx25, jsxs as jsxs14 } from "react/jsx-runtime";
3073
+ import { Fragment as Fragment4, jsx as jsx24, jsxs as jsxs14 } from "react/jsx-runtime";
3071
3074
  function BusinessProvider({ children }) {
3072
3075
  const { overview, token } = useUserInfo();
3073
3076
  const { type: EVMType, isOpen: EVMIsOpen, close: EVMClose } = useEVMModalStore();
@@ -3102,7 +3105,7 @@ function BusinessProvider({ children }) {
3102
3105
  refetchInterval: 1e3 * 5
3103
3106
  });
3104
3107
  return /* @__PURE__ */ jsxs14(Fragment4, { children: [
3105
- /* @__PURE__ */ jsx25(
3108
+ /* @__PURE__ */ jsx24(
3106
3109
  EVMModal,
3107
3110
  {
3108
3111
  isOpen: EVMIsOpen && (EVMType == "login" && !overview && !token || EVMType == "bind" && !!token && !!overview),
@@ -3112,7 +3115,7 @@ function BusinessProvider({ children }) {
3112
3115
  zIndex: 199
3113
3116
  }
3114
3117
  ),
3115
- /* @__PURE__ */ jsx25(
3118
+ /* @__PURE__ */ jsx24(
3116
3119
  TRONModal,
3117
3120
  {
3118
3121
  isOpen: TRONIsOpen && (TRONType == "login" && !overview && !token || TRONType == "bind" && !!token && !!overview),
@@ -3122,7 +3125,7 @@ function BusinessProvider({ children }) {
3122
3125
  zIndex: 199
3123
3126
  }
3124
3127
  ),
3125
- /* @__PURE__ */ jsx25(
3128
+ /* @__PURE__ */ jsx24(
3126
3129
  TONModal,
3127
3130
  {
3128
3131
  isOpen: TONIsOpen && (TONType == "login" && !overview && !token || TONType == "bind" && !!token && !!overview),
@@ -3132,7 +3135,7 @@ function BusinessProvider({ children }) {
3132
3135
  zIndex: 199
3133
3136
  }
3134
3137
  ),
3135
- /* @__PURE__ */ jsx25(
3138
+ /* @__PURE__ */ jsx24(
3136
3139
  BTCModal,
3137
3140
  {
3138
3141
  isOpen: BTCIsOpen && (BTCType == "login" && !overview && !token || BTCType == "bind" && !!token && !!overview),
@@ -3142,7 +3145,7 @@ function BusinessProvider({ children }) {
3142
3145
  zIndex: 199
3143
3146
  }
3144
3147
  ),
3145
- /* @__PURE__ */ jsx25(
3148
+ /* @__PURE__ */ jsx24(
3146
3149
  CEXBindModal,
3147
3150
  {
3148
3151
  isOpen: CEXIsOpen && (!!token && !!overview),
@@ -3151,7 +3154,7 @@ function BusinessProvider({ children }) {
3151
3154
  zIndex: 199
3152
3155
  }
3153
3156
  ),
3154
- /* @__PURE__ */ jsx25(
3157
+ /* @__PURE__ */ jsx24(
3155
3158
  WalletModal,
3156
3159
  {
3157
3160
  isOpen: WalletModalStore.isOpen && (WalletModalStore.type == "login" && !overview && !token || WalletModalStore.type == "bind" && !!token && !!overview),
@@ -3166,9 +3169,9 @@ function BusinessProvider({ children }) {
3166
3169
  }
3167
3170
 
3168
3171
  // src/context/index.tsx
3169
- import { jsx as jsx26 } from "react/jsx-runtime";
3172
+ import { jsx as jsx25 } from "react/jsx-runtime";
3170
3173
  var Providers = ({ children }) => {
3171
- return /* @__PURE__ */ jsx26(ToastProvider, { children: /* @__PURE__ */ jsx26(ModalProvider, { children: /* @__PURE__ */ jsx26(BusinessProvider, { children }) }) });
3174
+ return /* @__PURE__ */ jsx25(ToastProvider, { children: /* @__PURE__ */ jsx25(ModalProvider, { children: /* @__PURE__ */ jsx25(BusinessProvider, { children }) }) });
3172
3175
  };
3173
3176
  var context_default = Providers;
3174
3177
 
@@ -4372,7 +4375,7 @@ import {
4372
4375
  } from "@rainbow-me/rainbowkit/wallets";
4373
4376
  import { arbitrum, base, bsc, mainnet, optimism, polygon } from "wagmi/chains";
4374
4377
  import { WagmiProvider } from "wagmi";
4375
- import { jsx as jsx27 } from "react/jsx-runtime";
4378
+ import { jsx as jsx26 } from "react/jsx-runtime";
4376
4379
  var queryClient = new QueryClient();
4377
4380
  var wagmiConfig = getDefaultConfig({
4378
4381
  appName: "MatchID",
@@ -4411,7 +4414,7 @@ var MatchProvider = ({
4411
4414
  useWalletInit({
4412
4415
  config: wallet
4413
4416
  });
4414
- return /* @__PURE__ */ jsx27(IntlProvider, { locale: realLocale, messages: messages[realLocale], children: /* @__PURE__ */ jsx27(WagmiProvider, { config: wagmiConfig, children: /* @__PURE__ */ jsx27(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx27(RainbowKitProvider, { children: /* @__PURE__ */ jsx27(
4417
+ return /* @__PURE__ */ jsx26(IntlProvider, { locale: realLocale, messages: messages[realLocale], children: /* @__PURE__ */ jsx26(WagmiProvider, { config: wagmiConfig, children: /* @__PURE__ */ jsx26(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx26(RainbowKitProvider, { children: /* @__PURE__ */ jsx26(
4415
4418
  MatchContext.Provider,
4416
4419
  {
4417
4420
  value: {
@@ -4422,7 +4425,7 @@ var MatchProvider = ({
4422
4425
  theme,
4423
4426
  locale: realLocale
4424
4427
  },
4425
- children: /* @__PURE__ */ jsx27(context_default, { children })
4428
+ children: /* @__PURE__ */ jsx26(context_default, { children })
4426
4429
  }
4427
4430
  ) }) }) }) });
4428
4431
  };
@@ -4734,7 +4737,7 @@ function useUserInfo() {
4734
4737
  // src/components/EmailModal/StepVerify.tsx
4735
4738
  import { useEffect as useEffect18, useMemo as useMemo9, useRef as useRef4, useState as useState18 } from "react";
4736
4739
  import { FormattedMessage as FormattedMessage6, useIntl as useIntl7 } from "react-intl";
4737
- import { jsx as jsx28, jsxs as jsxs15 } from "react/jsx-runtime";
4740
+ import { jsx as jsx27, jsxs as jsxs15 } from "react/jsx-runtime";
4738
4741
  function StepVerify(props) {
4739
4742
  const intl = useIntl7();
4740
4743
  const { getLoginEmailCode, loginByEmail } = useUserInfo();
@@ -4813,15 +4816,15 @@ function StepVerify(props) {
4813
4816
  };
4814
4817
  return /* @__PURE__ */ jsxs15("div", { className: "matchid-email-verify-box", children: [
4815
4818
  /* @__PURE__ */ jsxs15("div", { className: "matchid-email-verify-header", children: [
4816
- /* @__PURE__ */ jsx28("div", { className: "matchid-email-verify-header-icon", children: /* @__PURE__ */ jsx28(EmailLineIcon, { size: isDownMd ? 19 : 24 }) }),
4819
+ /* @__PURE__ */ jsx27("div", { className: "matchid-email-verify-header-icon", children: /* @__PURE__ */ jsx27(EmailLineIcon, { size: isDownMd ? 19 : 24 }) }),
4817
4820
  /* @__PURE__ */ jsxs15("div", { className: "matchid-email-verify-header-content", children: [
4818
- /* @__PURE__ */ jsx28("div", { className: "matchid-email-verify-header-value", children: props.email }),
4819
- /* @__PURE__ */ jsx28("div", { className: "matchid-email-verify-header-tips", children: /* @__PURE__ */ jsx28(FormattedMessage6, { id: "sendEmailTips" }) })
4821
+ /* @__PURE__ */ jsx27("div", { className: "matchid-email-verify-header-value", children: props.email }),
4822
+ /* @__PURE__ */ jsx27("div", { className: "matchid-email-verify-header-tips", children: /* @__PURE__ */ jsx27(FormattedMessage6, { id: "sendEmailTips" }) })
4820
4823
  ] })
4821
4824
  ] }),
4822
- /* @__PURE__ */ jsx28(Field, { label: intl.formatMessage({
4825
+ /* @__PURE__ */ jsx27(Field, { label: intl.formatMessage({
4823
4826
  id: "verificationCode"
4824
- }), error, children: /* @__PURE__ */ jsx28(
4827
+ }), error, children: /* @__PURE__ */ jsx27(
4825
4828
  Input,
4826
4829
  {
4827
4830
  placeholder: intl.formatMessage({
@@ -4831,7 +4834,7 @@ function StepVerify(props) {
4831
4834
  maxLength: codeLength,
4832
4835
  onChange: (e) => setCode(e.target.value),
4833
4836
  value: code,
4834
- after: /* @__PURE__ */ jsx28(
4837
+ after: /* @__PURE__ */ jsx27(
4835
4838
  Button,
4836
4839
  {
4837
4840
  highlight: true,
@@ -4850,13 +4853,13 @@ function StepVerify(props) {
4850
4853
  )
4851
4854
  }
4852
4855
  ) }),
4853
- /* @__PURE__ */ jsx28(Button, { disabled: !canContinue, loading: submitting, highlight: true, block: true, size: "lg", onClick: onContinue, children: /* @__PURE__ */ jsx28(FormattedMessage6, { id: "continue" }) })
4856
+ /* @__PURE__ */ jsx27(Button, { disabled: !canContinue, loading: submitting, highlight: true, block: true, size: "lg", onClick: onContinue, children: /* @__PURE__ */ jsx27(FormattedMessage6, { id: "continue" }) })
4854
4857
  ] });
4855
4858
  }
4856
4859
 
4857
4860
  // src/components/EmailModal/index.tsx
4858
4861
  import { useIntl as useIntl8 } from "react-intl";
4859
- import { jsx as jsx29 } from "react/jsx-runtime";
4862
+ import { jsx as jsx28 } from "react/jsx-runtime";
4860
4863
  function EmailModal({
4861
4864
  isOpen = false,
4862
4865
  width = 480,
@@ -4873,7 +4876,7 @@ function EmailModal({
4873
4876
  setEmailVal("");
4874
4877
  }
4875
4878
  }, [isOpen]);
4876
- return /* @__PURE__ */ jsx29(
4879
+ return /* @__PURE__ */ jsx28(
4877
4880
  ModalWithHeader,
4878
4881
  {
4879
4882
  isOpen,
@@ -4883,10 +4886,10 @@ function EmailModal({
4883
4886
  id: "email"
4884
4887
  }),
4885
4888
  onBack: step == "verify" ? () => setStep("input") : onBack,
4886
- children: step === "input" ? /* @__PURE__ */ jsx29(StepEmail, { email: emailVal, onContinue: (email) => {
4889
+ children: step === "input" ? /* @__PURE__ */ jsx28(StepEmail, { email: emailVal, onContinue: (email) => {
4887
4890
  setEmailVal(email);
4888
4891
  setStep("verify");
4889
- } }) : /* @__PURE__ */ jsx29(StepVerify, { email: emailVal, onSuccess: onLogin })
4892
+ } }) : /* @__PURE__ */ jsx28(StepVerify, { email: emailVal, onSuccess: onLogin })
4890
4893
  }
4891
4894
  );
4892
4895
  }
@@ -4916,7 +4919,7 @@ function useAppConfig() {
4916
4919
  }
4917
4920
 
4918
4921
  // src/components/LoginBox/index.tsx
4919
- import { Fragment as Fragment5, jsx as jsx30, jsxs as jsxs16 } from "react/jsx-runtime";
4922
+ import { Fragment as Fragment5, jsx as jsx29, jsxs as jsxs16 } from "react/jsx-runtime";
4920
4923
  var RecommendItem = ({
4921
4924
  icon,
4922
4925
  name,
@@ -4928,17 +4931,17 @@ var RecommendItem = ({
4928
4931
  return /* @__PURE__ */ jsxs16("div", { className: "matchid-login-recommend-method", children: [
4929
4932
  /* @__PURE__ */ jsxs16("div", { className: "matchid-login-recommend-method-item", onClick, children: [
4930
4933
  /* @__PURE__ */ jsxs16("div", { className: "matchid-login-recommend-method-content", children: [
4931
- /* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-method-icon", children: icon }),
4932
- /* @__PURE__ */ jsx30("span", { className: "matchid-login-recommend-method-name", children: name })
4934
+ /* @__PURE__ */ jsx29("div", { className: "matchid-login-recommend-method-icon", children: icon }),
4935
+ /* @__PURE__ */ jsx29("span", { className: "matchid-login-recommend-method-name", children: name })
4933
4936
  ] }),
4934
- footer ? footer : children ? /* @__PURE__ */ jsx30(
4937
+ footer ? footer : children ? /* @__PURE__ */ jsx29(
4935
4938
  ArrowDownIcon,
4936
4939
  {
4937
4940
  className: `matchid-login-recommend-method-arrow ${showChildren ? "matchid-login-recommend-method-arrow-active" : ""}`,
4938
4941
  size: 20,
4939
4942
  color: "var(--matchid-arrow-color)"
4940
4943
  }
4941
- ) : /* @__PURE__ */ jsx30(
4944
+ ) : /* @__PURE__ */ jsx29(
4942
4945
  ArrowRightIcon,
4943
4946
  {
4944
4947
  className: "matchid-login-recommend-method-arrow",
@@ -4947,7 +4950,7 @@ var RecommendItem = ({
4947
4950
  }
4948
4951
  )
4949
4952
  ] }),
4950
- children && /* @__PURE__ */ jsx30(
4953
+ children && /* @__PURE__ */ jsx29(
4951
4954
  "div",
4952
4955
  {
4953
4956
  className: `matchid-login-recommend-method-popover ${showChildren ? "matchid-login-recommend-method-popover-active" : ""}`,
@@ -5012,55 +5015,55 @@ function LoginBox({
5012
5015
  const isDownMd = useDownMd();
5013
5016
  const methodMap = {
5014
5017
  wallet: {
5015
- icon: /* @__PURE__ */ jsx30(WalletIcon, { size: isDownMd ? 36 : 40 }),
5018
+ icon: /* @__PURE__ */ jsx29(WalletIcon, { size: isDownMd ? 36 : 40 }),
5016
5019
  name: intl.formatMessage({ id: "wallet" }),
5017
5020
  onClick: () => setShowWallet(!showWallet),
5018
5021
  type: "wallet"
5019
5022
  },
5020
5023
  email: {
5021
- icon: /* @__PURE__ */ jsx30(EmailIcon, { size: isDownMd ? 36 : 40 }),
5024
+ icon: /* @__PURE__ */ jsx29(EmailIcon, { size: isDownMd ? 36 : 40 }),
5022
5025
  name: intl.formatMessage({ id: "email" }),
5023
5026
  onClick: () => {
5024
5027
  setEmailOpen(true);
5025
5028
  }
5026
5029
  },
5027
5030
  google: {
5028
- icon: /* @__PURE__ */ jsx30(GoogleIcon, { size: isDownMd ? 36 : 40 }),
5031
+ icon: /* @__PURE__ */ jsx29(GoogleIcon, { size: isDownMd ? 36 : 40 }),
5029
5032
  name: "Google",
5030
5033
  onClick: () => login("google")
5031
5034
  },
5032
5035
  twitter: {
5033
- icon: /* @__PURE__ */ jsx30(XIcon, { size: isDownMd ? 36 : 40 }),
5036
+ icon: /* @__PURE__ */ jsx29(XIcon, { size: isDownMd ? 36 : 40 }),
5034
5037
  name: "X",
5035
5038
  onClick: () => login("twitter")
5036
5039
  },
5037
5040
  telegram: {
5038
- icon: /* @__PURE__ */ jsx30(TelegramIcon, { size: isDownMd ? 36 : 40 }),
5041
+ icon: /* @__PURE__ */ jsx29(TelegramIcon, { size: isDownMd ? 36 : 40 }),
5039
5042
  name: "Telegram",
5040
5043
  onClick: () => login("telegram")
5041
5044
  },
5042
5045
  github: {
5043
- icon: /* @__PURE__ */ jsx30(GithubIcon, { size: isDownMd ? 36 : 40 }),
5046
+ icon: /* @__PURE__ */ jsx29(GithubIcon, { size: isDownMd ? 36 : 40 }),
5044
5047
  name: "Github",
5045
5048
  onClick: () => login("github")
5046
5049
  },
5047
5050
  discord: {
5048
- icon: /* @__PURE__ */ jsx30(DiscordIcon, { size: isDownMd ? 36 : 40 }),
5051
+ icon: /* @__PURE__ */ jsx29(DiscordIcon, { size: isDownMd ? 36 : 40 }),
5049
5052
  name: "Discord",
5050
5053
  onClick: () => login("discord")
5051
5054
  },
5052
5055
  linkedin: {
5053
- icon: /* @__PURE__ */ jsx30(LinkedinIcon, { size: isDownMd ? 36 : 40 }),
5056
+ icon: /* @__PURE__ */ jsx29(LinkedinIcon, { size: isDownMd ? 36 : 40 }),
5054
5057
  name: "LinkedIn",
5055
5058
  onClick: () => login("linkedin")
5056
5059
  },
5057
5060
  facebook: {
5058
- icon: /* @__PURE__ */ jsx30(FacebookIcon, { size: isDownMd ? 36 : 40 }),
5061
+ icon: /* @__PURE__ */ jsx29(FacebookIcon, { size: isDownMd ? 36 : 40 }),
5059
5062
  name: "Facebook",
5060
5063
  onClick: () => login("facebook")
5061
5064
  },
5062
5065
  youtube: {
5063
- icon: /* @__PURE__ */ jsx30(YoutubeIcon, { size: isDownMd ? 36 : 40 }),
5066
+ icon: /* @__PURE__ */ jsx29(YoutubeIcon, { size: isDownMd ? 36 : 40 }),
5064
5067
  name: "Youtube",
5065
5068
  onClick: () => login("youtube")
5066
5069
  }
@@ -5068,8 +5071,8 @@ function LoginBox({
5068
5071
  const { walletMap } = useWalletConfig();
5069
5072
  return /* @__PURE__ */ jsxs16(Fragment5, { children: [
5070
5073
  (!inModal || !emailOpen) && /* @__PURE__ */ jsxs16("div", { className: "matchid-login-box", children: [
5071
- /* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-list", children: methodConfig.recommendMethods.map((m) => {
5072
- return /* @__PURE__ */ jsx30(
5074
+ /* @__PURE__ */ jsx29("div", { className: "matchid-login-recommend-list", children: methodConfig.recommendMethods.map((m) => {
5075
+ return /* @__PURE__ */ jsx29(
5073
5076
  RecommendItem,
5074
5077
  {
5075
5078
  icon: methodMap[m]?.icon,
@@ -5077,8 +5080,8 @@ function LoginBox({
5077
5080
  onClick: methodMap[m]?.onClick,
5078
5081
  showChildren: m == "wallet" && showWallet,
5079
5082
  children: m == "wallet" && /* @__PURE__ */ jsxs16(Fragment5, { children: [
5080
- /* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-wallet-divider" }),
5081
- /* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-wallet-list", children: methodConfig.walletMethods.map((n) => {
5083
+ /* @__PURE__ */ jsx29("div", { className: "matchid-login-recommend-wallet-divider" }),
5084
+ /* @__PURE__ */ jsx29("div", { className: "matchid-login-recommend-wallet-list", children: methodConfig.walletMethods.map((n) => {
5082
5085
  const m2 = walletMap[n];
5083
5086
  return /* @__PURE__ */ jsxs16(
5084
5087
  "div",
@@ -5089,15 +5092,15 @@ function LoginBox({
5089
5092
  },
5090
5093
  children: [
5091
5094
  /* @__PURE__ */ jsxs16("div", { className: "matchid-login-recommend-wallet-item-content", children: [
5092
- /* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-wallet-item-icon", children: m2.icon }),
5093
- /* @__PURE__ */ jsx30(
5095
+ /* @__PURE__ */ jsx29("div", { className: "matchid-login-recommend-wallet-item-icon", children: m2.icon }),
5096
+ /* @__PURE__ */ jsx29(
5094
5097
  "div",
5095
5098
  {
5096
5099
  className: "matchid-login-recommend-wallet-item-hover-icon",
5097
5100
  children: m2.activeIcon
5098
5101
  }
5099
5102
  ),
5100
- /* @__PURE__ */ jsx30(
5103
+ /* @__PURE__ */ jsx29(
5101
5104
  "span",
5102
5105
  {
5103
5106
  className: "matchid-login-recommend-wallet-item-name",
@@ -5105,7 +5108,7 @@ function LoginBox({
5105
5108
  }
5106
5109
  )
5107
5110
  ] }),
5108
- /* @__PURE__ */ jsx30(
5111
+ /* @__PURE__ */ jsx29(
5109
5112
  ArrowRightIcon,
5110
5113
  {
5111
5114
  className: "matchid-login-recommend-wallet-item-arrow",
@@ -5124,9 +5127,9 @@ function LoginBox({
5124
5127
  );
5125
5128
  }) }),
5126
5129
  methodConfig.methods.length > 0 && /* @__PURE__ */ jsxs16("div", { className: "matchid-login-other", children: [
5127
- /* @__PURE__ */ jsx30("div", { className: "matchid-login-other-text", children: /* @__PURE__ */ jsx30(FormattedMessage7, { id: "otherLoginMethods" }) }),
5128
- /* @__PURE__ */ jsx30("div", { className: "matchid-login-method-box", children: methodConfig.methods.map((m) => {
5129
- return /* @__PURE__ */ jsx30(
5130
+ /* @__PURE__ */ jsx29("div", { className: "matchid-login-other-text", children: /* @__PURE__ */ jsx29(FormattedMessage7, { id: "otherLoginMethods" }) }),
5131
+ /* @__PURE__ */ jsx29("div", { className: "matchid-login-method-box", children: methodConfig.methods.map((m) => {
5132
+ return /* @__PURE__ */ jsx29(
5130
5133
  "div",
5131
5134
  {
5132
5135
  className: "matchid-login-method-item",
@@ -5139,7 +5142,7 @@ function LoginBox({
5139
5142
  }) })
5140
5143
  ] })
5141
5144
  ] }),
5142
- /* @__PURE__ */ jsx30(
5145
+ /* @__PURE__ */ jsx29(
5143
5146
  EmailModal,
5144
5147
  {
5145
5148
  isOpen: emailOpen,
@@ -5159,7 +5162,7 @@ import { useState as useState22 } from "react";
5159
5162
 
5160
5163
  // src/components/LoginPanel/index.tsx
5161
5164
  import { FormattedMessage as FormattedMessage8 } from "react-intl";
5162
- import { jsx as jsx31, jsxs as jsxs17 } from "react/jsx-runtime";
5165
+ import { jsx as jsx30, jsxs as jsxs17 } from "react/jsx-runtime";
5163
5166
  function LoginPanel({
5164
5167
  header,
5165
5168
  onClose,
@@ -5169,30 +5172,30 @@ function LoginPanel({
5169
5172
  return /* @__PURE__ */ jsxs17("div", { className: "matchid-login-panel", children: [
5170
5173
  header ? header : /* @__PURE__ */ jsxs17("div", { className: "matchid-login-panel-header", children: [
5171
5174
  /* @__PURE__ */ jsxs17("div", { className: "matchid-login-panel-header-content", children: [
5172
- /* @__PURE__ */ jsx31("div", { className: "matchid-login-panel-header-title", children: /* @__PURE__ */ jsx31(FormattedMessage8, { id: "loginTitle" }) }),
5173
- /* @__PURE__ */ jsx31("div", { className: "matchid-login-panel-header-subtilte", children: /* @__PURE__ */ jsx31(FormattedMessage8, { id: "loginTips" }) })
5175
+ /* @__PURE__ */ jsx30("div", { className: "matchid-login-panel-header-title", children: /* @__PURE__ */ jsx30(FormattedMessage8, { id: "loginTitle" }) }),
5176
+ /* @__PURE__ */ jsx30("div", { className: "matchid-login-panel-header-subtilte", children: /* @__PURE__ */ jsx30(FormattedMessage8, { id: "loginTips" }) })
5174
5177
  ] }),
5175
- onClose && /* @__PURE__ */ jsx31("div", { className: "matchid-login-panel-header-close", onClick: onClose, children: /* @__PURE__ */ jsx31(CloseRoundIcon, { size: isDownMd ? 24 : 30 }) })
5178
+ onClose && /* @__PURE__ */ jsx30("div", { className: "matchid-login-panel-header-close", onClick: onClose, children: /* @__PURE__ */ jsx30(CloseRoundIcon, { size: isDownMd ? 24 : 30 }) })
5176
5179
  ] }),
5177
- /* @__PURE__ */ jsx31("div", { className: "matchid-login-panel-divide" }),
5178
- /* @__PURE__ */ jsx31("div", { className: "matchid-login-panel-box", children: /* @__PURE__ */ jsx31(LoginBox, { ...props }) })
5180
+ /* @__PURE__ */ jsx30("div", { className: "matchid-login-panel-divide" }),
5181
+ /* @__PURE__ */ jsx30("div", { className: "matchid-login-panel-box", children: /* @__PURE__ */ jsx30(LoginBox, { ...props }) })
5179
5182
  ] });
5180
5183
  }
5181
5184
 
5182
5185
  // src/components/LoginModal/index.tsx
5183
- import { jsx as jsx32 } from "react/jsx-runtime";
5186
+ import { jsx as jsx31 } from "react/jsx-runtime";
5184
5187
  function LoginModal({
5185
5188
  isOpen = false,
5186
5189
  width = 480,
5187
5190
  ...props
5188
5191
  }) {
5189
5192
  const { isLogin } = useUserInfo();
5190
- return /* @__PURE__ */ jsx32(
5193
+ return /* @__PURE__ */ jsx31(
5191
5194
  Modal,
5192
5195
  {
5193
5196
  isOpen: isOpen && !isLogin,
5194
5197
  width,
5195
- children: /* @__PURE__ */ jsx32(LoginPanel, { ...props, inModal: true })
5198
+ children: /* @__PURE__ */ jsx31(LoginPanel, { ...props, inModal: true })
5196
5199
  }
5197
5200
  );
5198
5201
  }
@@ -5201,10 +5204,10 @@ function LoginModal({
5201
5204
  import { useState as useState21 } from "react";
5202
5205
 
5203
5206
  // src/assets/icon/ProfileIcon.tsx
5204
- import { jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
5207
+ import { jsx as jsx32, jsxs as jsxs18 } from "react/jsx-runtime";
5205
5208
  function ProfileIcon({ size = 24, color = "black", ...props }) {
5206
5209
  return /* @__PURE__ */ jsxs18("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
5207
- /* @__PURE__ */ jsx33(
5210
+ /* @__PURE__ */ jsx32(
5208
5211
  "path",
5209
5212
  {
5210
5213
  fillRule: "evenodd",
@@ -5213,7 +5216,7 @@ function ProfileIcon({ size = 24, color = "black", ...props }) {
5213
5216
  fill: color
5214
5217
  }
5215
5218
  ),
5216
- /* @__PURE__ */ jsx33(
5219
+ /* @__PURE__ */ jsx32(
5217
5220
  "path",
5218
5221
  {
5219
5222
  fillRule: "evenodd",
@@ -5227,7 +5230,7 @@ function ProfileIcon({ size = 24, color = "black", ...props }) {
5227
5230
 
5228
5231
  // src/components/UserPopover/index.tsx
5229
5232
  import { FormattedMessage as FormattedMessage9, useIntl as useIntl10 } from "react-intl";
5230
- import { jsx as jsx34, jsxs as jsxs19 } from "react/jsx-runtime";
5233
+ import { jsx as jsx33, jsxs as jsxs19 } from "react/jsx-runtime";
5231
5234
  function UserContent() {
5232
5235
  const { logout, address, username } = useUserInfo();
5233
5236
  const [logouting, setLogouting] = useState21(false);
@@ -5251,31 +5254,31 @@ function UserContent() {
5251
5254
  return /* @__PURE__ */ jsxs19("div", { className: "matchid-user-popover-item", onClick, children: [
5252
5255
  /* @__PURE__ */ jsxs19("div", { className: `matchid-user-popover-item-content`, children: [
5253
5256
  icon,
5254
- /* @__PURE__ */ jsx34("div", { className: "matchid-user-popover-item-text", children })
5257
+ /* @__PURE__ */ jsx33("div", { className: "matchid-user-popover-item-text", children })
5255
5258
  ] }),
5256
5259
  rightIcon
5257
5260
  ] });
5258
5261
  };
5259
5262
  const UserDivider = () => {
5260
- return /* @__PURE__ */ jsx34("div", { className: `matchid-user-popover-divider` });
5263
+ return /* @__PURE__ */ jsx33("div", { className: `matchid-user-popover-divider` });
5261
5264
  };
5262
5265
  const [usernameOpen, setUsernameOpen] = useState21(false);
5263
5266
  const [copied, setCopied] = useCopyClipboard();
5264
5267
  const intl = useIntl10();
5265
5268
  return /* @__PURE__ */ jsxs19("div", { className: "matchid-user-popover-content", children: [
5266
5269
  /* @__PURE__ */ jsxs19("div", { className: "matchid-user-popover-list", children: [
5267
- /* @__PURE__ */ jsx34(UserItem, { onClick: () => {
5270
+ /* @__PURE__ */ jsx33(UserItem, { onClick: () => {
5268
5271
  setCopied(address);
5269
- }, 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) }),
5270
- /* @__PURE__ */ jsx34(UserDivider, {}),
5271
- /* @__PURE__ */ jsx34(UserItem, { onClick: () => {
5272
+ }, 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) }),
5273
+ /* @__PURE__ */ jsx33(UserDivider, {}),
5274
+ /* @__PURE__ */ jsx33(UserItem, { onClick: () => {
5272
5275
  setUsernameOpen(true);
5273
- }, 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
+ }, icon: /* @__PURE__ */ jsx33(ProfileIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ jsx33(ArrowRightIcon, { size: 20, color: "var(--icon-color)" }), children: username || intl.formatMessage({
5274
5277
  id: "setUsername"
5275
5278
  }) })
5276
5279
  ] }),
5277
- /* @__PURE__ */ jsx34(Button, { onClick: onLogout, loading: logouting, children: /* @__PURE__ */ jsx34(FormattedMessage9, { id: "disconnect" }) }),
5278
- /* @__PURE__ */ jsx34(UsernameModal, { isOpen: usernameOpen, onClose: () => {
5280
+ /* @__PURE__ */ jsx33(Button, { onClick: onLogout, loading: logouting, children: /* @__PURE__ */ jsx33(FormattedMessage9, { id: "disconnect" }) }),
5281
+ /* @__PURE__ */ jsx33(UsernameModal, { isOpen: usernameOpen, onClose: () => {
5279
5282
  setUsernameOpen(false);
5280
5283
  }, onSuccess: () => {
5281
5284
  setUsernameOpen(false);
@@ -5286,12 +5289,12 @@ function UserPopover({
5286
5289
  children,
5287
5290
  ...props
5288
5291
  }) {
5289
- return /* @__PURE__ */ jsx34(Popover, { ...props, content: /* @__PURE__ */ jsx34(UserContent, {}), children });
5292
+ return /* @__PURE__ */ jsx33(Popover, { ...props, content: /* @__PURE__ */ jsx33(UserContent, {}), children });
5290
5293
  }
5291
5294
 
5292
5295
  // src/components/LoginButton/index.tsx
5293
5296
  import { FormattedMessage as FormattedMessage10, useIntl as useIntl11 } from "react-intl";
5294
- import { Fragment as Fragment6, jsx as jsx35, jsxs as jsxs20 } from "react/jsx-runtime";
5297
+ import { Fragment as Fragment6, jsx as jsx34, jsxs as jsxs20 } from "react/jsx-runtime";
5295
5298
  function LoginButton({
5296
5299
  loginRender,
5297
5300
  methods,
@@ -5308,7 +5311,7 @@ function LoginButton({
5308
5311
  const [loginOpen, setLoginOpen] = useState22(false);
5309
5312
  if (!isLogin) {
5310
5313
  return /* @__PURE__ */ jsxs20(Fragment6, { children: [
5311
- /* @__PURE__ */ jsx35(
5314
+ /* @__PURE__ */ jsx34(
5312
5315
  LoginModal,
5313
5316
  {
5314
5317
  methods,
@@ -5319,14 +5322,14 @@ function LoginButton({
5319
5322
  }
5320
5323
  ),
5321
5324
  /* @__PURE__ */ jsxs20(Button, { className: "matchid-unlogin-btn", ...props, highlight: true, onClick: () => setLoginOpen(true), children: [
5322
- /* @__PURE__ */ jsx35(UnLoginIcon_default, {}),
5323
- /* @__PURE__ */ jsx35("span", { children: /* @__PURE__ */ jsx35(FormattedMessage10, { id: "login" }) })
5325
+ /* @__PURE__ */ jsx34(UnLoginIcon_default, {}),
5326
+ /* @__PURE__ */ jsx34("span", { children: /* @__PURE__ */ jsx34(FormattedMessage10, { id: "login" }) })
5324
5327
  ] })
5325
5328
  ] });
5326
5329
  }
5327
- 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: [
5328
- /* @__PURE__ */ jsx35(LoginIcon_default, {}),
5329
- /* @__PURE__ */ jsx35("span", { children: username ? truncateAddress(username) : "MatchID " + intl.formatMessage({
5330
+ 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: [
5331
+ /* @__PURE__ */ jsx34(LoginIcon_default, {}),
5332
+ /* @__PURE__ */ jsx34("span", { children: username ? truncateAddress(username) : "MatchID " + intl.formatMessage({
5330
5333
  id: "user"
5331
5334
  }) })
5332
5335
  ] }) });
@@ -5335,15 +5338,15 @@ function LoginButton({
5335
5338
  // src/components/UsernameModal/index.tsx
5336
5339
  import { useEffect as useEffect20, useMemo as useMemo11, useState as useState23 } from "react";
5337
5340
  import { FormattedMessage as FormattedMessage11, useIntl as useIntl12 } from "react-intl";
5338
- import { jsx as jsx36, jsxs as jsxs21 } from "react/jsx-runtime";
5341
+ import { jsx as jsx35, jsxs as jsxs21 } from "react/jsx-runtime";
5339
5342
  var ValidItem = ({
5340
5343
  success = false,
5341
5344
  text
5342
5345
  }) => {
5343
5346
  const isDownMd = useDownMd();
5344
5347
  return /* @__PURE__ */ jsxs21("div", { className: `matchid-valid-status-item matchid-valid-status-${success ? "success" : "error"}`, children: [
5345
- success ? /* @__PURE__ */ jsx36(CheckRoundIcon, { size: isDownMd ? 12 : 16 }) : /* @__PURE__ */ jsx36(InfoLineIcon, { size: isDownMd ? 12 : 16 }),
5346
- /* @__PURE__ */ jsx36("span", { children: text })
5348
+ success ? /* @__PURE__ */ jsx35(CheckRoundIcon, { size: isDownMd ? 12 : 16 }) : /* @__PURE__ */ jsx35(InfoLineIcon, { size: isDownMd ? 12 : 16 }),
5349
+ /* @__PURE__ */ jsx35("span", { children: text })
5347
5350
  ] });
5348
5351
  };
5349
5352
  function UsernameModal({
@@ -5391,12 +5394,12 @@ function UsernameModal({
5391
5394
  }
5392
5395
  };
5393
5396
  const intl = useIntl12();
5394
- return /* @__PURE__ */ jsx36(ModalWithHeader, { isOpen: isOpen && isLogin, ...props, title: title || intl.formatMessage({
5397
+ return /* @__PURE__ */ jsx35(ModalWithHeader, { isOpen: isOpen && isLogin, ...props, title: title || intl.formatMessage({
5395
5398
  id: username ? "editUsernameTitle" : "setUsernameTitle"
5396
5399
  }), children: /* @__PURE__ */ jsxs21("div", { className: "matchid-username-box", children: [
5397
- /* @__PURE__ */ jsx36(Field, { label: intl.formatMessage({
5400
+ /* @__PURE__ */ jsx35(Field, { label: intl.formatMessage({
5398
5401
  id: "username"
5399
- }), error, children: /* @__PURE__ */ jsx36(
5402
+ }), error, children: /* @__PURE__ */ jsx35(
5400
5403
  Input,
5401
5404
  {
5402
5405
  placeholder: intl.formatMessage({
@@ -5410,7 +5413,7 @@ function UsernameModal({
5410
5413
  }
5411
5414
  ) }),
5412
5415
  /* @__PURE__ */ jsxs21("div", { className: "matchid-valid", children: [
5413
- /* @__PURE__ */ jsx36(
5416
+ /* @__PURE__ */ jsx35(
5414
5417
  ValidItem,
5415
5418
  {
5416
5419
  success: isValid,
@@ -5419,16 +5422,16 @@ function UsernameModal({
5419
5422
  })
5420
5423
  }
5421
5424
  ),
5422
- /* @__PURE__ */ jsx36(ValidItem, { success: isLength, text: intl.formatMessage({
5425
+ /* @__PURE__ */ jsx35(ValidItem, { success: isLength, text: intl.formatMessage({
5423
5426
  id: "usernameLengthError"
5424
5427
  }) })
5425
5428
  ] }),
5426
- /* @__PURE__ */ jsx36(Button, { disabled: !isSafe, loading: isSubmitting, style: {
5429
+ /* @__PURE__ */ jsx35(Button, { disabled: !isSafe, loading: isSubmitting, style: {
5427
5430
  marginTop: isDownMd ? "36px" : "64px"
5428
- }, onClick: onSubmit, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ jsx36(FormattedMessage11, { id: "confirm" }) }),
5429
- /* @__PURE__ */ jsx36(Button, { style: {
5431
+ }, onClick: onSubmit, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ jsx35(FormattedMessage11, { id: "confirm" }) }),
5432
+ /* @__PURE__ */ jsx35(Button, { style: {
5430
5433
  marginTop: isDownMd ? "12px" : "24px"
5431
- }, onClick: props.onClose, size: "lg", block: true, children: /* @__PURE__ */ jsx36(FormattedMessage11, { id: "cancel" }) })
5434
+ }, onClick: props.onClose, size: "lg", block: true, children: /* @__PURE__ */ jsx35(FormattedMessage11, { id: "cancel" }) })
5432
5435
  ] }) });
5433
5436
  }
5434
5437
 
@@ -5447,7 +5450,7 @@ var walletConnectImage = wallet_default;
5447
5450
  var walletSigningImage = signing_default;
5448
5451
 
5449
5452
  // src/components/WalletModalContent/index.tsx
5450
- import { jsx as jsx37, jsxs as jsxs22 } from "react/jsx-runtime";
5453
+ import { jsx as jsx36, jsxs as jsxs22 } from "react/jsx-runtime";
5451
5454
  function WalletModalContent({
5452
5455
  status,
5453
5456
  error,
@@ -5517,15 +5520,15 @@ function WalletModalContent({
5517
5520
  statusImage: walletConnectImage
5518
5521
  };
5519
5522
  }, [visible, connected, status, error, address]);
5520
- return /* @__PURE__ */ jsx37("div", { className: "matchid-wallet-container", children: /* @__PURE__ */ jsxs22("div", { className: `matchid-wallet-box`, children: [
5523
+ return /* @__PURE__ */ jsx36("div", { className: "matchid-wallet-container", children: /* @__PURE__ */ jsxs22("div", { className: `matchid-wallet-box`, children: [
5521
5524
  /* @__PURE__ */ jsxs22("div", { className: `matchid-wallet-content`, children: [
5522
- /* @__PURE__ */ jsx37(Lottie, { animationData: pageData.statusImage, style: {
5525
+ /* @__PURE__ */ jsx36(Lottie_default, { animationData: pageData.statusImage, style: {
5523
5526
  width: 128,
5524
5527
  height: 128
5525
5528
  } }),
5526
- /* @__PURE__ */ jsx37("div", { className: pageData.isError ? "matchid-error" : "", children: pageData.text })
5529
+ /* @__PURE__ */ jsx36("div", { className: pageData.isError ? "matchid-error" : "", children: pageData.text })
5527
5530
  ] }),
5528
- /* @__PURE__ */ jsx37(
5531
+ /* @__PURE__ */ jsx36(
5529
5532
  Button,
5530
5533
  {
5531
5534
  block: true,
@@ -5601,15 +5604,15 @@ function WalletModalContentV2(props) {
5601
5604
  statusImage: walletConnectImage
5602
5605
  };
5603
5606
  }, [props, submitting]);
5604
- return /* @__PURE__ */ jsx37("div", { className: "matchid-wallet-container", children: /* @__PURE__ */ jsxs22("div", { className: `matchid-wallet-box`, children: [
5607
+ return /* @__PURE__ */ jsx36("div", { className: "matchid-wallet-container", children: /* @__PURE__ */ jsxs22("div", { className: `matchid-wallet-box`, children: [
5605
5608
  /* @__PURE__ */ jsxs22("div", { className: `matchid-wallet-content`, children: [
5606
- /* @__PURE__ */ jsx37(Lottie, { animationData: pageData.statusImage, style: {
5609
+ /* @__PURE__ */ jsx36(Lottie_default, { animationData: pageData.statusImage, style: {
5607
5610
  width: 128,
5608
5611
  height: 128
5609
5612
  } }),
5610
- /* @__PURE__ */ jsx37("div", { className: props.status == "error" ? "matchid-error" : "", children: pageData.text })
5613
+ /* @__PURE__ */ jsx36("div", { className: props.status == "error" ? "matchid-error" : "", children: pageData.text })
5611
5614
  ] }),
5612
- /* @__PURE__ */ jsx37(
5615
+ /* @__PURE__ */ jsx36(
5613
5616
  Button,
5614
5617
  {
5615
5618
  block: true,
@@ -5673,7 +5676,7 @@ import { useWalletClient } from "wagmi";
5673
5676
  import { providers } from "ethers";
5674
5677
 
5675
5678
  // node_modules/@wagmi/core/dist/esm/version.js
5676
- var version = "2.16.3";
5679
+ var version = "2.16.5";
5677
5680
 
5678
5681
  // node_modules/@wagmi/core/dist/esm/utils/getVersion.js
5679
5682
  var getVersion2 = () => `@wagmi/core@${version}`;
@@ -5824,7 +5827,11 @@ async function getConnectorClient(config, parameters = {}) {
5824
5827
  if (config.state.status === "reconnecting" && !connector2.getAccounts && !connector2.getChainId)
5825
5828
  throw new ConnectorUnavailableReconnectingError({ connector: connector2 });
5826
5829
  const [accounts, chainId2] = await Promise.all([
5827
- connector2.getAccounts(),
5830
+ connector2.getAccounts().catch((e) => {
5831
+ if (parameters.account === null)
5832
+ return [];
5833
+ throw e;
5834
+ }),
5828
5835
  connector2.getChainId()
5829
5836
  ]);
5830
5837
  connection = {
@@ -5847,7 +5854,8 @@ async function getConnectorClient(config, parameters = {}) {
5847
5854
  if (connector.getClient)
5848
5855
  return connector.getClient({ chainId });
5849
5856
  const account = parseAccount(parameters.account ?? connection.accounts[0]);
5850
- account.address = getAddress(account.address);
5857
+ if (account)
5858
+ account.address = getAddress(account.address);
5851
5859
  if (parameters.account && !connection.accounts.some((x) => x.toLowerCase() === account.address.toLowerCase()))
5852
5860
  throw new ConnectorAccountNotFoundError({
5853
5861
  address: account.address,
@@ -5886,7 +5894,7 @@ async function getEthersSigner(config, { chainId } = {}) {
5886
5894
  // src/components/EVMModal/index.tsx
5887
5895
  import { SiweMessage } from "siwe";
5888
5896
  import "@rainbow-me/rainbowkit/styles.css";
5889
- import { jsx as jsx38 } from "react/jsx-runtime";
5897
+ import { jsx as jsx37 } from "react/jsx-runtime";
5890
5898
  function WalletContent({
5891
5899
  onSuccess,
5892
5900
  type
@@ -6044,7 +6052,7 @@ function WalletContent({
6044
6052
  setNonce(void 0);
6045
6053
  setStatus("start");
6046
6054
  };
6047
- return /* @__PURE__ */ jsx38(
6055
+ return /* @__PURE__ */ jsx37(
6048
6056
  WalletModalContentV2,
6049
6057
  {
6050
6058
  status,
@@ -6062,14 +6070,14 @@ function EVMConnectModal({
6062
6070
  ...props
6063
6071
  }) {
6064
6072
  const intl = useIntl13();
6065
- return /* @__PURE__ */ jsx38(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6073
+ return /* @__PURE__ */ jsx37(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6066
6074
  id: type == "bind" ? "bindWith" : "loginWith"
6067
6075
  }, {
6068
6076
  name: "EVM"
6069
- }), children: /* @__PURE__ */ jsx38(WalletContent, { onSuccess, type }) });
6077
+ }), children: /* @__PURE__ */ jsx37(WalletContent, { onSuccess, type }) });
6070
6078
  }
6071
6079
  function EVMModal(props) {
6072
- return props.isOpen && /* @__PURE__ */ jsx38(EVMConnectModal, { ...props });
6080
+ return props.isOpen && /* @__PURE__ */ jsx37(EVMConnectModal, { ...props });
6073
6081
  }
6074
6082
 
6075
6083
  // src/components/TRONModal/index.tsx
@@ -6184,7 +6192,7 @@ var useTRONWallet = () => {
6184
6192
  };
6185
6193
 
6186
6194
  // src/components/TRONModal/index.tsx
6187
- import { jsx as jsx39, jsxs as jsxs23 } from "react/jsx-runtime";
6195
+ import { jsx as jsx38, jsxs as jsxs23 } from "react/jsx-runtime";
6188
6196
  function TRONConnectModal({
6189
6197
  type = "login",
6190
6198
  onSuccess,
@@ -6194,9 +6202,9 @@ function TRONConnectModal({
6194
6202
  const intl = useIntl14();
6195
6203
  const { wallets, installedWallets, chooseWallet, wallet, address, onConnect } = useTRONWallet();
6196
6204
  const iconMaps = {
6197
- tronlink: /* @__PURE__ */ jsx39(TronLinkIcon, { size: isDownMd ? 36 : 40 }),
6198
- bitget: /* @__PURE__ */ jsx39(BitgetIcon, { size: isDownMd ? 36 : 40 }),
6199
- okx: /* @__PURE__ */ jsx39(OKXIcon, { size: isDownMd ? 36 : 40 })
6205
+ tronlink: /* @__PURE__ */ jsx38(TronLinkIcon, { size: isDownMd ? 36 : 40 }),
6206
+ bitget: /* @__PURE__ */ jsx38(BitgetIcon, { size: isDownMd ? 36 : 40 }),
6207
+ okx: /* @__PURE__ */ jsx38(OKXIcon, { size: isDownMd ? 36 : 40 })
6200
6208
  };
6201
6209
  const { events, login } = useMatch();
6202
6210
  const [status, setStatus] = useState28("");
@@ -6288,11 +6296,11 @@ function TRONConnectModal({
6288
6296
  disconnect();
6289
6297
  }
6290
6298
  }, [props.isOpen]);
6291
- return /* @__PURE__ */ jsx39(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6299
+ return /* @__PURE__ */ jsx38(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6292
6300
  id: type == "bind" ? "bindWith" : "loginWith"
6293
6301
  }, {
6294
6302
  name: "TRON"
6295
- }), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ jsx39(
6303
+ }), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ jsx38(
6296
6304
  WalletModalContent,
6297
6305
  {
6298
6306
  error,
@@ -6305,9 +6313,9 @@ function TRONConnectModal({
6305
6313
  setVisible: () => {
6306
6314
  }
6307
6315
  }
6308
- ) : /* @__PURE__ */ jsx39("div", { className: "matchid-login-box", children: /* @__PURE__ */ jsxs23("div", { className: "matchid-login-recommend-list", children: [
6316
+ ) : /* @__PURE__ */ jsx38("div", { className: "matchid-login-box", children: /* @__PURE__ */ jsxs23("div", { className: "matchid-login-recommend-list", children: [
6309
6317
  installedWallets.map((wallet2) => {
6310
- return /* @__PURE__ */ jsx39(
6318
+ return /* @__PURE__ */ jsx38(
6311
6319
  RecommendItem,
6312
6320
  {
6313
6321
  icon: iconMaps[wallet2.walletKey],
@@ -6320,14 +6328,14 @@ function TRONConnectModal({
6320
6328
  );
6321
6329
  }),
6322
6330
  wallets.filter((wallet2) => !installedWallets.find((installedWallet) => installedWallet.walletKey == wallet2.walletKey)).map((wallet2) => {
6323
- return /* @__PURE__ */ jsx39(
6331
+ return /* @__PURE__ */ jsx38(
6324
6332
  RecommendItem,
6325
6333
  {
6326
6334
  icon: iconMaps[wallet2.walletKey],
6327
6335
  name: wallet2.name,
6328
6336
  onClick: () => {
6329
6337
  },
6330
- footer: /* @__PURE__ */ jsx39(Button, { size: "sm", onClick: () => {
6338
+ footer: /* @__PURE__ */ jsx38(Button, { size: "sm", onClick: () => {
6331
6339
  window.open(wallet2.website);
6332
6340
  }, children: "Install" })
6333
6341
  },
@@ -6337,7 +6345,7 @@ function TRONConnectModal({
6337
6345
  ] }) }) });
6338
6346
  }
6339
6347
  function TRONModal(props) {
6340
- return props.isOpen && /* @__PURE__ */ jsx39(TRONConnectModal, { ...props, type: props.type });
6348
+ return props.isOpen && /* @__PURE__ */ jsx38(TRONConnectModal, { ...props, type: props.type });
6341
6349
  }
6342
6350
 
6343
6351
  // src/components/TONModal/index.tsx
@@ -6350,7 +6358,7 @@ import {
6350
6358
  useTonConnectUI,
6351
6359
  useTonWallet
6352
6360
  } from "@tonconnect/ui-react";
6353
- import { jsx as jsx40 } from "react/jsx-runtime";
6361
+ import { jsx as jsx39 } from "react/jsx-runtime";
6354
6362
  function WalletContent2({
6355
6363
  onSuccess,
6356
6364
  type
@@ -6477,7 +6485,7 @@ function WalletContent2({
6477
6485
  }
6478
6486
  }
6479
6487
  }, [state]);
6480
- return /* @__PURE__ */ jsx40(
6488
+ return /* @__PURE__ */ jsx39(
6481
6489
  WalletModalContent,
6482
6490
  {
6483
6491
  connected,
@@ -6511,20 +6519,20 @@ function TONConnectModal({
6511
6519
  const intl = useIntl15();
6512
6520
  const { endpoints, appid } = useLocalStore_default();
6513
6521
  const manifestUrl = `${endpoints.back}api/v1/wallet/ton?appid=${appid}&url=` + encodeURIComponent(window.location.origin);
6514
- return /* @__PURE__ */ jsx40(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6522
+ return /* @__PURE__ */ jsx39(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6515
6523
  id: type == "bind" ? "bindWith" : "loginWith"
6516
6524
  }, {
6517
6525
  name: "TON"
6518
- }), children: /* @__PURE__ */ jsx40(
6526
+ }), children: /* @__PURE__ */ jsx39(
6519
6527
  TonConnectUIProvider,
6520
6528
  {
6521
6529
  manifestUrl,
6522
- children: /* @__PURE__ */ jsx40(WalletContent2, { onSuccess, type })
6530
+ children: /* @__PURE__ */ jsx39(WalletContent2, { onSuccess, type })
6523
6531
  }
6524
6532
  ) });
6525
6533
  }
6526
6534
  function TONModal(props) {
6527
- return props.isOpen && /* @__PURE__ */ jsx40(TONConnectModal, { ...props });
6535
+ return props.isOpen && /* @__PURE__ */ jsx39(TONConnectModal, { ...props });
6528
6536
  }
6529
6537
 
6530
6538
  // src/components/BTCModal/index.tsx
@@ -6753,7 +6761,7 @@ var useBTCWallet = () => {
6753
6761
  };
6754
6762
 
6755
6763
  // src/components/BTCModal/index.tsx
6756
- import { jsx as jsx41, jsxs as jsxs24 } from "react/jsx-runtime";
6764
+ import { jsx as jsx40, jsxs as jsxs24 } from "react/jsx-runtime";
6757
6765
  function BTCConnectModal({
6758
6766
  type = "login",
6759
6767
  onSuccess,
@@ -6763,10 +6771,10 @@ function BTCConnectModal({
6763
6771
  const intl = useIntl16();
6764
6772
  const { wallets, installedWallets, chooseWallet, wallet, address, onConnect } = useBTCWallet();
6765
6773
  const iconMaps = {
6766
- leather: /* @__PURE__ */ jsx41(LeatherIcon, { size: isDownMd ? 36 : 40 }),
6767
- unisat: /* @__PURE__ */ jsx41(UnisatIcon, { size: isDownMd ? 36 : 40 }),
6768
- xverse: /* @__PURE__ */ jsx41(XverseIcon, { size: isDownMd ? 36 : 40 }),
6769
- phantom: /* @__PURE__ */ jsx41(PhantomIcon, { size: isDownMd ? 36 : 40 })
6774
+ leather: /* @__PURE__ */ jsx40(LeatherIcon, { size: isDownMd ? 36 : 40 }),
6775
+ unisat: /* @__PURE__ */ jsx40(UnisatIcon, { size: isDownMd ? 36 : 40 }),
6776
+ xverse: /* @__PURE__ */ jsx40(XverseIcon, { size: isDownMd ? 36 : 40 }),
6777
+ phantom: /* @__PURE__ */ jsx40(PhantomIcon, { size: isDownMd ? 36 : 40 })
6770
6778
  };
6771
6779
  const { events, login } = useMatch();
6772
6780
  const [status, setStatus] = useState31("");
@@ -6866,11 +6874,11 @@ function BTCConnectModal({
6866
6874
  statusRef.current = "";
6867
6875
  setError("");
6868
6876
  };
6869
- return /* @__PURE__ */ jsx41(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6877
+ return /* @__PURE__ */ jsx40(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6870
6878
  id: type == "bind" ? "bindWith" : "loginWith"
6871
6879
  }, {
6872
6880
  name: "BTC"
6873
- }), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ jsx41(
6881
+ }), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ jsx40(
6874
6882
  WalletModalContent,
6875
6883
  {
6876
6884
  error,
@@ -6883,9 +6891,9 @@ function BTCConnectModal({
6883
6891
  setVisible: () => {
6884
6892
  }
6885
6893
  }
6886
- ) : /* @__PURE__ */ jsx41("div", { className: "matchid-login-box", children: /* @__PURE__ */ jsxs24("div", { className: "matchid-login-recommend-list", children: [
6894
+ ) : /* @__PURE__ */ jsx40("div", { className: "matchid-login-box", children: /* @__PURE__ */ jsxs24("div", { className: "matchid-login-recommend-list", children: [
6887
6895
  installedWallets.map((wallet2) => {
6888
- return /* @__PURE__ */ jsx41(
6896
+ return /* @__PURE__ */ jsx40(
6889
6897
  RecommendItem,
6890
6898
  {
6891
6899
  icon: iconMaps[wallet2.walletKey],
@@ -6898,14 +6906,14 @@ function BTCConnectModal({
6898
6906
  );
6899
6907
  }),
6900
6908
  wallets.filter((wallet2) => !installedWallets.find((installedWallet) => installedWallet.walletKey == wallet2.walletKey)).map((wallet2) => {
6901
- return /* @__PURE__ */ jsx41(
6909
+ return /* @__PURE__ */ jsx40(
6902
6910
  RecommendItem,
6903
6911
  {
6904
6912
  icon: iconMaps[wallet2.walletKey],
6905
6913
  name: wallet2.name,
6906
6914
  onClick: () => {
6907
6915
  },
6908
- footer: /* @__PURE__ */ jsx41(Button, { size: "sm", onClick: () => {
6916
+ footer: /* @__PURE__ */ jsx40(Button, { size: "sm", onClick: () => {
6909
6917
  window.open(wallet2.website);
6910
6918
  }, children: "Install" })
6911
6919
  },
@@ -6915,13 +6923,13 @@ function BTCConnectModal({
6915
6923
  ] }) }) });
6916
6924
  }
6917
6925
  function BTCModal(props) {
6918
- return props.isOpen && /* @__PURE__ */ jsx41(BTCConnectModal, { ...props });
6926
+ return props.isOpen && /* @__PURE__ */ jsx40(BTCConnectModal, { ...props });
6919
6927
  }
6920
6928
 
6921
6929
  // src/components/WalletModal/index.tsx
6922
6930
  import { useMemo as useMemo16 } from "react";
6923
6931
  import { useIntl as useIntl17 } from "react-intl";
6924
- import { jsx as jsx42 } from "react/jsx-runtime";
6932
+ import { jsx as jsx41 } from "react/jsx-runtime";
6925
6933
  function WalletConnectModal({
6926
6934
  type,
6927
6935
  methods: _methods,
@@ -6939,13 +6947,13 @@ function WalletConnectModal({
6939
6947
  const platform = config.platform.map((p) => p.toLowerCase());
6940
6948
  return WALLET_METHODS.filter((m) => platform.includes(m));
6941
6949
  }, [config.platform, _methods]);
6942
- return /* @__PURE__ */ jsx42(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6950
+ return /* @__PURE__ */ jsx41(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6943
6951
  id: type == "bind" ? "bindWith" : "loginWith"
6944
6952
  }, {
6945
6953
  name: ""
6946
- }), children: /* @__PURE__ */ jsx42("div", { className: "matchid-login-box", children: /* @__PURE__ */ jsx42("div", { className: "matchid-login-recommend-list", children: methods.map((method, index) => {
6954
+ }), children: /* @__PURE__ */ jsx41("div", { className: "matchid-login-box", children: /* @__PURE__ */ jsx41("div", { className: "matchid-login-recommend-list", children: methods.map((method, index) => {
6947
6955
  const m = walletMap[method];
6948
- return /* @__PURE__ */ jsx42(
6956
+ return /* @__PURE__ */ jsx41(
6949
6957
  RecommendItem,
6950
6958
  {
6951
6959
  icon: m?.icon,
@@ -6959,12 +6967,12 @@ function WalletConnectModal({
6959
6967
  }) }) }) });
6960
6968
  }
6961
6969
  function WalletModal(props) {
6962
- return props.isOpen && /* @__PURE__ */ jsx42(WalletConnectModal, { ...props });
6970
+ return props.isOpen && /* @__PURE__ */ jsx41(WalletConnectModal, { ...props });
6963
6971
  }
6964
6972
 
6965
6973
  // src/components/AlphaAvatar/index.tsx
6966
6974
  import { useEffect as useEffect28, useState as useState32 } from "react";
6967
- import { jsx as jsx43 } from "react/jsx-runtime";
6975
+ import { jsx as jsx42 } from "react/jsx-runtime";
6968
6976
  function AlphaAvatar2({ name, size = 40, className = "" }) {
6969
6977
  const [avatar, setAvatar] = useState32(void 0);
6970
6978
  useEffect28(() => {
@@ -6973,7 +6981,7 @@ function AlphaAvatar2({ name, size = 40, className = "" }) {
6973
6981
  setAvatar(char);
6974
6982
  }
6975
6983
  }, [name]);
6976
- return /* @__PURE__ */ jsx43("div", { className: `matchid-alpha-avatar ${className}`, style: {
6984
+ return /* @__PURE__ */ jsx42("div", { className: `matchid-alpha-avatar ${className}`, style: {
6977
6985
  width: size,
6978
6986
  height: size,
6979
6987
  fontSize: Math.ceil(size / 2)
@@ -6981,7 +6989,7 @@ function AlphaAvatar2({ name, size = 40, className = "" }) {
6981
6989
  }
6982
6990
 
6983
6991
  // src/components/WalletAsset/index.tsx
6984
- import { jsx as jsx44, jsxs as jsxs25 } from "react/jsx-runtime";
6992
+ import { jsx as jsx43, jsxs as jsxs25 } from "react/jsx-runtime";
6985
6993
  function WalletAsset({
6986
6994
  onAssetClick,
6987
6995
  matchWalletAssetsOptions
@@ -6991,7 +6999,7 @@ function WalletAsset({
6991
6999
  list: walletAssets.mergedAssets
6992
7000
  });
6993
7001
  const { list } = useMatchChain();
6994
- return /* @__PURE__ */ jsx44("div", { className: "matchid-wallet-asset-list", children: matchWalletAssetList.list.map((n, index) => {
7002
+ return /* @__PURE__ */ jsx43("div", { className: "matchid-wallet-asset-list", children: matchWalletAssetList.list.map((n, index) => {
6995
7003
  const clickFunc = onAssetClick && onAssetClick(n);
6996
7004
  const chain = list?.find((m) => m.id.toString() === n.chain_id);
6997
7005
  const getFooterColor = () => {
@@ -7010,7 +7018,7 @@ function WalletAsset({
7010
7018
  cursor: clickFunc ? "pointer" : "default"
7011
7019
  }, children: [
7012
7020
  /* @__PURE__ */ jsxs25("div", { className: "matchid-wallet-asset-logo", title: n.symbol || n.name || "", children: [
7013
- n.icon ? /* @__PURE__ */ jsx44("img", { src: n.icon, alt: n.symbol, className: `matchid-wallet-asset-icon` }) : /* @__PURE__ */ jsx44(
7021
+ n.icon ? /* @__PURE__ */ jsx43("img", { src: n.icon, alt: n.symbol, className: `matchid-wallet-asset-icon` }) : /* @__PURE__ */ jsx43(
7014
7022
  AlphaAvatar2,
7015
7023
  {
7016
7024
  className: `matchid-wallet-asset-icon`,
@@ -7018,12 +7026,12 @@ function WalletAsset({
7018
7026
  name: n.symbol || n.name || ""
7019
7027
  }
7020
7028
  ),
7021
- chain?.iconUrl && /* @__PURE__ */ jsx44("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-wallet-asset-chain` })
7029
+ chain?.iconUrl && /* @__PURE__ */ jsx43("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-wallet-asset-chain` })
7022
7030
  ] }),
7023
7031
  /* @__PURE__ */ jsxs25("div", { className: `matchid-wallet-asset-info`, children: [
7024
- /* @__PURE__ */ jsx44("div", { className: `matchid-wallet-asset-name`, children: n.symbol }),
7032
+ /* @__PURE__ */ jsx43("div", { className: `matchid-wallet-asset-name`, children: n.symbol }),
7025
7033
  "price" in n && /* @__PURE__ */ jsxs25("div", { className: `matchid-wallet-asset-content`, children: [
7026
- /* @__PURE__ */ jsx44("div", { className: "matchid-wallet-asset-price", children: /* @__PURE__ */ jsx44(
7034
+ /* @__PURE__ */ jsx43("div", { className: "matchid-wallet-asset-price", children: /* @__PURE__ */ jsx43(
7027
7035
  NumberFormatter,
7028
7036
  {
7029
7037
  value: n.price,
@@ -7031,7 +7039,7 @@ function WalletAsset({
7031
7039
  tFixNum: 2
7032
7040
  }
7033
7041
  ) }),
7034
- /* @__PURE__ */ jsx44("div", { className: "matchid-wallet-asset-value", children: /* @__PURE__ */ jsx44(
7042
+ /* @__PURE__ */ jsx43("div", { className: "matchid-wallet-asset-value", children: /* @__PURE__ */ jsx43(
7035
7043
  NumberFormatter,
7036
7044
  {
7037
7045
  value: n.value,
@@ -7041,14 +7049,14 @@ function WalletAsset({
7041
7049
  ) })
7042
7050
  ] }),
7043
7051
  /* @__PURE__ */ jsxs25("div", { className: `matchid-wallet-asset-footer`, children: [
7044
- /* @__PURE__ */ jsx44("div", { className: `matchid-wallet-asset-balance`, children: /* @__PURE__ */ jsx44(
7052
+ /* @__PURE__ */ jsx43("div", { className: `matchid-wallet-asset-balance`, children: /* @__PURE__ */ jsx43(
7045
7053
  NumberFormatter,
7046
7054
  {
7047
7055
  value: n.balance,
7048
7056
  tFixNum: 3
7049
7057
  }
7050
7058
  ) }),
7051
- "price_change_24h" in n && /* @__PURE__ */ jsx44("div", { className: `matchid-wallet-asset-change ${getFooterColor()}`, children: /* @__PURE__ */ jsx44(
7059
+ "price_change_24h" in n && /* @__PURE__ */ jsx43("div", { className: `matchid-wallet-asset-change ${getFooterColor()}`, children: /* @__PURE__ */ jsx43(
7052
7060
  NumberFormatter,
7053
7061
  {
7054
7062
  prefix: `${(n?.price_change_24h || 0) < 0 ? "-" : "+"} `,
@@ -7067,7 +7075,7 @@ function WalletAsset({
7067
7075
  import { useEffect as useEffect29, useMemo as useMemo17, useState as useState33 } from "react";
7068
7076
  import { defineChain as defineChain4, encodeFunctionData as encodeFunctionData2, erc20Abi as erc20Abi3, http as http8, parseUnits as parseUnits2 } from "viem";
7069
7077
  import { FormattedMessage as FormattedMessage12, useIntl as useIntl18 } from "react-intl";
7070
- import { jsx as jsx45, jsxs as jsxs26 } from "react/jsx-runtime";
7078
+ import { jsx as jsx44, jsxs as jsxs26 } from "react/jsx-runtime";
7071
7079
  function Input2({
7072
7080
  onChange,
7073
7081
  placeholder,
@@ -7078,7 +7086,7 @@ function Input2({
7078
7086
  size = "df"
7079
7087
  }) {
7080
7088
  return /* @__PURE__ */ jsxs26("div", { className: `matchid-token-input-box ${"matchid-token-input-" + size}`, children: [
7081
- /* @__PURE__ */ jsx45(
7089
+ /* @__PURE__ */ jsx44(
7082
7090
  "input",
7083
7091
  {
7084
7092
  placeholder,
@@ -7089,7 +7097,7 @@ function Input2({
7089
7097
  className: `matchid-token-input ${error ? "matchid-token-input-error" : ""}`
7090
7098
  }
7091
7099
  ),
7092
- error && /* @__PURE__ */ jsx45("div", { className: "matchid-token-input-error-text", children: error })
7100
+ error && /* @__PURE__ */ jsx44("div", { className: "matchid-token-input-error-text", children: error })
7093
7101
  ] });
7094
7102
  }
7095
7103
  function TokenSend({
@@ -7217,24 +7225,24 @@ function TokenSend({
7217
7225
  window.removeEventListener("message", receiveMessage);
7218
7226
  };
7219
7227
  }, []);
7220
- 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
+ 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: [
7221
7229
  /* @__PURE__ */ jsxs26("div", { className: "matchid-token-send-content", children: [
7222
7230
  /* @__PURE__ */ jsxs26("div", { className: `matchid-token-amount-content`, children: [
7223
7231
  /* @__PURE__ */ jsxs26("div", { className: `matchid-token-amount-header`, children: [
7224
- /* @__PURE__ */ jsx45("div", { className: `matchid-token-amount-title`, children: /* @__PURE__ */ jsx45(FormattedMessage12, { id: "amount" }) }),
7232
+ /* @__PURE__ */ jsx44("div", { className: `matchid-token-amount-title`, children: /* @__PURE__ */ jsx44(FormattedMessage12, { id: "amount" }) }),
7225
7233
  /* @__PURE__ */ jsxs26("div", { className: `matchid-token-amount-chain`, children: [
7226
- token.icon ? /* @__PURE__ */ jsx45(
7234
+ token.icon ? /* @__PURE__ */ jsx44(
7227
7235
  "img",
7228
7236
  {
7229
7237
  src: token?.icon,
7230
7238
  alt: token?.symbol,
7231
7239
  className: `matchid-token-amount-chain-icon`
7232
7240
  }
7233
- ) : /* @__PURE__ */ jsx45(AlphaAvatar, { name: token.symbol || token.name || "", size: 16 }),
7234
- /* @__PURE__ */ jsx45("span", { children: token?.symbol })
7241
+ ) : /* @__PURE__ */ jsx44(AlphaAvatar, { name: token.symbol || token.name || "", size: 16 }),
7242
+ /* @__PURE__ */ jsx44("span", { children: token?.symbol })
7235
7243
  ] })
7236
7244
  ] }),
7237
- /* @__PURE__ */ jsx45(
7245
+ /* @__PURE__ */ jsx44(
7238
7246
  Input2,
7239
7247
  {
7240
7248
  type: "text",
@@ -7249,16 +7257,16 @@ function TokenSend({
7249
7257
  ),
7250
7258
  /* @__PURE__ */ jsxs26("div", { className: `matchid-token-amount-footer`, children: [
7251
7259
  /* @__PURE__ */ jsxs26("div", { className: `matchid-token-amount-title`, children: [
7252
- /* @__PURE__ */ jsx45(FormattedMessage12, { id: "balance" }),
7260
+ /* @__PURE__ */ jsx44(FormattedMessage12, { id: "balance" }),
7253
7261
  ":"
7254
7262
  ] }),
7255
- /* @__PURE__ */ jsx45("div", { className: `matchid-token-amount-value`, children: /* @__PURE__ */ jsx45(NumberFormatter, { value: token.balance, tFixNum: 10, suffix: " " + token.symbol }) })
7263
+ /* @__PURE__ */ jsx44("div", { className: `matchid-token-amount-value`, children: /* @__PURE__ */ jsx44(NumberFormatter, { value: token.balance, tFixNum: 10, suffix: " " + token.symbol }) })
7256
7264
  ] }),
7257
- /* @__PURE__ */ jsx45(TransferIcon, { className: "matchid-token-amount-transfer" })
7265
+ /* @__PURE__ */ jsx44(TransferIcon, { className: "matchid-token-amount-transfer" })
7258
7266
  ] }),
7259
7267
  /* @__PURE__ */ jsxs26("div", { className: `matchid-token-address-content`, children: [
7260
- /* @__PURE__ */ jsx45("div", { className: `matchid-token-address-header`, children: /* @__PURE__ */ jsx45("div", { className: `matchid-token-address-title`, children: /* @__PURE__ */ jsx45(FormattedMessage12, { id: "receiveTitle" }) }) }),
7261
- /* @__PURE__ */ jsx45(
7268
+ /* @__PURE__ */ jsx44("div", { className: `matchid-token-address-header`, children: /* @__PURE__ */ jsx44("div", { className: `matchid-token-address-title`, children: /* @__PURE__ */ jsx44(FormattedMessage12, { id: "receiveTitle" }) }) }),
7269
+ /* @__PURE__ */ jsx44(
7262
7270
  Input2,
7263
7271
  {
7264
7272
  type: "text",
@@ -7274,7 +7282,7 @@ function TokenSend({
7274
7282
  )
7275
7283
  ] })
7276
7284
  ] }),
7277
- /* @__PURE__ */ jsx45(
7285
+ /* @__PURE__ */ jsx44(
7278
7286
  Button,
7279
7287
  {
7280
7288
  size: "lg",
@@ -7283,7 +7291,7 @@ function TokenSend({
7283
7291
  disabled: !canSend || !!txError,
7284
7292
  onClick: onNext,
7285
7293
  loading: loading || sending,
7286
- children: /* @__PURE__ */ jsx45(FormattedMessage12, { id: "next" })
7294
+ children: /* @__PURE__ */ jsx44(FormattedMessage12, { id: "next" })
7287
7295
  }
7288
7296
  )
7289
7297
  ] }) });
@@ -7291,7 +7299,7 @@ function TokenSend({
7291
7299
 
7292
7300
  // src/components/TokenDetail/index.tsx
7293
7301
  import { FormattedMessage as FormattedMessage13, useIntl as useIntl19 } from "react-intl";
7294
- import { jsx as jsx46, jsxs as jsxs27 } from "react/jsx-runtime";
7302
+ import { jsx as jsx45, jsxs as jsxs27 } from "react/jsx-runtime";
7295
7303
  function TokenDetail({
7296
7304
  onClose,
7297
7305
  token
@@ -7301,41 +7309,41 @@ function TokenDetail({
7301
7309
  const chain = chainList?.find((m) => m.id.toString() === token.chain_id);
7302
7310
  const onSend = () => {
7303
7311
  modal.show((props) => {
7304
- return /* @__PURE__ */ jsx46(TokenSend, { onClose: () => {
7312
+ return /* @__PURE__ */ jsx45(TokenSend, { onClose: () => {
7305
7313
  props.close();
7306
7314
  onClose();
7307
7315
  }, onBack: props.close, zIndex: props.zIndex, token });
7308
7316
  });
7309
7317
  };
7310
7318
  const intl = useIntl19();
7311
- return /* @__PURE__ */ jsx46(ModalDrawer, { isOpen: true, title: intl.formatMessage({
7319
+ return /* @__PURE__ */ jsx45(ModalDrawer, { isOpen: true, title: intl.formatMessage({
7312
7320
  id: "tokenDetails"
7313
7321
  }), onClose, children: /* @__PURE__ */ jsxs27("div", { className: `matchid-token-detail`, children: [
7314
7322
  /* @__PURE__ */ jsxs27("div", { className: `matchid-token-main`, children: [
7315
7323
  /* @__PURE__ */ jsxs27("div", { className: `matchid-token-info`, children: [
7316
7324
  /* @__PURE__ */ jsxs27("div", { className: `matchid-token-logo`, children: [
7317
- 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 || "" }),
7318
- chain?.iconUrl && /* @__PURE__ */ jsx46("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-token-chain` })
7325
+ 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 || "" }),
7326
+ chain?.iconUrl && /* @__PURE__ */ jsx45("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-token-chain` })
7319
7327
  ] }),
7320
7328
  /* @__PURE__ */ jsxs27("div", { className: `matchid-token-name`, children: [
7321
- /* @__PURE__ */ jsx46(NumberFormatter, { value: token.balance, tFixNum: 10 }),
7329
+ /* @__PURE__ */ jsx45(NumberFormatter, { value: token.balance, tFixNum: 10 }),
7322
7330
  " ",
7323
7331
  token.symbol
7324
7332
  ] })
7325
7333
  ] }),
7326
7334
  token.address.toLowerCase() != NATIVE_TOKEN_ADDRESS && /* @__PURE__ */ jsxs27("div", { className: `matchid-token-contract`, children: [
7327
- /* @__PURE__ */ jsx46("div", { className: "matchid-token-contract-title", children: "Contract address" }),
7328
- /* @__PURE__ */ jsx46("div", { className: "matchid-token-contract-address", children: token.address })
7335
+ /* @__PURE__ */ jsx45("div", { className: "matchid-token-contract-title", children: "Contract address" }),
7336
+ /* @__PURE__ */ jsx45("div", { className: "matchid-token-contract-address", children: token.address })
7329
7337
  ] })
7330
7338
  ] }),
7331
- /* @__PURE__ */ jsx46(Button, { size: "lg", block: true, highlight: true, onClick: onSend, children: /* @__PURE__ */ jsx46(FormattedMessage13, { id: "send" }) })
7339
+ /* @__PURE__ */ jsx45(Button, { size: "lg", block: true, highlight: true, onClick: onSend, children: /* @__PURE__ */ jsx45(FormattedMessage13, { id: "send" }) })
7332
7340
  ] }) });
7333
7341
  }
7334
7342
 
7335
7343
  // src/components/TokenSendList/index.tsx
7336
7344
  import { useState as useState34 } from "react";
7337
7345
  import { FormattedMessage as FormattedMessage14 } from "react-intl";
7338
- import { jsx as jsx47, jsxs as jsxs28 } from "react/jsx-runtime";
7346
+ import { jsx as jsx46, jsxs as jsxs28 } from "react/jsx-runtime";
7339
7347
  function TokenSendList({ close }) {
7340
7348
  const isDownMd = useDownMd();
7341
7349
  const walletAssets = useMatchWalletAssets();
@@ -7347,14 +7355,14 @@ function TokenSendList({ close }) {
7347
7355
  const modal = useModal();
7348
7356
  const onNext = () => {
7349
7357
  checked && modal.show((props) => {
7350
- return /* @__PURE__ */ jsx47(TokenSend, { onClose: () => {
7358
+ return /* @__PURE__ */ jsx46(TokenSend, { onClose: () => {
7351
7359
  props.close();
7352
7360
  close();
7353
7361
  }, onBack: props.close, zIndex: props.zIndex, token: checked });
7354
7362
  });
7355
7363
  };
7356
7364
  return /* @__PURE__ */ jsxs28("div", { className: "matchid-token-send-list-box", children: [
7357
- /* @__PURE__ */ jsx47("div", { className: "matchid-token-send-list", children: matchWalletAssetList.list.map((n, index) => {
7365
+ /* @__PURE__ */ jsx46("div", { className: "matchid-token-send-list", children: matchWalletAssetList.list.map((n, index) => {
7358
7366
  const chain = list?.find((m) => m.id.toString() === n.chain_id);
7359
7367
  return /* @__PURE__ */ jsxs28(
7360
7368
  "div",
@@ -7364,10 +7372,10 @@ function TokenSendList({ close }) {
7364
7372
  setChecked(n);
7365
7373
  },
7366
7374
  children: [
7367
- /* @__PURE__ */ jsx47(Radio, { checked: checked?.address == n.address, size: isDownMd ? 18 : 24 }),
7375
+ /* @__PURE__ */ jsx46(Radio, { checked: checked?.address == n.address, size: isDownMd ? 18 : 24 }),
7368
7376
  /* @__PURE__ */ jsxs28("div", { className: "matchid-token-send-content", children: [
7369
7377
  /* @__PURE__ */ jsxs28("div", { className: "matchid-token-send-logo", children: [
7370
- n.icon ? /* @__PURE__ */ jsx47("img", { src: n.icon, alt: n.symbol, className: `matchid-token-send-icon` }) : /* @__PURE__ */ jsx47(
7378
+ n.icon ? /* @__PURE__ */ jsx46("img", { src: n.icon, alt: n.symbol, className: `matchid-token-send-icon` }) : /* @__PURE__ */ jsx46(
7371
7379
  AlphaAvatar2,
7372
7380
  {
7373
7381
  className: `matchid-token-send-icon`,
@@ -7375,7 +7383,7 @@ function TokenSendList({ close }) {
7375
7383
  name: n.symbol || n.name || ""
7376
7384
  }
7377
7385
  ),
7378
- chain?.iconUrl && /* @__PURE__ */ jsx47(
7386
+ chain?.iconUrl && /* @__PURE__ */ jsx46(
7379
7387
  "img",
7380
7388
  {
7381
7389
  src: chain.iconUrl,
@@ -7385,8 +7393,8 @@ function TokenSendList({ close }) {
7385
7393
  )
7386
7394
  ] }),
7387
7395
  /* @__PURE__ */ jsxs28("div", { className: `matchid-token-send-info`, children: [
7388
- /* @__PURE__ */ jsx47("div", { className: `matchid-token-send-name`, children: n.symbol }),
7389
- /* @__PURE__ */ jsx47("div", { className: `matchid-token-send-balance`, children: /* @__PURE__ */ jsx47(NumberFormatter, { value: n.balance, tFixNum: 3 }) })
7396
+ /* @__PURE__ */ jsx46("div", { className: `matchid-token-send-name`, children: n.symbol }),
7397
+ /* @__PURE__ */ jsx46("div", { className: `matchid-token-send-balance`, children: /* @__PURE__ */ jsx46(NumberFormatter, { value: n.balance, tFixNum: 3 }) })
7390
7398
  ] })
7391
7399
  ] })
7392
7400
  ]
@@ -7394,7 +7402,7 @@ function TokenSendList({ close }) {
7394
7402
  index
7395
7403
  );
7396
7404
  }) }),
7397
- /* @__PURE__ */ jsx47(Button, { size: "lg", highlight: true, block: true, disabled: !checked, onClick: onNext, children: /* @__PURE__ */ jsx47(FormattedMessage14, { id: "next" }) })
7405
+ /* @__PURE__ */ jsx46(Button, { size: "lg", highlight: true, block: true, disabled: !checked, onClick: onNext, children: /* @__PURE__ */ jsx46(FormattedMessage14, { id: "next" }) })
7398
7406
  ] });
7399
7407
  }
7400
7408
 
@@ -7404,7 +7412,7 @@ import { useEffect as useEffect30, useMemo as useMemo18, useState as useState35
7404
7412
  import { decodeFunctionData, defineChain as defineChain5, formatUnits as formatUnits3 } from "viem";
7405
7413
  import { erc20Abi as erc20Abi4 } from "viem";
7406
7414
  import { FormattedMessage as FormattedMessage15 } from "react-intl";
7407
- import { jsx as jsx48, jsxs as jsxs29 } from "react/jsx-runtime";
7415
+ import { jsx as jsx47, jsxs as jsxs29 } from "react/jsx-runtime";
7408
7416
  var Item = ({ data }) => {
7409
7417
  const { address } = useWallet();
7410
7418
  const isOut = data.from.toLowerCase() == address.toLowerCase();
@@ -7499,10 +7507,10 @@ var Item = ({ data }) => {
7499
7507
  className: `matchid-transaction-item`,
7500
7508
  children: [
7501
7509
  /* @__PURE__ */ jsxs29("div", { className: `matchid-transacton-item-container`, children: [
7502
- /* @__PURE__ */ jsx48("div", { className: "matchid-transaction-item-icon", children: /* @__PURE__ */ jsx48(ArrowSendIcon, { className: !isOut ? "rotate-180" : "" }) }),
7510
+ /* @__PURE__ */ jsx47("div", { className: "matchid-transaction-item-icon", children: /* @__PURE__ */ jsx47(ArrowSendIcon, { className: !isOut ? "rotate-180" : "" }) }),
7503
7511
  /* @__PURE__ */ jsxs29("div", { className: `matchid-transaction-item-details`, children: [
7504
- /* @__PURE__ */ jsx48("div", { className: `matchid-transaction-item-address`, children: formatAddress(to, 6, 4) }),
7505
- /* @__PURE__ */ jsx48(
7512
+ /* @__PURE__ */ jsx47("div", { className: `matchid-transaction-item-address`, children: formatAddress(to, 6, 4) }),
7513
+ /* @__PURE__ */ jsx47(
7506
7514
  "div",
7507
7515
  {
7508
7516
  className: `matchid-transaction-item-timestamp`,
@@ -7512,10 +7520,10 @@ var Item = ({ data }) => {
7512
7520
  ] })
7513
7521
  ] }),
7514
7522
  /* @__PURE__ */ jsxs29("div", { className: `matchid-transaction-item-amount ${"matchid-transaction-item-" + status}`, children: [
7515
- /* @__PURE__ */ jsx48(NumberFormatter, { value: amount, tFixNum: 6, prefix: isOut ? "-" : "+", suffix: " " + symbol }),
7516
- status == "loading" && /* @__PURE__ */ jsx48(LoadingIcon_default, { color: "#000000", size: 16, rotate: true }),
7517
- status == "success" && /* @__PURE__ */ jsx48(CheckRoundIcon, { size: 16 }),
7518
- status == "error" && /* @__PURE__ */ jsx48(InfoRoundIcon, { size: 16 })
7523
+ /* @__PURE__ */ jsx47(NumberFormatter, { value: amount, tFixNum: 6, prefix: isOut ? "-" : "+", suffix: " " + symbol }),
7524
+ status == "loading" && /* @__PURE__ */ jsx47(LoadingIcon_default, { color: "#000000", size: 16, rotate: true }),
7525
+ status == "success" && /* @__PURE__ */ jsx47(CheckRoundIcon, { size: 16 }),
7526
+ status == "error" && /* @__PURE__ */ jsx47(InfoRoundIcon, { size: 16 })
7519
7527
  ] })
7520
7528
  ]
7521
7529
  }
@@ -7525,7 +7533,7 @@ function TransactionList({
7525
7533
  scrollableTarget
7526
7534
  }) {
7527
7535
  const { fetchMoreData, hasMore, items } = useMatchWalletRecords();
7528
- return /* @__PURE__ */ jsx48(
7536
+ return /* @__PURE__ */ jsx47(
7529
7537
  InfiniteScroll,
7530
7538
  {
7531
7539
  scrollableTarget,
@@ -7533,11 +7541,11 @@ function TransactionList({
7533
7541
  next: fetchMoreData,
7534
7542
  hasMore,
7535
7543
  loader: /* @__PURE__ */ jsxs29("div", { className: "matchid-list-nomore", children: [
7536
- /* @__PURE__ */ jsx48(LoadingIcon_default, { rotate: true, size: 16, color: "black" }),
7544
+ /* @__PURE__ */ jsx47(LoadingIcon_default, { rotate: true, size: 16, color: "black" }),
7537
7545
  "Loading..."
7538
7546
  ] }),
7539
- 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" }) }),
7540
- 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)) })
7547
+ 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" }) }),
7548
+ 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)) })
7541
7549
  }
7542
7550
  );
7543
7551
  }
@@ -7589,7 +7597,7 @@ export {
7589
7597
  Radio,
7590
7598
  Skeleton_default,
7591
7599
  Tabs,
7592
- Lottie,
7600
+ Lottie_default,
7593
7601
  ui_exports,
7594
7602
  ModalProvider,
7595
7603
  useModal,
@@ -7610,4 +7618,4 @@ export {
7610
7618
  MatchProvider,
7611
7619
  useMatch
7612
7620
  };
7613
- //# sourceMappingURL=chunk-2T4RY5BM.mjs.map
7621
+ //# sourceMappingURL=chunk-PAXASLBR.mjs.map