@funkit/connect 9.23.1 → 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 +8 -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-4M57JDJK.js → chunk-4HCOSF4M.js} +1 -1
- package/dist/clients/chunk-7GWX2ZS4.js +69 -0
- package/dist/clients/{chunk-2LMREKV6.js → chunk-7HNGV6JU.js} +1 -1
- package/dist/clients/{chunk-H3CKQIYI.js → chunk-CEBG7XQ5.js} +2 -2
- package/dist/clients/{chunk-GCIUIPM7.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-L7PABCF2.js +54 -0
- package/dist/clients/chunk-LII3SVUH.js +230 -0
- package/dist/clients/chunk-NCUPPJ2Z.js +2382 -0
- 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 +1 -1
- package/dist/clients/fanatics.js +3 -3
- package/dist/clients/lighter.css +1 -1
- package/dist/clients/lighter.d.ts +1 -1
- package/dist/clients/lighter.js +3 -3
- package/dist/clients/mallard.d.ts +1 -1
- package/dist/clients/nado.d.ts +78 -0
- package/dist/clients/nado.js +107 -0
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +21 -11
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.d.ts +1 -1
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +4 -4
- package/dist/clients/polymarket/createPolymarketDepositConfig.d.ts +1 -1
- package/dist/clients/polymarket/index.css +21 -11
- package/dist/clients/polymarket/index.js +4 -4
- package/dist/clients/polymarket/polymarket.d.ts +2 -2
- 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/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/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 +1 -1
- package/dist/consts/funkit.d.ts +1 -0
- package/dist/domains/aave.d.ts +1 -1
- package/dist/domains/asset.d.ts +2 -2
- 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 +1 -1
- 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 +1 -1
- package/dist/hooks/useUserIpInfo.d.ts +1 -1
- package/dist/index.css +21 -11
- package/dist/index.js +536 -469
- 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/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 +4 -4
- 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 +2 -2
- package/dist/modals/CheckoutModal/Withdrawal/WithdrawalEnterAmount.d.ts +2 -2
- package/dist/modals/CheckoutModal/stepTransition.d.ts +5 -5
- package/dist/modals/CheckoutModal/stepTransition.track.d.ts +2 -2
- 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/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/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 +60 -60
- 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 +3 -3
- /package/dist/clients/{chunk-OG254LB3.js → chunk-7FIVHWNC.js} +0 -0
package/dist/index.js
CHANGED
|
@@ -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
|
|
@@ -1124,7 +1124,7 @@ import {
|
|
|
1124
1124
|
SOLANA_MAINNET_CHAIN_ID as SOLANA_MAINNET_CHAIN_ID2
|
|
1125
1125
|
} from "@funkit/chains";
|
|
1126
1126
|
import { isNotNullish as isNotNullish8, isTokenAddressEquivalent as isTokenAddressEquivalent4 } from "@funkit/utils";
|
|
1127
|
-
import
|
|
1127
|
+
import React302, {
|
|
1128
1128
|
createContext as createContext21,
|
|
1129
1129
|
useCallback as useCallback56,
|
|
1130
1130
|
useContext as useContext21,
|
|
@@ -1140,6 +1140,7 @@ var NATIVE_TOKEN = FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS;
|
|
|
1140
1140
|
var WETH_MAINNET_ADDRESS = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2";
|
|
1141
1141
|
var FUN_ORG_NAME = "Fun.xyz";
|
|
1142
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";
|
|
1143
1144
|
var PLACEHOLDER_FUNKIT_USER_INFO = {
|
|
1144
1145
|
id: "0x",
|
|
1145
1146
|
address: "0x",
|
|
@@ -1659,7 +1660,7 @@ function setFunkitConnectVersion({ version }) {
|
|
|
1659
1660
|
localStorage.setItem(storageKey, version);
|
|
1660
1661
|
}
|
|
1661
1662
|
function getCurrentSdkVersion() {
|
|
1662
|
-
return "9.23.
|
|
1663
|
+
return "9.23.2-next.0";
|
|
1663
1664
|
}
|
|
1664
1665
|
function useFingerprint() {
|
|
1665
1666
|
const fingerprint = useCallback3(() => {
|
|
@@ -5862,7 +5863,7 @@ var useFunkitPostCheckoutInternal = (checkoutId) => {
|
|
|
5862
5863
|
};
|
|
5863
5864
|
|
|
5864
5865
|
// src/providers/ModalContext.tsx
|
|
5865
|
-
import
|
|
5866
|
+
import React301, {
|
|
5866
5867
|
createContext as createContext20,
|
|
5867
5868
|
useCallback as useCallback55,
|
|
5868
5869
|
useContext as useContext20,
|
|
@@ -10069,6 +10070,8 @@ var en_default = {
|
|
|
10069
10070
|
minDepositAmountTooltip: "Minimum deposit amount required for the selected chain.",
|
|
10070
10071
|
yourDepositAddress: "Your deposit address",
|
|
10071
10072
|
termsApply: "Terms apply",
|
|
10073
|
+
terms: "Terms",
|
|
10074
|
+
help: "Help",
|
|
10072
10075
|
depositAddressOriginalRecipient: "Send any accepted token to this address",
|
|
10073
10076
|
depositAddressUniversal: "Send any accepted token to this address and it will auto swap to {{targetToken}} in your account",
|
|
10074
10077
|
groupPopularChains: "Popular",
|
|
@@ -10672,6 +10675,8 @@ var es_default = {
|
|
|
10672
10675
|
minDepositAmountTooltip: "Monto m\xEDnimo de dep\xF3sito requerido para la cadena seleccionada.",
|
|
10673
10676
|
yourDepositAddress: "Tu direcci\xF3n de dep\xF3sito",
|
|
10674
10677
|
termsApply: "Se aplican t\xE9rminos",
|
|
10678
|
+
terms: "T\xE9rminos",
|
|
10679
|
+
help: "Ayuda",
|
|
10675
10680
|
depositAddressOriginalRecipient: "Env\xEDa cualquier token aceptado a esta direcci\xF3n",
|
|
10676
10681
|
depositAddressUniversal: "Env\xEDa cualquier token aceptado a esta direcci\xF3n y se intercambiar\xE1 autom\xE1ticamente a {{targetToken}} en tu cuenta",
|
|
10677
10682
|
groupPopularChains: "Populares",
|
|
@@ -11272,6 +11277,8 @@ var fr_default = {
|
|
|
11272
11277
|
minDepositAmountTooltip: "Montant de d\xE9p\xF4t minimum requis pour la cha\xEEne s\xE9lectionn\xE9e.",
|
|
11273
11278
|
yourDepositAddress: "Votre adresse de d\xE9p\xF4t",
|
|
11274
11279
|
termsApply: "Conditions applicables",
|
|
11280
|
+
terms: "Conditions",
|
|
11281
|
+
help: "Aide",
|
|
11275
11282
|
depositAddressOriginalRecipient: "Envoyez n'importe quelle devise prise en charge \xE0 cette adresse",
|
|
11276
11283
|
depositAddressUniversal: "Envoyez n'importe quelle devise prise en charge \xE0 cette adresse et elle sera automatiquement \xE9chang\xE9e contre {{targetToken}} dans votre compte",
|
|
11277
11284
|
groupPopularChains: "Populaires",
|
|
@@ -11872,6 +11879,8 @@ var ja_default = {
|
|
|
11872
11879
|
minDepositAmountTooltip: "\u9078\u629E\u3057\u305F\u30C1\u30A7\u30FC\u30F3\u306B\u5FC5\u8981\u306A\u6700\u5C0F\u5165\u91D1\u984D\u3002",
|
|
11873
11880
|
yourDepositAddress: "\u3042\u306A\u305F\u306E\u5165\u91D1\u30A2\u30C9\u30EC\u30B9",
|
|
11874
11881
|
termsApply: "\u5229\u7528\u898F\u7D04\u304C\u9069\u7528\u3055\u308C\u307E\u3059",
|
|
11882
|
+
terms: "\u5229\u7528\u898F\u7D04",
|
|
11883
|
+
help: "\u30D8\u30EB\u30D7",
|
|
11875
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",
|
|
11876
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",
|
|
11877
11886
|
groupPopularChains: "\u4EBA\u6C17",
|
|
@@ -12472,6 +12481,8 @@ var ko_default = {
|
|
|
12472
12481
|
minDepositAmountTooltip: "\uC120\uD0DD\uD55C \uCCB4\uC778\uC5D0 \uD544\uC694\uD55C \uCD5C\uC18C \uC785\uAE08\uC561\uC785\uB2C8\uB2E4.",
|
|
12473
12482
|
yourDepositAddress: "\uC785\uAE08 \uC8FC\uC18C",
|
|
12474
12483
|
termsApply: "\uC57D\uAD00\uC774 \uC801\uC6A9\uB429\uB2C8\uB2E4",
|
|
12484
|
+
terms: "\uC57D\uAD00",
|
|
12485
|
+
help: "\uB3C4\uC6C0\uB9D0",
|
|
12475
12486
|
depositAddressOriginalRecipient: "\uC774 \uC8FC\uC18C\uB85C \uC9C0\uC6D0\uB418\uB294 \uD1A0\uD070\uC744 \uBCF4\uB0B4\uC138\uC694",
|
|
12476
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",
|
|
12477
12488
|
groupPopularChains: "\uC778\uAE30",
|
|
@@ -13072,6 +13083,8 @@ var ru_default = {
|
|
|
13072
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.",
|
|
13073
13084
|
yourDepositAddress: "\u0412\u0430\u0448 \u0430\u0434\u0440\u0435\u0441 \u0434\u0435\u043F\u043E\u0437\u0438\u0442\u0430",
|
|
13074
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",
|
|
13075
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",
|
|
13076
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",
|
|
13077
13090
|
groupPopularChains: "\u041F\u043E\u043F\u0443\u043B\u044F\u0440\u043D\u044B\u0435",
|
|
@@ -13672,6 +13685,8 @@ var tr_default = {
|
|
|
13672
13685
|
minDepositAmountTooltip: "Se\xE7ilen a\u011F i\xE7in gereken minimum yat\u0131r\u0131m tutar\u0131.",
|
|
13673
13686
|
yourDepositAddress: "Yat\u0131r\u0131m adresiniz",
|
|
13674
13687
|
termsApply: "\u015Eartlar ge\xE7erlidir",
|
|
13688
|
+
terms: "\u015Eartlar",
|
|
13689
|
+
help: "Yard\u0131m",
|
|
13675
13690
|
depositAddressOriginalRecipient: "Bu adrese kabul edilen herhangi bir token g\xF6nderin",
|
|
13676
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",
|
|
13677
13692
|
groupPopularChains: "Pop\xFCler",
|
|
@@ -14272,6 +14287,8 @@ var zh_default = {
|
|
|
14272
14287
|
minDepositAmountTooltip: "\u6240\u9009\u94FE\u6240\u9700\u7684\u6700\u4F4E\u5B58\u6B3E\u91D1\u989D\u3002",
|
|
14273
14288
|
yourDepositAddress: "\u60A8\u7684\u5B58\u6B3E\u5730\u5740",
|
|
14274
14289
|
termsApply: "\u6761\u6B3E\u9002\u7528",
|
|
14290
|
+
terms: "\u6761\u6B3E",
|
|
14291
|
+
help: "\u5E2E\u52A9",
|
|
14275
14292
|
depositAddressOriginalRecipient: "\u5411\u6B64\u5730\u5740\u53D1\u9001\u4EFB\u4F55\u652F\u6301\u7684\u4EE3\u5E01",
|
|
14276
14293
|
depositAddressUniversal: "\u5411\u6B64\u5730\u5740\u53D1\u9001\u4EFB\u4F55\u652F\u6301\u7684\u4EE3\u5E01\uFF0C\u4F1A\u81EA\u52A8\u5151\u6362\u4E3A {{targetToken}}",
|
|
14277
14294
|
groupPopularChains: "\u70ED\u95E8",
|
|
@@ -28078,7 +28095,7 @@ function WithdrawalModal({
|
|
|
28078
28095
|
}
|
|
28079
28096
|
|
|
28080
28097
|
// src/modals/AccountModal/AccountModal.tsx
|
|
28081
|
-
import
|
|
28098
|
+
import React279 from "react";
|
|
28082
28099
|
|
|
28083
28100
|
// src/modals/ProfileDetails/ActivityTraversalContext.tsx
|
|
28084
28101
|
import React147, {
|
|
@@ -28153,10 +28170,10 @@ var useActivityTraversal = () => {
|
|
|
28153
28170
|
};
|
|
28154
28171
|
|
|
28155
28172
|
// src/modals/ProfileDetails/ProfileDetails.tsx
|
|
28156
|
-
import
|
|
28173
|
+
import React278, { useCallback as useCallback51, useState as useState79 } from "react";
|
|
28157
28174
|
|
|
28158
28175
|
// src/components/ModalHeightAnimationLayer/FunCheckoutModalHeightAnimationWrapper.tsx
|
|
28159
|
-
import
|
|
28176
|
+
import React265 from "react";
|
|
28160
28177
|
|
|
28161
28178
|
// src/modals/CheckoutModal/stepTransition.ts
|
|
28162
28179
|
import {
|
|
@@ -41666,18 +41683,58 @@ function trackEventForFormOfPayment(fop, checkoutItem, eventName, extras) {
|
|
|
41666
41683
|
|
|
41667
41684
|
// src/modals/CheckoutModal/TransferToken/TransferToken.tsx
|
|
41668
41685
|
import { motion as motion17, useAnimationControls as useAnimationControls4 } from "motion/react";
|
|
41669
|
-
import
|
|
41686
|
+
import React258, { useRef as useRef34, useState as useState73 } from "react";
|
|
41670
41687
|
import { createPortal as createPortal23 } from "react-dom";
|
|
41671
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
|
+
|
|
41672
41729
|
// src/components/TransferTokenDetails/TransferTokenDetails.tsx
|
|
41673
41730
|
import { formatNumberAndStringify as formatNumberAndStringify2 } from "@funkit/utils";
|
|
41674
|
-
import
|
|
41731
|
+
import React257 from "react";
|
|
41675
41732
|
import { Trans as Trans18 } from "react-i18next";
|
|
41676
41733
|
|
|
41677
41734
|
// src/components/Icons/New/FileIcon.tsx
|
|
41678
|
-
import
|
|
41735
|
+
import React252 from "react";
|
|
41679
41736
|
var FileIcon = () => {
|
|
41680
|
-
return /* @__PURE__ */
|
|
41737
|
+
return /* @__PURE__ */ React252.createElement(
|
|
41681
41738
|
"svg",
|
|
41682
41739
|
{
|
|
41683
41740
|
width: "12",
|
|
@@ -41686,7 +41743,7 @@ var FileIcon = () => {
|
|
|
41686
41743
|
fill: "none",
|
|
41687
41744
|
xmlns: "http://www.w3.org/2000/svg"
|
|
41688
41745
|
},
|
|
41689
|
-
/* @__PURE__ */
|
|
41746
|
+
/* @__PURE__ */ React252.createElement(
|
|
41690
41747
|
"path",
|
|
41691
41748
|
{
|
|
41692
41749
|
fillRule: "evenodd",
|
|
@@ -41699,9 +41756,9 @@ var FileIcon = () => {
|
|
|
41699
41756
|
};
|
|
41700
41757
|
|
|
41701
41758
|
// src/components/Icons/New/SpeedometerIcon.tsx
|
|
41702
|
-
import
|
|
41759
|
+
import React253 from "react";
|
|
41703
41760
|
var SpeedometerIcon = () => {
|
|
41704
|
-
return /* @__PURE__ */
|
|
41761
|
+
return /* @__PURE__ */ React253.createElement(
|
|
41705
41762
|
"svg",
|
|
41706
41763
|
{
|
|
41707
41764
|
width: "12",
|
|
@@ -41710,7 +41767,7 @@ var SpeedometerIcon = () => {
|
|
|
41710
41767
|
fill: "none",
|
|
41711
41768
|
xmlns: "http://www.w3.org/2000/svg"
|
|
41712
41769
|
},
|
|
41713
|
-
/* @__PURE__ */
|
|
41770
|
+
/* @__PURE__ */ React253.createElement(
|
|
41714
41771
|
"path",
|
|
41715
41772
|
{
|
|
41716
41773
|
fillRule: "evenodd",
|
|
@@ -41724,13 +41781,13 @@ var SpeedometerIcon = () => {
|
|
|
41724
41781
|
|
|
41725
41782
|
// src/components/FunFeatureList/FunFeatureList.tsx
|
|
41726
41783
|
import { motion as motion16, useAnimationControls as useAnimationControls3 } from "motion/react";
|
|
41727
|
-
import
|
|
41784
|
+
import React255, { useState as useState72 } from "react";
|
|
41728
41785
|
|
|
41729
41786
|
// src/components/FunFeatureList/FunFeatureList.css.ts
|
|
41730
41787
|
var detailsButton = "_1045qr71 _1rsrm2fpy _1rsrm2frz _1rsrm2ftw _1rsrm2fnt _1rsrm2fx5 _1rsrm2fa _1rsrm2f4 _1rsrm2f86 _1rsrm2fu";
|
|
41731
41788
|
|
|
41732
41789
|
// src/components/FunFeatureList/FunFeatureListItem.tsx
|
|
41733
|
-
import
|
|
41790
|
+
import React254 from "react";
|
|
41734
41791
|
var FunFeatureListItem = ({
|
|
41735
41792
|
text,
|
|
41736
41793
|
tooltip,
|
|
@@ -41741,7 +41798,7 @@ var FunFeatureListItem = ({
|
|
|
41741
41798
|
}) => {
|
|
41742
41799
|
const valueLabel = value && (prefix ? ` ${prefix}${value}` : ` ${value}`);
|
|
41743
41800
|
const isMultiline = Array.isArray(value) && value.length > 0;
|
|
41744
|
-
const TooltipWrapperElement = /* @__PURE__ */
|
|
41801
|
+
const TooltipWrapperElement = /* @__PURE__ */ React254.createElement(
|
|
41745
41802
|
Box,
|
|
41746
41803
|
{
|
|
41747
41804
|
marginLeft: "4",
|
|
@@ -41757,7 +41814,7 @@ var FunFeatureListItem = ({
|
|
|
41757
41814
|
},
|
|
41758
41815
|
tooltip
|
|
41759
41816
|
);
|
|
41760
|
-
return /* @__PURE__ */
|
|
41817
|
+
return /* @__PURE__ */ React254.createElement(Box, { display: "flex", gap: "6", alignItems: "center", paddingY: "2", ...boxProps }, /* @__PURE__ */ React254.createElement(
|
|
41761
41818
|
Box,
|
|
41762
41819
|
{
|
|
41763
41820
|
color: "secondaryText",
|
|
@@ -41766,7 +41823,7 @@ var FunFeatureListItem = ({
|
|
|
41766
41823
|
justifyContent: "center"
|
|
41767
41824
|
},
|
|
41768
41825
|
icon
|
|
41769
|
-
), /* @__PURE__ */
|
|
41826
|
+
), /* @__PURE__ */ React254.createElement(
|
|
41770
41827
|
Box,
|
|
41771
41828
|
{
|
|
41772
41829
|
display: "flex",
|
|
@@ -41775,8 +41832,8 @@ var FunFeatureListItem = ({
|
|
|
41775
41832
|
gap: "6"
|
|
41776
41833
|
}
|
|
41777
41834
|
},
|
|
41778
|
-
isMultiline ? /* @__PURE__ */
|
|
41779
|
-
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(
|
|
41780
41837
|
Text,
|
|
41781
41838
|
{
|
|
41782
41839
|
size: "funFeatureListItemFontSize",
|
|
@@ -41784,7 +41841,7 @@ var FunFeatureListItem = ({
|
|
|
41784
41841
|
key: index
|
|
41785
41842
|
},
|
|
41786
41843
|
v
|
|
41787
|
-
))) : /* @__PURE__ */
|
|
41844
|
+
))) : /* @__PURE__ */ React254.createElement(
|
|
41788
41845
|
Text,
|
|
41789
41846
|
{
|
|
41790
41847
|
size: "funFeatureListItemFontSize",
|
|
@@ -41821,7 +41878,7 @@ var FunFeatureList = ({
|
|
|
41821
41878
|
onExpanded?.();
|
|
41822
41879
|
}
|
|
41823
41880
|
};
|
|
41824
|
-
return /* @__PURE__ */
|
|
41881
|
+
return /* @__PURE__ */ React255.createElement(
|
|
41825
41882
|
Box,
|
|
41826
41883
|
{
|
|
41827
41884
|
...withBackgroundContainer && {
|
|
@@ -41838,7 +41895,7 @@ var FunFeatureList = ({
|
|
|
41838
41895
|
display: "flex",
|
|
41839
41896
|
flexDirection: "column"
|
|
41840
41897
|
},
|
|
41841
|
-
isExpandable ? /* @__PURE__ */
|
|
41898
|
+
isExpandable ? /* @__PURE__ */ React255.createElement(React255.Fragment, null, /* @__PURE__ */ React255.createElement(
|
|
41842
41899
|
Box,
|
|
41843
41900
|
{
|
|
41844
41901
|
as: "button",
|
|
@@ -41854,9 +41911,9 @@ var FunFeatureList = ({
|
|
|
41854
41911
|
disabled,
|
|
41855
41912
|
onClick: handleExpandToggle
|
|
41856
41913
|
},
|
|
41857
|
-
items[0] && /* @__PURE__ */
|
|
41858
|
-
/* @__PURE__ */
|
|
41859
|
-
), /* @__PURE__ */
|
|
41914
|
+
items[0] && /* @__PURE__ */ React255.createElement(FunFeatureListItem, { ...items[0] }),
|
|
41915
|
+
/* @__PURE__ */ React255.createElement(AnimatedCaretDownIcon, { expanded: isDisplayed })
|
|
41916
|
+
), /* @__PURE__ */ React255.createElement(
|
|
41860
41917
|
motion16.div,
|
|
41861
41918
|
{
|
|
41862
41919
|
initial: "collapsed",
|
|
@@ -41867,7 +41924,7 @@ var FunFeatureList = ({
|
|
|
41867
41924
|
expanded: { height: "auto", opacity: 1, overflow: "visible" }
|
|
41868
41925
|
}
|
|
41869
41926
|
},
|
|
41870
|
-
/* @__PURE__ */
|
|
41927
|
+
/* @__PURE__ */ React255.createElement(
|
|
41871
41928
|
Box,
|
|
41872
41929
|
{
|
|
41873
41930
|
paddingX: "12",
|
|
@@ -41876,7 +41933,7 @@ var FunFeatureList = ({
|
|
|
41876
41933
|
gap: "6",
|
|
41877
41934
|
paddingBottom: "8"
|
|
41878
41935
|
},
|
|
41879
|
-
items.slice(1).map((item, index) => /* @__PURE__ */
|
|
41936
|
+
items.slice(1).map((item, index) => /* @__PURE__ */ React255.createElement(
|
|
41880
41937
|
FunFeatureListItem,
|
|
41881
41938
|
{
|
|
41882
41939
|
key: index,
|
|
@@ -41888,7 +41945,7 @@ var FunFeatureList = ({
|
|
|
41888
41945
|
}
|
|
41889
41946
|
))
|
|
41890
41947
|
)
|
|
41891
|
-
)) : /* @__PURE__ */
|
|
41948
|
+
)) : /* @__PURE__ */ React255.createElement(
|
|
41892
41949
|
Box,
|
|
41893
41950
|
{
|
|
41894
41951
|
display: "flex",
|
|
@@ -41899,7 +41956,7 @@ var FunFeatureList = ({
|
|
|
41899
41956
|
paddingY: "8"
|
|
41900
41957
|
}
|
|
41901
41958
|
},
|
|
41902
|
-
items.map((item, index) => /* @__PURE__ */
|
|
41959
|
+
items.map((item, index) => /* @__PURE__ */ React255.createElement(
|
|
41903
41960
|
Box,
|
|
41904
41961
|
{
|
|
41905
41962
|
key: index,
|
|
@@ -41910,16 +41967,16 @@ var FunFeatureList = ({
|
|
|
41910
41967
|
background: "funFeatureListBackgroundBase"
|
|
41911
41968
|
}
|
|
41912
41969
|
},
|
|
41913
|
-
/* @__PURE__ */
|
|
41970
|
+
/* @__PURE__ */ React255.createElement(FunFeatureListItem, { ...item })
|
|
41914
41971
|
))
|
|
41915
41972
|
)
|
|
41916
41973
|
);
|
|
41917
41974
|
};
|
|
41918
41975
|
|
|
41919
41976
|
// src/components/Icons/New/PercentageIcon.tsx
|
|
41920
|
-
import
|
|
41977
|
+
import React256 from "react";
|
|
41921
41978
|
var PercentageIcon = () => {
|
|
41922
|
-
return /* @__PURE__ */
|
|
41979
|
+
return /* @__PURE__ */ React256.createElement(
|
|
41923
41980
|
"svg",
|
|
41924
41981
|
{
|
|
41925
41982
|
width: "12",
|
|
@@ -41928,7 +41985,7 @@ var PercentageIcon = () => {
|
|
|
41928
41985
|
fill: "none",
|
|
41929
41986
|
xmlns: "http://www.w3.org/2000/svg"
|
|
41930
41987
|
},
|
|
41931
|
-
/* @__PURE__ */
|
|
41988
|
+
/* @__PURE__ */ React256.createElement(
|
|
41932
41989
|
"path",
|
|
41933
41990
|
{
|
|
41934
41991
|
fillRule: "evenodd",
|
|
@@ -41946,7 +42003,7 @@ var FunLinkButtonComponent3 = ({
|
|
|
41946
42003
|
href,
|
|
41947
42004
|
size = "funFeatureListItemFontSize"
|
|
41948
42005
|
}) => {
|
|
41949
|
-
return /* @__PURE__ */
|
|
42006
|
+
return /* @__PURE__ */ React257.createElement(FunLinkButton, { href, inline: true, text: children, size });
|
|
41950
42007
|
};
|
|
41951
42008
|
var TransferTokenDetails = ({
|
|
41952
42009
|
estProcessingTime,
|
|
@@ -41964,7 +42021,7 @@ var TransferTokenDetails = ({
|
|
|
41964
42021
|
!!estProcessingTime
|
|
41965
42022
|
);
|
|
41966
42023
|
const gasFees = void 0;
|
|
41967
|
-
return /* @__PURE__ */
|
|
42024
|
+
return /* @__PURE__ */ React257.createElement(
|
|
41968
42025
|
FunFeatureList,
|
|
41969
42026
|
{
|
|
41970
42027
|
isExpandable: true,
|
|
@@ -41976,17 +42033,17 @@ var TransferTokenDetails = ({
|
|
|
41976
42033
|
text: `${estPriceImpact.label}:`,
|
|
41977
42034
|
prefix: estPriceImpact.value > 0 ? "< " : "",
|
|
41978
42035
|
value: `${formatNumberAndStringify2(estPriceImpact.value, void 0, { minimumFractionDigits: 2, maximumFractionDigits: 2 })}%`,
|
|
41979
|
-
icon: /* @__PURE__ */
|
|
41980
|
-
tooltip: /* @__PURE__ */
|
|
42036
|
+
icon: /* @__PURE__ */ React257.createElement(DollarIcon, null),
|
|
42037
|
+
tooltip: /* @__PURE__ */ React257.createElement(
|
|
41981
42038
|
FunTooltip,
|
|
41982
42039
|
{
|
|
41983
|
-
content: /* @__PURE__ */
|
|
42040
|
+
content: /* @__PURE__ */ React257.createElement(
|
|
41984
42041
|
Trans18,
|
|
41985
42042
|
{
|
|
41986
42043
|
t,
|
|
41987
42044
|
i18nKey: "fees.priceImpactTooltip",
|
|
41988
42045
|
components: {
|
|
41989
|
-
LearnMoreLink: /* @__PURE__ */
|
|
42046
|
+
LearnMoreLink: /* @__PURE__ */ React257.createElement(
|
|
41990
42047
|
FunLinkButtonComponent3,
|
|
41991
42048
|
{
|
|
41992
42049
|
href: "https://intercom.help/funxyz/en/articles/10925883-order-execution-guide",
|
|
@@ -42005,17 +42062,17 @@ var TransferTokenDetails = ({
|
|
|
42005
42062
|
text: `${maxSlippage.label}:`,
|
|
42006
42063
|
prefix: maxSlippage.value > 0 ? `${t("common.auto")} \u2022 ` : "",
|
|
42007
42064
|
value: `${formatNumberAndStringify2(maxSlippage.value, void 0, { minimumFractionDigits: 2, maximumFractionDigits: 2 })}%`,
|
|
42008
|
-
icon: /* @__PURE__ */
|
|
42009
|
-
tooltip: /* @__PURE__ */
|
|
42065
|
+
icon: /* @__PURE__ */ React257.createElement(PercentageIcon, null),
|
|
42066
|
+
tooltip: /* @__PURE__ */ React257.createElement(
|
|
42010
42067
|
FunTooltip,
|
|
42011
42068
|
{
|
|
42012
|
-
content: /* @__PURE__ */
|
|
42069
|
+
content: /* @__PURE__ */ React257.createElement(
|
|
42013
42070
|
Trans18,
|
|
42014
42071
|
{
|
|
42015
42072
|
t,
|
|
42016
42073
|
i18nKey: "fees.slippageTooltipFull",
|
|
42017
42074
|
components: {
|
|
42018
|
-
LearnMoreLink: /* @__PURE__ */
|
|
42075
|
+
LearnMoreLink: /* @__PURE__ */ React257.createElement(
|
|
42019
42076
|
FunLinkButtonComponent3,
|
|
42020
42077
|
{
|
|
42021
42078
|
href: "https://intercom.help/funxyz/en/articles/10925883-order-execution-guide",
|
|
@@ -42034,26 +42091,26 @@ var TransferTokenDetails = ({
|
|
|
42034
42091
|
text: `${t("common.estimatedGas")}:`,
|
|
42035
42092
|
prefix: "~",
|
|
42036
42093
|
value: `$${gasFees}`,
|
|
42037
|
-
icon: /* @__PURE__ */
|
|
42094
|
+
icon: /* @__PURE__ */ React257.createElement(DollarIcon, null)
|
|
42038
42095
|
}
|
|
42039
42096
|
] : [],
|
|
42040
42097
|
{
|
|
42041
42098
|
text: t("common.processingTime"),
|
|
42042
42099
|
value: estimatedTimeText,
|
|
42043
|
-
icon: /* @__PURE__ */
|
|
42100
|
+
icon: /* @__PURE__ */ React257.createElement(SpeedometerIcon, null)
|
|
42044
42101
|
},
|
|
42045
42102
|
{
|
|
42046
|
-
text: /* @__PURE__ */
|
|
42103
|
+
text: /* @__PURE__ */ React257.createElement(
|
|
42047
42104
|
Trans18,
|
|
42048
42105
|
{
|
|
42049
42106
|
t,
|
|
42050
42107
|
i18nKey: "common.haveQuestionsGetHelp",
|
|
42051
42108
|
components: {
|
|
42052
|
-
GetHelpLink: /* @__PURE__ */
|
|
42109
|
+
GetHelpLink: /* @__PURE__ */ React257.createElement(FunLinkButtonComponent3, { href: "https://intercom.help/funxyz/en/articles/10003876-transfer-crypto-guide-faqs" })
|
|
42053
42110
|
}
|
|
42054
42111
|
}
|
|
42055
42112
|
),
|
|
42056
|
-
icon: /* @__PURE__ */
|
|
42113
|
+
icon: /* @__PURE__ */ React257.createElement(FileIcon, null)
|
|
42057
42114
|
}
|
|
42058
42115
|
]
|
|
42059
42116
|
}
|
|
@@ -42455,6 +42512,7 @@ function TransferToken({
|
|
|
42455
42512
|
toChainId: udaParams?.targetChain,
|
|
42456
42513
|
toTokenAddress: udaParams?.targetAsset
|
|
42457
42514
|
});
|
|
42515
|
+
const isFreeUsdcBannerEnabled = useDynamicConfig("freeusdcbanner").enabled;
|
|
42458
42516
|
const toggleQrHover = async () => {
|
|
42459
42517
|
if (qrCodeHover) {
|
|
42460
42518
|
controls.start("shrinkBack");
|
|
@@ -42472,6 +42530,7 @@ function TransferToken({
|
|
|
42472
42530
|
);
|
|
42473
42531
|
const bottomSectionRef = useBottomSectionRef();
|
|
42474
42532
|
const { targetAssetTicker, targetChain, iconSrc } = checkoutConfig ?? {};
|
|
42533
|
+
const hideFeeBreakdown = isFreeUsdcBannerEnabled && !!targetAssetTicker && ["pUSD", "USDC", "USDCe", "USDC.e"].includes(targetAssetTicker);
|
|
42475
42534
|
const displayYouPayYouReceive = uiCustomizations.transferCryptoScreen.showYouSendYouReceive && typeof targetAssetTicker === "string" && typeof targetChain === "string" && typeof selectedChainId === "number" && typeof selectedToken === "string";
|
|
42476
42535
|
const chainTagComponent = (value) => {
|
|
42477
42536
|
if (!minTransferUsdPerChain[value]) {
|
|
@@ -42486,7 +42545,7 @@ function TransferToken({
|
|
|
42486
42545
|
dynamicRoutingId
|
|
42487
42546
|
}) ?? 0;
|
|
42488
42547
|
}
|
|
42489
|
-
return /* @__PURE__ */
|
|
42548
|
+
return /* @__PURE__ */ React258.createElement(
|
|
42490
42549
|
Text,
|
|
42491
42550
|
{
|
|
42492
42551
|
size: "12",
|
|
@@ -42509,7 +42568,7 @@ function TransferToken({
|
|
|
42509
42568
|
}
|
|
42510
42569
|
return (
|
|
42511
42570
|
// This ID is used in the DialogContent css to set the height of the modal
|
|
42512
|
-
/* @__PURE__ */
|
|
42571
|
+
/* @__PURE__ */ React258.createElement(React258.Fragment, null, /* @__PURE__ */ React258.createElement(Box, { id: "token-transfer-page" }, uiCustomizations.transferCryptoScreen.customTopComponent?.(), /* @__PURE__ */ React258.createElement(
|
|
42513
42572
|
Box,
|
|
42514
42573
|
{
|
|
42515
42574
|
display: "flex",
|
|
@@ -42518,17 +42577,17 @@ function TransferToken({
|
|
|
42518
42577
|
justifyContent: "center",
|
|
42519
42578
|
gap: "18"
|
|
42520
42579
|
},
|
|
42521
|
-
isSourceNavWidgetEnabled && /* @__PURE__ */
|
|
42580
|
+
isSourceNavWidgetEnabled && /* @__PURE__ */ React258.createElement(Box, { display: "flex", flexDirection: "column", width: "full" }, /* @__PURE__ */ React258.createElement(
|
|
42522
42581
|
SourcePaymentMethodItem,
|
|
42523
42582
|
{
|
|
42524
42583
|
type: PaymentMethod.TOKEN_TRANSFER,
|
|
42525
42584
|
keyText: textCustomizations.transferTokens,
|
|
42526
42585
|
disclaimerText: t("transferToken.noLimit"),
|
|
42527
|
-
keyIcon: /* @__PURE__ */
|
|
42586
|
+
keyIcon: /* @__PURE__ */ React258.createElement(CryptoTransferQRIcon, null),
|
|
42528
42587
|
onClick: () => onNext({})
|
|
42529
42588
|
}
|
|
42530
42589
|
)),
|
|
42531
|
-
/* @__PURE__ */
|
|
42590
|
+
/* @__PURE__ */ React258.createElement(
|
|
42532
42591
|
TokenAndChainDropdown,
|
|
42533
42592
|
{
|
|
42534
42593
|
isLoading: isLoadingDepositAddress,
|
|
@@ -42562,7 +42621,7 @@ function TransferToken({
|
|
|
42562
42621
|
selectedToken,
|
|
42563
42622
|
selectedChainId,
|
|
42564
42623
|
chainTagComponent,
|
|
42565
|
-
chainLabelAddon: !!minTransferUsd && /* @__PURE__ */
|
|
42624
|
+
chainLabelAddon: !!minTransferUsd && /* @__PURE__ */ React258.createElement(
|
|
42566
42625
|
Box,
|
|
42567
42626
|
{
|
|
42568
42627
|
display: "flex",
|
|
@@ -42572,15 +42631,15 @@ function TransferToken({
|
|
|
42572
42631
|
fontSize: "12",
|
|
42573
42632
|
height: "14"
|
|
42574
42633
|
},
|
|
42575
|
-
/* @__PURE__ */
|
|
42576
|
-
/* @__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(
|
|
42577
42636
|
AnimatedDollarValue,
|
|
42578
42637
|
{
|
|
42579
42638
|
value: minTransferUsd,
|
|
42580
42639
|
dynamicMinFractionDigits: true
|
|
42581
42640
|
}
|
|
42582
42641
|
)),
|
|
42583
|
-
/* @__PURE__ */
|
|
42642
|
+
/* @__PURE__ */ React258.createElement(
|
|
42584
42643
|
FunTooltip,
|
|
42585
42644
|
{
|
|
42586
42645
|
content: t("transferToken.minDepositAmountTooltip"),
|
|
@@ -42594,7 +42653,7 @@ function TransferToken({
|
|
|
42594
42653
|
chainIdSortOrder
|
|
42595
42654
|
}
|
|
42596
42655
|
),
|
|
42597
|
-
/* @__PURE__ */
|
|
42656
|
+
/* @__PURE__ */ React258.createElement(
|
|
42598
42657
|
Box,
|
|
42599
42658
|
{
|
|
42600
42659
|
display: "flex",
|
|
@@ -42604,7 +42663,7 @@ function TransferToken({
|
|
|
42604
42663
|
justifyContent: "center",
|
|
42605
42664
|
padding: "20"
|
|
42606
42665
|
},
|
|
42607
|
-
isLoadingDepositAddress ? /* @__PURE__ */
|
|
42666
|
+
isLoadingDepositAddress ? /* @__PURE__ */ React258.createElement(QRCodeSkeletonLoader_default, { diagonalDimension: 13, gapBetweenDots: "4" }) : /* @__PURE__ */ React258.createElement(
|
|
42608
42667
|
motion17.div,
|
|
42609
42668
|
{
|
|
42610
42669
|
onHoverStart: toggleQrHover,
|
|
@@ -42624,7 +42683,7 @@ function TransferToken({
|
|
|
42624
42683
|
},
|
|
42625
42684
|
animate: controls
|
|
42626
42685
|
},
|
|
42627
|
-
/* @__PURE__ */
|
|
42686
|
+
/* @__PURE__ */ React258.createElement(
|
|
42628
42687
|
QRCode,
|
|
42629
42688
|
{
|
|
42630
42689
|
withShadow: true,
|
|
@@ -42638,7 +42697,7 @@ function TransferToken({
|
|
|
42638
42697
|
}
|
|
42639
42698
|
)
|
|
42640
42699
|
),
|
|
42641
|
-
displayYouPayYouReceive && /* @__PURE__ */
|
|
42700
|
+
displayYouPayYouReceive && /* @__PURE__ */ React258.createElement(Box, { display: "flex", justifyContent: "center", alignItems: "center" }, /* @__PURE__ */ React258.createElement(
|
|
42642
42701
|
YouPayYouReceive,
|
|
42643
42702
|
{
|
|
42644
42703
|
payLabel: textCustomizations.confirmationScreen?.payAmountLabel,
|
|
@@ -42653,7 +42712,7 @@ function TransferToken({
|
|
|
42653
42712
|
}
|
|
42654
42713
|
))
|
|
42655
42714
|
),
|
|
42656
|
-
/* @__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(
|
|
42657
42716
|
Box,
|
|
42658
42717
|
{
|
|
42659
42718
|
display: "flex",
|
|
@@ -42661,7 +42720,7 @@ function TransferToken({
|
|
|
42661
42720
|
justifyContent: "space-between",
|
|
42662
42721
|
ref: disclaimerTextWrapperRef
|
|
42663
42722
|
},
|
|
42664
|
-
/* @__PURE__ */
|
|
42723
|
+
/* @__PURE__ */ React258.createElement(Box, { display: "flex", alignItems: "center", gap: "4" }, /* @__PURE__ */ React258.createElement(
|
|
42665
42724
|
Text,
|
|
42666
42725
|
{
|
|
42667
42726
|
size: "inputLabel",
|
|
@@ -42669,7 +42728,7 @@ function TransferToken({
|
|
|
42669
42728
|
color: "inputLabel"
|
|
42670
42729
|
},
|
|
42671
42730
|
t("transferToken.yourDepositAddress")
|
|
42672
|
-
), /* @__PURE__ */
|
|
42731
|
+
), /* @__PURE__ */ React258.createElement(
|
|
42673
42732
|
FunTooltip,
|
|
42674
42733
|
{
|
|
42675
42734
|
content: depositAddressTooltip,
|
|
@@ -42677,7 +42736,7 @@ function TransferToken({
|
|
|
42677
42736
|
enableDynamicPositioning: true
|
|
42678
42737
|
}
|
|
42679
42738
|
)),
|
|
42680
|
-
/* @__PURE__ */
|
|
42739
|
+
!hideFeeBreakdown && /* @__PURE__ */ React258.createElement(
|
|
42681
42740
|
FunLinkButton,
|
|
42682
42741
|
{
|
|
42683
42742
|
text: t("transferToken.termsApply"),
|
|
@@ -42686,13 +42745,21 @@ function TransferToken({
|
|
|
42686
42745
|
variant: "labelLink"
|
|
42687
42746
|
}
|
|
42688
42747
|
)
|
|
42689
|
-
), isLoadingDepositAddress ? /* @__PURE__ */
|
|
42748
|
+
), isLoadingDepositAddress ? /* @__PURE__ */ React258.createElement(FunSkeletonBlock, { height: "66px", width: "full" }) : /* @__PURE__ */ React258.createElement(
|
|
42690
42749
|
CopyInputDisplayedAddress,
|
|
42691
42750
|
{
|
|
42692
42751
|
address: depositAddress,
|
|
42693
42752
|
onAddressCopied: trackAddressCopied
|
|
42694
42753
|
}
|
|
42695
|
-
)), 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(
|
|
42696
42763
|
TransferTokenDetails,
|
|
42697
42764
|
{
|
|
42698
42765
|
estProcessingTime: blockchain === "bitcoin" ? 30 * 60 * 1e3 : void 0,
|
|
@@ -42702,24 +42769,24 @@ function TransferToken({
|
|
|
42702
42769
|
onExpanded: () => trackImpactExpanded(estPriceImpact?.value)
|
|
42703
42770
|
}
|
|
42704
42771
|
))
|
|
42705
|
-
)), bottomSectionRef && createPortal23(/* @__PURE__ */
|
|
42772
|
+
)), bottomSectionRef && createPortal23(/* @__PURE__ */ React258.createElement(Dialog.BottomBar, null), bottomSectionRef))
|
|
42706
42773
|
);
|
|
42707
42774
|
}
|
|
42708
42775
|
|
|
42709
42776
|
// src/modals/CheckoutModal/VirtualFiatAccount/FiatAccountDetail.tsx
|
|
42710
|
-
import
|
|
42777
|
+
import React263, { useState as useState74 } from "react";
|
|
42711
42778
|
|
|
42712
42779
|
// src/components/VirtualFiatAccount/AccountDetailsTab/AccountDetailsTab.tsx
|
|
42713
|
-
import
|
|
42780
|
+
import React262 from "react";
|
|
42714
42781
|
|
|
42715
42782
|
// src/components/FunInputButton/FunInputButton.tsx
|
|
42716
|
-
import
|
|
42783
|
+
import React261 from "react";
|
|
42717
42784
|
|
|
42718
42785
|
// src/components/Icons/CopyDoubleRoundedSquareIcon.tsx
|
|
42719
|
-
import
|
|
42786
|
+
import React259 from "react";
|
|
42720
42787
|
var CopyDoubleRoundedSquareIcon = ({
|
|
42721
42788
|
size = 16
|
|
42722
|
-
}) => /* @__PURE__ */
|
|
42789
|
+
}) => /* @__PURE__ */ React259.createElement(
|
|
42723
42790
|
"svg",
|
|
42724
42791
|
{
|
|
42725
42792
|
width: size,
|
|
@@ -42728,7 +42795,7 @@ var CopyDoubleRoundedSquareIcon = ({
|
|
|
42728
42795
|
fill: "none",
|
|
42729
42796
|
xmlns: "http://www.w3.org/2000/svg"
|
|
42730
42797
|
},
|
|
42731
|
-
/* @__PURE__ */
|
|
42798
|
+
/* @__PURE__ */ React259.createElement(
|
|
42732
42799
|
"path",
|
|
42733
42800
|
{
|
|
42734
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",
|
|
@@ -42741,9 +42808,9 @@ var CopyDoubleRoundedSquareIcon = ({
|
|
|
42741
42808
|
);
|
|
42742
42809
|
|
|
42743
42810
|
// src/components/Icons/New/CheckCircleIcon.tsx
|
|
42744
|
-
import
|
|
42811
|
+
import React260 from "react";
|
|
42745
42812
|
var CheckCircleIcon = () => {
|
|
42746
|
-
return /* @__PURE__ */
|
|
42813
|
+
return /* @__PURE__ */ React260.createElement(
|
|
42747
42814
|
"svg",
|
|
42748
42815
|
{
|
|
42749
42816
|
width: "16",
|
|
@@ -42752,7 +42819,7 @@ var CheckCircleIcon = () => {
|
|
|
42752
42819
|
fill: "none",
|
|
42753
42820
|
xmlns: "http://www.w3.org/2000/svg"
|
|
42754
42821
|
},
|
|
42755
|
-
/* @__PURE__ */
|
|
42822
|
+
/* @__PURE__ */ React260.createElement(
|
|
42756
42823
|
"circle",
|
|
42757
42824
|
{
|
|
42758
42825
|
cx: "8",
|
|
@@ -42764,7 +42831,7 @@ var CheckCircleIcon = () => {
|
|
|
42764
42831
|
strokeLinejoin: "round"
|
|
42765
42832
|
}
|
|
42766
42833
|
),
|
|
42767
|
-
/* @__PURE__ */
|
|
42834
|
+
/* @__PURE__ */ React260.createElement(
|
|
42768
42835
|
"path",
|
|
42769
42836
|
{
|
|
42770
42837
|
d: "M5.5 9L7 10.5L10.5 7",
|
|
@@ -42789,7 +42856,7 @@ var FunInputButton = ({
|
|
|
42789
42856
|
const { t } = useFunkitTranslation();
|
|
42790
42857
|
const { isCopied, handleCopy } = useCopyToClipboard(text, HIDE_TOOLTIP_MS);
|
|
42791
42858
|
if (!isCopyable) {
|
|
42792
|
-
return /* @__PURE__ */
|
|
42859
|
+
return /* @__PURE__ */ React261.createElement(
|
|
42793
42860
|
FunOptionBox,
|
|
42794
42861
|
{
|
|
42795
42862
|
width: "full",
|
|
@@ -42808,10 +42875,10 @@ var FunInputButton = ({
|
|
|
42808
42875
|
hover: "heavyStroke"
|
|
42809
42876
|
}
|
|
42810
42877
|
},
|
|
42811
|
-
/* @__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))
|
|
42812
42879
|
);
|
|
42813
42880
|
}
|
|
42814
|
-
return /* @__PURE__ */
|
|
42881
|
+
return /* @__PURE__ */ React261.createElement(
|
|
42815
42882
|
FunOptionBox,
|
|
42816
42883
|
{
|
|
42817
42884
|
width: "full",
|
|
@@ -42831,8 +42898,8 @@ var FunInputButton = ({
|
|
|
42831
42898
|
hover: "heavyStroke"
|
|
42832
42899
|
}
|
|
42833
42900
|
},
|
|
42834
|
-
/* @__PURE__ */
|
|
42835
|
-
/* @__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)))
|
|
42836
42903
|
);
|
|
42837
42904
|
};
|
|
42838
42905
|
|
|
@@ -42843,62 +42910,62 @@ var AccountDetailsTab = ({
|
|
|
42843
42910
|
handleToggleDetails
|
|
42844
42911
|
}) => {
|
|
42845
42912
|
const { t } = useFunkitTranslation();
|
|
42846
|
-
return /* @__PURE__ */
|
|
42913
|
+
return /* @__PURE__ */ React262.createElement(Box, { display: "flex", flexDirection: "column", gap: "8" }, account.bank_account_number ? /* @__PURE__ */ React262.createElement(
|
|
42847
42914
|
FunInputButton,
|
|
42848
42915
|
{
|
|
42849
42916
|
label: t("virtualFiatAccount.accountNumber"),
|
|
42850
42917
|
text: account.bank_account_number
|
|
42851
42918
|
}
|
|
42852
|
-
) : null, account.bank_routing_number ? /* @__PURE__ */
|
|
42919
|
+
) : null, account.bank_routing_number ? /* @__PURE__ */ React262.createElement(
|
|
42853
42920
|
FunInputButton,
|
|
42854
42921
|
{
|
|
42855
42922
|
label: t("virtualFiatAccount.routingNumber"),
|
|
42856
42923
|
text: account.bank_routing_number
|
|
42857
42924
|
}
|
|
42858
|
-
) : null, account.iban ? /* @__PURE__ */
|
|
42925
|
+
) : null, account.iban ? /* @__PURE__ */ React262.createElement(
|
|
42859
42926
|
FunInputButton,
|
|
42860
42927
|
{
|
|
42861
42928
|
label: t("virtualFiatAccount.iban"),
|
|
42862
42929
|
text: account.iban
|
|
42863
42930
|
}
|
|
42864
|
-
) : null, account.bic ? /* @__PURE__ */
|
|
42931
|
+
) : null, account.bic ? /* @__PURE__ */ React262.createElement(
|
|
42865
42932
|
FunInputButton,
|
|
42866
42933
|
{
|
|
42867
42934
|
label: t("virtualFiatAccount.swiftBic"),
|
|
42868
42935
|
text: account.bic
|
|
42869
42936
|
}
|
|
42870
|
-
) : null, account.account_holder_name ? /* @__PURE__ */
|
|
42937
|
+
) : null, account.account_holder_name ? /* @__PURE__ */ React262.createElement(
|
|
42871
42938
|
FunInputButton,
|
|
42872
42939
|
{
|
|
42873
42940
|
label: t("virtualFiatAccount.accountHolderName"),
|
|
42874
42941
|
text: account.account_holder_name
|
|
42875
42942
|
}
|
|
42876
|
-
) : null, account.bank_beneficiary_name ? /* @__PURE__ */
|
|
42943
|
+
) : null, account.bank_beneficiary_name ? /* @__PURE__ */ React262.createElement(
|
|
42877
42944
|
FunInputButton,
|
|
42878
42945
|
{
|
|
42879
42946
|
label: t("virtualFiatAccount.beneficiaryName"),
|
|
42880
42947
|
text: account.bank_beneficiary_name
|
|
42881
42948
|
}
|
|
42882
|
-
) : null, detailsExpanded && /* @__PURE__ */
|
|
42949
|
+
) : null, detailsExpanded && /* @__PURE__ */ React262.createElement(React262.Fragment, null, /* @__PURE__ */ React262.createElement(
|
|
42883
42950
|
FunInputButton,
|
|
42884
42951
|
{
|
|
42885
42952
|
label: t("virtualFiatAccount.bankName"),
|
|
42886
42953
|
text: account.bank_name
|
|
42887
42954
|
}
|
|
42888
|
-
), /* @__PURE__ */
|
|
42955
|
+
), /* @__PURE__ */ React262.createElement(
|
|
42889
42956
|
FunInputButton,
|
|
42890
42957
|
{
|
|
42891
42958
|
label: t("virtualFiatAccount.bankAddress"),
|
|
42892
42959
|
text: account.bank_address
|
|
42893
42960
|
}
|
|
42894
|
-
), /* @__PURE__ */
|
|
42961
|
+
), /* @__PURE__ */ React262.createElement(
|
|
42895
42962
|
FunInputButton,
|
|
42896
42963
|
{
|
|
42897
42964
|
label: t("virtualFiatAccount.currency"),
|
|
42898
42965
|
text: String(account.currency).toUpperCase(),
|
|
42899
42966
|
isCopyable: false
|
|
42900
42967
|
}
|
|
42901
|
-
)), /* @__PURE__ */
|
|
42968
|
+
)), /* @__PURE__ */ React262.createElement(
|
|
42902
42969
|
Box,
|
|
42903
42970
|
{
|
|
42904
42971
|
width: "full",
|
|
@@ -42918,8 +42985,8 @@ var AccountDetailsTab = ({
|
|
|
42918
42985
|
hover: "heavyStroke"
|
|
42919
42986
|
}
|
|
42920
42987
|
},
|
|
42921
|
-
/* @__PURE__ */
|
|
42922
|
-
/* @__PURE__ */
|
|
42988
|
+
/* @__PURE__ */ React262.createElement(Text, { size: "13" }, detailsExpanded ? "See less" : "More details"),
|
|
42989
|
+
/* @__PURE__ */ React262.createElement(
|
|
42923
42990
|
Box,
|
|
42924
42991
|
{
|
|
42925
42992
|
width: "16",
|
|
@@ -42928,7 +42995,7 @@ var AccountDetailsTab = ({
|
|
|
42928
42995
|
alignItems: "center",
|
|
42929
42996
|
justifyContent: "center"
|
|
42930
42997
|
},
|
|
42931
|
-
/* @__PURE__ */
|
|
42998
|
+
/* @__PURE__ */ React262.createElement(
|
|
42932
42999
|
Box,
|
|
42933
43000
|
{
|
|
42934
43001
|
color: "secondaryText",
|
|
@@ -42939,7 +43006,7 @@ var AccountDetailsTab = ({
|
|
|
42939
43006
|
justifyContent: "center",
|
|
42940
43007
|
style: detailsExpanded ? { transform: "rotate(180deg)" } : void 0
|
|
42941
43008
|
},
|
|
42942
|
-
/* @__PURE__ */
|
|
43009
|
+
/* @__PURE__ */ React262.createElement(CaretDownIcon, null)
|
|
42943
43010
|
)
|
|
42944
43011
|
)
|
|
42945
43012
|
));
|
|
@@ -42965,7 +43032,7 @@ var AccountDetailsScreen = ({
|
|
|
42965
43032
|
const handleTabChange = (index) => {
|
|
42966
43033
|
animate(() => setActiveTab(index), { reverse: index < activeTab });
|
|
42967
43034
|
};
|
|
42968
|
-
return /* @__PURE__ */
|
|
43035
|
+
return /* @__PURE__ */ React263.createElement(
|
|
42969
43036
|
Box,
|
|
42970
43037
|
{
|
|
42971
43038
|
id: "fiat-detail-page",
|
|
@@ -42973,7 +43040,7 @@ var AccountDetailsScreen = ({
|
|
|
42973
43040
|
flexDirection: "column",
|
|
42974
43041
|
gap: "16"
|
|
42975
43042
|
},
|
|
42976
|
-
isSourceNavWidgetEnabled && /* @__PURE__ */
|
|
43043
|
+
isSourceNavWidgetEnabled && /* @__PURE__ */ React263.createElement(
|
|
42977
43044
|
SourcePaymentMethodItem,
|
|
42978
43045
|
{
|
|
42979
43046
|
onClick: () => onNext({}),
|
|
@@ -42982,21 +43049,21 @@ var AccountDetailsScreen = ({
|
|
|
42982
43049
|
keyIcon: label.icon
|
|
42983
43050
|
}
|
|
42984
43051
|
),
|
|
42985
|
-
/* @__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(
|
|
42986
43053
|
Tabs,
|
|
42987
43054
|
{
|
|
42988
43055
|
tabs,
|
|
42989
43056
|
activeTab,
|
|
42990
43057
|
onTabChange: handleTabChange
|
|
42991
43058
|
}
|
|
42992
|
-
)), /* @__PURE__ */
|
|
43059
|
+
)), /* @__PURE__ */ React263.createElement(Box, { className: getContentAnimation(animation) }, tabs[activeTab]?.value === "details" ? /* @__PURE__ */ React263.createElement(
|
|
42993
43060
|
AccountDetailsTab,
|
|
42994
43061
|
{
|
|
42995
43062
|
account: sourceDeposit,
|
|
42996
43063
|
detailsExpanded,
|
|
42997
43064
|
handleToggleDetails: () => setDetailsExpanded((prev) => !prev)
|
|
42998
43065
|
}
|
|
42999
|
-
) : /* @__PURE__ */
|
|
43066
|
+
) : /* @__PURE__ */ React263.createElement(
|
|
43000
43067
|
FunFeatureList,
|
|
43001
43068
|
{
|
|
43002
43069
|
gapBetweenItems: "8",
|
|
@@ -43010,7 +43077,7 @@ var AccountDetailsScreen = ({
|
|
|
43010
43077
|
"Gas fee: < $5.00",
|
|
43011
43078
|
"Banks fees may also apply"
|
|
43012
43079
|
],
|
|
43013
|
-
icon: /* @__PURE__ */
|
|
43080
|
+
icon: /* @__PURE__ */ React263.createElement(DollarIcon, null)
|
|
43014
43081
|
},
|
|
43015
43082
|
{
|
|
43016
43083
|
text: "Limits",
|
|
@@ -43018,12 +43085,12 @@ var AccountDetailsScreen = ({
|
|
|
43018
43085
|
"Minimum amount: 25 EUR",
|
|
43019
43086
|
"Maximum amount: 20,000,000 EUR"
|
|
43020
43087
|
],
|
|
43021
|
-
icon: /* @__PURE__ */
|
|
43088
|
+
icon: /* @__PURE__ */ React263.createElement(DollarIcon, null)
|
|
43022
43089
|
},
|
|
43023
43090
|
{
|
|
43024
43091
|
text: "Processing time",
|
|
43025
43092
|
value: [FIAT_PROCESSING_TIME],
|
|
43026
|
-
icon: /* @__PURE__ */
|
|
43093
|
+
icon: /* @__PURE__ */ React263.createElement(SpeedometerIcon, null)
|
|
43027
43094
|
}
|
|
43028
43095
|
]
|
|
43029
43096
|
}
|
|
@@ -43046,7 +43113,7 @@ var FiatAccountDetail = {
|
|
|
43046
43113
|
|
|
43047
43114
|
// src/modals/CheckoutModal/VirtualFiatAccount/KycIframe.tsx
|
|
43048
43115
|
import { BridgeCustomerStatus as BridgeCustomerStatus7 } from "@funkit/api-base";
|
|
43049
|
-
import
|
|
43116
|
+
import React264, { useCallback as useCallback48, useEffect as useEffect68, useMemo as useMemo61, useState as useState75 } from "react";
|
|
43050
43117
|
function useIframeListener(listeners, expectedOrigin) {
|
|
43051
43118
|
const handleMessage = useCallback48(
|
|
43052
43119
|
(event) => {
|
|
@@ -43133,7 +43200,7 @@ function KycIframe({
|
|
|
43133
43200
|
);
|
|
43134
43201
|
const loading = isLinkLoading || iframeLoading;
|
|
43135
43202
|
useIframeListener(listeners, kycOrigin);
|
|
43136
|
-
return /* @__PURE__ */
|
|
43203
|
+
return /* @__PURE__ */ React264.createElement(
|
|
43137
43204
|
Dialog,
|
|
43138
43205
|
{
|
|
43139
43206
|
onClose: onBack,
|
|
@@ -43142,13 +43209,13 @@ function KycIframe({
|
|
|
43142
43209
|
withoutSidePadding: !loading,
|
|
43143
43210
|
withTransition: false
|
|
43144
43211
|
},
|
|
43145
|
-
loading && /* @__PURE__ */
|
|
43212
|
+
loading && /* @__PURE__ */ React264.createElement(React264.Fragment, null, /* @__PURE__ */ React264.createElement(
|
|
43146
43213
|
Dialog.Title,
|
|
43147
43214
|
{
|
|
43148
43215
|
onClose: onBack,
|
|
43149
43216
|
title: textCustomizations.virtualFiat
|
|
43150
43217
|
}
|
|
43151
|
-
), /* @__PURE__ */
|
|
43218
|
+
), /* @__PURE__ */ React264.createElement(
|
|
43152
43219
|
VerifyAccountScreen,
|
|
43153
43220
|
{
|
|
43154
43221
|
customerStatus: BridgeCustomerStatus7.NOT_STARTED,
|
|
@@ -43156,7 +43223,7 @@ function KycIframe({
|
|
|
43156
43223
|
withActionButton: false
|
|
43157
43224
|
}
|
|
43158
43225
|
)),
|
|
43159
|
-
/* @__PURE__ */
|
|
43226
|
+
/* @__PURE__ */ React264.createElement(
|
|
43160
43227
|
Dialog.Content,
|
|
43161
43228
|
{
|
|
43162
43229
|
display: "flex",
|
|
@@ -43169,7 +43236,7 @@ function KycIframe({
|
|
|
43169
43236
|
withoutSidePadding: !loading,
|
|
43170
43237
|
fullHeight: !loading
|
|
43171
43238
|
},
|
|
43172
|
-
kycLink && /* @__PURE__ */
|
|
43239
|
+
kycLink && /* @__PURE__ */ React264.createElement(
|
|
43173
43240
|
"iframe",
|
|
43174
43241
|
{
|
|
43175
43242
|
src: kycLink,
|
|
@@ -43184,14 +43251,14 @@ function KycIframe({
|
|
|
43184
43251
|
}
|
|
43185
43252
|
)
|
|
43186
43253
|
),
|
|
43187
|
-
loading && /* @__PURE__ */
|
|
43254
|
+
loading && /* @__PURE__ */ React264.createElement(
|
|
43188
43255
|
Dialog.BottomSection,
|
|
43189
43256
|
{
|
|
43190
43257
|
style: {
|
|
43191
43258
|
paddingBottom: themeVars.spacing.modalPaddingBottomLower
|
|
43192
43259
|
}
|
|
43193
43260
|
},
|
|
43194
|
-
/* @__PURE__ */
|
|
43261
|
+
/* @__PURE__ */ React264.createElement(
|
|
43195
43262
|
Dialog.BottomBar,
|
|
43196
43263
|
{
|
|
43197
43264
|
actionButtonProps: {
|
|
@@ -43533,7 +43600,7 @@ function FunCheckoutModalHeightAnimationWrapper({
|
|
|
43533
43600
|
const permittedHeight = getPermittedHeight2(
|
|
43534
43601
|
checkoutStep === "loading_account" /* LOADING_ACCOUNT */ ? startsOnConfirmationStep ? "confirmation" /* CONFIRMATION */ : startsOnSelectAssetStep ? "select_asset" /* SELECT_ASSET */ : "source_change" /* SOURCE_CHANGE */ : checkoutStep
|
|
43535
43602
|
);
|
|
43536
|
-
return /* @__PURE__ */
|
|
43603
|
+
return /* @__PURE__ */ React265.createElement(ModalHeightAnimationLayer, { permittedHeight }, children);
|
|
43537
43604
|
}
|
|
43538
43605
|
|
|
43539
43606
|
// src/hooks/useCheckoutModalTitle.ts
|
|
@@ -43548,7 +43615,7 @@ function useCheckoutModalTitle(depositAddress, defaultTitle) {
|
|
|
43548
43615
|
import { IN_PROGRESS_CHECKOUT_STATES as IN_PROGRESS_CHECKOUT_STATES2 } from "@funkit/api-base";
|
|
43549
43616
|
import { formatTimestampToDate, fullMonthNames } from "@funkit/utils";
|
|
43550
43617
|
import clsx23 from "clsx";
|
|
43551
|
-
import
|
|
43618
|
+
import React274, { useEffect as useEffect71, useMemo as useMemo62, useRef as useRef37, useState as useState78 } from "react";
|
|
43552
43619
|
import { Virtuoso } from "react-virtuoso";
|
|
43553
43620
|
|
|
43554
43621
|
// src/consts/layout.ts
|
|
@@ -43559,10 +43626,10 @@ var DEFAULT_ICON_SIZE = "24";
|
|
|
43559
43626
|
var OVERLAY_Z_INDEX = 100;
|
|
43560
43627
|
|
|
43561
43628
|
// src/modals/ProfileDetails/FunProfileViews/Home/BalanceSection.tsx
|
|
43562
|
-
import
|
|
43629
|
+
import React266 from "react";
|
|
43563
43630
|
import { formatCurrencyAndStringify as formatCurrencyAndStringify13 } from "@funkit/utils";
|
|
43564
43631
|
var BalanceSection = ({ totalBalance }) => {
|
|
43565
|
-
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(
|
|
43566
43633
|
Number.parseFloat(totalBalance.toString())
|
|
43567
43634
|
))));
|
|
43568
43635
|
};
|
|
@@ -43581,12 +43648,12 @@ import {
|
|
|
43581
43648
|
isNotNullish as isNotNullish7
|
|
43582
43649
|
} from "@funkit/utils";
|
|
43583
43650
|
import clsx22 from "clsx";
|
|
43584
|
-
import
|
|
43651
|
+
import React268 from "react";
|
|
43585
43652
|
|
|
43586
43653
|
// src/components/Icons/RedRoundErrorCross.tsx
|
|
43587
|
-
import
|
|
43654
|
+
import React267 from "react";
|
|
43588
43655
|
var RedRoundErrorCross = ({ size = 15 }) => {
|
|
43589
|
-
return /* @__PURE__ */
|
|
43656
|
+
return /* @__PURE__ */ React267.createElement(
|
|
43590
43657
|
"svg",
|
|
43591
43658
|
{
|
|
43592
43659
|
width: size,
|
|
@@ -43595,8 +43662,8 @@ var RedRoundErrorCross = ({ size = 15 }) => {
|
|
|
43595
43662
|
fill: "none",
|
|
43596
43663
|
xmlns: "http://www.w3.org/2000/svg"
|
|
43597
43664
|
},
|
|
43598
|
-
/* @__PURE__ */
|
|
43599
|
-
/* @__PURE__ */
|
|
43665
|
+
/* @__PURE__ */ React267.createElement("circle", { cx: "4", cy: "4.5", r: "4", fill: "#F34126" }),
|
|
43666
|
+
/* @__PURE__ */ React267.createElement(
|
|
43600
43667
|
"path",
|
|
43601
43668
|
{
|
|
43602
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",
|
|
@@ -43632,7 +43699,7 @@ var HomeCheckoutDisplayRow = ({
|
|
|
43632
43699
|
const checkoutClientMetadata = checkoutHistoryItem.clientMetadata;
|
|
43633
43700
|
const getStatusElement = () => {
|
|
43634
43701
|
if (isCompleted) {
|
|
43635
|
-
return /* @__PURE__ */
|
|
43702
|
+
return /* @__PURE__ */ React268.createElement(
|
|
43636
43703
|
Box,
|
|
43637
43704
|
{
|
|
43638
43705
|
display: "flex",
|
|
@@ -43640,12 +43707,12 @@ var HomeCheckoutDisplayRow = ({
|
|
|
43640
43707
|
gap: STATUS_FLEX_GAP_X,
|
|
43641
43708
|
alignItems: "center"
|
|
43642
43709
|
},
|
|
43643
|
-
/* @__PURE__ */
|
|
43644
|
-
/* @__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"))
|
|
43645
43712
|
);
|
|
43646
43713
|
}
|
|
43647
43714
|
if (isError || isFailed || isExpired) {
|
|
43648
|
-
return /* @__PURE__ */
|
|
43715
|
+
return /* @__PURE__ */ React268.createElement(
|
|
43649
43716
|
Box,
|
|
43650
43717
|
{
|
|
43651
43718
|
display: "flex",
|
|
@@ -43653,12 +43720,12 @@ var HomeCheckoutDisplayRow = ({
|
|
|
43653
43720
|
gap: STATUS_FLEX_GAP_X,
|
|
43654
43721
|
alignItems: "center"
|
|
43655
43722
|
},
|
|
43656
|
-
/* @__PURE__ */
|
|
43657
|
-
/* @__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"))
|
|
43658
43725
|
);
|
|
43659
43726
|
}
|
|
43660
43727
|
if (isProcessing) {
|
|
43661
|
-
return /* @__PURE__ */
|
|
43728
|
+
return /* @__PURE__ */ React268.createElement(
|
|
43662
43729
|
Box,
|
|
43663
43730
|
{
|
|
43664
43731
|
display: "flex",
|
|
@@ -43666,7 +43733,7 @@ var HomeCheckoutDisplayRow = ({
|
|
|
43666
43733
|
gap: STATUS_FLEX_GAP_X,
|
|
43667
43734
|
alignItems: "center"
|
|
43668
43735
|
},
|
|
43669
|
-
/* @__PURE__ */
|
|
43736
|
+
/* @__PURE__ */ React268.createElement(
|
|
43670
43737
|
Box,
|
|
43671
43738
|
{
|
|
43672
43739
|
width: STATUS_ICON_SIZE,
|
|
@@ -43675,13 +43742,13 @@ var HomeCheckoutDisplayRow = ({
|
|
|
43675
43742
|
background: "standby"
|
|
43676
43743
|
}
|
|
43677
43744
|
),
|
|
43678
|
-
/* @__PURE__ */
|
|
43745
|
+
/* @__PURE__ */ React268.createElement(Text, { size: STATUS_TEXT_SIZE, color: "standby" }, t("checkoutHistory.processing"))
|
|
43679
43746
|
);
|
|
43680
43747
|
}
|
|
43681
43748
|
};
|
|
43682
43749
|
const checkoutConfig = checkoutClientMetadata.initSettings.config;
|
|
43683
43750
|
const showIcon = isNotNullish7(checkoutConfig.iconSrc) || checkoutClientMetadata.isWithdrawal;
|
|
43684
|
-
return /* @__PURE__ */
|
|
43751
|
+
return /* @__PURE__ */ React268.createElement(
|
|
43685
43752
|
Box,
|
|
43686
43753
|
{
|
|
43687
43754
|
className: clsx22(
|
|
@@ -43706,7 +43773,7 @@ var HomeCheckoutDisplayRow = ({
|
|
|
43706
43773
|
}
|
|
43707
43774
|
}
|
|
43708
43775
|
},
|
|
43709
|
-
/* @__PURE__ */
|
|
43776
|
+
/* @__PURE__ */ React268.createElement(Box, { display: "flex", alignItems: "center", gap: ROW_FLEX_GAP_X, width: "full" }, showIcon && /* @__PURE__ */ React268.createElement(
|
|
43710
43777
|
Box,
|
|
43711
43778
|
{
|
|
43712
43779
|
display: "flex",
|
|
@@ -43717,7 +43784,7 @@ var HomeCheckoutDisplayRow = ({
|
|
|
43717
43784
|
minWidth: "29px"
|
|
43718
43785
|
}
|
|
43719
43786
|
},
|
|
43720
|
-
/* @__PURE__ */
|
|
43787
|
+
/* @__PURE__ */ React268.createElement(
|
|
43721
43788
|
FunAssetAvatar,
|
|
43722
43789
|
{
|
|
43723
43790
|
assetSrc: checkoutConfig.iconSrc || "",
|
|
@@ -43728,7 +43795,7 @@ var HomeCheckoutDisplayRow = ({
|
|
|
43728
43795
|
chainId: checkoutConfig.targetChain
|
|
43729
43796
|
}
|
|
43730
43797
|
)
|
|
43731
|
-
), /* @__PURE__ */
|
|
43798
|
+
), /* @__PURE__ */ React268.createElement(Box, { display: "flex", flexDirection: "column", width: "full" }, /* @__PURE__ */ React268.createElement(
|
|
43732
43799
|
Box,
|
|
43733
43800
|
{
|
|
43734
43801
|
display: "flex",
|
|
@@ -43736,19 +43803,19 @@ var HomeCheckoutDisplayRow = ({
|
|
|
43736
43803
|
alignItems: "center",
|
|
43737
43804
|
gap: "16"
|
|
43738
43805
|
},
|
|
43739
|
-
/* @__PURE__ */
|
|
43740
|
-
/* @__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(
|
|
43741
43808
|
checkoutClientMetadata?.finalDollarValue || 0
|
|
43742
43809
|
)} USD`)
|
|
43743
|
-
), /* @__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), {
|
|
43744
43811
|
year: "none",
|
|
43745
43812
|
seconds: "none",
|
|
43746
43813
|
month: "short"
|
|
43747
|
-
})), /* @__PURE__ */
|
|
43814
|
+
})), /* @__PURE__ */ React268.createElement(Box, null, getStatusElement()))))
|
|
43748
43815
|
);
|
|
43749
43816
|
};
|
|
43750
43817
|
var HomeCheckoutDisplayRowSkeleton = () => {
|
|
43751
|
-
return /* @__PURE__ */
|
|
43818
|
+
return /* @__PURE__ */ React268.createElement(
|
|
43752
43819
|
Box,
|
|
43753
43820
|
{
|
|
43754
43821
|
display: "flex",
|
|
@@ -43758,8 +43825,8 @@ var HomeCheckoutDisplayRowSkeleton = () => {
|
|
|
43758
43825
|
paddingX: PROFILE_SIDE_PADDING,
|
|
43759
43826
|
paddingY: ROW_PADDING_Y
|
|
43760
43827
|
},
|
|
43761
|
-
/* @__PURE__ */
|
|
43762
|
-
/* @__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(
|
|
43763
43830
|
FunSkeletonBlock,
|
|
43764
43831
|
{
|
|
43765
43832
|
height: TEXT_SIZE_MEDIUM2,
|
|
@@ -43767,7 +43834,7 @@ var HomeCheckoutDisplayRowSkeleton = () => {
|
|
|
43767
43834
|
marginTop: TEXT_SKELETON_MARGIN_TOP2,
|
|
43768
43835
|
width: TEXT_SKELETON_WIDTH_LONG2
|
|
43769
43836
|
}
|
|
43770
|
-
), /* @__PURE__ */
|
|
43837
|
+
), /* @__PURE__ */ React268.createElement(
|
|
43771
43838
|
FunSkeletonBlock,
|
|
43772
43839
|
{
|
|
43773
43840
|
height: TEXT_SIZE_SMALL2,
|
|
@@ -43776,7 +43843,7 @@ var HomeCheckoutDisplayRowSkeleton = () => {
|
|
|
43776
43843
|
width: TEXT_SKELETON_WIDTH_MEDIUM
|
|
43777
43844
|
}
|
|
43778
43845
|
)),
|
|
43779
|
-
/* @__PURE__ */
|
|
43846
|
+
/* @__PURE__ */ React268.createElement(Box, { alignItems: "flex-end", display: "flex", flexDirection: "column" }, /* @__PURE__ */ React268.createElement(
|
|
43780
43847
|
FunSkeletonBlock,
|
|
43781
43848
|
{
|
|
43782
43849
|
height: TEXT_SIZE_MEDIUM2,
|
|
@@ -43784,7 +43851,7 @@ var HomeCheckoutDisplayRowSkeleton = () => {
|
|
|
43784
43851
|
marginTop: TEXT_SKELETON_MARGIN_TOP2,
|
|
43785
43852
|
width: TEXT_SKELETON_WIDTH_MEDIUM
|
|
43786
43853
|
}
|
|
43787
|
-
), /* @__PURE__ */
|
|
43854
|
+
), /* @__PURE__ */ React268.createElement(
|
|
43788
43855
|
FunSkeletonBlock,
|
|
43789
43856
|
{
|
|
43790
43857
|
height: STATUS_TEXT_SIZE,
|
|
@@ -43802,7 +43869,7 @@ import {
|
|
|
43802
43869
|
formatCurrencyAndStringify as formatCurrencyAndStringify15,
|
|
43803
43870
|
isMobile as isMobile9
|
|
43804
43871
|
} from "@funkit/utils";
|
|
43805
|
-
import
|
|
43872
|
+
import React269 from "react";
|
|
43806
43873
|
var TEXT_SIZE = "13";
|
|
43807
43874
|
var TEXT_SKELETON_MARGIN_TOP3 = "2";
|
|
43808
43875
|
var TEXT_SKELETON_MARGIN_BOTTOM3 = "3";
|
|
@@ -43817,7 +43884,7 @@ var HomeTokenBalanceDisplayRow = ({
|
|
|
43817
43884
|
asset.tokenBalance,
|
|
43818
43885
|
asset.decimals
|
|
43819
43886
|
);
|
|
43820
|
-
return /* @__PURE__ */
|
|
43887
|
+
return /* @__PURE__ */ React269.createElement(
|
|
43821
43888
|
Box,
|
|
43822
43889
|
{
|
|
43823
43890
|
display: "flex",
|
|
@@ -43831,7 +43898,7 @@ var HomeTokenBalanceDisplayRow = ({
|
|
|
43831
43898
|
paddingY: ROW_PADDING_Y2,
|
|
43832
43899
|
className: baseStyles4
|
|
43833
43900
|
},
|
|
43834
|
-
/* @__PURE__ */
|
|
43901
|
+
/* @__PURE__ */ React269.createElement(
|
|
43835
43902
|
Box,
|
|
43836
43903
|
{
|
|
43837
43904
|
display: "flex",
|
|
@@ -43840,7 +43907,7 @@ var HomeTokenBalanceDisplayRow = ({
|
|
|
43840
43907
|
alignItems: "flex-start",
|
|
43841
43908
|
height: "full"
|
|
43842
43909
|
},
|
|
43843
|
-
/* @__PURE__ */
|
|
43910
|
+
/* @__PURE__ */ React269.createElement(
|
|
43844
43911
|
FunAssetAvatar,
|
|
43845
43912
|
{
|
|
43846
43913
|
assetSrc: asset.logo,
|
|
@@ -43850,22 +43917,22 @@ var HomeTokenBalanceDisplayRow = ({
|
|
|
43850
43917
|
assetIconSize: DEFAULT_ICON_SIZE
|
|
43851
43918
|
}
|
|
43852
43919
|
),
|
|
43853
|
-
/* @__PURE__ */
|
|
43920
|
+
/* @__PURE__ */ React269.createElement(
|
|
43854
43921
|
Box,
|
|
43855
43922
|
{
|
|
43856
43923
|
display: "flex",
|
|
43857
43924
|
flexDirection: "column",
|
|
43858
43925
|
justifyContent: "space-between"
|
|
43859
43926
|
},
|
|
43860
|
-
/* @__PURE__ */
|
|
43861
|
-
/* @__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))
|
|
43862
43929
|
)
|
|
43863
43930
|
),
|
|
43864
|
-
/* @__PURE__ */
|
|
43931
|
+
/* @__PURE__ */ React269.createElement(Text, { color: "primaryText", size: TEXT_SIZE, weight: "regular" }, formatCurrencyAndStringify15(asset.totalUsdValue || 0))
|
|
43865
43932
|
);
|
|
43866
43933
|
};
|
|
43867
43934
|
var HomeTokenBalanceDisplayRowSkeleton = () => {
|
|
43868
|
-
return /* @__PURE__ */
|
|
43935
|
+
return /* @__PURE__ */ React269.createElement(
|
|
43869
43936
|
Box,
|
|
43870
43937
|
{
|
|
43871
43938
|
display: "flex",
|
|
@@ -43875,8 +43942,8 @@ var HomeTokenBalanceDisplayRowSkeleton = () => {
|
|
|
43875
43942
|
paddingX: PROFILE_SIDE_PADDING,
|
|
43876
43943
|
paddingY: ROW_PADDING_Y2
|
|
43877
43944
|
},
|
|
43878
|
-
/* @__PURE__ */
|
|
43879
|
-
/* @__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(
|
|
43880
43947
|
FunSkeletonBlock,
|
|
43881
43948
|
{
|
|
43882
43949
|
height: TEXT_SIZE,
|
|
@@ -43884,7 +43951,7 @@ var HomeTokenBalanceDisplayRowSkeleton = () => {
|
|
|
43884
43951
|
marginTop: TEXT_SKELETON_MARGIN_TOP3,
|
|
43885
43952
|
width: TEXT_SKELETON_WIDTH_SHORT3
|
|
43886
43953
|
}
|
|
43887
|
-
), /* @__PURE__ */
|
|
43954
|
+
), /* @__PURE__ */ React269.createElement(
|
|
43888
43955
|
FunSkeletonBlock,
|
|
43889
43956
|
{
|
|
43890
43957
|
height: TEXT_SIZE,
|
|
@@ -43893,7 +43960,7 @@ var HomeTokenBalanceDisplayRowSkeleton = () => {
|
|
|
43893
43960
|
width: TEXT_SKELETON_WIDTH_LONG3
|
|
43894
43961
|
}
|
|
43895
43962
|
)),
|
|
43896
|
-
/* @__PURE__ */
|
|
43963
|
+
/* @__PURE__ */ React269.createElement(
|
|
43897
43964
|
FunSkeletonBlock,
|
|
43898
43965
|
{
|
|
43899
43966
|
height: TEXT_SIZE,
|
|
@@ -43906,11 +43973,11 @@ var HomeTokenBalanceDisplayRowSkeleton = () => {
|
|
|
43906
43973
|
};
|
|
43907
43974
|
|
|
43908
43975
|
// src/modals/ProfileDetails/FunProfileViews/Home/ProfileTitleSection.tsx
|
|
43909
|
-
import
|
|
43976
|
+
import React273 from "react";
|
|
43910
43977
|
import { useCallback as useCallback50, useState as useState77 } from "react";
|
|
43911
43978
|
|
|
43912
43979
|
// src/components/FunSelect/FunClickOutside.tsx
|
|
43913
|
-
import
|
|
43980
|
+
import React270 from "react";
|
|
43914
43981
|
import { useEffect as useEffect70, useRef as useRef36 } from "react";
|
|
43915
43982
|
function FunClickOutside({
|
|
43916
43983
|
children,
|
|
@@ -43931,13 +43998,13 @@ function FunClickOutside({
|
|
|
43931
43998
|
document.removeEventListener("mousedown", handleClickListener);
|
|
43932
43999
|
};
|
|
43933
44000
|
}, [onClick]);
|
|
43934
|
-
return /* @__PURE__ */
|
|
44001
|
+
return /* @__PURE__ */ React270.createElement("div", { ref: wrapperRef }, children);
|
|
43935
44002
|
}
|
|
43936
44003
|
|
|
43937
44004
|
// src/components/Icons/LogoutIcon.tsx
|
|
43938
|
-
import
|
|
44005
|
+
import React271 from "react";
|
|
43939
44006
|
var LogoutIcon = ({ size = 16 }) => {
|
|
43940
|
-
return /* @__PURE__ */
|
|
44007
|
+
return /* @__PURE__ */ React271.createElement(
|
|
43941
44008
|
"svg",
|
|
43942
44009
|
{
|
|
43943
44010
|
width: size,
|
|
@@ -43946,7 +44013,7 @@ var LogoutIcon = ({ size = 16 }) => {
|
|
|
43946
44013
|
fill: "none",
|
|
43947
44014
|
xmlns: "http://www.w3.org/2000/svg"
|
|
43948
44015
|
},
|
|
43949
|
-
/* @__PURE__ */
|
|
44016
|
+
/* @__PURE__ */ React271.createElement(
|
|
43950
44017
|
"path",
|
|
43951
44018
|
{
|
|
43952
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",
|
|
@@ -43961,9 +44028,9 @@ var LogoutIcon = ({ size = 16 }) => {
|
|
|
43961
44028
|
};
|
|
43962
44029
|
|
|
43963
44030
|
// src/components/Icons/SettingsIcon.tsx
|
|
43964
|
-
import
|
|
44031
|
+
import React272 from "react";
|
|
43965
44032
|
var SettingsIcon = ({ size = 16 }) => {
|
|
43966
|
-
return /* @__PURE__ */
|
|
44033
|
+
return /* @__PURE__ */ React272.createElement(
|
|
43967
44034
|
"svg",
|
|
43968
44035
|
{
|
|
43969
44036
|
width: size,
|
|
@@ -43972,14 +44039,14 @@ var SettingsIcon = ({ size = 16 }) => {
|
|
|
43972
44039
|
fill: "none",
|
|
43973
44040
|
xmlns: "http://www.w3.org/2000/svg"
|
|
43974
44041
|
},
|
|
43975
|
-
/* @__PURE__ */
|
|
44042
|
+
/* @__PURE__ */ React272.createElement(
|
|
43976
44043
|
"path",
|
|
43977
44044
|
{
|
|
43978
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",
|
|
43979
44046
|
stroke: "currentColor"
|
|
43980
44047
|
}
|
|
43981
44048
|
),
|
|
43982
|
-
/* @__PURE__ */
|
|
44049
|
+
/* @__PURE__ */ React272.createElement(
|
|
43983
44050
|
"path",
|
|
43984
44051
|
{
|
|
43985
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",
|
|
@@ -44004,7 +44071,7 @@ var ProfileTitleSection = ({
|
|
|
44004
44071
|
() => setIsDisconnectExpanded(false),
|
|
44005
44072
|
[]
|
|
44006
44073
|
);
|
|
44007
|
-
return /* @__PURE__ */
|
|
44074
|
+
return /* @__PURE__ */ React273.createElement(
|
|
44008
44075
|
Box,
|
|
44009
44076
|
{
|
|
44010
44077
|
display: "flex",
|
|
@@ -44013,7 +44080,7 @@ var ProfileTitleSection = ({
|
|
|
44013
44080
|
width: "full",
|
|
44014
44081
|
minHeight: "28"
|
|
44015
44082
|
},
|
|
44016
|
-
/* @__PURE__ */
|
|
44083
|
+
/* @__PURE__ */ React273.createElement(
|
|
44017
44084
|
Box,
|
|
44018
44085
|
{
|
|
44019
44086
|
display: "flex",
|
|
@@ -44022,7 +44089,7 @@ var ProfileTitleSection = ({
|
|
|
44022
44089
|
gap: "8",
|
|
44023
44090
|
className: animateOut ? animateTitleOutClass : animateTitleInClass
|
|
44024
44091
|
},
|
|
44025
|
-
account.address && /* @__PURE__ */
|
|
44092
|
+
account.address && /* @__PURE__ */ React273.createElement(
|
|
44026
44093
|
Avatar,
|
|
44027
44094
|
{
|
|
44028
44095
|
address: account.address,
|
|
@@ -44031,21 +44098,21 @@ var ProfileTitleSection = ({
|
|
|
44031
44098
|
size: 20
|
|
44032
44099
|
}
|
|
44033
44100
|
),
|
|
44034
|
-
/* @__PURE__ */
|
|
44101
|
+
/* @__PURE__ */ React273.createElement(Text, { color: "primaryText", size: "13", weight: "medium" }, userInfo.nameTruncated)
|
|
44035
44102
|
),
|
|
44036
|
-
/* @__PURE__ */
|
|
44103
|
+
/* @__PURE__ */ React273.createElement(Box, { display: "flex", alignItems: "center", flexDirection: "row" }, !isDisconnectExpanded && /* @__PURE__ */ React273.createElement(
|
|
44037
44104
|
FunIconButton,
|
|
44038
44105
|
{
|
|
44039
|
-
icon: /* @__PURE__ */
|
|
44106
|
+
icon: /* @__PURE__ */ React273.createElement(SettingsIcon, { size: 17 }),
|
|
44040
44107
|
onClick: () => onChangeView(1 /* SETTINGS */),
|
|
44041
44108
|
paddingX: "4",
|
|
44042
44109
|
paddingY: "4"
|
|
44043
44110
|
}
|
|
44044
|
-
), /* @__PURE__ */
|
|
44111
|
+
), /* @__PURE__ */ React273.createElement(FunClickOutside, { onClick: collapseDisconnect }, /* @__PURE__ */ React273.createElement(
|
|
44045
44112
|
FunIconButton,
|
|
44046
44113
|
{
|
|
44047
44114
|
size: "28",
|
|
44048
|
-
icon: /* @__PURE__ */
|
|
44115
|
+
icon: /* @__PURE__ */ React273.createElement(LogoutIcon, { size: 15 }),
|
|
44049
44116
|
paddingX: isDisconnectExpanded ? "6" : void 0,
|
|
44050
44117
|
"aria-label": t("profile.disconnect"),
|
|
44051
44118
|
onClick: isDisconnectExpanded ? onLogout : () => setIsDisconnectExpanded(true),
|
|
@@ -44053,12 +44120,12 @@ var ProfileTitleSection = ({
|
|
|
44053
44120
|
onMouseLeave: collapseDisconnect,
|
|
44054
44121
|
onBlur: collapseDisconnect
|
|
44055
44122
|
},
|
|
44056
|
-
isDisconnectExpanded && /* @__PURE__ */
|
|
44057
|
-
)), !isDisconnectExpanded && /* @__PURE__ */
|
|
44123
|
+
isDisconnectExpanded && /* @__PURE__ */ React273.createElement(Text, { size: "10", color: "secondaryText", weight: "medium" }, t("profile.disconnect"))
|
|
44124
|
+
)), !isDisconnectExpanded && /* @__PURE__ */ React273.createElement(
|
|
44058
44125
|
FunIconButton,
|
|
44059
44126
|
{
|
|
44060
44127
|
size: "28",
|
|
44061
|
-
icon: /* @__PURE__ */
|
|
44128
|
+
icon: /* @__PURE__ */ React273.createElement(CloseIcon, { size: 12 }),
|
|
44062
44129
|
onClick: onClose
|
|
44063
44130
|
}
|
|
44064
44131
|
))
|
|
@@ -44074,10 +44141,10 @@ var SelectedHomeTab = /* @__PURE__ */ ((SelectedHomeTab2) => {
|
|
|
44074
44141
|
var EmptyTabAlert = () => {
|
|
44075
44142
|
const { t } = useFunkitTranslation();
|
|
44076
44143
|
const { appName } = useFunkitConfig();
|
|
44077
|
-
return /* @__PURE__ */
|
|
44144
|
+
return /* @__PURE__ */ React274.createElement(Box, { paddingX: PROFILE_SIDE_PADDING }, /* @__PURE__ */ React274.createElement(
|
|
44078
44145
|
FunAlert,
|
|
44079
44146
|
{
|
|
44080
|
-
icon: /* @__PURE__ */
|
|
44147
|
+
icon: /* @__PURE__ */ React274.createElement(GreenRoundCheckmark, null),
|
|
44081
44148
|
description: t("profile.executeFirstCheckout", { appName })
|
|
44082
44149
|
}
|
|
44083
44150
|
));
|
|
@@ -44106,7 +44173,7 @@ function Home({
|
|
|
44106
44173
|
}, []);
|
|
44107
44174
|
const AssetsList = useMemo62(() => {
|
|
44108
44175
|
if (walletAssets && !Object.keys(walletAssets).length) {
|
|
44109
|
-
return /* @__PURE__ */
|
|
44176
|
+
return /* @__PURE__ */ React274.createElement(EmptyTabAlert, null);
|
|
44110
44177
|
}
|
|
44111
44178
|
const assets = walletAssets ? Object.values(walletAssets).sort(
|
|
44112
44179
|
(a, b) => (b.totalUsdValue ?? 0) - (a.totalUsdValue ?? 0)
|
|
@@ -44114,7 +44181,7 @@ function Home({
|
|
|
44114
44181
|
const itemHeight = HOME_TOKEN_BALANCE_DISPLAY_ROW_HEIGHT;
|
|
44115
44182
|
const itemMargin = 8;
|
|
44116
44183
|
const height = assets.length * (itemHeight + itemMargin) - itemMargin;
|
|
44117
|
-
return /* @__PURE__ */
|
|
44184
|
+
return /* @__PURE__ */ React274.createElement(Box, { ref: virtuosoParentRef }, /* @__PURE__ */ React274.createElement(
|
|
44118
44185
|
Virtuoso,
|
|
44119
44186
|
{
|
|
44120
44187
|
className: clsx23(hideScrollBar, scrollContent),
|
|
@@ -44126,14 +44193,14 @@ function Home({
|
|
|
44126
44193
|
itemContent: (index, asset) => (
|
|
44127
44194
|
// gaps/margins between items must be part of the measured content
|
|
44128
44195
|
// thus we wrap items in padded divs (margin is not measured)
|
|
44129
|
-
/* @__PURE__ */
|
|
44196
|
+
/* @__PURE__ */ React274.createElement("div", { style: { paddingTop: index === 0 ? 0 : itemMargin } }, asset ? /* @__PURE__ */ React274.createElement(HomeTokenBalanceDisplayRow, { asset }) : /* @__PURE__ */ React274.createElement(HomeTokenBalanceDisplayRowSkeleton, null))
|
|
44130
44197
|
)
|
|
44131
44198
|
}
|
|
44132
44199
|
));
|
|
44133
44200
|
}, [walletAssets]);
|
|
44134
44201
|
const CheckoutsList = useMemo62(() => {
|
|
44135
44202
|
if (checkoutHistoryList.length === 0 && isCheckoutHistoryInited) {
|
|
44136
|
-
return /* @__PURE__ */
|
|
44203
|
+
return /* @__PURE__ */ React274.createElement(EmptyTabAlert, null);
|
|
44137
44204
|
}
|
|
44138
44205
|
const processingCheckouts = checkoutHistoryList.filter(
|
|
44139
44206
|
(checkoutHistoryItem) => IN_PROGRESS_CHECKOUT_STATES2.includes(checkoutHistoryItem.state)
|
|
@@ -44195,7 +44262,7 @@ function Home({
|
|
|
44195
44262
|
const groupHeight = 15;
|
|
44196
44263
|
const groupMargin = 24;
|
|
44197
44264
|
const height = groups.length * (groupHeight + groupMargin) + (items.length - groups.length) * (itemHeight + itemMargin) - groupMargin;
|
|
44198
|
-
return /* @__PURE__ */
|
|
44265
|
+
return /* @__PURE__ */ React274.createElement(Box, { ref: virtuosoParentRef }, /* @__PURE__ */ React274.createElement(
|
|
44199
44266
|
Virtuoso,
|
|
44200
44267
|
{
|
|
44201
44268
|
className: clsx23(hideScrollBar, scrollContent),
|
|
@@ -44209,13 +44276,13 @@ function Home({
|
|
|
44209
44276
|
itemContent: (index, data) => (
|
|
44210
44277
|
// gaps/margins between items must be part of the measured content
|
|
44211
44278
|
// thus we wrap items in padded divs (margin is not measured)
|
|
44212
|
-
"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(
|
|
44213
44280
|
HomeCheckoutDisplayRow,
|
|
44214
44281
|
{
|
|
44215
44282
|
checkoutHistoryItem: data.checkout,
|
|
44216
44283
|
onSelect: handleCheckoutSelect
|
|
44217
44284
|
}
|
|
44218
|
-
) : /* @__PURE__ */
|
|
44285
|
+
) : /* @__PURE__ */ React274.createElement(HomeCheckoutDisplayRowSkeleton, null))
|
|
44219
44286
|
)
|
|
44220
44287
|
}
|
|
44221
44288
|
));
|
|
@@ -44230,7 +44297,7 @@ function Home({
|
|
|
44230
44297
|
{ tab: "assets" /* ASSETS */, label: t("profile.tokensTab") },
|
|
44231
44298
|
{ tab: "checkouts" /* CHECKOUTS */, label: t("profile.checkoutsTab") }
|
|
44232
44299
|
];
|
|
44233
|
-
return /* @__PURE__ */
|
|
44300
|
+
return /* @__PURE__ */ React274.createElement(Box, { paddingTop: "14" }, /* @__PURE__ */ React274.createElement(
|
|
44234
44301
|
ProfileTitleSection,
|
|
44235
44302
|
{
|
|
44236
44303
|
animateOut: animation.isOut,
|
|
@@ -44240,7 +44307,7 @@ function Home({
|
|
|
44240
44307
|
onLogout: handleLogout,
|
|
44241
44308
|
onClose
|
|
44242
44309
|
}
|
|
44243
|
-
), /* @__PURE__ */
|
|
44310
|
+
), /* @__PURE__ */ React274.createElement(
|
|
44244
44311
|
Box,
|
|
44245
44312
|
{
|
|
44246
44313
|
display: "flex",
|
|
@@ -44250,8 +44317,8 @@ function Home({
|
|
|
44250
44317
|
gap: "24",
|
|
44251
44318
|
className: getContentAnimation(animation, true)
|
|
44252
44319
|
},
|
|
44253
|
-
/* @__PURE__ */
|
|
44254
|
-
/* @__PURE__ */
|
|
44320
|
+
/* @__PURE__ */ React274.createElement(BalanceSection, { totalBalance: totalWalletAssetsUsd }),
|
|
44321
|
+
/* @__PURE__ */ React274.createElement(
|
|
44255
44322
|
Box,
|
|
44256
44323
|
{
|
|
44257
44324
|
display: "flex",
|
|
@@ -44262,7 +44329,7 @@ function Home({
|
|
|
44262
44329
|
marginLeft: `-${Number.parseInt(PROFILE_SIDE_PADDING)}px`
|
|
44263
44330
|
}
|
|
44264
44331
|
},
|
|
44265
|
-
/* @__PURE__ */
|
|
44332
|
+
/* @__PURE__ */ React274.createElement(
|
|
44266
44333
|
Box,
|
|
44267
44334
|
{
|
|
44268
44335
|
display: "flex",
|
|
@@ -44270,7 +44337,7 @@ function Home({
|
|
|
44270
44337
|
gap: "24",
|
|
44271
44338
|
paddingX: PROFILE_SIDE_PADDING
|
|
44272
44339
|
},
|
|
44273
|
-
tabs2.map(({ tab, label }) => /* @__PURE__ */
|
|
44340
|
+
tabs2.map(({ tab, label }) => /* @__PURE__ */ React274.createElement(
|
|
44274
44341
|
Box,
|
|
44275
44342
|
{
|
|
44276
44343
|
key: label,
|
|
@@ -44279,7 +44346,7 @@ function Home({
|
|
|
44279
44346
|
tabIndex: 0,
|
|
44280
44347
|
className: tabLabelStyles
|
|
44281
44348
|
},
|
|
44282
|
-
/* @__PURE__ */
|
|
44349
|
+
/* @__PURE__ */ React274.createElement(
|
|
44283
44350
|
Text,
|
|
44284
44351
|
{
|
|
44285
44352
|
weight: "bold",
|
|
@@ -44290,21 +44357,21 @@ function Home({
|
|
|
44290
44357
|
)
|
|
44291
44358
|
))
|
|
44292
44359
|
),
|
|
44293
|
-
/* @__PURE__ */
|
|
44360
|
+
/* @__PURE__ */ React274.createElement(Box, { className: getContentAnimation(tabAnimation, false) }, selectedView === "assets" /* ASSETS */ && AssetsList, selectedView === "checkouts" /* CHECKOUTS */ && CheckoutsList)
|
|
44294
44361
|
)
|
|
44295
44362
|
));
|
|
44296
44363
|
}
|
|
44297
44364
|
|
|
44298
44365
|
// src/modals/ProfileDetails/FunProfileViews/Settings/Settings.tsx
|
|
44299
44366
|
import { formatAddress as formatAddress7 } from "@funkit/utils";
|
|
44300
|
-
import
|
|
44367
|
+
import React277 from "react";
|
|
44301
44368
|
|
|
44302
44369
|
// src/components/CopyAddress/OldCopyAddressButton.tsx
|
|
44303
|
-
import
|
|
44370
|
+
import React276 from "react";
|
|
44304
44371
|
|
|
44305
44372
|
// src/components/Icons/CopyDoublePaperSheetIcon.tsx
|
|
44306
|
-
import
|
|
44307
|
-
var CopyDoublePaperSheetIcon = () => /* @__PURE__ */
|
|
44373
|
+
import React275 from "react";
|
|
44374
|
+
var CopyDoublePaperSheetIcon = () => /* @__PURE__ */ React275.createElement(
|
|
44308
44375
|
"svg",
|
|
44309
44376
|
{
|
|
44310
44377
|
width: "14",
|
|
@@ -44313,7 +44380,7 @@ var CopyDoublePaperSheetIcon = () => /* @__PURE__ */ React274.createElement(
|
|
|
44313
44380
|
fill: "none",
|
|
44314
44381
|
xmlns: "http://www.w3.org/2000/svg"
|
|
44315
44382
|
},
|
|
44316
|
-
/* @__PURE__ */
|
|
44383
|
+
/* @__PURE__ */ React275.createElement(
|
|
44317
44384
|
"path",
|
|
44318
44385
|
{
|
|
44319
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",
|
|
@@ -44325,11 +44392,11 @@ var CopyDoublePaperSheetIcon = () => /* @__PURE__ */ React274.createElement(
|
|
|
44325
44392
|
// src/components/CopyAddress/OldCopyAddressButton.tsx
|
|
44326
44393
|
function OldCopyAddressButton({ address }) {
|
|
44327
44394
|
const { isCopied, handleCopy } = useCopyToClipboard(address);
|
|
44328
|
-
return /* @__PURE__ */
|
|
44395
|
+
return /* @__PURE__ */ React276.createElement(
|
|
44329
44396
|
FunIconButton,
|
|
44330
44397
|
{
|
|
44331
44398
|
size: "36",
|
|
44332
|
-
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)),
|
|
44333
44400
|
onClick: handleCopy
|
|
44334
44401
|
}
|
|
44335
44402
|
);
|
|
@@ -44341,7 +44408,7 @@ function LineItem({
|
|
|
44341
44408
|
value,
|
|
44342
44409
|
valueSuffix = null
|
|
44343
44410
|
}) {
|
|
44344
|
-
return /* @__PURE__ */
|
|
44411
|
+
return /* @__PURE__ */ React277.createElement(
|
|
44345
44412
|
Box,
|
|
44346
44413
|
{
|
|
44347
44414
|
display: "flex",
|
|
@@ -44350,26 +44417,26 @@ function LineItem({
|
|
|
44350
44417
|
alignItems: "center",
|
|
44351
44418
|
justifyContent: "space-between"
|
|
44352
44419
|
},
|
|
44353
|
-
/* @__PURE__ */
|
|
44354
|
-
/* @__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)
|
|
44355
44422
|
);
|
|
44356
44423
|
}
|
|
44357
44424
|
function Settings() {
|
|
44358
44425
|
const { t } = useFunkitTranslation();
|
|
44359
44426
|
const { walletAddress, loginType, userInfo } = useGeneralWallet();
|
|
44360
44427
|
const isWeb3Login = loginType === "web3" /* Web3 */;
|
|
44361
|
-
return /* @__PURE__ */
|
|
44428
|
+
return /* @__PURE__ */ React277.createElement(Box, { display: "flex", flexDirection: "column", gap: "24" }, /* @__PURE__ */ React277.createElement(
|
|
44362
44429
|
LineItem,
|
|
44363
44430
|
{
|
|
44364
44431
|
label: isWeb3Login ? "Wallet" : userInfo.typeLabel,
|
|
44365
44432
|
value: isWeb3Login ? userInfo.typeLabel : userInfo.name
|
|
44366
44433
|
}
|
|
44367
|
-
), /* @__PURE__ */
|
|
44434
|
+
), /* @__PURE__ */ React277.createElement(
|
|
44368
44435
|
LineItem,
|
|
44369
44436
|
{
|
|
44370
44437
|
label: t("profile.address"),
|
|
44371
44438
|
value: formatAddress7(walletAddress),
|
|
44372
|
-
valueSuffix: /* @__PURE__ */
|
|
44439
|
+
valueSuffix: /* @__PURE__ */ React277.createElement(OldCopyAddressButton, { address: walletAddress })
|
|
44373
44440
|
}
|
|
44374
44441
|
));
|
|
44375
44442
|
}
|
|
@@ -44449,11 +44516,11 @@ function ProfileDetails({ onClose, defaultTab }) {
|
|
|
44449
44516
|
isActiveCheckout: false,
|
|
44450
44517
|
isCheckoutDetailView,
|
|
44451
44518
|
paddingTop: PADDING_TOP,
|
|
44452
|
-
topbar: dialogTitleMap[view] && /* @__PURE__ */
|
|
44519
|
+
topbar: dialogTitleMap[view] && /* @__PURE__ */ React278.createElement(Dialog.Title, { onClose, ...dialogTitleMap[view] }),
|
|
44453
44520
|
withTopDivider: withDivider,
|
|
44454
44521
|
scrollableContent: PROFILE_DETAILS_DIALOG_CONTENT_ID
|
|
44455
44522
|
});
|
|
44456
|
-
return /* @__PURE__ */
|
|
44523
|
+
return /* @__PURE__ */ React278.createElement(FunCheckoutModalHeightAnimationWrapper, null, topbar, /* @__PURE__ */ React278.createElement(
|
|
44457
44524
|
Dialog.Content,
|
|
44458
44525
|
{
|
|
44459
44526
|
display: "flex",
|
|
@@ -44470,7 +44537,7 @@ function ProfileDetails({ onClose, defaultTab }) {
|
|
|
44470
44537
|
withTopDivider,
|
|
44471
44538
|
id: PROFILE_DETAILS_DIALOG_CONTENT_ID
|
|
44472
44539
|
},
|
|
44473
|
-
view === 0 /* HOME */ ? /* @__PURE__ */
|
|
44540
|
+
view === 0 /* HOME */ ? /* @__PURE__ */ React278.createElement(
|
|
44474
44541
|
Home,
|
|
44475
44542
|
{
|
|
44476
44543
|
animation,
|
|
@@ -44479,7 +44546,7 @@ function ProfileDetails({ onClose, defaultTab }) {
|
|
|
44479
44546
|
onSelectActivity: onSelectActivityWrapper,
|
|
44480
44547
|
defaultHomeTab: selectedHomeTab
|
|
44481
44548
|
}
|
|
44482
|
-
) : view === 1 /* SETTINGS */ ? /* @__PURE__ */
|
|
44549
|
+
) : view === 1 /* SETTINGS */ ? /* @__PURE__ */ React278.createElement(Settings, null) : view === 3 /* SINGLE_ACTIVITY */ ? /* @__PURE__ */ React278.createElement(
|
|
44483
44550
|
FunCheckoutHistoryContent,
|
|
44484
44551
|
{
|
|
44485
44552
|
depositAddress: selectedPurchaseId || "0x",
|
|
@@ -44491,7 +44558,7 @@ function ProfileDetails({ onClose, defaultTab }) {
|
|
|
44491
44558
|
bottomBarId: HISTORY_BOTTOM_BAR_ID
|
|
44492
44559
|
}
|
|
44493
44560
|
) : null
|
|
44494
|
-
), /* @__PURE__ */
|
|
44561
|
+
), /* @__PURE__ */ React278.createElement(Dialog.BottomSection, { id: HISTORY_BOTTOM_BAR_ID }));
|
|
44495
44562
|
}
|
|
44496
44563
|
|
|
44497
44564
|
// src/modals/AccountModal/AccountModal.tsx
|
|
@@ -44501,7 +44568,7 @@ function AccountModal({ onClose, open, defaultTab }) {
|
|
|
44501
44568
|
if (!walletAddress) {
|
|
44502
44569
|
return null;
|
|
44503
44570
|
}
|
|
44504
|
-
return /* @__PURE__ */
|
|
44571
|
+
return /* @__PURE__ */ React279.createElement(
|
|
44505
44572
|
Dialog,
|
|
44506
44573
|
{
|
|
44507
44574
|
onClose,
|
|
@@ -44509,17 +44576,17 @@ function AccountModal({ onClose, open, defaultTab }) {
|
|
|
44509
44576
|
titleId: TITLE_ID,
|
|
44510
44577
|
isSmartCloseable: true
|
|
44511
44578
|
},
|
|
44512
|
-
/* @__PURE__ */
|
|
44579
|
+
/* @__PURE__ */ React279.createElement(ActivityTraversalProvider, null, /* @__PURE__ */ React279.createElement(ProfileDetails, { onClose, defaultTab }))
|
|
44513
44580
|
);
|
|
44514
44581
|
}
|
|
44515
44582
|
|
|
44516
44583
|
// src/modals/ChainModal/ChainModal.tsx
|
|
44517
44584
|
import { isMobile as isMobile12 } from "@funkit/utils";
|
|
44518
|
-
import
|
|
44585
|
+
import React284 from "react";
|
|
44519
44586
|
|
|
44520
44587
|
// src/components/Icons/DisconnectSqIcon.tsx
|
|
44521
|
-
import
|
|
44522
|
-
var DisconnectSqIcon = ({ size }) => /* @__PURE__ */
|
|
44588
|
+
import React280 from "react";
|
|
44589
|
+
var DisconnectSqIcon = ({ size }) => /* @__PURE__ */ React280.createElement(
|
|
44523
44590
|
"svg",
|
|
44524
44591
|
{
|
|
44525
44592
|
fill: "none",
|
|
@@ -44528,7 +44595,7 @@ var DisconnectSqIcon = ({ size }) => /* @__PURE__ */ React279.createElement(
|
|
|
44528
44595
|
width: size,
|
|
44529
44596
|
xmlns: "http://www.w3.org/2000/svg"
|
|
44530
44597
|
},
|
|
44531
|
-
/* @__PURE__ */
|
|
44598
|
+
/* @__PURE__ */ React280.createElement(
|
|
44532
44599
|
"path",
|
|
44533
44600
|
{
|
|
44534
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",
|
|
@@ -44539,13 +44606,13 @@ var DisconnectSqIcon = ({ size }) => /* @__PURE__ */ React279.createElement(
|
|
|
44539
44606
|
|
|
44540
44607
|
// src/components/MenuButton/MenuButton.tsx
|
|
44541
44608
|
import { isMobile as isMobile10 } from "@funkit/utils";
|
|
44542
|
-
import
|
|
44609
|
+
import React281 from "react";
|
|
44543
44610
|
|
|
44544
44611
|
// src/components/MenuButton/MenuButton.css.ts
|
|
44545
44612
|
var unsetBackgroundOnHover = "_10pw5x60";
|
|
44546
44613
|
|
|
44547
44614
|
// src/components/MenuButton/MenuButton.tsx
|
|
44548
|
-
var MenuButton =
|
|
44615
|
+
var MenuButton = React281.forwardRef(
|
|
44549
44616
|
({
|
|
44550
44617
|
children,
|
|
44551
44618
|
currentlySelected = false,
|
|
@@ -44554,7 +44621,7 @@ var MenuButton = React280.forwardRef(
|
|
|
44554
44621
|
...urlProps
|
|
44555
44622
|
}, ref) => {
|
|
44556
44623
|
const mobile = isMobile10();
|
|
44557
|
-
return /* @__PURE__ */
|
|
44624
|
+
return /* @__PURE__ */ React281.createElement(
|
|
44558
44625
|
Box,
|
|
44559
44626
|
{
|
|
44560
44627
|
as: "button",
|
|
@@ -44566,7 +44633,7 @@ var MenuButton = React280.forwardRef(
|
|
|
44566
44633
|
testId,
|
|
44567
44634
|
type: "button"
|
|
44568
44635
|
},
|
|
44569
|
-
/* @__PURE__ */
|
|
44636
|
+
/* @__PURE__ */ React281.createElement(
|
|
44570
44637
|
Box,
|
|
44571
44638
|
{
|
|
44572
44639
|
borderRadius: "menuButton",
|
|
@@ -44600,12 +44667,12 @@ MenuButton.displayName = "MenuButton";
|
|
|
44600
44667
|
|
|
44601
44668
|
// src/modals/ChainModal/Chain.tsx
|
|
44602
44669
|
import { isMobile as isMobile11 } from "@funkit/utils";
|
|
44603
|
-
import
|
|
44670
|
+
import React283, { Fragment as Fragment3 } from "react";
|
|
44604
44671
|
|
|
44605
44672
|
// src/components/FunDot/FunDot.tsx
|
|
44606
|
-
import
|
|
44673
|
+
import React282 from "react";
|
|
44607
44674
|
function FunDot() {
|
|
44608
|
-
return /* @__PURE__ */
|
|
44675
|
+
return /* @__PURE__ */ React282.createElement(
|
|
44609
44676
|
Box,
|
|
44610
44677
|
{
|
|
44611
44678
|
background: "connectionIndicator",
|
|
@@ -44633,7 +44700,7 @@ function ChainLineItem({
|
|
|
44633
44700
|
if (!chainItem) {
|
|
44634
44701
|
return null;
|
|
44635
44702
|
}
|
|
44636
|
-
return /* @__PURE__ */
|
|
44703
|
+
return /* @__PURE__ */ React283.createElement(
|
|
44637
44704
|
Box,
|
|
44638
44705
|
{
|
|
44639
44706
|
alignItems: "center",
|
|
@@ -44642,7 +44709,7 @@ function ChainLineItem({
|
|
|
44642
44709
|
gap,
|
|
44643
44710
|
height: chainIconSize
|
|
44644
44711
|
},
|
|
44645
|
-
/* @__PURE__ */
|
|
44712
|
+
/* @__PURE__ */ React283.createElement(Box, { height: "full" }, /* @__PURE__ */ React283.createElement(
|
|
44646
44713
|
AsyncImage,
|
|
44647
44714
|
{
|
|
44648
44715
|
alt: chainItem.name,
|
|
@@ -44654,7 +44721,7 @@ function ChainLineItem({
|
|
|
44654
44721
|
testId: `chain-option-${chainId2}-icon`
|
|
44655
44722
|
}
|
|
44656
44723
|
)),
|
|
44657
|
-
!hideChainName ? /* @__PURE__ */
|
|
44724
|
+
!hideChainName ? /* @__PURE__ */ React283.createElement("div", null, chainItem.name) : null
|
|
44658
44725
|
);
|
|
44659
44726
|
}
|
|
44660
44727
|
var Chain = ({
|
|
@@ -44669,14 +44736,14 @@ var Chain = ({
|
|
|
44669
44736
|
const mobile = isMobile11();
|
|
44670
44737
|
const funkitConnectChains = useFunkitConnectChains();
|
|
44671
44738
|
const isCurrentChain = currentChainId === chainId2 && !isLoading;
|
|
44672
|
-
return /* @__PURE__ */
|
|
44739
|
+
return /* @__PURE__ */ React283.createElement(Fragment3, null, /* @__PURE__ */ React283.createElement(
|
|
44673
44740
|
MenuButton,
|
|
44674
44741
|
{
|
|
44675
44742
|
currentlySelected: isCurrentChain,
|
|
44676
44743
|
onClick: isCurrentChain ? void 0 : () => switchChain({ chainId: chainId2 }),
|
|
44677
44744
|
testId: `chain-option-${chainId2}`
|
|
44678
44745
|
},
|
|
44679
|
-
/* @__PURE__ */
|
|
44746
|
+
/* @__PURE__ */ React283.createElement(Box, { fontFamily: "body", fontSize: "16", fontWeight: "bold" }, /* @__PURE__ */ React283.createElement(
|
|
44680
44747
|
Box,
|
|
44681
44748
|
{
|
|
44682
44749
|
alignItems: "center",
|
|
@@ -44684,8 +44751,8 @@ var Chain = ({
|
|
|
44684
44751
|
flexDirection: "row",
|
|
44685
44752
|
justifyContent: "space-between"
|
|
44686
44753
|
},
|
|
44687
|
-
/* @__PURE__ */
|
|
44688
|
-
isCurrentChain && /* @__PURE__ */
|
|
44754
|
+
/* @__PURE__ */ React283.createElement(ChainLineItem, { chainId: chainId2, chainIconSize }),
|
|
44755
|
+
isCurrentChain && /* @__PURE__ */ React283.createElement(
|
|
44689
44756
|
Box,
|
|
44690
44757
|
{
|
|
44691
44758
|
alignItems: "center",
|
|
@@ -44693,10 +44760,10 @@ var Chain = ({
|
|
|
44693
44760
|
flexDirection: "row",
|
|
44694
44761
|
marginRight: "6"
|
|
44695
44762
|
},
|
|
44696
|
-
/* @__PURE__ */
|
|
44697
|
-
/* @__PURE__ */
|
|
44763
|
+
/* @__PURE__ */ React283.createElement(Text, { color: "accentColorForeground", size: "14", weight: "medium" }, t("common.connected")),
|
|
44764
|
+
/* @__PURE__ */ React283.createElement(FunDot, null)
|
|
44698
44765
|
),
|
|
44699
|
-
isLoading && /* @__PURE__ */
|
|
44766
|
+
isLoading && /* @__PURE__ */ React283.createElement(
|
|
44700
44767
|
Box,
|
|
44701
44768
|
{
|
|
44702
44769
|
alignItems: "center",
|
|
@@ -44704,8 +44771,8 @@ var Chain = ({
|
|
|
44704
44771
|
flexDirection: "row",
|
|
44705
44772
|
marginRight: "6"
|
|
44706
44773
|
},
|
|
44707
|
-
/* @__PURE__ */
|
|
44708
|
-
/* @__PURE__ */
|
|
44774
|
+
/* @__PURE__ */ React283.createElement(Text, { color: "primaryText", size: "14", weight: "medium" }, t("common.confirmInWallet")),
|
|
44775
|
+
/* @__PURE__ */ React283.createElement(
|
|
44709
44776
|
Box,
|
|
44710
44777
|
{
|
|
44711
44778
|
background: "standby",
|
|
@@ -44717,7 +44784,7 @@ var Chain = ({
|
|
|
44717
44784
|
)
|
|
44718
44785
|
)
|
|
44719
44786
|
))
|
|
44720
|
-
), mobile && idx < funkitConnectChains.length - 1 && /* @__PURE__ */
|
|
44787
|
+
), mobile && idx < funkitConnectChains.length - 1 && /* @__PURE__ */ React283.createElement(Box, { background: "generalBorderDim", height: "1", marginX: "8" }));
|
|
44721
44788
|
};
|
|
44722
44789
|
var Chain_default = Chain;
|
|
44723
44790
|
|
|
@@ -44742,7 +44809,7 @@ function ChainModal({ onClose, open }) {
|
|
|
44742
44809
|
if (!chainId2) {
|
|
44743
44810
|
return null;
|
|
44744
44811
|
}
|
|
44745
|
-
return /* @__PURE__ */
|
|
44812
|
+
return /* @__PURE__ */ React284.createElement(
|
|
44746
44813
|
Dialog,
|
|
44747
44814
|
{
|
|
44748
44815
|
onClose,
|
|
@@ -44750,15 +44817,15 @@ function ChainModal({ onClose, open }) {
|
|
|
44750
44817
|
titleId,
|
|
44751
44818
|
isSmartCloseable: true
|
|
44752
44819
|
},
|
|
44753
|
-
/* @__PURE__ */
|
|
44820
|
+
/* @__PURE__ */ React284.createElement(Dialog.Content, { paddingTop: "18" }, /* @__PURE__ */ React284.createElement(Box, { display: "flex", flexDirection: "column", gap: "14" }, /* @__PURE__ */ React284.createElement(
|
|
44754
44821
|
Box,
|
|
44755
44822
|
{
|
|
44756
44823
|
display: "flex",
|
|
44757
44824
|
flexDirection: "row",
|
|
44758
44825
|
justifyContent: "space-between"
|
|
44759
44826
|
},
|
|
44760
|
-
mobile && /* @__PURE__ */
|
|
44761
|
-
/* @__PURE__ */
|
|
44827
|
+
mobile && /* @__PURE__ */ React284.createElement(Box, { width: "30" }),
|
|
44828
|
+
/* @__PURE__ */ React284.createElement(Box, { paddingBottom: "0", paddingLeft: "8", paddingTop: "4" }, /* @__PURE__ */ React284.createElement(
|
|
44762
44829
|
Text,
|
|
44763
44830
|
{
|
|
44764
44831
|
as: "h1",
|
|
@@ -44769,8 +44836,8 @@ function ChainModal({ onClose, open }) {
|
|
|
44769
44836
|
},
|
|
44770
44837
|
t("chainModal.switchNetworks")
|
|
44771
44838
|
)),
|
|
44772
|
-
/* @__PURE__ */
|
|
44773
|
-
), !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(
|
|
44774
44841
|
Box,
|
|
44775
44842
|
{
|
|
44776
44843
|
className: mobile ? MobileScrollClassName : DesktopScrollClassName,
|
|
@@ -44781,7 +44848,7 @@ function ChainModal({ onClose, open }) {
|
|
|
44781
44848
|
paddingBottom: "16"
|
|
44782
44849
|
},
|
|
44783
44850
|
funkitConnectChains.map(({ id }, idx) => {
|
|
44784
|
-
return /* @__PURE__ */
|
|
44851
|
+
return /* @__PURE__ */ React284.createElement(
|
|
44785
44852
|
Chain_default,
|
|
44786
44853
|
{
|
|
44787
44854
|
key: id,
|
|
@@ -44794,13 +44861,13 @@ function ChainModal({ onClose, open }) {
|
|
|
44794
44861
|
}
|
|
44795
44862
|
);
|
|
44796
44863
|
}),
|
|
44797
|
-
!isCurrentChainSupported && /* @__PURE__ */
|
|
44864
|
+
!isCurrentChainSupported && /* @__PURE__ */ React284.createElement(React284.Fragment, null, /* @__PURE__ */ React284.createElement(Box, { background: "generalBorderDim", height: "1", marginX: "8" }), /* @__PURE__ */ React284.createElement(
|
|
44798
44865
|
MenuButton,
|
|
44799
44866
|
{
|
|
44800
44867
|
onClick: () => handleLogout(),
|
|
44801
44868
|
testId: "chain-option-disconnect"
|
|
44802
44869
|
},
|
|
44803
|
-
/* @__PURE__ */
|
|
44870
|
+
/* @__PURE__ */ React284.createElement(
|
|
44804
44871
|
Box,
|
|
44805
44872
|
{
|
|
44806
44873
|
color: "error",
|
|
@@ -44808,7 +44875,7 @@ function ChainModal({ onClose, open }) {
|
|
|
44808
44875
|
fontSize: "16",
|
|
44809
44876
|
fontWeight: "bold"
|
|
44810
44877
|
},
|
|
44811
|
-
/* @__PURE__ */
|
|
44878
|
+
/* @__PURE__ */ React284.createElement(
|
|
44812
44879
|
Box,
|
|
44813
44880
|
{
|
|
44814
44881
|
alignItems: "center",
|
|
@@ -44816,7 +44883,7 @@ function ChainModal({ onClose, open }) {
|
|
|
44816
44883
|
flexDirection: "row",
|
|
44817
44884
|
justifyContent: "space-between"
|
|
44818
44885
|
},
|
|
44819
|
-
/* @__PURE__ */
|
|
44886
|
+
/* @__PURE__ */ React284.createElement(
|
|
44820
44887
|
Box,
|
|
44821
44888
|
{
|
|
44822
44889
|
alignItems: "center",
|
|
@@ -44825,7 +44892,7 @@ function ChainModal({ onClose, open }) {
|
|
|
44825
44892
|
gap: "4",
|
|
44826
44893
|
height: chainIconSize
|
|
44827
44894
|
},
|
|
44828
|
-
/* @__PURE__ */
|
|
44895
|
+
/* @__PURE__ */ React284.createElement(
|
|
44829
44896
|
Box,
|
|
44830
44897
|
{
|
|
44831
44898
|
alignItems: "center",
|
|
@@ -44834,9 +44901,9 @@ function ChainModal({ onClose, open }) {
|
|
|
44834
44901
|
justifyContent: "center",
|
|
44835
44902
|
marginRight: "8"
|
|
44836
44903
|
},
|
|
44837
|
-
/* @__PURE__ */
|
|
44904
|
+
/* @__PURE__ */ React284.createElement(DisconnectSqIcon, { size: Number(chainIconSize) })
|
|
44838
44905
|
),
|
|
44839
|
-
/* @__PURE__ */
|
|
44906
|
+
/* @__PURE__ */ React284.createElement("div", null, t("chainModal.disconnect"))
|
|
44840
44907
|
)
|
|
44841
44908
|
)
|
|
44842
44909
|
)
|
|
@@ -44848,13 +44915,13 @@ function ChainModal({ onClose, open }) {
|
|
|
44848
44915
|
// src/modals/CheckoutModal/FunCheckoutModal.tsx
|
|
44849
44916
|
import { FUNKIT_CONNECT_SUPPORTED_CHECKOUT_CHAINS_INFO_LIST as FUNKIT_CONNECT_SUPPORTED_CHECKOUT_CHAINS_INFO_LIST2 } from "@funkit/chains";
|
|
44850
44917
|
import { LogLevel as LogLevel2, initializeRelayClient } from "@funkit/fun-relay";
|
|
44851
|
-
import
|
|
44918
|
+
import React299, { useEffect as useEffect80, useRef as useRef40 } from "react";
|
|
44852
44919
|
|
|
44853
44920
|
// src/components/FunConnectOptions/FunConnectOptions.tsx
|
|
44854
|
-
import
|
|
44921
|
+
import React290, { useCallback as useCallback52, useMemo as useMemo63, useState as useState82 } from "react";
|
|
44855
44922
|
|
|
44856
44923
|
// src/components/FunConnectOptions/FunConnectResultStep.tsx
|
|
44857
|
-
import
|
|
44924
|
+
import React285, { useEffect as useEffect72 } from "react";
|
|
44858
44925
|
var AUTO_CLOSE = 2e3;
|
|
44859
44926
|
var messageMap = (hasQrCode) => ({
|
|
44860
44927
|
error: {
|
|
@@ -44882,7 +44949,7 @@ var FunConnectResultStep = ({
|
|
|
44882
44949
|
}, [onClose, hasAutoclose]);
|
|
44883
44950
|
const hasQrCode = wallet?.qrCode && qrCodeUri;
|
|
44884
44951
|
const message = messageMap(!!hasQrCode)[type];
|
|
44885
|
-
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(
|
|
44886
44953
|
Box,
|
|
44887
44954
|
{
|
|
44888
44955
|
alignItems: "center",
|
|
@@ -44891,7 +44958,7 @@ var FunConnectResultStep = ({
|
|
|
44891
44958
|
justifyContent: "center",
|
|
44892
44959
|
flexDirection: "column"
|
|
44893
44960
|
},
|
|
44894
|
-
/* @__PURE__ */
|
|
44961
|
+
/* @__PURE__ */ React285.createElement(
|
|
44895
44962
|
QRCode,
|
|
44896
44963
|
{
|
|
44897
44964
|
logoBackground: wallet.iconBackground,
|
|
@@ -44901,7 +44968,7 @@ var FunConnectResultStep = ({
|
|
|
44901
44968
|
uri: qrCodeUri
|
|
44902
44969
|
}
|
|
44903
44970
|
)
|
|
44904
|
-
) : /* @__PURE__ */
|
|
44971
|
+
) : /* @__PURE__ */ React285.createElement(
|
|
44905
44972
|
Box,
|
|
44906
44973
|
{
|
|
44907
44974
|
padding: "30",
|
|
@@ -44910,7 +44977,7 @@ var FunConnectResultStep = ({
|
|
|
44910
44977
|
borderStyle: "solid",
|
|
44911
44978
|
borderColor: type === "success" ? "buttonSuccess" : "buttonWarning"
|
|
44912
44979
|
},
|
|
44913
|
-
wallet && /* @__PURE__ */
|
|
44980
|
+
wallet && /* @__PURE__ */ React285.createElement(Box, { style: { width: 40, height: 40 } }, /* @__PURE__ */ React285.createElement(
|
|
44914
44981
|
AsyncImage,
|
|
44915
44982
|
{
|
|
44916
44983
|
background: wallet.iconBackground,
|
|
@@ -44920,12 +44987,12 @@ var FunConnectResultStep = ({
|
|
|
44920
44987
|
height: 40
|
|
44921
44988
|
}
|
|
44922
44989
|
))
|
|
44923
|
-
), /* @__PURE__ */
|
|
44990
|
+
), /* @__PURE__ */ React285.createElement(FunMessage, { title: message.title, description: message.description })));
|
|
44924
44991
|
};
|
|
44925
44992
|
|
|
44926
44993
|
// src/components/FunConnectOptions/FunSignInStep.tsx
|
|
44927
44994
|
import { isMobile as isMobile13, isSafari as isSafari2, redirectInMobile } from "@funkit/utils";
|
|
44928
|
-
import
|
|
44995
|
+
import React287, { useState as useState81 } from "react";
|
|
44929
44996
|
|
|
44930
44997
|
// src/wallets/latestWalletId.ts
|
|
44931
44998
|
var storageKey5 = "fkc-latest-id";
|
|
@@ -44934,7 +45001,7 @@ function addLatestWalletId(walletId) {
|
|
|
44934
45001
|
}
|
|
44935
45002
|
|
|
44936
45003
|
// src/components/ModalSelection/ModalSelection.tsx
|
|
44937
|
-
import
|
|
45004
|
+
import React286, { useState as useState80 } from "react";
|
|
44938
45005
|
var ModalSelection = ({
|
|
44939
45006
|
as = "button",
|
|
44940
45007
|
currentlySelected = false,
|
|
@@ -44951,7 +45018,7 @@ var ModalSelection = ({
|
|
|
44951
45018
|
}) => {
|
|
44952
45019
|
const [isMouseOver, setIsMouseOver] = useState80(false);
|
|
44953
45020
|
const { t } = useFunkitTranslation();
|
|
44954
|
-
return /* @__PURE__ */
|
|
45021
|
+
return /* @__PURE__ */ React286.createElement(
|
|
44955
45022
|
Box,
|
|
44956
45023
|
{
|
|
44957
45024
|
display: "flex",
|
|
@@ -44959,7 +45026,7 @@ var ModalSelection = ({
|
|
|
44959
45026
|
onMouseEnter: () => setIsMouseOver(true),
|
|
44960
45027
|
onMouseLeave: () => setIsMouseOver(false)
|
|
44961
45028
|
},
|
|
44962
|
-
/* @__PURE__ */
|
|
45029
|
+
/* @__PURE__ */ React286.createElement(
|
|
44963
45030
|
Box,
|
|
44964
45031
|
{
|
|
44965
45032
|
as,
|
|
@@ -44983,7 +45050,7 @@ var ModalSelection = ({
|
|
|
44983
45050
|
width: "full",
|
|
44984
45051
|
...urlProps
|
|
44985
45052
|
},
|
|
44986
|
-
/* @__PURE__ */
|
|
45053
|
+
/* @__PURE__ */ React286.createElement(
|
|
44987
45054
|
Box,
|
|
44988
45055
|
{
|
|
44989
45056
|
color: currentlySelected ? "accentColorForeground" : "primaryText",
|
|
@@ -44993,7 +45060,7 @@ var ModalSelection = ({
|
|
|
44993
45060
|
fontWeight: "medium",
|
|
44994
45061
|
transition: "default"
|
|
44995
45062
|
},
|
|
44996
|
-
/* @__PURE__ */
|
|
45063
|
+
/* @__PURE__ */ React286.createElement(Box, { alignItems: "center", display: "flex", flexDirection: "row", gap: "12" }, icon ? icon : /* @__PURE__ */ React286.createElement(
|
|
44997
45064
|
AsyncImage,
|
|
44998
45065
|
{
|
|
44999
45066
|
background: iconBackground,
|
|
@@ -45004,7 +45071,7 @@ var ModalSelection = ({
|
|
|
45004
45071
|
src: iconUrl,
|
|
45005
45072
|
width: "18"
|
|
45006
45073
|
}
|
|
45007
|
-
), /* @__PURE__ */
|
|
45074
|
+
), /* @__PURE__ */ React286.createElement(
|
|
45008
45075
|
Box,
|
|
45009
45076
|
{
|
|
45010
45077
|
display: "flex",
|
|
@@ -45012,8 +45079,8 @@ var ModalSelection = ({
|
|
|
45012
45079
|
style: { flex: 1 },
|
|
45013
45080
|
alignItems: "center"
|
|
45014
45081
|
},
|
|
45015
|
-
/* @__PURE__ */
|
|
45016
|
-
recent && /* @__PURE__ */
|
|
45082
|
+
/* @__PURE__ */ React286.createElement(Box, { maxWidth: "200" }, name),
|
|
45083
|
+
recent && /* @__PURE__ */ React286.createElement(
|
|
45017
45084
|
FunBadge,
|
|
45018
45085
|
{
|
|
45019
45086
|
borderRadius: "smallBadge",
|
|
@@ -45102,8 +45169,8 @@ function FunSignInStep({
|
|
|
45102
45169
|
}
|
|
45103
45170
|
};
|
|
45104
45171
|
const makeWeb3LoginSection = () => {
|
|
45105
|
-
return /* @__PURE__ */
|
|
45106
|
-
return /* @__PURE__ */
|
|
45172
|
+
return /* @__PURE__ */ React287.createElement(Box, { display: "flex", flexDirection: "column", gap: "walletConnectorListGap" }, wallets.map((wallet) => {
|
|
45173
|
+
return /* @__PURE__ */ React287.createElement(
|
|
45107
45174
|
ModalSelection,
|
|
45108
45175
|
{
|
|
45109
45176
|
currentlySelected: wallet.id === selectedOptionId,
|
|
@@ -45120,14 +45187,14 @@ function FunSignInStep({
|
|
|
45120
45187
|
}));
|
|
45121
45188
|
};
|
|
45122
45189
|
const Web3LoginSection = makeWeb3LoginSection();
|
|
45123
|
-
return /* @__PURE__ */
|
|
45190
|
+
return /* @__PURE__ */ React287.createElement(Box, { display: "flex", flexDirection: "column", gap: "24" }, Web3LoginSection);
|
|
45124
45191
|
}
|
|
45125
45192
|
|
|
45126
45193
|
// src/components/FunConnectOptions/FunWeb3ConnectingStep.tsx
|
|
45127
|
-
import
|
|
45194
|
+
import React289 from "react";
|
|
45128
45195
|
|
|
45129
45196
|
// src/components/GradientLoader/GradientLoader.tsx
|
|
45130
|
-
import
|
|
45197
|
+
import React288 from "react";
|
|
45131
45198
|
|
|
45132
45199
|
// src/components/GradientLoader/GradientLoader.css.ts
|
|
45133
45200
|
var loader = "m17uwo1";
|
|
@@ -45137,7 +45204,7 @@ var GradientLoader = ({
|
|
|
45137
45204
|
height = "100",
|
|
45138
45205
|
width = "100"
|
|
45139
45206
|
}) => {
|
|
45140
|
-
return /* @__PURE__ */
|
|
45207
|
+
return /* @__PURE__ */ React288.createElement(
|
|
45141
45208
|
Box,
|
|
45142
45209
|
{
|
|
45143
45210
|
className: loader,
|
|
@@ -45158,7 +45225,7 @@ var FunWeb3ConnectingStep = ({ selectedWallet, qrCodeUri }) => {
|
|
|
45158
45225
|
}
|
|
45159
45226
|
const { iconBackground, iconUrl, name, qrCode, ready } = selectedWallet;
|
|
45160
45227
|
const hasQrCode = qrCode && qrCodeUri;
|
|
45161
|
-
const waitingMessage = /* @__PURE__ */
|
|
45228
|
+
const waitingMessage = /* @__PURE__ */ React289.createElement(
|
|
45162
45229
|
FunMessage,
|
|
45163
45230
|
{
|
|
45164
45231
|
title: `Waiting for ${hasQrCode ? "connection" : name}`,
|
|
@@ -45166,7 +45233,7 @@ var FunWeb3ConnectingStep = ({ selectedWallet, qrCodeUri }) => {
|
|
|
45166
45233
|
id: "link-text"
|
|
45167
45234
|
}
|
|
45168
45235
|
);
|
|
45169
|
-
return /* @__PURE__ */
|
|
45236
|
+
return /* @__PURE__ */ React289.createElement(Box, { display: "flex", flexDirection: "column", gap: "24", paddingBottom: "12" }, hasQrCode ? /* @__PURE__ */ React289.createElement(
|
|
45170
45237
|
Box,
|
|
45171
45238
|
{
|
|
45172
45239
|
alignItems: "center",
|
|
@@ -45176,7 +45243,7 @@ var FunWeb3ConnectingStep = ({ selectedWallet, qrCodeUri }) => {
|
|
|
45176
45243
|
gap: "12",
|
|
45177
45244
|
flexDirection: "column"
|
|
45178
45245
|
},
|
|
45179
|
-
/* @__PURE__ */
|
|
45246
|
+
/* @__PURE__ */ React289.createElement(
|
|
45180
45247
|
QRCode,
|
|
45181
45248
|
{
|
|
45182
45249
|
logoBackground: iconBackground,
|
|
@@ -45187,7 +45254,7 @@ var FunWeb3ConnectingStep = ({ selectedWallet, qrCodeUri }) => {
|
|
|
45187
45254
|
}
|
|
45188
45255
|
),
|
|
45189
45256
|
waitingMessage
|
|
45190
|
-
) : /* @__PURE__ */
|
|
45257
|
+
) : /* @__PURE__ */ React289.createElement(
|
|
45191
45258
|
Box,
|
|
45192
45259
|
{
|
|
45193
45260
|
alignItems: "center",
|
|
@@ -45196,7 +45263,7 @@ var FunWeb3ConnectingStep = ({ selectedWallet, qrCodeUri }) => {
|
|
|
45196
45263
|
flexDirection: "column",
|
|
45197
45264
|
gap: "12"
|
|
45198
45265
|
},
|
|
45199
|
-
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(
|
|
45200
45267
|
AsyncImage,
|
|
45201
45268
|
{
|
|
45202
45269
|
background: iconBackground,
|
|
@@ -45296,7 +45363,7 @@ function FunConnectOptions({
|
|
|
45296
45363
|
const stepComponent = useMemo63(() => {
|
|
45297
45364
|
switch (step) {
|
|
45298
45365
|
case 0 /* SIGNIN_PRIMARY */:
|
|
45299
|
-
return /* @__PURE__ */
|
|
45366
|
+
return /* @__PURE__ */ React290.createElement(
|
|
45300
45367
|
FunSignInStep,
|
|
45301
45368
|
{
|
|
45302
45369
|
signInStep: step,
|
|
@@ -45308,7 +45375,7 @@ function FunConnectOptions({
|
|
|
45308
45375
|
}
|
|
45309
45376
|
);
|
|
45310
45377
|
case 1 /* PENDING_WALLET */:
|
|
45311
|
-
return /* @__PURE__ */
|
|
45378
|
+
return /* @__PURE__ */ React290.createElement(
|
|
45312
45379
|
FunWeb3ConnectingStep,
|
|
45313
45380
|
{
|
|
45314
45381
|
selectedWallet,
|
|
@@ -45316,7 +45383,7 @@ function FunConnectOptions({
|
|
|
45316
45383
|
}
|
|
45317
45384
|
);
|
|
45318
45385
|
case 2 /* ERROR_WEB3 */:
|
|
45319
|
-
return /* @__PURE__ */
|
|
45386
|
+
return /* @__PURE__ */ React290.createElement(
|
|
45320
45387
|
FunConnectResultStep,
|
|
45321
45388
|
{
|
|
45322
45389
|
onClose,
|
|
@@ -45327,7 +45394,7 @@ function FunConnectOptions({
|
|
|
45327
45394
|
);
|
|
45328
45395
|
}
|
|
45329
45396
|
}, [connectToWallet, navigateTo, onClose, qrCodeUri, selectedWallet, step]);
|
|
45330
|
-
return /* @__PURE__ */
|
|
45397
|
+
return /* @__PURE__ */ React290.createElement(React290.Fragment, null, /* @__PURE__ */ React290.createElement(Dialog.Title, { onClose, ...navigationConfig[step] }), /* @__PURE__ */ React290.createElement(
|
|
45331
45398
|
Dialog.Content,
|
|
45332
45399
|
{
|
|
45333
45400
|
display: "flex",
|
|
@@ -45339,7 +45406,7 @@ function FunConnectOptions({
|
|
|
45339
45406
|
withBottomDivider: actionConfig[step] ? "always" : "never"
|
|
45340
45407
|
},
|
|
45341
45408
|
stepComponent
|
|
45342
|
-
), /* @__PURE__ */
|
|
45409
|
+
), /* @__PURE__ */ React290.createElement(Dialog.BottomSection, { id: MODAL_BOTTOM_BAR_IDS.connectwallet }, actionConfig[step] && /* @__PURE__ */ React290.createElement(Dialog.BottomBar, { ...actionConfig[step] })));
|
|
45343
45410
|
}
|
|
45344
45411
|
|
|
45345
45412
|
// src/hooks/useIsCheckoutComplete.ts
|
|
@@ -45359,7 +45426,7 @@ function useIsCheckoutComplete(depositAddress) {
|
|
|
45359
45426
|
}
|
|
45360
45427
|
|
|
45361
45428
|
// src/components/FunCheckoutBlocked/FunCheckoutBlocked.tsx
|
|
45362
|
-
import
|
|
45429
|
+
import React291 from "react";
|
|
45363
45430
|
import { Trans as Trans19 } from "react-i18next";
|
|
45364
45431
|
|
|
45365
45432
|
// src/components/FunCheckoutBlocked/FunCheckoutBlocked.css.ts
|
|
@@ -45373,35 +45440,35 @@ var FunCheckoutBlocked = ({ reason }) => {
|
|
|
45373
45440
|
}
|
|
45374
45441
|
const blockedReasonToDescription = {
|
|
45375
45442
|
fullGeoblock: t("funCheckoutBlocked.geoblock", { orgName: FUN_ORG_NAME }),
|
|
45376
|
-
security: /* @__PURE__ */
|
|
45443
|
+
security: /* @__PURE__ */ React291.createElement(
|
|
45377
45444
|
Trans19,
|
|
45378
45445
|
{
|
|
45379
45446
|
t,
|
|
45380
45447
|
i18nKey: "funCheckoutBlocked.security",
|
|
45381
45448
|
components: {
|
|
45382
|
-
ContactSupportLink: /* @__PURE__ */
|
|
45449
|
+
ContactSupportLink: /* @__PURE__ */ React291.createElement(ContactSupportLink, { size: "10" })
|
|
45383
45450
|
},
|
|
45384
45451
|
values: {
|
|
45385
45452
|
orgName: FUN_ORG_NAME
|
|
45386
45453
|
}
|
|
45387
45454
|
}
|
|
45388
45455
|
),
|
|
45389
|
-
unloggedin: /* @__PURE__ */
|
|
45456
|
+
unloggedin: /* @__PURE__ */ React291.createElement(
|
|
45390
45457
|
Trans19,
|
|
45391
45458
|
{
|
|
45392
45459
|
t,
|
|
45393
45460
|
i18nKey: "funCheckoutBlocked.unloggedin",
|
|
45394
45461
|
components: {
|
|
45395
|
-
ContactSupportLink: /* @__PURE__ */
|
|
45462
|
+
ContactSupportLink: /* @__PURE__ */ React291.createElement(ContactSupportLink, { size: "10" })
|
|
45396
45463
|
}
|
|
45397
45464
|
}
|
|
45398
45465
|
)
|
|
45399
45466
|
};
|
|
45400
45467
|
const description = blockedReasonToDescription[reason];
|
|
45401
|
-
return /* @__PURE__ */
|
|
45468
|
+
return /* @__PURE__ */ React291.createElement(Box, { className: funCheckoutBlockedStyle }, /* @__PURE__ */ React291.createElement(
|
|
45402
45469
|
FunAlert,
|
|
45403
45470
|
{
|
|
45404
|
-
icon: /* @__PURE__ */
|
|
45471
|
+
icon: /* @__PURE__ */ React291.createElement(FunInfoIcon, null),
|
|
45405
45472
|
description,
|
|
45406
45473
|
verticalAlignment: "top"
|
|
45407
45474
|
}
|
|
@@ -45429,7 +45496,7 @@ function CheckoutModalPrefetchedHooks() {
|
|
|
45429
45496
|
}
|
|
45430
45497
|
|
|
45431
45498
|
// src/modals/CheckoutModal/SwappedIframe/SwappedIframe.tsx
|
|
45432
|
-
import
|
|
45499
|
+
import React292, { useEffect as useEffect74, useState as useState83 } from "react";
|
|
45433
45500
|
var SwappedIframe = () => {
|
|
45434
45501
|
const { iframeUrl, isSwappedReady, isActive, setIframeRef } = useSwappedContext();
|
|
45435
45502
|
const [visible, setVisible] = useState83(false);
|
|
@@ -45444,7 +45511,7 @@ var SwappedIframe = () => {
|
|
|
45444
45511
|
if (!iframeUrl) {
|
|
45445
45512
|
return null;
|
|
45446
45513
|
}
|
|
45447
|
-
return /* @__PURE__ */
|
|
45514
|
+
return /* @__PURE__ */ React292.createElement(
|
|
45448
45515
|
Box,
|
|
45449
45516
|
{
|
|
45450
45517
|
background: "modalBackground",
|
|
@@ -45463,7 +45530,7 @@ var SwappedIframe = () => {
|
|
|
45463
45530
|
},
|
|
45464
45531
|
"aria-hidden": !shouldShow
|
|
45465
45532
|
},
|
|
45466
|
-
/* @__PURE__ */
|
|
45533
|
+
/* @__PURE__ */ React292.createElement(
|
|
45467
45534
|
"iframe",
|
|
45468
45535
|
{
|
|
45469
45536
|
ref: setIframeRef,
|
|
@@ -45486,20 +45553,20 @@ var SwappedIframe = () => {
|
|
|
45486
45553
|
)
|
|
45487
45554
|
);
|
|
45488
45555
|
};
|
|
45489
|
-
var SwappedIframe_default =
|
|
45556
|
+
var SwappedIframe_default = React292.memo(SwappedIframe);
|
|
45490
45557
|
|
|
45491
45558
|
// src/modals/CheckoutModal/TransferToken/CheckoutNotifications.tsx
|
|
45492
45559
|
import clsx26 from "clsx";
|
|
45493
|
-
import
|
|
45560
|
+
import React298, { useCallback as useCallback54, useEffect as useEffect78, useMemo as useMemo64, useState as useState85 } from "react";
|
|
45494
45561
|
|
|
45495
45562
|
// src/components/FunNotificationBanner/FunNotificationShowMoreButton.tsx
|
|
45496
|
-
import
|
|
45563
|
+
import React293 from "react";
|
|
45497
45564
|
var FunNotificationShowMoreButton = ({
|
|
45498
45565
|
numberOfNotifications,
|
|
45499
45566
|
isExpanded,
|
|
45500
45567
|
onClick
|
|
45501
45568
|
}) => {
|
|
45502
|
-
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(
|
|
45503
45570
|
Box,
|
|
45504
45571
|
{
|
|
45505
45572
|
width: "16",
|
|
@@ -45508,7 +45575,7 @@ var FunNotificationShowMoreButton = ({
|
|
|
45508
45575
|
alignItems: "center",
|
|
45509
45576
|
justifyContent: "center"
|
|
45510
45577
|
},
|
|
45511
|
-
/* @__PURE__ */
|
|
45578
|
+
/* @__PURE__ */ React293.createElement(
|
|
45512
45579
|
Box,
|
|
45513
45580
|
{
|
|
45514
45581
|
color: "secondaryText",
|
|
@@ -45519,10 +45586,10 @@ var FunNotificationShowMoreButton = ({
|
|
|
45519
45586
|
justifyContent: "center",
|
|
45520
45587
|
style: isExpanded ? { transform: "rotate(180deg)" } : void 0
|
|
45521
45588
|
},
|
|
45522
|
-
/* @__PURE__ */
|
|
45589
|
+
/* @__PURE__ */ React293.createElement(CaretDownIcon, null)
|
|
45523
45590
|
)
|
|
45524
45591
|
));
|
|
45525
|
-
return /* @__PURE__ */
|
|
45592
|
+
return /* @__PURE__ */ React293.createElement(
|
|
45526
45593
|
FunButton,
|
|
45527
45594
|
{
|
|
45528
45595
|
type: "tertiary",
|
|
@@ -45604,12 +45671,12 @@ var getUniqueId = (item) => {
|
|
|
45604
45671
|
};
|
|
45605
45672
|
|
|
45606
45673
|
// src/modals/CheckoutModal/TransferToken/CheckoutNotification.tsx
|
|
45607
|
-
import
|
|
45674
|
+
import React296 from "react";
|
|
45608
45675
|
import { Trans as Trans20 } from "react-i18next";
|
|
45609
45676
|
|
|
45610
45677
|
// src/components/FunNotificationBanner/FunNotificationBanner.tsx
|
|
45611
45678
|
import { AnimatePresence as AnimatePresence6, motion as motion19 } from "motion/react";
|
|
45612
|
-
import
|
|
45679
|
+
import React295, { useEffect as useEffect77, useRef as useRef39, useState as useState84 } from "react";
|
|
45613
45680
|
import clsx25 from "clsx";
|
|
45614
45681
|
|
|
45615
45682
|
// src/components/FunNotificationBanner/FunNotificationBanner.css.ts
|
|
@@ -45619,7 +45686,7 @@ var showMoreButtonStyle = "_4yitd93 _1rsrm2f1r4 _1rsrm2f1i _1rsrm2f1f _1rsrm2f11
|
|
|
45619
45686
|
// src/components/FunNotificationBanner/FunNotificationBannerIcon.tsx
|
|
45620
45687
|
import clsx24 from "clsx";
|
|
45621
45688
|
import { motion as motion18, useAnimate as useAnimate3 } from "motion/react";
|
|
45622
|
-
import
|
|
45689
|
+
import React294, { useCallback as useCallback53, useEffect as useEffect76, useRef as useRef38 } from "react";
|
|
45623
45690
|
|
|
45624
45691
|
// src/components/FunNotificationBanner/FunNotificationBannerIcon.css.ts
|
|
45625
45692
|
var STATUS_SPINNER_BOTTOM_POSITION = -5;
|
|
@@ -45632,7 +45699,7 @@ var statusSpinner = "_1i8t3xj4 qe221a3";
|
|
|
45632
45699
|
function generateAnimationPrefixClassName(className) {
|
|
45633
45700
|
return `framer-fnb-${className}`;
|
|
45634
45701
|
}
|
|
45635
|
-
var successIcon = /* @__PURE__ */
|
|
45702
|
+
var successIcon = /* @__PURE__ */ React294.createElement(
|
|
45636
45703
|
motion18.svg,
|
|
45637
45704
|
{
|
|
45638
45705
|
width: "16",
|
|
@@ -45641,8 +45708,8 @@ var successIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45641
45708
|
fill: "none",
|
|
45642
45709
|
xmlns: "http://www.w3.org/2000/svg"
|
|
45643
45710
|
},
|
|
45644
|
-
/* @__PURE__ */
|
|
45645
|
-
/* @__PURE__ */
|
|
45711
|
+
/* @__PURE__ */ React294.createElement("circle", { cx: "8", cy: "8", r: "8", fill: "#66CC00" }),
|
|
45712
|
+
/* @__PURE__ */ React294.createElement(
|
|
45646
45713
|
motion18.path,
|
|
45647
45714
|
{
|
|
45648
45715
|
d: "M5 8L7 10L11.5 5.5",
|
|
@@ -45652,7 +45719,7 @@ var successIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45652
45719
|
}
|
|
45653
45720
|
)
|
|
45654
45721
|
);
|
|
45655
|
-
var errorIcon = /* @__PURE__ */
|
|
45722
|
+
var errorIcon = /* @__PURE__ */ React294.createElement(
|
|
45656
45723
|
"svg",
|
|
45657
45724
|
{
|
|
45658
45725
|
width: "16",
|
|
@@ -45661,8 +45728,8 @@ var errorIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45661
45728
|
fill: "none",
|
|
45662
45729
|
xmlns: "http://www.w3.org/2000/svg"
|
|
45663
45730
|
},
|
|
45664
|
-
/* @__PURE__ */
|
|
45665
|
-
/* @__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(
|
|
45666
45733
|
"path",
|
|
45667
45734
|
{
|
|
45668
45735
|
d: "M5 5L11 11",
|
|
@@ -45671,7 +45738,7 @@ var errorIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45671
45738
|
strokeLinejoin: "round"
|
|
45672
45739
|
}
|
|
45673
45740
|
),
|
|
45674
|
-
/* @__PURE__ */
|
|
45741
|
+
/* @__PURE__ */ React294.createElement(
|
|
45675
45742
|
"path",
|
|
45676
45743
|
{
|
|
45677
45744
|
d: "M5 11L11 5",
|
|
@@ -45680,7 +45747,7 @@ var errorIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45680
45747
|
strokeLinejoin: "round"
|
|
45681
45748
|
}
|
|
45682
45749
|
),
|
|
45683
|
-
/* @__PURE__ */
|
|
45750
|
+
/* @__PURE__ */ React294.createElement("defs", null, /* @__PURE__ */ React294.createElement(
|
|
45684
45751
|
"filter",
|
|
45685
45752
|
{
|
|
45686
45753
|
id: "filter0_i_19769_7642",
|
|
@@ -45691,8 +45758,8 @@ var errorIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45691
45758
|
filterUnits: "userSpaceOnUse",
|
|
45692
45759
|
colorInterpolationFilters: "sRGB"
|
|
45693
45760
|
},
|
|
45694
|
-
/* @__PURE__ */
|
|
45695
|
-
/* @__PURE__ */
|
|
45761
|
+
/* @__PURE__ */ React294.createElement("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
45762
|
+
/* @__PURE__ */ React294.createElement(
|
|
45696
45763
|
"feBlend",
|
|
45697
45764
|
{
|
|
45698
45765
|
mode: "normal",
|
|
@@ -45701,7 +45768,7 @@ var errorIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45701
45768
|
result: "shape"
|
|
45702
45769
|
}
|
|
45703
45770
|
),
|
|
45704
|
-
/* @__PURE__ */
|
|
45771
|
+
/* @__PURE__ */ React294.createElement(
|
|
45705
45772
|
"feColorMatrix",
|
|
45706
45773
|
{
|
|
45707
45774
|
in: "SourceAlpha",
|
|
@@ -45710,16 +45777,16 @@ var errorIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45710
45777
|
result: "hardAlpha"
|
|
45711
45778
|
}
|
|
45712
45779
|
),
|
|
45713
|
-
/* @__PURE__ */
|
|
45714
|
-
/* @__PURE__ */
|
|
45715
|
-
/* @__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(
|
|
45716
45783
|
"feColorMatrix",
|
|
45717
45784
|
{
|
|
45718
45785
|
type: "matrix",
|
|
45719
45786
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"
|
|
45720
45787
|
}
|
|
45721
45788
|
),
|
|
45722
|
-
/* @__PURE__ */
|
|
45789
|
+
/* @__PURE__ */ React294.createElement(
|
|
45723
45790
|
"feBlend",
|
|
45724
45791
|
{
|
|
45725
45792
|
mode: "normal",
|
|
@@ -45729,7 +45796,7 @@ var errorIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45729
45796
|
)
|
|
45730
45797
|
))
|
|
45731
45798
|
);
|
|
45732
|
-
var pendingIcon = /* @__PURE__ */
|
|
45799
|
+
var pendingIcon = /* @__PURE__ */ React294.createElement(
|
|
45733
45800
|
motion18.svg,
|
|
45734
45801
|
{
|
|
45735
45802
|
width: "16",
|
|
@@ -45738,8 +45805,8 @@ var pendingIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45738
45805
|
fill: "none",
|
|
45739
45806
|
xmlns: "http://www.w3.org/2000/svg"
|
|
45740
45807
|
},
|
|
45741
|
-
/* @__PURE__ */
|
|
45742
|
-
/* @__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(
|
|
45743
45810
|
motion18.path,
|
|
45744
45811
|
{
|
|
45745
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",
|
|
@@ -45749,7 +45816,7 @@ var pendingIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45749
45816
|
strokeLinejoin: "round"
|
|
45750
45817
|
}
|
|
45751
45818
|
)),
|
|
45752
|
-
/* @__PURE__ */
|
|
45819
|
+
/* @__PURE__ */ React294.createElement("defs", null, /* @__PURE__ */ React294.createElement(
|
|
45753
45820
|
"filter",
|
|
45754
45821
|
{
|
|
45755
45822
|
id: "filter0_i_19866_15799",
|
|
@@ -45760,8 +45827,8 @@ var pendingIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45760
45827
|
filterUnits: "userSpaceOnUse",
|
|
45761
45828
|
colorInterpolationFilters: "sRGB"
|
|
45762
45829
|
},
|
|
45763
|
-
/* @__PURE__ */
|
|
45764
|
-
/* @__PURE__ */
|
|
45830
|
+
/* @__PURE__ */ React294.createElement("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
45831
|
+
/* @__PURE__ */ React294.createElement(
|
|
45765
45832
|
"feBlend",
|
|
45766
45833
|
{
|
|
45767
45834
|
mode: "normal",
|
|
@@ -45770,7 +45837,7 @@ var pendingIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45770
45837
|
result: "shape"
|
|
45771
45838
|
}
|
|
45772
45839
|
),
|
|
45773
|
-
/* @__PURE__ */
|
|
45840
|
+
/* @__PURE__ */ React294.createElement(
|
|
45774
45841
|
"feColorMatrix",
|
|
45775
45842
|
{
|
|
45776
45843
|
in: "SourceAlpha",
|
|
@@ -45779,16 +45846,16 @@ var pendingIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45779
45846
|
result: "hardAlpha"
|
|
45780
45847
|
}
|
|
45781
45848
|
),
|
|
45782
|
-
/* @__PURE__ */
|
|
45783
|
-
/* @__PURE__ */
|
|
45784
|
-
/* @__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(
|
|
45785
45852
|
"feColorMatrix",
|
|
45786
45853
|
{
|
|
45787
45854
|
type: "matrix",
|
|
45788
45855
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"
|
|
45789
45856
|
}
|
|
45790
45857
|
),
|
|
45791
|
-
/* @__PURE__ */
|
|
45858
|
+
/* @__PURE__ */ React294.createElement(
|
|
45792
45859
|
"feBlend",
|
|
45793
45860
|
{
|
|
45794
45861
|
mode: "normal",
|
|
@@ -45796,9 +45863,9 @@ var pendingIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45796
45863
|
result: "effect1_innerShadow_19866_15799"
|
|
45797
45864
|
}
|
|
45798
45865
|
)
|
|
45799
|
-
), /* @__PURE__ */
|
|
45866
|
+
), /* @__PURE__ */ React294.createElement("clipPath", { id: "clip0_19866_15799" }, /* @__PURE__ */ React294.createElement("rect", { width: "12", height: "12", fill: "white", transform: "translate(2 2)" })))
|
|
45800
45867
|
);
|
|
45801
|
-
var downloadIcon = /* @__PURE__ */
|
|
45868
|
+
var downloadIcon = /* @__PURE__ */ React294.createElement(
|
|
45802
45869
|
motion18.svg,
|
|
45803
45870
|
{
|
|
45804
45871
|
width: "16",
|
|
@@ -45807,8 +45874,8 @@ var downloadIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45807
45874
|
fill: "none",
|
|
45808
45875
|
xmlns: "http://www.w3.org/2000/svg"
|
|
45809
45876
|
},
|
|
45810
|
-
/* @__PURE__ */
|
|
45811
|
-
/* @__PURE__ */
|
|
45877
|
+
/* @__PURE__ */ React294.createElement("circle", { cx: "8", cy: "8", r: "8", fill: "#66CC00" }),
|
|
45878
|
+
/* @__PURE__ */ React294.createElement(
|
|
45812
45879
|
motion18.path,
|
|
45813
45880
|
{
|
|
45814
45881
|
d: "M8 4C8 6.14788 8 11.5 8 11.5M8 11.5L11 8.5M8 11.5L5 8.5",
|
|
@@ -45819,7 +45886,7 @@ var downloadIcon = /* @__PURE__ */ React293.createElement(
|
|
|
45819
45886
|
)
|
|
45820
45887
|
);
|
|
45821
45888
|
var SpinnerBase = ({ variant }) => {
|
|
45822
|
-
return /* @__PURE__ */
|
|
45889
|
+
return /* @__PURE__ */ React294.createElement(motion18.div, null, /* @__PURE__ */ React294.createElement(
|
|
45823
45890
|
Box,
|
|
45824
45891
|
{
|
|
45825
45892
|
className: clsx24(
|
|
@@ -45828,7 +45895,7 @@ var SpinnerBase = ({ variant }) => {
|
|
|
45828
45895
|
),
|
|
45829
45896
|
color: variant === "processing" ? "success" : "inputBorderHover"
|
|
45830
45897
|
},
|
|
45831
|
-
/* @__PURE__ */
|
|
45898
|
+
/* @__PURE__ */ React294.createElement(
|
|
45832
45899
|
"svg",
|
|
45833
45900
|
{
|
|
45834
45901
|
width: "24",
|
|
@@ -45837,7 +45904,7 @@ var SpinnerBase = ({ variant }) => {
|
|
|
45837
45904
|
fill: "none",
|
|
45838
45905
|
xmlns: "http://www.w3.org/2000/svg"
|
|
45839
45906
|
},
|
|
45840
|
-
/* @__PURE__ */
|
|
45907
|
+
/* @__PURE__ */ React294.createElement(
|
|
45841
45908
|
"circle",
|
|
45842
45909
|
{
|
|
45843
45910
|
opacity: "0.5",
|
|
@@ -45853,8 +45920,8 @@ var SpinnerBase = ({ variant }) => {
|
|
|
45853
45920
|
)
|
|
45854
45921
|
));
|
|
45855
45922
|
};
|
|
45856
|
-
var ProcessingSpinner = () => /* @__PURE__ */
|
|
45857
|
-
var DelayedSpinner = () => /* @__PURE__ */
|
|
45923
|
+
var ProcessingSpinner = () => /* @__PURE__ */ React294.createElement(SpinnerBase, { variant: "processing" });
|
|
45924
|
+
var DelayedSpinner = () => /* @__PURE__ */ React294.createElement(SpinnerBase, { variant: "delayed" });
|
|
45858
45925
|
var statusIconMap = {
|
|
45859
45926
|
processing: downloadIcon,
|
|
45860
45927
|
delayed: downloadIcon,
|
|
@@ -46085,7 +46152,7 @@ var FunNotificationBannerIcon = ({
|
|
|
46085
46152
|
triggerAnimationDelayedToFailed,
|
|
46086
46153
|
triggerAnimationProcessingToCompleted
|
|
46087
46154
|
]);
|
|
46088
|
-
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(
|
|
46089
46156
|
AsyncImage,
|
|
46090
46157
|
{
|
|
46091
46158
|
alt: "",
|
|
@@ -46095,7 +46162,7 @@ var FunNotificationBannerIcon = ({
|
|
|
46095
46162
|
src: iconUrl ?? void 0,
|
|
46096
46163
|
fallbackSrc: fallbackIconUrl
|
|
46097
46164
|
}
|
|
46098
|
-
)), statusRef.current && /* @__PURE__ */
|
|
46165
|
+
)), statusRef.current && /* @__PURE__ */ React294.createElement(
|
|
46099
46166
|
Box,
|
|
46100
46167
|
{
|
|
46101
46168
|
className: clsx24(
|
|
@@ -46105,7 +46172,7 @@ var FunNotificationBannerIcon = ({
|
|
|
46105
46172
|
width: "20",
|
|
46106
46173
|
height: "20"
|
|
46107
46174
|
},
|
|
46108
|
-
/* @__PURE__ */
|
|
46175
|
+
/* @__PURE__ */ React294.createElement(Box, { className: clsx24(statusIcon) }, Object.entries(statusIconMap).map(([key, value]) => /* @__PURE__ */ React294.createElement(
|
|
46109
46176
|
"div",
|
|
46110
46177
|
{
|
|
46111
46178
|
key,
|
|
@@ -46137,7 +46204,7 @@ var STATUS_RANK = {
|
|
|
46137
46204
|
failed: 3,
|
|
46138
46205
|
expired: 4
|
|
46139
46206
|
};
|
|
46140
|
-
var closeIcon = /* @__PURE__ */
|
|
46207
|
+
var closeIcon = /* @__PURE__ */ React295.createElement(
|
|
46141
46208
|
"svg",
|
|
46142
46209
|
{
|
|
46143
46210
|
width: "16",
|
|
@@ -46146,7 +46213,7 @@ var closeIcon = /* @__PURE__ */ React294.createElement(
|
|
|
46146
46213
|
fill: "none",
|
|
46147
46214
|
xmlns: "http://www.w3.org/2000/svg"
|
|
46148
46215
|
},
|
|
46149
|
-
/* @__PURE__ */
|
|
46216
|
+
/* @__PURE__ */ React295.createElement(
|
|
46150
46217
|
"path",
|
|
46151
46218
|
{
|
|
46152
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",
|
|
@@ -46177,7 +46244,7 @@ var FunNotificationBanner = ({
|
|
|
46177
46244
|
setIsOpen(false);
|
|
46178
46245
|
onClosed?.();
|
|
46179
46246
|
};
|
|
46180
|
-
return /* @__PURE__ */
|
|
46247
|
+
return /* @__PURE__ */ React295.createElement(AnimatePresence6, null, isOpen ? /* @__PURE__ */ React295.createElement(
|
|
46181
46248
|
motion19.div,
|
|
46182
46249
|
{
|
|
46183
46250
|
initial: {
|
|
@@ -46206,7 +46273,7 @@ var FunNotificationBanner = ({
|
|
|
46206
46273
|
}
|
|
46207
46274
|
}
|
|
46208
46275
|
},
|
|
46209
|
-
/* @__PURE__ */
|
|
46276
|
+
/* @__PURE__ */ React295.createElement(Box, { className: clsx25(notificationBannerStyle) }, /* @__PURE__ */ React295.createElement(
|
|
46210
46277
|
FunIconButton,
|
|
46211
46278
|
{
|
|
46212
46279
|
borderRadius: "full",
|
|
@@ -46220,28 +46287,28 @@ var FunNotificationBanner = ({
|
|
|
46220
46287
|
right: "4px"
|
|
46221
46288
|
}
|
|
46222
46289
|
}
|
|
46223
|
-
), /* @__PURE__ */
|
|
46290
|
+
), /* @__PURE__ */ React295.createElement(Box, { padding: "16", display: "flex", gap: "16" }, /* @__PURE__ */ React295.createElement(
|
|
46224
46291
|
FunNotificationBannerIcon,
|
|
46225
46292
|
{
|
|
46226
46293
|
iconUrl,
|
|
46227
46294
|
status,
|
|
46228
46295
|
fallbackIconUrl
|
|
46229
46296
|
}
|
|
46230
|
-
), /* @__PURE__ */
|
|
46297
|
+
), /* @__PURE__ */ React295.createElement(
|
|
46231
46298
|
Box,
|
|
46232
46299
|
{
|
|
46233
46300
|
display: "flex",
|
|
46234
46301
|
flexDirection: "column",
|
|
46235
46302
|
style: { flex: 1, minWidth: 0 }
|
|
46236
46303
|
},
|
|
46237
|
-
/* @__PURE__ */
|
|
46304
|
+
/* @__PURE__ */ React295.createElement(Box, { display: "flex", flexDirection: "column", gap: "6" }, /* @__PURE__ */ React295.createElement(
|
|
46238
46305
|
Box,
|
|
46239
46306
|
{
|
|
46240
46307
|
display: "flex",
|
|
46241
46308
|
flexDirection: "column",
|
|
46242
46309
|
style: { flexGrow: 1 }
|
|
46243
46310
|
},
|
|
46244
|
-
/* @__PURE__ */
|
|
46311
|
+
/* @__PURE__ */ React295.createElement(
|
|
46245
46312
|
AnimatedText,
|
|
46246
46313
|
{
|
|
46247
46314
|
textKey: title,
|
|
@@ -46257,7 +46324,7 @@ var FunNotificationBanner = ({
|
|
|
46257
46324
|
},
|
|
46258
46325
|
title
|
|
46259
46326
|
)
|
|
46260
|
-
), /* @__PURE__ */
|
|
46327
|
+
), /* @__PURE__ */ React295.createElement(Box, { display: "flex", flexDirection: "column" }, /* @__PURE__ */ React295.createElement(
|
|
46261
46328
|
AnimatedText,
|
|
46262
46329
|
{
|
|
46263
46330
|
textKey: title,
|
|
@@ -46271,7 +46338,7 @@ var FunNotificationBanner = ({
|
|
|
46271
46338
|
},
|
|
46272
46339
|
description
|
|
46273
46340
|
))),
|
|
46274
|
-
disclaimer && /* @__PURE__ */
|
|
46341
|
+
disclaimer && /* @__PURE__ */ React295.createElement(
|
|
46275
46342
|
Box,
|
|
46276
46343
|
{
|
|
46277
46344
|
marginTop: "12",
|
|
@@ -46282,9 +46349,9 @@ var FunNotificationBanner = ({
|
|
|
46282
46349
|
borderRadius: "8",
|
|
46283
46350
|
borderColor: "mediumStroke"
|
|
46284
46351
|
},
|
|
46285
|
-
/* @__PURE__ */
|
|
46352
|
+
/* @__PURE__ */ React295.createElement(Text, { color: "secondaryText", size: "12" }, disclaimer)
|
|
46286
46353
|
),
|
|
46287
|
-
/* @__PURE__ */
|
|
46354
|
+
/* @__PURE__ */ React295.createElement(AnimatePresence6, null, showMore && /* @__PURE__ */ React295.createElement(
|
|
46288
46355
|
motion19.div,
|
|
46289
46356
|
{
|
|
46290
46357
|
initial: {
|
|
@@ -46321,7 +46388,7 @@ var FunNotificationBanner = ({
|
|
|
46321
46388
|
}
|
|
46322
46389
|
}
|
|
46323
46390
|
},
|
|
46324
|
-
/* @__PURE__ */
|
|
46391
|
+
/* @__PURE__ */ React295.createElement(
|
|
46325
46392
|
Box,
|
|
46326
46393
|
{
|
|
46327
46394
|
marginTop: "12"
|
|
@@ -46329,7 +46396,7 @@ var FunNotificationBanner = ({
|
|
|
46329
46396
|
children
|
|
46330
46397
|
)
|
|
46331
46398
|
))
|
|
46332
|
-
)), children && /* @__PURE__ */
|
|
46399
|
+
)), children && /* @__PURE__ */ React295.createElement(
|
|
46333
46400
|
"button",
|
|
46334
46401
|
{
|
|
46335
46402
|
type: "button",
|
|
@@ -46341,13 +46408,13 @@ var FunNotificationBanner = ({
|
|
|
46341
46408
|
},
|
|
46342
46409
|
className: showMoreButtonStyle
|
|
46343
46410
|
},
|
|
46344
|
-
/* @__PURE__ */
|
|
46411
|
+
/* @__PURE__ */ React295.createElement(
|
|
46345
46412
|
Text,
|
|
46346
46413
|
{
|
|
46347
46414
|
size: "12",
|
|
46348
46415
|
color: { base: "secondaryText", hover: "primaryText" }
|
|
46349
46416
|
},
|
|
46350
|
-
/* @__PURE__ */
|
|
46417
|
+
/* @__PURE__ */ React295.createElement(Box, { paddingY: "8", textAlign: "center" }, showMore ? "See less" : "See more")
|
|
46351
46418
|
)
|
|
46352
46419
|
))
|
|
46353
46420
|
) : null);
|
|
@@ -46406,7 +46473,7 @@ var CheckoutNotification = ({
|
|
|
46406
46473
|
return null;
|
|
46407
46474
|
}
|
|
46408
46475
|
const normalizedTicker = initSettings.config.targetAssetTicker?.toUpperCase();
|
|
46409
|
-
return /* @__PURE__ */
|
|
46476
|
+
return /* @__PURE__ */ React296.createElement(
|
|
46410
46477
|
FunNotificationBanner,
|
|
46411
46478
|
{
|
|
46412
46479
|
description: parseDescription(checkout, t),
|
|
@@ -46420,7 +46487,7 @@ var CheckoutNotification = ({
|
|
|
46420
46487
|
},
|
|
46421
46488
|
onShowMore: trackShowMore
|
|
46422
46489
|
},
|
|
46423
|
-
/* @__PURE__ */
|
|
46490
|
+
/* @__PURE__ */ React296.createElement(
|
|
46424
46491
|
Box,
|
|
46425
46492
|
{
|
|
46426
46493
|
paddingY: "8",
|
|
@@ -46431,7 +46498,7 @@ var CheckoutNotification = ({
|
|
|
46431
46498
|
borderWidth: "1",
|
|
46432
46499
|
borderStyle: "solid"
|
|
46433
46500
|
},
|
|
46434
|
-
/* @__PURE__ */
|
|
46501
|
+
/* @__PURE__ */ React296.createElement(OrderDetailSection, { checkoutHistoryItem: checkout })
|
|
46435
46502
|
)
|
|
46436
46503
|
);
|
|
46437
46504
|
};
|
|
@@ -46466,25 +46533,25 @@ var parseDescription = (checkout, t) => {
|
|
|
46466
46533
|
return t("transaction.depositHasBeenCredited");
|
|
46467
46534
|
}
|
|
46468
46535
|
if (checkout.refundState === "REFUNDED" || checkout.refundState === "ERROR") {
|
|
46469
|
-
return /* @__PURE__ */
|
|
46536
|
+
return /* @__PURE__ */ React296.createElement(
|
|
46470
46537
|
Trans20,
|
|
46471
46538
|
{
|
|
46472
46539
|
t,
|
|
46473
46540
|
i18nKey: "transaction.depositDidntCompleteError",
|
|
46474
46541
|
components: {
|
|
46475
|
-
ContactSupportLink: /* @__PURE__ */
|
|
46542
|
+
ContactSupportLink: /* @__PURE__ */ React296.createElement(ContactSupportLink, null)
|
|
46476
46543
|
}
|
|
46477
46544
|
}
|
|
46478
46545
|
);
|
|
46479
46546
|
}
|
|
46480
46547
|
if (isError || checkout.refundState) {
|
|
46481
|
-
return /* @__PURE__ */
|
|
46548
|
+
return /* @__PURE__ */ React296.createElement(
|
|
46482
46549
|
Trans20,
|
|
46483
46550
|
{
|
|
46484
46551
|
t,
|
|
46485
46552
|
i18nKey: "transaction.depositDidntCompleteFundsSafe",
|
|
46486
46553
|
components: {
|
|
46487
|
-
ContactSupportLink: /* @__PURE__ */
|
|
46554
|
+
ContactSupportLink: /* @__PURE__ */ React296.createElement(ContactSupportLink, null)
|
|
46488
46555
|
}
|
|
46489
46556
|
}
|
|
46490
46557
|
);
|
|
@@ -46493,7 +46560,7 @@ var parseDescription = (checkout, t) => {
|
|
|
46493
46560
|
};
|
|
46494
46561
|
var parseDisclaimer = (checkout, onHelp, t) => {
|
|
46495
46562
|
const { isError } = getCheckoutStateBooleans(checkout.state);
|
|
46496
|
-
const contactLink = /* @__PURE__ */
|
|
46563
|
+
const contactLink = /* @__PURE__ */ React296.createElement(
|
|
46497
46564
|
FunLinkButton,
|
|
46498
46565
|
{
|
|
46499
46566
|
text: t("transaction.contactUs"),
|
|
@@ -46504,7 +46571,7 @@ var parseDisclaimer = (checkout, onHelp, t) => {
|
|
|
46504
46571
|
}
|
|
46505
46572
|
);
|
|
46506
46573
|
if (isError) {
|
|
46507
|
-
return /* @__PURE__ */
|
|
46574
|
+
return /* @__PURE__ */ React296.createElement(
|
|
46508
46575
|
Trans20,
|
|
46509
46576
|
{
|
|
46510
46577
|
i18nKey: "transaction.depositBeingProcessedFull",
|
|
@@ -46518,7 +46585,7 @@ var parseDisclaimer = (checkout, onHelp, t) => {
|
|
|
46518
46585
|
return t("checkout.orderRefunded");
|
|
46519
46586
|
}
|
|
46520
46587
|
if (checkout.refundState === "PROCEEDED" || isDelayed(checkout)) {
|
|
46521
|
-
return /* @__PURE__ */
|
|
46588
|
+
return /* @__PURE__ */ React296.createElement(
|
|
46522
46589
|
Trans20,
|
|
46523
46590
|
{
|
|
46524
46591
|
i18nKey: "transaction.transactionDelayedFundsSafeFull",
|
|
@@ -46531,7 +46598,7 @@ var parseDisclaimer = (checkout, onHelp, t) => {
|
|
|
46531
46598
|
};
|
|
46532
46599
|
|
|
46533
46600
|
// src/modals/CheckoutModal/TransferToken/DirectExecutionNotification.tsx
|
|
46534
|
-
import
|
|
46601
|
+
import React297 from "react";
|
|
46535
46602
|
import { Trans as Trans21 } from "react-i18next";
|
|
46536
46603
|
var mapDirectExecutionStateToNotificationStatus = (isProcessing, isDelayed2, isRefunded, isCompleted, isFailed) => {
|
|
46537
46604
|
if (isProcessing) {
|
|
@@ -46615,13 +46682,13 @@ var DirectExecutionNotification = ({
|
|
|
46615
46682
|
delayed: t("transaction.depositWillBeCredited"),
|
|
46616
46683
|
completed: t("transaction.depositHasBeenCredited"),
|
|
46617
46684
|
// Relay refunded which either goes back to user (balance flow) or reprocessed (qr code)
|
|
46618
|
-
expired: /* @__PURE__ */
|
|
46685
|
+
expired: /* @__PURE__ */ React297.createElement(
|
|
46619
46686
|
Trans21,
|
|
46620
46687
|
{
|
|
46621
46688
|
t,
|
|
46622
46689
|
i18nKey: "transaction.depositRefundedOrReprocessed",
|
|
46623
46690
|
components: {
|
|
46624
|
-
ContactSupportLink: /* @__PURE__ */
|
|
46691
|
+
ContactSupportLink: /* @__PURE__ */ React297.createElement(ContactSupportLink, null)
|
|
46625
46692
|
}
|
|
46626
46693
|
}
|
|
46627
46694
|
),
|
|
@@ -46640,7 +46707,7 @@ var DirectExecutionNotification = ({
|
|
|
46640
46707
|
status: notificationStatus
|
|
46641
46708
|
});
|
|
46642
46709
|
const normalizedTicker = initSettings.config.targetAssetTicker?.toUpperCase();
|
|
46643
|
-
return /* @__PURE__ */
|
|
46710
|
+
return /* @__PURE__ */ React297.createElement(
|
|
46644
46711
|
FunNotificationBanner,
|
|
46645
46712
|
{
|
|
46646
46713
|
title: getNotificationContent(
|
|
@@ -46668,7 +46735,7 @@ var DirectExecutionNotification = ({
|
|
|
46668
46735
|
},
|
|
46669
46736
|
onShowMore: trackShowMore
|
|
46670
46737
|
},
|
|
46671
|
-
/* @__PURE__ */
|
|
46738
|
+
/* @__PURE__ */ React297.createElement(
|
|
46672
46739
|
Box,
|
|
46673
46740
|
{
|
|
46674
46741
|
paddingY: "8",
|
|
@@ -46679,12 +46746,12 @@ var DirectExecutionNotification = ({
|
|
|
46679
46746
|
borderWidth: "1",
|
|
46680
46747
|
borderStyle: "solid"
|
|
46681
46748
|
},
|
|
46682
|
-
/* @__PURE__ */
|
|
46749
|
+
/* @__PURE__ */ React297.createElement(DirectExecutionOrderDetailSection, { directExecution })
|
|
46683
46750
|
)
|
|
46684
46751
|
);
|
|
46685
46752
|
};
|
|
46686
46753
|
var parseDisclaimer2 = (t, isRefunded, isDelayed2, isFailed, onHelp) => {
|
|
46687
|
-
const contactLink = /* @__PURE__ */
|
|
46754
|
+
const contactLink = /* @__PURE__ */ React297.createElement(
|
|
46688
46755
|
FunLinkButton,
|
|
46689
46756
|
{
|
|
46690
46757
|
text: t("transaction.contactUs"),
|
|
@@ -46695,7 +46762,7 @@ var parseDisclaimer2 = (t, isRefunded, isDelayed2, isFailed, onHelp) => {
|
|
|
46695
46762
|
}
|
|
46696
46763
|
);
|
|
46697
46764
|
if (isFailed || isRefunded) {
|
|
46698
|
-
return /* @__PURE__ */
|
|
46765
|
+
return /* @__PURE__ */ React297.createElement(
|
|
46699
46766
|
Trans21,
|
|
46700
46767
|
{
|
|
46701
46768
|
i18nKey: "transaction.depositDidntCompleteFull",
|
|
@@ -46706,7 +46773,7 @@ var parseDisclaimer2 = (t, isRefunded, isDelayed2, isFailed, onHelp) => {
|
|
|
46706
46773
|
);
|
|
46707
46774
|
}
|
|
46708
46775
|
if (isDelayed2) {
|
|
46709
|
-
return /* @__PURE__ */
|
|
46776
|
+
return /* @__PURE__ */ React297.createElement(
|
|
46710
46777
|
Trans21,
|
|
46711
46778
|
{
|
|
46712
46779
|
i18nKey: "transaction.depositDelayedFundsSafeFull",
|
|
@@ -46794,7 +46861,7 @@ var CheckoutNotifications = ({
|
|
|
46794
46861
|
if (!isVisible) {
|
|
46795
46862
|
return null;
|
|
46796
46863
|
}
|
|
46797
|
-
return /* @__PURE__ */
|
|
46864
|
+
return /* @__PURE__ */ React298.createElement(
|
|
46798
46865
|
Box,
|
|
46799
46866
|
{
|
|
46800
46867
|
position: "absolute",
|
|
@@ -46802,9 +46869,9 @@ var CheckoutNotifications = ({
|
|
|
46802
46869
|
maxHeight: "full",
|
|
46803
46870
|
style: { bottom: 0, left: 0, right: 0, zIndex: OVERLAY_Z_INDEX }
|
|
46804
46871
|
},
|
|
46805
|
-
/* @__PURE__ */
|
|
46872
|
+
/* @__PURE__ */ React298.createElement(Box, { display: "flex", flexDirection: "column", gap: "8", padding: "8" }, displayedNotifications.map((item) => {
|
|
46806
46873
|
if (item.isDirectExecution) {
|
|
46807
|
-
return /* @__PURE__ */
|
|
46874
|
+
return /* @__PURE__ */ React298.createElement(
|
|
46808
46875
|
DirectExecutionNotification,
|
|
46809
46876
|
{
|
|
46810
46877
|
key: getDirectExecutionNotificationKey(item),
|
|
@@ -46814,7 +46881,7 @@ var CheckoutNotifications = ({
|
|
|
46814
46881
|
}
|
|
46815
46882
|
);
|
|
46816
46883
|
}
|
|
46817
|
-
return /* @__PURE__ */
|
|
46884
|
+
return /* @__PURE__ */ React298.createElement(
|
|
46818
46885
|
CheckoutNotification,
|
|
46819
46886
|
{
|
|
46820
46887
|
key: item.depositAddr,
|
|
@@ -46823,7 +46890,7 @@ var CheckoutNotifications = ({
|
|
|
46823
46890
|
onHelp
|
|
46824
46891
|
}
|
|
46825
46892
|
);
|
|
46826
|
-
}), combinedNotifications.length > COLLAPSED_COUNT && /* @__PURE__ */
|
|
46893
|
+
}), combinedNotifications.length > COLLAPSED_COUNT && /* @__PURE__ */ React298.createElement(
|
|
46827
46894
|
FunNotificationShowMoreButton,
|
|
46828
46895
|
{
|
|
46829
46896
|
isExpanded,
|
|
@@ -46929,7 +46996,7 @@ function useCheckoutModalQueryPreload() {
|
|
|
46929
46996
|
function FunCheckoutModalStepComponent(props) {
|
|
46930
46997
|
useCheckoutModalQueryPreload();
|
|
46931
46998
|
const { Component: Component2 } = CheckoutModalSteps[props.modalState.step];
|
|
46932
|
-
return /* @__PURE__ */
|
|
46999
|
+
return /* @__PURE__ */ React299.createElement(Component2, { ...props });
|
|
46933
47000
|
}
|
|
46934
47001
|
function getSwappedExtraPaddingExcludedSteps(startingStep) {
|
|
46935
47002
|
const steps = ["source_change" /* SOURCE_CHANGE */];
|
|
@@ -47036,7 +47103,7 @@ function FunCheckoutModalInner({
|
|
|
47036
47103
|
isActiveCheckout: true,
|
|
47037
47104
|
isCheckoutDetailView: modalState.step === "checkout_complete" /* CHECKOUT_COMPLETE */,
|
|
47038
47105
|
paddingTop: 0,
|
|
47039
|
-
topbar: /* @__PURE__ */
|
|
47106
|
+
topbar: /* @__PURE__ */ React299.createElement(
|
|
47040
47107
|
Dialog.Title,
|
|
47041
47108
|
{
|
|
47042
47109
|
hasBackButton: hasBack && !showBlockedUI,
|
|
@@ -47056,7 +47123,7 @@ function FunCheckoutModalInner({
|
|
|
47056
47123
|
modalState.step
|
|
47057
47124
|
) && isSwappedEnabled;
|
|
47058
47125
|
const isSourceChangeLikeStep = modalState.step === "source_change" /* SOURCE_CHANGE */ || modalState.step === "loading_account" /* LOADING_ACCOUNT */ && startingStep !== "confirmation" /* CONFIRMATION */ && startingStep !== "select_asset" /* SELECT_ASSET */;
|
|
47059
|
-
return /* @__PURE__ */
|
|
47126
|
+
return /* @__PURE__ */ React299.createElement(
|
|
47060
47127
|
Dialog,
|
|
47061
47128
|
{
|
|
47062
47129
|
open,
|
|
@@ -47069,13 +47136,13 @@ function FunCheckoutModalInner({
|
|
|
47069
47136
|
isFanaticsBottomSheet: isFanatics,
|
|
47070
47137
|
backgroundOverlay: successScreenBackgroundOverlay
|
|
47071
47138
|
},
|
|
47072
|
-
/* @__PURE__ */
|
|
47139
|
+
/* @__PURE__ */ React299.createElement(SwappedProvider, null, /* @__PURE__ */ React299.createElement(CheckoutModalPrefetchedHooks, null), /* @__PURE__ */ React299.createElement(TooltipAnchorRefContext.Provider, { value: tooltipAnchorRef }, /* @__PURE__ */ React299.createElement(
|
|
47073
47140
|
FunCheckoutModalHeightAnimationWrapper,
|
|
47074
47141
|
{
|
|
47075
47142
|
checkoutConfig,
|
|
47076
47143
|
checkoutStep: modalState.step
|
|
47077
47144
|
},
|
|
47078
|
-
modalState.showWalletOptions ? /* @__PURE__ */
|
|
47145
|
+
modalState.showWalletOptions ? /* @__PURE__ */ React299.createElement(
|
|
47079
47146
|
FunConnectOptions,
|
|
47080
47147
|
{
|
|
47081
47148
|
initialScreenOnBack: () => setModalState((state) => ({
|
|
@@ -47091,7 +47158,7 @@ function FunCheckoutModalInner({
|
|
|
47091
47158
|
},
|
|
47092
47159
|
walletsOnly: true
|
|
47093
47160
|
}
|
|
47094
|
-
) : /* @__PURE__ */
|
|
47161
|
+
) : /* @__PURE__ */ React299.createElement(React299.Fragment, null, !hideTopbar && topbar, /* @__PURE__ */ React299.createElement(
|
|
47095
47162
|
Dialog.Content,
|
|
47096
47163
|
{
|
|
47097
47164
|
fullHeight: showFullHeight || hideTopbar,
|
|
@@ -47105,17 +47172,17 @@ function FunCheckoutModalInner({
|
|
|
47105
47172
|
extraContentTopPadding: !shouldSkipExtraContentTopPadding,
|
|
47106
47173
|
withChildScrollArea: isSourceChangeLikeStep
|
|
47107
47174
|
},
|
|
47108
|
-
showBlockedUI ? /* @__PURE__ */
|
|
47109
|
-
/* @__PURE__ */
|
|
47175
|
+
showBlockedUI ? /* @__PURE__ */ React299.createElement(FunCheckoutBlocked, { reason: blockedReason }) : /* @__PURE__ */ React299.createElement(FunCheckoutModalStepComponent, { ...modalProps }),
|
|
47176
|
+
/* @__PURE__ */ React299.createElement("div", { ref: tooltipAnchorRef })
|
|
47110
47177
|
)),
|
|
47111
|
-
/* @__PURE__ */
|
|
47178
|
+
/* @__PURE__ */ React299.createElement(
|
|
47112
47179
|
Dialog.BottomSection,
|
|
47113
47180
|
{
|
|
47114
47181
|
id: MODAL_BOTTOM_BAR_IDS.checkout,
|
|
47115
47182
|
display: modalState.showWalletOptions ? "none" : "block"
|
|
47116
47183
|
}
|
|
47117
47184
|
),
|
|
47118
|
-
!showBlockedUI && /* @__PURE__ */
|
|
47185
|
+
!showBlockedUI && /* @__PURE__ */ React299.createElement(
|
|
47119
47186
|
CheckoutNotifications,
|
|
47120
47187
|
{
|
|
47121
47188
|
onHelp: handleCheckoutHelp,
|
|
@@ -47123,7 +47190,7 @@ function FunCheckoutModalInner({
|
|
|
47123
47190
|
variant: notificationVariant
|
|
47124
47191
|
}
|
|
47125
47192
|
)
|
|
47126
|
-
), /* @__PURE__ */
|
|
47193
|
+
), /* @__PURE__ */ React299.createElement(SwappedIframe_default, null)))
|
|
47127
47194
|
);
|
|
47128
47195
|
}
|
|
47129
47196
|
function FunCheckoutModal({
|
|
@@ -47135,7 +47202,7 @@ function FunCheckoutModal({
|
|
|
47135
47202
|
if (!checkoutItem) {
|
|
47136
47203
|
return null;
|
|
47137
47204
|
}
|
|
47138
|
-
return /* @__PURE__ */
|
|
47205
|
+
return /* @__PURE__ */ React299.createElement(
|
|
47139
47206
|
FunCheckoutModalInner,
|
|
47140
47207
|
{
|
|
47141
47208
|
checkoutItem,
|
|
@@ -47155,20 +47222,20 @@ var hideModalTitleMetaIfTrue = (checkoutConfig, hideModalMeta) => {
|
|
|
47155
47222
|
};
|
|
47156
47223
|
|
|
47157
47224
|
// src/modals/ConnectModal/ConnectModal.tsx
|
|
47158
|
-
import
|
|
47225
|
+
import React300 from "react";
|
|
47159
47226
|
var TITLE_ID2 = "rk-connect-modal-title";
|
|
47160
47227
|
function ConnectModal({ onClose, open }) {
|
|
47161
47228
|
const connectionStatus = useConnectionStatus();
|
|
47162
47229
|
const { disconnect } = useFunkitDisconnect();
|
|
47163
47230
|
const { isConnecting } = useAccount();
|
|
47164
|
-
const onConnectModalCancel =
|
|
47231
|
+
const onConnectModalCancel = React300.useCallback(() => {
|
|
47165
47232
|
if (isConnecting) {
|
|
47166
47233
|
disconnect();
|
|
47167
47234
|
}
|
|
47168
47235
|
onClose();
|
|
47169
47236
|
}, [onClose, disconnect, isConnecting]);
|
|
47170
47237
|
if (connectionStatus === "disconnected" || connectionStatus === "loading") {
|
|
47171
|
-
return /* @__PURE__ */
|
|
47238
|
+
return /* @__PURE__ */ React300.createElement(
|
|
47172
47239
|
Dialog,
|
|
47173
47240
|
{
|
|
47174
47241
|
onClose: onConnectModalCancel,
|
|
@@ -47176,7 +47243,7 @@ function ConnectModal({ onClose, open }) {
|
|
|
47176
47243
|
titleId: TITLE_ID2,
|
|
47177
47244
|
isSmartCloseable: true
|
|
47178
47245
|
},
|
|
47179
|
-
/* @__PURE__ */
|
|
47246
|
+
/* @__PURE__ */ React300.createElement(FunCheckoutModalHeightAnimationWrapper, null, /* @__PURE__ */ React300.createElement(FunConnectOptions, { onClose: onConnectModalCancel }))
|
|
47180
47247
|
);
|
|
47181
47248
|
}
|
|
47182
47249
|
return null;
|
|
@@ -47293,7 +47360,7 @@ function ModalProvider({ children }) {
|
|
|
47293
47360
|
closeModals();
|
|
47294
47361
|
}
|
|
47295
47362
|
}, [isUnauthenticated]);
|
|
47296
|
-
return /* @__PURE__ */
|
|
47363
|
+
return /* @__PURE__ */ React301.createElement(
|
|
47297
47364
|
ModalContext.Provider,
|
|
47298
47365
|
{
|
|
47299
47366
|
value: useMemo65(
|
|
@@ -47339,8 +47406,8 @@ function ModalProvider({ children }) {
|
|
|
47339
47406
|
)
|
|
47340
47407
|
},
|
|
47341
47408
|
children,
|
|
47342
|
-
/* @__PURE__ */
|
|
47343
|
-
/* @__PURE__ */
|
|
47409
|
+
/* @__PURE__ */ React301.createElement(ConnectModal, { onClose: closeConnectModal, open: connectModalOpen }),
|
|
47410
|
+
/* @__PURE__ */ React301.createElement(
|
|
47344
47411
|
AccountModal,
|
|
47345
47412
|
{
|
|
47346
47413
|
onClose: closeAccountModal,
|
|
@@ -47348,8 +47415,8 @@ function ModalProvider({ children }) {
|
|
|
47348
47415
|
defaultTab: accountModalTab
|
|
47349
47416
|
}
|
|
47350
47417
|
),
|
|
47351
|
-
/* @__PURE__ */
|
|
47352
|
-
/* @__PURE__ */
|
|
47418
|
+
/* @__PURE__ */ React301.createElement(ChainModal, { onClose: closeChainModal, open: chainModalOpen }),
|
|
47419
|
+
/* @__PURE__ */ React301.createElement(
|
|
47353
47420
|
FunCheckoutModal,
|
|
47354
47421
|
{
|
|
47355
47422
|
onClose: closeFunCheckoutModal,
|
|
@@ -47358,7 +47425,7 @@ function ModalProvider({ children }) {
|
|
|
47358
47425
|
key: softHiddenCheckoutId ?? funCheckoutModalId
|
|
47359
47426
|
}
|
|
47360
47427
|
),
|
|
47361
|
-
withdrawalModalConfig && /* @__PURE__ */
|
|
47428
|
+
withdrawalModalConfig && /* @__PURE__ */ React301.createElement(
|
|
47362
47429
|
WithdrawalModal,
|
|
47363
47430
|
{
|
|
47364
47431
|
onClose: closeWithdrawalModal,
|
|
@@ -48065,7 +48132,7 @@ function FunkitCheckoutProvider({ children }) {
|
|
|
48065
48132
|
updateDynamicRoutingId,
|
|
48066
48133
|
applyDynamicTargetAssetCandidate
|
|
48067
48134
|
};
|
|
48068
|
-
return /* @__PURE__ */
|
|
48135
|
+
return /* @__PURE__ */ React302.createElement(FunkitCheckoutContext.Provider, { value: contextValue }, children);
|
|
48069
48136
|
}
|
|
48070
48137
|
function useCheckoutContext() {
|
|
48071
48138
|
return useContext21(FunkitCheckoutContext);
|
|
@@ -48841,7 +48908,7 @@ function ConnectButtonRenderer({
|
|
|
48841
48908
|
const { openChainModal } = useChainModal();
|
|
48842
48909
|
const { openAccountModal } = useAccountModal();
|
|
48843
48910
|
const { accountModalOpen, chainModalOpen, connectModalOpen } = useModalState();
|
|
48844
|
-
return /* @__PURE__ */
|
|
48911
|
+
return /* @__PURE__ */ React303.createElement(React303.Fragment, null, children({
|
|
48845
48912
|
account: address ? {
|
|
48846
48913
|
address,
|
|
48847
48914
|
balanceDecimals: balanceData?.decimals,
|
|
@@ -48898,7 +48965,7 @@ function ChainSelectorButton({
|
|
|
48898
48965
|
chain
|
|
48899
48966
|
}) {
|
|
48900
48967
|
const { t } = useFunkitTranslation();
|
|
48901
|
-
return /* @__PURE__ */
|
|
48968
|
+
return /* @__PURE__ */ React304.createElement(
|
|
48902
48969
|
Box,
|
|
48903
48970
|
{
|
|
48904
48971
|
alignItems: "center",
|
|
@@ -48926,7 +48993,7 @@ function ChainSelectorButton({
|
|
|
48926
48993
|
type: "button",
|
|
48927
48994
|
...connectButtonStyles
|
|
48928
48995
|
},
|
|
48929
|
-
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(
|
|
48930
48997
|
Box,
|
|
48931
48998
|
{
|
|
48932
48999
|
display: mapResponsiveValue(
|
|
@@ -48936,7 +49003,7 @@ function ChainSelectorButton({
|
|
|
48936
49003
|
height: "12",
|
|
48937
49004
|
width: "12"
|
|
48938
49005
|
},
|
|
48939
|
-
/* @__PURE__ */
|
|
49006
|
+
/* @__PURE__ */ React304.createElement(
|
|
48940
49007
|
AsyncImage,
|
|
48941
49008
|
{
|
|
48942
49009
|
alt: chain.name ?? "Chain icon",
|
|
@@ -48947,7 +49014,7 @@ function ChainSelectorButton({
|
|
|
48947
49014
|
src: chain.iconUrl
|
|
48948
49015
|
}
|
|
48949
49016
|
)
|
|
48950
|
-
) : null, /* @__PURE__ */
|
|
49017
|
+
) : null, /* @__PURE__ */ React304.createElement(
|
|
48951
49018
|
Box,
|
|
48952
49019
|
{
|
|
48953
49020
|
display: mapResponsiveValue(chainStatus, (value) => {
|
|
@@ -48967,7 +49034,7 @@ function AccountButton({
|
|
|
48967
49034
|
showBalance,
|
|
48968
49035
|
accountStatus
|
|
48969
49036
|
}) {
|
|
48970
|
-
return /* @__PURE__ */
|
|
49037
|
+
return /* @__PURE__ */ React304.createElement(
|
|
48971
49038
|
Box,
|
|
48972
49039
|
{
|
|
48973
49040
|
alignItems: "center",
|
|
@@ -48987,7 +49054,7 @@ function AccountButton({
|
|
|
48987
49054
|
gap: "16",
|
|
48988
49055
|
...connectButtonStyles
|
|
48989
49056
|
},
|
|
48990
|
-
account.displayBalance && /* @__PURE__ */
|
|
49057
|
+
account.displayBalance && /* @__PURE__ */ React304.createElement(
|
|
48991
49058
|
Box,
|
|
48992
49059
|
{
|
|
48993
49060
|
display: mapResponsiveValue(
|
|
@@ -48997,7 +49064,7 @@ function AccountButton({
|
|
|
48997
49064
|
},
|
|
48998
49065
|
account.displayBalance
|
|
48999
49066
|
),
|
|
49000
|
-
/* @__PURE__ */
|
|
49067
|
+
/* @__PURE__ */ React304.createElement(Box, { alignItems: "center", display: "flex", gap: "6" }, /* @__PURE__ */ React304.createElement(
|
|
49001
49068
|
Box,
|
|
49002
49069
|
{
|
|
49003
49070
|
display: mapResponsiveValue(
|
|
@@ -49005,7 +49072,7 @@ function AccountButton({
|
|
|
49005
49072
|
(value) => value === "full" || value === "avatar" ? "block" : "none"
|
|
49006
49073
|
)
|
|
49007
49074
|
},
|
|
49008
|
-
/* @__PURE__ */
|
|
49075
|
+
/* @__PURE__ */ React304.createElement(
|
|
49009
49076
|
Avatar,
|
|
49010
49077
|
{
|
|
49011
49078
|
address: account.address,
|
|
@@ -49014,7 +49081,7 @@ function AccountButton({
|
|
|
49014
49081
|
size: 12
|
|
49015
49082
|
}
|
|
49016
49083
|
)
|
|
49017
|
-
), /* @__PURE__ */
|
|
49084
|
+
), /* @__PURE__ */ React304.createElement(
|
|
49018
49085
|
Box,
|
|
49019
49086
|
{
|
|
49020
49087
|
display: mapResponsiveValue(
|
|
@@ -49047,7 +49114,7 @@ function ConnectButton({
|
|
|
49047
49114
|
setReady(true);
|
|
49048
49115
|
}
|
|
49049
49116
|
}, [showBalance, setShowBalance, ready]);
|
|
49050
|
-
return ready ? /* @__PURE__ */
|
|
49117
|
+
return ready ? /* @__PURE__ */ React304.createElement(ConnectButtonRenderer, null, ({
|
|
49051
49118
|
account,
|
|
49052
49119
|
chain,
|
|
49053
49120
|
mounted,
|
|
@@ -49057,7 +49124,7 @@ function ConnectButton({
|
|
|
49057
49124
|
}) => {
|
|
49058
49125
|
const ready2 = mounted && connectionStatus !== "loading";
|
|
49059
49126
|
const unsupportedChain = chain?.unsupported ?? false;
|
|
49060
|
-
return /* @__PURE__ */
|
|
49127
|
+
return /* @__PURE__ */ React304.createElement(
|
|
49061
49128
|
Box,
|
|
49062
49129
|
{
|
|
49063
49130
|
display: "flex",
|
|
@@ -49073,7 +49140,7 @@ function ConnectButton({
|
|
|
49073
49140
|
},
|
|
49074
49141
|
ready2 && account && connectionStatus === "connected" ? (
|
|
49075
49142
|
// Logged in: Chain Button & Account Button
|
|
49076
|
-
/* @__PURE__ */
|
|
49143
|
+
/* @__PURE__ */ React304.createElement(React304.Fragment, null, showChainSelector && chain && (chains.length > 1 || unsupportedChain) && /* @__PURE__ */ React304.createElement(
|
|
49077
49144
|
ChainSelectorButton,
|
|
49078
49145
|
{
|
|
49079
49146
|
unsupportedChain,
|
|
@@ -49081,7 +49148,7 @@ function ConnectButton({
|
|
|
49081
49148
|
openChainModal,
|
|
49082
49149
|
chain
|
|
49083
49150
|
}
|
|
49084
|
-
), !unsupportedChain && /* @__PURE__ */
|
|
49151
|
+
), !unsupportedChain && /* @__PURE__ */ React304.createElement(
|
|
49085
49152
|
AccountButton,
|
|
49086
49153
|
{
|
|
49087
49154
|
openAccountModal,
|
|
@@ -49092,7 +49159,7 @@ function ConnectButton({
|
|
|
49092
49159
|
))
|
|
49093
49160
|
) : (
|
|
49094
49161
|
// Not logged in: Connect Button
|
|
49095
|
-
/* @__PURE__ */
|
|
49162
|
+
/* @__PURE__ */ React304.createElement(
|
|
49096
49163
|
Box,
|
|
49097
49164
|
{
|
|
49098
49165
|
as: "button",
|
|
@@ -49110,19 +49177,19 @@ function ConnectButton({
|
|
|
49110
49177
|
type: "button",
|
|
49111
49178
|
...connectButtonStyles
|
|
49112
49179
|
},
|
|
49113
|
-
/* @__PURE__ */
|
|
49180
|
+
/* @__PURE__ */ React304.createElement(Box, { display: "flex", gap: "8", alignItems: "center" }, mounted && label, suffixIcon)
|
|
49114
49181
|
)
|
|
49115
49182
|
)
|
|
49116
49183
|
);
|
|
49117
|
-
}) : /* @__PURE__ */
|
|
49184
|
+
}) : /* @__PURE__ */ React304.createElement(React304.Fragment, null);
|
|
49118
49185
|
}
|
|
49119
49186
|
ConnectButton.__defaultProps = defaultProps;
|
|
49120
49187
|
ConnectButton.Custom = ConnectButtonRenderer;
|
|
49121
49188
|
|
|
49122
49189
|
// src/components/Icons/FunkitPaymentsIconLine.tsx
|
|
49123
|
-
import
|
|
49190
|
+
import React305 from "react";
|
|
49124
49191
|
function MetaMaskPaymentIcon({ size = 16 }) {
|
|
49125
|
-
return /* @__PURE__ */
|
|
49192
|
+
return /* @__PURE__ */ React305.createElement(
|
|
49126
49193
|
"svg",
|
|
49127
49194
|
{
|
|
49128
49195
|
width: size,
|
|
@@ -49131,7 +49198,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49131
49198
|
fill: "none",
|
|
49132
49199
|
xmlns: "http://www.w3.org/2000/svg"
|
|
49133
49200
|
},
|
|
49134
|
-
/* @__PURE__ */
|
|
49201
|
+
/* @__PURE__ */ React305.createElement(
|
|
49135
49202
|
"path",
|
|
49136
49203
|
{
|
|
49137
49204
|
d: "M24.0891 3.1199L15.3446 9.61456L16.9617 5.7828L24.0891 3.1199Z",
|
|
@@ -49142,7 +49209,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49142
49209
|
strokeLinejoin: "round"
|
|
49143
49210
|
}
|
|
49144
49211
|
),
|
|
49145
|
-
/* @__PURE__ */
|
|
49212
|
+
/* @__PURE__ */ React305.createElement(
|
|
49146
49213
|
"path",
|
|
49147
49214
|
{
|
|
49148
49215
|
d: "M3.90207 3.1199L12.5763 9.67608L11.0383 5.7828L3.90207 3.1199Z",
|
|
@@ -49153,7 +49220,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49153
49220
|
strokeLinejoin: "round"
|
|
49154
49221
|
}
|
|
49155
49222
|
),
|
|
49156
|
-
/* @__PURE__ */
|
|
49223
|
+
/* @__PURE__ */ React305.createElement(
|
|
49157
49224
|
"path",
|
|
49158
49225
|
{
|
|
49159
49226
|
d: "M20.9429 18.1745L18.6139 21.7426L23.597 23.1136L25.0295 18.2536L20.9429 18.1745Z",
|
|
@@ -49164,7 +49231,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49164
49231
|
strokeLinejoin: "round"
|
|
49165
49232
|
}
|
|
49166
49233
|
),
|
|
49167
|
-
/* @__PURE__ */
|
|
49234
|
+
/* @__PURE__ */ React305.createElement(
|
|
49168
49235
|
"path",
|
|
49169
49236
|
{
|
|
49170
49237
|
d: "M2.97929 18.2536L4.40301 23.1136L9.38607 21.7426L7.05713 18.1745L2.97929 18.2536Z",
|
|
@@ -49175,7 +49242,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49175
49242
|
strokeLinejoin: "round"
|
|
49176
49243
|
}
|
|
49177
49244
|
),
|
|
49178
|
-
/* @__PURE__ */
|
|
49245
|
+
/* @__PURE__ */ React305.createElement(
|
|
49179
49246
|
"path",
|
|
49180
49247
|
{
|
|
49181
49248
|
d: "M9.10483 12.1456L7.71626 14.2461L12.6642 14.4658L12.4884 9.14877L9.10483 12.1456Z",
|
|
@@ -49186,7 +49253,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49186
49253
|
strokeLinejoin: "round"
|
|
49187
49254
|
}
|
|
49188
49255
|
),
|
|
49189
|
-
/* @__PURE__ */
|
|
49256
|
+
/* @__PURE__ */ React305.createElement(
|
|
49190
49257
|
"path",
|
|
49191
49258
|
{
|
|
49192
49259
|
d: "M18.8864 12.1456L15.4589 9.08725L15.3446 14.4658L20.2837 14.2461L18.8864 12.1456Z",
|
|
@@ -49197,7 +49264,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49197
49264
|
strokeLinejoin: "round"
|
|
49198
49265
|
}
|
|
49199
49266
|
),
|
|
49200
|
-
/* @__PURE__ */
|
|
49267
|
+
/* @__PURE__ */ React305.createElement(
|
|
49201
49268
|
"path",
|
|
49202
49269
|
{
|
|
49203
49270
|
d: "M9.38606 21.7426L12.3566 20.2925L9.79033 18.2888L9.38606 21.7426Z",
|
|
@@ -49208,7 +49275,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49208
49275
|
strokeLinejoin: "round"
|
|
49209
49276
|
}
|
|
49210
49277
|
),
|
|
49211
|
-
/* @__PURE__ */
|
|
49278
|
+
/* @__PURE__ */ React305.createElement(
|
|
49212
49279
|
"path",
|
|
49213
49280
|
{
|
|
49214
49281
|
d: "M15.6347 20.2925L18.6139 21.7426L18.2009 18.2888L15.6347 20.2925Z",
|
|
@@ -49219,7 +49286,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49219
49286
|
strokeLinejoin: "round"
|
|
49220
49287
|
}
|
|
49221
49288
|
),
|
|
49222
|
-
/* @__PURE__ */
|
|
49289
|
+
/* @__PURE__ */ React305.createElement(
|
|
49223
49290
|
"path",
|
|
49224
49291
|
{
|
|
49225
49292
|
d: "M18.6139 21.7426L15.6347 20.2925L15.8719 22.2348L15.8456 23.0521L18.6139 21.7426Z",
|
|
@@ -49230,7 +49297,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49230
49297
|
strokeLinejoin: "round"
|
|
49231
49298
|
}
|
|
49232
49299
|
),
|
|
49233
|
-
/* @__PURE__ */
|
|
49300
|
+
/* @__PURE__ */ React305.createElement(
|
|
49234
49301
|
"path",
|
|
49235
49302
|
{
|
|
49236
49303
|
d: "M9.38606 21.7426L12.1544 23.0521L12.1368 22.2348L12.3566 20.2925L9.38606 21.7426Z",
|
|
@@ -49241,7 +49308,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49241
49308
|
strokeLinejoin: "round"
|
|
49242
49309
|
}
|
|
49243
49310
|
),
|
|
49244
|
-
/* @__PURE__ */
|
|
49311
|
+
/* @__PURE__ */ React305.createElement(
|
|
49245
49312
|
"path",
|
|
49246
49313
|
{
|
|
49247
49314
|
d: "M12.1984 17.0056L9.72002 16.2762L11.4689 15.4765L12.1984 17.0056Z",
|
|
@@ -49252,7 +49319,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49252
49319
|
strokeLinejoin: "round"
|
|
49253
49320
|
}
|
|
49254
49321
|
),
|
|
49255
|
-
/* @__PURE__ */
|
|
49322
|
+
/* @__PURE__ */ React305.createElement(
|
|
49256
49323
|
"path",
|
|
49257
49324
|
{
|
|
49258
49325
|
d: "M15.7928 17.0056L16.5223 15.4765L18.28 16.2762L15.7928 17.0056Z",
|
|
@@ -49263,7 +49330,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49263
49330
|
strokeLinejoin: "round"
|
|
49264
49331
|
}
|
|
49265
49332
|
),
|
|
49266
|
-
/* @__PURE__ */
|
|
49333
|
+
/* @__PURE__ */ React305.createElement(
|
|
49267
49334
|
"path",
|
|
49268
49335
|
{
|
|
49269
49336
|
d: "M9.38606 21.7426L9.80791 18.1745L7.05712 18.2536L9.38606 21.7426Z",
|
|
@@ -49274,7 +49341,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49274
49341
|
strokeLinejoin: "round"
|
|
49275
49342
|
}
|
|
49276
49343
|
),
|
|
49277
|
-
/* @__PURE__ */
|
|
49344
|
+
/* @__PURE__ */ React305.createElement(
|
|
49278
49345
|
"path",
|
|
49279
49346
|
{
|
|
49280
49347
|
d: "M18.1921 18.1745L18.6139 21.7426L20.9429 18.2536L18.1921 18.1745Z",
|
|
@@ -49285,7 +49352,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49285
49352
|
strokeLinejoin: "round"
|
|
49286
49353
|
}
|
|
49287
49354
|
),
|
|
49288
|
-
/* @__PURE__ */
|
|
49355
|
+
/* @__PURE__ */ React305.createElement(
|
|
49289
49356
|
"path",
|
|
49290
49357
|
{
|
|
49291
49358
|
d: "M20.2837 14.2461L15.3446 14.4658L15.8016 17.0057L16.5311 15.4765L18.2888 16.2762L20.2837 14.2461Z",
|
|
@@ -49296,7 +49363,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49296
49363
|
strokeLinejoin: "round"
|
|
49297
49364
|
}
|
|
49298
49365
|
),
|
|
49299
|
-
/* @__PURE__ */
|
|
49366
|
+
/* @__PURE__ */ React305.createElement(
|
|
49300
49367
|
"path",
|
|
49301
49368
|
{
|
|
49302
49369
|
d: "M9.72002 16.2762L11.4777 15.4765L12.1984 17.0057L12.6642 14.4658L7.71626 14.2461L9.72002 16.2762Z",
|
|
@@ -49307,7 +49374,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49307
49374
|
strokeLinejoin: "round"
|
|
49308
49375
|
}
|
|
49309
49376
|
),
|
|
49310
|
-
/* @__PURE__ */
|
|
49377
|
+
/* @__PURE__ */ React305.createElement(
|
|
49311
49378
|
"path",
|
|
49312
49379
|
{
|
|
49313
49380
|
d: "M7.71626 14.2461L9.79033 18.2888L9.72002 16.2762L7.71626 14.2461Z",
|
|
@@ -49318,7 +49385,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49318
49385
|
strokeLinejoin: "round"
|
|
49319
49386
|
}
|
|
49320
49387
|
),
|
|
49321
|
-
/* @__PURE__ */
|
|
49388
|
+
/* @__PURE__ */ React305.createElement(
|
|
49322
49389
|
"path",
|
|
49323
49390
|
{
|
|
49324
49391
|
d: "M18.2888 16.2762L18.2009 18.2888L20.2837 14.2461L18.2888 16.2762Z",
|
|
@@ -49329,7 +49396,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49329
49396
|
strokeLinejoin: "round"
|
|
49330
49397
|
}
|
|
49331
49398
|
),
|
|
49332
|
-
/* @__PURE__ */
|
|
49399
|
+
/* @__PURE__ */ React305.createElement(
|
|
49333
49400
|
"path",
|
|
49334
49401
|
{
|
|
49335
49402
|
d: "M12.6642 14.4658L12.1984 17.0057L12.7784 20.0025L12.9102 16.0565L12.6642 14.4658Z",
|
|
@@ -49340,7 +49407,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49340
49407
|
strokeLinejoin: "round"
|
|
49341
49408
|
}
|
|
49342
49409
|
),
|
|
49343
|
-
/* @__PURE__ */
|
|
49410
|
+
/* @__PURE__ */ React305.createElement(
|
|
49344
49411
|
"path",
|
|
49345
49412
|
{
|
|
49346
49413
|
d: "M15.3446 14.4658L15.1073 16.0477L15.2128 20.0025L15.8016 17.0057L15.3446 14.4658Z",
|
|
@@ -49351,7 +49418,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49351
49418
|
strokeLinejoin: "round"
|
|
49352
49419
|
}
|
|
49353
49420
|
),
|
|
49354
|
-
/* @__PURE__ */
|
|
49421
|
+
/* @__PURE__ */ React305.createElement(
|
|
49355
49422
|
"path",
|
|
49356
49423
|
{
|
|
49357
49424
|
d: "M15.8016 17.0056L15.2128 20.0025L15.6347 20.2925L18.2009 18.2888L18.2888 16.2762L15.8016 17.0056Z",
|
|
@@ -49362,7 +49429,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49362
49429
|
strokeLinejoin: "round"
|
|
49363
49430
|
}
|
|
49364
49431
|
),
|
|
49365
|
-
/* @__PURE__ */
|
|
49432
|
+
/* @__PURE__ */ React305.createElement(
|
|
49366
49433
|
"path",
|
|
49367
49434
|
{
|
|
49368
49435
|
d: "M9.72002 16.2762L9.79033 18.2888L12.3566 20.2925L12.7784 20.0025L12.1984 17.0056L9.72002 16.2762Z",
|
|
@@ -49373,7 +49440,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49373
49440
|
strokeLinejoin: "round"
|
|
49374
49441
|
}
|
|
49375
49442
|
),
|
|
49376
|
-
/* @__PURE__ */
|
|
49443
|
+
/* @__PURE__ */ React305.createElement(
|
|
49377
49444
|
"path",
|
|
49378
49445
|
{
|
|
49379
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",
|
|
@@ -49384,7 +49451,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49384
49451
|
strokeLinejoin: "round"
|
|
49385
49452
|
}
|
|
49386
49453
|
),
|
|
49387
|
-
/* @__PURE__ */
|
|
49454
|
+
/* @__PURE__ */ React305.createElement(
|
|
49388
49455
|
"path",
|
|
49389
49456
|
{
|
|
49390
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",
|
|
@@ -49395,7 +49462,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49395
49462
|
strokeLinejoin: "round"
|
|
49396
49463
|
}
|
|
49397
49464
|
),
|
|
49398
|
-
/* @__PURE__ */
|
|
49465
|
+
/* @__PURE__ */ React305.createElement(
|
|
49399
49466
|
"path",
|
|
49400
49467
|
{
|
|
49401
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",
|
|
@@ -49406,7 +49473,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49406
49473
|
strokeLinejoin: "round"
|
|
49407
49474
|
}
|
|
49408
49475
|
),
|
|
49409
|
-
/* @__PURE__ */
|
|
49476
|
+
/* @__PURE__ */ React305.createElement(
|
|
49410
49477
|
"path",
|
|
49411
49478
|
{
|
|
49412
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",
|
|
@@ -49417,7 +49484,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49417
49484
|
strokeLinejoin: "round"
|
|
49418
49485
|
}
|
|
49419
49486
|
),
|
|
49420
|
-
/* @__PURE__ */
|
|
49487
|
+
/* @__PURE__ */ React305.createElement(
|
|
49421
49488
|
"path",
|
|
49422
49489
|
{
|
|
49423
49490
|
d: "M23.4827 13.4903L18.8864 12.1456L20.2837 14.2461L18.2009 18.2888L20.9429 18.2536H25.0295L23.4827 13.4903Z",
|
|
@@ -49428,7 +49495,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49428
49495
|
strokeLinejoin: "round"
|
|
49429
49496
|
}
|
|
49430
49497
|
),
|
|
49431
|
-
/* @__PURE__ */
|
|
49498
|
+
/* @__PURE__ */ React305.createElement(
|
|
49432
49499
|
"path",
|
|
49433
49500
|
{
|
|
49434
49501
|
d: "M9.10484 12.1456L4.50848 13.4903L2.97929 18.2536H7.05713L9.79033 18.2888L7.71626 14.2461L9.10484 12.1456Z",
|
|
@@ -49439,7 +49506,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49439
49506
|
strokeLinejoin: "round"
|
|
49440
49507
|
}
|
|
49441
49508
|
),
|
|
49442
|
-
/* @__PURE__ */
|
|
49509
|
+
/* @__PURE__ */ React305.createElement(
|
|
49443
49510
|
"path",
|
|
49444
49511
|
{
|
|
49445
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",
|
|
@@ -49453,14 +49520,14 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
49453
49520
|
);
|
|
49454
49521
|
}
|
|
49455
49522
|
function MastercardPaymentIcon({ size = 16 }) {
|
|
49456
|
-
return /* @__PURE__ */
|
|
49523
|
+
return /* @__PURE__ */ React305.createElement(
|
|
49457
49524
|
"svg",
|
|
49458
49525
|
{
|
|
49459
49526
|
xmlns: "http://www.w3.org/2000/svg",
|
|
49460
49527
|
height: size,
|
|
49461
49528
|
viewBox: "0 0 152.407 108"
|
|
49462
49529
|
},
|
|
49463
|
-
/* @__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(
|
|
49464
49531
|
"rect",
|
|
49465
49532
|
{
|
|
49466
49533
|
x: "60.4117",
|
|
@@ -49469,21 +49536,21 @@ function MastercardPaymentIcon({ size = 16 }) {
|
|
|
49469
49536
|
height: "56.6064",
|
|
49470
49537
|
fill: "#ff5f00"
|
|
49471
49538
|
}
|
|
49472
|
-
), /* @__PURE__ */
|
|
49539
|
+
), /* @__PURE__ */ React305.createElement(
|
|
49473
49540
|
"path",
|
|
49474
49541
|
{
|
|
49475
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",
|
|
49476
49543
|
transform: "translate(-319.79649 -252)",
|
|
49477
49544
|
fill: "#eb001b"
|
|
49478
49545
|
}
|
|
49479
|
-
), /* @__PURE__ */
|
|
49546
|
+
), /* @__PURE__ */ React305.createElement(
|
|
49480
49547
|
"path",
|
|
49481
49548
|
{
|
|
49482
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",
|
|
49483
49550
|
transform: "translate(-319.79649 -252)",
|
|
49484
49551
|
fill: "#f79e1b"
|
|
49485
49552
|
}
|
|
49486
|
-
), /* @__PURE__ */
|
|
49553
|
+
), /* @__PURE__ */ React305.createElement(
|
|
49487
49554
|
"path",
|
|
49488
49555
|
{
|
|
49489
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",
|
|
@@ -49497,7 +49564,7 @@ function FunkitPaymentsIconLine({
|
|
|
49497
49564
|
size = 16,
|
|
49498
49565
|
gap = "2"
|
|
49499
49566
|
}) {
|
|
49500
|
-
return /* @__PURE__ */
|
|
49567
|
+
return /* @__PURE__ */ React305.createElement(
|
|
49501
49568
|
Box,
|
|
49502
49569
|
{
|
|
49503
49570
|
display: "flex",
|
|
@@ -49506,9 +49573,9 @@ function FunkitPaymentsIconLine({
|
|
|
49506
49573
|
alignItems: "center",
|
|
49507
49574
|
justifyContent: "center"
|
|
49508
49575
|
},
|
|
49509
|
-
/* @__PURE__ */
|
|
49510
|
-
/* @__PURE__ */
|
|
49511
|
-
/* @__PURE__ */
|
|
49576
|
+
/* @__PURE__ */ React305.createElement(MetaMaskPaymentIcon, { size }),
|
|
49577
|
+
/* @__PURE__ */ React305.createElement(MastercardPaymentIcon, { size }),
|
|
49578
|
+
/* @__PURE__ */ React305.createElement(CoinbaseIcon, { size })
|
|
49512
49579
|
);
|
|
49513
49580
|
}
|
|
49514
49581
|
|