@matchain/matchid-sdk-react 0.1.42-alpha.12 → 0.1.42-alpha.13
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-P4CC5TVY.mjs → chunk-EZHR56PJ.mjs} +288 -214
- package/dist/chunk-EZHR56PJ.mjs.map +1 -0
- package/dist/{chunk-3SFDSK7R.mjs → chunk-FNCYUW2N.mjs} +2 -2
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +275 -212
- 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 +52 -30
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +3 -3
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +50 -28
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/{index-BxS06a5O.d.ts → index-B1MrvbwC.d.ts} +1 -1
- package/dist/{index-Ca9nh_8s.d.ts → index-Bm1VurYT.d.ts} +1 -1
- package/dist/{index-DFZpfAfc.d.mts → index-Bmq8JOtv.d.mts} +1 -1
- package/dist/{index-CmH9iRLd.d.mts → index-Cf6kfHOs.d.mts} +10 -3
- package/dist/{index-q5XDobUF.d.mts → index-DEwNjx57.d.mts} +1 -1
- package/dist/{index-DY_ReBra.d.ts → index-FtmjKzbF.d.ts} +10 -3
- package/dist/{index-Bhnio7tx.d.ts → index-oiyw9mSV.d.ts} +7 -3
- package/dist/{index-B2B4VJ-u.d.mts → index-vnxEmUFX.d.mts} +7 -3
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +344 -271
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/{types-CVwZEgQ0.d.mts → types-DHfZWETj.d.mts} +1 -1
- package/dist/{types-CVwZEgQ0.d.ts → types-DHfZWETj.d.ts} +1 -1
- package/example/src/config/index.ts +1 -0
- package/package.json +1 -1
- package/dist/chunk-P4CC5TVY.mjs.map +0 -1
- /package/dist/{chunk-3SFDSK7R.mjs.map → chunk-FNCYUW2N.mjs.map} +0 -0
package/dist/components/index.js
CHANGED
|
@@ -47,7 +47,8 @@ __export(components_exports, {
|
|
|
47
47
|
SOLModal: () => SOLModal,
|
|
48
48
|
TONModal: () => TONModal,
|
|
49
49
|
TRONModal: () => TRONModal,
|
|
50
|
-
UsernameModal: () => UsernameModal
|
|
50
|
+
UsernameModal: () => UsernameModal,
|
|
51
|
+
WalletModal: () => WalletModal
|
|
51
52
|
});
|
|
52
53
|
module.exports = __toCommonJS(components_exports);
|
|
53
54
|
|
|
@@ -1669,6 +1670,50 @@ var import_viem3 = require("viem");
|
|
|
1669
1670
|
|
|
1670
1671
|
// src/store/useModalStore.ts
|
|
1671
1672
|
var import_zustand3 = require("zustand");
|
|
1673
|
+
|
|
1674
|
+
// src/hooks/useConfig.tsx
|
|
1675
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
1676
|
+
var DEFAULT_WALLET_METHODS = ["evm", "sol", "btc", "tron", "ton"];
|
|
1677
|
+
function useWalletConfig() {
|
|
1678
|
+
const isDownMd = useDownMd();
|
|
1679
|
+
const walletMap = {
|
|
1680
|
+
evm: {
|
|
1681
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(EVMDarkIcon, { size: isDownMd ? 36 : 40 }),
|
|
1682
|
+
activeIcon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(EVMLightIcon, { size: isDownMd ? 36 : 40 }),
|
|
1683
|
+
name: "EVM",
|
|
1684
|
+
method: "evm"
|
|
1685
|
+
},
|
|
1686
|
+
sol: {
|
|
1687
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SOLDarkIcon, { size: isDownMd ? 36 : 40 }),
|
|
1688
|
+
activeIcon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SOLLightIcon, { size: isDownMd ? 36 : 40 }),
|
|
1689
|
+
name: "SOL",
|
|
1690
|
+
method: "sol"
|
|
1691
|
+
},
|
|
1692
|
+
btc: {
|
|
1693
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(BTCDarkIcon, { size: isDownMd ? 36 : 40 }),
|
|
1694
|
+
activeIcon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(BTCLightIcon, { size: isDownMd ? 36 : 40 }),
|
|
1695
|
+
name: "BTC",
|
|
1696
|
+
method: "btc"
|
|
1697
|
+
},
|
|
1698
|
+
tron: {
|
|
1699
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(TRXDarkIcon, { size: isDownMd ? 36 : 40 }),
|
|
1700
|
+
activeIcon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(TRXLightIcon, { size: isDownMd ? 36 : 40 }),
|
|
1701
|
+
name: "TRON",
|
|
1702
|
+
method: "tron"
|
|
1703
|
+
},
|
|
1704
|
+
ton: {
|
|
1705
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(TonLightIcon, { size: isDownMd ? 36 : 40 }),
|
|
1706
|
+
activeIcon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(TonLightIcon2, { size: isDownMd ? 36 : 40 }),
|
|
1707
|
+
name: "TON",
|
|
1708
|
+
method: "ton"
|
|
1709
|
+
}
|
|
1710
|
+
};
|
|
1711
|
+
return {
|
|
1712
|
+
walletMap
|
|
1713
|
+
};
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1716
|
+
// src/store/useModalStore.ts
|
|
1672
1717
|
var useSOLModalStore = (0, import_zustand3.create)((set) => ({
|
|
1673
1718
|
isOpen: false,
|
|
1674
1719
|
type: "",
|
|
@@ -1710,6 +1755,13 @@ var useHashPanelStore = (0, import_zustand3.create)((set) => ({
|
|
|
1710
1755
|
}),
|
|
1711
1756
|
close: () => set({ isOpen: false })
|
|
1712
1757
|
}));
|
|
1758
|
+
var useWalletModalStore = (0, import_zustand3.create)((set) => ({
|
|
1759
|
+
isOpen: false,
|
|
1760
|
+
type: "",
|
|
1761
|
+
methods: [],
|
|
1762
|
+
open: (type, methods = DEFAULT_WALLET_METHODS) => set({ isOpen: true, type, methods }),
|
|
1763
|
+
close: () => set({ isOpen: false })
|
|
1764
|
+
}));
|
|
1713
1765
|
|
|
1714
1766
|
// src/hooks/useWallet.tsx
|
|
1715
1767
|
var AppClientId = "react-sdk-" + getVersion();
|
|
@@ -2017,7 +2069,7 @@ function useCopyClipboard(timeout = 500) {
|
|
|
2017
2069
|
|
|
2018
2070
|
// src/components/PasswordModal/index.tsx
|
|
2019
2071
|
var import_react_intl2 = require("react-intl");
|
|
2020
|
-
var
|
|
2072
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
2021
2073
|
function PasswordModal({
|
|
2022
2074
|
title,
|
|
2023
2075
|
isOpen,
|
|
@@ -2077,15 +2129,15 @@ function PasswordModal({
|
|
|
2077
2129
|
setIsSubmitting(false);
|
|
2078
2130
|
}
|
|
2079
2131
|
};
|
|
2080
|
-
return /* @__PURE__ */ (0,
|
|
2132
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ModalWithHeader, { isOpen: isOpen && isLogin, ...props, title: title || intl.formatMessage({
|
|
2081
2133
|
id: "passwordTitle"
|
|
2082
|
-
}), children: /* @__PURE__ */ (0,
|
|
2083
|
-
/* @__PURE__ */ (0,
|
|
2084
|
-
/* @__PURE__ */ (0,
|
|
2085
|
-
/* @__PURE__ */ (0,
|
|
2134
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "matchid-password-box", children: [
|
|
2135
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "matchid-password-header", children: [
|
|
2136
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "matchid-password-header-icon", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(PasswordRoundIcon, {}) }),
|
|
2137
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "matchid-password-header-content", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react_intl2.FormattedMessage, { id: "passwordTips" }) })
|
|
2086
2138
|
] }),
|
|
2087
|
-
/* @__PURE__ */ (0,
|
|
2088
|
-
/* @__PURE__ */ (0,
|
|
2139
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "matchid-password-content", children: [
|
|
2140
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Field, { label: intl.formatMessage({ id: "password" }), error: password.length > 0 && passwordError, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
2089
2141
|
Input,
|
|
2090
2142
|
{
|
|
2091
2143
|
placeholder: intl.formatMessage({ id: "passwordPlaceholder" }),
|
|
@@ -2095,9 +2147,9 @@ function PasswordModal({
|
|
|
2095
2147
|
value: password
|
|
2096
2148
|
}
|
|
2097
2149
|
) }),
|
|
2098
|
-
/* @__PURE__ */ (0,
|
|
2150
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Field, { label: intl.formatMessage({
|
|
2099
2151
|
id: "rePassword"
|
|
2100
|
-
}), error: rePassword.length > 0 ? rePasswordError || error : error, children: /* @__PURE__ */ (0,
|
|
2152
|
+
}), error: rePassword.length > 0 ? rePasswordError || error : error, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
2101
2153
|
Input,
|
|
2102
2154
|
{
|
|
2103
2155
|
placeholder: intl.formatMessage({
|
|
@@ -2110,7 +2162,7 @@ function PasswordModal({
|
|
|
2110
2162
|
}
|
|
2111
2163
|
) })
|
|
2112
2164
|
] }),
|
|
2113
|
-
/* @__PURE__ */ (0,
|
|
2165
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
2114
2166
|
Button,
|
|
2115
2167
|
{
|
|
2116
2168
|
disabled: password.length == 0 || !!passwordError || !!rePasswordError,
|
|
@@ -2119,7 +2171,7 @@ function PasswordModal({
|
|
|
2119
2171
|
size: "lg",
|
|
2120
2172
|
onClick: onContinue,
|
|
2121
2173
|
loading: isSubmitting,
|
|
2122
|
-
children: /* @__PURE__ */ (0,
|
|
2174
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react_intl2.FormattedMessage, { id: "continue" })
|
|
2123
2175
|
}
|
|
2124
2176
|
)
|
|
2125
2177
|
] }) });
|
|
@@ -2128,12 +2180,12 @@ function PasswordModal({
|
|
|
2128
2180
|
// src/components/RecoveryModal/index.tsx
|
|
2129
2181
|
var import_react9 = require("react");
|
|
2130
2182
|
var import_react_intl3 = require("react-intl");
|
|
2131
|
-
var
|
|
2183
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
2132
2184
|
|
|
2133
2185
|
// src/components/CEXBindModal/index.tsx
|
|
2134
2186
|
var import_react10 = require("react");
|
|
2135
2187
|
var import_react_intl4 = require("react-intl");
|
|
2136
|
-
var
|
|
2188
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
2137
2189
|
|
|
2138
2190
|
// src/components/HashPanel/index.tsx
|
|
2139
2191
|
var import_viem4 = require("viem");
|
|
@@ -2141,19 +2193,19 @@ var import_react11 = require("react");
|
|
|
2141
2193
|
var import_react_query = require("@tanstack/react-query");
|
|
2142
2194
|
|
|
2143
2195
|
// src/components/Drawer/index.tsx
|
|
2144
|
-
var
|
|
2196
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
2145
2197
|
|
|
2146
2198
|
// src/components/ModalDrawer/index.tsx
|
|
2147
|
-
var
|
|
2199
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
2148
2200
|
|
|
2149
2201
|
// src/components/HashPanel/index.tsx
|
|
2150
|
-
var
|
|
2202
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
2151
2203
|
|
|
2152
2204
|
// src/context/BusinessProvider.tsx
|
|
2153
|
-
var
|
|
2205
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
2154
2206
|
|
|
2155
2207
|
// src/context/index.tsx
|
|
2156
|
-
var
|
|
2208
|
+
var import_jsx_runtime58 = (
|
|
2157
2209
|
// <MpcWalletProvider>
|
|
2158
2210
|
require("react/jsx-runtime")
|
|
2159
2211
|
);
|
|
@@ -2168,7 +2220,7 @@ var import_react14 = require("react");
|
|
|
2168
2220
|
// src/MatchContext.tsx
|
|
2169
2221
|
var import_react_query2 = require("@tanstack/react-query");
|
|
2170
2222
|
var import_react_intl5 = require("react-intl");
|
|
2171
|
-
var
|
|
2223
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
2172
2224
|
var queryClient = new import_react_query2.QueryClient();
|
|
2173
2225
|
var MatchContext = (0, import_react15.createContext)(void 0);
|
|
2174
2226
|
var useMatch = () => {
|
|
@@ -2199,6 +2251,7 @@ function useUserInfo() {
|
|
|
2199
2251
|
const { open: TONOpen } = useTONModalStore();
|
|
2200
2252
|
const { open: BTCOpen } = useBTCModalStore();
|
|
2201
2253
|
const { open: CEXBindOpen } = useCEXBindModalStore();
|
|
2254
|
+
const walletModalStore = useWalletModalStore();
|
|
2202
2255
|
const isLogin = (0, import_react16.useMemo)(() => !!token && !!overview, [token, overview]);
|
|
2203
2256
|
const logout = async () => {
|
|
2204
2257
|
try {
|
|
@@ -2237,8 +2290,10 @@ function useUserInfo() {
|
|
|
2237
2290
|
"width=800,height=600"
|
|
2238
2291
|
);
|
|
2239
2292
|
};
|
|
2240
|
-
const loginMethod = async (method) => {
|
|
2293
|
+
const loginMethod = async (method, extra) => {
|
|
2241
2294
|
switch (method) {
|
|
2295
|
+
case "wallet":
|
|
2296
|
+
return walletModalStore.open("login", extra?.methods);
|
|
2242
2297
|
case "evm":
|
|
2243
2298
|
return window.open(`${endpoints.auth}login/wallet?appid=${appid}`);
|
|
2244
2299
|
case "sol":
|
|
@@ -2327,11 +2382,13 @@ function useUserInfo() {
|
|
|
2327
2382
|
}
|
|
2328
2383
|
throw new Error(res.message);
|
|
2329
2384
|
};
|
|
2330
|
-
const bind = async (method) => {
|
|
2385
|
+
const bind = async (method, extra) => {
|
|
2331
2386
|
if (!token) {
|
|
2332
2387
|
throw new Error("You must login first");
|
|
2333
2388
|
}
|
|
2334
2389
|
switch (method) {
|
|
2390
|
+
case "wallet":
|
|
2391
|
+
return walletModalStore.open("bind", extra?.methods);
|
|
2335
2392
|
case "evm":
|
|
2336
2393
|
return window.open(`${endpoints.auth}bind/wallet?appid=${appid}&st=` + encodeURIComponent(encodeBase64(token)));
|
|
2337
2394
|
case "sol":
|
|
@@ -2441,7 +2498,7 @@ var EMAIL_CODE_LENGTH = 6;
|
|
|
2441
2498
|
|
|
2442
2499
|
// src/components/EmailModal/StepVerify.tsx
|
|
2443
2500
|
var import_react_intl6 = require("react-intl");
|
|
2444
|
-
var
|
|
2501
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
2445
2502
|
function StepVerify(props) {
|
|
2446
2503
|
const intl = (0, import_react_intl6.useIntl)();
|
|
2447
2504
|
const { getLoginEmailCode, loginByEmail } = useUserInfo();
|
|
@@ -2518,17 +2575,17 @@ function StepVerify(props) {
|
|
|
2518
2575
|
setSubmitting(false);
|
|
2519
2576
|
}
|
|
2520
2577
|
};
|
|
2521
|
-
return /* @__PURE__ */ (0,
|
|
2522
|
-
/* @__PURE__ */ (0,
|
|
2523
|
-
/* @__PURE__ */ (0,
|
|
2524
|
-
/* @__PURE__ */ (0,
|
|
2525
|
-
/* @__PURE__ */ (0,
|
|
2526
|
-
/* @__PURE__ */ (0,
|
|
2578
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "matchid-email-verify-box", children: [
|
|
2579
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "matchid-email-verify-header", children: [
|
|
2580
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "matchid-email-verify-header-icon", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(EmailLineIcon, { size: isDownMd ? 19 : 24 }) }),
|
|
2581
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "matchid-email-verify-header-content", children: [
|
|
2582
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "matchid-email-verify-header-value", children: props.email }),
|
|
2583
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "matchid-email-verify-header-tips", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react_intl6.FormattedMessage, { id: "sendEmailTips" }) })
|
|
2527
2584
|
] })
|
|
2528
2585
|
] }),
|
|
2529
|
-
/* @__PURE__ */ (0,
|
|
2586
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Field, { label: intl.formatMessage({
|
|
2530
2587
|
id: "verificationCode"
|
|
2531
|
-
}), error, children: /* @__PURE__ */ (0,
|
|
2588
|
+
}), error, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
2532
2589
|
Input,
|
|
2533
2590
|
{
|
|
2534
2591
|
placeholder: intl.formatMessage({
|
|
@@ -2538,7 +2595,7 @@ function StepVerify(props) {
|
|
|
2538
2595
|
maxLength: codeLength,
|
|
2539
2596
|
onChange: (e) => setCode(e.target.value),
|
|
2540
2597
|
value: code,
|
|
2541
|
-
after: /* @__PURE__ */ (0,
|
|
2598
|
+
after: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
2542
2599
|
Button,
|
|
2543
2600
|
{
|
|
2544
2601
|
highlight: true,
|
|
@@ -2557,13 +2614,13 @@ function StepVerify(props) {
|
|
|
2557
2614
|
)
|
|
2558
2615
|
}
|
|
2559
2616
|
) }),
|
|
2560
|
-
/* @__PURE__ */ (0,
|
|
2617
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Button, { disabled: !canContinue, highlight: true, block: true, size: "lg", onClick: onContinue, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react_intl6.FormattedMessage, { id: "continue" }) })
|
|
2561
2618
|
] });
|
|
2562
2619
|
}
|
|
2563
2620
|
|
|
2564
2621
|
// src/components/EmailModal/index.tsx
|
|
2565
2622
|
var import_react_intl7 = require("react-intl");
|
|
2566
|
-
var
|
|
2623
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
2567
2624
|
function EmailModal({
|
|
2568
2625
|
isOpen = false,
|
|
2569
2626
|
width = 480,
|
|
@@ -2580,7 +2637,7 @@ function EmailModal({
|
|
|
2580
2637
|
setEmailVal("");
|
|
2581
2638
|
}
|
|
2582
2639
|
}, [isOpen]);
|
|
2583
|
-
return /* @__PURE__ */ (0,
|
|
2640
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
2584
2641
|
ModalWithHeader,
|
|
2585
2642
|
{
|
|
2586
2643
|
isOpen,
|
|
@@ -2590,17 +2647,17 @@ function EmailModal({
|
|
|
2590
2647
|
id: "email"
|
|
2591
2648
|
}),
|
|
2592
2649
|
onBack: step == "verify" ? () => setStep("input") : onBack,
|
|
2593
|
-
children: step === "input" ? /* @__PURE__ */ (0,
|
|
2650
|
+
children: step === "input" ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(StepEmail, { email: emailVal, onContinue: (email) => {
|
|
2594
2651
|
setEmailVal(email);
|
|
2595
2652
|
setStep("verify");
|
|
2596
|
-
} }) : /* @__PURE__ */ (0,
|
|
2653
|
+
} }) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(StepVerify, { email: emailVal, onSuccess: onLogin })
|
|
2597
2654
|
}
|
|
2598
2655
|
);
|
|
2599
2656
|
}
|
|
2600
2657
|
|
|
2601
2658
|
// src/components/Popover/index.tsx
|
|
2602
2659
|
var import_react19 = require("react");
|
|
2603
|
-
var
|
|
2660
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
2604
2661
|
function Popover({
|
|
2605
2662
|
children,
|
|
2606
2663
|
content,
|
|
@@ -2610,7 +2667,7 @@ function Popover({
|
|
|
2610
2667
|
gap = "20px"
|
|
2611
2668
|
}) {
|
|
2612
2669
|
const [active, setActive] = (0, import_react19.useState)(false);
|
|
2613
|
-
return children && /* @__PURE__ */ (0,
|
|
2670
|
+
return children && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
|
2614
2671
|
"div",
|
|
2615
2672
|
{
|
|
2616
2673
|
onClick: () => {
|
|
@@ -2621,9 +2678,9 @@ function Popover({
|
|
|
2621
2678
|
className: `matchid-popover-box matchid-popover-${position} matchid-popover-${type} ${className} ${type == "click" && active ? "matchid-popover-click-active" : ""}`,
|
|
2622
2679
|
children: [
|
|
2623
2680
|
children,
|
|
2624
|
-
/* @__PURE__ */ (0,
|
|
2681
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { style: {
|
|
2625
2682
|
paddingTop: gap
|
|
2626
|
-
}, className: `matchid-popover-area`, children: /* @__PURE__ */ (0,
|
|
2683
|
+
}, className: `matchid-popover-area`, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: `matchid-popover-content`, children: content }) })
|
|
2627
2684
|
]
|
|
2628
2685
|
}
|
|
2629
2686
|
);
|
|
@@ -2632,7 +2689,7 @@ function Popover({
|
|
|
2632
2689
|
// src/components/LoginBox/index.tsx
|
|
2633
2690
|
var import_react20 = require("react");
|
|
2634
2691
|
var import_react_intl8 = require("react-intl");
|
|
2635
|
-
var
|
|
2692
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
2636
2693
|
var RecommendItem = ({
|
|
2637
2694
|
icon,
|
|
2638
2695
|
name,
|
|
@@ -2641,20 +2698,20 @@ var RecommendItem = ({
|
|
|
2641
2698
|
children,
|
|
2642
2699
|
footer
|
|
2643
2700
|
}) => {
|
|
2644
|
-
return /* @__PURE__ */ (0,
|
|
2645
|
-
/* @__PURE__ */ (0,
|
|
2646
|
-
/* @__PURE__ */ (0,
|
|
2647
|
-
/* @__PURE__ */ (0,
|
|
2648
|
-
/* @__PURE__ */ (0,
|
|
2701
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "matchid-login-recommend-method", children: [
|
|
2702
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "matchid-login-recommend-method-item", onClick, children: [
|
|
2703
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "matchid-login-recommend-method-content", children: [
|
|
2704
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "matchid-login-recommend-method-icon", children: icon }),
|
|
2705
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "matchid-login-recommend-method-name", children: name })
|
|
2649
2706
|
] }),
|
|
2650
|
-
footer ? footer : children ? /* @__PURE__ */ (0,
|
|
2707
|
+
footer ? footer : children ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
2651
2708
|
ArrowDownIcon,
|
|
2652
2709
|
{
|
|
2653
2710
|
className: `matchid-login-recommend-method-arrow ${showChildren ? "matchid-login-recommend-method-arrow-active" : ""}`,
|
|
2654
2711
|
size: 20,
|
|
2655
2712
|
color: "var(--matchid-arrow-color)"
|
|
2656
2713
|
}
|
|
2657
|
-
) : /* @__PURE__ */ (0,
|
|
2714
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
2658
2715
|
ArrowRightIcon,
|
|
2659
2716
|
{
|
|
2660
2717
|
className: "matchid-login-recommend-method-arrow",
|
|
@@ -2663,7 +2720,7 @@ var RecommendItem = ({
|
|
|
2663
2720
|
}
|
|
2664
2721
|
)
|
|
2665
2722
|
] }),
|
|
2666
|
-
children && /* @__PURE__ */ (0,
|
|
2723
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
2667
2724
|
"div",
|
|
2668
2725
|
{
|
|
2669
2726
|
className: `matchid-login-recommend-method-popover ${showChildren ? "matchid-login-recommend-method-popover-active" : ""}`,
|
|
@@ -2685,7 +2742,7 @@ function LoginBox({
|
|
|
2685
2742
|
"linkedin",
|
|
2686
2743
|
"discord"
|
|
2687
2744
|
],
|
|
2688
|
-
walletMethods =
|
|
2745
|
+
walletMethods = DEFAULT_WALLET_METHODS,
|
|
2689
2746
|
inModal = false
|
|
2690
2747
|
}) {
|
|
2691
2748
|
const [emailOpen, setEmailOpen] = (0, import_react20.useState)(false);
|
|
@@ -2695,121 +2752,92 @@ function LoginBox({
|
|
|
2695
2752
|
const isDownMd = useDownMd();
|
|
2696
2753
|
const methodMap = {
|
|
2697
2754
|
wallet: {
|
|
2698
|
-
icon: /* @__PURE__ */ (0,
|
|
2755
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(WalletIcon, { size: isDownMd ? 36 : 40 }),
|
|
2699
2756
|
name: intl.formatMessage({ id: "wallet" }),
|
|
2700
2757
|
onClick: () => setShowWallet(!showWallet),
|
|
2701
2758
|
type: "wallet"
|
|
2702
2759
|
},
|
|
2703
2760
|
email: {
|
|
2704
|
-
icon: /* @__PURE__ */ (0,
|
|
2761
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(EmailIcon, { size: isDownMd ? 36 : 40 }),
|
|
2705
2762
|
name: intl.formatMessage({ id: "email" }),
|
|
2706
2763
|
onClick: () => {
|
|
2707
2764
|
setEmailOpen(true);
|
|
2708
2765
|
}
|
|
2709
2766
|
},
|
|
2710
2767
|
google: {
|
|
2711
|
-
icon: /* @__PURE__ */ (0,
|
|
2768
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(GoogleIcon, { size: isDownMd ? 36 : 40 }),
|
|
2712
2769
|
name: "Google",
|
|
2713
2770
|
onClick: () => login("google")
|
|
2714
2771
|
},
|
|
2715
2772
|
twitter: {
|
|
2716
|
-
icon: /* @__PURE__ */ (0,
|
|
2773
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(XIcon, { size: isDownMd ? 36 : 40 }),
|
|
2717
2774
|
name: "X",
|
|
2718
2775
|
onClick: () => login("twitter")
|
|
2719
2776
|
},
|
|
2720
2777
|
telegram: {
|
|
2721
|
-
icon: /* @__PURE__ */ (0,
|
|
2778
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(TelegramIcon, { size: isDownMd ? 36 : 40 }),
|
|
2722
2779
|
name: "Telegram",
|
|
2723
2780
|
onClick: () => login("telegram")
|
|
2724
2781
|
},
|
|
2725
2782
|
github: {
|
|
2726
|
-
icon: /* @__PURE__ */ (0,
|
|
2783
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(GithubIcon, { size: isDownMd ? 36 : 40 }),
|
|
2727
2784
|
name: "Github",
|
|
2728
2785
|
onClick: () => login("github")
|
|
2729
2786
|
},
|
|
2730
2787
|
discord: {
|
|
2731
|
-
icon: /* @__PURE__ */ (0,
|
|
2788
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(DiscordIcon, { size: isDownMd ? 36 : 40 }),
|
|
2732
2789
|
name: "Discord",
|
|
2733
2790
|
onClick: () => login("discord")
|
|
2734
2791
|
},
|
|
2735
2792
|
linkedin: {
|
|
2736
|
-
icon: /* @__PURE__ */ (0,
|
|
2793
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(LinkedinIcon, { size: isDownMd ? 36 : 40 }),
|
|
2737
2794
|
name: "LinkedIn",
|
|
2738
2795
|
onClick: () => login("linkedin")
|
|
2739
2796
|
},
|
|
2740
2797
|
facebook: {
|
|
2741
|
-
icon: /* @__PURE__ */ (0,
|
|
2798
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(FacebookIcon, { size: isDownMd ? 36 : 40 }),
|
|
2742
2799
|
name: "Facebook",
|
|
2743
2800
|
onClick: () => login("facebook")
|
|
2744
2801
|
},
|
|
2745
2802
|
youtube: {
|
|
2746
|
-
icon: /* @__PURE__ */ (0,
|
|
2803
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(YoutubeIcon, { size: isDownMd ? 36 : 40 }),
|
|
2747
2804
|
name: "Youtube",
|
|
2748
2805
|
onClick: () => login("youtube")
|
|
2749
2806
|
}
|
|
2750
2807
|
};
|
|
2751
|
-
const walletMap =
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
onClick: () => login("evm")
|
|
2757
|
-
},
|
|
2758
|
-
sol: {
|
|
2759
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(SOLDarkIcon, { size: isDownMd ? 36 : 40 }),
|
|
2760
|
-
activeIcon: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(SOLLightIcon, { size: isDownMd ? 36 : 40 }),
|
|
2761
|
-
name: "SOL",
|
|
2762
|
-
onClick: () => login("sol")
|
|
2763
|
-
},
|
|
2764
|
-
btc: {
|
|
2765
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(BTCDarkIcon, { size: isDownMd ? 36 : 40 }),
|
|
2766
|
-
activeIcon: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(BTCLightIcon, { size: isDownMd ? 36 : 40 }),
|
|
2767
|
-
name: "BTC",
|
|
2768
|
-
onClick: () => login("btc")
|
|
2769
|
-
},
|
|
2770
|
-
tron: {
|
|
2771
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(TRXDarkIcon, { size: isDownMd ? 36 : 40 }),
|
|
2772
|
-
activeIcon: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(TRXLightIcon, { size: isDownMd ? 36 : 40 }),
|
|
2773
|
-
name: "TRON",
|
|
2774
|
-
onClick: () => login("tron")
|
|
2775
|
-
},
|
|
2776
|
-
ton: {
|
|
2777
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(TonLightIcon, { size: isDownMd ? 36 : 40 }),
|
|
2778
|
-
activeIcon: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(TonLightIcon2, { size: isDownMd ? 36 : 40 }),
|
|
2779
|
-
name: "TON",
|
|
2780
|
-
onClick: () => login("ton")
|
|
2781
|
-
}
|
|
2782
|
-
};
|
|
2783
|
-
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
|
|
2784
|
-
(!inModal || !emailOpen) && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "matchid-login-box", children: [
|
|
2785
|
-
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "matchid-login-recommend-list", children: recommendMethods.map((m) => {
|
|
2786
|
-
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
2808
|
+
const { walletMap } = useWalletConfig();
|
|
2809
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
|
|
2810
|
+
(!inModal || !emailOpen) && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "matchid-login-box", children: [
|
|
2811
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "matchid-login-recommend-list", children: recommendMethods.map((m) => {
|
|
2812
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
2787
2813
|
RecommendItem,
|
|
2788
2814
|
{
|
|
2789
2815
|
icon: methodMap[m]?.icon,
|
|
2790
2816
|
name: methodMap[m]?.name,
|
|
2791
2817
|
onClick: methodMap[m]?.onClick,
|
|
2792
2818
|
showChildren: m == "wallet" && showWallet,
|
|
2793
|
-
children: m == "wallet" && /* @__PURE__ */ (0,
|
|
2794
|
-
/* @__PURE__ */ (0,
|
|
2795
|
-
/* @__PURE__ */ (0,
|
|
2819
|
+
children: m == "wallet" && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
|
|
2820
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "matchid-login-recommend-wallet-divider" }),
|
|
2821
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "matchid-login-recommend-wallet-list", children: walletMethods.map((n) => {
|
|
2796
2822
|
const m2 = walletMap[n];
|
|
2797
|
-
return /* @__PURE__ */ (0,
|
|
2823
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
2798
2824
|
"div",
|
|
2799
2825
|
{
|
|
2800
2826
|
className: "matchid-login-recommend-wallet-item",
|
|
2801
|
-
onClick:
|
|
2827
|
+
onClick: () => {
|
|
2828
|
+
login(m2.method);
|
|
2829
|
+
},
|
|
2802
2830
|
children: [
|
|
2803
|
-
/* @__PURE__ */ (0,
|
|
2804
|
-
/* @__PURE__ */ (0,
|
|
2805
|
-
/* @__PURE__ */ (0,
|
|
2831
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "matchid-login-recommend-wallet-item-content", children: [
|
|
2832
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "matchid-login-recommend-wallet-item-icon", children: m2.icon }),
|
|
2833
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
2806
2834
|
"div",
|
|
2807
2835
|
{
|
|
2808
2836
|
className: "matchid-login-recommend-wallet-item-hover-icon",
|
|
2809
2837
|
children: m2.activeIcon
|
|
2810
2838
|
}
|
|
2811
2839
|
),
|
|
2812
|
-
/* @__PURE__ */ (0,
|
|
2840
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
2813
2841
|
"span",
|
|
2814
2842
|
{
|
|
2815
2843
|
className: "matchid-login-recommend-wallet-item-name",
|
|
@@ -2817,7 +2845,7 @@ function LoginBox({
|
|
|
2817
2845
|
}
|
|
2818
2846
|
)
|
|
2819
2847
|
] }),
|
|
2820
|
-
/* @__PURE__ */ (0,
|
|
2848
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
2821
2849
|
ArrowRightIcon,
|
|
2822
2850
|
{
|
|
2823
2851
|
className: "matchid-login-recommend-wallet-item-arrow",
|
|
@@ -2835,10 +2863,10 @@ function LoginBox({
|
|
|
2835
2863
|
m
|
|
2836
2864
|
);
|
|
2837
2865
|
}) }),
|
|
2838
|
-
methods.length > 0 && /* @__PURE__ */ (0,
|
|
2839
|
-
/* @__PURE__ */ (0,
|
|
2840
|
-
/* @__PURE__ */ (0,
|
|
2841
|
-
return /* @__PURE__ */ (0,
|
|
2866
|
+
methods.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "matchid-login-other", children: [
|
|
2867
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "matchid-login-other-text", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react_intl8.FormattedMessage, { id: "otherLoginMethods" }) }),
|
|
2868
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "matchid-login-method-box", children: methods.map((m) => {
|
|
2869
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
2842
2870
|
"div",
|
|
2843
2871
|
{
|
|
2844
2872
|
className: "matchid-login-method-item",
|
|
@@ -2851,7 +2879,7 @@ function LoginBox({
|
|
|
2851
2879
|
}) })
|
|
2852
2880
|
] })
|
|
2853
2881
|
] }),
|
|
2854
|
-
/* @__PURE__ */ (0,
|
|
2882
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
2855
2883
|
EmailModal,
|
|
2856
2884
|
{
|
|
2857
2885
|
isOpen: emailOpen,
|
|
@@ -2871,40 +2899,40 @@ var import_react22 = require("react");
|
|
|
2871
2899
|
|
|
2872
2900
|
// src/components/LoginPanel/index.tsx
|
|
2873
2901
|
var import_react_intl9 = require("react-intl");
|
|
2874
|
-
var
|
|
2902
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
2875
2903
|
function LoginPanel({
|
|
2876
2904
|
header,
|
|
2877
2905
|
onClose,
|
|
2878
2906
|
...props
|
|
2879
2907
|
}) {
|
|
2880
2908
|
const isDownMd = useDownMd();
|
|
2881
|
-
return /* @__PURE__ */ (0,
|
|
2882
|
-
header ? header : /* @__PURE__ */ (0,
|
|
2883
|
-
/* @__PURE__ */ (0,
|
|
2884
|
-
/* @__PURE__ */ (0,
|
|
2885
|
-
/* @__PURE__ */ (0,
|
|
2909
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "matchid-login-panel", children: [
|
|
2910
|
+
header ? header : /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "matchid-login-panel-header", children: [
|
|
2911
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "matchid-login-panel-header-content", children: [
|
|
2912
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "matchid-login-panel-header-title", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react_intl9.FormattedMessage, { id: "loginTitle" }) }),
|
|
2913
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "matchid-login-panel-header-subtilte", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react_intl9.FormattedMessage, { id: "loginTips" }) })
|
|
2886
2914
|
] }),
|
|
2887
|
-
onClose && /* @__PURE__ */ (0,
|
|
2915
|
+
onClose && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "matchid-login-panel-header-close", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30 }) })
|
|
2888
2916
|
] }),
|
|
2889
|
-
/* @__PURE__ */ (0,
|
|
2890
|
-
/* @__PURE__ */ (0,
|
|
2917
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "matchid-login-panel-divide" }),
|
|
2918
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "matchid-login-panel-box", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(LoginBox, { ...props }) })
|
|
2891
2919
|
] });
|
|
2892
2920
|
}
|
|
2893
2921
|
|
|
2894
2922
|
// src/components/LoginModal/index.tsx
|
|
2895
|
-
var
|
|
2923
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
2896
2924
|
function LoginModal({
|
|
2897
2925
|
isOpen = false,
|
|
2898
2926
|
width = 480,
|
|
2899
2927
|
...props
|
|
2900
2928
|
}) {
|
|
2901
2929
|
const { isLogin } = useUserInfo();
|
|
2902
|
-
return /* @__PURE__ */ (0,
|
|
2930
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
2903
2931
|
Modal,
|
|
2904
2932
|
{
|
|
2905
2933
|
isOpen: isOpen && !isLogin,
|
|
2906
2934
|
width,
|
|
2907
|
-
children: /* @__PURE__ */ (0,
|
|
2935
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(LoginPanel, { ...props, inModal: true })
|
|
2908
2936
|
}
|
|
2909
2937
|
);
|
|
2910
2938
|
}
|
|
@@ -2913,10 +2941,10 @@ function LoginModal({
|
|
|
2913
2941
|
var import_react21 = require("react");
|
|
2914
2942
|
|
|
2915
2943
|
// src/assets/icon/ProfileIcon.tsx
|
|
2916
|
-
var
|
|
2944
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
2917
2945
|
function ProfileIcon({ size = 24, color = "black", ...props }) {
|
|
2918
|
-
return /* @__PURE__ */ (0,
|
|
2919
|
-
/* @__PURE__ */ (0,
|
|
2946
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
2947
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
2920
2948
|
"path",
|
|
2921
2949
|
{
|
|
2922
2950
|
fillRule: "evenodd",
|
|
@@ -2925,7 +2953,7 @@ function ProfileIcon({ size = 24, color = "black", ...props }) {
|
|
|
2925
2953
|
fill: color
|
|
2926
2954
|
}
|
|
2927
2955
|
),
|
|
2928
|
-
/* @__PURE__ */ (0,
|
|
2956
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
2929
2957
|
"path",
|
|
2930
2958
|
{
|
|
2931
2959
|
fillRule: "evenodd",
|
|
@@ -2939,7 +2967,7 @@ function ProfileIcon({ size = 24, color = "black", ...props }) {
|
|
|
2939
2967
|
|
|
2940
2968
|
// src/components/UserPopover/index.tsx
|
|
2941
2969
|
var import_react_intl10 = require("react-intl");
|
|
2942
|
-
var
|
|
2970
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
2943
2971
|
function UserContent() {
|
|
2944
2972
|
const { logout, address, username } = useUserInfo();
|
|
2945
2973
|
const [logouting, setLogouting] = (0, import_react21.useState)(false);
|
|
@@ -2960,34 +2988,34 @@ function UserContent() {
|
|
|
2960
2988
|
rightIcon,
|
|
2961
2989
|
onClick
|
|
2962
2990
|
}) => {
|
|
2963
|
-
return /* @__PURE__ */ (0,
|
|
2964
|
-
/* @__PURE__ */ (0,
|
|
2991
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "matchid-user-popover-item", onClick, children: [
|
|
2992
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: `matchid-user-popover-item-content`, children: [
|
|
2965
2993
|
icon,
|
|
2966
|
-
/* @__PURE__ */ (0,
|
|
2994
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "matchid-user-popover-item-text", children })
|
|
2967
2995
|
] }),
|
|
2968
2996
|
rightIcon
|
|
2969
2997
|
] });
|
|
2970
2998
|
};
|
|
2971
2999
|
const UserDivider = () => {
|
|
2972
|
-
return /* @__PURE__ */ (0,
|
|
3000
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: `matchid-user-popover-divider` });
|
|
2973
3001
|
};
|
|
2974
3002
|
const [usernameOpen, setUsernameOpen] = (0, import_react21.useState)(false);
|
|
2975
3003
|
const [copied, setCopied] = useCopyClipboard();
|
|
2976
3004
|
const intl = (0, import_react_intl10.useIntl)();
|
|
2977
|
-
return /* @__PURE__ */ (0,
|
|
2978
|
-
/* @__PURE__ */ (0,
|
|
2979
|
-
/* @__PURE__ */ (0,
|
|
3005
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "matchid-user-popover-content", children: [
|
|
3006
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "matchid-user-popover-list", children: [
|
|
3007
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(UserItem, { onClick: () => {
|
|
2980
3008
|
setCopied(address);
|
|
2981
|
-
}, icon: copied ? /* @__PURE__ */ (0,
|
|
2982
|
-
/* @__PURE__ */ (0,
|
|
2983
|
-
/* @__PURE__ */ (0,
|
|
3009
|
+
}, icon: copied ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(CheckIcon, { size: 20, color: "#0ecb81" }) : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(CopyIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(CheckIcon, { size: 20, color: "var(--icon-color)" }), children: truncateAddress(address) }),
|
|
3010
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(UserDivider, {}),
|
|
3011
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(UserItem, { onClick: () => {
|
|
2984
3012
|
setUsernameOpen(true);
|
|
2985
|
-
}, icon: /* @__PURE__ */ (0,
|
|
3013
|
+
}, icon: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(ProfileIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(ArrowRightIcon, { size: 20, color: "var(--icon-color)" }), children: username || intl.formatMessage({
|
|
2986
3014
|
id: "setUsername"
|
|
2987
3015
|
}) })
|
|
2988
3016
|
] }),
|
|
2989
|
-
/* @__PURE__ */ (0,
|
|
2990
|
-
/* @__PURE__ */ (0,
|
|
3017
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Button, { onClick: onLogout, loading: logouting, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react_intl10.FormattedMessage, { id: "disconnect" }) }),
|
|
3018
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(UsernameModal, { isOpen: usernameOpen, onClose: () => {
|
|
2991
3019
|
setUsernameOpen(false);
|
|
2992
3020
|
}, onSuccess: () => {
|
|
2993
3021
|
setUsernameOpen(false);
|
|
@@ -2998,12 +3026,12 @@ function UserPopover({
|
|
|
2998
3026
|
children,
|
|
2999
3027
|
...props
|
|
3000
3028
|
}) {
|
|
3001
|
-
return /* @__PURE__ */ (0,
|
|
3029
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Popover, { ...props, content: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(UserContent, {}), children });
|
|
3002
3030
|
}
|
|
3003
3031
|
|
|
3004
3032
|
// src/components/LoginButton/index.tsx
|
|
3005
3033
|
var import_react_intl11 = require("react-intl");
|
|
3006
|
-
var
|
|
3034
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
3007
3035
|
function LoginButton({
|
|
3008
3036
|
loginRender,
|
|
3009
3037
|
methods,
|
|
@@ -3019,8 +3047,8 @@ function LoginButton({
|
|
|
3019
3047
|
const { isLogin, username } = useUserInfo();
|
|
3020
3048
|
const [loginOpen, setLoginOpen] = (0, import_react22.useState)(false);
|
|
3021
3049
|
if (!isLogin) {
|
|
3022
|
-
return /* @__PURE__ */ (0,
|
|
3023
|
-
/* @__PURE__ */ (0,
|
|
3050
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_jsx_runtime68.Fragment, { children: [
|
|
3051
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
3024
3052
|
LoginModal,
|
|
3025
3053
|
{
|
|
3026
3054
|
methods,
|
|
@@ -3030,15 +3058,15 @@ function LoginButton({
|
|
|
3030
3058
|
onClose: () => setLoginOpen(false)
|
|
3031
3059
|
}
|
|
3032
3060
|
),
|
|
3033
|
-
/* @__PURE__ */ (0,
|
|
3034
|
-
/* @__PURE__ */ (0,
|
|
3035
|
-
/* @__PURE__ */ (0,
|
|
3061
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(Button, { className: "matchid-unlogin-btn", ...props, highlight: true, onClick: () => setLoginOpen(true), children: [
|
|
3062
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(UnLoginIcon_default, {}),
|
|
3063
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react_intl11.FormattedMessage, { id: "login" }) })
|
|
3036
3064
|
] })
|
|
3037
3065
|
] });
|
|
3038
3066
|
}
|
|
3039
|
-
return loginRender ? /* @__PURE__ */ (0,
|
|
3040
|
-
/* @__PURE__ */ (0,
|
|
3041
|
-
/* @__PURE__ */ (0,
|
|
3067
|
+
return loginRender ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_jsx_runtime68.Fragment, { children: loginRender }) : /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(UserPopover, { position: popoverPosition, type: popoverType, gap: popoverGap, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(Button, { onClick: onLoginClick, className: "matchid-login-btn", ...props, children: [
|
|
3068
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(LoginIcon_default, {}),
|
|
3069
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { children: username ? truncateAddress(username) : "MatchID " + intl.formatMessage({
|
|
3042
3070
|
id: "user"
|
|
3043
3071
|
}) })
|
|
3044
3072
|
] }) });
|
|
@@ -3048,14 +3076,14 @@ function LoginButton({
|
|
|
3048
3076
|
var import_react23 = require("react");
|
|
3049
3077
|
|
|
3050
3078
|
// src/assets/icon/InfoRoundIcon.tsx
|
|
3051
|
-
var
|
|
3079
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
3052
3080
|
function InfoRoundIcon({
|
|
3053
3081
|
size,
|
|
3054
3082
|
color = "#6E6E6E",
|
|
3055
3083
|
...props
|
|
3056
3084
|
}) {
|
|
3057
|
-
return /* @__PURE__ */ (0,
|
|
3058
|
-
/* @__PURE__ */ (0,
|
|
3085
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("svg", { width: size, height: size, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
3086
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("g", { clipPath: "url(#clip0_418_7746)", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
3059
3087
|
"path",
|
|
3060
3088
|
{
|
|
3061
3089
|
fillRule: "evenodd",
|
|
@@ -3064,21 +3092,21 @@ function InfoRoundIcon({
|
|
|
3064
3092
|
fill: color
|
|
3065
3093
|
}
|
|
3066
3094
|
) }),
|
|
3067
|
-
/* @__PURE__ */ (0,
|
|
3095
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("clipPath", { id: "clip0_418_7746", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
3068
3096
|
] });
|
|
3069
3097
|
}
|
|
3070
3098
|
|
|
3071
3099
|
// src/components/UsernameModal/index.tsx
|
|
3072
3100
|
var import_react_intl12 = require("react-intl");
|
|
3073
|
-
var
|
|
3101
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
3074
3102
|
var ValidItem = ({
|
|
3075
3103
|
success = false,
|
|
3076
3104
|
text
|
|
3077
3105
|
}) => {
|
|
3078
3106
|
const isDownMd = useDownMd();
|
|
3079
|
-
return /* @__PURE__ */ (0,
|
|
3080
|
-
success ? /* @__PURE__ */ (0,
|
|
3081
|
-
/* @__PURE__ */ (0,
|
|
3107
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: `matchid-valid-status-item matchid-valid-status-${success ? "success" : "error"}`, children: [
|
|
3108
|
+
success ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(CheckRoundIcon, { size: isDownMd ? 12 : 16 }) : /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(InfoRoundIcon, { size: isDownMd ? 12 : 16 }),
|
|
3109
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { children: text })
|
|
3082
3110
|
] });
|
|
3083
3111
|
};
|
|
3084
3112
|
function UsernameModal({
|
|
@@ -3126,12 +3154,12 @@ function UsernameModal({
|
|
|
3126
3154
|
}
|
|
3127
3155
|
};
|
|
3128
3156
|
const intl = (0, import_react_intl12.useIntl)();
|
|
3129
|
-
return /* @__PURE__ */ (0,
|
|
3157
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(ModalWithHeader, { isOpen: isOpen && isLogin, ...props, title: title || intl.formatMessage({
|
|
3130
3158
|
id: username ? "editUsernameTitle" : "setUsernameTitle"
|
|
3131
|
-
}), children: /* @__PURE__ */ (0,
|
|
3132
|
-
/* @__PURE__ */ (0,
|
|
3159
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "matchid-username-box", children: [
|
|
3160
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Field, { label: intl.formatMessage({
|
|
3133
3161
|
id: "username"
|
|
3134
|
-
}), error, children: /* @__PURE__ */ (0,
|
|
3162
|
+
}), error, children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
3135
3163
|
Input,
|
|
3136
3164
|
{
|
|
3137
3165
|
placeholder: intl.formatMessage({
|
|
@@ -3144,8 +3172,8 @@ function UsernameModal({
|
|
|
3144
3172
|
value: val
|
|
3145
3173
|
}
|
|
3146
3174
|
) }),
|
|
3147
|
-
/* @__PURE__ */ (0,
|
|
3148
|
-
/* @__PURE__ */ (0,
|
|
3175
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "matchid-valid", children: [
|
|
3176
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
3149
3177
|
ValidItem,
|
|
3150
3178
|
{
|
|
3151
3179
|
success: isValid,
|
|
@@ -3154,16 +3182,16 @@ function UsernameModal({
|
|
|
3154
3182
|
})
|
|
3155
3183
|
}
|
|
3156
3184
|
),
|
|
3157
|
-
/* @__PURE__ */ (0,
|
|
3185
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(ValidItem, { success: isLength, text: intl.formatMessage({
|
|
3158
3186
|
id: "usernameLengthError"
|
|
3159
3187
|
}) })
|
|
3160
3188
|
] }),
|
|
3161
|
-
/* @__PURE__ */ (0,
|
|
3189
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Button, { disabled: !isSafe, loading: isSubmitting, style: {
|
|
3162
3190
|
marginTop: isDownMd ? "36px" : "64px"
|
|
3163
|
-
}, onClick: onSubmit, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ (0,
|
|
3164
|
-
/* @__PURE__ */ (0,
|
|
3191
|
+
}, onClick: onSubmit, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react_intl12.FormattedMessage, { id: "confirm" }) }),
|
|
3192
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Button, { style: {
|
|
3165
3193
|
marginTop: isDownMd ? "12px" : "24px"
|
|
3166
|
-
}, onClick: props.onClose, size: "lg", block: true, children: /* @__PURE__ */ (0,
|
|
3194
|
+
}, onClick: props.onClose, size: "lg", block: true, children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react_intl12.FormattedMessage, { id: "cancel" }) })
|
|
3167
3195
|
] }) });
|
|
3168
3196
|
}
|
|
3169
3197
|
|
|
@@ -3197,7 +3225,7 @@ var walletConnectImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEA
|
|
|
3197
3225
|
var walletSigningImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAABAsUlEQVR4Xu19CXQUx7X2vCUveS/vJdgx+yaJHQwI8G4wzWIbG2LLNrbxPgnY7CC0SyNpJBAIECAZAbLB8gAyKGGxiFnkGJwmz47xsU0mvyEWoGW0D0jgSeK88L84/7l/fS2V3GrNaDRCEiPpfud8p3qqu6tnpvt+favqVpXJxGAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYbYvCwkKlpKREvXDhglpQUKCKz+qlS5e0z8j3N5aXl6tXrlwJMf4OBoPRDD777LPg7Ozs0MOHD1NiYiLNnTuX7rzrDho5ejj179+f+vbt69ccNGgQBQQE0LBhw2jUqFE0ZswYun3sGBo3cQxNmDiexk+8XaTBIh1LwYLfbY/vcvsnTpyofUbqjXfeeSdNnjyZHnnkEXrxxRcpKSmJfvnLX9KuXbtCz5w5ozgcjmDjs8LoQlBVNcBqtZrFjbfjIYAR/fCHP6Qf/OAH9C//8i/0z//8zw2p3P6nf/qnhtRfKH4K00B534z5kvr/71//9V/p3/7t36hHjx6aeM6cOZPWr19Pubm56tmzZ81CCHqYGF0LH3/8sW3lypXqtGnTqHfv3tpDAOLBkakkHiQ8KJ4EwOTmAfMHGoWiO1HeO2O+O+r/M5wDMfiv//ovuuuuuyg6OloTAhOj68But6cvWLBAc51xs40PhHwojHmeiGP9jcbv2N3Y0v/A+L/p/z94gqhiwSPYsWNHuonRuSFc/h5Qc9xQvNXxpse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ldj7jPraGnc9G1jHal6OhotPjbTYzOhUPvHlLnL/iZFg2IBh/jA+PpwTHul3MMGvObY2vaCHw9R3ZVGfObI85pzW9pzTnGPG9szTltRf39R5UQ3cqPPvqotlApRnhyi38nBKK6RH3N/M4776CbjyZMmEB9+/bVBnfIh83kRvkl5cPRUQbQXFuEJ/p6HX8WgNb8/rYiro0uXSwzh1GkmzIyKDs721xQUKB890QxOiUqKyuDEeCTkpISumvXLlq1ahU99NBDdP/99xNi/DFqcNiwYcxOSNw7EEFecNcR4+ErMcz7hRde0Gb22bNnz+nU1FRF/egjxfgcMboYzp8/H/zll1+qvz9/Xj3/1VfqVwYWFRWhu0e9cOGCto20sLBQo3gz8P4ust/Bk3kwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDN/x/wHjsXZ4EUApzgAAAABJRU5ErkJggg==";
|
|
3198
3226
|
|
|
3199
3227
|
// src/components/WalletModalContent/index.tsx
|
|
3200
|
-
var
|
|
3228
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
3201
3229
|
function WalletModalContent({
|
|
3202
3230
|
status,
|
|
3203
3231
|
error,
|
|
@@ -3267,12 +3295,12 @@ function WalletModalContent({
|
|
|
3267
3295
|
statusImage: walletConnectImage
|
|
3268
3296
|
};
|
|
3269
3297
|
}, [visible, connected, status, error, address]);
|
|
3270
|
-
return /* @__PURE__ */ (0,
|
|
3271
|
-
/* @__PURE__ */ (0,
|
|
3272
|
-
/* @__PURE__ */ (0,
|
|
3273
|
-
/* @__PURE__ */ (0,
|
|
3298
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "matchid-wallet-container", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: `matchid-wallet-box`, children: [
|
|
3299
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: `matchid-wallet-content`, children: [
|
|
3300
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("img", { src: pageData.statusImage }),
|
|
3301
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: pageData.isError ? "text-[#F7585E]" : "", children: pageData.text })
|
|
3274
3302
|
] }),
|
|
3275
|
-
/* @__PURE__ */ (0,
|
|
3303
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3276
3304
|
Button,
|
|
3277
3305
|
{
|
|
3278
3306
|
block: true,
|
|
@@ -3287,7 +3315,7 @@ function WalletModalContent({
|
|
|
3287
3315
|
}
|
|
3288
3316
|
|
|
3289
3317
|
// src/components/SOLModal/index.tsx
|
|
3290
|
-
var
|
|
3318
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
3291
3319
|
function WalletContent({
|
|
3292
3320
|
onSuccess,
|
|
3293
3321
|
type
|
|
@@ -3369,7 +3397,7 @@ function WalletContent({
|
|
|
3369
3397
|
statusRef.current = "";
|
|
3370
3398
|
}
|
|
3371
3399
|
};
|
|
3372
|
-
return /* @__PURE__ */ (0,
|
|
3400
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
3373
3401
|
WalletModalContent,
|
|
3374
3402
|
{
|
|
3375
3403
|
connected: wallet.connected,
|
|
@@ -3430,14 +3458,14 @@ function SOLConnectModal({
|
|
|
3430
3458
|
...props
|
|
3431
3459
|
}) {
|
|
3432
3460
|
const intl = (0, import_react_intl13.useIntl)();
|
|
3433
|
-
return /* @__PURE__ */ (0,
|
|
3461
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
|
|
3434
3462
|
id: type == "bind" ? "bindWith" : "loginWith"
|
|
3435
3463
|
}, {
|
|
3436
3464
|
name: "SOL"
|
|
3437
|
-
}), children: /* @__PURE__ */ (0,
|
|
3465
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_wallet_adapter_react.ConnectionProvider, { endpoint: (0, import_web3.clusterApiUrl)("devnet"), children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_wallet_adapter_react.WalletProvider, { wallets, autoConnect: true, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_wallet_adapter_react_ui.WalletModalProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(WalletContent, { onSuccess, type }) }) }) }) });
|
|
3438
3466
|
}
|
|
3439
3467
|
function SOLModal(props) {
|
|
3440
|
-
return props.isOpen && /* @__PURE__ */ (0,
|
|
3468
|
+
return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(SOLConnectModal, { ...props });
|
|
3441
3469
|
}
|
|
3442
3470
|
|
|
3443
3471
|
// src/components/TRONModal/index.tsx
|
|
@@ -3552,7 +3580,7 @@ var useTRONWallet = () => {
|
|
|
3552
3580
|
};
|
|
3553
3581
|
|
|
3554
3582
|
// src/components/TRONModal/index.tsx
|
|
3555
|
-
var
|
|
3583
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
3556
3584
|
function TRONConnectModal({
|
|
3557
3585
|
type = "login",
|
|
3558
3586
|
onSuccess,
|
|
@@ -3562,9 +3590,9 @@ function TRONConnectModal({
|
|
|
3562
3590
|
const intl = (0, import_react_intl14.useIntl)();
|
|
3563
3591
|
const { wallets: wallets2, installedWallets, chooseWallet, wallet, address, onConnect } = useTRONWallet();
|
|
3564
3592
|
const iconMaps = {
|
|
3565
|
-
tronlink: /* @__PURE__ */ (0,
|
|
3566
|
-
bitget: /* @__PURE__ */ (0,
|
|
3567
|
-
okx: /* @__PURE__ */ (0,
|
|
3593
|
+
tronlink: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(TronLinkIcon, { size: isDownMd ? 36 : 40 }),
|
|
3594
|
+
bitget: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(BitgetIcon, { size: isDownMd ? 36 : 40 }),
|
|
3595
|
+
okx: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(OKXIcon, { size: isDownMd ? 36 : 40 })
|
|
3568
3596
|
};
|
|
3569
3597
|
const { events, login } = useMatch();
|
|
3570
3598
|
const [status, setStatus] = (0, import_react27.useState)("");
|
|
@@ -3656,11 +3684,11 @@ function TRONConnectModal({
|
|
|
3656
3684
|
disconnect();
|
|
3657
3685
|
}
|
|
3658
3686
|
}, [props.isOpen]);
|
|
3659
|
-
return /* @__PURE__ */ (0,
|
|
3687
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
|
|
3660
3688
|
id: type == "bind" ? "bindWith" : "loginWith"
|
|
3661
3689
|
}, {
|
|
3662
3690
|
name: "TRON"
|
|
3663
|
-
}), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ (0,
|
|
3691
|
+
}), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3664
3692
|
WalletModalContent,
|
|
3665
3693
|
{
|
|
3666
3694
|
error,
|
|
@@ -3673,9 +3701,9 @@ function TRONConnectModal({
|
|
|
3673
3701
|
setVisible: () => {
|
|
3674
3702
|
}
|
|
3675
3703
|
}
|
|
3676
|
-
) : /* @__PURE__ */ (0,
|
|
3704
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "matchid-login-box", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "matchid-login-recommend-list", children: [
|
|
3677
3705
|
installedWallets.map((wallet2) => {
|
|
3678
|
-
return /* @__PURE__ */ (0,
|
|
3706
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3679
3707
|
RecommendItem,
|
|
3680
3708
|
{
|
|
3681
3709
|
icon: iconMaps[wallet2.walletKey],
|
|
@@ -3688,14 +3716,14 @@ function TRONConnectModal({
|
|
|
3688
3716
|
);
|
|
3689
3717
|
}),
|
|
3690
3718
|
wallets2.filter((wallet2) => !installedWallets.find((installedWallet) => installedWallet.walletKey == wallet2.walletKey)).map((wallet2) => {
|
|
3691
|
-
return /* @__PURE__ */ (0,
|
|
3719
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3692
3720
|
RecommendItem,
|
|
3693
3721
|
{
|
|
3694
3722
|
icon: iconMaps[wallet2.walletKey],
|
|
3695
3723
|
name: wallet2.name,
|
|
3696
3724
|
onClick: () => {
|
|
3697
3725
|
},
|
|
3698
|
-
footer: /* @__PURE__ */ (0,
|
|
3726
|
+
footer: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Button, { size: "sm", onClick: () => {
|
|
3699
3727
|
window.open(wallet2.website);
|
|
3700
3728
|
}, children: "Install" })
|
|
3701
3729
|
},
|
|
@@ -3705,14 +3733,14 @@ function TRONConnectModal({
|
|
|
3705
3733
|
] }) }) });
|
|
3706
3734
|
}
|
|
3707
3735
|
function TRONModal(props) {
|
|
3708
|
-
return props.isOpen && /* @__PURE__ */ (0,
|
|
3736
|
+
return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(TRONConnectModal, { ...props, type: "" });
|
|
3709
3737
|
}
|
|
3710
3738
|
|
|
3711
3739
|
// src/components/TONModal/index.tsx
|
|
3712
3740
|
var import_react28 = __toESM(require("react"));
|
|
3713
3741
|
var import_react_intl15 = require("react-intl");
|
|
3714
3742
|
var import_ui_react = require("@tonconnect/ui-react");
|
|
3715
|
-
var
|
|
3743
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
3716
3744
|
function WalletContent2({
|
|
3717
3745
|
onSuccess,
|
|
3718
3746
|
type
|
|
@@ -3839,7 +3867,7 @@ function WalletContent2({
|
|
|
3839
3867
|
}
|
|
3840
3868
|
}
|
|
3841
3869
|
}, [state]);
|
|
3842
|
-
return /* @__PURE__ */ (0,
|
|
3870
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3843
3871
|
WalletModalContent,
|
|
3844
3872
|
{
|
|
3845
3873
|
connected,
|
|
@@ -3873,20 +3901,20 @@ function TONConnectModal({
|
|
|
3873
3901
|
const intl = (0, import_react_intl15.useIntl)();
|
|
3874
3902
|
const { endpoints, appid } = useLocalStore_default();
|
|
3875
3903
|
const manifestUrl = `${endpoints.back}api/v1/wallet/ton?appid=${appid}&url=` + encodeURIComponent(window.location.origin);
|
|
3876
|
-
return /* @__PURE__ */ (0,
|
|
3904
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
|
|
3877
3905
|
id: type == "bind" ? "bindWith" : "loginWith"
|
|
3878
3906
|
}, {
|
|
3879
3907
|
name: "TON"
|
|
3880
|
-
}), children: /* @__PURE__ */ (0,
|
|
3908
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3881
3909
|
import_ui_react.TonConnectUIProvider,
|
|
3882
3910
|
{
|
|
3883
3911
|
manifestUrl,
|
|
3884
|
-
children: /* @__PURE__ */ (0,
|
|
3912
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(WalletContent2, { onSuccess, type })
|
|
3885
3913
|
}
|
|
3886
3914
|
) });
|
|
3887
3915
|
}
|
|
3888
3916
|
function TONModal(props) {
|
|
3889
|
-
return props.isOpen && /* @__PURE__ */ (0,
|
|
3917
|
+
return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(TONConnectModal, { ...props });
|
|
3890
3918
|
}
|
|
3891
3919
|
|
|
3892
3920
|
// src/components/BTCModal/index.tsx
|
|
@@ -4074,7 +4102,7 @@ var useBTCWallet = () => {
|
|
|
4074
4102
|
};
|
|
4075
4103
|
|
|
4076
4104
|
// src/components/BTCModal/index.tsx
|
|
4077
|
-
var
|
|
4105
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
4078
4106
|
function BTCConnectModal({
|
|
4079
4107
|
type = "login",
|
|
4080
4108
|
onSuccess,
|
|
@@ -4084,9 +4112,9 @@ function BTCConnectModal({
|
|
|
4084
4112
|
const intl = (0, import_react_intl16.useIntl)();
|
|
4085
4113
|
const { wallets: wallets2, installedWallets, chooseWallet, wallet, address, onConnect } = useBTCWallet();
|
|
4086
4114
|
const iconMaps = {
|
|
4087
|
-
leather: /* @__PURE__ */ (0,
|
|
4088
|
-
unisat: /* @__PURE__ */ (0,
|
|
4089
|
-
xverse: /* @__PURE__ */ (0,
|
|
4115
|
+
leather: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(LeatherIcon, { size: isDownMd ? 36 : 40 }),
|
|
4116
|
+
unisat: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(UnisatIcon, { size: isDownMd ? 36 : 40 }),
|
|
4117
|
+
xverse: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(XverseIcon, { size: isDownMd ? 36 : 40 })
|
|
4090
4118
|
};
|
|
4091
4119
|
const { events, login } = useMatch();
|
|
4092
4120
|
const [status, setStatus] = (0, import_react30.useState)("");
|
|
@@ -4186,11 +4214,11 @@ function BTCConnectModal({
|
|
|
4186
4214
|
statusRef.current = "";
|
|
4187
4215
|
setError("");
|
|
4188
4216
|
};
|
|
4189
|
-
return /* @__PURE__ */ (0,
|
|
4217
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
|
|
4190
4218
|
id: type == "bind" ? "bindWith" : "loginWith"
|
|
4191
4219
|
}, {
|
|
4192
4220
|
name: "BTC"
|
|
4193
|
-
}), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ (0,
|
|
4221
|
+
}), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4194
4222
|
WalletModalContent,
|
|
4195
4223
|
{
|
|
4196
4224
|
error,
|
|
@@ -4203,9 +4231,9 @@ function BTCConnectModal({
|
|
|
4203
4231
|
setVisible: () => {
|
|
4204
4232
|
}
|
|
4205
4233
|
}
|
|
4206
|
-
) : /* @__PURE__ */ (0,
|
|
4234
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "matchid-login-box", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "matchid-login-recommend-list", children: [
|
|
4207
4235
|
installedWallets.map((wallet2) => {
|
|
4208
|
-
return /* @__PURE__ */ (0,
|
|
4236
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4209
4237
|
RecommendItem,
|
|
4210
4238
|
{
|
|
4211
4239
|
icon: iconMaps[wallet2.walletKey],
|
|
@@ -4218,14 +4246,14 @@ function BTCConnectModal({
|
|
|
4218
4246
|
);
|
|
4219
4247
|
}),
|
|
4220
4248
|
wallets2.filter((wallet2) => !installedWallets.find((installedWallet) => installedWallet.walletKey == wallet2.walletKey)).map((wallet2) => {
|
|
4221
|
-
return /* @__PURE__ */ (0,
|
|
4249
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4222
4250
|
RecommendItem,
|
|
4223
4251
|
{
|
|
4224
4252
|
icon: iconMaps[wallet2.walletKey],
|
|
4225
4253
|
name: wallet2.name,
|
|
4226
4254
|
onClick: () => {
|
|
4227
4255
|
},
|
|
4228
|
-
footer: /* @__PURE__ */ (0,
|
|
4256
|
+
footer: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Button, { size: "sm", onClick: () => {
|
|
4229
4257
|
window.open(wallet2.website);
|
|
4230
4258
|
}, children: "Install" })
|
|
4231
4259
|
},
|
|
@@ -4235,7 +4263,41 @@ function BTCConnectModal({
|
|
|
4235
4263
|
] }) }) });
|
|
4236
4264
|
}
|
|
4237
4265
|
function BTCModal(props) {
|
|
4238
|
-
return props.isOpen && /* @__PURE__ */ (0,
|
|
4266
|
+
return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(BTCConnectModal, { ...props });
|
|
4267
|
+
}
|
|
4268
|
+
|
|
4269
|
+
// src/components/WalletModal/index.tsx
|
|
4270
|
+
var import_react_intl17 = require("react-intl");
|
|
4271
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
4272
|
+
function WalletConnectModal({
|
|
4273
|
+
type,
|
|
4274
|
+
methods = DEFAULT_WALLET_METHODS,
|
|
4275
|
+
...props
|
|
4276
|
+
}) {
|
|
4277
|
+
const intl = (0, import_react_intl17.useIntl)();
|
|
4278
|
+
const { walletMap } = useWalletConfig();
|
|
4279
|
+
const { bind, login } = useUserInfo();
|
|
4280
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
|
|
4281
|
+
id: type == "bind" ? "bindWith" : "loginWith"
|
|
4282
|
+
}, {
|
|
4283
|
+
name: ""
|
|
4284
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "matchid-login-box", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "matchid-login-recommend-list", children: methods.map((method, index) => {
|
|
4285
|
+
const m = walletMap[method];
|
|
4286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
4287
|
+
RecommendItem,
|
|
4288
|
+
{
|
|
4289
|
+
icon: m?.icon,
|
|
4290
|
+
name: m?.name,
|
|
4291
|
+
onClick: () => {
|
|
4292
|
+
type == "bind" ? bind(method) : login(method);
|
|
4293
|
+
}
|
|
4294
|
+
},
|
|
4295
|
+
method
|
|
4296
|
+
);
|
|
4297
|
+
}) }) }) });
|
|
4298
|
+
}
|
|
4299
|
+
function WalletModal(props) {
|
|
4300
|
+
return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(WalletConnectModal, { ...props });
|
|
4239
4301
|
}
|
|
4240
4302
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4241
4303
|
0 && (module.exports = {
|
|
@@ -4256,6 +4318,7 @@ function BTCModal(props) {
|
|
|
4256
4318
|
SOLModal,
|
|
4257
4319
|
TONModal,
|
|
4258
4320
|
TRONModal,
|
|
4259
|
-
UsernameModal
|
|
4321
|
+
UsernameModal,
|
|
4322
|
+
WalletModal
|
|
4260
4323
|
});
|
|
4261
4324
|
//# sourceMappingURL=index.js.map
|