@matchain/matchid-sdk-react 0.1.53-alpha.5 → 0.1.53-alpha.7
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/assets/icon/index.d.mts +1 -1
- package/dist/assets/icon/index.d.ts +1 -1
- package/dist/{chunk-V2S54LGG.mjs → chunk-AYMVU44P.mjs} +44 -2
- package/dist/chunk-AYMVU44P.mjs.map +1 -0
- package/dist/{chunk-LEHYGXVJ.mjs → chunk-W7CCPGOT.mjs} +5554 -5376
- package/dist/chunk-W7CCPGOT.mjs.map +1 -0
- package/dist/components/index.d.mts +3 -3
- package/dist/components/index.d.ts +3 -3
- package/dist/components/index.js +422 -275
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +6 -4
- package/dist/hooks/api/index.d.mts +2 -2
- package/dist/hooks/api/index.d.ts +2 -2
- package/dist/hooks/api/index.js +103 -33
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +7 -7
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +180 -159
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +4 -4
- package/dist/{index-Dt92N6yZ.d.ts → index-BIvPr81B.d.ts} +18 -3
- package/dist/{index-D_UNctDI.d.mts → index-BXNFULAw.d.mts} +10 -4
- package/dist/{index-CFqk8eNo.d.ts → index-BkWS_v10.d.mts} +1 -1
- package/dist/{index-BhU3hF7y.d.ts → index-C2-EMz0t.d.ts} +25 -5
- package/dist/{index-DaXXoRxr.d.ts → index-CZHjwqDb.d.ts} +1 -1
- package/dist/{index-C5StsjWY.d.ts → index-DDCyj-Fl.d.ts} +10 -4
- package/dist/{index-wqqEUufi.d.mts → index-DKFnMFMm.d.mts} +25 -5
- package/dist/{index-Bpd2gBNh.d.mts → index-DYkN9eDY.d.mts} +1 -1
- package/dist/{index-W6yjuOKT.d.mts → index-TVbqpk9T.d.mts} +18 -3
- package/dist/{index-D1QeVZyN.d.ts → index-TsJwrYwh.d.mts} +3 -2
- package/dist/{index-mxbJ8CFx.d.mts → index-tFT-63LO.d.ts} +1 -1
- package/dist/{index-BaYTgL99.d.mts → index-uhLehOUk.d.ts} +3 -2
- package/dist/index.css +115 -15
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +562 -414
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -7
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/{types-Bx_FJ11s.d.mts → types-i_ugbm5B.d.mts} +7 -1
- package/dist/{types-Bx_FJ11s.d.ts → types-i_ugbm5B.d.ts} +7 -1
- package/dist/ui/index.d.mts +3 -3
- package/dist/ui/index.d.ts +3 -3
- package/dist/ui/index.js +44 -2
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/index.mjs +7 -3
- package/example/src/App.tsx +30 -7
- package/example/src/pages/Contact/index.tsx +4 -0
- package/example/src/pages/UI/components/Tabs.tsx +18 -0
- package/example/src/pages/UI/index.tsx +2 -0
- package/package.json +4 -1
- package/dist/chunk-LEHYGXVJ.mjs.map +0 -1
- package/dist/chunk-RT42O3OC.mjs +0 -97
- package/dist/chunk-RT42O3OC.mjs.map +0 -1
- package/dist/chunk-V2S54LGG.mjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -479,6 +479,13 @@ var getTgAppLoginStatus = (data) => {
|
|
|
479
479
|
data
|
|
480
480
|
});
|
|
481
481
|
};
|
|
482
|
+
var getContactListApi = (data) => {
|
|
483
|
+
return request_default({
|
|
484
|
+
url: `/api/v1/contacts/list`,
|
|
485
|
+
method: "POST",
|
|
486
|
+
data
|
|
487
|
+
});
|
|
488
|
+
};
|
|
482
489
|
|
|
483
490
|
// src/store/useLocalStore.ts
|
|
484
491
|
var persistedState = (0, import_middleware.persist)(
|
|
@@ -2311,7 +2318,9 @@ __export(ui_exports, {
|
|
|
2311
2318
|
Overlay: () => Overlay,
|
|
2312
2319
|
Popover: () => Popover,
|
|
2313
2320
|
Radio: () => Radio,
|
|
2314
|
-
|
|
2321
|
+
Skeleton: () => Skeleton_default,
|
|
2322
|
+
Switch: () => Switch,
|
|
2323
|
+
Tabs: () => Tabs
|
|
2315
2324
|
});
|
|
2316
2325
|
|
|
2317
2326
|
// src/ui/Button/index.tsx
|
|
@@ -2766,8 +2775,46 @@ function Radio({
|
|
|
2766
2775
|
} }) });
|
|
2767
2776
|
}
|
|
2768
2777
|
|
|
2769
|
-
// src/
|
|
2778
|
+
// src/ui/Skeleton/index.tsx
|
|
2770
2779
|
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
2780
|
+
var Skeleton = ({
|
|
2781
|
+
style = {},
|
|
2782
|
+
className = "",
|
|
2783
|
+
width = 40,
|
|
2784
|
+
height = 40,
|
|
2785
|
+
radius = 5,
|
|
2786
|
+
loading = true,
|
|
2787
|
+
children
|
|
2788
|
+
}) => {
|
|
2789
|
+
if (!loading) {
|
|
2790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_jsx_runtime64.Fragment, { children });
|
|
2791
|
+
}
|
|
2792
|
+
const skeletonStyle = {
|
|
2793
|
+
width,
|
|
2794
|
+
height,
|
|
2795
|
+
borderRadius: radius,
|
|
2796
|
+
...style
|
|
2797
|
+
};
|
|
2798
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
2799
|
+
"div",
|
|
2800
|
+
{
|
|
2801
|
+
className: "matchid-skeleton " + className,
|
|
2802
|
+
style: skeletonStyle
|
|
2803
|
+
}
|
|
2804
|
+
);
|
|
2805
|
+
};
|
|
2806
|
+
var Skeleton_default = Skeleton;
|
|
2807
|
+
|
|
2808
|
+
// src/ui/Tabs/index.tsx
|
|
2809
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
2810
|
+
function Tabs(props) {
|
|
2811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: `matchid-tabs`, children: props.tabs.map((tab, index) => {
|
|
2812
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { onClick: () => props.setActiveTab(index), className: `matchid-tab ${props.activeTab === index ? "matchid-tab-active" : ""}`, children: tab }, index);
|
|
2813
|
+
}) });
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2816
|
+
// src/context/ModalContext.tsx
|
|
2817
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
2771
2818
|
var ModalContext = (0, import_react9.createContext)(null);
|
|
2772
2819
|
function ModalProvider({ children }) {
|
|
2773
2820
|
const [modalState, setModalState] = (0, import_react9.useState)({
|
|
@@ -2807,7 +2854,7 @@ function ModalProvider({ children }) {
|
|
|
2807
2854
|
visible: true,
|
|
2808
2855
|
index: modalIndex,
|
|
2809
2856
|
zIndex: newZIndex,
|
|
2810
|
-
content: /* @__PURE__ */ (0,
|
|
2857
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(ModalDrawer, { showClose: true, isOpen: true, onClose: () => closeModal(modalIndex), title: props.title, zIndex: newZIndex, onBack: props.onBack, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(props.content, { close: () => closeModal(modalIndex), zIndex: newZIndex }) })
|
|
2811
2858
|
}],
|
|
2812
2859
|
highestZIndex: newZIndex
|
|
2813
2860
|
};
|
|
@@ -2819,7 +2866,7 @@ function ModalProvider({ children }) {
|
|
|
2819
2866
|
document.body
|
|
2820
2867
|
) : null
|
|
2821
2868
|
);
|
|
2822
|
-
return /* @__PURE__ */ (0,
|
|
2869
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(ModalContext.Provider, { value: { show, open }, children: [
|
|
2823
2870
|
children,
|
|
2824
2871
|
modalElements
|
|
2825
2872
|
] });
|
|
@@ -2863,7 +2910,7 @@ var useTransactionStore = (0, import_zustand4.create)((0, import_middleware2.dev
|
|
|
2863
2910
|
var useTransactionStore_default = useTransactionStore;
|
|
2864
2911
|
|
|
2865
2912
|
// src/hooks/useWallet.tsx
|
|
2866
|
-
var
|
|
2913
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
2867
2914
|
var AppClientId = "react-sdk-" + getVersion();
|
|
2868
2915
|
function useWallet() {
|
|
2869
2916
|
const { address, wallet: walletConfig } = useLocalStore_default();
|
|
@@ -3036,7 +3083,7 @@ function useWallet() {
|
|
|
3036
3083
|
address: evmAccount.address
|
|
3037
3084
|
});
|
|
3038
3085
|
modal.show((props) => {
|
|
3039
|
-
return /* @__PURE__ */ (0,
|
|
3086
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, hash: txHash, chain: _chain });
|
|
3040
3087
|
});
|
|
3041
3088
|
clearInterval(window.matchProvider.transactionMessageIntervalMap[transactionId].interval);
|
|
3042
3089
|
delete window.matchProvider.transactionMessageIntervalMap[transactionId];
|
|
@@ -3113,7 +3160,7 @@ function useCopyClipboard(timeout = 500) {
|
|
|
3113
3160
|
// src/context/ToastContext.tsx
|
|
3114
3161
|
var import_react12 = require("react");
|
|
3115
3162
|
var import_react_dom2 = require("react-dom");
|
|
3116
|
-
var
|
|
3163
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
3117
3164
|
var ToastContext = (0, import_react12.createContext)(null);
|
|
3118
3165
|
function ToastProvider({ children, zIndex = 299 }) {
|
|
3119
3166
|
const [toasts, setToasts] = (0, import_react12.useState)([]);
|
|
@@ -3126,28 +3173,28 @@ function ToastProvider({ children, zIndex = 299 }) {
|
|
|
3126
3173
|
setTimeout(() => removeToast(id), timeout);
|
|
3127
3174
|
}, [removeToast]);
|
|
3128
3175
|
const success = (0, import_react12.useCallback)((text, timeout) => {
|
|
3129
|
-
show({ icon: /* @__PURE__ */ (0,
|
|
3176
|
+
show({ icon: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(CheckRoundIcon, { color: "#2FCC00", size: 24 }), text, timeout });
|
|
3130
3177
|
}, [show]);
|
|
3131
3178
|
const error = (0, import_react12.useCallback)((text, timeout) => {
|
|
3132
|
-
show({ icon: /* @__PURE__ */ (0,
|
|
3179
|
+
show({ icon: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ErrorRoundIcon, { size: 24 }), text, timeout });
|
|
3133
3180
|
}, [show]);
|
|
3134
3181
|
const ToastComponent = (0, import_react_dom2.createPortal)(
|
|
3135
|
-
/* @__PURE__ */ (0,
|
|
3182
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "matchid-toast-box", style: {
|
|
3136
3183
|
zIndex
|
|
3137
|
-
}, children: toasts.reverse().map(({ id, icon, text }) => /* @__PURE__ */ (0,
|
|
3184
|
+
}, children: toasts.reverse().map(({ id, icon, text }) => /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
|
|
3138
3185
|
"div",
|
|
3139
3186
|
{
|
|
3140
3187
|
className: "matchid-toast",
|
|
3141
3188
|
children: [
|
|
3142
|
-
icon && /* @__PURE__ */ (0,
|
|
3143
|
-
/* @__PURE__ */ (0,
|
|
3189
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { children: icon }),
|
|
3190
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { children: text })
|
|
3144
3191
|
]
|
|
3145
3192
|
},
|
|
3146
3193
|
id
|
|
3147
3194
|
)) }),
|
|
3148
3195
|
document.body
|
|
3149
3196
|
);
|
|
3150
|
-
return /* @__PURE__ */ (0,
|
|
3197
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(ToastContext.Provider, { value: { show, success, error }, children: [
|
|
3151
3198
|
children,
|
|
3152
3199
|
ToastComponent
|
|
3153
3200
|
] });
|
|
@@ -3292,7 +3339,7 @@ function useWalletAssetListQuery({
|
|
|
3292
3339
|
var import_react13 = require("react");
|
|
3293
3340
|
var import_viem5 = require("viem");
|
|
3294
3341
|
var import_react_intl = require("react-intl");
|
|
3295
|
-
var
|
|
3342
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
3296
3343
|
function useMatchChain() {
|
|
3297
3344
|
const chainListQuery = useChainListQuery();
|
|
3298
3345
|
const modal = useModal();
|
|
@@ -3323,28 +3370,28 @@ function useMatchChain() {
|
|
|
3323
3370
|
const { chainId: storeChainId2, setChainId: setChainId2 } = useLocalStore_default();
|
|
3324
3371
|
const [selectedChainId, setSelectedChainId] = (0, import_react13.useState)(storeChainId2);
|
|
3325
3372
|
const isDownMd = useDownMd();
|
|
3326
|
-
return /* @__PURE__ */ (0,
|
|
3327
|
-
/* @__PURE__ */ (0,
|
|
3328
|
-
return /* @__PURE__ */ (0,
|
|
3373
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: `matchid-change-network-box`, children: [
|
|
3374
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: `matchid-change-network-list`, children: chainListQuery.data?.map((item, index) => {
|
|
3375
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
3329
3376
|
"div",
|
|
3330
3377
|
{
|
|
3331
3378
|
onClick: () => setSelectedChainId(item.id),
|
|
3332
3379
|
className: `matchid-change-network-item ${selectedChainId == item.id ? "matchid-change-network-selected" : ""}`,
|
|
3333
3380
|
children: [
|
|
3334
|
-
/* @__PURE__ */ (0,
|
|
3335
|
-
/* @__PURE__ */ (0,
|
|
3336
|
-
/* @__PURE__ */ (0,
|
|
3381
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: `matchid-change-network-item-content`, children: [
|
|
3382
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("img", { src: item.iconUrl, className: `matchid-change-network-item-icon` }),
|
|
3383
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "matchid-change-network-item-name", children: item.name })
|
|
3337
3384
|
] }),
|
|
3338
|
-
/* @__PURE__ */ (0,
|
|
3385
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Radio, { checked: selectedChainId === item.id, size: isDownMd ? 18 : 24 })
|
|
3339
3386
|
]
|
|
3340
3387
|
},
|
|
3341
3388
|
index
|
|
3342
3389
|
);
|
|
3343
3390
|
}) }),
|
|
3344
|
-
/* @__PURE__ */ (0,
|
|
3391
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Button, { size: "lg", highlight: true, onClick: () => {
|
|
3345
3392
|
setChainId2(selectedChainId || 0);
|
|
3346
3393
|
close();
|
|
3347
|
-
}, block: true, children: /* @__PURE__ */ (0,
|
|
3394
|
+
}, block: true, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react_intl.FormattedMessage, { id: "confirm" }) })
|
|
3348
3395
|
] });
|
|
3349
3396
|
}
|
|
3350
3397
|
const showChangeNetwork = () => {
|
|
@@ -3384,6 +3431,7 @@ var components_exports = {};
|
|
|
3384
3431
|
__export(components_exports, {
|
|
3385
3432
|
BTCModal: () => BTCModal,
|
|
3386
3433
|
Button: () => Button,
|
|
3434
|
+
ContactList: () => ContactList,
|
|
3387
3435
|
EVMModal: () => EVMModal,
|
|
3388
3436
|
EmailModal: () => EmailModal,
|
|
3389
3437
|
Field: () => Field,
|
|
@@ -3413,7 +3461,7 @@ var import_react16 = require("react");
|
|
|
3413
3461
|
// src/components/EmailModal/StepEmail.tsx
|
|
3414
3462
|
var import_react14 = require("react");
|
|
3415
3463
|
var import_react_intl2 = require("react-intl");
|
|
3416
|
-
var
|
|
3464
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
3417
3465
|
function StepEmail(props) {
|
|
3418
3466
|
const intl = (0, import_react_intl2.useIntl)();
|
|
3419
3467
|
const [emailVal, setEmailVal] = (0, import_react14.useState)("");
|
|
@@ -3428,10 +3476,10 @@ function StepEmail(props) {
|
|
|
3428
3476
|
const onContinue = async () => {
|
|
3429
3477
|
props.onContinue(emailVal);
|
|
3430
3478
|
};
|
|
3431
|
-
return /* @__PURE__ */ (0,
|
|
3432
|
-
/* @__PURE__ */ (0,
|
|
3479
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "matchid-email-email-box", children: [
|
|
3480
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Field, { label: intl.formatMessage({
|
|
3433
3481
|
id: "emailAddress"
|
|
3434
|
-
}), children: /* @__PURE__ */ (0,
|
|
3482
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
3435
3483
|
Input,
|
|
3436
3484
|
{
|
|
3437
3485
|
placeholder: intl.formatMessage({
|
|
@@ -3441,9 +3489,9 @@ function StepEmail(props) {
|
|
|
3441
3489
|
value: emailVal
|
|
3442
3490
|
}
|
|
3443
3491
|
) }),
|
|
3444
|
-
/* @__PURE__ */ (0,
|
|
3492
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Button, { disabled: !canContinue, style: {
|
|
3445
3493
|
marginTop: "64px"
|
|
3446
|
-
}, onClick: onContinue, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ (0,
|
|
3494
|
+
}, onClick: onContinue, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react_intl2.FormattedMessage, { id: "continue" }) })
|
|
3447
3495
|
] });
|
|
3448
3496
|
}
|
|
3449
3497
|
|
|
@@ -3457,7 +3505,7 @@ var NATIVE_TOKEN_ADDRESS = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
|
|
|
3457
3505
|
|
|
3458
3506
|
// src/components/EmailModal/StepVerify.tsx
|
|
3459
3507
|
var import_react_intl3 = require("react-intl");
|
|
3460
|
-
var
|
|
3508
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
3461
3509
|
function StepVerify(props) {
|
|
3462
3510
|
const intl = (0, import_react_intl3.useIntl)();
|
|
3463
3511
|
const { getLoginEmailCode, loginByEmail } = useUserInfo();
|
|
@@ -3534,17 +3582,17 @@ function StepVerify(props) {
|
|
|
3534
3582
|
setSubmitting(false);
|
|
3535
3583
|
}
|
|
3536
3584
|
};
|
|
3537
|
-
return /* @__PURE__ */ (0,
|
|
3538
|
-
/* @__PURE__ */ (0,
|
|
3539
|
-
/* @__PURE__ */ (0,
|
|
3540
|
-
/* @__PURE__ */ (0,
|
|
3541
|
-
/* @__PURE__ */ (0,
|
|
3542
|
-
/* @__PURE__ */ (0,
|
|
3585
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "matchid-email-verify-box", children: [
|
|
3586
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "matchid-email-verify-header", children: [
|
|
3587
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "matchid-email-verify-header-icon", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(EmailLineIcon, { size: isDownMd ? 19 : 24 }) }),
|
|
3588
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "matchid-email-verify-header-content", children: [
|
|
3589
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "matchid-email-verify-header-value", children: props.email }),
|
|
3590
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "matchid-email-verify-header-tips", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react_intl3.FormattedMessage, { id: "sendEmailTips" }) })
|
|
3543
3591
|
] })
|
|
3544
3592
|
] }),
|
|
3545
|
-
/* @__PURE__ */ (0,
|
|
3593
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Field, { label: intl.formatMessage({
|
|
3546
3594
|
id: "verificationCode"
|
|
3547
|
-
}), error, children: /* @__PURE__ */ (0,
|
|
3595
|
+
}), error, children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3548
3596
|
Input,
|
|
3549
3597
|
{
|
|
3550
3598
|
placeholder: intl.formatMessage({
|
|
@@ -3554,7 +3602,7 @@ function StepVerify(props) {
|
|
|
3554
3602
|
maxLength: codeLength,
|
|
3555
3603
|
onChange: (e) => setCode(e.target.value),
|
|
3556
3604
|
value: code,
|
|
3557
|
-
after: /* @__PURE__ */ (0,
|
|
3605
|
+
after: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3558
3606
|
Button,
|
|
3559
3607
|
{
|
|
3560
3608
|
highlight: true,
|
|
@@ -3573,13 +3621,13 @@ function StepVerify(props) {
|
|
|
3573
3621
|
)
|
|
3574
3622
|
}
|
|
3575
3623
|
) }),
|
|
3576
|
-
/* @__PURE__ */ (0,
|
|
3624
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Button, { disabled: !canContinue, highlight: true, block: true, size: "lg", onClick: onContinue, children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react_intl3.FormattedMessage, { id: "continue" }) })
|
|
3577
3625
|
] });
|
|
3578
3626
|
}
|
|
3579
3627
|
|
|
3580
3628
|
// src/components/EmailModal/index.tsx
|
|
3581
3629
|
var import_react_intl4 = require("react-intl");
|
|
3582
|
-
var
|
|
3630
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
3583
3631
|
function EmailModal({
|
|
3584
3632
|
isOpen = false,
|
|
3585
3633
|
width = 480,
|
|
@@ -3596,7 +3644,7 @@ function EmailModal({
|
|
|
3596
3644
|
setEmailVal("");
|
|
3597
3645
|
}
|
|
3598
3646
|
}, [isOpen]);
|
|
3599
|
-
return /* @__PURE__ */ (0,
|
|
3647
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
3600
3648
|
ModalWithHeader,
|
|
3601
3649
|
{
|
|
3602
3650
|
isOpen,
|
|
@@ -3606,10 +3654,10 @@ function EmailModal({
|
|
|
3606
3654
|
id: "email"
|
|
3607
3655
|
}),
|
|
3608
3656
|
onBack: step == "verify" ? () => setStep("input") : onBack,
|
|
3609
|
-
children: step === "input" ? /* @__PURE__ */ (0,
|
|
3657
|
+
children: step === "input" ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(StepEmail, { email: emailVal, onContinue: (email) => {
|
|
3610
3658
|
setEmailVal(email);
|
|
3611
3659
|
setStep("verify");
|
|
3612
|
-
} }) : /* @__PURE__ */ (0,
|
|
3660
|
+
} }) : /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(StepVerify, { email: emailVal, onSuccess: onLogin })
|
|
3613
3661
|
}
|
|
3614
3662
|
);
|
|
3615
3663
|
}
|
|
@@ -3639,7 +3687,7 @@ function useAppConfig() {
|
|
|
3639
3687
|
}
|
|
3640
3688
|
|
|
3641
3689
|
// src/components/LoginBox/index.tsx
|
|
3642
|
-
var
|
|
3690
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
3643
3691
|
var RecommendItem = ({
|
|
3644
3692
|
icon,
|
|
3645
3693
|
name,
|
|
@@ -3648,20 +3696,20 @@ var RecommendItem = ({
|
|
|
3648
3696
|
children,
|
|
3649
3697
|
footer
|
|
3650
3698
|
}) => {
|
|
3651
|
-
return /* @__PURE__ */ (0,
|
|
3652
|
-
/* @__PURE__ */ (0,
|
|
3653
|
-
/* @__PURE__ */ (0,
|
|
3654
|
-
/* @__PURE__ */ (0,
|
|
3655
|
-
/* @__PURE__ */ (0,
|
|
3699
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "matchid-login-recommend-method", children: [
|
|
3700
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "matchid-login-recommend-method-item", onClick, children: [
|
|
3701
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "matchid-login-recommend-method-content", children: [
|
|
3702
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "matchid-login-recommend-method-icon", children: icon }),
|
|
3703
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "matchid-login-recommend-method-name", children: name })
|
|
3656
3704
|
] }),
|
|
3657
|
-
footer ? footer : children ? /* @__PURE__ */ (0,
|
|
3705
|
+
footer ? footer : children ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3658
3706
|
ArrowDownIcon,
|
|
3659
3707
|
{
|
|
3660
3708
|
className: `matchid-login-recommend-method-arrow ${showChildren ? "matchid-login-recommend-method-arrow-active" : ""}`,
|
|
3661
3709
|
size: 20,
|
|
3662
3710
|
color: "var(--matchid-arrow-color)"
|
|
3663
3711
|
}
|
|
3664
|
-
) : /* @__PURE__ */ (0,
|
|
3712
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3665
3713
|
ArrowRightIcon,
|
|
3666
3714
|
{
|
|
3667
3715
|
className: "matchid-login-recommend-method-arrow",
|
|
@@ -3670,7 +3718,7 @@ var RecommendItem = ({
|
|
|
3670
3718
|
}
|
|
3671
3719
|
)
|
|
3672
3720
|
] }),
|
|
3673
|
-
children && /* @__PURE__ */ (0,
|
|
3721
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3674
3722
|
"div",
|
|
3675
3723
|
{
|
|
3676
3724
|
className: `matchid-login-recommend-method-popover ${showChildren ? "matchid-login-recommend-method-popover-active" : ""}`,
|
|
@@ -3735,75 +3783,75 @@ function LoginBox({
|
|
|
3735
3783
|
const isDownMd = useDownMd();
|
|
3736
3784
|
const methodMap = {
|
|
3737
3785
|
wallet: {
|
|
3738
|
-
icon: /* @__PURE__ */ (0,
|
|
3786
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(WalletIcon, { size: isDownMd ? 36 : 40 }),
|
|
3739
3787
|
name: intl.formatMessage({ id: "wallet" }),
|
|
3740
3788
|
onClick: () => setShowWallet(!showWallet),
|
|
3741
3789
|
type: "wallet"
|
|
3742
3790
|
},
|
|
3743
3791
|
email: {
|
|
3744
|
-
icon: /* @__PURE__ */ (0,
|
|
3792
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(EmailIcon, { size: isDownMd ? 36 : 40 }),
|
|
3745
3793
|
name: intl.formatMessage({ id: "email" }),
|
|
3746
3794
|
onClick: () => {
|
|
3747
3795
|
setEmailOpen(true);
|
|
3748
3796
|
}
|
|
3749
3797
|
},
|
|
3750
3798
|
google: {
|
|
3751
|
-
icon: /* @__PURE__ */ (0,
|
|
3799
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(GoogleIcon, { size: isDownMd ? 36 : 40 }),
|
|
3752
3800
|
name: "Google",
|
|
3753
3801
|
onClick: () => login("google")
|
|
3754
3802
|
},
|
|
3755
3803
|
twitter: {
|
|
3756
|
-
icon: /* @__PURE__ */ (0,
|
|
3804
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(XIcon, { size: isDownMd ? 36 : 40 }),
|
|
3757
3805
|
name: "X",
|
|
3758
3806
|
onClick: () => login("twitter")
|
|
3759
3807
|
},
|
|
3760
3808
|
telegram: {
|
|
3761
|
-
icon: /* @__PURE__ */ (0,
|
|
3809
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(TelegramIcon, { size: isDownMd ? 36 : 40 }),
|
|
3762
3810
|
name: "Telegram",
|
|
3763
3811
|
onClick: () => login("telegram")
|
|
3764
3812
|
},
|
|
3765
3813
|
github: {
|
|
3766
|
-
icon: /* @__PURE__ */ (0,
|
|
3814
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(GithubIcon, { size: isDownMd ? 36 : 40 }),
|
|
3767
3815
|
name: "Github",
|
|
3768
3816
|
onClick: () => login("github")
|
|
3769
3817
|
},
|
|
3770
3818
|
discord: {
|
|
3771
|
-
icon: /* @__PURE__ */ (0,
|
|
3819
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(DiscordIcon, { size: isDownMd ? 36 : 40 }),
|
|
3772
3820
|
name: "Discord",
|
|
3773
3821
|
onClick: () => login("discord")
|
|
3774
3822
|
},
|
|
3775
3823
|
linkedin: {
|
|
3776
|
-
icon: /* @__PURE__ */ (0,
|
|
3824
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(LinkedinIcon, { size: isDownMd ? 36 : 40 }),
|
|
3777
3825
|
name: "LinkedIn",
|
|
3778
3826
|
onClick: () => login("linkedin")
|
|
3779
3827
|
},
|
|
3780
3828
|
facebook: {
|
|
3781
|
-
icon: /* @__PURE__ */ (0,
|
|
3829
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(FacebookIcon, { size: isDownMd ? 36 : 40 }),
|
|
3782
3830
|
name: "Facebook",
|
|
3783
3831
|
onClick: () => login("facebook")
|
|
3784
3832
|
},
|
|
3785
3833
|
youtube: {
|
|
3786
|
-
icon: /* @__PURE__ */ (0,
|
|
3834
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(YoutubeIcon, { size: isDownMd ? 36 : 40 }),
|
|
3787
3835
|
name: "Youtube",
|
|
3788
3836
|
onClick: () => login("youtube")
|
|
3789
3837
|
}
|
|
3790
3838
|
};
|
|
3791
3839
|
const { walletMap } = useWalletConfig();
|
|
3792
|
-
return /* @__PURE__ */ (0,
|
|
3793
|
-
(!inModal || !emailOpen) && /* @__PURE__ */ (0,
|
|
3794
|
-
/* @__PURE__ */ (0,
|
|
3795
|
-
return /* @__PURE__ */ (0,
|
|
3840
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_jsx_runtime73.Fragment, { children: [
|
|
3841
|
+
(!inModal || !emailOpen) && /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "matchid-login-box", children: [
|
|
3842
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "matchid-login-recommend-list", children: methodConfig.recommendMethods.map((m) => {
|
|
3843
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3796
3844
|
RecommendItem,
|
|
3797
3845
|
{
|
|
3798
3846
|
icon: methodMap[m]?.icon,
|
|
3799
3847
|
name: methodMap[m]?.name,
|
|
3800
3848
|
onClick: methodMap[m]?.onClick,
|
|
3801
3849
|
showChildren: m == "wallet" && showWallet,
|
|
3802
|
-
children: m == "wallet" && /* @__PURE__ */ (0,
|
|
3803
|
-
/* @__PURE__ */ (0,
|
|
3804
|
-
/* @__PURE__ */ (0,
|
|
3850
|
+
children: m == "wallet" && /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_jsx_runtime73.Fragment, { children: [
|
|
3851
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "matchid-login-recommend-wallet-divider" }),
|
|
3852
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "matchid-login-recommend-wallet-list", children: methodConfig.walletMethods.map((n) => {
|
|
3805
3853
|
const m2 = walletMap[n];
|
|
3806
|
-
return /* @__PURE__ */ (0,
|
|
3854
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
3807
3855
|
"div",
|
|
3808
3856
|
{
|
|
3809
3857
|
className: "matchid-login-recommend-wallet-item",
|
|
@@ -3811,16 +3859,16 @@ function LoginBox({
|
|
|
3811
3859
|
login(m2.method);
|
|
3812
3860
|
},
|
|
3813
3861
|
children: [
|
|
3814
|
-
/* @__PURE__ */ (0,
|
|
3815
|
-
/* @__PURE__ */ (0,
|
|
3816
|
-
/* @__PURE__ */ (0,
|
|
3862
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "matchid-login-recommend-wallet-item-content", children: [
|
|
3863
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "matchid-login-recommend-wallet-item-icon", children: m2.icon }),
|
|
3864
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3817
3865
|
"div",
|
|
3818
3866
|
{
|
|
3819
3867
|
className: "matchid-login-recommend-wallet-item-hover-icon",
|
|
3820
3868
|
children: m2.activeIcon
|
|
3821
3869
|
}
|
|
3822
3870
|
),
|
|
3823
|
-
/* @__PURE__ */ (0,
|
|
3871
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3824
3872
|
"span",
|
|
3825
3873
|
{
|
|
3826
3874
|
className: "matchid-login-recommend-wallet-item-name",
|
|
@@ -3828,7 +3876,7 @@ function LoginBox({
|
|
|
3828
3876
|
}
|
|
3829
3877
|
)
|
|
3830
3878
|
] }),
|
|
3831
|
-
/* @__PURE__ */ (0,
|
|
3879
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3832
3880
|
ArrowRightIcon,
|
|
3833
3881
|
{
|
|
3834
3882
|
className: "matchid-login-recommend-wallet-item-arrow",
|
|
@@ -3846,10 +3894,10 @@ function LoginBox({
|
|
|
3846
3894
|
m
|
|
3847
3895
|
);
|
|
3848
3896
|
}) }),
|
|
3849
|
-
methodConfig.methods.length > 0 && /* @__PURE__ */ (0,
|
|
3850
|
-
/* @__PURE__ */ (0,
|
|
3851
|
-
/* @__PURE__ */ (0,
|
|
3852
|
-
return /* @__PURE__ */ (0,
|
|
3897
|
+
methodConfig.methods.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "matchid-login-other", children: [
|
|
3898
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "matchid-login-other-text", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react_intl5.FormattedMessage, { id: "otherLoginMethods" }) }),
|
|
3899
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "matchid-login-method-box", children: methodConfig.methods.map((m) => {
|
|
3900
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3853
3901
|
"div",
|
|
3854
3902
|
{
|
|
3855
3903
|
className: "matchid-login-method-item",
|
|
@@ -3862,7 +3910,7 @@ function LoginBox({
|
|
|
3862
3910
|
}) })
|
|
3863
3911
|
] })
|
|
3864
3912
|
] }),
|
|
3865
|
-
/* @__PURE__ */ (0,
|
|
3913
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3866
3914
|
EmailModal,
|
|
3867
3915
|
{
|
|
3868
3916
|
isOpen: emailOpen,
|
|
@@ -3882,40 +3930,40 @@ var import_react19 = require("react");
|
|
|
3882
3930
|
|
|
3883
3931
|
// src/components/LoginPanel/index.tsx
|
|
3884
3932
|
var import_react_intl6 = require("react-intl");
|
|
3885
|
-
var
|
|
3933
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
3886
3934
|
function LoginPanel({
|
|
3887
3935
|
header,
|
|
3888
3936
|
onClose,
|
|
3889
3937
|
...props
|
|
3890
3938
|
}) {
|
|
3891
3939
|
const isDownMd = useDownMd();
|
|
3892
|
-
return /* @__PURE__ */ (0,
|
|
3893
|
-
header ? header : /* @__PURE__ */ (0,
|
|
3894
|
-
/* @__PURE__ */ (0,
|
|
3895
|
-
/* @__PURE__ */ (0,
|
|
3896
|
-
/* @__PURE__ */ (0,
|
|
3940
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "matchid-login-panel", children: [
|
|
3941
|
+
header ? header : /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "matchid-login-panel-header", children: [
|
|
3942
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "matchid-login-panel-header-content", children: [
|
|
3943
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "matchid-login-panel-header-title", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react_intl6.FormattedMessage, { id: "loginTitle" }) }),
|
|
3944
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "matchid-login-panel-header-subtilte", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react_intl6.FormattedMessage, { id: "loginTips" }) })
|
|
3897
3945
|
] }),
|
|
3898
|
-
onClose && /* @__PURE__ */ (0,
|
|
3946
|
+
onClose && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "matchid-login-panel-header-close", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30 }) })
|
|
3899
3947
|
] }),
|
|
3900
|
-
/* @__PURE__ */ (0,
|
|
3901
|
-
/* @__PURE__ */ (0,
|
|
3948
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "matchid-login-panel-divide" }),
|
|
3949
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "matchid-login-panel-box", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(LoginBox, { ...props }) })
|
|
3902
3950
|
] });
|
|
3903
3951
|
}
|
|
3904
3952
|
|
|
3905
3953
|
// src/components/LoginModal/index.tsx
|
|
3906
|
-
var
|
|
3954
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
3907
3955
|
function LoginModal({
|
|
3908
3956
|
isOpen = false,
|
|
3909
3957
|
width = 480,
|
|
3910
3958
|
...props
|
|
3911
3959
|
}) {
|
|
3912
3960
|
const { isLogin } = useUserInfo();
|
|
3913
|
-
return /* @__PURE__ */ (0,
|
|
3961
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
3914
3962
|
Modal,
|
|
3915
3963
|
{
|
|
3916
3964
|
isOpen: isOpen && !isLogin,
|
|
3917
3965
|
width,
|
|
3918
|
-
children: /* @__PURE__ */ (0,
|
|
3966
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(LoginPanel, { ...props, inModal: true })
|
|
3919
3967
|
}
|
|
3920
3968
|
);
|
|
3921
3969
|
}
|
|
@@ -3924,10 +3972,10 @@ function LoginModal({
|
|
|
3924
3972
|
var import_react18 = require("react");
|
|
3925
3973
|
|
|
3926
3974
|
// src/assets/icon/ProfileIcon.tsx
|
|
3927
|
-
var
|
|
3975
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
3928
3976
|
function ProfileIcon({ size = 24, color = "black", ...props }) {
|
|
3929
|
-
return /* @__PURE__ */ (0,
|
|
3930
|
-
/* @__PURE__ */ (0,
|
|
3977
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3978
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3931
3979
|
"path",
|
|
3932
3980
|
{
|
|
3933
3981
|
fillRule: "evenodd",
|
|
@@ -3936,7 +3984,7 @@ function ProfileIcon({ size = 24, color = "black", ...props }) {
|
|
|
3936
3984
|
fill: color
|
|
3937
3985
|
}
|
|
3938
3986
|
),
|
|
3939
|
-
/* @__PURE__ */ (0,
|
|
3987
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3940
3988
|
"path",
|
|
3941
3989
|
{
|
|
3942
3990
|
fillRule: "evenodd",
|
|
@@ -3950,7 +3998,7 @@ function ProfileIcon({ size = 24, color = "black", ...props }) {
|
|
|
3950
3998
|
|
|
3951
3999
|
// src/components/UserPopover/index.tsx
|
|
3952
4000
|
var import_react_intl7 = require("react-intl");
|
|
3953
|
-
var
|
|
4001
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
3954
4002
|
function UserContent() {
|
|
3955
4003
|
const { logout, address, username } = useUserInfo();
|
|
3956
4004
|
const [logouting, setLogouting] = (0, import_react18.useState)(false);
|
|
@@ -3971,34 +4019,34 @@ function UserContent() {
|
|
|
3971
4019
|
rightIcon,
|
|
3972
4020
|
onClick
|
|
3973
4021
|
}) => {
|
|
3974
|
-
return /* @__PURE__ */ (0,
|
|
3975
|
-
/* @__PURE__ */ (0,
|
|
4022
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "matchid-user-popover-item", onClick, children: [
|
|
4023
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: `matchid-user-popover-item-content`, children: [
|
|
3976
4024
|
icon,
|
|
3977
|
-
/* @__PURE__ */ (0,
|
|
4025
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "matchid-user-popover-item-text", children })
|
|
3978
4026
|
] }),
|
|
3979
4027
|
rightIcon
|
|
3980
4028
|
] });
|
|
3981
4029
|
};
|
|
3982
4030
|
const UserDivider = () => {
|
|
3983
|
-
return /* @__PURE__ */ (0,
|
|
4031
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: `matchid-user-popover-divider` });
|
|
3984
4032
|
};
|
|
3985
4033
|
const [usernameOpen, setUsernameOpen] = (0, import_react18.useState)(false);
|
|
3986
4034
|
const [copied, setCopied] = useCopyClipboard();
|
|
3987
4035
|
const intl = (0, import_react_intl7.useIntl)();
|
|
3988
|
-
return /* @__PURE__ */ (0,
|
|
3989
|
-
/* @__PURE__ */ (0,
|
|
3990
|
-
/* @__PURE__ */ (0,
|
|
4036
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "matchid-user-popover-content", children: [
|
|
4037
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "matchid-user-popover-list", children: [
|
|
4038
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(UserItem, { onClick: () => {
|
|
3991
4039
|
setCopied(address);
|
|
3992
|
-
}, icon: copied ? /* @__PURE__ */ (0,
|
|
3993
|
-
/* @__PURE__ */ (0,
|
|
3994
|
-
/* @__PURE__ */ (0,
|
|
4040
|
+
}, icon: copied ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(CheckIcon, { size: 20, color: "#0ecb81" }) : /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(CopyIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(CheckIcon, { size: 20, color: "var(--icon-color)" }), children: truncateAddress(address) }),
|
|
4041
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(UserDivider, {}),
|
|
4042
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(UserItem, { onClick: () => {
|
|
3995
4043
|
setUsernameOpen(true);
|
|
3996
|
-
}, icon: /* @__PURE__ */ (0,
|
|
4044
|
+
}, icon: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(ProfileIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(ArrowRightIcon, { size: 20, color: "var(--icon-color)" }), children: username || intl.formatMessage({
|
|
3997
4045
|
id: "setUsername"
|
|
3998
4046
|
}) })
|
|
3999
4047
|
] }),
|
|
4000
|
-
/* @__PURE__ */ (0,
|
|
4001
|
-
/* @__PURE__ */ (0,
|
|
4048
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Button, { onClick: onLogout, loading: logouting, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react_intl7.FormattedMessage, { id: "disconnect" }) }),
|
|
4049
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(UsernameModal, { isOpen: usernameOpen, onClose: () => {
|
|
4002
4050
|
setUsernameOpen(false);
|
|
4003
4051
|
}, onSuccess: () => {
|
|
4004
4052
|
setUsernameOpen(false);
|
|
@@ -4009,12 +4057,12 @@ function UserPopover({
|
|
|
4009
4057
|
children,
|
|
4010
4058
|
...props
|
|
4011
4059
|
}) {
|
|
4012
|
-
return /* @__PURE__ */ (0,
|
|
4060
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Popover, { ...props, content: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(UserContent, {}), children });
|
|
4013
4061
|
}
|
|
4014
4062
|
|
|
4015
4063
|
// src/components/LoginButton/index.tsx
|
|
4016
4064
|
var import_react_intl8 = require("react-intl");
|
|
4017
|
-
var
|
|
4065
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
4018
4066
|
function LoginButton({
|
|
4019
4067
|
loginRender,
|
|
4020
4068
|
methods,
|
|
@@ -4030,8 +4078,8 @@ function LoginButton({
|
|
|
4030
4078
|
const { isLogin, username } = useUserInfo();
|
|
4031
4079
|
const [loginOpen, setLoginOpen] = (0, import_react19.useState)(false);
|
|
4032
4080
|
if (!isLogin) {
|
|
4033
|
-
return /* @__PURE__ */ (0,
|
|
4034
|
-
/* @__PURE__ */ (0,
|
|
4081
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_jsx_runtime78.Fragment, { children: [
|
|
4082
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
4035
4083
|
LoginModal,
|
|
4036
4084
|
{
|
|
4037
4085
|
methods,
|
|
@@ -4041,15 +4089,15 @@ function LoginButton({
|
|
|
4041
4089
|
onClose: () => setLoginOpen(false)
|
|
4042
4090
|
}
|
|
4043
4091
|
),
|
|
4044
|
-
/* @__PURE__ */ (0,
|
|
4045
|
-
/* @__PURE__ */ (0,
|
|
4046
|
-
/* @__PURE__ */ (0,
|
|
4092
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(Button, { className: "matchid-unlogin-btn", ...props, highlight: true, onClick: () => setLoginOpen(true), children: [
|
|
4093
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(UnLoginIcon_default, {}),
|
|
4094
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react_intl8.FormattedMessage, { id: "login" }) })
|
|
4047
4095
|
] })
|
|
4048
4096
|
] });
|
|
4049
4097
|
}
|
|
4050
|
-
return loginRender ? /* @__PURE__ */ (0,
|
|
4051
|
-
/* @__PURE__ */ (0,
|
|
4052
|
-
/* @__PURE__ */ (0,
|
|
4098
|
+
return loginRender ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_jsx_runtime78.Fragment, { children: loginRender }) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(UserPopover, { position: popoverPosition, type: popoverType, gap: popoverGap, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(Button, { onClick: onLoginClick, className: "matchid-login-btn", ...props, children: [
|
|
4099
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(LoginIcon_default, {}),
|
|
4100
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { children: username ? truncateAddress(username) : "MatchID " + intl.formatMessage({
|
|
4053
4101
|
id: "user"
|
|
4054
4102
|
}) })
|
|
4055
4103
|
] }) });
|
|
@@ -4058,15 +4106,15 @@ function LoginButton({
|
|
|
4058
4106
|
// src/components/UsernameModal/index.tsx
|
|
4059
4107
|
var import_react20 = require("react");
|
|
4060
4108
|
var import_react_intl9 = require("react-intl");
|
|
4061
|
-
var
|
|
4109
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
4062
4110
|
var ValidItem = ({
|
|
4063
4111
|
success = false,
|
|
4064
4112
|
text
|
|
4065
4113
|
}) => {
|
|
4066
4114
|
const isDownMd = useDownMd();
|
|
4067
|
-
return /* @__PURE__ */ (0,
|
|
4068
|
-
success ? /* @__PURE__ */ (0,
|
|
4069
|
-
/* @__PURE__ */ (0,
|
|
4115
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: `matchid-valid-status-item matchid-valid-status-${success ? "success" : "error"}`, children: [
|
|
4116
|
+
success ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(CheckRoundIcon, { size: isDownMd ? 12 : 16 }) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(InfoLineIcon, { size: isDownMd ? 12 : 16 }),
|
|
4117
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { children: text })
|
|
4070
4118
|
] });
|
|
4071
4119
|
};
|
|
4072
4120
|
function UsernameModal({
|
|
@@ -4114,12 +4162,12 @@ function UsernameModal({
|
|
|
4114
4162
|
}
|
|
4115
4163
|
};
|
|
4116
4164
|
const intl = (0, import_react_intl9.useIntl)();
|
|
4117
|
-
return /* @__PURE__ */ (0,
|
|
4165
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(ModalWithHeader, { isOpen: isOpen && isLogin, ...props, title: title || intl.formatMessage({
|
|
4118
4166
|
id: username ? "editUsernameTitle" : "setUsernameTitle"
|
|
4119
|
-
}), children: /* @__PURE__ */ (0,
|
|
4120
|
-
/* @__PURE__ */ (0,
|
|
4167
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "matchid-username-box", children: [
|
|
4168
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Field, { label: intl.formatMessage({
|
|
4121
4169
|
id: "username"
|
|
4122
|
-
}), error, children: /* @__PURE__ */ (0,
|
|
4170
|
+
}), error, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
4123
4171
|
Input,
|
|
4124
4172
|
{
|
|
4125
4173
|
placeholder: intl.formatMessage({
|
|
@@ -4132,8 +4180,8 @@ function UsernameModal({
|
|
|
4132
4180
|
value: val
|
|
4133
4181
|
}
|
|
4134
4182
|
) }),
|
|
4135
|
-
/* @__PURE__ */ (0,
|
|
4136
|
-
/* @__PURE__ */ (0,
|
|
4183
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "matchid-valid", children: [
|
|
4184
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
4137
4185
|
ValidItem,
|
|
4138
4186
|
{
|
|
4139
4187
|
success: isValid,
|
|
@@ -4142,16 +4190,16 @@ function UsernameModal({
|
|
|
4142
4190
|
})
|
|
4143
4191
|
}
|
|
4144
4192
|
),
|
|
4145
|
-
/* @__PURE__ */ (0,
|
|
4193
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(ValidItem, { success: isLength, text: intl.formatMessage({
|
|
4146
4194
|
id: "usernameLengthError"
|
|
4147
4195
|
}) })
|
|
4148
4196
|
] }),
|
|
4149
|
-
/* @__PURE__ */ (0,
|
|
4197
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Button, { disabled: !isSafe, loading: isSubmitting, style: {
|
|
4150
4198
|
marginTop: isDownMd ? "36px" : "64px"
|
|
4151
|
-
}, onClick: onSubmit, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ (0,
|
|
4152
|
-
/* @__PURE__ */ (0,
|
|
4199
|
+
}, onClick: onSubmit, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react_intl9.FormattedMessage, { id: "confirm" }) }),
|
|
4200
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Button, { style: {
|
|
4153
4201
|
marginTop: isDownMd ? "12px" : "24px"
|
|
4154
|
-
}, onClick: props.onClose, size: "lg", block: true, children: /* @__PURE__ */ (0,
|
|
4202
|
+
}, onClick: props.onClose, size: "lg", block: true, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react_intl9.FormattedMessage, { id: "cancel" }) })
|
|
4155
4203
|
] }) });
|
|
4156
4204
|
}
|
|
4157
4205
|
|
|
@@ -4170,7 +4218,7 @@ var walletConnectImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEA
|
|
|
4170
4218
|
var walletSigningImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAABAsUlEQVR4Xu19CXQUx7X2vCUveS/vJdgx+yaJHQwI8G4wzWIbG2LLNrbxPgnY7CC0SyNpJBAIECAZAbLB8gAyKGGxiFnkGJwmz47xsU0mvyEWoGW0D0jgSeK88L84/7l/fS2V3GrNaDRCEiPpfud8p3qqu6tnpvt+favqVpXJxGAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYbYvCwkKlpKREvXDhglpQUKCKz+qlS5e0z8j3N5aXl6tXrlwJMf4OBoPRDD777LPg7Ozs0MOHD1NiYiLNnTuX7rzrDho5ejj179+f+vbt69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
|
4173
|
-
var
|
|
4221
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
4174
4222
|
function WalletModalContent({
|
|
4175
4223
|
status,
|
|
4176
4224
|
error,
|
|
@@ -4240,12 +4288,12 @@ function WalletModalContent({
|
|
|
4240
4288
|
statusImage: walletConnectImage
|
|
4241
4289
|
};
|
|
4242
4290
|
}, [visible, connected, status, error, address]);
|
|
4243
|
-
return /* @__PURE__ */ (0,
|
|
4244
|
-
/* @__PURE__ */ (0,
|
|
4245
|
-
/* @__PURE__ */ (0,
|
|
4246
|
-
/* @__PURE__ */ (0,
|
|
4291
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "matchid-wallet-container", children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: `matchid-wallet-box`, children: [
|
|
4292
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: `matchid-wallet-content`, children: [
|
|
4293
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("img", { src: pageData.statusImage }),
|
|
4294
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: pageData.isError ? "matchid-error" : "", children: pageData.text })
|
|
4247
4295
|
] }),
|
|
4248
|
-
/* @__PURE__ */ (0,
|
|
4296
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
4249
4297
|
Button,
|
|
4250
4298
|
{
|
|
4251
4299
|
block: true,
|
|
@@ -4321,12 +4369,12 @@ function WalletModalContentV2(props) {
|
|
|
4321
4369
|
statusImage: walletConnectImage
|
|
4322
4370
|
};
|
|
4323
4371
|
}, [props, submitting]);
|
|
4324
|
-
return /* @__PURE__ */ (0,
|
|
4325
|
-
/* @__PURE__ */ (0,
|
|
4326
|
-
/* @__PURE__ */ (0,
|
|
4327
|
-
/* @__PURE__ */ (0,
|
|
4372
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "matchid-wallet-container", children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: `matchid-wallet-box`, children: [
|
|
4373
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: `matchid-wallet-content`, children: [
|
|
4374
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("img", { src: pageData.statusImage }),
|
|
4375
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: props.status == "error" ? "matchid-error" : "", children: pageData.text })
|
|
4328
4376
|
] }),
|
|
4329
|
-
/* @__PURE__ */ (0,
|
|
4377
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
4330
4378
|
Button,
|
|
4331
4379
|
{
|
|
4332
4380
|
block: true,
|
|
@@ -4667,7 +4715,7 @@ async function getEthersSigner(config, { chainId } = {}) {
|
|
|
4667
4715
|
// src/components/EVMModal/index.tsx
|
|
4668
4716
|
var import_siwe = require("siwe");
|
|
4669
4717
|
var import_styles = require("@rainbow-me/rainbowkit/styles.css");
|
|
4670
|
-
var
|
|
4718
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
4671
4719
|
function WalletContent({
|
|
4672
4720
|
onSuccess,
|
|
4673
4721
|
type
|
|
@@ -4780,7 +4828,7 @@ function WalletContent({
|
|
|
4780
4828
|
} catch (error2) {
|
|
4781
4829
|
console.error("signature", error2);
|
|
4782
4830
|
setStatus("error");
|
|
4783
|
-
setError(error2.message);
|
|
4831
|
+
setError(error2.reason || error2.message);
|
|
4784
4832
|
}
|
|
4785
4833
|
}, [nonce, status, address]);
|
|
4786
4834
|
(0, import_react23.useEffect)(() => {
|
|
@@ -4825,7 +4873,7 @@ function WalletContent({
|
|
|
4825
4873
|
setNonce(void 0);
|
|
4826
4874
|
setStatus("start");
|
|
4827
4875
|
};
|
|
4828
|
-
return /* @__PURE__ */ (0,
|
|
4876
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
4829
4877
|
WalletModalContentV2,
|
|
4830
4878
|
{
|
|
4831
4879
|
status,
|
|
@@ -4860,14 +4908,14 @@ function EVMConnectModal({
|
|
|
4860
4908
|
...props
|
|
4861
4909
|
}) {
|
|
4862
4910
|
const intl = (0, import_react_intl10.useIntl)();
|
|
4863
|
-
return /* @__PURE__ */ (0,
|
|
4911
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
|
|
4864
4912
|
id: type == "bind" ? "bindWith" : "loginWith"
|
|
4865
4913
|
}, {
|
|
4866
4914
|
name: "EVM"
|
|
4867
|
-
}), children: /* @__PURE__ */ (0,
|
|
4915
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_wagmi2.WagmiProvider, { config: wagmiConfig, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_rainbowkit.RainbowKitProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(WalletContent, { onSuccess, type }) }) }) });
|
|
4868
4916
|
}
|
|
4869
4917
|
function EVMModal(props) {
|
|
4870
|
-
return props.isOpen && /* @__PURE__ */ (0,
|
|
4918
|
+
return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(EVMConnectModal, { ...props });
|
|
4871
4919
|
}
|
|
4872
4920
|
|
|
4873
4921
|
// src/components/TRONModal/index.tsx
|
|
@@ -4982,7 +5030,7 @@ var useTRONWallet = () => {
|
|
|
4982
5030
|
};
|
|
4983
5031
|
|
|
4984
5032
|
// src/components/TRONModal/index.tsx
|
|
4985
|
-
var
|
|
5033
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
4986
5034
|
function TRONConnectModal({
|
|
4987
5035
|
type = "login",
|
|
4988
5036
|
onSuccess,
|
|
@@ -4992,9 +5040,9 @@ function TRONConnectModal({
|
|
|
4992
5040
|
const intl = (0, import_react_intl11.useIntl)();
|
|
4993
5041
|
const { wallets, installedWallets, chooseWallet, wallet, address, onConnect } = useTRONWallet();
|
|
4994
5042
|
const iconMaps = {
|
|
4995
|
-
tronlink: /* @__PURE__ */ (0,
|
|
4996
|
-
bitget: /* @__PURE__ */ (0,
|
|
4997
|
-
okx: /* @__PURE__ */ (0,
|
|
5043
|
+
tronlink: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(TronLinkIcon, { size: isDownMd ? 36 : 40 }),
|
|
5044
|
+
bitget: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(BitgetIcon, { size: isDownMd ? 36 : 40 }),
|
|
5045
|
+
okx: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(OKXIcon, { size: isDownMd ? 36 : 40 })
|
|
4998
5046
|
};
|
|
4999
5047
|
const { events, login } = useMatch();
|
|
5000
5048
|
const [status, setStatus] = (0, import_react25.useState)("");
|
|
@@ -5086,11 +5134,11 @@ function TRONConnectModal({
|
|
|
5086
5134
|
disconnect();
|
|
5087
5135
|
}
|
|
5088
5136
|
}, [props.isOpen]);
|
|
5089
|
-
return /* @__PURE__ */ (0,
|
|
5137
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
|
|
5090
5138
|
id: type == "bind" ? "bindWith" : "loginWith"
|
|
5091
5139
|
}, {
|
|
5092
5140
|
name: "TRON"
|
|
5093
|
-
}), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ (0,
|
|
5141
|
+
}), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
5094
5142
|
WalletModalContent,
|
|
5095
5143
|
{
|
|
5096
5144
|
error,
|
|
@@ -5103,9 +5151,9 @@ function TRONConnectModal({
|
|
|
5103
5151
|
setVisible: () => {
|
|
5104
5152
|
}
|
|
5105
5153
|
}
|
|
5106
|
-
) : /* @__PURE__ */ (0,
|
|
5154
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "matchid-login-box", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "matchid-login-recommend-list", children: [
|
|
5107
5155
|
installedWallets.map((wallet2) => {
|
|
5108
|
-
return /* @__PURE__ */ (0,
|
|
5156
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
5109
5157
|
RecommendItem,
|
|
5110
5158
|
{
|
|
5111
5159
|
icon: iconMaps[wallet2.walletKey],
|
|
@@ -5118,14 +5166,14 @@ function TRONConnectModal({
|
|
|
5118
5166
|
);
|
|
5119
5167
|
}),
|
|
5120
5168
|
wallets.filter((wallet2) => !installedWallets.find((installedWallet) => installedWallet.walletKey == wallet2.walletKey)).map((wallet2) => {
|
|
5121
|
-
return /* @__PURE__ */ (0,
|
|
5169
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
5122
5170
|
RecommendItem,
|
|
5123
5171
|
{
|
|
5124
5172
|
icon: iconMaps[wallet2.walletKey],
|
|
5125
5173
|
name: wallet2.name,
|
|
5126
5174
|
onClick: () => {
|
|
5127
5175
|
},
|
|
5128
|
-
footer: /* @__PURE__ */ (0,
|
|
5176
|
+
footer: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Button, { size: "sm", onClick: () => {
|
|
5129
5177
|
window.open(wallet2.website);
|
|
5130
5178
|
}, children: "Install" })
|
|
5131
5179
|
},
|
|
@@ -5135,14 +5183,14 @@ function TRONConnectModal({
|
|
|
5135
5183
|
] }) }) });
|
|
5136
5184
|
}
|
|
5137
5185
|
function TRONModal(props) {
|
|
5138
|
-
return props.isOpen && /* @__PURE__ */ (0,
|
|
5186
|
+
return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(TRONConnectModal, { ...props, type: props.type });
|
|
5139
5187
|
}
|
|
5140
5188
|
|
|
5141
5189
|
// src/components/TONModal/index.tsx
|
|
5142
5190
|
var import_react26 = __toESM(require("react"));
|
|
5143
5191
|
var import_react_intl12 = require("react-intl");
|
|
5144
5192
|
var import_ui_react = require("@tonconnect/ui-react");
|
|
5145
|
-
var
|
|
5193
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
5146
5194
|
function WalletContent2({
|
|
5147
5195
|
onSuccess,
|
|
5148
5196
|
type
|
|
@@ -5269,7 +5317,7 @@ function WalletContent2({
|
|
|
5269
5317
|
}
|
|
5270
5318
|
}
|
|
5271
5319
|
}, [state]);
|
|
5272
|
-
return /* @__PURE__ */ (0,
|
|
5320
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
5273
5321
|
WalletModalContent,
|
|
5274
5322
|
{
|
|
5275
5323
|
connected,
|
|
@@ -5303,20 +5351,20 @@ function TONConnectModal({
|
|
|
5303
5351
|
const intl = (0, import_react_intl12.useIntl)();
|
|
5304
5352
|
const { endpoints, appid } = useLocalStore_default();
|
|
5305
5353
|
const manifestUrl = `${endpoints.back}api/v1/wallet/ton?appid=${appid}&url=` + encodeURIComponent(window.location.origin);
|
|
5306
|
-
return /* @__PURE__ */ (0,
|
|
5354
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
|
|
5307
5355
|
id: type == "bind" ? "bindWith" : "loginWith"
|
|
5308
5356
|
}, {
|
|
5309
5357
|
name: "TON"
|
|
5310
|
-
}), children: /* @__PURE__ */ (0,
|
|
5358
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
5311
5359
|
import_ui_react.TonConnectUIProvider,
|
|
5312
5360
|
{
|
|
5313
5361
|
manifestUrl,
|
|
5314
|
-
children: /* @__PURE__ */ (0,
|
|
5362
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(WalletContent2, { onSuccess, type })
|
|
5315
5363
|
}
|
|
5316
5364
|
) });
|
|
5317
5365
|
}
|
|
5318
5366
|
function TONModal(props) {
|
|
5319
|
-
return props.isOpen && /* @__PURE__ */ (0,
|
|
5367
|
+
return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(TONConnectModal, { ...props });
|
|
5320
5368
|
}
|
|
5321
5369
|
|
|
5322
5370
|
// src/components/BTCModal/index.tsx
|
|
@@ -5539,7 +5587,7 @@ var useBTCWallet = () => {
|
|
|
5539
5587
|
};
|
|
5540
5588
|
|
|
5541
5589
|
// src/components/BTCModal/index.tsx
|
|
5542
|
-
var
|
|
5590
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
5543
5591
|
function BTCConnectModal({
|
|
5544
5592
|
type = "login",
|
|
5545
5593
|
onSuccess,
|
|
@@ -5549,10 +5597,10 @@ function BTCConnectModal({
|
|
|
5549
5597
|
const intl = (0, import_react_intl13.useIntl)();
|
|
5550
5598
|
const { wallets, installedWallets, chooseWallet, wallet, address, onConnect } = useBTCWallet();
|
|
5551
5599
|
const iconMaps = {
|
|
5552
|
-
leather: /* @__PURE__ */ (0,
|
|
5553
|
-
unisat: /* @__PURE__ */ (0,
|
|
5554
|
-
xverse: /* @__PURE__ */ (0,
|
|
5555
|
-
phantom: /* @__PURE__ */ (0,
|
|
5600
|
+
leather: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(LeatherIcon, { size: isDownMd ? 36 : 40 }),
|
|
5601
|
+
unisat: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(UnisatIcon, { size: isDownMd ? 36 : 40 }),
|
|
5602
|
+
xverse: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(XverseIcon, { size: isDownMd ? 36 : 40 }),
|
|
5603
|
+
phantom: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(PhantomIcon, { size: isDownMd ? 36 : 40 })
|
|
5556
5604
|
};
|
|
5557
5605
|
const { events, login } = useMatch();
|
|
5558
5606
|
const [status, setStatus] = (0, import_react28.useState)("");
|
|
@@ -5652,11 +5700,11 @@ function BTCConnectModal({
|
|
|
5652
5700
|
statusRef.current = "";
|
|
5653
5701
|
setError("");
|
|
5654
5702
|
};
|
|
5655
|
-
return /* @__PURE__ */ (0,
|
|
5703
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
|
|
5656
5704
|
id: type == "bind" ? "bindWith" : "loginWith"
|
|
5657
5705
|
}, {
|
|
5658
5706
|
name: "BTC"
|
|
5659
|
-
}), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ (0,
|
|
5707
|
+
}), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5660
5708
|
WalletModalContent,
|
|
5661
5709
|
{
|
|
5662
5710
|
error,
|
|
@@ -5669,9 +5717,9 @@ function BTCConnectModal({
|
|
|
5669
5717
|
setVisible: () => {
|
|
5670
5718
|
}
|
|
5671
5719
|
}
|
|
5672
|
-
) : /* @__PURE__ */ (0,
|
|
5720
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "matchid-login-box", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "matchid-login-recommend-list", children: [
|
|
5673
5721
|
installedWallets.map((wallet2) => {
|
|
5674
|
-
return /* @__PURE__ */ (0,
|
|
5722
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5675
5723
|
RecommendItem,
|
|
5676
5724
|
{
|
|
5677
5725
|
icon: iconMaps[wallet2.walletKey],
|
|
@@ -5684,14 +5732,14 @@ function BTCConnectModal({
|
|
|
5684
5732
|
);
|
|
5685
5733
|
}),
|
|
5686
5734
|
wallets.filter((wallet2) => !installedWallets.find((installedWallet) => installedWallet.walletKey == wallet2.walletKey)).map((wallet2) => {
|
|
5687
|
-
return /* @__PURE__ */ (0,
|
|
5735
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5688
5736
|
RecommendItem,
|
|
5689
5737
|
{
|
|
5690
5738
|
icon: iconMaps[wallet2.walletKey],
|
|
5691
5739
|
name: wallet2.name,
|
|
5692
5740
|
onClick: () => {
|
|
5693
5741
|
},
|
|
5694
|
-
footer: /* @__PURE__ */ (0,
|
|
5742
|
+
footer: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Button, { size: "sm", onClick: () => {
|
|
5695
5743
|
window.open(wallet2.website);
|
|
5696
5744
|
}, children: "Install" })
|
|
5697
5745
|
},
|
|
@@ -5701,13 +5749,13 @@ function BTCConnectModal({
|
|
|
5701
5749
|
] }) }) });
|
|
5702
5750
|
}
|
|
5703
5751
|
function BTCModal(props) {
|
|
5704
|
-
return props.isOpen && /* @__PURE__ */ (0,
|
|
5752
|
+
return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(BTCConnectModal, { ...props });
|
|
5705
5753
|
}
|
|
5706
5754
|
|
|
5707
5755
|
// src/components/WalletModal/index.tsx
|
|
5708
5756
|
var import_react29 = require("react");
|
|
5709
5757
|
var import_react_intl14 = require("react-intl");
|
|
5710
|
-
var
|
|
5758
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
5711
5759
|
function WalletConnectModal({
|
|
5712
5760
|
type,
|
|
5713
5761
|
methods: _methods,
|
|
@@ -5725,13 +5773,13 @@ function WalletConnectModal({
|
|
|
5725
5773
|
const platform = config.platform.map((p) => p.toLowerCase());
|
|
5726
5774
|
return WALLET_METHODS.filter((m) => platform.includes(m));
|
|
5727
5775
|
}, [config.platform, _methods]);
|
|
5728
|
-
return /* @__PURE__ */ (0,
|
|
5776
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
|
|
5729
5777
|
id: type == "bind" ? "bindWith" : "loginWith"
|
|
5730
5778
|
}, {
|
|
5731
5779
|
name: ""
|
|
5732
|
-
}), children: /* @__PURE__ */ (0,
|
|
5780
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "matchid-login-box", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "matchid-login-recommend-list", children: methods.map((method, index) => {
|
|
5733
5781
|
const m = walletMap[method];
|
|
5734
|
-
return /* @__PURE__ */ (0,
|
|
5782
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5735
5783
|
RecommendItem,
|
|
5736
5784
|
{
|
|
5737
5785
|
icon: m?.icon,
|
|
@@ -5745,12 +5793,12 @@ function WalletConnectModal({
|
|
|
5745
5793
|
}) }) }) });
|
|
5746
5794
|
}
|
|
5747
5795
|
function WalletModal(props) {
|
|
5748
|
-
return props.isOpen && /* @__PURE__ */ (0,
|
|
5796
|
+
return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(WalletConnectModal, { ...props });
|
|
5749
5797
|
}
|
|
5750
5798
|
|
|
5751
5799
|
// src/components/AlphaAvatar/index.tsx
|
|
5752
5800
|
var import_react30 = require("react");
|
|
5753
|
-
var
|
|
5801
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
5754
5802
|
function AlphaAvatar2({ name, size = 40, className = "" }) {
|
|
5755
5803
|
const [avatar, setAvatar] = (0, import_react30.useState)(void 0);
|
|
5756
5804
|
(0, import_react30.useEffect)(() => {
|
|
@@ -5759,7 +5807,7 @@ function AlphaAvatar2({ name, size = 40, className = "" }) {
|
|
|
5759
5807
|
setAvatar(char);
|
|
5760
5808
|
}
|
|
5761
5809
|
}, [name]);
|
|
5762
|
-
return /* @__PURE__ */ (0,
|
|
5810
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
|
|
5763
5811
|
width: size,
|
|
5764
5812
|
height: size,
|
|
5765
5813
|
fontSize: Math.ceil(size / 2)
|
|
@@ -5767,7 +5815,7 @@ function AlphaAvatar2({ name, size = 40, className = "" }) {
|
|
|
5767
5815
|
}
|
|
5768
5816
|
|
|
5769
5817
|
// src/components/WalletAsset/index.tsx
|
|
5770
|
-
var
|
|
5818
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
5771
5819
|
function WalletAsset({
|
|
5772
5820
|
onAssetClick,
|
|
5773
5821
|
matchWalletAssetsOptions
|
|
@@ -5777,7 +5825,7 @@ function WalletAsset({
|
|
|
5777
5825
|
list: walletAssets.mergedAssets
|
|
5778
5826
|
});
|
|
5779
5827
|
const { list } = useMatchChain();
|
|
5780
|
-
return /* @__PURE__ */ (0,
|
|
5828
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "matchid-wallet-asset-list", children: matchWalletAssetList.list.map((n, index) => {
|
|
5781
5829
|
const clickFunc = onAssetClick && onAssetClick(n);
|
|
5782
5830
|
const chain = list?.find((m) => m.id.toString() === n.chain_id);
|
|
5783
5831
|
const getFooterColor = () => {
|
|
@@ -5792,11 +5840,11 @@ function WalletAsset({
|
|
|
5792
5840
|
}
|
|
5793
5841
|
return "";
|
|
5794
5842
|
};
|
|
5795
|
-
return /* @__PURE__ */ (0,
|
|
5843
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: `matchid-wallet-asset-item`, onClick: clickFunc, style: {
|
|
5796
5844
|
cursor: clickFunc ? "pointer" : "default"
|
|
5797
5845
|
}, children: [
|
|
5798
|
-
/* @__PURE__ */ (0,
|
|
5799
|
-
n.icon ? /* @__PURE__ */ (0,
|
|
5846
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "matchid-wallet-asset-logo", title: n.symbol || n.name || "", children: [
|
|
5847
|
+
n.icon ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("img", { src: n.icon, alt: n.symbol, className: `matchid-wallet-asset-icon` }) : /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
5800
5848
|
AlphaAvatar2,
|
|
5801
5849
|
{
|
|
5802
5850
|
className: `matchid-wallet-asset-icon`,
|
|
@@ -5804,12 +5852,12 @@ function WalletAsset({
|
|
|
5804
5852
|
name: n.symbol || n.name || ""
|
|
5805
5853
|
}
|
|
5806
5854
|
),
|
|
5807
|
-
chain?.iconUrl && /* @__PURE__ */ (0,
|
|
5855
|
+
chain?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-wallet-asset-chain` })
|
|
5808
5856
|
] }),
|
|
5809
|
-
/* @__PURE__ */ (0,
|
|
5810
|
-
/* @__PURE__ */ (0,
|
|
5811
|
-
"price" in n && /* @__PURE__ */ (0,
|
|
5812
|
-
/* @__PURE__ */ (0,
|
|
5857
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: `matchid-wallet-asset-info`, children: [
|
|
5858
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: `matchid-wallet-asset-name`, children: n.symbol }),
|
|
5859
|
+
"price" in n && /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: `matchid-wallet-asset-content`, children: [
|
|
5860
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "matchid-wallet-asset-price", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
5813
5861
|
NumberFormatter,
|
|
5814
5862
|
{
|
|
5815
5863
|
value: n.price,
|
|
@@ -5817,7 +5865,7 @@ function WalletAsset({
|
|
|
5817
5865
|
tFixNum: 2
|
|
5818
5866
|
}
|
|
5819
5867
|
) }),
|
|
5820
|
-
/* @__PURE__ */ (0,
|
|
5868
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "matchid-wallet-asset-value", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
5821
5869
|
NumberFormatter,
|
|
5822
5870
|
{
|
|
5823
5871
|
value: n.value,
|
|
@@ -5826,15 +5874,15 @@ function WalletAsset({
|
|
|
5826
5874
|
}
|
|
5827
5875
|
) })
|
|
5828
5876
|
] }),
|
|
5829
|
-
/* @__PURE__ */ (0,
|
|
5830
|
-
/* @__PURE__ */ (0,
|
|
5877
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: `matchid-wallet-asset-footer`, children: [
|
|
5878
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: `matchid-wallet-asset-balance`, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
5831
5879
|
NumberFormatter,
|
|
5832
5880
|
{
|
|
5833
5881
|
value: n.balance,
|
|
5834
5882
|
tFixNum: 3
|
|
5835
5883
|
}
|
|
5836
5884
|
) }),
|
|
5837
|
-
"price_change_24h" in n && /* @__PURE__ */ (0,
|
|
5885
|
+
"price_change_24h" in n && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: `matchid-wallet-asset-change ${getFooterColor()}`, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
5838
5886
|
NumberFormatter,
|
|
5839
5887
|
{
|
|
5840
5888
|
prefix: `${(n?.price_change_24h || 0) < 0 ? "-" : "+"} `,
|
|
@@ -5853,7 +5901,7 @@ function WalletAsset({
|
|
|
5853
5901
|
var import_react31 = require("react");
|
|
5854
5902
|
var import_viem10 = require("viem");
|
|
5855
5903
|
var import_react_intl15 = require("react-intl");
|
|
5856
|
-
var
|
|
5904
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
5857
5905
|
function Input2({
|
|
5858
5906
|
onChange,
|
|
5859
5907
|
placeholder,
|
|
@@ -5863,8 +5911,8 @@ function Input2({
|
|
|
5863
5911
|
error,
|
|
5864
5912
|
size = "df"
|
|
5865
5913
|
}) {
|
|
5866
|
-
return /* @__PURE__ */ (0,
|
|
5867
|
-
/* @__PURE__ */ (0,
|
|
5914
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: `matchid-token-input-box ${"matchid-token-input-" + size}`, children: [
|
|
5915
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
5868
5916
|
"input",
|
|
5869
5917
|
{
|
|
5870
5918
|
placeholder,
|
|
@@ -5875,7 +5923,7 @@ function Input2({
|
|
|
5875
5923
|
className: `matchid-token-input ${error ? "matchid-token-input-error" : ""}`
|
|
5876
5924
|
}
|
|
5877
5925
|
),
|
|
5878
|
-
error && /* @__PURE__ */ (0,
|
|
5926
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "matchid-token-input-error-text", children: error })
|
|
5879
5927
|
] });
|
|
5880
5928
|
}
|
|
5881
5929
|
function TokenSend({
|
|
@@ -6003,24 +6051,24 @@ function TokenSend({
|
|
|
6003
6051
|
window.removeEventListener("message", receiveMessage);
|
|
6004
6052
|
};
|
|
6005
6053
|
}, []);
|
|
6006
|
-
return /* @__PURE__ */ (0,
|
|
6007
|
-
/* @__PURE__ */ (0,
|
|
6008
|
-
/* @__PURE__ */ (0,
|
|
6009
|
-
/* @__PURE__ */ (0,
|
|
6010
|
-
/* @__PURE__ */ (0,
|
|
6011
|
-
/* @__PURE__ */ (0,
|
|
6012
|
-
token.icon ? /* @__PURE__ */ (0,
|
|
6054
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(ModalDrawer, { isOpen: true, onClose, zIndex, title: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_intl15.FormattedMessage, { id: "send" }), onBack, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: `matchid-token-send-box`, children: [
|
|
6055
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "matchid-token-send-content", children: [
|
|
6056
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: `matchid-token-amount-content`, children: [
|
|
6057
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: `matchid-token-amount-header`, children: [
|
|
6058
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: `matchid-token-amount-title`, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_intl15.FormattedMessage, { id: "amount" }) }),
|
|
6059
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: `matchid-token-amount-chain`, children: [
|
|
6060
|
+
token.icon ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
6013
6061
|
"img",
|
|
6014
6062
|
{
|
|
6015
6063
|
src: token?.icon,
|
|
6016
6064
|
alt: token?.symbol,
|
|
6017
6065
|
className: `matchid-token-amount-chain-icon`
|
|
6018
6066
|
}
|
|
6019
|
-
) : /* @__PURE__ */ (0,
|
|
6020
|
-
/* @__PURE__ */ (0,
|
|
6067
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(AlphaAvatar, { name: token.symbol || token.name || "", size: 16 }),
|
|
6068
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { children: token?.symbol })
|
|
6021
6069
|
] })
|
|
6022
6070
|
] }),
|
|
6023
|
-
/* @__PURE__ */ (0,
|
|
6071
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
6024
6072
|
Input2,
|
|
6025
6073
|
{
|
|
6026
6074
|
type: "text",
|
|
@@ -6033,18 +6081,18 @@ function TokenSend({
|
|
|
6033
6081
|
error: error.amount || txError
|
|
6034
6082
|
}
|
|
6035
6083
|
),
|
|
6036
|
-
/* @__PURE__ */ (0,
|
|
6037
|
-
/* @__PURE__ */ (0,
|
|
6038
|
-
/* @__PURE__ */ (0,
|
|
6084
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: `matchid-token-amount-footer`, children: [
|
|
6085
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: `matchid-token-amount-title`, children: [
|
|
6086
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_intl15.FormattedMessage, { id: "balance" }),
|
|
6039
6087
|
":"
|
|
6040
6088
|
] }),
|
|
6041
|
-
/* @__PURE__ */ (0,
|
|
6089
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: `matchid-token-amount-value`, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(NumberFormatter, { value: token.balance, tFixNum: 10, suffix: " " + token.symbol }) })
|
|
6042
6090
|
] }),
|
|
6043
|
-
/* @__PURE__ */ (0,
|
|
6091
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(TransferIcon, { className: "matchid-token-amount-transfer" })
|
|
6044
6092
|
] }),
|
|
6045
|
-
/* @__PURE__ */ (0,
|
|
6046
|
-
/* @__PURE__ */ (0,
|
|
6047
|
-
/* @__PURE__ */ (0,
|
|
6093
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: `matchid-token-address-content`, children: [
|
|
6094
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: `matchid-token-address-header`, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: `matchid-token-address-title`, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_intl15.FormattedMessage, { id: "receiveTitle" }) }) }),
|
|
6095
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
6048
6096
|
Input2,
|
|
6049
6097
|
{
|
|
6050
6098
|
type: "text",
|
|
@@ -6060,7 +6108,7 @@ function TokenSend({
|
|
|
6060
6108
|
)
|
|
6061
6109
|
] })
|
|
6062
6110
|
] }),
|
|
6063
|
-
/* @__PURE__ */ (0,
|
|
6111
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
6064
6112
|
Button,
|
|
6065
6113
|
{
|
|
6066
6114
|
size: "lg",
|
|
@@ -6069,7 +6117,7 @@ function TokenSend({
|
|
|
6069
6117
|
disabled: !canSend || !!txError,
|
|
6070
6118
|
onClick: onNext,
|
|
6071
6119
|
loading: loading || sending,
|
|
6072
|
-
children: /* @__PURE__ */ (0,
|
|
6120
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_intl15.FormattedMessage, { id: "next" })
|
|
6073
6121
|
}
|
|
6074
6122
|
)
|
|
6075
6123
|
] }) });
|
|
@@ -6077,7 +6125,7 @@ function TokenSend({
|
|
|
6077
6125
|
|
|
6078
6126
|
// src/components/TokenDetail/index.tsx
|
|
6079
6127
|
var import_react_intl16 = require("react-intl");
|
|
6080
|
-
var
|
|
6128
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
6081
6129
|
function TokenDetail({
|
|
6082
6130
|
onClose,
|
|
6083
6131
|
token
|
|
@@ -6087,41 +6135,41 @@ function TokenDetail({
|
|
|
6087
6135
|
const chain = chainList?.find((m) => m.id.toString() === token.chain_id);
|
|
6088
6136
|
const onSend = () => {
|
|
6089
6137
|
modal.show((props) => {
|
|
6090
|
-
return /* @__PURE__ */ (0,
|
|
6138
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(TokenSend, { onClose: () => {
|
|
6091
6139
|
props.close();
|
|
6092
6140
|
onClose();
|
|
6093
6141
|
}, onBack: props.close, zIndex: props.zIndex, token });
|
|
6094
6142
|
});
|
|
6095
6143
|
};
|
|
6096
6144
|
const intl = (0, import_react_intl16.useIntl)();
|
|
6097
|
-
return /* @__PURE__ */ (0,
|
|
6145
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(ModalDrawer, { isOpen: true, title: intl.formatMessage({
|
|
6098
6146
|
id: "tokenDetails"
|
|
6099
|
-
}), onClose, children: /* @__PURE__ */ (0,
|
|
6100
|
-
/* @__PURE__ */ (0,
|
|
6101
|
-
/* @__PURE__ */ (0,
|
|
6102
|
-
/* @__PURE__ */ (0,
|
|
6103
|
-
token.icon ? /* @__PURE__ */ (0,
|
|
6104
|
-
chain?.iconUrl && /* @__PURE__ */ (0,
|
|
6147
|
+
}), onClose, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: `matchid-token-detail`, children: [
|
|
6148
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: `matchid-token-main`, children: [
|
|
6149
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: `matchid-token-info`, children: [
|
|
6150
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: `matchid-token-logo`, children: [
|
|
6151
|
+
token.icon ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("img", { src: token.icon, alt: token.symbol, className: `matchid-token-icon` }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(AlphaAvatar, { className: `matchid-token-icon`, size: 48, name: token.symbol || token.name || "" }),
|
|
6152
|
+
chain?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-token-chain` })
|
|
6105
6153
|
] }),
|
|
6106
|
-
/* @__PURE__ */ (0,
|
|
6107
|
-
/* @__PURE__ */ (0,
|
|
6154
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: `matchid-token-name`, children: [
|
|
6155
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(NumberFormatter, { value: token.balance, tFixNum: 10 }),
|
|
6108
6156
|
" ",
|
|
6109
6157
|
token.symbol
|
|
6110
6158
|
] })
|
|
6111
6159
|
] }),
|
|
6112
|
-
token.address.toLowerCase() != NATIVE_TOKEN_ADDRESS && /* @__PURE__ */ (0,
|
|
6113
|
-
/* @__PURE__ */ (0,
|
|
6114
|
-
/* @__PURE__ */ (0,
|
|
6160
|
+
token.address.toLowerCase() != NATIVE_TOKEN_ADDRESS && /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: `matchid-token-contract`, children: [
|
|
6161
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "matchid-token-contract-title", children: "Contract address" }),
|
|
6162
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "matchid-token-contract-address", children: token.address })
|
|
6115
6163
|
] })
|
|
6116
6164
|
] }),
|
|
6117
|
-
/* @__PURE__ */ (0,
|
|
6165
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Button, { size: "lg", block: true, highlight: true, onClick: onSend, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_intl16.FormattedMessage, { id: "send" }) })
|
|
6118
6166
|
] }) });
|
|
6119
6167
|
}
|
|
6120
6168
|
|
|
6121
6169
|
// src/components/TokenSendList/index.tsx
|
|
6122
6170
|
var import_react32 = require("react");
|
|
6123
6171
|
var import_react_intl17 = require("react-intl");
|
|
6124
|
-
var
|
|
6172
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
6125
6173
|
function TokenSendList({ close }) {
|
|
6126
6174
|
const isDownMd = useDownMd();
|
|
6127
6175
|
const walletAssets = useMatchWalletAssets();
|
|
@@ -6133,16 +6181,16 @@ function TokenSendList({ close }) {
|
|
|
6133
6181
|
const modal = useModal();
|
|
6134
6182
|
const onNext = () => {
|
|
6135
6183
|
checked && modal.show((props) => {
|
|
6136
|
-
return /* @__PURE__ */ (0,
|
|
6184
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(TokenSend, { onClose: () => {
|
|
6137
6185
|
props.close();
|
|
6138
6186
|
close();
|
|
6139
6187
|
}, onBack: props.close, zIndex: props.zIndex, token: checked });
|
|
6140
6188
|
});
|
|
6141
6189
|
};
|
|
6142
|
-
return /* @__PURE__ */ (0,
|
|
6143
|
-
/* @__PURE__ */ (0,
|
|
6190
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "matchid-token-send-list-box", children: [
|
|
6191
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "matchid-token-send-list", children: matchWalletAssetList.list.map((n, index) => {
|
|
6144
6192
|
const chain = list?.find((m) => m.id.toString() === n.chain_id);
|
|
6145
|
-
return /* @__PURE__ */ (0,
|
|
6193
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
6146
6194
|
"div",
|
|
6147
6195
|
{
|
|
6148
6196
|
className: `matchid-token-send-item ${checked?.address == n.address ? "matchid-token-send-chekced" : ""}`,
|
|
@@ -6150,10 +6198,10 @@ function TokenSendList({ close }) {
|
|
|
6150
6198
|
setChecked(n);
|
|
6151
6199
|
},
|
|
6152
6200
|
children: [
|
|
6153
|
-
/* @__PURE__ */ (0,
|
|
6154
|
-
/* @__PURE__ */ (0,
|
|
6155
|
-
/* @__PURE__ */ (0,
|
|
6156
|
-
n.icon ? /* @__PURE__ */ (0,
|
|
6201
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Radio, { checked: checked?.address == n.address, size: isDownMd ? 18 : 24 }),
|
|
6202
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "matchid-token-send-content", children: [
|
|
6203
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "matchid-token-send-logo", children: [
|
|
6204
|
+
n.icon ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("img", { src: n.icon, alt: n.symbol, className: `matchid-token-send-icon` }) : /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
6157
6205
|
AlphaAvatar2,
|
|
6158
6206
|
{
|
|
6159
6207
|
className: `matchid-token-send-icon`,
|
|
@@ -6161,7 +6209,7 @@ function TokenSendList({ close }) {
|
|
|
6161
6209
|
name: n.symbol || n.name || ""
|
|
6162
6210
|
}
|
|
6163
6211
|
),
|
|
6164
|
-
chain?.iconUrl && /* @__PURE__ */ (0,
|
|
6212
|
+
chain?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
6165
6213
|
"img",
|
|
6166
6214
|
{
|
|
6167
6215
|
src: chain.iconUrl,
|
|
@@ -6170,9 +6218,9 @@ function TokenSendList({ close }) {
|
|
|
6170
6218
|
}
|
|
6171
6219
|
)
|
|
6172
6220
|
] }),
|
|
6173
|
-
/* @__PURE__ */ (0,
|
|
6174
|
-
/* @__PURE__ */ (0,
|
|
6175
|
-
/* @__PURE__ */ (0,
|
|
6221
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: `matchid-token-send-info`, children: [
|
|
6222
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: `matchid-token-send-name`, children: n.symbol }),
|
|
6223
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: `matchid-token-send-balance`, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(NumberFormatter, { value: n.balance, tFixNum: 3 }) })
|
|
6176
6224
|
] })
|
|
6177
6225
|
] })
|
|
6178
6226
|
]
|
|
@@ -6180,7 +6228,7 @@ function TokenSendList({ close }) {
|
|
|
6180
6228
|
index
|
|
6181
6229
|
);
|
|
6182
6230
|
}) }),
|
|
6183
|
-
/* @__PURE__ */ (0,
|
|
6231
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Button, { size: "lg", highlight: true, block: true, disabled: !checked, onClick: onNext, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react_intl17.FormattedMessage, { id: "next" }) })
|
|
6184
6232
|
] });
|
|
6185
6233
|
}
|
|
6186
6234
|
|
|
@@ -6248,7 +6296,7 @@ var useContractStore_default = useContractStore;
|
|
|
6248
6296
|
|
|
6249
6297
|
// src/components/TransactionList/index.tsx
|
|
6250
6298
|
var import_react_intl18 = require("react-intl");
|
|
6251
|
-
var
|
|
6299
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
6252
6300
|
var Item = ({ data }) => {
|
|
6253
6301
|
const { address } = useWallet();
|
|
6254
6302
|
const isOut = data.from.toLowerCase() == address.toLowerCase();
|
|
@@ -6335,18 +6383,18 @@ var Item = ({ data }) => {
|
|
|
6335
6383
|
}
|
|
6336
6384
|
return chain?.nativeCurrency.symbol || chain?.nativeCurrency.name;
|
|
6337
6385
|
}, [transferType, chain, contracts, chainId, data.to]);
|
|
6338
|
-
return /* @__PURE__ */ (0,
|
|
6386
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
|
|
6339
6387
|
"a",
|
|
6340
6388
|
{
|
|
6341
6389
|
href: explorerLink(`tx/${data.hash}`),
|
|
6342
6390
|
target: "_blank",
|
|
6343
6391
|
className: `matchid-transaction-item`,
|
|
6344
6392
|
children: [
|
|
6345
|
-
/* @__PURE__ */ (0,
|
|
6346
|
-
/* @__PURE__ */ (0,
|
|
6347
|
-
/* @__PURE__ */ (0,
|
|
6348
|
-
/* @__PURE__ */ (0,
|
|
6349
|
-
/* @__PURE__ */ (0,
|
|
6393
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: `matchid-transacton-item-container`, children: [
|
|
6394
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: "matchid-transaction-item-icon", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(ArrowSendIcon, { className: !isOut ? "rotate-180" : "" }) }),
|
|
6395
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: `matchid-transaction-item-details`, children: [
|
|
6396
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: `matchid-transaction-item-address`, children: formatAddress(to, 6, 4) }),
|
|
6397
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
6350
6398
|
"div",
|
|
6351
6399
|
{
|
|
6352
6400
|
className: `matchid-transaction-item-timestamp`,
|
|
@@ -6355,11 +6403,11 @@ var Item = ({ data }) => {
|
|
|
6355
6403
|
)
|
|
6356
6404
|
] })
|
|
6357
6405
|
] }),
|
|
6358
|
-
/* @__PURE__ */ (0,
|
|
6359
|
-
/* @__PURE__ */ (0,
|
|
6360
|
-
status == "loading" && /* @__PURE__ */ (0,
|
|
6361
|
-
status == "success" && /* @__PURE__ */ (0,
|
|
6362
|
-
status == "error" && /* @__PURE__ */ (0,
|
|
6406
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: `matchid-transaction-item-amount ${"matchid-transaction-item-" + status}`, children: [
|
|
6407
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(NumberFormatter, { value: amount, tFixNum: 6, prefix: isOut ? "-" : "+", suffix: " " + symbol }),
|
|
6408
|
+
status == "loading" && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(LoadingIcon_default, { color: "#000000", size: 16, rotate: true }),
|
|
6409
|
+
status == "success" && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(CheckRoundIcon, { size: 16 }),
|
|
6410
|
+
status == "error" && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(InfoRoundIcon, { size: 16 })
|
|
6363
6411
|
] })
|
|
6364
6412
|
]
|
|
6365
6413
|
}
|
|
@@ -6369,19 +6417,191 @@ function TransactionList({
|
|
|
6369
6417
|
scrollableTarget
|
|
6370
6418
|
}) {
|
|
6371
6419
|
const { fetchMoreData, hasMore, items } = useMatchWalletRecords();
|
|
6372
|
-
return /* @__PURE__ */ (0,
|
|
6420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
6373
6421
|
import_react_infinite_scroll_component.default,
|
|
6374
6422
|
{
|
|
6375
6423
|
scrollableTarget,
|
|
6376
6424
|
dataLength: items.length,
|
|
6377
6425
|
next: fetchMoreData,
|
|
6378
6426
|
hasMore,
|
|
6379
|
-
loader: /* @__PURE__ */ (0,
|
|
6380
|
-
/* @__PURE__ */ (0,
|
|
6427
|
+
loader: /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "matchid-list-nomore", children: [
|
|
6428
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(LoadingIcon_default, { rotate: true, size: 16, color: "black" }),
|
|
6381
6429
|
"Loading..."
|
|
6382
6430
|
] }),
|
|
6383
|
-
endMessage: items.length > 0 ? /* @__PURE__ */ (0,
|
|
6384
|
-
children: items.length == 0 && !hasMore ? /* @__PURE__ */ (0,
|
|
6431
|
+
endMessage: items.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: `matchid-list-nomore`, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_react_intl18.FormattedMessage, { id: "noMoreRecords" }) }) : /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: `matchid-list-nomore`, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_react_intl18.FormattedMessage, { id: "noRecords" }) }),
|
|
6432
|
+
children: items.length == 0 && !hasMore ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: "mt-[150px]" }) : /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: `matchid-transaction-list`, children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Item, { data: item }, index)) })
|
|
6433
|
+
}
|
|
6434
|
+
);
|
|
6435
|
+
}
|
|
6436
|
+
|
|
6437
|
+
// src/hooks/api/index.ts
|
|
6438
|
+
var api_exports = {};
|
|
6439
|
+
__export(api_exports, {
|
|
6440
|
+
bind: () => bind_exports,
|
|
6441
|
+
contact: () => contact_exports,
|
|
6442
|
+
isSuccess: () => isSuccess,
|
|
6443
|
+
poh: () => poh_exports,
|
|
6444
|
+
user: () => user_exports,
|
|
6445
|
+
wallet: () => wallet_exports
|
|
6446
|
+
});
|
|
6447
|
+
|
|
6448
|
+
// src/hooks/api/bind.ts
|
|
6449
|
+
var bind_exports = {};
|
|
6450
|
+
__export(bind_exports, {
|
|
6451
|
+
bindCexApi: () => bindCexApi,
|
|
6452
|
+
unBindApi: () => unBindApi,
|
|
6453
|
+
unBindWalletApi: () => unBindWalletApi,
|
|
6454
|
+
useBindInfo: () => useBindInfo,
|
|
6455
|
+
useBindList: () => useBindList
|
|
6456
|
+
});
|
|
6457
|
+
var import_react_query4 = require("@tanstack/react-query");
|
|
6458
|
+
function useBindList(options) {
|
|
6459
|
+
const { isLogin } = useUserInfo();
|
|
6460
|
+
return (0, import_react_query4.useQuery)({
|
|
6461
|
+
queryKey: ["bindList"],
|
|
6462
|
+
enabled: isLogin,
|
|
6463
|
+
queryFn: async () => {
|
|
6464
|
+
let res = await getBindListApi();
|
|
6465
|
+
return res.data;
|
|
6466
|
+
},
|
|
6467
|
+
...options
|
|
6468
|
+
});
|
|
6469
|
+
}
|
|
6470
|
+
function useBindInfo(options) {
|
|
6471
|
+
const { isLogin } = useUserInfo();
|
|
6472
|
+
return (0, import_react_query4.useQuery)({
|
|
6473
|
+
queryKey: ["bindInfo"],
|
|
6474
|
+
enabled: isLogin,
|
|
6475
|
+
queryFn: async () => {
|
|
6476
|
+
let res = await getBindInfoApi();
|
|
6477
|
+
return res.data;
|
|
6478
|
+
},
|
|
6479
|
+
...options
|
|
6480
|
+
});
|
|
6481
|
+
}
|
|
6482
|
+
|
|
6483
|
+
// src/hooks/api/poh.ts
|
|
6484
|
+
var poh_exports = {};
|
|
6485
|
+
__export(poh_exports, {
|
|
6486
|
+
usePohList: () => usePohList,
|
|
6487
|
+
verifyPohApi: () => verifyPohApi
|
|
6488
|
+
});
|
|
6489
|
+
var import_react_query5 = require("@tanstack/react-query");
|
|
6490
|
+
function usePohList(options) {
|
|
6491
|
+
const { isLogin } = useUserInfo();
|
|
6492
|
+
return (0, import_react_query5.useQuery)({
|
|
6493
|
+
queryKey: ["pohList"],
|
|
6494
|
+
enabled: isLogin,
|
|
6495
|
+
queryFn: async () => {
|
|
6496
|
+
let res = await getPohListApi();
|
|
6497
|
+
return res.data;
|
|
6498
|
+
},
|
|
6499
|
+
...options
|
|
6500
|
+
});
|
|
6501
|
+
}
|
|
6502
|
+
|
|
6503
|
+
// src/hooks/api/user.ts
|
|
6504
|
+
var user_exports = {};
|
|
6505
|
+
__export(user_exports, {
|
|
6506
|
+
chooseIdentityApi: () => chooseIdentityApi,
|
|
6507
|
+
mintPassportNftApi: () => mintPassportNftApi
|
|
6508
|
+
});
|
|
6509
|
+
|
|
6510
|
+
// src/hooks/api/contact.ts
|
|
6511
|
+
var contact_exports = {};
|
|
6512
|
+
__export(contact_exports, {
|
|
6513
|
+
useContactList: () => useContactList
|
|
6514
|
+
});
|
|
6515
|
+
var import_react_query6 = require("@tanstack/react-query");
|
|
6516
|
+
var import_uniqBy = __toESM(require("lodash/uniqBy"));
|
|
6517
|
+
var import_last = __toESM(require("lodash/last"));
|
|
6518
|
+
function useContactList(page_size = 10, type = "Friend") {
|
|
6519
|
+
const { token } = useLocalStore_default();
|
|
6520
|
+
const {
|
|
6521
|
+
data,
|
|
6522
|
+
fetchNextPage,
|
|
6523
|
+
hasNextPage,
|
|
6524
|
+
isLoading,
|
|
6525
|
+
isError,
|
|
6526
|
+
isFetchingNextPage
|
|
6527
|
+
} = (0, import_react_query6.useInfiniteQuery)({
|
|
6528
|
+
queryKey: ["contacts", type, token],
|
|
6529
|
+
initialPageParam: 1,
|
|
6530
|
+
queryFn: async ({ pageParam }) => {
|
|
6531
|
+
return (await getContactListApi({
|
|
6532
|
+
page: pageParam,
|
|
6533
|
+
page_size,
|
|
6534
|
+
type
|
|
6535
|
+
})).data;
|
|
6536
|
+
},
|
|
6537
|
+
getNextPageParam: (lastPage, allPages) => {
|
|
6538
|
+
if (!lastPage) return void 0;
|
|
6539
|
+
const lastPageNum = Math.ceil(lastPage.meta.total / page_size);
|
|
6540
|
+
return allPages.length >= lastPageNum ? void 0 : allPages.length + 1;
|
|
6541
|
+
}
|
|
6542
|
+
});
|
|
6543
|
+
return {
|
|
6544
|
+
data: (0, import_uniqBy.default)(
|
|
6545
|
+
(data?.pages ?? []).reduce(
|
|
6546
|
+
(a, b) => {
|
|
6547
|
+
return a.concat(b?.items ?? []);
|
|
6548
|
+
},
|
|
6549
|
+
[]
|
|
6550
|
+
),
|
|
6551
|
+
"address"
|
|
6552
|
+
),
|
|
6553
|
+
totalCount: hasNextPage ? ((0, import_last.default)(data?.pages ?? [])?.meta.total ?? 0) + 1 : (0, import_last.default)(data?.pages ?? [])?.meta.total ?? 0,
|
|
6554
|
+
loading: isLoading,
|
|
6555
|
+
loadingNextPage: isFetchingNextPage,
|
|
6556
|
+
hasNextPage,
|
|
6557
|
+
onLoadMore: fetchNextPage
|
|
6558
|
+
};
|
|
6559
|
+
}
|
|
6560
|
+
|
|
6561
|
+
// src/components/ContactList/index.tsx
|
|
6562
|
+
var import_react_virtuoso = require("react-virtuoso");
|
|
6563
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
6564
|
+
function ContactCard({
|
|
6565
|
+
loading = false,
|
|
6566
|
+
data
|
|
6567
|
+
}) {
|
|
6568
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "matchid-flex matchid-contact-item", children: [
|
|
6569
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "matchid-contact-item-content", children: [
|
|
6570
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Skeleton_default, { width: 48, height: 48, radius: 100, loading: loading || !data?.avatar, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("img", { src: data?.avatar, className: "matchid-contact-item-avatar" }) }),
|
|
6571
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "matchid-contact-item-info", children: [
|
|
6572
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "matchid-contact-item-name", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Skeleton_default, { width: 80, height: 20, loading, children: data?.name || "MatchID User" }) }),
|
|
6573
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "matchid-contact-item-name", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Skeleton_default, { width: 80, height: 16, loading, children: data?.address }) })
|
|
6574
|
+
] })
|
|
6575
|
+
] }),
|
|
6576
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "matchid-contact-item-action", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Skeleton_default, { width: 20, height: 20, loading }) })
|
|
6577
|
+
] });
|
|
6578
|
+
}
|
|
6579
|
+
function ContactList({
|
|
6580
|
+
height = 660,
|
|
6581
|
+
type = "Friend"
|
|
6582
|
+
}) {
|
|
6583
|
+
const { loading, totalCount, data, onLoadMore } = contact_exports.useContactList(10, type);
|
|
6584
|
+
console.log("useContactList", data);
|
|
6585
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
6586
|
+
import_react_virtuoso.Virtuoso,
|
|
6587
|
+
{
|
|
6588
|
+
style: {
|
|
6589
|
+
height
|
|
6590
|
+
},
|
|
6591
|
+
totalCount: loading ? 10 : totalCount,
|
|
6592
|
+
itemContent: (index) => {
|
|
6593
|
+
if (loading || !data[index]) {
|
|
6594
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(ContactCard, { loading: true });
|
|
6595
|
+
}
|
|
6596
|
+
const item = data[index];
|
|
6597
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(ContactCard, { data: item });
|
|
6598
|
+
},
|
|
6599
|
+
endReached: () => {
|
|
6600
|
+
onLoadMore();
|
|
6601
|
+
},
|
|
6602
|
+
components: {
|
|
6603
|
+
Footer: () => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "matchid-nomore", children: "No more" })
|
|
6604
|
+
}
|
|
6385
6605
|
}
|
|
6386
6606
|
);
|
|
6387
6607
|
}
|
|
@@ -6389,25 +6609,25 @@ function TransactionList({
|
|
|
6389
6609
|
// src/hooks/useMatchWallet.tsx
|
|
6390
6610
|
var import_react_qrcode = require("react-qrcode");
|
|
6391
6611
|
var import_react35 = require("react");
|
|
6392
|
-
var
|
|
6612
|
+
var import_react_query9 = require("@tanstack/react-query");
|
|
6393
6613
|
var import_viem15 = require("viem");
|
|
6394
6614
|
var import_react_intl20 = require("react-intl");
|
|
6395
6615
|
|
|
6396
6616
|
// src/components/ImportToken/index.tsx
|
|
6397
6617
|
var import_react34 = require("react");
|
|
6398
6618
|
var import_react_intl19 = require("react-intl");
|
|
6399
|
-
var
|
|
6619
|
+
var import_react_query8 = require("@tanstack/react-query");
|
|
6400
6620
|
var import_viem14 = require("viem");
|
|
6401
6621
|
|
|
6402
6622
|
// src/hooks/useIsContract.ts
|
|
6403
6623
|
var import_viem13 = require("viem");
|
|
6404
|
-
var
|
|
6624
|
+
var import_react_query7 = require("@tanstack/react-query");
|
|
6405
6625
|
function useIsContract({
|
|
6406
6626
|
address,
|
|
6407
6627
|
chain,
|
|
6408
6628
|
enabled
|
|
6409
6629
|
}) {
|
|
6410
|
-
return (0,
|
|
6630
|
+
return (0, import_react_query7.useQuery)({
|
|
6411
6631
|
queryKey: ["is_contract", chain?.id, address],
|
|
6412
6632
|
queryFn: async () => {
|
|
6413
6633
|
if (!chain) return false;
|
|
@@ -6424,7 +6644,7 @@ function useIsContract({
|
|
|
6424
6644
|
}
|
|
6425
6645
|
|
|
6426
6646
|
// src/components/ImportToken/index.tsx
|
|
6427
|
-
var
|
|
6647
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
6428
6648
|
function ImportToken({ close }) {
|
|
6429
6649
|
const [status, setStatus] = (0, import_react34.useState)("");
|
|
6430
6650
|
const { token } = useUserInfo();
|
|
@@ -6486,7 +6706,7 @@ function ImportToken({ close }) {
|
|
|
6486
6706
|
}, [address, publicClient]);
|
|
6487
6707
|
const [loading, setLoading] = (0, import_react34.useState)(false);
|
|
6488
6708
|
const toast = useToast();
|
|
6489
|
-
const queryClient2 = (0,
|
|
6709
|
+
const queryClient2 = (0, import_react_query8.useQueryClient)();
|
|
6490
6710
|
const onImport = async () => {
|
|
6491
6711
|
setLoading(true);
|
|
6492
6712
|
try {
|
|
@@ -6535,19 +6755,19 @@ function ImportToken({ close }) {
|
|
|
6535
6755
|
enabled: canImport
|
|
6536
6756
|
});
|
|
6537
6757
|
if (status == "success" || status == "fail") {
|
|
6538
|
-
return /* @__PURE__ */ (0,
|
|
6539
|
-
/* @__PURE__ */ (0,
|
|
6540
|
-
/* @__PURE__ */ (0,
|
|
6541
|
-
/* @__PURE__ */ (0,
|
|
6758
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: `matchid-import-token-result matchid-flex`, children: [
|
|
6759
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: `matchid-import-token-result-box matchid-flex`, children: [
|
|
6760
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("img", { src: status == "success" ? success_default : fail_default, alt: status == "success" ? "success" : "fail", className: `matchid-import-token-result-img` }),
|
|
6761
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: `matchid-import-token-result-text matchid-import-token-result-text-${status}`, children: status == "success" ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react_intl19.FormattedMessage, { id: "importSuccess" }) : /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react_intl19.FormattedMessage, { id: "importFail" }) })
|
|
6542
6762
|
] }),
|
|
6543
|
-
status == "success" ? /* @__PURE__ */ (0,
|
|
6763
|
+
status == "success" ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Button, { size: "lg", onClick: close, block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react_intl19.FormattedMessage, { id: "close" }) }) : /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Button, { size: "lg", onClick: () => setStatus(""), block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react_intl19.FormattedMessage, { id: "back" }) })
|
|
6544
6764
|
] });
|
|
6545
6765
|
}
|
|
6546
|
-
return /* @__PURE__ */ (0,
|
|
6547
|
-
/* @__PURE__ */ (0,
|
|
6548
|
-
/* @__PURE__ */ (0,
|
|
6766
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: `matchid-import-token`, children: [
|
|
6767
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "matchid-import-token-form", children: [
|
|
6768
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Field, { label: intl.formatMessage({
|
|
6549
6769
|
id: "tokenSmartContract"
|
|
6550
|
-
}), error: error.address ? error.address : isContractQuery.isFetched && !isContractQuery.isLoading && !isContractQuery.data && canImport ? "Address isn't a contract address" : "", children: /* @__PURE__ */ (0,
|
|
6770
|
+
}), error: error.address ? error.address : isContractQuery.isFetched && !isContractQuery.isLoading && !isContractQuery.data && canImport ? "Address isn't a contract address" : "", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
6551
6771
|
Input,
|
|
6552
6772
|
{
|
|
6553
6773
|
placeholder: intl.formatMessage({
|
|
@@ -6558,9 +6778,9 @@ function ImportToken({ close }) {
|
|
|
6558
6778
|
maxLength: 42
|
|
6559
6779
|
}
|
|
6560
6780
|
) }),
|
|
6561
|
-
/* @__PURE__ */ (0,
|
|
6781
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Field, { label: intl.formatMessage({
|
|
6562
6782
|
id: "tokenSymbol"
|
|
6563
|
-
}), error: error.symbol, children: /* @__PURE__ */ (0,
|
|
6783
|
+
}), error: error.symbol, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
6564
6784
|
Input,
|
|
6565
6785
|
{
|
|
6566
6786
|
placeholder: intl.formatMessage({
|
|
@@ -6571,9 +6791,9 @@ function ImportToken({ close }) {
|
|
|
6571
6791
|
maxLength: 16
|
|
6572
6792
|
}
|
|
6573
6793
|
) }),
|
|
6574
|
-
/* @__PURE__ */ (0,
|
|
6794
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Field, { label: intl.formatMessage({
|
|
6575
6795
|
id: "tokenDecimals"
|
|
6576
|
-
}), error: error.decimals, children: /* @__PURE__ */ (0,
|
|
6796
|
+
}), error: error.decimals, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
6577
6797
|
Input,
|
|
6578
6798
|
{
|
|
6579
6799
|
placeholder: intl.formatMessage({
|
|
@@ -6585,7 +6805,7 @@ function ImportToken({ close }) {
|
|
|
6585
6805
|
}
|
|
6586
6806
|
) })
|
|
6587
6807
|
] }),
|
|
6588
|
-
/* @__PURE__ */ (0,
|
|
6808
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
6589
6809
|
Button,
|
|
6590
6810
|
{
|
|
6591
6811
|
size: "lg",
|
|
@@ -6594,14 +6814,14 @@ function ImportToken({ close }) {
|
|
|
6594
6814
|
loading: loading || isContractQuery.isLoading,
|
|
6595
6815
|
disabled: !canImport || !isContractQuery.data,
|
|
6596
6816
|
highlight: true,
|
|
6597
|
-
children: /* @__PURE__ */ (0,
|
|
6817
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react_intl19.FormattedMessage, { id: "import" })
|
|
6598
6818
|
}
|
|
6599
6819
|
)
|
|
6600
6820
|
] });
|
|
6601
6821
|
}
|
|
6602
6822
|
|
|
6603
6823
|
// src/hooks/useMatchWallet.tsx
|
|
6604
|
-
var
|
|
6824
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
6605
6825
|
var ReceiveModal = () => {
|
|
6606
6826
|
const chain = useMatchChain();
|
|
6607
6827
|
const { address } = useWallet();
|
|
@@ -6615,10 +6835,10 @@ var ReceiveModal = () => {
|
|
|
6615
6835
|
}));
|
|
6616
6836
|
};
|
|
6617
6837
|
const chainLink = chain.explorerLink("address/" + address);
|
|
6618
|
-
return /* @__PURE__ */ (0,
|
|
6619
|
-
/* @__PURE__ */ (0,
|
|
6620
|
-
/* @__PURE__ */ (0,
|
|
6621
|
-
/* @__PURE__ */ (0,
|
|
6838
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: `matchid-receive-modal`, children: [
|
|
6839
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "matchid-receive-container", children: [
|
|
6840
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: `matchid-receive-text`, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_intl20.FormattedMessage, { id: "receiveQrcode" }) }),
|
|
6841
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: `matchid-qr-container`, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
6622
6842
|
import_react_qrcode.QRCode,
|
|
6623
6843
|
{
|
|
6624
6844
|
margin: "0",
|
|
@@ -6626,7 +6846,7 @@ var ReceiveModal = () => {
|
|
|
6626
6846
|
value: address
|
|
6627
6847
|
}
|
|
6628
6848
|
) }),
|
|
6629
|
-
/* @__PURE__ */ (0,
|
|
6849
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
6630
6850
|
"a",
|
|
6631
6851
|
{
|
|
6632
6852
|
href: chainLink,
|
|
@@ -6636,7 +6856,7 @@ var ReceiveModal = () => {
|
|
|
6636
6856
|
}
|
|
6637
6857
|
)
|
|
6638
6858
|
] }),
|
|
6639
|
-
/* @__PURE__ */ (0,
|
|
6859
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Button, { size: "lg", onClick: onCopy, block: true, highlight: true, disabled: copied, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
6640
6860
|
import_react_intl20.FormattedMessage,
|
|
6641
6861
|
{
|
|
6642
6862
|
id: "copyAddress"
|
|
@@ -6876,7 +7096,7 @@ function useMatchWalletAssetList({
|
|
|
6876
7096
|
name: chain?.nativeCurrency.name,
|
|
6877
7097
|
balance: 0
|
|
6878
7098
|
};
|
|
6879
|
-
const nativeBalanceQuery = (0,
|
|
7099
|
+
const nativeBalanceQuery = (0, import_react_query9.useQuery)({
|
|
6880
7100
|
queryKey: ["nativeBalance", nativeToken?.chain_id],
|
|
6881
7101
|
queryFn: async () => {
|
|
6882
7102
|
if (!nativeToken || !publicClient) return null;
|
|
@@ -6896,7 +7116,7 @@ function useMatchWalletAssetList({
|
|
|
6896
7116
|
// Retry up to 3 times if failed
|
|
6897
7117
|
});
|
|
6898
7118
|
const erc20Tokens = (0, import_react35.useMemo)(() => list.filter((asset) => asset.address !== NATIVE_TOKEN_ADDRESS), [list]);
|
|
6899
|
-
const erc20BalanceQuery = (0,
|
|
7119
|
+
const erc20BalanceQuery = (0, import_react_query9.useQuery)({
|
|
6900
7120
|
queryKey: ["erc20Balances", erc20Tokens.map((token) => token.address)],
|
|
6901
7121
|
queryFn: async () => {
|
|
6902
7122
|
if (!erc20Tokens.length || !publicClient) return [];
|
|
@@ -6971,7 +7191,7 @@ function useMatchWalletAssetList({
|
|
|
6971
7191
|
|
|
6972
7192
|
// src/hooks/useReceipt.tsx
|
|
6973
7193
|
var import_react36 = require("react");
|
|
6974
|
-
var
|
|
7194
|
+
var import_react_query10 = require("@tanstack/react-query");
|
|
6975
7195
|
var import_viem16 = require("viem");
|
|
6976
7196
|
var CACHE_TTL = 86400 * 30 * 1e3;
|
|
6977
7197
|
var MAX_CACHE_SIZE = 500;
|
|
@@ -7080,7 +7300,7 @@ function useReceipt2({
|
|
|
7080
7300
|
const cache = useReceiptCache();
|
|
7081
7301
|
const chain = list?.find((item) => item.id === chainId);
|
|
7082
7302
|
const [shouldRefetch, setShouldRefetch] = (0, import_react36.useState)(true);
|
|
7083
|
-
const query = (0,
|
|
7303
|
+
const query = (0, import_react_query10.useQuery)({
|
|
7084
7304
|
queryKey: ["match-tx-receipt", hash, chain],
|
|
7085
7305
|
queryFn: async () => {
|
|
7086
7306
|
if (!chain || !hash) return false;
|
|
@@ -7115,7 +7335,7 @@ function useReceipt2({
|
|
|
7115
7335
|
|
|
7116
7336
|
// src/hooks/useTransaction.tsx
|
|
7117
7337
|
var import_react37 = require("react");
|
|
7118
|
-
var
|
|
7338
|
+
var import_react_query11 = require("@tanstack/react-query");
|
|
7119
7339
|
var import_viem17 = require("viem");
|
|
7120
7340
|
var CACHE_TTL2 = 86400 * 30 * 1e3;
|
|
7121
7341
|
var MAX_CACHE_SIZE2 = 500;
|
|
@@ -7224,7 +7444,7 @@ function useTransaction({
|
|
|
7224
7444
|
const cache = useTransactionCache();
|
|
7225
7445
|
const chain = list?.find((item) => item.id === chainId);
|
|
7226
7446
|
const [shouldRefetch, setShouldRefetch] = (0, import_react37.useState)(true);
|
|
7227
|
-
const query = (0,
|
|
7447
|
+
const query = (0, import_react_query11.useQuery)({
|
|
7228
7448
|
queryKey: ["match-tx-transaction", hash, chain],
|
|
7229
7449
|
queryFn: async () => {
|
|
7230
7450
|
if (!chain || !hash) return false;
|
|
@@ -7260,7 +7480,7 @@ function useTransaction({
|
|
|
7260
7480
|
// src/components/CEXBindModal/index.tsx
|
|
7261
7481
|
var import_react38 = require("react");
|
|
7262
7482
|
var import_react_intl21 = require("react-intl");
|
|
7263
|
-
var
|
|
7483
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
7264
7484
|
function CEXBindModal({
|
|
7265
7485
|
onClose,
|
|
7266
7486
|
type,
|
|
@@ -7315,20 +7535,20 @@ function CEXBindModal({
|
|
|
7315
7535
|
setLoading(false);
|
|
7316
7536
|
}
|
|
7317
7537
|
};
|
|
7318
|
-
return /* @__PURE__ */ (0,
|
|
7538
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(ModalWithHeader, { showClose: true, isOpen, onClose, title: intl.formatMessage({
|
|
7319
7539
|
id: "CEXBindTitle"
|
|
7320
7540
|
}, {
|
|
7321
7541
|
type
|
|
7322
|
-
}), ...props, children: /* @__PURE__ */ (0,
|
|
7323
|
-
/* @__PURE__ */ (0,
|
|
7324
|
-
/* @__PURE__ */ (0,
|
|
7325
|
-
/* @__PURE__ */ (0,
|
|
7326
|
-
/* @__PURE__ */ (0,
|
|
7327
|
-
/* @__PURE__ */ (0,
|
|
7542
|
+
}), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "matchid-cex-modal", children: [
|
|
7543
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { children: [
|
|
7544
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_intl21.FormattedMessage, { id: "CEXBindAttention" }) }),
|
|
7545
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_intl21.FormattedMessage, { id: "CEXBindTips1" }) }),
|
|
7546
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_intl21.FormattedMessage, { id: "CEXBindTips2" }) }),
|
|
7547
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_intl21.FormattedMessage, { id: "CEXBindTips3" }) })
|
|
7328
7548
|
] }),
|
|
7329
|
-
/* @__PURE__ */ (0,
|
|
7549
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Field, { label: intl.formatMessage({
|
|
7330
7550
|
id: "CEXBindApiKey"
|
|
7331
|
-
}), children: /* @__PURE__ */ (0,
|
|
7551
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7332
7552
|
Input,
|
|
7333
7553
|
{
|
|
7334
7554
|
value: key,
|
|
@@ -7336,9 +7556,9 @@ function CEXBindModal({
|
|
|
7336
7556
|
placeholder: "**** **** ****"
|
|
7337
7557
|
}
|
|
7338
7558
|
) }),
|
|
7339
|
-
/* @__PURE__ */ (0,
|
|
7559
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Field, { label: intl.formatMessage({
|
|
7340
7560
|
id: "CEXBindApiSecretKey"
|
|
7341
|
-
}), error: !needPassphrase && error, children: /* @__PURE__ */ (0,
|
|
7561
|
+
}), error: !needPassphrase && error, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7342
7562
|
Input,
|
|
7343
7563
|
{
|
|
7344
7564
|
value: secret,
|
|
@@ -7346,9 +7566,9 @@ function CEXBindModal({
|
|
|
7346
7566
|
placeholder: "**** **** ****"
|
|
7347
7567
|
}
|
|
7348
7568
|
) }),
|
|
7349
|
-
needPassphrase && /* @__PURE__ */ (0,
|
|
7569
|
+
needPassphrase && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Field, { error, label: intl.formatMessage({
|
|
7350
7570
|
id: "CEXBindApiPassphrase"
|
|
7351
|
-
}), children: /* @__PURE__ */ (0,
|
|
7571
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7352
7572
|
Input,
|
|
7353
7573
|
{
|
|
7354
7574
|
value: APIPassphrase,
|
|
@@ -7356,7 +7576,7 @@ function CEXBindModal({
|
|
|
7356
7576
|
placeholder: "**** **** ****"
|
|
7357
7577
|
}
|
|
7358
7578
|
) }),
|
|
7359
|
-
/* @__PURE__ */ (0,
|
|
7579
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7360
7580
|
Button,
|
|
7361
7581
|
{
|
|
7362
7582
|
onClick: SubmitApi,
|
|
@@ -7364,15 +7584,15 @@ function CEXBindModal({
|
|
|
7364
7584
|
block: true,
|
|
7365
7585
|
loading,
|
|
7366
7586
|
disabled: !key || !secret,
|
|
7367
|
-
children: /* @__PURE__ */ (0,
|
|
7587
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_intl21.FormattedMessage, { id: "continue" })
|
|
7368
7588
|
}
|
|
7369
7589
|
)
|
|
7370
7590
|
] }) });
|
|
7371
7591
|
}
|
|
7372
7592
|
|
|
7373
7593
|
// src/context/BusinessProvider.tsx
|
|
7374
|
-
var
|
|
7375
|
-
var
|
|
7594
|
+
var import_react_query12 = require("@tanstack/react-query");
|
|
7595
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
7376
7596
|
function BusinessProvider({ children }) {
|
|
7377
7597
|
const { overview, token } = useUserInfo();
|
|
7378
7598
|
const { type: EVMType, isOpen: EVMIsOpen, close: EVMClose } = useEVMModalStore();
|
|
@@ -7387,7 +7607,7 @@ function BusinessProvider({ children }) {
|
|
|
7387
7607
|
WalletModalStore.close();
|
|
7388
7608
|
func();
|
|
7389
7609
|
};
|
|
7390
|
-
(0,
|
|
7610
|
+
(0, import_react_query12.useQuery)({
|
|
7391
7611
|
queryKey: ["matchid-tgapp-login", tgAppAuthCode],
|
|
7392
7612
|
queryFn: async () => {
|
|
7393
7613
|
const res = await getTgAppLoginStatus({
|
|
@@ -7406,18 +7626,18 @@ function BusinessProvider({ children }) {
|
|
|
7406
7626
|
enabled: !!tgAppAuthCode,
|
|
7407
7627
|
refetchInterval: 1e3 * 5
|
|
7408
7628
|
});
|
|
7409
|
-
return /* @__PURE__ */ (0,
|
|
7410
|
-
/* @__PURE__ */ (0,
|
|
7629
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_jsx_runtime96.Fragment, { children: [
|
|
7630
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
7411
7631
|
EVMModal,
|
|
7412
7632
|
{
|
|
7413
7633
|
isOpen: EVMIsOpen && (EVMType == "login" && !overview && !token || EVMType == "bind" && !!token && !!overview),
|
|
7414
7634
|
onClose: EVMClose,
|
|
7415
7635
|
type: EVMType,
|
|
7416
|
-
onSuccess: EVMClose,
|
|
7636
|
+
onSuccess: () => walletModalClose(EVMClose),
|
|
7417
7637
|
zIndex: 199
|
|
7418
7638
|
}
|
|
7419
7639
|
),
|
|
7420
|
-
/* @__PURE__ */ (0,
|
|
7640
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
7421
7641
|
TRONModal,
|
|
7422
7642
|
{
|
|
7423
7643
|
isOpen: TRONIsOpen && (TRONType == "login" && !overview && !token || TRONType == "bind" && !!token && !!overview),
|
|
@@ -7427,7 +7647,7 @@ function BusinessProvider({ children }) {
|
|
|
7427
7647
|
zIndex: 199
|
|
7428
7648
|
}
|
|
7429
7649
|
),
|
|
7430
|
-
/* @__PURE__ */ (0,
|
|
7650
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
7431
7651
|
TONModal,
|
|
7432
7652
|
{
|
|
7433
7653
|
isOpen: TONIsOpen && (TONType == "login" && !overview && !token || TONType == "bind" && !!token && !!overview),
|
|
@@ -7437,7 +7657,7 @@ function BusinessProvider({ children }) {
|
|
|
7437
7657
|
zIndex: 199
|
|
7438
7658
|
}
|
|
7439
7659
|
),
|
|
7440
|
-
/* @__PURE__ */ (0,
|
|
7660
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
7441
7661
|
BTCModal,
|
|
7442
7662
|
{
|
|
7443
7663
|
isOpen: BTCIsOpen && (BTCType == "login" && !overview && !token || BTCType == "bind" && !!token && !!overview),
|
|
@@ -7447,7 +7667,7 @@ function BusinessProvider({ children }) {
|
|
|
7447
7667
|
zIndex: 199
|
|
7448
7668
|
}
|
|
7449
7669
|
),
|
|
7450
|
-
/* @__PURE__ */ (0,
|
|
7670
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
7451
7671
|
CEXBindModal,
|
|
7452
7672
|
{
|
|
7453
7673
|
isOpen: CEXIsOpen && (!!token && !!overview),
|
|
@@ -7456,7 +7676,7 @@ function BusinessProvider({ children }) {
|
|
|
7456
7676
|
zIndex: 199
|
|
7457
7677
|
}
|
|
7458
7678
|
),
|
|
7459
|
-
/* @__PURE__ */ (0,
|
|
7679
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
7460
7680
|
WalletModal,
|
|
7461
7681
|
{
|
|
7462
7682
|
isOpen: WalletModalStore.isOpen && (WalletModalStore.type == "login" && !overview && !token || WalletModalStore.type == "bind" && !!token && !!overview),
|
|
@@ -7471,9 +7691,9 @@ function BusinessProvider({ children }) {
|
|
|
7471
7691
|
}
|
|
7472
7692
|
|
|
7473
7693
|
// src/context/index.tsx
|
|
7474
|
-
var
|
|
7694
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
7475
7695
|
var Providers = ({ children }) => {
|
|
7476
|
-
return /* @__PURE__ */ (0,
|
|
7696
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(ToastProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(ModalProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(BusinessProvider, { children }) }) });
|
|
7477
7697
|
};
|
|
7478
7698
|
var context_default = Providers;
|
|
7479
7699
|
|
|
@@ -7858,7 +8078,7 @@ function useInit({
|
|
|
7858
8078
|
}
|
|
7859
8079
|
|
|
7860
8080
|
// src/MatchContext.tsx
|
|
7861
|
-
var
|
|
8081
|
+
var import_react_query13 = require("@tanstack/react-query");
|
|
7862
8082
|
var import_react_intl22 = require("react-intl");
|
|
7863
8083
|
|
|
7864
8084
|
// src/i18n/en.json
|
|
@@ -8604,8 +8824,8 @@ var messages = {
|
|
|
8604
8824
|
};
|
|
8605
8825
|
|
|
8606
8826
|
// src/MatchContext.tsx
|
|
8607
|
-
var
|
|
8608
|
-
var queryClient = new
|
|
8827
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
8828
|
+
var queryClient = new import_react_query13.QueryClient();
|
|
8609
8829
|
var MatchContext = (0, import_react41.createContext)(void 0);
|
|
8610
8830
|
var MatchProvider = ({
|
|
8611
8831
|
children,
|
|
@@ -8626,7 +8846,7 @@ var MatchProvider = ({
|
|
|
8626
8846
|
useWalletInit({
|
|
8627
8847
|
config: wallet
|
|
8628
8848
|
});
|
|
8629
|
-
return /* @__PURE__ */ (0,
|
|
8849
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_react_intl22.IntlProvider, { locale: realLocale, messages: messages[realLocale], children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_react_query13.QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
8630
8850
|
MatchContext.Provider,
|
|
8631
8851
|
{
|
|
8632
8852
|
value: {
|
|
@@ -8637,7 +8857,7 @@ var MatchProvider = ({
|
|
|
8637
8857
|
theme,
|
|
8638
8858
|
locale: realLocale
|
|
8639
8859
|
},
|
|
8640
|
-
children: /* @__PURE__ */ (0,
|
|
8860
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(context_default, { children })
|
|
8641
8861
|
}
|
|
8642
8862
|
) }) });
|
|
8643
8863
|
};
|
|
@@ -8649,78 +8869,6 @@ var useMatch = () => {
|
|
|
8649
8869
|
return context;
|
|
8650
8870
|
};
|
|
8651
8871
|
|
|
8652
|
-
// src/hooks/api/index.ts
|
|
8653
|
-
var api_exports = {};
|
|
8654
|
-
__export(api_exports, {
|
|
8655
|
-
bind: () => bind_exports,
|
|
8656
|
-
isSuccess: () => isSuccess,
|
|
8657
|
-
poh: () => poh_exports,
|
|
8658
|
-
user: () => user_exports,
|
|
8659
|
-
wallet: () => wallet_exports
|
|
8660
|
-
});
|
|
8661
|
-
|
|
8662
|
-
// src/hooks/api/bind.ts
|
|
8663
|
-
var bind_exports = {};
|
|
8664
|
-
__export(bind_exports, {
|
|
8665
|
-
bindCexApi: () => bindCexApi,
|
|
8666
|
-
unBindApi: () => unBindApi,
|
|
8667
|
-
unBindWalletApi: () => unBindWalletApi,
|
|
8668
|
-
useBindInfo: () => useBindInfo,
|
|
8669
|
-
useBindList: () => useBindList
|
|
8670
|
-
});
|
|
8671
|
-
var import_react_query11 = require("@tanstack/react-query");
|
|
8672
|
-
function useBindList(options) {
|
|
8673
|
-
const { isLogin } = useUserInfo();
|
|
8674
|
-
return (0, import_react_query11.useQuery)({
|
|
8675
|
-
queryKey: ["bindList"],
|
|
8676
|
-
enabled: isLogin,
|
|
8677
|
-
queryFn: async () => {
|
|
8678
|
-
let res = await getBindListApi();
|
|
8679
|
-
return res.data;
|
|
8680
|
-
},
|
|
8681
|
-
...options
|
|
8682
|
-
});
|
|
8683
|
-
}
|
|
8684
|
-
function useBindInfo(options) {
|
|
8685
|
-
const { isLogin } = useUserInfo();
|
|
8686
|
-
return (0, import_react_query11.useQuery)({
|
|
8687
|
-
queryKey: ["bindInfo"],
|
|
8688
|
-
enabled: isLogin,
|
|
8689
|
-
queryFn: async () => {
|
|
8690
|
-
let res = await getBindInfoApi();
|
|
8691
|
-
return res.data;
|
|
8692
|
-
},
|
|
8693
|
-
...options
|
|
8694
|
-
});
|
|
8695
|
-
}
|
|
8696
|
-
|
|
8697
|
-
// src/hooks/api/poh.ts
|
|
8698
|
-
var poh_exports = {};
|
|
8699
|
-
__export(poh_exports, {
|
|
8700
|
-
usePohList: () => usePohList,
|
|
8701
|
-
verifyPohApi: () => verifyPohApi
|
|
8702
|
-
});
|
|
8703
|
-
var import_react_query12 = require("@tanstack/react-query");
|
|
8704
|
-
function usePohList(options) {
|
|
8705
|
-
const { isLogin } = useUserInfo();
|
|
8706
|
-
return (0, import_react_query12.useQuery)({
|
|
8707
|
-
queryKey: ["pohList"],
|
|
8708
|
-
enabled: isLogin,
|
|
8709
|
-
queryFn: async () => {
|
|
8710
|
-
let res = await getPohListApi();
|
|
8711
|
-
return res.data;
|
|
8712
|
-
},
|
|
8713
|
-
...options
|
|
8714
|
-
});
|
|
8715
|
-
}
|
|
8716
|
-
|
|
8717
|
-
// src/hooks/api/user.ts
|
|
8718
|
-
var user_exports = {};
|
|
8719
|
-
__export(user_exports, {
|
|
8720
|
-
chooseIdentityApi: () => chooseIdentityApi,
|
|
8721
|
-
mintPassportNftApi: () => mintPassportNftApi
|
|
8722
|
-
});
|
|
8723
|
-
|
|
8724
8872
|
// src/config/chains/index.ts
|
|
8725
8873
|
var chains_exports = {};
|
|
8726
8874
|
__export(chains_exports, {
|