@funkit/connect 7.1.0 → 8.0.0
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 +50 -0
- package/dist/__generated__/default_configs.d.ts +29 -0
- package/dist/components/CheckoutTopAnnouncementBanner/CheckoutTopAnnouncementBanner.d.ts +2 -0
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +5 -0
- package/dist/consts/assets.d.ts +1 -3
- package/dist/hooks/track/useTrack.d.ts +1 -0
- package/dist/hooks/useAllowedAssets.d.ts +3 -1
- package/dist/hooks/useFrogAccount.d.ts +1 -0
- package/dist/hooks/usePaymentSources.d.ts +1 -0
- package/dist/hooks/useTokenTransfer.d.ts +1 -1
- package/dist/hooks/useWalletAssetHoldings.d.ts +1 -0
- package/dist/index.js +868 -681
- package/dist/providers/FunkitConfigContext.d.ts +2 -0
- package/dist/utils/flags/config.d.ts +21 -21
- package/dist/utils/funLogger.d.ts +5 -1
- package/dist/utils/lighter.d.ts +1 -0
- package/dist/utils/transfer.d.ts +2 -2
- package/dist/wallets/walletConnectors/index.js +6 -6
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -417,7 +417,7 @@ function Avatar({ address, imageUrl, loading, size }) {
|
|
|
417
417
|
}
|
|
418
418
|
|
|
419
419
|
// src/components/ConnectButton/ConnectButton.tsx
|
|
420
|
-
import
|
|
420
|
+
import React242, { useEffect as useEffect59, useState as useState76 } from "react";
|
|
421
421
|
|
|
422
422
|
// src/css/touchableStyles.css.ts
|
|
423
423
|
var active = { shrink: "_7rkubb8", shrinkSm: "_7rkubb9" };
|
|
@@ -780,7 +780,7 @@ var getRemoteImageStyles = (isRemoteImage, isRemoteImageLoaded, src) => {
|
|
|
780
780
|
|
|
781
781
|
// src/components/ConnectButton/ConnectButtonRenderer.tsx
|
|
782
782
|
import { formatCurrencyAndStringify as formatCurrencyAndStringify15, isMobile as isMobile14, noop as noop10 } from "@funkit/utils";
|
|
783
|
-
import
|
|
783
|
+
import React241 from "react";
|
|
784
784
|
import { useAccount as useAccount12, useBalance, useConfig as useConfig8 } from "wagmi";
|
|
785
785
|
|
|
786
786
|
// src/hooks/useIsMounted.ts
|
|
@@ -1066,7 +1066,7 @@ import {
|
|
|
1066
1066
|
} from "@funkit/api-base";
|
|
1067
1067
|
import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO12 } from "@funkit/chains";
|
|
1068
1068
|
import { FlagKey as FlagKey21, isNotNullish as isNotNullish9 } from "@funkit/utils";
|
|
1069
|
-
import
|
|
1069
|
+
import React240, {
|
|
1070
1070
|
createContext as createContext19,
|
|
1071
1071
|
useCallback as useCallback50,
|
|
1072
1072
|
useContext as useContext19,
|
|
@@ -1413,7 +1413,10 @@ function generateClientMetadataForTokenTransfer() {
|
|
|
1413
1413
|
}
|
|
1414
1414
|
|
|
1415
1415
|
// src/hooks/track/useTrack.ts
|
|
1416
|
-
import {
|
|
1416
|
+
import {
|
|
1417
|
+
isMobile,
|
|
1418
|
+
jsonStringifyWithBigIntSanitization
|
|
1419
|
+
} from "@funkit/utils";
|
|
1417
1420
|
import {
|
|
1418
1421
|
useStatsigClient,
|
|
1419
1422
|
useStatsigUser
|
|
@@ -1427,7 +1430,7 @@ function setFunkitConnectVersion({ version }) {
|
|
|
1427
1430
|
localStorage.setItem(storageKey, version);
|
|
1428
1431
|
}
|
|
1429
1432
|
function getCurrentSdkVersion() {
|
|
1430
|
-
return "
|
|
1433
|
+
return "8.0.0";
|
|
1431
1434
|
}
|
|
1432
1435
|
function useFingerprint() {
|
|
1433
1436
|
const fingerprint = useCallback3(() => {
|
|
@@ -1461,6 +1464,8 @@ var FunLogger = class {
|
|
|
1461
1464
|
this.userLoginType = null;
|
|
1462
1465
|
this.sdkVersion = null;
|
|
1463
1466
|
this.l2Address = null;
|
|
1467
|
+
this.isConfigured = false;
|
|
1468
|
+
this.logQueue = [];
|
|
1464
1469
|
}
|
|
1465
1470
|
getFunLogEnv() {
|
|
1466
1471
|
if (!this.apiKey || FUN_DEV_API_KEYS.includes(this.apiKey)) {
|
|
@@ -1495,41 +1500,50 @@ var FunLogger = class {
|
|
|
1495
1500
|
datadogLogs.logger.error(title, datadogData, error);
|
|
1496
1501
|
}
|
|
1497
1502
|
}
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1503
|
+
processLog(level, title, data, error) {
|
|
1504
|
+
if (!this.isConfigured) {
|
|
1505
|
+
this.logQueue.push({ level, title, data, error });
|
|
1506
|
+
return;
|
|
1502
1507
|
}
|
|
1503
|
-
if (!
|
|
1504
|
-
console.
|
|
1508
|
+
if (!this.apiKey) {
|
|
1509
|
+
console.error(
|
|
1510
|
+
"FunLogger: apiKey is not set. Please call configure() with a valid apiKey."
|
|
1511
|
+
);
|
|
1512
|
+
return;
|
|
1505
1513
|
}
|
|
1506
|
-
}
|
|
1507
|
-
onInfo({ title, data }) {
|
|
1508
1514
|
const isProd = this.getFunLogEnv() === "production" /* PRODUCTION */;
|
|
1509
1515
|
if (isProd) {
|
|
1510
|
-
this.logDataDog(
|
|
1516
|
+
this.logDataDog(level, title, data, error);
|
|
1511
1517
|
}
|
|
1512
1518
|
if (!isProd || this.isDebugMode) {
|
|
1513
|
-
|
|
1519
|
+
const formattedData = data || "";
|
|
1520
|
+
switch (level) {
|
|
1521
|
+
case "debug":
|
|
1522
|
+
console.debug(title, formattedData);
|
|
1523
|
+
break;
|
|
1524
|
+
case "info":
|
|
1525
|
+
console.log(title, formattedData);
|
|
1526
|
+
break;
|
|
1527
|
+
case "warn":
|
|
1528
|
+
console.warn(title, formattedData);
|
|
1529
|
+
break;
|
|
1530
|
+
case "error":
|
|
1531
|
+
console.error(title, formattedData, error);
|
|
1532
|
+
break;
|
|
1533
|
+
}
|
|
1514
1534
|
}
|
|
1515
1535
|
}
|
|
1536
|
+
onDebug({ title, data }) {
|
|
1537
|
+
this.processLog("debug", title, data);
|
|
1538
|
+
}
|
|
1539
|
+
onInfo({ title, data }) {
|
|
1540
|
+
this.processLog("info", title, data);
|
|
1541
|
+
}
|
|
1516
1542
|
onWarn({ title, data }) {
|
|
1517
|
-
|
|
1518
|
-
if (isProd) {
|
|
1519
|
-
this.logDataDog("warn", title, data);
|
|
1520
|
-
}
|
|
1521
|
-
if (!isProd || this.isDebugMode) {
|
|
1522
|
-
console.warn(title, data || "");
|
|
1523
|
-
}
|
|
1543
|
+
this.processLog("warn", title, data);
|
|
1524
1544
|
}
|
|
1525
1545
|
onError({ title, error, data }) {
|
|
1526
|
-
|
|
1527
|
-
if (isProd) {
|
|
1528
|
-
this.logDataDog("error", title, data, error);
|
|
1529
|
-
}
|
|
1530
|
-
if (!isProd || this.isDebugMode) {
|
|
1531
|
-
console.error(title, data || "", error);
|
|
1532
|
-
}
|
|
1546
|
+
this.processLog("error", title, data, error);
|
|
1533
1547
|
}
|
|
1534
1548
|
extractError(error) {
|
|
1535
1549
|
if (error instanceof Error) {
|
|
@@ -1568,11 +1582,34 @@ var FunLogger = class {
|
|
|
1568
1582
|
};
|
|
1569
1583
|
this.onError({ title, error, data });
|
|
1570
1584
|
}
|
|
1585
|
+
flushLogQueue() {
|
|
1586
|
+
const queueCopy = [...this.logQueue];
|
|
1587
|
+
this.logQueue = [];
|
|
1588
|
+
for (const queuedLog of queueCopy) {
|
|
1589
|
+
const { level, title, data, error } = queuedLog;
|
|
1590
|
+
switch (level) {
|
|
1591
|
+
case "debug":
|
|
1592
|
+
this.onDebug({ title, data });
|
|
1593
|
+
break;
|
|
1594
|
+
case "info":
|
|
1595
|
+
this.onInfo({ title, data });
|
|
1596
|
+
break;
|
|
1597
|
+
case "warn":
|
|
1598
|
+
this.onWarn({ title, data });
|
|
1599
|
+
break;
|
|
1600
|
+
case "error":
|
|
1601
|
+
this.onError({ title, data, error });
|
|
1602
|
+
break;
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1605
|
+
}
|
|
1571
1606
|
configure(apiKey, isDebug, sdkVersion) {
|
|
1572
1607
|
this.apiKey = apiKey;
|
|
1573
1608
|
this.isDebugMode = isDebug;
|
|
1574
1609
|
this.sdkVersion = sdkVersion;
|
|
1610
|
+
this.isConfigured = true;
|
|
1575
1611
|
setDdogEnv(this.getFunLogEnv());
|
|
1612
|
+
this.flushLogQueue();
|
|
1576
1613
|
}
|
|
1577
1614
|
getUserId() {
|
|
1578
1615
|
return this.userId;
|
|
@@ -1607,20 +1644,60 @@ datadogLogs.init({
|
|
|
1607
1644
|
var logger = new FunLogger();
|
|
1608
1645
|
|
|
1609
1646
|
// src/hooks/track/useTrack.ts
|
|
1610
|
-
var
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1647
|
+
var MAX_FLATTEN_DEPTH = 10;
|
|
1648
|
+
function flattenAndStringifyForStatsigEvent(eventName, metadata) {
|
|
1649
|
+
const result = {};
|
|
1650
|
+
const seen = /* @__PURE__ */ new Set();
|
|
1651
|
+
function isNonArrayObject(value) {
|
|
1652
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1653
|
+
}
|
|
1654
|
+
function _flatten(current, path, depth) {
|
|
1655
|
+
if (seen.has(current)) {
|
|
1656
|
+
logger.warn("useTrack:flatten:circular-reference", {
|
|
1657
|
+
eventName,
|
|
1658
|
+
metadata,
|
|
1659
|
+
path
|
|
1660
|
+
});
|
|
1661
|
+
return;
|
|
1615
1662
|
}
|
|
1616
|
-
if (
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1663
|
+
if (depth >= MAX_FLATTEN_DEPTH) {
|
|
1664
|
+
logger.warn("useTrack:flatten:max-depth-exceeded", {
|
|
1665
|
+
eventName,
|
|
1666
|
+
metadata,
|
|
1667
|
+
path
|
|
1668
|
+
});
|
|
1669
|
+
return;
|
|
1670
|
+
}
|
|
1671
|
+
seen.add(current);
|
|
1672
|
+
for (const [key, value] of Object.entries(current)) {
|
|
1673
|
+
if (value === void 0 || typeof value === "function") {
|
|
1674
|
+
continue;
|
|
1675
|
+
}
|
|
1676
|
+
const childPath = path ? `${path}.${key}` : key;
|
|
1677
|
+
if (typeof value === "number" || typeof value === "string") {
|
|
1678
|
+
result[childPath] = value.toString();
|
|
1679
|
+
} else if (isNonArrayObject(value)) {
|
|
1680
|
+
_flatten(value, childPath, depth + 1);
|
|
1681
|
+
} else {
|
|
1682
|
+
try {
|
|
1683
|
+
result[childPath] = jsonStringifyWithBigIntSanitization(
|
|
1684
|
+
value
|
|
1685
|
+
);
|
|
1686
|
+
} catch (error) {
|
|
1687
|
+
logger.warn("useTrack:flatten:json-stringify-error", {
|
|
1688
|
+
eventName,
|
|
1689
|
+
error,
|
|
1690
|
+
metadata,
|
|
1691
|
+
path: childPath
|
|
1692
|
+
});
|
|
1693
|
+
}
|
|
1694
|
+
}
|
|
1620
1695
|
}
|
|
1696
|
+
seen.delete(current);
|
|
1621
1697
|
}
|
|
1622
|
-
|
|
1623
|
-
|
|
1698
|
+
_flatten(metadata, "", 0);
|
|
1699
|
+
return result;
|
|
1700
|
+
}
|
|
1624
1701
|
var eventCounts = {};
|
|
1625
1702
|
var eventStartTimes = {};
|
|
1626
1703
|
var useTrack = () => {
|
|
@@ -1639,9 +1716,10 @@ var useTrack = () => {
|
|
|
1639
1716
|
} = eventNameOrTrackEventData;
|
|
1640
1717
|
eventCounts[eventName] ??= 0;
|
|
1641
1718
|
eventCounts[eventName] += 1;
|
|
1642
|
-
const metadata =
|
|
1643
|
-
|
|
1644
|
-
|
|
1719
|
+
const metadata = flattenAndStringifyForStatsigEvent(eventName, {
|
|
1720
|
+
instance: eventCounts[eventName],
|
|
1721
|
+
...rawMetadata
|
|
1722
|
+
});
|
|
1645
1723
|
logStatsigEvent(eventName, value, metadata);
|
|
1646
1724
|
}
|
|
1647
1725
|
} catch (error) {
|
|
@@ -1764,7 +1842,8 @@ var DEFAULT_UI_CUSTOMIZATIONS = {
|
|
|
1764
1842
|
showTransactionDigest: "none"
|
|
1765
1843
|
},
|
|
1766
1844
|
sourceChangeScreen: {
|
|
1767
|
-
showTargetAssetSelection: false
|
|
1845
|
+
showTargetAssetSelection: false,
|
|
1846
|
+
showWalletOnInsufficientBalance: false
|
|
1768
1847
|
},
|
|
1769
1848
|
inputAmountScreen: {
|
|
1770
1849
|
allowTokenAmountInput: true
|
|
@@ -2314,7 +2393,8 @@ var default_configs_default = {
|
|
|
2314
2393
|
"0xDEF1C0ded9bec7F1a1670819833240f027b25EfF": "0x Exchange Proxy",
|
|
2315
2394
|
"0x1111111254EEB25477B68fb85Ed929f73A960582": "1inch V5 Router",
|
|
2316
2395
|
"0x881D40237659C251811CEC9c364ef91dC08D300C": "Metamask Swap Router",
|
|
2317
|
-
"0x07d82CD44cd598ACf355Af8c8089b30b2a13B088": "Polymarket Withdrawal Block"
|
|
2396
|
+
"0x07d82CD44cd598ACf355Af8c8089b30b2a13B088": "Polymarket Withdrawal Block",
|
|
2397
|
+
"2ygdTkdUtN9PhoMko12bQi6PimJrqxcKmCvQGkCG6SN7": "Polymarket Withdrawal Block"
|
|
2318
2398
|
}
|
|
2319
2399
|
},
|
|
2320
2400
|
blockedcountries: {
|
|
@@ -2360,6 +2440,14 @@ var default_configs_default = {
|
|
|
2360
2440
|
token_transfer: 60
|
|
2361
2441
|
}
|
|
2362
2442
|
},
|
|
2443
|
+
checkouttopannouncementbanner: {
|
|
2444
|
+
value: {
|
|
2445
|
+
title: "",
|
|
2446
|
+
subtitle: "",
|
|
2447
|
+
iconSrc: "https://sdk-cdn.fun.xyz/images/announcement-icon-rounded.svg",
|
|
2448
|
+
chainIdList: []
|
|
2449
|
+
}
|
|
2450
|
+
},
|
|
2363
2451
|
dynamicrouting: {
|
|
2364
2452
|
value: [
|
|
2365
2453
|
{
|
|
@@ -2464,6 +2552,27 @@ var default_configs_default = {
|
|
|
2464
2552
|
}
|
|
2465
2553
|
]
|
|
2466
2554
|
},
|
|
2555
|
+
{
|
|
2556
|
+
routeId: "LIGHTER_LIT_SPOT_NEW_USER",
|
|
2557
|
+
rules: [
|
|
2558
|
+
{
|
|
2559
|
+
when: {
|
|
2560
|
+
chainId: "1",
|
|
2561
|
+
tokenAddress: "0x232CE3bd40fCd6f80f3d55A522d03f25Df784Ee2"
|
|
2562
|
+
},
|
|
2563
|
+
use: {
|
|
2564
|
+
path: "FUN_MAINNET_DEPOSIT",
|
|
2565
|
+
badge: "NATIVE"
|
|
2566
|
+
}
|
|
2567
|
+
},
|
|
2568
|
+
{
|
|
2569
|
+
when: "*",
|
|
2570
|
+
use: {
|
|
2571
|
+
path: "FUN_MAINNET_DEPOSIT"
|
|
2572
|
+
}
|
|
2573
|
+
}
|
|
2574
|
+
]
|
|
2575
|
+
},
|
|
2467
2576
|
{
|
|
2468
2577
|
routeId: "LIGHTER_LINK_SPOT_NEW_USER",
|
|
2469
2578
|
rules: [
|
|
@@ -2595,6 +2704,9 @@ var default_configs_default = {
|
|
|
2595
2704
|
enabletokentransfer: {
|
|
2596
2705
|
value: true
|
|
2597
2706
|
},
|
|
2707
|
+
enabletokentransferuniversaldepositaddress: {
|
|
2708
|
+
value: true
|
|
2709
|
+
},
|
|
2598
2710
|
ismexico: {
|
|
2599
2711
|
value: {
|
|
2600
2712
|
mexico: false
|
|
@@ -2747,6 +2859,7 @@ import {
|
|
|
2747
2859
|
BASED_API_KEY as BASED_API_KEY2,
|
|
2748
2860
|
BENTO_API_KEY,
|
|
2749
2861
|
BULLPEN_API_KEY,
|
|
2862
|
+
EITGHTYEIGHTUPS_API_KEY,
|
|
2750
2863
|
ETHEREAL_API_KEY as ETHEREAL_API_KEY3,
|
|
2751
2864
|
FELIX_API_KEY,
|
|
2752
2865
|
GINZA_API_KEY,
|
|
@@ -2767,7 +2880,7 @@ import {
|
|
|
2767
2880
|
SUSHI_API_KEY,
|
|
2768
2881
|
VENTUALS_API_KEY
|
|
2769
2882
|
} from "@funkit/api-base";
|
|
2770
|
-
import { MONAD_CHAIN_ID } from "@funkit/chains";
|
|
2883
|
+
import { MONAD_CHAIN_ID, TRON_MAINNET_CHAIN_ID } from "@funkit/chains";
|
|
2771
2884
|
import { FlagKey } from "@funkit/utils";
|
|
2772
2885
|
import { arbitrum, base as base3, mainnet as mainnet5, polygon } from "viem/chains";
|
|
2773
2886
|
var FUN_INTERNAL_USERS = [
|
|
@@ -2877,6 +2990,10 @@ var QR_CODE_WITH_MONAD = {
|
|
|
2877
2990
|
...QR_CODE_WITH_BITCOIN,
|
|
2878
2991
|
[MONAD_CHAIN_ID]: ["MON", "USDC"]
|
|
2879
2992
|
};
|
|
2993
|
+
var QR_CODE_WITH_TRON = {
|
|
2994
|
+
...QR_CODE_WITH_MONAD,
|
|
2995
|
+
[TRON_MAINNET_CHAIN_ID]: ["USDT"]
|
|
2996
|
+
};
|
|
2880
2997
|
var WITHDRAWAL_CHAINS_AND_ASSETS = {
|
|
2881
2998
|
...COMMON_SUPPORT_CHAINS_AND_ASSETS,
|
|
2882
2999
|
// solana
|
|
@@ -2908,7 +3025,8 @@ var flagConfig = {
|
|
|
2908
3025
|
KATANA_API_KEY2,
|
|
2909
3026
|
HYPERBEAT_API_KEY2,
|
|
2910
3027
|
HYPERDASH_API_KEY2,
|
|
2911
|
-
FELIX_API_KEY
|
|
3028
|
+
FELIX_API_KEY,
|
|
3029
|
+
BULLPEN_API_KEY
|
|
2912
3030
|
]
|
|
2913
3031
|
}
|
|
2914
3032
|
],
|
|
@@ -2955,7 +3073,7 @@ var flagConfig = {
|
|
|
2955
3073
|
{
|
|
2956
3074
|
key: "apiKey",
|
|
2957
3075
|
type: "isAnyOf",
|
|
2958
|
-
values: [HYPERDASH_API_KEY2]
|
|
3076
|
+
values: [HYPERDASH_API_KEY2, BULLPEN_API_KEY]
|
|
2959
3077
|
}
|
|
2960
3078
|
],
|
|
2961
3079
|
value: true
|
|
@@ -2972,7 +3090,7 @@ var flagConfig = {
|
|
|
2972
3090
|
{
|
|
2973
3091
|
key: "apiKey",
|
|
2974
3092
|
type: "isAnyOf",
|
|
2975
|
-
values: [HYPERDASH_API_KEY2]
|
|
3093
|
+
values: [HYPERDASH_API_KEY2, BULLPEN_API_KEY]
|
|
2976
3094
|
}
|
|
2977
3095
|
],
|
|
2978
3096
|
value: true
|
|
@@ -2984,6 +3102,16 @@ var flagConfig = {
|
|
|
2984
3102
|
type: "string",
|
|
2985
3103
|
default_value: JSON.stringify(QR_CODE_WITH_SOLANA),
|
|
2986
3104
|
overrides: [
|
|
3105
|
+
{
|
|
3106
|
+
if_any: [
|
|
3107
|
+
{
|
|
3108
|
+
key: "userId",
|
|
3109
|
+
type: "isAnyOf",
|
|
3110
|
+
values: FUN_INTERNAL_USERS
|
|
3111
|
+
}
|
|
3112
|
+
],
|
|
3113
|
+
value: JSON.stringify(QR_CODE_WITH_TRON)
|
|
3114
|
+
},
|
|
2987
3115
|
{
|
|
2988
3116
|
if_any: [
|
|
2989
3117
|
{
|
|
@@ -3160,31 +3288,7 @@ var flagConfig = {
|
|
|
3160
3288
|
[FlagKey.TokenTransferNewTokens]: {
|
|
3161
3289
|
type: "string",
|
|
3162
3290
|
default_value: "",
|
|
3163
|
-
overrides: [
|
|
3164
|
-
// To make sure we will not display new token badges for Monad
|
|
3165
|
-
{
|
|
3166
|
-
if_any: [
|
|
3167
|
-
{
|
|
3168
|
-
key: "apiKey",
|
|
3169
|
-
type: "isAnyOf",
|
|
3170
|
-
values: [MONAD_API_KEY2]
|
|
3171
|
-
}
|
|
3172
|
-
],
|
|
3173
|
-
value: ""
|
|
3174
|
-
},
|
|
3175
|
-
{
|
|
3176
|
-
if_any: [
|
|
3177
|
-
{
|
|
3178
|
-
key: "apiKey",
|
|
3179
|
-
type: "isAnyOf",
|
|
3180
|
-
values: [POLYMARKET_API_KEY2]
|
|
3181
|
-
}
|
|
3182
|
-
],
|
|
3183
|
-
value: JSON.stringify({
|
|
3184
|
-
[MONAD_CHAIN_ID]: ["MON"]
|
|
3185
|
-
})
|
|
3186
|
-
}
|
|
3187
|
-
]
|
|
3291
|
+
overrides: []
|
|
3188
3292
|
},
|
|
3189
3293
|
[FlagKey.NewTokenAssetSelectionBanner]: {
|
|
3190
3294
|
type: "string",
|
|
@@ -3214,6 +3318,7 @@ var flagConfig = {
|
|
|
3214
3318
|
// No HyperCore
|
|
3215
3319
|
// No Solana
|
|
3216
3320
|
// No Lighter
|
|
3321
|
+
// No Tron
|
|
3217
3322
|
})
|
|
3218
3323
|
},
|
|
3219
3324
|
[FlagKey.RelayBypassTargetChainsAndAssets]: {
|
|
@@ -3265,6 +3370,16 @@ var flagConfig = {
|
|
|
3265
3370
|
],
|
|
3266
3371
|
value: true
|
|
3267
3372
|
},
|
|
3373
|
+
{
|
|
3374
|
+
if_any: [
|
|
3375
|
+
{
|
|
3376
|
+
key: "apiKey",
|
|
3377
|
+
type: "isAnyOf",
|
|
3378
|
+
values: [HYPERDASH_API_KEY2, BULLPEN_API_KEY]
|
|
3379
|
+
}
|
|
3380
|
+
],
|
|
3381
|
+
value: true
|
|
3382
|
+
},
|
|
3268
3383
|
disableFlagForCountries(US_COUNTRY_CODES),
|
|
3269
3384
|
{
|
|
3270
3385
|
if_any: [
|
|
@@ -3277,6 +3392,8 @@ var flagConfig = {
|
|
|
3277
3392
|
BULLPEN_API_KEY,
|
|
3278
3393
|
ETHEREAL_API_KEY3,
|
|
3279
3394
|
FELIX_API_KEY,
|
|
3395
|
+
GINZA_API_KEY,
|
|
3396
|
+
EITGHTYEIGHTUPS_API_KEY,
|
|
3280
3397
|
HYENA_API_KEY2,
|
|
3281
3398
|
HYPERBEAT_API_KEY2,
|
|
3282
3399
|
HYPERDASH_API_KEY2,
|
|
@@ -3307,7 +3424,7 @@ var flagConfig = {
|
|
|
3307
3424
|
{
|
|
3308
3425
|
key: "apiKey",
|
|
3309
3426
|
type: "isAnyOf",
|
|
3310
|
-
values: [HYPERDASH_API_KEY2]
|
|
3427
|
+
values: [HYPERDASH_API_KEY2, BULLPEN_API_KEY]
|
|
3311
3428
|
}
|
|
3312
3429
|
],
|
|
3313
3430
|
value: true
|
|
@@ -3326,6 +3443,7 @@ var flagConfig = {
|
|
|
3326
3443
|
ETHEREAL_API_KEY3,
|
|
3327
3444
|
FELIX_API_KEY,
|
|
3328
3445
|
GINZA_API_KEY,
|
|
3446
|
+
EITGHTYEIGHTUPS_API_KEY,
|
|
3329
3447
|
HYENA_API_KEY2,
|
|
3330
3448
|
HYPERBEAT_API_KEY2,
|
|
3331
3449
|
HYPEREDGE_API_KEY,
|
|
@@ -4493,7 +4611,7 @@ function useDirectExecutionInfoPolling({
|
|
|
4493
4611
|
return RELAY_FETCH_INTERVAL;
|
|
4494
4612
|
},
|
|
4495
4613
|
initialData: initDirectExecution,
|
|
4496
|
-
enabled: !disabled && !!initDirectExecution?.txHash
|
|
4614
|
+
enabled: !disabled && !!initDirectExecution?.txHash && initDirectExecution.txHash !== "0x"
|
|
4497
4615
|
});
|
|
4498
4616
|
return {
|
|
4499
4617
|
directExecution,
|
|
@@ -4789,7 +4907,7 @@ function useCheckoutsListenerByUserId(userId) {
|
|
|
4789
4907
|
function useCheckoutListenerByCheckoutId(checkoutId) {
|
|
4790
4908
|
const { apiKey } = useFunkitConfig();
|
|
4791
4909
|
const { data, isLoading } = useQuery6({
|
|
4792
|
-
enabled: !!checkoutId,
|
|
4910
|
+
enabled: !!checkoutId && checkoutId !== "0x",
|
|
4793
4911
|
queryKey: ["getPurifiedCheckoutById", checkoutId],
|
|
4794
4912
|
queryFn: async () => {
|
|
4795
4913
|
if (!checkoutId) {
|
|
@@ -4881,7 +4999,7 @@ var useFunkitPostCheckoutInternal = (checkoutId) => {
|
|
|
4881
4999
|
};
|
|
4882
5000
|
|
|
4883
5001
|
// src/providers/ModalContext.tsx
|
|
4884
|
-
import
|
|
5002
|
+
import React239, {
|
|
4885
5003
|
createContext as createContext18,
|
|
4886
5004
|
useCallback as useCallback49,
|
|
4887
5005
|
useContext as useContext18,
|
|
@@ -4982,7 +5100,8 @@ var LIGHTER_DYNAMIC_ROUTING_ID = {
|
|
|
4982
5100
|
UNI_SPOT_NEW_USER: "LIGHTER_UNI_SPOT_NEW_USER",
|
|
4983
5101
|
AAVE_SPOT_NEW_USER: "LIGHTER_AAVE_SPOT_NEW_USER",
|
|
4984
5102
|
SKY_SPOT_NEW_USER: "LIGHTER_SKY_SPOT_NEW_USER",
|
|
4985
|
-
LDO_SPOT_NEW_USER: "LIGHTER_LDO_SPOT_NEW_USER"
|
|
5103
|
+
LDO_SPOT_NEW_USER: "LIGHTER_LDO_SPOT_NEW_USER",
|
|
5104
|
+
LIT_SPOT_NEW_USER: "LIGHTER_LIT_SPOT_NEW_USER"
|
|
4986
5105
|
};
|
|
4987
5106
|
var LIGHTER_TOKEN_ADDRESS_BY_ROUTING_ID = {
|
|
4988
5107
|
["0x0000000000000000000000000000000000000001".toLowerCase()]: LIGHTER_DYNAMIC_ROUTING_ID.ETH_SPOT,
|
|
@@ -4993,7 +5112,8 @@ var LIGHTER_TOKEN_ADDRESS_BY_ROUTING_ID = {
|
|
|
4993
5112
|
["0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984".toLowerCase()]: LIGHTER_DYNAMIC_ROUTING_ID.UNI_SPOT_NEW_USER,
|
|
4994
5113
|
["0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9".toLowerCase()]: LIGHTER_DYNAMIC_ROUTING_ID.AAVE_SPOT_NEW_USER,
|
|
4995
5114
|
["0x56072C95FAA701256059aa122697B133aDEd9279".toLowerCase()]: LIGHTER_DYNAMIC_ROUTING_ID.SKY_SPOT_NEW_USER,
|
|
4996
|
-
["0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32".toLowerCase()]: LIGHTER_DYNAMIC_ROUTING_ID.LDO_SPOT_NEW_USER
|
|
5115
|
+
["0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32".toLowerCase()]: LIGHTER_DYNAMIC_ROUTING_ID.LDO_SPOT_NEW_USER,
|
|
5116
|
+
["0x232CE3bd40fCd6f80f3d55A522d03f25Df784Ee2".toLowerCase()]: LIGHTER_DYNAMIC_ROUTING_ID.LIT_SPOT_NEW_USER
|
|
4997
5117
|
};
|
|
4998
5118
|
var LIGHTER_ROUTING_ID_BY_TOKEN_ADDRESS = Object.fromEntries(
|
|
4999
5119
|
Object.entries(LIGHTER_TOKEN_ADDRESS_BY_ROUTING_ID).map(
|
|
@@ -6471,100 +6591,11 @@ function useCustomStatusAnimationAboveTopbar({
|
|
|
6471
6591
|
}
|
|
6472
6592
|
|
|
6473
6593
|
// src/consts/assets.ts
|
|
6474
|
-
|
|
6475
|
-
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
|
|
6479
|
-
APE: "https://sdk-cdn.fun.xyz/images/ape.svg",
|
|
6480
|
-
APOLWMATIC: "https://sdk-cdn.fun.xyz/images/apolwmatic.png",
|
|
6481
|
-
ARB: "https://sdk-cdn.fun.xyz/images/arb.svg",
|
|
6482
|
-
BEHYPE: "https://sdk-cdn.fun.xyz/images/behype.svg",
|
|
6483
|
-
BENTO: "https://sdk-cdn.fun.xyz/images/bento.png",
|
|
6484
|
-
BLERF: "https://sdk-cdn.fun.xyz/images/blerf.png",
|
|
6485
|
-
BRETT: "https://sdk-cdn.fun.xyz/images/brett.svg",
|
|
6486
|
-
BSHIB: "https://sdk-cdn.fun.xyz/images/bshib.png",
|
|
6487
|
-
BTC: "https://sdk-cdn.fun.xyz/images/btc.svg",
|
|
6488
|
-
CBBTC: "https://sdk-cdn.fun.xyz/images/cbbtc.svg",
|
|
6489
|
-
CBETH: "https://sdk-cdn.fun.xyz/images/cbeth.png",
|
|
6490
|
-
CRO: "https://sdk-cdn.fun.xyz/images/cro.svg",
|
|
6491
|
-
CRV: "https://sdk-cdn.fun.xyz/images/crv.svg",
|
|
6492
|
-
DAI: "https://sdk-cdn.fun.xyz/images/dai.svg",
|
|
6493
|
-
DEGEN: "https://sdk-cdn.fun.xyz/images/degen.svg",
|
|
6494
|
-
ETH: "https://sdk-cdn.fun.xyz/images/eth.svg",
|
|
6495
|
-
GMX: "https://sdk-cdn.fun.xyz/images/gmx.svg",
|
|
6496
|
-
GRT: "https://sdk-cdn.fun.xyz/images/grt.svg",
|
|
6497
|
-
HYPE: "https://sdk-cdn.fun.xyz/images/hype.svg",
|
|
6498
|
-
IMX: "https://sdk-cdn.fun.xyz/images/imx.svg",
|
|
6499
|
-
INJ: "https://sdk-cdn.fun.xyz/images/inj.svg",
|
|
6500
|
-
LDO: "https://sdk-cdn.fun.xyz/images/ldo.svg",
|
|
6501
|
-
LINK: "https://sdk-cdn.fun.xyz/images/link.png",
|
|
6502
|
-
LUCK: "https://sdk-cdn.fun.xyz/images/luck.png",
|
|
6503
|
-
MATIC: "https://sdk-cdn.fun.xyz/images/matic.svg",
|
|
6504
|
-
MFER: "https://sdk-cdn.fun.xyz/images/mfer.png",
|
|
6505
|
-
MKR: "https://sdk-cdn.fun.xyz/images/mkr.svg",
|
|
6506
|
-
MNT: "https://sdk-cdn.fun.xyz/images/mnt.svg",
|
|
6507
|
-
PENDLE: "https://sdk-cdn.fun.xyz/images/pendle.svg",
|
|
6508
|
-
POL: "https://sdk-cdn.fun.xyz/images/matic.svg",
|
|
6509
|
-
PYUSD: "https://sdk-cdn.fun.xyz/images/pyusd.svg",
|
|
6510
|
-
QNT: "https://sdk-cdn.fun.xyz/images/qnt.svg",
|
|
6511
|
-
RNDR: "https://sdk-cdn.fun.xyz/images/rndr.svg",
|
|
6512
|
-
ROOST: "https://sdk-cdn.fun.xyz/images/roost.png",
|
|
6513
|
-
SAND: "https://sdk-cdn.fun.xyz/images/sand.svg",
|
|
6514
|
-
SHIB: "https://sdk-cdn.fun.xyz/images/shib.svg",
|
|
6515
|
-
SNX: "https://sdk-cdn.fun.xyz/images/snx.svg",
|
|
6516
|
-
SOL: "https://sdk-cdn.fun.xyz/images/sol.svg",
|
|
6517
|
-
SUSDS: "https://sdk-cdn.fun.xyz/images/susds.svg",
|
|
6518
|
-
TYBG: "https://sdk-cdn.fun.xyz/images/tybg.png",
|
|
6519
|
-
UNI: "https://sdk-cdn.fun.xyz/images/uni.png",
|
|
6520
|
-
USDC: "https://sdk-cdn.fun.xyz/images/usdc.svg",
|
|
6521
|
-
"USDC.E": "https://sdk-cdn.fun.xyz/images/usdc.svg",
|
|
6522
|
-
USDE: "https://sdk-cdn.fun.xyz/images/usde.svg",
|
|
6523
|
-
WUSDE: "https://sdk-cdn.fun.xyz/images/usde.svg",
|
|
6524
|
-
EUSDE: "https://sdk-cdn.fun.xyz/images/eusde.svg",
|
|
6525
|
-
USDT: "https://sdk-cdn.fun.xyz/images/usdt.svg",
|
|
6526
|
-
"USD\u20AE0": "https://sdk-cdn.fun.xyz/images/usdt0.svg",
|
|
6527
|
-
USDT0: "https://sdk-cdn.fun.xyz/images/usdt0.svg",
|
|
6528
|
-
USDS: "https://sdk-cdn.fun.xyz/images/usds.svg",
|
|
6529
|
-
USDH: "https://sdk-cdn.fun.xyz/images/usdh.svg",
|
|
6530
|
-
VRTX: "https://sdk-cdn.fun.xyz/images/vrtx.svg",
|
|
6531
|
-
WBTC: "https://sdk-cdn.fun.xyz/images/wbtc.svg",
|
|
6532
|
-
WEETH: "https://sdk-cdn.fun.xyz/images/weeth.png",
|
|
6533
|
-
WETH: "https://sdk-cdn.fun.xyz/images/weth.svg",
|
|
6534
|
-
WHYPE: "https://sdk-cdn.fun.xyz/images/whype.png",
|
|
6535
|
-
WSTETH: "https://sdk-cdn.fun.xyz/images/wsteth.png",
|
|
6536
|
-
TRUMP: "https://sdk-cdn.fun.xyz/images/trump.png",
|
|
6537
|
-
BNB: "https://sdk-cdn.fun.xyz/images/bsc.svg",
|
|
6538
|
-
WBNB: "https://sdk-cdn.fun.xyz/images/bsc.svg",
|
|
6539
|
-
BTCB: "https://sdk-cdn.fun.xyz/images/btc.svg",
|
|
6540
|
-
UBTC: "https://sdk-cdn.fun.xyz/images/btc.svg",
|
|
6541
|
-
BUSD: "https://sdk-cdn.fun.xyz/images/busd.svg",
|
|
6542
|
-
XAUT: "https://sdk-cdn.fun.xyz/images/xaut.png",
|
|
6543
|
-
ADA: "https://sdk-cdn.fun.xyz/images/ada.svg",
|
|
6544
|
-
XRP: "https://sdk-cdn.fun.xyz/images/xrp.svg",
|
|
6545
|
-
UDOGE: "https://sdk-cdn.fun.xyz/images/doge.svg",
|
|
6546
|
-
DOGE: "https://sdk-cdn.fun.xyz/images/doge.svg",
|
|
6547
|
-
LTC: "https://sdk-cdn.fun.xyz/images/ltc.svg",
|
|
6548
|
-
HNT: "https://sdk-cdn.fun.xyz/images/hnt.svg",
|
|
6549
|
-
COMP: "https://sdk-cdn.fun.xyz/images/comp.svg",
|
|
6550
|
-
PEPE: "https://sdk-cdn.fun.xyz/images/pepe.svg",
|
|
6551
|
-
LSTHYPE: "https://sdk-cdn.fun.xyz/images/lsthype.svg",
|
|
6552
|
-
HBUSDT: "https://sdk-cdn.fun.xyz/images/hbusdt.svg",
|
|
6553
|
-
WVLP: "https://sdk-cdn.fun.xyz/images/wvlp.svg",
|
|
6554
|
-
LIQUIDHYPE: "https://sdk-cdn.fun.xyz/images/liquidhype.svg",
|
|
6555
|
-
VHYPE: "https://sdk-cdn.fun.xyz/images/vhype.png",
|
|
6556
|
-
HBHYPE: "https://sdk-cdn.fun.xyz/images/hbhype.svg",
|
|
6557
|
-
MON: "https://sdk-cdn.fun.xyz/images/monad.svg",
|
|
6558
|
-
WMON: "https://sdk-cdn.fun.xyz/images/wmon.svg",
|
|
6559
|
-
AUSD: "https://sdk-cdn.fun.xyz/images/ausd.svg",
|
|
6560
|
-
SUSHI: "https://sdk-cdn.fun.xyz/images/sushi.svg",
|
|
6561
|
-
OP: "https://sdk-cdn.fun.xyz/images/optimism.svg",
|
|
6562
|
-
SKY: "https://sdk-cdn.fun.xyz/images/sky.svg"
|
|
6563
|
-
};
|
|
6564
|
-
var FALLBACK_ASSET = "https://sdk-cdn.fun.xyz/images/dollar_circle.png";
|
|
6565
|
-
function getAssetLogoSrc(symbol) {
|
|
6566
|
-
return ASSET_LOGO_SRCS[symbol.toUpperCase()] || FALLBACK_ASSET;
|
|
6567
|
-
}
|
|
6594
|
+
import {
|
|
6595
|
+
ASSET_LOGO_SRCS,
|
|
6596
|
+
FALLBACK_ASSET,
|
|
6597
|
+
getAssetLogoSrc
|
|
6598
|
+
} from "@funkit/fun-relay";
|
|
6568
6599
|
|
|
6569
6600
|
// src/providers/FunkitCheckoutContext/track.ts
|
|
6570
6601
|
var trackEventFromActiveItem = (activeItem, eventName) => {
|
|
@@ -7435,11 +7466,12 @@ import {
|
|
|
7435
7466
|
bitcoinChain,
|
|
7436
7467
|
hyperEvmChain,
|
|
7437
7468
|
monadChain,
|
|
7438
|
-
solanaChain
|
|
7469
|
+
solanaChain,
|
|
7470
|
+
tronChain
|
|
7439
7471
|
} from "@funkit/chains";
|
|
7440
7472
|
import { FlagKey as FlagKey6 } from "@funkit/utils";
|
|
7441
7473
|
import { useMemo as useMemo15 } from "react";
|
|
7442
|
-
import { arbitrum as arbitrum2, mainnet as mainnet6, polygon as polygon2 } from "viem/chains";
|
|
7474
|
+
import { arbitrum as arbitrum2, mainnet as mainnet6, polygon as polygon2, tron } from "viem/chains";
|
|
7443
7475
|
|
|
7444
7476
|
// src/utils/transfer.ts
|
|
7445
7477
|
var getTransferTokenQrCodeUri = (props) => {
|
|
@@ -7453,6 +7485,9 @@ var getTransferTokenQrCodeUri = (props) => {
|
|
|
7453
7485
|
if (type === "bitcoin") {
|
|
7454
7486
|
return `bitcoin:${depositAddress}`;
|
|
7455
7487
|
}
|
|
7488
|
+
if (type === "tron") {
|
|
7489
|
+
return depositAddress;
|
|
7490
|
+
}
|
|
7456
7491
|
throw new Error(`Invalid transfer token qr code type: ${type}`);
|
|
7457
7492
|
};
|
|
7458
7493
|
|
|
@@ -7495,7 +7530,7 @@ var useTokenTransfer = (selectedChainId, selectedToken, chainIds) => {
|
|
|
7495
7530
|
const isUsdceOnPolygon = isPolygon && selectedToken === "USDC.e";
|
|
7496
7531
|
const isUsdcOnPolygon = isPolygon && selectedToken === "USDC";
|
|
7497
7532
|
const showOriginalRecipient = isBankrUsUser || !enableUniversal && (isUsdceOnPolygon || isUsdcOnPolygon);
|
|
7498
|
-
const funDepositAddress = selectedChainId === solanaChain.id ? transferInit?.solanaAddr : selectedChainId === bitcoinChain.id ? transferInit?.btcAddrSegwit : transferInit?.depositAddr;
|
|
7533
|
+
const funDepositAddress = selectedChainId === solanaChain.id ? transferInit?.solanaAddr : selectedChainId === bitcoinChain.id ? transferInit?.btcAddrSegwit : selectedChainId === tronChain.id ? transferInit?.tronAddr : transferInit?.depositAddr;
|
|
7499
7534
|
const blockchainType = (() => {
|
|
7500
7535
|
if (selectedChainId === solanaChain.id) {
|
|
7501
7536
|
return "solana";
|
|
@@ -7503,6 +7538,9 @@ var useTokenTransfer = (selectedChainId, selectedToken, chainIds) => {
|
|
|
7503
7538
|
if (selectedChainId === bitcoinChain.id) {
|
|
7504
7539
|
return "bitcoin";
|
|
7505
7540
|
}
|
|
7541
|
+
if (selectedChainId === tronChain.id) {
|
|
7542
|
+
return "tron";
|
|
7543
|
+
}
|
|
7506
7544
|
return "ethereum";
|
|
7507
7545
|
})();
|
|
7508
7546
|
const depositAddressTooltip = showOriginalRecipient ? t("transferToken.depositAddressOriginalRecipient") : t("transferToken.depositAddressUniversal", {
|
|
@@ -7539,7 +7577,7 @@ var useMinTransferLimits = () => {
|
|
|
7539
7577
|
return limits ?? { mainnet: 0, nonMainnet: 0 };
|
|
7540
7578
|
};
|
|
7541
7579
|
function getMinTransferValueForChain(chainId, limits) {
|
|
7542
|
-
const MAINNET_IDS = [mainnet6.id, bitcoinChain.id];
|
|
7580
|
+
const MAINNET_IDS = [mainnet6.id, bitcoinChain.id, tron.id];
|
|
7543
7581
|
return MAINNET_IDS.includes(chainId) ? limits.mainnet : limits.nonMainnet;
|
|
7544
7582
|
}
|
|
7545
7583
|
var useMinTransferValue = (selectedChainId) => {
|
|
@@ -8075,7 +8113,7 @@ var en_default = {
|
|
|
8075
8113
|
amountBelowMinimum: "Amount below minimum",
|
|
8076
8114
|
amountAboveMaximum: "Amount above maximum",
|
|
8077
8115
|
inputAmountGreaterThan: "Input an amount greater than {{limit}}.",
|
|
8078
|
-
inputAmountLowerThan: "
|
|
8116
|
+
inputAmountLowerThan: "{{currency}} max limit {{limit}}. Other currencies may have higher limits.",
|
|
8079
8117
|
unableToRetrieveBalance: "Unable to retrieve your account balance. Please reconnect your wallet.",
|
|
8080
8118
|
unableFetchPrice: "Unable to fetch price for token. Please retry.",
|
|
8081
8119
|
quickOptionsPercent: "{{percent}}%",
|
|
@@ -8128,6 +8166,7 @@ var en_default = {
|
|
|
8128
8166
|
instant: "Instant",
|
|
8129
8167
|
noLimit: "No limit",
|
|
8130
8168
|
fiftyThousandDollars: "$50,000",
|
|
8169
|
+
twentyThousandDollars: "$20,000",
|
|
8131
8170
|
tenThousandDollars: "$10,000",
|
|
8132
8171
|
fiveMinutes: "5 min"
|
|
8133
8172
|
},
|
|
@@ -8476,7 +8515,9 @@ var en_default = {
|
|
|
8476
8515
|
more: "more",
|
|
8477
8516
|
walletDisplayLabel: "{{walletLabel}}",
|
|
8478
8517
|
brokerageDisplayLabel: "{{brokerageLabel}}",
|
|
8479
|
-
virtualFiatDisplayLabel: "{{virtualFiatLabel}}"
|
|
8518
|
+
virtualFiatDisplayLabel: "{{virtualFiatLabel}}",
|
|
8519
|
+
insufficientBalance: "Insufficient balance",
|
|
8520
|
+
insufficientBalanceTooltip: "At least one asset must be over {{currency}}{{minAmount}} to continue."
|
|
8480
8521
|
},
|
|
8481
8522
|
quote: {
|
|
8482
8523
|
preparingYourQuote: "Preparing your quote...",
|
|
@@ -8584,7 +8625,7 @@ var es_default = {
|
|
|
8584
8625
|
amountBelowMinimum: "Monto por debajo del m\xEDnimo",
|
|
8585
8626
|
amountAboveMaximum: "Monto por encima del m\xE1ximo",
|
|
8586
8627
|
inputAmountGreaterThan: "Ingresa un monto mayor que {{limit}}.",
|
|
8587
|
-
inputAmountLowerThan: "
|
|
8628
|
+
inputAmountLowerThan: "{{currency}} l\xEDmite m\xE1ximo {{limit}}. Otras monedas pueden tener l\xEDmites m\xE1s altos.",
|
|
8588
8629
|
unableToRetrieveBalance: "No se puede obtener el saldo de tu cuenta. Por favor reconecta tu billetera.",
|
|
8589
8630
|
unableFetchPrice: "No se puede obtener el precio del token. Por favor reintenta.",
|
|
8590
8631
|
quickOptionsPercent: "{{percent}}%",
|
|
@@ -8637,6 +8678,7 @@ var es_default = {
|
|
|
8637
8678
|
instant: "Instant\xE1neo",
|
|
8638
8679
|
noLimit: "Sin l\xEDmite",
|
|
8639
8680
|
fiftyThousandDollars: "$50,000",
|
|
8681
|
+
twentyThousandDollars: "$20,000",
|
|
8640
8682
|
tenThousandDollars: "$10,000",
|
|
8641
8683
|
fiveMinutes: "5 min"
|
|
8642
8684
|
},
|
|
@@ -8985,7 +9027,9 @@ var es_default = {
|
|
|
8985
9027
|
more: "m\xE1s",
|
|
8986
9028
|
walletDisplayLabel: "{{walletLabel}}",
|
|
8987
9029
|
brokerageDisplayLabel: "{{brokerageLabel}}",
|
|
8988
|
-
virtualFiatDisplayLabel: "{{virtualFiatLabel}}"
|
|
9030
|
+
virtualFiatDisplayLabel: "{{virtualFiatLabel}}",
|
|
9031
|
+
insufficientBalance: "Saldo insuficiente",
|
|
9032
|
+
insufficientBalanceTooltip: "Al menos un activo debe ser mayor a {{currency}}{{minAmount}} para continuar."
|
|
8989
9033
|
},
|
|
8990
9034
|
quote: {
|
|
8991
9035
|
preparingYourQuote: "Preparando tu cotizaci\xF3n...",
|
|
@@ -9093,7 +9137,7 @@ var fr_default = {
|
|
|
9093
9137
|
amountBelowMinimum: "Montant inf\xE9rieur au minimum",
|
|
9094
9138
|
amountAboveMaximum: "Montant sup\xE9rieur au maximum",
|
|
9095
9139
|
inputAmountGreaterThan: "Saisissez un montant sup\xE9rieur \xE0 {{limit}}.",
|
|
9096
|
-
inputAmountLowerThan: "
|
|
9140
|
+
inputAmountLowerThan: "{{currency}} limite max {{limit}}. D'autres devises peuvent avoir des limites plus \xE9lev\xE9es.",
|
|
9097
9141
|
unableToRetrieveBalance: "Impossible d'obtenir le solde de votre compte. Veuillez reconnecter votre portefeuille.",
|
|
9098
9142
|
unableFetchPrice: "Impossible d'obtenir le prix de l'actif. Veuillez r\xE9essayer.",
|
|
9099
9143
|
quickOptionsPercent: "{{percent}}%",
|
|
@@ -9146,6 +9190,7 @@ var fr_default = {
|
|
|
9146
9190
|
instant: "Instantan\xE9",
|
|
9147
9191
|
noLimit: "Pas de limite",
|
|
9148
9192
|
fiftyThousandDollars: "$50,000",
|
|
9193
|
+
twentyThousandDollars: "$20,000",
|
|
9149
9194
|
tenThousandDollars: "$10,000",
|
|
9150
9195
|
fiveMinutes: "5 min"
|
|
9151
9196
|
},
|
|
@@ -9494,7 +9539,9 @@ var fr_default = {
|
|
|
9494
9539
|
more: "plus",
|
|
9495
9540
|
walletDisplayLabel: "{{walletLabel}}",
|
|
9496
9541
|
brokerageDisplayLabel: "{{brokerageLabel}}",
|
|
9497
|
-
virtualFiatDisplayLabel: "{{virtualFiatLabel}}"
|
|
9542
|
+
virtualFiatDisplayLabel: "{{virtualFiatLabel}}",
|
|
9543
|
+
insufficientBalance: "Solde insuffisant",
|
|
9544
|
+
insufficientBalanceTooltip: "Au moins un actif doit d\xE9passer {{currency}}{{minAmount}} pour continuer."
|
|
9498
9545
|
},
|
|
9499
9546
|
quote: {
|
|
9500
9547
|
preparingYourQuote: "Pr\xE9paration de votre cotation...",
|
|
@@ -9602,7 +9649,7 @@ var ja_default = {
|
|
|
9602
9649
|
amountBelowMinimum: "\u91D1\u984D\u304C\u6700\u5C0F\u5024\u3092\u4E0B\u56DE\u3063\u3066\u3044\u307E\u3059",
|
|
9603
9650
|
amountAboveMaximum: "\u91D1\u984D\u304C\u6700\u5927\u5024\u3092\u8D85\u3048\u3066\u3044\u307E\u3059",
|
|
9604
9651
|
inputAmountGreaterThan: "{{limit}}\u3088\u308A\u5927\u304D\u3044\u91D1\u984D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
9605
|
-
inputAmountLowerThan: "{{limit}}\u3088\u308A\
|
|
9652
|
+
inputAmountLowerThan: "{{currency}} \u4E0A\u9650 {{limit}}\u3002\u4ED6\u306E\u901A\u8CA8\u306F\u3088\u308A\u9AD8\u3044\u9650\u5EA6\u984D\u306E\u5834\u5408\u304C\u3042\u308A\u307E\u3059\u3002",
|
|
9606
9653
|
unableToRetrieveBalance: "\u30A2\u30AB\u30A6\u30F3\u30C8\u6B8B\u9AD8\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002\u30A6\u30A9\u30EC\u30C3\u30C8\u3092\u518D\u63A5\u7D9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
9607
9654
|
unableFetchPrice: "\u30C8\u30FC\u30AF\u30F3\u306E\u4FA1\u683C\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
9608
9655
|
quickOptionsPercent: "{{percent}}%",
|
|
@@ -9655,6 +9702,7 @@ var ja_default = {
|
|
|
9655
9702
|
instant: "\u5373\u6642",
|
|
9656
9703
|
noLimit: "\u5236\u9650\u306A\u3057",
|
|
9657
9704
|
fiftyThousandDollars: "$50,000",
|
|
9705
|
+
twentyThousandDollars: "$20,000",
|
|
9658
9706
|
tenThousandDollars: "$10,000",
|
|
9659
9707
|
fiveMinutes: "5\u5206"
|
|
9660
9708
|
},
|
|
@@ -10003,7 +10051,9 @@ var ja_default = {
|
|
|
10003
10051
|
more: "\u3082\u3063\u3068\u898B\u308B",
|
|
10004
10052
|
walletDisplayLabel: "{{walletLabel}}",
|
|
10005
10053
|
brokerageDisplayLabel: "{{brokerageLabel}}",
|
|
10006
|
-
virtualFiatDisplayLabel: "{{virtualFiatLabel}}"
|
|
10054
|
+
virtualFiatDisplayLabel: "{{virtualFiatLabel}}",
|
|
10055
|
+
insufficientBalance: "\u6B8B\u9AD8\u4E0D\u8DB3",
|
|
10056
|
+
insufficientBalanceTooltip: "\u7D9A\u884C\u3059\u308B\u306B\u306F\u3001\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8CC7\u7523\u304C{{currency}}{{minAmount}}\u3092\u8D85\u3048\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002"
|
|
10007
10057
|
},
|
|
10008
10058
|
quote: {
|
|
10009
10059
|
preparingYourQuote: "\u898B\u7A4D\u3082\u308A\u3092\u6E96\u5099\u4E2D...",
|
|
@@ -10111,7 +10161,7 @@ var ko_default = {
|
|
|
10111
10161
|
amountBelowMinimum: "\uCD5C\uC18C \uAE08\uC561 \uBBF8\uB9CC",
|
|
10112
10162
|
amountAboveMaximum: "\uCD5C\uB300 \uAE08\uC561 \uCD08\uACFC",
|
|
10113
10163
|
inputAmountGreaterThan: "{{limit}}\uBCF4\uB2E4 \uD070 \uAE08\uC561\uC744 \uC785\uB825\uD558\uC138\uC694.",
|
|
10114
|
-
inputAmountLowerThan: "{{limit}}\
|
|
10164
|
+
inputAmountLowerThan: "{{currency}} \uCD5C\uB300 \uD55C\uB3C4 {{limit}}. \uB2E4\uB978 \uD1B5\uD654\uB294 \uB354 \uB192\uC740 \uD55C\uB3C4\uAC00 \uC788\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
10115
10165
|
unableToRetrieveBalance: "\uACC4\uC815 \uC794\uC561\uC744 \uAC00\uC838\uC62C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uC9C0\uAC11\uC744 \uB2E4\uC2DC \uC5F0\uACB0\uD574 \uC8FC\uC138\uC694.",
|
|
10116
10166
|
unableFetchPrice: "\uD1A0\uD070 \uAC00\uACA9\uC744 \uAC00\uC838\uC62C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.",
|
|
10117
10167
|
quickOptionsPercent: "{{percent}}%",
|
|
@@ -10164,6 +10214,7 @@ var ko_default = {
|
|
|
10164
10214
|
instant: "\uC989\uC2DC",
|
|
10165
10215
|
noLimit: "\uC81C\uD55C \uC5C6\uC74C",
|
|
10166
10216
|
fiftyThousandDollars: "$50,000",
|
|
10217
|
+
twentyThousandDollars: "$20,000",
|
|
10167
10218
|
tenThousandDollars: "$10,000",
|
|
10168
10219
|
fiveMinutes: "5\uBD84"
|
|
10169
10220
|
},
|
|
@@ -10512,7 +10563,9 @@ var ko_default = {
|
|
|
10512
10563
|
more: "\uB354 \uBCF4\uAE30",
|
|
10513
10564
|
walletDisplayLabel: "{{walletLabel}}",
|
|
10514
10565
|
brokerageDisplayLabel: "{{brokerageLabel}}",
|
|
10515
|
-
virtualFiatDisplayLabel: "{{virtualFiatLabel}}"
|
|
10566
|
+
virtualFiatDisplayLabel: "{{virtualFiatLabel}}",
|
|
10567
|
+
insufficientBalance: "\uC794\uC561 \uBD80\uC871",
|
|
10568
|
+
insufficientBalanceTooltip: "\uACC4\uC18D\uD558\uB824\uBA74 \uCD5C\uC18C \uD55C \uAC1C\uC758 \uC790\uC0B0\uC774 {{currency}}{{minAmount}} \uC774\uC0C1\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4."
|
|
10516
10569
|
},
|
|
10517
10570
|
quote: {
|
|
10518
10571
|
preparingYourQuote: "\uACAC\uC801 \uC900\uBE44 \uC911...",
|
|
@@ -10620,7 +10673,7 @@ var ru_default = {
|
|
|
10620
10673
|
amountBelowMinimum: "\u0421\u0443\u043C\u043C\u0430 \u043D\u0438\u0436\u0435 \u043C\u0438\u043D\u0438\u043C\u0443\u043C\u0430",
|
|
10621
10674
|
amountAboveMaximum: "\u0421\u0443\u043C\u043C\u0430 \u0432\u044B\u0448\u0435 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C\u0430",
|
|
10622
10675
|
inputAmountGreaterThan: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0443\u043C\u043C\u0443 \u0431\u043E\u043B\u044C\u0448\u0435 {{limit}}.",
|
|
10623
|
-
inputAmountLowerThan: "\
|
|
10676
|
+
inputAmountLowerThan: "{{currency}} \u043C\u0430\u043A\u0441. \u043B\u0438\u043C\u0438\u0442 {{limit}}. \u0414\u0440\u0443\u0433\u0438\u0435 \u0432\u0430\u043B\u044E\u0442\u044B \u043C\u043E\u0433\u0443\u0442 \u0438\u043C\u0435\u0442\u044C \u0431\u043E\u043B\u0435\u0435 \u0432\u044B\u0441\u043E\u043A\u0438\u0435 \u043B\u0438\u043C\u0438\u0442\u044B.",
|
|
10624
10677
|
unableToRetrieveBalance: "\u041D\u0435 \u0443\u0434\u0430\u0451\u0442\u0441\u044F \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0431\u0430\u043B\u0430\u043D\u0441 \u0432\u0430\u0448\u0435\u0433\u043E \u0441\u0447\u0451\u0442\u0430. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u0435\u0440\u0435\u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u043A\u043E\u0448\u0435\u043B\u0451\u043A.",
|
|
10625
10678
|
unableFetchPrice: "\u041D\u0435 \u0443\u0434\u0430\u0451\u0442\u0441\u044F \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0446\u0435\u043D\u0443 \u0434\u043B\u044F \u0442\u043E\u043A\u0435\u043D\u0430. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443.",
|
|
10626
10679
|
quickOptionsPercent: "{{percent}}%",
|
|
@@ -10673,6 +10726,7 @@ var ru_default = {
|
|
|
10673
10726
|
instant: "\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E",
|
|
10674
10727
|
noLimit: "\u0411\u0435\u0437 \u043B\u0438\u043C\u0438\u0442\u0430",
|
|
10675
10728
|
fiftyThousandDollars: "$50,000",
|
|
10729
|
+
twentyThousandDollars: "$20,000",
|
|
10676
10730
|
tenThousandDollars: "$10,000",
|
|
10677
10731
|
fiveMinutes: "5 \u043C\u0438\u043D"
|
|
10678
10732
|
},
|
|
@@ -11021,7 +11075,9 @@ var ru_default = {
|
|
|
11021
11075
|
more: "\u0431\u043E\u043B\u044C\u0448\u0435",
|
|
11022
11076
|
walletDisplayLabel: "{{walletLabel}}",
|
|
11023
11077
|
brokerageDisplayLabel: "{{brokerageLabel}}",
|
|
11024
|
-
virtualFiatDisplayLabel: "{{virtualFiatLabel}}"
|
|
11078
|
+
virtualFiatDisplayLabel: "{{virtualFiatLabel}}",
|
|
11079
|
+
insufficientBalance: "\u041D\u0435\u0434\u043E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u044B\u0439 \u0431\u0430\u043B\u0430\u043D\u0441",
|
|
11080
|
+
insufficientBalanceTooltip: "\u0414\u043B\u044F \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0435\u043D\u0438\u044F \u0445\u043E\u0442\u044F \u0431\u044B \u043E\u0434\u0438\u043D \u0430\u043A\u0442\u0438\u0432 \u0434\u043E\u043B\u0436\u0435\u043D \u043F\u0440\u0435\u0432\u044B\u0448\u0430\u0442\u044C {{currency}}{{minAmount}}."
|
|
11025
11081
|
},
|
|
11026
11082
|
quote: {
|
|
11027
11083
|
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...",
|
|
@@ -11129,7 +11185,7 @@ var tr_default = {
|
|
|
11129
11185
|
amountBelowMinimum: "Tutar minimumun alt\u0131nda",
|
|
11130
11186
|
amountAboveMaximum: "Tutar maksimumun \xFCzerinde",
|
|
11131
11187
|
inputAmountGreaterThan: "{{limit}} de\u011Ferinden b\xFCy\xFCk bir tutar girin.",
|
|
11132
|
-
inputAmountLowerThan: "{{limit}}
|
|
11188
|
+
inputAmountLowerThan: "{{currency}} maksimum limit {{limit}}. Di\u011Fer para birimlerinin limitleri daha y\xFCksek olabilir.",
|
|
11133
11189
|
unableToRetrieveBalance: "Hesap bakiyeniz al\u0131nam\u0131yor. L\xFCtfen hesab\u0131n\u0131z\u0131 yeniden ba\u011Flamay\u0131 deneyin.",
|
|
11134
11190
|
unableFetchPrice: "Token fiyat\u0131 al\u0131nam\u0131yor. L\xFCtfen tekrar deneyin.",
|
|
11135
11191
|
quickOptionsPercent: "{{percent}}%",
|
|
@@ -11182,6 +11238,7 @@ var tr_default = {
|
|
|
11182
11238
|
instant: "An\u0131nda",
|
|
11183
11239
|
noLimit: "Limit yok",
|
|
11184
11240
|
fiftyThousandDollars: "$50,000",
|
|
11241
|
+
twentyThousandDollars: "$20,000",
|
|
11185
11242
|
tenThousandDollars: "$10,000",
|
|
11186
11243
|
fiveMinutes: "5 dk"
|
|
11187
11244
|
},
|
|
@@ -11530,7 +11587,9 @@ var tr_default = {
|
|
|
11530
11587
|
more: "daha fazla",
|
|
11531
11588
|
walletDisplayLabel: "{{walletLabel}}",
|
|
11532
11589
|
brokerageDisplayLabel: "{{brokerageLabel}}",
|
|
11533
|
-
virtualFiatDisplayLabel: "{{virtualFiatLabel}}"
|
|
11590
|
+
virtualFiatDisplayLabel: "{{virtualFiatLabel}}",
|
|
11591
|
+
insufficientBalance: "Yetersiz bakiye",
|
|
11592
|
+
insufficientBalanceTooltip: "Devam etmek i\xE7in en az bir varl\u0131\u011F\u0131n {{currency}}{{minAmount}} \xFCzerinde olmas\u0131 gerekiyor."
|
|
11534
11593
|
},
|
|
11535
11594
|
quote: {
|
|
11536
11595
|
preparingYourQuote: "Teklifiniz haz\u0131rlan\u0131yor...",
|
|
@@ -11638,7 +11697,7 @@ var zh_default = {
|
|
|
11638
11697
|
amountBelowMinimum: "\u91D1\u989D\u4F4E\u4E8E\u6700\u5C0F\u503C",
|
|
11639
11698
|
amountAboveMaximum: "\u91D1\u989D\u8D85\u8FC7\u6700\u5927\u503C",
|
|
11640
11699
|
inputAmountGreaterThan: "\u8BF7\u8F93\u5165\u5927\u4E8E {{limit}} \u7684\u91D1\u989D\u3002",
|
|
11641
|
-
inputAmountLowerThan: "\
|
|
11700
|
+
inputAmountLowerThan: "{{currency}} \u6700\u5927\u9650\u989D {{limit}}\u3002\u5176\u4ED6\u8D27\u5E01\u53EF\u80FD\u6709\u66F4\u9AD8\u7684\u9650\u989D\u3002",
|
|
11642
11701
|
unableToRetrieveBalance: "\u65E0\u6CD5\u83B7\u53D6\u60A8\u7684\u8D26\u6237\u4F59\u989D\u3002\u8BF7\u5C1D\u8BD5\u91CD\u65B0\u94FE\u63A5\u60A8\u7684\u8D26\u6237\u3002",
|
|
11643
11702
|
unableFetchPrice: "\u65E0\u6CD5\u83B7\u53D6\u4EE3\u5E01\u4EF7\u683C\u3002\u8BF7\u91CD\u8BD5\u3002",
|
|
11644
11703
|
quickOptionsPercent: "{{percent}}%",
|
|
@@ -11691,6 +11750,7 @@ var zh_default = {
|
|
|
11691
11750
|
instant: "\u5373\u65F6",
|
|
11692
11751
|
noLimit: "\u65E0\u9650\u989D",
|
|
11693
11752
|
fiftyThousandDollars: "$50,000",
|
|
11753
|
+
twentyThousandDollars: "$20,000",
|
|
11694
11754
|
tenThousandDollars: "$10,000",
|
|
11695
11755
|
fiveMinutes: "5\u5206\u949F"
|
|
11696
11756
|
},
|
|
@@ -12039,7 +12099,9 @@ var zh_default = {
|
|
|
12039
12099
|
more: "\u66F4\u591A",
|
|
12040
12100
|
walletDisplayLabel: "{{walletLabel}}",
|
|
12041
12101
|
brokerageDisplayLabel: "{{brokerageLabel}}",
|
|
12042
|
-
virtualFiatDisplayLabel: "{{virtualFiatLabel}}"
|
|
12102
|
+
virtualFiatDisplayLabel: "{{virtualFiatLabel}}",
|
|
12103
|
+
insufficientBalance: "\u4F59\u989D\u4E0D\u8DB3",
|
|
12104
|
+
insufficientBalanceTooltip: "\u81F3\u5C11\u6709\u4E00\u9879\u8D44\u4EA7\u5FC5\u987B\u8D85\u8FC7 {{currency}}{{minAmount}} \u624D\u80FD\u7EE7\u7EED\u3002"
|
|
12043
12105
|
},
|
|
12044
12106
|
quote: {
|
|
12045
12107
|
preparingYourQuote: "\u6B63\u5728\u51C6\u5907\u60A8\u7684\u62A5\u4EF7...",
|
|
@@ -12305,6 +12367,7 @@ var useBluvoCheckoutQuote = () => {
|
|
|
12305
12367
|
const { checkoutItem } = useCheckoutContext();
|
|
12306
12368
|
const { transferInit } = useCheckoutTransferInit(!checkoutItem?.isWithdrawal);
|
|
12307
12369
|
const { selectedBrokerageAsset } = useFunkitBrokerageContext();
|
|
12370
|
+
const { apiKey } = useFunkitConfig();
|
|
12308
12371
|
async function getBluvoCheckoutQuote({
|
|
12309
12372
|
amount,
|
|
12310
12373
|
symbol,
|
|
@@ -12330,7 +12393,8 @@ var useBluvoCheckoutQuote = () => {
|
|
|
12330
12393
|
amount,
|
|
12331
12394
|
asset: symbol,
|
|
12332
12395
|
network: chainInfo?.name,
|
|
12333
|
-
includeFee: true
|
|
12396
|
+
includeFee: true,
|
|
12397
|
+
tag: apiKey
|
|
12334
12398
|
});
|
|
12335
12399
|
if (quote?.error || !quote?.rawQuote) {
|
|
12336
12400
|
logger.error("useBluvoCheckoutQuote:error", {
|
|
@@ -13178,9 +13242,7 @@ var ModalSizeOptions = {
|
|
|
13178
13242
|
MEDIUM: "medium",
|
|
13179
13243
|
WIDE: "wide"
|
|
13180
13244
|
};
|
|
13181
|
-
var ModalSizeContext = createContext13(
|
|
13182
|
-
ModalSizeOptions.MEDIUM
|
|
13183
|
-
);
|
|
13245
|
+
var ModalSizeContext = createContext13(ModalSizeOptions.WIDE);
|
|
13184
13246
|
function ModalSizeProvider({
|
|
13185
13247
|
children,
|
|
13186
13248
|
modalSize
|
|
@@ -13574,7 +13636,7 @@ function FunkitProviderInner({
|
|
|
13574
13636
|
}, [activeTheme, selector]);
|
|
13575
13637
|
const avatarContext = avatar ?? defaultAvatar;
|
|
13576
13638
|
const isSandboxMode = !!sandbox;
|
|
13577
|
-
const modalSizeFinal = modalSize || ModalSizeOptions.
|
|
13639
|
+
const modalSizeFinal = modalSize || ModalSizeOptions.WIDE;
|
|
13578
13640
|
return /* @__PURE__ */ React36.createElement(FunkitI18nProvider, { locale }, /* @__PURE__ */ React36.createElement(FunkitStatsigProvider, { isDevelopment: debug }, /* @__PURE__ */ React36.createElement(FunkitConfigContext.Provider, { value: funkitConfig }, /* @__PURE__ */ React36.createElement(FunkitConnectChainProvider, { initialChain }, /* @__PURE__ */ React36.createElement(ModalSizeProvider, { modalSize: modalSizeFinal }, /* @__PURE__ */ React36.createElement(GeneralWalletProvider, null, /* @__PURE__ */ React36.createElement(FunkitFlagsProvider, null, /* @__PURE__ */ React36.createElement(FunkitCheckoutHistoryProvider, null, /* @__PURE__ */ React36.createElement(FunkitCheckoutProvider, null, /* @__PURE__ */ React36.createElement(FunkitSandboxContext.Provider, { value: isSandboxMode }, /* @__PURE__ */ React36.createElement(FunkitBrokerageProvider, null, /* @__PURE__ */ React36.createElement(FunkitQuoteProvider, null, /* @__PURE__ */ React36.createElement(AvatarContext.Provider, { value: avatarContext }, /* @__PURE__ */ React36.createElement(ThemeIdContext2.Provider, { value: id }, /* @__PURE__ */ React36.createElement(ShowBalanceProvider, null, /* @__PURE__ */ React36.createElement(UserPresenceProvider, null, /* @__PURE__ */ React36.createElement(ModalProvider, null, activeTheme ? /* @__PURE__ */ React36.createElement(
|
|
13579
13641
|
"div",
|
|
13580
13642
|
{
|
|
@@ -16394,7 +16456,7 @@ var TokenAndChainDropdown = ({
|
|
|
16394
16456
|
chainLabelAddon,
|
|
16395
16457
|
alwaysOpenToTop,
|
|
16396
16458
|
maxTokenDropdownHeight = 338,
|
|
16397
|
-
maxChainDropdownHeight,
|
|
16459
|
+
maxChainDropdownHeight = 338,
|
|
16398
16460
|
openChainDropdownFullWidth,
|
|
16399
16461
|
chainTagComponent,
|
|
16400
16462
|
hideNewTokenBadge
|
|
@@ -16965,6 +17027,9 @@ function formatRelayFee({
|
|
|
16965
17027
|
if (usd < threshold) {
|
|
16966
17028
|
return formatCurrencyAndStringify2(usd);
|
|
16967
17029
|
}
|
|
17030
|
+
if (percent < 0) {
|
|
17031
|
+
return "< 0.01%";
|
|
17032
|
+
}
|
|
16968
17033
|
return formatPercent(percent);
|
|
16969
17034
|
}
|
|
16970
17035
|
function translateAppFeeLabel(appFeeLabel, t) {
|
|
@@ -17801,7 +17866,7 @@ import { useEffect as useEffect29, useState as useState24 } from "react";
|
|
|
17801
17866
|
import { polygon as polygon4 } from "viem/chains";
|
|
17802
17867
|
|
|
17803
17868
|
// src/hooks/useEnabledTokenTransferChainTokens.ts
|
|
17804
|
-
import { bitcoinChain as bitcoinChain2, solanaChain as solanaChain3 } from "@funkit/chains";
|
|
17869
|
+
import { bitcoinChain as bitcoinChain2, solanaChain as solanaChain3, tronChain as tronChain2 } from "@funkit/chains";
|
|
17805
17870
|
import { FlagKey as FlagKey9 } from "@funkit/utils";
|
|
17806
17871
|
import { base as base5 } from "viem/chains";
|
|
17807
17872
|
function useEnabledTokenTransferChainTokens(transferInit, isWithdrawal) {
|
|
@@ -17821,6 +17886,7 @@ function useEnabledTokenTransferChainTokens(transferInit, isWithdrawal) {
|
|
|
17821
17886
|
}
|
|
17822
17887
|
const hasSolanaAddress = !!transferInit?.solanaAddr;
|
|
17823
17888
|
const hasBitcoinAddress = !!transferInit?.btcAddrSegwit;
|
|
17889
|
+
const hasTronAddress = !!transferInit?.tronAddr;
|
|
17824
17890
|
return Object.keys(assets).reduce(
|
|
17825
17891
|
(acc, curChainIdString) => {
|
|
17826
17892
|
const chainId = Number(curChainIdString);
|
|
@@ -17832,6 +17898,10 @@ function useEnabledTokenTransferChainTokens(transferInit, isWithdrawal) {
|
|
|
17832
17898
|
if (isBitcoin && !hasBitcoinAddress && !isWithdrawal) {
|
|
17833
17899
|
return acc;
|
|
17834
17900
|
}
|
|
17901
|
+
const isTron = chainId === tronChain2.id;
|
|
17902
|
+
if (isTron && !hasTronAddress && !isWithdrawal) {
|
|
17903
|
+
return acc;
|
|
17904
|
+
}
|
|
17835
17905
|
if (isBankrUsUser && chainId !== base5.id) {
|
|
17836
17906
|
return acc;
|
|
17837
17907
|
}
|
|
@@ -19220,14 +19290,18 @@ var sepaCountryCode = [
|
|
|
19220
19290
|
// 'NL', // Netherlands
|
|
19221
19291
|
// 'SI', // Slovenia
|
|
19222
19292
|
];
|
|
19223
|
-
function
|
|
19293
|
+
function useIfFiatEnabledRegardlessOfUDA() {
|
|
19224
19294
|
const { userIpInfo } = useFunkitUserIp();
|
|
19225
19295
|
const isEuSepaUser = sepaCountryCode.includes(
|
|
19226
19296
|
userIpInfo?.alpha2 || "PLACEHOLDER"
|
|
19227
19297
|
);
|
|
19228
|
-
const isTokenTransferEnabled = useIsQRCodeTransferEnabled();
|
|
19229
19298
|
const isFiatEnabled = useFlag(FlagKey12.EnableFiatDeposit);
|
|
19230
|
-
return isEuSepaUser &&
|
|
19299
|
+
return isEuSepaUser && isFiatEnabled;
|
|
19300
|
+
}
|
|
19301
|
+
function useFiatEnabled() {
|
|
19302
|
+
const isTokenTransferEnabled = useIsQRCodeTransferEnabled();
|
|
19303
|
+
const isFiatEnabledRegardlessOfUDA = useIfFiatEnabledRegardlessOfUDA();
|
|
19304
|
+
return isTokenTransferEnabled && isFiatEnabledRegardlessOfUDA;
|
|
19231
19305
|
}
|
|
19232
19306
|
function useFrogAccounts() {
|
|
19233
19307
|
const { apiKey } = useFunkitConfig();
|
|
@@ -19415,15 +19489,30 @@ var processWalletAssets = (walletAssets, targetChain) => {
|
|
|
19415
19489
|
};
|
|
19416
19490
|
function useWalletAssetHoldings(targetChain) {
|
|
19417
19491
|
const { walletAssets, isLoading, totalWalletAssetsUsd } = useWalletAssets();
|
|
19492
|
+
const { checkoutItem } = useCheckoutContext();
|
|
19493
|
+
const config = checkoutItem?.initSettings.config;
|
|
19418
19494
|
const processedAssets = useMemo23(
|
|
19419
19495
|
() => processWalletAssets(walletAssets, targetChain),
|
|
19420
19496
|
[targetChain, walletAssets]
|
|
19421
19497
|
);
|
|
19498
|
+
const minValueThreshold = (() => {
|
|
19499
|
+
const minTargetAssetUSD = config?.getMinDepositUSD?.({
|
|
19500
|
+
tokenAddress: config.targetAsset,
|
|
19501
|
+
tokenChainId: config.targetChain
|
|
19502
|
+
}) ?? 0;
|
|
19503
|
+
return Math.max(minTargetAssetUSD, MIN_CHECKOUT_AMOUNT_USD);
|
|
19504
|
+
})();
|
|
19505
|
+
const hasUsableBalance = (() => {
|
|
19506
|
+
return Object.values(processedAssets ?? {}).some(
|
|
19507
|
+
(asset) => asset.usdAmount && asset.usdAmount >= minValueThreshold
|
|
19508
|
+
);
|
|
19509
|
+
})();
|
|
19422
19510
|
return {
|
|
19423
19511
|
data: processedAssets,
|
|
19424
19512
|
isLoading,
|
|
19425
19513
|
totalBalance: totalWalletAssetsUsd,
|
|
19426
|
-
hasUsableBalance:
|
|
19514
|
+
hasUsableBalance: hasUsableBalance || isLoading,
|
|
19515
|
+
minValueThreshold
|
|
19427
19516
|
};
|
|
19428
19517
|
}
|
|
19429
19518
|
|
|
@@ -19827,28 +19916,41 @@ function ConnectWalletItem({
|
|
|
19827
19916
|
}
|
|
19828
19917
|
);
|
|
19829
19918
|
}
|
|
19830
|
-
function SupportedChainList({
|
|
19831
|
-
|
|
19832
|
-
|
|
19833
|
-
|
|
19834
|
-
|
|
19835
|
-
|
|
19836
|
-
|
|
19837
|
-
|
|
19838
|
-
|
|
19839
|
-
|
|
19840
|
-
|
|
19841
|
-
|
|
19919
|
+
function SupportedChainList({
|
|
19920
|
+
chainIdList,
|
|
19921
|
+
iconSize = 12,
|
|
19922
|
+
style
|
|
19923
|
+
}) {
|
|
19924
|
+
return /* @__PURE__ */ React84.createElement(
|
|
19925
|
+
Box,
|
|
19926
|
+
{
|
|
19927
|
+
display: "flex",
|
|
19928
|
+
alignItems: "center",
|
|
19929
|
+
justifyContent: "flex-end",
|
|
19930
|
+
style
|
|
19931
|
+
},
|
|
19932
|
+
chainIdList.map((chainId, index) => {
|
|
19933
|
+
const metadata = chainMetadataById[chainId];
|
|
19934
|
+
return /* @__PURE__ */ React84.createElement(
|
|
19935
|
+
Box,
|
|
19842
19936
|
{
|
|
19843
|
-
|
|
19844
|
-
|
|
19845
|
-
|
|
19846
|
-
|
|
19847
|
-
|
|
19848
|
-
|
|
19849
|
-
|
|
19850
|
-
|
|
19851
|
-
|
|
19937
|
+
key: chainId,
|
|
19938
|
+
position: "relative",
|
|
19939
|
+
style: { right: `${(chainIdList.length - index - 1) * -2}px` }
|
|
19940
|
+
},
|
|
19941
|
+
/* @__PURE__ */ React84.createElement(
|
|
19942
|
+
AsyncImage,
|
|
19943
|
+
{
|
|
19944
|
+
alt: metadata?.name ?? "",
|
|
19945
|
+
borderRadius: "full",
|
|
19946
|
+
src: metadata?.iconUrl ?? "",
|
|
19947
|
+
height: iconSize,
|
|
19948
|
+
width: iconSize
|
|
19949
|
+
}
|
|
19950
|
+
)
|
|
19951
|
+
);
|
|
19952
|
+
})
|
|
19953
|
+
);
|
|
19852
19954
|
}
|
|
19853
19955
|
function PaymentMethodIcon({
|
|
19854
19956
|
paymentIcon,
|
|
@@ -19930,7 +20032,12 @@ var AccountBalancePaymentMethodItem = ({
|
|
|
19930
20032
|
}) => {
|
|
19931
20033
|
const { t } = useFunkitTranslation();
|
|
19932
20034
|
const walletLabel = useWalletLabel();
|
|
19933
|
-
const {
|
|
20035
|
+
const {
|
|
20036
|
+
isLoading: isLoadingAssets,
|
|
20037
|
+
totalBalance,
|
|
20038
|
+
hasUsableBalance,
|
|
20039
|
+
minValueThreshold
|
|
20040
|
+
} = useWalletAssetHoldings(targetChainId);
|
|
19934
20041
|
const paymentIcon = usePaymentMethodIcon("balance" /* ACCOUNT_BALANCE */);
|
|
19935
20042
|
const dynamicLimit = formatCurrencyAndStringify4(totalBalance);
|
|
19936
20043
|
const disclaimerText = dynamicLimit ? t("payment.disclaimerText", {
|
|
@@ -19941,6 +20048,14 @@ var AccountBalancePaymentMethodItem = ({
|
|
|
19941
20048
|
time: t("payment.instant")
|
|
19942
20049
|
});
|
|
19943
20050
|
const keyIconSize = 20;
|
|
20051
|
+
const isDisabled = isLoadingAssets || !hasUsableBalance;
|
|
20052
|
+
const insufficientBalanceTooltip = t(
|
|
20053
|
+
"sourceChange.insufficientBalanceTooltip",
|
|
20054
|
+
{
|
|
20055
|
+
minAmount: minValueThreshold,
|
|
20056
|
+
currency: "$"
|
|
20057
|
+
}
|
|
20058
|
+
);
|
|
19944
20059
|
return /* @__PURE__ */ React84.createElement(
|
|
19945
20060
|
FunPaymentMethodItem,
|
|
19946
20061
|
{
|
|
@@ -19954,8 +20069,9 @@ var AccountBalancePaymentMethodItem = ({
|
|
|
19954
20069
|
),
|
|
19955
20070
|
keyText: walletLabel,
|
|
19956
20071
|
valueIcon: isSelected && showSelectedCheckmark && /* @__PURE__ */ React84.createElement(CheckIcon, null),
|
|
20072
|
+
badge: !isLoadingAssets && !hasUsableBalance && /* @__PURE__ */ React84.createElement(FunTooltip, { content: insufficientBalanceTooltip, startDelay: 150 }, /* @__PURE__ */ React84.createElement(FunBadge, { borderColor: "generalBorder" }, t("sourceChange.insufficientBalance"))),
|
|
19957
20073
|
onClick: onSelect,
|
|
19958
|
-
isDisabled
|
|
20074
|
+
isDisabled,
|
|
19959
20075
|
disclaimerText: isLoadingAssets ? t("payment.fetchingBalance") : disclaimerText,
|
|
19960
20076
|
testId: testId || "wallet-payment-method"
|
|
19961
20077
|
}
|
|
@@ -19986,7 +20102,7 @@ var CardPaymentMethodItem = ({
|
|
|
19986
20102
|
onClick,
|
|
19987
20103
|
isDisabled: !isClickable,
|
|
19988
20104
|
disclaimerText: t("payment.disclaimerText", {
|
|
19989
|
-
limit: t("payment.
|
|
20105
|
+
limit: t("payment.twentyThousandDollars"),
|
|
19990
20106
|
time: estimatedTimeText
|
|
19991
20107
|
}),
|
|
19992
20108
|
testId: "card-payment-method"
|
|
@@ -22279,7 +22395,8 @@ function DirectExecutionOrderDetailSection({
|
|
|
22279
22395
|
isRefunded,
|
|
22280
22396
|
latestDirectExecution
|
|
22281
22397
|
} = useMultiStepDirectExecutionStatus(directExecution, disabled);
|
|
22282
|
-
const
|
|
22398
|
+
const fromTxHash = directExecution.onChainTxHash ?? directExecution.txHash;
|
|
22399
|
+
const { fromChainId } = directExecution;
|
|
22283
22400
|
const createdTime = getDirectExecutionCreatedTimeMs(directExecution);
|
|
22284
22401
|
const toChainId = getLzOftDestinationChain(latestDirectExecution) ?? latestDirectExecution.toChainId;
|
|
22285
22402
|
const listenerInfoTxHashes = latestDirectExecution.listenerInfo?.txHashes || [];
|
|
@@ -23393,7 +23510,7 @@ function WithdrawalModal({
|
|
|
23393
23510
|
}
|
|
23394
23511
|
|
|
23395
23512
|
// src/modals/AccountModal/AccountModal.tsx
|
|
23396
|
-
import
|
|
23513
|
+
import React224 from "react";
|
|
23397
23514
|
|
|
23398
23515
|
// src/modals/ProfileDetails/ActivityTraversalContext.tsx
|
|
23399
23516
|
import React113, {
|
|
@@ -23468,11 +23585,11 @@ var useActivityTraversal = () => {
|
|
|
23468
23585
|
};
|
|
23469
23586
|
|
|
23470
23587
|
// src/modals/ProfileDetails/ProfileDetails.tsx
|
|
23471
|
-
import
|
|
23588
|
+
import React223, { useCallback as useCallback47, useState as useState70 } from "react";
|
|
23472
23589
|
|
|
23473
23590
|
// src/components/FunCheckoutModalHeightAnimationWrapper/FunCheckoutModalHeightAnimationWrapper.tsx
|
|
23474
23591
|
import { motion as motion14 } from "motion/react";
|
|
23475
|
-
import
|
|
23592
|
+
import React210, { useEffect as useEffect54, useRef as useRef28, useState as useState67 } from "react";
|
|
23476
23593
|
|
|
23477
23594
|
// src/modals/CheckoutModal/stepTransition.ts
|
|
23478
23595
|
import {
|
|
@@ -28403,7 +28520,10 @@ var useMeldLimitError = (amount, fiatCurrency) => {
|
|
|
28403
28520
|
);
|
|
28404
28521
|
return {
|
|
28405
28522
|
issue: t("inputAmount.amountAboveMaximum"),
|
|
28406
|
-
suggestion: t("inputAmount.inputAmountLowerThan", {
|
|
28523
|
+
suggestion: t("inputAmount.inputAmountLowerThan", {
|
|
28524
|
+
limit,
|
|
28525
|
+
currency: meldLimit.currencyCode
|
|
28526
|
+
})
|
|
28407
28527
|
};
|
|
28408
28528
|
}
|
|
28409
28529
|
return void 0;
|
|
@@ -30357,10 +30477,7 @@ function autoPickBestQuote(quotes) {
|
|
|
30357
30477
|
if ((sortedByScore[0]?.customerScore ?? 0) >= 30) {
|
|
30358
30478
|
return sortedByScore[0];
|
|
30359
30479
|
}
|
|
30360
|
-
const
|
|
30361
|
-
(q) => q.serviceProvider === MeldServiceProvider.COINBASEPAY || q.serviceProvider === MeldServiceProvider.BINANCECONNECT
|
|
30362
|
-
);
|
|
30363
|
-
const coinbase = coinbaseOrBinance.find(
|
|
30480
|
+
const coinbase = quotes.find(
|
|
30364
30481
|
(q) => q.serviceProvider === MeldServiceProvider.COINBASEPAY
|
|
30365
30482
|
);
|
|
30366
30483
|
const moonpay = quotes.find(
|
|
@@ -30370,27 +30487,6 @@ function autoPickBestQuote(quotes) {
|
|
|
30370
30487
|
if (moonpay && !coinbase || moonpay && !isCoinbaseOneToOne) {
|
|
30371
30488
|
return moonpay;
|
|
30372
30489
|
}
|
|
30373
|
-
if (coinbaseOrBinance.length > 0) {
|
|
30374
|
-
const highestCoinbaseOrBinanceDestAmount = [...coinbaseOrBinance].sort(
|
|
30375
|
-
(a, b) => (b.destinationAmount ?? 0) - (a.destinationAmount ?? 0)
|
|
30376
|
-
)[0];
|
|
30377
|
-
const highestDestAmount = [...quotes].sort(
|
|
30378
|
-
(a, b) => (b.destinationAmount ?? 0) - (a.destinationAmount ?? 0)
|
|
30379
|
-
)[0];
|
|
30380
|
-
const highestCoinbaseOrBinanceCustomerScore = [...coinbaseOrBinance].sort(
|
|
30381
|
-
(a, b) => (b.customerScore ?? 0) - (a.customerScore ?? 0)
|
|
30382
|
-
)[0];
|
|
30383
|
-
if ((highestCoinbaseOrBinanceDestAmount?.destinationAmount ?? 0) >= 0.96 * (highestDestAmount?.destinationAmount ?? 0)) {
|
|
30384
|
-
if (highestCoinbaseOrBinanceCustomerScore?.customerScore === highestDestAmount?.customerScore) {
|
|
30385
|
-
return highestCoinbaseOrBinanceDestAmount;
|
|
30386
|
-
}
|
|
30387
|
-
return highestCoinbaseOrBinanceCustomerScore;
|
|
30388
|
-
}
|
|
30389
|
-
const sortedByDestAmount2 = [...coinbaseOrBinance].sort(
|
|
30390
|
-
(a, b) => (b.destinationAmount ?? 0) - (a.destinationAmount ?? 0)
|
|
30391
|
-
);
|
|
30392
|
-
return sortedByDestAmount2[0];
|
|
30393
|
-
}
|
|
30394
30490
|
const sortedByDestAmount = [...quotes].sort(
|
|
30395
30491
|
(a, b) => (b.destinationAmount ?? 0) - (a.destinationAmount ?? 0)
|
|
30396
30492
|
);
|
|
@@ -30775,6 +30871,37 @@ async function openMeldPopup(linkGetter) {
|
|
|
30775
30871
|
return;
|
|
30776
30872
|
}
|
|
30777
30873
|
popup.opener = null;
|
|
30874
|
+
const style = popup.document.createElement("style");
|
|
30875
|
+
style.textContent = `
|
|
30876
|
+
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
30877
|
+
body {
|
|
30878
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
30879
|
+
display: flex;
|
|
30880
|
+
align-items: center;
|
|
30881
|
+
justify-content: center;
|
|
30882
|
+
min-height: 100vh;
|
|
30883
|
+
background: #ffffff;
|
|
30884
|
+
}
|
|
30885
|
+
.spinner {
|
|
30886
|
+
width: 48px;
|
|
30887
|
+
height: 48px;
|
|
30888
|
+
border: 4px solid #e8e8e8;
|
|
30889
|
+
border-top-color: #2b2b2b;
|
|
30890
|
+
border-radius: 50%;
|
|
30891
|
+
animation: spin 0.8s linear infinite;
|
|
30892
|
+
margin: 0 auto 16px;
|
|
30893
|
+
}
|
|
30894
|
+
.loader-container { text-align: center; }
|
|
30895
|
+
@keyframes spin { to { transform: rotate(360deg); } }
|
|
30896
|
+
`;
|
|
30897
|
+
popup.document.head.appendChild(style);
|
|
30898
|
+
popup.document.title = "Meld | Buy & Sell Crypto";
|
|
30899
|
+
const loaderContainer = popup.document.createElement("div");
|
|
30900
|
+
loaderContainer.className = "loader-container";
|
|
30901
|
+
const spinner = popup.document.createElement("div");
|
|
30902
|
+
spinner.className = "spinner";
|
|
30903
|
+
loaderContainer.appendChild(spinner);
|
|
30904
|
+
popup.document.body.appendChild(loaderContainer);
|
|
30778
30905
|
const result = await linkGetter();
|
|
30779
30906
|
popup.location.href = result.widgetUrl;
|
|
30780
30907
|
}
|
|
@@ -31539,14 +31666,16 @@ var usePaymentSources = (paymentMethodInfo, targetChainId, checkoutConfig) => {
|
|
|
31539
31666
|
);
|
|
31540
31667
|
const matchingFiatAccount = useMatchingVirtualFiatAccount(allFiatAccounts);
|
|
31541
31668
|
const { hasUsableBalance } = useWalletAssetHoldings(targetChainId);
|
|
31542
|
-
const { apiKey } = useFunkitConfig();
|
|
31669
|
+
const { apiKey, uiCustomizations } = useFunkitConfig();
|
|
31543
31670
|
const isConnected = userInfo.isConnected;
|
|
31671
|
+
const showWalletOnInsufficientBalance = uiCustomizations.sourceChangeScreen.showWalletOnInsufficientBalance;
|
|
31544
31672
|
const {
|
|
31545
31673
|
isFiatEnabled,
|
|
31546
31674
|
isTokenTransferEnabled,
|
|
31547
31675
|
isMeldEnabled,
|
|
31548
31676
|
isBrokerageEnabled
|
|
31549
31677
|
} = usePaymentMethodEnablement({ checkoutConfig });
|
|
31678
|
+
const isFiatEnabledRegardlessOfUDA = useIfFiatEnabledRegardlessOfUDA();
|
|
31550
31679
|
const accountPaymentMethodInfo = createPaymentMethodInfo({
|
|
31551
31680
|
paymentMethod: "balance" /* ACCOUNT_BALANCE */,
|
|
31552
31681
|
walletAddress
|
|
@@ -31556,8 +31685,8 @@ var usePaymentSources = (paymentMethodInfo, targetChainId, checkoutConfig) => {
|
|
|
31556
31685
|
matchingFiatAccount,
|
|
31557
31686
|
bridgeCustomer: allFiatAccounts.bridgeCustomer
|
|
31558
31687
|
}) : null;
|
|
31559
|
-
const
|
|
31560
|
-
const connectedAccountInfo =
|
|
31688
|
+
const showWallet = paymentMethodInfo?.paymentMethod !== "balance" /* ACCOUNT_BALANCE */ && isConnected && (showWalletOnInsufficientBalance || hasUsableBalance);
|
|
31689
|
+
const connectedAccountInfo = showWallet ? accountPaymentMethodInfo : null;
|
|
31561
31690
|
const connected = [
|
|
31562
31691
|
connectedAccountInfo,
|
|
31563
31692
|
paymentMethodInfo,
|
|
@@ -31580,12 +31709,16 @@ var usePaymentSources = (paymentMethodInfo, targetChainId, checkoutConfig) => {
|
|
|
31580
31709
|
if (isLighterxyzCustomer(apiKey) && !isTokenTransferEnabled) {
|
|
31581
31710
|
comingSoon.push("token_transfer" /* TOKEN_TRANSFER */);
|
|
31582
31711
|
comingSoon.push("card" /* CARD */);
|
|
31712
|
+
if (isFiatEnabledRegardlessOfUDA) {
|
|
31713
|
+
comingSoon.push("virtual_bank" /* VIRTUAL_BANK */);
|
|
31714
|
+
}
|
|
31583
31715
|
comingSoon.push("brokerage" /* BROKERAGE */);
|
|
31584
31716
|
}
|
|
31585
31717
|
return {
|
|
31586
31718
|
preferred: connected.length > 0 ? connected : fallback2,
|
|
31587
31719
|
moreSources: newSources,
|
|
31588
|
-
comingSoon
|
|
31720
|
+
comingSoon,
|
|
31721
|
+
hasUsableBalance
|
|
31589
31722
|
};
|
|
31590
31723
|
};
|
|
31591
31724
|
|
|
@@ -32367,7 +32500,9 @@ var NewTokenDepositAlert = ({
|
|
|
32367
32500
|
import { getAllowedAssets } from "@funkit/api-base";
|
|
32368
32501
|
import { useQuery as useQuery21 } from "@tanstack/react-query";
|
|
32369
32502
|
import { useCallback as useCallback40, useMemo as useMemo43 } from "react";
|
|
32370
|
-
function useAllowedAssets(
|
|
32503
|
+
function useAllowedAssets({
|
|
32504
|
+
enabled
|
|
32505
|
+
} = {}) {
|
|
32371
32506
|
const { apiKey } = useFunkitConfig();
|
|
32372
32507
|
const { checkoutItem } = useCheckoutContext();
|
|
32373
32508
|
const isRelayEnabled = useSourceTokenRelayEnabled();
|
|
@@ -32378,7 +32513,8 @@ function useAllowedAssets() {
|
|
|
32378
32513
|
refetchOnReconnect: false,
|
|
32379
32514
|
refetchOnWindowFocus: false,
|
|
32380
32515
|
staleTime: 5 * 60 * 1e3,
|
|
32381
|
-
gcTime: Number.POSITIVE_INFINITY
|
|
32516
|
+
gcTime: Number.POSITIVE_INFINITY,
|
|
32517
|
+
enabled
|
|
32382
32518
|
});
|
|
32383
32519
|
const tokens = useMemo43(() => {
|
|
32384
32520
|
if (!allowedAssets) {
|
|
@@ -33101,11 +33237,57 @@ function showsNativeTokensOnTop(apiKey) {
|
|
|
33101
33237
|
import { BridgeCustomerStatus as BridgeCustomerStatus6, MeldServiceProvider as MeldServiceProvider4 } from "@funkit/api-base";
|
|
33102
33238
|
import { LIGHTER_CHAIN_ID as LIGHTER_CHAIN_ID3 } from "@funkit/chains";
|
|
33103
33239
|
import { noop as noop9 } from "@funkit/utils";
|
|
33104
|
-
import
|
|
33240
|
+
import React191, { useCallback as useCallback41, useEffect as useEffect51, useState as useState59 } from "react";
|
|
33105
33241
|
import { createPortal as createPortal19 } from "react-dom";
|
|
33106
33242
|
|
|
33107
|
-
// src/
|
|
33243
|
+
// src/components/CheckoutTopAnnouncementBanner/CheckoutTopAnnouncementBanner.tsx
|
|
33108
33244
|
import React189 from "react";
|
|
33245
|
+
var CheckoutTopAnnouncementBanner = () => {
|
|
33246
|
+
const { title, subtitle, chainIdList, iconSrc } = useDynamicConfig(
|
|
33247
|
+
"checkouttopannouncementbanner"
|
|
33248
|
+
);
|
|
33249
|
+
if (!title) {
|
|
33250
|
+
return null;
|
|
33251
|
+
}
|
|
33252
|
+
return /* @__PURE__ */ React189.createElement(
|
|
33253
|
+
Box,
|
|
33254
|
+
{
|
|
33255
|
+
borderRadius: "connectButton",
|
|
33256
|
+
background: "offBackground",
|
|
33257
|
+
display: "flex",
|
|
33258
|
+
flexDirection: "row",
|
|
33259
|
+
alignItems: "center",
|
|
33260
|
+
justifyContent: "space-between",
|
|
33261
|
+
gap: "8",
|
|
33262
|
+
padding: "8",
|
|
33263
|
+
marginBottom: "8"
|
|
33264
|
+
},
|
|
33265
|
+
/* @__PURE__ */ React189.createElement(Box, { display: "flex", flexDirection: "row", alignItems: "center", gap: "8" }, /* @__PURE__ */ React189.createElement(
|
|
33266
|
+
"img",
|
|
33267
|
+
{
|
|
33268
|
+
src: iconSrc,
|
|
33269
|
+
alt: "announcement icon",
|
|
33270
|
+
style: {
|
|
33271
|
+
width: "20px",
|
|
33272
|
+
height: "20px",
|
|
33273
|
+
objectFit: "contain",
|
|
33274
|
+
display: "block"
|
|
33275
|
+
}
|
|
33276
|
+
}
|
|
33277
|
+
), /* @__PURE__ */ React189.createElement(Box, { display: "flex", flexDirection: "column", gap: "2" }, /* @__PURE__ */ React189.createElement(Text, { size: "10", color: "primaryText" }, title), subtitle && /* @__PURE__ */ React189.createElement(Text, { size: "10", color: "secondaryText" }, subtitle))),
|
|
33278
|
+
!!chainIdList?.length && /* @__PURE__ */ React189.createElement(
|
|
33279
|
+
SupportedChainList,
|
|
33280
|
+
{
|
|
33281
|
+
chainIdList: chainIdList.map(String),
|
|
33282
|
+
iconSize: 12,
|
|
33283
|
+
style: { marginRight: "4px" }
|
|
33284
|
+
}
|
|
33285
|
+
)
|
|
33286
|
+
);
|
|
33287
|
+
};
|
|
33288
|
+
|
|
33289
|
+
// src/modals/CheckoutModal/SourceChange/DefiPurchaseSection.tsx
|
|
33290
|
+
import React190 from "react";
|
|
33109
33291
|
var DefiPurchaseSection = ({ config }) => {
|
|
33110
33292
|
const { uiCustomizations } = useFunkitConfig();
|
|
33111
33293
|
const { isLoading, price: usdAmount } = useAssetAddressPrice({
|
|
@@ -33113,7 +33295,7 @@ var DefiPurchaseSection = ({ config }) => {
|
|
|
33113
33295
|
assetTokenAddress: config.targetAsset,
|
|
33114
33296
|
amount: config.targetAssetAmount
|
|
33115
33297
|
});
|
|
33116
|
-
return /* @__PURE__ */
|
|
33298
|
+
return /* @__PURE__ */ React190.createElement(
|
|
33117
33299
|
CheckoutPrimaryInfo,
|
|
33118
33300
|
{
|
|
33119
33301
|
showTokenAmount: uiCustomizations.confirmationScreen.showTokenAmount,
|
|
@@ -33216,7 +33398,7 @@ var ConnectedSource = ({
|
|
|
33216
33398
|
}) => {
|
|
33217
33399
|
if (paymentInfo.paymentMethod === "balance" /* ACCOUNT_BALANCE */) {
|
|
33218
33400
|
const isSelected = selectedPaymentInfo?.paymentMethod === "balance" /* ACCOUNT_BALANCE */;
|
|
33219
|
-
return /* @__PURE__ */
|
|
33401
|
+
return /* @__PURE__ */ React191.createElement(
|
|
33220
33402
|
AccountBalancePaymentMethodItem,
|
|
33221
33403
|
{
|
|
33222
33404
|
showSelectedCheckmark,
|
|
@@ -33229,7 +33411,7 @@ var ConnectedSource = ({
|
|
|
33229
33411
|
}
|
|
33230
33412
|
if (paymentInfo.paymentMethod === "brokerage" /* BROKERAGE */) {
|
|
33231
33413
|
const isSelected = selectedPaymentInfo?.paymentMethod === "brokerage" /* BROKERAGE */;
|
|
33232
|
-
return /* @__PURE__ */
|
|
33414
|
+
return /* @__PURE__ */ React191.createElement(
|
|
33233
33415
|
ConnectedBluvoPaymentMethodItem,
|
|
33234
33416
|
{
|
|
33235
33417
|
paymentMethodInfo: paymentInfo,
|
|
@@ -33241,7 +33423,7 @@ var ConnectedSource = ({
|
|
|
33241
33423
|
}
|
|
33242
33424
|
if (paymentInfo.paymentMethod === "virtual_bank" /* VIRTUAL_BANK */) {
|
|
33243
33425
|
const isSelected = selectedPaymentInfo?.paymentMethod === "virtual_bank" /* VIRTUAL_BANK */;
|
|
33244
|
-
return /* @__PURE__ */
|
|
33426
|
+
return /* @__PURE__ */ React191.createElement(
|
|
33245
33427
|
ActiveFiatAccountPaymentMethodItem,
|
|
33246
33428
|
{
|
|
33247
33429
|
isActive: isSelected,
|
|
@@ -33278,7 +33460,7 @@ function PayPal() {
|
|
|
33278
33460
|
return null;
|
|
33279
33461
|
}
|
|
33280
33462
|
const isLoading = isPaypalReady && (!defaultCurrency || !amounts[1] || isPending);
|
|
33281
|
-
return /* @__PURE__ */
|
|
33463
|
+
return /* @__PURE__ */ React191.createElement(
|
|
33282
33464
|
PayPalPaymentMethodItem,
|
|
33283
33465
|
{
|
|
33284
33466
|
isClickable: !isLoading,
|
|
@@ -33449,7 +33631,7 @@ function SourceChange({
|
|
|
33449
33631
|
);
|
|
33450
33632
|
function renderSource(source) {
|
|
33451
33633
|
if (isConnectablePaymentMethodInfo(source)) {
|
|
33452
|
-
return /* @__PURE__ */
|
|
33634
|
+
return /* @__PURE__ */ React191.createElement(
|
|
33453
33635
|
ConnectedSource,
|
|
33454
33636
|
{
|
|
33455
33637
|
key: source.title,
|
|
@@ -33461,7 +33643,7 @@ function SourceChange({
|
|
|
33461
33643
|
}
|
|
33462
33644
|
);
|
|
33463
33645
|
}
|
|
33464
|
-
return /* @__PURE__ */
|
|
33646
|
+
return /* @__PURE__ */ React191.createElement(
|
|
33465
33647
|
AddPaymentMethodItem,
|
|
33466
33648
|
{
|
|
33467
33649
|
key: source,
|
|
@@ -33472,7 +33654,7 @@ function SourceChange({
|
|
|
33472
33654
|
);
|
|
33473
33655
|
}
|
|
33474
33656
|
function renderComingSoon(source) {
|
|
33475
|
-
return /* @__PURE__ */
|
|
33657
|
+
return /* @__PURE__ */ React191.createElement(
|
|
33476
33658
|
AddPaymentMethodItem,
|
|
33477
33659
|
{
|
|
33478
33660
|
key: source,
|
|
@@ -33480,13 +33662,13 @@ function SourceChange({
|
|
|
33480
33662
|
isActive: false,
|
|
33481
33663
|
isClickable: false,
|
|
33482
33664
|
onClick: noop9,
|
|
33483
|
-
customValueIcon: /* @__PURE__ */
|
|
33665
|
+
customValueIcon: /* @__PURE__ */ React191.createElement(FunBadge, { borderColor: "generalBorder" }, t("common.comingSoon"))
|
|
33484
33666
|
}
|
|
33485
33667
|
);
|
|
33486
33668
|
}
|
|
33487
33669
|
const hasMoreSources = moreSources.length > 0 || comingSoon.length > 0;
|
|
33488
33670
|
const bottomSectionRef = useBottomSectionRef();
|
|
33489
|
-
return /* @__PURE__ */
|
|
33671
|
+
return /* @__PURE__ */ React191.createElement(React191.Fragment, null, /* @__PURE__ */ React191.createElement(CheckoutTopAnnouncementBanner, null), isTargetAssetSelectable && /* @__PURE__ */ React191.createElement(Box, { marginBottom: "8" }, /* @__PURE__ */ React191.createElement(
|
|
33490
33672
|
ReceiveTokenDropdown,
|
|
33491
33673
|
{
|
|
33492
33674
|
activeItemLabel: t("sourceChange.selectTokenLabel"),
|
|
@@ -33497,7 +33679,7 @@ function SourceChange({
|
|
|
33497
33679
|
selectedToken: selectedTargetAsset?.tokenSymbol,
|
|
33498
33680
|
tokens: dynamicTargetAssets
|
|
33499
33681
|
}
|
|
33500
|
-
)), isDefiMode ? /* @__PURE__ */
|
|
33682
|
+
)), isDefiMode ? /* @__PURE__ */ React191.createElement(Box, { display: "flex", flexDirection: "column", gap: "28" }, /* @__PURE__ */ React191.createElement(DefiPurchaseSection, { config: checkoutItem.initSettings.config }), /* @__PURE__ */ React191.createElement(Box, { display: "flex", flexDirection: "column", gap: "16" }, /* @__PURE__ */ React191.createElement(Box, { display: "flex", flexDirection: "column", gap: "4" }, /* @__PURE__ */ React191.createElement(Text, { size: "13", color: "secondaryText" }, t("sourceChange.selectPaymentMethod")), preferred.map(renderSource)), /* @__PURE__ */ React191.createElement(Box, { display: "flex", flexDirection: "column", gap: "4" }, /* @__PURE__ */ React191.createElement(Text, { size: "13", color: "secondaryText" }, t("sourceChange.moreOptions")), moreSources.map(renderSource)))) : /* @__PURE__ */ React191.createElement(React191.Fragment, null, /* @__PURE__ */ React191.createElement(
|
|
33501
33683
|
Box,
|
|
33502
33684
|
{
|
|
33503
33685
|
display: "flex",
|
|
@@ -33508,7 +33690,7 @@ function SourceChange({
|
|
|
33508
33690
|
}
|
|
33509
33691
|
},
|
|
33510
33692
|
preferred.map(renderSource),
|
|
33511
|
-
preferred.length > 0 && hasMoreSources && /* @__PURE__ */
|
|
33693
|
+
preferred.length > 0 && hasMoreSources && /* @__PURE__ */ React191.createElement(
|
|
33512
33694
|
FunDivider,
|
|
33513
33695
|
{
|
|
33514
33696
|
label: t("sourceChange.more"),
|
|
@@ -33519,8 +33701,8 @@ function SourceChange({
|
|
|
33519
33701
|
),
|
|
33520
33702
|
moreSources.map(renderSource),
|
|
33521
33703
|
comingSoon.map(renderComingSoon),
|
|
33522
|
-
/* @__PURE__ */
|
|
33523
|
-
), /* @__PURE__ */
|
|
33704
|
+
/* @__PURE__ */ React191.createElement(PayPal, null)
|
|
33705
|
+
), /* @__PURE__ */ React191.createElement(Box, { className: emptyStateStyles }, /* @__PURE__ */ React191.createElement(
|
|
33524
33706
|
FunNoResults,
|
|
33525
33707
|
{
|
|
33526
33708
|
text: t("checkout.noAvailableTokensMessage"),
|
|
@@ -33528,7 +33710,7 @@ function SourceChange({
|
|
|
33528
33710
|
variant: "actionable"
|
|
33529
33711
|
}
|
|
33530
33712
|
))), bottomSectionRef && createPortal19(
|
|
33531
|
-
/* @__PURE__ */
|
|
33713
|
+
/* @__PURE__ */ React191.createElement(
|
|
33532
33714
|
Dialog.BottomBar,
|
|
33533
33715
|
{
|
|
33534
33716
|
actionButtonProps: hasAutoContinue ? void 0 : {
|
|
@@ -33550,12 +33732,12 @@ function SourceChange({
|
|
|
33550
33732
|
|
|
33551
33733
|
// src/modals/CheckoutModal/TransferToken/TransferToken.tsx
|
|
33552
33734
|
import { motion as motion12, useAnimationControls as useAnimationControls3 } from "motion/react";
|
|
33553
|
-
import
|
|
33735
|
+
import React202, { useRef as useRef26, useState as useState63 } from "react";
|
|
33554
33736
|
import { createPortal as createPortal20 } from "react-dom";
|
|
33555
33737
|
|
|
33556
33738
|
// src/components/CopyAddress/CopyInputDisplayedAddress.tsx
|
|
33557
33739
|
import { truncateMiddleOfAddress } from "@funkit/utils";
|
|
33558
|
-
import
|
|
33740
|
+
import React192, { useCallback as useCallback43, useState as useState61 } from "react";
|
|
33559
33741
|
|
|
33560
33742
|
// src/hooks/useCopyToClipboard.ts
|
|
33561
33743
|
import { useCallback as useCallback42, useEffect as useEffect52, useState as useState60 } from "react";
|
|
@@ -33611,8 +33793,8 @@ function CopyInputDisplayedAddressEN({
|
|
|
33611
33793
|
}, 2e3);
|
|
33612
33794
|
handleCopy();
|
|
33613
33795
|
}, [isActive, handleCopy]);
|
|
33614
|
-
return /* @__PURE__ */
|
|
33615
|
-
(char, i) => /* @__PURE__ */
|
|
33796
|
+
return /* @__PURE__ */ React192.createElement(Box, { className: copyButtonWrapper }, /* @__PURE__ */ React192.createElement(Box, { paddingY: "8", paddingX: "12", width: "full" }, /* @__PURE__ */ React192.createElement(Text, { size: "10" }, displayAddress)), /* @__PURE__ */ React192.createElement(FunDivider, { borderColor: "mediumStroke" }), /* @__PURE__ */ React192.createElement(Box, { as: "button", onClick: handleClick, className: copyButton }, /* @__PURE__ */ React192.createElement("div", { className: isActive ? copyInputTextBoxActive : copyInputTextBox }, /* @__PURE__ */ React192.createElement("div", { className: isActive ? copyButtonIconActive : copyButtonIcon }, /* @__PURE__ */ React192.createElement(CheckIcon, { className: copyButtonIconBase })), /* @__PURE__ */ React192.createElement(Text, { size: "12", weight: "medium" }, /* @__PURE__ */ React192.createElement("div", { className: copyInputText }, /* @__PURE__ */ React192.createElement("span", null, "Cop"), /* @__PURE__ */ React192.createElement("span", { className: copyInputTextWrapper }, ["y", " ", "a", "d", "d", "r", "e", "s", "s"].map(
|
|
33797
|
+
(char, i) => /* @__PURE__ */ React192.createElement(
|
|
33616
33798
|
"span",
|
|
33617
33799
|
{
|
|
33618
33800
|
className: copyInputTextDefault,
|
|
@@ -33623,9 +33805,9 @@ function CopyInputDisplayedAddressEN({
|
|
|
33623
33805
|
"--animation-opacity": isActive === false ? "0" : "1"
|
|
33624
33806
|
}
|
|
33625
33807
|
},
|
|
33626
|
-
char === " " ? /* @__PURE__ */
|
|
33808
|
+
char === " " ? /* @__PURE__ */ React192.createElement(React192.Fragment, null, "\xA0") : char
|
|
33627
33809
|
)
|
|
33628
|
-
), ["ied"].map((char, i) => /* @__PURE__ */
|
|
33810
|
+
), ["ied"].map((char, i) => /* @__PURE__ */ React192.createElement(
|
|
33629
33811
|
"span",
|
|
33630
33812
|
{
|
|
33631
33813
|
className: copyInputTextActive,
|
|
@@ -33658,17 +33840,17 @@ function CopyInputDisplayedAddressI18n({
|
|
|
33658
33840
|
handleCopy();
|
|
33659
33841
|
}, [isActive, handleCopy]);
|
|
33660
33842
|
const buttonText = isActive ? t("common.copied") : t("common.copyAddress");
|
|
33661
|
-
return /* @__PURE__ */
|
|
33843
|
+
return /* @__PURE__ */ React192.createElement(Box, { className: copyButtonWrapper }, /* @__PURE__ */ React192.createElement(Box, { paddingY: "8", paddingX: "12", width: "full" }, /* @__PURE__ */ React192.createElement(Text, { size: "10" }, displayAddress)), /* @__PURE__ */ React192.createElement(FunDivider, { borderColor: "mediumStroke" }), /* @__PURE__ */ React192.createElement(Box, { as: "button", onClick: handleClick, className: copyButton }, /* @__PURE__ */ React192.createElement("div", { className: copyInputTextBox }, /* @__PURE__ */ React192.createElement("div", { className: copyButtonIcon }, /* @__PURE__ */ React192.createElement(CheckIcon, { className: copyButtonIconBase })), /* @__PURE__ */ React192.createElement(Text, { size: "12", weight: "medium" }, /* @__PURE__ */ React192.createElement("div", { className: copyInputText }, buttonText)))));
|
|
33662
33844
|
}
|
|
33663
33845
|
function CopyInputDisplayedAddress(props) {
|
|
33664
33846
|
const { i18n: i18n2 } = useFunkitTranslation();
|
|
33665
33847
|
const isEnglish = i18n2.language === "en" || i18n2.language === "buy_en";
|
|
33666
|
-
return isEnglish ? /* @__PURE__ */
|
|
33848
|
+
return isEnglish ? /* @__PURE__ */ React192.createElement(CopyInputDisplayedAddressEN, { ...props }) : /* @__PURE__ */ React192.createElement(CopyInputDisplayedAddressI18n, { ...props });
|
|
33667
33849
|
}
|
|
33668
33850
|
|
|
33669
33851
|
// src/components/QRCode/QRCode.tsx
|
|
33670
33852
|
import QRCodeUtil from "qrcode";
|
|
33671
|
-
import
|
|
33853
|
+
import React193, { useMemo as useMemo46 } from "react";
|
|
33672
33854
|
var generateMatrix = (value, errorCorrectionLevel) => {
|
|
33673
33855
|
const { data } = QRCodeUtil.create(value, { errorCorrectionLevel }).modules;
|
|
33674
33856
|
const sqrt = Math.sqrt(data.length);
|
|
@@ -33712,7 +33894,7 @@ function QRCode({
|
|
|
33712
33894
|
const borderRadius = enableCornerMarkersRadius ? (i - 2) * -5 + (i === 0 ? 2 : 0) : 0;
|
|
33713
33895
|
const size2 = cellSize * (7 - i * 2);
|
|
33714
33896
|
dots2.push(
|
|
33715
|
-
/* @__PURE__ */
|
|
33897
|
+
/* @__PURE__ */ React193.createElement(
|
|
33716
33898
|
"rect",
|
|
33717
33899
|
{
|
|
33718
33900
|
fill: i % 2 !== 0 ? activeTheme.colors.modalBackground : "currentColor",
|
|
@@ -33737,7 +33919,7 @@ function QRCode({
|
|
|
33737
33919
|
if (!(i < 7 && j < 7 || i > matrix.length - 8 && j < 7 || i < 7 && j > matrix.length - 8)) {
|
|
33738
33920
|
if (!(i > matrixMiddleStart && i < matrixMiddleEnd && j > matrixMiddleStart && j < matrixMiddleEnd)) {
|
|
33739
33921
|
dots2.push(
|
|
33740
|
-
/* @__PURE__ */
|
|
33922
|
+
/* @__PURE__ */ React193.createElement(
|
|
33741
33923
|
"circle",
|
|
33742
33924
|
{
|
|
33743
33925
|
cx: i * cellSize + cellSize / 2,
|
|
@@ -33764,7 +33946,7 @@ function QRCode({
|
|
|
33764
33946
|
]);
|
|
33765
33947
|
const logoPosition = size / 2 - logoSize / 2;
|
|
33766
33948
|
const logoWrapperSize = logoSize + logoMargin * 2;
|
|
33767
|
-
return /* @__PURE__ */
|
|
33949
|
+
return /* @__PURE__ */ React193.createElement(
|
|
33768
33950
|
Box,
|
|
33769
33951
|
{
|
|
33770
33952
|
...enableOuterBorder && {
|
|
@@ -33779,7 +33961,7 @@ function QRCode({
|
|
|
33779
33961
|
background: "modalBackground",
|
|
33780
33962
|
color: "primaryText"
|
|
33781
33963
|
},
|
|
33782
|
-
/* @__PURE__ */
|
|
33964
|
+
/* @__PURE__ */ React193.createElement(
|
|
33783
33965
|
Box,
|
|
33784
33966
|
{
|
|
33785
33967
|
style: {
|
|
@@ -33789,7 +33971,7 @@ function QRCode({
|
|
|
33789
33971
|
},
|
|
33790
33972
|
userSelect: "none"
|
|
33791
33973
|
},
|
|
33792
|
-
/* @__PURE__ */
|
|
33974
|
+
/* @__PURE__ */ React193.createElement(
|
|
33793
33975
|
Box,
|
|
33794
33976
|
{
|
|
33795
33977
|
display: "flex",
|
|
@@ -33802,7 +33984,7 @@ function QRCode({
|
|
|
33802
33984
|
},
|
|
33803
33985
|
width: "full"
|
|
33804
33986
|
},
|
|
33805
|
-
/* @__PURE__ */
|
|
33987
|
+
/* @__PURE__ */ React193.createElement(
|
|
33806
33988
|
AsyncImage,
|
|
33807
33989
|
{
|
|
33808
33990
|
background: logoBackground,
|
|
@@ -33814,20 +33996,20 @@ function QRCode({
|
|
|
33814
33996
|
}
|
|
33815
33997
|
)
|
|
33816
33998
|
),
|
|
33817
|
-
/* @__PURE__ */
|
|
33999
|
+
/* @__PURE__ */ React193.createElement("svg", { height: size, style: { all: "revert" }, width: size }, /* @__PURE__ */ React193.createElement("title", null, "QR Code"), /* @__PURE__ */ React193.createElement("defs", null, /* @__PURE__ */ React193.createElement("clipPath", { id: "clip-wrapper" }, /* @__PURE__ */ React193.createElement("rect", { height: logoWrapperSize, width: logoWrapperSize })), /* @__PURE__ */ React193.createElement("clipPath", { id: "clip-logo" }, /* @__PURE__ */ React193.createElement("rect", { height: logoSize, width: logoSize }))), /* @__PURE__ */ React193.createElement("rect", { fill: "transparent", height: size, width: size }), dots)
|
|
33818
34000
|
)
|
|
33819
34001
|
);
|
|
33820
34002
|
}
|
|
33821
34003
|
|
|
33822
34004
|
// src/components/QRCode/QRCodeSkeletonLoader.tsx
|
|
33823
|
-
import
|
|
34005
|
+
import React194 from "react";
|
|
33824
34006
|
var DOT_SIZE = "8";
|
|
33825
34007
|
var QRCodeSkeletonLoader = ({
|
|
33826
34008
|
diagonalDimension = 12,
|
|
33827
34009
|
gapBetweenDots = "4"
|
|
33828
34010
|
}) => {
|
|
33829
34011
|
const size = diagonalDimension * Number(DOT_SIZE) + (diagonalDimension - 1) * Number(gapBetweenDots);
|
|
33830
|
-
return /* @__PURE__ */
|
|
34012
|
+
return /* @__PURE__ */ React194.createElement(Box, { padding: "5" }, /* @__PURE__ */ React194.createElement(
|
|
33831
34013
|
Box,
|
|
33832
34014
|
{
|
|
33833
34015
|
display: "flex",
|
|
@@ -33837,7 +34019,7 @@ var QRCodeSkeletonLoader = ({
|
|
|
33837
34019
|
gap: gapBetweenDots,
|
|
33838
34020
|
style: { width: `${size}px`, height: `${size}px` }
|
|
33839
34021
|
},
|
|
33840
|
-
Array.from({ length: diagonalDimension }, (_, index) => /* @__PURE__ */
|
|
34022
|
+
Array.from({ length: diagonalDimension }, (_, index) => /* @__PURE__ */ React194.createElement(
|
|
33841
34023
|
Box,
|
|
33842
34024
|
{
|
|
33843
34025
|
display: "flex",
|
|
@@ -33846,7 +34028,7 @@ var QRCodeSkeletonLoader = ({
|
|
|
33846
34028
|
gap: gapBetweenDots,
|
|
33847
34029
|
key: index
|
|
33848
34030
|
},
|
|
33849
|
-
Array.from({ length: diagonalDimension }, (_2, index2) => /* @__PURE__ */
|
|
34031
|
+
Array.from({ length: diagonalDimension }, (_2, index2) => /* @__PURE__ */ React194.createElement(FunSkeletonCircle, { size: DOT_SIZE, key: index2 }))
|
|
33850
34032
|
))
|
|
33851
34033
|
));
|
|
33852
34034
|
};
|
|
@@ -33854,13 +34036,13 @@ var QRCodeSkeletonLoader_default = QRCodeSkeletonLoader;
|
|
|
33854
34036
|
|
|
33855
34037
|
// src/components/TransferTokenDetails/TransferTokenDetails.tsx
|
|
33856
34038
|
import { formatNumberAndStringify } from "@funkit/utils";
|
|
33857
|
-
import
|
|
34039
|
+
import React201 from "react";
|
|
33858
34040
|
import { Trans as Trans12 } from "react-i18next";
|
|
33859
34041
|
|
|
33860
34042
|
// src/components/Icons/New/DollarIcon.tsx
|
|
33861
|
-
import
|
|
34043
|
+
import React195 from "react";
|
|
33862
34044
|
var DollarIcon = () => {
|
|
33863
|
-
return /* @__PURE__ */
|
|
34045
|
+
return /* @__PURE__ */ React195.createElement(
|
|
33864
34046
|
"svg",
|
|
33865
34047
|
{
|
|
33866
34048
|
width: "12",
|
|
@@ -33869,7 +34051,7 @@ var DollarIcon = () => {
|
|
|
33869
34051
|
fill: "none",
|
|
33870
34052
|
xmlns: "http://www.w3.org/2000/svg"
|
|
33871
34053
|
},
|
|
33872
|
-
/* @__PURE__ */
|
|
34054
|
+
/* @__PURE__ */ React195.createElement(
|
|
33873
34055
|
"path",
|
|
33874
34056
|
{
|
|
33875
34057
|
fillRule: "evenodd",
|
|
@@ -33882,9 +34064,9 @@ var DollarIcon = () => {
|
|
|
33882
34064
|
};
|
|
33883
34065
|
|
|
33884
34066
|
// src/components/Icons/New/FileIcon.tsx
|
|
33885
|
-
import
|
|
34067
|
+
import React196 from "react";
|
|
33886
34068
|
var FileIcon = () => {
|
|
33887
|
-
return /* @__PURE__ */
|
|
34069
|
+
return /* @__PURE__ */ React196.createElement(
|
|
33888
34070
|
"svg",
|
|
33889
34071
|
{
|
|
33890
34072
|
width: "12",
|
|
@@ -33893,7 +34075,7 @@ var FileIcon = () => {
|
|
|
33893
34075
|
fill: "none",
|
|
33894
34076
|
xmlns: "http://www.w3.org/2000/svg"
|
|
33895
34077
|
},
|
|
33896
|
-
/* @__PURE__ */
|
|
34078
|
+
/* @__PURE__ */ React196.createElement(
|
|
33897
34079
|
"path",
|
|
33898
34080
|
{
|
|
33899
34081
|
fillRule: "evenodd",
|
|
@@ -33906,9 +34088,9 @@ var FileIcon = () => {
|
|
|
33906
34088
|
};
|
|
33907
34089
|
|
|
33908
34090
|
// src/components/Icons/New/SpeedometerIcon.tsx
|
|
33909
|
-
import
|
|
34091
|
+
import React197 from "react";
|
|
33910
34092
|
var SpeedometerIcon = () => {
|
|
33911
|
-
return /* @__PURE__ */
|
|
34093
|
+
return /* @__PURE__ */ React197.createElement(
|
|
33912
34094
|
"svg",
|
|
33913
34095
|
{
|
|
33914
34096
|
width: "12",
|
|
@@ -33917,7 +34099,7 @@ var SpeedometerIcon = () => {
|
|
|
33917
34099
|
fill: "none",
|
|
33918
34100
|
xmlns: "http://www.w3.org/2000/svg"
|
|
33919
34101
|
},
|
|
33920
|
-
/* @__PURE__ */
|
|
34102
|
+
/* @__PURE__ */ React197.createElement(
|
|
33921
34103
|
"path",
|
|
33922
34104
|
{
|
|
33923
34105
|
fillRule: "evenodd",
|
|
@@ -33931,13 +34113,13 @@ var SpeedometerIcon = () => {
|
|
|
33931
34113
|
|
|
33932
34114
|
// src/components/FunFeatureList/FunFeatureList.tsx
|
|
33933
34115
|
import { motion as motion11, useAnimationControls as useAnimationControls2 } from "motion/react";
|
|
33934
|
-
import
|
|
34116
|
+
import React199, { useState as useState62 } from "react";
|
|
33935
34117
|
|
|
33936
34118
|
// src/components/FunFeatureList/FunFeatureList.css.ts
|
|
33937
34119
|
var detailsButton = "_1045qr71 _1rsrm2fet _1rsrm2ffq _1rsrm2fgj _1rsrm2fds _1rsrm2fih _1rsrm2fa _1rsrm2f4 _1rsrm2f4p _1rsrm2fu";
|
|
33938
34120
|
|
|
33939
34121
|
// src/components/FunFeatureList/FunFeatureListItem.tsx
|
|
33940
|
-
import
|
|
34122
|
+
import React198 from "react";
|
|
33941
34123
|
var FunFeatureListItem = ({
|
|
33942
34124
|
text,
|
|
33943
34125
|
tooltip,
|
|
@@ -33948,7 +34130,7 @@ var FunFeatureListItem = ({
|
|
|
33948
34130
|
}) => {
|
|
33949
34131
|
const valueLabel = value && (prefix ? ` ${prefix}${value}` : ` ${value}`);
|
|
33950
34132
|
const isMultiline = Array.isArray(value) && value.length > 0;
|
|
33951
|
-
const TooltipWrapperElement = /* @__PURE__ */
|
|
34133
|
+
const TooltipWrapperElement = /* @__PURE__ */ React198.createElement(
|
|
33952
34134
|
Box,
|
|
33953
34135
|
{
|
|
33954
34136
|
marginLeft: "4",
|
|
@@ -33964,7 +34146,7 @@ var FunFeatureListItem = ({
|
|
|
33964
34146
|
},
|
|
33965
34147
|
tooltip
|
|
33966
34148
|
);
|
|
33967
|
-
return /* @__PURE__ */
|
|
34149
|
+
return /* @__PURE__ */ React198.createElement(Box, { display: "flex", gap: "6", alignItems: "center", paddingY: "2", ...boxProps }, /* @__PURE__ */ React198.createElement(
|
|
33968
34150
|
Box,
|
|
33969
34151
|
{
|
|
33970
34152
|
color: "secondaryText",
|
|
@@ -33973,7 +34155,7 @@ var FunFeatureListItem = ({
|
|
|
33973
34155
|
justifyContent: "center"
|
|
33974
34156
|
},
|
|
33975
34157
|
icon
|
|
33976
|
-
), /* @__PURE__ */
|
|
34158
|
+
), /* @__PURE__ */ React198.createElement(
|
|
33977
34159
|
Box,
|
|
33978
34160
|
{
|
|
33979
34161
|
display: "flex",
|
|
@@ -33982,8 +34164,8 @@ var FunFeatureListItem = ({
|
|
|
33982
34164
|
gap: "6"
|
|
33983
34165
|
}
|
|
33984
34166
|
},
|
|
33985
|
-
isMultiline ? /* @__PURE__ */
|
|
33986
|
-
isMultiline ? /* @__PURE__ */
|
|
34167
|
+
isMultiline ? /* @__PURE__ */ React198.createElement(Box, { display: "flex" }, /* @__PURE__ */ React198.createElement(Text, { size: "12", weight: "medium" }, text), tooltip && TooltipWrapperElement) : /* @__PURE__ */ React198.createElement(Text, { size: "12" }, text, /* @__PURE__ */ React198.createElement(React198.Fragment, null, "\xA0")),
|
|
34168
|
+
isMultiline ? /* @__PURE__ */ React198.createElement(Box, { display: "flex", flexDirection: "column", gap: "6" }, value.map((v, index) => /* @__PURE__ */ React198.createElement(Text, { size: "12", display: "inline", key: index }, v))) : /* @__PURE__ */ React198.createElement(Text, { size: "12", weight: "medium", display: "inline" }, valueLabel),
|
|
33987
34169
|
!isMultiline && tooltip && TooltipWrapperElement
|
|
33988
34170
|
));
|
|
33989
34171
|
};
|
|
@@ -34010,7 +34192,7 @@ var FunFeatureList = ({
|
|
|
34010
34192
|
setIsExpanded(true);
|
|
34011
34193
|
}
|
|
34012
34194
|
};
|
|
34013
|
-
return /* @__PURE__ */
|
|
34195
|
+
return /* @__PURE__ */ React199.createElement(
|
|
34014
34196
|
Box,
|
|
34015
34197
|
{
|
|
34016
34198
|
...withBackgroundContainer && {
|
|
@@ -34021,7 +34203,7 @@ var FunFeatureList = ({
|
|
|
34021
34203
|
display: "flex",
|
|
34022
34204
|
flexDirection: "column"
|
|
34023
34205
|
},
|
|
34024
|
-
isExpandable ? /* @__PURE__ */
|
|
34206
|
+
isExpandable ? /* @__PURE__ */ React199.createElement(React199.Fragment, null, /* @__PURE__ */ React199.createElement(
|
|
34025
34207
|
Box,
|
|
34026
34208
|
{
|
|
34027
34209
|
as: "button",
|
|
@@ -34037,9 +34219,9 @@ var FunFeatureList = ({
|
|
|
34037
34219
|
disabled,
|
|
34038
34220
|
onClick: handleExpandToggle
|
|
34039
34221
|
},
|
|
34040
|
-
items[0] && /* @__PURE__ */
|
|
34041
|
-
/* @__PURE__ */
|
|
34042
|
-
), /* @__PURE__ */
|
|
34222
|
+
items[0] && /* @__PURE__ */ React199.createElement(FunFeatureListItem, { ...items[0] }),
|
|
34223
|
+
/* @__PURE__ */ React199.createElement(AnimatedCaretDownIcon, { expanded: isDisplayed })
|
|
34224
|
+
), /* @__PURE__ */ React199.createElement(
|
|
34043
34225
|
motion11.div,
|
|
34044
34226
|
{
|
|
34045
34227
|
initial: "collapsed",
|
|
@@ -34050,7 +34232,7 @@ var FunFeatureList = ({
|
|
|
34050
34232
|
expanded: { height: "auto", opacity: 1, overflow: "visible" }
|
|
34051
34233
|
}
|
|
34052
34234
|
},
|
|
34053
|
-
/* @__PURE__ */
|
|
34235
|
+
/* @__PURE__ */ React199.createElement(
|
|
34054
34236
|
Box,
|
|
34055
34237
|
{
|
|
34056
34238
|
paddingX: "12",
|
|
@@ -34059,7 +34241,7 @@ var FunFeatureList = ({
|
|
|
34059
34241
|
gap: "6",
|
|
34060
34242
|
paddingBottom: "8"
|
|
34061
34243
|
},
|
|
34062
|
-
items.slice(1).map((item, index) => /* @__PURE__ */
|
|
34244
|
+
items.slice(1).map((item, index) => /* @__PURE__ */ React199.createElement(
|
|
34063
34245
|
FunFeatureListItem,
|
|
34064
34246
|
{
|
|
34065
34247
|
key: index,
|
|
@@ -34071,7 +34253,7 @@ var FunFeatureList = ({
|
|
|
34071
34253
|
}
|
|
34072
34254
|
))
|
|
34073
34255
|
)
|
|
34074
|
-
)) : /* @__PURE__ */
|
|
34256
|
+
)) : /* @__PURE__ */ React199.createElement(
|
|
34075
34257
|
Box,
|
|
34076
34258
|
{
|
|
34077
34259
|
display: "flex",
|
|
@@ -34082,7 +34264,7 @@ var FunFeatureList = ({
|
|
|
34082
34264
|
paddingY: "8"
|
|
34083
34265
|
}
|
|
34084
34266
|
},
|
|
34085
|
-
items.map((item, index) => /* @__PURE__ */
|
|
34267
|
+
items.map((item, index) => /* @__PURE__ */ React199.createElement(
|
|
34086
34268
|
Box,
|
|
34087
34269
|
{
|
|
34088
34270
|
key: index,
|
|
@@ -34093,16 +34275,16 @@ var FunFeatureList = ({
|
|
|
34093
34275
|
background: "offBackground"
|
|
34094
34276
|
}
|
|
34095
34277
|
},
|
|
34096
|
-
/* @__PURE__ */
|
|
34278
|
+
/* @__PURE__ */ React199.createElement(FunFeatureListItem, { ...item })
|
|
34097
34279
|
))
|
|
34098
34280
|
)
|
|
34099
34281
|
);
|
|
34100
34282
|
};
|
|
34101
34283
|
|
|
34102
34284
|
// src/components/Icons/New/PercentageIcon.tsx
|
|
34103
|
-
import
|
|
34285
|
+
import React200 from "react";
|
|
34104
34286
|
var PercentageIcon = () => {
|
|
34105
|
-
return /* @__PURE__ */
|
|
34287
|
+
return /* @__PURE__ */ React200.createElement(
|
|
34106
34288
|
"svg",
|
|
34107
34289
|
{
|
|
34108
34290
|
width: "12",
|
|
@@ -34111,7 +34293,7 @@ var PercentageIcon = () => {
|
|
|
34111
34293
|
fill: "none",
|
|
34112
34294
|
xmlns: "http://www.w3.org/2000/svg"
|
|
34113
34295
|
},
|
|
34114
|
-
/* @__PURE__ */
|
|
34296
|
+
/* @__PURE__ */ React200.createElement(
|
|
34115
34297
|
"path",
|
|
34116
34298
|
{
|
|
34117
34299
|
fillRule: "evenodd",
|
|
@@ -34129,7 +34311,7 @@ var FunLinkButtonComponent3 = ({
|
|
|
34129
34311
|
href,
|
|
34130
34312
|
size
|
|
34131
34313
|
}) => {
|
|
34132
|
-
return /* @__PURE__ */
|
|
34314
|
+
return /* @__PURE__ */ React201.createElement(FunLinkButton, { href, inline: true, text: children, size });
|
|
34133
34315
|
};
|
|
34134
34316
|
var TransferTokenDetails = ({
|
|
34135
34317
|
estProcessingTime,
|
|
@@ -34146,7 +34328,7 @@ var TransferTokenDetails = ({
|
|
|
34146
34328
|
!!estProcessingTime
|
|
34147
34329
|
);
|
|
34148
34330
|
const gasFees = void 0;
|
|
34149
|
-
return /* @__PURE__ */
|
|
34331
|
+
return /* @__PURE__ */ React201.createElement(
|
|
34150
34332
|
FunFeatureList,
|
|
34151
34333
|
{
|
|
34152
34334
|
isExpandable: true,
|
|
@@ -34157,17 +34339,17 @@ var TransferTokenDetails = ({
|
|
|
34157
34339
|
text: `${estPriceImpact.label}:`,
|
|
34158
34340
|
prefix: estPriceImpact.value > 0 ? "< " : "",
|
|
34159
34341
|
value: `${formatNumberAndStringify(estPriceImpact.value, void 0, { minimumFractionDigits: 2, maximumFractionDigits: 2 })}%`,
|
|
34160
|
-
icon: /* @__PURE__ */
|
|
34161
|
-
tooltip: /* @__PURE__ */
|
|
34342
|
+
icon: /* @__PURE__ */ React201.createElement(DollarIcon, null),
|
|
34343
|
+
tooltip: /* @__PURE__ */ React201.createElement(
|
|
34162
34344
|
FunTooltip,
|
|
34163
34345
|
{
|
|
34164
|
-
content: /* @__PURE__ */
|
|
34346
|
+
content: /* @__PURE__ */ React201.createElement(
|
|
34165
34347
|
Trans12,
|
|
34166
34348
|
{
|
|
34167
34349
|
t,
|
|
34168
34350
|
i18nKey: "fees.priceImpactTooltip",
|
|
34169
34351
|
components: {
|
|
34170
|
-
LearnMoreLink: /* @__PURE__ */
|
|
34352
|
+
LearnMoreLink: /* @__PURE__ */ React201.createElement(FunLinkButtonComponent3, { href: "https://intercom.help/funxyz/en/articles/10925883-order-execution-guide" })
|
|
34171
34353
|
}
|
|
34172
34354
|
}
|
|
34173
34355
|
)
|
|
@@ -34180,17 +34362,17 @@ var TransferTokenDetails = ({
|
|
|
34180
34362
|
text: `${maxSlippage.label}:`,
|
|
34181
34363
|
prefix: maxSlippage.value > 0 ? `${t("common.auto")} \u2022 ` : "",
|
|
34182
34364
|
value: `${formatNumberAndStringify(maxSlippage.value, void 0, { minimumFractionDigits: 2, maximumFractionDigits: 2 })}%`,
|
|
34183
|
-
icon: /* @__PURE__ */
|
|
34184
|
-
tooltip: /* @__PURE__ */
|
|
34365
|
+
icon: /* @__PURE__ */ React201.createElement(PercentageIcon, null),
|
|
34366
|
+
tooltip: /* @__PURE__ */ React201.createElement(
|
|
34185
34367
|
FunTooltip,
|
|
34186
34368
|
{
|
|
34187
|
-
content: /* @__PURE__ */
|
|
34369
|
+
content: /* @__PURE__ */ React201.createElement(
|
|
34188
34370
|
Trans12,
|
|
34189
34371
|
{
|
|
34190
34372
|
t,
|
|
34191
34373
|
i18nKey: "fees.slippageTooltipFull",
|
|
34192
34374
|
components: {
|
|
34193
|
-
LearnMoreLink: /* @__PURE__ */
|
|
34375
|
+
LearnMoreLink: /* @__PURE__ */ React201.createElement(FunLinkButtonComponent3, { href: "https://intercom.help/funxyz/en/articles/10925883-order-execution-guide" })
|
|
34194
34376
|
}
|
|
34195
34377
|
}
|
|
34196
34378
|
)
|
|
@@ -34203,22 +34385,22 @@ var TransferTokenDetails = ({
|
|
|
34203
34385
|
text: `${t("common.estimatedGas")}:`,
|
|
34204
34386
|
prefix: "~",
|
|
34205
34387
|
value: `$${gasFees}`,
|
|
34206
|
-
icon: /* @__PURE__ */
|
|
34388
|
+
icon: /* @__PURE__ */ React201.createElement(DollarIcon, null)
|
|
34207
34389
|
}
|
|
34208
34390
|
] : [],
|
|
34209
34391
|
{
|
|
34210
34392
|
text: t("common.processingTime"),
|
|
34211
34393
|
value: estimatedTimeText,
|
|
34212
|
-
icon: /* @__PURE__ */
|
|
34394
|
+
icon: /* @__PURE__ */ React201.createElement(SpeedometerIcon, null)
|
|
34213
34395
|
},
|
|
34214
34396
|
{
|
|
34215
|
-
text: /* @__PURE__ */
|
|
34397
|
+
text: /* @__PURE__ */ React201.createElement(
|
|
34216
34398
|
Trans12,
|
|
34217
34399
|
{
|
|
34218
34400
|
t,
|
|
34219
34401
|
i18nKey: "common.haveQuestionsGetHelp",
|
|
34220
34402
|
components: {
|
|
34221
|
-
GetHelpLink: /* @__PURE__ */
|
|
34403
|
+
GetHelpLink: /* @__PURE__ */ React201.createElement(
|
|
34222
34404
|
FunLinkButtonComponent3,
|
|
34223
34405
|
{
|
|
34224
34406
|
href: "https://intercom.help/funxyz/en/articles/10003876-transfer-crypto-guide-faqs",
|
|
@@ -34228,7 +34410,7 @@ var TransferTokenDetails = ({
|
|
|
34228
34410
|
}
|
|
34229
34411
|
}
|
|
34230
34412
|
),
|
|
34231
|
-
icon: /* @__PURE__ */
|
|
34413
|
+
icon: /* @__PURE__ */ React201.createElement(FileIcon, null)
|
|
34232
34414
|
}
|
|
34233
34415
|
]
|
|
34234
34416
|
}
|
|
@@ -34314,7 +34496,7 @@ function TransferToken({
|
|
|
34314
34496
|
tokenAddress: targetAsset
|
|
34315
34497
|
}) ?? 0;
|
|
34316
34498
|
}
|
|
34317
|
-
return /* @__PURE__ */
|
|
34499
|
+
return /* @__PURE__ */ React202.createElement(
|
|
34318
34500
|
Text,
|
|
34319
34501
|
{
|
|
34320
34502
|
size: "12",
|
|
@@ -34337,7 +34519,7 @@ function TransferToken({
|
|
|
34337
34519
|
}
|
|
34338
34520
|
return (
|
|
34339
34521
|
// This ID is used in the DialogContent css to set the height of the modal
|
|
34340
|
-
/* @__PURE__ */
|
|
34522
|
+
/* @__PURE__ */ React202.createElement(React202.Fragment, null, /* @__PURE__ */ React202.createElement(Box, { id: "token-transfer-page" }, /* @__PURE__ */ React202.createElement(
|
|
34341
34523
|
Box,
|
|
34342
34524
|
{
|
|
34343
34525
|
display: "flex",
|
|
@@ -34346,17 +34528,17 @@ function TransferToken({
|
|
|
34346
34528
|
justifyContent: "center",
|
|
34347
34529
|
gap: "18"
|
|
34348
34530
|
},
|
|
34349
|
-
!isDefiMode && isSourceNavWidgetEnabled && /* @__PURE__ */
|
|
34531
|
+
!isDefiMode && isSourceNavWidgetEnabled && /* @__PURE__ */ React202.createElement(Box, { display: "flex", flexDirection: "column", width: "full" }, /* @__PURE__ */ React202.createElement(
|
|
34350
34532
|
SourcePaymentMethodItem,
|
|
34351
34533
|
{
|
|
34352
34534
|
type: "token_transfer" /* TOKEN_TRANSFER */,
|
|
34353
34535
|
keyText: textCustomizations.transferTokens,
|
|
34354
34536
|
disclaimerText: t("transferToken.noLimit"),
|
|
34355
|
-
keyIcon: /* @__PURE__ */
|
|
34537
|
+
keyIcon: /* @__PURE__ */ React202.createElement(LightningBoltIcon, null),
|
|
34356
34538
|
onClick: () => onNext({})
|
|
34357
34539
|
}
|
|
34358
34540
|
)),
|
|
34359
|
-
defaultCandidate && !checkoutConfig?.generateActionsParams && /* @__PURE__ */
|
|
34541
|
+
defaultCandidate && !checkoutConfig?.generateActionsParams && /* @__PURE__ */ React202.createElement(
|
|
34360
34542
|
Box,
|
|
34361
34543
|
{
|
|
34362
34544
|
display: "flex",
|
|
@@ -34370,8 +34552,8 @@ function TransferToken({
|
|
|
34370
34552
|
paddingY: "8",
|
|
34371
34553
|
paddingX: HORIZONTAL_OUTER_PADDING_X
|
|
34372
34554
|
},
|
|
34373
|
-
/* @__PURE__ */
|
|
34374
|
-
/* @__PURE__ */
|
|
34555
|
+
/* @__PURE__ */ React202.createElement(Text, { size: "12", color: "secondaryText" }, t("transferToken.receiveToken")),
|
|
34556
|
+
/* @__PURE__ */ React202.createElement(Box, { display: "flex", alignItems: "center", gap: "8" }, /* @__PURE__ */ React202.createElement(
|
|
34375
34557
|
FunAssetAvatar,
|
|
34376
34558
|
{
|
|
34377
34559
|
assetIconSize: "16",
|
|
@@ -34380,9 +34562,9 @@ function TransferToken({
|
|
|
34380
34562
|
chainId: defaultCandidate.tokenChainId,
|
|
34381
34563
|
largeChainIcon: true
|
|
34382
34564
|
}
|
|
34383
|
-
), /* @__PURE__ */
|
|
34565
|
+
), /* @__PURE__ */ React202.createElement(Text, { size: "12", weight: "medium" }, defaultCandidate.tokenSymbol))
|
|
34384
34566
|
),
|
|
34385
|
-
/* @__PURE__ */
|
|
34567
|
+
/* @__PURE__ */ React202.createElement(
|
|
34386
34568
|
TokenAndChainDropdown,
|
|
34387
34569
|
{
|
|
34388
34570
|
isLoading: isLoadingDepositAddress,
|
|
@@ -34414,7 +34596,7 @@ function TransferToken({
|
|
|
34414
34596
|
selectedToken,
|
|
34415
34597
|
selectedChainId,
|
|
34416
34598
|
chainTagComponent,
|
|
34417
|
-
chainLabelAddon: !!minTransferUsd && /* @__PURE__ */
|
|
34599
|
+
chainLabelAddon: !!minTransferUsd && /* @__PURE__ */ React202.createElement(
|
|
34418
34600
|
Box,
|
|
34419
34601
|
{
|
|
34420
34602
|
display: "flex",
|
|
@@ -34424,15 +34606,15 @@ function TransferToken({
|
|
|
34424
34606
|
fontSize: "12",
|
|
34425
34607
|
height: "14"
|
|
34426
34608
|
},
|
|
34427
|
-
/* @__PURE__ */
|
|
34428
|
-
/* @__PURE__ */
|
|
34609
|
+
/* @__PURE__ */ React202.createElement(Text, { size: "12", color: "secondaryText" }, t("transferToken.min")),
|
|
34610
|
+
/* @__PURE__ */ React202.createElement(
|
|
34429
34611
|
AnimatedDollarValue,
|
|
34430
34612
|
{
|
|
34431
34613
|
value: minTransferUsd,
|
|
34432
34614
|
dynamicMinFractionDigits: true
|
|
34433
34615
|
}
|
|
34434
34616
|
),
|
|
34435
|
-
/* @__PURE__ */
|
|
34617
|
+
/* @__PURE__ */ React202.createElement(
|
|
34436
34618
|
FunTooltip,
|
|
34437
34619
|
{
|
|
34438
34620
|
content: t("transferToken.minDepositAmountTooltip"),
|
|
@@ -34443,7 +34625,7 @@ function TransferToken({
|
|
|
34443
34625
|
openChainDropdownFullWidth: false
|
|
34444
34626
|
}
|
|
34445
34627
|
),
|
|
34446
|
-
/* @__PURE__ */
|
|
34628
|
+
/* @__PURE__ */ React202.createElement(
|
|
34447
34629
|
Box,
|
|
34448
34630
|
{
|
|
34449
34631
|
display: "flex",
|
|
@@ -34453,7 +34635,7 @@ function TransferToken({
|
|
|
34453
34635
|
justifyContent: "center",
|
|
34454
34636
|
padding: "20"
|
|
34455
34637
|
},
|
|
34456
|
-
isLoadingDepositAddress ? /* @__PURE__ */
|
|
34638
|
+
isLoadingDepositAddress ? /* @__PURE__ */ React202.createElement(QRCodeSkeletonLoader_default, { diagonalDimension: 13, gapBetweenDots: "4" }) : /* @__PURE__ */ React202.createElement(
|
|
34457
34639
|
motion12.div,
|
|
34458
34640
|
{
|
|
34459
34641
|
onHoverStart: toggleQrHover,
|
|
@@ -34473,7 +34655,7 @@ function TransferToken({
|
|
|
34473
34655
|
},
|
|
34474
34656
|
animate: controls
|
|
34475
34657
|
},
|
|
34476
|
-
/* @__PURE__ */
|
|
34658
|
+
/* @__PURE__ */ React202.createElement(
|
|
34477
34659
|
QRCode,
|
|
34478
34660
|
{
|
|
34479
34661
|
withShadow: true,
|
|
@@ -34487,7 +34669,7 @@ function TransferToken({
|
|
|
34487
34669
|
}
|
|
34488
34670
|
)
|
|
34489
34671
|
),
|
|
34490
|
-
displayYouPayYouReceive && /* @__PURE__ */
|
|
34672
|
+
displayYouPayYouReceive && /* @__PURE__ */ React202.createElement(Box, { display: "flex", justifyContent: "center", alignItems: "center" }, /* @__PURE__ */ React202.createElement(
|
|
34491
34673
|
YouPayYouReceive,
|
|
34492
34674
|
{
|
|
34493
34675
|
payLabel: textCustomizations.confirmationScreen?.payAmountLabel,
|
|
@@ -34502,7 +34684,7 @@ function TransferToken({
|
|
|
34502
34684
|
}
|
|
34503
34685
|
))
|
|
34504
34686
|
),
|
|
34505
|
-
/* @__PURE__ */
|
|
34687
|
+
/* @__PURE__ */ React202.createElement(Box, { width: "full", display: "flex", flexDirection: "column", gap: "12" }, /* @__PURE__ */ React202.createElement(Box, { width: "full", display: "flex", flexDirection: "column", gap: "4" }, /* @__PURE__ */ React202.createElement(
|
|
34506
34688
|
Box,
|
|
34507
34689
|
{
|
|
34508
34690
|
display: "flex",
|
|
@@ -34510,7 +34692,7 @@ function TransferToken({
|
|
|
34510
34692
|
justifyContent: "space-between",
|
|
34511
34693
|
ref: disclaimerTextWrapperRef
|
|
34512
34694
|
},
|
|
34513
|
-
/* @__PURE__ */
|
|
34695
|
+
/* @__PURE__ */ React202.createElement(Box, { display: "flex", alignItems: "center", gap: "4" }, /* @__PURE__ */ React202.createElement(Text, { size: "12", weight: "medium" }, t("transferToken.yourDepositAddress")), /* @__PURE__ */ React202.createElement(
|
|
34514
34696
|
FunTooltip,
|
|
34515
34697
|
{
|
|
34516
34698
|
content: depositAddressTooltip,
|
|
@@ -34518,7 +34700,7 @@ function TransferToken({
|
|
|
34518
34700
|
enableDynamicPositioning: true
|
|
34519
34701
|
}
|
|
34520
34702
|
)),
|
|
34521
|
-
/* @__PURE__ */
|
|
34703
|
+
/* @__PURE__ */ React202.createElement(
|
|
34522
34704
|
FunLinkButton,
|
|
34523
34705
|
{
|
|
34524
34706
|
text: t("transferToken.termsApply"),
|
|
@@ -34526,7 +34708,7 @@ function TransferToken({
|
|
|
34526
34708
|
size: "12"
|
|
34527
34709
|
}
|
|
34528
34710
|
)
|
|
34529
|
-
), isLoadingDepositAddress ? /* @__PURE__ */
|
|
34711
|
+
), isLoadingDepositAddress ? /* @__PURE__ */ React202.createElement(FunSkeletonBlock, { height: "66", width: "full" }) : /* @__PURE__ */ React202.createElement(CopyInputDisplayedAddress, { address: depositAddress })), /* @__PURE__ */ React202.createElement(ChainInfoBanners, { chainId: selectedChainId }), /* @__PURE__ */ React202.createElement(FunInfoBanner, null), /* @__PURE__ */ React202.createElement(
|
|
34530
34712
|
TransferTokenDetails,
|
|
34531
34713
|
{
|
|
34532
34714
|
estProcessingTime: blockchain === "bitcoin" ? 30 * 60 * 1e3 : void 0,
|
|
@@ -34535,23 +34717,23 @@ function TransferToken({
|
|
|
34535
34717
|
maxSlippage
|
|
34536
34718
|
}
|
|
34537
34719
|
))
|
|
34538
|
-
)), bottomSectionRef && createPortal20(/* @__PURE__ */
|
|
34720
|
+
)), bottomSectionRef && createPortal20(/* @__PURE__ */ React202.createElement(Dialog.BottomBar, null), bottomSectionRef))
|
|
34539
34721
|
);
|
|
34540
34722
|
}
|
|
34541
34723
|
|
|
34542
34724
|
// src/modals/CheckoutModal/VirtualFiatAccount/FiatAccountDetail.tsx
|
|
34543
|
-
import
|
|
34725
|
+
import React208, { useState as useState64 } from "react";
|
|
34544
34726
|
|
|
34545
34727
|
// src/components/Tabs/Tabs.tsx
|
|
34546
34728
|
import { motion as motion13 } from "motion/react";
|
|
34547
|
-
import
|
|
34729
|
+
import React203 from "react";
|
|
34548
34730
|
|
|
34549
34731
|
// src/components/Tabs/tabs.css.ts
|
|
34550
34732
|
var activeTabStyle = "eghi2t1 _1rsrm2fm4 _1rsrm2ft";
|
|
34551
34733
|
|
|
34552
34734
|
// src/components/Tabs/Tabs.tsx
|
|
34553
34735
|
var Tabs = ({ tabs: tabs2, activeTab, onTabChange }) => {
|
|
34554
|
-
return /* @__PURE__ */
|
|
34736
|
+
return /* @__PURE__ */ React203.createElement(
|
|
34555
34737
|
Box,
|
|
34556
34738
|
{
|
|
34557
34739
|
display: "flex",
|
|
@@ -34562,7 +34744,7 @@ var Tabs = ({ tabs: tabs2, activeTab, onTabChange }) => {
|
|
|
34562
34744
|
},
|
|
34563
34745
|
tabs2.map((tab, index) => {
|
|
34564
34746
|
const isSelected = index === activeTab;
|
|
34565
|
-
return /* @__PURE__ */
|
|
34747
|
+
return /* @__PURE__ */ React203.createElement(
|
|
34566
34748
|
Box,
|
|
34567
34749
|
{
|
|
34568
34750
|
key: tab.value,
|
|
@@ -34579,7 +34761,7 @@ var Tabs = ({ tabs: tabs2, activeTab, onTabChange }) => {
|
|
|
34579
34761
|
focusedVisible: "primaryText"
|
|
34580
34762
|
}
|
|
34581
34763
|
},
|
|
34582
|
-
isSelected && /* @__PURE__ */
|
|
34764
|
+
isSelected && /* @__PURE__ */ React203.createElement(
|
|
34583
34765
|
motion13.div,
|
|
34584
34766
|
{
|
|
34585
34767
|
layoutId: "highlight",
|
|
@@ -34587,23 +34769,23 @@ var Tabs = ({ tabs: tabs2, activeTab, onTabChange }) => {
|
|
|
34587
34769
|
transition: { duration: 0.2, ease: [0.17, 0, 0.01, 1] }
|
|
34588
34770
|
}
|
|
34589
34771
|
),
|
|
34590
|
-
/* @__PURE__ */
|
|
34772
|
+
/* @__PURE__ */ React203.createElement(Box, { position: "relative", style: { zIndex: 1, textAlign: "center" } }, /* @__PURE__ */ React203.createElement(Text, { color: "inherit", weight: "medium", size: "12" }, tab.label))
|
|
34591
34773
|
);
|
|
34592
34774
|
})
|
|
34593
34775
|
);
|
|
34594
34776
|
};
|
|
34595
34777
|
|
|
34596
34778
|
// src/components/VirtualFiatAccount/AccountDetailsTab/AccountDetailsTab.tsx
|
|
34597
|
-
import
|
|
34779
|
+
import React207 from "react";
|
|
34598
34780
|
|
|
34599
34781
|
// src/components/FunInputButton/FunInputButton.tsx
|
|
34600
|
-
import
|
|
34782
|
+
import React206 from "react";
|
|
34601
34783
|
|
|
34602
34784
|
// src/components/Icons/CopyDoubleRoundedSquareIcon.tsx
|
|
34603
|
-
import
|
|
34785
|
+
import React204 from "react";
|
|
34604
34786
|
var CopyDoubleRoundedSquareIcon = ({
|
|
34605
34787
|
size = 16
|
|
34606
|
-
}) => /* @__PURE__ */
|
|
34788
|
+
}) => /* @__PURE__ */ React204.createElement(
|
|
34607
34789
|
"svg",
|
|
34608
34790
|
{
|
|
34609
34791
|
width: size,
|
|
@@ -34612,7 +34794,7 @@ var CopyDoubleRoundedSquareIcon = ({
|
|
|
34612
34794
|
fill: "none",
|
|
34613
34795
|
xmlns: "http://www.w3.org/2000/svg"
|
|
34614
34796
|
},
|
|
34615
|
-
/* @__PURE__ */
|
|
34797
|
+
/* @__PURE__ */ React204.createElement(
|
|
34616
34798
|
"path",
|
|
34617
34799
|
{
|
|
34618
34800
|
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",
|
|
@@ -34625,9 +34807,9 @@ var CopyDoubleRoundedSquareIcon = ({
|
|
|
34625
34807
|
);
|
|
34626
34808
|
|
|
34627
34809
|
// src/components/Icons/New/CheckCircleIcon.tsx
|
|
34628
|
-
import
|
|
34810
|
+
import React205 from "react";
|
|
34629
34811
|
var CheckCircleIcon = () => {
|
|
34630
|
-
return /* @__PURE__ */
|
|
34812
|
+
return /* @__PURE__ */ React205.createElement(
|
|
34631
34813
|
"svg",
|
|
34632
34814
|
{
|
|
34633
34815
|
width: "16",
|
|
@@ -34636,7 +34818,7 @@ var CheckCircleIcon = () => {
|
|
|
34636
34818
|
fill: "none",
|
|
34637
34819
|
xmlns: "http://www.w3.org/2000/svg"
|
|
34638
34820
|
},
|
|
34639
|
-
/* @__PURE__ */
|
|
34821
|
+
/* @__PURE__ */ React205.createElement(
|
|
34640
34822
|
"circle",
|
|
34641
34823
|
{
|
|
34642
34824
|
cx: "8",
|
|
@@ -34648,7 +34830,7 @@ var CheckCircleIcon = () => {
|
|
|
34648
34830
|
strokeLinejoin: "round"
|
|
34649
34831
|
}
|
|
34650
34832
|
),
|
|
34651
|
-
/* @__PURE__ */
|
|
34833
|
+
/* @__PURE__ */ React205.createElement(
|
|
34652
34834
|
"path",
|
|
34653
34835
|
{
|
|
34654
34836
|
d: "M5.5 9L7 10.5L10.5 7",
|
|
@@ -34673,7 +34855,7 @@ var FunInputButton = ({
|
|
|
34673
34855
|
const { t } = useFunkitTranslation();
|
|
34674
34856
|
const { isCopied, handleCopy } = useCopyToClipboard(text, HIDE_TOOLTIP_MS);
|
|
34675
34857
|
if (!isCopyable) {
|
|
34676
|
-
return /* @__PURE__ */
|
|
34858
|
+
return /* @__PURE__ */ React206.createElement(
|
|
34677
34859
|
FunOptionBox,
|
|
34678
34860
|
{
|
|
34679
34861
|
width: "full",
|
|
@@ -34692,10 +34874,10 @@ var FunInputButton = ({
|
|
|
34692
34874
|
hover: "heavyStroke"
|
|
34693
34875
|
}
|
|
34694
34876
|
},
|
|
34695
|
-
/* @__PURE__ */
|
|
34877
|
+
/* @__PURE__ */ React206.createElement(Box, { display: "flex", gap: "8", flexDirection: "column" }, label && /* @__PURE__ */ React206.createElement(Text, { size: "10", color: "secondaryText" }, label), /* @__PURE__ */ React206.createElement(Text, { weight: "medium", size: "12" }, text))
|
|
34696
34878
|
);
|
|
34697
34879
|
}
|
|
34698
|
-
return /* @__PURE__ */
|
|
34880
|
+
return /* @__PURE__ */ React206.createElement(
|
|
34699
34881
|
FunOptionBox,
|
|
34700
34882
|
{
|
|
34701
34883
|
width: "full",
|
|
@@ -34715,8 +34897,8 @@ var FunInputButton = ({
|
|
|
34715
34897
|
hover: "heavyStroke"
|
|
34716
34898
|
}
|
|
34717
34899
|
},
|
|
34718
|
-
/* @__PURE__ */
|
|
34719
|
-
/* @__PURE__ */
|
|
34900
|
+
/* @__PURE__ */ React206.createElement(Box, { display: "flex", gap: "8", flexDirection: "column" }, label && /* @__PURE__ */ React206.createElement(Text, { size: "10", color: "secondaryText" }, label), /* @__PURE__ */ React206.createElement(Text, { weight: "medium", size: "12" }, text)),
|
|
34901
|
+
/* @__PURE__ */ React206.createElement(FunTooltip, { content: isCopied ? t("common.copied") : t("common.copy") }, /* @__PURE__ */ React206.createElement(Box, { display: "flex", alignItems: "center", color: "primaryText" }, isCopied ? /* @__PURE__ */ React206.createElement(CheckCircleIcon, null) : /* @__PURE__ */ React206.createElement(CopyDoubleRoundedSquareIcon, null)))
|
|
34720
34902
|
);
|
|
34721
34903
|
};
|
|
34722
34904
|
|
|
@@ -34727,62 +34909,62 @@ var AccountDetailsTab = ({
|
|
|
34727
34909
|
handleToggleDetails
|
|
34728
34910
|
}) => {
|
|
34729
34911
|
const { t } = useFunkitTranslation();
|
|
34730
|
-
return /* @__PURE__ */
|
|
34912
|
+
return /* @__PURE__ */ React207.createElement(Box, { display: "flex", flexDirection: "column", gap: "8" }, account.bank_account_number ? /* @__PURE__ */ React207.createElement(
|
|
34731
34913
|
FunInputButton,
|
|
34732
34914
|
{
|
|
34733
34915
|
label: t("virtualFiatAccount.accountNumber"),
|
|
34734
34916
|
text: account.bank_account_number
|
|
34735
34917
|
}
|
|
34736
|
-
) : null, account.bank_routing_number ? /* @__PURE__ */
|
|
34918
|
+
) : null, account.bank_routing_number ? /* @__PURE__ */ React207.createElement(
|
|
34737
34919
|
FunInputButton,
|
|
34738
34920
|
{
|
|
34739
34921
|
label: t("virtualFiatAccount.routingNumber"),
|
|
34740
34922
|
text: account.bank_routing_number
|
|
34741
34923
|
}
|
|
34742
|
-
) : null, account.iban ? /* @__PURE__ */
|
|
34924
|
+
) : null, account.iban ? /* @__PURE__ */ React207.createElement(
|
|
34743
34925
|
FunInputButton,
|
|
34744
34926
|
{
|
|
34745
34927
|
label: t("virtualFiatAccount.iban"),
|
|
34746
34928
|
text: account.iban
|
|
34747
34929
|
}
|
|
34748
|
-
) : null, account.bic ? /* @__PURE__ */
|
|
34930
|
+
) : null, account.bic ? /* @__PURE__ */ React207.createElement(
|
|
34749
34931
|
FunInputButton,
|
|
34750
34932
|
{
|
|
34751
34933
|
label: t("virtualFiatAccount.swiftBic"),
|
|
34752
34934
|
text: account.bic
|
|
34753
34935
|
}
|
|
34754
|
-
) : null, account.account_holder_name ? /* @__PURE__ */
|
|
34936
|
+
) : null, account.account_holder_name ? /* @__PURE__ */ React207.createElement(
|
|
34755
34937
|
FunInputButton,
|
|
34756
34938
|
{
|
|
34757
34939
|
label: t("virtualFiatAccount.accountHolderName"),
|
|
34758
34940
|
text: account.account_holder_name
|
|
34759
34941
|
}
|
|
34760
|
-
) : null, account.bank_beneficiary_name ? /* @__PURE__ */
|
|
34942
|
+
) : null, account.bank_beneficiary_name ? /* @__PURE__ */ React207.createElement(
|
|
34761
34943
|
FunInputButton,
|
|
34762
34944
|
{
|
|
34763
34945
|
label: t("virtualFiatAccount.beneficiaryName"),
|
|
34764
34946
|
text: account.bank_beneficiary_name
|
|
34765
34947
|
}
|
|
34766
|
-
) : null, detailsExpanded && /* @__PURE__ */
|
|
34948
|
+
) : null, detailsExpanded && /* @__PURE__ */ React207.createElement(React207.Fragment, null, /* @__PURE__ */ React207.createElement(
|
|
34767
34949
|
FunInputButton,
|
|
34768
34950
|
{
|
|
34769
34951
|
label: t("virtualFiatAccount.bankName"),
|
|
34770
34952
|
text: account.bank_name
|
|
34771
34953
|
}
|
|
34772
|
-
), /* @__PURE__ */
|
|
34954
|
+
), /* @__PURE__ */ React207.createElement(
|
|
34773
34955
|
FunInputButton,
|
|
34774
34956
|
{
|
|
34775
34957
|
label: t("virtualFiatAccount.bankAddress"),
|
|
34776
34958
|
text: account.bank_address
|
|
34777
34959
|
}
|
|
34778
|
-
), /* @__PURE__ */
|
|
34960
|
+
), /* @__PURE__ */ React207.createElement(
|
|
34779
34961
|
FunInputButton,
|
|
34780
34962
|
{
|
|
34781
34963
|
label: t("virtualFiatAccount.currency"),
|
|
34782
34964
|
text: String(account.currency).toUpperCase(),
|
|
34783
34965
|
isCopyable: false
|
|
34784
34966
|
}
|
|
34785
|
-
)), /* @__PURE__ */
|
|
34967
|
+
)), /* @__PURE__ */ React207.createElement(
|
|
34786
34968
|
Box,
|
|
34787
34969
|
{
|
|
34788
34970
|
width: "full",
|
|
@@ -34802,8 +34984,8 @@ var AccountDetailsTab = ({
|
|
|
34802
34984
|
hover: "heavyStroke"
|
|
34803
34985
|
}
|
|
34804
34986
|
},
|
|
34805
|
-
/* @__PURE__ */
|
|
34806
|
-
/* @__PURE__ */
|
|
34987
|
+
/* @__PURE__ */ React207.createElement(Text, { size: "13" }, detailsExpanded ? "See less" : "More details"),
|
|
34988
|
+
/* @__PURE__ */ React207.createElement(
|
|
34807
34989
|
Box,
|
|
34808
34990
|
{
|
|
34809
34991
|
width: "16",
|
|
@@ -34812,7 +34994,7 @@ var AccountDetailsTab = ({
|
|
|
34812
34994
|
alignItems: "center",
|
|
34813
34995
|
justifyContent: "center"
|
|
34814
34996
|
},
|
|
34815
|
-
/* @__PURE__ */
|
|
34997
|
+
/* @__PURE__ */ React207.createElement(
|
|
34816
34998
|
Box,
|
|
34817
34999
|
{
|
|
34818
35000
|
color: "secondaryText",
|
|
@@ -34823,7 +35005,7 @@ var AccountDetailsTab = ({
|
|
|
34823
35005
|
justifyContent: "center",
|
|
34824
35006
|
style: detailsExpanded ? { transform: "rotate(180deg)" } : void 0
|
|
34825
35007
|
},
|
|
34826
|
-
/* @__PURE__ */
|
|
35008
|
+
/* @__PURE__ */ React207.createElement(CaretDownIcon, null)
|
|
34827
35009
|
)
|
|
34828
35010
|
)
|
|
34829
35011
|
));
|
|
@@ -34849,7 +35031,7 @@ var AccountDetailsScreen = ({
|
|
|
34849
35031
|
const handleTabChange = (index) => {
|
|
34850
35032
|
animate(() => setActiveTab(index), { reverse: index < activeTab });
|
|
34851
35033
|
};
|
|
34852
|
-
return /* @__PURE__ */
|
|
35034
|
+
return /* @__PURE__ */ React208.createElement(
|
|
34853
35035
|
Box,
|
|
34854
35036
|
{
|
|
34855
35037
|
id: "fiat-detail-page",
|
|
@@ -34857,7 +35039,7 @@ var AccountDetailsScreen = ({
|
|
|
34857
35039
|
flexDirection: "column",
|
|
34858
35040
|
gap: "16"
|
|
34859
35041
|
},
|
|
34860
|
-
isSourceNavWidgetEnabled && /* @__PURE__ */
|
|
35042
|
+
isSourceNavWidgetEnabled && /* @__PURE__ */ React208.createElement(
|
|
34861
35043
|
SourcePaymentMethodItem,
|
|
34862
35044
|
{
|
|
34863
35045
|
onClick: () => onNext({}),
|
|
@@ -34866,21 +35048,21 @@ var AccountDetailsScreen = ({
|
|
|
34866
35048
|
keyIcon: label.icon
|
|
34867
35049
|
}
|
|
34868
35050
|
),
|
|
34869
|
-
/* @__PURE__ */
|
|
35051
|
+
/* @__PURE__ */ React208.createElement(Box, { display: "flex", flexDirection: "column", gap: "8" }, /* @__PURE__ */ React208.createElement(Box, { display: "flex", flexDirection: "column", gap: "12" }, /* @__PURE__ */ React208.createElement(
|
|
34870
35052
|
Tabs,
|
|
34871
35053
|
{
|
|
34872
35054
|
tabs,
|
|
34873
35055
|
activeTab,
|
|
34874
35056
|
onTabChange: handleTabChange
|
|
34875
35057
|
}
|
|
34876
|
-
)), /* @__PURE__ */
|
|
35058
|
+
)), /* @__PURE__ */ React208.createElement(Box, { className: getContentAnimation(animation) }, tabs[activeTab]?.value === "details" ? /* @__PURE__ */ React208.createElement(
|
|
34877
35059
|
AccountDetailsTab,
|
|
34878
35060
|
{
|
|
34879
35061
|
account: sourceDeposit,
|
|
34880
35062
|
detailsExpanded,
|
|
34881
35063
|
handleToggleDetails: () => setDetailsExpanded((prev) => !prev)
|
|
34882
35064
|
}
|
|
34883
|
-
) : /* @__PURE__ */
|
|
35065
|
+
) : /* @__PURE__ */ React208.createElement(
|
|
34884
35066
|
FunFeatureList,
|
|
34885
35067
|
{
|
|
34886
35068
|
gapBetweenItems: "8",
|
|
@@ -34894,7 +35076,7 @@ var AccountDetailsScreen = ({
|
|
|
34894
35076
|
"Gas fee: < $5.00",
|
|
34895
35077
|
"Banks fees may also apply"
|
|
34896
35078
|
],
|
|
34897
|
-
icon: /* @__PURE__ */
|
|
35079
|
+
icon: /* @__PURE__ */ React208.createElement(DollarIcon, null)
|
|
34898
35080
|
},
|
|
34899
35081
|
{
|
|
34900
35082
|
text: "Limits",
|
|
@@ -34902,12 +35084,12 @@ var AccountDetailsScreen = ({
|
|
|
34902
35084
|
"Minimum amount: 25 EUR",
|
|
34903
35085
|
"Maximum amount: 20,000,000 EUR"
|
|
34904
35086
|
],
|
|
34905
|
-
icon: /* @__PURE__ */
|
|
35087
|
+
icon: /* @__PURE__ */ React208.createElement(DollarIcon, null)
|
|
34906
35088
|
},
|
|
34907
35089
|
{
|
|
34908
35090
|
text: "Processing time",
|
|
34909
35091
|
value: [FIAT_PROCESSING_TIME],
|
|
34910
|
-
icon: /* @__PURE__ */
|
|
35092
|
+
icon: /* @__PURE__ */ React208.createElement(SpeedometerIcon, null)
|
|
34911
35093
|
}
|
|
34912
35094
|
]
|
|
34913
35095
|
}
|
|
@@ -34930,7 +35112,7 @@ var FiatAccountDetail = {
|
|
|
34930
35112
|
|
|
34931
35113
|
// src/modals/CheckoutModal/VirtualFiatAccount/KycIframe.tsx
|
|
34932
35114
|
import { BridgeCustomerStatus as BridgeCustomerStatus7 } from "@funkit/api-base";
|
|
34933
|
-
import
|
|
35115
|
+
import React209, { useCallback as useCallback44, useEffect as useEffect53, useMemo as useMemo47, useState as useState65 } from "react";
|
|
34934
35116
|
function useIframeListener(listeners) {
|
|
34935
35117
|
const handleMessage = useCallback44(
|
|
34936
35118
|
(event) => {
|
|
@@ -35007,7 +35189,7 @@ function KycIframe({
|
|
|
35007
35189
|
);
|
|
35008
35190
|
const loading = isLinkLoading || iframeLoading;
|
|
35009
35191
|
useIframeListener(listeners);
|
|
35010
|
-
return /* @__PURE__ */
|
|
35192
|
+
return /* @__PURE__ */ React209.createElement(
|
|
35011
35193
|
Dialog,
|
|
35012
35194
|
{
|
|
35013
35195
|
onClose: onBack,
|
|
@@ -35017,13 +35199,13 @@ function KycIframe({
|
|
|
35017
35199
|
withoutBottomPadding: true,
|
|
35018
35200
|
withTransition: false
|
|
35019
35201
|
},
|
|
35020
|
-
loading && /* @__PURE__ */
|
|
35202
|
+
loading && /* @__PURE__ */ React209.createElement(React209.Fragment, null, /* @__PURE__ */ React209.createElement(
|
|
35021
35203
|
Dialog.Title,
|
|
35022
35204
|
{
|
|
35023
35205
|
onClose: onBack,
|
|
35024
35206
|
title: textCustomizations.virtualFiat
|
|
35025
35207
|
}
|
|
35026
|
-
), /* @__PURE__ */
|
|
35208
|
+
), /* @__PURE__ */ React209.createElement(
|
|
35027
35209
|
VerifyAccountScreen,
|
|
35028
35210
|
{
|
|
35029
35211
|
customerStatus: BridgeCustomerStatus7.NOT_STARTED,
|
|
@@ -35031,7 +35213,7 @@ function KycIframe({
|
|
|
35031
35213
|
withActionButton: false
|
|
35032
35214
|
}
|
|
35033
35215
|
)),
|
|
35034
|
-
/* @__PURE__ */
|
|
35216
|
+
/* @__PURE__ */ React209.createElement(
|
|
35035
35217
|
Dialog.Content,
|
|
35036
35218
|
{
|
|
35037
35219
|
display: "flex",
|
|
@@ -35043,7 +35225,7 @@ function KycIframe({
|
|
|
35043
35225
|
fullHeight: !loading,
|
|
35044
35226
|
withoutInternalPadding: !loading
|
|
35045
35227
|
},
|
|
35046
|
-
kycLink && /* @__PURE__ */
|
|
35228
|
+
kycLink && /* @__PURE__ */ React209.createElement(
|
|
35047
35229
|
"iframe",
|
|
35048
35230
|
{
|
|
35049
35231
|
src: kycLink,
|
|
@@ -35058,14 +35240,14 @@ function KycIframe({
|
|
|
35058
35240
|
}
|
|
35059
35241
|
)
|
|
35060
35242
|
),
|
|
35061
|
-
loading && /* @__PURE__ */
|
|
35243
|
+
loading && /* @__PURE__ */ React209.createElement(
|
|
35062
35244
|
Dialog.BottomSection,
|
|
35063
35245
|
{
|
|
35064
35246
|
style: {
|
|
35065
35247
|
paddingBottom: themeVars.spacing.modalPaddingBottomLower
|
|
35066
35248
|
}
|
|
35067
35249
|
},
|
|
35068
|
-
/* @__PURE__ */
|
|
35250
|
+
/* @__PURE__ */ React209.createElement(
|
|
35069
35251
|
Dialog.BottomBar,
|
|
35070
35252
|
{
|
|
35071
35253
|
actionButtonProps: {
|
|
@@ -35399,7 +35581,7 @@ function FunCheckoutModalHeightAnimationWrapper({
|
|
|
35399
35581
|
}
|
|
35400
35582
|
}, [checkoutStep]);
|
|
35401
35583
|
const permittedHeight = getPermittedHeight(checkoutStep);
|
|
35402
|
-
return /* @__PURE__ */
|
|
35584
|
+
return /* @__PURE__ */ React210.createElement(
|
|
35403
35585
|
motion14.div,
|
|
35404
35586
|
{
|
|
35405
35587
|
style: { height },
|
|
@@ -35409,7 +35591,7 @@ function FunCheckoutModalHeightAnimationWrapper({
|
|
|
35409
35591
|
},
|
|
35410
35592
|
transition: { duration: 0.15, ease: [0.33, 1, 0.68, 1] }
|
|
35411
35593
|
},
|
|
35412
|
-
/* @__PURE__ */
|
|
35594
|
+
/* @__PURE__ */ React210.createElement(
|
|
35413
35595
|
"div",
|
|
35414
35596
|
{
|
|
35415
35597
|
ref: containerRef,
|
|
@@ -35436,14 +35618,14 @@ function useCheckoutModalTitle(depositAddress, defaultTitle) {
|
|
|
35436
35618
|
import { IN_PROGRESS_CHECKOUT_STATES as IN_PROGRESS_CHECKOUT_STATES2 } from "@funkit/api-base";
|
|
35437
35619
|
import { formatTimestampToDate, fullMonthNames } from "@funkit/utils";
|
|
35438
35620
|
import clsx23 from "clsx";
|
|
35439
|
-
import
|
|
35621
|
+
import React219, { useEffect as useEffect55, useMemo as useMemo48, useRef as useRef29, useState as useState69 } from "react";
|
|
35440
35622
|
import { Virtuoso } from "react-virtuoso";
|
|
35441
35623
|
import { useAccount as useAccount7 } from "wagmi";
|
|
35442
35624
|
|
|
35443
35625
|
// src/components/Icons/GreenRoundCheckmark.tsx
|
|
35444
|
-
import
|
|
35626
|
+
import React211 from "react";
|
|
35445
35627
|
var GreenRoundCheckmark = ({ size = 15 }) => {
|
|
35446
|
-
return /* @__PURE__ */
|
|
35628
|
+
return /* @__PURE__ */ React211.createElement(
|
|
35447
35629
|
"svg",
|
|
35448
35630
|
{
|
|
35449
35631
|
width: size,
|
|
@@ -35452,7 +35634,7 @@ var GreenRoundCheckmark = ({ size = 15 }) => {
|
|
|
35452
35634
|
fill: "none",
|
|
35453
35635
|
xmlns: "http://www.w3.org/2000/svg"
|
|
35454
35636
|
},
|
|
35455
|
-
/* @__PURE__ */
|
|
35637
|
+
/* @__PURE__ */ React211.createElement(
|
|
35456
35638
|
"path",
|
|
35457
35639
|
{
|
|
35458
35640
|
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",
|
|
@@ -35463,10 +35645,10 @@ var GreenRoundCheckmark = ({ size = 15 }) => {
|
|
|
35463
35645
|
};
|
|
35464
35646
|
|
|
35465
35647
|
// src/modals/ProfileDetails/FunProfileViews/Home/BalanceSection.tsx
|
|
35466
|
-
import
|
|
35648
|
+
import React212 from "react";
|
|
35467
35649
|
import { formatCurrencyAndStringify as formatCurrencyAndStringify12 } from "@funkit/utils";
|
|
35468
35650
|
var BalanceSection = ({ totalBalance }) => {
|
|
35469
|
-
return /* @__PURE__ */
|
|
35651
|
+
return /* @__PURE__ */ React212.createElement(Box, { display: "flex", flexDirection: "column", gap: "16" }, /* @__PURE__ */ React212.createElement(Box, { display: "flex", justifyContent: "center", alignItems: "center" }, /* @__PURE__ */ React212.createElement(Text, { as: "h1", color: "primaryText", weight: "medium", size: "40" }, formatCurrencyAndStringify12(
|
|
35470
35652
|
Number.parseFloat(totalBalance.toString())
|
|
35471
35653
|
))));
|
|
35472
35654
|
};
|
|
@@ -35485,12 +35667,12 @@ import {
|
|
|
35485
35667
|
isNotNullish as isNotNullish8
|
|
35486
35668
|
} from "@funkit/utils";
|
|
35487
35669
|
import clsx22 from "clsx";
|
|
35488
|
-
import
|
|
35670
|
+
import React214 from "react";
|
|
35489
35671
|
|
|
35490
35672
|
// src/components/Icons/RedRoundErrorCross.tsx
|
|
35491
|
-
import
|
|
35673
|
+
import React213 from "react";
|
|
35492
35674
|
var RedRoundErrorCross = ({ size = 15 }) => {
|
|
35493
|
-
return /* @__PURE__ */
|
|
35675
|
+
return /* @__PURE__ */ React213.createElement(
|
|
35494
35676
|
"svg",
|
|
35495
35677
|
{
|
|
35496
35678
|
width: size,
|
|
@@ -35499,8 +35681,8 @@ var RedRoundErrorCross = ({ size = 15 }) => {
|
|
|
35499
35681
|
fill: "none",
|
|
35500
35682
|
xmlns: "http://www.w3.org/2000/svg"
|
|
35501
35683
|
},
|
|
35502
|
-
/* @__PURE__ */
|
|
35503
|
-
/* @__PURE__ */
|
|
35684
|
+
/* @__PURE__ */ React213.createElement("circle", { cx: "4", cy: "4.5", r: "4", fill: "#F34126" }),
|
|
35685
|
+
/* @__PURE__ */ React213.createElement(
|
|
35504
35686
|
"path",
|
|
35505
35687
|
{
|
|
35506
35688
|
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",
|
|
@@ -35536,7 +35718,7 @@ var HomeCheckoutDisplayRow = ({
|
|
|
35536
35718
|
const checkoutClientMetadata = checkoutHistoryItem.clientMetadata;
|
|
35537
35719
|
const getStatusElement = () => {
|
|
35538
35720
|
if (isCompleted) {
|
|
35539
|
-
return /* @__PURE__ */
|
|
35721
|
+
return /* @__PURE__ */ React214.createElement(
|
|
35540
35722
|
Box,
|
|
35541
35723
|
{
|
|
35542
35724
|
display: "flex",
|
|
@@ -35544,12 +35726,12 @@ var HomeCheckoutDisplayRow = ({
|
|
|
35544
35726
|
gap: STATUS_FLEX_GAP_X,
|
|
35545
35727
|
alignItems: "center"
|
|
35546
35728
|
},
|
|
35547
|
-
/* @__PURE__ */
|
|
35548
|
-
/* @__PURE__ */
|
|
35729
|
+
/* @__PURE__ */ React214.createElement(GreenRoundCheckmark, { size: Number.parseInt(STATUS_ICON_SIZE) }),
|
|
35730
|
+
/* @__PURE__ */ React214.createElement(Text, { size: STATUS_TEXT_SIZE, color: "success" }, t("checkoutHistory.completed"))
|
|
35549
35731
|
);
|
|
35550
35732
|
}
|
|
35551
35733
|
if (isError || isFailed || isExpired) {
|
|
35552
|
-
return /* @__PURE__ */
|
|
35734
|
+
return /* @__PURE__ */ React214.createElement(
|
|
35553
35735
|
Box,
|
|
35554
35736
|
{
|
|
35555
35737
|
display: "flex",
|
|
@@ -35557,12 +35739,12 @@ var HomeCheckoutDisplayRow = ({
|
|
|
35557
35739
|
gap: STATUS_FLEX_GAP_X,
|
|
35558
35740
|
alignItems: "center"
|
|
35559
35741
|
},
|
|
35560
|
-
/* @__PURE__ */
|
|
35561
|
-
/* @__PURE__ */
|
|
35742
|
+
/* @__PURE__ */ React214.createElement(RedRoundErrorCross, { size: Number.parseInt(STATUS_ICON_SIZE) }),
|
|
35743
|
+
/* @__PURE__ */ React214.createElement(Text, { size: STATUS_TEXT_SIZE, color: "error" }, t("checkoutHistory.failed"))
|
|
35562
35744
|
);
|
|
35563
35745
|
}
|
|
35564
35746
|
if (isProcessing) {
|
|
35565
|
-
return /* @__PURE__ */
|
|
35747
|
+
return /* @__PURE__ */ React214.createElement(
|
|
35566
35748
|
Box,
|
|
35567
35749
|
{
|
|
35568
35750
|
display: "flex",
|
|
@@ -35570,7 +35752,7 @@ var HomeCheckoutDisplayRow = ({
|
|
|
35570
35752
|
gap: STATUS_FLEX_GAP_X,
|
|
35571
35753
|
alignItems: "center"
|
|
35572
35754
|
},
|
|
35573
|
-
/* @__PURE__ */
|
|
35755
|
+
/* @__PURE__ */ React214.createElement(
|
|
35574
35756
|
Box,
|
|
35575
35757
|
{
|
|
35576
35758
|
width: STATUS_ICON_SIZE,
|
|
@@ -35579,13 +35761,13 @@ var HomeCheckoutDisplayRow = ({
|
|
|
35579
35761
|
background: "standby"
|
|
35580
35762
|
}
|
|
35581
35763
|
),
|
|
35582
|
-
/* @__PURE__ */
|
|
35764
|
+
/* @__PURE__ */ React214.createElement(Text, { size: STATUS_TEXT_SIZE, color: "standby" }, t("checkoutHistory.processing"))
|
|
35583
35765
|
);
|
|
35584
35766
|
}
|
|
35585
35767
|
};
|
|
35586
35768
|
const checkoutConfig = checkoutClientMetadata.initSettings.config;
|
|
35587
35769
|
const showIcon = isNotNullish8(checkoutConfig.iconSrc) || checkoutClientMetadata.isWithdrawal;
|
|
35588
|
-
return /* @__PURE__ */
|
|
35770
|
+
return /* @__PURE__ */ React214.createElement(
|
|
35589
35771
|
Box,
|
|
35590
35772
|
{
|
|
35591
35773
|
className: clsx22(
|
|
@@ -35610,7 +35792,7 @@ var HomeCheckoutDisplayRow = ({
|
|
|
35610
35792
|
}
|
|
35611
35793
|
}
|
|
35612
35794
|
},
|
|
35613
|
-
/* @__PURE__ */
|
|
35795
|
+
/* @__PURE__ */ React214.createElement(Box, { display: "flex", alignItems: "center", gap: ROW_FLEX_GAP_X, width: "full" }, showIcon && /* @__PURE__ */ React214.createElement(
|
|
35614
35796
|
Box,
|
|
35615
35797
|
{
|
|
35616
35798
|
display: "flex",
|
|
@@ -35621,7 +35803,7 @@ var HomeCheckoutDisplayRow = ({
|
|
|
35621
35803
|
minWidth: "29px"
|
|
35622
35804
|
}
|
|
35623
35805
|
},
|
|
35624
|
-
/* @__PURE__ */
|
|
35806
|
+
/* @__PURE__ */ React214.createElement(
|
|
35625
35807
|
FunAssetAvatar,
|
|
35626
35808
|
{
|
|
35627
35809
|
assetSrc: checkoutConfig.iconSrc || "",
|
|
@@ -35632,7 +35814,7 @@ var HomeCheckoutDisplayRow = ({
|
|
|
35632
35814
|
chainId: checkoutConfig.targetChain
|
|
35633
35815
|
}
|
|
35634
35816
|
)
|
|
35635
|
-
), /* @__PURE__ */
|
|
35817
|
+
), /* @__PURE__ */ React214.createElement(Box, { display: "flex", flexDirection: "column", width: "full" }, /* @__PURE__ */ React214.createElement(
|
|
35636
35818
|
Box,
|
|
35637
35819
|
{
|
|
35638
35820
|
display: "flex",
|
|
@@ -35640,19 +35822,19 @@ var HomeCheckoutDisplayRow = ({
|
|
|
35640
35822
|
alignItems: "center",
|
|
35641
35823
|
gap: "16"
|
|
35642
35824
|
},
|
|
35643
|
-
/* @__PURE__ */
|
|
35644
|
-
/* @__PURE__ */
|
|
35825
|
+
/* @__PURE__ */ React214.createElement(Text, { size: TEXT_SIZE_MEDIUM2, weight: "medium", color: "primaryText" }, checkoutConfig.checkoutItemTitle),
|
|
35826
|
+
/* @__PURE__ */ React214.createElement(Text, { size: TEXT_SIZE_MEDIUM2, weight: "medium", color: "primaryText" }, `${formatCurrencyAndStringify13(
|
|
35645
35827
|
checkoutClientMetadata?.finalDollarValue || 0
|
|
35646
35828
|
)} USD`)
|
|
35647
|
-
), /* @__PURE__ */
|
|
35829
|
+
), /* @__PURE__ */ React214.createElement(Box, { display: "flex", justifyContent: "space-between", gap: "16" }, /* @__PURE__ */ React214.createElement(Text, { size: TEXT_SIZE_SMALL2, color: "secondaryText" }, formatTimestamp3(new Date(checkoutHistoryItem.createdTimeMs), {
|
|
35648
35830
|
year: "none",
|
|
35649
35831
|
seconds: "none",
|
|
35650
35832
|
month: "short"
|
|
35651
|
-
})), /* @__PURE__ */
|
|
35833
|
+
})), /* @__PURE__ */ React214.createElement(Box, null, getStatusElement()))))
|
|
35652
35834
|
);
|
|
35653
35835
|
};
|
|
35654
35836
|
var HomeCheckoutDisplayRowSkeleton = () => {
|
|
35655
|
-
return /* @__PURE__ */
|
|
35837
|
+
return /* @__PURE__ */ React214.createElement(
|
|
35656
35838
|
Box,
|
|
35657
35839
|
{
|
|
35658
35840
|
display: "flex",
|
|
@@ -35662,8 +35844,8 @@ var HomeCheckoutDisplayRowSkeleton = () => {
|
|
|
35662
35844
|
paddingX: PROFILE_SIDE_PADDING,
|
|
35663
35845
|
paddingY: ROW_PADDING_Y
|
|
35664
35846
|
},
|
|
35665
|
-
/* @__PURE__ */
|
|
35666
|
-
/* @__PURE__ */
|
|
35847
|
+
/* @__PURE__ */ React214.createElement(FunSkeletonCircle, { size: DEFAULT_ICON_SIZE }),
|
|
35848
|
+
/* @__PURE__ */ React214.createElement(Box, { display: "flex", flexDirection: "column", style: { flexGrow: 1 } }, /* @__PURE__ */ React214.createElement(
|
|
35667
35849
|
FunSkeletonBlock,
|
|
35668
35850
|
{
|
|
35669
35851
|
height: TEXT_SIZE_MEDIUM2,
|
|
@@ -35671,7 +35853,7 @@ var HomeCheckoutDisplayRowSkeleton = () => {
|
|
|
35671
35853
|
marginTop: TEXT_SKELETON_MARGIN_TOP2,
|
|
35672
35854
|
width: TEXT_SKELETON_WIDTH_LONG2
|
|
35673
35855
|
}
|
|
35674
|
-
), /* @__PURE__ */
|
|
35856
|
+
), /* @__PURE__ */ React214.createElement(
|
|
35675
35857
|
FunSkeletonBlock,
|
|
35676
35858
|
{
|
|
35677
35859
|
height: TEXT_SIZE_SMALL2,
|
|
@@ -35680,7 +35862,7 @@ var HomeCheckoutDisplayRowSkeleton = () => {
|
|
|
35680
35862
|
width: TEXT_SKELETON_WIDTH_MEDIUM
|
|
35681
35863
|
}
|
|
35682
35864
|
)),
|
|
35683
|
-
/* @__PURE__ */
|
|
35865
|
+
/* @__PURE__ */ React214.createElement(Box, { alignItems: "flex-end", display: "flex", flexDirection: "column" }, /* @__PURE__ */ React214.createElement(
|
|
35684
35866
|
FunSkeletonBlock,
|
|
35685
35867
|
{
|
|
35686
35868
|
height: TEXT_SIZE_MEDIUM2,
|
|
@@ -35688,7 +35870,7 @@ var HomeCheckoutDisplayRowSkeleton = () => {
|
|
|
35688
35870
|
marginTop: TEXT_SKELETON_MARGIN_TOP2,
|
|
35689
35871
|
width: TEXT_SKELETON_WIDTH_MEDIUM
|
|
35690
35872
|
}
|
|
35691
|
-
), /* @__PURE__ */
|
|
35873
|
+
), /* @__PURE__ */ React214.createElement(
|
|
35692
35874
|
FunSkeletonBlock,
|
|
35693
35875
|
{
|
|
35694
35876
|
height: STATUS_TEXT_SIZE,
|
|
@@ -35706,7 +35888,7 @@ import {
|
|
|
35706
35888
|
formatCurrencyAndStringify as formatCurrencyAndStringify14,
|
|
35707
35889
|
isMobile as isMobile9
|
|
35708
35890
|
} from "@funkit/utils";
|
|
35709
|
-
import
|
|
35891
|
+
import React215 from "react";
|
|
35710
35892
|
var TEXT_SIZE = "13";
|
|
35711
35893
|
var TEXT_SKELETON_MARGIN_TOP3 = "2";
|
|
35712
35894
|
var TEXT_SKELETON_MARGIN_BOTTOM3 = "3";
|
|
@@ -35721,7 +35903,7 @@ var HomeTokenBalanceDisplayRow = ({
|
|
|
35721
35903
|
asset.tokenBalance,
|
|
35722
35904
|
asset.decimals
|
|
35723
35905
|
);
|
|
35724
|
-
return /* @__PURE__ */
|
|
35906
|
+
return /* @__PURE__ */ React215.createElement(
|
|
35725
35907
|
Box,
|
|
35726
35908
|
{
|
|
35727
35909
|
display: "flex",
|
|
@@ -35735,7 +35917,7 @@ var HomeTokenBalanceDisplayRow = ({
|
|
|
35735
35917
|
paddingY: ROW_PADDING_Y2,
|
|
35736
35918
|
className: baseStyles4
|
|
35737
35919
|
},
|
|
35738
|
-
/* @__PURE__ */
|
|
35920
|
+
/* @__PURE__ */ React215.createElement(
|
|
35739
35921
|
Box,
|
|
35740
35922
|
{
|
|
35741
35923
|
display: "flex",
|
|
@@ -35744,7 +35926,7 @@ var HomeTokenBalanceDisplayRow = ({
|
|
|
35744
35926
|
alignItems: "flex-start",
|
|
35745
35927
|
height: "full"
|
|
35746
35928
|
},
|
|
35747
|
-
/* @__PURE__ */
|
|
35929
|
+
/* @__PURE__ */ React215.createElement(
|
|
35748
35930
|
FunAssetAvatar,
|
|
35749
35931
|
{
|
|
35750
35932
|
assetSrc: asset.logo,
|
|
@@ -35754,22 +35936,22 @@ var HomeTokenBalanceDisplayRow = ({
|
|
|
35754
35936
|
assetIconSize: DEFAULT_ICON_SIZE
|
|
35755
35937
|
}
|
|
35756
35938
|
),
|
|
35757
|
-
/* @__PURE__ */
|
|
35939
|
+
/* @__PURE__ */ React215.createElement(
|
|
35758
35940
|
Box,
|
|
35759
35941
|
{
|
|
35760
35942
|
display: "flex",
|
|
35761
35943
|
flexDirection: "column",
|
|
35762
35944
|
justifyContent: "space-between"
|
|
35763
35945
|
},
|
|
35764
|
-
/* @__PURE__ */
|
|
35765
|
-
/* @__PURE__ */
|
|
35946
|
+
/* @__PURE__ */ React215.createElement(Text, { color: "primaryText", size: TEXT_SIZE, weight: "regular" }, asset.name),
|
|
35947
|
+
/* @__PURE__ */ React215.createElement(Text, { color: "secondaryText", size: TEXT_SIZE, weight: "regular" }, formatCryptoAndStringify8(normalizedAmount, asset.symbol))
|
|
35766
35948
|
)
|
|
35767
35949
|
),
|
|
35768
|
-
/* @__PURE__ */
|
|
35950
|
+
/* @__PURE__ */ React215.createElement(Text, { color: "primaryText", size: TEXT_SIZE, weight: "regular" }, formatCurrencyAndStringify14(asset.totalUsdValue || 0))
|
|
35769
35951
|
);
|
|
35770
35952
|
};
|
|
35771
35953
|
var HomeTokenBalanceDisplayRowSkeleton = () => {
|
|
35772
|
-
return /* @__PURE__ */
|
|
35954
|
+
return /* @__PURE__ */ React215.createElement(
|
|
35773
35955
|
Box,
|
|
35774
35956
|
{
|
|
35775
35957
|
display: "flex",
|
|
@@ -35779,8 +35961,8 @@ var HomeTokenBalanceDisplayRowSkeleton = () => {
|
|
|
35779
35961
|
paddingX: PROFILE_SIDE_PADDING,
|
|
35780
35962
|
paddingY: ROW_PADDING_Y2
|
|
35781
35963
|
},
|
|
35782
|
-
/* @__PURE__ */
|
|
35783
|
-
/* @__PURE__ */
|
|
35964
|
+
/* @__PURE__ */ React215.createElement(FunSkeletonCircle, { size: DEFAULT_ICON_SIZE }),
|
|
35965
|
+
/* @__PURE__ */ React215.createElement(Box, { display: "flex", flexDirection: "column", style: { flexGrow: 1 } }, /* @__PURE__ */ React215.createElement(
|
|
35784
35966
|
FunSkeletonBlock,
|
|
35785
35967
|
{
|
|
35786
35968
|
height: TEXT_SIZE,
|
|
@@ -35788,7 +35970,7 @@ var HomeTokenBalanceDisplayRowSkeleton = () => {
|
|
|
35788
35970
|
marginTop: TEXT_SKELETON_MARGIN_TOP3,
|
|
35789
35971
|
width: TEXT_SKELETON_WIDTH_SHORT3
|
|
35790
35972
|
}
|
|
35791
|
-
), /* @__PURE__ */
|
|
35973
|
+
), /* @__PURE__ */ React215.createElement(
|
|
35792
35974
|
FunSkeletonBlock,
|
|
35793
35975
|
{
|
|
35794
35976
|
height: TEXT_SIZE,
|
|
@@ -35797,7 +35979,7 @@ var HomeTokenBalanceDisplayRowSkeleton = () => {
|
|
|
35797
35979
|
width: TEXT_SKELETON_WIDTH_LONG3
|
|
35798
35980
|
}
|
|
35799
35981
|
)),
|
|
35800
|
-
/* @__PURE__ */
|
|
35982
|
+
/* @__PURE__ */ React215.createElement(
|
|
35801
35983
|
FunSkeletonBlock,
|
|
35802
35984
|
{
|
|
35803
35985
|
height: TEXT_SIZE,
|
|
@@ -35810,13 +35992,13 @@ var HomeTokenBalanceDisplayRowSkeleton = () => {
|
|
|
35810
35992
|
};
|
|
35811
35993
|
|
|
35812
35994
|
// src/modals/ProfileDetails/FunProfileViews/Home/ProfileTitleSection.tsx
|
|
35813
|
-
import
|
|
35995
|
+
import React218 from "react";
|
|
35814
35996
|
import { useCallback as useCallback46, useState as useState68 } from "react";
|
|
35815
35997
|
|
|
35816
35998
|
// src/components/Icons/LogoutIcon.tsx
|
|
35817
|
-
import
|
|
35999
|
+
import React216 from "react";
|
|
35818
36000
|
var LogoutIcon = ({ size = 16 }) => {
|
|
35819
|
-
return /* @__PURE__ */
|
|
36001
|
+
return /* @__PURE__ */ React216.createElement(
|
|
35820
36002
|
"svg",
|
|
35821
36003
|
{
|
|
35822
36004
|
width: size,
|
|
@@ -35825,7 +36007,7 @@ var LogoutIcon = ({ size = 16 }) => {
|
|
|
35825
36007
|
fill: "none",
|
|
35826
36008
|
xmlns: "http://www.w3.org/2000/svg"
|
|
35827
36009
|
},
|
|
35828
|
-
/* @__PURE__ */
|
|
36010
|
+
/* @__PURE__ */ React216.createElement(
|
|
35829
36011
|
"path",
|
|
35830
36012
|
{
|
|
35831
36013
|
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",
|
|
@@ -35840,9 +36022,9 @@ var LogoutIcon = ({ size = 16 }) => {
|
|
|
35840
36022
|
};
|
|
35841
36023
|
|
|
35842
36024
|
// src/components/Icons/SettingsIcon.tsx
|
|
35843
|
-
import
|
|
36025
|
+
import React217 from "react";
|
|
35844
36026
|
var SettingsIcon = ({ size = 16 }) => {
|
|
35845
|
-
return /* @__PURE__ */
|
|
36027
|
+
return /* @__PURE__ */ React217.createElement(
|
|
35846
36028
|
"svg",
|
|
35847
36029
|
{
|
|
35848
36030
|
width: size,
|
|
@@ -35851,14 +36033,14 @@ var SettingsIcon = ({ size = 16 }) => {
|
|
|
35851
36033
|
fill: "none",
|
|
35852
36034
|
xmlns: "http://www.w3.org/2000/svg"
|
|
35853
36035
|
},
|
|
35854
|
-
/* @__PURE__ */
|
|
36036
|
+
/* @__PURE__ */ React217.createElement(
|
|
35855
36037
|
"path",
|
|
35856
36038
|
{
|
|
35857
36039
|
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",
|
|
35858
36040
|
stroke: "currentColor"
|
|
35859
36041
|
}
|
|
35860
36042
|
),
|
|
35861
|
-
/* @__PURE__ */
|
|
36043
|
+
/* @__PURE__ */ React217.createElement(
|
|
35862
36044
|
"path",
|
|
35863
36045
|
{
|
|
35864
36046
|
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",
|
|
@@ -35883,7 +36065,7 @@ var ProfileTitleSection = ({
|
|
|
35883
36065
|
() => setIsDisconnectExpanded(false),
|
|
35884
36066
|
[]
|
|
35885
36067
|
);
|
|
35886
|
-
return /* @__PURE__ */
|
|
36068
|
+
return /* @__PURE__ */ React218.createElement(
|
|
35887
36069
|
Box,
|
|
35888
36070
|
{
|
|
35889
36071
|
display: "flex",
|
|
@@ -35892,7 +36074,7 @@ var ProfileTitleSection = ({
|
|
|
35892
36074
|
width: "full",
|
|
35893
36075
|
minHeight: "28"
|
|
35894
36076
|
},
|
|
35895
|
-
/* @__PURE__ */
|
|
36077
|
+
/* @__PURE__ */ React218.createElement(
|
|
35896
36078
|
Box,
|
|
35897
36079
|
{
|
|
35898
36080
|
display: "flex",
|
|
@@ -35901,7 +36083,7 @@ var ProfileTitleSection = ({
|
|
|
35901
36083
|
gap: "8",
|
|
35902
36084
|
className: animateOut ? animateTitleOutClass : animateTitleInClass
|
|
35903
36085
|
},
|
|
35904
|
-
account.address && /* @__PURE__ */
|
|
36086
|
+
account.address && /* @__PURE__ */ React218.createElement(
|
|
35905
36087
|
Avatar,
|
|
35906
36088
|
{
|
|
35907
36089
|
address: account.address,
|
|
@@ -35910,21 +36092,21 @@ var ProfileTitleSection = ({
|
|
|
35910
36092
|
size: 20
|
|
35911
36093
|
}
|
|
35912
36094
|
),
|
|
35913
|
-
/* @__PURE__ */
|
|
36095
|
+
/* @__PURE__ */ React218.createElement(Text, { color: "primaryText", size: "13", weight: "medium" }, userInfo.nameTruncated)
|
|
35914
36096
|
),
|
|
35915
|
-
/* @__PURE__ */
|
|
36097
|
+
/* @__PURE__ */ React218.createElement(Box, { display: "flex", alignItems: "center", flexDirection: "row" }, !isDisconnectExpanded && /* @__PURE__ */ React218.createElement(
|
|
35916
36098
|
FunIconButton,
|
|
35917
36099
|
{
|
|
35918
|
-
icon: /* @__PURE__ */
|
|
36100
|
+
icon: /* @__PURE__ */ React218.createElement(SettingsIcon, { size: 17 }),
|
|
35919
36101
|
onClick: () => onChangeView(1 /* SETTINGS */),
|
|
35920
36102
|
paddingX: "4",
|
|
35921
36103
|
paddingY: "4"
|
|
35922
36104
|
}
|
|
35923
|
-
), /* @__PURE__ */
|
|
36105
|
+
), /* @__PURE__ */ React218.createElement(FunClickOutside, { onClick: collapseDisconnect }, /* @__PURE__ */ React218.createElement(
|
|
35924
36106
|
FunIconButton,
|
|
35925
36107
|
{
|
|
35926
36108
|
size: "28",
|
|
35927
|
-
icon: /* @__PURE__ */
|
|
36109
|
+
icon: /* @__PURE__ */ React218.createElement(LogoutIcon, { size: 15 }),
|
|
35928
36110
|
paddingX: isDisconnectExpanded ? "6" : void 0,
|
|
35929
36111
|
"aria-label": t("profile.disconnect"),
|
|
35930
36112
|
onClick: isDisconnectExpanded ? onLogout : () => setIsDisconnectExpanded(true),
|
|
@@ -35932,12 +36114,12 @@ var ProfileTitleSection = ({
|
|
|
35932
36114
|
onMouseLeave: collapseDisconnect,
|
|
35933
36115
|
onBlur: collapseDisconnect
|
|
35934
36116
|
},
|
|
35935
|
-
isDisconnectExpanded && /* @__PURE__ */
|
|
35936
|
-
)), !isDisconnectExpanded && /* @__PURE__ */
|
|
36117
|
+
isDisconnectExpanded && /* @__PURE__ */ React218.createElement(Text, { size: "10", color: "secondaryText", weight: "medium" }, t("profile.disconnect"))
|
|
36118
|
+
)), !isDisconnectExpanded && /* @__PURE__ */ React218.createElement(
|
|
35937
36119
|
FunIconButton,
|
|
35938
36120
|
{
|
|
35939
36121
|
size: "28",
|
|
35940
|
-
icon: /* @__PURE__ */
|
|
36122
|
+
icon: /* @__PURE__ */ React218.createElement(CloseIcon, { size: 12 }),
|
|
35941
36123
|
onClick: onClose
|
|
35942
36124
|
}
|
|
35943
36125
|
))
|
|
@@ -35953,10 +36135,10 @@ var SelectedHomeTab = /* @__PURE__ */ ((SelectedHomeTab2) => {
|
|
|
35953
36135
|
var EmptyTabAlert = () => {
|
|
35954
36136
|
const { t } = useFunkitTranslation();
|
|
35955
36137
|
const { appName } = useFunkitConfig();
|
|
35956
|
-
return /* @__PURE__ */
|
|
36138
|
+
return /* @__PURE__ */ React219.createElement(Box, { paddingX: PROFILE_SIDE_PADDING }, /* @__PURE__ */ React219.createElement(
|
|
35957
36139
|
FunAlert,
|
|
35958
36140
|
{
|
|
35959
|
-
icon: /* @__PURE__ */
|
|
36141
|
+
icon: /* @__PURE__ */ React219.createElement(GreenRoundCheckmark, null),
|
|
35960
36142
|
description: t("profile.executeFirstCheckout", { appName })
|
|
35961
36143
|
}
|
|
35962
36144
|
));
|
|
@@ -35985,7 +36167,7 @@ function Home({
|
|
|
35985
36167
|
}, []);
|
|
35986
36168
|
const AssetsList = useMemo48(() => {
|
|
35987
36169
|
if (walletAssets && !Object.keys(walletAssets).length) {
|
|
35988
|
-
return /* @__PURE__ */
|
|
36170
|
+
return /* @__PURE__ */ React219.createElement(EmptyTabAlert, null);
|
|
35989
36171
|
}
|
|
35990
36172
|
const assets = walletAssets ? Object.values(walletAssets).sort(
|
|
35991
36173
|
(a, b) => (b.totalUsdValue ?? 0) - (a.totalUsdValue ?? 0)
|
|
@@ -35993,7 +36175,7 @@ function Home({
|
|
|
35993
36175
|
const itemHeight = HOME_TOKEN_BALANCE_DISPLAY_ROW_HEIGHT;
|
|
35994
36176
|
const itemMargin = 8;
|
|
35995
36177
|
const height = assets.length * (itemHeight + itemMargin) - itemMargin;
|
|
35996
|
-
return /* @__PURE__ */
|
|
36178
|
+
return /* @__PURE__ */ React219.createElement(Box, { ref: virtuosoParentRef }, /* @__PURE__ */ React219.createElement(
|
|
35997
36179
|
Virtuoso,
|
|
35998
36180
|
{
|
|
35999
36181
|
className: clsx23(hideScrollBar, scrollContent),
|
|
@@ -36005,14 +36187,14 @@ function Home({
|
|
|
36005
36187
|
itemContent: (index, asset) => (
|
|
36006
36188
|
// gaps/margins between items must be part of the measured content
|
|
36007
36189
|
// thus we wrap items in padded divs (margin is not measured)
|
|
36008
|
-
/* @__PURE__ */
|
|
36190
|
+
/* @__PURE__ */ React219.createElement("div", { style: { paddingTop: index === 0 ? 0 : itemMargin } }, asset ? /* @__PURE__ */ React219.createElement(HomeTokenBalanceDisplayRow, { asset }) : /* @__PURE__ */ React219.createElement(HomeTokenBalanceDisplayRowSkeleton, null))
|
|
36009
36191
|
)
|
|
36010
36192
|
}
|
|
36011
36193
|
));
|
|
36012
36194
|
}, [walletAssets]);
|
|
36013
36195
|
const CheckoutsList = useMemo48(() => {
|
|
36014
36196
|
if (checkoutHistoryList.length === 0 && isCheckoutHistoryInited) {
|
|
36015
|
-
return /* @__PURE__ */
|
|
36197
|
+
return /* @__PURE__ */ React219.createElement(EmptyTabAlert, null);
|
|
36016
36198
|
}
|
|
36017
36199
|
const processingCheckouts = checkoutHistoryList.filter(
|
|
36018
36200
|
(checkoutHistoryItem) => IN_PROGRESS_CHECKOUT_STATES2.includes(checkoutHistoryItem.state)
|
|
@@ -36074,7 +36256,7 @@ function Home({
|
|
|
36074
36256
|
const groupHeight = 15;
|
|
36075
36257
|
const groupMargin = 24;
|
|
36076
36258
|
const height = groups.length * (groupHeight + groupMargin) + (items.length - groups.length) * (itemHeight + itemMargin) - groupMargin;
|
|
36077
|
-
return /* @__PURE__ */
|
|
36259
|
+
return /* @__PURE__ */ React219.createElement(Box, { ref: virtuosoParentRef }, /* @__PURE__ */ React219.createElement(
|
|
36078
36260
|
Virtuoso,
|
|
36079
36261
|
{
|
|
36080
36262
|
className: clsx23(hideScrollBar, scrollContent),
|
|
@@ -36088,13 +36270,13 @@ function Home({
|
|
|
36088
36270
|
itemContent: (index, data) => (
|
|
36089
36271
|
// gaps/margins between items must be part of the measured content
|
|
36090
36272
|
// thus we wrap items in padded divs (margin is not measured)
|
|
36091
|
-
"group" in data ? /* @__PURE__ */
|
|
36273
|
+
"group" in data ? /* @__PURE__ */ React219.createElement("div", { style: { paddingTop: index === 0 ? 0 : groupMargin } }, /* @__PURE__ */ React219.createElement(Box, { paddingX: PROFILE_SIDE_PADDING }, /* @__PURE__ */ React219.createElement(Text, { size: "10", color: "secondaryText" }, data.group))) : /* @__PURE__ */ React219.createElement("div", { style: { paddingTop: index === 0 ? 0 : itemMargin } }, data.checkout ? /* @__PURE__ */ React219.createElement(
|
|
36092
36274
|
HomeCheckoutDisplayRow,
|
|
36093
36275
|
{
|
|
36094
36276
|
checkoutHistoryItem: data.checkout,
|
|
36095
36277
|
onSelect: handleCheckoutSelect
|
|
36096
36278
|
}
|
|
36097
|
-
) : /* @__PURE__ */
|
|
36279
|
+
) : /* @__PURE__ */ React219.createElement(HomeCheckoutDisplayRowSkeleton, null))
|
|
36098
36280
|
)
|
|
36099
36281
|
}
|
|
36100
36282
|
));
|
|
@@ -36109,7 +36291,7 @@ function Home({
|
|
|
36109
36291
|
{ tab: "assets" /* ASSETS */, label: t("profile.tokensTab") },
|
|
36110
36292
|
{ tab: "checkouts" /* CHECKOUTS */, label: t("profile.checkoutsTab") }
|
|
36111
36293
|
];
|
|
36112
|
-
return /* @__PURE__ */
|
|
36294
|
+
return /* @__PURE__ */ React219.createElement(Box, { paddingTop: "14" }, /* @__PURE__ */ React219.createElement(
|
|
36113
36295
|
ProfileTitleSection,
|
|
36114
36296
|
{
|
|
36115
36297
|
animateOut: animation.isOut,
|
|
@@ -36119,7 +36301,7 @@ function Home({
|
|
|
36119
36301
|
onLogout: handleLogout,
|
|
36120
36302
|
onClose
|
|
36121
36303
|
}
|
|
36122
|
-
), /* @__PURE__ */
|
|
36304
|
+
), /* @__PURE__ */ React219.createElement(
|
|
36123
36305
|
Box,
|
|
36124
36306
|
{
|
|
36125
36307
|
display: "flex",
|
|
@@ -36129,8 +36311,8 @@ function Home({
|
|
|
36129
36311
|
gap: "24",
|
|
36130
36312
|
className: getContentAnimation(animation, true)
|
|
36131
36313
|
},
|
|
36132
|
-
/* @__PURE__ */
|
|
36133
|
-
/* @__PURE__ */
|
|
36314
|
+
/* @__PURE__ */ React219.createElement(BalanceSection, { totalBalance: totalWalletAssetsUsd }),
|
|
36315
|
+
/* @__PURE__ */ React219.createElement(
|
|
36134
36316
|
Box,
|
|
36135
36317
|
{
|
|
36136
36318
|
display: "flex",
|
|
@@ -36141,7 +36323,7 @@ function Home({
|
|
|
36141
36323
|
marginLeft: `-${Number.parseInt(PROFILE_SIDE_PADDING)}px`
|
|
36142
36324
|
}
|
|
36143
36325
|
},
|
|
36144
|
-
/* @__PURE__ */
|
|
36326
|
+
/* @__PURE__ */ React219.createElement(
|
|
36145
36327
|
Box,
|
|
36146
36328
|
{
|
|
36147
36329
|
display: "flex",
|
|
@@ -36149,7 +36331,7 @@ function Home({
|
|
|
36149
36331
|
gap: "24",
|
|
36150
36332
|
paddingX: PROFILE_SIDE_PADDING
|
|
36151
36333
|
},
|
|
36152
|
-
tabs2.map(({ tab, label }) => /* @__PURE__ */
|
|
36334
|
+
tabs2.map(({ tab, label }) => /* @__PURE__ */ React219.createElement(
|
|
36153
36335
|
Box,
|
|
36154
36336
|
{
|
|
36155
36337
|
key: label,
|
|
@@ -36158,7 +36340,7 @@ function Home({
|
|
|
36158
36340
|
tabIndex: 0,
|
|
36159
36341
|
className: tabLabelStyles
|
|
36160
36342
|
},
|
|
36161
|
-
/* @__PURE__ */
|
|
36343
|
+
/* @__PURE__ */ React219.createElement(
|
|
36162
36344
|
Text,
|
|
36163
36345
|
{
|
|
36164
36346
|
weight: "bold",
|
|
@@ -36169,21 +36351,21 @@ function Home({
|
|
|
36169
36351
|
)
|
|
36170
36352
|
))
|
|
36171
36353
|
),
|
|
36172
|
-
/* @__PURE__ */
|
|
36354
|
+
/* @__PURE__ */ React219.createElement(Box, { className: getContentAnimation(tabAnimation, false) }, selectedView === "assets" /* ASSETS */ && AssetsList, selectedView === "checkouts" /* CHECKOUTS */ && CheckoutsList)
|
|
36173
36355
|
)
|
|
36174
36356
|
));
|
|
36175
36357
|
}
|
|
36176
36358
|
|
|
36177
36359
|
// src/modals/ProfileDetails/FunProfileViews/Settings/Settings.tsx
|
|
36178
36360
|
import { formatAddress as formatAddress6 } from "@funkit/utils";
|
|
36179
|
-
import
|
|
36361
|
+
import React222 from "react";
|
|
36180
36362
|
|
|
36181
36363
|
// src/components/CopyAddress/OldCopyAddressButton.tsx
|
|
36182
|
-
import
|
|
36364
|
+
import React221 from "react";
|
|
36183
36365
|
|
|
36184
36366
|
// src/components/Icons/CopyDoublePaperSheetIcon.tsx
|
|
36185
|
-
import
|
|
36186
|
-
var CopyDoublePaperSheetIcon = () => /* @__PURE__ */
|
|
36367
|
+
import React220 from "react";
|
|
36368
|
+
var CopyDoublePaperSheetIcon = () => /* @__PURE__ */ React220.createElement(
|
|
36187
36369
|
"svg",
|
|
36188
36370
|
{
|
|
36189
36371
|
width: "14",
|
|
@@ -36192,7 +36374,7 @@ var CopyDoublePaperSheetIcon = () => /* @__PURE__ */ React219.createElement(
|
|
|
36192
36374
|
fill: "none",
|
|
36193
36375
|
xmlns: "http://www.w3.org/2000/svg"
|
|
36194
36376
|
},
|
|
36195
|
-
/* @__PURE__ */
|
|
36377
|
+
/* @__PURE__ */ React220.createElement(
|
|
36196
36378
|
"path",
|
|
36197
36379
|
{
|
|
36198
36380
|
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",
|
|
@@ -36206,11 +36388,11 @@ function OldCopyAddressButton({
|
|
|
36206
36388
|
address
|
|
36207
36389
|
}) {
|
|
36208
36390
|
const { isCopied, handleCopy } = useCopyToClipboard(address);
|
|
36209
|
-
return /* @__PURE__ */
|
|
36391
|
+
return /* @__PURE__ */ React221.createElement(
|
|
36210
36392
|
FunIconButton,
|
|
36211
36393
|
{
|
|
36212
36394
|
size: "36",
|
|
36213
|
-
icon: /* @__PURE__ */
|
|
36395
|
+
icon: /* @__PURE__ */ React221.createElement(Box, { display: "flex", alignItems: "center", color: "primaryText" }, isCopied ? /* @__PURE__ */ React221.createElement(CheckIcon, null) : /* @__PURE__ */ React221.createElement(CopyDoublePaperSheetIcon, null)),
|
|
36214
36396
|
onClick: handleCopy
|
|
36215
36397
|
}
|
|
36216
36398
|
);
|
|
@@ -36222,7 +36404,7 @@ function LineItem({
|
|
|
36222
36404
|
value,
|
|
36223
36405
|
valueSuffix = null
|
|
36224
36406
|
}) {
|
|
36225
|
-
return /* @__PURE__ */
|
|
36407
|
+
return /* @__PURE__ */ React222.createElement(
|
|
36226
36408
|
Box,
|
|
36227
36409
|
{
|
|
36228
36410
|
display: "flex",
|
|
@@ -36231,26 +36413,26 @@ function LineItem({
|
|
|
36231
36413
|
alignItems: "center",
|
|
36232
36414
|
justifyContent: "space-between"
|
|
36233
36415
|
},
|
|
36234
|
-
/* @__PURE__ */
|
|
36235
|
-
/* @__PURE__ */
|
|
36416
|
+
/* @__PURE__ */ React222.createElement(Text, { color: "tertiaryText", size: "13", weight: "medium" }, label),
|
|
36417
|
+
/* @__PURE__ */ React222.createElement(Box, { display: "flex", flexDirection: "row", gap: "1" }, /* @__PURE__ */ React222.createElement(Box, { display: "flex", alignItems: "center" }, /* @__PURE__ */ React222.createElement(Text, { color: "primaryText", size: "13", weight: "medium" }, value)), valueSuffix ? /* @__PURE__ */ React222.createElement(Box, { display: "flex", alignItems: "center" }, valueSuffix) : null)
|
|
36236
36418
|
);
|
|
36237
36419
|
}
|
|
36238
36420
|
function Settings() {
|
|
36239
36421
|
const { t } = useFunkitTranslation();
|
|
36240
36422
|
const { walletAddress, loginType, userInfo } = useGeneralWallet();
|
|
36241
36423
|
const isWeb3Login = loginType === "web3" /* Web3 */;
|
|
36242
|
-
return /* @__PURE__ */
|
|
36424
|
+
return /* @__PURE__ */ React222.createElement(Box, { display: "flex", flexDirection: "column", gap: "24" }, /* @__PURE__ */ React222.createElement(
|
|
36243
36425
|
LineItem,
|
|
36244
36426
|
{
|
|
36245
36427
|
label: isWeb3Login ? "Wallet" : userInfo.typeLabel,
|
|
36246
36428
|
value: isWeb3Login ? userInfo.typeLabel : userInfo.name
|
|
36247
36429
|
}
|
|
36248
|
-
), /* @__PURE__ */
|
|
36430
|
+
), /* @__PURE__ */ React222.createElement(
|
|
36249
36431
|
LineItem,
|
|
36250
36432
|
{
|
|
36251
36433
|
label: t("profile.address"),
|
|
36252
36434
|
value: formatAddress6(walletAddress),
|
|
36253
|
-
valueSuffix: /* @__PURE__ */
|
|
36435
|
+
valueSuffix: /* @__PURE__ */ React222.createElement(OldCopyAddressButton, { address: walletAddress })
|
|
36254
36436
|
}
|
|
36255
36437
|
));
|
|
36256
36438
|
}
|
|
@@ -36330,11 +36512,11 @@ function ProfileDetails({ onClose, defaultTab }) {
|
|
|
36330
36512
|
isActiveCheckout: false,
|
|
36331
36513
|
isCheckoutDetailView,
|
|
36332
36514
|
paddingTop: PADDING_TOP,
|
|
36333
|
-
topbar: dialogTitleMap[view] && /* @__PURE__ */
|
|
36515
|
+
topbar: dialogTitleMap[view] && /* @__PURE__ */ React223.createElement(Dialog.Title, { onClose, ...dialogTitleMap[view] }),
|
|
36334
36516
|
withTopDivider: withDivider,
|
|
36335
36517
|
scrollableContent: PROFILE_DETAILS_DIALOG_CONTENT_ID
|
|
36336
36518
|
});
|
|
36337
|
-
return /* @__PURE__ */
|
|
36519
|
+
return /* @__PURE__ */ React223.createElement(FunCheckoutModalHeightAnimationWrapper, null, topbar, /* @__PURE__ */ React223.createElement(
|
|
36338
36520
|
Dialog.Content,
|
|
36339
36521
|
{
|
|
36340
36522
|
display: "flex",
|
|
@@ -36351,7 +36533,7 @@ function ProfileDetails({ onClose, defaultTab }) {
|
|
|
36351
36533
|
withTopDivider,
|
|
36352
36534
|
id: PROFILE_DETAILS_DIALOG_CONTENT_ID
|
|
36353
36535
|
},
|
|
36354
|
-
view === 0 /* HOME */ ? /* @__PURE__ */
|
|
36536
|
+
view === 0 /* HOME */ ? /* @__PURE__ */ React223.createElement(
|
|
36355
36537
|
Home,
|
|
36356
36538
|
{
|
|
36357
36539
|
animation,
|
|
@@ -36360,7 +36542,7 @@ function ProfileDetails({ onClose, defaultTab }) {
|
|
|
36360
36542
|
onSelectActivity: onSelectActivityWrapper,
|
|
36361
36543
|
defaultHomeTab: selectedHomeTab
|
|
36362
36544
|
}
|
|
36363
|
-
) : view === 1 /* SETTINGS */ ? /* @__PURE__ */
|
|
36545
|
+
) : view === 1 /* SETTINGS */ ? /* @__PURE__ */ React223.createElement(Settings, null) : view === 3 /* SINGLE_ACTIVITY */ ? /* @__PURE__ */ React223.createElement(
|
|
36364
36546
|
FunCheckoutHistoryContent,
|
|
36365
36547
|
{
|
|
36366
36548
|
depositAddress: selectedPurchaseId || "0x",
|
|
@@ -36372,7 +36554,7 @@ function ProfileDetails({ onClose, defaultTab }) {
|
|
|
36372
36554
|
bottomBarId: HISTORY_BOTTOM_BAR_ID
|
|
36373
36555
|
}
|
|
36374
36556
|
) : null
|
|
36375
|
-
), /* @__PURE__ */
|
|
36557
|
+
), /* @__PURE__ */ React223.createElement(Dialog.BottomSection, { id: HISTORY_BOTTOM_BAR_ID }));
|
|
36376
36558
|
}
|
|
36377
36559
|
|
|
36378
36560
|
// src/modals/AccountModal/AccountModal.tsx
|
|
@@ -36382,7 +36564,7 @@ function AccountModal({ onClose, open, defaultTab }) {
|
|
|
36382
36564
|
if (!walletAddress) {
|
|
36383
36565
|
return null;
|
|
36384
36566
|
}
|
|
36385
|
-
return /* @__PURE__ */
|
|
36567
|
+
return /* @__PURE__ */ React224.createElement(
|
|
36386
36568
|
Dialog,
|
|
36387
36569
|
{
|
|
36388
36570
|
onClose,
|
|
@@ -36390,18 +36572,18 @@ function AccountModal({ onClose, open, defaultTab }) {
|
|
|
36390
36572
|
titleId: TITLE_ID,
|
|
36391
36573
|
isSmartCloseable: true
|
|
36392
36574
|
},
|
|
36393
|
-
/* @__PURE__ */
|
|
36575
|
+
/* @__PURE__ */ React224.createElement(ActivityTraversalProvider, null, /* @__PURE__ */ React224.createElement(ProfileDetails, { onClose, defaultTab }))
|
|
36394
36576
|
);
|
|
36395
36577
|
}
|
|
36396
36578
|
|
|
36397
36579
|
// src/modals/ChainModal/ChainModal.tsx
|
|
36398
36580
|
import { isMobile as isMobile12 } from "@funkit/utils";
|
|
36399
|
-
import
|
|
36581
|
+
import React229 from "react";
|
|
36400
36582
|
import { useAccount as useAccount8, useConfig as useConfig6 } from "wagmi";
|
|
36401
36583
|
|
|
36402
36584
|
// src/components/Icons/DisconnectSqIcon.tsx
|
|
36403
|
-
import
|
|
36404
|
-
var DisconnectSqIcon = ({ size }) => /* @__PURE__ */
|
|
36585
|
+
import React225 from "react";
|
|
36586
|
+
var DisconnectSqIcon = ({ size }) => /* @__PURE__ */ React225.createElement(
|
|
36405
36587
|
"svg",
|
|
36406
36588
|
{
|
|
36407
36589
|
fill: "none",
|
|
@@ -36410,7 +36592,7 @@ var DisconnectSqIcon = ({ size }) => /* @__PURE__ */ React224.createElement(
|
|
|
36410
36592
|
width: size,
|
|
36411
36593
|
xmlns: "http://www.w3.org/2000/svg"
|
|
36412
36594
|
},
|
|
36413
|
-
/* @__PURE__ */
|
|
36595
|
+
/* @__PURE__ */ React225.createElement(
|
|
36414
36596
|
"path",
|
|
36415
36597
|
{
|
|
36416
36598
|
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",
|
|
@@ -36421,13 +36603,13 @@ var DisconnectSqIcon = ({ size }) => /* @__PURE__ */ React224.createElement(
|
|
|
36421
36603
|
|
|
36422
36604
|
// src/components/MenuButton/MenuButton.tsx
|
|
36423
36605
|
import { isMobile as isMobile10 } from "@funkit/utils";
|
|
36424
|
-
import
|
|
36606
|
+
import React226 from "react";
|
|
36425
36607
|
|
|
36426
36608
|
// src/components/MenuButton/MenuButton.css.ts
|
|
36427
36609
|
var unsetBackgroundOnHover = "_10pw5x60";
|
|
36428
36610
|
|
|
36429
36611
|
// src/components/MenuButton/MenuButton.tsx
|
|
36430
|
-
var MenuButton =
|
|
36612
|
+
var MenuButton = React226.forwardRef(
|
|
36431
36613
|
({
|
|
36432
36614
|
children,
|
|
36433
36615
|
currentlySelected = false,
|
|
@@ -36436,7 +36618,7 @@ var MenuButton = React225.forwardRef(
|
|
|
36436
36618
|
...urlProps
|
|
36437
36619
|
}, ref) => {
|
|
36438
36620
|
const mobile = isMobile10();
|
|
36439
|
-
return /* @__PURE__ */
|
|
36621
|
+
return /* @__PURE__ */ React226.createElement(
|
|
36440
36622
|
Box,
|
|
36441
36623
|
{
|
|
36442
36624
|
as: "button",
|
|
@@ -36448,7 +36630,7 @@ var MenuButton = React225.forwardRef(
|
|
|
36448
36630
|
testId,
|
|
36449
36631
|
type: "button"
|
|
36450
36632
|
},
|
|
36451
|
-
/* @__PURE__ */
|
|
36633
|
+
/* @__PURE__ */ React226.createElement(
|
|
36452
36634
|
Box,
|
|
36453
36635
|
{
|
|
36454
36636
|
borderRadius: "menuButton",
|
|
@@ -36482,12 +36664,12 @@ MenuButton.displayName = "MenuButton";
|
|
|
36482
36664
|
|
|
36483
36665
|
// src/modals/ChainModal/Chain.tsx
|
|
36484
36666
|
import { isMobile as isMobile11 } from "@funkit/utils";
|
|
36485
|
-
import
|
|
36667
|
+
import React228, { Fragment } from "react";
|
|
36486
36668
|
|
|
36487
36669
|
// src/components/FunDot/FunDot.tsx
|
|
36488
|
-
import
|
|
36670
|
+
import React227 from "react";
|
|
36489
36671
|
function FunDot() {
|
|
36490
|
-
return /* @__PURE__ */
|
|
36672
|
+
return /* @__PURE__ */ React227.createElement(
|
|
36491
36673
|
Box,
|
|
36492
36674
|
{
|
|
36493
36675
|
background: "connectionIndicator",
|
|
@@ -36515,7 +36697,7 @@ function ChainLineItem({
|
|
|
36515
36697
|
if (!chainItem) {
|
|
36516
36698
|
return null;
|
|
36517
36699
|
}
|
|
36518
|
-
return /* @__PURE__ */
|
|
36700
|
+
return /* @__PURE__ */ React228.createElement(
|
|
36519
36701
|
Box,
|
|
36520
36702
|
{
|
|
36521
36703
|
alignItems: "center",
|
|
@@ -36524,7 +36706,7 @@ function ChainLineItem({
|
|
|
36524
36706
|
gap,
|
|
36525
36707
|
height: chainIconSize
|
|
36526
36708
|
},
|
|
36527
|
-
/* @__PURE__ */
|
|
36709
|
+
/* @__PURE__ */ React228.createElement(Box, { height: "full" }, /* @__PURE__ */ React228.createElement(
|
|
36528
36710
|
AsyncImage,
|
|
36529
36711
|
{
|
|
36530
36712
|
alt: chainItem.name,
|
|
@@ -36536,7 +36718,7 @@ function ChainLineItem({
|
|
|
36536
36718
|
testId: `chain-option-${chainId}-icon`
|
|
36537
36719
|
}
|
|
36538
36720
|
)),
|
|
36539
|
-
!hideChainName ? /* @__PURE__ */
|
|
36721
|
+
!hideChainName ? /* @__PURE__ */ React228.createElement("div", null, chainItem.name) : null
|
|
36540
36722
|
);
|
|
36541
36723
|
}
|
|
36542
36724
|
var Chain = ({
|
|
@@ -36551,14 +36733,14 @@ var Chain = ({
|
|
|
36551
36733
|
const mobile = isMobile11();
|
|
36552
36734
|
const funkitConnectChains = useFunkitConnectChains();
|
|
36553
36735
|
const isCurrentChain = currentChainId === chainId && !isLoading;
|
|
36554
|
-
return /* @__PURE__ */
|
|
36736
|
+
return /* @__PURE__ */ React228.createElement(Fragment, null, /* @__PURE__ */ React228.createElement(
|
|
36555
36737
|
MenuButton,
|
|
36556
36738
|
{
|
|
36557
36739
|
currentlySelected: isCurrentChain,
|
|
36558
36740
|
onClick: isCurrentChain ? void 0 : () => switchChain({ chainId }),
|
|
36559
36741
|
testId: `chain-option-${chainId}`
|
|
36560
36742
|
},
|
|
36561
|
-
/* @__PURE__ */
|
|
36743
|
+
/* @__PURE__ */ React228.createElement(Box, { fontFamily: "body", fontSize: "16", fontWeight: "bold" }, /* @__PURE__ */ React228.createElement(
|
|
36562
36744
|
Box,
|
|
36563
36745
|
{
|
|
36564
36746
|
alignItems: "center",
|
|
@@ -36566,8 +36748,8 @@ var Chain = ({
|
|
|
36566
36748
|
flexDirection: "row",
|
|
36567
36749
|
justifyContent: "space-between"
|
|
36568
36750
|
},
|
|
36569
|
-
/* @__PURE__ */
|
|
36570
|
-
isCurrentChain && /* @__PURE__ */
|
|
36751
|
+
/* @__PURE__ */ React228.createElement(ChainLineItem, { chainId, chainIconSize }),
|
|
36752
|
+
isCurrentChain && /* @__PURE__ */ React228.createElement(
|
|
36571
36753
|
Box,
|
|
36572
36754
|
{
|
|
36573
36755
|
alignItems: "center",
|
|
@@ -36575,10 +36757,10 @@ var Chain = ({
|
|
|
36575
36757
|
flexDirection: "row",
|
|
36576
36758
|
marginRight: "6"
|
|
36577
36759
|
},
|
|
36578
|
-
/* @__PURE__ */
|
|
36579
|
-
/* @__PURE__ */
|
|
36760
|
+
/* @__PURE__ */ React228.createElement(Text, { color: "accentColorForeground", size: "14", weight: "medium" }, t("common.connected")),
|
|
36761
|
+
/* @__PURE__ */ React228.createElement(FunDot, null)
|
|
36580
36762
|
),
|
|
36581
|
-
isLoading && /* @__PURE__ */
|
|
36763
|
+
isLoading && /* @__PURE__ */ React228.createElement(
|
|
36582
36764
|
Box,
|
|
36583
36765
|
{
|
|
36584
36766
|
alignItems: "center",
|
|
@@ -36586,8 +36768,8 @@ var Chain = ({
|
|
|
36586
36768
|
flexDirection: "row",
|
|
36587
36769
|
marginRight: "6"
|
|
36588
36770
|
},
|
|
36589
|
-
/* @__PURE__ */
|
|
36590
|
-
/* @__PURE__ */
|
|
36771
|
+
/* @__PURE__ */ React228.createElement(Text, { color: "primaryText", size: "14", weight: "medium" }, t("common.confirmInWallet")),
|
|
36772
|
+
/* @__PURE__ */ React228.createElement(
|
|
36591
36773
|
Box,
|
|
36592
36774
|
{
|
|
36593
36775
|
background: "standby",
|
|
@@ -36599,7 +36781,7 @@ var Chain = ({
|
|
|
36599
36781
|
)
|
|
36600
36782
|
)
|
|
36601
36783
|
))
|
|
36602
|
-
), mobile && idx < funkitConnectChains.length - 1 && /* @__PURE__ */
|
|
36784
|
+
), mobile && idx < funkitConnectChains.length - 1 && /* @__PURE__ */ React228.createElement(Box, { background: "generalBorderDim", height: "1", marginX: "8" }));
|
|
36603
36785
|
};
|
|
36604
36786
|
var Chain_default = Chain;
|
|
36605
36787
|
|
|
@@ -36624,7 +36806,7 @@ function ChainModal({ onClose, open }) {
|
|
|
36624
36806
|
if (!chainId) {
|
|
36625
36807
|
return null;
|
|
36626
36808
|
}
|
|
36627
|
-
return /* @__PURE__ */
|
|
36809
|
+
return /* @__PURE__ */ React229.createElement(
|
|
36628
36810
|
Dialog,
|
|
36629
36811
|
{
|
|
36630
36812
|
onClose,
|
|
@@ -36632,15 +36814,15 @@ function ChainModal({ onClose, open }) {
|
|
|
36632
36814
|
titleId,
|
|
36633
36815
|
isSmartCloseable: true
|
|
36634
36816
|
},
|
|
36635
|
-
/* @__PURE__ */
|
|
36817
|
+
/* @__PURE__ */ React229.createElement(Dialog.Content, { paddingTop: "18" }, /* @__PURE__ */ React229.createElement(Box, { display: "flex", flexDirection: "column", gap: "14" }, /* @__PURE__ */ React229.createElement(
|
|
36636
36818
|
Box,
|
|
36637
36819
|
{
|
|
36638
36820
|
display: "flex",
|
|
36639
36821
|
flexDirection: "row",
|
|
36640
36822
|
justifyContent: "space-between"
|
|
36641
36823
|
},
|
|
36642
|
-
mobile && /* @__PURE__ */
|
|
36643
|
-
/* @__PURE__ */
|
|
36824
|
+
mobile && /* @__PURE__ */ React229.createElement(Box, { width: "30" }),
|
|
36825
|
+
/* @__PURE__ */ React229.createElement(Box, { paddingBottom: "0", paddingLeft: "8", paddingTop: "4" }, /* @__PURE__ */ React229.createElement(
|
|
36644
36826
|
Text,
|
|
36645
36827
|
{
|
|
36646
36828
|
as: "h1",
|
|
@@ -36651,8 +36833,8 @@ function ChainModal({ onClose, open }) {
|
|
|
36651
36833
|
},
|
|
36652
36834
|
t("chainModal.switchNetworks")
|
|
36653
36835
|
)),
|
|
36654
|
-
/* @__PURE__ */
|
|
36655
|
-
), !isCurrentChainSupported && /* @__PURE__ */
|
|
36836
|
+
/* @__PURE__ */ React229.createElement(CloseButton, { onClose })
|
|
36837
|
+
), !isCurrentChainSupported && /* @__PURE__ */ React229.createElement(Box, { marginX: "8", textAlign: mobile ? "center" : "left" }, /* @__PURE__ */ React229.createElement(Text, { color: "tertiaryText", size: "14", weight: "medium" }, t("chainModal.wrongNetworkDetected"))), /* @__PURE__ */ React229.createElement(
|
|
36656
36838
|
Box,
|
|
36657
36839
|
{
|
|
36658
36840
|
className: mobile ? MobileScrollClassName : DesktopScrollClassName,
|
|
@@ -36663,7 +36845,7 @@ function ChainModal({ onClose, open }) {
|
|
|
36663
36845
|
paddingBottom: "16"
|
|
36664
36846
|
},
|
|
36665
36847
|
funkitConnectChains.map(({ id }, idx) => {
|
|
36666
|
-
return /* @__PURE__ */
|
|
36848
|
+
return /* @__PURE__ */ React229.createElement(
|
|
36667
36849
|
Chain_default,
|
|
36668
36850
|
{
|
|
36669
36851
|
key: id,
|
|
@@ -36676,13 +36858,13 @@ function ChainModal({ onClose, open }) {
|
|
|
36676
36858
|
}
|
|
36677
36859
|
);
|
|
36678
36860
|
}),
|
|
36679
|
-
!isCurrentChainSupported && /* @__PURE__ */
|
|
36861
|
+
!isCurrentChainSupported && /* @__PURE__ */ React229.createElement(React229.Fragment, null, /* @__PURE__ */ React229.createElement(Box, { background: "generalBorderDim", height: "1", marginX: "8" }), /* @__PURE__ */ React229.createElement(
|
|
36680
36862
|
MenuButton,
|
|
36681
36863
|
{
|
|
36682
36864
|
onClick: () => handleLogout(),
|
|
36683
36865
|
testId: "chain-option-disconnect"
|
|
36684
36866
|
},
|
|
36685
|
-
/* @__PURE__ */
|
|
36867
|
+
/* @__PURE__ */ React229.createElement(
|
|
36686
36868
|
Box,
|
|
36687
36869
|
{
|
|
36688
36870
|
color: "error",
|
|
@@ -36690,7 +36872,7 @@ function ChainModal({ onClose, open }) {
|
|
|
36690
36872
|
fontSize: "16",
|
|
36691
36873
|
fontWeight: "bold"
|
|
36692
36874
|
},
|
|
36693
|
-
/* @__PURE__ */
|
|
36875
|
+
/* @__PURE__ */ React229.createElement(
|
|
36694
36876
|
Box,
|
|
36695
36877
|
{
|
|
36696
36878
|
alignItems: "center",
|
|
@@ -36698,7 +36880,7 @@ function ChainModal({ onClose, open }) {
|
|
|
36698
36880
|
flexDirection: "row",
|
|
36699
36881
|
justifyContent: "space-between"
|
|
36700
36882
|
},
|
|
36701
|
-
/* @__PURE__ */
|
|
36883
|
+
/* @__PURE__ */ React229.createElement(
|
|
36702
36884
|
Box,
|
|
36703
36885
|
{
|
|
36704
36886
|
alignItems: "center",
|
|
@@ -36707,7 +36889,7 @@ function ChainModal({ onClose, open }) {
|
|
|
36707
36889
|
gap: "4",
|
|
36708
36890
|
height: chainIconSize
|
|
36709
36891
|
},
|
|
36710
|
-
/* @__PURE__ */
|
|
36892
|
+
/* @__PURE__ */ React229.createElement(
|
|
36711
36893
|
Box,
|
|
36712
36894
|
{
|
|
36713
36895
|
alignItems: "center",
|
|
@@ -36716,9 +36898,9 @@ function ChainModal({ onClose, open }) {
|
|
|
36716
36898
|
justifyContent: "center",
|
|
36717
36899
|
marginRight: "8"
|
|
36718
36900
|
},
|
|
36719
|
-
/* @__PURE__ */
|
|
36901
|
+
/* @__PURE__ */ React229.createElement(DisconnectSqIcon, { size: Number(chainIconSize) })
|
|
36720
36902
|
),
|
|
36721
|
-
/* @__PURE__ */
|
|
36903
|
+
/* @__PURE__ */ React229.createElement("div", null, t("chainModal.disconnect"))
|
|
36722
36904
|
)
|
|
36723
36905
|
)
|
|
36724
36906
|
)
|
|
@@ -36730,13 +36912,13 @@ function ChainModal({ onClose, open }) {
|
|
|
36730
36912
|
// src/modals/CheckoutModal/FunCheckoutModal.tsx
|
|
36731
36913
|
import { FUNKIT_CONNECT_SUPPORTED_CHECKOUT_CHAINS_INFO_LIST as FUNKIT_CONNECT_SUPPORTED_CHECKOUT_CHAINS_INFO_LIST3 } from "@funkit/chains";
|
|
36732
36914
|
import { LogLevel, initializeRelayClient } from "@funkit/fun-relay";
|
|
36733
|
-
import
|
|
36915
|
+
import React237, { useRef as useRef30 } from "react";
|
|
36734
36916
|
|
|
36735
36917
|
// src/components/FunConnectOptions/FunConnectOptions.tsx
|
|
36736
|
-
import
|
|
36918
|
+
import React235, { useCallback as useCallback48, useMemo as useMemo49, useState as useState73 } from "react";
|
|
36737
36919
|
|
|
36738
36920
|
// src/components/FunConnectOptions/FunConnectResultStep.tsx
|
|
36739
|
-
import
|
|
36921
|
+
import React230, { useEffect as useEffect56 } from "react";
|
|
36740
36922
|
var AUTO_CLOSE = 2e3;
|
|
36741
36923
|
var messageMap = (hasQrCode) => ({
|
|
36742
36924
|
error: {
|
|
@@ -36764,7 +36946,7 @@ var FunConnectResultStep = ({
|
|
|
36764
36946
|
}, [onClose, hasAutoclose]);
|
|
36765
36947
|
const hasQrCode = wallet?.qrCode && qrCodeUri;
|
|
36766
36948
|
const message = messageMap(!!hasQrCode)[type];
|
|
36767
|
-
return /* @__PURE__ */
|
|
36949
|
+
return /* @__PURE__ */ React230.createElement(Box, { display: "flex", flexDirection: "column", gap: "24" }, /* @__PURE__ */ React230.createElement(Box, { display: "flex", flexDirection: "column", alignItems: "center", gap: "12" }, hasQrCode && type === "error" ? /* @__PURE__ */ React230.createElement(
|
|
36768
36950
|
Box,
|
|
36769
36951
|
{
|
|
36770
36952
|
alignItems: "center",
|
|
@@ -36773,7 +36955,7 @@ var FunConnectResultStep = ({
|
|
|
36773
36955
|
justifyContent: "center",
|
|
36774
36956
|
flexDirection: "column"
|
|
36775
36957
|
},
|
|
36776
|
-
/* @__PURE__ */
|
|
36958
|
+
/* @__PURE__ */ React230.createElement(
|
|
36777
36959
|
QRCode,
|
|
36778
36960
|
{
|
|
36779
36961
|
logoBackground: wallet.iconBackground,
|
|
@@ -36783,7 +36965,7 @@ var FunConnectResultStep = ({
|
|
|
36783
36965
|
uri: qrCodeUri
|
|
36784
36966
|
}
|
|
36785
36967
|
)
|
|
36786
|
-
) : /* @__PURE__ */
|
|
36968
|
+
) : /* @__PURE__ */ React230.createElement(
|
|
36787
36969
|
Box,
|
|
36788
36970
|
{
|
|
36789
36971
|
padding: "30",
|
|
@@ -36792,7 +36974,7 @@ var FunConnectResultStep = ({
|
|
|
36792
36974
|
borderStyle: "solid",
|
|
36793
36975
|
borderColor: type === "success" ? "buttonSuccess" : "buttonWarning"
|
|
36794
36976
|
},
|
|
36795
|
-
wallet && /* @__PURE__ */
|
|
36977
|
+
wallet && /* @__PURE__ */ React230.createElement(Box, { style: { width: 40, height: 40 } }, /* @__PURE__ */ React230.createElement(
|
|
36796
36978
|
AsyncImage,
|
|
36797
36979
|
{
|
|
36798
36980
|
background: wallet.iconBackground,
|
|
@@ -36802,12 +36984,12 @@ var FunConnectResultStep = ({
|
|
|
36802
36984
|
height: 40
|
|
36803
36985
|
}
|
|
36804
36986
|
))
|
|
36805
|
-
), /* @__PURE__ */
|
|
36987
|
+
), /* @__PURE__ */ React230.createElement(FunMessage, { title: message.title, description: message.description })));
|
|
36806
36988
|
};
|
|
36807
36989
|
|
|
36808
36990
|
// src/components/FunConnectOptions/FunSignInStep.tsx
|
|
36809
36991
|
import { isMobile as isMobile13, isSafari as isSafari2, redirectInMobile } from "@funkit/utils";
|
|
36810
|
-
import
|
|
36992
|
+
import React232, { useState as useState72 } from "react";
|
|
36811
36993
|
|
|
36812
36994
|
// src/wallets/latestWalletId.ts
|
|
36813
36995
|
var storageKey6 = "fkc-latest-id";
|
|
@@ -36816,7 +36998,7 @@ function addLatestWalletId(walletId) {
|
|
|
36816
36998
|
}
|
|
36817
36999
|
|
|
36818
37000
|
// src/components/ModalSelection/ModalSelection.tsx
|
|
36819
|
-
import
|
|
37001
|
+
import React231, { useState as useState71 } from "react";
|
|
36820
37002
|
var ModalSelection = ({
|
|
36821
37003
|
as = "button",
|
|
36822
37004
|
currentlySelected = false,
|
|
@@ -36833,7 +37015,7 @@ var ModalSelection = ({
|
|
|
36833
37015
|
}) => {
|
|
36834
37016
|
const [isMouseOver, setIsMouseOver] = useState71(false);
|
|
36835
37017
|
const { t } = useFunkitTranslation();
|
|
36836
|
-
return /* @__PURE__ */
|
|
37018
|
+
return /* @__PURE__ */ React231.createElement(
|
|
36837
37019
|
Box,
|
|
36838
37020
|
{
|
|
36839
37021
|
display: "flex",
|
|
@@ -36841,7 +37023,7 @@ var ModalSelection = ({
|
|
|
36841
37023
|
onMouseEnter: () => setIsMouseOver(true),
|
|
36842
37024
|
onMouseLeave: () => setIsMouseOver(false)
|
|
36843
37025
|
},
|
|
36844
|
-
/* @__PURE__ */
|
|
37026
|
+
/* @__PURE__ */ React231.createElement(
|
|
36845
37027
|
Box,
|
|
36846
37028
|
{
|
|
36847
37029
|
as,
|
|
@@ -36865,7 +37047,7 @@ var ModalSelection = ({
|
|
|
36865
37047
|
width: "full",
|
|
36866
37048
|
...urlProps
|
|
36867
37049
|
},
|
|
36868
|
-
/* @__PURE__ */
|
|
37050
|
+
/* @__PURE__ */ React231.createElement(
|
|
36869
37051
|
Box,
|
|
36870
37052
|
{
|
|
36871
37053
|
color: currentlySelected ? "accentColorForeground" : "primaryText",
|
|
@@ -36875,7 +37057,7 @@ var ModalSelection = ({
|
|
|
36875
37057
|
fontWeight: "medium",
|
|
36876
37058
|
transition: "default"
|
|
36877
37059
|
},
|
|
36878
|
-
/* @__PURE__ */
|
|
37060
|
+
/* @__PURE__ */ React231.createElement(Box, { alignItems: "center", display: "flex", flexDirection: "row", gap: "12" }, icon ? icon : /* @__PURE__ */ React231.createElement(
|
|
36879
37061
|
AsyncImage,
|
|
36880
37062
|
{
|
|
36881
37063
|
background: iconBackground,
|
|
@@ -36886,7 +37068,7 @@ var ModalSelection = ({
|
|
|
36886
37068
|
src: iconUrl,
|
|
36887
37069
|
width: "18"
|
|
36888
37070
|
}
|
|
36889
|
-
), /* @__PURE__ */
|
|
37071
|
+
), /* @__PURE__ */ React231.createElement(
|
|
36890
37072
|
Box,
|
|
36891
37073
|
{
|
|
36892
37074
|
display: "flex",
|
|
@@ -36894,8 +37076,8 @@ var ModalSelection = ({
|
|
|
36894
37076
|
style: { flex: 1 },
|
|
36895
37077
|
alignItems: "center"
|
|
36896
37078
|
},
|
|
36897
|
-
/* @__PURE__ */
|
|
36898
|
-
recent && /* @__PURE__ */
|
|
37079
|
+
/* @__PURE__ */ React231.createElement(Box, { maxWidth: "200" }, name),
|
|
37080
|
+
recent && /* @__PURE__ */ React231.createElement(
|
|
36899
37081
|
FunBadge,
|
|
36900
37082
|
{
|
|
36901
37083
|
borderRadius: "smallBadge",
|
|
@@ -36984,8 +37166,8 @@ function FunSignInStep({
|
|
|
36984
37166
|
}
|
|
36985
37167
|
};
|
|
36986
37168
|
const makeWeb3LoginSection = () => {
|
|
36987
|
-
return /* @__PURE__ */
|
|
36988
|
-
return /* @__PURE__ */
|
|
37169
|
+
return /* @__PURE__ */ React232.createElement(Box, { display: "flex", flexDirection: "column", gap: "10" }, wallets.map((wallet) => {
|
|
37170
|
+
return /* @__PURE__ */ React232.createElement(
|
|
36989
37171
|
ModalSelection,
|
|
36990
37172
|
{
|
|
36991
37173
|
currentlySelected: wallet.id === selectedOptionId,
|
|
@@ -37002,14 +37184,14 @@ function FunSignInStep({
|
|
|
37002
37184
|
}));
|
|
37003
37185
|
};
|
|
37004
37186
|
const Web3LoginSection = makeWeb3LoginSection();
|
|
37005
|
-
return /* @__PURE__ */
|
|
37187
|
+
return /* @__PURE__ */ React232.createElement(Box, { display: "flex", flexDirection: "column", gap: "24" }, Web3LoginSection);
|
|
37006
37188
|
}
|
|
37007
37189
|
|
|
37008
37190
|
// src/components/FunConnectOptions/FunWeb3ConnectingStep.tsx
|
|
37009
|
-
import
|
|
37191
|
+
import React234 from "react";
|
|
37010
37192
|
|
|
37011
37193
|
// src/components/GradientLoader/GradientLoader.tsx
|
|
37012
|
-
import
|
|
37194
|
+
import React233 from "react";
|
|
37013
37195
|
|
|
37014
37196
|
// src/components/GradientLoader/GradientLoader.css.ts
|
|
37015
37197
|
var loader = "m17uwo1";
|
|
@@ -37019,7 +37201,7 @@ var GradientLoader = ({
|
|
|
37019
37201
|
height = "100",
|
|
37020
37202
|
width = "100"
|
|
37021
37203
|
}) => {
|
|
37022
|
-
return /* @__PURE__ */
|
|
37204
|
+
return /* @__PURE__ */ React233.createElement(
|
|
37023
37205
|
Box,
|
|
37024
37206
|
{
|
|
37025
37207
|
className: loader,
|
|
@@ -37040,7 +37222,7 @@ var FunWeb3ConnectingStep = ({ selectedWallet, qrCodeUri }) => {
|
|
|
37040
37222
|
}
|
|
37041
37223
|
const { iconBackground, iconUrl, name, qrCode, ready } = selectedWallet;
|
|
37042
37224
|
const hasQrCode = qrCode && qrCodeUri;
|
|
37043
|
-
const waitingMessage = /* @__PURE__ */
|
|
37225
|
+
const waitingMessage = /* @__PURE__ */ React234.createElement(
|
|
37044
37226
|
FunMessage,
|
|
37045
37227
|
{
|
|
37046
37228
|
title: `Waiting for ${hasQrCode ? "connection" : name}`,
|
|
@@ -37048,7 +37230,7 @@ var FunWeb3ConnectingStep = ({ selectedWallet, qrCodeUri }) => {
|
|
|
37048
37230
|
id: "link-text"
|
|
37049
37231
|
}
|
|
37050
37232
|
);
|
|
37051
|
-
return /* @__PURE__ */
|
|
37233
|
+
return /* @__PURE__ */ React234.createElement(Box, { display: "flex", flexDirection: "column", gap: "24" }, hasQrCode ? /* @__PURE__ */ React234.createElement(
|
|
37052
37234
|
Box,
|
|
37053
37235
|
{
|
|
37054
37236
|
alignItems: "center",
|
|
@@ -37058,7 +37240,7 @@ var FunWeb3ConnectingStep = ({ selectedWallet, qrCodeUri }) => {
|
|
|
37058
37240
|
gap: "12",
|
|
37059
37241
|
flexDirection: "column"
|
|
37060
37242
|
},
|
|
37061
|
-
/* @__PURE__ */
|
|
37243
|
+
/* @__PURE__ */ React234.createElement(
|
|
37062
37244
|
QRCode,
|
|
37063
37245
|
{
|
|
37064
37246
|
logoBackground: iconBackground,
|
|
@@ -37069,7 +37251,7 @@ var FunWeb3ConnectingStep = ({ selectedWallet, qrCodeUri }) => {
|
|
|
37069
37251
|
}
|
|
37070
37252
|
),
|
|
37071
37253
|
waitingMessage
|
|
37072
|
-
) : /* @__PURE__ */
|
|
37254
|
+
) : /* @__PURE__ */ React234.createElement(
|
|
37073
37255
|
Box,
|
|
37074
37256
|
{
|
|
37075
37257
|
alignItems: "center",
|
|
@@ -37078,7 +37260,7 @@ var FunWeb3ConnectingStep = ({ selectedWallet, qrCodeUri }) => {
|
|
|
37078
37260
|
flexDirection: "column",
|
|
37079
37261
|
gap: "12"
|
|
37080
37262
|
},
|
|
37081
|
-
ready && /* @__PURE__ */
|
|
37263
|
+
ready && /* @__PURE__ */ React234.createElement(React234.Fragment, null, /* @__PURE__ */ React234.createElement(Box, { id: "link-graphics", padding: "30", position: "relative" }, /* @__PURE__ */ React234.createElement(Box, { position: "absolute", style: { top: 0, left: 0 } }, /* @__PURE__ */ React234.createElement(GradientLoader, null)), /* @__PURE__ */ React234.createElement(Box, { style: { width: 40, height: 40 } }, /* @__PURE__ */ React234.createElement(
|
|
37082
37264
|
AsyncImage,
|
|
37083
37265
|
{
|
|
37084
37266
|
background: iconBackground,
|
|
@@ -37178,7 +37360,7 @@ function FunConnectOptions({
|
|
|
37178
37360
|
const stepComponent = useMemo49(() => {
|
|
37179
37361
|
switch (step) {
|
|
37180
37362
|
case 0 /* SIGNIN_PRIMARY */:
|
|
37181
|
-
return /* @__PURE__ */
|
|
37363
|
+
return /* @__PURE__ */ React235.createElement(
|
|
37182
37364
|
FunSignInStep,
|
|
37183
37365
|
{
|
|
37184
37366
|
signInStep: step,
|
|
@@ -37190,7 +37372,7 @@ function FunConnectOptions({
|
|
|
37190
37372
|
}
|
|
37191
37373
|
);
|
|
37192
37374
|
case 1 /* PENDING_WALLET */:
|
|
37193
|
-
return /* @__PURE__ */
|
|
37375
|
+
return /* @__PURE__ */ React235.createElement(
|
|
37194
37376
|
FunWeb3ConnectingStep,
|
|
37195
37377
|
{
|
|
37196
37378
|
selectedWallet,
|
|
@@ -37198,7 +37380,7 @@ function FunConnectOptions({
|
|
|
37198
37380
|
}
|
|
37199
37381
|
);
|
|
37200
37382
|
case 2 /* ERROR_WEB3 */:
|
|
37201
|
-
return /* @__PURE__ */
|
|
37383
|
+
return /* @__PURE__ */ React235.createElement(
|
|
37202
37384
|
FunConnectResultStep,
|
|
37203
37385
|
{
|
|
37204
37386
|
onClose,
|
|
@@ -37209,7 +37391,7 @@ function FunConnectOptions({
|
|
|
37209
37391
|
);
|
|
37210
37392
|
}
|
|
37211
37393
|
}, [connectToWallet, navigateTo, onClose, qrCodeUri, selectedWallet, step]);
|
|
37212
|
-
return /* @__PURE__ */
|
|
37394
|
+
return /* @__PURE__ */ React235.createElement(React235.Fragment, null, /* @__PURE__ */ React235.createElement(Dialog.Title, { onClose, ...navigationConfig[step] }), /* @__PURE__ */ React235.createElement(
|
|
37213
37395
|
Dialog.Content,
|
|
37214
37396
|
{
|
|
37215
37397
|
display: "flex",
|
|
@@ -37221,11 +37403,11 @@ function FunConnectOptions({
|
|
|
37221
37403
|
withBottomDivider: actionConfig[step] ? "always" : "never"
|
|
37222
37404
|
},
|
|
37223
37405
|
stepComponent
|
|
37224
|
-
), /* @__PURE__ */
|
|
37406
|
+
), /* @__PURE__ */ React235.createElement(Dialog.BottomSection, { id: MODAL_BOTTOM_BAR_IDS.connectwallet }, actionConfig[step] && /* @__PURE__ */ React235.createElement(Dialog.BottomBar, { ...actionConfig[step] })));
|
|
37225
37407
|
}
|
|
37226
37408
|
|
|
37227
37409
|
// src/components/FunCheckoutBlocked/FunCheckoutBlocked.tsx
|
|
37228
|
-
import
|
|
37410
|
+
import React236 from "react";
|
|
37229
37411
|
import { Trans as Trans13 } from "react-i18next";
|
|
37230
37412
|
|
|
37231
37413
|
// src/components/FunCheckoutBlocked/FunCheckoutBlocked.css.ts
|
|
@@ -37236,13 +37418,13 @@ var FunCheckoutBlocked = ({ reason }) => {
|
|
|
37236
37418
|
const { t } = useFunkitTranslation();
|
|
37237
37419
|
const blockedReasonToDescription = {
|
|
37238
37420
|
geoblock: t("funCheckoutBlocked.geoblock", { orgName: FUN_ORG_NAME }),
|
|
37239
|
-
security: /* @__PURE__ */
|
|
37421
|
+
security: /* @__PURE__ */ React236.createElement(
|
|
37240
37422
|
Trans13,
|
|
37241
37423
|
{
|
|
37242
37424
|
t,
|
|
37243
37425
|
i18nKey: "funCheckoutBlocked.security",
|
|
37244
37426
|
components: {
|
|
37245
|
-
ContactSupportLink: /* @__PURE__ */
|
|
37427
|
+
ContactSupportLink: /* @__PURE__ */ React236.createElement(ContactSupportLink, { size: "10" })
|
|
37246
37428
|
},
|
|
37247
37429
|
values: {
|
|
37248
37430
|
orgName: FUN_ORG_NAME
|
|
@@ -37252,10 +37434,10 @@ var FunCheckoutBlocked = ({ reason }) => {
|
|
|
37252
37434
|
unloggedin: t("funCheckoutBlocked.unloggedin", { orgName: FUN_ORG_NAME })
|
|
37253
37435
|
};
|
|
37254
37436
|
const description = blockedReasonToDescription[reason];
|
|
37255
|
-
return /* @__PURE__ */
|
|
37437
|
+
return /* @__PURE__ */ React236.createElement(Box, { className: funCheckoutBlockedStyle }, /* @__PURE__ */ React236.createElement(
|
|
37256
37438
|
FunAlert,
|
|
37257
37439
|
{
|
|
37258
|
-
icon: /* @__PURE__ */
|
|
37440
|
+
icon: /* @__PURE__ */ React236.createElement(FunInfoIcon, null),
|
|
37259
37441
|
description,
|
|
37260
37442
|
verticalAlignment: "top"
|
|
37261
37443
|
}
|
|
@@ -37286,9 +37468,14 @@ var ALWAYS_SHOW_BOTTOM_DIVIDER_STEPS = [
|
|
|
37286
37468
|
"direct_execution_notif_center" /* DIRECT_EXECUTION_NOTIF_CENTER */,
|
|
37287
37469
|
"brokerage_two_fa" /* BROKERAGE_TWO_FA */
|
|
37288
37470
|
];
|
|
37471
|
+
function useCheckoutModalQueryPreload() {
|
|
37472
|
+
const { isUserLoggedIn } = useGeneralWallet();
|
|
37473
|
+
useAllowedAssets({ enabled: isUserLoggedIn });
|
|
37474
|
+
}
|
|
37289
37475
|
function FunCheckoutModalStepComponent(props) {
|
|
37476
|
+
useCheckoutModalQueryPreload();
|
|
37290
37477
|
const { Component: Component2 } = CheckoutModalSteps[props.modalState.step];
|
|
37291
|
-
return /* @__PURE__ */
|
|
37478
|
+
return /* @__PURE__ */ React237.createElement(Component2, { ...props });
|
|
37292
37479
|
}
|
|
37293
37480
|
function FunCheckoutModalInner({
|
|
37294
37481
|
checkoutItem,
|
|
@@ -37358,7 +37545,7 @@ function FunCheckoutModalInner({
|
|
|
37358
37545
|
isActiveCheckout: true,
|
|
37359
37546
|
isCheckoutDetailView: modalState.step === "checkout_complete" /* CHECKOUT_COMPLETE */,
|
|
37360
37547
|
paddingTop: 0,
|
|
37361
|
-
topbar: /* @__PURE__ */
|
|
37548
|
+
topbar: /* @__PURE__ */ React237.createElement(
|
|
37362
37549
|
Dialog.Title,
|
|
37363
37550
|
{
|
|
37364
37551
|
hasBackButton: hasBack && !isBlocked,
|
|
@@ -37373,7 +37560,7 @@ function FunCheckoutModalInner({
|
|
|
37373
37560
|
scrollableContent: CHECKOUT_DIALOG_CONTENT_ID
|
|
37374
37561
|
});
|
|
37375
37562
|
const showBottomDivider = NEVER_SHOW_BOTTOM_DIVIDER_STEPS.includes(modalState.step) || modalState.hideBottomDivider ? "never" : ALWAYS_SHOW_BOTTOM_DIVIDER_STEPS.includes(modalState.step) ? "always" : "scroll";
|
|
37376
|
-
return /* @__PURE__ */
|
|
37563
|
+
return /* @__PURE__ */ React237.createElement(
|
|
37377
37564
|
Dialog,
|
|
37378
37565
|
{
|
|
37379
37566
|
open,
|
|
@@ -37384,7 +37571,7 @@ function FunCheckoutModalInner({
|
|
|
37384
37571
|
withoutBottomPadding: modalState.step === "meld_currency_select" /* MELD_CURRENCY_SELECT */,
|
|
37385
37572
|
testId: "checkout-modal"
|
|
37386
37573
|
},
|
|
37387
|
-
/* @__PURE__ */
|
|
37574
|
+
/* @__PURE__ */ React237.createElement(TooltipAnchorRefContext.Provider, { value: tooltipAnchorRef }, /* @__PURE__ */ React237.createElement(FunCheckoutModalHeightAnimationWrapper, { checkoutStep: modalState.step }, modalState.showWalletOptions && /* @__PURE__ */ React237.createElement(
|
|
37388
37575
|
FunConnectOptions,
|
|
37389
37576
|
{
|
|
37390
37577
|
initialScreenOnBack: () => setModalState((state) => ({
|
|
@@ -37400,7 +37587,7 @@ function FunCheckoutModalInner({
|
|
|
37400
37587
|
},
|
|
37401
37588
|
walletsOnly: true
|
|
37402
37589
|
}
|
|
37403
|
-
), !modalState.showWalletOptions && topbar, /* @__PURE__ */
|
|
37590
|
+
), !modalState.showWalletOptions && topbar, /* @__PURE__ */ React237.createElement(
|
|
37404
37591
|
Dialog.Content,
|
|
37405
37592
|
{
|
|
37406
37593
|
fullHeight: showFullHeight,
|
|
@@ -37411,20 +37598,20 @@ function FunCheckoutModalInner({
|
|
|
37411
37598
|
withBottomDivider: showBottomDivider,
|
|
37412
37599
|
id: CHECKOUT_DIALOG_CONTENT_ID
|
|
37413
37600
|
},
|
|
37414
|
-
isBlocked ? /* @__PURE__ */
|
|
37601
|
+
isBlocked ? /* @__PURE__ */ React237.createElement(
|
|
37415
37602
|
FunCheckoutBlocked,
|
|
37416
37603
|
{
|
|
37417
37604
|
reason: !isUserLoggedIn ? "unloggedin" : isUserGeoblocked ? "geoblock" : "security"
|
|
37418
37605
|
}
|
|
37419
|
-
) : /* @__PURE__ */
|
|
37420
|
-
/* @__PURE__ */
|
|
37421
|
-
), /* @__PURE__ */
|
|
37606
|
+
) : /* @__PURE__ */ React237.createElement(FunCheckoutModalStepComponent, { ...modalProps }),
|
|
37607
|
+
/* @__PURE__ */ React237.createElement("div", { ref: tooltipAnchorRef })
|
|
37608
|
+
), /* @__PURE__ */ React237.createElement(
|
|
37422
37609
|
Dialog.BottomSection,
|
|
37423
37610
|
{
|
|
37424
37611
|
id: MODAL_BOTTOM_BAR_IDS.checkout,
|
|
37425
37612
|
display: modalState.showWalletOptions ? "none" : "block"
|
|
37426
37613
|
}
|
|
37427
|
-
), !isBlocked && /* @__PURE__ */
|
|
37614
|
+
), !isBlocked && /* @__PURE__ */ React237.createElement(
|
|
37428
37615
|
CheckoutNotifications,
|
|
37429
37616
|
{
|
|
37430
37617
|
onHelp: handleCheckoutHelp,
|
|
@@ -37443,7 +37630,7 @@ function FunCheckoutModal({
|
|
|
37443
37630
|
if (!checkoutItem) {
|
|
37444
37631
|
return null;
|
|
37445
37632
|
}
|
|
37446
|
-
return /* @__PURE__ */
|
|
37633
|
+
return /* @__PURE__ */ React237.createElement(
|
|
37447
37634
|
FunCheckoutModalInner,
|
|
37448
37635
|
{
|
|
37449
37636
|
checkoutItem,
|
|
@@ -37463,21 +37650,21 @@ var hideModalTitleMetaIfTrue = (checkoutConfig, hideModalMeta) => {
|
|
|
37463
37650
|
};
|
|
37464
37651
|
|
|
37465
37652
|
// src/modals/ConnectModal/ConnectModal.tsx
|
|
37466
|
-
import
|
|
37653
|
+
import React238 from "react";
|
|
37467
37654
|
import { useAccount as useAccount9 } from "wagmi";
|
|
37468
37655
|
var TITLE_ID2 = "rk-connect-modal-title";
|
|
37469
37656
|
function ConnectModal({ onClose, open }) {
|
|
37470
37657
|
const connectionStatus = useConnectionStatus();
|
|
37471
37658
|
const { disconnect } = useFunkitDisconnect();
|
|
37472
37659
|
const { isConnecting } = useAccount9();
|
|
37473
|
-
const onConnectModalCancel =
|
|
37660
|
+
const onConnectModalCancel = React238.useCallback(() => {
|
|
37474
37661
|
if (isConnecting) {
|
|
37475
37662
|
disconnect();
|
|
37476
37663
|
}
|
|
37477
37664
|
onClose();
|
|
37478
37665
|
}, [onClose, disconnect, isConnecting]);
|
|
37479
37666
|
if (connectionStatus === "disconnected" || connectionStatus === "loading") {
|
|
37480
|
-
return /* @__PURE__ */
|
|
37667
|
+
return /* @__PURE__ */ React238.createElement(
|
|
37481
37668
|
Dialog,
|
|
37482
37669
|
{
|
|
37483
37670
|
onClose: onConnectModalCancel,
|
|
@@ -37485,7 +37672,7 @@ function ConnectModal({ onClose, open }) {
|
|
|
37485
37672
|
titleId: TITLE_ID2,
|
|
37486
37673
|
isSmartCloseable: true
|
|
37487
37674
|
},
|
|
37488
|
-
/* @__PURE__ */
|
|
37675
|
+
/* @__PURE__ */ React238.createElement(FunCheckoutModalHeightAnimationWrapper, null, /* @__PURE__ */ React238.createElement(FunConnectOptions, { onClose: onConnectModalCancel }))
|
|
37489
37676
|
);
|
|
37490
37677
|
}
|
|
37491
37678
|
return null;
|
|
@@ -37602,7 +37789,7 @@ function ModalProvider({ children }) {
|
|
|
37602
37789
|
closeModals();
|
|
37603
37790
|
}
|
|
37604
37791
|
}, [isUnauthenticated]);
|
|
37605
|
-
return /* @__PURE__ */
|
|
37792
|
+
return /* @__PURE__ */ React239.createElement(
|
|
37606
37793
|
ModalContext.Provider,
|
|
37607
37794
|
{
|
|
37608
37795
|
value: useMemo50(
|
|
@@ -37648,8 +37835,8 @@ function ModalProvider({ children }) {
|
|
|
37648
37835
|
)
|
|
37649
37836
|
},
|
|
37650
37837
|
children,
|
|
37651
|
-
/* @__PURE__ */
|
|
37652
|
-
/* @__PURE__ */
|
|
37838
|
+
/* @__PURE__ */ React239.createElement(ConnectModal, { onClose: closeConnectModal, open: connectModalOpen }),
|
|
37839
|
+
/* @__PURE__ */ React239.createElement(
|
|
37653
37840
|
AccountModal,
|
|
37654
37841
|
{
|
|
37655
37842
|
onClose: closeAccountModal,
|
|
@@ -37657,8 +37844,8 @@ function ModalProvider({ children }) {
|
|
|
37657
37844
|
defaultTab: accountModalTab
|
|
37658
37845
|
}
|
|
37659
37846
|
),
|
|
37660
|
-
/* @__PURE__ */
|
|
37661
|
-
/* @__PURE__ */
|
|
37847
|
+
/* @__PURE__ */ React239.createElement(ChainModal, { onClose: closeChainModal, open: chainModalOpen }),
|
|
37848
|
+
/* @__PURE__ */ React239.createElement(
|
|
37662
37849
|
FunCheckoutModal,
|
|
37663
37850
|
{
|
|
37664
37851
|
onClose: closeFunCheckoutModal,
|
|
@@ -37667,7 +37854,7 @@ function ModalProvider({ children }) {
|
|
|
37667
37854
|
key: softHiddenCheckoutId ?? funCheckoutModalId
|
|
37668
37855
|
}
|
|
37669
37856
|
),
|
|
37670
|
-
withdrawalModalConfig && /* @__PURE__ */
|
|
37857
|
+
withdrawalModalConfig && /* @__PURE__ */ React239.createElement(
|
|
37671
37858
|
WithdrawalModal,
|
|
37672
37859
|
{
|
|
37673
37860
|
onClose: closeWithdrawalModal,
|
|
@@ -38321,7 +38508,7 @@ function FunkitCheckoutProvider({ children }) {
|
|
|
38321
38508
|
applyDynamicRouting,
|
|
38322
38509
|
updateDynamicRoutingId
|
|
38323
38510
|
};
|
|
38324
|
-
return /* @__PURE__ */
|
|
38511
|
+
return /* @__PURE__ */ React240.createElement(FunkitCheckoutContext.Provider, { value: contextValue }, children);
|
|
38325
38512
|
}
|
|
38326
38513
|
function useCheckoutContext() {
|
|
38327
38514
|
return useContext19(FunkitCheckoutContext);
|
|
@@ -38847,10 +39034,10 @@ var isAssetUsableToPayForCheckout = ({
|
|
|
38847
39034
|
config,
|
|
38848
39035
|
walletAddress: payerAddress
|
|
38849
39036
|
});
|
|
38850
|
-
const minTargetAssetUSD = config
|
|
39037
|
+
const minTargetAssetUSD = config?.getMinDepositUSD?.({
|
|
38851
39038
|
tokenAddress: config.targetAsset,
|
|
38852
39039
|
tokenChainId: config.targetChain
|
|
38853
|
-
})
|
|
39040
|
+
}) ?? 0;
|
|
38854
39041
|
const minValueThreshold = Math.max(
|
|
38855
39042
|
minTargetAssetUSD ?? 0,
|
|
38856
39043
|
MIN_CHECKOUT_AMOUNT_USD,
|
|
@@ -39097,7 +39284,7 @@ function ConnectButtonRenderer({
|
|
|
39097
39284
|
const { openChainModal } = useChainModal();
|
|
39098
39285
|
const { openAccountModal } = useAccountModal();
|
|
39099
39286
|
const { accountModalOpen, chainModalOpen, connectModalOpen } = useModalState();
|
|
39100
|
-
return /* @__PURE__ */
|
|
39287
|
+
return /* @__PURE__ */ React241.createElement(React241.Fragment, null, children({
|
|
39101
39288
|
account: address ? {
|
|
39102
39289
|
address,
|
|
39103
39290
|
balanceDecimals: balanceData?.decimals,
|
|
@@ -39154,7 +39341,7 @@ function ChainSelectorButton({
|
|
|
39154
39341
|
chain
|
|
39155
39342
|
}) {
|
|
39156
39343
|
const { t } = useFunkitTranslation();
|
|
39157
|
-
return /* @__PURE__ */
|
|
39344
|
+
return /* @__PURE__ */ React242.createElement(
|
|
39158
39345
|
Box,
|
|
39159
39346
|
{
|
|
39160
39347
|
alignItems: "center",
|
|
@@ -39182,7 +39369,7 @@ function ChainSelectorButton({
|
|
|
39182
39369
|
type: "button",
|
|
39183
39370
|
...connectButtonStyles
|
|
39184
39371
|
},
|
|
39185
|
-
unsupportedChain ? /* @__PURE__ */
|
|
39372
|
+
unsupportedChain ? /* @__PURE__ */ React242.createElement(Box, { alignItems: "center", display: "flex", height: "24", paddingX: "4" }, t("chainModal.wrongNetwork")) : /* @__PURE__ */ React242.createElement(Box, { alignItems: "center", display: "flex", gap: "6" }, chain.hasIcon ? /* @__PURE__ */ React242.createElement(
|
|
39186
39373
|
Box,
|
|
39187
39374
|
{
|
|
39188
39375
|
display: mapResponsiveValue(
|
|
@@ -39192,7 +39379,7 @@ function ChainSelectorButton({
|
|
|
39192
39379
|
height: "12",
|
|
39193
39380
|
width: "12"
|
|
39194
39381
|
},
|
|
39195
|
-
/* @__PURE__ */
|
|
39382
|
+
/* @__PURE__ */ React242.createElement(
|
|
39196
39383
|
AsyncImage,
|
|
39197
39384
|
{
|
|
39198
39385
|
alt: chain.name ?? "Chain icon",
|
|
@@ -39203,7 +39390,7 @@ function ChainSelectorButton({
|
|
|
39203
39390
|
src: chain.iconUrl
|
|
39204
39391
|
}
|
|
39205
39392
|
)
|
|
39206
|
-
) : null, /* @__PURE__ */
|
|
39393
|
+
) : null, /* @__PURE__ */ React242.createElement(
|
|
39207
39394
|
Box,
|
|
39208
39395
|
{
|
|
39209
39396
|
display: mapResponsiveValue(chainStatus, (value) => {
|
|
@@ -39223,7 +39410,7 @@ function AccountButton({
|
|
|
39223
39410
|
showBalance,
|
|
39224
39411
|
accountStatus
|
|
39225
39412
|
}) {
|
|
39226
|
-
return /* @__PURE__ */
|
|
39413
|
+
return /* @__PURE__ */ React242.createElement(
|
|
39227
39414
|
Box,
|
|
39228
39415
|
{
|
|
39229
39416
|
alignItems: "center",
|
|
@@ -39243,7 +39430,7 @@ function AccountButton({
|
|
|
39243
39430
|
gap: "16",
|
|
39244
39431
|
...connectButtonStyles
|
|
39245
39432
|
},
|
|
39246
|
-
account.displayBalance && /* @__PURE__ */
|
|
39433
|
+
account.displayBalance && /* @__PURE__ */ React242.createElement(
|
|
39247
39434
|
Box,
|
|
39248
39435
|
{
|
|
39249
39436
|
display: mapResponsiveValue(
|
|
@@ -39253,7 +39440,7 @@ function AccountButton({
|
|
|
39253
39440
|
},
|
|
39254
39441
|
account.displayBalance
|
|
39255
39442
|
),
|
|
39256
|
-
/* @__PURE__ */
|
|
39443
|
+
/* @__PURE__ */ React242.createElement(Box, { alignItems: "center", display: "flex", gap: "6" }, /* @__PURE__ */ React242.createElement(
|
|
39257
39444
|
Box,
|
|
39258
39445
|
{
|
|
39259
39446
|
display: mapResponsiveValue(
|
|
@@ -39261,7 +39448,7 @@ function AccountButton({
|
|
|
39261
39448
|
(value) => value === "full" || value === "avatar" ? "block" : "none"
|
|
39262
39449
|
)
|
|
39263
39450
|
},
|
|
39264
|
-
/* @__PURE__ */
|
|
39451
|
+
/* @__PURE__ */ React242.createElement(
|
|
39265
39452
|
Avatar,
|
|
39266
39453
|
{
|
|
39267
39454
|
address: account.address,
|
|
@@ -39270,7 +39457,7 @@ function AccountButton({
|
|
|
39270
39457
|
size: 12
|
|
39271
39458
|
}
|
|
39272
39459
|
)
|
|
39273
|
-
), /* @__PURE__ */
|
|
39460
|
+
), /* @__PURE__ */ React242.createElement(
|
|
39274
39461
|
Box,
|
|
39275
39462
|
{
|
|
39276
39463
|
display: mapResponsiveValue(
|
|
@@ -39303,7 +39490,7 @@ function ConnectButton({
|
|
|
39303
39490
|
setReady(true);
|
|
39304
39491
|
}
|
|
39305
39492
|
}, [showBalance, setShowBalance, ready]);
|
|
39306
|
-
return ready ? /* @__PURE__ */
|
|
39493
|
+
return ready ? /* @__PURE__ */ React242.createElement(ConnectButtonRenderer, null, ({
|
|
39307
39494
|
account,
|
|
39308
39495
|
chain,
|
|
39309
39496
|
mounted,
|
|
@@ -39313,7 +39500,7 @@ function ConnectButton({
|
|
|
39313
39500
|
}) => {
|
|
39314
39501
|
const ready2 = mounted && connectionStatus !== "loading";
|
|
39315
39502
|
const unsupportedChain = chain?.unsupported ?? false;
|
|
39316
|
-
return /* @__PURE__ */
|
|
39503
|
+
return /* @__PURE__ */ React242.createElement(
|
|
39317
39504
|
Box,
|
|
39318
39505
|
{
|
|
39319
39506
|
display: "flex",
|
|
@@ -39329,7 +39516,7 @@ function ConnectButton({
|
|
|
39329
39516
|
},
|
|
39330
39517
|
ready2 && account && connectionStatus === "connected" ? (
|
|
39331
39518
|
// Logged in: Chain Button & Account Button
|
|
39332
|
-
/* @__PURE__ */
|
|
39519
|
+
/* @__PURE__ */ React242.createElement(React242.Fragment, null, showChainSelector && chain && (chains.length > 1 || unsupportedChain) && /* @__PURE__ */ React242.createElement(
|
|
39333
39520
|
ChainSelectorButton,
|
|
39334
39521
|
{
|
|
39335
39522
|
unsupportedChain,
|
|
@@ -39337,7 +39524,7 @@ function ConnectButton({
|
|
|
39337
39524
|
openChainModal,
|
|
39338
39525
|
chain
|
|
39339
39526
|
}
|
|
39340
|
-
), !unsupportedChain && /* @__PURE__ */
|
|
39527
|
+
), !unsupportedChain && /* @__PURE__ */ React242.createElement(
|
|
39341
39528
|
AccountButton,
|
|
39342
39529
|
{
|
|
39343
39530
|
openAccountModal,
|
|
@@ -39348,7 +39535,7 @@ function ConnectButton({
|
|
|
39348
39535
|
))
|
|
39349
39536
|
) : (
|
|
39350
39537
|
// Not logged in: Connect Button
|
|
39351
|
-
/* @__PURE__ */
|
|
39538
|
+
/* @__PURE__ */ React242.createElement(
|
|
39352
39539
|
Box,
|
|
39353
39540
|
{
|
|
39354
39541
|
as: "button",
|
|
@@ -39366,19 +39553,19 @@ function ConnectButton({
|
|
|
39366
39553
|
type: "button",
|
|
39367
39554
|
...connectButtonStyles
|
|
39368
39555
|
},
|
|
39369
|
-
/* @__PURE__ */
|
|
39556
|
+
/* @__PURE__ */ React242.createElement(Box, { display: "flex", gap: "8", alignItems: "center" }, mounted && label, suffixIcon)
|
|
39370
39557
|
)
|
|
39371
39558
|
)
|
|
39372
39559
|
);
|
|
39373
|
-
}) : /* @__PURE__ */
|
|
39560
|
+
}) : /* @__PURE__ */ React242.createElement(React242.Fragment, null);
|
|
39374
39561
|
}
|
|
39375
39562
|
ConnectButton.__defaultProps = defaultProps;
|
|
39376
39563
|
ConnectButton.Custom = ConnectButtonRenderer;
|
|
39377
39564
|
|
|
39378
39565
|
// src/components/Icons/FunkitPaymentsIconLine.tsx
|
|
39379
|
-
import
|
|
39566
|
+
import React243 from "react";
|
|
39380
39567
|
function MetaMaskPaymentIcon({ size = 16 }) {
|
|
39381
|
-
return /* @__PURE__ */
|
|
39568
|
+
return /* @__PURE__ */ React243.createElement(
|
|
39382
39569
|
"svg",
|
|
39383
39570
|
{
|
|
39384
39571
|
width: size,
|
|
@@ -39387,7 +39574,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39387
39574
|
fill: "none",
|
|
39388
39575
|
xmlns: "http://www.w3.org/2000/svg"
|
|
39389
39576
|
},
|
|
39390
|
-
/* @__PURE__ */
|
|
39577
|
+
/* @__PURE__ */ React243.createElement(
|
|
39391
39578
|
"path",
|
|
39392
39579
|
{
|
|
39393
39580
|
d: "M24.0891 3.1199L15.3446 9.61456L16.9617 5.7828L24.0891 3.1199Z",
|
|
@@ -39398,7 +39585,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39398
39585
|
strokeLinejoin: "round"
|
|
39399
39586
|
}
|
|
39400
39587
|
),
|
|
39401
|
-
/* @__PURE__ */
|
|
39588
|
+
/* @__PURE__ */ React243.createElement(
|
|
39402
39589
|
"path",
|
|
39403
39590
|
{
|
|
39404
39591
|
d: "M3.90207 3.1199L12.5763 9.67608L11.0383 5.7828L3.90207 3.1199Z",
|
|
@@ -39409,7 +39596,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39409
39596
|
strokeLinejoin: "round"
|
|
39410
39597
|
}
|
|
39411
39598
|
),
|
|
39412
|
-
/* @__PURE__ */
|
|
39599
|
+
/* @__PURE__ */ React243.createElement(
|
|
39413
39600
|
"path",
|
|
39414
39601
|
{
|
|
39415
39602
|
d: "M20.9429 18.1745L18.6139 21.7426L23.597 23.1136L25.0295 18.2536L20.9429 18.1745Z",
|
|
@@ -39420,7 +39607,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39420
39607
|
strokeLinejoin: "round"
|
|
39421
39608
|
}
|
|
39422
39609
|
),
|
|
39423
|
-
/* @__PURE__ */
|
|
39610
|
+
/* @__PURE__ */ React243.createElement(
|
|
39424
39611
|
"path",
|
|
39425
39612
|
{
|
|
39426
39613
|
d: "M2.97929 18.2536L4.40301 23.1136L9.38607 21.7426L7.05713 18.1745L2.97929 18.2536Z",
|
|
@@ -39431,7 +39618,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39431
39618
|
strokeLinejoin: "round"
|
|
39432
39619
|
}
|
|
39433
39620
|
),
|
|
39434
|
-
/* @__PURE__ */
|
|
39621
|
+
/* @__PURE__ */ React243.createElement(
|
|
39435
39622
|
"path",
|
|
39436
39623
|
{
|
|
39437
39624
|
d: "M9.10483 12.1456L7.71626 14.2461L12.6642 14.4658L12.4884 9.14877L9.10483 12.1456Z",
|
|
@@ -39442,7 +39629,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39442
39629
|
strokeLinejoin: "round"
|
|
39443
39630
|
}
|
|
39444
39631
|
),
|
|
39445
|
-
/* @__PURE__ */
|
|
39632
|
+
/* @__PURE__ */ React243.createElement(
|
|
39446
39633
|
"path",
|
|
39447
39634
|
{
|
|
39448
39635
|
d: "M18.8864 12.1456L15.4589 9.08725L15.3446 14.4658L20.2837 14.2461L18.8864 12.1456Z",
|
|
@@ -39453,7 +39640,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39453
39640
|
strokeLinejoin: "round"
|
|
39454
39641
|
}
|
|
39455
39642
|
),
|
|
39456
|
-
/* @__PURE__ */
|
|
39643
|
+
/* @__PURE__ */ React243.createElement(
|
|
39457
39644
|
"path",
|
|
39458
39645
|
{
|
|
39459
39646
|
d: "M9.38606 21.7426L12.3566 20.2925L9.79033 18.2888L9.38606 21.7426Z",
|
|
@@ -39464,7 +39651,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39464
39651
|
strokeLinejoin: "round"
|
|
39465
39652
|
}
|
|
39466
39653
|
),
|
|
39467
|
-
/* @__PURE__ */
|
|
39654
|
+
/* @__PURE__ */ React243.createElement(
|
|
39468
39655
|
"path",
|
|
39469
39656
|
{
|
|
39470
39657
|
d: "M15.6347 20.2925L18.6139 21.7426L18.2009 18.2888L15.6347 20.2925Z",
|
|
@@ -39475,7 +39662,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39475
39662
|
strokeLinejoin: "round"
|
|
39476
39663
|
}
|
|
39477
39664
|
),
|
|
39478
|
-
/* @__PURE__ */
|
|
39665
|
+
/* @__PURE__ */ React243.createElement(
|
|
39479
39666
|
"path",
|
|
39480
39667
|
{
|
|
39481
39668
|
d: "M18.6139 21.7426L15.6347 20.2925L15.8719 22.2348L15.8456 23.0521L18.6139 21.7426Z",
|
|
@@ -39486,7 +39673,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39486
39673
|
strokeLinejoin: "round"
|
|
39487
39674
|
}
|
|
39488
39675
|
),
|
|
39489
|
-
/* @__PURE__ */
|
|
39676
|
+
/* @__PURE__ */ React243.createElement(
|
|
39490
39677
|
"path",
|
|
39491
39678
|
{
|
|
39492
39679
|
d: "M9.38606 21.7426L12.1544 23.0521L12.1368 22.2348L12.3566 20.2925L9.38606 21.7426Z",
|
|
@@ -39497,7 +39684,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39497
39684
|
strokeLinejoin: "round"
|
|
39498
39685
|
}
|
|
39499
39686
|
),
|
|
39500
|
-
/* @__PURE__ */
|
|
39687
|
+
/* @__PURE__ */ React243.createElement(
|
|
39501
39688
|
"path",
|
|
39502
39689
|
{
|
|
39503
39690
|
d: "M12.1984 17.0056L9.72002 16.2762L11.4689 15.4765L12.1984 17.0056Z",
|
|
@@ -39508,7 +39695,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39508
39695
|
strokeLinejoin: "round"
|
|
39509
39696
|
}
|
|
39510
39697
|
),
|
|
39511
|
-
/* @__PURE__ */
|
|
39698
|
+
/* @__PURE__ */ React243.createElement(
|
|
39512
39699
|
"path",
|
|
39513
39700
|
{
|
|
39514
39701
|
d: "M15.7928 17.0056L16.5223 15.4765L18.28 16.2762L15.7928 17.0056Z",
|
|
@@ -39519,7 +39706,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39519
39706
|
strokeLinejoin: "round"
|
|
39520
39707
|
}
|
|
39521
39708
|
),
|
|
39522
|
-
/* @__PURE__ */
|
|
39709
|
+
/* @__PURE__ */ React243.createElement(
|
|
39523
39710
|
"path",
|
|
39524
39711
|
{
|
|
39525
39712
|
d: "M9.38606 21.7426L9.80791 18.1745L7.05712 18.2536L9.38606 21.7426Z",
|
|
@@ -39530,7 +39717,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39530
39717
|
strokeLinejoin: "round"
|
|
39531
39718
|
}
|
|
39532
39719
|
),
|
|
39533
|
-
/* @__PURE__ */
|
|
39720
|
+
/* @__PURE__ */ React243.createElement(
|
|
39534
39721
|
"path",
|
|
39535
39722
|
{
|
|
39536
39723
|
d: "M18.1921 18.1745L18.6139 21.7426L20.9429 18.2536L18.1921 18.1745Z",
|
|
@@ -39541,7 +39728,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39541
39728
|
strokeLinejoin: "round"
|
|
39542
39729
|
}
|
|
39543
39730
|
),
|
|
39544
|
-
/* @__PURE__ */
|
|
39731
|
+
/* @__PURE__ */ React243.createElement(
|
|
39545
39732
|
"path",
|
|
39546
39733
|
{
|
|
39547
39734
|
d: "M20.2837 14.2461L15.3446 14.4658L15.8016 17.0057L16.5311 15.4765L18.2888 16.2762L20.2837 14.2461Z",
|
|
@@ -39552,7 +39739,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39552
39739
|
strokeLinejoin: "round"
|
|
39553
39740
|
}
|
|
39554
39741
|
),
|
|
39555
|
-
/* @__PURE__ */
|
|
39742
|
+
/* @__PURE__ */ React243.createElement(
|
|
39556
39743
|
"path",
|
|
39557
39744
|
{
|
|
39558
39745
|
d: "M9.72002 16.2762L11.4777 15.4765L12.1984 17.0057L12.6642 14.4658L7.71626 14.2461L9.72002 16.2762Z",
|
|
@@ -39563,7 +39750,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39563
39750
|
strokeLinejoin: "round"
|
|
39564
39751
|
}
|
|
39565
39752
|
),
|
|
39566
|
-
/* @__PURE__ */
|
|
39753
|
+
/* @__PURE__ */ React243.createElement(
|
|
39567
39754
|
"path",
|
|
39568
39755
|
{
|
|
39569
39756
|
d: "M7.71626 14.2461L9.79033 18.2888L9.72002 16.2762L7.71626 14.2461Z",
|
|
@@ -39574,7 +39761,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39574
39761
|
strokeLinejoin: "round"
|
|
39575
39762
|
}
|
|
39576
39763
|
),
|
|
39577
|
-
/* @__PURE__ */
|
|
39764
|
+
/* @__PURE__ */ React243.createElement(
|
|
39578
39765
|
"path",
|
|
39579
39766
|
{
|
|
39580
39767
|
d: "M18.2888 16.2762L18.2009 18.2888L20.2837 14.2461L18.2888 16.2762Z",
|
|
@@ -39585,7 +39772,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39585
39772
|
strokeLinejoin: "round"
|
|
39586
39773
|
}
|
|
39587
39774
|
),
|
|
39588
|
-
/* @__PURE__ */
|
|
39775
|
+
/* @__PURE__ */ React243.createElement(
|
|
39589
39776
|
"path",
|
|
39590
39777
|
{
|
|
39591
39778
|
d: "M12.6642 14.4658L12.1984 17.0057L12.7784 20.0025L12.9102 16.0565L12.6642 14.4658Z",
|
|
@@ -39596,7 +39783,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39596
39783
|
strokeLinejoin: "round"
|
|
39597
39784
|
}
|
|
39598
39785
|
),
|
|
39599
|
-
/* @__PURE__ */
|
|
39786
|
+
/* @__PURE__ */ React243.createElement(
|
|
39600
39787
|
"path",
|
|
39601
39788
|
{
|
|
39602
39789
|
d: "M15.3446 14.4658L15.1073 16.0477L15.2128 20.0025L15.8016 17.0057L15.3446 14.4658Z",
|
|
@@ -39607,7 +39794,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39607
39794
|
strokeLinejoin: "round"
|
|
39608
39795
|
}
|
|
39609
39796
|
),
|
|
39610
|
-
/* @__PURE__ */
|
|
39797
|
+
/* @__PURE__ */ React243.createElement(
|
|
39611
39798
|
"path",
|
|
39612
39799
|
{
|
|
39613
39800
|
d: "M15.8016 17.0056L15.2128 20.0025L15.6347 20.2925L18.2009 18.2888L18.2888 16.2762L15.8016 17.0056Z",
|
|
@@ -39618,7 +39805,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39618
39805
|
strokeLinejoin: "round"
|
|
39619
39806
|
}
|
|
39620
39807
|
),
|
|
39621
|
-
/* @__PURE__ */
|
|
39808
|
+
/* @__PURE__ */ React243.createElement(
|
|
39622
39809
|
"path",
|
|
39623
39810
|
{
|
|
39624
39811
|
d: "M9.72002 16.2762L9.79033 18.2888L12.3566 20.2925L12.7784 20.0025L12.1984 17.0056L9.72002 16.2762Z",
|
|
@@ -39629,7 +39816,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39629
39816
|
strokeLinejoin: "round"
|
|
39630
39817
|
}
|
|
39631
39818
|
),
|
|
39632
|
-
/* @__PURE__ */
|
|
39819
|
+
/* @__PURE__ */ React243.createElement(
|
|
39633
39820
|
"path",
|
|
39634
39821
|
{
|
|
39635
39822
|
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",
|
|
@@ -39640,7 +39827,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39640
39827
|
strokeLinejoin: "round"
|
|
39641
39828
|
}
|
|
39642
39829
|
),
|
|
39643
|
-
/* @__PURE__ */
|
|
39830
|
+
/* @__PURE__ */ React243.createElement(
|
|
39644
39831
|
"path",
|
|
39645
39832
|
{
|
|
39646
39833
|
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",
|
|
@@ -39651,7 +39838,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39651
39838
|
strokeLinejoin: "round"
|
|
39652
39839
|
}
|
|
39653
39840
|
),
|
|
39654
|
-
/* @__PURE__ */
|
|
39841
|
+
/* @__PURE__ */ React243.createElement(
|
|
39655
39842
|
"path",
|
|
39656
39843
|
{
|
|
39657
39844
|
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",
|
|
@@ -39662,7 +39849,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39662
39849
|
strokeLinejoin: "round"
|
|
39663
39850
|
}
|
|
39664
39851
|
),
|
|
39665
|
-
/* @__PURE__ */
|
|
39852
|
+
/* @__PURE__ */ React243.createElement(
|
|
39666
39853
|
"path",
|
|
39667
39854
|
{
|
|
39668
39855
|
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",
|
|
@@ -39673,7 +39860,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39673
39860
|
strokeLinejoin: "round"
|
|
39674
39861
|
}
|
|
39675
39862
|
),
|
|
39676
|
-
/* @__PURE__ */
|
|
39863
|
+
/* @__PURE__ */ React243.createElement(
|
|
39677
39864
|
"path",
|
|
39678
39865
|
{
|
|
39679
39866
|
d: "M23.4827 13.4903L18.8864 12.1456L20.2837 14.2461L18.2009 18.2888L20.9429 18.2536H25.0295L23.4827 13.4903Z",
|
|
@@ -39684,7 +39871,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39684
39871
|
strokeLinejoin: "round"
|
|
39685
39872
|
}
|
|
39686
39873
|
),
|
|
39687
|
-
/* @__PURE__ */
|
|
39874
|
+
/* @__PURE__ */ React243.createElement(
|
|
39688
39875
|
"path",
|
|
39689
39876
|
{
|
|
39690
39877
|
d: "M9.10484 12.1456L4.50848 13.4903L2.97929 18.2536H7.05713L9.79033 18.2888L7.71626 14.2461L9.10484 12.1456Z",
|
|
@@ -39695,7 +39882,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39695
39882
|
strokeLinejoin: "round"
|
|
39696
39883
|
}
|
|
39697
39884
|
),
|
|
39698
|
-
/* @__PURE__ */
|
|
39885
|
+
/* @__PURE__ */ React243.createElement(
|
|
39699
39886
|
"path",
|
|
39700
39887
|
{
|
|
39701
39888
|
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",
|
|
@@ -39709,14 +39896,14 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
39709
39896
|
);
|
|
39710
39897
|
}
|
|
39711
39898
|
function MastercardPaymentIcon({ size = 16 }) {
|
|
39712
|
-
return /* @__PURE__ */
|
|
39899
|
+
return /* @__PURE__ */ React243.createElement(
|
|
39713
39900
|
"svg",
|
|
39714
39901
|
{
|
|
39715
39902
|
xmlns: "http://www.w3.org/2000/svg",
|
|
39716
39903
|
height: size,
|
|
39717
39904
|
viewBox: "0 0 152.407 108"
|
|
39718
39905
|
},
|
|
39719
|
-
/* @__PURE__ */
|
|
39906
|
+
/* @__PURE__ */ React243.createElement("g", null, /* @__PURE__ */ React243.createElement("rect", { width: "152.407", height: "108", fill: "transparent" }), /* @__PURE__ */ React243.createElement("g", null, /* @__PURE__ */ React243.createElement(
|
|
39720
39907
|
"rect",
|
|
39721
39908
|
{
|
|
39722
39909
|
x: "60.4117",
|
|
@@ -39725,21 +39912,21 @@ function MastercardPaymentIcon({ size = 16 }) {
|
|
|
39725
39912
|
height: "56.6064",
|
|
39726
39913
|
fill: "#ff5f00"
|
|
39727
39914
|
}
|
|
39728
|
-
), /* @__PURE__ */
|
|
39915
|
+
), /* @__PURE__ */ React243.createElement(
|
|
39729
39916
|
"path",
|
|
39730
39917
|
{
|
|
39731
39918
|
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",
|
|
39732
39919
|
transform: "translate(-319.79649 -252)",
|
|
39733
39920
|
fill: "#eb001b"
|
|
39734
39921
|
}
|
|
39735
|
-
), /* @__PURE__ */
|
|
39922
|
+
), /* @__PURE__ */ React243.createElement(
|
|
39736
39923
|
"path",
|
|
39737
39924
|
{
|
|
39738
39925
|
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",
|
|
39739
39926
|
transform: "translate(-319.79649 -252)",
|
|
39740
39927
|
fill: "#f79e1b"
|
|
39741
39928
|
}
|
|
39742
|
-
), /* @__PURE__ */
|
|
39929
|
+
), /* @__PURE__ */ React243.createElement(
|
|
39743
39930
|
"path",
|
|
39744
39931
|
{
|
|
39745
39932
|
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",
|
|
@@ -39753,7 +39940,7 @@ function FunkitPaymentsIconLine({
|
|
|
39753
39940
|
size = 16,
|
|
39754
39941
|
gap = "2"
|
|
39755
39942
|
}) {
|
|
39756
|
-
return /* @__PURE__ */
|
|
39943
|
+
return /* @__PURE__ */ React243.createElement(
|
|
39757
39944
|
Box,
|
|
39758
39945
|
{
|
|
39759
39946
|
display: "flex",
|
|
@@ -39762,9 +39949,9 @@ function FunkitPaymentsIconLine({
|
|
|
39762
39949
|
alignItems: "center",
|
|
39763
39950
|
justifyContent: "center"
|
|
39764
39951
|
},
|
|
39765
|
-
/* @__PURE__ */
|
|
39766
|
-
/* @__PURE__ */
|
|
39767
|
-
/* @__PURE__ */
|
|
39952
|
+
/* @__PURE__ */ React243.createElement(MetaMaskPaymentIcon, { size }),
|
|
39953
|
+
/* @__PURE__ */ React243.createElement(MastercardPaymentIcon, { size }),
|
|
39954
|
+
/* @__PURE__ */ React243.createElement(CoinbaseIcon, { size })
|
|
39768
39955
|
);
|
|
39769
39956
|
}
|
|
39770
39957
|
|