@matchain/matchid-sdk-react 0.1.48-alpha.5 → 0.1.48-alpha.6

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.
@@ -1096,6 +1096,27 @@ function TonLightIcon2({ size = 40, ...props }) {
1096
1096
  // src/assets/icon/ErrorRoundIcon.tsx
1097
1097
  var import_jsx_runtime44 = require("react/jsx-runtime");
1098
1098
 
1099
+ // src/assets/icon/InfoRoundIcon.tsx
1100
+ var import_jsx_runtime45 = require("react/jsx-runtime");
1101
+ function InfoRoundIcon({
1102
+ size,
1103
+ color = "#6E6E6E",
1104
+ ...props
1105
+ }) {
1106
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("svg", { width: size, height: size, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
1107
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("g", { clipPath: "url(#clip0_418_7746)", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
1108
+ "path",
1109
+ {
1110
+ fillRule: "evenodd",
1111
+ clipRule: "evenodd",
1112
+ d: "M7.99984 0.666504C3.94975 0.666504 0.666504 3.94975 0.666504 7.99984C0.666504 12.0499 3.94975 15.3332 7.99984 15.3332C12.0499 15.3332 15.3332 12.0499 15.3332 7.99984C15.3332 3.94975 12.0499 0.666504 7.99984 0.666504ZM1.99984 7.99984C1.99984 4.68613 4.68613 1.99984 7.99984 1.99984C11.3135 1.99984 13.9998 4.68613 13.9998 7.99984C13.9998 11.3135 11.3135 13.9998 7.99984 13.9998C4.68613 13.9998 1.99984 11.3135 1.99984 7.99984ZM8.6665 7.33317C8.6665 6.96498 8.36803 6.6665 7.99984 6.6665C7.63165 6.6665 7.33317 6.96498 7.33317 7.33317V11.3332C7.33317 11.7014 7.63165 11.9998 7.99984 11.9998C8.36803 11.9998 8.6665 11.7014 8.6665 11.3332V7.33317ZM7.99984 5.33317C8.36803 5.33317 8.6665 5.03469 8.6665 4.6665C8.6665 4.29831 8.36803 3.99984 7.99984 3.99984C7.63165 3.99984 7.33317 4.29831 7.33317 4.6665C7.33317 5.03469 7.63165 5.33317 7.99984 5.33317Z",
1113
+ fill: color
1114
+ }
1115
+ ) }),
1116
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("clipPath", { id: "clip0_418_7746", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
1117
+ ] });
1118
+ }
1119
+
1099
1120
  // src/hooks/useLayout.tsx
1100
1121
  var import_react = require("react");
1101
1122
  function useDownMd() {
@@ -1114,7 +1135,7 @@ function useDownMd() {
1114
1135
 
1115
1136
  // src/ui/Overlay/index.tsx
1116
1137
  var import_react2 = require("react");
1117
- var import_jsx_runtime45 = require("react/jsx-runtime");
1138
+ var import_jsx_runtime46 = require("react/jsx-runtime");
1118
1139
  function Overlay({
1119
1140
  isOpen = false,
1120
1141
  children,
@@ -1130,7 +1151,7 @@ function Overlay({
1130
1151
  document.body.style.overflow = "";
1131
1152
  };
1132
1153
  }, [isOpen]);
1133
- return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
1154
+ return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
1134
1155
  "div",
1135
1156
  {
1136
1157
  className: "matchid-overlay",
@@ -1139,11 +1160,11 @@ function Overlay({
1139
1160
  },
1140
1161
  children
1141
1162
  }
1142
- ) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, {});
1163
+ ) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_jsx_runtime46.Fragment, {});
1143
1164
  }
1144
1165
 
1145
1166
  // src/ui/Modal/index.tsx
1146
- var import_jsx_runtime46 = require("react/jsx-runtime");
1167
+ var import_jsx_runtime47 = require("react/jsx-runtime");
1147
1168
  function Modal({
1148
1169
  children,
1149
1170
  isOpen,
@@ -1151,10 +1172,10 @@ function Modal({
1151
1172
  zIndex = 100,
1152
1173
  className = ""
1153
1174
  }) {
1154
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: `matchid-modal ${className}`, style: {
1175
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: `matchid-modal ${className}`, style: {
1155
1176
  width
1156
1177
  }, children: [
1157
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "matchid-modal-mobile-header" }),
1178
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "matchid-modal-mobile-header" }),
1158
1179
  children
1159
1180
  ] }) });
1160
1181
  }
@@ -1168,13 +1189,13 @@ function ModalWithHeader({
1168
1189
  ...props
1169
1190
  }) {
1170
1191
  const isDownMd = useDownMd();
1171
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(Modal, { ...props, children: [
1172
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: `matchid-modal-header ${showBorder ? "matchid-modal-header-border" : ""}`, children: [
1173
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "matchid-modal-header-content", children: [
1174
- onBack && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ArrowLeftIcon, { height: isDownMd ? 20 : 25, width: isDownMd ? 20 : 24, className: "matchid-modal-header-back", onClick: onBack }),
1175
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "matchid-modal-header-title", children: title })
1192
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(Modal, { ...props, children: [
1193
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: `matchid-modal-header ${showBorder ? "matchid-modal-header-border" : ""}`, children: [
1194
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "matchid-modal-header-content", children: [
1195
+ onBack && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ArrowLeftIcon, { height: isDownMd ? 20 : 25, width: isDownMd ? 20 : 24, className: "matchid-modal-header-back", onClick: onBack }),
1196
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "matchid-modal-header-title", children: title })
1176
1197
  ] }),
1177
- onClose && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30, className: "matchid-modal-header-close", onClick: onClose })
1198
+ onClose && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30, className: "matchid-modal-header-close", onClick: onClose })
1178
1199
  ] }),
1179
1200
  children
1180
1201
  ] });
@@ -1209,7 +1230,7 @@ function getAppClientId() {
1209
1230
  }
1210
1231
 
1211
1232
  // src/ui/Button/index.tsx
1212
- var import_jsx_runtime47 = require("react/jsx-runtime");
1233
+ var import_jsx_runtime48 = require("react/jsx-runtime");
1213
1234
  function Button({
1214
1235
  size = "df",
1215
1236
  disabled = false,
@@ -1228,7 +1249,7 @@ function Button({
1228
1249
  onClick && onClick();
1229
1250
  }
1230
1251
  };
1231
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
1252
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
1232
1253
  "button",
1233
1254
  {
1234
1255
  type,
@@ -1238,14 +1259,14 @@ function Button({
1238
1259
  ...style
1239
1260
  },
1240
1261
  onClick: onAction,
1241
- children: loading ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(LoadingIcon_default, { className: "matchid-btn-loading-icon", color: "var(--matchid-btn-loading-color)" }) : children
1262
+ children: loading ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(LoadingIcon_default, { className: "matchid-btn-loading-icon", color: "var(--matchid-btn-loading-color)" }) : children
1242
1263
  }
1243
1264
  );
1244
1265
  }
1245
1266
 
1246
1267
  // src/ui/Input/index.tsx
1247
1268
  var import_react3 = require("react");
1248
- var import_jsx_runtime48 = require("react/jsx-runtime");
1269
+ var import_jsx_runtime49 = require("react/jsx-runtime");
1249
1270
  function Input({
1250
1271
  onChange,
1251
1272
  type,
@@ -1255,17 +1276,17 @@ function Input({
1255
1276
  }) {
1256
1277
  const [inputType, setInputType] = (0, import_react3.useState)(type);
1257
1278
  const isDownMd = useDownMd();
1258
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
1279
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
1259
1280
  "div",
1260
1281
  {
1261
1282
  className: `matchid-input-box ${props.value && props.value.length > 0 ? "matchid-input-has-content" : ""} ${className}`,
1262
1283
  children: [
1263
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("input", { type: inputType, onChange, ...props, className: "matchid-input-field" }),
1264
- props.value && props.value.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "matchid-input-delete-icon", onClick: (e) => {
1284
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("input", { type: inputType, onChange, ...props, className: "matchid-input-field" }),
1285
+ props.value && props.value.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "matchid-input-delete-icon", onClick: (e) => {
1265
1286
  if (onChange) {
1266
1287
  onChange({ target: { value: "" } });
1267
1288
  }
1268
- }, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
1289
+ }, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
1269
1290
  DeleteRoundIcon,
1270
1291
  {
1271
1292
  height: isDownMd ? 16 : 21,
@@ -1273,9 +1294,9 @@ function Input({
1273
1294
  color: "var(--matchid-input-delete-icon-color)"
1274
1295
  }
1275
1296
  ) }),
1276
- type === "password" && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "matchid-input-eye-icon", onClick: () => {
1297
+ type === "password" && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "matchid-input-eye-icon", onClick: () => {
1277
1298
  setInputType(inputType === "password" ? "text" : "password");
1278
- }, children: inputType === "password" ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(CloseEyeIcon, { size: isDownMd ? 16 : 20 }) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(OpenEyeIcon, { size: isDownMd ? 16 : 20 }) }),
1299
+ }, children: inputType === "password" ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(CloseEyeIcon, { size: isDownMd ? 16 : 20 }) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(OpenEyeIcon, { size: isDownMd ? 16 : 20 }) }),
1279
1300
  after
1280
1301
  ]
1281
1302
  }
@@ -1283,7 +1304,7 @@ function Input({
1283
1304
  }
1284
1305
 
1285
1306
  // src/ui/Field/index.tsx
1286
- var import_jsx_runtime49 = require("react/jsx-runtime");
1307
+ var import_jsx_runtime50 = require("react/jsx-runtime");
1287
1308
  function Field({
1288
1309
  label,
1289
1310
  children,
@@ -1291,19 +1312,19 @@ function Field({
1291
1312
  required,
1292
1313
  className = ""
1293
1314
  }) {
1294
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: `matchid-field-box ${className}`, children: [
1295
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "matchid-field-label", children: [
1296
- required && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "matchid-field-required", children: "*" }),
1315
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: `matchid-field-box ${className}`, children: [
1316
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "matchid-field-label", children: [
1317
+ required && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "matchid-field-required", children: "*" }),
1297
1318
  label
1298
1319
  ] }),
1299
1320
  children,
1300
- error && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "matchid-field-error", children: error })
1321
+ error && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "matchid-field-error", children: error })
1301
1322
  ] });
1302
1323
  }
1303
1324
 
1304
1325
  // src/components/EmailModal/StepEmail.tsx
1305
1326
  var import_react_intl = require("react-intl");
1306
- var import_jsx_runtime50 = require("react/jsx-runtime");
1327
+ var import_jsx_runtime51 = require("react/jsx-runtime");
1307
1328
  function StepEmail(props) {
1308
1329
  const intl = (0, import_react_intl.useIntl)();
1309
1330
  const [emailVal, setEmailVal] = (0, import_react4.useState)("");
@@ -1318,10 +1339,10 @@ function StepEmail(props) {
1318
1339
  const onContinue = async () => {
1319
1340
  props.onContinue(emailVal);
1320
1341
  };
1321
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "matchid-email-email-box", children: [
1322
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Field, { label: intl.formatMessage({
1342
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "matchid-email-email-box", children: [
1343
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Field, { label: intl.formatMessage({
1323
1344
  id: "emailAddress"
1324
- }), children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
1345
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
1325
1346
  Input,
1326
1347
  {
1327
1348
  placeholder: intl.formatMessage({
@@ -1331,9 +1352,9 @@ function StepEmail(props) {
1331
1352
  value: emailVal
1332
1353
  }
1333
1354
  ) }),
1334
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Button, { disabled: !canContinue, style: {
1355
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Button, { disabled: !canContinue, style: {
1335
1356
  marginTop: "64px"
1336
- }, onClick: onContinue, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react_intl.FormattedMessage, { id: "continue" }) })
1357
+ }, onClick: onContinue, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react_intl.FormattedMessage, { id: "continue" }) })
1337
1358
  ] });
1338
1359
  }
1339
1360
 
@@ -1708,39 +1729,39 @@ var import_viem3 = require("viem");
1708
1729
  var import_zustand3 = require("zustand");
1709
1730
 
1710
1731
  // src/hooks/useConfig.tsx
1711
- var import_jsx_runtime51 = require("react/jsx-runtime");
1732
+ var import_jsx_runtime52 = require("react/jsx-runtime");
1712
1733
  var DEFAULT_WALLET_METHODS = ["evm", "sol", "btc", "tron", "ton"];
1713
1734
  var WALLET_METHODS = ["evm", "sol", "btc", "tron", "ton"];
1714
1735
  function useWalletConfig() {
1715
1736
  const isDownMd = useDownMd();
1716
1737
  const walletMap = {
1717
1738
  evm: {
1718
- icon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(EVMDarkIcon, { size: isDownMd ? 36 : 40 }),
1719
- activeIcon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(EVMLightIcon, { size: isDownMd ? 36 : 40 }),
1739
+ icon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(EVMDarkIcon, { size: isDownMd ? 36 : 40 }),
1740
+ activeIcon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(EVMLightIcon, { size: isDownMd ? 36 : 40 }),
1720
1741
  name: "EVM",
1721
1742
  method: "evm"
1722
1743
  },
1723
1744
  sol: {
1724
- icon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SOLDarkIcon, { size: isDownMd ? 36 : 40 }),
1725
- activeIcon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SOLLightIcon, { size: isDownMd ? 36 : 40 }),
1745
+ icon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SOLDarkIcon, { size: isDownMd ? 36 : 40 }),
1746
+ activeIcon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SOLLightIcon, { size: isDownMd ? 36 : 40 }),
1726
1747
  name: "SOL",
1727
1748
  method: "sol"
1728
1749
  },
1729
1750
  btc: {
1730
- icon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(BTCDarkIcon, { size: isDownMd ? 36 : 40 }),
1731
- activeIcon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(BTCLightIcon, { size: isDownMd ? 36 : 40 }),
1751
+ icon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(BTCDarkIcon, { size: isDownMd ? 36 : 40 }),
1752
+ activeIcon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(BTCLightIcon, { size: isDownMd ? 36 : 40 }),
1732
1753
  name: "BTC",
1733
1754
  method: "btc"
1734
1755
  },
1735
1756
  tron: {
1736
- icon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TRXDarkIcon, { size: isDownMd ? 36 : 40 }),
1737
- activeIcon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TRXLightIcon, { size: isDownMd ? 36 : 40 }),
1757
+ icon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(TRXDarkIcon, { size: isDownMd ? 36 : 40 }),
1758
+ activeIcon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(TRXLightIcon, { size: isDownMd ? 36 : 40 }),
1738
1759
  name: "TRON",
1739
1760
  method: "tron"
1740
1761
  },
1741
1762
  ton: {
1742
- icon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TonLightIcon, { size: isDownMd ? 36 : 40 }),
1743
- activeIcon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TonLightIcon2, { size: isDownMd ? 36 : 40 }),
1763
+ icon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(TonLightIcon, { size: isDownMd ? 36 : 40 }),
1764
+ activeIcon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(TonLightIcon2, { size: isDownMd ? 36 : 40 }),
1744
1765
  name: "TON",
1745
1766
  method: "ton"
1746
1767
  }
@@ -1831,7 +1852,7 @@ var import_react11 = require("react");
1831
1852
  var import_react_dom = require("react-dom");
1832
1853
 
1833
1854
  // src/ui/Drawer/index.tsx
1834
- var import_jsx_runtime52 = require("react/jsx-runtime");
1855
+ var import_jsx_runtime53 = require("react/jsx-runtime");
1835
1856
 
1836
1857
  // src/ui/HashPanel/index.tsx
1837
1858
  var import_viem4 = require("viem");
@@ -1839,14 +1860,14 @@ var import_react8 = require("react");
1839
1860
  var import_react_query = require("@tanstack/react-query");
1840
1861
 
1841
1862
  // src/ui/ModalDrawer/index.tsx
1842
- var import_jsx_runtime53 = require("react/jsx-runtime");
1863
+ var import_jsx_runtime54 = require("react/jsx-runtime");
1843
1864
 
1844
1865
  // src/ui/HashPanel/index.tsx
1845
- var import_jsx_runtime54 = require("react/jsx-runtime");
1866
+ var import_jsx_runtime55 = require("react/jsx-runtime");
1846
1867
 
1847
1868
  // src/ui/Popover/index.tsx
1848
1869
  var import_react9 = require("react");
1849
- var import_jsx_runtime55 = require("react/jsx-runtime");
1870
+ var import_jsx_runtime56 = require("react/jsx-runtime");
1850
1871
  function Popover({
1851
1872
  children,
1852
1873
  content,
@@ -1856,7 +1877,7 @@ function Popover({
1856
1877
  gap = "20px"
1857
1878
  }) {
1858
1879
  const [active, setActive] = (0, import_react9.useState)(false);
1859
- return children && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
1880
+ return children && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
1860
1881
  "div",
1861
1882
  {
1862
1883
  onClick: () => {
@@ -1867,32 +1888,32 @@ function Popover({
1867
1888
  className: `matchid-popover-box matchid-popover-${position} matchid-popover-${type} ${className} ${type == "click" && active ? "matchid-popover-click-active" : ""}`,
1868
1889
  children: [
1869
1890
  children,
1870
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { style: {
1891
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { style: {
1871
1892
  paddingTop: gap
1872
- }, className: `matchid-popover-area`, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: `matchid-popover-content`, children: content }) })
1893
+ }, className: `matchid-popover-area`, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: `matchid-popover-content`, children: content }) })
1873
1894
  ]
1874
1895
  }
1875
1896
  );
1876
1897
  }
1877
1898
 
1878
1899
  // src/ui/Switch/index.tsx
1879
- var import_jsx_runtime56 = require("react/jsx-runtime");
1900
+ var import_jsx_runtime57 = require("react/jsx-runtime");
1880
1901
 
1881
1902
  // src/ui/AlphaAvatar/index.tsx
1882
1903
  var import_react10 = require("react");
1883
- var import_jsx_runtime57 = require("react/jsx-runtime");
1904
+ var import_jsx_runtime58 = require("react/jsx-runtime");
1884
1905
 
1885
1906
  // src/ui/Radio/index.tsx
1886
- var import_jsx_runtime58 = require("react/jsx-runtime");
1907
+ var import_jsx_runtime59 = require("react/jsx-runtime");
1887
1908
 
1888
1909
  // src/context/ModalContext.tsx
1889
- var import_jsx_runtime59 = require("react/jsx-runtime");
1910
+ var import_jsx_runtime60 = require("react/jsx-runtime");
1890
1911
  var ModalContext = (0, import_react11.createContext)(null);
1891
1912
 
1892
1913
  // src/context/ToastContext.tsx
1893
1914
  var import_react12 = require("react");
1894
1915
  var import_react_dom2 = require("react-dom");
1895
- var import_jsx_runtime60 = require("react/jsx-runtime");
1916
+ var import_jsx_runtime61 = require("react/jsx-runtime");
1896
1917
  var ToastContext = (0, import_react12.createContext)(null);
1897
1918
 
1898
1919
  // src/hooks/api/wallet.ts
@@ -1900,12 +1921,12 @@ var import_react_query2 = require("@tanstack/react-query");
1900
1921
 
1901
1922
  // src/hooks/useMatchChain.tsx
1902
1923
  var import_react13 = require("react");
1903
- var import_jsx_runtime61 = require("react/jsx-runtime");
1924
+ var import_jsx_runtime62 = require("react/jsx-runtime");
1904
1925
 
1905
1926
  // src/hooks/useMatchWallet.tsx
1906
1927
  var import_react_qrcode = require("react-qrcode");
1907
1928
  var import_react14 = require("react");
1908
- var import_jsx_runtime62 = require("react/jsx-runtime");
1929
+ var import_jsx_runtime63 = require("react/jsx-runtime");
1909
1930
 
1910
1931
  // src/hooks/useReceipt.tsx
1911
1932
  var import_react15 = require("react");
@@ -1916,13 +1937,13 @@ var CACHE_TTL = 86400 * 30 * 1e3;
1916
1937
  // src/components/CEXBindModal/index.tsx
1917
1938
  var import_react16 = require("react");
1918
1939
  var import_react_intl2 = require("react-intl");
1919
- var import_jsx_runtime63 = require("react/jsx-runtime");
1940
+ var import_jsx_runtime64 = require("react/jsx-runtime");
1920
1941
 
1921
1942
  // src/context/BusinessProvider.tsx
1922
- var import_jsx_runtime64 = require("react/jsx-runtime");
1943
+ var import_jsx_runtime65 = require("react/jsx-runtime");
1923
1944
 
1924
1945
  // src/context/index.tsx
1925
- var import_jsx_runtime65 = require("react/jsx-runtime");
1946
+ var import_jsx_runtime66 = require("react/jsx-runtime");
1926
1947
 
1927
1948
  // src/hooks/useWalletInit.ts
1928
1949
  var import_react17 = require("react");
@@ -1934,7 +1955,7 @@ var import_react18 = require("react");
1934
1955
  // src/MatchContext.tsx
1935
1956
  var import_react_query4 = require("@tanstack/react-query");
1936
1957
  var import_react_intl3 = require("react-intl");
1937
- var import_jsx_runtime66 = require("react/jsx-runtime");
1958
+ var import_jsx_runtime67 = require("react/jsx-runtime");
1938
1959
  var queryClient = new import_react_query4.QueryClient();
1939
1960
  var MatchContext = (0, import_react19.createContext)(void 0);
1940
1961
  var useMatch = () => {
@@ -2207,7 +2228,7 @@ var EMAIL_CODE_LENGTH = 6;
2207
2228
 
2208
2229
  // src/components/EmailModal/StepVerify.tsx
2209
2230
  var import_react_intl4 = require("react-intl");
2210
- var import_jsx_runtime67 = require("react/jsx-runtime");
2231
+ var import_jsx_runtime68 = require("react/jsx-runtime");
2211
2232
  function StepVerify(props) {
2212
2233
  const intl = (0, import_react_intl4.useIntl)();
2213
2234
  const { getLoginEmailCode, loginByEmail } = useUserInfo();
@@ -2284,17 +2305,17 @@ function StepVerify(props) {
2284
2305
  setSubmitting(false);
2285
2306
  }
2286
2307
  };
2287
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "matchid-email-verify-box", children: [
2288
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "matchid-email-verify-header", children: [
2289
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "matchid-email-verify-header-icon", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(EmailLineIcon, { size: isDownMd ? 19 : 24 }) }),
2290
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "matchid-email-verify-header-content", children: [
2291
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "matchid-email-verify-header-value", children: props.email }),
2292
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "matchid-email-verify-header-tips", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react_intl4.FormattedMessage, { id: "sendEmailTips" }) })
2308
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "matchid-email-verify-box", children: [
2309
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "matchid-email-verify-header", children: [
2310
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "matchid-email-verify-header-icon", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(EmailLineIcon, { size: isDownMd ? 19 : 24 }) }),
2311
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "matchid-email-verify-header-content", children: [
2312
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "matchid-email-verify-header-value", children: props.email }),
2313
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "matchid-email-verify-header-tips", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react_intl4.FormattedMessage, { id: "sendEmailTips" }) })
2293
2314
  ] })
2294
2315
  ] }),
2295
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Field, { label: intl.formatMessage({
2316
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Field, { label: intl.formatMessage({
2296
2317
  id: "verificationCode"
2297
- }), error, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
2318
+ }), error, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
2298
2319
  Input,
2299
2320
  {
2300
2321
  placeholder: intl.formatMessage({
@@ -2304,7 +2325,7 @@ function StepVerify(props) {
2304
2325
  maxLength: codeLength,
2305
2326
  onChange: (e) => setCode(e.target.value),
2306
2327
  value: code,
2307
- after: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
2328
+ after: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
2308
2329
  Button,
2309
2330
  {
2310
2331
  highlight: true,
@@ -2323,13 +2344,13 @@ function StepVerify(props) {
2323
2344
  )
2324
2345
  }
2325
2346
  ) }),
2326
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Button, { disabled: !canContinue, highlight: true, block: true, size: "lg", onClick: onContinue, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react_intl4.FormattedMessage, { id: "continue" }) })
2347
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Button, { disabled: !canContinue, highlight: true, block: true, size: "lg", onClick: onContinue, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react_intl4.FormattedMessage, { id: "continue" }) })
2327
2348
  ] });
2328
2349
  }
2329
2350
 
2330
2351
  // src/components/EmailModal/index.tsx
2331
2352
  var import_react_intl5 = require("react-intl");
2332
- var import_jsx_runtime68 = require("react/jsx-runtime");
2353
+ var import_jsx_runtime69 = require("react/jsx-runtime");
2333
2354
  function EmailModal({
2334
2355
  isOpen = false,
2335
2356
  width = 480,
@@ -2346,7 +2367,7 @@ function EmailModal({
2346
2367
  setEmailVal("");
2347
2368
  }
2348
2369
  }, [isOpen]);
2349
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
2370
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
2350
2371
  ModalWithHeader,
2351
2372
  {
2352
2373
  isOpen,
@@ -2356,10 +2377,10 @@ function EmailModal({
2356
2377
  id: "email"
2357
2378
  }),
2358
2379
  onBack: step == "verify" ? () => setStep("input") : onBack,
2359
- children: step === "input" ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(StepEmail, { email: emailVal, onContinue: (email) => {
2380
+ children: step === "input" ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(StepEmail, { email: emailVal, onContinue: (email) => {
2360
2381
  setEmailVal(email);
2361
2382
  setStep("verify");
2362
- } }) : /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(StepVerify, { email: emailVal, onSuccess: onLogin })
2383
+ } }) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(StepVerify, { email: emailVal, onSuccess: onLogin })
2363
2384
  }
2364
2385
  );
2365
2386
  }
@@ -2389,7 +2410,7 @@ function useAppConfig() {
2389
2410
  }
2390
2411
 
2391
2412
  // src/components/LoginBox/index.tsx
2392
- var import_jsx_runtime69 = require("react/jsx-runtime");
2413
+ var import_jsx_runtime70 = require("react/jsx-runtime");
2393
2414
  var RecommendItem = ({
2394
2415
  icon,
2395
2416
  name,
@@ -2398,20 +2419,20 @@ var RecommendItem = ({
2398
2419
  children,
2399
2420
  footer
2400
2421
  }) => {
2401
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "matchid-login-recommend-method", children: [
2402
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "matchid-login-recommend-method-item", onClick, children: [
2403
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "matchid-login-recommend-method-content", children: [
2404
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "matchid-login-recommend-method-icon", children: icon }),
2405
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "matchid-login-recommend-method-name", children: name })
2422
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "matchid-login-recommend-method", children: [
2423
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "matchid-login-recommend-method-item", onClick, children: [
2424
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "matchid-login-recommend-method-content", children: [
2425
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "matchid-login-recommend-method-icon", children: icon }),
2426
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "matchid-login-recommend-method-name", children: name })
2406
2427
  ] }),
2407
- footer ? footer : children ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
2428
+ footer ? footer : children ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
2408
2429
  ArrowDownIcon,
2409
2430
  {
2410
2431
  className: `matchid-login-recommend-method-arrow ${showChildren ? "matchid-login-recommend-method-arrow-active" : ""}`,
2411
2432
  size: 20,
2412
2433
  color: "var(--matchid-arrow-color)"
2413
2434
  }
2414
- ) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
2435
+ ) : /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
2415
2436
  ArrowRightIcon,
2416
2437
  {
2417
2438
  className: "matchid-login-recommend-method-arrow",
@@ -2420,7 +2441,7 @@ var RecommendItem = ({
2420
2441
  }
2421
2442
  )
2422
2443
  ] }),
2423
- children && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
2444
+ children && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
2424
2445
  "div",
2425
2446
  {
2426
2447
  className: `matchid-login-recommend-method-popover ${showChildren ? "matchid-login-recommend-method-popover-active" : ""}`,
@@ -2485,75 +2506,75 @@ function LoginBox({
2485
2506
  const isDownMd = useDownMd();
2486
2507
  const methodMap = {
2487
2508
  wallet: {
2488
- icon: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(WalletIcon, { size: isDownMd ? 36 : 40 }),
2509
+ icon: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(WalletIcon, { size: isDownMd ? 36 : 40 }),
2489
2510
  name: intl.formatMessage({ id: "wallet" }),
2490
2511
  onClick: () => setShowWallet(!showWallet),
2491
2512
  type: "wallet"
2492
2513
  },
2493
2514
  email: {
2494
- icon: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(EmailIcon, { size: isDownMd ? 36 : 40 }),
2515
+ icon: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(EmailIcon, { size: isDownMd ? 36 : 40 }),
2495
2516
  name: intl.formatMessage({ id: "email" }),
2496
2517
  onClick: () => {
2497
2518
  setEmailOpen(true);
2498
2519
  }
2499
2520
  },
2500
2521
  google: {
2501
- icon: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(GoogleIcon, { size: isDownMd ? 36 : 40 }),
2522
+ icon: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(GoogleIcon, { size: isDownMd ? 36 : 40 }),
2502
2523
  name: "Google",
2503
2524
  onClick: () => login("google")
2504
2525
  },
2505
2526
  twitter: {
2506
- icon: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(XIcon, { size: isDownMd ? 36 : 40 }),
2527
+ icon: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(XIcon, { size: isDownMd ? 36 : 40 }),
2507
2528
  name: "X",
2508
2529
  onClick: () => login("twitter")
2509
2530
  },
2510
2531
  telegram: {
2511
- icon: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(TelegramIcon, { size: isDownMd ? 36 : 40 }),
2532
+ icon: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(TelegramIcon, { size: isDownMd ? 36 : 40 }),
2512
2533
  name: "Telegram",
2513
2534
  onClick: () => login("telegram")
2514
2535
  },
2515
2536
  github: {
2516
- icon: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(GithubIcon, { size: isDownMd ? 36 : 40 }),
2537
+ icon: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(GithubIcon, { size: isDownMd ? 36 : 40 }),
2517
2538
  name: "Github",
2518
2539
  onClick: () => login("github")
2519
2540
  },
2520
2541
  discord: {
2521
- icon: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(DiscordIcon, { size: isDownMd ? 36 : 40 }),
2542
+ icon: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(DiscordIcon, { size: isDownMd ? 36 : 40 }),
2522
2543
  name: "Discord",
2523
2544
  onClick: () => login("discord")
2524
2545
  },
2525
2546
  linkedin: {
2526
- icon: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(LinkedinIcon, { size: isDownMd ? 36 : 40 }),
2547
+ icon: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(LinkedinIcon, { size: isDownMd ? 36 : 40 }),
2527
2548
  name: "LinkedIn",
2528
2549
  onClick: () => login("linkedin")
2529
2550
  },
2530
2551
  facebook: {
2531
- icon: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(FacebookIcon, { size: isDownMd ? 36 : 40 }),
2552
+ icon: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(FacebookIcon, { size: isDownMd ? 36 : 40 }),
2532
2553
  name: "Facebook",
2533
2554
  onClick: () => login("facebook")
2534
2555
  },
2535
2556
  youtube: {
2536
- icon: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(YoutubeIcon, { size: isDownMd ? 36 : 40 }),
2557
+ icon: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(YoutubeIcon, { size: isDownMd ? 36 : 40 }),
2537
2558
  name: "Youtube",
2538
2559
  onClick: () => login("youtube")
2539
2560
  }
2540
2561
  };
2541
2562
  const { walletMap } = useWalletConfig();
2542
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_jsx_runtime69.Fragment, { children: [
2543
- (!inModal || !emailOpen) && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "matchid-login-box", children: [
2544
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "matchid-login-recommend-list", children: methodConfig.recommendMethods.map((m) => {
2545
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
2563
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_jsx_runtime70.Fragment, { children: [
2564
+ (!inModal || !emailOpen) && /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "matchid-login-box", children: [
2565
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "matchid-login-recommend-list", children: methodConfig.recommendMethods.map((m) => {
2566
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
2546
2567
  RecommendItem,
2547
2568
  {
2548
2569
  icon: methodMap[m]?.icon,
2549
2570
  name: methodMap[m]?.name,
2550
2571
  onClick: methodMap[m]?.onClick,
2551
2572
  showChildren: m == "wallet" && showWallet,
2552
- children: m == "wallet" && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_jsx_runtime69.Fragment, { children: [
2553
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "matchid-login-recommend-wallet-divider" }),
2554
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "matchid-login-recommend-wallet-list", children: methodConfig.walletMethods.map((n) => {
2573
+ children: m == "wallet" && /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_jsx_runtime70.Fragment, { children: [
2574
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "matchid-login-recommend-wallet-divider" }),
2575
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "matchid-login-recommend-wallet-list", children: methodConfig.walletMethods.map((n) => {
2555
2576
  const m2 = walletMap[n];
2556
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
2577
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
2557
2578
  "div",
2558
2579
  {
2559
2580
  className: "matchid-login-recommend-wallet-item",
@@ -2561,16 +2582,16 @@ function LoginBox({
2561
2582
  login(m2.method);
2562
2583
  },
2563
2584
  children: [
2564
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "matchid-login-recommend-wallet-item-content", children: [
2565
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "matchid-login-recommend-wallet-item-icon", children: m2.icon }),
2566
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
2585
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "matchid-login-recommend-wallet-item-content", children: [
2586
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "matchid-login-recommend-wallet-item-icon", children: m2.icon }),
2587
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
2567
2588
  "div",
2568
2589
  {
2569
2590
  className: "matchid-login-recommend-wallet-item-hover-icon",
2570
2591
  children: m2.activeIcon
2571
2592
  }
2572
2593
  ),
2573
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
2594
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
2574
2595
  "span",
2575
2596
  {
2576
2597
  className: "matchid-login-recommend-wallet-item-name",
@@ -2578,7 +2599,7 @@ function LoginBox({
2578
2599
  }
2579
2600
  )
2580
2601
  ] }),
2581
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
2602
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
2582
2603
  ArrowRightIcon,
2583
2604
  {
2584
2605
  className: "matchid-login-recommend-wallet-item-arrow",
@@ -2596,10 +2617,10 @@ function LoginBox({
2596
2617
  m
2597
2618
  );
2598
2619
  }) }),
2599
- methodConfig.methods.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "matchid-login-other", children: [
2600
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "matchid-login-other-text", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react_intl6.FormattedMessage, { id: "otherLoginMethods" }) }),
2601
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "matchid-login-method-box", children: methodConfig.methods.map((m) => {
2602
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
2620
+ methodConfig.methods.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "matchid-login-other", children: [
2621
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "matchid-login-other-text", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react_intl6.FormattedMessage, { id: "otherLoginMethods" }) }),
2622
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "matchid-login-method-box", children: methodConfig.methods.map((m) => {
2623
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
2603
2624
  "div",
2604
2625
  {
2605
2626
  className: "matchid-login-method-item",
@@ -2612,7 +2633,7 @@ function LoginBox({
2612
2633
  }) })
2613
2634
  ] })
2614
2635
  ] }),
2615
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
2636
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
2616
2637
  EmailModal,
2617
2638
  {
2618
2639
  isOpen: emailOpen,
@@ -2632,40 +2653,40 @@ var import_react25 = require("react");
2632
2653
 
2633
2654
  // src/components/LoginPanel/index.tsx
2634
2655
  var import_react_intl7 = require("react-intl");
2635
- var import_jsx_runtime70 = require("react/jsx-runtime");
2656
+ var import_jsx_runtime71 = require("react/jsx-runtime");
2636
2657
  function LoginPanel({
2637
2658
  header,
2638
2659
  onClose,
2639
2660
  ...props
2640
2661
  }) {
2641
2662
  const isDownMd = useDownMd();
2642
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "matchid-login-panel", children: [
2643
- header ? header : /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "matchid-login-panel-header", children: [
2644
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "matchid-login-panel-header-content", children: [
2645
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "matchid-login-panel-header-title", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react_intl7.FormattedMessage, { id: "loginTitle" }) }),
2646
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "matchid-login-panel-header-subtilte", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react_intl7.FormattedMessage, { id: "loginTips" }) })
2663
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "matchid-login-panel", children: [
2664
+ header ? header : /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "matchid-login-panel-header", children: [
2665
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "matchid-login-panel-header-content", children: [
2666
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "matchid-login-panel-header-title", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react_intl7.FormattedMessage, { id: "loginTitle" }) }),
2667
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "matchid-login-panel-header-subtilte", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react_intl7.FormattedMessage, { id: "loginTips" }) })
2647
2668
  ] }),
2648
- onClose && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "matchid-login-panel-header-close", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30 }) })
2669
+ onClose && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "matchid-login-panel-header-close", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30 }) })
2649
2670
  ] }),
2650
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "matchid-login-panel-divide" }),
2651
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "matchid-login-panel-box", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(LoginBox, { ...props }) })
2671
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "matchid-login-panel-divide" }),
2672
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "matchid-login-panel-box", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(LoginBox, { ...props }) })
2652
2673
  ] });
2653
2674
  }
2654
2675
 
2655
2676
  // src/components/LoginModal/index.tsx
2656
- var import_jsx_runtime71 = require("react/jsx-runtime");
2677
+ var import_jsx_runtime72 = require("react/jsx-runtime");
2657
2678
  function LoginModal({
2658
2679
  isOpen = false,
2659
2680
  width = 480,
2660
2681
  ...props
2661
2682
  }) {
2662
2683
  const { isLogin } = useUserInfo();
2663
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
2684
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
2664
2685
  Modal,
2665
2686
  {
2666
2687
  isOpen: isOpen && !isLogin,
2667
2688
  width,
2668
- children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(LoginPanel, { ...props, inModal: true })
2689
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(LoginPanel, { ...props, inModal: true })
2669
2690
  }
2670
2691
  );
2671
2692
  }
@@ -2674,10 +2695,10 @@ function LoginModal({
2674
2695
  var import_react24 = require("react");
2675
2696
 
2676
2697
  // src/assets/icon/ProfileIcon.tsx
2677
- var import_jsx_runtime72 = require("react/jsx-runtime");
2698
+ var import_jsx_runtime73 = require("react/jsx-runtime");
2678
2699
  function ProfileIcon({ size = 24, color = "black", ...props }) {
2679
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
2680
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
2700
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
2701
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
2681
2702
  "path",
2682
2703
  {
2683
2704
  fillRule: "evenodd",
@@ -2686,7 +2707,7 @@ function ProfileIcon({ size = 24, color = "black", ...props }) {
2686
2707
  fill: color
2687
2708
  }
2688
2709
  ),
2689
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
2710
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
2690
2711
  "path",
2691
2712
  {
2692
2713
  fillRule: "evenodd",
@@ -2700,7 +2721,7 @@ function ProfileIcon({ size = 24, color = "black", ...props }) {
2700
2721
 
2701
2722
  // src/components/UserPopover/index.tsx
2702
2723
  var import_react_intl8 = require("react-intl");
2703
- var import_jsx_runtime73 = require("react/jsx-runtime");
2724
+ var import_jsx_runtime74 = require("react/jsx-runtime");
2704
2725
  function UserContent() {
2705
2726
  const { logout, address: address2, username } = useUserInfo();
2706
2727
  const [logouting, setLogouting] = (0, import_react24.useState)(false);
@@ -2721,34 +2742,34 @@ function UserContent() {
2721
2742
  rightIcon,
2722
2743
  onClick
2723
2744
  }) => {
2724
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "matchid-user-popover-item", onClick, children: [
2725
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: `matchid-user-popover-item-content`, children: [
2745
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "matchid-user-popover-item", onClick, children: [
2746
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: `matchid-user-popover-item-content`, children: [
2726
2747
  icon,
2727
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "matchid-user-popover-item-text", children })
2748
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "matchid-user-popover-item-text", children })
2728
2749
  ] }),
2729
2750
  rightIcon
2730
2751
  ] });
2731
2752
  };
2732
2753
  const UserDivider = () => {
2733
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: `matchid-user-popover-divider` });
2754
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: `matchid-user-popover-divider` });
2734
2755
  };
2735
2756
  const [usernameOpen, setUsernameOpen] = (0, import_react24.useState)(false);
2736
2757
  const [copied, setCopied] = useCopyClipboard();
2737
2758
  const intl = (0, import_react_intl8.useIntl)();
2738
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "matchid-user-popover-content", children: [
2739
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "matchid-user-popover-list", children: [
2740
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(UserItem, { onClick: () => {
2759
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "matchid-user-popover-content", children: [
2760
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "matchid-user-popover-list", children: [
2761
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(UserItem, { onClick: () => {
2741
2762
  setCopied(address2);
2742
- }, icon: copied ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(CheckIcon, { size: 20, color: "#0ecb81" }) : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(CopyIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(CheckIcon, { size: 20, color: "var(--icon-color)" }), children: truncateAddress(address2) }),
2743
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(UserDivider, {}),
2744
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(UserItem, { onClick: () => {
2763
+ }, icon: copied ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(CheckIcon, { size: 20, color: "#0ecb81" }) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(CopyIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(CheckIcon, { size: 20, color: "var(--icon-color)" }), children: truncateAddress(address2) }),
2764
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(UserDivider, {}),
2765
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(UserItem, { onClick: () => {
2745
2766
  setUsernameOpen(true);
2746
- }, icon: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(ProfileIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(ArrowRightIcon, { size: 20, color: "var(--icon-color)" }), children: username || intl.formatMessage({
2767
+ }, icon: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(ProfileIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(ArrowRightIcon, { size: 20, color: "var(--icon-color)" }), children: username || intl.formatMessage({
2747
2768
  id: "setUsername"
2748
2769
  }) })
2749
2770
  ] }),
2750
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Button, { onClick: onLogout, loading: logouting, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react_intl8.FormattedMessage, { id: "disconnect" }) }),
2751
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(UsernameModal, { isOpen: usernameOpen, onClose: () => {
2771
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Button, { onClick: onLogout, loading: logouting, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react_intl8.FormattedMessage, { id: "disconnect" }) }),
2772
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(UsernameModal, { isOpen: usernameOpen, onClose: () => {
2752
2773
  setUsernameOpen(false);
2753
2774
  }, onSuccess: () => {
2754
2775
  setUsernameOpen(false);
@@ -2759,12 +2780,12 @@ function UserPopover({
2759
2780
  children,
2760
2781
  ...props
2761
2782
  }) {
2762
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Popover, { ...props, content: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(UserContent, {}), children });
2783
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Popover, { ...props, content: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(UserContent, {}), children });
2763
2784
  }
2764
2785
 
2765
2786
  // src/components/LoginButton/index.tsx
2766
2787
  var import_react_intl9 = require("react-intl");
2767
- var import_jsx_runtime74 = require("react/jsx-runtime");
2788
+ var import_jsx_runtime75 = require("react/jsx-runtime");
2768
2789
  function LoginButton({
2769
2790
  loginRender,
2770
2791
  methods,
@@ -2780,8 +2801,8 @@ function LoginButton({
2780
2801
  const { isLogin, username } = useUserInfo();
2781
2802
  const [loginOpen, setLoginOpen] = (0, import_react25.useState)(false);
2782
2803
  if (!isLogin) {
2783
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_jsx_runtime74.Fragment, { children: [
2784
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
2804
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
2805
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
2785
2806
  LoginModal,
2786
2807
  {
2787
2808
  methods,
@@ -2791,15 +2812,15 @@ function LoginButton({
2791
2812
  onClose: () => setLoginOpen(false)
2792
2813
  }
2793
2814
  ),
2794
- /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(Button, { className: "matchid-unlogin-btn", ...props, highlight: true, onClick: () => setLoginOpen(true), children: [
2795
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(UnLoginIcon_default, {}),
2796
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react_intl9.FormattedMessage, { id: "login" }) })
2815
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(Button, { className: "matchid-unlogin-btn", ...props, highlight: true, onClick: () => setLoginOpen(true), children: [
2816
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(UnLoginIcon_default, {}),
2817
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react_intl9.FormattedMessage, { id: "login" }) })
2797
2818
  ] })
2798
2819
  ] });
2799
2820
  }
2800
- return loginRender ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_jsx_runtime74.Fragment, { children: loginRender }) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(UserPopover, { position: popoverPosition, type: popoverType, gap: popoverGap, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(Button, { onClick: onLoginClick, className: "matchid-login-btn", ...props, children: [
2801
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(LoginIcon_default, {}),
2802
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { children: username ? truncateAddress(username) : "MatchID " + intl.formatMessage({
2821
+ return loginRender ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_jsx_runtime75.Fragment, { children: loginRender }) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(UserPopover, { position: popoverPosition, type: popoverType, gap: popoverGap, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(Button, { onClick: onLoginClick, className: "matchid-login-btn", ...props, children: [
2822
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(LoginIcon_default, {}),
2823
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { children: username ? truncateAddress(username) : "MatchID " + intl.formatMessage({
2803
2824
  id: "user"
2804
2825
  }) })
2805
2826
  ] }) });
@@ -2807,29 +2828,6 @@ function LoginButton({
2807
2828
 
2808
2829
  // src/components/UsernameModal/index.tsx
2809
2830
  var import_react26 = require("react");
2810
-
2811
- // src/assets/icon/InfoRoundIcon.tsx
2812
- var import_jsx_runtime75 = require("react/jsx-runtime");
2813
- function InfoRoundIcon({
2814
- size,
2815
- color = "#6E6E6E",
2816
- ...props
2817
- }) {
2818
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("svg", { width: size, height: size, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
2819
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("g", { clipPath: "url(#clip0_418_7746)", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
2820
- "path",
2821
- {
2822
- fillRule: "evenodd",
2823
- clipRule: "evenodd",
2824
- d: "M7.99984 0.666504C3.94975 0.666504 0.666504 3.94975 0.666504 7.99984C0.666504 12.0499 3.94975 15.3332 7.99984 15.3332C12.0499 15.3332 15.3332 12.0499 15.3332 7.99984C15.3332 3.94975 12.0499 0.666504 7.99984 0.666504ZM1.99984 7.99984C1.99984 4.68613 4.68613 1.99984 7.99984 1.99984C11.3135 1.99984 13.9998 4.68613 13.9998 7.99984C13.9998 11.3135 11.3135 13.9998 7.99984 13.9998C4.68613 13.9998 1.99984 11.3135 1.99984 7.99984ZM8.6665 7.33317C8.6665 6.96498 8.36803 6.6665 7.99984 6.6665C7.63165 6.6665 7.33317 6.96498 7.33317 7.33317V11.3332C7.33317 11.7014 7.63165 11.9998 7.99984 11.9998C8.36803 11.9998 8.6665 11.7014 8.6665 11.3332V7.33317ZM7.99984 5.33317C8.36803 5.33317 8.6665 5.03469 8.6665 4.6665C8.6665 4.29831 8.36803 3.99984 7.99984 3.99984C7.63165 3.99984 7.33317 4.29831 7.33317 4.6665C7.33317 5.03469 7.63165 5.33317 7.99984 5.33317Z",
2825
- fill: color
2826
- }
2827
- ) }),
2828
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("clipPath", { id: "clip0_418_7746", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
2829
- ] });
2830
- }
2831
-
2832
- // src/components/UsernameModal/index.tsx
2833
2831
  var import_react_intl10 = require("react-intl");
2834
2832
  var import_jsx_runtime76 = require("react/jsx-runtime");
2835
2833
  var ValidItem = ({