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

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 (67) hide show
  1. package/dist/api.d.mts +2 -2
  2. package/dist/api.d.ts +2 -2
  3. package/dist/api.js +96 -48
  4. package/dist/api.js.map +1 -1
  5. package/dist/api.mjs +3 -3
  6. package/dist/chains.d.mts +1 -1
  7. package/dist/chains.d.ts +1 -1
  8. package/dist/{chunk-KFB23MLQ.mjs → chunk-6RNCNC65.mjs} +353 -217
  9. package/dist/chunk-6RNCNC65.mjs.map +1 -0
  10. package/dist/{chunk-GD7URBBZ.mjs → chunk-7SUDHG7S.mjs} +41 -1
  11. package/dist/chunk-7SUDHG7S.mjs.map +1 -0
  12. package/dist/{chunk-NYE6DBEZ.mjs → chunk-EAZNOQRK.mjs} +2 -2
  13. package/dist/components.d.mts +3 -3
  14. package/dist/components.d.ts +3 -3
  15. package/dist/components.js +498 -368
  16. package/dist/components.js.map +1 -1
  17. package/dist/components.mjs +2 -2
  18. package/dist/hooks.d.mts +2 -3
  19. package/dist/hooks.d.ts +2 -3
  20. package/dist/hooks.js +228 -182
  21. package/dist/hooks.js.map +1 -1
  22. package/dist/hooks.mjs +2 -2
  23. package/dist/icon.d.mts +2 -2
  24. package/dist/icon.d.ts +2 -2
  25. package/dist/icon.js +40 -0
  26. package/dist/icon.js.map +1 -1
  27. package/dist/icon.mjs +5 -1
  28. package/dist/{index-CBcBTQyU.d.mts → index-84CqVi2I.d.mts} +1 -1
  29. package/dist/index-B70k4Jpk.d.ts +7138 -0
  30. package/dist/index-BJJ0Gb6v.d.mts +7138 -0
  31. package/dist/{index-DlaCsN95.d.ts → index-BNqdFiOo.d.ts} +1 -1
  32. package/dist/{index-xThRnNN3.d.mts → index-BctnHnJp.d.ts} +11 -3
  33. package/dist/{index-CjekOYJl.d.mts → index-BqI0PEIi.d.mts} +1 -1
  34. package/dist/{index-BcuSCgol.d.ts → index-C2hr7zlN.d.ts} +5 -3
  35. package/dist/{index-CD0dACxf.d.mts → index-CTHpnEoB.d.mts} +5 -3
  36. package/dist/{index-CER00guz.d.mts → index-Car1jFyN.d.mts} +1 -1
  37. package/dist/{index-B50DU_xT.d.mts → index-CboftuIp.d.mts} +2 -0
  38. package/dist/{index-B50DU_xT.d.ts → index-CboftuIp.d.ts} +2 -0
  39. package/dist/{index-o0WW1c5O.d.ts → index-CcVHENNv.d.ts} +1 -1
  40. package/dist/{index-DkIIQLbh.d.ts → index-Cqdz_5bE.d.ts} +2 -2
  41. package/dist/{index-DdN22cwf.d.ts → index-CvzpMw3N.d.ts} +1 -1
  42. package/dist/{index-DN-jrh8-.d.ts → index-DkijpM5Q.d.mts} +11 -3
  43. package/dist/{index-lh6qBAf_.d.mts → index-DxHhOW24.d.mts} +2 -2
  44. package/dist/index.css +209 -46
  45. package/dist/index.d.mts +166 -88
  46. package/dist/index.d.ts +166 -88
  47. package/dist/index.js +599 -427
  48. package/dist/index.js.map +1 -1
  49. package/dist/index.mjs +3 -3
  50. package/dist/{types-CheN9vHJ.d.mts → types-BrVeC0c8.d.mts} +1 -1
  51. package/dist/{types-CheN9vHJ.d.ts → types-BrVeC0c8.d.ts} +1 -1
  52. package/dist/types.d.mts +1 -1
  53. package/dist/types.d.ts +1 -1
  54. package/dist/ui.d.mts +3 -3
  55. package/dist/ui.d.ts +3 -3
  56. package/dist/ui.js +127 -110
  57. package/dist/ui.js.map +1 -1
  58. package/dist/ui.mjs +2 -2
  59. package/example/src/App.tsx +65 -60
  60. package/example/src/config/index.ts +8 -6
  61. package/example/src/pages/Wallet/index.tsx +88 -88
  62. package/package.json +2 -2
  63. package/dist/chunk-GD7URBBZ.mjs.map +0 -1
  64. package/dist/chunk-KFB23MLQ.mjs.map +0 -1
  65. package/dist/index-BlMLqmS2.d.mts +0 -3341
  66. package/dist/index-C1Nyy5zx.d.ts +0 -3341
  67. /package/dist/{chunk-NYE6DBEZ.mjs.map → chunk-EAZNOQRK.mjs.map} +0 -0
@@ -44,10 +44,12 @@ import {
44
44
  InfoLineIcon,
45
45
  InfoRoundIcon,
46
46
  InputLengthIcon,
47
+ KakaoIcon,
47
48
  LeatherIcon,
48
49
  LinkedinIcon,
49
50
  LoadingIcon_default,
50
51
  LoginIcon_default,
52
+ MatchIdIcon_default,
51
53
  OKXIcon,
52
54
  OpenEyeIcon,
53
55
  PhantomIcon,
@@ -66,7 +68,7 @@ import {
66
68
  XIcon,
67
69
  XverseIcon,
68
70
  YoutubeIcon
69
- } from "./chunk-GD7URBBZ.mjs";
71
+ } from "./chunk-7SUDHG7S.mjs";
70
72
  import {
71
73
  confirm_default,
72
74
  connecting_default,
@@ -399,9 +401,12 @@ function StepEmail(props) {
399
401
  value: emailVal
400
402
  }
401
403
  ) }),
402
- /* @__PURE__ */ jsx6(Button, { disabled: !canContinue, style: {
404
+ /* @__PURE__ */ jsxs4(Button, { disabled: !canContinue, style: {
403
405
  marginTop: "64px"
404
- }, onClick: onContinue, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ jsx6(FormattedMessage, { id: "continue" }) })
406
+ }, onClick: onContinue, size: "lg", block: true, highlight: true, children: [
407
+ "99999",
408
+ /* @__PURE__ */ jsx6(FormattedMessage, { id: "continue" })
409
+ ] })
405
410
  ] });
406
411
  }
407
412
 
@@ -1983,6 +1988,8 @@ import { useQuery as useQuery4 } from "@tanstack/react-query";
1983
1988
  var EMAIL_INTERVAL = 60;
1984
1989
  var EMAIL_CODE_LENGTH = 6;
1985
1990
  var NATIVE_TOKEN_ADDRESS = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
1991
+ var TERMS_OF_SERVICE_URL = "https://docs.google.com/document/d/1QbagOOBhi50niC2mn4pJAd9pyNlvm1MSwcKWuP9YB80/edit?usp=sharing";
1992
+ var PRIVACY_POLICY_URL = "https://docs.google.com/document/d/1YOUUOmNXbA7qy79YckxhPMLWBj_WDiUp6mkJPNq_XCk/edit?usp=sharing";
1986
1993
 
1987
1994
  // src/hooks/useMatchWallet.tsx
1988
1995
  import { erc20Abi as erc20Abi2, formatUnits as formatUnits2 } from "viem";
@@ -2997,6 +3004,12 @@ var useWalletModalStore = create5((set) => ({
2997
3004
  open: (type, methods = DEFAULT_WALLET_METHODS) => set({ isOpen: true, type, methods }),
2998
3005
  close: () => set({ isOpen: false })
2999
3006
  }));
3007
+ var useEmailModalStore = create5((set) => ({
3008
+ isOpen: false,
3009
+ type: "",
3010
+ open: (type) => set({ isOpen: true, type }),
3011
+ close: () => set({ isOpen: false })
3012
+ }));
3000
3013
 
3001
3014
  // src/components/CEXBindModal/index.tsx
3002
3015
  import { useEffect as useEffect16, useMemo as useMemo7, useState as useState16 } from "react";
@@ -3017,7 +3030,7 @@ function CEXBindModal({
3017
3030
  const [secret, setSecret] = useState16("");
3018
3031
  const [error, setError] = useState16("");
3019
3032
  const needPassphrase = useMemo7(() => {
3020
- return ["bitget", "okx"].includes(type.toLowerCase());
3033
+ return ["bitget", "okx", "kucoin"].includes(type.toLowerCase());
3021
3034
  }, [type]);
3022
3035
  useEffect16(() => {
3023
3036
  if (isOpen) {
@@ -3113,7 +3126,25 @@ function CEXBindModal({
3113
3126
 
3114
3127
  // src/context/BusinessProvider.tsx
3115
3128
  import { useQuery as useQuery7 } from "@tanstack/react-query";
3116
- import { Fragment as Fragment4, jsx as jsx25, jsxs as jsxs14 } from "react/jsx-runtime";
3129
+
3130
+ // src/components/BindEmailModal/index.tsx
3131
+ import { jsx as jsx25 } from "react/jsx-runtime";
3132
+ var BindEmailModal = ({ isOpen, onClose, onBack, onLogin }) => {
3133
+ return /* @__PURE__ */ jsx25(
3134
+ EmailModal,
3135
+ {
3136
+ type: "bind",
3137
+ isOpen,
3138
+ onClose,
3139
+ onBack,
3140
+ onLogin
3141
+ }
3142
+ );
3143
+ };
3144
+ var BindEmailModal_default = BindEmailModal;
3145
+
3146
+ // src/context/BusinessProvider.tsx
3147
+ import { Fragment as Fragment4, jsx as jsx26, jsxs as jsxs14 } from "react/jsx-runtime";
3117
3148
  function BusinessProvider({ children }) {
3118
3149
  const { overview, token } = useUserInfo();
3119
3150
  const { type: EVMType, isOpen: EVMIsOpen, close: EVMClose } = useEVMModalStore();
@@ -3121,6 +3152,7 @@ function BusinessProvider({ children }) {
3121
3152
  const { type: TRONType, isOpen: TRONIsOpen, close: TRONClose } = useTRONModalStore();
3122
3153
  const { type: BTCType, isOpen: BTCIsOpen, close: BTCClose } = useBTCModalStore();
3123
3154
  const { type: CEXType, isOpen: CEXIsOpen, close: CEXClose } = useCEXBindModalStore();
3155
+ const { type: EmailType, isOpen: EmailIsOpen, close: EmailClose } = useEmailModalStore();
3124
3156
  const WalletModalStore = useWalletModalStore();
3125
3157
  const { tgAppAuthCode, setTgAppAuthCode } = useStore_default();
3126
3158
  const { login } = useMatch();
@@ -3148,7 +3180,7 @@ function BusinessProvider({ children }) {
3148
3180
  refetchInterval: 1e3 * 5
3149
3181
  });
3150
3182
  return /* @__PURE__ */ jsxs14(Fragment4, { children: [
3151
- /* @__PURE__ */ jsx25(
3183
+ /* @__PURE__ */ jsx26(
3152
3184
  EVMModal,
3153
3185
  {
3154
3186
  isOpen: EVMIsOpen && (EVMType == "login" && !overview && !token || EVMType == "bind" && !!token && !!overview),
@@ -3158,7 +3190,7 @@ function BusinessProvider({ children }) {
3158
3190
  zIndex: 199
3159
3191
  }
3160
3192
  ),
3161
- /* @__PURE__ */ jsx25(
3193
+ /* @__PURE__ */ jsx26(
3162
3194
  TRONModal,
3163
3195
  {
3164
3196
  isOpen: TRONIsOpen && (TRONType == "login" && !overview && !token || TRONType == "bind" && !!token && !!overview),
@@ -3168,7 +3200,7 @@ function BusinessProvider({ children }) {
3168
3200
  zIndex: 199
3169
3201
  }
3170
3202
  ),
3171
- /* @__PURE__ */ jsx25(
3203
+ /* @__PURE__ */ jsx26(
3172
3204
  TONModal,
3173
3205
  {
3174
3206
  isOpen: TONIsOpen && (TONType == "login" && !overview && !token || TONType == "bind" && !!token && !!overview),
@@ -3178,7 +3210,7 @@ function BusinessProvider({ children }) {
3178
3210
  zIndex: 199
3179
3211
  }
3180
3212
  ),
3181
- /* @__PURE__ */ jsx25(
3213
+ /* @__PURE__ */ jsx26(
3182
3214
  BTCModal,
3183
3215
  {
3184
3216
  isOpen: BTCIsOpen && (BTCType == "login" && !overview && !token || BTCType == "bind" && !!token && !!overview),
@@ -3188,7 +3220,7 @@ function BusinessProvider({ children }) {
3188
3220
  zIndex: 199
3189
3221
  }
3190
3222
  ),
3191
- /* @__PURE__ */ jsx25(
3223
+ /* @__PURE__ */ jsx26(
3192
3224
  CEXBindModal,
3193
3225
  {
3194
3226
  isOpen: CEXIsOpen && (!!token && !!overview),
@@ -3197,7 +3229,7 @@ function BusinessProvider({ children }) {
3197
3229
  zIndex: 199
3198
3230
  }
3199
3231
  ),
3200
- /* @__PURE__ */ jsx25(
3232
+ /* @__PURE__ */ jsx26(
3201
3233
  WalletModal,
3202
3234
  {
3203
3235
  isOpen: WalletModalStore.isOpen && (WalletModalStore.type == "login" && !overview && !token || WalletModalStore.type == "bind" && !!token && !!overview),
@@ -3207,14 +3239,22 @@ function BusinessProvider({ children }) {
3207
3239
  zIndex: 150
3208
3240
  }
3209
3241
  ),
3242
+ /* @__PURE__ */ jsx26(
3243
+ BindEmailModal_default,
3244
+ {
3245
+ isOpen: EmailIsOpen && (EmailType == "bind" && !!token && !!overview),
3246
+ onClose: EmailClose,
3247
+ onLogin: EmailClose
3248
+ }
3249
+ ),
3210
3250
  children
3211
3251
  ] });
3212
3252
  }
3213
3253
 
3214
3254
  // src/context/index.tsx
3215
- import { jsx as jsx26 } from "react/jsx-runtime";
3255
+ import { jsx as jsx27 } from "react/jsx-runtime";
3216
3256
  var Providers = ({ children }) => {
3217
- return /* @__PURE__ */ jsx26(ToastProvider, { children: /* @__PURE__ */ jsx26(ModalProvider, { children: /* @__PURE__ */ jsx26(BusinessProvider, { children }) }) });
3257
+ return /* @__PURE__ */ jsx27(ToastProvider, { children: /* @__PURE__ */ jsx27(ModalProvider, { children: /* @__PURE__ */ jsx27(BusinessProvider, { children }) }) });
3218
3258
  };
3219
3259
  var context_default = Providers;
3220
3260
 
@@ -3687,7 +3727,9 @@ var en_default = {
3687
3727
  noRequests: "No Requests yet",
3688
3728
  noMore: "No more",
3689
3729
  Remove: "Remove",
3690
- removeSuccess: "Remove Successfully"
3730
+ removeSuccess: "Remove Successfully",
3731
+ loginAgreement: "By login, you agree to our <termsLink>Terms of Service</termsLink> and <privacyLink>Privacy Policy</privacyLink>",
3732
+ poweredBy: "Powered by"
3691
3733
  };
3692
3734
 
3693
3735
  // src/i18n/zh.json
@@ -3775,7 +3817,9 @@ var zh_default = {
3775
3817
  noRequests: "\u6682\u65E0\u8BF7\u6C42",
3776
3818
  noMore: "\u6CA1\u6709\u66F4\u591A",
3777
3819
  Remove: "\u79FB\u9664",
3778
- removeSuccess: "\u79FB\u9664\u6210\u529F"
3820
+ removeSuccess: "\u79FB\u9664\u6210\u529F",
3821
+ loginAgreement: "\u767B\u5F55\u5373\u8868\u793A\u60A8\u540C\u610F\u6211\u4EEC\u7684<termsLink>\u670D\u52A1\u6761\u6B3E</termsLink>\u548C<privacyLink>\u9690\u79C1\u653F\u7B56</privacyLink>",
3822
+ poweredBy: "\u7531"
3779
3823
  };
3780
3824
 
3781
3825
  // src/i18n/tw.json
@@ -3863,7 +3907,9 @@ var tw_default = {
3863
3907
  noRequests: "\u66AB\u7121\u8ACB\u6C42",
3864
3908
  noMore: "\u6C92\u6709\u66F4\u591A",
3865
3909
  Remove: "\u79FB\u9664",
3866
- removeSuccess: "\u79FB\u9664\u6210\u529F"
3910
+ removeSuccess: "\u79FB\u9664\u6210\u529F",
3911
+ loginAgreement: "\u767B\u5165\u5373\u8868\u793A\u60A8\u540C\u610F\u6211\u5011\u7684<termsLink>\u670D\u52D9\u689D\u6B3E</termsLink>\u548C<privacyLink>\u96B1\u79C1\u6B0A\u653F\u7B56</privacyLink>",
3912
+ poweredBy: "\u7531"
3867
3913
  };
3868
3914
 
3869
3915
  // src/i18n/fr.json
@@ -3951,7 +3997,9 @@ var fr_default = {
3951
3997
  noRequests: "Pas encore de demandes",
3952
3998
  noMore: "Plus rien",
3953
3999
  Remove: "Supprimer",
3954
- removeSuccess: "Suppression r\xE9ussie"
4000
+ removeSuccess: "Suppression r\xE9ussie",
4001
+ loginAgreement: "En vous connectant, vous acceptez nos <termsLink>Conditions G\xE9n\xE9rales d'Utilisation</termsLink> et notre <privacyLink>Politique de Confidentialit\xE9</privacyLink>",
4002
+ poweredBy: "Par"
3955
4003
  };
3956
4004
 
3957
4005
  // src/i18n/ja.json
@@ -4039,7 +4087,9 @@ var ja_default = {
4039
4087
  noRequests: "\u307E\u3060\u30EA\u30AF\u30A8\u30B9\u30C8\u304C\u3042\u308A\u307E\u305B\u3093",
4040
4088
  noMore: "\u3053\u308C\u4EE5\u4E0A\u3042\u308A\u307E\u305B\u3093",
4041
4089
  Remove: "\u524A\u9664",
4042
- removeSuccess: "\u524A\u9664\u306B\u6210\u529F\u3057\u307E\u3057\u305F"
4090
+ removeSuccess: "\u524A\u9664\u306B\u6210\u529F\u3057\u307E\u3057\u305F",
4091
+ loginAgreement: "\u30ED\u30B0\u30A4\u30F3\u3059\u308B\u3053\u3068\u306B\u3088\u308A\u3001\u5F53\u793E\u306E<termsLink>\u5229\u7528\u898F\u7D04</termsLink>\u304A\u3088\u3073<privacyLink>\u30D7\u30E9\u30A4\u30D0\u30B7\u30FC\u30DD\u30EA\u30B7\u30FC</termsLink>\u306B\u540C\u610F\u3057\u305F\u3082\u306E\u3068\u307F\u306A\u3055\u308C\u307E\u3059",
4092
+ poweredBy: "\u88FD\u9020\u5143"
4043
4093
  };
4044
4094
 
4045
4095
  // src/i18n/ko.json
@@ -4127,7 +4177,9 @@ var ko_default = {
4127
4177
  noRequests: "\uC544\uC9C1 \uC694\uCCAD\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",
4128
4178
  noMore: "\uB354 \uC774\uC0C1 \uC5C6\uC74C",
4129
4179
  Remove: "\uC0AD\uC81C",
4130
- removeSuccess: "\uC0AD\uC81C \uC131\uACF5"
4180
+ removeSuccess: "\uC0AD\uC81C \uC131\uACF5",
4181
+ loginAgreement: "\uB85C\uADF8\uC778\uD568\uC73C\uB85C\uC368 \uB2F9\uC0AC\uC758 <termsLink>\uC11C\uBE44\uC2A4 \uC57D\uAD00</termsLink> \uBC0F <privacyLink>\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68</privacyLink>\uC5D0 \uB3D9\uC758\uD558\uB294 \uAC83\uC73C\uB85C \uAC04\uC8FC\uB429\uB2C8\uB2E4",
4182
+ poweredBy: "\uC81C\uC791"
4131
4183
  };
4132
4184
 
4133
4185
  // src/i18n/vi.json
@@ -4215,7 +4267,9 @@ var vi_default = {
4215
4267
  noRequests: "Ch\u01B0a c\xF3 y\xEAu c\u1EA7u n\xE0o",
4216
4268
  noMore: "Kh\xF4ng c\xF2n n\u1EEFa",
4217
4269
  Remove: "X\xF3a",
4218
- removeSuccess: "X\xF3a th\xE0nh c\xF4ng"
4270
+ removeSuccess: "X\xF3a th\xE0nh c\xF4ng",
4271
+ loginAgreement: "B\u1EB1ng c\xE1ch \u0111\u0103ng nh\u1EADp, b\u1EA1n \u0111\u1ED3ng \xFD v\u1EDBi <termsLink>\u0110i\u1EC1u kho\u1EA3n d\u1ECBch v\u1EE5</termsLink> v\xE0 <privacyLink>Ch\xEDnh s\xE1ch quy\u1EC1n ri\xEAng t\u01B0</privacyLink> c\u1EE7a ch\xFAng t\xF4i",
4272
+ poweredBy: "B\u1EDFi"
4219
4273
  };
4220
4274
 
4221
4275
  // src/i18n/es.json
@@ -4303,7 +4357,9 @@ var es_default = {
4303
4357
  noRequests: "A\xFAn no hay solicitudes",
4304
4358
  noMore: "No hay m\xE1s",
4305
4359
  Remove: "Eliminar",
4306
- removeSuccess: "Eliminado con \xE9xito"
4360
+ removeSuccess: "Eliminado con \xE9xito",
4361
+ loginAgreement: "Al iniciar sesi\xF3n, aceptas nuestros <termsLink>T\xE9rminos de servicio</termsLink> y nuestra <privacyLink>Pol\xEDtica de privacidad</privacyLink>",
4362
+ poweredBy: "Por"
4307
4363
  };
4308
4364
 
4309
4365
  // src/i18n/pt.json
@@ -4391,7 +4447,9 @@ var pt_default = {
4391
4447
  noRequests: "Ainda sem solicita\xE7\xF5es",
4392
4448
  noMore: "N\xE3o h\xE1 mais",
4393
4449
  Remove: "Remover",
4394
- removeSuccess: "Removido com sucesso"
4450
+ removeSuccess: "Removido com sucesso",
4451
+ loginAgreement: "Ao fazer login, voc\xEA concorda com nossos <termsLink>Termos de Servi\xE7o</termsLink> e nossa <privacyLink>Pol\xEDtica de Privacidade</privacyLink>",
4452
+ poweredBy: "Por"
4395
4453
  };
4396
4454
 
4397
4455
  // src/i18n/index.ts
@@ -4418,7 +4476,7 @@ import {
4418
4476
  } from "@rainbow-me/rainbowkit/wallets";
4419
4477
  import { arbitrum, base, bsc, mainnet, optimism, polygon } from "wagmi/chains";
4420
4478
  import { WagmiProvider } from "wagmi";
4421
- import { jsx as jsx27 } from "react/jsx-runtime";
4479
+ import { jsx as jsx28 } from "react/jsx-runtime";
4422
4480
  var queryClient = new QueryClient();
4423
4481
  var wagmiConfig = getDefaultConfig({
4424
4482
  appName: "MatchID",
@@ -4457,7 +4515,7 @@ var MatchProvider = ({
4457
4515
  useWalletInit({
4458
4516
  config: wallet
4459
4517
  });
4460
- return /* @__PURE__ */ jsx27(IntlProvider, { locale: realLocale, messages: messages[realLocale], children: /* @__PURE__ */ jsx27(WagmiProvider, { config: wagmiConfig, children: /* @__PURE__ */ jsx27(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx27(
4518
+ return /* @__PURE__ */ jsx28(IntlProvider, { locale: realLocale, messages: messages[realLocale], children: /* @__PURE__ */ jsx28(WagmiProvider, { config: wagmiConfig, children: /* @__PURE__ */ jsx28(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx28(
4461
4519
  MatchContext.Provider,
4462
4520
  {
4463
4521
  value: {
@@ -4468,7 +4526,7 @@ var MatchProvider = ({
4468
4526
  theme,
4469
4527
  locale: realLocale
4470
4528
  },
4471
- children: /* @__PURE__ */ jsx27(context_default, { children })
4529
+ children: /* @__PURE__ */ jsx28(context_default, { children })
4472
4530
  }
4473
4531
  ) }) }) });
4474
4532
  };
@@ -4504,6 +4562,7 @@ function useUserInfo() {
4504
4562
  const { open: BTCOpen } = useBTCModalStore();
4505
4563
  const { open: CEXBindOpen } = useCEXBindModalStore();
4506
4564
  const walletModalStore = useWalletModalStore();
4565
+ const emailModalStore = useEmailModalStore();
4507
4566
  const getRedirectUri = () => {
4508
4567
  return encodeURIComponent(window.location.href);
4509
4568
  };
@@ -4597,6 +4656,7 @@ function useUserInfo() {
4597
4656
  case "github":
4598
4657
  case "linkedin":
4599
4658
  case "facebook":
4659
+ case "kakao":
4600
4660
  return await loginByMethod(method);
4601
4661
  default:
4602
4662
  throw new Error("unsupported method");
@@ -4681,6 +4741,8 @@ function useUserInfo() {
4681
4741
  return TONOpen("bind");
4682
4742
  case "btc":
4683
4743
  return BTCOpen("bind");
4744
+ case "email":
4745
+ return emailModalStore.open("bind");
4684
4746
  case "telegram":
4685
4747
  return await bindTelegram();
4686
4748
  case "twitter":
@@ -4690,6 +4752,7 @@ function useUserInfo() {
4690
4752
  case "linkedin":
4691
4753
  case "facebook":
4692
4754
  case "youtube":
4755
+ case "kakao":
4693
4756
  const link = `${endpoints.back}api/v1/auth/${method == "youtube" ? "google" : method}?appid=${appid}&provider=${method == "youtube" ? "google" : method}&redirect=${encodeURIComponent(endpoints.auth + "bind/" + method)}&authorization=${token.includes("Bearer ") ? token.split(" ")[1] : token}${method == "youtube" ? "&auth_type=youtube" : ""}`;
4694
4757
  matchlog_default.log("link", link);
4695
4758
  return window.open(
@@ -4704,6 +4767,31 @@ function useUserInfo() {
4704
4767
  const bindCex = (type) => {
4705
4768
  return CEXBindOpen(type);
4706
4769
  };
4770
+ const bindByEmail = async ({ email, code }) => {
4771
+ try {
4772
+ const obj = {
4773
+ email,
4774
+ verification_key: emailLoginKey,
4775
+ verification_code: code
4776
+ };
4777
+ const res = await verifyEmailCodeApi(obj);
4778
+ if (res && res.data && isSuccess(res)) {
4779
+ events && events.onBind && events.onBind({
4780
+ type: "email"
4781
+ });
4782
+ eventManager_default.emit("onBind", {
4783
+ type: "email"
4784
+ });
4785
+ return true;
4786
+ } else {
4787
+ throw new Error(res.message);
4788
+ }
4789
+ } catch (error) {
4790
+ console.error("bindByEmail", error);
4791
+ throw error;
4792
+ }
4793
+ return false;
4794
+ };
4707
4795
  const getAuthInfo = async (method) => {
4708
4796
  const element_id = "auth_iframe";
4709
4797
  if (document.getElementById(element_id)) {
@@ -4772,6 +4860,7 @@ function useUserInfo() {
4772
4860
  auth,
4773
4861
  login: loginMethod,
4774
4862
  bind,
4863
+ bindByEmail,
4775
4864
  getAuthInfo,
4776
4865
  invite
4777
4866
  };
@@ -4780,10 +4869,10 @@ function useUserInfo() {
4780
4869
  // src/components/EmailModal/StepVerify.tsx
4781
4870
  import { useEffect as useEffect20, useMemo as useMemo9, useRef as useRef6, useState as useState18 } from "react";
4782
4871
  import { FormattedMessage as FormattedMessage6, useIntl as useIntl7 } from "react-intl";
4783
- import { jsx as jsx28, jsxs as jsxs15 } from "react/jsx-runtime";
4872
+ import { jsx as jsx29, jsxs as jsxs15 } from "react/jsx-runtime";
4784
4873
  function StepVerify(props) {
4785
4874
  const intl = useIntl7();
4786
- const { getLoginEmailCode, loginByEmail } = useUserInfo();
4875
+ const { getLoginEmailCode, loginByEmail, bindByEmail } = useUserInfo();
4787
4876
  const [error, setError] = useState18("");
4788
4877
  const [code, setCode] = useState18("");
4789
4878
  const [sending, setSending] = useState18(false);
@@ -4843,7 +4932,10 @@ function StepVerify(props) {
4843
4932
  try {
4844
4933
  setError("");
4845
4934
  setSubmitting(true);
4846
- const res = await loginByEmail({
4935
+ const res = props.type === "bind" ? await bindByEmail({
4936
+ email: props.email,
4937
+ code
4938
+ }) : await loginByEmail({
4847
4939
  email: props.email,
4848
4940
  code
4849
4941
  });
@@ -4859,15 +4951,15 @@ function StepVerify(props) {
4859
4951
  };
4860
4952
  return /* @__PURE__ */ jsxs15("div", { className: "matchid-email-verify-box", children: [
4861
4953
  /* @__PURE__ */ jsxs15("div", { className: "matchid-email-verify-header", children: [
4862
- /* @__PURE__ */ jsx28("div", { className: "matchid-email-verify-header-icon", children: /* @__PURE__ */ jsx28(EmailLineIcon, { size: isDownMd ? 19 : 24 }) }),
4954
+ /* @__PURE__ */ jsx29("div", { className: "matchid-email-verify-header-icon", children: /* @__PURE__ */ jsx29(EmailLineIcon, { size: isDownMd ? 19 : 24 }) }),
4863
4955
  /* @__PURE__ */ jsxs15("div", { className: "matchid-email-verify-header-content", children: [
4864
- /* @__PURE__ */ jsx28("div", { className: "matchid-email-verify-header-value", children: props.email }),
4865
- /* @__PURE__ */ jsx28("div", { className: "matchid-email-verify-header-tips", children: /* @__PURE__ */ jsx28(FormattedMessage6, { id: "sendEmailTips" }) })
4956
+ /* @__PURE__ */ jsx29("div", { className: "matchid-email-verify-header-value", children: props.email }),
4957
+ /* @__PURE__ */ jsx29("div", { className: "matchid-email-verify-header-tips", children: /* @__PURE__ */ jsx29(FormattedMessage6, { id: "sendEmailTips" }) })
4866
4958
  ] })
4867
4959
  ] }),
4868
- /* @__PURE__ */ jsx28(Field, { label: intl.formatMessage({
4960
+ /* @__PURE__ */ jsx29(Field, { label: intl.formatMessage({
4869
4961
  id: "verificationCode"
4870
- }), error, children: /* @__PURE__ */ jsx28(
4962
+ }), error, children: /* @__PURE__ */ jsx29(
4871
4963
  Input,
4872
4964
  {
4873
4965
  placeholder: intl.formatMessage({
@@ -4877,7 +4969,7 @@ function StepVerify(props) {
4877
4969
  maxLength: codeLength,
4878
4970
  onChange: (e) => setCode(e.target.value),
4879
4971
  value: code,
4880
- after: /* @__PURE__ */ jsx28(
4972
+ after: /* @__PURE__ */ jsx29(
4881
4973
  Button,
4882
4974
  {
4883
4975
  highlight: true,
@@ -4896,19 +4988,20 @@ function StepVerify(props) {
4896
4988
  )
4897
4989
  }
4898
4990
  ) }),
4899
- /* @__PURE__ */ jsx28(Button, { disabled: !canContinue, loading: submitting, highlight: true, block: true, size: "lg", onClick: onContinue, children: /* @__PURE__ */ jsx28(FormattedMessage6, { id: "continue" }) })
4991
+ /* @__PURE__ */ jsx29(Button, { disabled: !canContinue, loading: submitting, highlight: true, block: true, size: "lg", onClick: onContinue, children: /* @__PURE__ */ jsx29(FormattedMessage6, { id: "continue" }) })
4900
4992
  ] });
4901
4993
  }
4902
4994
 
4903
4995
  // src/components/EmailModal/index.tsx
4904
4996
  import { useIntl as useIntl8 } from "react-intl";
4905
- import { jsx as jsx29 } from "react/jsx-runtime";
4997
+ import { jsx as jsx30 } from "react/jsx-runtime";
4906
4998
  function EmailModal({
4907
4999
  isOpen = false,
4908
5000
  width = 480,
4909
5001
  onClose,
4910
5002
  onBack,
4911
- onLogin
5003
+ onLogin,
5004
+ type = "login"
4912
5005
  }) {
4913
5006
  const [step, setStep] = useState19("input");
4914
5007
  const [emailVal, setEmailVal] = useState19("");
@@ -4919,7 +5012,7 @@ function EmailModal({
4919
5012
  setEmailVal("");
4920
5013
  }
4921
5014
  }, [isOpen]);
4922
- return /* @__PURE__ */ jsx29(
5015
+ return /* @__PURE__ */ jsx30(
4923
5016
  ModalWithHeader,
4924
5017
  {
4925
5018
  isOpen,
@@ -4929,10 +5022,10 @@ function EmailModal({
4929
5022
  id: "email"
4930
5023
  }),
4931
5024
  onBack: step == "verify" ? () => setStep("input") : onBack,
4932
- children: step === "input" ? /* @__PURE__ */ jsx29(StepEmail, { email: emailVal, onContinue: (email) => {
5025
+ children: step === "input" ? /* @__PURE__ */ jsx30(StepEmail, { email: emailVal, onContinue: (email) => {
4933
5026
  setEmailVal(email);
4934
5027
  setStep("verify");
4935
- } }) : /* @__PURE__ */ jsx29(StepVerify, { email: emailVal, onSuccess: onLogin })
5028
+ } }) : /* @__PURE__ */ jsx30(StepVerify, { type, email: emailVal, onSuccess: onLogin })
4936
5029
  }
4937
5030
  );
4938
5031
  }
@@ -4962,7 +5055,7 @@ function useAppConfig() {
4962
5055
  }
4963
5056
 
4964
5057
  // src/components/LoginBox/index.tsx
4965
- import { Fragment as Fragment5, jsx as jsx30, jsxs as jsxs16 } from "react/jsx-runtime";
5058
+ import { Fragment as Fragment5, jsx as jsx31, jsxs as jsxs16 } from "react/jsx-runtime";
4966
5059
  var RecommendItem = ({
4967
5060
  icon,
4968
5061
  name,
@@ -4974,17 +5067,17 @@ var RecommendItem = ({
4974
5067
  return /* @__PURE__ */ jsxs16("div", { className: "matchid-login-recommend-method", children: [
4975
5068
  /* @__PURE__ */ jsxs16("div", { className: "matchid-login-recommend-method-item", onClick, children: [
4976
5069
  /* @__PURE__ */ jsxs16("div", { className: "matchid-login-recommend-method-content", children: [
4977
- /* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-method-icon", children: icon }),
4978
- /* @__PURE__ */ jsx30("span", { className: "matchid-login-recommend-method-name", children: name })
5070
+ /* @__PURE__ */ jsx31("div", { className: "matchid-login-recommend-method-icon", children: icon }),
5071
+ /* @__PURE__ */ jsx31("span", { className: "matchid-login-recommend-method-name", children: name })
4979
5072
  ] }),
4980
- footer ? footer : children ? /* @__PURE__ */ jsx30(
5073
+ footer ? footer : children ? /* @__PURE__ */ jsx31(
4981
5074
  ArrowDownIcon,
4982
5075
  {
4983
5076
  className: `matchid-login-recommend-method-arrow ${showChildren ? "matchid-login-recommend-method-arrow-active" : ""}`,
4984
5077
  size: 20,
4985
5078
  color: "var(--matchid-arrow-color)"
4986
5079
  }
4987
- ) : /* @__PURE__ */ jsx30(
5080
+ ) : /* @__PURE__ */ jsx31(
4988
5081
  ArrowRightIcon,
4989
5082
  {
4990
5083
  className: "matchid-login-recommend-method-arrow",
@@ -4993,7 +5086,7 @@ var RecommendItem = ({
4993
5086
  }
4994
5087
  )
4995
5088
  ] }),
4996
- children && /* @__PURE__ */ jsx30(
5089
+ children && /* @__PURE__ */ jsx31(
4997
5090
  "div",
4998
5091
  {
4999
5092
  className: `matchid-login-recommend-method-popover ${showChildren ? "matchid-login-recommend-method-popover-active" : ""}`,
@@ -5058,64 +5151,69 @@ function LoginBox({
5058
5151
  const isDownMd = useDownMd();
5059
5152
  const methodMap = {
5060
5153
  wallet: {
5061
- icon: /* @__PURE__ */ jsx30(WalletIcon, { size: isDownMd ? 36 : 40 }),
5154
+ icon: /* @__PURE__ */ jsx31(WalletIcon, { size: isDownMd ? 36 : 40 }),
5062
5155
  name: intl.formatMessage({ id: "wallet" }),
5063
5156
  onClick: () => setShowWallet(!showWallet),
5064
5157
  type: "wallet"
5065
5158
  },
5066
5159
  email: {
5067
- icon: /* @__PURE__ */ jsx30(EmailIcon, { size: isDownMd ? 36 : 40 }),
5160
+ icon: /* @__PURE__ */ jsx31(EmailIcon, { size: isDownMd ? 36 : 40 }),
5068
5161
  name: intl.formatMessage({ id: "email" }),
5069
5162
  onClick: () => {
5070
5163
  setEmailOpen(true);
5071
5164
  }
5072
5165
  },
5073
5166
  google: {
5074
- icon: /* @__PURE__ */ jsx30(GoogleIcon, { size: isDownMd ? 36 : 40 }),
5167
+ icon: /* @__PURE__ */ jsx31(GoogleIcon, { size: isDownMd ? 36 : 40 }),
5075
5168
  name: "Google",
5076
5169
  onClick: () => login("google")
5077
5170
  },
5078
5171
  twitter: {
5079
- icon: /* @__PURE__ */ jsx30(XIcon, { size: isDownMd ? 36 : 40 }),
5172
+ icon: /* @__PURE__ */ jsx31(XIcon, { size: isDownMd ? 36 : 40 }),
5080
5173
  name: "X",
5081
5174
  onClick: () => login("twitter")
5082
5175
  },
5083
5176
  telegram: {
5084
- icon: /* @__PURE__ */ jsx30(TelegramIcon, { size: isDownMd ? 36 : 40 }),
5177
+ icon: /* @__PURE__ */ jsx31(TelegramIcon, { size: isDownMd ? 36 : 40 }),
5085
5178
  name: "Telegram",
5086
5179
  onClick: () => login("telegram")
5087
5180
  },
5088
5181
  github: {
5089
- icon: /* @__PURE__ */ jsx30(GithubIcon, { size: isDownMd ? 36 : 40 }),
5182
+ icon: /* @__PURE__ */ jsx31(GithubIcon, { size: isDownMd ? 36 : 40 }),
5090
5183
  name: "Github",
5091
5184
  onClick: () => login("github")
5092
5185
  },
5093
5186
  discord: {
5094
- icon: /* @__PURE__ */ jsx30(DiscordIcon, { size: isDownMd ? 36 : 40 }),
5187
+ icon: /* @__PURE__ */ jsx31(DiscordIcon, { size: isDownMd ? 36 : 40 }),
5095
5188
  name: "Discord",
5096
5189
  onClick: () => login("discord")
5097
5190
  },
5098
5191
  linkedin: {
5099
- icon: /* @__PURE__ */ jsx30(LinkedinIcon, { size: isDownMd ? 36 : 40 }),
5192
+ icon: /* @__PURE__ */ jsx31(LinkedinIcon, { size: isDownMd ? 36 : 40 }),
5100
5193
  name: "LinkedIn",
5101
5194
  onClick: () => login("linkedin")
5102
5195
  },
5103
5196
  facebook: {
5104
- icon: /* @__PURE__ */ jsx30(FacebookIcon, { size: isDownMd ? 36 : 40 }),
5197
+ icon: /* @__PURE__ */ jsx31(FacebookIcon, { size: isDownMd ? 36 : 40 }),
5105
5198
  name: "Facebook",
5106
5199
  onClick: () => login("facebook")
5107
5200
  },
5108
5201
  youtube: {
5109
- icon: /* @__PURE__ */ jsx30(YoutubeIcon, { size: isDownMd ? 36 : 40 }),
5202
+ icon: /* @__PURE__ */ jsx31(YoutubeIcon, { size: isDownMd ? 36 : 40 }),
5110
5203
  name: "Youtube",
5111
5204
  onClick: () => login("youtube")
5205
+ },
5206
+ kakao: {
5207
+ icon: /* @__PURE__ */ jsx31(KakaoIcon, { size: isDownMd ? 36 : 40 }),
5208
+ name: "Kakao",
5209
+ onClick: () => login("kakao")
5112
5210
  }
5113
5211
  };
5114
5212
  const { walletMap } = useWalletConfig();
5115
5213
  return /* @__PURE__ */ jsxs16(Fragment5, { children: [
5116
5214
  (!inModal || !emailOpen) && /* @__PURE__ */ jsxs16("div", { className: "matchid-login-box", children: [
5117
- /* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-list", children: methodConfig.recommendMethods.map((m) => {
5118
- return /* @__PURE__ */ jsx30(
5215
+ /* @__PURE__ */ jsx31("div", { className: "matchid-login-recommend-list", children: methodConfig.recommendMethods.map((m) => {
5216
+ return /* @__PURE__ */ jsx31(
5119
5217
  RecommendItem,
5120
5218
  {
5121
5219
  icon: methodMap[m]?.icon,
@@ -5123,8 +5221,8 @@ function LoginBox({
5123
5221
  onClick: methodMap[m]?.onClick,
5124
5222
  showChildren: m == "wallet" && showWallet,
5125
5223
  children: m == "wallet" && /* @__PURE__ */ jsxs16(Fragment5, { children: [
5126
- /* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-wallet-divider" }),
5127
- /* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-wallet-list", children: methodConfig.walletMethods.map((n) => {
5224
+ /* @__PURE__ */ jsx31("div", { className: "matchid-login-recommend-wallet-divider" }),
5225
+ /* @__PURE__ */ jsx31("div", { className: "matchid-login-recommend-wallet-list", children: methodConfig.walletMethods.map((n) => {
5128
5226
  const m2 = walletMap[n];
5129
5227
  return /* @__PURE__ */ jsxs16(
5130
5228
  "div",
@@ -5135,15 +5233,15 @@ function LoginBox({
5135
5233
  },
5136
5234
  children: [
5137
5235
  /* @__PURE__ */ jsxs16("div", { className: "matchid-login-recommend-wallet-item-content", children: [
5138
- /* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-wallet-item-icon", children: m2.icon }),
5139
- /* @__PURE__ */ jsx30(
5236
+ /* @__PURE__ */ jsx31("div", { className: "matchid-login-recommend-wallet-item-icon", children: m2.icon }),
5237
+ /* @__PURE__ */ jsx31(
5140
5238
  "div",
5141
5239
  {
5142
5240
  className: "matchid-login-recommend-wallet-item-hover-icon",
5143
5241
  children: m2.activeIcon
5144
5242
  }
5145
5243
  ),
5146
- /* @__PURE__ */ jsx30(
5244
+ /* @__PURE__ */ jsx31(
5147
5245
  "span",
5148
5246
  {
5149
5247
  className: "matchid-login-recommend-wallet-item-name",
@@ -5151,7 +5249,7 @@ function LoginBox({
5151
5249
  }
5152
5250
  )
5153
5251
  ] }),
5154
- /* @__PURE__ */ jsx30(
5252
+ /* @__PURE__ */ jsx31(
5155
5253
  ArrowRightIcon,
5156
5254
  {
5157
5255
  className: "matchid-login-recommend-wallet-item-arrow",
@@ -5169,10 +5267,48 @@ function LoginBox({
5169
5267
  m
5170
5268
  );
5171
5269
  }) }),
5270
+ /* @__PURE__ */ jsxs16("div", { className: "matchid-privacy-policy", children: [
5271
+ /* @__PURE__ */ jsx31("div", { className: "matchid-privacy-policy-content", children: /* @__PURE__ */ jsx31(
5272
+ FormattedMessage7,
5273
+ {
5274
+ id: "loginAgreement",
5275
+ values: {
5276
+ termsLink: (chunks) => /* @__PURE__ */ jsx31(
5277
+ "a",
5278
+ {
5279
+ href: TERMS_OF_SERVICE_URL,
5280
+ target: "_blank",
5281
+ rel: "noopener noreferrer",
5282
+ className: "matchid-privacy-policy-content-link",
5283
+ children: chunks
5284
+ }
5285
+ ),
5286
+ privacyLink: (chunks) => /* @__PURE__ */ jsx31(
5287
+ "a",
5288
+ {
5289
+ href: PRIVACY_POLICY_URL,
5290
+ target: "_blank",
5291
+ rel: "noopener noreferrer",
5292
+ className: "matchid-privacy-policy-content-link",
5293
+ children: chunks
5294
+ }
5295
+ )
5296
+ }
5297
+ }
5298
+ ) }),
5299
+ /* @__PURE__ */ jsxs16("div", { className: "matchid-privacy-policy-powered-by", children: [
5300
+ /* @__PURE__ */ jsx31(FormattedMessage7, { id: "poweredBy" }),
5301
+ /* @__PURE__ */ jsx31(MatchIdIcon_default, {})
5302
+ ] })
5303
+ ] }),
5172
5304
  methodConfig.methods.length > 0 && /* @__PURE__ */ jsxs16("div", { className: "matchid-login-other", children: [
5173
- /* @__PURE__ */ jsx30("div", { className: "matchid-login-other-text", children: /* @__PURE__ */ jsx30(FormattedMessage7, { id: "otherLoginMethods" }) }),
5174
- /* @__PURE__ */ jsx30("div", { className: "matchid-login-method-box", children: methodConfig.methods.map((m) => {
5175
- return /* @__PURE__ */ jsx30(
5305
+ /* @__PURE__ */ jsxs16("div", { className: "matchid-login-other-line-box", children: [
5306
+ /* @__PURE__ */ jsx31("div", { className: "matchid-login-other-line" }),
5307
+ /* @__PURE__ */ jsx31("div", { className: "matchid-login-other-text", children: /* @__PURE__ */ jsx31(FormattedMessage7, { id: "otherLoginMethods" }) }),
5308
+ /* @__PURE__ */ jsx31("div", { className: "matchid-login-other-line" })
5309
+ ] }),
5310
+ /* @__PURE__ */ jsx31("div", { className: "matchid-login-method-box", children: methodConfig.methods.map((m) => {
5311
+ return /* @__PURE__ */ jsx31(
5176
5312
  "div",
5177
5313
  {
5178
5314
  className: "matchid-login-method-item",
@@ -5185,7 +5321,7 @@ function LoginBox({
5185
5321
  }) })
5186
5322
  ] })
5187
5323
  ] }),
5188
- /* @__PURE__ */ jsx30(
5324
+ /* @__PURE__ */ jsx31(
5189
5325
  EmailModal,
5190
5326
  {
5191
5327
  isOpen: emailOpen,
@@ -5205,7 +5341,7 @@ import { useState as useState22 } from "react";
5205
5341
 
5206
5342
  // src/components/LoginPanel/index.tsx
5207
5343
  import { FormattedMessage as FormattedMessage8 } from "react-intl";
5208
- import { jsx as jsx31, jsxs as jsxs17 } from "react/jsx-runtime";
5344
+ import { jsx as jsx32, jsxs as jsxs17 } from "react/jsx-runtime";
5209
5345
  function LoginPanel({
5210
5346
  header,
5211
5347
  onClose,
@@ -5215,30 +5351,30 @@ function LoginPanel({
5215
5351
  return /* @__PURE__ */ jsxs17("div", { className: "matchid-login-panel", children: [
5216
5352
  header ? header : /* @__PURE__ */ jsxs17("div", { className: "matchid-login-panel-header", children: [
5217
5353
  /* @__PURE__ */ jsxs17("div", { className: "matchid-login-panel-header-content", children: [
5218
- /* @__PURE__ */ jsx31("div", { className: "matchid-login-panel-header-title", children: /* @__PURE__ */ jsx31(FormattedMessage8, { id: "loginTitle" }) }),
5219
- /* @__PURE__ */ jsx31("div", { className: "matchid-login-panel-header-subtilte", children: /* @__PURE__ */ jsx31(FormattedMessage8, { id: "loginTips" }) })
5354
+ /* @__PURE__ */ jsx32("div", { className: "matchid-login-panel-header-title", children: /* @__PURE__ */ jsx32(FormattedMessage8, { id: "loginTitle" }) }),
5355
+ /* @__PURE__ */ jsx32("div", { className: "matchid-login-panel-header-subtilte", children: /* @__PURE__ */ jsx32(FormattedMessage8, { id: "loginTips" }) })
5220
5356
  ] }),
5221
- onClose && /* @__PURE__ */ jsx31("div", { className: "matchid-login-panel-header-close", onClick: onClose, children: /* @__PURE__ */ jsx31(CloseRoundIcon, { size: isDownMd ? 24 : 30 }) })
5357
+ onClose && /* @__PURE__ */ jsx32("div", { className: "matchid-login-panel-header-close", onClick: onClose, children: /* @__PURE__ */ jsx32(CloseRoundIcon, { size: isDownMd ? 24 : 30 }) })
5222
5358
  ] }),
5223
- /* @__PURE__ */ jsx31("div", { className: "matchid-login-panel-divide" }),
5224
- /* @__PURE__ */ jsx31("div", { className: "matchid-login-panel-box", children: /* @__PURE__ */ jsx31(LoginBox, { ...props }) })
5359
+ /* @__PURE__ */ jsx32("div", { className: "matchid-login-panel-divide" }),
5360
+ /* @__PURE__ */ jsx32("div", { className: "matchid-login-panel-box", children: /* @__PURE__ */ jsx32(LoginBox, { ...props }) })
5225
5361
  ] });
5226
5362
  }
5227
5363
 
5228
5364
  // src/components/LoginModal/index.tsx
5229
- import { jsx as jsx32 } from "react/jsx-runtime";
5365
+ import { jsx as jsx33 } from "react/jsx-runtime";
5230
5366
  function LoginModal({
5231
5367
  isOpen = false,
5232
5368
  width = 480,
5233
5369
  ...props
5234
5370
  }) {
5235
5371
  const { isLogin } = useUserInfo();
5236
- return /* @__PURE__ */ jsx32(
5372
+ return /* @__PURE__ */ jsx33(
5237
5373
  Modal,
5238
5374
  {
5239
5375
  isOpen: isOpen && !isLogin,
5240
5376
  width,
5241
- children: /* @__PURE__ */ jsx32(LoginPanel, { ...props, inModal: true })
5377
+ children: /* @__PURE__ */ jsx33(LoginPanel, { ...props, inModal: true })
5242
5378
  }
5243
5379
  );
5244
5380
  }
@@ -5247,10 +5383,10 @@ function LoginModal({
5247
5383
  import { useState as useState21 } from "react";
5248
5384
 
5249
5385
  // src/assets/icon/ProfileIcon.tsx
5250
- import { jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
5386
+ import { jsx as jsx34, jsxs as jsxs18 } from "react/jsx-runtime";
5251
5387
  function ProfileIcon({ size = 24, color = "black", ...props }) {
5252
5388
  return /* @__PURE__ */ jsxs18("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
5253
- /* @__PURE__ */ jsx33(
5389
+ /* @__PURE__ */ jsx34(
5254
5390
  "path",
5255
5391
  {
5256
5392
  fillRule: "evenodd",
@@ -5259,7 +5395,7 @@ function ProfileIcon({ size = 24, color = "black", ...props }) {
5259
5395
  fill: color
5260
5396
  }
5261
5397
  ),
5262
- /* @__PURE__ */ jsx33(
5398
+ /* @__PURE__ */ jsx34(
5263
5399
  "path",
5264
5400
  {
5265
5401
  fillRule: "evenodd",
@@ -5273,7 +5409,7 @@ function ProfileIcon({ size = 24, color = "black", ...props }) {
5273
5409
 
5274
5410
  // src/components/UserPopover/index.tsx
5275
5411
  import { FormattedMessage as FormattedMessage9, useIntl as useIntl10 } from "react-intl";
5276
- import { jsx as jsx34, jsxs as jsxs19 } from "react/jsx-runtime";
5412
+ import { jsx as jsx35, jsxs as jsxs19 } from "react/jsx-runtime";
5277
5413
  function UserContent() {
5278
5414
  const { logout, address, username } = useUserInfo();
5279
5415
  const [logouting, setLogouting] = useState21(false);
@@ -5297,31 +5433,31 @@ function UserContent() {
5297
5433
  return /* @__PURE__ */ jsxs19("div", { className: "matchid-user-popover-item", onClick, children: [
5298
5434
  /* @__PURE__ */ jsxs19("div", { className: `matchid-user-popover-item-content`, children: [
5299
5435
  icon,
5300
- /* @__PURE__ */ jsx34("div", { className: "matchid-user-popover-item-text", children })
5436
+ /* @__PURE__ */ jsx35("div", { className: "matchid-user-popover-item-text", children })
5301
5437
  ] }),
5302
5438
  rightIcon
5303
5439
  ] });
5304
5440
  };
5305
5441
  const UserDivider = () => {
5306
- return /* @__PURE__ */ jsx34("div", { className: `matchid-user-popover-divider` });
5442
+ return /* @__PURE__ */ jsx35("div", { className: `matchid-user-popover-divider` });
5307
5443
  };
5308
5444
  const [usernameOpen, setUsernameOpen] = useState21(false);
5309
5445
  const [copied, setCopied] = useCopyClipboard();
5310
5446
  const intl = useIntl10();
5311
5447
  return /* @__PURE__ */ jsxs19("div", { className: "matchid-user-popover-content", children: [
5312
5448
  /* @__PURE__ */ jsxs19("div", { className: "matchid-user-popover-list", children: [
5313
- /* @__PURE__ */ jsx34(UserItem, { onClick: () => {
5449
+ /* @__PURE__ */ jsx35(UserItem, { onClick: () => {
5314
5450
  setCopied(address);
5315
- }, 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) }),
5316
- /* @__PURE__ */ jsx34(UserDivider, {}),
5317
- /* @__PURE__ */ jsx34(UserItem, { onClick: () => {
5451
+ }, icon: copied ? /* @__PURE__ */ jsx35(CheckIcon, { size: 20, color: "#0ecb81" }) : /* @__PURE__ */ jsx35(CopyIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ jsx35(CheckIcon, { size: 20, color: "var(--icon-color)" }), children: truncateAddress(address) }),
5452
+ /* @__PURE__ */ jsx35(UserDivider, {}),
5453
+ /* @__PURE__ */ jsx35(UserItem, { onClick: () => {
5318
5454
  setUsernameOpen(true);
5319
- }, icon: /* @__PURE__ */ jsx34(ProfileIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ jsx34(ArrowRightIcon, { size: 20, color: "var(--icon-color)" }), children: username || intl.formatMessage({
5455
+ }, icon: /* @__PURE__ */ jsx35(ProfileIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ jsx35(ArrowRightIcon, { size: 20, color: "var(--icon-color)" }), children: username || intl.formatMessage({
5320
5456
  id: "setUsername"
5321
5457
  }) })
5322
5458
  ] }),
5323
- /* @__PURE__ */ jsx34(Button, { onClick: onLogout, loading: logouting, children: /* @__PURE__ */ jsx34(FormattedMessage9, { id: "disconnect" }) }),
5324
- /* @__PURE__ */ jsx34(UsernameModal, { isOpen: usernameOpen, onClose: () => {
5459
+ /* @__PURE__ */ jsx35(Button, { onClick: onLogout, loading: logouting, children: /* @__PURE__ */ jsx35(FormattedMessage9, { id: "disconnect" }) }),
5460
+ /* @__PURE__ */ jsx35(UsernameModal, { isOpen: usernameOpen, onClose: () => {
5325
5461
  setUsernameOpen(false);
5326
5462
  }, onSuccess: () => {
5327
5463
  setUsernameOpen(false);
@@ -5332,12 +5468,12 @@ function UserPopover({
5332
5468
  children,
5333
5469
  ...props
5334
5470
  }) {
5335
- return /* @__PURE__ */ jsx34(Popover, { ...props, content: /* @__PURE__ */ jsx34(UserContent, {}), children });
5471
+ return /* @__PURE__ */ jsx35(Popover, { ...props, content: /* @__PURE__ */ jsx35(UserContent, {}), children });
5336
5472
  }
5337
5473
 
5338
5474
  // src/components/LoginButton/index.tsx
5339
5475
  import { FormattedMessage as FormattedMessage10, useIntl as useIntl11 } from "react-intl";
5340
- import { Fragment as Fragment6, jsx as jsx35, jsxs as jsxs20 } from "react/jsx-runtime";
5476
+ import { Fragment as Fragment6, jsx as jsx36, jsxs as jsxs20 } from "react/jsx-runtime";
5341
5477
  function LoginButton({
5342
5478
  loginRender,
5343
5479
  methods,
@@ -5354,7 +5490,7 @@ function LoginButton({
5354
5490
  const [loginOpen, setLoginOpen] = useState22(false);
5355
5491
  if (!isLogin) {
5356
5492
  return /* @__PURE__ */ jsxs20(Fragment6, { children: [
5357
- /* @__PURE__ */ jsx35(
5493
+ /* @__PURE__ */ jsx36(
5358
5494
  LoginModal,
5359
5495
  {
5360
5496
  methods,
@@ -5365,14 +5501,14 @@ function LoginButton({
5365
5501
  }
5366
5502
  ),
5367
5503
  /* @__PURE__ */ jsxs20(Button, { className: "matchid-unlogin-btn", ...props, highlight: true, onClick: () => setLoginOpen(true), children: [
5368
- /* @__PURE__ */ jsx35(UnLoginIcon_default, {}),
5369
- /* @__PURE__ */ jsx35("span", { children: /* @__PURE__ */ jsx35(FormattedMessage10, { id: "login" }) })
5504
+ /* @__PURE__ */ jsx36(UnLoginIcon_default, {}),
5505
+ /* @__PURE__ */ jsx36("span", { children: /* @__PURE__ */ jsx36(FormattedMessage10, { id: "login" }) })
5370
5506
  ] })
5371
5507
  ] });
5372
5508
  }
5373
- 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: [
5374
- /* @__PURE__ */ jsx35(LoginIcon_default, {}),
5375
- /* @__PURE__ */ jsx35("span", { children: username ? truncateAddress(username) : "MatchID " + intl.formatMessage({
5509
+ return loginRender ? /* @__PURE__ */ jsx36(Fragment6, { children: loginRender }) : /* @__PURE__ */ jsx36(UserPopover, { position: popoverPosition, type: popoverType, gap: popoverGap, children: /* @__PURE__ */ jsxs20(Button, { onClick: onLoginClick, className: "matchid-login-btn", ...props, children: [
5510
+ /* @__PURE__ */ jsx36(LoginIcon_default, {}),
5511
+ /* @__PURE__ */ jsx36("span", { children: username ? truncateAddress(username) : "MatchID " + intl.formatMessage({
5376
5512
  id: "user"
5377
5513
  }) })
5378
5514
  ] }) });
@@ -5381,15 +5517,15 @@ function LoginButton({
5381
5517
  // src/components/UsernameModal/index.tsx
5382
5518
  import { useEffect as useEffect22, useMemo as useMemo11, useState as useState23 } from "react";
5383
5519
  import { FormattedMessage as FormattedMessage11, useIntl as useIntl12 } from "react-intl";
5384
- import { jsx as jsx36, jsxs as jsxs21 } from "react/jsx-runtime";
5520
+ import { jsx as jsx37, jsxs as jsxs21 } from "react/jsx-runtime";
5385
5521
  var ValidItem = ({
5386
5522
  success = false,
5387
5523
  text
5388
5524
  }) => {
5389
5525
  const isDownMd = useDownMd();
5390
5526
  return /* @__PURE__ */ jsxs21("div", { className: `matchid-valid-status-item matchid-valid-status-${success ? "success" : "error"}`, children: [
5391
- success ? /* @__PURE__ */ jsx36(CheckRoundIcon, { size: isDownMd ? 12 : 16 }) : /* @__PURE__ */ jsx36(InfoLineIcon, { size: isDownMd ? 12 : 16 }),
5392
- /* @__PURE__ */ jsx36("span", { children: text })
5527
+ success ? /* @__PURE__ */ jsx37(CheckRoundIcon, { size: isDownMd ? 12 : 16 }) : /* @__PURE__ */ jsx37(InfoLineIcon, { size: isDownMd ? 12 : 16 }),
5528
+ /* @__PURE__ */ jsx37("span", { children: text })
5393
5529
  ] });
5394
5530
  };
5395
5531
  function UsernameModal({
@@ -5437,12 +5573,12 @@ function UsernameModal({
5437
5573
  }
5438
5574
  };
5439
5575
  const intl = useIntl12();
5440
- return /* @__PURE__ */ jsx36(ModalWithHeader, { isOpen: isOpen && isLogin, ...props, title: title || intl.formatMessage({
5576
+ return /* @__PURE__ */ jsx37(ModalWithHeader, { isOpen: isOpen && isLogin, ...props, title: title || intl.formatMessage({
5441
5577
  id: username ? "editUsernameTitle" : "setUsernameTitle"
5442
5578
  }), children: /* @__PURE__ */ jsxs21("div", { className: "matchid-username-box", children: [
5443
- /* @__PURE__ */ jsx36(Field, { label: intl.formatMessage({
5579
+ /* @__PURE__ */ jsx37(Field, { label: intl.formatMessage({
5444
5580
  id: "username"
5445
- }), error, children: /* @__PURE__ */ jsx36(
5581
+ }), error, children: /* @__PURE__ */ jsx37(
5446
5582
  Input,
5447
5583
  {
5448
5584
  placeholder: intl.formatMessage({
@@ -5456,7 +5592,7 @@ function UsernameModal({
5456
5592
  }
5457
5593
  ) }),
5458
5594
  /* @__PURE__ */ jsxs21("div", { className: "matchid-valid", children: [
5459
- /* @__PURE__ */ jsx36(
5595
+ /* @__PURE__ */ jsx37(
5460
5596
  ValidItem,
5461
5597
  {
5462
5598
  success: isValid,
@@ -5465,16 +5601,16 @@ function UsernameModal({
5465
5601
  })
5466
5602
  }
5467
5603
  ),
5468
- /* @__PURE__ */ jsx36(ValidItem, { success: isLength, text: intl.formatMessage({
5604
+ /* @__PURE__ */ jsx37(ValidItem, { success: isLength, text: intl.formatMessage({
5469
5605
  id: "usernameLengthError"
5470
5606
  }) })
5471
5607
  ] }),
5472
- /* @__PURE__ */ jsx36(Button, { disabled: !isSafe, loading: isSubmitting, style: {
5608
+ /* @__PURE__ */ jsx37(Button, { disabled: !isSafe, loading: isSubmitting, style: {
5473
5609
  marginTop: isDownMd ? "36px" : "64px"
5474
- }, onClick: onSubmit, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ jsx36(FormattedMessage11, { id: "confirm" }) }),
5475
- /* @__PURE__ */ jsx36(Button, { style: {
5610
+ }, onClick: onSubmit, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ jsx37(FormattedMessage11, { id: "confirm" }) }),
5611
+ /* @__PURE__ */ jsx37(Button, { style: {
5476
5612
  marginTop: isDownMd ? "12px" : "24px"
5477
- }, onClick: props.onClose, size: "lg", block: true, children: /* @__PURE__ */ jsx36(FormattedMessage11, { id: "cancel" }) })
5613
+ }, onClick: props.onClose, size: "lg", block: true, children: /* @__PURE__ */ jsx37(FormattedMessage11, { id: "cancel" }) })
5478
5614
  ] }) });
5479
5615
  }
5480
5616
 
@@ -5493,7 +5629,7 @@ var walletConnectImage = wallet_default;
5493
5629
  var walletSigningImage = signing_default;
5494
5630
 
5495
5631
  // src/components/WalletModalContent/index.tsx
5496
- import { jsx as jsx37, jsxs as jsxs22 } from "react/jsx-runtime";
5632
+ import { jsx as jsx38, jsxs as jsxs22 } from "react/jsx-runtime";
5497
5633
  function WalletModalContent({
5498
5634
  status,
5499
5635
  error,
@@ -5563,15 +5699,15 @@ function WalletModalContent({
5563
5699
  statusImage: walletConnectImage
5564
5700
  };
5565
5701
  }, [visible, connected, status, error, address]);
5566
- return /* @__PURE__ */ jsx37("div", { className: "matchid-wallet-container", children: /* @__PURE__ */ jsxs22("div", { className: `matchid-wallet-box`, children: [
5702
+ return /* @__PURE__ */ jsx38("div", { className: "matchid-wallet-container", children: /* @__PURE__ */ jsxs22("div", { className: `matchid-wallet-box`, children: [
5567
5703
  /* @__PURE__ */ jsxs22("div", { className: `matchid-wallet-content`, children: [
5568
- /* @__PURE__ */ jsx37(Lottie_default, { animationData: pageData.statusImage, style: {
5704
+ /* @__PURE__ */ jsx38(Lottie_default, { animationData: pageData.statusImage, style: {
5569
5705
  width: 128,
5570
5706
  height: 128
5571
5707
  } }),
5572
- /* @__PURE__ */ jsx37("div", { className: pageData.isError ? "matchid-error" : "", children: pageData.text })
5708
+ /* @__PURE__ */ jsx38("div", { className: pageData.isError ? "matchid-error" : "", children: pageData.text })
5573
5709
  ] }),
5574
- /* @__PURE__ */ jsx37(
5710
+ /* @__PURE__ */ jsx38(
5575
5711
  Button,
5576
5712
  {
5577
5713
  block: true,
@@ -5647,15 +5783,15 @@ function WalletModalContentV2(props) {
5647
5783
  statusImage: walletConnectImage
5648
5784
  };
5649
5785
  }, [props, submitting]);
5650
- return /* @__PURE__ */ jsx37("div", { className: "matchid-wallet-container", children: /* @__PURE__ */ jsxs22("div", { className: `matchid-wallet-box`, children: [
5786
+ return /* @__PURE__ */ jsx38("div", { className: "matchid-wallet-container", children: /* @__PURE__ */ jsxs22("div", { className: `matchid-wallet-box`, children: [
5651
5787
  /* @__PURE__ */ jsxs22("div", { className: `matchid-wallet-content`, children: [
5652
- /* @__PURE__ */ jsx37(Lottie_default, { animationData: pageData.statusImage, style: {
5788
+ /* @__PURE__ */ jsx38(Lottie_default, { animationData: pageData.statusImage, style: {
5653
5789
  width: 128,
5654
5790
  height: 128
5655
5791
  } }),
5656
- /* @__PURE__ */ jsx37("div", { className: props.status == "error" ? "matchid-error" : "", children: pageData.text })
5792
+ /* @__PURE__ */ jsx38("div", { className: props.status == "error" ? "matchid-error" : "", children: pageData.text })
5657
5793
  ] }),
5658
- /* @__PURE__ */ jsx37(
5794
+ /* @__PURE__ */ jsx38(
5659
5795
  Button,
5660
5796
  {
5661
5797
  block: true,
@@ -5719,7 +5855,7 @@ import { useWalletClient } from "wagmi";
5719
5855
  import { providers } from "ethers";
5720
5856
 
5721
5857
  // node_modules/@wagmi/core/dist/esm/version.js
5722
- var version = "2.16.5";
5858
+ var version = "2.17.1";
5723
5859
 
5724
5860
  // node_modules/@wagmi/core/dist/esm/utils/getVersion.js
5725
5861
  var getVersion2 = () => `@wagmi/core@${version}`;
@@ -5937,7 +6073,7 @@ async function getEthersSigner(config, { chainId } = {}) {
5937
6073
  // src/components/EVMModal/index.tsx
5938
6074
  import { SiweMessage } from "siwe";
5939
6075
  import "@rainbow-me/rainbowkit/styles.css";
5940
- import { jsx as jsx38 } from "react/jsx-runtime";
6076
+ import { jsx as jsx39 } from "react/jsx-runtime";
5941
6077
  function WalletContent({
5942
6078
  onSuccess,
5943
6079
  type
@@ -6095,7 +6231,7 @@ function WalletContent({
6095
6231
  setNonce(void 0);
6096
6232
  setStatus("start");
6097
6233
  };
6098
- return /* @__PURE__ */ jsx38(
6234
+ return /* @__PURE__ */ jsx39(
6099
6235
  WalletModalContentV2,
6100
6236
  {
6101
6237
  status,
@@ -6113,14 +6249,14 @@ function EVMConnectModal({
6113
6249
  ...props
6114
6250
  }) {
6115
6251
  const intl = useIntl13();
6116
- return /* @__PURE__ */ jsx38(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6252
+ return /* @__PURE__ */ jsx39(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6117
6253
  id: type == "bind" ? "bindWith" : "loginWith"
6118
6254
  }, {
6119
6255
  name: "EVM"
6120
- }), children: /* @__PURE__ */ jsx38(WalletContent, { onSuccess, type }) });
6256
+ }), children: /* @__PURE__ */ jsx39(WalletContent, { onSuccess, type }) });
6121
6257
  }
6122
6258
  function EVMModal(props) {
6123
- return props.isOpen && /* @__PURE__ */ jsx38(RainbowKitProvider2, { children: /* @__PURE__ */ jsx38(EVMConnectModal, { ...props }) });
6259
+ return props.isOpen && /* @__PURE__ */ jsx39(RainbowKitProvider2, { children: /* @__PURE__ */ jsx39(EVMConnectModal, { ...props }) });
6124
6260
  }
6125
6261
 
6126
6262
  // src/components/TRONModal/index.tsx
@@ -6235,7 +6371,7 @@ var useTRONWallet = () => {
6235
6371
  };
6236
6372
 
6237
6373
  // src/components/TRONModal/index.tsx
6238
- import { jsx as jsx39, jsxs as jsxs23 } from "react/jsx-runtime";
6374
+ import { jsx as jsx40, jsxs as jsxs23 } from "react/jsx-runtime";
6239
6375
  function TRONConnectModal({
6240
6376
  type = "login",
6241
6377
  onSuccess,
@@ -6245,9 +6381,9 @@ function TRONConnectModal({
6245
6381
  const intl = useIntl14();
6246
6382
  const { wallets, installedWallets, chooseWallet, wallet, address, onConnect } = useTRONWallet();
6247
6383
  const iconMaps = {
6248
- tronlink: /* @__PURE__ */ jsx39(TronLinkIcon, { size: isDownMd ? 36 : 40 }),
6249
- bitget: /* @__PURE__ */ jsx39(BitgetIcon, { size: isDownMd ? 36 : 40 }),
6250
- okx: /* @__PURE__ */ jsx39(OKXIcon, { size: isDownMd ? 36 : 40 })
6384
+ tronlink: /* @__PURE__ */ jsx40(TronLinkIcon, { size: isDownMd ? 36 : 40 }),
6385
+ bitget: /* @__PURE__ */ jsx40(BitgetIcon, { size: isDownMd ? 36 : 40 }),
6386
+ okx: /* @__PURE__ */ jsx40(OKXIcon, { size: isDownMd ? 36 : 40 })
6251
6387
  };
6252
6388
  const { events, login } = useMatch();
6253
6389
  const [status, setStatus] = useState28("");
@@ -6339,11 +6475,11 @@ function TRONConnectModal({
6339
6475
  disconnect();
6340
6476
  }
6341
6477
  }, [props.isOpen]);
6342
- return /* @__PURE__ */ jsx39(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6478
+ return /* @__PURE__ */ jsx40(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6343
6479
  id: type == "bind" ? "bindWith" : "loginWith"
6344
6480
  }, {
6345
6481
  name: "TRON"
6346
- }), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ jsx39(
6482
+ }), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ jsx40(
6347
6483
  WalletModalContent,
6348
6484
  {
6349
6485
  error,
@@ -6356,9 +6492,9 @@ function TRONConnectModal({
6356
6492
  setVisible: () => {
6357
6493
  }
6358
6494
  }
6359
- ) : /* @__PURE__ */ jsx39("div", { className: "matchid-login-box", children: /* @__PURE__ */ jsxs23("div", { className: "matchid-login-recommend-list", children: [
6495
+ ) : /* @__PURE__ */ jsx40("div", { className: "matchid-login-box", children: /* @__PURE__ */ jsxs23("div", { className: "matchid-login-recommend-list", children: [
6360
6496
  installedWallets.map((wallet2) => {
6361
- return /* @__PURE__ */ jsx39(
6497
+ return /* @__PURE__ */ jsx40(
6362
6498
  RecommendItem,
6363
6499
  {
6364
6500
  icon: iconMaps[wallet2.walletKey],
@@ -6371,14 +6507,14 @@ function TRONConnectModal({
6371
6507
  );
6372
6508
  }),
6373
6509
  wallets.filter((wallet2) => !installedWallets.find((installedWallet) => installedWallet.walletKey == wallet2.walletKey)).map((wallet2) => {
6374
- return /* @__PURE__ */ jsx39(
6510
+ return /* @__PURE__ */ jsx40(
6375
6511
  RecommendItem,
6376
6512
  {
6377
6513
  icon: iconMaps[wallet2.walletKey],
6378
6514
  name: wallet2.name,
6379
6515
  onClick: () => {
6380
6516
  },
6381
- footer: /* @__PURE__ */ jsx39(Button, { size: "sm", onClick: () => {
6517
+ footer: /* @__PURE__ */ jsx40(Button, { size: "sm", onClick: () => {
6382
6518
  window.open(wallet2.website);
6383
6519
  }, children: "Install" })
6384
6520
  },
@@ -6388,7 +6524,7 @@ function TRONConnectModal({
6388
6524
  ] }) }) });
6389
6525
  }
6390
6526
  function TRONModal(props) {
6391
- return props.isOpen && /* @__PURE__ */ jsx39(TRONConnectModal, { ...props, type: props.type });
6527
+ return props.isOpen && /* @__PURE__ */ jsx40(TRONConnectModal, { ...props, type: props.type });
6392
6528
  }
6393
6529
 
6394
6530
  // src/components/TONModal/index.tsx
@@ -6401,7 +6537,7 @@ import {
6401
6537
  useTonConnectUI,
6402
6538
  useTonWallet
6403
6539
  } from "@tonconnect/ui-react";
6404
- import { jsx as jsx40 } from "react/jsx-runtime";
6540
+ import { jsx as jsx41 } from "react/jsx-runtime";
6405
6541
  function WalletContent2({
6406
6542
  onSuccess,
6407
6543
  type
@@ -6528,7 +6664,7 @@ function WalletContent2({
6528
6664
  }
6529
6665
  }
6530
6666
  }, [state]);
6531
- return /* @__PURE__ */ jsx40(
6667
+ return /* @__PURE__ */ jsx41(
6532
6668
  WalletModalContent,
6533
6669
  {
6534
6670
  connected,
@@ -6562,20 +6698,20 @@ function TONConnectModal({
6562
6698
  const intl = useIntl15();
6563
6699
  const { endpoints, appid } = useLocalStore_default();
6564
6700
  const manifestUrl = `${endpoints.back}api/v1/wallet/ton?appid=${appid}&url=` + encodeURIComponent(window.location.origin);
6565
- return /* @__PURE__ */ jsx40(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6701
+ return /* @__PURE__ */ jsx41(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6566
6702
  id: type == "bind" ? "bindWith" : "loginWith"
6567
6703
  }, {
6568
6704
  name: "TON"
6569
- }), children: /* @__PURE__ */ jsx40(
6705
+ }), children: /* @__PURE__ */ jsx41(
6570
6706
  TonConnectUIProvider,
6571
6707
  {
6572
6708
  manifestUrl,
6573
- children: /* @__PURE__ */ jsx40(WalletContent2, { onSuccess, type })
6709
+ children: /* @__PURE__ */ jsx41(WalletContent2, { onSuccess, type })
6574
6710
  }
6575
6711
  ) });
6576
6712
  }
6577
6713
  function TONModal(props) {
6578
- return props.isOpen && /* @__PURE__ */ jsx40(TONConnectModal, { ...props });
6714
+ return props.isOpen && /* @__PURE__ */ jsx41(TONConnectModal, { ...props });
6579
6715
  }
6580
6716
 
6581
6717
  // src/components/BTCModal/index.tsx
@@ -6804,7 +6940,7 @@ var useBTCWallet = () => {
6804
6940
  };
6805
6941
 
6806
6942
  // src/components/BTCModal/index.tsx
6807
- import { jsx as jsx41, jsxs as jsxs24 } from "react/jsx-runtime";
6943
+ import { jsx as jsx42, jsxs as jsxs24 } from "react/jsx-runtime";
6808
6944
  function BTCConnectModal({
6809
6945
  type = "login",
6810
6946
  onSuccess,
@@ -6814,10 +6950,10 @@ function BTCConnectModal({
6814
6950
  const intl = useIntl16();
6815
6951
  const { wallets, installedWallets, chooseWallet, wallet, address, onConnect } = useBTCWallet();
6816
6952
  const iconMaps = {
6817
- leather: /* @__PURE__ */ jsx41(LeatherIcon, { size: isDownMd ? 36 : 40 }),
6818
- unisat: /* @__PURE__ */ jsx41(UnisatIcon, { size: isDownMd ? 36 : 40 }),
6819
- xverse: /* @__PURE__ */ jsx41(XverseIcon, { size: isDownMd ? 36 : 40 }),
6820
- phantom: /* @__PURE__ */ jsx41(PhantomIcon, { size: isDownMd ? 36 : 40 })
6953
+ leather: /* @__PURE__ */ jsx42(LeatherIcon, { size: isDownMd ? 36 : 40 }),
6954
+ unisat: /* @__PURE__ */ jsx42(UnisatIcon, { size: isDownMd ? 36 : 40 }),
6955
+ xverse: /* @__PURE__ */ jsx42(XverseIcon, { size: isDownMd ? 36 : 40 }),
6956
+ phantom: /* @__PURE__ */ jsx42(PhantomIcon, { size: isDownMd ? 36 : 40 })
6821
6957
  };
6822
6958
  const { events, login } = useMatch();
6823
6959
  const [status, setStatus] = useState31("");
@@ -6917,11 +7053,11 @@ function BTCConnectModal({
6917
7053
  statusRef.current = "";
6918
7054
  setError("");
6919
7055
  };
6920
- return /* @__PURE__ */ jsx41(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
7056
+ return /* @__PURE__ */ jsx42(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6921
7057
  id: type == "bind" ? "bindWith" : "loginWith"
6922
7058
  }, {
6923
7059
  name: "BTC"
6924
- }), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ jsx41(
7060
+ }), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ jsx42(
6925
7061
  WalletModalContent,
6926
7062
  {
6927
7063
  error,
@@ -6934,9 +7070,9 @@ function BTCConnectModal({
6934
7070
  setVisible: () => {
6935
7071
  }
6936
7072
  }
6937
- ) : /* @__PURE__ */ jsx41("div", { className: "matchid-login-box", children: /* @__PURE__ */ jsxs24("div", { className: "matchid-login-recommend-list", children: [
7073
+ ) : /* @__PURE__ */ jsx42("div", { className: "matchid-login-box", children: /* @__PURE__ */ jsxs24("div", { className: "matchid-login-recommend-list", children: [
6938
7074
  installedWallets.map((wallet2) => {
6939
- return /* @__PURE__ */ jsx41(
7075
+ return /* @__PURE__ */ jsx42(
6940
7076
  RecommendItem,
6941
7077
  {
6942
7078
  icon: iconMaps[wallet2.walletKey],
@@ -6949,14 +7085,14 @@ function BTCConnectModal({
6949
7085
  );
6950
7086
  }),
6951
7087
  wallets.filter((wallet2) => !installedWallets.find((installedWallet) => installedWallet.walletKey == wallet2.walletKey)).map((wallet2) => {
6952
- return /* @__PURE__ */ jsx41(
7088
+ return /* @__PURE__ */ jsx42(
6953
7089
  RecommendItem,
6954
7090
  {
6955
7091
  icon: iconMaps[wallet2.walletKey],
6956
7092
  name: wallet2.name,
6957
7093
  onClick: () => {
6958
7094
  },
6959
- footer: /* @__PURE__ */ jsx41(Button, { size: "sm", onClick: () => {
7095
+ footer: /* @__PURE__ */ jsx42(Button, { size: "sm", onClick: () => {
6960
7096
  window.open(wallet2.website);
6961
7097
  }, children: "Install" })
6962
7098
  },
@@ -6966,13 +7102,13 @@ function BTCConnectModal({
6966
7102
  ] }) }) });
6967
7103
  }
6968
7104
  function BTCModal(props) {
6969
- return props.isOpen && /* @__PURE__ */ jsx41(BTCConnectModal, { ...props });
7105
+ return props.isOpen && /* @__PURE__ */ jsx42(BTCConnectModal, { ...props });
6970
7106
  }
6971
7107
 
6972
7108
  // src/components/WalletModal/index.tsx
6973
7109
  import { useMemo as useMemo16 } from "react";
6974
7110
  import { useIntl as useIntl17 } from "react-intl";
6975
- import { jsx as jsx42 } from "react/jsx-runtime";
7111
+ import { jsx as jsx43 } from "react/jsx-runtime";
6976
7112
  function WalletConnectModal({
6977
7113
  type,
6978
7114
  methods: _methods,
@@ -6990,13 +7126,13 @@ function WalletConnectModal({
6990
7126
  const platform = config.platform.map((p) => p.toLowerCase());
6991
7127
  return WALLET_METHODS.filter((m) => platform.includes(m));
6992
7128
  }, [config.platform, _methods]);
6993
- return /* @__PURE__ */ jsx42(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
7129
+ return /* @__PURE__ */ jsx43(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6994
7130
  id: type == "bind" ? "bindWith" : "loginWith"
6995
7131
  }, {
6996
7132
  name: ""
6997
- }), children: /* @__PURE__ */ jsx42("div", { className: "matchid-login-box", children: /* @__PURE__ */ jsx42("div", { className: "matchid-login-recommend-list", children: methods.map((method, index) => {
7133
+ }), children: /* @__PURE__ */ jsx43("div", { className: "matchid-login-box", children: /* @__PURE__ */ jsx43("div", { className: "matchid-login-recommend-list", children: methods.map((method, index) => {
6998
7134
  const m = walletMap[method];
6999
- return /* @__PURE__ */ jsx42(
7135
+ return /* @__PURE__ */ jsx43(
7000
7136
  RecommendItem,
7001
7137
  {
7002
7138
  icon: m?.icon,
@@ -7010,12 +7146,12 @@ function WalletConnectModal({
7010
7146
  }) }) }) });
7011
7147
  }
7012
7148
  function WalletModal(props) {
7013
- return props.isOpen && /* @__PURE__ */ jsx42(WalletConnectModal, { ...props });
7149
+ return props.isOpen && /* @__PURE__ */ jsx43(WalletConnectModal, { ...props });
7014
7150
  }
7015
7151
 
7016
7152
  // src/components/AlphaAvatar/index.tsx
7017
7153
  import { useEffect as useEffect30, useState as useState32 } from "react";
7018
- import { jsx as jsx43 } from "react/jsx-runtime";
7154
+ import { jsx as jsx44 } from "react/jsx-runtime";
7019
7155
  function AlphaAvatar2({ name, size = 40, className = "" }) {
7020
7156
  const [avatar, setAvatar] = useState32(void 0);
7021
7157
  useEffect30(() => {
@@ -7024,7 +7160,7 @@ function AlphaAvatar2({ name, size = 40, className = "" }) {
7024
7160
  setAvatar(char);
7025
7161
  }
7026
7162
  }, [name]);
7027
- return /* @__PURE__ */ jsx43("div", { className: `matchid-alpha-avatar ${className}`, style: {
7163
+ return /* @__PURE__ */ jsx44("div", { className: `matchid-alpha-avatar ${className}`, style: {
7028
7164
  width: size,
7029
7165
  height: size,
7030
7166
  fontSize: Math.ceil(size / 2)
@@ -7032,7 +7168,7 @@ function AlphaAvatar2({ name, size = 40, className = "" }) {
7032
7168
  }
7033
7169
 
7034
7170
  // src/components/WalletAsset/index.tsx
7035
- import { jsx as jsx44, jsxs as jsxs25 } from "react/jsx-runtime";
7171
+ import { jsx as jsx45, jsxs as jsxs25 } from "react/jsx-runtime";
7036
7172
  function WalletAsset({
7037
7173
  onAssetClick,
7038
7174
  matchWalletAssetsOptions
@@ -7042,7 +7178,7 @@ function WalletAsset({
7042
7178
  list: walletAssets.mergedAssets
7043
7179
  });
7044
7180
  const { list } = useMatchChain();
7045
- return /* @__PURE__ */ jsx44("div", { className: "matchid-wallet-asset-list", children: matchWalletAssetList.list.map((n, index) => {
7181
+ return /* @__PURE__ */ jsx45("div", { className: "matchid-wallet-asset-list", children: matchWalletAssetList.list.map((n, index) => {
7046
7182
  const clickFunc = onAssetClick && onAssetClick(n);
7047
7183
  const chain = list?.find((m) => m.id.toString() === n.chain_id);
7048
7184
  const getFooterColor = () => {
@@ -7061,7 +7197,7 @@ function WalletAsset({
7061
7197
  cursor: clickFunc ? "pointer" : "default"
7062
7198
  }, children: [
7063
7199
  /* @__PURE__ */ jsxs25("div", { className: "matchid-wallet-asset-logo", title: n.symbol || n.name || "", children: [
7064
- n.icon ? /* @__PURE__ */ jsx44("img", { src: n.icon, alt: n.symbol, className: `matchid-wallet-asset-icon` }) : /* @__PURE__ */ jsx44(
7200
+ n.icon ? /* @__PURE__ */ jsx45("img", { src: n.icon, alt: n.symbol, className: `matchid-wallet-asset-icon` }) : /* @__PURE__ */ jsx45(
7065
7201
  AlphaAvatar2,
7066
7202
  {
7067
7203
  className: `matchid-wallet-asset-icon`,
@@ -7069,12 +7205,12 @@ function WalletAsset({
7069
7205
  name: n.symbol || n.name || ""
7070
7206
  }
7071
7207
  ),
7072
- chain?.iconUrl && /* @__PURE__ */ jsx44("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-wallet-asset-chain` })
7208
+ chain?.iconUrl && /* @__PURE__ */ jsx45("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-wallet-asset-chain` })
7073
7209
  ] }),
7074
7210
  /* @__PURE__ */ jsxs25("div", { className: `matchid-wallet-asset-info`, children: [
7075
- /* @__PURE__ */ jsx44("div", { className: `matchid-wallet-asset-name`, children: n.symbol }),
7211
+ /* @__PURE__ */ jsx45("div", { className: `matchid-wallet-asset-name`, children: n.symbol }),
7076
7212
  "price" in n && /* @__PURE__ */ jsxs25("div", { className: `matchid-wallet-asset-content`, children: [
7077
- /* @__PURE__ */ jsx44("div", { className: "matchid-wallet-asset-price", children: /* @__PURE__ */ jsx44(
7213
+ /* @__PURE__ */ jsx45("div", { className: "matchid-wallet-asset-price", children: /* @__PURE__ */ jsx45(
7078
7214
  NumberFormatter,
7079
7215
  {
7080
7216
  value: n.price,
@@ -7082,7 +7218,7 @@ function WalletAsset({
7082
7218
  tFixNum: 2
7083
7219
  }
7084
7220
  ) }),
7085
- /* @__PURE__ */ jsx44("div", { className: "matchid-wallet-asset-value", children: /* @__PURE__ */ jsx44(
7221
+ /* @__PURE__ */ jsx45("div", { className: "matchid-wallet-asset-value", children: /* @__PURE__ */ jsx45(
7086
7222
  NumberFormatter,
7087
7223
  {
7088
7224
  value: n.value,
@@ -7092,14 +7228,14 @@ function WalletAsset({
7092
7228
  ) })
7093
7229
  ] }),
7094
7230
  /* @__PURE__ */ jsxs25("div", { className: `matchid-wallet-asset-footer`, children: [
7095
- /* @__PURE__ */ jsx44("div", { className: `matchid-wallet-asset-balance`, children: /* @__PURE__ */ jsx44(
7231
+ /* @__PURE__ */ jsx45("div", { className: `matchid-wallet-asset-balance`, children: /* @__PURE__ */ jsx45(
7096
7232
  NumberFormatter,
7097
7233
  {
7098
7234
  value: n.balance,
7099
7235
  tFixNum: 3
7100
7236
  }
7101
7237
  ) }),
7102
- "price_change_24h" in n && /* @__PURE__ */ jsx44("div", { className: `matchid-wallet-asset-change ${getFooterColor()}`, children: /* @__PURE__ */ jsx44(
7238
+ "price_change_24h" in n && /* @__PURE__ */ jsx45("div", { className: `matchid-wallet-asset-change ${getFooterColor()}`, children: /* @__PURE__ */ jsx45(
7103
7239
  NumberFormatter,
7104
7240
  {
7105
7241
  prefix: `${(n?.price_change_24h || 0) < 0 ? "-" : "+"} `,
@@ -7118,7 +7254,7 @@ function WalletAsset({
7118
7254
  import { useEffect as useEffect31, useMemo as useMemo17, useState as useState33 } from "react";
7119
7255
  import { defineChain as defineChain4, encodeFunctionData as encodeFunctionData2, erc20Abi as erc20Abi3, http as http8, parseUnits as parseUnits2 } from "viem";
7120
7256
  import { FormattedMessage as FormattedMessage12, useIntl as useIntl18 } from "react-intl";
7121
- import { jsx as jsx45, jsxs as jsxs26 } from "react/jsx-runtime";
7257
+ import { jsx as jsx46, jsxs as jsxs26 } from "react/jsx-runtime";
7122
7258
  function Input2({
7123
7259
  onChange,
7124
7260
  placeholder,
@@ -7129,7 +7265,7 @@ function Input2({
7129
7265
  size = "df"
7130
7266
  }) {
7131
7267
  return /* @__PURE__ */ jsxs26("div", { className: `matchid-token-input-box ${"matchid-token-input-" + size}`, children: [
7132
- /* @__PURE__ */ jsx45(
7268
+ /* @__PURE__ */ jsx46(
7133
7269
  "input",
7134
7270
  {
7135
7271
  placeholder,
@@ -7140,7 +7276,7 @@ function Input2({
7140
7276
  className: `matchid-token-input ${error ? "matchid-token-input-error" : ""}`
7141
7277
  }
7142
7278
  ),
7143
- error && /* @__PURE__ */ jsx45("div", { className: "matchid-token-input-error-text", children: error })
7279
+ error && /* @__PURE__ */ jsx46("div", { className: "matchid-token-input-error-text", children: error })
7144
7280
  ] });
7145
7281
  }
7146
7282
  function TokenSend({
@@ -7268,24 +7404,24 @@ function TokenSend({
7268
7404
  window.removeEventListener("message", receiveMessage);
7269
7405
  };
7270
7406
  }, []);
7271
- 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: [
7407
+ return /* @__PURE__ */ jsx46(ModalDrawer, { isOpen: true, onClose, zIndex, title: /* @__PURE__ */ jsx46(FormattedMessage12, { id: "send" }), onBack, children: /* @__PURE__ */ jsxs26("div", { className: `matchid-token-send-box`, children: [
7272
7408
  /* @__PURE__ */ jsxs26("div", { className: "matchid-token-send-content", children: [
7273
7409
  /* @__PURE__ */ jsxs26("div", { className: `matchid-token-amount-content`, children: [
7274
7410
  /* @__PURE__ */ jsxs26("div", { className: `matchid-token-amount-header`, children: [
7275
- /* @__PURE__ */ jsx45("div", { className: `matchid-token-amount-title`, children: /* @__PURE__ */ jsx45(FormattedMessage12, { id: "amount" }) }),
7411
+ /* @__PURE__ */ jsx46("div", { className: `matchid-token-amount-title`, children: /* @__PURE__ */ jsx46(FormattedMessage12, { id: "amount" }) }),
7276
7412
  /* @__PURE__ */ jsxs26("div", { className: `matchid-token-amount-chain`, children: [
7277
- token.icon ? /* @__PURE__ */ jsx45(
7413
+ token.icon ? /* @__PURE__ */ jsx46(
7278
7414
  "img",
7279
7415
  {
7280
7416
  src: token?.icon,
7281
7417
  alt: token?.symbol,
7282
7418
  className: `matchid-token-amount-chain-icon`
7283
7419
  }
7284
- ) : /* @__PURE__ */ jsx45(AlphaAvatar, { name: token.symbol || token.name || "", size: 16 }),
7285
- /* @__PURE__ */ jsx45("span", { children: token?.symbol })
7420
+ ) : /* @__PURE__ */ jsx46(AlphaAvatar, { name: token.symbol || token.name || "", size: 16 }),
7421
+ /* @__PURE__ */ jsx46("span", { children: token?.symbol })
7286
7422
  ] })
7287
7423
  ] }),
7288
- /* @__PURE__ */ jsx45(
7424
+ /* @__PURE__ */ jsx46(
7289
7425
  Input2,
7290
7426
  {
7291
7427
  type: "text",
@@ -7300,16 +7436,16 @@ function TokenSend({
7300
7436
  ),
7301
7437
  /* @__PURE__ */ jsxs26("div", { className: `matchid-token-amount-footer`, children: [
7302
7438
  /* @__PURE__ */ jsxs26("div", { className: `matchid-token-amount-title`, children: [
7303
- /* @__PURE__ */ jsx45(FormattedMessage12, { id: "balance" }),
7439
+ /* @__PURE__ */ jsx46(FormattedMessage12, { id: "balance" }),
7304
7440
  ":"
7305
7441
  ] }),
7306
- /* @__PURE__ */ jsx45("div", { className: `matchid-token-amount-value`, children: /* @__PURE__ */ jsx45(NumberFormatter, { value: token.balance, tFixNum: 10, suffix: " " + token.symbol }) })
7442
+ /* @__PURE__ */ jsx46("div", { className: `matchid-token-amount-value`, children: /* @__PURE__ */ jsx46(NumberFormatter, { value: token.balance, tFixNum: 10, suffix: " " + token.symbol }) })
7307
7443
  ] }),
7308
- /* @__PURE__ */ jsx45(TransferIcon, { className: "matchid-token-amount-transfer" })
7444
+ /* @__PURE__ */ jsx46(TransferIcon, { className: "matchid-token-amount-transfer" })
7309
7445
  ] }),
7310
7446
  /* @__PURE__ */ jsxs26("div", { className: `matchid-token-address-content`, children: [
7311
- /* @__PURE__ */ jsx45("div", { className: `matchid-token-address-header`, children: /* @__PURE__ */ jsx45("div", { className: `matchid-token-address-title`, children: /* @__PURE__ */ jsx45(FormattedMessage12, { id: "receiveTitle" }) }) }),
7312
- /* @__PURE__ */ jsx45(
7447
+ /* @__PURE__ */ jsx46("div", { className: `matchid-token-address-header`, children: /* @__PURE__ */ jsx46("div", { className: `matchid-token-address-title`, children: /* @__PURE__ */ jsx46(FormattedMessage12, { id: "receiveTitle" }) }) }),
7448
+ /* @__PURE__ */ jsx46(
7313
7449
  Input2,
7314
7450
  {
7315
7451
  type: "text",
@@ -7325,7 +7461,7 @@ function TokenSend({
7325
7461
  )
7326
7462
  ] })
7327
7463
  ] }),
7328
- /* @__PURE__ */ jsx45(
7464
+ /* @__PURE__ */ jsx46(
7329
7465
  Button,
7330
7466
  {
7331
7467
  size: "lg",
@@ -7334,7 +7470,7 @@ function TokenSend({
7334
7470
  disabled: !canSend || !!txError,
7335
7471
  onClick: onNext,
7336
7472
  loading: loading || sending,
7337
- children: /* @__PURE__ */ jsx45(FormattedMessage12, { id: "next" })
7473
+ children: /* @__PURE__ */ jsx46(FormattedMessage12, { id: "next" })
7338
7474
  }
7339
7475
  )
7340
7476
  ] }) });
@@ -7342,7 +7478,7 @@ function TokenSend({
7342
7478
 
7343
7479
  // src/components/TokenDetail/index.tsx
7344
7480
  import { FormattedMessage as FormattedMessage13, useIntl as useIntl19 } from "react-intl";
7345
- import { jsx as jsx46, jsxs as jsxs27 } from "react/jsx-runtime";
7481
+ import { jsx as jsx47, jsxs as jsxs27 } from "react/jsx-runtime";
7346
7482
  function TokenDetail({
7347
7483
  onClose,
7348
7484
  token
@@ -7352,41 +7488,41 @@ function TokenDetail({
7352
7488
  const chain = chainList?.find((m) => m.id.toString() === token.chain_id);
7353
7489
  const onSend = () => {
7354
7490
  modal.show((props) => {
7355
- return /* @__PURE__ */ jsx46(TokenSend, { onClose: () => {
7491
+ return /* @__PURE__ */ jsx47(TokenSend, { onClose: () => {
7356
7492
  props.close();
7357
7493
  onClose();
7358
7494
  }, onBack: props.close, zIndex: props.zIndex, token });
7359
7495
  });
7360
7496
  };
7361
7497
  const intl = useIntl19();
7362
- return /* @__PURE__ */ jsx46(ModalDrawer, { isOpen: true, title: intl.formatMessage({
7498
+ return /* @__PURE__ */ jsx47(ModalDrawer, { isOpen: true, title: intl.formatMessage({
7363
7499
  id: "tokenDetails"
7364
7500
  }), onClose, children: /* @__PURE__ */ jsxs27("div", { className: `matchid-token-detail`, children: [
7365
7501
  /* @__PURE__ */ jsxs27("div", { className: `matchid-token-main`, children: [
7366
7502
  /* @__PURE__ */ jsxs27("div", { className: `matchid-token-info`, children: [
7367
7503
  /* @__PURE__ */ jsxs27("div", { className: `matchid-token-logo`, children: [
7368
- 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 || "" }),
7369
- chain?.iconUrl && /* @__PURE__ */ jsx46("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-token-chain` })
7504
+ token.icon ? /* @__PURE__ */ jsx47("img", { src: token.icon, alt: token.symbol, className: `matchid-token-icon` }) : /* @__PURE__ */ jsx47(AlphaAvatar, { className: `matchid-token-icon`, size: 48, name: token.symbol || token.name || "" }),
7505
+ chain?.iconUrl && /* @__PURE__ */ jsx47("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-token-chain` })
7370
7506
  ] }),
7371
7507
  /* @__PURE__ */ jsxs27("div", { className: `matchid-token-name`, children: [
7372
- /* @__PURE__ */ jsx46(NumberFormatter, { value: token.balance, tFixNum: 10 }),
7508
+ /* @__PURE__ */ jsx47(NumberFormatter, { value: token.balance, tFixNum: 10 }),
7373
7509
  " ",
7374
7510
  token.symbol
7375
7511
  ] })
7376
7512
  ] }),
7377
7513
  token.address.toLowerCase() != NATIVE_TOKEN_ADDRESS && /* @__PURE__ */ jsxs27("div", { className: `matchid-token-contract`, children: [
7378
- /* @__PURE__ */ jsx46("div", { className: "matchid-token-contract-title", children: "Contract address" }),
7379
- /* @__PURE__ */ jsx46("div", { className: "matchid-token-contract-address", children: token.address })
7514
+ /* @__PURE__ */ jsx47("div", { className: "matchid-token-contract-title", children: "Contract address" }),
7515
+ /* @__PURE__ */ jsx47("div", { className: "matchid-token-contract-address", children: token.address })
7380
7516
  ] })
7381
7517
  ] }),
7382
- /* @__PURE__ */ jsx46(Button, { size: "lg", block: true, highlight: true, onClick: onSend, children: /* @__PURE__ */ jsx46(FormattedMessage13, { id: "send" }) })
7518
+ /* @__PURE__ */ jsx47(Button, { size: "lg", block: true, highlight: true, onClick: onSend, children: /* @__PURE__ */ jsx47(FormattedMessage13, { id: "send" }) })
7383
7519
  ] }) });
7384
7520
  }
7385
7521
 
7386
7522
  // src/components/TokenSendList/index.tsx
7387
7523
  import { useState as useState34 } from "react";
7388
7524
  import { FormattedMessage as FormattedMessage14 } from "react-intl";
7389
- import { jsx as jsx47, jsxs as jsxs28 } from "react/jsx-runtime";
7525
+ import { jsx as jsx48, jsxs as jsxs28 } from "react/jsx-runtime";
7390
7526
  function TokenSendList({ close }) {
7391
7527
  const isDownMd = useDownMd();
7392
7528
  const walletAssets = useMatchWalletAssets();
@@ -7398,14 +7534,14 @@ function TokenSendList({ close }) {
7398
7534
  const modal = useModal();
7399
7535
  const onNext = () => {
7400
7536
  checked && modal.show((props) => {
7401
- return /* @__PURE__ */ jsx47(TokenSend, { onClose: () => {
7537
+ return /* @__PURE__ */ jsx48(TokenSend, { onClose: () => {
7402
7538
  props.close();
7403
7539
  close();
7404
7540
  }, onBack: props.close, zIndex: props.zIndex, token: checked });
7405
7541
  });
7406
7542
  };
7407
7543
  return /* @__PURE__ */ jsxs28("div", { className: "matchid-token-send-list-box", children: [
7408
- /* @__PURE__ */ jsx47("div", { className: "matchid-token-send-list", children: matchWalletAssetList.list.map((n, index) => {
7544
+ /* @__PURE__ */ jsx48("div", { className: "matchid-token-send-list", children: matchWalletAssetList.list.map((n, index) => {
7409
7545
  const chain = list?.find((m) => m.id.toString() === n.chain_id);
7410
7546
  return /* @__PURE__ */ jsxs28(
7411
7547
  "div",
@@ -7415,10 +7551,10 @@ function TokenSendList({ close }) {
7415
7551
  setChecked(n);
7416
7552
  },
7417
7553
  children: [
7418
- /* @__PURE__ */ jsx47(Radio, { checked: checked?.address == n.address, size: isDownMd ? 18 : 24 }),
7554
+ /* @__PURE__ */ jsx48(Radio, { checked: checked?.address == n.address, size: isDownMd ? 18 : 24 }),
7419
7555
  /* @__PURE__ */ jsxs28("div", { className: "matchid-token-send-content", children: [
7420
7556
  /* @__PURE__ */ jsxs28("div", { className: "matchid-token-send-logo", children: [
7421
- n.icon ? /* @__PURE__ */ jsx47("img", { src: n.icon, alt: n.symbol, className: `matchid-token-send-icon` }) : /* @__PURE__ */ jsx47(
7557
+ n.icon ? /* @__PURE__ */ jsx48("img", { src: n.icon, alt: n.symbol, className: `matchid-token-send-icon` }) : /* @__PURE__ */ jsx48(
7422
7558
  AlphaAvatar2,
7423
7559
  {
7424
7560
  className: `matchid-token-send-icon`,
@@ -7426,7 +7562,7 @@ function TokenSendList({ close }) {
7426
7562
  name: n.symbol || n.name || ""
7427
7563
  }
7428
7564
  ),
7429
- chain?.iconUrl && /* @__PURE__ */ jsx47(
7565
+ chain?.iconUrl && /* @__PURE__ */ jsx48(
7430
7566
  "img",
7431
7567
  {
7432
7568
  src: chain.iconUrl,
@@ -7436,8 +7572,8 @@ function TokenSendList({ close }) {
7436
7572
  )
7437
7573
  ] }),
7438
7574
  /* @__PURE__ */ jsxs28("div", { className: `matchid-token-send-info`, children: [
7439
- /* @__PURE__ */ jsx47("div", { className: `matchid-token-send-name`, children: n.symbol }),
7440
- /* @__PURE__ */ jsx47("div", { className: `matchid-token-send-balance`, children: /* @__PURE__ */ jsx47(NumberFormatter, { value: n.balance, tFixNum: 3 }) })
7575
+ /* @__PURE__ */ jsx48("div", { className: `matchid-token-send-name`, children: n.symbol }),
7576
+ /* @__PURE__ */ jsx48("div", { className: `matchid-token-send-balance`, children: /* @__PURE__ */ jsx48(NumberFormatter, { value: n.balance, tFixNum: 3 }) })
7441
7577
  ] })
7442
7578
  ] })
7443
7579
  ]
@@ -7445,7 +7581,7 @@ function TokenSendList({ close }) {
7445
7581
  index
7446
7582
  );
7447
7583
  }) }),
7448
- /* @__PURE__ */ jsx47(Button, { size: "lg", highlight: true, block: true, disabled: !checked, onClick: onNext, children: /* @__PURE__ */ jsx47(FormattedMessage14, { id: "next" }) })
7584
+ /* @__PURE__ */ jsx48(Button, { size: "lg", highlight: true, block: true, disabled: !checked, onClick: onNext, children: /* @__PURE__ */ jsx48(FormattedMessage14, { id: "next" }) })
7449
7585
  ] });
7450
7586
  }
7451
7587
 
@@ -7455,7 +7591,7 @@ import { useEffect as useEffect32, useMemo as useMemo18, useState as useState35
7455
7591
  import { decodeFunctionData, defineChain as defineChain5, formatUnits as formatUnits3 } from "viem";
7456
7592
  import { erc20Abi as erc20Abi4 } from "viem";
7457
7593
  import { FormattedMessage as FormattedMessage15 } from "react-intl";
7458
- import { jsx as jsx48, jsxs as jsxs29 } from "react/jsx-runtime";
7594
+ import { jsx as jsx49, jsxs as jsxs29 } from "react/jsx-runtime";
7459
7595
  var Item = ({ data }) => {
7460
7596
  const { address } = useWallet();
7461
7597
  const isOut = data.from.toLowerCase() == address.toLowerCase();
@@ -7550,10 +7686,10 @@ var Item = ({ data }) => {
7550
7686
  className: `matchid-transaction-item`,
7551
7687
  children: [
7552
7688
  /* @__PURE__ */ jsxs29("div", { className: `matchid-transacton-item-container`, children: [
7553
- /* @__PURE__ */ jsx48("div", { className: "matchid-transaction-item-icon", children: /* @__PURE__ */ jsx48(ArrowSendIcon, { className: !isOut ? "rotate-180" : "" }) }),
7689
+ /* @__PURE__ */ jsx49("div", { className: "matchid-transaction-item-icon", children: /* @__PURE__ */ jsx49(ArrowSendIcon, { className: !isOut ? "rotate-180" : "" }) }),
7554
7690
  /* @__PURE__ */ jsxs29("div", { className: `matchid-transaction-item-details`, children: [
7555
- /* @__PURE__ */ jsx48("div", { className: `matchid-transaction-item-address`, children: formatAddress(to, 6, 4) }),
7556
- /* @__PURE__ */ jsx48(
7691
+ /* @__PURE__ */ jsx49("div", { className: `matchid-transaction-item-address`, children: formatAddress(to, 6, 4) }),
7692
+ /* @__PURE__ */ jsx49(
7557
7693
  "div",
7558
7694
  {
7559
7695
  className: `matchid-transaction-item-timestamp`,
@@ -7563,10 +7699,10 @@ var Item = ({ data }) => {
7563
7699
  ] })
7564
7700
  ] }),
7565
7701
  /* @__PURE__ */ jsxs29("div", { className: `matchid-transaction-item-amount ${"matchid-transaction-item-" + status}`, children: [
7566
- /* @__PURE__ */ jsx48(NumberFormatter, { value: amount, tFixNum: 6, prefix: isOut ? "-" : "+", suffix: " " + symbol }),
7567
- status == "loading" && /* @__PURE__ */ jsx48(LoadingIcon_default, { color: "#000000", size: 16, rotate: true }),
7568
- status == "success" && /* @__PURE__ */ jsx48(CheckRoundIcon, { size: 16 }),
7569
- status == "error" && /* @__PURE__ */ jsx48(InfoRoundIcon, { size: 16 })
7702
+ /* @__PURE__ */ jsx49(NumberFormatter, { value: amount, tFixNum: 6, prefix: isOut ? "-" : "+", suffix: " " + symbol }),
7703
+ status == "loading" && /* @__PURE__ */ jsx49(LoadingIcon_default, { color: "#000000", size: 16, rotate: true }),
7704
+ status == "success" && /* @__PURE__ */ jsx49(CheckRoundIcon, { size: 16 }),
7705
+ status == "error" && /* @__PURE__ */ jsx49(InfoRoundIcon, { size: 16 })
7570
7706
  ] })
7571
7707
  ]
7572
7708
  }
@@ -7576,7 +7712,7 @@ function TransactionList({
7576
7712
  scrollableTarget
7577
7713
  }) {
7578
7714
  const { fetchMoreData, hasMore, items } = useMatchWalletRecords();
7579
- return /* @__PURE__ */ jsx48(
7715
+ return /* @__PURE__ */ jsx49(
7580
7716
  InfiniteScroll,
7581
7717
  {
7582
7718
  scrollableTarget,
@@ -7584,11 +7720,11 @@ function TransactionList({
7584
7720
  next: fetchMoreData,
7585
7721
  hasMore,
7586
7722
  loader: /* @__PURE__ */ jsxs29("div", { className: "matchid-list-nomore", children: [
7587
- /* @__PURE__ */ jsx48(LoadingIcon_default, { rotate: true, size: 16, color: "black" }),
7723
+ /* @__PURE__ */ jsx49(LoadingIcon_default, { rotate: true, size: 16, color: "black" }),
7588
7724
  "Loading..."
7589
7725
  ] }),
7590
- 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" }) }),
7591
- 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)) })
7726
+ endMessage: items.length > 0 ? /* @__PURE__ */ jsx49("div", { className: `matchid-list-nomore`, children: /* @__PURE__ */ jsx49(FormattedMessage15, { id: "noMoreRecords" }) }) : /* @__PURE__ */ jsx49("div", { className: `matchid-list-nomore`, children: /* @__PURE__ */ jsx49(FormattedMessage15, { id: "noRecords" }) }),
7727
+ children: items.length == 0 && !hasMore ? /* @__PURE__ */ jsx49("div", { className: "mt-[150px]" }) : /* @__PURE__ */ jsx49("div", { className: `matchid-transaction-list`, children: items.map((item, index) => /* @__PURE__ */ jsx49(Item, { data: item }, index)) })
7592
7728
  }
7593
7729
  );
7594
7730
  }
@@ -7663,4 +7799,4 @@ export {
7663
7799
  MatchProvider,
7664
7800
  useMatch
7665
7801
  };
7666
- //# sourceMappingURL=chunk-KFB23MLQ.mjs.map
7802
+ //# sourceMappingURL=chunk-6RNCNC65.mjs.map