@matchain/matchid-sdk-react 0.1.56-alpha.3 → 0.1.56-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.d.mts +2 -2
- package/dist/api.d.ts +2 -2
- package/dist/api.js +59 -47
- package/dist/api.js.map +1 -1
- package/dist/api.mjs +3 -3
- package/dist/{chunk-M5LCJX2T.mjs → chunk-2SJCPZJQ.mjs} +2 -2
- package/dist/{chunk-FKXS2XRG.mjs → chunk-GD7URBBZ.mjs} +54 -1
- package/dist/chunk-GD7URBBZ.mjs.map +1 -0
- package/dist/{chunk-KDVKIXOS.mjs → chunk-YR46VC65.mjs} +393 -354
- package/dist/chunk-YR46VC65.mjs.map +1 -0
- package/dist/components.d.mts +3 -3
- package/dist/components.d.ts +3 -3
- package/dist/components.js +416 -360
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +2 -2
- package/dist/hooks.d.mts +2 -2
- package/dist/hooks.d.ts +2 -2
- package/dist/hooks.js +234 -178
- package/dist/hooks.js.map +1 -1
- package/dist/hooks.mjs +2 -2
- package/dist/icon.d.mts +2 -2
- package/dist/icon.d.ts +2 -2
- package/dist/icon.js +53 -0
- package/dist/icon.js.map +1 -1
- package/dist/icon.mjs +7 -1
- package/dist/{index-CsUEaGtM.d.ts → index-BcuSCgol.d.ts} +2 -2
- package/dist/{index-CPTgrfjn.d.mts → index-BlMLqmS2.d.mts} +1 -1
- package/dist/{index-B7ZEyP1j.d.ts → index-C1Nyy5zx.d.ts} +1 -1
- package/dist/{index-FKxw4Vaa.d.mts → index-CBcBTQyU.d.mts} +1 -1
- package/dist/{index-BXbfmVoU.d.mts → index-CD0dACxf.d.mts} +2 -2
- package/dist/{index-TjbO7d74.d.mts → index-CER00guz.d.mts} +1 -1
- package/dist/{index-BtjgRcNJ.d.ts → index-CjekOYJl.d.mts} +2 -2
- package/dist/{index-C82WIWvx.d.ts → index-DN-jrh8-.d.ts} +13 -3
- package/dist/{index-BKSGbw7b.d.mts → index-DdN22cwf.d.ts} +2 -2
- package/dist/{index-YPRyEYt6.d.mts → index-DkIIQLbh.d.ts} +10 -4
- package/dist/{index-4dZbgWG2.d.ts → index-DlaCsN95.d.ts} +1 -1
- package/dist/{index-DK7l3lsH.d.ts → index-lh6qBAf_.d.mts} +10 -4
- package/dist/{index-CwHXzvvB.d.ts → index-o0WW1c5O.d.ts} +1 -1
- package/dist/{index-D7E317WV.d.mts → index-xThRnNN3.d.mts} +13 -3
- package/dist/index.css +35 -1
- package/dist/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +497 -412
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/{types-DEsY_CPH.d.mts → types-CheN9vHJ.d.mts} +4 -0
- package/dist/{types-DEsY_CPH.d.ts → types-CheN9vHJ.d.ts} +4 -0
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/ui.d.mts +3 -3
- package/dist/ui.d.ts +3 -3
- package/dist/ui.js +192 -105
- package/dist/ui.js.map +1 -1
- package/dist/ui.mjs +4 -2
- package/example/src/pages/UI/components/Checkbox.tsx +10 -0
- package/example/src/pages/UI/components/Input.tsx +12 -0
- package/example/src/pages/UI/index.tsx +4 -0
- package/package.json +1 -1
- package/dist/chunk-FKXS2XRG.mjs.map +0 -1
- package/dist/chunk-KDVKIXOS.mjs.map +0 -1
- /package/dist/{chunk-M5LCJX2T.mjs.map → chunk-2SJCPZJQ.mjs.map} +0 -0
package/dist/hooks.js
CHANGED
|
@@ -628,6 +628,30 @@ var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
|
628
628
|
// src/assets/icon/MoreIcon.tsx
|
|
629
629
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
630
630
|
|
|
631
|
+
// src/assets/icon/CheckboxIcon.tsx
|
|
632
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
633
|
+
|
|
634
|
+
// src/assets/icon/CheckboxCheckedIcon.tsx
|
|
635
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
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
|
+
|
|
631
655
|
// src/hooks/useLayout.tsx
|
|
632
656
|
var useLayout_exports = {};
|
|
633
657
|
__export(useLayout_exports, {
|
|
@@ -649,7 +673,7 @@ function useDownMd() {
|
|
|
649
673
|
}
|
|
650
674
|
|
|
651
675
|
// src/hooks/useConfig.tsx
|
|
652
|
-
var
|
|
676
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
653
677
|
var DEFAULT_WALLET_METHODS = ["evm", "sol", "btc", "tron", "ton"];
|
|
654
678
|
|
|
655
679
|
// src/store/useModalStore.ts
|
|
@@ -699,7 +723,7 @@ var import_react3 = require("react");
|
|
|
699
723
|
|
|
700
724
|
// src/ui/Overlay/index.tsx
|
|
701
725
|
var import_react2 = require("react");
|
|
702
|
-
var
|
|
726
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
703
727
|
function Overlay({
|
|
704
728
|
isOpen = false,
|
|
705
729
|
children,
|
|
@@ -715,7 +739,7 @@ function Overlay({
|
|
|
715
739
|
document.body.style.overflow = "";
|
|
716
740
|
};
|
|
717
741
|
}, [isOpen]);
|
|
718
|
-
return isOpen ? /* @__PURE__ */ (0,
|
|
742
|
+
return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
719
743
|
"div",
|
|
720
744
|
{
|
|
721
745
|
className: "matchid-overlay",
|
|
@@ -724,12 +748,12 @@ function Overlay({
|
|
|
724
748
|
},
|
|
725
749
|
children
|
|
726
750
|
}
|
|
727
|
-
) : /* @__PURE__ */ (0,
|
|
751
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_jsx_runtime55.Fragment, {});
|
|
728
752
|
}
|
|
729
753
|
|
|
730
754
|
// src/ui/Modal/index.tsx
|
|
731
755
|
var import_react_intl = require("react-intl");
|
|
732
|
-
var
|
|
756
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
733
757
|
function Modal({
|
|
734
758
|
children,
|
|
735
759
|
isOpen,
|
|
@@ -737,10 +761,10 @@ function Modal({
|
|
|
737
761
|
zIndex = 100,
|
|
738
762
|
className = ""
|
|
739
763
|
}) {
|
|
740
|
-
return /* @__PURE__ */ (0,
|
|
764
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: `matchid-modal ${className}`, style: {
|
|
741
765
|
width
|
|
742
766
|
}, children: [
|
|
743
|
-
/* @__PURE__ */ (0,
|
|
767
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "matchid-modal-mobile-header" }),
|
|
744
768
|
children
|
|
745
769
|
] }) });
|
|
746
770
|
}
|
|
@@ -754,13 +778,13 @@ function ModalWithHeader({
|
|
|
754
778
|
...props
|
|
755
779
|
}) {
|
|
756
780
|
const isDownMd = useDownMd();
|
|
757
|
-
return /* @__PURE__ */ (0,
|
|
758
|
-
/* @__PURE__ */ (0,
|
|
759
|
-
/* @__PURE__ */ (0,
|
|
760
|
-
onBack && /* @__PURE__ */ (0,
|
|
761
|
-
/* @__PURE__ */ (0,
|
|
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 })
|
|
762
786
|
] }),
|
|
763
|
-
onClose && /* @__PURE__ */ (0,
|
|
787
|
+
onClose && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30, className: "matchid-modal-header-close", onClick: onClose })
|
|
764
788
|
] }),
|
|
765
789
|
children
|
|
766
790
|
] });
|
|
@@ -771,7 +795,7 @@ var import_react5 = require("react");
|
|
|
771
795
|
|
|
772
796
|
// src/utils/index.tsx
|
|
773
797
|
var import_moment = __toESM(require("moment"));
|
|
774
|
-
var
|
|
798
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
775
799
|
var getVersion = () => {
|
|
776
800
|
return "0.0.2";
|
|
777
801
|
};
|
|
@@ -803,10 +827,10 @@ var NumberFormatter = ({
|
|
|
803
827
|
const [intPart, decimalPart] = numberValue.toString().split(".");
|
|
804
828
|
const intFormat = separator ? intPart.replace(/\B(?=(\d{3})+(?!\d))/g, ",") : intPart;
|
|
805
829
|
if (Math.abs(parseFloat(numberValue)) >= 1) {
|
|
806
|
-
return /* @__PURE__ */ (0,
|
|
807
|
-
prefix && /* @__PURE__ */ (0,
|
|
808
|
-
/* @__PURE__ */ (0,
|
|
809
|
-
decimalPart ? /* @__PURE__ */ (0,
|
|
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: [
|
|
810
834
|
".",
|
|
811
835
|
decimalPart.substring(0, fixNum)
|
|
812
836
|
] }) : "",
|
|
@@ -823,30 +847,30 @@ var NumberFormatter = ({
|
|
|
823
847
|
}
|
|
824
848
|
}
|
|
825
849
|
if (zeroCount < tFixNum) {
|
|
826
|
-
return /* @__PURE__ */ (0,
|
|
827
|
-
prefix && /* @__PURE__ */ (0,
|
|
828
|
-
/* @__PURE__ */ (0,
|
|
829
|
-
/* @__PURE__ */ (0,
|
|
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: [
|
|
830
854
|
".",
|
|
831
855
|
decimalPart.substring(0, tFixNum)
|
|
832
856
|
] }),
|
|
833
857
|
suffix
|
|
834
858
|
] });
|
|
835
859
|
}
|
|
836
|
-
return /* @__PURE__ */ (0,
|
|
837
|
-
prefix && /* @__PURE__ */ (0,
|
|
838
|
-
/* @__PURE__ */ (0,
|
|
839
|
-
/* @__PURE__ */ (0,
|
|
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: [
|
|
840
864
|
".0",
|
|
841
|
-
/* @__PURE__ */ (0,
|
|
865
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("sub", { children: zeroCount }),
|
|
842
866
|
decimalPart?.substring(zeroCount, zeroCount + tFixNum - 2)
|
|
843
867
|
] }),
|
|
844
868
|
suffix
|
|
845
869
|
] });
|
|
846
870
|
}
|
|
847
|
-
return /* @__PURE__ */ (0,
|
|
848
|
-
prefix && /* @__PURE__ */ (0,
|
|
849
|
-
/* @__PURE__ */ (0,
|
|
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 }),
|
|
850
874
|
suffix
|
|
851
875
|
] });
|
|
852
876
|
};
|
|
@@ -855,7 +879,7 @@ var isInTgApp = () => {
|
|
|
855
879
|
};
|
|
856
880
|
|
|
857
881
|
// src/ui/Button/index.tsx
|
|
858
|
-
var
|
|
882
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
859
883
|
function Button({
|
|
860
884
|
size = "df",
|
|
861
885
|
disabled = false,
|
|
@@ -875,7 +899,7 @@ function Button({
|
|
|
875
899
|
onClick && onClick();
|
|
876
900
|
}
|
|
877
901
|
};
|
|
878
|
-
return /* @__PURE__ */ (0,
|
|
902
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
879
903
|
"button",
|
|
880
904
|
{
|
|
881
905
|
type,
|
|
@@ -886,34 +910,55 @@ function Button({
|
|
|
886
910
|
},
|
|
887
911
|
onClick: onAction,
|
|
888
912
|
...dataset,
|
|
889
|
-
children: loading ? /* @__PURE__ */ (0,
|
|
913
|
+
children: loading ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(LoadingIcon_default, { className: "matchid-btn-loading-icon", color: "var(--matchid-btn-loading-color)" }) : children
|
|
890
914
|
}
|
|
891
915
|
);
|
|
892
916
|
}
|
|
893
917
|
|
|
894
918
|
// src/ui/Input/index.tsx
|
|
895
919
|
var import_react4 = require("react");
|
|
896
|
-
var
|
|
920
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
897
921
|
function Input({
|
|
898
922
|
onChange,
|
|
899
923
|
type,
|
|
900
924
|
after,
|
|
925
|
+
showLength = false,
|
|
926
|
+
showClear = true,
|
|
901
927
|
className = "",
|
|
928
|
+
rows = 1,
|
|
929
|
+
maxRows = 4,
|
|
930
|
+
children,
|
|
902
931
|
...props
|
|
903
932
|
}) {
|
|
904
933
|
const [inputType, setInputType] = (0, import_react4.useState)(type);
|
|
905
934
|
const isDownMd = useDownMd();
|
|
906
|
-
|
|
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)(
|
|
907
946
|
"div",
|
|
908
947
|
{
|
|
909
|
-
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
|
+
},
|
|
910
953
|
children: [
|
|
911
|
-
/* @__PURE__ */ (0,
|
|
912
|
-
|
|
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) => {
|
|
913
958
|
if (onChange) {
|
|
914
959
|
onChange({ target: { value: "" } });
|
|
915
960
|
}
|
|
916
|
-
}, children: /* @__PURE__ */ (0,
|
|
961
|
+
}, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
917
962
|
DeleteRoundIcon,
|
|
918
963
|
{
|
|
919
964
|
height: isDownMd ? 16 : 21,
|
|
@@ -921,9 +966,17 @@ function Input({
|
|
|
921
966
|
color: "var(--matchid-input-delete-icon-color)"
|
|
922
967
|
}
|
|
923
968
|
) }),
|
|
924
|
-
type === "password" && /* @__PURE__ */ (0,
|
|
969
|
+
type === "password" && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "matchid-input-eye-icon", onClick: () => {
|
|
925
970
|
setInputType(inputType === "password" ? "text" : "password");
|
|
926
|
-
}, children: inputType === "password" ? /* @__PURE__ */ (0,
|
|
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
|
+
] }),
|
|
927
980
|
after
|
|
928
981
|
]
|
|
929
982
|
}
|
|
@@ -931,7 +984,7 @@ function Input({
|
|
|
931
984
|
}
|
|
932
985
|
|
|
933
986
|
// src/ui/Field/index.tsx
|
|
934
|
-
var
|
|
987
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
935
988
|
function Field({
|
|
936
989
|
label,
|
|
937
990
|
children,
|
|
@@ -939,19 +992,19 @@ function Field({
|
|
|
939
992
|
required,
|
|
940
993
|
className = ""
|
|
941
994
|
}) {
|
|
942
|
-
return /* @__PURE__ */ (0,
|
|
943
|
-
/* @__PURE__ */ (0,
|
|
944
|
-
required && /* @__PURE__ */ (0,
|
|
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: "*" }),
|
|
945
998
|
label
|
|
946
999
|
] }),
|
|
947
1000
|
children,
|
|
948
|
-
error && /* @__PURE__ */ (0,
|
|
1001
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "matchid-field-error", children: error })
|
|
949
1002
|
] });
|
|
950
1003
|
}
|
|
951
1004
|
|
|
952
1005
|
// src/components/EmailModal/StepEmail.tsx
|
|
953
1006
|
var import_react_intl2 = require("react-intl");
|
|
954
|
-
var
|
|
1007
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
955
1008
|
|
|
956
1009
|
// src/components/EmailModal/StepVerify.tsx
|
|
957
1010
|
var import_react6 = require("react");
|
|
@@ -961,15 +1014,15 @@ var NATIVE_TOKEN_ADDRESS = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
|
|
|
961
1014
|
|
|
962
1015
|
// src/components/EmailModal/StepVerify.tsx
|
|
963
1016
|
var import_react_intl3 = require("react-intl");
|
|
964
|
-
var
|
|
1017
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
965
1018
|
|
|
966
1019
|
// src/components/EmailModal/index.tsx
|
|
967
1020
|
var import_react_intl4 = require("react-intl");
|
|
968
|
-
var
|
|
1021
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
969
1022
|
|
|
970
1023
|
// src/ui/Popover/index.tsx
|
|
971
1024
|
var import_react8 = require("react");
|
|
972
|
-
var
|
|
1025
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
973
1026
|
|
|
974
1027
|
// src/components/LoginBox/index.tsx
|
|
975
1028
|
var import_react9 = require("react");
|
|
@@ -979,39 +1032,39 @@ var import_react_intl5 = require("react-intl");
|
|
|
979
1032
|
var import_react_query = require("@tanstack/react-query");
|
|
980
1033
|
|
|
981
1034
|
// src/components/LoginBox/index.tsx
|
|
982
|
-
var
|
|
1035
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
983
1036
|
|
|
984
1037
|
// src/components/LoginButton/index.tsx
|
|
985
1038
|
var import_react11 = require("react");
|
|
986
1039
|
|
|
987
1040
|
// src/components/LoginPanel/index.tsx
|
|
988
1041
|
var import_react_intl6 = require("react-intl");
|
|
989
|
-
var
|
|
1042
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
990
1043
|
|
|
991
1044
|
// src/components/LoginModal/index.tsx
|
|
992
|
-
var
|
|
1045
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
993
1046
|
|
|
994
1047
|
// src/components/UserPopover/index.tsx
|
|
995
1048
|
var import_react10 = require("react");
|
|
996
1049
|
|
|
997
1050
|
// src/assets/icon/ProfileIcon.tsx
|
|
998
|
-
var
|
|
1051
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
999
1052
|
|
|
1000
1053
|
// src/components/UserPopover/index.tsx
|
|
1001
1054
|
var import_react_intl7 = require("react-intl");
|
|
1002
|
-
var
|
|
1055
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
1003
1056
|
|
|
1004
1057
|
// src/components/LoginButton/index.tsx
|
|
1005
1058
|
var import_react_intl8 = require("react-intl");
|
|
1006
|
-
var
|
|
1059
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
1007
1060
|
|
|
1008
1061
|
// src/components/UsernameModal/index.tsx
|
|
1009
1062
|
var import_react12 = require("react");
|
|
1010
1063
|
var import_react_intl9 = require("react-intl");
|
|
1011
|
-
var
|
|
1064
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
1012
1065
|
|
|
1013
1066
|
// src/ui/Drawer/index.tsx
|
|
1014
|
-
var
|
|
1067
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
1015
1068
|
function Drawer({
|
|
1016
1069
|
children,
|
|
1017
1070
|
showClose = true,
|
|
@@ -1022,15 +1075,15 @@ function Drawer({
|
|
|
1022
1075
|
onBack
|
|
1023
1076
|
}) {
|
|
1024
1077
|
if (!isOpen) {
|
|
1025
|
-
return /* @__PURE__ */ (0,
|
|
1078
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_jsx_runtime72.Fragment, {});
|
|
1026
1079
|
}
|
|
1027
|
-
return /* @__PURE__ */ (0,
|
|
1028
|
-
/* @__PURE__ */ (0,
|
|
1029
|
-
/* @__PURE__ */ (0,
|
|
1030
|
-
onBack && /* @__PURE__ */ (0,
|
|
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 }),
|
|
1031
1084
|
title
|
|
1032
1085
|
] }),
|
|
1033
|
-
showClose && /* @__PURE__ */ (0,
|
|
1086
|
+
showClose && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(CloseRoundIcon, { className: "matchid-drawer-header-close", onClick: onClose })
|
|
1034
1087
|
] }),
|
|
1035
1088
|
children
|
|
1036
1089
|
] }) });
|
|
@@ -1040,7 +1093,7 @@ function Drawer({
|
|
|
1040
1093
|
var import_react13 = require("react");
|
|
1041
1094
|
|
|
1042
1095
|
// src/ui/ModalDrawer/index.tsx
|
|
1043
|
-
var
|
|
1096
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
1044
1097
|
function ModalDrawer({
|
|
1045
1098
|
title,
|
|
1046
1099
|
drawerTitleVisible = true,
|
|
@@ -1048,9 +1101,9 @@ function ModalDrawer({
|
|
|
1048
1101
|
}) {
|
|
1049
1102
|
const isDownMd = useDownMd();
|
|
1050
1103
|
if (isDownMd) {
|
|
1051
|
-
return /* @__PURE__ */ (0,
|
|
1104
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(ModalWithHeader, { ...props, title });
|
|
1052
1105
|
}
|
|
1053
|
-
return /* @__PURE__ */ (0,
|
|
1106
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Drawer, { ...props, title: drawerTitleVisible ? title : null });
|
|
1054
1107
|
}
|
|
1055
1108
|
|
|
1056
1109
|
// src/assets/lottie/confirm.json
|
|
@@ -1106,7 +1159,7 @@ function useHash({
|
|
|
1106
1159
|
}
|
|
1107
1160
|
|
|
1108
1161
|
// src/ui/HashPanel/index.tsx
|
|
1109
|
-
var
|
|
1162
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
1110
1163
|
function HashPanel({
|
|
1111
1164
|
hash,
|
|
1112
1165
|
chain,
|
|
@@ -1166,14 +1219,14 @@ function HashPanel({
|
|
|
1166
1219
|
}
|
|
1167
1220
|
}, [hashQuery.data]);
|
|
1168
1221
|
const link = chain ? `${chain?.blockExplorers?.default.url}/tx/${hash}` : "";
|
|
1169
|
-
return /* @__PURE__ */ (0,
|
|
1222
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
1170
1223
|
ModalDrawer,
|
|
1171
1224
|
{
|
|
1172
1225
|
isOpen,
|
|
1173
1226
|
showClose: true,
|
|
1174
1227
|
onClose,
|
|
1175
1228
|
zIndex,
|
|
1176
|
-
title: /* @__PURE__ */ (0,
|
|
1229
|
+
title: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
1177
1230
|
"div",
|
|
1178
1231
|
{
|
|
1179
1232
|
className: "matchid-hashpanel-header",
|
|
@@ -1183,36 +1236,36 @@ function HashPanel({
|
|
|
1183
1236
|
children: statusValue.text
|
|
1184
1237
|
}
|
|
1185
1238
|
),
|
|
1186
|
-
children: /* @__PURE__ */ (0,
|
|
1187
|
-
/* @__PURE__ */ (0,
|
|
1188
|
-
/* @__PURE__ */ (0,
|
|
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: {
|
|
1189
1242
|
color: statusValue.color
|
|
1190
1243
|
}, children: statusValue.text }),
|
|
1191
|
-
statusValue.lottie && /* @__PURE__ */ (0,
|
|
1244
|
+
statusValue.lottie && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Lottie_default, { animationData: statusValue.lottie, style: {
|
|
1192
1245
|
width: "96px",
|
|
1193
1246
|
height: "96px"
|
|
1194
1247
|
} }),
|
|
1195
|
-
hash && /* @__PURE__ */ (0,
|
|
1248
|
+
hash && /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "matchid-hashpanel-hash", children: [
|
|
1196
1249
|
"Hash:",
|
|
1197
|
-
/* @__PURE__ */ (0,
|
|
1250
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("a", { href: link, target: "_blank", children: hash })
|
|
1198
1251
|
] }),
|
|
1199
|
-
error && /* @__PURE__ */ (0,
|
|
1252
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "matchid-hashpanel-text", children: error })
|
|
1200
1253
|
] }),
|
|
1201
|
-
/* @__PURE__ */ (0,
|
|
1254
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Button, { onClick: onClose, size: "lg", block: true, children: "Back" })
|
|
1202
1255
|
] })
|
|
1203
1256
|
}
|
|
1204
1257
|
);
|
|
1205
1258
|
}
|
|
1206
1259
|
function HashPanel_default(props) {
|
|
1207
|
-
return props.isOpen && /* @__PURE__ */ (0,
|
|
1260
|
+
return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(HashPanel, { ...props });
|
|
1208
1261
|
}
|
|
1209
1262
|
|
|
1210
1263
|
// src/ui/Switch/index.tsx
|
|
1211
|
-
var
|
|
1264
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
1212
1265
|
|
|
1213
1266
|
// src/ui/AlphaAvatar/index.tsx
|
|
1214
1267
|
var import_react14 = require("react");
|
|
1215
|
-
var
|
|
1268
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
1216
1269
|
function AlphaAvatar({
|
|
1217
1270
|
name,
|
|
1218
1271
|
size = "default",
|
|
@@ -1229,7 +1282,7 @@ function AlphaAvatar({
|
|
|
1229
1282
|
return "";
|
|
1230
1283
|
}, [name]);
|
|
1231
1284
|
const numberSize = typeof size === "number" ? size : size === "sm" ? 24 : size === "default" ? 40 : 64;
|
|
1232
|
-
return /* @__PURE__ */ (0,
|
|
1285
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
|
|
1233
1286
|
width: numberSize,
|
|
1234
1287
|
height: numberSize,
|
|
1235
1288
|
fontSize: Math.ceil(numberSize / 2),
|
|
@@ -1238,7 +1291,7 @@ function AlphaAvatar({
|
|
|
1238
1291
|
}
|
|
1239
1292
|
|
|
1240
1293
|
// src/ui/Radio/index.tsx
|
|
1241
|
-
var
|
|
1294
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
1242
1295
|
function Radio({
|
|
1243
1296
|
checked = false,
|
|
1244
1297
|
onChange,
|
|
@@ -1247,23 +1300,23 @@ function Radio({
|
|
|
1247
1300
|
className = "",
|
|
1248
1301
|
style = {}
|
|
1249
1302
|
}) {
|
|
1250
|
-
return /* @__PURE__ */ (0,
|
|
1303
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { onClick: onChange, className: `matchid-radio ${className} ${checked ? "matchid-radio-checked" : ""}`, style: {
|
|
1251
1304
|
width: size,
|
|
1252
1305
|
height: size,
|
|
1253
1306
|
...style,
|
|
1254
1307
|
// @ts-ignore
|
|
1255
1308
|
"--matchid-radio-checked": color
|
|
1256
|
-
}, children: checked && /* @__PURE__ */ (0,
|
|
1309
|
+
}, children: checked && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: `matchid-radio-content`, style: {
|
|
1257
1310
|
width: Math.floor(size * 0.7),
|
|
1258
1311
|
height: Math.floor(size * 0.7)
|
|
1259
1312
|
} }) });
|
|
1260
1313
|
}
|
|
1261
1314
|
|
|
1262
1315
|
// src/ui/Skeleton/index.tsx
|
|
1263
|
-
var
|
|
1316
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
1264
1317
|
|
|
1265
1318
|
// src/ui/Tabs/index.tsx
|
|
1266
|
-
var
|
|
1319
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
1267
1320
|
|
|
1268
1321
|
// src/ui/Lottie/index.tsx
|
|
1269
1322
|
var import_lottie_react = require("lottie-react");
|
|
@@ -1278,6 +1331,9 @@ var LazyLottie = (props) => {
|
|
|
1278
1331
|
};
|
|
1279
1332
|
var Lottie_default = LazyLottie;
|
|
1280
1333
|
|
|
1334
|
+
// src/ui/Checkbox/index.tsx
|
|
1335
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
1336
|
+
|
|
1281
1337
|
// src/components/EVMModal/index.tsx
|
|
1282
1338
|
var import_react17 = require("react");
|
|
1283
1339
|
|
|
@@ -1314,7 +1370,7 @@ var import_react_intl10 = require("react-intl");
|
|
|
1314
1370
|
|
|
1315
1371
|
// src/components/WalletModalContent/index.tsx
|
|
1316
1372
|
var import_react15 = require("react");
|
|
1317
|
-
var
|
|
1373
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
1318
1374
|
|
|
1319
1375
|
// src/components/EVMModal/index.tsx
|
|
1320
1376
|
var import_rainbowkit = require("@rainbow-me/rainbowkit");
|
|
@@ -1331,7 +1387,7 @@ var import_ethers = require("ethers");
|
|
|
1331
1387
|
// src/components/EVMModal/index.tsx
|
|
1332
1388
|
var import_siwe = require("siwe");
|
|
1333
1389
|
var import_styles = require("@rainbow-me/rainbowkit/styles.css");
|
|
1334
|
-
var
|
|
1390
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
1335
1391
|
|
|
1336
1392
|
// src/components/TRONModal/index.tsx
|
|
1337
1393
|
var import_react19 = __toESM(require("react"));
|
|
@@ -1341,13 +1397,13 @@ var import_react_intl11 = require("react-intl");
|
|
|
1341
1397
|
var import_react18 = require("react");
|
|
1342
1398
|
|
|
1343
1399
|
// src/components/TRONModal/index.tsx
|
|
1344
|
-
var
|
|
1400
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
1345
1401
|
|
|
1346
1402
|
// src/components/TONModal/index.tsx
|
|
1347
1403
|
var import_react20 = __toESM(require("react"));
|
|
1348
1404
|
var import_react_intl12 = require("react-intl");
|
|
1349
1405
|
var import_ui_react = require("@tonconnect/ui-react");
|
|
1350
|
-
var
|
|
1406
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
1351
1407
|
|
|
1352
1408
|
// src/components/BTCModal/index.tsx
|
|
1353
1409
|
var import_react22 = __toESM(require("react"));
|
|
@@ -1360,16 +1416,16 @@ var import_sats_connect = require("sats-connect");
|
|
|
1360
1416
|
var import_react21 = require("react");
|
|
1361
1417
|
|
|
1362
1418
|
// src/components/BTCModal/index.tsx
|
|
1363
|
-
var
|
|
1419
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
1364
1420
|
|
|
1365
1421
|
// src/components/WalletModal/index.tsx
|
|
1366
1422
|
var import_react23 = require("react");
|
|
1367
1423
|
var import_react_intl14 = require("react-intl");
|
|
1368
|
-
var
|
|
1424
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
1369
1425
|
|
|
1370
1426
|
// src/components/AlphaAvatar/index.tsx
|
|
1371
1427
|
var import_react24 = require("react");
|
|
1372
|
-
var
|
|
1428
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
1373
1429
|
function AlphaAvatar2({ name, size = 40, className = "" }) {
|
|
1374
1430
|
const [avatar, setAvatar] = (0, import_react24.useState)(void 0);
|
|
1375
1431
|
(0, import_react24.useEffect)(() => {
|
|
@@ -1378,7 +1434,7 @@ function AlphaAvatar2({ name, size = 40, className = "" }) {
|
|
|
1378
1434
|
setAvatar(char);
|
|
1379
1435
|
}
|
|
1380
1436
|
}, [name]);
|
|
1381
|
-
return /* @__PURE__ */ (0,
|
|
1437
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
|
|
1382
1438
|
width: size,
|
|
1383
1439
|
height: size,
|
|
1384
1440
|
fontSize: Math.ceil(size / 2)
|
|
@@ -1386,13 +1442,13 @@ function AlphaAvatar2({ name, size = 40, className = "" }) {
|
|
|
1386
1442
|
}
|
|
1387
1443
|
|
|
1388
1444
|
// src/components/WalletAsset/index.tsx
|
|
1389
|
-
var
|
|
1445
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
1390
1446
|
|
|
1391
1447
|
// src/components/TokenSend/index.tsx
|
|
1392
1448
|
var import_react25 = require("react");
|
|
1393
1449
|
var import_viem2 = require("viem");
|
|
1394
1450
|
var import_react_intl15 = require("react-intl");
|
|
1395
|
-
var
|
|
1451
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
1396
1452
|
function Input2({
|
|
1397
1453
|
onChange,
|
|
1398
1454
|
placeholder,
|
|
@@ -1402,8 +1458,8 @@ function Input2({
|
|
|
1402
1458
|
error,
|
|
1403
1459
|
size = "df"
|
|
1404
1460
|
}) {
|
|
1405
|
-
return /* @__PURE__ */ (0,
|
|
1406
|
-
/* @__PURE__ */ (0,
|
|
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)(
|
|
1407
1463
|
"input",
|
|
1408
1464
|
{
|
|
1409
1465
|
placeholder,
|
|
@@ -1414,7 +1470,7 @@ function Input2({
|
|
|
1414
1470
|
className: `matchid-token-input ${error ? "matchid-token-input-error" : ""}`
|
|
1415
1471
|
}
|
|
1416
1472
|
),
|
|
1417
|
-
error && /* @__PURE__ */ (0,
|
|
1473
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "matchid-token-input-error-text", children: error })
|
|
1418
1474
|
] });
|
|
1419
1475
|
}
|
|
1420
1476
|
function TokenSend({
|
|
@@ -1542,24 +1598,24 @@ function TokenSend({
|
|
|
1542
1598
|
window.removeEventListener("message", receiveMessage);
|
|
1543
1599
|
};
|
|
1544
1600
|
}, []);
|
|
1545
|
-
return /* @__PURE__ */ (0,
|
|
1546
|
-
/* @__PURE__ */ (0,
|
|
1547
|
-
/* @__PURE__ */ (0,
|
|
1548
|
-
/* @__PURE__ */ (0,
|
|
1549
|
-
/* @__PURE__ */ (0,
|
|
1550
|
-
/* @__PURE__ */ (0,
|
|
1551
|
-
token.icon ? /* @__PURE__ */ (0,
|
|
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)(
|
|
1552
1608
|
"img",
|
|
1553
1609
|
{
|
|
1554
1610
|
src: token?.icon,
|
|
1555
1611
|
alt: token?.symbol,
|
|
1556
1612
|
className: `matchid-token-amount-chain-icon`
|
|
1557
1613
|
}
|
|
1558
|
-
) : /* @__PURE__ */ (0,
|
|
1559
|
-
/* @__PURE__ */ (0,
|
|
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 })
|
|
1560
1616
|
] })
|
|
1561
1617
|
] }),
|
|
1562
|
-
/* @__PURE__ */ (0,
|
|
1618
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
1563
1619
|
Input2,
|
|
1564
1620
|
{
|
|
1565
1621
|
type: "text",
|
|
@@ -1572,18 +1628,18 @@ function TokenSend({
|
|
|
1572
1628
|
error: error.amount || txError
|
|
1573
1629
|
}
|
|
1574
1630
|
),
|
|
1575
|
-
/* @__PURE__ */ (0,
|
|
1576
|
-
/* @__PURE__ */ (0,
|
|
1577
|
-
/* @__PURE__ */ (0,
|
|
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" }),
|
|
1578
1634
|
":"
|
|
1579
1635
|
] }),
|
|
1580
|
-
/* @__PURE__ */ (0,
|
|
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 }) })
|
|
1581
1637
|
] }),
|
|
1582
|
-
/* @__PURE__ */ (0,
|
|
1638
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(TransferIcon, { className: "matchid-token-amount-transfer" })
|
|
1583
1639
|
] }),
|
|
1584
|
-
/* @__PURE__ */ (0,
|
|
1585
|
-
/* @__PURE__ */ (0,
|
|
1586
|
-
/* @__PURE__ */ (0,
|
|
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)(
|
|
1587
1643
|
Input2,
|
|
1588
1644
|
{
|
|
1589
1645
|
type: "text",
|
|
@@ -1599,7 +1655,7 @@ function TokenSend({
|
|
|
1599
1655
|
)
|
|
1600
1656
|
] })
|
|
1601
1657
|
] }),
|
|
1602
|
-
/* @__PURE__ */ (0,
|
|
1658
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
1603
1659
|
Button,
|
|
1604
1660
|
{
|
|
1605
1661
|
size: "lg",
|
|
@@ -1608,7 +1664,7 @@ function TokenSend({
|
|
|
1608
1664
|
disabled: !canSend || !!txError,
|
|
1609
1665
|
onClick: onNext,
|
|
1610
1666
|
loading: loading || sending,
|
|
1611
|
-
children: /* @__PURE__ */ (0,
|
|
1667
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_intl15.FormattedMessage, { id: "next" })
|
|
1612
1668
|
}
|
|
1613
1669
|
)
|
|
1614
1670
|
] }) });
|
|
@@ -1616,12 +1672,12 @@ function TokenSend({
|
|
|
1616
1672
|
|
|
1617
1673
|
// src/components/TokenDetail/index.tsx
|
|
1618
1674
|
var import_react_intl16 = require("react-intl");
|
|
1619
|
-
var
|
|
1675
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
1620
1676
|
|
|
1621
1677
|
// src/components/TokenSendList/index.tsx
|
|
1622
1678
|
var import_react26 = require("react");
|
|
1623
1679
|
var import_react_intl17 = require("react-intl");
|
|
1624
|
-
var
|
|
1680
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
1625
1681
|
function TokenSendList({ close }) {
|
|
1626
1682
|
const isDownMd = useDownMd();
|
|
1627
1683
|
const walletAssets = useMatchWalletAssets();
|
|
@@ -1633,16 +1689,16 @@ function TokenSendList({ close }) {
|
|
|
1633
1689
|
const modal = useModal();
|
|
1634
1690
|
const onNext = () => {
|
|
1635
1691
|
checked && modal.show((props) => {
|
|
1636
|
-
return /* @__PURE__ */ (0,
|
|
1692
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(TokenSend, { onClose: () => {
|
|
1637
1693
|
props.close();
|
|
1638
1694
|
close();
|
|
1639
1695
|
}, onBack: props.close, zIndex: props.zIndex, token: checked });
|
|
1640
1696
|
});
|
|
1641
1697
|
};
|
|
1642
|
-
return /* @__PURE__ */ (0,
|
|
1643
|
-
/* @__PURE__ */ (0,
|
|
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) => {
|
|
1644
1700
|
const chain = list?.find((m) => m.id.toString() === n.chain_id);
|
|
1645
|
-
return /* @__PURE__ */ (0,
|
|
1701
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
|
|
1646
1702
|
"div",
|
|
1647
1703
|
{
|
|
1648
1704
|
className: `matchid-token-send-item ${checked?.address == n.address ? "matchid-token-send-chekced" : ""}`,
|
|
@@ -1650,10 +1706,10 @@ function TokenSendList({ close }) {
|
|
|
1650
1706
|
setChecked(n);
|
|
1651
1707
|
},
|
|
1652
1708
|
children: [
|
|
1653
|
-
/* @__PURE__ */ (0,
|
|
1654
|
-
/* @__PURE__ */ (0,
|
|
1655
|
-
/* @__PURE__ */ (0,
|
|
1656
|
-
n.icon ? /* @__PURE__ */ (0,
|
|
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)(
|
|
1657
1713
|
AlphaAvatar2,
|
|
1658
1714
|
{
|
|
1659
1715
|
className: `matchid-token-send-icon`,
|
|
@@ -1661,7 +1717,7 @@ function TokenSendList({ close }) {
|
|
|
1661
1717
|
name: n.symbol || n.name || ""
|
|
1662
1718
|
}
|
|
1663
1719
|
),
|
|
1664
|
-
chain?.iconUrl && /* @__PURE__ */ (0,
|
|
1720
|
+
chain?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
1665
1721
|
"img",
|
|
1666
1722
|
{
|
|
1667
1723
|
src: chain.iconUrl,
|
|
@@ -1670,9 +1726,9 @@ function TokenSendList({ close }) {
|
|
|
1670
1726
|
}
|
|
1671
1727
|
)
|
|
1672
1728
|
] }),
|
|
1673
|
-
/* @__PURE__ */ (0,
|
|
1674
|
-
/* @__PURE__ */ (0,
|
|
1675
|
-
/* @__PURE__ */ (0,
|
|
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 }) })
|
|
1676
1732
|
] })
|
|
1677
1733
|
] })
|
|
1678
1734
|
]
|
|
@@ -1680,7 +1736,7 @@ function TokenSendList({ close }) {
|
|
|
1680
1736
|
index
|
|
1681
1737
|
);
|
|
1682
1738
|
}) }),
|
|
1683
|
-
/* @__PURE__ */ (0,
|
|
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" }) })
|
|
1684
1740
|
] });
|
|
1685
1741
|
}
|
|
1686
1742
|
|
|
@@ -1748,12 +1804,12 @@ var useContractStore_default = useContractStore;
|
|
|
1748
1804
|
|
|
1749
1805
|
// src/components/TransactionList/index.tsx
|
|
1750
1806
|
var import_react_intl18 = require("react-intl");
|
|
1751
|
-
var
|
|
1807
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
1752
1808
|
|
|
1753
1809
|
// src/components/CEXBindModal/index.tsx
|
|
1754
1810
|
var import_react28 = require("react");
|
|
1755
1811
|
var import_react_intl19 = require("react-intl");
|
|
1756
|
-
var
|
|
1812
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
1757
1813
|
|
|
1758
1814
|
// src/context/BusinessProvider.tsx
|
|
1759
1815
|
var import_react_query3 = require("@tanstack/react-query");
|
|
@@ -1771,12 +1827,12 @@ var useStore = (0, import_zustand4.create)((set) => ({
|
|
|
1771
1827
|
var useStore_default = useStore;
|
|
1772
1828
|
|
|
1773
1829
|
// src/context/BusinessProvider.tsx
|
|
1774
|
-
var
|
|
1830
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
1775
1831
|
|
|
1776
1832
|
// src/context/ModalContext.tsx
|
|
1777
1833
|
var import_react29 = require("react");
|
|
1778
1834
|
var import_react_dom = require("react-dom");
|
|
1779
|
-
var
|
|
1835
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
1780
1836
|
var ModalContext = (0, import_react29.createContext)(null);
|
|
1781
1837
|
function useModal() {
|
|
1782
1838
|
const context = (0, import_react29.useContext)(ModalContext);
|
|
@@ -1789,7 +1845,7 @@ function useModal() {
|
|
|
1789
1845
|
// src/context/ToastContext.tsx
|
|
1790
1846
|
var import_react30 = require("react");
|
|
1791
1847
|
var import_react_dom2 = require("react-dom");
|
|
1792
|
-
var
|
|
1848
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
1793
1849
|
var ToastContext = (0, import_react30.createContext)(null);
|
|
1794
1850
|
function useToast() {
|
|
1795
1851
|
const context = (0, import_react30.useContext)(ToastContext);
|
|
@@ -1800,7 +1856,7 @@ function useToast() {
|
|
|
1800
1856
|
}
|
|
1801
1857
|
|
|
1802
1858
|
// src/context/index.tsx
|
|
1803
|
-
var
|
|
1859
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
1804
1860
|
|
|
1805
1861
|
// src/hooks/useWalletInit.ts
|
|
1806
1862
|
var import_react31 = require("react");
|
|
@@ -1880,7 +1936,7 @@ var matchTest = /* @__PURE__ */ (0, import_viem6.defineChain)({
|
|
|
1880
1936
|
|
|
1881
1937
|
// src/MatchContext.tsx
|
|
1882
1938
|
var import_wagmi3 = require("wagmi");
|
|
1883
|
-
var
|
|
1939
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
1884
1940
|
var queryClient = new import_react_query4.QueryClient();
|
|
1885
1941
|
var wagmiConfig = (0, import_rainbowkit2.getDefaultConfig)({
|
|
1886
1942
|
appName: "MatchID",
|
|
@@ -2262,7 +2318,7 @@ var useTransactionStore = (0, import_zustand5.create)((0, import_middleware3.dev
|
|
|
2262
2318
|
var useTransactionStore_default = useTransactionStore;
|
|
2263
2319
|
|
|
2264
2320
|
// src/hooks/useWallet.tsx
|
|
2265
|
-
var
|
|
2321
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
2266
2322
|
var AppClientId2 = "react-sdk-" + getVersion();
|
|
2267
2323
|
function useWallet() {
|
|
2268
2324
|
const { address, wallet: walletConfig } = useLocalStore_default();
|
|
@@ -2436,12 +2492,12 @@ function useWallet() {
|
|
|
2436
2492
|
address: evmAccount.address
|
|
2437
2493
|
});
|
|
2438
2494
|
modal.show((props) => {
|
|
2439
|
-
return /* @__PURE__ */ (0,
|
|
2495
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, hash: txHash, chain: _chain });
|
|
2440
2496
|
});
|
|
2441
2497
|
return txHash;
|
|
2442
2498
|
} catch (error) {
|
|
2443
2499
|
modal.show((props) => {
|
|
2444
|
-
return /* @__PURE__ */ (0,
|
|
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 });
|
|
2445
2501
|
});
|
|
2446
2502
|
throw error;
|
|
2447
2503
|
}
|
|
@@ -2575,7 +2631,7 @@ function useImportTokenListQuery({
|
|
|
2575
2631
|
var import_react38 = require("react");
|
|
2576
2632
|
var import_viem10 = require("viem");
|
|
2577
2633
|
var import_react_intl21 = require("react-intl");
|
|
2578
|
-
var
|
|
2634
|
+
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
2579
2635
|
function useMatchChain() {
|
|
2580
2636
|
const chainListQuery = useChainListQuery();
|
|
2581
2637
|
const modal = useModal();
|
|
@@ -2606,28 +2662,28 @@ function useMatchChain() {
|
|
|
2606
2662
|
const { chainId: storeChainId2, setChainId: setChainId2 } = useLocalStore_default();
|
|
2607
2663
|
const [selectedChainId, setSelectedChainId] = (0, import_react38.useState)(storeChainId2);
|
|
2608
2664
|
const isDownMd = useDownMd();
|
|
2609
|
-
return /* @__PURE__ */ (0,
|
|
2610
|
-
/* @__PURE__ */ (0,
|
|
2611
|
-
return /* @__PURE__ */ (0,
|
|
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)(
|
|
2612
2668
|
"div",
|
|
2613
2669
|
{
|
|
2614
2670
|
onClick: () => setSelectedChainId(item.id),
|
|
2615
2671
|
className: `matchid-change-network-item ${selectedChainId == item.id ? "matchid-change-network-selected" : ""}`,
|
|
2616
2672
|
children: [
|
|
2617
|
-
/* @__PURE__ */ (0,
|
|
2618
|
-
/* @__PURE__ */ (0,
|
|
2619
|
-
/* @__PURE__ */ (0,
|
|
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 })
|
|
2620
2676
|
] }),
|
|
2621
|
-
/* @__PURE__ */ (0,
|
|
2677
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Radio, { checked: selectedChainId === item.id, size: isDownMd ? 18 : 24 })
|
|
2622
2678
|
]
|
|
2623
2679
|
},
|
|
2624
2680
|
index
|
|
2625
2681
|
);
|
|
2626
2682
|
}) }),
|
|
2627
|
-
/* @__PURE__ */ (0,
|
|
2683
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Button, { size: "lg", highlight: true, onClick: () => {
|
|
2628
2684
|
setChainId2(selectedChainId || 0);
|
|
2629
2685
|
close();
|
|
2630
|
-
}, block: true, children: /* @__PURE__ */ (0,
|
|
2686
|
+
}, block: true, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_react_intl21.FormattedMessage, { id: "confirm" }) })
|
|
2631
2687
|
] });
|
|
2632
2688
|
}
|
|
2633
2689
|
const showChangeNetwork = () => {
|
|
@@ -2700,7 +2756,7 @@ function useIsContract({
|
|
|
2700
2756
|
}
|
|
2701
2757
|
|
|
2702
2758
|
// src/components/ImportToken/index.tsx
|
|
2703
|
-
var
|
|
2759
|
+
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
2704
2760
|
function ImportToken({ close }) {
|
|
2705
2761
|
const [status, setStatus] = (0, import_react39.useState)("");
|
|
2706
2762
|
const { token } = useUserInfo();
|
|
@@ -2811,22 +2867,22 @@ function ImportToken({ close }) {
|
|
|
2811
2867
|
enabled: canImport
|
|
2812
2868
|
});
|
|
2813
2869
|
if (status == "success" || status == "fail") {
|
|
2814
|
-
return /* @__PURE__ */ (0,
|
|
2815
|
-
/* @__PURE__ */ (0,
|
|
2816
|
-
/* @__PURE__ */ (0,
|
|
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: {
|
|
2817
2873
|
width: "96px",
|
|
2818
2874
|
height: "96px"
|
|
2819
2875
|
} }) }),
|
|
2820
|
-
/* @__PURE__ */ (0,
|
|
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" }) })
|
|
2821
2877
|
] }),
|
|
2822
|
-
status == "success" ? /* @__PURE__ */ (0,
|
|
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" }) })
|
|
2823
2879
|
] });
|
|
2824
2880
|
}
|
|
2825
|
-
return /* @__PURE__ */ (0,
|
|
2826
|
-
/* @__PURE__ */ (0,
|
|
2827
|
-
/* @__PURE__ */ (0,
|
|
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({
|
|
2828
2884
|
id: "tokenSmartContract"
|
|
2829
|
-
}), error: error.address ? error.address : isContractQuery.isFetched && !isContractQuery.isLoading && !isContractQuery.data && canImport ? "Address isn't a contract address" : "", children: /* @__PURE__ */ (0,
|
|
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)(
|
|
2830
2886
|
Input,
|
|
2831
2887
|
{
|
|
2832
2888
|
placeholder: intl.formatMessage({
|
|
@@ -2837,9 +2893,9 @@ function ImportToken({ close }) {
|
|
|
2837
2893
|
maxLength: 42
|
|
2838
2894
|
}
|
|
2839
2895
|
) }),
|
|
2840
|
-
/* @__PURE__ */ (0,
|
|
2896
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Field, { label: intl.formatMessage({
|
|
2841
2897
|
id: "tokenSymbol"
|
|
2842
|
-
}), error: error.symbol, children: /* @__PURE__ */ (0,
|
|
2898
|
+
}), error: error.symbol, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
2843
2899
|
Input,
|
|
2844
2900
|
{
|
|
2845
2901
|
placeholder: intl.formatMessage({
|
|
@@ -2850,9 +2906,9 @@ function ImportToken({ close }) {
|
|
|
2850
2906
|
maxLength: 16
|
|
2851
2907
|
}
|
|
2852
2908
|
) }),
|
|
2853
|
-
/* @__PURE__ */ (0,
|
|
2909
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Field, { label: intl.formatMessage({
|
|
2854
2910
|
id: "tokenDecimals"
|
|
2855
|
-
}), error: error.decimals, children: /* @__PURE__ */ (0,
|
|
2911
|
+
}), error: error.decimals, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
2856
2912
|
Input,
|
|
2857
2913
|
{
|
|
2858
2914
|
placeholder: intl.formatMessage({
|
|
@@ -2864,7 +2920,7 @@ function ImportToken({ close }) {
|
|
|
2864
2920
|
}
|
|
2865
2921
|
) })
|
|
2866
2922
|
] }),
|
|
2867
|
-
/* @__PURE__ */ (0,
|
|
2923
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
2868
2924
|
Button,
|
|
2869
2925
|
{
|
|
2870
2926
|
size: "lg",
|
|
@@ -2873,14 +2929,14 @@ function ImportToken({ close }) {
|
|
|
2873
2929
|
loading: loading || isContractQuery.isLoading,
|
|
2874
2930
|
disabled: !canImport || !isContractQuery.data,
|
|
2875
2931
|
highlight: true,
|
|
2876
|
-
children: /* @__PURE__ */ (0,
|
|
2932
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_react_intl22.FormattedMessage, { id: "import" })
|
|
2877
2933
|
}
|
|
2878
2934
|
)
|
|
2879
2935
|
] });
|
|
2880
2936
|
}
|
|
2881
2937
|
|
|
2882
2938
|
// src/hooks/useMatchWallet.tsx
|
|
2883
|
-
var
|
|
2939
|
+
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
2884
2940
|
var ReceiveModal = () => {
|
|
2885
2941
|
const chain = useMatchChain();
|
|
2886
2942
|
const { address } = useWallet();
|
|
@@ -2894,10 +2950,10 @@ var ReceiveModal = () => {
|
|
|
2894
2950
|
}));
|
|
2895
2951
|
};
|
|
2896
2952
|
const chainLink = chain.explorerLink("address/" + address);
|
|
2897
|
-
return /* @__PURE__ */ (0,
|
|
2898
|
-
/* @__PURE__ */ (0,
|
|
2899
|
-
/* @__PURE__ */ (0,
|
|
2900
|
-
/* @__PURE__ */ (0,
|
|
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)(
|
|
2901
2957
|
import_react_qrcode.QRCode,
|
|
2902
2958
|
{
|
|
2903
2959
|
margin: "0",
|
|
@@ -2905,7 +2961,7 @@ var ReceiveModal = () => {
|
|
|
2905
2961
|
value: address
|
|
2906
2962
|
}
|
|
2907
2963
|
) }),
|
|
2908
|
-
/* @__PURE__ */ (0,
|
|
2964
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
2909
2965
|
"a",
|
|
2910
2966
|
{
|
|
2911
2967
|
href: chainLink,
|
|
@@ -2915,7 +2971,7 @@ var ReceiveModal = () => {
|
|
|
2915
2971
|
}
|
|
2916
2972
|
)
|
|
2917
2973
|
] }),
|
|
2918
|
-
/* @__PURE__ */ (0,
|
|
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)(
|
|
2919
2975
|
import_react_intl23.FormattedMessage,
|
|
2920
2976
|
{
|
|
2921
2977
|
id: "copyAddress"
|