@funkit/connect 9.23.0 → 9.23.2-next.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 +38 -0
- package/dist/__generated__/default_configs.d.ts +901 -0
- package/dist/__generated__/default_feature_gates.d.ts +20 -0
- package/dist/clients/aave.d.ts +1 -1
- package/dist/clients/chunk-25ICASD7.js +2371 -0
- package/dist/clients/chunk-3GO74QTP.js +2382 -0
- package/dist/clients/{chunk-NCCAYPLO.js → chunk-4HCOSF4M.js} +1 -1
- package/dist/clients/chunk-7GWX2ZS4.js +69 -0
- package/dist/clients/{chunk-KSSSSWR6.js → chunk-7HNGV6JU.js} +1 -1
- package/dist/clients/chunk-CEBG7XQ5.js +2382 -0
- package/dist/clients/{chunk-ZMVXBMON.js → chunk-ELLXM7RO.js} +1 -1
- package/dist/clients/chunk-GGXTLJ7J.js +290 -0
- package/dist/clients/chunk-HRWCNZJA.js +230 -0
- package/dist/clients/chunk-JD3FIVZ7.js +69 -0
- package/dist/clients/chunk-JTGKAPID.js +2382 -0
- package/dist/clients/{chunk-4752IYY6.js → chunk-KWIR3HO4.js} +1 -1
- package/dist/clients/chunk-L7PABCF2.js +54 -0
- package/dist/clients/chunk-LII3SVUH.js +230 -0
- package/dist/clients/{chunk-OWXKWC7I.js → chunk-NCUPPJ2Z.js} +8 -8
- package/dist/clients/chunk-NUJ6ZM5F.js +186 -0
- package/dist/clients/chunk-UVWNEQMD.js +186 -0
- package/dist/clients/chunk-VVTNR7YH.js +2382 -0
- package/dist/clients/chunk-ZNVFASTH.js +54 -0
- package/dist/clients/fanatics.css +2 -2
- package/dist/clients/fanatics.js +3 -3
- package/dist/clients/lighter.css +2 -2
- package/dist/clients/lighter.d.ts +1 -1
- package/dist/clients/lighter.js +5 -3
- package/dist/clients/mallard.d.ts +49 -0
- package/dist/clients/mallard.js +86 -0
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +97 -87
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.d.ts +1 -1
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +6 -6
- package/dist/clients/polymarket/createPolymarketDepositConfig.d.ts +1 -1
- package/dist/clients/polymarket/createPolymarketDepositConfig.js +2 -2
- package/dist/clients/polymarket/index.css +97 -87
- package/dist/clients/polymarket/index.js +6 -6
- package/dist/clients/polymarket/polymarket.d.ts +2 -2
- package/dist/clients/polymarket/polymarket.js +1 -1
- package/dist/clients/polymarket.d.ts +161 -0
- package/dist/clients/polymarket.js +688 -0
- package/dist/clients/rolly.d.ts +1 -1
- package/dist/clients/rolly.js +1 -14
- package/dist/components/ApprovalMethodToggle/ApprovalMethodToggle.d.ts +1 -1
- package/dist/components/BottomLinks/BottomLinks.css.d.ts +6 -0
- package/dist/components/BottomLinks/BottomLinks.d.ts +14 -0
- package/dist/components/Box/Box.d.ts +21 -21
- package/dist/components/Dropdown/ChainDropdown.d.ts +1 -1
- package/dist/components/Dropdown/TokenAndChainDropdown.d.ts +1 -1
- package/dist/components/Dropdown/TokenDropdown.d.ts +1 -1
- package/dist/components/FunAsset/FunAssetItem.d.ts +1 -1
- package/dist/components/FunCheckoutHistory/AddTokenToWalletButton.d.ts +1 -1
- package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryBottomBar.d.ts +1 -1
- package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryDetail.d.ts +1 -1
- package/dist/components/FunCheckoutHistory/PendingSuccessScreen.d.ts +2 -2
- package/dist/components/FunCheckoutHistory/YouSendItem.d.ts +1 -1
- package/dist/components/FunNotificationBanner/FunNotificationBannerIcon.d.ts +1 -1
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +1 -1
- package/dist/components/FunSelectBrokerage/FunSelectBrokerage.d.ts +1 -1
- package/dist/components/FunTransactionSummary/DestinationYieldRows.d.ts +1 -1
- package/dist/components/FunTransactionSummary/PaymentAmountSummary.d.ts +3 -3
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +2 -2
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.track.d.ts +2 -2
- package/dist/components/FunTransactionSummary/PaymentMethodSummary.d.ts +2 -2
- package/dist/components/FunTransactionSummary/PaymentRouteSummary.d.ts +1 -1
- package/dist/components/ModalHeightAnimationLayer/FunCheckoutModalHeightAnimationWrapper.d.ts +2 -2
- package/dist/components/NewTokenDepositAlert/NewTokenDepositAlert.d.ts +1 -1
- package/dist/components/ReceiveAmount/ReceiveAmount.d.ts +2 -2
- package/dist/components/SourcePaymentMethodItem/SourcePaymentMethodItem.d.ts +1 -1
- package/dist/components/TransactionStatus/AnimatedSpinner/AnimatedSpinner.d.ts +1 -1
- package/dist/components/TransactionStatus/StepSpinner.d.ts +1 -1
- package/dist/components/TransactionStatus/TransactionStatus.d.ts +2 -2
- package/dist/components/TransferTokenDetails/TransferTokenDetails.d.ts +1 -1
- package/dist/consts/customers.d.ts +3 -1
- package/dist/consts/funkit.d.ts +1 -0
- package/dist/css/sprinkles.css.d.ts +21 -21
- package/dist/domains/aave.d.ts +1 -1
- package/dist/domains/asset.d.ts +4 -4
- package/dist/domains/checkout.d.ts +1 -1
- package/dist/domains/checkoutErrors.d.ts +2 -2
- package/dist/domains/checkoutRecipient.d.ts +1 -1
- package/dist/domains/clientMetadata.d.ts +7 -2
- package/dist/domains/dynamicRouting.d.ts +1 -1
- package/dist/domains/fees.d.ts +3 -3
- package/dist/domains/paymentMethods.d.ts +1 -1
- package/dist/domains/quote.d.ts +5 -5
- package/dist/domains/quoteMode/exactOut.d.ts +1 -1
- package/dist/domains/quoteMode/resolveQuoteMode.d.ts +1 -1
- package/dist/domains/quoteMode/types.d.ts +2 -2
- package/dist/hooks/queries/useLightningQuote.d.ts +1 -1
- package/dist/hooks/queries/useMeldDefaultCurrency.d.ts +1 -1
- package/dist/hooks/queries/useRecentCheckouts.d.ts +1 -1
- package/dist/hooks/queries/useRecentDeposits.d.ts +1 -1
- package/dist/hooks/queries/useWithdrawalQuote.d.ts +31 -31
- package/dist/hooks/track/useTrack.d.ts +1 -1
- package/dist/hooks/useBluvo.d.ts +3 -3
- package/dist/hooks/useCheckoutDirectExecution.d.ts +3 -3
- package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +1 -1
- package/dist/hooks/useCheckoutItemDisplay.d.ts +2 -2
- package/dist/hooks/useCheckoutTimeEstimate.d.ts +2 -2
- package/dist/hooks/useCountdown.d.ts +1 -1
- package/dist/hooks/useEnabledTokenTransferChainTokens.d.ts +1 -1
- package/dist/hooks/useExchangeOptions.d.ts +1 -1
- package/dist/hooks/useFrogAccount.d.ts +1 -1
- package/dist/hooks/useIsBlacklisted.d.ts +1 -1
- package/dist/hooks/useIsDynamicRoutingEnabled.d.ts +1 -1
- package/dist/hooks/useMinDeposit.d.ts +1 -1
- package/dist/hooks/useNewTokenBanner.d.ts +1 -1
- package/dist/hooks/useOnNewNotification.d.ts +1 -1
- package/dist/hooks/usePaymentMethodTabs.d.ts +1 -1
- package/dist/hooks/usePaymentSources.d.ts +2 -2
- package/dist/hooks/useRelayBypass.d.ts +1 -1
- package/dist/hooks/useStepQueryReadiness.d.ts +3 -3
- package/dist/hooks/useTokenAndChainDropdown.d.ts +1 -1
- package/dist/hooks/useTokenTransfer.d.ts +1 -1
- package/dist/hooks/useTokenTransferConfig.d.ts +8 -1
- package/dist/hooks/useUserIpInfo.d.ts +1 -1
- package/dist/index.css +42 -32
- package/dist/index.js +751 -763
- package/dist/interfaces/identity.d.ts +1 -1
- package/dist/interfaces/logTransport.d.ts +51 -0
- package/dist/interfaces/swapped-transport.d.ts +78 -0
- package/dist/modals/ChainModal/Chain.d.ts +1 -1
- package/dist/modals/CheckoutModal/Brokerage/BrokerageSuccessModal.d.ts +1 -1
- package/dist/modals/CheckoutModal/Brokerage/BrokerageTwoFA.d.ts +2 -2
- package/dist/modals/CheckoutModal/Brokerage/ConnectExchange.d.ts +2 -2
- package/dist/modals/CheckoutModal/Brokerage/SelectBrokerage.d.ts +2 -2
- package/dist/modals/CheckoutModal/ConfirmationStep/CheckoutPrimaryInfo.d.ts +2 -2
- package/dist/modals/CheckoutModal/ConfirmationStep/ConfirmationStep.d.ts +1 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/DisclaimerText.d.ts +1 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/mapRetryAction.d.ts +1 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +1 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutQuote.d.ts +2 -2
- package/dist/modals/CheckoutModal/ConfirmationStep/usePostCheckout.d.ts +2 -2
- package/dist/modals/CheckoutModal/ConfirmationStep/useQuoteRefresh.d.ts +1 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/useSourceAssetConfirm.d.ts +2 -2
- package/dist/modals/CheckoutModal/FunCheckoutStep.d.ts +3 -1
- package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +1 -1
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +2 -2
- package/dist/modals/CheckoutModal/InputAmount/state.d.ts +3 -3
- package/dist/modals/CheckoutModal/InputAmount/useAaveNativeSupply.d.ts +3 -3
- package/dist/modals/CheckoutModal/InputAmount/useAmountInput.d.ts +1 -1
- package/dist/modals/CheckoutModal/InputAmount/useAvailableBalanceForCheckout.d.ts +3 -3
- package/dist/modals/CheckoutModal/InputAmount/useCheckoutAmountLimits.d.ts +2 -2
- package/dist/modals/CheckoutModal/InputAmount/useMeld.d.ts +1 -1
- package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +2 -2
- package/dist/modals/CheckoutModal/LightningInvoice/LightningInvoice.d.ts +1 -1
- package/dist/modals/CheckoutModal/LightningInvoice/LightningInvoiceQrCode.d.ts +1 -1
- package/dist/modals/CheckoutModal/MeldCurrencySelect/MeldCurrencySelect.d.ts +1 -1
- package/dist/modals/CheckoutModal/MeldQuotes/MeldQuotes.d.ts +1 -1
- package/dist/modals/CheckoutModal/MeldRedirect/MeldRedirect.d.ts +1 -1
- package/dist/modals/CheckoutModal/SelectAsset/SelectAsset.d.ts +5 -5
- package/dist/modals/CheckoutModal/SelectAsset/SelectAssetInfoSection.d.ts +2 -2
- package/dist/modals/CheckoutModal/SelectAsset/SelectAssetList.d.ts +2 -2
- package/dist/modals/CheckoutModal/SourceChange/ConnectedSource.d.ts +1 -1
- package/dist/modals/CheckoutModal/SourceChange/CryptoCashToggle.d.ts +2 -2
- package/dist/modals/CheckoutModal/SourceChange/EmptyFormOfPaymentsMessage.d.ts +4 -0
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +2 -2
- package/dist/modals/CheckoutModal/SourceChange/useSourceChangeLayout.d.ts +1 -1
- package/dist/modals/CheckoutModal/SourceChange/useUpdateSourceAssetForCard.d.ts +4 -0
- package/dist/modals/CheckoutModal/SwappedIframe/SwappedErrorMessage.d.ts +6 -0
- package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframeController.d.ts +2 -2
- package/dist/modals/CheckoutModal/TransferToken/CheckoutNotification.d.ts +1 -1
- package/dist/modals/CheckoutModal/TransferToken/CheckoutNotifications.track.d.ts +1 -1
- package/dist/modals/CheckoutModal/TransferToken/DirectExecutionNotification.d.ts +1 -1
- package/dist/modals/CheckoutModal/TransferToken/TransferToken.d.ts +1 -1
- package/dist/modals/CheckoutModal/TransferToken/types.d.ts +1 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeCustomer.d.ts +2 -2
- package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeKyc.d.ts +1 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/ErrorScreen.d.ts +1 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/FiatAccountDetail.d.ts +1 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/KycIframe.d.ts +2 -2
- package/dist/modals/CheckoutModal/VirtualFiatAccount/VirtualFiatAccount.d.ts +2 -2
- package/dist/modals/CheckoutModal/Withdrawal/WithdrawalComplete.d.ts +14 -0
- package/dist/modals/CheckoutModal/Withdrawal/WithdrawalEnterAmount.d.ts +15 -0
- package/dist/modals/CheckoutModal/stepTransition.d.ts +11 -5
- package/dist/modals/CheckoutModal/stepTransition.track.d.ts +3 -3
- package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.d.ts +2 -2
- package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeTokenDisplayRow.d.ts +1 -1
- package/dist/modals/ProfileDetails/FunProfileViews/Home/ProfileTitleSection.d.ts +2 -2
- package/dist/modals/ProfileDetails/FunProfileViews/Home/index.d.ts +1 -1
- package/dist/modals/WithdrawalModal/ErrorMessage.d.ts +2 -2
- package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +4 -4
- package/dist/modals/WithdrawalModal/RecipientAddress.d.ts +1 -1
- package/dist/modals/WithdrawalModal/WithdrawAmountInput.d.ts +1 -1
- package/dist/modals/WithdrawalModal/WithdrawalCallbackSuccess.d.ts +1 -1
- package/dist/modals/WithdrawalModal/WithdrawalContent.d.ts +1 -1
- package/dist/modals/WithdrawalModal/WithdrawalModal.d.ts +1 -1
- package/dist/modals/WithdrawalModal/WithdrawalTypeSelect.d.ts +1 -1
- package/dist/modals/WithdrawalModal/useWithdrawal.d.ts +3 -3
- package/dist/providers/FunkitBrokerageProvider.d.ts +2 -2
- package/dist/providers/FunkitCheckoutContext/index.d.ts +1 -1
- package/dist/providers/FunkitCheckoutContext/track.d.ts +4 -4
- package/dist/providers/FunkitCheckoutContext/types.d.ts +2 -28
- package/dist/providers/FunkitConfigContext.d.ts +3 -3
- package/dist/providers/FunkitHistoryContext.d.ts +2 -2
- package/dist/providers/FunkitProvider.d.ts +2 -2
- package/dist/providers/FunkitQuoteContext.track.d.ts +4 -4
- package/dist/providers/GeneralWalletProvider.d.ts +2 -2
- package/dist/providers/QuoteModeContext.d.ts +1 -1
- package/dist/providers/SwappedProvider.d.ts +1 -1
- package/dist/utils/assets.d.ts +1 -1
- package/dist/utils/bluvo.d.ts +3 -3
- package/dist/utils/checkout.d.ts +3 -3
- package/dist/utils/depositCutoff.d.ts +1 -1
- package/dist/utils/flags/resolver.d.ts +34 -0
- package/dist/utils/funkitProvider.d.ts +1 -1
- package/dist/utils/payment.d.ts +1 -1
- package/dist/utils/polygonRpcCheck.d.ts +1 -1
- package/dist/utils/purifyCheckoutHistoryItem.d.ts +1 -1
- package/dist/utils/swapped.d.ts +1 -1
- package/dist/utils/tokenTransfer/disabledList.d.ts +1 -14
- package/dist/utils/tokenTransfer/types.d.ts +5 -30
- package/dist/utils/withdrawal.d.ts +1 -1
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/chunk-2VP2F6EK.js +70 -0
- package/dist/wallets/walletConnectors/chunk-4T6ZSRJF.js +69 -0
- package/dist/wallets/walletConnectors/chunk-6BW3HLBG.js +96 -0
- package/dist/wallets/walletConnectors/chunk-CCQV2ZET.js +218 -0
- package/dist/wallets/walletConnectors/chunk-CPI4TD43.js +99 -0
- package/dist/wallets/walletConnectors/chunk-F5XEEVG6.js +98 -0
- package/dist/wallets/walletConnectors/chunk-HNRB7KJU.js +92 -0
- package/dist/wallets/walletConnectors/chunk-HTHAK6XB.js +93 -0
- package/dist/wallets/walletConnectors/chunk-MIQTHJ6X.js +66 -0
- package/dist/wallets/walletConnectors/chunk-RB3HR4R2.js +95 -0
- package/dist/wallets/walletConnectors/chunk-RVOY537T.js +100 -0
- package/dist/wallets/walletConnectors/chunk-STVVP43G.js +94 -0
- package/dist/wallets/walletConnectors/chunk-UK7C2JXW.js +87 -0
- package/dist/wallets/walletConnectors/chunk-VAPGUPHO.js +92 -0
- package/dist/wallets/walletConnectors/chunk-VTM6EECM.js +110 -0
- package/dist/wallets/walletConnectors/chunk-X6CGV36L.js +103 -0
- package/dist/wallets/walletConnectors/chunk-YEZM4CK4.js +96 -0
- package/dist/wallets/walletConnectors/chunk-ZNX4EMPB.js +106 -0
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +63 -63
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +5 -5
- /package/dist/clients/{chunk-52NKHZS2.js → chunk-7FIVHWNC.js} +0 -0
- /package/dist/clients/{chunk-MOUTRRN3.js → chunk-S7FRYR55.js} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
lightTheme
|
|
4
|
-
} from "./chunk-67BKQQNG.js";
|
|
5
2
|
import {
|
|
6
3
|
darkTheme
|
|
7
4
|
} from "./chunk-36KVHK22.js";
|
|
5
|
+
import {
|
|
6
|
+
lightTheme
|
|
7
|
+
} from "./chunk-67BKQQNG.js";
|
|
8
8
|
import {
|
|
9
9
|
systemFontStack
|
|
10
10
|
} from "./chunk-4YEAUICE.js";
|
|
@@ -448,7 +448,7 @@ function Avatar({ address, imageUrl, loading, size }) {
|
|
|
448
448
|
}
|
|
449
449
|
|
|
450
450
|
// src/components/ConnectButton/ConnectButton.tsx
|
|
451
|
-
import
|
|
451
|
+
import React304, { useEffect as useEffect83, useState as useState88 } from "react";
|
|
452
452
|
|
|
453
453
|
// src/css/touchableStyles.css.ts
|
|
454
454
|
var active = { shrink: "_7rkubb8", shrinkSm: "_7rkubb9" };
|
|
@@ -905,7 +905,7 @@ var getRemoteImageStyles = (isRemoteImage, isRemoteImageLoaded, src) => {
|
|
|
905
905
|
|
|
906
906
|
// src/components/ConnectButton/ConnectButtonRenderer.tsx
|
|
907
907
|
import { formatCurrencyAndStringify as formatCurrencyAndStringify16, isMobile as isMobile14, noop as noop9 } from "@funkit/utils";
|
|
908
|
-
import
|
|
908
|
+
import React303 from "react";
|
|
909
909
|
import { formatUnits as formatUnits6 } from "viem";
|
|
910
910
|
|
|
911
911
|
// src/hooks/useIsMounted.ts
|
|
@@ -968,15 +968,17 @@ import {
|
|
|
968
968
|
getAllWalletTokens
|
|
969
969
|
} from "@funkit/api-base";
|
|
970
970
|
import { keepPreviousData as keepPreviousData4, useQuery as useQuery28 } from "@tanstack/react-query";
|
|
971
|
-
import { arbitrum as arbitrum7, polygon as
|
|
971
|
+
import { arbitrum as arbitrum7, polygon as polygon8 } from "viem/chains";
|
|
972
972
|
|
|
973
973
|
// src/domains/asset.ts
|
|
974
974
|
import {
|
|
975
975
|
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO12,
|
|
976
|
-
|
|
976
|
+
hyperEvmChain as hyperEvmChain4,
|
|
977
|
+
monadChain as monadChain2,
|
|
978
|
+
solanaChain as solanaChain6
|
|
977
979
|
} from "@funkit/chains";
|
|
978
|
-
import { isTokenAddressEquivalent as
|
|
979
|
-
import { arbitrum as arbitrum6, base as base6, mainnet as mainnet13, optimism as optimism2, polygon as
|
|
980
|
+
import { isTokenAddressEquivalent as isTokenAddressEquivalent6, isTokenEquivalent as isTokenEquivalent11 } from "@funkit/utils";
|
|
981
|
+
import { arbitrum as arbitrum6, base as base6, bsc as bsc2, mainnet as mainnet13, optimism as optimism2, polygon as polygon7 } from "viem/chains";
|
|
980
982
|
|
|
981
983
|
// src/utils/checkout.ts
|
|
982
984
|
import {
|
|
@@ -985,17 +987,17 @@ import {
|
|
|
985
987
|
toMergedCheckoutHistoryItem
|
|
986
988
|
} from "@funkit/connect-core";
|
|
987
989
|
import {
|
|
988
|
-
FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS as
|
|
990
|
+
FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS as FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS5,
|
|
989
991
|
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO11,
|
|
990
992
|
lightningChain as lightningChain4,
|
|
991
|
-
solanaChain as
|
|
992
|
-
tronChain as
|
|
993
|
+
solanaChain as solanaChain5,
|
|
994
|
+
tronChain as tronChain4
|
|
993
995
|
} from "@funkit/chains";
|
|
994
996
|
import { getRelayAssetInfo } from "@funkit/fun-relay";
|
|
995
997
|
import {
|
|
996
998
|
formatCryptoAndStringify as formatCryptoAndStringify11,
|
|
997
999
|
isNumericString,
|
|
998
|
-
isTokenAddressEquivalent as
|
|
1000
|
+
isTokenAddressEquivalent as isTokenAddressEquivalent5,
|
|
999
1001
|
isTokenEquivalent as isTokenEquivalent10,
|
|
1000
1002
|
round as round3
|
|
1001
1003
|
} from "@funkit/utils";
|
|
@@ -1013,8 +1015,10 @@ import {
|
|
|
1013
1015
|
HYENA_API_KEY,
|
|
1014
1016
|
HYPERDASH_API_KEY,
|
|
1015
1017
|
LIGHTERXYZ_API_KEY,
|
|
1018
|
+
MALLARD_API_KEY,
|
|
1016
1019
|
MONAD_API_KEY,
|
|
1017
1020
|
MONKEY_TILT_API_KEY,
|
|
1021
|
+
NADO_API_KEY,
|
|
1018
1022
|
OSTIUM_API_KEY,
|
|
1019
1023
|
PERPL_API_KEY,
|
|
1020
1024
|
POLYMARKET_API_KEY
|
|
@@ -1032,9 +1036,6 @@ function isEtherealCustomer(apiKey) {
|
|
|
1032
1036
|
function isMonadCustomer(apiKey) {
|
|
1033
1037
|
return apiKey === MONAD_API_KEY;
|
|
1034
1038
|
}
|
|
1035
|
-
function isBasedCustomer(apiKey) {
|
|
1036
|
-
return apiKey === BASED_API_KEY;
|
|
1037
|
-
}
|
|
1038
1039
|
function isHyenaCustomer(apiKey) {
|
|
1039
1040
|
return apiKey === HYENA_API_KEY;
|
|
1040
1041
|
}
|
|
@@ -1047,6 +1048,12 @@ function isFanaticsCustomer(apiKey) {
|
|
|
1047
1048
|
function isAaveCustomer(apiKey) {
|
|
1048
1049
|
return apiKey === AAVE_API_KEY;
|
|
1049
1050
|
}
|
|
1051
|
+
function isNadoCustomer(apiKey) {
|
|
1052
|
+
return apiKey === NADO_API_KEY;
|
|
1053
|
+
}
|
|
1054
|
+
function isMallardCustomer(apiKey) {
|
|
1055
|
+
return apiKey === MALLARD_API_KEY;
|
|
1056
|
+
}
|
|
1050
1057
|
function isCustomerNativeFastPathEnabled(apiKey) {
|
|
1051
1058
|
return isAaveCustomer(apiKey);
|
|
1052
1059
|
}
|
|
@@ -1116,8 +1123,8 @@ import {
|
|
|
1116
1123
|
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO10,
|
|
1117
1124
|
SOLANA_MAINNET_CHAIN_ID as SOLANA_MAINNET_CHAIN_ID2
|
|
1118
1125
|
} from "@funkit/chains";
|
|
1119
|
-
import { isNotNullish as isNotNullish8, isTokenAddressEquivalent as
|
|
1120
|
-
import
|
|
1126
|
+
import { isNotNullish as isNotNullish8, isTokenAddressEquivalent as isTokenAddressEquivalent4 } from "@funkit/utils";
|
|
1127
|
+
import React302, {
|
|
1121
1128
|
createContext as createContext21,
|
|
1122
1129
|
useCallback as useCallback56,
|
|
1123
1130
|
useContext as useContext21,
|
|
@@ -1133,6 +1140,7 @@ var NATIVE_TOKEN = FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS;
|
|
|
1133
1140
|
var WETH_MAINNET_ADDRESS = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2";
|
|
1134
1141
|
var FUN_ORG_NAME = "Fun.xyz";
|
|
1135
1142
|
var FUN_TERMS_URL = "https://fun.xyz/terms";
|
|
1143
|
+
var FUN_HELP_FAQ_URL = "https://intercom.help/funxyz/en/articles/10003876-transfer-crypto-guide-faqs";
|
|
1136
1144
|
var PLACEHOLDER_FUNKIT_USER_INFO = {
|
|
1137
1145
|
id: "0x",
|
|
1138
1146
|
address: "0x",
|
|
@@ -1526,6 +1534,15 @@ function createPaymentMethodInfo(params) {
|
|
|
1526
1534
|
}
|
|
1527
1535
|
|
|
1528
1536
|
// src/domains/clientMetadata.ts
|
|
1537
|
+
function stripFunctionsForBackend(config) {
|
|
1538
|
+
return {
|
|
1539
|
+
...config,
|
|
1540
|
+
generateActionsParams: void 0,
|
|
1541
|
+
dynamicTargetAssetCandidates: config.dynamicTargetAssetCandidates?.map(
|
|
1542
|
+
({ generateActionsParams: _stripped, ...candidate }) => candidate
|
|
1543
|
+
)
|
|
1544
|
+
};
|
|
1545
|
+
}
|
|
1529
1546
|
function generateClientMetadataForBackend({
|
|
1530
1547
|
checkoutItem,
|
|
1531
1548
|
latestQuote,
|
|
@@ -1541,11 +1558,9 @@ function generateClientMetadataForBackend({
|
|
|
1541
1558
|
initSettings: {
|
|
1542
1559
|
...checkoutItem.initSettings,
|
|
1543
1560
|
//TODO: on callbacks are not serializable, should be removed
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
generateActionsParams: void 0
|
|
1548
|
-
}
|
|
1561
|
+
// Functions cannot be serialized over REST API; strip the top-level
|
|
1562
|
+
// callback and every candidate's per-route override too.
|
|
1563
|
+
config: stripFunctionsForBackend(checkoutItem.initSettings.config)
|
|
1549
1564
|
},
|
|
1550
1565
|
selectedSourceAssetInfo: checkoutItem.selectedSourceAssetInfo,
|
|
1551
1566
|
selectedPaymentMethodInfo: checkoutItem.selectedPaymentMethodInfo ? checkoutItem.selectedPaymentMethodInfo : null,
|
|
@@ -1603,7 +1618,8 @@ function mergeDynamicTargetAssetCandidateIntoConfig(config, candidate) {
|
|
|
1603
1618
|
targetAssetTicker: candidate.tokenSymbol,
|
|
1604
1619
|
iconSrc: candidate.iconSrc,
|
|
1605
1620
|
dynamicRoutingId: candidate.dynamicRoutingId ?? config.dynamicRoutingId,
|
|
1606
|
-
customRecipient: candidate.customRecipient ?? config.customRecipient
|
|
1621
|
+
customRecipient: candidate.customRecipient ?? config.customRecipient,
|
|
1622
|
+
generateActionsParams: "generateActionsParams" in candidate ? candidate.generateActionsParams : config.generateActionsParams
|
|
1607
1623
|
};
|
|
1608
1624
|
}
|
|
1609
1625
|
|
|
@@ -1644,7 +1660,7 @@ function setFunkitConnectVersion({ version }) {
|
|
|
1644
1660
|
localStorage.setItem(storageKey, version);
|
|
1645
1661
|
}
|
|
1646
1662
|
function getCurrentSdkVersion() {
|
|
1647
|
-
return "9.23.0";
|
|
1663
|
+
return "9.23.2-next.0";
|
|
1648
1664
|
}
|
|
1649
1665
|
function useFingerprint() {
|
|
1650
1666
|
const fingerprint = useCallback3(() => {
|
|
@@ -2132,8 +2148,8 @@ function validateFops(res, logTag) {
|
|
|
2132
2148
|
// src/hooks/useTokenTransfer.ts
|
|
2133
2149
|
import {
|
|
2134
2150
|
bitcoinChain,
|
|
2135
|
-
|
|
2136
|
-
|
|
2151
|
+
FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS as FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS2,
|
|
2152
|
+
hyperCoreChain,
|
|
2137
2153
|
solanaChain,
|
|
2138
2154
|
tronChain
|
|
2139
2155
|
} from "@funkit/chains";
|
|
@@ -2202,7 +2218,9 @@ var CHECKOUT_STEP_TO_NAVIGATION_EVENT = {
|
|
|
2202
2218
|
["brokerage_two_fa" /* BROKERAGE_TWO_FA */]: "fc::navigate::brokerage_two_fa" /* NAVIGATE_BROKERAGE_TWO_FA */,
|
|
2203
2219
|
["brokerage_success" /* BROKERAGE_SUCCESS */]: "fc::navigate::brokerage_success" /* NAVIGATE_BROKERAGE_SUCCESS */,
|
|
2204
2220
|
["swapped_iframe" /* SWAPPED_IFRAME */]: "fc::navigate::swapped_iframe" /* NAVIGATE_SWAPPED_IFRAME */,
|
|
2205
|
-
["perps_transfer" /* PERPS_TRANSFER */]: "fc::navigate::perps_transfer" /* NAVIGATE_PERPS_TRANSFER
|
|
2221
|
+
["perps_transfer" /* PERPS_TRANSFER */]: "fc::navigate::perps_transfer" /* NAVIGATE_PERPS_TRANSFER */,
|
|
2222
|
+
["withdrawal_enter_amount" /* WITHDRAWAL_ENTER_AMOUNT */]: null,
|
|
2223
|
+
["withdrawal_complete" /* WITHDRAWAL_COMPLETE */]: null
|
|
2206
2224
|
};
|
|
2207
2225
|
var CHECKOUT_STEP_TO_READY_EVENT = {
|
|
2208
2226
|
["confirmation" /* CONFIRMATION */]: "fc::ready::confirmation" /* READY_CONFIRMATION */,
|
|
@@ -2214,6 +2232,9 @@ var CHECKOUT_STEP_TO_READY_EVENT = {
|
|
|
2214
2232
|
};
|
|
2215
2233
|
var trackEventFromNextState = (nextState) => {
|
|
2216
2234
|
const eventName = CHECKOUT_STEP_TO_NAVIGATION_EVENT[nextState.step];
|
|
2235
|
+
if (!eventName) {
|
|
2236
|
+
return null;
|
|
2237
|
+
}
|
|
2217
2238
|
return {
|
|
2218
2239
|
eventName,
|
|
2219
2240
|
metadata: nextState
|
|
@@ -2451,16 +2472,15 @@ var useTokenTransfer = (selectedChainId, selectedToken, chainIds) => {
|
|
|
2451
2472
|
const enableUniversal = useDynamicConfig(
|
|
2452
2473
|
"enabletokentransferuniversaldepositaddress"
|
|
2453
2474
|
);
|
|
2454
|
-
const estPriceImpact = usePriceImpactEstimation(
|
|
2455
|
-
selectedToken,
|
|
2456
|
-
selectedChainId
|
|
2457
|
-
);
|
|
2475
|
+
const estPriceImpact = usePriceImpactEstimation(selectedToken);
|
|
2458
2476
|
const checkoutConfig = checkoutItem?.initSettings.config;
|
|
2459
2477
|
const maxSlippage = useMaxSlippage({
|
|
2460
2478
|
apiKey,
|
|
2461
2479
|
sourceToken: selectedToken,
|
|
2462
2480
|
selectedChainId,
|
|
2463
|
-
|
|
2481
|
+
targetChainId: checkoutConfig?.targetChain,
|
|
2482
|
+
targetAssetTicker: checkoutConfig?.targetAssetTicker ?? "",
|
|
2483
|
+
targetAssetAddress: checkoutConfig?.targetAsset
|
|
2464
2484
|
});
|
|
2465
2485
|
const { transferInit, recipientAddr } = useCheckoutTransferInit();
|
|
2466
2486
|
const minTransferUsd = useMinTransferValueUsd(selectedChainId);
|
|
@@ -2535,60 +2555,84 @@ var useMinTransferValues = (chainIds) => {
|
|
|
2535
2555
|
);
|
|
2536
2556
|
}, [chainIds, limits]);
|
|
2537
2557
|
};
|
|
2538
|
-
var
|
|
2558
|
+
var USDC_FAMILY_TICKERS = /* @__PURE__ */ new Set([
|
|
2559
|
+
"USDC",
|
|
2560
|
+
"USDC.e",
|
|
2561
|
+
"pUSD",
|
|
2562
|
+
"USDC (Perps)",
|
|
2563
|
+
"USDC (Spot)"
|
|
2564
|
+
]);
|
|
2565
|
+
var USDT_FAMILY_TICKERS = /* @__PURE__ */ new Set(["USDT", "USDT0", "USD\u20AE0"]);
|
|
2566
|
+
var USDC_USDT_FAMILY_TICKERS = /* @__PURE__ */ new Set([
|
|
2567
|
+
...USDC_FAMILY_TICKERS,
|
|
2568
|
+
...USDT_FAMILY_TICKERS
|
|
2569
|
+
]);
|
|
2570
|
+
var isSameUsdcOrUsdtFamily = (sourceToken, targetTicker) => {
|
|
2571
|
+
if (!sourceToken) return false;
|
|
2572
|
+
if (sourceToken === targetTicker) return true;
|
|
2573
|
+
if (USDC_FAMILY_TICKERS.has(sourceToken) && USDC_FAMILY_TICKERS.has(targetTicker)) {
|
|
2574
|
+
return true;
|
|
2575
|
+
}
|
|
2576
|
+
return USDT_FAMILY_TICKERS.has(sourceToken) && USDT_FAMILY_TICKERS.has(targetTicker);
|
|
2577
|
+
};
|
|
2578
|
+
var usePriceImpactEstimation = (selectedToken) => {
|
|
2539
2579
|
const { t } = useFunkitTranslation();
|
|
2540
2580
|
const { checkoutItem } = useCheckoutContext();
|
|
2541
2581
|
const isStablecoin = useIsStablecoin();
|
|
2542
2582
|
const label = t("fees.priceImpact");
|
|
2543
|
-
const isUSDC = selectedToken === "USDC" || selectedToken === "USDC.e";
|
|
2544
|
-
const isUSDT = selectedToken === "USDT";
|
|
2545
|
-
const isPreferredChainId = selectedChainId !== void 0 && isPreferredChain(selectedChainId);
|
|
2546
2583
|
const targetAssetTicker = checkoutItem?.initSettings.config.targetAssetTicker ?? "";
|
|
2547
|
-
if (!
|
|
2548
|
-
return { label, value: 0
|
|
2584
|
+
if (!selectedToken) {
|
|
2585
|
+
return { label, value: 0 };
|
|
2549
2586
|
}
|
|
2550
|
-
if (
|
|
2587
|
+
if (isSameUsdcOrUsdtFamily(selectedToken, targetAssetTicker)) {
|
|
2551
2588
|
return { label, value: 0 };
|
|
2552
2589
|
}
|
|
2553
|
-
if (
|
|
2590
|
+
if (USDC_USDT_FAMILY_TICKERS.has(selectedToken) && USDC_USDT_FAMILY_TICKERS.has(targetAssetTicker)) {
|
|
2554
2591
|
return { label, value: 0.05 };
|
|
2555
2592
|
}
|
|
2556
|
-
|
|
2593
|
+
if (isStablecoin(selectedToken) && isStablecoin(targetAssetTicker)) {
|
|
2594
|
+
return { label, value: 0.1 };
|
|
2595
|
+
}
|
|
2596
|
+
return { label, value: 0.25 };
|
|
2557
2597
|
};
|
|
2558
2598
|
var useMaxSlippage = ({
|
|
2559
2599
|
apiKey,
|
|
2560
2600
|
sourceToken,
|
|
2561
2601
|
selectedChainId,
|
|
2562
|
-
|
|
2602
|
+
targetChainId,
|
|
2603
|
+
targetAssetTicker,
|
|
2604
|
+
targetAssetAddress
|
|
2563
2605
|
}) => {
|
|
2564
2606
|
const { t } = useFunkitTranslation();
|
|
2565
2607
|
const isStablecoin = useIsStablecoin();
|
|
2566
2608
|
const label = t("fees.maxSlippage");
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
const defaultValue = 0.25;
|
|
2570
|
-
if (isBasedCustomer(apiKey) && isArbitrum && sourceToken === "USDC") {
|
|
2571
|
-
return { label, value: 0.1 };
|
|
2609
|
+
if (!sourceToken || !selectedChainId) {
|
|
2610
|
+
return { label, value: 0 };
|
|
2572
2611
|
}
|
|
2573
|
-
|
|
2574
|
-
|
|
2612
|
+
const isSourceArbitrumUsdc = selectedChainId === arbitrum2.id && sourceToken === "USDC";
|
|
2613
|
+
const isTargetHypercoreUsdcPerps = Number(targetChainId) === hyperCoreChain.id && targetAssetAddress === FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS2;
|
|
2614
|
+
if (isTargetHypercoreUsdcPerps && isSourceArbitrumUsdc) {
|
|
2615
|
+
return { label, value: 0 };
|
|
2616
|
+
}
|
|
2617
|
+
if (isLighterxyzCustomer(apiKey) && sourceToken === "USDC") {
|
|
2575
2618
|
return { label, value: 0.01 };
|
|
2576
2619
|
}
|
|
2577
|
-
if (isPolymarketCustomer(apiKey) &&
|
|
2578
|
-
|
|
2579
|
-
return { label, value: 0 };
|
|
2580
|
-
}
|
|
2581
|
-
if (sourceToken === "USDC") {
|
|
2582
|
-
return { label, value: 0.05 };
|
|
2583
|
-
}
|
|
2584
|
-
if (sourceToken === "USDT") {
|
|
2585
|
-
return { label, value: 0.2 };
|
|
2586
|
-
}
|
|
2620
|
+
if (isPolymarketCustomer(apiKey) && sourceToken === "USDC.e") {
|
|
2621
|
+
return { label, value: 0 };
|
|
2587
2622
|
}
|
|
2588
|
-
if (
|
|
2589
|
-
return { label, value:
|
|
2623
|
+
if (selectedChainId === Number(targetChainId) && sourceToken === targetAssetTicker) {
|
|
2624
|
+
return { label, value: 0 };
|
|
2625
|
+
}
|
|
2626
|
+
if (isSameUsdcOrUsdtFamily(sourceToken, targetAssetTicker)) {
|
|
2627
|
+
return { label, value: 0.05 };
|
|
2590
2628
|
}
|
|
2591
|
-
|
|
2629
|
+
if (USDC_USDT_FAMILY_TICKERS.has(sourceToken) && USDC_USDT_FAMILY_TICKERS.has(targetAssetTicker)) {
|
|
2630
|
+
return { label, value: 0.2 };
|
|
2631
|
+
}
|
|
2632
|
+
if (isPreferredChain(selectedChainId) && isPreferredChain(Number(targetChainId)) || isStablecoin(sourceToken) && isStablecoin(targetAssetTicker)) {
|
|
2633
|
+
return { label, value: 0.25 };
|
|
2634
|
+
}
|
|
2635
|
+
return { label, value: 1 };
|
|
2592
2636
|
};
|
|
2593
2637
|
|
|
2594
2638
|
// src/providers/FunkitMoonpayProvider.tsx
|
|
@@ -2932,9 +2976,9 @@ import {
|
|
|
2932
2976
|
BluvoWithdrawalError
|
|
2933
2977
|
} from "@funkit/api-base";
|
|
2934
2978
|
import {
|
|
2935
|
-
FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS as
|
|
2979
|
+
FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS as FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS3,
|
|
2936
2980
|
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO,
|
|
2937
|
-
hyperCoreChain,
|
|
2981
|
+
hyperCoreChain as hyperCoreChain2,
|
|
2938
2982
|
hyperEvmChain as hyperEvmChain2
|
|
2939
2983
|
} from "@funkit/chains";
|
|
2940
2984
|
import { v4 as uuid } from "uuid";
|
|
@@ -2980,7 +3024,7 @@ function getPreferredNetwork(networks, targetChainId) {
|
|
|
2980
3024
|
const networkMap = Object.fromEntries(
|
|
2981
3025
|
validNetworks.map((n) => [n.chainId?.toString(), n])
|
|
2982
3026
|
);
|
|
2983
|
-
const isArbritrumOverride = [
|
|
3027
|
+
const isArbritrumOverride = [hyperCoreChain2, hyperEvmChain2].some(
|
|
2984
3028
|
({ id }) => id.toString() === targetChainId
|
|
2985
3029
|
);
|
|
2986
3030
|
if (validNetworks.length === 0) {
|
|
@@ -3068,7 +3112,7 @@ function transformBluvoBalancesToAssetHoldings(balances, preferredChainId) {
|
|
|
3068
3112
|
continue;
|
|
3069
3113
|
}
|
|
3070
3114
|
const isNativeCurrency = chainInfo.nativeCurrency.symbol.toUpperCase() === asset.toUpperCase();
|
|
3071
|
-
const normalizedTokenAddress = isNativeCurrency ?
|
|
3115
|
+
const normalizedTokenAddress = isNativeCurrency ? FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS3 : tokenAddress;
|
|
3072
3116
|
const chainSymbolKey = combineChainSymbolOrAddress({
|
|
3073
3117
|
chainId: chainId2.toString(),
|
|
3074
3118
|
symbolOrAddress: asset
|
|
@@ -3331,11 +3375,11 @@ import {
|
|
|
3331
3375
|
} from "@funkit/api-base";
|
|
3332
3376
|
import {
|
|
3333
3377
|
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO2,
|
|
3334
|
-
hyperCoreChain as
|
|
3378
|
+
hyperCoreChain as hyperCoreChain3
|
|
3335
3379
|
} from "@funkit/chains";
|
|
3336
3380
|
import { ResourceNotFoundError } from "@funkit/utils";
|
|
3337
3381
|
var findBridgeSupportedChain = (chainId2) => {
|
|
3338
|
-
if (chainId2 ===
|
|
3382
|
+
if (chainId2 === hyperCoreChain3.id.toString()) {
|
|
3339
3383
|
return "arbitrum";
|
|
3340
3384
|
}
|
|
3341
3385
|
const chainName = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO2[chainId2]?.name.toLowerCase();
|
|
@@ -3641,7 +3685,7 @@ function useCreateVirtualBankAccount() {
|
|
|
3641
3685
|
|
|
3642
3686
|
// src/hooks/useWalletAssetHoldings.ts
|
|
3643
3687
|
import {
|
|
3644
|
-
FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS as
|
|
3688
|
+
FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS as FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS4,
|
|
3645
3689
|
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO3
|
|
3646
3690
|
} from "@funkit/chains";
|
|
3647
3691
|
import * as dnum2 from "dnum";
|
|
@@ -3776,7 +3820,7 @@ var processWalletAssets = (walletAssets, targetChain, isStablecoin) => {
|
|
|
3776
3820
|
chainId: asset.chainId,
|
|
3777
3821
|
symbolOrAddress: asset.symbol
|
|
3778
3822
|
});
|
|
3779
|
-
const normalizedTokenAddress = assetChainInfo?.nativeCurrency.symbol.toUpperCase() === asset.symbol.toUpperCase() ?
|
|
3823
|
+
const normalizedTokenAddress = assetChainInfo?.nativeCurrency.symbol.toUpperCase() === asset.symbol.toUpperCase() ? FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS4 : asset.contractAddress;
|
|
3780
3824
|
const normalizeAmount = getNormalizedTokenBalance(
|
|
3781
3825
|
BigInt(asset.tokenBalance),
|
|
3782
3826
|
asset.decimals
|
|
@@ -3808,6 +3852,7 @@ var processWalletAssets = (walletAssets, targetChain, isStablecoin) => {
|
|
|
3808
3852
|
};
|
|
3809
3853
|
function useWalletAssetHoldings(targetChain) {
|
|
3810
3854
|
const { walletAssets, isLoading, totalWalletAssetsUsd } = useWalletAssets();
|
|
3855
|
+
const { apiKey } = useFunkitConfig();
|
|
3811
3856
|
const { checkoutItem } = useCheckoutContext();
|
|
3812
3857
|
const config = checkoutItem?.initSettings.config;
|
|
3813
3858
|
const { walletAddress, isUserLoggedIn } = useGeneralWallet();
|
|
@@ -3844,7 +3889,7 @@ function useWalletAssetHoldings(targetChain) {
|
|
|
3844
3889
|
asset.tokenAddress
|
|
3845
3890
|
),
|
|
3846
3891
|
minValueThreshold,
|
|
3847
|
-
isDynamicRoutingEnabled,
|
|
3892
|
+
isLighterDynamicRoutingEnabled: isDynamicRoutingEnabled && isLighterxyzCustomer(apiKey),
|
|
3848
3893
|
t
|
|
3849
3894
|
});
|
|
3850
3895
|
return isUsable;
|
|
@@ -5818,7 +5863,7 @@ var useFunkitPostCheckoutInternal = (checkoutId) => {
|
|
|
5818
5863
|
};
|
|
5819
5864
|
|
|
5820
5865
|
// src/providers/ModalContext.tsx
|
|
5821
|
-
import
|
|
5866
|
+
import React301, {
|
|
5822
5867
|
createContext as createContext20,
|
|
5823
5868
|
useCallback as useCallback55,
|
|
5824
5869
|
useContext as useContext20,
|
|
@@ -10025,6 +10070,8 @@ var en_default = {
|
|
|
10025
10070
|
minDepositAmountTooltip: "Minimum deposit amount required for the selected chain.",
|
|
10026
10071
|
yourDepositAddress: "Your deposit address",
|
|
10027
10072
|
termsApply: "Terms apply",
|
|
10073
|
+
terms: "Terms",
|
|
10074
|
+
help: "Help",
|
|
10028
10075
|
depositAddressOriginalRecipient: "Send any accepted token to this address",
|
|
10029
10076
|
depositAddressUniversal: "Send any accepted token to this address and it will auto swap to {{targetToken}} in your account",
|
|
10030
10077
|
groupPopularChains: "Popular",
|
|
@@ -10628,6 +10675,8 @@ var es_default = {
|
|
|
10628
10675
|
minDepositAmountTooltip: "Monto m\xEDnimo de dep\xF3sito requerido para la cadena seleccionada.",
|
|
10629
10676
|
yourDepositAddress: "Tu direcci\xF3n de dep\xF3sito",
|
|
10630
10677
|
termsApply: "Se aplican t\xE9rminos",
|
|
10678
|
+
terms: "T\xE9rminos",
|
|
10679
|
+
help: "Ayuda",
|
|
10631
10680
|
depositAddressOriginalRecipient: "Env\xEDa cualquier token aceptado a esta direcci\xF3n",
|
|
10632
10681
|
depositAddressUniversal: "Env\xEDa cualquier token aceptado a esta direcci\xF3n y se intercambiar\xE1 autom\xE1ticamente a {{targetToken}} en tu cuenta",
|
|
10633
10682
|
groupPopularChains: "Populares",
|
|
@@ -11228,6 +11277,8 @@ var fr_default = {
|
|
|
11228
11277
|
minDepositAmountTooltip: "Montant de d\xE9p\xF4t minimum requis pour la cha\xEEne s\xE9lectionn\xE9e.",
|
|
11229
11278
|
yourDepositAddress: "Votre adresse de d\xE9p\xF4t",
|
|
11230
11279
|
termsApply: "Conditions applicables",
|
|
11280
|
+
terms: "Conditions",
|
|
11281
|
+
help: "Aide",
|
|
11231
11282
|
depositAddressOriginalRecipient: "Envoyez n'importe quelle devise prise en charge \xE0 cette adresse",
|
|
11232
11283
|
depositAddressUniversal: "Envoyez n'importe quelle devise prise en charge \xE0 cette adresse et elle sera automatiquement \xE9chang\xE9e contre {{targetToken}} dans votre compte",
|
|
11233
11284
|
groupPopularChains: "Populaires",
|
|
@@ -11828,6 +11879,8 @@ var ja_default = {
|
|
|
11828
11879
|
minDepositAmountTooltip: "\u9078\u629E\u3057\u305F\u30C1\u30A7\u30FC\u30F3\u306B\u5FC5\u8981\u306A\u6700\u5C0F\u5165\u91D1\u984D\u3002",
|
|
11829
11880
|
yourDepositAddress: "\u3042\u306A\u305F\u306E\u5165\u91D1\u30A2\u30C9\u30EC\u30B9",
|
|
11830
11881
|
termsApply: "\u5229\u7528\u898F\u7D04\u304C\u9069\u7528\u3055\u308C\u307E\u3059",
|
|
11882
|
+
terms: "\u5229\u7528\u898F\u7D04",
|
|
11883
|
+
help: "\u30D8\u30EB\u30D7",
|
|
11831
11884
|
depositAddressOriginalRecipient: "\u3053\u306E\u30A2\u30C9\u30EC\u30B9\u306B\u5BFE\u5FDC\u3059\u308B\u30C8\u30FC\u30AF\u30F3\u3092\u9001\u4FE1\u3057\u3066\u304F\u3060\u3055\u3044",
|
|
11832
11885
|
depositAddressUniversal: "\u3053\u306E\u30A2\u30C9\u30EC\u30B9\u306B\u5BFE\u5FDC\u3059\u308B\u30C8\u30FC\u30AF\u30F3\u3092\u9001\u4FE1\u3059\u308B\u3068\u3001\u30A2\u30AB\u30A6\u30F3\u30C8\u5185\u3067\u81EA\u52D5\u7684\u306B{{targetToken}}\u306B\u4EA4\u63DB\u3055\u308C\u307E\u3059",
|
|
11833
11886
|
groupPopularChains: "\u4EBA\u6C17",
|
|
@@ -12428,6 +12481,8 @@ var ko_default = {
|
|
|
12428
12481
|
minDepositAmountTooltip: "\uC120\uD0DD\uD55C \uCCB4\uC778\uC5D0 \uD544\uC694\uD55C \uCD5C\uC18C \uC785\uAE08\uC561\uC785\uB2C8\uB2E4.",
|
|
12429
12482
|
yourDepositAddress: "\uC785\uAE08 \uC8FC\uC18C",
|
|
12430
12483
|
termsApply: "\uC57D\uAD00\uC774 \uC801\uC6A9\uB429\uB2C8\uB2E4",
|
|
12484
|
+
terms: "\uC57D\uAD00",
|
|
12485
|
+
help: "\uB3C4\uC6C0\uB9D0",
|
|
12431
12486
|
depositAddressOriginalRecipient: "\uC774 \uC8FC\uC18C\uB85C \uC9C0\uC6D0\uB418\uB294 \uD1A0\uD070\uC744 \uBCF4\uB0B4\uC138\uC694",
|
|
12432
12487
|
depositAddressUniversal: "\uC774 \uC8FC\uC18C\uB85C \uC9C0\uC6D0\uB418\uB294 \uD1A0\uD070\uC744 \uBCF4\uB0B4\uBA74 \uACC4\uC815\uC5D0\uC11C \uC790\uB3D9\uC73C\uB85C {{targetToken}}(\uC73C)\uB85C \uAD50\uD658\uB429\uB2C8\uB2E4",
|
|
12433
12488
|
groupPopularChains: "\uC778\uAE30",
|
|
@@ -13028,6 +13083,8 @@ var ru_default = {
|
|
|
13028
13083
|
minDepositAmountTooltip: "\u041C\u0438\u043D\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0441\u0443\u043C\u043C\u0430 \u0434\u0435\u043F\u043E\u0437\u0438\u0442\u0430 \u0434\u043B\u044F \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0439 \u0441\u0435\u0442\u0438.",
|
|
13029
13084
|
yourDepositAddress: "\u0412\u0430\u0448 \u0430\u0434\u0440\u0435\u0441 \u0434\u0435\u043F\u043E\u0437\u0438\u0442\u0430",
|
|
13030
13085
|
termsApply: "\u0423\u0441\u043B\u043E\u0432\u0438\u044F \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F",
|
|
13086
|
+
terms: "\u0423\u0441\u043B\u043E\u0432\u0438\u044F",
|
|
13087
|
+
help: "\u041F\u043E\u043C\u043E\u0449\u044C",
|
|
13031
13088
|
depositAddressOriginalRecipient: "\u041E\u0442\u043F\u0440\u0430\u0432\u044C\u0442\u0435 \u043B\u044E\u0431\u043E\u0439 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0439 \u0442\u043E\u043A\u0435\u043D \u043F\u043E \u044D\u0442\u043E\u043C\u0443 \u0430\u0434\u0440\u0435\u0441\u0443",
|
|
13032
13089
|
depositAddressUniversal: "\u041E\u0442\u043F\u0440\u0430\u0432\u044C\u0442\u0435 \u043B\u044E\u0431\u043E\u0439 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0439 \u0442\u043E\u043A\u0435\u043D \u043F\u043E \u044D\u0442\u043E\u043C\u0443 \u0430\u0434\u0440\u0435\u0441\u0443 \u0438 \u043C\u044B \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u043E\u0431\u043C\u0435\u043D\u044F\u0435\u043C \u0435\u0433\u043E \u043D\u0430 {{targetToken}} \u0432 \u0432\u0430\u0448\u0435\u043C \u0430\u043A\u043A\u0430\u0443\u043D\u0442\u0435",
|
|
13033
13090
|
groupPopularChains: "\u041F\u043E\u043F\u0443\u043B\u044F\u0440\u043D\u044B\u0435",
|
|
@@ -13628,6 +13685,8 @@ var tr_default = {
|
|
|
13628
13685
|
minDepositAmountTooltip: "Se\xE7ilen a\u011F i\xE7in gereken minimum yat\u0131r\u0131m tutar\u0131.",
|
|
13629
13686
|
yourDepositAddress: "Yat\u0131r\u0131m adresiniz",
|
|
13630
13687
|
termsApply: "\u015Eartlar ge\xE7erlidir",
|
|
13688
|
+
terms: "\u015Eartlar",
|
|
13689
|
+
help: "Yard\u0131m",
|
|
13631
13690
|
depositAddressOriginalRecipient: "Bu adrese kabul edilen herhangi bir token g\xF6nderin",
|
|
13632
13691
|
depositAddressUniversal: "Bu adrese kabul edilen herhangi bir token g\xF6nderin ve hesab\u0131n\u0131zda otomatik olarak {{targetToken}}'a d\xF6n\xFC\u015Ft\xFCr\xFCl\xFCr",
|
|
13633
13692
|
groupPopularChains: "Pop\xFCler",
|
|
@@ -14228,6 +14287,8 @@ var zh_default = {
|
|
|
14228
14287
|
minDepositAmountTooltip: "\u6240\u9009\u94FE\u6240\u9700\u7684\u6700\u4F4E\u5B58\u6B3E\u91D1\u989D\u3002",
|
|
14229
14288
|
yourDepositAddress: "\u60A8\u7684\u5B58\u6B3E\u5730\u5740",
|
|
14230
14289
|
termsApply: "\u6761\u6B3E\u9002\u7528",
|
|
14290
|
+
terms: "\u6761\u6B3E",
|
|
14291
|
+
help: "\u5E2E\u52A9",
|
|
14231
14292
|
depositAddressOriginalRecipient: "\u5411\u6B64\u5730\u5740\u53D1\u9001\u4EFB\u4F55\u652F\u6301\u7684\u4EE3\u5E01",
|
|
14232
14293
|
depositAddressUniversal: "\u5411\u6B64\u5730\u5740\u53D1\u9001\u4EFB\u4F55\u652F\u6301\u7684\u4EE3\u5E01\uFF0C\u4F1A\u81EA\u52A8\u5151\u6362\u4E3A {{targetToken}}",
|
|
14233
14294
|
groupPopularChains: "\u70ED\u95E8",
|
|
@@ -20035,8 +20096,10 @@ function isLive(option) {
|
|
|
20035
20096
|
}
|
|
20036
20097
|
|
|
20037
20098
|
// src/hooks/useTokenTransferConfig.ts
|
|
20099
|
+
import {
|
|
20100
|
+
resolveTokenTransferConfig
|
|
20101
|
+
} from "@funkit/connect-core";
|
|
20038
20102
|
import { useMemo as useMemo27 } from "react";
|
|
20039
|
-
import { polygon as polygon6 } from "viem/chains";
|
|
20040
20103
|
|
|
20041
20104
|
// src/hooks/useSupportedAssets.ts
|
|
20042
20105
|
import {
|
|
@@ -20057,150 +20120,8 @@ function useSupportedAssets(options) {
|
|
|
20057
20120
|
});
|
|
20058
20121
|
}
|
|
20059
20122
|
|
|
20060
|
-
// src/utils/tokenTransfer/disabledList.ts
|
|
20061
|
-
import { isTokenAddressEquivalent } from "@funkit/utils";
|
|
20062
|
-
function isChainDisabled(disabledConfig, chainId2) {
|
|
20063
|
-
if (!disabledConfig) {
|
|
20064
|
-
return false;
|
|
20065
|
-
}
|
|
20066
|
-
const disabledTokens = disabledConfig[String(chainId2)];
|
|
20067
|
-
if (!disabledTokens) {
|
|
20068
|
-
return false;
|
|
20069
|
-
}
|
|
20070
|
-
return disabledTokens.includes("*");
|
|
20071
|
-
}
|
|
20072
|
-
function isAssetDisabled(disabledConfig, chainId2, tokenAddress) {
|
|
20073
|
-
if (!disabledConfig) {
|
|
20074
|
-
return false;
|
|
20075
|
-
}
|
|
20076
|
-
const disabledTokens = disabledConfig[String(chainId2)];
|
|
20077
|
-
if (!disabledTokens) {
|
|
20078
|
-
return false;
|
|
20079
|
-
}
|
|
20080
|
-
if (disabledTokens.includes("*")) {
|
|
20081
|
-
return true;
|
|
20082
|
-
}
|
|
20083
|
-
return disabledTokens.some(
|
|
20084
|
-
(disabledTokenAddress) => isTokenAddressEquivalent({
|
|
20085
|
-
firstTokenAddress: disabledTokenAddress,
|
|
20086
|
-
secondTokenAddress: tokenAddress
|
|
20087
|
-
})
|
|
20088
|
-
);
|
|
20089
|
-
}
|
|
20090
|
-
|
|
20091
20123
|
// src/hooks/useTokenTransferConfig.ts
|
|
20092
|
-
var
|
|
20093
|
-
"USD\u20AE0": "USDT",
|
|
20094
|
-
USDT0: "USDT"
|
|
20095
|
-
};
|
|
20096
|
-
var POLYGON_NATIVE_TOKEN_ALIAS = "MATIC";
|
|
20097
|
-
function lowercaseAddressKeys(response) {
|
|
20098
|
-
return Object.fromEntries(
|
|
20099
|
-
Object.entries(response).map(([chainId2, chainAssets]) => [
|
|
20100
|
-
chainId2,
|
|
20101
|
-
Object.fromEntries(
|
|
20102
|
-
Object.entries(chainAssets).map(([address, metadata]) => [
|
|
20103
|
-
address.toLowerCase(),
|
|
20104
|
-
metadata
|
|
20105
|
-
])
|
|
20106
|
-
)
|
|
20107
|
-
])
|
|
20108
|
-
);
|
|
20109
|
-
}
|
|
20110
|
-
function resolveSymbols(backendSymbol, chainId2, address) {
|
|
20111
|
-
const displaySymbol = SYMBOL_OVERRIDES[backendSymbol] ?? backendSymbol;
|
|
20112
|
-
const alias = chainId2 === polygon6.id && isNativeTokenAddress(address) ? POLYGON_NATIVE_TOKEN_ALIAS : void 0;
|
|
20113
|
-
return { displaySymbol, alias };
|
|
20114
|
-
}
|
|
20115
|
-
function resolveChainAssets(chainConfig, chainAssets, disabledChainAssets) {
|
|
20116
|
-
const { chainId: chainId2 } = chainConfig;
|
|
20117
|
-
const resolvedChainAssets = chainConfig.assets.filter(
|
|
20118
|
-
(configAsset) => !isAssetDisabled(
|
|
20119
|
-
disabledChainAssets,
|
|
20120
|
-
chainId2,
|
|
20121
|
-
configAsset.address.toLowerCase()
|
|
20122
|
-
)
|
|
20123
|
-
).map((configAsset) => {
|
|
20124
|
-
const address = configAsset.address.toLowerCase();
|
|
20125
|
-
const metadata = chainAssets?.[address];
|
|
20126
|
-
if (!metadata) {
|
|
20127
|
-
logger.warn("useTokenTransferConfig:tokenMetadataMissing", {
|
|
20128
|
-
chainId: chainId2,
|
|
20129
|
-
address: configAsset.address
|
|
20130
|
-
});
|
|
20131
|
-
return null;
|
|
20132
|
-
}
|
|
20133
|
-
const { displaySymbol, alias } = resolveSymbols(
|
|
20134
|
-
metadata.symbol,
|
|
20135
|
-
chainId2,
|
|
20136
|
-
address
|
|
20137
|
-
);
|
|
20138
|
-
return {
|
|
20139
|
-
address,
|
|
20140
|
-
metadata: { ...configAsset, ...metadata, symbol: displaySymbol },
|
|
20141
|
-
alias
|
|
20142
|
-
};
|
|
20143
|
-
}).filter((item) => item !== null);
|
|
20144
|
-
const assets = Object.fromEntries(
|
|
20145
|
-
resolvedChainAssets.map(({ address, metadata }) => [address, metadata])
|
|
20146
|
-
);
|
|
20147
|
-
const symbols = [
|
|
20148
|
-
...new Set(
|
|
20149
|
-
resolvedChainAssets.flatMap(
|
|
20150
|
-
({ metadata, alias }) => alias ? [metadata.symbol, alias] : [metadata.symbol]
|
|
20151
|
-
)
|
|
20152
|
-
)
|
|
20153
|
-
];
|
|
20154
|
-
return { assets, symbols };
|
|
20155
|
-
}
|
|
20156
|
-
function resolveNewBadgeSymbols(resolvedChains) {
|
|
20157
|
-
const allBadgeAssets = resolvedChains.flatMap(
|
|
20158
|
-
({ resolvedChainAssets }) => Object.values(resolvedChainAssets.assets).filter((a) => !!a.showNewBadge)
|
|
20159
|
-
);
|
|
20160
|
-
return /* @__PURE__ */ new Set([
|
|
20161
|
-
...allBadgeAssets.filter((a) => a.showNewBadge === "primary").map((a) => a.symbol),
|
|
20162
|
-
...allBadgeAssets.filter((a) => a.showNewBadge !== "primary").map((a) => a.symbol)
|
|
20163
|
-
]);
|
|
20164
|
-
}
|
|
20165
|
-
function resolveTokenTransferConfig(chainConfigs, rawPriorityTokens, disabledChainAssets, allSupportedAssets) {
|
|
20166
|
-
const lowercasedAssets = lowercaseAddressKeys(allSupportedAssets);
|
|
20167
|
-
const resolvedChains = chainConfigs.filter((c) => !isChainDisabled(disabledChainAssets, c.chainId)).map((chainConfig) => ({
|
|
20168
|
-
chainConfig,
|
|
20169
|
-
resolvedChainAssets: resolveChainAssets(
|
|
20170
|
-
chainConfig,
|
|
20171
|
-
lowercasedAssets[String(chainConfig.chainId)],
|
|
20172
|
-
disabledChainAssets
|
|
20173
|
-
)
|
|
20174
|
-
})).filter(({ resolvedChainAssets }) => resolvedChainAssets.symbols.length > 0);
|
|
20175
|
-
const supportedAssets = Object.fromEntries(
|
|
20176
|
-
resolvedChains.map(({ chainConfig, resolvedChainAssets }) => [
|
|
20177
|
-
chainConfig.chainId,
|
|
20178
|
-
resolvedChainAssets.assets
|
|
20179
|
-
])
|
|
20180
|
-
);
|
|
20181
|
-
const symbolsByChainId = Object.fromEntries(
|
|
20182
|
-
resolvedChains.map(({ chainConfig, resolvedChainAssets }) => [
|
|
20183
|
-
chainConfig.chainId,
|
|
20184
|
-
resolvedChainAssets.symbols
|
|
20185
|
-
])
|
|
20186
|
-
);
|
|
20187
|
-
const chainIdSortOrder = resolvedChains.map(
|
|
20188
|
-
({ chainConfig }) => chainConfig.chainId
|
|
20189
|
-
);
|
|
20190
|
-
const defaultChainId = resolvedChains.find(
|
|
20191
|
-
({ chainConfig }) => chainConfig.isDefault
|
|
20192
|
-
)?.chainConfig.chainId;
|
|
20193
|
-
const newBadgeSymbols = resolveNewBadgeSymbols(resolvedChains);
|
|
20194
|
-
return {
|
|
20195
|
-
supportedAssets,
|
|
20196
|
-
symbolsByChainId,
|
|
20197
|
-
chainIdSortOrder,
|
|
20198
|
-
defaultChainId,
|
|
20199
|
-
priorityTokenSymbols: [...rawPriorityTokens],
|
|
20200
|
-
newBadgeSymbols
|
|
20201
|
-
};
|
|
20202
|
-
}
|
|
20203
|
-
var EMPTY_CONFIG = {
|
|
20124
|
+
var EMPTY_RESULT = {
|
|
20204
20125
|
supportedAssets: {},
|
|
20205
20126
|
symbolsByChainId: {},
|
|
20206
20127
|
chainIdSortOrder: [],
|
|
@@ -20222,15 +20143,15 @@ function useTokenTransferConfig(isWithdrawal = false) {
|
|
|
20222
20143
|
const { data: allSupportedAssets, isLoading } = useSupportedAssets();
|
|
20223
20144
|
const config = useMemo27(() => {
|
|
20224
20145
|
if (!allSupportedAssets) {
|
|
20225
|
-
return
|
|
20146
|
+
return EMPTY_RESULT;
|
|
20226
20147
|
}
|
|
20227
|
-
|
|
20228
|
-
|
|
20229
|
-
|
|
20230
|
-
rawPriorityTokens ?? [],
|
|
20148
|
+
return resolveTokenTransferConfig({
|
|
20149
|
+
chainConfigs: rawConfig.chains ?? [],
|
|
20150
|
+
priorityTokens: rawConfig.priorityTokens ?? [],
|
|
20231
20151
|
disabledChainAssets,
|
|
20232
|
-
allSupportedAssets
|
|
20233
|
-
|
|
20152
|
+
supportedAssets: allSupportedAssets,
|
|
20153
|
+
logger
|
|
20154
|
+
});
|
|
20234
20155
|
}, [rawConfig, disabledChainAssets, allSupportedAssets]);
|
|
20235
20156
|
return { ...config, isLoading };
|
|
20236
20157
|
}
|
|
@@ -24692,7 +24613,7 @@ import { isTokenEquivalent as isTokenEquivalent3 } from "@funkit/utils";
|
|
|
24692
24613
|
import { useQuery as useQuery15 } from "@tanstack/react-query";
|
|
24693
24614
|
|
|
24694
24615
|
// src/hooks/useIsBlacklistedWithdrawalAddress.ts
|
|
24695
|
-
import { isTokenAddressEquivalent
|
|
24616
|
+
import { isTokenAddressEquivalent } from "@funkit/utils";
|
|
24696
24617
|
import { useMemo as useMemo36 } from "react";
|
|
24697
24618
|
function useIsBlacklistedWithdrawalAddress(address) {
|
|
24698
24619
|
const addressBlacklist = useDynamicConfig("blacklistedwithdrawaladdress");
|
|
@@ -24709,7 +24630,7 @@ function useIsBlacklistedWithdrawalAddress(address) {
|
|
|
24709
24630
|
return addresses;
|
|
24710
24631
|
}, [withdrawalConfig.chains]);
|
|
24711
24632
|
return Object.keys(addressBlacklist).concat(withdrawalTokenAddresses).some(
|
|
24712
|
-
(blockedAddress) =>
|
|
24633
|
+
(blockedAddress) => isTokenAddressEquivalent({
|
|
24713
24634
|
firstTokenAddress: blockedAddress,
|
|
24714
24635
|
secondTokenAddress: address
|
|
24715
24636
|
})
|
|
@@ -24993,30 +24914,22 @@ var useAssetSymbolPrice = ({
|
|
|
24993
24914
|
|
|
24994
24915
|
// src/hooks/useTokenAndChainDropdown.ts
|
|
24995
24916
|
import { useEffect as useEffect39, useState as useState34 } from "react";
|
|
24996
|
-
import { polygon as
|
|
24917
|
+
import { polygon as polygon6 } from "viem/chains";
|
|
24997
24918
|
|
|
24998
24919
|
// src/hooks/useEnabledTokenTransferChainTokens.ts
|
|
24999
|
-
import {
|
|
24920
|
+
import { isTransferChainEnabled } from "@funkit/connect-core";
|
|
25000
24921
|
function useEnabledTokenTransferChainTokens(transferInit, isWithdrawal) {
|
|
25001
24922
|
const { symbolsByChainId } = useTokenTransferConfig(isWithdrawal);
|
|
25002
|
-
const hasSolanaAddress = !!transferInit?.solanaAddr;
|
|
25003
|
-
const hasBitcoinAddress = !!transferInit?.btcAddrSegwit;
|
|
25004
|
-
const hasTronAddress = !!transferInit?.tronAddr;
|
|
25005
24923
|
return Object.keys(
|
|
25006
24924
|
symbolsByChainId
|
|
25007
24925
|
).reduce(
|
|
25008
24926
|
(acc, curChainIdString) => {
|
|
25009
24927
|
const chainId2 = Number(curChainIdString);
|
|
25010
|
-
|
|
25011
|
-
|
|
25012
|
-
|
|
25013
|
-
|
|
25014
|
-
|
|
25015
|
-
if (isBitcoin && !hasBitcoinAddress && !isWithdrawal) {
|
|
25016
|
-
return acc;
|
|
25017
|
-
}
|
|
25018
|
-
const isTron = chainId2 === tronChain3.id;
|
|
25019
|
-
if (isTron && !hasTronAddress && !isWithdrawal) {
|
|
24928
|
+
if (!isTransferChainEnabled(
|
|
24929
|
+
chainId2,
|
|
24930
|
+
transferInit ?? void 0,
|
|
24931
|
+
isWithdrawal
|
|
24932
|
+
)) {
|
|
25020
24933
|
return acc;
|
|
25021
24934
|
}
|
|
25022
24935
|
if (symbolsByChainId[chainId2]?.length) {
|
|
@@ -25034,7 +24947,7 @@ function resolveDefaultChainId(enabledChainSymbols, preferredChainId) {
|
|
|
25034
24947
|
return preferredChainId;
|
|
25035
24948
|
}
|
|
25036
24949
|
const firstAvailable = Number(Object.keys(enabledChainSymbols)[0]);
|
|
25037
|
-
return firstAvailable ||
|
|
24950
|
+
return firstAvailable || polygon6.id;
|
|
25038
24951
|
}
|
|
25039
24952
|
function resolveDefaultToken(currentChainSymbols, preferredToken) {
|
|
25040
24953
|
if (preferredToken && currentChainSymbols?.includes(preferredToken)) {
|
|
@@ -25061,7 +24974,7 @@ var useTokenAndChainDropdown = ({
|
|
|
25061
24974
|
const tokenTransferConfig = useTokenTransferConfig(isWithdrawal);
|
|
25062
24975
|
const isLoadingAssets = tokenTransferConfig.isLoading || Object.keys(tokenTransferConfig.symbolsByChainId).length === 0;
|
|
25063
24976
|
const popularTokenSymbols = tokenTransferConfig.popularTokenSymbols ?? [];
|
|
25064
|
-
const preferredChainId = defaultValues?.chainId ?? tokenTransferConfig.defaultChainId ??
|
|
24977
|
+
const preferredChainId = defaultValues?.chainId ?? tokenTransferConfig.defaultChainId ?? polygon6.id;
|
|
25065
24978
|
const validDefaultChainId = resolveDefaultChainId(
|
|
25066
24979
|
enabledChainSymbols,
|
|
25067
24980
|
preferredChainId
|
|
@@ -25304,8 +25217,8 @@ function getErrorNotification({
|
|
|
25304
25217
|
import React128, { useEffect as useEffect40, useState as useState35 } from "react";
|
|
25305
25218
|
import {
|
|
25306
25219
|
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO8,
|
|
25307
|
-
solanaChain as
|
|
25308
|
-
tronChain as
|
|
25220
|
+
solanaChain as solanaChain4,
|
|
25221
|
+
tronChain as tronChain3
|
|
25309
25222
|
} from "@funkit/chains";
|
|
25310
25223
|
function getAlertMessage(selectedChainId, selectedToken, t) {
|
|
25311
25224
|
const chainName = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO8[selectedChainId]?.name;
|
|
@@ -25333,7 +25246,7 @@ function useShowConnectWallet({ config }) {
|
|
|
25333
25246
|
return showUseConnected;
|
|
25334
25247
|
}
|
|
25335
25248
|
function getRecipientAddressPlaceholder(selectedChainId, t) {
|
|
25336
|
-
if (selectedChainId ===
|
|
25249
|
+
if (selectedChainId === solanaChain4.id || selectedChainId === tronChain3.id) {
|
|
25337
25250
|
return t("withdrawal.enterRecipientAddress")[0] + t("withdrawal.enterRecipientAddress").slice(1).toLowerCase();
|
|
25338
25251
|
}
|
|
25339
25252
|
return "0x...";
|
|
@@ -28182,7 +28095,7 @@ function WithdrawalModal({
|
|
|
28182
28095
|
}
|
|
28183
28096
|
|
|
28184
28097
|
// src/modals/AccountModal/AccountModal.tsx
|
|
28185
|
-
import
|
|
28098
|
+
import React279 from "react";
|
|
28186
28099
|
|
|
28187
28100
|
// src/modals/ProfileDetails/ActivityTraversalContext.tsx
|
|
28188
28101
|
import React147, {
|
|
@@ -28257,10 +28170,10 @@ var useActivityTraversal = () => {
|
|
|
28257
28170
|
};
|
|
28258
28171
|
|
|
28259
28172
|
// src/modals/ProfileDetails/ProfileDetails.tsx
|
|
28260
|
-
import
|
|
28173
|
+
import React278, { useCallback as useCallback51, useState as useState79 } from "react";
|
|
28261
28174
|
|
|
28262
28175
|
// src/components/ModalHeightAnimationLayer/FunCheckoutModalHeightAnimationWrapper.tsx
|
|
28263
|
-
import
|
|
28176
|
+
import React265 from "react";
|
|
28264
28177
|
|
|
28265
28178
|
// src/modals/CheckoutModal/stepTransition.ts
|
|
28266
28179
|
import {
|
|
@@ -31712,7 +31625,7 @@ var ChainInfoBanners = ({ chainId: chainId2 }) => {
|
|
|
31712
31625
|
// src/components/FunTransactionSummary/PaymentAmountSummary.tsx
|
|
31713
31626
|
import {
|
|
31714
31627
|
formatCurrencyAndStringify as formatCurrencyAndStringify7,
|
|
31715
|
-
isTokenAddressEquivalent as
|
|
31628
|
+
isTokenAddressEquivalent as isTokenAddressEquivalent2,
|
|
31716
31629
|
isTokenEquivalent as isTokenEquivalent4
|
|
31717
31630
|
} from "@funkit/utils";
|
|
31718
31631
|
import NumberFlow from "@number-flow/react";
|
|
@@ -31768,7 +31681,7 @@ function PaymentAmountSummary({
|
|
|
31768
31681
|
const sourceChainId = sourceAssetInfo?.chainId;
|
|
31769
31682
|
const areSameChains = sourceChainId === targetChainId;
|
|
31770
31683
|
const sourceIcon = sourceAssetInfo?.iconSrc ?? void 0;
|
|
31771
|
-
const isSameTokenAddress =
|
|
31684
|
+
const isSameTokenAddress = isTokenAddressEquivalent2({
|
|
31772
31685
|
firstTokenAddress: sourceTokenAddress,
|
|
31773
31686
|
secondTokenAddress: targetTokenAddress
|
|
31774
31687
|
});
|
|
@@ -35501,7 +35414,7 @@ function useTextMeasurer(inputRef) {
|
|
|
35501
35414
|
|
|
35502
35415
|
// src/modals/CheckoutModal/InputAmount/state.ts
|
|
35503
35416
|
import {
|
|
35504
|
-
isTokenAddressEquivalent as
|
|
35417
|
+
isTokenAddressEquivalent as isTokenAddressEquivalent3,
|
|
35505
35418
|
isTokenEquivalent as isTokenEquivalent6,
|
|
35506
35419
|
round
|
|
35507
35420
|
} from "@funkit/utils";
|
|
@@ -35686,7 +35599,7 @@ function isEffectivelySameAsset(checkoutConfig, sourceToken, apiKey) {
|
|
|
35686
35599
|
return true;
|
|
35687
35600
|
}
|
|
35688
35601
|
const mainnetChainId = mainnet11.id.toString();
|
|
35689
|
-
return isLighterxyzCustomer(apiKey) && sourceToken.chainId === mainnetChainId && isNativeTokenAddress(sourceToken.address) && checkoutConfig.targetChain === mainnetChainId &&
|
|
35602
|
+
return isLighterxyzCustomer(apiKey) && sourceToken.chainId === mainnetChainId && isNativeTokenAddress(sourceToken.address) && checkoutConfig.targetChain === mainnetChainId && isTokenAddressEquivalent3({
|
|
35690
35603
|
firstTokenAddress: checkoutConfig.targetAsset,
|
|
35691
35604
|
secondTokenAddress: WETH_MAINNET_ADDRESS
|
|
35692
35605
|
});
|
|
@@ -37929,14 +37842,14 @@ function CopyInputDisplayedAddress(props) {
|
|
|
37929
37842
|
import {
|
|
37930
37843
|
getLightningQuote
|
|
37931
37844
|
} from "@funkit/api-base";
|
|
37932
|
-
import { LIGHTNING_MAINNET_CHAIN_ID, bitcoinChain as
|
|
37845
|
+
import { LIGHTNING_MAINNET_CHAIN_ID, bitcoinChain as bitcoinChain5 } from "@funkit/chains";
|
|
37933
37846
|
import { keepPreviousData as keepPreviousData3, useQuery as useQuery26 } from "@tanstack/react-query";
|
|
37934
37847
|
import { useEffect as useEffect58, useRef as useRef28, useState as useState67 } from "react";
|
|
37935
37848
|
import { parseUnits as parseUnits3 } from "viem";
|
|
37936
37849
|
var QUOTE_REFRESH_LEAD_MS = 3e3;
|
|
37937
37850
|
var QUOTE_REFRESH_MIN_MS = 250;
|
|
37938
37851
|
var QUOTE_GC_MS = 1e4;
|
|
37939
|
-
var BTC_DECIMALS =
|
|
37852
|
+
var BTC_DECIMALS = bitcoinChain5.nativeCurrency.decimals;
|
|
37940
37853
|
var SATS_PER_BTC = 10n ** BigInt(BTC_DECIMALS);
|
|
37941
37854
|
function usdToSats(usd, btcPrice) {
|
|
37942
37855
|
if (usd && btcPrice) {
|
|
@@ -37989,7 +37902,7 @@ var useLightningQuote = ({
|
|
|
37989
37902
|
}
|
|
37990
37903
|
const btcPrice = await getAssetPriceInfoWithFallback({
|
|
37991
37904
|
apiKey,
|
|
37992
|
-
chainId:
|
|
37905
|
+
chainId: bitcoinChain5.id.toString(),
|
|
37993
37906
|
assetTokenAddress: NATIVE_TOKEN
|
|
37994
37907
|
});
|
|
37995
37908
|
const fromAmountSats = usdToSats(fiatAmount, btcPrice.unitPrice);
|
|
@@ -39741,6 +39654,7 @@ function useEnrichedAccountHoldings({
|
|
|
39741
39654
|
const { t } = useFunkitTranslation();
|
|
39742
39655
|
const { isAllowed, isLoading } = useAllowedAssets();
|
|
39743
39656
|
const { walletAddress } = useGeneralWallet();
|
|
39657
|
+
const { apiKey } = useFunkitConfig();
|
|
39744
39658
|
const minTransferLimits = useDynamicConfig("mintokentransfervalue");
|
|
39745
39659
|
const isDynamicRoutingEnabled = useIsDynamicRoutingEnabled();
|
|
39746
39660
|
const enrichedAccountHoldings = useMemo58(() => {
|
|
@@ -39772,7 +39686,7 @@ function useEnrichedAccountHoldings({
|
|
|
39772
39686
|
asset.pickedChainId,
|
|
39773
39687
|
asset.tokenAddress
|
|
39774
39688
|
),
|
|
39775
|
-
isDynamicRoutingEnabled,
|
|
39689
|
+
isLighterDynamicRoutingEnabled: isDynamicRoutingEnabled && isLighterxyzCustomer(apiKey),
|
|
39776
39690
|
t
|
|
39777
39691
|
});
|
|
39778
39692
|
return { asset, usableForCheckout };
|
|
@@ -39822,7 +39736,8 @@ function useAssetOptions({
|
|
|
39822
39736
|
apiKey,
|
|
39823
39737
|
asset,
|
|
39824
39738
|
dynamicTargetAssetCandidates,
|
|
39825
|
-
findPath
|
|
39739
|
+
findPath,
|
|
39740
|
+
isUserSelected
|
|
39826
39741
|
)) {
|
|
39827
39742
|
badgeText = "Native";
|
|
39828
39743
|
if (showsNativeTokensOnTop(apiKey)) {
|
|
@@ -40122,7 +40037,10 @@ function SelectAsset({
|
|
|
40122
40037
|
}
|
|
40123
40038
|
));
|
|
40124
40039
|
}
|
|
40125
|
-
function isTreatedAsNativeToken(apiKey, asset, dynamicTargetAssetCandidates, findDynamicPath) {
|
|
40040
|
+
function isTreatedAsNativeToken(apiKey, asset, dynamicTargetAssetCandidates, findDynamicPath, isUserSelected) {
|
|
40041
|
+
if (isNadoCustomer(apiKey)) {
|
|
40042
|
+
return isUserSelected;
|
|
40043
|
+
}
|
|
40126
40044
|
const dynamicPath = findDynamicPath({
|
|
40127
40045
|
chainId: asset.pickedChainId,
|
|
40128
40046
|
tokenAddress: asset.tokenAddress
|
|
@@ -40170,7 +40088,7 @@ function isTreatedAsNativeToken(apiKey, asset, dynamicTargetAssetCandidates, fin
|
|
|
40170
40088
|
);
|
|
40171
40089
|
}
|
|
40172
40090
|
function showsNativeTokensOnTop(apiKey) {
|
|
40173
|
-
return isEtherealCustomer(apiKey) || isHyenaCustomer(apiKey);
|
|
40091
|
+
return isEtherealCustomer(apiKey) || isHyenaCustomer(apiKey) || isNadoCustomer(apiKey) || isMallardCustomer(apiKey);
|
|
40174
40092
|
}
|
|
40175
40093
|
|
|
40176
40094
|
// src/modals/CheckoutModal/SourceChange/SourceChange.tsx
|
|
@@ -41765,18 +41683,58 @@ function trackEventForFormOfPayment(fop, checkoutItem, eventName, extras) {
|
|
|
41765
41683
|
|
|
41766
41684
|
// src/modals/CheckoutModal/TransferToken/TransferToken.tsx
|
|
41767
41685
|
import { motion as motion17, useAnimationControls as useAnimationControls4 } from "motion/react";
|
|
41768
|
-
import
|
|
41686
|
+
import React258, { useRef as useRef34, useState as useState73 } from "react";
|
|
41769
41687
|
import { createPortal as createPortal23 } from "react-dom";
|
|
41770
41688
|
|
|
41689
|
+
// src/components/BottomLinks/BottomLinks.tsx
|
|
41690
|
+
import React251 from "react";
|
|
41691
|
+
|
|
41692
|
+
// src/components/BottomLinks/BottomLinks.css.ts
|
|
41693
|
+
var bottomLinkStyle = "_17ejcqj1 _1rsrm2f2r4";
|
|
41694
|
+
|
|
41695
|
+
// src/components/BottomLinks/BottomLinks.tsx
|
|
41696
|
+
var BottomLinks = ({ links }) => {
|
|
41697
|
+
return /* @__PURE__ */ React251.createElement(
|
|
41698
|
+
Box,
|
|
41699
|
+
{
|
|
41700
|
+
width: "full",
|
|
41701
|
+
display: "flex",
|
|
41702
|
+
alignItems: "center",
|
|
41703
|
+
justifyContent: "center",
|
|
41704
|
+
gap: "8"
|
|
41705
|
+
},
|
|
41706
|
+
links.map((link, index) => /* @__PURE__ */ React251.createElement(React251.Fragment, { key: link.href }, index > 0 && /* @__PURE__ */ React251.createElement(
|
|
41707
|
+
Box,
|
|
41708
|
+
{
|
|
41709
|
+
testId: "bottom-link-separator",
|
|
41710
|
+
background: "secondaryText",
|
|
41711
|
+
borderRadius: "full",
|
|
41712
|
+
style: { width: "3px", height: "3px" }
|
|
41713
|
+
}
|
|
41714
|
+
), /* @__PURE__ */ React251.createElement(
|
|
41715
|
+
Box,
|
|
41716
|
+
{
|
|
41717
|
+
as: "a",
|
|
41718
|
+
className: bottomLinkStyle,
|
|
41719
|
+
fontSize: "13",
|
|
41720
|
+
href: link.href,
|
|
41721
|
+
rel: "noreferrer",
|
|
41722
|
+
target: "_blank"
|
|
41723
|
+
},
|
|
41724
|
+
link.text
|
|
41725
|
+
)))
|
|
41726
|
+
);
|
|
41727
|
+
};
|
|
41728
|
+
|
|
41771
41729
|
// src/components/TransferTokenDetails/TransferTokenDetails.tsx
|
|
41772
41730
|
import { formatNumberAndStringify as formatNumberAndStringify2 } from "@funkit/utils";
|
|
41773
|
-
import
|
|
41731
|
+
import React257 from "react";
|
|
41774
41732
|
import { Trans as Trans18 } from "react-i18next";
|
|
41775
41733
|
|
|
41776
41734
|
// src/components/Icons/New/FileIcon.tsx
|
|
41777
|
-
import
|
|
41735
|
+
import React252 from "react";
|
|
41778
41736
|
var FileIcon = () => {
|
|
41779
|
-
return /* @__PURE__ */
|
|
41737
|
+
return /* @__PURE__ */ React252.createElement(
|
|
41780
41738
|
"svg",
|
|
41781
41739
|
{
|
|
41782
41740
|
width: "12",
|
|
@@ -41785,7 +41743,7 @@ var FileIcon = () => {
|
|
|
41785
41743
|
fill: "none",
|
|
41786
41744
|
xmlns: "http://www.w3.org/2000/svg"
|
|
41787
41745
|
},
|
|
41788
|
-
/* @__PURE__ */
|
|
41746
|
+
/* @__PURE__ */ React252.createElement(
|
|
41789
41747
|
"path",
|
|
41790
41748
|
{
|
|
41791
41749
|
fillRule: "evenodd",
|
|
@@ -41798,9 +41756,9 @@ var FileIcon = () => {
|
|
|
41798
41756
|
};
|
|
41799
41757
|
|
|
41800
41758
|
// src/components/Icons/New/SpeedometerIcon.tsx
|
|
41801
|
-
import
|
|
41759
|
+
import React253 from "react";
|
|
41802
41760
|
var SpeedometerIcon = () => {
|
|
41803
|
-
return /* @__PURE__ */
|
|
41761
|
+
return /* @__PURE__ */ React253.createElement(
|
|
41804
41762
|
"svg",
|
|
41805
41763
|
{
|
|
41806
41764
|
width: "12",
|
|
@@ -41809,7 +41767,7 @@ var SpeedometerIcon = () => {
|
|
|
41809
41767
|
fill: "none",
|
|
41810
41768
|
xmlns: "http://www.w3.org/2000/svg"
|
|
41811
41769
|
},
|
|
41812
|
-
/* @__PURE__ */
|
|
41770
|
+
/* @__PURE__ */ React253.createElement(
|
|
41813
41771
|
"path",
|
|
41814
41772
|
{
|
|
41815
41773
|
fillRule: "evenodd",
|
|
@@ -41823,13 +41781,13 @@ var SpeedometerIcon = () => {
|
|
|
41823
41781
|
|
|
41824
41782
|
// src/components/FunFeatureList/FunFeatureList.tsx
|
|
41825
41783
|
import { motion as motion16, useAnimationControls as useAnimationControls3 } from "motion/react";
|
|
41826
|
-
import
|
|
41784
|
+
import React255, { useState as useState72 } from "react";
|
|
41827
41785
|
|
|
41828
41786
|
// src/components/FunFeatureList/FunFeatureList.css.ts
|
|
41829
41787
|
var detailsButton = "_1045qr71 _1rsrm2fpy _1rsrm2frz _1rsrm2ftw _1rsrm2fnt _1rsrm2fx5 _1rsrm2fa _1rsrm2f4 _1rsrm2f86 _1rsrm2fu";
|
|
41830
41788
|
|
|
41831
41789
|
// src/components/FunFeatureList/FunFeatureListItem.tsx
|
|
41832
|
-
import
|
|
41790
|
+
import React254 from "react";
|
|
41833
41791
|
var FunFeatureListItem = ({
|
|
41834
41792
|
text,
|
|
41835
41793
|
tooltip,
|
|
@@ -41840,7 +41798,7 @@ var FunFeatureListItem = ({
|
|
|
41840
41798
|
}) => {
|
|
41841
41799
|
const valueLabel = value && (prefix ? ` ${prefix}${value}` : ` ${value}`);
|
|
41842
41800
|
const isMultiline = Array.isArray(value) && value.length > 0;
|
|
41843
|
-
const TooltipWrapperElement = /* @__PURE__ */
|
|
41801
|
+
const TooltipWrapperElement = /* @__PURE__ */ React254.createElement(
|
|
41844
41802
|
Box,
|
|
41845
41803
|
{
|
|
41846
41804
|
marginLeft: "4",
|
|
@@ -41856,7 +41814,7 @@ var FunFeatureListItem = ({
|
|
|
41856
41814
|
},
|
|
41857
41815
|
tooltip
|
|
41858
41816
|
);
|
|
41859
|
-
return /* @__PURE__ */
|
|
41817
|
+
return /* @__PURE__ */ React254.createElement(Box, { display: "flex", gap: "6", alignItems: "center", paddingY: "2", ...boxProps }, /* @__PURE__ */ React254.createElement(
|
|
41860
41818
|
Box,
|
|
41861
41819
|
{
|
|
41862
41820
|
color: "secondaryText",
|
|
@@ -41865,7 +41823,7 @@ var FunFeatureListItem = ({
|
|
|
41865
41823
|
justifyContent: "center"
|
|
41866
41824
|
},
|
|
41867
41825
|
icon
|
|
41868
|
-
), /* @__PURE__ */
|
|
41826
|
+
), /* @__PURE__ */ React254.createElement(
|
|
41869
41827
|
Box,
|
|
41870
41828
|
{
|
|
41871
41829
|
display: "flex",
|
|
@@ -41874,8 +41832,8 @@ var FunFeatureListItem = ({
|
|
|
41874
41832
|
gap: "6"
|
|
41875
41833
|
}
|
|
41876
41834
|
},
|
|
41877
|
-
isMultiline ? /* @__PURE__ */
|
|
41878
|
-
isMultiline ? /* @__PURE__ */
|
|
41835
|
+
isMultiline ? /* @__PURE__ */ React254.createElement(Box, { display: "flex" }, /* @__PURE__ */ React254.createElement(Text, { size: "funFeatureListItemFontSize", weight: "medium" }, text), tooltip && TooltipWrapperElement) : /* @__PURE__ */ React254.createElement(Text, { size: "funFeatureListItemFontSize" }, text, /* @__PURE__ */ React254.createElement(React254.Fragment, null, "\xA0")),
|
|
41836
|
+
isMultiline ? /* @__PURE__ */ React254.createElement(Box, { display: "flex", flexDirection: "column", gap: "6" }, value.map((v, index) => /* @__PURE__ */ React254.createElement(
|
|
41879
41837
|
Text,
|
|
41880
41838
|
{
|
|
41881
41839
|
size: "funFeatureListItemFontSize",
|
|
@@ -41883,7 +41841,7 @@ var FunFeatureListItem = ({
|
|
|
41883
41841
|
key: index
|
|
41884
41842
|
},
|
|
41885
41843
|
v
|
|
41886
|
-
))) : /* @__PURE__ */
|
|
41844
|
+
))) : /* @__PURE__ */ React254.createElement(
|
|
41887
41845
|
Text,
|
|
41888
41846
|
{
|
|
41889
41847
|
size: "funFeatureListItemFontSize",
|
|
@@ -41920,7 +41878,7 @@ var FunFeatureList = ({
|
|
|
41920
41878
|
onExpanded?.();
|
|
41921
41879
|
}
|
|
41922
41880
|
};
|
|
41923
|
-
return /* @__PURE__ */
|
|
41881
|
+
return /* @__PURE__ */ React255.createElement(
|
|
41924
41882
|
Box,
|
|
41925
41883
|
{
|
|
41926
41884
|
...withBackgroundContainer && {
|
|
@@ -41937,7 +41895,7 @@ var FunFeatureList = ({
|
|
|
41937
41895
|
display: "flex",
|
|
41938
41896
|
flexDirection: "column"
|
|
41939
41897
|
},
|
|
41940
|
-
isExpandable ? /* @__PURE__ */
|
|
41898
|
+
isExpandable ? /* @__PURE__ */ React255.createElement(React255.Fragment, null, /* @__PURE__ */ React255.createElement(
|
|
41941
41899
|
Box,
|
|
41942
41900
|
{
|
|
41943
41901
|
as: "button",
|
|
@@ -41953,9 +41911,9 @@ var FunFeatureList = ({
|
|
|
41953
41911
|
disabled,
|
|
41954
41912
|
onClick: handleExpandToggle
|
|
41955
41913
|
},
|
|
41956
|
-
items[0] && /* @__PURE__ */
|
|
41957
|
-
/* @__PURE__ */
|
|
41958
|
-
), /* @__PURE__ */
|
|
41914
|
+
items[0] && /* @__PURE__ */ React255.createElement(FunFeatureListItem, { ...items[0] }),
|
|
41915
|
+
/* @__PURE__ */ React255.createElement(AnimatedCaretDownIcon, { expanded: isDisplayed })
|
|
41916
|
+
), /* @__PURE__ */ React255.createElement(
|
|
41959
41917
|
motion16.div,
|
|
41960
41918
|
{
|
|
41961
41919
|
initial: "collapsed",
|
|
@@ -41966,7 +41924,7 @@ var FunFeatureList = ({
|
|
|
41966
41924
|
expanded: { height: "auto", opacity: 1, overflow: "visible" }
|
|
41967
41925
|
}
|
|
41968
41926
|
},
|
|
41969
|
-
/* @__PURE__ */
|
|
41927
|
+
/* @__PURE__ */ React255.createElement(
|
|
41970
41928
|
Box,
|
|
41971
41929
|
{
|
|
41972
41930
|
paddingX: "12",
|
|
@@ -41975,7 +41933,7 @@ var FunFeatureList = ({
|
|
|
41975
41933
|
gap: "6",
|
|
41976
41934
|
paddingBottom: "8"
|
|
41977
41935
|
},
|
|
41978
|
-
items.slice(1).map((item, index) => /* @__PURE__ */
|
|
41936
|
+
items.slice(1).map((item, index) => /* @__PURE__ */ React255.createElement(
|
|
41979
41937
|
FunFeatureListItem,
|
|
41980
41938
|
{
|
|
41981
41939
|
key: index,
|
|
@@ -41987,7 +41945,7 @@ var FunFeatureList = ({
|
|
|
41987
41945
|
}
|
|
41988
41946
|
))
|
|
41989
41947
|
)
|
|
41990
|
-
)) : /* @__PURE__ */
|
|
41948
|
+
)) : /* @__PURE__ */ React255.createElement(
|
|
41991
41949
|
Box,
|
|
41992
41950
|
{
|
|
41993
41951
|
display: "flex",
|
|
@@ -41998,7 +41956,7 @@ var FunFeatureList = ({
|
|
|
41998
41956
|
paddingY: "8"
|
|
41999
41957
|
}
|
|
42000
41958
|
},
|
|
42001
|
-
items.map((item, index) => /* @__PURE__ */
|
|
41959
|
+
items.map((item, index) => /* @__PURE__ */ React255.createElement(
|
|
42002
41960
|
Box,
|
|
42003
41961
|
{
|
|
42004
41962
|
key: index,
|
|
@@ -42009,16 +41967,16 @@ var FunFeatureList = ({
|
|
|
42009
41967
|
background: "funFeatureListBackgroundBase"
|
|
42010
41968
|
}
|
|
42011
41969
|
},
|
|
42012
|
-
/* @__PURE__ */
|
|
41970
|
+
/* @__PURE__ */ React255.createElement(FunFeatureListItem, { ...item })
|
|
42013
41971
|
))
|
|
42014
41972
|
)
|
|
42015
41973
|
);
|
|
42016
41974
|
};
|
|
42017
41975
|
|
|
42018
41976
|
// src/components/Icons/New/PercentageIcon.tsx
|
|
42019
|
-
import
|
|
41977
|
+
import React256 from "react";
|
|
42020
41978
|
var PercentageIcon = () => {
|
|
42021
|
-
return /* @__PURE__ */
|
|
41979
|
+
return /* @__PURE__ */ React256.createElement(
|
|
42022
41980
|
"svg",
|
|
42023
41981
|
{
|
|
42024
41982
|
width: "12",
|
|
@@ -42027,7 +41985,7 @@ var PercentageIcon = () => {
|
|
|
42027
41985
|
fill: "none",
|
|
42028
41986
|
xmlns: "http://www.w3.org/2000/svg"
|
|
42029
41987
|
},
|
|
42030
|
-
/* @__PURE__ */
|
|
41988
|
+
/* @__PURE__ */ React256.createElement(
|
|
42031
41989
|
"path",
|
|
42032
41990
|
{
|
|
42033
41991
|
fillRule: "evenodd",
|
|
@@ -42045,7 +42003,7 @@ var FunLinkButtonComponent3 = ({
|
|
|
42045
42003
|
href,
|
|
42046
42004
|
size = "funFeatureListItemFontSize"
|
|
42047
42005
|
}) => {
|
|
42048
|
-
return /* @__PURE__ */
|
|
42006
|
+
return /* @__PURE__ */ React257.createElement(FunLinkButton, { href, inline: true, text: children, size });
|
|
42049
42007
|
};
|
|
42050
42008
|
var TransferTokenDetails = ({
|
|
42051
42009
|
estProcessingTime,
|
|
@@ -42063,7 +42021,7 @@ var TransferTokenDetails = ({
|
|
|
42063
42021
|
!!estProcessingTime
|
|
42064
42022
|
);
|
|
42065
42023
|
const gasFees = void 0;
|
|
42066
|
-
return /* @__PURE__ */
|
|
42024
|
+
return /* @__PURE__ */ React257.createElement(
|
|
42067
42025
|
FunFeatureList,
|
|
42068
42026
|
{
|
|
42069
42027
|
isExpandable: true,
|
|
@@ -42075,17 +42033,17 @@ var TransferTokenDetails = ({
|
|
|
42075
42033
|
text: `${estPriceImpact.label}:`,
|
|
42076
42034
|
prefix: estPriceImpact.value > 0 ? "< " : "",
|
|
42077
42035
|
value: `${formatNumberAndStringify2(estPriceImpact.value, void 0, { minimumFractionDigits: 2, maximumFractionDigits: 2 })}%`,
|
|
42078
|
-
icon: /* @__PURE__ */
|
|
42079
|
-
tooltip: /* @__PURE__ */
|
|
42036
|
+
icon: /* @__PURE__ */ React257.createElement(DollarIcon, null),
|
|
42037
|
+
tooltip: /* @__PURE__ */ React257.createElement(
|
|
42080
42038
|
FunTooltip,
|
|
42081
42039
|
{
|
|
42082
|
-
content: /* @__PURE__ */
|
|
42040
|
+
content: /* @__PURE__ */ React257.createElement(
|
|
42083
42041
|
Trans18,
|
|
42084
42042
|
{
|
|
42085
42043
|
t,
|
|
42086
42044
|
i18nKey: "fees.priceImpactTooltip",
|
|
42087
42045
|
components: {
|
|
42088
|
-
LearnMoreLink: /* @__PURE__ */
|
|
42046
|
+
LearnMoreLink: /* @__PURE__ */ React257.createElement(
|
|
42089
42047
|
FunLinkButtonComponent3,
|
|
42090
42048
|
{
|
|
42091
42049
|
href: "https://intercom.help/funxyz/en/articles/10925883-order-execution-guide",
|
|
@@ -42104,17 +42062,17 @@ var TransferTokenDetails = ({
|
|
|
42104
42062
|
text: `${maxSlippage.label}:`,
|
|
42105
42063
|
prefix: maxSlippage.value > 0 ? `${t("common.auto")} \u2022 ` : "",
|
|
42106
42064
|
value: `${formatNumberAndStringify2(maxSlippage.value, void 0, { minimumFractionDigits: 2, maximumFractionDigits: 2 })}%`,
|
|
42107
|
-
icon: /* @__PURE__ */
|
|
42108
|
-
tooltip: /* @__PURE__ */
|
|
42065
|
+
icon: /* @__PURE__ */ React257.createElement(PercentageIcon, null),
|
|
42066
|
+
tooltip: /* @__PURE__ */ React257.createElement(
|
|
42109
42067
|
FunTooltip,
|
|
42110
42068
|
{
|
|
42111
|
-
content: /* @__PURE__ */
|
|
42069
|
+
content: /* @__PURE__ */ React257.createElement(
|
|
42112
42070
|
Trans18,
|
|
42113
42071
|
{
|
|
42114
42072
|
t,
|
|
42115
42073
|
i18nKey: "fees.slippageTooltipFull",
|
|
42116
42074
|
components: {
|
|
42117
|
-
LearnMoreLink: /* @__PURE__ */
|
|
42075
|
+
LearnMoreLink: /* @__PURE__ */ React257.createElement(
|
|
42118
42076
|
FunLinkButtonComponent3,
|
|
42119
42077
|
{
|
|
42120
42078
|
href: "https://intercom.help/funxyz/en/articles/10925883-order-execution-guide",
|
|
@@ -42133,26 +42091,26 @@ var TransferTokenDetails = ({
|
|
|
42133
42091
|
text: `${t("common.estimatedGas")}:`,
|
|
42134
42092
|
prefix: "~",
|
|
42135
42093
|
value: `$${gasFees}`,
|
|
42136
|
-
icon: /* @__PURE__ */
|
|
42094
|
+
icon: /* @__PURE__ */ React257.createElement(DollarIcon, null)
|
|
42137
42095
|
}
|
|
42138
42096
|
] : [],
|
|
42139
42097
|
{
|
|
42140
42098
|
text: t("common.processingTime"),
|
|
42141
42099
|
value: estimatedTimeText,
|
|
42142
|
-
icon: /* @__PURE__ */
|
|
42100
|
+
icon: /* @__PURE__ */ React257.createElement(SpeedometerIcon, null)
|
|
42143
42101
|
},
|
|
42144
42102
|
{
|
|
42145
|
-
text: /* @__PURE__ */
|
|
42103
|
+
text: /* @__PURE__ */ React257.createElement(
|
|
42146
42104
|
Trans18,
|
|
42147
42105
|
{
|
|
42148
42106
|
t,
|
|
42149
42107
|
i18nKey: "common.haveQuestionsGetHelp",
|
|
42150
42108
|
components: {
|
|
42151
|
-
GetHelpLink: /* @__PURE__ */
|
|
42109
|
+
GetHelpLink: /* @__PURE__ */ React257.createElement(FunLinkButtonComponent3, { href: "https://intercom.help/funxyz/en/articles/10003876-transfer-crypto-guide-faqs" })
|
|
42152
42110
|
}
|
|
42153
42111
|
}
|
|
42154
42112
|
),
|
|
42155
|
-
icon: /* @__PURE__ */
|
|
42113
|
+
icon: /* @__PURE__ */ React257.createElement(FileIcon, null)
|
|
42156
42114
|
}
|
|
42157
42115
|
]
|
|
42158
42116
|
}
|
|
@@ -42554,6 +42512,7 @@ function TransferToken({
|
|
|
42554
42512
|
toChainId: udaParams?.targetChain,
|
|
42555
42513
|
toTokenAddress: udaParams?.targetAsset
|
|
42556
42514
|
});
|
|
42515
|
+
const isFreeUsdcBannerEnabled = useDynamicConfig("freeusdcbanner").enabled;
|
|
42557
42516
|
const toggleQrHover = async () => {
|
|
42558
42517
|
if (qrCodeHover) {
|
|
42559
42518
|
controls.start("shrinkBack");
|
|
@@ -42571,6 +42530,7 @@ function TransferToken({
|
|
|
42571
42530
|
);
|
|
42572
42531
|
const bottomSectionRef = useBottomSectionRef();
|
|
42573
42532
|
const { targetAssetTicker, targetChain, iconSrc } = checkoutConfig ?? {};
|
|
42533
|
+
const hideFeeBreakdown = isFreeUsdcBannerEnabled && !!targetAssetTicker && ["pUSD", "USDC", "USDCe", "USDC.e"].includes(targetAssetTicker);
|
|
42574
42534
|
const displayYouPayYouReceive = uiCustomizations.transferCryptoScreen.showYouSendYouReceive && typeof targetAssetTicker === "string" && typeof targetChain === "string" && typeof selectedChainId === "number" && typeof selectedToken === "string";
|
|
42575
42535
|
const chainTagComponent = (value) => {
|
|
42576
42536
|
if (!minTransferUsdPerChain[value]) {
|
|
@@ -42585,7 +42545,7 @@ function TransferToken({
|
|
|
42585
42545
|
dynamicRoutingId
|
|
42586
42546
|
}) ?? 0;
|
|
42587
42547
|
}
|
|
42588
|
-
return /* @__PURE__ */
|
|
42548
|
+
return /* @__PURE__ */ React258.createElement(
|
|
42589
42549
|
Text,
|
|
42590
42550
|
{
|
|
42591
42551
|
size: "12",
|
|
@@ -42608,7 +42568,7 @@ function TransferToken({
|
|
|
42608
42568
|
}
|
|
42609
42569
|
return (
|
|
42610
42570
|
// This ID is used in the DialogContent css to set the height of the modal
|
|
42611
|
-
/* @__PURE__ */
|
|
42571
|
+
/* @__PURE__ */ React258.createElement(React258.Fragment, null, /* @__PURE__ */ React258.createElement(Box, { id: "token-transfer-page" }, uiCustomizations.transferCryptoScreen.customTopComponent?.(), /* @__PURE__ */ React258.createElement(
|
|
42612
42572
|
Box,
|
|
42613
42573
|
{
|
|
42614
42574
|
display: "flex",
|
|
@@ -42617,43 +42577,17 @@ function TransferToken({
|
|
|
42617
42577
|
justifyContent: "center",
|
|
42618
42578
|
gap: "18"
|
|
42619
42579
|
},
|
|
42620
|
-
isSourceNavWidgetEnabled && /* @__PURE__ */
|
|
42580
|
+
isSourceNavWidgetEnabled && /* @__PURE__ */ React258.createElement(Box, { display: "flex", flexDirection: "column", width: "full" }, /* @__PURE__ */ React258.createElement(
|
|
42621
42581
|
SourcePaymentMethodItem,
|
|
42622
42582
|
{
|
|
42623
42583
|
type: PaymentMethod.TOKEN_TRANSFER,
|
|
42624
42584
|
keyText: textCustomizations.transferTokens,
|
|
42625
42585
|
disclaimerText: t("transferToken.noLimit"),
|
|
42626
|
-
keyIcon: /* @__PURE__ */
|
|
42586
|
+
keyIcon: /* @__PURE__ */ React258.createElement(CryptoTransferQRIcon, null),
|
|
42627
42587
|
onClick: () => onNext({})
|
|
42628
42588
|
}
|
|
42629
42589
|
)),
|
|
42630
|
-
|
|
42631
|
-
Box,
|
|
42632
|
-
{
|
|
42633
|
-
display: "flex",
|
|
42634
|
-
alignItems: "center",
|
|
42635
|
-
justifyContent: "space-between",
|
|
42636
|
-
width: "full",
|
|
42637
|
-
borderColor: "mediumStroke",
|
|
42638
|
-
borderWidth: "1",
|
|
42639
|
-
borderRadius: BORDER_RADIUS,
|
|
42640
|
-
borderStyle: "solid",
|
|
42641
|
-
paddingX: "dropdownPaddingX",
|
|
42642
|
-
paddingY: "8"
|
|
42643
|
-
},
|
|
42644
|
-
/* @__PURE__ */ React257.createElement(Text, { size: "12", color: "secondaryText" }, t("transferToken.receiveToken")),
|
|
42645
|
-
/* @__PURE__ */ React257.createElement(Box, { display: "flex", alignItems: "center", gap: "8" }, /* @__PURE__ */ React257.createElement(
|
|
42646
|
-
FunAssetAvatar,
|
|
42647
|
-
{
|
|
42648
|
-
assetIconSize: "16",
|
|
42649
|
-
assetName: "receive-token-asset",
|
|
42650
|
-
assetSrc: defaultCandidate.iconSrc || getTokenIconUrl(defaultCandidate.tokenSymbol),
|
|
42651
|
-
chainId: defaultCandidate.tokenChainId,
|
|
42652
|
-
largeChainIcon: true
|
|
42653
|
-
}
|
|
42654
|
-
), /* @__PURE__ */ React257.createElement(Text, { size: "12", weight: "medium" }, defaultCandidate.tokenSymbol))
|
|
42655
|
-
),
|
|
42656
|
-
/* @__PURE__ */ React257.createElement(
|
|
42590
|
+
/* @__PURE__ */ React258.createElement(
|
|
42657
42591
|
TokenAndChainDropdown,
|
|
42658
42592
|
{
|
|
42659
42593
|
isLoading: isLoadingDepositAddress,
|
|
@@ -42687,7 +42621,7 @@ function TransferToken({
|
|
|
42687
42621
|
selectedToken,
|
|
42688
42622
|
selectedChainId,
|
|
42689
42623
|
chainTagComponent,
|
|
42690
|
-
chainLabelAddon: !!minTransferUsd && /* @__PURE__ */
|
|
42624
|
+
chainLabelAddon: !!minTransferUsd && /* @__PURE__ */ React258.createElement(
|
|
42691
42625
|
Box,
|
|
42692
42626
|
{
|
|
42693
42627
|
display: "flex",
|
|
@@ -42697,15 +42631,15 @@ function TransferToken({
|
|
|
42697
42631
|
fontSize: "12",
|
|
42698
42632
|
height: "14"
|
|
42699
42633
|
},
|
|
42700
|
-
/* @__PURE__ */
|
|
42701
|
-
/* @__PURE__ */
|
|
42634
|
+
/* @__PURE__ */ React258.createElement(Text, { size: "inputLabel", color: "secondaryText" }, t("transferToken.min")),
|
|
42635
|
+
/* @__PURE__ */ React258.createElement(Text, { size: "inputLabel", color: "secondaryText" }, /* @__PURE__ */ React258.createElement(
|
|
42702
42636
|
AnimatedDollarValue,
|
|
42703
42637
|
{
|
|
42704
42638
|
value: minTransferUsd,
|
|
42705
42639
|
dynamicMinFractionDigits: true
|
|
42706
42640
|
}
|
|
42707
42641
|
)),
|
|
42708
|
-
/* @__PURE__ */
|
|
42642
|
+
/* @__PURE__ */ React258.createElement(
|
|
42709
42643
|
FunTooltip,
|
|
42710
42644
|
{
|
|
42711
42645
|
content: t("transferToken.minDepositAmountTooltip"),
|
|
@@ -42719,7 +42653,7 @@ function TransferToken({
|
|
|
42719
42653
|
chainIdSortOrder
|
|
42720
42654
|
}
|
|
42721
42655
|
),
|
|
42722
|
-
/* @__PURE__ */
|
|
42656
|
+
/* @__PURE__ */ React258.createElement(
|
|
42723
42657
|
Box,
|
|
42724
42658
|
{
|
|
42725
42659
|
display: "flex",
|
|
@@ -42729,7 +42663,7 @@ function TransferToken({
|
|
|
42729
42663
|
justifyContent: "center",
|
|
42730
42664
|
padding: "20"
|
|
42731
42665
|
},
|
|
42732
|
-
isLoadingDepositAddress ? /* @__PURE__ */
|
|
42666
|
+
isLoadingDepositAddress ? /* @__PURE__ */ React258.createElement(QRCodeSkeletonLoader_default, { diagonalDimension: 13, gapBetweenDots: "4" }) : /* @__PURE__ */ React258.createElement(
|
|
42733
42667
|
motion17.div,
|
|
42734
42668
|
{
|
|
42735
42669
|
onHoverStart: toggleQrHover,
|
|
@@ -42749,7 +42683,7 @@ function TransferToken({
|
|
|
42749
42683
|
},
|
|
42750
42684
|
animate: controls
|
|
42751
42685
|
},
|
|
42752
|
-
/* @__PURE__ */
|
|
42686
|
+
/* @__PURE__ */ React258.createElement(
|
|
42753
42687
|
QRCode,
|
|
42754
42688
|
{
|
|
42755
42689
|
withShadow: true,
|
|
@@ -42763,7 +42697,7 @@ function TransferToken({
|
|
|
42763
42697
|
}
|
|
42764
42698
|
)
|
|
42765
42699
|
),
|
|
42766
|
-
displayYouPayYouReceive && /* @__PURE__ */
|
|
42700
|
+
displayYouPayYouReceive && /* @__PURE__ */ React258.createElement(Box, { display: "flex", justifyContent: "center", alignItems: "center" }, /* @__PURE__ */ React258.createElement(
|
|
42767
42701
|
YouPayYouReceive,
|
|
42768
42702
|
{
|
|
42769
42703
|
payLabel: textCustomizations.confirmationScreen?.payAmountLabel,
|
|
@@ -42778,7 +42712,7 @@ function TransferToken({
|
|
|
42778
42712
|
}
|
|
42779
42713
|
))
|
|
42780
42714
|
),
|
|
42781
|
-
/* @__PURE__ */
|
|
42715
|
+
/* @__PURE__ */ React258.createElement(Box, { width: "full", display: "flex", flexDirection: "column", gap: "12" }, /* @__PURE__ */ React258.createElement(Box, { width: "full", display: "flex", flexDirection: "column", gap: "4" }, /* @__PURE__ */ React258.createElement(
|
|
42782
42716
|
Box,
|
|
42783
42717
|
{
|
|
42784
42718
|
display: "flex",
|
|
@@ -42786,7 +42720,7 @@ function TransferToken({
|
|
|
42786
42720
|
justifyContent: "space-between",
|
|
42787
42721
|
ref: disclaimerTextWrapperRef
|
|
42788
42722
|
},
|
|
42789
|
-
/* @__PURE__ */
|
|
42723
|
+
/* @__PURE__ */ React258.createElement(Box, { display: "flex", alignItems: "center", gap: "4" }, /* @__PURE__ */ React258.createElement(
|
|
42790
42724
|
Text,
|
|
42791
42725
|
{
|
|
42792
42726
|
size: "inputLabel",
|
|
@@ -42794,7 +42728,7 @@ function TransferToken({
|
|
|
42794
42728
|
color: "inputLabel"
|
|
42795
42729
|
},
|
|
42796
42730
|
t("transferToken.yourDepositAddress")
|
|
42797
|
-
), /* @__PURE__ */
|
|
42731
|
+
), /* @__PURE__ */ React258.createElement(
|
|
42798
42732
|
FunTooltip,
|
|
42799
42733
|
{
|
|
42800
42734
|
content: depositAddressTooltip,
|
|
@@ -42802,7 +42736,7 @@ function TransferToken({
|
|
|
42802
42736
|
enableDynamicPositioning: true
|
|
42803
42737
|
}
|
|
42804
42738
|
)),
|
|
42805
|
-
/* @__PURE__ */
|
|
42739
|
+
!hideFeeBreakdown && /* @__PURE__ */ React258.createElement(
|
|
42806
42740
|
FunLinkButton,
|
|
42807
42741
|
{
|
|
42808
42742
|
text: t("transferToken.termsApply"),
|
|
@@ -42811,13 +42745,21 @@ function TransferToken({
|
|
|
42811
42745
|
variant: "labelLink"
|
|
42812
42746
|
}
|
|
42813
42747
|
)
|
|
42814
|
-
), isLoadingDepositAddress ? /* @__PURE__ */
|
|
42748
|
+
), isLoadingDepositAddress ? /* @__PURE__ */ React258.createElement(FunSkeletonBlock, { height: "66px", width: "full" }) : /* @__PURE__ */ React258.createElement(
|
|
42815
42749
|
CopyInputDisplayedAddress,
|
|
42816
42750
|
{
|
|
42817
42751
|
address: depositAddress,
|
|
42818
42752
|
onAddressCopied: trackAddressCopied
|
|
42819
42753
|
}
|
|
42820
|
-
)), selectedChainId !== void 0 && /* @__PURE__ */
|
|
42754
|
+
)), selectedChainId !== void 0 && /* @__PURE__ */ React258.createElement(ChainInfoBanners, { chainId: selectedChainId }), /* @__PURE__ */ React258.createElement(FunInfoBanner, null), hideFeeBreakdown ? /* @__PURE__ */ React258.createElement(
|
|
42755
|
+
BottomLinks,
|
|
42756
|
+
{
|
|
42757
|
+
links: [
|
|
42758
|
+
{ text: t("transferToken.terms"), href: FUN_TERMS_URL },
|
|
42759
|
+
{ text: t("transferToken.help"), href: FUN_HELP_FAQ_URL }
|
|
42760
|
+
]
|
|
42761
|
+
}
|
|
42762
|
+
) : /* @__PURE__ */ React258.createElement(
|
|
42821
42763
|
TransferTokenDetails,
|
|
42822
42764
|
{
|
|
42823
42765
|
estProcessingTime: blockchain === "bitcoin" ? 30 * 60 * 1e3 : void 0,
|
|
@@ -42827,24 +42769,24 @@ function TransferToken({
|
|
|
42827
42769
|
onExpanded: () => trackImpactExpanded(estPriceImpact?.value)
|
|
42828
42770
|
}
|
|
42829
42771
|
))
|
|
42830
|
-
)), bottomSectionRef && createPortal23(/* @__PURE__ */
|
|
42772
|
+
)), bottomSectionRef && createPortal23(/* @__PURE__ */ React258.createElement(Dialog.BottomBar, null), bottomSectionRef))
|
|
42831
42773
|
);
|
|
42832
42774
|
}
|
|
42833
42775
|
|
|
42834
42776
|
// src/modals/CheckoutModal/VirtualFiatAccount/FiatAccountDetail.tsx
|
|
42835
|
-
import
|
|
42777
|
+
import React263, { useState as useState74 } from "react";
|
|
42836
42778
|
|
|
42837
42779
|
// src/components/VirtualFiatAccount/AccountDetailsTab/AccountDetailsTab.tsx
|
|
42838
|
-
import
|
|
42780
|
+
import React262 from "react";
|
|
42839
42781
|
|
|
42840
42782
|
// src/components/FunInputButton/FunInputButton.tsx
|
|
42841
|
-
import
|
|
42783
|
+
import React261 from "react";
|
|
42842
42784
|
|
|
42843
42785
|
// src/components/Icons/CopyDoubleRoundedSquareIcon.tsx
|
|
42844
|
-
import
|
|
42786
|
+
import React259 from "react";
|
|
42845
42787
|
var CopyDoubleRoundedSquareIcon = ({
|
|
42846
42788
|
size = 16
|
|
42847
|
-
}) => /* @__PURE__ */
|
|
42789
|
+
}) => /* @__PURE__ */ React259.createElement(
|
|
42848
42790
|
"svg",
|
|
42849
42791
|
{
|
|
42850
42792
|
width: size,
|
|
@@ -42853,7 +42795,7 @@ var CopyDoubleRoundedSquareIcon = ({
|
|
|
42853
42795
|
fill: "none",
|
|
42854
42796
|
xmlns: "http://www.w3.org/2000/svg"
|
|
42855
42797
|
},
|
|
42856
|
-
/* @__PURE__ */
|
|
42798
|
+
/* @__PURE__ */ React259.createElement(
|
|
42857
42799
|
"path",
|
|
42858
42800
|
{
|
|
42859
42801
|
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",
|
|
@@ -42866,9 +42808,9 @@ var CopyDoubleRoundedSquareIcon = ({
|
|
|
42866
42808
|
);
|
|
42867
42809
|
|
|
42868
42810
|
// src/components/Icons/New/CheckCircleIcon.tsx
|
|
42869
|
-
import
|
|
42811
|
+
import React260 from "react";
|
|
42870
42812
|
var CheckCircleIcon = () => {
|
|
42871
|
-
return /* @__PURE__ */
|
|
42813
|
+
return /* @__PURE__ */ React260.createElement(
|
|
42872
42814
|
"svg",
|
|
42873
42815
|
{
|
|
42874
42816
|
width: "16",
|
|
@@ -42877,7 +42819,7 @@ var CheckCircleIcon = () => {
|
|
|
42877
42819
|
fill: "none",
|
|
42878
42820
|
xmlns: "http://www.w3.org/2000/svg"
|
|
42879
42821
|
},
|
|
42880
|
-
/* @__PURE__ */
|
|
42822
|
+
/* @__PURE__ */ React260.createElement(
|
|
42881
42823
|
"circle",
|
|
42882
42824
|
{
|
|
42883
42825
|
cx: "8",
|
|
@@ -42889,7 +42831,7 @@ var CheckCircleIcon = () => {
|
|
|
42889
42831
|
strokeLinejoin: "round"
|
|
42890
42832
|
}
|
|
42891
42833
|
),
|
|
42892
|
-
/* @__PURE__ */
|
|
42834
|
+
/* @__PURE__ */ React260.createElement(
|
|
42893
42835
|
"path",
|
|
42894
42836
|
{
|
|
42895
42837
|
d: "M5.5 9L7 10.5L10.5 7",
|
|
@@ -42914,7 +42856,7 @@ var FunInputButton = ({
|
|
|
42914
42856
|
const { t } = useFunkitTranslation();
|
|
42915
42857
|
const { isCopied, handleCopy } = useCopyToClipboard(text, HIDE_TOOLTIP_MS);
|
|
42916
42858
|
if (!isCopyable) {
|
|
42917
|
-
return /* @__PURE__ */
|
|
42859
|
+
return /* @__PURE__ */ React261.createElement(
|
|
42918
42860
|
FunOptionBox,
|
|
42919
42861
|
{
|
|
42920
42862
|
width: "full",
|
|
@@ -42933,10 +42875,10 @@ var FunInputButton = ({
|
|
|
42933
42875
|
hover: "heavyStroke"
|
|
42934
42876
|
}
|
|
42935
42877
|
},
|
|
42936
|
-
/* @__PURE__ */
|
|
42878
|
+
/* @__PURE__ */ React261.createElement(Box, { display: "flex", gap: "8", flexDirection: "column" }, label && /* @__PURE__ */ React261.createElement(Text, { size: "10", color: "secondaryText" }, label), /* @__PURE__ */ React261.createElement(Text, { weight: "medium", size: "12" }, text))
|
|
42937
42879
|
);
|
|
42938
42880
|
}
|
|
42939
|
-
return /* @__PURE__ */
|
|
42881
|
+
return /* @__PURE__ */ React261.createElement(
|
|
42940
42882
|
FunOptionBox,
|
|
42941
42883
|
{
|
|
42942
42884
|
width: "full",
|
|
@@ -42956,8 +42898,8 @@ var FunInputButton = ({
|
|
|
42956
42898
|
hover: "heavyStroke"
|
|
42957
42899
|
}
|
|
42958
42900
|
},
|
|
42959
|
-
/* @__PURE__ */
|
|
42960
|
-
/* @__PURE__ */
|
|
42901
|
+
/* @__PURE__ */ React261.createElement(Box, { display: "flex", gap: "8", flexDirection: "column" }, label && /* @__PURE__ */ React261.createElement(Text, { size: "10", color: "secondaryText" }, label), /* @__PURE__ */ React261.createElement(Text, { weight: "medium", size: "12" }, text)),
|
|
42902
|
+
/* @__PURE__ */ React261.createElement(FunTooltip, { content: isCopied ? t("common.copied") : t("common.copy") }, /* @__PURE__ */ React261.createElement(Box, { display: "flex", alignItems: "center", color: "primaryText" }, isCopied ? /* @__PURE__ */ React261.createElement(CheckCircleIcon, null) : /* @__PURE__ */ React261.createElement(CopyDoubleRoundedSquareIcon, null)))
|
|
42961
42903
|
);
|
|
42962
42904
|
};
|
|
42963
42905
|
|
|
@@ -42968,62 +42910,62 @@ var AccountDetailsTab = ({
|
|
|
42968
42910
|
handleToggleDetails
|
|
42969
42911
|
}) => {
|
|
42970
42912
|
const { t } = useFunkitTranslation();
|
|
42971
|
-
return /* @__PURE__ */
|
|
42913
|
+
return /* @__PURE__ */ React262.createElement(Box, { display: "flex", flexDirection: "column", gap: "8" }, account.bank_account_number ? /* @__PURE__ */ React262.createElement(
|
|
42972
42914
|
FunInputButton,
|
|
42973
42915
|
{
|
|
42974
42916
|
label: t("virtualFiatAccount.accountNumber"),
|
|
42975
42917
|
text: account.bank_account_number
|
|
42976
42918
|
}
|
|
42977
|
-
) : null, account.bank_routing_number ? /* @__PURE__ */
|
|
42919
|
+
) : null, account.bank_routing_number ? /* @__PURE__ */ React262.createElement(
|
|
42978
42920
|
FunInputButton,
|
|
42979
42921
|
{
|
|
42980
42922
|
label: t("virtualFiatAccount.routingNumber"),
|
|
42981
42923
|
text: account.bank_routing_number
|
|
42982
42924
|
}
|
|
42983
|
-
) : null, account.iban ? /* @__PURE__ */
|
|
42925
|
+
) : null, account.iban ? /* @__PURE__ */ React262.createElement(
|
|
42984
42926
|
FunInputButton,
|
|
42985
42927
|
{
|
|
42986
42928
|
label: t("virtualFiatAccount.iban"),
|
|
42987
42929
|
text: account.iban
|
|
42988
42930
|
}
|
|
42989
|
-
) : null, account.bic ? /* @__PURE__ */
|
|
42931
|
+
) : null, account.bic ? /* @__PURE__ */ React262.createElement(
|
|
42990
42932
|
FunInputButton,
|
|
42991
42933
|
{
|
|
42992
42934
|
label: t("virtualFiatAccount.swiftBic"),
|
|
42993
42935
|
text: account.bic
|
|
42994
42936
|
}
|
|
42995
|
-
) : null, account.account_holder_name ? /* @__PURE__ */
|
|
42937
|
+
) : null, account.account_holder_name ? /* @__PURE__ */ React262.createElement(
|
|
42996
42938
|
FunInputButton,
|
|
42997
42939
|
{
|
|
42998
42940
|
label: t("virtualFiatAccount.accountHolderName"),
|
|
42999
42941
|
text: account.account_holder_name
|
|
43000
42942
|
}
|
|
43001
|
-
) : null, account.bank_beneficiary_name ? /* @__PURE__ */
|
|
42943
|
+
) : null, account.bank_beneficiary_name ? /* @__PURE__ */ React262.createElement(
|
|
43002
42944
|
FunInputButton,
|
|
43003
42945
|
{
|
|
43004
42946
|
label: t("virtualFiatAccount.beneficiaryName"),
|
|
43005
42947
|
text: account.bank_beneficiary_name
|
|
43006
42948
|
}
|
|
43007
|
-
) : null, detailsExpanded && /* @__PURE__ */
|
|
42949
|
+
) : null, detailsExpanded && /* @__PURE__ */ React262.createElement(React262.Fragment, null, /* @__PURE__ */ React262.createElement(
|
|
43008
42950
|
FunInputButton,
|
|
43009
42951
|
{
|
|
43010
42952
|
label: t("virtualFiatAccount.bankName"),
|
|
43011
42953
|
text: account.bank_name
|
|
43012
42954
|
}
|
|
43013
|
-
), /* @__PURE__ */
|
|
42955
|
+
), /* @__PURE__ */ React262.createElement(
|
|
43014
42956
|
FunInputButton,
|
|
43015
42957
|
{
|
|
43016
42958
|
label: t("virtualFiatAccount.bankAddress"),
|
|
43017
42959
|
text: account.bank_address
|
|
43018
42960
|
}
|
|
43019
|
-
), /* @__PURE__ */
|
|
42961
|
+
), /* @__PURE__ */ React262.createElement(
|
|
43020
42962
|
FunInputButton,
|
|
43021
42963
|
{
|
|
43022
42964
|
label: t("virtualFiatAccount.currency"),
|
|
43023
42965
|
text: String(account.currency).toUpperCase(),
|
|
43024
42966
|
isCopyable: false
|
|
43025
42967
|
}
|
|
43026
|
-
)), /* @__PURE__ */
|
|
42968
|
+
)), /* @__PURE__ */ React262.createElement(
|
|
43027
42969
|
Box,
|
|
43028
42970
|
{
|
|
43029
42971
|
width: "full",
|
|
@@ -43043,8 +42985,8 @@ var AccountDetailsTab = ({
|
|
|
43043
42985
|
hover: "heavyStroke"
|
|
43044
42986
|
}
|
|
43045
42987
|
},
|
|
43046
|
-
/* @__PURE__ */
|
|
43047
|
-
/* @__PURE__ */
|
|
42988
|
+
/* @__PURE__ */ React262.createElement(Text, { size: "13" }, detailsExpanded ? "See less" : "More details"),
|
|
42989
|
+
/* @__PURE__ */ React262.createElement(
|
|
43048
42990
|
Box,
|
|
43049
42991
|
{
|
|
43050
42992
|
width: "16",
|
|
@@ -43053,7 +42995,7 @@ var AccountDetailsTab = ({
|
|
|
43053
42995
|
alignItems: "center",
|
|
43054
42996
|
justifyContent: "center"
|
|
43055
42997
|
},
|
|
43056
|
-
/* @__PURE__ */
|
|
42998
|
+
/* @__PURE__ */ React262.createElement(
|
|
43057
42999
|
Box,
|
|
43058
43000
|
{
|
|
43059
43001
|
color: "secondaryText",
|
|
@@ -43064,7 +43006,7 @@ var AccountDetailsTab = ({
|
|
|
43064
43006
|
justifyContent: "center",
|
|
43065
43007
|
style: detailsExpanded ? { transform: "rotate(180deg)" } : void 0
|
|
43066
43008
|
},
|
|
43067
|
-
/* @__PURE__ */
|
|
43009
|
+
/* @__PURE__ */ React262.createElement(CaretDownIcon, null)
|
|
43068
43010
|
)
|
|
43069
43011
|
)
|
|
43070
43012
|
));
|
|
@@ -43090,7 +43032,7 @@ var AccountDetailsScreen = ({
|
|
|
43090
43032
|
const handleTabChange = (index) => {
|
|
43091
43033
|
animate(() => setActiveTab(index), { reverse: index < activeTab });
|
|
43092
43034
|
};
|
|
43093
|
-
return /* @__PURE__ */
|
|
43035
|
+
return /* @__PURE__ */ React263.createElement(
|
|
43094
43036
|
Box,
|
|
43095
43037
|
{
|
|
43096
43038
|
id: "fiat-detail-page",
|
|
@@ -43098,7 +43040,7 @@ var AccountDetailsScreen = ({
|
|
|
43098
43040
|
flexDirection: "column",
|
|
43099
43041
|
gap: "16"
|
|
43100
43042
|
},
|
|
43101
|
-
isSourceNavWidgetEnabled && /* @__PURE__ */
|
|
43043
|
+
isSourceNavWidgetEnabled && /* @__PURE__ */ React263.createElement(
|
|
43102
43044
|
SourcePaymentMethodItem,
|
|
43103
43045
|
{
|
|
43104
43046
|
onClick: () => onNext({}),
|
|
@@ -43107,21 +43049,21 @@ var AccountDetailsScreen = ({
|
|
|
43107
43049
|
keyIcon: label.icon
|
|
43108
43050
|
}
|
|
43109
43051
|
),
|
|
43110
|
-
/* @__PURE__ */
|
|
43052
|
+
/* @__PURE__ */ React263.createElement(Box, { display: "flex", flexDirection: "column", gap: "8" }, /* @__PURE__ */ React263.createElement(Box, { display: "flex", flexDirection: "column", gap: "12" }, /* @__PURE__ */ React263.createElement(
|
|
43111
43053
|
Tabs,
|
|
43112
43054
|
{
|
|
43113
43055
|
tabs,
|
|
43114
43056
|
activeTab,
|
|
43115
43057
|
onTabChange: handleTabChange
|
|
43116
43058
|
}
|
|
43117
|
-
)), /* @__PURE__ */
|
|
43059
|
+
)), /* @__PURE__ */ React263.createElement(Box, { className: getContentAnimation(animation) }, tabs[activeTab]?.value === "details" ? /* @__PURE__ */ React263.createElement(
|
|
43118
43060
|
AccountDetailsTab,
|
|
43119
43061
|
{
|
|
43120
43062
|
account: sourceDeposit,
|
|
43121
43063
|
detailsExpanded,
|
|
43122
43064
|
handleToggleDetails: () => setDetailsExpanded((prev) => !prev)
|
|
43123
43065
|
}
|
|
43124
|
-
) : /* @__PURE__ */
|
|
43066
|
+
) : /* @__PURE__ */ React263.createElement(
|
|
43125
43067
|
FunFeatureList,
|
|
43126
43068
|
{
|
|
43127
43069
|
gapBetweenItems: "8",
|
|
@@ -43135,7 +43077,7 @@ var AccountDetailsScreen = ({
|
|
|
43135
43077
|
"Gas fee: < $5.00",
|
|
43136
43078
|
"Banks fees may also apply"
|
|
43137
43079
|
],
|
|
43138
|
-
icon: /* @__PURE__ */
|
|
43080
|
+
icon: /* @__PURE__ */ React263.createElement(DollarIcon, null)
|
|
43139
43081
|
},
|
|
43140
43082
|
{
|
|
43141
43083
|
text: "Limits",
|
|
@@ -43143,12 +43085,12 @@ var AccountDetailsScreen = ({
|
|
|
43143
43085
|
"Minimum amount: 25 EUR",
|
|
43144
43086
|
"Maximum amount: 20,000,000 EUR"
|
|
43145
43087
|
],
|
|
43146
|
-
icon: /* @__PURE__ */
|
|
43088
|
+
icon: /* @__PURE__ */ React263.createElement(DollarIcon, null)
|
|
43147
43089
|
},
|
|
43148
43090
|
{
|
|
43149
43091
|
text: "Processing time",
|
|
43150
43092
|
value: [FIAT_PROCESSING_TIME],
|
|
43151
|
-
icon: /* @__PURE__ */
|
|
43093
|
+
icon: /* @__PURE__ */ React263.createElement(SpeedometerIcon, null)
|
|
43152
43094
|
}
|
|
43153
43095
|
]
|
|
43154
43096
|
}
|
|
@@ -43171,7 +43113,7 @@ var FiatAccountDetail = {
|
|
|
43171
43113
|
|
|
43172
43114
|
// src/modals/CheckoutModal/VirtualFiatAccount/KycIframe.tsx
|
|
43173
43115
|
import { BridgeCustomerStatus as BridgeCustomerStatus7 } from "@funkit/api-base";
|
|
43174
|
-
import
|
|
43116
|
+
import React264, { useCallback as useCallback48, useEffect as useEffect68, useMemo as useMemo61, useState as useState75 } from "react";
|
|
43175
43117
|
function useIframeListener(listeners, expectedOrigin) {
|
|
43176
43118
|
const handleMessage = useCallback48(
|
|
43177
43119
|
(event) => {
|
|
@@ -43258,7 +43200,7 @@ function KycIframe({
|
|
|
43258
43200
|
);
|
|
43259
43201
|
const loading = isLinkLoading || iframeLoading;
|
|
43260
43202
|
useIframeListener(listeners, kycOrigin);
|
|
43261
|
-
return /* @__PURE__ */
|
|
43203
|
+
return /* @__PURE__ */ React264.createElement(
|
|
43262
43204
|
Dialog,
|
|
43263
43205
|
{
|
|
43264
43206
|
onClose: onBack,
|
|
@@ -43267,13 +43209,13 @@ function KycIframe({
|
|
|
43267
43209
|
withoutSidePadding: !loading,
|
|
43268
43210
|
withTransition: false
|
|
43269
43211
|
},
|
|
43270
|
-
loading && /* @__PURE__ */
|
|
43212
|
+
loading && /* @__PURE__ */ React264.createElement(React264.Fragment, null, /* @__PURE__ */ React264.createElement(
|
|
43271
43213
|
Dialog.Title,
|
|
43272
43214
|
{
|
|
43273
43215
|
onClose: onBack,
|
|
43274
43216
|
title: textCustomizations.virtualFiat
|
|
43275
43217
|
}
|
|
43276
|
-
), /* @__PURE__ */
|
|
43218
|
+
), /* @__PURE__ */ React264.createElement(
|
|
43277
43219
|
VerifyAccountScreen,
|
|
43278
43220
|
{
|
|
43279
43221
|
customerStatus: BridgeCustomerStatus7.NOT_STARTED,
|
|
@@ -43281,7 +43223,7 @@ function KycIframe({
|
|
|
43281
43223
|
withActionButton: false
|
|
43282
43224
|
}
|
|
43283
43225
|
)),
|
|
43284
|
-
/* @__PURE__ */
|
|
43226
|
+
/* @__PURE__ */ React264.createElement(
|
|
43285
43227
|
Dialog.Content,
|
|
43286
43228
|
{
|
|
43287
43229
|
display: "flex",
|
|
@@ -43294,7 +43236,7 @@ function KycIframe({
|
|
|
43294
43236
|
withoutSidePadding: !loading,
|
|
43295
43237
|
fullHeight: !loading
|
|
43296
43238
|
},
|
|
43297
|
-
kycLink && /* @__PURE__ */
|
|
43239
|
+
kycLink && /* @__PURE__ */ React264.createElement(
|
|
43298
43240
|
"iframe",
|
|
43299
43241
|
{
|
|
43300
43242
|
src: kycLink,
|
|
@@ -43309,14 +43251,14 @@ function KycIframe({
|
|
|
43309
43251
|
}
|
|
43310
43252
|
)
|
|
43311
43253
|
),
|
|
43312
|
-
loading && /* @__PURE__ */
|
|
43254
|
+
loading && /* @__PURE__ */ React264.createElement(
|
|
43313
43255
|
Dialog.BottomSection,
|
|
43314
43256
|
{
|
|
43315
43257
|
style: {
|
|
43316
43258
|
paddingBottom: themeVars.spacing.modalPaddingBottomLower
|
|
43317
43259
|
}
|
|
43318
43260
|
},
|
|
43319
|
-
/* @__PURE__ */
|
|
43261
|
+
/* @__PURE__ */ React264.createElement(
|
|
43320
43262
|
Dialog.BottomBar,
|
|
43321
43263
|
{
|
|
43322
43264
|
actionButtonProps: {
|
|
@@ -43330,6 +43272,45 @@ function KycIframe({
|
|
|
43330
43272
|
);
|
|
43331
43273
|
}
|
|
43332
43274
|
|
|
43275
|
+
// src/modals/CheckoutModal/Withdrawal/WithdrawalComplete.tsx
|
|
43276
|
+
var WithdrawalCompleteInfo = {
|
|
43277
|
+
Component: WithdrawalComplete,
|
|
43278
|
+
disableBack: () => true,
|
|
43279
|
+
onNext(state, _payload) {
|
|
43280
|
+
return {
|
|
43281
|
+
...extractCommonState(state),
|
|
43282
|
+
step: "source_change" /* SOURCE_CHANGE */,
|
|
43283
|
+
paymentMethodInfo: null,
|
|
43284
|
+
paymentMethodTypeFilter: "withdraw"
|
|
43285
|
+
};
|
|
43286
|
+
}
|
|
43287
|
+
};
|
|
43288
|
+
function WithdrawalComplete(_props) {
|
|
43289
|
+
return null;
|
|
43290
|
+
}
|
|
43291
|
+
|
|
43292
|
+
// src/modals/CheckoutModal/Withdrawal/WithdrawalEnterAmount.tsx
|
|
43293
|
+
var WithdrawalEnterAmountInfo = {
|
|
43294
|
+
Component: WithdrawalEnterAmount,
|
|
43295
|
+
onBack(state, prevState) {
|
|
43296
|
+
return prevState;
|
|
43297
|
+
},
|
|
43298
|
+
onNext(state, payload) {
|
|
43299
|
+
return {
|
|
43300
|
+
...extractCommonState(state),
|
|
43301
|
+
step: "withdrawal_complete" /* WITHDRAWAL_COMPLETE */,
|
|
43302
|
+
withdrawalConfig: state.withdrawalConfig,
|
|
43303
|
+
hash: payload.hash,
|
|
43304
|
+
withdrawnAmount: payload.withdrawnAmount,
|
|
43305
|
+
tokenSymbol: payload.tokenSymbol,
|
|
43306
|
+
quote: payload.quote
|
|
43307
|
+
};
|
|
43308
|
+
}
|
|
43309
|
+
};
|
|
43310
|
+
function WithdrawalEnterAmount(_props) {
|
|
43311
|
+
return null;
|
|
43312
|
+
}
|
|
43313
|
+
|
|
43333
43314
|
// src/modals/CheckoutModal/stepTransition.ts
|
|
43334
43315
|
function extractCommonState(state) {
|
|
43335
43316
|
return {
|
|
@@ -43364,7 +43345,9 @@ var CheckoutModalSteps = {
|
|
|
43364
43345
|
["brokerage_two_fa" /* BROKERAGE_TWO_FA */]: BrokerageTwoFAInfo,
|
|
43365
43346
|
["brokerage_success" /* BROKERAGE_SUCCESS */]: BrokerageSuccessInfo,
|
|
43366
43347
|
["swapped_iframe" /* SWAPPED_IFRAME */]: SwappedIframeInfo,
|
|
43367
|
-
["perps_transfer" /* PERPS_TRANSFER */]: PerpsTransferStepInfo
|
|
43348
|
+
["perps_transfer" /* PERPS_TRANSFER */]: PerpsTransferStepInfo,
|
|
43349
|
+
["withdrawal_enter_amount" /* WITHDRAWAL_ENTER_AMOUNT */]: WithdrawalEnterAmountInfo,
|
|
43350
|
+
["withdrawal_complete" /* WITHDRAWAL_COMPLETE */]: WithdrawalCompleteInfo
|
|
43368
43351
|
};
|
|
43369
43352
|
var checkoutBackMap = {
|
|
43370
43353
|
["bridge_kyc" /* BRIDGE_KYC */]: "source_change" /* SOURCE_CHANGE */
|
|
@@ -43403,7 +43386,9 @@ function useCheckoutModalTransition(checkoutItem, onClose) {
|
|
|
43403
43386
|
const trackNextState = useCallback49(
|
|
43404
43387
|
(nextState) => {
|
|
43405
43388
|
const trackEvent = trackEventFromNextState(nextState);
|
|
43406
|
-
|
|
43389
|
+
if (trackEvent) {
|
|
43390
|
+
logEvent(trackEvent);
|
|
43391
|
+
}
|
|
43407
43392
|
const readyEventName = CHECKOUT_STEP_TO_READY_EVENT[nextState.step];
|
|
43408
43393
|
if (readyEventName) {
|
|
43409
43394
|
startMeasuredEvent(readyEventName);
|
|
@@ -43615,7 +43600,7 @@ function FunCheckoutModalHeightAnimationWrapper({
|
|
|
43615
43600
|
const permittedHeight = getPermittedHeight2(
|
|
43616
43601
|
checkoutStep === "loading_account" /* LOADING_ACCOUNT */ ? startsOnConfirmationStep ? "confirmation" /* CONFIRMATION */ : startsOnSelectAssetStep ? "select_asset" /* SELECT_ASSET */ : "source_change" /* SOURCE_CHANGE */ : checkoutStep
|
|
43617
43602
|
);
|
|
43618
|
-
return /* @__PURE__ */
|
|
43603
|
+
return /* @__PURE__ */ React265.createElement(ModalHeightAnimationLayer, { permittedHeight }, children);
|
|
43619
43604
|
}
|
|
43620
43605
|
|
|
43621
43606
|
// src/hooks/useCheckoutModalTitle.ts
|
|
@@ -43630,7 +43615,7 @@ function useCheckoutModalTitle(depositAddress, defaultTitle) {
|
|
|
43630
43615
|
import { IN_PROGRESS_CHECKOUT_STATES as IN_PROGRESS_CHECKOUT_STATES2 } from "@funkit/api-base";
|
|
43631
43616
|
import { formatTimestampToDate, fullMonthNames } from "@funkit/utils";
|
|
43632
43617
|
import clsx23 from "clsx";
|
|
43633
|
-
import
|
|
43618
|
+
import React274, { useEffect as useEffect71, useMemo as useMemo62, useRef as useRef37, useState as useState78 } from "react";
|
|
43634
43619
|
import { Virtuoso } from "react-virtuoso";
|
|
43635
43620
|
|
|
43636
43621
|
// src/consts/layout.ts
|
|
@@ -43641,10 +43626,10 @@ var DEFAULT_ICON_SIZE = "24";
|
|
|
43641
43626
|
var OVERLAY_Z_INDEX = 100;
|
|
43642
43627
|
|
|
43643
43628
|
// src/modals/ProfileDetails/FunProfileViews/Home/BalanceSection.tsx
|
|
43644
|
-
import
|
|
43629
|
+
import React266 from "react";
|
|
43645
43630
|
import { formatCurrencyAndStringify as formatCurrencyAndStringify13 } from "@funkit/utils";
|
|
43646
43631
|
var BalanceSection = ({ totalBalance }) => {
|
|
43647
|
-
return /* @__PURE__ */
|
|
43632
|
+
return /* @__PURE__ */ React266.createElement(Box, { display: "flex", flexDirection: "column", gap: "16" }, /* @__PURE__ */ React266.createElement(Box, { display: "flex", justifyContent: "center", alignItems: "center" }, /* @__PURE__ */ React266.createElement(Text, { as: "h1", color: "primaryText", weight: "medium", size: "40" }, formatCurrencyAndStringify13(
|
|
43648
43633
|
Number.parseFloat(totalBalance.toString())
|
|
43649
43634
|
))));
|
|
43650
43635
|
};
|
|
@@ -43663,12 +43648,12 @@ import {
|
|
|
43663
43648
|
isNotNullish as isNotNullish7
|
|
43664
43649
|
} from "@funkit/utils";
|
|
43665
43650
|
import clsx22 from "clsx";
|
|
43666
|
-
import
|
|
43651
|
+
import React268 from "react";
|
|
43667
43652
|
|
|
43668
43653
|
// src/components/Icons/RedRoundErrorCross.tsx
|
|
43669
|
-
import
|
|
43654
|
+
import React267 from "react";
|
|
43670
43655
|
var RedRoundErrorCross = ({ size = 15 }) => {
|
|
43671
|
-
return /* @__PURE__ */
|
|
43656
|
+
return /* @__PURE__ */ React267.createElement(
|
|
43672
43657
|
"svg",
|
|
43673
43658
|
{
|
|
43674
43659
|
width: size,
|
|
@@ -43677,8 +43662,8 @@ var RedRoundErrorCross = ({ size = 15 }) => {
|
|
|
43677
43662
|
fill: "none",
|
|
43678
43663
|
xmlns: "http://www.w3.org/2000/svg"
|
|
43679
43664
|
},
|
|
43680
|
-
/* @__PURE__ */
|
|
43681
|
-
/* @__PURE__ */
|
|
43665
|
+
/* @__PURE__ */ React267.createElement("circle", { cx: "4", cy: "4.5", r: "4", fill: "#F34126" }),
|
|
43666
|
+
/* @__PURE__ */ React267.createElement(
|
|
43682
43667
|
"path",
|
|
43683
43668
|
{
|
|
43684
43669
|
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",
|
|
@@ -43714,7 +43699,7 @@ var HomeCheckoutDisplayRow = ({
|
|
|
43714
43699
|
const checkoutClientMetadata = checkoutHistoryItem.clientMetadata;
|
|
43715
43700
|
const getStatusElement = () => {
|
|
43716
43701
|
if (isCompleted) {
|
|
43717
|
-
return /* @__PURE__ */
|
|
43702
|
+
return /* @__PURE__ */ React268.createElement(
|
|
43718
43703
|
Box,
|
|
43719
43704
|
{
|
|
43720
43705
|
display: "flex",
|
|
@@ -43722,12 +43707,12 @@ var HomeCheckoutDisplayRow = ({
|
|
|
43722
43707
|
gap: STATUS_FLEX_GAP_X,
|
|
43723
43708
|
alignItems: "center"
|
|
43724
43709
|
},
|
|
43725
|
-
/* @__PURE__ */
|
|
43726
|
-
/* @__PURE__ */
|
|
43710
|
+
/* @__PURE__ */ React268.createElement(GreenRoundCheckmark, { size: Number.parseInt(STATUS_ICON_SIZE) }),
|
|
43711
|
+
/* @__PURE__ */ React268.createElement(Text, { size: STATUS_TEXT_SIZE, color: "success" }, t("checkoutHistory.completed"))
|
|
43727
43712
|
);
|
|
43728
43713
|
}
|
|
43729
43714
|
if (isError || isFailed || isExpired) {
|
|
43730
|
-
return /* @__PURE__ */
|
|
43715
|
+
return /* @__PURE__ */ React268.createElement(
|
|
43731
43716
|
Box,
|
|
43732
43717
|
{
|
|
43733
43718
|
display: "flex",
|
|
@@ -43735,12 +43720,12 @@ var HomeCheckoutDisplayRow = ({
|
|
|
43735
43720
|
gap: STATUS_FLEX_GAP_X,
|
|
43736
43721
|
alignItems: "center"
|
|
43737
43722
|
},
|
|
43738
|
-
/* @__PURE__ */
|
|
43739
|
-
/* @__PURE__ */
|
|
43723
|
+
/* @__PURE__ */ React268.createElement(RedRoundErrorCross, { size: Number.parseInt(STATUS_ICON_SIZE) }),
|
|
43724
|
+
/* @__PURE__ */ React268.createElement(Text, { size: STATUS_TEXT_SIZE, color: "error" }, t("checkoutHistory.failed"))
|
|
43740
43725
|
);
|
|
43741
43726
|
}
|
|
43742
43727
|
if (isProcessing) {
|
|
43743
|
-
return /* @__PURE__ */
|
|
43728
|
+
return /* @__PURE__ */ React268.createElement(
|
|
43744
43729
|
Box,
|
|
43745
43730
|
{
|
|
43746
43731
|
display: "flex",
|
|
@@ -43748,7 +43733,7 @@ var HomeCheckoutDisplayRow = ({
|
|
|
43748
43733
|
gap: STATUS_FLEX_GAP_X,
|
|
43749
43734
|
alignItems: "center"
|
|
43750
43735
|
},
|
|
43751
|
-
/* @__PURE__ */
|
|
43736
|
+
/* @__PURE__ */ React268.createElement(
|
|
43752
43737
|
Box,
|
|
43753
43738
|
{
|
|
43754
43739
|
width: STATUS_ICON_SIZE,
|
|
@@ -43757,13 +43742,13 @@ var HomeCheckoutDisplayRow = ({
|
|
|
43757
43742
|
background: "standby"
|
|
43758
43743
|
}
|
|
43759
43744
|
),
|
|
43760
|
-
/* @__PURE__ */
|
|
43745
|
+
/* @__PURE__ */ React268.createElement(Text, { size: STATUS_TEXT_SIZE, color: "standby" }, t("checkoutHistory.processing"))
|
|
43761
43746
|
);
|
|
43762
43747
|
}
|
|
43763
43748
|
};
|
|
43764
43749
|
const checkoutConfig = checkoutClientMetadata.initSettings.config;
|
|
43765
43750
|
const showIcon = isNotNullish7(checkoutConfig.iconSrc) || checkoutClientMetadata.isWithdrawal;
|
|
43766
|
-
return /* @__PURE__ */
|
|
43751
|
+
return /* @__PURE__ */ React268.createElement(
|
|
43767
43752
|
Box,
|
|
43768
43753
|
{
|
|
43769
43754
|
className: clsx22(
|
|
@@ -43788,7 +43773,7 @@ var HomeCheckoutDisplayRow = ({
|
|
|
43788
43773
|
}
|
|
43789
43774
|
}
|
|
43790
43775
|
},
|
|
43791
|
-
/* @__PURE__ */
|
|
43776
|
+
/* @__PURE__ */ React268.createElement(Box, { display: "flex", alignItems: "center", gap: ROW_FLEX_GAP_X, width: "full" }, showIcon && /* @__PURE__ */ React268.createElement(
|
|
43792
43777
|
Box,
|
|
43793
43778
|
{
|
|
43794
43779
|
display: "flex",
|
|
@@ -43799,7 +43784,7 @@ var HomeCheckoutDisplayRow = ({
|
|
|
43799
43784
|
minWidth: "29px"
|
|
43800
43785
|
}
|
|
43801
43786
|
},
|
|
43802
|
-
/* @__PURE__ */
|
|
43787
|
+
/* @__PURE__ */ React268.createElement(
|
|
43803
43788
|
FunAssetAvatar,
|
|
43804
43789
|
{
|
|
43805
43790
|
assetSrc: checkoutConfig.iconSrc || "",
|
|
@@ -43810,7 +43795,7 @@ var HomeCheckoutDisplayRow = ({
|
|
|
43810
43795
|
chainId: checkoutConfig.targetChain
|
|
43811
43796
|
}
|
|
43812
43797
|
)
|
|
43813
|
-
), /* @__PURE__ */
|
|
43798
|
+
), /* @__PURE__ */ React268.createElement(Box, { display: "flex", flexDirection: "column", width: "full" }, /* @__PURE__ */ React268.createElement(
|
|
43814
43799
|
Box,
|
|
43815
43800
|
{
|
|
43816
43801
|
display: "flex",
|
|
@@ -43818,19 +43803,19 @@ var HomeCheckoutDisplayRow = ({
|
|
|
43818
43803
|
alignItems: "center",
|
|
43819
43804
|
gap: "16"
|
|
43820
43805
|
},
|
|
43821
|
-
/* @__PURE__ */
|
|
43822
|
-
/* @__PURE__ */
|
|
43806
|
+
/* @__PURE__ */ React268.createElement(Text, { size: TEXT_SIZE_MEDIUM2, weight: "medium", color: "primaryText" }, checkoutConfig.checkoutItemTitle),
|
|
43807
|
+
/* @__PURE__ */ React268.createElement(Text, { size: TEXT_SIZE_MEDIUM2, weight: "medium", color: "primaryText" }, `${formatCurrencyAndStringify14(
|
|
43823
43808
|
checkoutClientMetadata?.finalDollarValue || 0
|
|
43824
43809
|
)} USD`)
|
|
43825
|
-
), /* @__PURE__ */
|
|
43810
|
+
), /* @__PURE__ */ React268.createElement(Box, { display: "flex", justifyContent: "space-between", gap: "16" }, /* @__PURE__ */ React268.createElement(Text, { size: TEXT_SIZE_SMALL2, color: "secondaryText" }, formatTimestamp3(new Date(checkoutHistoryItem.createdTimeMs), {
|
|
43826
43811
|
year: "none",
|
|
43827
43812
|
seconds: "none",
|
|
43828
43813
|
month: "short"
|
|
43829
|
-
})), /* @__PURE__ */
|
|
43814
|
+
})), /* @__PURE__ */ React268.createElement(Box, null, getStatusElement()))))
|
|
43830
43815
|
);
|
|
43831
43816
|
};
|
|
43832
43817
|
var HomeCheckoutDisplayRowSkeleton = () => {
|
|
43833
|
-
return /* @__PURE__ */
|
|
43818
|
+
return /* @__PURE__ */ React268.createElement(
|
|
43834
43819
|
Box,
|
|
43835
43820
|
{
|
|
43836
43821
|
display: "flex",
|
|
@@ -43840,8 +43825,8 @@ var HomeCheckoutDisplayRowSkeleton = () => {
|
|
|
43840
43825
|
paddingX: PROFILE_SIDE_PADDING,
|
|
43841
43826
|
paddingY: ROW_PADDING_Y
|
|
43842
43827
|
},
|
|
43843
|
-
/* @__PURE__ */
|
|
43844
|
-
/* @__PURE__ */
|
|
43828
|
+
/* @__PURE__ */ React268.createElement(FunSkeletonCircle, { size: DEFAULT_ICON_SIZE }),
|
|
43829
|
+
/* @__PURE__ */ React268.createElement(Box, { display: "flex", flexDirection: "column", style: { flexGrow: 1 } }, /* @__PURE__ */ React268.createElement(
|
|
43845
43830
|
FunSkeletonBlock,
|
|
43846
43831
|
{
|
|
43847
43832
|
height: TEXT_SIZE_MEDIUM2,
|
|
@@ -43849,7 +43834,7 @@ var HomeCheckoutDisplayRowSkeleton = () => {
|
|
|
43849
43834
|
marginTop: TEXT_SKELETON_MARGIN_TOP2,
|
|
43850
43835
|
width: TEXT_SKELETON_WIDTH_LONG2
|
|
43851
43836
|
}
|
|
43852
|
-
), /* @__PURE__ */
|
|
43837
|
+
), /* @__PURE__ */ React268.createElement(
|
|
43853
43838
|
FunSkeletonBlock,
|
|
43854
43839
|
{
|
|
43855
43840
|
height: TEXT_SIZE_SMALL2,
|
|
@@ -43858,7 +43843,7 @@ var HomeCheckoutDisplayRowSkeleton = () => {
|
|
|
43858
43843
|
width: TEXT_SKELETON_WIDTH_MEDIUM
|
|
43859
43844
|
}
|
|
43860
43845
|
)),
|
|
43861
|
-
/* @__PURE__ */
|
|
43846
|
+
/* @__PURE__ */ React268.createElement(Box, { alignItems: "flex-end", display: "flex", flexDirection: "column" }, /* @__PURE__ */ React268.createElement(
|
|
43862
43847
|
FunSkeletonBlock,
|
|
43863
43848
|
{
|
|
43864
43849
|
height: TEXT_SIZE_MEDIUM2,
|
|
@@ -43866,7 +43851,7 @@ var HomeCheckoutDisplayRowSkeleton = () => {
|
|
|
43866
43851
|
marginTop: TEXT_SKELETON_MARGIN_TOP2,
|
|
43867
43852
|
width: TEXT_SKELETON_WIDTH_MEDIUM
|
|
43868
43853
|
}
|
|
43869
|
-
), /* @__PURE__ */
|
|
43854
|
+
), /* @__PURE__ */ React268.createElement(
|
|
43870
43855
|
FunSkeletonBlock,
|
|
43871
43856
|
{
|
|
43872
43857
|
height: STATUS_TEXT_SIZE,
|
|
@@ -43884,7 +43869,7 @@ import {
|
|
|
43884
43869
|
formatCurrencyAndStringify as formatCurrencyAndStringify15,
|
|
43885
43870
|
isMobile as isMobile9
|
|
43886
43871
|
} from "@funkit/utils";
|
|
43887
|
-
import
|
|
43872
|
+
import React269 from "react";
|
|
43888
43873
|
var TEXT_SIZE = "13";
|
|
43889
43874
|
var TEXT_SKELETON_MARGIN_TOP3 = "2";
|
|
43890
43875
|
var TEXT_SKELETON_MARGIN_BOTTOM3 = "3";
|
|
@@ -43899,7 +43884,7 @@ var HomeTokenBalanceDisplayRow = ({
|
|
|
43899
43884
|
asset.tokenBalance,
|
|
43900
43885
|
asset.decimals
|
|
43901
43886
|
);
|
|
43902
|
-
return /* @__PURE__ */
|
|
43887
|
+
return /* @__PURE__ */ React269.createElement(
|
|
43903
43888
|
Box,
|
|
43904
43889
|
{
|
|
43905
43890
|
display: "flex",
|
|
@@ -43913,7 +43898,7 @@ var HomeTokenBalanceDisplayRow = ({
|
|
|
43913
43898
|
paddingY: ROW_PADDING_Y2,
|
|
43914
43899
|
className: baseStyles4
|
|
43915
43900
|
},
|
|
43916
|
-
/* @__PURE__ */
|
|
43901
|
+
/* @__PURE__ */ React269.createElement(
|
|
43917
43902
|
Box,
|
|
43918
43903
|
{
|
|
43919
43904
|
display: "flex",
|
|
@@ -43922,7 +43907,7 @@ var HomeTokenBalanceDisplayRow = ({
|
|
|
43922
43907
|
alignItems: "flex-start",
|
|
43923
43908
|
height: "full"
|
|
43924
43909
|
},
|
|
43925
|
-
/* @__PURE__ */
|
|
43910
|
+
/* @__PURE__ */ React269.createElement(
|
|
43926
43911
|
FunAssetAvatar,
|
|
43927
43912
|
{
|
|
43928
43913
|
assetSrc: asset.logo,
|
|
@@ -43932,22 +43917,22 @@ var HomeTokenBalanceDisplayRow = ({
|
|
|
43932
43917
|
assetIconSize: DEFAULT_ICON_SIZE
|
|
43933
43918
|
}
|
|
43934
43919
|
),
|
|
43935
|
-
/* @__PURE__ */
|
|
43920
|
+
/* @__PURE__ */ React269.createElement(
|
|
43936
43921
|
Box,
|
|
43937
43922
|
{
|
|
43938
43923
|
display: "flex",
|
|
43939
43924
|
flexDirection: "column",
|
|
43940
43925
|
justifyContent: "space-between"
|
|
43941
43926
|
},
|
|
43942
|
-
/* @__PURE__ */
|
|
43943
|
-
/* @__PURE__ */
|
|
43927
|
+
/* @__PURE__ */ React269.createElement(Text, { color: "primaryText", size: TEXT_SIZE, weight: "regular" }, asset.name),
|
|
43928
|
+
/* @__PURE__ */ React269.createElement(Text, { color: "secondaryText", size: TEXT_SIZE, weight: "regular" }, formatCryptoAndStringify10(normalizedAmount, asset.symbol))
|
|
43944
43929
|
)
|
|
43945
43930
|
),
|
|
43946
|
-
/* @__PURE__ */
|
|
43931
|
+
/* @__PURE__ */ React269.createElement(Text, { color: "primaryText", size: TEXT_SIZE, weight: "regular" }, formatCurrencyAndStringify15(asset.totalUsdValue || 0))
|
|
43947
43932
|
);
|
|
43948
43933
|
};
|
|
43949
43934
|
var HomeTokenBalanceDisplayRowSkeleton = () => {
|
|
43950
|
-
return /* @__PURE__ */
|
|
43935
|
+
return /* @__PURE__ */ React269.createElement(
|
|
43951
43936
|
Box,
|
|
43952
43937
|
{
|
|
43953
43938
|
display: "flex",
|
|
@@ -43957,8 +43942,8 @@ var HomeTokenBalanceDisplayRowSkeleton = () => {
|
|
|
43957
43942
|
paddingX: PROFILE_SIDE_PADDING,
|
|
43958
43943
|
paddingY: ROW_PADDING_Y2
|
|
43959
43944
|
},
|
|
43960
|
-
/* @__PURE__ */
|
|
43961
|
-
/* @__PURE__ */
|
|
43945
|
+
/* @__PURE__ */ React269.createElement(FunSkeletonCircle, { size: DEFAULT_ICON_SIZE }),
|
|
43946
|
+
/* @__PURE__ */ React269.createElement(Box, { display: "flex", flexDirection: "column", style: { flexGrow: 1 } }, /* @__PURE__ */ React269.createElement(
|
|
43962
43947
|
FunSkeletonBlock,
|
|
43963
43948
|
{
|
|
43964
43949
|
height: TEXT_SIZE,
|
|
@@ -43966,7 +43951,7 @@ var HomeTokenBalanceDisplayRowSkeleton = () => {
|
|
|
43966
43951
|
marginTop: TEXT_SKELETON_MARGIN_TOP3,
|
|
43967
43952
|
width: TEXT_SKELETON_WIDTH_SHORT3
|
|
43968
43953
|
}
|
|
43969
|
-
), /* @__PURE__ */
|
|
43954
|
+
), /* @__PURE__ */ React269.createElement(
|
|
43970
43955
|
FunSkeletonBlock,
|
|
43971
43956
|
{
|
|
43972
43957
|
height: TEXT_SIZE,
|
|
@@ -43975,7 +43960,7 @@ var HomeTokenBalanceDisplayRowSkeleton = () => {
|
|
|
43975
43960
|
width: TEXT_SKELETON_WIDTH_LONG3
|
|
43976
43961
|
}
|
|
43977
43962
|
)),
|
|
43978
|
-
/* @__PURE__ */
|
|
43963
|
+
/* @__PURE__ */ React269.createElement(
|
|
43979
43964
|
FunSkeletonBlock,
|
|
43980
43965
|
{
|
|
43981
43966
|
height: TEXT_SIZE,
|
|
@@ -43988,11 +43973,11 @@ var HomeTokenBalanceDisplayRowSkeleton = () => {
|
|
|
43988
43973
|
};
|
|
43989
43974
|
|
|
43990
43975
|
// src/modals/ProfileDetails/FunProfileViews/Home/ProfileTitleSection.tsx
|
|
43991
|
-
import
|
|
43976
|
+
import React273 from "react";
|
|
43992
43977
|
import { useCallback as useCallback50, useState as useState77 } from "react";
|
|
43993
43978
|
|
|
43994
43979
|
// src/components/FunSelect/FunClickOutside.tsx
|
|
43995
|
-
import
|
|
43980
|
+
import React270 from "react";
|
|
43996
43981
|
import { useEffect as useEffect70, useRef as useRef36 } from "react";
|
|
43997
43982
|
function FunClickOutside({
|
|
43998
43983
|
children,
|
|
@@ -44013,13 +43998,13 @@ function FunClickOutside({
|
|
|
44013
43998
|
document.removeEventListener("mousedown", handleClickListener);
|
|
44014
43999
|
};
|
|
44015
44000
|
}, [onClick]);
|
|
44016
|
-
return /* @__PURE__ */
|
|
44001
|
+
return /* @__PURE__ */ React270.createElement("div", { ref: wrapperRef }, children);
|
|
44017
44002
|
}
|
|
44018
44003
|
|
|
44019
44004
|
// src/components/Icons/LogoutIcon.tsx
|
|
44020
|
-
import
|
|
44005
|
+
import React271 from "react";
|
|
44021
44006
|
var LogoutIcon = ({ size = 16 }) => {
|
|
44022
|
-
return /* @__PURE__ */
|
|
44007
|
+
return /* @__PURE__ */ React271.createElement(
|
|
44023
44008
|
"svg",
|
|
44024
44009
|
{
|
|
44025
44010
|
width: size,
|
|
@@ -44028,7 +44013,7 @@ var LogoutIcon = ({ size = 16 }) => {
|
|
|
44028
44013
|
fill: "none",
|
|
44029
44014
|
xmlns: "http://www.w3.org/2000/svg"
|
|
44030
44015
|
},
|
|
44031
|
-
/* @__PURE__ */
|
|
44016
|
+
/* @__PURE__ */ React271.createElement(
|
|
44032
44017
|
"path",
|
|
44033
44018
|
{
|
|
44034
44019
|
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",
|
|
@@ -44043,9 +44028,9 @@ var LogoutIcon = ({ size = 16 }) => {
|
|
|
44043
44028
|
};
|
|
44044
44029
|
|
|
44045
44030
|
// src/components/Icons/SettingsIcon.tsx
|
|
44046
|
-
import
|
|
44031
|
+
import React272 from "react";
|
|
44047
44032
|
var SettingsIcon = ({ size = 16 }) => {
|
|
44048
|
-
return /* @__PURE__ */
|
|
44033
|
+
return /* @__PURE__ */ React272.createElement(
|
|
44049
44034
|
"svg",
|
|
44050
44035
|
{
|
|
44051
44036
|
width: size,
|
|
@@ -44054,14 +44039,14 @@ var SettingsIcon = ({ size = 16 }) => {
|
|
|
44054
44039
|
fill: "none",
|
|
44055
44040
|
xmlns: "http://www.w3.org/2000/svg"
|
|
44056
44041
|
},
|
|
44057
|
-
/* @__PURE__ */
|
|
44042
|
+
/* @__PURE__ */ React272.createElement(
|
|
44058
44043
|
"path",
|
|
44059
44044
|
{
|
|
44060
44045
|
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",
|
|
44061
44046
|
stroke: "currentColor"
|
|
44062
44047
|
}
|
|
44063
44048
|
),
|
|
44064
|
-
/* @__PURE__ */
|
|
44049
|
+
/* @__PURE__ */ React272.createElement(
|
|
44065
44050
|
"path",
|
|
44066
44051
|
{
|
|
44067
44052
|
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",
|
|
@@ -44086,7 +44071,7 @@ var ProfileTitleSection = ({
|
|
|
44086
44071
|
() => setIsDisconnectExpanded(false),
|
|
44087
44072
|
[]
|
|
44088
44073
|
);
|
|
44089
|
-
return /* @__PURE__ */
|
|
44074
|
+
return /* @__PURE__ */ React273.createElement(
|
|
44090
44075
|
Box,
|
|
44091
44076
|
{
|
|
44092
44077
|
display: "flex",
|
|
@@ -44095,7 +44080,7 @@ var ProfileTitleSection = ({
|
|
|
44095
44080
|
width: "full",
|
|
44096
44081
|
minHeight: "28"
|
|
44097
44082
|
},
|
|
44098
|
-
/* @__PURE__ */
|
|
44083
|
+
/* @__PURE__ */ React273.createElement(
|
|
44099
44084
|
Box,
|
|
44100
44085
|
{
|
|
44101
44086
|
display: "flex",
|
|
@@ -44104,7 +44089,7 @@ var ProfileTitleSection = ({
|
|
|
44104
44089
|
gap: "8",
|
|
44105
44090
|
className: animateOut ? animateTitleOutClass : animateTitleInClass
|
|
44106
44091
|
},
|
|
44107
|
-
account.address && /* @__PURE__ */
|
|
44092
|
+
account.address && /* @__PURE__ */ React273.createElement(
|
|
44108
44093
|
Avatar,
|
|
44109
44094
|
{
|
|
44110
44095
|
address: account.address,
|
|
@@ -44113,21 +44098,21 @@ var ProfileTitleSection = ({
|
|
|
44113
44098
|
size: 20
|
|
44114
44099
|
}
|
|
44115
44100
|
),
|
|
44116
|
-
/* @__PURE__ */
|
|
44101
|
+
/* @__PURE__ */ React273.createElement(Text, { color: "primaryText", size: "13", weight: "medium" }, userInfo.nameTruncated)
|
|
44117
44102
|
),
|
|
44118
|
-
/* @__PURE__ */
|
|
44103
|
+
/* @__PURE__ */ React273.createElement(Box, { display: "flex", alignItems: "center", flexDirection: "row" }, !isDisconnectExpanded && /* @__PURE__ */ React273.createElement(
|
|
44119
44104
|
FunIconButton,
|
|
44120
44105
|
{
|
|
44121
|
-
icon: /* @__PURE__ */
|
|
44106
|
+
icon: /* @__PURE__ */ React273.createElement(SettingsIcon, { size: 17 }),
|
|
44122
44107
|
onClick: () => onChangeView(1 /* SETTINGS */),
|
|
44123
44108
|
paddingX: "4",
|
|
44124
44109
|
paddingY: "4"
|
|
44125
44110
|
}
|
|
44126
|
-
), /* @__PURE__ */
|
|
44111
|
+
), /* @__PURE__ */ React273.createElement(FunClickOutside, { onClick: collapseDisconnect }, /* @__PURE__ */ React273.createElement(
|
|
44127
44112
|
FunIconButton,
|
|
44128
44113
|
{
|
|
44129
44114
|
size: "28",
|
|
44130
|
-
icon: /* @__PURE__ */
|
|
44115
|
+
icon: /* @__PURE__ */ React273.createElement(LogoutIcon, { size: 15 }),
|
|
44131
44116
|
paddingX: isDisconnectExpanded ? "6" : void 0,
|
|
44132
44117
|
"aria-label": t("profile.disconnect"),
|
|
44133
44118
|
onClick: isDisconnectExpanded ? onLogout : () => setIsDisconnectExpanded(true),
|
|
@@ -44135,12 +44120,12 @@ var ProfileTitleSection = ({
|
|
|
44135
44120
|
onMouseLeave: collapseDisconnect,
|
|
44136
44121
|
onBlur: collapseDisconnect
|
|
44137
44122
|
},
|
|
44138
|
-
isDisconnectExpanded && /* @__PURE__ */
|
|
44139
|
-
)), !isDisconnectExpanded && /* @__PURE__ */
|
|
44123
|
+
isDisconnectExpanded && /* @__PURE__ */ React273.createElement(Text, { size: "10", color: "secondaryText", weight: "medium" }, t("profile.disconnect"))
|
|
44124
|
+
)), !isDisconnectExpanded && /* @__PURE__ */ React273.createElement(
|
|
44140
44125
|
FunIconButton,
|
|
44141
44126
|
{
|
|
44142
44127
|
size: "28",
|
|
44143
|
-
icon: /* @__PURE__ */
|
|
44128
|
+
icon: /* @__PURE__ */ React273.createElement(CloseIcon, { size: 12 }),
|
|
44144
44129
|
onClick: onClose
|
|
44145
44130
|
}
|
|
44146
44131
|
))
|
|
@@ -44156,10 +44141,10 @@ var SelectedHomeTab = /* @__PURE__ */ ((SelectedHomeTab2) => {
|
|
|
44156
44141
|
var EmptyTabAlert = () => {
|
|
44157
44142
|
const { t } = useFunkitTranslation();
|
|
44158
44143
|
const { appName } = useFunkitConfig();
|
|
44159
|
-
return /* @__PURE__ */
|
|
44144
|
+
return /* @__PURE__ */ React274.createElement(Box, { paddingX: PROFILE_SIDE_PADDING }, /* @__PURE__ */ React274.createElement(
|
|
44160
44145
|
FunAlert,
|
|
44161
44146
|
{
|
|
44162
|
-
icon: /* @__PURE__ */
|
|
44147
|
+
icon: /* @__PURE__ */ React274.createElement(GreenRoundCheckmark, null),
|
|
44163
44148
|
description: t("profile.executeFirstCheckout", { appName })
|
|
44164
44149
|
}
|
|
44165
44150
|
));
|
|
@@ -44188,7 +44173,7 @@ function Home({
|
|
|
44188
44173
|
}, []);
|
|
44189
44174
|
const AssetsList = useMemo62(() => {
|
|
44190
44175
|
if (walletAssets && !Object.keys(walletAssets).length) {
|
|
44191
|
-
return /* @__PURE__ */
|
|
44176
|
+
return /* @__PURE__ */ React274.createElement(EmptyTabAlert, null);
|
|
44192
44177
|
}
|
|
44193
44178
|
const assets = walletAssets ? Object.values(walletAssets).sort(
|
|
44194
44179
|
(a, b) => (b.totalUsdValue ?? 0) - (a.totalUsdValue ?? 0)
|
|
@@ -44196,7 +44181,7 @@ function Home({
|
|
|
44196
44181
|
const itemHeight = HOME_TOKEN_BALANCE_DISPLAY_ROW_HEIGHT;
|
|
44197
44182
|
const itemMargin = 8;
|
|
44198
44183
|
const height = assets.length * (itemHeight + itemMargin) - itemMargin;
|
|
44199
|
-
return /* @__PURE__ */
|
|
44184
|
+
return /* @__PURE__ */ React274.createElement(Box, { ref: virtuosoParentRef }, /* @__PURE__ */ React274.createElement(
|
|
44200
44185
|
Virtuoso,
|
|
44201
44186
|
{
|
|
44202
44187
|
className: clsx23(hideScrollBar, scrollContent),
|
|
@@ -44208,14 +44193,14 @@ function Home({
|
|
|
44208
44193
|
itemContent: (index, asset) => (
|
|
44209
44194
|
// gaps/margins between items must be part of the measured content
|
|
44210
44195
|
// thus we wrap items in padded divs (margin is not measured)
|
|
44211
|
-
/* @__PURE__ */
|
|
44196
|
+
/* @__PURE__ */ React274.createElement("div", { style: { paddingTop: index === 0 ? 0 : itemMargin } }, asset ? /* @__PURE__ */ React274.createElement(HomeTokenBalanceDisplayRow, { asset }) : /* @__PURE__ */ React274.createElement(HomeTokenBalanceDisplayRowSkeleton, null))
|
|
44212
44197
|
)
|
|
44213
44198
|
}
|
|
44214
44199
|
));
|
|
44215
44200
|
}, [walletAssets]);
|
|
44216
44201
|
const CheckoutsList = useMemo62(() => {
|
|
44217
44202
|
if (checkoutHistoryList.length === 0 && isCheckoutHistoryInited) {
|
|
44218
|
-
return /* @__PURE__ */
|
|
44203
|
+
return /* @__PURE__ */ React274.createElement(EmptyTabAlert, null);
|
|
44219
44204
|
}
|
|
44220
44205
|
const processingCheckouts = checkoutHistoryList.filter(
|
|
44221
44206
|
(checkoutHistoryItem) => IN_PROGRESS_CHECKOUT_STATES2.includes(checkoutHistoryItem.state)
|
|
@@ -44277,7 +44262,7 @@ function Home({
|
|
|
44277
44262
|
const groupHeight = 15;
|
|
44278
44263
|
const groupMargin = 24;
|
|
44279
44264
|
const height = groups.length * (groupHeight + groupMargin) + (items.length - groups.length) * (itemHeight + itemMargin) - groupMargin;
|
|
44280
|
-
return /* @__PURE__ */
|
|
44265
|
+
return /* @__PURE__ */ React274.createElement(Box, { ref: virtuosoParentRef }, /* @__PURE__ */ React274.createElement(
|
|
44281
44266
|
Virtuoso,
|
|
44282
44267
|
{
|
|
44283
44268
|
className: clsx23(hideScrollBar, scrollContent),
|
|
@@ -44291,13 +44276,13 @@ function Home({
|
|
|
44291
44276
|
itemContent: (index, data) => (
|
|
44292
44277
|
// gaps/margins between items must be part of the measured content
|
|
44293
44278
|
// thus we wrap items in padded divs (margin is not measured)
|
|
44294
|
-
"group" in data ? /* @__PURE__ */
|
|
44279
|
+
"group" in data ? /* @__PURE__ */ React274.createElement("div", { style: { paddingTop: index === 0 ? 0 : groupMargin } }, /* @__PURE__ */ React274.createElement(Box, { paddingX: PROFILE_SIDE_PADDING }, /* @__PURE__ */ React274.createElement(Text, { size: "10", color: "secondaryText" }, data.group))) : /* @__PURE__ */ React274.createElement("div", { style: { paddingTop: index === 0 ? 0 : itemMargin } }, data.checkout ? /* @__PURE__ */ React274.createElement(
|
|
44295
44280
|
HomeCheckoutDisplayRow,
|
|
44296
44281
|
{
|
|
44297
44282
|
checkoutHistoryItem: data.checkout,
|
|
44298
44283
|
onSelect: handleCheckoutSelect
|
|
44299
44284
|
}
|
|
44300
|
-
) : /* @__PURE__ */
|
|
44285
|
+
) : /* @__PURE__ */ React274.createElement(HomeCheckoutDisplayRowSkeleton, null))
|
|
44301
44286
|
)
|
|
44302
44287
|
}
|
|
44303
44288
|
));
|
|
@@ -44312,7 +44297,7 @@ function Home({
|
|
|
44312
44297
|
{ tab: "assets" /* ASSETS */, label: t("profile.tokensTab") },
|
|
44313
44298
|
{ tab: "checkouts" /* CHECKOUTS */, label: t("profile.checkoutsTab") }
|
|
44314
44299
|
];
|
|
44315
|
-
return /* @__PURE__ */
|
|
44300
|
+
return /* @__PURE__ */ React274.createElement(Box, { paddingTop: "14" }, /* @__PURE__ */ React274.createElement(
|
|
44316
44301
|
ProfileTitleSection,
|
|
44317
44302
|
{
|
|
44318
44303
|
animateOut: animation.isOut,
|
|
@@ -44322,7 +44307,7 @@ function Home({
|
|
|
44322
44307
|
onLogout: handleLogout,
|
|
44323
44308
|
onClose
|
|
44324
44309
|
}
|
|
44325
|
-
), /* @__PURE__ */
|
|
44310
|
+
), /* @__PURE__ */ React274.createElement(
|
|
44326
44311
|
Box,
|
|
44327
44312
|
{
|
|
44328
44313
|
display: "flex",
|
|
@@ -44332,8 +44317,8 @@ function Home({
|
|
|
44332
44317
|
gap: "24",
|
|
44333
44318
|
className: getContentAnimation(animation, true)
|
|
44334
44319
|
},
|
|
44335
|
-
/* @__PURE__ */
|
|
44336
|
-
/* @__PURE__ */
|
|
44320
|
+
/* @__PURE__ */ React274.createElement(BalanceSection, { totalBalance: totalWalletAssetsUsd }),
|
|
44321
|
+
/* @__PURE__ */ React274.createElement(
|
|
44337
44322
|
Box,
|
|
44338
44323
|
{
|
|
44339
44324
|
display: "flex",
|
|
@@ -44344,7 +44329,7 @@ function Home({
|
|
|
44344
44329
|
marginLeft: `-${Number.parseInt(PROFILE_SIDE_PADDING)}px`
|
|
44345
44330
|
}
|
|
44346
44331
|
},
|
|
44347
|
-
/* @__PURE__ */
|
|
44332
|
+
/* @__PURE__ */ React274.createElement(
|
|
44348
44333
|
Box,
|
|
44349
44334
|
{
|
|
44350
44335
|
display: "flex",
|
|
@@ -44352,7 +44337,7 @@ function Home({
|
|
|
44352
44337
|
gap: "24",
|
|
44353
44338
|
paddingX: PROFILE_SIDE_PADDING
|
|
44354
44339
|
},
|
|
44355
|
-
tabs2.map(({ tab, label }) => /* @__PURE__ */
|
|
44340
|
+
tabs2.map(({ tab, label }) => /* @__PURE__ */ React274.createElement(
|
|
44356
44341
|
Box,
|
|
44357
44342
|
{
|
|
44358
44343
|
key: label,
|
|
@@ -44361,7 +44346,7 @@ function Home({
|
|
|
44361
44346
|
tabIndex: 0,
|
|
44362
44347
|
className: tabLabelStyles
|
|
44363
44348
|
},
|
|
44364
|
-
/* @__PURE__ */
|
|
44349
|
+
/* @__PURE__ */ React274.createElement(
|
|
44365
44350
|
Text,
|
|
44366
44351
|
{
|
|
44367
44352
|
weight: "bold",
|
|
@@ -44372,21 +44357,21 @@ function Home({
|
|
|
44372
44357
|
)
|
|
44373
44358
|
))
|
|
44374
44359
|
),
|
|
44375
|
-
/* @__PURE__ */
|
|
44360
|
+
/* @__PURE__ */ React274.createElement(Box, { className: getContentAnimation(tabAnimation, false) }, selectedView === "assets" /* ASSETS */ && AssetsList, selectedView === "checkouts" /* CHECKOUTS */ && CheckoutsList)
|
|
44376
44361
|
)
|
|
44377
44362
|
));
|
|
44378
44363
|
}
|
|
44379
44364
|
|
|
44380
44365
|
// src/modals/ProfileDetails/FunProfileViews/Settings/Settings.tsx
|
|
44381
44366
|
import { formatAddress as formatAddress7 } from "@funkit/utils";
|
|
44382
|
-
import
|
|
44367
|
+
import React277 from "react";
|
|
44383
44368
|
|
|
44384
44369
|
// src/components/CopyAddress/OldCopyAddressButton.tsx
|
|
44385
|
-
import
|
|
44370
|
+
import React276 from "react";
|
|
44386
44371
|
|
|
44387
44372
|
// src/components/Icons/CopyDoublePaperSheetIcon.tsx
|
|
44388
|
-
import
|
|
44389
|
-
var CopyDoublePaperSheetIcon = () => /* @__PURE__ */
|
|
44373
|
+
import React275 from "react";
|
|
44374
|
+
var CopyDoublePaperSheetIcon = () => /* @__PURE__ */ React275.createElement(
|
|
44390
44375
|
"svg",
|
|
44391
44376
|
{
|
|
44392
44377
|
width: "14",
|
|
@@ -44395,7 +44380,7 @@ var CopyDoublePaperSheetIcon = () => /* @__PURE__ */ React274.createElement(
|
|
|
44395
44380
|
fill: "none",
|
|
44396
44381
|
xmlns: "http://www.w3.org/2000/svg"
|
|
44397
44382
|
},
|
|
44398
|
-
/* @__PURE__ */
|
|
44383
|
+
/* @__PURE__ */ React275.createElement(
|
|
44399
44384
|
"path",
|
|
44400
44385
|
{
|
|
44401
44386
|
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",
|
|
@@ -44407,11 +44392,11 @@ var CopyDoublePaperSheetIcon = () => /* @__PURE__ */ React274.createElement(
|
|
|
44407
44392
|
// src/components/CopyAddress/OldCopyAddressButton.tsx
|
|
44408
44393
|
function OldCopyAddressButton({ address }) {
|
|
44409
44394
|
const { isCopied, handleCopy } = useCopyToClipboard(address);
|
|
44410
|
-
return /* @__PURE__ */
|
|
44395
|
+
return /* @__PURE__ */ React276.createElement(
|
|
44411
44396
|
FunIconButton,
|
|
44412
44397
|
{
|
|
44413
44398
|
size: "36",
|
|
44414
|
-
icon: /* @__PURE__ */
|
|
44399
|
+
icon: /* @__PURE__ */ React276.createElement(Box, { display: "flex", alignItems: "center", color: "primaryText" }, isCopied ? /* @__PURE__ */ React276.createElement(CheckIcon, null) : /* @__PURE__ */ React276.createElement(CopyDoublePaperSheetIcon, null)),
|
|
44415
44400
|
onClick: handleCopy
|
|
44416
44401
|
}
|
|
44417
44402
|
);
|
|
@@ -44423,7 +44408,7 @@ function LineItem({
|
|
|
44423
44408
|
value,
|
|
44424
44409
|
valueSuffix = null
|
|
44425
44410
|
}) {
|
|
44426
|
-
return /* @__PURE__ */
|
|
44411
|
+
return /* @__PURE__ */ React277.createElement(
|
|
44427
44412
|
Box,
|
|
44428
44413
|
{
|
|
44429
44414
|
display: "flex",
|
|
@@ -44432,26 +44417,26 @@ function LineItem({
|
|
|
44432
44417
|
alignItems: "center",
|
|
44433
44418
|
justifyContent: "space-between"
|
|
44434
44419
|
},
|
|
44435
|
-
/* @__PURE__ */
|
|
44436
|
-
/* @__PURE__ */
|
|
44420
|
+
/* @__PURE__ */ React277.createElement(Text, { color: "tertiaryText", size: "13", weight: "medium" }, label),
|
|
44421
|
+
/* @__PURE__ */ React277.createElement(Box, { display: "flex", flexDirection: "row", gap: "1" }, /* @__PURE__ */ React277.createElement(Box, { display: "flex", alignItems: "center" }, /* @__PURE__ */ React277.createElement(Text, { color: "primaryText", size: "13", weight: "medium" }, value)), valueSuffix ? /* @__PURE__ */ React277.createElement(Box, { display: "flex", alignItems: "center" }, valueSuffix) : null)
|
|
44437
44422
|
);
|
|
44438
44423
|
}
|
|
44439
44424
|
function Settings() {
|
|
44440
44425
|
const { t } = useFunkitTranslation();
|
|
44441
44426
|
const { walletAddress, loginType, userInfo } = useGeneralWallet();
|
|
44442
44427
|
const isWeb3Login = loginType === "web3" /* Web3 */;
|
|
44443
|
-
return /* @__PURE__ */
|
|
44428
|
+
return /* @__PURE__ */ React277.createElement(Box, { display: "flex", flexDirection: "column", gap: "24" }, /* @__PURE__ */ React277.createElement(
|
|
44444
44429
|
LineItem,
|
|
44445
44430
|
{
|
|
44446
44431
|
label: isWeb3Login ? "Wallet" : userInfo.typeLabel,
|
|
44447
44432
|
value: isWeb3Login ? userInfo.typeLabel : userInfo.name
|
|
44448
44433
|
}
|
|
44449
|
-
), /* @__PURE__ */
|
|
44434
|
+
), /* @__PURE__ */ React277.createElement(
|
|
44450
44435
|
LineItem,
|
|
44451
44436
|
{
|
|
44452
44437
|
label: t("profile.address"),
|
|
44453
44438
|
value: formatAddress7(walletAddress),
|
|
44454
|
-
valueSuffix: /* @__PURE__ */
|
|
44439
|
+
valueSuffix: /* @__PURE__ */ React277.createElement(OldCopyAddressButton, { address: walletAddress })
|
|
44455
44440
|
}
|
|
44456
44441
|
));
|
|
44457
44442
|
}
|
|
@@ -44531,11 +44516,11 @@ function ProfileDetails({ onClose, defaultTab }) {
|
|
|
44531
44516
|
isActiveCheckout: false,
|
|
44532
44517
|
isCheckoutDetailView,
|
|
44533
44518
|
paddingTop: PADDING_TOP,
|
|
44534
|
-
topbar: dialogTitleMap[view] && /* @__PURE__ */
|
|
44519
|
+
topbar: dialogTitleMap[view] && /* @__PURE__ */ React278.createElement(Dialog.Title, { onClose, ...dialogTitleMap[view] }),
|
|
44535
44520
|
withTopDivider: withDivider,
|
|
44536
44521
|
scrollableContent: PROFILE_DETAILS_DIALOG_CONTENT_ID
|
|
44537
44522
|
});
|
|
44538
|
-
return /* @__PURE__ */
|
|
44523
|
+
return /* @__PURE__ */ React278.createElement(FunCheckoutModalHeightAnimationWrapper, null, topbar, /* @__PURE__ */ React278.createElement(
|
|
44539
44524
|
Dialog.Content,
|
|
44540
44525
|
{
|
|
44541
44526
|
display: "flex",
|
|
@@ -44552,7 +44537,7 @@ function ProfileDetails({ onClose, defaultTab }) {
|
|
|
44552
44537
|
withTopDivider,
|
|
44553
44538
|
id: PROFILE_DETAILS_DIALOG_CONTENT_ID
|
|
44554
44539
|
},
|
|
44555
|
-
view === 0 /* HOME */ ? /* @__PURE__ */
|
|
44540
|
+
view === 0 /* HOME */ ? /* @__PURE__ */ React278.createElement(
|
|
44556
44541
|
Home,
|
|
44557
44542
|
{
|
|
44558
44543
|
animation,
|
|
@@ -44561,7 +44546,7 @@ function ProfileDetails({ onClose, defaultTab }) {
|
|
|
44561
44546
|
onSelectActivity: onSelectActivityWrapper,
|
|
44562
44547
|
defaultHomeTab: selectedHomeTab
|
|
44563
44548
|
}
|
|
44564
|
-
) : view === 1 /* SETTINGS */ ? /* @__PURE__ */
|
|
44549
|
+
) : view === 1 /* SETTINGS */ ? /* @__PURE__ */ React278.createElement(Settings, null) : view === 3 /* SINGLE_ACTIVITY */ ? /* @__PURE__ */ React278.createElement(
|
|
44565
44550
|
FunCheckoutHistoryContent,
|
|
44566
44551
|
{
|
|
44567
44552
|
depositAddress: selectedPurchaseId || "0x",
|
|
@@ -44573,7 +44558,7 @@ function ProfileDetails({ onClose, defaultTab }) {
|
|
|
44573
44558
|
bottomBarId: HISTORY_BOTTOM_BAR_ID
|
|
44574
44559
|
}
|
|
44575
44560
|
) : null
|
|
44576
|
-
), /* @__PURE__ */
|
|
44561
|
+
), /* @__PURE__ */ React278.createElement(Dialog.BottomSection, { id: HISTORY_BOTTOM_BAR_ID }));
|
|
44577
44562
|
}
|
|
44578
44563
|
|
|
44579
44564
|
// src/modals/AccountModal/AccountModal.tsx
|
|
@@ -44583,7 +44568,7 @@ function AccountModal({ onClose, open, defaultTab }) {
|
|
|
44583
44568
|
if (!walletAddress) {
|
|
44584
44569
|
return null;
|
|
44585
44570
|
}
|
|
44586
|
-
return /* @__PURE__ */
|
|
44571
|
+
return /* @__PURE__ */ React279.createElement(
|
|
44587
44572
|
Dialog,
|
|
44588
44573
|
{
|
|
44589
44574
|
onClose,
|
|
@@ -44591,17 +44576,17 @@ function AccountModal({ onClose, open, defaultTab }) {
|
|
|
44591
44576
|
titleId: TITLE_ID,
|
|
44592
44577
|
isSmartCloseable: true
|
|
44593
44578
|
},
|
|
44594
|
-
/* @__PURE__ */
|
|
44579
|
+
/* @__PURE__ */ React279.createElement(ActivityTraversalProvider, null, /* @__PURE__ */ React279.createElement(ProfileDetails, { onClose, defaultTab }))
|
|
44595
44580
|
);
|
|
44596
44581
|
}
|
|
44597
44582
|
|
|
44598
44583
|
// src/modals/ChainModal/ChainModal.tsx
|
|
44599
44584
|
import { isMobile as isMobile12 } from "@funkit/utils";
|
|
44600
|
-
import
|
|
44585
|
+
import React284 from "react";
|
|
44601
44586
|
|
|
44602
44587
|
// src/components/Icons/DisconnectSqIcon.tsx
|
|
44603
|
-
import
|
|
44604
|
-
var DisconnectSqIcon = ({ size }) => /* @__PURE__ */
|
|
44588
|
+
import React280 from "react";
|
|
44589
|
+
var DisconnectSqIcon = ({ size }) => /* @__PURE__ */ React280.createElement(
|
|
44605
44590
|
"svg",
|
|
44606
44591
|
{
|
|
44607
44592
|
fill: "none",
|
|
@@ -44610,7 +44595,7 @@ var DisconnectSqIcon = ({ size }) => /* @__PURE__ */ React279.createElement(
|
|
|
44610
44595
|
width: size,
|
|
44611
44596
|
xmlns: "http://www.w3.org/2000/svg"
|
|
44612
44597
|
},
|
|
44613
|
-
/* @__PURE__ */
|
|
44598
|
+
/* @__PURE__ */ React280.createElement(
|
|
44614
44599
|
"path",
|
|
44615
44600
|
{
|
|
44616
44601
|
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",
|
|
@@ -44621,13 +44606,13 @@ var DisconnectSqIcon = ({ size }) => /* @__PURE__ */ React279.createElement(
|
|
|
44621
44606
|
|
|
44622
44607
|
// src/components/MenuButton/MenuButton.tsx
|
|
44623
44608
|
import { isMobile as isMobile10 } from "@funkit/utils";
|
|
44624
|
-
import
|
|
44609
|
+
import React281 from "react";
|
|
44625
44610
|
|
|
44626
44611
|
// src/components/MenuButton/MenuButton.css.ts
|
|
44627
44612
|
var unsetBackgroundOnHover = "_10pw5x60";
|
|
44628
44613
|
|
|
44629
44614
|
// src/components/MenuButton/MenuButton.tsx
|
|
44630
|
-
var MenuButton =
|
|
44615
|
+
var MenuButton = React281.forwardRef(
|
|
44631
44616
|
({
|
|
44632
44617
|
children,
|
|
44633
44618
|
currentlySelected = false,
|
|
@@ -44636,7 +44621,7 @@ var MenuButton = React280.forwardRef(
|
|
|
44636
44621
|
...urlProps
|
|
44637
44622
|
}, ref) => {
|
|
44638
44623
|
const mobile = isMobile10();
|
|
44639
|
-
return /* @__PURE__ */
|
|
44624
|
+
return /* @__PURE__ */ React281.createElement(
|
|
44640
44625
|
Box,
|
|
44641
44626
|
{
|
|
44642
44627
|
as: "button",
|
|
@@ -44648,7 +44633,7 @@ var MenuButton = React280.forwardRef(
|
|
|
44648
44633
|
testId,
|
|
44649
44634
|
type: "button"
|
|
44650
44635
|
},
|
|
44651
|
-
/* @__PURE__ */
|
|
44636
|
+
/* @__PURE__ */ React281.createElement(
|
|
44652
44637
|
Box,
|
|
44653
44638
|
{
|
|
44654
44639
|
borderRadius: "menuButton",
|
|
@@ -44682,12 +44667,12 @@ MenuButton.displayName = "MenuButton";
|
|
|
44682
44667
|
|
|
44683
44668
|
// src/modals/ChainModal/Chain.tsx
|
|
44684
44669
|
import { isMobile as isMobile11 } from "@funkit/utils";
|
|
44685
|
-
import
|
|
44670
|
+
import React283, { Fragment as Fragment3 } from "react";
|
|
44686
44671
|
|
|
44687
44672
|
// src/components/FunDot/FunDot.tsx
|
|
44688
|
-
import
|
|
44673
|
+
import React282 from "react";
|
|
44689
44674
|
function FunDot() {
|
|
44690
|
-
return /* @__PURE__ */
|
|
44675
|
+
return /* @__PURE__ */ React282.createElement(
|
|
44691
44676
|
Box,
|
|
44692
44677
|
{
|
|
44693
44678
|
background: "connectionIndicator",
|
|
@@ -44715,7 +44700,7 @@ function ChainLineItem({
|
|
|
44715
44700
|
if (!chainItem) {
|
|
44716
44701
|
return null;
|
|
44717
44702
|
}
|
|
44718
|
-
return /* @__PURE__ */
|
|
44703
|
+
return /* @__PURE__ */ React283.createElement(
|
|
44719
44704
|
Box,
|
|
44720
44705
|
{
|
|
44721
44706
|
alignItems: "center",
|
|
@@ -44724,7 +44709,7 @@ function ChainLineItem({
|
|
|
44724
44709
|
gap,
|
|
44725
44710
|
height: chainIconSize
|
|
44726
44711
|
},
|
|
44727
|
-
/* @__PURE__ */
|
|
44712
|
+
/* @__PURE__ */ React283.createElement(Box, { height: "full" }, /* @__PURE__ */ React283.createElement(
|
|
44728
44713
|
AsyncImage,
|
|
44729
44714
|
{
|
|
44730
44715
|
alt: chainItem.name,
|
|
@@ -44736,7 +44721,7 @@ function ChainLineItem({
|
|
|
44736
44721
|
testId: `chain-option-${chainId2}-icon`
|
|
44737
44722
|
}
|
|
44738
44723
|
)),
|
|
44739
|
-
!hideChainName ? /* @__PURE__ */
|
|
44724
|
+
!hideChainName ? /* @__PURE__ */ React283.createElement("div", null, chainItem.name) : null
|
|
44740
44725
|
);
|
|
44741
44726
|
}
|
|
44742
44727
|
var Chain = ({
|
|
@@ -44751,14 +44736,14 @@ var Chain = ({
|
|
|
44751
44736
|
const mobile = isMobile11();
|
|
44752
44737
|
const funkitConnectChains = useFunkitConnectChains();
|
|
44753
44738
|
const isCurrentChain = currentChainId === chainId2 && !isLoading;
|
|
44754
|
-
return /* @__PURE__ */
|
|
44739
|
+
return /* @__PURE__ */ React283.createElement(Fragment3, null, /* @__PURE__ */ React283.createElement(
|
|
44755
44740
|
MenuButton,
|
|
44756
44741
|
{
|
|
44757
44742
|
currentlySelected: isCurrentChain,
|
|
44758
44743
|
onClick: isCurrentChain ? void 0 : () => switchChain({ chainId: chainId2 }),
|
|
44759
44744
|
testId: `chain-option-${chainId2}`
|
|
44760
44745
|
},
|
|
44761
|
-
/* @__PURE__ */
|
|
44746
|
+
/* @__PURE__ */ React283.createElement(Box, { fontFamily: "body", fontSize: "16", fontWeight: "bold" }, /* @__PURE__ */ React283.createElement(
|
|
44762
44747
|
Box,
|
|
44763
44748
|
{
|
|
44764
44749
|
alignItems: "center",
|
|
@@ -44766,8 +44751,8 @@ var Chain = ({
|
|
|
44766
44751
|
flexDirection: "row",
|
|
44767
44752
|
justifyContent: "space-between"
|
|
44768
44753
|
},
|
|
44769
|
-
/* @__PURE__ */
|
|
44770
|
-
isCurrentChain && /* @__PURE__ */
|
|
44754
|
+
/* @__PURE__ */ React283.createElement(ChainLineItem, { chainId: chainId2, chainIconSize }),
|
|
44755
|
+
isCurrentChain && /* @__PURE__ */ React283.createElement(
|
|
44771
44756
|
Box,
|
|
44772
44757
|
{
|
|
44773
44758
|
alignItems: "center",
|
|
@@ -44775,10 +44760,10 @@ var Chain = ({
|
|
|
44775
44760
|
flexDirection: "row",
|
|
44776
44761
|
marginRight: "6"
|
|
44777
44762
|
},
|
|
44778
|
-
/* @__PURE__ */
|
|
44779
|
-
/* @__PURE__ */
|
|
44763
|
+
/* @__PURE__ */ React283.createElement(Text, { color: "accentColorForeground", size: "14", weight: "medium" }, t("common.connected")),
|
|
44764
|
+
/* @__PURE__ */ React283.createElement(FunDot, null)
|
|
44780
44765
|
),
|
|
44781
|
-
isLoading && /* @__PURE__ */
|
|
44766
|
+
isLoading && /* @__PURE__ */ React283.createElement(
|
|
44782
44767
|
Box,
|
|
44783
44768
|
{
|
|
44784
44769
|
alignItems: "center",
|
|
@@ -44786,8 +44771,8 @@ var Chain = ({
|
|
|
44786
44771
|
flexDirection: "row",
|
|
44787
44772
|
marginRight: "6"
|
|
44788
44773
|
},
|
|
44789
|
-
/* @__PURE__ */
|
|
44790
|
-
/* @__PURE__ */
|
|
44774
|
+
/* @__PURE__ */ React283.createElement(Text, { color: "primaryText", size: "14", weight: "medium" }, t("common.confirmInWallet")),
|
|
44775
|
+
/* @__PURE__ */ React283.createElement(
|
|
44791
44776
|
Box,
|
|
44792
44777
|
{
|
|
44793
44778
|
background: "standby",
|
|
@@ -44799,7 +44784,7 @@ var Chain = ({
|
|
|
44799
44784
|
)
|
|
44800
44785
|
)
|
|
44801
44786
|
))
|
|
44802
|
-
), mobile && idx < funkitConnectChains.length - 1 && /* @__PURE__ */
|
|
44787
|
+
), mobile && idx < funkitConnectChains.length - 1 && /* @__PURE__ */ React283.createElement(Box, { background: "generalBorderDim", height: "1", marginX: "8" }));
|
|
44803
44788
|
};
|
|
44804
44789
|
var Chain_default = Chain;
|
|
44805
44790
|
|
|
@@ -44824,7 +44809,7 @@ function ChainModal({ onClose, open }) {
|
|
|
44824
44809
|
if (!chainId2) {
|
|
44825
44810
|
return null;
|
|
44826
44811
|
}
|
|
44827
|
-
return /* @__PURE__ */
|
|
44812
|
+
return /* @__PURE__ */ React284.createElement(
|
|
44828
44813
|
Dialog,
|
|
44829
44814
|
{
|
|
44830
44815
|
onClose,
|
|
@@ -44832,15 +44817,15 @@ function ChainModal({ onClose, open }) {
|
|
|
44832
44817
|
titleId,
|
|
44833
44818
|
isSmartCloseable: true
|
|
44834
44819
|
},
|
|
44835
|
-
/* @__PURE__ */
|
|
44820
|
+
/* @__PURE__ */ React284.createElement(Dialog.Content, { paddingTop: "18" }, /* @__PURE__ */ React284.createElement(Box, { display: "flex", flexDirection: "column", gap: "14" }, /* @__PURE__ */ React284.createElement(
|
|
44836
44821
|
Box,
|
|
44837
44822
|
{
|
|
44838
44823
|
display: "flex",
|
|
44839
44824
|
flexDirection: "row",
|
|
44840
44825
|
justifyContent: "space-between"
|
|
44841
44826
|
},
|
|
44842
|
-
mobile && /* @__PURE__ */
|
|
44843
|
-
/* @__PURE__ */
|
|
44827
|
+
mobile && /* @__PURE__ */ React284.createElement(Box, { width: "30" }),
|
|
44828
|
+
/* @__PURE__ */ React284.createElement(Box, { paddingBottom: "0", paddingLeft: "8", paddingTop: "4" }, /* @__PURE__ */ React284.createElement(
|
|
44844
44829
|
Text,
|
|
44845
44830
|
{
|
|
44846
44831
|
as: "h1",
|
|
@@ -44851,8 +44836,8 @@ function ChainModal({ onClose, open }) {
|
|
|
44851
44836
|
},
|
|
44852
44837
|
t("chainModal.switchNetworks")
|
|
44853
44838
|
)),
|
|
44854
|
-
/* @__PURE__ */
|
|
44855
|
-
), !isCurrentChainSupported && /* @__PURE__ */
|
|
44839
|
+
/* @__PURE__ */ React284.createElement(CloseButton, { onClose })
|
|
44840
|
+
), !isCurrentChainSupported && /* @__PURE__ */ React284.createElement(Box, { marginX: "8", textAlign: mobile ? "center" : "left" }, /* @__PURE__ */ React284.createElement(Text, { color: "tertiaryText", size: "14", weight: "medium" }, t("chainModal.wrongNetworkDetected"))), /* @__PURE__ */ React284.createElement(
|
|
44856
44841
|
Box,
|
|
44857
44842
|
{
|
|
44858
44843
|
className: mobile ? MobileScrollClassName : DesktopScrollClassName,
|
|
@@ -44863,7 +44848,7 @@ function ChainModal({ onClose, open }) {
|
|
|
44863
44848
|
paddingBottom: "16"
|
|
44864
44849
|
},
|
|
44865
44850
|
funkitConnectChains.map(({ id }, idx) => {
|
|
44866
|
-
return /* @__PURE__ */
|
|
44851
|
+
return /* @__PURE__ */ React284.createElement(
|
|
44867
44852
|
Chain_default,
|
|
44868
44853
|
{
|
|
44869
44854
|
key: id,
|
|
@@ -44876,13 +44861,13 @@ function ChainModal({ onClose, open }) {
|
|
|
44876
44861
|
}
|
|
44877
44862
|
);
|
|
44878
44863
|
}),
|
|
44879
|
-
!isCurrentChainSupported && /* @__PURE__ */
|
|
44864
|
+
!isCurrentChainSupported && /* @__PURE__ */ React284.createElement(React284.Fragment, null, /* @__PURE__ */ React284.createElement(Box, { background: "generalBorderDim", height: "1", marginX: "8" }), /* @__PURE__ */ React284.createElement(
|
|
44880
44865
|
MenuButton,
|
|
44881
44866
|
{
|
|
44882
44867
|
onClick: () => handleLogout(),
|
|
44883
44868
|
testId: "chain-option-disconnect"
|
|
44884
44869
|
},
|
|
44885
|
-
/* @__PURE__ */
|
|
44870
|
+
/* @__PURE__ */ React284.createElement(
|
|
44886
44871
|
Box,
|
|
44887
44872
|
{
|
|
44888
44873
|
color: "error",
|
|
@@ -44890,7 +44875,7 @@ function ChainModal({ onClose, open }) {
|
|
|
44890
44875
|
fontSize: "16",
|
|
44891
44876
|
fontWeight: "bold"
|
|
44892
44877
|
},
|
|
44893
|
-
/* @__PURE__ */
|
|
44878
|
+
/* @__PURE__ */ React284.createElement(
|
|
44894
44879
|
Box,
|
|
44895
44880
|
{
|
|
44896
44881
|
alignItems: "center",
|
|
@@ -44898,7 +44883,7 @@ function ChainModal({ onClose, open }) {
|
|
|
44898
44883
|
flexDirection: "row",
|
|
44899
44884
|
justifyContent: "space-between"
|
|
44900
44885
|
},
|
|
44901
|
-
/* @__PURE__ */
|
|
44886
|
+
/* @__PURE__ */ React284.createElement(
|
|
44902
44887
|
Box,
|
|
44903
44888
|
{
|
|
44904
44889
|
alignItems: "center",
|
|
@@ -44907,7 +44892,7 @@ function ChainModal({ onClose, open }) {
|
|
|
44907
44892
|
gap: "4",
|
|
44908
44893
|
height: chainIconSize
|
|
44909
44894
|
},
|
|
44910
|
-
/* @__PURE__ */
|
|
44895
|
+
/* @__PURE__ */ React284.createElement(
|
|
44911
44896
|
Box,
|
|
44912
44897
|
{
|
|
44913
44898
|
alignItems: "center",
|
|
@@ -44916,9 +44901,9 @@ function ChainModal({ onClose, open }) {
|
|
|
44916
44901
|
justifyContent: "center",
|
|
44917
44902
|
marginRight: "8"
|
|
44918
44903
|
},
|
|
44919
|
-
/* @__PURE__ */
|
|
44904
|
+
/* @__PURE__ */ React284.createElement(DisconnectSqIcon, { size: Number(chainIconSize) })
|
|
44920
44905
|
),
|
|
44921
|
-
/* @__PURE__ */
|
|
44906
|
+
/* @__PURE__ */ React284.createElement("div", null, t("chainModal.disconnect"))
|
|
44922
44907
|
)
|
|
44923
44908
|
)
|
|
44924
44909
|
)
|
|
@@ -44930,13 +44915,13 @@ function ChainModal({ onClose, open }) {
|
|
|
44930
44915
|
// src/modals/CheckoutModal/FunCheckoutModal.tsx
|
|
44931
44916
|
import { FUNKIT_CONNECT_SUPPORTED_CHECKOUT_CHAINS_INFO_LIST as FUNKIT_CONNECT_SUPPORTED_CHECKOUT_CHAINS_INFO_LIST2 } from "@funkit/chains";
|
|
44932
44917
|
import { LogLevel as LogLevel2, initializeRelayClient } from "@funkit/fun-relay";
|
|
44933
|
-
import
|
|
44918
|
+
import React299, { useEffect as useEffect80, useRef as useRef40 } from "react";
|
|
44934
44919
|
|
|
44935
44920
|
// src/components/FunConnectOptions/FunConnectOptions.tsx
|
|
44936
|
-
import
|
|
44921
|
+
import React290, { useCallback as useCallback52, useMemo as useMemo63, useState as useState82 } from "react";
|
|
44937
44922
|
|
|
44938
44923
|
// src/components/FunConnectOptions/FunConnectResultStep.tsx
|
|
44939
|
-
import
|
|
44924
|
+
import React285, { useEffect as useEffect72 } from "react";
|
|
44940
44925
|
var AUTO_CLOSE = 2e3;
|
|
44941
44926
|
var messageMap = (hasQrCode) => ({
|
|
44942
44927
|
error: {
|
|
@@ -44964,7 +44949,7 @@ var FunConnectResultStep = ({
|
|
|
44964
44949
|
}, [onClose, hasAutoclose]);
|
|
44965
44950
|
const hasQrCode = wallet?.qrCode && qrCodeUri;
|
|
44966
44951
|
const message = messageMap(!!hasQrCode)[type];
|
|
44967
|
-
return /* @__PURE__ */
|
|
44952
|
+
return /* @__PURE__ */ React285.createElement(Box, { display: "flex", flexDirection: "column", gap: "24", paddingBottom: "12" }, /* @__PURE__ */ React285.createElement(Box, { display: "flex", flexDirection: "column", alignItems: "center", gap: "12" }, hasQrCode && type === "error" ? /* @__PURE__ */ React285.createElement(
|
|
44968
44953
|
Box,
|
|
44969
44954
|
{
|
|
44970
44955
|
alignItems: "center",
|
|
@@ -44973,7 +44958,7 @@ var FunConnectResultStep = ({
|
|
|
44973
44958
|
justifyContent: "center",
|
|
44974
44959
|
flexDirection: "column"
|
|
44975
44960
|
},
|
|
44976
|
-
/* @__PURE__ */
|
|
44961
|
+
/* @__PURE__ */ React285.createElement(
|
|
44977
44962
|
QRCode,
|
|
44978
44963
|
{
|
|
44979
44964
|
logoBackground: wallet.iconBackground,
|
|
@@ -44983,7 +44968,7 @@ var FunConnectResultStep = ({
|
|
|
44983
44968
|
uri: qrCodeUri
|
|
44984
44969
|
}
|
|
44985
44970
|
)
|
|
44986
|
-
) : /* @__PURE__ */
|
|
44971
|
+
) : /* @__PURE__ */ React285.createElement(
|
|
44987
44972
|
Box,
|
|
44988
44973
|
{
|
|
44989
44974
|
padding: "30",
|
|
@@ -44992,7 +44977,7 @@ var FunConnectResultStep = ({
|
|
|
44992
44977
|
borderStyle: "solid",
|
|
44993
44978
|
borderColor: type === "success" ? "buttonSuccess" : "buttonWarning"
|
|
44994
44979
|
},
|
|
44995
|
-
wallet && /* @__PURE__ */
|
|
44980
|
+
wallet && /* @__PURE__ */ React285.createElement(Box, { style: { width: 40, height: 40 } }, /* @__PURE__ */ React285.createElement(
|
|
44996
44981
|
AsyncImage,
|
|
44997
44982
|
{
|
|
44998
44983
|
background: wallet.iconBackground,
|
|
@@ -45002,12 +44987,12 @@ var FunConnectResultStep = ({
|
|
|
45002
44987
|
height: 40
|
|
45003
44988
|
}
|
|
45004
44989
|
))
|
|
45005
|
-
), /* @__PURE__ */
|
|
44990
|
+
), /* @__PURE__ */ React285.createElement(FunMessage, { title: message.title, description: message.description })));
|
|
45006
44991
|
};
|
|
45007
44992
|
|
|
45008
44993
|
// src/components/FunConnectOptions/FunSignInStep.tsx
|
|
45009
44994
|
import { isMobile as isMobile13, isSafari as isSafari2, redirectInMobile } from "@funkit/utils";
|
|
45010
|
-
import
|
|
44995
|
+
import React287, { useState as useState81 } from "react";
|
|
45011
44996
|
|
|
45012
44997
|
// src/wallets/latestWalletId.ts
|
|
45013
44998
|
var storageKey5 = "fkc-latest-id";
|
|
@@ -45016,7 +45001,7 @@ function addLatestWalletId(walletId) {
|
|
|
45016
45001
|
}
|
|
45017
45002
|
|
|
45018
45003
|
// src/components/ModalSelection/ModalSelection.tsx
|
|
45019
|
-
import
|
|
45004
|
+
import React286, { useState as useState80 } from "react";
|
|
45020
45005
|
var ModalSelection = ({
|
|
45021
45006
|
as = "button",
|
|
45022
45007
|
currentlySelected = false,
|
|
@@ -45033,7 +45018,7 @@ var ModalSelection = ({
|
|
|
45033
45018
|
}) => {
|
|
45034
45019
|
const [isMouseOver, setIsMouseOver] = useState80(false);
|
|
45035
45020
|
const { t } = useFunkitTranslation();
|
|
45036
|
-
return /* @__PURE__ */
|
|
45021
|
+
return /* @__PURE__ */ React286.createElement(
|
|
45037
45022
|
Box,
|
|
45038
45023
|
{
|
|
45039
45024
|
display: "flex",
|
|
@@ -45041,7 +45026,7 @@ var ModalSelection = ({
|
|
|
45041
45026
|
onMouseEnter: () => setIsMouseOver(true),
|
|
45042
45027
|
onMouseLeave: () => setIsMouseOver(false)
|
|
45043
45028
|
},
|
|
45044
|
-
/* @__PURE__ */
|
|
45029
|
+
/* @__PURE__ */ React286.createElement(
|
|
45045
45030
|
Box,
|
|
45046
45031
|
{
|
|
45047
45032
|
as,
|
|
@@ -45065,7 +45050,7 @@ var ModalSelection = ({
|
|
|
45065
45050
|
width: "full",
|
|
45066
45051
|
...urlProps
|
|
45067
45052
|
},
|
|
45068
|
-
/* @__PURE__ */
|
|
45053
|
+
/* @__PURE__ */ React286.createElement(
|
|
45069
45054
|
Box,
|
|
45070
45055
|
{
|
|
45071
45056
|
color: currentlySelected ? "accentColorForeground" : "primaryText",
|
|
@@ -45075,7 +45060,7 @@ var ModalSelection = ({
|
|
|
45075
45060
|
fontWeight: "medium",
|
|
45076
45061
|
transition: "default"
|
|
45077
45062
|
},
|
|
45078
|
-
/* @__PURE__ */
|
|
45063
|
+
/* @__PURE__ */ React286.createElement(Box, { alignItems: "center", display: "flex", flexDirection: "row", gap: "12" }, icon ? icon : /* @__PURE__ */ React286.createElement(
|
|
45079
45064
|
AsyncImage,
|
|
45080
45065
|
{
|
|
45081
45066
|
background: iconBackground,
|
|
@@ -45086,7 +45071,7 @@ var ModalSelection = ({
|
|
|
45086
45071
|
src: iconUrl,
|
|
45087
45072
|
width: "18"
|
|
45088
45073
|
}
|
|
45089
|
-
), /* @__PURE__ */
|
|
45074
|
+
), /* @__PURE__ */ React286.createElement(
|
|
45090
45075
|
Box,
|
|
45091
45076
|
{
|
|
45092
45077
|
display: "flex",
|
|
@@ -45094,8 +45079,8 @@ var ModalSelection = ({
|
|
|
45094
45079
|
style: { flex: 1 },
|
|
45095
45080
|
alignItems: "center"
|
|
45096
45081
|
},
|
|
45097
|
-
/* @__PURE__ */
|
|
45098
|
-
recent && /* @__PURE__ */
|
|
45082
|
+
/* @__PURE__ */ React286.createElement(Box, { maxWidth: "200" }, name),
|
|
45083
|
+
recent && /* @__PURE__ */ React286.createElement(
|
|
45099
45084
|
FunBadge,
|
|
45100
45085
|
{
|
|
45101
45086
|
borderRadius: "smallBadge",
|
|
@@ -45184,8 +45169,8 @@ function FunSignInStep({
|
|
|
45184
45169
|
}
|
|
45185
45170
|
};
|
|
45186
45171
|
const makeWeb3LoginSection = () => {
|
|
45187
|
-
return /* @__PURE__ */
|
|
45188
|
-
return /* @__PURE__ */
|
|
45172
|
+
return /* @__PURE__ */ React287.createElement(Box, { display: "flex", flexDirection: "column", gap: "walletConnectorListGap" }, wallets.map((wallet) => {
|
|
45173
|
+
return /* @__PURE__ */ React287.createElement(
|
|
45189
45174
|
ModalSelection,
|
|
45190
45175
|
{
|
|
45191
45176
|
currentlySelected: wallet.id === selectedOptionId,
|
|
@@ -45202,14 +45187,14 @@ function FunSignInStep({
|
|
|
45202
45187
|
}));
|
|
45203
45188
|
};
|
|
45204
45189
|
const Web3LoginSection = makeWeb3LoginSection();
|
|
45205
|
-
return /* @__PURE__ */
|
|
45190
|
+
return /* @__PURE__ */ React287.createElement(Box, { display: "flex", flexDirection: "column", gap: "24" }, Web3LoginSection);
|
|
45206
45191
|
}
|
|
45207
45192
|
|
|
45208
45193
|
// src/components/FunConnectOptions/FunWeb3ConnectingStep.tsx
|
|
45209
|
-
import
|
|
45194
|
+
import React289 from "react";
|
|
45210
45195
|
|
|
45211
45196
|
// src/components/GradientLoader/GradientLoader.tsx
|
|
45212
|
-
import
|
|
45197
|
+
import React288 from "react";
|
|
45213
45198
|
|
|
45214
45199
|
// src/components/GradientLoader/GradientLoader.css.ts
|
|
45215
45200
|
var loader = "m17uwo1";
|
|
@@ -45219,7 +45204,7 @@ var GradientLoader = ({
|
|
|
45219
45204
|
height = "100",
|
|
45220
45205
|
width = "100"
|
|
45221
45206
|
}) => {
|
|
45222
|
-
return /* @__PURE__ */
|
|
45207
|
+
return /* @__PURE__ */ React288.createElement(
|
|
45223
45208
|
Box,
|
|
45224
45209
|
{
|
|
45225
45210
|
className: loader,
|
|
@@ -45240,7 +45225,7 @@ var FunWeb3ConnectingStep = ({ selectedWallet, qrCodeUri }) => {
|
|
|
45240
45225
|
}
|
|
45241
45226
|
const { iconBackground, iconUrl, name, qrCode, ready } = selectedWallet;
|
|
45242
45227
|
const hasQrCode = qrCode && qrCodeUri;
|
|
45243
|
-
const waitingMessage = /* @__PURE__ */
|
|
45228
|
+
const waitingMessage = /* @__PURE__ */ React289.createElement(
|
|
45244
45229
|
FunMessage,
|
|
45245
45230
|
{
|
|
45246
45231
|
title: `Waiting for ${hasQrCode ? "connection" : name}`,
|
|
@@ -45248,7 +45233,7 @@ var FunWeb3ConnectingStep = ({ selectedWallet, qrCodeUri }) => {
|
|
|
45248
45233
|
id: "link-text"
|
|
45249
45234
|
}
|
|
45250
45235
|
);
|
|
45251
|
-
return /* @__PURE__ */
|
|
45236
|
+
return /* @__PURE__ */ React289.createElement(Box, { display: "flex", flexDirection: "column", gap: "24", paddingBottom: "12" }, hasQrCode ? /* @__PURE__ */ React289.createElement(
|
|
45252
45237
|
Box,
|
|
45253
45238
|
{
|
|
45254
45239
|
alignItems: "center",
|
|
@@ -45258,7 +45243,7 @@ var FunWeb3ConnectingStep = ({ selectedWallet, qrCodeUri }) => {
|
|
|
45258
45243
|
gap: "12",
|
|
45259
45244
|
flexDirection: "column"
|
|
45260
45245
|
},
|
|
45261
|
-
/* @__PURE__ */
|
|
45246
|
+
/* @__PURE__ */ React289.createElement(
|
|
45262
45247
|
QRCode,
|
|
45263
45248
|
{
|
|
45264
45249
|
logoBackground: iconBackground,
|
|
@@ -45269,7 +45254,7 @@ var FunWeb3ConnectingStep = ({ selectedWallet, qrCodeUri }) => {
|
|
|
45269
45254
|
}
|
|
45270
45255
|
),
|
|
45271
45256
|
waitingMessage
|
|
45272
|
-
) : /* @__PURE__ */
|
|
45257
|
+
) : /* @__PURE__ */ React289.createElement(
|
|
45273
45258
|
Box,
|
|
45274
45259
|
{
|
|
45275
45260
|
alignItems: "center",
|
|
@@ -45278,7 +45263,7 @@ var FunWeb3ConnectingStep = ({ selectedWallet, qrCodeUri }) => {
|
|
|
45278
45263
|
flexDirection: "column",
|
|
45279
45264
|
gap: "12"
|
|
45280
45265
|
},
|
|
45281
|
-
ready && /* @__PURE__ */
|
|
45266
|
+
ready && /* @__PURE__ */ React289.createElement(React289.Fragment, null, /* @__PURE__ */ React289.createElement(Box, { id: "link-graphics", padding: "30", position: "relative" }, /* @__PURE__ */ React289.createElement(Box, { position: "absolute", style: { top: 0, left: 0 } }, /* @__PURE__ */ React289.createElement(GradientLoader, null)), /* @__PURE__ */ React289.createElement(Box, { style: { width: 40, height: 40 } }, /* @__PURE__ */ React289.createElement(
|
|
45282
45267
|
AsyncImage,
|
|
45283
45268
|
{
|
|
45284
45269
|
background: iconBackground,
|
|
@@ -45378,7 +45363,7 @@ function FunConnectOptions({
|
|
|
45378
45363
|
const stepComponent = useMemo63(() => {
|
|
45379
45364
|
switch (step) {
|
|
45380
45365
|
case 0 /* SIGNIN_PRIMARY */:
|
|
45381
|
-
return /* @__PURE__ */
|
|
45366
|
+
return /* @__PURE__ */ React290.createElement(
|
|
45382
45367
|
FunSignInStep,
|
|
45383
45368
|
{
|
|
45384
45369
|
signInStep: step,
|
|
@@ -45390,7 +45375,7 @@ function FunConnectOptions({
|
|
|
45390
45375
|
}
|
|
45391
45376
|
);
|
|
45392
45377
|
case 1 /* PENDING_WALLET */:
|
|
45393
|
-
return /* @__PURE__ */
|
|
45378
|
+
return /* @__PURE__ */ React290.createElement(
|
|
45394
45379
|
FunWeb3ConnectingStep,
|
|
45395
45380
|
{
|
|
45396
45381
|
selectedWallet,
|
|
@@ -45398,7 +45383,7 @@ function FunConnectOptions({
|
|
|
45398
45383
|
}
|
|
45399
45384
|
);
|
|
45400
45385
|
case 2 /* ERROR_WEB3 */:
|
|
45401
|
-
return /* @__PURE__ */
|
|
45386
|
+
return /* @__PURE__ */ React290.createElement(
|
|
45402
45387
|
FunConnectResultStep,
|
|
45403
45388
|
{
|
|
45404
45389
|
onClose,
|
|
@@ -45409,7 +45394,7 @@ function FunConnectOptions({
|
|
|
45409
45394
|
);
|
|
45410
45395
|
}
|
|
45411
45396
|
}, [connectToWallet, navigateTo, onClose, qrCodeUri, selectedWallet, step]);
|
|
45412
|
-
return /* @__PURE__ */
|
|
45397
|
+
return /* @__PURE__ */ React290.createElement(React290.Fragment, null, /* @__PURE__ */ React290.createElement(Dialog.Title, { onClose, ...navigationConfig[step] }), /* @__PURE__ */ React290.createElement(
|
|
45413
45398
|
Dialog.Content,
|
|
45414
45399
|
{
|
|
45415
45400
|
display: "flex",
|
|
@@ -45421,7 +45406,7 @@ function FunConnectOptions({
|
|
|
45421
45406
|
withBottomDivider: actionConfig[step] ? "always" : "never"
|
|
45422
45407
|
},
|
|
45423
45408
|
stepComponent
|
|
45424
|
-
), /* @__PURE__ */
|
|
45409
|
+
), /* @__PURE__ */ React290.createElement(Dialog.BottomSection, { id: MODAL_BOTTOM_BAR_IDS.connectwallet }, actionConfig[step] && /* @__PURE__ */ React290.createElement(Dialog.BottomBar, { ...actionConfig[step] })));
|
|
45425
45410
|
}
|
|
45426
45411
|
|
|
45427
45412
|
// src/hooks/useIsCheckoutComplete.ts
|
|
@@ -45441,7 +45426,7 @@ function useIsCheckoutComplete(depositAddress) {
|
|
|
45441
45426
|
}
|
|
45442
45427
|
|
|
45443
45428
|
// src/components/FunCheckoutBlocked/FunCheckoutBlocked.tsx
|
|
45444
|
-
import
|
|
45429
|
+
import React291 from "react";
|
|
45445
45430
|
import { Trans as Trans19 } from "react-i18next";
|
|
45446
45431
|
|
|
45447
45432
|
// src/components/FunCheckoutBlocked/FunCheckoutBlocked.css.ts
|
|
@@ -45455,35 +45440,35 @@ var FunCheckoutBlocked = ({ reason }) => {
|
|
|
45455
45440
|
}
|
|
45456
45441
|
const blockedReasonToDescription = {
|
|
45457
45442
|
fullGeoblock: t("funCheckoutBlocked.geoblock", { orgName: FUN_ORG_NAME }),
|
|
45458
|
-
security: /* @__PURE__ */
|
|
45443
|
+
security: /* @__PURE__ */ React291.createElement(
|
|
45459
45444
|
Trans19,
|
|
45460
45445
|
{
|
|
45461
45446
|
t,
|
|
45462
45447
|
i18nKey: "funCheckoutBlocked.security",
|
|
45463
45448
|
components: {
|
|
45464
|
-
ContactSupportLink: /* @__PURE__ */
|
|
45449
|
+
ContactSupportLink: /* @__PURE__ */ React291.createElement(ContactSupportLink, { size: "10" })
|
|
45465
45450
|
},
|
|
45466
45451
|
values: {
|
|
45467
45452
|
orgName: FUN_ORG_NAME
|
|
45468
45453
|
}
|
|
45469
45454
|
}
|
|
45470
45455
|
),
|
|
45471
|
-
unloggedin: /* @__PURE__ */
|
|
45456
|
+
unloggedin: /* @__PURE__ */ React291.createElement(
|
|
45472
45457
|
Trans19,
|
|
45473
45458
|
{
|
|
45474
45459
|
t,
|
|
45475
45460
|
i18nKey: "funCheckoutBlocked.unloggedin",
|
|
45476
45461
|
components: {
|
|
45477
|
-
ContactSupportLink: /* @__PURE__ */
|
|
45462
|
+
ContactSupportLink: /* @__PURE__ */ React291.createElement(ContactSupportLink, { size: "10" })
|
|
45478
45463
|
}
|
|
45479
45464
|
}
|
|
45480
45465
|
)
|
|
45481
45466
|
};
|
|
45482
45467
|
const description = blockedReasonToDescription[reason];
|
|
45483
|
-
return /* @__PURE__ */
|
|
45468
|
+
return /* @__PURE__ */ React291.createElement(Box, { className: funCheckoutBlockedStyle }, /* @__PURE__ */ React291.createElement(
|
|
45484
45469
|
FunAlert,
|
|
45485
45470
|
{
|
|
45486
|
-
icon: /* @__PURE__ */
|
|
45471
|
+
icon: /* @__PURE__ */ React291.createElement(FunInfoIcon, null),
|
|
45487
45472
|
description,
|
|
45488
45473
|
verticalAlignment: "top"
|
|
45489
45474
|
}
|
|
@@ -45511,7 +45496,7 @@ function CheckoutModalPrefetchedHooks() {
|
|
|
45511
45496
|
}
|
|
45512
45497
|
|
|
45513
45498
|
// src/modals/CheckoutModal/SwappedIframe/SwappedIframe.tsx
|
|
45514
|
-
import
|
|
45499
|
+
import React292, { useEffect as useEffect74, useState as useState83 } from "react";
|
|
45515
45500
|
var SwappedIframe = () => {
|
|
45516
45501
|
const { iframeUrl, isSwappedReady, isActive, setIframeRef } = useSwappedContext();
|
|
45517
45502
|
const [visible, setVisible] = useState83(false);
|
|
@@ -45526,7 +45511,7 @@ var SwappedIframe = () => {
|
|
|
45526
45511
|
if (!iframeUrl) {
|
|
45527
45512
|
return null;
|
|
45528
45513
|
}
|
|
45529
|
-
return /* @__PURE__ */
|
|
45514
|
+
return /* @__PURE__ */ React292.createElement(
|
|
45530
45515
|
Box,
|
|
45531
45516
|
{
|
|
45532
45517
|
background: "modalBackground",
|
|
@@ -45545,7 +45530,7 @@ var SwappedIframe = () => {
|
|
|
45545
45530
|
},
|
|
45546
45531
|
"aria-hidden": !shouldShow
|
|
45547
45532
|
},
|
|
45548
|
-
/* @__PURE__ */
|
|
45533
|
+
/* @__PURE__ */ React292.createElement(
|
|
45549
45534
|
"iframe",
|
|
45550
45535
|
{
|
|
45551
45536
|
ref: setIframeRef,
|
|
@@ -45568,20 +45553,20 @@ var SwappedIframe = () => {
|
|
|
45568
45553
|
)
|
|
45569
45554
|
);
|
|
45570
45555
|
};
|
|
45571
|
-
var SwappedIframe_default =
|
|
45556
|
+
var SwappedIframe_default = React292.memo(SwappedIframe);
|
|
45572
45557
|
|
|
45573
45558
|
// src/modals/CheckoutModal/TransferToken/CheckoutNotifications.tsx
|
|
45574
45559
|
import clsx26 from "clsx";
|
|
45575
|
-
import
|
|
45560
|
+
import React298, { useCallback as useCallback54, useEffect as useEffect78, useMemo as useMemo64, useState as useState85 } from "react";
|
|
45576
45561
|
|
|
45577
45562
|
// src/components/FunNotificationBanner/FunNotificationShowMoreButton.tsx
|
|
45578
|
-
import
|
|
45563
|
+
import React293 from "react";
|
|
45579
45564
|
var FunNotificationShowMoreButton = ({
|
|
45580
45565
|
numberOfNotifications,
|
|
45581
45566
|
isExpanded,
|
|
45582
45567
|
onClick
|
|
45583
45568
|
}) => {
|
|
45584
|
-
const buttonTitleCompoent = /* @__PURE__ */
|
|
45569
|
+
const buttonTitleCompoent = /* @__PURE__ */ React293.createElement(Box, { display: "flex", gap: "4", alignItems: "center" }, /* @__PURE__ */ React293.createElement(Text, { size: "13" }, isExpanded ? "Show less" : `${numberOfNotifications} more`), /* @__PURE__ */ React293.createElement(
|
|
45585
45570
|
Box,
|
|
45586
45571
|
{
|
|
45587
45572
|
width: "16",
|
|
@@ -45590,7 +45575,7 @@ var FunNotificationShowMoreButton = ({
|
|
|
45590
45575
|
alignItems: "center",
|
|
45591
45576
|
justifyContent: "center"
|
|
45592
45577
|
},
|
|
45593
|
-
/* @__PURE__ */
|
|
45578
|
+
/* @__PURE__ */ React293.createElement(
|
|
45594
45579
|
Box,
|
|
45595
45580
|
{
|
|
45596
45581
|
color: "secondaryText",
|
|
@@ -45601,10 +45586,10 @@ var FunNotificationShowMoreButton = ({
|
|
|
45601
45586
|
justifyContent: "center",
|
|
45602
45587
|
style: isExpanded ? { transform: "rotate(180deg)" } : void 0
|
|
45603
45588
|
},
|
|
45604
|
-
/* @__PURE__ */
|
|
45589
|
+
/* @__PURE__ */ React293.createElement(CaretDownIcon, null)
|
|
45605
45590
|
)
|
|
45606
45591
|
));
|
|
45607
|
-
return /* @__PURE__ */
|
|
45592
|
+
return /* @__PURE__ */ React293.createElement(
|
|
45608
45593
|
FunButton,
|
|
45609
45594
|
{
|
|
45610
45595
|
type: "tertiary",
|
|
@@ -45686,12 +45671,12 @@ var getUniqueId = (item) => {
|
|
|
45686
45671
|
};
|
|
45687
45672
|
|
|
45688
45673
|
// src/modals/CheckoutModal/TransferToken/CheckoutNotification.tsx
|
|
45689
|
-
import
|
|
45674
|
+
import React296 from "react";
|
|
45690
45675
|
import { Trans as Trans20 } from "react-i18next";
|
|
45691
45676
|
|
|
45692
45677
|
// src/components/FunNotificationBanner/FunNotificationBanner.tsx
|
|
45693
45678
|
import { AnimatePresence as AnimatePresence6, motion as motion19 } from "motion/react";
|
|
45694
|
-
import
|
|
45679
|
+
import React295, { useEffect as useEffect77, useRef as useRef39, useState as useState84 } from "react";
|
|
45695
45680
|
import clsx25 from "clsx";
|
|
45696
45681
|
|
|
45697
45682
|
// src/components/FunNotificationBanner/FunNotificationBanner.css.ts
|
|
@@ -45701,7 +45686,7 @@ var showMoreButtonStyle = "_4yitd93 _1rsrm2f1r4 _1rsrm2f1i _1rsrm2f1f _1rsrm2f11
|
|
|
45701
45686
|
// src/components/FunNotificationBanner/FunNotificationBannerIcon.tsx
|
|
45702
45687
|
import clsx24 from "clsx";
|
|
45703
45688
|
import { motion as motion18, useAnimate as useAnimate3 } from "motion/react";
|
|
45704
|
-
import
|
|
45689
|
+
import React294, { useCallback as useCallback53, useEffect as useEffect76, useRef as useRef38 } from "react";
|
|
45705
45690
|
|
|
45706
45691
|
// src/components/FunNotificationBanner/FunNotificationBannerIcon.css.ts
|
|
45707
45692
|
var STATUS_SPINNER_BOTTOM_POSITION = -5;
|
|
@@ -45714,7 +45699,7 @@ var statusSpinner = "_1i8t3xj4 qe221a3";
|
|
|
45714
45699
|
function generateAnimationPrefixClassName(className) {
|
|
45715
45700
|
return `framer-fnb-${className}`;
|
|
45716
45701
|
}
|
|
45717
|
-
var successIcon = /* @__PURE__ */
|
|
45702
|
+
var successIcon = /* @__PURE__ */ React294.createElement(
|
|
45718
45703
|
motion18.svg,
|
|
45719
45704
|
{
|
|
45720
45705
|
width: "16",
|
|
@@ -45723,8 +45708,8 @@ var successIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45723
45708
|
fill: "none",
|
|
45724
45709
|
xmlns: "http://www.w3.org/2000/svg"
|
|
45725
45710
|
},
|
|
45726
|
-
/* @__PURE__ */
|
|
45727
|
-
/* @__PURE__ */
|
|
45711
|
+
/* @__PURE__ */ React294.createElement("circle", { cx: "8", cy: "8", r: "8", fill: "#66CC00" }),
|
|
45712
|
+
/* @__PURE__ */ React294.createElement(
|
|
45728
45713
|
motion18.path,
|
|
45729
45714
|
{
|
|
45730
45715
|
d: "M5 8L7 10L11.5 5.5",
|
|
@@ -45734,7 +45719,7 @@ var successIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45734
45719
|
}
|
|
45735
45720
|
)
|
|
45736
45721
|
);
|
|
45737
|
-
var errorIcon = /* @__PURE__ */
|
|
45722
|
+
var errorIcon = /* @__PURE__ */ React294.createElement(
|
|
45738
45723
|
"svg",
|
|
45739
45724
|
{
|
|
45740
45725
|
width: "16",
|
|
@@ -45743,8 +45728,8 @@ var errorIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45743
45728
|
fill: "none",
|
|
45744
45729
|
xmlns: "http://www.w3.org/2000/svg"
|
|
45745
45730
|
},
|
|
45746
|
-
/* @__PURE__ */
|
|
45747
|
-
/* @__PURE__ */
|
|
45731
|
+
/* @__PURE__ */ React294.createElement("g", { filter: "url(#filter0_i_19769_7642)" }, /* @__PURE__ */ React294.createElement("circle", { cx: "8", cy: "8", r: "8", fill: "#F34126" })),
|
|
45732
|
+
/* @__PURE__ */ React294.createElement(
|
|
45748
45733
|
"path",
|
|
45749
45734
|
{
|
|
45750
45735
|
d: "M5 5L11 11",
|
|
@@ -45753,7 +45738,7 @@ var errorIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45753
45738
|
strokeLinejoin: "round"
|
|
45754
45739
|
}
|
|
45755
45740
|
),
|
|
45756
|
-
/* @__PURE__ */
|
|
45741
|
+
/* @__PURE__ */ React294.createElement(
|
|
45757
45742
|
"path",
|
|
45758
45743
|
{
|
|
45759
45744
|
d: "M5 11L11 5",
|
|
@@ -45762,7 +45747,7 @@ var errorIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45762
45747
|
strokeLinejoin: "round"
|
|
45763
45748
|
}
|
|
45764
45749
|
),
|
|
45765
|
-
/* @__PURE__ */
|
|
45750
|
+
/* @__PURE__ */ React294.createElement("defs", null, /* @__PURE__ */ React294.createElement(
|
|
45766
45751
|
"filter",
|
|
45767
45752
|
{
|
|
45768
45753
|
id: "filter0_i_19769_7642",
|
|
@@ -45773,8 +45758,8 @@ var errorIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45773
45758
|
filterUnits: "userSpaceOnUse",
|
|
45774
45759
|
colorInterpolationFilters: "sRGB"
|
|
45775
45760
|
},
|
|
45776
|
-
/* @__PURE__ */
|
|
45777
|
-
/* @__PURE__ */
|
|
45761
|
+
/* @__PURE__ */ React294.createElement("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
45762
|
+
/* @__PURE__ */ React294.createElement(
|
|
45778
45763
|
"feBlend",
|
|
45779
45764
|
{
|
|
45780
45765
|
mode: "normal",
|
|
@@ -45783,7 +45768,7 @@ var errorIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45783
45768
|
result: "shape"
|
|
45784
45769
|
}
|
|
45785
45770
|
),
|
|
45786
|
-
/* @__PURE__ */
|
|
45771
|
+
/* @__PURE__ */ React294.createElement(
|
|
45787
45772
|
"feColorMatrix",
|
|
45788
45773
|
{
|
|
45789
45774
|
in: "SourceAlpha",
|
|
@@ -45792,16 +45777,16 @@ var errorIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45792
45777
|
result: "hardAlpha"
|
|
45793
45778
|
}
|
|
45794
45779
|
),
|
|
45795
|
-
/* @__PURE__ */
|
|
45796
|
-
/* @__PURE__ */
|
|
45797
|
-
/* @__PURE__ */
|
|
45780
|
+
/* @__PURE__ */ React294.createElement("feOffset", { dy: "-1" }),
|
|
45781
|
+
/* @__PURE__ */ React294.createElement("feComposite", { in2: "hardAlpha", operator: "arithmetic", k2: "-1", k3: "1" }),
|
|
45782
|
+
/* @__PURE__ */ React294.createElement(
|
|
45798
45783
|
"feColorMatrix",
|
|
45799
45784
|
{
|
|
45800
45785
|
type: "matrix",
|
|
45801
45786
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"
|
|
45802
45787
|
}
|
|
45803
45788
|
),
|
|
45804
|
-
/* @__PURE__ */
|
|
45789
|
+
/* @__PURE__ */ React294.createElement(
|
|
45805
45790
|
"feBlend",
|
|
45806
45791
|
{
|
|
45807
45792
|
mode: "normal",
|
|
@@ -45811,7 +45796,7 @@ var errorIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45811
45796
|
)
|
|
45812
45797
|
))
|
|
45813
45798
|
);
|
|
45814
|
-
var pendingIcon = /* @__PURE__ */
|
|
45799
|
+
var pendingIcon = /* @__PURE__ */ React294.createElement(
|
|
45815
45800
|
motion18.svg,
|
|
45816
45801
|
{
|
|
45817
45802
|
width: "16",
|
|
@@ -45820,8 +45805,8 @@ var pendingIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45820
45805
|
fill: "none",
|
|
45821
45806
|
xmlns: "http://www.w3.org/2000/svg"
|
|
45822
45807
|
},
|
|
45823
|
-
/* @__PURE__ */
|
|
45824
|
-
/* @__PURE__ */
|
|
45808
|
+
/* @__PURE__ */ React294.createElement("g", { filter: "url(#filter0_i_19866_15799)" }, /* @__PURE__ */ React294.createElement("circle", { cx: "8", cy: "8", r: "8", fill: "#8C8C8C" })),
|
|
45809
|
+
/* @__PURE__ */ React294.createElement("g", { clipPath: "url(#clip0_19866_15799)" }, /* @__PURE__ */ React294.createElement(
|
|
45825
45810
|
motion18.path,
|
|
45826
45811
|
{
|
|
45827
45812
|
d: "M8 5V8L10 9M13 8C13 10.7614 10.7614 13 8 13C5.23858 13 3 10.7614 3 8C3 5.23858 5.23858 3 8 3C10.7614 3 13 5.23858 13 8Z",
|
|
@@ -45831,7 +45816,7 @@ var pendingIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45831
45816
|
strokeLinejoin: "round"
|
|
45832
45817
|
}
|
|
45833
45818
|
)),
|
|
45834
|
-
/* @__PURE__ */
|
|
45819
|
+
/* @__PURE__ */ React294.createElement("defs", null, /* @__PURE__ */ React294.createElement(
|
|
45835
45820
|
"filter",
|
|
45836
45821
|
{
|
|
45837
45822
|
id: "filter0_i_19866_15799",
|
|
@@ -45842,8 +45827,8 @@ var pendingIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45842
45827
|
filterUnits: "userSpaceOnUse",
|
|
45843
45828
|
colorInterpolationFilters: "sRGB"
|
|
45844
45829
|
},
|
|
45845
|
-
/* @__PURE__ */
|
|
45846
|
-
/* @__PURE__ */
|
|
45830
|
+
/* @__PURE__ */ React294.createElement("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
45831
|
+
/* @__PURE__ */ React294.createElement(
|
|
45847
45832
|
"feBlend",
|
|
45848
45833
|
{
|
|
45849
45834
|
mode: "normal",
|
|
@@ -45852,7 +45837,7 @@ var pendingIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45852
45837
|
result: "shape"
|
|
45853
45838
|
}
|
|
45854
45839
|
),
|
|
45855
|
-
/* @__PURE__ */
|
|
45840
|
+
/* @__PURE__ */ React294.createElement(
|
|
45856
45841
|
"feColorMatrix",
|
|
45857
45842
|
{
|
|
45858
45843
|
in: "SourceAlpha",
|
|
@@ -45861,16 +45846,16 @@ var pendingIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45861
45846
|
result: "hardAlpha"
|
|
45862
45847
|
}
|
|
45863
45848
|
),
|
|
45864
|
-
/* @__PURE__ */
|
|
45865
|
-
/* @__PURE__ */
|
|
45866
|
-
/* @__PURE__ */
|
|
45849
|
+
/* @__PURE__ */ React294.createElement("feOffset", { dy: "-1" }),
|
|
45850
|
+
/* @__PURE__ */ React294.createElement("feComposite", { in2: "hardAlpha", operator: "arithmetic", k2: "-1", k3: "1" }),
|
|
45851
|
+
/* @__PURE__ */ React294.createElement(
|
|
45867
45852
|
"feColorMatrix",
|
|
45868
45853
|
{
|
|
45869
45854
|
type: "matrix",
|
|
45870
45855
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"
|
|
45871
45856
|
}
|
|
45872
45857
|
),
|
|
45873
|
-
/* @__PURE__ */
|
|
45858
|
+
/* @__PURE__ */ React294.createElement(
|
|
45874
45859
|
"feBlend",
|
|
45875
45860
|
{
|
|
45876
45861
|
mode: "normal",
|
|
@@ -45878,9 +45863,9 @@ var pendingIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45878
45863
|
result: "effect1_innerShadow_19866_15799"
|
|
45879
45864
|
}
|
|
45880
45865
|
)
|
|
45881
|
-
), /* @__PURE__ */
|
|
45866
|
+
), /* @__PURE__ */ React294.createElement("clipPath", { id: "clip0_19866_15799" }, /* @__PURE__ */ React294.createElement("rect", { width: "12", height: "12", fill: "white", transform: "translate(2 2)" })))
|
|
45882
45867
|
);
|
|
45883
|
-
var downloadIcon = /* @__PURE__ */
|
|
45868
|
+
var downloadIcon = /* @__PURE__ */ React294.createElement(
|
|
45884
45869
|
motion18.svg,
|
|
45885
45870
|
{
|
|
45886
45871
|
width: "16",
|
|
@@ -45889,8 +45874,8 @@ var downloadIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45889
45874
|
fill: "none",
|
|
45890
45875
|
xmlns: "http://www.w3.org/2000/svg"
|
|
45891
45876
|
},
|
|
45892
|
-
/* @__PURE__ */
|
|
45893
|
-
/* @__PURE__ */
|
|
45877
|
+
/* @__PURE__ */ React294.createElement("circle", { cx: "8", cy: "8", r: "8", fill: "#66CC00" }),
|
|
45878
|
+
/* @__PURE__ */ React294.createElement(
|
|
45894
45879
|
motion18.path,
|
|
45895
45880
|
{
|
|
45896
45881
|
d: "M8 4C8 6.14788 8 11.5 8 11.5M8 11.5L11 8.5M8 11.5L5 8.5",
|
|
@@ -45901,7 +45886,7 @@ var downloadIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45901
45886
|
)
|
|
45902
45887
|
);
|
|
45903
45888
|
var SpinnerBase = ({ variant }) => {
|
|
45904
|
-
return /* @__PURE__ */
|
|
45889
|
+
return /* @__PURE__ */ React294.createElement(motion18.div, null, /* @__PURE__ */ React294.createElement(
|
|
45905
45890
|
Box,
|
|
45906
45891
|
{
|
|
45907
45892
|
className: clsx24(
|
|
@@ -45910,7 +45895,7 @@ var SpinnerBase = ({ variant }) => {
|
|
|
45910
45895
|
),
|
|
45911
45896
|
color: variant === "processing" ? "success" : "inputBorderHover"
|
|
45912
45897
|
},
|
|
45913
|
-
/* @__PURE__ */
|
|
45898
|
+
/* @__PURE__ */ React294.createElement(
|
|
45914
45899
|
"svg",
|
|
45915
45900
|
{
|
|
45916
45901
|
width: "24",
|
|
@@ -45919,7 +45904,7 @@ var SpinnerBase = ({ variant }) => {
|
|
|
45919
45904
|
fill: "none",
|
|
45920
45905
|
xmlns: "http://www.w3.org/2000/svg"
|
|
45921
45906
|
},
|
|
45922
|
-
/* @__PURE__ */
|
|
45907
|
+
/* @__PURE__ */ React294.createElement(
|
|
45923
45908
|
"circle",
|
|
45924
45909
|
{
|
|
45925
45910
|
opacity: "0.5",
|
|
@@ -45935,8 +45920,8 @@ var SpinnerBase = ({ variant }) => {
|
|
|
45935
45920
|
)
|
|
45936
45921
|
));
|
|
45937
45922
|
};
|
|
45938
|
-
var ProcessingSpinner = () => /* @__PURE__ */
|
|
45939
|
-
var DelayedSpinner = () => /* @__PURE__ */
|
|
45923
|
+
var ProcessingSpinner = () => /* @__PURE__ */ React294.createElement(SpinnerBase, { variant: "processing" });
|
|
45924
|
+
var DelayedSpinner = () => /* @__PURE__ */ React294.createElement(SpinnerBase, { variant: "delayed" });
|
|
45940
45925
|
var statusIconMap = {
|
|
45941
45926
|
processing: downloadIcon,
|
|
45942
45927
|
delayed: downloadIcon,
|
|
@@ -46167,7 +46152,7 @@ var FunNotificationBannerIcon = ({
|
|
|
46167
46152
|
triggerAnimationDelayedToFailed,
|
|
46168
46153
|
triggerAnimationProcessingToCompleted
|
|
46169
46154
|
]);
|
|
46170
|
-
return /* @__PURE__ */
|
|
46155
|
+
return /* @__PURE__ */ React294.createElement(Box, { width: "32", height: "32", position: "relative", ref: animationScope }, statusRef.current === "processing" && /* @__PURE__ */ React294.createElement(ProcessingSpinner, null), statusRef.current === "delayed" && /* @__PURE__ */ React294.createElement(DelayedSpinner, null), /* @__PURE__ */ React294.createElement(Box, { className: shadowStyle }, /* @__PURE__ */ React294.createElement(
|
|
46171
46156
|
AsyncImage,
|
|
46172
46157
|
{
|
|
46173
46158
|
alt: "",
|
|
@@ -46177,7 +46162,7 @@ var FunNotificationBannerIcon = ({
|
|
|
46177
46162
|
src: iconUrl ?? void 0,
|
|
46178
46163
|
fallbackSrc: fallbackIconUrl
|
|
46179
46164
|
}
|
|
46180
|
-
)), statusRef.current && /* @__PURE__ */
|
|
46165
|
+
)), statusRef.current && /* @__PURE__ */ React294.createElement(
|
|
46181
46166
|
Box,
|
|
46182
46167
|
{
|
|
46183
46168
|
className: clsx24(
|
|
@@ -46187,7 +46172,7 @@ var FunNotificationBannerIcon = ({
|
|
|
46187
46172
|
width: "20",
|
|
46188
46173
|
height: "20"
|
|
46189
46174
|
},
|
|
46190
|
-
/* @__PURE__ */
|
|
46175
|
+
/* @__PURE__ */ React294.createElement(Box, { className: clsx24(statusIcon) }, Object.entries(statusIconMap).map(([key, value]) => /* @__PURE__ */ React294.createElement(
|
|
46191
46176
|
"div",
|
|
46192
46177
|
{
|
|
46193
46178
|
key,
|
|
@@ -46219,7 +46204,7 @@ var STATUS_RANK = {
|
|
|
46219
46204
|
failed: 3,
|
|
46220
46205
|
expired: 4
|
|
46221
46206
|
};
|
|
46222
|
-
var closeIcon = /* @__PURE__ */
|
|
46207
|
+
var closeIcon = /* @__PURE__ */ React295.createElement(
|
|
46223
46208
|
"svg",
|
|
46224
46209
|
{
|
|
46225
46210
|
width: "16",
|
|
@@ -46228,7 +46213,7 @@ var closeIcon = /* @__PURE__ */ React294.createElement(
|
|
|
46228
46213
|
fill: "none",
|
|
46229
46214
|
xmlns: "http://www.w3.org/2000/svg"
|
|
46230
46215
|
},
|
|
46231
|
-
/* @__PURE__ */
|
|
46216
|
+
/* @__PURE__ */ React295.createElement(
|
|
46232
46217
|
"path",
|
|
46233
46218
|
{
|
|
46234
46219
|
d: "M4.89066 4.15281C4.68691 3.94906 4.35657 3.94906 4.15281 4.15281C3.94906 4.35657 3.94906 4.68691 4.15281 4.89066L7.26215 8L4.15281 11.1093C3.94906 11.3131 3.94906 11.6434 4.15281 11.8472C4.35657 12.0509 4.68691 12.0509 4.89066 11.8472L8 8.73785L11.1093 11.8472C11.3131 12.0509 11.6434 12.0509 11.8472 11.8472C12.0509 11.6434 12.0509 11.3131 11.8472 11.1093L8.73785 8L11.8472 4.89066C12.0509 4.68691 12.0509 4.35657 11.8472 4.15281C11.6434 3.94906 11.3131 3.94906 11.1093 4.15281L8 7.26215L4.89066 4.15281Z",
|
|
@@ -46259,7 +46244,7 @@ var FunNotificationBanner = ({
|
|
|
46259
46244
|
setIsOpen(false);
|
|
46260
46245
|
onClosed?.();
|
|
46261
46246
|
};
|
|
46262
|
-
return /* @__PURE__ */
|
|
46247
|
+
return /* @__PURE__ */ React295.createElement(AnimatePresence6, null, isOpen ? /* @__PURE__ */ React295.createElement(
|
|
46263
46248
|
motion19.div,
|
|
46264
46249
|
{
|
|
46265
46250
|
initial: {
|
|
@@ -46288,7 +46273,7 @@ var FunNotificationBanner = ({
|
|
|
46288
46273
|
}
|
|
46289
46274
|
}
|
|
46290
46275
|
},
|
|
46291
|
-
/* @__PURE__ */
|
|
46276
|
+
/* @__PURE__ */ React295.createElement(Box, { className: clsx25(notificationBannerStyle) }, /* @__PURE__ */ React295.createElement(
|
|
46292
46277
|
FunIconButton,
|
|
46293
46278
|
{
|
|
46294
46279
|
borderRadius: "full",
|
|
@@ -46302,28 +46287,28 @@ var FunNotificationBanner = ({
|
|
|
46302
46287
|
right: "4px"
|
|
46303
46288
|
}
|
|
46304
46289
|
}
|
|
46305
|
-
), /* @__PURE__ */
|
|
46290
|
+
), /* @__PURE__ */ React295.createElement(Box, { padding: "16", display: "flex", gap: "16" }, /* @__PURE__ */ React295.createElement(
|
|
46306
46291
|
FunNotificationBannerIcon,
|
|
46307
46292
|
{
|
|
46308
46293
|
iconUrl,
|
|
46309
46294
|
status,
|
|
46310
46295
|
fallbackIconUrl
|
|
46311
46296
|
}
|
|
46312
|
-
), /* @__PURE__ */
|
|
46297
|
+
), /* @__PURE__ */ React295.createElement(
|
|
46313
46298
|
Box,
|
|
46314
46299
|
{
|
|
46315
46300
|
display: "flex",
|
|
46316
46301
|
flexDirection: "column",
|
|
46317
46302
|
style: { flex: 1, minWidth: 0 }
|
|
46318
46303
|
},
|
|
46319
|
-
/* @__PURE__ */
|
|
46304
|
+
/* @__PURE__ */ React295.createElement(Box, { display: "flex", flexDirection: "column", gap: "6" }, /* @__PURE__ */ React295.createElement(
|
|
46320
46305
|
Box,
|
|
46321
46306
|
{
|
|
46322
46307
|
display: "flex",
|
|
46323
46308
|
flexDirection: "column",
|
|
46324
46309
|
style: { flexGrow: 1 }
|
|
46325
46310
|
},
|
|
46326
|
-
/* @__PURE__ */
|
|
46311
|
+
/* @__PURE__ */ React295.createElement(
|
|
46327
46312
|
AnimatedText,
|
|
46328
46313
|
{
|
|
46329
46314
|
textKey: title,
|
|
@@ -46339,7 +46324,7 @@ var FunNotificationBanner = ({
|
|
|
46339
46324
|
},
|
|
46340
46325
|
title
|
|
46341
46326
|
)
|
|
46342
|
-
), /* @__PURE__ */
|
|
46327
|
+
), /* @__PURE__ */ React295.createElement(Box, { display: "flex", flexDirection: "column" }, /* @__PURE__ */ React295.createElement(
|
|
46343
46328
|
AnimatedText,
|
|
46344
46329
|
{
|
|
46345
46330
|
textKey: title,
|
|
@@ -46353,7 +46338,7 @@ var FunNotificationBanner = ({
|
|
|
46353
46338
|
},
|
|
46354
46339
|
description
|
|
46355
46340
|
))),
|
|
46356
|
-
disclaimer && /* @__PURE__ */
|
|
46341
|
+
disclaimer && /* @__PURE__ */ React295.createElement(
|
|
46357
46342
|
Box,
|
|
46358
46343
|
{
|
|
46359
46344
|
marginTop: "12",
|
|
@@ -46364,9 +46349,9 @@ var FunNotificationBanner = ({
|
|
|
46364
46349
|
borderRadius: "8",
|
|
46365
46350
|
borderColor: "mediumStroke"
|
|
46366
46351
|
},
|
|
46367
|
-
/* @__PURE__ */
|
|
46352
|
+
/* @__PURE__ */ React295.createElement(Text, { color: "secondaryText", size: "12" }, disclaimer)
|
|
46368
46353
|
),
|
|
46369
|
-
/* @__PURE__ */
|
|
46354
|
+
/* @__PURE__ */ React295.createElement(AnimatePresence6, null, showMore && /* @__PURE__ */ React295.createElement(
|
|
46370
46355
|
motion19.div,
|
|
46371
46356
|
{
|
|
46372
46357
|
initial: {
|
|
@@ -46403,7 +46388,7 @@ var FunNotificationBanner = ({
|
|
|
46403
46388
|
}
|
|
46404
46389
|
}
|
|
46405
46390
|
},
|
|
46406
|
-
/* @__PURE__ */
|
|
46391
|
+
/* @__PURE__ */ React295.createElement(
|
|
46407
46392
|
Box,
|
|
46408
46393
|
{
|
|
46409
46394
|
marginTop: "12"
|
|
@@ -46411,7 +46396,7 @@ var FunNotificationBanner = ({
|
|
|
46411
46396
|
children
|
|
46412
46397
|
)
|
|
46413
46398
|
))
|
|
46414
|
-
)), children && /* @__PURE__ */
|
|
46399
|
+
)), children && /* @__PURE__ */ React295.createElement(
|
|
46415
46400
|
"button",
|
|
46416
46401
|
{
|
|
46417
46402
|
type: "button",
|
|
@@ -46423,13 +46408,13 @@ var FunNotificationBanner = ({
|
|
|
46423
46408
|
},
|
|
46424
46409
|
className: showMoreButtonStyle
|
|
46425
46410
|
},
|
|
46426
|
-
/* @__PURE__ */
|
|
46411
|
+
/* @__PURE__ */ React295.createElement(
|
|
46427
46412
|
Text,
|
|
46428
46413
|
{
|
|
46429
46414
|
size: "12",
|
|
46430
46415
|
color: { base: "secondaryText", hover: "primaryText" }
|
|
46431
46416
|
},
|
|
46432
|
-
/* @__PURE__ */
|
|
46417
|
+
/* @__PURE__ */ React295.createElement(Box, { paddingY: "8", textAlign: "center" }, showMore ? "See less" : "See more")
|
|
46433
46418
|
)
|
|
46434
46419
|
))
|
|
46435
46420
|
) : null);
|
|
@@ -46488,7 +46473,7 @@ var CheckoutNotification = ({
|
|
|
46488
46473
|
return null;
|
|
46489
46474
|
}
|
|
46490
46475
|
const normalizedTicker = initSettings.config.targetAssetTicker?.toUpperCase();
|
|
46491
|
-
return /* @__PURE__ */
|
|
46476
|
+
return /* @__PURE__ */ React296.createElement(
|
|
46492
46477
|
FunNotificationBanner,
|
|
46493
46478
|
{
|
|
46494
46479
|
description: parseDescription(checkout, t),
|
|
@@ -46502,7 +46487,7 @@ var CheckoutNotification = ({
|
|
|
46502
46487
|
},
|
|
46503
46488
|
onShowMore: trackShowMore
|
|
46504
46489
|
},
|
|
46505
|
-
/* @__PURE__ */
|
|
46490
|
+
/* @__PURE__ */ React296.createElement(
|
|
46506
46491
|
Box,
|
|
46507
46492
|
{
|
|
46508
46493
|
paddingY: "8",
|
|
@@ -46513,7 +46498,7 @@ var CheckoutNotification = ({
|
|
|
46513
46498
|
borderWidth: "1",
|
|
46514
46499
|
borderStyle: "solid"
|
|
46515
46500
|
},
|
|
46516
|
-
/* @__PURE__ */
|
|
46501
|
+
/* @__PURE__ */ React296.createElement(OrderDetailSection, { checkoutHistoryItem: checkout })
|
|
46517
46502
|
)
|
|
46518
46503
|
);
|
|
46519
46504
|
};
|
|
@@ -46548,25 +46533,25 @@ var parseDescription = (checkout, t) => {
|
|
|
46548
46533
|
return t("transaction.depositHasBeenCredited");
|
|
46549
46534
|
}
|
|
46550
46535
|
if (checkout.refundState === "REFUNDED" || checkout.refundState === "ERROR") {
|
|
46551
|
-
return /* @__PURE__ */
|
|
46536
|
+
return /* @__PURE__ */ React296.createElement(
|
|
46552
46537
|
Trans20,
|
|
46553
46538
|
{
|
|
46554
46539
|
t,
|
|
46555
46540
|
i18nKey: "transaction.depositDidntCompleteError",
|
|
46556
46541
|
components: {
|
|
46557
|
-
ContactSupportLink: /* @__PURE__ */
|
|
46542
|
+
ContactSupportLink: /* @__PURE__ */ React296.createElement(ContactSupportLink, null)
|
|
46558
46543
|
}
|
|
46559
46544
|
}
|
|
46560
46545
|
);
|
|
46561
46546
|
}
|
|
46562
46547
|
if (isError || checkout.refundState) {
|
|
46563
|
-
return /* @__PURE__ */
|
|
46548
|
+
return /* @__PURE__ */ React296.createElement(
|
|
46564
46549
|
Trans20,
|
|
46565
46550
|
{
|
|
46566
46551
|
t,
|
|
46567
46552
|
i18nKey: "transaction.depositDidntCompleteFundsSafe",
|
|
46568
46553
|
components: {
|
|
46569
|
-
ContactSupportLink: /* @__PURE__ */
|
|
46554
|
+
ContactSupportLink: /* @__PURE__ */ React296.createElement(ContactSupportLink, null)
|
|
46570
46555
|
}
|
|
46571
46556
|
}
|
|
46572
46557
|
);
|
|
@@ -46575,7 +46560,7 @@ var parseDescription = (checkout, t) => {
|
|
|
46575
46560
|
};
|
|
46576
46561
|
var parseDisclaimer = (checkout, onHelp, t) => {
|
|
46577
46562
|
const { isError } = getCheckoutStateBooleans(checkout.state);
|
|
46578
|
-
const contactLink = /* @__PURE__ */
|
|
46563
|
+
const contactLink = /* @__PURE__ */ React296.createElement(
|
|
46579
46564
|
FunLinkButton,
|
|
46580
46565
|
{
|
|
46581
46566
|
text: t("transaction.contactUs"),
|
|
@@ -46586,7 +46571,7 @@ var parseDisclaimer = (checkout, onHelp, t) => {
|
|
|
46586
46571
|
}
|
|
46587
46572
|
);
|
|
46588
46573
|
if (isError) {
|
|
46589
|
-
return /* @__PURE__ */
|
|
46574
|
+
return /* @__PURE__ */ React296.createElement(
|
|
46590
46575
|
Trans20,
|
|
46591
46576
|
{
|
|
46592
46577
|
i18nKey: "transaction.depositBeingProcessedFull",
|
|
@@ -46600,7 +46585,7 @@ var parseDisclaimer = (checkout, onHelp, t) => {
|
|
|
46600
46585
|
return t("checkout.orderRefunded");
|
|
46601
46586
|
}
|
|
46602
46587
|
if (checkout.refundState === "PROCEEDED" || isDelayed(checkout)) {
|
|
46603
|
-
return /* @__PURE__ */
|
|
46588
|
+
return /* @__PURE__ */ React296.createElement(
|
|
46604
46589
|
Trans20,
|
|
46605
46590
|
{
|
|
46606
46591
|
i18nKey: "transaction.transactionDelayedFundsSafeFull",
|
|
@@ -46613,7 +46598,7 @@ var parseDisclaimer = (checkout, onHelp, t) => {
|
|
|
46613
46598
|
};
|
|
46614
46599
|
|
|
46615
46600
|
// src/modals/CheckoutModal/TransferToken/DirectExecutionNotification.tsx
|
|
46616
|
-
import
|
|
46601
|
+
import React297 from "react";
|
|
46617
46602
|
import { Trans as Trans21 } from "react-i18next";
|
|
46618
46603
|
var mapDirectExecutionStateToNotificationStatus = (isProcessing, isDelayed2, isRefunded, isCompleted, isFailed) => {
|
|
46619
46604
|
if (isProcessing) {
|
|
@@ -46697,13 +46682,13 @@ var DirectExecutionNotification = ({
|
|
|
46697
46682
|
delayed: t("transaction.depositWillBeCredited"),
|
|
46698
46683
|
completed: t("transaction.depositHasBeenCredited"),
|
|
46699
46684
|
// Relay refunded which either goes back to user (balance flow) or reprocessed (qr code)
|
|
46700
|
-
expired: /* @__PURE__ */
|
|
46685
|
+
expired: /* @__PURE__ */ React297.createElement(
|
|
46701
46686
|
Trans21,
|
|
46702
46687
|
{
|
|
46703
46688
|
t,
|
|
46704
46689
|
i18nKey: "transaction.depositRefundedOrReprocessed",
|
|
46705
46690
|
components: {
|
|
46706
|
-
ContactSupportLink: /* @__PURE__ */
|
|
46691
|
+
ContactSupportLink: /* @__PURE__ */ React297.createElement(ContactSupportLink, null)
|
|
46707
46692
|
}
|
|
46708
46693
|
}
|
|
46709
46694
|
),
|
|
@@ -46722,7 +46707,7 @@ var DirectExecutionNotification = ({
|
|
|
46722
46707
|
status: notificationStatus
|
|
46723
46708
|
});
|
|
46724
46709
|
const normalizedTicker = initSettings.config.targetAssetTicker?.toUpperCase();
|
|
46725
|
-
return /* @__PURE__ */
|
|
46710
|
+
return /* @__PURE__ */ React297.createElement(
|
|
46726
46711
|
FunNotificationBanner,
|
|
46727
46712
|
{
|
|
46728
46713
|
title: getNotificationContent(
|
|
@@ -46750,7 +46735,7 @@ var DirectExecutionNotification = ({
|
|
|
46750
46735
|
},
|
|
46751
46736
|
onShowMore: trackShowMore
|
|
46752
46737
|
},
|
|
46753
|
-
/* @__PURE__ */
|
|
46738
|
+
/* @__PURE__ */ React297.createElement(
|
|
46754
46739
|
Box,
|
|
46755
46740
|
{
|
|
46756
46741
|
paddingY: "8",
|
|
@@ -46761,12 +46746,12 @@ var DirectExecutionNotification = ({
|
|
|
46761
46746
|
borderWidth: "1",
|
|
46762
46747
|
borderStyle: "solid"
|
|
46763
46748
|
},
|
|
46764
|
-
/* @__PURE__ */
|
|
46749
|
+
/* @__PURE__ */ React297.createElement(DirectExecutionOrderDetailSection, { directExecution })
|
|
46765
46750
|
)
|
|
46766
46751
|
);
|
|
46767
46752
|
};
|
|
46768
46753
|
var parseDisclaimer2 = (t, isRefunded, isDelayed2, isFailed, onHelp) => {
|
|
46769
|
-
const contactLink = /* @__PURE__ */
|
|
46754
|
+
const contactLink = /* @__PURE__ */ React297.createElement(
|
|
46770
46755
|
FunLinkButton,
|
|
46771
46756
|
{
|
|
46772
46757
|
text: t("transaction.contactUs"),
|
|
@@ -46777,7 +46762,7 @@ var parseDisclaimer2 = (t, isRefunded, isDelayed2, isFailed, onHelp) => {
|
|
|
46777
46762
|
}
|
|
46778
46763
|
);
|
|
46779
46764
|
if (isFailed || isRefunded) {
|
|
46780
|
-
return /* @__PURE__ */
|
|
46765
|
+
return /* @__PURE__ */ React297.createElement(
|
|
46781
46766
|
Trans21,
|
|
46782
46767
|
{
|
|
46783
46768
|
i18nKey: "transaction.depositDidntCompleteFull",
|
|
@@ -46788,7 +46773,7 @@ var parseDisclaimer2 = (t, isRefunded, isDelayed2, isFailed, onHelp) => {
|
|
|
46788
46773
|
);
|
|
46789
46774
|
}
|
|
46790
46775
|
if (isDelayed2) {
|
|
46791
|
-
return /* @__PURE__ */
|
|
46776
|
+
return /* @__PURE__ */ React297.createElement(
|
|
46792
46777
|
Trans21,
|
|
46793
46778
|
{
|
|
46794
46779
|
i18nKey: "transaction.depositDelayedFundsSafeFull",
|
|
@@ -46876,7 +46861,7 @@ var CheckoutNotifications = ({
|
|
|
46876
46861
|
if (!isVisible) {
|
|
46877
46862
|
return null;
|
|
46878
46863
|
}
|
|
46879
|
-
return /* @__PURE__ */
|
|
46864
|
+
return /* @__PURE__ */ React298.createElement(
|
|
46880
46865
|
Box,
|
|
46881
46866
|
{
|
|
46882
46867
|
position: "absolute",
|
|
@@ -46884,9 +46869,9 @@ var CheckoutNotifications = ({
|
|
|
46884
46869
|
maxHeight: "full",
|
|
46885
46870
|
style: { bottom: 0, left: 0, right: 0, zIndex: OVERLAY_Z_INDEX }
|
|
46886
46871
|
},
|
|
46887
|
-
/* @__PURE__ */
|
|
46872
|
+
/* @__PURE__ */ React298.createElement(Box, { display: "flex", flexDirection: "column", gap: "8", padding: "8" }, displayedNotifications.map((item) => {
|
|
46888
46873
|
if (item.isDirectExecution) {
|
|
46889
|
-
return /* @__PURE__ */
|
|
46874
|
+
return /* @__PURE__ */ React298.createElement(
|
|
46890
46875
|
DirectExecutionNotification,
|
|
46891
46876
|
{
|
|
46892
46877
|
key: getDirectExecutionNotificationKey(item),
|
|
@@ -46896,7 +46881,7 @@ var CheckoutNotifications = ({
|
|
|
46896
46881
|
}
|
|
46897
46882
|
);
|
|
46898
46883
|
}
|
|
46899
|
-
return /* @__PURE__ */
|
|
46884
|
+
return /* @__PURE__ */ React298.createElement(
|
|
46900
46885
|
CheckoutNotification,
|
|
46901
46886
|
{
|
|
46902
46887
|
key: item.depositAddr,
|
|
@@ -46905,7 +46890,7 @@ var CheckoutNotifications = ({
|
|
|
46905
46890
|
onHelp
|
|
46906
46891
|
}
|
|
46907
46892
|
);
|
|
46908
|
-
}), combinedNotifications.length > COLLAPSED_COUNT && /* @__PURE__ */
|
|
46893
|
+
}), combinedNotifications.length > COLLAPSED_COUNT && /* @__PURE__ */ React298.createElement(
|
|
46909
46894
|
FunNotificationShowMoreButton,
|
|
46910
46895
|
{
|
|
46911
46896
|
isExpanded,
|
|
@@ -47011,7 +46996,7 @@ function useCheckoutModalQueryPreload() {
|
|
|
47011
46996
|
function FunCheckoutModalStepComponent(props) {
|
|
47012
46997
|
useCheckoutModalQueryPreload();
|
|
47013
46998
|
const { Component: Component2 } = CheckoutModalSteps[props.modalState.step];
|
|
47014
|
-
return /* @__PURE__ */
|
|
46999
|
+
return /* @__PURE__ */ React299.createElement(Component2, { ...props });
|
|
47015
47000
|
}
|
|
47016
47001
|
function getSwappedExtraPaddingExcludedSteps(startingStep) {
|
|
47017
47002
|
const steps = ["source_change" /* SOURCE_CHANGE */];
|
|
@@ -47118,7 +47103,7 @@ function FunCheckoutModalInner({
|
|
|
47118
47103
|
isActiveCheckout: true,
|
|
47119
47104
|
isCheckoutDetailView: modalState.step === "checkout_complete" /* CHECKOUT_COMPLETE */,
|
|
47120
47105
|
paddingTop: 0,
|
|
47121
|
-
topbar: /* @__PURE__ */
|
|
47106
|
+
topbar: /* @__PURE__ */ React299.createElement(
|
|
47122
47107
|
Dialog.Title,
|
|
47123
47108
|
{
|
|
47124
47109
|
hasBackButton: hasBack && !showBlockedUI,
|
|
@@ -47138,7 +47123,7 @@ function FunCheckoutModalInner({
|
|
|
47138
47123
|
modalState.step
|
|
47139
47124
|
) && isSwappedEnabled;
|
|
47140
47125
|
const isSourceChangeLikeStep = modalState.step === "source_change" /* SOURCE_CHANGE */ || modalState.step === "loading_account" /* LOADING_ACCOUNT */ && startingStep !== "confirmation" /* CONFIRMATION */ && startingStep !== "select_asset" /* SELECT_ASSET */;
|
|
47141
|
-
return /* @__PURE__ */
|
|
47126
|
+
return /* @__PURE__ */ React299.createElement(
|
|
47142
47127
|
Dialog,
|
|
47143
47128
|
{
|
|
47144
47129
|
open,
|
|
@@ -47151,13 +47136,13 @@ function FunCheckoutModalInner({
|
|
|
47151
47136
|
isFanaticsBottomSheet: isFanatics,
|
|
47152
47137
|
backgroundOverlay: successScreenBackgroundOverlay
|
|
47153
47138
|
},
|
|
47154
|
-
/* @__PURE__ */
|
|
47139
|
+
/* @__PURE__ */ React299.createElement(SwappedProvider, null, /* @__PURE__ */ React299.createElement(CheckoutModalPrefetchedHooks, null), /* @__PURE__ */ React299.createElement(TooltipAnchorRefContext.Provider, { value: tooltipAnchorRef }, /* @__PURE__ */ React299.createElement(
|
|
47155
47140
|
FunCheckoutModalHeightAnimationWrapper,
|
|
47156
47141
|
{
|
|
47157
47142
|
checkoutConfig,
|
|
47158
47143
|
checkoutStep: modalState.step
|
|
47159
47144
|
},
|
|
47160
|
-
modalState.showWalletOptions ? /* @__PURE__ */
|
|
47145
|
+
modalState.showWalletOptions ? /* @__PURE__ */ React299.createElement(
|
|
47161
47146
|
FunConnectOptions,
|
|
47162
47147
|
{
|
|
47163
47148
|
initialScreenOnBack: () => setModalState((state) => ({
|
|
@@ -47173,7 +47158,7 @@ function FunCheckoutModalInner({
|
|
|
47173
47158
|
},
|
|
47174
47159
|
walletsOnly: true
|
|
47175
47160
|
}
|
|
47176
|
-
) : /* @__PURE__ */
|
|
47161
|
+
) : /* @__PURE__ */ React299.createElement(React299.Fragment, null, !hideTopbar && topbar, /* @__PURE__ */ React299.createElement(
|
|
47177
47162
|
Dialog.Content,
|
|
47178
47163
|
{
|
|
47179
47164
|
fullHeight: showFullHeight || hideTopbar,
|
|
@@ -47187,17 +47172,17 @@ function FunCheckoutModalInner({
|
|
|
47187
47172
|
extraContentTopPadding: !shouldSkipExtraContentTopPadding,
|
|
47188
47173
|
withChildScrollArea: isSourceChangeLikeStep
|
|
47189
47174
|
},
|
|
47190
|
-
showBlockedUI ? /* @__PURE__ */
|
|
47191
|
-
/* @__PURE__ */
|
|
47175
|
+
showBlockedUI ? /* @__PURE__ */ React299.createElement(FunCheckoutBlocked, { reason: blockedReason }) : /* @__PURE__ */ React299.createElement(FunCheckoutModalStepComponent, { ...modalProps }),
|
|
47176
|
+
/* @__PURE__ */ React299.createElement("div", { ref: tooltipAnchorRef })
|
|
47192
47177
|
)),
|
|
47193
|
-
/* @__PURE__ */
|
|
47178
|
+
/* @__PURE__ */ React299.createElement(
|
|
47194
47179
|
Dialog.BottomSection,
|
|
47195
47180
|
{
|
|
47196
47181
|
id: MODAL_BOTTOM_BAR_IDS.checkout,
|
|
47197
47182
|
display: modalState.showWalletOptions ? "none" : "block"
|
|
47198
47183
|
}
|
|
47199
47184
|
),
|
|
47200
|
-
!showBlockedUI && /* @__PURE__ */
|
|
47185
|
+
!showBlockedUI && /* @__PURE__ */ React299.createElement(
|
|
47201
47186
|
CheckoutNotifications,
|
|
47202
47187
|
{
|
|
47203
47188
|
onHelp: handleCheckoutHelp,
|
|
@@ -47205,7 +47190,7 @@ function FunCheckoutModalInner({
|
|
|
47205
47190
|
variant: notificationVariant
|
|
47206
47191
|
}
|
|
47207
47192
|
)
|
|
47208
|
-
), /* @__PURE__ */
|
|
47193
|
+
), /* @__PURE__ */ React299.createElement(SwappedIframe_default, null)))
|
|
47209
47194
|
);
|
|
47210
47195
|
}
|
|
47211
47196
|
function FunCheckoutModal({
|
|
@@ -47217,7 +47202,7 @@ function FunCheckoutModal({
|
|
|
47217
47202
|
if (!checkoutItem) {
|
|
47218
47203
|
return null;
|
|
47219
47204
|
}
|
|
47220
|
-
return /* @__PURE__ */
|
|
47205
|
+
return /* @__PURE__ */ React299.createElement(
|
|
47221
47206
|
FunCheckoutModalInner,
|
|
47222
47207
|
{
|
|
47223
47208
|
checkoutItem,
|
|
@@ -47237,20 +47222,20 @@ var hideModalTitleMetaIfTrue = (checkoutConfig, hideModalMeta) => {
|
|
|
47237
47222
|
};
|
|
47238
47223
|
|
|
47239
47224
|
// src/modals/ConnectModal/ConnectModal.tsx
|
|
47240
|
-
import
|
|
47225
|
+
import React300 from "react";
|
|
47241
47226
|
var TITLE_ID2 = "rk-connect-modal-title";
|
|
47242
47227
|
function ConnectModal({ onClose, open }) {
|
|
47243
47228
|
const connectionStatus = useConnectionStatus();
|
|
47244
47229
|
const { disconnect } = useFunkitDisconnect();
|
|
47245
47230
|
const { isConnecting } = useAccount();
|
|
47246
|
-
const onConnectModalCancel =
|
|
47231
|
+
const onConnectModalCancel = React300.useCallback(() => {
|
|
47247
47232
|
if (isConnecting) {
|
|
47248
47233
|
disconnect();
|
|
47249
47234
|
}
|
|
47250
47235
|
onClose();
|
|
47251
47236
|
}, [onClose, disconnect, isConnecting]);
|
|
47252
47237
|
if (connectionStatus === "disconnected" || connectionStatus === "loading") {
|
|
47253
|
-
return /* @__PURE__ */
|
|
47238
|
+
return /* @__PURE__ */ React300.createElement(
|
|
47254
47239
|
Dialog,
|
|
47255
47240
|
{
|
|
47256
47241
|
onClose: onConnectModalCancel,
|
|
@@ -47258,7 +47243,7 @@ function ConnectModal({ onClose, open }) {
|
|
|
47258
47243
|
titleId: TITLE_ID2,
|
|
47259
47244
|
isSmartCloseable: true
|
|
47260
47245
|
},
|
|
47261
|
-
/* @__PURE__ */
|
|
47246
|
+
/* @__PURE__ */ React300.createElement(FunCheckoutModalHeightAnimationWrapper, null, /* @__PURE__ */ React300.createElement(FunConnectOptions, { onClose: onConnectModalCancel }))
|
|
47262
47247
|
);
|
|
47263
47248
|
}
|
|
47264
47249
|
return null;
|
|
@@ -47375,7 +47360,7 @@ function ModalProvider({ children }) {
|
|
|
47375
47360
|
closeModals();
|
|
47376
47361
|
}
|
|
47377
47362
|
}, [isUnauthenticated]);
|
|
47378
|
-
return /* @__PURE__ */
|
|
47363
|
+
return /* @__PURE__ */ React301.createElement(
|
|
47379
47364
|
ModalContext.Provider,
|
|
47380
47365
|
{
|
|
47381
47366
|
value: useMemo65(
|
|
@@ -47421,8 +47406,8 @@ function ModalProvider({ children }) {
|
|
|
47421
47406
|
)
|
|
47422
47407
|
},
|
|
47423
47408
|
children,
|
|
47424
|
-
/* @__PURE__ */
|
|
47425
|
-
/* @__PURE__ */
|
|
47409
|
+
/* @__PURE__ */ React301.createElement(ConnectModal, { onClose: closeConnectModal, open: connectModalOpen }),
|
|
47410
|
+
/* @__PURE__ */ React301.createElement(
|
|
47426
47411
|
AccountModal,
|
|
47427
47412
|
{
|
|
47428
47413
|
onClose: closeAccountModal,
|
|
@@ -47430,8 +47415,8 @@ function ModalProvider({ children }) {
|
|
|
47430
47415
|
defaultTab: accountModalTab
|
|
47431
47416
|
}
|
|
47432
47417
|
),
|
|
47433
|
-
/* @__PURE__ */
|
|
47434
|
-
/* @__PURE__ */
|
|
47418
|
+
/* @__PURE__ */ React301.createElement(ChainModal, { onClose: closeChainModal, open: chainModalOpen }),
|
|
47419
|
+
/* @__PURE__ */ React301.createElement(
|
|
47435
47420
|
FunCheckoutModal,
|
|
47436
47421
|
{
|
|
47437
47422
|
onClose: closeFunCheckoutModal,
|
|
@@ -47440,7 +47425,7 @@ function ModalProvider({ children }) {
|
|
|
47440
47425
|
key: softHiddenCheckoutId ?? funCheckoutModalId
|
|
47441
47426
|
}
|
|
47442
47427
|
),
|
|
47443
|
-
withdrawalModalConfig && /* @__PURE__ */
|
|
47428
|
+
withdrawalModalConfig && /* @__PURE__ */ React301.createElement(
|
|
47444
47429
|
WithdrawalModal,
|
|
47445
47430
|
{
|
|
47446
47431
|
onClose: closeWithdrawalModal,
|
|
@@ -47663,7 +47648,7 @@ function FunkitCheckoutProvider({ children }) {
|
|
|
47663
47648
|
config: {
|
|
47664
47649
|
...config,
|
|
47665
47650
|
// Solana is case-sensitive for SPL token addresses, so we should not lowercase the target asset address here
|
|
47666
|
-
targetAsset: config.targetChain.toString() === SOLANA_MAINNET_CHAIN_ID2.toString() && !
|
|
47651
|
+
targetAsset: config.targetChain.toString() === SOLANA_MAINNET_CHAIN_ID2.toString() && !isTokenAddressEquivalent4({
|
|
47667
47652
|
firstTokenAddress: NATIVE_TOKEN,
|
|
47668
47653
|
secondTokenAddress: config.targetAsset
|
|
47669
47654
|
}) ? config.targetAsset : config.targetAsset.toLowerCase(),
|
|
@@ -48147,7 +48132,7 @@ function FunkitCheckoutProvider({ children }) {
|
|
|
48147
48132
|
updateDynamicRoutingId,
|
|
48148
48133
|
applyDynamicTargetAssetCandidate
|
|
48149
48134
|
};
|
|
48150
|
-
return /* @__PURE__ */
|
|
48135
|
+
return /* @__PURE__ */ React302.createElement(FunkitCheckoutContext.Provider, { value: contextValue }, children);
|
|
48151
48136
|
}
|
|
48152
48137
|
function useCheckoutContext() {
|
|
48153
48138
|
return useContext21(FunkitCheckoutContext);
|
|
@@ -48418,9 +48403,9 @@ async function validateCheckoutConfig(config, apiKey) {
|
|
|
48418
48403
|
};
|
|
48419
48404
|
}
|
|
48420
48405
|
var hasSufficientBalance = async (wagmiConfig, walletAddress, tokenAddress, tokenChainId, requiredAssetAmount) => {
|
|
48421
|
-
const finalTokenAddress =
|
|
48406
|
+
const finalTokenAddress = isTokenAddressEquivalent5({
|
|
48422
48407
|
firstTokenAddress: tokenAddress,
|
|
48423
|
-
secondTokenAddress:
|
|
48408
|
+
secondTokenAddress: FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS5
|
|
48424
48409
|
}) ? void 0 : tokenAddress;
|
|
48425
48410
|
const data = await getBalance(wagmiConfig, {
|
|
48426
48411
|
address: walletAddress,
|
|
@@ -48532,11 +48517,11 @@ async function getTokenDecimals(wagmiConfig, chainId2, tokenAddress) {
|
|
|
48532
48517
|
if (isNativeTokenAddress(tokenAddress)) {
|
|
48533
48518
|
return FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO11[chainId2]?.nativeCurrency?.decimals || 18;
|
|
48534
48519
|
}
|
|
48535
|
-
if (chainId2 ===
|
|
48536
|
-
return
|
|
48520
|
+
if (chainId2 === solanaChain5.id.toString()) {
|
|
48521
|
+
return solanaChain5.nativeCurrency.decimals;
|
|
48537
48522
|
}
|
|
48538
|
-
if (chainId2 ===
|
|
48539
|
-
return
|
|
48523
|
+
if (chainId2 === tronChain4.id.toString()) {
|
|
48524
|
+
return tronChain4.nativeCurrency.decimals;
|
|
48540
48525
|
}
|
|
48541
48526
|
if (chainId2 === lightningChain4.id.toString()) {
|
|
48542
48527
|
return lightningChain4.nativeCurrency.decimals;
|
|
@@ -48649,22 +48634,25 @@ function getMinValueThreshold(config, minUsdRequired) {
|
|
|
48649
48634
|
function isPreferredChain(chainId2, additionalChains = []) {
|
|
48650
48635
|
const chains = /* @__PURE__ */ new Set([
|
|
48651
48636
|
mainnet13.id,
|
|
48652
|
-
|
|
48637
|
+
polygon7.id,
|
|
48653
48638
|
base6.id,
|
|
48654
48639
|
arbitrum6.id,
|
|
48655
48640
|
optimism2.id,
|
|
48656
|
-
|
|
48641
|
+
bsc2.id,
|
|
48642
|
+
solanaChain6.id,
|
|
48643
|
+
hyperEvmChain4.id,
|
|
48644
|
+
monadChain2.id,
|
|
48657
48645
|
...additionalChains
|
|
48658
48646
|
]);
|
|
48659
48647
|
return chains.has(chainId2);
|
|
48660
48648
|
}
|
|
48661
48649
|
function isNativeTokenAddress(address) {
|
|
48662
|
-
return
|
|
48650
|
+
return isTokenAddressEquivalent6({
|
|
48663
48651
|
firstTokenAddress: address,
|
|
48664
48652
|
secondTokenAddress: NATIVE_TOKEN
|
|
48665
48653
|
});
|
|
48666
48654
|
}
|
|
48667
|
-
var isPolygonEcosystemToken = (chainId2, tokenAddress) => chainId2 ===
|
|
48655
|
+
var isPolygonEcosystemToken = (chainId2, tokenAddress) => chainId2 === polygon7.id.toString() && tokenAddress === "0x0000000000000000000000000000000000001010";
|
|
48668
48656
|
var isAssetUsableToPayForCheckout = ({
|
|
48669
48657
|
config,
|
|
48670
48658
|
payerAddress,
|
|
@@ -48676,7 +48664,7 @@ var isAssetUsableToPayForCheckout = ({
|
|
|
48676
48664
|
assetUsdAmount,
|
|
48677
48665
|
isAllowedForCheckout,
|
|
48678
48666
|
minValueThreshold,
|
|
48679
|
-
|
|
48667
|
+
isLighterDynamicRoutingEnabled,
|
|
48680
48668
|
t
|
|
48681
48669
|
}) => {
|
|
48682
48670
|
const finalCheckoutRecipient = getCheckoutRecipient({
|
|
@@ -48684,7 +48672,7 @@ var isAssetUsableToPayForCheckout = ({
|
|
|
48684
48672
|
walletAddress: payerAddress
|
|
48685
48673
|
});
|
|
48686
48674
|
const isSameAsPurchasingToken = (() => {
|
|
48687
|
-
if (
|
|
48675
|
+
if (isLighterDynamicRoutingEnabled) {
|
|
48688
48676
|
return false;
|
|
48689
48677
|
}
|
|
48690
48678
|
if (isCheckoutPostActionRequired(config)) {
|
|
@@ -48742,7 +48730,7 @@ function normalizeAssetSymbol(asset) {
|
|
|
48742
48730
|
if (isTokenEquivalent12({
|
|
48743
48731
|
firstTokenChainId: asset.chainId,
|
|
48744
48732
|
firstTokenAddress: asset.contractAddress,
|
|
48745
|
-
secondTokenChainId:
|
|
48733
|
+
secondTokenChainId: polygon8.id.toString(),
|
|
48746
48734
|
secondTokenAddress: POLYGON_USDCE_TOKEN
|
|
48747
48735
|
})) {
|
|
48748
48736
|
return { ...asset, symbol: "USDC.e" };
|
|
@@ -48920,7 +48908,7 @@ function ConnectButtonRenderer({
|
|
|
48920
48908
|
const { openChainModal } = useChainModal();
|
|
48921
48909
|
const { openAccountModal } = useAccountModal();
|
|
48922
48910
|
const { accountModalOpen, chainModalOpen, connectModalOpen } = useModalState();
|
|
48923
|
-
return /* @__PURE__ */
|
|
48911
|
+
return /* @__PURE__ */ React303.createElement(React303.Fragment, null, children({
|
|
48924
48912
|
account: address ? {
|
|
48925
48913
|
address,
|
|
48926
48914
|
balanceDecimals: balanceData?.decimals,
|
|
@@ -48977,7 +48965,7 @@ function ChainSelectorButton({
|
|
|
48977
48965
|
chain
|
|
48978
48966
|
}) {
|
|
48979
48967
|
const { t } = useFunkitTranslation();
|
|
48980
|
-
return /* @__PURE__ */
|
|
48968
|
+
return /* @__PURE__ */ React304.createElement(
|
|
48981
48969
|
Box,
|
|
48982
48970
|
{
|
|
48983
48971
|
alignItems: "center",
|
|
@@ -49005,7 +48993,7 @@ function ChainSelectorButton({
|
|
|
49005
48993
|
type: "button",
|
|
49006
48994
|
...connectButtonStyles
|
|
49007
48995
|
},
|
|
49008
|
-
unsupportedChain ? /* @__PURE__ */
|
|
48996
|
+
unsupportedChain ? /* @__PURE__ */ React304.createElement(Box, { alignItems: "center", display: "flex", height: "24", paddingX: "4" }, t("chainModal.wrongNetwork")) : /* @__PURE__ */ React304.createElement(Box, { alignItems: "center", display: "flex", gap: "6" }, chain.hasIcon ? /* @__PURE__ */ React304.createElement(
|
|
49009
48997
|
Box,
|
|
49010
48998
|
{
|
|
49011
48999
|
display: mapResponsiveValue(
|
|
@@ -49015,7 +49003,7 @@ function ChainSelectorButton({
|
|
|
49015
49003
|
height: "12",
|
|
49016
49004
|
width: "12"
|
|
49017
49005
|
},
|
|
49018
|
-
/* @__PURE__ */
|
|
49006
|
+
/* @__PURE__ */ React304.createElement(
|
|
49019
49007
|
AsyncImage,
|
|
49020
49008
|
{
|
|
49021
49009
|
alt: chain.name ?? "Chain icon",
|
|
@@ -49026,7 +49014,7 @@ function ChainSelectorButton({
|
|
|
49026
49014
|
src: chain.iconUrl
|
|
49027
49015
|
}
|
|
49028
49016
|
)
|
|
49029
|
-
) : null, /* @__PURE__ */
|
|
49017
|
+
) : null, /* @__PURE__ */ React304.createElement(
|
|
49030
49018
|
Box,
|
|
49031
49019
|
{
|
|
49032
49020
|
display: mapResponsiveValue(chainStatus, (value) => {
|
|
@@ -49046,7 +49034,7 @@ function AccountButton({
|
|
|
49046
49034
|
showBalance,
|
|
49047
49035
|
accountStatus
|
|
49048
49036
|
}) {
|
|
49049
|
-
return /* @__PURE__ */
|
|
49037
|
+
return /* @__PURE__ */ React304.createElement(
|
|
49050
49038
|
Box,
|
|
49051
49039
|
{
|
|
49052
49040
|
alignItems: "center",
|
|
@@ -49066,7 +49054,7 @@ function AccountButton({
|
|
|
49066
49054
|
gap: "16",
|
|
49067
49055
|
...connectButtonStyles
|
|
49068
49056
|
},
|
|
49069
|
-
account.displayBalance && /* @__PURE__ */
|
|
49057
|
+
account.displayBalance && /* @__PURE__ */ React304.createElement(
|
|
49070
49058
|
Box,
|
|
49071
49059
|
{
|
|
49072
49060
|
display: mapResponsiveValue(
|
|
@@ -49076,7 +49064,7 @@ function AccountButton({
|
|
|
49076
49064
|
},
|
|
49077
49065
|
account.displayBalance
|
|
49078
49066
|
),
|
|
49079
|
-
/* @__PURE__ */
|
|
49067
|
+
/* @__PURE__ */ React304.createElement(Box, { alignItems: "center", display: "flex", gap: "6" }, /* @__PURE__ */ React304.createElement(
|
|
49080
49068
|
Box,
|
|
49081
49069
|
{
|
|
49082
49070
|
display: mapResponsiveValue(
|
|
@@ -49084,7 +49072,7 @@ function AccountButton({
|
|
|
49084
49072
|
(value) => value === "full" || value === "avatar" ? "block" : "none"
|
|
49085
49073
|
)
|
|
49086
49074
|
},
|
|
49087
|
-
/* @__PURE__ */
|
|
49075
|
+
/* @__PURE__ */ React304.createElement(
|
|
49088
49076
|
Avatar,
|
|
49089
49077
|
{
|
|
49090
49078
|
address: account.address,
|
|
@@ -49093,7 +49081,7 @@ function AccountButton({
|
|
|
49093
49081
|
size: 12
|
|
49094
49082
|
}
|
|
49095
49083
|
)
|
|
49096
|
-
), /* @__PURE__ */
|
|
49084
|
+
), /* @__PURE__ */ React304.createElement(
|
|
49097
49085
|
Box,
|
|
49098
49086
|
{
|
|
49099
49087
|
display: mapResponsiveValue(
|
|
@@ -49126,7 +49114,7 @@ function ConnectButton({
|
|
|
49126
49114
|
setReady(true);
|
|
49127
49115
|
}
|
|
49128
49116
|
}, [showBalance, setShowBalance, ready]);
|
|
49129
|
-
return ready ? /* @__PURE__ */
|
|
49117
|
+
return ready ? /* @__PURE__ */ React304.createElement(ConnectButtonRenderer, null, ({
|
|
49130
49118
|
account,
|
|
49131
49119
|
chain,
|
|
49132
49120
|
mounted,
|
|
@@ -49136,7 +49124,7 @@ function ConnectButton({
|
|
|
49136
49124
|
}) => {
|
|
49137
49125
|
const ready2 = mounted && connectionStatus !== "loading";
|
|
49138
49126
|
const unsupportedChain = chain?.unsupported ?? false;
|
|
49139
|
-
return /* @__PURE__ */
|
|
49127
|
+
return /* @__PURE__ */ React304.createElement(
|
|
49140
49128
|
Box,
|
|
49141
49129
|
{
|
|
49142
49130
|
display: "flex",
|
|
@@ -49152,7 +49140,7 @@ function ConnectButton({
|
|
|
49152
49140
|
},
|
|
49153
49141
|
ready2 && account && connectionStatus === "connected" ? (
|
|
49154
49142
|
// Logged in: Chain Button & Account Button
|
|
49155
|
-
/* @__PURE__ */
|
|
49143
|
+
/* @__PURE__ */ React304.createElement(React304.Fragment, null, showChainSelector && chain && (chains.length > 1 || unsupportedChain) && /* @__PURE__ */ React304.createElement(
|
|
49156
49144
|
ChainSelectorButton,
|
|
49157
49145
|
{
|
|
49158
49146
|
unsupportedChain,
|
|
@@ -49160,7 +49148,7 @@ function ConnectButton({
|
|
|
49160
49148
|
openChainModal,
|
|
49161
49149
|
chain
|
|
49162
49150
|
}
|
|
49163
|
-
), !unsupportedChain && /* @__PURE__ */
|
|
49151
|
+
), !unsupportedChain && /* @__PURE__ */ React304.createElement(
|
|
49164
49152
|
AccountButton,
|
|
49165
49153
|
{
|
|
49166
49154
|
openAccountModal,
|
|
@@ -49171,7 +49159,7 @@ function ConnectButton({
|
|
|
49171
49159
|
))
|
|
49172
49160
|
) : (
|
|
49173
49161
|
// Not logged in: Connect Button
|
|
49174
|
-
/* @__PURE__ */
|
|
49162
|
+
/* @__PURE__ */ React304.createElement(
|
|
49175
49163
|
Box,
|
|
49176
49164
|
{
|
|
49177
49165
|
as: "button",
|
|
@@ -49189,19 +49177,19 @@ function ConnectButton({
|
|
|
49189
49177
|
type: "button",
|
|
49190
49178
|
...connectButtonStyles
|
|
49191
49179
|
},
|
|
49192
|
-
/* @__PURE__ */
|
|
49180
|
+
/* @__PURE__ */ React304.createElement(Box, { display: "flex", gap: "8", alignItems: "center" }, mounted && label, suffixIcon)
|
|
49193
49181
|
)
|
|
49194
49182
|
)
|
|
49195
49183
|
);
|
|
49196
|
-
}) : /* @__PURE__ */
|
|
49184
|
+
}) : /* @__PURE__ */ React304.createElement(React304.Fragment, null);
|
|
49197
49185
|
}
|
|
49198
49186
|
ConnectButton.__defaultProps = defaultProps;
|
|
49199
49187
|
ConnectButton.Custom = ConnectButtonRenderer;
|
|
49200
49188
|
|
|
49201
49189
|
// src/components/Icons/FunkitPaymentsIconLine.tsx
|
|
49202
|
-
import
|
|
49190
|
+
import React305 from "react";
|
|
49203
49191
|
function MetaMaskPaymentIcon({ size = 16 }) {
|
|
49204
|
-
return /* @__PURE__ */
|
|
49192
|
+
return /* @__PURE__ */ React305.createElement(
|
|
49205
49193
|
"svg",
|
|
49206
49194
|
{
|
|
49207
49195
|
width: size,
|
|
@@ -49210,7 +49198,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49210
49198
|
fill: "none",
|
|
49211
49199
|
xmlns: "http://www.w3.org/2000/svg"
|
|
49212
49200
|
},
|
|
49213
|
-
/* @__PURE__ */
|
|
49201
|
+
/* @__PURE__ */ React305.createElement(
|
|
49214
49202
|
"path",
|
|
49215
49203
|
{
|
|
49216
49204
|
d: "M24.0891 3.1199L15.3446 9.61456L16.9617 5.7828L24.0891 3.1199Z",
|
|
@@ -49221,7 +49209,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49221
49209
|
strokeLinejoin: "round"
|
|
49222
49210
|
}
|
|
49223
49211
|
),
|
|
49224
|
-
/* @__PURE__ */
|
|
49212
|
+
/* @__PURE__ */ React305.createElement(
|
|
49225
49213
|
"path",
|
|
49226
49214
|
{
|
|
49227
49215
|
d: "M3.90207 3.1199L12.5763 9.67608L11.0383 5.7828L3.90207 3.1199Z",
|
|
@@ -49232,7 +49220,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49232
49220
|
strokeLinejoin: "round"
|
|
49233
49221
|
}
|
|
49234
49222
|
),
|
|
49235
|
-
/* @__PURE__ */
|
|
49223
|
+
/* @__PURE__ */ React305.createElement(
|
|
49236
49224
|
"path",
|
|
49237
49225
|
{
|
|
49238
49226
|
d: "M20.9429 18.1745L18.6139 21.7426L23.597 23.1136L25.0295 18.2536L20.9429 18.1745Z",
|
|
@@ -49243,7 +49231,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49243
49231
|
strokeLinejoin: "round"
|
|
49244
49232
|
}
|
|
49245
49233
|
),
|
|
49246
|
-
/* @__PURE__ */
|
|
49234
|
+
/* @__PURE__ */ React305.createElement(
|
|
49247
49235
|
"path",
|
|
49248
49236
|
{
|
|
49249
49237
|
d: "M2.97929 18.2536L4.40301 23.1136L9.38607 21.7426L7.05713 18.1745L2.97929 18.2536Z",
|
|
@@ -49254,7 +49242,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49254
49242
|
strokeLinejoin: "round"
|
|
49255
49243
|
}
|
|
49256
49244
|
),
|
|
49257
|
-
/* @__PURE__ */
|
|
49245
|
+
/* @__PURE__ */ React305.createElement(
|
|
49258
49246
|
"path",
|
|
49259
49247
|
{
|
|
49260
49248
|
d: "M9.10483 12.1456L7.71626 14.2461L12.6642 14.4658L12.4884 9.14877L9.10483 12.1456Z",
|
|
@@ -49265,7 +49253,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49265
49253
|
strokeLinejoin: "round"
|
|
49266
49254
|
}
|
|
49267
49255
|
),
|
|
49268
|
-
/* @__PURE__ */
|
|
49256
|
+
/* @__PURE__ */ React305.createElement(
|
|
49269
49257
|
"path",
|
|
49270
49258
|
{
|
|
49271
49259
|
d: "M18.8864 12.1456L15.4589 9.08725L15.3446 14.4658L20.2837 14.2461L18.8864 12.1456Z",
|
|
@@ -49276,7 +49264,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49276
49264
|
strokeLinejoin: "round"
|
|
49277
49265
|
}
|
|
49278
49266
|
),
|
|
49279
|
-
/* @__PURE__ */
|
|
49267
|
+
/* @__PURE__ */ React305.createElement(
|
|
49280
49268
|
"path",
|
|
49281
49269
|
{
|
|
49282
49270
|
d: "M9.38606 21.7426L12.3566 20.2925L9.79033 18.2888L9.38606 21.7426Z",
|
|
@@ -49287,7 +49275,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49287
49275
|
strokeLinejoin: "round"
|
|
49288
49276
|
}
|
|
49289
49277
|
),
|
|
49290
|
-
/* @__PURE__ */
|
|
49278
|
+
/* @__PURE__ */ React305.createElement(
|
|
49291
49279
|
"path",
|
|
49292
49280
|
{
|
|
49293
49281
|
d: "M15.6347 20.2925L18.6139 21.7426L18.2009 18.2888L15.6347 20.2925Z",
|
|
@@ -49298,7 +49286,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49298
49286
|
strokeLinejoin: "round"
|
|
49299
49287
|
}
|
|
49300
49288
|
),
|
|
49301
|
-
/* @__PURE__ */
|
|
49289
|
+
/* @__PURE__ */ React305.createElement(
|
|
49302
49290
|
"path",
|
|
49303
49291
|
{
|
|
49304
49292
|
d: "M18.6139 21.7426L15.6347 20.2925L15.8719 22.2348L15.8456 23.0521L18.6139 21.7426Z",
|
|
@@ -49309,7 +49297,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49309
49297
|
strokeLinejoin: "round"
|
|
49310
49298
|
}
|
|
49311
49299
|
),
|
|
49312
|
-
/* @__PURE__ */
|
|
49300
|
+
/* @__PURE__ */ React305.createElement(
|
|
49313
49301
|
"path",
|
|
49314
49302
|
{
|
|
49315
49303
|
d: "M9.38606 21.7426L12.1544 23.0521L12.1368 22.2348L12.3566 20.2925L9.38606 21.7426Z",
|
|
@@ -49320,7 +49308,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49320
49308
|
strokeLinejoin: "round"
|
|
49321
49309
|
}
|
|
49322
49310
|
),
|
|
49323
|
-
/* @__PURE__ */
|
|
49311
|
+
/* @__PURE__ */ React305.createElement(
|
|
49324
49312
|
"path",
|
|
49325
49313
|
{
|
|
49326
49314
|
d: "M12.1984 17.0056L9.72002 16.2762L11.4689 15.4765L12.1984 17.0056Z",
|
|
@@ -49331,7 +49319,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49331
49319
|
strokeLinejoin: "round"
|
|
49332
49320
|
}
|
|
49333
49321
|
),
|
|
49334
|
-
/* @__PURE__ */
|
|
49322
|
+
/* @__PURE__ */ React305.createElement(
|
|
49335
49323
|
"path",
|
|
49336
49324
|
{
|
|
49337
49325
|
d: "M15.7928 17.0056L16.5223 15.4765L18.28 16.2762L15.7928 17.0056Z",
|
|
@@ -49342,7 +49330,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49342
49330
|
strokeLinejoin: "round"
|
|
49343
49331
|
}
|
|
49344
49332
|
),
|
|
49345
|
-
/* @__PURE__ */
|
|
49333
|
+
/* @__PURE__ */ React305.createElement(
|
|
49346
49334
|
"path",
|
|
49347
49335
|
{
|
|
49348
49336
|
d: "M9.38606 21.7426L9.80791 18.1745L7.05712 18.2536L9.38606 21.7426Z",
|
|
@@ -49353,7 +49341,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49353
49341
|
strokeLinejoin: "round"
|
|
49354
49342
|
}
|
|
49355
49343
|
),
|
|
49356
|
-
/* @__PURE__ */
|
|
49344
|
+
/* @__PURE__ */ React305.createElement(
|
|
49357
49345
|
"path",
|
|
49358
49346
|
{
|
|
49359
49347
|
d: "M18.1921 18.1745L18.6139 21.7426L20.9429 18.2536L18.1921 18.1745Z",
|
|
@@ -49364,7 +49352,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49364
49352
|
strokeLinejoin: "round"
|
|
49365
49353
|
}
|
|
49366
49354
|
),
|
|
49367
|
-
/* @__PURE__ */
|
|
49355
|
+
/* @__PURE__ */ React305.createElement(
|
|
49368
49356
|
"path",
|
|
49369
49357
|
{
|
|
49370
49358
|
d: "M20.2837 14.2461L15.3446 14.4658L15.8016 17.0057L16.5311 15.4765L18.2888 16.2762L20.2837 14.2461Z",
|
|
@@ -49375,7 +49363,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49375
49363
|
strokeLinejoin: "round"
|
|
49376
49364
|
}
|
|
49377
49365
|
),
|
|
49378
|
-
/* @__PURE__ */
|
|
49366
|
+
/* @__PURE__ */ React305.createElement(
|
|
49379
49367
|
"path",
|
|
49380
49368
|
{
|
|
49381
49369
|
d: "M9.72002 16.2762L11.4777 15.4765L12.1984 17.0057L12.6642 14.4658L7.71626 14.2461L9.72002 16.2762Z",
|
|
@@ -49386,7 +49374,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49386
49374
|
strokeLinejoin: "round"
|
|
49387
49375
|
}
|
|
49388
49376
|
),
|
|
49389
|
-
/* @__PURE__ */
|
|
49377
|
+
/* @__PURE__ */ React305.createElement(
|
|
49390
49378
|
"path",
|
|
49391
49379
|
{
|
|
49392
49380
|
d: "M7.71626 14.2461L9.79033 18.2888L9.72002 16.2762L7.71626 14.2461Z",
|
|
@@ -49397,7 +49385,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49397
49385
|
strokeLinejoin: "round"
|
|
49398
49386
|
}
|
|
49399
49387
|
),
|
|
49400
|
-
/* @__PURE__ */
|
|
49388
|
+
/* @__PURE__ */ React305.createElement(
|
|
49401
49389
|
"path",
|
|
49402
49390
|
{
|
|
49403
49391
|
d: "M18.2888 16.2762L18.2009 18.2888L20.2837 14.2461L18.2888 16.2762Z",
|
|
@@ -49408,7 +49396,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49408
49396
|
strokeLinejoin: "round"
|
|
49409
49397
|
}
|
|
49410
49398
|
),
|
|
49411
|
-
/* @__PURE__ */
|
|
49399
|
+
/* @__PURE__ */ React305.createElement(
|
|
49412
49400
|
"path",
|
|
49413
49401
|
{
|
|
49414
49402
|
d: "M12.6642 14.4658L12.1984 17.0057L12.7784 20.0025L12.9102 16.0565L12.6642 14.4658Z",
|
|
@@ -49419,7 +49407,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49419
49407
|
strokeLinejoin: "round"
|
|
49420
49408
|
}
|
|
49421
49409
|
),
|
|
49422
|
-
/* @__PURE__ */
|
|
49410
|
+
/* @__PURE__ */ React305.createElement(
|
|
49423
49411
|
"path",
|
|
49424
49412
|
{
|
|
49425
49413
|
d: "M15.3446 14.4658L15.1073 16.0477L15.2128 20.0025L15.8016 17.0057L15.3446 14.4658Z",
|
|
@@ -49430,7 +49418,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49430
49418
|
strokeLinejoin: "round"
|
|
49431
49419
|
}
|
|
49432
49420
|
),
|
|
49433
|
-
/* @__PURE__ */
|
|
49421
|
+
/* @__PURE__ */ React305.createElement(
|
|
49434
49422
|
"path",
|
|
49435
49423
|
{
|
|
49436
49424
|
d: "M15.8016 17.0056L15.2128 20.0025L15.6347 20.2925L18.2009 18.2888L18.2888 16.2762L15.8016 17.0056Z",
|
|
@@ -49441,7 +49429,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49441
49429
|
strokeLinejoin: "round"
|
|
49442
49430
|
}
|
|
49443
49431
|
),
|
|
49444
|
-
/* @__PURE__ */
|
|
49432
|
+
/* @__PURE__ */ React305.createElement(
|
|
49445
49433
|
"path",
|
|
49446
49434
|
{
|
|
49447
49435
|
d: "M9.72002 16.2762L9.79033 18.2888L12.3566 20.2925L12.7784 20.0025L12.1984 17.0056L9.72002 16.2762Z",
|
|
@@ -49452,7 +49440,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49452
49440
|
strokeLinejoin: "round"
|
|
49453
49441
|
}
|
|
49454
49442
|
),
|
|
49455
|
-
/* @__PURE__ */
|
|
49443
|
+
/* @__PURE__ */ React305.createElement(
|
|
49456
49444
|
"path",
|
|
49457
49445
|
{
|
|
49458
49446
|
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",
|
|
@@ -49463,7 +49451,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49463
49451
|
strokeLinejoin: "round"
|
|
49464
49452
|
}
|
|
49465
49453
|
),
|
|
49466
|
-
/* @__PURE__ */
|
|
49454
|
+
/* @__PURE__ */ React305.createElement(
|
|
49467
49455
|
"path",
|
|
49468
49456
|
{
|
|
49469
49457
|
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",
|
|
@@ -49474,7 +49462,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49474
49462
|
strokeLinejoin: "round"
|
|
49475
49463
|
}
|
|
49476
49464
|
),
|
|
49477
|
-
/* @__PURE__ */
|
|
49465
|
+
/* @__PURE__ */ React305.createElement(
|
|
49478
49466
|
"path",
|
|
49479
49467
|
{
|
|
49480
49468
|
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",
|
|
@@ -49485,7 +49473,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49485
49473
|
strokeLinejoin: "round"
|
|
49486
49474
|
}
|
|
49487
49475
|
),
|
|
49488
|
-
/* @__PURE__ */
|
|
49476
|
+
/* @__PURE__ */ React305.createElement(
|
|
49489
49477
|
"path",
|
|
49490
49478
|
{
|
|
49491
49479
|
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",
|
|
@@ -49496,7 +49484,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49496
49484
|
strokeLinejoin: "round"
|
|
49497
49485
|
}
|
|
49498
49486
|
),
|
|
49499
|
-
/* @__PURE__ */
|
|
49487
|
+
/* @__PURE__ */ React305.createElement(
|
|
49500
49488
|
"path",
|
|
49501
49489
|
{
|
|
49502
49490
|
d: "M23.4827 13.4903L18.8864 12.1456L20.2837 14.2461L18.2009 18.2888L20.9429 18.2536H25.0295L23.4827 13.4903Z",
|
|
@@ -49507,7 +49495,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49507
49495
|
strokeLinejoin: "round"
|
|
49508
49496
|
}
|
|
49509
49497
|
),
|
|
49510
|
-
/* @__PURE__ */
|
|
49498
|
+
/* @__PURE__ */ React305.createElement(
|
|
49511
49499
|
"path",
|
|
49512
49500
|
{
|
|
49513
49501
|
d: "M9.10484 12.1456L4.50848 13.4903L2.97929 18.2536H7.05713L9.79033 18.2888L7.71626 14.2461L9.10484 12.1456Z",
|
|
@@ -49518,7 +49506,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49518
49506
|
strokeLinejoin: "round"
|
|
49519
49507
|
}
|
|
49520
49508
|
),
|
|
49521
|
-
/* @__PURE__ */
|
|
49509
|
+
/* @__PURE__ */ React305.createElement(
|
|
49522
49510
|
"path",
|
|
49523
49511
|
{
|
|
49524
49512
|
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",
|
|
@@ -49532,14 +49520,14 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49532
49520
|
);
|
|
49533
49521
|
}
|
|
49534
49522
|
function MastercardPaymentIcon({ size = 16 }) {
|
|
49535
|
-
return /* @__PURE__ */
|
|
49523
|
+
return /* @__PURE__ */ React305.createElement(
|
|
49536
49524
|
"svg",
|
|
49537
49525
|
{
|
|
49538
49526
|
xmlns: "http://www.w3.org/2000/svg",
|
|
49539
49527
|
height: size,
|
|
49540
49528
|
viewBox: "0 0 152.407 108"
|
|
49541
49529
|
},
|
|
49542
|
-
/* @__PURE__ */
|
|
49530
|
+
/* @__PURE__ */ React305.createElement("g", null, /* @__PURE__ */ React305.createElement("rect", { width: "152.407", height: "108", fill: "transparent" }), /* @__PURE__ */ React305.createElement("g", null, /* @__PURE__ */ React305.createElement(
|
|
49543
49531
|
"rect",
|
|
49544
49532
|
{
|
|
49545
49533
|
x: "60.4117",
|
|
@@ -49548,21 +49536,21 @@ function MastercardPaymentIcon({ size = 16 }) {
|
|
|
49548
49536
|
height: "56.6064",
|
|
49549
49537
|
fill: "#ff5f00"
|
|
49550
49538
|
}
|
|
49551
|
-
), /* @__PURE__ */
|
|
49539
|
+
), /* @__PURE__ */ React305.createElement(
|
|
49552
49540
|
"path",
|
|
49553
49541
|
{
|
|
49554
49542
|
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",
|
|
49555
49543
|
transform: "translate(-319.79649 -252)",
|
|
49556
49544
|
fill: "#eb001b"
|
|
49557
49545
|
}
|
|
49558
|
-
), /* @__PURE__ */
|
|
49546
|
+
), /* @__PURE__ */ React305.createElement(
|
|
49559
49547
|
"path",
|
|
49560
49548
|
{
|
|
49561
49549
|
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",
|
|
49562
49550
|
transform: "translate(-319.79649 -252)",
|
|
49563
49551
|
fill: "#f79e1b"
|
|
49564
49552
|
}
|
|
49565
|
-
), /* @__PURE__ */
|
|
49553
|
+
), /* @__PURE__ */ React305.createElement(
|
|
49566
49554
|
"path",
|
|
49567
49555
|
{
|
|
49568
49556
|
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",
|
|
@@ -49576,7 +49564,7 @@ function FunkitPaymentsIconLine({
|
|
|
49576
49564
|
size = 16,
|
|
49577
49565
|
gap = "2"
|
|
49578
49566
|
}) {
|
|
49579
|
-
return /* @__PURE__ */
|
|
49567
|
+
return /* @__PURE__ */ React305.createElement(
|
|
49580
49568
|
Box,
|
|
49581
49569
|
{
|
|
49582
49570
|
display: "flex",
|
|
@@ -49585,9 +49573,9 @@ function FunkitPaymentsIconLine({
|
|
|
49585
49573
|
alignItems: "center",
|
|
49586
49574
|
justifyContent: "center"
|
|
49587
49575
|
},
|
|
49588
|
-
/* @__PURE__ */
|
|
49589
|
-
/* @__PURE__ */
|
|
49590
|
-
/* @__PURE__ */
|
|
49576
|
+
/* @__PURE__ */ React305.createElement(MetaMaskPaymentIcon, { size }),
|
|
49577
|
+
/* @__PURE__ */ React305.createElement(MastercardPaymentIcon, { size }),
|
|
49578
|
+
/* @__PURE__ */ React305.createElement(CoinbaseIcon, { size })
|
|
49591
49579
|
);
|
|
49592
49580
|
}
|
|
49593
49581
|
|