@matchain/matchid-sdk-react 0.1.18 → 0.1.19

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.
package/dist/index.mjs CHANGED
@@ -478,23 +478,41 @@ function CopyIcon({ size = 20, color = "black", ...props }) {
478
478
  ) });
479
479
  }
480
480
 
481
+ // src/assets/icon/LinkedinIcon.tsx
482
+ import { jsx as jsx25, jsxs as jsxs15 } from "react/jsx-runtime";
483
+ function LinkedinIcon({
484
+ size = 40,
485
+ ...props
486
+ }) {
487
+ return /* @__PURE__ */ jsxs15("svg", { width: size, height: size, ...props, viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
488
+ /* @__PURE__ */ jsx25("rect", { width: "40", height: "40", rx: "8", fill: "#0A66C2" }),
489
+ /* @__PURE__ */ jsx25(
490
+ "path",
491
+ {
492
+ d: "M29.376 9H10.624C10.1933 9 9.78023 9.1711 9.47567 9.47567C9.1711 9.78023 9 10.1933 9 10.624V29.376C9 29.8067 9.1711 30.2198 9.47567 30.5243C9.78023 30.8289 10.1933 31 10.624 31H29.376C29.8067 31 30.2198 30.8289 30.5243 30.5243C30.8289 30.2198 31 29.8067 31 29.376V10.624C31 10.1933 30.8289 9.78023 30.5243 9.47567C30.2198 9.1711 29.8067 9 29.376 9ZM15.5572 27.7413H12.2496V17.2347H15.5572V27.7413ZM13.9011 15.7788C13.5259 15.7766 13.1598 15.6634 12.8488 15.4534C12.5379 15.2434 12.2962 14.946 12.1541 14.5987C12.0121 14.2514 11.9761 13.8699 12.0507 13.5022C12.1253 13.1345 12.3072 12.7971 12.5733 12.5326C12.8395 12.2682 13.178 12.0885 13.5462 12.0163C13.9144 11.944 14.2957 11.9825 14.642 12.1267C14.9884 12.271 15.2842 12.5147 15.4923 12.8269C15.7003 13.1392 15.8111 13.5061 15.8108 13.8813C15.8144 14.1324 15.7673 14.3818 15.6724 14.6144C15.5776 14.847 15.4368 15.0582 15.2586 15.2352C15.0804 15.4123 14.8684 15.5517 14.6351 15.6451C14.4019 15.7384 14.1523 15.7839 13.9011 15.7788ZM27.7489 27.7504H24.4428V22.0106C24.4428 20.3178 23.7232 19.7953 22.7943 19.7953C21.8135 19.7953 20.851 20.5347 20.851 22.0533V27.7504H17.5433V17.2424H20.7242V18.6983H20.7669C21.0863 18.0521 22.2046 16.9475 23.9111 16.9475C25.7567 16.9475 27.7504 18.0429 27.7504 21.2513L27.7489 27.7504Z",
493
+ fill: "white"
494
+ }
495
+ )
496
+ ] });
497
+ }
498
+
481
499
  // src/components/Modal/index.tsx
482
- import { Fragment, jsx as jsx25, jsxs as jsxs15 } from "react/jsx-runtime";
500
+ import { Fragment, jsx as jsx26, jsxs as jsxs16 } from "react/jsx-runtime";
483
501
  function Modal({
484
502
  children,
485
503
  isOpen,
486
504
  width = 480,
487
505
  className = ""
488
506
  }) {
489
- return isOpen ? /* @__PURE__ */ jsx25(
507
+ return isOpen ? /* @__PURE__ */ jsx26(
490
508
  "div",
491
509
  {
492
510
  className: "matchid-overlay",
493
- children: /* @__PURE__ */ jsx25("div", { className: `matchid-modal ${className}`, style: {
511
+ children: /* @__PURE__ */ jsx26("div", { className: `matchid-modal ${className}`, style: {
494
512
  width
495
513
  }, children })
496
514
  }
497
- ) : /* @__PURE__ */ jsx25(Fragment, {});
515
+ ) : /* @__PURE__ */ jsx26(Fragment, {});
498
516
  }
499
517
  function ModalWithHeader({
500
518
  children,
@@ -505,13 +523,13 @@ function ModalWithHeader({
505
523
  showClose = true,
506
524
  ...props
507
525
  }) {
508
- return /* @__PURE__ */ jsxs15(Modal, { ...props, children: [
509
- /* @__PURE__ */ jsxs15("div", { className: `matchid-modal-header ${showBorder ? "matchid-modal-header-border" : ""}`, children: [
510
- /* @__PURE__ */ jsxs15("div", { className: "matchid-modal-header-content", children: [
511
- onBack && /* @__PURE__ */ jsx25(ArrowLeftIcon, { className: "matchid-modal-header-back", onClick: onBack }),
512
- /* @__PURE__ */ jsx25("span", { className: "matchid-modal-header-title", children: title })
526
+ return /* @__PURE__ */ jsxs16(Modal, { ...props, children: [
527
+ /* @__PURE__ */ jsxs16("div", { className: `matchid-modal-header ${showBorder ? "matchid-modal-header-border" : ""}`, children: [
528
+ /* @__PURE__ */ jsxs16("div", { className: "matchid-modal-header-content", children: [
529
+ onBack && /* @__PURE__ */ jsx26(ArrowLeftIcon, { className: "matchid-modal-header-back", onClick: onBack }),
530
+ /* @__PURE__ */ jsx26("span", { className: "matchid-modal-header-title", children: title })
513
531
  ] }),
514
- onClose && /* @__PURE__ */ jsx25(CloseRoundIcon, { className: "matchid-modal-header-close", onClick: onClose })
532
+ onClose && /* @__PURE__ */ jsx26(CloseRoundIcon, { className: "matchid-modal-header-close", onClick: onClose })
515
533
  ] }),
516
534
  children
517
535
  ] });
@@ -522,7 +540,7 @@ import { useEffect as useEffect3, useMemo as useMemo2, useState as useState3 } f
522
540
 
523
541
  // src/components/Input/index.tsx
524
542
  import { useState } from "react";
525
- import { jsx as jsx26, jsxs as jsxs16 } from "react/jsx-runtime";
543
+ import { jsx as jsx27, jsxs as jsxs17 } from "react/jsx-runtime";
526
544
  function Input({
527
545
  onChange,
528
546
  type,
@@ -531,22 +549,22 @@ function Input({
531
549
  ...props
532
550
  }) {
533
551
  const [inputType, setInputType] = useState(type);
534
- return /* @__PURE__ */ jsxs16("div", { className: `matchid-input-box ${props.value.length > 0 ? "matchid-input-has-content" : ""} ${className}`, children: [
535
- /* @__PURE__ */ jsx26("input", { type: inputType, onChange, ...props, className: "matchid-input-field" }),
536
- props.value.length > 0 && /* @__PURE__ */ jsx26(DeleteRoundIcon, { onClick: (e) => {
552
+ return /* @__PURE__ */ jsxs17("div", { className: `matchid-input-box ${props.value.length > 0 ? "matchid-input-has-content" : ""} ${className}`, children: [
553
+ /* @__PURE__ */ jsx27("input", { type: inputType, onChange, ...props, className: "matchid-input-field" }),
554
+ props.value.length > 0 && /* @__PURE__ */ jsx27(DeleteRoundIcon, { onClick: (e) => {
537
555
  if (onChange) {
538
556
  onChange({ target: { value: "" } });
539
557
  }
540
558
  }, className: "matchid-input-delete-icon", color: "var(--matchid-input-delete-icon-color)" }),
541
- type === "password" && /* @__PURE__ */ jsx26("div", { className: "matchid-input-eye-icon", onClick: () => {
559
+ type === "password" && /* @__PURE__ */ jsx27("div", { className: "matchid-input-eye-icon", onClick: () => {
542
560
  setInputType(inputType === "password" ? "text" : "password");
543
- }, children: inputType === "password" ? /* @__PURE__ */ jsx26(CloseEyeIcon, {}) : /* @__PURE__ */ jsx26(OpenEyeIcon, {}) }),
561
+ }, children: inputType === "password" ? /* @__PURE__ */ jsx27(CloseEyeIcon, {}) : /* @__PURE__ */ jsx27(OpenEyeIcon, {}) }),
544
562
  after
545
563
  ] });
546
564
  }
547
565
 
548
566
  // src/components/Field/index.tsx
549
- import { jsx as jsx27, jsxs as jsxs17 } from "react/jsx-runtime";
567
+ import { jsx as jsx28, jsxs as jsxs18 } from "react/jsx-runtime";
550
568
  function Field({
551
569
  label,
552
570
  children,
@@ -554,18 +572,18 @@ function Field({
554
572
  required,
555
573
  className = ""
556
574
  }) {
557
- return /* @__PURE__ */ jsxs17("div", { className: `matchid-field-box ${className}`, children: [
558
- /* @__PURE__ */ jsxs17("div", { className: "matchid-field-label", children: [
559
- required && /* @__PURE__ */ jsx27("span", { className: "matchid-field-required", children: "*" }),
575
+ return /* @__PURE__ */ jsxs18("div", { className: `matchid-field-box ${className}`, children: [
576
+ /* @__PURE__ */ jsxs18("div", { className: "matchid-field-label", children: [
577
+ required && /* @__PURE__ */ jsx28("span", { className: "matchid-field-required", children: "*" }),
560
578
  label
561
579
  ] }),
562
580
  children,
563
- error && /* @__PURE__ */ jsx27("div", { className: "matchid-field-error", children: error })
581
+ error && /* @__PURE__ */ jsx28("div", { className: "matchid-field-error", children: error })
564
582
  ] });
565
583
  }
566
584
 
567
585
  // src/components/Button/index.tsx
568
- import { jsx as jsx28 } from "react/jsx-runtime";
586
+ import { jsx as jsx29 } from "react/jsx-runtime";
569
587
  function Button({
570
588
  size = "df",
571
589
  disabled = false,
@@ -584,7 +602,7 @@ function Button({
584
602
  onClick && onClick();
585
603
  }
586
604
  };
587
- return /* @__PURE__ */ jsx28(
605
+ return /* @__PURE__ */ jsx29(
588
606
  "button",
589
607
  {
590
608
  type,
@@ -594,7 +612,7 @@ function Button({
594
612
  ...style
595
613
  },
596
614
  onClick: onAction,
597
- children: loading ? /* @__PURE__ */ jsx28(LoadingIcon_default, { className: "matchid-btn-loading-icon", color: "var(--matchid-btn-loading-color)" }) : children
615
+ children: loading ? /* @__PURE__ */ jsx29(LoadingIcon_default, { className: "matchid-btn-loading-icon", color: "var(--matchid-btn-loading-color)" }) : children
598
616
  }
599
617
  );
600
618
  }
@@ -1304,7 +1322,7 @@ function useCopyClipboard(timeout = 500) {
1304
1322
  }
1305
1323
 
1306
1324
  // src/components/PasswordModal/index.tsx
1307
- import { jsx as jsx29, jsxs as jsxs18 } from "react/jsx-runtime";
1325
+ import { jsx as jsx30, jsxs as jsxs19 } from "react/jsx-runtime";
1308
1326
  function PasswordModal({
1309
1327
  title,
1310
1328
  isOpen,
@@ -1350,13 +1368,13 @@ function PasswordModal({
1350
1368
  setIsSubmitting(false);
1351
1369
  }
1352
1370
  };
1353
- return /* @__PURE__ */ jsx29(ModalWithHeader, { isOpen: isOpen && isLogin, ...props, title: title || "Set Password", children: /* @__PURE__ */ jsxs18("div", { className: "matchid-password-box", children: [
1354
- /* @__PURE__ */ jsxs18("div", { className: "matchid-password-header", children: [
1355
- /* @__PURE__ */ jsx29("div", { className: "matchid-password-header-icon", children: /* @__PURE__ */ jsx29(PasswordRoundIcon, {}) }),
1356
- /* @__PURE__ */ jsx29("div", { className: "matchid-password-header-content", children: "Please set the wallet password that will be used to recover the wallet" })
1371
+ return /* @__PURE__ */ jsx30(ModalWithHeader, { isOpen: isOpen && isLogin, ...props, title: title || "Set Password", children: /* @__PURE__ */ jsxs19("div", { className: "matchid-password-box", children: [
1372
+ /* @__PURE__ */ jsxs19("div", { className: "matchid-password-header", children: [
1373
+ /* @__PURE__ */ jsx30("div", { className: "matchid-password-header-icon", children: /* @__PURE__ */ jsx30(PasswordRoundIcon, {}) }),
1374
+ /* @__PURE__ */ jsx30("div", { className: "matchid-password-header-content", children: "Please set the wallet password that will be used to recover the wallet" })
1357
1375
  ] }),
1358
- /* @__PURE__ */ jsxs18("div", { className: "matchid-password-content", children: [
1359
- /* @__PURE__ */ jsx29(Field, { label: "Password", error: password.length > 0 && passwordError, children: /* @__PURE__ */ jsx29(
1376
+ /* @__PURE__ */ jsxs19("div", { className: "matchid-password-content", children: [
1377
+ /* @__PURE__ */ jsx30(Field, { label: "Password", error: password.length > 0 && passwordError, children: /* @__PURE__ */ jsx30(
1360
1378
  Input,
1361
1379
  {
1362
1380
  placeholder: "Enter the Password",
@@ -1366,7 +1384,7 @@ function PasswordModal({
1366
1384
  value: password
1367
1385
  }
1368
1386
  ) }),
1369
- /* @__PURE__ */ jsx29(Field, { label: "Re Password", error: rePassword.length > 0 ? rePasswordError || error : error, children: /* @__PURE__ */ jsx29(
1387
+ /* @__PURE__ */ jsx30(Field, { label: "Re Password", error: rePassword.length > 0 ? rePasswordError || error : error, children: /* @__PURE__ */ jsx30(
1370
1388
  Input,
1371
1389
  {
1372
1390
  placeholder: "Re Enter the Password",
@@ -1377,7 +1395,7 @@ function PasswordModal({
1377
1395
  }
1378
1396
  ) })
1379
1397
  ] }),
1380
- /* @__PURE__ */ jsx29(
1398
+ /* @__PURE__ */ jsx30(
1381
1399
  Button,
1382
1400
  {
1383
1401
  disabled: password.length == 0 || !!passwordError || !!rePasswordError,
@@ -1394,7 +1412,7 @@ function PasswordModal({
1394
1412
 
1395
1413
  // src/components/RecoveryModal/index.tsx
1396
1414
  import { useEffect as useEffect4, useMemo as useMemo3, useState as useState4 } from "react";
1397
- import { jsx as jsx30, jsxs as jsxs19 } from "react/jsx-runtime";
1415
+ import { jsx as jsx31, jsxs as jsxs20 } from "react/jsx-runtime";
1398
1416
  function RecoveryModal({
1399
1417
  title,
1400
1418
  isOpen,
@@ -1430,12 +1448,12 @@ function RecoveryModal({
1430
1448
  setIsSubmitting(false);
1431
1449
  }
1432
1450
  };
1433
- return /* @__PURE__ */ jsx30(ModalWithHeader, { isOpen: isOpen && isLogin, ...props, title: title || "Recover Wallet", children: /* @__PURE__ */ jsxs19("div", { className: "matchid-password-box", children: [
1434
- /* @__PURE__ */ jsxs19("div", { className: "matchid-password-header", children: [
1435
- /* @__PURE__ */ jsx30("div", { className: "matchid-password-header-icon", children: /* @__PURE__ */ jsx30(PasswordRoundIcon, {}) }),
1436
- /* @__PURE__ */ jsx30("div", { className: "matchid-password-header-content", children: "Please enter your password to recover your wallet" })
1451
+ return /* @__PURE__ */ jsx31(ModalWithHeader, { isOpen: isOpen && isLogin, ...props, title: title || "Recover Wallet", children: /* @__PURE__ */ jsxs20("div", { className: "matchid-password-box", children: [
1452
+ /* @__PURE__ */ jsxs20("div", { className: "matchid-password-header", children: [
1453
+ /* @__PURE__ */ jsx31("div", { className: "matchid-password-header-icon", children: /* @__PURE__ */ jsx31(PasswordRoundIcon, {}) }),
1454
+ /* @__PURE__ */ jsx31("div", { className: "matchid-password-header-content", children: "Please enter your password to recover your wallet" })
1437
1455
  ] }),
1438
- /* @__PURE__ */ jsx30("div", { className: "matchid-password-content", children: /* @__PURE__ */ jsx30(Field, { label: "Password", error: password.length > 0 ? passwordError || error : error, children: /* @__PURE__ */ jsx30(
1456
+ /* @__PURE__ */ jsx31("div", { className: "matchid-password-content", children: /* @__PURE__ */ jsx31(Field, { label: "Password", error: password.length > 0 ? passwordError || error : error, children: /* @__PURE__ */ jsx31(
1439
1457
  Input,
1440
1458
  {
1441
1459
  placeholder: "Enter the Password",
@@ -1445,7 +1463,7 @@ function RecoveryModal({
1445
1463
  value: password
1446
1464
  }
1447
1465
  ) }) }),
1448
- /* @__PURE__ */ jsx30(
1466
+ /* @__PURE__ */ jsx31(
1449
1467
  Button,
1450
1468
  {
1451
1469
  disabled: password.length == 0 || !!passwordError,
@@ -1461,13 +1479,13 @@ function RecoveryModal({
1461
1479
  }
1462
1480
 
1463
1481
  // src/context/BusinessProvider.tsx
1464
- import { Fragment as Fragment2, jsx as jsx31, jsxs as jsxs20 } from "react/jsx-runtime";
1482
+ import { Fragment as Fragment2, jsx as jsx32, jsxs as jsxs21 } from "react/jsx-runtime";
1465
1483
  function BusinessProvider({ children }) {
1466
1484
  const { overview, token } = useUserInfo();
1467
1485
  const { recoveryModal } = useStore_default();
1468
- return /* @__PURE__ */ jsxs20(Fragment2, { children: [
1469
- /* @__PURE__ */ jsx31(PasswordModal, { isOpen: !!token && !!overview && !overview.address && !!overview.did, showClose: false }),
1470
- /* @__PURE__ */ jsx31(
1486
+ return /* @__PURE__ */ jsxs21(Fragment2, { children: [
1487
+ /* @__PURE__ */ jsx32(PasswordModal, { isOpen: !!token && !!overview && !overview.address && !!overview.did, showClose: false }),
1488
+ /* @__PURE__ */ jsx32(
1471
1489
  RecoveryModal,
1472
1490
  {
1473
1491
  isOpen: !!token && !!overview && !!overview.address && recoveryModal.open,
@@ -1480,11 +1498,11 @@ function BusinessProvider({ children }) {
1480
1498
  }
1481
1499
 
1482
1500
  // src/context/index.tsx
1483
- import { jsx as jsx32 } from "react/jsx-runtime";
1501
+ import { jsx as jsx33 } from "react/jsx-runtime";
1484
1502
  var Providers = ({ children }) => {
1485
1503
  return (
1486
1504
  // <MpcWalletProvider>
1487
- /* @__PURE__ */ jsx32(BusinessProvider, { children })
1505
+ /* @__PURE__ */ jsx33(BusinessProvider, { children })
1488
1506
  );
1489
1507
  };
1490
1508
  var context_default = Providers;
@@ -1731,7 +1749,7 @@ function useInit({
1731
1749
 
1732
1750
  // src/MatchContext.tsx
1733
1751
  import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
1734
- import { jsx as jsx33 } from "react/jsx-runtime";
1752
+ import { jsx as jsx34 } from "react/jsx-runtime";
1735
1753
  var queryClient = new QueryClient();
1736
1754
  var MatchContext = createContext(void 0);
1737
1755
  var MatchProvider = ({ children, appid, events, theme = "light", endpoints }) => {
@@ -1744,7 +1762,7 @@ var MatchProvider = ({ children, appid, events, theme = "light", endpoints }) =>
1744
1762
  useWalletInit({
1745
1763
  refreshOverview: loadOverview
1746
1764
  });
1747
- return /* @__PURE__ */ jsx33(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx33(
1765
+ return /* @__PURE__ */ jsx34(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx34(
1748
1766
  MatchContext.Provider,
1749
1767
  {
1750
1768
  value: {
@@ -1754,7 +1772,7 @@ var MatchProvider = ({ children, appid, events, theme = "light", endpoints }) =>
1754
1772
  login,
1755
1773
  theme
1756
1774
  },
1757
- children: /* @__PURE__ */ jsx33(context_default, { children })
1775
+ children: /* @__PURE__ */ jsx34(context_default, { children })
1758
1776
  }
1759
1777
  ) });
1760
1778
  };
@@ -1789,7 +1807,7 @@ import { useEffect as useEffect10, useState as useState9 } from "react";
1789
1807
 
1790
1808
  // src/components/EmailModal/StepEmail.tsx
1791
1809
  import { useEffect as useEffect8, useMemo as useMemo4, useState as useState7 } from "react";
1792
- import { jsx as jsx34, jsxs as jsxs21 } from "react/jsx-runtime";
1810
+ import { jsx as jsx35, jsxs as jsxs22 } from "react/jsx-runtime";
1793
1811
  function StepEmail(props) {
1794
1812
  const [emailVal, setEmailVal] = useState7("");
1795
1813
  useEffect8(() => {
@@ -1803,8 +1821,8 @@ function StepEmail(props) {
1803
1821
  const onContinue = async () => {
1804
1822
  props.onContinue(emailVal);
1805
1823
  };
1806
- return /* @__PURE__ */ jsxs21("div", { className: "matchid-email-email-box", children: [
1807
- /* @__PURE__ */ jsx34(Field, { label: "Email Address", children: /* @__PURE__ */ jsx34(
1824
+ return /* @__PURE__ */ jsxs22("div", { className: "matchid-email-email-box", children: [
1825
+ /* @__PURE__ */ jsx35(Field, { label: "Email Address", children: /* @__PURE__ */ jsx35(
1808
1826
  Input,
1809
1827
  {
1810
1828
  placeholder: "Enter Your Email Address",
@@ -1812,7 +1830,7 @@ function StepEmail(props) {
1812
1830
  value: emailVal
1813
1831
  }
1814
1832
  ) }),
1815
- /* @__PURE__ */ jsx34(Button, { disabled: !canContinue, style: {
1833
+ /* @__PURE__ */ jsx35(Button, { disabled: !canContinue, style: {
1816
1834
  marginTop: "64px"
1817
1835
  }, onClick: onContinue, size: "lg", block: true, highlight: true, children: "Continue" })
1818
1836
  ] });
@@ -1826,7 +1844,7 @@ var EMAIL_INTERVAL = 60;
1826
1844
  var EMAIL_CODE_LENGTH = 6;
1827
1845
 
1828
1846
  // src/components/EmailModal/StepVerify.tsx
1829
- import { jsx as jsx35, jsxs as jsxs22 } from "react/jsx-runtime";
1847
+ import { jsx as jsx36, jsxs as jsxs23 } from "react/jsx-runtime";
1830
1848
  function StepVerify(props) {
1831
1849
  const { getLoginEmailCode, loginByEmail } = useUserInfo();
1832
1850
  const [error, setError] = useState8("");
@@ -1895,22 +1913,22 @@ function StepVerify(props) {
1895
1913
  setSubmitting(false);
1896
1914
  }
1897
1915
  };
1898
- return /* @__PURE__ */ jsxs22("div", { className: "matchid-email-verify-box", children: [
1899
- /* @__PURE__ */ jsxs22("div", { className: "matchid-email-verify-header", children: [
1900
- /* @__PURE__ */ jsx35("div", { className: "matchid-email-verify-header-icon", children: /* @__PURE__ */ jsx35(EmailLineIcon, {}) }),
1901
- /* @__PURE__ */ jsxs22("div", { className: "matchid-email-verify-header-content", children: [
1902
- /* @__PURE__ */ jsx35("div", { className: "matchid-email-verify-header-value", children: props.email }),
1903
- /* @__PURE__ */ jsx35("div", { className: "matchid-email-verify-header-tips", children: "We have sent a verification code to your email" })
1916
+ return /* @__PURE__ */ jsxs23("div", { className: "matchid-email-verify-box", children: [
1917
+ /* @__PURE__ */ jsxs23("div", { className: "matchid-email-verify-header", children: [
1918
+ /* @__PURE__ */ jsx36("div", { className: "matchid-email-verify-header-icon", children: /* @__PURE__ */ jsx36(EmailLineIcon, {}) }),
1919
+ /* @__PURE__ */ jsxs23("div", { className: "matchid-email-verify-header-content", children: [
1920
+ /* @__PURE__ */ jsx36("div", { className: "matchid-email-verify-header-value", children: props.email }),
1921
+ /* @__PURE__ */ jsx36("div", { className: "matchid-email-verify-header-tips", children: "We have sent a verification code to your email" })
1904
1922
  ] })
1905
1923
  ] }),
1906
- /* @__PURE__ */ jsx35(Field, { label: "Verification Code", error, children: /* @__PURE__ */ jsx35(
1924
+ /* @__PURE__ */ jsx36(Field, { label: "Verification Code", error, children: /* @__PURE__ */ jsx36(
1907
1925
  Input,
1908
1926
  {
1909
1927
  placeholder: "Enter the code",
1910
1928
  maxLength: codeLength,
1911
1929
  onChange: (e) => setCode(e.target.value),
1912
1930
  value: code,
1913
- after: /* @__PURE__ */ jsx35(
1931
+ after: /* @__PURE__ */ jsx36(
1914
1932
  Button,
1915
1933
  {
1916
1934
  highlight: true,
@@ -1929,12 +1947,12 @@ function StepVerify(props) {
1929
1947
  )
1930
1948
  }
1931
1949
  ) }),
1932
- /* @__PURE__ */ jsx35(Button, { disabled: !canContinue, highlight: true, block: true, size: "lg", onClick: onContinue, children: "Continue" })
1950
+ /* @__PURE__ */ jsx36(Button, { disabled: !canContinue, highlight: true, block: true, size: "lg", onClick: onContinue, children: "Continue" })
1933
1951
  ] });
1934
1952
  }
1935
1953
 
1936
1954
  // src/components/EmailModal/index.tsx
1937
- import { jsx as jsx36 } from "react/jsx-runtime";
1955
+ import { jsx as jsx37 } from "react/jsx-runtime";
1938
1956
  function EmailModal({
1939
1957
  isOpen = false,
1940
1958
  width = 480,
@@ -1950,7 +1968,7 @@ function EmailModal({
1950
1968
  setEmailVal("");
1951
1969
  }
1952
1970
  }, [isOpen]);
1953
- return /* @__PURE__ */ jsx36(
1971
+ return /* @__PURE__ */ jsx37(
1954
1972
  ModalWithHeader,
1955
1973
  {
1956
1974
  isOpen,
@@ -1958,17 +1976,17 @@ function EmailModal({
1958
1976
  onClose,
1959
1977
  title: "Email",
1960
1978
  onBack: step == "verify" ? () => setStep("input") : onBack,
1961
- children: step === "input" ? /* @__PURE__ */ jsx36(StepEmail, { email: emailVal, onContinue: (email) => {
1979
+ children: step === "input" ? /* @__PURE__ */ jsx37(StepEmail, { email: emailVal, onContinue: (email) => {
1962
1980
  setEmailVal(email);
1963
1981
  setStep("verify");
1964
- } }) : /* @__PURE__ */ jsx36(StepVerify, { email: emailVal, onSuccess: onLogin })
1982
+ } }) : /* @__PURE__ */ jsx37(StepVerify, { email: emailVal, onSuccess: onLogin })
1965
1983
  }
1966
1984
  );
1967
1985
  }
1968
1986
 
1969
1987
  // src/components/Popover/index.tsx
1970
1988
  import { useState as useState10 } from "react";
1971
- import { jsx as jsx37, jsxs as jsxs23 } from "react/jsx-runtime";
1989
+ import { jsx as jsx38, jsxs as jsxs24 } from "react/jsx-runtime";
1972
1990
  function Popover({
1973
1991
  children,
1974
1992
  content,
@@ -1978,7 +1996,7 @@ function Popover({
1978
1996
  gap = "20px"
1979
1997
  }) {
1980
1998
  const [active, setActive] = useState10(false);
1981
- return /* @__PURE__ */ jsxs23(
1999
+ return /* @__PURE__ */ jsxs24(
1982
2000
  "div",
1983
2001
  {
1984
2002
  onClick: () => {
@@ -1989,9 +2007,9 @@ function Popover({
1989
2007
  className: `matchid-popover-box matchid-popover-${position} matchid-popover-${type} ${className} ${type == "click" && active ? "matchid-popover-click-active" : ""}`,
1990
2008
  children: [
1991
2009
  children,
1992
- /* @__PURE__ */ jsx37("div", { style: {
2010
+ /* @__PURE__ */ jsx38("div", { style: {
1993
2011
  paddingTop: gap
1994
- }, children: /* @__PURE__ */ jsx37("div", { className: `matchid-popover-content`, children: content }) })
2012
+ }, children: /* @__PURE__ */ jsx38("div", { className: `matchid-popover-content`, children: content }) })
1995
2013
  ]
1996
2014
  }
1997
2015
  );
@@ -1999,7 +2017,7 @@ function Popover({
1999
2017
 
2000
2018
  // src/components/LoginBox/index.tsx
2001
2019
  import { useMemo as useMemo6, useState as useState11 } from "react";
2002
- import { Fragment as Fragment3, jsx as jsx38, jsxs as jsxs24 } from "react/jsx-runtime";
2020
+ import { Fragment as Fragment3, jsx as jsx39, jsxs as jsxs25 } from "react/jsx-runtime";
2003
2021
  function LoginBox({
2004
2022
  methods,
2005
2023
  inModal = false
@@ -2021,66 +2039,71 @@ function LoginBox({
2021
2039
  name,
2022
2040
  onClick
2023
2041
  }) => {
2024
- return /* @__PURE__ */ jsxs24("div", { className: "matchid-login-method", onClick, children: [
2025
- /* @__PURE__ */ jsxs24("div", { className: "matchid-login-method-content", children: [
2026
- /* @__PURE__ */ jsx38("div", { className: "matchid-login-method-icon", children: icon }),
2027
- /* @__PURE__ */ jsx38("span", { className: "matchid-login-method-name", children: name })
2042
+ return /* @__PURE__ */ jsxs25("div", { className: "matchid-login-method", onClick, children: [
2043
+ /* @__PURE__ */ jsxs25("div", { className: "matchid-login-method-content", children: [
2044
+ /* @__PURE__ */ jsx39("div", { className: "matchid-login-method-icon", children: icon }),
2045
+ /* @__PURE__ */ jsx39("span", { className: "matchid-login-method-name", children: name })
2028
2046
  ] }),
2029
- /* @__PURE__ */ jsx38(ArrowRightIcon, { className: "matchid-login-method-arrow", size: 20, color: "var(--matchid-arrow-color)" })
2047
+ /* @__PURE__ */ jsx39(ArrowRightIcon, { className: "matchid-login-method-arrow", size: 20, color: "var(--matchid-arrow-color)" })
2030
2048
  ] });
2031
2049
  };
2032
2050
  const methodMap = {
2033
2051
  wallet: {
2034
- icon: /* @__PURE__ */ jsx38(WalletIcon, {}),
2052
+ icon: /* @__PURE__ */ jsx39(WalletIcon, {}),
2035
2053
  name: "Wallet",
2036
2054
  onClick: () => login("wallet")
2037
2055
  },
2038
2056
  email: {
2039
- icon: /* @__PURE__ */ jsx38(EmailIcon, {}),
2057
+ icon: /* @__PURE__ */ jsx39(EmailIcon, {}),
2040
2058
  name: "Email",
2041
2059
  onClick: () => {
2042
2060
  setEmailOpen(true);
2043
2061
  }
2044
2062
  },
2045
2063
  google: {
2046
- icon: /* @__PURE__ */ jsx38(GoogleIcon, {}),
2064
+ icon: /* @__PURE__ */ jsx39(GoogleIcon, {}),
2047
2065
  name: "Google",
2048
2066
  onClick: () => login("google")
2049
2067
  },
2050
2068
  twitter: {
2051
- icon: /* @__PURE__ */ jsx38(XIcon, {}),
2069
+ icon: /* @__PURE__ */ jsx39(XIcon, {}),
2052
2070
  name: "X",
2053
2071
  onClick: () => login("twitter")
2054
2072
  },
2055
2073
  telegram: {
2056
- icon: /* @__PURE__ */ jsx38(TelegramIcon, {}),
2074
+ icon: /* @__PURE__ */ jsx39(TelegramIcon, {}),
2057
2075
  name: "Telegram",
2058
2076
  onClick: () => login("telegram")
2059
2077
  },
2060
2078
  github: {
2061
- icon: /* @__PURE__ */ jsx38(GithubIcon, {}),
2079
+ icon: /* @__PURE__ */ jsx39(GithubIcon, {}),
2062
2080
  name: "Github",
2063
2081
  onClick: () => login("github")
2064
2082
  },
2065
2083
  discord: {
2066
- icon: /* @__PURE__ */ jsx38(DiscordIcon, {}),
2084
+ icon: /* @__PURE__ */ jsx39(DiscordIcon, {}),
2067
2085
  name: "Discord",
2068
2086
  onClick: () => login("discord")
2087
+ },
2088
+ linkedin: {
2089
+ icon: /* @__PURE__ */ jsx39(LinkedinIcon, {}),
2090
+ name: "Linkedin",
2091
+ onClick: () => login("linkedin")
2069
2092
  }
2070
2093
  };
2071
- return /* @__PURE__ */ jsxs24(Fragment3, { children: [
2072
- (!inModal || !emailOpen) && /* @__PURE__ */ jsx38("div", { className: "matchid-login-box", children: methodList.map((m) => {
2073
- return /* @__PURE__ */ jsx38(
2094
+ return /* @__PURE__ */ jsxs25(Fragment3, { children: [
2095
+ (!inModal || !emailOpen) && /* @__PURE__ */ jsx39("div", { className: "matchid-login-box", children: methodList.map((m) => {
2096
+ return /* @__PURE__ */ jsx39(
2074
2097
  LoginItem,
2075
2098
  {
2076
- icon: methodMap[m].icon,
2077
- name: methodMap[m].name,
2078
- onClick: methodMap[m].onClick
2099
+ icon: methodMap[m]?.icon,
2100
+ name: methodMap[m]?.name,
2101
+ onClick: methodMap[m]?.onClick
2079
2102
  },
2080
2103
  m
2081
2104
  );
2082
2105
  }) }),
2083
- /* @__PURE__ */ jsx38(
2106
+ /* @__PURE__ */ jsx39(
2084
2107
  EmailModal,
2085
2108
  {
2086
2109
  isOpen: emailOpen,
@@ -2099,39 +2122,39 @@ function LoginBox({
2099
2122
  import { useState as useState13 } from "react";
2100
2123
 
2101
2124
  // src/components/LoginPanel/index.tsx
2102
- import { jsx as jsx39, jsxs as jsxs25 } from "react/jsx-runtime";
2125
+ import { jsx as jsx40, jsxs as jsxs26 } from "react/jsx-runtime";
2103
2126
  function LoginPanel({
2104
2127
  header,
2105
2128
  onClose,
2106
2129
  ...props
2107
2130
  }) {
2108
- return /* @__PURE__ */ jsxs25("div", { className: "matchid-login-panel", children: [
2109
- header ? header : /* @__PURE__ */ jsxs25("div", { className: "matchid-login-panel-header", children: [
2110
- /* @__PURE__ */ jsxs25("div", { className: "matchid-login-panel-header-content", children: [
2111
- /* @__PURE__ */ jsx39("div", { className: "matchid-login-panel-header-title", children: "Log in / Sign up" }),
2112
- /* @__PURE__ */ jsx39("div", { className: "matchid-login-panel-header-subtilte", children: "You can use the following methods" })
2131
+ return /* @__PURE__ */ jsxs26("div", { className: "matchid-login-panel", children: [
2132
+ header ? header : /* @__PURE__ */ jsxs26("div", { className: "matchid-login-panel-header", children: [
2133
+ /* @__PURE__ */ jsxs26("div", { className: "matchid-login-panel-header-content", children: [
2134
+ /* @__PURE__ */ jsx40("div", { className: "matchid-login-panel-header-title", children: "Log in / Sign up" }),
2135
+ /* @__PURE__ */ jsx40("div", { className: "matchid-login-panel-header-subtilte", children: "You can use the following methods" })
2113
2136
  ] }),
2114
- onClose && /* @__PURE__ */ jsx39("div", { className: "matchid-login-panel-header-close", onClick: onClose, children: /* @__PURE__ */ jsx39(CloseRoundIcon, {}) })
2137
+ onClose && /* @__PURE__ */ jsx40("div", { className: "matchid-login-panel-header-close", onClick: onClose, children: /* @__PURE__ */ jsx40(CloseRoundIcon, {}) })
2115
2138
  ] }),
2116
- /* @__PURE__ */ jsx39("div", { className: "matchid-login-panel-divide" }),
2117
- /* @__PURE__ */ jsx39(LoginBox, { ...props })
2139
+ /* @__PURE__ */ jsx40("div", { className: "matchid-login-panel-divide" }),
2140
+ /* @__PURE__ */ jsx40(LoginBox, { ...props })
2118
2141
  ] });
2119
2142
  }
2120
2143
 
2121
2144
  // src/components/LoginModal/index.tsx
2122
- import { jsx as jsx40 } from "react/jsx-runtime";
2145
+ import { jsx as jsx41 } from "react/jsx-runtime";
2123
2146
  function LoginModal({
2124
2147
  isOpen = false,
2125
2148
  width = 480,
2126
2149
  ...props
2127
2150
  }) {
2128
2151
  const { isLogin } = useUserInfo();
2129
- return /* @__PURE__ */ jsx40(
2152
+ return /* @__PURE__ */ jsx41(
2130
2153
  Modal,
2131
2154
  {
2132
2155
  isOpen: isOpen && !isLogin,
2133
2156
  width,
2134
- children: /* @__PURE__ */ jsx40(LoginPanel, { ...props, inModal: true })
2157
+ children: /* @__PURE__ */ jsx41(LoginPanel, { ...props, inModal: true })
2135
2158
  }
2136
2159
  );
2137
2160
  }
@@ -2140,10 +2163,10 @@ function LoginModal({
2140
2163
  import { useState as useState12 } from "react";
2141
2164
 
2142
2165
  // src/assets/icon/ProfileIcon.tsx
2143
- import { jsx as jsx41, jsxs as jsxs26 } from "react/jsx-runtime";
2166
+ import { jsx as jsx42, jsxs as jsxs27 } from "react/jsx-runtime";
2144
2167
  function ProfileIcon({ size = 24, color = "black", ...props }) {
2145
- return /* @__PURE__ */ jsxs26("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
2146
- /* @__PURE__ */ jsx41(
2168
+ return /* @__PURE__ */ jsxs27("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
2169
+ /* @__PURE__ */ jsx42(
2147
2170
  "path",
2148
2171
  {
2149
2172
  fillRule: "evenodd",
@@ -2152,7 +2175,7 @@ function ProfileIcon({ size = 24, color = "black", ...props }) {
2152
2175
  fill: color
2153
2176
  }
2154
2177
  ),
2155
- /* @__PURE__ */ jsx41(
2178
+ /* @__PURE__ */ jsx42(
2156
2179
  "path",
2157
2180
  {
2158
2181
  fillRule: "evenodd",
@@ -2165,7 +2188,7 @@ function ProfileIcon({ size = 24, color = "black", ...props }) {
2165
2188
  }
2166
2189
 
2167
2190
  // src/components/UserPopover/index.tsx
2168
- import { jsx as jsx42, jsxs as jsxs27 } from "react/jsx-runtime";
2191
+ import { jsx as jsx43, jsxs as jsxs28 } from "react/jsx-runtime";
2169
2192
  function UserContent() {
2170
2193
  const { logout, address, username } = useUserInfo();
2171
2194
  const [logouting, setLogouting] = useState12(false);
@@ -2186,31 +2209,31 @@ function UserContent() {
2186
2209
  rightIcon,
2187
2210
  onClick
2188
2211
  }) => {
2189
- return /* @__PURE__ */ jsxs27("div", { className: "matchid-user-popover-item", onClick, children: [
2190
- /* @__PURE__ */ jsxs27("div", { className: `matchid-user-popover-item-content`, children: [
2212
+ return /* @__PURE__ */ jsxs28("div", { className: "matchid-user-popover-item", onClick, children: [
2213
+ /* @__PURE__ */ jsxs28("div", { className: `matchid-user-popover-item-content`, children: [
2191
2214
  icon,
2192
- /* @__PURE__ */ jsx42("div", { className: "matchid-user-popover-item-text", children })
2215
+ /* @__PURE__ */ jsx43("div", { className: "matchid-user-popover-item-text", children })
2193
2216
  ] }),
2194
2217
  rightIcon
2195
2218
  ] });
2196
2219
  };
2197
2220
  const UserDivider = () => {
2198
- return /* @__PURE__ */ jsx42("div", { className: `matchid-user-popover-divider` });
2221
+ return /* @__PURE__ */ jsx43("div", { className: `matchid-user-popover-divider` });
2199
2222
  };
2200
2223
  const [usernameOpen, setUsernameOpen] = useState12(false);
2201
2224
  const [copied, setCopied] = useCopyClipboard();
2202
- return /* @__PURE__ */ jsxs27("div", { className: "matchid-user-popover-content", children: [
2203
- /* @__PURE__ */ jsxs27("div", { className: "matchid-user-popover-list", children: [
2204
- /* @__PURE__ */ jsx42(UserItem, { onClick: () => {
2225
+ return /* @__PURE__ */ jsxs28("div", { className: "matchid-user-popover-content", children: [
2226
+ /* @__PURE__ */ jsxs28("div", { className: "matchid-user-popover-list", children: [
2227
+ /* @__PURE__ */ jsx43(UserItem, { onClick: () => {
2205
2228
  setCopied(address);
2206
- }, icon: copied ? /* @__PURE__ */ jsx42(CheckIcon, { size: 20, color: "#0ecb81" }) : /* @__PURE__ */ jsx42(CopyIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ jsx42(CheckIcon, { size: 20, color: "var(--icon-color)" }), children: truncateAddress(address) }),
2207
- /* @__PURE__ */ jsx42(UserDivider, {}),
2208
- /* @__PURE__ */ jsx42(UserItem, { onClick: () => {
2229
+ }, icon: copied ? /* @__PURE__ */ jsx43(CheckIcon, { size: 20, color: "#0ecb81" }) : /* @__PURE__ */ jsx43(CopyIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ jsx43(CheckIcon, { size: 20, color: "var(--icon-color)" }), children: truncateAddress(address) }),
2230
+ /* @__PURE__ */ jsx43(UserDivider, {}),
2231
+ /* @__PURE__ */ jsx43(UserItem, { onClick: () => {
2209
2232
  setUsernameOpen(true);
2210
- }, icon: /* @__PURE__ */ jsx42(ProfileIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ jsx42(ArrowRightIcon, { size: 20, color: "var(--icon-color)" }), children: username || "Set a username" })
2233
+ }, icon: /* @__PURE__ */ jsx43(ProfileIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ jsx43(ArrowRightIcon, { size: 20, color: "var(--icon-color)" }), children: username || "Set a username" })
2211
2234
  ] }),
2212
- /* @__PURE__ */ jsx42(Button, { onClick: onLogout, loading: logouting, children: "Disconnect" }),
2213
- /* @__PURE__ */ jsx42(UsernameModal, { isOpen: usernameOpen, onClose: () => {
2235
+ /* @__PURE__ */ jsx43(Button, { onClick: onLogout, loading: logouting, children: "Disconnect" }),
2236
+ /* @__PURE__ */ jsx43(UsernameModal, { isOpen: usernameOpen, onClose: () => {
2214
2237
  setUsernameOpen(false);
2215
2238
  }, onSuccess: () => {
2216
2239
  setUsernameOpen(false);
@@ -2221,11 +2244,11 @@ function UserPopover({
2221
2244
  children,
2222
2245
  ...props
2223
2246
  }) {
2224
- return /* @__PURE__ */ jsx42(Popover, { ...props, content: /* @__PURE__ */ jsx42(UserContent, {}), children });
2247
+ return /* @__PURE__ */ jsx43(Popover, { ...props, content: /* @__PURE__ */ jsx43(UserContent, {}), children });
2225
2248
  }
2226
2249
 
2227
2250
  // src/components/LoginButton/index.tsx
2228
- import { Fragment as Fragment4, jsx as jsx43, jsxs as jsxs28 } from "react/jsx-runtime";
2251
+ import { Fragment as Fragment4, jsx as jsx44, jsxs as jsxs29 } from "react/jsx-runtime";
2229
2252
  function LoginButton({
2230
2253
  loginRender,
2231
2254
  methods,
@@ -2238,17 +2261,17 @@ function LoginButton({
2238
2261
  const { isLogin, username } = useUserInfo();
2239
2262
  const [loginOpen, setLoginOpen] = useState13(false);
2240
2263
  if (!isLogin) {
2241
- return /* @__PURE__ */ jsxs28(Fragment4, { children: [
2242
- /* @__PURE__ */ jsx43(LoginModal, { methods, isOpen: loginOpen, onClose: () => setLoginOpen(false) }),
2243
- /* @__PURE__ */ jsxs28(Button, { className: "matchid-unlogin-btn", ...props, highlight: true, onClick: () => setLoginOpen(true), children: [
2244
- /* @__PURE__ */ jsx43(UnLoginIcon_default, {}),
2245
- /* @__PURE__ */ jsx43("span", { children: "Login" })
2264
+ return /* @__PURE__ */ jsxs29(Fragment4, { children: [
2265
+ /* @__PURE__ */ jsx44(LoginModal, { methods, isOpen: loginOpen, onClose: () => setLoginOpen(false) }),
2266
+ /* @__PURE__ */ jsxs29(Button, { className: "matchid-unlogin-btn", ...props, highlight: true, onClick: () => setLoginOpen(true), children: [
2267
+ /* @__PURE__ */ jsx44(UnLoginIcon_default, {}),
2268
+ /* @__PURE__ */ jsx44("span", { children: "Login" })
2246
2269
  ] })
2247
2270
  ] });
2248
2271
  }
2249
- return loginRender ? { loginRender } : /* @__PURE__ */ jsx43(UserPopover, { position: popoverPosition, type: popoverType, gap: popoverGap, children: /* @__PURE__ */ jsxs28(Button, { onClick: onLoginClick, className: "matchid-login-btn", ...props, children: [
2250
- /* @__PURE__ */ jsx43(LoginIcon_default, {}),
2251
- /* @__PURE__ */ jsx43("span", { children: username ? truncateAddress(username) : "MatchID User" })
2272
+ return loginRender ? { loginRender } : /* @__PURE__ */ jsx44(UserPopover, { position: popoverPosition, type: popoverType, gap: popoverGap, children: /* @__PURE__ */ jsxs29(Button, { onClick: onLoginClick, className: "matchid-login-btn", ...props, children: [
2273
+ /* @__PURE__ */ jsx44(LoginIcon_default, {}),
2274
+ /* @__PURE__ */ jsx44("span", { children: username ? truncateAddress(username) : "MatchID User" })
2252
2275
  ] }) });
2253
2276
  }
2254
2277
 
@@ -2256,14 +2279,14 @@ function LoginButton({
2256
2279
  import { useEffect as useEffect11, useMemo as useMemo7, useState as useState14 } from "react";
2257
2280
 
2258
2281
  // src/assets/icon/InfoRoundIcon.tsx
2259
- import { jsx as jsx44, jsxs as jsxs29 } from "react/jsx-runtime";
2282
+ import { jsx as jsx45, jsxs as jsxs30 } from "react/jsx-runtime";
2260
2283
  function InfoRoundIcon({
2261
2284
  size,
2262
2285
  color = "#6E6E6E",
2263
2286
  ...props
2264
2287
  }) {
2265
- return /* @__PURE__ */ jsxs29("svg", { width: size, height: size, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
2266
- /* @__PURE__ */ jsx44("g", { clipPath: "url(#clip0_418_7746)", children: /* @__PURE__ */ jsx44(
2288
+ return /* @__PURE__ */ jsxs30("svg", { width: size, height: size, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
2289
+ /* @__PURE__ */ jsx45("g", { clipPath: "url(#clip0_418_7746)", children: /* @__PURE__ */ jsx45(
2267
2290
  "path",
2268
2291
  {
2269
2292
  fillRule: "evenodd",
@@ -2272,19 +2295,19 @@ function InfoRoundIcon({
2272
2295
  fill: color
2273
2296
  }
2274
2297
  ) }),
2275
- /* @__PURE__ */ jsx44("defs", { children: /* @__PURE__ */ jsx44("clipPath", { id: "clip0_418_7746", children: /* @__PURE__ */ jsx44("rect", { width: "16", height: "16", fill: "white" }) }) })
2298
+ /* @__PURE__ */ jsx45("defs", { children: /* @__PURE__ */ jsx45("clipPath", { id: "clip0_418_7746", children: /* @__PURE__ */ jsx45("rect", { width: "16", height: "16", fill: "white" }) }) })
2276
2299
  ] });
2277
2300
  }
2278
2301
 
2279
2302
  // src/components/UsernameModal/index.tsx
2280
- import { jsx as jsx45, jsxs as jsxs30 } from "react/jsx-runtime";
2303
+ import { jsx as jsx46, jsxs as jsxs31 } from "react/jsx-runtime";
2281
2304
  var ValidItem = ({
2282
2305
  success = false,
2283
2306
  text
2284
2307
  }) => {
2285
- return /* @__PURE__ */ jsxs30("div", { className: `matchid-valid-status-item matchid-valid-status-${success ? "success" : "error"}`, children: [
2286
- success ? /* @__PURE__ */ jsx45(CheckRoundIcon, { size: 16 }) : /* @__PURE__ */ jsx45(InfoRoundIcon, { size: 16 }),
2287
- /* @__PURE__ */ jsx45("span", { children: text })
2308
+ return /* @__PURE__ */ jsxs31("div", { className: `matchid-valid-status-item matchid-valid-status-${success ? "success" : "error"}`, children: [
2309
+ success ? /* @__PURE__ */ jsx46(CheckRoundIcon, { size: 16 }) : /* @__PURE__ */ jsx46(InfoRoundIcon, { size: 16 }),
2310
+ /* @__PURE__ */ jsx46("span", { children: text })
2288
2311
  ] });
2289
2312
  };
2290
2313
  function UsernameModal({
@@ -2330,8 +2353,8 @@ function UsernameModal({
2330
2353
  setIsSubmitting(false);
2331
2354
  }
2332
2355
  };
2333
- return /* @__PURE__ */ jsx45(ModalWithHeader, { isOpen: isOpen && isLogin, ...props, title: title || (username ? "Edit User Name" : "Set User Name"), children: /* @__PURE__ */ jsxs30("div", { className: "matchid-username-box", children: [
2334
- /* @__PURE__ */ jsx45(Field, { label: "User Name", error, children: /* @__PURE__ */ jsx45(
2356
+ return /* @__PURE__ */ jsx46(ModalWithHeader, { isOpen: isOpen && isLogin, ...props, title: title || (username ? "Edit User Name" : "Set User Name"), children: /* @__PURE__ */ jsxs31("div", { className: "matchid-username-box", children: [
2357
+ /* @__PURE__ */ jsx46(Field, { label: "User Name", error, children: /* @__PURE__ */ jsx46(
2335
2358
  Input,
2336
2359
  {
2337
2360
  placeholder: "Enter Your User Name",
@@ -2342,20 +2365,20 @@ function UsernameModal({
2342
2365
  value: val
2343
2366
  }
2344
2367
  ) }),
2345
- /* @__PURE__ */ jsxs30("div", { className: "matchid-valid", children: [
2346
- /* @__PURE__ */ jsx45(
2368
+ /* @__PURE__ */ jsxs31("div", { className: "matchid-valid", children: [
2369
+ /* @__PURE__ */ jsx46(
2347
2370
  ValidItem,
2348
2371
  {
2349
2372
  success: isValid,
2350
2373
  text: "Name can be composed of numbers and letters as well as characters"
2351
2374
  }
2352
2375
  ),
2353
- /* @__PURE__ */ jsx45(ValidItem, { success: isLength, text: "No less than 2 characters" })
2376
+ /* @__PURE__ */ jsx46(ValidItem, { success: isLength, text: "No less than 2 characters" })
2354
2377
  ] }),
2355
- /* @__PURE__ */ jsx45(Button, { disabled: !isSafe, loading: isSubmitting, style: {
2378
+ /* @__PURE__ */ jsx46(Button, { disabled: !isSafe, loading: isSubmitting, style: {
2356
2379
  marginTop: "64px"
2357
2380
  }, onClick: onSubmit, size: "lg", block: true, highlight: true, children: "Confirm" }),
2358
- /* @__PURE__ */ jsx45(Button, { style: {
2381
+ /* @__PURE__ */ jsx46(Button, { style: {
2359
2382
  marginTop: "24px"
2360
2383
  }, onClick: props.onClose, size: "lg", block: true, children: "Next Time" })
2361
2384
  ] }) });