@privy-io/react-auth 2.1.0 → 2.2.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/dist/cjs/client/user.js +1 -1
- package/dist/cjs/client.js +1 -1
- package/dist/cjs/components/LoginModal.js +1 -1
- package/dist/cjs/components/embedded-wallets/PriceDisplay.js +1 -1
- package/dist/cjs/components/embedded-wallets/SolanaTransactionDetails.js +1 -1
- package/dist/cjs/components/embedded-wallets/TransactionDetails.js +2 -2
- package/dist/cjs/components/embedded-wallets/TransactionDetailsWrapper.js +1 -1
- package/dist/cjs/components/embedded-wallets/TransactionTotal.js +1 -1
- package/dist/cjs/components/embedded-wallets/index.js +1 -1
- package/dist/cjs/config.js +1 -1
- package/dist/cjs/connectors/embeddedProvider.js +1 -1
- package/dist/cjs/connectors/index.js +1 -1
- package/dist/cjs/constants.js +1 -1
- package/dist/cjs/embedded-wallets/solana/provider.js +1 -1
- package/dist/cjs/embedded-wallets/solana/transaction.js +1 -1
- package/dist/cjs/hooks/privy-provider.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/lib/attempt.js +1 -0
- package/dist/cjs/lib/smart-wallets-shared.js +1 -1
- package/dist/cjs/lib/smart-wallets.js +1 -1
- package/dist/cjs/lib/solana/transaction.js +1 -1
- package/dist/cjs/lib/user/shouldCreateEmbeddedEthWallet.js +1 -0
- package/dist/cjs/lib/user/shouldCreateEmbeddedSolWallet.js +1 -0
- package/dist/cjs/lib/user/shouldProceedtoEmbeddedWalletCreationFlow.js +1 -0
- package/dist/cjs/lib/viem/toViemTransactionSerializable.js +1 -1
- package/dist/cjs/privy-components/wallets-pill/ConnectWalletView.js +1 -1
- package/dist/cjs/privy-components/wallets-pill/WalletsDialog.js +1 -1
- package/dist/cjs/privy-provider-CEfM_gA2.js +3 -0
- package/dist/cjs/screens/AffirmativeConsentScreen.js +1 -1
- package/dist/cjs/screens/AwaitingPasswordlessCodeScreen.js +2 -2
- package/dist/cjs/screens/ConnectOnlyStatusScreen.js +1 -1
- package/dist/cjs/screens/ConnectionStatusScreen.js +2 -2
- package/dist/cjs/screens/CrossAppAuthScreen.js +1 -1
- package/dist/cjs/screens/EmbeddedWalletCreatedScreen.js +1 -1
- package/dist/cjs/screens/EmbeddedWalletOnAccountCreateScreen.js +1 -1
- package/dist/cjs/screens/FarcasterConnectStatusScreen.js +2 -2
- package/dist/cjs/screens/Funding/AwaitingEvmToSolBridgingScreen.js +1 -1
- package/dist/cjs/screens/Funding/AwaitingExternalSolanaTransferScreen.js +1 -1
- package/dist/cjs/screens/Funding/ManualTransferScreen.js +1 -1
- package/dist/cjs/screens/MfaScreens/MfaVerifyFlowScreen.js +1 -1
- package/dist/cjs/screens/MfaScreens/VerifyWithPasskey.js +1 -1
- package/dist/cjs/screens/OAuthStatusScreen.js +1 -1
- package/dist/cjs/screens/PasskeyStatusScreen.js +1 -1
- package/dist/cjs/screens/SendSolanaTransactionScreen/SendSolanaTransactionScreen.js +1 -1
- package/dist/cjs/screens/SendSolanaTransactionScreen/SolanaTransactionReceiptView.js +1 -1
- package/dist/cjs/screens/SendTransactionScreen/SendTransactionScreen.js +1 -1
- package/dist/cjs/screens/SendTransactionScreen/TransactionReceiptView.js +1 -1
- package/dist/cjs/screens/SendTransactionScreen/index.js +1 -1
- package/dist/cjs/screens/TelegramAuthScreen.js +1 -1
- package/dist/cjs/ui.js +1 -1
- package/dist/dts/farcaster.d.mts +1 -1
- package/dist/dts/farcaster.d.ts +1 -1
- package/dist/dts/index.d.mts +4 -4
- package/dist/dts/index.d.ts +4 -4
- package/dist/dts/smart-wallets.d.mts +4 -4
- package/dist/dts/smart-wallets.d.ts +4 -4
- package/dist/dts/solana.d.mts +4 -4
- package/dist/dts/solana.d.ts +4 -4
- package/dist/dts/{types-Do6eK2EI.d.mts → types-Cj9jWnPs.d.mts} +41 -1
- package/dist/dts/{types-Do6eK2EI.d.ts → types-Cj9jWnPs.d.ts} +41 -1
- package/dist/dts/ui.d.mts +1 -1
- package/dist/dts/ui.d.ts +1 -1
- package/dist/dts/{useSolanaWallets-CtSHyXUi.d.ts → useSolanaWallets-CFdCg_zF.d.mts} +1 -1
- package/dist/dts/{useSolanaWallets-CtSHyXUi.d.mts → useSolanaWallets-CFdCg_zF.d.ts} +1 -1
- package/dist/esm/client/user.mjs +1 -1
- package/dist/esm/client.mjs +1 -1
- package/dist/esm/components/LoginModal.mjs +1 -1
- package/dist/esm/components/embedded-wallets/PriceDisplay.mjs +1 -1
- package/dist/esm/components/embedded-wallets/SolanaTransactionDetails.mjs +1 -1
- package/dist/esm/components/embedded-wallets/TransactionDetails.mjs +2 -2
- package/dist/esm/components/embedded-wallets/TransactionDetailsWrapper.mjs +1 -1
- package/dist/esm/components/embedded-wallets/TransactionTotal.mjs +1 -1
- package/dist/esm/components/embedded-wallets/index.mjs +1 -1
- package/dist/esm/config.mjs +1 -1
- package/dist/esm/connectors/embeddedProvider.mjs +1 -1
- package/dist/esm/connectors/index.mjs +1 -1
- package/dist/esm/constants.mjs +1 -1
- package/dist/esm/embedded-wallets/solana/provider.mjs +1 -1
- package/dist/esm/embedded-wallets/solana/transaction.mjs +1 -1
- package/dist/esm/hooks/privy-provider.mjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/lib/attempt.mjs +1 -0
- package/dist/esm/lib/smart-wallets-shared.mjs +1 -1
- package/dist/esm/lib/smart-wallets.mjs +1 -1
- package/dist/esm/lib/solana/transaction.mjs +1 -1
- package/dist/esm/lib/user/shouldCreateEmbeddedEthWallet.mjs +1 -0
- package/dist/esm/lib/user/shouldCreateEmbeddedSolWallet.mjs +1 -0
- package/dist/esm/lib/user/shouldProceedtoEmbeddedWalletCreationFlow.mjs +1 -0
- package/dist/esm/lib/viem/toViemTransactionSerializable.mjs +1 -1
- package/dist/esm/privy-components/wallets-pill/ConnectWalletView.mjs +1 -1
- package/dist/esm/privy-components/wallets-pill/WalletsDialog.mjs +1 -1
- package/dist/esm/privy-provider-Dsr4yi3k.mjs +3 -0
- package/dist/esm/screens/AffirmativeConsentScreen.mjs +1 -1
- package/dist/esm/screens/AwaitingPasswordlessCodeScreen.mjs +2 -2
- package/dist/esm/screens/ConnectOnlyStatusScreen.mjs +1 -1
- package/dist/esm/screens/ConnectionStatusScreen.mjs +2 -2
- package/dist/esm/screens/CrossAppAuthScreen.mjs +1 -1
- package/dist/esm/screens/EmbeddedWalletCreatedScreen.mjs +1 -1
- package/dist/esm/screens/EmbeddedWalletOnAccountCreateScreen.mjs +1 -1
- package/dist/esm/screens/FarcasterConnectStatusScreen.mjs +2 -2
- package/dist/esm/screens/Funding/AwaitingEvmToSolBridgingScreen.mjs +1 -1
- package/dist/esm/screens/Funding/AwaitingExternalSolanaTransferScreen.mjs +1 -1
- package/dist/esm/screens/Funding/ManualTransferScreen.mjs +1 -1
- package/dist/esm/screens/MfaScreens/MfaVerifyFlowScreen.mjs +1 -1
- package/dist/esm/screens/MfaScreens/VerifyWithPasskey.mjs +1 -1
- package/dist/esm/screens/OAuthStatusScreen.mjs +1 -1
- package/dist/esm/screens/PasskeyStatusScreen.mjs +1 -1
- package/dist/esm/screens/SendSolanaTransactionScreen/SendSolanaTransactionScreen.mjs +1 -1
- package/dist/esm/screens/SendSolanaTransactionScreen/SolanaTransactionReceiptView.mjs +1 -1
- package/dist/esm/screens/SendTransactionScreen/SendTransactionScreen.mjs +1 -1
- package/dist/esm/screens/SendTransactionScreen/TransactionReceiptView.mjs +1 -1
- package/dist/esm/screens/SendTransactionScreen/index.mjs +1 -1
- package/dist/esm/screens/TelegramAuthScreen.mjs +1 -1
- package/dist/esm/ui.mjs +1 -1
- package/package.json +3 -3
- package/dist/cjs/privy-provider-Cq1Y-Omj.js +0 -3
- package/dist/esm/privy-provider-C-cTZKVr.mjs +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as o,Fragment as r}from"react/jsx-runtime";import{useState as s,useEffect as i,useRef as t,useCallback as n}from"react";import{styled as m}from"styled-components";import{useAppConfig as c}from"../configuration/context.mjs";import{useCaptcha as a}from"../hooks/captcha-context.mjs";import{usePrivyInternal as p}from"../hooks/internal-context.mjs";import{usePrivyModal as l}from"../hooks/modal-context.mjs";import{usePrivyContext as d}from"../hooks/privy-context.mjs";import{useElementHeight as j}from"../hooks/useElementHeight.mjs";import{useRegisterMfaListener as E}from"../hooks/useRegisterMfaListener.mjs";import{ModalScreen as S}from"../screens/index.mjs";import{AccountNotFoundScreen as u}from"../screens/AccountNotFoundScreen.mjs";import{LinkConflictScreen as g}from"../screens/AccountTransferScreen/LinkConflictScreen.mjs";import{AffirmativeConsentScreen as h}from"../screens/AffirmativeConsentScreen.mjs";import{AllowlistRejectionScreen as C}from"../screens/AllowlistRejectionScreen.mjs";import{AwaitingPasswordlessCodeScreen as f}from"../screens/AwaitingPasswordlessCodeScreen.mjs";import{CaptchaScreen as A}from"../screens/CaptchaScreen.mjs";import{ConnectOnlyAuthenticatedScreen as _}from"../screens/ConnectOnlyAuthenticatedScreen.mjs";import{ConnectOnlyLandingScreen as T}from"../screens/ConnectOnlyLandingScreen.mjs";import{ConnectOnlyStatusScreen as N}from"../screens/ConnectOnlyStatusScreen.mjs";import{ConnectionStatusScreen as I}from"../screens/ConnectionStatusScreen.mjs";import{CrossAppAuthScreen as b}from"../screens/CrossAppAuthScreen.mjs";import{DelegatedActionsConsentScreen as L}from"../screens/DelegatedActionsConsentScreen.mjs";import{DelegatedActionsRevokeScreen as R}from"../screens/DelegatedActionsRevokeScreen.mjs";import{EmbeddedWalletConnectingScreen as y}from"../screens/EmbeddedWalletConnectingScreen.mjs";import{EmbeddedWalletCreatedScreen as v}from"../screens/EmbeddedWalletCreatedScreen.mjs";import{EmbeddedWalletKeyExportScreen as w}from"../screens/EmbeddedWalletKeyExportScreen.mjs";import{EmbeddedWalletOnAccountCreateScreen as D}from"../screens/EmbeddedWalletOnAccountCreateScreen.mjs";import{EmbeddedWalletPasswordUpdateScreen as O}from"../screens/EmbeddedWalletPasswordUpdateScreen.mjs";import{EmbeddedWalletPasswordUpdateSplashScreen as W}from"../screens/EmbeddedWalletPasswordUpdateSplashScreen.mjs";import{ErrorScreen as P}from"../screens/ErrorScreen.mjs";import{FarcasterConnectStatusScreen as k}from"../screens/FarcasterConnectStatusScreen.mjs";import{FarcasterSignerStatusScreen as M}from"../screens/FarcasterSignerStatusScreen.mjs";import{AwaitingEvmToSolBridgingScreen as F}from"../screens/Funding/AwaitingEvmToSolBridgingScreen.mjs";import{AwaitingExternalSolanaTransferScreen as B}from"../screens/Funding/AwaitingExternalSolanaTransferScreen.mjs";import{AwaitingExternalTransferScreen as x}from"../screens/Funding/AwaitingExternalTransferScreen.mjs";import{AwaitingSolToEvmBridgingScreen as G}from"../screens/Funding/AwaitingSolToEvmBridgingScreen.mjs";import{CoinbaseOnrampStatusScreen as U}from"../screens/Funding/CoinbaseOnrampStatusScreen.mjs";import{FundingAmountEditScreen as V}from"../screens/Funding/FundingEditAmountScreen.mjs";import{FundingMethodSelectionScreen as H}from"../screens/Funding/FundingMethodSelectionScreen.mjs";import{ManualTransferScreen as q}from"../screens/Funding/ManualTransferScreen.mjs";import{MoonpayStatusScreen as K}from"../screens/Funding/MoonpayStatusScreen.mjs";import{TransferFromWalletScreen as Y}from"../screens/Funding/TransferFromWalletScreen.mjs";import{InAppBrowserLoginNotPossible as z}from"../screens/InAppBrowserLoginNotPossible.mjs";import{InstallWalletScreen as X}from"../screens/InstallWalletScreen.mjs";import{ConnectOrCreateScreen as Q}from"../screens/LandingScreen/ConnectOrCreateScreen.mjs";import{LandingScreen as J}from"../screens/LandingScreen/LandingScreen.mjs";import{Hide as $}from"../screens/LandingScreen/styles.mjs";import{LinkEmailScreen as Z}from"../screens/LinkEmailScreen.mjs";import{LinkPasskeyScreen as ee}from"../screens/LinkPasskeyScreen.mjs";import{LinkPhoneScreen as oe}from"../screens/LinkPhoneScreen.mjs";import{LinkWalletScreen as re}from"../screens/LinkWalletScreen.mjs";import{LoginFailedScreen as se}from"../screens/LoginFailedScreen.mjs";import{MfaEnrollmentFlowScreen as ie}from"../screens/MfaScreens/MfaEnrollmentFlowScreen.mjs";import{MfaVerifyFlowScreen as te}from"../screens/MfaScreens/MfaVerifyFlowScreen.mjs";import{OAuthStatusScreen as ne}from"../screens/OAuthStatusScreen.mjs";import{PasskeySelectSignupOrLogin as me}from"../screens/PasskeySelectSignupOrLogin.mjs";import{PasskeyStatusScreen as ce}from"../screens/PasskeyStatusScreen.mjs";import{PasswordRecoveryScreen as ae}from"../screens/Recovery/PasswordRecoveryScreen.mjs";import{RecoveryOAuthScreen as pe}from"../screens/Recovery/RecoveryOAuthStatusScreen.mjs";import{EmbeddedWalletPasswordCreateScreen as le}from"../screens/Recovery/RecoveryPasswordCreateScreen.mjs";import{RecoverySelectionScreen as de}from"../screens/Recovery/RecoverySelectionScreen.mjs";import{SetAutomaticRecoveryScreen as je}from"../screens/Recovery/SetAutomaticRecoveryScreen.mjs";import{SendSolanaTransactionScreen as Ee}from"../screens/SendSolanaTransactionScreen/SendSolanaTransactionScreen.mjs";import{SendTransactionScreen as Se}from"../screens/SendTransactionScreen/SendTransactionScreen.mjs";import{SignRequestScreen as ue}from"../screens/SignRequestScreen.mjs";import{TelegramAuthScreen as ge}from"../screens/TelegramAuthScreen.mjs";import{UpdateEmailScreen as he}from"../screens/UpdateEmailScreen.mjs";import{UpdatePhoneScreen as Ce}from"../screens/UpdatePhoneScreen.mjs";import{UserLimitReachedScreen as fe}from"../screens/UserLimitReachedScreen.mjs";import{WalletInterstitialScreen as Ae}from"../screens/WalletInterstitialScreen.mjs";import{StylesWrapper as _e}from"../styles.mjs";import{Dialog as Te,CenterItem as Ne}from"./Dialog.mjs";import{RefactorSpacerTop as Ie,RefactorSpacerBottom as be}from"./Layouts.mjs";import{Loader as Le}from"./Loader.mjs";import{ModalFooter as Re}from"./ModalFooter.mjs";import{ModalHeader as ye}from"./ModalHeader.mjs";import"../config.mjs";import"../configuration/defaultClientConfig.mjs";import"../constants.mjs";import"../configuration/login-methods.mjs";import"../configuration/wallets.mjs";import"../connectors/chains/index.mjs";import"../connectors/chains/arbitrum.mjs";import"../connectors/chains/arbitrumSepolia.mjs";import"../connectors/chains/avalanche.mjs";import"../connectors/chains/avalancheFuji.mjs";import"../connectors/chains/base.mjs";import"../connectors/chains/baseSepolia.mjs";import"../connectors/chains/berachainArtio.mjs";import"../connectors/chains/celo.mjs";import"../connectors/chains/celoAlfajores.mjs";import"../connectors/chains/filecoin.mjs";import"../connectors/chains/filecoinCalibration.mjs";import"../connectors/chains/garnetHolesky.mjs";import"../connectors/chains/holesky.mjs";import"../connectors/chains/linea.mjs";import"../connectors/chains/lineaTestnet.mjs";import"../connectors/chains/lukso.mjs";import"../connectors/chains/mainnet.mjs";import"../connectors/chains/optimism.mjs";import"../connectors/chains/optimismSepolia.mjs";import"../connectors/chains/polygon.mjs";import"../connectors/chains/polygonAmoy.mjs";import"../connectors/chains/redstone.mjs";import"../connectors/chains/sepolia.mjs";import"../connectors/chains/zora.mjs";import"../connectors/chains/zoraSepolia.mjs";import"../connectors/chains/zoraTestnet.mjs";import"../connectors/chains/utils.mjs";import"../lib/solana/index.mjs";import"../theme.mjs";import"tinycolor2";import"../lib/cybr53.mjs";import"../hooks/index.mjs";import"../errors.mjs";import"ofetch";import"../utils/index.mjs";import"../connectors/get-legacy-injected-providers.mjs";import"../connectors/is-wallet-installed.mjs";import"../utils/eth/getPublicClient.mjs";import"viem";import"./PrefetchedImage.mjs";import"../hooks/events-context.mjs";import"@heroicons/react/24/outline/QuestionMarkCircleIcon";import"./Button.mjs";import"./CircleBackground.mjs";import"./layout/StackedContainer.mjs";import"@heroicons/react/24/outline/ExclamationTriangleIcon";import"@heroicons/react/24/outline/WalletIcon";import"./CircleBorder.mjs";import"./ui/wallet/Address.mjs";import"@heroicons/react/24/outline/CheckIcon";import"@heroicons/react/24/outline/Square2StackIcon";import"../lib/capitalizeFirstLetter.mjs";import"../svg/circle-alert.mjs";import"../screens/AccountTransferScreen/AccountTransferButton.mjs";import"../screens/AccountTransferScreen/EmbeddedWalletInfoView.mjs";import"../screens/AccountTransferScreen/styled.mjs";import"@heroicons/react/24/outline/ExclamationCircleIcon";import"@heroicons/react/24/outline/ArrowTopRightOnSquareIcon";import"@heroicons/react/24/solid/DocumentCheckIcon";import"../client/user.mjs";import"viem/utils";import"../screens/MfaScreens/StyledComponents.mjs";import"../svg/lock-closed.mjs";import"@heroicons/react/20/solid/CheckIcon";import"@heroicons/react/24/outline/EnvelopeIcon";import"@heroicons/react/24/outline/PhoneIcon";import"react-device-detect";import"./ScreenHeader.mjs";import"@heroicons/react/24/solid/CheckCircleIcon";import"@heroicons/react/24/solid/XCircleIcon";import"./WrappedLoader.mjs";import"../screens/LandingScreen/WalletButtonList.mjs";import"../screens/LandingScreen/EmptyWalletView.mjs";import"../screens/LandingScreen/WalletButton.mjs";import"./external-wallets/InjectedWalletIcon.mjs";import"./ui/chips/Chip.mjs";import"./ui/animation/LoadingSkeleton.mjs";import"../connectors/mobile-wallets.mjs";import"../svg/backpack.mjs";import"../svg/okx-wallet.mjs";import"../svg/phantom.mjs";import"../svg/solflare.mjs";import"../types.mjs";import"../lib/external-wallets/displayHelpers.mjs";import"../svg/brave-browser-icon.mjs";import"../svg/bybit.mjs";import"../svg/coinbase-wallet.mjs";import"../svg/cryptocom.mjs";import"../svg/metamask.mjs";import"../svg/rabby.mjs";import"../svg/rainbow.mjs";import"../svg/safe.mjs";import"../svg/uniswap.mjs";import"../svg/universal-profile.mjs";import"../svg/wallet-connect.mjs";import"../svg/zerion.mjs";import"../lib/isEmbeddedWebview.mjs";import"../recent-login/context.mjs";import"../storage.mjs";import"../connectors/errors.mjs";import"@privy-io/js-sdk-core";import"../svg/browser-extension-wallet-icon.mjs";import"../auth-flows/siwe.mjs";import"../effect.mjs";import"../lib/siwe.mjs";import"../auth-flows/siws.mjs";import"../lib/siws.mjs";import"../connectors/userAlreadyHasConnectedCoinbaseWallet.mjs";import"../connectors/walletconnect-v2.mjs";import"@walletconnect/ethereum-provider";import"../connectors/ethereum/index.mjs";import"../connectors/areWalletArraysEqual.mjs";import"../connectors/isBaseConnectedEthereumWallet.mjs";import"../connectors/base.mjs";import"eventemitter3";import"../connectors/getRpcTimeout.mjs";import"../connectors/privyProxyProvider.mjs";import"../connectors/walletconnect-registry.mjs";import"../hook-utils/useInterval.mjs";import"../lib/useHasTabbedAway.mjs";import"../svg/protected-by-privy.mjs";import"@heroicons/react/24/outline/ArrowLeftIcon";import"@heroicons/react/24/outline/ArrowRightIcon";import"@heroicons/react/24/outline/XMarkIcon";import"./ProviderAppLogo.mjs";import"../hooks/useLogout.mjs";import"@heroicons/react/24/outline/CheckCircleIcon";import"@heroicons/react/24/outline/CloudArrowUpIcon";import"./ui/wallet/WalletInfoCard.mjs";import"./ui/layout/Column.mjs";import"./ui/typography/ErrorMessage.mjs";import"./ui/typography/LabelXs.mjs";import"./ui/wallet/shared.mjs";import"@heroicons/react/24/outline/NoSymbolIcon";import"./primitives/LoadingSpinner/index.mjs";import"../embedded-wallets/errors.mjs";import"../embedded-wallets/types.mjs";import"../lib/embeddedWalletRecovery.mjs";import"../paths.mjs";import"../lib/pkce.mjs";import"jose";import"../crypto.mjs";import"./ui/banners/WarningBanner.mjs";import"./ui/typography/Subtitle.mjs";import"./ui/typography/Title.mjs";import"../hooks/useEmbeddedWalletCreate.mjs";import"../password.mjs";import"fast-password-entropy";import"secure-password-utilities";import"secure-password-utilities/wordlists";import"./embedded-wallets/SetWalletPasswordForm/SetWalletPasswordForm.mjs";import"./embedded-wallets/SetWalletPasswordForm/ConfimWalletPasswordForm.mjs";import"./embedded-wallets/SetWalletPasswordForm/shared.mjs";import"@heroicons/react/24/outline/ArrowPathIcon";import"@heroicons/react/24/outline/EyeIcon";import"@heroicons/react/24/outline/EyeSlashIcon";import"./embedded-wallets/SetWalletPasswordForm/ConfimWalletPasswordSaved.mjs";import"./Checkbox.mjs";import"./embedded-wallets/SetWalletPasswordForm/CreateWalletPassword.mjs";import"@heroicons/react/24/outline/KeyIcon";import"./embedded-wallets/SetWalletPasswordForm/SaveWalletPassword.mjs";import"@heroicons/react/24/outline/ArrowDownTrayIcon";import"@heroicons/react/24/outline/ClipboardDocumentCheckIcon";import"@heroicons/react/24/outline/DocumentDuplicateIcon";import"./embedded-wallets/SetWalletPasswordForm/SetWalletPasswordComplete.mjs";import"./embedded-wallets/SetWalletPasswordForm/setWalletPassword.hooks.mjs";import"@heroicons/react/24/outline/UserCircleIcon";import"@heroicons/react/24/solid/LockClosedIcon";import"./CopyToClipboard.mjs";import"../svg/checkmark.mjs";import"../svg/copy.mjs";import"./OpenLink.mjs";import"./QrCode.mjs";import"qrcode";import"../svg/black-rounded-square.mjs";import"../svg/farcaster.mjs";import"./embedded-wallets/FundWalletMethodHeader.mjs";import"./primitives/NeutralSpinner/index.mjs";import"../hooks/useGetTokenPrice.mjs";import"../hooks/useGetSolPrice.mjs";import"../hooks/useWallets.mjs";import"../lib/funding/analytics.mjs";import"../lib/funding/reservoir.mjs";import"../lib/solana/transaction.mjs";import"../utils/buffer/readBigInt64LE.mjs";import"../lib/wallets/actions/getBalanceForChains.mjs";import"../plugins/context/PrivyPluginContext.mjs";import"../plugins/solana-funding/id.mjs";import"../screens/Funding/BridgeNetworkSelectionView.mjs";import"./ui/layout/Row.mjs";import"./ui/typography/LabelSm.mjs";import"./ui/wallet/NetworkBalanceCard.mjs";import"./ui/typography/Value.mjs";import"./ui/wallet/NetworkIcon.mjs";import"@heroicons/react/24/outline/GlobeAltIcon";import"./ui/icons/Arbitum.mjs";import"./ui/icons/Avalanche.mjs";import"./ui/icons/Base.mjs";import"./ui/icons/Celo.mjs";import"./ui/icons/Linea.mjs";import"./ui/icons/Mainnnet.mjs";import"./ui/icons/Optimism.mjs";import"./ui/icons/Polygon.mjs";import"./ui/icons/Solana.mjs";import"./ui/icons/Zora.mjs";import"./ui/wallet/NetworkSelectorPanel.mjs";import"@headlessui/react";import"@heroicons/react/24/outline/ChevronDownIcon";import"../lib/ethers.mjs";import"../screens/Funding/styles.mjs";import"../screens/Funding/TransferOrBridgeLoadingScreen.mjs";import"../hooks/solana/useSolanaWallets.mjs";import"../lib/erc20/actions/abis/transfer.mjs";import"../lib/erc20/formatErc20TokenAmount.mjs";import"../lib/wallets/actions/getErc20Balance.mjs";import"@heroicons/react/24/solid/ArrowsRightLeftIcon";import"@heroicons/react/24/outline/CreditCardIcon";import"@heroicons/react/24/outline/QrCodeIcon";import"./ui/banners/ErrorBanner.mjs";import"./ui/banners/InfoBanner.mjs";import"@heroicons/react/24/outline/InformationCircleIcon";import"./ui/icons/ApplePay.mjs";import"./ui/icons/GooglePay.mjs";import"../hook-utils/useAsyncValue.mjs";import"../icons/WalletCards.mjs";import"../lib/erc20/actions/getErc20TokenInfo.mjs";import"../lib/funding/prepareFundingMethods.mjs";import"../lib/funding/coinbase/triggerCoinbaseFlow.mjs";import"../lib/popup/triggerPopup.mjs";import"../lib/funding/coinbase/toCoinbaseBlockchainFromChainId.mjs";import"../lib/funding/moonpay/triggerMoonpayFlow.mjs";import"../lib/funding/moonpay/index.mjs";import"../payment-request/isPaymentRequestAvailable.mjs";import"../hooks/useWalletBalance.mjs";import"../svg/blobby.mjs";import"../svg/moonpay.mjs";import"../screens/LandingScreen/WalletOverflowButton.mjs";import"@heroicons/react/24/outline/ChevronRightIcon";import"./TodoList.mjs";import"../svg/check-badge.mjs";import"../screens/LandingScreen/CustomLandingScreenView.mjs";import"../lib/toDisplayFromAccountType.mjs";import"../screens/LandingScreen/AppLogoHeader.mjs";import"./AppLogo.mjs";import"../screens/LandingScreen/CrossAppButton.mjs";import"../screens/LandingScreen/EmailButton.mjs";import"./ConnectEmailForm.mjs";import"./ui/forms/EmailInputForm.mjs";import"../screens/LandingScreen/FarcasterButton.mjs";import"../screens/LandingScreen/LandingScreenView.mjs";import"../svg/email-or-phone.mjs";import"../screens/LandingScreen/PasskeyLink.mjs";import"@heroicons/react/24/outline/FingerPrintIcon";import"../screens/LandingScreen/SmsButton.mjs";import"./ConnectPhoneForm.mjs";import"./PhoneCountryDropdown.mjs";import"../screens/LandingScreen/SocialButton.mjs";import"../svg/apple.mjs";import"../svg/discord.mjs";import"../svg/github.mjs";import"../svg/google.mjs";import"../svg/instagram.mjs";import"../svg/linkedin.mjs";import"../svg/spotify.mjs";import"../svg/tiktok.mjs";import"../svg/twitter.mjs";import"../screens/LandingScreen/TelegramButton.mjs";import"../svg/telegram.mjs";import"../screens/LandingScreen/Web2OverflowButton.mjs";import"@heroicons/react/24/outline/ClockIcon";import"@heroicons/react/24/outline/TrashIcon";import"@heroicons/react/24/solid/CheckBadgeIcon";import"../svg/face-id.mjs";import"../svg/fingerprint.mjs";import"../svg/error-circle.mjs";import"@heroicons/react/24/outline/ShieldCheckIcon";import"@heroicons/react/24/solid/IdentificationIcon";import"../hooks/useMfa.mjs";import"../hooks/useMfaEnrollment.mjs";import"../svg/mfa-shield.mjs";import"../screens/MfaScreens/EnrollLandingScreen.mjs";import"@heroicons/react/24/outline/DevicePhoneMobileIcon";import"@heroicons/react/24/outline/MinusCircleIcon";import"../screens/MfaScreens/EnrollPasskey.mjs";import"@heroicons/react/24/outline/ArrowRightEndOnRectangleIcon";import"../screens/MfaScreens/EnrollSms.mjs";import"./PinInput.mjs";import"../screens/MfaScreens/EnrollTotp.mjs";import"../svg/qr-codes.mjs";import"@heroicons/react/24/solid/ShieldCheckIcon";import"./embedded-wallets/TransactionDetailsWrapper.mjs";import"../lib/viem/prepareTransactionRequest.mjs";import"../lib/viem/toViemTransactionSerializable.mjs";import"./embedded-wallets/TransactionDetails.mjs";import"./embedded-wallets/DisplayInfoItem.mjs";import"./embedded-wallets/PriceDisplay.mjs";import"./embedded-wallets/TransactionTotal.mjs";import"./primitives/Accordion/index.mjs";import"./primitives/Accordion/AccordionContext.mjs";import"./embedded-wallets/WalletLink.mjs";import"../screens/MfaScreens/VerifyWithPasskey.mjs";import"@heroicons/react/24/outline/CalendarIcon";import"../auth-flows/oauth/getDisplayForProvider.mjs";import"../svg/globe.mjs";import"../auth-flows/oauth/getOAuthErrorMessage.mjs";import"../auth-flows/oauth/stripUrlOAuthParamsAndRemoveStateCode.mjs";import"../svg/apple-icloud.mjs";import"../svg/google-drive.mjs";import"../screens/Recovery/styles.mjs";import"@heroicons/react/24/outline/LockClosedIcon";import"@heroicons/react/24/outline/PencilSquareIcon";import"./ui/icons/WithCircleBorder.mjs";import"../embedded-wallets/solana/transaction.mjs";import"../screens/SendTransactionScreen/SendTransactionScreenView.mjs";import"@heroicons/react/24/outline";import"./primitives/InteractiveLabel.mjs";import"../screens/SendTransactionScreen/TokenDescription.mjs";import"../screens/SendTransactionScreen/TransactionDetail.mjs";import"../screens/SendTransactionScreen/TransactionValidation.mjs";import"./Pill.mjs";import"../screens/SendTransactionScreen/useTransactionDetails.mjs";import"../screens/SendTransactionScreen/TransactionErrorView.mjs";import"@heroicons/react/24/outline/ClipboardDocumentIcon";import"../screens/SendSolanaTransactionScreen/SolanaTransactionReceiptView.mjs";import"./embedded-wallets/SolanaTransactionDetails.mjs";import"../embedded-wallets/rpc/index.mjs";import"../screens/SendTransactionScreen/ScanDetails.mjs";import"./primitives/JsonTree.mjs";import"../screens/SendTransactionScreen/TransactionReceiptView.mjs";import"../screens/SendTransactionScreen/getStaticTransactionMetadata.mjs";import"../lib/deployAccount/actions/abis/deployAccount.mjs";import"../lib/erc20/actions/abis/approve.mjs";import"../lib/erc721/actions/abis/mint.mjs";import"../lib/erc721/actions/abis/safeTransferFrom.mjs";import"../lib/erc721/actions/abis/setApprovalForAll.mjs";import"../lib/erc721/actions/abis/transferFrom.mjs";import"../lib/erc1155/actions/abis/safeBatchTransferFrom.mjs";import"../lib/erc1155/actions/abis/safeTransferFrom.mjs";import"../screens/SendTransactionScreen/lib.mjs";import"../screens/SendTransactionScreen/usePrepareTransaction.mjs";import"./embedded-wallets/StyledLogo.mjs";import"../auth-flows/telegram.mjs";import"./UpdateEmailForm.mjs";import"../svg/alert-circle.mjs";import"../cssNormalize.mjs";let ve={[S.LANDING]:J,[S.CONNECT_OR_CREATE]:Q,[S.AWAITING_PASSWORDLESS_CODE]:f,[S.AWAITING_CONNECTION]:I,[S.AWAITING_CONNECT_ONLY_CONNECTION]:N,[S.AWAITING_FARCASTER_CONNECTION]:k,[S.AWAITING_FARCASTER_SIGNER]:M,[S.SELECT_PASSKEY_SIGNUP_OR_LOGIN]:me,[S.AWAITING_PASSKEY_SYSTEM_DIALOGUE]:ce,[S.WALLET_INTERSTITIAL_SCREEN]:Ae,[S.LOGIN_FAILED_SCREEN]:se,[S.AWAITING_OAUTH_SCREEN]:ne,[S.CROSS_APP_AUTH_SCREEN]:b,[S.ALLOWLIST_REJECTION_SCREEN]:C,[S.ACCOUNT_NOT_FOUND_SCREEN]:u,[S.USER_LIMIT_REACHED_SCREEN]:fe,[S.INSTALL_WALLET_SCREEN]:X,[S.LINK_EMAIL_SCREEN]:Z,[S.LINK_PHONE_SCREEN]:oe,[S.LINK_WALLET_SCREEN]:re,[S.LINK_PASSKEY_SCREEN]:ee,[S.UPDATE_EMAIL_SCREEN]:he,[S.UPDATE_PHONE_SCREEN]:Ce,[S.CONNECT_ONLY_LANDING_SCREEN]:T,[S.CONNECT_ONLY_AUTHENTICATED_SCREEN]:_,[S.EMBEDDED_WALLET_ON_ACCOUNT_CREATE_SCREEN]:D,[S.EMBEDDED_WALLET_CREATED_SCREEN]:v,[S.EMBEDDED_WALLET_CONNECTING_SCREEN]:y,[S.EMBEDDED_WALLET_PASSWORD_RECOVERY_SCREEN]:ae,[S.EMBEDDED_WALLET_RECOVERY_SELECTION_SCREEN]:de,[S.EMBEDDED_WALLET_SET_AUTOMATIC_RECOVERY_SCREEN]:je,[S.EMBEDDED_WALLET_RECOVERY_OAUTH_SCREEN]:pe,[S.EMBEDDED_WALLET_KEY_EXPORT_SCREEN]:w,[S.EMBEDDED_WALLET_SIGN_REQUEST_SCREEN]:ue,[S.EMBEDDED_WALLET_SEND_TRANSACTION_SCREEN]:Se,[S.EMBEDDED_WALLET_SEND_SOLANA_TRANSACTION_SCREEN]:Ee,[S.EMBEDDED_WALLET_DELEGATED_ACTIONS_CONSENT_SCREEN]:L,[S.EMBEDDED_WALLET_DELEGATED_ACTIONS_REVOKE_SCREEN]:R,[S.FUNDING_METHOD_SELECTION_SCREEN]:H,[S.MOONPAY_STATUS_SCREEN]:K,[S.COINBASE_ONRAMP_STATUS_SCREEN]:U,[S.FUNDING_TRANSFER_FROM_WALLET_SCREEN]:Y,[S.FUNDING_EDIT_AMOUNT_SCREEN]:V,[S.FUNDING_AWAITING_TRANSFER_FROM_EXTERNAL_WALLET_SCREEN]:x,[S.FUNDING_AWAITING_TRANSFER_FROM_EXTERNAL_SOLANA_WALLET_SCREEN]:B,[S.FUNDING_AWAITING_EVM_TO_SOL_BRIDGING_SCREEN]:F,[S.FUNDING_AWAITING_SOL_TO_EVM_BRIDGING_SCREEN]:G,[S.FUNDING_MANUAL_TRANSFER_SCREEN]:q,[S.EMBEDDED_WALLET_PASSWORD_UPDATE_SPLASH_SCREEN]:W,[S.EMBEDDED_WALLET_PASSWORD_UPDATE_SCREEN]:O,[S.EMBEDDED_WALLET_PASSWORD_CREATE_SCREEN]:le,[S.MFA_ENROLLMENT_FLOW_SCREEN]:ie,[S.CAPTCHA_SCREEN]:A,[S.ERROR_SCREEN]:P,[S.IN_APP_BROWSER_LOGIN_NOT_POSSIBLE]:z,[S.AFFIRMATIVE_CONSENT_SCREEN]:h,[S.TELEGRAM_AUTH_SCREEN]:ge,[S.LINK_CONFLICT_SCREEN]:g},we=[S.LANDING,S.AWAITING_CONNECTION],De=({isMfaVerifying:s,onMfaVerificationComplete:t})=>{let{ready:n,isModalOpen:m}=d(),{headless:p}=c(),{ready:j,currentScreen:E}=l(),{status:u,execute:g,reset:h,enabled:C}=a(),f=m&&E&&we.includes(E)&&!p&&"ready"===u;return i((()=>{f&&g()}),[f]),i((()=>{!m&&C&&h()}),[m,C]),n&&j||E===S.AWAITING_OAUTH_SCREEN||E===S.CROSS_APP_AUTH_SCREEN||E===S.TELEGRAM_AUTH_SCREEN?!E&&s?/*#__PURE__*/e(te,{open:s,onClose:t}):E?/*#__PURE__*/o(r,{children:[/*#__PURE__*/e($,{$if:!!s,children:/*#__PURE__*/e(ve[E],{})}),/*#__PURE__*/e($,{$if:!s,children:/*#__PURE__*/e(te,{open:s,onClose:t})})]}):null:/*#__PURE__*/o(r,{children:[/*#__PURE__*/e(ye,{}),/*#__PURE__*/e(Ie,{}),/*#__PURE__*/e(Ne,{children:/*#__PURE__*/e(Le,{})}),/*#__PURE__*/e(be,{}),/*#__PURE__*/e(Re,{})]})},Oe=({isMfaVerifying:o,onMfaVerificationComplete:r})=>{let s=t(null);/*#__PURE__*/return e(ke,{style:{height:j(s)},id:"privy-modal-content",children:/*#__PURE__*/e("div",{ref:s,children:/*#__PURE__*/e(De,{isMfaVerifying:o,onMfaVerificationComplete:r})})})};const We=({open:o})=>{let{app:r}=l(),{gracefulClosePrivyModal:i}=(()=>{let{closePrivyModal:e}=p(),{onUserCloseViaDialogOrKeybindRef:o}=l();return{gracefulClosePrivyModal:n((()=>{if(!o?.current)return e({shouldCallAuthOnSuccess:!1});o.current()}),[e])}})(),[t,m]=s(!1);E({onMfaRequired:()=>{r?.mfa.noPromptOnMfaRequired||m(!0)}});let c=o||t;return r.render.standalone?/*#__PURE__*/e(_e,{children:/*#__PURE__*/e(Pe,{id:"privy-modal-content",children:/*#__PURE__*/e(De,{isMfaVerifying:t,onMfaVerificationComplete:()=>m(!1)})})}):/*#__PURE__*/e(Te,{open:c,id:"privy-dialog","aria-label":"log in or sign up","aria-labelledby":"privy-dialog-title",onClick:()=>i(),children:/*#__PURE__*/e(_e,{children:/*#__PURE__*/e(Oe,{isMfaVerifying:t,onMfaVerificationComplete:()=>m(!1)})})})};let Pe=/*#__PURE__*/m.div.withConfig({displayName:"ContentWrapper",componentId:"sc-1174608a-0"})(["display:flex;flex-direction:column;text-align:center;font-size:14px;line-height:20px;width:100%;background:var(--privy-color-background);padding:0 16px;"]),ke=/*#__PURE__*/m(Pe).withConfig({displayName:"BaseModal",componentId:"sc-1174608a-1"})(["transition:height 150ms ease-out;overflow:hidden;max-height:calc(100svh - 32px);border-radius:var(--privy-border-radius-lg) var(--privy-border-radius-lg) 0 0;box-shadow:0px 0px 36px rgba(55,65,81,0.15);@media (min-width:441px){box-shadow:0px 8px 36px rgba(55,65,81,0.15);border-radius:var(--privy-border-radius-lg);}"]);export{We as LoginModal};
|
|
1
|
+
import{jsx as e,jsxs as o,Fragment as r}from"react/jsx-runtime";import{useState as s,useEffect as i,useRef as t,useCallback as n}from"react";import{styled as m}from"styled-components";import{useAppConfig as c}from"../configuration/context.mjs";import{useCaptcha as a}from"../hooks/captcha-context.mjs";import{usePrivyInternal as p}from"../hooks/internal-context.mjs";import{usePrivyModal as l}from"../hooks/modal-context.mjs";import{usePrivyContext as d}from"../hooks/privy-context.mjs";import{useElementHeight as j}from"../hooks/useElementHeight.mjs";import{useRegisterMfaListener as E}from"../hooks/useRegisterMfaListener.mjs";import{ModalScreen as S}from"../screens/index.mjs";import{AccountNotFoundScreen as u}from"../screens/AccountNotFoundScreen.mjs";import{LinkConflictScreen as h}from"../screens/AccountTransferScreen/LinkConflictScreen.mjs";import{AffirmativeConsentScreen as g}from"../screens/AffirmativeConsentScreen.mjs";import{AllowlistRejectionScreen as C}from"../screens/AllowlistRejectionScreen.mjs";import{AwaitingPasswordlessCodeScreen as f}from"../screens/AwaitingPasswordlessCodeScreen.mjs";import{CaptchaScreen as A}from"../screens/CaptchaScreen.mjs";import{ConnectOnlyAuthenticatedScreen as _}from"../screens/ConnectOnlyAuthenticatedScreen.mjs";import{ConnectOnlyLandingScreen as T}from"../screens/ConnectOnlyLandingScreen.mjs";import{ConnectOnlyStatusScreen as N}from"../screens/ConnectOnlyStatusScreen.mjs";import{ConnectionStatusScreen as b}from"../screens/ConnectionStatusScreen.mjs";import{CrossAppAuthScreen as I}from"../screens/CrossAppAuthScreen.mjs";import{DelegatedActionsConsentScreen as L}from"../screens/DelegatedActionsConsentScreen.mjs";import{DelegatedActionsRevokeScreen as R}from"../screens/DelegatedActionsRevokeScreen.mjs";import{EmbeddedWalletConnectingScreen as y}from"../screens/EmbeddedWalletConnectingScreen.mjs";import{EmbeddedWalletCreatedScreen as w}from"../screens/EmbeddedWalletCreatedScreen.mjs";import{EmbeddedWalletKeyExportScreen as v}from"../screens/EmbeddedWalletKeyExportScreen.mjs";import{EmbeddedWalletOnAccountCreateScreen as D}from"../screens/EmbeddedWalletOnAccountCreateScreen.mjs";import{EmbeddedWalletPasswordUpdateScreen as O}from"../screens/EmbeddedWalletPasswordUpdateScreen.mjs";import{EmbeddedWalletPasswordUpdateSplashScreen as W}from"../screens/EmbeddedWalletPasswordUpdateSplashScreen.mjs";import{ErrorScreen as P}from"../screens/ErrorScreen.mjs";import{FarcasterConnectStatusScreen as k}from"../screens/FarcasterConnectStatusScreen.mjs";import{FarcasterSignerStatusScreen as M}from"../screens/FarcasterSignerStatusScreen.mjs";import{AwaitingEvmToSolBridgingScreen as F}from"../screens/Funding/AwaitingEvmToSolBridgingScreen.mjs";import{AwaitingExternalSolanaTransferScreen as B}from"../screens/Funding/AwaitingExternalSolanaTransferScreen.mjs";import{AwaitingExternalTransferScreen as x}from"../screens/Funding/AwaitingExternalTransferScreen.mjs";import{AwaitingSolToEvmBridgingScreen as G}from"../screens/Funding/AwaitingSolToEvmBridgingScreen.mjs";import{CoinbaseOnrampStatusScreen as U}from"../screens/Funding/CoinbaseOnrampStatusScreen.mjs";import{FundingAmountEditScreen as V}from"../screens/Funding/FundingEditAmountScreen.mjs";import{FundingMethodSelectionScreen as H}from"../screens/Funding/FundingMethodSelectionScreen.mjs";import{ManualTransferScreen as q}from"../screens/Funding/ManualTransferScreen.mjs";import{MoonpayStatusScreen as K}from"../screens/Funding/MoonpayStatusScreen.mjs";import{TransferFromWalletScreen as Y}from"../screens/Funding/TransferFromWalletScreen.mjs";import{InAppBrowserLoginNotPossible as z}from"../screens/InAppBrowserLoginNotPossible.mjs";import{InstallWalletScreen as X}from"../screens/InstallWalletScreen.mjs";import{ConnectOrCreateScreen as Q}from"../screens/LandingScreen/ConnectOrCreateScreen.mjs";import{LandingScreen as J}from"../screens/LandingScreen/LandingScreen.mjs";import{Hide as $}from"../screens/LandingScreen/styles.mjs";import{LinkEmailScreen as Z}from"../screens/LinkEmailScreen.mjs";import{LinkPasskeyScreen as ee}from"../screens/LinkPasskeyScreen.mjs";import{LinkPhoneScreen as oe}from"../screens/LinkPhoneScreen.mjs";import{LinkWalletScreen as re}from"../screens/LinkWalletScreen.mjs";import{LoginFailedScreen as se}from"../screens/LoginFailedScreen.mjs";import{MfaEnrollmentFlowScreen as ie}from"../screens/MfaScreens/MfaEnrollmentFlowScreen.mjs";import{MfaVerifyFlowScreen as te}from"../screens/MfaScreens/MfaVerifyFlowScreen.mjs";import{OAuthStatusScreen as ne}from"../screens/OAuthStatusScreen.mjs";import{PasskeySelectSignupOrLogin as me}from"../screens/PasskeySelectSignupOrLogin.mjs";import{PasskeyStatusScreen as ce}from"../screens/PasskeyStatusScreen.mjs";import{PasswordRecoveryScreen as ae}from"../screens/Recovery/PasswordRecoveryScreen.mjs";import{RecoveryOAuthScreen as pe}from"../screens/Recovery/RecoveryOAuthStatusScreen.mjs";import{EmbeddedWalletPasswordCreateScreen as le}from"../screens/Recovery/RecoveryPasswordCreateScreen.mjs";import{RecoverySelectionScreen as de}from"../screens/Recovery/RecoverySelectionScreen.mjs";import{SetAutomaticRecoveryScreen as je}from"../screens/Recovery/SetAutomaticRecoveryScreen.mjs";import{SendSolanaTransactionScreen as Ee}from"../screens/SendSolanaTransactionScreen/SendSolanaTransactionScreen.mjs";import{SendTransactionScreen as Se}from"../screens/SendTransactionScreen/SendTransactionScreen.mjs";import{SignRequestScreen as ue}from"../screens/SignRequestScreen.mjs";import{TelegramAuthScreen as he}from"../screens/TelegramAuthScreen.mjs";import{UpdateEmailScreen as ge}from"../screens/UpdateEmailScreen.mjs";import{UpdatePhoneScreen as Ce}from"../screens/UpdatePhoneScreen.mjs";import{UserLimitReachedScreen as fe}from"../screens/UserLimitReachedScreen.mjs";import{WalletInterstitialScreen as Ae}from"../screens/WalletInterstitialScreen.mjs";import{StylesWrapper as _e}from"../styles.mjs";import{Dialog as Te,CenterItem as Ne}from"./Dialog.mjs";import{RefactorSpacerTop as be,RefactorSpacerBottom as Ie}from"./Layouts.mjs";import{Loader as Le}from"./Loader.mjs";import{ModalFooter as Re}from"./ModalFooter.mjs";import{ModalHeader as ye}from"./ModalHeader.mjs";import"../config.mjs";import"../configuration/defaultClientConfig.mjs";import"../constants.mjs";import"../configuration/login-methods.mjs";import"../configuration/wallets.mjs";import"../connectors/chains/index.mjs";import"../connectors/chains/arbitrum.mjs";import"../connectors/chains/arbitrumSepolia.mjs";import"../connectors/chains/avalanche.mjs";import"../connectors/chains/avalancheFuji.mjs";import"../connectors/chains/base.mjs";import"../connectors/chains/baseSepolia.mjs";import"../connectors/chains/berachainArtio.mjs";import"../connectors/chains/celo.mjs";import"../connectors/chains/celoAlfajores.mjs";import"../connectors/chains/filecoin.mjs";import"../connectors/chains/filecoinCalibration.mjs";import"../connectors/chains/garnetHolesky.mjs";import"../connectors/chains/holesky.mjs";import"../connectors/chains/linea.mjs";import"../connectors/chains/lineaTestnet.mjs";import"../connectors/chains/lukso.mjs";import"../connectors/chains/mainnet.mjs";import"../connectors/chains/optimism.mjs";import"../connectors/chains/optimismSepolia.mjs";import"../connectors/chains/polygon.mjs";import"../connectors/chains/polygonAmoy.mjs";import"../connectors/chains/redstone.mjs";import"../connectors/chains/sepolia.mjs";import"../connectors/chains/zora.mjs";import"../connectors/chains/zoraSepolia.mjs";import"../connectors/chains/zoraTestnet.mjs";import"../connectors/chains/utils.mjs";import"../lib/solana/index.mjs";import"../theme.mjs";import"tinycolor2";import"../lib/cybr53.mjs";import"../hooks/index.mjs";import"../errors.mjs";import"ofetch";import"../utils/index.mjs";import"../connectors/get-legacy-injected-providers.mjs";import"../connectors/is-wallet-installed.mjs";import"../utils/eth/getPublicClient.mjs";import"viem";import"./PrefetchedImage.mjs";import"../hooks/events-context.mjs";import"@heroicons/react/24/outline/QuestionMarkCircleIcon";import"./Button.mjs";import"./CircleBackground.mjs";import"./layout/StackedContainer.mjs";import"@heroicons/react/24/outline/ExclamationTriangleIcon";import"@heroicons/react/24/outline/WalletIcon";import"./CircleBorder.mjs";import"./ui/wallet/Address.mjs";import"@heroicons/react/24/outline/CheckIcon";import"@heroicons/react/24/outline/Square2StackIcon";import"../lib/capitalizeFirstLetter.mjs";import"../svg/circle-alert.mjs";import"../screens/AccountTransferScreen/AccountTransferButton.mjs";import"../screens/AccountTransferScreen/EmbeddedWalletInfoView.mjs";import"../screens/AccountTransferScreen/styled.mjs";import"@heroicons/react/24/outline/ExclamationCircleIcon";import"@heroicons/react/24/outline/ArrowTopRightOnSquareIcon";import"@heroicons/react/24/solid/DocumentCheckIcon";import"../lib/user/shouldProceedtoEmbeddedWalletCreationFlow.mjs";import"../lib/user/shouldCreateEmbeddedEthWallet.mjs";import"../client/user.mjs";import"viem/utils";import"../lib/user/shouldCreateEmbeddedSolWallet.mjs";import"../screens/MfaScreens/StyledComponents.mjs";import"../svg/lock-closed.mjs";import"@heroicons/react/20/solid/CheckIcon";import"@heroicons/react/24/outline/EnvelopeIcon";import"@heroicons/react/24/outline/PhoneIcon";import"react-device-detect";import"./ScreenHeader.mjs";import"@heroicons/react/24/solid/CheckCircleIcon";import"@heroicons/react/24/solid/XCircleIcon";import"./WrappedLoader.mjs";import"../screens/LandingScreen/WalletButtonList.mjs";import"../screens/LandingScreen/EmptyWalletView.mjs";import"../screens/LandingScreen/WalletButton.mjs";import"./external-wallets/InjectedWalletIcon.mjs";import"./ui/chips/Chip.mjs";import"./ui/animation/LoadingSkeleton.mjs";import"../connectors/mobile-wallets.mjs";import"../svg/backpack.mjs";import"../svg/okx-wallet.mjs";import"../svg/phantom.mjs";import"../svg/solflare.mjs";import"../types.mjs";import"../lib/external-wallets/displayHelpers.mjs";import"../svg/brave-browser-icon.mjs";import"../svg/bybit.mjs";import"../svg/coinbase-wallet.mjs";import"../svg/cryptocom.mjs";import"../svg/metamask.mjs";import"../svg/rabby.mjs";import"../svg/rainbow.mjs";import"../svg/safe.mjs";import"../svg/uniswap.mjs";import"../svg/universal-profile.mjs";import"../svg/wallet-connect.mjs";import"../svg/zerion.mjs";import"../lib/isEmbeddedWebview.mjs";import"../recent-login/context.mjs";import"../storage.mjs";import"../connectors/errors.mjs";import"@privy-io/js-sdk-core";import"../svg/browser-extension-wallet-icon.mjs";import"../auth-flows/siwe.mjs";import"../effect.mjs";import"../lib/siwe.mjs";import"../auth-flows/siws.mjs";import"../lib/siws.mjs";import"../connectors/userAlreadyHasConnectedCoinbaseWallet.mjs";import"../connectors/walletconnect-v2.mjs";import"@walletconnect/ethereum-provider";import"../connectors/ethereum/index.mjs";import"../connectors/areWalletArraysEqual.mjs";import"../connectors/isBaseConnectedEthereumWallet.mjs";import"../connectors/base.mjs";import"eventemitter3";import"../connectors/getRpcTimeout.mjs";import"../connectors/privyProxyProvider.mjs";import"../connectors/walletconnect-registry.mjs";import"../hook-utils/useInterval.mjs";import"../lib/useHasTabbedAway.mjs";import"../svg/protected-by-privy.mjs";import"@heroicons/react/24/outline/ArrowLeftIcon";import"@heroicons/react/24/outline/ArrowRightIcon";import"@heroicons/react/24/outline/XMarkIcon";import"./ProviderAppLogo.mjs";import"../hooks/useLogout.mjs";import"@heroicons/react/24/outline/CheckCircleIcon";import"@heroicons/react/24/outline/CloudArrowUpIcon";import"./ui/wallet/WalletInfoCard.mjs";import"./ui/layout/Column.mjs";import"./ui/typography/ErrorMessage.mjs";import"./ui/typography/LabelXs.mjs";import"./ui/wallet/shared.mjs";import"@heroicons/react/24/outline/NoSymbolIcon";import"./primitives/LoadingSpinner/index.mjs";import"../embedded-wallets/errors.mjs";import"../embedded-wallets/types.mjs";import"../lib/embeddedWalletRecovery.mjs";import"../paths.mjs";import"../lib/pkce.mjs";import"jose";import"../crypto.mjs";import"./ui/banners/WarningBanner.mjs";import"./ui/typography/Subtitle.mjs";import"./ui/typography/Title.mjs";import"../hooks/useEmbeddedWalletCreate.mjs";import"../password.mjs";import"fast-password-entropy";import"secure-password-utilities";import"secure-password-utilities/wordlists";import"./embedded-wallets/SetWalletPasswordForm/SetWalletPasswordForm.mjs";import"./embedded-wallets/SetWalletPasswordForm/ConfimWalletPasswordForm.mjs";import"./embedded-wallets/SetWalletPasswordForm/shared.mjs";import"@heroicons/react/24/outline/ArrowPathIcon";import"@heroicons/react/24/outline/EyeIcon";import"@heroicons/react/24/outline/EyeSlashIcon";import"./embedded-wallets/SetWalletPasswordForm/ConfimWalletPasswordSaved.mjs";import"./Checkbox.mjs";import"./embedded-wallets/SetWalletPasswordForm/CreateWalletPassword.mjs";import"@heroicons/react/24/outline/KeyIcon";import"./embedded-wallets/SetWalletPasswordForm/SaveWalletPassword.mjs";import"@heroicons/react/24/outline/ArrowDownTrayIcon";import"@heroicons/react/24/outline/ClipboardDocumentCheckIcon";import"@heroicons/react/24/outline/DocumentDuplicateIcon";import"./embedded-wallets/SetWalletPasswordForm/SetWalletPasswordComplete.mjs";import"./embedded-wallets/SetWalletPasswordForm/setWalletPassword.hooks.mjs";import"@heroicons/react/24/outline/UserCircleIcon";import"@heroicons/react/24/solid/LockClosedIcon";import"./CopyToClipboard.mjs";import"../svg/checkmark.mjs";import"../svg/copy.mjs";import"./OpenLink.mjs";import"./QrCode.mjs";import"qrcode";import"../svg/black-rounded-square.mjs";import"../svg/farcaster.mjs";import"./embedded-wallets/FundWalletMethodHeader.mjs";import"./primitives/NeutralSpinner/index.mjs";import"../hooks/useGetTokenPrice.mjs";import"../hooks/useGetSolPrice.mjs";import"../hooks/useWallets.mjs";import"../lib/funding/analytics.mjs";import"../lib/funding/reservoir.mjs";import"../lib/solana/transaction.mjs";import"../utils/buffer/readBigInt64LE.mjs";import"../lib/attempt.mjs";import"../lib/wallets/actions/getBalanceForChains.mjs";import"../plugins/context/PrivyPluginContext.mjs";import"../plugins/solana-funding/id.mjs";import"../screens/Funding/BridgeNetworkSelectionView.mjs";import"./ui/layout/Row.mjs";import"./ui/typography/LabelSm.mjs";import"./ui/wallet/NetworkBalanceCard.mjs";import"./ui/typography/Value.mjs";import"./ui/wallet/NetworkIcon.mjs";import"@heroicons/react/24/outline/GlobeAltIcon";import"./ui/icons/Arbitum.mjs";import"./ui/icons/Avalanche.mjs";import"./ui/icons/Base.mjs";import"./ui/icons/Celo.mjs";import"./ui/icons/Linea.mjs";import"./ui/icons/Mainnnet.mjs";import"./ui/icons/Optimism.mjs";import"./ui/icons/Polygon.mjs";import"./ui/icons/Solana.mjs";import"./ui/icons/Zora.mjs";import"./ui/wallet/NetworkSelectorPanel.mjs";import"@headlessui/react";import"@heroicons/react/24/outline/ChevronDownIcon";import"../lib/ethers.mjs";import"../screens/Funding/styles.mjs";import"../screens/Funding/TransferOrBridgeLoadingScreen.mjs";import"../hooks/solana/useSolanaWallets.mjs";import"../lib/erc20/actions/abis/transfer.mjs";import"../lib/erc20/formatErc20TokenAmount.mjs";import"../lib/wallets/actions/getErc20Balance.mjs";import"@heroicons/react/24/solid/ArrowsRightLeftIcon";import"@heroicons/react/24/outline/CreditCardIcon";import"@heroicons/react/24/outline/QrCodeIcon";import"./ui/banners/ErrorBanner.mjs";import"./ui/banners/InfoBanner.mjs";import"@heroicons/react/24/outline/InformationCircleIcon";import"./ui/icons/ApplePay.mjs";import"./ui/icons/GooglePay.mjs";import"../hook-utils/useAsyncValue.mjs";import"../icons/WalletCards.mjs";import"../lib/erc20/actions/getErc20TokenInfo.mjs";import"../lib/funding/prepareFundingMethods.mjs";import"../lib/funding/coinbase/triggerCoinbaseFlow.mjs";import"../lib/popup/triggerPopup.mjs";import"../lib/funding/coinbase/toCoinbaseBlockchainFromChainId.mjs";import"../lib/funding/moonpay/triggerMoonpayFlow.mjs";import"../lib/funding/moonpay/index.mjs";import"../payment-request/isPaymentRequestAvailable.mjs";import"../hooks/useWalletBalance.mjs";import"../svg/blobby.mjs";import"../svg/moonpay.mjs";import"../screens/LandingScreen/WalletOverflowButton.mjs";import"@heroicons/react/24/outline/ChevronRightIcon";import"./TodoList.mjs";import"../svg/check-badge.mjs";import"../screens/LandingScreen/CustomLandingScreenView.mjs";import"../lib/toDisplayFromAccountType.mjs";import"../screens/LandingScreen/AppLogoHeader.mjs";import"./AppLogo.mjs";import"../screens/LandingScreen/CrossAppButton.mjs";import"../screens/LandingScreen/EmailButton.mjs";import"./ConnectEmailForm.mjs";import"./ui/forms/EmailInputForm.mjs";import"../screens/LandingScreen/FarcasterButton.mjs";import"../screens/LandingScreen/LandingScreenView.mjs";import"../svg/email-or-phone.mjs";import"../screens/LandingScreen/PasskeyLink.mjs";import"@heroicons/react/24/outline/FingerPrintIcon";import"../screens/LandingScreen/SmsButton.mjs";import"./ConnectPhoneForm.mjs";import"./PhoneCountryDropdown.mjs";import"../screens/LandingScreen/SocialButton.mjs";import"../svg/apple.mjs";import"../svg/discord.mjs";import"../svg/github.mjs";import"../svg/google.mjs";import"../svg/instagram.mjs";import"../svg/linkedin.mjs";import"../svg/spotify.mjs";import"../svg/tiktok.mjs";import"../svg/twitter.mjs";import"../screens/LandingScreen/TelegramButton.mjs";import"../svg/telegram.mjs";import"../screens/LandingScreen/Web2OverflowButton.mjs";import"@heroicons/react/24/outline/ClockIcon";import"@heroicons/react/24/outline/TrashIcon";import"@heroicons/react/24/solid/CheckBadgeIcon";import"../svg/face-id.mjs";import"../svg/fingerprint.mjs";import"../svg/error-circle.mjs";import"@heroicons/react/24/outline/ShieldCheckIcon";import"@heroicons/react/24/solid/IdentificationIcon";import"../hooks/useMfa.mjs";import"../hooks/useMfaEnrollment.mjs";import"../svg/mfa-shield.mjs";import"../screens/MfaScreens/EnrollLandingScreen.mjs";import"@heroicons/react/24/outline/DevicePhoneMobileIcon";import"@heroicons/react/24/outline/MinusCircleIcon";import"../screens/MfaScreens/EnrollPasskey.mjs";import"@heroicons/react/24/outline/ArrowRightEndOnRectangleIcon";import"../screens/MfaScreens/EnrollSms.mjs";import"./PinInput.mjs";import"../screens/MfaScreens/EnrollTotp.mjs";import"../svg/qr-codes.mjs";import"@heroicons/react/24/solid/ShieldCheckIcon";import"./embedded-wallets/TransactionDetailsWrapper.mjs";import"../lib/viem/prepareTransactionRequest.mjs";import"../lib/viem/toViemTransactionSerializable.mjs";import"./embedded-wallets/TransactionDetails.mjs";import"./embedded-wallets/DisplayInfoItem.mjs";import"./embedded-wallets/PriceDisplay.mjs";import"./embedded-wallets/TransactionTotal.mjs";import"./primitives/Accordion/index.mjs";import"./primitives/Accordion/AccordionContext.mjs";import"./embedded-wallets/WalletLink.mjs";import"../screens/MfaScreens/VerifyWithPasskey.mjs";import"@heroicons/react/24/outline/CalendarIcon";import"../auth-flows/oauth/getDisplayForProvider.mjs";import"../svg/globe.mjs";import"../auth-flows/oauth/getOAuthErrorMessage.mjs";import"../auth-flows/oauth/stripUrlOAuthParamsAndRemoveStateCode.mjs";import"../svg/apple-icloud.mjs";import"../svg/google-drive.mjs";import"../screens/Recovery/styles.mjs";import"@heroicons/react/24/outline/LockClosedIcon";import"@heroicons/react/24/outline/PencilSquareIcon";import"./ui/icons/WithCircleBorder.mjs";import"../embedded-wallets/solana/transaction.mjs";import"../screens/SendTransactionScreen/SendTransactionScreenView.mjs";import"@heroicons/react/24/outline";import"./primitives/InteractiveLabel.mjs";import"../screens/SendTransactionScreen/TokenDescription.mjs";import"../screens/SendTransactionScreen/TransactionDetail.mjs";import"../screens/SendTransactionScreen/TransactionValidation.mjs";import"./Pill.mjs";import"../screens/SendTransactionScreen/useTransactionDetails.mjs";import"../screens/SendTransactionScreen/TransactionErrorView.mjs";import"@heroicons/react/24/outline/ClipboardDocumentIcon";import"../screens/SendSolanaTransactionScreen/SolanaTransactionReceiptView.mjs";import"./embedded-wallets/SolanaTransactionDetails.mjs";import"../embedded-wallets/rpc/index.mjs";import"../screens/SendTransactionScreen/ScanDetails.mjs";import"./primitives/JsonTree.mjs";import"../screens/SendTransactionScreen/TransactionReceiptView.mjs";import"../screens/SendTransactionScreen/getStaticTransactionMetadata.mjs";import"../lib/deployAccount/actions/abis/deployAccount.mjs";import"../lib/erc20/actions/abis/approve.mjs";import"../lib/erc721/actions/abis/mint.mjs";import"../lib/erc721/actions/abis/safeTransferFrom.mjs";import"../lib/erc721/actions/abis/setApprovalForAll.mjs";import"../lib/erc721/actions/abis/transferFrom.mjs";import"../lib/erc1155/actions/abis/safeBatchTransferFrom.mjs";import"../lib/erc1155/actions/abis/safeTransferFrom.mjs";import"../screens/SendTransactionScreen/lib.mjs";import"../screens/SendTransactionScreen/usePrepareTransaction.mjs";import"./embedded-wallets/StyledLogo.mjs";import"../auth-flows/telegram.mjs";import"./UpdateEmailForm.mjs";import"../svg/alert-circle.mjs";import"../cssNormalize.mjs";let we={[S.LANDING]:J,[S.CONNECT_OR_CREATE]:Q,[S.AWAITING_PASSWORDLESS_CODE]:f,[S.AWAITING_CONNECTION]:b,[S.AWAITING_CONNECT_ONLY_CONNECTION]:N,[S.AWAITING_FARCASTER_CONNECTION]:k,[S.AWAITING_FARCASTER_SIGNER]:M,[S.SELECT_PASSKEY_SIGNUP_OR_LOGIN]:me,[S.AWAITING_PASSKEY_SYSTEM_DIALOGUE]:ce,[S.WALLET_INTERSTITIAL_SCREEN]:Ae,[S.LOGIN_FAILED_SCREEN]:se,[S.AWAITING_OAUTH_SCREEN]:ne,[S.CROSS_APP_AUTH_SCREEN]:I,[S.ALLOWLIST_REJECTION_SCREEN]:C,[S.ACCOUNT_NOT_FOUND_SCREEN]:u,[S.USER_LIMIT_REACHED_SCREEN]:fe,[S.INSTALL_WALLET_SCREEN]:X,[S.LINK_EMAIL_SCREEN]:Z,[S.LINK_PHONE_SCREEN]:oe,[S.LINK_WALLET_SCREEN]:re,[S.LINK_PASSKEY_SCREEN]:ee,[S.UPDATE_EMAIL_SCREEN]:ge,[S.UPDATE_PHONE_SCREEN]:Ce,[S.CONNECT_ONLY_LANDING_SCREEN]:T,[S.CONNECT_ONLY_AUTHENTICATED_SCREEN]:_,[S.EMBEDDED_WALLET_ON_ACCOUNT_CREATE_SCREEN]:D,[S.EMBEDDED_WALLET_CREATED_SCREEN]:w,[S.EMBEDDED_WALLET_CONNECTING_SCREEN]:y,[S.EMBEDDED_WALLET_PASSWORD_RECOVERY_SCREEN]:ae,[S.EMBEDDED_WALLET_RECOVERY_SELECTION_SCREEN]:de,[S.EMBEDDED_WALLET_SET_AUTOMATIC_RECOVERY_SCREEN]:je,[S.EMBEDDED_WALLET_RECOVERY_OAUTH_SCREEN]:pe,[S.EMBEDDED_WALLET_KEY_EXPORT_SCREEN]:v,[S.EMBEDDED_WALLET_SIGN_REQUEST_SCREEN]:ue,[S.EMBEDDED_WALLET_SEND_TRANSACTION_SCREEN]:Se,[S.EMBEDDED_WALLET_SEND_SOLANA_TRANSACTION_SCREEN]:Ee,[S.EMBEDDED_WALLET_DELEGATED_ACTIONS_CONSENT_SCREEN]:L,[S.EMBEDDED_WALLET_DELEGATED_ACTIONS_REVOKE_SCREEN]:R,[S.FUNDING_METHOD_SELECTION_SCREEN]:H,[S.MOONPAY_STATUS_SCREEN]:K,[S.COINBASE_ONRAMP_STATUS_SCREEN]:U,[S.FUNDING_TRANSFER_FROM_WALLET_SCREEN]:Y,[S.FUNDING_EDIT_AMOUNT_SCREEN]:V,[S.FUNDING_AWAITING_TRANSFER_FROM_EXTERNAL_WALLET_SCREEN]:x,[S.FUNDING_AWAITING_TRANSFER_FROM_EXTERNAL_SOLANA_WALLET_SCREEN]:B,[S.FUNDING_AWAITING_EVM_TO_SOL_BRIDGING_SCREEN]:F,[S.FUNDING_AWAITING_SOL_TO_EVM_BRIDGING_SCREEN]:G,[S.FUNDING_MANUAL_TRANSFER_SCREEN]:q,[S.EMBEDDED_WALLET_PASSWORD_UPDATE_SPLASH_SCREEN]:W,[S.EMBEDDED_WALLET_PASSWORD_UPDATE_SCREEN]:O,[S.EMBEDDED_WALLET_PASSWORD_CREATE_SCREEN]:le,[S.MFA_ENROLLMENT_FLOW_SCREEN]:ie,[S.CAPTCHA_SCREEN]:A,[S.ERROR_SCREEN]:P,[S.IN_APP_BROWSER_LOGIN_NOT_POSSIBLE]:z,[S.AFFIRMATIVE_CONSENT_SCREEN]:g,[S.TELEGRAM_AUTH_SCREEN]:he,[S.LINK_CONFLICT_SCREEN]:h},ve=[S.LANDING,S.AWAITING_CONNECTION],De=({isMfaVerifying:s,onMfaVerificationComplete:t})=>{let{ready:n,isModalOpen:m}=d(),{headless:p}=c(),{ready:j,currentScreen:E}=l(),{status:u,execute:h,reset:g,enabled:C}=a(),f=m&&E&&ve.includes(E)&&!p&&"ready"===u;return i((()=>{f&&h()}),[f]),i((()=>{!m&&C&&g()}),[m,C]),n&&j||E===S.AWAITING_OAUTH_SCREEN||E===S.CROSS_APP_AUTH_SCREEN||E===S.TELEGRAM_AUTH_SCREEN?!E&&s?/*#__PURE__*/e(te,{open:s,onClose:t}):E?/*#__PURE__*/o(r,{children:[/*#__PURE__*/e($,{$if:!!s,children:/*#__PURE__*/e(we[E],{})}),/*#__PURE__*/e($,{$if:!s,children:/*#__PURE__*/e(te,{open:s,onClose:t})})]}):null:/*#__PURE__*/o(r,{children:[/*#__PURE__*/e(ye,{}),/*#__PURE__*/e(be,{}),/*#__PURE__*/e(Ne,{children:/*#__PURE__*/e(Le,{})}),/*#__PURE__*/e(Ie,{}),/*#__PURE__*/e(Re,{})]})},Oe=({isMfaVerifying:o,onMfaVerificationComplete:r})=>{let s=t(null);/*#__PURE__*/return e(ke,{style:{height:j(s)},id:"privy-modal-content",children:/*#__PURE__*/e("div",{ref:s,children:/*#__PURE__*/e(De,{isMfaVerifying:o,onMfaVerificationComplete:r})})})};const We=({open:o})=>{let{app:r}=l(),{gracefulClosePrivyModal:i}=(()=>{let{closePrivyModal:e}=p(),{onUserCloseViaDialogOrKeybindRef:o}=l();return{gracefulClosePrivyModal:n((()=>{if(!o?.current)return e({shouldCallAuthOnSuccess:!1});o.current()}),[e])}})(),[t,m]=s(!1);E({onMfaRequired:()=>{r?.mfa.noPromptOnMfaRequired||m(!0)}});let c=o||t;return r.render.standalone?/*#__PURE__*/e(_e,{children:/*#__PURE__*/e(Pe,{id:"privy-modal-content",children:/*#__PURE__*/e(De,{isMfaVerifying:t,onMfaVerificationComplete:()=>m(!1)})})}):/*#__PURE__*/e(Te,{open:c,id:"privy-dialog","aria-label":"log in or sign up","aria-labelledby":"privy-dialog-title",onClick:()=>i(),children:/*#__PURE__*/e(_e,{children:/*#__PURE__*/e(Oe,{isMfaVerifying:t,onMfaVerificationComplete:()=>m(!1)})})})};let Pe=/*#__PURE__*/m.div.withConfig({displayName:"ContentWrapper",componentId:"sc-1174608a-0"})(["display:flex;flex-direction:column;text-align:center;font-size:14px;line-height:20px;width:100%;background:var(--privy-color-background);padding:0 16px;"]),ke=/*#__PURE__*/m(Pe).withConfig({displayName:"BaseModal",componentId:"sc-1174608a-1"})(["transition:height 150ms ease-out;overflow:hidden;max-height:calc(100svh - 32px);border-radius:var(--privy-border-radius-lg) var(--privy-border-radius-lg) 0 0;box-shadow:0px 0px 36px rgba(55,65,81,0.15);@media (min-width:441px){box-shadow:0px 8px 36px rgba(55,65,81,0.15);border-radius:var(--privy-border-radius-lg);}"]);export{We as LoginModal};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{jsx as e,jsxs as i,Fragment as t}from"react/jsx-runtime";import{styled as n}from"styled-components";import{formatUnits as o}from"viem";import{sumWeiQuantities as r,getDollarsFromWei as s,getNativeCurrencyFromWei as l}from"../../lib/ethers.mjs";import{getDollarsFromLamport as m,getNativeCurrencyFromLamports as c}from"../../lib/solana/transaction.mjs";import"../../hooks/internal-context.mjs";import"react";import"../../hooks/index.mjs";import"../../utils/index.mjs";import"../../connectors/get-legacy-injected-providers.mjs";import"../../connectors/is-wallet-installed.mjs";import"../../errors.mjs";import"ofetch";import"../../utils/eth/getPublicClient.mjs";import"../../lib/solana/index.mjs";import"../../utils/buffer/readBigInt64LE.mjs";const p=({weiQuantities:i,tokenPrice:t,tokenSymbol:n})=>{let o=r(i),m=t?s(o,t):void 0,c=l(o,n);/*#__PURE__*/return e(h,{children:m||c})},d=({weiQuantities:n,tokenPrice:o,tokenSymbol:m})=>{let c=r(n),p=o?s(c,o):void 0,d=l(c,m);/*#__PURE__*/return e(h,{children:p?/*#__PURE__*/i(t,{children:[/*#__PURE__*/e(f,{children:"USD"}),"<$0.01"===p?
|
|
1
|
+
import{jsx as e,jsxs as i,Fragment as t}from"react/jsx-runtime";import{styled as n}from"styled-components";import{formatUnits as o}from"viem";import{sumWeiQuantities as r,getDollarsFromWei as s,getNativeCurrencyFromWei as l}from"../../lib/ethers.mjs";import{getDollarsFromLamport as m,getNativeCurrencyFromLamports as c}from"../../lib/solana/transaction.mjs";import"../../hooks/internal-context.mjs";import"react";import"../../hooks/index.mjs";import"../../utils/index.mjs";import"../../connectors/get-legacy-injected-providers.mjs";import"../../connectors/is-wallet-installed.mjs";import"../../errors.mjs";import"ofetch";import"../../utils/eth/getPublicClient.mjs";import"../../lib/solana/index.mjs";import"../../utils/buffer/readBigInt64LE.mjs";import"../../lib/attempt.mjs";const p=({weiQuantities:i,tokenPrice:t,tokenSymbol:n})=>{let o=r(i),m=t?s(o,t):void 0,c=l(o,n);/*#__PURE__*/return e(h,{children:m||c})},d=({weiQuantities:n,tokenPrice:o,tokenSymbol:m})=>{let c=r(n),p=o?s(c,o):void 0,d=l(c,m);/*#__PURE__*/return e(h,{children:p?/*#__PURE__*/i(t,{children:[/*#__PURE__*/e(f,{children:"USD"}),"<$0.01"===p?
|
|
2
2
|
/*#__PURE__*/i(g,{children:[/*#__PURE__*/e(y,{children:"<"}),"$0.01"]}):p]}):d})},a=({quantities:n,tokenPrice:r,tokenSymbol:s="SOL",tokenDecimals:l=9})=>{let p=n.reduce(((e,i)=>e+i),0n),d=r&&"SOL"===s&&9===l?m(p,r):void 0,a="SOL"===s&&9===l?c(p):`${o(p,l)} ${s}`;/*#__PURE__*/return e(h,{children:d?/*#__PURE__*/e(t,{children:"<$0.01"===d?
|
|
3
3
|
/*#__PURE__*/i(g,{children:[/*#__PURE__*/e(y,{children:"<"}),"$0.01"]}):d}):a})};let h=/*#__PURE__*/n.span.withConfig({displayName:"StyledPriceDisplay",componentId:"sc-596cd423-0"})(["font-size:14px;line-height:140%;display:flex;gap:4px;align-items:center;"]),f=/*#__PURE__*/n.span.withConfig({displayName:"StyledPriceUnit",componentId:"sc-596cd423-1"})(["font-size:12px;line-height:12px;color:var(--privy-color-foreground-3);"]),y=/*#__PURE__*/n.span.withConfig({displayName:"TinyLessThan",componentId:"sc-596cd423-2"})(["font-size:10px;"]),g=/*#__PURE__*/n.span.withConfig({displayName:"FlexCenter",componentId:"sc-596cd423-3"})(["display:flex;align-items:center;"]);export{p as HeaderPriceDisplay,d as PriceDisplay,a as SolanaPriceDisplay};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as o,jsx as n,Fragment as i}from"react/jsx-runtime";import t from"@heroicons/react/24/outline/ChevronDownIcon";import{useState as r}from"react";import{styled as e}from"styled-components";import{BackButton as c,NextButton as s}from"../ModalHeader.mjs";import{InteractiveLabel as m}from"../primitives/InteractiveLabel.mjs";import{Rows as a,Row as l}from"../ui/layout/Row.mjs";import{LabelSm as p}from"../ui/typography/LabelSm.mjs";import{Value as d}from"../ui/typography/Value.mjs";import{SolanaPriceDisplay as h}from"./PriceDisplay.mjs";import{WalletLink as u}from"./WalletLink.mjs";import"@heroicons/react/24/outline/ArrowLeftIcon";import"@heroicons/react/24/outline/ArrowRightIcon";import"@heroicons/react/24/outline/QuestionMarkCircleIcon";import"@heroicons/react/24/outline/XMarkIcon";import"../../configuration/context.mjs";import"../../config.mjs";import"../../configuration/defaultClientConfig.mjs";import"../../constants.mjs";import"../../configuration/login-methods.mjs";import"../../configuration/wallets.mjs";import"../../connectors/chains/index.mjs";import"../../connectors/chains/arbitrum.mjs";import"../../connectors/chains/arbitrumSepolia.mjs";import"../../connectors/chains/avalanche.mjs";import"../../connectors/chains/avalancheFuji.mjs";import"../../connectors/chains/base.mjs";import"../../connectors/chains/baseSepolia.mjs";import"../../connectors/chains/berachainArtio.mjs";import"../../connectors/chains/celo.mjs";import"../../connectors/chains/celoAlfajores.mjs";import"../../connectors/chains/filecoin.mjs";import"../../connectors/chains/filecoinCalibration.mjs";import"../../connectors/chains/garnetHolesky.mjs";import"../../connectors/chains/holesky.mjs";import"../../connectors/chains/linea.mjs";import"../../connectors/chains/lineaTestnet.mjs";import"../../connectors/chains/lukso.mjs";import"../../connectors/chains/mainnet.mjs";import"../../connectors/chains/optimism.mjs";import"../../connectors/chains/optimismSepolia.mjs";import"../../connectors/chains/polygon.mjs";import"../../connectors/chains/polygonAmoy.mjs";import"../../connectors/chains/redstone.mjs";import"../../connectors/chains/sepolia.mjs";import"../../connectors/chains/zora.mjs";import"../../connectors/chains/zoraSepolia.mjs";import"../../connectors/chains/zoraTestnet.mjs";import"../../connectors/chains/utils.mjs";import"../../lib/solana/index.mjs";import"../../theme.mjs";import"tinycolor2";import"../../lib/cybr53.mjs";import"../../hooks/internal-context.mjs";import"../../hooks/index.mjs";import"../ui/animation/LoadingSkeleton.mjs";import"viem";import"../../lib/ethers.mjs";import"../../utils/index.mjs";import"../../connectors/get-legacy-injected-providers.mjs";import"../../connectors/is-wallet-installed.mjs";import"../../errors.mjs";import"ofetch";import"../../utils/eth/getPublicClient.mjs";import"../../lib/solana/transaction.mjs";import"../../utils/buffer/readBigInt64LE.mjs";const j=({instructions:e,fees:u,transactionInfo:j,solPrice:x,rpcEndpoint:v})=>{let A=e.reduce(((o,{amount:n,token:i})=>n&&"SOL"===i?.symbol?o+n:o),0n),[I,C]=r(0),[E,P]=r(!1),S=e[I];/*#__PURE__*/return o(a,{children:[/*#__PURE__*/o(l,{children:[/*#__PURE__*/n(p,{children:"Total"}),/*#__PURE__*/n(d,{children:/*#__PURE__*/n(h,{quantities:[A,u],tokenPrice:x})})]}),j&&j.action&&/*#__PURE__*/o(l,{children:[/*#__PURE__*/n(p,{children:"Action"}),/*#__PURE__*/n(d,{children:j.action})]}),/*#__PURE__*/o(l,{children:[/*#__PURE__*/n(p,{children:"Fees"}),/*#__PURE__*/n(d,{children:/*#__PURE__*/n(h,{quantities:[u||0n],tokenPrice:x})})]}),e.length>1?/*#__PURE__*/o(i,{children:[/*#__PURE__*/n(l,{children:/*#__PURE__*/o(m,{onClick:()=>P((o=>!o)),children:[/*#__PURE__*/n("span",{children:"Details"}),/*#__PURE__*/n(t,{height:"16px",width:"16px",strokeWidth:"2",style:{transition:"all 300ms",transform:E?"rotate(180deg)":void 0}})]})}),E&&/*#__PURE__*/n(l,{children:/*#__PURE__*/o(g,{children:[/*#__PURE__*/o(k,{children:[/*#__PURE__*/o(y,{children:[I+1," of ",e.length," instructions"]}),/*#__PURE__*/o(
|
|
1
|
+
import{jsxs as o,jsx as n,Fragment as i}from"react/jsx-runtime";import t from"@heroicons/react/24/outline/ChevronDownIcon";import{useState as r}from"react";import{styled as e}from"styled-components";import{BackButton as c,NextButton as s}from"../ModalHeader.mjs";import{InteractiveLabel as m}from"../primitives/InteractiveLabel.mjs";import{Rows as a,Row as l}from"../ui/layout/Row.mjs";import{LabelSm as p}from"../ui/typography/LabelSm.mjs";import{Value as d}from"../ui/typography/Value.mjs";import{SolanaPriceDisplay as h}from"./PriceDisplay.mjs";import{WalletLink as u}from"./WalletLink.mjs";import"@heroicons/react/24/outline/ArrowLeftIcon";import"@heroicons/react/24/outline/ArrowRightIcon";import"@heroicons/react/24/outline/QuestionMarkCircleIcon";import"@heroicons/react/24/outline/XMarkIcon";import"../../configuration/context.mjs";import"../../config.mjs";import"../../configuration/defaultClientConfig.mjs";import"../../constants.mjs";import"../../configuration/login-methods.mjs";import"../../configuration/wallets.mjs";import"../../connectors/chains/index.mjs";import"../../connectors/chains/arbitrum.mjs";import"../../connectors/chains/arbitrumSepolia.mjs";import"../../connectors/chains/avalanche.mjs";import"../../connectors/chains/avalancheFuji.mjs";import"../../connectors/chains/base.mjs";import"../../connectors/chains/baseSepolia.mjs";import"../../connectors/chains/berachainArtio.mjs";import"../../connectors/chains/celo.mjs";import"../../connectors/chains/celoAlfajores.mjs";import"../../connectors/chains/filecoin.mjs";import"../../connectors/chains/filecoinCalibration.mjs";import"../../connectors/chains/garnetHolesky.mjs";import"../../connectors/chains/holesky.mjs";import"../../connectors/chains/linea.mjs";import"../../connectors/chains/lineaTestnet.mjs";import"../../connectors/chains/lukso.mjs";import"../../connectors/chains/mainnet.mjs";import"../../connectors/chains/optimism.mjs";import"../../connectors/chains/optimismSepolia.mjs";import"../../connectors/chains/polygon.mjs";import"../../connectors/chains/polygonAmoy.mjs";import"../../connectors/chains/redstone.mjs";import"../../connectors/chains/sepolia.mjs";import"../../connectors/chains/zora.mjs";import"../../connectors/chains/zoraSepolia.mjs";import"../../connectors/chains/zoraTestnet.mjs";import"../../connectors/chains/utils.mjs";import"../../lib/solana/index.mjs";import"../../theme.mjs";import"tinycolor2";import"../../lib/cybr53.mjs";import"../../hooks/internal-context.mjs";import"../../hooks/index.mjs";import"../ui/animation/LoadingSkeleton.mjs";import"viem";import"../../lib/ethers.mjs";import"../../utils/index.mjs";import"../../connectors/get-legacy-injected-providers.mjs";import"../../connectors/is-wallet-installed.mjs";import"../../errors.mjs";import"ofetch";import"../../utils/eth/getPublicClient.mjs";import"../../lib/solana/transaction.mjs";import"../../utils/buffer/readBigInt64LE.mjs";import"../../lib/attempt.mjs";const j=({instructions:e,fees:u,transactionInfo:j,solPrice:x,rpcEndpoint:v})=>{let A=e.reduce(((o,{amount:n,token:i})=>n&&"SOL"===i?.symbol?o+n:o),0n),[I,C]=r(0),[E,P]=r(!1),S=e[I];/*#__PURE__*/return o(a,{children:[/*#__PURE__*/o(l,{children:[/*#__PURE__*/n(p,{children:"Total"}),/*#__PURE__*/n(d,{children:/*#__PURE__*/n(h,{quantities:[A,u],tokenPrice:x})})]}),j&&j.action&&/*#__PURE__*/o(l,{children:[/*#__PURE__*/n(p,{children:"Action"}),/*#__PURE__*/n(d,{children:j.action})]}),/*#__PURE__*/o(l,{children:[/*#__PURE__*/n(p,{children:"Fees"}),/*#__PURE__*/n(d,{children:/*#__PURE__*/n(h,{quantities:[u||0n],tokenPrice:x})})]}),e.length>1?/*#__PURE__*/o(i,{children:[/*#__PURE__*/n(l,{children:/*#__PURE__*/o(m,{onClick:()=>P((o=>!o)),children:[/*#__PURE__*/n("span",{children:"Details"}),/*#__PURE__*/n(t,{height:"16px",width:"16px",strokeWidth:"2",style:{transition:"all 300ms",transform:E?"rotate(180deg)":void 0}})]})}),E&&/*#__PURE__*/n(l,{children:/*#__PURE__*/o(g,{children:[/*#__PURE__*/o(k,{children:[/*#__PURE__*/o(y,{children:[I+1," of ",e.length," instructions"]}),/*#__PURE__*/o(w,{children:[I>0&&/*#__PURE__*/n(c,{backFn:()=>C((o=>o-1))}),I<e.length-1&&/*#__PURE__*/n(s,{nextFn:()=>C((o=>o+1))})]})]}),/*#__PURE__*/n(b,{children:/*#__PURE__*/n(f,{instruction:S,rpcEndpoint:v,solPrice:x})})]})})]}):/*#__PURE__*/n(f,{instruction:S,rpcEndpoint:v,solPrice:x,hideAmount:!0})]})};function f({instruction:i,rpcEndpoint:t,solPrice:r,hideAmount:e}){return i?/*#__PURE__*/o(a,{children:[!e&&!!i.amount&&/*#__PURE__*/o(l,{children:[/*#__PURE__*/n(p,{children:"Amount"}),/*#__PURE__*/n(d,{children:/*#__PURE__*/n(h,{quantities:[i.amount],tokenPrice:r,tokenSymbol:i.token?.symbol??"SOL",tokenDecimals:i.token?.decimals??9})})]}),i.to&&/*#__PURE__*/o(l,{children:[/*#__PURE__*/n(p,{children:"To"}),/*#__PURE__*/n(d,{children:/*#__PURE__*/n(u,{walletAddress:i.to,rpcEndpoint:t,network:"solana"})})]}),i.tokenAccount&&/*#__PURE__*/o(l,{children:[/*#__PURE__*/n(p,{children:"Token account"}),/*#__PURE__*/n(d,{children:/*#__PURE__*/n(u,{walletAddress:i.tokenAccount,rpcEndpoint:t,network:"solana"})})]}),i.tokenAccountOwner&&/*#__PURE__*/o(l,{children:[/*#__PURE__*/n(p,{children:"Token account owner"}),/*#__PURE__*/n(d,{children:/*#__PURE__*/n(u,{walletAddress:i.tokenAccountOwner,rpcEndpoint:t,network:"solana"})})]}),i.from&&/*#__PURE__*/o(l,{children:[/*#__PURE__*/n(p,{children:"From"}),/*#__PURE__*/n(d,{children:/*#__PURE__*/n(u,{walletAddress:i.from,rpcEndpoint:t,network:"solana"})})]})]}):null}let g=/*#__PURE__*/e.div.withConfig({displayName:"InstructionsBox",componentId:"sc-5a140027-0"})(["display:flex;flex-direction:column;width:100%;overflow:hidden;&&{border:1px solid;border-color:var(--privy-color-foreground-4);border-radius:var(--privy-border-radius-md);}"]),k=/*#__PURE__*/e.header.withConfig({displayName:"InstructionsBoxHeader",componentId:"sc-5a140027-1"})(["display:flex;justify-content:space-between;align-items:center;padding:12px;background-color:var(--privy-color-background-2);"]),y=/*#__PURE__*/e.h4.withConfig({displayName:"HeaderTitle",componentId:"sc-5a140027-2"})(["font-size:14px;font-weight:500;line-height:19.6px;"]),b=/*#__PURE__*/e.div.withConfig({displayName:"InstructionsBoxContent",componentId:"sc-5a140027-3"})(["padding:12px;"]),w=/*#__PURE__*/e.div.withConfig({displayName:"NavigationButtonsConatiner",componentId:"sc-5a140027-4"})(["display:flex;gap:8px;align-items:center;"]);export{j as SolanaTransactionDetails};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as o,jsxs as i}from"react/jsx-runtime";import{styled as
|
|
2
|
-
return o(c,{...h().render.standalone?{defaultValue:"details"}:{},children:/*#__PURE__*/i(m,{value:"details",children:[/*#__PURE__*/o(a,{children:/*#__PURE__*/i(u,{children:[/*#__PURE__*/o("div",{children:y?.title||"Details"}),/*#__PURE__*/o(g,{children:/*#__PURE__*/o(e,{weiQuantities:[w],tokenPrice:k,tokenSymbol:x})})]})}),/*#__PURE__*/i(l,{children:[/*#__PURE__*/o(
|
|
1
|
+
import{jsx as o,jsxs as i}from"react/jsx-runtime";import{styled as t}from"styled-components";import{DisplayInfoItem as n}from"./DisplayInfoItem.mjs";import{HeaderPriceDisplay as e}from"./PriceDisplay.mjs";import{TransactionFeeRow as r,TransactionTotal as s}from"./TransactionTotal.mjs";import{Accordion as c,AccordionPanel as m,AccordionTrigger as a,AccordionContent as l,AccordionAdditionalContent as p}from"../primitives/Accordion/index.mjs";import{useAppConfig as h}from"../../configuration/context.mjs";import{CHAIN_ID_MAINNET as j}from"../../constants.mjs";import{WalletLink as d}from"./WalletLink.mjs";import"viem";import"../../lib/ethers.mjs";import"../../hooks/internal-context.mjs";import"react";import"../../hooks/index.mjs";import"../../utils/index.mjs";import"../../connectors/get-legacy-injected-providers.mjs";import"../../connectors/is-wallet-installed.mjs";import"../../errors.mjs";import"ofetch";import"../../utils/eth/getPublicClient.mjs";import"../../lib/solana/transaction.mjs";import"../../lib/solana/index.mjs";import"../../utils/buffer/readBigInt64LE.mjs";import"../../lib/attempt.mjs";import"../Layouts.mjs";import"@heroicons/react/24/outline/ChevronDownIcon";import"../primitives/Accordion/AccordionContext.mjs";import"../../config.mjs";import"../../configuration/defaultClientConfig.mjs";import"../../configuration/login-methods.mjs";import"../../configuration/wallets.mjs";import"../../connectors/chains/index.mjs";import"../../connectors/chains/arbitrum.mjs";import"../../connectors/chains/arbitrumSepolia.mjs";import"../../connectors/chains/avalanche.mjs";import"../../connectors/chains/avalancheFuji.mjs";import"../../connectors/chains/base.mjs";import"../../connectors/chains/baseSepolia.mjs";import"../../connectors/chains/berachainArtio.mjs";import"../../connectors/chains/celo.mjs";import"../../connectors/chains/celoAlfajores.mjs";import"../../connectors/chains/filecoin.mjs";import"../../connectors/chains/filecoinCalibration.mjs";import"../../connectors/chains/garnetHolesky.mjs";import"../../connectors/chains/holesky.mjs";import"../../connectors/chains/linea.mjs";import"../../connectors/chains/lineaTestnet.mjs";import"../../connectors/chains/lukso.mjs";import"../../connectors/chains/mainnet.mjs";import"../../connectors/chains/optimism.mjs";import"../../connectors/chains/optimismSepolia.mjs";import"../../connectors/chains/polygon.mjs";import"../../connectors/chains/polygonAmoy.mjs";import"../../connectors/chains/redstone.mjs";import"../../connectors/chains/sepolia.mjs";import"../../connectors/chains/zora.mjs";import"../../connectors/chains/zoraSepolia.mjs";import"../../connectors/chains/zoraTestnet.mjs";import"../../connectors/chains/utils.mjs";import"../../theme.mjs";import"tinycolor2";import"../../lib/cybr53.mjs";const f=({from:t,to:f,txn:b,transactionInfo:y,tokenPrice:k,gas:v,tokenSymbol:x})=>{let w=BigInt(b?.value||0);/*#__PURE__*/
|
|
2
|
+
return o(c,{...h().render.standalone?{defaultValue:"details"}:{},children:/*#__PURE__*/i(m,{value:"details",children:[/*#__PURE__*/o(a,{children:/*#__PURE__*/i(u,{children:[/*#__PURE__*/o("div",{children:y?.title||"Details"}),/*#__PURE__*/o(g,{children:/*#__PURE__*/o(e,{weiQuantities:[w],tokenPrice:k,tokenSymbol:x})})]})}),/*#__PURE__*/i(l,{children:[/*#__PURE__*/o(n,{label:"From",children:/*#__PURE__*/o(d,{walletAddress:t,chainId:b.chainId||j,network:"ethereum"})}),/*#__PURE__*/o(n,{label:"To",children:/*#__PURE__*/o(d,{walletAddress:f,chainId:b.chainId||j,network:"ethereum"})}),y&&y.action&&/*#__PURE__*/o(n,{label:"Action",children:y.action}),v&&/*#__PURE__*/o(r,{value:b.value,gas:v,tokenPrice:k,tokenSymbol:x})]}),/*#__PURE__*/o(p,{children:({isActive:i})=>/*#__PURE__*/o(s,{value:b.value,displayFee:i,gas:v||"0x0",tokenPrice:k,tokenSymbol:x})})]})})};let u=/*#__PURE__*/t.div.withConfig({displayName:"AccordionTriggerContent",componentId:"sc-29499c17-0"})(["display:flex;flex-direction:row;justify-content:space-between;"]),g=/*#__PURE__*/t.div.withConfig({displayName:"TotalText",componentId:"sc-29499c17-1"})(["flex-shrink:0;padding-left:8px;"]);export{f as TransactionDetails};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as o}from"react/jsx-runtime";import{useState as i,useMemo as t,useEffect as n}from"react";import{styled as s}from"styled-components";import{toHex as r}from"viem";import{usePrivyInternal as m}from"../../hooks/internal-context.mjs";import{usePrivyContext as e}from"../../hooks/privy-context.mjs";import{useGetTokenPrice as c}from"../../hooks/useGetTokenPrice.mjs";import{useWallets as a}from"../../hooks/useWallets.mjs";import{prepareTransactionRequest as p}from"../../lib/viem/prepareTransactionRequest.mjs";import{getPublicClient as l}from"../../utils/eth/getPublicClient.mjs";import{TransactionDetails as j}from"./TransactionDetails.mjs";import"../../hooks/index.mjs";import"../../connectors/chains/utils.mjs";import"../../connectors/chains/index.mjs";import"../../connectors/chains/arbitrum.mjs";import"../../connectors/chains/arbitrumSepolia.mjs";import"../../connectors/chains/avalanche.mjs";import"../../connectors/chains/avalancheFuji.mjs";import"../../connectors/chains/base.mjs";import"../../connectors/chains/baseSepolia.mjs";import"../../connectors/chains/berachainArtio.mjs";import"../../connectors/chains/celo.mjs";import"../../connectors/chains/celoAlfajores.mjs";import"../../connectors/chains/filecoin.mjs";import"../../connectors/chains/filecoinCalibration.mjs";import"../../connectors/chains/garnetHolesky.mjs";import"../../connectors/chains/holesky.mjs";import"../../connectors/chains/linea.mjs";import"../../connectors/chains/lineaTestnet.mjs";import"../../connectors/chains/lukso.mjs";import"../../connectors/chains/mainnet.mjs";import"../../connectors/chains/optimism.mjs";import"../../connectors/chains/optimismSepolia.mjs";import"../../connectors/chains/polygon.mjs";import"../../connectors/chains/polygonAmoy.mjs";import"../../connectors/chains/redstone.mjs";import"../../connectors/chains/sepolia.mjs";import"../../connectors/chains/zora.mjs";import"../../connectors/chains/zoraSepolia.mjs";import"../../connectors/chains/zoraTestnet.mjs";import"../../constants.mjs";import"../../hooks/useGetSolPrice.mjs";import"../../lib/viem/toViemTransactionSerializable.mjs";import"../../errors.mjs";import"ofetch";import"./DisplayInfoItem.mjs";import"./PriceDisplay.mjs";import"../../lib/ethers.mjs";import"../../utils/index.mjs";import"../../connectors/get-legacy-injected-providers.mjs";import"../../connectors/is-wallet-installed.mjs";import"../../lib/solana/transaction.mjs";import"../../lib/solana/index.mjs";import"../../utils/buffer/readBigInt64LE.mjs";import"./TransactionTotal.mjs";import"../Layouts.mjs";import"../primitives/Accordion/index.mjs";import"@heroicons/react/24/outline/ChevronDownIcon";import"../primitives/Accordion/AccordionContext.mjs";import"../../configuration/context.mjs";import"../../config.mjs";import"../../configuration/defaultClientConfig.mjs";import"../../configuration/login-methods.mjs";import"../../configuration/wallets.mjs";import"../../theme.mjs";import"tinycolor2";import"../../lib/cybr53.mjs";import"./WalletLink.mjs";const h=({pendingTransaction:s})=>{let{getAccessToken:h}=e(),{wallets:f}=a(),{walletProxy:u,rpcConfig:g,chains:y,appId:b,nativeTokenSymbolForChainId:k}=m(),[v,T]=i(null),[x,I]=i(s),{tokenPrice:w}=c(x.chainId),C=k(s.chainId)||"ETH",S=t((()=>f.find((o=>"privy"===o.walletClientType))),[f]);return n((()=>{(async function(){if(!await h()||!u||!S)return x;let o=l(x.chainId,y,g,{appId:b}),i=await p(x,o,S.address);return T(r(BigInt(i.gas??0))),i})().then(I).catch(console.error)}),[u]),S?/*#__PURE__*/o(d,{children:/*#__PURE__*/o(j,{from:S.address,to:x.to,txn:x,gas:v??void 0,tokenPrice:w,tokenSymbol:C})}):null};let d=/*#__PURE__*/s.div.withConfig({displayName:"TransactionInfoWrapper",componentId:"sc-731f1950-0"})(["width:100%;padding:1rem 0;"]);export{h as TransactionDetailsWrapper};
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{useState as i,useMemo as t,useEffect as n}from"react";import{styled as s}from"styled-components";import{toHex as r}from"viem";import{usePrivyInternal as m}from"../../hooks/internal-context.mjs";import{usePrivyContext as e}from"../../hooks/privy-context.mjs";import{useGetTokenPrice as c}from"../../hooks/useGetTokenPrice.mjs";import{useWallets as a}from"../../hooks/useWallets.mjs";import{prepareTransactionRequest as p}from"../../lib/viem/prepareTransactionRequest.mjs";import{getPublicClient as l}from"../../utils/eth/getPublicClient.mjs";import{TransactionDetails as j}from"./TransactionDetails.mjs";import"../../hooks/index.mjs";import"../../connectors/chains/utils.mjs";import"../../connectors/chains/index.mjs";import"../../connectors/chains/arbitrum.mjs";import"../../connectors/chains/arbitrumSepolia.mjs";import"../../connectors/chains/avalanche.mjs";import"../../connectors/chains/avalancheFuji.mjs";import"../../connectors/chains/base.mjs";import"../../connectors/chains/baseSepolia.mjs";import"../../connectors/chains/berachainArtio.mjs";import"../../connectors/chains/celo.mjs";import"../../connectors/chains/celoAlfajores.mjs";import"../../connectors/chains/filecoin.mjs";import"../../connectors/chains/filecoinCalibration.mjs";import"../../connectors/chains/garnetHolesky.mjs";import"../../connectors/chains/holesky.mjs";import"../../connectors/chains/linea.mjs";import"../../connectors/chains/lineaTestnet.mjs";import"../../connectors/chains/lukso.mjs";import"../../connectors/chains/mainnet.mjs";import"../../connectors/chains/optimism.mjs";import"../../connectors/chains/optimismSepolia.mjs";import"../../connectors/chains/polygon.mjs";import"../../connectors/chains/polygonAmoy.mjs";import"../../connectors/chains/redstone.mjs";import"../../connectors/chains/sepolia.mjs";import"../../connectors/chains/zora.mjs";import"../../connectors/chains/zoraSepolia.mjs";import"../../connectors/chains/zoraTestnet.mjs";import"../../constants.mjs";import"../../hooks/useGetSolPrice.mjs";import"../../lib/viem/toViemTransactionSerializable.mjs";import"../../errors.mjs";import"ofetch";import"./DisplayInfoItem.mjs";import"./PriceDisplay.mjs";import"../../lib/ethers.mjs";import"../../utils/index.mjs";import"../../connectors/get-legacy-injected-providers.mjs";import"../../connectors/is-wallet-installed.mjs";import"../../lib/solana/transaction.mjs";import"../../lib/solana/index.mjs";import"../../utils/buffer/readBigInt64LE.mjs";import"../../lib/attempt.mjs";import"./TransactionTotal.mjs";import"../Layouts.mjs";import"../primitives/Accordion/index.mjs";import"@heroicons/react/24/outline/ChevronDownIcon";import"../primitives/Accordion/AccordionContext.mjs";import"../../configuration/context.mjs";import"../../config.mjs";import"../../configuration/defaultClientConfig.mjs";import"../../configuration/login-methods.mjs";import"../../configuration/wallets.mjs";import"../../theme.mjs";import"tinycolor2";import"../../lib/cybr53.mjs";import"./WalletLink.mjs";const h=({pendingTransaction:s})=>{let{getAccessToken:h}=e(),{wallets:f}=a(),{walletProxy:u,rpcConfig:g,chains:y,appId:b,nativeTokenSymbolForChainId:k}=m(),[v,T]=i(null),[x,I]=i(s),{tokenPrice:w}=c(x.chainId),C=k(s.chainId)||"ETH",S=t((()=>f.find((o=>"privy"===o.walletClientType))),[f]);return n((()=>{(async function(){if(!await h()||!u||!S)return x;let o=l(x.chainId,y,g,{appId:b}),i=await p(x,o,S.address);return T(r(BigInt(i.gas??0))),i})().then(I).catch(console.error)}),[u]),S?/*#__PURE__*/o(d,{children:/*#__PURE__*/o(j,{from:S.address,to:x.to,txn:x,gas:v??void 0,tokenPrice:w,tokenSymbol:C})}):null};let d=/*#__PURE__*/s.div.withConfig({displayName:"TransactionInfoWrapper",componentId:"sc-731f1950-0"})(["width:100%;padding:1rem 0;"]);export{h as TransactionDetailsWrapper};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as i,jsx as
|
|
1
|
+
import{jsxs as i,jsx as t}from"react/jsx-runtime";import{styled as e}from"styled-components";import{PriceDisplay as o}from"./PriceDisplay.mjs";import{getNativeCurrencyFromWei as n}from"../../lib/ethers.mjs";import{FlexContainer as r}from"../Layouts.mjs";import"viem";import"../../lib/solana/transaction.mjs";import"../../lib/solana/index.mjs";import"../../utils/buffer/readBigInt64LE.mjs";import"../../lib/attempt.mjs";import"../../hooks/internal-context.mjs";import"react";import"../../hooks/index.mjs";import"../../utils/index.mjs";import"../../connectors/get-legacy-injected-providers.mjs";import"../../connectors/is-wallet-installed.mjs";import"../../errors.mjs";import"ofetch";import"../../utils/eth/getPublicClient.mjs";const s=({gas:e,tokenPrice:s,tokenSymbol:l})=>/*#__PURE__*/i(r,{style:{paddingBottom:"12px"},children:[/*#__PURE__*/i(m,{children:[/*#__PURE__*/t(p,{children:"Est. Fees"}),/*#__PURE__*/t("div",{children:/*#__PURE__*/t(o,{weiQuantities:[BigInt(e)],tokenPrice:s,tokenSymbol:l})})]}),s&&/*#__PURE__*/t(c,{children:`${n(BigInt(e),l)}`})]}),l=({value:e,gas:s,tokenPrice:l,tokenSymbol:a})=>{let d=BigInt(e??0)+BigInt(s);/*#__PURE__*/return i(r,{children:[/*#__PURE__*/i(m,{children:[/*#__PURE__*/t(p,{children:"Total (including fees)"}),/*#__PURE__*/t("div",{children:/*#__PURE__*/t(o,{weiQuantities:[BigInt(e||0),BigInt(s)],tokenPrice:l,tokenSymbol:a})})]}),l&&/*#__PURE__*/t(c,{children:n(d,a)})]})};let m=/*#__PURE__*/e.div.withConfig({displayName:"TransactionTotalRow",componentId:"sc-f8ef9b74-0"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-top:4px;"]),c=/*#__PURE__*/e.div.withConfig({displayName:"ValueConversionRow",componentId:"sc-f8ef9b74-1"})(["display:flex;flex-direction:row;height:12px;font-size:12px;line-height:12px;color:var(--privy-color-foreground-3);font-weight:400;"]),p=/*#__PURE__*/e.div.withConfig({displayName:"TotalText",componentId:"sc-f8ef9b74-2"})(["font-size:14px;line-height:22.4px;font-weight:400;"]);export{s as TransactionFeeRow,l as TransactionTotal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{TransactionDetails}from"./TransactionDetails.mjs";export{TransactionFeeRow,TransactionTotal}from"./TransactionTotal.mjs";export{DisplayInfoItem}from"./DisplayInfoItem.mjs";import"react/jsx-runtime";import"styled-components";import"./PriceDisplay.mjs";import"viem";import"../../lib/ethers.mjs";import"../../hooks/internal-context.mjs";import"react";import"../../hooks/index.mjs";import"../../utils/index.mjs";import"../../connectors/get-legacy-injected-providers.mjs";import"../../connectors/is-wallet-installed.mjs";import"../../errors.mjs";import"ofetch";import"../../utils/eth/getPublicClient.mjs";import"../../lib/solana/transaction.mjs";import"../../lib/solana/index.mjs";import"../../utils/buffer/readBigInt64LE.mjs";import"../primitives/Accordion/index.mjs";import"@heroicons/react/24/outline/ChevronDownIcon";import"../primitives/Accordion/AccordionContext.mjs";import"../../configuration/context.mjs";import"../../config.mjs";import"../../configuration/defaultClientConfig.mjs";import"../../constants.mjs";import"../../configuration/login-methods.mjs";import"../../configuration/wallets.mjs";import"../../connectors/chains/index.mjs";import"../../connectors/chains/arbitrum.mjs";import"../../connectors/chains/arbitrumSepolia.mjs";import"../../connectors/chains/avalanche.mjs";import"../../connectors/chains/avalancheFuji.mjs";import"../../connectors/chains/base.mjs";import"../../connectors/chains/baseSepolia.mjs";import"../../connectors/chains/berachainArtio.mjs";import"../../connectors/chains/celo.mjs";import"../../connectors/chains/celoAlfajores.mjs";import"../../connectors/chains/filecoin.mjs";import"../../connectors/chains/filecoinCalibration.mjs";import"../../connectors/chains/garnetHolesky.mjs";import"../../connectors/chains/holesky.mjs";import"../../connectors/chains/linea.mjs";import"../../connectors/chains/lineaTestnet.mjs";import"../../connectors/chains/lukso.mjs";import"../../connectors/chains/mainnet.mjs";import"../../connectors/chains/optimism.mjs";import"../../connectors/chains/optimismSepolia.mjs";import"../../connectors/chains/polygon.mjs";import"../../connectors/chains/polygonAmoy.mjs";import"../../connectors/chains/redstone.mjs";import"../../connectors/chains/sepolia.mjs";import"../../connectors/chains/zora.mjs";import"../../connectors/chains/zoraSepolia.mjs";import"../../connectors/chains/zoraTestnet.mjs";import"../../connectors/chains/utils.mjs";import"../../theme.mjs";import"tinycolor2";import"../../lib/cybr53.mjs";import"./WalletLink.mjs";import"../Layouts.mjs";
|
|
1
|
+
export{TransactionDetails}from"./TransactionDetails.mjs";export{TransactionFeeRow,TransactionTotal}from"./TransactionTotal.mjs";export{DisplayInfoItem}from"./DisplayInfoItem.mjs";import"react/jsx-runtime";import"styled-components";import"./PriceDisplay.mjs";import"viem";import"../../lib/ethers.mjs";import"../../hooks/internal-context.mjs";import"react";import"../../hooks/index.mjs";import"../../utils/index.mjs";import"../../connectors/get-legacy-injected-providers.mjs";import"../../connectors/is-wallet-installed.mjs";import"../../errors.mjs";import"ofetch";import"../../utils/eth/getPublicClient.mjs";import"../../lib/solana/transaction.mjs";import"../../lib/solana/index.mjs";import"../../utils/buffer/readBigInt64LE.mjs";import"../../lib/attempt.mjs";import"../primitives/Accordion/index.mjs";import"@heroicons/react/24/outline/ChevronDownIcon";import"../primitives/Accordion/AccordionContext.mjs";import"../../configuration/context.mjs";import"../../config.mjs";import"../../configuration/defaultClientConfig.mjs";import"../../constants.mjs";import"../../configuration/login-methods.mjs";import"../../configuration/wallets.mjs";import"../../connectors/chains/index.mjs";import"../../connectors/chains/arbitrum.mjs";import"../../connectors/chains/arbitrumSepolia.mjs";import"../../connectors/chains/avalanche.mjs";import"../../connectors/chains/avalancheFuji.mjs";import"../../connectors/chains/base.mjs";import"../../connectors/chains/baseSepolia.mjs";import"../../connectors/chains/berachainArtio.mjs";import"../../connectors/chains/celo.mjs";import"../../connectors/chains/celoAlfajores.mjs";import"../../connectors/chains/filecoin.mjs";import"../../connectors/chains/filecoinCalibration.mjs";import"../../connectors/chains/garnetHolesky.mjs";import"../../connectors/chains/holesky.mjs";import"../../connectors/chains/linea.mjs";import"../../connectors/chains/lineaTestnet.mjs";import"../../connectors/chains/lukso.mjs";import"../../connectors/chains/mainnet.mjs";import"../../connectors/chains/optimism.mjs";import"../../connectors/chains/optimismSepolia.mjs";import"../../connectors/chains/polygon.mjs";import"../../connectors/chains/polygonAmoy.mjs";import"../../connectors/chains/redstone.mjs";import"../../connectors/chains/sepolia.mjs";import"../../connectors/chains/zora.mjs";import"../../connectors/chains/zoraSepolia.mjs";import"../../connectors/chains/zoraTestnet.mjs";import"../../connectors/chains/utils.mjs";import"../../theme.mjs";import"tinycolor2";import"../../lib/cybr53.mjs";import"./WalletLink.mjs";import"../Layouts.mjs";
|
package/dist/esm/config.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defaultClientConfig as e}from"./configuration/defaultClientConfig.mjs";import{toCustomLoginMethodConfig as n}from"./configuration/login-methods.mjs";import{toWalletListConfig as o}from"./configuration/wallets.mjs";import{DEFAULT_SUPPORTED_CHAINS as t}from"./connectors/chains/index.mjs";import{mainnet as a}from"./connectors/chains/mainnet.mjs";import{addPrivyRpcToChain as l}from"./connectors/chains/utils.mjs";import{SOLANA_MAINNET_RPC_URL as i,SOLANA_TESTNET_RPC_URL as s,SOLANA_DEVNET_RPC_URL as r}from"./lib/solana/index.mjs";import{generatePalette as c}from"./theme.mjs";import"./constants.mjs";import"./connectors/chains/arbitrum.mjs";import"./connectors/chains/arbitrumSepolia.mjs";import"./connectors/chains/avalanche.mjs";import"./connectors/chains/avalancheFuji.mjs";import"./connectors/chains/base.mjs";import"./connectors/chains/baseSepolia.mjs";import"./connectors/chains/berachainArtio.mjs";import"./connectors/chains/celo.mjs";import"./connectors/chains/celoAlfajores.mjs";import"./connectors/chains/filecoin.mjs";import"./connectors/chains/filecoinCalibration.mjs";import"./connectors/chains/garnetHolesky.mjs";import"./connectors/chains/holesky.mjs";import"./connectors/chains/linea.mjs";import"./connectors/chains/lineaTestnet.mjs";import"./connectors/chains/lukso.mjs";import"./connectors/chains/optimism.mjs";import"./connectors/chains/optimismSepolia.mjs";import"./connectors/chains/polygon.mjs";import"./connectors/chains/polygonAmoy.mjs";import"./connectors/chains/redstone.mjs";import"./connectors/chains/sepolia.mjs";import"./connectors/chains/zora.mjs";import"./connectors/chains/zoraSepolia.mjs";import"./connectors/chains/zoraTestnet.mjs";import"tinycolor2";function d(t,a,l,d){let h,u,
|
|
1
|
+
import{defaultClientConfig as e}from"./configuration/defaultClientConfig.mjs";import{toCustomLoginMethodConfig as n}from"./configuration/login-methods.mjs";import{toWalletListConfig as o}from"./configuration/wallets.mjs";import{DEFAULT_SUPPORTED_CHAINS as t}from"./connectors/chains/index.mjs";import{mainnet as a}from"./connectors/chains/mainnet.mjs";import{addPrivyRpcToChain as l}from"./connectors/chains/utils.mjs";import{SOLANA_MAINNET_RPC_URL as i,SOLANA_TESTNET_RPC_URL as s,SOLANA_DEVNET_RPC_URL as r}from"./lib/solana/index.mjs";import{generatePalette as c}from"./theme.mjs";import"./constants.mjs";import"./connectors/chains/arbitrum.mjs";import"./connectors/chains/arbitrumSepolia.mjs";import"./connectors/chains/avalanche.mjs";import"./connectors/chains/avalancheFuji.mjs";import"./connectors/chains/base.mjs";import"./connectors/chains/baseSepolia.mjs";import"./connectors/chains/berachainArtio.mjs";import"./connectors/chains/celo.mjs";import"./connectors/chains/celoAlfajores.mjs";import"./connectors/chains/filecoin.mjs";import"./connectors/chains/filecoinCalibration.mjs";import"./connectors/chains/garnetHolesky.mjs";import"./connectors/chains/holesky.mjs";import"./connectors/chains/linea.mjs";import"./connectors/chains/lineaTestnet.mjs";import"./connectors/chains/lukso.mjs";import"./connectors/chains/optimism.mjs";import"./connectors/chains/optimismSepolia.mjs";import"./connectors/chains/polygon.mjs";import"./connectors/chains/polygonAmoy.mjs";import"./connectors/chains/redstone.mjs";import"./connectors/chains/sepolia.mjs";import"./connectors/chains/zora.mjs";import"./connectors/chains/zoraSepolia.mjs";import"./connectors/chains/zoraTestnet.mjs";import"tinycolor2";function d(t,a,l,d){let h,m,u,g,f,C,b,y,w,W,A,M,O,j,U,k=l?console.warn:()=>{};a?.loginMethods?(h=a.loginMethods.includes("email"),m=a.loginMethods.includes("sms"),g=a.loginMethods.includes("wallet"),f=a.loginMethods.includes("google"),C=a.loginMethods.includes("twitter"),b=a.loginMethods.includes("discord"),w=a.loginMethods.includes("spotify"),W=a.loginMethods.includes("instagram"),y=a.loginMethods.includes("tiktok"),M=a.loginMethods.includes("github"),A=a.loginMethods.includes("linkedin"),O=a.loginMethods.includes("apple"),j=a.loginMethods.includes("farcaster"),U=a.loginMethods.includes("telegram")):(h=t.emailAuth,m=t.smsAuth,g=t.walletAuth||t.solanaWalletAuth,f=t.googleOAuth,C=t.twitterOAuth,b=t.discordOAuth,M=t.githubOAuth,w=t.spotifyOAuth,W=t.instagramOAuth,y=t.tiktokOAuth,A=t.linkedinOAuth,O=t.appleOAuth,j=t.farcasterAuth,U=t.telegramAuth),"undefined"!=typeof window&&"function"!=typeof window.PublicKeyCredential?u=!1:t.passkeyAuth&&(u=!0);let v=[h,m].filter(Boolean),S=[f,C,b,M,w,W,y,A,O,j,U].filter(Boolean),x=[g].filter(Boolean),L=[u&&t.passkeysForSignupEnabled].filter(Boolean);if(v.length+S.length+x.length+L.length===0)throw Error("You must enable at least one login method");let P=void 0!==a?.appearance?.showWalletLoginFirst?a?.appearance?.showWalletLoginFirst:t.showWalletLoginFirst;P&&0===x.length?(k("You should only enable `showWalletLoginFirst` when `wallet` logins are also enabled. `showWalletLoginFirst` has been set to false"),P=!1):P||S.length+v.length!==0||(k("You should only disable `showWalletLoginFirst` when `email`, `sms`, or social logins are also enabled. `showWalletLoginFirst` has been set to true"),P=!0);let F=a?.externalWallets?.walletConnect?.enabled??!0;a?.loginMethods&&a.loginMethodsAndOrder&&k("You should only configure one of `loginMethods` or `loginMethodsAndOrder`");let E=o({input:a?.appearance?.walletList,overrides:a?.loginMethodsAndOrder}),T=n({input:a?.loginMethodsAndOrder}),I=a?.intl?.defaultCountry??"US",{chains:q,defaultChain:R}=p({supportedChains:a?.supportedChains,defaultChainFromConfig:a?.defaultChain}),D=!!a?.defaultChain,H=a?.customAuth?.getCustomAccessToken&&!1!==a?.customAuth?.enabled,B=a?.embeddedWallets?.requireUserPasswordOnCreate,Y=a?.embeddedWallets?.createOnLogin,z=H?"all-users":t.embeddedWalletConfig.createOnLogin,K=a?.solanaClusters??[];return t.solanaWalletAuth&&!a?.externalWallets?.solana?.connectors&&console.warn("App configuration has Solana wallet login enabled, but no Solana wallet connectors have been passed to Privy. Make sure to pass Solana connectors to the `config.externalWallets.solana.connectors` field of the `PrivyProvider`"),{id:t.id,name:t.name,allowlistConfig:t.allowlistConfig,legacyWalletUiConfig:t.legacyWalletUiConfig,appearance:{logo:a?.appearance?.logo??t.logoUrl,landingHeader:a?.appearance?.landingHeader??e.appearance.landingHeader,loginMessage:"string"==typeof a?.appearance?.loginMessage?a?.appearance?.loginMessage.slice(0,100):a?.appearance?.loginMessage,footerLogo:a?.appearance?.footerLogo,palette:c({backgroundTheme:a?.appearance?.theme??e.appearance.theme,accentHex:a?.appearance?.accentColor??t.accentColor??e.appearance.accentColor}),loginGroupPriority:P?"web3-first":"web2-first",hideDirectWeb2Inputs:!!a?.appearance?.hideDirectWeb2Inputs,walletList:E,walletChainType:a?.appearance?.walletChainType??(({evmWalletAuth:e,solanaWalletAuth:n})=>e&&n?"ethereum-and-solana":e?"ethereum-only":n?"solana-only":"ethereum-only")({evmWalletAuth:t.walletAuth??!1,solanaWalletAuth:t.solanaWalletAuth??!1})},loginMethods:{wallet:g,email:h,sms:m,passkey:u,google:f,twitter:C,discord:b,github:M,spotify:w,instagram:W,tiktok:y,linkedin:A,apple:O,farcaster:j,telegram:U},disablePlusEmails:t.disablePlusEmails,loginMethodsAndOrder:T,legal:{termsAndConditionsUrl:a?.legal?.termsAndConditionsUrl??t.termsAndConditionsUrl,privacyPolicyUrl:a?.legal?.privacyPolicyUrl??t.privacyPolicyUrl,requireUsersAcceptTerms:t.requireUsersAcceptTerms??!1},walletConnectCloudProjectId:a?.walletConnectCloudProjectId??t.walletConnectCloudProjectId??e.walletConnectCloudProjectId,rpcConfig:{rpcUrls:{},rpcTimeouts:{}},chains:q,solanaClusters:{"mainnet-beta":K.find((e=>"mainnet-beta"===e.name))?.rpcUrl||i,testnet:K.find((e=>"testnet"===e.name))?.rpcUrl||s,devnet:K.find((e=>"devnet"===e.name))?.rpcUrl||r},defaultChain:R,intl:{defaultCountry:I},shouldEnforceDefaultChainOnConnect:D,captchaEnabled:t.captchaEnabled??e.captchaEnabled,captchaSiteKey:t.captchaSiteKey,externalWallets:{coinbaseWallet:{connectionOptions:a?.externalWallets?.coinbaseWallet?.connectionOptions??e.externalWallets.coinbaseWallet.connectionOptions},walletConnect:{enabled:F},solana:{connectors:a?.externalWallets?.solana?.connectors}},embeddedWallets:{requireUserOwnedRecoveryOnCreate:B??(!H&&t.embeddedWalletConfig.requireUserOwnedRecoveryOnCreate),userOwnedRecoveryOptions:H?["user-passcode"]:t.embeddedWalletConfig.userOwnedRecoveryOptions,priceDisplay:{primary:"fiat-currency",secondary:"native-token"},ethereum:{createOnLogin:Y??a?.embeddedWallets?.ethereum?.createOnLogin??z},solana:{createOnLogin:a?.embeddedWallets?.solana?.createOnLogin??"off"},showWalletUIs:a?.embeddedWallets?.showWalletUIs??t.enforceWalletUis??!0,extendedCalldataDecoding:a?.embeddedWallets?.extendedCalldataDecoding??!1,transactionScanning:{enabled:a?.embeddedWallets?.transactionScanning?.enabled??!1,domain:a?.embeddedWallets?.transactionScanning?.domain??d??"https://auth.privy.io"}},mfa:{methods:t.mfaMethods??[],noPromptOnMfaRequired:a?.mfa?.noPromptOnMfaRequired??!1},passkeys:{shouldUnlinkOnUnenrollMfa:a?.passkeys?.shouldUnlinkOnUnenrollMfa,shouldUnenrollMfaOnUnlink:a?.passkeys?.shouldUnenrollMfaOnUnlink},customAuth:H?{enabled:!0,...a.customAuth}:void 0,loginConfig:{telegramAuthConfiguration:t.telegramAuthConfiguration,passkeysForSignupEnabled:t.passkeysForSignupEnabled},headless:!!a?.headless,render:{standalone:a?._render?.standalone??e._render.standalone},fundingConfig:t.fundingConfig,fundingMethodConfig:{...a?.fundingMethodConfig??e.fundingMethodConfig,moonpay:{...a?.fundingMethodConfig?.moonpay??e.fundingMethodConfig.moonpay,useSandbox:a?.fundingMethodConfig?.moonpay.useSandbox??a?.fiatOnRamp?.useSandbox??e.fundingMethodConfig.moonpay.useSandbox}}}}function h(e){if(!e)return{};let{appearance:n,supportedChains:o,defaultChain:t,externalWallets:a,...l}=e;return{...l,...o?{supportedChains:o.map((e=>e.id))}:void 0,...t?{defaultChain:t.id}:void 0,...a?{walletConnect:a.walletConnect,coinbaseWallet:a.coinbaseWallet,solana:{connectors:a.solana?.connectors?.get().map((e=>e.walletClientType))}}:void 0}}function p({supportedChains:e,defaultChainFromConfig:n}){let o;if(e){if(0===e.length)throw Error("`supportedChains` must contain at least one chain");o=e.map((e=>{if(e.rpcUrls.privyWalletOverride)return e;let n=t.find((n=>n.id===e.id)),o=n?.rpcUrls.privy?.http[0];return o?l(e,o):e}))}else o=[...t];let i=e?o[0]:a,s=n??i;if(!o.find((e=>e.id===s.id)))throw Error("`defaultChain` must be included in `supportedChains`");return{chains:o,defaultChain:s}}export{p as buildChainsAndDefaultChain,d as generateAppConfig,h as generateClientConfigAnalyticsPayload};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"eventemitter3";import"../embedded-wallets/rpc/types.mjs";export{E as Embedded1193Provider}from"../privy-provider-C-cTZKVr.mjs";import"../lib/viem/toViemTransactionSerializable.mjs";import"../utils/index.mjs";import"../utils/eth/getPublicClient.mjs";import"./getRpcTimeout.mjs";import"./providerTypes.mjs";import"react/jsx-runtime";import"mipd";import"react";import"react-device-detect";import"viem/utils";import"../auth-flows/custom-jwt-account.mjs";import"../errors.mjs";import"ofetch";import"../paths.mjs";import"../auth-flows/email.mjs";import"../auth-flows/getUiHeader.mjs";import"../auth-flows/farcaster.mjs";import"./walletconnect-registry.mjs";import"../storage.mjs";import"./get-legacy-injected-providers.mjs";import"./is-wallet-installed.mjs";import"viem";import"../effect.mjs";import"../auth-flows/guest.mjs";import"jose";import"../constants.mjs";import"../crypto.mjs";import"../auth-flows/passkey.mjs";import"../auth-flows/siwe.mjs";import"../lib/siwe.mjs";import"../auth-flows/siws.mjs";import"../lib/siws.mjs";import"../auth-flows/sms.mjs";import"../auth-flows/telegram.mjs";import"../hooks/captcha-context.mjs";import"../hooks/index.mjs";import"uuid";import"../accessToken.mjs";import"../token.mjs";import"../client/user.mjs";import"./coinbase.mjs";import"@coinbase/wallet-sdk";import"../svg/coinbase-wallet.mjs";import"./chains/index.mjs";import"./chains/arbitrum.mjs";import"./chains/arbitrumSepolia.mjs";import"./chains/avalanche.mjs";import"./chains/avalancheFuji.mjs";import"./chains/base.mjs";import"./chains/baseSepolia.mjs";import"./chains/berachainArtio.mjs";import"./chains/celo.mjs";import"./chains/celoAlfajores.mjs";import"./chains/filecoin.mjs";import"./chains/filecoinCalibration.mjs";import"./chains/garnetHolesky.mjs";import"./chains/holesky.mjs";import"./chains/linea.mjs";import"./chains/lineaTestnet.mjs";import"./chains/lukso.mjs";import"./chains/mainnet.mjs";import"./chains/optimism.mjs";import"./chains/optimismSepolia.mjs";import"./chains/polygon.mjs";import"./chains/polygonAmoy.mjs";import"./chains/redstone.mjs";import"./chains/sepolia.mjs";import"./chains/zora.mjs";import"./chains/zoraSepolia.mjs";import"./chains/zoraTestnet.mjs";import"./errors.mjs";import"@privy-io/js-sdk-core";import"./ethereum/index.mjs";import"./areWalletArraysEqual.mjs";import"./isBaseConnectedEthereumWallet.mjs";import"./base.mjs";import"./privyProxyProvider.mjs";import"./embedded.mjs";import"../svg/blobby.mjs";import"../components/Captcha.mjs";import"@marsidev/react-turnstile";import"../components/LoginModal.mjs";import"styled-components";import"../configuration/context.mjs";import"../config.mjs";import"../configuration/defaultClientConfig.mjs";import"../configuration/login-methods.mjs";import"../configuration/wallets.mjs";import"./chains/utils.mjs";import"../lib/solana/index.mjs";import"../theme.mjs";import"tinycolor2";import"../lib/cybr53.mjs";import"../hooks/internal-context.mjs";import"../hooks/modal-context.mjs";import"../components/PrefetchedImage.mjs";import"../screens/index.mjs";import"../hooks/privy-context.mjs";import"../hooks/useElementHeight.mjs";import"../hooks/useRegisterMfaListener.mjs";import"../hooks/events-context.mjs";import"../screens/AccountNotFoundScreen.mjs";import"@heroicons/react/24/outline/QuestionMarkCircleIcon";import"../components/Button.mjs";import"../components/Loader.mjs";import"../components/CircleBackground.mjs";import"../components/ModalHeader.mjs";import"@heroicons/react/24/outline/ArrowLeftIcon";import"@heroicons/react/24/outline/ArrowRightIcon";import"@heroicons/react/24/outline/XMarkIcon";import"../components/layout/StackedContainer.mjs";import"../screens/LandingScreen/styles.mjs";import"../screens/AccountTransferScreen/LinkConflictScreen.mjs";import"@heroicons/react/24/outline/ExclamationTriangleIcon";import"@heroicons/react/24/outline/WalletIcon";import"../components/CircleBorder.mjs";import"../components/ModalFooter.mjs";import"../svg/protected-by-privy.mjs";import"../components/ui/wallet/Address.mjs";import"@heroicons/react/24/outline/CheckIcon";import"@heroicons/react/24/outline/Square2StackIcon";import"../lib/capitalizeFirstLetter.mjs";import"../svg/circle-alert.mjs";import"../screens/AccountTransferScreen/AccountTransferButton.mjs";import"../screens/AccountTransferScreen/EmbeddedWalletInfoView.mjs";import"../screens/AccountTransferScreen/styled.mjs";import"@heroicons/react/24/outline/ExclamationCircleIcon";import"../screens/AffirmativeConsentScreen.mjs";import"@heroicons/react/24/outline/ArrowTopRightOnSquareIcon";import"@heroicons/react/24/solid/DocumentCheckIcon";import"../screens/MfaScreens/StyledComponents.mjs";import"../screens/AllowlistRejectionScreen.mjs";import"../svg/lock-closed.mjs";import"../screens/AwaitingPasswordlessCodeScreen.mjs";import"@heroicons/react/20/solid/CheckIcon";import"@heroicons/react/24/outline/EnvelopeIcon";import"@heroicons/react/24/outline/PhoneIcon";import"../components/Layouts.mjs";import"../components/ScreenHeader.mjs";import"../screens/CaptchaScreen.mjs";import"@heroicons/react/24/solid/CheckCircleIcon";import"@heroicons/react/24/solid/XCircleIcon";import"../components/WrappedLoader.mjs";import"../screens/ConnectOnlyAuthenticatedScreen.mjs";import"../screens/LandingScreen/WalletButtonList.mjs";import"../screens/LandingScreen/EmptyWalletView.mjs";import"../screens/LandingScreen/WalletButton.mjs";import"../components/external-wallets/InjectedWalletIcon.mjs";import"../components/ui/chips/Chip.mjs";import"../components/ui/animation/LoadingSkeleton.mjs";import"./mobile-wallets.mjs";import"../svg/backpack.mjs";import"../svg/okx-wallet.mjs";import"../svg/phantom.mjs";import"../svg/solflare.mjs";import"../types.mjs";import"../lib/external-wallets/displayHelpers.mjs";import"../svg/brave-browser-icon.mjs";import"../svg/bybit.mjs";import"../svg/cryptocom.mjs";import"../svg/metamask.mjs";import"../svg/rabby.mjs";import"../svg/rainbow.mjs";import"../svg/safe.mjs";import"../svg/uniswap.mjs";import"../svg/universal-profile.mjs";import"../svg/wallet-connect.mjs";import"../svg/zerion.mjs";import"../lib/isEmbeddedWebview.mjs";import"../recent-login/context.mjs";import"../screens/ConnectOnlyLandingScreen.mjs";import"../screens/ConnectOnlyStatusScreen.mjs";import"../svg/browser-extension-wallet-icon.mjs";import"../screens/ConnectionStatusScreen.mjs";import"./userAlreadyHasConnectedCoinbaseWallet.mjs";import"./walletconnect-v2.mjs";import"@walletconnect/ethereum-provider";import"../hook-utils/useInterval.mjs";import"../lib/useHasTabbedAway.mjs";import"../screens/CrossAppAuthScreen.mjs";import"../components/ProviderAppLogo.mjs";import"../hooks/useLogout.mjs";import"../screens/DelegatedActionsConsentScreen.mjs";import"@heroicons/react/24/outline/CheckCircleIcon";import"@heroicons/react/24/outline/CloudArrowUpIcon";import"../components/ui/wallet/WalletInfoCard.mjs";import"../components/ui/layout/Column.mjs";import"../components/ui/typography/ErrorMessage.mjs";import"../components/ui/typography/LabelXs.mjs";import"../components/ui/wallet/shared.mjs";import"../screens/DelegatedActionsRevokeScreen.mjs";import"@heroicons/react/24/outline/NoSymbolIcon";import"../screens/EmbeddedWalletConnectingScreen.mjs";import"../components/primitives/LoadingSpinner/index.mjs";import"../embedded-wallets/errors.mjs";import"../embedded-wallets/types.mjs";import"../lib/embeddedWalletRecovery.mjs";import"../lib/pkce.mjs";import"../screens/EmbeddedWalletCreatedScreen.mjs";import"../screens/EmbeddedWalletKeyExportScreen.mjs";import"../components/ui/banners/WarningBanner.mjs";import"../components/ui/typography/Subtitle.mjs";import"../components/ui/typography/Title.mjs";import"../screens/EmbeddedWalletOnAccountCreateScreen.mjs";import"../hooks/useEmbeddedWalletCreate.mjs";import"../screens/EmbeddedWalletPasswordUpdateScreen.mjs";import"../password.mjs";import"fast-password-entropy";import"secure-password-utilities";import"secure-password-utilities/wordlists";import"../components/embedded-wallets/SetWalletPasswordForm/SetWalletPasswordForm.mjs";import"../components/embedded-wallets/SetWalletPasswordForm/ConfimWalletPasswordForm.mjs";import"../components/embedded-wallets/SetWalletPasswordForm/shared.mjs";import"@heroicons/react/24/outline/ArrowPathIcon";import"@heroicons/react/24/outline/EyeIcon";import"@heroicons/react/24/outline/EyeSlashIcon";import"../components/embedded-wallets/SetWalletPasswordForm/ConfimWalletPasswordSaved.mjs";import"../components/Checkbox.mjs";import"../components/embedded-wallets/SetWalletPasswordForm/CreateWalletPassword.mjs";import"@heroicons/react/24/outline/KeyIcon";import"../components/embedded-wallets/SetWalletPasswordForm/SaveWalletPassword.mjs";import"@heroicons/react/24/outline/ArrowDownTrayIcon";import"@heroicons/react/24/outline/ClipboardDocumentCheckIcon";import"@heroicons/react/24/outline/DocumentDuplicateIcon";import"../components/embedded-wallets/SetWalletPasswordForm/SetWalletPasswordComplete.mjs";import"../components/embedded-wallets/SetWalletPasswordForm/setWalletPassword.hooks.mjs";import"../screens/EmbeddedWalletPasswordUpdateSplashScreen.mjs";import"@heroicons/react/24/outline/UserCircleIcon";import"@heroicons/react/24/solid/LockClosedIcon";import"../screens/ErrorScreen.mjs";import"../screens/FarcasterConnectStatusScreen.mjs";import"../components/CopyToClipboard.mjs";import"../svg/checkmark.mjs";import"../svg/copy.mjs";import"../components/OpenLink.mjs";import"../components/QrCode.mjs";import"qrcode";import"../svg/black-rounded-square.mjs";import"../svg/farcaster.mjs";import"../screens/FarcasterSignerStatusScreen.mjs";import"../screens/Funding/AwaitingEvmToSolBridgingScreen.mjs";import"../components/embedded-wallets/FundWalletMethodHeader.mjs";import"../components/primitives/NeutralSpinner/index.mjs";import"../hooks/useGetTokenPrice.mjs";import"../hooks/useGetSolPrice.mjs";import"../hooks/useWallets.mjs";import"../lib/funding/analytics.mjs";import"../lib/funding/reservoir.mjs";import"../lib/solana/transaction.mjs";import"../utils/buffer/readBigInt64LE.mjs";import"../lib/wallets/actions/getBalanceForChains.mjs";import"../plugins/context/PrivyPluginContext.mjs";import"../plugins/solana-funding/id.mjs";import"../screens/Funding/BridgeNetworkSelectionView.mjs";import"../components/ui/layout/Row.mjs";import"../components/ui/typography/LabelSm.mjs";import"../components/ui/wallet/NetworkBalanceCard.mjs";import"../components/ui/typography/Value.mjs";import"../components/ui/wallet/NetworkIcon.mjs";import"@heroicons/react/24/outline/GlobeAltIcon";import"../components/ui/icons/Arbitum.mjs";import"../components/ui/icons/Avalanche.mjs";import"../components/ui/icons/Base.mjs";import"../components/ui/icons/Celo.mjs";import"../components/ui/icons/Linea.mjs";import"../components/ui/icons/Mainnnet.mjs";import"../components/ui/icons/Optimism.mjs";import"../components/ui/icons/Polygon.mjs";import"../components/ui/icons/Solana.mjs";import"../components/ui/icons/Zora.mjs";import"../components/ui/wallet/NetworkSelectorPanel.mjs";import"@headlessui/react";import"@heroicons/react/24/outline/ChevronDownIcon";import"../lib/ethers.mjs";import"../screens/Funding/styles.mjs";import"../screens/LinkPasskeyScreen.mjs";import"@heroicons/react/24/outline/ClockIcon";import"@heroicons/react/24/outline/TrashIcon";import"@heroicons/react/24/solid/CheckBadgeIcon";import"../svg/face-id.mjs";import"../svg/fingerprint.mjs";import"../screens/Funding/TransferOrBridgeLoadingScreen.mjs";import"../screens/Funding/AwaitingExternalSolanaTransferScreen.mjs";import"../hooks/solana/useSolanaWallets.mjs";import"../screens/Funding/AwaitingExternalTransferScreen.mjs";import"../lib/erc20/actions/abis/transfer.mjs";import"../lib/erc20/formatErc20TokenAmount.mjs";import"../lib/wallets/actions/getErc20Balance.mjs";import"../screens/Funding/AwaitingSolToEvmBridgingScreen.mjs";import"../screens/Funding/CoinbaseOnrampStatusScreen.mjs";import"@heroicons/react/24/solid/ArrowsRightLeftIcon";import"../screens/Funding/FundingEditAmountScreen.mjs";import"../screens/Funding/FundingMethodSelectionScreen.mjs";import"@heroicons/react/24/outline/CreditCardIcon";import"@heroicons/react/24/outline/QrCodeIcon";import"../components/ui/banners/ErrorBanner.mjs";import"../components/ui/banners/InfoBanner.mjs";import"@heroicons/react/24/outline/InformationCircleIcon";import"../components/ui/icons/ApplePay.mjs";import"../components/ui/icons/GooglePay.mjs";import"../hook-utils/useAsyncValue.mjs";import"../icons/WalletCards.mjs";import"../lib/erc20/actions/getErc20TokenInfo.mjs";import"../lib/funding/prepareFundingMethods.mjs";import"../lib/funding/coinbase/triggerCoinbaseFlow.mjs";import"../lib/popup/triggerPopup.mjs";import"../lib/funding/coinbase/toCoinbaseBlockchainFromChainId.mjs";import"../lib/funding/moonpay/triggerMoonpayFlow.mjs";import"../lib/funding/moonpay/index.mjs";import"../payment-request/isPaymentRequestAvailable.mjs";import"../screens/Funding/ManualTransferScreen.mjs";import"../hooks/useWalletBalance.mjs";import"../screens/Funding/MoonpayStatusScreen.mjs";import"../svg/moonpay.mjs";import"../screens/Funding/TransferFromWalletScreen.mjs";import"../screens/LandingScreen/WalletOverflowButton.mjs";import"@heroicons/react/24/outline/ChevronRightIcon";import"../screens/InAppBrowserLoginNotPossible.mjs";import"../screens/InstallWalletScreen.mjs";import"../components/TodoList.mjs";import"../svg/check-badge.mjs";import"../screens/LandingScreen/ConnectOrCreateScreen.mjs";import"../screens/LandingScreen/CustomLandingScreenView.mjs";import"../lib/toDisplayFromAccountType.mjs";import"../screens/LandingScreen/AppLogoHeader.mjs";import"../components/AppLogo.mjs";import"../screens/LandingScreen/CrossAppButton.mjs";import"../screens/LandingScreen/EmailButton.mjs";import"../components/ConnectEmailForm.mjs";import"../components/ui/forms/EmailInputForm.mjs";import"../screens/LandingScreen/FarcasterButton.mjs";import"../screens/LandingScreen/LandingScreenView.mjs";import"../svg/email-or-phone.mjs";import"../screens/LandingScreen/PasskeyLink.mjs";import"@heroicons/react/24/outline/FingerPrintIcon";import"../screens/LandingScreen/SmsButton.mjs";import"../components/ConnectPhoneForm.mjs";import"../components/PhoneCountryDropdown.mjs";import"../screens/LandingScreen/SocialButton.mjs";import"../svg/apple.mjs";import"../svg/discord.mjs";import"../svg/github.mjs";import"../svg/google.mjs";import"../svg/instagram.mjs";import"../svg/linkedin.mjs";import"../svg/spotify.mjs";import"../svg/tiktok.mjs";import"../svg/twitter.mjs";import"../screens/LandingScreen/TelegramButton.mjs";import"../svg/telegram.mjs";import"../screens/LandingScreen/Web2OverflowButton.mjs";import"../screens/LandingScreen/LandingScreen.mjs";import"../screens/LinkEmailScreen.mjs";import"../screens/LinkPhoneScreen.mjs";import"../screens/LinkWalletScreen.mjs";import"../screens/LoginFailedScreen.mjs";import"../svg/error-circle.mjs";import"../screens/MfaScreens/MfaEnrollmentFlowScreen.mjs";import"@heroicons/react/24/outline/ShieldCheckIcon";import"@heroicons/react/24/solid/IdentificationIcon";import"../hooks/useMfa.mjs";import"../hooks/useMfaEnrollment.mjs";import"../svg/mfa-shield.mjs";import"../screens/MfaScreens/EnrollLandingScreen.mjs";import"@heroicons/react/24/outline/DevicePhoneMobileIcon";import"@heroicons/react/24/outline/MinusCircleIcon";import"../screens/MfaScreens/EnrollPasskey.mjs";import"@heroicons/react/24/outline/ArrowRightEndOnRectangleIcon";import"../screens/MfaScreens/EnrollSms.mjs";import"../components/PinInput.mjs";import"../screens/MfaScreens/EnrollTotp.mjs";import"../svg/qr-codes.mjs";import"@heroicons/react/24/solid/ShieldCheckIcon";import"../screens/MfaScreens/MfaVerifyFlowScreen.mjs";import"../components/embedded-wallets/TransactionDetailsWrapper.mjs";import"../lib/viem/prepareTransactionRequest.mjs";import"../components/embedded-wallets/TransactionDetails.mjs";import"../components/embedded-wallets/DisplayInfoItem.mjs";import"../components/embedded-wallets/PriceDisplay.mjs";import"../components/embedded-wallets/TransactionTotal.mjs";import"../components/primitives/Accordion/index.mjs";import"../components/primitives/Accordion/AccordionContext.mjs";import"../components/embedded-wallets/WalletLink.mjs";import"../screens/MfaScreens/VerifyWithPasskey.mjs";import"@heroicons/react/24/outline/CalendarIcon";import"../screens/OAuthStatusScreen.mjs";import"../auth-flows/oauth/getDisplayForProvider.mjs";import"../svg/globe.mjs";import"../auth-flows/oauth/getOAuthErrorMessage.mjs";import"../auth-flows/oauth/stripUrlOAuthParamsAndRemoveStateCode.mjs";import"../screens/PasskeySelectSignupOrLogin.mjs";import"../screens/PasskeyStatusScreen.mjs";import"../screens/Recovery/PasswordRecoveryScreen.mjs";import"../screens/Recovery/RecoveryOAuthStatusScreen.mjs";import"../svg/apple-icloud.mjs";import"../svg/google-drive.mjs";import"../screens/Recovery/styles.mjs";import"../screens/Recovery/RecoveryPasswordCreateScreen.mjs";import"../screens/Recovery/RecoverySelectionScreen.mjs";import"@heroicons/react/24/outline/LockClosedIcon";import"@heroicons/react/24/outline/PencilSquareIcon";import"../screens/Recovery/SetAutomaticRecoveryScreen.mjs";import"../components/ui/icons/WithCircleBorder.mjs";import"../screens/SendSolanaTransactionScreen/SendSolanaTransactionScreen.mjs";import"../embedded-wallets/solana/transaction.mjs";import"../screens/SendTransactionScreen/SendTransactionScreenView.mjs";import"@heroicons/react/24/outline";import"../components/primitives/InteractiveLabel.mjs";import"../screens/SendTransactionScreen/TokenDescription.mjs";import"../screens/SendTransactionScreen/TransactionDetail.mjs";import"../screens/SendTransactionScreen/TransactionValidation.mjs";import"../components/Pill.mjs";import"../screens/SendTransactionScreen/useTransactionDetails.mjs";import"../screens/SendTransactionScreen/TransactionErrorView.mjs";import"@heroicons/react/24/outline/ClipboardDocumentIcon";import"../screens/SendSolanaTransactionScreen/SolanaTransactionReceiptView.mjs";import"../components/embedded-wallets/SolanaTransactionDetails.mjs";import"../screens/SendTransactionScreen/SendTransactionScreen.mjs";import"../embedded-wallets/rpc/index.mjs";import"../screens/SendTransactionScreen/ScanDetails.mjs";import"../components/primitives/JsonTree.mjs";import"../screens/SendTransactionScreen/TransactionReceiptView.mjs";import"../screens/SendTransactionScreen/getStaticTransactionMetadata.mjs";import"../lib/deployAccount/actions/abis/deployAccount.mjs";import"../lib/erc20/actions/abis/approve.mjs";import"../lib/erc721/actions/abis/mint.mjs";import"../lib/erc721/actions/abis/safeTransferFrom.mjs";import"../lib/erc721/actions/abis/setApprovalForAll.mjs";import"../lib/erc721/actions/abis/transferFrom.mjs";import"../lib/erc1155/actions/abis/safeBatchTransferFrom.mjs";import"../lib/erc1155/actions/abis/safeTransferFrom.mjs";import"../screens/SendTransactionScreen/lib.mjs";import"../screens/SendTransactionScreen/usePrepareTransaction.mjs";import"../screens/SignRequestScreen.mjs";import"../components/embedded-wallets/StyledLogo.mjs";import"../screens/TelegramAuthScreen.mjs";import"../screens/UpdateEmailScreen.mjs";import"../components/UpdateEmailForm.mjs";import"../screens/UpdatePhoneScreen.mjs";import"../screens/UserLimitReachedScreen.mjs";import"../svg/alert-circle.mjs";import"../screens/WalletInterstitialScreen.mjs";import"../styles.mjs";import"../cssNormalize.mjs";import"../components/Dialog.mjs";import"../components/TelegramLoginButton.mjs";import"./solana/index.mjs";import"./stored-connection.mjs";import"../embedded-wallets/EmbeddedWalletIframe.mjs";import"../embedded-wallets/eventCallbacksQueue.mjs";import"../embedded-wallets/invokeWithMfa.mjs";import"../embedded-wallets/delegated-actions.mjs";import"../lib/caip2.mjs";import"../lib/cross-app/index.mjs";import"../lib/cross-app/authFlow.mjs";import"../auth-flows/cross-app.mjs";import"../lib/cross-app/popupCrossAppAuthFlow.mjs";import"../lib/cross-app/sendCrossAppRequest.mjs";import"../lib/funding/index.mjs";import"../lib/funding/prepareFundingModalData.mjs";import"../lib/funding/filterSupportedOptions.mjs";import"../lib/funding/usdc.mjs";import"../lib/funding/isFundingEnabled.mjs";import"../lib/popupOAuthFlow.mjs";import"../passkeys/transformResponseToSnakeCase.mjs";import"../auth-flows/oauth/detectCompletingOAuthFlow.mjs";import"../auth-flows/oauth/getIsHeadlessOAuthFlowInProgress.mjs";import"../auth-flows/oauth/OAuthFlow.mjs";import"./ethereum/EthereumNullConnector.mjs";import"./injected.mjs";import"./metamask.mjs";import"./solana/SolanaNullConnector.mjs";import"../http.mjs";import"../lib/smart-wallet-helpers.mjs";import"../passkeys/transformOptionsToCamelCase.mjs";import"../session.mjs";import"js-cookie";import"../auth-flows/authFlowToAuthenticateMethod.mjs";import"../cookies.mjs";import"../hooks/useIdentityToken.mjs";import"zustand";
|
|
1
|
+
import"eventemitter3";import"../embedded-wallets/rpc/types.mjs";export{E as Embedded1193Provider}from"../privy-provider-Dsr4yi3k.mjs";import"../lib/viem/toViemTransactionSerializable.mjs";import"../utils/index.mjs";import"../utils/eth/getPublicClient.mjs";import"./getRpcTimeout.mjs";import"./providerTypes.mjs";import"react/jsx-runtime";import"mipd";import"react";import"react-device-detect";import"viem/utils";import"../auth-flows/custom-jwt-account.mjs";import"../errors.mjs";import"ofetch";import"../paths.mjs";import"../auth-flows/email.mjs";import"../auth-flows/getUiHeader.mjs";import"../auth-flows/farcaster.mjs";import"./walletconnect-registry.mjs";import"../storage.mjs";import"./get-legacy-injected-providers.mjs";import"./is-wallet-installed.mjs";import"viem";import"../effect.mjs";import"../auth-flows/guest.mjs";import"jose";import"../constants.mjs";import"../crypto.mjs";import"../auth-flows/passkey.mjs";import"../auth-flows/siwe.mjs";import"../lib/siwe.mjs";import"../auth-flows/siws.mjs";import"../lib/siws.mjs";import"../auth-flows/sms.mjs";import"../auth-flows/telegram.mjs";import"../hooks/captcha-context.mjs";import"../hooks/index.mjs";import"uuid";import"../accessToken.mjs";import"../token.mjs";import"../client/user.mjs";import"./coinbase.mjs";import"@coinbase/wallet-sdk";import"../svg/coinbase-wallet.mjs";import"./chains/index.mjs";import"./chains/arbitrum.mjs";import"./chains/arbitrumSepolia.mjs";import"./chains/avalanche.mjs";import"./chains/avalancheFuji.mjs";import"./chains/base.mjs";import"./chains/baseSepolia.mjs";import"./chains/berachainArtio.mjs";import"./chains/celo.mjs";import"./chains/celoAlfajores.mjs";import"./chains/filecoin.mjs";import"./chains/filecoinCalibration.mjs";import"./chains/garnetHolesky.mjs";import"./chains/holesky.mjs";import"./chains/linea.mjs";import"./chains/lineaTestnet.mjs";import"./chains/lukso.mjs";import"./chains/mainnet.mjs";import"./chains/optimism.mjs";import"./chains/optimismSepolia.mjs";import"./chains/polygon.mjs";import"./chains/polygonAmoy.mjs";import"./chains/redstone.mjs";import"./chains/sepolia.mjs";import"./chains/zora.mjs";import"./chains/zoraSepolia.mjs";import"./chains/zoraTestnet.mjs";import"./errors.mjs";import"@privy-io/js-sdk-core";import"./ethereum/index.mjs";import"./areWalletArraysEqual.mjs";import"./isBaseConnectedEthereumWallet.mjs";import"./base.mjs";import"./privyProxyProvider.mjs";import"./embedded.mjs";import"../svg/blobby.mjs";import"../components/Captcha.mjs";import"@marsidev/react-turnstile";import"../components/LoginModal.mjs";import"styled-components";import"../configuration/context.mjs";import"../config.mjs";import"../configuration/defaultClientConfig.mjs";import"../configuration/login-methods.mjs";import"../configuration/wallets.mjs";import"./chains/utils.mjs";import"../lib/solana/index.mjs";import"../theme.mjs";import"tinycolor2";import"../lib/cybr53.mjs";import"../hooks/internal-context.mjs";import"../hooks/modal-context.mjs";import"../components/PrefetchedImage.mjs";import"../screens/index.mjs";import"../hooks/privy-context.mjs";import"../hooks/useElementHeight.mjs";import"../hooks/useRegisterMfaListener.mjs";import"../hooks/events-context.mjs";import"../screens/AccountNotFoundScreen.mjs";import"@heroicons/react/24/outline/QuestionMarkCircleIcon";import"../components/Button.mjs";import"../components/Loader.mjs";import"../components/CircleBackground.mjs";import"../components/ModalHeader.mjs";import"@heroicons/react/24/outline/ArrowLeftIcon";import"@heroicons/react/24/outline/ArrowRightIcon";import"@heroicons/react/24/outline/XMarkIcon";import"../components/layout/StackedContainer.mjs";import"../screens/LandingScreen/styles.mjs";import"../screens/AccountTransferScreen/LinkConflictScreen.mjs";import"@heroicons/react/24/outline/ExclamationTriangleIcon";import"@heroicons/react/24/outline/WalletIcon";import"../components/CircleBorder.mjs";import"../components/ModalFooter.mjs";import"../svg/protected-by-privy.mjs";import"../components/ui/wallet/Address.mjs";import"@heroicons/react/24/outline/CheckIcon";import"@heroicons/react/24/outline/Square2StackIcon";import"../lib/capitalizeFirstLetter.mjs";import"../svg/circle-alert.mjs";import"../screens/AccountTransferScreen/AccountTransferButton.mjs";import"../screens/AccountTransferScreen/EmbeddedWalletInfoView.mjs";import"../screens/AccountTransferScreen/styled.mjs";import"@heroicons/react/24/outline/ExclamationCircleIcon";import"../screens/AffirmativeConsentScreen.mjs";import"@heroicons/react/24/outline/ArrowTopRightOnSquareIcon";import"@heroicons/react/24/solid/DocumentCheckIcon";import"../lib/user/shouldProceedtoEmbeddedWalletCreationFlow.mjs";import"../lib/user/shouldCreateEmbeddedEthWallet.mjs";import"../lib/user/shouldCreateEmbeddedSolWallet.mjs";import"../screens/MfaScreens/StyledComponents.mjs";import"../screens/AllowlistRejectionScreen.mjs";import"../svg/lock-closed.mjs";import"../screens/AwaitingPasswordlessCodeScreen.mjs";import"@heroicons/react/20/solid/CheckIcon";import"@heroicons/react/24/outline/EnvelopeIcon";import"@heroicons/react/24/outline/PhoneIcon";import"../components/Layouts.mjs";import"../components/ScreenHeader.mjs";import"../screens/CaptchaScreen.mjs";import"@heroicons/react/24/solid/CheckCircleIcon";import"@heroicons/react/24/solid/XCircleIcon";import"../components/WrappedLoader.mjs";import"../screens/ConnectOnlyAuthenticatedScreen.mjs";import"../screens/LandingScreen/WalletButtonList.mjs";import"../screens/LandingScreen/EmptyWalletView.mjs";import"../screens/LandingScreen/WalletButton.mjs";import"../components/external-wallets/InjectedWalletIcon.mjs";import"../components/ui/chips/Chip.mjs";import"../components/ui/animation/LoadingSkeleton.mjs";import"./mobile-wallets.mjs";import"../svg/backpack.mjs";import"../svg/okx-wallet.mjs";import"../svg/phantom.mjs";import"../svg/solflare.mjs";import"../types.mjs";import"../lib/external-wallets/displayHelpers.mjs";import"../svg/brave-browser-icon.mjs";import"../svg/bybit.mjs";import"../svg/cryptocom.mjs";import"../svg/metamask.mjs";import"../svg/rabby.mjs";import"../svg/rainbow.mjs";import"../svg/safe.mjs";import"../svg/uniswap.mjs";import"../svg/universal-profile.mjs";import"../svg/wallet-connect.mjs";import"../svg/zerion.mjs";import"../lib/isEmbeddedWebview.mjs";import"../recent-login/context.mjs";import"../screens/ConnectOnlyLandingScreen.mjs";import"../screens/ConnectOnlyStatusScreen.mjs";import"../svg/browser-extension-wallet-icon.mjs";import"../screens/ConnectionStatusScreen.mjs";import"./userAlreadyHasConnectedCoinbaseWallet.mjs";import"./walletconnect-v2.mjs";import"@walletconnect/ethereum-provider";import"../hook-utils/useInterval.mjs";import"../lib/useHasTabbedAway.mjs";import"../screens/CrossAppAuthScreen.mjs";import"../components/ProviderAppLogo.mjs";import"../hooks/useLogout.mjs";import"../screens/DelegatedActionsConsentScreen.mjs";import"@heroicons/react/24/outline/CheckCircleIcon";import"@heroicons/react/24/outline/CloudArrowUpIcon";import"../components/ui/wallet/WalletInfoCard.mjs";import"../components/ui/layout/Column.mjs";import"../components/ui/typography/ErrorMessage.mjs";import"../components/ui/typography/LabelXs.mjs";import"../components/ui/wallet/shared.mjs";import"../screens/DelegatedActionsRevokeScreen.mjs";import"@heroicons/react/24/outline/NoSymbolIcon";import"../screens/EmbeddedWalletConnectingScreen.mjs";import"../components/primitives/LoadingSpinner/index.mjs";import"../embedded-wallets/errors.mjs";import"../embedded-wallets/types.mjs";import"../lib/embeddedWalletRecovery.mjs";import"../lib/pkce.mjs";import"../screens/EmbeddedWalletCreatedScreen.mjs";import"../screens/EmbeddedWalletKeyExportScreen.mjs";import"../components/ui/banners/WarningBanner.mjs";import"../components/ui/typography/Subtitle.mjs";import"../components/ui/typography/Title.mjs";import"../screens/EmbeddedWalletOnAccountCreateScreen.mjs";import"../hooks/useEmbeddedWalletCreate.mjs";import"../screens/EmbeddedWalletPasswordUpdateScreen.mjs";import"../password.mjs";import"fast-password-entropy";import"secure-password-utilities";import"secure-password-utilities/wordlists";import"../components/embedded-wallets/SetWalletPasswordForm/SetWalletPasswordForm.mjs";import"../components/embedded-wallets/SetWalletPasswordForm/ConfimWalletPasswordForm.mjs";import"../components/embedded-wallets/SetWalletPasswordForm/shared.mjs";import"@heroicons/react/24/outline/ArrowPathIcon";import"@heroicons/react/24/outline/EyeIcon";import"@heroicons/react/24/outline/EyeSlashIcon";import"../components/embedded-wallets/SetWalletPasswordForm/ConfimWalletPasswordSaved.mjs";import"../components/Checkbox.mjs";import"../components/embedded-wallets/SetWalletPasswordForm/CreateWalletPassword.mjs";import"@heroicons/react/24/outline/KeyIcon";import"../components/embedded-wallets/SetWalletPasswordForm/SaveWalletPassword.mjs";import"@heroicons/react/24/outline/ArrowDownTrayIcon";import"@heroicons/react/24/outline/ClipboardDocumentCheckIcon";import"@heroicons/react/24/outline/DocumentDuplicateIcon";import"../components/embedded-wallets/SetWalletPasswordForm/SetWalletPasswordComplete.mjs";import"../components/embedded-wallets/SetWalletPasswordForm/setWalletPassword.hooks.mjs";import"../screens/EmbeddedWalletPasswordUpdateSplashScreen.mjs";import"@heroicons/react/24/outline/UserCircleIcon";import"@heroicons/react/24/solid/LockClosedIcon";import"../screens/ErrorScreen.mjs";import"../screens/FarcasterConnectStatusScreen.mjs";import"../components/CopyToClipboard.mjs";import"../svg/checkmark.mjs";import"../svg/copy.mjs";import"../components/OpenLink.mjs";import"../components/QrCode.mjs";import"qrcode";import"../svg/black-rounded-square.mjs";import"../svg/farcaster.mjs";import"../screens/FarcasterSignerStatusScreen.mjs";import"../screens/Funding/AwaitingEvmToSolBridgingScreen.mjs";import"../components/embedded-wallets/FundWalletMethodHeader.mjs";import"../components/primitives/NeutralSpinner/index.mjs";import"../hooks/useGetTokenPrice.mjs";import"../hooks/useGetSolPrice.mjs";import"../hooks/useWallets.mjs";import"../lib/funding/analytics.mjs";import"../lib/funding/reservoir.mjs";import"../lib/solana/transaction.mjs";import"../utils/buffer/readBigInt64LE.mjs";import"../lib/attempt.mjs";import"../lib/wallets/actions/getBalanceForChains.mjs";import"../plugins/context/PrivyPluginContext.mjs";import"../plugins/solana-funding/id.mjs";import"../screens/Funding/BridgeNetworkSelectionView.mjs";import"../components/ui/layout/Row.mjs";import"../components/ui/typography/LabelSm.mjs";import"../components/ui/wallet/NetworkBalanceCard.mjs";import"../components/ui/typography/Value.mjs";import"../components/ui/wallet/NetworkIcon.mjs";import"@heroicons/react/24/outline/GlobeAltIcon";import"../components/ui/icons/Arbitum.mjs";import"../components/ui/icons/Avalanche.mjs";import"../components/ui/icons/Base.mjs";import"../components/ui/icons/Celo.mjs";import"../components/ui/icons/Linea.mjs";import"../components/ui/icons/Mainnnet.mjs";import"../components/ui/icons/Optimism.mjs";import"../components/ui/icons/Polygon.mjs";import"../components/ui/icons/Solana.mjs";import"../components/ui/icons/Zora.mjs";import"../components/ui/wallet/NetworkSelectorPanel.mjs";import"@headlessui/react";import"@heroicons/react/24/outline/ChevronDownIcon";import"../lib/ethers.mjs";import"../screens/Funding/styles.mjs";import"../screens/LinkPasskeyScreen.mjs";import"@heroicons/react/24/outline/ClockIcon";import"@heroicons/react/24/outline/TrashIcon";import"@heroicons/react/24/solid/CheckBadgeIcon";import"../svg/face-id.mjs";import"../svg/fingerprint.mjs";import"../screens/Funding/TransferOrBridgeLoadingScreen.mjs";import"../screens/Funding/AwaitingExternalSolanaTransferScreen.mjs";import"../hooks/solana/useSolanaWallets.mjs";import"../screens/Funding/AwaitingExternalTransferScreen.mjs";import"../lib/erc20/actions/abis/transfer.mjs";import"../lib/erc20/formatErc20TokenAmount.mjs";import"../lib/wallets/actions/getErc20Balance.mjs";import"../screens/Funding/AwaitingSolToEvmBridgingScreen.mjs";import"../screens/Funding/CoinbaseOnrampStatusScreen.mjs";import"@heroicons/react/24/solid/ArrowsRightLeftIcon";import"../screens/Funding/FundingEditAmountScreen.mjs";import"../screens/Funding/FundingMethodSelectionScreen.mjs";import"@heroicons/react/24/outline/CreditCardIcon";import"@heroicons/react/24/outline/QrCodeIcon";import"../components/ui/banners/ErrorBanner.mjs";import"../components/ui/banners/InfoBanner.mjs";import"@heroicons/react/24/outline/InformationCircleIcon";import"../components/ui/icons/ApplePay.mjs";import"../components/ui/icons/GooglePay.mjs";import"../hook-utils/useAsyncValue.mjs";import"../icons/WalletCards.mjs";import"../lib/erc20/actions/getErc20TokenInfo.mjs";import"../lib/funding/prepareFundingMethods.mjs";import"../lib/funding/coinbase/triggerCoinbaseFlow.mjs";import"../lib/popup/triggerPopup.mjs";import"../lib/funding/coinbase/toCoinbaseBlockchainFromChainId.mjs";import"../lib/funding/moonpay/triggerMoonpayFlow.mjs";import"../lib/funding/moonpay/index.mjs";import"../payment-request/isPaymentRequestAvailable.mjs";import"../screens/Funding/ManualTransferScreen.mjs";import"../hooks/useWalletBalance.mjs";import"../screens/Funding/MoonpayStatusScreen.mjs";import"../svg/moonpay.mjs";import"../screens/Funding/TransferFromWalletScreen.mjs";import"../screens/LandingScreen/WalletOverflowButton.mjs";import"@heroicons/react/24/outline/ChevronRightIcon";import"../screens/InAppBrowserLoginNotPossible.mjs";import"../screens/InstallWalletScreen.mjs";import"../components/TodoList.mjs";import"../svg/check-badge.mjs";import"../screens/LandingScreen/ConnectOrCreateScreen.mjs";import"../screens/LandingScreen/CustomLandingScreenView.mjs";import"../lib/toDisplayFromAccountType.mjs";import"../screens/LandingScreen/AppLogoHeader.mjs";import"../components/AppLogo.mjs";import"../screens/LandingScreen/CrossAppButton.mjs";import"../screens/LandingScreen/EmailButton.mjs";import"../components/ConnectEmailForm.mjs";import"../components/ui/forms/EmailInputForm.mjs";import"../screens/LandingScreen/FarcasterButton.mjs";import"../screens/LandingScreen/LandingScreenView.mjs";import"../svg/email-or-phone.mjs";import"../screens/LandingScreen/PasskeyLink.mjs";import"@heroicons/react/24/outline/FingerPrintIcon";import"../screens/LandingScreen/SmsButton.mjs";import"../components/ConnectPhoneForm.mjs";import"../components/PhoneCountryDropdown.mjs";import"../screens/LandingScreen/SocialButton.mjs";import"../svg/apple.mjs";import"../svg/discord.mjs";import"../svg/github.mjs";import"../svg/google.mjs";import"../svg/instagram.mjs";import"../svg/linkedin.mjs";import"../svg/spotify.mjs";import"../svg/tiktok.mjs";import"../svg/twitter.mjs";import"../screens/LandingScreen/TelegramButton.mjs";import"../svg/telegram.mjs";import"../screens/LandingScreen/Web2OverflowButton.mjs";import"../screens/LandingScreen/LandingScreen.mjs";import"../screens/LinkEmailScreen.mjs";import"../screens/LinkPhoneScreen.mjs";import"../screens/LinkWalletScreen.mjs";import"../screens/LoginFailedScreen.mjs";import"../svg/error-circle.mjs";import"../screens/MfaScreens/MfaEnrollmentFlowScreen.mjs";import"@heroicons/react/24/outline/ShieldCheckIcon";import"@heroicons/react/24/solid/IdentificationIcon";import"../hooks/useMfa.mjs";import"../hooks/useMfaEnrollment.mjs";import"../svg/mfa-shield.mjs";import"../screens/MfaScreens/EnrollLandingScreen.mjs";import"@heroicons/react/24/outline/DevicePhoneMobileIcon";import"@heroicons/react/24/outline/MinusCircleIcon";import"../screens/MfaScreens/EnrollPasskey.mjs";import"@heroicons/react/24/outline/ArrowRightEndOnRectangleIcon";import"../screens/MfaScreens/EnrollSms.mjs";import"../components/PinInput.mjs";import"../screens/MfaScreens/EnrollTotp.mjs";import"../svg/qr-codes.mjs";import"@heroicons/react/24/solid/ShieldCheckIcon";import"../screens/MfaScreens/MfaVerifyFlowScreen.mjs";import"../components/embedded-wallets/TransactionDetailsWrapper.mjs";import"../lib/viem/prepareTransactionRequest.mjs";import"../components/embedded-wallets/TransactionDetails.mjs";import"../components/embedded-wallets/DisplayInfoItem.mjs";import"../components/embedded-wallets/PriceDisplay.mjs";import"../components/embedded-wallets/TransactionTotal.mjs";import"../components/primitives/Accordion/index.mjs";import"../components/primitives/Accordion/AccordionContext.mjs";import"../components/embedded-wallets/WalletLink.mjs";import"../screens/MfaScreens/VerifyWithPasskey.mjs";import"@heroicons/react/24/outline/CalendarIcon";import"../screens/OAuthStatusScreen.mjs";import"../auth-flows/oauth/getDisplayForProvider.mjs";import"../svg/globe.mjs";import"../auth-flows/oauth/getOAuthErrorMessage.mjs";import"../auth-flows/oauth/stripUrlOAuthParamsAndRemoveStateCode.mjs";import"../screens/PasskeySelectSignupOrLogin.mjs";import"../screens/PasskeyStatusScreen.mjs";import"../screens/Recovery/PasswordRecoveryScreen.mjs";import"../screens/Recovery/RecoveryOAuthStatusScreen.mjs";import"../svg/apple-icloud.mjs";import"../svg/google-drive.mjs";import"../screens/Recovery/styles.mjs";import"../screens/Recovery/RecoveryPasswordCreateScreen.mjs";import"../screens/Recovery/RecoverySelectionScreen.mjs";import"@heroicons/react/24/outline/LockClosedIcon";import"@heroicons/react/24/outline/PencilSquareIcon";import"../screens/Recovery/SetAutomaticRecoveryScreen.mjs";import"../components/ui/icons/WithCircleBorder.mjs";import"../screens/SendSolanaTransactionScreen/SendSolanaTransactionScreen.mjs";import"../embedded-wallets/solana/transaction.mjs";import"../screens/SendTransactionScreen/SendTransactionScreenView.mjs";import"@heroicons/react/24/outline";import"../components/primitives/InteractiveLabel.mjs";import"../screens/SendTransactionScreen/TokenDescription.mjs";import"../screens/SendTransactionScreen/TransactionDetail.mjs";import"../screens/SendTransactionScreen/TransactionValidation.mjs";import"../components/Pill.mjs";import"../screens/SendTransactionScreen/useTransactionDetails.mjs";import"../screens/SendTransactionScreen/TransactionErrorView.mjs";import"@heroicons/react/24/outline/ClipboardDocumentIcon";import"../screens/SendSolanaTransactionScreen/SolanaTransactionReceiptView.mjs";import"../components/embedded-wallets/SolanaTransactionDetails.mjs";import"../screens/SendTransactionScreen/SendTransactionScreen.mjs";import"../embedded-wallets/rpc/index.mjs";import"../screens/SendTransactionScreen/ScanDetails.mjs";import"../components/primitives/JsonTree.mjs";import"../screens/SendTransactionScreen/TransactionReceiptView.mjs";import"../screens/SendTransactionScreen/getStaticTransactionMetadata.mjs";import"../lib/deployAccount/actions/abis/deployAccount.mjs";import"../lib/erc20/actions/abis/approve.mjs";import"../lib/erc721/actions/abis/mint.mjs";import"../lib/erc721/actions/abis/safeTransferFrom.mjs";import"../lib/erc721/actions/abis/setApprovalForAll.mjs";import"../lib/erc721/actions/abis/transferFrom.mjs";import"../lib/erc1155/actions/abis/safeBatchTransferFrom.mjs";import"../lib/erc1155/actions/abis/safeTransferFrom.mjs";import"../screens/SendTransactionScreen/lib.mjs";import"../screens/SendTransactionScreen/usePrepareTransaction.mjs";import"../screens/SignRequestScreen.mjs";import"../components/embedded-wallets/StyledLogo.mjs";import"../screens/TelegramAuthScreen.mjs";import"../screens/UpdateEmailScreen.mjs";import"../components/UpdateEmailForm.mjs";import"../screens/UpdatePhoneScreen.mjs";import"../screens/UserLimitReachedScreen.mjs";import"../svg/alert-circle.mjs";import"../screens/WalletInterstitialScreen.mjs";import"../styles.mjs";import"../cssNormalize.mjs";import"../components/Dialog.mjs";import"../components/TelegramLoginButton.mjs";import"./solana/index.mjs";import"./stored-connection.mjs";import"../embedded-wallets/EmbeddedWalletIframe.mjs";import"../embedded-wallets/eventCallbacksQueue.mjs";import"../embedded-wallets/invokeWithMfa.mjs";import"../embedded-wallets/delegated-actions.mjs";import"../lib/caip2.mjs";import"../lib/cross-app/index.mjs";import"../lib/cross-app/authFlow.mjs";import"../auth-flows/cross-app.mjs";import"../lib/cross-app/popupCrossAppAuthFlow.mjs";import"../lib/cross-app/sendCrossAppRequest.mjs";import"../lib/funding/index.mjs";import"../lib/funding/prepareFundingModalData.mjs";import"../lib/funding/filterSupportedOptions.mjs";import"../lib/funding/usdc.mjs";import"../lib/funding/isFundingEnabled.mjs";import"../lib/popupOAuthFlow.mjs";import"../passkeys/transformResponseToSnakeCase.mjs";import"../auth-flows/oauth/detectCompletingOAuthFlow.mjs";import"../auth-flows/oauth/getIsHeadlessOAuthFlowInProgress.mjs";import"../auth-flows/oauth/OAuthFlow.mjs";import"./ethereum/EthereumNullConnector.mjs";import"./injected.mjs";import"./metamask.mjs";import"./solana/SolanaNullConnector.mjs";import"../http.mjs";import"../lib/smart-wallet-helpers.mjs";import"../passkeys/transformOptionsToCamelCase.mjs";import"../session.mjs";import"js-cookie";import"../auth-flows/authFlowToAuthenticateMethod.mjs";import"../cookies.mjs";import"../hooks/useIdentityToken.mjs";import"zustand";
|