@matchain/matchid-sdk-react 0.1.52 → 0.1.53-alpha.1
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/{chunk-OL4R4SZU.mjs → chunk-2DVC6WCN.mjs} +105 -92
- package/dist/chunk-2DVC6WCN.mjs.map +1 -0
- package/dist/{chunk-KJQKG6RI.mjs → chunk-6QTW3KXN.mjs} +2 -2
- package/dist/components/index.js +61 -57
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +2 -2
- package/dist/hooks/api/index.js +29 -26
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +3 -3
- package/dist/hooks/index.js +21 -17
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.css +18 -5
- package/dist/index.js +97 -84
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/example/dist/assets/TransportWebHID-BEu7tC0r.js +1 -0
- package/example/dist/assets/bignumber-iG7K-qxw.js +10 -0
- package/example/dist/assets/ccip-a6wQ1Vcb.js +1 -0
- package/example/dist/assets/draggabilly-CRYR_S0q.js +14 -0
- package/example/dist/assets/index--dp9m9Ep.js +1 -0
- package/example/dist/assets/index-BDTHolFv.js +569 -0
- package/example/dist/assets/index-BZl59qLb.js +179 -0
- package/example/dist/assets/index-BmMbYNHO.js +303 -0
- package/example/dist/assets/index-C7cxVRDF.js +1677 -0
- package/example/dist/assets/index-CJk171Yb.js +1 -0
- package/example/dist/assets/index-CQiBesAa.js +3 -0
- package/example/dist/assets/index-D62loNA9.js +3 -0
- package/example/dist/assets/index-DqyX3FG6.js +1 -0
- package/example/dist/assets/index-Gy3FXGhr.css +1 -0
- package/example/dist/assets/inherits_browser-BlmhoU4v.js +1 -0
- package/example/dist/assets/solanaEmbed.esm-Djn-u4Vn.js +38 -0
- package/example/dist/index.html +14 -0
- package/example/package.json +2 -1
- package/example/src/App.tsx +18 -5
- package/example/src/store/useLocalStore.ts +9 -0
- package/package.json +1 -1
- package/dist/chunk-OL4R4SZU.mjs.map +0 -1
- /package/dist/{chunk-KJQKG6RI.mjs.map → chunk-6QTW3KXN.mjs.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -1931,7 +1931,9 @@ var useStore = (0, import_zustand3.create)((set) => ({
|
|
|
1931
1931
|
walletReady: false,
|
|
1932
1932
|
setWalletReady: (inited) => set({ walletReady: inited }),
|
|
1933
1933
|
tgAppAuthCode: "",
|
|
1934
|
-
setTgAppAuthCode: (code) => set({ tgAppAuthCode: code })
|
|
1934
|
+
setTgAppAuthCode: (code) => set({ tgAppAuthCode: code }),
|
|
1935
|
+
emailLoginKey: "",
|
|
1936
|
+
setEmailLoginKey: (key) => set({ emailLoginKey: key })
|
|
1935
1937
|
}));
|
|
1936
1938
|
var useStore_default = useStore;
|
|
1937
1939
|
|
|
@@ -1950,7 +1952,7 @@ function useUserInfo() {
|
|
|
1950
1952
|
locale,
|
|
1951
1953
|
refreshOverview
|
|
1952
1954
|
} = useLocalStore_default();
|
|
1953
|
-
const { setTgAppAuthCode } = useStore_default();
|
|
1955
|
+
const { setTgAppAuthCode, emailLoginKey, setEmailLoginKey } = useStore_default();
|
|
1954
1956
|
const { events, login } = useMatch();
|
|
1955
1957
|
const { open: SOLOpen } = useSOLModalStore();
|
|
1956
1958
|
const { open: TRONOpen } = useTRONModalStore();
|
|
@@ -2028,7 +2030,7 @@ function useUserInfo() {
|
|
|
2028
2030
|
case "evm":
|
|
2029
2031
|
return window.open(`${endpoints.auth}login/wallet?appid=${appid}&locale=${locale}`);
|
|
2030
2032
|
case "sol":
|
|
2031
|
-
return
|
|
2033
|
+
return window.open(`${endpoints.auth}login/sol?appid=${appid}&locale=${locale}`);
|
|
2032
2034
|
case "tron":
|
|
2033
2035
|
return TRONOpen("login");
|
|
2034
2036
|
case "ton":
|
|
@@ -2052,7 +2054,7 @@ function useUserInfo() {
|
|
|
2052
2054
|
const getLoginEmailCode = async (email) => {
|
|
2053
2055
|
const res = await getEmailCodeApi(email);
|
|
2054
2056
|
if (isSuccess(res)) {
|
|
2055
|
-
|
|
2057
|
+
setEmailLoginKey(res.data.key);
|
|
2056
2058
|
return res.data.key;
|
|
2057
2059
|
}
|
|
2058
2060
|
throw new Error(res.message);
|
|
@@ -2064,7 +2066,7 @@ function useUserInfo() {
|
|
|
2064
2066
|
try {
|
|
2065
2067
|
const obj = {
|
|
2066
2068
|
email,
|
|
2067
|
-
verification_key:
|
|
2069
|
+
verification_key: emailLoginKey,
|
|
2068
2070
|
verification_code: code
|
|
2069
2071
|
};
|
|
2070
2072
|
const res = await verifyEmailCodeApi(obj);
|
|
@@ -3253,10 +3255,12 @@ function useWalletAssetListQuery({
|
|
|
3253
3255
|
// src/hooks/useMatchChain.tsx
|
|
3254
3256
|
var import_react13 = require("react");
|
|
3255
3257
|
var import_viem5 = require("viem");
|
|
3258
|
+
var import_react_intl = require("react-intl");
|
|
3256
3259
|
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
3257
3260
|
function useMatchChain() {
|
|
3258
3261
|
const chainListQuery = useChainListQuery();
|
|
3259
3262
|
const modal = useModal();
|
|
3263
|
+
const intl = (0, import_react_intl.useIntl)();
|
|
3260
3264
|
const { chainId: storeChainId, setChainId } = useLocalStore_default();
|
|
3261
3265
|
const chainId = (0, import_react13.useMemo)(() => {
|
|
3262
3266
|
if (!chainListQuery.data || !chainListQuery.data.length) {
|
|
@@ -3304,12 +3308,12 @@ function useMatchChain() {
|
|
|
3304
3308
|
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Button, { size: "lg", highlight: true, onClick: () => {
|
|
3305
3309
|
setChainId2(selectedChainId || 0);
|
|
3306
3310
|
close();
|
|
3307
|
-
}, block: true, children: "
|
|
3311
|
+
}, block: true, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_intl.FormattedMessage, { id: "confirm" }) })
|
|
3308
3312
|
] });
|
|
3309
3313
|
}
|
|
3310
3314
|
const showChangeNetwork = () => {
|
|
3311
3315
|
modal.open({
|
|
3312
|
-
title: "
|
|
3316
|
+
title: intl.formatMessage({ id: "changeNetwork" }),
|
|
3313
3317
|
content: ChangeNetwork
|
|
3314
3318
|
});
|
|
3315
3319
|
};
|
|
@@ -3372,10 +3376,10 @@ var import_react16 = require("react");
|
|
|
3372
3376
|
|
|
3373
3377
|
// src/components/EmailModal/StepEmail.tsx
|
|
3374
3378
|
var import_react14 = require("react");
|
|
3375
|
-
var
|
|
3379
|
+
var import_react_intl2 = require("react-intl");
|
|
3376
3380
|
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
3377
3381
|
function StepEmail(props) {
|
|
3378
|
-
const intl = (0,
|
|
3382
|
+
const intl = (0, import_react_intl2.useIntl)();
|
|
3379
3383
|
const [emailVal, setEmailVal] = (0, import_react14.useState)("");
|
|
3380
3384
|
(0, import_react14.useEffect)(() => {
|
|
3381
3385
|
if (props.email) {
|
|
@@ -3403,7 +3407,7 @@ function StepEmail(props) {
|
|
|
3403
3407
|
) }),
|
|
3404
3408
|
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Button, { disabled: !canContinue, style: {
|
|
3405
3409
|
marginTop: "64px"
|
|
3406
|
-
}, onClick: onContinue, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3410
|
+
}, onClick: onContinue, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react_intl2.FormattedMessage, { id: "continue" }) })
|
|
3407
3411
|
] });
|
|
3408
3412
|
}
|
|
3409
3413
|
|
|
@@ -3416,10 +3420,10 @@ var EMAIL_CODE_LENGTH = 6;
|
|
|
3416
3420
|
var NATIVE_TOKEN_ADDRESS = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
|
|
3417
3421
|
|
|
3418
3422
|
// src/components/EmailModal/StepVerify.tsx
|
|
3419
|
-
var
|
|
3423
|
+
var import_react_intl3 = require("react-intl");
|
|
3420
3424
|
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
3421
3425
|
function StepVerify(props) {
|
|
3422
|
-
const intl = (0,
|
|
3426
|
+
const intl = (0, import_react_intl3.useIntl)();
|
|
3423
3427
|
const { getLoginEmailCode, loginByEmail } = useUserInfo();
|
|
3424
3428
|
const [error, setError] = (0, import_react15.useState)("");
|
|
3425
3429
|
const [code, setCode] = (0, import_react15.useState)("");
|
|
@@ -3499,7 +3503,7 @@ function StepVerify(props) {
|
|
|
3499
3503
|
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "matchid-email-verify-header-icon", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(EmailLineIcon, { size: isDownMd ? 19 : 24 }) }),
|
|
3500
3504
|
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "matchid-email-verify-header-content", children: [
|
|
3501
3505
|
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "matchid-email-verify-header-value", children: props.email }),
|
|
3502
|
-
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "matchid-email-verify-header-tips", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
3506
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "matchid-email-verify-header-tips", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react_intl3.FormattedMessage, { id: "sendEmailTips" }) })
|
|
3503
3507
|
] })
|
|
3504
3508
|
] }),
|
|
3505
3509
|
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Field, { label: intl.formatMessage({
|
|
@@ -3533,12 +3537,12 @@ function StepVerify(props) {
|
|
|
3533
3537
|
)
|
|
3534
3538
|
}
|
|
3535
3539
|
) }),
|
|
3536
|
-
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Button, { disabled: !canContinue, highlight: true, block: true, size: "lg", onClick: onContinue, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
3540
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Button, { disabled: !canContinue, highlight: true, block: true, size: "lg", onClick: onContinue, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react_intl3.FormattedMessage, { id: "continue" }) })
|
|
3537
3541
|
] });
|
|
3538
3542
|
}
|
|
3539
3543
|
|
|
3540
3544
|
// src/components/EmailModal/index.tsx
|
|
3541
|
-
var
|
|
3545
|
+
var import_react_intl4 = require("react-intl");
|
|
3542
3546
|
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
3543
3547
|
function EmailModal({
|
|
3544
3548
|
isOpen = false,
|
|
@@ -3549,7 +3553,7 @@ function EmailModal({
|
|
|
3549
3553
|
}) {
|
|
3550
3554
|
const [step, setStep] = (0, import_react16.useState)("input");
|
|
3551
3555
|
const [emailVal, setEmailVal] = (0, import_react16.useState)("");
|
|
3552
|
-
const intl = (0,
|
|
3556
|
+
const intl = (0, import_react_intl4.useIntl)();
|
|
3553
3557
|
(0, import_react16.useEffect)(() => {
|
|
3554
3558
|
if (!isOpen) {
|
|
3555
3559
|
setStep("input");
|
|
@@ -3576,7 +3580,7 @@ function EmailModal({
|
|
|
3576
3580
|
|
|
3577
3581
|
// src/components/LoginBox/index.tsx
|
|
3578
3582
|
var import_react17 = require("react");
|
|
3579
|
-
var
|
|
3583
|
+
var import_react_intl5 = require("react-intl");
|
|
3580
3584
|
|
|
3581
3585
|
// src/hooks/useAppConfig.ts
|
|
3582
3586
|
var import_react_query3 = require("@tanstack/react-query");
|
|
@@ -3691,7 +3695,7 @@ function LoginBox({
|
|
|
3691
3695
|
const [emailOpen, setEmailOpen] = (0, import_react17.useState)(false);
|
|
3692
3696
|
const { login } = useUserInfo();
|
|
3693
3697
|
const [showWallet, setShowWallet] = (0, import_react17.useState)(false);
|
|
3694
|
-
const intl = (0,
|
|
3698
|
+
const intl = (0, import_react_intl5.useIntl)();
|
|
3695
3699
|
const isDownMd = useDownMd();
|
|
3696
3700
|
const methodMap = {
|
|
3697
3701
|
wallet: {
|
|
@@ -3807,7 +3811,7 @@ function LoginBox({
|
|
|
3807
3811
|
);
|
|
3808
3812
|
}) }),
|
|
3809
3813
|
methodConfig.methods.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "matchid-login-other", children: [
|
|
3810
|
-
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "matchid-login-other-text", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
3814
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "matchid-login-other-text", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react_intl5.FormattedMessage, { id: "otherLoginMethods" }) }),
|
|
3811
3815
|
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "matchid-login-method-box", children: methodConfig.methods.map((m) => {
|
|
3812
3816
|
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
3813
3817
|
"div",
|
|
@@ -3841,7 +3845,7 @@ function LoginBox({
|
|
|
3841
3845
|
var import_react19 = require("react");
|
|
3842
3846
|
|
|
3843
3847
|
// src/components/LoginPanel/index.tsx
|
|
3844
|
-
var
|
|
3848
|
+
var import_react_intl6 = require("react-intl");
|
|
3845
3849
|
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
3846
3850
|
function LoginPanel({
|
|
3847
3851
|
header,
|
|
@@ -3852,8 +3856,8 @@ function LoginPanel({
|
|
|
3852
3856
|
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "matchid-login-panel", children: [
|
|
3853
3857
|
header ? header : /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "matchid-login-panel-header", children: [
|
|
3854
3858
|
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "matchid-login-panel-header-content", children: [
|
|
3855
|
-
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "matchid-login-panel-header-title", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3856
|
-
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "matchid-login-panel-header-subtilte", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3859
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "matchid-login-panel-header-title", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react_intl6.FormattedMessage, { id: "loginTitle" }) }),
|
|
3860
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "matchid-login-panel-header-subtilte", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react_intl6.FormattedMessage, { id: "loginTips" }) })
|
|
3857
3861
|
] }),
|
|
3858
3862
|
onClose && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "matchid-login-panel-header-close", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30 }) })
|
|
3859
3863
|
] }),
|
|
@@ -3909,7 +3913,7 @@ function ProfileIcon({ size = 24, color = "black", ...props }) {
|
|
|
3909
3913
|
}
|
|
3910
3914
|
|
|
3911
3915
|
// src/components/UserPopover/index.tsx
|
|
3912
|
-
var
|
|
3916
|
+
var import_react_intl7 = require("react-intl");
|
|
3913
3917
|
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
3914
3918
|
function UserContent() {
|
|
3915
3919
|
const { logout, address, username } = useUserInfo();
|
|
@@ -3944,7 +3948,7 @@ function UserContent() {
|
|
|
3944
3948
|
};
|
|
3945
3949
|
const [usernameOpen, setUsernameOpen] = (0, import_react18.useState)(false);
|
|
3946
3950
|
const [copied, setCopied] = useCopyClipboard();
|
|
3947
|
-
const intl = (0,
|
|
3951
|
+
const intl = (0, import_react_intl7.useIntl)();
|
|
3948
3952
|
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "matchid-user-popover-content", children: [
|
|
3949
3953
|
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "matchid-user-popover-list", children: [
|
|
3950
3954
|
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(UserItem, { onClick: () => {
|
|
@@ -3957,7 +3961,7 @@ function UserContent() {
|
|
|
3957
3961
|
id: "setUsername"
|
|
3958
3962
|
}) })
|
|
3959
3963
|
] }),
|
|
3960
|
-
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Button, { onClick: onLogout, loading: logouting, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3964
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Button, { onClick: onLogout, loading: logouting, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react_intl7.FormattedMessage, { id: "disconnect" }) }),
|
|
3961
3965
|
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(UsernameModal, { isOpen: usernameOpen, onClose: () => {
|
|
3962
3966
|
setUsernameOpen(false);
|
|
3963
3967
|
}, onSuccess: () => {
|
|
@@ -3973,7 +3977,7 @@ function UserPopover({
|
|
|
3973
3977
|
}
|
|
3974
3978
|
|
|
3975
3979
|
// src/components/LoginButton/index.tsx
|
|
3976
|
-
var
|
|
3980
|
+
var import_react_intl8 = require("react-intl");
|
|
3977
3981
|
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
3978
3982
|
function LoginButton({
|
|
3979
3983
|
loginRender,
|
|
@@ -3986,7 +3990,7 @@ function LoginButton({
|
|
|
3986
3990
|
walletMethods,
|
|
3987
3991
|
...props
|
|
3988
3992
|
}) {
|
|
3989
|
-
const intl = (0,
|
|
3993
|
+
const intl = (0, import_react_intl8.useIntl)();
|
|
3990
3994
|
const { isLogin, username } = useUserInfo();
|
|
3991
3995
|
const [loginOpen, setLoginOpen] = (0, import_react19.useState)(false);
|
|
3992
3996
|
if (!isLogin) {
|
|
@@ -4003,7 +4007,7 @@ function LoginButton({
|
|
|
4003
4007
|
),
|
|
4004
4008
|
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(Button, { className: "matchid-unlogin-btn", ...props, highlight: true, onClick: () => setLoginOpen(true), children: [
|
|
4005
4009
|
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(UnLoginIcon_default, {}),
|
|
4006
|
-
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4010
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react_intl8.FormattedMessage, { id: "login" }) })
|
|
4007
4011
|
] })
|
|
4008
4012
|
] });
|
|
4009
4013
|
}
|
|
@@ -4017,7 +4021,7 @@ function LoginButton({
|
|
|
4017
4021
|
|
|
4018
4022
|
// src/components/UsernameModal/index.tsx
|
|
4019
4023
|
var import_react20 = require("react");
|
|
4020
|
-
var
|
|
4024
|
+
var import_react_intl9 = require("react-intl");
|
|
4021
4025
|
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
4022
4026
|
var ValidItem = ({
|
|
4023
4027
|
success = false,
|
|
@@ -4073,7 +4077,7 @@ function UsernameModal({
|
|
|
4073
4077
|
setIsSubmitting(false);
|
|
4074
4078
|
}
|
|
4075
4079
|
};
|
|
4076
|
-
const intl = (0,
|
|
4080
|
+
const intl = (0, import_react_intl9.useIntl)();
|
|
4077
4081
|
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(ModalWithHeader, { isOpen: isOpen && isLogin, ...props, title: title || intl.formatMessage({
|
|
4078
4082
|
id: username ? "editUsernameTitle" : "setUsernameTitle"
|
|
4079
4083
|
}), children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "matchid-username-box", children: [
|
|
@@ -4108,10 +4112,10 @@ function UsernameModal({
|
|
|
4108
4112
|
] }),
|
|
4109
4113
|
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Button, { disabled: !isSafe, loading: isSubmitting, style: {
|
|
4110
4114
|
marginTop: isDownMd ? "36px" : "64px"
|
|
4111
|
-
}, onClick: onSubmit, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
4115
|
+
}, onClick: onSubmit, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react_intl9.FormattedMessage, { id: "confirm" }) }),
|
|
4112
4116
|
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Button, { style: {
|
|
4113
4117
|
marginTop: isDownMd ? "12px" : "24px"
|
|
4114
|
-
}, onClick: props.onClose, size: "lg", block: true, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
4118
|
+
}, onClick: props.onClose, size: "lg", block: true, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react_intl9.FormattedMessage, { id: "cancel" }) })
|
|
4115
4119
|
] }) });
|
|
4116
4120
|
}
|
|
4117
4121
|
|
|
@@ -4132,7 +4136,7 @@ var WalletAdapterNetwork;
|
|
|
4132
4136
|
// src/components/SOLModal/index.tsx
|
|
4133
4137
|
var import_wallet_adapter_wallets = require("@solana/wallet-adapter-wallets");
|
|
4134
4138
|
var import_styles = require("@solana/wallet-adapter-react-ui/styles.css");
|
|
4135
|
-
var
|
|
4139
|
+
var import_react_intl10 = require("react-intl");
|
|
4136
4140
|
|
|
4137
4141
|
// src/components/WalletModalContent/index.tsx
|
|
4138
4142
|
var import_react21 = require("react");
|
|
@@ -4377,7 +4381,7 @@ function SOLConnectModal({
|
|
|
4377
4381
|
onSuccess,
|
|
4378
4382
|
...props
|
|
4379
4383
|
}) {
|
|
4380
|
-
const intl = (0,
|
|
4384
|
+
const intl = (0, import_react_intl10.useIntl)();
|
|
4381
4385
|
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
|
|
4382
4386
|
id: type == "bind" ? "bindWith" : "loginWith"
|
|
4383
4387
|
}, {
|
|
@@ -4390,7 +4394,7 @@ function SOLModal(props) {
|
|
|
4390
4394
|
|
|
4391
4395
|
// src/components/TRONModal/index.tsx
|
|
4392
4396
|
var import_react24 = __toESM(require("react"));
|
|
4393
|
-
var
|
|
4397
|
+
var import_react_intl11 = require("react-intl");
|
|
4394
4398
|
|
|
4395
4399
|
// src/lib/tron/TronLinkAdapter.ts
|
|
4396
4400
|
var TronLinkAdapter = class {
|
|
@@ -4507,7 +4511,7 @@ function TRONConnectModal({
|
|
|
4507
4511
|
...props
|
|
4508
4512
|
}) {
|
|
4509
4513
|
const isDownMd = useDownMd();
|
|
4510
|
-
const intl = (0,
|
|
4514
|
+
const intl = (0, import_react_intl11.useIntl)();
|
|
4511
4515
|
const { wallets: wallets2, installedWallets, chooseWallet, wallet, address, onConnect } = useTRONWallet();
|
|
4512
4516
|
const iconMaps = {
|
|
4513
4517
|
tronlink: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(TronLinkIcon, { size: isDownMd ? 36 : 40 }),
|
|
@@ -4658,7 +4662,7 @@ function TRONModal(props) {
|
|
|
4658
4662
|
|
|
4659
4663
|
// src/components/TONModal/index.tsx
|
|
4660
4664
|
var import_react25 = __toESM(require("react"));
|
|
4661
|
-
var
|
|
4665
|
+
var import_react_intl12 = require("react-intl");
|
|
4662
4666
|
var import_ui_react = require("@tonconnect/ui-react");
|
|
4663
4667
|
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
4664
4668
|
function WalletContent2({
|
|
@@ -4818,7 +4822,7 @@ function TONConnectModal({
|
|
|
4818
4822
|
onSuccess,
|
|
4819
4823
|
...props
|
|
4820
4824
|
}) {
|
|
4821
|
-
const intl = (0,
|
|
4825
|
+
const intl = (0, import_react_intl12.useIntl)();
|
|
4822
4826
|
const { endpoints, appid } = useLocalStore_default();
|
|
4823
4827
|
const manifestUrl = `${endpoints.back}api/v1/wallet/ton?appid=${appid}&url=` + encodeURIComponent(window.location.origin);
|
|
4824
4828
|
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
|
|
@@ -4839,7 +4843,7 @@ function TONModal(props) {
|
|
|
4839
4843
|
|
|
4840
4844
|
// src/components/BTCModal/index.tsx
|
|
4841
4845
|
var import_react27 = __toESM(require("react"));
|
|
4842
|
-
var
|
|
4846
|
+
var import_react_intl13 = require("react-intl");
|
|
4843
4847
|
|
|
4844
4848
|
// src/lib/btc/UnisatAdapter.ts
|
|
4845
4849
|
var UnisatAdapter = class {
|
|
@@ -5029,7 +5033,7 @@ function BTCConnectModal({
|
|
|
5029
5033
|
...props
|
|
5030
5034
|
}) {
|
|
5031
5035
|
const isDownMd = useDownMd();
|
|
5032
|
-
const intl = (0,
|
|
5036
|
+
const intl = (0, import_react_intl13.useIntl)();
|
|
5033
5037
|
const { wallets: wallets2, installedWallets, chooseWallet, wallet, address, onConnect } = useBTCWallet();
|
|
5034
5038
|
const iconMaps = {
|
|
5035
5039
|
leather: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(LeatherIcon, { size: isDownMd ? 36 : 40 }),
|
|
@@ -5188,14 +5192,14 @@ function BTCModal(props) {
|
|
|
5188
5192
|
|
|
5189
5193
|
// src/components/WalletModal/index.tsx
|
|
5190
5194
|
var import_react28 = require("react");
|
|
5191
|
-
var
|
|
5195
|
+
var import_react_intl14 = require("react-intl");
|
|
5192
5196
|
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
5193
5197
|
function WalletConnectModal({
|
|
5194
5198
|
type,
|
|
5195
5199
|
methods: _methods,
|
|
5196
5200
|
...props
|
|
5197
5201
|
}) {
|
|
5198
|
-
const intl = (0,
|
|
5202
|
+
const intl = (0, import_react_intl14.useIntl)();
|
|
5199
5203
|
const { walletMap } = useWalletConfig();
|
|
5200
5204
|
const { bind, login } = useUserInfo();
|
|
5201
5205
|
const config = useAppConfig();
|
|
@@ -5334,7 +5338,7 @@ function WalletAsset({
|
|
|
5334
5338
|
// src/components/TokenSend/index.tsx
|
|
5335
5339
|
var import_react30 = require("react");
|
|
5336
5340
|
var import_viem6 = require("viem");
|
|
5337
|
-
var
|
|
5341
|
+
var import_react_intl15 = require("react-intl");
|
|
5338
5342
|
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
5339
5343
|
function Input2({
|
|
5340
5344
|
onChange,
|
|
@@ -5367,7 +5371,7 @@ function TokenSend({
|
|
|
5367
5371
|
onBack
|
|
5368
5372
|
}) {
|
|
5369
5373
|
const { list: chainList } = useMatchChain();
|
|
5370
|
-
const intl = (0,
|
|
5374
|
+
const intl = (0, import_react_intl15.useIntl)();
|
|
5371
5375
|
const { createWalletClient: createWalletClient2 } = useWallet();
|
|
5372
5376
|
const isNative = token.address.toLowerCase() == NATIVE_TOKEN_ADDRESS;
|
|
5373
5377
|
const chain = (0, import_react30.useMemo)(() => {
|
|
@@ -5485,11 +5489,11 @@ function TokenSend({
|
|
|
5485
5489
|
window.removeEventListener("message", receiveMessage);
|
|
5486
5490
|
};
|
|
5487
5491
|
}, []);
|
|
5488
|
-
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ModalDrawer, { isOpen: true, onClose, zIndex, title: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5492
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ModalDrawer, { isOpen: true, onClose, zIndex, title: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_intl15.FormattedMessage, { id: "send" }), onBack, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: `matchid-token-send-box`, children: [
|
|
5489
5493
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "matchid-token-send-content", children: [
|
|
5490
5494
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: `matchid-token-amount-content`, children: [
|
|
5491
5495
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: `matchid-token-amount-header`, children: [
|
|
5492
|
-
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: `matchid-token-amount-title`, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5496
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: `matchid-token-amount-title`, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_intl15.FormattedMessage, { id: "amount" }) }),
|
|
5493
5497
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: `matchid-token-amount-chain`, children: [
|
|
5494
5498
|
token.icon ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5495
5499
|
"img",
|
|
@@ -5517,7 +5521,7 @@ function TokenSend({
|
|
|
5517
5521
|
),
|
|
5518
5522
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: `matchid-token-amount-footer`, children: [
|
|
5519
5523
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: `matchid-token-amount-title`, children: [
|
|
5520
|
-
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5524
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_intl15.FormattedMessage, { id: "balance" }),
|
|
5521
5525
|
":"
|
|
5522
5526
|
] }),
|
|
5523
5527
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: `matchid-token-amount-value`, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(NumberFormatter, { value: token.balance, tFixNum: 10, suffix: " " + token.symbol }) })
|
|
@@ -5525,7 +5529,7 @@ function TokenSend({
|
|
|
5525
5529
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(TransferIcon, { className: "matchid-token-amount-transfer" })
|
|
5526
5530
|
] }),
|
|
5527
5531
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: `matchid-token-address-content`, children: [
|
|
5528
|
-
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: `matchid-token-address-header`, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: `matchid-token-address-title`, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5532
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: `matchid-token-address-header`, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: `matchid-token-address-title`, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_intl15.FormattedMessage, { id: "receiveTitle" }) }) }),
|
|
5529
5533
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5530
5534
|
Input2,
|
|
5531
5535
|
{
|
|
@@ -5551,14 +5555,14 @@ function TokenSend({
|
|
|
5551
5555
|
disabled: !canSend || !!txError,
|
|
5552
5556
|
onClick: onNext,
|
|
5553
5557
|
loading: loading || sending,
|
|
5554
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5558
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_intl15.FormattedMessage, { id: "next" })
|
|
5555
5559
|
}
|
|
5556
5560
|
)
|
|
5557
5561
|
] }) });
|
|
5558
5562
|
}
|
|
5559
5563
|
|
|
5560
5564
|
// src/components/TokenDetail/index.tsx
|
|
5561
|
-
var
|
|
5565
|
+
var import_react_intl16 = require("react-intl");
|
|
5562
5566
|
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
5563
5567
|
function TokenDetail({
|
|
5564
5568
|
onClose,
|
|
@@ -5575,7 +5579,7 @@ function TokenDetail({
|
|
|
5575
5579
|
}, onBack: props.close, zIndex: props.zIndex, token });
|
|
5576
5580
|
});
|
|
5577
5581
|
};
|
|
5578
|
-
const intl = (0,
|
|
5582
|
+
const intl = (0, import_react_intl16.useIntl)();
|
|
5579
5583
|
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ModalDrawer, { isOpen: true, title: intl.formatMessage({
|
|
5580
5584
|
id: "tokenDetails"
|
|
5581
5585
|
}), onClose, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: `matchid-token-detail`, children: [
|
|
@@ -5596,13 +5600,13 @@ function TokenDetail({
|
|
|
5596
5600
|
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "matchid-token-contract-address", children: token.address })
|
|
5597
5601
|
] })
|
|
5598
5602
|
] }),
|
|
5599
|
-
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Button, { size: "lg", block: true, highlight: true, onClick: onSend, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
5603
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Button, { size: "lg", block: true, highlight: true, onClick: onSend, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react_intl16.FormattedMessage, { id: "send" }) })
|
|
5600
5604
|
] }) });
|
|
5601
5605
|
}
|
|
5602
5606
|
|
|
5603
5607
|
// src/components/TokenSendList/index.tsx
|
|
5604
5608
|
var import_react31 = require("react");
|
|
5605
|
-
var
|
|
5609
|
+
var import_react_intl17 = require("react-intl");
|
|
5606
5610
|
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
5607
5611
|
function TokenSendList({ close }) {
|
|
5608
5612
|
const isDownMd = useDownMd();
|
|
@@ -5662,7 +5666,7 @@ function TokenSendList({ close }) {
|
|
|
5662
5666
|
index
|
|
5663
5667
|
);
|
|
5664
5668
|
}) }),
|
|
5665
|
-
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Button, { size: "lg", highlight: true, block: true, disabled: !checked, onClick: onNext, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
5669
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Button, { size: "lg", highlight: true, block: true, disabled: !checked, onClick: onNext, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_react_intl17.FormattedMessage, { id: "next" }) })
|
|
5666
5670
|
] });
|
|
5667
5671
|
}
|
|
5668
5672
|
|
|
@@ -5729,7 +5733,7 @@ var useContractStore = (0, import_zustand5.create)((0, import_middleware3.devtoo
|
|
|
5729
5733
|
var useContractStore_default = useContractStore;
|
|
5730
5734
|
|
|
5731
5735
|
// src/components/TransactionList/index.tsx
|
|
5732
|
-
var
|
|
5736
|
+
var import_react_intl18 = require("react-intl");
|
|
5733
5737
|
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
5734
5738
|
var Item = ({ data }) => {
|
|
5735
5739
|
const { address } = useWallet();
|
|
@@ -5862,7 +5866,7 @@ function TransactionList({
|
|
|
5862
5866
|
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(LoadingIcon_default, { rotate: true, size: 16, color: "black" }),
|
|
5863
5867
|
"Loading..."
|
|
5864
5868
|
] }),
|
|
5865
|
-
endMessage: items.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: `matchid-list-nomore`, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
5869
|
+
endMessage: items.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: `matchid-list-nomore`, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_intl18.FormattedMessage, { id: "noMoreRecords" }) }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: `matchid-list-nomore`, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_intl18.FormattedMessage, { id: "noRecords" }) }),
|
|
5866
5870
|
children: items.length == 0 && !hasMore ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "mt-[150px]" }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: `matchid-transaction-list`, children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Item, { data: item }, index)) })
|
|
5867
5871
|
}
|
|
5868
5872
|
);
|
|
@@ -5873,11 +5877,11 @@ var import_react_qrcode = require("react-qrcode");
|
|
|
5873
5877
|
var import_react34 = require("react");
|
|
5874
5878
|
var import_react_query6 = require("@tanstack/react-query");
|
|
5875
5879
|
var import_viem11 = require("viem");
|
|
5876
|
-
var
|
|
5880
|
+
var import_react_intl20 = require("react-intl");
|
|
5877
5881
|
|
|
5878
5882
|
// src/components/ImportToken/index.tsx
|
|
5879
5883
|
var import_react33 = require("react");
|
|
5880
|
-
var
|
|
5884
|
+
var import_react_intl19 = require("react-intl");
|
|
5881
5885
|
var import_react_query5 = require("@tanstack/react-query");
|
|
5882
5886
|
var import_viem10 = require("viem");
|
|
5883
5887
|
|
|
@@ -5946,7 +5950,7 @@ function ImportToken({ close }) {
|
|
|
5946
5950
|
});
|
|
5947
5951
|
}
|
|
5948
5952
|
};
|
|
5949
|
-
const intl = (0,
|
|
5953
|
+
const intl = (0, import_react_intl19.useIntl)();
|
|
5950
5954
|
(0, import_react33.useEffect)(() => {
|
|
5951
5955
|
if (address.length === 42) {
|
|
5952
5956
|
const reg = /^0x[0-9a-fA-F]{40}$/;
|
|
@@ -6020,9 +6024,9 @@ function ImportToken({ close }) {
|
|
|
6020
6024
|
return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: `matchid-import-token-result matchid-flex`, children: [
|
|
6021
6025
|
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: `matchid-import-token-result-box matchid-flex`, children: [
|
|
6022
6026
|
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("img", { src: status == "success" ? success_default : fail_default, alt: status == "success" ? "success" : "fail", className: `matchid-import-token-result-img` }),
|
|
6023
|
-
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: `matchid-import-token-result-text matchid-import-token-result-text-${status}`, children: status == "success" ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
6027
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: `matchid-import-token-result-text matchid-import-token-result-text-${status}`, children: status == "success" ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_intl19.FormattedMessage, { id: "importSuccess" }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_intl19.FormattedMessage, { id: "importFail" }) })
|
|
6024
6028
|
] }),
|
|
6025
|
-
status == "success" ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Button, { size: "lg", onClick: close, block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
6029
|
+
status == "success" ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Button, { size: "lg", onClick: close, block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_intl19.FormattedMessage, { id: "close" }) }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Button, { size: "lg", onClick: () => setStatus(""), block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_intl19.FormattedMessage, { id: "back" }) })
|
|
6026
6030
|
] });
|
|
6027
6031
|
}
|
|
6028
6032
|
return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: `matchid-import-token`, children: [
|
|
@@ -6076,7 +6080,7 @@ function ImportToken({ close }) {
|
|
|
6076
6080
|
loading: loading || isContractQuery.isLoading,
|
|
6077
6081
|
disabled: !canImport || !isContractQuery.data,
|
|
6078
6082
|
highlight: true,
|
|
6079
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
6083
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_intl19.FormattedMessage, { id: "import" })
|
|
6080
6084
|
}
|
|
6081
6085
|
)
|
|
6082
6086
|
] });
|
|
@@ -6089,7 +6093,7 @@ var ReceiveModal = () => {
|
|
|
6089
6093
|
const { address } = useWallet();
|
|
6090
6094
|
const [copied, setCopied] = useCopyClipboard();
|
|
6091
6095
|
const toast = useToast();
|
|
6092
|
-
const intl = (0,
|
|
6096
|
+
const intl = (0, import_react_intl20.useIntl)();
|
|
6093
6097
|
const onCopy = () => {
|
|
6094
6098
|
setCopied(address);
|
|
6095
6099
|
toast.success(intl.formatMessage({
|
|
@@ -6099,7 +6103,7 @@ var ReceiveModal = () => {
|
|
|
6099
6103
|
const chainLink = chain.explorerLink("address/" + address);
|
|
6100
6104
|
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: `matchid-receive-modal`, children: [
|
|
6101
6105
|
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "matchid-receive-container", children: [
|
|
6102
|
-
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: `matchid-receive-text`, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
6106
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: `matchid-receive-text`, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react_intl20.FormattedMessage, { id: "receiveQrcode" }) }),
|
|
6103
6107
|
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: `matchid-qr-container`, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
6104
6108
|
import_react_qrcode.QRCode,
|
|
6105
6109
|
{
|
|
@@ -6119,7 +6123,7 @@ var ReceiveModal = () => {
|
|
|
6119
6123
|
)
|
|
6120
6124
|
] }),
|
|
6121
6125
|
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Button, { size: "lg", onClick: onCopy, block: true, highlight: true, disabled: copied, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
6122
|
-
|
|
6126
|
+
import_react_intl20.FormattedMessage,
|
|
6123
6127
|
{
|
|
6124
6128
|
id: "copyAddress"
|
|
6125
6129
|
}
|
|
@@ -6128,7 +6132,7 @@ var ReceiveModal = () => {
|
|
|
6128
6132
|
};
|
|
6129
6133
|
function useMatchWallet() {
|
|
6130
6134
|
const modal = useModal();
|
|
6131
|
-
const intl = (0,
|
|
6135
|
+
const intl = (0, import_react_intl20.useIntl)();
|
|
6132
6136
|
const showReceiveModal = () => {
|
|
6133
6137
|
modal.open({
|
|
6134
6138
|
title: intl.formatMessage({
|
|
@@ -6741,7 +6745,7 @@ function useTransaction({
|
|
|
6741
6745
|
|
|
6742
6746
|
// src/components/CEXBindModal/index.tsx
|
|
6743
6747
|
var import_react37 = require("react");
|
|
6744
|
-
var
|
|
6748
|
+
var import_react_intl21 = require("react-intl");
|
|
6745
6749
|
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
6746
6750
|
function CEXBindModal({
|
|
6747
6751
|
onClose,
|
|
@@ -6749,7 +6753,7 @@ function CEXBindModal({
|
|
|
6749
6753
|
isOpen = false,
|
|
6750
6754
|
...props
|
|
6751
6755
|
}) {
|
|
6752
|
-
const intl = (0,
|
|
6756
|
+
const intl = (0, import_react_intl21.useIntl)();
|
|
6753
6757
|
const { events } = useMatch();
|
|
6754
6758
|
const [APIPassphrase, setAPIPassphrase] = (0, import_react37.useState)("");
|
|
6755
6759
|
const { refreshOverview } = useUserInfo();
|
|
@@ -6803,10 +6807,10 @@ function CEXBindModal({
|
|
|
6803
6807
|
type
|
|
6804
6808
|
}), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "matchid-cex-modal", children: [
|
|
6805
6809
|
/* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { children: [
|
|
6806
|
-
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
6807
|
-
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
6808
|
-
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
6809
|
-
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
6810
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_react_intl21.FormattedMessage, { id: "CEXBindAttention" }) }),
|
|
6811
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_react_intl21.FormattedMessage, { id: "CEXBindTips1" }) }),
|
|
6812
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_react_intl21.FormattedMessage, { id: "CEXBindTips2" }) }),
|
|
6813
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_react_intl21.FormattedMessage, { id: "CEXBindTips3" }) })
|
|
6810
6814
|
] }),
|
|
6811
6815
|
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Field, { label: intl.formatMessage({
|
|
6812
6816
|
id: "CEXBindApiKey"
|
|
@@ -6846,7 +6850,7 @@ function CEXBindModal({
|
|
|
6846
6850
|
block: true,
|
|
6847
6851
|
loading,
|
|
6848
6852
|
disabled: !key || !secret,
|
|
6849
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
6853
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_react_intl21.FormattedMessage, { id: "continue" })
|
|
6850
6854
|
}
|
|
6851
6855
|
)
|
|
6852
6856
|
] }) });
|
|
@@ -7311,7 +7315,7 @@ function useInit({
|
|
|
7311
7315
|
|
|
7312
7316
|
// src/MatchContext.tsx
|
|
7313
7317
|
var import_react_query10 = require("@tanstack/react-query");
|
|
7314
|
-
var
|
|
7318
|
+
var import_react_intl22 = require("react-intl");
|
|
7315
7319
|
|
|
7316
7320
|
// src/i18n/en.json
|
|
7317
7321
|
var en_default = {
|
|
@@ -7390,7 +7394,8 @@ var en_default = {
|
|
|
7390
7394
|
close: "Close",
|
|
7391
7395
|
back: "Back",
|
|
7392
7396
|
importSuccess: "Import Token Successfully",
|
|
7393
|
-
importFail: "Failed to import Token"
|
|
7397
|
+
importFail: "Failed to import Token",
|
|
7398
|
+
changeNetwork: "Change Network"
|
|
7394
7399
|
};
|
|
7395
7400
|
|
|
7396
7401
|
// src/i18n/zh.json
|
|
@@ -7470,7 +7475,8 @@ var zh_default = {
|
|
|
7470
7475
|
close: "\u5173\u95ED",
|
|
7471
7476
|
back: "\u8FD4\u56DE",
|
|
7472
7477
|
importSuccess: "\u6210\u529F\u5BFC\u5165\u4EE3\u5E01",
|
|
7473
|
-
importFail: "\u5BFC\u5165\u4EE3\u5E01\u5931\u8D25"
|
|
7478
|
+
importFail: "\u5BFC\u5165\u4EE3\u5E01\u5931\u8D25",
|
|
7479
|
+
changeNetwork: "\u5207\u6362\u7F51\u7EDC"
|
|
7474
7480
|
};
|
|
7475
7481
|
|
|
7476
7482
|
// src/i18n/tw.json
|
|
@@ -7550,7 +7556,8 @@ var tw_default = {
|
|
|
7550
7556
|
close: "\u95DC\u9589",
|
|
7551
7557
|
back: "\u8FD4\u56DE",
|
|
7552
7558
|
importSuccess: "\u6210\u529F\u532F\u5165\u4EE3\u5E63",
|
|
7553
|
-
importFail: "\u532F\u5165\u4EE3\u5E63\u5931\u6557"
|
|
7559
|
+
importFail: "\u532F\u5165\u4EE3\u5E63\u5931\u6557",
|
|
7560
|
+
changeNetwork: "\u5207\u63DB\u7DB2\u7D61"
|
|
7554
7561
|
};
|
|
7555
7562
|
|
|
7556
7563
|
// src/i18n/fr.json
|
|
@@ -7630,7 +7637,8 @@ var fr_default = {
|
|
|
7630
7637
|
close: "Fermer",
|
|
7631
7638
|
back: "Retour",
|
|
7632
7639
|
importSuccess: "Importation du jeton r\xE9ussie",
|
|
7633
|
-
importFail: "\xC9chec de l'importation du jeton"
|
|
7640
|
+
importFail: "\xC9chec de l'importation du jeton",
|
|
7641
|
+
changeNetwork: "Changer de r\xE9seau"
|
|
7634
7642
|
};
|
|
7635
7643
|
|
|
7636
7644
|
// src/i18n/ja.json
|
|
@@ -7710,7 +7718,8 @@ var ja_default = {
|
|
|
7710
7718
|
close: "\u9589\u3058\u308B",
|
|
7711
7719
|
back: "\u623B\u308B",
|
|
7712
7720
|
importSuccess: "\u30C8\u30FC\u30AF\u30F3\u306E\u30A4\u30F3\u30DD\u30FC\u30C8\u306B\u6210\u529F\u3057\u307E\u3057\u305F",
|
|
7713
|
-
importFail: "\u30C8\u30FC\u30AF\u30F3\u306E\u30A4\u30F3\u30DD\u30FC\u30C8\u306B\u5931\u6557\u3057\u307E\u3057\u305F"
|
|
7721
|
+
importFail: "\u30C8\u30FC\u30AF\u30F3\u306E\u30A4\u30F3\u30DD\u30FC\u30C8\u306B\u5931\u6557\u3057\u307E\u3057\u305F",
|
|
7722
|
+
changeNetwork: "\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u3092\u5909\u66F4"
|
|
7714
7723
|
};
|
|
7715
7724
|
|
|
7716
7725
|
// src/i18n/ko.json
|
|
@@ -7790,7 +7799,8 @@ var ko_default = {
|
|
|
7790
7799
|
close: "\uB2EB\uAE30",
|
|
7791
7800
|
back: "\uB4A4\uB85C",
|
|
7792
7801
|
importSuccess: "\uD1A0\uD070\uC744 \uC131\uACF5\uC801\uC73C\uB85C \uAC00\uC838\uC654\uC2B5\uB2C8\uB2E4",
|
|
7793
|
-
importFail: "\uD1A0\uD070 \uAC00\uC838\uC624\uAE30\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4"
|
|
7802
|
+
importFail: "\uD1A0\uD070 \uAC00\uC838\uC624\uAE30\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",
|
|
7803
|
+
changeNetwork: "\uB124\uD2B8\uC6CC\uD06C \uBCC0\uACBD"
|
|
7794
7804
|
};
|
|
7795
7805
|
|
|
7796
7806
|
// src/i18n/vi.json
|
|
@@ -7870,7 +7880,8 @@ var vi_default = {
|
|
|
7870
7880
|
close: "\u0110\xF3ng",
|
|
7871
7881
|
back: "Quay l\u1EA1i",
|
|
7872
7882
|
importSuccess: "Nh\u1EADp Token th\xE0nh c\xF4ng",
|
|
7873
|
-
importFail: "Kh\xF4ng th\u1EC3 nh\u1EADp Token"
|
|
7883
|
+
importFail: "Kh\xF4ng th\u1EC3 nh\u1EADp Token",
|
|
7884
|
+
changeNetwork: "Thay \u0111\u1ED5i m\u1EA1ng"
|
|
7874
7885
|
};
|
|
7875
7886
|
|
|
7876
7887
|
// src/i18n/es.json
|
|
@@ -7950,7 +7961,8 @@ var es_default = {
|
|
|
7950
7961
|
close: "Cerrar",
|
|
7951
7962
|
back: "Atr\xE1s",
|
|
7952
7963
|
importSuccess: "Token importado con \xE9xito",
|
|
7953
|
-
importFail: "Error al importar el token"
|
|
7964
|
+
importFail: "Error al importar el token",
|
|
7965
|
+
changeNetwork: "Cambiar red"
|
|
7954
7966
|
};
|
|
7955
7967
|
|
|
7956
7968
|
// src/i18n/pt.json
|
|
@@ -8030,7 +8042,8 @@ var pt_default = {
|
|
|
8030
8042
|
close: "Fechar",
|
|
8031
8043
|
back: "Voltar",
|
|
8032
8044
|
importSuccess: "Token importado com sucesso",
|
|
8033
|
-
importFail: "Falha ao importar o token"
|
|
8045
|
+
importFail: "Falha ao importar o token",
|
|
8046
|
+
changeNetwork: "Alterar rede"
|
|
8034
8047
|
};
|
|
8035
8048
|
|
|
8036
8049
|
// src/i18n/index.ts
|
|
@@ -8069,7 +8082,7 @@ var MatchProvider = ({
|
|
|
8069
8082
|
useWalletInit({
|
|
8070
8083
|
config: wallet
|
|
8071
8084
|
});
|
|
8072
|
-
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8085
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_intl22.IntlProvider, { locale: realLocale, messages: messages[realLocale], children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_query10.QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8073
8086
|
MatchContext.Provider,
|
|
8074
8087
|
{
|
|
8075
8088
|
value: {
|