@matchain/matchid-sdk-react 0.1.56-alpha.3 → 0.1.56-alpha.5

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 (61) hide show
  1. package/dist/api.d.mts +2 -2
  2. package/dist/api.d.ts +2 -2
  3. package/dist/api.js +59 -47
  4. package/dist/api.js.map +1 -1
  5. package/dist/api.mjs +3 -3
  6. package/dist/{chunk-M5LCJX2T.mjs → chunk-2SJCPZJQ.mjs} +2 -2
  7. package/dist/{chunk-FKXS2XRG.mjs → chunk-GD7URBBZ.mjs} +54 -1
  8. package/dist/chunk-GD7URBBZ.mjs.map +1 -0
  9. package/dist/{chunk-KDVKIXOS.mjs → chunk-YR46VC65.mjs} +393 -354
  10. package/dist/chunk-YR46VC65.mjs.map +1 -0
  11. package/dist/components.d.mts +3 -3
  12. package/dist/components.d.ts +3 -3
  13. package/dist/components.js +416 -360
  14. package/dist/components.js.map +1 -1
  15. package/dist/components.mjs +2 -2
  16. package/dist/hooks.d.mts +2 -2
  17. package/dist/hooks.d.ts +2 -2
  18. package/dist/hooks.js +234 -178
  19. package/dist/hooks.js.map +1 -1
  20. package/dist/hooks.mjs +2 -2
  21. package/dist/icon.d.mts +2 -2
  22. package/dist/icon.d.ts +2 -2
  23. package/dist/icon.js +53 -0
  24. package/dist/icon.js.map +1 -1
  25. package/dist/icon.mjs +7 -1
  26. package/dist/{index-CsUEaGtM.d.ts → index-BcuSCgol.d.ts} +2 -2
  27. package/dist/{index-CPTgrfjn.d.mts → index-BlMLqmS2.d.mts} +1 -1
  28. package/dist/{index-B7ZEyP1j.d.ts → index-C1Nyy5zx.d.ts} +1 -1
  29. package/dist/{index-FKxw4Vaa.d.mts → index-CBcBTQyU.d.mts} +1 -1
  30. package/dist/{index-BXbfmVoU.d.mts → index-CD0dACxf.d.mts} +2 -2
  31. package/dist/{index-TjbO7d74.d.mts → index-CER00guz.d.mts} +1 -1
  32. package/dist/{index-BtjgRcNJ.d.ts → index-CjekOYJl.d.mts} +2 -2
  33. package/dist/{index-C82WIWvx.d.ts → index-DN-jrh8-.d.ts} +13 -3
  34. package/dist/{index-BKSGbw7b.d.mts → index-DdN22cwf.d.ts} +2 -2
  35. package/dist/{index-YPRyEYt6.d.mts → index-DkIIQLbh.d.ts} +10 -4
  36. package/dist/{index-4dZbgWG2.d.ts → index-DlaCsN95.d.ts} +1 -1
  37. package/dist/{index-DK7l3lsH.d.ts → index-lh6qBAf_.d.mts} +10 -4
  38. package/dist/{index-CwHXzvvB.d.ts → index-o0WW1c5O.d.ts} +1 -1
  39. package/dist/{index-D7E317WV.d.mts → index-xThRnNN3.d.mts} +13 -3
  40. package/dist/index.css +35 -1
  41. package/dist/index.d.mts +8 -8
  42. package/dist/index.d.ts +8 -8
  43. package/dist/index.js +497 -412
  44. package/dist/index.js.map +1 -1
  45. package/dist/index.mjs +3 -3
  46. package/dist/{types-DEsY_CPH.d.mts → types-CheN9vHJ.d.mts} +4 -0
  47. package/dist/{types-DEsY_CPH.d.ts → types-CheN9vHJ.d.ts} +4 -0
  48. package/dist/types.d.mts +1 -1
  49. package/dist/types.d.ts +1 -1
  50. package/dist/ui.d.mts +3 -3
  51. package/dist/ui.d.ts +3 -3
  52. package/dist/ui.js +192 -105
  53. package/dist/ui.js.map +1 -1
  54. package/dist/ui.mjs +4 -2
  55. package/example/src/pages/UI/components/Checkbox.tsx +10 -0
  56. package/example/src/pages/UI/components/Input.tsx +12 -0
  57. package/example/src/pages/UI/index.tsx +4 -0
  58. package/package.json +1 -1
  59. package/dist/chunk-FKXS2XRG.mjs.map +0 -1
  60. package/dist/chunk-KDVKIXOS.mjs.map +0 -1
  61. /package/dist/{chunk-M5LCJX2T.mjs.map → chunk-2SJCPZJQ.mjs.map} +0 -0
@@ -1207,6 +1207,30 @@ function PhantomIcon({
1207
1207
  // src/assets/icon/MoreIcon.tsx
1208
1208
  var import_jsx_runtime50 = require("react/jsx-runtime");
1209
1209
 
1210
+ // src/assets/icon/CheckboxIcon.tsx
1211
+ var import_jsx_runtime51 = require("react/jsx-runtime");
1212
+
1213
+ // src/assets/icon/CheckboxCheckedIcon.tsx
1214
+ var import_jsx_runtime52 = require("react/jsx-runtime");
1215
+
1216
+ // src/assets/icon/InputLengthIcon.tsx
1217
+ var import_jsx_runtime53 = require("react/jsx-runtime");
1218
+ function InputLengthIcon({
1219
+ size = 12,
1220
+ color = "#B6B6B6",
1221
+ ...props
1222
+ }) {
1223
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("svg", { width: size, height: size, viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
1224
+ "path",
1225
+ {
1226
+ "fill-rule": "evenodd",
1227
+ "clip-rule": "evenodd",
1228
+ d: "M1.10097 12L12 1.10097L10.899 0L0 10.899L1.10097 12ZM7.19277 11.4594L11.6684 6.98378L10.5675 5.88281L6.0918 10.3585L7.19277 11.4594Z",
1229
+ fill: color
1230
+ }
1231
+ ) });
1232
+ }
1233
+
1210
1234
  // src/hooks/useLayout.tsx
1211
1235
  var import_react = require("react");
1212
1236
  function useDownMd() {
@@ -1225,7 +1249,7 @@ function useDownMd() {
1225
1249
 
1226
1250
  // src/ui/Overlay/index.tsx
1227
1251
  var import_react2 = require("react");
1228
- var import_jsx_runtime51 = require("react/jsx-runtime");
1252
+ var import_jsx_runtime54 = require("react/jsx-runtime");
1229
1253
  function Overlay({
1230
1254
  isOpen = false,
1231
1255
  children,
@@ -1241,7 +1265,7 @@ function Overlay({
1241
1265
  document.body.style.overflow = "";
1242
1266
  };
1243
1267
  }, [isOpen]);
1244
- return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
1268
+ return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
1245
1269
  "div",
1246
1270
  {
1247
1271
  className: "matchid-overlay",
@@ -1250,12 +1274,12 @@ function Overlay({
1250
1274
  },
1251
1275
  children
1252
1276
  }
1253
- ) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx_runtime51.Fragment, {});
1277
+ ) : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_jsx_runtime54.Fragment, {});
1254
1278
  }
1255
1279
 
1256
1280
  // src/ui/Modal/index.tsx
1257
1281
  var import_react_intl = require("react-intl");
1258
- var import_jsx_runtime52 = require("react/jsx-runtime");
1282
+ var import_jsx_runtime55 = require("react/jsx-runtime");
1259
1283
  function Modal({
1260
1284
  children,
1261
1285
  isOpen,
@@ -1263,10 +1287,10 @@ function Modal({
1263
1287
  zIndex = 100,
1264
1288
  className = ""
1265
1289
  }) {
1266
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: `matchid-modal ${className}`, style: {
1290
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: `matchid-modal ${className}`, style: {
1267
1291
  width
1268
1292
  }, children: [
1269
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "matchid-modal-mobile-header" }),
1293
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "matchid-modal-mobile-header" }),
1270
1294
  children
1271
1295
  ] }) });
1272
1296
  }
@@ -1280,13 +1304,13 @@ function ModalWithHeader({
1280
1304
  ...props
1281
1305
  }) {
1282
1306
  const isDownMd = useDownMd();
1283
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(Modal, { ...props, children: [
1284
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: `matchid-modal-header ${showBorder ? "matchid-modal-header-border" : ""}`, children: [
1285
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "matchid-modal-header-content", children: [
1286
- onBack && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ArrowLeftIcon, { height: isDownMd ? 20 : 25, width: isDownMd ? 20 : 24, className: "matchid-modal-header-back", onClick: onBack }),
1287
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "matchid-modal-header-title", children: title })
1307
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Modal, { ...props, children: [
1308
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: `matchid-modal-header ${showBorder ? "matchid-modal-header-border" : ""}`, children: [
1309
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "matchid-modal-header-content", children: [
1310
+ onBack && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ArrowLeftIcon, { height: isDownMd ? 20 : 25, width: isDownMd ? 20 : 24, className: "matchid-modal-header-back", onClick: onBack }),
1311
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "matchid-modal-header-title", children: title })
1288
1312
  ] }),
1289
- onClose && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30, className: "matchid-modal-header-close", onClick: onClose })
1313
+ onClose && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30, className: "matchid-modal-header-close", onClick: onClose })
1290
1314
  ] }),
1291
1315
  children
1292
1316
  ] });
@@ -1297,7 +1321,7 @@ var import_react5 = require("react");
1297
1321
 
1298
1322
  // src/utils/index.tsx
1299
1323
  var import_moment = __toESM(require("moment"));
1300
- var import_jsx_runtime53 = require("react/jsx-runtime");
1324
+ var import_jsx_runtime56 = require("react/jsx-runtime");
1301
1325
  var getVersion = () => {
1302
1326
  return "0.0.2";
1303
1327
  };
@@ -1343,10 +1367,10 @@ var NumberFormatter = ({
1343
1367
  const [intPart, decimalPart] = numberValue.toString().split(".");
1344
1368
  const intFormat = separator ? intPart.replace(/\B(?=(\d{3})+(?!\d))/g, ",") : intPart;
1345
1369
  if (Math.abs(parseFloat(numberValue)) >= 1) {
1346
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("span", { className, children: [
1347
- prefix && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: prefixClassName, children: prefix }),
1348
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: intClassName, children: intFormat }),
1349
- decimalPart ? /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("span", { className: decimalClassName, children: [
1370
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { className, children: [
1371
+ prefix && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: prefixClassName, children: prefix }),
1372
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: intClassName, children: intFormat }),
1373
+ decimalPart ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { className: decimalClassName, children: [
1350
1374
  ".",
1351
1375
  decimalPart.substring(0, fixNum)
1352
1376
  ] }) : "",
@@ -1363,30 +1387,30 @@ var NumberFormatter = ({
1363
1387
  }
1364
1388
  }
1365
1389
  if (zeroCount < tFixNum) {
1366
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("span", { className, children: [
1367
- prefix && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: prefixClassName, children: prefix }),
1368
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: intClassName, children: intFormat }),
1369
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("span", { className: decimalClassName, children: [
1390
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { className, children: [
1391
+ prefix && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: prefixClassName, children: prefix }),
1392
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: intClassName, children: intFormat }),
1393
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { className: decimalClassName, children: [
1370
1394
  ".",
1371
1395
  decimalPart.substring(0, tFixNum)
1372
1396
  ] }),
1373
1397
  suffix
1374
1398
  ] });
1375
1399
  }
1376
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("span", { className, children: [
1377
- prefix && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: prefixClassName, children: prefix }),
1378
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: intClassName, children: intFormat }),
1379
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("span", { className: decimalClassName, children: [
1400
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { className, children: [
1401
+ prefix && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: prefixClassName, children: prefix }),
1402
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: intClassName, children: intFormat }),
1403
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { className: decimalClassName, children: [
1380
1404
  ".0",
1381
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("sub", { children: zeroCount }),
1405
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("sub", { children: zeroCount }),
1382
1406
  decimalPart?.substring(zeroCount, zeroCount + tFixNum - 2)
1383
1407
  ] }),
1384
1408
  suffix
1385
1409
  ] });
1386
1410
  }
1387
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("span", { className, children: [
1388
- prefix && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: prefixClassName, children: prefix }),
1389
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: intClassName, children: intPart }),
1411
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { className, children: [
1412
+ prefix && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: prefixClassName, children: prefix }),
1413
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: intClassName, children: intPart }),
1390
1414
  suffix
1391
1415
  ] });
1392
1416
  };
@@ -1408,7 +1432,7 @@ function bytesToBase64(bytes) {
1408
1432
  }
1409
1433
 
1410
1434
  // src/ui/Button/index.tsx
1411
- var import_jsx_runtime54 = require("react/jsx-runtime");
1435
+ var import_jsx_runtime57 = require("react/jsx-runtime");
1412
1436
  function Button({
1413
1437
  size = "df",
1414
1438
  disabled = false,
@@ -1428,7 +1452,7 @@ function Button({
1428
1452
  onClick && onClick();
1429
1453
  }
1430
1454
  };
1431
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
1455
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
1432
1456
  "button",
1433
1457
  {
1434
1458
  type,
@@ -1439,34 +1463,55 @@ function Button({
1439
1463
  },
1440
1464
  onClick: onAction,
1441
1465
  ...dataset,
1442
- children: loading ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(LoadingIcon_default, { className: "matchid-btn-loading-icon", color: "var(--matchid-btn-loading-color)" }) : children
1466
+ children: loading ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(LoadingIcon_default, { className: "matchid-btn-loading-icon", color: "var(--matchid-btn-loading-color)" }) : children
1443
1467
  }
1444
1468
  );
1445
1469
  }
1446
1470
 
1447
1471
  // src/ui/Input/index.tsx
1448
1472
  var import_react4 = require("react");
1449
- var import_jsx_runtime55 = require("react/jsx-runtime");
1473
+ var import_jsx_runtime58 = require("react/jsx-runtime");
1450
1474
  function Input({
1451
1475
  onChange,
1452
1476
  type,
1453
1477
  after,
1478
+ showLength = false,
1479
+ showClear = true,
1454
1480
  className = "",
1481
+ rows = 1,
1482
+ maxRows = 4,
1483
+ children,
1455
1484
  ...props
1456
1485
  }) {
1457
1486
  const [inputType, setInputType] = (0, import_react4.useState)(type);
1458
1487
  const isDownMd = useDownMd();
1459
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
1488
+ const textareaRef = (0, import_react4.useRef)(null);
1489
+ (0, import_react4.useEffect)(() => {
1490
+ const textarea = textareaRef.current;
1491
+ if (textarea) {
1492
+ textarea.style.height = "auto";
1493
+ const lineHeight = 24;
1494
+ const maxHeight = lineHeight * 4;
1495
+ textarea.style.height = Math.min(textarea.scrollHeight, maxHeight) + "px";
1496
+ }
1497
+ }, [props.value]);
1498
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
1460
1499
  "div",
1461
1500
  {
1462
- className: `matchid-input-box ${props.value && props.value.length > 0 ? "matchid-input-has-content" : ""} ${className}`,
1501
+ className: `matchid-input-box matchid-input-${type} ${props.value && props.value.length > 0 ? "matchid-input-has-content" : ""} ${className}`,
1502
+ style: {
1503
+ // @ts-ignore
1504
+ "--max-rows": maxRows
1505
+ },
1463
1506
  children: [
1464
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("input", { type: inputType, onChange, ...props, className: "matchid-input-field" }),
1465
- props.value && props.value.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "matchid-input-delete-icon", onClick: (e) => {
1507
+ children ?? (type == "textarea" ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("textarea", { rows: 1, onChange, ...props, className: "matchid-input-field", ref: textareaRef, style: {
1508
+ maxHeight: maxRows * 24 + "px"
1509
+ } }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("input", { type: inputType, onChange, ...props, className: "matchid-input-field" })),
1510
+ type != "textarea" && showClear && props.value && props.value.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "matchid-input-delete-icon", onClick: (e) => {
1466
1511
  if (onChange) {
1467
1512
  onChange({ target: { value: "" } });
1468
1513
  }
1469
- }, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
1514
+ }, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
1470
1515
  DeleteRoundIcon,
1471
1516
  {
1472
1517
  height: isDownMd ? 16 : 21,
@@ -1474,9 +1519,17 @@ function Input({
1474
1519
  color: "var(--matchid-input-delete-icon-color)"
1475
1520
  }
1476
1521
  ) }),
1477
- type === "password" && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "matchid-input-eye-icon", onClick: () => {
1522
+ type === "password" && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "matchid-input-eye-icon", onClick: () => {
1478
1523
  setInputType(inputType === "password" ? "text" : "password");
1479
- }, children: inputType === "password" ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(CloseEyeIcon, { size: isDownMd ? 16 : 20 }) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(OpenEyeIcon, { size: isDownMd ? 16 : 20 }) }),
1524
+ }, children: inputType === "password" ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(CloseEyeIcon, { size: isDownMd ? 16 : 20 }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(OpenEyeIcon, { size: isDownMd ? 16 : 20 }) }),
1525
+ showLength && props.maxLength && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: `matchid-input-length`, children: [
1526
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("span", { children: [
1527
+ props.value.length || 0,
1528
+ "/",
1529
+ props.maxLength
1530
+ ] }),
1531
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(InputLengthIcon, { color: "var(--icon-color)" })
1532
+ ] }),
1480
1533
  after
1481
1534
  ]
1482
1535
  }
@@ -1484,7 +1537,7 @@ function Input({
1484
1537
  }
1485
1538
 
1486
1539
  // src/ui/Field/index.tsx
1487
- var import_jsx_runtime56 = require("react/jsx-runtime");
1540
+ var import_jsx_runtime59 = require("react/jsx-runtime");
1488
1541
  function Field({
1489
1542
  label,
1490
1543
  children,
@@ -1492,19 +1545,19 @@ function Field({
1492
1545
  required,
1493
1546
  className = ""
1494
1547
  }) {
1495
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: `matchid-field-box ${className}`, children: [
1496
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "matchid-field-label", children: [
1497
- required && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "matchid-field-required", children: "*" }),
1548
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: `matchid-field-box ${className}`, children: [
1549
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "matchid-field-label", children: [
1550
+ required && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "matchid-field-required", children: "*" }),
1498
1551
  label
1499
1552
  ] }),
1500
1553
  children,
1501
- error && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "matchid-field-error", children: error })
1554
+ error && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "matchid-field-error", children: error })
1502
1555
  ] });
1503
1556
  }
1504
1557
 
1505
1558
  // src/components/EmailModal/StepEmail.tsx
1506
1559
  var import_react_intl2 = require("react-intl");
1507
- var import_jsx_runtime57 = require("react/jsx-runtime");
1560
+ var import_jsx_runtime60 = require("react/jsx-runtime");
1508
1561
  function StepEmail(props) {
1509
1562
  const intl = (0, import_react_intl2.useIntl)();
1510
1563
  const [emailVal, setEmailVal] = (0, import_react5.useState)("");
@@ -1519,10 +1572,10 @@ function StepEmail(props) {
1519
1572
  const onContinue = async () => {
1520
1573
  props.onContinue(emailVal);
1521
1574
  };
1522
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "matchid-email-email-box", children: [
1523
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Field, { label: intl.formatMessage({
1575
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "matchid-email-email-box", children: [
1576
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Field, { label: intl.formatMessage({
1524
1577
  id: "emailAddress"
1525
- }), children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
1578
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
1526
1579
  Input,
1527
1580
  {
1528
1581
  placeholder: intl.formatMessage({
@@ -1532,9 +1585,9 @@ function StepEmail(props) {
1532
1585
  value: emailVal
1533
1586
  }
1534
1587
  ) }),
1535
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Button, { disabled: !canContinue, style: {
1588
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Button, { disabled: !canContinue, style: {
1536
1589
  marginTop: "64px"
1537
- }, onClick: onContinue, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react_intl2.FormattedMessage, { id: "continue" }) })
1590
+ }, onClick: onContinue, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react_intl2.FormattedMessage, { id: "continue" }) })
1538
1591
  ] });
1539
1592
  }
1540
1593
 
@@ -1957,7 +2010,7 @@ var import_react10 = require("react");
1957
2010
  var import_react_dom = require("react-dom");
1958
2011
 
1959
2012
  // src/ui/Drawer/index.tsx
1960
- var import_jsx_runtime58 = require("react/jsx-runtime");
2013
+ var import_jsx_runtime61 = require("react/jsx-runtime");
1961
2014
  function Drawer({
1962
2015
  children,
1963
2016
  showClose = true,
@@ -1968,15 +2021,15 @@ function Drawer({
1968
2021
  onBack
1969
2022
  }) {
1970
2023
  if (!isOpen) {
1971
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_jsx_runtime58.Fragment, {});
2024
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_jsx_runtime61.Fragment, {});
1972
2025
  }
1973
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "matchid-drawer", children: [
1974
- /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: `matchid-drawer-header matchid-flex`, children: [
1975
- /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: `matchid-drawer-header-content matchid-flex`, children: [
1976
- onBack && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ArrowLeftIcon, { height: 25, width: 24, className: "matchid-drawer-header-back", onClick: onBack }),
2026
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "matchid-drawer", children: [
2027
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: `matchid-drawer-header matchid-flex`, children: [
2028
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: `matchid-drawer-header-content matchid-flex`, children: [
2029
+ onBack && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ArrowLeftIcon, { height: 25, width: 24, className: "matchid-drawer-header-back", onClick: onBack }),
1977
2030
  title
1978
2031
  ] }),
1979
- showClose && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(CloseRoundIcon, { className: "matchid-drawer-header-close", onClick: onClose })
2032
+ showClose && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(CloseRoundIcon, { className: "matchid-drawer-header-close", onClick: onClose })
1980
2033
  ] }),
1981
2034
  children
1982
2035
  ] }) });
@@ -1986,7 +2039,7 @@ function Drawer({
1986
2039
  var import_react7 = require("react");
1987
2040
 
1988
2041
  // src/ui/ModalDrawer/index.tsx
1989
- var import_jsx_runtime59 = require("react/jsx-runtime");
2042
+ var import_jsx_runtime62 = require("react/jsx-runtime");
1990
2043
  function ModalDrawer({
1991
2044
  title,
1992
2045
  drawerTitleVisible = true,
@@ -1994,9 +2047,9 @@ function ModalDrawer({
1994
2047
  }) {
1995
2048
  const isDownMd = useDownMd();
1996
2049
  if (isDownMd) {
1997
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ModalWithHeader, { ...props, title });
2050
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(ModalWithHeader, { ...props, title });
1998
2051
  }
1999
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Drawer, { ...props, title: drawerTitleVisible ? title : null });
2052
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Drawer, { ...props, title: drawerTitleVisible ? title : null });
2000
2053
  }
2001
2054
 
2002
2055
  // src/assets/lottie/confirm.json
@@ -2064,7 +2117,7 @@ function useHash({
2064
2117
  }
2065
2118
 
2066
2119
  // src/ui/HashPanel/index.tsx
2067
- var import_jsx_runtime60 = require("react/jsx-runtime");
2120
+ var import_jsx_runtime63 = require("react/jsx-runtime");
2068
2121
  function HashPanel({
2069
2122
  hash,
2070
2123
  chain,
@@ -2124,14 +2177,14 @@ function HashPanel({
2124
2177
  }
2125
2178
  }, [hashQuery.data]);
2126
2179
  const link = chain ? `${chain?.blockExplorers?.default.url}/tx/${hash}` : "";
2127
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2180
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2128
2181
  ModalDrawer,
2129
2182
  {
2130
2183
  isOpen,
2131
2184
  showClose: true,
2132
2185
  onClose,
2133
2186
  zIndex,
2134
- title: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2187
+ title: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2135
2188
  "div",
2136
2189
  {
2137
2190
  className: "matchid-hashpanel-header",
@@ -2141,33 +2194,33 @@ function HashPanel({
2141
2194
  children: statusValue.text
2142
2195
  }
2143
2196
  ),
2144
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "matchid-hashpanel-box", children: [
2145
- /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "matchid-hashpanel-content", children: [
2146
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: `matchid-hashpanel-status`, style: {
2197
+ children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "matchid-hashpanel-box", children: [
2198
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "matchid-hashpanel-content", children: [
2199
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: `matchid-hashpanel-status`, style: {
2147
2200
  color: statusValue.color
2148
2201
  }, children: statusValue.text }),
2149
- statusValue.lottie && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Lottie_default, { animationData: statusValue.lottie, style: {
2202
+ statusValue.lottie && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Lottie_default, { animationData: statusValue.lottie, style: {
2150
2203
  width: "96px",
2151
2204
  height: "96px"
2152
2205
  } }),
2153
- hash && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "matchid-hashpanel-hash", children: [
2206
+ hash && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "matchid-hashpanel-hash", children: [
2154
2207
  "Hash:",
2155
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("a", { href: link, target: "_blank", children: hash })
2208
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("a", { href: link, target: "_blank", children: hash })
2156
2209
  ] }),
2157
- error && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "matchid-hashpanel-text", children: error })
2210
+ error && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "matchid-hashpanel-text", children: error })
2158
2211
  ] }),
2159
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Button, { onClick: onClose, size: "lg", block: true, children: "Back" })
2212
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Button, { onClick: onClose, size: "lg", block: true, children: "Back" })
2160
2213
  ] })
2161
2214
  }
2162
2215
  );
2163
2216
  }
2164
2217
  function HashPanel_default(props) {
2165
- return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(HashPanel, { ...props });
2218
+ return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(HashPanel, { ...props });
2166
2219
  }
2167
2220
 
2168
2221
  // src/ui/Popover/index.tsx
2169
2222
  var import_react8 = require("react");
2170
- var import_jsx_runtime61 = require("react/jsx-runtime");
2223
+ var import_jsx_runtime64 = require("react/jsx-runtime");
2171
2224
  function Popover({
2172
2225
  children,
2173
2226
  content,
@@ -2177,7 +2230,7 @@ function Popover({
2177
2230
  gap = "20px"
2178
2231
  }) {
2179
2232
  const [active, setActive] = (0, import_react8.useState)(false);
2180
- return children && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
2233
+ return children && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
2181
2234
  "div",
2182
2235
  {
2183
2236
  onClick: () => {
@@ -2188,20 +2241,20 @@ function Popover({
2188
2241
  className: `matchid-popover-box matchid-popover-${position} matchid-popover-${type} ${className} ${type == "click" && active ? "matchid-popover-click-active" : ""}`,
2189
2242
  children: [
2190
2243
  children,
2191
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { style: {
2244
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { style: {
2192
2245
  paddingTop: gap
2193
- }, className: `matchid-popover-area`, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: `matchid-popover-content`, children: content }) })
2246
+ }, className: `matchid-popover-area`, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: `matchid-popover-content`, children: content }) })
2194
2247
  ]
2195
2248
  }
2196
2249
  );
2197
2250
  }
2198
2251
 
2199
2252
  // src/ui/Switch/index.tsx
2200
- var import_jsx_runtime62 = require("react/jsx-runtime");
2253
+ var import_jsx_runtime65 = require("react/jsx-runtime");
2201
2254
 
2202
2255
  // src/ui/AlphaAvatar/index.tsx
2203
2256
  var import_react9 = require("react");
2204
- var import_jsx_runtime63 = require("react/jsx-runtime");
2257
+ var import_jsx_runtime66 = require("react/jsx-runtime");
2205
2258
  function AlphaAvatar({
2206
2259
  name,
2207
2260
  size = "default",
@@ -2218,7 +2271,7 @@ function AlphaAvatar({
2218
2271
  return "";
2219
2272
  }, [name]);
2220
2273
  const numberSize = typeof size === "number" ? size : size === "sm" ? 24 : size === "default" ? 40 : 64;
2221
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
2274
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
2222
2275
  width: numberSize,
2223
2276
  height: numberSize,
2224
2277
  fontSize: Math.ceil(numberSize / 2),
@@ -2227,7 +2280,7 @@ function AlphaAvatar({
2227
2280
  }
2228
2281
 
2229
2282
  // src/ui/Radio/index.tsx
2230
- var import_jsx_runtime64 = require("react/jsx-runtime");
2283
+ var import_jsx_runtime67 = require("react/jsx-runtime");
2231
2284
  function Radio({
2232
2285
  checked = false,
2233
2286
  onChange,
@@ -2236,23 +2289,23 @@ function Radio({
2236
2289
  className = "",
2237
2290
  style = {}
2238
2291
  }) {
2239
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { onClick: onChange, className: `matchid-radio ${className} ${checked ? "matchid-radio-checked" : ""}`, style: {
2292
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { onClick: onChange, className: `matchid-radio ${className} ${checked ? "matchid-radio-checked" : ""}`, style: {
2240
2293
  width: size,
2241
2294
  height: size,
2242
2295
  ...style,
2243
2296
  // @ts-ignore
2244
2297
  "--matchid-radio-checked": color
2245
- }, children: checked && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: `matchid-radio-content`, style: {
2298
+ }, children: checked && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: `matchid-radio-content`, style: {
2246
2299
  width: Math.floor(size * 0.7),
2247
2300
  height: Math.floor(size * 0.7)
2248
2301
  } }) });
2249
2302
  }
2250
2303
 
2251
2304
  // src/ui/Skeleton/index.tsx
2252
- var import_jsx_runtime65 = require("react/jsx-runtime");
2305
+ var import_jsx_runtime68 = require("react/jsx-runtime");
2253
2306
 
2254
2307
  // src/ui/Tabs/index.tsx
2255
- var import_jsx_runtime66 = require("react/jsx-runtime");
2308
+ var import_jsx_runtime69 = require("react/jsx-runtime");
2256
2309
 
2257
2310
  // src/ui/Lottie/index.tsx
2258
2311
  var import_lottie_react = require("lottie-react");
@@ -2267,8 +2320,11 @@ var LazyLottie = (props) => {
2267
2320
  };
2268
2321
  var Lottie_default = LazyLottie;
2269
2322
 
2323
+ // src/ui/Checkbox/index.tsx
2324
+ var import_jsx_runtime70 = require("react/jsx-runtime");
2325
+
2270
2326
  // src/context/ModalContext.tsx
2271
- var import_jsx_runtime67 = require("react/jsx-runtime");
2327
+ var import_jsx_runtime71 = require("react/jsx-runtime");
2272
2328
  var ModalContext = (0, import_react10.createContext)(null);
2273
2329
  function useModal() {
2274
2330
  const context = (0, import_react10.useContext)(ModalContext);
@@ -2309,7 +2365,7 @@ var useTransactionStore = (0, import_zustand3.create)((0, import_middleware2.dev
2309
2365
  var useTransactionStore_default = useTransactionStore;
2310
2366
 
2311
2367
  // src/hooks/useWallet.tsx
2312
- var import_jsx_runtime68 = require("react/jsx-runtime");
2368
+ var import_jsx_runtime72 = require("react/jsx-runtime");
2313
2369
  var AppClientId = "react-sdk-" + getVersion();
2314
2370
  function useWallet() {
2315
2371
  const { address, wallet: walletConfig } = useLocalStore_default();
@@ -2483,12 +2539,12 @@ function useWallet() {
2483
2539
  address: evmAccount.address
2484
2540
  });
2485
2541
  modal.show((props) => {
2486
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, hash: txHash, chain: _chain });
2542
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, hash: txHash, chain: _chain });
2487
2543
  });
2488
2544
  return txHash;
2489
2545
  } catch (error) {
2490
2546
  modal.show((props) => {
2491
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, error: typeof error == "string" ? error : error.details || error.message, chain: _chain });
2547
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, error: typeof error == "string" ? error : error.details || error.message, chain: _chain });
2492
2548
  });
2493
2549
  throw error;
2494
2550
  }
@@ -2566,7 +2622,7 @@ function useCopyClipboard(timeout = 500) {
2566
2622
  // src/context/ToastContext.tsx
2567
2623
  var import_react13 = require("react");
2568
2624
  var import_react_dom2 = require("react-dom");
2569
- var import_jsx_runtime69 = require("react/jsx-runtime");
2625
+ var import_jsx_runtime73 = require("react/jsx-runtime");
2570
2626
  var ToastContext = (0, import_react13.createContext)(null);
2571
2627
 
2572
2628
  // src/hooks/api/wallet.ts
@@ -2628,7 +2684,7 @@ function useImportTokenListQuery({
2628
2684
  var import_react14 = require("react");
2629
2685
  var import_viem5 = require("viem");
2630
2686
  var import_react_intl3 = require("react-intl");
2631
- var import_jsx_runtime70 = require("react/jsx-runtime");
2687
+ var import_jsx_runtime74 = require("react/jsx-runtime");
2632
2688
  function useMatchChain() {
2633
2689
  const chainListQuery = useChainListQuery();
2634
2690
  const modal = useModal();
@@ -2659,28 +2715,28 @@ function useMatchChain() {
2659
2715
  const { chainId: storeChainId2, setChainId: setChainId2 } = useLocalStore_default();
2660
2716
  const [selectedChainId, setSelectedChainId] = (0, import_react14.useState)(storeChainId2);
2661
2717
  const isDownMd = useDownMd();
2662
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: `matchid-change-network-box`, children: [
2663
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: `matchid-change-network-list`, children: chainListQuery.data?.map((item, index) => {
2664
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
2718
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: `matchid-change-network-box`, children: [
2719
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: `matchid-change-network-list`, children: chainListQuery.data?.map((item, index) => {
2720
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
2665
2721
  "div",
2666
2722
  {
2667
2723
  onClick: () => setSelectedChainId(item.id),
2668
2724
  className: `matchid-change-network-item ${selectedChainId == item.id ? "matchid-change-network-selected" : ""}`,
2669
2725
  children: [
2670
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: `matchid-change-network-item-content`, children: [
2671
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("img", { src: item.iconUrl, className: `matchid-change-network-item-icon` }),
2672
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "matchid-change-network-item-name", children: item.name })
2726
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: `matchid-change-network-item-content`, children: [
2727
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("img", { src: item.iconUrl, className: `matchid-change-network-item-icon` }),
2728
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "matchid-change-network-item-name", children: item.name })
2673
2729
  ] }),
2674
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Radio, { checked: selectedChainId === item.id, size: isDownMd ? 18 : 24 })
2730
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Radio, { checked: selectedChainId === item.id, size: isDownMd ? 18 : 24 })
2675
2731
  ]
2676
2732
  },
2677
2733
  index
2678
2734
  );
2679
2735
  }) }),
2680
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Button, { size: "lg", highlight: true, onClick: () => {
2736
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Button, { size: "lg", highlight: true, onClick: () => {
2681
2737
  setChainId2(selectedChainId || 0);
2682
2738
  close();
2683
- }, block: true, children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react_intl3.FormattedMessage, { id: "confirm" }) })
2739
+ }, block: true, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react_intl3.FormattedMessage, { id: "confirm" }) })
2684
2740
  ] });
2685
2741
  }
2686
2742
  const showChangeNetwork = () => {
@@ -2798,10 +2854,10 @@ var import_viem6 = require("viem");
2798
2854
  var import_react_query3 = require("@tanstack/react-query");
2799
2855
 
2800
2856
  // src/components/ImportToken/index.tsx
2801
- var import_jsx_runtime71 = require("react/jsx-runtime");
2857
+ var import_jsx_runtime75 = require("react/jsx-runtime");
2802
2858
 
2803
2859
  // src/hooks/useMatchWallet.tsx
2804
- var import_jsx_runtime72 = require("react/jsx-runtime");
2860
+ var import_jsx_runtime76 = require("react/jsx-runtime");
2805
2861
  function useMatchWalletRecords() {
2806
2862
  const [hasMore, setHasMore] = (0, import_react16.useState)(true);
2807
2863
  const [items, setItems] = (0, import_react16.useState)([]);
@@ -3110,39 +3166,39 @@ var CACHE_TTL2 = 86400 * 30 * 1e3;
3110
3166
  var import_zustand5 = require("zustand");
3111
3167
 
3112
3168
  // src/hooks/useConfig.tsx
3113
- var import_jsx_runtime73 = require("react/jsx-runtime");
3169
+ var import_jsx_runtime77 = require("react/jsx-runtime");
3114
3170
  var DEFAULT_WALLET_METHODS = ["evm", "sol", "btc", "tron", "ton"];
3115
3171
  var WALLET_METHODS = ["evm", "sol", "btc", "tron", "ton"];
3116
3172
  function useWalletConfig() {
3117
3173
  const isDownMd = useDownMd();
3118
3174
  const walletMap = {
3119
3175
  evm: {
3120
- icon: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(EVMDarkIcon, { size: isDownMd ? 36 : 40 }),
3121
- activeIcon: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(EVMLightIcon, { size: isDownMd ? 36 : 40 }),
3176
+ icon: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(EVMDarkIcon, { size: isDownMd ? 36 : 40 }),
3177
+ activeIcon: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(EVMLightIcon, { size: isDownMd ? 36 : 40 }),
3122
3178
  name: "EVM",
3123
3179
  method: "evm"
3124
3180
  },
3125
3181
  sol: {
3126
- icon: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(SOLDarkIcon, { size: isDownMd ? 36 : 40 }),
3127
- activeIcon: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(SOLLightIcon, { size: isDownMd ? 36 : 40 }),
3182
+ icon: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(SOLDarkIcon, { size: isDownMd ? 36 : 40 }),
3183
+ activeIcon: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(SOLLightIcon, { size: isDownMd ? 36 : 40 }),
3128
3184
  name: "SOL",
3129
3185
  method: "sol"
3130
3186
  },
3131
3187
  btc: {
3132
- icon: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(BTCDarkIcon, { size: isDownMd ? 36 : 40 }),
3133
- activeIcon: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(BTCLightIcon, { size: isDownMd ? 36 : 40 }),
3188
+ icon: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(BTCDarkIcon, { size: isDownMd ? 36 : 40 }),
3189
+ activeIcon: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(BTCLightIcon, { size: isDownMd ? 36 : 40 }),
3134
3190
  name: "BTC",
3135
3191
  method: "btc"
3136
3192
  },
3137
3193
  tron: {
3138
- icon: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(TRXDarkIcon, { size: isDownMd ? 36 : 40 }),
3139
- activeIcon: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(TRXLightIcon, { size: isDownMd ? 36 : 40 }),
3194
+ icon: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(TRXDarkIcon, { size: isDownMd ? 36 : 40 }),
3195
+ activeIcon: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(TRXLightIcon, { size: isDownMd ? 36 : 40 }),
3140
3196
  name: "TRON",
3141
3197
  method: "tron"
3142
3198
  },
3143
3199
  ton: {
3144
- icon: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(TonLightIcon, { size: isDownMd ? 36 : 40 }),
3145
- activeIcon: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(TonLightIcon2, { size: isDownMd ? 36 : 40 }),
3200
+ icon: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(TonLightIcon, { size: isDownMd ? 36 : 40 }),
3201
+ activeIcon: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(TonLightIcon2, { size: isDownMd ? 36 : 40 }),
3146
3202
  name: "TON",
3147
3203
  method: "ton"
3148
3204
  }
@@ -3194,14 +3250,14 @@ var useWalletModalStore = (0, import_zustand5.create)((set) => ({
3194
3250
  // src/components/CEXBindModal/index.tsx
3195
3251
  var import_react19 = require("react");
3196
3252
  var import_react_intl6 = require("react-intl");
3197
- var import_jsx_runtime74 = require("react/jsx-runtime");
3253
+ var import_jsx_runtime78 = require("react/jsx-runtime");
3198
3254
 
3199
3255
  // src/context/BusinessProvider.tsx
3200
3256
  var import_react_query8 = require("@tanstack/react-query");
3201
- var import_jsx_runtime75 = require("react/jsx-runtime");
3257
+ var import_jsx_runtime79 = require("react/jsx-runtime");
3202
3258
 
3203
3259
  // src/context/index.tsx
3204
- var import_jsx_runtime76 = require("react/jsx-runtime");
3260
+ var import_jsx_runtime80 = require("react/jsx-runtime");
3205
3261
 
3206
3262
  // src/hooks/useWalletInit.ts
3207
3263
  var import_react20 = require("react");
@@ -3281,7 +3337,7 @@ var matchTest = /* @__PURE__ */ (0, import_viem12.defineChain)({
3281
3337
 
3282
3338
  // src/MatchContext.tsx
3283
3339
  var import_wagmi = require("wagmi");
3284
- var import_jsx_runtime77 = require("react/jsx-runtime");
3340
+ var import_jsx_runtime81 = require("react/jsx-runtime");
3285
3341
  var queryClient = new import_react_query9.QueryClient();
3286
3342
  var wagmiConfig = (0, import_rainbowkit.getDefaultConfig)({
3287
3343
  appName: "MatchID",
@@ -3609,7 +3665,7 @@ function useUserInfo() {
3609
3665
  // src/components/EmailModal/StepVerify.tsx
3610
3666
  var import_react24 = require("react");
3611
3667
  var import_react_intl8 = require("react-intl");
3612
- var import_jsx_runtime78 = require("react/jsx-runtime");
3668
+ var import_jsx_runtime82 = require("react/jsx-runtime");
3613
3669
  function StepVerify(props) {
3614
3670
  const intl = (0, import_react_intl8.useIntl)();
3615
3671
  const { getLoginEmailCode, loginByEmail } = useUserInfo();
@@ -3686,17 +3742,17 @@ function StepVerify(props) {
3686
3742
  setSubmitting(false);
3687
3743
  }
3688
3744
  };
3689
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "matchid-email-verify-box", children: [
3690
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "matchid-email-verify-header", children: [
3691
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "matchid-email-verify-header-icon", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(EmailLineIcon, { size: isDownMd ? 19 : 24 }) }),
3692
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "matchid-email-verify-header-content", children: [
3693
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "matchid-email-verify-header-value", children: props.email }),
3694
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "matchid-email-verify-header-tips", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react_intl8.FormattedMessage, { id: "sendEmailTips" }) })
3745
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "matchid-email-verify-box", children: [
3746
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "matchid-email-verify-header", children: [
3747
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "matchid-email-verify-header-icon", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(EmailLineIcon, { size: isDownMd ? 19 : 24 }) }),
3748
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "matchid-email-verify-header-content", children: [
3749
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "matchid-email-verify-header-value", children: props.email }),
3750
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "matchid-email-verify-header-tips", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_react_intl8.FormattedMessage, { id: "sendEmailTips" }) })
3695
3751
  ] })
3696
3752
  ] }),
3697
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Field, { label: intl.formatMessage({
3753
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Field, { label: intl.formatMessage({
3698
3754
  id: "verificationCode"
3699
- }), error, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
3755
+ }), error, children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
3700
3756
  Input,
3701
3757
  {
3702
3758
  placeholder: intl.formatMessage({
@@ -3706,7 +3762,7 @@ function StepVerify(props) {
3706
3762
  maxLength: codeLength,
3707
3763
  onChange: (e) => setCode(e.target.value),
3708
3764
  value: code,
3709
- after: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
3765
+ after: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
3710
3766
  Button,
3711
3767
  {
3712
3768
  highlight: true,
@@ -3725,13 +3781,13 @@ function StepVerify(props) {
3725
3781
  )
3726
3782
  }
3727
3783
  ) }),
3728
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Button, { disabled: !canContinue, loading: submitting, highlight: true, block: true, size: "lg", onClick: onContinue, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react_intl8.FormattedMessage, { id: "continue" }) })
3784
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Button, { disabled: !canContinue, loading: submitting, highlight: true, block: true, size: "lg", onClick: onContinue, children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_react_intl8.FormattedMessage, { id: "continue" }) })
3729
3785
  ] });
3730
3786
  }
3731
3787
 
3732
3788
  // src/components/EmailModal/index.tsx
3733
3789
  var import_react_intl9 = require("react-intl");
3734
- var import_jsx_runtime79 = require("react/jsx-runtime");
3790
+ var import_jsx_runtime83 = require("react/jsx-runtime");
3735
3791
  function EmailModal({
3736
3792
  isOpen = false,
3737
3793
  width = 480,
@@ -3748,7 +3804,7 @@ function EmailModal({
3748
3804
  setEmailVal("");
3749
3805
  }
3750
3806
  }, [isOpen]);
3751
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
3807
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3752
3808
  ModalWithHeader,
3753
3809
  {
3754
3810
  isOpen,
@@ -3758,10 +3814,10 @@ function EmailModal({
3758
3814
  id: "email"
3759
3815
  }),
3760
3816
  onBack: step == "verify" ? () => setStep("input") : onBack,
3761
- children: step === "input" ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(StepEmail, { email: emailVal, onContinue: (email) => {
3817
+ children: step === "input" ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(StepEmail, { email: emailVal, onContinue: (email) => {
3762
3818
  setEmailVal(email);
3763
3819
  setStep("verify");
3764
- } }) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(StepVerify, { email: emailVal, onSuccess: onLogin })
3820
+ } }) : /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(StepVerify, { email: emailVal, onSuccess: onLogin })
3765
3821
  }
3766
3822
  );
3767
3823
  }
@@ -3791,7 +3847,7 @@ function useAppConfig() {
3791
3847
  }
3792
3848
 
3793
3849
  // src/components/LoginBox/index.tsx
3794
- var import_jsx_runtime80 = require("react/jsx-runtime");
3850
+ var import_jsx_runtime84 = require("react/jsx-runtime");
3795
3851
  var RecommendItem = ({
3796
3852
  icon,
3797
3853
  name,
@@ -3800,20 +3856,20 @@ var RecommendItem = ({
3800
3856
  children,
3801
3857
  footer
3802
3858
  }) => {
3803
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "matchid-login-recommend-method", children: [
3804
- /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "matchid-login-recommend-method-item", onClick, children: [
3805
- /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "matchid-login-recommend-method-content", children: [
3806
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "matchid-login-recommend-method-icon", children: icon }),
3807
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "matchid-login-recommend-method-name", children: name })
3859
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "matchid-login-recommend-method", children: [
3860
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "matchid-login-recommend-method-item", onClick, children: [
3861
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "matchid-login-recommend-method-content", children: [
3862
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "matchid-login-recommend-method-icon", children: icon }),
3863
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: "matchid-login-recommend-method-name", children: name })
3808
3864
  ] }),
3809
- footer ? footer : children ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
3865
+ footer ? footer : children ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
3810
3866
  ArrowDownIcon,
3811
3867
  {
3812
3868
  className: `matchid-login-recommend-method-arrow ${showChildren ? "matchid-login-recommend-method-arrow-active" : ""}`,
3813
3869
  size: 20,
3814
3870
  color: "var(--matchid-arrow-color)"
3815
3871
  }
3816
- ) : /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
3872
+ ) : /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
3817
3873
  ArrowRightIcon,
3818
3874
  {
3819
3875
  className: "matchid-login-recommend-method-arrow",
@@ -3822,7 +3878,7 @@ var RecommendItem = ({
3822
3878
  }
3823
3879
  )
3824
3880
  ] }),
3825
- children && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
3881
+ children && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
3826
3882
  "div",
3827
3883
  {
3828
3884
  className: `matchid-login-recommend-method-popover ${showChildren ? "matchid-login-recommend-method-popover-active" : ""}`,
@@ -3887,75 +3943,75 @@ function LoginBox({
3887
3943
  const isDownMd = useDownMd();
3888
3944
  const methodMap = {
3889
3945
  wallet: {
3890
- icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(WalletIcon, { size: isDownMd ? 36 : 40 }),
3946
+ icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(WalletIcon, { size: isDownMd ? 36 : 40 }),
3891
3947
  name: intl.formatMessage({ id: "wallet" }),
3892
3948
  onClick: () => setShowWallet(!showWallet),
3893
3949
  type: "wallet"
3894
3950
  },
3895
3951
  email: {
3896
- icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(EmailIcon, { size: isDownMd ? 36 : 40 }),
3952
+ icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(EmailIcon, { size: isDownMd ? 36 : 40 }),
3897
3953
  name: intl.formatMessage({ id: "email" }),
3898
3954
  onClick: () => {
3899
3955
  setEmailOpen(true);
3900
3956
  }
3901
3957
  },
3902
3958
  google: {
3903
- icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(GoogleIcon, { size: isDownMd ? 36 : 40 }),
3959
+ icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(GoogleIcon, { size: isDownMd ? 36 : 40 }),
3904
3960
  name: "Google",
3905
3961
  onClick: () => login("google")
3906
3962
  },
3907
3963
  twitter: {
3908
- icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(XIcon, { size: isDownMd ? 36 : 40 }),
3964
+ icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(XIcon, { size: isDownMd ? 36 : 40 }),
3909
3965
  name: "X",
3910
3966
  onClick: () => login("twitter")
3911
3967
  },
3912
3968
  telegram: {
3913
- icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(TelegramIcon, { size: isDownMd ? 36 : 40 }),
3969
+ icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(TelegramIcon, { size: isDownMd ? 36 : 40 }),
3914
3970
  name: "Telegram",
3915
3971
  onClick: () => login("telegram")
3916
3972
  },
3917
3973
  github: {
3918
- icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(GithubIcon, { size: isDownMd ? 36 : 40 }),
3974
+ icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(GithubIcon, { size: isDownMd ? 36 : 40 }),
3919
3975
  name: "Github",
3920
3976
  onClick: () => login("github")
3921
3977
  },
3922
3978
  discord: {
3923
- icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(DiscordIcon, { size: isDownMd ? 36 : 40 }),
3979
+ icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(DiscordIcon, { size: isDownMd ? 36 : 40 }),
3924
3980
  name: "Discord",
3925
3981
  onClick: () => login("discord")
3926
3982
  },
3927
3983
  linkedin: {
3928
- icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(LinkedinIcon, { size: isDownMd ? 36 : 40 }),
3984
+ icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(LinkedinIcon, { size: isDownMd ? 36 : 40 }),
3929
3985
  name: "LinkedIn",
3930
3986
  onClick: () => login("linkedin")
3931
3987
  },
3932
3988
  facebook: {
3933
- icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(FacebookIcon, { size: isDownMd ? 36 : 40 }),
3989
+ icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(FacebookIcon, { size: isDownMd ? 36 : 40 }),
3934
3990
  name: "Facebook",
3935
3991
  onClick: () => login("facebook")
3936
3992
  },
3937
3993
  youtube: {
3938
- icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(YoutubeIcon, { size: isDownMd ? 36 : 40 }),
3994
+ icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(YoutubeIcon, { size: isDownMd ? 36 : 40 }),
3939
3995
  name: "Youtube",
3940
3996
  onClick: () => login("youtube")
3941
3997
  }
3942
3998
  };
3943
3999
  const { walletMap } = useWalletConfig();
3944
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_jsx_runtime80.Fragment, { children: [
3945
- (!inModal || !emailOpen) && /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "matchid-login-box", children: [
3946
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "matchid-login-recommend-list", children: methodConfig.recommendMethods.map((m) => {
3947
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
4000
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx_runtime84.Fragment, { children: [
4001
+ (!inModal || !emailOpen) && /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "matchid-login-box", children: [
4002
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "matchid-login-recommend-list", children: methodConfig.recommendMethods.map((m) => {
4003
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
3948
4004
  RecommendItem,
3949
4005
  {
3950
4006
  icon: methodMap[m]?.icon,
3951
4007
  name: methodMap[m]?.name,
3952
4008
  onClick: methodMap[m]?.onClick,
3953
4009
  showChildren: m == "wallet" && showWallet,
3954
- children: m == "wallet" && /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_jsx_runtime80.Fragment, { children: [
3955
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "matchid-login-recommend-wallet-divider" }),
3956
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "matchid-login-recommend-wallet-list", children: methodConfig.walletMethods.map((n) => {
4010
+ children: m == "wallet" && /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx_runtime84.Fragment, { children: [
4011
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "matchid-login-recommend-wallet-divider" }),
4012
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "matchid-login-recommend-wallet-list", children: methodConfig.walletMethods.map((n) => {
3957
4013
  const m2 = walletMap[n];
3958
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
4014
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
3959
4015
  "div",
3960
4016
  {
3961
4017
  className: "matchid-login-recommend-wallet-item",
@@ -3963,16 +4019,16 @@ function LoginBox({
3963
4019
  login(m2.method);
3964
4020
  },
3965
4021
  children: [
3966
- /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "matchid-login-recommend-wallet-item-content", children: [
3967
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "matchid-login-recommend-wallet-item-icon", children: m2.icon }),
3968
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
4022
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "matchid-login-recommend-wallet-item-content", children: [
4023
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "matchid-login-recommend-wallet-item-icon", children: m2.icon }),
4024
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
3969
4025
  "div",
3970
4026
  {
3971
4027
  className: "matchid-login-recommend-wallet-item-hover-icon",
3972
4028
  children: m2.activeIcon
3973
4029
  }
3974
4030
  ),
3975
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
4031
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
3976
4032
  "span",
3977
4033
  {
3978
4034
  className: "matchid-login-recommend-wallet-item-name",
@@ -3980,7 +4036,7 @@ function LoginBox({
3980
4036
  }
3981
4037
  )
3982
4038
  ] }),
3983
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
4039
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
3984
4040
  ArrowRightIcon,
3985
4041
  {
3986
4042
  className: "matchid-login-recommend-wallet-item-arrow",
@@ -3998,10 +4054,10 @@ function LoginBox({
3998
4054
  m
3999
4055
  );
4000
4056
  }) }),
4001
- methodConfig.methods.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "matchid-login-other", children: [
4002
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "matchid-login-other-text", children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react_intl10.FormattedMessage, { id: "otherLoginMethods" }) }),
4003
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "matchid-login-method-box", children: methodConfig.methods.map((m) => {
4004
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
4057
+ methodConfig.methods.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "matchid-login-other", children: [
4058
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "matchid-login-other-text", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react_intl10.FormattedMessage, { id: "otherLoginMethods" }) }),
4059
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "matchid-login-method-box", children: methodConfig.methods.map((m) => {
4060
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
4005
4061
  "div",
4006
4062
  {
4007
4063
  className: "matchid-login-method-item",
@@ -4014,7 +4070,7 @@ function LoginBox({
4014
4070
  }) })
4015
4071
  ] })
4016
4072
  ] }),
4017
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
4073
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
4018
4074
  EmailModal,
4019
4075
  {
4020
4076
  isOpen: emailOpen,
@@ -4034,40 +4090,40 @@ var import_react28 = require("react");
4034
4090
 
4035
4091
  // src/components/LoginPanel/index.tsx
4036
4092
  var import_react_intl11 = require("react-intl");
4037
- var import_jsx_runtime81 = require("react/jsx-runtime");
4093
+ var import_jsx_runtime85 = require("react/jsx-runtime");
4038
4094
  function LoginPanel({
4039
4095
  header,
4040
4096
  onClose,
4041
4097
  ...props
4042
4098
  }) {
4043
4099
  const isDownMd = useDownMd();
4044
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "matchid-login-panel", children: [
4045
- header ? header : /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "matchid-login-panel-header", children: [
4046
- /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "matchid-login-panel-header-content", children: [
4047
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "matchid-login-panel-header-title", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react_intl11.FormattedMessage, { id: "loginTitle" }) }),
4048
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "matchid-login-panel-header-subtilte", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react_intl11.FormattedMessage, { id: "loginTips" }) })
4100
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "matchid-login-panel", children: [
4101
+ header ? header : /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "matchid-login-panel-header", children: [
4102
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "matchid-login-panel-header-content", children: [
4103
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "matchid-login-panel-header-title", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_intl11.FormattedMessage, { id: "loginTitle" }) }),
4104
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "matchid-login-panel-header-subtilte", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_intl11.FormattedMessage, { id: "loginTips" }) })
4049
4105
  ] }),
4050
- onClose && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "matchid-login-panel-header-close", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30 }) })
4106
+ onClose && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "matchid-login-panel-header-close", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30 }) })
4051
4107
  ] }),
4052
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "matchid-login-panel-divide" }),
4053
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "matchid-login-panel-box", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(LoginBox, { ...props }) })
4108
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "matchid-login-panel-divide" }),
4109
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "matchid-login-panel-box", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(LoginBox, { ...props }) })
4054
4110
  ] });
4055
4111
  }
4056
4112
 
4057
4113
  // src/components/LoginModal/index.tsx
4058
- var import_jsx_runtime82 = require("react/jsx-runtime");
4114
+ var import_jsx_runtime86 = require("react/jsx-runtime");
4059
4115
  function LoginModal({
4060
4116
  isOpen = false,
4061
4117
  width = 480,
4062
4118
  ...props
4063
4119
  }) {
4064
4120
  const { isLogin } = useUserInfo();
4065
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
4121
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
4066
4122
  Modal,
4067
4123
  {
4068
4124
  isOpen: isOpen && !isLogin,
4069
4125
  width,
4070
- children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(LoginPanel, { ...props, inModal: true })
4126
+ children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(LoginPanel, { ...props, inModal: true })
4071
4127
  }
4072
4128
  );
4073
4129
  }
@@ -4076,10 +4132,10 @@ function LoginModal({
4076
4132
  var import_react27 = require("react");
4077
4133
 
4078
4134
  // src/assets/icon/ProfileIcon.tsx
4079
- var import_jsx_runtime83 = require("react/jsx-runtime");
4135
+ var import_jsx_runtime87 = require("react/jsx-runtime");
4080
4136
  function ProfileIcon({ size = 24, color = "black", ...props }) {
4081
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
4082
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
4137
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
4138
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4083
4139
  "path",
4084
4140
  {
4085
4141
  fillRule: "evenodd",
@@ -4088,7 +4144,7 @@ function ProfileIcon({ size = 24, color = "black", ...props }) {
4088
4144
  fill: color
4089
4145
  }
4090
4146
  ),
4091
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
4147
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4092
4148
  "path",
4093
4149
  {
4094
4150
  fillRule: "evenodd",
@@ -4102,7 +4158,7 @@ function ProfileIcon({ size = 24, color = "black", ...props }) {
4102
4158
 
4103
4159
  // src/components/UserPopover/index.tsx
4104
4160
  var import_react_intl12 = require("react-intl");
4105
- var import_jsx_runtime84 = require("react/jsx-runtime");
4161
+ var import_jsx_runtime88 = require("react/jsx-runtime");
4106
4162
  function UserContent() {
4107
4163
  const { logout, address, username } = useUserInfo();
4108
4164
  const [logouting, setLogouting] = (0, import_react27.useState)(false);
@@ -4123,34 +4179,34 @@ function UserContent() {
4123
4179
  rightIcon,
4124
4180
  onClick
4125
4181
  }) => {
4126
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "matchid-user-popover-item", onClick, children: [
4127
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: `matchid-user-popover-item-content`, children: [
4182
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "matchid-user-popover-item", onClick, children: [
4183
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: `matchid-user-popover-item-content`, children: [
4128
4184
  icon,
4129
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "matchid-user-popover-item-text", children })
4185
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "matchid-user-popover-item-text", children })
4130
4186
  ] }),
4131
4187
  rightIcon
4132
4188
  ] });
4133
4189
  };
4134
4190
  const UserDivider = () => {
4135
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: `matchid-user-popover-divider` });
4191
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: `matchid-user-popover-divider` });
4136
4192
  };
4137
4193
  const [usernameOpen, setUsernameOpen] = (0, import_react27.useState)(false);
4138
4194
  const [copied, setCopied] = useCopyClipboard();
4139
4195
  const intl = (0, import_react_intl12.useIntl)();
4140
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "matchid-user-popover-content", children: [
4141
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "matchid-user-popover-list", children: [
4142
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(UserItem, { onClick: () => {
4196
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "matchid-user-popover-content", children: [
4197
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "matchid-user-popover-list", children: [
4198
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(UserItem, { onClick: () => {
4143
4199
  setCopied(address);
4144
- }, icon: copied ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(CheckIcon, { size: 20, color: "#0ecb81" }) : /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(CopyIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(CheckIcon, { size: 20, color: "var(--icon-color)" }), children: truncateAddress(address) }),
4145
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(UserDivider, {}),
4146
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(UserItem, { onClick: () => {
4200
+ }, icon: copied ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(CheckIcon, { size: 20, color: "#0ecb81" }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(CopyIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(CheckIcon, { size: 20, color: "var(--icon-color)" }), children: truncateAddress(address) }),
4201
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(UserDivider, {}),
4202
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(UserItem, { onClick: () => {
4147
4203
  setUsernameOpen(true);
4148
- }, icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ProfileIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ArrowRightIcon, { size: 20, color: "var(--icon-color)" }), children: username || intl.formatMessage({
4204
+ }, icon: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(ProfileIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(ArrowRightIcon, { size: 20, color: "var(--icon-color)" }), children: username || intl.formatMessage({
4149
4205
  id: "setUsername"
4150
4206
  }) })
4151
4207
  ] }),
4152
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Button, { onClick: onLogout, loading: logouting, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react_intl12.FormattedMessage, { id: "disconnect" }) }),
4153
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(UsernameModal, { isOpen: usernameOpen, onClose: () => {
4208
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Button, { onClick: onLogout, loading: logouting, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_intl12.FormattedMessage, { id: "disconnect" }) }),
4209
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(UsernameModal, { isOpen: usernameOpen, onClose: () => {
4154
4210
  setUsernameOpen(false);
4155
4211
  }, onSuccess: () => {
4156
4212
  setUsernameOpen(false);
@@ -4161,12 +4217,12 @@ function UserPopover({
4161
4217
  children,
4162
4218
  ...props
4163
4219
  }) {
4164
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Popover, { ...props, content: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(UserContent, {}), children });
4220
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Popover, { ...props, content: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(UserContent, {}), children });
4165
4221
  }
4166
4222
 
4167
4223
  // src/components/LoginButton/index.tsx
4168
4224
  var import_react_intl13 = require("react-intl");
4169
- var import_jsx_runtime85 = require("react/jsx-runtime");
4225
+ var import_jsx_runtime89 = require("react/jsx-runtime");
4170
4226
  function LoginButton({
4171
4227
  loginRender,
4172
4228
  methods,
@@ -4182,8 +4238,8 @@ function LoginButton({
4182
4238
  const { isLogin, username } = useUserInfo();
4183
4239
  const [loginOpen, setLoginOpen] = (0, import_react28.useState)(false);
4184
4240
  if (!isLogin) {
4185
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_jsx_runtime85.Fragment, { children: [
4186
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
4241
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_jsx_runtime89.Fragment, { children: [
4242
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4187
4243
  LoginModal,
4188
4244
  {
4189
4245
  methods,
@@ -4193,15 +4249,15 @@ function LoginButton({
4193
4249
  onClose: () => setLoginOpen(false)
4194
4250
  }
4195
4251
  ),
4196
- /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(Button, { className: "matchid-unlogin-btn", ...props, highlight: true, onClick: () => setLoginOpen(true), children: [
4197
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(UnLoginIcon_default, {}),
4198
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_intl13.FormattedMessage, { id: "login" }) })
4252
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Button, { className: "matchid-unlogin-btn", ...props, highlight: true, onClick: () => setLoginOpen(true), children: [
4253
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(UnLoginIcon_default, {}),
4254
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_intl13.FormattedMessage, { id: "login" }) })
4199
4255
  ] })
4200
4256
  ] });
4201
4257
  }
4202
- return loginRender ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_jsx_runtime85.Fragment, { children: loginRender }) : /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(UserPopover, { position: popoverPosition, type: popoverType, gap: popoverGap, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(Button, { onClick: onLoginClick, className: "matchid-login-btn", ...props, children: [
4203
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(LoginIcon_default, {}),
4204
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { children: username ? truncateAddress(username) : "MatchID " + intl.formatMessage({
4258
+ return loginRender ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_jsx_runtime89.Fragment, { children: loginRender }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(UserPopover, { position: popoverPosition, type: popoverType, gap: popoverGap, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Button, { onClick: onLoginClick, className: "matchid-login-btn", ...props, children: [
4259
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(LoginIcon_default, {}),
4260
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("span", { children: username ? truncateAddress(username) : "MatchID " + intl.formatMessage({
4205
4261
  id: "user"
4206
4262
  }) })
4207
4263
  ] }) });
@@ -4210,15 +4266,15 @@ function LoginButton({
4210
4266
  // src/components/UsernameModal/index.tsx
4211
4267
  var import_react29 = require("react");
4212
4268
  var import_react_intl14 = require("react-intl");
4213
- var import_jsx_runtime86 = require("react/jsx-runtime");
4269
+ var import_jsx_runtime90 = require("react/jsx-runtime");
4214
4270
  var ValidItem = ({
4215
4271
  success = false,
4216
4272
  text
4217
4273
  }) => {
4218
4274
  const isDownMd = useDownMd();
4219
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: `matchid-valid-status-item matchid-valid-status-${success ? "success" : "error"}`, children: [
4220
- success ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(CheckRoundIcon, { size: isDownMd ? 12 : 16 }) : /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(InfoLineIcon, { size: isDownMd ? 12 : 16 }),
4221
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { children: text })
4275
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: `matchid-valid-status-item matchid-valid-status-${success ? "success" : "error"}`, children: [
4276
+ success ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(CheckRoundIcon, { size: isDownMd ? 12 : 16 }) : /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(InfoLineIcon, { size: isDownMd ? 12 : 16 }),
4277
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { children: text })
4222
4278
  ] });
4223
4279
  };
4224
4280
  function UsernameModal({
@@ -4266,12 +4322,12 @@ function UsernameModal({
4266
4322
  }
4267
4323
  };
4268
4324
  const intl = (0, import_react_intl14.useIntl)();
4269
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ModalWithHeader, { isOpen: isOpen && isLogin, ...props, title: title || intl.formatMessage({
4325
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(ModalWithHeader, { isOpen: isOpen && isLogin, ...props, title: title || intl.formatMessage({
4270
4326
  id: username ? "editUsernameTitle" : "setUsernameTitle"
4271
- }), children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "matchid-username-box", children: [
4272
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Field, { label: intl.formatMessage({
4327
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "matchid-username-box", children: [
4328
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Field, { label: intl.formatMessage({
4273
4329
  id: "username"
4274
- }), error, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
4330
+ }), error, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
4275
4331
  Input,
4276
4332
  {
4277
4333
  placeholder: intl.formatMessage({
@@ -4284,8 +4340,8 @@ function UsernameModal({
4284
4340
  value: val
4285
4341
  }
4286
4342
  ) }),
4287
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "matchid-valid", children: [
4288
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
4343
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "matchid-valid", children: [
4344
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
4289
4345
  ValidItem,
4290
4346
  {
4291
4347
  success: isValid,
@@ -4294,16 +4350,16 @@ function UsernameModal({
4294
4350
  })
4295
4351
  }
4296
4352
  ),
4297
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ValidItem, { success: isLength, text: intl.formatMessage({
4353
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(ValidItem, { success: isLength, text: intl.formatMessage({
4298
4354
  id: "usernameLengthError"
4299
4355
  }) })
4300
4356
  ] }),
4301
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Button, { disabled: !isSafe, loading: isSubmitting, style: {
4357
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Button, { disabled: !isSafe, loading: isSubmitting, style: {
4302
4358
  marginTop: isDownMd ? "36px" : "64px"
4303
- }, onClick: onSubmit, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react_intl14.FormattedMessage, { id: "confirm" }) }),
4304
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Button, { style: {
4359
+ }, onClick: onSubmit, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react_intl14.FormattedMessage, { id: "confirm" }) }),
4360
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Button, { style: {
4305
4361
  marginTop: isDownMd ? "12px" : "24px"
4306
- }, onClick: props.onClose, size: "lg", block: true, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react_intl14.FormattedMessage, { id: "cancel" }) })
4362
+ }, onClick: props.onClose, size: "lg", block: true, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react_intl14.FormattedMessage, { id: "cancel" }) })
4307
4363
  ] }) });
4308
4364
  }
4309
4365
 
@@ -4322,7 +4378,7 @@ var walletConnectImage = wallet_default;
4322
4378
  var walletSigningImage = signing_default;
4323
4379
 
4324
4380
  // src/components/WalletModalContent/index.tsx
4325
- var import_jsx_runtime87 = require("react/jsx-runtime");
4381
+ var import_jsx_runtime91 = require("react/jsx-runtime");
4326
4382
  function WalletModalContent({
4327
4383
  status,
4328
4384
  error,
@@ -4392,15 +4448,15 @@ function WalletModalContent({
4392
4448
  statusImage: walletConnectImage
4393
4449
  };
4394
4450
  }, [visible, connected, status, error, address]);
4395
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "matchid-wallet-container", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: `matchid-wallet-box`, children: [
4396
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: `matchid-wallet-content`, children: [
4397
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Lottie_default, { animationData: pageData.statusImage, style: {
4451
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: "matchid-wallet-container", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: `matchid-wallet-box`, children: [
4452
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: `matchid-wallet-content`, children: [
4453
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Lottie_default, { animationData: pageData.statusImage, style: {
4398
4454
  width: 128,
4399
4455
  height: 128
4400
4456
  } }),
4401
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: pageData.isError ? "matchid-error" : "", children: pageData.text })
4457
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: pageData.isError ? "matchid-error" : "", children: pageData.text })
4402
4458
  ] }),
4403
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4459
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4404
4460
  Button,
4405
4461
  {
4406
4462
  block: true,
@@ -4476,15 +4532,15 @@ function WalletModalContentV2(props) {
4476
4532
  statusImage: walletConnectImage
4477
4533
  };
4478
4534
  }, [props, submitting]);
4479
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "matchid-wallet-container", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: `matchid-wallet-box`, children: [
4480
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: `matchid-wallet-content`, children: [
4481
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Lottie_default, { animationData: pageData.statusImage, style: {
4535
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: "matchid-wallet-container", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: `matchid-wallet-box`, children: [
4536
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: `matchid-wallet-content`, children: [
4537
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Lottie_default, { animationData: pageData.statusImage, style: {
4482
4538
  width: 128,
4483
4539
  height: 128
4484
4540
  } }),
4485
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: props.status == "error" ? "matchid-error" : "", children: pageData.text })
4541
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: props.status == "error" ? "matchid-error" : "", children: pageData.text })
4486
4542
  ] }),
4487
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4543
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4488
4544
  Button,
4489
4545
  {
4490
4546
  block: true,
@@ -4766,7 +4822,7 @@ async function getEthersSigner(config, { chainId } = {}) {
4766
4822
  // src/components/EVMModal/index.tsx
4767
4823
  var import_siwe = require("siwe");
4768
4824
  var import_styles = require("@rainbow-me/rainbowkit/styles.css");
4769
- var import_jsx_runtime88 = require("react/jsx-runtime");
4825
+ var import_jsx_runtime92 = require("react/jsx-runtime");
4770
4826
  function WalletContent({
4771
4827
  onSuccess,
4772
4828
  type
@@ -4924,7 +4980,7 @@ function WalletContent({
4924
4980
  setNonce(void 0);
4925
4981
  setStatus("start");
4926
4982
  };
4927
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
4983
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
4928
4984
  WalletModalContentV2,
4929
4985
  {
4930
4986
  status,
@@ -4942,14 +4998,14 @@ function EVMConnectModal({
4942
4998
  ...props
4943
4999
  }) {
4944
5000
  const intl = (0, import_react_intl15.useIntl)();
4945
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
5001
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
4946
5002
  id: type == "bind" ? "bindWith" : "loginWith"
4947
5003
  }, {
4948
5004
  name: "EVM"
4949
- }), children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(WalletContent, { onSuccess, type }) });
5005
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(WalletContent, { onSuccess, type }) });
4950
5006
  }
4951
5007
  function EVMModal(props) {
4952
- return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_rainbowkit2.RainbowKitProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(EVMConnectModal, { ...props }) });
5008
+ return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_rainbowkit2.RainbowKitProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(EVMConnectModal, { ...props }) });
4953
5009
  }
4954
5010
 
4955
5011
  // src/components/TRONModal/index.tsx
@@ -5064,7 +5120,7 @@ var useTRONWallet = () => {
5064
5120
  };
5065
5121
 
5066
5122
  // src/components/TRONModal/index.tsx
5067
- var import_jsx_runtime89 = require("react/jsx-runtime");
5123
+ var import_jsx_runtime93 = require("react/jsx-runtime");
5068
5124
  function TRONConnectModal({
5069
5125
  type = "login",
5070
5126
  onSuccess,
@@ -5074,9 +5130,9 @@ function TRONConnectModal({
5074
5130
  const intl = (0, import_react_intl16.useIntl)();
5075
5131
  const { wallets, installedWallets, chooseWallet, wallet, address, onConnect } = useTRONWallet();
5076
5132
  const iconMaps = {
5077
- tronlink: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(TronLinkIcon, { size: isDownMd ? 36 : 40 }),
5078
- bitget: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(BitgetIcon, { size: isDownMd ? 36 : 40 }),
5079
- okx: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(OKXIcon, { size: isDownMd ? 36 : 40 })
5133
+ tronlink: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(TronLinkIcon, { size: isDownMd ? 36 : 40 }),
5134
+ bitget: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(BitgetIcon, { size: isDownMd ? 36 : 40 }),
5135
+ okx: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(OKXIcon, { size: isDownMd ? 36 : 40 })
5080
5136
  };
5081
5137
  const { events, login } = useMatch();
5082
5138
  const [status, setStatus] = (0, import_react34.useState)("");
@@ -5168,11 +5224,11 @@ function TRONConnectModal({
5168
5224
  disconnect();
5169
5225
  }
5170
5226
  }, [props.isOpen]);
5171
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
5227
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
5172
5228
  id: type == "bind" ? "bindWith" : "loginWith"
5173
5229
  }, {
5174
5230
  name: "TRON"
5175
- }), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
5231
+ }), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5176
5232
  WalletModalContent,
5177
5233
  {
5178
5234
  error,
@@ -5185,9 +5241,9 @@ function TRONConnectModal({
5185
5241
  setVisible: () => {
5186
5242
  }
5187
5243
  }
5188
- ) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "matchid-login-box", children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "matchid-login-recommend-list", children: [
5244
+ ) : /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "matchid-login-box", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "matchid-login-recommend-list", children: [
5189
5245
  installedWallets.map((wallet2) => {
5190
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
5246
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5191
5247
  RecommendItem,
5192
5248
  {
5193
5249
  icon: iconMaps[wallet2.walletKey],
@@ -5200,14 +5256,14 @@ function TRONConnectModal({
5200
5256
  );
5201
5257
  }),
5202
5258
  wallets.filter((wallet2) => !installedWallets.find((installedWallet) => installedWallet.walletKey == wallet2.walletKey)).map((wallet2) => {
5203
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
5259
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5204
5260
  RecommendItem,
5205
5261
  {
5206
5262
  icon: iconMaps[wallet2.walletKey],
5207
5263
  name: wallet2.name,
5208
5264
  onClick: () => {
5209
5265
  },
5210
- footer: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Button, { size: "sm", onClick: () => {
5266
+ footer: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Button, { size: "sm", onClick: () => {
5211
5267
  window.open(wallet2.website);
5212
5268
  }, children: "Install" })
5213
5269
  },
@@ -5217,14 +5273,14 @@ function TRONConnectModal({
5217
5273
  ] }) }) });
5218
5274
  }
5219
5275
  function TRONModal(props) {
5220
- return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(TRONConnectModal, { ...props, type: props.type });
5276
+ return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(TRONConnectModal, { ...props, type: props.type });
5221
5277
  }
5222
5278
 
5223
5279
  // src/components/TONModal/index.tsx
5224
5280
  var import_react35 = __toESM(require("react"));
5225
5281
  var import_react_intl17 = require("react-intl");
5226
5282
  var import_ui_react = require("@tonconnect/ui-react");
5227
- var import_jsx_runtime90 = require("react/jsx-runtime");
5283
+ var import_jsx_runtime94 = require("react/jsx-runtime");
5228
5284
  function WalletContent2({
5229
5285
  onSuccess,
5230
5286
  type
@@ -5351,7 +5407,7 @@ function WalletContent2({
5351
5407
  }
5352
5408
  }
5353
5409
  }, [state]);
5354
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
5410
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5355
5411
  WalletModalContent,
5356
5412
  {
5357
5413
  connected,
@@ -5385,20 +5441,20 @@ function TONConnectModal({
5385
5441
  const intl = (0, import_react_intl17.useIntl)();
5386
5442
  const { endpoints, appid } = useLocalStore_default();
5387
5443
  const manifestUrl = `${endpoints.back}api/v1/wallet/ton?appid=${appid}&url=` + encodeURIComponent(window.location.origin);
5388
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
5444
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
5389
5445
  id: type == "bind" ? "bindWith" : "loginWith"
5390
5446
  }, {
5391
5447
  name: "TON"
5392
- }), children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
5448
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5393
5449
  import_ui_react.TonConnectUIProvider,
5394
5450
  {
5395
5451
  manifestUrl,
5396
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(WalletContent2, { onSuccess, type })
5452
+ children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(WalletContent2, { onSuccess, type })
5397
5453
  }
5398
5454
  ) });
5399
5455
  }
5400
5456
  function TONModal(props) {
5401
- return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(TONConnectModal, { ...props });
5457
+ return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(TONConnectModal, { ...props });
5402
5458
  }
5403
5459
 
5404
5460
  // src/components/BTCModal/index.tsx
@@ -5621,7 +5677,7 @@ var useBTCWallet = () => {
5621
5677
  };
5622
5678
 
5623
5679
  // src/components/BTCModal/index.tsx
5624
- var import_jsx_runtime91 = require("react/jsx-runtime");
5680
+ var import_jsx_runtime95 = require("react/jsx-runtime");
5625
5681
  function BTCConnectModal({
5626
5682
  type = "login",
5627
5683
  onSuccess,
@@ -5631,10 +5687,10 @@ function BTCConnectModal({
5631
5687
  const intl = (0, import_react_intl18.useIntl)();
5632
5688
  const { wallets, installedWallets, chooseWallet, wallet, address, onConnect } = useBTCWallet();
5633
5689
  const iconMaps = {
5634
- leather: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(LeatherIcon, { size: isDownMd ? 36 : 40 }),
5635
- unisat: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(UnisatIcon, { size: isDownMd ? 36 : 40 }),
5636
- xverse: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(XverseIcon, { size: isDownMd ? 36 : 40 }),
5637
- phantom: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(PhantomIcon, { size: isDownMd ? 36 : 40 })
5690
+ leather: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(LeatherIcon, { size: isDownMd ? 36 : 40 }),
5691
+ unisat: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(UnisatIcon, { size: isDownMd ? 36 : 40 }),
5692
+ xverse: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(XverseIcon, { size: isDownMd ? 36 : 40 }),
5693
+ phantom: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(PhantomIcon, { size: isDownMd ? 36 : 40 })
5638
5694
  };
5639
5695
  const { events, login } = useMatch();
5640
5696
  const [status, setStatus] = (0, import_react37.useState)("");
@@ -5734,11 +5790,11 @@ function BTCConnectModal({
5734
5790
  statusRef.current = "";
5735
5791
  setError("");
5736
5792
  };
5737
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
5793
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
5738
5794
  id: type == "bind" ? "bindWith" : "loginWith"
5739
5795
  }, {
5740
5796
  name: "BTC"
5741
- }), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
5797
+ }), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5742
5798
  WalletModalContent,
5743
5799
  {
5744
5800
  error,
@@ -5751,9 +5807,9 @@ function BTCConnectModal({
5751
5807
  setVisible: () => {
5752
5808
  }
5753
5809
  }
5754
- ) : /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: "matchid-login-box", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "matchid-login-recommend-list", children: [
5810
+ ) : /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "matchid-login-box", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "matchid-login-recommend-list", children: [
5755
5811
  installedWallets.map((wallet2) => {
5756
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
5812
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5757
5813
  RecommendItem,
5758
5814
  {
5759
5815
  icon: iconMaps[wallet2.walletKey],
@@ -5766,14 +5822,14 @@ function BTCConnectModal({
5766
5822
  );
5767
5823
  }),
5768
5824
  wallets.filter((wallet2) => !installedWallets.find((installedWallet) => installedWallet.walletKey == wallet2.walletKey)).map((wallet2) => {
5769
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
5825
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5770
5826
  RecommendItem,
5771
5827
  {
5772
5828
  icon: iconMaps[wallet2.walletKey],
5773
5829
  name: wallet2.name,
5774
5830
  onClick: () => {
5775
5831
  },
5776
- footer: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Button, { size: "sm", onClick: () => {
5832
+ footer: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Button, { size: "sm", onClick: () => {
5777
5833
  window.open(wallet2.website);
5778
5834
  }, children: "Install" })
5779
5835
  },
@@ -5783,13 +5839,13 @@ function BTCConnectModal({
5783
5839
  ] }) }) });
5784
5840
  }
5785
5841
  function BTCModal(props) {
5786
- return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(BTCConnectModal, { ...props });
5842
+ return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(BTCConnectModal, { ...props });
5787
5843
  }
5788
5844
 
5789
5845
  // src/components/WalletModal/index.tsx
5790
5846
  var import_react38 = require("react");
5791
5847
  var import_react_intl19 = require("react-intl");
5792
- var import_jsx_runtime92 = require("react/jsx-runtime");
5848
+ var import_jsx_runtime96 = require("react/jsx-runtime");
5793
5849
  function WalletConnectModal({
5794
5850
  type,
5795
5851
  methods: _methods,
@@ -5807,13 +5863,13 @@ function WalletConnectModal({
5807
5863
  const platform = config.platform.map((p) => p.toLowerCase());
5808
5864
  return WALLET_METHODS.filter((m) => platform.includes(m));
5809
5865
  }, [config.platform, _methods]);
5810
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
5866
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
5811
5867
  id: type == "bind" ? "bindWith" : "loginWith"
5812
5868
  }, {
5813
5869
  name: ""
5814
- }), children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "matchid-login-box", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "matchid-login-recommend-list", children: methods.map((method, index) => {
5870
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "matchid-login-box", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "matchid-login-recommend-list", children: methods.map((method, index) => {
5815
5871
  const m = walletMap[method];
5816
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
5872
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
5817
5873
  RecommendItem,
5818
5874
  {
5819
5875
  icon: m?.icon,
@@ -5827,12 +5883,12 @@ function WalletConnectModal({
5827
5883
  }) }) }) });
5828
5884
  }
5829
5885
  function WalletModal(props) {
5830
- return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(WalletConnectModal, { ...props });
5886
+ return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(WalletConnectModal, { ...props });
5831
5887
  }
5832
5888
 
5833
5889
  // src/components/AlphaAvatar/index.tsx
5834
5890
  var import_react39 = require("react");
5835
- var import_jsx_runtime93 = require("react/jsx-runtime");
5891
+ var import_jsx_runtime97 = require("react/jsx-runtime");
5836
5892
  function AlphaAvatar2({ name, size = 40, className = "" }) {
5837
5893
  const [avatar, setAvatar] = (0, import_react39.useState)(void 0);
5838
5894
  (0, import_react39.useEffect)(() => {
@@ -5841,7 +5897,7 @@ function AlphaAvatar2({ name, size = 40, className = "" }) {
5841
5897
  setAvatar(char);
5842
5898
  }
5843
5899
  }, [name]);
5844
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
5900
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
5845
5901
  width: size,
5846
5902
  height: size,
5847
5903
  fontSize: Math.ceil(size / 2)
@@ -5849,7 +5905,7 @@ function AlphaAvatar2({ name, size = 40, className = "" }) {
5849
5905
  }
5850
5906
 
5851
5907
  // src/components/WalletAsset/index.tsx
5852
- var import_jsx_runtime94 = require("react/jsx-runtime");
5908
+ var import_jsx_runtime98 = require("react/jsx-runtime");
5853
5909
  function WalletAsset({
5854
5910
  onAssetClick,
5855
5911
  matchWalletAssetsOptions
@@ -5859,7 +5915,7 @@ function WalletAsset({
5859
5915
  list: walletAssets.mergedAssets
5860
5916
  });
5861
5917
  const { list } = useMatchChain();
5862
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "matchid-wallet-asset-list", children: matchWalletAssetList.list.map((n, index) => {
5918
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "matchid-wallet-asset-list", children: matchWalletAssetList.list.map((n, index) => {
5863
5919
  const clickFunc = onAssetClick && onAssetClick(n);
5864
5920
  const chain = list?.find((m) => m.id.toString() === n.chain_id);
5865
5921
  const getFooterColor = () => {
@@ -5874,11 +5930,11 @@ function WalletAsset({
5874
5930
  }
5875
5931
  return "";
5876
5932
  };
5877
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: `matchid-wallet-asset-item`, onClick: clickFunc, style: {
5933
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: `matchid-wallet-asset-item`, onClick: clickFunc, style: {
5878
5934
  cursor: clickFunc ? "pointer" : "default"
5879
5935
  }, children: [
5880
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "matchid-wallet-asset-logo", title: n.symbol || n.name || "", children: [
5881
- n.icon ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("img", { src: n.icon, alt: n.symbol, className: `matchid-wallet-asset-icon` }) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5936
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "matchid-wallet-asset-logo", title: n.symbol || n.name || "", children: [
5937
+ n.icon ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("img", { src: n.icon, alt: n.symbol, className: `matchid-wallet-asset-icon` }) : /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
5882
5938
  AlphaAvatar2,
5883
5939
  {
5884
5940
  className: `matchid-wallet-asset-icon`,
@@ -5886,12 +5942,12 @@ function WalletAsset({
5886
5942
  name: n.symbol || n.name || ""
5887
5943
  }
5888
5944
  ),
5889
- chain?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-wallet-asset-chain` })
5945
+ chain?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-wallet-asset-chain` })
5890
5946
  ] }),
5891
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: `matchid-wallet-asset-info`, children: [
5892
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: `matchid-wallet-asset-name`, children: n.symbol }),
5893
- "price" in n && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: `matchid-wallet-asset-content`, children: [
5894
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "matchid-wallet-asset-price", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5947
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: `matchid-wallet-asset-info`, children: [
5948
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: `matchid-wallet-asset-name`, children: n.symbol }),
5949
+ "price" in n && /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: `matchid-wallet-asset-content`, children: [
5950
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "matchid-wallet-asset-price", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
5895
5951
  NumberFormatter,
5896
5952
  {
5897
5953
  value: n.price,
@@ -5899,7 +5955,7 @@ function WalletAsset({
5899
5955
  tFixNum: 2
5900
5956
  }
5901
5957
  ) }),
5902
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "matchid-wallet-asset-value", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5958
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "matchid-wallet-asset-value", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
5903
5959
  NumberFormatter,
5904
5960
  {
5905
5961
  value: n.value,
@@ -5908,15 +5964,15 @@ function WalletAsset({
5908
5964
  }
5909
5965
  ) })
5910
5966
  ] }),
5911
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: `matchid-wallet-asset-footer`, children: [
5912
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: `matchid-wallet-asset-balance`, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5967
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: `matchid-wallet-asset-footer`, children: [
5968
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: `matchid-wallet-asset-balance`, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
5913
5969
  NumberFormatter,
5914
5970
  {
5915
5971
  value: n.balance,
5916
5972
  tFixNum: 3
5917
5973
  }
5918
5974
  ) }),
5919
- "price_change_24h" in n && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: `matchid-wallet-asset-change ${getFooterColor()}`, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5975
+ "price_change_24h" in n && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: `matchid-wallet-asset-change ${getFooterColor()}`, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
5920
5976
  NumberFormatter,
5921
5977
  {
5922
5978
  prefix: `${(n?.price_change_24h || 0) < 0 ? "-" : "+"} `,
@@ -5935,7 +5991,7 @@ function WalletAsset({
5935
5991
  var import_react40 = require("react");
5936
5992
  var import_viem15 = require("viem");
5937
5993
  var import_react_intl20 = require("react-intl");
5938
- var import_jsx_runtime95 = require("react/jsx-runtime");
5994
+ var import_jsx_runtime99 = require("react/jsx-runtime");
5939
5995
  function Input2({
5940
5996
  onChange,
5941
5997
  placeholder,
@@ -5945,8 +6001,8 @@ function Input2({
5945
6001
  error,
5946
6002
  size = "df"
5947
6003
  }) {
5948
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: `matchid-token-input-box ${"matchid-token-input-" + size}`, children: [
5949
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
6004
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: `matchid-token-input-box ${"matchid-token-input-" + size}`, children: [
6005
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
5950
6006
  "input",
5951
6007
  {
5952
6008
  placeholder,
@@ -5957,7 +6013,7 @@ function Input2({
5957
6013
  className: `matchid-token-input ${error ? "matchid-token-input-error" : ""}`
5958
6014
  }
5959
6015
  ),
5960
- error && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "matchid-token-input-error-text", children: error })
6016
+ error && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "matchid-token-input-error-text", children: error })
5961
6017
  ] });
5962
6018
  }
5963
6019
  function TokenSend({
@@ -6085,24 +6141,24 @@ function TokenSend({
6085
6141
  window.removeEventListener("message", receiveMessage);
6086
6142
  };
6087
6143
  }, []);
6088
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(ModalDrawer, { isOpen: true, onClose, zIndex, title: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_intl20.FormattedMessage, { id: "send" }), onBack, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: `matchid-token-send-box`, children: [
6089
- /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "matchid-token-send-content", children: [
6090
- /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: `matchid-token-amount-content`, children: [
6091
- /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: `matchid-token-amount-header`, children: [
6092
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: `matchid-token-amount-title`, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_intl20.FormattedMessage, { id: "amount" }) }),
6093
- /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: `matchid-token-amount-chain`, children: [
6094
- token.icon ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
6144
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(ModalDrawer, { isOpen: true, onClose, zIndex, title: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_intl20.FormattedMessage, { id: "send" }), onBack, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: `matchid-token-send-box`, children: [
6145
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "matchid-token-send-content", children: [
6146
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: `matchid-token-amount-content`, children: [
6147
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: `matchid-token-amount-header`, children: [
6148
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: `matchid-token-amount-title`, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_intl20.FormattedMessage, { id: "amount" }) }),
6149
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: `matchid-token-amount-chain`, children: [
6150
+ token.icon ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
6095
6151
  "img",
6096
6152
  {
6097
6153
  src: token?.icon,
6098
6154
  alt: token?.symbol,
6099
6155
  className: `matchid-token-amount-chain-icon`
6100
6156
  }
6101
- ) : /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(AlphaAvatar, { name: token.symbol || token.name || "", size: 16 }),
6102
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { children: token?.symbol })
6157
+ ) : /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(AlphaAvatar, { name: token.symbol || token.name || "", size: 16 }),
6158
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("span", { children: token?.symbol })
6103
6159
  ] })
6104
6160
  ] }),
6105
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
6161
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
6106
6162
  Input2,
6107
6163
  {
6108
6164
  type: "text",
@@ -6115,18 +6171,18 @@ function TokenSend({
6115
6171
  error: error.amount || txError
6116
6172
  }
6117
6173
  ),
6118
- /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: `matchid-token-amount-footer`, children: [
6119
- /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: `matchid-token-amount-title`, children: [
6120
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_intl20.FormattedMessage, { id: "balance" }),
6174
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: `matchid-token-amount-footer`, children: [
6175
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: `matchid-token-amount-title`, children: [
6176
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_intl20.FormattedMessage, { id: "balance" }),
6121
6177
  ":"
6122
6178
  ] }),
6123
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: `matchid-token-amount-value`, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(NumberFormatter, { value: token.balance, tFixNum: 10, suffix: " " + token.symbol }) })
6179
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: `matchid-token-amount-value`, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(NumberFormatter, { value: token.balance, tFixNum: 10, suffix: " " + token.symbol }) })
6124
6180
  ] }),
6125
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(TransferIcon, { className: "matchid-token-amount-transfer" })
6181
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(TransferIcon, { className: "matchid-token-amount-transfer" })
6126
6182
  ] }),
6127
- /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: `matchid-token-address-content`, children: [
6128
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: `matchid-token-address-header`, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: `matchid-token-address-title`, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_intl20.FormattedMessage, { id: "receiveTitle" }) }) }),
6129
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
6183
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: `matchid-token-address-content`, children: [
6184
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: `matchid-token-address-header`, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: `matchid-token-address-title`, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_intl20.FormattedMessage, { id: "receiveTitle" }) }) }),
6185
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
6130
6186
  Input2,
6131
6187
  {
6132
6188
  type: "text",
@@ -6142,7 +6198,7 @@ function TokenSend({
6142
6198
  )
6143
6199
  ] })
6144
6200
  ] }),
6145
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
6201
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
6146
6202
  Button,
6147
6203
  {
6148
6204
  size: "lg",
@@ -6151,7 +6207,7 @@ function TokenSend({
6151
6207
  disabled: !canSend || !!txError,
6152
6208
  onClick: onNext,
6153
6209
  loading: loading || sending,
6154
- children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_intl20.FormattedMessage, { id: "next" })
6210
+ children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_intl20.FormattedMessage, { id: "next" })
6155
6211
  }
6156
6212
  )
6157
6213
  ] }) });
@@ -6159,7 +6215,7 @@ function TokenSend({
6159
6215
 
6160
6216
  // src/components/TokenDetail/index.tsx
6161
6217
  var import_react_intl21 = require("react-intl");
6162
- var import_jsx_runtime96 = require("react/jsx-runtime");
6218
+ var import_jsx_runtime100 = require("react/jsx-runtime");
6163
6219
  function TokenDetail({
6164
6220
  onClose,
6165
6221
  token
@@ -6169,41 +6225,41 @@ function TokenDetail({
6169
6225
  const chain = chainList?.find((m) => m.id.toString() === token.chain_id);
6170
6226
  const onSend = () => {
6171
6227
  modal.show((props) => {
6172
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(TokenSend, { onClose: () => {
6228
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(TokenSend, { onClose: () => {
6173
6229
  props.close();
6174
6230
  onClose();
6175
6231
  }, onBack: props.close, zIndex: props.zIndex, token });
6176
6232
  });
6177
6233
  };
6178
6234
  const intl = (0, import_react_intl21.useIntl)();
6179
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(ModalDrawer, { isOpen: true, title: intl.formatMessage({
6235
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(ModalDrawer, { isOpen: true, title: intl.formatMessage({
6180
6236
  id: "tokenDetails"
6181
- }), onClose, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: `matchid-token-detail`, children: [
6182
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: `matchid-token-main`, children: [
6183
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: `matchid-token-info`, children: [
6184
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: `matchid-token-logo`, children: [
6185
- token.icon ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("img", { src: token.icon, alt: token.symbol, className: `matchid-token-icon` }) : /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(AlphaAvatar, { className: `matchid-token-icon`, size: 48, name: token.symbol || token.name || "" }),
6186
- chain?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-token-chain` })
6237
+ }), onClose, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: `matchid-token-detail`, children: [
6238
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: `matchid-token-main`, children: [
6239
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: `matchid-token-info`, children: [
6240
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: `matchid-token-logo`, children: [
6241
+ token.icon ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("img", { src: token.icon, alt: token.symbol, className: `matchid-token-icon` }) : /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(AlphaAvatar, { className: `matchid-token-icon`, size: 48, name: token.symbol || token.name || "" }),
6242
+ chain?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-token-chain` })
6187
6243
  ] }),
6188
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: `matchid-token-name`, children: [
6189
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(NumberFormatter, { value: token.balance, tFixNum: 10 }),
6244
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: `matchid-token-name`, children: [
6245
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(NumberFormatter, { value: token.balance, tFixNum: 10 }),
6190
6246
  " ",
6191
6247
  token.symbol
6192
6248
  ] })
6193
6249
  ] }),
6194
- token.address.toLowerCase() != NATIVE_TOKEN_ADDRESS && /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: `matchid-token-contract`, children: [
6195
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "matchid-token-contract-title", children: "Contract address" }),
6196
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "matchid-token-contract-address", children: token.address })
6250
+ token.address.toLowerCase() != NATIVE_TOKEN_ADDRESS && /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: `matchid-token-contract`, children: [
6251
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: "matchid-token-contract-title", children: "Contract address" }),
6252
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: "matchid-token-contract-address", children: token.address })
6197
6253
  ] })
6198
6254
  ] }),
6199
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Button, { size: "lg", block: true, highlight: true, onClick: onSend, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_react_intl21.FormattedMessage, { id: "send" }) })
6255
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Button, { size: "lg", block: true, highlight: true, onClick: onSend, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_react_intl21.FormattedMessage, { id: "send" }) })
6200
6256
  ] }) });
6201
6257
  }
6202
6258
 
6203
6259
  // src/components/TokenSendList/index.tsx
6204
6260
  var import_react41 = require("react");
6205
6261
  var import_react_intl22 = require("react-intl");
6206
- var import_jsx_runtime97 = require("react/jsx-runtime");
6262
+ var import_jsx_runtime101 = require("react/jsx-runtime");
6207
6263
  function TokenSendList({ close }) {
6208
6264
  const isDownMd = useDownMd();
6209
6265
  const walletAssets = useMatchWalletAssets();
@@ -6215,16 +6271,16 @@ function TokenSendList({ close }) {
6215
6271
  const modal = useModal();
6216
6272
  const onNext = () => {
6217
6273
  checked && modal.show((props) => {
6218
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(TokenSend, { onClose: () => {
6274
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(TokenSend, { onClose: () => {
6219
6275
  props.close();
6220
6276
  close();
6221
6277
  }, onBack: props.close, zIndex: props.zIndex, token: checked });
6222
6278
  });
6223
6279
  };
6224
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "matchid-token-send-list-box", children: [
6225
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "matchid-token-send-list", children: matchWalletAssetList.list.map((n, index) => {
6280
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "matchid-token-send-list-box", children: [
6281
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: "matchid-token-send-list", children: matchWalletAssetList.list.map((n, index) => {
6226
6282
  const chain = list?.find((m) => m.id.toString() === n.chain_id);
6227
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
6283
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(
6228
6284
  "div",
6229
6285
  {
6230
6286
  className: `matchid-token-send-item ${checked?.address == n.address ? "matchid-token-send-chekced" : ""}`,
@@ -6232,10 +6288,10 @@ function TokenSendList({ close }) {
6232
6288
  setChecked(n);
6233
6289
  },
6234
6290
  children: [
6235
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Radio, { checked: checked?.address == n.address, size: isDownMd ? 18 : 24 }),
6236
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "matchid-token-send-content", children: [
6237
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "matchid-token-send-logo", children: [
6238
- n.icon ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("img", { src: n.icon, alt: n.symbol, className: `matchid-token-send-icon` }) : /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
6291
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Radio, { checked: checked?.address == n.address, size: isDownMd ? 18 : 24 }),
6292
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "matchid-token-send-content", children: [
6293
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "matchid-token-send-logo", children: [
6294
+ n.icon ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("img", { src: n.icon, alt: n.symbol, className: `matchid-token-send-icon` }) : /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
6239
6295
  AlphaAvatar2,
6240
6296
  {
6241
6297
  className: `matchid-token-send-icon`,
@@ -6243,7 +6299,7 @@ function TokenSendList({ close }) {
6243
6299
  name: n.symbol || n.name || ""
6244
6300
  }
6245
6301
  ),
6246
- chain?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
6302
+ chain?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
6247
6303
  "img",
6248
6304
  {
6249
6305
  src: chain.iconUrl,
@@ -6252,9 +6308,9 @@ function TokenSendList({ close }) {
6252
6308
  }
6253
6309
  )
6254
6310
  ] }),
6255
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: `matchid-token-send-info`, children: [
6256
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: `matchid-token-send-name`, children: n.symbol }),
6257
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: `matchid-token-send-balance`, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(NumberFormatter, { value: n.balance, tFixNum: 3 }) })
6311
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: `matchid-token-send-info`, children: [
6312
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: `matchid-token-send-name`, children: n.symbol }),
6313
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: `matchid-token-send-balance`, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(NumberFormatter, { value: n.balance, tFixNum: 3 }) })
6258
6314
  ] })
6259
6315
  ] })
6260
6316
  ]
@@ -6262,7 +6318,7 @@ function TokenSendList({ close }) {
6262
6318
  index
6263
6319
  );
6264
6320
  }) }),
6265
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Button, { size: "lg", highlight: true, block: true, disabled: !checked, onClick: onNext, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_react_intl22.FormattedMessage, { id: "next" }) })
6321
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Button, { size: "lg", highlight: true, block: true, disabled: !checked, onClick: onNext, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_react_intl22.FormattedMessage, { id: "next" }) })
6266
6322
  ] });
6267
6323
  }
6268
6324
 
@@ -6272,7 +6328,7 @@ var import_react42 = require("react");
6272
6328
  var import_viem16 = require("viem");
6273
6329
  var import_viem17 = require("viem");
6274
6330
  var import_react_intl23 = require("react-intl");
6275
- var import_jsx_runtime98 = require("react/jsx-runtime");
6331
+ var import_jsx_runtime102 = require("react/jsx-runtime");
6276
6332
  var Item = ({ data }) => {
6277
6333
  const { address } = useWallet();
6278
6334
  const isOut = data.from.toLowerCase() == address.toLowerCase();
@@ -6359,18 +6415,18 @@ var Item = ({ data }) => {
6359
6415
  }
6360
6416
  return chain?.nativeCurrency.symbol || chain?.nativeCurrency.name;
6361
6417
  }, [transferType, chain, contracts, chainId, data.to]);
6362
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
6418
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
6363
6419
  "a",
6364
6420
  {
6365
6421
  href: explorerLink(`tx/${data.hash}`),
6366
6422
  target: "_blank",
6367
6423
  className: `matchid-transaction-item`,
6368
6424
  children: [
6369
- /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: `matchid-transacton-item-container`, children: [
6370
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "matchid-transaction-item-icon", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(ArrowSendIcon, { className: !isOut ? "rotate-180" : "" }) }),
6371
- /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: `matchid-transaction-item-details`, children: [
6372
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: `matchid-transaction-item-address`, children: formatAddress(to, 6, 4) }),
6373
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
6425
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: `matchid-transacton-item-container`, children: [
6426
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: "matchid-transaction-item-icon", children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(ArrowSendIcon, { className: !isOut ? "rotate-180" : "" }) }),
6427
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: `matchid-transaction-item-details`, children: [
6428
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: `matchid-transaction-item-address`, children: formatAddress(to, 6, 4) }),
6429
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
6374
6430
  "div",
6375
6431
  {
6376
6432
  className: `matchid-transaction-item-timestamp`,
@@ -6379,11 +6435,11 @@ var Item = ({ data }) => {
6379
6435
  )
6380
6436
  ] })
6381
6437
  ] }),
6382
- /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: `matchid-transaction-item-amount ${"matchid-transaction-item-" + status}`, children: [
6383
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(NumberFormatter, { value: amount, tFixNum: 6, prefix: isOut ? "-" : "+", suffix: " " + symbol }),
6384
- status == "loading" && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(LoadingIcon_default, { color: "#000000", size: 16, rotate: true }),
6385
- status == "success" && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(CheckRoundIcon, { size: 16 }),
6386
- status == "error" && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(InfoRoundIcon, { size: 16 })
6438
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: `matchid-transaction-item-amount ${"matchid-transaction-item-" + status}`, children: [
6439
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(NumberFormatter, { value: amount, tFixNum: 6, prefix: isOut ? "-" : "+", suffix: " " + symbol }),
6440
+ status == "loading" && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(LoadingIcon_default, { color: "#000000", size: 16, rotate: true }),
6441
+ status == "success" && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(CheckRoundIcon, { size: 16 }),
6442
+ status == "error" && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(InfoRoundIcon, { size: 16 })
6387
6443
  ] })
6388
6444
  ]
6389
6445
  }
@@ -6393,19 +6449,19 @@ function TransactionList({
6393
6449
  scrollableTarget
6394
6450
  }) {
6395
6451
  const { fetchMoreData, hasMore, items } = useMatchWalletRecords();
6396
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
6452
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
6397
6453
  import_react_infinite_scroll_component.default,
6398
6454
  {
6399
6455
  scrollableTarget,
6400
6456
  dataLength: items.length,
6401
6457
  next: fetchMoreData,
6402
6458
  hasMore,
6403
- loader: /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "matchid-list-nomore", children: [
6404
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(LoadingIcon_default, { rotate: true, size: 16, color: "black" }),
6459
+ loader: /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "matchid-list-nomore", children: [
6460
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(LoadingIcon_default, { rotate: true, size: 16, color: "black" }),
6405
6461
  "Loading..."
6406
6462
  ] }),
6407
- endMessage: items.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: `matchid-list-nomore`, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_react_intl23.FormattedMessage, { id: "noMoreRecords" }) }) : /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: `matchid-list-nomore`, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_react_intl23.FormattedMessage, { id: "noRecords" }) }),
6408
- children: items.length == 0 && !hasMore ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "mt-[150px]" }) : /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: `matchid-transaction-list`, children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Item, { data: item }, index)) })
6463
+ endMessage: items.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: `matchid-list-nomore`, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_react_intl23.FormattedMessage, { id: "noMoreRecords" }) }) : /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: `matchid-list-nomore`, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_react_intl23.FormattedMessage, { id: "noRecords" }) }),
6464
+ children: items.length == 0 && !hasMore ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: "mt-[150px]" }) : /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: `matchid-transaction-list`, children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Item, { data: item }, index)) })
6409
6465
  }
6410
6466
  );
6411
6467
  }