@funkit/connect 9.7.0 → 9.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/__generated__/default_configs.d.ts +3 -5
- package/dist/__generated__/default_feature_gates.d.ts +3 -0
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +8 -4
- package/dist/hooks/track/CheckoutModalEvent.d.ts +3 -1
- package/dist/hooks/useIsUserUnderComplianceReview.d.ts +1 -0
- package/dist/index.js +739 -650
- package/dist/modals/CheckoutModal/SourceChange/ComplianceReviewBanner.d.ts +6 -0
- package/dist/modals/CheckoutModal/SourceChange/ConnectedSource.d.ts +2 -1
- package/dist/modals/CheckoutModal/SourceChange/FormOfPaymentsList.d.ts +2 -1
- package/dist/utils/flags/config.d.ts +7 -0
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.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/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 +45 -45
- 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/zerionWallet/zerionWallet.js +2 -2
- package/package.json +2 -2
- package/dist/wallets/walletConnectors/{chunk-5TN5Z2WY.js → chunk-3ZJN3PXP.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-V6UOWTEZ.js → chunk-55VS2NKG.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-DEFRRPXB.js → chunk-7IEUTLHY.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-LCIPVVH5.js → chunk-AZYMJ4C6.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-T4ROGPMF.js → chunk-FWM4KTOV.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-YIEASHLS.js → chunk-IMNI4AGV.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-7V33VJAL.js → chunk-IRHK6SOW.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-UDTBQV4Q.js → chunk-J3PJOMO7.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-VJZWNQOF.js → chunk-LEAZMT5Y.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-6DRCY52E.js → chunk-OD6B2ISG.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-FG2LDVXL.js → chunk-OSOB6QYX.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-XVBSJCW5.js → chunk-RZQ4B4Z7.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-KWX2SYU2.js → chunk-UFYNHHDU.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-HXWUH73P.js → chunk-UYW6MV74.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-34HACM5U.js → chunk-VMMROPXK.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ZPSPK6LH.js → chunk-YGMU5VWD.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-APHCF4DT.js → chunk-ZJJWGKB6.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-HRDPUW3V.js → chunk-ZL6XCMV5.js} +3 -3
package/dist/index.js
CHANGED
|
@@ -446,7 +446,7 @@ function Avatar({ address, imageUrl, loading, size }) {
|
|
|
446
446
|
}
|
|
447
447
|
|
|
448
448
|
// src/components/ConnectButton/ConnectButton.tsx
|
|
449
|
-
import
|
|
449
|
+
import React281, { useEffect as useEffect74, useState as useState82 } from "react";
|
|
450
450
|
|
|
451
451
|
// src/css/touchableStyles.css.ts
|
|
452
452
|
var active = { shrink: "_7rkubb8", shrinkSm: "_7rkubb9" };
|
|
@@ -1071,7 +1071,7 @@ var getRemoteImageStyles = (isRemoteImage, isRemoteImageLoaded, src) => {
|
|
|
1071
1071
|
|
|
1072
1072
|
// src/components/ConnectButton/ConnectButtonRenderer.tsx
|
|
1073
1073
|
import { formatCurrencyAndStringify as formatCurrencyAndStringify15, isMobile as isMobile14, noop as noop9 } from "@funkit/utils";
|
|
1074
|
-
import
|
|
1074
|
+
import React280 from "react";
|
|
1075
1075
|
import { formatUnits as formatUnits6 } from "viem";
|
|
1076
1076
|
|
|
1077
1077
|
// src/hooks/useIsMounted.ts
|
|
@@ -1276,11 +1276,11 @@ import {
|
|
|
1276
1276
|
SOLANA_MAINNET_CHAIN_ID as SOLANA_MAINNET_CHAIN_ID2
|
|
1277
1277
|
} from "@funkit/chains";
|
|
1278
1278
|
import { isNotNullish as isNotNullish8, isTokenAddressEquivalent as isTokenAddressEquivalent4 } from "@funkit/utils";
|
|
1279
|
-
import
|
|
1279
|
+
import React279, {
|
|
1280
1280
|
createContext as createContext21,
|
|
1281
1281
|
useCallback as useCallback54,
|
|
1282
1282
|
useContext as useContext21,
|
|
1283
|
-
useEffect as
|
|
1283
|
+
useEffect as useEffect73,
|
|
1284
1284
|
useState as useState81
|
|
1285
1285
|
} from "react";
|
|
1286
1286
|
import { flushSync as flushSync2 } from "react-dom";
|
|
@@ -2335,11 +2335,6 @@ var default_configs_default = {
|
|
|
2335
2335
|
isfunuser: {
|
|
2336
2336
|
value: false
|
|
2337
2337
|
},
|
|
2338
|
-
ismexico: {
|
|
2339
|
-
value: {
|
|
2340
|
-
mexico: false
|
|
2341
|
-
}
|
|
2342
|
-
},
|
|
2343
2338
|
isrelaybypassenabled: {
|
|
2344
2339
|
value: true
|
|
2345
2340
|
},
|
|
@@ -2453,6 +2448,9 @@ var default_configs_default = {
|
|
|
2453
2448
|
showpoweredtagline: {
|
|
2454
2449
|
value: false
|
|
2455
2450
|
},
|
|
2451
|
+
stablecoinsymbols: {
|
|
2452
|
+
value: ["USDC", "USDC.e", "USDT", "DAI", "USDe"]
|
|
2453
|
+
},
|
|
2456
2454
|
supportedexchangesv2: {
|
|
2457
2455
|
value: []
|
|
2458
2456
|
},
|
|
@@ -2987,7 +2985,7 @@ function setFunkitConnectVersion({ version }) {
|
|
|
2987
2985
|
localStorage.setItem(storageKey, version);
|
|
2988
2986
|
}
|
|
2989
2987
|
function getCurrentSdkVersion() {
|
|
2990
|
-
return "9.7.
|
|
2988
|
+
return "9.7.1";
|
|
2991
2989
|
}
|
|
2992
2990
|
function useFingerprint() {
|
|
2993
2991
|
const fingerprint = useCallback3(() => {
|
|
@@ -7231,11 +7229,11 @@ var useFunkitPostCheckoutInternal = (checkoutId) => {
|
|
|
7231
7229
|
};
|
|
7232
7230
|
|
|
7233
7231
|
// src/providers/ModalContext.tsx
|
|
7234
|
-
import
|
|
7232
|
+
import React278, {
|
|
7235
7233
|
createContext as createContext20,
|
|
7236
7234
|
useCallback as useCallback53,
|
|
7237
7235
|
useContext as useContext20,
|
|
7238
|
-
useEffect as
|
|
7236
|
+
useEffect as useEffect72,
|
|
7239
7237
|
useMemo as useMemo60,
|
|
7240
7238
|
useState as useState80
|
|
7241
7239
|
} from "react";
|
|
@@ -10098,6 +10096,21 @@ var flagConfig = {
|
|
|
10098
10096
|
// Relay does not support Bitcoin to Hyperliquid USDH route (https://fun-xyz.slack.com/archives/C0AKC3U55FC)
|
|
10099
10097
|
// If we want to enable other chains for Ventuals, please remember to exclude Bitcoin
|
|
10100
10098
|
value: JSON.stringify(QR_CODE_WITH_SOLANA)
|
|
10099
|
+
},
|
|
10100
|
+
{
|
|
10101
|
+
if_any: [
|
|
10102
|
+
{
|
|
10103
|
+
key: "apiKey",
|
|
10104
|
+
type: "isAnyOf",
|
|
10105
|
+
values: [BULLPEN_API_KEY]
|
|
10106
|
+
}
|
|
10107
|
+
],
|
|
10108
|
+
value: JSON.stringify({
|
|
10109
|
+
...QR_CODE_EVM,
|
|
10110
|
+
// Solana: SOL only — SPL tokens (USDC, USDT, TRUMP, USDe) disabled for Bullpen
|
|
10111
|
+
1151111081099710: ["SOL"],
|
|
10112
|
+
[bitcoinChain3.id]: ["BTC"]
|
|
10113
|
+
})
|
|
10101
10114
|
}
|
|
10102
10115
|
]
|
|
10103
10116
|
},
|
|
@@ -11282,7 +11295,8 @@ var en_default = {
|
|
|
11282
11295
|
noPaymentMethodsInRegion: "There are currently no available payment methods in your region.",
|
|
11283
11296
|
unavailable: "Unavailable",
|
|
11284
11297
|
unavailableInRegionTooltip: "Feature is not available in your region",
|
|
11285
|
-
seeMore: "See more"
|
|
11298
|
+
seeMore: "See more",
|
|
11299
|
+
complianceReviewMessage: "Your transaction is under review. <GetHelpLink>Get help</GetHelpLink>"
|
|
11286
11300
|
},
|
|
11287
11301
|
quote: {
|
|
11288
11302
|
preparingYourQuote: "Preparing your quote...",
|
|
@@ -11826,7 +11840,8 @@ var es_default = {
|
|
|
11826
11840
|
noPaymentMethodsInRegion: "Actualmente no hay m\xE9todos de pago disponibles en tu regi\xF3n.",
|
|
11827
11841
|
unavailable: "No disponible",
|
|
11828
11842
|
unavailableInRegionTooltip: "La funci\xF3n no est\xE1 disponible en tu regi\xF3n",
|
|
11829
|
-
seeMore: "Ver m\xE1s"
|
|
11843
|
+
seeMore: "Ver m\xE1s",
|
|
11844
|
+
complianceReviewMessage: "Tu transacci\xF3n est\xE1 bajo revisi\xF3n. <GetHelpLink>Obtener ayuda</GetHelpLink>"
|
|
11830
11845
|
},
|
|
11831
11846
|
quote: {
|
|
11832
11847
|
preparingYourQuote: "Preparando tu cotizaci\xF3n...",
|
|
@@ -12370,7 +12385,8 @@ var fr_default = {
|
|
|
12370
12385
|
noPaymentMethodsInRegion: "Il n'y a actuellement aucun moyen de paiement disponible dans votre r\xE9gion.",
|
|
12371
12386
|
unavailable: "Indisponible",
|
|
12372
12387
|
unavailableInRegionTooltip: "Cette fonctionnalit\xE9 n'est pas disponible dans votre r\xE9gion",
|
|
12373
|
-
seeMore: "Voir plus"
|
|
12388
|
+
seeMore: "Voir plus",
|
|
12389
|
+
complianceReviewMessage: "Votre transaction est en cours d'examen. <GetHelpLink>Obtenir de l'aide</GetHelpLink>"
|
|
12374
12390
|
},
|
|
12375
12391
|
quote: {
|
|
12376
12392
|
preparingYourQuote: "Pr\xE9paration de votre cotation...",
|
|
@@ -12914,7 +12930,8 @@ var ja_default = {
|
|
|
12914
12930
|
noPaymentMethodsInRegion: "\u73FE\u5728\u3001\u304A\u4F4F\u307E\u3044\u306E\u5730\u57DF\u3067\u3054\u5229\u7528\u3044\u305F\u3060\u3051\u308B\u6C7A\u6E08\u65B9\u6CD5\u306F\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
12915
12931
|
unavailable: "\u5229\u7528\u4E0D\u53EF",
|
|
12916
12932
|
unavailableInRegionTooltip: "\u3053\u306E\u6A5F\u80FD\u306F\u3042\u306A\u305F\u306E\u5730\u57DF\u3067\u306F\u5229\u7528\u3067\u304D\u307E\u305B\u3093",
|
|
12917
|
-
seeMore: "\u3082\u3063\u3068\u898B\u308B"
|
|
12933
|
+
seeMore: "\u3082\u3063\u3068\u898B\u308B",
|
|
12934
|
+
complianceReviewMessage: "\u304A\u5BA2\u69D8\u306E\u53D6\u5F15\u306F\u5BE9\u67FB\u4E2D\u3067\u3059\u3002<GetHelpLink>\u30D8\u30EB\u30D7\u3092\u898B\u308B</GetHelpLink>"
|
|
12918
12935
|
},
|
|
12919
12936
|
quote: {
|
|
12920
12937
|
preparingYourQuote: "\u898B\u7A4D\u3082\u308A\u3092\u6E96\u5099\u4E2D...",
|
|
@@ -13458,7 +13475,8 @@ var ko_default = {
|
|
|
13458
13475
|
noPaymentMethodsInRegion: "\uD604\uC7AC \uADC0\uD558\uC758 \uC9C0\uC5ED\uC5D0\uC11C \uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uACB0\uC81C \uC218\uB2E8\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
13459
13476
|
unavailable: "\uC0AC\uC6A9 \uBD88\uAC00",
|
|
13460
13477
|
unavailableInRegionTooltip: "\uC774 \uAE30\uB2A5\uC740 \uADC0\uD558\uC758 \uC9C0\uC5ED\uC5D0\uC11C \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4",
|
|
13461
|
-
seeMore: "\uB354 \uBCF4\uAE30"
|
|
13478
|
+
seeMore: "\uB354 \uBCF4\uAE30",
|
|
13479
|
+
complianceReviewMessage: "\uADC0\uD558\uC758 \uAC70\uB798\uAC00 \uAC80\uD1A0 \uC911\uC785\uB2C8\uB2E4. <GetHelpLink>\uB3C4\uC6C0\uBC1B\uAE30</GetHelpLink>"
|
|
13462
13480
|
},
|
|
13463
13481
|
quote: {
|
|
13464
13482
|
preparingYourQuote: "\uACAC\uC801 \uC900\uBE44 \uC911...",
|
|
@@ -14002,7 +14020,8 @@ var ru_default = {
|
|
|
14002
14020
|
noPaymentMethodsInRegion: "\u0412 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0435\u0435 \u0432\u0440\u0435\u043C\u044F \u0432 \u0432\u0430\u0448\u0435\u043C \u0440\u0435\u0433\u0438\u043E\u043D\u0435 \u043D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u0432 \u043E\u043F\u043B\u0430\u0442\u044B.",
|
|
14003
14021
|
unavailable: "\u041D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E",
|
|
14004
14022
|
unavailableInRegionTooltip: "\u042D\u0442\u0430 \u0444\u0443\u043D\u043A\u0446\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432 \u0432\u0430\u0448\u0435\u043C \u0440\u0435\u0433\u0438\u043E\u043D\u0435",
|
|
14005
|
-
seeMore: "\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0431\u043E\u043B\u044C\u0448\u0435"
|
|
14023
|
+
seeMore: "\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0431\u043E\u043B\u044C\u0448\u0435",
|
|
14024
|
+
complianceReviewMessage: "\u0412\u0430\u0448\u0430 \u0442\u0440\u0430\u043D\u0437\u0430\u043A\u0446\u0438\u044F \u043D\u0430\u0445\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0435. <GetHelpLink>\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043F\u043E\u043C\u043E\u0449\u044C</GetHelpLink>"
|
|
14006
14025
|
},
|
|
14007
14026
|
quote: {
|
|
14008
14027
|
preparingYourQuote: "\u041F\u043E\u0434\u0433\u043E\u0442\u043E\u0432\u043A\u0430 \u0432\u0430\u0448\u0435\u0439 \u043A\u043E\u0442\u0438\u0440\u043E\u0432\u043A\u0438...",
|
|
@@ -14546,7 +14565,8 @@ var tr_default = {
|
|
|
14546
14565
|
noPaymentMethodsInRegion: "B\xF6lgenizde \u015Fu anda kullan\u0131labilir \xF6deme y\xF6ntemi bulunmamaktad\u0131r.",
|
|
14547
14566
|
unavailable: "Kullan\u0131lamaz",
|
|
14548
14567
|
unavailableInRegionTooltip: "Bu \xF6zellik b\xF6lgenizde kullan\u0131lamaz",
|
|
14549
|
-
seeMore: "Daha fazla"
|
|
14568
|
+
seeMore: "Daha fazla",
|
|
14569
|
+
complianceReviewMessage: "\u0130\u015Fleminiz inceleme alt\u0131ndad\u0131r. <GetHelpLink>Yard\u0131m al\u0131n</GetHelpLink>"
|
|
14550
14570
|
},
|
|
14551
14571
|
quote: {
|
|
14552
14572
|
preparingYourQuote: "Teklifiniz haz\u0131rlan\u0131yor...",
|
|
@@ -15090,7 +15110,8 @@ var zh_default = {
|
|
|
15090
15110
|
noPaymentMethodsInRegion: "\u60A8\u6240\u5728\u7684\u5730\u533A\u76EE\u524D\u6CA1\u6709\u53EF\u7528\u7684\u4ED8\u6B3E\u65B9\u5F0F\u3002",
|
|
15091
15111
|
unavailable: "\u4E0D\u53EF\u7528",
|
|
15092
15112
|
unavailableInRegionTooltip: "\u6B64\u529F\u80FD\u5728\u60A8\u6240\u5728\u5730\u533A\u4E0D\u53EF\u7528",
|
|
15093
|
-
seeMore: "\u67E5\u770B\u66F4\u591A"
|
|
15113
|
+
seeMore: "\u67E5\u770B\u66F4\u591A",
|
|
15114
|
+
complianceReviewMessage: "\u60A8\u7684\u4EA4\u6613\u6B63\u5728\u5BA1\u6838\u4E2D\u3002<GetHelpLink>\u83B7\u53D6\u5E2E\u52A9</GetHelpLink>"
|
|
15094
15115
|
},
|
|
15095
15116
|
quote: {
|
|
15096
15117
|
preparingYourQuote: "\u6B63\u5728\u51C6\u5907\u60A8\u7684\u62A5\u4EF7...",
|
|
@@ -16285,7 +16306,7 @@ function QuoteModeProvider({ children }) {
|
|
|
16285
16306
|
if (!checkoutId) {
|
|
16286
16307
|
return;
|
|
16287
16308
|
}
|
|
16288
|
-
const key = `${checkoutId}|${builder.mode}`;
|
|
16309
|
+
const key = `${checkoutId}|${builder.mode}|${hasPostAction}`;
|
|
16289
16310
|
if (lastLoggedKey.current === key) {
|
|
16290
16311
|
return;
|
|
16291
16312
|
}
|
|
@@ -20079,7 +20100,8 @@ var ConnectedBluvoPaymentMethodItem = ({
|
|
|
20079
20100
|
isSelected,
|
|
20080
20101
|
onSelect,
|
|
20081
20102
|
onBrokerageError,
|
|
20082
|
-
showSelectedCheckmark = true
|
|
20103
|
+
showSelectedCheckmark = true,
|
|
20104
|
+
disabled
|
|
20083
20105
|
}) => {
|
|
20084
20106
|
const { isUserGeoblocked } = useFunkitUserIp();
|
|
20085
20107
|
const { t } = useFunkitTranslation();
|
|
@@ -20106,7 +20128,7 @@ var ConnectedBluvoPaymentMethodItem = ({
|
|
|
20106
20128
|
time: estimatedTimeText
|
|
20107
20129
|
});
|
|
20108
20130
|
const hasLowBalance = !isPending && sourceBalance < getUsdMinAmount();
|
|
20109
|
-
const isDisabled = isPending || !!isBalanceError || hasLowBalance || isUserGeoblocked;
|
|
20131
|
+
const isDisabled = disabled || isPending || !!isBalanceError || hasLowBalance || isUserGeoblocked;
|
|
20110
20132
|
const icon = isPending ? /* @__PURE__ */ React76.createElement(SpinnerIcon, { size: 20 }) : label.icon;
|
|
20111
20133
|
useEffect28(() => {
|
|
20112
20134
|
if (isPending) {
|
|
@@ -20136,7 +20158,8 @@ var AccountBalancePaymentMethodItem = ({
|
|
|
20136
20158
|
showSelectedCheckmark = true,
|
|
20137
20159
|
onSelect,
|
|
20138
20160
|
targetChainId,
|
|
20139
|
-
testId
|
|
20161
|
+
testId,
|
|
20162
|
+
disabled
|
|
20140
20163
|
}) => {
|
|
20141
20164
|
const { isUserGeoblocked } = useFunkitUserIp();
|
|
20142
20165
|
const { activeTheme } = useActiveTheme();
|
|
@@ -20161,7 +20184,7 @@ var AccountBalancePaymentMethodItem = ({
|
|
|
20161
20184
|
activeTheme.dimensions.paymentMethodItemIconSize,
|
|
20162
20185
|
10
|
|
20163
20186
|
);
|
|
20164
|
-
const isDisabled = isLoadingAssets || !hasUsableBalance || isUserGeoblocked;
|
|
20187
|
+
const isDisabled = disabled || isLoadingAssets || !hasUsableBalance || isUserGeoblocked;
|
|
20165
20188
|
return /* @__PURE__ */ React76.createElement(
|
|
20166
20189
|
FunPaymentMethodItem,
|
|
20167
20190
|
{
|
|
@@ -20309,7 +20332,8 @@ var ActiveFiatAccountPaymentMethodItem = ({
|
|
|
20309
20332
|
onClick,
|
|
20310
20333
|
paymentMethodInfo,
|
|
20311
20334
|
customValueIcon,
|
|
20312
|
-
testId
|
|
20335
|
+
testId,
|
|
20336
|
+
disabled
|
|
20313
20337
|
}) => {
|
|
20314
20338
|
const { isUserGeoblocked } = useFunkitUserIp();
|
|
20315
20339
|
const { t } = useFunkitTranslation();
|
|
@@ -20323,7 +20347,7 @@ var ActiveFiatAccountPaymentMethodItem = ({
|
|
|
20323
20347
|
FunPaymentMethodItem,
|
|
20324
20348
|
{
|
|
20325
20349
|
isActive,
|
|
20326
|
-
isDisabled: isUserGeoblocked,
|
|
20350
|
+
isDisabled: disabled || isUserGeoblocked,
|
|
20327
20351
|
keyIcon: label.icon,
|
|
20328
20352
|
valueIcon: customValueIcon ?? (customerStatus === BridgeCustomerStatus3.OFFBOARDED && /* @__PURE__ */ React76.createElement(BridgeCustomerStatusBadge, { status: customerStatus })),
|
|
20329
20353
|
keyText,
|
|
@@ -20479,12 +20503,13 @@ function FopPaymentMethodItem({
|
|
|
20479
20503
|
isActive,
|
|
20480
20504
|
onClick,
|
|
20481
20505
|
testId,
|
|
20482
|
-
disclaimerLimit
|
|
20506
|
+
disclaimerLimit,
|
|
20507
|
+
disabled
|
|
20483
20508
|
}) {
|
|
20484
20509
|
const { isUserGeoblocked } = useFunkitUserIp();
|
|
20485
20510
|
const { geoblocked: isQrCodeGeoblocked } = useIsQRCodeTransferEnabled();
|
|
20486
20511
|
const isGeoblocked = isQrCodeGeoblocked || isUserGeoblocked;
|
|
20487
|
-
const isDisabled = isGeoblocked || !fop.embeddedFlowUrl;
|
|
20512
|
+
const isDisabled = disabled || isGeoblocked || !fop.embeddedFlowUrl;
|
|
20488
20513
|
const { activeTheme, darkTheme: darkTheme2 } = useActiveTheme();
|
|
20489
20514
|
const { t } = useFunkitTranslation();
|
|
20490
20515
|
const isDarkMode = activeTheme === darkTheme2;
|
|
@@ -26712,7 +26737,8 @@ function FormOfPaymentsContent({
|
|
|
26712
26737
|
onFopSelect,
|
|
26713
26738
|
exchangeRatesData,
|
|
26714
26739
|
defaultMaxItems,
|
|
26715
|
-
enableSourceGroupLabels
|
|
26740
|
+
enableSourceGroupLabels,
|
|
26741
|
+
isDisabled
|
|
26716
26742
|
}) {
|
|
26717
26743
|
const { t } = useFunkitTranslation();
|
|
26718
26744
|
const [isExpanded, setIsExpanded] = useState38(false);
|
|
@@ -26761,7 +26787,8 @@ function FormOfPaymentsContent({
|
|
|
26761
26787
|
fop,
|
|
26762
26788
|
disclaimerLimit: getFopsLimit(fop, exchangeRatesData),
|
|
26763
26789
|
isActive: selectedFop?.embeddedFlowUrl === fop.embeddedFlowUrl,
|
|
26764
|
-
onClick: () => onFopSelect(fop)
|
|
26790
|
+
onClick: () => onFopSelect(fop),
|
|
26791
|
+
disabled: isDisabled
|
|
26765
26792
|
}
|
|
26766
26793
|
);
|
|
26767
26794
|
if (!enableSourceGroupLabels) {
|
|
@@ -26792,7 +26819,8 @@ function FormOfPaymentsList({
|
|
|
26792
26819
|
selectedFop,
|
|
26793
26820
|
onFopSelect,
|
|
26794
26821
|
exchangeRatesData,
|
|
26795
|
-
enableSourceGroupLabels
|
|
26822
|
+
enableSourceGroupLabels,
|
|
26823
|
+
isDisabled
|
|
26796
26824
|
}) {
|
|
26797
26825
|
const { uiCustomizations } = useFunkitConfig();
|
|
26798
26826
|
const boxClassName = uiCustomizations.enableCompactList ? sourceListCompactBoxStyles : sourceListBoxStyles;
|
|
@@ -26822,7 +26850,8 @@ function FormOfPaymentsList({
|
|
|
26822
26850
|
onFopSelect,
|
|
26823
26851
|
exchangeRatesData,
|
|
26824
26852
|
defaultMaxItems,
|
|
26825
|
-
enableSourceGroupLabels
|
|
26853
|
+
enableSourceGroupLabels,
|
|
26854
|
+
isDisabled
|
|
26826
26855
|
}
|
|
26827
26856
|
);
|
|
26828
26857
|
}
|
|
@@ -27656,7 +27685,7 @@ function WithdrawalModal({
|
|
|
27656
27685
|
}
|
|
27657
27686
|
|
|
27658
27687
|
// src/modals/AccountModal/AccountModal.tsx
|
|
27659
|
-
import
|
|
27688
|
+
import React256 from "react";
|
|
27660
27689
|
|
|
27661
27690
|
// src/modals/ProfileDetails/ActivityTraversalContext.tsx
|
|
27662
27691
|
import React138, {
|
|
@@ -27731,15 +27760,15 @@ var useActivityTraversal = () => {
|
|
|
27731
27760
|
};
|
|
27732
27761
|
|
|
27733
27762
|
// src/modals/ProfileDetails/ProfileDetails.tsx
|
|
27734
|
-
import
|
|
27763
|
+
import React255, { useCallback as useCallback49, useState as useState73 } from "react";
|
|
27735
27764
|
|
|
27736
27765
|
// src/components/ModalHeightAnimationLayer/FunCheckoutModalHeightAnimationWrapper.tsx
|
|
27737
|
-
import
|
|
27766
|
+
import React241 from "react";
|
|
27738
27767
|
|
|
27739
27768
|
// src/modals/CheckoutModal/stepTransition.ts
|
|
27740
27769
|
import {
|
|
27741
27770
|
useCallback as useCallback47,
|
|
27742
|
-
useEffect as
|
|
27771
|
+
useEffect as useEffect62,
|
|
27743
27772
|
useRef as useRef32,
|
|
27744
27773
|
useState as useState70
|
|
27745
27774
|
} from "react";
|
|
@@ -37559,7 +37588,7 @@ import {
|
|
|
37559
37588
|
} from "@funkit/api-base";
|
|
37560
37589
|
import { LIGHTER_CHAIN_ID as LIGHTER_CHAIN_ID3 } from "@funkit/chains";
|
|
37561
37590
|
import { noop as noop8 } from "@funkit/utils";
|
|
37562
|
-
import
|
|
37591
|
+
import React222, { useEffect as useEffect56, useRef as useRef28, useState as useState63 } from "react";
|
|
37563
37592
|
import { createPortal as createPortal18 } from "react-dom";
|
|
37564
37593
|
|
|
37565
37594
|
// src/components/Dropdown/ReceiveTokenDropdown.tsx
|
|
@@ -37659,6 +37688,13 @@ var ReceiveTokenDropdown = ({
|
|
|
37659
37688
|
);
|
|
37660
37689
|
};
|
|
37661
37690
|
|
|
37691
|
+
// src/hooks/useIsUserUnderComplianceReview.ts
|
|
37692
|
+
function useIsUserUnderComplianceReview() {
|
|
37693
|
+
const { transferInit } = useCheckoutTransferInit();
|
|
37694
|
+
const isComplianceReviewEnabled = useFeatureGate("compliance-review-blocker");
|
|
37695
|
+
return isComplianceReviewEnabled && !!transferInit?.blocked;
|
|
37696
|
+
}
|
|
37697
|
+
|
|
37662
37698
|
// src/hooks/useSwappedPreload.ts
|
|
37663
37699
|
import { useEffect as useEffect54 } from "react";
|
|
37664
37700
|
|
|
@@ -37822,46 +37858,88 @@ function useSwappedPreload(fopsData) {
|
|
|
37822
37858
|
}, [fopsData, setIframeUrl, fopPriority]);
|
|
37823
37859
|
}
|
|
37824
37860
|
|
|
37861
|
+
// src/modals/CheckoutModal/SourceChange/ComplianceReviewBanner.tsx
|
|
37862
|
+
import React218, { useEffect as useEffect55 } from "react";
|
|
37863
|
+
import { Trans as Trans14 } from "react-i18next";
|
|
37864
|
+
function ComplianceReviewBanner({
|
|
37865
|
+
checkoutId
|
|
37866
|
+
}) {
|
|
37867
|
+
const { t } = useFunkitTranslation();
|
|
37868
|
+
const { logEvent } = useTrack();
|
|
37869
|
+
useEffect55(() => {
|
|
37870
|
+
logEvent({
|
|
37871
|
+
eventName: "fc::compliance_review::banner_shown" /* COMPLIANCE_REVIEW_BANNER_SHOWN */,
|
|
37872
|
+
metadata: { checkoutId }
|
|
37873
|
+
});
|
|
37874
|
+
}, [checkoutId, logEvent]);
|
|
37875
|
+
const trackGetHelpClick = () => {
|
|
37876
|
+
logEvent({
|
|
37877
|
+
eventName: "fc::compliance_review::get_help_clicked" /* COMPLIANCE_REVIEW_GET_HELP_CLICKED */,
|
|
37878
|
+
metadata: { checkoutId }
|
|
37879
|
+
});
|
|
37880
|
+
};
|
|
37881
|
+
return /* @__PURE__ */ React218.createElement(Box, { marginBottom: "8" }, /* @__PURE__ */ React218.createElement(
|
|
37882
|
+
InfoBanner,
|
|
37883
|
+
{
|
|
37884
|
+
type: "warning",
|
|
37885
|
+
message: /* @__PURE__ */ React218.createElement(
|
|
37886
|
+
Trans14,
|
|
37887
|
+
{
|
|
37888
|
+
t,
|
|
37889
|
+
i18nKey: "sourceChange.complianceReviewMessage",
|
|
37890
|
+
components: {
|
|
37891
|
+
GetHelpLink: /* @__PURE__ */ React218.createElement(ContactSupportLink, { size: "10", onClick: trackGetHelpClick })
|
|
37892
|
+
}
|
|
37893
|
+
}
|
|
37894
|
+
)
|
|
37895
|
+
}
|
|
37896
|
+
));
|
|
37897
|
+
}
|
|
37898
|
+
|
|
37825
37899
|
// src/modals/CheckoutModal/SourceChange/ConnectedSource.tsx
|
|
37826
|
-
import
|
|
37900
|
+
import React219 from "react";
|
|
37827
37901
|
var ConnectedSource = ({
|
|
37828
37902
|
paymentInfo,
|
|
37829
37903
|
targetChainId,
|
|
37830
37904
|
selectedPaymentInfo,
|
|
37831
37905
|
showSelectedCheckmark,
|
|
37832
|
-
onSelect
|
|
37906
|
+
onSelect,
|
|
37907
|
+
isDisabled
|
|
37833
37908
|
}) => {
|
|
37834
37909
|
const isSelected = selectedPaymentInfo?.paymentMethod === paymentInfo.paymentMethod;
|
|
37835
37910
|
switch (paymentInfo.paymentMethod) {
|
|
37836
37911
|
case "balance" /* ACCOUNT_BALANCE */:
|
|
37837
|
-
return /* @__PURE__ */
|
|
37912
|
+
return /* @__PURE__ */ React219.createElement(
|
|
37838
37913
|
AccountBalancePaymentMethodItem,
|
|
37839
37914
|
{
|
|
37840
37915
|
showSelectedCheckmark,
|
|
37841
37916
|
isSelected,
|
|
37842
37917
|
onSelect,
|
|
37843
37918
|
targetChainId,
|
|
37844
|
-
testId: "checkout-source-account-balance"
|
|
37919
|
+
testId: "checkout-source-account-balance",
|
|
37920
|
+
disabled: isDisabled
|
|
37845
37921
|
}
|
|
37846
37922
|
);
|
|
37847
37923
|
case "brokerage" /* BROKERAGE */:
|
|
37848
|
-
return /* @__PURE__ */
|
|
37924
|
+
return /* @__PURE__ */ React219.createElement(
|
|
37849
37925
|
ConnectedBluvoPaymentMethodItem,
|
|
37850
37926
|
{
|
|
37851
37927
|
paymentMethodInfo: paymentInfo,
|
|
37852
37928
|
isSelected,
|
|
37853
37929
|
onSelect,
|
|
37854
|
-
targetChainId
|
|
37930
|
+
targetChainId,
|
|
37931
|
+
disabled: isDisabled
|
|
37855
37932
|
}
|
|
37856
37933
|
);
|
|
37857
37934
|
case "virtual_bank" /* VIRTUAL_BANK */:
|
|
37858
|
-
return /* @__PURE__ */
|
|
37935
|
+
return /* @__PURE__ */ React219.createElement(
|
|
37859
37936
|
ActiveFiatAccountPaymentMethodItem,
|
|
37860
37937
|
{
|
|
37861
37938
|
isActive: isSelected,
|
|
37862
37939
|
onClick: onSelect,
|
|
37863
37940
|
paymentMethodInfo: paymentInfo,
|
|
37864
|
-
testId: "checkout-source-fiat-account"
|
|
37941
|
+
testId: "checkout-source-fiat-account",
|
|
37942
|
+
disabled: isDisabled
|
|
37865
37943
|
}
|
|
37866
37944
|
);
|
|
37867
37945
|
default:
|
|
@@ -37870,11 +37948,11 @@ var ConnectedSource = ({
|
|
|
37870
37948
|
};
|
|
37871
37949
|
|
|
37872
37950
|
// src/modals/CheckoutModal/SourceChange/SourceList.tsx
|
|
37873
|
-
import
|
|
37951
|
+
import React221 from "react";
|
|
37874
37952
|
|
|
37875
37953
|
// src/modals/CheckoutModal/SourceChange/PayPal.tsx
|
|
37876
37954
|
import { MeldServiceProvider as MeldServiceProvider3 } from "@funkit/api-base";
|
|
37877
|
-
import
|
|
37955
|
+
import React220, { useCallback as useCallback42 } from "react";
|
|
37878
37956
|
function PayPal() {
|
|
37879
37957
|
const { apiKey } = useFunkitConfig();
|
|
37880
37958
|
const { data: defaultCurrency } = useMeldDefaultCurrency("card" /* CARD */);
|
|
@@ -37901,7 +37979,7 @@ function PayPal() {
|
|
|
37901
37979
|
return null;
|
|
37902
37980
|
}
|
|
37903
37981
|
const isLoading = isPaypalReady && (!defaultCurrency || !amounts[1] || isPending);
|
|
37904
|
-
return /* @__PURE__ */
|
|
37982
|
+
return /* @__PURE__ */ React220.createElement(
|
|
37905
37983
|
PayPalPaymentMethodItem,
|
|
37906
37984
|
{
|
|
37907
37985
|
isClickable: !isLoading,
|
|
@@ -37928,21 +38006,21 @@ function SourceList({
|
|
|
37928
38006
|
const hasMoreSources = moreSources.length > 0 || unavailable.length > 0;
|
|
37929
38007
|
const boxClassName = uiCustomizations.enableCompactList ? sourceListCompactBoxStyles : sourceListBoxStyles;
|
|
37930
38008
|
if (isSwappedEnabled) {
|
|
37931
|
-
return /* @__PURE__ */
|
|
38009
|
+
return /* @__PURE__ */ React221.createElement(
|
|
37932
38010
|
Box,
|
|
37933
38011
|
{
|
|
37934
38012
|
display: "flex",
|
|
37935
38013
|
flexDirection: "column",
|
|
37936
38014
|
...{ [WITH_EMPTY_STATE_DATA_ATTRIBUTE]: true }
|
|
37937
38015
|
},
|
|
37938
|
-
/* @__PURE__ */
|
|
38016
|
+
/* @__PURE__ */ React221.createElement(
|
|
37939
38017
|
Box,
|
|
37940
38018
|
{
|
|
37941
38019
|
display: "flex",
|
|
37942
38020
|
flexDirection: "column",
|
|
37943
38021
|
className: enableSourceGroupLabels ? sourceListGroupContainerStyles : sourceListGroupContainerNoLabelsStyles
|
|
37944
38022
|
},
|
|
37945
|
-
preferred.length > 0 && /* @__PURE__ */
|
|
38023
|
+
preferred.length > 0 && /* @__PURE__ */ React221.createElement(Box, { display: "flex", flexDirection: "column", gap: "8" }, enableSourceGroupLabels && /* @__PURE__ */ React221.createElement(
|
|
37946
38024
|
Text,
|
|
37947
38025
|
{
|
|
37948
38026
|
color: "secondaryText",
|
|
@@ -37950,8 +38028,8 @@ function SourceList({
|
|
|
37950
38028
|
weight: "sourceListSectionLabelFontWeight"
|
|
37951
38029
|
},
|
|
37952
38030
|
isFallback ? t("sourceChange.mostPopular") : t("sourceChange.connected")
|
|
37953
|
-
), /* @__PURE__ */
|
|
37954
|
-
hasMoreSources && /* @__PURE__ */
|
|
38031
|
+
), /* @__PURE__ */ React221.createElement(Box, { className: boxClassName }, preferred.map(renderSource))),
|
|
38032
|
+
hasMoreSources && /* @__PURE__ */ React221.createElement(Box, { display: "flex", flexDirection: "column", gap: "8" }, preferred.length > 0 && enableSourceGroupLabels && /* @__PURE__ */ React221.createElement(
|
|
37955
38033
|
Text,
|
|
37956
38034
|
{
|
|
37957
38035
|
color: "secondaryText",
|
|
@@ -37959,11 +38037,11 @@ function SourceList({
|
|
|
37959
38037
|
weight: "sourceListSectionLabelFontWeight"
|
|
37960
38038
|
},
|
|
37961
38039
|
t("sourceChange.otherOptions")
|
|
37962
|
-
), /* @__PURE__ */
|
|
38040
|
+
), /* @__PURE__ */ React221.createElement(Box, { className: boxClassName }, moreSources.map(renderSource), unavailable.map(renderUnavailable)))
|
|
37963
38041
|
)
|
|
37964
38042
|
);
|
|
37965
38043
|
}
|
|
37966
|
-
return /* @__PURE__ */
|
|
38044
|
+
return /* @__PURE__ */ React221.createElement(
|
|
37967
38045
|
Box,
|
|
37968
38046
|
{
|
|
37969
38047
|
display: "flex",
|
|
@@ -37972,7 +38050,7 @@ function SourceList({
|
|
|
37972
38050
|
...{ [WITH_EMPTY_STATE_DATA_ATTRIBUTE]: true }
|
|
37973
38051
|
},
|
|
37974
38052
|
preferred.map(renderSource),
|
|
37975
|
-
preferred.length > 0 && hasMoreSources && /* @__PURE__ */
|
|
38053
|
+
preferred.length > 0 && hasMoreSources && /* @__PURE__ */ React221.createElement(
|
|
37976
38054
|
FunDivider,
|
|
37977
38055
|
{
|
|
37978
38056
|
label: t("sourceChange.more"),
|
|
@@ -37983,7 +38061,7 @@ function SourceList({
|
|
|
37983
38061
|
),
|
|
37984
38062
|
moreSources.map(renderSource),
|
|
37985
38063
|
unavailable.map(renderUnavailable),
|
|
37986
|
-
/* @__PURE__ */
|
|
38064
|
+
/* @__PURE__ */ React221.createElement(PayPal, null)
|
|
37987
38065
|
);
|
|
37988
38066
|
}
|
|
37989
38067
|
|
|
@@ -38129,11 +38207,12 @@ function SourceChange({
|
|
|
38129
38207
|
paymentMethodInfo,
|
|
38130
38208
|
targetChainId
|
|
38131
38209
|
);
|
|
38210
|
+
const isUnderComplianceReview = useIsUserUnderComplianceReview();
|
|
38132
38211
|
const enableSourceGroupLabels = useDynamicConfig("enablesourcegrouplabels");
|
|
38133
38212
|
const showTagline = useDynamicConfig("showpoweredtagline");
|
|
38134
38213
|
const hasBottomBar = showTagline || !isAutoContinue || bottomBarCloseButtonConfig.enabled;
|
|
38135
38214
|
useSwappedPreload(fopsData?.data);
|
|
38136
|
-
|
|
38215
|
+
useEffect56(() => {
|
|
38137
38216
|
if (!paymentMethodInfo) {
|
|
38138
38217
|
return;
|
|
38139
38218
|
}
|
|
@@ -38200,7 +38279,7 @@ function SourceChange({
|
|
|
38200
38279
|
)
|
|
38201
38280
|
);
|
|
38202
38281
|
});
|
|
38203
|
-
|
|
38282
|
+
useEffect56(() => {
|
|
38204
38283
|
sendPaymentMethodTabEvent(paymentMethodTab);
|
|
38205
38284
|
}, [paymentMethodTab, sendPaymentMethodTabEvent]);
|
|
38206
38285
|
const handleNewSourceContinue = async (newSource2, isConfirmed = false) => {
|
|
@@ -38263,6 +38342,22 @@ function SourceChange({
|
|
|
38263
38342
|
});
|
|
38264
38343
|
}
|
|
38265
38344
|
};
|
|
38345
|
+
const handleBottomBarContinueClick = () => {
|
|
38346
|
+
if (isUnderComplianceReview) {
|
|
38347
|
+
return;
|
|
38348
|
+
}
|
|
38349
|
+
if (selectedFop) {
|
|
38350
|
+
onNext({
|
|
38351
|
+
swappedIframe: true,
|
|
38352
|
+
selectedPaymentOption: selectedFop,
|
|
38353
|
+
paymentMethodTypeFilter: paymentMethodTab
|
|
38354
|
+
});
|
|
38355
|
+
} else if (connectedSource === null && !!newSource) {
|
|
38356
|
+
handleNewSourceContinue(newSource, true);
|
|
38357
|
+
} else if (connectedSource) {
|
|
38358
|
+
handleConnectedSourceContinue(connectedSource, true);
|
|
38359
|
+
}
|
|
38360
|
+
};
|
|
38266
38361
|
const handleTargetAssetChange = (token) => {
|
|
38267
38362
|
setSelectedTargetAsset(token);
|
|
38268
38363
|
updateTargetAsset({
|
|
@@ -38276,7 +38371,7 @@ function SourceChange({
|
|
|
38276
38371
|
};
|
|
38277
38372
|
function renderSource(source) {
|
|
38278
38373
|
if (isConnectablePaymentMethodInfo(source)) {
|
|
38279
|
-
return /* @__PURE__ */
|
|
38374
|
+
return /* @__PURE__ */ React222.createElement(
|
|
38280
38375
|
ConnectedSource,
|
|
38281
38376
|
{
|
|
38282
38377
|
key: source.title,
|
|
@@ -38284,22 +38379,24 @@ function SourceChange({
|
|
|
38284
38379
|
targetChainId,
|
|
38285
38380
|
selectedPaymentInfo: connectedSource,
|
|
38286
38381
|
showSelectedCheckmark: !isOstiumCustomer(apiKey),
|
|
38287
|
-
onSelect: () => handleConnectedSourceContinue(source)
|
|
38382
|
+
onSelect: isUnderComplianceReview ? noop8 : () => handleConnectedSourceContinue(source),
|
|
38383
|
+
isDisabled: isUnderComplianceReview
|
|
38288
38384
|
}
|
|
38289
38385
|
);
|
|
38290
38386
|
}
|
|
38291
|
-
return /* @__PURE__ */
|
|
38387
|
+
return /* @__PURE__ */ React222.createElement(
|
|
38292
38388
|
AddPaymentMethodItem,
|
|
38293
38389
|
{
|
|
38294
38390
|
key: source,
|
|
38295
38391
|
paymentMethod: source,
|
|
38296
|
-
isActive: newSource === source,
|
|
38297
|
-
|
|
38392
|
+
isActive: !isUnderComplianceReview && newSource === source,
|
|
38393
|
+
isClickable: !isUnderComplianceReview,
|
|
38394
|
+
onClick: isUnderComplianceReview ? noop8 : () => handleNewSourceContinue(source)
|
|
38298
38395
|
}
|
|
38299
38396
|
);
|
|
38300
38397
|
}
|
|
38301
38398
|
function renderUnavailable({ method, reason }) {
|
|
38302
|
-
return /* @__PURE__ */
|
|
38399
|
+
return /* @__PURE__ */ React222.createElement(
|
|
38303
38400
|
AddPaymentMethodItem,
|
|
38304
38401
|
{
|
|
38305
38402
|
key: method,
|
|
@@ -38307,13 +38404,13 @@ function SourceChange({
|
|
|
38307
38404
|
isActive: false,
|
|
38308
38405
|
isClickable: false,
|
|
38309
38406
|
onClick: noop8,
|
|
38310
|
-
customValueIcon: /* @__PURE__ */
|
|
38407
|
+
customValueIcon: /* @__PURE__ */ React222.createElement(PaymentMethodDisabledBadge, { reason })
|
|
38311
38408
|
}
|
|
38312
38409
|
);
|
|
38313
38410
|
}
|
|
38314
38411
|
function renderPaymentMethodContent(tab) {
|
|
38315
38412
|
if (isSwappedEnabled && tab === "fiat") {
|
|
38316
|
-
return /* @__PURE__ */
|
|
38413
|
+
return /* @__PURE__ */ React222.createElement(
|
|
38317
38414
|
FormOfPaymentsList,
|
|
38318
38415
|
{
|
|
38319
38416
|
fopsData: fopsData.data,
|
|
@@ -38321,11 +38418,12 @@ function SourceChange({
|
|
|
38321
38418
|
selectedFop,
|
|
38322
38419
|
onFopSelect: handleFopSelect,
|
|
38323
38420
|
exchangeRatesData: exchangeRates.data,
|
|
38324
|
-
enableSourceGroupLabels
|
|
38421
|
+
enableSourceGroupLabels,
|
|
38422
|
+
isDisabled: isUnderComplianceReview
|
|
38325
38423
|
}
|
|
38326
38424
|
);
|
|
38327
38425
|
}
|
|
38328
|
-
return /* @__PURE__ */
|
|
38426
|
+
return /* @__PURE__ */ React222.createElement(
|
|
38329
38427
|
SourceList,
|
|
38330
38428
|
{
|
|
38331
38429
|
isFallback,
|
|
@@ -38337,16 +38435,16 @@ function SourceChange({
|
|
|
38337
38435
|
}
|
|
38338
38436
|
);
|
|
38339
38437
|
}
|
|
38340
|
-
return /* @__PURE__ */
|
|
38438
|
+
return /* @__PURE__ */ React222.createElement(Box, { id: "source-change-page", style: { display: "contents" } }, /* @__PURE__ */ React222.createElement(
|
|
38341
38439
|
Box,
|
|
38342
38440
|
{
|
|
38343
38441
|
className: paymentMethodStaticArea,
|
|
38344
38442
|
display: "flex",
|
|
38345
38443
|
flexDirection: "column"
|
|
38346
38444
|
},
|
|
38347
|
-
/* @__PURE__ */
|
|
38445
|
+
/* @__PURE__ */ React222.createElement(CheckoutTopAnnouncementBanner, null),
|
|
38348
38446
|
customTopComponent?.(),
|
|
38349
|
-
isTargetAssetSelectable && /* @__PURE__ */
|
|
38447
|
+
isTargetAssetSelectable && /* @__PURE__ */ React222.createElement(Box, { marginBottom: "8" }, /* @__PURE__ */ React222.createElement(
|
|
38350
38448
|
ReceiveTokenDropdown,
|
|
38351
38449
|
{
|
|
38352
38450
|
activeItemLabel: t("sourceChange.selectDestinationTokenLabel"),
|
|
@@ -38359,7 +38457,7 @@ function SourceChange({
|
|
|
38359
38457
|
tokens: dynamicTargetAssets
|
|
38360
38458
|
}
|
|
38361
38459
|
))
|
|
38362
|
-
), isTargetAssetSelectable && isSwappedEnabled && /* @__PURE__ */
|
|
38460
|
+
), isTargetAssetSelectable && isSwappedEnabled && /* @__PURE__ */ React222.createElement(
|
|
38363
38461
|
FunDivider,
|
|
38364
38462
|
{
|
|
38365
38463
|
marginTop: "16",
|
|
@@ -38367,29 +38465,30 @@ function SourceChange({
|
|
|
38367
38465
|
borderColor: "lightStroke",
|
|
38368
38466
|
className: fullWidthContentDivider
|
|
38369
38467
|
}
|
|
38370
|
-
),
|
|
38468
|
+
), /* @__PURE__ */ React222.createElement(
|
|
38371
38469
|
Box,
|
|
38372
38470
|
{
|
|
38373
38471
|
className: paymentMethodStaticArea,
|
|
38374
38472
|
display: "flex",
|
|
38375
38473
|
flexDirection: "column"
|
|
38376
38474
|
},
|
|
38377
|
-
/* @__PURE__ */
|
|
38475
|
+
isSwappedEnabled && /* @__PURE__ */ React222.createElement(
|
|
38378
38476
|
CryptoCashToggle,
|
|
38379
38477
|
{
|
|
38380
38478
|
marginTop: customTopComponent ? "24" : "0",
|
|
38381
38479
|
activeTab: paymentMethodTab,
|
|
38382
38480
|
onTabChange: handlePaymentMethodTabChange
|
|
38383
38481
|
}
|
|
38384
|
-
)
|
|
38385
|
-
|
|
38482
|
+
),
|
|
38483
|
+
isUnderComplianceReview && /* @__PURE__ */ React222.createElement(ComplianceReviewBanner, { checkoutId: modalState.checkoutId })
|
|
38484
|
+
), isSwappedEnabled && paymentMethodTab === "fiat" && /* @__PURE__ */ React222.createElement(
|
|
38386
38485
|
FunDivider,
|
|
38387
38486
|
{
|
|
38388
38487
|
borderColor: "lightStroke",
|
|
38389
38488
|
className: fullWidthContentDivider,
|
|
38390
38489
|
visible: paymentListScroll.hasTopDivider
|
|
38391
38490
|
}
|
|
38392
|
-
), /* @__PURE__ */
|
|
38491
|
+
), /* @__PURE__ */ React222.createElement(
|
|
38393
38492
|
PaddedScrollableArea,
|
|
38394
38493
|
{
|
|
38395
38494
|
ref: paymentListScroll.ref,
|
|
@@ -38397,7 +38496,7 @@ function SourceChange({
|
|
|
38397
38496
|
isScrolling: paymentListScroll.isScrolling,
|
|
38398
38497
|
paddingBottom: hasBottomBar ? void 0 : "modalPaddingBottomLower"
|
|
38399
38498
|
},
|
|
38400
|
-
leavingTab !== null && /* @__PURE__ */
|
|
38499
|
+
leavingTab !== null && /* @__PURE__ */ React222.createElement(
|
|
38401
38500
|
Box,
|
|
38402
38501
|
{
|
|
38403
38502
|
key: leavingTab,
|
|
@@ -38411,15 +38510,15 @@ function SourceChange({
|
|
|
38411
38510
|
},
|
|
38412
38511
|
renderPaymentMethodContent(leavingTab)
|
|
38413
38512
|
),
|
|
38414
|
-
/* @__PURE__ */
|
|
38415
|
-
), /* @__PURE__ */
|
|
38513
|
+
/* @__PURE__ */ React222.createElement(Box, { className: leavingTab !== null ? enteringClass : void 0 }, renderPaymentMethodContent(paymentMethodTab))
|
|
38514
|
+
), /* @__PURE__ */ React222.createElement(Box, { className: emptyStateStyles }, /* @__PURE__ */ React222.createElement(
|
|
38416
38515
|
FunNoResults,
|
|
38417
38516
|
{
|
|
38418
38517
|
text: t("checkout.noAvailableTokensMessage"),
|
|
38419
38518
|
title: t("checkout.noAvailableTokens"),
|
|
38420
38519
|
variant: "actionable"
|
|
38421
38520
|
}
|
|
38422
|
-
)), isSwappedEnabled && paymentMethodTab === "fiat" && hasBottomBar && /* @__PURE__ */
|
|
38521
|
+
)), isSwappedEnabled && paymentMethodTab === "fiat" && hasBottomBar && /* @__PURE__ */ React222.createElement(
|
|
38423
38522
|
FunDivider,
|
|
38424
38523
|
{
|
|
38425
38524
|
borderColor: "lightStroke",
|
|
@@ -38427,25 +38526,13 @@ function SourceChange({
|
|
|
38427
38526
|
visible: paymentListScroll.isScrollable && !paymentListScroll.isAtBottom
|
|
38428
38527
|
}
|
|
38429
38528
|
), bottomSectionRef && createPortal18(
|
|
38430
|
-
/* @__PURE__ */
|
|
38529
|
+
/* @__PURE__ */ React222.createElement(
|
|
38431
38530
|
Dialog.BottomBar,
|
|
38432
38531
|
{
|
|
38433
38532
|
actionButtonProps: isAutoContinue ? void 0 : {
|
|
38434
38533
|
title: t("common.continue"),
|
|
38435
|
-
onClick:
|
|
38436
|
-
|
|
38437
|
-
onNext({
|
|
38438
|
-
swappedIframe: true,
|
|
38439
|
-
selectedPaymentOption: selectedFop,
|
|
38440
|
-
paymentMethodTypeFilter: paymentMethodTab
|
|
38441
|
-
});
|
|
38442
|
-
} else if (connectedSource === null && !!newSource) {
|
|
38443
|
-
handleNewSourceContinue(newSource, true);
|
|
38444
|
-
} else if (connectedSource) {
|
|
38445
|
-
handleConnectedSourceContinue(connectedSource, true);
|
|
38446
|
-
}
|
|
38447
|
-
},
|
|
38448
|
-
isDisabled: !newSource && !connectedSource && !selectedFop
|
|
38534
|
+
onClick: handleBottomBarContinueClick,
|
|
38535
|
+
isDisabled: isUnderComplianceReview || !newSource && !connectedSource && !selectedFop
|
|
38449
38536
|
},
|
|
38450
38537
|
onCloseLabel: t(bottomBarCloseButtonConfig.labelKey),
|
|
38451
38538
|
onClose: bottomBarCloseButtonConfig.enabled ? onClose : void 0
|
|
@@ -38468,18 +38555,18 @@ function trackEventForTabChange(checkoutItem, tab) {
|
|
|
38468
38555
|
|
|
38469
38556
|
// src/modals/CheckoutModal/SwappedIframe/SwappedIframeController.tsx
|
|
38470
38557
|
import { useQueryClient as useQueryClient3 } from "@tanstack/react-query";
|
|
38471
|
-
import
|
|
38558
|
+
import React224, { useEffect as useEffect58 } from "react";
|
|
38472
38559
|
import { createPortal as createPortal19 } from "react-dom";
|
|
38473
38560
|
|
|
38474
38561
|
// src/components/SwappedIframeSkeleton.tsx
|
|
38475
|
-
import
|
|
38562
|
+
import React223 from "react";
|
|
38476
38563
|
function SwappedIframeSkeleton({
|
|
38477
38564
|
id,
|
|
38478
38565
|
onBack
|
|
38479
38566
|
}) {
|
|
38480
38567
|
const { t } = useFunkitTranslation();
|
|
38481
38568
|
const { swappedTheme } = useSwappedContext();
|
|
38482
|
-
return /* @__PURE__ */
|
|
38569
|
+
return /* @__PURE__ */ React223.createElement(
|
|
38483
38570
|
Box,
|
|
38484
38571
|
{
|
|
38485
38572
|
display: "flex",
|
|
@@ -38489,7 +38576,7 @@ function SwappedIframeSkeleton({
|
|
|
38489
38576
|
width: "full",
|
|
38490
38577
|
id
|
|
38491
38578
|
},
|
|
38492
|
-
/* @__PURE__ */
|
|
38579
|
+
/* @__PURE__ */ React223.createElement(
|
|
38493
38580
|
Box,
|
|
38494
38581
|
{
|
|
38495
38582
|
marginTop: "14",
|
|
@@ -38499,11 +38586,11 @@ function SwappedIframeSkeleton({
|
|
|
38499
38586
|
width: "full",
|
|
38500
38587
|
justifyContent: "space-between"
|
|
38501
38588
|
},
|
|
38502
|
-
/* @__PURE__ */
|
|
38589
|
+
/* @__PURE__ */ React223.createElement(
|
|
38503
38590
|
FunIconButton,
|
|
38504
38591
|
{
|
|
38505
38592
|
onClick: onBack,
|
|
38506
|
-
icon: /* @__PURE__ */
|
|
38593
|
+
icon: /* @__PURE__ */ React223.createElement(ArrowIcon, { direction: "left", size: 18 }),
|
|
38507
38594
|
ariaLabel: t("common.back"),
|
|
38508
38595
|
size: "18",
|
|
38509
38596
|
testId: "back-button",
|
|
@@ -38516,7 +38603,7 @@ function SwappedIframeSkeleton({
|
|
|
38516
38603
|
iconVisualWeightCenter: "left"
|
|
38517
38604
|
}
|
|
38518
38605
|
),
|
|
38519
|
-
/* @__PURE__ */
|
|
38606
|
+
/* @__PURE__ */ React223.createElement(Box, null, /* @__PURE__ */ React223.createElement(
|
|
38520
38607
|
FunSkeletonBlock,
|
|
38521
38608
|
{
|
|
38522
38609
|
height: "32px",
|
|
@@ -38524,9 +38611,9 @@ function SwappedIframeSkeleton({
|
|
|
38524
38611
|
style: { width: 128, borderRadius: "12px" }
|
|
38525
38612
|
}
|
|
38526
38613
|
)),
|
|
38527
|
-
/* @__PURE__ */
|
|
38614
|
+
/* @__PURE__ */ React223.createElement(Box, { style: { width: 22 }, height: "18" })
|
|
38528
38615
|
),
|
|
38529
|
-
/* @__PURE__ */
|
|
38616
|
+
/* @__PURE__ */ React223.createElement(
|
|
38530
38617
|
Box,
|
|
38531
38618
|
{
|
|
38532
38619
|
paddingBottom: "24",
|
|
@@ -38535,7 +38622,7 @@ function SwappedIframeSkeleton({
|
|
|
38535
38622
|
alignItems: "center",
|
|
38536
38623
|
width: "full"
|
|
38537
38624
|
},
|
|
38538
|
-
/* @__PURE__ */
|
|
38625
|
+
/* @__PURE__ */ React223.createElement(
|
|
38539
38626
|
FunSkeletonBlock,
|
|
38540
38627
|
{
|
|
38541
38628
|
height: "37px",
|
|
@@ -38543,7 +38630,7 @@ function SwappedIframeSkeleton({
|
|
|
38543
38630
|
style: { width: 114, marginTop: "58px" }
|
|
38544
38631
|
}
|
|
38545
38632
|
),
|
|
38546
|
-
/* @__PURE__ */
|
|
38633
|
+
/* @__PURE__ */ React223.createElement(
|
|
38547
38634
|
FunSkeletonBlock,
|
|
38548
38635
|
{
|
|
38549
38636
|
height: "18px",
|
|
@@ -38552,7 +38639,7 @@ function SwappedIframeSkeleton({
|
|
|
38552
38639
|
style: { width: 96 }
|
|
38553
38640
|
}
|
|
38554
38641
|
),
|
|
38555
|
-
/* @__PURE__ */
|
|
38642
|
+
/* @__PURE__ */ React223.createElement(Box, { display: "flex", gap: "12", marginTop: "12", width: "full" }, Array.from({ length: 4 }).map((_, i) => /* @__PURE__ */ React223.createElement(
|
|
38556
38643
|
FunSkeletonBlock,
|
|
38557
38644
|
{
|
|
38558
38645
|
key: `skeleton-pill-${i}`,
|
|
@@ -38563,7 +38650,7 @@ function SwappedIframeSkeleton({
|
|
|
38563
38650
|
}
|
|
38564
38651
|
}
|
|
38565
38652
|
))),
|
|
38566
|
-
/* @__PURE__ */
|
|
38653
|
+
/* @__PURE__ */ React223.createElement(
|
|
38567
38654
|
FunSkeletonBlock,
|
|
38568
38655
|
{
|
|
38569
38656
|
height: "150px",
|
|
@@ -38577,7 +38664,7 @@ function SwappedIframeSkeleton({
|
|
|
38577
38664
|
}
|
|
38578
38665
|
|
|
38579
38666
|
// src/hooks/useSwappedIframeLifecycle.ts
|
|
38580
|
-
import { useEffect as
|
|
38667
|
+
import { useEffect as useEffect57, useRef as useRef29 } from "react";
|
|
38581
38668
|
var SWAPPED_IFRAME_TIMEOUT = 15e3;
|
|
38582
38669
|
function useSwappedIframeLifecycle({
|
|
38583
38670
|
fopType,
|
|
@@ -38586,11 +38673,11 @@ function useSwappedIframeLifecycle({
|
|
|
38586
38673
|
const { activateIframe, deactivateIframe, isSwappedReady } = useSwappedContext();
|
|
38587
38674
|
const timeoutRef = useRef29(void 0);
|
|
38588
38675
|
const stableOnTimeout = useEffectEvent(onTimeout);
|
|
38589
|
-
|
|
38676
|
+
useEffect57(() => {
|
|
38590
38677
|
activateIframe(fopType);
|
|
38591
38678
|
return () => deactivateIframe();
|
|
38592
38679
|
}, [fopType, activateIframe, deactivateIframe]);
|
|
38593
|
-
|
|
38680
|
+
useEffect57(() => {
|
|
38594
38681
|
if (isSwappedReady) {
|
|
38595
38682
|
clearTimeout(timeoutRef.current);
|
|
38596
38683
|
return;
|
|
@@ -38647,13 +38734,13 @@ function SwappedIframeController({
|
|
|
38647
38734
|
selectedPaymentOption,
|
|
38648
38735
|
checkoutItem ?? { id: modalState.checkoutId },
|
|
38649
38736
|
event,
|
|
38650
|
-
extras
|
|
38737
|
+
{ ...extras, isSwappedReady }
|
|
38651
38738
|
)
|
|
38652
38739
|
);
|
|
38653
|
-
|
|
38740
|
+
useEffect58(() => {
|
|
38654
38741
|
startMeasuredEvent("fc::ready::swapped_iframe" /* READY_SWAPPED_IFRAME */);
|
|
38655
38742
|
}, [startMeasuredEvent]);
|
|
38656
|
-
|
|
38743
|
+
useEffect58(() => {
|
|
38657
38744
|
if (isSwappedReady) {
|
|
38658
38745
|
const event = getTrackEvent("fc::ready::swapped_iframe" /* READY_SWAPPED_IFRAME */);
|
|
38659
38746
|
logger.info("swapped-iframe:ready", event.metadata);
|
|
@@ -38699,7 +38786,9 @@ function SwappedIframeController({
|
|
|
38699
38786
|
);
|
|
38700
38787
|
logger.error("swapped-iframe:error", trackEvent.metadata);
|
|
38701
38788
|
logEvent(trackEvent);
|
|
38702
|
-
|
|
38789
|
+
if (!isSwappedReady) {
|
|
38790
|
+
setModalState((s) => ({ ...s, error: true }));
|
|
38791
|
+
}
|
|
38703
38792
|
break;
|
|
38704
38793
|
}
|
|
38705
38794
|
case "SWAPPED_NAVIGATION":
|
|
@@ -38811,7 +38900,7 @@ function SwappedIframeController({
|
|
|
38811
38900
|
}
|
|
38812
38901
|
}
|
|
38813
38902
|
}
|
|
38814
|
-
|
|
38903
|
+
useEffect58(() => {
|
|
38815
38904
|
window.addEventListener("message", handleSwappedMessage);
|
|
38816
38905
|
return () => window.removeEventListener("message", handleSwappedMessage);
|
|
38817
38906
|
}, [handleSwappedMessage]);
|
|
@@ -38820,8 +38909,8 @@ function SwappedIframeController({
|
|
|
38820
38909
|
onTimeout: () => setModalState((s) => ({ ...s, error: true }))
|
|
38821
38910
|
});
|
|
38822
38911
|
if (modalState.error) {
|
|
38823
|
-
return /* @__PURE__ */
|
|
38824
|
-
/* @__PURE__ */
|
|
38912
|
+
return /* @__PURE__ */ React224.createElement(React224.Fragment, null, /* @__PURE__ */ React224.createElement(SwappedErrorMessage, { minHeight: 268 }), bottomSectionRef && createPortal19(
|
|
38913
|
+
/* @__PURE__ */ React224.createElement(
|
|
38825
38914
|
Dialog.BottomBar,
|
|
38826
38915
|
{
|
|
38827
38916
|
actionButtonProps: {
|
|
@@ -38838,9 +38927,9 @@ function SwappedIframeController({
|
|
|
38838
38927
|
));
|
|
38839
38928
|
}
|
|
38840
38929
|
if (!isSwappedReady) {
|
|
38841
|
-
return /* @__PURE__ */
|
|
38930
|
+
return /* @__PURE__ */ React224.createElement(SwappedIframeSkeleton, { id: "swapped-iframe-loading", onBack });
|
|
38842
38931
|
}
|
|
38843
|
-
return /* @__PURE__ */
|
|
38932
|
+
return /* @__PURE__ */ React224.createElement(Box, { id: "swapped-iframe" });
|
|
38844
38933
|
}
|
|
38845
38934
|
function trackEventForFormOfPayment(fop, checkoutItem, eventName, extras) {
|
|
38846
38935
|
return {
|
|
@@ -38861,15 +38950,15 @@ function trackEventForFormOfPayment(fop, checkoutItem, eventName, extras) {
|
|
|
38861
38950
|
|
|
38862
38951
|
// src/modals/CheckoutModal/TransferToken/TransferToken.tsx
|
|
38863
38952
|
import { motion as motion13, useAnimationControls as useAnimationControls3 } from "motion/react";
|
|
38864
|
-
import
|
|
38953
|
+
import React234, { useRef as useRef31, useState as useState67 } from "react";
|
|
38865
38954
|
import { createPortal as createPortal20 } from "react-dom";
|
|
38866
38955
|
|
|
38867
38956
|
// src/components/CopyAddress/CopyInputDisplayedAddress.tsx
|
|
38868
38957
|
import { truncateMiddleOfAddress } from "@funkit/utils";
|
|
38869
|
-
import
|
|
38958
|
+
import React225, { useCallback as useCallback44, useState as useState65 } from "react";
|
|
38870
38959
|
|
|
38871
38960
|
// src/hooks/useCopyToClipboard.ts
|
|
38872
|
-
import { useCallback as useCallback43, useEffect as
|
|
38961
|
+
import { useCallback as useCallback43, useEffect as useEffect59, useState as useState64 } from "react";
|
|
38873
38962
|
var useCopyToClipboard = (text, delay = 1500) => {
|
|
38874
38963
|
const [isCopied, setCopied] = useState64(false);
|
|
38875
38964
|
const handleCopy = useCallback43(() => {
|
|
@@ -38879,7 +38968,7 @@ var useCopyToClipboard = (text, delay = 1500) => {
|
|
|
38879
38968
|
navigator.clipboard.writeText(text);
|
|
38880
38969
|
setCopied(true);
|
|
38881
38970
|
}, [text]);
|
|
38882
|
-
|
|
38971
|
+
useEffect59(() => {
|
|
38883
38972
|
if (!isCopied) {
|
|
38884
38973
|
return;
|
|
38885
38974
|
}
|
|
@@ -38924,8 +39013,8 @@ function CopyInputDisplayedAddressEN({
|
|
|
38924
39013
|
}, 2e3);
|
|
38925
39014
|
handleCopy();
|
|
38926
39015
|
}, [isActive, handleCopy, onAddressCopied]);
|
|
38927
|
-
return /* @__PURE__ */
|
|
38928
|
-
(char, i) => /* @__PURE__ */
|
|
39016
|
+
return /* @__PURE__ */ React225.createElement(Box, { className: copyButtonWrapper }, /* @__PURE__ */ React225.createElement(Box, { paddingY: "8", paddingX: "12", width: "full" }, /* @__PURE__ */ React225.createElement(Text, { size: "depositAddressFontSize" }, displayAddress)), /* @__PURE__ */ React225.createElement(FunDivider, { borderColor: "mediumStroke" }), /* @__PURE__ */ React225.createElement(Box, { as: "button", onClick: handleClick, className: copyButton }, /* @__PURE__ */ React225.createElement("div", { className: isActive ? copyInputTextBoxActive : copyInputTextBox }, /* @__PURE__ */ React225.createElement("div", { className: isActive ? copyButtonIconActive : copyButtonIcon }, /* @__PURE__ */ React225.createElement(CheckIcon, { className: copyButtonIconBase })), /* @__PURE__ */ React225.createElement(Text, { size: "inputLabel", weight: "inputLabel" }, /* @__PURE__ */ React225.createElement("div", { className: copyInputText }, /* @__PURE__ */ React225.createElement("span", null, "Cop"), /* @__PURE__ */ React225.createElement("span", { className: copyInputTextWrapper }, ["y", " ", "a", "d", "d", "r", "e", "s", "s"].map(
|
|
39017
|
+
(char, i) => /* @__PURE__ */ React225.createElement(
|
|
38929
39018
|
"span",
|
|
38930
39019
|
{
|
|
38931
39020
|
className: copyInputTextDefault,
|
|
@@ -38936,9 +39025,9 @@ function CopyInputDisplayedAddressEN({
|
|
|
38936
39025
|
"--animation-opacity": isActive === false ? "0" : "1"
|
|
38937
39026
|
}
|
|
38938
39027
|
},
|
|
38939
|
-
char === " " ? /* @__PURE__ */
|
|
39028
|
+
char === " " ? /* @__PURE__ */ React225.createElement(React225.Fragment, null, "\xA0") : char
|
|
38940
39029
|
)
|
|
38941
|
-
), ["ied"].map((char, i) => /* @__PURE__ */
|
|
39030
|
+
), ["ied"].map((char, i) => /* @__PURE__ */ React225.createElement(
|
|
38942
39031
|
"span",
|
|
38943
39032
|
{
|
|
38944
39033
|
className: copyInputTextActive,
|
|
@@ -38971,17 +39060,17 @@ function CopyInputDisplayedAddressI18n({
|
|
|
38971
39060
|
handleCopy();
|
|
38972
39061
|
}, [isActive, handleCopy]);
|
|
38973
39062
|
const buttonText = isActive ? t("common.copied") : t("common.copyAddress");
|
|
38974
|
-
return /* @__PURE__ */
|
|
39063
|
+
return /* @__PURE__ */ React225.createElement(Box, { className: copyButtonWrapper }, /* @__PURE__ */ React225.createElement(Box, { paddingY: "8", paddingX: "12", width: "full" }, /* @__PURE__ */ React225.createElement(Text, { size: "depositAddressFontSize" }, displayAddress)), /* @__PURE__ */ React225.createElement(FunDivider, { borderColor: "mediumStroke" }), /* @__PURE__ */ React225.createElement(Box, { as: "button", onClick: handleClick, className: copyButton }, /* @__PURE__ */ React225.createElement("div", { className: copyInputTextBox }, /* @__PURE__ */ React225.createElement("div", { className: copyButtonIcon }, /* @__PURE__ */ React225.createElement(CheckIcon, { className: copyButtonIconBase })), /* @__PURE__ */ React225.createElement(Text, { size: "inputLabel", weight: "inputLabel" }, /* @__PURE__ */ React225.createElement("div", { className: copyInputText }, buttonText)))));
|
|
38975
39064
|
}
|
|
38976
39065
|
function CopyInputDisplayedAddress(props) {
|
|
38977
39066
|
const { i18n: i18n2 } = useFunkitTranslation();
|
|
38978
39067
|
const isEnglish = i18n2.language === "en" || i18n2.language === "buy_en";
|
|
38979
|
-
return isEnglish ? /* @__PURE__ */
|
|
39068
|
+
return isEnglish ? /* @__PURE__ */ React225.createElement(CopyInputDisplayedAddressEN, { ...props }) : /* @__PURE__ */ React225.createElement(CopyInputDisplayedAddressI18n, { ...props });
|
|
38980
39069
|
}
|
|
38981
39070
|
|
|
38982
39071
|
// src/components/QRCode/QRCode.tsx
|
|
38983
39072
|
import QRCodeUtil from "qrcode";
|
|
38984
|
-
import
|
|
39073
|
+
import React226, { useMemo as useMemo55 } from "react";
|
|
38985
39074
|
var generateMatrix = (value, errorCorrectionLevel) => {
|
|
38986
39075
|
const { data } = QRCodeUtil.create(value, { errorCorrectionLevel }).modules;
|
|
38987
39076
|
const sqrt = Math.sqrt(data.length);
|
|
@@ -39025,7 +39114,7 @@ function QRCode({
|
|
|
39025
39114
|
const borderRadius = enableCornerMarkersRadius ? (i - 2) * -5 + (i === 0 ? 2 : 0) : 0;
|
|
39026
39115
|
const size2 = cellSize * (7 - i * 2);
|
|
39027
39116
|
dots2.push(
|
|
39028
|
-
/* @__PURE__ */
|
|
39117
|
+
/* @__PURE__ */ React226.createElement(
|
|
39029
39118
|
"rect",
|
|
39030
39119
|
{
|
|
39031
39120
|
fill: i % 2 !== 0 ? activeTheme.colors.modalBackground : "currentColor",
|
|
@@ -39050,7 +39139,7 @@ function QRCode({
|
|
|
39050
39139
|
if (!(i < 7 && j < 7 || i > matrix.length - 8 && j < 7 || i < 7 && j > matrix.length - 8)) {
|
|
39051
39140
|
if (!(i > matrixMiddleStart && i < matrixMiddleEnd && j > matrixMiddleStart && j < matrixMiddleEnd)) {
|
|
39052
39141
|
dots2.push(
|
|
39053
|
-
/* @__PURE__ */
|
|
39142
|
+
/* @__PURE__ */ React226.createElement(
|
|
39054
39143
|
"circle",
|
|
39055
39144
|
{
|
|
39056
39145
|
cx: i * cellSize + cellSize / 2,
|
|
@@ -39077,7 +39166,7 @@ function QRCode({
|
|
|
39077
39166
|
]);
|
|
39078
39167
|
const logoPosition = size / 2 - logoSize / 2;
|
|
39079
39168
|
const logoWrapperSize = logoSize + logoMargin * 2;
|
|
39080
|
-
return /* @__PURE__ */
|
|
39169
|
+
return /* @__PURE__ */ React226.createElement(
|
|
39081
39170
|
Box,
|
|
39082
39171
|
{
|
|
39083
39172
|
...enableOuterBorder && {
|
|
@@ -39092,7 +39181,7 @@ function QRCode({
|
|
|
39092
39181
|
background: "modalBackground",
|
|
39093
39182
|
color: "primaryText"
|
|
39094
39183
|
},
|
|
39095
|
-
/* @__PURE__ */
|
|
39184
|
+
/* @__PURE__ */ React226.createElement(
|
|
39096
39185
|
Box,
|
|
39097
39186
|
{
|
|
39098
39187
|
style: {
|
|
@@ -39102,7 +39191,7 @@ function QRCode({
|
|
|
39102
39191
|
},
|
|
39103
39192
|
userSelect: "none"
|
|
39104
39193
|
},
|
|
39105
|
-
/* @__PURE__ */
|
|
39194
|
+
/* @__PURE__ */ React226.createElement(
|
|
39106
39195
|
Box,
|
|
39107
39196
|
{
|
|
39108
39197
|
display: "flex",
|
|
@@ -39115,7 +39204,7 @@ function QRCode({
|
|
|
39115
39204
|
},
|
|
39116
39205
|
width: "full"
|
|
39117
39206
|
},
|
|
39118
|
-
/* @__PURE__ */
|
|
39207
|
+
/* @__PURE__ */ React226.createElement(
|
|
39119
39208
|
AsyncImage,
|
|
39120
39209
|
{
|
|
39121
39210
|
background: logoBackground,
|
|
@@ -39127,20 +39216,20 @@ function QRCode({
|
|
|
39127
39216
|
}
|
|
39128
39217
|
)
|
|
39129
39218
|
),
|
|
39130
|
-
/* @__PURE__ */
|
|
39219
|
+
/* @__PURE__ */ React226.createElement("svg", { height: size, style: { all: "revert" }, width: size }, /* @__PURE__ */ React226.createElement("title", null, "QR Code"), /* @__PURE__ */ React226.createElement("defs", null, /* @__PURE__ */ React226.createElement("clipPath", { id: "clip-wrapper" }, /* @__PURE__ */ React226.createElement("rect", { height: logoWrapperSize, width: logoWrapperSize })), /* @__PURE__ */ React226.createElement("clipPath", { id: "clip-logo" }, /* @__PURE__ */ React226.createElement("rect", { height: logoSize, width: logoSize }))), /* @__PURE__ */ React226.createElement("rect", { fill: "transparent", height: size, width: size }), dots)
|
|
39131
39220
|
)
|
|
39132
39221
|
);
|
|
39133
39222
|
}
|
|
39134
39223
|
|
|
39135
39224
|
// src/components/QRCode/QRCodeSkeletonLoader.tsx
|
|
39136
|
-
import
|
|
39225
|
+
import React227 from "react";
|
|
39137
39226
|
var DOT_SIZE = "8";
|
|
39138
39227
|
var QRCodeSkeletonLoader = ({
|
|
39139
39228
|
diagonalDimension = 12,
|
|
39140
39229
|
gapBetweenDots = "4"
|
|
39141
39230
|
}) => {
|
|
39142
39231
|
const size = diagonalDimension * Number(DOT_SIZE) + (diagonalDimension - 1) * Number(gapBetweenDots);
|
|
39143
|
-
return /* @__PURE__ */
|
|
39232
|
+
return /* @__PURE__ */ React227.createElement(Box, { padding: "5" }, /* @__PURE__ */ React227.createElement(
|
|
39144
39233
|
Box,
|
|
39145
39234
|
{
|
|
39146
39235
|
display: "flex",
|
|
@@ -39150,7 +39239,7 @@ var QRCodeSkeletonLoader = ({
|
|
|
39150
39239
|
gap: gapBetweenDots,
|
|
39151
39240
|
style: { width: `${size}px`, height: `${size}px` }
|
|
39152
39241
|
},
|
|
39153
|
-
Array.from({ length: diagonalDimension }, (_, index) => /* @__PURE__ */
|
|
39242
|
+
Array.from({ length: diagonalDimension }, (_, index) => /* @__PURE__ */ React227.createElement(
|
|
39154
39243
|
Box,
|
|
39155
39244
|
{
|
|
39156
39245
|
display: "flex",
|
|
@@ -39159,7 +39248,7 @@ var QRCodeSkeletonLoader = ({
|
|
|
39159
39248
|
gap: gapBetweenDots,
|
|
39160
39249
|
key: index
|
|
39161
39250
|
},
|
|
39162
|
-
Array.from({ length: diagonalDimension }, (_2, index2) => /* @__PURE__ */
|
|
39251
|
+
Array.from({ length: diagonalDimension }, (_2, index2) => /* @__PURE__ */ React227.createElement(FunSkeletonCircle, { size: DOT_SIZE, key: index2 }))
|
|
39163
39252
|
))
|
|
39164
39253
|
));
|
|
39165
39254
|
};
|
|
@@ -39167,13 +39256,13 @@ var QRCodeSkeletonLoader_default = QRCodeSkeletonLoader;
|
|
|
39167
39256
|
|
|
39168
39257
|
// src/components/TransferTokenDetails/TransferTokenDetails.tsx
|
|
39169
39258
|
import { formatNumberAndStringify } from "@funkit/utils";
|
|
39170
|
-
import
|
|
39171
|
-
import { Trans as
|
|
39259
|
+
import React233 from "react";
|
|
39260
|
+
import { Trans as Trans15 } from "react-i18next";
|
|
39172
39261
|
|
|
39173
39262
|
// src/components/Icons/New/FileIcon.tsx
|
|
39174
|
-
import
|
|
39263
|
+
import React228 from "react";
|
|
39175
39264
|
var FileIcon = () => {
|
|
39176
|
-
return /* @__PURE__ */
|
|
39265
|
+
return /* @__PURE__ */ React228.createElement(
|
|
39177
39266
|
"svg",
|
|
39178
39267
|
{
|
|
39179
39268
|
width: "12",
|
|
@@ -39182,7 +39271,7 @@ var FileIcon = () => {
|
|
|
39182
39271
|
fill: "none",
|
|
39183
39272
|
xmlns: "http://www.w3.org/2000/svg"
|
|
39184
39273
|
},
|
|
39185
|
-
/* @__PURE__ */
|
|
39274
|
+
/* @__PURE__ */ React228.createElement(
|
|
39186
39275
|
"path",
|
|
39187
39276
|
{
|
|
39188
39277
|
fillRule: "evenodd",
|
|
@@ -39195,9 +39284,9 @@ var FileIcon = () => {
|
|
|
39195
39284
|
};
|
|
39196
39285
|
|
|
39197
39286
|
// src/components/Icons/New/SpeedometerIcon.tsx
|
|
39198
|
-
import
|
|
39287
|
+
import React229 from "react";
|
|
39199
39288
|
var SpeedometerIcon = () => {
|
|
39200
|
-
return /* @__PURE__ */
|
|
39289
|
+
return /* @__PURE__ */ React229.createElement(
|
|
39201
39290
|
"svg",
|
|
39202
39291
|
{
|
|
39203
39292
|
width: "12",
|
|
@@ -39206,7 +39295,7 @@ var SpeedometerIcon = () => {
|
|
|
39206
39295
|
fill: "none",
|
|
39207
39296
|
xmlns: "http://www.w3.org/2000/svg"
|
|
39208
39297
|
},
|
|
39209
|
-
/* @__PURE__ */
|
|
39298
|
+
/* @__PURE__ */ React229.createElement(
|
|
39210
39299
|
"path",
|
|
39211
39300
|
{
|
|
39212
39301
|
fillRule: "evenodd",
|
|
@@ -39220,13 +39309,13 @@ var SpeedometerIcon = () => {
|
|
|
39220
39309
|
|
|
39221
39310
|
// src/components/FunFeatureList/FunFeatureList.tsx
|
|
39222
39311
|
import { motion as motion12, useAnimationControls as useAnimationControls2 } from "motion/react";
|
|
39223
|
-
import
|
|
39312
|
+
import React231, { useState as useState66 } from "react";
|
|
39224
39313
|
|
|
39225
39314
|
// src/components/FunFeatureList/FunFeatureList.css.ts
|
|
39226
39315
|
var detailsButton = "_1045qr71 _1rsrm2fpr _1rsrm2frr _1rsrm2ftn _1rsrm2fnn _1rsrm2fwv _1rsrm2fa _1rsrm2f4 _1rsrm2f84 _1rsrm2fu";
|
|
39227
39316
|
|
|
39228
39317
|
// src/components/FunFeatureList/FunFeatureListItem.tsx
|
|
39229
|
-
import
|
|
39318
|
+
import React230 from "react";
|
|
39230
39319
|
var FunFeatureListItem = ({
|
|
39231
39320
|
text,
|
|
39232
39321
|
tooltip,
|
|
@@ -39237,7 +39326,7 @@ var FunFeatureListItem = ({
|
|
|
39237
39326
|
}) => {
|
|
39238
39327
|
const valueLabel = value && (prefix ? ` ${prefix}${value}` : ` ${value}`);
|
|
39239
39328
|
const isMultiline = Array.isArray(value) && value.length > 0;
|
|
39240
|
-
const TooltipWrapperElement = /* @__PURE__ */
|
|
39329
|
+
const TooltipWrapperElement = /* @__PURE__ */ React230.createElement(
|
|
39241
39330
|
Box,
|
|
39242
39331
|
{
|
|
39243
39332
|
marginLeft: "4",
|
|
@@ -39253,7 +39342,7 @@ var FunFeatureListItem = ({
|
|
|
39253
39342
|
},
|
|
39254
39343
|
tooltip
|
|
39255
39344
|
);
|
|
39256
|
-
return /* @__PURE__ */
|
|
39345
|
+
return /* @__PURE__ */ React230.createElement(Box, { display: "flex", gap: "6", alignItems: "center", paddingY: "2", ...boxProps }, /* @__PURE__ */ React230.createElement(
|
|
39257
39346
|
Box,
|
|
39258
39347
|
{
|
|
39259
39348
|
color: "secondaryText",
|
|
@@ -39262,7 +39351,7 @@ var FunFeatureListItem = ({
|
|
|
39262
39351
|
justifyContent: "center"
|
|
39263
39352
|
},
|
|
39264
39353
|
icon
|
|
39265
|
-
), /* @__PURE__ */
|
|
39354
|
+
), /* @__PURE__ */ React230.createElement(
|
|
39266
39355
|
Box,
|
|
39267
39356
|
{
|
|
39268
39357
|
display: "flex",
|
|
@@ -39271,8 +39360,8 @@ var FunFeatureListItem = ({
|
|
|
39271
39360
|
gap: "6"
|
|
39272
39361
|
}
|
|
39273
39362
|
},
|
|
39274
|
-
isMultiline ? /* @__PURE__ */
|
|
39275
|
-
isMultiline ? /* @__PURE__ */
|
|
39363
|
+
isMultiline ? /* @__PURE__ */ React230.createElement(Box, { display: "flex" }, /* @__PURE__ */ React230.createElement(Text, { size: "funFeatureListItemFontSize", weight: "medium" }, text), tooltip && TooltipWrapperElement) : /* @__PURE__ */ React230.createElement(Text, { size: "funFeatureListItemFontSize" }, text, /* @__PURE__ */ React230.createElement(React230.Fragment, null, "\xA0")),
|
|
39364
|
+
isMultiline ? /* @__PURE__ */ React230.createElement(Box, { display: "flex", flexDirection: "column", gap: "6" }, value.map((v, index) => /* @__PURE__ */ React230.createElement(
|
|
39276
39365
|
Text,
|
|
39277
39366
|
{
|
|
39278
39367
|
size: "funFeatureListItemFontSize",
|
|
@@ -39280,7 +39369,7 @@ var FunFeatureListItem = ({
|
|
|
39280
39369
|
key: index
|
|
39281
39370
|
},
|
|
39282
39371
|
v
|
|
39283
|
-
))) : /* @__PURE__ */
|
|
39372
|
+
))) : /* @__PURE__ */ React230.createElement(
|
|
39284
39373
|
Text,
|
|
39285
39374
|
{
|
|
39286
39375
|
size: "funFeatureListItemFontSize",
|
|
@@ -39317,7 +39406,7 @@ var FunFeatureList = ({
|
|
|
39317
39406
|
onExpanded?.();
|
|
39318
39407
|
}
|
|
39319
39408
|
};
|
|
39320
|
-
return /* @__PURE__ */
|
|
39409
|
+
return /* @__PURE__ */ React231.createElement(
|
|
39321
39410
|
Box,
|
|
39322
39411
|
{
|
|
39323
39412
|
...withBackgroundContainer && {
|
|
@@ -39334,7 +39423,7 @@ var FunFeatureList = ({
|
|
|
39334
39423
|
display: "flex",
|
|
39335
39424
|
flexDirection: "column"
|
|
39336
39425
|
},
|
|
39337
|
-
isExpandable ? /* @__PURE__ */
|
|
39426
|
+
isExpandable ? /* @__PURE__ */ React231.createElement(React231.Fragment, null, /* @__PURE__ */ React231.createElement(
|
|
39338
39427
|
Box,
|
|
39339
39428
|
{
|
|
39340
39429
|
as: "button",
|
|
@@ -39350,9 +39439,9 @@ var FunFeatureList = ({
|
|
|
39350
39439
|
disabled,
|
|
39351
39440
|
onClick: handleExpandToggle
|
|
39352
39441
|
},
|
|
39353
|
-
items[0] && /* @__PURE__ */
|
|
39354
|
-
/* @__PURE__ */
|
|
39355
|
-
), /* @__PURE__ */
|
|
39442
|
+
items[0] && /* @__PURE__ */ React231.createElement(FunFeatureListItem, { ...items[0] }),
|
|
39443
|
+
/* @__PURE__ */ React231.createElement(AnimatedCaretDownIcon, { expanded: isDisplayed })
|
|
39444
|
+
), /* @__PURE__ */ React231.createElement(
|
|
39356
39445
|
motion12.div,
|
|
39357
39446
|
{
|
|
39358
39447
|
initial: "collapsed",
|
|
@@ -39363,7 +39452,7 @@ var FunFeatureList = ({
|
|
|
39363
39452
|
expanded: { height: "auto", opacity: 1, overflow: "visible" }
|
|
39364
39453
|
}
|
|
39365
39454
|
},
|
|
39366
|
-
/* @__PURE__ */
|
|
39455
|
+
/* @__PURE__ */ React231.createElement(
|
|
39367
39456
|
Box,
|
|
39368
39457
|
{
|
|
39369
39458
|
paddingX: "12",
|
|
@@ -39372,7 +39461,7 @@ var FunFeatureList = ({
|
|
|
39372
39461
|
gap: "6",
|
|
39373
39462
|
paddingBottom: "8"
|
|
39374
39463
|
},
|
|
39375
|
-
items.slice(1).map((item, index) => /* @__PURE__ */
|
|
39464
|
+
items.slice(1).map((item, index) => /* @__PURE__ */ React231.createElement(
|
|
39376
39465
|
FunFeatureListItem,
|
|
39377
39466
|
{
|
|
39378
39467
|
key: index,
|
|
@@ -39384,7 +39473,7 @@ var FunFeatureList = ({
|
|
|
39384
39473
|
}
|
|
39385
39474
|
))
|
|
39386
39475
|
)
|
|
39387
|
-
)) : /* @__PURE__ */
|
|
39476
|
+
)) : /* @__PURE__ */ React231.createElement(
|
|
39388
39477
|
Box,
|
|
39389
39478
|
{
|
|
39390
39479
|
display: "flex",
|
|
@@ -39395,7 +39484,7 @@ var FunFeatureList = ({
|
|
|
39395
39484
|
paddingY: "8"
|
|
39396
39485
|
}
|
|
39397
39486
|
},
|
|
39398
|
-
items.map((item, index) => /* @__PURE__ */
|
|
39487
|
+
items.map((item, index) => /* @__PURE__ */ React231.createElement(
|
|
39399
39488
|
Box,
|
|
39400
39489
|
{
|
|
39401
39490
|
key: index,
|
|
@@ -39406,16 +39495,16 @@ var FunFeatureList = ({
|
|
|
39406
39495
|
background: "funFeatureListBackgroundBase"
|
|
39407
39496
|
}
|
|
39408
39497
|
},
|
|
39409
|
-
/* @__PURE__ */
|
|
39498
|
+
/* @__PURE__ */ React231.createElement(FunFeatureListItem, { ...item })
|
|
39410
39499
|
))
|
|
39411
39500
|
)
|
|
39412
39501
|
);
|
|
39413
39502
|
};
|
|
39414
39503
|
|
|
39415
39504
|
// src/components/Icons/New/PercentageIcon.tsx
|
|
39416
|
-
import
|
|
39505
|
+
import React232 from "react";
|
|
39417
39506
|
var PercentageIcon = () => {
|
|
39418
|
-
return /* @__PURE__ */
|
|
39507
|
+
return /* @__PURE__ */ React232.createElement(
|
|
39419
39508
|
"svg",
|
|
39420
39509
|
{
|
|
39421
39510
|
width: "12",
|
|
@@ -39424,7 +39513,7 @@ var PercentageIcon = () => {
|
|
|
39424
39513
|
fill: "none",
|
|
39425
39514
|
xmlns: "http://www.w3.org/2000/svg"
|
|
39426
39515
|
},
|
|
39427
|
-
/* @__PURE__ */
|
|
39516
|
+
/* @__PURE__ */ React232.createElement(
|
|
39428
39517
|
"path",
|
|
39429
39518
|
{
|
|
39430
39519
|
fillRule: "evenodd",
|
|
@@ -39442,7 +39531,7 @@ var FunLinkButtonComponent3 = ({
|
|
|
39442
39531
|
href,
|
|
39443
39532
|
size = "funFeatureListItemFontSize"
|
|
39444
39533
|
}) => {
|
|
39445
|
-
return /* @__PURE__ */
|
|
39534
|
+
return /* @__PURE__ */ React233.createElement(FunLinkButton, { href, inline: true, text: children, size });
|
|
39446
39535
|
};
|
|
39447
39536
|
var TransferTokenDetails = ({
|
|
39448
39537
|
estProcessingTime,
|
|
@@ -39460,7 +39549,7 @@ var TransferTokenDetails = ({
|
|
|
39460
39549
|
!!estProcessingTime
|
|
39461
39550
|
);
|
|
39462
39551
|
const gasFees = void 0;
|
|
39463
|
-
return /* @__PURE__ */
|
|
39552
|
+
return /* @__PURE__ */ React233.createElement(
|
|
39464
39553
|
FunFeatureList,
|
|
39465
39554
|
{
|
|
39466
39555
|
isExpandable: true,
|
|
@@ -39472,17 +39561,17 @@ var TransferTokenDetails = ({
|
|
|
39472
39561
|
text: `${estPriceImpact.label}:`,
|
|
39473
39562
|
prefix: estPriceImpact.value > 0 ? "< " : "",
|
|
39474
39563
|
value: `${formatNumberAndStringify(estPriceImpact.value, void 0, { minimumFractionDigits: 2, maximumFractionDigits: 2 })}%`,
|
|
39475
|
-
icon: /* @__PURE__ */
|
|
39476
|
-
tooltip: /* @__PURE__ */
|
|
39564
|
+
icon: /* @__PURE__ */ React233.createElement(DollarIcon, null),
|
|
39565
|
+
tooltip: /* @__PURE__ */ React233.createElement(
|
|
39477
39566
|
FunTooltip,
|
|
39478
39567
|
{
|
|
39479
|
-
content: /* @__PURE__ */
|
|
39480
|
-
|
|
39568
|
+
content: /* @__PURE__ */ React233.createElement(
|
|
39569
|
+
Trans15,
|
|
39481
39570
|
{
|
|
39482
39571
|
t,
|
|
39483
39572
|
i18nKey: "fees.priceImpactTooltip",
|
|
39484
39573
|
components: {
|
|
39485
|
-
LearnMoreLink: /* @__PURE__ */
|
|
39574
|
+
LearnMoreLink: /* @__PURE__ */ React233.createElement(FunLinkButtonComponent3, { href: "https://intercom.help/funxyz/en/articles/10925883-order-execution-guide" })
|
|
39486
39575
|
}
|
|
39487
39576
|
}
|
|
39488
39577
|
)
|
|
@@ -39495,17 +39584,17 @@ var TransferTokenDetails = ({
|
|
|
39495
39584
|
text: `${maxSlippage.label}:`,
|
|
39496
39585
|
prefix: maxSlippage.value > 0 ? `${t("common.auto")} \u2022 ` : "",
|
|
39497
39586
|
value: `${formatNumberAndStringify(maxSlippage.value, void 0, { minimumFractionDigits: 2, maximumFractionDigits: 2 })}%`,
|
|
39498
|
-
icon: /* @__PURE__ */
|
|
39499
|
-
tooltip: /* @__PURE__ */
|
|
39587
|
+
icon: /* @__PURE__ */ React233.createElement(PercentageIcon, null),
|
|
39588
|
+
tooltip: /* @__PURE__ */ React233.createElement(
|
|
39500
39589
|
FunTooltip,
|
|
39501
39590
|
{
|
|
39502
|
-
content: /* @__PURE__ */
|
|
39503
|
-
|
|
39591
|
+
content: /* @__PURE__ */ React233.createElement(
|
|
39592
|
+
Trans15,
|
|
39504
39593
|
{
|
|
39505
39594
|
t,
|
|
39506
39595
|
i18nKey: "fees.slippageTooltipFull",
|
|
39507
39596
|
components: {
|
|
39508
|
-
LearnMoreLink: /* @__PURE__ */
|
|
39597
|
+
LearnMoreLink: /* @__PURE__ */ React233.createElement(FunLinkButtonComponent3, { href: "https://intercom.help/funxyz/en/articles/10925883-order-execution-guide" })
|
|
39509
39598
|
}
|
|
39510
39599
|
}
|
|
39511
39600
|
)
|
|
@@ -39518,26 +39607,26 @@ var TransferTokenDetails = ({
|
|
|
39518
39607
|
text: `${t("common.estimatedGas")}:`,
|
|
39519
39608
|
prefix: "~",
|
|
39520
39609
|
value: `$${gasFees}`,
|
|
39521
|
-
icon: /* @__PURE__ */
|
|
39610
|
+
icon: /* @__PURE__ */ React233.createElement(DollarIcon, null)
|
|
39522
39611
|
}
|
|
39523
39612
|
] : [],
|
|
39524
39613
|
{
|
|
39525
39614
|
text: t("common.processingTime"),
|
|
39526
39615
|
value: estimatedTimeText,
|
|
39527
|
-
icon: /* @__PURE__ */
|
|
39616
|
+
icon: /* @__PURE__ */ React233.createElement(SpeedometerIcon, null)
|
|
39528
39617
|
},
|
|
39529
39618
|
{
|
|
39530
|
-
text: /* @__PURE__ */
|
|
39531
|
-
|
|
39619
|
+
text: /* @__PURE__ */ React233.createElement(
|
|
39620
|
+
Trans15,
|
|
39532
39621
|
{
|
|
39533
39622
|
t,
|
|
39534
39623
|
i18nKey: "common.haveQuestionsGetHelp",
|
|
39535
39624
|
components: {
|
|
39536
|
-
GetHelpLink: /* @__PURE__ */
|
|
39625
|
+
GetHelpLink: /* @__PURE__ */ React233.createElement(FunLinkButtonComponent3, { href: "https://intercom.help/funxyz/en/articles/10003876-transfer-crypto-guide-faqs" })
|
|
39537
39626
|
}
|
|
39538
39627
|
}
|
|
39539
39628
|
),
|
|
39540
|
-
icon: /* @__PURE__ */
|
|
39629
|
+
icon: /* @__PURE__ */ React233.createElement(FileIcon, null)
|
|
39541
39630
|
}
|
|
39542
39631
|
]
|
|
39543
39632
|
}
|
|
@@ -39545,7 +39634,7 @@ var TransferTokenDetails = ({
|
|
|
39545
39634
|
};
|
|
39546
39635
|
|
|
39547
39636
|
// src/modals/CheckoutModal/TransferToken/useTransferTokenTracking.ts
|
|
39548
|
-
import { useCallback as useCallback45, useEffect as
|
|
39637
|
+
import { useCallback as useCallback45, useEffect as useEffect60, useRef as useRef30 } from "react";
|
|
39549
39638
|
|
|
39550
39639
|
// src/modals/CheckoutModal/TransferToken/CheckoutNotifications.track.ts
|
|
39551
39640
|
function getNotificationId(item) {
|
|
@@ -39642,7 +39731,7 @@ function useTransferTokenTracking({
|
|
|
39642
39731
|
toTokenAddress
|
|
39643
39732
|
}) {
|
|
39644
39733
|
const { logEvent } = useTrack();
|
|
39645
|
-
|
|
39734
|
+
useEffect60(() => {
|
|
39646
39735
|
if (depositAddress && fromChainId && toChainId && toTokenAddress) {
|
|
39647
39736
|
setTokenTransferAddressShownAtMs({
|
|
39648
39737
|
fromChainId,
|
|
@@ -39724,7 +39813,7 @@ function useNotificationTracking({
|
|
|
39724
39813
|
itemRef.current = item;
|
|
39725
39814
|
statusRef.current = status;
|
|
39726
39815
|
const id = item ? getNotificationId(item) : null;
|
|
39727
|
-
|
|
39816
|
+
useEffect60(() => {
|
|
39728
39817
|
if (!id || !itemRef.current) {
|
|
39729
39818
|
return;
|
|
39730
39819
|
}
|
|
@@ -39762,7 +39851,7 @@ function useNotificationTracking({
|
|
|
39762
39851
|
notificationDisplayedAtRef.current = null;
|
|
39763
39852
|
};
|
|
39764
39853
|
}, [id, logEvent]);
|
|
39765
|
-
|
|
39854
|
+
useEffect60(() => {
|
|
39766
39855
|
if (!itemRef.current || !notificationDisplayedAtRef.current) {
|
|
39767
39856
|
return;
|
|
39768
39857
|
}
|
|
@@ -39965,7 +40054,7 @@ function TransferToken({
|
|
|
39965
40054
|
tokenAddress: targetAsset
|
|
39966
40055
|
}) ?? 0;
|
|
39967
40056
|
}
|
|
39968
|
-
return /* @__PURE__ */
|
|
40057
|
+
return /* @__PURE__ */ React234.createElement(
|
|
39969
40058
|
Text,
|
|
39970
40059
|
{
|
|
39971
40060
|
size: "12",
|
|
@@ -39988,7 +40077,7 @@ function TransferToken({
|
|
|
39988
40077
|
}
|
|
39989
40078
|
return (
|
|
39990
40079
|
// This ID is used in the DialogContent css to set the height of the modal
|
|
39991
|
-
/* @__PURE__ */
|
|
40080
|
+
/* @__PURE__ */ React234.createElement(React234.Fragment, null, /* @__PURE__ */ React234.createElement(Box, { id: "token-transfer-page" }, uiCustomizations.transferCryptoScreen.customTopComponent?.(), /* @__PURE__ */ React234.createElement(
|
|
39992
40081
|
Box,
|
|
39993
40082
|
{
|
|
39994
40083
|
display: "flex",
|
|
@@ -39997,17 +40086,17 @@ function TransferToken({
|
|
|
39997
40086
|
justifyContent: "center",
|
|
39998
40087
|
gap: "18"
|
|
39999
40088
|
},
|
|
40000
|
-
isSourceNavWidgetEnabled && /* @__PURE__ */
|
|
40089
|
+
isSourceNavWidgetEnabled && /* @__PURE__ */ React234.createElement(Box, { display: "flex", flexDirection: "column", width: "full" }, /* @__PURE__ */ React234.createElement(
|
|
40001
40090
|
SourcePaymentMethodItem,
|
|
40002
40091
|
{
|
|
40003
40092
|
type: "token_transfer" /* TOKEN_TRANSFER */,
|
|
40004
40093
|
keyText: textCustomizations.transferTokens,
|
|
40005
40094
|
disclaimerText: t("transferToken.noLimit"),
|
|
40006
|
-
keyIcon: /* @__PURE__ */
|
|
40095
|
+
keyIcon: /* @__PURE__ */ React234.createElement(CryptoTransferQRIcon, null),
|
|
40007
40096
|
onClick: () => onNext({})
|
|
40008
40097
|
}
|
|
40009
40098
|
)),
|
|
40010
|
-
defaultCandidate && !checkoutConfig?.generateActionsParams && /* @__PURE__ */
|
|
40099
|
+
defaultCandidate && !checkoutConfig?.generateActionsParams && /* @__PURE__ */ React234.createElement(
|
|
40011
40100
|
Box,
|
|
40012
40101
|
{
|
|
40013
40102
|
display: "flex",
|
|
@@ -40021,8 +40110,8 @@ function TransferToken({
|
|
|
40021
40110
|
paddingX: "dropdownPaddingX",
|
|
40022
40111
|
paddingY: "8"
|
|
40023
40112
|
},
|
|
40024
|
-
/* @__PURE__ */
|
|
40025
|
-
/* @__PURE__ */
|
|
40113
|
+
/* @__PURE__ */ React234.createElement(Text, { size: "12", color: "secondaryText" }, t("transferToken.receiveToken")),
|
|
40114
|
+
/* @__PURE__ */ React234.createElement(Box, { display: "flex", alignItems: "center", gap: "8" }, /* @__PURE__ */ React234.createElement(
|
|
40026
40115
|
FunAssetAvatar,
|
|
40027
40116
|
{
|
|
40028
40117
|
assetIconSize: "16",
|
|
@@ -40031,9 +40120,9 @@ function TransferToken({
|
|
|
40031
40120
|
chainId: defaultCandidate.tokenChainId,
|
|
40032
40121
|
largeChainIcon: true
|
|
40033
40122
|
}
|
|
40034
|
-
), /* @__PURE__ */
|
|
40123
|
+
), /* @__PURE__ */ React234.createElement(Text, { size: "12", weight: "medium" }, defaultCandidate.tokenSymbol))
|
|
40035
40124
|
),
|
|
40036
|
-
/* @__PURE__ */
|
|
40125
|
+
/* @__PURE__ */ React234.createElement(
|
|
40037
40126
|
TokenAndChainDropdown,
|
|
40038
40127
|
{
|
|
40039
40128
|
isLoading: isLoadingDepositAddress,
|
|
@@ -40067,7 +40156,7 @@ function TransferToken({
|
|
|
40067
40156
|
selectedToken,
|
|
40068
40157
|
selectedChainId,
|
|
40069
40158
|
chainTagComponent,
|
|
40070
|
-
chainLabelAddon: !!minTransferUsd && /* @__PURE__ */
|
|
40159
|
+
chainLabelAddon: !!minTransferUsd && /* @__PURE__ */ React234.createElement(
|
|
40071
40160
|
Box,
|
|
40072
40161
|
{
|
|
40073
40162
|
display: "flex",
|
|
@@ -40077,15 +40166,15 @@ function TransferToken({
|
|
|
40077
40166
|
fontSize: "12",
|
|
40078
40167
|
height: "14"
|
|
40079
40168
|
},
|
|
40080
|
-
/* @__PURE__ */
|
|
40081
|
-
/* @__PURE__ */
|
|
40169
|
+
/* @__PURE__ */ React234.createElement(Text, { size: "inputLabel", color: "secondaryText" }, t("transferToken.min")),
|
|
40170
|
+
/* @__PURE__ */ React234.createElement(Text, { size: "inputLabel", color: "secondaryText" }, /* @__PURE__ */ React234.createElement(
|
|
40082
40171
|
AnimatedDollarValue,
|
|
40083
40172
|
{
|
|
40084
40173
|
value: minTransferUsd,
|
|
40085
40174
|
dynamicMinFractionDigits: true
|
|
40086
40175
|
}
|
|
40087
40176
|
)),
|
|
40088
|
-
/* @__PURE__ */
|
|
40177
|
+
/* @__PURE__ */ React234.createElement(
|
|
40089
40178
|
FunTooltip,
|
|
40090
40179
|
{
|
|
40091
40180
|
content: t("transferToken.minDepositAmountTooltip"),
|
|
@@ -40098,7 +40187,7 @@ function TransferToken({
|
|
|
40098
40187
|
chainIdSortOrder
|
|
40099
40188
|
}
|
|
40100
40189
|
),
|
|
40101
|
-
/* @__PURE__ */
|
|
40190
|
+
/* @__PURE__ */ React234.createElement(
|
|
40102
40191
|
Box,
|
|
40103
40192
|
{
|
|
40104
40193
|
display: "flex",
|
|
@@ -40108,7 +40197,7 @@ function TransferToken({
|
|
|
40108
40197
|
justifyContent: "center",
|
|
40109
40198
|
padding: "20"
|
|
40110
40199
|
},
|
|
40111
|
-
isLoadingDepositAddress ? /* @__PURE__ */
|
|
40200
|
+
isLoadingDepositAddress ? /* @__PURE__ */ React234.createElement(QRCodeSkeletonLoader_default, { diagonalDimension: 13, gapBetweenDots: "4" }) : /* @__PURE__ */ React234.createElement(
|
|
40112
40201
|
motion13.div,
|
|
40113
40202
|
{
|
|
40114
40203
|
onHoverStart: toggleQrHover,
|
|
@@ -40128,7 +40217,7 @@ function TransferToken({
|
|
|
40128
40217
|
},
|
|
40129
40218
|
animate: controls
|
|
40130
40219
|
},
|
|
40131
|
-
/* @__PURE__ */
|
|
40220
|
+
/* @__PURE__ */ React234.createElement(
|
|
40132
40221
|
QRCode,
|
|
40133
40222
|
{
|
|
40134
40223
|
withShadow: true,
|
|
@@ -40142,7 +40231,7 @@ function TransferToken({
|
|
|
40142
40231
|
}
|
|
40143
40232
|
)
|
|
40144
40233
|
),
|
|
40145
|
-
displayYouPayYouReceive && /* @__PURE__ */
|
|
40234
|
+
displayYouPayYouReceive && /* @__PURE__ */ React234.createElement(Box, { display: "flex", justifyContent: "center", alignItems: "center" }, /* @__PURE__ */ React234.createElement(
|
|
40146
40235
|
YouPayYouReceive,
|
|
40147
40236
|
{
|
|
40148
40237
|
payLabel: textCustomizations.confirmationScreen?.payAmountLabel,
|
|
@@ -40157,7 +40246,7 @@ function TransferToken({
|
|
|
40157
40246
|
}
|
|
40158
40247
|
))
|
|
40159
40248
|
),
|
|
40160
|
-
/* @__PURE__ */
|
|
40249
|
+
/* @__PURE__ */ React234.createElement(Box, { width: "full", display: "flex", flexDirection: "column", gap: "12" }, /* @__PURE__ */ React234.createElement(Box, { width: "full", display: "flex", flexDirection: "column", gap: "4" }, /* @__PURE__ */ React234.createElement(
|
|
40161
40250
|
Box,
|
|
40162
40251
|
{
|
|
40163
40252
|
display: "flex",
|
|
@@ -40165,7 +40254,7 @@ function TransferToken({
|
|
|
40165
40254
|
justifyContent: "space-between",
|
|
40166
40255
|
ref: disclaimerTextWrapperRef
|
|
40167
40256
|
},
|
|
40168
|
-
/* @__PURE__ */
|
|
40257
|
+
/* @__PURE__ */ React234.createElement(Box, { display: "flex", alignItems: "center", gap: "4" }, /* @__PURE__ */ React234.createElement(
|
|
40169
40258
|
Text,
|
|
40170
40259
|
{
|
|
40171
40260
|
size: "inputLabel",
|
|
@@ -40173,7 +40262,7 @@ function TransferToken({
|
|
|
40173
40262
|
color: "inputLabel"
|
|
40174
40263
|
},
|
|
40175
40264
|
t("transferToken.yourDepositAddress")
|
|
40176
|
-
), /* @__PURE__ */
|
|
40265
|
+
), /* @__PURE__ */ React234.createElement(
|
|
40177
40266
|
FunTooltip,
|
|
40178
40267
|
{
|
|
40179
40268
|
content: depositAddressTooltip,
|
|
@@ -40181,7 +40270,7 @@ function TransferToken({
|
|
|
40181
40270
|
enableDynamicPositioning: true
|
|
40182
40271
|
}
|
|
40183
40272
|
)),
|
|
40184
|
-
/* @__PURE__ */
|
|
40273
|
+
/* @__PURE__ */ React234.createElement(
|
|
40185
40274
|
FunLinkButton,
|
|
40186
40275
|
{
|
|
40187
40276
|
text: t("transferToken.termsApply"),
|
|
@@ -40190,13 +40279,13 @@ function TransferToken({
|
|
|
40190
40279
|
variant: "labelLink"
|
|
40191
40280
|
}
|
|
40192
40281
|
)
|
|
40193
|
-
), isLoadingDepositAddress ? /* @__PURE__ */
|
|
40282
|
+
), isLoadingDepositAddress ? /* @__PURE__ */ React234.createElement(FunSkeletonBlock, { height: "66px", width: "full" }) : /* @__PURE__ */ React234.createElement(
|
|
40194
40283
|
CopyInputDisplayedAddress,
|
|
40195
40284
|
{
|
|
40196
40285
|
address: depositAddress,
|
|
40197
40286
|
onAddressCopied: trackAddressCopied
|
|
40198
40287
|
}
|
|
40199
|
-
)), /* @__PURE__ */
|
|
40288
|
+
)), /* @__PURE__ */ React234.createElement(ChainInfoBanners, { chainId: selectedChainId }), /* @__PURE__ */ React234.createElement(FunInfoBanner, null), /* @__PURE__ */ React234.createElement(
|
|
40200
40289
|
TransferTokenDetails,
|
|
40201
40290
|
{
|
|
40202
40291
|
estProcessingTime: blockchain === "bitcoin" ? 30 * 60 * 1e3 : void 0,
|
|
@@ -40206,24 +40295,24 @@ function TransferToken({
|
|
|
40206
40295
|
onExpanded: () => trackImpactExpanded(estPriceImpact?.value)
|
|
40207
40296
|
}
|
|
40208
40297
|
))
|
|
40209
|
-
)), bottomSectionRef && createPortal20(/* @__PURE__ */
|
|
40298
|
+
)), bottomSectionRef && createPortal20(/* @__PURE__ */ React234.createElement(Dialog.BottomBar, null), bottomSectionRef))
|
|
40210
40299
|
);
|
|
40211
40300
|
}
|
|
40212
40301
|
|
|
40213
40302
|
// src/modals/CheckoutModal/VirtualFiatAccount/FiatAccountDetail.tsx
|
|
40214
|
-
import
|
|
40303
|
+
import React239, { useState as useState68 } from "react";
|
|
40215
40304
|
|
|
40216
40305
|
// src/components/VirtualFiatAccount/AccountDetailsTab/AccountDetailsTab.tsx
|
|
40217
|
-
import
|
|
40306
|
+
import React238 from "react";
|
|
40218
40307
|
|
|
40219
40308
|
// src/components/FunInputButton/FunInputButton.tsx
|
|
40220
|
-
import
|
|
40309
|
+
import React237 from "react";
|
|
40221
40310
|
|
|
40222
40311
|
// src/components/Icons/CopyDoubleRoundedSquareIcon.tsx
|
|
40223
|
-
import
|
|
40312
|
+
import React235 from "react";
|
|
40224
40313
|
var CopyDoubleRoundedSquareIcon = ({
|
|
40225
40314
|
size = 16
|
|
40226
|
-
}) => /* @__PURE__ */
|
|
40315
|
+
}) => /* @__PURE__ */ React235.createElement(
|
|
40227
40316
|
"svg",
|
|
40228
40317
|
{
|
|
40229
40318
|
width: size,
|
|
@@ -40232,7 +40321,7 @@ var CopyDoubleRoundedSquareIcon = ({
|
|
|
40232
40321
|
fill: "none",
|
|
40233
40322
|
xmlns: "http://www.w3.org/2000/svg"
|
|
40234
40323
|
},
|
|
40235
|
-
/* @__PURE__ */
|
|
40324
|
+
/* @__PURE__ */ React235.createElement(
|
|
40236
40325
|
"path",
|
|
40237
40326
|
{
|
|
40238
40327
|
d: "M10.2 5.8V4.26C10.2 3.64394 10.2 3.33591 10.0801 3.10061C9.97465 2.89363 9.80637 2.72535 9.59939 2.61989C9.36409 2.5 9.05606 2.5 8.44 2.5H4.26C3.64394 2.5 3.33591 2.5 3.10061 2.61989C2.89363 2.72535 2.72535 2.89363 2.61989 3.10061C2.5 3.33591 2.5 3.64394 2.5 4.26V8.44C2.5 9.05606 2.5 9.36409 2.61989 9.59939C2.72535 9.80637 2.89363 9.97465 3.10061 10.0801C3.33591 10.2 3.64394 10.2 4.26 10.2H5.8M7.56 13.5H11.74C12.3561 13.5 12.6641 13.5 12.8994 13.3801C13.1064 13.2746 13.2746 13.1064 13.3801 12.8994C13.5 12.6641 13.5 12.3561 13.5 11.74V7.56C13.5 6.94394 13.5 6.63591 13.3801 6.40061C13.2746 6.19363 13.1064 6.02535 12.8994 5.91989C12.6641 5.8 12.3561 5.8 11.74 5.8H7.56C6.94394 5.8 6.63591 5.8 6.40061 5.91989C6.19363 6.02535 6.02535 6.19363 5.91989 6.40061C5.8 6.63591 5.8 6.94394 5.8 7.56V11.74C5.8 12.3561 5.8 12.6641 5.91989 12.8994C6.02535 13.1064 6.19363 13.2746 6.40061 13.3801C6.63591 13.5 6.94394 13.5 7.56 13.5Z",
|
|
@@ -40245,9 +40334,9 @@ var CopyDoubleRoundedSquareIcon = ({
|
|
|
40245
40334
|
);
|
|
40246
40335
|
|
|
40247
40336
|
// src/components/Icons/New/CheckCircleIcon.tsx
|
|
40248
|
-
import
|
|
40337
|
+
import React236 from "react";
|
|
40249
40338
|
var CheckCircleIcon = () => {
|
|
40250
|
-
return /* @__PURE__ */
|
|
40339
|
+
return /* @__PURE__ */ React236.createElement(
|
|
40251
40340
|
"svg",
|
|
40252
40341
|
{
|
|
40253
40342
|
width: "16",
|
|
@@ -40256,7 +40345,7 @@ var CheckCircleIcon = () => {
|
|
|
40256
40345
|
fill: "none",
|
|
40257
40346
|
xmlns: "http://www.w3.org/2000/svg"
|
|
40258
40347
|
},
|
|
40259
|
-
/* @__PURE__ */
|
|
40348
|
+
/* @__PURE__ */ React236.createElement(
|
|
40260
40349
|
"circle",
|
|
40261
40350
|
{
|
|
40262
40351
|
cx: "8",
|
|
@@ -40268,7 +40357,7 @@ var CheckCircleIcon = () => {
|
|
|
40268
40357
|
strokeLinejoin: "round"
|
|
40269
40358
|
}
|
|
40270
40359
|
),
|
|
40271
|
-
/* @__PURE__ */
|
|
40360
|
+
/* @__PURE__ */ React236.createElement(
|
|
40272
40361
|
"path",
|
|
40273
40362
|
{
|
|
40274
40363
|
d: "M5.5 9L7 10.5L10.5 7",
|
|
@@ -40293,7 +40382,7 @@ var FunInputButton = ({
|
|
|
40293
40382
|
const { t } = useFunkitTranslation();
|
|
40294
40383
|
const { isCopied, handleCopy } = useCopyToClipboard(text, HIDE_TOOLTIP_MS);
|
|
40295
40384
|
if (!isCopyable) {
|
|
40296
|
-
return /* @__PURE__ */
|
|
40385
|
+
return /* @__PURE__ */ React237.createElement(
|
|
40297
40386
|
FunOptionBox,
|
|
40298
40387
|
{
|
|
40299
40388
|
width: "full",
|
|
@@ -40312,10 +40401,10 @@ var FunInputButton = ({
|
|
|
40312
40401
|
hover: "heavyStroke"
|
|
40313
40402
|
}
|
|
40314
40403
|
},
|
|
40315
|
-
/* @__PURE__ */
|
|
40404
|
+
/* @__PURE__ */ React237.createElement(Box, { display: "flex", gap: "8", flexDirection: "column" }, label && /* @__PURE__ */ React237.createElement(Text, { size: "10", color: "secondaryText" }, label), /* @__PURE__ */ React237.createElement(Text, { weight: "medium", size: "12" }, text))
|
|
40316
40405
|
);
|
|
40317
40406
|
}
|
|
40318
|
-
return /* @__PURE__ */
|
|
40407
|
+
return /* @__PURE__ */ React237.createElement(
|
|
40319
40408
|
FunOptionBox,
|
|
40320
40409
|
{
|
|
40321
40410
|
width: "full",
|
|
@@ -40335,8 +40424,8 @@ var FunInputButton = ({
|
|
|
40335
40424
|
hover: "heavyStroke"
|
|
40336
40425
|
}
|
|
40337
40426
|
},
|
|
40338
|
-
/* @__PURE__ */
|
|
40339
|
-
/* @__PURE__ */
|
|
40427
|
+
/* @__PURE__ */ React237.createElement(Box, { display: "flex", gap: "8", flexDirection: "column" }, label && /* @__PURE__ */ React237.createElement(Text, { size: "10", color: "secondaryText" }, label), /* @__PURE__ */ React237.createElement(Text, { weight: "medium", size: "12" }, text)),
|
|
40428
|
+
/* @__PURE__ */ React237.createElement(FunTooltip, { content: isCopied ? t("common.copied") : t("common.copy") }, /* @__PURE__ */ React237.createElement(Box, { display: "flex", alignItems: "center", color: "primaryText" }, isCopied ? /* @__PURE__ */ React237.createElement(CheckCircleIcon, null) : /* @__PURE__ */ React237.createElement(CopyDoubleRoundedSquareIcon, null)))
|
|
40340
40429
|
);
|
|
40341
40430
|
};
|
|
40342
40431
|
|
|
@@ -40347,62 +40436,62 @@ var AccountDetailsTab = ({
|
|
|
40347
40436
|
handleToggleDetails
|
|
40348
40437
|
}) => {
|
|
40349
40438
|
const { t } = useFunkitTranslation();
|
|
40350
|
-
return /* @__PURE__ */
|
|
40439
|
+
return /* @__PURE__ */ React238.createElement(Box, { display: "flex", flexDirection: "column", gap: "8" }, account.bank_account_number ? /* @__PURE__ */ React238.createElement(
|
|
40351
40440
|
FunInputButton,
|
|
40352
40441
|
{
|
|
40353
40442
|
label: t("virtualFiatAccount.accountNumber"),
|
|
40354
40443
|
text: account.bank_account_number
|
|
40355
40444
|
}
|
|
40356
|
-
) : null, account.bank_routing_number ? /* @__PURE__ */
|
|
40445
|
+
) : null, account.bank_routing_number ? /* @__PURE__ */ React238.createElement(
|
|
40357
40446
|
FunInputButton,
|
|
40358
40447
|
{
|
|
40359
40448
|
label: t("virtualFiatAccount.routingNumber"),
|
|
40360
40449
|
text: account.bank_routing_number
|
|
40361
40450
|
}
|
|
40362
|
-
) : null, account.iban ? /* @__PURE__ */
|
|
40451
|
+
) : null, account.iban ? /* @__PURE__ */ React238.createElement(
|
|
40363
40452
|
FunInputButton,
|
|
40364
40453
|
{
|
|
40365
40454
|
label: t("virtualFiatAccount.iban"),
|
|
40366
40455
|
text: account.iban
|
|
40367
40456
|
}
|
|
40368
|
-
) : null, account.bic ? /* @__PURE__ */
|
|
40457
|
+
) : null, account.bic ? /* @__PURE__ */ React238.createElement(
|
|
40369
40458
|
FunInputButton,
|
|
40370
40459
|
{
|
|
40371
40460
|
label: t("virtualFiatAccount.swiftBic"),
|
|
40372
40461
|
text: account.bic
|
|
40373
40462
|
}
|
|
40374
|
-
) : null, account.account_holder_name ? /* @__PURE__ */
|
|
40463
|
+
) : null, account.account_holder_name ? /* @__PURE__ */ React238.createElement(
|
|
40375
40464
|
FunInputButton,
|
|
40376
40465
|
{
|
|
40377
40466
|
label: t("virtualFiatAccount.accountHolderName"),
|
|
40378
40467
|
text: account.account_holder_name
|
|
40379
40468
|
}
|
|
40380
|
-
) : null, account.bank_beneficiary_name ? /* @__PURE__ */
|
|
40469
|
+
) : null, account.bank_beneficiary_name ? /* @__PURE__ */ React238.createElement(
|
|
40381
40470
|
FunInputButton,
|
|
40382
40471
|
{
|
|
40383
40472
|
label: t("virtualFiatAccount.beneficiaryName"),
|
|
40384
40473
|
text: account.bank_beneficiary_name
|
|
40385
40474
|
}
|
|
40386
|
-
) : null, detailsExpanded && /* @__PURE__ */
|
|
40475
|
+
) : null, detailsExpanded && /* @__PURE__ */ React238.createElement(React238.Fragment, null, /* @__PURE__ */ React238.createElement(
|
|
40387
40476
|
FunInputButton,
|
|
40388
40477
|
{
|
|
40389
40478
|
label: t("virtualFiatAccount.bankName"),
|
|
40390
40479
|
text: account.bank_name
|
|
40391
40480
|
}
|
|
40392
|
-
), /* @__PURE__ */
|
|
40481
|
+
), /* @__PURE__ */ React238.createElement(
|
|
40393
40482
|
FunInputButton,
|
|
40394
40483
|
{
|
|
40395
40484
|
label: t("virtualFiatAccount.bankAddress"),
|
|
40396
40485
|
text: account.bank_address
|
|
40397
40486
|
}
|
|
40398
|
-
), /* @__PURE__ */
|
|
40487
|
+
), /* @__PURE__ */ React238.createElement(
|
|
40399
40488
|
FunInputButton,
|
|
40400
40489
|
{
|
|
40401
40490
|
label: t("virtualFiatAccount.currency"),
|
|
40402
40491
|
text: String(account.currency).toUpperCase(),
|
|
40403
40492
|
isCopyable: false
|
|
40404
40493
|
}
|
|
40405
|
-
)), /* @__PURE__ */
|
|
40494
|
+
)), /* @__PURE__ */ React238.createElement(
|
|
40406
40495
|
Box,
|
|
40407
40496
|
{
|
|
40408
40497
|
width: "full",
|
|
@@ -40422,8 +40511,8 @@ var AccountDetailsTab = ({
|
|
|
40422
40511
|
hover: "heavyStroke"
|
|
40423
40512
|
}
|
|
40424
40513
|
},
|
|
40425
|
-
/* @__PURE__ */
|
|
40426
|
-
/* @__PURE__ */
|
|
40514
|
+
/* @__PURE__ */ React238.createElement(Text, { size: "13" }, detailsExpanded ? "See less" : "More details"),
|
|
40515
|
+
/* @__PURE__ */ React238.createElement(
|
|
40427
40516
|
Box,
|
|
40428
40517
|
{
|
|
40429
40518
|
width: "16",
|
|
@@ -40432,7 +40521,7 @@ var AccountDetailsTab = ({
|
|
|
40432
40521
|
alignItems: "center",
|
|
40433
40522
|
justifyContent: "center"
|
|
40434
40523
|
},
|
|
40435
|
-
/* @__PURE__ */
|
|
40524
|
+
/* @__PURE__ */ React238.createElement(
|
|
40436
40525
|
Box,
|
|
40437
40526
|
{
|
|
40438
40527
|
color: "secondaryText",
|
|
@@ -40443,7 +40532,7 @@ var AccountDetailsTab = ({
|
|
|
40443
40532
|
justifyContent: "center",
|
|
40444
40533
|
style: detailsExpanded ? { transform: "rotate(180deg)" } : void 0
|
|
40445
40534
|
},
|
|
40446
|
-
/* @__PURE__ */
|
|
40535
|
+
/* @__PURE__ */ React238.createElement(CaretDownIcon, null)
|
|
40447
40536
|
)
|
|
40448
40537
|
)
|
|
40449
40538
|
));
|
|
@@ -40469,7 +40558,7 @@ var AccountDetailsScreen = ({
|
|
|
40469
40558
|
const handleTabChange = (index) => {
|
|
40470
40559
|
animate(() => setActiveTab(index), { reverse: index < activeTab });
|
|
40471
40560
|
};
|
|
40472
|
-
return /* @__PURE__ */
|
|
40561
|
+
return /* @__PURE__ */ React239.createElement(
|
|
40473
40562
|
Box,
|
|
40474
40563
|
{
|
|
40475
40564
|
id: "fiat-detail-page",
|
|
@@ -40477,7 +40566,7 @@ var AccountDetailsScreen = ({
|
|
|
40477
40566
|
flexDirection: "column",
|
|
40478
40567
|
gap: "16"
|
|
40479
40568
|
},
|
|
40480
|
-
isSourceNavWidgetEnabled && /* @__PURE__ */
|
|
40569
|
+
isSourceNavWidgetEnabled && /* @__PURE__ */ React239.createElement(
|
|
40481
40570
|
SourcePaymentMethodItem,
|
|
40482
40571
|
{
|
|
40483
40572
|
onClick: () => onNext({}),
|
|
@@ -40486,21 +40575,21 @@ var AccountDetailsScreen = ({
|
|
|
40486
40575
|
keyIcon: label.icon
|
|
40487
40576
|
}
|
|
40488
40577
|
),
|
|
40489
|
-
/* @__PURE__ */
|
|
40578
|
+
/* @__PURE__ */ React239.createElement(Box, { display: "flex", flexDirection: "column", gap: "8" }, /* @__PURE__ */ React239.createElement(Box, { display: "flex", flexDirection: "column", gap: "12" }, /* @__PURE__ */ React239.createElement(
|
|
40490
40579
|
Tabs,
|
|
40491
40580
|
{
|
|
40492
40581
|
tabs,
|
|
40493
40582
|
activeTab,
|
|
40494
40583
|
onTabChange: handleTabChange
|
|
40495
40584
|
}
|
|
40496
|
-
)), /* @__PURE__ */
|
|
40585
|
+
)), /* @__PURE__ */ React239.createElement(Box, { className: getContentAnimation(animation) }, tabs[activeTab]?.value === "details" ? /* @__PURE__ */ React239.createElement(
|
|
40497
40586
|
AccountDetailsTab,
|
|
40498
40587
|
{
|
|
40499
40588
|
account: sourceDeposit,
|
|
40500
40589
|
detailsExpanded,
|
|
40501
40590
|
handleToggleDetails: () => setDetailsExpanded((prev) => !prev)
|
|
40502
40591
|
}
|
|
40503
|
-
) : /* @__PURE__ */
|
|
40592
|
+
) : /* @__PURE__ */ React239.createElement(
|
|
40504
40593
|
FunFeatureList,
|
|
40505
40594
|
{
|
|
40506
40595
|
gapBetweenItems: "8",
|
|
@@ -40514,7 +40603,7 @@ var AccountDetailsScreen = ({
|
|
|
40514
40603
|
"Gas fee: < $5.00",
|
|
40515
40604
|
"Banks fees may also apply"
|
|
40516
40605
|
],
|
|
40517
|
-
icon: /* @__PURE__ */
|
|
40606
|
+
icon: /* @__PURE__ */ React239.createElement(DollarIcon, null)
|
|
40518
40607
|
},
|
|
40519
40608
|
{
|
|
40520
40609
|
text: "Limits",
|
|
@@ -40522,12 +40611,12 @@ var AccountDetailsScreen = ({
|
|
|
40522
40611
|
"Minimum amount: 25 EUR",
|
|
40523
40612
|
"Maximum amount: 20,000,000 EUR"
|
|
40524
40613
|
],
|
|
40525
|
-
icon: /* @__PURE__ */
|
|
40614
|
+
icon: /* @__PURE__ */ React239.createElement(DollarIcon, null)
|
|
40526
40615
|
},
|
|
40527
40616
|
{
|
|
40528
40617
|
text: "Processing time",
|
|
40529
40618
|
value: [FIAT_PROCESSING_TIME],
|
|
40530
|
-
icon: /* @__PURE__ */
|
|
40619
|
+
icon: /* @__PURE__ */ React239.createElement(SpeedometerIcon, null)
|
|
40531
40620
|
}
|
|
40532
40621
|
]
|
|
40533
40622
|
}
|
|
@@ -40550,7 +40639,7 @@ var FiatAccountDetail = {
|
|
|
40550
40639
|
|
|
40551
40640
|
// src/modals/CheckoutModal/VirtualFiatAccount/KycIframe.tsx
|
|
40552
40641
|
import { BridgeCustomerStatus as BridgeCustomerStatus7 } from "@funkit/api-base";
|
|
40553
|
-
import
|
|
40642
|
+
import React240, { useCallback as useCallback46, useEffect as useEffect61, useMemo as useMemo56, useState as useState69 } from "react";
|
|
40554
40643
|
function useIframeListener(listeners, expectedOrigin) {
|
|
40555
40644
|
const handleMessage = useCallback46(
|
|
40556
40645
|
(event) => {
|
|
@@ -40577,7 +40666,7 @@ function useIframeListener(listeners, expectedOrigin) {
|
|
|
40577
40666
|
},
|
|
40578
40667
|
[listeners, expectedOrigin]
|
|
40579
40668
|
);
|
|
40580
|
-
|
|
40669
|
+
useEffect61(() => {
|
|
40581
40670
|
window.addEventListener("message", handleMessage);
|
|
40582
40671
|
return () => {
|
|
40583
40672
|
window.removeEventListener("message", handleMessage);
|
|
@@ -40637,7 +40726,7 @@ function KycIframe({
|
|
|
40637
40726
|
);
|
|
40638
40727
|
const loading = isLinkLoading || iframeLoading;
|
|
40639
40728
|
useIframeListener(listeners, kycOrigin);
|
|
40640
|
-
return /* @__PURE__ */
|
|
40729
|
+
return /* @__PURE__ */ React240.createElement(
|
|
40641
40730
|
Dialog,
|
|
40642
40731
|
{
|
|
40643
40732
|
onClose: onBack,
|
|
@@ -40646,13 +40735,13 @@ function KycIframe({
|
|
|
40646
40735
|
withoutSidePadding: !loading,
|
|
40647
40736
|
withTransition: false
|
|
40648
40737
|
},
|
|
40649
|
-
loading && /* @__PURE__ */
|
|
40738
|
+
loading && /* @__PURE__ */ React240.createElement(React240.Fragment, null, /* @__PURE__ */ React240.createElement(
|
|
40650
40739
|
Dialog.Title,
|
|
40651
40740
|
{
|
|
40652
40741
|
onClose: onBack,
|
|
40653
40742
|
title: textCustomizations.virtualFiat
|
|
40654
40743
|
}
|
|
40655
|
-
), /* @__PURE__ */
|
|
40744
|
+
), /* @__PURE__ */ React240.createElement(
|
|
40656
40745
|
VerifyAccountScreen,
|
|
40657
40746
|
{
|
|
40658
40747
|
customerStatus: BridgeCustomerStatus7.NOT_STARTED,
|
|
@@ -40660,7 +40749,7 @@ function KycIframe({
|
|
|
40660
40749
|
withActionButton: false
|
|
40661
40750
|
}
|
|
40662
40751
|
)),
|
|
40663
|
-
/* @__PURE__ */
|
|
40752
|
+
/* @__PURE__ */ React240.createElement(
|
|
40664
40753
|
Dialog.Content,
|
|
40665
40754
|
{
|
|
40666
40755
|
display: "flex",
|
|
@@ -40673,7 +40762,7 @@ function KycIframe({
|
|
|
40673
40762
|
withoutSidePadding: !loading,
|
|
40674
40763
|
fullHeight: !loading
|
|
40675
40764
|
},
|
|
40676
|
-
kycLink && /* @__PURE__ */
|
|
40765
|
+
kycLink && /* @__PURE__ */ React240.createElement(
|
|
40677
40766
|
"iframe",
|
|
40678
40767
|
{
|
|
40679
40768
|
src: kycLink,
|
|
@@ -40688,14 +40777,14 @@ function KycIframe({
|
|
|
40688
40777
|
}
|
|
40689
40778
|
)
|
|
40690
40779
|
),
|
|
40691
|
-
loading && /* @__PURE__ */
|
|
40780
|
+
loading && /* @__PURE__ */ React240.createElement(
|
|
40692
40781
|
Dialog.BottomSection,
|
|
40693
40782
|
{
|
|
40694
40783
|
style: {
|
|
40695
40784
|
paddingBottom: themeVars.spacing.modalPaddingBottomLower
|
|
40696
40785
|
}
|
|
40697
40786
|
},
|
|
40698
|
-
/* @__PURE__ */
|
|
40787
|
+
/* @__PURE__ */ React240.createElement(
|
|
40699
40788
|
Dialog.BottomBar,
|
|
40700
40789
|
{
|
|
40701
40790
|
actionButtonProps: {
|
|
@@ -40774,7 +40863,7 @@ function useCheckoutModalTransition(checkoutItem, onClose) {
|
|
|
40774
40863
|
ensureStepQueries(modalState.step);
|
|
40775
40864
|
}
|
|
40776
40865
|
});
|
|
40777
|
-
|
|
40866
|
+
useEffect62(() => {
|
|
40778
40867
|
ensureLoadingAccountScreen();
|
|
40779
40868
|
}, [ensureLoadingAccountScreen]);
|
|
40780
40869
|
const trackNextState = useCallback47(
|
|
@@ -40991,7 +41080,7 @@ function FunCheckoutModalHeightAnimationWrapper({
|
|
|
40991
41080
|
const permittedHeight = getPermittedHeight2(
|
|
40992
41081
|
checkoutStep === "loading_account" /* LOADING_ACCOUNT */ ? startsOnConfirmationStep ? "confirmation" /* CONFIRMATION */ : startsOnSelectAssetStep ? "select_asset" /* SELECT_ASSET */ : "source_change" /* SOURCE_CHANGE */ : checkoutStep
|
|
40993
41082
|
);
|
|
40994
|
-
return /* @__PURE__ */
|
|
41083
|
+
return /* @__PURE__ */ React241.createElement(ModalHeightAnimationLayer, { permittedHeight }, children);
|
|
40995
41084
|
}
|
|
40996
41085
|
|
|
40997
41086
|
// src/hooks/useCheckoutModalTitle.ts
|
|
@@ -41006,7 +41095,7 @@ function useCheckoutModalTitle(depositAddress, defaultTitle) {
|
|
|
41006
41095
|
import { IN_PROGRESS_CHECKOUT_STATES as IN_PROGRESS_CHECKOUT_STATES2 } from "@funkit/api-base";
|
|
41007
41096
|
import { formatTimestampToDate, fullMonthNames } from "@funkit/utils";
|
|
41008
41097
|
import clsx22 from "clsx";
|
|
41009
|
-
import
|
|
41098
|
+
import React251, { useEffect as useEffect64, useMemo as useMemo57, useRef as useRef34, useState as useState72 } from "react";
|
|
41010
41099
|
import { Virtuoso } from "react-virtuoso";
|
|
41011
41100
|
|
|
41012
41101
|
// src/consts/layout.ts
|
|
@@ -41017,9 +41106,9 @@ var DEFAULT_ICON_SIZE = "24";
|
|
|
41017
41106
|
var OVERLAY_Z_INDEX = 100;
|
|
41018
41107
|
|
|
41019
41108
|
// src/components/Icons/GreenRoundCheckmark.tsx
|
|
41020
|
-
import
|
|
41109
|
+
import React242 from "react";
|
|
41021
41110
|
var GreenRoundCheckmark = ({ size = 15 }) => {
|
|
41022
|
-
return /* @__PURE__ */
|
|
41111
|
+
return /* @__PURE__ */ React242.createElement(
|
|
41023
41112
|
"svg",
|
|
41024
41113
|
{
|
|
41025
41114
|
width: size,
|
|
@@ -41028,7 +41117,7 @@ var GreenRoundCheckmark = ({ size = 15 }) => {
|
|
|
41028
41117
|
fill: "none",
|
|
41029
41118
|
xmlns: "http://www.w3.org/2000/svg"
|
|
41030
41119
|
},
|
|
41031
|
-
/* @__PURE__ */
|
|
41120
|
+
/* @__PURE__ */ React242.createElement(
|
|
41032
41121
|
"path",
|
|
41033
41122
|
{
|
|
41034
41123
|
d: "M5 10.4551C4.31315 10.4551 3.66862 10.3249 3.06641 10.0645C2.46419 9.80729 1.93522 9.45085 1.47949 8.99512C1.02376 8.53613 0.66569 8.00716 0.405273 7.4082C0.148112 6.80599 0.0195312 6.16146 0.0195312 5.47461C0.0195312 4.78776 0.148112 4.14323 0.405273 3.54102C0.66569 2.9388 1.02376 2.40983 1.47949 1.9541C1.93522 1.49837 2.46419 1.14193 3.06641 0.884766C3.66862 0.624349 4.31315 0.494141 5 0.494141C5.68685 0.494141 6.33138 0.624349 6.93359 0.884766C7.53581 1.14193 8.06478 1.49837 8.52051 1.9541C8.97624 2.40983 9.33268 2.9388 9.58984 3.54102C9.85026 4.14323 9.98047 4.78776 9.98047 5.47461C9.98047 6.16146 9.85026 6.80599 9.58984 7.4082C9.33268 8.00716 8.97624 8.53613 8.52051 8.99512C8.06478 9.45085 7.53581 9.80729 6.93359 10.0645C6.33138 10.3249 5.68685 10.4551 5 10.4551ZM4.45312 7.85742C4.53776 7.85742 4.61426 7.83789 4.68262 7.79883C4.75098 7.75977 4.8112 7.70117 4.86328 7.62305L7.1582 4.00488C7.1875 3.95605 7.21517 3.90397 7.24121 3.84863C7.26725 3.79329 7.28027 3.73796 7.28027 3.68262C7.28027 3.56868 7.23796 3.47917 7.15332 3.41406C7.06868 3.3457 6.97428 3.31152 6.87012 3.31152C6.72689 3.31152 6.6097 3.38639 6.51855 3.53613L4.43359 6.88574L3.44238 5.60645C3.38053 5.52507 3.32031 5.46973 3.26172 5.44043C3.20638 5.41113 3.1429 5.39648 3.07129 5.39648C2.96061 5.39648 2.86784 5.43717 2.79297 5.51855C2.7181 5.59668 2.68066 5.69108 2.68066 5.80176C2.68066 5.8571 2.69043 5.91243 2.70996 5.96777C2.73275 6.01986 2.76204 6.07031 2.79785 6.11914L4.02344 7.62305C4.08854 7.70768 4.15527 7.7679 4.22363 7.80371C4.29199 7.83952 4.36849 7.85742 4.45312 7.85742Z",
|
|
@@ -41039,10 +41128,10 @@ var GreenRoundCheckmark = ({ size = 15 }) => {
|
|
|
41039
41128
|
};
|
|
41040
41129
|
|
|
41041
41130
|
// src/modals/ProfileDetails/FunProfileViews/Home/BalanceSection.tsx
|
|
41042
|
-
import
|
|
41131
|
+
import React243 from "react";
|
|
41043
41132
|
import { formatCurrencyAndStringify as formatCurrencyAndStringify12 } from "@funkit/utils";
|
|
41044
41133
|
var BalanceSection = ({ totalBalance }) => {
|
|
41045
|
-
return /* @__PURE__ */
|
|
41134
|
+
return /* @__PURE__ */ React243.createElement(Box, { display: "flex", flexDirection: "column", gap: "16" }, /* @__PURE__ */ React243.createElement(Box, { display: "flex", justifyContent: "center", alignItems: "center" }, /* @__PURE__ */ React243.createElement(Text, { as: "h1", color: "primaryText", weight: "medium", size: "40" }, formatCurrencyAndStringify12(
|
|
41046
41135
|
Number.parseFloat(totalBalance.toString())
|
|
41047
41136
|
))));
|
|
41048
41137
|
};
|
|
@@ -41061,12 +41150,12 @@ import {
|
|
|
41061
41150
|
isNotNullish as isNotNullish7
|
|
41062
41151
|
} from "@funkit/utils";
|
|
41063
41152
|
import clsx21 from "clsx";
|
|
41064
|
-
import
|
|
41153
|
+
import React245 from "react";
|
|
41065
41154
|
|
|
41066
41155
|
// src/components/Icons/RedRoundErrorCross.tsx
|
|
41067
|
-
import
|
|
41156
|
+
import React244 from "react";
|
|
41068
41157
|
var RedRoundErrorCross = ({ size = 15 }) => {
|
|
41069
|
-
return /* @__PURE__ */
|
|
41158
|
+
return /* @__PURE__ */ React244.createElement(
|
|
41070
41159
|
"svg",
|
|
41071
41160
|
{
|
|
41072
41161
|
width: size,
|
|
@@ -41075,8 +41164,8 @@ var RedRoundErrorCross = ({ size = 15 }) => {
|
|
|
41075
41164
|
fill: "none",
|
|
41076
41165
|
xmlns: "http://www.w3.org/2000/svg"
|
|
41077
41166
|
},
|
|
41078
|
-
/* @__PURE__ */
|
|
41079
|
-
/* @__PURE__ */
|
|
41167
|
+
/* @__PURE__ */ React244.createElement("circle", { cx: "4", cy: "4.5", r: "4", fill: "#F34126" }),
|
|
41168
|
+
/* @__PURE__ */ React244.createElement(
|
|
41080
41169
|
"path",
|
|
41081
41170
|
{
|
|
41082
41171
|
d: "M2.57111 2.59761L4 4.02654L5.42889 2.59761C5.54807 2.47844 5.7369 2.46734 5.87797 2.57755L5.90238 2.59979C6.03254 2.72994 6.03254 2.94096 5.90238 3.07111L4.47346 4.5L5.90238 5.92889C6.02156 6.04806 6.03266 6.2369 5.92244 6.37797L5.90022 6.40239C5.77007 6.53254 5.55904 6.53254 5.42888 6.40238L4 4.97346L2.57111 6.40239C2.45193 6.52156 2.2631 6.53266 2.12203 6.42245L2.09761 6.40021C1.96746 6.27006 1.96746 6.05904 2.09761 5.92889L3.52654 4.5L2.09761 3.07111C1.97844 2.95194 1.96734 2.7631 2.07755 2.62203L2.09978 2.59761C2.22993 2.46746 2.44095 2.46746 2.57111 2.59761ZM2.36024 6.33149L2.35293 6.33242C2.35536 6.33217 2.3578 6.33185 2.36024 6.33149ZM2.31088 6.33152L2.31385 6.33194L2.31088 6.33152ZM2.3814 6.3269L2.37242 6.3292C2.37542 6.32852 2.37842 6.32775 2.3814 6.3269ZM2.40026 6.32026L2.39333 6.323C2.39564 6.32215 2.39795 6.32123 2.40026 6.32026ZM2.25106 6.31043L2.23334 6.29839C2.24074 6.30415 2.2485 6.30919 2.25656 6.31353L2.25106 6.31043ZM2.41976 6.31047L2.4144 6.31349C2.4144 6.31349 2.41796 6.31153 2.41976 6.31047ZM5.81353 6.24343L5.81042 6.24894L5.79839 6.26667C5.80415 6.25927 5.80919 6.25149 5.81353 6.24343ZM5.82275 6.2231L5.82025 6.22939C5.82114 6.22729 5.82197 6.2252 5.82275 6.2231ZM5.82913 6.20184L5.82703 6.21006C5.82778 6.20739 5.8285 6.20462 5.82913 6.20184ZM5.83241 6.18215L5.83152 6.18912C5.83186 6.18683 5.83216 6.18449 5.83241 6.18215ZM5.66455 2.83328L4 4.49787L2.33545 2.83328L2.33327 2.83545L3.99787 4.5L2.33327 6.16455L2.33545 6.16672L4 4.50213L5.66455 6.16672L5.66673 6.16455L4.00213 4.5L5.66673 2.83545L5.66455 2.83328ZM5.83331 6.16189L5.83332 6.16672L5.83331 6.16189ZM5.83149 6.13977L5.83242 6.14707C5.83216 6.14465 5.83186 6.1422 5.83149 6.13977ZM5.8269 6.1186L5.8292 6.12758C5.82852 6.12458 5.82776 6.12158 5.8269 6.1186ZM5.82026 6.09974L5.823 6.10667C5.82214 6.10436 5.82123 6.10204 5.82026 6.09974ZM5.81048 6.08024L5.81349 6.0856C5.81349 6.0856 5.81153 6.08203 5.81048 6.08024ZM2.18651 2.9144L2.18903 2.9189L2.18651 2.9144ZM2.177 2.89333L2.17924 2.89907C2.17845 2.89716 2.17772 2.89526 2.177 2.89333ZM2.1708 2.87242L2.17226 2.87835C2.17174 2.87638 2.17125 2.87441 2.1708 2.87242ZM2.16751 2.85227L2.16806 2.85705L2.16751 2.85227ZM2.16674 2.83061L2.16667 2.83545L2.16674 2.83061ZM2.16848 2.81088L2.16806 2.81385L2.16848 2.81088ZM2.18957 2.75106L2.20161 2.73333C2.19585 2.74073 2.1908 2.74851 2.18647 2.75657L2.18957 2.75106ZM2.41433 2.68647L2.41984 2.68957L2.43756 2.70161C2.43016 2.69585 2.42238 2.69081 2.41433 2.68647ZM5.5856 2.68651L5.5811 2.68903L5.5856 2.68651ZM2.2565 2.68651L2.25199 2.68903L2.2565 2.68651ZM5.74344 2.68647L5.74894 2.68957L5.76666 2.70161C5.75926 2.69585 5.75149 2.69081 5.74344 2.68647ZM2.27691 2.67725L2.27183 2.67924L2.27691 2.67725ZM2.3933 2.67699L2.40029 2.67975C2.39796 2.67877 2.39564 2.67785 2.3933 2.67699ZM5.60667 2.677L5.60093 2.67924C5.60284 2.67846 5.60473 2.67771 5.60667 2.677ZM5.7231 2.67725L5.72939 2.67975C5.72729 2.67887 5.7252 2.67804 5.7231 2.67725ZM2.29821 2.67086L2.29254 2.67226L2.29821 2.67086ZM2.37241 2.6708L2.38143 2.6731C2.37842 2.67225 2.37542 2.67148 2.37241 2.6708ZM5.62758 2.6708L5.62165 2.67226C5.62363 2.67173 5.62559 2.67125 5.62758 2.6708ZM5.70184 2.67087L5.71006 2.67297C5.7074 2.67221 5.70463 2.67151 5.70184 2.67087ZM2.31856 2.66752L2.31385 2.66806L2.31856 2.66752ZM2.35224 2.66751L2.36022 2.66851C2.35757 2.66811 2.35491 2.66778 2.35224 2.66751ZM5.64774 2.66751L5.64295 2.66806L5.64774 2.66751ZM5.68148 2.66752L5.68912 2.66848C5.68661 2.6681 5.68405 2.66778 5.68148 2.66752ZM5.65972 2.66674L5.66941 2.66674C5.66618 2.66664 5.66295 2.66664 5.65972 2.66674ZM2.33059 2.66674L2.34028 2.66674C2.33705 2.66664 2.33382 2.66664 2.33059 2.66674Z",
|
|
@@ -41112,7 +41201,7 @@ var HomeCheckoutDisplayRow = ({
|
|
|
41112
41201
|
const checkoutClientMetadata = checkoutHistoryItem.clientMetadata;
|
|
41113
41202
|
const getStatusElement = () => {
|
|
41114
41203
|
if (isCompleted) {
|
|
41115
|
-
return /* @__PURE__ */
|
|
41204
|
+
return /* @__PURE__ */ React245.createElement(
|
|
41116
41205
|
Box,
|
|
41117
41206
|
{
|
|
41118
41207
|
display: "flex",
|
|
@@ -41120,12 +41209,12 @@ var HomeCheckoutDisplayRow = ({
|
|
|
41120
41209
|
gap: STATUS_FLEX_GAP_X,
|
|
41121
41210
|
alignItems: "center"
|
|
41122
41211
|
},
|
|
41123
|
-
/* @__PURE__ */
|
|
41124
|
-
/* @__PURE__ */
|
|
41212
|
+
/* @__PURE__ */ React245.createElement(GreenRoundCheckmark, { size: Number.parseInt(STATUS_ICON_SIZE) }),
|
|
41213
|
+
/* @__PURE__ */ React245.createElement(Text, { size: STATUS_TEXT_SIZE, color: "success" }, t("checkoutHistory.completed"))
|
|
41125
41214
|
);
|
|
41126
41215
|
}
|
|
41127
41216
|
if (isError || isFailed || isExpired) {
|
|
41128
|
-
return /* @__PURE__ */
|
|
41217
|
+
return /* @__PURE__ */ React245.createElement(
|
|
41129
41218
|
Box,
|
|
41130
41219
|
{
|
|
41131
41220
|
display: "flex",
|
|
@@ -41133,12 +41222,12 @@ var HomeCheckoutDisplayRow = ({
|
|
|
41133
41222
|
gap: STATUS_FLEX_GAP_X,
|
|
41134
41223
|
alignItems: "center"
|
|
41135
41224
|
},
|
|
41136
|
-
/* @__PURE__ */
|
|
41137
|
-
/* @__PURE__ */
|
|
41225
|
+
/* @__PURE__ */ React245.createElement(RedRoundErrorCross, { size: Number.parseInt(STATUS_ICON_SIZE) }),
|
|
41226
|
+
/* @__PURE__ */ React245.createElement(Text, { size: STATUS_TEXT_SIZE, color: "error" }, t("checkoutHistory.failed"))
|
|
41138
41227
|
);
|
|
41139
41228
|
}
|
|
41140
41229
|
if (isProcessing) {
|
|
41141
|
-
return /* @__PURE__ */
|
|
41230
|
+
return /* @__PURE__ */ React245.createElement(
|
|
41142
41231
|
Box,
|
|
41143
41232
|
{
|
|
41144
41233
|
display: "flex",
|
|
@@ -41146,7 +41235,7 @@ var HomeCheckoutDisplayRow = ({
|
|
|
41146
41235
|
gap: STATUS_FLEX_GAP_X,
|
|
41147
41236
|
alignItems: "center"
|
|
41148
41237
|
},
|
|
41149
|
-
/* @__PURE__ */
|
|
41238
|
+
/* @__PURE__ */ React245.createElement(
|
|
41150
41239
|
Box,
|
|
41151
41240
|
{
|
|
41152
41241
|
width: STATUS_ICON_SIZE,
|
|
@@ -41155,13 +41244,13 @@ var HomeCheckoutDisplayRow = ({
|
|
|
41155
41244
|
background: "standby"
|
|
41156
41245
|
}
|
|
41157
41246
|
),
|
|
41158
|
-
/* @__PURE__ */
|
|
41247
|
+
/* @__PURE__ */ React245.createElement(Text, { size: STATUS_TEXT_SIZE, color: "standby" }, t("checkoutHistory.processing"))
|
|
41159
41248
|
);
|
|
41160
41249
|
}
|
|
41161
41250
|
};
|
|
41162
41251
|
const checkoutConfig = checkoutClientMetadata.initSettings.config;
|
|
41163
41252
|
const showIcon = isNotNullish7(checkoutConfig.iconSrc) || checkoutClientMetadata.isWithdrawal;
|
|
41164
|
-
return /* @__PURE__ */
|
|
41253
|
+
return /* @__PURE__ */ React245.createElement(
|
|
41165
41254
|
Box,
|
|
41166
41255
|
{
|
|
41167
41256
|
className: clsx21(
|
|
@@ -41186,7 +41275,7 @@ var HomeCheckoutDisplayRow = ({
|
|
|
41186
41275
|
}
|
|
41187
41276
|
}
|
|
41188
41277
|
},
|
|
41189
|
-
/* @__PURE__ */
|
|
41278
|
+
/* @__PURE__ */ React245.createElement(Box, { display: "flex", alignItems: "center", gap: ROW_FLEX_GAP_X, width: "full" }, showIcon && /* @__PURE__ */ React245.createElement(
|
|
41190
41279
|
Box,
|
|
41191
41280
|
{
|
|
41192
41281
|
display: "flex",
|
|
@@ -41197,7 +41286,7 @@ var HomeCheckoutDisplayRow = ({
|
|
|
41197
41286
|
minWidth: "29px"
|
|
41198
41287
|
}
|
|
41199
41288
|
},
|
|
41200
|
-
/* @__PURE__ */
|
|
41289
|
+
/* @__PURE__ */ React245.createElement(
|
|
41201
41290
|
FunAssetAvatar,
|
|
41202
41291
|
{
|
|
41203
41292
|
assetSrc: checkoutConfig.iconSrc || "",
|
|
@@ -41208,7 +41297,7 @@ var HomeCheckoutDisplayRow = ({
|
|
|
41208
41297
|
chainId: checkoutConfig.targetChain
|
|
41209
41298
|
}
|
|
41210
41299
|
)
|
|
41211
|
-
), /* @__PURE__ */
|
|
41300
|
+
), /* @__PURE__ */ React245.createElement(Box, { display: "flex", flexDirection: "column", width: "full" }, /* @__PURE__ */ React245.createElement(
|
|
41212
41301
|
Box,
|
|
41213
41302
|
{
|
|
41214
41303
|
display: "flex",
|
|
@@ -41216,19 +41305,19 @@ var HomeCheckoutDisplayRow = ({
|
|
|
41216
41305
|
alignItems: "center",
|
|
41217
41306
|
gap: "16"
|
|
41218
41307
|
},
|
|
41219
|
-
/* @__PURE__ */
|
|
41220
|
-
/* @__PURE__ */
|
|
41308
|
+
/* @__PURE__ */ React245.createElement(Text, { size: TEXT_SIZE_MEDIUM2, weight: "medium", color: "primaryText" }, checkoutConfig.checkoutItemTitle),
|
|
41309
|
+
/* @__PURE__ */ React245.createElement(Text, { size: TEXT_SIZE_MEDIUM2, weight: "medium", color: "primaryText" }, `${formatCurrencyAndStringify13(
|
|
41221
41310
|
checkoutClientMetadata?.finalDollarValue || 0
|
|
41222
41311
|
)} USD`)
|
|
41223
|
-
), /* @__PURE__ */
|
|
41312
|
+
), /* @__PURE__ */ React245.createElement(Box, { display: "flex", justifyContent: "space-between", gap: "16" }, /* @__PURE__ */ React245.createElement(Text, { size: TEXT_SIZE_SMALL2, color: "secondaryText" }, formatTimestamp3(new Date(checkoutHistoryItem.createdTimeMs), {
|
|
41224
41313
|
year: "none",
|
|
41225
41314
|
seconds: "none",
|
|
41226
41315
|
month: "short"
|
|
41227
|
-
})), /* @__PURE__ */
|
|
41316
|
+
})), /* @__PURE__ */ React245.createElement(Box, null, getStatusElement()))))
|
|
41228
41317
|
);
|
|
41229
41318
|
};
|
|
41230
41319
|
var HomeCheckoutDisplayRowSkeleton = () => {
|
|
41231
|
-
return /* @__PURE__ */
|
|
41320
|
+
return /* @__PURE__ */ React245.createElement(
|
|
41232
41321
|
Box,
|
|
41233
41322
|
{
|
|
41234
41323
|
display: "flex",
|
|
@@ -41238,8 +41327,8 @@ var HomeCheckoutDisplayRowSkeleton = () => {
|
|
|
41238
41327
|
paddingX: PROFILE_SIDE_PADDING,
|
|
41239
41328
|
paddingY: ROW_PADDING_Y
|
|
41240
41329
|
},
|
|
41241
|
-
/* @__PURE__ */
|
|
41242
|
-
/* @__PURE__ */
|
|
41330
|
+
/* @__PURE__ */ React245.createElement(FunSkeletonCircle, { size: DEFAULT_ICON_SIZE }),
|
|
41331
|
+
/* @__PURE__ */ React245.createElement(Box, { display: "flex", flexDirection: "column", style: { flexGrow: 1 } }, /* @__PURE__ */ React245.createElement(
|
|
41243
41332
|
FunSkeletonBlock,
|
|
41244
41333
|
{
|
|
41245
41334
|
height: TEXT_SIZE_MEDIUM2,
|
|
@@ -41247,7 +41336,7 @@ var HomeCheckoutDisplayRowSkeleton = () => {
|
|
|
41247
41336
|
marginTop: TEXT_SKELETON_MARGIN_TOP2,
|
|
41248
41337
|
width: TEXT_SKELETON_WIDTH_LONG2
|
|
41249
41338
|
}
|
|
41250
|
-
), /* @__PURE__ */
|
|
41339
|
+
), /* @__PURE__ */ React245.createElement(
|
|
41251
41340
|
FunSkeletonBlock,
|
|
41252
41341
|
{
|
|
41253
41342
|
height: TEXT_SIZE_SMALL2,
|
|
@@ -41256,7 +41345,7 @@ var HomeCheckoutDisplayRowSkeleton = () => {
|
|
|
41256
41345
|
width: TEXT_SKELETON_WIDTH_MEDIUM
|
|
41257
41346
|
}
|
|
41258
41347
|
)),
|
|
41259
|
-
/* @__PURE__ */
|
|
41348
|
+
/* @__PURE__ */ React245.createElement(Box, { alignItems: "flex-end", display: "flex", flexDirection: "column" }, /* @__PURE__ */ React245.createElement(
|
|
41260
41349
|
FunSkeletonBlock,
|
|
41261
41350
|
{
|
|
41262
41351
|
height: TEXT_SIZE_MEDIUM2,
|
|
@@ -41264,7 +41353,7 @@ var HomeCheckoutDisplayRowSkeleton = () => {
|
|
|
41264
41353
|
marginTop: TEXT_SKELETON_MARGIN_TOP2,
|
|
41265
41354
|
width: TEXT_SKELETON_WIDTH_MEDIUM
|
|
41266
41355
|
}
|
|
41267
|
-
), /* @__PURE__ */
|
|
41356
|
+
), /* @__PURE__ */ React245.createElement(
|
|
41268
41357
|
FunSkeletonBlock,
|
|
41269
41358
|
{
|
|
41270
41359
|
height: STATUS_TEXT_SIZE,
|
|
@@ -41282,7 +41371,7 @@ import {
|
|
|
41282
41371
|
formatCurrencyAndStringify as formatCurrencyAndStringify14,
|
|
41283
41372
|
isMobile as isMobile9
|
|
41284
41373
|
} from "@funkit/utils";
|
|
41285
|
-
import
|
|
41374
|
+
import React246 from "react";
|
|
41286
41375
|
var TEXT_SIZE = "13";
|
|
41287
41376
|
var TEXT_SKELETON_MARGIN_TOP3 = "2";
|
|
41288
41377
|
var TEXT_SKELETON_MARGIN_BOTTOM3 = "3";
|
|
@@ -41297,7 +41386,7 @@ var HomeTokenBalanceDisplayRow = ({
|
|
|
41297
41386
|
asset.tokenBalance,
|
|
41298
41387
|
asset.decimals
|
|
41299
41388
|
);
|
|
41300
|
-
return /* @__PURE__ */
|
|
41389
|
+
return /* @__PURE__ */ React246.createElement(
|
|
41301
41390
|
Box,
|
|
41302
41391
|
{
|
|
41303
41392
|
display: "flex",
|
|
@@ -41311,7 +41400,7 @@ var HomeTokenBalanceDisplayRow = ({
|
|
|
41311
41400
|
paddingY: ROW_PADDING_Y2,
|
|
41312
41401
|
className: baseStyles4
|
|
41313
41402
|
},
|
|
41314
|
-
/* @__PURE__ */
|
|
41403
|
+
/* @__PURE__ */ React246.createElement(
|
|
41315
41404
|
Box,
|
|
41316
41405
|
{
|
|
41317
41406
|
display: "flex",
|
|
@@ -41320,7 +41409,7 @@ var HomeTokenBalanceDisplayRow = ({
|
|
|
41320
41409
|
alignItems: "flex-start",
|
|
41321
41410
|
height: "full"
|
|
41322
41411
|
},
|
|
41323
|
-
/* @__PURE__ */
|
|
41412
|
+
/* @__PURE__ */ React246.createElement(
|
|
41324
41413
|
FunAssetAvatar,
|
|
41325
41414
|
{
|
|
41326
41415
|
assetSrc: asset.logo,
|
|
@@ -41330,22 +41419,22 @@ var HomeTokenBalanceDisplayRow = ({
|
|
|
41330
41419
|
assetIconSize: DEFAULT_ICON_SIZE
|
|
41331
41420
|
}
|
|
41332
41421
|
),
|
|
41333
|
-
/* @__PURE__ */
|
|
41422
|
+
/* @__PURE__ */ React246.createElement(
|
|
41334
41423
|
Box,
|
|
41335
41424
|
{
|
|
41336
41425
|
display: "flex",
|
|
41337
41426
|
flexDirection: "column",
|
|
41338
41427
|
justifyContent: "space-between"
|
|
41339
41428
|
},
|
|
41340
|
-
/* @__PURE__ */
|
|
41341
|
-
/* @__PURE__ */
|
|
41429
|
+
/* @__PURE__ */ React246.createElement(Text, { color: "primaryText", size: TEXT_SIZE, weight: "regular" }, asset.name),
|
|
41430
|
+
/* @__PURE__ */ React246.createElement(Text, { color: "secondaryText", size: TEXT_SIZE, weight: "regular" }, formatCryptoAndStringify8(normalizedAmount, asset.symbol))
|
|
41342
41431
|
)
|
|
41343
41432
|
),
|
|
41344
|
-
/* @__PURE__ */
|
|
41433
|
+
/* @__PURE__ */ React246.createElement(Text, { color: "primaryText", size: TEXT_SIZE, weight: "regular" }, formatCurrencyAndStringify14(asset.totalUsdValue || 0))
|
|
41345
41434
|
);
|
|
41346
41435
|
};
|
|
41347
41436
|
var HomeTokenBalanceDisplayRowSkeleton = () => {
|
|
41348
|
-
return /* @__PURE__ */
|
|
41437
|
+
return /* @__PURE__ */ React246.createElement(
|
|
41349
41438
|
Box,
|
|
41350
41439
|
{
|
|
41351
41440
|
display: "flex",
|
|
@@ -41355,8 +41444,8 @@ var HomeTokenBalanceDisplayRowSkeleton = () => {
|
|
|
41355
41444
|
paddingX: PROFILE_SIDE_PADDING,
|
|
41356
41445
|
paddingY: ROW_PADDING_Y2
|
|
41357
41446
|
},
|
|
41358
|
-
/* @__PURE__ */
|
|
41359
|
-
/* @__PURE__ */
|
|
41447
|
+
/* @__PURE__ */ React246.createElement(FunSkeletonCircle, { size: DEFAULT_ICON_SIZE }),
|
|
41448
|
+
/* @__PURE__ */ React246.createElement(Box, { display: "flex", flexDirection: "column", style: { flexGrow: 1 } }, /* @__PURE__ */ React246.createElement(
|
|
41360
41449
|
FunSkeletonBlock,
|
|
41361
41450
|
{
|
|
41362
41451
|
height: TEXT_SIZE,
|
|
@@ -41364,7 +41453,7 @@ var HomeTokenBalanceDisplayRowSkeleton = () => {
|
|
|
41364
41453
|
marginTop: TEXT_SKELETON_MARGIN_TOP3,
|
|
41365
41454
|
width: TEXT_SKELETON_WIDTH_SHORT3
|
|
41366
41455
|
}
|
|
41367
|
-
), /* @__PURE__ */
|
|
41456
|
+
), /* @__PURE__ */ React246.createElement(
|
|
41368
41457
|
FunSkeletonBlock,
|
|
41369
41458
|
{
|
|
41370
41459
|
height: TEXT_SIZE,
|
|
@@ -41373,7 +41462,7 @@ var HomeTokenBalanceDisplayRowSkeleton = () => {
|
|
|
41373
41462
|
width: TEXT_SKELETON_WIDTH_LONG3
|
|
41374
41463
|
}
|
|
41375
41464
|
)),
|
|
41376
|
-
/* @__PURE__ */
|
|
41465
|
+
/* @__PURE__ */ React246.createElement(
|
|
41377
41466
|
FunSkeletonBlock,
|
|
41378
41467
|
{
|
|
41379
41468
|
height: TEXT_SIZE,
|
|
@@ -41386,18 +41475,18 @@ var HomeTokenBalanceDisplayRowSkeleton = () => {
|
|
|
41386
41475
|
};
|
|
41387
41476
|
|
|
41388
41477
|
// src/modals/ProfileDetails/FunProfileViews/Home/ProfileTitleSection.tsx
|
|
41389
|
-
import
|
|
41478
|
+
import React250 from "react";
|
|
41390
41479
|
import { useCallback as useCallback48, useState as useState71 } from "react";
|
|
41391
41480
|
|
|
41392
41481
|
// src/components/FunSelect/FunClickOutside.tsx
|
|
41393
|
-
import
|
|
41394
|
-
import { useEffect as
|
|
41482
|
+
import React247 from "react";
|
|
41483
|
+
import { useEffect as useEffect63, useRef as useRef33 } from "react";
|
|
41395
41484
|
function FunClickOutside({
|
|
41396
41485
|
children,
|
|
41397
41486
|
onClick
|
|
41398
41487
|
}) {
|
|
41399
41488
|
const wrapperRef = useRef33(null);
|
|
41400
|
-
|
|
41489
|
+
useEffect63(() => {
|
|
41401
41490
|
const handleClickListener = (event) => {
|
|
41402
41491
|
const clickedInside = wrapperRef.current?.contains(
|
|
41403
41492
|
event.target
|
|
@@ -41411,13 +41500,13 @@ function FunClickOutside({
|
|
|
41411
41500
|
document.removeEventListener("mousedown", handleClickListener);
|
|
41412
41501
|
};
|
|
41413
41502
|
}, [onClick]);
|
|
41414
|
-
return /* @__PURE__ */
|
|
41503
|
+
return /* @__PURE__ */ React247.createElement("div", { ref: wrapperRef }, children);
|
|
41415
41504
|
}
|
|
41416
41505
|
|
|
41417
41506
|
// src/components/Icons/LogoutIcon.tsx
|
|
41418
|
-
import
|
|
41507
|
+
import React248 from "react";
|
|
41419
41508
|
var LogoutIcon = ({ size = 16 }) => {
|
|
41420
|
-
return /* @__PURE__ */
|
|
41509
|
+
return /* @__PURE__ */ React248.createElement(
|
|
41421
41510
|
"svg",
|
|
41422
41511
|
{
|
|
41423
41512
|
width: size,
|
|
@@ -41426,7 +41515,7 @@ var LogoutIcon = ({ size = 16 }) => {
|
|
|
41426
41515
|
fill: "none",
|
|
41427
41516
|
xmlns: "http://www.w3.org/2000/svg"
|
|
41428
41517
|
},
|
|
41429
|
-
/* @__PURE__ */
|
|
41518
|
+
/* @__PURE__ */ React248.createElement(
|
|
41430
41519
|
"path",
|
|
41431
41520
|
{
|
|
41432
41521
|
d: "M9.33463 13.3337H4.0013C3.26492 13.3337 2.66797 12.7367 2.66797 12.0003V4.00033C2.66797 3.26395 3.26492 2.66699 4.0013 2.66699H9.33463M6.66797 8.00033H14.0013M14.0013 8.00033L12.0013 10.0003M14.0013 8.00033L12.0013 6.00033",
|
|
@@ -41441,9 +41530,9 @@ var LogoutIcon = ({ size = 16 }) => {
|
|
|
41441
41530
|
};
|
|
41442
41531
|
|
|
41443
41532
|
// src/components/Icons/SettingsIcon.tsx
|
|
41444
|
-
import
|
|
41533
|
+
import React249 from "react";
|
|
41445
41534
|
var SettingsIcon = ({ size = 16 }) => {
|
|
41446
|
-
return /* @__PURE__ */
|
|
41535
|
+
return /* @__PURE__ */ React249.createElement(
|
|
41447
41536
|
"svg",
|
|
41448
41537
|
{
|
|
41449
41538
|
width: size,
|
|
@@ -41452,14 +41541,14 @@ var SettingsIcon = ({ size = 16 }) => {
|
|
|
41452
41541
|
fill: "none",
|
|
41453
41542
|
xmlns: "http://www.w3.org/2000/svg"
|
|
41454
41543
|
},
|
|
41455
|
-
/* @__PURE__ */
|
|
41544
|
+
/* @__PURE__ */ React249.createElement(
|
|
41456
41545
|
"path",
|
|
41457
41546
|
{
|
|
41458
41547
|
d: "M8.75 10.167C9.85457 10.167 10.75 9.27156 10.75 8.16699C10.75 7.06242 9.85457 6.16699 8.75 6.16699C7.64543 6.16699 6.75 7.06242 6.75 8.16699C6.75 9.27156 7.64543 10.167 8.75 10.167Z",
|
|
41459
41548
|
stroke: "currentColor"
|
|
41460
41549
|
}
|
|
41461
41550
|
),
|
|
41462
|
-
/* @__PURE__ */
|
|
41551
|
+
/* @__PURE__ */ React249.createElement(
|
|
41463
41552
|
"path",
|
|
41464
41553
|
{
|
|
41465
41554
|
d: "M9.92726 1.60149C9.68219 1.5 9.37159 1.5 8.75032 1.5C8.12906 1.5 7.81846 1.5 7.57339 1.60149C7.2467 1.73682 6.98714 1.99639 6.85181 2.32309C6.79004 2.47223 6.76586 2.64567 6.7564 2.89866C6.7425 3.27045 6.55183 3.61459 6.22962 3.80062C5.90742 3.98664 5.51405 3.97969 5.18512 3.80584C4.96129 3.68753 4.799 3.62175 4.63895 3.60068C4.28835 3.55452 3.93378 3.64953 3.65323 3.8648C3.44282 4.02625 3.2875 4.29527 2.97688 4.83329C2.66625 5.37131 2.51094 5.64032 2.47632 5.90327C2.43016 6.25387 2.52517 6.60844 2.74044 6.889C2.8387 7.01707 2.97679 7.12467 3.19112 7.25933C3.50619 7.45733 3.70892 7.7946 3.7089 8.16667C3.70888 8.53873 3.50616 8.87593 3.19111 9.07387C2.97676 9.2086 2.83864 9.31627 2.74038 9.44433C2.5251 9.72487 2.4301 10.0794 2.47626 10.43C2.51087 10.6929 2.66618 10.962 2.97681 11.5C3.28744 12.038 3.44276 12.3071 3.65316 12.4685C3.93371 12.6837 4.28828 12.7787 4.63888 12.7326C4.79892 12.7115 4.9612 12.6457 5.18502 12.5275C5.51397 12.3536 5.90736 12.3467 6.22959 12.5327C6.55182 12.7187 6.7425 13.0629 6.7564 13.4347C6.76586 13.6877 6.79004 13.8611 6.85181 14.0103C6.98714 14.3369 7.2467 14.5965 7.57339 14.7319C7.81846 14.8333 8.12906 14.8333 8.75032 14.8333C9.37159 14.8333 9.68219 14.8333 9.92726 14.7319C10.2539 14.5965 10.5135 14.3369 10.6488 14.0103C10.7106 13.8611 10.7348 13.6877 10.7443 13.4347C10.7581 13.0629 10.9488 12.7187 11.271 12.5327C11.5932 12.3466 11.9866 12.3536 12.3156 12.5275C12.5394 12.6457 12.7017 12.7115 12.8617 12.7325C13.2123 12.7787 13.5669 12.6837 13.8474 12.4685C14.0578 12.307 14.2131 12.038 14.5237 11.4999C14.8344 10.9619 14.9897 10.6929 15.0243 10.43C15.0705 10.0794 14.9755 9.7248 14.7602 9.44427C14.6619 9.3162 14.5238 9.20853 14.3095 9.07387C13.9945 8.87593 13.7917 8.53867 13.7917 8.1666C13.7917 7.79453 13.9945 7.4574 14.3095 7.25947C14.5239 7.12473 14.662 7.01713 14.7603 6.889C14.9755 6.60849 15.0705 6.25391 15.0244 5.90331C14.9898 5.64037 14.8345 5.37135 14.5238 4.83333C14.2132 4.29531 14.0579 4.0263 13.8475 3.86485C13.5669 3.64957 13.2123 3.55457 12.8617 3.60073C12.7017 3.62179 12.5395 3.68757 12.3156 3.80587C11.9867 3.97973 11.5933 3.98668 11.2711 3.80064C10.9488 3.61461 10.7581 3.27044 10.7443 2.89863C10.7348 2.64565 10.7106 2.47222 10.6488 2.32309C10.5135 1.99639 10.2539 1.73682 9.92726 1.60149Z",
|
|
@@ -41484,7 +41573,7 @@ var ProfileTitleSection = ({
|
|
|
41484
41573
|
() => setIsDisconnectExpanded(false),
|
|
41485
41574
|
[]
|
|
41486
41575
|
);
|
|
41487
|
-
return /* @__PURE__ */
|
|
41576
|
+
return /* @__PURE__ */ React250.createElement(
|
|
41488
41577
|
Box,
|
|
41489
41578
|
{
|
|
41490
41579
|
display: "flex",
|
|
@@ -41493,7 +41582,7 @@ var ProfileTitleSection = ({
|
|
|
41493
41582
|
width: "full",
|
|
41494
41583
|
minHeight: "28"
|
|
41495
41584
|
},
|
|
41496
|
-
/* @__PURE__ */
|
|
41585
|
+
/* @__PURE__ */ React250.createElement(
|
|
41497
41586
|
Box,
|
|
41498
41587
|
{
|
|
41499
41588
|
display: "flex",
|
|
@@ -41502,7 +41591,7 @@ var ProfileTitleSection = ({
|
|
|
41502
41591
|
gap: "8",
|
|
41503
41592
|
className: animateOut ? animateTitleOutClass : animateTitleInClass
|
|
41504
41593
|
},
|
|
41505
|
-
account.address && /* @__PURE__ */
|
|
41594
|
+
account.address && /* @__PURE__ */ React250.createElement(
|
|
41506
41595
|
Avatar,
|
|
41507
41596
|
{
|
|
41508
41597
|
address: account.address,
|
|
@@ -41511,21 +41600,21 @@ var ProfileTitleSection = ({
|
|
|
41511
41600
|
size: 20
|
|
41512
41601
|
}
|
|
41513
41602
|
),
|
|
41514
|
-
/* @__PURE__ */
|
|
41603
|
+
/* @__PURE__ */ React250.createElement(Text, { color: "primaryText", size: "13", weight: "medium" }, userInfo.nameTruncated)
|
|
41515
41604
|
),
|
|
41516
|
-
/* @__PURE__ */
|
|
41605
|
+
/* @__PURE__ */ React250.createElement(Box, { display: "flex", alignItems: "center", flexDirection: "row" }, !isDisconnectExpanded && /* @__PURE__ */ React250.createElement(
|
|
41517
41606
|
FunIconButton,
|
|
41518
41607
|
{
|
|
41519
|
-
icon: /* @__PURE__ */
|
|
41608
|
+
icon: /* @__PURE__ */ React250.createElement(SettingsIcon, { size: 17 }),
|
|
41520
41609
|
onClick: () => onChangeView(1 /* SETTINGS */),
|
|
41521
41610
|
paddingX: "4",
|
|
41522
41611
|
paddingY: "4"
|
|
41523
41612
|
}
|
|
41524
|
-
), /* @__PURE__ */
|
|
41613
|
+
), /* @__PURE__ */ React250.createElement(FunClickOutside, { onClick: collapseDisconnect }, /* @__PURE__ */ React250.createElement(
|
|
41525
41614
|
FunIconButton,
|
|
41526
41615
|
{
|
|
41527
41616
|
size: "28",
|
|
41528
|
-
icon: /* @__PURE__ */
|
|
41617
|
+
icon: /* @__PURE__ */ React250.createElement(LogoutIcon, { size: 15 }),
|
|
41529
41618
|
paddingX: isDisconnectExpanded ? "6" : void 0,
|
|
41530
41619
|
"aria-label": t("profile.disconnect"),
|
|
41531
41620
|
onClick: isDisconnectExpanded ? onLogout : () => setIsDisconnectExpanded(true),
|
|
@@ -41533,12 +41622,12 @@ var ProfileTitleSection = ({
|
|
|
41533
41622
|
onMouseLeave: collapseDisconnect,
|
|
41534
41623
|
onBlur: collapseDisconnect
|
|
41535
41624
|
},
|
|
41536
|
-
isDisconnectExpanded && /* @__PURE__ */
|
|
41537
|
-
)), !isDisconnectExpanded && /* @__PURE__ */
|
|
41625
|
+
isDisconnectExpanded && /* @__PURE__ */ React250.createElement(Text, { size: "10", color: "secondaryText", weight: "medium" }, t("profile.disconnect"))
|
|
41626
|
+
)), !isDisconnectExpanded && /* @__PURE__ */ React250.createElement(
|
|
41538
41627
|
FunIconButton,
|
|
41539
41628
|
{
|
|
41540
41629
|
size: "28",
|
|
41541
|
-
icon: /* @__PURE__ */
|
|
41630
|
+
icon: /* @__PURE__ */ React250.createElement(CloseIcon, { size: 12 }),
|
|
41542
41631
|
onClick: onClose
|
|
41543
41632
|
}
|
|
41544
41633
|
))
|
|
@@ -41554,10 +41643,10 @@ var SelectedHomeTab = /* @__PURE__ */ ((SelectedHomeTab2) => {
|
|
|
41554
41643
|
var EmptyTabAlert = () => {
|
|
41555
41644
|
const { t } = useFunkitTranslation();
|
|
41556
41645
|
const { appName } = useFunkitConfig();
|
|
41557
|
-
return /* @__PURE__ */
|
|
41646
|
+
return /* @__PURE__ */ React251.createElement(Box, { paddingX: PROFILE_SIDE_PADDING }, /* @__PURE__ */ React251.createElement(
|
|
41558
41647
|
FunAlert,
|
|
41559
41648
|
{
|
|
41560
|
-
icon: /* @__PURE__ */
|
|
41649
|
+
icon: /* @__PURE__ */ React251.createElement(GreenRoundCheckmark, null),
|
|
41561
41650
|
description: t("profile.executeFirstCheckout", { appName })
|
|
41562
41651
|
}
|
|
41563
41652
|
));
|
|
@@ -41580,13 +41669,13 @@ function Home({
|
|
|
41580
41669
|
const { checkoutHistoryList, isCheckoutHistoryInited } = useCheckoutHistoryContext();
|
|
41581
41670
|
const { returnViewPresets } = useActivityTraversal();
|
|
41582
41671
|
const { animation: tabAnimation, navigateTo } = useAnimatedNavigation(setSelectedView);
|
|
41583
|
-
|
|
41672
|
+
useEffect64(() => {
|
|
41584
41673
|
const virtuosoDiv = virtuosoParentRef.current?.firstChild;
|
|
41585
41674
|
virtuosoDiv?.classList.add(animateVirtuosoInClass);
|
|
41586
41675
|
}, []);
|
|
41587
41676
|
const AssetsList = useMemo57(() => {
|
|
41588
41677
|
if (walletAssets && !Object.keys(walletAssets).length) {
|
|
41589
|
-
return /* @__PURE__ */
|
|
41678
|
+
return /* @__PURE__ */ React251.createElement(EmptyTabAlert, null);
|
|
41590
41679
|
}
|
|
41591
41680
|
const assets = walletAssets ? Object.values(walletAssets).sort(
|
|
41592
41681
|
(a, b) => (b.totalUsdValue ?? 0) - (a.totalUsdValue ?? 0)
|
|
@@ -41594,7 +41683,7 @@ function Home({
|
|
|
41594
41683
|
const itemHeight = HOME_TOKEN_BALANCE_DISPLAY_ROW_HEIGHT;
|
|
41595
41684
|
const itemMargin = 8;
|
|
41596
41685
|
const height = assets.length * (itemHeight + itemMargin) - itemMargin;
|
|
41597
|
-
return /* @__PURE__ */
|
|
41686
|
+
return /* @__PURE__ */ React251.createElement(Box, { ref: virtuosoParentRef }, /* @__PURE__ */ React251.createElement(
|
|
41598
41687
|
Virtuoso,
|
|
41599
41688
|
{
|
|
41600
41689
|
className: clsx22(hideScrollBar, scrollContent),
|
|
@@ -41606,14 +41695,14 @@ function Home({
|
|
|
41606
41695
|
itemContent: (index, asset) => (
|
|
41607
41696
|
// gaps/margins between items must be part of the measured content
|
|
41608
41697
|
// thus we wrap items in padded divs (margin is not measured)
|
|
41609
|
-
/* @__PURE__ */
|
|
41698
|
+
/* @__PURE__ */ React251.createElement("div", { style: { paddingTop: index === 0 ? 0 : itemMargin } }, asset ? /* @__PURE__ */ React251.createElement(HomeTokenBalanceDisplayRow, { asset }) : /* @__PURE__ */ React251.createElement(HomeTokenBalanceDisplayRowSkeleton, null))
|
|
41610
41699
|
)
|
|
41611
41700
|
}
|
|
41612
41701
|
));
|
|
41613
41702
|
}, [walletAssets]);
|
|
41614
41703
|
const CheckoutsList = useMemo57(() => {
|
|
41615
41704
|
if (checkoutHistoryList.length === 0 && isCheckoutHistoryInited) {
|
|
41616
|
-
return /* @__PURE__ */
|
|
41705
|
+
return /* @__PURE__ */ React251.createElement(EmptyTabAlert, null);
|
|
41617
41706
|
}
|
|
41618
41707
|
const processingCheckouts = checkoutHistoryList.filter(
|
|
41619
41708
|
(checkoutHistoryItem) => IN_PROGRESS_CHECKOUT_STATES2.includes(checkoutHistoryItem.state)
|
|
@@ -41675,7 +41764,7 @@ function Home({
|
|
|
41675
41764
|
const groupHeight = 15;
|
|
41676
41765
|
const groupMargin = 24;
|
|
41677
41766
|
const height = groups.length * (groupHeight + groupMargin) + (items.length - groups.length) * (itemHeight + itemMargin) - groupMargin;
|
|
41678
|
-
return /* @__PURE__ */
|
|
41767
|
+
return /* @__PURE__ */ React251.createElement(Box, { ref: virtuosoParentRef }, /* @__PURE__ */ React251.createElement(
|
|
41679
41768
|
Virtuoso,
|
|
41680
41769
|
{
|
|
41681
41770
|
className: clsx22(hideScrollBar, scrollContent),
|
|
@@ -41689,13 +41778,13 @@ function Home({
|
|
|
41689
41778
|
itemContent: (index, data) => (
|
|
41690
41779
|
// gaps/margins between items must be part of the measured content
|
|
41691
41780
|
// thus we wrap items in padded divs (margin is not measured)
|
|
41692
|
-
"group" in data ? /* @__PURE__ */
|
|
41781
|
+
"group" in data ? /* @__PURE__ */ React251.createElement("div", { style: { paddingTop: index === 0 ? 0 : groupMargin } }, /* @__PURE__ */ React251.createElement(Box, { paddingX: PROFILE_SIDE_PADDING }, /* @__PURE__ */ React251.createElement(Text, { size: "10", color: "secondaryText" }, data.group))) : /* @__PURE__ */ React251.createElement("div", { style: { paddingTop: index === 0 ? 0 : itemMargin } }, data.checkout ? /* @__PURE__ */ React251.createElement(
|
|
41693
41782
|
HomeCheckoutDisplayRow,
|
|
41694
41783
|
{
|
|
41695
41784
|
checkoutHistoryItem: data.checkout,
|
|
41696
41785
|
onSelect: handleCheckoutSelect
|
|
41697
41786
|
}
|
|
41698
|
-
) : /* @__PURE__ */
|
|
41787
|
+
) : /* @__PURE__ */ React251.createElement(HomeCheckoutDisplayRowSkeleton, null))
|
|
41699
41788
|
)
|
|
41700
41789
|
}
|
|
41701
41790
|
));
|
|
@@ -41710,7 +41799,7 @@ function Home({
|
|
|
41710
41799
|
{ tab: "assets" /* ASSETS */, label: t("profile.tokensTab") },
|
|
41711
41800
|
{ tab: "checkouts" /* CHECKOUTS */, label: t("profile.checkoutsTab") }
|
|
41712
41801
|
];
|
|
41713
|
-
return /* @__PURE__ */
|
|
41802
|
+
return /* @__PURE__ */ React251.createElement(Box, { paddingTop: "14" }, /* @__PURE__ */ React251.createElement(
|
|
41714
41803
|
ProfileTitleSection,
|
|
41715
41804
|
{
|
|
41716
41805
|
animateOut: animation.isOut,
|
|
@@ -41720,7 +41809,7 @@ function Home({
|
|
|
41720
41809
|
onLogout: handleLogout,
|
|
41721
41810
|
onClose
|
|
41722
41811
|
}
|
|
41723
|
-
), /* @__PURE__ */
|
|
41812
|
+
), /* @__PURE__ */ React251.createElement(
|
|
41724
41813
|
Box,
|
|
41725
41814
|
{
|
|
41726
41815
|
display: "flex",
|
|
@@ -41730,8 +41819,8 @@ function Home({
|
|
|
41730
41819
|
gap: "24",
|
|
41731
41820
|
className: getContentAnimation(animation, true)
|
|
41732
41821
|
},
|
|
41733
|
-
/* @__PURE__ */
|
|
41734
|
-
/* @__PURE__ */
|
|
41822
|
+
/* @__PURE__ */ React251.createElement(BalanceSection, { totalBalance: totalWalletAssetsUsd }),
|
|
41823
|
+
/* @__PURE__ */ React251.createElement(
|
|
41735
41824
|
Box,
|
|
41736
41825
|
{
|
|
41737
41826
|
display: "flex",
|
|
@@ -41742,7 +41831,7 @@ function Home({
|
|
|
41742
41831
|
marginLeft: `-${Number.parseInt(PROFILE_SIDE_PADDING)}px`
|
|
41743
41832
|
}
|
|
41744
41833
|
},
|
|
41745
|
-
/* @__PURE__ */
|
|
41834
|
+
/* @__PURE__ */ React251.createElement(
|
|
41746
41835
|
Box,
|
|
41747
41836
|
{
|
|
41748
41837
|
display: "flex",
|
|
@@ -41750,7 +41839,7 @@ function Home({
|
|
|
41750
41839
|
gap: "24",
|
|
41751
41840
|
paddingX: PROFILE_SIDE_PADDING
|
|
41752
41841
|
},
|
|
41753
|
-
tabs2.map(({ tab, label }) => /* @__PURE__ */
|
|
41842
|
+
tabs2.map(({ tab, label }) => /* @__PURE__ */ React251.createElement(
|
|
41754
41843
|
Box,
|
|
41755
41844
|
{
|
|
41756
41845
|
key: label,
|
|
@@ -41759,7 +41848,7 @@ function Home({
|
|
|
41759
41848
|
tabIndex: 0,
|
|
41760
41849
|
className: tabLabelStyles
|
|
41761
41850
|
},
|
|
41762
|
-
/* @__PURE__ */
|
|
41851
|
+
/* @__PURE__ */ React251.createElement(
|
|
41763
41852
|
Text,
|
|
41764
41853
|
{
|
|
41765
41854
|
weight: "bold",
|
|
@@ -41770,21 +41859,21 @@ function Home({
|
|
|
41770
41859
|
)
|
|
41771
41860
|
))
|
|
41772
41861
|
),
|
|
41773
|
-
/* @__PURE__ */
|
|
41862
|
+
/* @__PURE__ */ React251.createElement(Box, { className: getContentAnimation(tabAnimation, false) }, selectedView === "assets" /* ASSETS */ && AssetsList, selectedView === "checkouts" /* CHECKOUTS */ && CheckoutsList)
|
|
41774
41863
|
)
|
|
41775
41864
|
));
|
|
41776
41865
|
}
|
|
41777
41866
|
|
|
41778
41867
|
// src/modals/ProfileDetails/FunProfileViews/Settings/Settings.tsx
|
|
41779
41868
|
import { formatAddress as formatAddress6 } from "@funkit/utils";
|
|
41780
|
-
import
|
|
41869
|
+
import React254 from "react";
|
|
41781
41870
|
|
|
41782
41871
|
// src/components/CopyAddress/OldCopyAddressButton.tsx
|
|
41783
|
-
import
|
|
41872
|
+
import React253 from "react";
|
|
41784
41873
|
|
|
41785
41874
|
// src/components/Icons/CopyDoublePaperSheetIcon.tsx
|
|
41786
|
-
import
|
|
41787
|
-
var CopyDoublePaperSheetIcon = () => /* @__PURE__ */
|
|
41875
|
+
import React252 from "react";
|
|
41876
|
+
var CopyDoublePaperSheetIcon = () => /* @__PURE__ */ React252.createElement(
|
|
41788
41877
|
"svg",
|
|
41789
41878
|
{
|
|
41790
41879
|
width: "14",
|
|
@@ -41793,7 +41882,7 @@ var CopyDoublePaperSheetIcon = () => /* @__PURE__ */ React251.createElement(
|
|
|
41793
41882
|
fill: "none",
|
|
41794
41883
|
xmlns: "http://www.w3.org/2000/svg"
|
|
41795
41884
|
},
|
|
41796
|
-
/* @__PURE__ */
|
|
41885
|
+
/* @__PURE__ */ React252.createElement(
|
|
41797
41886
|
"path",
|
|
41798
41887
|
{
|
|
41799
41888
|
d: "M3.76074 3.97363V2.4248C3.76074 1.73926 3.93424 1.22087 4.28125 0.869629C4.62826 0.51416 5.14242 0.336426 5.82373 0.336426H8.21045C8.57861 0.336426 8.90658 0.389323 9.19434 0.495117C9.48633 0.59668 9.75081 0.770182 9.98779 1.01562L13.1489 4.23389C13.3986 4.49202 13.5742 4.76709 13.6758 5.05908C13.7773 5.34684 13.8281 5.7002 13.8281 6.11914V11.1465C13.8281 11.832 13.6525 12.3504 13.3013 12.7017C12.9543 13.0529 12.4422 13.2285 11.7651 13.2285H10.4639V11.9844H11.6509C11.9598 11.9844 12.1904 11.9061 12.3428 11.7495C12.4993 11.5887 12.5776 11.3623 12.5776 11.0703V5.81445H9.78467C9.39111 5.81445 9.09277 5.71501 8.88965 5.51611C8.68652 5.31299 8.58496 5.01465 8.58496 4.62109V1.58691H5.92529C5.62061 1.58691 5.38997 1.6652 5.2334 1.82178C5.08105 1.97835 5.00488 2.20475 5.00488 2.50098V3.97363H3.76074ZM9.62598 4.4624C9.62598 4.57243 9.64925 4.65283 9.6958 4.70361C9.74658 4.75016 9.82487 4.77344 9.93066 4.77344H12.2539L9.62598 2.10742V4.4624ZM0.618652 14.4028V5.68115C0.618652 4.99561 0.792155 4.47721 1.13916 4.12598C1.48617 3.77051 2.00033 3.59277 2.68164 3.59277H4.89062C5.27572 3.59277 5.5931 3.63509 5.84277 3.71973C6.09668 3.80013 6.35059 3.97152 6.60449 4.23389L10.0449 7.7251C10.2227 7.90706 10.3581 8.08057 10.4512 8.24561C10.5443 8.41064 10.6056 8.59473 10.6353 8.79785C10.6691 8.99674 10.686 9.23796 10.686 9.52148V14.4028C10.686 15.0884 10.5125 15.6068 10.1655 15.958C9.81852 16.3092 9.30436 16.4849 8.62305 16.4849H2.68164C2.00033 16.4849 1.48617 16.3092 1.13916 15.958C0.792155 15.611 0.618652 15.0926 0.618652 14.4028ZM1.86914 14.3267C1.86914 14.6229 1.94531 14.8493 2.09766 15.0059C2.25 15.1624 2.47852 15.2407 2.7832 15.2407H8.51514C8.81982 15.2407 9.04834 15.1624 9.20068 15.0059C9.35726 14.8493 9.43555 14.6229 9.43555 14.3267V9.66748H6.08398C5.63542 9.66748 5.29899 9.55745 5.07471 9.3374C4.85042 9.11312 4.73828 8.77246 4.73828 8.31543V4.84326H2.78955C2.48063 4.84326 2.25 4.92155 2.09766 5.07812C1.94531 5.2347 1.86914 5.45898 1.86914 5.75098V14.3267ZM6.21094 8.56934H9.26416L5.83643 5.08447V8.19482C5.83643 8.32601 5.86605 8.42122 5.92529 8.48047C5.98454 8.53971 6.07975 8.56934 6.21094 8.56934Z",
|
|
@@ -41807,11 +41896,11 @@ function OldCopyAddressButton({
|
|
|
41807
41896
|
address
|
|
41808
41897
|
}) {
|
|
41809
41898
|
const { isCopied, handleCopy } = useCopyToClipboard(address);
|
|
41810
|
-
return /* @__PURE__ */
|
|
41899
|
+
return /* @__PURE__ */ React253.createElement(
|
|
41811
41900
|
FunIconButton,
|
|
41812
41901
|
{
|
|
41813
41902
|
size: "36",
|
|
41814
|
-
icon: /* @__PURE__ */
|
|
41903
|
+
icon: /* @__PURE__ */ React253.createElement(Box, { display: "flex", alignItems: "center", color: "primaryText" }, isCopied ? /* @__PURE__ */ React253.createElement(CheckIcon, null) : /* @__PURE__ */ React253.createElement(CopyDoublePaperSheetIcon, null)),
|
|
41815
41904
|
onClick: handleCopy
|
|
41816
41905
|
}
|
|
41817
41906
|
);
|
|
@@ -41823,7 +41912,7 @@ function LineItem({
|
|
|
41823
41912
|
value,
|
|
41824
41913
|
valueSuffix = null
|
|
41825
41914
|
}) {
|
|
41826
|
-
return /* @__PURE__ */
|
|
41915
|
+
return /* @__PURE__ */ React254.createElement(
|
|
41827
41916
|
Box,
|
|
41828
41917
|
{
|
|
41829
41918
|
display: "flex",
|
|
@@ -41832,26 +41921,26 @@ function LineItem({
|
|
|
41832
41921
|
alignItems: "center",
|
|
41833
41922
|
justifyContent: "space-between"
|
|
41834
41923
|
},
|
|
41835
|
-
/* @__PURE__ */
|
|
41836
|
-
/* @__PURE__ */
|
|
41924
|
+
/* @__PURE__ */ React254.createElement(Text, { color: "tertiaryText", size: "13", weight: "medium" }, label),
|
|
41925
|
+
/* @__PURE__ */ React254.createElement(Box, { display: "flex", flexDirection: "row", gap: "1" }, /* @__PURE__ */ React254.createElement(Box, { display: "flex", alignItems: "center" }, /* @__PURE__ */ React254.createElement(Text, { color: "primaryText", size: "13", weight: "medium" }, value)), valueSuffix ? /* @__PURE__ */ React254.createElement(Box, { display: "flex", alignItems: "center" }, valueSuffix) : null)
|
|
41837
41926
|
);
|
|
41838
41927
|
}
|
|
41839
41928
|
function Settings() {
|
|
41840
41929
|
const { t } = useFunkitTranslation();
|
|
41841
41930
|
const { walletAddress, loginType, userInfo } = useGeneralWallet();
|
|
41842
41931
|
const isWeb3Login = loginType === "web3" /* Web3 */;
|
|
41843
|
-
return /* @__PURE__ */
|
|
41932
|
+
return /* @__PURE__ */ React254.createElement(Box, { display: "flex", flexDirection: "column", gap: "24" }, /* @__PURE__ */ React254.createElement(
|
|
41844
41933
|
LineItem,
|
|
41845
41934
|
{
|
|
41846
41935
|
label: isWeb3Login ? "Wallet" : userInfo.typeLabel,
|
|
41847
41936
|
value: isWeb3Login ? userInfo.typeLabel : userInfo.name
|
|
41848
41937
|
}
|
|
41849
|
-
), /* @__PURE__ */
|
|
41938
|
+
), /* @__PURE__ */ React254.createElement(
|
|
41850
41939
|
LineItem,
|
|
41851
41940
|
{
|
|
41852
41941
|
label: t("profile.address"),
|
|
41853
41942
|
value: formatAddress6(walletAddress),
|
|
41854
|
-
valueSuffix: /* @__PURE__ */
|
|
41943
|
+
valueSuffix: /* @__PURE__ */ React254.createElement(OldCopyAddressButton, { address: walletAddress })
|
|
41855
41944
|
}
|
|
41856
41945
|
));
|
|
41857
41946
|
}
|
|
@@ -41931,11 +42020,11 @@ function ProfileDetails({ onClose, defaultTab }) {
|
|
|
41931
42020
|
isActiveCheckout: false,
|
|
41932
42021
|
isCheckoutDetailView,
|
|
41933
42022
|
paddingTop: PADDING_TOP,
|
|
41934
|
-
topbar: dialogTitleMap[view] && /* @__PURE__ */
|
|
42023
|
+
topbar: dialogTitleMap[view] && /* @__PURE__ */ React255.createElement(Dialog.Title, { onClose, ...dialogTitleMap[view] }),
|
|
41935
42024
|
withTopDivider: withDivider,
|
|
41936
42025
|
scrollableContent: PROFILE_DETAILS_DIALOG_CONTENT_ID
|
|
41937
42026
|
});
|
|
41938
|
-
return /* @__PURE__ */
|
|
42027
|
+
return /* @__PURE__ */ React255.createElement(FunCheckoutModalHeightAnimationWrapper, null, topbar, /* @__PURE__ */ React255.createElement(
|
|
41939
42028
|
Dialog.Content,
|
|
41940
42029
|
{
|
|
41941
42030
|
display: "flex",
|
|
@@ -41952,7 +42041,7 @@ function ProfileDetails({ onClose, defaultTab }) {
|
|
|
41952
42041
|
withTopDivider,
|
|
41953
42042
|
id: PROFILE_DETAILS_DIALOG_CONTENT_ID
|
|
41954
42043
|
},
|
|
41955
|
-
view === 0 /* HOME */ ? /* @__PURE__ */
|
|
42044
|
+
view === 0 /* HOME */ ? /* @__PURE__ */ React255.createElement(
|
|
41956
42045
|
Home,
|
|
41957
42046
|
{
|
|
41958
42047
|
animation,
|
|
@@ -41961,7 +42050,7 @@ function ProfileDetails({ onClose, defaultTab }) {
|
|
|
41961
42050
|
onSelectActivity: onSelectActivityWrapper,
|
|
41962
42051
|
defaultHomeTab: selectedHomeTab
|
|
41963
42052
|
}
|
|
41964
|
-
) : view === 1 /* SETTINGS */ ? /* @__PURE__ */
|
|
42053
|
+
) : view === 1 /* SETTINGS */ ? /* @__PURE__ */ React255.createElement(Settings, null) : view === 3 /* SINGLE_ACTIVITY */ ? /* @__PURE__ */ React255.createElement(
|
|
41965
42054
|
FunCheckoutHistoryContent,
|
|
41966
42055
|
{
|
|
41967
42056
|
depositAddress: selectedPurchaseId || "0x",
|
|
@@ -41973,7 +42062,7 @@ function ProfileDetails({ onClose, defaultTab }) {
|
|
|
41973
42062
|
bottomBarId: HISTORY_BOTTOM_BAR_ID
|
|
41974
42063
|
}
|
|
41975
42064
|
) : null
|
|
41976
|
-
), /* @__PURE__ */
|
|
42065
|
+
), /* @__PURE__ */ React255.createElement(Dialog.BottomSection, { id: HISTORY_BOTTOM_BAR_ID }));
|
|
41977
42066
|
}
|
|
41978
42067
|
|
|
41979
42068
|
// src/modals/AccountModal/AccountModal.tsx
|
|
@@ -41983,7 +42072,7 @@ function AccountModal({ onClose, open, defaultTab }) {
|
|
|
41983
42072
|
if (!walletAddress) {
|
|
41984
42073
|
return null;
|
|
41985
42074
|
}
|
|
41986
|
-
return /* @__PURE__ */
|
|
42075
|
+
return /* @__PURE__ */ React256.createElement(
|
|
41987
42076
|
Dialog,
|
|
41988
42077
|
{
|
|
41989
42078
|
onClose,
|
|
@@ -41991,17 +42080,17 @@ function AccountModal({ onClose, open, defaultTab }) {
|
|
|
41991
42080
|
titleId: TITLE_ID,
|
|
41992
42081
|
isSmartCloseable: true
|
|
41993
42082
|
},
|
|
41994
|
-
/* @__PURE__ */
|
|
42083
|
+
/* @__PURE__ */ React256.createElement(ActivityTraversalProvider, null, /* @__PURE__ */ React256.createElement(ProfileDetails, { onClose, defaultTab }))
|
|
41995
42084
|
);
|
|
41996
42085
|
}
|
|
41997
42086
|
|
|
41998
42087
|
// src/modals/ChainModal/ChainModal.tsx
|
|
41999
42088
|
import { isMobile as isMobile12 } from "@funkit/utils";
|
|
42000
|
-
import
|
|
42089
|
+
import React261 from "react";
|
|
42001
42090
|
|
|
42002
42091
|
// src/components/Icons/DisconnectSqIcon.tsx
|
|
42003
|
-
import
|
|
42004
|
-
var DisconnectSqIcon = ({ size }) => /* @__PURE__ */
|
|
42092
|
+
import React257 from "react";
|
|
42093
|
+
var DisconnectSqIcon = ({ size }) => /* @__PURE__ */ React257.createElement(
|
|
42005
42094
|
"svg",
|
|
42006
42095
|
{
|
|
42007
42096
|
fill: "none",
|
|
@@ -42010,7 +42099,7 @@ var DisconnectSqIcon = ({ size }) => /* @__PURE__ */ React256.createElement(
|
|
|
42010
42099
|
width: size,
|
|
42011
42100
|
xmlns: "http://www.w3.org/2000/svg"
|
|
42012
42101
|
},
|
|
42013
|
-
/* @__PURE__ */
|
|
42102
|
+
/* @__PURE__ */ React257.createElement(
|
|
42014
42103
|
"path",
|
|
42015
42104
|
{
|
|
42016
42105
|
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",
|
|
@@ -42021,13 +42110,13 @@ var DisconnectSqIcon = ({ size }) => /* @__PURE__ */ React256.createElement(
|
|
|
42021
42110
|
|
|
42022
42111
|
// src/components/MenuButton/MenuButton.tsx
|
|
42023
42112
|
import { isMobile as isMobile10 } from "@funkit/utils";
|
|
42024
|
-
import
|
|
42113
|
+
import React258 from "react";
|
|
42025
42114
|
|
|
42026
42115
|
// src/components/MenuButton/MenuButton.css.ts
|
|
42027
42116
|
var unsetBackgroundOnHover = "_10pw5x60";
|
|
42028
42117
|
|
|
42029
42118
|
// src/components/MenuButton/MenuButton.tsx
|
|
42030
|
-
var MenuButton =
|
|
42119
|
+
var MenuButton = React258.forwardRef(
|
|
42031
42120
|
({
|
|
42032
42121
|
children,
|
|
42033
42122
|
currentlySelected = false,
|
|
@@ -42036,7 +42125,7 @@ var MenuButton = React257.forwardRef(
|
|
|
42036
42125
|
...urlProps
|
|
42037
42126
|
}, ref) => {
|
|
42038
42127
|
const mobile = isMobile10();
|
|
42039
|
-
return /* @__PURE__ */
|
|
42128
|
+
return /* @__PURE__ */ React258.createElement(
|
|
42040
42129
|
Box,
|
|
42041
42130
|
{
|
|
42042
42131
|
as: "button",
|
|
@@ -42048,7 +42137,7 @@ var MenuButton = React257.forwardRef(
|
|
|
42048
42137
|
testId,
|
|
42049
42138
|
type: "button"
|
|
42050
42139
|
},
|
|
42051
|
-
/* @__PURE__ */
|
|
42140
|
+
/* @__PURE__ */ React258.createElement(
|
|
42052
42141
|
Box,
|
|
42053
42142
|
{
|
|
42054
42143
|
borderRadius: "menuButton",
|
|
@@ -42082,12 +42171,12 @@ MenuButton.displayName = "MenuButton";
|
|
|
42082
42171
|
|
|
42083
42172
|
// src/modals/ChainModal/Chain.tsx
|
|
42084
42173
|
import { isMobile as isMobile11 } from "@funkit/utils";
|
|
42085
|
-
import
|
|
42174
|
+
import React260, { Fragment as Fragment2 } from "react";
|
|
42086
42175
|
|
|
42087
42176
|
// src/components/FunDot/FunDot.tsx
|
|
42088
|
-
import
|
|
42177
|
+
import React259 from "react";
|
|
42089
42178
|
function FunDot() {
|
|
42090
|
-
return /* @__PURE__ */
|
|
42179
|
+
return /* @__PURE__ */ React259.createElement(
|
|
42091
42180
|
Box,
|
|
42092
42181
|
{
|
|
42093
42182
|
background: "connectionIndicator",
|
|
@@ -42115,7 +42204,7 @@ function ChainLineItem({
|
|
|
42115
42204
|
if (!chainItem) {
|
|
42116
42205
|
return null;
|
|
42117
42206
|
}
|
|
42118
|
-
return /* @__PURE__ */
|
|
42207
|
+
return /* @__PURE__ */ React260.createElement(
|
|
42119
42208
|
Box,
|
|
42120
42209
|
{
|
|
42121
42210
|
alignItems: "center",
|
|
@@ -42124,7 +42213,7 @@ function ChainLineItem({
|
|
|
42124
42213
|
gap,
|
|
42125
42214
|
height: chainIconSize
|
|
42126
42215
|
},
|
|
42127
|
-
/* @__PURE__ */
|
|
42216
|
+
/* @__PURE__ */ React260.createElement(Box, { height: "full" }, /* @__PURE__ */ React260.createElement(
|
|
42128
42217
|
AsyncImage,
|
|
42129
42218
|
{
|
|
42130
42219
|
alt: chainItem.name,
|
|
@@ -42136,7 +42225,7 @@ function ChainLineItem({
|
|
|
42136
42225
|
testId: `chain-option-${chainId}-icon`
|
|
42137
42226
|
}
|
|
42138
42227
|
)),
|
|
42139
|
-
!hideChainName ? /* @__PURE__ */
|
|
42228
|
+
!hideChainName ? /* @__PURE__ */ React260.createElement("div", null, chainItem.name) : null
|
|
42140
42229
|
);
|
|
42141
42230
|
}
|
|
42142
42231
|
var Chain = ({
|
|
@@ -42151,14 +42240,14 @@ var Chain = ({
|
|
|
42151
42240
|
const mobile = isMobile11();
|
|
42152
42241
|
const funkitConnectChains = useFunkitConnectChains();
|
|
42153
42242
|
const isCurrentChain = currentChainId === chainId && !isLoading;
|
|
42154
|
-
return /* @__PURE__ */
|
|
42243
|
+
return /* @__PURE__ */ React260.createElement(Fragment2, null, /* @__PURE__ */ React260.createElement(
|
|
42155
42244
|
MenuButton,
|
|
42156
42245
|
{
|
|
42157
42246
|
currentlySelected: isCurrentChain,
|
|
42158
42247
|
onClick: isCurrentChain ? void 0 : () => switchChain({ chainId }),
|
|
42159
42248
|
testId: `chain-option-${chainId}`
|
|
42160
42249
|
},
|
|
42161
|
-
/* @__PURE__ */
|
|
42250
|
+
/* @__PURE__ */ React260.createElement(Box, { fontFamily: "body", fontSize: "16", fontWeight: "bold" }, /* @__PURE__ */ React260.createElement(
|
|
42162
42251
|
Box,
|
|
42163
42252
|
{
|
|
42164
42253
|
alignItems: "center",
|
|
@@ -42166,8 +42255,8 @@ var Chain = ({
|
|
|
42166
42255
|
flexDirection: "row",
|
|
42167
42256
|
justifyContent: "space-between"
|
|
42168
42257
|
},
|
|
42169
|
-
/* @__PURE__ */
|
|
42170
|
-
isCurrentChain && /* @__PURE__ */
|
|
42258
|
+
/* @__PURE__ */ React260.createElement(ChainLineItem, { chainId, chainIconSize }),
|
|
42259
|
+
isCurrentChain && /* @__PURE__ */ React260.createElement(
|
|
42171
42260
|
Box,
|
|
42172
42261
|
{
|
|
42173
42262
|
alignItems: "center",
|
|
@@ -42175,10 +42264,10 @@ var Chain = ({
|
|
|
42175
42264
|
flexDirection: "row",
|
|
42176
42265
|
marginRight: "6"
|
|
42177
42266
|
},
|
|
42178
|
-
/* @__PURE__ */
|
|
42179
|
-
/* @__PURE__ */
|
|
42267
|
+
/* @__PURE__ */ React260.createElement(Text, { color: "accentColorForeground", size: "14", weight: "medium" }, t("common.connected")),
|
|
42268
|
+
/* @__PURE__ */ React260.createElement(FunDot, null)
|
|
42180
42269
|
),
|
|
42181
|
-
isLoading && /* @__PURE__ */
|
|
42270
|
+
isLoading && /* @__PURE__ */ React260.createElement(
|
|
42182
42271
|
Box,
|
|
42183
42272
|
{
|
|
42184
42273
|
alignItems: "center",
|
|
@@ -42186,8 +42275,8 @@ var Chain = ({
|
|
|
42186
42275
|
flexDirection: "row",
|
|
42187
42276
|
marginRight: "6"
|
|
42188
42277
|
},
|
|
42189
|
-
/* @__PURE__ */
|
|
42190
|
-
/* @__PURE__ */
|
|
42278
|
+
/* @__PURE__ */ React260.createElement(Text, { color: "primaryText", size: "14", weight: "medium" }, t("common.confirmInWallet")),
|
|
42279
|
+
/* @__PURE__ */ React260.createElement(
|
|
42191
42280
|
Box,
|
|
42192
42281
|
{
|
|
42193
42282
|
background: "standby",
|
|
@@ -42199,7 +42288,7 @@ var Chain = ({
|
|
|
42199
42288
|
)
|
|
42200
42289
|
)
|
|
42201
42290
|
))
|
|
42202
|
-
), mobile && idx < funkitConnectChains.length - 1 && /* @__PURE__ */
|
|
42291
|
+
), mobile && idx < funkitConnectChains.length - 1 && /* @__PURE__ */ React260.createElement(Box, { background: "generalBorderDim", height: "1", marginX: "8" }));
|
|
42203
42292
|
};
|
|
42204
42293
|
var Chain_default = Chain;
|
|
42205
42294
|
|
|
@@ -42224,7 +42313,7 @@ function ChainModal({ onClose, open }) {
|
|
|
42224
42313
|
if (!chainId) {
|
|
42225
42314
|
return null;
|
|
42226
42315
|
}
|
|
42227
|
-
return /* @__PURE__ */
|
|
42316
|
+
return /* @__PURE__ */ React261.createElement(
|
|
42228
42317
|
Dialog,
|
|
42229
42318
|
{
|
|
42230
42319
|
onClose,
|
|
@@ -42232,15 +42321,15 @@ function ChainModal({ onClose, open }) {
|
|
|
42232
42321
|
titleId,
|
|
42233
42322
|
isSmartCloseable: true
|
|
42234
42323
|
},
|
|
42235
|
-
/* @__PURE__ */
|
|
42324
|
+
/* @__PURE__ */ React261.createElement(Dialog.Content, { paddingTop: "18" }, /* @__PURE__ */ React261.createElement(Box, { display: "flex", flexDirection: "column", gap: "14" }, /* @__PURE__ */ React261.createElement(
|
|
42236
42325
|
Box,
|
|
42237
42326
|
{
|
|
42238
42327
|
display: "flex",
|
|
42239
42328
|
flexDirection: "row",
|
|
42240
42329
|
justifyContent: "space-between"
|
|
42241
42330
|
},
|
|
42242
|
-
mobile && /* @__PURE__ */
|
|
42243
|
-
/* @__PURE__ */
|
|
42331
|
+
mobile && /* @__PURE__ */ React261.createElement(Box, { width: "30" }),
|
|
42332
|
+
/* @__PURE__ */ React261.createElement(Box, { paddingBottom: "0", paddingLeft: "8", paddingTop: "4" }, /* @__PURE__ */ React261.createElement(
|
|
42244
42333
|
Text,
|
|
42245
42334
|
{
|
|
42246
42335
|
as: "h1",
|
|
@@ -42251,8 +42340,8 @@ function ChainModal({ onClose, open }) {
|
|
|
42251
42340
|
},
|
|
42252
42341
|
t("chainModal.switchNetworks")
|
|
42253
42342
|
)),
|
|
42254
|
-
/* @__PURE__ */
|
|
42255
|
-
), !isCurrentChainSupported && /* @__PURE__ */
|
|
42343
|
+
/* @__PURE__ */ React261.createElement(CloseButton, { onClose })
|
|
42344
|
+
), !isCurrentChainSupported && /* @__PURE__ */ React261.createElement(Box, { marginX: "8", textAlign: mobile ? "center" : "left" }, /* @__PURE__ */ React261.createElement(Text, { color: "tertiaryText", size: "14", weight: "medium" }, t("chainModal.wrongNetworkDetected"))), /* @__PURE__ */ React261.createElement(
|
|
42256
42345
|
Box,
|
|
42257
42346
|
{
|
|
42258
42347
|
className: mobile ? MobileScrollClassName : DesktopScrollClassName,
|
|
@@ -42263,7 +42352,7 @@ function ChainModal({ onClose, open }) {
|
|
|
42263
42352
|
paddingBottom: "16"
|
|
42264
42353
|
},
|
|
42265
42354
|
funkitConnectChains.map(({ id }, idx) => {
|
|
42266
|
-
return /* @__PURE__ */
|
|
42355
|
+
return /* @__PURE__ */ React261.createElement(
|
|
42267
42356
|
Chain_default,
|
|
42268
42357
|
{
|
|
42269
42358
|
key: id,
|
|
@@ -42276,13 +42365,13 @@ function ChainModal({ onClose, open }) {
|
|
|
42276
42365
|
}
|
|
42277
42366
|
);
|
|
42278
42367
|
}),
|
|
42279
|
-
!isCurrentChainSupported && /* @__PURE__ */
|
|
42368
|
+
!isCurrentChainSupported && /* @__PURE__ */ React261.createElement(React261.Fragment, null, /* @__PURE__ */ React261.createElement(Box, { background: "generalBorderDim", height: "1", marginX: "8" }), /* @__PURE__ */ React261.createElement(
|
|
42280
42369
|
MenuButton,
|
|
42281
42370
|
{
|
|
42282
42371
|
onClick: () => handleLogout(),
|
|
42283
42372
|
testId: "chain-option-disconnect"
|
|
42284
42373
|
},
|
|
42285
|
-
/* @__PURE__ */
|
|
42374
|
+
/* @__PURE__ */ React261.createElement(
|
|
42286
42375
|
Box,
|
|
42287
42376
|
{
|
|
42288
42377
|
color: "error",
|
|
@@ -42290,7 +42379,7 @@ function ChainModal({ onClose, open }) {
|
|
|
42290
42379
|
fontSize: "16",
|
|
42291
42380
|
fontWeight: "bold"
|
|
42292
42381
|
},
|
|
42293
|
-
/* @__PURE__ */
|
|
42382
|
+
/* @__PURE__ */ React261.createElement(
|
|
42294
42383
|
Box,
|
|
42295
42384
|
{
|
|
42296
42385
|
alignItems: "center",
|
|
@@ -42298,7 +42387,7 @@ function ChainModal({ onClose, open }) {
|
|
|
42298
42387
|
flexDirection: "row",
|
|
42299
42388
|
justifyContent: "space-between"
|
|
42300
42389
|
},
|
|
42301
|
-
/* @__PURE__ */
|
|
42390
|
+
/* @__PURE__ */ React261.createElement(
|
|
42302
42391
|
Box,
|
|
42303
42392
|
{
|
|
42304
42393
|
alignItems: "center",
|
|
@@ -42307,7 +42396,7 @@ function ChainModal({ onClose, open }) {
|
|
|
42307
42396
|
gap: "4",
|
|
42308
42397
|
height: chainIconSize
|
|
42309
42398
|
},
|
|
42310
|
-
/* @__PURE__ */
|
|
42399
|
+
/* @__PURE__ */ React261.createElement(
|
|
42311
42400
|
Box,
|
|
42312
42401
|
{
|
|
42313
42402
|
alignItems: "center",
|
|
@@ -42316,9 +42405,9 @@ function ChainModal({ onClose, open }) {
|
|
|
42316
42405
|
justifyContent: "center",
|
|
42317
42406
|
marginRight: "8"
|
|
42318
42407
|
},
|
|
42319
|
-
/* @__PURE__ */
|
|
42408
|
+
/* @__PURE__ */ React261.createElement(DisconnectSqIcon, { size: Number(chainIconSize) })
|
|
42320
42409
|
),
|
|
42321
|
-
/* @__PURE__ */
|
|
42410
|
+
/* @__PURE__ */ React261.createElement("div", null, t("chainModal.disconnect"))
|
|
42322
42411
|
)
|
|
42323
42412
|
)
|
|
42324
42413
|
)
|
|
@@ -42330,13 +42419,13 @@ function ChainModal({ onClose, open }) {
|
|
|
42330
42419
|
// src/modals/CheckoutModal/FunCheckoutModal.tsx
|
|
42331
42420
|
import { FUNKIT_CONNECT_SUPPORTED_CHECKOUT_CHAINS_INFO_LIST as FUNKIT_CONNECT_SUPPORTED_CHECKOUT_CHAINS_INFO_LIST2 } from "@funkit/chains";
|
|
42332
42421
|
import { LogLevel as LogLevel2, initializeRelayClient } from "@funkit/fun-relay";
|
|
42333
|
-
import
|
|
42422
|
+
import React276, { useEffect as useEffect71, useRef as useRef36 } from "react";
|
|
42334
42423
|
|
|
42335
42424
|
// src/components/FunConnectOptions/FunConnectOptions.tsx
|
|
42336
|
-
import
|
|
42425
|
+
import React267, { useCallback as useCallback50, useMemo as useMemo58, useState as useState76 } from "react";
|
|
42337
42426
|
|
|
42338
42427
|
// src/components/FunConnectOptions/FunConnectResultStep.tsx
|
|
42339
|
-
import
|
|
42428
|
+
import React262, { useEffect as useEffect65 } from "react";
|
|
42340
42429
|
var AUTO_CLOSE = 2e3;
|
|
42341
42430
|
var messageMap = (hasQrCode) => ({
|
|
42342
42431
|
error: {
|
|
@@ -42355,7 +42444,7 @@ var FunConnectResultStep = ({
|
|
|
42355
42444
|
qrCodeUri
|
|
42356
42445
|
}) => {
|
|
42357
42446
|
const hasAutoclose = type === "success";
|
|
42358
|
-
|
|
42447
|
+
useEffect65(() => {
|
|
42359
42448
|
if (!hasAutoclose) {
|
|
42360
42449
|
return;
|
|
42361
42450
|
}
|
|
@@ -42364,7 +42453,7 @@ var FunConnectResultStep = ({
|
|
|
42364
42453
|
}, [onClose, hasAutoclose]);
|
|
42365
42454
|
const hasQrCode = wallet?.qrCode && qrCodeUri;
|
|
42366
42455
|
const message = messageMap(!!hasQrCode)[type];
|
|
42367
|
-
return /* @__PURE__ */
|
|
42456
|
+
return /* @__PURE__ */ React262.createElement(Box, { display: "flex", flexDirection: "column", gap: "24" }, /* @__PURE__ */ React262.createElement(Box, { display: "flex", flexDirection: "column", alignItems: "center", gap: "12" }, hasQrCode && type === "error" ? /* @__PURE__ */ React262.createElement(
|
|
42368
42457
|
Box,
|
|
42369
42458
|
{
|
|
42370
42459
|
alignItems: "center",
|
|
@@ -42373,7 +42462,7 @@ var FunConnectResultStep = ({
|
|
|
42373
42462
|
justifyContent: "center",
|
|
42374
42463
|
flexDirection: "column"
|
|
42375
42464
|
},
|
|
42376
|
-
/* @__PURE__ */
|
|
42465
|
+
/* @__PURE__ */ React262.createElement(
|
|
42377
42466
|
QRCode,
|
|
42378
42467
|
{
|
|
42379
42468
|
logoBackground: wallet.iconBackground,
|
|
@@ -42383,7 +42472,7 @@ var FunConnectResultStep = ({
|
|
|
42383
42472
|
uri: qrCodeUri
|
|
42384
42473
|
}
|
|
42385
42474
|
)
|
|
42386
|
-
) : /* @__PURE__ */
|
|
42475
|
+
) : /* @__PURE__ */ React262.createElement(
|
|
42387
42476
|
Box,
|
|
42388
42477
|
{
|
|
42389
42478
|
padding: "30",
|
|
@@ -42392,7 +42481,7 @@ var FunConnectResultStep = ({
|
|
|
42392
42481
|
borderStyle: "solid",
|
|
42393
42482
|
borderColor: type === "success" ? "buttonSuccess" : "buttonWarning"
|
|
42394
42483
|
},
|
|
42395
|
-
wallet && /* @__PURE__ */
|
|
42484
|
+
wallet && /* @__PURE__ */ React262.createElement(Box, { style: { width: 40, height: 40 } }, /* @__PURE__ */ React262.createElement(
|
|
42396
42485
|
AsyncImage,
|
|
42397
42486
|
{
|
|
42398
42487
|
background: wallet.iconBackground,
|
|
@@ -42402,12 +42491,12 @@ var FunConnectResultStep = ({
|
|
|
42402
42491
|
height: 40
|
|
42403
42492
|
}
|
|
42404
42493
|
))
|
|
42405
|
-
), /* @__PURE__ */
|
|
42494
|
+
), /* @__PURE__ */ React262.createElement(FunMessage, { title: message.title, description: message.description })));
|
|
42406
42495
|
};
|
|
42407
42496
|
|
|
42408
42497
|
// src/components/FunConnectOptions/FunSignInStep.tsx
|
|
42409
42498
|
import { isMobile as isMobile13, isSafari as isSafari2, redirectInMobile } from "@funkit/utils";
|
|
42410
|
-
import
|
|
42499
|
+
import React264, { useState as useState75 } from "react";
|
|
42411
42500
|
|
|
42412
42501
|
// src/wallets/latestWalletId.ts
|
|
42413
42502
|
var storageKey5 = "fkc-latest-id";
|
|
@@ -42416,7 +42505,7 @@ function addLatestWalletId(walletId) {
|
|
|
42416
42505
|
}
|
|
42417
42506
|
|
|
42418
42507
|
// src/components/ModalSelection/ModalSelection.tsx
|
|
42419
|
-
import
|
|
42508
|
+
import React263, { useState as useState74 } from "react";
|
|
42420
42509
|
var ModalSelection = ({
|
|
42421
42510
|
as = "button",
|
|
42422
42511
|
currentlySelected = false,
|
|
@@ -42433,7 +42522,7 @@ var ModalSelection = ({
|
|
|
42433
42522
|
}) => {
|
|
42434
42523
|
const [isMouseOver, setIsMouseOver] = useState74(false);
|
|
42435
42524
|
const { t } = useFunkitTranslation();
|
|
42436
|
-
return /* @__PURE__ */
|
|
42525
|
+
return /* @__PURE__ */ React263.createElement(
|
|
42437
42526
|
Box,
|
|
42438
42527
|
{
|
|
42439
42528
|
display: "flex",
|
|
@@ -42441,7 +42530,7 @@ var ModalSelection = ({
|
|
|
42441
42530
|
onMouseEnter: () => setIsMouseOver(true),
|
|
42442
42531
|
onMouseLeave: () => setIsMouseOver(false)
|
|
42443
42532
|
},
|
|
42444
|
-
/* @__PURE__ */
|
|
42533
|
+
/* @__PURE__ */ React263.createElement(
|
|
42445
42534
|
Box,
|
|
42446
42535
|
{
|
|
42447
42536
|
as,
|
|
@@ -42465,7 +42554,7 @@ var ModalSelection = ({
|
|
|
42465
42554
|
width: "full",
|
|
42466
42555
|
...urlProps
|
|
42467
42556
|
},
|
|
42468
|
-
/* @__PURE__ */
|
|
42557
|
+
/* @__PURE__ */ React263.createElement(
|
|
42469
42558
|
Box,
|
|
42470
42559
|
{
|
|
42471
42560
|
color: currentlySelected ? "accentColorForeground" : "primaryText",
|
|
@@ -42475,7 +42564,7 @@ var ModalSelection = ({
|
|
|
42475
42564
|
fontWeight: "medium",
|
|
42476
42565
|
transition: "default"
|
|
42477
42566
|
},
|
|
42478
|
-
/* @__PURE__ */
|
|
42567
|
+
/* @__PURE__ */ React263.createElement(Box, { alignItems: "center", display: "flex", flexDirection: "row", gap: "12" }, icon ? icon : /* @__PURE__ */ React263.createElement(
|
|
42479
42568
|
AsyncImage,
|
|
42480
42569
|
{
|
|
42481
42570
|
background: iconBackground,
|
|
@@ -42486,7 +42575,7 @@ var ModalSelection = ({
|
|
|
42486
42575
|
src: iconUrl,
|
|
42487
42576
|
width: "18"
|
|
42488
42577
|
}
|
|
42489
|
-
), /* @__PURE__ */
|
|
42578
|
+
), /* @__PURE__ */ React263.createElement(
|
|
42490
42579
|
Box,
|
|
42491
42580
|
{
|
|
42492
42581
|
display: "flex",
|
|
@@ -42494,8 +42583,8 @@ var ModalSelection = ({
|
|
|
42494
42583
|
style: { flex: 1 },
|
|
42495
42584
|
alignItems: "center"
|
|
42496
42585
|
},
|
|
42497
|
-
/* @__PURE__ */
|
|
42498
|
-
recent && /* @__PURE__ */
|
|
42586
|
+
/* @__PURE__ */ React263.createElement(Box, { maxWidth: "200" }, name),
|
|
42587
|
+
recent && /* @__PURE__ */ React263.createElement(
|
|
42499
42588
|
FunBadge,
|
|
42500
42589
|
{
|
|
42501
42590
|
borderRadius: "smallBadge",
|
|
@@ -42584,8 +42673,8 @@ function FunSignInStep({
|
|
|
42584
42673
|
}
|
|
42585
42674
|
};
|
|
42586
42675
|
const makeWeb3LoginSection = () => {
|
|
42587
|
-
return /* @__PURE__ */
|
|
42588
|
-
return /* @__PURE__ */
|
|
42676
|
+
return /* @__PURE__ */ React264.createElement(Box, { display: "flex", flexDirection: "column", gap: "10" }, wallets.map((wallet) => {
|
|
42677
|
+
return /* @__PURE__ */ React264.createElement(
|
|
42589
42678
|
ModalSelection,
|
|
42590
42679
|
{
|
|
42591
42680
|
currentlySelected: wallet.id === selectedOptionId,
|
|
@@ -42602,14 +42691,14 @@ function FunSignInStep({
|
|
|
42602
42691
|
}));
|
|
42603
42692
|
};
|
|
42604
42693
|
const Web3LoginSection = makeWeb3LoginSection();
|
|
42605
|
-
return /* @__PURE__ */
|
|
42694
|
+
return /* @__PURE__ */ React264.createElement(Box, { display: "flex", flexDirection: "column", gap: "24" }, Web3LoginSection);
|
|
42606
42695
|
}
|
|
42607
42696
|
|
|
42608
42697
|
// src/components/FunConnectOptions/FunWeb3ConnectingStep.tsx
|
|
42609
|
-
import
|
|
42698
|
+
import React266 from "react";
|
|
42610
42699
|
|
|
42611
42700
|
// src/components/GradientLoader/GradientLoader.tsx
|
|
42612
|
-
import
|
|
42701
|
+
import React265 from "react";
|
|
42613
42702
|
|
|
42614
42703
|
// src/components/GradientLoader/GradientLoader.css.ts
|
|
42615
42704
|
var loader = "m17uwo1";
|
|
@@ -42619,7 +42708,7 @@ var GradientLoader = ({
|
|
|
42619
42708
|
height = "100",
|
|
42620
42709
|
width = "100"
|
|
42621
42710
|
}) => {
|
|
42622
|
-
return /* @__PURE__ */
|
|
42711
|
+
return /* @__PURE__ */ React265.createElement(
|
|
42623
42712
|
Box,
|
|
42624
42713
|
{
|
|
42625
42714
|
className: loader,
|
|
@@ -42640,7 +42729,7 @@ var FunWeb3ConnectingStep = ({ selectedWallet, qrCodeUri }) => {
|
|
|
42640
42729
|
}
|
|
42641
42730
|
const { iconBackground, iconUrl, name, qrCode, ready } = selectedWallet;
|
|
42642
42731
|
const hasQrCode = qrCode && qrCodeUri;
|
|
42643
|
-
const waitingMessage = /* @__PURE__ */
|
|
42732
|
+
const waitingMessage = /* @__PURE__ */ React266.createElement(
|
|
42644
42733
|
FunMessage,
|
|
42645
42734
|
{
|
|
42646
42735
|
title: `Waiting for ${hasQrCode ? "connection" : name}`,
|
|
@@ -42648,7 +42737,7 @@ var FunWeb3ConnectingStep = ({ selectedWallet, qrCodeUri }) => {
|
|
|
42648
42737
|
id: "link-text"
|
|
42649
42738
|
}
|
|
42650
42739
|
);
|
|
42651
|
-
return /* @__PURE__ */
|
|
42740
|
+
return /* @__PURE__ */ React266.createElement(Box, { display: "flex", flexDirection: "column", gap: "24" }, hasQrCode ? /* @__PURE__ */ React266.createElement(
|
|
42652
42741
|
Box,
|
|
42653
42742
|
{
|
|
42654
42743
|
alignItems: "center",
|
|
@@ -42658,7 +42747,7 @@ var FunWeb3ConnectingStep = ({ selectedWallet, qrCodeUri }) => {
|
|
|
42658
42747
|
gap: "12",
|
|
42659
42748
|
flexDirection: "column"
|
|
42660
42749
|
},
|
|
42661
|
-
/* @__PURE__ */
|
|
42750
|
+
/* @__PURE__ */ React266.createElement(
|
|
42662
42751
|
QRCode,
|
|
42663
42752
|
{
|
|
42664
42753
|
logoBackground: iconBackground,
|
|
@@ -42669,7 +42758,7 @@ var FunWeb3ConnectingStep = ({ selectedWallet, qrCodeUri }) => {
|
|
|
42669
42758
|
}
|
|
42670
42759
|
),
|
|
42671
42760
|
waitingMessage
|
|
42672
|
-
) : /* @__PURE__ */
|
|
42761
|
+
) : /* @__PURE__ */ React266.createElement(
|
|
42673
42762
|
Box,
|
|
42674
42763
|
{
|
|
42675
42764
|
alignItems: "center",
|
|
@@ -42678,7 +42767,7 @@ var FunWeb3ConnectingStep = ({ selectedWallet, qrCodeUri }) => {
|
|
|
42678
42767
|
flexDirection: "column",
|
|
42679
42768
|
gap: "12"
|
|
42680
42769
|
},
|
|
42681
|
-
ready && /* @__PURE__ */
|
|
42770
|
+
ready && /* @__PURE__ */ React266.createElement(React266.Fragment, null, /* @__PURE__ */ React266.createElement(Box, { id: "link-graphics", padding: "30", position: "relative" }, /* @__PURE__ */ React266.createElement(Box, { position: "absolute", style: { top: 0, left: 0 } }, /* @__PURE__ */ React266.createElement(GradientLoader, null)), /* @__PURE__ */ React266.createElement(Box, { style: { width: 40, height: 40 } }, /* @__PURE__ */ React266.createElement(
|
|
42682
42771
|
AsyncImage,
|
|
42683
42772
|
{
|
|
42684
42773
|
background: iconBackground,
|
|
@@ -42778,7 +42867,7 @@ function FunConnectOptions({
|
|
|
42778
42867
|
const stepComponent = useMemo58(() => {
|
|
42779
42868
|
switch (step) {
|
|
42780
42869
|
case 0 /* SIGNIN_PRIMARY */:
|
|
42781
|
-
return /* @__PURE__ */
|
|
42870
|
+
return /* @__PURE__ */ React267.createElement(
|
|
42782
42871
|
FunSignInStep,
|
|
42783
42872
|
{
|
|
42784
42873
|
signInStep: step,
|
|
@@ -42790,7 +42879,7 @@ function FunConnectOptions({
|
|
|
42790
42879
|
}
|
|
42791
42880
|
);
|
|
42792
42881
|
case 1 /* PENDING_WALLET */:
|
|
42793
|
-
return /* @__PURE__ */
|
|
42882
|
+
return /* @__PURE__ */ React267.createElement(
|
|
42794
42883
|
FunWeb3ConnectingStep,
|
|
42795
42884
|
{
|
|
42796
42885
|
selectedWallet,
|
|
@@ -42798,7 +42887,7 @@ function FunConnectOptions({
|
|
|
42798
42887
|
}
|
|
42799
42888
|
);
|
|
42800
42889
|
case 2 /* ERROR_WEB3 */:
|
|
42801
|
-
return /* @__PURE__ */
|
|
42890
|
+
return /* @__PURE__ */ React267.createElement(
|
|
42802
42891
|
FunConnectResultStep,
|
|
42803
42892
|
{
|
|
42804
42893
|
onClose,
|
|
@@ -42809,7 +42898,7 @@ function FunConnectOptions({
|
|
|
42809
42898
|
);
|
|
42810
42899
|
}
|
|
42811
42900
|
}, [connectToWallet, navigateTo, onClose, qrCodeUri, selectedWallet, step]);
|
|
42812
|
-
return /* @__PURE__ */
|
|
42901
|
+
return /* @__PURE__ */ React267.createElement(React267.Fragment, null, /* @__PURE__ */ React267.createElement(Dialog.Title, { onClose, ...navigationConfig[step] }), /* @__PURE__ */ React267.createElement(
|
|
42813
42902
|
Dialog.Content,
|
|
42814
42903
|
{
|
|
42815
42904
|
display: "flex",
|
|
@@ -42821,12 +42910,12 @@ function FunConnectOptions({
|
|
|
42821
42910
|
withBottomDivider: actionConfig[step] ? "always" : "never"
|
|
42822
42911
|
},
|
|
42823
42912
|
stepComponent
|
|
42824
|
-
), /* @__PURE__ */
|
|
42913
|
+
), /* @__PURE__ */ React267.createElement(Dialog.BottomSection, { id: MODAL_BOTTOM_BAR_IDS.connectwallet }, actionConfig[step] && /* @__PURE__ */ React267.createElement(Dialog.BottomBar, { ...actionConfig[step] })));
|
|
42825
42914
|
}
|
|
42826
42915
|
|
|
42827
42916
|
// src/components/FunCheckoutBlocked/FunCheckoutBlocked.tsx
|
|
42828
|
-
import
|
|
42829
|
-
import { Trans as
|
|
42917
|
+
import React268 from "react";
|
|
42918
|
+
import { Trans as Trans16 } from "react-i18next";
|
|
42830
42919
|
|
|
42831
42920
|
// src/components/FunCheckoutBlocked/FunCheckoutBlocked.css.ts
|
|
42832
42921
|
var funCheckoutBlockedStyle = "hkjz5k0";
|
|
@@ -42839,35 +42928,35 @@ var FunCheckoutBlocked = ({ reason }) => {
|
|
|
42839
42928
|
}
|
|
42840
42929
|
const blockedReasonToDescription = {
|
|
42841
42930
|
fullGeoblock: t("funCheckoutBlocked.geoblock", { orgName: FUN_ORG_NAME }),
|
|
42842
|
-
security: /* @__PURE__ */
|
|
42843
|
-
|
|
42931
|
+
security: /* @__PURE__ */ React268.createElement(
|
|
42932
|
+
Trans16,
|
|
42844
42933
|
{
|
|
42845
42934
|
t,
|
|
42846
42935
|
i18nKey: "funCheckoutBlocked.security",
|
|
42847
42936
|
components: {
|
|
42848
|
-
ContactSupportLink: /* @__PURE__ */
|
|
42937
|
+
ContactSupportLink: /* @__PURE__ */ React268.createElement(ContactSupportLink, { size: "10" })
|
|
42849
42938
|
},
|
|
42850
42939
|
values: {
|
|
42851
42940
|
orgName: FUN_ORG_NAME
|
|
42852
42941
|
}
|
|
42853
42942
|
}
|
|
42854
42943
|
),
|
|
42855
|
-
unloggedin: /* @__PURE__ */
|
|
42856
|
-
|
|
42944
|
+
unloggedin: /* @__PURE__ */ React268.createElement(
|
|
42945
|
+
Trans16,
|
|
42857
42946
|
{
|
|
42858
42947
|
t,
|
|
42859
42948
|
i18nKey: "funCheckoutBlocked.unloggedin",
|
|
42860
42949
|
components: {
|
|
42861
|
-
ContactSupportLink: /* @__PURE__ */
|
|
42950
|
+
ContactSupportLink: /* @__PURE__ */ React268.createElement(ContactSupportLink, { size: "10" })
|
|
42862
42951
|
}
|
|
42863
42952
|
}
|
|
42864
42953
|
)
|
|
42865
42954
|
};
|
|
42866
42955
|
const description = blockedReasonToDescription[reason];
|
|
42867
|
-
return /* @__PURE__ */
|
|
42956
|
+
return /* @__PURE__ */ React268.createElement(Box, { className: funCheckoutBlockedStyle }, /* @__PURE__ */ React268.createElement(
|
|
42868
42957
|
FunAlert,
|
|
42869
42958
|
{
|
|
42870
|
-
icon: /* @__PURE__ */
|
|
42959
|
+
icon: /* @__PURE__ */ React268.createElement(FunInfoIcon, null),
|
|
42871
42960
|
description,
|
|
42872
42961
|
verticalAlignment: "top"
|
|
42873
42962
|
}
|
|
@@ -42875,12 +42964,12 @@ var FunCheckoutBlocked = ({ reason }) => {
|
|
|
42875
42964
|
};
|
|
42876
42965
|
|
|
42877
42966
|
// src/modals/CheckoutModal/SwappedIframe/SwappedIframe.tsx
|
|
42878
|
-
import
|
|
42967
|
+
import React269, { useEffect as useEffect66, useState as useState77 } from "react";
|
|
42879
42968
|
var SwappedIframe = () => {
|
|
42880
42969
|
const { iframeUrl, isSwappedReady, isActive, setIframeRef } = useSwappedContext();
|
|
42881
42970
|
const [visible, setVisible] = useState77(false);
|
|
42882
42971
|
const shouldShow = isActive && isSwappedReady;
|
|
42883
|
-
|
|
42972
|
+
useEffect66(() => {
|
|
42884
42973
|
if (shouldShow) {
|
|
42885
42974
|
const frame = requestAnimationFrame(() => setVisible(true));
|
|
42886
42975
|
return () => cancelAnimationFrame(frame);
|
|
@@ -42890,7 +42979,7 @@ var SwappedIframe = () => {
|
|
|
42890
42979
|
if (!iframeUrl) {
|
|
42891
42980
|
return null;
|
|
42892
42981
|
}
|
|
42893
|
-
return /* @__PURE__ */
|
|
42982
|
+
return /* @__PURE__ */ React269.createElement(
|
|
42894
42983
|
Box,
|
|
42895
42984
|
{
|
|
42896
42985
|
background: "modalBackground",
|
|
@@ -42909,7 +42998,7 @@ var SwappedIframe = () => {
|
|
|
42909
42998
|
},
|
|
42910
42999
|
"aria-hidden": !shouldShow
|
|
42911
43000
|
},
|
|
42912
|
-
/* @__PURE__ */
|
|
43001
|
+
/* @__PURE__ */ React269.createElement(
|
|
42913
43002
|
"iframe",
|
|
42914
43003
|
{
|
|
42915
43004
|
ref: setIframeRef,
|
|
@@ -42932,20 +43021,20 @@ var SwappedIframe = () => {
|
|
|
42932
43021
|
)
|
|
42933
43022
|
);
|
|
42934
43023
|
};
|
|
42935
|
-
var SwappedIframe_default =
|
|
43024
|
+
var SwappedIframe_default = React269.memo(SwappedIframe);
|
|
42936
43025
|
|
|
42937
43026
|
// src/modals/CheckoutModal/TransferToken/CheckoutNotifications.tsx
|
|
42938
43027
|
import clsx25 from "clsx";
|
|
42939
|
-
import
|
|
43028
|
+
import React275, { useCallback as useCallback52, useEffect as useEffect69, useMemo as useMemo59, useState as useState79 } from "react";
|
|
42940
43029
|
|
|
42941
43030
|
// src/components/FunNotificationBanner/FunNotificationShowMoreButton.tsx
|
|
42942
|
-
import
|
|
43031
|
+
import React270 from "react";
|
|
42943
43032
|
var FunNotificationShowMoreButton = ({
|
|
42944
43033
|
numberOfNotifications,
|
|
42945
43034
|
isExpanded,
|
|
42946
43035
|
onClick
|
|
42947
43036
|
}) => {
|
|
42948
|
-
const buttonTitleCompoent = /* @__PURE__ */
|
|
43037
|
+
const buttonTitleCompoent = /* @__PURE__ */ React270.createElement(Box, { display: "flex", gap: "4", alignItems: "center" }, /* @__PURE__ */ React270.createElement(Text, { size: "13" }, isExpanded ? "Show less" : `${numberOfNotifications} more`), /* @__PURE__ */ React270.createElement(
|
|
42949
43038
|
Box,
|
|
42950
43039
|
{
|
|
42951
43040
|
width: "16",
|
|
@@ -42954,7 +43043,7 @@ var FunNotificationShowMoreButton = ({
|
|
|
42954
43043
|
alignItems: "center",
|
|
42955
43044
|
justifyContent: "center"
|
|
42956
43045
|
},
|
|
42957
|
-
/* @__PURE__ */
|
|
43046
|
+
/* @__PURE__ */ React270.createElement(
|
|
42958
43047
|
Box,
|
|
42959
43048
|
{
|
|
42960
43049
|
color: "secondaryText",
|
|
@@ -42965,10 +43054,10 @@ var FunNotificationShowMoreButton = ({
|
|
|
42965
43054
|
justifyContent: "center",
|
|
42966
43055
|
style: isExpanded ? { transform: "rotate(180deg)" } : void 0
|
|
42967
43056
|
},
|
|
42968
|
-
/* @__PURE__ */
|
|
43057
|
+
/* @__PURE__ */ React270.createElement(CaretDownIcon, null)
|
|
42969
43058
|
)
|
|
42970
43059
|
));
|
|
42971
|
-
return /* @__PURE__ */
|
|
43060
|
+
return /* @__PURE__ */ React270.createElement(
|
|
42972
43061
|
FunButton,
|
|
42973
43062
|
{
|
|
42974
43063
|
type: "tertiary",
|
|
@@ -42982,10 +43071,10 @@ var FunNotificationShowMoreButton = ({
|
|
|
42982
43071
|
|
|
42983
43072
|
// src/hooks/useOnNewNotification.ts
|
|
42984
43073
|
import { safeParseJson as safeParseJson3 } from "@funkit/utils";
|
|
42985
|
-
import { useEffect as
|
|
43074
|
+
import { useEffect as useEffect67 } from "react";
|
|
42986
43075
|
var storageKey6 = "fkc-processed-notifications";
|
|
42987
43076
|
var useOnNewNotification = (combinedNotifications, cb) => {
|
|
42988
|
-
|
|
43077
|
+
useEffect67(() => {
|
|
42989
43078
|
const alreadyProcessed = safeParseJsonObject(
|
|
42990
43079
|
sessionStorage.getItem(storageKey6)
|
|
42991
43080
|
);
|
|
@@ -43028,12 +43117,12 @@ var getUniqueId = (item) => {
|
|
|
43028
43117
|
};
|
|
43029
43118
|
|
|
43030
43119
|
// src/modals/CheckoutModal/TransferToken/CheckoutNotification.tsx
|
|
43031
|
-
import
|
|
43032
|
-
import { Trans as
|
|
43120
|
+
import React273 from "react";
|
|
43121
|
+
import { Trans as Trans17 } from "react-i18next";
|
|
43033
43122
|
|
|
43034
43123
|
// src/components/FunNotificationBanner/FunNotificationBanner.tsx
|
|
43035
43124
|
import { AnimatePresence as AnimatePresence3, motion as motion15 } from "motion/react";
|
|
43036
|
-
import
|
|
43125
|
+
import React272, { useState as useState78 } from "react";
|
|
43037
43126
|
import clsx24 from "clsx";
|
|
43038
43127
|
|
|
43039
43128
|
// src/components/FunNotificationBanner/FunNotificationBanner.css.ts
|
|
@@ -43043,7 +43132,7 @@ var showMoreButtonStyle = "_4yitd93 _1rsrm2f1q6 _1rsrm2f1i _1rsrm2f1f _1rsrm2f11
|
|
|
43043
43132
|
// src/components/FunNotificationBanner/FunNotificationBannerIcon.tsx
|
|
43044
43133
|
import clsx23 from "clsx";
|
|
43045
43134
|
import { motion as motion14, useAnimate as useAnimate3 } from "motion/react";
|
|
43046
|
-
import
|
|
43135
|
+
import React271, { useCallback as useCallback51, useEffect as useEffect68, useRef as useRef35 } from "react";
|
|
43047
43136
|
|
|
43048
43137
|
// src/components/FunNotificationBanner/FunNotificationBannerIcon.css.ts
|
|
43049
43138
|
var STATUS_SPINNER_BOTTOM_POSITION = -5;
|
|
@@ -43056,7 +43145,7 @@ var statusSpinner = "_1i8t3xj4 qe221a3";
|
|
|
43056
43145
|
function generateAnimationPrefixClassName(className) {
|
|
43057
43146
|
return `framer-fnb-${className}`;
|
|
43058
43147
|
}
|
|
43059
|
-
var successIcon = /* @__PURE__ */
|
|
43148
|
+
var successIcon = /* @__PURE__ */ React271.createElement(
|
|
43060
43149
|
motion14.svg,
|
|
43061
43150
|
{
|
|
43062
43151
|
width: "16",
|
|
@@ -43065,8 +43154,8 @@ var successIcon = /* @__PURE__ */ React270.createElement(
|
|
|
43065
43154
|
fill: "none",
|
|
43066
43155
|
xmlns: "http://www.w3.org/2000/svg"
|
|
43067
43156
|
},
|
|
43068
|
-
/* @__PURE__ */
|
|
43069
|
-
/* @__PURE__ */
|
|
43157
|
+
/* @__PURE__ */ React271.createElement("circle", { cx: "8", cy: "8", r: "8", fill: "#66CC00" }),
|
|
43158
|
+
/* @__PURE__ */ React271.createElement(
|
|
43070
43159
|
motion14.path,
|
|
43071
43160
|
{
|
|
43072
43161
|
d: "M5 8L7 10L11.5 5.5",
|
|
@@ -43076,7 +43165,7 @@ var successIcon = /* @__PURE__ */ React270.createElement(
|
|
|
43076
43165
|
}
|
|
43077
43166
|
)
|
|
43078
43167
|
);
|
|
43079
|
-
var errorIcon = /* @__PURE__ */
|
|
43168
|
+
var errorIcon = /* @__PURE__ */ React271.createElement(
|
|
43080
43169
|
"svg",
|
|
43081
43170
|
{
|
|
43082
43171
|
width: "16",
|
|
@@ -43085,8 +43174,8 @@ var errorIcon = /* @__PURE__ */ React270.createElement(
|
|
|
43085
43174
|
fill: "none",
|
|
43086
43175
|
xmlns: "http://www.w3.org/2000/svg"
|
|
43087
43176
|
},
|
|
43088
|
-
/* @__PURE__ */
|
|
43089
|
-
/* @__PURE__ */
|
|
43177
|
+
/* @__PURE__ */ React271.createElement("g", { filter: "url(#filter0_i_19769_7642)" }, /* @__PURE__ */ React271.createElement("circle", { cx: "8", cy: "8", r: "8", fill: "#F34126" })),
|
|
43178
|
+
/* @__PURE__ */ React271.createElement(
|
|
43090
43179
|
"path",
|
|
43091
43180
|
{
|
|
43092
43181
|
d: "M5 5L11 11",
|
|
@@ -43095,7 +43184,7 @@ var errorIcon = /* @__PURE__ */ React270.createElement(
|
|
|
43095
43184
|
strokeLinejoin: "round"
|
|
43096
43185
|
}
|
|
43097
43186
|
),
|
|
43098
|
-
/* @__PURE__ */
|
|
43187
|
+
/* @__PURE__ */ React271.createElement(
|
|
43099
43188
|
"path",
|
|
43100
43189
|
{
|
|
43101
43190
|
d: "M5 11L11 5",
|
|
@@ -43104,7 +43193,7 @@ var errorIcon = /* @__PURE__ */ React270.createElement(
|
|
|
43104
43193
|
strokeLinejoin: "round"
|
|
43105
43194
|
}
|
|
43106
43195
|
),
|
|
43107
|
-
/* @__PURE__ */
|
|
43196
|
+
/* @__PURE__ */ React271.createElement("defs", null, /* @__PURE__ */ React271.createElement(
|
|
43108
43197
|
"filter",
|
|
43109
43198
|
{
|
|
43110
43199
|
id: "filter0_i_19769_7642",
|
|
@@ -43115,8 +43204,8 @@ var errorIcon = /* @__PURE__ */ React270.createElement(
|
|
|
43115
43204
|
filterUnits: "userSpaceOnUse",
|
|
43116
43205
|
colorInterpolationFilters: "sRGB"
|
|
43117
43206
|
},
|
|
43118
|
-
/* @__PURE__ */
|
|
43119
|
-
/* @__PURE__ */
|
|
43207
|
+
/* @__PURE__ */ React271.createElement("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
43208
|
+
/* @__PURE__ */ React271.createElement(
|
|
43120
43209
|
"feBlend",
|
|
43121
43210
|
{
|
|
43122
43211
|
mode: "normal",
|
|
@@ -43125,7 +43214,7 @@ var errorIcon = /* @__PURE__ */ React270.createElement(
|
|
|
43125
43214
|
result: "shape"
|
|
43126
43215
|
}
|
|
43127
43216
|
),
|
|
43128
|
-
/* @__PURE__ */
|
|
43217
|
+
/* @__PURE__ */ React271.createElement(
|
|
43129
43218
|
"feColorMatrix",
|
|
43130
43219
|
{
|
|
43131
43220
|
in: "SourceAlpha",
|
|
@@ -43134,16 +43223,16 @@ var errorIcon = /* @__PURE__ */ React270.createElement(
|
|
|
43134
43223
|
result: "hardAlpha"
|
|
43135
43224
|
}
|
|
43136
43225
|
),
|
|
43137
|
-
/* @__PURE__ */
|
|
43138
|
-
/* @__PURE__ */
|
|
43139
|
-
/* @__PURE__ */
|
|
43226
|
+
/* @__PURE__ */ React271.createElement("feOffset", { dy: "-1" }),
|
|
43227
|
+
/* @__PURE__ */ React271.createElement("feComposite", { in2: "hardAlpha", operator: "arithmetic", k2: "-1", k3: "1" }),
|
|
43228
|
+
/* @__PURE__ */ React271.createElement(
|
|
43140
43229
|
"feColorMatrix",
|
|
43141
43230
|
{
|
|
43142
43231
|
type: "matrix",
|
|
43143
43232
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"
|
|
43144
43233
|
}
|
|
43145
43234
|
),
|
|
43146
|
-
/* @__PURE__ */
|
|
43235
|
+
/* @__PURE__ */ React271.createElement(
|
|
43147
43236
|
"feBlend",
|
|
43148
43237
|
{
|
|
43149
43238
|
mode: "normal",
|
|
@@ -43153,7 +43242,7 @@ var errorIcon = /* @__PURE__ */ React270.createElement(
|
|
|
43153
43242
|
)
|
|
43154
43243
|
))
|
|
43155
43244
|
);
|
|
43156
|
-
var pendingIcon = /* @__PURE__ */
|
|
43245
|
+
var pendingIcon = /* @__PURE__ */ React271.createElement(
|
|
43157
43246
|
motion14.svg,
|
|
43158
43247
|
{
|
|
43159
43248
|
width: "16",
|
|
@@ -43162,8 +43251,8 @@ var pendingIcon = /* @__PURE__ */ React270.createElement(
|
|
|
43162
43251
|
fill: "none",
|
|
43163
43252
|
xmlns: "http://www.w3.org/2000/svg"
|
|
43164
43253
|
},
|
|
43165
|
-
/* @__PURE__ */
|
|
43166
|
-
/* @__PURE__ */
|
|
43254
|
+
/* @__PURE__ */ React271.createElement("g", { filter: "url(#filter0_i_19866_15799)" }, /* @__PURE__ */ React271.createElement("circle", { cx: "8", cy: "8", r: "8", fill: "#8C8C8C" })),
|
|
43255
|
+
/* @__PURE__ */ React271.createElement("g", { clipPath: "url(#clip0_19866_15799)" }, /* @__PURE__ */ React271.createElement(
|
|
43167
43256
|
motion14.path,
|
|
43168
43257
|
{
|
|
43169
43258
|
d: "M8 5V8L10 9M13 8C13 10.7614 10.7614 13 8 13C5.23858 13 3 10.7614 3 8C3 5.23858 5.23858 3 8 3C10.7614 3 13 5.23858 13 8Z",
|
|
@@ -43173,7 +43262,7 @@ var pendingIcon = /* @__PURE__ */ React270.createElement(
|
|
|
43173
43262
|
strokeLinejoin: "round"
|
|
43174
43263
|
}
|
|
43175
43264
|
)),
|
|
43176
|
-
/* @__PURE__ */
|
|
43265
|
+
/* @__PURE__ */ React271.createElement("defs", null, /* @__PURE__ */ React271.createElement(
|
|
43177
43266
|
"filter",
|
|
43178
43267
|
{
|
|
43179
43268
|
id: "filter0_i_19866_15799",
|
|
@@ -43184,8 +43273,8 @@ var pendingIcon = /* @__PURE__ */ React270.createElement(
|
|
|
43184
43273
|
filterUnits: "userSpaceOnUse",
|
|
43185
43274
|
colorInterpolationFilters: "sRGB"
|
|
43186
43275
|
},
|
|
43187
|
-
/* @__PURE__ */
|
|
43188
|
-
/* @__PURE__ */
|
|
43276
|
+
/* @__PURE__ */ React271.createElement("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
43277
|
+
/* @__PURE__ */ React271.createElement(
|
|
43189
43278
|
"feBlend",
|
|
43190
43279
|
{
|
|
43191
43280
|
mode: "normal",
|
|
@@ -43194,7 +43283,7 @@ var pendingIcon = /* @__PURE__ */ React270.createElement(
|
|
|
43194
43283
|
result: "shape"
|
|
43195
43284
|
}
|
|
43196
43285
|
),
|
|
43197
|
-
/* @__PURE__ */
|
|
43286
|
+
/* @__PURE__ */ React271.createElement(
|
|
43198
43287
|
"feColorMatrix",
|
|
43199
43288
|
{
|
|
43200
43289
|
in: "SourceAlpha",
|
|
@@ -43203,16 +43292,16 @@ var pendingIcon = /* @__PURE__ */ React270.createElement(
|
|
|
43203
43292
|
result: "hardAlpha"
|
|
43204
43293
|
}
|
|
43205
43294
|
),
|
|
43206
|
-
/* @__PURE__ */
|
|
43207
|
-
/* @__PURE__ */
|
|
43208
|
-
/* @__PURE__ */
|
|
43295
|
+
/* @__PURE__ */ React271.createElement("feOffset", { dy: "-1" }),
|
|
43296
|
+
/* @__PURE__ */ React271.createElement("feComposite", { in2: "hardAlpha", operator: "arithmetic", k2: "-1", k3: "1" }),
|
|
43297
|
+
/* @__PURE__ */ React271.createElement(
|
|
43209
43298
|
"feColorMatrix",
|
|
43210
43299
|
{
|
|
43211
43300
|
type: "matrix",
|
|
43212
43301
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"
|
|
43213
43302
|
}
|
|
43214
43303
|
),
|
|
43215
|
-
/* @__PURE__ */
|
|
43304
|
+
/* @__PURE__ */ React271.createElement(
|
|
43216
43305
|
"feBlend",
|
|
43217
43306
|
{
|
|
43218
43307
|
mode: "normal",
|
|
@@ -43220,9 +43309,9 @@ var pendingIcon = /* @__PURE__ */ React270.createElement(
|
|
|
43220
43309
|
result: "effect1_innerShadow_19866_15799"
|
|
43221
43310
|
}
|
|
43222
43311
|
)
|
|
43223
|
-
), /* @__PURE__ */
|
|
43312
|
+
), /* @__PURE__ */ React271.createElement("clipPath", { id: "clip0_19866_15799" }, /* @__PURE__ */ React271.createElement("rect", { width: "12", height: "12", fill: "white", transform: "translate(2 2)" })))
|
|
43224
43313
|
);
|
|
43225
|
-
var downloadIcon = /* @__PURE__ */
|
|
43314
|
+
var downloadIcon = /* @__PURE__ */ React271.createElement(
|
|
43226
43315
|
motion14.svg,
|
|
43227
43316
|
{
|
|
43228
43317
|
width: "16",
|
|
@@ -43231,8 +43320,8 @@ var downloadIcon = /* @__PURE__ */ React270.createElement(
|
|
|
43231
43320
|
fill: "none",
|
|
43232
43321
|
xmlns: "http://www.w3.org/2000/svg"
|
|
43233
43322
|
},
|
|
43234
|
-
/* @__PURE__ */
|
|
43235
|
-
/* @__PURE__ */
|
|
43323
|
+
/* @__PURE__ */ React271.createElement("circle", { cx: "8", cy: "8", r: "8", fill: "#66CC00" }),
|
|
43324
|
+
/* @__PURE__ */ React271.createElement(
|
|
43236
43325
|
motion14.path,
|
|
43237
43326
|
{
|
|
43238
43327
|
d: "M8 4C8 6.14788 8 11.5 8 11.5M8 11.5L11 8.5M8 11.5L5 8.5",
|
|
@@ -43243,7 +43332,7 @@ var downloadIcon = /* @__PURE__ */ React270.createElement(
|
|
|
43243
43332
|
)
|
|
43244
43333
|
);
|
|
43245
43334
|
var SpinnerBase = ({ variant }) => {
|
|
43246
|
-
return /* @__PURE__ */
|
|
43335
|
+
return /* @__PURE__ */ React271.createElement(motion14.div, null, /* @__PURE__ */ React271.createElement(
|
|
43247
43336
|
Box,
|
|
43248
43337
|
{
|
|
43249
43338
|
className: clsx23(
|
|
@@ -43252,7 +43341,7 @@ var SpinnerBase = ({ variant }) => {
|
|
|
43252
43341
|
),
|
|
43253
43342
|
color: variant === "processing" ? "success" : "inputBorderHover"
|
|
43254
43343
|
},
|
|
43255
|
-
/* @__PURE__ */
|
|
43344
|
+
/* @__PURE__ */ React271.createElement(
|
|
43256
43345
|
"svg",
|
|
43257
43346
|
{
|
|
43258
43347
|
width: "24",
|
|
@@ -43261,7 +43350,7 @@ var SpinnerBase = ({ variant }) => {
|
|
|
43261
43350
|
fill: "none",
|
|
43262
43351
|
xmlns: "http://www.w3.org/2000/svg"
|
|
43263
43352
|
},
|
|
43264
|
-
/* @__PURE__ */
|
|
43353
|
+
/* @__PURE__ */ React271.createElement(
|
|
43265
43354
|
"circle",
|
|
43266
43355
|
{
|
|
43267
43356
|
opacity: "0.5",
|
|
@@ -43277,8 +43366,8 @@ var SpinnerBase = ({ variant }) => {
|
|
|
43277
43366
|
)
|
|
43278
43367
|
));
|
|
43279
43368
|
};
|
|
43280
|
-
var ProcessingSpinner = () => /* @__PURE__ */
|
|
43281
|
-
var DelayedSpinner = () => /* @__PURE__ */
|
|
43369
|
+
var ProcessingSpinner = () => /* @__PURE__ */ React271.createElement(SpinnerBase, { variant: "processing" });
|
|
43370
|
+
var DelayedSpinner = () => /* @__PURE__ */ React271.createElement(SpinnerBase, { variant: "delayed" });
|
|
43282
43371
|
var statusIconMap = {
|
|
43283
43372
|
processing: downloadIcon,
|
|
43284
43373
|
delayed: downloadIcon,
|
|
@@ -43493,7 +43582,7 @@ var FunNotificationBannerIcon = ({
|
|
|
43493
43582
|
]);
|
|
43494
43583
|
}, [animate]);
|
|
43495
43584
|
const statusRef = useRef35(status);
|
|
43496
|
-
|
|
43585
|
+
useEffect68(() => {
|
|
43497
43586
|
if (statusRef.current !== status) {
|
|
43498
43587
|
if (statusRef.current === "processing" && status === "completed") {
|
|
43499
43588
|
triggerAnimationProcessingToCompleted();
|
|
@@ -43509,7 +43598,7 @@ var FunNotificationBannerIcon = ({
|
|
|
43509
43598
|
triggerAnimationDelayedToFailed,
|
|
43510
43599
|
triggerAnimationProcessingToCompleted
|
|
43511
43600
|
]);
|
|
43512
|
-
return /* @__PURE__ */
|
|
43601
|
+
return /* @__PURE__ */ React271.createElement(Box, { width: "32", height: "32", position: "relative", ref: animationScope }, statusRef.current === "processing" && /* @__PURE__ */ React271.createElement(ProcessingSpinner, null), statusRef.current === "delayed" && /* @__PURE__ */ React271.createElement(DelayedSpinner, null), /* @__PURE__ */ React271.createElement(Box, { className: shadowStyle }, /* @__PURE__ */ React271.createElement(
|
|
43513
43602
|
AsyncImage,
|
|
43514
43603
|
{
|
|
43515
43604
|
alt: "",
|
|
@@ -43519,7 +43608,7 @@ var FunNotificationBannerIcon = ({
|
|
|
43519
43608
|
src: iconUrl ?? void 0,
|
|
43520
43609
|
fallbackSrc: fallbackIconUrl
|
|
43521
43610
|
}
|
|
43522
|
-
)), statusRef.current && /* @__PURE__ */
|
|
43611
|
+
)), statusRef.current && /* @__PURE__ */ React271.createElement(
|
|
43523
43612
|
Box,
|
|
43524
43613
|
{
|
|
43525
43614
|
className: clsx23(
|
|
@@ -43529,7 +43618,7 @@ var FunNotificationBannerIcon = ({
|
|
|
43529
43618
|
width: "20",
|
|
43530
43619
|
height: "20"
|
|
43531
43620
|
},
|
|
43532
|
-
/* @__PURE__ */
|
|
43621
|
+
/* @__PURE__ */ React271.createElement(Box, { className: clsx23(statusIcon) }, Object.entries(statusIconMap).map(([key, value]) => /* @__PURE__ */ React271.createElement(
|
|
43533
43622
|
"div",
|
|
43534
43623
|
{
|
|
43535
43624
|
key,
|
|
@@ -43554,7 +43643,7 @@ var FunNotificationBannerIcon = ({
|
|
|
43554
43643
|
};
|
|
43555
43644
|
|
|
43556
43645
|
// src/components/FunNotificationBanner/FunNotificationBanner.tsx
|
|
43557
|
-
var closeIcon = /* @__PURE__ */
|
|
43646
|
+
var closeIcon = /* @__PURE__ */ React272.createElement(
|
|
43558
43647
|
"svg",
|
|
43559
43648
|
{
|
|
43560
43649
|
width: "16",
|
|
@@ -43563,7 +43652,7 @@ var closeIcon = /* @__PURE__ */ React271.createElement(
|
|
|
43563
43652
|
fill: "none",
|
|
43564
43653
|
xmlns: "http://www.w3.org/2000/svg"
|
|
43565
43654
|
},
|
|
43566
|
-
/* @__PURE__ */
|
|
43655
|
+
/* @__PURE__ */ React272.createElement(
|
|
43567
43656
|
"path",
|
|
43568
43657
|
{
|
|
43569
43658
|
d: "M4.89066 4.15281C4.68691 3.94906 4.35657 3.94906 4.15281 4.15281C3.94906 4.35657 3.94906 4.68691 4.15281 4.89066L7.26215 8L4.15281 11.1093C3.94906 11.3131 3.94906 11.6434 4.15281 11.8472C4.35657 12.0509 4.68691 12.0509 4.89066 11.8472L8 8.73785L11.1093 11.8472C11.3131 12.0509 11.6434 12.0509 11.8472 11.8472C12.0509 11.6434 12.0509 11.3131 11.8472 11.1093L8.73785 8L11.8472 4.89066C12.0509 4.68691 12.0509 4.35657 11.8472 4.15281C11.6434 3.94906 11.3131 3.94906 11.1093 4.15281L8 7.26215L4.89066 4.15281Z",
|
|
@@ -43588,7 +43677,7 @@ var FunNotificationBanner = ({
|
|
|
43588
43677
|
setIsOpen(false);
|
|
43589
43678
|
onClosed?.();
|
|
43590
43679
|
};
|
|
43591
|
-
return /* @__PURE__ */
|
|
43680
|
+
return /* @__PURE__ */ React272.createElement(AnimatePresence3, null, isOpen ? /* @__PURE__ */ React272.createElement(
|
|
43592
43681
|
motion15.div,
|
|
43593
43682
|
{
|
|
43594
43683
|
initial: {
|
|
@@ -43617,7 +43706,7 @@ var FunNotificationBanner = ({
|
|
|
43617
43706
|
}
|
|
43618
43707
|
}
|
|
43619
43708
|
},
|
|
43620
|
-
/* @__PURE__ */
|
|
43709
|
+
/* @__PURE__ */ React272.createElement(Box, { className: clsx24(notificationBannerStyle) }, /* @__PURE__ */ React272.createElement(
|
|
43621
43710
|
FunIconButton,
|
|
43622
43711
|
{
|
|
43623
43712
|
borderRadius: "full",
|
|
@@ -43631,14 +43720,14 @@ var FunNotificationBanner = ({
|
|
|
43631
43720
|
right: "4px"
|
|
43632
43721
|
}
|
|
43633
43722
|
}
|
|
43634
|
-
), /* @__PURE__ */
|
|
43723
|
+
), /* @__PURE__ */ React272.createElement(Box, { padding: "16", display: "flex", gap: "16" }, /* @__PURE__ */ React272.createElement(
|
|
43635
43724
|
FunNotificationBannerIcon,
|
|
43636
43725
|
{
|
|
43637
43726
|
iconUrl,
|
|
43638
43727
|
status,
|
|
43639
43728
|
fallbackIconUrl
|
|
43640
43729
|
}
|
|
43641
|
-
), /* @__PURE__ */
|
|
43730
|
+
), /* @__PURE__ */ React272.createElement(Box, { display: "flex", flexDirection: "column" }, /* @__PURE__ */ React272.createElement(Box, { display: "flex", flexDirection: "column", gap: "6" }, /* @__PURE__ */ React272.createElement(
|
|
43642
43731
|
Text,
|
|
43643
43732
|
{
|
|
43644
43733
|
weight: "medium",
|
|
@@ -43646,7 +43735,7 @@ var FunNotificationBanner = ({
|
|
|
43646
43735
|
style: { lineHeight: "13px" }
|
|
43647
43736
|
},
|
|
43648
43737
|
title
|
|
43649
|
-
), /* @__PURE__ */
|
|
43738
|
+
), /* @__PURE__ */ React272.createElement(Text, { size: "12", color: "secondaryText" }, description)), disclaimer && /* @__PURE__ */ React272.createElement(
|
|
43650
43739
|
Box,
|
|
43651
43740
|
{
|
|
43652
43741
|
marginTop: "12",
|
|
@@ -43657,8 +43746,8 @@ var FunNotificationBanner = ({
|
|
|
43657
43746
|
borderRadius: "8",
|
|
43658
43747
|
borderColor: "mediumStroke"
|
|
43659
43748
|
},
|
|
43660
|
-
/* @__PURE__ */
|
|
43661
|
-
), /* @__PURE__ */
|
|
43749
|
+
/* @__PURE__ */ React272.createElement(Text, { color: "secondaryText", size: "12" }, disclaimer)
|
|
43750
|
+
), /* @__PURE__ */ React272.createElement(AnimatePresence3, null, showMore && /* @__PURE__ */ React272.createElement(
|
|
43662
43751
|
motion15.div,
|
|
43663
43752
|
{
|
|
43664
43753
|
initial: {
|
|
@@ -43695,14 +43784,14 @@ var FunNotificationBanner = ({
|
|
|
43695
43784
|
}
|
|
43696
43785
|
}
|
|
43697
43786
|
},
|
|
43698
|
-
/* @__PURE__ */
|
|
43787
|
+
/* @__PURE__ */ React272.createElement(
|
|
43699
43788
|
Box,
|
|
43700
43789
|
{
|
|
43701
43790
|
marginTop: "12"
|
|
43702
43791
|
},
|
|
43703
43792
|
children
|
|
43704
43793
|
)
|
|
43705
|
-
)))), children && /* @__PURE__ */
|
|
43794
|
+
)))), children && /* @__PURE__ */ React272.createElement(
|
|
43706
43795
|
"button",
|
|
43707
43796
|
{
|
|
43708
43797
|
type: "button",
|
|
@@ -43714,13 +43803,13 @@ var FunNotificationBanner = ({
|
|
|
43714
43803
|
},
|
|
43715
43804
|
className: showMoreButtonStyle
|
|
43716
43805
|
},
|
|
43717
|
-
/* @__PURE__ */
|
|
43806
|
+
/* @__PURE__ */ React272.createElement(
|
|
43718
43807
|
Text,
|
|
43719
43808
|
{
|
|
43720
43809
|
size: "12",
|
|
43721
43810
|
color: { base: "secondaryText", hover: "primaryText" }
|
|
43722
43811
|
},
|
|
43723
|
-
/* @__PURE__ */
|
|
43812
|
+
/* @__PURE__ */ React272.createElement(Box, { paddingY: "8", textAlign: "center" }, showMore ? "See less" : "See more")
|
|
43724
43813
|
)
|
|
43725
43814
|
))
|
|
43726
43815
|
) : null);
|
|
@@ -43779,7 +43868,7 @@ var CheckoutNotification = ({
|
|
|
43779
43868
|
return null;
|
|
43780
43869
|
}
|
|
43781
43870
|
const normalizedTicker = initSettings.config.targetAssetTicker?.toUpperCase();
|
|
43782
|
-
return /* @__PURE__ */
|
|
43871
|
+
return /* @__PURE__ */ React273.createElement(
|
|
43783
43872
|
FunNotificationBanner,
|
|
43784
43873
|
{
|
|
43785
43874
|
description: parseDescription(checkout, t),
|
|
@@ -43793,7 +43882,7 @@ var CheckoutNotification = ({
|
|
|
43793
43882
|
},
|
|
43794
43883
|
onShowMore: trackShowMore
|
|
43795
43884
|
},
|
|
43796
|
-
/* @__PURE__ */
|
|
43885
|
+
/* @__PURE__ */ React273.createElement(
|
|
43797
43886
|
Box,
|
|
43798
43887
|
{
|
|
43799
43888
|
paddingY: "8",
|
|
@@ -43804,7 +43893,7 @@ var CheckoutNotification = ({
|
|
|
43804
43893
|
borderWidth: "1",
|
|
43805
43894
|
borderStyle: "solid"
|
|
43806
43895
|
},
|
|
43807
|
-
/* @__PURE__ */
|
|
43896
|
+
/* @__PURE__ */ React273.createElement(OrderDetailSection, { checkoutHistoryItem: checkout })
|
|
43808
43897
|
)
|
|
43809
43898
|
);
|
|
43810
43899
|
};
|
|
@@ -43839,25 +43928,25 @@ var parseDescription = (checkout, t) => {
|
|
|
43839
43928
|
return t("transaction.depositHasBeenCredited");
|
|
43840
43929
|
}
|
|
43841
43930
|
if (checkout.refundState === "REFUNDED" || checkout.refundState === "ERROR") {
|
|
43842
|
-
return /* @__PURE__ */
|
|
43843
|
-
|
|
43931
|
+
return /* @__PURE__ */ React273.createElement(
|
|
43932
|
+
Trans17,
|
|
43844
43933
|
{
|
|
43845
43934
|
t,
|
|
43846
43935
|
i18nKey: "transaction.depositDidntCompleteError",
|
|
43847
43936
|
components: {
|
|
43848
|
-
ContactSupportLink: /* @__PURE__ */
|
|
43937
|
+
ContactSupportLink: /* @__PURE__ */ React273.createElement(ContactSupportLink, null)
|
|
43849
43938
|
}
|
|
43850
43939
|
}
|
|
43851
43940
|
);
|
|
43852
43941
|
}
|
|
43853
43942
|
if (isError || checkout.refundState) {
|
|
43854
|
-
return /* @__PURE__ */
|
|
43855
|
-
|
|
43943
|
+
return /* @__PURE__ */ React273.createElement(
|
|
43944
|
+
Trans17,
|
|
43856
43945
|
{
|
|
43857
43946
|
t,
|
|
43858
43947
|
i18nKey: "transaction.depositDidntCompleteFundsSafe",
|
|
43859
43948
|
components: {
|
|
43860
|
-
ContactSupportLink: /* @__PURE__ */
|
|
43949
|
+
ContactSupportLink: /* @__PURE__ */ React273.createElement(ContactSupportLink, null)
|
|
43861
43950
|
}
|
|
43862
43951
|
}
|
|
43863
43952
|
);
|
|
@@ -43866,7 +43955,7 @@ var parseDescription = (checkout, t) => {
|
|
|
43866
43955
|
};
|
|
43867
43956
|
var parseDisclaimer = (checkout, onHelp, t) => {
|
|
43868
43957
|
const { isError } = getCheckoutStateBooleans(checkout.state);
|
|
43869
|
-
const contactLink = /* @__PURE__ */
|
|
43958
|
+
const contactLink = /* @__PURE__ */ React273.createElement(
|
|
43870
43959
|
FunLinkButton,
|
|
43871
43960
|
{
|
|
43872
43961
|
text: t("transaction.contactUs"),
|
|
@@ -43877,8 +43966,8 @@ var parseDisclaimer = (checkout, onHelp, t) => {
|
|
|
43877
43966
|
}
|
|
43878
43967
|
);
|
|
43879
43968
|
if (isError) {
|
|
43880
|
-
return /* @__PURE__ */
|
|
43881
|
-
|
|
43969
|
+
return /* @__PURE__ */ React273.createElement(
|
|
43970
|
+
Trans17,
|
|
43882
43971
|
{
|
|
43883
43972
|
i18nKey: "transaction.depositBeingProcessedFull",
|
|
43884
43973
|
components: {
|
|
@@ -43891,8 +43980,8 @@ var parseDisclaimer = (checkout, onHelp, t) => {
|
|
|
43891
43980
|
return t("checkout.orderRefunded");
|
|
43892
43981
|
}
|
|
43893
43982
|
if (checkout.refundState === "PROCEEDED" || isDelayed(checkout)) {
|
|
43894
|
-
return /* @__PURE__ */
|
|
43895
|
-
|
|
43983
|
+
return /* @__PURE__ */ React273.createElement(
|
|
43984
|
+
Trans17,
|
|
43896
43985
|
{
|
|
43897
43986
|
i18nKey: "transaction.transactionDelayedFundsSafeFull",
|
|
43898
43987
|
components: {
|
|
@@ -43904,8 +43993,8 @@ var parseDisclaimer = (checkout, onHelp, t) => {
|
|
|
43904
43993
|
};
|
|
43905
43994
|
|
|
43906
43995
|
// src/modals/CheckoutModal/TransferToken/DirectExecutionNotification.tsx
|
|
43907
|
-
import
|
|
43908
|
-
import { Trans as
|
|
43996
|
+
import React274 from "react";
|
|
43997
|
+
import { Trans as Trans18 } from "react-i18next";
|
|
43909
43998
|
var mapDirectExecutionStateToNotificationStatus = (isProcessing, isDelayed2, isRefunded, isCompleted, isFailed) => {
|
|
43910
43999
|
if (isProcessing) {
|
|
43911
44000
|
return "processing";
|
|
@@ -43988,13 +44077,13 @@ var DirectExecutionNotification = ({
|
|
|
43988
44077
|
delayed: t("transaction.depositWillBeCredited"),
|
|
43989
44078
|
completed: t("transaction.depositHasBeenCredited"),
|
|
43990
44079
|
// Relay refunded which either goes back to user (balance flow) or reprocessed (qr code)
|
|
43991
|
-
expired: /* @__PURE__ */
|
|
43992
|
-
|
|
44080
|
+
expired: /* @__PURE__ */ React274.createElement(
|
|
44081
|
+
Trans18,
|
|
43993
44082
|
{
|
|
43994
44083
|
t,
|
|
43995
44084
|
i18nKey: "transaction.depositRefundedOrReprocessed",
|
|
43996
44085
|
components: {
|
|
43997
|
-
ContactSupportLink: /* @__PURE__ */
|
|
44086
|
+
ContactSupportLink: /* @__PURE__ */ React274.createElement(ContactSupportLink, null)
|
|
43998
44087
|
}
|
|
43999
44088
|
}
|
|
44000
44089
|
),
|
|
@@ -44013,7 +44102,7 @@ var DirectExecutionNotification = ({
|
|
|
44013
44102
|
status: notificationStatus
|
|
44014
44103
|
});
|
|
44015
44104
|
const normalizedTicker = initSettings.config.targetAssetTicker?.toUpperCase();
|
|
44016
|
-
return /* @__PURE__ */
|
|
44105
|
+
return /* @__PURE__ */ React274.createElement(
|
|
44017
44106
|
FunNotificationBanner,
|
|
44018
44107
|
{
|
|
44019
44108
|
title: getNotificationContent(
|
|
@@ -44041,7 +44130,7 @@ var DirectExecutionNotification = ({
|
|
|
44041
44130
|
},
|
|
44042
44131
|
onShowMore: trackShowMore
|
|
44043
44132
|
},
|
|
44044
|
-
/* @__PURE__ */
|
|
44133
|
+
/* @__PURE__ */ React274.createElement(
|
|
44045
44134
|
Box,
|
|
44046
44135
|
{
|
|
44047
44136
|
paddingY: "8",
|
|
@@ -44052,12 +44141,12 @@ var DirectExecutionNotification = ({
|
|
|
44052
44141
|
borderWidth: "1",
|
|
44053
44142
|
borderStyle: "solid"
|
|
44054
44143
|
},
|
|
44055
|
-
/* @__PURE__ */
|
|
44144
|
+
/* @__PURE__ */ React274.createElement(DirectExecutionOrderDetailSection, { directExecution })
|
|
44056
44145
|
)
|
|
44057
44146
|
);
|
|
44058
44147
|
};
|
|
44059
44148
|
var parseDisclaimer2 = (t, isRefunded, isDelayed2, isFailed, onHelp) => {
|
|
44060
|
-
const contactLink = /* @__PURE__ */
|
|
44149
|
+
const contactLink = /* @__PURE__ */ React274.createElement(
|
|
44061
44150
|
FunLinkButton,
|
|
44062
44151
|
{
|
|
44063
44152
|
text: t("transaction.contactUs"),
|
|
@@ -44068,8 +44157,8 @@ var parseDisclaimer2 = (t, isRefunded, isDelayed2, isFailed, onHelp) => {
|
|
|
44068
44157
|
}
|
|
44069
44158
|
);
|
|
44070
44159
|
if (isFailed || isRefunded) {
|
|
44071
|
-
return /* @__PURE__ */
|
|
44072
|
-
|
|
44160
|
+
return /* @__PURE__ */ React274.createElement(
|
|
44161
|
+
Trans18,
|
|
44073
44162
|
{
|
|
44074
44163
|
i18nKey: "transaction.depositDidntCompleteFull",
|
|
44075
44164
|
components: {
|
|
@@ -44079,8 +44168,8 @@ var parseDisclaimer2 = (t, isRefunded, isDelayed2, isFailed, onHelp) => {
|
|
|
44079
44168
|
);
|
|
44080
44169
|
}
|
|
44081
44170
|
if (isDelayed2) {
|
|
44082
|
-
return /* @__PURE__ */
|
|
44083
|
-
|
|
44171
|
+
return /* @__PURE__ */ React274.createElement(
|
|
44172
|
+
Trans18,
|
|
44084
44173
|
{
|
|
44085
44174
|
i18nKey: "transaction.depositDelayedFundsSafeFull",
|
|
44086
44175
|
components: {
|
|
@@ -44114,13 +44203,13 @@ var CheckoutNotifications = ({
|
|
|
44114
44203
|
isVisible,
|
|
44115
44204
|
memoizedFilterFunc: filterFunc
|
|
44116
44205
|
});
|
|
44117
|
-
|
|
44206
|
+
useEffect69(() => {
|
|
44118
44207
|
if (initialCheckouts || !checkouts) {
|
|
44119
44208
|
return;
|
|
44120
44209
|
}
|
|
44121
44210
|
setInitialCheckouts(checkouts);
|
|
44122
44211
|
}, [initialCheckouts, checkouts]);
|
|
44123
|
-
|
|
44212
|
+
useEffect69(() => {
|
|
44124
44213
|
if (initialDirectExecutions || !directExecutions) {
|
|
44125
44214
|
return;
|
|
44126
44215
|
}
|
|
@@ -44167,7 +44256,7 @@ var CheckoutNotifications = ({
|
|
|
44167
44256
|
if (!isVisible) {
|
|
44168
44257
|
return null;
|
|
44169
44258
|
}
|
|
44170
|
-
return /* @__PURE__ */
|
|
44259
|
+
return /* @__PURE__ */ React275.createElement(
|
|
44171
44260
|
Box,
|
|
44172
44261
|
{
|
|
44173
44262
|
position: "absolute",
|
|
@@ -44175,9 +44264,9 @@ var CheckoutNotifications = ({
|
|
|
44175
44264
|
maxHeight: "full",
|
|
44176
44265
|
style: { bottom: 0, left: 0, right: 0, zIndex: OVERLAY_Z_INDEX }
|
|
44177
44266
|
},
|
|
44178
|
-
/* @__PURE__ */
|
|
44267
|
+
/* @__PURE__ */ React275.createElement(Box, { display: "flex", flexDirection: "column", gap: "8", padding: "8" }, displayedNotifications.map((item) => {
|
|
44179
44268
|
if (item.isDirectExecution) {
|
|
44180
|
-
return /* @__PURE__ */
|
|
44269
|
+
return /* @__PURE__ */ React275.createElement(
|
|
44181
44270
|
DirectExecutionNotification,
|
|
44182
44271
|
{
|
|
44183
44272
|
key: getDirectExecutionNotificationKey(item),
|
|
@@ -44187,7 +44276,7 @@ var CheckoutNotifications = ({
|
|
|
44187
44276
|
}
|
|
44188
44277
|
);
|
|
44189
44278
|
}
|
|
44190
|
-
return /* @__PURE__ */
|
|
44279
|
+
return /* @__PURE__ */ React275.createElement(
|
|
44191
44280
|
CheckoutNotification,
|
|
44192
44281
|
{
|
|
44193
44282
|
key: item.depositAddr,
|
|
@@ -44196,7 +44285,7 @@ var CheckoutNotifications = ({
|
|
|
44196
44285
|
onHelp
|
|
44197
44286
|
}
|
|
44198
44287
|
);
|
|
44199
|
-
}), combinedNotifications.length > COLLAPSED_COUNT && /* @__PURE__ */
|
|
44288
|
+
}), combinedNotifications.length > COLLAPSED_COUNT && /* @__PURE__ */ React275.createElement(
|
|
44200
44289
|
FunNotificationShowMoreButton,
|
|
44201
44290
|
{
|
|
44202
44291
|
isExpanded,
|
|
@@ -44224,7 +44313,7 @@ var getUpdatedDirectExecutions = (directExecutions, initialDirectExecutions) =>
|
|
|
44224
44313
|
};
|
|
44225
44314
|
|
|
44226
44315
|
// src/modals/CheckoutModal/useCheckoutBlocked.ts
|
|
44227
|
-
import { useEffect as
|
|
44316
|
+
import { useEffect as useEffect70 } from "react";
|
|
44228
44317
|
var geoblockedViewableSteps = /* @__PURE__ */ new Set([
|
|
44229
44318
|
"loading_account" /* LOADING_ACCOUNT */,
|
|
44230
44319
|
"source_change" /* SOURCE_CHANGE */
|
|
@@ -44262,7 +44351,7 @@ function useCheckoutBlocked(params) {
|
|
|
44262
44351
|
params.onCheckoutBlocked?.({ blockedReason: reason });
|
|
44263
44352
|
}
|
|
44264
44353
|
);
|
|
44265
|
-
|
|
44354
|
+
useEffect70(() => {
|
|
44266
44355
|
if (blockedReason) {
|
|
44267
44356
|
onCheckoutBlockedEvent(blockedReason);
|
|
44268
44357
|
}
|
|
@@ -44296,7 +44385,7 @@ function useCheckoutModalQueryPreload() {
|
|
|
44296
44385
|
function FunCheckoutModalStepComponent(props) {
|
|
44297
44386
|
useCheckoutModalQueryPreload();
|
|
44298
44387
|
const { Component: Component2 } = CheckoutModalSteps[props.modalState.step];
|
|
44299
|
-
return /* @__PURE__ */
|
|
44388
|
+
return /* @__PURE__ */ React276.createElement(Component2, { ...props });
|
|
44300
44389
|
}
|
|
44301
44390
|
function getSwappedExtraPaddingExcludedSteps(startingStep) {
|
|
44302
44391
|
const steps = ["source_change" /* SOURCE_CHANGE */];
|
|
@@ -44362,7 +44451,7 @@ function FunCheckoutModalInner({
|
|
|
44362
44451
|
setModalState
|
|
44363
44452
|
};
|
|
44364
44453
|
const connectionStatus = useConnectionStatus();
|
|
44365
|
-
|
|
44454
|
+
useEffect71(() => {
|
|
44366
44455
|
if (!modalState.showWalletOptions) {
|
|
44367
44456
|
return;
|
|
44368
44457
|
}
|
|
@@ -44389,7 +44478,7 @@ function FunCheckoutModalInner({
|
|
|
44389
44478
|
isActiveCheckout: true,
|
|
44390
44479
|
isCheckoutDetailView: modalState.step === "checkout_complete" /* CHECKOUT_COMPLETE */,
|
|
44391
44480
|
paddingTop: 0,
|
|
44392
|
-
topbar: /* @__PURE__ */
|
|
44481
|
+
topbar: /* @__PURE__ */ React276.createElement(
|
|
44393
44482
|
Dialog.Title,
|
|
44394
44483
|
{
|
|
44395
44484
|
hasBackButton: hasBack && !showBlockedUI,
|
|
@@ -44409,7 +44498,7 @@ function FunCheckoutModalInner({
|
|
|
44409
44498
|
modalState.step
|
|
44410
44499
|
) && isSwappedEnabled;
|
|
44411
44500
|
const isSourceChangeLikeStep = modalState.step === "source_change" /* SOURCE_CHANGE */ || modalState.step === "loading_account" /* LOADING_ACCOUNT */ && startingStep !== "confirmation" /* CONFIRMATION */ && startingStep !== "select_asset" /* SELECT_ASSET */;
|
|
44412
|
-
return /* @__PURE__ */
|
|
44501
|
+
return /* @__PURE__ */ React276.createElement(
|
|
44413
44502
|
Dialog,
|
|
44414
44503
|
{
|
|
44415
44504
|
open,
|
|
@@ -44421,13 +44510,13 @@ function FunCheckoutModalInner({
|
|
|
44421
44510
|
testId: "checkout-modal",
|
|
44422
44511
|
isFanaticsBottomSheet: isFanatics
|
|
44423
44512
|
},
|
|
44424
|
-
/* @__PURE__ */
|
|
44513
|
+
/* @__PURE__ */ React276.createElement(SwappedProvider, null, /* @__PURE__ */ React276.createElement(TooltipAnchorRefContext.Provider, { value: tooltipAnchorRef }, /* @__PURE__ */ React276.createElement(
|
|
44425
44514
|
FunCheckoutModalHeightAnimationWrapper,
|
|
44426
44515
|
{
|
|
44427
44516
|
checkoutConfig,
|
|
44428
44517
|
checkoutStep: modalState.step
|
|
44429
44518
|
},
|
|
44430
|
-
modalState.showWalletOptions ? /* @__PURE__ */
|
|
44519
|
+
modalState.showWalletOptions ? /* @__PURE__ */ React276.createElement(
|
|
44431
44520
|
FunConnectOptions,
|
|
44432
44521
|
{
|
|
44433
44522
|
initialScreenOnBack: () => setModalState((state) => ({
|
|
@@ -44443,7 +44532,7 @@ function FunCheckoutModalInner({
|
|
|
44443
44532
|
},
|
|
44444
44533
|
walletsOnly: true
|
|
44445
44534
|
}
|
|
44446
|
-
) : /* @__PURE__ */
|
|
44535
|
+
) : /* @__PURE__ */ React276.createElement(React276.Fragment, null, !hideTopbar && topbar, /* @__PURE__ */ React276.createElement(
|
|
44447
44536
|
Dialog.Content,
|
|
44448
44537
|
{
|
|
44449
44538
|
fullHeight: showFullHeight || hideTopbar,
|
|
@@ -44457,17 +44546,17 @@ function FunCheckoutModalInner({
|
|
|
44457
44546
|
extraContentTopPadding: !shouldSkipExtraContentTopPadding,
|
|
44458
44547
|
withChildScrollArea: isSourceChangeLikeStep
|
|
44459
44548
|
},
|
|
44460
|
-
showBlockedUI ? /* @__PURE__ */
|
|
44461
|
-
/* @__PURE__ */
|
|
44549
|
+
showBlockedUI ? /* @__PURE__ */ React276.createElement(FunCheckoutBlocked, { reason: blockedReason }) : /* @__PURE__ */ React276.createElement(FunCheckoutModalStepComponent, { ...modalProps }),
|
|
44550
|
+
/* @__PURE__ */ React276.createElement("div", { ref: tooltipAnchorRef })
|
|
44462
44551
|
)),
|
|
44463
|
-
/* @__PURE__ */
|
|
44552
|
+
/* @__PURE__ */ React276.createElement(
|
|
44464
44553
|
Dialog.BottomSection,
|
|
44465
44554
|
{
|
|
44466
44555
|
id: MODAL_BOTTOM_BAR_IDS.checkout,
|
|
44467
44556
|
display: modalState.showWalletOptions ? "none" : "block"
|
|
44468
44557
|
}
|
|
44469
44558
|
),
|
|
44470
|
-
!showBlockedUI && /* @__PURE__ */
|
|
44559
|
+
!showBlockedUI && /* @__PURE__ */ React276.createElement(
|
|
44471
44560
|
CheckoutNotifications,
|
|
44472
44561
|
{
|
|
44473
44562
|
onHelp: handleCheckoutHelp,
|
|
@@ -44475,7 +44564,7 @@ function FunCheckoutModalInner({
|
|
|
44475
44564
|
variant: modalState.step === "transfer_token" /* TRANSFER_TOKEN */ ? "token_transfer" : void 0
|
|
44476
44565
|
}
|
|
44477
44566
|
)
|
|
44478
|
-
), /* @__PURE__ */
|
|
44567
|
+
), /* @__PURE__ */ React276.createElement(SwappedIframe_default, null)))
|
|
44479
44568
|
);
|
|
44480
44569
|
}
|
|
44481
44570
|
function FunCheckoutModal({
|
|
@@ -44487,7 +44576,7 @@ function FunCheckoutModal({
|
|
|
44487
44576
|
if (!checkoutItem) {
|
|
44488
44577
|
return null;
|
|
44489
44578
|
}
|
|
44490
|
-
return /* @__PURE__ */
|
|
44579
|
+
return /* @__PURE__ */ React276.createElement(
|
|
44491
44580
|
FunCheckoutModalInner,
|
|
44492
44581
|
{
|
|
44493
44582
|
checkoutItem,
|
|
@@ -44507,20 +44596,20 @@ var hideModalTitleMetaIfTrue = (checkoutConfig, hideModalMeta) => {
|
|
|
44507
44596
|
};
|
|
44508
44597
|
|
|
44509
44598
|
// src/modals/ConnectModal/ConnectModal.tsx
|
|
44510
|
-
import
|
|
44599
|
+
import React277 from "react";
|
|
44511
44600
|
var TITLE_ID2 = "rk-connect-modal-title";
|
|
44512
44601
|
function ConnectModal({ onClose, open }) {
|
|
44513
44602
|
const connectionStatus = useConnectionStatus();
|
|
44514
44603
|
const { disconnect } = useFunkitDisconnect();
|
|
44515
44604
|
const { isConnecting } = useAccount();
|
|
44516
|
-
const onConnectModalCancel =
|
|
44605
|
+
const onConnectModalCancel = React277.useCallback(() => {
|
|
44517
44606
|
if (isConnecting) {
|
|
44518
44607
|
disconnect();
|
|
44519
44608
|
}
|
|
44520
44609
|
onClose();
|
|
44521
44610
|
}, [onClose, disconnect, isConnecting]);
|
|
44522
44611
|
if (connectionStatus === "disconnected" || connectionStatus === "loading") {
|
|
44523
|
-
return /* @__PURE__ */
|
|
44612
|
+
return /* @__PURE__ */ React277.createElement(
|
|
44524
44613
|
Dialog,
|
|
44525
44614
|
{
|
|
44526
44615
|
onClose: onConnectModalCancel,
|
|
@@ -44528,7 +44617,7 @@ function ConnectModal({ onClose, open }) {
|
|
|
44528
44617
|
titleId: TITLE_ID2,
|
|
44529
44618
|
isSmartCloseable: true
|
|
44530
44619
|
},
|
|
44531
|
-
/* @__PURE__ */
|
|
44620
|
+
/* @__PURE__ */ React277.createElement(FunCheckoutModalHeightAnimationWrapper, null, /* @__PURE__ */ React277.createElement(FunConnectOptions, { onClose: onConnectModalCancel }))
|
|
44532
44621
|
);
|
|
44533
44622
|
}
|
|
44534
44623
|
return null;
|
|
@@ -44640,12 +44729,12 @@ function ModalProvider({ children }) {
|
|
|
44640
44729
|
onConnect: () => closeModals(isUnauthenticated),
|
|
44641
44730
|
onDisconnect: closeModals
|
|
44642
44731
|
});
|
|
44643
|
-
|
|
44732
|
+
useEffect72(() => {
|
|
44644
44733
|
if (isUnauthenticated) {
|
|
44645
44734
|
closeModals();
|
|
44646
44735
|
}
|
|
44647
44736
|
}, [isUnauthenticated]);
|
|
44648
|
-
return /* @__PURE__ */
|
|
44737
|
+
return /* @__PURE__ */ React278.createElement(
|
|
44649
44738
|
ModalContext.Provider,
|
|
44650
44739
|
{
|
|
44651
44740
|
value: useMemo60(
|
|
@@ -44691,8 +44780,8 @@ function ModalProvider({ children }) {
|
|
|
44691
44780
|
)
|
|
44692
44781
|
},
|
|
44693
44782
|
children,
|
|
44694
|
-
/* @__PURE__ */
|
|
44695
|
-
/* @__PURE__ */
|
|
44783
|
+
/* @__PURE__ */ React278.createElement(ConnectModal, { onClose: closeConnectModal, open: connectModalOpen }),
|
|
44784
|
+
/* @__PURE__ */ React278.createElement(
|
|
44696
44785
|
AccountModal,
|
|
44697
44786
|
{
|
|
44698
44787
|
onClose: closeAccountModal,
|
|
@@ -44700,8 +44789,8 @@ function ModalProvider({ children }) {
|
|
|
44700
44789
|
defaultTab: accountModalTab
|
|
44701
44790
|
}
|
|
44702
44791
|
),
|
|
44703
|
-
/* @__PURE__ */
|
|
44704
|
-
/* @__PURE__ */
|
|
44792
|
+
/* @__PURE__ */ React278.createElement(ChainModal, { onClose: closeChainModal, open: chainModalOpen }),
|
|
44793
|
+
/* @__PURE__ */ React278.createElement(
|
|
44705
44794
|
FunCheckoutModal,
|
|
44706
44795
|
{
|
|
44707
44796
|
onClose: closeFunCheckoutModal,
|
|
@@ -44710,7 +44799,7 @@ function ModalProvider({ children }) {
|
|
|
44710
44799
|
key: softHiddenCheckoutId ?? funCheckoutModalId
|
|
44711
44800
|
}
|
|
44712
44801
|
),
|
|
44713
|
-
withdrawalModalConfig && /* @__PURE__ */
|
|
44802
|
+
withdrawalModalConfig && /* @__PURE__ */ React278.createElement(
|
|
44714
44803
|
WithdrawalModal,
|
|
44715
44804
|
{
|
|
44716
44805
|
onClose: closeWithdrawalModal,
|
|
@@ -44745,7 +44834,7 @@ function useConnectModal(onClose) {
|
|
|
44745
44834
|
const { connectModalOpen, openConnectModal } = useContext20(ModalContext);
|
|
44746
44835
|
const { isWalletConnectModalOpen } = useWalletConnectOpenState();
|
|
44747
44836
|
const effectiveConnectModalOpen = connectModalOpen || isWalletConnectModalOpen;
|
|
44748
|
-
|
|
44837
|
+
useEffect72(() => {
|
|
44749
44838
|
if (!effectiveConnectModalOpen && onClose) {
|
|
44750
44839
|
onClose();
|
|
44751
44840
|
}
|
|
@@ -44841,7 +44930,7 @@ function FunkitCheckoutProvider({ children }) {
|
|
|
44841
44930
|
},
|
|
44842
44931
|
[]
|
|
44843
44932
|
);
|
|
44844
|
-
|
|
44933
|
+
useEffect73(() => {
|
|
44845
44934
|
if (isNotNullish8(logoutSymbol)) {
|
|
44846
44935
|
setActiveCheckout(null);
|
|
44847
44936
|
}
|
|
@@ -45390,7 +45479,7 @@ function FunkitCheckoutProvider({ children }) {
|
|
|
45390
45479
|
applyDynamicRouting,
|
|
45391
45480
|
updateDynamicRoutingId
|
|
45392
45481
|
};
|
|
45393
|
-
return /* @__PURE__ */
|
|
45482
|
+
return /* @__PURE__ */ React279.createElement(FunkitCheckoutContext.Provider, { value: contextValue }, children);
|
|
45394
45483
|
}
|
|
45395
45484
|
function useCheckoutContext() {
|
|
45396
45485
|
return useContext21(FunkitCheckoutContext);
|
|
@@ -45551,13 +45640,13 @@ function useFunkitCheckout(props) {
|
|
|
45551
45640
|
});
|
|
45552
45641
|
openWithdrawalModal?.({ withdrawalId, ...config });
|
|
45553
45642
|
});
|
|
45554
|
-
|
|
45643
|
+
useEffect73(() => {
|
|
45555
45644
|
if (isUserLoggedIn && pendingCheckoutConfig) {
|
|
45556
45645
|
setPendingCheckoutConfig(void 0);
|
|
45557
45646
|
beginCheckout(pendingCheckoutConfig);
|
|
45558
45647
|
}
|
|
45559
45648
|
}, [beginCheckout, isUserLoggedIn, pendingCheckoutConfig]);
|
|
45560
|
-
|
|
45649
|
+
useEffect73(() => {
|
|
45561
45650
|
if (pendingCheckoutConfig && !isUserLoggedIn && !connectModalOpen) {
|
|
45562
45651
|
setPendingCheckoutConfig(void 0);
|
|
45563
45652
|
}
|
|
@@ -46170,7 +46259,7 @@ function ConnectButtonRenderer({
|
|
|
46170
46259
|
const { openChainModal } = useChainModal();
|
|
46171
46260
|
const { openAccountModal } = useAccountModal();
|
|
46172
46261
|
const { accountModalOpen, chainModalOpen, connectModalOpen } = useModalState();
|
|
46173
|
-
return /* @__PURE__ */
|
|
46262
|
+
return /* @__PURE__ */ React280.createElement(React280.Fragment, null, children({
|
|
46174
46263
|
account: address ? {
|
|
46175
46264
|
address,
|
|
46176
46265
|
balanceDecimals: balanceData?.decimals,
|
|
@@ -46227,7 +46316,7 @@ function ChainSelectorButton({
|
|
|
46227
46316
|
chain
|
|
46228
46317
|
}) {
|
|
46229
46318
|
const { t } = useFunkitTranslation();
|
|
46230
|
-
return /* @__PURE__ */
|
|
46319
|
+
return /* @__PURE__ */ React281.createElement(
|
|
46231
46320
|
Box,
|
|
46232
46321
|
{
|
|
46233
46322
|
alignItems: "center",
|
|
@@ -46255,7 +46344,7 @@ function ChainSelectorButton({
|
|
|
46255
46344
|
type: "button",
|
|
46256
46345
|
...connectButtonStyles
|
|
46257
46346
|
},
|
|
46258
|
-
unsupportedChain ? /* @__PURE__ */
|
|
46347
|
+
unsupportedChain ? /* @__PURE__ */ React281.createElement(Box, { alignItems: "center", display: "flex", height: "24", paddingX: "4" }, t("chainModal.wrongNetwork")) : /* @__PURE__ */ React281.createElement(Box, { alignItems: "center", display: "flex", gap: "6" }, chain.hasIcon ? /* @__PURE__ */ React281.createElement(
|
|
46259
46348
|
Box,
|
|
46260
46349
|
{
|
|
46261
46350
|
display: mapResponsiveValue(
|
|
@@ -46265,7 +46354,7 @@ function ChainSelectorButton({
|
|
|
46265
46354
|
height: "12",
|
|
46266
46355
|
width: "12"
|
|
46267
46356
|
},
|
|
46268
|
-
/* @__PURE__ */
|
|
46357
|
+
/* @__PURE__ */ React281.createElement(
|
|
46269
46358
|
AsyncImage,
|
|
46270
46359
|
{
|
|
46271
46360
|
alt: chain.name ?? "Chain icon",
|
|
@@ -46276,7 +46365,7 @@ function ChainSelectorButton({
|
|
|
46276
46365
|
src: chain.iconUrl
|
|
46277
46366
|
}
|
|
46278
46367
|
)
|
|
46279
|
-
) : null, /* @__PURE__ */
|
|
46368
|
+
) : null, /* @__PURE__ */ React281.createElement(
|
|
46280
46369
|
Box,
|
|
46281
46370
|
{
|
|
46282
46371
|
display: mapResponsiveValue(chainStatus, (value) => {
|
|
@@ -46296,7 +46385,7 @@ function AccountButton({
|
|
|
46296
46385
|
showBalance,
|
|
46297
46386
|
accountStatus
|
|
46298
46387
|
}) {
|
|
46299
|
-
return /* @__PURE__ */
|
|
46388
|
+
return /* @__PURE__ */ React281.createElement(
|
|
46300
46389
|
Box,
|
|
46301
46390
|
{
|
|
46302
46391
|
alignItems: "center",
|
|
@@ -46316,7 +46405,7 @@ function AccountButton({
|
|
|
46316
46405
|
gap: "16",
|
|
46317
46406
|
...connectButtonStyles
|
|
46318
46407
|
},
|
|
46319
|
-
account.displayBalance && /* @__PURE__ */
|
|
46408
|
+
account.displayBalance && /* @__PURE__ */ React281.createElement(
|
|
46320
46409
|
Box,
|
|
46321
46410
|
{
|
|
46322
46411
|
display: mapResponsiveValue(
|
|
@@ -46326,7 +46415,7 @@ function AccountButton({
|
|
|
46326
46415
|
},
|
|
46327
46416
|
account.displayBalance
|
|
46328
46417
|
),
|
|
46329
|
-
/* @__PURE__ */
|
|
46418
|
+
/* @__PURE__ */ React281.createElement(Box, { alignItems: "center", display: "flex", gap: "6" }, /* @__PURE__ */ React281.createElement(
|
|
46330
46419
|
Box,
|
|
46331
46420
|
{
|
|
46332
46421
|
display: mapResponsiveValue(
|
|
@@ -46334,7 +46423,7 @@ function AccountButton({
|
|
|
46334
46423
|
(value) => value === "full" || value === "avatar" ? "block" : "none"
|
|
46335
46424
|
)
|
|
46336
46425
|
},
|
|
46337
|
-
/* @__PURE__ */
|
|
46426
|
+
/* @__PURE__ */ React281.createElement(
|
|
46338
46427
|
Avatar,
|
|
46339
46428
|
{
|
|
46340
46429
|
address: account.address,
|
|
@@ -46343,7 +46432,7 @@ function AccountButton({
|
|
|
46343
46432
|
size: 12
|
|
46344
46433
|
}
|
|
46345
46434
|
)
|
|
46346
|
-
), /* @__PURE__ */
|
|
46435
|
+
), /* @__PURE__ */ React281.createElement(
|
|
46347
46436
|
Box,
|
|
46348
46437
|
{
|
|
46349
46438
|
display: mapResponsiveValue(
|
|
@@ -46370,13 +46459,13 @@ function ConnectButton({
|
|
|
46370
46459
|
const connectionStatus = useConnectionStatus();
|
|
46371
46460
|
const { setShowBalance } = useShowBalance();
|
|
46372
46461
|
const [ready, setReady] = useState82(false);
|
|
46373
|
-
|
|
46462
|
+
useEffect74(() => {
|
|
46374
46463
|
setShowBalance(showBalance);
|
|
46375
46464
|
if (!ready) {
|
|
46376
46465
|
setReady(true);
|
|
46377
46466
|
}
|
|
46378
46467
|
}, [showBalance, setShowBalance, ready]);
|
|
46379
|
-
return ready ? /* @__PURE__ */
|
|
46468
|
+
return ready ? /* @__PURE__ */ React281.createElement(ConnectButtonRenderer, null, ({
|
|
46380
46469
|
account,
|
|
46381
46470
|
chain,
|
|
46382
46471
|
mounted,
|
|
@@ -46386,7 +46475,7 @@ function ConnectButton({
|
|
|
46386
46475
|
}) => {
|
|
46387
46476
|
const ready2 = mounted && connectionStatus !== "loading";
|
|
46388
46477
|
const unsupportedChain = chain?.unsupported ?? false;
|
|
46389
|
-
return /* @__PURE__ */
|
|
46478
|
+
return /* @__PURE__ */ React281.createElement(
|
|
46390
46479
|
Box,
|
|
46391
46480
|
{
|
|
46392
46481
|
display: "flex",
|
|
@@ -46402,7 +46491,7 @@ function ConnectButton({
|
|
|
46402
46491
|
},
|
|
46403
46492
|
ready2 && account && connectionStatus === "connected" ? (
|
|
46404
46493
|
// Logged in: Chain Button & Account Button
|
|
46405
|
-
/* @__PURE__ */
|
|
46494
|
+
/* @__PURE__ */ React281.createElement(React281.Fragment, null, showChainSelector && chain && (chains.length > 1 || unsupportedChain) && /* @__PURE__ */ React281.createElement(
|
|
46406
46495
|
ChainSelectorButton,
|
|
46407
46496
|
{
|
|
46408
46497
|
unsupportedChain,
|
|
@@ -46410,7 +46499,7 @@ function ConnectButton({
|
|
|
46410
46499
|
openChainModal,
|
|
46411
46500
|
chain
|
|
46412
46501
|
}
|
|
46413
|
-
), !unsupportedChain && /* @__PURE__ */
|
|
46502
|
+
), !unsupportedChain && /* @__PURE__ */ React281.createElement(
|
|
46414
46503
|
AccountButton,
|
|
46415
46504
|
{
|
|
46416
46505
|
openAccountModal,
|
|
@@ -46421,7 +46510,7 @@ function ConnectButton({
|
|
|
46421
46510
|
))
|
|
46422
46511
|
) : (
|
|
46423
46512
|
// Not logged in: Connect Button
|
|
46424
|
-
/* @__PURE__ */
|
|
46513
|
+
/* @__PURE__ */ React281.createElement(
|
|
46425
46514
|
Box,
|
|
46426
46515
|
{
|
|
46427
46516
|
as: "button",
|
|
@@ -46439,19 +46528,19 @@ function ConnectButton({
|
|
|
46439
46528
|
type: "button",
|
|
46440
46529
|
...connectButtonStyles
|
|
46441
46530
|
},
|
|
46442
|
-
/* @__PURE__ */
|
|
46531
|
+
/* @__PURE__ */ React281.createElement(Box, { display: "flex", gap: "8", alignItems: "center" }, mounted && label, suffixIcon)
|
|
46443
46532
|
)
|
|
46444
46533
|
)
|
|
46445
46534
|
);
|
|
46446
|
-
}) : /* @__PURE__ */
|
|
46535
|
+
}) : /* @__PURE__ */ React281.createElement(React281.Fragment, null);
|
|
46447
46536
|
}
|
|
46448
46537
|
ConnectButton.__defaultProps = defaultProps;
|
|
46449
46538
|
ConnectButton.Custom = ConnectButtonRenderer;
|
|
46450
46539
|
|
|
46451
46540
|
// src/components/Icons/FunkitPaymentsIconLine.tsx
|
|
46452
|
-
import
|
|
46541
|
+
import React282 from "react";
|
|
46453
46542
|
function MetaMaskPaymentIcon({ size = 16 }) {
|
|
46454
|
-
return /* @__PURE__ */
|
|
46543
|
+
return /* @__PURE__ */ React282.createElement(
|
|
46455
46544
|
"svg",
|
|
46456
46545
|
{
|
|
46457
46546
|
width: size,
|
|
@@ -46460,7 +46549,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46460
46549
|
fill: "none",
|
|
46461
46550
|
xmlns: "http://www.w3.org/2000/svg"
|
|
46462
46551
|
},
|
|
46463
|
-
/* @__PURE__ */
|
|
46552
|
+
/* @__PURE__ */ React282.createElement(
|
|
46464
46553
|
"path",
|
|
46465
46554
|
{
|
|
46466
46555
|
d: "M24.0891 3.1199L15.3446 9.61456L16.9617 5.7828L24.0891 3.1199Z",
|
|
@@ -46471,7 +46560,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46471
46560
|
strokeLinejoin: "round"
|
|
46472
46561
|
}
|
|
46473
46562
|
),
|
|
46474
|
-
/* @__PURE__ */
|
|
46563
|
+
/* @__PURE__ */ React282.createElement(
|
|
46475
46564
|
"path",
|
|
46476
46565
|
{
|
|
46477
46566
|
d: "M3.90207 3.1199L12.5763 9.67608L11.0383 5.7828L3.90207 3.1199Z",
|
|
@@ -46482,7 +46571,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46482
46571
|
strokeLinejoin: "round"
|
|
46483
46572
|
}
|
|
46484
46573
|
),
|
|
46485
|
-
/* @__PURE__ */
|
|
46574
|
+
/* @__PURE__ */ React282.createElement(
|
|
46486
46575
|
"path",
|
|
46487
46576
|
{
|
|
46488
46577
|
d: "M20.9429 18.1745L18.6139 21.7426L23.597 23.1136L25.0295 18.2536L20.9429 18.1745Z",
|
|
@@ -46493,7 +46582,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46493
46582
|
strokeLinejoin: "round"
|
|
46494
46583
|
}
|
|
46495
46584
|
),
|
|
46496
|
-
/* @__PURE__ */
|
|
46585
|
+
/* @__PURE__ */ React282.createElement(
|
|
46497
46586
|
"path",
|
|
46498
46587
|
{
|
|
46499
46588
|
d: "M2.97929 18.2536L4.40301 23.1136L9.38607 21.7426L7.05713 18.1745L2.97929 18.2536Z",
|
|
@@ -46504,7 +46593,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46504
46593
|
strokeLinejoin: "round"
|
|
46505
46594
|
}
|
|
46506
46595
|
),
|
|
46507
|
-
/* @__PURE__ */
|
|
46596
|
+
/* @__PURE__ */ React282.createElement(
|
|
46508
46597
|
"path",
|
|
46509
46598
|
{
|
|
46510
46599
|
d: "M9.10483 12.1456L7.71626 14.2461L12.6642 14.4658L12.4884 9.14877L9.10483 12.1456Z",
|
|
@@ -46515,7 +46604,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46515
46604
|
strokeLinejoin: "round"
|
|
46516
46605
|
}
|
|
46517
46606
|
),
|
|
46518
|
-
/* @__PURE__ */
|
|
46607
|
+
/* @__PURE__ */ React282.createElement(
|
|
46519
46608
|
"path",
|
|
46520
46609
|
{
|
|
46521
46610
|
d: "M18.8864 12.1456L15.4589 9.08725L15.3446 14.4658L20.2837 14.2461L18.8864 12.1456Z",
|
|
@@ -46526,7 +46615,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46526
46615
|
strokeLinejoin: "round"
|
|
46527
46616
|
}
|
|
46528
46617
|
),
|
|
46529
|
-
/* @__PURE__ */
|
|
46618
|
+
/* @__PURE__ */ React282.createElement(
|
|
46530
46619
|
"path",
|
|
46531
46620
|
{
|
|
46532
46621
|
d: "M9.38606 21.7426L12.3566 20.2925L9.79033 18.2888L9.38606 21.7426Z",
|
|
@@ -46537,7 +46626,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46537
46626
|
strokeLinejoin: "round"
|
|
46538
46627
|
}
|
|
46539
46628
|
),
|
|
46540
|
-
/* @__PURE__ */
|
|
46629
|
+
/* @__PURE__ */ React282.createElement(
|
|
46541
46630
|
"path",
|
|
46542
46631
|
{
|
|
46543
46632
|
d: "M15.6347 20.2925L18.6139 21.7426L18.2009 18.2888L15.6347 20.2925Z",
|
|
@@ -46548,7 +46637,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46548
46637
|
strokeLinejoin: "round"
|
|
46549
46638
|
}
|
|
46550
46639
|
),
|
|
46551
|
-
/* @__PURE__ */
|
|
46640
|
+
/* @__PURE__ */ React282.createElement(
|
|
46552
46641
|
"path",
|
|
46553
46642
|
{
|
|
46554
46643
|
d: "M18.6139 21.7426L15.6347 20.2925L15.8719 22.2348L15.8456 23.0521L18.6139 21.7426Z",
|
|
@@ -46559,7 +46648,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46559
46648
|
strokeLinejoin: "round"
|
|
46560
46649
|
}
|
|
46561
46650
|
),
|
|
46562
|
-
/* @__PURE__ */
|
|
46651
|
+
/* @__PURE__ */ React282.createElement(
|
|
46563
46652
|
"path",
|
|
46564
46653
|
{
|
|
46565
46654
|
d: "M9.38606 21.7426L12.1544 23.0521L12.1368 22.2348L12.3566 20.2925L9.38606 21.7426Z",
|
|
@@ -46570,7 +46659,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46570
46659
|
strokeLinejoin: "round"
|
|
46571
46660
|
}
|
|
46572
46661
|
),
|
|
46573
|
-
/* @__PURE__ */
|
|
46662
|
+
/* @__PURE__ */ React282.createElement(
|
|
46574
46663
|
"path",
|
|
46575
46664
|
{
|
|
46576
46665
|
d: "M12.1984 17.0056L9.72002 16.2762L11.4689 15.4765L12.1984 17.0056Z",
|
|
@@ -46581,7 +46670,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46581
46670
|
strokeLinejoin: "round"
|
|
46582
46671
|
}
|
|
46583
46672
|
),
|
|
46584
|
-
/* @__PURE__ */
|
|
46673
|
+
/* @__PURE__ */ React282.createElement(
|
|
46585
46674
|
"path",
|
|
46586
46675
|
{
|
|
46587
46676
|
d: "M15.7928 17.0056L16.5223 15.4765L18.28 16.2762L15.7928 17.0056Z",
|
|
@@ -46592,7 +46681,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46592
46681
|
strokeLinejoin: "round"
|
|
46593
46682
|
}
|
|
46594
46683
|
),
|
|
46595
|
-
/* @__PURE__ */
|
|
46684
|
+
/* @__PURE__ */ React282.createElement(
|
|
46596
46685
|
"path",
|
|
46597
46686
|
{
|
|
46598
46687
|
d: "M9.38606 21.7426L9.80791 18.1745L7.05712 18.2536L9.38606 21.7426Z",
|
|
@@ -46603,7 +46692,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46603
46692
|
strokeLinejoin: "round"
|
|
46604
46693
|
}
|
|
46605
46694
|
),
|
|
46606
|
-
/* @__PURE__ */
|
|
46695
|
+
/* @__PURE__ */ React282.createElement(
|
|
46607
46696
|
"path",
|
|
46608
46697
|
{
|
|
46609
46698
|
d: "M18.1921 18.1745L18.6139 21.7426L20.9429 18.2536L18.1921 18.1745Z",
|
|
@@ -46614,7 +46703,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46614
46703
|
strokeLinejoin: "round"
|
|
46615
46704
|
}
|
|
46616
46705
|
),
|
|
46617
|
-
/* @__PURE__ */
|
|
46706
|
+
/* @__PURE__ */ React282.createElement(
|
|
46618
46707
|
"path",
|
|
46619
46708
|
{
|
|
46620
46709
|
d: "M20.2837 14.2461L15.3446 14.4658L15.8016 17.0057L16.5311 15.4765L18.2888 16.2762L20.2837 14.2461Z",
|
|
@@ -46625,7 +46714,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46625
46714
|
strokeLinejoin: "round"
|
|
46626
46715
|
}
|
|
46627
46716
|
),
|
|
46628
|
-
/* @__PURE__ */
|
|
46717
|
+
/* @__PURE__ */ React282.createElement(
|
|
46629
46718
|
"path",
|
|
46630
46719
|
{
|
|
46631
46720
|
d: "M9.72002 16.2762L11.4777 15.4765L12.1984 17.0057L12.6642 14.4658L7.71626 14.2461L9.72002 16.2762Z",
|
|
@@ -46636,7 +46725,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46636
46725
|
strokeLinejoin: "round"
|
|
46637
46726
|
}
|
|
46638
46727
|
),
|
|
46639
|
-
/* @__PURE__ */
|
|
46728
|
+
/* @__PURE__ */ React282.createElement(
|
|
46640
46729
|
"path",
|
|
46641
46730
|
{
|
|
46642
46731
|
d: "M7.71626 14.2461L9.79033 18.2888L9.72002 16.2762L7.71626 14.2461Z",
|
|
@@ -46647,7 +46736,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46647
46736
|
strokeLinejoin: "round"
|
|
46648
46737
|
}
|
|
46649
46738
|
),
|
|
46650
|
-
/* @__PURE__ */
|
|
46739
|
+
/* @__PURE__ */ React282.createElement(
|
|
46651
46740
|
"path",
|
|
46652
46741
|
{
|
|
46653
46742
|
d: "M18.2888 16.2762L18.2009 18.2888L20.2837 14.2461L18.2888 16.2762Z",
|
|
@@ -46658,7 +46747,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46658
46747
|
strokeLinejoin: "round"
|
|
46659
46748
|
}
|
|
46660
46749
|
),
|
|
46661
|
-
/* @__PURE__ */
|
|
46750
|
+
/* @__PURE__ */ React282.createElement(
|
|
46662
46751
|
"path",
|
|
46663
46752
|
{
|
|
46664
46753
|
d: "M12.6642 14.4658L12.1984 17.0057L12.7784 20.0025L12.9102 16.0565L12.6642 14.4658Z",
|
|
@@ -46669,7 +46758,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46669
46758
|
strokeLinejoin: "round"
|
|
46670
46759
|
}
|
|
46671
46760
|
),
|
|
46672
|
-
/* @__PURE__ */
|
|
46761
|
+
/* @__PURE__ */ React282.createElement(
|
|
46673
46762
|
"path",
|
|
46674
46763
|
{
|
|
46675
46764
|
d: "M15.3446 14.4658L15.1073 16.0477L15.2128 20.0025L15.8016 17.0057L15.3446 14.4658Z",
|
|
@@ -46680,7 +46769,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46680
46769
|
strokeLinejoin: "round"
|
|
46681
46770
|
}
|
|
46682
46771
|
),
|
|
46683
|
-
/* @__PURE__ */
|
|
46772
|
+
/* @__PURE__ */ React282.createElement(
|
|
46684
46773
|
"path",
|
|
46685
46774
|
{
|
|
46686
46775
|
d: "M15.8016 17.0056L15.2128 20.0025L15.6347 20.2925L18.2009 18.2888L18.2888 16.2762L15.8016 17.0056Z",
|
|
@@ -46691,7 +46780,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46691
46780
|
strokeLinejoin: "round"
|
|
46692
46781
|
}
|
|
46693
46782
|
),
|
|
46694
|
-
/* @__PURE__ */
|
|
46783
|
+
/* @__PURE__ */ React282.createElement(
|
|
46695
46784
|
"path",
|
|
46696
46785
|
{
|
|
46697
46786
|
d: "M9.72002 16.2762L9.79033 18.2888L12.3566 20.2925L12.7784 20.0025L12.1984 17.0056L9.72002 16.2762Z",
|
|
@@ -46702,7 +46791,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46702
46791
|
strokeLinejoin: "round"
|
|
46703
46792
|
}
|
|
46704
46793
|
),
|
|
46705
|
-
/* @__PURE__ */
|
|
46794
|
+
/* @__PURE__ */ React282.createElement(
|
|
46706
46795
|
"path",
|
|
46707
46796
|
{
|
|
46708
46797
|
d: "M15.8456 23.0521L15.8719 22.2348L15.6522 22.0414H12.339L12.1368 22.2348L12.1544 23.0521L9.38606 21.7426L10.3528 22.5336L12.3126 23.8958H15.6786L17.6472 22.5336L18.6139 21.7426L15.8456 23.0521Z",
|
|
@@ -46713,7 +46802,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46713
46802
|
strokeLinejoin: "round"
|
|
46714
46803
|
}
|
|
46715
46804
|
),
|
|
46716
|
-
/* @__PURE__ */
|
|
46805
|
+
/* @__PURE__ */ React282.createElement(
|
|
46717
46806
|
"path",
|
|
46718
46807
|
{
|
|
46719
46808
|
d: "M15.6347 20.2925L15.2128 20.0025H12.7784L12.3566 20.2925L12.1368 22.2348L12.339 22.0414H15.6522L15.8719 22.2348L15.6347 20.2925Z",
|
|
@@ -46724,7 +46813,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46724
46813
|
strokeLinejoin: "round"
|
|
46725
46814
|
}
|
|
46726
46815
|
),
|
|
46727
|
-
/* @__PURE__ */
|
|
46816
|
+
/* @__PURE__ */ React282.createElement(
|
|
46728
46817
|
"path",
|
|
46729
46818
|
{
|
|
46730
46819
|
d: "M24.4583 10.0364L25.2053 6.45072L24.0891 3.1199L15.6347 9.39485L18.8864 12.1456L23.4827 13.4903L24.5022 12.3038L24.0628 11.9874L24.7658 11.3459L24.221 10.924L24.924 10.3879L24.4583 10.0364Z",
|
|
@@ -46735,7 +46824,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46735
46824
|
strokeLinejoin: "round"
|
|
46736
46825
|
}
|
|
46737
46826
|
),
|
|
46738
|
-
/* @__PURE__ */
|
|
46827
|
+
/* @__PURE__ */ React282.createElement(
|
|
46739
46828
|
"path",
|
|
46740
46829
|
{
|
|
46741
46830
|
d: "M2.79472 6.45072L3.54174 10.0364L3.06717 10.3879L3.77024 10.924L3.23415 11.3459L3.93722 11.9874L3.4978 12.3038L4.50847 13.4903L9.10483 12.1456L12.3566 9.39485L3.90207 3.1199L2.79472 6.45072Z",
|
|
@@ -46746,7 +46835,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46746
46835
|
strokeLinejoin: "round"
|
|
46747
46836
|
}
|
|
46748
46837
|
),
|
|
46749
|
-
/* @__PURE__ */
|
|
46838
|
+
/* @__PURE__ */ React282.createElement(
|
|
46750
46839
|
"path",
|
|
46751
46840
|
{
|
|
46752
46841
|
d: "M23.4827 13.4903L18.8864 12.1456L20.2837 14.2461L18.2009 18.2888L20.9429 18.2536H25.0295L23.4827 13.4903Z",
|
|
@@ -46757,7 +46846,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46757
46846
|
strokeLinejoin: "round"
|
|
46758
46847
|
}
|
|
46759
46848
|
),
|
|
46760
|
-
/* @__PURE__ */
|
|
46849
|
+
/* @__PURE__ */ React282.createElement(
|
|
46761
46850
|
"path",
|
|
46762
46851
|
{
|
|
46763
46852
|
d: "M9.10484 12.1456L4.50848 13.4903L2.97929 18.2536H7.05713L9.79033 18.2888L7.71626 14.2461L9.10484 12.1456Z",
|
|
@@ -46768,7 +46857,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46768
46857
|
strokeLinejoin: "round"
|
|
46769
46858
|
}
|
|
46770
46859
|
),
|
|
46771
|
-
/* @__PURE__ */
|
|
46860
|
+
/* @__PURE__ */ React282.createElement(
|
|
46772
46861
|
"path",
|
|
46773
46862
|
{
|
|
46774
46863
|
d: "M15.3446 14.4658L15.6347 9.39485L16.9705 5.7828H11.0383L12.3566 9.39485L12.6642 14.4658L12.7696 16.0653L12.7784 20.0025H15.2128L15.2304 16.0653L15.3446 14.4658Z",
|
|
@@ -46782,14 +46871,14 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
46782
46871
|
);
|
|
46783
46872
|
}
|
|
46784
46873
|
function MastercardPaymentIcon({ size = 16 }) {
|
|
46785
|
-
return /* @__PURE__ */
|
|
46874
|
+
return /* @__PURE__ */ React282.createElement(
|
|
46786
46875
|
"svg",
|
|
46787
46876
|
{
|
|
46788
46877
|
xmlns: "http://www.w3.org/2000/svg",
|
|
46789
46878
|
height: size,
|
|
46790
46879
|
viewBox: "0 0 152.407 108"
|
|
46791
46880
|
},
|
|
46792
|
-
/* @__PURE__ */
|
|
46881
|
+
/* @__PURE__ */ React282.createElement("g", null, /* @__PURE__ */ React282.createElement("rect", { width: "152.407", height: "108", fill: "transparent" }), /* @__PURE__ */ React282.createElement("g", null, /* @__PURE__ */ React282.createElement(
|
|
46793
46882
|
"rect",
|
|
46794
46883
|
{
|
|
46795
46884
|
x: "60.4117",
|
|
@@ -46798,21 +46887,21 @@ function MastercardPaymentIcon({ size = 16 }) {
|
|
|
46798
46887
|
height: "56.6064",
|
|
46799
46888
|
fill: "#ff5f00"
|
|
46800
46889
|
}
|
|
46801
|
-
), /* @__PURE__ */
|
|
46890
|
+
), /* @__PURE__ */ React282.createElement(
|
|
46802
46891
|
"path",
|
|
46803
46892
|
{
|
|
46804
46893
|
d: "M382.20839,306a35.9375,35.9375,0,0,1,13.7499-28.3032,36,36,0,1,0,0,56.6064A35.938,35.938,0,0,1,382.20839,306Z",
|
|
46805
46894
|
transform: "translate(-319.79649 -252)",
|
|
46806
46895
|
fill: "#eb001b"
|
|
46807
46896
|
}
|
|
46808
|
-
), /* @__PURE__ */
|
|
46897
|
+
), /* @__PURE__ */ React282.createElement(
|
|
46809
46898
|
"path",
|
|
46810
46899
|
{
|
|
46811
46900
|
d: "M454.20349,306a35.99867,35.99867,0,0,1-58.2452,28.3032,36.00518,36.00518,0,0,0,0-56.6064A35.99867,35.99867,0,0,1,454.20349,306Z",
|
|
46812
46901
|
transform: "translate(-319.79649 -252)",
|
|
46813
46902
|
fill: "#f79e1b"
|
|
46814
46903
|
}
|
|
46815
|
-
), /* @__PURE__ */
|
|
46904
|
+
), /* @__PURE__ */ React282.createElement(
|
|
46816
46905
|
"path",
|
|
46817
46906
|
{
|
|
46818
46907
|
d: "M450.76889,328.3077v-1.1589h.4673v-.2361h-1.1901v.2361h.4675v1.1589Zm2.3105,0v-1.3973h-.3648l-.41959.9611-.41971-.9611h-.365v1.3973h.2576v-1.054l.3935.9087h.2671l.39351-.911v1.0563Z",
|
|
@@ -46826,7 +46915,7 @@ function FunkitPaymentsIconLine({
|
|
|
46826
46915
|
size = 16,
|
|
46827
46916
|
gap = "2"
|
|
46828
46917
|
}) {
|
|
46829
|
-
return /* @__PURE__ */
|
|
46918
|
+
return /* @__PURE__ */ React282.createElement(
|
|
46830
46919
|
Box,
|
|
46831
46920
|
{
|
|
46832
46921
|
display: "flex",
|
|
@@ -46835,9 +46924,9 @@ function FunkitPaymentsIconLine({
|
|
|
46835
46924
|
alignItems: "center",
|
|
46836
46925
|
justifyContent: "center"
|
|
46837
46926
|
},
|
|
46838
|
-
/* @__PURE__ */
|
|
46839
|
-
/* @__PURE__ */
|
|
46840
|
-
/* @__PURE__ */
|
|
46927
|
+
/* @__PURE__ */ React282.createElement(MetaMaskPaymentIcon, { size }),
|
|
46928
|
+
/* @__PURE__ */ React282.createElement(MastercardPaymentIcon, { size }),
|
|
46929
|
+
/* @__PURE__ */ React282.createElement(CoinbaseIcon, { size })
|
|
46841
46930
|
);
|
|
46842
46931
|
}
|
|
46843
46932
|
|