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

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 (40) hide show
  1. package/dist/api.js +57 -48
  2. package/dist/api.js.map +1 -1
  3. package/dist/api.mjs +3 -3
  4. package/dist/{chunk-NIGHV7RT.mjs → chunk-2HVTQUPR.mjs} +358 -343
  5. package/dist/chunk-2HVTQUPR.mjs.map +1 -0
  6. package/dist/{chunk-SPVA3A6Z.mjs → chunk-NGNJ44SH.mjs} +2 -2
  7. package/dist/{chunk-FKXS2XRG.mjs → chunk-OSY7MTZY.mjs} +34 -1
  8. package/dist/chunk-OSY7MTZY.mjs.map +1 -0
  9. package/dist/components.js +369 -360
  10. package/dist/components.js.map +1 -1
  11. package/dist/components.mjs +2 -2
  12. package/dist/hooks.js +187 -178
  13. package/dist/hooks.js.map +1 -1
  14. package/dist/hooks.mjs +2 -2
  15. package/dist/icon.d.mts +1 -1
  16. package/dist/icon.d.ts +1 -1
  17. package/dist/icon.js +33 -0
  18. package/dist/icon.js.map +1 -1
  19. package/dist/icon.mjs +5 -1
  20. package/dist/{index-C82WIWvx.d.ts → index-AtpUyTIk.d.ts} +9 -2
  21. package/dist/{index-D7E317WV.d.mts → index-CRLiCVf9.d.mts} +9 -2
  22. package/dist/{index-DK7l3lsH.d.ts → index-nwqg5fYH.d.ts} +8 -2
  23. package/dist/{index-YPRyEYt6.d.mts → index-zmJl2a0q.d.mts} +8 -2
  24. package/dist/index.d.mts +2 -2
  25. package/dist/index.d.ts +2 -2
  26. package/dist/index.js +456 -413
  27. package/dist/index.js.map +1 -1
  28. package/dist/index.mjs +3 -3
  29. package/dist/ui.d.mts +1 -1
  30. package/dist/ui.d.ts +1 -1
  31. package/dist/ui.js +145 -105
  32. package/dist/ui.js.map +1 -1
  33. package/dist/ui.mjs +4 -2
  34. package/example/src/pages/UI/components/Checkbox.tsx +10 -0
  35. package/example/src/pages/UI/components/Modal.tsx +38 -0
  36. package/example/src/pages/UI/index.tsx +4 -0
  37. package/package.json +1 -1
  38. package/dist/chunk-FKXS2XRG.mjs.map +0 -1
  39. package/dist/chunk-NIGHV7RT.mjs.map +0 -1
  40. /package/dist/{chunk-SPVA3A6Z.mjs.map → chunk-NGNJ44SH.mjs.map} +0 -0
@@ -1207,6 +1207,12 @@ 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
+
1210
1216
  // src/hooks/useLayout.tsx
1211
1217
  var import_react = require("react");
1212
1218
  function useDownMd() {
@@ -1225,7 +1231,7 @@ function useDownMd() {
1225
1231
 
1226
1232
  // src/ui/Overlay/index.tsx
1227
1233
  var import_react2 = require("react");
1228
- var import_jsx_runtime51 = require("react/jsx-runtime");
1234
+ var import_jsx_runtime53 = require("react/jsx-runtime");
1229
1235
  function Overlay({
1230
1236
  isOpen = false,
1231
1237
  children,
@@ -1241,7 +1247,7 @@ function Overlay({
1241
1247
  document.body.style.overflow = "";
1242
1248
  };
1243
1249
  }, [isOpen]);
1244
- return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
1250
+ return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
1245
1251
  "div",
1246
1252
  {
1247
1253
  className: "matchid-overlay",
@@ -1250,12 +1256,12 @@ function Overlay({
1250
1256
  },
1251
1257
  children
1252
1258
  }
1253
- ) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx_runtime51.Fragment, {});
1259
+ ) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_jsx_runtime53.Fragment, {});
1254
1260
  }
1255
1261
 
1256
1262
  // src/ui/Modal/index.tsx
1257
1263
  var import_react_intl = require("react-intl");
1258
- var import_jsx_runtime52 = require("react/jsx-runtime");
1264
+ var import_jsx_runtime54 = require("react/jsx-runtime");
1259
1265
  function Modal({
1260
1266
  children,
1261
1267
  isOpen,
@@ -1263,10 +1269,10 @@ function Modal({
1263
1269
  zIndex = 100,
1264
1270
  className = ""
1265
1271
  }) {
1266
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: `matchid-modal ${className}`, style: {
1272
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: `matchid-modal ${className}`, style: {
1267
1273
  width
1268
1274
  }, children: [
1269
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "matchid-modal-mobile-header" }),
1275
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "matchid-modal-mobile-header" }),
1270
1276
  children
1271
1277
  ] }) });
1272
1278
  }
@@ -1280,13 +1286,13 @@ function ModalWithHeader({
1280
1286
  ...props
1281
1287
  }) {
1282
1288
  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 })
1289
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Modal, { ...props, children: [
1290
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: `matchid-modal-header ${showBorder ? "matchid-modal-header-border" : ""}`, children: [
1291
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "matchid-modal-header-content", children: [
1292
+ onBack && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ArrowLeftIcon, { height: isDownMd ? 20 : 25, width: isDownMd ? 20 : 24, className: "matchid-modal-header-back", onClick: onBack }),
1293
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "matchid-modal-header-title", children: title })
1288
1294
  ] }),
1289
- onClose && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30, className: "matchid-modal-header-close", onClick: onClose })
1295
+ onClose && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30, className: "matchid-modal-header-close", onClick: onClose })
1290
1296
  ] }),
1291
1297
  children
1292
1298
  ] });
@@ -1297,7 +1303,7 @@ var import_react5 = require("react");
1297
1303
 
1298
1304
  // src/utils/index.tsx
1299
1305
  var import_moment = __toESM(require("moment"));
1300
- var import_jsx_runtime53 = require("react/jsx-runtime");
1306
+ var import_jsx_runtime55 = require("react/jsx-runtime");
1301
1307
  var getVersion = () => {
1302
1308
  return "0.0.2";
1303
1309
  };
@@ -1343,10 +1349,10 @@ var NumberFormatter = ({
1343
1349
  const [intPart, decimalPart] = numberValue.toString().split(".");
1344
1350
  const intFormat = separator ? intPart.replace(/\B(?=(\d{3})+(?!\d))/g, ",") : intPart;
1345
1351
  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: [
1352
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("span", { className, children: [
1353
+ prefix && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: prefixClassName, children: prefix }),
1354
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: intClassName, children: intFormat }),
1355
+ decimalPart ? /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("span", { className: decimalClassName, children: [
1350
1356
  ".",
1351
1357
  decimalPart.substring(0, fixNum)
1352
1358
  ] }) : "",
@@ -1363,30 +1369,30 @@ var NumberFormatter = ({
1363
1369
  }
1364
1370
  }
1365
1371
  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: [
1372
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("span", { className, children: [
1373
+ prefix && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: prefixClassName, children: prefix }),
1374
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: intClassName, children: intFormat }),
1375
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("span", { className: decimalClassName, children: [
1370
1376
  ".",
1371
1377
  decimalPart.substring(0, tFixNum)
1372
1378
  ] }),
1373
1379
  suffix
1374
1380
  ] });
1375
1381
  }
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: [
1382
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("span", { className, children: [
1383
+ prefix && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: prefixClassName, children: prefix }),
1384
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: intClassName, children: intFormat }),
1385
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("span", { className: decimalClassName, children: [
1380
1386
  ".0",
1381
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("sub", { children: zeroCount }),
1387
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("sub", { children: zeroCount }),
1382
1388
  decimalPart?.substring(zeroCount, zeroCount + tFixNum - 2)
1383
1389
  ] }),
1384
1390
  suffix
1385
1391
  ] });
1386
1392
  }
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 }),
1393
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("span", { className, children: [
1394
+ prefix && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: prefixClassName, children: prefix }),
1395
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: intClassName, children: intPart }),
1390
1396
  suffix
1391
1397
  ] });
1392
1398
  };
@@ -1408,7 +1414,7 @@ function bytesToBase64(bytes) {
1408
1414
  }
1409
1415
 
1410
1416
  // src/ui/Button/index.tsx
1411
- var import_jsx_runtime54 = require("react/jsx-runtime");
1417
+ var import_jsx_runtime56 = require("react/jsx-runtime");
1412
1418
  function Button({
1413
1419
  size = "df",
1414
1420
  disabled = false,
@@ -1428,7 +1434,7 @@ function Button({
1428
1434
  onClick && onClick();
1429
1435
  }
1430
1436
  };
1431
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
1437
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
1432
1438
  "button",
1433
1439
  {
1434
1440
  type,
@@ -1439,14 +1445,14 @@ function Button({
1439
1445
  },
1440
1446
  onClick: onAction,
1441
1447
  ...dataset,
1442
- children: loading ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(LoadingIcon_default, { className: "matchid-btn-loading-icon", color: "var(--matchid-btn-loading-color)" }) : children
1448
+ children: loading ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(LoadingIcon_default, { className: "matchid-btn-loading-icon", color: "var(--matchid-btn-loading-color)" }) : children
1443
1449
  }
1444
1450
  );
1445
1451
  }
1446
1452
 
1447
1453
  // src/ui/Input/index.tsx
1448
1454
  var import_react4 = require("react");
1449
- var import_jsx_runtime55 = require("react/jsx-runtime");
1455
+ var import_jsx_runtime57 = require("react/jsx-runtime");
1450
1456
  function Input({
1451
1457
  onChange,
1452
1458
  type,
@@ -1456,17 +1462,17 @@ function Input({
1456
1462
  }) {
1457
1463
  const [inputType, setInputType] = (0, import_react4.useState)(type);
1458
1464
  const isDownMd = useDownMd();
1459
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
1465
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
1460
1466
  "div",
1461
1467
  {
1462
1468
  className: `matchid-input-box ${props.value && props.value.length > 0 ? "matchid-input-has-content" : ""} ${className}`,
1463
1469
  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) => {
1470
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("input", { type: inputType, onChange, ...props, className: "matchid-input-field" }),
1471
+ props.value && props.value.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "matchid-input-delete-icon", onClick: (e) => {
1466
1472
  if (onChange) {
1467
1473
  onChange({ target: { value: "" } });
1468
1474
  }
1469
- }, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
1475
+ }, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
1470
1476
  DeleteRoundIcon,
1471
1477
  {
1472
1478
  height: isDownMd ? 16 : 21,
@@ -1474,9 +1480,9 @@ function Input({
1474
1480
  color: "var(--matchid-input-delete-icon-color)"
1475
1481
  }
1476
1482
  ) }),
1477
- type === "password" && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "matchid-input-eye-icon", onClick: () => {
1483
+ type === "password" && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "matchid-input-eye-icon", onClick: () => {
1478
1484
  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 }) }),
1485
+ }, children: inputType === "password" ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(CloseEyeIcon, { size: isDownMd ? 16 : 20 }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(OpenEyeIcon, { size: isDownMd ? 16 : 20 }) }),
1480
1486
  after
1481
1487
  ]
1482
1488
  }
@@ -1484,7 +1490,7 @@ function Input({
1484
1490
  }
1485
1491
 
1486
1492
  // src/ui/Field/index.tsx
1487
- var import_jsx_runtime56 = require("react/jsx-runtime");
1493
+ var import_jsx_runtime58 = require("react/jsx-runtime");
1488
1494
  function Field({
1489
1495
  label,
1490
1496
  children,
@@ -1492,19 +1498,19 @@ function Field({
1492
1498
  required,
1493
1499
  className = ""
1494
1500
  }) {
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: "*" }),
1501
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: `matchid-field-box ${className}`, children: [
1502
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "matchid-field-label", children: [
1503
+ required && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "matchid-field-required", children: "*" }),
1498
1504
  label
1499
1505
  ] }),
1500
1506
  children,
1501
- error && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "matchid-field-error", children: error })
1507
+ error && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "matchid-field-error", children: error })
1502
1508
  ] });
1503
1509
  }
1504
1510
 
1505
1511
  // src/components/EmailModal/StepEmail.tsx
1506
1512
  var import_react_intl2 = require("react-intl");
1507
- var import_jsx_runtime57 = require("react/jsx-runtime");
1513
+ var import_jsx_runtime59 = require("react/jsx-runtime");
1508
1514
  function StepEmail(props) {
1509
1515
  const intl = (0, import_react_intl2.useIntl)();
1510
1516
  const [emailVal, setEmailVal] = (0, import_react5.useState)("");
@@ -1519,10 +1525,10 @@ function StepEmail(props) {
1519
1525
  const onContinue = async () => {
1520
1526
  props.onContinue(emailVal);
1521
1527
  };
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({
1528
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "matchid-email-email-box", children: [
1529
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Field, { label: intl.formatMessage({
1524
1530
  id: "emailAddress"
1525
- }), children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
1531
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
1526
1532
  Input,
1527
1533
  {
1528
1534
  placeholder: intl.formatMessage({
@@ -1532,9 +1538,9 @@ function StepEmail(props) {
1532
1538
  value: emailVal
1533
1539
  }
1534
1540
  ) }),
1535
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Button, { disabled: !canContinue, style: {
1541
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Button, { disabled: !canContinue, style: {
1536
1542
  marginTop: "64px"
1537
- }, onClick: onContinue, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react_intl2.FormattedMessage, { id: "continue" }) })
1543
+ }, onClick: onContinue, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react_intl2.FormattedMessage, { id: "continue" }) })
1538
1544
  ] });
1539
1545
  }
1540
1546
 
@@ -1953,11 +1959,11 @@ var import_react11 = require("react");
1953
1959
  var import_viem4 = require("viem");
1954
1960
 
1955
1961
  // src/context/ModalContext.tsx
1956
- var import_react10 = __toESM(require("react"));
1962
+ var import_react10 = require("react");
1957
1963
  var import_react_dom = require("react-dom");
1958
1964
 
1959
1965
  // src/ui/Drawer/index.tsx
1960
- var import_jsx_runtime58 = require("react/jsx-runtime");
1966
+ var import_jsx_runtime60 = require("react/jsx-runtime");
1961
1967
  function Drawer({
1962
1968
  children,
1963
1969
  showClose = true,
@@ -1968,15 +1974,15 @@ function Drawer({
1968
1974
  onBack
1969
1975
  }) {
1970
1976
  if (!isOpen) {
1971
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_jsx_runtime58.Fragment, {});
1977
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_jsx_runtime60.Fragment, {});
1972
1978
  }
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 }),
1979
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "matchid-drawer", children: [
1980
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: `matchid-drawer-header matchid-flex`, children: [
1981
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: `matchid-drawer-header-content matchid-flex`, children: [
1982
+ onBack && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ArrowLeftIcon, { height: 25, width: 24, className: "matchid-drawer-header-back", onClick: onBack }),
1977
1983
  title
1978
1984
  ] }),
1979
- showClose && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(CloseRoundIcon, { className: "matchid-drawer-header-close", onClick: onClose })
1985
+ showClose && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(CloseRoundIcon, { className: "matchid-drawer-header-close", onClick: onClose })
1980
1986
  ] }),
1981
1987
  children
1982
1988
  ] }) });
@@ -1986,7 +1992,7 @@ function Drawer({
1986
1992
  var import_react7 = require("react");
1987
1993
 
1988
1994
  // src/ui/ModalDrawer/index.tsx
1989
- var import_jsx_runtime59 = require("react/jsx-runtime");
1995
+ var import_jsx_runtime61 = require("react/jsx-runtime");
1990
1996
  function ModalDrawer({
1991
1997
  title,
1992
1998
  drawerTitleVisible = true,
@@ -1994,9 +2000,9 @@ function ModalDrawer({
1994
2000
  }) {
1995
2001
  const isDownMd = useDownMd();
1996
2002
  if (isDownMd) {
1997
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ModalWithHeader, { ...props, title });
2003
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ModalWithHeader, { ...props, title });
1998
2004
  }
1999
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Drawer, { ...props, title: drawerTitleVisible ? title : null });
2005
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Drawer, { ...props, title: drawerTitleVisible ? title : null });
2000
2006
  }
2001
2007
 
2002
2008
  // src/assets/lottie/confirm.json
@@ -2064,7 +2070,7 @@ function useHash({
2064
2070
  }
2065
2071
 
2066
2072
  // src/ui/HashPanel/index.tsx
2067
- var import_jsx_runtime60 = require("react/jsx-runtime");
2073
+ var import_jsx_runtime62 = require("react/jsx-runtime");
2068
2074
  function HashPanel({
2069
2075
  hash,
2070
2076
  chain,
@@ -2124,14 +2130,14 @@ function HashPanel({
2124
2130
  }
2125
2131
  }, [hashQuery.data]);
2126
2132
  const link = chain ? `${chain?.blockExplorers?.default.url}/tx/${hash}` : "";
2127
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2133
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2128
2134
  ModalDrawer,
2129
2135
  {
2130
2136
  isOpen,
2131
2137
  showClose: true,
2132
2138
  onClose,
2133
2139
  zIndex,
2134
- title: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2140
+ title: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2135
2141
  "div",
2136
2142
  {
2137
2143
  className: "matchid-hashpanel-header",
@@ -2141,33 +2147,33 @@ function HashPanel({
2141
2147
  children: statusValue.text
2142
2148
  }
2143
2149
  ),
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: {
2150
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "matchid-hashpanel-box", children: [
2151
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "matchid-hashpanel-content", children: [
2152
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: `matchid-hashpanel-status`, style: {
2147
2153
  color: statusValue.color
2148
2154
  }, children: statusValue.text }),
2149
- statusValue.lottie && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Lottie_default, { animationData: statusValue.lottie, style: {
2155
+ statusValue.lottie && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Lottie_default, { animationData: statusValue.lottie, style: {
2150
2156
  width: "96px",
2151
2157
  height: "96px"
2152
2158
  } }),
2153
- hash && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "matchid-hashpanel-hash", children: [
2159
+ hash && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "matchid-hashpanel-hash", children: [
2154
2160
  "Hash:",
2155
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("a", { href: link, target: "_blank", children: hash })
2161
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("a", { href: link, target: "_blank", children: hash })
2156
2162
  ] }),
2157
- error && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "matchid-hashpanel-text", children: error })
2163
+ error && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "matchid-hashpanel-text", children: error })
2158
2164
  ] }),
2159
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Button, { onClick: onClose, size: "lg", block: true, children: "Back" })
2165
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Button, { onClick: onClose, size: "lg", block: true, children: "Back" })
2160
2166
  ] })
2161
2167
  }
2162
2168
  );
2163
2169
  }
2164
2170
  function HashPanel_default(props) {
2165
- return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(HashPanel, { ...props });
2171
+ return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(HashPanel, { ...props });
2166
2172
  }
2167
2173
 
2168
2174
  // src/ui/Popover/index.tsx
2169
2175
  var import_react8 = require("react");
2170
- var import_jsx_runtime61 = require("react/jsx-runtime");
2176
+ var import_jsx_runtime63 = require("react/jsx-runtime");
2171
2177
  function Popover({
2172
2178
  children,
2173
2179
  content,
@@ -2177,7 +2183,7 @@ function Popover({
2177
2183
  gap = "20px"
2178
2184
  }) {
2179
2185
  const [active, setActive] = (0, import_react8.useState)(false);
2180
- return children && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
2186
+ return children && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
2181
2187
  "div",
2182
2188
  {
2183
2189
  onClick: () => {
@@ -2188,20 +2194,20 @@ function Popover({
2188
2194
  className: `matchid-popover-box matchid-popover-${position} matchid-popover-${type} ${className} ${type == "click" && active ? "matchid-popover-click-active" : ""}`,
2189
2195
  children: [
2190
2196
  children,
2191
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { style: {
2197
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { style: {
2192
2198
  paddingTop: gap
2193
- }, className: `matchid-popover-area`, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: `matchid-popover-content`, children: content }) })
2199
+ }, className: `matchid-popover-area`, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: `matchid-popover-content`, children: content }) })
2194
2200
  ]
2195
2201
  }
2196
2202
  );
2197
2203
  }
2198
2204
 
2199
2205
  // src/ui/Switch/index.tsx
2200
- var import_jsx_runtime62 = require("react/jsx-runtime");
2206
+ var import_jsx_runtime64 = require("react/jsx-runtime");
2201
2207
 
2202
2208
  // src/ui/AlphaAvatar/index.tsx
2203
2209
  var import_react9 = require("react");
2204
- var import_jsx_runtime63 = require("react/jsx-runtime");
2210
+ var import_jsx_runtime65 = require("react/jsx-runtime");
2205
2211
  function AlphaAvatar({
2206
2212
  name,
2207
2213
  size = "default",
@@ -2218,7 +2224,7 @@ function AlphaAvatar({
2218
2224
  return "";
2219
2225
  }, [name]);
2220
2226
  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: {
2227
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
2222
2228
  width: numberSize,
2223
2229
  height: numberSize,
2224
2230
  fontSize: Math.ceil(numberSize / 2),
@@ -2227,7 +2233,7 @@ function AlphaAvatar({
2227
2233
  }
2228
2234
 
2229
2235
  // src/ui/Radio/index.tsx
2230
- var import_jsx_runtime64 = require("react/jsx-runtime");
2236
+ var import_jsx_runtime66 = require("react/jsx-runtime");
2231
2237
  function Radio({
2232
2238
  checked = false,
2233
2239
  onChange,
@@ -2236,23 +2242,23 @@ function Radio({
2236
2242
  className = "",
2237
2243
  style = {}
2238
2244
  }) {
2239
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { onClick: onChange, className: `matchid-radio ${className} ${checked ? "matchid-radio-checked" : ""}`, style: {
2245
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { onClick: onChange, className: `matchid-radio ${className} ${checked ? "matchid-radio-checked" : ""}`, style: {
2240
2246
  width: size,
2241
2247
  height: size,
2242
2248
  ...style,
2243
2249
  // @ts-ignore
2244
2250
  "--matchid-radio-checked": color
2245
- }, children: checked && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: `matchid-radio-content`, style: {
2251
+ }, children: checked && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: `matchid-radio-content`, style: {
2246
2252
  width: Math.floor(size * 0.7),
2247
2253
  height: Math.floor(size * 0.7)
2248
2254
  } }) });
2249
2255
  }
2250
2256
 
2251
2257
  // src/ui/Skeleton/index.tsx
2252
- var import_jsx_runtime65 = require("react/jsx-runtime");
2258
+ var import_jsx_runtime67 = require("react/jsx-runtime");
2253
2259
 
2254
2260
  // src/ui/Tabs/index.tsx
2255
- var import_jsx_runtime66 = require("react/jsx-runtime");
2261
+ var import_jsx_runtime68 = require("react/jsx-runtime");
2256
2262
 
2257
2263
  // src/ui/Lottie/index.tsx
2258
2264
  var import_lottie_react = require("lottie-react");
@@ -2267,8 +2273,11 @@ var LazyLottie = (props) => {
2267
2273
  };
2268
2274
  var Lottie_default = LazyLottie;
2269
2275
 
2276
+ // src/ui/Checkbox/index.tsx
2277
+ var import_jsx_runtime69 = require("react/jsx-runtime");
2278
+
2270
2279
  // src/context/ModalContext.tsx
2271
- var import_jsx_runtime67 = require("react/jsx-runtime");
2280
+ var import_jsx_runtime70 = require("react/jsx-runtime");
2272
2281
  var ModalContext = (0, import_react10.createContext)(null);
2273
2282
  function useModal() {
2274
2283
  const context = (0, import_react10.useContext)(ModalContext);
@@ -2309,7 +2318,7 @@ var useTransactionStore = (0, import_zustand3.create)((0, import_middleware2.dev
2309
2318
  var useTransactionStore_default = useTransactionStore;
2310
2319
 
2311
2320
  // src/hooks/useWallet.tsx
2312
- var import_jsx_runtime68 = require("react/jsx-runtime");
2321
+ var import_jsx_runtime71 = require("react/jsx-runtime");
2313
2322
  var AppClientId = "react-sdk-" + getVersion();
2314
2323
  function useWallet() {
2315
2324
  const { address, wallet: walletConfig } = useLocalStore_default();
@@ -2483,12 +2492,12 @@ function useWallet() {
2483
2492
  address: evmAccount.address
2484
2493
  });
2485
2494
  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 });
2495
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, hash: txHash, chain: _chain });
2487
2496
  });
2488
2497
  return txHash;
2489
2498
  } catch (error) {
2490
2499
  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 });
2500
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, error: typeof error == "string" ? error : error.details || error.message, chain: _chain });
2492
2501
  });
2493
2502
  throw error;
2494
2503
  }
@@ -2566,7 +2575,7 @@ function useCopyClipboard(timeout = 500) {
2566
2575
  // src/context/ToastContext.tsx
2567
2576
  var import_react13 = require("react");
2568
2577
  var import_react_dom2 = require("react-dom");
2569
- var import_jsx_runtime69 = require("react/jsx-runtime");
2578
+ var import_jsx_runtime72 = require("react/jsx-runtime");
2570
2579
  var ToastContext = (0, import_react13.createContext)(null);
2571
2580
 
2572
2581
  // src/hooks/api/wallet.ts
@@ -2628,7 +2637,7 @@ function useImportTokenListQuery({
2628
2637
  var import_react14 = require("react");
2629
2638
  var import_viem5 = require("viem");
2630
2639
  var import_react_intl3 = require("react-intl");
2631
- var import_jsx_runtime70 = require("react/jsx-runtime");
2640
+ var import_jsx_runtime73 = require("react/jsx-runtime");
2632
2641
  function useMatchChain() {
2633
2642
  const chainListQuery = useChainListQuery();
2634
2643
  const modal = useModal();
@@ -2659,28 +2668,28 @@ function useMatchChain() {
2659
2668
  const { chainId: storeChainId2, setChainId: setChainId2 } = useLocalStore_default();
2660
2669
  const [selectedChainId, setSelectedChainId] = (0, import_react14.useState)(storeChainId2);
2661
2670
  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)(
2671
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: `matchid-change-network-box`, children: [
2672
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: `matchid-change-network-list`, children: chainListQuery.data?.map((item, index) => {
2673
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
2665
2674
  "div",
2666
2675
  {
2667
2676
  onClick: () => setSelectedChainId(item.id),
2668
2677
  className: `matchid-change-network-item ${selectedChainId == item.id ? "matchid-change-network-selected" : ""}`,
2669
2678
  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 })
2679
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: `matchid-change-network-item-content`, children: [
2680
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("img", { src: item.iconUrl, className: `matchid-change-network-item-icon` }),
2681
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "matchid-change-network-item-name", children: item.name })
2673
2682
  ] }),
2674
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Radio, { checked: selectedChainId === item.id, size: isDownMd ? 18 : 24 })
2683
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Radio, { checked: selectedChainId === item.id, size: isDownMd ? 18 : 24 })
2675
2684
  ]
2676
2685
  },
2677
2686
  index
2678
2687
  );
2679
2688
  }) }),
2680
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Button, { size: "lg", highlight: true, onClick: () => {
2689
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Button, { size: "lg", highlight: true, onClick: () => {
2681
2690
  setChainId2(selectedChainId || 0);
2682
2691
  close();
2683
- }, block: true, children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react_intl3.FormattedMessage, { id: "confirm" }) })
2692
+ }, block: true, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react_intl3.FormattedMessage, { id: "confirm" }) })
2684
2693
  ] });
2685
2694
  }
2686
2695
  const showChangeNetwork = () => {
@@ -2798,10 +2807,10 @@ var import_viem6 = require("viem");
2798
2807
  var import_react_query3 = require("@tanstack/react-query");
2799
2808
 
2800
2809
  // src/components/ImportToken/index.tsx
2801
- var import_jsx_runtime71 = require("react/jsx-runtime");
2810
+ var import_jsx_runtime74 = require("react/jsx-runtime");
2802
2811
 
2803
2812
  // src/hooks/useMatchWallet.tsx
2804
- var import_jsx_runtime72 = require("react/jsx-runtime");
2813
+ var import_jsx_runtime75 = require("react/jsx-runtime");
2805
2814
  function useMatchWalletRecords() {
2806
2815
  const [hasMore, setHasMore] = (0, import_react16.useState)(true);
2807
2816
  const [items, setItems] = (0, import_react16.useState)([]);
@@ -3110,39 +3119,39 @@ var CACHE_TTL2 = 86400 * 30 * 1e3;
3110
3119
  var import_zustand5 = require("zustand");
3111
3120
 
3112
3121
  // src/hooks/useConfig.tsx
3113
- var import_jsx_runtime73 = require("react/jsx-runtime");
3122
+ var import_jsx_runtime76 = require("react/jsx-runtime");
3114
3123
  var DEFAULT_WALLET_METHODS = ["evm", "sol", "btc", "tron", "ton"];
3115
3124
  var WALLET_METHODS = ["evm", "sol", "btc", "tron", "ton"];
3116
3125
  function useWalletConfig() {
3117
3126
  const isDownMd = useDownMd();
3118
3127
  const walletMap = {
3119
3128
  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 }),
3129
+ icon: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(EVMDarkIcon, { size: isDownMd ? 36 : 40 }),
3130
+ activeIcon: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(EVMLightIcon, { size: isDownMd ? 36 : 40 }),
3122
3131
  name: "EVM",
3123
3132
  method: "evm"
3124
3133
  },
3125
3134
  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 }),
3135
+ icon: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(SOLDarkIcon, { size: isDownMd ? 36 : 40 }),
3136
+ activeIcon: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(SOLLightIcon, { size: isDownMd ? 36 : 40 }),
3128
3137
  name: "SOL",
3129
3138
  method: "sol"
3130
3139
  },
3131
3140
  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 }),
3141
+ icon: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(BTCDarkIcon, { size: isDownMd ? 36 : 40 }),
3142
+ activeIcon: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(BTCLightIcon, { size: isDownMd ? 36 : 40 }),
3134
3143
  name: "BTC",
3135
3144
  method: "btc"
3136
3145
  },
3137
3146
  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 }),
3147
+ icon: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(TRXDarkIcon, { size: isDownMd ? 36 : 40 }),
3148
+ activeIcon: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(TRXLightIcon, { size: isDownMd ? 36 : 40 }),
3140
3149
  name: "TRON",
3141
3150
  method: "tron"
3142
3151
  },
3143
3152
  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 }),
3153
+ icon: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(TonLightIcon, { size: isDownMd ? 36 : 40 }),
3154
+ activeIcon: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(TonLightIcon2, { size: isDownMd ? 36 : 40 }),
3146
3155
  name: "TON",
3147
3156
  method: "ton"
3148
3157
  }
@@ -3194,14 +3203,14 @@ var useWalletModalStore = (0, import_zustand5.create)((set) => ({
3194
3203
  // src/components/CEXBindModal/index.tsx
3195
3204
  var import_react19 = require("react");
3196
3205
  var import_react_intl6 = require("react-intl");
3197
- var import_jsx_runtime74 = require("react/jsx-runtime");
3206
+ var import_jsx_runtime77 = require("react/jsx-runtime");
3198
3207
 
3199
3208
  // src/context/BusinessProvider.tsx
3200
3209
  var import_react_query8 = require("@tanstack/react-query");
3201
- var import_jsx_runtime75 = require("react/jsx-runtime");
3210
+ var import_jsx_runtime78 = require("react/jsx-runtime");
3202
3211
 
3203
3212
  // src/context/index.tsx
3204
- var import_jsx_runtime76 = require("react/jsx-runtime");
3213
+ var import_jsx_runtime79 = require("react/jsx-runtime");
3205
3214
 
3206
3215
  // src/hooks/useWalletInit.ts
3207
3216
  var import_react20 = require("react");
@@ -3281,7 +3290,7 @@ var matchTest = /* @__PURE__ */ (0, import_viem12.defineChain)({
3281
3290
 
3282
3291
  // src/MatchContext.tsx
3283
3292
  var import_wagmi = require("wagmi");
3284
- var import_jsx_runtime77 = require("react/jsx-runtime");
3293
+ var import_jsx_runtime80 = require("react/jsx-runtime");
3285
3294
  var queryClient = new import_react_query9.QueryClient();
3286
3295
  var wagmiConfig = (0, import_rainbowkit.getDefaultConfig)({
3287
3296
  appName: "MatchID",
@@ -3609,7 +3618,7 @@ function useUserInfo() {
3609
3618
  // src/components/EmailModal/StepVerify.tsx
3610
3619
  var import_react24 = require("react");
3611
3620
  var import_react_intl8 = require("react-intl");
3612
- var import_jsx_runtime78 = require("react/jsx-runtime");
3621
+ var import_jsx_runtime81 = require("react/jsx-runtime");
3613
3622
  function StepVerify(props) {
3614
3623
  const intl = (0, import_react_intl8.useIntl)();
3615
3624
  const { getLoginEmailCode, loginByEmail } = useUserInfo();
@@ -3686,17 +3695,17 @@ function StepVerify(props) {
3686
3695
  setSubmitting(false);
3687
3696
  }
3688
3697
  };
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" }) })
3698
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "matchid-email-verify-box", children: [
3699
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "matchid-email-verify-header", children: [
3700
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "matchid-email-verify-header-icon", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(EmailLineIcon, { size: isDownMd ? 19 : 24 }) }),
3701
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "matchid-email-verify-header-content", children: [
3702
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "matchid-email-verify-header-value", children: props.email }),
3703
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "matchid-email-verify-header-tips", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react_intl8.FormattedMessage, { id: "sendEmailTips" }) })
3695
3704
  ] })
3696
3705
  ] }),
3697
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Field, { label: intl.formatMessage({
3706
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Field, { label: intl.formatMessage({
3698
3707
  id: "verificationCode"
3699
- }), error, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
3708
+ }), error, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
3700
3709
  Input,
3701
3710
  {
3702
3711
  placeholder: intl.formatMessage({
@@ -3706,7 +3715,7 @@ function StepVerify(props) {
3706
3715
  maxLength: codeLength,
3707
3716
  onChange: (e) => setCode(e.target.value),
3708
3717
  value: code,
3709
- after: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
3718
+ after: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
3710
3719
  Button,
3711
3720
  {
3712
3721
  highlight: true,
@@ -3725,13 +3734,13 @@ function StepVerify(props) {
3725
3734
  )
3726
3735
  }
3727
3736
  ) }),
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" }) })
3737
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Button, { disabled: !canContinue, loading: submitting, highlight: true, block: true, size: "lg", onClick: onContinue, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react_intl8.FormattedMessage, { id: "continue" }) })
3729
3738
  ] });
3730
3739
  }
3731
3740
 
3732
3741
  // src/components/EmailModal/index.tsx
3733
3742
  var import_react_intl9 = require("react-intl");
3734
- var import_jsx_runtime79 = require("react/jsx-runtime");
3743
+ var import_jsx_runtime82 = require("react/jsx-runtime");
3735
3744
  function EmailModal({
3736
3745
  isOpen = false,
3737
3746
  width = 480,
@@ -3748,7 +3757,7 @@ function EmailModal({
3748
3757
  setEmailVal("");
3749
3758
  }
3750
3759
  }, [isOpen]);
3751
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
3760
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
3752
3761
  ModalWithHeader,
3753
3762
  {
3754
3763
  isOpen,
@@ -3758,10 +3767,10 @@ function EmailModal({
3758
3767
  id: "email"
3759
3768
  }),
3760
3769
  onBack: step == "verify" ? () => setStep("input") : onBack,
3761
- children: step === "input" ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(StepEmail, { email: emailVal, onContinue: (email) => {
3770
+ children: step === "input" ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(StepEmail, { email: emailVal, onContinue: (email) => {
3762
3771
  setEmailVal(email);
3763
3772
  setStep("verify");
3764
- } }) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(StepVerify, { email: emailVal, onSuccess: onLogin })
3773
+ } }) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(StepVerify, { email: emailVal, onSuccess: onLogin })
3765
3774
  }
3766
3775
  );
3767
3776
  }
@@ -3791,7 +3800,7 @@ function useAppConfig() {
3791
3800
  }
3792
3801
 
3793
3802
  // src/components/LoginBox/index.tsx
3794
- var import_jsx_runtime80 = require("react/jsx-runtime");
3803
+ var import_jsx_runtime83 = require("react/jsx-runtime");
3795
3804
  var RecommendItem = ({
3796
3805
  icon,
3797
3806
  name,
@@ -3800,20 +3809,20 @@ var RecommendItem = ({
3800
3809
  children,
3801
3810
  footer
3802
3811
  }) => {
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 })
3812
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "matchid-login-recommend-method", children: [
3813
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "matchid-login-recommend-method-item", onClick, children: [
3814
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "matchid-login-recommend-method-content", children: [
3815
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "matchid-login-recommend-method-icon", children: icon }),
3816
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { className: "matchid-login-recommend-method-name", children: name })
3808
3817
  ] }),
3809
- footer ? footer : children ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
3818
+ footer ? footer : children ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3810
3819
  ArrowDownIcon,
3811
3820
  {
3812
3821
  className: `matchid-login-recommend-method-arrow ${showChildren ? "matchid-login-recommend-method-arrow-active" : ""}`,
3813
3822
  size: 20,
3814
3823
  color: "var(--matchid-arrow-color)"
3815
3824
  }
3816
- ) : /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
3825
+ ) : /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3817
3826
  ArrowRightIcon,
3818
3827
  {
3819
3828
  className: "matchid-login-recommend-method-arrow",
@@ -3822,7 +3831,7 @@ var RecommendItem = ({
3822
3831
  }
3823
3832
  )
3824
3833
  ] }),
3825
- children && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
3834
+ children && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3826
3835
  "div",
3827
3836
  {
3828
3837
  className: `matchid-login-recommend-method-popover ${showChildren ? "matchid-login-recommend-method-popover-active" : ""}`,
@@ -3887,75 +3896,75 @@ function LoginBox({
3887
3896
  const isDownMd = useDownMd();
3888
3897
  const methodMap = {
3889
3898
  wallet: {
3890
- icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(WalletIcon, { size: isDownMd ? 36 : 40 }),
3899
+ icon: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(WalletIcon, { size: isDownMd ? 36 : 40 }),
3891
3900
  name: intl.formatMessage({ id: "wallet" }),
3892
3901
  onClick: () => setShowWallet(!showWallet),
3893
3902
  type: "wallet"
3894
3903
  },
3895
3904
  email: {
3896
- icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(EmailIcon, { size: isDownMd ? 36 : 40 }),
3905
+ icon: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(EmailIcon, { size: isDownMd ? 36 : 40 }),
3897
3906
  name: intl.formatMessage({ id: "email" }),
3898
3907
  onClick: () => {
3899
3908
  setEmailOpen(true);
3900
3909
  }
3901
3910
  },
3902
3911
  google: {
3903
- icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(GoogleIcon, { size: isDownMd ? 36 : 40 }),
3912
+ icon: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(GoogleIcon, { size: isDownMd ? 36 : 40 }),
3904
3913
  name: "Google",
3905
3914
  onClick: () => login("google")
3906
3915
  },
3907
3916
  twitter: {
3908
- icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(XIcon, { size: isDownMd ? 36 : 40 }),
3917
+ icon: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(XIcon, { size: isDownMd ? 36 : 40 }),
3909
3918
  name: "X",
3910
3919
  onClick: () => login("twitter")
3911
3920
  },
3912
3921
  telegram: {
3913
- icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(TelegramIcon, { size: isDownMd ? 36 : 40 }),
3922
+ icon: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(TelegramIcon, { size: isDownMd ? 36 : 40 }),
3914
3923
  name: "Telegram",
3915
3924
  onClick: () => login("telegram")
3916
3925
  },
3917
3926
  github: {
3918
- icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(GithubIcon, { size: isDownMd ? 36 : 40 }),
3927
+ icon: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(GithubIcon, { size: isDownMd ? 36 : 40 }),
3919
3928
  name: "Github",
3920
3929
  onClick: () => login("github")
3921
3930
  },
3922
3931
  discord: {
3923
- icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(DiscordIcon, { size: isDownMd ? 36 : 40 }),
3932
+ icon: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(DiscordIcon, { size: isDownMd ? 36 : 40 }),
3924
3933
  name: "Discord",
3925
3934
  onClick: () => login("discord")
3926
3935
  },
3927
3936
  linkedin: {
3928
- icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(LinkedinIcon, { size: isDownMd ? 36 : 40 }),
3937
+ icon: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(LinkedinIcon, { size: isDownMd ? 36 : 40 }),
3929
3938
  name: "LinkedIn",
3930
3939
  onClick: () => login("linkedin")
3931
3940
  },
3932
3941
  facebook: {
3933
- icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(FacebookIcon, { size: isDownMd ? 36 : 40 }),
3942
+ icon: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(FacebookIcon, { size: isDownMd ? 36 : 40 }),
3934
3943
  name: "Facebook",
3935
3944
  onClick: () => login("facebook")
3936
3945
  },
3937
3946
  youtube: {
3938
- icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(YoutubeIcon, { size: isDownMd ? 36 : 40 }),
3947
+ icon: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(YoutubeIcon, { size: isDownMd ? 36 : 40 }),
3939
3948
  name: "Youtube",
3940
3949
  onClick: () => login("youtube")
3941
3950
  }
3942
3951
  };
3943
3952
  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)(
3953
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_jsx_runtime83.Fragment, { children: [
3954
+ (!inModal || !emailOpen) && /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "matchid-login-box", children: [
3955
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "matchid-login-recommend-list", children: methodConfig.recommendMethods.map((m) => {
3956
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3948
3957
  RecommendItem,
3949
3958
  {
3950
3959
  icon: methodMap[m]?.icon,
3951
3960
  name: methodMap[m]?.name,
3952
3961
  onClick: methodMap[m]?.onClick,
3953
3962
  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) => {
3963
+ children: m == "wallet" && /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_jsx_runtime83.Fragment, { children: [
3964
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "matchid-login-recommend-wallet-divider" }),
3965
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "matchid-login-recommend-wallet-list", children: methodConfig.walletMethods.map((n) => {
3957
3966
  const m2 = walletMap[n];
3958
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
3967
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
3959
3968
  "div",
3960
3969
  {
3961
3970
  className: "matchid-login-recommend-wallet-item",
@@ -3963,16 +3972,16 @@ function LoginBox({
3963
3972
  login(m2.method);
3964
3973
  },
3965
3974
  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)(
3975
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "matchid-login-recommend-wallet-item-content", children: [
3976
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "matchid-login-recommend-wallet-item-icon", children: m2.icon }),
3977
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3969
3978
  "div",
3970
3979
  {
3971
3980
  className: "matchid-login-recommend-wallet-item-hover-icon",
3972
3981
  children: m2.activeIcon
3973
3982
  }
3974
3983
  ),
3975
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
3984
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3976
3985
  "span",
3977
3986
  {
3978
3987
  className: "matchid-login-recommend-wallet-item-name",
@@ -3980,7 +3989,7 @@ function LoginBox({
3980
3989
  }
3981
3990
  )
3982
3991
  ] }),
3983
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
3992
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3984
3993
  ArrowRightIcon,
3985
3994
  {
3986
3995
  className: "matchid-login-recommend-wallet-item-arrow",
@@ -3998,10 +4007,10 @@ function LoginBox({
3998
4007
  m
3999
4008
  );
4000
4009
  }) }),
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)(
4010
+ methodConfig.methods.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "matchid-login-other", children: [
4011
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "matchid-login-other-text", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_react_intl10.FormattedMessage, { id: "otherLoginMethods" }) }),
4012
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "matchid-login-method-box", children: methodConfig.methods.map((m) => {
4013
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
4005
4014
  "div",
4006
4015
  {
4007
4016
  className: "matchid-login-method-item",
@@ -4014,7 +4023,7 @@ function LoginBox({
4014
4023
  }) })
4015
4024
  ] })
4016
4025
  ] }),
4017
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
4026
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
4018
4027
  EmailModal,
4019
4028
  {
4020
4029
  isOpen: emailOpen,
@@ -4034,40 +4043,40 @@ var import_react28 = require("react");
4034
4043
 
4035
4044
  // src/components/LoginPanel/index.tsx
4036
4045
  var import_react_intl11 = require("react-intl");
4037
- var import_jsx_runtime81 = require("react/jsx-runtime");
4046
+ var import_jsx_runtime84 = require("react/jsx-runtime");
4038
4047
  function LoginPanel({
4039
4048
  header,
4040
4049
  onClose,
4041
4050
  ...props
4042
4051
  }) {
4043
4052
  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" }) })
4053
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "matchid-login-panel", children: [
4054
+ header ? header : /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "matchid-login-panel-header", children: [
4055
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "matchid-login-panel-header-content", children: [
4056
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "matchid-login-panel-header-title", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react_intl11.FormattedMessage, { id: "loginTitle" }) }),
4057
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "matchid-login-panel-header-subtilte", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react_intl11.FormattedMessage, { id: "loginTips" }) })
4049
4058
  ] }),
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 }) })
4059
+ onClose && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "matchid-login-panel-header-close", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30 }) })
4051
4060
  ] }),
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 }) })
4061
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "matchid-login-panel-divide" }),
4062
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "matchid-login-panel-box", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(LoginBox, { ...props }) })
4054
4063
  ] });
4055
4064
  }
4056
4065
 
4057
4066
  // src/components/LoginModal/index.tsx
4058
- var import_jsx_runtime82 = require("react/jsx-runtime");
4067
+ var import_jsx_runtime85 = require("react/jsx-runtime");
4059
4068
  function LoginModal({
4060
4069
  isOpen = false,
4061
4070
  width = 480,
4062
4071
  ...props
4063
4072
  }) {
4064
4073
  const { isLogin } = useUserInfo();
4065
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
4074
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
4066
4075
  Modal,
4067
4076
  {
4068
4077
  isOpen: isOpen && !isLogin,
4069
4078
  width,
4070
- children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(LoginPanel, { ...props, inModal: true })
4079
+ children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(LoginPanel, { ...props, inModal: true })
4071
4080
  }
4072
4081
  );
4073
4082
  }
@@ -4076,10 +4085,10 @@ function LoginModal({
4076
4085
  var import_react27 = require("react");
4077
4086
 
4078
4087
  // src/assets/icon/ProfileIcon.tsx
4079
- var import_jsx_runtime83 = require("react/jsx-runtime");
4088
+ var import_jsx_runtime86 = require("react/jsx-runtime");
4080
4089
  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)(
4090
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
4091
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
4083
4092
  "path",
4084
4093
  {
4085
4094
  fillRule: "evenodd",
@@ -4088,7 +4097,7 @@ function ProfileIcon({ size = 24, color = "black", ...props }) {
4088
4097
  fill: color
4089
4098
  }
4090
4099
  ),
4091
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
4100
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
4092
4101
  "path",
4093
4102
  {
4094
4103
  fillRule: "evenodd",
@@ -4102,7 +4111,7 @@ function ProfileIcon({ size = 24, color = "black", ...props }) {
4102
4111
 
4103
4112
  // src/components/UserPopover/index.tsx
4104
4113
  var import_react_intl12 = require("react-intl");
4105
- var import_jsx_runtime84 = require("react/jsx-runtime");
4114
+ var import_jsx_runtime87 = require("react/jsx-runtime");
4106
4115
  function UserContent() {
4107
4116
  const { logout, address, username } = useUserInfo();
4108
4117
  const [logouting, setLogouting] = (0, import_react27.useState)(false);
@@ -4123,34 +4132,34 @@ function UserContent() {
4123
4132
  rightIcon,
4124
4133
  onClick
4125
4134
  }) => {
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: [
4135
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "matchid-user-popover-item", onClick, children: [
4136
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: `matchid-user-popover-item-content`, children: [
4128
4137
  icon,
4129
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "matchid-user-popover-item-text", children })
4138
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "matchid-user-popover-item-text", children })
4130
4139
  ] }),
4131
4140
  rightIcon
4132
4141
  ] });
4133
4142
  };
4134
4143
  const UserDivider = () => {
4135
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: `matchid-user-popover-divider` });
4144
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: `matchid-user-popover-divider` });
4136
4145
  };
4137
4146
  const [usernameOpen, setUsernameOpen] = (0, import_react27.useState)(false);
4138
4147
  const [copied, setCopied] = useCopyClipboard();
4139
4148
  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: () => {
4149
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "matchid-user-popover-content", children: [
4150
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "matchid-user-popover-list", children: [
4151
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(UserItem, { onClick: () => {
4143
4152
  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: () => {
4153
+ }, icon: copied ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(CheckIcon, { size: 20, color: "#0ecb81" }) : /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(CopyIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(CheckIcon, { size: 20, color: "var(--icon-color)" }), children: truncateAddress(address) }),
4154
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(UserDivider, {}),
4155
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(UserItem, { onClick: () => {
4147
4156
  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({
4157
+ }, icon: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(ProfileIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(ArrowRightIcon, { size: 20, color: "var(--icon-color)" }), children: username || intl.formatMessage({
4149
4158
  id: "setUsername"
4150
4159
  }) })
4151
4160
  ] }),
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: () => {
4161
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Button, { onClick: onLogout, loading: logouting, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_react_intl12.FormattedMessage, { id: "disconnect" }) }),
4162
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(UsernameModal, { isOpen: usernameOpen, onClose: () => {
4154
4163
  setUsernameOpen(false);
4155
4164
  }, onSuccess: () => {
4156
4165
  setUsernameOpen(false);
@@ -4161,12 +4170,12 @@ function UserPopover({
4161
4170
  children,
4162
4171
  ...props
4163
4172
  }) {
4164
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Popover, { ...props, content: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(UserContent, {}), children });
4173
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Popover, { ...props, content: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(UserContent, {}), children });
4165
4174
  }
4166
4175
 
4167
4176
  // src/components/LoginButton/index.tsx
4168
4177
  var import_react_intl13 = require("react-intl");
4169
- var import_jsx_runtime85 = require("react/jsx-runtime");
4178
+ var import_jsx_runtime88 = require("react/jsx-runtime");
4170
4179
  function LoginButton({
4171
4180
  loginRender,
4172
4181
  methods,
@@ -4182,8 +4191,8 @@ function LoginButton({
4182
4191
  const { isLogin, username } = useUserInfo();
4183
4192
  const [loginOpen, setLoginOpen] = (0, import_react28.useState)(false);
4184
4193
  if (!isLogin) {
4185
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_jsx_runtime85.Fragment, { children: [
4186
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
4194
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_jsx_runtime88.Fragment, { children: [
4195
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
4187
4196
  LoginModal,
4188
4197
  {
4189
4198
  methods,
@@ -4193,15 +4202,15 @@ function LoginButton({
4193
4202
  onClose: () => setLoginOpen(false)
4194
4203
  }
4195
4204
  ),
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" }) })
4205
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Button, { className: "matchid-unlogin-btn", ...props, highlight: true, onClick: () => setLoginOpen(true), children: [
4206
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(UnLoginIcon_default, {}),
4207
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_intl13.FormattedMessage, { id: "login" }) })
4199
4208
  ] })
4200
4209
  ] });
4201
4210
  }
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({
4211
+ return loginRender ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_jsx_runtime88.Fragment, { children: loginRender }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(UserPopover, { position: popoverPosition, type: popoverType, gap: popoverGap, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Button, { onClick: onLoginClick, className: "matchid-login-btn", ...props, children: [
4212
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(LoginIcon_default, {}),
4213
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { children: username ? truncateAddress(username) : "MatchID " + intl.formatMessage({
4205
4214
  id: "user"
4206
4215
  }) })
4207
4216
  ] }) });
@@ -4210,15 +4219,15 @@ function LoginButton({
4210
4219
  // src/components/UsernameModal/index.tsx
4211
4220
  var import_react29 = require("react");
4212
4221
  var import_react_intl14 = require("react-intl");
4213
- var import_jsx_runtime86 = require("react/jsx-runtime");
4222
+ var import_jsx_runtime89 = require("react/jsx-runtime");
4214
4223
  var ValidItem = ({
4215
4224
  success = false,
4216
4225
  text
4217
4226
  }) => {
4218
4227
  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 })
4228
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: `matchid-valid-status-item matchid-valid-status-${success ? "success" : "error"}`, children: [
4229
+ success ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(CheckRoundIcon, { size: isDownMd ? 12 : 16 }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(InfoLineIcon, { size: isDownMd ? 12 : 16 }),
4230
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("span", { children: text })
4222
4231
  ] });
4223
4232
  };
4224
4233
  function UsernameModal({
@@ -4266,12 +4275,12 @@ function UsernameModal({
4266
4275
  }
4267
4276
  };
4268
4277
  const intl = (0, import_react_intl14.useIntl)();
4269
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ModalWithHeader, { isOpen: isOpen && isLogin, ...props, title: title || intl.formatMessage({
4278
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(ModalWithHeader, { isOpen: isOpen && isLogin, ...props, title: title || intl.formatMessage({
4270
4279
  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({
4280
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "matchid-username-box", children: [
4281
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Field, { label: intl.formatMessage({
4273
4282
  id: "username"
4274
- }), error, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
4283
+ }), error, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4275
4284
  Input,
4276
4285
  {
4277
4286
  placeholder: intl.formatMessage({
@@ -4284,8 +4293,8 @@ function UsernameModal({
4284
4293
  value: val
4285
4294
  }
4286
4295
  ) }),
4287
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "matchid-valid", children: [
4288
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
4296
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "matchid-valid", children: [
4297
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4289
4298
  ValidItem,
4290
4299
  {
4291
4300
  success: isValid,
@@ -4294,16 +4303,16 @@ function UsernameModal({
4294
4303
  })
4295
4304
  }
4296
4305
  ),
4297
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ValidItem, { success: isLength, text: intl.formatMessage({
4306
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(ValidItem, { success: isLength, text: intl.formatMessage({
4298
4307
  id: "usernameLengthError"
4299
4308
  }) })
4300
4309
  ] }),
4301
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Button, { disabled: !isSafe, loading: isSubmitting, style: {
4310
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Button, { disabled: !isSafe, loading: isSubmitting, style: {
4302
4311
  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: {
4312
+ }, onClick: onSubmit, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_intl14.FormattedMessage, { id: "confirm" }) }),
4313
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Button, { style: {
4305
4314
  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" }) })
4315
+ }, onClick: props.onClose, size: "lg", block: true, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_intl14.FormattedMessage, { id: "cancel" }) })
4307
4316
  ] }) });
4308
4317
  }
4309
4318
 
@@ -4322,7 +4331,7 @@ var walletConnectImage = wallet_default;
4322
4331
  var walletSigningImage = signing_default;
4323
4332
 
4324
4333
  // src/components/WalletModalContent/index.tsx
4325
- var import_jsx_runtime87 = require("react/jsx-runtime");
4334
+ var import_jsx_runtime90 = require("react/jsx-runtime");
4326
4335
  function WalletModalContent({
4327
4336
  status,
4328
4337
  error,
@@ -4392,15 +4401,15 @@ function WalletModalContent({
4392
4401
  statusImage: walletConnectImage
4393
4402
  };
4394
4403
  }, [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: {
4404
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "matchid-wallet-container", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: `matchid-wallet-box`, children: [
4405
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: `matchid-wallet-content`, children: [
4406
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Lottie_default, { animationData: pageData.statusImage, style: {
4398
4407
  width: 128,
4399
4408
  height: 128
4400
4409
  } }),
4401
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: pageData.isError ? "matchid-error" : "", children: pageData.text })
4410
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: pageData.isError ? "matchid-error" : "", children: pageData.text })
4402
4411
  ] }),
4403
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4412
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
4404
4413
  Button,
4405
4414
  {
4406
4415
  block: true,
@@ -4476,15 +4485,15 @@ function WalletModalContentV2(props) {
4476
4485
  statusImage: walletConnectImage
4477
4486
  };
4478
4487
  }, [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: {
4488
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "matchid-wallet-container", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: `matchid-wallet-box`, children: [
4489
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: `matchid-wallet-content`, children: [
4490
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Lottie_default, { animationData: pageData.statusImage, style: {
4482
4491
  width: 128,
4483
4492
  height: 128
4484
4493
  } }),
4485
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: props.status == "error" ? "matchid-error" : "", children: pageData.text })
4494
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: props.status == "error" ? "matchid-error" : "", children: pageData.text })
4486
4495
  ] }),
4487
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4496
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
4488
4497
  Button,
4489
4498
  {
4490
4499
  block: true,
@@ -4766,7 +4775,7 @@ async function getEthersSigner(config, { chainId } = {}) {
4766
4775
  // src/components/EVMModal/index.tsx
4767
4776
  var import_siwe = require("siwe");
4768
4777
  var import_styles = require("@rainbow-me/rainbowkit/styles.css");
4769
- var import_jsx_runtime88 = require("react/jsx-runtime");
4778
+ var import_jsx_runtime91 = require("react/jsx-runtime");
4770
4779
  function WalletContent({
4771
4780
  onSuccess,
4772
4781
  type
@@ -4924,7 +4933,7 @@ function WalletContent({
4924
4933
  setNonce(void 0);
4925
4934
  setStatus("start");
4926
4935
  };
4927
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
4936
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4928
4937
  WalletModalContentV2,
4929
4938
  {
4930
4939
  status,
@@ -4942,14 +4951,14 @@ function EVMConnectModal({
4942
4951
  ...props
4943
4952
  }) {
4944
4953
  const intl = (0, import_react_intl15.useIntl)();
4945
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
4954
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
4946
4955
  id: type == "bind" ? "bindWith" : "loginWith"
4947
4956
  }, {
4948
4957
  name: "EVM"
4949
- }), children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(WalletContent, { onSuccess, type }) });
4958
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(WalletContent, { onSuccess, type }) });
4950
4959
  }
4951
4960
  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 }) });
4961
+ return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_rainbowkit2.RainbowKitProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(EVMConnectModal, { ...props }) });
4953
4962
  }
4954
4963
 
4955
4964
  // src/components/TRONModal/index.tsx
@@ -5064,7 +5073,7 @@ var useTRONWallet = () => {
5064
5073
  };
5065
5074
 
5066
5075
  // src/components/TRONModal/index.tsx
5067
- var import_jsx_runtime89 = require("react/jsx-runtime");
5076
+ var import_jsx_runtime92 = require("react/jsx-runtime");
5068
5077
  function TRONConnectModal({
5069
5078
  type = "login",
5070
5079
  onSuccess,
@@ -5074,9 +5083,9 @@ function TRONConnectModal({
5074
5083
  const intl = (0, import_react_intl16.useIntl)();
5075
5084
  const { wallets, installedWallets, chooseWallet, wallet, address, onConnect } = useTRONWallet();
5076
5085
  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 })
5086
+ tronlink: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(TronLinkIcon, { size: isDownMd ? 36 : 40 }),
5087
+ bitget: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(BitgetIcon, { size: isDownMd ? 36 : 40 }),
5088
+ okx: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(OKXIcon, { size: isDownMd ? 36 : 40 })
5080
5089
  };
5081
5090
  const { events, login } = useMatch();
5082
5091
  const [status, setStatus] = (0, import_react34.useState)("");
@@ -5168,11 +5177,11 @@ function TRONConnectModal({
5168
5177
  disconnect();
5169
5178
  }
5170
5179
  }, [props.isOpen]);
5171
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
5180
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
5172
5181
  id: type == "bind" ? "bindWith" : "loginWith"
5173
5182
  }, {
5174
5183
  name: "TRON"
5175
- }), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
5184
+ }), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
5176
5185
  WalletModalContent,
5177
5186
  {
5178
5187
  error,
@@ -5185,9 +5194,9 @@ function TRONConnectModal({
5185
5194
  setVisible: () => {
5186
5195
  }
5187
5196
  }
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: [
5197
+ ) : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "matchid-login-box", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "matchid-login-recommend-list", children: [
5189
5198
  installedWallets.map((wallet2) => {
5190
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
5199
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
5191
5200
  RecommendItem,
5192
5201
  {
5193
5202
  icon: iconMaps[wallet2.walletKey],
@@ -5200,14 +5209,14 @@ function TRONConnectModal({
5200
5209
  );
5201
5210
  }),
5202
5211
  wallets.filter((wallet2) => !installedWallets.find((installedWallet) => installedWallet.walletKey == wallet2.walletKey)).map((wallet2) => {
5203
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
5212
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
5204
5213
  RecommendItem,
5205
5214
  {
5206
5215
  icon: iconMaps[wallet2.walletKey],
5207
5216
  name: wallet2.name,
5208
5217
  onClick: () => {
5209
5218
  },
5210
- footer: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Button, { size: "sm", onClick: () => {
5219
+ footer: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Button, { size: "sm", onClick: () => {
5211
5220
  window.open(wallet2.website);
5212
5221
  }, children: "Install" })
5213
5222
  },
@@ -5217,14 +5226,14 @@ function TRONConnectModal({
5217
5226
  ] }) }) });
5218
5227
  }
5219
5228
  function TRONModal(props) {
5220
- return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(TRONConnectModal, { ...props, type: props.type });
5229
+ return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(TRONConnectModal, { ...props, type: props.type });
5221
5230
  }
5222
5231
 
5223
5232
  // src/components/TONModal/index.tsx
5224
5233
  var import_react35 = __toESM(require("react"));
5225
5234
  var import_react_intl17 = require("react-intl");
5226
5235
  var import_ui_react = require("@tonconnect/ui-react");
5227
- var import_jsx_runtime90 = require("react/jsx-runtime");
5236
+ var import_jsx_runtime93 = require("react/jsx-runtime");
5228
5237
  function WalletContent2({
5229
5238
  onSuccess,
5230
5239
  type
@@ -5351,7 +5360,7 @@ function WalletContent2({
5351
5360
  }
5352
5361
  }
5353
5362
  }, [state]);
5354
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
5363
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5355
5364
  WalletModalContent,
5356
5365
  {
5357
5366
  connected,
@@ -5385,20 +5394,20 @@ function TONConnectModal({
5385
5394
  const intl = (0, import_react_intl17.useIntl)();
5386
5395
  const { endpoints, appid } = useLocalStore_default();
5387
5396
  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({
5397
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
5389
5398
  id: type == "bind" ? "bindWith" : "loginWith"
5390
5399
  }, {
5391
5400
  name: "TON"
5392
- }), children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
5401
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5393
5402
  import_ui_react.TonConnectUIProvider,
5394
5403
  {
5395
5404
  manifestUrl,
5396
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(WalletContent2, { onSuccess, type })
5405
+ children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(WalletContent2, { onSuccess, type })
5397
5406
  }
5398
5407
  ) });
5399
5408
  }
5400
5409
  function TONModal(props) {
5401
- return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(TONConnectModal, { ...props });
5410
+ return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(TONConnectModal, { ...props });
5402
5411
  }
5403
5412
 
5404
5413
  // src/components/BTCModal/index.tsx
@@ -5621,7 +5630,7 @@ var useBTCWallet = () => {
5621
5630
  };
5622
5631
 
5623
5632
  // src/components/BTCModal/index.tsx
5624
- var import_jsx_runtime91 = require("react/jsx-runtime");
5633
+ var import_jsx_runtime94 = require("react/jsx-runtime");
5625
5634
  function BTCConnectModal({
5626
5635
  type = "login",
5627
5636
  onSuccess,
@@ -5631,10 +5640,10 @@ function BTCConnectModal({
5631
5640
  const intl = (0, import_react_intl18.useIntl)();
5632
5641
  const { wallets, installedWallets, chooseWallet, wallet, address, onConnect } = useBTCWallet();
5633
5642
  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 })
5643
+ leather: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(LeatherIcon, { size: isDownMd ? 36 : 40 }),
5644
+ unisat: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(UnisatIcon, { size: isDownMd ? 36 : 40 }),
5645
+ xverse: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(XverseIcon, { size: isDownMd ? 36 : 40 }),
5646
+ phantom: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(PhantomIcon, { size: isDownMd ? 36 : 40 })
5638
5647
  };
5639
5648
  const { events, login } = useMatch();
5640
5649
  const [status, setStatus] = (0, import_react37.useState)("");
@@ -5734,11 +5743,11 @@ function BTCConnectModal({
5734
5743
  statusRef.current = "";
5735
5744
  setError("");
5736
5745
  };
5737
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
5746
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
5738
5747
  id: type == "bind" ? "bindWith" : "loginWith"
5739
5748
  }, {
5740
5749
  name: "BTC"
5741
- }), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
5750
+ }), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5742
5751
  WalletModalContent,
5743
5752
  {
5744
5753
  error,
@@ -5751,9 +5760,9 @@ function BTCConnectModal({
5751
5760
  setVisible: () => {
5752
5761
  }
5753
5762
  }
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: [
5763
+ ) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "matchid-login-box", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "matchid-login-recommend-list", children: [
5755
5764
  installedWallets.map((wallet2) => {
5756
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
5765
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5757
5766
  RecommendItem,
5758
5767
  {
5759
5768
  icon: iconMaps[wallet2.walletKey],
@@ -5766,14 +5775,14 @@ function BTCConnectModal({
5766
5775
  );
5767
5776
  }),
5768
5777
  wallets.filter((wallet2) => !installedWallets.find((installedWallet) => installedWallet.walletKey == wallet2.walletKey)).map((wallet2) => {
5769
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
5778
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5770
5779
  RecommendItem,
5771
5780
  {
5772
5781
  icon: iconMaps[wallet2.walletKey],
5773
5782
  name: wallet2.name,
5774
5783
  onClick: () => {
5775
5784
  },
5776
- footer: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Button, { size: "sm", onClick: () => {
5785
+ footer: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Button, { size: "sm", onClick: () => {
5777
5786
  window.open(wallet2.website);
5778
5787
  }, children: "Install" })
5779
5788
  },
@@ -5783,13 +5792,13 @@ function BTCConnectModal({
5783
5792
  ] }) }) });
5784
5793
  }
5785
5794
  function BTCModal(props) {
5786
- return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(BTCConnectModal, { ...props });
5795
+ return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(BTCConnectModal, { ...props });
5787
5796
  }
5788
5797
 
5789
5798
  // src/components/WalletModal/index.tsx
5790
5799
  var import_react38 = require("react");
5791
5800
  var import_react_intl19 = require("react-intl");
5792
- var import_jsx_runtime92 = require("react/jsx-runtime");
5801
+ var import_jsx_runtime95 = require("react/jsx-runtime");
5793
5802
  function WalletConnectModal({
5794
5803
  type,
5795
5804
  methods: _methods,
@@ -5807,13 +5816,13 @@ function WalletConnectModal({
5807
5816
  const platform = config.platform.map((p) => p.toLowerCase());
5808
5817
  return WALLET_METHODS.filter((m) => platform.includes(m));
5809
5818
  }, [config.platform, _methods]);
5810
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
5819
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
5811
5820
  id: type == "bind" ? "bindWith" : "loginWith"
5812
5821
  }, {
5813
5822
  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) => {
5823
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "matchid-login-box", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "matchid-login-recommend-list", children: methods.map((method, index) => {
5815
5824
  const m = walletMap[method];
5816
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
5825
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5817
5826
  RecommendItem,
5818
5827
  {
5819
5828
  icon: m?.icon,
@@ -5827,12 +5836,12 @@ function WalletConnectModal({
5827
5836
  }) }) }) });
5828
5837
  }
5829
5838
  function WalletModal(props) {
5830
- return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(WalletConnectModal, { ...props });
5839
+ return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(WalletConnectModal, { ...props });
5831
5840
  }
5832
5841
 
5833
5842
  // src/components/AlphaAvatar/index.tsx
5834
5843
  var import_react39 = require("react");
5835
- var import_jsx_runtime93 = require("react/jsx-runtime");
5844
+ var import_jsx_runtime96 = require("react/jsx-runtime");
5836
5845
  function AlphaAvatar2({ name, size = 40, className = "" }) {
5837
5846
  const [avatar, setAvatar] = (0, import_react39.useState)(void 0);
5838
5847
  (0, import_react39.useEffect)(() => {
@@ -5841,7 +5850,7 @@ function AlphaAvatar2({ name, size = 40, className = "" }) {
5841
5850
  setAvatar(char);
5842
5851
  }
5843
5852
  }, [name]);
5844
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
5853
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
5845
5854
  width: size,
5846
5855
  height: size,
5847
5856
  fontSize: Math.ceil(size / 2)
@@ -5849,7 +5858,7 @@ function AlphaAvatar2({ name, size = 40, className = "" }) {
5849
5858
  }
5850
5859
 
5851
5860
  // src/components/WalletAsset/index.tsx
5852
- var import_jsx_runtime94 = require("react/jsx-runtime");
5861
+ var import_jsx_runtime97 = require("react/jsx-runtime");
5853
5862
  function WalletAsset({
5854
5863
  onAssetClick,
5855
5864
  matchWalletAssetsOptions
@@ -5859,7 +5868,7 @@ function WalletAsset({
5859
5868
  list: walletAssets.mergedAssets
5860
5869
  });
5861
5870
  const { list } = useMatchChain();
5862
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "matchid-wallet-asset-list", children: matchWalletAssetList.list.map((n, index) => {
5871
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "matchid-wallet-asset-list", children: matchWalletAssetList.list.map((n, index) => {
5863
5872
  const clickFunc = onAssetClick && onAssetClick(n);
5864
5873
  const chain = list?.find((m) => m.id.toString() === n.chain_id);
5865
5874
  const getFooterColor = () => {
@@ -5874,11 +5883,11 @@ function WalletAsset({
5874
5883
  }
5875
5884
  return "";
5876
5885
  };
5877
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: `matchid-wallet-asset-item`, onClick: clickFunc, style: {
5886
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: `matchid-wallet-asset-item`, onClick: clickFunc, style: {
5878
5887
  cursor: clickFunc ? "pointer" : "default"
5879
5888
  }, 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)(
5889
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "matchid-wallet-asset-logo", title: n.symbol || n.name || "", children: [
5890
+ n.icon ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("img", { src: n.icon, alt: n.symbol, className: `matchid-wallet-asset-icon` }) : /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
5882
5891
  AlphaAvatar2,
5883
5892
  {
5884
5893
  className: `matchid-wallet-asset-icon`,
@@ -5886,12 +5895,12 @@ function WalletAsset({
5886
5895
  name: n.symbol || n.name || ""
5887
5896
  }
5888
5897
  ),
5889
- chain?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-wallet-asset-chain` })
5898
+ chain?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-wallet-asset-chain` })
5890
5899
  ] }),
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)(
5900
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: `matchid-wallet-asset-info`, children: [
5901
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: `matchid-wallet-asset-name`, children: n.symbol }),
5902
+ "price" in n && /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: `matchid-wallet-asset-content`, children: [
5903
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "matchid-wallet-asset-price", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
5895
5904
  NumberFormatter,
5896
5905
  {
5897
5906
  value: n.price,
@@ -5899,7 +5908,7 @@ function WalletAsset({
5899
5908
  tFixNum: 2
5900
5909
  }
5901
5910
  ) }),
5902
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "matchid-wallet-asset-value", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5911
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "matchid-wallet-asset-value", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
5903
5912
  NumberFormatter,
5904
5913
  {
5905
5914
  value: n.value,
@@ -5908,15 +5917,15 @@ function WalletAsset({
5908
5917
  }
5909
5918
  ) })
5910
5919
  ] }),
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)(
5920
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: `matchid-wallet-asset-footer`, children: [
5921
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: `matchid-wallet-asset-balance`, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
5913
5922
  NumberFormatter,
5914
5923
  {
5915
5924
  value: n.balance,
5916
5925
  tFixNum: 3
5917
5926
  }
5918
5927
  ) }),
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)(
5928
+ "price_change_24h" in n && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: `matchid-wallet-asset-change ${getFooterColor()}`, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
5920
5929
  NumberFormatter,
5921
5930
  {
5922
5931
  prefix: `${(n?.price_change_24h || 0) < 0 ? "-" : "+"} `,
@@ -5935,7 +5944,7 @@ function WalletAsset({
5935
5944
  var import_react40 = require("react");
5936
5945
  var import_viem15 = require("viem");
5937
5946
  var import_react_intl20 = require("react-intl");
5938
- var import_jsx_runtime95 = require("react/jsx-runtime");
5947
+ var import_jsx_runtime98 = require("react/jsx-runtime");
5939
5948
  function Input2({
5940
5949
  onChange,
5941
5950
  placeholder,
@@ -5945,8 +5954,8 @@ function Input2({
5945
5954
  error,
5946
5955
  size = "df"
5947
5956
  }) {
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)(
5957
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: `matchid-token-input-box ${"matchid-token-input-" + size}`, children: [
5958
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
5950
5959
  "input",
5951
5960
  {
5952
5961
  placeholder,
@@ -5957,7 +5966,7 @@ function Input2({
5957
5966
  className: `matchid-token-input ${error ? "matchid-token-input-error" : ""}`
5958
5967
  }
5959
5968
  ),
5960
- error && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "matchid-token-input-error-text", children: error })
5969
+ error && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "matchid-token-input-error-text", children: error })
5961
5970
  ] });
5962
5971
  }
5963
5972
  function TokenSend({
@@ -6085,24 +6094,24 @@ function TokenSend({
6085
6094
  window.removeEventListener("message", receiveMessage);
6086
6095
  };
6087
6096
  }, []);
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)(
6097
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(ModalDrawer, { isOpen: true, onClose, zIndex, title: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_react_intl20.FormattedMessage, { id: "send" }), onBack, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: `matchid-token-send-box`, children: [
6098
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "matchid-token-send-content", children: [
6099
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: `matchid-token-amount-content`, children: [
6100
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: `matchid-token-amount-header`, children: [
6101
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: `matchid-token-amount-title`, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_react_intl20.FormattedMessage, { id: "amount" }) }),
6102
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: `matchid-token-amount-chain`, children: [
6103
+ token.icon ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
6095
6104
  "img",
6096
6105
  {
6097
6106
  src: token?.icon,
6098
6107
  alt: token?.symbol,
6099
6108
  className: `matchid-token-amount-chain-icon`
6100
6109
  }
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 })
6110
+ ) : /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(AlphaAvatar, { name: token.symbol || token.name || "", size: 16 }),
6111
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("span", { children: token?.symbol })
6103
6112
  ] })
6104
6113
  ] }),
6105
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
6114
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
6106
6115
  Input2,
6107
6116
  {
6108
6117
  type: "text",
@@ -6115,18 +6124,18 @@ function TokenSend({
6115
6124
  error: error.amount || txError
6116
6125
  }
6117
6126
  ),
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" }),
6127
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: `matchid-token-amount-footer`, children: [
6128
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: `matchid-token-amount-title`, children: [
6129
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_react_intl20.FormattedMessage, { id: "balance" }),
6121
6130
  ":"
6122
6131
  ] }),
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 }) })
6132
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: `matchid-token-amount-value`, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(NumberFormatter, { value: token.balance, tFixNum: 10, suffix: " " + token.symbol }) })
6124
6133
  ] }),
6125
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(TransferIcon, { className: "matchid-token-amount-transfer" })
6134
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(TransferIcon, { className: "matchid-token-amount-transfer" })
6126
6135
  ] }),
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)(
6136
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: `matchid-token-address-content`, children: [
6137
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: `matchid-token-address-header`, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: `matchid-token-address-title`, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_react_intl20.FormattedMessage, { id: "receiveTitle" }) }) }),
6138
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
6130
6139
  Input2,
6131
6140
  {
6132
6141
  type: "text",
@@ -6142,7 +6151,7 @@ function TokenSend({
6142
6151
  )
6143
6152
  ] })
6144
6153
  ] }),
6145
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
6154
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
6146
6155
  Button,
6147
6156
  {
6148
6157
  size: "lg",
@@ -6151,7 +6160,7 @@ function TokenSend({
6151
6160
  disabled: !canSend || !!txError,
6152
6161
  onClick: onNext,
6153
6162
  loading: loading || sending,
6154
- children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_intl20.FormattedMessage, { id: "next" })
6163
+ children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_react_intl20.FormattedMessage, { id: "next" })
6155
6164
  }
6156
6165
  )
6157
6166
  ] }) });
@@ -6159,7 +6168,7 @@ function TokenSend({
6159
6168
 
6160
6169
  // src/components/TokenDetail/index.tsx
6161
6170
  var import_react_intl21 = require("react-intl");
6162
- var import_jsx_runtime96 = require("react/jsx-runtime");
6171
+ var import_jsx_runtime99 = require("react/jsx-runtime");
6163
6172
  function TokenDetail({
6164
6173
  onClose,
6165
6174
  token
@@ -6169,41 +6178,41 @@ function TokenDetail({
6169
6178
  const chain = chainList?.find((m) => m.id.toString() === token.chain_id);
6170
6179
  const onSend = () => {
6171
6180
  modal.show((props) => {
6172
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(TokenSend, { onClose: () => {
6181
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(TokenSend, { onClose: () => {
6173
6182
  props.close();
6174
6183
  onClose();
6175
6184
  }, onBack: props.close, zIndex: props.zIndex, token });
6176
6185
  });
6177
6186
  };
6178
6187
  const intl = (0, import_react_intl21.useIntl)();
6179
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(ModalDrawer, { isOpen: true, title: intl.formatMessage({
6188
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(ModalDrawer, { isOpen: true, title: intl.formatMessage({
6180
6189
  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` })
6190
+ }), onClose, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: `matchid-token-detail`, children: [
6191
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: `matchid-token-main`, children: [
6192
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: `matchid-token-info`, children: [
6193
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: `matchid-token-logo`, children: [
6194
+ token.icon ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("img", { src: token.icon, alt: token.symbol, className: `matchid-token-icon` }) : /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(AlphaAvatar, { className: `matchid-token-icon`, size: 48, name: token.symbol || token.name || "" }),
6195
+ chain?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-token-chain` })
6187
6196
  ] }),
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 }),
6197
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: `matchid-token-name`, children: [
6198
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(NumberFormatter, { value: token.balance, tFixNum: 10 }),
6190
6199
  " ",
6191
6200
  token.symbol
6192
6201
  ] })
6193
6202
  ] }),
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 })
6203
+ token.address.toLowerCase() != NATIVE_TOKEN_ADDRESS && /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: `matchid-token-contract`, children: [
6204
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "matchid-token-contract-title", children: "Contract address" }),
6205
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "matchid-token-contract-address", children: token.address })
6197
6206
  ] })
6198
6207
  ] }),
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" }) })
6208
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Button, { size: "lg", block: true, highlight: true, onClick: onSend, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_intl21.FormattedMessage, { id: "send" }) })
6200
6209
  ] }) });
6201
6210
  }
6202
6211
 
6203
6212
  // src/components/TokenSendList/index.tsx
6204
6213
  var import_react41 = require("react");
6205
6214
  var import_react_intl22 = require("react-intl");
6206
- var import_jsx_runtime97 = require("react/jsx-runtime");
6215
+ var import_jsx_runtime100 = require("react/jsx-runtime");
6207
6216
  function TokenSendList({ close }) {
6208
6217
  const isDownMd = useDownMd();
6209
6218
  const walletAssets = useMatchWalletAssets();
@@ -6215,16 +6224,16 @@ function TokenSendList({ close }) {
6215
6224
  const modal = useModal();
6216
6225
  const onNext = () => {
6217
6226
  checked && modal.show((props) => {
6218
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(TokenSend, { onClose: () => {
6227
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(TokenSend, { onClose: () => {
6219
6228
  props.close();
6220
6229
  close();
6221
6230
  }, onBack: props.close, zIndex: props.zIndex, token: checked });
6222
6231
  });
6223
6232
  };
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) => {
6233
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: "matchid-token-send-list-box", children: [
6234
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: "matchid-token-send-list", children: matchWalletAssetList.list.map((n, index) => {
6226
6235
  const chain = list?.find((m) => m.id.toString() === n.chain_id);
6227
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
6236
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(
6228
6237
  "div",
6229
6238
  {
6230
6239
  className: `matchid-token-send-item ${checked?.address == n.address ? "matchid-token-send-chekced" : ""}`,
@@ -6232,10 +6241,10 @@ function TokenSendList({ close }) {
6232
6241
  setChecked(n);
6233
6242
  },
6234
6243
  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)(
6244
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Radio, { checked: checked?.address == n.address, size: isDownMd ? 18 : 24 }),
6245
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: "matchid-token-send-content", children: [
6246
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: "matchid-token-send-logo", children: [
6247
+ n.icon ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("img", { src: n.icon, alt: n.symbol, className: `matchid-token-send-icon` }) : /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
6239
6248
  AlphaAvatar2,
6240
6249
  {
6241
6250
  className: `matchid-token-send-icon`,
@@ -6243,7 +6252,7 @@ function TokenSendList({ close }) {
6243
6252
  name: n.symbol || n.name || ""
6244
6253
  }
6245
6254
  ),
6246
- chain?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
6255
+ chain?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
6247
6256
  "img",
6248
6257
  {
6249
6258
  src: chain.iconUrl,
@@ -6252,9 +6261,9 @@ function TokenSendList({ close }) {
6252
6261
  }
6253
6262
  )
6254
6263
  ] }),
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 }) })
6264
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: `matchid-token-send-info`, children: [
6265
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: `matchid-token-send-name`, children: n.symbol }),
6266
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: `matchid-token-send-balance`, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(NumberFormatter, { value: n.balance, tFixNum: 3 }) })
6258
6267
  ] })
6259
6268
  ] })
6260
6269
  ]
@@ -6262,7 +6271,7 @@ function TokenSendList({ close }) {
6262
6271
  index
6263
6272
  );
6264
6273
  }) }),
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" }) })
6274
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Button, { size: "lg", highlight: true, block: true, disabled: !checked, onClick: onNext, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_react_intl22.FormattedMessage, { id: "next" }) })
6266
6275
  ] });
6267
6276
  }
6268
6277
 
@@ -6272,7 +6281,7 @@ var import_react42 = require("react");
6272
6281
  var import_viem16 = require("viem");
6273
6282
  var import_viem17 = require("viem");
6274
6283
  var import_react_intl23 = require("react-intl");
6275
- var import_jsx_runtime98 = require("react/jsx-runtime");
6284
+ var import_jsx_runtime101 = require("react/jsx-runtime");
6276
6285
  var Item = ({ data }) => {
6277
6286
  const { address } = useWallet();
6278
6287
  const isOut = data.from.toLowerCase() == address.toLowerCase();
@@ -6359,18 +6368,18 @@ var Item = ({ data }) => {
6359
6368
  }
6360
6369
  return chain?.nativeCurrency.symbol || chain?.nativeCurrency.name;
6361
6370
  }, [transferType, chain, contracts, chainId, data.to]);
6362
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
6371
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(
6363
6372
  "a",
6364
6373
  {
6365
6374
  href: explorerLink(`tx/${data.hash}`),
6366
6375
  target: "_blank",
6367
6376
  className: `matchid-transaction-item`,
6368
6377
  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)(
6378
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: `matchid-transacton-item-container`, children: [
6379
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: "matchid-transaction-item-icon", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(ArrowSendIcon, { className: !isOut ? "rotate-180" : "" }) }),
6380
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: `matchid-transaction-item-details`, children: [
6381
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: `matchid-transaction-item-address`, children: formatAddress(to, 6, 4) }),
6382
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
6374
6383
  "div",
6375
6384
  {
6376
6385
  className: `matchid-transaction-item-timestamp`,
@@ -6379,11 +6388,11 @@ var Item = ({ data }) => {
6379
6388
  )
6380
6389
  ] })
6381
6390
  ] }),
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 })
6391
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: `matchid-transaction-item-amount ${"matchid-transaction-item-" + status}`, children: [
6392
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(NumberFormatter, { value: amount, tFixNum: 6, prefix: isOut ? "-" : "+", suffix: " " + symbol }),
6393
+ status == "loading" && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(LoadingIcon_default, { color: "#000000", size: 16, rotate: true }),
6394
+ status == "success" && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(CheckRoundIcon, { size: 16 }),
6395
+ status == "error" && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(InfoRoundIcon, { size: 16 })
6387
6396
  ] })
6388
6397
  ]
6389
6398
  }
@@ -6393,19 +6402,19 @@ function TransactionList({
6393
6402
  scrollableTarget
6394
6403
  }) {
6395
6404
  const { fetchMoreData, hasMore, items } = useMatchWalletRecords();
6396
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
6405
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
6397
6406
  import_react_infinite_scroll_component.default,
6398
6407
  {
6399
6408
  scrollableTarget,
6400
6409
  dataLength: items.length,
6401
6410
  next: fetchMoreData,
6402
6411
  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" }),
6412
+ loader: /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "matchid-list-nomore", children: [
6413
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(LoadingIcon_default, { rotate: true, size: 16, color: "black" }),
6405
6414
  "Loading..."
6406
6415
  ] }),
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)) })
6416
+ endMessage: items.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: `matchid-list-nomore`, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_react_intl23.FormattedMessage, { id: "noMoreRecords" }) }) : /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: `matchid-list-nomore`, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_react_intl23.FormattedMessage, { id: "noRecords" }) }),
6417
+ children: items.length == 0 && !hasMore ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: "mt-[150px]" }) : /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: `matchid-transaction-list`, children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Item, { data: item }, index)) })
6409
6418
  }
6410
6419
  );
6411
6420
  }