@talken/talkenkit 2.3.8 → 2.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-M2CMB5B2.js +93 -0
- package/dist/components/AbcLoginModal/AbcAuthModal.d.ts +11 -1
- package/dist/components/ConnectOptions/CompactMobileOptions.css.d.ts +26 -0
- package/dist/components/ConnectOptions/CompactMobileOptions.d.ts +19 -0
- package/dist/components/ConnectOptions/DesktopOptions.d.ts +9 -2
- package/dist/components/RainbowKitProvider/RainbowKitConfigProvider.d.ts +20 -0
- package/dist/components/RainbowKitProvider/RainbowKitProvider.d.ts +16 -1
- package/dist/encryption-3YHRI3PA.js +14 -0
- package/dist/hooks/useDeviceType.d.ts +9 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +896 -687
- package/dist/wallets/walletConnectors/abcWallet/abcConnector.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/abcSolanaWallet.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/abcWallet.js +3 -3
- package/dist/wallets/walletConnectors/abcWallet/api/index.js +8 -8
- package/dist/wallets/walletConnectors/abcWallet/index.js +17 -17
- package/dist/wallets/walletConnectors/berasigWallet/berasigWallet.js +2 -2
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/binanceWallet/binanceWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/chunk-25JJ3PT5.js +228 -0
- package/dist/wallets/walletConnectors/chunk-3WVSOTC4.js +63 -0
- package/dist/wallets/walletConnectors/chunk-43LOEA55.js +63 -0
- package/dist/wallets/walletConnectors/chunk-4LVXMPGO.js +44 -0
- package/dist/wallets/walletConnectors/chunk-4NLOE5S3.js +63 -0
- package/dist/wallets/walletConnectors/chunk-5MSMALF7.js +63 -0
- package/dist/wallets/walletConnectors/chunk-6KOHIL7T.js +63 -0
- package/dist/wallets/walletConnectors/chunk-7FFIZE76.js +63 -0
- package/dist/wallets/walletConnectors/chunk-DP2HUTLN.js +63 -0
- package/dist/wallets/walletConnectors/chunk-HS2FAOAJ.js +63 -0
- package/dist/wallets/walletConnectors/chunk-IA4EQFSS.js +474 -0
- package/dist/wallets/walletConnectors/chunk-IHM7I7D5.js +63 -0
- package/dist/wallets/walletConnectors/chunk-NA5G3LSC.js +63 -0
- package/dist/wallets/walletConnectors/chunk-NASGGIUS.js +63 -0
- package/dist/wallets/walletConnectors/chunk-NVM3JZ4L.js +63 -0
- package/dist/wallets/walletConnectors/chunk-PLL7P7HY.js +63 -0
- package/dist/wallets/walletConnectors/chunk-RUZBOPMI.js +63 -0
- package/dist/wallets/walletConnectors/chunk-SMACAFVM.js +63 -0
- package/dist/wallets/walletConnectors/chunk-SUXK3JW6.js +280 -0
- package/dist/wallets/walletConnectors/chunk-XDRZSWHB.js +63 -0
- package/dist/wallets/walletConnectors/chunk-XKVRDEDK.js +63 -0
- package/dist/wallets/walletConnectors/chunk-XYAAXWWU.js +63 -0
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +86 -86
- package/dist/wallets/walletConnectors/iopayWallet/iopayWallet.js +2 -2
- package/dist/wallets/walletConnectors/kaiaWallet/kaiaWallet.js +2 -2
- package/dist/wallets/walletConnectors/kaikasWallet/kaikasWallet.js +2 -2
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zealWallet/zealWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +12 -11
- package/LICENSE +0 -9
package/dist/index.js
CHANGED
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
TOKEN_EXPIRY,
|
|
10
10
|
secure_default
|
|
11
11
|
} from "./chunk-Y7ZSI2YC.js";
|
|
12
|
-
import {
|
|
13
|
-
lightTheme
|
|
14
|
-
} from "./chunk-72HZGUJA.js";
|
|
15
12
|
import {
|
|
16
13
|
darkTheme
|
|
17
14
|
} from "./chunk-RZWDCITT.js";
|
|
15
|
+
import {
|
|
16
|
+
lightTheme
|
|
17
|
+
} from "./chunk-72HZGUJA.js";
|
|
18
18
|
import {
|
|
19
19
|
midnightTheme
|
|
20
20
|
} from "./chunk-7ZP3ENJ2.js";
|
|
@@ -761,7 +761,7 @@ var init_networks = __esm({
|
|
|
761
761
|
});
|
|
762
762
|
|
|
763
763
|
// src/components/ConnectButton/ConnectButton.tsx
|
|
764
|
-
import
|
|
764
|
+
import React71, { useContext as useContext27, useEffect as useEffect22, useState as useState22 } from "react";
|
|
765
765
|
|
|
766
766
|
// src/css/sprinkles.css.ts
|
|
767
767
|
import { createMapValueFn as _51c72 } from "@vanilla-extract/sprinkles/createUtils";
|
|
@@ -1789,7 +1789,7 @@ function ShowBalanceProvider({ children }) {
|
|
|
1789
1789
|
var useShowBalance = () => useContext4(ShowBalanceContext);
|
|
1790
1790
|
|
|
1791
1791
|
// src/components/ConnectButton/ConnectButtonRenderer.tsx
|
|
1792
|
-
import
|
|
1792
|
+
import React70, { useContext as useContext26 } from "react";
|
|
1793
1793
|
import { useAccount as useAccount16, useConfig as useConfig4 } from "wagmi";
|
|
1794
1794
|
|
|
1795
1795
|
// src/contexts/MultiChainContext.tsx
|
|
@@ -2410,22 +2410,22 @@ function useRecentTransactions() {
|
|
|
2410
2410
|
}
|
|
2411
2411
|
|
|
2412
2412
|
// src/components/RainbowKitProvider/ModalContext.tsx
|
|
2413
|
-
import
|
|
2414
|
-
createContext as
|
|
2413
|
+
import React69, {
|
|
2414
|
+
createContext as createContext14,
|
|
2415
2415
|
useCallback as useCallback14,
|
|
2416
|
-
useContext as
|
|
2417
|
-
useEffect as
|
|
2416
|
+
useContext as useContext25,
|
|
2417
|
+
useEffect as useEffect21,
|
|
2418
2418
|
useMemo as useMemo10,
|
|
2419
|
-
useState as
|
|
2419
|
+
useState as useState21
|
|
2420
2420
|
} from "react";
|
|
2421
2421
|
import { useAccount as useAccount15, useAccountEffect as useAccountEffect3, useConfig as useConfig3 } from "wagmi";
|
|
2422
2422
|
|
|
2423
2423
|
// src/components/AccountModal/AccountModal.tsx
|
|
2424
|
-
import
|
|
2424
|
+
import React40, { useContext as useContext13 } from "react";
|
|
2425
2425
|
import { useAccount as useAccount12, useDisconnect } from "wagmi";
|
|
2426
2426
|
|
|
2427
2427
|
// src/components/Dialog/Dialog.tsx
|
|
2428
|
-
import
|
|
2428
|
+
import React28, {
|
|
2429
2429
|
useCallback as useCallback8,
|
|
2430
2430
|
useEffect as useEffect14,
|
|
2431
2431
|
useState as useState12
|
|
@@ -2434,7 +2434,7 @@ import { createPortal } from "react-dom";
|
|
|
2434
2434
|
import { RemoveScroll } from "react-remove-scroll";
|
|
2435
2435
|
|
|
2436
2436
|
// src/components/RainbowKitProvider/RainbowKitProvider.tsx
|
|
2437
|
-
import
|
|
2437
|
+
import React26, { createContext as createContext13, useContext as useContext9 } from "react";
|
|
2438
2438
|
import { useAccountEffect as useAccountEffect2 } from "wagmi";
|
|
2439
2439
|
|
|
2440
2440
|
// src/css/cssObjectFromTheme.ts
|
|
@@ -2933,9 +2933,28 @@ function ModalSizeProvider({
|
|
|
2933
2933
|
);
|
|
2934
2934
|
}
|
|
2935
2935
|
|
|
2936
|
+
// src/components/RainbowKitProvider/RainbowKitConfigProvider.tsx
|
|
2937
|
+
import React18, { createContext as createContext11, useContext as useContext7 } from "react";
|
|
2938
|
+
var RainbowKitConfigContext = createContext11(null);
|
|
2939
|
+
function RainbowKitConfigProvider({
|
|
2940
|
+
config: config2,
|
|
2941
|
+
children
|
|
2942
|
+
}) {
|
|
2943
|
+
return /* @__PURE__ */ React18.createElement(RainbowKitConfigContext.Provider, { value: config2 }, children);
|
|
2944
|
+
}
|
|
2945
|
+
function useRainbowKitConfig() {
|
|
2946
|
+
const context = useContext7(RainbowKitConfigContext);
|
|
2947
|
+
if (!context) {
|
|
2948
|
+
throw new Error(
|
|
2949
|
+
"useRainbowKitConfig must be used within RainbowKitProvider"
|
|
2950
|
+
);
|
|
2951
|
+
}
|
|
2952
|
+
return context;
|
|
2953
|
+
}
|
|
2954
|
+
|
|
2936
2955
|
// src/components/RainbowKitProvider/ShowRecentTransactionsContext.ts
|
|
2937
|
-
import { createContext as
|
|
2938
|
-
var ShowRecentTransactionsContext =
|
|
2956
|
+
import { createContext as createContext12 } from "react";
|
|
2957
|
+
var ShowRecentTransactionsContext = createContext12(false);
|
|
2939
2958
|
|
|
2940
2959
|
// src/components/RainbowKitProvider/useFingerprint.ts
|
|
2941
2960
|
import { useCallback as useCallback4, useEffect as useEffect11 } from "react";
|
|
@@ -2945,7 +2964,7 @@ function setRainbowKitVersion({ version }) {
|
|
|
2945
2964
|
}
|
|
2946
2965
|
function useFingerprint() {
|
|
2947
2966
|
const fingerprint = useCallback4(() => {
|
|
2948
|
-
setRainbowKitVersion({ version: "2.3.
|
|
2967
|
+
setRainbowKitVersion({ version: "2.3.10" });
|
|
2949
2968
|
}, []);
|
|
2950
2969
|
useEffect11(() => {
|
|
2951
2970
|
fingerprint();
|
|
@@ -3229,10 +3248,10 @@ function useWalletConnectors(mergeEIP6963WithRkConnectors = false) {
|
|
|
3229
3248
|
}
|
|
3230
3249
|
|
|
3231
3250
|
// src/components/Icons/Assets.tsx
|
|
3232
|
-
import
|
|
3251
|
+
import React19 from "react";
|
|
3233
3252
|
var src = async () => (await import("./assets-4NDWRKXE.js")).default;
|
|
3234
3253
|
var preloadAssetsIcon = () => loadImages(src);
|
|
3235
|
-
var AssetsIcon = () => /* @__PURE__ */
|
|
3254
|
+
var AssetsIcon = () => /* @__PURE__ */ React19.createElement(
|
|
3236
3255
|
AsyncImage,
|
|
3237
3256
|
{
|
|
3238
3257
|
background: "#d0d5de",
|
|
@@ -3244,10 +3263,10 @@ var AssetsIcon = () => /* @__PURE__ */ React18.createElement(
|
|
|
3244
3263
|
);
|
|
3245
3264
|
|
|
3246
3265
|
// src/components/Icons/Login.tsx
|
|
3247
|
-
import
|
|
3266
|
+
import React20 from "react";
|
|
3248
3267
|
var src2 = async () => (await import("./login-DGIK764Z.js")).default;
|
|
3249
3268
|
var preloadLoginIcon = () => loadImages(src2);
|
|
3250
|
-
var LoginIcon = () => /* @__PURE__ */
|
|
3269
|
+
var LoginIcon = () => /* @__PURE__ */ React20.createElement(
|
|
3251
3270
|
AsyncImage,
|
|
3252
3271
|
{
|
|
3253
3272
|
background: "#d0d5de",
|
|
@@ -3259,16 +3278,16 @@ var LoginIcon = () => /* @__PURE__ */ React19.createElement(
|
|
|
3259
3278
|
);
|
|
3260
3279
|
|
|
3261
3280
|
// src/components/SignIn/SignIn.tsx
|
|
3262
|
-
import
|
|
3281
|
+
import React25, { useCallback as useCallback5, useContext as useContext8, useRef } from "react";
|
|
3263
3282
|
import { UserRejectedRequestError } from "viem";
|
|
3264
3283
|
import { useAccount as useAccount8, useSignMessage } from "wagmi";
|
|
3265
3284
|
|
|
3266
3285
|
// src/components/Button/ActionButton.tsx
|
|
3267
|
-
import
|
|
3286
|
+
import React22 from "react";
|
|
3268
3287
|
|
|
3269
3288
|
// src/components/Text/Text.tsx
|
|
3270
|
-
import
|
|
3271
|
-
var Text =
|
|
3289
|
+
import React21 from "react";
|
|
3290
|
+
var Text = React21.forwardRef(
|
|
3272
3291
|
({
|
|
3273
3292
|
as = "div",
|
|
3274
3293
|
children,
|
|
@@ -3284,7 +3303,7 @@ var Text = React20.forwardRef(
|
|
|
3284
3303
|
weight = "regular",
|
|
3285
3304
|
testId
|
|
3286
3305
|
}, ref) => {
|
|
3287
|
-
return /* @__PURE__ */
|
|
3306
|
+
return /* @__PURE__ */ React21.createElement(
|
|
3288
3307
|
Box,
|
|
3289
3308
|
{
|
|
3290
3309
|
as,
|
|
@@ -3343,7 +3362,7 @@ function ActionButton({
|
|
|
3343
3362
|
const background = !disabled ? isPrimary ? "accentColor" : isNotLarge ? "actionButtonSecondaryBackground" : null : "actionButtonSecondaryBackground";
|
|
3344
3363
|
const { fontSize, height, paddingX, paddingY } = sizeVariants[size];
|
|
3345
3364
|
const hasBorder = !mobile || !isNotLarge;
|
|
3346
|
-
return /* @__PURE__ */
|
|
3365
|
+
return /* @__PURE__ */ React22.createElement(
|
|
3347
3366
|
Box,
|
|
3348
3367
|
{
|
|
3349
3368
|
...href ? !disabled ? { as: "a", href, rel, target } : {} : { as: "button", type: "button" },
|
|
@@ -3365,7 +3384,7 @@ function ActionButton({
|
|
|
3365
3384
|
...background ? { background } : {},
|
|
3366
3385
|
...height ? { height } : {}
|
|
3367
3386
|
},
|
|
3368
|
-
/* @__PURE__ */
|
|
3387
|
+
/* @__PURE__ */ React22.createElement(
|
|
3369
3388
|
Text,
|
|
3370
3389
|
{
|
|
3371
3390
|
color: !disabled ? isPrimary ? "accentColorForeground" : "accentColor" : "modalTextSecondary",
|
|
@@ -3378,12 +3397,12 @@ function ActionButton({
|
|
|
3378
3397
|
}
|
|
3379
3398
|
|
|
3380
3399
|
// src/components/CloseButton/CloseButton.tsx
|
|
3381
|
-
import
|
|
3400
|
+
import React24 from "react";
|
|
3382
3401
|
|
|
3383
3402
|
// src/components/Icons/Close.tsx
|
|
3384
|
-
import
|
|
3403
|
+
import React23 from "react";
|
|
3385
3404
|
var CloseIcon = () => {
|
|
3386
|
-
return isMobile() ? /* @__PURE__ */
|
|
3405
|
+
return isMobile() ? /* @__PURE__ */ React23.createElement(
|
|
3387
3406
|
"svg",
|
|
3388
3407
|
{
|
|
3389
3408
|
"aria-hidden": true,
|
|
@@ -3393,15 +3412,15 @@ var CloseIcon = () => {
|
|
|
3393
3412
|
width: "11.5",
|
|
3394
3413
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3395
3414
|
},
|
|
3396
|
-
/* @__PURE__ */
|
|
3397
|
-
/* @__PURE__ */
|
|
3415
|
+
/* @__PURE__ */ React23.createElement("title", null, "Close"),
|
|
3416
|
+
/* @__PURE__ */ React23.createElement(
|
|
3398
3417
|
"path",
|
|
3399
3418
|
{
|
|
3400
3419
|
d: "M2.13388 0.366117C1.64573 -0.122039 0.854272 -0.122039 0.366117 0.366117C-0.122039 0.854272 -0.122039 1.64573 0.366117 2.13388L3.98223 5.75L0.366117 9.36612C-0.122039 9.85427 -0.122039 10.6457 0.366117 11.1339C0.854272 11.622 1.64573 11.622 2.13388 11.1339L5.75 7.51777L9.36612 11.1339C9.85427 11.622 10.6457 11.622 11.1339 11.1339C11.622 10.6457 11.622 9.85427 11.1339 9.36612L7.51777 5.75L11.1339 2.13388C11.622 1.64573 11.622 0.854272 11.1339 0.366117C10.6457 -0.122039 9.85427 -0.122039 9.36612 0.366117L5.75 3.98223L2.13388 0.366117Z",
|
|
3401
3420
|
fill: "currentColor"
|
|
3402
3421
|
}
|
|
3403
3422
|
)
|
|
3404
|
-
) : /* @__PURE__ */
|
|
3423
|
+
) : /* @__PURE__ */ React23.createElement(
|
|
3405
3424
|
"svg",
|
|
3406
3425
|
{
|
|
3407
3426
|
"aria-hidden": true,
|
|
@@ -3411,8 +3430,8 @@ var CloseIcon = () => {
|
|
|
3411
3430
|
width: "10",
|
|
3412
3431
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3413
3432
|
},
|
|
3414
|
-
/* @__PURE__ */
|
|
3415
|
-
/* @__PURE__ */
|
|
3433
|
+
/* @__PURE__ */ React23.createElement("title", null, "Close"),
|
|
3434
|
+
/* @__PURE__ */ React23.createElement(
|
|
3416
3435
|
"path",
|
|
3417
3436
|
{
|
|
3418
3437
|
d: "M1.70711 0.292893C1.31658 -0.0976311 0.683417 -0.0976311 0.292893 0.292893C-0.0976311 0.683417 -0.0976311 1.31658 0.292893 1.70711L3.58579 5L0.292893 8.29289C-0.0976311 8.68342 -0.0976311 9.31658 0.292893 9.70711C0.683417 10.0976 1.31658 10.0976 1.70711 9.70711L5 6.41421L8.29289 9.70711C8.68342 10.0976 9.31658 10.0976 9.70711 9.70711C10.0976 9.31658 10.0976 8.68342 9.70711 8.29289L6.41421 5L9.70711 1.70711C10.0976 1.31658 10.0976 0.683417 9.70711 0.292893C9.31658 -0.0976311 8.68342 -0.0976311 8.29289 0.292893L5 3.58579L1.70711 0.292893Z",
|
|
@@ -3428,7 +3447,7 @@ var CloseButton = ({
|
|
|
3428
3447
|
onClose
|
|
3429
3448
|
}) => {
|
|
3430
3449
|
const mobile = isMobile();
|
|
3431
|
-
return /* @__PURE__ */
|
|
3450
|
+
return /* @__PURE__ */ React24.createElement(
|
|
3432
3451
|
Box,
|
|
3433
3452
|
{
|
|
3434
3453
|
alignItems: "center",
|
|
@@ -3450,7 +3469,7 @@ var CloseButton = ({
|
|
|
3450
3469
|
type: "button",
|
|
3451
3470
|
width: mobile ? "30" : "28"
|
|
3452
3471
|
},
|
|
3453
|
-
/* @__PURE__ */
|
|
3472
|
+
/* @__PURE__ */ React24.createElement(CloseIcon, null)
|
|
3454
3473
|
);
|
|
3455
3474
|
};
|
|
3456
3475
|
|
|
@@ -3460,8 +3479,8 @@ function SignIn({
|
|
|
3460
3479
|
onClose,
|
|
3461
3480
|
onCloseModal
|
|
3462
3481
|
}) {
|
|
3463
|
-
const { i18n: i18n2 } =
|
|
3464
|
-
const [{ status, ...state }, setState] =
|
|
3482
|
+
const { i18n: i18n2 } = useContext8(I18nContext);
|
|
3483
|
+
const [{ status, ...state }, setState] = React25.useState({ status: "idle" });
|
|
3465
3484
|
const authAdapter = useAuthenticationAdapter();
|
|
3466
3485
|
const getNonce = useCallback5(async () => {
|
|
3467
3486
|
try {
|
|
@@ -3476,7 +3495,7 @@ function SignIn({
|
|
|
3476
3495
|
}
|
|
3477
3496
|
}, [authAdapter, i18n2.t]);
|
|
3478
3497
|
const onceRef = useRef(false);
|
|
3479
|
-
|
|
3498
|
+
React25.useEffect(() => {
|
|
3480
3499
|
if (onceRef.current)
|
|
3481
3500
|
return;
|
|
3482
3501
|
onceRef.current = true;
|
|
@@ -3538,7 +3557,7 @@ function SignIn({
|
|
|
3538
3557
|
});
|
|
3539
3558
|
}
|
|
3540
3559
|
};
|
|
3541
|
-
return /* @__PURE__ */
|
|
3560
|
+
return /* @__PURE__ */ React25.createElement(Box, { position: "relative" }, /* @__PURE__ */ React25.createElement(
|
|
3542
3561
|
Box,
|
|
3543
3562
|
{
|
|
3544
3563
|
display: "flex",
|
|
@@ -3547,8 +3566,8 @@ function SignIn({
|
|
|
3547
3566
|
position: "absolute",
|
|
3548
3567
|
right: "0"
|
|
3549
3568
|
},
|
|
3550
|
-
/* @__PURE__ */
|
|
3551
|
-
), /* @__PURE__ */
|
|
3569
|
+
/* @__PURE__ */ React25.createElement(CloseButton, { onClose })
|
|
3570
|
+
), /* @__PURE__ */ React25.createElement(
|
|
3552
3571
|
Box,
|
|
3553
3572
|
{
|
|
3554
3573
|
alignItems: "center",
|
|
@@ -3559,7 +3578,7 @@ function SignIn({
|
|
|
3559
3578
|
paddingX: "18",
|
|
3560
3579
|
style: { paddingTop: mobile ? "60px" : "36px" }
|
|
3561
3580
|
},
|
|
3562
|
-
/* @__PURE__ */
|
|
3581
|
+
/* @__PURE__ */ React25.createElement(
|
|
3563
3582
|
Box,
|
|
3564
3583
|
{
|
|
3565
3584
|
alignItems: "center",
|
|
@@ -3568,7 +3587,7 @@ function SignIn({
|
|
|
3568
3587
|
gap: mobile ? "6" : "4",
|
|
3569
3588
|
style: { maxWidth: mobile ? 320 : 280 }
|
|
3570
3589
|
},
|
|
3571
|
-
/* @__PURE__ */
|
|
3590
|
+
/* @__PURE__ */ React25.createElement(
|
|
3572
3591
|
Box,
|
|
3573
3592
|
{
|
|
3574
3593
|
alignItems: "center",
|
|
@@ -3576,8 +3595,8 @@ function SignIn({
|
|
|
3576
3595
|
flexDirection: "column",
|
|
3577
3596
|
gap: mobile ? "32" : "16"
|
|
3578
3597
|
},
|
|
3579
|
-
/* @__PURE__ */
|
|
3580
|
-
/* @__PURE__ */
|
|
3598
|
+
/* @__PURE__ */ React25.createElement(AsyncImage, { height: 40, src: signInIcon, width: 40 }),
|
|
3599
|
+
/* @__PURE__ */ React25.createElement(
|
|
3581
3600
|
Text,
|
|
3582
3601
|
{
|
|
3583
3602
|
color: "modalText",
|
|
@@ -3588,7 +3607,7 @@ function SignIn({
|
|
|
3588
3607
|
i18n2.t("sign_in.label")
|
|
3589
3608
|
)
|
|
3590
3609
|
),
|
|
3591
|
-
/* @__PURE__ */
|
|
3610
|
+
/* @__PURE__ */ React25.createElement(
|
|
3592
3611
|
Box,
|
|
3593
3612
|
{
|
|
3594
3613
|
alignItems: "center",
|
|
@@ -3596,7 +3615,7 @@ function SignIn({
|
|
|
3596
3615
|
flexDirection: "column",
|
|
3597
3616
|
gap: mobile ? "16" : "12"
|
|
3598
3617
|
},
|
|
3599
|
-
/* @__PURE__ */
|
|
3618
|
+
/* @__PURE__ */ React25.createElement(
|
|
3600
3619
|
Text,
|
|
3601
3620
|
{
|
|
3602
3621
|
color: "modalTextSecondary",
|
|
@@ -3605,7 +3624,7 @@ function SignIn({
|
|
|
3605
3624
|
},
|
|
3606
3625
|
i18n2.t("sign_in.description")
|
|
3607
3626
|
),
|
|
3608
|
-
status === "idle" && state.errorMessage ? /* @__PURE__ */
|
|
3627
|
+
status === "idle" && state.errorMessage ? /* @__PURE__ */ React25.createElement(
|
|
3609
3628
|
Text,
|
|
3610
3629
|
{
|
|
3611
3630
|
color: "error",
|
|
@@ -3617,7 +3636,7 @@ function SignIn({
|
|
|
3617
3636
|
) : null
|
|
3618
3637
|
)
|
|
3619
3638
|
),
|
|
3620
|
-
/* @__PURE__ */
|
|
3639
|
+
/* @__PURE__ */ React25.createElement(
|
|
3621
3640
|
Box,
|
|
3622
3641
|
{
|
|
3623
3642
|
alignItems: !mobile ? "center" : void 0,
|
|
@@ -3626,7 +3645,7 @@ function SignIn({
|
|
|
3626
3645
|
gap: "8",
|
|
3627
3646
|
width: "full"
|
|
3628
3647
|
},
|
|
3629
|
-
/* @__PURE__ */
|
|
3648
|
+
/* @__PURE__ */ React25.createElement(
|
|
3630
3649
|
ActionButton,
|
|
3631
3650
|
{
|
|
3632
3651
|
disabled: !state.nonce || status === "signing" || status === "verifying",
|
|
@@ -3636,7 +3655,7 @@ function SignIn({
|
|
|
3636
3655
|
testId: "auth-message-button"
|
|
3637
3656
|
}
|
|
3638
3657
|
),
|
|
3639
|
-
mobile ? /* @__PURE__ */
|
|
3658
|
+
mobile ? /* @__PURE__ */ React25.createElement(
|
|
3640
3659
|
ActionButton,
|
|
3641
3660
|
{
|
|
3642
3661
|
label: "Cancel",
|
|
@@ -3644,7 +3663,7 @@ function SignIn({
|
|
|
3644
3663
|
size: "large",
|
|
3645
3664
|
type: "secondary"
|
|
3646
3665
|
}
|
|
3647
|
-
) : /* @__PURE__ */
|
|
3666
|
+
) : /* @__PURE__ */ React25.createElement(
|
|
3648
3667
|
Box,
|
|
3649
3668
|
{
|
|
3650
3669
|
as: "button",
|
|
@@ -3659,7 +3678,7 @@ function SignIn({
|
|
|
3659
3678
|
target: "_blank",
|
|
3660
3679
|
transition: "default"
|
|
3661
3680
|
},
|
|
3662
|
-
/* @__PURE__ */
|
|
3681
|
+
/* @__PURE__ */ React25.createElement(
|
|
3663
3682
|
Text,
|
|
3664
3683
|
{
|
|
3665
3684
|
color: "closeButton",
|
|
@@ -3715,7 +3734,7 @@ function clearWalletConnectDeepLink() {
|
|
|
3715
3734
|
}
|
|
3716
3735
|
|
|
3717
3736
|
// src/components/RainbowKitProvider/RainbowKitProvider.tsx
|
|
3718
|
-
var ThemeIdContext =
|
|
3737
|
+
var ThemeIdContext = createContext13(void 0);
|
|
3719
3738
|
var attr = "data-rk";
|
|
3720
3739
|
var createThemeRootProps = (id) => ({ [attr]: id || "" });
|
|
3721
3740
|
var createThemeRootSelector = (id) => {
|
|
@@ -3725,7 +3744,7 @@ var createThemeRootSelector = (id) => {
|
|
|
3725
3744
|
return id ? `[${attr}="${id}"]` : `[${attr}]`;
|
|
3726
3745
|
};
|
|
3727
3746
|
var useThemeRootProps = () => {
|
|
3728
|
-
const id =
|
|
3747
|
+
const id = useContext9(ThemeIdContext);
|
|
3729
3748
|
return createThemeRootProps(id);
|
|
3730
3749
|
};
|
|
3731
3750
|
var defaultTheme = lightTheme();
|
|
@@ -3741,7 +3760,9 @@ function RainbowKitProvider({
|
|
|
3741
3760
|
modalSize = ModalSizeOptions.WIDE,
|
|
3742
3761
|
showRecentTransactions = false,
|
|
3743
3762
|
theme = defaultTheme,
|
|
3744
|
-
solanaConfig
|
|
3763
|
+
solanaConfig,
|
|
3764
|
+
mobileMode = "auto",
|
|
3765
|
+
compactLoginWallets = ["abcWallet"]
|
|
3745
3766
|
}) {
|
|
3746
3767
|
usePreloadImages();
|
|
3747
3768
|
useFingerprint();
|
|
@@ -3758,12 +3779,16 @@ function RainbowKitProvider({
|
|
|
3758
3779
|
};
|
|
3759
3780
|
const avatarContext = avatar ?? defaultAvatar;
|
|
3760
3781
|
const enableSolana = !!solanaConfig;
|
|
3761
|
-
const
|
|
3782
|
+
const rainbowKitConfig = {
|
|
3783
|
+
mobileMode,
|
|
3784
|
+
compactLoginWallets
|
|
3785
|
+
};
|
|
3786
|
+
const providerTree = /* @__PURE__ */ React26.createElement(RainbowKitChainProvider, { initialChain }, /* @__PURE__ */ React26.createElement(RainbowKitConfigProvider, { config: rainbowKitConfig }, /* @__PURE__ */ React26.createElement(WalletButtonProvider, null, /* @__PURE__ */ React26.createElement(I18nProvider, { locale }, /* @__PURE__ */ React26.createElement(CoolModeContext.Provider, { value: coolMode }, /* @__PURE__ */ React26.createElement(ModalSizeProvider, { modalSize }, /* @__PURE__ */ React26.createElement(
|
|
3762
3787
|
ShowRecentTransactionsContext.Provider,
|
|
3763
3788
|
{
|
|
3764
3789
|
value: showRecentTransactions
|
|
3765
3790
|
},
|
|
3766
|
-
/* @__PURE__ */
|
|
3791
|
+
/* @__PURE__ */ React26.createElement(TransactionStoreProvider, null, /* @__PURE__ */ React26.createElement(AvatarContext.Provider, { value: avatarContext }, /* @__PURE__ */ React26.createElement(AppContext.Provider, { value: appContext }, /* @__PURE__ */ React26.createElement(ThemeIdContext.Provider, { value: id }, /* @__PURE__ */ React26.createElement(ShowBalanceProvider, null, /* @__PURE__ */ React26.createElement(ModalProvider, null, theme ? /* @__PURE__ */ React26.createElement("div", { ...createThemeRootProps(id) }, /* @__PURE__ */ React26.createElement(
|
|
3767
3792
|
"style",
|
|
3768
3793
|
{
|
|
3769
3794
|
dangerouslySetInnerHTML: {
|
|
@@ -3782,24 +3807,24 @@ function RainbowKitProvider({
|
|
|
3782
3807
|
].join("")
|
|
3783
3808
|
}
|
|
3784
3809
|
}
|
|
3785
|
-
), /* @__PURE__ */
|
|
3810
|
+
), /* @__PURE__ */ React26.createElement(
|
|
3786
3811
|
InternalPinProvider,
|
|
3787
3812
|
{
|
|
3788
3813
|
disabled: disableAutoPinProvider
|
|
3789
3814
|
},
|
|
3790
3815
|
children
|
|
3791
|
-
)) : /* @__PURE__ */
|
|
3816
|
+
)) : /* @__PURE__ */ React26.createElement(
|
|
3792
3817
|
InternalPinProvider,
|
|
3793
3818
|
{
|
|
3794
3819
|
disabled: disableAutoPinProvider
|
|
3795
3820
|
},
|
|
3796
3821
|
children
|
|
3797
3822
|
)))))))
|
|
3798
|
-
))))));
|
|
3823
|
+
)))))));
|
|
3799
3824
|
if (!enableSolana) {
|
|
3800
3825
|
return providerTree;
|
|
3801
3826
|
}
|
|
3802
|
-
return /* @__PURE__ */
|
|
3827
|
+
return /* @__PURE__ */ React26.createElement(SolanaWalletProvider, { autoConnect: solanaConfig.autoConnect }, /* @__PURE__ */ React26.createElement(MultiChainProvider, { enableSolana: true, defaultChain: "evm" }, providerTree));
|
|
3803
3828
|
}
|
|
3804
3829
|
|
|
3805
3830
|
// src/components/Dialog/Dialog.css.ts
|
|
@@ -3807,7 +3832,7 @@ var content = "qjzye45 kwh1ipa kwh1ip15 kwh1ip8r";
|
|
|
3807
3832
|
var overlay2 = "qjzye43 kwh1ip9h kwh1ipb3 kwh1ipa kwh1ip2q kwh1ip8q";
|
|
3808
3833
|
|
|
3809
3834
|
// src/components/Dialog/FocusTrap.tsx
|
|
3810
|
-
import
|
|
3835
|
+
import React27 from "react";
|
|
3811
3836
|
import { useCallback as useCallback7, useEffect as useEffect13, useRef as useRef2 } from "react";
|
|
3812
3837
|
var moveFocusWithin = (element2, position) => {
|
|
3813
3838
|
const focusableElements = element2.querySelectorAll(
|
|
@@ -3835,7 +3860,7 @@ function FocusTrap(props) {
|
|
|
3835
3860
|
}
|
|
3836
3861
|
}
|
|
3837
3862
|
}, []);
|
|
3838
|
-
return /* @__PURE__ */
|
|
3863
|
+
return /* @__PURE__ */ React27.createElement(React27.Fragment, null, /* @__PURE__ */ React27.createElement(
|
|
3839
3864
|
"div",
|
|
3840
3865
|
{
|
|
3841
3866
|
onFocus: useCallback7(
|
|
@@ -3844,7 +3869,7 @@ function FocusTrap(props) {
|
|
|
3844
3869
|
),
|
|
3845
3870
|
tabIndex: 0
|
|
3846
3871
|
}
|
|
3847
|
-
), /* @__PURE__ */
|
|
3872
|
+
), /* @__PURE__ */ React27.createElement(
|
|
3848
3873
|
"div",
|
|
3849
3874
|
{
|
|
3850
3875
|
ref: contentRef,
|
|
@@ -3852,7 +3877,7 @@ function FocusTrap(props) {
|
|
|
3852
3877
|
tabIndex: -1,
|
|
3853
3878
|
...props
|
|
3854
3879
|
}
|
|
3855
|
-
), /* @__PURE__ */
|
|
3880
|
+
), /* @__PURE__ */ React27.createElement(
|
|
3856
3881
|
"div",
|
|
3857
3882
|
{
|
|
3858
3883
|
onFocus: useCallback7(
|
|
@@ -3881,8 +3906,8 @@ function Dialog({ children, onClose, open, titleId }) {
|
|
|
3881
3906
|
const handleBackdropClick = useCallback8(() => onClose(), [onClose]);
|
|
3882
3907
|
const themeRootProps = useThemeRootProps();
|
|
3883
3908
|
const mobile = isMobile();
|
|
3884
|
-
return /* @__PURE__ */
|
|
3885
|
-
/* @__PURE__ */
|
|
3909
|
+
return /* @__PURE__ */ React28.createElement(React28.Fragment, null, open ? createPortal(
|
|
3910
|
+
/* @__PURE__ */ React28.createElement(RemoveScroll, { enabled: bodyScrollable }, /* @__PURE__ */ React28.createElement(Box, { ...themeRootProps }, /* @__PURE__ */ React28.createElement(
|
|
3886
3911
|
Box,
|
|
3887
3912
|
{
|
|
3888
3913
|
...themeRootProps,
|
|
@@ -3894,7 +3919,7 @@ function Dialog({ children, onClose, open, titleId }) {
|
|
|
3894
3919
|
position: "fixed",
|
|
3895
3920
|
role: "dialog"
|
|
3896
3921
|
},
|
|
3897
|
-
/* @__PURE__ */
|
|
3922
|
+
/* @__PURE__ */ React28.createElement(
|
|
3898
3923
|
FocusTrap,
|
|
3899
3924
|
{
|
|
3900
3925
|
className: content,
|
|
@@ -3909,7 +3934,7 @@ function Dialog({ children, onClose, open, titleId }) {
|
|
|
3909
3934
|
}
|
|
3910
3935
|
|
|
3911
3936
|
// src/components/Dialog/DialogContent.tsx
|
|
3912
|
-
import
|
|
3937
|
+
import React29, { useContext as useContext10 } from "react";
|
|
3913
3938
|
|
|
3914
3939
|
// src/components/Dialog/DialogContent.css.ts
|
|
3915
3940
|
var bottomSheetOverrides = "qs007r7";
|
|
@@ -3929,9 +3954,9 @@ function DialogContent({
|
|
|
3929
3954
|
wide = false
|
|
3930
3955
|
}) {
|
|
3931
3956
|
const mobile = isMobile();
|
|
3932
|
-
const modalSize =
|
|
3957
|
+
const modalSize = useContext10(ModalSizeContext);
|
|
3933
3958
|
const compactModeEnabled = modalSize === ModalSizeOptions.COMPACT;
|
|
3934
|
-
return /* @__PURE__ */
|
|
3959
|
+
return /* @__PURE__ */ React29.createElement(Box, { marginTop }, /* @__PURE__ */ React29.createElement(
|
|
3935
3960
|
Box,
|
|
3936
3961
|
{
|
|
3937
3962
|
className: [
|
|
@@ -3940,12 +3965,12 @@ function DialogContent({
|
|
|
3940
3965
|
mobile && bottomSheetOnMobile ? bottomSheetOverrides : null
|
|
3941
3966
|
].join(" ")
|
|
3942
3967
|
},
|
|
3943
|
-
/* @__PURE__ */
|
|
3968
|
+
/* @__PURE__ */ React29.createElement(Box, { padding, paddingBottom: paddingBottom ?? padding }, children)
|
|
3944
3969
|
));
|
|
3945
3970
|
}
|
|
3946
3971
|
|
|
3947
3972
|
// src/components/ProfileDetails/ProfileDetails.tsx
|
|
3948
|
-
import
|
|
3973
|
+
import React39, { useCallback as useCallback10, useContext as useContext12, useEffect as useEffect15, useState as useState13 } from "react";
|
|
3949
3974
|
|
|
3950
3975
|
// src/components/ConnectButton/abbreviateETHBalance.ts
|
|
3951
3976
|
var units = ["k", "m", "b", "t"];
|
|
@@ -3996,8 +4021,8 @@ function formatENS(name) {
|
|
|
3996
4021
|
}
|
|
3997
4022
|
|
|
3998
4023
|
// src/components/Icons/Copied.tsx
|
|
3999
|
-
import
|
|
4000
|
-
var CopiedIcon = () => /* @__PURE__ */
|
|
4024
|
+
import React30 from "react";
|
|
4025
|
+
var CopiedIcon = () => /* @__PURE__ */ React30.createElement(
|
|
4001
4026
|
"svg",
|
|
4002
4027
|
{
|
|
4003
4028
|
fill: "none",
|
|
@@ -4006,8 +4031,8 @@ var CopiedIcon = () => /* @__PURE__ */ React29.createElement(
|
|
|
4006
4031
|
width: "13",
|
|
4007
4032
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4008
4033
|
},
|
|
4009
|
-
/* @__PURE__ */
|
|
4010
|
-
/* @__PURE__ */
|
|
4034
|
+
/* @__PURE__ */ React30.createElement("title", null, "Copied"),
|
|
4035
|
+
/* @__PURE__ */ React30.createElement(
|
|
4011
4036
|
"path",
|
|
4012
4037
|
{
|
|
4013
4038
|
d: "M4.94568 12.2646C5.41052 12.2646 5.77283 12.0869 6.01892 11.7109L12.39 1.96973C12.5677 1.69629 12.6429 1.44336 12.6429 1.2041C12.6429 0.561523 12.1644 0.0966797 11.5082 0.0966797C11.057 0.0966797 10.7767 0.260742 10.5033 0.691406L4.9115 9.50977L2.07458 5.98926C1.82166 5.68848 1.54822 5.55176 1.16541 5.55176C0.502319 5.55176 0.0238037 6.02344 0.0238037 6.66602C0.0238037 6.95312 0.112671 7.20605 0.358765 7.48633L3.88611 11.7588C4.18005 12.1074 4.50818 12.2646 4.94568 12.2646Z",
|
|
@@ -4017,8 +4042,8 @@ var CopiedIcon = () => /* @__PURE__ */ React29.createElement(
|
|
|
4017
4042
|
);
|
|
4018
4043
|
|
|
4019
4044
|
// src/components/Icons/Copy.tsx
|
|
4020
|
-
import
|
|
4021
|
-
var CopyIcon = () => /* @__PURE__ */
|
|
4045
|
+
import React31 from "react";
|
|
4046
|
+
var CopyIcon = () => /* @__PURE__ */ React31.createElement(
|
|
4022
4047
|
"svg",
|
|
4023
4048
|
{
|
|
4024
4049
|
fill: "none",
|
|
@@ -4027,8 +4052,8 @@ var CopyIcon = () => /* @__PURE__ */ React30.createElement(
|
|
|
4027
4052
|
width: "17",
|
|
4028
4053
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4029
4054
|
},
|
|
4030
|
-
/* @__PURE__ */
|
|
4031
|
-
/* @__PURE__ */
|
|
4055
|
+
/* @__PURE__ */ React31.createElement("title", null, "Copy"),
|
|
4056
|
+
/* @__PURE__ */ React31.createElement(
|
|
4032
4057
|
"path",
|
|
4033
4058
|
{
|
|
4034
4059
|
d: "M3.04236 12.3027H4.18396V13.3008C4.18396 14.8525 5.03845 15.7002 6.59705 15.7002H13.6244C15.183 15.7002 16.0375 14.8525 16.0375 13.3008V6.24609C16.0375 4.69434 15.183 3.84668 13.6244 3.84668H12.4828V2.8418C12.4828 1.29688 11.6283 0.442383 10.0697 0.442383H3.04236C1.48376 0.442383 0.629272 1.29004 0.629272 2.8418V9.90332C0.629272 11.4551 1.48376 12.3027 3.04236 12.3027ZM3.23376 10.5391C2.68689 10.5391 2.39294 10.2656 2.39294 9.68457V3.06055C2.39294 2.47949 2.68689 2.21289 3.23376 2.21289H9.8783C10.4252 2.21289 10.7191 2.47949 10.7191 3.06055V3.84668H6.59705C5.03845 3.84668 4.18396 4.69434 4.18396 6.24609V10.5391H3.23376ZM6.78845 13.9365C6.24158 13.9365 5.94763 13.6699 5.94763 13.0889V6.45801C5.94763 5.87695 6.24158 5.61035 6.78845 5.61035H13.433C13.9799 5.61035 14.2738 5.87695 14.2738 6.45801V13.0889C14.2738 13.6699 13.9799 13.9365 13.433 13.9365H6.78845Z",
|
|
@@ -4038,8 +4063,8 @@ var CopyIcon = () => /* @__PURE__ */ React30.createElement(
|
|
|
4038
4063
|
);
|
|
4039
4064
|
|
|
4040
4065
|
// src/components/Icons/Disconnect.tsx
|
|
4041
|
-
import
|
|
4042
|
-
var DisconnectIcon = () => /* @__PURE__ */
|
|
4066
|
+
import React32 from "react";
|
|
4067
|
+
var DisconnectIcon = () => /* @__PURE__ */ React32.createElement(
|
|
4043
4068
|
"svg",
|
|
4044
4069
|
{
|
|
4045
4070
|
fill: "none",
|
|
@@ -4048,8 +4073,8 @@ var DisconnectIcon = () => /* @__PURE__ */ React31.createElement(
|
|
|
4048
4073
|
width: "18",
|
|
4049
4074
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4050
4075
|
},
|
|
4051
|
-
/* @__PURE__ */
|
|
4052
|
-
/* @__PURE__ */
|
|
4076
|
+
/* @__PURE__ */ React32.createElement("title", null, "Disconnect"),
|
|
4077
|
+
/* @__PURE__ */ React32.createElement(
|
|
4053
4078
|
"path",
|
|
4054
4079
|
{
|
|
4055
4080
|
d: "M2.67834 15.5908H9.99963C11.5514 15.5908 12.399 14.7432 12.399 13.1777V10.2656H10.6354V12.9863C10.6354 13.5332 10.3688 13.8271 9.78772 13.8271H2.89026C2.3092 13.8271 2.0426 13.5332 2.0426 12.9863V3.15625C2.0426 2.60254 2.3092 2.30859 2.89026 2.30859H9.78772C10.3688 2.30859 10.6354 2.60254 10.6354 3.15625V5.89746H12.399V2.95801C12.399 1.39941 11.5514 0.544922 9.99963 0.544922H2.67834C1.12659 0.544922 0.278931 1.39941 0.278931 2.95801V13.1777C0.278931 14.7432 1.12659 15.5908 2.67834 15.5908ZM7.43616 8.85059H14.0875L15.0924 8.78906L14.566 9.14453L13.6842 9.96484C13.5406 10.1016 13.4586 10.2861 13.4586 10.4844C13.4586 10.8398 13.7321 11.168 14.1217 11.168C14.3199 11.168 14.4635 11.0928 14.6002 10.9561L16.7809 8.68652C16.986 8.48145 17.0543 8.27637 17.0543 8.06445C17.0543 7.85254 16.986 7.64746 16.7809 7.43555L14.6002 5.17285C14.4635 5.03613 14.3199 4.9541 14.1217 4.9541C13.7321 4.9541 13.4586 5.27539 13.4586 5.6377C13.4586 5.83594 13.5406 6.02734 13.6842 6.15723L14.566 6.98438L15.0924 7.33984L14.0875 7.27148H7.43616C7.01917 7.27148 6.65686 7.62012 6.65686 8.06445C6.65686 8.50195 7.01917 8.85059 7.43616 8.85059Z",
|
|
@@ -4059,7 +4084,7 @@ var DisconnectIcon = () => /* @__PURE__ */ React31.createElement(
|
|
|
4059
4084
|
);
|
|
4060
4085
|
|
|
4061
4086
|
// src/components/Txs/TxList.tsx
|
|
4062
|
-
import
|
|
4087
|
+
import React37, { useContext as useContext11 } from "react";
|
|
4063
4088
|
import { useAccount as useAccount11 } from "wagmi";
|
|
4064
4089
|
|
|
4065
4090
|
// src/transactions/useClearRecentTransactions.ts
|
|
@@ -4081,8 +4106,8 @@ function useClearRecentTransactions() {
|
|
|
4081
4106
|
var chainToExplorerUrl = (chain) => chain?.blockExplorers?.default?.url;
|
|
4082
4107
|
|
|
4083
4108
|
// src/components/Icons/ExternalLink.tsx
|
|
4084
|
-
import
|
|
4085
|
-
var ExternalLinkIcon = () => /* @__PURE__ */
|
|
4109
|
+
import React33 from "react";
|
|
4110
|
+
var ExternalLinkIcon = () => /* @__PURE__ */ React33.createElement(
|
|
4086
4111
|
"svg",
|
|
4087
4112
|
{
|
|
4088
4113
|
fill: "none",
|
|
@@ -4091,8 +4116,8 @@ var ExternalLinkIcon = () => /* @__PURE__ */ React32.createElement(
|
|
|
4091
4116
|
width: "20",
|
|
4092
4117
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4093
4118
|
},
|
|
4094
|
-
/* @__PURE__ */
|
|
4095
|
-
/* @__PURE__ */
|
|
4119
|
+
/* @__PURE__ */ React33.createElement("title", null, "Link"),
|
|
4120
|
+
/* @__PURE__ */ React33.createElement(
|
|
4096
4121
|
"path",
|
|
4097
4122
|
{
|
|
4098
4123
|
d: "M10 18.9443C15.0977 18.9443 19.2812 14.752 19.2812 9.6543C19.2812 4.56543 15.0889 0.373047 10 0.373047C4.90234 0.373047 0.71875 4.56543 0.71875 9.6543C0.71875 14.752 4.91113 18.9443 10 18.9443ZM10 16.6328C6.1416 16.6328 3.03906 13.5215 3.03906 9.6543C3.03906 5.7959 6.13281 2.68457 10 2.68457C13.8584 2.68457 16.9697 5.7959 16.9697 9.6543C16.9785 13.5215 13.8672 16.6328 10 16.6328ZM12.7158 12.1416C13.2432 12.1416 13.5684 11.7549 13.5684 11.1836V7.19336C13.5684 6.44629 13.1377 6.05957 12.417 6.05957H8.40918C7.8291 6.05957 7.45117 6.38477 7.45117 6.91211C7.45117 7.43945 7.8291 7.77344 8.40918 7.77344H9.69238L10.7207 7.63281L9.53418 8.67871L6.73047 11.4912C6.53711 11.6758 6.41406 11.9395 6.41406 12.2031C6.41406 12.7832 6.85352 13.1699 7.39844 13.1699C7.68848 13.1699 7.92578 13.0732 8.1543 12.8623L10.9316 10.0762L11.9775 8.89844L11.8545 9.98828V11.1836C11.8545 11.7725 12.1885 12.1416 12.7158 12.1416Z",
|
|
@@ -4102,12 +4127,12 @@ var ExternalLinkIcon = () => /* @__PURE__ */ React32.createElement(
|
|
|
4102
4127
|
);
|
|
4103
4128
|
|
|
4104
4129
|
// src/components/Txs/TxItem.tsx
|
|
4105
|
-
import
|
|
4130
|
+
import React36 from "react";
|
|
4106
4131
|
import { useAccount as useAccount10 } from "wagmi";
|
|
4107
4132
|
|
|
4108
4133
|
// src/components/Icons/Cancel.tsx
|
|
4109
|
-
import
|
|
4110
|
-
var CancelIcon = () => /* @__PURE__ */
|
|
4134
|
+
import React34 from "react";
|
|
4135
|
+
var CancelIcon = () => /* @__PURE__ */ React34.createElement(
|
|
4111
4136
|
"svg",
|
|
4112
4137
|
{
|
|
4113
4138
|
fill: "none",
|
|
@@ -4116,8 +4141,8 @@ var CancelIcon = () => /* @__PURE__ */ React33.createElement(
|
|
|
4116
4141
|
width: "20",
|
|
4117
4142
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4118
4143
|
},
|
|
4119
|
-
/* @__PURE__ */
|
|
4120
|
-
/* @__PURE__ */
|
|
4144
|
+
/* @__PURE__ */ React34.createElement("title", null, "Cancel"),
|
|
4145
|
+
/* @__PURE__ */ React34.createElement(
|
|
4121
4146
|
"path",
|
|
4122
4147
|
{
|
|
4123
4148
|
d: "M10 18.9443C15.0977 18.9443 19.2812 14.752 19.2812 9.6543C19.2812 4.56543 15.0889 0.373047 10 0.373047C4.90234 0.373047 0.71875 4.56543 0.71875 9.6543C0.71875 14.752 4.91113 18.9443 10 18.9443ZM10 16.6328C6.1416 16.6328 3.03906 13.5215 3.03906 9.6543C3.03906 5.7959 6.13281 2.68457 10 2.68457C13.8584 2.68457 16.9697 5.7959 16.9697 9.6543C16.9785 13.5215 13.8672 16.6328 10 16.6328ZM7.29297 13.3018C7.58301 13.3018 7.81152 13.2139 7.99609 13.0205L10 11.0166L12.0127 13.0205C12.1973 13.2051 12.4258 13.3018 12.707 13.3018C13.2432 13.3018 13.6562 12.8887 13.6562 12.3525C13.6562 12.0977 13.5508 11.8691 13.3662 11.6934L11.3535 9.67188L13.375 7.6416C13.5596 7.44824 13.6562 7.22852 13.6562 6.98242C13.6562 6.44629 13.2432 6.0332 12.7158 6.0332C12.4346 6.0332 12.2148 6.12109 12.0215 6.31445L10 8.32715L7.9873 6.32324C7.80273 6.12988 7.58301 6.04199 7.29297 6.04199C6.76562 6.04199 6.35254 6.45508 6.35254 6.99121C6.35254 7.2373 6.44922 7.46582 6.63379 7.6416L8.65527 9.67188L6.63379 11.6934C6.44922 11.8691 6.35254 12.1064 6.35254 12.3525C6.35254 12.8887 6.76562 13.3018 7.29297 13.3018Z",
|
|
@@ -4127,8 +4152,8 @@ var CancelIcon = () => /* @__PURE__ */ React33.createElement(
|
|
|
4127
4152
|
);
|
|
4128
4153
|
|
|
4129
4154
|
// src/components/Icons/Success.tsx
|
|
4130
|
-
import
|
|
4131
|
-
var SuccessIcon = () => /* @__PURE__ */
|
|
4155
|
+
import React35 from "react";
|
|
4156
|
+
var SuccessIcon = () => /* @__PURE__ */ React35.createElement(
|
|
4132
4157
|
"svg",
|
|
4133
4158
|
{
|
|
4134
4159
|
fill: "none",
|
|
@@ -4137,8 +4162,8 @@ var SuccessIcon = () => /* @__PURE__ */ React34.createElement(
|
|
|
4137
4162
|
width: "20",
|
|
4138
4163
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4139
4164
|
},
|
|
4140
|
-
/* @__PURE__ */
|
|
4141
|
-
/* @__PURE__ */
|
|
4165
|
+
/* @__PURE__ */ React35.createElement("title", null, "Success"),
|
|
4166
|
+
/* @__PURE__ */ React35.createElement(
|
|
4142
4167
|
"path",
|
|
4143
4168
|
{
|
|
4144
4169
|
d: "M10 19.4443C15.0977 19.4443 19.2812 15.252 19.2812 10.1543C19.2812 5.06543 15.0889 0.873047 10 0.873047C4.90234 0.873047 0.71875 5.06543 0.71875 10.1543C0.71875 15.252 4.91113 19.4443 10 19.4443ZM10 17.1328C6.1416 17.1328 3.03906 14.0215 3.03906 10.1543C3.03906 6.2959 6.13281 3.18457 10 3.18457C13.8584 3.18457 16.9697 6.2959 16.9697 10.1543C16.9785 14.0215 13.8672 17.1328 10 17.1328ZM9.07715 14.3379C9.4375 14.3379 9.7627 14.1533 9.97363 13.8369L13.7441 8.00977C13.8848 7.79883 13.9814 7.5791 13.9814 7.36816C13.9814 6.84961 13.5244 6.48926 13.0322 6.48926C12.707 6.48926 12.4258 6.66504 12.2148 7.0166L9.05957 12.0967L7.5918 10.2949C7.37207 10.0225 7.13477 9.9082 6.84473 9.9082C6.33496 9.9082 5.92188 10.3125 5.92188 10.8223C5.92188 11.0684 6.00098 11.2793 6.18555 11.5078L8.1543 13.8545C8.40918 14.1709 8.70801 14.3379 9.07715 14.3379Z",
|
|
@@ -4167,7 +4192,7 @@ function TxItem({ tx }) {
|
|
|
4167
4192
|
const { chain: activeChain } = useAccount10();
|
|
4168
4193
|
const confirmationStatus = tx.status === "confirmed" ? "Confirmed" : tx.status === "failed" ? "Failed" : "Pending";
|
|
4169
4194
|
const explorerLink = chainToExplorerUrl(activeChain);
|
|
4170
|
-
return /* @__PURE__ */
|
|
4195
|
+
return /* @__PURE__ */ React36.createElement(React36.Fragment, null, /* @__PURE__ */ React36.createElement(
|
|
4171
4196
|
Box,
|
|
4172
4197
|
{
|
|
4173
4198
|
...explorerLink ? {
|
|
@@ -4187,7 +4212,7 @@ function TxItem({ tx }) {
|
|
|
4187
4212
|
padding: "8",
|
|
4188
4213
|
width: "full"
|
|
4189
4214
|
},
|
|
4190
|
-
/* @__PURE__ */
|
|
4215
|
+
/* @__PURE__ */ React36.createElement(
|
|
4191
4216
|
Box,
|
|
4192
4217
|
{
|
|
4193
4218
|
alignItems: "center",
|
|
@@ -4195,8 +4220,8 @@ function TxItem({ tx }) {
|
|
|
4195
4220
|
flexDirection: "row",
|
|
4196
4221
|
gap: mobile ? "16" : "14"
|
|
4197
4222
|
},
|
|
4198
|
-
/* @__PURE__ */
|
|
4199
|
-
/* @__PURE__ */
|
|
4223
|
+
/* @__PURE__ */ React36.createElement(Box, { color }, /* @__PURE__ */ React36.createElement(Icon, null)),
|
|
4224
|
+
/* @__PURE__ */ React36.createElement(Box, { display: "flex", flexDirection: "column", gap: mobile ? "3" : "1" }, /* @__PURE__ */ React36.createElement(Box, null, /* @__PURE__ */ React36.createElement(
|
|
4200
4225
|
Text,
|
|
4201
4226
|
{
|
|
4202
4227
|
color: "modalText",
|
|
@@ -4205,7 +4230,7 @@ function TxItem({ tx }) {
|
|
|
4205
4230
|
weight: "bold"
|
|
4206
4231
|
},
|
|
4207
4232
|
tx?.description
|
|
4208
|
-
)), /* @__PURE__ */
|
|
4233
|
+
)), /* @__PURE__ */ React36.createElement(Box, null, /* @__PURE__ */ React36.createElement(
|
|
4209
4234
|
Text,
|
|
4210
4235
|
{
|
|
4211
4236
|
color: tx.status === "pending" ? "modalTextSecondary" : color,
|
|
@@ -4216,7 +4241,7 @@ function TxItem({ tx }) {
|
|
|
4216
4241
|
confirmationStatus
|
|
4217
4242
|
)))
|
|
4218
4243
|
),
|
|
4219
|
-
explorerLink && /* @__PURE__ */
|
|
4244
|
+
explorerLink && /* @__PURE__ */ React36.createElement(Box, { alignItems: "center", color: "modalTextDim", display: "flex" }, /* @__PURE__ */ React36.createElement(ExternalLinkIcon, null))
|
|
4220
4245
|
));
|
|
4221
4246
|
}
|
|
4222
4247
|
|
|
@@ -4230,9 +4255,9 @@ function TxList({ address }) {
|
|
|
4230
4255
|
const visibleTxs = recentTransactions.slice(0, NUMBER_OF_VISIBLE_TXS);
|
|
4231
4256
|
const hasTransactions = visibleTxs.length > 0;
|
|
4232
4257
|
const mobile = isMobile();
|
|
4233
|
-
const { appName } =
|
|
4234
|
-
const { i18n: i18n2 } =
|
|
4235
|
-
return /* @__PURE__ */
|
|
4258
|
+
const { appName } = useContext11(AppContext);
|
|
4259
|
+
const { i18n: i18n2 } = useContext11(I18nContext);
|
|
4260
|
+
return /* @__PURE__ */ React37.createElement(React37.Fragment, null, /* @__PURE__ */ React37.createElement(
|
|
4236
4261
|
Box,
|
|
4237
4262
|
{
|
|
4238
4263
|
display: "flex",
|
|
@@ -4242,14 +4267,14 @@ function TxList({ address }) {
|
|
|
4242
4267
|
paddingTop: "16",
|
|
4243
4268
|
paddingX: mobile ? "8" : "18"
|
|
4244
4269
|
},
|
|
4245
|
-
hasTransactions && /* @__PURE__ */
|
|
4270
|
+
hasTransactions && /* @__PURE__ */ React37.createElement(
|
|
4246
4271
|
Box,
|
|
4247
4272
|
{
|
|
4248
4273
|
paddingBottom: mobile ? "4" : "0",
|
|
4249
4274
|
paddingTop: "8",
|
|
4250
4275
|
paddingX: mobile ? "12" : "6"
|
|
4251
4276
|
},
|
|
4252
|
-
/* @__PURE__ */
|
|
4277
|
+
/* @__PURE__ */ React37.createElement(Box, { display: "flex", justifyContent: "space-between" }, /* @__PURE__ */ React37.createElement(
|
|
4253
4278
|
Text,
|
|
4254
4279
|
{
|
|
4255
4280
|
color: "modalTextSecondary",
|
|
@@ -4257,7 +4282,7 @@ function TxList({ address }) {
|
|
|
4257
4282
|
weight: "semibold"
|
|
4258
4283
|
},
|
|
4259
4284
|
i18n2.t("profile.transactions.recent.title")
|
|
4260
|
-
), /* @__PURE__ */
|
|
4285
|
+
), /* @__PURE__ */ React37.createElement(
|
|
4261
4286
|
Box,
|
|
4262
4287
|
{
|
|
4263
4288
|
style: {
|
|
@@ -4267,7 +4292,7 @@ function TxList({ address }) {
|
|
|
4267
4292
|
marginTop: -6
|
|
4268
4293
|
}
|
|
4269
4294
|
},
|
|
4270
|
-
/* @__PURE__ */
|
|
4295
|
+
/* @__PURE__ */ React37.createElement(
|
|
4271
4296
|
Box,
|
|
4272
4297
|
{
|
|
4273
4298
|
as: "button",
|
|
@@ -4282,7 +4307,7 @@ function TxList({ address }) {
|
|
|
4282
4307
|
transition: "default",
|
|
4283
4308
|
type: "button"
|
|
4284
4309
|
},
|
|
4285
|
-
/* @__PURE__ */
|
|
4310
|
+
/* @__PURE__ */ React37.createElement(
|
|
4286
4311
|
Text,
|
|
4287
4312
|
{
|
|
4288
4313
|
color: "modalTextSecondary",
|
|
@@ -4294,7 +4319,7 @@ function TxList({ address }) {
|
|
|
4294
4319
|
)
|
|
4295
4320
|
))
|
|
4296
4321
|
),
|
|
4297
|
-
/* @__PURE__ */
|
|
4322
|
+
/* @__PURE__ */ React37.createElement(Box, { display: "flex", flexDirection: "column", gap: "4" }, hasTransactions ? visibleTxs.map((tx) => /* @__PURE__ */ React37.createElement(TxItem, { key: tx.hash, tx })) : /* @__PURE__ */ React37.createElement(React37.Fragment, null, /* @__PURE__ */ React37.createElement(Box, { padding: mobile ? "12" : "8" }, /* @__PURE__ */ React37.createElement(
|
|
4298
4323
|
Text,
|
|
4299
4324
|
{
|
|
4300
4325
|
color: "modalTextDim",
|
|
@@ -4304,7 +4329,7 @@ function TxList({ address }) {
|
|
|
4304
4329
|
appName ? i18n2.t("profile.transactions.description", {
|
|
4305
4330
|
appName
|
|
4306
4331
|
}) : i18n2.t("profile.transactions.description_fallback")
|
|
4307
|
-
)), mobile && /* @__PURE__ */
|
|
4332
|
+
)), mobile && /* @__PURE__ */ React37.createElement(
|
|
4308
4333
|
Box,
|
|
4309
4334
|
{
|
|
4310
4335
|
background: "generalBorderDim",
|
|
@@ -4313,7 +4338,7 @@ function TxList({ address }) {
|
|
|
4313
4338
|
marginY: "8"
|
|
4314
4339
|
}
|
|
4315
4340
|
)))
|
|
4316
|
-
), explorerLink && /* @__PURE__ */
|
|
4341
|
+
), explorerLink && /* @__PURE__ */ React37.createElement(Box, { paddingBottom: "18", paddingX: mobile ? "8" : "18" }, /* @__PURE__ */ React37.createElement(
|
|
4317
4342
|
Box,
|
|
4318
4343
|
{
|
|
4319
4344
|
alignItems: "center",
|
|
@@ -4335,7 +4360,7 @@ function TxList({ address }) {
|
|
|
4335
4360
|
width: "full",
|
|
4336
4361
|
...mobile ? { paddingLeft: "12" } : {}
|
|
4337
4362
|
},
|
|
4338
|
-
/* @__PURE__ */
|
|
4363
|
+
/* @__PURE__ */ React37.createElement(
|
|
4339
4364
|
Text,
|
|
4340
4365
|
{
|
|
4341
4366
|
color: "modalText",
|
|
@@ -4345,12 +4370,12 @@ function TxList({ address }) {
|
|
|
4345
4370
|
},
|
|
4346
4371
|
i18n2.t("profile.explorer.label")
|
|
4347
4372
|
),
|
|
4348
|
-
/* @__PURE__ */
|
|
4373
|
+
/* @__PURE__ */ React37.createElement(ExternalLinkIcon, null)
|
|
4349
4374
|
)));
|
|
4350
4375
|
}
|
|
4351
4376
|
|
|
4352
4377
|
// src/components/ProfileDetails/ProfileDetailsAction.tsx
|
|
4353
|
-
import
|
|
4378
|
+
import React38 from "react";
|
|
4354
4379
|
function ProfileDetailsAction({
|
|
4355
4380
|
action,
|
|
4356
4381
|
icon,
|
|
@@ -4359,7 +4384,7 @@ function ProfileDetailsAction({
|
|
|
4359
4384
|
url
|
|
4360
4385
|
}) {
|
|
4361
4386
|
const mobile = isMobile();
|
|
4362
|
-
return /* @__PURE__ */
|
|
4387
|
+
return /* @__PURE__ */ React38.createElement(
|
|
4363
4388
|
Box,
|
|
4364
4389
|
{
|
|
4365
4390
|
...url ? { as: "a", href: url, rel: "noreferrer noopener", target: "_blank" } : { as: "button", type: "button" },
|
|
@@ -4381,7 +4406,7 @@ function ProfileDetailsAction({
|
|
|
4381
4406
|
transition: "default",
|
|
4382
4407
|
width: "full"
|
|
4383
4408
|
},
|
|
4384
|
-
/* @__PURE__ */
|
|
4409
|
+
/* @__PURE__ */ React38.createElement(
|
|
4385
4410
|
Box,
|
|
4386
4411
|
{
|
|
4387
4412
|
alignItems: "center",
|
|
@@ -4392,8 +4417,8 @@ function ProfileDetailsAction({
|
|
|
4392
4417
|
paddingTop: "2",
|
|
4393
4418
|
width: "full"
|
|
4394
4419
|
},
|
|
4395
|
-
/* @__PURE__ */
|
|
4396
|
-
/* @__PURE__ */
|
|
4420
|
+
/* @__PURE__ */ React38.createElement(Box, { color: "modalText", height: "max" }, icon),
|
|
4421
|
+
/* @__PURE__ */ React38.createElement(Box, null, /* @__PURE__ */ React38.createElement(Text, { color: "modalText", size: mobile ? "12" : "13", weight: "semibold" }, label))
|
|
4397
4422
|
)
|
|
4398
4423
|
);
|
|
4399
4424
|
}
|
|
@@ -4407,7 +4432,7 @@ function ProfileDetails({
|
|
|
4407
4432
|
onClose,
|
|
4408
4433
|
onDisconnect
|
|
4409
4434
|
}) {
|
|
4410
|
-
const showRecentTransactions =
|
|
4435
|
+
const showRecentTransactions = useContext12(ShowRecentTransactionsContext);
|
|
4411
4436
|
const [copiedAddress, setCopiedAddress] = useState13(false);
|
|
4412
4437
|
const copyAddressAction = useCallback10(() => {
|
|
4413
4438
|
if (address) {
|
|
@@ -4431,8 +4456,8 @@ function ProfileDetails({
|
|
|
4431
4456
|
const displayBalance = ethBalance ? abbreviateETHBalance(Number.parseFloat(ethBalance)) : void 0;
|
|
4432
4457
|
const titleId = "rk_profile_title";
|
|
4433
4458
|
const mobile = isMobile();
|
|
4434
|
-
const { i18n: i18n2 } =
|
|
4435
|
-
return /* @__PURE__ */
|
|
4459
|
+
const { i18n: i18n2 } = useContext12(I18nContext);
|
|
4460
|
+
return /* @__PURE__ */ React39.createElement(React39.Fragment, null, /* @__PURE__ */ React39.createElement(Box, { display: "flex", flexDirection: "column" }, /* @__PURE__ */ React39.createElement(Box, { background: "profileForeground", padding: "16" }, /* @__PURE__ */ React39.createElement(
|
|
4436
4461
|
Box,
|
|
4437
4462
|
{
|
|
4438
4463
|
alignItems: "center",
|
|
@@ -4443,7 +4468,7 @@ function ProfileDetails({
|
|
|
4443
4468
|
margin: "8",
|
|
4444
4469
|
style: { textAlign: "center" }
|
|
4445
4470
|
},
|
|
4446
|
-
/* @__PURE__ */
|
|
4471
|
+
/* @__PURE__ */ React39.createElement(
|
|
4447
4472
|
Box,
|
|
4448
4473
|
{
|
|
4449
4474
|
style: {
|
|
@@ -4453,10 +4478,10 @@ function ProfileDetails({
|
|
|
4453
4478
|
willChange: "transform"
|
|
4454
4479
|
}
|
|
4455
4480
|
},
|
|
4456
|
-
/* @__PURE__ */
|
|
4481
|
+
/* @__PURE__ */ React39.createElement(CloseButton, { onClose })
|
|
4457
4482
|
),
|
|
4458
4483
|
" ",
|
|
4459
|
-
/* @__PURE__ */
|
|
4484
|
+
/* @__PURE__ */ React39.createElement(Box, { marginTop: mobile ? "24" : "0" }, /* @__PURE__ */ React39.createElement(
|
|
4460
4485
|
Avatar,
|
|
4461
4486
|
{
|
|
4462
4487
|
address,
|
|
@@ -4464,7 +4489,7 @@ function ProfileDetails({
|
|
|
4464
4489
|
size: mobile ? 82 : 74
|
|
4465
4490
|
}
|
|
4466
4491
|
)),
|
|
4467
|
-
/* @__PURE__ */
|
|
4492
|
+
/* @__PURE__ */ React39.createElement(
|
|
4468
4493
|
Box,
|
|
4469
4494
|
{
|
|
4470
4495
|
display: "flex",
|
|
@@ -4472,7 +4497,7 @@ function ProfileDetails({
|
|
|
4472
4497
|
gap: mobile ? "4" : "0",
|
|
4473
4498
|
textAlign: "center"
|
|
4474
4499
|
},
|
|
4475
|
-
/* @__PURE__ */
|
|
4500
|
+
/* @__PURE__ */ React39.createElement(Box, { textAlign: "center" }, /* @__PURE__ */ React39.createElement(
|
|
4476
4501
|
Text,
|
|
4477
4502
|
{
|
|
4478
4503
|
as: "h1",
|
|
@@ -4483,7 +4508,7 @@ function ProfileDetails({
|
|
|
4483
4508
|
},
|
|
4484
4509
|
accountName
|
|
4485
4510
|
)),
|
|
4486
|
-
!!balance && /* @__PURE__ */
|
|
4511
|
+
!!balance && /* @__PURE__ */ React39.createElement(Box, { textAlign: "center" }, /* @__PURE__ */ React39.createElement(
|
|
4487
4512
|
Text,
|
|
4488
4513
|
{
|
|
4489
4514
|
as: "h1",
|
|
@@ -4497,7 +4522,7 @@ function ProfileDetails({
|
|
|
4497
4522
|
balance.symbol
|
|
4498
4523
|
))
|
|
4499
4524
|
)
|
|
4500
|
-
), /* @__PURE__ */
|
|
4525
|
+
), /* @__PURE__ */ React39.createElement(
|
|
4501
4526
|
Box,
|
|
4502
4527
|
{
|
|
4503
4528
|
display: "flex",
|
|
@@ -4506,24 +4531,24 @@ function ProfileDetails({
|
|
|
4506
4531
|
margin: "2",
|
|
4507
4532
|
marginTop: "16"
|
|
4508
4533
|
},
|
|
4509
|
-
/* @__PURE__ */
|
|
4534
|
+
/* @__PURE__ */ React39.createElement(
|
|
4510
4535
|
ProfileDetailsAction,
|
|
4511
4536
|
{
|
|
4512
4537
|
action: copyAddressAction,
|
|
4513
|
-
icon: copiedAddress ? /* @__PURE__ */
|
|
4538
|
+
icon: copiedAddress ? /* @__PURE__ */ React39.createElement(CopiedIcon, null) : /* @__PURE__ */ React39.createElement(CopyIcon, null),
|
|
4514
4539
|
label: copiedAddress ? i18n2.t("profile.copy_address.copied") : i18n2.t("profile.copy_address.label")
|
|
4515
4540
|
}
|
|
4516
4541
|
),
|
|
4517
|
-
/* @__PURE__ */
|
|
4542
|
+
/* @__PURE__ */ React39.createElement(
|
|
4518
4543
|
ProfileDetailsAction,
|
|
4519
4544
|
{
|
|
4520
4545
|
action: onDisconnect,
|
|
4521
|
-
icon: /* @__PURE__ */
|
|
4546
|
+
icon: /* @__PURE__ */ React39.createElement(DisconnectIcon, null),
|
|
4522
4547
|
label: i18n2.t("profile.disconnect.label"),
|
|
4523
4548
|
testId: "disconnect-button"
|
|
4524
4549
|
}
|
|
4525
4550
|
)
|
|
4526
|
-
)), showRecentTransactions && address.startsWith("0x") && /* @__PURE__ */
|
|
4551
|
+
)), showRecentTransactions && address.startsWith("0x") && /* @__PURE__ */ React39.createElement(React39.Fragment, null, /* @__PURE__ */ React39.createElement(Box, { background: "generalBorder", height: "1", marginTop: "-1" }), /* @__PURE__ */ React39.createElement(Box, null, /* @__PURE__ */ React39.createElement(TxList, { address })))));
|
|
4527
4552
|
}
|
|
4528
4553
|
|
|
4529
4554
|
// src/components/AccountModal/AccountModal.tsx
|
|
@@ -4534,7 +4559,7 @@ function AccountModal({ onClose, open }) {
|
|
|
4534
4559
|
includeBalance: open
|
|
4535
4560
|
});
|
|
4536
4561
|
const { disconnect } = useDisconnect();
|
|
4537
|
-
const multiChainContext =
|
|
4562
|
+
const multiChainContext = useContext13(MultiChainContext);
|
|
4538
4563
|
const displayAddress = address || multiChainContext?.solanaAddress;
|
|
4539
4564
|
if (!displayAddress) {
|
|
4540
4565
|
return null;
|
|
@@ -4548,7 +4573,7 @@ function AccountModal({ onClose, open }) {
|
|
|
4548
4573
|
multiChainContext.disconnectAll();
|
|
4549
4574
|
}
|
|
4550
4575
|
};
|
|
4551
|
-
return /* @__PURE__ */
|
|
4576
|
+
return /* @__PURE__ */ React40.createElement(React40.Fragment, null, displayAddress && /* @__PURE__ */ React40.createElement(Dialog, { onClose, open, titleId }, /* @__PURE__ */ React40.createElement(DialogContent, { bottomSheetOnMobile: true, padding: "0" }, /* @__PURE__ */ React40.createElement(
|
|
4552
4577
|
ProfileDetails,
|
|
4553
4578
|
{
|
|
4554
4579
|
address: displayAddress,
|
|
@@ -4562,13 +4587,13 @@ function AccountModal({ onClose, open }) {
|
|
|
4562
4587
|
}
|
|
4563
4588
|
|
|
4564
4589
|
// src/components/ChainModal/ChainModal.tsx
|
|
4565
|
-
import
|
|
4590
|
+
import React44, { useContext as useContext15, useState as useState14 } from "react";
|
|
4566
4591
|
import { useAccount as useAccount13, useDisconnect as useDisconnect2, useSwitchChain } from "wagmi";
|
|
4567
4592
|
import { useConfig as useConfig2 } from "wagmi";
|
|
4568
4593
|
|
|
4569
4594
|
// src/components/Icons/DisconnectSq.tsx
|
|
4570
|
-
import
|
|
4571
|
-
var DisconnectSqIcon = ({ size }) => /* @__PURE__ */
|
|
4595
|
+
import React41 from "react";
|
|
4596
|
+
var DisconnectSqIcon = ({ size }) => /* @__PURE__ */ React41.createElement(
|
|
4572
4597
|
"svg",
|
|
4573
4598
|
{
|
|
4574
4599
|
fill: "none",
|
|
@@ -4577,8 +4602,8 @@ var DisconnectSqIcon = ({ size }) => /* @__PURE__ */ React40.createElement(
|
|
|
4577
4602
|
width: size,
|
|
4578
4603
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4579
4604
|
},
|
|
4580
|
-
/* @__PURE__ */
|
|
4581
|
-
/* @__PURE__ */
|
|
4605
|
+
/* @__PURE__ */ React41.createElement("title", null, "Disconnect"),
|
|
4606
|
+
/* @__PURE__ */ React41.createElement(
|
|
4582
4607
|
"path",
|
|
4583
4608
|
{
|
|
4584
4609
|
d: "M6.742 22.195h8.367c1.774 0 2.743-.968 2.743-2.758V16.11h-2.016v3.11c0 .625-.305.96-.969.96H6.984c-.664 0-.968-.335-.968-.96V7.984c0-.632.304-.968.968-.968h7.883c.664 0 .969.336.969.968v3.133h2.016v-3.36c0-1.78-.97-2.757-2.743-2.757H6.742C4.97 5 4 5.977 4 7.758v11.68c0 1.789.969 2.757 2.742 2.757Zm5.438-7.703h7.601l1.149-.07-.602.406-1.008.938a.816.816 0 0 0-.258.593c0 .407.313.782.758.782.227 0 .39-.086.547-.243l2.492-2.593c.235-.235.313-.47.313-.711 0-.242-.078-.477-.313-.719l-2.492-2.586c-.156-.156-.32-.25-.547-.25-.445 0-.758.367-.758.781 0 .227.094.446.258.594l1.008.945.602.407-1.149-.079H12.18a.904.904 0 0 0 0 1.805Z",
|
|
@@ -4588,13 +4613,13 @@ var DisconnectSqIcon = ({ size }) => /* @__PURE__ */ React40.createElement(
|
|
|
4588
4613
|
);
|
|
4589
4614
|
|
|
4590
4615
|
// src/components/MenuButton/MenuButton.tsx
|
|
4591
|
-
import
|
|
4616
|
+
import React42 from "react";
|
|
4592
4617
|
|
|
4593
4618
|
// src/components/MenuButton/MenuButton.css.ts
|
|
4594
4619
|
var unsetBackgroundOnHover = "t0q2kx0";
|
|
4595
4620
|
|
|
4596
4621
|
// src/components/MenuButton/MenuButton.tsx
|
|
4597
|
-
var MenuButton =
|
|
4622
|
+
var MenuButton = React42.forwardRef(
|
|
4598
4623
|
({
|
|
4599
4624
|
children,
|
|
4600
4625
|
currentlySelected = false,
|
|
@@ -4603,7 +4628,7 @@ var MenuButton = React41.forwardRef(
|
|
|
4603
4628
|
...urlProps
|
|
4604
4629
|
}, ref) => {
|
|
4605
4630
|
const mobile = isMobile();
|
|
4606
|
-
return /* @__PURE__ */
|
|
4631
|
+
return /* @__PURE__ */ React42.createElement(
|
|
4607
4632
|
Box,
|
|
4608
4633
|
{
|
|
4609
4634
|
as: "button",
|
|
@@ -4615,7 +4640,7 @@ var MenuButton = React41.forwardRef(
|
|
|
4615
4640
|
testId,
|
|
4616
4641
|
type: "button"
|
|
4617
4642
|
},
|
|
4618
|
-
/* @__PURE__ */
|
|
4643
|
+
/* @__PURE__ */ React42.createElement(
|
|
4619
4644
|
Box,
|
|
4620
4645
|
{
|
|
4621
4646
|
borderRadius: "menuButton",
|
|
@@ -4648,7 +4673,7 @@ var MenuButton = React41.forwardRef(
|
|
|
4648
4673
|
MenuButton.displayName = "MenuButton";
|
|
4649
4674
|
|
|
4650
4675
|
// src/components/ChainModal/Chain.tsx
|
|
4651
|
-
import
|
|
4676
|
+
import React43, { Fragment, useContext as useContext14 } from "react";
|
|
4652
4677
|
var Chain = ({
|
|
4653
4678
|
chainId,
|
|
4654
4679
|
currentChainId,
|
|
@@ -4661,17 +4686,17 @@ var Chain = ({
|
|
|
4661
4686
|
idx
|
|
4662
4687
|
}) => {
|
|
4663
4688
|
const mobile = isMobile();
|
|
4664
|
-
const { i18n: i18n2 } =
|
|
4689
|
+
const { i18n: i18n2 } = useContext14(I18nContext);
|
|
4665
4690
|
const rainbowkitChains = useRainbowKitChains();
|
|
4666
4691
|
const isCurrentChain = currentChainId === chainId;
|
|
4667
|
-
return /* @__PURE__ */
|
|
4692
|
+
return /* @__PURE__ */ React43.createElement(Fragment, null, /* @__PURE__ */ React43.createElement(
|
|
4668
4693
|
MenuButton,
|
|
4669
4694
|
{
|
|
4670
4695
|
currentlySelected: isCurrentChain,
|
|
4671
4696
|
onClick: isCurrentChain ? void 0 : () => switchChain({ chainId }),
|
|
4672
4697
|
testId: `chain-option-${chainId}`
|
|
4673
4698
|
},
|
|
4674
|
-
/* @__PURE__ */
|
|
4699
|
+
/* @__PURE__ */ React43.createElement(Box, { fontFamily: "body", fontSize: "16", fontWeight: "bold" }, /* @__PURE__ */ React43.createElement(
|
|
4675
4700
|
Box,
|
|
4676
4701
|
{
|
|
4677
4702
|
alignItems: "center",
|
|
@@ -4679,7 +4704,7 @@ var Chain = ({
|
|
|
4679
4704
|
flexDirection: "row",
|
|
4680
4705
|
justifyContent: "space-between"
|
|
4681
4706
|
},
|
|
4682
|
-
/* @__PURE__ */
|
|
4707
|
+
/* @__PURE__ */ React43.createElement(
|
|
4683
4708
|
Box,
|
|
4684
4709
|
{
|
|
4685
4710
|
alignItems: "center",
|
|
@@ -4688,7 +4713,7 @@ var Chain = ({
|
|
|
4688
4713
|
gap: "4",
|
|
4689
4714
|
height: chainIconSize
|
|
4690
4715
|
},
|
|
4691
|
-
src7 && /* @__PURE__ */
|
|
4716
|
+
src7 && /* @__PURE__ */ React43.createElement(Box, { height: "full", marginRight: "8" }, /* @__PURE__ */ React43.createElement(
|
|
4692
4717
|
AsyncImage,
|
|
4693
4718
|
{
|
|
4694
4719
|
alt: name,
|
|
@@ -4700,9 +4725,9 @@ var Chain = ({
|
|
|
4700
4725
|
testId: `chain-option-${chainId}-icon`
|
|
4701
4726
|
}
|
|
4702
4727
|
)),
|
|
4703
|
-
/* @__PURE__ */
|
|
4728
|
+
/* @__PURE__ */ React43.createElement("div", null, name ?? name)
|
|
4704
4729
|
),
|
|
4705
|
-
isCurrentChain && /* @__PURE__ */
|
|
4730
|
+
isCurrentChain && /* @__PURE__ */ React43.createElement(
|
|
4706
4731
|
Box,
|
|
4707
4732
|
{
|
|
4708
4733
|
alignItems: "center",
|
|
@@ -4710,8 +4735,8 @@ var Chain = ({
|
|
|
4710
4735
|
flexDirection: "row",
|
|
4711
4736
|
marginRight: "6"
|
|
4712
4737
|
},
|
|
4713
|
-
/* @__PURE__ */
|
|
4714
|
-
/* @__PURE__ */
|
|
4738
|
+
/* @__PURE__ */ React43.createElement(Text, { color: "accentColorForeground", size: "14", weight: "medium" }, i18n2.t("chains.connected")),
|
|
4739
|
+
/* @__PURE__ */ React43.createElement(
|
|
4715
4740
|
Box,
|
|
4716
4741
|
{
|
|
4717
4742
|
background: "connectionIndicator",
|
|
@@ -4725,7 +4750,7 @@ var Chain = ({
|
|
|
4725
4750
|
}
|
|
4726
4751
|
)
|
|
4727
4752
|
),
|
|
4728
|
-
isLoading && /* @__PURE__ */
|
|
4753
|
+
isLoading && /* @__PURE__ */ React43.createElement(
|
|
4729
4754
|
Box,
|
|
4730
4755
|
{
|
|
4731
4756
|
alignItems: "center",
|
|
@@ -4733,8 +4758,8 @@ var Chain = ({
|
|
|
4733
4758
|
flexDirection: "row",
|
|
4734
4759
|
marginRight: "6"
|
|
4735
4760
|
},
|
|
4736
|
-
/* @__PURE__ */
|
|
4737
|
-
/* @__PURE__ */
|
|
4761
|
+
/* @__PURE__ */ React43.createElement(Text, { color: "modalText", size: "14", weight: "medium" }, i18n2.t("chains.confirm")),
|
|
4762
|
+
/* @__PURE__ */ React43.createElement(
|
|
4738
4763
|
Box,
|
|
4739
4764
|
{
|
|
4740
4765
|
background: "standby",
|
|
@@ -4746,7 +4771,7 @@ var Chain = ({
|
|
|
4746
4771
|
)
|
|
4747
4772
|
)
|
|
4748
4773
|
))
|
|
4749
|
-
), mobile && idx < rainbowkitChains.length - 1 && /* @__PURE__ */
|
|
4774
|
+
), mobile && idx < rainbowkitChains.length - 1 && /* @__PURE__ */ React43.createElement(Box, { background: "generalBorderDim", height: "1", marginX: "8" }));
|
|
4750
4775
|
};
|
|
4751
4776
|
var Chain_default = Chain;
|
|
4752
4777
|
|
|
@@ -4777,7 +4802,7 @@ function ChainModal({ onClose, open }) {
|
|
|
4777
4802
|
}
|
|
4778
4803
|
}
|
|
4779
4804
|
});
|
|
4780
|
-
const { i18n: i18n2 } =
|
|
4805
|
+
const { i18n: i18n2 } = useContext15(I18nContext);
|
|
4781
4806
|
const { disconnect } = useDisconnect2();
|
|
4782
4807
|
const titleId = "rk_chain_modal_title";
|
|
4783
4808
|
const mobile = isMobile();
|
|
@@ -4787,15 +4812,15 @@ function ChainModal({ onClose, open }) {
|
|
|
4787
4812
|
if (!chainId) {
|
|
4788
4813
|
return null;
|
|
4789
4814
|
}
|
|
4790
|
-
return /* @__PURE__ */
|
|
4815
|
+
return /* @__PURE__ */ React44.createElement(Dialog, { onClose, open, titleId }, /* @__PURE__ */ React44.createElement(DialogContent, { bottomSheetOnMobile: true, paddingBottom: "0" }, /* @__PURE__ */ React44.createElement(Box, { display: "flex", flexDirection: "column", gap: "14" }, /* @__PURE__ */ React44.createElement(
|
|
4791
4816
|
Box,
|
|
4792
4817
|
{
|
|
4793
4818
|
display: "flex",
|
|
4794
4819
|
flexDirection: "row",
|
|
4795
4820
|
justifyContent: "space-between"
|
|
4796
4821
|
},
|
|
4797
|
-
mobile && /* @__PURE__ */
|
|
4798
|
-
/* @__PURE__ */
|
|
4822
|
+
mobile && /* @__PURE__ */ React44.createElement(Box, { width: "30" }),
|
|
4823
|
+
/* @__PURE__ */ React44.createElement(Box, { paddingBottom: "0", paddingLeft: "8", paddingTop: "4" }, /* @__PURE__ */ React44.createElement(
|
|
4799
4824
|
Text,
|
|
4800
4825
|
{
|
|
4801
4826
|
as: "h1",
|
|
@@ -4806,8 +4831,8 @@ function ChainModal({ onClose, open }) {
|
|
|
4806
4831
|
},
|
|
4807
4832
|
i18n2.t("chains.title")
|
|
4808
4833
|
)),
|
|
4809
|
-
/* @__PURE__ */
|
|
4810
|
-
), !isCurrentChainSupported && /* @__PURE__ */
|
|
4834
|
+
/* @__PURE__ */ React44.createElement(CloseButton, { onClose })
|
|
4835
|
+
), !isCurrentChainSupported && /* @__PURE__ */ React44.createElement(Box, { marginX: "8", textAlign: mobile ? "center" : "left" }, /* @__PURE__ */ React44.createElement(Text, { color: "modalTextSecondary", size: "14", weight: "medium" }, i18n2.t("chains.wrong_network"))), /* @__PURE__ */ React44.createElement(
|
|
4811
4836
|
Box,
|
|
4812
4837
|
{
|
|
4813
4838
|
className: mobile ? MobileScrollClassName : DesktopScrollClassName,
|
|
@@ -4819,7 +4844,7 @@ function ChainModal({ onClose, open }) {
|
|
|
4819
4844
|
},
|
|
4820
4845
|
rainbowkitChains.map(
|
|
4821
4846
|
({ iconBackground, iconUrl, id, name }, idx) => {
|
|
4822
|
-
return /* @__PURE__ */
|
|
4847
|
+
return /* @__PURE__ */ React44.createElement(
|
|
4823
4848
|
Chain_default,
|
|
4824
4849
|
{
|
|
4825
4850
|
key: id,
|
|
@@ -4836,13 +4861,13 @@ function ChainModal({ onClose, open }) {
|
|
|
4836
4861
|
);
|
|
4837
4862
|
}
|
|
4838
4863
|
),
|
|
4839
|
-
!isCurrentChainSupported && /* @__PURE__ */
|
|
4864
|
+
!isCurrentChainSupported && /* @__PURE__ */ React44.createElement(React44.Fragment, null, /* @__PURE__ */ React44.createElement(Box, { background: "generalBorderDim", height: "1", marginX: "8" }), /* @__PURE__ */ React44.createElement(
|
|
4840
4865
|
MenuButton,
|
|
4841
4866
|
{
|
|
4842
4867
|
onClick: () => disconnect(),
|
|
4843
4868
|
testId: "chain-option-disconnect"
|
|
4844
4869
|
},
|
|
4845
|
-
/* @__PURE__ */
|
|
4870
|
+
/* @__PURE__ */ React44.createElement(
|
|
4846
4871
|
Box,
|
|
4847
4872
|
{
|
|
4848
4873
|
color: "error",
|
|
@@ -4850,7 +4875,7 @@ function ChainModal({ onClose, open }) {
|
|
|
4850
4875
|
fontSize: "16",
|
|
4851
4876
|
fontWeight: "bold"
|
|
4852
4877
|
},
|
|
4853
|
-
/* @__PURE__ */
|
|
4878
|
+
/* @__PURE__ */ React44.createElement(
|
|
4854
4879
|
Box,
|
|
4855
4880
|
{
|
|
4856
4881
|
alignItems: "center",
|
|
@@ -4858,7 +4883,7 @@ function ChainModal({ onClose, open }) {
|
|
|
4858
4883
|
flexDirection: "row",
|
|
4859
4884
|
justifyContent: "space-between"
|
|
4860
4885
|
},
|
|
4861
|
-
/* @__PURE__ */
|
|
4886
|
+
/* @__PURE__ */ React44.createElement(
|
|
4862
4887
|
Box,
|
|
4863
4888
|
{
|
|
4864
4889
|
alignItems: "center",
|
|
@@ -4867,7 +4892,7 @@ function ChainModal({ onClose, open }) {
|
|
|
4867
4892
|
gap: "4",
|
|
4868
4893
|
height: chainIconSize
|
|
4869
4894
|
},
|
|
4870
|
-
/* @__PURE__ */
|
|
4895
|
+
/* @__PURE__ */ React44.createElement(
|
|
4871
4896
|
Box,
|
|
4872
4897
|
{
|
|
4873
4898
|
alignItems: "center",
|
|
@@ -4876,9 +4901,9 @@ function ChainModal({ onClose, open }) {
|
|
|
4876
4901
|
justifyContent: "center",
|
|
4877
4902
|
marginRight: "8"
|
|
4878
4903
|
},
|
|
4879
|
-
/* @__PURE__ */
|
|
4904
|
+
/* @__PURE__ */ React44.createElement(DisconnectSqIcon, { size: Number(chainIconSize) })
|
|
4880
4905
|
),
|
|
4881
|
-
/* @__PURE__ */
|
|
4906
|
+
/* @__PURE__ */ React44.createElement("div", null, i18n2.t("chains.disconnect"))
|
|
4882
4907
|
)
|
|
4883
4908
|
)
|
|
4884
4909
|
)
|
|
@@ -4887,16 +4912,16 @@ function ChainModal({ onClose, open }) {
|
|
|
4887
4912
|
}
|
|
4888
4913
|
|
|
4889
4914
|
// src/components/ConnectModal/ConnectModal.tsx
|
|
4890
|
-
import
|
|
4915
|
+
import React68, { useContext as useContext24 } from "react";
|
|
4891
4916
|
import { useAccount as useAccount14, useDisconnect as useDisconnect3 } from "wagmi";
|
|
4892
4917
|
|
|
4893
4918
|
// src/components/ConnectOptions/ConnectOptions.tsx
|
|
4894
|
-
import
|
|
4919
|
+
import React64, { useContext as useContext22 } from "react";
|
|
4895
4920
|
|
|
4896
4921
|
// src/components/ConnectOptions/DesktopOptions.tsx
|
|
4897
|
-
import
|
|
4922
|
+
import React61, {
|
|
4898
4923
|
Fragment as Fragment2,
|
|
4899
|
-
useContext as
|
|
4924
|
+
useContext as useContext19,
|
|
4900
4925
|
useEffect as useEffect18,
|
|
4901
4926
|
useRef as useRef4,
|
|
4902
4927
|
useState as useState16
|
|
@@ -4920,15 +4945,15 @@ function groupBy(items, getKey) {
|
|
|
4920
4945
|
}
|
|
4921
4946
|
|
|
4922
4947
|
// src/components/ConnectModal/ConnectModalIntro.tsx
|
|
4923
|
-
import
|
|
4948
|
+
import React47, { useContext as useContext16 } from "react";
|
|
4924
4949
|
|
|
4925
4950
|
// src/components/Disclaimer/DisclaimerLink.tsx
|
|
4926
|
-
import
|
|
4951
|
+
import React45 from "react";
|
|
4927
4952
|
var DisclaimerLink = ({
|
|
4928
4953
|
children,
|
|
4929
4954
|
href
|
|
4930
4955
|
}) => {
|
|
4931
|
-
return /* @__PURE__ */
|
|
4956
|
+
return /* @__PURE__ */ React45.createElement(
|
|
4932
4957
|
Box,
|
|
4933
4958
|
{
|
|
4934
4959
|
as: "a",
|
|
@@ -4942,9 +4967,9 @@ var DisclaimerLink = ({
|
|
|
4942
4967
|
};
|
|
4943
4968
|
|
|
4944
4969
|
// src/components/Disclaimer/DisclaimerText.tsx
|
|
4945
|
-
import
|
|
4970
|
+
import React46 from "react";
|
|
4946
4971
|
var DisclaimerText = ({ children }) => {
|
|
4947
|
-
return /* @__PURE__ */
|
|
4972
|
+
return /* @__PURE__ */ React46.createElement(Text, { color: "modalTextSecondary", size: "12", weight: "medium" }, children);
|
|
4948
4973
|
};
|
|
4949
4974
|
|
|
4950
4975
|
// src/components/ConnectModal/ConnectModalIntro.tsx
|
|
@@ -4952,9 +4977,9 @@ function ConnectModalIntro({
|
|
|
4952
4977
|
compactModeEnabled = false,
|
|
4953
4978
|
getWallet
|
|
4954
4979
|
}) {
|
|
4955
|
-
const { disclaimer: Disclaimer, learnMoreUrl } =
|
|
4956
|
-
const { i18n: i18n2 } =
|
|
4957
|
-
return /* @__PURE__ */
|
|
4980
|
+
const { disclaimer: Disclaimer, learnMoreUrl } = useContext16(AppContext);
|
|
4981
|
+
const { i18n: i18n2 } = useContext16(I18nContext);
|
|
4982
|
+
return /* @__PURE__ */ React47.createElement(React47.Fragment, null, /* @__PURE__ */ React47.createElement(
|
|
4958
4983
|
Box,
|
|
4959
4984
|
{
|
|
4960
4985
|
alignItems: "center",
|
|
@@ -4964,8 +4989,8 @@ function ConnectModalIntro({
|
|
|
4964
4989
|
height: "full",
|
|
4965
4990
|
justifyContent: "space-around"
|
|
4966
4991
|
},
|
|
4967
|
-
/* @__PURE__ */
|
|
4968
|
-
/* @__PURE__ */
|
|
4992
|
+
/* @__PURE__ */ React47.createElement(Box, { marginBottom: "10" }, !compactModeEnabled && /* @__PURE__ */ React47.createElement(Text, { color: "modalText", size: "18", weight: "heavy" }, i18n2.t("intro.title"))),
|
|
4993
|
+
/* @__PURE__ */ React47.createElement(
|
|
4969
4994
|
Box,
|
|
4970
4995
|
{
|
|
4971
4996
|
display: "flex",
|
|
@@ -4975,10 +5000,10 @@ function ConnectModalIntro({
|
|
|
4975
5000
|
marginY: "20",
|
|
4976
5001
|
style: { maxWidth: 312 }
|
|
4977
5002
|
},
|
|
4978
|
-
/* @__PURE__ */
|
|
4979
|
-
/* @__PURE__ */
|
|
5003
|
+
/* @__PURE__ */ React47.createElement(Box, { alignItems: "center", display: "flex", flexDirection: "row", gap: "16" }, /* @__PURE__ */ React47.createElement(Box, { borderRadius: "6", height: "48", minWidth: "48", width: "48" }, /* @__PURE__ */ React47.createElement(AssetsIcon, null)), /* @__PURE__ */ React47.createElement(Box, { display: "flex", flexDirection: "column", gap: "4" }, /* @__PURE__ */ React47.createElement(Text, { color: "modalText", size: "14", weight: "bold" }, i18n2.t("intro.digital_asset.title")), /* @__PURE__ */ React47.createElement(Text, { color: "modalTextSecondary", size: "14", weight: "medium" }, i18n2.t("intro.digital_asset.description")))),
|
|
5004
|
+
/* @__PURE__ */ React47.createElement(Box, { alignItems: "center", display: "flex", flexDirection: "row", gap: "16" }, /* @__PURE__ */ React47.createElement(Box, { borderRadius: "6", height: "48", minWidth: "48", width: "48" }, /* @__PURE__ */ React47.createElement(LoginIcon, null)), /* @__PURE__ */ React47.createElement(Box, { display: "flex", flexDirection: "column", gap: "4" }, /* @__PURE__ */ React47.createElement(Text, { color: "modalText", size: "14", weight: "bold" }, i18n2.t("intro.login.title")), /* @__PURE__ */ React47.createElement(Text, { color: "modalTextSecondary", size: "14", weight: "medium" }, i18n2.t("intro.login.description"))))
|
|
4980
5005
|
),
|
|
4981
|
-
/* @__PURE__ */
|
|
5006
|
+
/* @__PURE__ */ React47.createElement(
|
|
4982
5007
|
Box,
|
|
4983
5008
|
{
|
|
4984
5009
|
alignItems: "center",
|
|
@@ -4988,8 +5013,8 @@ function ConnectModalIntro({
|
|
|
4988
5013
|
justifyContent: "center",
|
|
4989
5014
|
margin: "10"
|
|
4990
5015
|
},
|
|
4991
|
-
/* @__PURE__ */
|
|
4992
|
-
/* @__PURE__ */
|
|
5016
|
+
/* @__PURE__ */ React47.createElement(ActionButton, { label: i18n2.t("intro.get.label"), onClick: getWallet }),
|
|
5017
|
+
/* @__PURE__ */ React47.createElement(
|
|
4993
5018
|
Box,
|
|
4994
5019
|
{
|
|
4995
5020
|
as: "a",
|
|
@@ -5003,16 +5028,16 @@ function ConnectModalIntro({
|
|
|
5003
5028
|
target: "_blank",
|
|
5004
5029
|
transition: "default"
|
|
5005
5030
|
},
|
|
5006
|
-
/* @__PURE__ */
|
|
5031
|
+
/* @__PURE__ */ React47.createElement(Text, { color: "accentColor", size: "14", weight: "bold" }, i18n2.t("intro.learn_more.label"))
|
|
5007
5032
|
)
|
|
5008
5033
|
),
|
|
5009
|
-
Disclaimer && !compactModeEnabled && /* @__PURE__ */
|
|
5034
|
+
Disclaimer && !compactModeEnabled && /* @__PURE__ */ React47.createElement(Box, { marginBottom: "8", marginTop: "12", textAlign: "center" }, /* @__PURE__ */ React47.createElement(Disclaimer, { Link: DisclaimerLink, Text: DisclaimerText }))
|
|
5010
5035
|
));
|
|
5011
5036
|
}
|
|
5012
5037
|
|
|
5013
5038
|
// src/components/Icons/Back.tsx
|
|
5014
|
-
import
|
|
5015
|
-
var BackIcon = () => /* @__PURE__ */
|
|
5039
|
+
import React48 from "react";
|
|
5040
|
+
var BackIcon = () => /* @__PURE__ */ React48.createElement(
|
|
5016
5041
|
"svg",
|
|
5017
5042
|
{
|
|
5018
5043
|
fill: "none",
|
|
@@ -5021,8 +5046,8 @@ var BackIcon = () => /* @__PURE__ */ React47.createElement(
|
|
|
5021
5046
|
width: "11",
|
|
5022
5047
|
xmlns: "http://www.w3.org/2000/svg"
|
|
5023
5048
|
},
|
|
5024
|
-
/* @__PURE__ */
|
|
5025
|
-
/* @__PURE__ */
|
|
5049
|
+
/* @__PURE__ */ React48.createElement("title", null, "Back"),
|
|
5050
|
+
/* @__PURE__ */ React48.createElement(
|
|
5026
5051
|
"path",
|
|
5027
5052
|
{
|
|
5028
5053
|
d: "M0.99707 8.6543C0.99707 9.08496 1.15527 9.44531 1.51562 9.79688L8.16016 16.3096C8.43262 16.5732 8.74902 16.7051 9.13574 16.7051C9.90918 16.7051 10.5508 16.0811 10.5508 15.3076C10.5508 14.9121 10.3838 14.5605 10.0938 14.2705L4.30176 8.64551L10.0938 3.0293C10.3838 2.74805 10.5508 2.3877 10.5508 2.00098C10.5508 1.23633 9.90918 0.603516 9.13574 0.603516C8.74902 0.603516 8.43262 0.735352 8.16016 0.999023L1.51562 7.51172C1.15527 7.85449 1.00586 8.21484 0.99707 8.6543Z",
|
|
@@ -5032,11 +5057,11 @@ var BackIcon = () => /* @__PURE__ */ React47.createElement(
|
|
|
5032
5057
|
);
|
|
5033
5058
|
|
|
5034
5059
|
// src/components/InfoButton/InfoButton.tsx
|
|
5035
|
-
import
|
|
5060
|
+
import React50 from "react";
|
|
5036
5061
|
|
|
5037
5062
|
// src/components/Icons/Info.tsx
|
|
5038
|
-
import
|
|
5039
|
-
var InfoIcon = () => /* @__PURE__ */
|
|
5063
|
+
import React49 from "react";
|
|
5064
|
+
var InfoIcon = () => /* @__PURE__ */ React49.createElement(
|
|
5040
5065
|
"svg",
|
|
5041
5066
|
{
|
|
5042
5067
|
fill: "none",
|
|
@@ -5045,8 +5070,8 @@ var InfoIcon = () => /* @__PURE__ */ React48.createElement(
|
|
|
5045
5070
|
width: "8",
|
|
5046
5071
|
xmlns: "http://www.w3.org/2000/svg"
|
|
5047
5072
|
},
|
|
5048
|
-
/* @__PURE__ */
|
|
5049
|
-
/* @__PURE__ */
|
|
5073
|
+
/* @__PURE__ */ React49.createElement("title", null, "Info"),
|
|
5074
|
+
/* @__PURE__ */ React49.createElement(
|
|
5050
5075
|
"path",
|
|
5051
5076
|
{
|
|
5052
5077
|
d: "M3.64258 7.99609C4.19336 7.99609 4.5625 7.73828 4.68555 7.24609C4.69141 7.21094 4.70312 7.16406 4.70898 7.13477C4.80859 6.60742 5.05469 6.35547 6.04492 5.76367C7.14648 5.10156 7.67969 4.3457 7.67969 3.24414C7.67969 1.39844 6.17383 0.255859 3.95898 0.255859C2.32422 0.255859 1.05859 0.894531 0.548828 1.86719C0.396484 2.14844 0.320312 2.44727 0.320312 2.74023C0.314453 3.37305 0.742188 3.79492 1.42188 3.79492C1.91406 3.79492 2.33594 3.54883 2.53516 3.11523C2.78711 2.47656 3.23242 2.21289 3.83594 2.21289C4.55664 2.21289 5.10742 2.65234 5.10742 3.29102C5.10742 3.9707 4.7793 4.29883 3.81836 4.87891C3.02148 5.36523 2.50586 5.92773 2.50586 6.76562V6.90039C2.50586 7.55664 2.96289 7.99609 3.64258 7.99609ZM3.67188 11.4473C4.42773 11.4473 5.04297 10.8672 5.04297 10.1406C5.04297 9.41406 4.42773 8.83984 3.67188 8.83984C2.91602 8.83984 2.30664 9.41406 2.30664 10.1406C2.30664 10.8672 2.91602 11.4473 3.67188 11.4473Z",
|
|
@@ -5061,7 +5086,7 @@ var InfoButton = ({
|
|
|
5061
5086
|
onClick
|
|
5062
5087
|
}) => {
|
|
5063
5088
|
const mobile = isMobile();
|
|
5064
|
-
return /* @__PURE__ */
|
|
5089
|
+
return /* @__PURE__ */ React50.createElement(
|
|
5065
5090
|
Box,
|
|
5066
5091
|
{
|
|
5067
5092
|
alignItems: "center",
|
|
@@ -5083,18 +5108,18 @@ var InfoButton = ({
|
|
|
5083
5108
|
type: "button",
|
|
5084
5109
|
width: mobile ? "30" : "28"
|
|
5085
5110
|
},
|
|
5086
|
-
/* @__PURE__ */
|
|
5111
|
+
/* @__PURE__ */ React50.createElement(InfoIcon, null)
|
|
5087
5112
|
);
|
|
5088
5113
|
};
|
|
5089
5114
|
|
|
5090
5115
|
// src/components/ModalSelection/ModalSelection.tsx
|
|
5091
|
-
import
|
|
5116
|
+
import React51 from "react";
|
|
5092
5117
|
|
|
5093
5118
|
// src/components/RainbowKitProvider/useCoolMode.ts
|
|
5094
|
-
import { useContext as
|
|
5119
|
+
import { useContext as useContext17, useEffect as useEffect16, useRef as useRef3 } from "react";
|
|
5095
5120
|
var useCoolMode = (imageUrl) => {
|
|
5096
5121
|
const ref = useRef3(null);
|
|
5097
|
-
const coolModeEnabled =
|
|
5122
|
+
const coolModeEnabled = useContext17(CoolModeContext);
|
|
5098
5123
|
const resolvedImageUrl = useAsyncImage(imageUrl);
|
|
5099
5124
|
useEffect16(() => {
|
|
5100
5125
|
if (coolModeEnabled && ref.current && resolvedImageUrl) {
|
|
@@ -5264,10 +5289,10 @@ var ModalSelection = ({
|
|
|
5264
5289
|
...urlProps
|
|
5265
5290
|
}) => {
|
|
5266
5291
|
const coolModeRef = useCoolMode(iconUrl);
|
|
5267
|
-
const [isMouseOver, setIsMouseOver] =
|
|
5268
|
-
const { i18n: i18n2 } =
|
|
5292
|
+
const [isMouseOver, setIsMouseOver] = React51.useState(false);
|
|
5293
|
+
const { i18n: i18n2 } = React51.useContext(I18nContext);
|
|
5269
5294
|
const solanaIcon = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none'%3E%3Cpath fill='%2300FFA3' d='M1.35 5.65c.05-.05.15-.1.25-.1h5.8c.15 0 .25.15.15.3l-.9 1.05c-.05.05-.15.1-.25.1H.6c-.15 0-.25-.15-.15-.3l.9-1.05zM1.35.95c.05-.05.15-.1.25-.1h5.8c.15 0 .25.15.15.3L6.65 2.2c-.05.05-.15.1-.25.1H.6c-.15 0-.25-.15-.15-.3L1.35.95zM6.65 3.2c-.05-.05-.15-.1-.25-.1H.6c-.15 0-.25.15-.15.3l.9 1.05c.05.05.15.1.25.1h5.8c.15 0 .25-.15.15-.3L6.65 3.2z'/%3E%3C/svg%3E";
|
|
5270
|
-
return /* @__PURE__ */
|
|
5295
|
+
return /* @__PURE__ */ React51.createElement(
|
|
5271
5296
|
Box,
|
|
5272
5297
|
{
|
|
5273
5298
|
display: "flex",
|
|
@@ -5276,7 +5301,7 @@ var ModalSelection = ({
|
|
|
5276
5301
|
onMouseLeave: () => setIsMouseOver(false),
|
|
5277
5302
|
ref: coolModeRef
|
|
5278
5303
|
},
|
|
5279
|
-
/* @__PURE__ */
|
|
5304
|
+
/* @__PURE__ */ React51.createElement(
|
|
5280
5305
|
Box,
|
|
5281
5306
|
{
|
|
5282
5307
|
as,
|
|
@@ -5305,7 +5330,7 @@ var ModalSelection = ({
|
|
|
5305
5330
|
},
|
|
5306
5331
|
...urlProps
|
|
5307
5332
|
},
|
|
5308
|
-
/* @__PURE__ */
|
|
5333
|
+
/* @__PURE__ */ React51.createElement(
|
|
5309
5334
|
Box,
|
|
5310
5335
|
{
|
|
5311
5336
|
color: currentlySelected ? "accentColorForeground" : "modalText",
|
|
@@ -5315,7 +5340,7 @@ var ModalSelection = ({
|
|
|
5315
5340
|
fontWeight: "bold",
|
|
5316
5341
|
transition: "default"
|
|
5317
5342
|
},
|
|
5318
|
-
/* @__PURE__ */
|
|
5343
|
+
/* @__PURE__ */ React51.createElement(Box, { alignItems: "center", display: "flex", flexDirection: "row", gap: "12" }, /* @__PURE__ */ React51.createElement(Box, { position: "relative" }, /* @__PURE__ */ React51.createElement(
|
|
5319
5344
|
AsyncImage,
|
|
5320
5345
|
{
|
|
5321
5346
|
background: iconBackground,
|
|
@@ -5326,7 +5351,7 @@ var ModalSelection = ({
|
|
|
5326
5351
|
src: iconUrl,
|
|
5327
5352
|
width: "28"
|
|
5328
5353
|
}
|
|
5329
|
-
), chainBadge2 === "solana" && /* @__PURE__ */
|
|
5354
|
+
), chainBadge2 === "solana" && /* @__PURE__ */ React51.createElement(
|
|
5330
5355
|
Box,
|
|
5331
5356
|
{
|
|
5332
5357
|
position: "absolute",
|
|
@@ -5343,7 +5368,7 @@ var ModalSelection = ({
|
|
|
5343
5368
|
justifyContent: "center"
|
|
5344
5369
|
}
|
|
5345
5370
|
},
|
|
5346
|
-
/* @__PURE__ */
|
|
5371
|
+
/* @__PURE__ */ React51.createElement(
|
|
5347
5372
|
"img",
|
|
5348
5373
|
{
|
|
5349
5374
|
src: solanaIcon,
|
|
@@ -5354,14 +5379,14 @@ var ModalSelection = ({
|
|
|
5354
5379
|
}
|
|
5355
5380
|
}
|
|
5356
5381
|
)
|
|
5357
|
-
)), /* @__PURE__ */
|
|
5382
|
+
)), /* @__PURE__ */ React51.createElement(Box, null, /* @__PURE__ */ React51.createElement(
|
|
5358
5383
|
Box,
|
|
5359
5384
|
{
|
|
5360
5385
|
style: { marginTop: recent ? -2 : void 0 },
|
|
5361
5386
|
maxWidth: "200"
|
|
5362
5387
|
},
|
|
5363
5388
|
name
|
|
5364
|
-
), recent && /* @__PURE__ */
|
|
5389
|
+
), recent && /* @__PURE__ */ React51.createElement(
|
|
5365
5390
|
Text,
|
|
5366
5391
|
{
|
|
5367
5392
|
color: currentlySelected ? "accentColorForeground" : "accentColor",
|
|
@@ -7740,12 +7765,12 @@ function addRecentSolanaWalletId(walletName2) {
|
|
|
7740
7765
|
}
|
|
7741
7766
|
|
|
7742
7767
|
// src/components/ConnectOptions/AbcWaasLoginSection.tsx
|
|
7743
|
-
import
|
|
7768
|
+
import React54, { useState as useState15 } from "react";
|
|
7744
7769
|
|
|
7745
7770
|
// src/components/Icons/Apple.tsx
|
|
7746
|
-
import
|
|
7771
|
+
import React52 from "react";
|
|
7747
7772
|
var AppleIcon = () => {
|
|
7748
|
-
return /* @__PURE__ */
|
|
7773
|
+
return /* @__PURE__ */ React52.createElement(
|
|
7749
7774
|
"svg",
|
|
7750
7775
|
{
|
|
7751
7776
|
width: "20",
|
|
@@ -7755,15 +7780,15 @@ var AppleIcon = () => {
|
|
|
7755
7780
|
"aria-label": "Apple",
|
|
7756
7781
|
fill: "currentColor"
|
|
7757
7782
|
},
|
|
7758
|
-
/* @__PURE__ */
|
|
7759
|
-
/* @__PURE__ */
|
|
7783
|
+
/* @__PURE__ */ React52.createElement("title", null, "Apple"),
|
|
7784
|
+
/* @__PURE__ */ React52.createElement("path", { d: "M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09l.01-.01zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z" })
|
|
7760
7785
|
);
|
|
7761
7786
|
};
|
|
7762
7787
|
|
|
7763
7788
|
// src/components/Icons/Google.tsx
|
|
7764
|
-
import
|
|
7789
|
+
import React53 from "react";
|
|
7765
7790
|
var GoogleIcon = () => {
|
|
7766
|
-
return /* @__PURE__ */
|
|
7791
|
+
return /* @__PURE__ */ React53.createElement(
|
|
7767
7792
|
"svg",
|
|
7768
7793
|
{
|
|
7769
7794
|
width: "20",
|
|
@@ -7772,29 +7797,29 @@ var GoogleIcon = () => {
|
|
|
7772
7797
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7773
7798
|
"aria-label": "Google"
|
|
7774
7799
|
},
|
|
7775
|
-
/* @__PURE__ */
|
|
7776
|
-
/* @__PURE__ */
|
|
7800
|
+
/* @__PURE__ */ React53.createElement("title", null, "Google"),
|
|
7801
|
+
/* @__PURE__ */ React53.createElement(
|
|
7777
7802
|
"path",
|
|
7778
7803
|
{
|
|
7779
7804
|
fill: "#4285F4",
|
|
7780
7805
|
d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"
|
|
7781
7806
|
}
|
|
7782
7807
|
),
|
|
7783
|
-
/* @__PURE__ */
|
|
7808
|
+
/* @__PURE__ */ React53.createElement(
|
|
7784
7809
|
"path",
|
|
7785
7810
|
{
|
|
7786
7811
|
fill: "#34A853",
|
|
7787
7812
|
d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"
|
|
7788
7813
|
}
|
|
7789
7814
|
),
|
|
7790
|
-
/* @__PURE__ */
|
|
7815
|
+
/* @__PURE__ */ React53.createElement(
|
|
7791
7816
|
"path",
|
|
7792
7817
|
{
|
|
7793
7818
|
fill: "#FBBC05",
|
|
7794
7819
|
d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"
|
|
7795
7820
|
}
|
|
7796
7821
|
),
|
|
7797
|
-
/* @__PURE__ */
|
|
7822
|
+
/* @__PURE__ */ React53.createElement(
|
|
7798
7823
|
"path",
|
|
7799
7824
|
{
|
|
7800
7825
|
fill: "#EA4335",
|
|
@@ -7833,7 +7858,7 @@ function AbcWaasLoginSection({
|
|
|
7833
7858
|
onEmailSubmit(email);
|
|
7834
7859
|
}
|
|
7835
7860
|
};
|
|
7836
|
-
return /* @__PURE__ */
|
|
7861
|
+
return /* @__PURE__ */ React54.createElement(Box, { marginX: "6", marginBottom: "16" }, /* @__PURE__ */ React54.createElement("div", { className: container }, /* @__PURE__ */ React54.createElement("form", { onSubmit: handleSubmit, style: { width: "100%" } }, /* @__PURE__ */ React54.createElement("div", { className: emailFormContainer }, /* @__PURE__ */ React54.createElement(
|
|
7837
7862
|
"input",
|
|
7838
7863
|
{
|
|
7839
7864
|
type: "email",
|
|
@@ -7844,15 +7869,15 @@ function AbcWaasLoginSection({
|
|
|
7844
7869
|
required: true,
|
|
7845
7870
|
className: emailInputStyle
|
|
7846
7871
|
}
|
|
7847
|
-
), /* @__PURE__ */
|
|
7872
|
+
), /* @__PURE__ */ React54.createElement(
|
|
7848
7873
|
"button",
|
|
7849
7874
|
{
|
|
7850
7875
|
type: "submit",
|
|
7851
7876
|
disabled: !email || isLoading,
|
|
7852
7877
|
className: submitButtonStyle
|
|
7853
7878
|
},
|
|
7854
|
-
/* @__PURE__ */
|
|
7855
|
-
))), hasSocialLogin && /* @__PURE__ */
|
|
7879
|
+
/* @__PURE__ */ React54.createElement("span", { className: submitArrow }, "\u2192")
|
|
7880
|
+
))), hasSocialLogin && /* @__PURE__ */ React54.createElement(
|
|
7856
7881
|
"div",
|
|
7857
7882
|
{
|
|
7858
7883
|
className: socialButtonsContainer,
|
|
@@ -7860,31 +7885,31 @@ function AbcWaasLoginSection({
|
|
|
7860
7885
|
flexDirection: shouldShowVertical ? "column" : "row"
|
|
7861
7886
|
}
|
|
7862
7887
|
},
|
|
7863
|
-
isGoogleEnabled && /* @__PURE__ */
|
|
7888
|
+
isGoogleEnabled && /* @__PURE__ */ React54.createElement(
|
|
7864
7889
|
"button",
|
|
7865
7890
|
{
|
|
7866
7891
|
onClick: () => !isLoading && onSocialLogin("google"),
|
|
7867
7892
|
disabled: isLoading,
|
|
7868
7893
|
className: socialButtonStyle
|
|
7869
7894
|
},
|
|
7870
|
-
/* @__PURE__ */
|
|
7871
|
-
/* @__PURE__ */
|
|
7895
|
+
/* @__PURE__ */ React54.createElement(GoogleIcon, null),
|
|
7896
|
+
/* @__PURE__ */ React54.createElement("span", { className: socialButtonText }, "Continue with Google")
|
|
7872
7897
|
),
|
|
7873
|
-
isAppleEnabled && /* @__PURE__ */
|
|
7898
|
+
isAppleEnabled && /* @__PURE__ */ React54.createElement(
|
|
7874
7899
|
"button",
|
|
7875
7900
|
{
|
|
7876
7901
|
onClick: () => !isLoading && onSocialLogin("apple"),
|
|
7877
7902
|
disabled: isLoading,
|
|
7878
7903
|
className: socialButtonStyle
|
|
7879
7904
|
},
|
|
7880
|
-
/* @__PURE__ */
|
|
7881
|
-
/* @__PURE__ */
|
|
7905
|
+
/* @__PURE__ */ React54.createElement(AppleIcon, null),
|
|
7906
|
+
/* @__PURE__ */ React54.createElement("span", { className: socialButtonText }, "Continue with Apple")
|
|
7882
7907
|
)
|
|
7883
7908
|
)));
|
|
7884
7909
|
}
|
|
7885
7910
|
|
|
7886
7911
|
// src/components/ConnectOptions/ConnectDetails.tsx
|
|
7887
|
-
import
|
|
7912
|
+
import React60, { useContext as useContext18, useEffect as useEffect17 } from "react";
|
|
7888
7913
|
|
|
7889
7914
|
// src/utils/colors.ts
|
|
7890
7915
|
var convertHexToRGBA = (hexCode, opacity = 1) => {
|
|
@@ -7914,10 +7939,10 @@ var isHexString = (color) => {
|
|
|
7914
7939
|
};
|
|
7915
7940
|
|
|
7916
7941
|
// src/components/Icons/Connect.tsx
|
|
7917
|
-
import
|
|
7942
|
+
import React55 from "react";
|
|
7918
7943
|
var src3 = async () => (await import("./connect-Q2RLUT5B.js")).default;
|
|
7919
7944
|
var preloadConnectIcon = () => loadImages(src3);
|
|
7920
|
-
var ConnectIcon = () => /* @__PURE__ */
|
|
7945
|
+
var ConnectIcon = () => /* @__PURE__ */ React55.createElement(
|
|
7921
7946
|
AsyncImage,
|
|
7922
7947
|
{
|
|
7923
7948
|
background: "#515a70",
|
|
@@ -7930,10 +7955,10 @@ var ConnectIcon = () => /* @__PURE__ */ React54.createElement(
|
|
|
7930
7955
|
);
|
|
7931
7956
|
|
|
7932
7957
|
// src/components/Icons/Create.tsx
|
|
7933
|
-
import
|
|
7958
|
+
import React56 from "react";
|
|
7934
7959
|
var src4 = async () => (await import("./create-HQ4QXTKY.js")).default;
|
|
7935
7960
|
var preloadCreateIcon = () => loadImages(src4);
|
|
7936
|
-
var CreateIcon = () => /* @__PURE__ */
|
|
7961
|
+
var CreateIcon = () => /* @__PURE__ */ React56.createElement(
|
|
7937
7962
|
AsyncImage,
|
|
7938
7963
|
{
|
|
7939
7964
|
background: "#e3a5e8",
|
|
@@ -7946,10 +7971,10 @@ var CreateIcon = () => /* @__PURE__ */ React55.createElement(
|
|
|
7946
7971
|
);
|
|
7947
7972
|
|
|
7948
7973
|
// src/components/Icons/Refresh.tsx
|
|
7949
|
-
import
|
|
7974
|
+
import React57 from "react";
|
|
7950
7975
|
var src5 = async () => (await import("./refresh-R5NYTT3S.js")).default;
|
|
7951
7976
|
var preloadRefreshIcon = () => loadImages(src5);
|
|
7952
|
-
var RefreshIcon = () => /* @__PURE__ */
|
|
7977
|
+
var RefreshIcon = () => /* @__PURE__ */ React57.createElement(
|
|
7953
7978
|
AsyncImage,
|
|
7954
7979
|
{
|
|
7955
7980
|
background: "#515a70",
|
|
@@ -7962,10 +7987,10 @@ var RefreshIcon = () => /* @__PURE__ */ React56.createElement(
|
|
|
7962
7987
|
);
|
|
7963
7988
|
|
|
7964
7989
|
// src/components/Icons/Scan.tsx
|
|
7965
|
-
import
|
|
7990
|
+
import React58 from "react";
|
|
7966
7991
|
var src6 = async () => (await import("./scan-BVZ7DVJ4.js")).default;
|
|
7967
7992
|
var preloadScanIcon = () => loadImages(src6);
|
|
7968
|
-
var ScanIcon = () => /* @__PURE__ */
|
|
7993
|
+
var ScanIcon = () => /* @__PURE__ */ React58.createElement(
|
|
7969
7994
|
AsyncImage,
|
|
7970
7995
|
{
|
|
7971
7996
|
background: "#515a70",
|
|
@@ -7979,7 +8004,7 @@ var ScanIcon = () => /* @__PURE__ */ React57.createElement(
|
|
|
7979
8004
|
|
|
7980
8005
|
// src/components/QRCode/QRCode.tsx
|
|
7981
8006
|
import QRCodeUtil from "qrcode";
|
|
7982
|
-
import
|
|
8007
|
+
import React59, { useMemo as useMemo9 } from "react";
|
|
7983
8008
|
|
|
7984
8009
|
// src/components/ConnectOptions/DesktopOptions.css.ts
|
|
7985
8010
|
var QRCodeBackgroundClassName = "_199jmco0";
|
|
@@ -8024,7 +8049,7 @@ function QRCode({
|
|
|
8024
8049
|
const y1 = (matrix.length - 7) * cellSize * y;
|
|
8025
8050
|
for (let i = 0; i < 3; i++) {
|
|
8026
8051
|
dots2.push(
|
|
8027
|
-
/* @__PURE__ */
|
|
8052
|
+
/* @__PURE__ */ React59.createElement(
|
|
8028
8053
|
"rect",
|
|
8029
8054
|
{
|
|
8030
8055
|
fill: i % 2 !== 0 ? "white" : "black",
|
|
@@ -8049,7 +8074,7 @@ function QRCode({
|
|
|
8049
8074
|
if (!(i < 7 && j < 7 || i > matrix.length - 8 && j < 7 || i < 7 && j > matrix.length - 8)) {
|
|
8050
8075
|
if (!(i > matrixMiddleStart && i < matrixMiddleEnd && j > matrixMiddleStart && j < matrixMiddleEnd)) {
|
|
8051
8076
|
dots2.push(
|
|
8052
|
-
/* @__PURE__ */
|
|
8077
|
+
/* @__PURE__ */ React59.createElement(
|
|
8053
8078
|
"circle",
|
|
8054
8079
|
{
|
|
8055
8080
|
cx: i * cellSize + cellSize / 2,
|
|
@@ -8069,7 +8094,7 @@ function QRCode({
|
|
|
8069
8094
|
}, [ecl, logoSize, size, uri]);
|
|
8070
8095
|
const logoPosition = size / 2 - logoSize / 2;
|
|
8071
8096
|
const logoWrapperSize = logoSize + logoMargin * 2;
|
|
8072
|
-
return /* @__PURE__ */
|
|
8097
|
+
return /* @__PURE__ */ React59.createElement(
|
|
8073
8098
|
Box,
|
|
8074
8099
|
{
|
|
8075
8100
|
borderColor: "generalBorder",
|
|
@@ -8080,7 +8105,7 @@ function QRCode({
|
|
|
8080
8105
|
padding,
|
|
8081
8106
|
width: "max"
|
|
8082
8107
|
},
|
|
8083
|
-
/* @__PURE__ */
|
|
8108
|
+
/* @__PURE__ */ React59.createElement(
|
|
8084
8109
|
Box,
|
|
8085
8110
|
{
|
|
8086
8111
|
style: {
|
|
@@ -8090,7 +8115,7 @@ function QRCode({
|
|
|
8090
8115
|
},
|
|
8091
8116
|
userSelect: "none"
|
|
8092
8117
|
},
|
|
8093
|
-
/* @__PURE__ */
|
|
8118
|
+
/* @__PURE__ */ React59.createElement(
|
|
8094
8119
|
Box,
|
|
8095
8120
|
{
|
|
8096
8121
|
display: "flex",
|
|
@@ -8103,7 +8128,7 @@ function QRCode({
|
|
|
8103
8128
|
},
|
|
8104
8129
|
width: "full"
|
|
8105
8130
|
},
|
|
8106
|
-
/* @__PURE__ */
|
|
8131
|
+
/* @__PURE__ */ React59.createElement(
|
|
8107
8132
|
AsyncImage,
|
|
8108
8133
|
{
|
|
8109
8134
|
background: logoBackground,
|
|
@@ -8115,7 +8140,7 @@ function QRCode({
|
|
|
8115
8140
|
}
|
|
8116
8141
|
)
|
|
8117
8142
|
),
|
|
8118
|
-
/* @__PURE__ */
|
|
8143
|
+
/* @__PURE__ */ React59.createElement("svg", { height: size, style: { all: "revert" }, width: size }, /* @__PURE__ */ React59.createElement("title", null, "QR Code"), /* @__PURE__ */ React59.createElement("defs", null, /* @__PURE__ */ React59.createElement("clipPath", { id: "clip-wrapper" }, /* @__PURE__ */ React59.createElement("rect", { height: logoWrapperSize, width: logoWrapperSize })), /* @__PURE__ */ React59.createElement("clipPath", { id: "clip-logo" }, /* @__PURE__ */ React59.createElement("rect", { height: logoSize, width: logoSize }))), /* @__PURE__ */ React59.createElement("rect", { fill: "transparent", height: size, width: size }), dots)
|
|
8119
8144
|
)
|
|
8120
8145
|
);
|
|
8121
8146
|
}
|
|
@@ -8165,8 +8190,8 @@ function GetDetail({
|
|
|
8165
8190
|
(wallet) => wallet.isRainbowKitConnector
|
|
8166
8191
|
);
|
|
8167
8192
|
const shownWallets = wallets.splice(0, 5);
|
|
8168
|
-
const { i18n: i18n2 } =
|
|
8169
|
-
return /* @__PURE__ */
|
|
8193
|
+
const { i18n: i18n2 } = useContext18(I18nContext);
|
|
8194
|
+
return /* @__PURE__ */ React60.createElement(
|
|
8170
8195
|
Box,
|
|
8171
8196
|
{
|
|
8172
8197
|
alignItems: "center",
|
|
@@ -8176,7 +8201,7 @@ function GetDetail({
|
|
|
8176
8201
|
marginTop: "18",
|
|
8177
8202
|
width: "full"
|
|
8178
8203
|
},
|
|
8179
|
-
/* @__PURE__ */
|
|
8204
|
+
/* @__PURE__ */ React60.createElement(
|
|
8180
8205
|
Box,
|
|
8181
8206
|
{
|
|
8182
8207
|
alignItems: "center",
|
|
@@ -8194,7 +8219,7 @@ function GetDetail({
|
|
|
8194
8219
|
const hasExtension = !!wallet.extensionDownloadUrl;
|
|
8195
8220
|
const hasMobileAndExtension = downloadUrls?.qrCode && hasExtension;
|
|
8196
8221
|
const hasMobileAndDesktop = downloadUrls?.qrCode && !!wallet.desktopDownloadUrl;
|
|
8197
|
-
return /* @__PURE__ */
|
|
8222
|
+
return /* @__PURE__ */ React60.createElement(
|
|
8198
8223
|
Box,
|
|
8199
8224
|
{
|
|
8200
8225
|
alignItems: "center",
|
|
@@ -8204,7 +8229,7 @@ function GetDetail({
|
|
|
8204
8229
|
key: wallet.id,
|
|
8205
8230
|
width: "full"
|
|
8206
8231
|
},
|
|
8207
|
-
/* @__PURE__ */
|
|
8232
|
+
/* @__PURE__ */ React60.createElement(
|
|
8208
8233
|
Box,
|
|
8209
8234
|
{
|
|
8210
8235
|
alignItems: "center",
|
|
@@ -8212,7 +8237,7 @@ function GetDetail({
|
|
|
8212
8237
|
flexDirection: "row",
|
|
8213
8238
|
gap: "16"
|
|
8214
8239
|
},
|
|
8215
|
-
/* @__PURE__ */
|
|
8240
|
+
/* @__PURE__ */ React60.createElement(
|
|
8216
8241
|
AsyncImage,
|
|
8217
8242
|
{
|
|
8218
8243
|
background: iconBackground,
|
|
@@ -8223,9 +8248,9 @@ function GetDetail({
|
|
|
8223
8248
|
width: "48"
|
|
8224
8249
|
}
|
|
8225
8250
|
),
|
|
8226
|
-
/* @__PURE__ */
|
|
8251
|
+
/* @__PURE__ */ React60.createElement(Box, { display: "flex", flexDirection: "column", gap: "2" }, /* @__PURE__ */ React60.createElement(Text, { color: "modalText", size: "14", weight: "bold" }, name), /* @__PURE__ */ React60.createElement(Text, { color: "modalTextSecondary", size: "14", weight: "medium" }, hasMobileAndExtension ? i18n2.t("get.mobile_and_extension.description") : hasMobileAndDesktop ? i18n2.t("get.mobile_and_desktop.description") : hasMobileCompanionApp ? i18n2.t("get.mobile.description") : hasExtension ? i18n2.t("get.extension.description") : null))
|
|
8227
8252
|
),
|
|
8228
|
-
/* @__PURE__ */
|
|
8253
|
+
/* @__PURE__ */ React60.createElement(Box, { display: "flex", flexDirection: "column", gap: "4" }, /* @__PURE__ */ React60.createElement(
|
|
8229
8254
|
ActionButton,
|
|
8230
8255
|
{
|
|
8231
8256
|
label: i18n2.t("get.action.label"),
|
|
@@ -8236,7 +8261,7 @@ function GetDetail({
|
|
|
8236
8261
|
);
|
|
8237
8262
|
})
|
|
8238
8263
|
),
|
|
8239
|
-
/* @__PURE__ */
|
|
8264
|
+
/* @__PURE__ */ React60.createElement(
|
|
8240
8265
|
Box,
|
|
8241
8266
|
{
|
|
8242
8267
|
alignItems: "center",
|
|
@@ -8249,8 +8274,8 @@ function GetDetail({
|
|
|
8249
8274
|
paddingY: "8",
|
|
8250
8275
|
style: { maxWidth: 275, textAlign: "center" }
|
|
8251
8276
|
},
|
|
8252
|
-
/* @__PURE__ */
|
|
8253
|
-
/* @__PURE__ */
|
|
8277
|
+
/* @__PURE__ */ React60.createElement(Text, { color: "modalText", size: "14", weight: "bold" }, i18n2.t("get.looking_for.title")),
|
|
8278
|
+
/* @__PURE__ */ React60.createElement(Text, { color: "modalTextSecondary", size: "14", weight: "medium" }, compactModeEnabled ? i18n2.t("get.looking_for.desktop.compact_description") : i18n2.t("get.looking_for.desktop.wide_description"))
|
|
8254
8279
|
)
|
|
8255
8280
|
);
|
|
8256
8281
|
}
|
|
@@ -8276,7 +8301,7 @@ function ConnectDetail({
|
|
|
8276
8301
|
} = wallet;
|
|
8277
8302
|
const isDesktopDeepLinkAvailable = !!getDesktopUri;
|
|
8278
8303
|
const safari = isSafari();
|
|
8279
|
-
const { i18n: i18n2 } =
|
|
8304
|
+
const { i18n: i18n2 } = useContext18(I18nContext);
|
|
8280
8305
|
const hasExtension = !!wallet.extensionDownloadUrl;
|
|
8281
8306
|
const hasQrCodeAndExtension = downloadUrls?.qrCode && hasExtension;
|
|
8282
8307
|
const hasQrCodeAndDesktop = downloadUrls?.qrCode && !!wallet.desktopDownloadUrl;
|
|
@@ -8307,7 +8332,7 @@ function ConnectDetail({
|
|
|
8307
8332
|
preloadBrowserIcon();
|
|
8308
8333
|
preloadPlatformIcon();
|
|
8309
8334
|
}, []);
|
|
8310
|
-
return /* @__PURE__ */
|
|
8335
|
+
return /* @__PURE__ */ React60.createElement(Box, { display: "flex", flexDirection: "column", height: "full", width: "full" }, hasQrCode ? /* @__PURE__ */ React60.createElement(
|
|
8311
8336
|
Box,
|
|
8312
8337
|
{
|
|
8313
8338
|
alignItems: "center",
|
|
@@ -8315,7 +8340,7 @@ function ConnectDetail({
|
|
|
8315
8340
|
height: "full",
|
|
8316
8341
|
justifyContent: "center"
|
|
8317
8342
|
},
|
|
8318
|
-
/* @__PURE__ */
|
|
8343
|
+
/* @__PURE__ */ React60.createElement(
|
|
8319
8344
|
QRCode,
|
|
8320
8345
|
{
|
|
8321
8346
|
logoBackground: iconBackground,
|
|
@@ -8325,7 +8350,7 @@ function ConnectDetail({
|
|
|
8325
8350
|
uri: qrCodeUri
|
|
8326
8351
|
}
|
|
8327
8352
|
)
|
|
8328
|
-
) : /* @__PURE__ */
|
|
8353
|
+
) : /* @__PURE__ */ React60.createElement(
|
|
8329
8354
|
Box,
|
|
8330
8355
|
{
|
|
8331
8356
|
alignItems: "center",
|
|
@@ -8333,7 +8358,7 @@ function ConnectDetail({
|
|
|
8333
8358
|
justifyContent: "center",
|
|
8334
8359
|
style: { flexGrow: 1 }
|
|
8335
8360
|
},
|
|
8336
|
-
/* @__PURE__ */
|
|
8361
|
+
/* @__PURE__ */ React60.createElement(
|
|
8337
8362
|
Box,
|
|
8338
8363
|
{
|
|
8339
8364
|
alignItems: "center",
|
|
@@ -8341,7 +8366,7 @@ function ConnectDetail({
|
|
|
8341
8366
|
flexDirection: "column",
|
|
8342
8367
|
gap: "8"
|
|
8343
8368
|
},
|
|
8344
|
-
/* @__PURE__ */
|
|
8369
|
+
/* @__PURE__ */ React60.createElement(Box, { borderRadius: "10", height: LOGO_SIZE, overflow: "hidden" }, /* @__PURE__ */ React60.createElement(
|
|
8345
8370
|
AsyncImage,
|
|
8346
8371
|
{
|
|
8347
8372
|
useAsImage: !wallet.isRainbowKitConnector,
|
|
@@ -8350,7 +8375,7 @@ function ConnectDetail({
|
|
|
8350
8375
|
width: LOGO_SIZE
|
|
8351
8376
|
}
|
|
8352
8377
|
)),
|
|
8353
|
-
/* @__PURE__ */
|
|
8378
|
+
/* @__PURE__ */ React60.createElement(
|
|
8354
8379
|
Box,
|
|
8355
8380
|
{
|
|
8356
8381
|
alignItems: "center",
|
|
@@ -8360,14 +8385,14 @@ function ConnectDetail({
|
|
|
8360
8385
|
paddingX: "32",
|
|
8361
8386
|
style: { textAlign: "center" }
|
|
8362
8387
|
},
|
|
8363
|
-
/* @__PURE__ */
|
|
8388
|
+
/* @__PURE__ */ React60.createElement(Text, { color: "modalText", size: "18", weight: "bold" }, ready ? i18n2.t("connect.status.opening", {
|
|
8364
8389
|
wallet: name
|
|
8365
8390
|
}) : hasExtension ? i18n2.t("connect.status.not_installed", {
|
|
8366
8391
|
wallet: name
|
|
8367
8392
|
}) : i18n2.t("connect.status.not_available", {
|
|
8368
8393
|
wallet: name
|
|
8369
8394
|
})),
|
|
8370
|
-
!ready && hasExtension ? /* @__PURE__ */
|
|
8395
|
+
!ready && hasExtension ? /* @__PURE__ */ React60.createElement(Box, { paddingTop: "20" }, /* @__PURE__ */ React60.createElement(
|
|
8371
8396
|
ActionButton,
|
|
8372
8397
|
{
|
|
8373
8398
|
href: wallet.extensionDownloadUrl,
|
|
@@ -8375,7 +8400,7 @@ function ConnectDetail({
|
|
|
8375
8400
|
type: "secondary"
|
|
8376
8401
|
}
|
|
8377
8402
|
)) : null,
|
|
8378
|
-
ready && !hasQrCode && /* @__PURE__ */
|
|
8403
|
+
ready && !hasQrCode && /* @__PURE__ */ React60.createElement(React60.Fragment, null, /* @__PURE__ */ React60.createElement(
|
|
8379
8404
|
Box,
|
|
8380
8405
|
{
|
|
8381
8406
|
alignItems: "center",
|
|
@@ -8383,7 +8408,7 @@ function ConnectDetail({
|
|
|
8383
8408
|
flexDirection: "column",
|
|
8384
8409
|
justifyContent: "center"
|
|
8385
8410
|
},
|
|
8386
|
-
/* @__PURE__ */
|
|
8411
|
+
/* @__PURE__ */ React60.createElement(
|
|
8387
8412
|
Text,
|
|
8388
8413
|
{
|
|
8389
8414
|
color: "modalTextSecondary",
|
|
@@ -8393,7 +8418,7 @@ function ConnectDetail({
|
|
|
8393
8418
|
},
|
|
8394
8419
|
i18n2.t("connect.status.confirm")
|
|
8395
8420
|
)
|
|
8396
|
-
), /* @__PURE__ */
|
|
8421
|
+
), /* @__PURE__ */ React60.createElement(
|
|
8397
8422
|
Box,
|
|
8398
8423
|
{
|
|
8399
8424
|
alignItems: "center",
|
|
@@ -8403,7 +8428,7 @@ function ConnectDetail({
|
|
|
8403
8428
|
height: "32",
|
|
8404
8429
|
marginTop: "8"
|
|
8405
8430
|
},
|
|
8406
|
-
connectionError ? /* @__PURE__ */
|
|
8431
|
+
connectionError ? /* @__PURE__ */ React60.createElement(
|
|
8407
8432
|
ActionButton,
|
|
8408
8433
|
{
|
|
8409
8434
|
label: i18n2.t("connect.secondary_action.retry.label"),
|
|
@@ -8413,11 +8438,11 @@ function ConnectDetail({
|
|
|
8413
8438
|
reconnect(wallet);
|
|
8414
8439
|
}
|
|
8415
8440
|
}
|
|
8416
|
-
) : /* @__PURE__ */
|
|
8441
|
+
) : /* @__PURE__ */ React60.createElement(Box, { color: "modalTextSecondary" }, /* @__PURE__ */ React60.createElement(SpinnerIcon, null))
|
|
8417
8442
|
))
|
|
8418
8443
|
)
|
|
8419
8444
|
)
|
|
8420
|
-
), /* @__PURE__ */
|
|
8445
|
+
), /* @__PURE__ */ React60.createElement(
|
|
8421
8446
|
Box,
|
|
8422
8447
|
{
|
|
8423
8448
|
alignItems: "center",
|
|
@@ -8429,7 +8454,7 @@ function ConnectDetail({
|
|
|
8429
8454
|
justifyContent: "space-between",
|
|
8430
8455
|
marginTop: "12"
|
|
8431
8456
|
},
|
|
8432
|
-
ready && secondaryAction && /* @__PURE__ */
|
|
8457
|
+
ready && secondaryAction && /* @__PURE__ */ React60.createElement(React60.Fragment, null, /* @__PURE__ */ React60.createElement(Text, { color: "modalTextSecondary", size: "14", weight: "medium" }, secondaryAction.description), /* @__PURE__ */ React60.createElement(
|
|
8433
8458
|
ActionButton,
|
|
8434
8459
|
{
|
|
8435
8460
|
label: secondaryAction.label,
|
|
@@ -8453,7 +8478,7 @@ var DownloadOptionsBox = ({
|
|
|
8453
8478
|
}) => {
|
|
8454
8479
|
const isBrowserCard = variant === "browser";
|
|
8455
8480
|
const gradientRgbas = !isBrowserCard && iconAccent && getGradientRGBAs(iconAccent);
|
|
8456
|
-
return /* @__PURE__ */
|
|
8481
|
+
return /* @__PURE__ */ React60.createElement(
|
|
8457
8482
|
Box,
|
|
8458
8483
|
{
|
|
8459
8484
|
alignItems: "center",
|
|
@@ -8466,7 +8491,7 @@ var DownloadOptionsBox = ({
|
|
|
8466
8491
|
style: { flex: 1, isolation: "isolate" },
|
|
8467
8492
|
width: "full"
|
|
8468
8493
|
},
|
|
8469
|
-
/* @__PURE__ */
|
|
8494
|
+
/* @__PURE__ */ React60.createElement(
|
|
8470
8495
|
Box,
|
|
8471
8496
|
{
|
|
8472
8497
|
borderColor: "actionButtonBorder",
|
|
@@ -8483,7 +8508,7 @@ var DownloadOptionsBox = ({
|
|
|
8483
8508
|
}
|
|
8484
8509
|
}
|
|
8485
8510
|
),
|
|
8486
|
-
isBrowserCard && /* @__PURE__ */
|
|
8511
|
+
isBrowserCard && /* @__PURE__ */ React60.createElement(
|
|
8487
8512
|
Box,
|
|
8488
8513
|
{
|
|
8489
8514
|
background: "downloadTopCardBackground",
|
|
@@ -8494,7 +8519,7 @@ var DownloadOptionsBox = ({
|
|
|
8494
8519
|
},
|
|
8495
8520
|
width: "full"
|
|
8496
8521
|
},
|
|
8497
|
-
/* @__PURE__ */
|
|
8522
|
+
/* @__PURE__ */ React60.createElement(
|
|
8498
8523
|
Box,
|
|
8499
8524
|
{
|
|
8500
8525
|
display: "flex",
|
|
@@ -8510,7 +8535,7 @@ var DownloadOptionsBox = ({
|
|
|
8510
8535
|
transform: "translate3d(0, 0, 0)"
|
|
8511
8536
|
}
|
|
8512
8537
|
},
|
|
8513
|
-
/* @__PURE__ */
|
|
8538
|
+
/* @__PURE__ */ React60.createElement(
|
|
8514
8539
|
Box,
|
|
8515
8540
|
{
|
|
8516
8541
|
style: {
|
|
@@ -8521,7 +8546,7 @@ var DownloadOptionsBox = ({
|
|
|
8521
8546
|
transform: "translate3d(0, 0, 0)"
|
|
8522
8547
|
}
|
|
8523
8548
|
},
|
|
8524
|
-
/* @__PURE__ */
|
|
8549
|
+
/* @__PURE__ */ React60.createElement(
|
|
8525
8550
|
AsyncImage,
|
|
8526
8551
|
{
|
|
8527
8552
|
borderRadius: "full",
|
|
@@ -8531,7 +8556,7 @@ var DownloadOptionsBox = ({
|
|
|
8531
8556
|
}
|
|
8532
8557
|
)
|
|
8533
8558
|
),
|
|
8534
|
-
/* @__PURE__ */
|
|
8559
|
+
/* @__PURE__ */ React60.createElement(
|
|
8535
8560
|
Box,
|
|
8536
8561
|
{
|
|
8537
8562
|
style: {
|
|
@@ -8543,7 +8568,7 @@ var DownloadOptionsBox = ({
|
|
|
8543
8568
|
transform: "translate3d(0, 0, 0)"
|
|
8544
8569
|
}
|
|
8545
8570
|
},
|
|
8546
|
-
/* @__PURE__ */
|
|
8571
|
+
/* @__PURE__ */ React60.createElement(
|
|
8547
8572
|
AsyncImage,
|
|
8548
8573
|
{
|
|
8549
8574
|
borderRadius: "full",
|
|
@@ -8555,7 +8580,7 @@ var DownloadOptionsBox = ({
|
|
|
8555
8580
|
)
|
|
8556
8581
|
)
|
|
8557
8582
|
),
|
|
8558
|
-
!isBrowserCard && gradientRgbas && /* @__PURE__ */
|
|
8583
|
+
!isBrowserCard && gradientRgbas && /* @__PURE__ */ React60.createElement(
|
|
8559
8584
|
Box,
|
|
8560
8585
|
{
|
|
8561
8586
|
background: "downloadBottomCardBackground",
|
|
@@ -8567,7 +8592,7 @@ var DownloadOptionsBox = ({
|
|
|
8567
8592
|
top: "0"
|
|
8568
8593
|
}
|
|
8569
8594
|
},
|
|
8570
|
-
/* @__PURE__ */
|
|
8595
|
+
/* @__PURE__ */ React60.createElement(
|
|
8571
8596
|
Box,
|
|
8572
8597
|
{
|
|
8573
8598
|
position: "absolute",
|
|
@@ -8581,7 +8606,7 @@ var DownloadOptionsBox = ({
|
|
|
8581
8606
|
}
|
|
8582
8607
|
}
|
|
8583
8608
|
),
|
|
8584
|
-
/* @__PURE__ */
|
|
8609
|
+
/* @__PURE__ */ React60.createElement(
|
|
8585
8610
|
Box,
|
|
8586
8611
|
{
|
|
8587
8612
|
position: "absolute",
|
|
@@ -8596,7 +8621,7 @@ var DownloadOptionsBox = ({
|
|
|
8596
8621
|
}
|
|
8597
8622
|
)
|
|
8598
8623
|
),
|
|
8599
|
-
/* @__PURE__ */
|
|
8624
|
+
/* @__PURE__ */ React60.createElement(
|
|
8600
8625
|
Box,
|
|
8601
8626
|
{
|
|
8602
8627
|
alignItems: "flex-start",
|
|
@@ -8607,7 +8632,7 @@ var DownloadOptionsBox = ({
|
|
|
8607
8632
|
justifyContent: "center",
|
|
8608
8633
|
style: { zIndex: 1 }
|
|
8609
8634
|
},
|
|
8610
|
-
/* @__PURE__ */
|
|
8635
|
+
/* @__PURE__ */ React60.createElement(Box, null, /* @__PURE__ */ React60.createElement(
|
|
8611
8636
|
AsyncImage,
|
|
8612
8637
|
{
|
|
8613
8638
|
height: "60",
|
|
@@ -8620,7 +8645,7 @@ var DownloadOptionsBox = ({
|
|
|
8620
8645
|
} : null
|
|
8621
8646
|
}
|
|
8622
8647
|
)),
|
|
8623
|
-
/* @__PURE__ */
|
|
8648
|
+
/* @__PURE__ */ React60.createElement(
|
|
8624
8649
|
Box,
|
|
8625
8650
|
{
|
|
8626
8651
|
display: "flex",
|
|
@@ -8629,9 +8654,9 @@ var DownloadOptionsBox = ({
|
|
|
8629
8654
|
style: { flex: 1 },
|
|
8630
8655
|
width: "full"
|
|
8631
8656
|
},
|
|
8632
|
-
/* @__PURE__ */
|
|
8633
|
-
/* @__PURE__ */
|
|
8634
|
-
/* @__PURE__ */
|
|
8657
|
+
/* @__PURE__ */ React60.createElement(Text, { color: "modalText", size: "14", weight: "bold" }, title3),
|
|
8658
|
+
/* @__PURE__ */ React60.createElement(Text, { color: "modalTextSecondary", size: "14", weight: "medium" }, description),
|
|
8659
|
+
/* @__PURE__ */ React60.createElement(Box, { marginTop: "14", width: "max" }, /* @__PURE__ */ React60.createElement(
|
|
8635
8660
|
ActionButton,
|
|
8636
8661
|
{
|
|
8637
8662
|
href: url,
|
|
@@ -8650,7 +8675,7 @@ function DownloadOptionsDetail({
|
|
|
8650
8675
|
}) {
|
|
8651
8676
|
const browser = getBrowser();
|
|
8652
8677
|
const platform = getPlatform();
|
|
8653
|
-
const modalSize =
|
|
8678
|
+
const modalSize = useContext18(ModalSizeContext);
|
|
8654
8679
|
const isCompact = modalSize === "compact";
|
|
8655
8680
|
const {
|
|
8656
8681
|
desktop,
|
|
@@ -8659,14 +8684,14 @@ function DownloadOptionsDetail({
|
|
|
8659
8684
|
extensionDownloadUrl,
|
|
8660
8685
|
mobileDownloadUrl
|
|
8661
8686
|
} = wallet;
|
|
8662
|
-
const { i18n: i18n2 } =
|
|
8687
|
+
const { i18n: i18n2 } = useContext18(I18nContext);
|
|
8663
8688
|
useEffect17(() => {
|
|
8664
8689
|
preloadCreateIcon();
|
|
8665
8690
|
preloadScanIcon();
|
|
8666
8691
|
preloadRefreshIcon();
|
|
8667
8692
|
preloadConnectIcon();
|
|
8668
8693
|
}, []);
|
|
8669
|
-
return /* @__PURE__ */
|
|
8694
|
+
return /* @__PURE__ */ React60.createElement(
|
|
8670
8695
|
Box,
|
|
8671
8696
|
{
|
|
8672
8697
|
alignItems: "center",
|
|
@@ -8678,7 +8703,7 @@ function DownloadOptionsDetail({
|
|
|
8678
8703
|
marginTop: "4",
|
|
8679
8704
|
width: "full"
|
|
8680
8705
|
},
|
|
8681
|
-
/* @__PURE__ */
|
|
8706
|
+
/* @__PURE__ */ React60.createElement(
|
|
8682
8707
|
Box,
|
|
8683
8708
|
{
|
|
8684
8709
|
alignItems: "center",
|
|
@@ -8689,7 +8714,7 @@ function DownloadOptionsDetail({
|
|
|
8689
8714
|
justifyContent: "center",
|
|
8690
8715
|
width: "full"
|
|
8691
8716
|
},
|
|
8692
|
-
extensionDownloadUrl && /* @__PURE__ */
|
|
8717
|
+
extensionDownloadUrl && /* @__PURE__ */ React60.createElement(
|
|
8693
8718
|
DownloadOptionsBox,
|
|
8694
8719
|
{
|
|
8695
8720
|
actionLabel: i18n2.t("get_options.extension.download.label", {
|
|
@@ -8709,7 +8734,7 @@ function DownloadOptionsDetail({
|
|
|
8709
8734
|
variant: "browser"
|
|
8710
8735
|
}
|
|
8711
8736
|
),
|
|
8712
|
-
desktopDownloadUrl && /* @__PURE__ */
|
|
8737
|
+
desktopDownloadUrl && /* @__PURE__ */ React60.createElement(
|
|
8713
8738
|
DownloadOptionsBox,
|
|
8714
8739
|
{
|
|
8715
8740
|
actionLabel: i18n2.t("get_options.desktop.download.label", {
|
|
@@ -8729,7 +8754,7 @@ function DownloadOptionsDetail({
|
|
|
8729
8754
|
variant: "desktop"
|
|
8730
8755
|
}
|
|
8731
8756
|
),
|
|
8732
|
-
mobileDownloadUrl && /* @__PURE__ */
|
|
8757
|
+
mobileDownloadUrl && /* @__PURE__ */ React60.createElement(
|
|
8733
8758
|
DownloadOptionsBox,
|
|
8734
8759
|
{
|
|
8735
8760
|
actionLabel: i18n2.t("get_options.mobile.download.label", {
|
|
@@ -8755,12 +8780,12 @@ function DownloadDetail({
|
|
|
8755
8780
|
wallet
|
|
8756
8781
|
}) {
|
|
8757
8782
|
const { downloadUrls, qrCode } = wallet;
|
|
8758
|
-
const { i18n: i18n2 } =
|
|
8783
|
+
const { i18n: i18n2 } = useContext18(I18nContext);
|
|
8759
8784
|
useEffect17(() => {
|
|
8760
8785
|
preloadCreateIcon();
|
|
8761
8786
|
preloadScanIcon();
|
|
8762
8787
|
}, []);
|
|
8763
|
-
return /* @__PURE__ */
|
|
8788
|
+
return /* @__PURE__ */ React60.createElement(
|
|
8764
8789
|
Box,
|
|
8765
8790
|
{
|
|
8766
8791
|
alignItems: "center",
|
|
@@ -8770,9 +8795,9 @@ function DownloadDetail({
|
|
|
8770
8795
|
height: "full",
|
|
8771
8796
|
width: "full"
|
|
8772
8797
|
},
|
|
8773
|
-
/* @__PURE__ */
|
|
8774
|
-
/* @__PURE__ */
|
|
8775
|
-
/* @__PURE__ */
|
|
8798
|
+
/* @__PURE__ */ React60.createElement(Box, { style: { maxWidth: 220, textAlign: "center" } }, /* @__PURE__ */ React60.createElement(Text, { color: "modalTextSecondary", size: "14", weight: "semibold" }, i18n2.t("get_mobile.description"))),
|
|
8799
|
+
/* @__PURE__ */ React60.createElement(Box, { height: "full" }, downloadUrls?.qrCode ? /* @__PURE__ */ React60.createElement(QRCode, { logoSize: 0, size: 268, uri: downloadUrls.qrCode }) : null),
|
|
8800
|
+
/* @__PURE__ */ React60.createElement(
|
|
8776
8801
|
Box,
|
|
8777
8802
|
{
|
|
8778
8803
|
alignItems: "center",
|
|
@@ -8785,7 +8810,7 @@ function DownloadDetail({
|
|
|
8785
8810
|
marginBottom: "12",
|
|
8786
8811
|
paddingY: "8"
|
|
8787
8812
|
},
|
|
8788
|
-
/* @__PURE__ */
|
|
8813
|
+
/* @__PURE__ */ React60.createElement(
|
|
8789
8814
|
ActionButton,
|
|
8790
8815
|
{
|
|
8791
8816
|
label: i18n2.t("get_mobile.continue.label"),
|
|
@@ -8798,9 +8823,9 @@ function DownloadDetail({
|
|
|
8798
8823
|
);
|
|
8799
8824
|
}
|
|
8800
8825
|
var stepIcons = {
|
|
8801
|
-
connect: () => /* @__PURE__ */
|
|
8802
|
-
create: () => /* @__PURE__ */
|
|
8803
|
-
install: (wallet) => /* @__PURE__ */
|
|
8826
|
+
connect: () => /* @__PURE__ */ React60.createElement(ConnectIcon, null),
|
|
8827
|
+
create: () => /* @__PURE__ */ React60.createElement(CreateIcon, null),
|
|
8828
|
+
install: (wallet) => /* @__PURE__ */ React60.createElement(
|
|
8804
8829
|
AsyncImage,
|
|
8805
8830
|
{
|
|
8806
8831
|
background: wallet.iconBackground,
|
|
@@ -8811,15 +8836,15 @@ var stepIcons = {
|
|
|
8811
8836
|
width: "48"
|
|
8812
8837
|
}
|
|
8813
8838
|
),
|
|
8814
|
-
refresh: () => /* @__PURE__ */
|
|
8815
|
-
scan: () => /* @__PURE__ */
|
|
8839
|
+
refresh: () => /* @__PURE__ */ React60.createElement(RefreshIcon, null),
|
|
8840
|
+
scan: () => /* @__PURE__ */ React60.createElement(ScanIcon, null)
|
|
8816
8841
|
};
|
|
8817
8842
|
function InstructionMobileDetail({
|
|
8818
8843
|
connectWallet,
|
|
8819
8844
|
wallet
|
|
8820
8845
|
}) {
|
|
8821
|
-
const { i18n: i18n2 } =
|
|
8822
|
-
return /* @__PURE__ */
|
|
8846
|
+
const { i18n: i18n2 } = useContext18(I18nContext);
|
|
8847
|
+
return /* @__PURE__ */ React60.createElement(
|
|
8823
8848
|
Box,
|
|
8824
8849
|
{
|
|
8825
8850
|
alignItems: "center",
|
|
@@ -8828,7 +8853,7 @@ function InstructionMobileDetail({
|
|
|
8828
8853
|
height: "full",
|
|
8829
8854
|
width: "full"
|
|
8830
8855
|
},
|
|
8831
|
-
/* @__PURE__ */
|
|
8856
|
+
/* @__PURE__ */ React60.createElement(
|
|
8832
8857
|
Box,
|
|
8833
8858
|
{
|
|
8834
8859
|
display: "flex",
|
|
@@ -8839,7 +8864,7 @@ function InstructionMobileDetail({
|
|
|
8839
8864
|
paddingY: "32",
|
|
8840
8865
|
style: { maxWidth: 320 }
|
|
8841
8866
|
},
|
|
8842
|
-
wallet?.qrCode?.instructions?.steps.map((d, idx) => /* @__PURE__ */
|
|
8867
|
+
wallet?.qrCode?.instructions?.steps.map((d, idx) => /* @__PURE__ */ React60.createElement(
|
|
8843
8868
|
Box,
|
|
8844
8869
|
{
|
|
8845
8870
|
alignItems: "center",
|
|
@@ -8848,7 +8873,7 @@ function InstructionMobileDetail({
|
|
|
8848
8873
|
gap: "16",
|
|
8849
8874
|
key: idx
|
|
8850
8875
|
},
|
|
8851
|
-
/* @__PURE__ */
|
|
8876
|
+
/* @__PURE__ */ React60.createElement(
|
|
8852
8877
|
Box,
|
|
8853
8878
|
{
|
|
8854
8879
|
borderRadius: "10",
|
|
@@ -8860,14 +8885,14 @@ function InstructionMobileDetail({
|
|
|
8860
8885
|
},
|
|
8861
8886
|
stepIcons[d.step]?.(wallet)
|
|
8862
8887
|
),
|
|
8863
|
-
/* @__PURE__ */
|
|
8888
|
+
/* @__PURE__ */ React60.createElement(Box, { display: "flex", flexDirection: "column", gap: "4" }, /* @__PURE__ */ React60.createElement(Text, { color: "modalText", size: "14", weight: "bold" }, i18n2.t(d.title, void 0, {
|
|
8864
8889
|
rawKeyIfTranslationMissing: true
|
|
8865
|
-
})), /* @__PURE__ */
|
|
8890
|
+
})), /* @__PURE__ */ React60.createElement(Text, { color: "modalTextSecondary", size: "14", weight: "medium" }, i18n2.t(d.description, void 0, {
|
|
8866
8891
|
rawKeyIfTranslationMissing: true
|
|
8867
8892
|
})))
|
|
8868
8893
|
))
|
|
8869
8894
|
),
|
|
8870
|
-
/* @__PURE__ */
|
|
8895
|
+
/* @__PURE__ */ React60.createElement(
|
|
8871
8896
|
Box,
|
|
8872
8897
|
{
|
|
8873
8898
|
alignItems: "center",
|
|
@@ -8877,14 +8902,14 @@ function InstructionMobileDetail({
|
|
|
8877
8902
|
justifyContent: "center",
|
|
8878
8903
|
marginBottom: "16"
|
|
8879
8904
|
},
|
|
8880
|
-
/* @__PURE__ */
|
|
8905
|
+
/* @__PURE__ */ React60.createElement(
|
|
8881
8906
|
ActionButton,
|
|
8882
8907
|
{
|
|
8883
8908
|
label: i18n2.t("get_instructions.mobile.connect.label"),
|
|
8884
8909
|
onClick: () => connectWallet(wallet)
|
|
8885
8910
|
}
|
|
8886
8911
|
),
|
|
8887
|
-
/* @__PURE__ */
|
|
8912
|
+
/* @__PURE__ */ React60.createElement(
|
|
8888
8913
|
Box,
|
|
8889
8914
|
{
|
|
8890
8915
|
as: "a",
|
|
@@ -8898,7 +8923,7 @@ function InstructionMobileDetail({
|
|
|
8898
8923
|
target: "_blank",
|
|
8899
8924
|
transition: "default"
|
|
8900
8925
|
},
|
|
8901
|
-
/* @__PURE__ */
|
|
8926
|
+
/* @__PURE__ */ React60.createElement(Text, { color: "accentColor", size: "14", weight: "bold" }, i18n2.t("get_instructions.mobile.learn_more.label"))
|
|
8902
8927
|
)
|
|
8903
8928
|
)
|
|
8904
8929
|
);
|
|
@@ -8906,8 +8931,8 @@ function InstructionMobileDetail({
|
|
|
8906
8931
|
function InstructionExtensionDetail({
|
|
8907
8932
|
wallet
|
|
8908
8933
|
}) {
|
|
8909
|
-
const { i18n: i18n2 } =
|
|
8910
|
-
return /* @__PURE__ */
|
|
8934
|
+
const { i18n: i18n2 } = useContext18(I18nContext);
|
|
8935
|
+
return /* @__PURE__ */ React60.createElement(
|
|
8911
8936
|
Box,
|
|
8912
8937
|
{
|
|
8913
8938
|
alignItems: "center",
|
|
@@ -8916,7 +8941,7 @@ function InstructionExtensionDetail({
|
|
|
8916
8941
|
height: "full",
|
|
8917
8942
|
width: "full"
|
|
8918
8943
|
},
|
|
8919
|
-
/* @__PURE__ */
|
|
8944
|
+
/* @__PURE__ */ React60.createElement(
|
|
8920
8945
|
Box,
|
|
8921
8946
|
{
|
|
8922
8947
|
display: "flex",
|
|
@@ -8927,7 +8952,7 @@ function InstructionExtensionDetail({
|
|
|
8927
8952
|
paddingY: "32",
|
|
8928
8953
|
style: { maxWidth: 320 }
|
|
8929
8954
|
},
|
|
8930
|
-
wallet?.extension?.instructions?.steps.map((d, idx) => /* @__PURE__ */
|
|
8955
|
+
wallet?.extension?.instructions?.steps.map((d, idx) => /* @__PURE__ */ React60.createElement(
|
|
8931
8956
|
Box,
|
|
8932
8957
|
{
|
|
8933
8958
|
alignItems: "center",
|
|
@@ -8936,7 +8961,7 @@ function InstructionExtensionDetail({
|
|
|
8936
8961
|
gap: "16",
|
|
8937
8962
|
key: idx
|
|
8938
8963
|
},
|
|
8939
|
-
/* @__PURE__ */
|
|
8964
|
+
/* @__PURE__ */ React60.createElement(
|
|
8940
8965
|
Box,
|
|
8941
8966
|
{
|
|
8942
8967
|
borderRadius: "10",
|
|
@@ -8948,14 +8973,14 @@ function InstructionExtensionDetail({
|
|
|
8948
8973
|
},
|
|
8949
8974
|
stepIcons[d.step]?.(wallet)
|
|
8950
8975
|
),
|
|
8951
|
-
/* @__PURE__ */
|
|
8976
|
+
/* @__PURE__ */ React60.createElement(Box, { display: "flex", flexDirection: "column", gap: "4" }, /* @__PURE__ */ React60.createElement(Text, { color: "modalText", size: "14", weight: "bold" }, i18n2.t(d.title, void 0, {
|
|
8952
8977
|
rawKeyIfTranslationMissing: true
|
|
8953
|
-
})), /* @__PURE__ */
|
|
8978
|
+
})), /* @__PURE__ */ React60.createElement(Text, { color: "modalTextSecondary", size: "14", weight: "medium" }, i18n2.t(d.description, void 0, {
|
|
8954
8979
|
rawKeyIfTranslationMissing: true
|
|
8955
8980
|
})))
|
|
8956
8981
|
))
|
|
8957
8982
|
),
|
|
8958
|
-
/* @__PURE__ */
|
|
8983
|
+
/* @__PURE__ */ React60.createElement(
|
|
8959
8984
|
Box,
|
|
8960
8985
|
{
|
|
8961
8986
|
alignItems: "center",
|
|
@@ -8965,14 +8990,14 @@ function InstructionExtensionDetail({
|
|
|
8965
8990
|
justifyContent: "center",
|
|
8966
8991
|
marginBottom: "16"
|
|
8967
8992
|
},
|
|
8968
|
-
/* @__PURE__ */
|
|
8993
|
+
/* @__PURE__ */ React60.createElement(
|
|
8969
8994
|
ActionButton,
|
|
8970
8995
|
{
|
|
8971
8996
|
label: i18n2.t("get_instructions.extension.refresh.label"),
|
|
8972
8997
|
onClick: window.location.reload.bind(window.location)
|
|
8973
8998
|
}
|
|
8974
8999
|
),
|
|
8975
|
-
/* @__PURE__ */
|
|
9000
|
+
/* @__PURE__ */ React60.createElement(
|
|
8976
9001
|
Box,
|
|
8977
9002
|
{
|
|
8978
9003
|
as: "a",
|
|
@@ -8986,7 +9011,7 @@ function InstructionExtensionDetail({
|
|
|
8986
9011
|
target: "_blank",
|
|
8987
9012
|
transition: "default"
|
|
8988
9013
|
},
|
|
8989
|
-
/* @__PURE__ */
|
|
9014
|
+
/* @__PURE__ */ React60.createElement(Text, { color: "accentColor", size: "14", weight: "bold" }, i18n2.t("get_instructions.extension.learn_more.label"))
|
|
8990
9015
|
)
|
|
8991
9016
|
)
|
|
8992
9017
|
);
|
|
@@ -8995,8 +9020,8 @@ function InstructionDesktopDetail({
|
|
|
8995
9020
|
connectWallet,
|
|
8996
9021
|
wallet
|
|
8997
9022
|
}) {
|
|
8998
|
-
const { i18n: i18n2 } =
|
|
8999
|
-
return /* @__PURE__ */
|
|
9023
|
+
const { i18n: i18n2 } = useContext18(I18nContext);
|
|
9024
|
+
return /* @__PURE__ */ React60.createElement(
|
|
9000
9025
|
Box,
|
|
9001
9026
|
{
|
|
9002
9027
|
alignItems: "center",
|
|
@@ -9005,7 +9030,7 @@ function InstructionDesktopDetail({
|
|
|
9005
9030
|
height: "full",
|
|
9006
9031
|
width: "full"
|
|
9007
9032
|
},
|
|
9008
|
-
/* @__PURE__ */
|
|
9033
|
+
/* @__PURE__ */ React60.createElement(
|
|
9009
9034
|
Box,
|
|
9010
9035
|
{
|
|
9011
9036
|
display: "flex",
|
|
@@ -9016,7 +9041,7 @@ function InstructionDesktopDetail({
|
|
|
9016
9041
|
paddingY: "32",
|
|
9017
9042
|
style: { maxWidth: 320 }
|
|
9018
9043
|
},
|
|
9019
|
-
wallet?.desktop?.instructions?.steps.map((d, idx) => /* @__PURE__ */
|
|
9044
|
+
wallet?.desktop?.instructions?.steps.map((d, idx) => /* @__PURE__ */ React60.createElement(
|
|
9020
9045
|
Box,
|
|
9021
9046
|
{
|
|
9022
9047
|
alignItems: "center",
|
|
@@ -9025,7 +9050,7 @@ function InstructionDesktopDetail({
|
|
|
9025
9050
|
gap: "16",
|
|
9026
9051
|
key: idx
|
|
9027
9052
|
},
|
|
9028
|
-
/* @__PURE__ */
|
|
9053
|
+
/* @__PURE__ */ React60.createElement(
|
|
9029
9054
|
Box,
|
|
9030
9055
|
{
|
|
9031
9056
|
borderRadius: "10",
|
|
@@ -9037,14 +9062,14 @@ function InstructionDesktopDetail({
|
|
|
9037
9062
|
},
|
|
9038
9063
|
stepIcons[d.step]?.(wallet)
|
|
9039
9064
|
),
|
|
9040
|
-
/* @__PURE__ */
|
|
9065
|
+
/* @__PURE__ */ React60.createElement(Box, { display: "flex", flexDirection: "column", gap: "4" }, /* @__PURE__ */ React60.createElement(Text, { color: "modalText", size: "14", weight: "bold" }, i18n2.t(d.title, void 0, {
|
|
9041
9066
|
rawKeyIfTranslationMissing: true
|
|
9042
|
-
})), /* @__PURE__ */
|
|
9067
|
+
})), /* @__PURE__ */ React60.createElement(Text, { color: "modalTextSecondary", size: "14", weight: "medium" }, i18n2.t(d.description, void 0, {
|
|
9043
9068
|
rawKeyIfTranslationMissing: true
|
|
9044
9069
|
})))
|
|
9045
9070
|
))
|
|
9046
9071
|
),
|
|
9047
|
-
/* @__PURE__ */
|
|
9072
|
+
/* @__PURE__ */ React60.createElement(
|
|
9048
9073
|
Box,
|
|
9049
9074
|
{
|
|
9050
9075
|
alignItems: "center",
|
|
@@ -9054,14 +9079,14 @@ function InstructionDesktopDetail({
|
|
|
9054
9079
|
justifyContent: "center",
|
|
9055
9080
|
marginBottom: "16"
|
|
9056
9081
|
},
|
|
9057
|
-
/* @__PURE__ */
|
|
9082
|
+
/* @__PURE__ */ React60.createElement(
|
|
9058
9083
|
ActionButton,
|
|
9059
9084
|
{
|
|
9060
9085
|
label: i18n2.t("get_instructions.desktop.connect.label"),
|
|
9061
9086
|
onClick: () => connectWallet(wallet)
|
|
9062
9087
|
}
|
|
9063
9088
|
),
|
|
9064
|
-
/* @__PURE__ */
|
|
9089
|
+
/* @__PURE__ */ React60.createElement(
|
|
9065
9090
|
Box,
|
|
9066
9091
|
{
|
|
9067
9092
|
as: "a",
|
|
@@ -9075,7 +9100,7 @@ function InstructionDesktopDetail({
|
|
|
9075
9100
|
target: "_blank",
|
|
9076
9101
|
transition: "default"
|
|
9077
9102
|
},
|
|
9078
|
-
/* @__PURE__ */
|
|
9103
|
+
/* @__PURE__ */ React60.createElement(Text, { color: "accentColor", size: "14", weight: "bold" }, i18n2.t("get_instructions.desktop.learn_more.label"))
|
|
9079
9104
|
)
|
|
9080
9105
|
)
|
|
9081
9106
|
);
|
|
@@ -9087,7 +9112,8 @@ function DesktopOptions({
|
|
|
9087
9112
|
solanaWallets,
|
|
9088
9113
|
onSolanaWalletClick,
|
|
9089
9114
|
connectingSolanaWallet,
|
|
9090
|
-
isSolanaConnecting
|
|
9115
|
+
isSolanaConnecting,
|
|
9116
|
+
compact = false
|
|
9091
9117
|
}) {
|
|
9092
9118
|
const titleId = "rk_connect_title";
|
|
9093
9119
|
const [selectedOptionId, setSelectedOptionId] = useState16();
|
|
@@ -9095,10 +9121,10 @@ function DesktopOptions({
|
|
|
9095
9121
|
const [qrCodeUri, setQrCodeUri] = useState16();
|
|
9096
9122
|
const hasQrCode = !!selectedWallet?.qrCode && qrCodeUri;
|
|
9097
9123
|
const [connectionError, setConnectionError] = useState16(false);
|
|
9098
|
-
const modalSize =
|
|
9124
|
+
const modalSize = useContext19(ModalSizeContext);
|
|
9099
9125
|
const compactModeEnabled = modalSize === ModalSizeOptions.COMPACT;
|
|
9100
|
-
const { disclaimer: Disclaimer } =
|
|
9101
|
-
const { i18n: i18n2 } =
|
|
9126
|
+
const { disclaimer: Disclaimer } = useContext19(AppContext);
|
|
9127
|
+
const { i18n: i18n2 } = useContext19(I18nContext);
|
|
9102
9128
|
const safari = isSafari();
|
|
9103
9129
|
const [abcWaasStep, setAbcWaasStep] = useState16("MAIN" /* Main */);
|
|
9104
9130
|
const [abcWaasEmail, setAbcWaasEmail] = useState16("");
|
|
@@ -9120,7 +9146,7 @@ function DesktopOptions({
|
|
|
9120
9146
|
const [isPinVerifyModalOpen, setIsPinVerifyModalOpen] = useState16(false);
|
|
9121
9147
|
const [pinError, setPinError] = useState16("");
|
|
9122
9148
|
const initialized = useRef4(false);
|
|
9123
|
-
const { connector } =
|
|
9149
|
+
const { connector } = useContext19(WalletButtonContext);
|
|
9124
9150
|
const mergeEIP6963WithRkConnectors = !connector;
|
|
9125
9151
|
const wallets = useWalletConnectors(mergeEIP6963WithRkConnectors).filter((wallet) => wallet.ready || !!wallet.extensionDownloadUrl).sort((a, b) => a.groupIndex - b.groupIndex);
|
|
9126
9152
|
const unfilteredWallets = useWalletConnectors();
|
|
@@ -10375,7 +10401,7 @@ function DesktopOptions({
|
|
|
10375
10401
|
walletContent = null;
|
|
10376
10402
|
break;
|
|
10377
10403
|
case "LEARN_COMPACT" /* LearnCompact */:
|
|
10378
|
-
walletContent = /* @__PURE__ */
|
|
10404
|
+
walletContent = /* @__PURE__ */ React61.createElement(
|
|
10379
10405
|
ConnectModalIntro,
|
|
10380
10406
|
{
|
|
10381
10407
|
compactModeEnabled,
|
|
@@ -10386,7 +10412,7 @@ function DesktopOptions({
|
|
|
10386
10412
|
headerBackButtonLink = "NONE" /* None */;
|
|
10387
10413
|
break;
|
|
10388
10414
|
case "GET" /* Get */:
|
|
10389
|
-
walletContent = /* @__PURE__ */
|
|
10415
|
+
walletContent = /* @__PURE__ */ React61.createElement(
|
|
10390
10416
|
GetDetail,
|
|
10391
10417
|
{
|
|
10392
10418
|
getWalletDownload,
|
|
@@ -10397,7 +10423,7 @@ function DesktopOptions({
|
|
|
10397
10423
|
headerBackButtonLink = compactModeEnabled ? "LEARN_COMPACT" /* LearnCompact */ : "NONE" /* None */;
|
|
10398
10424
|
break;
|
|
10399
10425
|
case "CONNECT" /* Connect */:
|
|
10400
|
-
walletContent = selectedWallet && /* @__PURE__ */
|
|
10426
|
+
walletContent = selectedWallet && /* @__PURE__ */ React61.createElement(
|
|
10401
10427
|
ConnectDetail,
|
|
10402
10428
|
{
|
|
10403
10429
|
changeWalletStep,
|
|
@@ -10418,7 +10444,7 @@ function DesktopOptions({
|
|
|
10418
10444
|
};
|
|
10419
10445
|
break;
|
|
10420
10446
|
case "DOWNLOAD_OPTIONS" /* DownloadOptions */:
|
|
10421
|
-
walletContent = selectedWallet && /* @__PURE__ */
|
|
10447
|
+
walletContent = selectedWallet && /* @__PURE__ */ React61.createElement(
|
|
10422
10448
|
DownloadOptionsDetail,
|
|
10423
10449
|
{
|
|
10424
10450
|
changeWalletStep,
|
|
@@ -10429,7 +10455,7 @@ function DesktopOptions({
|
|
|
10429
10455
|
headerBackButtonLink = connector ? "CONNECT" /* Connect */ : compactModeEnabled ? "NONE" /* None */ : initialWalletStep;
|
|
10430
10456
|
break;
|
|
10431
10457
|
case "DOWNLOAD" /* Download */:
|
|
10432
|
-
walletContent = selectedWallet && /* @__PURE__ */
|
|
10458
|
+
walletContent = selectedWallet && /* @__PURE__ */ React61.createElement(
|
|
10433
10459
|
DownloadDetail,
|
|
10434
10460
|
{
|
|
10435
10461
|
changeWalletStep,
|
|
@@ -10440,7 +10466,7 @@ function DesktopOptions({
|
|
|
10440
10466
|
headerBackButtonLink = hasExtensionAndMobile ? "DOWNLOAD_OPTIONS" /* DownloadOptions */ : initialWalletStep;
|
|
10441
10467
|
break;
|
|
10442
10468
|
case "INSTRUCTIONS_MOBILE" /* InstructionsMobile */:
|
|
10443
|
-
walletContent = selectedWallet && /* @__PURE__ */
|
|
10469
|
+
walletContent = selectedWallet && /* @__PURE__ */ React61.createElement(
|
|
10444
10470
|
InstructionMobileDetail,
|
|
10445
10471
|
{
|
|
10446
10472
|
connectWallet: selectWallet,
|
|
@@ -10453,14 +10479,14 @@ function DesktopOptions({
|
|
|
10453
10479
|
headerBackButtonLink = "DOWNLOAD" /* Download */;
|
|
10454
10480
|
break;
|
|
10455
10481
|
case "INSTRUCTIONS_EXTENSION" /* InstructionsExtension */:
|
|
10456
|
-
walletContent = selectedWallet && /* @__PURE__ */
|
|
10482
|
+
walletContent = selectedWallet && /* @__PURE__ */ React61.createElement(InstructionExtensionDetail, { wallet: selectedWallet });
|
|
10457
10483
|
headerLabel = selectedWallet && i18n2.t("get_options.title", {
|
|
10458
10484
|
wallet: compactModeEnabled ? selectedWallet.shortName || selectedWallet.name : selectedWallet.name
|
|
10459
10485
|
});
|
|
10460
10486
|
headerBackButtonLink = "DOWNLOAD_OPTIONS" /* DownloadOptions */;
|
|
10461
10487
|
break;
|
|
10462
10488
|
case "INSTRUCTIONS_DESKTOP" /* InstructionsDesktop */:
|
|
10463
|
-
walletContent = selectedWallet && /* @__PURE__ */
|
|
10489
|
+
walletContent = selectedWallet && /* @__PURE__ */ React61.createElement(
|
|
10464
10490
|
InstructionDesktopDetail,
|
|
10465
10491
|
{
|
|
10466
10492
|
connectWallet: selectWallet,
|
|
@@ -10475,14 +10501,136 @@ function DesktopOptions({
|
|
|
10475
10501
|
default:
|
|
10476
10502
|
break;
|
|
10477
10503
|
}
|
|
10478
|
-
|
|
10504
|
+
if (compact) {
|
|
10505
|
+
return /* @__PURE__ */ React61.createElement(Box, { display: "flex", flexDirection: "column", paddingBottom: "36" }, /* @__PURE__ */ React61.createElement(Box, { paddingX: "20", paddingTop: "14", paddingBottom: "8" }, /* @__PURE__ */ React61.createElement(Text, { as: "h1", color: "modalText", size: "20", weight: "bold" }, abcWaasStep === "MAIN" /* Main */ ? "Sign In" : "Verify")), /* @__PURE__ */ React61.createElement(Box, { paddingX: "20" }, abcWaasStep === "MAIN" /* Main */ && /* @__PURE__ */ React61.createElement(React61.Fragment, null, /* @__PURE__ */ React61.createElement(
|
|
10506
|
+
AbcWaasLoginSection,
|
|
10507
|
+
{
|
|
10508
|
+
onEmailSubmit: handleEmailSubmit,
|
|
10509
|
+
onSocialLogin: handleSocialLogin,
|
|
10510
|
+
compact: true,
|
|
10511
|
+
isLoading: isAbcWaasLoading
|
|
10512
|
+
}
|
|
10513
|
+
), abcWaasError && /* @__PURE__ */ React61.createElement(Box, { marginTop: "12" }, /* @__PURE__ */ React61.createElement(Text, { color: "error", size: "14", weight: "medium" }, abcWaasError)), /* @__PURE__ */ React61.createElement(Box, { marginTop: "24", marginBottom: "20" }, /* @__PURE__ */ React61.createElement(Box, { background: "generalBorder", height: "1" })), /* @__PURE__ */ React61.createElement(Box, { textAlign: "center", paddingX: "20" }, /* @__PURE__ */ React61.createElement(Text, { color: "modalTextSecondary", size: "12", weight: "medium" }, "Signing in means you agree to our", " ", /* @__PURE__ */ React61.createElement(DisclaimerLink, { href: "https://talken.io/terms" }, "Terms of Service"), " and ", /* @__PURE__ */ React61.createElement(DisclaimerLink, { href: "https://talken.io/privacy" }, "Privacy Policy"), ".")), /* @__PURE__ */ React61.createElement(Box, { marginTop: "16", textAlign: "center" }, /* @__PURE__ */ React61.createElement(Text, { color: "modalTextSecondary", size: "12", weight: "semibold" }, "Powered by", " ", /* @__PURE__ */ React61.createElement(DisclaimerLink, { href: "https://talken.io" }, "Talken"), " & ", /* @__PURE__ */ React61.createElement(DisclaimerLink, { href: "https://waas.myabcwallet.com" }, "ABC WaaS")))), abcWaasStep === "PASSWORD" /* Password */ && /* @__PURE__ */ React61.createElement("form", { onSubmit: handlePasswordSubmit }, /* @__PURE__ */ React61.createElement(Box, { marginBottom: "12" }, /* @__PURE__ */ React61.createElement(Text, { color: "modalText", size: "16", weight: "semibold" }, "Enter your password"), /* @__PURE__ */ React61.createElement(Box, { marginTop: "4" }, /* @__PURE__ */ React61.createElement(Text, { color: "modalTextSecondary", size: "14", weight: "medium" }, abcWaasEmail))), /* @__PURE__ */ React61.createElement(
|
|
10514
|
+
"input",
|
|
10515
|
+
{
|
|
10516
|
+
type: "password",
|
|
10517
|
+
placeholder: "Enter password",
|
|
10518
|
+
value: abcWaasPassword,
|
|
10519
|
+
onChange: (e) => setAbcWaasPassword(e.target.value),
|
|
10520
|
+
disabled: isAbcWaasLoading,
|
|
10521
|
+
required: true,
|
|
10522
|
+
style: {
|
|
10523
|
+
width: "100%",
|
|
10524
|
+
padding: "12px 16px",
|
|
10525
|
+
borderRadius: "12px",
|
|
10526
|
+
border: "1px solid #d1d5db",
|
|
10527
|
+
fontSize: "16px"
|
|
10528
|
+
}
|
|
10529
|
+
}
|
|
10530
|
+
), abcWaasError && /* @__PURE__ */ React61.createElement(Box, { marginTop: "8" }, /* @__PURE__ */ React61.createElement(Text, { color: "error", size: "14", weight: "medium" }, abcWaasError)), /* @__PURE__ */ React61.createElement(Box, { display: "flex", gap: "12", marginTop: "16" }, /* @__PURE__ */ React61.createElement(
|
|
10531
|
+
"button",
|
|
10532
|
+
{
|
|
10533
|
+
type: "button",
|
|
10534
|
+
onClick: handleAbcWaasBack,
|
|
10535
|
+
disabled: isAbcWaasLoading,
|
|
10536
|
+
style: {
|
|
10537
|
+
flex: 1,
|
|
10538
|
+
padding: "12px 24px",
|
|
10539
|
+
backgroundColor: "#f3f4f6",
|
|
10540
|
+
color: "#111827",
|
|
10541
|
+
border: "none",
|
|
10542
|
+
borderRadius: "12px",
|
|
10543
|
+
fontSize: "16px",
|
|
10544
|
+
fontWeight: "600",
|
|
10545
|
+
cursor: isAbcWaasLoading ? "not-allowed" : "pointer"
|
|
10546
|
+
}
|
|
10547
|
+
},
|
|
10548
|
+
"Back"
|
|
10549
|
+
), /* @__PURE__ */ React61.createElement(
|
|
10550
|
+
"button",
|
|
10551
|
+
{
|
|
10552
|
+
type: "submit",
|
|
10553
|
+
disabled: isAbcWaasLoading || !abcWaasPassword,
|
|
10554
|
+
style: {
|
|
10555
|
+
flex: 1,
|
|
10556
|
+
padding: "12px 24px",
|
|
10557
|
+
backgroundColor: "#3B82F6",
|
|
10558
|
+
color: "#ffffff",
|
|
10559
|
+
border: "none",
|
|
10560
|
+
borderRadius: "12px",
|
|
10561
|
+
fontSize: "16px",
|
|
10562
|
+
fontWeight: "600",
|
|
10563
|
+
cursor: isAbcWaasLoading || !abcWaasPassword ? "not-allowed" : "pointer",
|
|
10564
|
+
opacity: isAbcWaasLoading || !abcWaasPassword ? 0.5 : 1
|
|
10565
|
+
}
|
|
10566
|
+
},
|
|
10567
|
+
isAbcWaasLoading ? "Logging in..." : "Continue"
|
|
10568
|
+
)))), /* @__PURE__ */ React61.createElement(
|
|
10569
|
+
PinInputModal,
|
|
10570
|
+
{
|
|
10571
|
+
isOpen: isPinCreateModalOpen,
|
|
10572
|
+
onClose: () => {
|
|
10573
|
+
setIsPinCreateModalOpen(false);
|
|
10574
|
+
setAbcWaasEmail("");
|
|
10575
|
+
setAbcWaasPassword("");
|
|
10576
|
+
setAbcWaasLoginData(null);
|
|
10577
|
+
setAbcWaasStep("MAIN" /* Main */);
|
|
10578
|
+
},
|
|
10579
|
+
onSubmit: handlePinCreate,
|
|
10580
|
+
title: "Create PIN",
|
|
10581
|
+
subtitle: "Create a 6-digit PIN to secure your wallet",
|
|
10582
|
+
errorMessage: pinError
|
|
10583
|
+
}
|
|
10584
|
+
), /* @__PURE__ */ React61.createElement(
|
|
10585
|
+
PinInputModal,
|
|
10586
|
+
{
|
|
10587
|
+
isOpen: isPinConfirmModalOpen,
|
|
10588
|
+
onClose: () => {
|
|
10589
|
+
setIsPinConfirmModalOpen(false);
|
|
10590
|
+
setAbcWaasPin("");
|
|
10591
|
+
setAbcWaasEmail("");
|
|
10592
|
+
setAbcWaasPassword("");
|
|
10593
|
+
setAbcWaasLoginData(null);
|
|
10594
|
+
setAbcWaasStep("MAIN" /* Main */);
|
|
10595
|
+
},
|
|
10596
|
+
onSubmit: handlePinConfirm,
|
|
10597
|
+
title: "Confirm PIN",
|
|
10598
|
+
subtitle: "Re-enter your 6-digit PIN to confirm",
|
|
10599
|
+
errorMessage: pinError,
|
|
10600
|
+
externalLoading: isAbcWaasLoading,
|
|
10601
|
+
loadingMessage: walletCreationStatus || "Creating your wallet...",
|
|
10602
|
+
progressSteps: walletCreationProgress
|
|
10603
|
+
}
|
|
10604
|
+
), /* @__PURE__ */ React61.createElement(
|
|
10605
|
+
PinInputModal,
|
|
10606
|
+
{
|
|
10607
|
+
isOpen: isPinVerifyModalOpen,
|
|
10608
|
+
onClose: () => {
|
|
10609
|
+
setIsPinVerifyModalOpen(false);
|
|
10610
|
+
setAbcWaasEmail("");
|
|
10611
|
+
setAbcWaasPassword("");
|
|
10612
|
+
setAbcWaasLoginData(null);
|
|
10613
|
+
setAbcWaasStep("MAIN" /* Main */);
|
|
10614
|
+
},
|
|
10615
|
+
onSubmit: handlePinVerify,
|
|
10616
|
+
title: "Enter PIN",
|
|
10617
|
+
subtitle: `Enter your PIN for ${abcWaasEmail}`,
|
|
10618
|
+
showForgotPin: false,
|
|
10619
|
+
externalLoading: isAbcWaasLoading,
|
|
10620
|
+
loadingMessage: walletCreationStatus || "Unlocking your wallet...",
|
|
10621
|
+
errorMessage: pinError,
|
|
10622
|
+
progressSteps: walletCreationProgress
|
|
10623
|
+
}
|
|
10624
|
+
));
|
|
10625
|
+
}
|
|
10626
|
+
return /* @__PURE__ */ React61.createElement(
|
|
10479
10627
|
Box,
|
|
10480
10628
|
{
|
|
10481
10629
|
display: "flex",
|
|
10482
10630
|
flexDirection: "row",
|
|
10483
10631
|
style: { maxHeight: compactModeEnabled ? 468 : 504 }
|
|
10484
10632
|
},
|
|
10485
|
-
(compactModeEnabled ? walletStep === "NONE" /* None */ : true) && /* @__PURE__ */
|
|
10633
|
+
(compactModeEnabled ? walletStep === "NONE" /* None */ : true) && /* @__PURE__ */ React61.createElement(
|
|
10486
10634
|
Box,
|
|
10487
10635
|
{
|
|
10488
10636
|
className: compactModeEnabled || walletStep === "NONE" /* None */ ? sidebarCompactMode : sidebar,
|
|
@@ -10490,12 +10638,12 @@ function DesktopOptions({
|
|
|
10490
10638
|
flexDirection: "column",
|
|
10491
10639
|
marginTop: "16"
|
|
10492
10640
|
},
|
|
10493
|
-
/* @__PURE__ */
|
|
10641
|
+
/* @__PURE__ */ React61.createElement(Box, { display: "flex", justifyContent: "space-between" }, compactModeEnabled && Disclaimer && /* @__PURE__ */ React61.createElement(Box, { marginLeft: "16", width: "28" }, /* @__PURE__ */ React61.createElement(
|
|
10494
10642
|
InfoButton,
|
|
10495
10643
|
{
|
|
10496
10644
|
onClick: () => changeWalletStep("LEARN_COMPACT" /* LearnCompact */)
|
|
10497
10645
|
}
|
|
10498
|
-
)), compactModeEnabled && !Disclaimer && /* @__PURE__ */
|
|
10646
|
+
)), compactModeEnabled && !Disclaimer && /* @__PURE__ */ React61.createElement(Box, { marginLeft: "16", width: "28" }), /* @__PURE__ */ React61.createElement(
|
|
10499
10647
|
Box,
|
|
10500
10648
|
{
|
|
10501
10649
|
marginLeft: compactModeEnabled ? "0" : "6",
|
|
@@ -10503,7 +10651,7 @@ function DesktopOptions({
|
|
|
10503
10651
|
paddingTop: "2",
|
|
10504
10652
|
paddingX: "18"
|
|
10505
10653
|
},
|
|
10506
|
-
/* @__PURE__ */
|
|
10654
|
+
/* @__PURE__ */ React61.createElement(
|
|
10507
10655
|
Text,
|
|
10508
10656
|
{
|
|
10509
10657
|
as: "h1",
|
|
@@ -10515,8 +10663,8 @@ function DesktopOptions({
|
|
|
10515
10663
|
},
|
|
10516
10664
|
i18n2.t("connect.title")
|
|
10517
10665
|
)
|
|
10518
|
-
), compactModeEnabled && /* @__PURE__ */
|
|
10519
|
-
/* @__PURE__ */
|
|
10666
|
+
), compactModeEnabled && /* @__PURE__ */ React61.createElement(Box, { marginRight: "16" }, /* @__PURE__ */ React61.createElement(CloseButton, { onClose }))),
|
|
10667
|
+
/* @__PURE__ */ React61.createElement(Box, { className: ScrollClassName, paddingBottom: "18" }, abcWaasStep === "MAIN" /* Main */ && /* @__PURE__ */ React61.createElement(React61.Fragment, null, /* @__PURE__ */ React61.createElement(
|
|
10520
10668
|
AbcWaasLoginSection,
|
|
10521
10669
|
{
|
|
10522
10670
|
onEmailSubmit: handleEmailSubmit,
|
|
@@ -10524,7 +10672,7 @@ function DesktopOptions({
|
|
|
10524
10672
|
compact: compactModeEnabled,
|
|
10525
10673
|
isLoading: isAbcWaasLoading
|
|
10526
10674
|
}
|
|
10527
|
-
), abcWaasError && /* @__PURE__ */
|
|
10675
|
+
), abcWaasError && /* @__PURE__ */ React61.createElement(Box, { marginX: "6", marginBottom: "8" }, /* @__PURE__ */ React61.createElement(Text, { color: "error", size: "14", weight: "medium" }, abcWaasError)), /* @__PURE__ */ React61.createElement(
|
|
10528
10676
|
Box,
|
|
10529
10677
|
{
|
|
10530
10678
|
marginX: "6",
|
|
@@ -10533,7 +10681,7 @@ function DesktopOptions({
|
|
|
10533
10681
|
alignItems: "center",
|
|
10534
10682
|
gap: "8"
|
|
10535
10683
|
},
|
|
10536
|
-
/* @__PURE__ */
|
|
10684
|
+
/* @__PURE__ */ React61.createElement(
|
|
10537
10685
|
Box,
|
|
10538
10686
|
{
|
|
10539
10687
|
background: "generalBorder",
|
|
@@ -10541,8 +10689,8 @@ function DesktopOptions({
|
|
|
10541
10689
|
style: { flexGrow: 1 }
|
|
10542
10690
|
}
|
|
10543
10691
|
),
|
|
10544
|
-
/* @__PURE__ */
|
|
10545
|
-
/* @__PURE__ */
|
|
10692
|
+
/* @__PURE__ */ React61.createElement(Text, { color: "modalTextSecondary", size: "14", weight: "medium" }, "OR"),
|
|
10693
|
+
/* @__PURE__ */ React61.createElement(
|
|
10546
10694
|
Box,
|
|
10547
10695
|
{
|
|
10548
10696
|
background: "generalBorder",
|
|
@@ -10550,7 +10698,7 @@ function DesktopOptions({
|
|
|
10550
10698
|
style: { flexGrow: 1 }
|
|
10551
10699
|
}
|
|
10552
10700
|
)
|
|
10553
|
-
)), abcWaasStep === "PASSWORD" /* Password */ && /* @__PURE__ */
|
|
10701
|
+
)), abcWaasStep === "PASSWORD" /* Password */ && /* @__PURE__ */ React61.createElement(Box, { marginX: "6", marginBottom: "16" }, /* @__PURE__ */ React61.createElement(Box, { marginBottom: "12" }, /* @__PURE__ */ React61.createElement(Text, { color: "modalText", size: "16", weight: "semibold" }, "Enter your password"), /* @__PURE__ */ React61.createElement(Box, { marginTop: "4" }, /* @__PURE__ */ React61.createElement(Text, { color: "modalTextSecondary", size: "14", weight: "medium" }, abcWaasEmail))), /* @__PURE__ */ React61.createElement("form", { onSubmit: handlePasswordSubmit }, /* @__PURE__ */ React61.createElement(
|
|
10554
10702
|
Box,
|
|
10555
10703
|
{
|
|
10556
10704
|
marginBottom: "12",
|
|
@@ -10561,7 +10709,7 @@ function DesktopOptions({
|
|
|
10561
10709
|
border: "1px solid #d1d5db"
|
|
10562
10710
|
}
|
|
10563
10711
|
},
|
|
10564
|
-
/* @__PURE__ */
|
|
10712
|
+
/* @__PURE__ */ React61.createElement(
|
|
10565
10713
|
"input",
|
|
10566
10714
|
{
|
|
10567
10715
|
type: "password",
|
|
@@ -10583,7 +10731,7 @@ function DesktopOptions({
|
|
|
10583
10731
|
}
|
|
10584
10732
|
}
|
|
10585
10733
|
)
|
|
10586
|
-
), /* @__PURE__ */
|
|
10734
|
+
), /* @__PURE__ */ React61.createElement(Box, { display: "flex", gap: "12" }, /* @__PURE__ */ React61.createElement(
|
|
10587
10735
|
Box,
|
|
10588
10736
|
{
|
|
10589
10737
|
as: "button",
|
|
@@ -10605,7 +10753,7 @@ function DesktopOptions({
|
|
|
10605
10753
|
}
|
|
10606
10754
|
},
|
|
10607
10755
|
"Back"
|
|
10608
|
-
), /* @__PURE__ */
|
|
10756
|
+
), /* @__PURE__ */ React61.createElement(
|
|
10609
10757
|
Box,
|
|
10610
10758
|
{
|
|
10611
10759
|
as: "button",
|
|
@@ -10626,7 +10774,7 @@ function DesktopOptions({
|
|
|
10626
10774
|
}
|
|
10627
10775
|
},
|
|
10628
10776
|
"Continue"
|
|
10629
|
-
))), abcWaasError && /* @__PURE__ */
|
|
10777
|
+
))), abcWaasError && /* @__PURE__ */ React61.createElement(Box, { marginTop: "8" }, /* @__PURE__ */ React61.createElement(Text, { color: "error", size: "14", weight: "medium" }, abcWaasError))), (abcWaasStep === "OTP" /* Otp */ || abcWaasStep === "OTP_PASSWORD_SETUP" /* OtpPasswordSetup */) && /* @__PURE__ */ React61.createElement(Box, { marginX: "6", marginBottom: "16" }, /* @__PURE__ */ React61.createElement(Box, { marginBottom: "12" }, /* @__PURE__ */ React61.createElement(Text, { color: "modalText", size: "16", weight: "semibold" }, "Enter verification code"), /* @__PURE__ */ React61.createElement(Box, { marginTop: "4" }, /* @__PURE__ */ React61.createElement(Text, { color: "modalTextSecondary", size: "14", weight: "medium" }, "We sent a code to ", abcWaasEmail))), /* @__PURE__ */ React61.createElement("form", { onSubmit: handleOtpSubmit }, /* @__PURE__ */ React61.createElement(
|
|
10630
10778
|
Box,
|
|
10631
10779
|
{
|
|
10632
10780
|
marginBottom: "12",
|
|
@@ -10637,7 +10785,7 @@ function DesktopOptions({
|
|
|
10637
10785
|
border: "1px solid #d1d5db"
|
|
10638
10786
|
}
|
|
10639
10787
|
},
|
|
10640
|
-
/* @__PURE__ */
|
|
10788
|
+
/* @__PURE__ */ React61.createElement(
|
|
10641
10789
|
"input",
|
|
10642
10790
|
{
|
|
10643
10791
|
type: "text",
|
|
@@ -10662,7 +10810,7 @@ function DesktopOptions({
|
|
|
10662
10810
|
}
|
|
10663
10811
|
}
|
|
10664
10812
|
)
|
|
10665
|
-
), /* @__PURE__ */
|
|
10813
|
+
), /* @__PURE__ */ React61.createElement(Box, { display: "flex", gap: "12" }, /* @__PURE__ */ React61.createElement(
|
|
10666
10814
|
Box,
|
|
10667
10815
|
{
|
|
10668
10816
|
as: "button",
|
|
@@ -10684,7 +10832,7 @@ function DesktopOptions({
|
|
|
10684
10832
|
}
|
|
10685
10833
|
},
|
|
10686
10834
|
"Back"
|
|
10687
|
-
), /* @__PURE__ */
|
|
10835
|
+
), /* @__PURE__ */ React61.createElement(
|
|
10688
10836
|
Box,
|
|
10689
10837
|
{
|
|
10690
10838
|
as: "button",
|
|
@@ -10705,7 +10853,7 @@ function DesktopOptions({
|
|
|
10705
10853
|
}
|
|
10706
10854
|
},
|
|
10707
10855
|
"Verify"
|
|
10708
|
-
))), abcWaasError && /* @__PURE__ */
|
|
10856
|
+
))), abcWaasError && /* @__PURE__ */ React61.createElement(Box, { marginTop: "8" }, /* @__PURE__ */ React61.createElement(Text, { color: "error", size: "14", weight: "medium" }, abcWaasError))), abcWaasStep === "PASSWORD_SETUP" /* PasswordSetup */ && /* @__PURE__ */ React61.createElement(Box, { marginX: "6", marginBottom: "16" }, /* @__PURE__ */ React61.createElement(Box, { marginBottom: "12" }, /* @__PURE__ */ React61.createElement(Text, { color: "modalText", size: "16", weight: "semibold" }, "Create your password"), /* @__PURE__ */ React61.createElement(Box, { marginTop: "4" }, /* @__PURE__ */ React61.createElement(Text, { color: "modalTextSecondary", size: "14", weight: "medium" }, "Set a password for ", abcWaasEmail))), /* @__PURE__ */ React61.createElement("form", { onSubmit: handlePasswordSetupSubmit }, /* @__PURE__ */ React61.createElement(
|
|
10709
10857
|
Box,
|
|
10710
10858
|
{
|
|
10711
10859
|
marginBottom: "12",
|
|
@@ -10716,7 +10864,7 @@ function DesktopOptions({
|
|
|
10716
10864
|
border: "1px solid #d1d5db"
|
|
10717
10865
|
}
|
|
10718
10866
|
},
|
|
10719
|
-
/* @__PURE__ */
|
|
10867
|
+
/* @__PURE__ */ React61.createElement(
|
|
10720
10868
|
"input",
|
|
10721
10869
|
{
|
|
10722
10870
|
type: "password",
|
|
@@ -10736,7 +10884,7 @@ function DesktopOptions({
|
|
|
10736
10884
|
}
|
|
10737
10885
|
}
|
|
10738
10886
|
)
|
|
10739
|
-
), /* @__PURE__ */
|
|
10887
|
+
), /* @__PURE__ */ React61.createElement(Box, { display: "flex", gap: "12" }, /* @__PURE__ */ React61.createElement(
|
|
10740
10888
|
Box,
|
|
10741
10889
|
{
|
|
10742
10890
|
as: "button",
|
|
@@ -10757,7 +10905,7 @@ function DesktopOptions({
|
|
|
10757
10905
|
}
|
|
10758
10906
|
},
|
|
10759
10907
|
"Back"
|
|
10760
|
-
), /* @__PURE__ */
|
|
10908
|
+
), /* @__PURE__ */ React61.createElement(
|
|
10761
10909
|
Box,
|
|
10762
10910
|
{
|
|
10763
10911
|
as: "button",
|
|
@@ -10777,7 +10925,7 @@ function DesktopOptions({
|
|
|
10777
10925
|
}
|
|
10778
10926
|
},
|
|
10779
10927
|
"Continue"
|
|
10780
|
-
))), abcWaasError && /* @__PURE__ */
|
|
10928
|
+
))), abcWaasError && /* @__PURE__ */ React61.createElement(Box, { marginTop: "8" }, /* @__PURE__ */ React61.createElement(Text, { color: "error", size: "14", weight: "medium" }, abcWaasError))), abcWaasStep === "PASSWORD_CONFIRM" /* PasswordConfirm */ && /* @__PURE__ */ React61.createElement(Box, { marginX: "6", marginBottom: "16" }, /* @__PURE__ */ React61.createElement(Box, { marginBottom: "12" }, /* @__PURE__ */ React61.createElement(Text, { color: "modalText", size: "16", weight: "semibold" }, "Confirm your password"), /* @__PURE__ */ React61.createElement(Box, { marginTop: "4" }, /* @__PURE__ */ React61.createElement(Text, { color: "modalTextSecondary", size: "14", weight: "medium" }, "Re-enter your password to confirm"))), /* @__PURE__ */ React61.createElement("form", { onSubmit: handlePasswordConfirmSubmit }, /* @__PURE__ */ React61.createElement(
|
|
10781
10929
|
Box,
|
|
10782
10930
|
{
|
|
10783
10931
|
marginBottom: "12",
|
|
@@ -10787,7 +10935,7 @@ function DesktopOptions({
|
|
|
10787
10935
|
backgroundColor: "rgba(60, 66, 82, 0.8)"
|
|
10788
10936
|
}
|
|
10789
10937
|
},
|
|
10790
|
-
/* @__PURE__ */
|
|
10938
|
+
/* @__PURE__ */ React61.createElement(
|
|
10791
10939
|
"input",
|
|
10792
10940
|
{
|
|
10793
10941
|
type: "password",
|
|
@@ -10807,7 +10955,7 @@ function DesktopOptions({
|
|
|
10807
10955
|
}
|
|
10808
10956
|
}
|
|
10809
10957
|
)
|
|
10810
|
-
), /* @__PURE__ */
|
|
10958
|
+
), /* @__PURE__ */ React61.createElement(Box, { display: "flex", gap: "8" }, /* @__PURE__ */ React61.createElement(
|
|
10811
10959
|
Box,
|
|
10812
10960
|
{
|
|
10813
10961
|
as: "button",
|
|
@@ -10826,8 +10974,8 @@ function DesktopOptions({
|
|
|
10826
10974
|
cursor: isAbcWaasLoading ? "not-allowed" : "pointer"
|
|
10827
10975
|
}
|
|
10828
10976
|
},
|
|
10829
|
-
/* @__PURE__ */
|
|
10830
|
-
), /* @__PURE__ */
|
|
10977
|
+
/* @__PURE__ */ React61.createElement(Text, { color: "modalText", size: "14", weight: "semibold" }, "Back")
|
|
10978
|
+
), /* @__PURE__ */ React61.createElement(
|
|
10831
10979
|
Box,
|
|
10832
10980
|
{
|
|
10833
10981
|
as: "button",
|
|
@@ -10842,7 +10990,7 @@ function DesktopOptions({
|
|
|
10842
10990
|
cursor: isAbcWaasLoading ? "not-allowed" : "pointer"
|
|
10843
10991
|
}
|
|
10844
10992
|
},
|
|
10845
|
-
/* @__PURE__ */
|
|
10993
|
+
/* @__PURE__ */ React61.createElement(
|
|
10846
10994
|
Text,
|
|
10847
10995
|
{
|
|
10848
10996
|
color: "accentColorForeground",
|
|
@@ -10851,9 +10999,9 @@ function DesktopOptions({
|
|
|
10851
10999
|
},
|
|
10852
11000
|
isAbcWaasLoading ? "Setting up..." : "Confirm"
|
|
10853
11001
|
)
|
|
10854
|
-
))), abcWaasError && /* @__PURE__ */
|
|
11002
|
+
))), abcWaasError && /* @__PURE__ */ React61.createElement(Box, { marginTop: "8" }, /* @__PURE__ */ React61.createElement(Text, { color: "error", size: "14", weight: "medium" }, abcWaasError))), abcWaasStep === "MAIN" /* Main */ && /* @__PURE__ */ React61.createElement(React61.Fragment, null, (() => {
|
|
10855
11003
|
const installedWallets = groupedWallets["Installed"] || [];
|
|
10856
|
-
return installedWallets.length > 0 && /* @__PURE__ */
|
|
11004
|
+
return installedWallets.length > 0 && /* @__PURE__ */ React61.createElement(Fragment2, null, /* @__PURE__ */ React61.createElement(Box, { marginBottom: "8", marginTop: "16", marginX: "6" }, /* @__PURE__ */ React61.createElement(Text, { color: "accentColor", size: "14", weight: "bold" }, "Ethereum")), /* @__PURE__ */ React61.createElement(Box, { display: "flex", flexDirection: "column", gap: "4" }, (() => {
|
|
10857
11005
|
const recentWalletIds = getRecentWalletIds();
|
|
10858
11006
|
const mostRecentWalletId = recentWalletIds[0];
|
|
10859
11007
|
const sortedWallets = [...installedWallets].sort(
|
|
@@ -10867,7 +11015,7 @@ function DesktopOptions({
|
|
|
10867
11015
|
return a.name.localeCompare(b.name);
|
|
10868
11016
|
}
|
|
10869
11017
|
);
|
|
10870
|
-
return sortedWallets.map((wallet) => /* @__PURE__ */
|
|
11018
|
+
return sortedWallets.map((wallet) => /* @__PURE__ */ React61.createElement(
|
|
10871
11019
|
ModalSelection,
|
|
10872
11020
|
{
|
|
10873
11021
|
currentlySelected: wallet.id === selectedOptionId,
|
|
@@ -10886,12 +11034,12 @@ function DesktopOptions({
|
|
|
10886
11034
|
})(), solanaWallets?.Solana && solanaWallets.Solana.length > 0 && (() => {
|
|
10887
11035
|
const recentWalletIds = getRecentSolanaWalletIds();
|
|
10888
11036
|
const recentWalletId = recentWalletIds[0];
|
|
10889
|
-
return /* @__PURE__ */
|
|
11037
|
+
return /* @__PURE__ */ React61.createElement(Fragment2, null, /* @__PURE__ */ React61.createElement(Box, { marginBottom: "8", marginTop: "16", marginX: "6" }, /* @__PURE__ */ React61.createElement(Text, { color: "accentColor", size: "14", weight: "bold" }, "Solana")), /* @__PURE__ */ React61.createElement(Box, { display: "flex", flexDirection: "column", gap: "4" }, solanaWallets.Solana.map((wallet, index) => {
|
|
10890
11038
|
const { adapter } = wallet;
|
|
10891
11039
|
const isInstalled = adapter.readyState === "Installed";
|
|
10892
11040
|
const isConnecting = connectingSolanaWallet === adapter.name || isSolanaConnecting;
|
|
10893
11041
|
const isRecent = adapter.name === recentWalletId;
|
|
10894
|
-
return /* @__PURE__ */
|
|
11042
|
+
return /* @__PURE__ */ React61.createElement(
|
|
10895
11043
|
ModalSelection,
|
|
10896
11044
|
{
|
|
10897
11045
|
key: `solana-${adapter.name}-${index}`,
|
|
@@ -10916,7 +11064,7 @@ function DesktopOptions({
|
|
|
10916
11064
|
}
|
|
10917
11065
|
return found;
|
|
10918
11066
|
}).filter((w) => w !== void 0);
|
|
10919
|
-
return popularWallets.length > 0 && /* @__PURE__ */
|
|
11067
|
+
return popularWallets.length > 0 && /* @__PURE__ */ React61.createElement(Fragment2, null, /* @__PURE__ */ React61.createElement(Box, { marginBottom: "8", marginTop: "16", marginX: "6" }, /* @__PURE__ */ React61.createElement(
|
|
10920
11068
|
Text,
|
|
10921
11069
|
{
|
|
10922
11070
|
color: "modalTextSecondary",
|
|
@@ -10924,7 +11072,7 @@ function DesktopOptions({
|
|
|
10924
11072
|
weight: "bold"
|
|
10925
11073
|
},
|
|
10926
11074
|
i18n2.t("connector_group.popular")
|
|
10927
|
-
)), /* @__PURE__ */
|
|
11075
|
+
)), /* @__PURE__ */ React61.createElement(Box, { display: "flex", flexDirection: "column", gap: "4" }, popularWallets.map((wallet) => /* @__PURE__ */ React61.createElement(
|
|
10928
11076
|
ModalSelection,
|
|
10929
11077
|
{
|
|
10930
11078
|
currentlySelected: wallet.id === selectedOptionId,
|
|
@@ -10940,7 +11088,7 @@ function DesktopOptions({
|
|
|
10940
11088
|
}
|
|
10941
11089
|
))));
|
|
10942
11090
|
})())),
|
|
10943
|
-
compactModeEnabled && /* @__PURE__ */
|
|
11091
|
+
compactModeEnabled && /* @__PURE__ */ React61.createElement(React61.Fragment, null, /* @__PURE__ */ React61.createElement(Box, { background: "generalBorder", height: "1", marginTop: "-1" }), Disclaimer ? /* @__PURE__ */ React61.createElement(Box, { paddingX: "24", paddingY: "16", textAlign: "center" }, /* @__PURE__ */ React61.createElement(Disclaimer, { Link: DisclaimerLink, Text: DisclaimerText })) : /* @__PURE__ */ React61.createElement(
|
|
10944
11092
|
Box,
|
|
10945
11093
|
{
|
|
10946
11094
|
alignItems: "center",
|
|
@@ -10949,8 +11097,8 @@ function DesktopOptions({
|
|
|
10949
11097
|
paddingX: "24",
|
|
10950
11098
|
paddingY: "16"
|
|
10951
11099
|
},
|
|
10952
|
-
/* @__PURE__ */
|
|
10953
|
-
/* @__PURE__ */
|
|
11100
|
+
/* @__PURE__ */ React61.createElement(Box, { paddingY: "4" }, /* @__PURE__ */ React61.createElement(Text, { color: "modalTextSecondary", size: "14", weight: "medium" }, i18n2.t("connect.new_to_ethereum.description"))),
|
|
11101
|
+
/* @__PURE__ */ React61.createElement(
|
|
10954
11102
|
Box,
|
|
10955
11103
|
{
|
|
10956
11104
|
alignItems: "center",
|
|
@@ -10959,7 +11107,7 @@ function DesktopOptions({
|
|
|
10959
11107
|
gap: "4",
|
|
10960
11108
|
justifyContent: "center"
|
|
10961
11109
|
},
|
|
10962
|
-
/* @__PURE__ */
|
|
11110
|
+
/* @__PURE__ */ React61.createElement(
|
|
10963
11111
|
Box,
|
|
10964
11112
|
{
|
|
10965
11113
|
className: touchableStyles({
|
|
@@ -10972,12 +11120,12 @@ function DesktopOptions({
|
|
|
10972
11120
|
style: { willChange: "transform" },
|
|
10973
11121
|
transition: "default"
|
|
10974
11122
|
},
|
|
10975
|
-
/* @__PURE__ */
|
|
11123
|
+
/* @__PURE__ */ React61.createElement(Text, { color: "accentColor", size: "14", weight: "bold" }, i18n2.t("connect.new_to_ethereum.learn_more.label"))
|
|
10976
11124
|
)
|
|
10977
11125
|
)
|
|
10978
11126
|
))
|
|
10979
11127
|
),
|
|
10980
|
-
(compactModeEnabled ? walletStep !== "NONE" /* None */ : walletStep !== "NONE" /* None */) && /* @__PURE__ */
|
|
11128
|
+
(compactModeEnabled ? walletStep !== "NONE" /* None */ : walletStep !== "NONE" /* None */) && /* @__PURE__ */ React61.createElement(React61.Fragment, null, !compactModeEnabled && /* @__PURE__ */ React61.createElement(Box, { background: "generalBorder", minWidth: "1", width: "1" }), /* @__PURE__ */ React61.createElement(
|
|
10981
11129
|
Box,
|
|
10982
11130
|
{
|
|
10983
11131
|
display: "flex",
|
|
@@ -10985,7 +11133,7 @@ function DesktopOptions({
|
|
|
10985
11133
|
margin: "16",
|
|
10986
11134
|
style: { flexGrow: 1 }
|
|
10987
11135
|
},
|
|
10988
|
-
/* @__PURE__ */
|
|
11136
|
+
/* @__PURE__ */ React61.createElement(
|
|
10989
11137
|
Box,
|
|
10990
11138
|
{
|
|
10991
11139
|
alignItems: "center",
|
|
@@ -10993,7 +11141,7 @@ function DesktopOptions({
|
|
|
10993
11141
|
justifyContent: "space-between",
|
|
10994
11142
|
marginBottom: "12"
|
|
10995
11143
|
},
|
|
10996
|
-
/* @__PURE__ */
|
|
11144
|
+
/* @__PURE__ */ React61.createElement(Box, { width: "28" }, headerBackButtonLink && /* @__PURE__ */ React61.createElement(
|
|
10997
11145
|
Box,
|
|
10998
11146
|
{
|
|
10999
11147
|
as: "button",
|
|
@@ -11016,16 +11164,16 @@ function DesktopOptions({
|
|
|
11016
11164
|
transition: "default",
|
|
11017
11165
|
type: "button"
|
|
11018
11166
|
},
|
|
11019
|
-
/* @__PURE__ */
|
|
11167
|
+
/* @__PURE__ */ React61.createElement(BackIcon, null)
|
|
11020
11168
|
)),
|
|
11021
|
-
/* @__PURE__ */
|
|
11169
|
+
/* @__PURE__ */ React61.createElement(
|
|
11022
11170
|
Box,
|
|
11023
11171
|
{
|
|
11024
11172
|
display: "flex",
|
|
11025
11173
|
justifyContent: "center",
|
|
11026
11174
|
style: { flexGrow: 1 }
|
|
11027
11175
|
},
|
|
11028
|
-
headerLabel && /* @__PURE__ */
|
|
11176
|
+
headerLabel && /* @__PURE__ */ React61.createElement(
|
|
11029
11177
|
Text,
|
|
11030
11178
|
{
|
|
11031
11179
|
color: "modalText",
|
|
@@ -11036,16 +11184,16 @@ function DesktopOptions({
|
|
|
11036
11184
|
headerLabel
|
|
11037
11185
|
)
|
|
11038
11186
|
),
|
|
11039
|
-
/* @__PURE__ */
|
|
11187
|
+
/* @__PURE__ */ React61.createElement(CloseButton, { onClose })
|
|
11040
11188
|
),
|
|
11041
|
-
/* @__PURE__ */
|
|
11189
|
+
/* @__PURE__ */ React61.createElement(
|
|
11042
11190
|
Box,
|
|
11043
11191
|
{
|
|
11044
11192
|
display: "flex",
|
|
11045
11193
|
flexDirection: "column",
|
|
11046
11194
|
style: { minHeight: compactModeEnabled ? 396 : 432 }
|
|
11047
11195
|
},
|
|
11048
|
-
/* @__PURE__ */
|
|
11196
|
+
/* @__PURE__ */ React61.createElement(
|
|
11049
11197
|
Box,
|
|
11050
11198
|
{
|
|
11051
11199
|
alignItems: "center",
|
|
@@ -11060,7 +11208,7 @@ function DesktopOptions({
|
|
|
11060
11208
|
)
|
|
11061
11209
|
)
|
|
11062
11210
|
)),
|
|
11063
|
-
/* @__PURE__ */
|
|
11211
|
+
/* @__PURE__ */ React61.createElement(
|
|
11064
11212
|
PinInputModal,
|
|
11065
11213
|
{
|
|
11066
11214
|
isOpen: isPinCreateModalOpen,
|
|
@@ -11077,7 +11225,7 @@ function DesktopOptions({
|
|
|
11077
11225
|
errorMessage: pinError
|
|
11078
11226
|
}
|
|
11079
11227
|
),
|
|
11080
|
-
/* @__PURE__ */
|
|
11228
|
+
/* @__PURE__ */ React61.createElement(
|
|
11081
11229
|
PinInputModal,
|
|
11082
11230
|
{
|
|
11083
11231
|
isOpen: isPinConfirmModalOpen,
|
|
@@ -11098,7 +11246,7 @@ function DesktopOptions({
|
|
|
11098
11246
|
progressSteps: walletCreationProgress
|
|
11099
11247
|
}
|
|
11100
11248
|
),
|
|
11101
|
-
/* @__PURE__ */
|
|
11249
|
+
/* @__PURE__ */ React61.createElement(
|
|
11102
11250
|
PinInputModal,
|
|
11103
11251
|
{
|
|
11104
11252
|
isOpen: isPinVerifyModalOpen,
|
|
@@ -11123,14 +11271,51 @@ function DesktopOptions({
|
|
|
11123
11271
|
}
|
|
11124
11272
|
|
|
11125
11273
|
// src/components/ConnectOptions/MobileOptions.tsx
|
|
11126
|
-
import
|
|
11274
|
+
import React62, {
|
|
11127
11275
|
useCallback as useCallback11,
|
|
11128
|
-
useContext as
|
|
11129
|
-
useEffect as
|
|
11276
|
+
useContext as useContext20,
|
|
11277
|
+
useEffect as useEffect20,
|
|
11130
11278
|
useRef as useRef5,
|
|
11131
|
-
useState as
|
|
11279
|
+
useState as useState18
|
|
11132
11280
|
} from "react";
|
|
11133
11281
|
|
|
11282
|
+
// src/hooks/useDeviceType.ts
|
|
11283
|
+
import { useEffect as useEffect19, useState as useState17 } from "react";
|
|
11284
|
+
var BREAKPOINTS = {
|
|
11285
|
+
mobile: 1024,
|
|
11286
|
+
// 0-1024px (includes phones and tablets)
|
|
11287
|
+
tablet: 1024
|
|
11288
|
+
// Not used (mobile includes tablet)
|
|
11289
|
+
// desktop: 1024+ (everything else)
|
|
11290
|
+
};
|
|
11291
|
+
function getDeviceState(width) {
|
|
11292
|
+
const type = width <= BREAKPOINTS.mobile ? "mobile" : width <= BREAKPOINTS.tablet ? "tablet" : "desktop";
|
|
11293
|
+
return {
|
|
11294
|
+
type,
|
|
11295
|
+
isMobile: type === "mobile",
|
|
11296
|
+
isTablet: type === "tablet",
|
|
11297
|
+
isDesktop: type === "desktop",
|
|
11298
|
+
width
|
|
11299
|
+
};
|
|
11300
|
+
}
|
|
11301
|
+
function useDeviceType() {
|
|
11302
|
+
const [state, setState] = useState17(() => {
|
|
11303
|
+
if (typeof window === "undefined") {
|
|
11304
|
+
return getDeviceState(1920);
|
|
11305
|
+
}
|
|
11306
|
+
return getDeviceState(window.innerWidth);
|
|
11307
|
+
});
|
|
11308
|
+
useEffect19(() => {
|
|
11309
|
+
setState(getDeviceState(window.innerWidth));
|
|
11310
|
+
function handleResize() {
|
|
11311
|
+
setState(getDeviceState(window.innerWidth));
|
|
11312
|
+
}
|
|
11313
|
+
window.addEventListener("resize", handleResize);
|
|
11314
|
+
return () => window.removeEventListener("resize", handleResize);
|
|
11315
|
+
}, []);
|
|
11316
|
+
return state;
|
|
11317
|
+
}
|
|
11318
|
+
|
|
11134
11319
|
// src/components/ConnectOptions/MobileOptions.css.ts
|
|
11135
11320
|
var rotatingBorder = "_4rh9bz2";
|
|
11136
11321
|
var scroll = "_4rh9bz0";
|
|
@@ -11142,7 +11327,7 @@ var LoadingSpinner = ({ wallet }) => {
|
|
|
11142
11327
|
const height = 80;
|
|
11143
11328
|
const radiusFactor = 20;
|
|
11144
11329
|
const perimeter = 2 * (width + height - 4 * radiusFactor);
|
|
11145
|
-
return /* @__PURE__ */
|
|
11330
|
+
return /* @__PURE__ */ React62.createElement("svg", { className: spinner2, viewBox: "0 0 86 86", width: "86", height: "86" }, /* @__PURE__ */ React62.createElement("title", null, "Loading"), /* @__PURE__ */ React62.createElement(
|
|
11146
11331
|
"rect",
|
|
11147
11332
|
{
|
|
11148
11333
|
x: "3",
|
|
@@ -11181,7 +11366,7 @@ function WalletButton({
|
|
|
11181
11366
|
} = wallet;
|
|
11182
11367
|
const coolModeRef = useCoolMode(iconUrl);
|
|
11183
11368
|
const initialized = useRef5(false);
|
|
11184
|
-
const { i18n: i18n2 } =
|
|
11369
|
+
const { i18n: i18n2 } = useContext20(I18nContext);
|
|
11185
11370
|
const onConnect = useCallback11(async () => {
|
|
11186
11371
|
const onMobileUri = async () => {
|
|
11187
11372
|
const mobileUri = await getMobileUri?.();
|
|
@@ -11209,13 +11394,13 @@ function WalletButton({
|
|
|
11209
11394
|
}
|
|
11210
11395
|
connect?.();
|
|
11211
11396
|
}, [connect, getMobileUri, showWalletConnectModal, onClose, name, id]);
|
|
11212
|
-
|
|
11397
|
+
useEffect20(() => {
|
|
11213
11398
|
if (connecting && !initialized.current) {
|
|
11214
11399
|
onConnect();
|
|
11215
11400
|
initialized.current = true;
|
|
11216
11401
|
}
|
|
11217
11402
|
}, [connecting, onConnect]);
|
|
11218
|
-
return /* @__PURE__ */
|
|
11403
|
+
return /* @__PURE__ */ React62.createElement(
|
|
11219
11404
|
Box,
|
|
11220
11405
|
{
|
|
11221
11406
|
as: "button",
|
|
@@ -11230,7 +11415,7 @@ function WalletButton({
|
|
|
11230
11415
|
type: "button",
|
|
11231
11416
|
width: "full"
|
|
11232
11417
|
},
|
|
11233
|
-
/* @__PURE__ */
|
|
11418
|
+
/* @__PURE__ */ React62.createElement(
|
|
11234
11419
|
Box,
|
|
11235
11420
|
{
|
|
11236
11421
|
alignItems: "center",
|
|
@@ -11238,7 +11423,7 @@ function WalletButton({
|
|
|
11238
11423
|
flexDirection: "column",
|
|
11239
11424
|
justifyContent: "center"
|
|
11240
11425
|
},
|
|
11241
|
-
/* @__PURE__ */
|
|
11426
|
+
/* @__PURE__ */ React62.createElement(
|
|
11242
11427
|
Box,
|
|
11243
11428
|
{
|
|
11244
11429
|
display: "flex",
|
|
@@ -11248,8 +11433,8 @@ function WalletButton({
|
|
|
11248
11433
|
paddingTop: "10",
|
|
11249
11434
|
position: "relative"
|
|
11250
11435
|
},
|
|
11251
|
-
connecting ? /* @__PURE__ */
|
|
11252
|
-
/* @__PURE__ */
|
|
11436
|
+
connecting ? /* @__PURE__ */ React62.createElement(LoadingSpinner, { wallet }) : null,
|
|
11437
|
+
/* @__PURE__ */ React62.createElement(
|
|
11253
11438
|
AsyncImage,
|
|
11254
11439
|
{
|
|
11255
11440
|
background: iconBackground,
|
|
@@ -11261,7 +11446,7 @@ function WalletButton({
|
|
|
11261
11446
|
}
|
|
11262
11447
|
)
|
|
11263
11448
|
),
|
|
11264
|
-
!connecting ? /* @__PURE__ */
|
|
11449
|
+
!connecting ? /* @__PURE__ */ React62.createElement(Box, { display: "flex", flexDirection: "column", textAlign: "center" }, /* @__PURE__ */ React62.createElement(
|
|
11265
11450
|
Text,
|
|
11266
11451
|
{
|
|
11267
11452
|
as: "h2",
|
|
@@ -11269,31 +11454,42 @@ function WalletButton({
|
|
|
11269
11454
|
size: "13",
|
|
11270
11455
|
weight: "medium"
|
|
11271
11456
|
},
|
|
11272
|
-
/* @__PURE__ */
|
|
11273
|
-
), wallet.recent && /* @__PURE__ */
|
|
11457
|
+
/* @__PURE__ */ React62.createElement(Box, { as: "span", position: "relative" }, shortName ?? name, !wallet.ready && " (unsupported)")
|
|
11458
|
+
), wallet.recent && /* @__PURE__ */ React62.createElement(Text, { color: "accentColor", size: "12", weight: "medium" }, i18n2.t("connect.recent"))) : null
|
|
11274
11459
|
)
|
|
11275
11460
|
);
|
|
11276
11461
|
}
|
|
11277
11462
|
function MobileOptions({ onClose }) {
|
|
11463
|
+
const { isMobile: isSmallScreen } = useDeviceType();
|
|
11464
|
+
let config2;
|
|
11465
|
+
try {
|
|
11466
|
+
config2 = useRainbowKitConfig();
|
|
11467
|
+
} catch (_err) {
|
|
11468
|
+
config2 = { mobileMode: "auto", compactLoginWallets: ["abcWallet"] };
|
|
11469
|
+
}
|
|
11470
|
+
const isCompactMode = isSmallScreen && config2?.mobileMode === "compact-login";
|
|
11471
|
+
if (isCompactMode) {
|
|
11472
|
+
return /* @__PURE__ */ React62.createElement(DesktopOptions, { onClose, compact: true });
|
|
11473
|
+
}
|
|
11278
11474
|
const titleId = "rk_connect_title";
|
|
11279
11475
|
const wallets = useWalletConnectors().filter(
|
|
11280
11476
|
(wallet) => wallet.isRainbowKitConnector
|
|
11281
11477
|
);
|
|
11282
|
-
const { disclaimer: Disclaimer, learnMoreUrl } =
|
|
11478
|
+
const { disclaimer: Disclaimer, learnMoreUrl } = useContext20(AppContext);
|
|
11283
11479
|
let headerLabel = null;
|
|
11284
11480
|
let walletContent = null;
|
|
11285
11481
|
let headerBackgroundContrast = false;
|
|
11286
11482
|
let headerBackButtonLink = null;
|
|
11287
|
-
const [walletStep, setWalletStep] =
|
|
11483
|
+
const [walletStep, setWalletStep] = useState18(
|
|
11288
11484
|
"CONNECT" /* Connect */
|
|
11289
11485
|
);
|
|
11290
|
-
const { i18n: i18n2 } =
|
|
11486
|
+
const { i18n: i18n2 } = useContext20(I18nContext);
|
|
11291
11487
|
const ios = isIOS();
|
|
11292
11488
|
switch (walletStep) {
|
|
11293
11489
|
case "CONNECT" /* Connect */: {
|
|
11294
11490
|
headerLabel = i18n2.t("connect.title");
|
|
11295
11491
|
headerBackgroundContrast = true;
|
|
11296
|
-
walletContent = /* @__PURE__ */
|
|
11492
|
+
walletContent = /* @__PURE__ */ React62.createElement(Box, null, /* @__PURE__ */ React62.createElement(
|
|
11297
11493
|
Box,
|
|
11298
11494
|
{
|
|
11299
11495
|
background: "profileForeground",
|
|
@@ -11302,10 +11498,10 @@ function MobileOptions({ onClose }) {
|
|
|
11302
11498
|
paddingBottom: "20",
|
|
11303
11499
|
paddingTop: "6"
|
|
11304
11500
|
},
|
|
11305
|
-
/* @__PURE__ */
|
|
11306
|
-
return /* @__PURE__ */
|
|
11501
|
+
/* @__PURE__ */ React62.createElement(Box, { display: "flex", style: { margin: "0 auto" } }, wallets.filter((wallet) => wallet.ready).map((wallet) => {
|
|
11502
|
+
return /* @__PURE__ */ React62.createElement(Box, { key: wallet.id, paddingX: "20" }, /* @__PURE__ */ React62.createElement(Box, { width: "60" }, /* @__PURE__ */ React62.createElement(WalletButton, { onClose, wallet })));
|
|
11307
11503
|
}))
|
|
11308
|
-
), /* @__PURE__ */
|
|
11504
|
+
), /* @__PURE__ */ React62.createElement(
|
|
11309
11505
|
Box,
|
|
11310
11506
|
{
|
|
11311
11507
|
background: "generalBorder",
|
|
@@ -11313,7 +11509,7 @@ function MobileOptions({ onClose }) {
|
|
|
11313
11509
|
marginBottom: "32",
|
|
11314
11510
|
marginTop: "-1"
|
|
11315
11511
|
}
|
|
11316
|
-
), /* @__PURE__ */
|
|
11512
|
+
), /* @__PURE__ */ React62.createElement(
|
|
11317
11513
|
Box,
|
|
11318
11514
|
{
|
|
11319
11515
|
alignItems: "center",
|
|
@@ -11323,7 +11519,7 @@ function MobileOptions({ onClose }) {
|
|
|
11323
11519
|
paddingX: "32",
|
|
11324
11520
|
style: { textAlign: "center" }
|
|
11325
11521
|
},
|
|
11326
|
-
/* @__PURE__ */
|
|
11522
|
+
/* @__PURE__ */ React62.createElement(
|
|
11327
11523
|
Box,
|
|
11328
11524
|
{
|
|
11329
11525
|
display: "flex",
|
|
@@ -11331,10 +11527,10 @@ function MobileOptions({ onClose }) {
|
|
|
11331
11527
|
gap: "8",
|
|
11332
11528
|
textAlign: "center"
|
|
11333
11529
|
},
|
|
11334
|
-
/* @__PURE__ */
|
|
11335
|
-
/* @__PURE__ */
|
|
11530
|
+
/* @__PURE__ */ React62.createElement(Text, { color: "modalText", size: "16", weight: "bold" }, i18n2.t("intro.title")),
|
|
11531
|
+
/* @__PURE__ */ React62.createElement(Text, { color: "modalTextSecondary", size: "16" }, i18n2.t("intro.description"))
|
|
11336
11532
|
)
|
|
11337
|
-
), /* @__PURE__ */
|
|
11533
|
+
), /* @__PURE__ */ React62.createElement(Box, { paddingTop: "32", paddingX: "20" }, /* @__PURE__ */ React62.createElement(Box, { display: "flex", gap: "14", justifyContent: "center" }, /* @__PURE__ */ React62.createElement(
|
|
11338
11534
|
ActionButton,
|
|
11339
11535
|
{
|
|
11340
11536
|
label: i18n2.t("intro.get.label"),
|
|
@@ -11342,7 +11538,7 @@ function MobileOptions({ onClose }) {
|
|
|
11342
11538
|
size: "large",
|
|
11343
11539
|
type: "secondary"
|
|
11344
11540
|
}
|
|
11345
|
-
), /* @__PURE__ */
|
|
11541
|
+
), /* @__PURE__ */ React62.createElement(
|
|
11346
11542
|
ActionButton,
|
|
11347
11543
|
{
|
|
11348
11544
|
href: learnMoreUrl,
|
|
@@ -11350,7 +11546,7 @@ function MobileOptions({ onClose }) {
|
|
|
11350
11546
|
size: "large",
|
|
11351
11547
|
type: "secondary"
|
|
11352
11548
|
}
|
|
11353
|
-
))), Disclaimer && /* @__PURE__ */
|
|
11549
|
+
))), Disclaimer && /* @__PURE__ */ React62.createElement(Box, { marginTop: "28", marginX: "32", textAlign: "center" }, /* @__PURE__ */ React62.createElement(Disclaimer, { Link: DisclaimerLink, Text: DisclaimerText })));
|
|
11354
11550
|
break;
|
|
11355
11551
|
}
|
|
11356
11552
|
case "GET" /* Get */: {
|
|
@@ -11359,7 +11555,7 @@ function MobileOptions({ onClose }) {
|
|
|
11359
11555
|
const mobileWallets = wallets?.filter(
|
|
11360
11556
|
(wallet) => wallet.downloadUrls?.ios || wallet.downloadUrls?.android || wallet.downloadUrls?.mobile
|
|
11361
11557
|
)?.splice(0, 3);
|
|
11362
|
-
walletContent = /* @__PURE__ */
|
|
11558
|
+
walletContent = /* @__PURE__ */ React62.createElement(Box, null, /* @__PURE__ */ React62.createElement(
|
|
11363
11559
|
Box,
|
|
11364
11560
|
{
|
|
11365
11561
|
alignItems: "center",
|
|
@@ -11376,7 +11572,7 @@ function MobileOptions({ onClose }) {
|
|
|
11376
11572
|
if (!downloadUrls?.ios && !downloadUrls?.android && !downloadUrls?.mobile) {
|
|
11377
11573
|
return null;
|
|
11378
11574
|
}
|
|
11379
|
-
return /* @__PURE__ */
|
|
11575
|
+
return /* @__PURE__ */ React62.createElement(
|
|
11380
11576
|
Box,
|
|
11381
11577
|
{
|
|
11382
11578
|
display: "flex",
|
|
@@ -11385,7 +11581,7 @@ function MobileOptions({ onClose }) {
|
|
|
11385
11581
|
paddingX: "20",
|
|
11386
11582
|
width: "full"
|
|
11387
11583
|
},
|
|
11388
|
-
/* @__PURE__ */
|
|
11584
|
+
/* @__PURE__ */ React62.createElement(Box, { style: { minHeight: 48, minWidth: 48 } }, /* @__PURE__ */ React62.createElement(
|
|
11389
11585
|
AsyncImage,
|
|
11390
11586
|
{
|
|
11391
11587
|
background: iconBackground,
|
|
@@ -11396,7 +11592,7 @@ function MobileOptions({ onClose }) {
|
|
|
11396
11592
|
width: "48"
|
|
11397
11593
|
}
|
|
11398
11594
|
)),
|
|
11399
|
-
/* @__PURE__ */
|
|
11595
|
+
/* @__PURE__ */ React62.createElement(Box, { display: "flex", flexDirection: "column", width: "full" }, /* @__PURE__ */ React62.createElement(Box, { alignItems: "center", display: "flex", height: "48" }, /* @__PURE__ */ React62.createElement(Box, { width: "full" }, /* @__PURE__ */ React62.createElement(Text, { color: "modalText", size: "18", weight: "bold" }, name)), /* @__PURE__ */ React62.createElement(
|
|
11400
11596
|
ActionButton,
|
|
11401
11597
|
{
|
|
11402
11598
|
href: (ios ? downloadUrls?.ios : downloadUrls?.android) || downloadUrls?.mobile,
|
|
@@ -11404,7 +11600,7 @@ function MobileOptions({ onClose }) {
|
|
|
11404
11600
|
size: "small",
|
|
11405
11601
|
type: "secondary"
|
|
11406
11602
|
}
|
|
11407
|
-
)), index < mobileWallets.length - 1 && /* @__PURE__ */
|
|
11603
|
+
)), index < mobileWallets.length - 1 && /* @__PURE__ */ React62.createElement(
|
|
11408
11604
|
Box,
|
|
11409
11605
|
{
|
|
11410
11606
|
background: "generalBorderDim",
|
|
@@ -11415,7 +11611,7 @@ function MobileOptions({ onClose }) {
|
|
|
11415
11611
|
))
|
|
11416
11612
|
);
|
|
11417
11613
|
})
|
|
11418
|
-
), /* @__PURE__ */
|
|
11614
|
+
), /* @__PURE__ */ React62.createElement(Box, { style: { marginBottom: "42px" } }), /* @__PURE__ */ React62.createElement(
|
|
11419
11615
|
Box,
|
|
11420
11616
|
{
|
|
11421
11617
|
alignItems: "center",
|
|
@@ -11425,7 +11621,7 @@ function MobileOptions({ onClose }) {
|
|
|
11425
11621
|
paddingX: "36",
|
|
11426
11622
|
style: { textAlign: "center" }
|
|
11427
11623
|
},
|
|
11428
|
-
/* @__PURE__ */
|
|
11624
|
+
/* @__PURE__ */ React62.createElement(
|
|
11429
11625
|
Box,
|
|
11430
11626
|
{
|
|
11431
11627
|
display: "flex",
|
|
@@ -11433,14 +11629,14 @@ function MobileOptions({ onClose }) {
|
|
|
11433
11629
|
gap: "12",
|
|
11434
11630
|
textAlign: "center"
|
|
11435
11631
|
},
|
|
11436
|
-
/* @__PURE__ */
|
|
11437
|
-
/* @__PURE__ */
|
|
11632
|
+
/* @__PURE__ */ React62.createElement(Text, { color: "modalText", size: "16", weight: "bold" }, i18n2.t("get.looking_for.title")),
|
|
11633
|
+
/* @__PURE__ */ React62.createElement(Text, { color: "modalTextSecondary", size: "16" }, i18n2.t("get.looking_for.mobile.description"))
|
|
11438
11634
|
)
|
|
11439
11635
|
));
|
|
11440
11636
|
break;
|
|
11441
11637
|
}
|
|
11442
11638
|
}
|
|
11443
|
-
return /* @__PURE__ */
|
|
11639
|
+
return /* @__PURE__ */ React62.createElement(Box, { display: "flex", flexDirection: "column", paddingBottom: "36" }, /* @__PURE__ */ React62.createElement(
|
|
11444
11640
|
Box,
|
|
11445
11641
|
{
|
|
11446
11642
|
background: headerBackgroundContrast ? "profileForeground" : "modalBackground",
|
|
@@ -11449,7 +11645,7 @@ function MobileOptions({ onClose }) {
|
|
|
11449
11645
|
paddingBottom: "4",
|
|
11450
11646
|
paddingTop: "14"
|
|
11451
11647
|
},
|
|
11452
|
-
/* @__PURE__ */
|
|
11648
|
+
/* @__PURE__ */ React62.createElement(
|
|
11453
11649
|
Box,
|
|
11454
11650
|
{
|
|
11455
11651
|
display: "flex",
|
|
@@ -11458,7 +11654,7 @@ function MobileOptions({ onClose }) {
|
|
|
11458
11654
|
paddingX: "20",
|
|
11459
11655
|
position: "relative"
|
|
11460
11656
|
},
|
|
11461
|
-
headerBackButtonLink && /* @__PURE__ */
|
|
11657
|
+
headerBackButtonLink && /* @__PURE__ */ React62.createElement(
|
|
11462
11658
|
Box,
|
|
11463
11659
|
{
|
|
11464
11660
|
display: "flex",
|
|
@@ -11469,7 +11665,7 @@ function MobileOptions({ onClose }) {
|
|
|
11469
11665
|
marginTop: -20
|
|
11470
11666
|
}
|
|
11471
11667
|
},
|
|
11472
|
-
/* @__PURE__ */
|
|
11668
|
+
/* @__PURE__ */ React62.createElement(
|
|
11473
11669
|
Box,
|
|
11474
11670
|
{
|
|
11475
11671
|
alignItems: "center",
|
|
@@ -11488,10 +11684,10 @@ function MobileOptions({ onClose }) {
|
|
|
11488
11684
|
transition: "default",
|
|
11489
11685
|
type: "button"
|
|
11490
11686
|
},
|
|
11491
|
-
/* @__PURE__ */
|
|
11687
|
+
/* @__PURE__ */ React62.createElement(BackIcon, null)
|
|
11492
11688
|
)
|
|
11493
11689
|
),
|
|
11494
|
-
/* @__PURE__ */
|
|
11690
|
+
/* @__PURE__ */ React62.createElement(Box, { marginTop: "4", textAlign: "center", width: "full" }, /* @__PURE__ */ React62.createElement(
|
|
11495
11691
|
Text,
|
|
11496
11692
|
{
|
|
11497
11693
|
as: "h1",
|
|
@@ -11502,7 +11698,7 @@ function MobileOptions({ onClose }) {
|
|
|
11502
11698
|
},
|
|
11503
11699
|
headerLabel
|
|
11504
11700
|
)),
|
|
11505
|
-
/* @__PURE__ */
|
|
11701
|
+
/* @__PURE__ */ React62.createElement(
|
|
11506
11702
|
Box,
|
|
11507
11703
|
{
|
|
11508
11704
|
alignItems: "center",
|
|
@@ -11512,25 +11708,25 @@ function MobileOptions({ onClose }) {
|
|
|
11512
11708
|
position: "absolute",
|
|
11513
11709
|
right: "0"
|
|
11514
11710
|
},
|
|
11515
|
-
/* @__PURE__ */
|
|
11711
|
+
/* @__PURE__ */ React62.createElement(
|
|
11516
11712
|
Box,
|
|
11517
11713
|
{
|
|
11518
11714
|
style: { marginBottom: -20, marginTop: -20 }
|
|
11519
11715
|
},
|
|
11520
|
-
/* @__PURE__ */
|
|
11716
|
+
/* @__PURE__ */ React62.createElement(CloseButton, { onClose })
|
|
11521
11717
|
)
|
|
11522
11718
|
)
|
|
11523
11719
|
)
|
|
11524
|
-
), /* @__PURE__ */
|
|
11720
|
+
), /* @__PURE__ */ React62.createElement(Box, { display: "flex", flexDirection: "column" }, walletContent));
|
|
11525
11721
|
}
|
|
11526
11722
|
|
|
11527
11723
|
// src/components/ConnectOptions/MobileStatus.tsx
|
|
11528
|
-
import
|
|
11724
|
+
import React63, { useContext as useContext21 } from "react";
|
|
11529
11725
|
var MobileStatus = ({ onClose }) => {
|
|
11530
|
-
const { connector } =
|
|
11531
|
-
const { i18n: i18n2 } =
|
|
11726
|
+
const { connector } = useContext21(WalletButtonContext);
|
|
11727
|
+
const { i18n: i18n2 } = useContext21(I18nContext);
|
|
11532
11728
|
const connectorName = connector?.name || "";
|
|
11533
|
-
return /* @__PURE__ */
|
|
11729
|
+
return /* @__PURE__ */ React63.createElement(Box, null, /* @__PURE__ */ React63.createElement(
|
|
11534
11730
|
Box,
|
|
11535
11731
|
{
|
|
11536
11732
|
display: "flex",
|
|
@@ -11540,7 +11736,7 @@ var MobileStatus = ({ onClose }) => {
|
|
|
11540
11736
|
background: "profileForeground",
|
|
11541
11737
|
flexDirection: "column"
|
|
11542
11738
|
},
|
|
11543
|
-
/* @__PURE__ */
|
|
11739
|
+
/* @__PURE__ */ React63.createElement(
|
|
11544
11740
|
Box,
|
|
11545
11741
|
{
|
|
11546
11742
|
width: "full",
|
|
@@ -11549,10 +11745,10 @@ var MobileStatus = ({ onClose }) => {
|
|
|
11549
11745
|
marginTop: "18",
|
|
11550
11746
|
marginRight: "24"
|
|
11551
11747
|
},
|
|
11552
|
-
/* @__PURE__ */
|
|
11748
|
+
/* @__PURE__ */ React63.createElement(CloseButton, { onClose })
|
|
11553
11749
|
),
|
|
11554
|
-
/* @__PURE__ */
|
|
11555
|
-
/* @__PURE__ */
|
|
11750
|
+
/* @__PURE__ */ React63.createElement(Box, { width: "60" }, /* @__PURE__ */ React63.createElement(WalletButton, { onClose, wallet: connector, connecting: true })),
|
|
11751
|
+
/* @__PURE__ */ React63.createElement(Box, { marginTop: "20" }, /* @__PURE__ */ React63.createElement(
|
|
11556
11752
|
Text,
|
|
11557
11753
|
{
|
|
11558
11754
|
textAlign: "center",
|
|
@@ -11564,7 +11760,7 @@ var MobileStatus = ({ onClose }) => {
|
|
|
11564
11760
|
wallet: connectorName
|
|
11565
11761
|
})
|
|
11566
11762
|
)),
|
|
11567
|
-
/* @__PURE__ */
|
|
11763
|
+
/* @__PURE__ */ React63.createElement(Box, { maxWidth: "full", marginTop: "8" }, /* @__PURE__ */ React63.createElement(Text, { textAlign: "center", color: "modalText", size: "16", weight: "medium" }, i18n2.t("connect.status.confirm_mobile", {
|
|
11568
11764
|
wallet: connectorName
|
|
11569
11765
|
})))
|
|
11570
11766
|
));
|
|
@@ -11572,17 +11768,17 @@ var MobileStatus = ({ onClose }) => {
|
|
|
11572
11768
|
|
|
11573
11769
|
// src/components/ConnectOptions/ConnectOptions.tsx
|
|
11574
11770
|
function ConnectOptions({ onClose }) {
|
|
11575
|
-
const { connector } =
|
|
11576
|
-
return isMobile() ? connector ? /* @__PURE__ */
|
|
11771
|
+
const { connector } = useContext22(WalletButtonContext);
|
|
11772
|
+
return isMobile() ? connector ? /* @__PURE__ */ React64.createElement(MobileStatus, { onClose }) : /* @__PURE__ */ React64.createElement(MobileOptions, { onClose }) : /* @__PURE__ */ React64.createElement(DesktopOptions, { onClose });
|
|
11577
11773
|
}
|
|
11578
11774
|
|
|
11579
11775
|
// src/components/ConnectOptions/MultiChainConnectOptions.tsx
|
|
11580
11776
|
import { useWallet as useWallet3 } from "@solana/wallet-adapter-react";
|
|
11581
|
-
import
|
|
11777
|
+
import React67, { useContext as useContext23, useCallback as useCallback13, useState as useState20 } from "react";
|
|
11582
11778
|
|
|
11583
11779
|
// src/components/ChainSelector/ChainSelector.tsx
|
|
11584
11780
|
import clsx3 from "clsx";
|
|
11585
|
-
import
|
|
11781
|
+
import React65 from "react";
|
|
11586
11782
|
|
|
11587
11783
|
// src/components/ChainSelector/ChainSelector.css.ts
|
|
11588
11784
|
var chainOption = "_6lfrtn3 kwh1ipa kwh1ip4 kwh1ip2q kwh1ipy kwh1ip8u";
|
|
@@ -11597,7 +11793,7 @@ function ChainSelector({
|
|
|
11597
11793
|
onChange,
|
|
11598
11794
|
showSolana = true
|
|
11599
11795
|
}) {
|
|
11600
|
-
return /* @__PURE__ */
|
|
11796
|
+
return /* @__PURE__ */ React65.createElement(Box, { className: chainSelectorContainer }, /* @__PURE__ */ React65.createElement(
|
|
11601
11797
|
"button",
|
|
11602
11798
|
{
|
|
11603
11799
|
type: "button",
|
|
@@ -11607,7 +11803,7 @@ function ChainSelector({
|
|
|
11607
11803
|
),
|
|
11608
11804
|
onClick: () => onChange("evm")
|
|
11609
11805
|
},
|
|
11610
|
-
/* @__PURE__ */
|
|
11806
|
+
/* @__PURE__ */ React65.createElement(
|
|
11611
11807
|
Text,
|
|
11612
11808
|
{
|
|
11613
11809
|
color: selectedChain === "evm" ? "accentColorForeground" : "modalText",
|
|
@@ -11618,7 +11814,7 @@ function ChainSelector({
|
|
|
11618
11814
|
},
|
|
11619
11815
|
"Ethereum & EVM"
|
|
11620
11816
|
)
|
|
11621
|
-
), showSolana && /* @__PURE__ */
|
|
11817
|
+
), showSolana && /* @__PURE__ */ React65.createElement(
|
|
11622
11818
|
"button",
|
|
11623
11819
|
{
|
|
11624
11820
|
type: "button",
|
|
@@ -11628,7 +11824,7 @@ function ChainSelector({
|
|
|
11628
11824
|
),
|
|
11629
11825
|
onClick: () => onChange("solana")
|
|
11630
11826
|
},
|
|
11631
|
-
/* @__PURE__ */
|
|
11827
|
+
/* @__PURE__ */ React65.createElement(
|
|
11632
11828
|
Text,
|
|
11633
11829
|
{
|
|
11634
11830
|
color: selectedChain === "solana" ? "accentColorForeground" : "modalText",
|
|
@@ -11644,7 +11840,7 @@ function ChainSelector({
|
|
|
11644
11840
|
|
|
11645
11841
|
// src/components/SolanaWalletList/SolanaWalletList.tsx
|
|
11646
11842
|
import { useWallet as useWallet2 } from "@solana/wallet-adapter-react";
|
|
11647
|
-
import
|
|
11843
|
+
import React66, { useCallback as useCallback12, useState as useState19 } from "react";
|
|
11648
11844
|
|
|
11649
11845
|
// src/components/SolanaWalletList/SolanaWalletList.css.ts
|
|
11650
11846
|
var installButton = "lkxkyzc kwh1ip19 kwh1ip1f";
|
|
@@ -11661,7 +11857,7 @@ function SolanaWalletList({
|
|
|
11661
11857
|
onError
|
|
11662
11858
|
}) {
|
|
11663
11859
|
const { wallets, select, connect, connecting } = useWallet2();
|
|
11664
|
-
const [connectingWallet, setConnectingWallet] =
|
|
11860
|
+
const [connectingWallet, setConnectingWallet] = useState19(null);
|
|
11665
11861
|
const handleWalletClick = useCallback12(
|
|
11666
11862
|
async (walletName2) => {
|
|
11667
11863
|
try {
|
|
@@ -11686,13 +11882,13 @@ function SolanaWalletList({
|
|
|
11686
11882
|
window.open(url, "_blank", "noopener,noreferrer");
|
|
11687
11883
|
}, []);
|
|
11688
11884
|
if (wallets.length === 0) {
|
|
11689
|
-
return /* @__PURE__ */
|
|
11885
|
+
return /* @__PURE__ */ React66.createElement(Box, { className: walletListContainer }, /* @__PURE__ */ React66.createElement(Text, { color: "modalTextSecondary", style: { textAlign: "center" } }, "No Solana wallets detected. Please install a Solana wallet extension."));
|
|
11690
11886
|
}
|
|
11691
|
-
return /* @__PURE__ */
|
|
11887
|
+
return /* @__PURE__ */ React66.createElement(Box, { className: walletListContainer }, wallets.map((wallet) => {
|
|
11692
11888
|
const { adapter } = wallet;
|
|
11693
11889
|
const isInstalled = adapter.readyState === "Installed";
|
|
11694
11890
|
const isConnecting = connectingWallet === adapter.name || connecting;
|
|
11695
|
-
return /* @__PURE__ */
|
|
11891
|
+
return /* @__PURE__ */ React66.createElement(
|
|
11696
11892
|
Box,
|
|
11697
11893
|
{
|
|
11698
11894
|
key: adapter.name,
|
|
@@ -11703,7 +11899,7 @@ function SolanaWalletList({
|
|
|
11703
11899
|
opacity: isConnecting ? 0.6 : 1
|
|
11704
11900
|
}
|
|
11705
11901
|
},
|
|
11706
|
-
/* @__PURE__ */
|
|
11902
|
+
/* @__PURE__ */ React66.createElement(
|
|
11707
11903
|
"img",
|
|
11708
11904
|
{
|
|
11709
11905
|
src: adapter.icon,
|
|
@@ -11711,8 +11907,8 @@ function SolanaWalletList({
|
|
|
11711
11907
|
className: walletIcon
|
|
11712
11908
|
}
|
|
11713
11909
|
),
|
|
11714
|
-
/* @__PURE__ */
|
|
11715
|
-
!isInstalled && adapter.url && /* @__PURE__ */
|
|
11910
|
+
/* @__PURE__ */ React66.createElement(Box, { className: walletInfo }, /* @__PURE__ */ React66.createElement(Text, { color: "modalText", className: walletName }, adapter.name), /* @__PURE__ */ React66.createElement(Text, { color: "modalTextSecondary", className: walletStatus }, isConnecting ? "Connecting..." : isInstalled ? "Detected" : "Not installed")),
|
|
11911
|
+
!isInstalled && adapter.url && /* @__PURE__ */ React66.createElement(
|
|
11716
11912
|
"button",
|
|
11717
11913
|
{
|
|
11718
11914
|
type: "button",
|
|
@@ -11733,33 +11929,33 @@ function MultiChainConnectOptions({
|
|
|
11733
11929
|
onClose,
|
|
11734
11930
|
showChainSelector = true
|
|
11735
11931
|
}) {
|
|
11736
|
-
const multiChainContext =
|
|
11737
|
-
const { connector } =
|
|
11932
|
+
const multiChainContext = useContext23(MultiChainContext);
|
|
11933
|
+
const { connector } = useContext23(WalletButtonContext);
|
|
11738
11934
|
if (!multiChainContext) {
|
|
11739
|
-
return isMobile() ? connector ? /* @__PURE__ */
|
|
11935
|
+
return isMobile() ? connector ? /* @__PURE__ */ React67.createElement(MobileStatus, { onClose }) : /* @__PURE__ */ React67.createElement(MobileOptions, { onClose }) : /* @__PURE__ */ React67.createElement(DesktopOptions, { onClose });
|
|
11740
11936
|
}
|
|
11741
11937
|
const { activeChain, setActiveChain } = multiChainContext;
|
|
11742
11938
|
if (isMobile()) {
|
|
11743
|
-
return connector ? /* @__PURE__ */
|
|
11939
|
+
return connector ? /* @__PURE__ */ React67.createElement(MobileStatus, { onClose }) : /* @__PURE__ */ React67.createElement(MobileOptions, { onClose });
|
|
11744
11940
|
}
|
|
11745
11941
|
if (showChainSelector) {
|
|
11746
|
-
return /* @__PURE__ */
|
|
11942
|
+
return /* @__PURE__ */ React67.createElement(Box, { display: "flex", flexDirection: "column", style: { height: "100%" } }, /* @__PURE__ */ React67.createElement(Box, { paddingX: "16", paddingTop: "8", paddingBottom: "4" }, /* @__PURE__ */ React67.createElement(
|
|
11747
11943
|
ChainSelector,
|
|
11748
11944
|
{
|
|
11749
11945
|
selectedChain: activeChain,
|
|
11750
11946
|
onChange: setActiveChain,
|
|
11751
11947
|
showSolana: true
|
|
11752
11948
|
}
|
|
11753
|
-
)), activeChain === "evm" ? /* @__PURE__ */
|
|
11949
|
+
)), activeChain === "evm" ? /* @__PURE__ */ React67.createElement(DesktopOptions, { onClose }) : /* @__PURE__ */ React67.createElement(Box, { padding: "16" }, /* @__PURE__ */ React67.createElement(SolanaWalletList, { onConnect: onClose })));
|
|
11754
11950
|
}
|
|
11755
|
-
return /* @__PURE__ */
|
|
11951
|
+
return /* @__PURE__ */ React67.createElement(UnifiedWalletList, { onClose });
|
|
11756
11952
|
}
|
|
11757
11953
|
function UnifiedWalletList({ onClose }) {
|
|
11758
11954
|
const { wallets: solanaWallets, select, connecting } = useWallet3();
|
|
11759
|
-
const multiChainContext =
|
|
11760
|
-
const [connectingWallet, setConnectingWallet] =
|
|
11761
|
-
const [shouldCloseOnConnect, setShouldCloseOnConnect] =
|
|
11762
|
-
|
|
11955
|
+
const multiChainContext = useContext23(MultiChainContext);
|
|
11956
|
+
const [connectingWallet, setConnectingWallet] = useState20(null);
|
|
11957
|
+
const [shouldCloseOnConnect, setShouldCloseOnConnect] = useState20(false);
|
|
11958
|
+
React67.useEffect(() => {
|
|
11763
11959
|
if (shouldCloseOnConnect && multiChainContext?.solanaConnected) {
|
|
11764
11960
|
setShouldCloseOnConnect(false);
|
|
11765
11961
|
onClose();
|
|
@@ -11808,7 +12004,7 @@ function UnifiedWalletList({ onClose }) {
|
|
|
11808
12004
|
},
|
|
11809
12005
|
[solanaWallets, select, multiChainContext?.solanaConnected, onClose]
|
|
11810
12006
|
);
|
|
11811
|
-
const groupedSolanaWallets =
|
|
12007
|
+
const groupedSolanaWallets = React67.useMemo(() => {
|
|
11812
12008
|
const groups = {
|
|
11813
12009
|
Solana: []
|
|
11814
12010
|
};
|
|
@@ -11838,7 +12034,7 @@ function UnifiedWalletList({ onClose }) {
|
|
|
11838
12034
|
groups.Solana = sortedWallets;
|
|
11839
12035
|
return groups;
|
|
11840
12036
|
}, [solanaWallets]);
|
|
11841
|
-
return /* @__PURE__ */
|
|
12037
|
+
return /* @__PURE__ */ React67.createElement(Box, { display: "flex", flexDirection: "column", style: { height: "100%" } }, /* @__PURE__ */ React67.createElement(
|
|
11842
12038
|
DesktopOptions,
|
|
11843
12039
|
{
|
|
11844
12040
|
onClose,
|
|
@@ -11854,43 +12050,43 @@ function UnifiedWalletList({ onClose }) {
|
|
|
11854
12050
|
function ConnectModal({ onClose, open }) {
|
|
11855
12051
|
const titleId = "rk_connect_title";
|
|
11856
12052
|
const connectionStatus = useConnectionStatus();
|
|
11857
|
-
const multiChainContext =
|
|
12053
|
+
const multiChainContext = useContext24(MultiChainContext);
|
|
11858
12054
|
const { disconnect } = useDisconnect3();
|
|
11859
12055
|
const { isConnecting } = useAccount14();
|
|
11860
|
-
const onAuthCancel =
|
|
12056
|
+
const onAuthCancel = React68.useCallback(() => {
|
|
11861
12057
|
onClose();
|
|
11862
12058
|
disconnect();
|
|
11863
12059
|
}, [onClose, disconnect]);
|
|
11864
|
-
const onConnectModalCancel =
|
|
12060
|
+
const onConnectModalCancel = React68.useCallback(() => {
|
|
11865
12061
|
if (isConnecting)
|
|
11866
12062
|
disconnect();
|
|
11867
12063
|
onClose();
|
|
11868
12064
|
}, [onClose, disconnect, isConnecting]);
|
|
11869
12065
|
if (connectionStatus === "disconnected") {
|
|
11870
|
-
return /* @__PURE__ */
|
|
12066
|
+
return /* @__PURE__ */ React68.createElement(Dialog, { onClose: onConnectModalCancel, open, titleId }, /* @__PURE__ */ React68.createElement(DialogContent, { bottomSheetOnMobile: true, padding: "0", wide: true }, multiChainContext ? /* @__PURE__ */ React68.createElement(
|
|
11871
12067
|
MultiChainConnectOptions,
|
|
11872
12068
|
{
|
|
11873
12069
|
onClose: onConnectModalCancel,
|
|
11874
12070
|
showChainSelector: false
|
|
11875
12071
|
}
|
|
11876
|
-
) : /* @__PURE__ */
|
|
12072
|
+
) : /* @__PURE__ */ React68.createElement(ConnectOptions, { onClose: onConnectModalCancel })));
|
|
11877
12073
|
}
|
|
11878
12074
|
if (connectionStatus === "unauthenticated") {
|
|
11879
|
-
return /* @__PURE__ */
|
|
12075
|
+
return /* @__PURE__ */ React68.createElement(Dialog, { onClose: onAuthCancel, open, titleId }, /* @__PURE__ */ React68.createElement(DialogContent, { bottomSheetOnMobile: true, padding: "0" }, /* @__PURE__ */ React68.createElement(SignIn, { onClose: onAuthCancel, onCloseModal: onClose })));
|
|
11880
12076
|
}
|
|
11881
12077
|
return null;
|
|
11882
12078
|
}
|
|
11883
12079
|
|
|
11884
12080
|
// src/components/RainbowKitProvider/ModalContext.tsx
|
|
11885
12081
|
function useModalStateValue() {
|
|
11886
|
-
const [isModalOpen, setModalOpen] =
|
|
12082
|
+
const [isModalOpen, setModalOpen] = useState21(false);
|
|
11887
12083
|
return {
|
|
11888
12084
|
closeModal: useCallback14(() => setModalOpen(false), []),
|
|
11889
12085
|
isModalOpen,
|
|
11890
12086
|
openModal: useCallback14(() => setModalOpen(true), [])
|
|
11891
12087
|
};
|
|
11892
12088
|
}
|
|
11893
|
-
var ModalContext =
|
|
12089
|
+
var ModalContext = createContext14({
|
|
11894
12090
|
accountModalOpen: false,
|
|
11895
12091
|
chainModalOpen: false,
|
|
11896
12092
|
connectModalOpen: false,
|
|
@@ -11914,12 +12110,12 @@ function ModalProvider({ children }) {
|
|
|
11914
12110
|
isModalOpen: chainModalOpen,
|
|
11915
12111
|
openModal: openChainModal
|
|
11916
12112
|
} = useModalStateValue();
|
|
11917
|
-
const [isWalletConnectModalOpen, setIsWalletConnectModalOpen] =
|
|
12113
|
+
const [isWalletConnectModalOpen, setIsWalletConnectModalOpen] = useState21(false);
|
|
11918
12114
|
const connectionStatus = useConnectionStatus();
|
|
11919
12115
|
const { chainId } = useAccount15();
|
|
11920
12116
|
const { chains } = useConfig3();
|
|
11921
12117
|
const isCurrentChainSupported = chains.some((chain) => chain.id === chainId);
|
|
11922
|
-
const multiChainContext =
|
|
12118
|
+
const multiChainContext = useContext25(MultiChainContext);
|
|
11923
12119
|
const _isAnyChainConnected = connectionStatus === "connected" || multiChainContext?.solanaConnected;
|
|
11924
12120
|
const closeModals = useCallback14(
|
|
11925
12121
|
({ keepConnectModalOpen = false } = {}) => {
|
|
@@ -11936,11 +12132,11 @@ function ModalProvider({ children }) {
|
|
|
11936
12132
|
onConnect: () => closeModals({ keepConnectModalOpen: isUnauthenticated }),
|
|
11937
12133
|
onDisconnect: () => closeModals()
|
|
11938
12134
|
});
|
|
11939
|
-
|
|
12135
|
+
useEffect21(() => {
|
|
11940
12136
|
if (isUnauthenticated)
|
|
11941
12137
|
closeModals();
|
|
11942
12138
|
}, [isUnauthenticated, closeModals]);
|
|
11943
|
-
return /* @__PURE__ */
|
|
12139
|
+
return /* @__PURE__ */ React69.createElement(
|
|
11944
12140
|
ModalContext.Provider,
|
|
11945
12141
|
{
|
|
11946
12142
|
value: useMemo10(
|
|
@@ -11969,13 +12165,13 @@ function ModalProvider({ children }) {
|
|
|
11969
12165
|
)
|
|
11970
12166
|
},
|
|
11971
12167
|
children,
|
|
11972
|
-
/* @__PURE__ */
|
|
11973
|
-
/* @__PURE__ */
|
|
11974
|
-
/* @__PURE__ */
|
|
12168
|
+
/* @__PURE__ */ React69.createElement(ConnectModal, { onClose: closeConnectModal, open: connectModalOpen }),
|
|
12169
|
+
/* @__PURE__ */ React69.createElement(AccountModal, { onClose: closeAccountModal, open: accountModalOpen }),
|
|
12170
|
+
/* @__PURE__ */ React69.createElement(ChainModal, { onClose: closeChainModal, open: chainModalOpen })
|
|
11975
12171
|
);
|
|
11976
12172
|
}
|
|
11977
12173
|
function useModalState() {
|
|
11978
|
-
const { accountModalOpen, chainModalOpen, connectModalOpen } =
|
|
12174
|
+
const { accountModalOpen, chainModalOpen, connectModalOpen } = useContext25(ModalContext);
|
|
11979
12175
|
return {
|
|
11980
12176
|
accountModalOpen,
|
|
11981
12177
|
chainModalOpen,
|
|
@@ -11983,19 +12179,19 @@ function useModalState() {
|
|
|
11983
12179
|
};
|
|
11984
12180
|
}
|
|
11985
12181
|
function useAccountModal() {
|
|
11986
|
-
const { accountModalOpen, openAccountModal } =
|
|
12182
|
+
const { accountModalOpen, openAccountModal } = useContext25(ModalContext);
|
|
11987
12183
|
return { accountModalOpen, openAccountModal };
|
|
11988
12184
|
}
|
|
11989
12185
|
function useChainModal() {
|
|
11990
|
-
const { chainModalOpen, openChainModal } =
|
|
12186
|
+
const { chainModalOpen, openChainModal } = useContext25(ModalContext);
|
|
11991
12187
|
return { chainModalOpen, openChainModal };
|
|
11992
12188
|
}
|
|
11993
12189
|
function useWalletConnectOpenState() {
|
|
11994
|
-
const { isWalletConnectModalOpen, setIsWalletConnectModalOpen } =
|
|
12190
|
+
const { isWalletConnectModalOpen, setIsWalletConnectModalOpen } = useContext25(ModalContext);
|
|
11995
12191
|
return { isWalletConnectModalOpen, setIsWalletConnectModalOpen };
|
|
11996
12192
|
}
|
|
11997
12193
|
function useConnectModal() {
|
|
11998
|
-
const { connectModalOpen, openConnectModal } =
|
|
12194
|
+
const { connectModalOpen, openConnectModal } = useContext25(ModalContext);
|
|
11999
12195
|
const { isWalletConnectModalOpen } = useWalletConnectOpenState();
|
|
12000
12196
|
return {
|
|
12001
12197
|
connectModalOpen: connectModalOpen || isWalletConnectModalOpen,
|
|
@@ -12023,8 +12219,8 @@ function ConnectButtonRenderer({
|
|
|
12023
12219
|
const chainIconUrl = rainbowKitChain?.iconUrl ?? void 0;
|
|
12024
12220
|
const chainIconBackground = rainbowKitChain?.iconBackground ?? void 0;
|
|
12025
12221
|
const resolvedChainIconUrl = useAsyncImage(chainIconUrl);
|
|
12026
|
-
const multiChainContext =
|
|
12027
|
-
const showRecentTransactions =
|
|
12222
|
+
const multiChainContext = useContext26(MultiChainContext);
|
|
12223
|
+
const showRecentTransactions = useContext26(ShowRecentTransactionsContext);
|
|
12028
12224
|
const hasPendingTransactions = useRecentTransactions().some(({ status }) => status === "pending") && showRecentTransactions;
|
|
12029
12225
|
const { showBalance } = useShowBalance();
|
|
12030
12226
|
const computeShouldShowBalance = () => {
|
|
@@ -12046,7 +12242,7 @@ function ConnectButtonRenderer({
|
|
|
12046
12242
|
const { openChainModal } = useChainModal();
|
|
12047
12243
|
const { openAccountModal } = useAccountModal();
|
|
12048
12244
|
const { accountModalOpen, chainModalOpen, connectModalOpen } = useModalState();
|
|
12049
|
-
return /* @__PURE__ */
|
|
12245
|
+
return /* @__PURE__ */ React70.createElement(React70.Fragment, null, children({
|
|
12050
12246
|
account: address ? {
|
|
12051
12247
|
address,
|
|
12052
12248
|
balanceDecimals: balance?.decimals,
|
|
@@ -12103,14 +12299,14 @@ function ConnectButton({
|
|
|
12103
12299
|
const chains = useRainbowKitChains();
|
|
12104
12300
|
const connectionStatus = useConnectionStatus();
|
|
12105
12301
|
const { setShowBalance } = useShowBalance();
|
|
12106
|
-
const [ready, setReady] =
|
|
12107
|
-
const { i18n: i18n2 } =
|
|
12108
|
-
|
|
12302
|
+
const [ready, setReady] = useState22(false);
|
|
12303
|
+
const { i18n: i18n2 } = useContext27(I18nContext);
|
|
12304
|
+
useEffect22(() => {
|
|
12109
12305
|
setShowBalance(showBalance);
|
|
12110
12306
|
if (!ready)
|
|
12111
12307
|
setReady(true);
|
|
12112
12308
|
}, [showBalance, setShowBalance]);
|
|
12113
|
-
return ready ? /* @__PURE__ */
|
|
12309
|
+
return ready ? /* @__PURE__ */ React71.createElement(ConnectButtonRenderer, null, ({
|
|
12114
12310
|
account,
|
|
12115
12311
|
chain,
|
|
12116
12312
|
mounted,
|
|
@@ -12130,7 +12326,7 @@ function ConnectButton({
|
|
|
12130
12326
|
ensName: void 0,
|
|
12131
12327
|
hasPendingTransactions: false
|
|
12132
12328
|
} : void 0);
|
|
12133
|
-
return /* @__PURE__ */
|
|
12329
|
+
return /* @__PURE__ */ React71.createElement(
|
|
12134
12330
|
Box,
|
|
12135
12331
|
{
|
|
12136
12332
|
display: "flex",
|
|
@@ -12144,7 +12340,7 @@ function ConnectButton({
|
|
|
12144
12340
|
}
|
|
12145
12341
|
}
|
|
12146
12342
|
},
|
|
12147
|
-
ready2 && isAnyChainConnected ? /* @__PURE__ */
|
|
12343
|
+
ready2 && isAnyChainConnected ? /* @__PURE__ */ React71.createElement(React71.Fragment, null, chain && (chains.length > 1 || unsupportedChain) && /* @__PURE__ */ React71.createElement(
|
|
12148
12344
|
Box,
|
|
12149
12345
|
{
|
|
12150
12346
|
alignItems: "center",
|
|
@@ -12176,7 +12372,7 @@ function ConnectButton({
|
|
|
12176
12372
|
transition: "default",
|
|
12177
12373
|
type: "button"
|
|
12178
12374
|
},
|
|
12179
|
-
unsupportedChain ? /* @__PURE__ */
|
|
12375
|
+
unsupportedChain ? /* @__PURE__ */ React71.createElement(
|
|
12180
12376
|
Box,
|
|
12181
12377
|
{
|
|
12182
12378
|
alignItems: "center",
|
|
@@ -12185,7 +12381,7 @@ function ConnectButton({
|
|
|
12185
12381
|
paddingX: "4"
|
|
12186
12382
|
},
|
|
12187
12383
|
i18n2.t("connect_wallet.wrong_network.label")
|
|
12188
|
-
) : /* @__PURE__ */
|
|
12384
|
+
) : /* @__PURE__ */ React71.createElement(Box, { alignItems: "center", display: "flex", gap: "6" }, chain.hasIcon ? /* @__PURE__ */ React71.createElement(
|
|
12189
12385
|
Box,
|
|
12190
12386
|
{
|
|
12191
12387
|
display: mapResponsiveValue(
|
|
@@ -12195,7 +12391,7 @@ function ConnectButton({
|
|
|
12195
12391
|
height: "24",
|
|
12196
12392
|
width: "24"
|
|
12197
12393
|
},
|
|
12198
|
-
/* @__PURE__ */
|
|
12394
|
+
/* @__PURE__ */ React71.createElement(
|
|
12199
12395
|
AsyncImage,
|
|
12200
12396
|
{
|
|
12201
12397
|
alt: chain.name ?? "Chain icon",
|
|
@@ -12206,7 +12402,7 @@ function ConnectButton({
|
|
|
12206
12402
|
width: "24"
|
|
12207
12403
|
}
|
|
12208
12404
|
)
|
|
12209
|
-
) : null, /* @__PURE__ */
|
|
12405
|
+
) : null, /* @__PURE__ */ React71.createElement(
|
|
12210
12406
|
Box,
|
|
12211
12407
|
{
|
|
12212
12408
|
display: mapResponsiveValue(chainStatus, (value) => {
|
|
@@ -12218,8 +12414,8 @@ function ConnectButton({
|
|
|
12218
12414
|
},
|
|
12219
12415
|
chain.name ?? chain.id
|
|
12220
12416
|
)),
|
|
12221
|
-
/* @__PURE__ */
|
|
12222
|
-
), !unsupportedChain && displayAccount && /* @__PURE__ */
|
|
12417
|
+
/* @__PURE__ */ React71.createElement(DropdownIcon, null)
|
|
12418
|
+
), !unsupportedChain && displayAccount && /* @__PURE__ */ React71.createElement(
|
|
12223
12419
|
Box,
|
|
12224
12420
|
{
|
|
12225
12421
|
alignItems: "center",
|
|
@@ -12240,7 +12436,7 @@ function ConnectButton({
|
|
|
12240
12436
|
transition: "default",
|
|
12241
12437
|
type: "button"
|
|
12242
12438
|
},
|
|
12243
|
-
displayAccount.displayBalance && /* @__PURE__ */
|
|
12439
|
+
displayAccount.displayBalance && /* @__PURE__ */ React71.createElement(
|
|
12244
12440
|
Box,
|
|
12245
12441
|
{
|
|
12246
12442
|
display: mapResponsiveValue(
|
|
@@ -12252,7 +12448,7 @@ function ConnectButton({
|
|
|
12252
12448
|
},
|
|
12253
12449
|
displayAccount.displayBalance
|
|
12254
12450
|
),
|
|
12255
|
-
/* @__PURE__ */
|
|
12451
|
+
/* @__PURE__ */ React71.createElement(
|
|
12256
12452
|
Box,
|
|
12257
12453
|
{
|
|
12258
12454
|
background: normalizeResponsiveValue(showBalance)[isMobile() ? "smallScreen" : "largeScreen"] ? "connectButtonInnerBackground" : "connectButtonBackground",
|
|
@@ -12267,7 +12463,7 @@ function ConnectButton({
|
|
|
12267
12463
|
paddingY: "6",
|
|
12268
12464
|
transition: "default"
|
|
12269
12465
|
},
|
|
12270
|
-
/* @__PURE__ */
|
|
12466
|
+
/* @__PURE__ */ React71.createElement(
|
|
12271
12467
|
Box,
|
|
12272
12468
|
{
|
|
12273
12469
|
alignItems: "center",
|
|
@@ -12275,7 +12471,7 @@ function ConnectButton({
|
|
|
12275
12471
|
gap: "6",
|
|
12276
12472
|
height: "24"
|
|
12277
12473
|
},
|
|
12278
|
-
/* @__PURE__ */
|
|
12474
|
+
/* @__PURE__ */ React71.createElement(
|
|
12279
12475
|
Box,
|
|
12280
12476
|
{
|
|
12281
12477
|
display: mapResponsiveValue(
|
|
@@ -12283,7 +12479,7 @@ function ConnectButton({
|
|
|
12283
12479
|
(value) => value === "full" || value === "avatar" ? "block" : "none"
|
|
12284
12480
|
)
|
|
12285
12481
|
},
|
|
12286
|
-
/* @__PURE__ */
|
|
12482
|
+
/* @__PURE__ */ React71.createElement(
|
|
12287
12483
|
Avatar,
|
|
12288
12484
|
{
|
|
12289
12485
|
address: displayAccount.address,
|
|
@@ -12293,7 +12489,7 @@ function ConnectButton({
|
|
|
12293
12489
|
}
|
|
12294
12490
|
)
|
|
12295
12491
|
),
|
|
12296
|
-
/* @__PURE__ */
|
|
12492
|
+
/* @__PURE__ */ React71.createElement(Box, { alignItems: "center", display: "flex", gap: "6" }, /* @__PURE__ */ React71.createElement(
|
|
12297
12493
|
Box,
|
|
12298
12494
|
{
|
|
12299
12495
|
display: mapResponsiveValue(
|
|
@@ -12302,10 +12498,10 @@ function ConnectButton({
|
|
|
12302
12498
|
)
|
|
12303
12499
|
},
|
|
12304
12500
|
displayAccount.displayName
|
|
12305
|
-
), /* @__PURE__ */
|
|
12501
|
+
), /* @__PURE__ */ React71.createElement(DropdownIcon, null))
|
|
12306
12502
|
)
|
|
12307
12503
|
)
|
|
12308
|
-
)) : /* @__PURE__ */
|
|
12504
|
+
)) : /* @__PURE__ */ React71.createElement(
|
|
12309
12505
|
Box,
|
|
12310
12506
|
{
|
|
12311
12507
|
as: "button",
|
|
@@ -12330,24 +12526,24 @@ function ConnectButton({
|
|
|
12330
12526
|
mounted && label === "Connect Wallet" ? i18n2.t("connect_wallet.label") : label
|
|
12331
12527
|
)
|
|
12332
12528
|
);
|
|
12333
|
-
}) : /* @__PURE__ */
|
|
12529
|
+
}) : /* @__PURE__ */ React71.createElement(React71.Fragment, null);
|
|
12334
12530
|
}
|
|
12335
12531
|
ConnectButton.__defaultProps = defaultProps;
|
|
12336
12532
|
ConnectButton.Custom = ConnectButtonRenderer;
|
|
12337
12533
|
|
|
12338
12534
|
// src/components/WalletButton/WalletButton.tsx
|
|
12339
|
-
import
|
|
12535
|
+
import React73, { useContext as useContext29 } from "react";
|
|
12340
12536
|
|
|
12341
12537
|
// src/components/WalletButton/WalletButton.css.ts
|
|
12342
12538
|
var border = "hk857q0";
|
|
12343
12539
|
var maxWidth = "hk857q1";
|
|
12344
12540
|
|
|
12345
12541
|
// src/components/WalletButton/WalletButtonRenderer.tsx
|
|
12346
|
-
import
|
|
12347
|
-
useContext as
|
|
12348
|
-
useEffect as
|
|
12542
|
+
import React72, {
|
|
12543
|
+
useContext as useContext28,
|
|
12544
|
+
useEffect as useEffect23,
|
|
12349
12545
|
useMemo as useMemo11,
|
|
12350
|
-
useState as
|
|
12546
|
+
useState as useState23
|
|
12351
12547
|
} from "react";
|
|
12352
12548
|
import { useAccount as useAccount17, useAccountEffect as useAccountEffect4 } from "wagmi";
|
|
12353
12549
|
function WalletButtonRenderer({
|
|
@@ -12359,16 +12555,16 @@ function WalletButtonRenderer({
|
|
|
12359
12555
|
const isMounted = useIsMounted();
|
|
12360
12556
|
const { openConnectModal } = useConnectModal();
|
|
12361
12557
|
const { connectModalOpen } = useModalState();
|
|
12362
|
-
const { connector, setConnector } =
|
|
12558
|
+
const { connector, setConnector } = useContext28(WalletButtonContext);
|
|
12363
12559
|
const [firstConnector] = useWalletConnectors().filter((wallet2) => wallet2.isRainbowKitConnector).filter((_wallet) => _wallet.id.toLowerCase() === wallet.toLowerCase()).sort((a, b) => a.groupIndex - b.groupIndex);
|
|
12364
12560
|
if (!firstConnector) {
|
|
12365
12561
|
throw new Error("Connector not found");
|
|
12366
12562
|
}
|
|
12367
12563
|
const connectionStatus = useConnectionStatus();
|
|
12368
|
-
const [loading2, setLoading] =
|
|
12369
|
-
const [isError, setIsError] =
|
|
12564
|
+
const [loading2, setLoading] = useState23(false);
|
|
12565
|
+
const [isError, setIsError] = useState23(false);
|
|
12370
12566
|
const mobile = isMobile();
|
|
12371
|
-
|
|
12567
|
+
useEffect23(() => {
|
|
12372
12568
|
if (!connectModalOpen && connector)
|
|
12373
12569
|
setConnector(null);
|
|
12374
12570
|
}, [connectModalOpen, connector, setConnector]);
|
|
@@ -12404,7 +12600,7 @@ function WalletButtonRenderer({
|
|
|
12404
12600
|
const isStatusLoading = connectionStatus === "loading";
|
|
12405
12601
|
const ready = !isConnecting && !!openConnectModal && firstConnector && !isStatusLoading;
|
|
12406
12602
|
const isNotSupported = !firstConnector?.installed || !firstConnector?.ready;
|
|
12407
|
-
return /* @__PURE__ */
|
|
12603
|
+
return /* @__PURE__ */ React72.createElement(React72.Fragment, null, children({
|
|
12408
12604
|
error: isError,
|
|
12409
12605
|
loading: loading2,
|
|
12410
12606
|
connected: isLastWalletIdConnected,
|
|
@@ -12425,13 +12621,13 @@ function WalletButtonRenderer({
|
|
|
12425
12621
|
|
|
12426
12622
|
// src/components/WalletButton/WalletButton.tsx
|
|
12427
12623
|
var WalletButton2 = ({ wallet }) => {
|
|
12428
|
-
return /* @__PURE__ */
|
|
12624
|
+
return /* @__PURE__ */ React73.createElement(WalletButtonRenderer, { wallet }, ({ ready, connect, connected, mounted, connector, loading: loading2 }) => {
|
|
12429
12625
|
const isDisabled = !ready || loading2;
|
|
12430
|
-
const { i18n: i18n2 } =
|
|
12626
|
+
const { i18n: i18n2 } = useContext29(I18nContext);
|
|
12431
12627
|
const connectorName = connector?.name || "";
|
|
12432
12628
|
if (!mounted)
|
|
12433
12629
|
return;
|
|
12434
|
-
return /* @__PURE__ */
|
|
12630
|
+
return /* @__PURE__ */ React73.createElement(
|
|
12435
12631
|
Box,
|
|
12436
12632
|
{
|
|
12437
12633
|
display: "flex",
|
|
@@ -12440,7 +12636,7 @@ var WalletButton2 = ({ wallet }) => {
|
|
|
12440
12636
|
disabled: isDisabled,
|
|
12441
12637
|
pointerEvents: isDisabled ? "none" : "all"
|
|
12442
12638
|
},
|
|
12443
|
-
/* @__PURE__ */
|
|
12639
|
+
/* @__PURE__ */ React73.createElement(
|
|
12444
12640
|
Box,
|
|
12445
12641
|
{
|
|
12446
12642
|
as: "button",
|
|
@@ -12465,7 +12661,7 @@ var WalletButton2 = ({ wallet }) => {
|
|
|
12465
12661
|
width: "full",
|
|
12466
12662
|
background: "connectButtonBackground"
|
|
12467
12663
|
},
|
|
12468
|
-
/* @__PURE__ */
|
|
12664
|
+
/* @__PURE__ */ React73.createElement(
|
|
12469
12665
|
Box,
|
|
12470
12666
|
{
|
|
12471
12667
|
color: "modalText",
|
|
@@ -12476,7 +12672,7 @@ var WalletButton2 = ({ wallet }) => {
|
|
|
12476
12672
|
display: "flex",
|
|
12477
12673
|
alignItems: "center"
|
|
12478
12674
|
},
|
|
12479
|
-
/* @__PURE__ */
|
|
12675
|
+
/* @__PURE__ */ React73.createElement(
|
|
12480
12676
|
Box,
|
|
12481
12677
|
{
|
|
12482
12678
|
alignItems: "center",
|
|
@@ -12485,7 +12681,7 @@ var WalletButton2 = ({ wallet }) => {
|
|
|
12485
12681
|
gap: "12",
|
|
12486
12682
|
paddingRight: "6"
|
|
12487
12683
|
},
|
|
12488
|
-
/* @__PURE__ */
|
|
12684
|
+
/* @__PURE__ */ React73.createElement(Box, null, loading2 ? /* @__PURE__ */ React73.createElement(SpinnerIcon, null) : /* @__PURE__ */ React73.createElement(
|
|
12489
12685
|
AsyncImage,
|
|
12490
12686
|
{
|
|
12491
12687
|
background: connector?.iconBackground,
|
|
@@ -12495,7 +12691,7 @@ var WalletButton2 = ({ wallet }) => {
|
|
|
12495
12691
|
width: "28"
|
|
12496
12692
|
}
|
|
12497
12693
|
)),
|
|
12498
|
-
/* @__PURE__ */
|
|
12694
|
+
/* @__PURE__ */ React73.createElement(
|
|
12499
12695
|
Box,
|
|
12500
12696
|
{
|
|
12501
12697
|
alignItems: "center",
|
|
@@ -12503,11 +12699,11 @@ var WalletButton2 = ({ wallet }) => {
|
|
|
12503
12699
|
flexDirection: "column",
|
|
12504
12700
|
color: "modalText"
|
|
12505
12701
|
},
|
|
12506
|
-
/* @__PURE__ */
|
|
12702
|
+
/* @__PURE__ */ React73.createElement(Box, { testId: `wallet-button-label-${connector?.id || ""}` }, loading2 ? i18n2.t("connect.status.connecting", {
|
|
12507
12703
|
wallet: connectorName
|
|
12508
12704
|
}) : connectorName)
|
|
12509
12705
|
),
|
|
12510
|
-
connected ? /* @__PURE__ */
|
|
12706
|
+
connected ? /* @__PURE__ */ React73.createElement(
|
|
12511
12707
|
Box,
|
|
12512
12708
|
{
|
|
12513
12709
|
background: "connectionIndicator",
|
|
@@ -13291,11 +13487,11 @@ var __private__ = {
|
|
|
13291
13487
|
};
|
|
13292
13488
|
|
|
13293
13489
|
// src/hooks/useSolSignMessage.ts
|
|
13294
|
-
import { useState as
|
|
13490
|
+
import { useState as useState24 } from "react";
|
|
13295
13491
|
function useSolSignMessage(solanaWallet) {
|
|
13296
|
-
const [isLoading, setIsLoading] =
|
|
13297
|
-
const [error3, setError] =
|
|
13298
|
-
const [data, setData] =
|
|
13492
|
+
const [isLoading, setIsLoading] = useState24(false);
|
|
13493
|
+
const [error3, setError] = useState24(null);
|
|
13494
|
+
const [data, setData] = useState24(null);
|
|
13299
13495
|
const signMessage = async (params) => {
|
|
13300
13496
|
setIsLoading(true);
|
|
13301
13497
|
setError(null);
|
|
@@ -13340,11 +13536,11 @@ import {
|
|
|
13340
13536
|
SystemProgram,
|
|
13341
13537
|
Transaction
|
|
13342
13538
|
} from "@solana/web3.js";
|
|
13343
|
-
import { useState as
|
|
13539
|
+
import { useState as useState25 } from "react";
|
|
13344
13540
|
function useSolSignTransaction(solanaWallet) {
|
|
13345
|
-
const [isLoading, setIsLoading] =
|
|
13346
|
-
const [error3, setError] =
|
|
13347
|
-
const [data, setData] =
|
|
13541
|
+
const [isLoading, setIsLoading] = useState25(false);
|
|
13542
|
+
const [error3, setError] = useState25(null);
|
|
13543
|
+
const [data, setData] = useState25(null);
|
|
13348
13544
|
const signTransaction = async (params) => {
|
|
13349
13545
|
setIsLoading(true);
|
|
13350
13546
|
setError(null);
|
|
@@ -13447,7 +13643,7 @@ function getSolanaConfig(options = {}) {
|
|
|
13447
13643
|
}
|
|
13448
13644
|
|
|
13449
13645
|
// src/components/ChainIndicator/ChainIndicator.tsx
|
|
13450
|
-
import
|
|
13646
|
+
import React74 from "react";
|
|
13451
13647
|
|
|
13452
13648
|
// src/components/ChainIndicator/ChainIndicator.css.ts
|
|
13453
13649
|
var chainBadge = "_1ef0eqv5";
|
|
@@ -13477,18 +13673,18 @@ function ChainIndicator({
|
|
|
13477
13673
|
const chainDefaults = CHAIN_DEFAULTS[chain];
|
|
13478
13674
|
const resolvedIconUrl = iconUrl ?? chainDefaults.iconUrl;
|
|
13479
13675
|
const resolvedName = displayName ?? chainDefaults.name;
|
|
13480
|
-
return /* @__PURE__ */
|
|
13676
|
+
return /* @__PURE__ */ React74.createElement(Box, { className: chainIndicatorContainer }, showIcon && /* @__PURE__ */ React74.createElement(
|
|
13481
13677
|
"img",
|
|
13482
13678
|
{
|
|
13483
13679
|
src: resolvedIconUrl,
|
|
13484
13680
|
alt: `${resolvedName} icon`,
|
|
13485
13681
|
className: chainIcon
|
|
13486
13682
|
}
|
|
13487
|
-
), showName && /* @__PURE__ */
|
|
13683
|
+
), showName && /* @__PURE__ */ React74.createElement(Text, { color: "modalText", className: chainName }, resolvedName), showBadge && /* @__PURE__ */ React74.createElement("div", { className: chainBadge }));
|
|
13488
13684
|
}
|
|
13489
13685
|
|
|
13490
13686
|
// src/components/AbcLoginModal/AbcLoginModal.tsx
|
|
13491
|
-
import
|
|
13687
|
+
import React80, { useState as useState31, useEffect as useEffect25 } from "react";
|
|
13492
13688
|
|
|
13493
13689
|
// src/wallets/walletConnectors/abcWallet/api/BaseApiClient.ts
|
|
13494
13690
|
var BaseApiClient = class {
|
|
@@ -15489,7 +15685,7 @@ async function recoverSolanaWallet(client, hashedPin) {
|
|
|
15489
15685
|
}
|
|
15490
15686
|
|
|
15491
15687
|
// src/components/AbcLoginModal/EmailLogin.tsx
|
|
15492
|
-
import
|
|
15688
|
+
import React75, { useState as useState26 } from "react";
|
|
15493
15689
|
|
|
15494
15690
|
// src/components/AbcLoginModal/styles.css.ts
|
|
15495
15691
|
var buttonGroup = "_1fbuhjmg";
|
|
@@ -15518,8 +15714,8 @@ var title2 = "_1fbuhjm3";
|
|
|
15518
15714
|
|
|
15519
15715
|
// src/components/AbcLoginModal/EmailLogin.tsx
|
|
15520
15716
|
function EmailLogin({ onSubmit, onError }) {
|
|
15521
|
-
const [email, setEmail] =
|
|
15522
|
-
const [loading2, setLoading] =
|
|
15717
|
+
const [email, setEmail] = useState26("");
|
|
15718
|
+
const [loading2, setLoading] = useState26(false);
|
|
15523
15719
|
const handleSubmit = async (e) => {
|
|
15524
15720
|
e.preventDefault();
|
|
15525
15721
|
if (!validateEmail(email)) {
|
|
@@ -15531,7 +15727,7 @@ function EmailLogin({ onSubmit, onError }) {
|
|
|
15531
15727
|
onSubmit(email);
|
|
15532
15728
|
setLoading(false);
|
|
15533
15729
|
};
|
|
15534
|
-
return /* @__PURE__ */
|
|
15730
|
+
return /* @__PURE__ */ React75.createElement("form", { onSubmit: handleSubmit, className: form }, /* @__PURE__ */ React75.createElement("div", null, /* @__PURE__ */ React75.createElement(
|
|
15535
15731
|
"input",
|
|
15536
15732
|
{
|
|
15537
15733
|
type: "email",
|
|
@@ -15541,7 +15737,7 @@ function EmailLogin({ onSubmit, onError }) {
|
|
|
15541
15737
|
className: emailInput,
|
|
15542
15738
|
disabled: loading2
|
|
15543
15739
|
}
|
|
15544
|
-
)), /* @__PURE__ */
|
|
15740
|
+
)), /* @__PURE__ */ React75.createElement(
|
|
15545
15741
|
"button",
|
|
15546
15742
|
{
|
|
15547
15743
|
type: "submit",
|
|
@@ -15549,11 +15745,11 @@ function EmailLogin({ onSubmit, onError }) {
|
|
|
15549
15745
|
disabled: loading2 || !email
|
|
15550
15746
|
},
|
|
15551
15747
|
loading2 ? "Checking..." : "Continue"
|
|
15552
|
-
), /* @__PURE__ */
|
|
15748
|
+
), /* @__PURE__ */ React75.createElement("p", { className: hint }, "Enter your email to continue"));
|
|
15553
15749
|
}
|
|
15554
15750
|
|
|
15555
15751
|
// src/components/AbcLoginModal/OtpLogin.tsx
|
|
15556
|
-
import
|
|
15752
|
+
import React76, { useEffect as useEffect24, useState as useState27 } from "react";
|
|
15557
15753
|
function OtpLogin({
|
|
15558
15754
|
email,
|
|
15559
15755
|
onSuccess,
|
|
@@ -15561,9 +15757,9 @@ function OtpLogin({
|
|
|
15561
15757
|
onBack,
|
|
15562
15758
|
waasUrl
|
|
15563
15759
|
}) {
|
|
15564
|
-
const [otp, setOtp] =
|
|
15565
|
-
const [loading2, setLoading] =
|
|
15566
|
-
|
|
15760
|
+
const [otp, setOtp] = useState27("");
|
|
15761
|
+
const [loading2, setLoading] = useState27(false);
|
|
15762
|
+
useEffect24(() => {
|
|
15567
15763
|
const requestOtp = async () => {
|
|
15568
15764
|
try {
|
|
15569
15765
|
const client = createAbcWaasClient({
|
|
@@ -15622,7 +15818,7 @@ function OtpLogin({
|
|
|
15622
15818
|
onError(error3.message || "Failed to resend code");
|
|
15623
15819
|
}
|
|
15624
15820
|
};
|
|
15625
|
-
return /* @__PURE__ */
|
|
15821
|
+
return /* @__PURE__ */ React76.createElement("form", { onSubmit: handleSubmit, className: form }, /* @__PURE__ */ React76.createElement("p", { className: otpHint }, "Enter the 6-digit code sent to ", /* @__PURE__ */ React76.createElement("strong", null, email)), /* @__PURE__ */ React76.createElement(
|
|
15626
15822
|
"input",
|
|
15627
15823
|
{
|
|
15628
15824
|
type: "text",
|
|
@@ -15636,7 +15832,7 @@ function OtpLogin({
|
|
|
15636
15832
|
disabled: loading2,
|
|
15637
15833
|
maxLength: 6
|
|
15638
15834
|
}
|
|
15639
|
-
), /* @__PURE__ */
|
|
15835
|
+
), /* @__PURE__ */ React76.createElement("div", { className: buttonGroup }, /* @__PURE__ */ React76.createElement(
|
|
15640
15836
|
"button",
|
|
15641
15837
|
{
|
|
15642
15838
|
type: "button",
|
|
@@ -15645,7 +15841,7 @@ function OtpLogin({
|
|
|
15645
15841
|
disabled: loading2
|
|
15646
15842
|
},
|
|
15647
15843
|
"Back"
|
|
15648
|
-
), /* @__PURE__ */
|
|
15844
|
+
), /* @__PURE__ */ React76.createElement(
|
|
15649
15845
|
"button",
|
|
15650
15846
|
{
|
|
15651
15847
|
type: "submit",
|
|
@@ -15653,7 +15849,7 @@ function OtpLogin({
|
|
|
15653
15849
|
disabled: loading2 || otp.length !== 6
|
|
15654
15850
|
},
|
|
15655
15851
|
loading2 ? "Verifying..." : "Verify"
|
|
15656
|
-
)), /* @__PURE__ */
|
|
15852
|
+
)), /* @__PURE__ */ React76.createElement(
|
|
15657
15853
|
"button",
|
|
15658
15854
|
{
|
|
15659
15855
|
type: "button",
|
|
@@ -15666,15 +15862,15 @@ function OtpLogin({
|
|
|
15666
15862
|
}
|
|
15667
15863
|
|
|
15668
15864
|
// src/components/AbcLoginModal/PasswordInput.tsx
|
|
15669
|
-
import
|
|
15865
|
+
import React77, { useState as useState28 } from "react";
|
|
15670
15866
|
function PasswordInput({
|
|
15671
15867
|
email,
|
|
15672
15868
|
onSubmit,
|
|
15673
15869
|
onError,
|
|
15674
15870
|
onBack
|
|
15675
15871
|
}) {
|
|
15676
|
-
const [password, setPassword] =
|
|
15677
|
-
const [loading2, setLoading] =
|
|
15872
|
+
const [password, setPassword] = useState28("");
|
|
15873
|
+
const [loading2, setLoading] = useState28(false);
|
|
15678
15874
|
const handleSubmit = async (e) => {
|
|
15679
15875
|
e.preventDefault();
|
|
15680
15876
|
if (!password || password.length < 6) {
|
|
@@ -15686,7 +15882,7 @@ function PasswordInput({
|
|
|
15686
15882
|
onSubmit(password);
|
|
15687
15883
|
setLoading(false);
|
|
15688
15884
|
};
|
|
15689
|
-
return /* @__PURE__ */
|
|
15885
|
+
return /* @__PURE__ */ React77.createElement("form", { onSubmit: handleSubmit, className: form }, /* @__PURE__ */ React77.createElement("p", { className: hint }, "Welcome back! ", /* @__PURE__ */ React77.createElement("strong", null, email)), /* @__PURE__ */ React77.createElement(
|
|
15690
15886
|
"input",
|
|
15691
15887
|
{
|
|
15692
15888
|
type: "password",
|
|
@@ -15696,7 +15892,7 @@ function PasswordInput({
|
|
|
15696
15892
|
className: pinInput,
|
|
15697
15893
|
disabled: loading2
|
|
15698
15894
|
}
|
|
15699
|
-
), /* @__PURE__ */
|
|
15895
|
+
), /* @__PURE__ */ React77.createElement("div", { className: buttonGroup }, /* @__PURE__ */ React77.createElement(
|
|
15700
15896
|
"button",
|
|
15701
15897
|
{
|
|
15702
15898
|
type: "button",
|
|
@@ -15705,7 +15901,7 @@ function PasswordInput({
|
|
|
15705
15901
|
disabled: loading2
|
|
15706
15902
|
},
|
|
15707
15903
|
"Back"
|
|
15708
|
-
), /* @__PURE__ */
|
|
15904
|
+
), /* @__PURE__ */ React77.createElement(
|
|
15709
15905
|
"button",
|
|
15710
15906
|
{
|
|
15711
15907
|
type: "submit",
|
|
@@ -15717,7 +15913,7 @@ function PasswordInput({
|
|
|
15717
15913
|
}
|
|
15718
15914
|
|
|
15719
15915
|
// src/components/AbcLoginModal/PinInput.tsx
|
|
15720
|
-
import
|
|
15916
|
+
import React78, { useState as useState29 } from "react";
|
|
15721
15917
|
function PinInput({
|
|
15722
15918
|
email,
|
|
15723
15919
|
onSuccess,
|
|
@@ -15725,8 +15921,8 @@ function PinInput({
|
|
|
15725
15921
|
onBack,
|
|
15726
15922
|
onForgotPin
|
|
15727
15923
|
}) {
|
|
15728
|
-
const [pin, setPin] =
|
|
15729
|
-
const [loading2, setLoading] =
|
|
15924
|
+
const [pin, setPin] = useState29("");
|
|
15925
|
+
const [loading2, setLoading] = useState29(false);
|
|
15730
15926
|
const handleSubmit = async (e) => {
|
|
15731
15927
|
e.preventDefault();
|
|
15732
15928
|
if (!validatePin(pin)) {
|
|
@@ -15744,7 +15940,7 @@ function PinInput({
|
|
|
15744
15940
|
setLoading(false);
|
|
15745
15941
|
}
|
|
15746
15942
|
};
|
|
15747
|
-
return /* @__PURE__ */
|
|
15943
|
+
return /* @__PURE__ */ React78.createElement("form", { onSubmit: handleSubmit, className: form }, /* @__PURE__ */ React78.createElement("p", { className: pinHint }, "Enter your 6-digit PIN for ", /* @__PURE__ */ React78.createElement("strong", null, email)), /* @__PURE__ */ React78.createElement(
|
|
15748
15944
|
"input",
|
|
15749
15945
|
{
|
|
15750
15946
|
type: "password",
|
|
@@ -15759,7 +15955,7 @@ function PinInput({
|
|
|
15759
15955
|
disabled: loading2,
|
|
15760
15956
|
maxLength: 6
|
|
15761
15957
|
}
|
|
15762
|
-
), /* @__PURE__ */
|
|
15958
|
+
), /* @__PURE__ */ React78.createElement("div", { className: buttonGroup }, /* @__PURE__ */ React78.createElement(
|
|
15763
15959
|
"button",
|
|
15764
15960
|
{
|
|
15765
15961
|
type: "button",
|
|
@@ -15768,7 +15964,7 @@ function PinInput({
|
|
|
15768
15964
|
disabled: loading2
|
|
15769
15965
|
},
|
|
15770
15966
|
"Back"
|
|
15771
|
-
), /* @__PURE__ */
|
|
15967
|
+
), /* @__PURE__ */ React78.createElement(
|
|
15772
15968
|
"button",
|
|
15773
15969
|
{
|
|
15774
15970
|
type: "submit",
|
|
@@ -15776,7 +15972,7 @@ function PinInput({
|
|
|
15776
15972
|
disabled: loading2 || pin.length !== 6
|
|
15777
15973
|
},
|
|
15778
15974
|
loading2 ? "Verifying..." : "Login"
|
|
15779
|
-
)), /* @__PURE__ */
|
|
15975
|
+
)), /* @__PURE__ */ React78.createElement(
|
|
15780
15976
|
"button",
|
|
15781
15977
|
{
|
|
15782
15978
|
type: "button",
|
|
@@ -15789,11 +15985,11 @@ function PinInput({
|
|
|
15789
15985
|
}
|
|
15790
15986
|
|
|
15791
15987
|
// src/components/AbcLoginModal/PinSetup.tsx
|
|
15792
|
-
import
|
|
15988
|
+
import React79, { useState as useState30 } from "react";
|
|
15793
15989
|
function PinSetup({ onSuccess, onError, onBack }) {
|
|
15794
|
-
const [pin, setPin] =
|
|
15795
|
-
const [confirmPin, setConfirmPin] =
|
|
15796
|
-
const [step, setStep] =
|
|
15990
|
+
const [pin, setPin] = useState30("");
|
|
15991
|
+
const [confirmPin, setConfirmPin] = useState30("");
|
|
15992
|
+
const [step, setStep] = useState30("enter");
|
|
15797
15993
|
const handlePinSubmit = (e) => {
|
|
15798
15994
|
e.preventDefault();
|
|
15799
15995
|
if (!validatePin(pin)) {
|
|
@@ -15818,7 +16014,7 @@ function PinSetup({ onSuccess, onError, onBack }) {
|
|
|
15818
16014
|
}
|
|
15819
16015
|
};
|
|
15820
16016
|
if (step === "confirm") {
|
|
15821
|
-
return /* @__PURE__ */
|
|
16017
|
+
return /* @__PURE__ */ React79.createElement("form", { onSubmit: handleConfirmSubmit, className: form }, /* @__PURE__ */ React79.createElement("p", { className: pinHint }, "Confirm your 6-digit PIN"), /* @__PURE__ */ React79.createElement(
|
|
15822
16018
|
"input",
|
|
15823
16019
|
{
|
|
15824
16020
|
type: "password",
|
|
@@ -15832,7 +16028,7 @@ function PinSetup({ onSuccess, onError, onBack }) {
|
|
|
15832
16028
|
className: pinInput,
|
|
15833
16029
|
maxLength: 6
|
|
15834
16030
|
}
|
|
15835
|
-
), /* @__PURE__ */
|
|
16031
|
+
), /* @__PURE__ */ React79.createElement("div", { className: buttonGroup }, /* @__PURE__ */ React79.createElement(
|
|
15836
16032
|
"button",
|
|
15837
16033
|
{
|
|
15838
16034
|
type: "button",
|
|
@@ -15843,7 +16039,7 @@ function PinSetup({ onSuccess, onError, onBack }) {
|
|
|
15843
16039
|
className: secondaryButton
|
|
15844
16040
|
},
|
|
15845
16041
|
"Back"
|
|
15846
|
-
), /* @__PURE__ */
|
|
16042
|
+
), /* @__PURE__ */ React79.createElement(
|
|
15847
16043
|
"button",
|
|
15848
16044
|
{
|
|
15849
16045
|
type: "submit",
|
|
@@ -15853,7 +16049,7 @@ function PinSetup({ onSuccess, onError, onBack }) {
|
|
|
15853
16049
|
"Confirm"
|
|
15854
16050
|
)));
|
|
15855
16051
|
}
|
|
15856
|
-
return /* @__PURE__ */
|
|
16052
|
+
return /* @__PURE__ */ React79.createElement("form", { onSubmit: handlePinSubmit, className: form }, /* @__PURE__ */ React79.createElement("p", { className: pinHint }, "Create a 6-digit PIN to secure your wallet"), /* @__PURE__ */ React79.createElement(
|
|
15857
16053
|
"input",
|
|
15858
16054
|
{
|
|
15859
16055
|
type: "password",
|
|
@@ -15867,7 +16063,7 @@ function PinSetup({ onSuccess, onError, onBack }) {
|
|
|
15867
16063
|
className: pinInput,
|
|
15868
16064
|
maxLength: 6
|
|
15869
16065
|
}
|
|
15870
|
-
), /* @__PURE__ */
|
|
16066
|
+
), /* @__PURE__ */ React79.createElement("div", { className: buttonGroup }, /* @__PURE__ */ React79.createElement(
|
|
15871
16067
|
"button",
|
|
15872
16068
|
{
|
|
15873
16069
|
type: "button",
|
|
@@ -15875,7 +16071,7 @@ function PinSetup({ onSuccess, onError, onBack }) {
|
|
|
15875
16071
|
className: secondaryButton
|
|
15876
16072
|
},
|
|
15877
16073
|
"Back"
|
|
15878
|
-
), /* @__PURE__ */
|
|
16074
|
+
), /* @__PURE__ */ React79.createElement(
|
|
15879
16075
|
"button",
|
|
15880
16076
|
{
|
|
15881
16077
|
type: "submit",
|
|
@@ -15892,12 +16088,12 @@ function AbcLoginModal({
|
|
|
15892
16088
|
onSuccess,
|
|
15893
16089
|
waasUrl
|
|
15894
16090
|
}) {
|
|
15895
|
-
const [step, setStep] =
|
|
15896
|
-
const [email, setEmail] =
|
|
15897
|
-
const [userType, setUserType] =
|
|
15898
|
-
const [error3, setError] =
|
|
15899
|
-
const [otpData, setOtpData] =
|
|
15900
|
-
|
|
16091
|
+
const [step, setStep] = useState31("loading");
|
|
16092
|
+
const [email, setEmail] = useState31("");
|
|
16093
|
+
const [userType, setUserType] = useState31(null);
|
|
16094
|
+
const [error3, setError] = useState31(null);
|
|
16095
|
+
const [otpData, setOtpData] = useState31(null);
|
|
16096
|
+
useEffect25(() => {
|
|
15901
16097
|
if (hasEncryptedTokens()) {
|
|
15902
16098
|
setStep("unlock");
|
|
15903
16099
|
} else {
|
|
@@ -16048,7 +16244,7 @@ function AbcLoginModal({
|
|
|
16048
16244
|
const handleError = (errorMessage) => {
|
|
16049
16245
|
setError(errorMessage);
|
|
16050
16246
|
};
|
|
16051
|
-
return /* @__PURE__ */
|
|
16247
|
+
return /* @__PURE__ */ React80.createElement(
|
|
16052
16248
|
"div",
|
|
16053
16249
|
{
|
|
16054
16250
|
className: overlay3,
|
|
@@ -16057,7 +16253,7 @@ function AbcLoginModal({
|
|
|
16057
16253
|
role: "button",
|
|
16058
16254
|
tabIndex: 0
|
|
16059
16255
|
},
|
|
16060
|
-
/* @__PURE__ */
|
|
16256
|
+
/* @__PURE__ */ React80.createElement(
|
|
16061
16257
|
"div",
|
|
16062
16258
|
{
|
|
16063
16259
|
className: modal2,
|
|
@@ -16066,8 +16262,8 @@ function AbcLoginModal({
|
|
|
16066
16262
|
role: "dialog",
|
|
16067
16263
|
tabIndex: -1
|
|
16068
16264
|
},
|
|
16069
|
-
/* @__PURE__ */
|
|
16070
|
-
/* @__PURE__ */
|
|
16265
|
+
/* @__PURE__ */ React80.createElement("div", { className: header }, /* @__PURE__ */ React80.createElement("h2", { className: title2 }, step === "unlock" && "Welcome back", step === "email" && "Log in or sign up", step === "password" && "Enter your password", step === "pin" && "Enter your PIN", step === "otp" && "Enter verification code", step === "pinSetup" && "Set up your PIN", step === "loading" && "Creating wallet..."), /* @__PURE__ */ React80.createElement("button", { onClick: onClose, className: closeButton2 }, "\xD7")),
|
|
16266
|
+
/* @__PURE__ */ React80.createElement("div", { className: content2 }, error3 && /* @__PURE__ */ React80.createElement("div", { className: error2 }, error3), step === "unlock" && /* @__PURE__ */ React80.createElement(
|
|
16071
16267
|
PinInput,
|
|
16072
16268
|
{
|
|
16073
16269
|
email: "",
|
|
@@ -16082,7 +16278,7 @@ function AbcLoginModal({
|
|
|
16082
16278
|
setStep("otp");
|
|
16083
16279
|
}
|
|
16084
16280
|
}
|
|
16085
|
-
), step === "email" && /* @__PURE__ */
|
|
16281
|
+
), step === "email" && /* @__PURE__ */ React80.createElement(EmailLogin, { onSubmit: handleEmailSubmit, onError: handleError }), step === "password" && /* @__PURE__ */ React80.createElement(
|
|
16086
16282
|
PasswordInput,
|
|
16087
16283
|
{
|
|
16088
16284
|
email,
|
|
@@ -16090,7 +16286,7 @@ function AbcLoginModal({
|
|
|
16090
16286
|
onError: handleError,
|
|
16091
16287
|
onBack: () => setStep("email")
|
|
16092
16288
|
}
|
|
16093
|
-
), step === "pin" && /* @__PURE__ */
|
|
16289
|
+
), step === "pin" && /* @__PURE__ */ React80.createElement(
|
|
16094
16290
|
PinInput,
|
|
16095
16291
|
{
|
|
16096
16292
|
email,
|
|
@@ -16099,7 +16295,7 @@ function AbcLoginModal({
|
|
|
16099
16295
|
onBack: handleBack,
|
|
16100
16296
|
onForgotPin: handleForgotPin
|
|
16101
16297
|
}
|
|
16102
|
-
), step === "otp" && /* @__PURE__ */
|
|
16298
|
+
), step === "otp" && /* @__PURE__ */ React80.createElement(
|
|
16103
16299
|
OtpLogin,
|
|
16104
16300
|
{
|
|
16105
16301
|
email,
|
|
@@ -16108,44 +16304,55 @@ function AbcLoginModal({
|
|
|
16108
16304
|
onBack: () => setStep("email"),
|
|
16109
16305
|
waasUrl
|
|
16110
16306
|
}
|
|
16111
|
-
), step === "pinSetup" && /* @__PURE__ */
|
|
16307
|
+
), step === "pinSetup" && /* @__PURE__ */ React80.createElement(
|
|
16112
16308
|
PinSetup,
|
|
16113
16309
|
{
|
|
16114
16310
|
onSuccess: handleNewUserPinSetup,
|
|
16115
16311
|
onError: handleError,
|
|
16116
16312
|
onBack: () => setStep("otp")
|
|
16117
16313
|
}
|
|
16118
|
-
), step === "loading" && /* @__PURE__ */
|
|
16119
|
-
/* @__PURE__ */
|
|
16120
|
-
} }, "Terms of Service"), " ", "&", " ", /* @__PURE__ */
|
|
16314
|
+
), step === "loading" && /* @__PURE__ */ React80.createElement("div", { className: loading }, /* @__PURE__ */ React80.createElement("div", { className: spinner3 }), /* @__PURE__ */ React80.createElement("p", null, "Creating your wallet..."))),
|
|
16315
|
+
/* @__PURE__ */ React80.createElement("div", { className: footer }, /* @__PURE__ */ React80.createElement("p", { className: footerText }, "By logging in, you agree to our", " ", /* @__PURE__ */ React80.createElement("button", { type: "button", className: link, onClick: () => {
|
|
16316
|
+
} }, "Terms of Service"), " ", "&", " ", /* @__PURE__ */ React80.createElement("button", { type: "button", className: link, onClick: () => {
|
|
16121
16317
|
} }, "Privacy Policy"), "."))
|
|
16122
16318
|
)
|
|
16123
16319
|
);
|
|
16124
16320
|
}
|
|
16125
16321
|
|
|
16126
16322
|
// src/components/AbcLoginModal/AbcAuthModal.tsx
|
|
16127
|
-
import
|
|
16323
|
+
import React81, { useState as useState32, useEffect as useEffect26 } from "react";
|
|
16128
16324
|
function AbcAuthModal({
|
|
16129
16325
|
onClose,
|
|
16130
16326
|
onSuccess,
|
|
16131
16327
|
waasUrl,
|
|
16132
16328
|
environment = "development",
|
|
16133
|
-
evmChainId = 1
|
|
16329
|
+
evmChainId = 1,
|
|
16330
|
+
initialEmail,
|
|
16331
|
+
initialProvider: _initialProvider
|
|
16134
16332
|
}) {
|
|
16135
|
-
const [step, setStep] =
|
|
16136
|
-
const [email, setEmail] =
|
|
16137
|
-
const [_userType, setUserType] =
|
|
16138
|
-
const [error3, setError] =
|
|
16139
|
-
const [authData, setAuthData] =
|
|
16140
|
-
const [_otpData, _setOtpData] =
|
|
16141
|
-
const [secureService] =
|
|
16142
|
-
|
|
16333
|
+
const [step, setStep] = useState32("loading");
|
|
16334
|
+
const [email, setEmail] = useState32(initialEmail || "");
|
|
16335
|
+
const [_userType, setUserType] = useState32(null);
|
|
16336
|
+
const [error3, setError] = useState32(null);
|
|
16337
|
+
const [authData, setAuthData] = useState32(null);
|
|
16338
|
+
const [_otpData, _setOtpData] = useState32(null);
|
|
16339
|
+
const [secureService] = useState32(() => new secure_default(waasUrl));
|
|
16340
|
+
useEffect26(() => {
|
|
16143
16341
|
if (hasEncryptedTokens()) {
|
|
16144
16342
|
setStep("unlock");
|
|
16145
16343
|
} else {
|
|
16146
16344
|
setStep("email");
|
|
16147
16345
|
}
|
|
16148
16346
|
}, []);
|
|
16347
|
+
useEffect26(() => {
|
|
16348
|
+
if (initialEmail && step === "email") {
|
|
16349
|
+
console.log(
|
|
16350
|
+
"[AbcAuthModal] \u{1F680} Auto-submitting initialEmail:",
|
|
16351
|
+
initialEmail
|
|
16352
|
+
);
|
|
16353
|
+
handleEmailSubmit(initialEmail);
|
|
16354
|
+
}
|
|
16355
|
+
}, [initialEmail, step]);
|
|
16149
16356
|
const handleEmailSubmit = async (emailValue) => {
|
|
16150
16357
|
setEmail(emailValue);
|
|
16151
16358
|
setError(null);
|
|
@@ -16416,7 +16623,7 @@ function AbcAuthModal({
|
|
|
16416
16623
|
console.error("[AbcAuthModal] Error:", errorMessage);
|
|
16417
16624
|
setError(errorMessage);
|
|
16418
16625
|
};
|
|
16419
|
-
return /* @__PURE__ */
|
|
16626
|
+
return /* @__PURE__ */ React81.createElement(
|
|
16420
16627
|
"div",
|
|
16421
16628
|
{
|
|
16422
16629
|
className: overlay3,
|
|
@@ -16425,7 +16632,7 @@ function AbcAuthModal({
|
|
|
16425
16632
|
role: "button",
|
|
16426
16633
|
tabIndex: 0
|
|
16427
16634
|
},
|
|
16428
|
-
/* @__PURE__ */
|
|
16635
|
+
/* @__PURE__ */ React81.createElement(
|
|
16429
16636
|
"div",
|
|
16430
16637
|
{
|
|
16431
16638
|
className: modal2,
|
|
@@ -16434,8 +16641,8 @@ function AbcAuthModal({
|
|
|
16434
16641
|
role: "dialog",
|
|
16435
16642
|
tabIndex: -1
|
|
16436
16643
|
},
|
|
16437
|
-
/* @__PURE__ */
|
|
16438
|
-
/* @__PURE__ */
|
|
16644
|
+
/* @__PURE__ */ React81.createElement("div", { className: header }, /* @__PURE__ */ React81.createElement("h2", { className: title2 }, step === "unlock" && "Welcome back", step === "email" && "Log in or sign up", step === "password" && "Enter your password", step === "pin" && "Enter your PIN", step === "otp" && "Enter verification code", step === "pinSetup" && "Set up your PIN", step === "loading" && "Creating wallet..."), /* @__PURE__ */ React81.createElement("button", { onClick: onClose, className: closeButton2 }, "\xD7")),
|
|
16645
|
+
/* @__PURE__ */ React81.createElement("div", { className: content2 }, error3 && /* @__PURE__ */ React81.createElement("div", { className: error2 }, error3), step === "unlock" && /* @__PURE__ */ React81.createElement(
|
|
16439
16646
|
PinInput,
|
|
16440
16647
|
{
|
|
16441
16648
|
email: "",
|
|
@@ -16447,7 +16654,7 @@ function AbcAuthModal({
|
|
|
16447
16654
|
},
|
|
16448
16655
|
onForgotPin: handleForgotPin
|
|
16449
16656
|
}
|
|
16450
|
-
), step === "email" && /* @__PURE__ */
|
|
16657
|
+
), step === "email" && /* @__PURE__ */ React81.createElement(EmailLogin, { onSubmit: handleEmailSubmit, onError: handleError }), step === "password" && /* @__PURE__ */ React81.createElement(
|
|
16451
16658
|
PasswordInput,
|
|
16452
16659
|
{
|
|
16453
16660
|
email,
|
|
@@ -16455,7 +16662,7 @@ function AbcAuthModal({
|
|
|
16455
16662
|
onError: handleError,
|
|
16456
16663
|
onBack: handleBack
|
|
16457
16664
|
}
|
|
16458
|
-
), step === "otp" && /* @__PURE__ */
|
|
16665
|
+
), step === "otp" && /* @__PURE__ */ React81.createElement(
|
|
16459
16666
|
OtpLogin,
|
|
16460
16667
|
{
|
|
16461
16668
|
email,
|
|
@@ -16464,7 +16671,7 @@ function AbcAuthModal({
|
|
|
16464
16671
|
onBack: handleBack,
|
|
16465
16672
|
waasUrl
|
|
16466
16673
|
}
|
|
16467
|
-
), step === "pin" && /* @__PURE__ */
|
|
16674
|
+
), step === "pin" && /* @__PURE__ */ React81.createElement(
|
|
16468
16675
|
PinInput,
|
|
16469
16676
|
{
|
|
16470
16677
|
email,
|
|
@@ -16473,41 +16680,41 @@ function AbcAuthModal({
|
|
|
16473
16680
|
onBack: handleBack,
|
|
16474
16681
|
onForgotPin: handleForgotPin
|
|
16475
16682
|
}
|
|
16476
|
-
), step === "pinSetup" && /* @__PURE__ */
|
|
16683
|
+
), step === "pinSetup" && /* @__PURE__ */ React81.createElement(
|
|
16477
16684
|
PinSetup,
|
|
16478
16685
|
{
|
|
16479
16686
|
onSuccess: handlePinSetup,
|
|
16480
16687
|
onError: handleError,
|
|
16481
16688
|
onBack: handleBack
|
|
16482
16689
|
}
|
|
16483
|
-
), step === "loading" && /* @__PURE__ */
|
|
16484
|
-
/* @__PURE__ */
|
|
16485
|
-
} }, "Terms of Service"), " ", "&", " ", /* @__PURE__ */
|
|
16690
|
+
), step === "loading" && /* @__PURE__ */ React81.createElement("div", { className: loading }, /* @__PURE__ */ React81.createElement("div", { className: spinner3 }), /* @__PURE__ */ React81.createElement("p", null, "Creating your wallet..."))),
|
|
16691
|
+
/* @__PURE__ */ React81.createElement("div", { className: footer }, /* @__PURE__ */ React81.createElement("p", { className: footerText }, "By logging in, you agree to our", " ", /* @__PURE__ */ React81.createElement("button", { type: "button", className: link, onClick: () => {
|
|
16692
|
+
} }, "Terms of Service"), " ", "&", " ", /* @__PURE__ */ React81.createElement("button", { type: "button", className: link, onClick: () => {
|
|
16486
16693
|
} }, "Privacy Policy"), "."))
|
|
16487
16694
|
)
|
|
16488
16695
|
);
|
|
16489
16696
|
}
|
|
16490
16697
|
|
|
16491
16698
|
// src/providers/AbcAuthProvider.tsx
|
|
16492
|
-
import
|
|
16493
|
-
createContext as
|
|
16494
|
-
useContext as
|
|
16495
|
-
useState as
|
|
16496
|
-
useEffect as
|
|
16699
|
+
import React82, {
|
|
16700
|
+
createContext as createContext15,
|
|
16701
|
+
useContext as useContext30,
|
|
16702
|
+
useState as useState33,
|
|
16703
|
+
useEffect as useEffect27,
|
|
16497
16704
|
useCallback as useCallback16
|
|
16498
16705
|
} from "react";
|
|
16499
16706
|
var DEBUG2 = true;
|
|
16500
16707
|
var STORAGE_PREFIX2 = "talkenkit_abc_";
|
|
16501
|
-
var AbcAuthContext =
|
|
16708
|
+
var AbcAuthContext = createContext15(null);
|
|
16502
16709
|
function useAbcAuth() {
|
|
16503
|
-
const context =
|
|
16710
|
+
const context = useContext30(AbcAuthContext);
|
|
16504
16711
|
if (!context) {
|
|
16505
16712
|
throw new Error("useAbcAuth must be used within AbcAuthProvider");
|
|
16506
16713
|
}
|
|
16507
16714
|
return context;
|
|
16508
16715
|
}
|
|
16509
16716
|
function AbcAuthProvider({ children }) {
|
|
16510
|
-
const [state, setState] =
|
|
16717
|
+
const [state, setState] = useState33({
|
|
16511
16718
|
isAuthenticated: false,
|
|
16512
16719
|
user: {
|
|
16513
16720
|
email: null,
|
|
@@ -16653,7 +16860,7 @@ function AbcAuthProvider({ children }) {
|
|
|
16653
16860
|
const setAuthState = useCallback16((partial) => {
|
|
16654
16861
|
setState((prev) => ({ ...prev, ...partial }));
|
|
16655
16862
|
}, []);
|
|
16656
|
-
|
|
16863
|
+
useEffect27(() => {
|
|
16657
16864
|
const restoreSession = async () => {
|
|
16658
16865
|
try {
|
|
16659
16866
|
const authStateStr = localStorage.getItem(
|
|
@@ -16695,7 +16902,7 @@ function AbcAuthProvider({ children }) {
|
|
|
16695
16902
|
};
|
|
16696
16903
|
restoreSession();
|
|
16697
16904
|
}, []);
|
|
16698
|
-
|
|
16905
|
+
useEffect27(() => {
|
|
16699
16906
|
if (!state.tokens.refreshToken || !state.tokens.expiresAt)
|
|
16700
16907
|
return;
|
|
16701
16908
|
const checkAndRefresh = () => {
|
|
@@ -16717,25 +16924,25 @@ function AbcAuthProvider({ children }) {
|
|
|
16717
16924
|
refreshToken,
|
|
16718
16925
|
isTokenExpired: isTokenExpired2
|
|
16719
16926
|
};
|
|
16720
|
-
return /* @__PURE__ */
|
|
16927
|
+
return /* @__PURE__ */ React82.createElement(AbcAuthContext.Provider, { value }, children);
|
|
16721
16928
|
}
|
|
16722
16929
|
|
|
16723
16930
|
// src/components/AbcAuth/PinProvider.tsx
|
|
16724
|
-
import
|
|
16725
|
-
createContext as
|
|
16726
|
-
useContext as
|
|
16727
|
-
useState as
|
|
16931
|
+
import React83, {
|
|
16932
|
+
createContext as createContext16,
|
|
16933
|
+
useContext as useContext31,
|
|
16934
|
+
useState as useState34,
|
|
16728
16935
|
useCallback as useCallback17,
|
|
16729
|
-
useEffect as
|
|
16936
|
+
useEffect as useEffect28
|
|
16730
16937
|
} from "react";
|
|
16731
16938
|
import { useAccount as useAccount19 } from "wagmi";
|
|
16732
|
-
var PinContext =
|
|
16939
|
+
var PinContext = createContext16(null);
|
|
16733
16940
|
function PinProvider({ children }) {
|
|
16734
|
-
const [isModalOpen, setIsModalOpen] =
|
|
16735
|
-
const [purpose, setPurpose] =
|
|
16736
|
-
const [pinResolver, setPinResolver] =
|
|
16737
|
-
const [pinRejecter, setPinRejecter] =
|
|
16738
|
-
const [error3, setError] =
|
|
16941
|
+
const [isModalOpen, setIsModalOpen] = useState34(false);
|
|
16942
|
+
const [purpose, setPurpose] = useState34("transaction");
|
|
16943
|
+
const [pinResolver, setPinResolver] = useState34(null);
|
|
16944
|
+
const [pinRejecter, setPinRejecter] = useState34(null);
|
|
16945
|
+
const [error3, setError] = useState34("");
|
|
16739
16946
|
const { connector, isConnected } = useAccount19();
|
|
16740
16947
|
const requestPin = useCallback17(
|
|
16741
16948
|
(requestPurpose = "transaction") => {
|
|
@@ -16770,7 +16977,7 @@ function PinProvider({ children }) {
|
|
|
16770
16977
|
setError("");
|
|
16771
16978
|
}
|
|
16772
16979
|
}, [pinRejecter]);
|
|
16773
|
-
|
|
16980
|
+
useEffect28(() => {
|
|
16774
16981
|
if (!connector || !isConnected) {
|
|
16775
16982
|
return;
|
|
16776
16983
|
}
|
|
@@ -16802,7 +17009,7 @@ function PinProvider({ children }) {
|
|
|
16802
17009
|
const value = {
|
|
16803
17010
|
requestPin
|
|
16804
17011
|
};
|
|
16805
|
-
return /* @__PURE__ */
|
|
17012
|
+
return /* @__PURE__ */ React83.createElement(PinContext.Provider, { value }, children, /* @__PURE__ */ React83.createElement(
|
|
16806
17013
|
PinInputModal,
|
|
16807
17014
|
{
|
|
16808
17015
|
isOpen: isModalOpen,
|
|
@@ -16816,7 +17023,7 @@ function PinProvider({ children }) {
|
|
|
16816
17023
|
));
|
|
16817
17024
|
}
|
|
16818
17025
|
function usePin() {
|
|
16819
|
-
const context =
|
|
17026
|
+
const context = useContext31(PinContext);
|
|
16820
17027
|
if (!context) {
|
|
16821
17028
|
throw new Error("usePin must be used within PinProvider");
|
|
16822
17029
|
}
|
|
@@ -17087,8 +17294,10 @@ export {
|
|
|
17087
17294
|
useAddRecentTransaction,
|
|
17088
17295
|
useChainModal,
|
|
17089
17296
|
useConnectModal,
|
|
17297
|
+
useDeviceType,
|
|
17090
17298
|
useMultiChain,
|
|
17091
17299
|
usePin,
|
|
17300
|
+
useRainbowKitConfig,
|
|
17092
17301
|
useSolSignMessage,
|
|
17093
17302
|
useSolSignTransaction,
|
|
17094
17303
|
verifyOtpCode,
|