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

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 (42) hide show
  1. package/dist/api.js +44 -3
  2. package/dist/api.js.map +1 -1
  3. package/dist/api.mjs +3 -3
  4. package/dist/{chunk-LOZCAT7A.mjs → chunk-6RNCNC65.mjs} +288 -218
  5. package/dist/chunk-6RNCNC65.mjs.map +1 -0
  6. package/dist/{chunk-FQ6PYZPD.mjs → chunk-7SUDHG7S.mjs} +1 -1
  7. package/dist/chunk-7SUDHG7S.mjs.map +1 -0
  8. package/dist/{chunk-JCMQBWWW.mjs → chunk-EAZNOQRK.mjs} +2 -2
  9. package/dist/components.d.mts +1 -1
  10. package/dist/components.d.ts +1 -1
  11. package/dist/components.js +311 -263
  12. package/dist/components.js.map +1 -1
  13. package/dist/components.mjs +2 -2
  14. package/dist/hooks.d.mts +1 -1
  15. package/dist/hooks.d.ts +1 -1
  16. package/dist/hooks.js +81 -42
  17. package/dist/hooks.js.map +1 -1
  18. package/dist/hooks.mjs +2 -2
  19. package/dist/icon.js.map +1 -1
  20. package/dist/icon.mjs +1 -1
  21. package/dist/{index-DwmrgZa2.d.ts → index-B70k4Jpk.d.ts} +4 -0
  22. package/dist/{index-D2E53ZMV.d.mts → index-BJJ0Gb6v.d.mts} +4 -0
  23. package/dist/{index-qmC4zt6V.d.ts → index-C2hr7zlN.d.ts} +3 -1
  24. package/dist/{index-DVlulZhE.d.mts → index-CTHpnEoB.d.mts} +3 -1
  25. package/dist/index.d.mts +2 -2
  26. package/dist/index.d.ts +2 -2
  27. package/dist/index.js +92 -22
  28. package/dist/index.js.map +1 -1
  29. package/dist/index.mjs +3 -3
  30. package/dist/ui.js +81 -70
  31. package/dist/ui.js.map +1 -1
  32. package/dist/ui.mjs +2 -2
  33. package/example/package-lock.json +2965 -0
  34. package/example/package.json +2 -1
  35. package/example/src/App.tsx +65 -60
  36. package/example/src/config/index.ts +8 -6
  37. package/example/src/pages/Wallet/index.tsx +2 -4
  38. package/example/yarn.lock +27 -2251
  39. package/package.json +3 -6
  40. package/dist/chunk-FQ6PYZPD.mjs.map +0 -1
  41. package/dist/chunk-LOZCAT7A.mjs.map +0 -1
  42. /package/dist/{chunk-JCMQBWWW.mjs.map → chunk-EAZNOQRK.mjs.map} +0 -0
@@ -68,7 +68,7 @@ import {
68
68
  XIcon,
69
69
  XverseIcon,
70
70
  YoutubeIcon
71
- } from "./chunk-FQ6PYZPD.mjs";
71
+ } from "./chunk-7SUDHG7S.mjs";
72
72
  import {
73
73
  confirm_default,
74
74
  connecting_default,
@@ -401,9 +401,12 @@ function StepEmail(props) {
401
401
  value: emailVal
402
402
  }
403
403
  ) }),
404
- /* @__PURE__ */ jsx6(Button, { disabled: !canContinue, style: {
404
+ /* @__PURE__ */ jsxs4(Button, { disabled: !canContinue, style: {
405
405
  marginTop: "64px"
406
- }, 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
+ ] })
407
410
  ] });
408
411
  }
409
412
 
@@ -3001,6 +3004,12 @@ var useWalletModalStore = create5((set) => ({
3001
3004
  open: (type, methods = DEFAULT_WALLET_METHODS) => set({ isOpen: true, type, methods }),
3002
3005
  close: () => set({ isOpen: false })
3003
3006
  }));
3007
+ var useEmailModalStore = create5((set) => ({
3008
+ isOpen: false,
3009
+ type: "",
3010
+ open: (type) => set({ isOpen: true, type }),
3011
+ close: () => set({ isOpen: false })
3012
+ }));
3004
3013
 
3005
3014
  // src/components/CEXBindModal/index.tsx
3006
3015
  import { useEffect as useEffect16, useMemo as useMemo7, useState as useState16 } from "react";
@@ -3021,7 +3030,7 @@ function CEXBindModal({
3021
3030
  const [secret, setSecret] = useState16("");
3022
3031
  const [error, setError] = useState16("");
3023
3032
  const needPassphrase = useMemo7(() => {
3024
- return ["bitget", "okx"].includes(type.toLowerCase());
3033
+ return ["bitget", "okx", "kucoin"].includes(type.toLowerCase());
3025
3034
  }, [type]);
3026
3035
  useEffect16(() => {
3027
3036
  if (isOpen) {
@@ -3117,7 +3126,25 @@ function CEXBindModal({
3117
3126
 
3118
3127
  // src/context/BusinessProvider.tsx
3119
3128
  import { useQuery as useQuery7 } from "@tanstack/react-query";
3120
- 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";
3121
3148
  function BusinessProvider({ children }) {
3122
3149
  const { overview, token } = useUserInfo();
3123
3150
  const { type: EVMType, isOpen: EVMIsOpen, close: EVMClose } = useEVMModalStore();
@@ -3125,6 +3152,7 @@ function BusinessProvider({ children }) {
3125
3152
  const { type: TRONType, isOpen: TRONIsOpen, close: TRONClose } = useTRONModalStore();
3126
3153
  const { type: BTCType, isOpen: BTCIsOpen, close: BTCClose } = useBTCModalStore();
3127
3154
  const { type: CEXType, isOpen: CEXIsOpen, close: CEXClose } = useCEXBindModalStore();
3155
+ const { type: EmailType, isOpen: EmailIsOpen, close: EmailClose } = useEmailModalStore();
3128
3156
  const WalletModalStore = useWalletModalStore();
3129
3157
  const { tgAppAuthCode, setTgAppAuthCode } = useStore_default();
3130
3158
  const { login } = useMatch();
@@ -3152,7 +3180,7 @@ function BusinessProvider({ children }) {
3152
3180
  refetchInterval: 1e3 * 5
3153
3181
  });
3154
3182
  return /* @__PURE__ */ jsxs14(Fragment4, { children: [
3155
- /* @__PURE__ */ jsx25(
3183
+ /* @__PURE__ */ jsx26(
3156
3184
  EVMModal,
3157
3185
  {
3158
3186
  isOpen: EVMIsOpen && (EVMType == "login" && !overview && !token || EVMType == "bind" && !!token && !!overview),
@@ -3162,7 +3190,7 @@ function BusinessProvider({ children }) {
3162
3190
  zIndex: 199
3163
3191
  }
3164
3192
  ),
3165
- /* @__PURE__ */ jsx25(
3193
+ /* @__PURE__ */ jsx26(
3166
3194
  TRONModal,
3167
3195
  {
3168
3196
  isOpen: TRONIsOpen && (TRONType == "login" && !overview && !token || TRONType == "bind" && !!token && !!overview),
@@ -3172,7 +3200,7 @@ function BusinessProvider({ children }) {
3172
3200
  zIndex: 199
3173
3201
  }
3174
3202
  ),
3175
- /* @__PURE__ */ jsx25(
3203
+ /* @__PURE__ */ jsx26(
3176
3204
  TONModal,
3177
3205
  {
3178
3206
  isOpen: TONIsOpen && (TONType == "login" && !overview && !token || TONType == "bind" && !!token && !!overview),
@@ -3182,7 +3210,7 @@ function BusinessProvider({ children }) {
3182
3210
  zIndex: 199
3183
3211
  }
3184
3212
  ),
3185
- /* @__PURE__ */ jsx25(
3213
+ /* @__PURE__ */ jsx26(
3186
3214
  BTCModal,
3187
3215
  {
3188
3216
  isOpen: BTCIsOpen && (BTCType == "login" && !overview && !token || BTCType == "bind" && !!token && !!overview),
@@ -3192,7 +3220,7 @@ function BusinessProvider({ children }) {
3192
3220
  zIndex: 199
3193
3221
  }
3194
3222
  ),
3195
- /* @__PURE__ */ jsx25(
3223
+ /* @__PURE__ */ jsx26(
3196
3224
  CEXBindModal,
3197
3225
  {
3198
3226
  isOpen: CEXIsOpen && (!!token && !!overview),
@@ -3201,7 +3229,7 @@ function BusinessProvider({ children }) {
3201
3229
  zIndex: 199
3202
3230
  }
3203
3231
  ),
3204
- /* @__PURE__ */ jsx25(
3232
+ /* @__PURE__ */ jsx26(
3205
3233
  WalletModal,
3206
3234
  {
3207
3235
  isOpen: WalletModalStore.isOpen && (WalletModalStore.type == "login" && !overview && !token || WalletModalStore.type == "bind" && !!token && !!overview),
@@ -3211,14 +3239,22 @@ function BusinessProvider({ children }) {
3211
3239
  zIndex: 150
3212
3240
  }
3213
3241
  ),
3242
+ /* @__PURE__ */ jsx26(
3243
+ BindEmailModal_default,
3244
+ {
3245
+ isOpen: EmailIsOpen && (EmailType == "bind" && !!token && !!overview),
3246
+ onClose: EmailClose,
3247
+ onLogin: EmailClose
3248
+ }
3249
+ ),
3214
3250
  children
3215
3251
  ] });
3216
3252
  }
3217
3253
 
3218
3254
  // src/context/index.tsx
3219
- import { jsx as jsx26 } from "react/jsx-runtime";
3255
+ import { jsx as jsx27 } from "react/jsx-runtime";
3220
3256
  var Providers = ({ children }) => {
3221
- 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 }) }) });
3222
3258
  };
3223
3259
  var context_default = Providers;
3224
3260
 
@@ -3692,7 +3728,7 @@ var en_default = {
3692
3728
  noMore: "No more",
3693
3729
  Remove: "Remove",
3694
3730
  removeSuccess: "Remove Successfully",
3695
- loginAgreement: "By logging in, you agree to our <termsLink>Terms of Service</termsLink> and <privacyLink>Privacy Policy</privacyLink>",
3731
+ loginAgreement: "By login, you agree to our <termsLink>Terms of Service</termsLink> and <privacyLink>Privacy Policy</privacyLink>",
3696
3732
  poweredBy: "Powered by"
3697
3733
  };
3698
3734
 
@@ -4440,7 +4476,7 @@ import {
4440
4476
  } from "@rainbow-me/rainbowkit/wallets";
4441
4477
  import { arbitrum, base, bsc, mainnet, optimism, polygon } from "wagmi/chains";
4442
4478
  import { WagmiProvider } from "wagmi";
4443
- import { jsx as jsx27 } from "react/jsx-runtime";
4479
+ import { jsx as jsx28 } from "react/jsx-runtime";
4444
4480
  var queryClient = new QueryClient();
4445
4481
  var wagmiConfig = getDefaultConfig({
4446
4482
  appName: "MatchID",
@@ -4479,7 +4515,7 @@ var MatchProvider = ({
4479
4515
  useWalletInit({
4480
4516
  config: wallet
4481
4517
  });
4482
- 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(
4483
4519
  MatchContext.Provider,
4484
4520
  {
4485
4521
  value: {
@@ -4490,7 +4526,7 @@ var MatchProvider = ({
4490
4526
  theme,
4491
4527
  locale: realLocale
4492
4528
  },
4493
- children: /* @__PURE__ */ jsx27(context_default, { children })
4529
+ children: /* @__PURE__ */ jsx28(context_default, { children })
4494
4530
  }
4495
4531
  ) }) }) });
4496
4532
  };
@@ -4526,6 +4562,7 @@ function useUserInfo() {
4526
4562
  const { open: BTCOpen } = useBTCModalStore();
4527
4563
  const { open: CEXBindOpen } = useCEXBindModalStore();
4528
4564
  const walletModalStore = useWalletModalStore();
4565
+ const emailModalStore = useEmailModalStore();
4529
4566
  const getRedirectUri = () => {
4530
4567
  return encodeURIComponent(window.location.href);
4531
4568
  };
@@ -4618,8 +4655,8 @@ function useUserInfo() {
4618
4655
  case "discord":
4619
4656
  case "github":
4620
4657
  case "linkedin":
4621
- case "kakao":
4622
4658
  case "facebook":
4659
+ case "kakao":
4623
4660
  return await loginByMethod(method);
4624
4661
  default:
4625
4662
  throw new Error("unsupported method");
@@ -4704,6 +4741,8 @@ function useUserInfo() {
4704
4741
  return TONOpen("bind");
4705
4742
  case "btc":
4706
4743
  return BTCOpen("bind");
4744
+ case "email":
4745
+ return emailModalStore.open("bind");
4707
4746
  case "telegram":
4708
4747
  return await bindTelegram();
4709
4748
  case "twitter":
@@ -4713,6 +4752,7 @@ function useUserInfo() {
4713
4752
  case "linkedin":
4714
4753
  case "facebook":
4715
4754
  case "youtube":
4755
+ case "kakao":
4716
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" : ""}`;
4717
4757
  matchlog_default.log("link", link);
4718
4758
  return window.open(
@@ -4727,6 +4767,31 @@ function useUserInfo() {
4727
4767
  const bindCex = (type) => {
4728
4768
  return CEXBindOpen(type);
4729
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
+ };
4730
4795
  const getAuthInfo = async (method) => {
4731
4796
  const element_id = "auth_iframe";
4732
4797
  if (document.getElementById(element_id)) {
@@ -4795,6 +4860,7 @@ function useUserInfo() {
4795
4860
  auth,
4796
4861
  login: loginMethod,
4797
4862
  bind,
4863
+ bindByEmail,
4798
4864
  getAuthInfo,
4799
4865
  invite
4800
4866
  };
@@ -4803,10 +4869,10 @@ function useUserInfo() {
4803
4869
  // src/components/EmailModal/StepVerify.tsx
4804
4870
  import { useEffect as useEffect20, useMemo as useMemo9, useRef as useRef6, useState as useState18 } from "react";
4805
4871
  import { FormattedMessage as FormattedMessage6, useIntl as useIntl7 } from "react-intl";
4806
- import { jsx as jsx28, jsxs as jsxs15 } from "react/jsx-runtime";
4872
+ import { jsx as jsx29, jsxs as jsxs15 } from "react/jsx-runtime";
4807
4873
  function StepVerify(props) {
4808
4874
  const intl = useIntl7();
4809
- const { getLoginEmailCode, loginByEmail } = useUserInfo();
4875
+ const { getLoginEmailCode, loginByEmail, bindByEmail } = useUserInfo();
4810
4876
  const [error, setError] = useState18("");
4811
4877
  const [code, setCode] = useState18("");
4812
4878
  const [sending, setSending] = useState18(false);
@@ -4866,7 +4932,10 @@ function StepVerify(props) {
4866
4932
  try {
4867
4933
  setError("");
4868
4934
  setSubmitting(true);
4869
- const res = await loginByEmail({
4935
+ const res = props.type === "bind" ? await bindByEmail({
4936
+ email: props.email,
4937
+ code
4938
+ }) : await loginByEmail({
4870
4939
  email: props.email,
4871
4940
  code
4872
4941
  });
@@ -4882,15 +4951,15 @@ function StepVerify(props) {
4882
4951
  };
4883
4952
  return /* @__PURE__ */ jsxs15("div", { className: "matchid-email-verify-box", children: [
4884
4953
  /* @__PURE__ */ jsxs15("div", { className: "matchid-email-verify-header", children: [
4885
- /* @__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 }) }),
4886
4955
  /* @__PURE__ */ jsxs15("div", { className: "matchid-email-verify-header-content", children: [
4887
- /* @__PURE__ */ jsx28("div", { className: "matchid-email-verify-header-value", children: props.email }),
4888
- /* @__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" }) })
4889
4958
  ] })
4890
4959
  ] }),
4891
- /* @__PURE__ */ jsx28(Field, { label: intl.formatMessage({
4960
+ /* @__PURE__ */ jsx29(Field, { label: intl.formatMessage({
4892
4961
  id: "verificationCode"
4893
- }), error, children: /* @__PURE__ */ jsx28(
4962
+ }), error, children: /* @__PURE__ */ jsx29(
4894
4963
  Input,
4895
4964
  {
4896
4965
  placeholder: intl.formatMessage({
@@ -4900,7 +4969,7 @@ function StepVerify(props) {
4900
4969
  maxLength: codeLength,
4901
4970
  onChange: (e) => setCode(e.target.value),
4902
4971
  value: code,
4903
- after: /* @__PURE__ */ jsx28(
4972
+ after: /* @__PURE__ */ jsx29(
4904
4973
  Button,
4905
4974
  {
4906
4975
  highlight: true,
@@ -4919,19 +4988,20 @@ function StepVerify(props) {
4919
4988
  )
4920
4989
  }
4921
4990
  ) }),
4922
- /* @__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" }) })
4923
4992
  ] });
4924
4993
  }
4925
4994
 
4926
4995
  // src/components/EmailModal/index.tsx
4927
4996
  import { useIntl as useIntl8 } from "react-intl";
4928
- import { jsx as jsx29 } from "react/jsx-runtime";
4997
+ import { jsx as jsx30 } from "react/jsx-runtime";
4929
4998
  function EmailModal({
4930
4999
  isOpen = false,
4931
5000
  width = 480,
4932
5001
  onClose,
4933
5002
  onBack,
4934
- onLogin
5003
+ onLogin,
5004
+ type = "login"
4935
5005
  }) {
4936
5006
  const [step, setStep] = useState19("input");
4937
5007
  const [emailVal, setEmailVal] = useState19("");
@@ -4942,7 +5012,7 @@ function EmailModal({
4942
5012
  setEmailVal("");
4943
5013
  }
4944
5014
  }, [isOpen]);
4945
- return /* @__PURE__ */ jsx29(
5015
+ return /* @__PURE__ */ jsx30(
4946
5016
  ModalWithHeader,
4947
5017
  {
4948
5018
  isOpen,
@@ -4952,10 +5022,10 @@ function EmailModal({
4952
5022
  id: "email"
4953
5023
  }),
4954
5024
  onBack: step == "verify" ? () => setStep("input") : onBack,
4955
- children: step === "input" ? /* @__PURE__ */ jsx29(StepEmail, { email: emailVal, onContinue: (email) => {
5025
+ children: step === "input" ? /* @__PURE__ */ jsx30(StepEmail, { email: emailVal, onContinue: (email) => {
4956
5026
  setEmailVal(email);
4957
5027
  setStep("verify");
4958
- } }) : /* @__PURE__ */ jsx29(StepVerify, { email: emailVal, onSuccess: onLogin })
5028
+ } }) : /* @__PURE__ */ jsx30(StepVerify, { type, email: emailVal, onSuccess: onLogin })
4959
5029
  }
4960
5030
  );
4961
5031
  }
@@ -4985,7 +5055,7 @@ function useAppConfig() {
4985
5055
  }
4986
5056
 
4987
5057
  // src/components/LoginBox/index.tsx
4988
- 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";
4989
5059
  var RecommendItem = ({
4990
5060
  icon,
4991
5061
  name,
@@ -4997,17 +5067,17 @@ var RecommendItem = ({
4997
5067
  return /* @__PURE__ */ jsxs16("div", { className: "matchid-login-recommend-method", children: [
4998
5068
  /* @__PURE__ */ jsxs16("div", { className: "matchid-login-recommend-method-item", onClick, children: [
4999
5069
  /* @__PURE__ */ jsxs16("div", { className: "matchid-login-recommend-method-content", children: [
5000
- /* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-method-icon", children: icon }),
5001
- /* @__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 })
5002
5072
  ] }),
5003
- footer ? footer : children ? /* @__PURE__ */ jsx30(
5073
+ footer ? footer : children ? /* @__PURE__ */ jsx31(
5004
5074
  ArrowDownIcon,
5005
5075
  {
5006
5076
  className: `matchid-login-recommend-method-arrow ${showChildren ? "matchid-login-recommend-method-arrow-active" : ""}`,
5007
5077
  size: 20,
5008
5078
  color: "var(--matchid-arrow-color)"
5009
5079
  }
5010
- ) : /* @__PURE__ */ jsx30(
5080
+ ) : /* @__PURE__ */ jsx31(
5011
5081
  ArrowRightIcon,
5012
5082
  {
5013
5083
  className: "matchid-login-recommend-method-arrow",
@@ -5016,7 +5086,7 @@ var RecommendItem = ({
5016
5086
  }
5017
5087
  )
5018
5088
  ] }),
5019
- children && /* @__PURE__ */ jsx30(
5089
+ children && /* @__PURE__ */ jsx31(
5020
5090
  "div",
5021
5091
  {
5022
5092
  className: `matchid-login-recommend-method-popover ${showChildren ? "matchid-login-recommend-method-popover-active" : ""}`,
@@ -5053,7 +5123,7 @@ function LoginBox({
5053
5123
  }
5054
5124
  return p.toLowerCase();
5055
5125
  });
5056
- console.log("platform2", platform);
5126
+ console.log("platform", platform);
5057
5127
  const walletMethodList = WALLET_METHODS.filter((m) => platform.includes(m));
5058
5128
  let recommendMethodList = walletMethodList.length > 0 ? ["wallet"] : [];
5059
5129
  let methodList = [];
@@ -5081,60 +5151,60 @@ function LoginBox({
5081
5151
  const isDownMd = useDownMd();
5082
5152
  const methodMap = {
5083
5153
  wallet: {
5084
- icon: /* @__PURE__ */ jsx30(WalletIcon, { size: isDownMd ? 36 : 40 }),
5154
+ icon: /* @__PURE__ */ jsx31(WalletIcon, { size: isDownMd ? 36 : 40 }),
5085
5155
  name: intl.formatMessage({ id: "wallet" }),
5086
5156
  onClick: () => setShowWallet(!showWallet),
5087
5157
  type: "wallet"
5088
5158
  },
5089
5159
  email: {
5090
- icon: /* @__PURE__ */ jsx30(EmailIcon, { size: isDownMd ? 36 : 40 }),
5160
+ icon: /* @__PURE__ */ jsx31(EmailIcon, { size: isDownMd ? 36 : 40 }),
5091
5161
  name: intl.formatMessage({ id: "email" }),
5092
5162
  onClick: () => {
5093
5163
  setEmailOpen(true);
5094
5164
  }
5095
5165
  },
5096
5166
  google: {
5097
- icon: /* @__PURE__ */ jsx30(GoogleIcon, { size: isDownMd ? 36 : 40 }),
5167
+ icon: /* @__PURE__ */ jsx31(GoogleIcon, { size: isDownMd ? 36 : 40 }),
5098
5168
  name: "Google",
5099
5169
  onClick: () => login("google")
5100
5170
  },
5101
5171
  twitter: {
5102
- icon: /* @__PURE__ */ jsx30(XIcon, { size: isDownMd ? 36 : 40 }),
5172
+ icon: /* @__PURE__ */ jsx31(XIcon, { size: isDownMd ? 36 : 40 }),
5103
5173
  name: "X",
5104
5174
  onClick: () => login("twitter")
5105
5175
  },
5106
5176
  telegram: {
5107
- icon: /* @__PURE__ */ jsx30(TelegramIcon, { size: isDownMd ? 36 : 40 }),
5177
+ icon: /* @__PURE__ */ jsx31(TelegramIcon, { size: isDownMd ? 36 : 40 }),
5108
5178
  name: "Telegram",
5109
5179
  onClick: () => login("telegram")
5110
5180
  },
5111
5181
  github: {
5112
- icon: /* @__PURE__ */ jsx30(GithubIcon, { size: isDownMd ? 36 : 40 }),
5182
+ icon: /* @__PURE__ */ jsx31(GithubIcon, { size: isDownMd ? 36 : 40 }),
5113
5183
  name: "Github",
5114
5184
  onClick: () => login("github")
5115
5185
  },
5116
5186
  discord: {
5117
- icon: /* @__PURE__ */ jsx30(DiscordIcon, { size: isDownMd ? 36 : 40 }),
5187
+ icon: /* @__PURE__ */ jsx31(DiscordIcon, { size: isDownMd ? 36 : 40 }),
5118
5188
  name: "Discord",
5119
5189
  onClick: () => login("discord")
5120
5190
  },
5121
5191
  linkedin: {
5122
- icon: /* @__PURE__ */ jsx30(LinkedinIcon, { size: isDownMd ? 36 : 40 }),
5192
+ icon: /* @__PURE__ */ jsx31(LinkedinIcon, { size: isDownMd ? 36 : 40 }),
5123
5193
  name: "LinkedIn",
5124
5194
  onClick: () => login("linkedin")
5125
5195
  },
5126
5196
  facebook: {
5127
- icon: /* @__PURE__ */ jsx30(FacebookIcon, { size: isDownMd ? 36 : 40 }),
5197
+ icon: /* @__PURE__ */ jsx31(FacebookIcon, { size: isDownMd ? 36 : 40 }),
5128
5198
  name: "Facebook",
5129
5199
  onClick: () => login("facebook")
5130
5200
  },
5131
5201
  youtube: {
5132
- icon: /* @__PURE__ */ jsx30(YoutubeIcon, { size: isDownMd ? 36 : 40 }),
5202
+ icon: /* @__PURE__ */ jsx31(YoutubeIcon, { size: isDownMd ? 36 : 40 }),
5133
5203
  name: "Youtube",
5134
5204
  onClick: () => login("youtube")
5135
5205
  },
5136
5206
  kakao: {
5137
- icon: /* @__PURE__ */ jsx30(KakaoIcon, { size: isDownMd ? 36 : 40 }),
5207
+ icon: /* @__PURE__ */ jsx31(KakaoIcon, { size: isDownMd ? 36 : 40 }),
5138
5208
  name: "Kakao",
5139
5209
  onClick: () => login("kakao")
5140
5210
  }
@@ -5142,8 +5212,8 @@ function LoginBox({
5142
5212
  const { walletMap } = useWalletConfig();
5143
5213
  return /* @__PURE__ */ jsxs16(Fragment5, { children: [
5144
5214
  (!inModal || !emailOpen) && /* @__PURE__ */ jsxs16("div", { className: "matchid-login-box", children: [
5145
- /* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-list", children: methodConfig.recommendMethods.map((m) => {
5146
- return /* @__PURE__ */ jsx30(
5215
+ /* @__PURE__ */ jsx31("div", { className: "matchid-login-recommend-list", children: methodConfig.recommendMethods.map((m) => {
5216
+ return /* @__PURE__ */ jsx31(
5147
5217
  RecommendItem,
5148
5218
  {
5149
5219
  icon: methodMap[m]?.icon,
@@ -5151,8 +5221,8 @@ function LoginBox({
5151
5221
  onClick: methodMap[m]?.onClick,
5152
5222
  showChildren: m == "wallet" && showWallet,
5153
5223
  children: m == "wallet" && /* @__PURE__ */ jsxs16(Fragment5, { children: [
5154
- /* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-wallet-divider" }),
5155
- /* @__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) => {
5156
5226
  const m2 = walletMap[n];
5157
5227
  return /* @__PURE__ */ jsxs16(
5158
5228
  "div",
@@ -5163,15 +5233,15 @@ function LoginBox({
5163
5233
  },
5164
5234
  children: [
5165
5235
  /* @__PURE__ */ jsxs16("div", { className: "matchid-login-recommend-wallet-item-content", children: [
5166
- /* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-wallet-item-icon", children: m2.icon }),
5167
- /* @__PURE__ */ jsx30(
5236
+ /* @__PURE__ */ jsx31("div", { className: "matchid-login-recommend-wallet-item-icon", children: m2.icon }),
5237
+ /* @__PURE__ */ jsx31(
5168
5238
  "div",
5169
5239
  {
5170
5240
  className: "matchid-login-recommend-wallet-item-hover-icon",
5171
5241
  children: m2.activeIcon
5172
5242
  }
5173
5243
  ),
5174
- /* @__PURE__ */ jsx30(
5244
+ /* @__PURE__ */ jsx31(
5175
5245
  "span",
5176
5246
  {
5177
5247
  className: "matchid-login-recommend-wallet-item-name",
@@ -5179,7 +5249,7 @@ function LoginBox({
5179
5249
  }
5180
5250
  )
5181
5251
  ] }),
5182
- /* @__PURE__ */ jsx30(
5252
+ /* @__PURE__ */ jsx31(
5183
5253
  ArrowRightIcon,
5184
5254
  {
5185
5255
  className: "matchid-login-recommend-wallet-item-arrow",
@@ -5198,12 +5268,12 @@ function LoginBox({
5198
5268
  );
5199
5269
  }) }),
5200
5270
  /* @__PURE__ */ jsxs16("div", { className: "matchid-privacy-policy", children: [
5201
- /* @__PURE__ */ jsx30("div", { className: "matchid-privacy-policy-content", children: /* @__PURE__ */ jsx30(
5271
+ /* @__PURE__ */ jsx31("div", { className: "matchid-privacy-policy-content", children: /* @__PURE__ */ jsx31(
5202
5272
  FormattedMessage7,
5203
5273
  {
5204
5274
  id: "loginAgreement",
5205
5275
  values: {
5206
- termsLink: (chunks) => /* @__PURE__ */ jsx30(
5276
+ termsLink: (chunks) => /* @__PURE__ */ jsx31(
5207
5277
  "a",
5208
5278
  {
5209
5279
  href: TERMS_OF_SERVICE_URL,
@@ -5213,7 +5283,7 @@ function LoginBox({
5213
5283
  children: chunks
5214
5284
  }
5215
5285
  ),
5216
- privacyLink: (chunks) => /* @__PURE__ */ jsx30(
5286
+ privacyLink: (chunks) => /* @__PURE__ */ jsx31(
5217
5287
  "a",
5218
5288
  {
5219
5289
  href: PRIVACY_POLICY_URL,
@@ -5227,18 +5297,18 @@ function LoginBox({
5227
5297
  }
5228
5298
  ) }),
5229
5299
  /* @__PURE__ */ jsxs16("div", { className: "matchid-privacy-policy-powered-by", children: [
5230
- /* @__PURE__ */ jsx30(FormattedMessage7, { id: "poweredBy" }),
5231
- /* @__PURE__ */ jsx30(MatchIdIcon_default, {})
5300
+ /* @__PURE__ */ jsx31(FormattedMessage7, { id: "poweredBy" }),
5301
+ /* @__PURE__ */ jsx31(MatchIdIcon_default, {})
5232
5302
  ] })
5233
5303
  ] }),
5234
5304
  methodConfig.methods.length > 0 && /* @__PURE__ */ jsxs16("div", { className: "matchid-login-other", children: [
5235
5305
  /* @__PURE__ */ jsxs16("div", { className: "matchid-login-other-line-box", children: [
5236
- /* @__PURE__ */ jsx30("div", { className: "matchid-login-other-line" }),
5237
- /* @__PURE__ */ jsx30("div", { className: "matchid-login-other-text", children: /* @__PURE__ */ jsx30(FormattedMessage7, { id: "otherLoginMethods" }) }),
5238
- /* @__PURE__ */ jsx30("div", { className: "matchid-login-other-line" })
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" })
5239
5309
  ] }),
5240
- /* @__PURE__ */ jsx30("div", { className: "matchid-login-method-box", children: methodConfig.methods.map((m) => {
5241
- return /* @__PURE__ */ jsx30(
5310
+ /* @__PURE__ */ jsx31("div", { className: "matchid-login-method-box", children: methodConfig.methods.map((m) => {
5311
+ return /* @__PURE__ */ jsx31(
5242
5312
  "div",
5243
5313
  {
5244
5314
  className: "matchid-login-method-item",
@@ -5251,7 +5321,7 @@ function LoginBox({
5251
5321
  }) })
5252
5322
  ] })
5253
5323
  ] }),
5254
- /* @__PURE__ */ jsx30(
5324
+ /* @__PURE__ */ jsx31(
5255
5325
  EmailModal,
5256
5326
  {
5257
5327
  isOpen: emailOpen,
@@ -5271,7 +5341,7 @@ import { useState as useState22 } from "react";
5271
5341
 
5272
5342
  // src/components/LoginPanel/index.tsx
5273
5343
  import { FormattedMessage as FormattedMessage8 } from "react-intl";
5274
- import { jsx as jsx31, jsxs as jsxs17 } from "react/jsx-runtime";
5344
+ import { jsx as jsx32, jsxs as jsxs17 } from "react/jsx-runtime";
5275
5345
  function LoginPanel({
5276
5346
  header,
5277
5347
  onClose,
@@ -5281,30 +5351,30 @@ function LoginPanel({
5281
5351
  return /* @__PURE__ */ jsxs17("div", { className: "matchid-login-panel", children: [
5282
5352
  header ? header : /* @__PURE__ */ jsxs17("div", { className: "matchid-login-panel-header", children: [
5283
5353
  /* @__PURE__ */ jsxs17("div", { className: "matchid-login-panel-header-content", children: [
5284
- /* @__PURE__ */ jsx31("div", { className: "matchid-login-panel-header-title", children: /* @__PURE__ */ jsx31(FormattedMessage8, { id: "loginTitle" }) }),
5285
- /* @__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" }) })
5286
5356
  ] }),
5287
- 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 }) })
5288
5358
  ] }),
5289
- /* @__PURE__ */ jsx31("div", { className: "matchid-login-panel-divide" }),
5290
- /* @__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 }) })
5291
5361
  ] });
5292
5362
  }
5293
5363
 
5294
5364
  // src/components/LoginModal/index.tsx
5295
- import { jsx as jsx32 } from "react/jsx-runtime";
5365
+ import { jsx as jsx33 } from "react/jsx-runtime";
5296
5366
  function LoginModal({
5297
5367
  isOpen = false,
5298
5368
  width = 480,
5299
5369
  ...props
5300
5370
  }) {
5301
5371
  const { isLogin } = useUserInfo();
5302
- return /* @__PURE__ */ jsx32(
5372
+ return /* @__PURE__ */ jsx33(
5303
5373
  Modal,
5304
5374
  {
5305
5375
  isOpen: isOpen && !isLogin,
5306
5376
  width,
5307
- children: /* @__PURE__ */ jsx32(LoginPanel, { ...props, inModal: true })
5377
+ children: /* @__PURE__ */ jsx33(LoginPanel, { ...props, inModal: true })
5308
5378
  }
5309
5379
  );
5310
5380
  }
@@ -5313,10 +5383,10 @@ function LoginModal({
5313
5383
  import { useState as useState21 } from "react";
5314
5384
 
5315
5385
  // src/assets/icon/ProfileIcon.tsx
5316
- import { jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
5386
+ import { jsx as jsx34, jsxs as jsxs18 } from "react/jsx-runtime";
5317
5387
  function ProfileIcon({ size = 24, color = "black", ...props }) {
5318
5388
  return /* @__PURE__ */ jsxs18("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
5319
- /* @__PURE__ */ jsx33(
5389
+ /* @__PURE__ */ jsx34(
5320
5390
  "path",
5321
5391
  {
5322
5392
  fillRule: "evenodd",
@@ -5325,7 +5395,7 @@ function ProfileIcon({ size = 24, color = "black", ...props }) {
5325
5395
  fill: color
5326
5396
  }
5327
5397
  ),
5328
- /* @__PURE__ */ jsx33(
5398
+ /* @__PURE__ */ jsx34(
5329
5399
  "path",
5330
5400
  {
5331
5401
  fillRule: "evenodd",
@@ -5339,7 +5409,7 @@ function ProfileIcon({ size = 24, color = "black", ...props }) {
5339
5409
 
5340
5410
  // src/components/UserPopover/index.tsx
5341
5411
  import { FormattedMessage as FormattedMessage9, useIntl as useIntl10 } from "react-intl";
5342
- import { jsx as jsx34, jsxs as jsxs19 } from "react/jsx-runtime";
5412
+ import { jsx as jsx35, jsxs as jsxs19 } from "react/jsx-runtime";
5343
5413
  function UserContent() {
5344
5414
  const { logout, address, username } = useUserInfo();
5345
5415
  const [logouting, setLogouting] = useState21(false);
@@ -5363,31 +5433,31 @@ function UserContent() {
5363
5433
  return /* @__PURE__ */ jsxs19("div", { className: "matchid-user-popover-item", onClick, children: [
5364
5434
  /* @__PURE__ */ jsxs19("div", { className: `matchid-user-popover-item-content`, children: [
5365
5435
  icon,
5366
- /* @__PURE__ */ jsx34("div", { className: "matchid-user-popover-item-text", children })
5436
+ /* @__PURE__ */ jsx35("div", { className: "matchid-user-popover-item-text", children })
5367
5437
  ] }),
5368
5438
  rightIcon
5369
5439
  ] });
5370
5440
  };
5371
5441
  const UserDivider = () => {
5372
- return /* @__PURE__ */ jsx34("div", { className: `matchid-user-popover-divider` });
5442
+ return /* @__PURE__ */ jsx35("div", { className: `matchid-user-popover-divider` });
5373
5443
  };
5374
5444
  const [usernameOpen, setUsernameOpen] = useState21(false);
5375
5445
  const [copied, setCopied] = useCopyClipboard();
5376
5446
  const intl = useIntl10();
5377
5447
  return /* @__PURE__ */ jsxs19("div", { className: "matchid-user-popover-content", children: [
5378
5448
  /* @__PURE__ */ jsxs19("div", { className: "matchid-user-popover-list", children: [
5379
- /* @__PURE__ */ jsx34(UserItem, { onClick: () => {
5449
+ /* @__PURE__ */ jsx35(UserItem, { onClick: () => {
5380
5450
  setCopied(address);
5381
- }, 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) }),
5382
- /* @__PURE__ */ jsx34(UserDivider, {}),
5383
- /* @__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: () => {
5384
5454
  setUsernameOpen(true);
5385
- }, 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({
5386
5456
  id: "setUsername"
5387
5457
  }) })
5388
5458
  ] }),
5389
- /* @__PURE__ */ jsx34(Button, { onClick: onLogout, loading: logouting, children: /* @__PURE__ */ jsx34(FormattedMessage9, { id: "disconnect" }) }),
5390
- /* @__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: () => {
5391
5461
  setUsernameOpen(false);
5392
5462
  }, onSuccess: () => {
5393
5463
  setUsernameOpen(false);
@@ -5398,12 +5468,12 @@ function UserPopover({
5398
5468
  children,
5399
5469
  ...props
5400
5470
  }) {
5401
- return /* @__PURE__ */ jsx34(Popover, { ...props, content: /* @__PURE__ */ jsx34(UserContent, {}), children });
5471
+ return /* @__PURE__ */ jsx35(Popover, { ...props, content: /* @__PURE__ */ jsx35(UserContent, {}), children });
5402
5472
  }
5403
5473
 
5404
5474
  // src/components/LoginButton/index.tsx
5405
5475
  import { FormattedMessage as FormattedMessage10, useIntl as useIntl11 } from "react-intl";
5406
- 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";
5407
5477
  function LoginButton({
5408
5478
  loginRender,
5409
5479
  methods,
@@ -5420,7 +5490,7 @@ function LoginButton({
5420
5490
  const [loginOpen, setLoginOpen] = useState22(false);
5421
5491
  if (!isLogin) {
5422
5492
  return /* @__PURE__ */ jsxs20(Fragment6, { children: [
5423
- /* @__PURE__ */ jsx35(
5493
+ /* @__PURE__ */ jsx36(
5424
5494
  LoginModal,
5425
5495
  {
5426
5496
  methods,
@@ -5431,14 +5501,14 @@ function LoginButton({
5431
5501
  }
5432
5502
  ),
5433
5503
  /* @__PURE__ */ jsxs20(Button, { className: "matchid-unlogin-btn", ...props, highlight: true, onClick: () => setLoginOpen(true), children: [
5434
- /* @__PURE__ */ jsx35(UnLoginIcon_default, {}),
5435
- /* @__PURE__ */ jsx35("span", { children: /* @__PURE__ */ jsx35(FormattedMessage10, { id: "login" }) })
5504
+ /* @__PURE__ */ jsx36(UnLoginIcon_default, {}),
5505
+ /* @__PURE__ */ jsx36("span", { children: /* @__PURE__ */ jsx36(FormattedMessage10, { id: "login" }) })
5436
5506
  ] })
5437
5507
  ] });
5438
5508
  }
5439
- 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: [
5440
- /* @__PURE__ */ jsx35(LoginIcon_default, {}),
5441
- /* @__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({
5442
5512
  id: "user"
5443
5513
  }) })
5444
5514
  ] }) });
@@ -5447,15 +5517,15 @@ function LoginButton({
5447
5517
  // src/components/UsernameModal/index.tsx
5448
5518
  import { useEffect as useEffect22, useMemo as useMemo11, useState as useState23 } from "react";
5449
5519
  import { FormattedMessage as FormattedMessage11, useIntl as useIntl12 } from "react-intl";
5450
- import { jsx as jsx36, jsxs as jsxs21 } from "react/jsx-runtime";
5520
+ import { jsx as jsx37, jsxs as jsxs21 } from "react/jsx-runtime";
5451
5521
  var ValidItem = ({
5452
5522
  success = false,
5453
5523
  text
5454
5524
  }) => {
5455
5525
  const isDownMd = useDownMd();
5456
5526
  return /* @__PURE__ */ jsxs21("div", { className: `matchid-valid-status-item matchid-valid-status-${success ? "success" : "error"}`, children: [
5457
- success ? /* @__PURE__ */ jsx36(CheckRoundIcon, { size: isDownMd ? 12 : 16 }) : /* @__PURE__ */ jsx36(InfoLineIcon, { size: isDownMd ? 12 : 16 }),
5458
- /* @__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 })
5459
5529
  ] });
5460
5530
  };
5461
5531
  function UsernameModal({
@@ -5503,12 +5573,12 @@ function UsernameModal({
5503
5573
  }
5504
5574
  };
5505
5575
  const intl = useIntl12();
5506
- 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({
5507
5577
  id: username ? "editUsernameTitle" : "setUsernameTitle"
5508
5578
  }), children: /* @__PURE__ */ jsxs21("div", { className: "matchid-username-box", children: [
5509
- /* @__PURE__ */ jsx36(Field, { label: intl.formatMessage({
5579
+ /* @__PURE__ */ jsx37(Field, { label: intl.formatMessage({
5510
5580
  id: "username"
5511
- }), error, children: /* @__PURE__ */ jsx36(
5581
+ }), error, children: /* @__PURE__ */ jsx37(
5512
5582
  Input,
5513
5583
  {
5514
5584
  placeholder: intl.formatMessage({
@@ -5522,7 +5592,7 @@ function UsernameModal({
5522
5592
  }
5523
5593
  ) }),
5524
5594
  /* @__PURE__ */ jsxs21("div", { className: "matchid-valid", children: [
5525
- /* @__PURE__ */ jsx36(
5595
+ /* @__PURE__ */ jsx37(
5526
5596
  ValidItem,
5527
5597
  {
5528
5598
  success: isValid,
@@ -5531,16 +5601,16 @@ function UsernameModal({
5531
5601
  })
5532
5602
  }
5533
5603
  ),
5534
- /* @__PURE__ */ jsx36(ValidItem, { success: isLength, text: intl.formatMessage({
5604
+ /* @__PURE__ */ jsx37(ValidItem, { success: isLength, text: intl.formatMessage({
5535
5605
  id: "usernameLengthError"
5536
5606
  }) })
5537
5607
  ] }),
5538
- /* @__PURE__ */ jsx36(Button, { disabled: !isSafe, loading: isSubmitting, style: {
5608
+ /* @__PURE__ */ jsx37(Button, { disabled: !isSafe, loading: isSubmitting, style: {
5539
5609
  marginTop: isDownMd ? "36px" : "64px"
5540
- }, onClick: onSubmit, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ jsx36(FormattedMessage11, { id: "confirm" }) }),
5541
- /* @__PURE__ */ jsx36(Button, { style: {
5610
+ }, onClick: onSubmit, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ jsx37(FormattedMessage11, { id: "confirm" }) }),
5611
+ /* @__PURE__ */ jsx37(Button, { style: {
5542
5612
  marginTop: isDownMd ? "12px" : "24px"
5543
- }, 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" }) })
5544
5614
  ] }) });
5545
5615
  }
5546
5616
 
@@ -5559,7 +5629,7 @@ var walletConnectImage = wallet_default;
5559
5629
  var walletSigningImage = signing_default;
5560
5630
 
5561
5631
  // src/components/WalletModalContent/index.tsx
5562
- import { jsx as jsx37, jsxs as jsxs22 } from "react/jsx-runtime";
5632
+ import { jsx as jsx38, jsxs as jsxs22 } from "react/jsx-runtime";
5563
5633
  function WalletModalContent({
5564
5634
  status,
5565
5635
  error,
@@ -5629,15 +5699,15 @@ function WalletModalContent({
5629
5699
  statusImage: walletConnectImage
5630
5700
  };
5631
5701
  }, [visible, connected, status, error, address]);
5632
- 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: [
5633
5703
  /* @__PURE__ */ jsxs22("div", { className: `matchid-wallet-content`, children: [
5634
- /* @__PURE__ */ jsx37(Lottie_default, { animationData: pageData.statusImage, style: {
5704
+ /* @__PURE__ */ jsx38(Lottie_default, { animationData: pageData.statusImage, style: {
5635
5705
  width: 128,
5636
5706
  height: 128
5637
5707
  } }),
5638
- /* @__PURE__ */ jsx37("div", { className: pageData.isError ? "matchid-error" : "", children: pageData.text })
5708
+ /* @__PURE__ */ jsx38("div", { className: pageData.isError ? "matchid-error" : "", children: pageData.text })
5639
5709
  ] }),
5640
- /* @__PURE__ */ jsx37(
5710
+ /* @__PURE__ */ jsx38(
5641
5711
  Button,
5642
5712
  {
5643
5713
  block: true,
@@ -5713,15 +5783,15 @@ function WalletModalContentV2(props) {
5713
5783
  statusImage: walletConnectImage
5714
5784
  };
5715
5785
  }, [props, submitting]);
5716
- 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: [
5717
5787
  /* @__PURE__ */ jsxs22("div", { className: `matchid-wallet-content`, children: [
5718
- /* @__PURE__ */ jsx37(Lottie_default, { animationData: pageData.statusImage, style: {
5788
+ /* @__PURE__ */ jsx38(Lottie_default, { animationData: pageData.statusImage, style: {
5719
5789
  width: 128,
5720
5790
  height: 128
5721
5791
  } }),
5722
- /* @__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 })
5723
5793
  ] }),
5724
- /* @__PURE__ */ jsx37(
5794
+ /* @__PURE__ */ jsx38(
5725
5795
  Button,
5726
5796
  {
5727
5797
  block: true,
@@ -6003,7 +6073,7 @@ async function getEthersSigner(config, { chainId } = {}) {
6003
6073
  // src/components/EVMModal/index.tsx
6004
6074
  import { SiweMessage } from "siwe";
6005
6075
  import "@rainbow-me/rainbowkit/styles.css";
6006
- import { jsx as jsx38 } from "react/jsx-runtime";
6076
+ import { jsx as jsx39 } from "react/jsx-runtime";
6007
6077
  function WalletContent({
6008
6078
  onSuccess,
6009
6079
  type
@@ -6161,7 +6231,7 @@ function WalletContent({
6161
6231
  setNonce(void 0);
6162
6232
  setStatus("start");
6163
6233
  };
6164
- return /* @__PURE__ */ jsx38(
6234
+ return /* @__PURE__ */ jsx39(
6165
6235
  WalletModalContentV2,
6166
6236
  {
6167
6237
  status,
@@ -6179,14 +6249,14 @@ function EVMConnectModal({
6179
6249
  ...props
6180
6250
  }) {
6181
6251
  const intl = useIntl13();
6182
- return /* @__PURE__ */ jsx38(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6252
+ return /* @__PURE__ */ jsx39(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6183
6253
  id: type == "bind" ? "bindWith" : "loginWith"
6184
6254
  }, {
6185
6255
  name: "EVM"
6186
- }), children: /* @__PURE__ */ jsx38(WalletContent, { onSuccess, type }) });
6256
+ }), children: /* @__PURE__ */ jsx39(WalletContent, { onSuccess, type }) });
6187
6257
  }
6188
6258
  function EVMModal(props) {
6189
- return props.isOpen && /* @__PURE__ */ jsx38(RainbowKitProvider2, { children: /* @__PURE__ */ jsx38(EVMConnectModal, { ...props }) });
6259
+ return props.isOpen && /* @__PURE__ */ jsx39(RainbowKitProvider2, { children: /* @__PURE__ */ jsx39(EVMConnectModal, { ...props }) });
6190
6260
  }
6191
6261
 
6192
6262
  // src/components/TRONModal/index.tsx
@@ -6301,7 +6371,7 @@ var useTRONWallet = () => {
6301
6371
  };
6302
6372
 
6303
6373
  // src/components/TRONModal/index.tsx
6304
- import { jsx as jsx39, jsxs as jsxs23 } from "react/jsx-runtime";
6374
+ import { jsx as jsx40, jsxs as jsxs23 } from "react/jsx-runtime";
6305
6375
  function TRONConnectModal({
6306
6376
  type = "login",
6307
6377
  onSuccess,
@@ -6311,9 +6381,9 @@ function TRONConnectModal({
6311
6381
  const intl = useIntl14();
6312
6382
  const { wallets, installedWallets, chooseWallet, wallet, address, onConnect } = useTRONWallet();
6313
6383
  const iconMaps = {
6314
- tronlink: /* @__PURE__ */ jsx39(TronLinkIcon, { size: isDownMd ? 36 : 40 }),
6315
- bitget: /* @__PURE__ */ jsx39(BitgetIcon, { size: isDownMd ? 36 : 40 }),
6316
- 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 })
6317
6387
  };
6318
6388
  const { events, login } = useMatch();
6319
6389
  const [status, setStatus] = useState28("");
@@ -6405,11 +6475,11 @@ function TRONConnectModal({
6405
6475
  disconnect();
6406
6476
  }
6407
6477
  }, [props.isOpen]);
6408
- return /* @__PURE__ */ jsx39(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6478
+ return /* @__PURE__ */ jsx40(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6409
6479
  id: type == "bind" ? "bindWith" : "loginWith"
6410
6480
  }, {
6411
6481
  name: "TRON"
6412
- }), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ jsx39(
6482
+ }), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ jsx40(
6413
6483
  WalletModalContent,
6414
6484
  {
6415
6485
  error,
@@ -6422,9 +6492,9 @@ function TRONConnectModal({
6422
6492
  setVisible: () => {
6423
6493
  }
6424
6494
  }
6425
- ) : /* @__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: [
6426
6496
  installedWallets.map((wallet2) => {
6427
- return /* @__PURE__ */ jsx39(
6497
+ return /* @__PURE__ */ jsx40(
6428
6498
  RecommendItem,
6429
6499
  {
6430
6500
  icon: iconMaps[wallet2.walletKey],
@@ -6437,14 +6507,14 @@ function TRONConnectModal({
6437
6507
  );
6438
6508
  }),
6439
6509
  wallets.filter((wallet2) => !installedWallets.find((installedWallet) => installedWallet.walletKey == wallet2.walletKey)).map((wallet2) => {
6440
- return /* @__PURE__ */ jsx39(
6510
+ return /* @__PURE__ */ jsx40(
6441
6511
  RecommendItem,
6442
6512
  {
6443
6513
  icon: iconMaps[wallet2.walletKey],
6444
6514
  name: wallet2.name,
6445
6515
  onClick: () => {
6446
6516
  },
6447
- footer: /* @__PURE__ */ jsx39(Button, { size: "sm", onClick: () => {
6517
+ footer: /* @__PURE__ */ jsx40(Button, { size: "sm", onClick: () => {
6448
6518
  window.open(wallet2.website);
6449
6519
  }, children: "Install" })
6450
6520
  },
@@ -6454,7 +6524,7 @@ function TRONConnectModal({
6454
6524
  ] }) }) });
6455
6525
  }
6456
6526
  function TRONModal(props) {
6457
- return props.isOpen && /* @__PURE__ */ jsx39(TRONConnectModal, { ...props, type: props.type });
6527
+ return props.isOpen && /* @__PURE__ */ jsx40(TRONConnectModal, { ...props, type: props.type });
6458
6528
  }
6459
6529
 
6460
6530
  // src/components/TONModal/index.tsx
@@ -6467,7 +6537,7 @@ import {
6467
6537
  useTonConnectUI,
6468
6538
  useTonWallet
6469
6539
  } from "@tonconnect/ui-react";
6470
- import { jsx as jsx40 } from "react/jsx-runtime";
6540
+ import { jsx as jsx41 } from "react/jsx-runtime";
6471
6541
  function WalletContent2({
6472
6542
  onSuccess,
6473
6543
  type
@@ -6594,7 +6664,7 @@ function WalletContent2({
6594
6664
  }
6595
6665
  }
6596
6666
  }, [state]);
6597
- return /* @__PURE__ */ jsx40(
6667
+ return /* @__PURE__ */ jsx41(
6598
6668
  WalletModalContent,
6599
6669
  {
6600
6670
  connected,
@@ -6628,20 +6698,20 @@ function TONConnectModal({
6628
6698
  const intl = useIntl15();
6629
6699
  const { endpoints, appid } = useLocalStore_default();
6630
6700
  const manifestUrl = `${endpoints.back}api/v1/wallet/ton?appid=${appid}&url=` + encodeURIComponent(window.location.origin);
6631
- return /* @__PURE__ */ jsx40(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6701
+ return /* @__PURE__ */ jsx41(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6632
6702
  id: type == "bind" ? "bindWith" : "loginWith"
6633
6703
  }, {
6634
6704
  name: "TON"
6635
- }), children: /* @__PURE__ */ jsx40(
6705
+ }), children: /* @__PURE__ */ jsx41(
6636
6706
  TonConnectUIProvider,
6637
6707
  {
6638
6708
  manifestUrl,
6639
- children: /* @__PURE__ */ jsx40(WalletContent2, { onSuccess, type })
6709
+ children: /* @__PURE__ */ jsx41(WalletContent2, { onSuccess, type })
6640
6710
  }
6641
6711
  ) });
6642
6712
  }
6643
6713
  function TONModal(props) {
6644
- return props.isOpen && /* @__PURE__ */ jsx40(TONConnectModal, { ...props });
6714
+ return props.isOpen && /* @__PURE__ */ jsx41(TONConnectModal, { ...props });
6645
6715
  }
6646
6716
 
6647
6717
  // src/components/BTCModal/index.tsx
@@ -6870,7 +6940,7 @@ var useBTCWallet = () => {
6870
6940
  };
6871
6941
 
6872
6942
  // src/components/BTCModal/index.tsx
6873
- import { jsx as jsx41, jsxs as jsxs24 } from "react/jsx-runtime";
6943
+ import { jsx as jsx42, jsxs as jsxs24 } from "react/jsx-runtime";
6874
6944
  function BTCConnectModal({
6875
6945
  type = "login",
6876
6946
  onSuccess,
@@ -6880,10 +6950,10 @@ function BTCConnectModal({
6880
6950
  const intl = useIntl16();
6881
6951
  const { wallets, installedWallets, chooseWallet, wallet, address, onConnect } = useBTCWallet();
6882
6952
  const iconMaps = {
6883
- leather: /* @__PURE__ */ jsx41(LeatherIcon, { size: isDownMd ? 36 : 40 }),
6884
- unisat: /* @__PURE__ */ jsx41(UnisatIcon, { size: isDownMd ? 36 : 40 }),
6885
- xverse: /* @__PURE__ */ jsx41(XverseIcon, { size: isDownMd ? 36 : 40 }),
6886
- 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 })
6887
6957
  };
6888
6958
  const { events, login } = useMatch();
6889
6959
  const [status, setStatus] = useState31("");
@@ -6983,11 +7053,11 @@ function BTCConnectModal({
6983
7053
  statusRef.current = "";
6984
7054
  setError("");
6985
7055
  };
6986
- return /* @__PURE__ */ jsx41(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
7056
+ return /* @__PURE__ */ jsx42(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
6987
7057
  id: type == "bind" ? "bindWith" : "loginWith"
6988
7058
  }, {
6989
7059
  name: "BTC"
6990
- }), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ jsx41(
7060
+ }), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ jsx42(
6991
7061
  WalletModalContent,
6992
7062
  {
6993
7063
  error,
@@ -7000,9 +7070,9 @@ function BTCConnectModal({
7000
7070
  setVisible: () => {
7001
7071
  }
7002
7072
  }
7003
- ) : /* @__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: [
7004
7074
  installedWallets.map((wallet2) => {
7005
- return /* @__PURE__ */ jsx41(
7075
+ return /* @__PURE__ */ jsx42(
7006
7076
  RecommendItem,
7007
7077
  {
7008
7078
  icon: iconMaps[wallet2.walletKey],
@@ -7015,14 +7085,14 @@ function BTCConnectModal({
7015
7085
  );
7016
7086
  }),
7017
7087
  wallets.filter((wallet2) => !installedWallets.find((installedWallet) => installedWallet.walletKey == wallet2.walletKey)).map((wallet2) => {
7018
- return /* @__PURE__ */ jsx41(
7088
+ return /* @__PURE__ */ jsx42(
7019
7089
  RecommendItem,
7020
7090
  {
7021
7091
  icon: iconMaps[wallet2.walletKey],
7022
7092
  name: wallet2.name,
7023
7093
  onClick: () => {
7024
7094
  },
7025
- footer: /* @__PURE__ */ jsx41(Button, { size: "sm", onClick: () => {
7095
+ footer: /* @__PURE__ */ jsx42(Button, { size: "sm", onClick: () => {
7026
7096
  window.open(wallet2.website);
7027
7097
  }, children: "Install" })
7028
7098
  },
@@ -7032,13 +7102,13 @@ function BTCConnectModal({
7032
7102
  ] }) }) });
7033
7103
  }
7034
7104
  function BTCModal(props) {
7035
- return props.isOpen && /* @__PURE__ */ jsx41(BTCConnectModal, { ...props });
7105
+ return props.isOpen && /* @__PURE__ */ jsx42(BTCConnectModal, { ...props });
7036
7106
  }
7037
7107
 
7038
7108
  // src/components/WalletModal/index.tsx
7039
7109
  import { useMemo as useMemo16 } from "react";
7040
7110
  import { useIntl as useIntl17 } from "react-intl";
7041
- import { jsx as jsx42 } from "react/jsx-runtime";
7111
+ import { jsx as jsx43 } from "react/jsx-runtime";
7042
7112
  function WalletConnectModal({
7043
7113
  type,
7044
7114
  methods: _methods,
@@ -7056,13 +7126,13 @@ function WalletConnectModal({
7056
7126
  const platform = config.platform.map((p) => p.toLowerCase());
7057
7127
  return WALLET_METHODS.filter((m) => platform.includes(m));
7058
7128
  }, [config.platform, _methods]);
7059
- return /* @__PURE__ */ jsx42(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
7129
+ return /* @__PURE__ */ jsx43(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
7060
7130
  id: type == "bind" ? "bindWith" : "loginWith"
7061
7131
  }, {
7062
7132
  name: ""
7063
- }), 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) => {
7064
7134
  const m = walletMap[method];
7065
- return /* @__PURE__ */ jsx42(
7135
+ return /* @__PURE__ */ jsx43(
7066
7136
  RecommendItem,
7067
7137
  {
7068
7138
  icon: m?.icon,
@@ -7076,12 +7146,12 @@ function WalletConnectModal({
7076
7146
  }) }) }) });
7077
7147
  }
7078
7148
  function WalletModal(props) {
7079
- return props.isOpen && /* @__PURE__ */ jsx42(WalletConnectModal, { ...props });
7149
+ return props.isOpen && /* @__PURE__ */ jsx43(WalletConnectModal, { ...props });
7080
7150
  }
7081
7151
 
7082
7152
  // src/components/AlphaAvatar/index.tsx
7083
7153
  import { useEffect as useEffect30, useState as useState32 } from "react";
7084
- import { jsx as jsx43 } from "react/jsx-runtime";
7154
+ import { jsx as jsx44 } from "react/jsx-runtime";
7085
7155
  function AlphaAvatar2({ name, size = 40, className = "" }) {
7086
7156
  const [avatar, setAvatar] = useState32(void 0);
7087
7157
  useEffect30(() => {
@@ -7090,7 +7160,7 @@ function AlphaAvatar2({ name, size = 40, className = "" }) {
7090
7160
  setAvatar(char);
7091
7161
  }
7092
7162
  }, [name]);
7093
- return /* @__PURE__ */ jsx43("div", { className: `matchid-alpha-avatar ${className}`, style: {
7163
+ return /* @__PURE__ */ jsx44("div", { className: `matchid-alpha-avatar ${className}`, style: {
7094
7164
  width: size,
7095
7165
  height: size,
7096
7166
  fontSize: Math.ceil(size / 2)
@@ -7098,7 +7168,7 @@ function AlphaAvatar2({ name, size = 40, className = "" }) {
7098
7168
  }
7099
7169
 
7100
7170
  // src/components/WalletAsset/index.tsx
7101
- import { jsx as jsx44, jsxs as jsxs25 } from "react/jsx-runtime";
7171
+ import { jsx as jsx45, jsxs as jsxs25 } from "react/jsx-runtime";
7102
7172
  function WalletAsset({
7103
7173
  onAssetClick,
7104
7174
  matchWalletAssetsOptions
@@ -7108,7 +7178,7 @@ function WalletAsset({
7108
7178
  list: walletAssets.mergedAssets
7109
7179
  });
7110
7180
  const { list } = useMatchChain();
7111
- 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) => {
7112
7182
  const clickFunc = onAssetClick && onAssetClick(n);
7113
7183
  const chain = list?.find((m) => m.id.toString() === n.chain_id);
7114
7184
  const getFooterColor = () => {
@@ -7127,7 +7197,7 @@ function WalletAsset({
7127
7197
  cursor: clickFunc ? "pointer" : "default"
7128
7198
  }, children: [
7129
7199
  /* @__PURE__ */ jsxs25("div", { className: "matchid-wallet-asset-logo", title: n.symbol || n.name || "", children: [
7130
- 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(
7131
7201
  AlphaAvatar2,
7132
7202
  {
7133
7203
  className: `matchid-wallet-asset-icon`,
@@ -7135,12 +7205,12 @@ function WalletAsset({
7135
7205
  name: n.symbol || n.name || ""
7136
7206
  }
7137
7207
  ),
7138
- 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` })
7139
7209
  ] }),
7140
7210
  /* @__PURE__ */ jsxs25("div", { className: `matchid-wallet-asset-info`, children: [
7141
- /* @__PURE__ */ jsx44("div", { className: `matchid-wallet-asset-name`, children: n.symbol }),
7211
+ /* @__PURE__ */ jsx45("div", { className: `matchid-wallet-asset-name`, children: n.symbol }),
7142
7212
  "price" in n && /* @__PURE__ */ jsxs25("div", { className: `matchid-wallet-asset-content`, children: [
7143
- /* @__PURE__ */ jsx44("div", { className: "matchid-wallet-asset-price", children: /* @__PURE__ */ jsx44(
7213
+ /* @__PURE__ */ jsx45("div", { className: "matchid-wallet-asset-price", children: /* @__PURE__ */ jsx45(
7144
7214
  NumberFormatter,
7145
7215
  {
7146
7216
  value: n.price,
@@ -7148,7 +7218,7 @@ function WalletAsset({
7148
7218
  tFixNum: 2
7149
7219
  }
7150
7220
  ) }),
7151
- /* @__PURE__ */ jsx44("div", { className: "matchid-wallet-asset-value", children: /* @__PURE__ */ jsx44(
7221
+ /* @__PURE__ */ jsx45("div", { className: "matchid-wallet-asset-value", children: /* @__PURE__ */ jsx45(
7152
7222
  NumberFormatter,
7153
7223
  {
7154
7224
  value: n.value,
@@ -7158,14 +7228,14 @@ function WalletAsset({
7158
7228
  ) })
7159
7229
  ] }),
7160
7230
  /* @__PURE__ */ jsxs25("div", { className: `matchid-wallet-asset-footer`, children: [
7161
- /* @__PURE__ */ jsx44("div", { className: `matchid-wallet-asset-balance`, children: /* @__PURE__ */ jsx44(
7231
+ /* @__PURE__ */ jsx45("div", { className: `matchid-wallet-asset-balance`, children: /* @__PURE__ */ jsx45(
7162
7232
  NumberFormatter,
7163
7233
  {
7164
7234
  value: n.balance,
7165
7235
  tFixNum: 3
7166
7236
  }
7167
7237
  ) }),
7168
- "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(
7169
7239
  NumberFormatter,
7170
7240
  {
7171
7241
  prefix: `${(n?.price_change_24h || 0) < 0 ? "-" : "+"} `,
@@ -7184,7 +7254,7 @@ function WalletAsset({
7184
7254
  import { useEffect as useEffect31, useMemo as useMemo17, useState as useState33 } from "react";
7185
7255
  import { defineChain as defineChain4, encodeFunctionData as encodeFunctionData2, erc20Abi as erc20Abi3, http as http8, parseUnits as parseUnits2 } from "viem";
7186
7256
  import { FormattedMessage as FormattedMessage12, useIntl as useIntl18 } from "react-intl";
7187
- import { jsx as jsx45, jsxs as jsxs26 } from "react/jsx-runtime";
7257
+ import { jsx as jsx46, jsxs as jsxs26 } from "react/jsx-runtime";
7188
7258
  function Input2({
7189
7259
  onChange,
7190
7260
  placeholder,
@@ -7195,7 +7265,7 @@ function Input2({
7195
7265
  size = "df"
7196
7266
  }) {
7197
7267
  return /* @__PURE__ */ jsxs26("div", { className: `matchid-token-input-box ${"matchid-token-input-" + size}`, children: [
7198
- /* @__PURE__ */ jsx45(
7268
+ /* @__PURE__ */ jsx46(
7199
7269
  "input",
7200
7270
  {
7201
7271
  placeholder,
@@ -7206,7 +7276,7 @@ function Input2({
7206
7276
  className: `matchid-token-input ${error ? "matchid-token-input-error" : ""}`
7207
7277
  }
7208
7278
  ),
7209
- 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 })
7210
7280
  ] });
7211
7281
  }
7212
7282
  function TokenSend({
@@ -7334,24 +7404,24 @@ function TokenSend({
7334
7404
  window.removeEventListener("message", receiveMessage);
7335
7405
  };
7336
7406
  }, []);
7337
- 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: [
7338
7408
  /* @__PURE__ */ jsxs26("div", { className: "matchid-token-send-content", children: [
7339
7409
  /* @__PURE__ */ jsxs26("div", { className: `matchid-token-amount-content`, children: [
7340
7410
  /* @__PURE__ */ jsxs26("div", { className: `matchid-token-amount-header`, children: [
7341
- /* @__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" }) }),
7342
7412
  /* @__PURE__ */ jsxs26("div", { className: `matchid-token-amount-chain`, children: [
7343
- token.icon ? /* @__PURE__ */ jsx45(
7413
+ token.icon ? /* @__PURE__ */ jsx46(
7344
7414
  "img",
7345
7415
  {
7346
7416
  src: token?.icon,
7347
7417
  alt: token?.symbol,
7348
7418
  className: `matchid-token-amount-chain-icon`
7349
7419
  }
7350
- ) : /* @__PURE__ */ jsx45(AlphaAvatar, { name: token.symbol || token.name || "", size: 16 }),
7351
- /* @__PURE__ */ jsx45("span", { children: token?.symbol })
7420
+ ) : /* @__PURE__ */ jsx46(AlphaAvatar, { name: token.symbol || token.name || "", size: 16 }),
7421
+ /* @__PURE__ */ jsx46("span", { children: token?.symbol })
7352
7422
  ] })
7353
7423
  ] }),
7354
- /* @__PURE__ */ jsx45(
7424
+ /* @__PURE__ */ jsx46(
7355
7425
  Input2,
7356
7426
  {
7357
7427
  type: "text",
@@ -7366,16 +7436,16 @@ function TokenSend({
7366
7436
  ),
7367
7437
  /* @__PURE__ */ jsxs26("div", { className: `matchid-token-amount-footer`, children: [
7368
7438
  /* @__PURE__ */ jsxs26("div", { className: `matchid-token-amount-title`, children: [
7369
- /* @__PURE__ */ jsx45(FormattedMessage12, { id: "balance" }),
7439
+ /* @__PURE__ */ jsx46(FormattedMessage12, { id: "balance" }),
7370
7440
  ":"
7371
7441
  ] }),
7372
- /* @__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 }) })
7373
7443
  ] }),
7374
- /* @__PURE__ */ jsx45(TransferIcon, { className: "matchid-token-amount-transfer" })
7444
+ /* @__PURE__ */ jsx46(TransferIcon, { className: "matchid-token-amount-transfer" })
7375
7445
  ] }),
7376
7446
  /* @__PURE__ */ jsxs26("div", { className: `matchid-token-address-content`, children: [
7377
- /* @__PURE__ */ jsx45("div", { className: `matchid-token-address-header`, children: /* @__PURE__ */ jsx45("div", { className: `matchid-token-address-title`, children: /* @__PURE__ */ jsx45(FormattedMessage12, { id: "receiveTitle" }) }) }),
7378
- /* @__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(
7379
7449
  Input2,
7380
7450
  {
7381
7451
  type: "text",
@@ -7391,7 +7461,7 @@ function TokenSend({
7391
7461
  )
7392
7462
  ] })
7393
7463
  ] }),
7394
- /* @__PURE__ */ jsx45(
7464
+ /* @__PURE__ */ jsx46(
7395
7465
  Button,
7396
7466
  {
7397
7467
  size: "lg",
@@ -7400,7 +7470,7 @@ function TokenSend({
7400
7470
  disabled: !canSend || !!txError,
7401
7471
  onClick: onNext,
7402
7472
  loading: loading || sending,
7403
- children: /* @__PURE__ */ jsx45(FormattedMessage12, { id: "next" })
7473
+ children: /* @__PURE__ */ jsx46(FormattedMessage12, { id: "next" })
7404
7474
  }
7405
7475
  )
7406
7476
  ] }) });
@@ -7408,7 +7478,7 @@ function TokenSend({
7408
7478
 
7409
7479
  // src/components/TokenDetail/index.tsx
7410
7480
  import { FormattedMessage as FormattedMessage13, useIntl as useIntl19 } from "react-intl";
7411
- import { jsx as jsx46, jsxs as jsxs27 } from "react/jsx-runtime";
7481
+ import { jsx as jsx47, jsxs as jsxs27 } from "react/jsx-runtime";
7412
7482
  function TokenDetail({
7413
7483
  onClose,
7414
7484
  token
@@ -7418,41 +7488,41 @@ function TokenDetail({
7418
7488
  const chain = chainList?.find((m) => m.id.toString() === token.chain_id);
7419
7489
  const onSend = () => {
7420
7490
  modal.show((props) => {
7421
- return /* @__PURE__ */ jsx46(TokenSend, { onClose: () => {
7491
+ return /* @__PURE__ */ jsx47(TokenSend, { onClose: () => {
7422
7492
  props.close();
7423
7493
  onClose();
7424
7494
  }, onBack: props.close, zIndex: props.zIndex, token });
7425
7495
  });
7426
7496
  };
7427
7497
  const intl = useIntl19();
7428
- return /* @__PURE__ */ jsx46(ModalDrawer, { isOpen: true, title: intl.formatMessage({
7498
+ return /* @__PURE__ */ jsx47(ModalDrawer, { isOpen: true, title: intl.formatMessage({
7429
7499
  id: "tokenDetails"
7430
7500
  }), onClose, children: /* @__PURE__ */ jsxs27("div", { className: `matchid-token-detail`, children: [
7431
7501
  /* @__PURE__ */ jsxs27("div", { className: `matchid-token-main`, children: [
7432
7502
  /* @__PURE__ */ jsxs27("div", { className: `matchid-token-info`, children: [
7433
7503
  /* @__PURE__ */ jsxs27("div", { className: `matchid-token-logo`, children: [
7434
- 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 || "" }),
7435
- 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` })
7436
7506
  ] }),
7437
7507
  /* @__PURE__ */ jsxs27("div", { className: `matchid-token-name`, children: [
7438
- /* @__PURE__ */ jsx46(NumberFormatter, { value: token.balance, tFixNum: 10 }),
7508
+ /* @__PURE__ */ jsx47(NumberFormatter, { value: token.balance, tFixNum: 10 }),
7439
7509
  " ",
7440
7510
  token.symbol
7441
7511
  ] })
7442
7512
  ] }),
7443
7513
  token.address.toLowerCase() != NATIVE_TOKEN_ADDRESS && /* @__PURE__ */ jsxs27("div", { className: `matchid-token-contract`, children: [
7444
- /* @__PURE__ */ jsx46("div", { className: "matchid-token-contract-title", children: "Contract address" }),
7445
- /* @__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 })
7446
7516
  ] })
7447
7517
  ] }),
7448
- /* @__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" }) })
7449
7519
  ] }) });
7450
7520
  }
7451
7521
 
7452
7522
  // src/components/TokenSendList/index.tsx
7453
7523
  import { useState as useState34 } from "react";
7454
7524
  import { FormattedMessage as FormattedMessage14 } from "react-intl";
7455
- import { jsx as jsx47, jsxs as jsxs28 } from "react/jsx-runtime";
7525
+ import { jsx as jsx48, jsxs as jsxs28 } from "react/jsx-runtime";
7456
7526
  function TokenSendList({ close }) {
7457
7527
  const isDownMd = useDownMd();
7458
7528
  const walletAssets = useMatchWalletAssets();
@@ -7464,14 +7534,14 @@ function TokenSendList({ close }) {
7464
7534
  const modal = useModal();
7465
7535
  const onNext = () => {
7466
7536
  checked && modal.show((props) => {
7467
- return /* @__PURE__ */ jsx47(TokenSend, { onClose: () => {
7537
+ return /* @__PURE__ */ jsx48(TokenSend, { onClose: () => {
7468
7538
  props.close();
7469
7539
  close();
7470
7540
  }, onBack: props.close, zIndex: props.zIndex, token: checked });
7471
7541
  });
7472
7542
  };
7473
7543
  return /* @__PURE__ */ jsxs28("div", { className: "matchid-token-send-list-box", children: [
7474
- /* @__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) => {
7475
7545
  const chain = list?.find((m) => m.id.toString() === n.chain_id);
7476
7546
  return /* @__PURE__ */ jsxs28(
7477
7547
  "div",
@@ -7481,10 +7551,10 @@ function TokenSendList({ close }) {
7481
7551
  setChecked(n);
7482
7552
  },
7483
7553
  children: [
7484
- /* @__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 }),
7485
7555
  /* @__PURE__ */ jsxs28("div", { className: "matchid-token-send-content", children: [
7486
7556
  /* @__PURE__ */ jsxs28("div", { className: "matchid-token-send-logo", children: [
7487
- 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(
7488
7558
  AlphaAvatar2,
7489
7559
  {
7490
7560
  className: `matchid-token-send-icon`,
@@ -7492,7 +7562,7 @@ function TokenSendList({ close }) {
7492
7562
  name: n.symbol || n.name || ""
7493
7563
  }
7494
7564
  ),
7495
- chain?.iconUrl && /* @__PURE__ */ jsx47(
7565
+ chain?.iconUrl && /* @__PURE__ */ jsx48(
7496
7566
  "img",
7497
7567
  {
7498
7568
  src: chain.iconUrl,
@@ -7502,8 +7572,8 @@ function TokenSendList({ close }) {
7502
7572
  )
7503
7573
  ] }),
7504
7574
  /* @__PURE__ */ jsxs28("div", { className: `matchid-token-send-info`, children: [
7505
- /* @__PURE__ */ jsx47("div", { className: `matchid-token-send-name`, children: n.symbol }),
7506
- /* @__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 }) })
7507
7577
  ] })
7508
7578
  ] })
7509
7579
  ]
@@ -7511,7 +7581,7 @@ function TokenSendList({ close }) {
7511
7581
  index
7512
7582
  );
7513
7583
  }) }),
7514
- /* @__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" }) })
7515
7585
  ] });
7516
7586
  }
7517
7587
 
@@ -7521,7 +7591,7 @@ import { useEffect as useEffect32, useMemo as useMemo18, useState as useState35
7521
7591
  import { decodeFunctionData, defineChain as defineChain5, formatUnits as formatUnits3 } from "viem";
7522
7592
  import { erc20Abi as erc20Abi4 } from "viem";
7523
7593
  import { FormattedMessage as FormattedMessage15 } from "react-intl";
7524
- import { jsx as jsx48, jsxs as jsxs29 } from "react/jsx-runtime";
7594
+ import { jsx as jsx49, jsxs as jsxs29 } from "react/jsx-runtime";
7525
7595
  var Item = ({ data }) => {
7526
7596
  const { address } = useWallet();
7527
7597
  const isOut = data.from.toLowerCase() == address.toLowerCase();
@@ -7616,10 +7686,10 @@ var Item = ({ data }) => {
7616
7686
  className: `matchid-transaction-item`,
7617
7687
  children: [
7618
7688
  /* @__PURE__ */ jsxs29("div", { className: `matchid-transacton-item-container`, children: [
7619
- /* @__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" : "" }) }),
7620
7690
  /* @__PURE__ */ jsxs29("div", { className: `matchid-transaction-item-details`, children: [
7621
- /* @__PURE__ */ jsx48("div", { className: `matchid-transaction-item-address`, children: formatAddress(to, 6, 4) }),
7622
- /* @__PURE__ */ jsx48(
7691
+ /* @__PURE__ */ jsx49("div", { className: `matchid-transaction-item-address`, children: formatAddress(to, 6, 4) }),
7692
+ /* @__PURE__ */ jsx49(
7623
7693
  "div",
7624
7694
  {
7625
7695
  className: `matchid-transaction-item-timestamp`,
@@ -7629,10 +7699,10 @@ var Item = ({ data }) => {
7629
7699
  ] })
7630
7700
  ] }),
7631
7701
  /* @__PURE__ */ jsxs29("div", { className: `matchid-transaction-item-amount ${"matchid-transaction-item-" + status}`, children: [
7632
- /* @__PURE__ */ jsx48(NumberFormatter, { value: amount, tFixNum: 6, prefix: isOut ? "-" : "+", suffix: " " + symbol }),
7633
- status == "loading" && /* @__PURE__ */ jsx48(LoadingIcon_default, { color: "#000000", size: 16, rotate: true }),
7634
- status == "success" && /* @__PURE__ */ jsx48(CheckRoundIcon, { size: 16 }),
7635
- 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 })
7636
7706
  ] })
7637
7707
  ]
7638
7708
  }
@@ -7642,7 +7712,7 @@ function TransactionList({
7642
7712
  scrollableTarget
7643
7713
  }) {
7644
7714
  const { fetchMoreData, hasMore, items } = useMatchWalletRecords();
7645
- return /* @__PURE__ */ jsx48(
7715
+ return /* @__PURE__ */ jsx49(
7646
7716
  InfiniteScroll,
7647
7717
  {
7648
7718
  scrollableTarget,
@@ -7650,11 +7720,11 @@ function TransactionList({
7650
7720
  next: fetchMoreData,
7651
7721
  hasMore,
7652
7722
  loader: /* @__PURE__ */ jsxs29("div", { className: "matchid-list-nomore", children: [
7653
- /* @__PURE__ */ jsx48(LoadingIcon_default, { rotate: true, size: 16, color: "black" }),
7723
+ /* @__PURE__ */ jsx49(LoadingIcon_default, { rotate: true, size: 16, color: "black" }),
7654
7724
  "Loading..."
7655
7725
  ] }),
7656
- 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" }) }),
7657
- 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)) })
7658
7728
  }
7659
7729
  );
7660
7730
  }
@@ -7729,4 +7799,4 @@ export {
7729
7799
  MatchProvider,
7730
7800
  useMatch
7731
7801
  };
7732
- //# sourceMappingURL=chunk-LOZCAT7A.mjs.map
7802
+ //# sourceMappingURL=chunk-6RNCNC65.mjs.map