@privy-io/react-auth 2.0.9 → 2.1.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.
Files changed (167) hide show
  1. package/dist/cjs/client.js +1 -1
  2. package/dist/cjs/components/LoginModal.js +1 -1
  3. package/dist/cjs/components/Pill.js +1 -0
  4. package/dist/cjs/components/QrCode.js +1 -1
  5. package/dist/cjs/components/embedded-wallets/SolanaTransactionDetails.js +1 -1
  6. package/dist/cjs/components/primitives/InteractiveLabel.js +1 -0
  7. package/dist/cjs/components/primitives/JsonTree.js +1 -0
  8. package/dist/cjs/configuration/wallets.js +1 -1
  9. package/dist/cjs/connectors/embeddedProvider.js +1 -1
  10. package/dist/cjs/connectors/ethereum/EthereumNullConnector.js +1 -1
  11. package/dist/cjs/connectors/ethereum/index.js +1 -1
  12. package/dist/cjs/connectors/index.js +1 -1
  13. package/dist/cjs/connectors/is-wallet-installed.js +1 -1
  14. package/dist/cjs/connectors/mobile-wallets.js +1 -0
  15. package/dist/cjs/connectors/solana/SolanaNullConnector.js +1 -1
  16. package/dist/cjs/connectors/solana/index.js +1 -1
  17. package/dist/cjs/connectors/solana/toSolanaWalletConnectors.js +1 -1
  18. package/dist/cjs/connectors/stored-connection.js +1 -0
  19. package/dist/cjs/constants.js +1 -1
  20. package/dist/cjs/embedded-wallets/delegated-actions.js +1 -1
  21. package/dist/cjs/embedded-wallets/solana/provider.js +1 -1
  22. package/dist/cjs/hooks/privy-provider.js +1 -1
  23. package/dist/cjs/hooks/useFormattedBalances.js +1 -1
  24. package/dist/cjs/index.js +1 -1
  25. package/dist/cjs/lib/ethers.js +1 -1
  26. package/dist/cjs/lib/external-wallets/displayHelpers.js +1 -1
  27. package/dist/cjs/paths.js +1 -1
  28. package/dist/cjs/privy-components/wallets-pill/ActiveWalletCard.js +1 -1
  29. package/dist/cjs/privy-components/wallets-pill/ConnectWalletView.js +1 -1
  30. package/dist/cjs/privy-components/wallets-pill/SelectActiveWalletView.js +1 -1
  31. package/dist/cjs/privy-components/wallets-pill/WalletCardView.js +1 -1
  32. package/dist/cjs/privy-components/wallets-pill/WalletsDialog.js +1 -1
  33. package/dist/cjs/privy-provider-Cq1Y-Omj.js +3 -0
  34. package/dist/cjs/screens/ConnectOnlyAuthenticatedScreen.js +1 -1
  35. package/dist/cjs/screens/ConnectOnlyLandingScreen.js +1 -1
  36. package/dist/cjs/screens/ConnectOnlyStatusScreen.js +1 -1
  37. package/dist/cjs/screens/ConnectionStatusScreen.js +2 -2
  38. package/dist/cjs/screens/Funding/AwaitingEvmToSolBridgingScreen.js +1 -1
  39. package/dist/cjs/screens/Funding/AwaitingExternalSolanaTransferScreen.js +2 -2
  40. package/dist/cjs/screens/Funding/AwaitingExternalTransferScreen.js +1 -1
  41. package/dist/cjs/screens/Funding/AwaitingSolToEvmBridgingScreen.js +1 -1
  42. package/dist/cjs/screens/Funding/FundingMethodSelectionScreen.js +1 -1
  43. package/dist/cjs/screens/Funding/TransferFromWalletScreen.js +1 -1
  44. package/dist/cjs/screens/Funding/TransferOrBridgeLoadingScreen.js +1 -1
  45. package/dist/cjs/screens/InstallWalletScreen.js +1 -0
  46. package/dist/cjs/screens/LandingScreen/ConnectOrCreateScreen.js +1 -1
  47. package/dist/cjs/screens/LandingScreen/CustomLandingScreenView.js +1 -1
  48. package/dist/cjs/screens/LandingScreen/LandingScreen.js +1 -1
  49. package/dist/cjs/screens/LandingScreen/LandingScreenView.js +1 -1
  50. package/dist/cjs/screens/LandingScreen/WalletButton.js +1 -1
  51. package/dist/cjs/screens/LandingScreen/WalletButtonList.js +1 -1
  52. package/dist/cjs/screens/LinkWalletScreen.js +1 -1
  53. package/dist/cjs/screens/SendSolanaTransactionScreen/SendSolanaTransactionScreen.js +1 -1
  54. package/dist/cjs/screens/SendSolanaTransactionScreen/SolanaTransactionReceiptView.js +1 -1
  55. package/dist/cjs/screens/SendTransactionScreen/ScanDetails.js +1 -0
  56. package/dist/cjs/screens/SendTransactionScreen/SendTransactionScreen.js +1 -1
  57. package/dist/cjs/screens/SendTransactionScreen/SendTransactionScreenView.js +1 -1
  58. package/dist/cjs/screens/SendTransactionScreen/TokenDescription.js +1 -0
  59. package/dist/cjs/screens/SendTransactionScreen/TransactionValidation.js +1 -0
  60. package/dist/cjs/screens/SendTransactionScreen/index.js +1 -1
  61. package/dist/cjs/screens/SendTransactionScreen/lib.js +1 -0
  62. package/dist/cjs/screens/SignRequestScreen.js +1 -1
  63. package/dist/cjs/screens/WalletInterstitialScreen.js +1 -0
  64. package/dist/cjs/screens/index.js +1 -1
  65. package/dist/cjs/solana.js +1 -1
  66. package/dist/cjs/svg/backpack.js +1 -0
  67. package/dist/cjs/svg/okx-wallet.js +1 -0
  68. package/dist/cjs/svg/solflare.js +1 -0
  69. package/dist/cjs/types.js +1 -1
  70. package/dist/cjs/ui.js +1 -1
  71. package/dist/dts/farcaster.d.mts +1 -1
  72. package/dist/dts/farcaster.d.ts +1 -1
  73. package/dist/dts/index.d.mts +29 -8
  74. package/dist/dts/index.d.ts +29 -8
  75. package/dist/dts/smart-wallets.d.mts +1 -1
  76. package/dist/dts/smart-wallets.d.ts +1 -1
  77. package/dist/dts/solana.d.mts +4 -4
  78. package/dist/dts/solana.d.ts +4 -4
  79. package/dist/dts/{types-B-zTuIEL.d.mts → types-Do6eK2EI.d.mts} +7 -6
  80. package/dist/dts/{types-B-zTuIEL.d.ts → types-Do6eK2EI.d.ts} +7 -6
  81. package/dist/dts/ui.d.mts +1 -1
  82. package/dist/dts/ui.d.ts +1 -1
  83. package/dist/dts/{useSolanaWallets-DdM-QdoK.d.mts → useSolanaWallets-CtSHyXUi.d.mts} +1 -1
  84. package/dist/dts/{useSolanaWallets-DdM-QdoK.d.ts → useSolanaWallets-CtSHyXUi.d.ts} +1 -1
  85. package/dist/esm/client.mjs +1 -1
  86. package/dist/esm/components/LoginModal.mjs +1 -1
  87. package/dist/esm/components/Pill.mjs +1 -0
  88. package/dist/esm/components/QrCode.mjs +2 -2
  89. package/dist/esm/components/embedded-wallets/SolanaTransactionDetails.mjs +1 -1
  90. package/dist/esm/components/primitives/InteractiveLabel.mjs +1 -0
  91. package/dist/esm/components/primitives/JsonTree.mjs +1 -0
  92. package/dist/esm/configuration/wallets.mjs +1 -1
  93. package/dist/esm/connectors/embeddedProvider.mjs +1 -1
  94. package/dist/esm/connectors/ethereum/EthereumNullConnector.mjs +1 -1
  95. package/dist/esm/connectors/ethereum/index.mjs +1 -1
  96. package/dist/esm/connectors/index.mjs +1 -1
  97. package/dist/esm/connectors/is-wallet-installed.mjs +1 -1
  98. package/dist/esm/connectors/mobile-wallets.mjs +1 -0
  99. package/dist/esm/connectors/solana/SolanaNullConnector.mjs +1 -1
  100. package/dist/esm/connectors/solana/index.mjs +1 -1
  101. package/dist/esm/connectors/solana/toSolanaWalletConnectors.mjs +1 -1
  102. package/dist/esm/connectors/stored-connection.mjs +1 -0
  103. package/dist/esm/constants.mjs +1 -1
  104. package/dist/esm/embedded-wallets/delegated-actions.mjs +1 -1
  105. package/dist/esm/embedded-wallets/solana/provider.mjs +1 -1
  106. package/dist/esm/hooks/privy-provider.mjs +1 -1
  107. package/dist/esm/hooks/useFormattedBalances.mjs +1 -1
  108. package/dist/esm/index.mjs +1 -1
  109. package/dist/esm/lib/ethers.mjs +1 -1
  110. package/dist/esm/lib/external-wallets/displayHelpers.mjs +1 -1
  111. package/dist/esm/paths.mjs +1 -1
  112. package/dist/esm/privy-components/wallets-pill/ActiveWalletCard.mjs +1 -1
  113. package/dist/esm/privy-components/wallets-pill/ConnectWalletView.mjs +1 -1
  114. package/dist/esm/privy-components/wallets-pill/SelectActiveWalletView.mjs +1 -1
  115. package/dist/esm/privy-components/wallets-pill/WalletCardView.mjs +1 -1
  116. package/dist/esm/privy-components/wallets-pill/WalletsDialog.mjs +1 -1
  117. package/dist/esm/privy-provider-C-cTZKVr.mjs +3 -0
  118. package/dist/esm/screens/ConnectOnlyAuthenticatedScreen.mjs +1 -1
  119. package/dist/esm/screens/ConnectOnlyLandingScreen.mjs +1 -1
  120. package/dist/esm/screens/ConnectOnlyStatusScreen.mjs +1 -1
  121. package/dist/esm/screens/ConnectionStatusScreen.mjs +1 -1
  122. package/dist/esm/screens/Funding/AwaitingEvmToSolBridgingScreen.mjs +1 -1
  123. package/dist/esm/screens/Funding/AwaitingExternalSolanaTransferScreen.mjs +1 -1
  124. package/dist/esm/screens/Funding/AwaitingExternalTransferScreen.mjs +1 -1
  125. package/dist/esm/screens/Funding/AwaitingSolToEvmBridgingScreen.mjs +1 -1
  126. package/dist/esm/screens/Funding/FundingMethodSelectionScreen.mjs +1 -1
  127. package/dist/esm/screens/Funding/TransferFromWalletScreen.mjs +1 -1
  128. package/dist/esm/screens/Funding/TransferOrBridgeLoadingScreen.mjs +1 -1
  129. package/dist/esm/screens/InstallWalletScreen.mjs +1 -0
  130. package/dist/esm/screens/LandingScreen/ConnectOrCreateScreen.mjs +1 -1
  131. package/dist/esm/screens/LandingScreen/CustomLandingScreenView.mjs +1 -1
  132. package/dist/esm/screens/LandingScreen/LandingScreen.mjs +1 -1
  133. package/dist/esm/screens/LandingScreen/LandingScreenView.mjs +1 -1
  134. package/dist/esm/screens/LandingScreen/WalletButton.mjs +1 -1
  135. package/dist/esm/screens/LandingScreen/WalletButtonList.mjs +1 -1
  136. package/dist/esm/screens/LinkWalletScreen.mjs +1 -1
  137. package/dist/esm/screens/SendSolanaTransactionScreen/SendSolanaTransactionScreen.mjs +1 -1
  138. package/dist/esm/screens/SendSolanaTransactionScreen/SolanaTransactionReceiptView.mjs +1 -1
  139. package/dist/esm/screens/SendTransactionScreen/ScanDetails.mjs +1 -0
  140. package/dist/esm/screens/SendTransactionScreen/SendTransactionScreen.mjs +1 -1
  141. package/dist/esm/screens/SendTransactionScreen/SendTransactionScreenView.mjs +1 -1
  142. package/dist/esm/screens/SendTransactionScreen/TokenDescription.mjs +1 -0
  143. package/dist/esm/screens/SendTransactionScreen/TransactionValidation.mjs +1 -0
  144. package/dist/esm/screens/SendTransactionScreen/index.mjs +1 -1
  145. package/dist/esm/screens/SendTransactionScreen/lib.mjs +1 -0
  146. package/dist/esm/screens/SignRequestScreen.mjs +1 -1
  147. package/dist/esm/screens/WalletInterstitialScreen.mjs +1 -0
  148. package/dist/esm/screens/index.mjs +1 -1
  149. package/dist/esm/solana.mjs +1 -1
  150. package/dist/esm/svg/backpack.mjs +1 -0
  151. package/dist/esm/svg/okx-wallet.mjs +1 -0
  152. package/dist/esm/svg/solflare.mjs +1 -0
  153. package/dist/esm/types.mjs +1 -1
  154. package/dist/esm/ui.mjs +1 -1
  155. package/package.json +2 -2
  156. package/dist/cjs/connectors/phantom-redirect.js +0 -1
  157. package/dist/cjs/connectors/phantom-solana.js +0 -1
  158. package/dist/cjs/connectors/phantom.js +0 -1
  159. package/dist/cjs/privy-provider-B8LaAjk_.js +0 -3
  160. package/dist/cjs/screens/InstallPhantomScreen.js +0 -1
  161. package/dist/cjs/screens/PhantomInterstitialScreen.js +0 -1
  162. package/dist/esm/connectors/phantom-redirect.mjs +0 -1
  163. package/dist/esm/connectors/phantom-solana.mjs +0 -1
  164. package/dist/esm/connectors/phantom.mjs +0 -1
  165. package/dist/esm/privy-provider-CuvYT8ML.mjs +0 -3
  166. package/dist/esm/screens/InstallPhantomScreen.mjs +0 -1
  167. package/dist/esm/screens/PhantomInterstitialScreen.mjs +0 -1
@@ -7,7 +7,7 @@ import { SmartAccount, SendUserOperationParameters } from 'viem/account-abstract
7
7
  import * as viem from 'viem';
8
8
  import { SendTransactionParameters, Chain, Hash, Hex, TypedData, SignTypedDataParameters, EIP1193Provider, PublicClient, Client } from 'viem';
9
9
  import { SmartWalletType } from '@privy-io/js-sdk-core';
10
- import { h as SendTransactionModalUIOptions, i as SignMessageModalUIOptions } from './types-B-zTuIEL.js';
10
+ import { h as SendTransactionModalUIOptions, i as SignMessageModalUIOptions } from './types-Do6eK2EI.js';
11
11
  import '@solana/wallet-adapter-base';
12
12
  import '@privy-io/public-api';
13
13
  import 'eventemitter3';
@@ -1,7 +1,7 @@
1
- import { W as Wallet, j as SolanaFundingConfig, k as SupportedSolanaTransaction, h as SendTransactionModalUIOptions, S as SolanaTransactionReceipt } from './types-B-zTuIEL.js';
2
- export { f as ConnectedSolanaWallet, l as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-B-zTuIEL.js';
3
- import { P as PrivyEvents } from './useSolanaWallets-DdM-QdoK.js';
4
- export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-DdM-QdoK.js';
1
+ import { W as Wallet, j as SolanaFundingConfig, k as SupportedSolanaTransaction, h as SendTransactionModalUIOptions, S as SolanaTransactionReceipt } from './types-Do6eK2EI.js';
2
+ export { f as ConnectedSolanaWallet, l as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-Do6eK2EI.js';
3
+ import { P as PrivyEvents } from './useSolanaWallets-CtSHyXUi.js';
4
+ export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-CtSHyXUi.js';
5
5
  import { SendTransactionOptions } from '@solana/wallet-adapter-base';
6
6
  import { Connection } from '@solana/web3.js';
7
7
  import 'react';
@@ -1,7 +1,7 @@
1
- import { W as Wallet, j as SolanaFundingConfig, k as SupportedSolanaTransaction, h as SendTransactionModalUIOptions, S as SolanaTransactionReceipt } from './types-B-zTuIEL.js';
2
- export { f as ConnectedSolanaWallet, l as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-B-zTuIEL.js';
3
- import { P as PrivyEvents } from './useSolanaWallets-DdM-QdoK.js';
4
- export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-DdM-QdoK.js';
1
+ import { W as Wallet, j as SolanaFundingConfig, k as SupportedSolanaTransaction, h as SendTransactionModalUIOptions, S as SolanaTransactionReceipt } from './types-Do6eK2EI.js';
2
+ export { f as ConnectedSolanaWallet, l as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-Do6eK2EI.js';
3
+ import { P as PrivyEvents } from './useSolanaWallets-CtSHyXUi.js';
4
+ export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-CtSHyXUi.js';
5
5
  import { SendTransactionOptions } from '@solana/wallet-adapter-base';
6
6
  import { Connection } from '@solana/web3.js';
7
7
  import 'react';
@@ -284,11 +284,11 @@ interface RequestArguments {
284
284
  */
285
285
  declare class SolanaWalletConnector extends WalletConnector {
286
286
  chainType: "solana";
287
- connectorType: "solana_adapter";
287
+ connectorType: string;
288
288
  wallets: BaseConnectedSolanaWallet[];
289
289
  private adapter;
290
- private shouldAutoConnect;
291
- constructor(adapter: Adapter, shouldAutoConnect: boolean);
290
+ private autoConnectEnabled;
291
+ constructor(adapter: Adapter, autoConnectEnabled: boolean);
292
292
  get isInstalled(): boolean;
293
293
  /**
294
294
  * Builds a connected wallet object to be exposed to the developer. This object
@@ -355,6 +355,7 @@ declare class SolanaWalletConnector extends WalletConnector {
355
355
  * @hidden
356
356
  */
357
357
  unsubscribeListeners(): void;
358
+ private shouldAttemptAutoConnect;
358
359
  }
359
360
 
360
361
  interface SolanaWalletConnectorsOptions {
@@ -505,7 +506,7 @@ type CoinbaseWalletClientType = (typeof COINBASE_WALLET_CLIENT_TYPES)[number];
505
506
  type WalletConnectWalletClientType = (typeof WALLET_CONNECT_WALLET_CLIENT_TYPES)[number];
506
507
  declare const UNKNOWN_WALLET_CLIENT_TYPES: readonly ["unknown"];
507
508
  type UnknownWalletClientType = (typeof UNKNOWN_WALLET_CLIENT_TYPES)[number];
508
- declare const SOLANA_WALLET_CLIENT_TYPES: readonly ["phantom", "solflare", "glow"];
509
+ declare const SOLANA_WALLET_CLIENT_TYPES: readonly ["phantom", "solflare", "glow", "backpack"];
509
510
  type SolanaWalletClientType = (typeof SOLANA_WALLET_CLIENT_TYPES)[number];
510
511
  type WalletClientType = InjectedWalletClientType | CoinbaseWalletClientType | WalletConnectWalletClientType | EmbeddedWalletClientType | UnknownWalletClientType | SolanaWalletClientType;
511
512
  declare const SUPPORTED_CONNECTOR_TYPES: string[];
@@ -1197,7 +1198,7 @@ type PriceDisplayOptions = {
1197
1198
  };
1198
1199
  type WalletListEntry = 'metamask' | 'coinbase_wallet' | 'rainbow' | 'phantom' | 'zerion' | 'cryptocom' | 'uniswap' | 'okx_wallet' | 'universal_profile'
1199
1200
  /** @deprecated Use `detected_ethereum_wallets` or `detected_solana_wallets` instead */
1200
- | 'detected_wallets' | 'detected_solana_wallets' | 'detected_ethereum_wallets' | 'wallet_connect' | 'rabby_wallet' | 'bybit_wallet' | 'safe';
1201
+ | 'detected_wallets' | 'detected_solana_wallets' | 'detected_ethereum_wallets' | 'wallet_connect' | 'rabby_wallet' | 'bybit_wallet' | 'safe' | 'solflare' | 'backpack';
1201
1202
  type NonEmptyArray<T> = [T, ...T[]];
1202
1203
  type LoginMethodOrderOption = 'email' | 'sms' | WalletListEntry | OAuthProviderType | `privy:${string}` | 'farcaster' | 'telegram';
1203
1204
  type ExternalWalletsConfig = {
@@ -2066,4 +2067,4 @@ type EthereumRpcResponseType = eth_signTransactionResponse | eth_populateTransac
2066
2067
  type SolanaRpcRequestType = solana_signMessage;
2067
2068
  type SolanaRpcResponseType = solana_signMessageResponse;
2068
2069
 
2069
- export { type MoonpaySignResponse as $, type ConnectedWalletMetadata as A, type BaseConnectedEthereumWallet as B, type Chain as C, type ConnectorType as D, type EthereumRpcRequestType as E, type FundingMethod as F, type WalletListEntry as G, type ExternalWalletsConfig as H, type BaseConnectedWallet as I, type ConnectWalletModalOptions as J, type LoginModalOptions as K, type LoginToFrame as L, type MfaMethod as M, type SetWalletRecoveryOptions as N, type OAuthTokens as O, PrivyErrorCode as P, type SignTypedDataParams as Q, type RuntimeLoginOverridableOptions as R, type SolanaTransactionReceipt as S, type UnsignedTransactionRequest as T, type User as U, type FundWalletConfig as V, type Wallet as W, type ConnectedWallet as X, type CrossAppProviderDetails as Y, type OAuthProviderType as Z, type MoonpaySignRequest as _, type LoginMethod as a, type SmartWalletConfig as a0, type PrivyServerConfig as a1, type SiweWalletMetadata as a2, type TelegramAuthResult as a3, type TelegramWebAppData as a4, type OAuthUserInfo as a5, type OAuthFlowState as a6, type LoginWithCode as a7, type OtpFlowState as a8, type PasskeyFlowState as a9, type LinkedAccountType as aA, type GoogleOAuthWithMetadata as aB, type TwitterOAuthWithMetadata as aC, type DiscordOAuthWithMetadata as aD, type GithubOAuthWithMetadata as aE, type TiktokOAuthWithMetadata as aF, type LinkedInOAuthWithMetadata as aG, type AppleOAuthWithMetadata as aH, type FarcasterWithMetadata as aI, type TelegramWithMetadata as aJ, type CrossAppAccountWithMetadata as aK, type PasskeyWithMetadata as aL, type Email as aM, type Phone as aN, type TransactionUIOptions as aO, type ContractUIOptions as aP, type NativeFundingConfig as aQ, type MoonpayFundingConfig as aR, type PriceDisplayOptions as aS, type Farcaster as aT, type Passkey as aU, type LoginMethodOrderOption as aV, type SiweFlowState as aa, type UnsignedTransactionRequestWithChainId as ab, type BaseConnectedWalletType as ac, type CustomAuthFlowState as ad, type TypedMessage as ae, type MessageTypes as af, type SmartWallet as ag, type MoonpayConfig as ah, type MoonpayCurrencyCode as ai, type MoonpayPaymentMethod as aj, type Quantity as ak, type TransactionLog as al, type TransactionReceipt as am, type NonEmptyArray as an, type EmailWithMetadata as ao, type PhoneWithMetadata as ap, type WalletWithMetadata as aq, type Google as ar, type Twitter as as, type Discord as at, type Github as au, type LinkedIn as av, type Apple as aw, type Tiktok as ax, type Telegram as ay, type CrossAppAccount as az, type LinkedAccountWithMetadata as b, type BaseConnectedSolanaWallet as c, type UserRecoveryMethod as d, type SolanaCluster as e, type ConnectedSolanaWallet as f, type CreateWalletOptions as g, type SendTransactionModalUIOptions as h, type SignMessageModalUIOptions as i, type SolanaFundingConfig as j, type SupportedSolanaTransaction as k, SolanaWalletConnector as l, type PrivyFarcasterSignerInitResponse as m, type MfaSubmitArgs as n, type SolanaRpcRequestType as o, type EthereumRpcResponseType as p, type SolanaRpcResponseType as q, type PrivyClientConfig as r, type RpcConfig as s, toSolanaWalletConnectors as t, type EIP1193Provider as u, type EntropyIdVerifier as v, type RequestArguments as w, WalletTimeoutError as x, WalletConnector as y, type WalletClientType as z };
2070
+ export { type MoonpaySignResponse as $, type ConnectedWalletMetadata as A, type BaseConnectedEthereumWallet as B, type Chain as C, type ConnectorType as D, type EthereumRpcRequestType as E, type FundingMethod as F, type WalletListEntry as G, type ExternalWalletsConfig as H, type BaseConnectedWallet as I, type ConnectWalletModalOptions as J, type LoginModalOptions as K, type LoginToFrame as L, type MfaMethod as M, type SetWalletRecoveryOptions as N, type OAuthTokens as O, PrivyErrorCode as P, type SignTypedDataParams as Q, type RuntimeLoginOverridableOptions as R, type SolanaTransactionReceipt as S, type UnsignedTransactionRequest as T, type User as U, type FundWalletConfig as V, type Wallet as W, type ConnectedWallet as X, type CrossAppProviderDetails as Y, type OAuthProviderType as Z, type MoonpaySignRequest as _, type LoginMethod as a, type SmartWalletConfig as a0, type PrivyServerConfig as a1, type SiweWalletMetadata as a2, type TelegramAuthResult as a3, type TelegramWebAppData as a4, type OAuthUserInfo as a5, type OAuthFlowState as a6, type LoginWithCode as a7, type OtpFlowState as a8, type PasskeyFlowState as a9, type LinkedAccountType as aA, type GoogleOAuthWithMetadata as aB, type TwitterOAuthWithMetadata as aC, type DiscordOAuthWithMetadata as aD, type GithubOAuthWithMetadata as aE, type TiktokOAuthWithMetadata as aF, type LinkedInOAuthWithMetadata as aG, type AppleOAuthWithMetadata as aH, type FarcasterWithMetadata as aI, type TelegramWithMetadata as aJ, type CrossAppAccountWithMetadata as aK, type PasskeyWithMetadata as aL, type Email as aM, type Phone as aN, type TransactionUIOptions as aO, type ContractUIOptions as aP, type NativeFundingConfig as aQ, type MoonpayFundingConfig as aR, type PriceDisplayOptions as aS, type Farcaster as aT, type Passkey as aU, type LoginMethodOrderOption as aV, type SiweFlowState as aa, type UnsignedTransactionRequestWithChainId as ab, type BaseConnectedWalletType as ac, type CustomAuthFlowState as ad, type TypedMessage as ae, type MessageTypes as af, type SmartWallet as ag, type MoonpayConfig as ah, type MoonpayCurrencyCode as ai, type MoonpayPaymentMethod as aj, type Quantity as ak, type TransactionLog as al, type TransactionReceipt as am, type NonEmptyArray as an, type EmailWithMetadata as ao, type PhoneWithMetadata as ap, type WalletWithMetadata as aq, type Google as ar, type Twitter as as, type Discord as at, type Github as au, type LinkedIn as av, type Apple as aw, type Tiktok as ax, type Telegram as ay, type CrossAppAccount as az, type LinkedAccountWithMetadata as b, type BaseConnectedSolanaWallet as c, type UserRecoveryMethod as d, type SolanaCluster as e, type ConnectedSolanaWallet as f, type CreateWalletOptions as g, type SendTransactionModalUIOptions as h, type SignMessageModalUIOptions as i, type SolanaFundingConfig as j, type SupportedSolanaTransaction as k, SolanaWalletConnector as l, type WalletClientType as m, type PrivyFarcasterSignerInitResponse as n, type MfaSubmitArgs as o, type SolanaRpcRequestType as p, type EthereumRpcResponseType as q, type SolanaRpcResponseType as r, type PrivyClientConfig as s, toSolanaWalletConnectors as t, type RpcConfig as u, type EIP1193Provider as v, type EntropyIdVerifier as w, type RequestArguments as x, WalletTimeoutError as y, WalletConnector as z };
@@ -284,11 +284,11 @@ interface RequestArguments {
284
284
  */
285
285
  declare class SolanaWalletConnector extends WalletConnector {
286
286
  chainType: "solana";
287
- connectorType: "solana_adapter";
287
+ connectorType: string;
288
288
  wallets: BaseConnectedSolanaWallet[];
289
289
  private adapter;
290
- private shouldAutoConnect;
291
- constructor(adapter: Adapter, shouldAutoConnect: boolean);
290
+ private autoConnectEnabled;
291
+ constructor(adapter: Adapter, autoConnectEnabled: boolean);
292
292
  get isInstalled(): boolean;
293
293
  /**
294
294
  * Builds a connected wallet object to be exposed to the developer. This object
@@ -355,6 +355,7 @@ declare class SolanaWalletConnector extends WalletConnector {
355
355
  * @hidden
356
356
  */
357
357
  unsubscribeListeners(): void;
358
+ private shouldAttemptAutoConnect;
358
359
  }
359
360
 
360
361
  interface SolanaWalletConnectorsOptions {
@@ -505,7 +506,7 @@ type CoinbaseWalletClientType = (typeof COINBASE_WALLET_CLIENT_TYPES)[number];
505
506
  type WalletConnectWalletClientType = (typeof WALLET_CONNECT_WALLET_CLIENT_TYPES)[number];
506
507
  declare const UNKNOWN_WALLET_CLIENT_TYPES: readonly ["unknown"];
507
508
  type UnknownWalletClientType = (typeof UNKNOWN_WALLET_CLIENT_TYPES)[number];
508
- declare const SOLANA_WALLET_CLIENT_TYPES: readonly ["phantom", "solflare", "glow"];
509
+ declare const SOLANA_WALLET_CLIENT_TYPES: readonly ["phantom", "solflare", "glow", "backpack"];
509
510
  type SolanaWalletClientType = (typeof SOLANA_WALLET_CLIENT_TYPES)[number];
510
511
  type WalletClientType = InjectedWalletClientType | CoinbaseWalletClientType | WalletConnectWalletClientType | EmbeddedWalletClientType | UnknownWalletClientType | SolanaWalletClientType;
511
512
  declare const SUPPORTED_CONNECTOR_TYPES: string[];
@@ -1197,7 +1198,7 @@ type PriceDisplayOptions = {
1197
1198
  };
1198
1199
  type WalletListEntry = 'metamask' | 'coinbase_wallet' | 'rainbow' | 'phantom' | 'zerion' | 'cryptocom' | 'uniswap' | 'okx_wallet' | 'universal_profile'
1199
1200
  /** @deprecated Use `detected_ethereum_wallets` or `detected_solana_wallets` instead */
1200
- | 'detected_wallets' | 'detected_solana_wallets' | 'detected_ethereum_wallets' | 'wallet_connect' | 'rabby_wallet' | 'bybit_wallet' | 'safe';
1201
+ | 'detected_wallets' | 'detected_solana_wallets' | 'detected_ethereum_wallets' | 'wallet_connect' | 'rabby_wallet' | 'bybit_wallet' | 'safe' | 'solflare' | 'backpack';
1201
1202
  type NonEmptyArray<T> = [T, ...T[]];
1202
1203
  type LoginMethodOrderOption = 'email' | 'sms' | WalletListEntry | OAuthProviderType | `privy:${string}` | 'farcaster' | 'telegram';
1203
1204
  type ExternalWalletsConfig = {
@@ -2066,4 +2067,4 @@ type EthereumRpcResponseType = eth_signTransactionResponse | eth_populateTransac
2066
2067
  type SolanaRpcRequestType = solana_signMessage;
2067
2068
  type SolanaRpcResponseType = solana_signMessageResponse;
2068
2069
 
2069
- export { type MoonpaySignResponse as $, type ConnectedWalletMetadata as A, type BaseConnectedEthereumWallet as B, type Chain as C, type ConnectorType as D, type EthereumRpcRequestType as E, type FundingMethod as F, type WalletListEntry as G, type ExternalWalletsConfig as H, type BaseConnectedWallet as I, type ConnectWalletModalOptions as J, type LoginModalOptions as K, type LoginToFrame as L, type MfaMethod as M, type SetWalletRecoveryOptions as N, type OAuthTokens as O, PrivyErrorCode as P, type SignTypedDataParams as Q, type RuntimeLoginOverridableOptions as R, type SolanaTransactionReceipt as S, type UnsignedTransactionRequest as T, type User as U, type FundWalletConfig as V, type Wallet as W, type ConnectedWallet as X, type CrossAppProviderDetails as Y, type OAuthProviderType as Z, type MoonpaySignRequest as _, type LoginMethod as a, type SmartWalletConfig as a0, type PrivyServerConfig as a1, type SiweWalletMetadata as a2, type TelegramAuthResult as a3, type TelegramWebAppData as a4, type OAuthUserInfo as a5, type OAuthFlowState as a6, type LoginWithCode as a7, type OtpFlowState as a8, type PasskeyFlowState as a9, type LinkedAccountType as aA, type GoogleOAuthWithMetadata as aB, type TwitterOAuthWithMetadata as aC, type DiscordOAuthWithMetadata as aD, type GithubOAuthWithMetadata as aE, type TiktokOAuthWithMetadata as aF, type LinkedInOAuthWithMetadata as aG, type AppleOAuthWithMetadata as aH, type FarcasterWithMetadata as aI, type TelegramWithMetadata as aJ, type CrossAppAccountWithMetadata as aK, type PasskeyWithMetadata as aL, type Email as aM, type Phone as aN, type TransactionUIOptions as aO, type ContractUIOptions as aP, type NativeFundingConfig as aQ, type MoonpayFundingConfig as aR, type PriceDisplayOptions as aS, type Farcaster as aT, type Passkey as aU, type LoginMethodOrderOption as aV, type SiweFlowState as aa, type UnsignedTransactionRequestWithChainId as ab, type BaseConnectedWalletType as ac, type CustomAuthFlowState as ad, type TypedMessage as ae, type MessageTypes as af, type SmartWallet as ag, type MoonpayConfig as ah, type MoonpayCurrencyCode as ai, type MoonpayPaymentMethod as aj, type Quantity as ak, type TransactionLog as al, type TransactionReceipt as am, type NonEmptyArray as an, type EmailWithMetadata as ao, type PhoneWithMetadata as ap, type WalletWithMetadata as aq, type Google as ar, type Twitter as as, type Discord as at, type Github as au, type LinkedIn as av, type Apple as aw, type Tiktok as ax, type Telegram as ay, type CrossAppAccount as az, type LinkedAccountWithMetadata as b, type BaseConnectedSolanaWallet as c, type UserRecoveryMethod as d, type SolanaCluster as e, type ConnectedSolanaWallet as f, type CreateWalletOptions as g, type SendTransactionModalUIOptions as h, type SignMessageModalUIOptions as i, type SolanaFundingConfig as j, type SupportedSolanaTransaction as k, SolanaWalletConnector as l, type PrivyFarcasterSignerInitResponse as m, type MfaSubmitArgs as n, type SolanaRpcRequestType as o, type EthereumRpcResponseType as p, type SolanaRpcResponseType as q, type PrivyClientConfig as r, type RpcConfig as s, toSolanaWalletConnectors as t, type EIP1193Provider as u, type EntropyIdVerifier as v, type RequestArguments as w, WalletTimeoutError as x, WalletConnector as y, type WalletClientType as z };
2070
+ export { type MoonpaySignResponse as $, type ConnectedWalletMetadata as A, type BaseConnectedEthereumWallet as B, type Chain as C, type ConnectorType as D, type EthereumRpcRequestType as E, type FundingMethod as F, type WalletListEntry as G, type ExternalWalletsConfig as H, type BaseConnectedWallet as I, type ConnectWalletModalOptions as J, type LoginModalOptions as K, type LoginToFrame as L, type MfaMethod as M, type SetWalletRecoveryOptions as N, type OAuthTokens as O, PrivyErrorCode as P, type SignTypedDataParams as Q, type RuntimeLoginOverridableOptions as R, type SolanaTransactionReceipt as S, type UnsignedTransactionRequest as T, type User as U, type FundWalletConfig as V, type Wallet as W, type ConnectedWallet as X, type CrossAppProviderDetails as Y, type OAuthProviderType as Z, type MoonpaySignRequest as _, type LoginMethod as a, type SmartWalletConfig as a0, type PrivyServerConfig as a1, type SiweWalletMetadata as a2, type TelegramAuthResult as a3, type TelegramWebAppData as a4, type OAuthUserInfo as a5, type OAuthFlowState as a6, type LoginWithCode as a7, type OtpFlowState as a8, type PasskeyFlowState as a9, type LinkedAccountType as aA, type GoogleOAuthWithMetadata as aB, type TwitterOAuthWithMetadata as aC, type DiscordOAuthWithMetadata as aD, type GithubOAuthWithMetadata as aE, type TiktokOAuthWithMetadata as aF, type LinkedInOAuthWithMetadata as aG, type AppleOAuthWithMetadata as aH, type FarcasterWithMetadata as aI, type TelegramWithMetadata as aJ, type CrossAppAccountWithMetadata as aK, type PasskeyWithMetadata as aL, type Email as aM, type Phone as aN, type TransactionUIOptions as aO, type ContractUIOptions as aP, type NativeFundingConfig as aQ, type MoonpayFundingConfig as aR, type PriceDisplayOptions as aS, type Farcaster as aT, type Passkey as aU, type LoginMethodOrderOption as aV, type SiweFlowState as aa, type UnsignedTransactionRequestWithChainId as ab, type BaseConnectedWalletType as ac, type CustomAuthFlowState as ad, type TypedMessage as ae, type MessageTypes as af, type SmartWallet as ag, type MoonpayConfig as ah, type MoonpayCurrencyCode as ai, type MoonpayPaymentMethod as aj, type Quantity as ak, type TransactionLog as al, type TransactionReceipt as am, type NonEmptyArray as an, type EmailWithMetadata as ao, type PhoneWithMetadata as ap, type WalletWithMetadata as aq, type Google as ar, type Twitter as as, type Discord as at, type Github as au, type LinkedIn as av, type Apple as aw, type Tiktok as ax, type Telegram as ay, type CrossAppAccount as az, type LinkedAccountWithMetadata as b, type BaseConnectedSolanaWallet as c, type UserRecoveryMethod as d, type SolanaCluster as e, type ConnectedSolanaWallet as f, type CreateWalletOptions as g, type SendTransactionModalUIOptions as h, type SignMessageModalUIOptions as i, type SolanaFundingConfig as j, type SupportedSolanaTransaction as k, SolanaWalletConnector as l, type WalletClientType as m, type PrivyFarcasterSignerInitResponse as n, type MfaSubmitArgs as o, type SolanaRpcRequestType as p, type EthereumRpcResponseType as q, type SolanaRpcResponseType as r, type PrivyClientConfig as s, toSolanaWalletConnectors as t, type RpcConfig as u, type EIP1193Provider as v, type EntropyIdVerifier as w, type RequestArguments as x, WalletTimeoutError as y, WalletConnector as z };
package/dist/dts/ui.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { R as RuntimeLoginOverridableOptions, C as Chain } from './types-B-zTuIEL.js';
2
+ import { R as RuntimeLoginOverridableOptions, C as Chain } from './types-Do6eK2EI.js';
3
3
  import { Hex } from 'viem';
4
4
  import { Cluster } from '@privy-io/js-sdk-core';
5
5
  import '@solana/wallet-adapter-base';
package/dist/dts/ui.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { R as RuntimeLoginOverridableOptions, C as Chain } from './types-B-zTuIEL.js';
2
+ import { R as RuntimeLoginOverridableOptions, C as Chain } from './types-Do6eK2EI.js';
3
3
  import { Hex } from 'viem';
4
4
  import { Cluster } from '@privy-io/js-sdk-core';
5
5
  import '@solana/wallet-adapter-base';
@@ -1,4 +1,4 @@
1
- import { P as PrivyErrorCode, U as User, a as LoginMethod, b as LinkedAccountWithMetadata, B as BaseConnectedEthereumWallet, c as BaseConnectedSolanaWallet, W as Wallet, M as MfaMethod, d as UserRecoveryMethod, S as SolanaTransactionReceipt, O as OAuthTokens, C as Chain, F as FundingMethod, e as SolanaCluster, f as ConnectedSolanaWallet, g as CreateWalletOptions } from './types-B-zTuIEL.js';
1
+ import { P as PrivyErrorCode, U as User, a as LoginMethod, b as LinkedAccountWithMetadata, B as BaseConnectedEthereumWallet, c as BaseConnectedSolanaWallet, W as Wallet, M as MfaMethod, d as UserRecoveryMethod, S as SolanaTransactionReceipt, O as OAuthTokens, C as Chain, F as FundingMethod, e as SolanaCluster, f as ConnectedSolanaWallet, g as CreateWalletOptions } from './types-Do6eK2EI.js';
2
2
  import { MouseEvent } from 'react';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { P as PrivyErrorCode, U as User, a as LoginMethod, b as LinkedAccountWithMetadata, B as BaseConnectedEthereumWallet, c as BaseConnectedSolanaWallet, W as Wallet, M as MfaMethod, d as UserRecoveryMethod, S as SolanaTransactionReceipt, O as OAuthTokens, C as Chain, F as FundingMethod, e as SolanaCluster, f as ConnectedSolanaWallet, g as CreateWalletOptions } from './types-B-zTuIEL.js';
1
+ import { P as PrivyErrorCode, U as User, a as LoginMethod, b as LinkedAccountWithMetadata, B as BaseConnectedEthereumWallet, c as BaseConnectedSolanaWallet, W as Wallet, M as MfaMethod, d as UserRecoveryMethod, S as SolanaTransactionReceipt, O as OAuthTokens, C as Chain, F as FundingMethod, e as SolanaCluster, f as ConnectedSolanaWallet, g as CreateWalletOptions } from './types-Do6eK2EI.js';
2
2
  import { MouseEvent } from 'react';
3
3
 
4
4
  /**
@@ -1 +1 @@
1
- import"uuid";import"./accessToken.mjs";import"./client/user.mjs";export{a as PrivyClient}from"./privy-provider-CuvYT8ML.mjs";import"./constants.mjs";import"./errors.mjs";import"./http.mjs";import"./lib/smart-wallet-helpers.mjs";import"./passkeys/transformOptionsToCamelCase.mjs";import"./paths.mjs";import"./session.mjs";import"./storage.mjs";import"./token.mjs";import"jose";import"viem/utils";import"react/jsx-runtime";import"mipd";import"react";import"react-device-detect";import"./auth-flows/custom-jwt-account.mjs";import"ofetch";import"./auth-flows/email.mjs";import"./auth-flows/getUiHeader.mjs";import"./auth-flows/farcaster.mjs";import"./connectors/walletconnect-registry.mjs";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"./effect.mjs";import"./auth-flows/guest.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"eventemitter3";import"./connectors/coinbase.mjs";import"@coinbase/wallet-sdk";import"./svg/coinbase-wallet.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/errors.mjs";import"@privy-io/js-sdk-core";import"./connectors/ethereum/index.mjs";import"./connectors/areWalletArraysEqual.mjs";import"./connectors/isBaseConnectedEthereumWallet.mjs";import"./connectors/base.mjs";import"./connectors/getRpcTimeout.mjs";import"./connectors/privyProxyProvider.mjs";import"./connectors/embedded.mjs";import"./svg/blobby.mjs";import"./embedded-wallets/rpc/types.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"./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/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"./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/phantom.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"./connectors/userAlreadyHasConnectedCoinbaseWallet.mjs";import"./connectors/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/InstallPhantomScreen.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"./lib/viem/toViemTransactionSerializable.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/PhantomInterstitialScreen.mjs";import"./connectors/phantom-redirect.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"./screens/SendTransactionScreen/TransactionDetail.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/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/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"./styles.mjs";import"./cssNormalize.mjs";import"./components/Dialog.mjs";import"./components/TelegramLoginButton.mjs";import"./connectors/solana/index.mjs";import"./types.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"./connectors/providerTypes.mjs";import"./connectors/injected.mjs";import"./connectors/metamask.mjs";import"./connectors/phantom.mjs";import"./connectors/ethereum/EthereumNullConnector.mjs";import"./connectors/phantom-solana.mjs";import"./connectors/solana/SolanaNullConnector.mjs";import"js-cookie";import"./auth-flows/authFlowToAuthenticateMethod.mjs";import"./cookies.mjs";import"./hooks/useIdentityToken.mjs";import"zustand";
1
+ import"uuid";import"./accessToken.mjs";import"./client/user.mjs";export{a as PrivyClient}from"./privy-provider-C-cTZKVr.mjs";import"./constants.mjs";import"./errors.mjs";import"./http.mjs";import"./lib/smart-wallet-helpers.mjs";import"./passkeys/transformOptionsToCamelCase.mjs";import"./paths.mjs";import"./session.mjs";import"./storage.mjs";import"./token.mjs";import"jose";import"viem/utils";import"react/jsx-runtime";import"mipd";import"react";import"react-device-detect";import"./auth-flows/custom-jwt-account.mjs";import"ofetch";import"./auth-flows/email.mjs";import"./auth-flows/getUiHeader.mjs";import"./auth-flows/farcaster.mjs";import"./connectors/walletconnect-registry.mjs";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"./effect.mjs";import"./auth-flows/guest.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"eventemitter3";import"./connectors/coinbase.mjs";import"@coinbase/wallet-sdk";import"./svg/coinbase-wallet.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/errors.mjs";import"@privy-io/js-sdk-core";import"./connectors/ethereum/index.mjs";import"./connectors/areWalletArraysEqual.mjs";import"./connectors/isBaseConnectedEthereumWallet.mjs";import"./connectors/base.mjs";import"./connectors/getRpcTimeout.mjs";import"./connectors/privyProxyProvider.mjs";import"./connectors/embedded.mjs";import"./svg/blobby.mjs";import"./embedded-wallets/rpc/types.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"./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/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"./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/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"./connectors/userAlreadyHasConnectedCoinbaseWallet.mjs";import"./connectors/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"./lib/viem/toViemTransactionSerializable.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"./connectors/solana/index.mjs";import"./connectors/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"./connectors/providerTypes.mjs";import"./connectors/ethereum/EthereumNullConnector.mjs";import"./connectors/injected.mjs";import"./connectors/metamask.mjs";import"./connectors/solana/SolanaNullConnector.mjs";import"js-cookie";import"./auth-flows/authFlowToAuthenticateMethod.mjs";import"./cookies.mjs";import"./hooks/useIdentityToken.mjs";import"zustand";
@@ -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 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 N}from"../screens/ConnectOnlyLandingScreen.mjs";import{ConnectOnlyStatusScreen as T}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 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 P}from"../screens/EmbeddedWalletPasswordUpdateSplashScreen.mjs";import{ErrorScreen as W}from"../screens/ErrorScreen.mjs";import{FarcasterConnectStatusScreen as M}from"../screens/FarcasterConnectStatusScreen.mjs";import{FarcasterSignerStatusScreen as k}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{InstallPhantomScreen as X}from"../screens/InstallPhantomScreen.mjs";import{ConnectOrCreateScreen as Q}from"../screens/LandingScreen/ConnectOrCreateScreen.mjs";import{LandingScreen as $}from"../screens/LandingScreen/LandingScreen.mjs";import{Hide as J}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{PhantomInterstitialScreen as ae}from"../screens/PhantomInterstitialScreen.mjs";import{PasswordRecoveryScreen as pe}from"../screens/Recovery/PasswordRecoveryScreen.mjs";import{RecoveryOAuthScreen as le}from"../screens/Recovery/RecoveryOAuthStatusScreen.mjs";import{EmbeddedWalletPasswordCreateScreen as de}from"../screens/Recovery/RecoveryPasswordCreateScreen.mjs";import{RecoverySelectionScreen as je}from"../screens/Recovery/RecoverySelectionScreen.mjs";import{SetAutomaticRecoveryScreen as Ee}from"../screens/Recovery/SetAutomaticRecoveryScreen.mjs";import{SendSolanaTransactionScreen as Se}from"../screens/SendSolanaTransactionScreen/SendSolanaTransactionScreen.mjs";import{SendTransactionScreen as ue}from"../screens/SendTransactionScreen/SendTransactionScreen.mjs";import{SignRequestScreen as he}from"../screens/SignRequestScreen.mjs";import{TelegramAuthScreen as ge}from"../screens/TelegramAuthScreen.mjs";import{UpdateEmailScreen as Ce}from"../screens/UpdateEmailScreen.mjs";import{UpdatePhoneScreen as fe}from"../screens/UpdatePhoneScreen.mjs";import{UserLimitReachedScreen as Ae}from"../screens/UserLimitReachedScreen.mjs";import{StylesWrapper as _e}from"../styles.mjs";import{Dialog as Ne,CenterItem as Te}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"../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/phantom.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"../connectors/phantom-redirect.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"../screens/SendTransactionScreen/TransactionDetail.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/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/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]:$,[S.CONNECT_OR_CREATE]:Q,[S.AWAITING_PASSWORDLESS_CODE]:f,[S.AWAITING_CONNECTION]:I,[S.AWAITING_CONNECT_ONLY_CONNECTION]:T,[S.AWAITING_FARCASTER_CONNECTION]:M,[S.AWAITING_FARCASTER_SIGNER]:k,[S.SELECT_PASSKEY_SIGNUP_OR_LOGIN]:me,[S.AWAITING_PASSKEY_SYSTEM_DIALOGUE]:ce,[S.PHANTOM_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]:Ae,[S.INSTALL_PHANTOM_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]:Ce,[S.UPDATE_PHONE_SCREEN]:fe,[S.CONNECT_ONLY_LANDING_SCREEN]:N,[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]:pe,[S.EMBEDDED_WALLET_RECOVERY_SELECTION_SCREEN]:je,[S.EMBEDDED_WALLET_SET_AUTOMATIC_RECOVERY_SCREEN]:Ee,[S.EMBEDDED_WALLET_RECOVERY_OAUTH_SCREEN]:le,[S.EMBEDDED_WALLET_KEY_EXPORT_SCREEN]:v,[S.EMBEDDED_WALLET_SIGN_REQUEST_SCREEN]:he,[S.EMBEDDED_WALLET_SEND_TRANSACTION_SCREEN]:ue,[S.EMBEDDED_WALLET_SEND_SOLANA_TRANSACTION_SCREEN]:Se,[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]:P,[S.EMBEDDED_WALLET_PASSWORD_UPDATE_SCREEN]:O,[S.EMBEDDED_WALLET_PASSWORD_CREATE_SCREEN]:de,[S.MFA_ENROLLMENT_FLOW_SCREEN]:ie,[S.CAPTCHA_SCREEN]:A,[S.ERROR_SCREEN]:W,[S.IN_APP_BROWSER_LOGIN_NOT_POSSIBLE]:z,[S.AFFIRMATIVE_CONSENT_SCREEN]:g,[S.TELEGRAM_AUTH_SCREEN]:ge,[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(J,{$if:!!s,children:/*#__PURE__*/e(we[E],{})}),/*#__PURE__*/e(J,{$if:!s,children:/*#__PURE__*/e(te,{open:s,onClose:t})})]}):null:/*#__PURE__*/o(r,{children:[/*#__PURE__*/e(ye,{}),/*#__PURE__*/e(Ie,{}),/*#__PURE__*/e(Te,{children:/*#__PURE__*/e(Le,{})}),/*#__PURE__*/e(be,{}),/*#__PURE__*/e(Re,{})]})},Oe=({isMfaVerifying:o,onMfaVerificationComplete:r})=>{let s=t(null);/*#__PURE__*/return e(Me,{style:{height:j(s)},id:"privy-modal-content",children:/*#__PURE__*/e("div",{ref:s,children:/*#__PURE__*/e(De,{isMfaVerifying:o,onMfaVerificationComplete:r})})})};const Pe=({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(We,{id:"privy-modal-content",children:/*#__PURE__*/e(De,{isMfaVerifying:t,onMfaVerificationComplete:()=>m(!1)})})}):/*#__PURE__*/e(Ne,{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 We=/*#__PURE__*/m.div.withConfig({displayName:"ContentWrapper",componentId:"sc-5c971bfb-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;"]),Me=/*#__PURE__*/m(We).withConfig({displayName:"BaseModal",componentId:"sc-5c971bfb-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{Pe 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 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};
@@ -0,0 +1 @@
1
+ import{styled as r}from"styled-components";let o={success:"background: var(--privy-color-success-lightest, #dcfce7);",warn:"background: var(--privy-color-warn-lightest, #fff7e6);",error:"background: var(--privy-color-error-lightest, #fde8e8);"};const e=/*#__PURE__*/r.div.withConfig({displayName:"Pill",componentId:"sc-8c138024-0"})(["border-radius:var(--privy-border-radius-md,8px);padding:12px;text-align:left;margin-top:23px;",""],(r=>o[r.variant]));export{e as Pill};
@@ -1,2 +1,2 @@
1
- import{jsx as o,jsxs as r,Fragment as e}from"react/jsx-runtime";import i from"qrcode";import t from"react";import{styled as n}from"styled-components";import{useAppConfig as c}from"../configuration/context.mjs";import{BlackRoundedSquare as s}from"../svg/black-rounded-square.mjs";import{convert1dTo2dArray as m,clamp as l}from"../utils/index.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"../connectors/get-legacy-injected-providers.mjs";import"../connectors/is-wallet-installed.mjs";import"../errors.mjs";import"ofetch";import"../utils/eth/getPublicClient.mjs";import"viem";let a=(o,r,e,i,t)=>{for(let n=r;n<r+i;n++)for(let r=e;r<e+t;r++){let e=o?.[r];e&&e[n]&&(e[n]=0)}return o},p=(o,r)=>{let e=i.create(o,{errorCorrectionLevel:r}).modules,t=m(Array.from(e.data),e.size);return t=a(t,0,0,7,7),t=a(t,t.length-7,0,7,7),a(t,0,t.length-7,7,7)},h=({x:r,y:i,cellSize:t,bgColor:n,fgColor:c})=>
2
- /*#__PURE__*/o(e,{children:[0,1,2].map((e=>/*#__PURE__*/o("circle",{r:t*(7-2*e)/2,cx:r+7*t/2,cy:i+7*t/2,fill:e%2!=0?n:c},`finder-${r}-${i}-${e}`)))}),g=({cellSize:r,matrixSize:i,bgColor:t,fgColor:n})=>/*#__PURE__*/o(e,{children:[[0,0],[(i-7)*r,0],[0,(i-7)*r]].map((([e,i])=>/*#__PURE__*/o(h,{x:e,y:i,cellSize:r,bgColor:t,fgColor:n},`finder-${e}-${i}`)))}),j=({matrix:r,cellSize:i,color:n})=>/*#__PURE__*/o(e,{children:r.map(((r,e)=>r.map(((r,c)=>r?/*#__PURE__*/o("rect",{height:i-.4,width:i-.4,x:e*i+.1*i,y:c*i+.1*i,rx:.5*i,ry:.5*i,fill:n},`cell-${e}-${c}`):/*#__PURE__*/o(t.Fragment,{},`circle-${e}-${c}`)))))}),d=({cellSize:i,matrixSize:t,element:n,sizePercentage:c,bgColor:s})=>{if(!n)/*#__PURE__*/return o(e,{});let m=t*(c||.14),l=Math.floor(t/2-m/2),a=Math.floor(t/2+m/2);(a-l)%2!=t%2&&(a+=1);let p=(a-l)*i,h=p-.2*p,g=l*i;/*#__PURE__*/return r(e,{children:[/*#__PURE__*/o("rect",{x:l*i,y:l*i,width:p,height:p,fill:s}),/*#__PURE__*/o(n,{x:g+.1*p,y:g+.1*p,height:h,width:h})]})},u=e=>{let i=e.outputSize,t=p(e.url,e.errorCorrectionLevel),n=i/t.length,c=l(2*n,{min:.025*i,max:.036*i});/*#__PURE__*/return r("svg",{height:e.outputSize,width:e.outputSize,viewBox:`0 0 ${e.outputSize} ${e.outputSize}`,style:{height:"100%",width:"100%",padding:`${c}px`},children:[/*#__PURE__*/o(j,{matrix:t,cellSize:n,color:e.fgColor}),/*#__PURE__*/o(g,{cellSize:n,matrixSize:t.length,fgColor:e.fgColor,bgColor:e.bgColor}),/*#__PURE__*/o(d,{cellSize:n,element:e.logo?.element,bgColor:e.bgColor,matrixSize:t.length})]})},f=/*#__PURE__*/n.div.withConfig({displayName:"QrContainer",componentId:"sc-aa6883ae-0"})(["display:flex;justify-content:center;align-items:center;height:",";width:",";margin:auto;background-color:",";&&{border-width:2px;border-color:",";border-radius:var(--privy-border-radius-md);}"],(o=>`${o.$size}px`),(o=>`${o.$size}px`),(o=>o.$bgColor),(o=>o.$borderColor));const C=r=>{let{appearance:e}=c(),i=r.bgColor||"#FFFFFF",t=r.fgColor||"#000000",n=r.size||160,m="dark"===e.palette.colorScheme?i:t;/*#__PURE__*/return o(f,{$size:n,$bgColor:i,$fgColor:t,$borderColor:m,children:/*#__PURE__*/o(u,{url:r.url,logo:{element:r.squareLogoElement??s},outputSize:n,bgColor:i,fgColor:t,errorCorrectionLevel:r.errorCorrectionLevel||"Q"})})};export{C as QrCode};
1
+ import{jsx as o,jsxs as r,Fragment as e}from"react/jsx-runtime";import t from"qrcode";import i from"react";import{styled as n}from"styled-components";import{useAppConfig as c}from"../configuration/context.mjs";import{BlackRoundedSquare as s}from"../svg/black-rounded-square.mjs";import{convert1dTo2dArray as m,clamp as l}from"../utils/index.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"../connectors/get-legacy-injected-providers.mjs";import"../connectors/is-wallet-installed.mjs";import"../errors.mjs";import"ofetch";import"../utils/eth/getPublicClient.mjs";import"viem";let a=(o,r,e,t,i)=>{for(let n=r;n<r+t;n++)for(let r=e;r<e+i;r++){let e=o?.[r];e&&e[n]&&(e[n]=0)}return o},p=(o,r)=>{let e=t.create(o,{errorCorrectionLevel:r}).modules,i=m(Array.from(e.data),e.size);return i=a(i,0,0,7,7),i=a(i,i.length-7,0,7,7),a(i,0,i.length-7,7,7)},h=({x:r,y:t,cellSize:i,bgColor:n,fgColor:c})=>
2
+ /*#__PURE__*/o(e,{children:[0,1,2].map((e=>/*#__PURE__*/o("circle",{r:i*(7-2*e)/2,cx:r+7*i/2,cy:t+7*i/2,fill:e%2!=0?n:c},`finder-${r}-${t}-${e}`)))}),g=({cellSize:r,matrixSize:t,bgColor:i,fgColor:n})=>/*#__PURE__*/o(e,{children:[[0,0],[(t-7)*r,0],[0,(t-7)*r]].map((([e,t])=>/*#__PURE__*/o(h,{x:e,y:t,cellSize:r,bgColor:i,fgColor:n},`finder-${e}-${t}`)))}),j=({matrix:r,cellSize:t,color:n})=>/*#__PURE__*/o(e,{children:r.map(((r,e)=>r.map(((r,c)=>r?/*#__PURE__*/o("rect",{height:t-.4,width:t-.4,x:e*t+.1*t,y:c*t+.1*t,rx:.5*t,ry:.5*t,fill:n},`cell-${e}-${c}`):/*#__PURE__*/o(i.Fragment,{},`circle-${e}-${c}`)))))}),d=({cellSize:t,matrixSize:i,element:n,sizePercentage:c,bgColor:s})=>{if(!n)/*#__PURE__*/return o(e,{});let m=i*(c||.14),l=Math.floor(i/2-m/2),a=Math.floor(i/2+m/2);(a-l)%2!=i%2&&(a+=1);let p=(a-l)*t,h=p-.2*p,g=l*t;/*#__PURE__*/return r(e,{children:[/*#__PURE__*/o("rect",{x:l*t,y:l*t,width:p,height:p,fill:s}),/*#__PURE__*/o(n,{x:g+.1*p,y:g+.1*p,height:h,width:h})]})},u=e=>{let t=e.outputSize,i=p(e.url,e.errorCorrectionLevel),n=t/i.length,c=l(2*n,{min:.025*t,max:.036*t});/*#__PURE__*/return r("svg",{height:e.outputSize,width:e.outputSize,viewBox:`0 0 ${e.outputSize} ${e.outputSize}`,style:{height:"100%",width:"100%",padding:`${c}px`},children:[/*#__PURE__*/o(j,{matrix:i,cellSize:n,color:e.fgColor}),/*#__PURE__*/o(g,{cellSize:n,matrixSize:i.length,fgColor:e.fgColor,bgColor:e.bgColor}),/*#__PURE__*/o(d,{cellSize:n,element:e.logo?.element,bgColor:e.bgColor,matrixSize:i.length})]})},f=/*#__PURE__*/n.div.attrs({className:"ph-no-capture"}).withConfig({displayName:"QrContainer",componentId:"sc-597e27f3-0"})(["display:flex;justify-content:center;align-items:center;height:",";width:",";margin:auto;background-color:",";&&{border-width:2px;border-color:",";border-radius:var(--privy-border-radius-md);}"],(o=>`${o.$size}px`),(o=>`${o.$size}px`),(o=>o.$bgColor),(o=>o.$borderColor));const C=r=>{let{appearance:e}=c(),t=r.bgColor||"#FFFFFF",i=r.fgColor||"#000000",n=r.size||160,m="dark"===e.palette.colorScheme?t:i;/*#__PURE__*/return o(f,{$size:n,$bgColor:t,$fgColor:i,$borderColor:m,children:/*#__PURE__*/o(u,{url:r.url,logo:{element:r.squareLogoElement??s},outputSize:n,bgColor:t,fgColor:i,errorCorrectionLevel:r.errorCorrectionLevel||"Q"})})};export{C as QrCode};