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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/api.d.mts +2 -2
  2. package/dist/api.d.ts +2 -2
  3. package/dist/api.js +51 -48
  4. package/dist/api.js.map +1 -1
  5. package/dist/api.mjs +3 -3
  6. package/dist/{chunk-NGNJ44SH.mjs → chunk-2SJCPZJQ.mjs} +2 -2
  7. package/dist/{chunk-OSY7MTZY.mjs → chunk-GD7URBBZ.mjs} +21 -1
  8. package/dist/chunk-GD7URBBZ.mjs.map +1 -0
  9. package/dist/{chunk-2HVTQUPR.mjs → chunk-YR46VC65.mjs} +120 -90
  10. package/dist/chunk-YR46VC65.mjs.map +1 -0
  11. package/dist/components.d.mts +3 -3
  12. package/dist/components.d.ts +3 -3
  13. package/dist/components.js +408 -361
  14. package/dist/components.js.map +1 -1
  15. package/dist/components.mjs +2 -2
  16. package/dist/hooks.d.mts +2 -2
  17. package/dist/hooks.d.ts +2 -2
  18. package/dist/hooks.js +226 -179
  19. package/dist/hooks.js.map +1 -1
  20. package/dist/hooks.mjs +2 -2
  21. package/dist/icon.d.mts +2 -2
  22. package/dist/icon.d.ts +2 -2
  23. package/dist/icon.js +20 -0
  24. package/dist/icon.js.map +1 -1
  25. package/dist/icon.mjs +3 -1
  26. package/dist/{index-CsUEaGtM.d.ts → index-BcuSCgol.d.ts} +2 -2
  27. package/dist/{index-CPTgrfjn.d.mts → index-BlMLqmS2.d.mts} +1 -1
  28. package/dist/{index-B7ZEyP1j.d.ts → index-C1Nyy5zx.d.ts} +1 -1
  29. package/dist/{index-FKxw4Vaa.d.mts → index-CBcBTQyU.d.mts} +1 -1
  30. package/dist/{index-BXbfmVoU.d.mts → index-CD0dACxf.d.mts} +2 -2
  31. package/dist/{index-TjbO7d74.d.mts → index-CER00guz.d.mts} +1 -1
  32. package/dist/{index-BtjgRcNJ.d.ts → index-CjekOYJl.d.mts} +2 -2
  33. package/dist/{index-AtpUyTIk.d.ts → index-DN-jrh8-.d.ts} +6 -3
  34. package/dist/{index-BKSGbw7b.d.mts → index-DdN22cwf.d.ts} +2 -2
  35. package/dist/{index-nwqg5fYH.d.ts → index-DkIIQLbh.d.ts} +2 -2
  36. package/dist/{index-4dZbgWG2.d.ts → index-DlaCsN95.d.ts} +1 -1
  37. package/dist/{index-zmJl2a0q.d.mts → index-lh6qBAf_.d.mts} +2 -2
  38. package/dist/{index-CwHXzvvB.d.ts → index-o0WW1c5O.d.ts} +1 -1
  39. package/dist/{index-CRLiCVf9.d.mts → index-xThRnNN3.d.mts} +6 -3
  40. package/dist/index.css +35 -1
  41. package/dist/index.d.mts +8 -8
  42. package/dist/index.d.ts +8 -8
  43. package/dist/index.js +458 -410
  44. package/dist/index.js.map +1 -1
  45. package/dist/index.mjs +3 -3
  46. package/dist/{types-DEsY_CPH.d.mts → types-CheN9vHJ.d.mts} +4 -0
  47. package/dist/{types-DEsY_CPH.d.ts → types-CheN9vHJ.d.ts} +4 -0
  48. package/dist/types.d.mts +1 -1
  49. package/dist/types.d.ts +1 -1
  50. package/dist/ui.d.mts +3 -3
  51. package/dist/ui.d.ts +3 -3
  52. package/dist/ui.js +154 -107
  53. package/dist/ui.js.map +1 -1
  54. package/dist/ui.mjs +2 -2
  55. package/example/src/pages/UI/components/Input.tsx +12 -0
  56. package/example/src/pages/UI/index.tsx +2 -0
  57. package/package.json +1 -1
  58. package/dist/chunk-2HVTQUPR.mjs.map +0 -1
  59. package/dist/chunk-OSY7MTZY.mjs.map +0 -1
  60. /package/dist/{chunk-NGNJ44SH.mjs.map → chunk-2SJCPZJQ.mjs.map} +0 -0
package/dist/hooks.js CHANGED
@@ -634,6 +634,24 @@ var import_jsx_runtime51 = require("react/jsx-runtime");
634
634
  // src/assets/icon/CheckboxCheckedIcon.tsx
635
635
  var import_jsx_runtime52 = require("react/jsx-runtime");
636
636
 
637
+ // src/assets/icon/InputLengthIcon.tsx
638
+ var import_jsx_runtime53 = require("react/jsx-runtime");
639
+ function InputLengthIcon({
640
+ size = 12,
641
+ color = "#B6B6B6",
642
+ ...props
643
+ }) {
644
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("svg", { width: size, height: size, viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
645
+ "path",
646
+ {
647
+ "fill-rule": "evenodd",
648
+ "clip-rule": "evenodd",
649
+ d: "M1.10097 12L12 1.10097L10.899 0L0 10.899L1.10097 12ZM7.19277 11.4594L11.6684 6.98378L10.5675 5.88281L6.0918 10.3585L7.19277 11.4594Z",
650
+ fill: color
651
+ }
652
+ ) });
653
+ }
654
+
637
655
  // src/hooks/useLayout.tsx
638
656
  var useLayout_exports = {};
639
657
  __export(useLayout_exports, {
@@ -655,7 +673,7 @@ function useDownMd() {
655
673
  }
656
674
 
657
675
  // src/hooks/useConfig.tsx
658
- var import_jsx_runtime53 = require("react/jsx-runtime");
676
+ var import_jsx_runtime54 = require("react/jsx-runtime");
659
677
  var DEFAULT_WALLET_METHODS = ["evm", "sol", "btc", "tron", "ton"];
660
678
 
661
679
  // src/store/useModalStore.ts
@@ -705,7 +723,7 @@ var import_react3 = require("react");
705
723
 
706
724
  // src/ui/Overlay/index.tsx
707
725
  var import_react2 = require("react");
708
- var import_jsx_runtime54 = require("react/jsx-runtime");
726
+ var import_jsx_runtime55 = require("react/jsx-runtime");
709
727
  function Overlay({
710
728
  isOpen = false,
711
729
  children,
@@ -721,7 +739,7 @@ function Overlay({
721
739
  document.body.style.overflow = "";
722
740
  };
723
741
  }, [isOpen]);
724
- return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
742
+ return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
725
743
  "div",
726
744
  {
727
745
  className: "matchid-overlay",
@@ -730,12 +748,12 @@ function Overlay({
730
748
  },
731
749
  children
732
750
  }
733
- ) : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_jsx_runtime54.Fragment, {});
751
+ ) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_jsx_runtime55.Fragment, {});
734
752
  }
735
753
 
736
754
  // src/ui/Modal/index.tsx
737
755
  var import_react_intl = require("react-intl");
738
- var import_jsx_runtime55 = require("react/jsx-runtime");
756
+ var import_jsx_runtime56 = require("react/jsx-runtime");
739
757
  function Modal({
740
758
  children,
741
759
  isOpen,
@@ -743,10 +761,10 @@ function Modal({
743
761
  zIndex = 100,
744
762
  className = ""
745
763
  }) {
746
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: `matchid-modal ${className}`, style: {
764
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: `matchid-modal ${className}`, style: {
747
765
  width
748
766
  }, children: [
749
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "matchid-modal-mobile-header" }),
767
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "matchid-modal-mobile-header" }),
750
768
  children
751
769
  ] }) });
752
770
  }
@@ -760,13 +778,13 @@ function ModalWithHeader({
760
778
  ...props
761
779
  }) {
762
780
  const isDownMd = useDownMd();
763
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Modal, { ...props, children: [
764
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: `matchid-modal-header ${showBorder ? "matchid-modal-header-border" : ""}`, children: [
765
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "matchid-modal-header-content", children: [
766
- onBack && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ArrowLeftIcon, { height: isDownMd ? 20 : 25, width: isDownMd ? 20 : 24, className: "matchid-modal-header-back", onClick: onBack }),
767
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "matchid-modal-header-title", children: title })
781
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Modal, { ...props, children: [
782
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: `matchid-modal-header ${showBorder ? "matchid-modal-header-border" : ""}`, children: [
783
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "matchid-modal-header-content", children: [
784
+ onBack && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ArrowLeftIcon, { height: isDownMd ? 20 : 25, width: isDownMd ? 20 : 24, className: "matchid-modal-header-back", onClick: onBack }),
785
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "matchid-modal-header-title", children: title })
768
786
  ] }),
769
- onClose && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30, className: "matchid-modal-header-close", onClick: onClose })
787
+ onClose && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30, className: "matchid-modal-header-close", onClick: onClose })
770
788
  ] }),
771
789
  children
772
790
  ] });
@@ -777,7 +795,7 @@ var import_react5 = require("react");
777
795
 
778
796
  // src/utils/index.tsx
779
797
  var import_moment = __toESM(require("moment"));
780
- var import_jsx_runtime56 = require("react/jsx-runtime");
798
+ var import_jsx_runtime57 = require("react/jsx-runtime");
781
799
  var getVersion = () => {
782
800
  return "0.0.2";
783
801
  };
@@ -809,10 +827,10 @@ var NumberFormatter = ({
809
827
  const [intPart, decimalPart] = numberValue.toString().split(".");
810
828
  const intFormat = separator ? intPart.replace(/\B(?=(\d{3})+(?!\d))/g, ",") : intPart;
811
829
  if (Math.abs(parseFloat(numberValue)) >= 1) {
812
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { className, children: [
813
- prefix && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: prefixClassName, children: prefix }),
814
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: intClassName, children: intFormat }),
815
- decimalPart ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { className: decimalClassName, children: [
830
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("span", { className, children: [
831
+ prefix && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: prefixClassName, children: prefix }),
832
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: intClassName, children: intFormat }),
833
+ decimalPart ? /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("span", { className: decimalClassName, children: [
816
834
  ".",
817
835
  decimalPart.substring(0, fixNum)
818
836
  ] }) : "",
@@ -829,30 +847,30 @@ var NumberFormatter = ({
829
847
  }
830
848
  }
831
849
  if (zeroCount < tFixNum) {
832
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { className, children: [
833
- prefix && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: prefixClassName, children: prefix }),
834
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: intClassName, children: intFormat }),
835
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { className: decimalClassName, children: [
850
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("span", { className, children: [
851
+ prefix && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: prefixClassName, children: prefix }),
852
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: intClassName, children: intFormat }),
853
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("span", { className: decimalClassName, children: [
836
854
  ".",
837
855
  decimalPart.substring(0, tFixNum)
838
856
  ] }),
839
857
  suffix
840
858
  ] });
841
859
  }
842
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { className, children: [
843
- prefix && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: prefixClassName, children: prefix }),
844
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: intClassName, children: intFormat }),
845
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { className: decimalClassName, children: [
860
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("span", { className, children: [
861
+ prefix && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: prefixClassName, children: prefix }),
862
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: intClassName, children: intFormat }),
863
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("span", { className: decimalClassName, children: [
846
864
  ".0",
847
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("sub", { children: zeroCount }),
865
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("sub", { children: zeroCount }),
848
866
  decimalPart?.substring(zeroCount, zeroCount + tFixNum - 2)
849
867
  ] }),
850
868
  suffix
851
869
  ] });
852
870
  }
853
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { className, children: [
854
- prefix && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: prefixClassName, children: prefix }),
855
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: intClassName, children: intPart }),
871
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("span", { className, children: [
872
+ prefix && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: prefixClassName, children: prefix }),
873
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: intClassName, children: intPart }),
856
874
  suffix
857
875
  ] });
858
876
  };
@@ -861,7 +879,7 @@ var isInTgApp = () => {
861
879
  };
862
880
 
863
881
  // src/ui/Button/index.tsx
864
- var import_jsx_runtime57 = require("react/jsx-runtime");
882
+ var import_jsx_runtime58 = require("react/jsx-runtime");
865
883
  function Button({
866
884
  size = "df",
867
885
  disabled = false,
@@ -881,7 +899,7 @@ function Button({
881
899
  onClick && onClick();
882
900
  }
883
901
  };
884
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
902
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
885
903
  "button",
886
904
  {
887
905
  type,
@@ -892,34 +910,55 @@ function Button({
892
910
  },
893
911
  onClick: onAction,
894
912
  ...dataset,
895
- children: loading ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(LoadingIcon_default, { className: "matchid-btn-loading-icon", color: "var(--matchid-btn-loading-color)" }) : children
913
+ children: loading ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(LoadingIcon_default, { className: "matchid-btn-loading-icon", color: "var(--matchid-btn-loading-color)" }) : children
896
914
  }
897
915
  );
898
916
  }
899
917
 
900
918
  // src/ui/Input/index.tsx
901
919
  var import_react4 = require("react");
902
- var import_jsx_runtime58 = require("react/jsx-runtime");
920
+ var import_jsx_runtime59 = require("react/jsx-runtime");
903
921
  function Input({
904
922
  onChange,
905
923
  type,
906
924
  after,
925
+ showLength = false,
926
+ showClear = true,
907
927
  className = "",
928
+ rows = 1,
929
+ maxRows = 4,
930
+ children,
908
931
  ...props
909
932
  }) {
910
933
  const [inputType, setInputType] = (0, import_react4.useState)(type);
911
934
  const isDownMd = useDownMd();
912
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
935
+ const textareaRef = (0, import_react4.useRef)(null);
936
+ (0, import_react4.useEffect)(() => {
937
+ const textarea = textareaRef.current;
938
+ if (textarea) {
939
+ textarea.style.height = "auto";
940
+ const lineHeight = 24;
941
+ const maxHeight = lineHeight * 4;
942
+ textarea.style.height = Math.min(textarea.scrollHeight, maxHeight) + "px";
943
+ }
944
+ }, [props.value]);
945
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
913
946
  "div",
914
947
  {
915
- className: `matchid-input-box ${props.value && props.value.length > 0 ? "matchid-input-has-content" : ""} ${className}`,
948
+ className: `matchid-input-box matchid-input-${type} ${props.value && props.value.length > 0 ? "matchid-input-has-content" : ""} ${className}`,
949
+ style: {
950
+ // @ts-ignore
951
+ "--max-rows": maxRows
952
+ },
916
953
  children: [
917
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("input", { type: inputType, onChange, ...props, className: "matchid-input-field" }),
918
- props.value && props.value.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "matchid-input-delete-icon", onClick: (e) => {
954
+ children ?? (type == "textarea" ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("textarea", { rows: 1, onChange, ...props, className: "matchid-input-field", ref: textareaRef, style: {
955
+ maxHeight: maxRows * 24 + "px"
956
+ } }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("input", { type: inputType, onChange, ...props, className: "matchid-input-field" })),
957
+ type != "textarea" && showClear && props.value && props.value.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "matchid-input-delete-icon", onClick: (e) => {
919
958
  if (onChange) {
920
959
  onChange({ target: { value: "" } });
921
960
  }
922
- }, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
961
+ }, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
923
962
  DeleteRoundIcon,
924
963
  {
925
964
  height: isDownMd ? 16 : 21,
@@ -927,9 +966,17 @@ function Input({
927
966
  color: "var(--matchid-input-delete-icon-color)"
928
967
  }
929
968
  ) }),
930
- type === "password" && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "matchid-input-eye-icon", onClick: () => {
969
+ type === "password" && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "matchid-input-eye-icon", onClick: () => {
931
970
  setInputType(inputType === "password" ? "text" : "password");
932
- }, children: inputType === "password" ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(CloseEyeIcon, { size: isDownMd ? 16 : 20 }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(OpenEyeIcon, { size: isDownMd ? 16 : 20 }) }),
971
+ }, children: inputType === "password" ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(CloseEyeIcon, { size: isDownMd ? 16 : 20 }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(OpenEyeIcon, { size: isDownMd ? 16 : 20 }) }),
972
+ showLength && props.maxLength && /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: `matchid-input-length`, children: [
973
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("span", { children: [
974
+ props.value.length || 0,
975
+ "/",
976
+ props.maxLength
977
+ ] }),
978
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(InputLengthIcon, { color: "var(--icon-color)" })
979
+ ] }),
933
980
  after
934
981
  ]
935
982
  }
@@ -937,7 +984,7 @@ function Input({
937
984
  }
938
985
 
939
986
  // src/ui/Field/index.tsx
940
- var import_jsx_runtime59 = require("react/jsx-runtime");
987
+ var import_jsx_runtime60 = require("react/jsx-runtime");
941
988
  function Field({
942
989
  label,
943
990
  children,
@@ -945,19 +992,19 @@ function Field({
945
992
  required,
946
993
  className = ""
947
994
  }) {
948
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: `matchid-field-box ${className}`, children: [
949
- /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "matchid-field-label", children: [
950
- required && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "matchid-field-required", children: "*" }),
995
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: `matchid-field-box ${className}`, children: [
996
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "matchid-field-label", children: [
997
+ required && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "matchid-field-required", children: "*" }),
951
998
  label
952
999
  ] }),
953
1000
  children,
954
- error && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "matchid-field-error", children: error })
1001
+ error && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "matchid-field-error", children: error })
955
1002
  ] });
956
1003
  }
957
1004
 
958
1005
  // src/components/EmailModal/StepEmail.tsx
959
1006
  var import_react_intl2 = require("react-intl");
960
- var import_jsx_runtime60 = require("react/jsx-runtime");
1007
+ var import_jsx_runtime61 = require("react/jsx-runtime");
961
1008
 
962
1009
  // src/components/EmailModal/StepVerify.tsx
963
1010
  var import_react6 = require("react");
@@ -967,15 +1014,15 @@ var NATIVE_TOKEN_ADDRESS = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
967
1014
 
968
1015
  // src/components/EmailModal/StepVerify.tsx
969
1016
  var import_react_intl3 = require("react-intl");
970
- var import_jsx_runtime61 = require("react/jsx-runtime");
1017
+ var import_jsx_runtime62 = require("react/jsx-runtime");
971
1018
 
972
1019
  // src/components/EmailModal/index.tsx
973
1020
  var import_react_intl4 = require("react-intl");
974
- var import_jsx_runtime62 = require("react/jsx-runtime");
1021
+ var import_jsx_runtime63 = require("react/jsx-runtime");
975
1022
 
976
1023
  // src/ui/Popover/index.tsx
977
1024
  var import_react8 = require("react");
978
- var import_jsx_runtime63 = require("react/jsx-runtime");
1025
+ var import_jsx_runtime64 = require("react/jsx-runtime");
979
1026
 
980
1027
  // src/components/LoginBox/index.tsx
981
1028
  var import_react9 = require("react");
@@ -985,39 +1032,39 @@ var import_react_intl5 = require("react-intl");
985
1032
  var import_react_query = require("@tanstack/react-query");
986
1033
 
987
1034
  // src/components/LoginBox/index.tsx
988
- var import_jsx_runtime64 = require("react/jsx-runtime");
1035
+ var import_jsx_runtime65 = require("react/jsx-runtime");
989
1036
 
990
1037
  // src/components/LoginButton/index.tsx
991
1038
  var import_react11 = require("react");
992
1039
 
993
1040
  // src/components/LoginPanel/index.tsx
994
1041
  var import_react_intl6 = require("react-intl");
995
- var import_jsx_runtime65 = require("react/jsx-runtime");
1042
+ var import_jsx_runtime66 = require("react/jsx-runtime");
996
1043
 
997
1044
  // src/components/LoginModal/index.tsx
998
- var import_jsx_runtime66 = require("react/jsx-runtime");
1045
+ var import_jsx_runtime67 = require("react/jsx-runtime");
999
1046
 
1000
1047
  // src/components/UserPopover/index.tsx
1001
1048
  var import_react10 = require("react");
1002
1049
 
1003
1050
  // src/assets/icon/ProfileIcon.tsx
1004
- var import_jsx_runtime67 = require("react/jsx-runtime");
1051
+ var import_jsx_runtime68 = require("react/jsx-runtime");
1005
1052
 
1006
1053
  // src/components/UserPopover/index.tsx
1007
1054
  var import_react_intl7 = require("react-intl");
1008
- var import_jsx_runtime68 = require("react/jsx-runtime");
1055
+ var import_jsx_runtime69 = require("react/jsx-runtime");
1009
1056
 
1010
1057
  // src/components/LoginButton/index.tsx
1011
1058
  var import_react_intl8 = require("react-intl");
1012
- var import_jsx_runtime69 = require("react/jsx-runtime");
1059
+ var import_jsx_runtime70 = require("react/jsx-runtime");
1013
1060
 
1014
1061
  // src/components/UsernameModal/index.tsx
1015
1062
  var import_react12 = require("react");
1016
1063
  var import_react_intl9 = require("react-intl");
1017
- var import_jsx_runtime70 = require("react/jsx-runtime");
1064
+ var import_jsx_runtime71 = require("react/jsx-runtime");
1018
1065
 
1019
1066
  // src/ui/Drawer/index.tsx
1020
- var import_jsx_runtime71 = require("react/jsx-runtime");
1067
+ var import_jsx_runtime72 = require("react/jsx-runtime");
1021
1068
  function Drawer({
1022
1069
  children,
1023
1070
  showClose = true,
@@ -1028,15 +1075,15 @@ function Drawer({
1028
1075
  onBack
1029
1076
  }) {
1030
1077
  if (!isOpen) {
1031
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_jsx_runtime71.Fragment, {});
1078
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_jsx_runtime72.Fragment, {});
1032
1079
  }
1033
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "matchid-drawer", children: [
1034
- /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: `matchid-drawer-header matchid-flex`, children: [
1035
- /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: `matchid-drawer-header-content matchid-flex`, children: [
1036
- onBack && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(ArrowLeftIcon, { height: 25, width: 24, className: "matchid-drawer-header-back", onClick: onBack }),
1080
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "matchid-drawer", children: [
1081
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: `matchid-drawer-header matchid-flex`, children: [
1082
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: `matchid-drawer-header-content matchid-flex`, children: [
1083
+ onBack && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(ArrowLeftIcon, { height: 25, width: 24, className: "matchid-drawer-header-back", onClick: onBack }),
1037
1084
  title
1038
1085
  ] }),
1039
- showClose && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(CloseRoundIcon, { className: "matchid-drawer-header-close", onClick: onClose })
1086
+ showClose && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(CloseRoundIcon, { className: "matchid-drawer-header-close", onClick: onClose })
1040
1087
  ] }),
1041
1088
  children
1042
1089
  ] }) });
@@ -1046,7 +1093,7 @@ function Drawer({
1046
1093
  var import_react13 = require("react");
1047
1094
 
1048
1095
  // src/ui/ModalDrawer/index.tsx
1049
- var import_jsx_runtime72 = require("react/jsx-runtime");
1096
+ var import_jsx_runtime73 = require("react/jsx-runtime");
1050
1097
  function ModalDrawer({
1051
1098
  title,
1052
1099
  drawerTitleVisible = true,
@@ -1054,9 +1101,9 @@ function ModalDrawer({
1054
1101
  }) {
1055
1102
  const isDownMd = useDownMd();
1056
1103
  if (isDownMd) {
1057
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(ModalWithHeader, { ...props, title });
1104
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(ModalWithHeader, { ...props, title });
1058
1105
  }
1059
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Drawer, { ...props, title: drawerTitleVisible ? title : null });
1106
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Drawer, { ...props, title: drawerTitleVisible ? title : null });
1060
1107
  }
1061
1108
 
1062
1109
  // src/assets/lottie/confirm.json
@@ -1112,7 +1159,7 @@ function useHash({
1112
1159
  }
1113
1160
 
1114
1161
  // src/ui/HashPanel/index.tsx
1115
- var import_jsx_runtime73 = require("react/jsx-runtime");
1162
+ var import_jsx_runtime74 = require("react/jsx-runtime");
1116
1163
  function HashPanel({
1117
1164
  hash,
1118
1165
  chain,
@@ -1172,14 +1219,14 @@ function HashPanel({
1172
1219
  }
1173
1220
  }, [hashQuery.data]);
1174
1221
  const link = chain ? `${chain?.blockExplorers?.default.url}/tx/${hash}` : "";
1175
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
1222
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
1176
1223
  ModalDrawer,
1177
1224
  {
1178
1225
  isOpen,
1179
1226
  showClose: true,
1180
1227
  onClose,
1181
1228
  zIndex,
1182
- title: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
1229
+ title: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
1183
1230
  "div",
1184
1231
  {
1185
1232
  className: "matchid-hashpanel-header",
@@ -1189,36 +1236,36 @@ function HashPanel({
1189
1236
  children: statusValue.text
1190
1237
  }
1191
1238
  ),
1192
- children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "matchid-hashpanel-box", children: [
1193
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "matchid-hashpanel-content", children: [
1194
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: `matchid-hashpanel-status`, style: {
1239
+ children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "matchid-hashpanel-box", children: [
1240
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "matchid-hashpanel-content", children: [
1241
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: `matchid-hashpanel-status`, style: {
1195
1242
  color: statusValue.color
1196
1243
  }, children: statusValue.text }),
1197
- statusValue.lottie && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Lottie_default, { animationData: statusValue.lottie, style: {
1244
+ statusValue.lottie && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Lottie_default, { animationData: statusValue.lottie, style: {
1198
1245
  width: "96px",
1199
1246
  height: "96px"
1200
1247
  } }),
1201
- hash && /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "matchid-hashpanel-hash", children: [
1248
+ hash && /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "matchid-hashpanel-hash", children: [
1202
1249
  "Hash:",
1203
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("a", { href: link, target: "_blank", children: hash })
1250
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("a", { href: link, target: "_blank", children: hash })
1204
1251
  ] }),
1205
- error && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "matchid-hashpanel-text", children: error })
1252
+ error && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "matchid-hashpanel-text", children: error })
1206
1253
  ] }),
1207
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Button, { onClick: onClose, size: "lg", block: true, children: "Back" })
1254
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Button, { onClick: onClose, size: "lg", block: true, children: "Back" })
1208
1255
  ] })
1209
1256
  }
1210
1257
  );
1211
1258
  }
1212
1259
  function HashPanel_default(props) {
1213
- return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(HashPanel, { ...props });
1260
+ return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(HashPanel, { ...props });
1214
1261
  }
1215
1262
 
1216
1263
  // src/ui/Switch/index.tsx
1217
- var import_jsx_runtime74 = require("react/jsx-runtime");
1264
+ var import_jsx_runtime75 = require("react/jsx-runtime");
1218
1265
 
1219
1266
  // src/ui/AlphaAvatar/index.tsx
1220
1267
  var import_react14 = require("react");
1221
- var import_jsx_runtime75 = require("react/jsx-runtime");
1268
+ var import_jsx_runtime76 = require("react/jsx-runtime");
1222
1269
  function AlphaAvatar({
1223
1270
  name,
1224
1271
  size = "default",
@@ -1235,7 +1282,7 @@ function AlphaAvatar({
1235
1282
  return "";
1236
1283
  }, [name]);
1237
1284
  const numberSize = typeof size === "number" ? size : size === "sm" ? 24 : size === "default" ? 40 : 64;
1238
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
1285
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
1239
1286
  width: numberSize,
1240
1287
  height: numberSize,
1241
1288
  fontSize: Math.ceil(numberSize / 2),
@@ -1244,7 +1291,7 @@ function AlphaAvatar({
1244
1291
  }
1245
1292
 
1246
1293
  // src/ui/Radio/index.tsx
1247
- var import_jsx_runtime76 = require("react/jsx-runtime");
1294
+ var import_jsx_runtime77 = require("react/jsx-runtime");
1248
1295
  function Radio({
1249
1296
  checked = false,
1250
1297
  onChange,
@@ -1253,23 +1300,23 @@ function Radio({
1253
1300
  className = "",
1254
1301
  style = {}
1255
1302
  }) {
1256
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { onClick: onChange, className: `matchid-radio ${className} ${checked ? "matchid-radio-checked" : ""}`, style: {
1303
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { onClick: onChange, className: `matchid-radio ${className} ${checked ? "matchid-radio-checked" : ""}`, style: {
1257
1304
  width: size,
1258
1305
  height: size,
1259
1306
  ...style,
1260
1307
  // @ts-ignore
1261
1308
  "--matchid-radio-checked": color
1262
- }, children: checked && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: `matchid-radio-content`, style: {
1309
+ }, children: checked && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: `matchid-radio-content`, style: {
1263
1310
  width: Math.floor(size * 0.7),
1264
1311
  height: Math.floor(size * 0.7)
1265
1312
  } }) });
1266
1313
  }
1267
1314
 
1268
1315
  // src/ui/Skeleton/index.tsx
1269
- var import_jsx_runtime77 = require("react/jsx-runtime");
1316
+ var import_jsx_runtime78 = require("react/jsx-runtime");
1270
1317
 
1271
1318
  // src/ui/Tabs/index.tsx
1272
- var import_jsx_runtime78 = require("react/jsx-runtime");
1319
+ var import_jsx_runtime79 = require("react/jsx-runtime");
1273
1320
 
1274
1321
  // src/ui/Lottie/index.tsx
1275
1322
  var import_lottie_react = require("lottie-react");
@@ -1285,7 +1332,7 @@ var LazyLottie = (props) => {
1285
1332
  var Lottie_default = LazyLottie;
1286
1333
 
1287
1334
  // src/ui/Checkbox/index.tsx
1288
- var import_jsx_runtime79 = require("react/jsx-runtime");
1335
+ var import_jsx_runtime80 = require("react/jsx-runtime");
1289
1336
 
1290
1337
  // src/components/EVMModal/index.tsx
1291
1338
  var import_react17 = require("react");
@@ -1323,7 +1370,7 @@ var import_react_intl10 = require("react-intl");
1323
1370
 
1324
1371
  // src/components/WalletModalContent/index.tsx
1325
1372
  var import_react15 = require("react");
1326
- var import_jsx_runtime80 = require("react/jsx-runtime");
1373
+ var import_jsx_runtime81 = require("react/jsx-runtime");
1327
1374
 
1328
1375
  // src/components/EVMModal/index.tsx
1329
1376
  var import_rainbowkit = require("@rainbow-me/rainbowkit");
@@ -1340,7 +1387,7 @@ var import_ethers = require("ethers");
1340
1387
  // src/components/EVMModal/index.tsx
1341
1388
  var import_siwe = require("siwe");
1342
1389
  var import_styles = require("@rainbow-me/rainbowkit/styles.css");
1343
- var import_jsx_runtime81 = require("react/jsx-runtime");
1390
+ var import_jsx_runtime82 = require("react/jsx-runtime");
1344
1391
 
1345
1392
  // src/components/TRONModal/index.tsx
1346
1393
  var import_react19 = __toESM(require("react"));
@@ -1350,13 +1397,13 @@ var import_react_intl11 = require("react-intl");
1350
1397
  var import_react18 = require("react");
1351
1398
 
1352
1399
  // src/components/TRONModal/index.tsx
1353
- var import_jsx_runtime82 = require("react/jsx-runtime");
1400
+ var import_jsx_runtime83 = require("react/jsx-runtime");
1354
1401
 
1355
1402
  // src/components/TONModal/index.tsx
1356
1403
  var import_react20 = __toESM(require("react"));
1357
1404
  var import_react_intl12 = require("react-intl");
1358
1405
  var import_ui_react = require("@tonconnect/ui-react");
1359
- var import_jsx_runtime83 = require("react/jsx-runtime");
1406
+ var import_jsx_runtime84 = require("react/jsx-runtime");
1360
1407
 
1361
1408
  // src/components/BTCModal/index.tsx
1362
1409
  var import_react22 = __toESM(require("react"));
@@ -1369,16 +1416,16 @@ var import_sats_connect = require("sats-connect");
1369
1416
  var import_react21 = require("react");
1370
1417
 
1371
1418
  // src/components/BTCModal/index.tsx
1372
- var import_jsx_runtime84 = require("react/jsx-runtime");
1419
+ var import_jsx_runtime85 = require("react/jsx-runtime");
1373
1420
 
1374
1421
  // src/components/WalletModal/index.tsx
1375
1422
  var import_react23 = require("react");
1376
1423
  var import_react_intl14 = require("react-intl");
1377
- var import_jsx_runtime85 = require("react/jsx-runtime");
1424
+ var import_jsx_runtime86 = require("react/jsx-runtime");
1378
1425
 
1379
1426
  // src/components/AlphaAvatar/index.tsx
1380
1427
  var import_react24 = require("react");
1381
- var import_jsx_runtime86 = require("react/jsx-runtime");
1428
+ var import_jsx_runtime87 = require("react/jsx-runtime");
1382
1429
  function AlphaAvatar2({ name, size = 40, className = "" }) {
1383
1430
  const [avatar, setAvatar] = (0, import_react24.useState)(void 0);
1384
1431
  (0, import_react24.useEffect)(() => {
@@ -1387,7 +1434,7 @@ function AlphaAvatar2({ name, size = 40, className = "" }) {
1387
1434
  setAvatar(char);
1388
1435
  }
1389
1436
  }, [name]);
1390
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
1437
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
1391
1438
  width: size,
1392
1439
  height: size,
1393
1440
  fontSize: Math.ceil(size / 2)
@@ -1395,13 +1442,13 @@ function AlphaAvatar2({ name, size = 40, className = "" }) {
1395
1442
  }
1396
1443
 
1397
1444
  // src/components/WalletAsset/index.tsx
1398
- var import_jsx_runtime87 = require("react/jsx-runtime");
1445
+ var import_jsx_runtime88 = require("react/jsx-runtime");
1399
1446
 
1400
1447
  // src/components/TokenSend/index.tsx
1401
1448
  var import_react25 = require("react");
1402
1449
  var import_viem2 = require("viem");
1403
1450
  var import_react_intl15 = require("react-intl");
1404
- var import_jsx_runtime88 = require("react/jsx-runtime");
1451
+ var import_jsx_runtime89 = require("react/jsx-runtime");
1405
1452
  function Input2({
1406
1453
  onChange,
1407
1454
  placeholder,
@@ -1411,8 +1458,8 @@ function Input2({
1411
1458
  error,
1412
1459
  size = "df"
1413
1460
  }) {
1414
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: `matchid-token-input-box ${"matchid-token-input-" + size}`, children: [
1415
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
1461
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: `matchid-token-input-box ${"matchid-token-input-" + size}`, children: [
1462
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
1416
1463
  "input",
1417
1464
  {
1418
1465
  placeholder,
@@ -1423,7 +1470,7 @@ function Input2({
1423
1470
  className: `matchid-token-input ${error ? "matchid-token-input-error" : ""}`
1424
1471
  }
1425
1472
  ),
1426
- error && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "matchid-token-input-error-text", children: error })
1473
+ error && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "matchid-token-input-error-text", children: error })
1427
1474
  ] });
1428
1475
  }
1429
1476
  function TokenSend({
@@ -1551,24 +1598,24 @@ function TokenSend({
1551
1598
  window.removeEventListener("message", receiveMessage);
1552
1599
  };
1553
1600
  }, []);
1554
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(ModalDrawer, { isOpen: true, onClose, zIndex, title: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_intl15.FormattedMessage, { id: "send" }), onBack, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: `matchid-token-send-box`, children: [
1555
- /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "matchid-token-send-content", children: [
1556
- /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: `matchid-token-amount-content`, children: [
1557
- /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: `matchid-token-amount-header`, children: [
1558
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: `matchid-token-amount-title`, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_intl15.FormattedMessage, { id: "amount" }) }),
1559
- /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: `matchid-token-amount-chain`, children: [
1560
- token.icon ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
1601
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(ModalDrawer, { isOpen: true, onClose, zIndex, title: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_intl15.FormattedMessage, { id: "send" }), onBack, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: `matchid-token-send-box`, children: [
1602
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "matchid-token-send-content", children: [
1603
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: `matchid-token-amount-content`, children: [
1604
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: `matchid-token-amount-header`, children: [
1605
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: `matchid-token-amount-title`, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_intl15.FormattedMessage, { id: "amount" }) }),
1606
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: `matchid-token-amount-chain`, children: [
1607
+ token.icon ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
1561
1608
  "img",
1562
1609
  {
1563
1610
  src: token?.icon,
1564
1611
  alt: token?.symbol,
1565
1612
  className: `matchid-token-amount-chain-icon`
1566
1613
  }
1567
- ) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(AlphaAvatar, { name: token.symbol || token.name || "", size: 16 }),
1568
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { children: token?.symbol })
1614
+ ) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(AlphaAvatar, { name: token.symbol || token.name || "", size: 16 }),
1615
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("span", { children: token?.symbol })
1569
1616
  ] })
1570
1617
  ] }),
1571
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
1618
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
1572
1619
  Input2,
1573
1620
  {
1574
1621
  type: "text",
@@ -1581,18 +1628,18 @@ function TokenSend({
1581
1628
  error: error.amount || txError
1582
1629
  }
1583
1630
  ),
1584
- /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: `matchid-token-amount-footer`, children: [
1585
- /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: `matchid-token-amount-title`, children: [
1586
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_intl15.FormattedMessage, { id: "balance" }),
1631
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: `matchid-token-amount-footer`, children: [
1632
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: `matchid-token-amount-title`, children: [
1633
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_intl15.FormattedMessage, { id: "balance" }),
1587
1634
  ":"
1588
1635
  ] }),
1589
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: `matchid-token-amount-value`, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(NumberFormatter, { value: token.balance, tFixNum: 10, suffix: " " + token.symbol }) })
1636
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: `matchid-token-amount-value`, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(NumberFormatter, { value: token.balance, tFixNum: 10, suffix: " " + token.symbol }) })
1590
1637
  ] }),
1591
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(TransferIcon, { className: "matchid-token-amount-transfer" })
1638
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(TransferIcon, { className: "matchid-token-amount-transfer" })
1592
1639
  ] }),
1593
- /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: `matchid-token-address-content`, children: [
1594
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: `matchid-token-address-header`, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: `matchid-token-address-title`, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_intl15.FormattedMessage, { id: "receiveTitle" }) }) }),
1595
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
1640
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: `matchid-token-address-content`, children: [
1641
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: `matchid-token-address-header`, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: `matchid-token-address-title`, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_intl15.FormattedMessage, { id: "receiveTitle" }) }) }),
1642
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
1596
1643
  Input2,
1597
1644
  {
1598
1645
  type: "text",
@@ -1608,7 +1655,7 @@ function TokenSend({
1608
1655
  )
1609
1656
  ] })
1610
1657
  ] }),
1611
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
1658
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
1612
1659
  Button,
1613
1660
  {
1614
1661
  size: "lg",
@@ -1617,7 +1664,7 @@ function TokenSend({
1617
1664
  disabled: !canSend || !!txError,
1618
1665
  onClick: onNext,
1619
1666
  loading: loading || sending,
1620
- children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_intl15.FormattedMessage, { id: "next" })
1667
+ children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_intl15.FormattedMessage, { id: "next" })
1621
1668
  }
1622
1669
  )
1623
1670
  ] }) });
@@ -1625,12 +1672,12 @@ function TokenSend({
1625
1672
 
1626
1673
  // src/components/TokenDetail/index.tsx
1627
1674
  var import_react_intl16 = require("react-intl");
1628
- var import_jsx_runtime89 = require("react/jsx-runtime");
1675
+ var import_jsx_runtime90 = require("react/jsx-runtime");
1629
1676
 
1630
1677
  // src/components/TokenSendList/index.tsx
1631
1678
  var import_react26 = require("react");
1632
1679
  var import_react_intl17 = require("react-intl");
1633
- var import_jsx_runtime90 = require("react/jsx-runtime");
1680
+ var import_jsx_runtime91 = require("react/jsx-runtime");
1634
1681
  function TokenSendList({ close }) {
1635
1682
  const isDownMd = useDownMd();
1636
1683
  const walletAssets = useMatchWalletAssets();
@@ -1642,16 +1689,16 @@ function TokenSendList({ close }) {
1642
1689
  const modal = useModal();
1643
1690
  const onNext = () => {
1644
1691
  checked && modal.show((props) => {
1645
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(TokenSend, { onClose: () => {
1692
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(TokenSend, { onClose: () => {
1646
1693
  props.close();
1647
1694
  close();
1648
1695
  }, onBack: props.close, zIndex: props.zIndex, token: checked });
1649
1696
  });
1650
1697
  };
1651
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "matchid-token-send-list-box", children: [
1652
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "matchid-token-send-list", children: matchWalletAssetList.list.map((n, index) => {
1698
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "matchid-token-send-list-box", children: [
1699
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: "matchid-token-send-list", children: matchWalletAssetList.list.map((n, index) => {
1653
1700
  const chain = list?.find((m) => m.id.toString() === n.chain_id);
1654
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
1701
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
1655
1702
  "div",
1656
1703
  {
1657
1704
  className: `matchid-token-send-item ${checked?.address == n.address ? "matchid-token-send-chekced" : ""}`,
@@ -1659,10 +1706,10 @@ function TokenSendList({ close }) {
1659
1706
  setChecked(n);
1660
1707
  },
1661
1708
  children: [
1662
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Radio, { checked: checked?.address == n.address, size: isDownMd ? 18 : 24 }),
1663
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "matchid-token-send-content", children: [
1664
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "matchid-token-send-logo", children: [
1665
- n.icon ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("img", { src: n.icon, alt: n.symbol, className: `matchid-token-send-icon` }) : /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
1709
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Radio, { checked: checked?.address == n.address, size: isDownMd ? 18 : 24 }),
1710
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "matchid-token-send-content", children: [
1711
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "matchid-token-send-logo", children: [
1712
+ n.icon ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("img", { src: n.icon, alt: n.symbol, className: `matchid-token-send-icon` }) : /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
1666
1713
  AlphaAvatar2,
1667
1714
  {
1668
1715
  className: `matchid-token-send-icon`,
@@ -1670,7 +1717,7 @@ function TokenSendList({ close }) {
1670
1717
  name: n.symbol || n.name || ""
1671
1718
  }
1672
1719
  ),
1673
- chain?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
1720
+ chain?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
1674
1721
  "img",
1675
1722
  {
1676
1723
  src: chain.iconUrl,
@@ -1679,9 +1726,9 @@ function TokenSendList({ close }) {
1679
1726
  }
1680
1727
  )
1681
1728
  ] }),
1682
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: `matchid-token-send-info`, children: [
1683
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: `matchid-token-send-name`, children: n.symbol }),
1684
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: `matchid-token-send-balance`, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(NumberFormatter, { value: n.balance, tFixNum: 3 }) })
1729
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: `matchid-token-send-info`, children: [
1730
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: `matchid-token-send-name`, children: n.symbol }),
1731
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: `matchid-token-send-balance`, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(NumberFormatter, { value: n.balance, tFixNum: 3 }) })
1685
1732
  ] })
1686
1733
  ] })
1687
1734
  ]
@@ -1689,7 +1736,7 @@ function TokenSendList({ close }) {
1689
1736
  index
1690
1737
  );
1691
1738
  }) }),
1692
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Button, { size: "lg", highlight: true, block: true, disabled: !checked, onClick: onNext, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react_intl17.FormattedMessage, { id: "next" }) })
1739
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Button, { size: "lg", highlight: true, block: true, disabled: !checked, onClick: onNext, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_react_intl17.FormattedMessage, { id: "next" }) })
1693
1740
  ] });
1694
1741
  }
1695
1742
 
@@ -1757,12 +1804,12 @@ var useContractStore_default = useContractStore;
1757
1804
 
1758
1805
  // src/components/TransactionList/index.tsx
1759
1806
  var import_react_intl18 = require("react-intl");
1760
- var import_jsx_runtime91 = require("react/jsx-runtime");
1807
+ var import_jsx_runtime92 = require("react/jsx-runtime");
1761
1808
 
1762
1809
  // src/components/CEXBindModal/index.tsx
1763
1810
  var import_react28 = require("react");
1764
1811
  var import_react_intl19 = require("react-intl");
1765
- var import_jsx_runtime92 = require("react/jsx-runtime");
1812
+ var import_jsx_runtime93 = require("react/jsx-runtime");
1766
1813
 
1767
1814
  // src/context/BusinessProvider.tsx
1768
1815
  var import_react_query3 = require("@tanstack/react-query");
@@ -1780,12 +1827,12 @@ var useStore = (0, import_zustand4.create)((set) => ({
1780
1827
  var useStore_default = useStore;
1781
1828
 
1782
1829
  // src/context/BusinessProvider.tsx
1783
- var import_jsx_runtime93 = require("react/jsx-runtime");
1830
+ var import_jsx_runtime94 = require("react/jsx-runtime");
1784
1831
 
1785
1832
  // src/context/ModalContext.tsx
1786
1833
  var import_react29 = require("react");
1787
1834
  var import_react_dom = require("react-dom");
1788
- var import_jsx_runtime94 = require("react/jsx-runtime");
1835
+ var import_jsx_runtime95 = require("react/jsx-runtime");
1789
1836
  var ModalContext = (0, import_react29.createContext)(null);
1790
1837
  function useModal() {
1791
1838
  const context = (0, import_react29.useContext)(ModalContext);
@@ -1798,7 +1845,7 @@ function useModal() {
1798
1845
  // src/context/ToastContext.tsx
1799
1846
  var import_react30 = require("react");
1800
1847
  var import_react_dom2 = require("react-dom");
1801
- var import_jsx_runtime95 = require("react/jsx-runtime");
1848
+ var import_jsx_runtime96 = require("react/jsx-runtime");
1802
1849
  var ToastContext = (0, import_react30.createContext)(null);
1803
1850
  function useToast() {
1804
1851
  const context = (0, import_react30.useContext)(ToastContext);
@@ -1809,7 +1856,7 @@ function useToast() {
1809
1856
  }
1810
1857
 
1811
1858
  // src/context/index.tsx
1812
- var import_jsx_runtime96 = require("react/jsx-runtime");
1859
+ var import_jsx_runtime97 = require("react/jsx-runtime");
1813
1860
 
1814
1861
  // src/hooks/useWalletInit.ts
1815
1862
  var import_react31 = require("react");
@@ -1889,7 +1936,7 @@ var matchTest = /* @__PURE__ */ (0, import_viem6.defineChain)({
1889
1936
 
1890
1937
  // src/MatchContext.tsx
1891
1938
  var import_wagmi3 = require("wagmi");
1892
- var import_jsx_runtime97 = require("react/jsx-runtime");
1939
+ var import_jsx_runtime98 = require("react/jsx-runtime");
1893
1940
  var queryClient = new import_react_query4.QueryClient();
1894
1941
  var wagmiConfig = (0, import_rainbowkit2.getDefaultConfig)({
1895
1942
  appName: "MatchID",
@@ -2271,7 +2318,7 @@ var useTransactionStore = (0, import_zustand5.create)((0, import_middleware3.dev
2271
2318
  var useTransactionStore_default = useTransactionStore;
2272
2319
 
2273
2320
  // src/hooks/useWallet.tsx
2274
- var import_jsx_runtime98 = require("react/jsx-runtime");
2321
+ var import_jsx_runtime99 = require("react/jsx-runtime");
2275
2322
  var AppClientId2 = "react-sdk-" + getVersion();
2276
2323
  function useWallet() {
2277
2324
  const { address, wallet: walletConfig } = useLocalStore_default();
@@ -2445,12 +2492,12 @@ function useWallet() {
2445
2492
  address: evmAccount.address
2446
2493
  });
2447
2494
  modal.show((props) => {
2448
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, hash: txHash, chain: _chain });
2495
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, hash: txHash, chain: _chain });
2449
2496
  });
2450
2497
  return txHash;
2451
2498
  } catch (error) {
2452
2499
  modal.show((props) => {
2453
- return /* @__PURE__ */ (0, import_jsx_runtime98.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_runtime99.jsx)(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, error: typeof error == "string" ? error : error.details || error.message, chain: _chain });
2454
2501
  });
2455
2502
  throw error;
2456
2503
  }
@@ -2584,7 +2631,7 @@ function useImportTokenListQuery({
2584
2631
  var import_react38 = require("react");
2585
2632
  var import_viem10 = require("viem");
2586
2633
  var import_react_intl21 = require("react-intl");
2587
- var import_jsx_runtime99 = require("react/jsx-runtime");
2634
+ var import_jsx_runtime100 = require("react/jsx-runtime");
2588
2635
  function useMatchChain() {
2589
2636
  const chainListQuery = useChainListQuery();
2590
2637
  const modal = useModal();
@@ -2615,28 +2662,28 @@ function useMatchChain() {
2615
2662
  const { chainId: storeChainId2, setChainId: setChainId2 } = useLocalStore_default();
2616
2663
  const [selectedChainId, setSelectedChainId] = (0, import_react38.useState)(storeChainId2);
2617
2664
  const isDownMd = useDownMd();
2618
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: `matchid-change-network-box`, children: [
2619
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: `matchid-change-network-list`, children: chainListQuery.data?.map((item, index) => {
2620
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(
2665
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: `matchid-change-network-box`, children: [
2666
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: `matchid-change-network-list`, children: chainListQuery.data?.map((item, index) => {
2667
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(
2621
2668
  "div",
2622
2669
  {
2623
2670
  onClick: () => setSelectedChainId(item.id),
2624
2671
  className: `matchid-change-network-item ${selectedChainId == item.id ? "matchid-change-network-selected" : ""}`,
2625
2672
  children: [
2626
- /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: `matchid-change-network-item-content`, children: [
2627
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("img", { src: item.iconUrl, className: `matchid-change-network-item-icon` }),
2628
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("span", { className: "matchid-change-network-item-name", children: item.name })
2673
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: `matchid-change-network-item-content`, children: [
2674
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("img", { src: item.iconUrl, className: `matchid-change-network-item-icon` }),
2675
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("span", { className: "matchid-change-network-item-name", children: item.name })
2629
2676
  ] }),
2630
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Radio, { checked: selectedChainId === item.id, size: isDownMd ? 18 : 24 })
2677
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Radio, { checked: selectedChainId === item.id, size: isDownMd ? 18 : 24 })
2631
2678
  ]
2632
2679
  },
2633
2680
  index
2634
2681
  );
2635
2682
  }) }),
2636
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Button, { size: "lg", highlight: true, onClick: () => {
2683
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Button, { size: "lg", highlight: true, onClick: () => {
2637
2684
  setChainId2(selectedChainId || 0);
2638
2685
  close();
2639
- }, block: true, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_intl21.FormattedMessage, { id: "confirm" }) })
2686
+ }, block: true, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_react_intl21.FormattedMessage, { id: "confirm" }) })
2640
2687
  ] });
2641
2688
  }
2642
2689
  const showChangeNetwork = () => {
@@ -2709,7 +2756,7 @@ function useIsContract({
2709
2756
  }
2710
2757
 
2711
2758
  // src/components/ImportToken/index.tsx
2712
- var import_jsx_runtime100 = require("react/jsx-runtime");
2759
+ var import_jsx_runtime101 = require("react/jsx-runtime");
2713
2760
  function ImportToken({ close }) {
2714
2761
  const [status, setStatus] = (0, import_react39.useState)("");
2715
2762
  const { token } = useUserInfo();
@@ -2820,22 +2867,22 @@ function ImportToken({ close }) {
2820
2867
  enabled: canImport
2821
2868
  });
2822
2869
  if (status == "success" || status == "fail") {
2823
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: `matchid-import-token-result matchid-flex`, children: [
2824
- /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: `matchid-import-token-result-box matchid-flex`, children: [
2825
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: `matchid-import-token-result-img`, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Lottie_default, { animationData: status == "success" ? success_default : fail_default, style: {
2870
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: `matchid-import-token-result matchid-flex`, children: [
2871
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: `matchid-import-token-result-box matchid-flex`, children: [
2872
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: `matchid-import-token-result-img`, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Lottie_default, { animationData: status == "success" ? success_default : fail_default, style: {
2826
2873
  width: "96px",
2827
2874
  height: "96px"
2828
2875
  } }) }),
2829
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: `matchid-import-token-result-text matchid-import-token-result-text-${status}`, children: status == "success" ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_react_intl22.FormattedMessage, { id: "importSuccess" }) : /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_react_intl22.FormattedMessage, { id: "importFail" }) })
2876
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: `matchid-import-token-result-text matchid-import-token-result-text-${status}`, children: status == "success" ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_react_intl22.FormattedMessage, { id: "importSuccess" }) : /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_react_intl22.FormattedMessage, { id: "importFail" }) })
2830
2877
  ] }),
2831
- status == "success" ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Button, { size: "lg", onClick: close, block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_react_intl22.FormattedMessage, { id: "close" }) }) : /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Button, { size: "lg", onClick: () => setStatus(""), block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_react_intl22.FormattedMessage, { id: "back" }) })
2878
+ status == "success" ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Button, { size: "lg", onClick: close, block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_react_intl22.FormattedMessage, { id: "close" }) }) : /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Button, { size: "lg", onClick: () => setStatus(""), block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_react_intl22.FormattedMessage, { id: "back" }) })
2832
2879
  ] });
2833
2880
  }
2834
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: `matchid-import-token`, children: [
2835
- /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: "matchid-import-token-form", children: [
2836
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Field, { label: intl.formatMessage({
2881
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: `matchid-import-token`, children: [
2882
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "matchid-import-token-form", children: [
2883
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Field, { label: intl.formatMessage({
2837
2884
  id: "tokenSmartContract"
2838
- }), error: error.address ? error.address : isContractQuery.isFetched && !isContractQuery.isLoading && !isContractQuery.data && canImport ? "Address isn't a contract address" : "", children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
2885
+ }), error: error.address ? error.address : isContractQuery.isFetched && !isContractQuery.isLoading && !isContractQuery.data && canImport ? "Address isn't a contract address" : "", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
2839
2886
  Input,
2840
2887
  {
2841
2888
  placeholder: intl.formatMessage({
@@ -2846,9 +2893,9 @@ function ImportToken({ close }) {
2846
2893
  maxLength: 42
2847
2894
  }
2848
2895
  ) }),
2849
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Field, { label: intl.formatMessage({
2896
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Field, { label: intl.formatMessage({
2850
2897
  id: "tokenSymbol"
2851
- }), error: error.symbol, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
2898
+ }), error: error.symbol, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
2852
2899
  Input,
2853
2900
  {
2854
2901
  placeholder: intl.formatMessage({
@@ -2859,9 +2906,9 @@ function ImportToken({ close }) {
2859
2906
  maxLength: 16
2860
2907
  }
2861
2908
  ) }),
2862
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Field, { label: intl.formatMessage({
2909
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Field, { label: intl.formatMessage({
2863
2910
  id: "tokenDecimals"
2864
- }), error: error.decimals, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
2911
+ }), error: error.decimals, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
2865
2912
  Input,
2866
2913
  {
2867
2914
  placeholder: intl.formatMessage({
@@ -2873,7 +2920,7 @@ function ImportToken({ close }) {
2873
2920
  }
2874
2921
  ) })
2875
2922
  ] }),
2876
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
2923
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
2877
2924
  Button,
2878
2925
  {
2879
2926
  size: "lg",
@@ -2882,14 +2929,14 @@ function ImportToken({ close }) {
2882
2929
  loading: loading || isContractQuery.isLoading,
2883
2930
  disabled: !canImport || !isContractQuery.data,
2884
2931
  highlight: true,
2885
- children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_react_intl22.FormattedMessage, { id: "import" })
2932
+ children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_react_intl22.FormattedMessage, { id: "import" })
2886
2933
  }
2887
2934
  )
2888
2935
  ] });
2889
2936
  }
2890
2937
 
2891
2938
  // src/hooks/useMatchWallet.tsx
2892
- var import_jsx_runtime101 = require("react/jsx-runtime");
2939
+ var import_jsx_runtime102 = require("react/jsx-runtime");
2893
2940
  var ReceiveModal = () => {
2894
2941
  const chain = useMatchChain();
2895
2942
  const { address } = useWallet();
@@ -2903,10 +2950,10 @@ var ReceiveModal = () => {
2903
2950
  }));
2904
2951
  };
2905
2952
  const chainLink = chain.explorerLink("address/" + address);
2906
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: `matchid-receive-modal`, children: [
2907
- /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "matchid-receive-container", children: [
2908
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: `matchid-receive-text`, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_react_intl23.FormattedMessage, { id: "receiveQrcode" }) }),
2909
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: `matchid-qr-container`, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
2953
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: `matchid-receive-modal`, children: [
2954
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "matchid-receive-container", children: [
2955
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: `matchid-receive-text`, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_react_intl23.FormattedMessage, { id: "receiveQrcode" }) }),
2956
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: `matchid-qr-container`, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
2910
2957
  import_react_qrcode.QRCode,
2911
2958
  {
2912
2959
  margin: "0",
@@ -2914,7 +2961,7 @@ var ReceiveModal = () => {
2914
2961
  value: address
2915
2962
  }
2916
2963
  ) }),
2917
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
2964
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
2918
2965
  "a",
2919
2966
  {
2920
2967
  href: chainLink,
@@ -2924,7 +2971,7 @@ var ReceiveModal = () => {
2924
2971
  }
2925
2972
  )
2926
2973
  ] }),
2927
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Button, { size: "lg", onClick: onCopy, block: true, highlight: true, disabled: copied, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
2974
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Button, { size: "lg", onClick: onCopy, block: true, highlight: true, disabled: copied, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
2928
2975
  import_react_intl23.FormattedMessage,
2929
2976
  {
2930
2977
  id: "copyAddress"