@privy-io/react-auth 3.13.0 → 3.13.1-beta-20260202140759

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 (363) hide show
  1. package/dist/cjs/AccountNotFoundScreen-DopQJydk.js +1 -0
  2. package/dist/cjs/{Address-aEAhUJFV.js → Address-C0i_Lgxz.js} +1 -1
  3. package/dist/cjs/AffirmativeConsentScreen-DrfsiAOF.js +6 -0
  4. package/dist/cjs/AllowlistRejectionScreen-B4F7MdmW.js +1 -0
  5. package/dist/cjs/AuthenticateWithWalletScreen-BImVaE8G.js +1 -0
  6. package/dist/cjs/AwaitingEvmToSolBridgingScreen-Bld2VoQo.js +2 -0
  7. package/dist/cjs/AwaitingExternalEthereumTransferScreen-CK2PMVQH.js +2 -0
  8. package/dist/cjs/AwaitingPasswordlessCodeScreen-mc4TfLdK.js +103 -0
  9. package/dist/cjs/AwaitingSolToEvmBridgingScreen-BHTmPSzt.js +2 -0
  10. package/dist/cjs/{BridgeNetworkSelectionView-CE2o-1QO.js → BridgeNetworkSelectionView-BTW55LDI.js} +1 -1
  11. package/dist/cjs/CaptchaScreen-C4OKrOJj.js +1 -0
  12. package/dist/cjs/CoinbaseOnrampStatusScreen-DuBusEzK.js +16 -0
  13. package/dist/cjs/{ConnectEmailForm-D-TxBaE5.js → ConnectEmailForm-BAtI_Su2.js} +1 -1
  14. package/dist/cjs/ConnectLedgerScreen-Cxy5kYQy.js +9 -0
  15. package/dist/cjs/ConnectOnlyLandingScreen-UHxAPPxv.js +1 -0
  16. package/dist/cjs/ConnectOnlyStatusScreen-D7hEyOkF.js +1 -0
  17. package/dist/cjs/ConnectOrCreateScreen-DCXEsisd.js +1 -0
  18. package/dist/cjs/{ConnectPhoneForm-DK6jm19G.js → ConnectPhoneForm-IaeAlSaT.js} +1 -1
  19. package/dist/cjs/{ConnectWalletView-1cBOsYe3.js → ConnectWalletView-I7l3i_Tn.js} +1 -1
  20. package/dist/cjs/ConnectionStatusScreen-B5eG6O0t.js +7 -0
  21. package/dist/cjs/CrossAppAuthScreen-BHfk_dqk.js +1 -0
  22. package/dist/cjs/{CustomLandingScreenView-C879x5ia.js → CustomLandingScreenView-ZdAEwrj3.js} +1 -1
  23. package/dist/cjs/DelegatedActionsConsentScreen-LeQ6Lxpc.js +1 -0
  24. package/dist/cjs/DelegatedActionsRevokeScreen-C8v4E_cj.js +1 -0
  25. package/dist/cjs/EmbeddedWalletConnectingScreen-B1rrh4GO.js +1 -0
  26. package/dist/cjs/EmbeddedWalletCreatedScreen-Cem5Ix9r.js +1 -0
  27. package/dist/cjs/{EmbeddedWalletKeyExportScreen-BpjA7HGz.js → EmbeddedWalletKeyExportScreen-C9Et_UFA.js} +3 -3
  28. package/dist/cjs/EmbeddedWalletOnAccountCreateScreen-tJoXkQEs.js +1 -0
  29. package/dist/cjs/EmbeddedWalletPasswordUpdateScreen-C2wVljgA.js +1 -0
  30. package/dist/cjs/EmbeddedWalletPasswordUpdateSplashScreen-CG1oHF6a.js +1 -0
  31. package/dist/cjs/{EnrollTotp-D1jQjLxQ.js → EnrollTotp-BveYXBKW.js} +1 -1
  32. package/dist/cjs/ErrorScreen-Ckke6sz3.js +4 -0
  33. package/dist/cjs/{FarcasterConnectStatusScreen-JBJeeu9F.js → FarcasterConnectStatusScreen-D5ziktAq.js} +3 -3
  34. package/dist/cjs/{FarcasterSignerStatusScreen-8DplKa45.js → FarcasterSignerStatusScreen-8edRjO2Y.js} +6 -6
  35. package/dist/cjs/FundSolWalletWithExternalSolanaWallet-DJEyYpCy.js +2 -0
  36. package/dist/cjs/{FundWalletMethodHeader-CW2KubxL.js → FundWalletMethodHeader-Dyg72x32.js} +1 -1
  37. package/dist/cjs/FundingEditAmountScreen-2vgGeOzZ.js +1 -0
  38. package/dist/cjs/FundingMethodSelectionScreen-D6K2RTnb.js +1 -0
  39. package/dist/cjs/InAppBrowserLoginNotPossible-DlH26fht.js +1 -0
  40. package/dist/cjs/InstallWalletScreen-D-aty_-m.js +1 -0
  41. package/dist/cjs/LandingScreen-C3ycf-sm.js +1 -0
  42. package/dist/cjs/{LinkConflictScreen-DKkFMAqc.js → LinkConflictScreen-tpqlaHKl.js} +2 -2
  43. package/dist/cjs/LinkEmailScreen-CVJ8MM6X.js +1 -0
  44. package/dist/cjs/{LinkPasskeyScreen-D-5RrGXJ.js → LinkPasskeyScreen-BVI23any.js} +1 -1
  45. package/dist/cjs/LinkPhoneScreen-COZH83MT.js +1 -0
  46. package/dist/cjs/LoginFailedScreen-B_f3bRu3.js +1 -0
  47. package/dist/cjs/ManualTransferScreen-DCjvNWqd.js +1 -0
  48. package/dist/cjs/MfaAuthEnrollmentFlowScreen-DN4ce0UG.js +1 -0
  49. package/dist/cjs/MfaAuthVerifyFlowScreen-c-lQ_fEz.js +1 -0
  50. package/dist/cjs/MfaEnrollmentFlowScreen-B6-EB6WE.js +1 -0
  51. package/dist/cjs/MfaVerifyFlowScreen-zbdZQoq2.js +1 -0
  52. package/dist/cjs/{ModalHeader-DmWqn83H.js → ModalHeader-Cy6QK4_e.js} +1 -1
  53. package/dist/cjs/MoonpayStatusScreen-BEtRocSA.js +16 -0
  54. package/dist/cjs/OAuthStatusScreen-FvgZmHXu.js +1 -0
  55. package/dist/cjs/PasskeySelectSignupOrLogin-DqSfSR6i.js +1 -0
  56. package/dist/cjs/PasskeyStatusScreen-DvA6G4hk.js +3 -0
  57. package/dist/cjs/PasswordRecoveryScreen-Befeqrad.js +20 -0
  58. package/dist/cjs/{QrCode-BG2PX4HL.js → QrCode-DuBadwvo.js} +1 -1
  59. package/dist/cjs/RecoveryOAuthStatusScreen-C6mVwtQH.js +1 -0
  60. package/dist/cjs/RecoveryPasswordCreateScreen-DzNiXRjH.js +1 -0
  61. package/dist/cjs/{RecoverySelectionScreen-qP99_3WR.js → RecoverySelectionScreen-CjnlE9el.js} +2 -2
  62. package/dist/cjs/{Screen-BnWlRqz4.js → Screen-edUQX_SB.js} +1 -1
  63. package/dist/cjs/{ScreenLayout-8Ho-PwHJ.js → ScreenLayout-DGTvokS8.js} +1 -1
  64. package/dist/cjs/{SetAutomaticRecoveryScreen-Dw8eXtFM.js → SetAutomaticRecoveryScreen-CrRjNWxq.js} +2 -2
  65. package/dist/cjs/{SetWalletPasswordForm-BtxQiQCF.js → SetWalletPasswordForm-DJeemCn9.js} +1 -1
  66. package/dist/cjs/SignRequestScreen-DHoZ6sz5.js +26 -0
  67. package/dist/cjs/{StandardSignAndSendTransactionScreen-BRCG_Otm.js → StandardSignAndSendTransactionScreen-CBLYn4pf.js} +1 -1
  68. package/dist/cjs/TelegramAuthScreen-D7mlDw-E.js +1 -0
  69. package/dist/cjs/{TransactionDetails-CB_SFjYb.js → TransactionDetails-CXgPk3J1.js} +1 -1
  70. package/dist/cjs/{TransactionErrorView-C6AwpMpC.js → TransactionErrorView-Deibl2Uf.js} +1 -1
  71. package/dist/cjs/{TransferFromWalletScreen-DDbM2aZ-.js → TransferFromWalletScreen-DSItFmOL.js} +2 -2
  72. package/dist/cjs/{TransferOrBridgeLoadingScreen-BdFZ-kHB.js → TransferOrBridgeLoadingScreen-CZY4tSPW.js} +1 -1
  73. package/dist/cjs/UpdateEmailScreen-Bcbi12kY.js +1 -0
  74. package/dist/cjs/UpdatePhoneScreen-lJE1r_mk.js +1 -0
  75. package/dist/cjs/UserLimitReachedScreen-CKsbmhwX.js +1 -0
  76. package/dist/cjs/{WalletInfoCard-BP4plvST.js → WalletInfoCard-BPFjUGT5.js} +1 -1
  77. package/dist/cjs/WalletInterstitialScreen-C-wi9rZH.js +1 -0
  78. package/dist/cjs/{WalletLink-Be-wt7BS.js → WalletLink-DQka9Syl.js} +1 -1
  79. package/dist/cjs/{WalletOverflowButton-DNXb1rWu.js → WalletOverflowButton-CT3ToLGt.js} +1 -1
  80. package/dist/cjs/abstract-smart-wallets.js +1 -1
  81. package/dist/cjs/{context-B5x3dsBc.js → context-BgcJR59W.js} +1 -1
  82. package/dist/cjs/{ethers-CcPcMmj-.js → ethers-CUHJ8mll.js} +1 -1
  83. package/dist/cjs/extended-chains.js +1 -1
  84. package/dist/cjs/get-entropy-details-for-user-Bh25VOwU.js +1 -0
  85. package/dist/cjs/{get-is-unified-wallet-huyBqM6I.js → get-is-unified-wallet-pvisKZtt.js} +1 -1
  86. package/dist/cjs/{index-C9h5dbsX.js → index-BgLmUrL3.js} +1 -1
  87. package/dist/cjs/index-C40Nmmja.js +174 -0
  88. package/dist/cjs/{index-Ddh08VH6.js → index-Y7m6JUJT.js} +1 -1
  89. package/dist/cjs/index.js +1 -1
  90. package/dist/cjs/internal.js +1 -1
  91. package/dist/cjs/{shared-B4PQQyG9.js → shared-BrkTXSb9.js} +1 -1
  92. package/dist/cjs/{shouldProceedtoEmbeddedWalletCreationFlow-Cwmd9p6v.js → shouldProceedtoEmbeddedWalletCreationFlow-ClGopOFu.js} +1 -1
  93. package/dist/cjs/smart-wallets-DhMgsCrP.js +1 -0
  94. package/dist/cjs/smart-wallets.js +1 -1
  95. package/dist/cjs/solana.js +1 -1
  96. package/dist/cjs/{styles-BYA0sdA8.js → styles-Dg1gwPet.js} +1 -1
  97. package/dist/cjs/{to-ui-error-kjcnhSmN.js → to-ui-error-Cj4nmAIy.js} +1 -1
  98. package/dist/cjs/ui.js +1 -1
  99. package/dist/cjs/use-export-wallet-BHqL5lkN.js +1 -0
  100. package/dist/cjs/use-export-wallet-CHdfox2p.js +1 -0
  101. package/dist/cjs/useActiveWallet-DQaSSN2M.js +185 -0
  102. package/dist/cjs/{useGetTokenPrice-XbJ2xnl_.js → useGetTokenPrice-Q-LRDLGC.js} +1 -1
  103. package/dist/cjs/{useI18n-CJec5B3S.js → useI18n-C-2tQwPP.js} +1 -1
  104. package/dist/cjs/usePrivy-DN8Ajdzm.js +1 -0
  105. package/dist/cjs/{useSolanaRpcClient-CN7MyWq4.js → useSolanaRpcClient-DAhvriV9.js} +1 -1
  106. package/dist/cjs/useWallets-DOb8xzgz.js +1 -0
  107. package/dist/dts/{events-context-CV9PiG6M.d.ts → events-context-uQF86xPo.d.mts} +1 -1
  108. package/dist/dts/{events-context-CV9PiG6M.d.mts → events-context-uQF86xPo.d.ts} +1 -1
  109. package/dist/dts/extended-chains.d.mts +1 -1
  110. package/dist/dts/extended-chains.d.ts +1 -1
  111. package/dist/dts/farcaster.d.mts +1 -1
  112. package/dist/dts/farcaster.d.ts +1 -1
  113. package/dist/dts/index.d.mts +4 -38
  114. package/dist/dts/index.d.ts +4 -38
  115. package/dist/dts/internal.d.mts +1 -1
  116. package/dist/dts/internal.d.ts +1 -1
  117. package/dist/dts/smart-wallets.d.mts +1 -1
  118. package/dist/dts/smart-wallets.d.ts +1 -1
  119. package/dist/dts/solana.d.mts +3 -3
  120. package/dist/dts/solana.d.ts +3 -3
  121. package/dist/dts/{types-xIUh0rN4.d.mts → types-DLEfLPEB.d.mts} +1 -1
  122. package/dist/dts/{types-xIUh0rN4.d.ts → types-DLEfLPEB.d.ts} +1 -1
  123. package/dist/dts/ui.d.mts +1 -1
  124. package/dist/dts/ui.d.ts +1 -1
  125. package/dist/esm/AccountNotFoundScreen-CVBAv1Mv.mjs +1 -0
  126. package/dist/esm/{Address-BuCMjci7.mjs → Address-BupZf8Rc.mjs} +1 -1
  127. package/dist/esm/AffirmativeConsentScreen-CFSY5nE4.mjs +6 -0
  128. package/dist/esm/AllowlistRejectionScreen-0Z0EYviP.mjs +1 -0
  129. package/dist/esm/AuthenticateWithWalletScreen-BdJYQ2JJ.mjs +1 -0
  130. package/dist/esm/AwaitingEvmToSolBridgingScreen-D9Ef3Dnt.mjs +2 -0
  131. package/dist/esm/AwaitingExternalEthereumTransferScreen-mj07gSaD.mjs +2 -0
  132. package/dist/esm/AwaitingPasswordlessCodeScreen-DE3g9VwQ.mjs +103 -0
  133. package/dist/esm/AwaitingSolToEvmBridgingScreen-CUKh2oVG.mjs +2 -0
  134. package/dist/esm/{BridgeNetworkSelectionView-0VRZoDMv.mjs → BridgeNetworkSelectionView-D8aRUIg2.mjs} +1 -1
  135. package/dist/esm/CaptchaScreen-Co8CjcuQ.mjs +1 -0
  136. package/dist/esm/CoinbaseOnrampStatusScreen-Da7VjKBi.mjs +16 -0
  137. package/dist/esm/ConnectEmailForm-D5UhENmm.mjs +3 -0
  138. package/dist/esm/ConnectLedgerScreen-JDfzYq9M.mjs +9 -0
  139. package/dist/esm/ConnectOnlyLandingScreen-C0j3-tOW.mjs +1 -0
  140. package/dist/esm/ConnectOnlyStatusScreen-D-gYePr8.mjs +1 -0
  141. package/dist/esm/ConnectOrCreateScreen-CqLbK7av.mjs +1 -0
  142. package/dist/esm/{ConnectPhoneForm-DMcfvHG9.mjs → ConnectPhoneForm-CQJPasTi.mjs} +1 -1
  143. package/dist/esm/{ConnectWalletView-rtAY2uds.mjs → ConnectWalletView-mIrd9fmT.mjs} +3 -3
  144. package/dist/esm/ConnectionStatusScreen-D8G_flGR.mjs +7 -0
  145. package/dist/esm/CrossAppAuthScreen-Btm1d-iO.mjs +1 -0
  146. package/dist/esm/{CustomLandingScreenView-Dt4TEi0A.mjs → CustomLandingScreenView-C2TNxHAb.mjs} +1 -1
  147. package/dist/esm/DelegatedActionsConsentScreen-DXwSOiLw.mjs +1 -0
  148. package/dist/esm/DelegatedActionsRevokeScreen-B7uTGw9J.mjs +1 -0
  149. package/dist/esm/EmbeddedWalletConnectingScreen-BioR068C.mjs +1 -0
  150. package/dist/esm/EmbeddedWalletCreatedScreen-Cq1thot_.mjs +1 -0
  151. package/dist/esm/{EmbeddedWalletKeyExportScreen-sjrAvCm3.mjs → EmbeddedWalletKeyExportScreen-CtEY8G7E.mjs} +2 -2
  152. package/dist/esm/EmbeddedWalletOnAccountCreateScreen-ShyQ92Jq.mjs +1 -0
  153. package/dist/esm/EmbeddedWalletPasswordUpdateScreen-qoWRlbPz.mjs +1 -0
  154. package/dist/esm/EmbeddedWalletPasswordUpdateSplashScreen-BeN-dpqi.mjs +1 -0
  155. package/dist/esm/{EnrollTotp-DlnMoeNk.mjs → EnrollTotp-3j3Uj3wv.mjs} +1 -1
  156. package/dist/esm/ErrorScreen-BpG9IyOu.mjs +4 -0
  157. package/dist/esm/{FarcasterConnectStatusScreen-BLgCDUxR.mjs → FarcasterConnectStatusScreen-DadPWt5w.mjs} +4 -4
  158. package/dist/esm/FarcasterSignerStatusScreen-DyJNx88F.mjs +28 -0
  159. package/dist/esm/FundSolWalletWithExternalSolanaWallet-Dhp2jhkc.mjs +1 -0
  160. package/dist/esm/{FundWalletMethodHeader-Dujd1j7J.mjs → FundWalletMethodHeader-Cyn7MCWO.mjs} +1 -1
  161. package/dist/esm/FundingEditAmountScreen-D0KCT7EC.mjs +1 -0
  162. package/dist/esm/FundingMethodSelectionScreen-CrHLwmNP.mjs +1 -0
  163. package/dist/esm/InAppBrowserLoginNotPossible-CcbdJWpW.mjs +1 -0
  164. package/dist/esm/InstallWalletScreen-0udkV09c.mjs +1 -0
  165. package/dist/esm/LandingScreen-C7xCusAZ.mjs +1 -0
  166. package/dist/esm/{LinkConflictScreen-DOsLOvpT.mjs → LinkConflictScreen-B31exGN7.mjs} +4 -4
  167. package/dist/esm/LinkEmailScreen-DZf6HS1n.mjs +1 -0
  168. package/dist/esm/{LinkPasskeyScreen-jzRj6Yq0.mjs → LinkPasskeyScreen-Bl7uzJ8Q.mjs} +7 -7
  169. package/dist/esm/LinkPhoneScreen-DUIIaqp0.mjs +1 -0
  170. package/dist/esm/LoginFailedScreen-DsSbXSXA.mjs +1 -0
  171. package/dist/esm/ManualTransferScreen-B-Kkarxd.mjs +1 -0
  172. package/dist/esm/MfaAuthEnrollmentFlowScreen-D82inQR9.mjs +1 -0
  173. package/dist/esm/MfaAuthVerifyFlowScreen-Cw5rWozq.mjs +1 -0
  174. package/dist/esm/MfaEnrollmentFlowScreen-B3F6HEAl.mjs +1 -0
  175. package/dist/esm/MfaVerifyFlowScreen-DYuvXWXh.mjs +1 -0
  176. package/dist/esm/{ModalHeader-CSfzkWxZ.mjs → ModalHeader-Byy3j4Lh.mjs} +1 -1
  177. package/dist/esm/MoonpayStatusScreen-CBtEX6lf.mjs +16 -0
  178. package/dist/esm/OAuthStatusScreen-YCUnttYA.mjs +1 -0
  179. package/dist/esm/PasskeySelectSignupOrLogin-DuXG4uXH.mjs +1 -0
  180. package/dist/esm/PasskeyStatusScreen-DPvVVoC2.mjs +3 -0
  181. package/dist/esm/PasswordRecoveryScreen-IS0ckI65.mjs +20 -0
  182. package/dist/esm/{QrCode-BkoTqsec.mjs → QrCode-lPYtXNC_.mjs} +1 -1
  183. package/dist/esm/RecoveryOAuthStatusScreen-CJO3irqx.mjs +1 -0
  184. package/dist/esm/RecoveryPasswordCreateScreen-DZb7gDAd.mjs +1 -0
  185. package/dist/esm/{RecoverySelectionScreen-0YIfrkiv.mjs → RecoverySelectionScreen-CThvVB-J.mjs} +2 -2
  186. package/dist/esm/{Screen-5StC6JLQ.mjs → Screen-Ct4Lyoaf.mjs} +1 -1
  187. package/dist/esm/{ScreenLayout-C2Le_YIv.mjs → ScreenLayout-DOt2sB2J.mjs} +1 -1
  188. package/dist/esm/{SetAutomaticRecoveryScreen-BAAv--Sk.mjs → SetAutomaticRecoveryScreen-D1IKpF6a.mjs} +2 -2
  189. package/dist/esm/{SetWalletPasswordForm-lzuYpBex.mjs → SetWalletPasswordForm-CiQmt-HX.mjs} +1 -1
  190. package/dist/esm/{SignRequestScreen-YrG-iwWX.mjs → SignRequestScreen-DKJky_Un.mjs} +2 -2
  191. package/dist/esm/{StandardSignAndSendTransactionScreen-Csw3bRQ4.mjs → StandardSignAndSendTransactionScreen-CPKZQMPj.mjs} +2 -2
  192. package/dist/esm/TelegramAuthScreen-bIm5jFOU.mjs +1 -0
  193. package/dist/esm/{TransactionDetails-BMVu0qlz.mjs → TransactionDetails-DLLlKhs7.mjs} +1 -1
  194. package/dist/esm/{TransactionErrorView-C6AZ1RC0.mjs → TransactionErrorView-CSRxuGt5.mjs} +1 -1
  195. package/dist/esm/{TransferFromWalletScreen-BOOq-OqM.mjs → TransferFromWalletScreen-ClNSdttH.mjs} +4 -4
  196. package/dist/esm/{TransferOrBridgeLoadingScreen-gM_oel5i.mjs → TransferOrBridgeLoadingScreen-rWz1yK-a.mjs} +1 -1
  197. package/dist/esm/UpdateEmailScreen-mog8U9Vt.mjs +1 -0
  198. package/dist/esm/UpdatePhoneScreen-CLLjzpN7.mjs +1 -0
  199. package/dist/esm/UserLimitReachedScreen-Baf8QzFD.mjs +1 -0
  200. package/dist/esm/{WalletInfoCard-TfOxho0A.mjs → WalletInfoCard-BWAC4Crm.mjs} +1 -1
  201. package/dist/esm/WalletInterstitialScreen-chmHYyvD.mjs +1 -0
  202. package/dist/esm/{WalletLink-CZTmkBKu.mjs → WalletLink-cm_UqBHl.mjs} +1 -1
  203. package/dist/esm/{WalletOverflowButton-C0Ysaik4.mjs → WalletOverflowButton-CoHTrzr-.mjs} +1 -1
  204. package/dist/esm/abstract-smart-wallets.mjs +1 -1
  205. package/dist/esm/context-BEE1GR3p.mjs +1 -0
  206. package/dist/esm/{ethers-DrSqg5wi.mjs → ethers-CzVYf1X2.mjs} +1 -1
  207. package/dist/esm/extended-chains.mjs +1 -1
  208. package/dist/esm/farcaster.mjs +1 -1
  209. package/dist/esm/{frame-uzTmvtww.mjs → frame-CjhCpycO.mjs} +1 -1
  210. package/dist/esm/get-entropy-details-for-user-DXl-F6zT.mjs +1 -0
  211. package/dist/esm/{get-is-unified-wallet-GcvxyU9r.mjs → get-is-unified-wallet-szLxUazm.mjs} +1 -1
  212. package/dist/esm/{getErc20Balance-D0MGUaOw.mjs → getErc20Balance-Bs6MYMo9.mjs} +1 -1
  213. package/dist/esm/{getErc20TokenInfo-CZJTqd4c.mjs → getErc20TokenInfo-Cymy79Tp.mjs} +1 -1
  214. package/dist/esm/{getPublicClient-B4uPLKn-.mjs → getPublicClient-BltMpU4i.mjs} +1 -1
  215. package/dist/esm/{index-BXKPenEy.mjs → index-21Khs68W.mjs} +1 -1
  216. package/dist/esm/index-BXdEd5-h.mjs +174 -0
  217. package/dist/esm/{index-tsoVOGEt.mjs → index-CXuTLe54.mjs} +1 -1
  218. package/dist/esm/index.mjs +1 -1
  219. package/dist/esm/{internal-context-Z-fyxadS.mjs → internal-context-C4ZqP8IF.mjs} +1 -1
  220. package/dist/esm/internal.mjs +1 -1
  221. package/dist/esm/{paths-3HW55qZg.mjs → paths-BzM95ysC.mjs} +1 -1
  222. package/dist/esm/reservoir-CB32KXxK.mjs +1 -0
  223. package/dist/esm/{shared-CQ6jg1BO.mjs → shared-CcT7geMr.mjs} +1 -1
  224. package/dist/esm/{shouldProceedtoEmbeddedWalletCreationFlow-BfZwb-3N.mjs → shouldProceedtoEmbeddedWalletCreationFlow-eeAK_6M1.mjs} +1 -1
  225. package/dist/esm/smart-wallets-CHETrkmZ.mjs +1 -0
  226. package/dist/esm/smart-wallets.mjs +1 -1
  227. package/dist/esm/solana.mjs +1 -1
  228. package/dist/esm/{styles-C3H3yhVT.mjs → styles-CVcwbZBK.mjs} +1 -1
  229. package/dist/esm/{to-ui-error-fYkDcQhz.mjs → to-ui-error-CymSkIi1.mjs} +2 -2
  230. package/dist/esm/ui.mjs +1 -1
  231. package/dist/esm/use-export-wallet-BghmI1bY.mjs +1 -0
  232. package/dist/esm/use-export-wallet-DmJRcrg3.mjs +1 -0
  233. package/dist/esm/{use-sign-with-user-signer-Do5Oi_rb.mjs → use-sign-with-user-signer-BYctG7hm.mjs} +1 -1
  234. package/dist/esm/useActiveWallet-CeJ_zia0.mjs +185 -0
  235. package/dist/esm/{useGetSolPrice-DwwjjGbd.mjs → useGetSolPrice-DaxM-vxD.mjs} +1 -1
  236. package/dist/esm/{useGetTokenPrice-YObgUU6L.mjs → useGetTokenPrice-BS8CeRfC.mjs} +1 -1
  237. package/dist/esm/{useI18n-VPW2SjZN.mjs → useI18n-BWqAKjsd.mjs} +1 -1
  238. package/dist/esm/usePrivy-DZkUhG2n.mjs +1 -0
  239. package/dist/esm/{useSolanaRpcClient-BTAchFxj.mjs → useSolanaRpcClient-D-Ekw787.mjs} +1 -1
  240. package/dist/esm/{useWalletBalance-BDrbQBDX.mjs → useWalletBalance-CCG99ZD8.mjs} +1 -1
  241. package/dist/esm/useWallets-CaOutpwQ.mjs +1 -0
  242. package/package.json +1 -1
  243. package/dist/cjs/AccountNotFoundScreen-DxO5LvIc.js +0 -1
  244. package/dist/cjs/AffirmativeConsentScreen-DfJW4zFz.js +0 -6
  245. package/dist/cjs/AllowlistRejectionScreen-CP01TiLV.js +0 -1
  246. package/dist/cjs/AuthenticateWithWalletScreen-CQw1iHsK.js +0 -1
  247. package/dist/cjs/AwaitingEvmToSolBridgingScreen-BzcvlEoa.js +0 -2
  248. package/dist/cjs/AwaitingExternalEthereumTransferScreen-CF8PGODY.js +0 -2
  249. package/dist/cjs/AwaitingPasswordlessCodeScreen-BByZHkHQ.js +0 -103
  250. package/dist/cjs/AwaitingSolToEvmBridgingScreen-DcalXeu-.js +0 -2
  251. package/dist/cjs/CaptchaScreen-anNodbfx.js +0 -1
  252. package/dist/cjs/CoinbaseOnrampStatusScreen-JGw8hfLn.js +0 -16
  253. package/dist/cjs/ConnectLedgerScreen-CwS0odD_.js +0 -9
  254. package/dist/cjs/ConnectOnlyLandingScreen-fpFbLO8Y.js +0 -1
  255. package/dist/cjs/ConnectOnlyStatusScreen-DziODgdH.js +0 -1
  256. package/dist/cjs/ConnectOrCreateScreen-D-V8KzJp.js +0 -1
  257. package/dist/cjs/ConnectionStatusScreen-D4NtHDFM.js +0 -7
  258. package/dist/cjs/CrossAppAuthScreen-BtEXDc88.js +0 -1
  259. package/dist/cjs/DelegatedActionsConsentScreen-CGnSYhkE.js +0 -1
  260. package/dist/cjs/DelegatedActionsRevokeScreen-Dd8u3U62.js +0 -1
  261. package/dist/cjs/EmbeddedWalletConnectingScreen-yIHjjIR2.js +0 -1
  262. package/dist/cjs/EmbeddedWalletCreatedScreen-CouqreWe.js +0 -1
  263. package/dist/cjs/EmbeddedWalletOnAccountCreateScreen-Cv8bAxPB.js +0 -1
  264. package/dist/cjs/EmbeddedWalletPasswordUpdateScreen-roXY9Gv8.js +0 -1
  265. package/dist/cjs/EmbeddedWalletPasswordUpdateSplashScreen-9I5OZ38V.js +0 -1
  266. package/dist/cjs/ErrorScreen-DbETfzK4.js +0 -4
  267. package/dist/cjs/FundSolWalletWithExternalSolanaWallet-CE1VdpiY.js +0 -2
  268. package/dist/cjs/FundingEditAmountScreen-Cjzgv7Q-.js +0 -1
  269. package/dist/cjs/FundingMethodSelectionScreen-Bje3JXwS.js +0 -1
  270. package/dist/cjs/InAppBrowserLoginNotPossible-DpFXJi29.js +0 -1
  271. package/dist/cjs/InstallWalletScreen-DP80Lixb.js +0 -1
  272. package/dist/cjs/LandingScreen-B_s7VUcj.js +0 -1
  273. package/dist/cjs/LinkEmailScreen-POTKFhXp.js +0 -1
  274. package/dist/cjs/LinkPhoneScreen-RWN6_lR0.js +0 -1
  275. package/dist/cjs/LoginFailedScreen-BGq1l-h2.js +0 -1
  276. package/dist/cjs/ManualTransferScreen-S07FPGso.js +0 -1
  277. package/dist/cjs/MfaAuthEnrollmentFlowScreen-Bnb9xLgu.js +0 -1
  278. package/dist/cjs/MfaAuthVerifyFlowScreen-Bn7NxwbP.js +0 -1
  279. package/dist/cjs/MfaEnrollmentFlowScreen-DixH-nyJ.js +0 -1
  280. package/dist/cjs/MfaVerifyFlowScreen-BtjZAo_J.js +0 -1
  281. package/dist/cjs/MoonpayStatusScreen-BAgiyXOW.js +0 -16
  282. package/dist/cjs/OAuthStatusScreen-RWYIpAEG.js +0 -1
  283. package/dist/cjs/PasskeySelectSignupOrLogin-DvUcmWfj.js +0 -1
  284. package/dist/cjs/PasskeyStatusScreen-CpL_C3--.js +0 -3
  285. package/dist/cjs/PasswordRecoveryScreen-FcFRBHq1.js +0 -20
  286. package/dist/cjs/RecoveryOAuthStatusScreen-AV5BAFgZ.js +0 -1
  287. package/dist/cjs/RecoveryPasswordCreateScreen-CvtuH2mp.js +0 -1
  288. package/dist/cjs/SignRequestScreen-B5xPIK1u.js +0 -26
  289. package/dist/cjs/TelegramAuthScreen-CjTMUNYb.js +0 -1
  290. package/dist/cjs/UpdateEmailScreen-BvzkGAlB.js +0 -1
  291. package/dist/cjs/UpdatePhoneScreen-e8rAhVvP.js +0 -1
  292. package/dist/cjs/UserLimitReachedScreen-x5P5FX13.js +0 -1
  293. package/dist/cjs/WalletInterstitialScreen-DrApzB6o.js +0 -1
  294. package/dist/cjs/index-BZqehL-Z.js +0 -174
  295. package/dist/cjs/smart-wallets-xoXme78U.js +0 -1
  296. package/dist/cjs/use-export-wallet-1gw5h-6F.js +0 -1
  297. package/dist/cjs/use-export-wallet-CedJPqOx.js +0 -1
  298. package/dist/cjs/useActiveWallet-4V55N-5C.js +0 -185
  299. package/dist/cjs/usePrivy-Tr-VZh0x.js +0 -1
  300. package/dist/cjs/useWallets-By_aiK-e.js +0 -1
  301. package/dist/cjs/useWallets-Ds2FjLWj.js +0 -1
  302. package/dist/esm/AccountNotFoundScreen-DvDKQEeR.mjs +0 -1
  303. package/dist/esm/AffirmativeConsentScreen-DmjKmR3p.mjs +0 -6
  304. package/dist/esm/AllowlistRejectionScreen-Dzgqqss9.mjs +0 -1
  305. package/dist/esm/AuthenticateWithWalletScreen-DqEYmKRq.mjs +0 -1
  306. package/dist/esm/AwaitingEvmToSolBridgingScreen-mM0yFabb.mjs +0 -2
  307. package/dist/esm/AwaitingExternalEthereumTransferScreen-B8RwfC4k.mjs +0 -2
  308. package/dist/esm/AwaitingPasswordlessCodeScreen-DiwMdkl1.mjs +0 -103
  309. package/dist/esm/AwaitingSolToEvmBridgingScreen-DDjqJpxK.mjs +0 -2
  310. package/dist/esm/CaptchaScreen-DRpV5XFL.mjs +0 -1
  311. package/dist/esm/CoinbaseOnrampStatusScreen-B5SpiCFR.mjs +0 -16
  312. package/dist/esm/ConnectEmailForm-CUfcb4US.mjs +0 -3
  313. package/dist/esm/ConnectLedgerScreen-D54DrxnP.mjs +0 -9
  314. package/dist/esm/ConnectOnlyLandingScreen-Cm10LiWd.mjs +0 -1
  315. package/dist/esm/ConnectOnlyStatusScreen-Bz7rafsR.mjs +0 -1
  316. package/dist/esm/ConnectOrCreateScreen-aeQK2RJ_.mjs +0 -1
  317. package/dist/esm/ConnectionStatusScreen-_g1A1Dg2.mjs +0 -7
  318. package/dist/esm/CrossAppAuthScreen-4oQDzYzy.mjs +0 -1
  319. package/dist/esm/DelegatedActionsConsentScreen-Cj9bU7Q1.mjs +0 -1
  320. package/dist/esm/DelegatedActionsRevokeScreen-DGFRARuM.mjs +0 -1
  321. package/dist/esm/EmbeddedWalletConnectingScreen-Cmt8I8TX.mjs +0 -1
  322. package/dist/esm/EmbeddedWalletCreatedScreen-Dj_JuLO5.mjs +0 -1
  323. package/dist/esm/EmbeddedWalletOnAccountCreateScreen-BOS_pyDI.mjs +0 -1
  324. package/dist/esm/EmbeddedWalletPasswordUpdateScreen-DulDjFpp.mjs +0 -1
  325. package/dist/esm/EmbeddedWalletPasswordUpdateSplashScreen-BkwyRHPS.mjs +0 -1
  326. package/dist/esm/ErrorScreen-8UMMZ6is.mjs +0 -4
  327. package/dist/esm/FarcasterSignerStatusScreen-RHH68QtJ.mjs +0 -28
  328. package/dist/esm/FundSolWalletWithExternalSolanaWallet-DVgX3EaM.mjs +0 -1
  329. package/dist/esm/FundingEditAmountScreen-D10JPLdP.mjs +0 -1
  330. package/dist/esm/FundingMethodSelectionScreen-BuWGEgge.mjs +0 -1
  331. package/dist/esm/InAppBrowserLoginNotPossible-TigdvlfS.mjs +0 -1
  332. package/dist/esm/InstallWalletScreen-DgyXxk_4.mjs +0 -1
  333. package/dist/esm/LandingScreen-C6rQCvI5.mjs +0 -1
  334. package/dist/esm/LinkEmailScreen-C7CpFuoA.mjs +0 -1
  335. package/dist/esm/LinkPhoneScreen-BKHv_Kdp.mjs +0 -1
  336. package/dist/esm/LoginFailedScreen-CJgWFc1S.mjs +0 -1
  337. package/dist/esm/ManualTransferScreen-CFNzuajf.mjs +0 -1
  338. package/dist/esm/MfaAuthEnrollmentFlowScreen-DflCQFD5.mjs +0 -1
  339. package/dist/esm/MfaAuthVerifyFlowScreen-D0KWDrSF.mjs +0 -1
  340. package/dist/esm/MfaEnrollmentFlowScreen-B5CTxsyW.mjs +0 -1
  341. package/dist/esm/MfaVerifyFlowScreen-Bds0d6wr.mjs +0 -1
  342. package/dist/esm/MoonpayStatusScreen-BgCvITlM.mjs +0 -16
  343. package/dist/esm/OAuthStatusScreen-B9LjQopq.mjs +0 -1
  344. package/dist/esm/PasskeySelectSignupOrLogin-BH-9DnYX.mjs +0 -1
  345. package/dist/esm/PasskeyStatusScreen-B0BMf34N.mjs +0 -3
  346. package/dist/esm/PasswordRecoveryScreen-BGO3xmU6.mjs +0 -20
  347. package/dist/esm/RecoveryOAuthStatusScreen-9ngTLe_q.mjs +0 -1
  348. package/dist/esm/RecoveryPasswordCreateScreen-BDCDfQzo.mjs +0 -1
  349. package/dist/esm/TelegramAuthScreen-CXnXpJTY.mjs +0 -1
  350. package/dist/esm/UpdateEmailScreen-B4u7SqtR.mjs +0 -1
  351. package/dist/esm/UpdatePhoneScreen-Dz75pT5l.mjs +0 -1
  352. package/dist/esm/UserLimitReachedScreen-BEQAxJvA.mjs +0 -1
  353. package/dist/esm/WalletInterstitialScreen-jHLFeLvC.mjs +0 -1
  354. package/dist/esm/context-bWeWAiND.mjs +0 -1
  355. package/dist/esm/index-DEtvMjrv.mjs +0 -174
  356. package/dist/esm/reservoir-0wfhnc0j.mjs +0 -1
  357. package/dist/esm/smart-wallets-wzmiQDh1.mjs +0 -1
  358. package/dist/esm/use-export-wallet-8amsQKG9.mjs +0 -1
  359. package/dist/esm/use-export-wallet-DyNNbsJn.mjs +0 -1
  360. package/dist/esm/useActiveWallet-CSq3KvGj.mjs +0 -185
  361. package/dist/esm/usePrivy-CvOp4eQ7.mjs +0 -1
  362. package/dist/esm/useWallets-izyyA2re.mjs +0 -1
  363. package/dist/esm/useWallets-yDa5ACXD.mjs +0 -1
@@ -1 +1 @@
1
- "use strict";var e=require("./context-B5x3dsBc.js");const n={"connectionStatus.successfullyConnected":"Successfully connected with {walletName}","connectionStatus.errorTitle":"{errorMessage}","connectionStatus.connecting":"Connecting","connectionStatus.connectOneWallet":"For the best experience, connect only one wallet at a time.","connectionStatus.checkOtherWindows":"Don't see your wallet? Check your other browser windows.","connectionStatus.stillHere":"Still here?","connectionStatus.tryConnectingAgain":"Try connecting again","connectionStatus.or":"or","connectionStatus.useDifferentLink":"use this different link","connectWallet.connectYourWallet":"Connect a wallet","connectWallet.waitingForWallet":"Waiting for {walletName}","connectWallet.connectToAccount":"Connect a wallet to your {appName} account","connectWallet.installAndConnect":"To connect to {walletName}, install and open the app. Then confirm the connection when prompted.","connectWallet.tryConnectingAgain":"Please try connecting again.","connectWallet.openInApp":"Open in app","connectWallet.copyLink":"Copy link","connectWallet.retry":"Retry","connectWallet.searchPlaceholder":"Search through {count} wallets","connectWallet.noWalletsFound":"No wallets found. Try another search.","connectWallet.lastUsed":"Last used","connectWallet.selectYourWallet":"Select your wallet","connectWallet.selectNetwork":"Select network","connectWallet.goToWallet":"Go to {walletName} to continue","connectWallet.scanToConnect":"Scan code to connect to {walletName}","connectWallet.openOrInstall":"Open or install {walletName}"};exports.useI18n=function(){let t=e.useAppConfig();return{t:(e,o)=>function(e,t,o){let c=t?.[e]??n[e];return o&&0!==Object.keys(o).length?c.replace(/\{(\w+)\}/g,((e,n)=>o[n]??e)):c}(e,t.intl.textLocalization,o)}};
1
+ "use strict";var e=require("./context-BgcJR59W.js");const n={"connectionStatus.successfullyConnected":"Successfully connected with {walletName}","connectionStatus.errorTitle":"{errorMessage}","connectionStatus.connecting":"Connecting","connectionStatus.connectOneWallet":"For the best experience, connect only one wallet at a time.","connectionStatus.checkOtherWindows":"Don't see your wallet? Check your other browser windows.","connectionStatus.stillHere":"Still here?","connectionStatus.tryConnectingAgain":"Try connecting again","connectionStatus.or":"or","connectionStatus.useDifferentLink":"use this different link","connectWallet.connectYourWallet":"Connect a wallet","connectWallet.waitingForWallet":"Waiting for {walletName}","connectWallet.connectToAccount":"Connect a wallet to your {appName} account","connectWallet.installAndConnect":"To connect to {walletName}, install and open the app. Then confirm the connection when prompted.","connectWallet.tryConnectingAgain":"Please try connecting again.","connectWallet.openInApp":"Open in app","connectWallet.copyLink":"Copy link","connectWallet.retry":"Retry","connectWallet.searchPlaceholder":"Search through {count} wallets","connectWallet.noWalletsFound":"No wallets found. Try another search.","connectWallet.lastUsed":"Last used","connectWallet.selectYourWallet":"Select your wallet","connectWallet.selectNetwork":"Select network","connectWallet.goToWallet":"Go to {walletName} to continue","connectWallet.scanToConnect":"Scan code to connect to {walletName}","connectWallet.openOrInstall":"Open or install {walletName}"};exports.useI18n=function(){let t=e.useAppConfig();return{t:(e,o)=>function(e,t,o){let c=t?.[e]??n[e];return o&&0!==Object.keys(o).length?c.replace(/\{(\w+)\}/g,((e,n)=>o[n]??e)):c}(e,t.intl.textLocalization,o)}};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("react-device-detect"),r=require("./internal-context-BJv4f_bO.js"),t=require("react"),n=require("./use-export-wallet-BHqL5lkN.js"),a=require("./get-is-unified-wallet-pvisKZtt.js"),o=require("./events-context-Di6--rDg.js"),i=require("@privy-io/js-sdk-core"),l=require("./get-entropy-details-for-user-Bh25VOwU.js"),s=require("./context-BgcJR59W.js");function d(e){return{name:e.metadata?.shortName||e.name||"",universalLink:e.mobile.universal,deepLink:e.mobile.native}}let c="WALLETCONNECT_DEEPLINK_CHOICE";function u(e){return e.startsWith("http://")||e.startsWith("https://")}function p(e,r){if(u(e))return y(e,r);let t=e;return t.includes("://")||(t=e.replaceAll("/","").replaceAll(":",""),t=`${t}://`),t.endsWith("/")||(t=`${t}/`),{redirect:`${t}wc?uri=${encodeURIComponent(r)}`,href:t}}function y(e,r){if(!u(e))return p(e,r);let t=e;return t.endsWith("/")||(t=`${t}/`),{redirect:`${t}wc?uri=${encodeURIComponent(r)}`,href:t}}const E=Symbol("solana-funding-plugin"),v=Symbol("solana-ledger-plugin"),w=(e,{chainType:r,walletIndex:t}={})=>e?.linkedAccounts.filter((e=>!("wallet"!==e.type||"privy"!==e.walletClientType||void 0!==t&&e.walletIndex!==t||void 0!==r&&e.chainType!==r)))??[],h=async({user:e,accessToken:r,proxy:t,refreshSessionAndUser:n,privy:o,appConfig:s,recoverEmbeddedWallet:d,setUser:c,walletIndex:u,chainType:p,recoveryMethod:y,recoveryPassword:E,recoveryAccessToken:v,idempotencyKey:h})=>{if(0===u)if("user-controlled-server-wallets-only"===s.embeddedWallets.mode)await i.create(o,{request:{chain_type:p},headers:h?{"privy-idempotency-key":h}:void 0});else if("ethereum"===p){let n=a.getPrivySolanaWallet(e);n&&await d({address:n.address}),await t.create({accessToken:r,solanaAddress:n?.address,recoveryMethod:y,recoveryPassword:E,recoveryAccessToken:v})}else{if("solana"!==p)throw Error("Invalid input to create wallet");{let n=a.getPrivyEthereumWallet(e);n&&await d({address:n.address}),await t.createSolana({accessToken:r,ethereumAddress:n?.address,recoveryMethod:y,recoveryPassword:E,recoveryAccessToken:v})}}else if("user-controlled-server-wallets-only"===s.embeddedWallets.mode)await i.create(o,{request:{chain_type:p}});else{let{entropyId:n,entropyIdVerifier:a}=l.getEntropyDetailsForUser(e);await d(),await t.addWallet({accessToken:r,entropyId:n,entropyIdVerifier:a,chainType:p,hdWalletIndex:u})}let m=await n(),f=w(m,{chainType:p,walletIndex:u})[0];return c(m),{user:m,account:f}},m=e=>e.reduce(((e,r)=>!e||e.walletIndex<r.walletIndex?r:e),null);let f=async({accessToken:e,appConfig:t,privy:n,emitPrivyEvent:o,proxy:i,refreshSessionAndUser:l,recoverEmbeddedWallet:s,user:d,walletIndex:c,setModalData:u,openModal:p,chainType:y,setUser:E,idempotencyKey:v})=>{if(c<0)throw o("createWallet","onError",r.PrivyErrorCode.EMBEDDED_WALLET_CREATE_ERROR),Error(`A negative walletIndex (${c}) is invalid.`);let m=a.getPrivyPrimaryWallet(d);if(c>0&&!m)throw o("createWallet","onError",r.PrivyErrorCode.EMBEDDED_WALLET_NOT_FOUND),Error("Must have an existing embedded wallet to create an additional wallet.");if(t.embeddedWallets.requireUserOwnedRecoveryOnCreate&&"user-controlled-server-wallets-only"===t.embeddedWallets.mode)throw o("createWallet","onError",r.PrivyErrorCode.EMBEDDED_WALLET_CREATE_ERROR),Error("User owned recovery not yet supported for this app.");if(!m&&t.embeddedWallets.requireUserOwnedRecoveryOnCreate)return await W({emitPrivyEvent:o,setModalData:u,openModal:p,chainType:y});let f=w(d,{chainType:y,walletIndex:c})[0];if(f)return{user:d,account:f};if(0===c&&!i)return W({emitPrivyEvent:o,setModalData:u,openModal:p,chainType:y});if(!i)throw o("createWallet","onError",r.PrivyErrorCode.UNKNOWN_EMBEDDED_WALLET_ERROR),Error("Failed to connect to wallet proxy");return h({appConfig:t,walletIndex:c,chainType:y,user:d,accessToken:e,proxy:i,refreshSessionAndUser:l,privy:n,recoverEmbeddedWallet:s,setUser:E,idempotencyKey:v})},W=async({emitPrivyEvent:e,setModalData:t,openModal:n,chainType:a})=>new Promise(((o,i)=>{t({createWallet:{onSuccess:({user:r,account:t})=>{e("createWallet","onSuccess",{wallet:t}),o({user:r,account:t})},onFailure:t=>{e("createWallet","onError",r.PrivyErrorCode.UNKNOWN_EMBEDDED_WALLET_ERROR),i(t)},callAuthOnSuccessOnClose:!1,shouldCreateEth:"ethereum"===a,shouldCreateSol:"solana"===a}}),n("EmbeddedWalletOnAccountCreateScreen")}));const T=()=>{let e=s.useAppConfig(),t=o.useEmitPrivyEvent(),{setModalData:n}=a.usePrivyModal(),{initializeWalletProxy:i,recoverEmbeddedWallet:l,setUser:d,openModal:c,refreshSessionAndUser:u,privy:p,client:y}=r.usePrivyInternal();return{create:async({chainType:a,options:o,latestUser:E,idempotencyKey:v})=>{let h=E;if(h||(h=await u()),!h)throw t("createWallet","onError",r.PrivyErrorCode.MUST_BE_AUTHENTICATED),Error("User must be authenticated before creating a Privy wallet");return await(async({appConfig:e,getAccessToken:t,initializeWalletProxy:n,user:a,privy:o,emitPrivyEvent:i,recoverEmbeddedWallet:l,setModalData:s,openModal:d,setUser:c,options:u,timeoutDuration:p,refreshSessionAndUser:y,chainType:E,idempotencyKey:v})=>{let[h,W]=await Promise.all([n(p),t()]);if(!W||!a)throw i("createWallet","onError",r.PrivyErrorCode.MUST_BE_AUTHENTICATED),Error("User must be authenticated before creating a Privy wallet");if(!h&&e.customAuth?.enabled)throw i("createWallet","onError",r.PrivyErrorCode.UNKNOWN_EMBEDDED_WALLET_ERROR),Error("Failed to connect to wallet proxy");if(u&&"walletIndex"in u&&"number"==typeof u.walletIndex){if("user-controlled-server-wallets-only"===e.embeddedWallets.mode)throw i("createWallet","onError",r.PrivyErrorCode.INVALID_DATA),Error("Invalid input, use `createAdditional` instead of `walletIndex` to create additional wallets.");return f({accessToken:W,appConfig:e,privy:o,emitPrivyEvent:i,openModal:d,proxy:h,refreshSessionAndUser:y,recoverEmbeddedWallet:l,setModalData:s,user:a,walletIndex:u.walletIndex,chainType:E,setUser:c})}let T=u&&"createAdditional"in u&&u.createAdditional,A=w(a,{chainType:E});if(A[0]&&!T)throw i("createWallet","onError",r.PrivyErrorCode.EMBEDDED_WALLET_ALREADY_EXISTS),Error("User already has an embedded wallet.");return f({accessToken:W,appConfig:e,privy:o,emitPrivyEvent:i,openModal:d,proxy:h,recoverEmbeddedWallet:l,setModalData:s,user:a,walletIndex:(m(A)?.walletIndex??-1)+1,chainType:E,refreshSessionAndUser:y,setUser:c,idempotencyKey:v})})({appConfig:e,privy:p,getAccessToken:()=>y.getAccessToken(),refreshSessionAndUser:u,initializeWalletProxy:i,user:h,emitPrivyEvent:t,recoverEmbeddedWallet:l,setModalData:n,openModal:c,setUser:d,options:o,timeoutDuration:s.WALLET_PROXY_TIMEOUT,chainType:a,idempotencyKey:v})}}};function A(e){let{create:r}=T();return o.usePrivyEventSubscription("createWallet",e),{createWallet:async e=>{e&&"target"in e&&e&&(e=void 0);let{account:t}=await r({chainType:"ethereum",options:e});return t}}}const x=async({emitPrivyEvent:e,getAccessToken:t,initializeWalletProxy:n,refreshSessionAndUser:o,user:i,appConfig:l},{privateKey:s,chainType:d,additionalSigners:c})=>{if(!i)throw e("linkAccount","onError",r.PrivyErrorCode.MUST_BE_AUTHENTICATED,{linkMethod:"siwe"}),new r.PrivyClientError("User must be authenticated before linking an account.");let u="user-controlled-server-wallets-only"===l.embeddedWallets.mode?"tee":"on-device";if(c&&"on-device"===u)throw new r.PrivyClientError("Specifying additionalSigners is only supported for TEE execution and this app uses On-device execution. Learn more https://docs.privy.io/recipes/tee-wallet-migration-guide");let[p,y]=await Promise.all([t(),n(15e3)]);if(!y||!p)throw e("linkAccount","onError",r.PrivyErrorCode.MUST_BE_AUTHENTICATED,{linkMethod:"siwe"}),new r.PrivyClientError("User must be authenticated before linking an account.");let{address:E}=await y.importWallet({privateKey:s,accessToken:p,chainType:d,mode:u,additionalSigners:c}),v=await o(),w="solana"===d?a.getImportedPrivySolanaWallets(v):a.getImportedPrivyEthereumWallets(v),h=w?.find((e=>e.address===E));if(!h)throw e("createWallet","onError",r.PrivyErrorCode.UNKNOWN_EMBEDDED_WALLET_ERROR),Error("Failed to import wallet");return e("createWallet","onSuccess",{wallet:h}),h},P=()=>{let{user:e}=a.usePrivyContext(),{client:n,refreshSessionAndUser:i,initializeWalletProxy:l}=r.usePrivyInternal(),d=o.useEmitPrivyEvent(),c=s.useAppConfig();return{importWallet:t.useCallback((({privateKey:r,additionalSigners:t})=>x({getAccessToken:()=>n.getAccessToken(),user:e,initializeWalletProxy:l,refreshSessionAndUser:i,emitPrivyEvent:d,appConfig:c},{privateKey:r,chainType:"ethereum",additionalSigners:t})),[e,n,i,l,d,c])}};exports.SOLANA_FUNDING_PLUGIN_ID=E,exports.SOLANA_LEDGER_PLUGIN_ID=v,exports.buildTargetUrl=function(t,n){let a=d(n);if(e.isMobile&&a.universalLink)return y(a.universalLink,t);if(a.deepLink)return p(a.deepLink,t);if(a.universalLink)return y(a.universalLink,t);throw new r.PrivyClientError(`Unsupported wallet ${n.id}`)},exports.buildUniversalFallbackUrl=function(e,r){let t=d(r);if(t.universalLink)return y(t.universalLink,e)},exports.createWalletAtIndex=h,exports.deleteWalletConnectDeepLink=function(){try{localStorage.removeItem(c)}catch{}},exports.importWallet=x,exports.openHref=function(e,r){window.open(e,r,"noreferrer noopener")},exports.prepareSiwsMessageWithNonce=({address:e,nonce:r})=>`${window.location.host} wants you to sign in with your Solana account:\n${e}\n\n${`You are proving you own ${e}.`}\n\nURI: ${window.location.origin}\nVersion: 1\nChain ID: mainnet\nNonce: ${r}\nIssued At: ${(new Date).toISOString()}\nResources:\n- https://privy.io`,exports.removeWalletConnectDeepLink=function(){try{localStorage.removeItem(c)}catch{}},exports.setWalletConnectDeepLink=function({href:e,name:r}){try{localStorage.setItem(c,JSON.stringify({href:e,name:r}))}catch{}},exports.useCreateWallet=A,exports.useCreateWalletInternal=T,exports.useImportWallet=P,exports.usePrivy=()=>{let{importWallet:e}=P(),{exportWallet:r}=n.useExportWallet(),{createWallet:o}=A();return{...t.useContext(a.PrivyContext),importWallet:e,createWallet:o,exportWallet:r}};
@@ -1 +1 @@
1
- "use strict";var e=require("@solana/kit"),r=require("react"),n=require("./context-B5x3dsBc.js"),t=require("./internal-context-BJv4f_bO.js");function o(r){return new Uint8Array(e.getTransactionDecoder().decode(r).messageBytes)}const a=(...e)=>{if("undefined"==typeof Buffer)throw new t.PrivyClientError("Buffer is not defined.",void 0,t.PrivyErrorCode.BUFFER_NOT_DEFINED);return Buffer.from(...e)};async function i({rpcSubscriptions:e,signature:r,timeout:n}){let t=new AbortController,o=await e.signatureNotifications(r,{commitment:"confirmed"}).subscribe({abortSignal:t.signal}),a=await Promise.race([new Promise((e=>{setTimeout((()=>{t.abort(),e(Error("Transaction confirmation timed out"))}),n)})),new Promise((async e=>{for await(let r of o){if(t.abort(),r.value.err)return e(Error("Transaction confirmation failed"));e(void 0)}}))]);if(a instanceof Error)throw a}function s({rpc:r,rpcSubscriptions:n,chain:t,blockExplorerUrl:o}){let s=function({rpc:r,rpcSubscriptions:n}){return async t=>new Promise((async(o,s)=>{try{let s=await r.sendTransaction(a(t).toString("base64"),{preflightCommitment:"confirmed",encoding:"base64"}).send();await i({rpcSubscriptions:n,signature:s,timeout:1e4}),o({signature:new Uint8Array(e.getBase58Encoder().encode(s))})}catch(e){s(e)}}))}({rpc:r,rpcSubscriptions:n});return{rpc:r,rpcSubscriptions:n,chain:t,blockExplorerUrl:o,sendAndConfirmTransaction:s}}exports.bufferFrom=a,exports.fetchTransactionEstimatedFees=async function({solanaClient:r,tx:n}){let t=e.getBase64Decoder().decode(o(n)),{value:a}=await r.rpc.getFeeForMessage(t).send();return a??0n},exports.getSolanaRpcClient=s,exports.getTransactionMessageBytes=o,exports.simulateTransaction=async function r({solanaClient:n,tx:t,replaceRecentBlockhash:o}){let{value:a}=await n.rpc.simulateTransaction(e.getBase64Decoder().decode(t),{commitment:"confirmed",encoding:"base64",sigVerify:!1,replaceRecentBlockhash:o}).send();if("BlockhashNotFound"===a.err&&o)throw Error("Simulation failed: Blockhash not found");return"BlockhashNotFound"===a.err?await r({solanaClient:n,tx:t,replaceRecentBlockhash:!0}):{logs:a.logs??[],error:a.err,hasError:!!a.err,hasFunds:a.logs?.every((e=>!/insufficient funds/gi.test(e)&&!/insufficient lamports/gi.test(e)))??!0}},exports.useSolanaRpcClient=function(){let e=n.useAppConfig(),t=r.useMemo((()=>Object.fromEntries(["solana:mainnet","solana:devnet","solana:testnet"].map((r=>[r,e.solanaRpcs[r]?s({chain:r,rpc:e.solanaRpcs[r].rpc,rpcSubscriptions:e.solanaRpcs[r].rpcSubscriptions,blockExplorerUrl:e.solanaRpcs[r].blockExplorerUrl??`https://explorer.solana.com?cluster=${r.replace("solana:","")}`}):null])))),[e.solanaRpcs]);return r.useCallback((e=>{if(!t[e])throw Error(`No RPC configuration found for chain ${e}`);return t[e]}),[t])},exports.waitForSignatureConfirmation=i;
1
+ "use strict";var e=require("@solana/kit"),r=require("react"),n=require("./context-BgcJR59W.js"),t=require("./internal-context-BJv4f_bO.js");function o(r){return new Uint8Array(e.getTransactionDecoder().decode(r).messageBytes)}const a=(...e)=>{if("undefined"==typeof Buffer)throw new t.PrivyClientError("Buffer is not defined.",void 0,t.PrivyErrorCode.BUFFER_NOT_DEFINED);return Buffer.from(...e)};async function i({rpcSubscriptions:e,signature:r,timeout:n}){let t=new AbortController,o=await e.signatureNotifications(r,{commitment:"confirmed"}).subscribe({abortSignal:t.signal}),a=await Promise.race([new Promise((e=>{setTimeout((()=>{t.abort(),e(Error("Transaction confirmation timed out"))}),n)})),new Promise((async e=>{for await(let r of o){if(t.abort(),r.value.err)return e(Error("Transaction confirmation failed"));e(void 0)}}))]);if(a instanceof Error)throw a}function s({rpc:r,rpcSubscriptions:n,chain:t,blockExplorerUrl:o}){let s=function({rpc:r,rpcSubscriptions:n}){return async t=>new Promise((async(o,s)=>{try{let s=await r.sendTransaction(a(t).toString("base64"),{preflightCommitment:"confirmed",encoding:"base64"}).send();await i({rpcSubscriptions:n,signature:s,timeout:1e4}),o({signature:new Uint8Array(e.getBase58Encoder().encode(s))})}catch(e){s(e)}}))}({rpc:r,rpcSubscriptions:n});return{rpc:r,rpcSubscriptions:n,chain:t,blockExplorerUrl:o,sendAndConfirmTransaction:s}}exports.bufferFrom=a,exports.fetchTransactionEstimatedFees=async function({solanaClient:r,tx:n}){let t=e.getBase64Decoder().decode(o(n)),{value:a}=await r.rpc.getFeeForMessage(t).send();return a??0n},exports.getSolanaRpcClient=s,exports.getTransactionMessageBytes=o,exports.simulateTransaction=async function r({solanaClient:n,tx:t,replaceRecentBlockhash:o}){let{value:a}=await n.rpc.simulateTransaction(e.getBase64Decoder().decode(t),{commitment:"confirmed",encoding:"base64",sigVerify:!1,replaceRecentBlockhash:o}).send();if("BlockhashNotFound"===a.err&&o)throw Error("Simulation failed: Blockhash not found");return"BlockhashNotFound"===a.err?await r({solanaClient:n,tx:t,replaceRecentBlockhash:!0}):{logs:a.logs??[],error:a.err,hasError:!!a.err,hasFunds:a.logs?.every((e=>!/insufficient funds/gi.test(e)&&!/insufficient lamports/gi.test(e)))??!0}},exports.useSolanaRpcClient=function(){let e=n.useAppConfig(),t=r.useMemo((()=>Object.fromEntries(["solana:mainnet","solana:devnet","solana:testnet"].map((r=>[r,e.solanaRpcs[r]?s({chain:r,rpc:e.solanaRpcs[r].rpc,rpcSubscriptions:e.solanaRpcs[r].rpcSubscriptions,blockExplorerUrl:e.solanaRpcs[r].blockExplorerUrl??`https://explorer.solana.com?cluster=${r.replace("solana:","")}`}):null])))),[e.solanaRpcs]);return r.useCallback((e=>{if(!t[e])throw Error(`No RPC configuration found for chain ${e}`);return t[e]}),[t])},exports.waitForSignatureConfirmation=i;
@@ -0,0 +1 @@
1
+ "use strict";var e=require("@solana/kit"),t=require("react"),n=require("@privy-io/js-sdk-core"),i=require("./internal-context-BJv4f_bO.js"),s=require("./get-is-unified-wallet-pvisKZtt.js"),a=require("./usePrivy-DN8Ajdzm.js"),r=require("./get-entropy-details-for-user-Bh25VOwU.js"),o=require("eventemitter3"),l=require("@scure/base"),d=require("./context-BgcJR59W.js"),c=require("./use-sign-with-user-signer-Cu_6Bx7m.js"),u=require("./useSolanaRpcClient-DAhvriV9.js"),g=require("./use-export-wallet-BHqL5lkN.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=/*#__PURE__*/h(o);const y=["solana:mainnet","solana:devnet","solana:testnet"];function f(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var v=0,A="__private_"+v+++"__implementation";class w extends p.default{setImplementation(e){f(this,A)[A]=e}async signMessage(e){return f(this,A)[A].signMessage(e)}async signAndSendTransaction(e){return f(this,A)[A].signAndSendTransaction(e)}async signTransaction(e){return f(this,A)[A].signTransaction(e)}constructor(e){super(),Object.defineProperty(this,A,{writable:!0,value:void 0}),f(this,A)[A]=e}}function E(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var T=0;function b(e){return"__private_"+T+++"_"+e}var m=/*#__PURE__*/b("_address"),S=/*#__PURE__*/b("_publicKey"),P=/*#__PURE__*/b("_chains"),O=/*#__PURE__*/b("_features"),I=/*#__PURE__*/b("_label"),W=/*#__PURE__*/b("_icon");class C{get address(){return E(this,m)[m]}get publicKey(){return E(this,S)[S].slice()}get chains(){return E(this,P)[P].slice()}get features(){return E(this,O)[O].slice()}get label(){return E(this,I)[I]}get icon(){return E(this,W)[W]}constructor({address:e,publicKey:t,label:n,icon:i}){Object.defineProperty(this,m,{writable:!0,value:void 0}),Object.defineProperty(this,S,{writable:!0,value:void 0}),Object.defineProperty(this,P,{writable:!0,value:void 0}),Object.defineProperty(this,O,{writable:!0,value:void 0}),Object.defineProperty(this,I,{writable:!0,value:void 0}),Object.defineProperty(this,W,{writable:!0,value:void 0}),E(this,m)[m]=e,E(this,S)[S]=t,E(this,P)[P]=y,E(this,I)[I]=n,E(this,W)[W]=i,E(this,O)[O]=["solana:signAndSendTransaction","solana:signTransaction","solana:signMessage"],new.target===C&&Object.freeze(this)}}function _(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var M=0;function j(e){return"__private_"+M+++"_"+e}var F=/*#__PURE__*/j("_listeners"),U=/*#__PURE__*/j("_version"),D=/*#__PURE__*/j("_name"),N=/*#__PURE__*/j("_icon"),B=/*#__PURE__*/j("_injection"),x=/*#__PURE__*/j("_isPrivyWallet"),R=/*#__PURE__*/j("_accounts"),L=/*#__PURE__*/j("_on"),V=/*#__PURE__*/j("_emit"),q=/*#__PURE__*/j("_off"),Q=/*#__PURE__*/j("_connected"),G=/*#__PURE__*/j("_connect"),H=/*#__PURE__*/j("_disconnect"),K=/*#__PURE__*/j("_signMessage"),J=/*#__PURE__*/j("_signAndSendTransaction"),Y=/*#__PURE__*/j("_signTransaction");function k(e,...t){_(this,F)[F][e]?.forEach((e=>e.apply(null,t)))}function Z(e,t){_(this,F)[F][e]=_(this,F)[F][e]?.filter((e=>t!==e))}function z(t,n,i){let s=structuredClone(e.getTransactionDecoder().decode(t)),a=e.address(n);return a in s.signatures&&(s.signatures[a]=i),new Uint8Array(e.getTransactionEncoder().encode(s))}function X(){let{isHeadlessSigning:e,walletProxy:t,initializeWalletProxy:o,recoverEmbeddedWallet:l,openModal:d,privy:g,client:h}=i.usePrivyInternal(),{user:p}=a.usePrivy(),{setModalData:y}=s.usePrivyModal(),{signWithUserSigner:f}=c.useSignWithUserSigner();return{signMessage:({message:a,address:c,options:v})=>new Promise((async(A,w)=>{let E=s.getPrivyWalletWithAddress(p,c);if("privy"!==E?.walletClientType)return void w(new i.PrivyClientError("Wallet is not a Privy wallet",void 0,i.PrivyErrorCode.EMBEDDED_WALLET_NOT_FOUND));let{entropyId:T,entropyIdVerifier:b}=r.getEntropyDetailsForUser(p,E),m=s.getIsUnifiedWallet(E),S=u.bufferFrom(a).toString("base64");if(S.length<1)return void w(new i.PrivyClientError("Message must be a non-empty string",void 0,i.PrivyErrorCode.INVALID_MESSAGE));let P=async()=>{let e;if(!p)throw Error("User must be authenticated before signing with a Privy wallet");let i=await h.getAccessToken();if(!i)throw Error("User must be authenticated to use their embedded wallet.");let s=t??await o(15e3);if(!s)throw Error("Failed to initialize embedded wallet proxy.");if(!await l({address:E.address}))throw Error("Unable to connect to wallet");if(m){let t=await n.rpc(g,f,{chain_type:"solana",method:"signMessage",params:{message:S,encoding:"base64"},wallet_id:E.id});if(!t.data||!("signature"in t.data))throw Error("Failed to sign message");e=t.data.signature}else{let{response:t}=await s.rpc({accessToken:i,entropyId:T,entropyIdVerifier:b,chainType:"solana",hdWalletIndex:E.walletIndex??0,requesterAppId:v?.uiOptions?.requesterAppId,request:{method:"signMessage",params:{message:S}}});e=t.data.signature}return e};if(e({showWalletUIs:v?.uiOptions?.showWalletUIs}))try{let e=await P(),t=new Uint8Array(u.bufferFrom(e,"base64"));A({signature:t})}catch(e){w(e)}else y({signMessage:{method:"solana_signMessage",data:S,confirmAndSign:P,onSuccess:e=>{A({signature:new Uint8Array(u.bufferFrom(e,"base64"))})},onFailure:e=>{w(e)},uiOptions:v?.uiOptions??{}},connectWallet:{recoveryMethod:E.recoveryMethod,connectingWalletAddress:E.address,entropyId:T,entropyIdVerifier:b,isUnifiedWallet:m,onCompleteNavigateTo:"SignRequestScreen",onFailure:e=>{w(new i.PrivyClientError("Failed to connect to wallet",e,i.PrivyErrorCode.UNKNOWN_CONNECT_WALLET_ERROR))}}}),d("EmbeddedWalletConnectingScreen")}))}}function $(){let{isHeadlessSigning:e,openModal:t}=i.usePrivyInternal(),{setModalData:n}=s.usePrivyModal(),{signMessage:o}=X(),{user:l}=a.usePrivy();return{signTransaction:async({transaction:a,options:d,chain:c="solana:mainnet",address:g})=>{async function h(e){let{signature:t}=await o({message:u.getTransactionMessageBytes(e),address:g,options:{...d,uiOptions:{...d?.uiOptions,showWalletUIs:!1}}});return{signedTransaction:z(e,g,t)}}return e({showWalletUIs:d?.uiOptions?.showWalletUIs})?h(a):new Promise((async(e,o)=>{let u=s.getPrivyWalletWithAddress(l,g);if("privy"!==u?.walletClientType)return void o(new i.PrivyClientError("Wallet is not a Privy wallet",void 0,i.PrivyErrorCode.EMBEDDED_WALLET_NOT_FOUND));let{entropyId:p,entropyIdVerifier:y}=r.getEntropyDetailsForUser(l,u),f=s.getIsUnifiedWallet(u);function v(e){return t=>{t instanceof i.PrivyClientError?o(t):o(new i.PrivyClientError("Failed to connect to wallet",t,e))}}let A={account:u,transaction:a,chain:c,signOnly:!0,uiOptions:d?.uiOptions||{},onConfirm:h,onSuccess:e,onFailure:v(i.PrivyErrorCode.TRANSACTION_FAILURE)};n({connectWallet:{recoveryMethod:u.recoveryMethod,connectingWalletAddress:u.address,entropyId:p,entropyIdVerifier:y,isUnifiedWallet:f,onCompleteNavigateTo:"StandardSignAndSendTransactionScreen",onFailure:v(i.PrivyErrorCode.UNKNOWN_CONNECT_WALLET_ERROR)},standardSignAndSendTransaction:A}),t("EmbeddedWalletConnectingScreen")}))}}}let ee=new w({signTransaction:i.notImplementedWithMessage("signTransaction was not injected"),signAndSendTransaction:i.notImplementedWithMessage("signAndSendTransaction was not injected"),signMessage:i.notImplementedWithMessage("signMessage was not injected")}),te=new class{get version(){return _(this,U)[U]}get name(){return _(this,D)[D]}get icon(){return _(this,N)[N]}get chains(){return y.slice()}get features(){return{"standard:connect":{version:"1.0.0",connect:_(this,G)[G]},"standard:disconnect":{version:"1.0.0",disconnect:_(this,H)[H]},"standard:events":{version:"1.0.0",on:_(this,L)[L]},"solana:signAndSendTransaction":{version:"1.0.0",supportedTransactionVersions:["legacy",0],signAndSendTransaction:_(this,J)[J]},"solana:signTransaction":{version:"1.0.0",supportedTransactionVersions:["legacy",0],signTransaction:_(this,Y)[Y]},"solana:signMessage":{version:"1.0.0",signMessage:_(this,K)[K]},"privy:":{privy:{signMessage:_(this,B)[B].signMessage,signTransaction:_(this,B)[B].signTransaction,signAndSendTransaction:_(this,B)[B].signAndSendTransaction}}}}get accounts(){return _(this,R)[R].slice()}get isPrivyWallet(){return _(this,x)[x]}constructor({name:e,icon:t,version:n,injection:i,wallets:s}){Object.defineProperty(this,V,{value:k}),Object.defineProperty(this,q,{value:Z}),Object.defineProperty(this,F,{writable:!0,value:void 0}),Object.defineProperty(this,U,{writable:!0,value:void 0}),Object.defineProperty(this,D,{writable:!0,value:void 0}),Object.defineProperty(this,N,{writable:!0,value:void 0}),Object.defineProperty(this,B,{writable:!0,value:void 0}),Object.defineProperty(this,x,{writable:!0,value:void 0}),Object.defineProperty(this,R,{writable:!0,value:void 0}),Object.defineProperty(this,L,{writable:!0,value:void 0}),Object.defineProperty(this,Q,{writable:!0,value:void 0}),Object.defineProperty(this,G,{writable:!0,value:void 0}),Object.defineProperty(this,H,{writable:!0,value:void 0}),Object.defineProperty(this,K,{writable:!0,value:void 0}),Object.defineProperty(this,J,{writable:!0,value:void 0}),Object.defineProperty(this,Y,{writable:!0,value:void 0}),_(this,F)[F]={},_(this,L)[L]=(e,t)=>(_(this,F)[F][e]?.push(t)||(_(this,F)[F][e]=[t]),()=>_(this,q)[q](e,t)),_(this,Q)[Q]=e=>{null!=e&&(_(this,R)[R]=e.map((({address:e})=>new C({address:e,publicKey:l.base58.decode(e)})))),_(this,V)[V]("change",{accounts:this.accounts})},_(this,G)[G]=async()=>(_(this,V)[V]("change",{accounts:this.accounts}),{accounts:this.accounts}),_(this,H)[H]=async()=>{_(this,V)[V]("change",{accounts:this.accounts})},_(this,K)[K]=async(...e)=>{let t=[];for(let{account:n,...i}of e){let{signature:e}=await _(this,B)[B].signMessage({...i,address:n.address});t.push({signedMessage:i.message,signature:e})}return t},_(this,J)[J]=async(...e)=>{let t=[];for(let n of e){let{signature:e}=await _(this,B)[B].signAndSendTransaction({...n,transaction:n.transaction,address:n.account.address,chain:n.chain||"solana:mainnet",options:n.options});t.push({signature:e})}return t},_(this,Y)[Y]=async(...e)=>{let t=[];for(let{transaction:n,account:i,options:s,chain:a}of e){let{signedTransaction:e}=await _(this,B)[B].signTransaction({transaction:n,address:i.address,chain:a||"solana:mainnet",options:s});t.push({signedTransaction:e})}return t},_(this,D)[D]=e,_(this,N)[N]=t,_(this,U)[U]=n,_(this,B)[B]=i,_(this,R)[R]=[],_(this,x)[x]=!0,i.on("accountChanged",_(this,Q)[Q],this),_(this,Q)[Q](s)}}({name:"Privy",version:"1.0.0",icon:"data:image/png;base64,AAABAAEAFBQAAAAAIABlAQAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAAUAAAAFAgGAAAAjYkdDQAAAAlwSFlzAAAOwwAADsMBx2+oZAAAAQVJREFUeJxiYMANZIC4E4ivAPFPIP4FxDeAuB+IlfDowwBMQFwJxF+B+D8O/AOI66Bq8QJGIF6ExyB0vAqImfEZmEeCYTDcgMswPiB+T4aB34FYApuBsWQYBsP52AycToGBK7EZuJECAw9jM3AVBQbuwWZgIwUGTsZmoDkFBnpiMxAEjpJh2FV8iVsbiD+TYBgoDVrgMgwGnID4HRGGgTKBGyHDYEAaiBdCSxh0g/5AU4Q8sYYhAzEgjoGmABBOgFo2eACowFABYn0oVgViAVINkQTiZUD8DIj/ATF6GILEXgLxCiCWIsZAbiAuBeKtQHwHiEHJ6C8UfwHie0C8E4jLoWpRAAAAAP//rcbhsQAAAAZJREFUAwBYFs3VKJ0cuQAAAABJRU5ErkJggg==",wallets:[],injection:ee});function ne(){let{ready:e}=r.useWallets(),{user:o}=a.usePrivy(),{signMessage:h}=X(),{signTransaction:p}=$(),{signAndSendTransaction:y}=function(){let e=d.useAppConfig(),{isHeadlessSigning:t,openModal:o,privy:h}=i.usePrivyInternal(),{setModalData:p}=s.usePrivyModal(),{signTransaction:y}=$(),f=u.useSolanaRpcClient(),{user:v}=a.usePrivy(),{signWithUserSigner:A}=c.useSignWithUserSigner();return{signAndSendTransaction:async({transaction:a,address:d,chain:c="solana:mainnet",options:w})=>{let E=s.getPrivyWalletWithAddress(v,d);if("privy"!==E?.walletClientType)throw new i.PrivyClientError("Wallet is not a Privy wallet",void 0,i.PrivyErrorCode.EMBEDDED_WALLET_NOT_FOUND);let T=s.getIsUnifiedWallet(E);async function b(e){if(w?.sponsor)return await(async e=>{if(!T)throw new i.PrivyClientError("Sponsoring transactions is only supported for wallets on the TEE stack",i.PrivyErrorCode.INVALID_DATA);let t=await n.rpc(h,A,{chain_type:"solana",method:"signAndSendTransaction",sponsor:!0,params:{transaction:u.bufferFrom(e).toString("base64"),encoding:"base64"},caip2:`solana:${(await f(c).rpc.getGenesisHash().send()).substring(0,32)}`,wallet_id:E.id});if(t.data&&"hash"in t.data)return{signature:l.base58.decode(t.data.hash)};throw Error("Failed to sign and send transaction")})(e);let{signedTransaction:t}=await y({transaction:e,address:d,chain:c,options:{...w,uiOptions:{...w?.uiOptions,showWalletUIs:!1}}}),{signature:s}=await f(c).sendAndConfirmTransaction(t);return{signature:s}}return t({showWalletUIs:w?.uiOptions?.showWalletUIs})?b(a):new Promise((async(t,n)=>{let s,l,{entropyId:u,entropyIdVerifier:h}=r.getEntropyDetailsForUser(v,E);function y(e){return t=>{t instanceof i.PrivyClientError?n(t):n(new i.PrivyClientError("Failed to connect to wallet",t,e))}}let f={account:E,transaction:a,chain:c,signOnly:!1,uiOptions:w?.uiOptions||{},onConfirm:b,onSuccess:t,onFailure:y(i.PrivyErrorCode.TRANSACTION_FAILURE),isSponsored:!!w?.sponsor},A={recoveryMethod:E.recoveryMethod,connectingWalletAddress:E.address,entropyId:u,entropyIdVerifier:h,isUnifiedWallet:T,onCompleteNavigateTo:"StandardSignAndSendTransactionScreen",onFailure:y(i.PrivyErrorCode.UNKNOWN_CONNECT_WALLET_ERROR)};e.fundingConfig&&(s=g.prepareSolanaFundingModalData({address:d,appConfig:e,methodScreen:"FundingMethodSelectionScreen",fundWalletConfig:{...w,asset:"native-currency",chain:c},externalSolanaFundingScreen:"FundSolWalletWithExternalSolanaWallet"}),l={amount:e.fundingConfig.defaultRecommendedAmount,asset:"SOL",chain:c,destinationAddress:d,afterSuccessScreen:"StandardSignAndSendTransactionScreen",sourceWalletData:void 0}),p({connectWallet:A,standardSignAndSendTransaction:f,funding:s,solanaFundingData:l}),o("EmbeddedWalletConnectingScreen")}))}}}(),f=t.useMemo((()=>{let e=[...s.getPrivySolanaHDWallets(o).sort(((e,t)=>(e.walletIndex??0)-(t.walletIndex??0)))],t=s.getImportedPrivySolanaWallets(o);return t.length?[...e,...t]:e}),[o]),v=t.useMemo((()=>({signMessage:async({message:e,address:t,options:n})=>await h({message:e,address:t,options:n}),signTransaction:async({transaction:e,address:t,chain:n,options:i})=>await p({transaction:e,address:t,chain:n,options:i}),async signAndSendTransaction({transaction:e,address:t,chain:n,options:i}){let{signature:s}=await y({transaction:e,address:t,chain:n,options:i});return{signature:s}}})),[h,p,y]);return t.useEffect((()=>{ee?.setImplementation(v)}),[v]),t.useEffect((()=>{var t;!e||(t=te.accounts).length===f.length&&t.every(((e,t)=>e.address===f[t]?.address))||ee?.emit("accountChanged",f)}),[e,f]),{ready:e,wallet:te}}function ie(){let{client:e}=i.usePrivyInternal(),{ready:n,wallet:s}=ne(),[a,r]=t.useState([]),[o,l]=t.useState([]);return t.useEffect((()=>{let e=[s,...a.filter((e=>"solana"===e.chainType&&!!e.wallet.features)).map((e=>e.wallet))];l(e);let t=a.flatMap((t=>{let n=()=>l([...e]);return t.on("walletsUpdated",n),{connector:t,off:n}})),n=e.map((t=>t.features["standard:events"]?.on("change",(()=>{l([...e])}))));return()=>{n.forEach((e=>e?.())),t.forEach((({connector:e,off:t})=>e.off("walletsUpdated",t)))}}),[a]),t.useEffect((()=>{r(e.connectors?.walletConnectors.filter((e=>"solana"===e.chainType))??[]);let t=()=>{r(e.connectors?.walletConnectors.filter((e=>"solana"===e.chainType))??[])};return e.connectors?.on("connectorInitialized",t),()=>{e.connectors?.off("connectorInitialized",t)}}),[n,e.connectors]),{ready:n,wallets:o}}exports.SOLANA_CHAINS=y,exports.getAddressFromBuffer=function(t){return e.getBase58Decoder().decode(t)},exports.useSolanaStandardWallets=ie,exports.useWallets=function(){let{ready:e,wallets:i}=ie();return{ready:e,wallets:t.useMemo((()=>i.flatMap((e=>e.accounts.map((t=>new n.ConnectedStandardSolanaWallet({wallet:e,account:t})))))),[i])}};
@@ -1,5 +1,5 @@
1
1
  import { Chain } from '@privy-io/js-sdk-core';
2
- import { U as User, L as LoginMethod, a as LinkedAccountWithMetadata, P as PrivyErrorCode, B as BaseConnectedEthereumWallet, b as BaseConnectedSolanaWallet, W as Wallet, M as MfaMethod, c as UserRecoveryMethod, O as OAuthTokens, F as FundingMethod, S as SolanaChain } from './types-xIUh0rN4.js';
2
+ import { U as User, L as LoginMethod, a as LinkedAccountWithMetadata, P as PrivyErrorCode, B as BaseConnectedEthereumWallet, b as BaseConnectedSolanaWallet, W as Wallet, M as MfaMethod, c as UserRecoveryMethod, O as OAuthTokens, F as FundingMethod, S as SolanaChain } from './types-DLEfLPEB.js';
3
3
 
4
4
  /**
5
5
  * `CallbackError` optionally includes a second parameter with further error details.
@@ -1,5 +1,5 @@
1
1
  import { Chain } from '@privy-io/js-sdk-core';
2
- import { U as User, L as LoginMethod, a as LinkedAccountWithMetadata, P as PrivyErrorCode, B as BaseConnectedEthereumWallet, b as BaseConnectedSolanaWallet, W as Wallet, M as MfaMethod, c as UserRecoveryMethod, O as OAuthTokens, F as FundingMethod, S as SolanaChain } from './types-xIUh0rN4.js';
2
+ import { U as User, L as LoginMethod, a as LinkedAccountWithMetadata, P as PrivyErrorCode, B as BaseConnectedEthereumWallet, b as BaseConnectedSolanaWallet, W as Wallet, M as MfaMethod, c as UserRecoveryMethod, O as OAuthTokens, F as FundingMethod, S as SolanaChain } from './types-DLEfLPEB.js';
3
3
 
4
4
  /**
5
5
  * `CallbackError` optionally includes a second parameter with further error details.
@@ -1,5 +1,5 @@
1
1
  import { CurveSigningChainType, Wallet } from '@privy-io/api-types';
2
- import { U as User } from './types-xIUh0rN4.js';
2
+ import { U as User } from './types-DLEfLPEB.js';
3
3
  import '@coinbase/wallet-sdk';
4
4
  import '@simplewebauthn/browser';
5
5
  import '@solana/kit';
@@ -1,5 +1,5 @@
1
1
  import { CurveSigningChainType, Wallet } from '@privy-io/api-types';
2
- import { U as User } from './types-xIUh0rN4.js';
2
+ import { U as User } from './types-DLEfLPEB.js';
3
3
  import '@coinbase/wallet-sdk';
4
4
  import '@simplewebauthn/browser';
5
5
  import '@solana/kit';
@@ -1,4 +1,4 @@
1
- import { d as LoginToMiniApp, U as User } from './types-xIUh0rN4.js';
1
+ import { d as LoginToMiniApp, U as User } from './types-DLEfLPEB.js';
2
2
  import '@coinbase/wallet-sdk';
3
3
  import '@simplewebauthn/browser';
4
4
  import '@solana/kit';
@@ -1,4 +1,4 @@
1
- import { d as LoginToMiniApp, U as User } from './types-xIUh0rN4.js';
1
+ import { d as LoginToMiniApp, U as User } from './types-DLEfLPEB.js';
2
2
  import '@coinbase/wallet-sdk';
3
3
  import '@simplewebauthn/browser';
4
4
  import '@solana/kit';
@@ -1,5 +1,5 @@
1
- import { k as MfaSubmitArgs, c as UserRecoveryMethod, g as SessionSignerInput, E as EthereumRpcRequestType, l as SolanaRpcRequestType, m as EthereumRpcResponseType, n as SolanaRpcResponseType, o as PrivyFarcasterSignerInitResponse, p as EIP1193Provider, q as EntropyIdVerifier$1, H as HDWalletWithMetadata, r as RequestArguments, s as WalletConnector, B as BaseConnectedEthereumWallet, u as PrivyProxyProvider, v as WalletClientType, w as ConnectedWalletMetadata, x as PrivyClientConfig, y as ConnectorType, z as SetBaseAccountSdkType, A as WalletListEntry, D as AppConfig, G as BaseConnectedWallet, j as SolanaWalletConnector, U as User, I as ConnectWalletModalOptions, J as LoginModalOptions, C as CreateWalletOptions, W as Wallet, K as SetWalletRecoveryOptions, f as SignMessageModalUIOptions, N as SignTypedDataParams, M as MfaMethod, Q as UnsignedTransactionRequest, e as SendTransactionModalUIOptions, T as FundWalletConfig, V as ConnectedWallet, O as OAuthTokens, X as CrossAppProviderDetails, Y as MoonpaySignRequest, Z as MoonpaySignResponse, _ as SiwsMessageType, L as LoginMethod, $ as ExternalWalletMetadata, a0 as TelegramAuthResult, a1 as TelegramWebAppData, a2 as OAuthUserInfo, a3 as OAuthFlowState, a4 as LoginWithCode, a5 as OtpFlowState, a6 as PasskeyFlowState, a7 as SiweFlowState, a as LinkedAccountWithMetadata, a8 as FundingResult, a9 as BaseAccountSdkType, aa as UnsignedTransactionRequestWithChainId, ab as BaseConnectedWalletType, b as BaseConnectedSolanaWallet, ac as SignerInput, ad as TelegramAuthFlowState } from './types-xIUh0rN4.js';
2
- export { av as Apple, aI as AppleOAuthWithMetadata, aQ as ContractUIOptions, az as CrossAppAccount, aL as CrossAppAccountWithMetadata, as as Discord, aD as DiscordOAuthWithMetadata, aN as Email, an as EmailWithMetadata, aU as Farcaster, aJ as FarcasterWithMetadata, aR as FundingStatus, at as Github, aE as GithubOAuthWithMetadata, aq as Google, aB as GoogleOAuthWithMetadata, ax as Line, aG as LineOAuthWithMetadata, aA as LinkedAccountType, au as LinkedIn, aH as LinkedInOAuthWithMetadata, aW as LoginMethodOrderOption, af as MessageTypes, ah as MoonpayCurrencyCode, ai as MoonpayPaymentMethod, aS as NativeFundingConfig, am as NonEmptyArray, aV as Passkey, aM as PasskeyWithMetadata, aO as Phone, ao as PhoneWithMetadata, aT as PriceDisplayOptions, P as PrivyErrorCode, aY as PrivyI18nStrings, aj as Quantity, aX as SiwsFlowState, ag as SmartWallet, ay as Telegram, aK as TelegramWithMetadata, aw as Tiktok, aF as TiktokOAuthWithMetadata, ak as TransactionLog, al as TransactionReceipt, aP as TransactionUIOptions, ar as Twitter, aC as TwitterOAuthWithMetadata, ae as TypedMessage, ap as WalletWithMetadata, aZ as dataSuffix } from './types-xIUh0rN4.js';
1
+ import { k as MfaSubmitArgs, c as UserRecoveryMethod, g as SessionSignerInput, E as EthereumRpcRequestType, l as SolanaRpcRequestType, m as EthereumRpcResponseType, n as SolanaRpcResponseType, o as PrivyFarcasterSignerInitResponse, p as EIP1193Provider, q as EntropyIdVerifier$1, H as HDWalletWithMetadata, r as RequestArguments, s as WalletConnector, B as BaseConnectedEthereumWallet, u as PrivyProxyProvider, v as WalletClientType, w as ConnectedWalletMetadata, x as PrivyClientConfig, y as SetBaseAccountSdkType, z as WalletListEntry, A as AppConfig, D as BaseConnectedWallet, G as ConnectorType, j as SolanaWalletConnector, U as User, I as ConnectWalletModalOptions, J as LoginModalOptions, C as CreateWalletOptions, W as Wallet, K as SetWalletRecoveryOptions, f as SignMessageModalUIOptions, N as SignTypedDataParams, M as MfaMethod, Q as UnsignedTransactionRequest, e as SendTransactionModalUIOptions, T as FundWalletConfig, V as ConnectedWallet, O as OAuthTokens, X as CrossAppProviderDetails, Y as MoonpaySignRequest, Z as MoonpaySignResponse, _ as SiwsMessageType, L as LoginMethod, $ as ExternalWalletMetadata, a0 as TelegramAuthResult, a1 as TelegramWebAppData, a2 as OAuthUserInfo, a3 as OAuthFlowState, a4 as LoginWithCode, a5 as OtpFlowState, a6 as PasskeyFlowState, a7 as SiweFlowState, a as LinkedAccountWithMetadata, a8 as FundingResult, a9 as BaseAccountSdkType, aa as UnsignedTransactionRequestWithChainId, ab as BaseConnectedWalletType, b as BaseConnectedSolanaWallet, ac as SignerInput, ad as TelegramAuthFlowState } from './types-DLEfLPEB.js';
2
+ export { av as Apple, aI as AppleOAuthWithMetadata, aQ as ContractUIOptions, az as CrossAppAccount, aL as CrossAppAccountWithMetadata, as as Discord, aD as DiscordOAuthWithMetadata, aN as Email, an as EmailWithMetadata, aU as Farcaster, aJ as FarcasterWithMetadata, aR as FundingStatus, at as Github, aE as GithubOAuthWithMetadata, aq as Google, aB as GoogleOAuthWithMetadata, ax as Line, aG as LineOAuthWithMetadata, aA as LinkedAccountType, au as LinkedIn, aH as LinkedInOAuthWithMetadata, aW as LoginMethodOrderOption, af as MessageTypes, ah as MoonpayCurrencyCode, ai as MoonpayPaymentMethod, aS as NativeFundingConfig, am as NonEmptyArray, aV as Passkey, aM as PasskeyWithMetadata, aO as Phone, ao as PhoneWithMetadata, aT as PriceDisplayOptions, P as PrivyErrorCode, aY as PrivyI18nStrings, aj as Quantity, aX as SiwsFlowState, ag as SmartWallet, ay as Telegram, aK as TelegramWithMetadata, aw as Tiktok, aF as TiktokOAuthWithMetadata, ak as TransactionLog, al as TransactionReceipt, aP as TransactionUIOptions, ar as Twitter, aC as TwitterOAuthWithMetadata, ae as TypedMessage, ap as WalletWithMetadata, aZ as dataSuffix } from './types-DLEfLPEB.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { TurnstileProps } from '@marsidev/react-turnstile';
5
5
  import EventEmitter from 'eventemitter3';
@@ -15,8 +15,8 @@ import { MouseEvent } from 'react';
15
15
  import * as _simplewebauthn_browser from '@simplewebauthn/browser';
16
16
  import { PublicKeyCredentialRequestOptionsJSON } from '@simplewebauthn/browser';
17
17
  import { FetchOptions } from 'ofetch';
18
- import { P as PrivyEvents } from './events-context-CV9PiG6M.js';
19
- export { C as CallbackError } from './events-context-CV9PiG6M.js';
18
+ import { P as PrivyEvents } from './events-context-uQF86xPo.js';
19
+ export { C as CallbackError } from './events-context-uQF86xPo.js';
20
20
  import { PaymentRequirementsSelector } from 'x402/client';
21
21
  import { X402Config } from 'x402/types';
22
22
  import * as viem_accounts from 'viem/accounts';
@@ -8209,31 +8209,6 @@ type CaptchaProps = Partial<Pick<TurnstileProps, 'onUnsupported' | 'onError' | '
8209
8209
  */
8210
8210
  declare const Captcha: (props: CaptchaProps) => react_jsx_runtime.JSX.Element | null;
8211
8211
 
8212
- declare class EmbeddedWalletConnector extends EthereumWalletConnector {
8213
- connectorType: ConnectorType;
8214
- walletIndex: number;
8215
- proxyProvider: Embedded1193Provider;
8216
- constructor({ provider, chains, defaultChain, rpcConfig, imported, walletIndex, }: {
8217
- provider: Embedded1193Provider;
8218
- chains: Chain[];
8219
- defaultChain: Chain;
8220
- rpcConfig: RpcConfig;
8221
- imported: boolean;
8222
- walletIndex: number;
8223
- });
8224
- initialize(): Promise<void>;
8225
- connect(options: {
8226
- chainId?: number;
8227
- }): Promise<BaseConnectedEthereumWallet | null>;
8228
- get walletBranding(): {
8229
- name: string;
8230
- icon: ({ ...props }: React.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
8231
- id: string;
8232
- };
8233
- disconnect(): void;
8234
- promptConnection(): Promise<void>;
8235
- }
8236
-
8237
8212
  interface ConnectorManagerEvents {
8238
8213
  walletsUpdated(): void;
8239
8214
  connectorInitialized(): void;
@@ -8271,15 +8246,6 @@ declare class ConnectorManager extends EventEmitter<ConnectorManagerEvents> {
8271
8246
  * Helper function to find a solana wallet connector by connector type and wallet client type.
8272
8247
  */
8273
8248
  findSolanaWalletConnector(walletClientType: string): SolanaWalletConnector | null;
8274
- /**
8275
- * Helper function to find all embedded HD wallet connectors with `connectorType: 'embedded'`.
8276
- * Does not include embedded imported wallet connectors, which have `connectorType: 'embedded_imported'`.
8277
- */
8278
- findEmbeddedWalletConnectors(): EmbeddedWalletConnector[];
8279
- /**
8280
- * Helper function to get all imported wallet connectors with `connectorType: 'embedded_imported'`.
8281
- */
8282
- findImportedWalletConnectors(): EmbeddedWalletConnector[];
8283
8249
  /**
8284
8250
  * Creates a new wallet connector for the given connector type and wallet client type.
8285
8251
  * If a connector already exists, it will be returned instead.
@@ -1,5 +1,5 @@
1
- import { k as MfaSubmitArgs, c as UserRecoveryMethod, g as SessionSignerInput, E as EthereumRpcRequestType, l as SolanaRpcRequestType, m as EthereumRpcResponseType, n as SolanaRpcResponseType, o as PrivyFarcasterSignerInitResponse, p as EIP1193Provider, q as EntropyIdVerifier$1, H as HDWalletWithMetadata, r as RequestArguments, s as WalletConnector, B as BaseConnectedEthereumWallet, u as PrivyProxyProvider, v as WalletClientType, w as ConnectedWalletMetadata, x as PrivyClientConfig, y as ConnectorType, z as SetBaseAccountSdkType, A as WalletListEntry, D as AppConfig, G as BaseConnectedWallet, j as SolanaWalletConnector, U as User, I as ConnectWalletModalOptions, J as LoginModalOptions, C as CreateWalletOptions, W as Wallet, K as SetWalletRecoveryOptions, f as SignMessageModalUIOptions, N as SignTypedDataParams, M as MfaMethod, Q as UnsignedTransactionRequest, e as SendTransactionModalUIOptions, T as FundWalletConfig, V as ConnectedWallet, O as OAuthTokens, X as CrossAppProviderDetails, Y as MoonpaySignRequest, Z as MoonpaySignResponse, _ as SiwsMessageType, L as LoginMethod, $ as ExternalWalletMetadata, a0 as TelegramAuthResult, a1 as TelegramWebAppData, a2 as OAuthUserInfo, a3 as OAuthFlowState, a4 as LoginWithCode, a5 as OtpFlowState, a6 as PasskeyFlowState, a7 as SiweFlowState, a as LinkedAccountWithMetadata, a8 as FundingResult, a9 as BaseAccountSdkType, aa as UnsignedTransactionRequestWithChainId, ab as BaseConnectedWalletType, b as BaseConnectedSolanaWallet, ac as SignerInput, ad as TelegramAuthFlowState } from './types-xIUh0rN4.js';
2
- export { av as Apple, aI as AppleOAuthWithMetadata, aQ as ContractUIOptions, az as CrossAppAccount, aL as CrossAppAccountWithMetadata, as as Discord, aD as DiscordOAuthWithMetadata, aN as Email, an as EmailWithMetadata, aU as Farcaster, aJ as FarcasterWithMetadata, aR as FundingStatus, at as Github, aE as GithubOAuthWithMetadata, aq as Google, aB as GoogleOAuthWithMetadata, ax as Line, aG as LineOAuthWithMetadata, aA as LinkedAccountType, au as LinkedIn, aH as LinkedInOAuthWithMetadata, aW as LoginMethodOrderOption, af as MessageTypes, ah as MoonpayCurrencyCode, ai as MoonpayPaymentMethod, aS as NativeFundingConfig, am as NonEmptyArray, aV as Passkey, aM as PasskeyWithMetadata, aO as Phone, ao as PhoneWithMetadata, aT as PriceDisplayOptions, P as PrivyErrorCode, aY as PrivyI18nStrings, aj as Quantity, aX as SiwsFlowState, ag as SmartWallet, ay as Telegram, aK as TelegramWithMetadata, aw as Tiktok, aF as TiktokOAuthWithMetadata, ak as TransactionLog, al as TransactionReceipt, aP as TransactionUIOptions, ar as Twitter, aC as TwitterOAuthWithMetadata, ae as TypedMessage, ap as WalletWithMetadata, aZ as dataSuffix } from './types-xIUh0rN4.js';
1
+ import { k as MfaSubmitArgs, c as UserRecoveryMethod, g as SessionSignerInput, E as EthereumRpcRequestType, l as SolanaRpcRequestType, m as EthereumRpcResponseType, n as SolanaRpcResponseType, o as PrivyFarcasterSignerInitResponse, p as EIP1193Provider, q as EntropyIdVerifier$1, H as HDWalletWithMetadata, r as RequestArguments, s as WalletConnector, B as BaseConnectedEthereumWallet, u as PrivyProxyProvider, v as WalletClientType, w as ConnectedWalletMetadata, x as PrivyClientConfig, y as SetBaseAccountSdkType, z as WalletListEntry, A as AppConfig, D as BaseConnectedWallet, G as ConnectorType, j as SolanaWalletConnector, U as User, I as ConnectWalletModalOptions, J as LoginModalOptions, C as CreateWalletOptions, W as Wallet, K as SetWalletRecoveryOptions, f as SignMessageModalUIOptions, N as SignTypedDataParams, M as MfaMethod, Q as UnsignedTransactionRequest, e as SendTransactionModalUIOptions, T as FundWalletConfig, V as ConnectedWallet, O as OAuthTokens, X as CrossAppProviderDetails, Y as MoonpaySignRequest, Z as MoonpaySignResponse, _ as SiwsMessageType, L as LoginMethod, $ as ExternalWalletMetadata, a0 as TelegramAuthResult, a1 as TelegramWebAppData, a2 as OAuthUserInfo, a3 as OAuthFlowState, a4 as LoginWithCode, a5 as OtpFlowState, a6 as PasskeyFlowState, a7 as SiweFlowState, a as LinkedAccountWithMetadata, a8 as FundingResult, a9 as BaseAccountSdkType, aa as UnsignedTransactionRequestWithChainId, ab as BaseConnectedWalletType, b as BaseConnectedSolanaWallet, ac as SignerInput, ad as TelegramAuthFlowState } from './types-DLEfLPEB.js';
2
+ export { av as Apple, aI as AppleOAuthWithMetadata, aQ as ContractUIOptions, az as CrossAppAccount, aL as CrossAppAccountWithMetadata, as as Discord, aD as DiscordOAuthWithMetadata, aN as Email, an as EmailWithMetadata, aU as Farcaster, aJ as FarcasterWithMetadata, aR as FundingStatus, at as Github, aE as GithubOAuthWithMetadata, aq as Google, aB as GoogleOAuthWithMetadata, ax as Line, aG as LineOAuthWithMetadata, aA as LinkedAccountType, au as LinkedIn, aH as LinkedInOAuthWithMetadata, aW as LoginMethodOrderOption, af as MessageTypes, ah as MoonpayCurrencyCode, ai as MoonpayPaymentMethod, aS as NativeFundingConfig, am as NonEmptyArray, aV as Passkey, aM as PasskeyWithMetadata, aO as Phone, ao as PhoneWithMetadata, aT as PriceDisplayOptions, P as PrivyErrorCode, aY as PrivyI18nStrings, aj as Quantity, aX as SiwsFlowState, ag as SmartWallet, ay as Telegram, aK as TelegramWithMetadata, aw as Tiktok, aF as TiktokOAuthWithMetadata, ak as TransactionLog, al as TransactionReceipt, aP as TransactionUIOptions, ar as Twitter, aC as TwitterOAuthWithMetadata, ae as TypedMessage, ap as WalletWithMetadata, aZ as dataSuffix } from './types-DLEfLPEB.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { TurnstileProps } from '@marsidev/react-turnstile';
5
5
  import EventEmitter from 'eventemitter3';
@@ -15,8 +15,8 @@ import { MouseEvent } from 'react';
15
15
  import * as _simplewebauthn_browser from '@simplewebauthn/browser';
16
16
  import { PublicKeyCredentialRequestOptionsJSON } from '@simplewebauthn/browser';
17
17
  import { FetchOptions } from 'ofetch';
18
- import { P as PrivyEvents } from './events-context-CV9PiG6M.js';
19
- export { C as CallbackError } from './events-context-CV9PiG6M.js';
18
+ import { P as PrivyEvents } from './events-context-uQF86xPo.js';
19
+ export { C as CallbackError } from './events-context-uQF86xPo.js';
20
20
  import { PaymentRequirementsSelector } from 'x402/client';
21
21
  import { X402Config } from 'x402/types';
22
22
  import * as viem_accounts from 'viem/accounts';
@@ -8209,31 +8209,6 @@ type CaptchaProps = Partial<Pick<TurnstileProps, 'onUnsupported' | 'onError' | '
8209
8209
  */
8210
8210
  declare const Captcha: (props: CaptchaProps) => react_jsx_runtime.JSX.Element | null;
8211
8211
 
8212
- declare class EmbeddedWalletConnector extends EthereumWalletConnector {
8213
- connectorType: ConnectorType;
8214
- walletIndex: number;
8215
- proxyProvider: Embedded1193Provider;
8216
- constructor({ provider, chains, defaultChain, rpcConfig, imported, walletIndex, }: {
8217
- provider: Embedded1193Provider;
8218
- chains: Chain[];
8219
- defaultChain: Chain;
8220
- rpcConfig: RpcConfig;
8221
- imported: boolean;
8222
- walletIndex: number;
8223
- });
8224
- initialize(): Promise<void>;
8225
- connect(options: {
8226
- chainId?: number;
8227
- }): Promise<BaseConnectedEthereumWallet | null>;
8228
- get walletBranding(): {
8229
- name: string;
8230
- icon: ({ ...props }: React.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
8231
- id: string;
8232
- };
8233
- disconnect(): void;
8234
- promptConnection(): Promise<void>;
8235
- }
8236
-
8237
8212
  interface ConnectorManagerEvents {
8238
8213
  walletsUpdated(): void;
8239
8214
  connectorInitialized(): void;
@@ -8271,15 +8246,6 @@ declare class ConnectorManager extends EventEmitter<ConnectorManagerEvents> {
8271
8246
  * Helper function to find a solana wallet connector by connector type and wallet client type.
8272
8247
  */
8273
8248
  findSolanaWalletConnector(walletClientType: string): SolanaWalletConnector | null;
8274
- /**
8275
- * Helper function to find all embedded HD wallet connectors with `connectorType: 'embedded'`.
8276
- * Does not include embedded imported wallet connectors, which have `connectorType: 'embedded_imported'`.
8277
- */
8278
- findEmbeddedWalletConnectors(): EmbeddedWalletConnector[];
8279
- /**
8280
- * Helper function to get all imported wallet connectors with `connectorType: 'embedded_imported'`.
8281
- */
8282
- findImportedWalletConnectors(): EmbeddedWalletConnector[];
8283
8249
  /**
8284
8250
  * Creates a new wallet connector for the given connector type and wallet client type.
8285
8251
  * If a connector already exists, it will be returned instead.
@@ -1,4 +1,4 @@
1
- import { U as User } from './types-xIUh0rN4.js';
1
+ import { U as User } from './types-DLEfLPEB.js';
2
2
  import '@coinbase/wallet-sdk';
3
3
  import '@simplewebauthn/browser';
4
4
  import '@solana/kit';
@@ -1,4 +1,4 @@
1
- import { U as User } from './types-xIUh0rN4.js';
1
+ import { U as User } from './types-DLEfLPEB.js';
2
2
  import '@coinbase/wallet-sdk';
3
3
  import '@simplewebauthn/browser';
4
4
  import '@solana/kit';
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import react__default from 'react';
3
- import { e as SendTransactionModalUIOptions, f as SignMessageModalUIOptions } from './types-xIUh0rN4.js';
3
+ import { e as SendTransactionModalUIOptions, f as SignMessageModalUIOptions } from './types-DLEfLPEB.js';
4
4
  import { SmartAccountClient } from 'permissionless';
5
5
  import { EIP1193Provider, Chain, PublicClient, HttpTransport, WalletClient, PaymasterRpcSchema, SendTransactionParameters, Hash, SignableMessage, Hex, TypedData, SignTypedDataParameters } from 'viem';
6
6
  import { SmartAccount, SendUserOperationParameters } from 'viem/account-abstraction';
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import react__default from 'react';
3
- import { e as SendTransactionModalUIOptions, f as SignMessageModalUIOptions } from './types-xIUh0rN4.js';
3
+ import { e as SendTransactionModalUIOptions, f as SignMessageModalUIOptions } from './types-DLEfLPEB.js';
4
4
  import { SmartAccountClient } from 'permissionless';
5
5
  import { EIP1193Provider, Chain, PublicClient, HttpTransport, WalletClient, PaymasterRpcSchema, SendTransactionParameters, Hash, SignableMessage, Hex, TypedData, SignTypedDataParameters } from 'viem';
6
6
  import { SmartAccount, SendUserOperationParameters } from 'viem/account-abstraction';
@@ -1,12 +1,12 @@
1
- import { g as SessionSignerInput, W as Wallet, f as SignMessageModalUIOptions, S as SolanaChain, h as SolanaStandardWallet, C as CreateWalletOptions, e as SendTransactionModalUIOptions, i as SolanaFundingConfig } from './types-xIUh0rN4.js';
2
- export { j as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-xIUh0rN4.js';
1
+ import { g as SessionSignerInput, W as Wallet, f as SignMessageModalUIOptions, S as SolanaChain, h as SolanaStandardWallet, C as CreateWalletOptions, e as SendTransactionModalUIOptions, i as SolanaFundingConfig } from './types-DLEfLPEB.js';
2
+ export { j as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-DLEfLPEB.js';
3
3
  import { SolanaSignAndSendTransactionFeature, SolanaSignTransactionFeature, SolanaSignMessageFeature } from '@solana/wallet-standard-features';
4
4
  import { WalletAccount, WalletIcon, WalletVersion } from '@wallet-standard/base';
5
5
  import { StandardConnectFeature, StandardDisconnectFeature, StandardEventsFeature } from '@wallet-standard/features';
6
6
  import EventEmitter from 'eventemitter3';
7
7
  import { SolanaSignAndSendTransactionOptions, SolanaSignTransactionOptions, ConnectedStandardSolanaWallet } from '@privy-io/js-sdk-core';
8
8
  export { ConnectedStandardSolanaWallet } from '@privy-io/js-sdk-core';
9
- import { P as PrivyEvents } from './events-context-CV9PiG6M.js';
9
+ import { P as PrivyEvents } from './events-context-uQF86xPo.js';
10
10
  import '@coinbase/wallet-sdk';
11
11
  import '@simplewebauthn/browser';
12
12
  import '@solana/kit';
@@ -1,12 +1,12 @@
1
- import { g as SessionSignerInput, W as Wallet, f as SignMessageModalUIOptions, S as SolanaChain, h as SolanaStandardWallet, C as CreateWalletOptions, e as SendTransactionModalUIOptions, i as SolanaFundingConfig } from './types-xIUh0rN4.js';
2
- export { j as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-xIUh0rN4.js';
1
+ import { g as SessionSignerInput, W as Wallet, f as SignMessageModalUIOptions, S as SolanaChain, h as SolanaStandardWallet, C as CreateWalletOptions, e as SendTransactionModalUIOptions, i as SolanaFundingConfig } from './types-DLEfLPEB.js';
2
+ export { j as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-DLEfLPEB.js';
3
3
  import { SolanaSignAndSendTransactionFeature, SolanaSignTransactionFeature, SolanaSignMessageFeature } from '@solana/wallet-standard-features';
4
4
  import { WalletAccount, WalletIcon, WalletVersion } from '@wallet-standard/base';
5
5
  import { StandardConnectFeature, StandardDisconnectFeature, StandardEventsFeature } from '@wallet-standard/features';
6
6
  import EventEmitter from 'eventemitter3';
7
7
  import { SolanaSignAndSendTransactionOptions, SolanaSignTransactionOptions, ConnectedStandardSolanaWallet } from '@privy-io/js-sdk-core';
8
8
  export { ConnectedStandardSolanaWallet } from '@privy-io/js-sdk-core';
9
- import { P as PrivyEvents } from './events-context-CV9PiG6M.js';
9
+ import { P as PrivyEvents } from './events-context-uQF86xPo.js';
10
10
  import '@coinbase/wallet-sdk';
11
11
  import '@simplewebauthn/browser';
12
12
  import '@solana/kit';
@@ -2492,4 +2492,4 @@ type SessionSignerInput = {
2492
2492
  }[];
2493
2493
  type SignerInput = SessionSignerInput;
2494
2494
 
2495
- export { type ExternalWalletMetadata as $, type WalletListEntry as A, type BaseConnectedEthereumWallet as B, type CreateWalletOptions as C, type AppConfig as D, type EthereumRpcRequestType as E, type FundingMethod as F, type BaseConnectedWallet as G, type HDWalletWithMetadata as H, type ConnectWalletModalOptions as I, type LoginModalOptions as J, type SetWalletRecoveryOptions as K, type LoginMethod as L, type MfaMethod as M, type SignTypedDataParams as N, type OAuthTokens as O, PrivyErrorCode as P, type UnsignedTransactionRequest as Q, type RuntimeLoginOverridableOptions as R, type SolanaChain as S, type FundWalletConfig as T, type User as U, type ConnectedWallet as V, type Wallet as W, type CrossAppProviderDetails as X, type MoonpaySignRequest as Y, type MoonpaySignResponse as Z, type SiwsMessageType as _, type LinkedAccountWithMetadata as a, type TelegramAuthResult as a0, type TelegramWebAppData as a1, type OAuthUserInfo as a2, type OAuthFlowState as a3, type LoginWithCode as a4, type OtpFlowState as a5, type PasskeyFlowState as a6, type SiweFlowState as a7, type FundingResult as a8, type BaseAccountSdkType 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 LineOAuthWithMetadata as aG, type LinkedInOAuthWithMetadata as aH, type AppleOAuthWithMetadata as aI, type FarcasterWithMetadata as aJ, type TelegramWithMetadata as aK, type CrossAppAccountWithMetadata as aL, type PasskeyWithMetadata as aM, type Email as aN, type Phone as aO, type TransactionUIOptions as aP, type ContractUIOptions as aQ, type FundingStatus as aR, type NativeFundingConfig as aS, type PriceDisplayOptions as aT, type Farcaster as aU, type Passkey as aV, type LoginMethodOrderOption as aW, type SiwsFlowState as aX, type PrivyI18nStrings as aY, createDataSuffixPlugin as aZ, type UnsignedTransactionRequestWithChainId as aa, type BaseConnectedWalletType as ab, type SignerInput as ac, type TelegramAuthFlowState as ad, type TypedMessage as ae, type MessageTypes as af, type SmartWallet as ag, type MoonpayCurrencyCode as ah, type MoonpayPaymentMethod as ai, type Quantity as aj, type TransactionLog as ak, type TransactionReceipt as al, type NonEmptyArray as am, type EmailWithMetadata as an, type PhoneWithMetadata as ao, type WalletWithMetadata as ap, type Google as aq, type Twitter as ar, type Discord as as, type Github as at, type LinkedIn as au, type Apple as av, type Tiktok as aw, type Line as ax, type Telegram as ay, type CrossAppAccount as az, type BaseConnectedSolanaWallet as b, type UserRecoveryMethod as c, type LoginToMiniApp as d, type SendTransactionModalUIOptions as e, type SignMessageModalUIOptions as f, type SessionSignerInput as g, type SolanaStandardWallet as h, type SolanaFundingConfig as i, SolanaWalletConnector as j, type MfaSubmitArgs as k, type SolanaRpcRequestType as l, type EthereumRpcResponseType as m, type SolanaRpcResponseType as n, type PrivyFarcasterSignerInitResponse as o, type EIP1193Provider as p, type EntropyIdVerifier as q, type RequestArguments as r, WalletConnector as s, toSolanaWalletConnectors as t, PrivyProxyProvider as u, type WalletClientType as v, type ConnectedWalletMetadata as w, type PrivyClientConfig as x, type ConnectorType as y, type SetBaseAccountSdkType as z };
2495
+ export { type ExternalWalletMetadata as $, type AppConfig as A, type BaseConnectedEthereumWallet as B, type CreateWalletOptions as C, type BaseConnectedWallet as D, type EthereumRpcRequestType as E, type FundingMethod as F, type ConnectorType as G, type HDWalletWithMetadata as H, type ConnectWalletModalOptions as I, type LoginModalOptions as J, type SetWalletRecoveryOptions as K, type LoginMethod as L, type MfaMethod as M, type SignTypedDataParams as N, type OAuthTokens as O, PrivyErrorCode as P, type UnsignedTransactionRequest as Q, type RuntimeLoginOverridableOptions as R, type SolanaChain as S, type FundWalletConfig as T, type User as U, type ConnectedWallet as V, type Wallet as W, type CrossAppProviderDetails as X, type MoonpaySignRequest as Y, type MoonpaySignResponse as Z, type SiwsMessageType as _, type LinkedAccountWithMetadata as a, type TelegramAuthResult as a0, type TelegramWebAppData as a1, type OAuthUserInfo as a2, type OAuthFlowState as a3, type LoginWithCode as a4, type OtpFlowState as a5, type PasskeyFlowState as a6, type SiweFlowState as a7, type FundingResult as a8, type BaseAccountSdkType 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 LineOAuthWithMetadata as aG, type LinkedInOAuthWithMetadata as aH, type AppleOAuthWithMetadata as aI, type FarcasterWithMetadata as aJ, type TelegramWithMetadata as aK, type CrossAppAccountWithMetadata as aL, type PasskeyWithMetadata as aM, type Email as aN, type Phone as aO, type TransactionUIOptions as aP, type ContractUIOptions as aQ, type FundingStatus as aR, type NativeFundingConfig as aS, type PriceDisplayOptions as aT, type Farcaster as aU, type Passkey as aV, type LoginMethodOrderOption as aW, type SiwsFlowState as aX, type PrivyI18nStrings as aY, createDataSuffixPlugin as aZ, type UnsignedTransactionRequestWithChainId as aa, type BaseConnectedWalletType as ab, type SignerInput as ac, type TelegramAuthFlowState as ad, type TypedMessage as ae, type MessageTypes as af, type SmartWallet as ag, type MoonpayCurrencyCode as ah, type MoonpayPaymentMethod as ai, type Quantity as aj, type TransactionLog as ak, type TransactionReceipt as al, type NonEmptyArray as am, type EmailWithMetadata as an, type PhoneWithMetadata as ao, type WalletWithMetadata as ap, type Google as aq, type Twitter as ar, type Discord as as, type Github as at, type LinkedIn as au, type Apple as av, type Tiktok as aw, type Line as ax, type Telegram as ay, type CrossAppAccount as az, type BaseConnectedSolanaWallet as b, type UserRecoveryMethod as c, type LoginToMiniApp as d, type SendTransactionModalUIOptions as e, type SignMessageModalUIOptions as f, type SessionSignerInput as g, type SolanaStandardWallet as h, type SolanaFundingConfig as i, SolanaWalletConnector as j, type MfaSubmitArgs as k, type SolanaRpcRequestType as l, type EthereumRpcResponseType as m, type SolanaRpcResponseType as n, type PrivyFarcasterSignerInitResponse as o, type EIP1193Provider as p, type EntropyIdVerifier as q, type RequestArguments as r, WalletConnector as s, toSolanaWalletConnectors as t, PrivyProxyProvider as u, type WalletClientType as v, type ConnectedWalletMetadata as w, type PrivyClientConfig as x, type SetBaseAccountSdkType as y, type WalletListEntry as z };
@@ -2492,4 +2492,4 @@ type SessionSignerInput = {
2492
2492
  }[];
2493
2493
  type SignerInput = SessionSignerInput;
2494
2494
 
2495
- export { type ExternalWalletMetadata as $, type WalletListEntry as A, type BaseConnectedEthereumWallet as B, type CreateWalletOptions as C, type AppConfig as D, type EthereumRpcRequestType as E, type FundingMethod as F, type BaseConnectedWallet as G, type HDWalletWithMetadata as H, type ConnectWalletModalOptions as I, type LoginModalOptions as J, type SetWalletRecoveryOptions as K, type LoginMethod as L, type MfaMethod as M, type SignTypedDataParams as N, type OAuthTokens as O, PrivyErrorCode as P, type UnsignedTransactionRequest as Q, type RuntimeLoginOverridableOptions as R, type SolanaChain as S, type FundWalletConfig as T, type User as U, type ConnectedWallet as V, type Wallet as W, type CrossAppProviderDetails as X, type MoonpaySignRequest as Y, type MoonpaySignResponse as Z, type SiwsMessageType as _, type LinkedAccountWithMetadata as a, type TelegramAuthResult as a0, type TelegramWebAppData as a1, type OAuthUserInfo as a2, type OAuthFlowState as a3, type LoginWithCode as a4, type OtpFlowState as a5, type PasskeyFlowState as a6, type SiweFlowState as a7, type FundingResult as a8, type BaseAccountSdkType 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 LineOAuthWithMetadata as aG, type LinkedInOAuthWithMetadata as aH, type AppleOAuthWithMetadata as aI, type FarcasterWithMetadata as aJ, type TelegramWithMetadata as aK, type CrossAppAccountWithMetadata as aL, type PasskeyWithMetadata as aM, type Email as aN, type Phone as aO, type TransactionUIOptions as aP, type ContractUIOptions as aQ, type FundingStatus as aR, type NativeFundingConfig as aS, type PriceDisplayOptions as aT, type Farcaster as aU, type Passkey as aV, type LoginMethodOrderOption as aW, type SiwsFlowState as aX, type PrivyI18nStrings as aY, createDataSuffixPlugin as aZ, type UnsignedTransactionRequestWithChainId as aa, type BaseConnectedWalletType as ab, type SignerInput as ac, type TelegramAuthFlowState as ad, type TypedMessage as ae, type MessageTypes as af, type SmartWallet as ag, type MoonpayCurrencyCode as ah, type MoonpayPaymentMethod as ai, type Quantity as aj, type TransactionLog as ak, type TransactionReceipt as al, type NonEmptyArray as am, type EmailWithMetadata as an, type PhoneWithMetadata as ao, type WalletWithMetadata as ap, type Google as aq, type Twitter as ar, type Discord as as, type Github as at, type LinkedIn as au, type Apple as av, type Tiktok as aw, type Line as ax, type Telegram as ay, type CrossAppAccount as az, type BaseConnectedSolanaWallet as b, type UserRecoveryMethod as c, type LoginToMiniApp as d, type SendTransactionModalUIOptions as e, type SignMessageModalUIOptions as f, type SessionSignerInput as g, type SolanaStandardWallet as h, type SolanaFundingConfig as i, SolanaWalletConnector as j, type MfaSubmitArgs as k, type SolanaRpcRequestType as l, type EthereumRpcResponseType as m, type SolanaRpcResponseType as n, type PrivyFarcasterSignerInitResponse as o, type EIP1193Provider as p, type EntropyIdVerifier as q, type RequestArguments as r, WalletConnector as s, toSolanaWalletConnectors as t, PrivyProxyProvider as u, type WalletClientType as v, type ConnectedWalletMetadata as w, type PrivyClientConfig as x, type ConnectorType as y, type SetBaseAccountSdkType as z };
2495
+ export { type ExternalWalletMetadata as $, type AppConfig as A, type BaseConnectedEthereumWallet as B, type CreateWalletOptions as C, type BaseConnectedWallet as D, type EthereumRpcRequestType as E, type FundingMethod as F, type ConnectorType as G, type HDWalletWithMetadata as H, type ConnectWalletModalOptions as I, type LoginModalOptions as J, type SetWalletRecoveryOptions as K, type LoginMethod as L, type MfaMethod as M, type SignTypedDataParams as N, type OAuthTokens as O, PrivyErrorCode as P, type UnsignedTransactionRequest as Q, type RuntimeLoginOverridableOptions as R, type SolanaChain as S, type FundWalletConfig as T, type User as U, type ConnectedWallet as V, type Wallet as W, type CrossAppProviderDetails as X, type MoonpaySignRequest as Y, type MoonpaySignResponse as Z, type SiwsMessageType as _, type LinkedAccountWithMetadata as a, type TelegramAuthResult as a0, type TelegramWebAppData as a1, type OAuthUserInfo as a2, type OAuthFlowState as a3, type LoginWithCode as a4, type OtpFlowState as a5, type PasskeyFlowState as a6, type SiweFlowState as a7, type FundingResult as a8, type BaseAccountSdkType 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 LineOAuthWithMetadata as aG, type LinkedInOAuthWithMetadata as aH, type AppleOAuthWithMetadata as aI, type FarcasterWithMetadata as aJ, type TelegramWithMetadata as aK, type CrossAppAccountWithMetadata as aL, type PasskeyWithMetadata as aM, type Email as aN, type Phone as aO, type TransactionUIOptions as aP, type ContractUIOptions as aQ, type FundingStatus as aR, type NativeFundingConfig as aS, type PriceDisplayOptions as aT, type Farcaster as aU, type Passkey as aV, type LoginMethodOrderOption as aW, type SiwsFlowState as aX, type PrivyI18nStrings as aY, createDataSuffixPlugin as aZ, type UnsignedTransactionRequestWithChainId as aa, type BaseConnectedWalletType as ab, type SignerInput as ac, type TelegramAuthFlowState as ad, type TypedMessage as ae, type MessageTypes as af, type SmartWallet as ag, type MoonpayCurrencyCode as ah, type MoonpayPaymentMethod as ai, type Quantity as aj, type TransactionLog as ak, type TransactionReceipt as al, type NonEmptyArray as am, type EmailWithMetadata as an, type PhoneWithMetadata as ao, type WalletWithMetadata as ap, type Google as aq, type Twitter as ar, type Discord as as, type Github as at, type LinkedIn as au, type Apple as av, type Tiktok as aw, type Line as ax, type Telegram as ay, type CrossAppAccount as az, type BaseConnectedSolanaWallet as b, type UserRecoveryMethod as c, type LoginToMiniApp as d, type SendTransactionModalUIOptions as e, type SignMessageModalUIOptions as f, type SessionSignerInput as g, type SolanaStandardWallet as h, type SolanaFundingConfig as i, SolanaWalletConnector as j, type MfaSubmitArgs as k, type SolanaRpcRequestType as l, type EthereumRpcResponseType as m, type SolanaRpcResponseType as n, type PrivyFarcasterSignerInitResponse as o, type EIP1193Provider as p, type EntropyIdVerifier as q, type RequestArguments as r, WalletConnector as s, toSolanaWalletConnectors as t, PrivyProxyProvider as u, type WalletClientType as v, type ConnectedWalletMetadata as w, type PrivyClientConfig as x, type SetBaseAccountSdkType as y, type WalletListEntry 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, S as SolanaChain } from './types-xIUh0rN4.js';
2
+ import { R as RuntimeLoginOverridableOptions, S as SolanaChain } from './types-DLEfLPEB.js';
3
3
  import { Hex } from 'viem';
4
4
  import { Chain } from '@privy-io/js-sdk-core';
5
5
  import '@coinbase/wallet-sdk';
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, S as SolanaChain } from './types-xIUh0rN4.js';
2
+ import { R as RuntimeLoginOverridableOptions, S as SolanaChain } from './types-DLEfLPEB.js';
3
3
  import { Hex } from 'viem';
4
4
  import { Chain } from '@privy-io/js-sdk-core';
5
5
  import '@coinbase/wallet-sdk';
@@ -0,0 +1 @@
1
+ import{jsx as t}from"react/jsx-runtime";import{HelpCircle as e}from"lucide-react";import{u as o}from"./context-BEE1GR3p.mjs";import{u as i}from"./internal-context-C4ZqP8IF.mjs";import{a as r}from"./get-is-unified-wallet-szLxUazm.mjs";import{S as n}from"./ScreenLayout-DOt2sB2J.mjs";import"react";import"@privy-io/js-sdk-core";import"tinycolor2";import"ofetch";import"viem";import"./ModalHeader-Byy3j4Lh.mjs";import"styled-components";import"./useActiveWallet-CeJ_zia0.mjs";import"zustand";import"viem/utils";import"./use-export-wallet-DmJRcrg3.mjs";import"eventemitter3";import"./get-entropy-details-for-user-DXl-F6zT.mjs";import"./getPublicClient-BltMpU4i.mjs";import"react-device-detect";import"./events-context-CI0iqAXA.mjs";import"@heroicons/react/24/outline/ArrowLeftIcon";import"@heroicons/react/24/outline/ArrowRightIcon";import"@heroicons/react/24/outline/QuestionMarkCircleIcon";import"@heroicons/react/24/outline/XMarkIcon";import"./Screen-Ct4Lyoaf.mjs";import"./index-Dq_xe9dz.mjs";const a=({title:o="Account not found",subtitle:i,appName:r="this app",ctaText:a="Try logging in again",onRetry:m})=>/*#__PURE__*/t(n,{title:o,subtitle:i||`Please try logging in again or go to ${r} to create an account.`,icon:e,iconVariant:"warning",primaryCta:{label:a,onClick:m},watermark:!0}),m={component:()=>{let{navigate:e,setModalData:n,data:m}=r(),c=o(),{getAuthMeta:p,client:s}=i();/*#__PURE__*/return t(a,{appName:c?.name,onRetry:()=>{let t=p();n({...m,login:{...m?.login,...t?.disableSignup?{disableSignup:!0}:{}}}),s?.authFlow&&(s.authFlow=void 0),e("LandingScreen")}})}};export{m as AccountNotFoundScreen,a as AccountNotFoundScreenView,m as default};
@@ -1,4 +1,4 @@
1
- import{jsxs as e,jsx as r,Fragment as o}from"react/jsx-runtime";import{Check as i,Copy as t}from"lucide-react";import{useState as n,useEffect as l}from"react";import{styled as s}from"styled-components";import{D as a}from"./useActiveWallet-CSq3KvGj.mjs";import{S as c}from"./ModalHeader-CSfzkWxZ.mjs";const d=({address:s,showCopyIcon:d,url:h,className:u})=>{let[g,x]=n(!1);function y(e){e.stopPropagation(),navigator.clipboard.writeText(s).then((()=>x(!0))).catch(console.error)}return l((()=>{if(g){let e=setTimeout((()=>x(!1)),3e3);return()=>clearTimeout(e)}}),[g]),/*#__PURE__*/e(m,h?{children:[/*#__PURE__*/r(f,{title:s,className:u,href:`${h}/address/${s}`,target:"_blank",children:a(s)}),d&&/*#__PURE__*/r(c,{onClick:y,size:"sm",style:{gap:"0.375rem"},children:/*#__PURE__*/e(o,g?{children:["Copied",/*#__PURE__*/r(i,{size:16})]}:{children:["Copy",/*#__PURE__*/r(t,{size:16})]})})]}:{children:[/*#__PURE__*/r(p,{title:s,className:u,children:a(s)}),d&&/*#__PURE__*/r(c,{onClick:y,size:"sm",style:{gap:"0.375rem",fontSize:"14px"},children:/*#__PURE__*/e(o,g?{children:["Copied",/*#__PURE__*/r(i,{size:14})]}:{children:["Copy",/*#__PURE__*/r(t,{size:14})]})})]})};let m=s.span`
1
+ import{jsxs as e,jsx as r,Fragment as o}from"react/jsx-runtime";import{Check as i,Copy as t}from"lucide-react";import{useState as n,useEffect as l}from"react";import{styled as s}from"styled-components";import{D as a}from"./useActiveWallet-CeJ_zia0.mjs";import{S as c}from"./ModalHeader-Byy3j4Lh.mjs";const d=({address:s,showCopyIcon:d,url:h,className:u})=>{let[g,x]=n(!1);function y(e){e.stopPropagation(),navigator.clipboard.writeText(s).then((()=>x(!0))).catch(console.error)}return l((()=>{if(g){let e=setTimeout((()=>x(!1)),3e3);return()=>clearTimeout(e)}}),[g]),/*#__PURE__*/e(m,h?{children:[/*#__PURE__*/r(f,{title:s,className:u,href:`${h}/address/${s}`,target:"_blank",children:a(s)}),d&&/*#__PURE__*/r(c,{onClick:y,size:"sm",style:{gap:"0.375rem"},children:/*#__PURE__*/e(o,g?{children:["Copied",/*#__PURE__*/r(i,{size:16})]}:{children:["Copy",/*#__PURE__*/r(t,{size:16})]})})]}:{children:[/*#__PURE__*/r(p,{title:s,className:u,children:a(s)}),d&&/*#__PURE__*/r(c,{onClick:y,size:"sm",style:{gap:"0.375rem",fontSize:"14px"},children:/*#__PURE__*/e(o,g?{children:["Copied",/*#__PURE__*/r(i,{size:14})]}:{children:["Copy",/*#__PURE__*/r(t,{size:14})]})})]})};let m=s.span`
2
2
  display: inline-flex;
3
3
  align-items: center;
4
4
  gap: 0.5rem;
@@ -0,0 +1,6 @@
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{FileCheck as r,ExternalLink as i}from"lucide-react";import"react";import{styled as o}from"styled-components";import{a as s}from"./ModalHeader-Byy3j4Lh.mjs";import{u as a}from"./context-BEE1GR3p.mjs";import{u as n}from"./internal-context-C4ZqP8IF.mjs";import{u as m,a as l}from"./get-is-unified-wallet-szLxUazm.mjs";import{s as c}from"./shouldProceedtoEmbeddedWalletCreationFlow-eeAK_6M1.mjs";import{S as p}from"./ScreenLayout-DOt2sB2J.mjs";import"./useActiveWallet-CeJ_zia0.mjs";import"zustand";import"viem";import"viem/utils";import"./use-export-wallet-DmJRcrg3.mjs";import"@privy-io/js-sdk-core";import"eventemitter3";import"./get-entropy-details-for-user-DXl-F6zT.mjs";import"./getPublicClient-BltMpU4i.mjs";import"react-device-detect";import"./events-context-CI0iqAXA.mjs";import"@heroicons/react/24/outline/ArrowLeftIcon";import"@heroicons/react/24/outline/ArrowRightIcon";import"@heroicons/react/24/outline/QuestionMarkCircleIcon";import"@heroicons/react/24/outline/XMarkIcon";import"tinycolor2";import"ofetch";import"./index-BXdEd5-h.mjs";import"uuid";import"jose";import"@coinbase/wallet-sdk";import"@walletconnect/ethereum-provider";import"./usePrivy-DZkUhG2n.mjs";import"./paths-BzM95ysC.mjs";import"js-cookie";import"./PrivyPluginContext-2QN2dVUw.mjs";import"mipd";import"@privy-io/popup";import"@scure/base";import"@headlessui/react";import"@privy-io/urls";import"@privy-io/ethereum";import"./getEmbeddedConnectedWallet-JzK4iD-L.mjs";import"./frame-CjhCpycO.mjs";import"@privy-io/routes";import"x402/client";import"@privy-io/api-base";import"viem/accounts";import"./use-sign-with-user-signer-BYctG7hm.mjs";import"./Screen-Ct4Lyoaf.mjs";import"./index-Dq_xe9dz.mjs";const d={component:()=>{let{user:t,logout:r}=m(),{onUserCloseViaDialogOrKeybindRef:i,setModalData:o,navigate:s}=l(),p=a(),{acceptTerms:d,closePrivyModal:y,createAnalyticsEvent:v}=n(),h=e=>{e?.preventDefault(),y({shouldCallAuthOnSuccess:!1}),r()};i.current=h;/*#__PURE__*/return e(u,{termsAndConditionsUrl:p?.legal.termsAndConditionsUrl,privacyPolicyUrl:p?.legal.privacyPolicyUrl,onAccept:async e=>{e?.preventDefault(),await d(),t&&c(t,p.embeddedWallets)?(o({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),v({eventName:"embedded_wallet_creation_failure_logout",payload:{error:e,screen:"AffirmativeConsentScreen"}}),r()},callAuthOnSuccessOnClose:!0}}),s("EmbeddedWalletOnAccountCreateScreen")):y()},onDecline:h})}},u=({termsAndConditionsUrl:o,privacyPolicyUrl:a,onAccept:n,onDecline:m,title:l="One last step",subtitle:c="By signing up, you agree to our terms and privacy policy."})=>/*#__PURE__*/e(p,{title:l,subtitle:c,icon:r,primaryCta:{label:"Accept",onClick:n},secondaryCta:{label:"No thanks",onClick:m},watermark:!0,children:(o||a)&&/*#__PURE__*/t(y,{children:[o&&/*#__PURE__*/t(s,{variant:"muted",href:o,target:"_blank",size:"lg",style:{justifyContent:"space-between"},as:"a",children:["View Terms",/*#__PURE__*/e(i,{width:16,height:16,strokeWidth:2.25})]}),a&&/*#__PURE__*/t(s,{variant:"muted",href:a,target:"_blank",size:"lg",style:{justifyContent:"space-between"},as:"a",children:["View Privacy Policy",/*#__PURE__*/e(i,{width:16,height:16,strokeWidth:2.25})]})]})});let y=o.div`
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: 12px;
5
+ margin-top: var(--screen-space);
6
+ `;export{d as AffirmativeConsentScreen,u as AffirmativeConsentScreenView,d as default};
@@ -0,0 +1 @@
1
+ import{jsx as t}from"react/jsx-runtime";import{Lock as e}from"lucide-react";import"react";import{u as o}from"./context-BEE1GR3p.mjs";import{a as i}from"./get-is-unified-wallet-szLxUazm.mjs";import{S as r}from"./ScreenLayout-DOt2sB2J.mjs";import"@privy-io/js-sdk-core";import"tinycolor2";import"viem";import"./internal-context-C4ZqP8IF.mjs";import"ofetch";import"./ModalHeader-Byy3j4Lh.mjs";import"styled-components";import"./useActiveWallet-CeJ_zia0.mjs";import"zustand";import"viem/utils";import"./use-export-wallet-DmJRcrg3.mjs";import"eventemitter3";import"./get-entropy-details-for-user-DXl-F6zT.mjs";import"./getPublicClient-BltMpU4i.mjs";import"react-device-detect";import"./events-context-CI0iqAXA.mjs";import"@heroicons/react/24/outline/ArrowLeftIcon";import"@heroicons/react/24/outline/ArrowRightIcon";import"@heroicons/react/24/outline/QuestionMarkCircleIcon";import"@heroicons/react/24/outline/XMarkIcon";import"./Screen-Ct4Lyoaf.mjs";import"./index-Dq_xe9dz.mjs";const n=({title:o="You don't have access to this app",subtitle:i="Have you been invited?",ctaText:n="Try another account",ctaLink:a,onCtaClick:m})=>/*#__PURE__*/t(r,{title:o,subtitle:i,icon:e,iconVariant:"warning",primaryCta:{label:n,onClick:()=>{a?window.open(a,"_blank"):m?.()}},watermark:!0}),a={component:()=>{let{navigate:e}=i(),r=o(),a=r?.allowlistConfig.errorTitle||"You don't have access to this app",m=r?.allowlistConfig.errorDetail||"Have you been invited?",c=r?.allowlistConfig.errorCtaText||"Try another account",l=r?.allowlistConfig.errorCtaLink;/*#__PURE__*/return t(n,{title:a,subtitle:m,ctaText:c,ctaLink:l??void 0,onCtaClick:()=>{e("LandingScreen")}})}};export{a as AllowlistRejectionScreen,n as AllowlistRejectionScreenView,a as default};
@@ -0,0 +1 @@
1
+ import{jsx as e}from"react/jsx-runtime";import{useRef as t,useCallback as o}from"react";import{u as r}from"./context-BEE1GR3p.mjs";import{u as n,g as i,c as l}from"./internal-context-C4ZqP8IF.mjs";import{a}from"./events-context-CI0iqAXA.mjs";import{a as c}from"./get-is-unified-wallet-szLxUazm.mjs";import{i as s}from"./ConnectWalletView-mIrd9fmT.mjs";import"@privy-io/js-sdk-core";import"tinycolor2";import"ofetch";import"viem";import"@heroicons/react/24/outline";import"@tanstack/react-virtual";import"react-device-detect";import"styled-components";import"./ModalHeader-Byy3j4Lh.mjs";import"./useActiveWallet-CeJ_zia0.mjs";import"zustand";import"viem/utils";import"./use-export-wallet-DmJRcrg3.mjs";import"eventemitter3";import"./get-entropy-details-for-user-DXl-F6zT.mjs";import"./getPublicClient-BltMpU4i.mjs";import"@heroicons/react/24/outline/ArrowLeftIcon";import"@heroicons/react/24/outline/ArrowRightIcon";import"@heroicons/react/24/outline/QuestionMarkCircleIcon";import"@heroicons/react/24/outline/XMarkIcon";import"@heroicons/react/24/outline/CheckIcon";import"./copy-Bx2Jwc5_.mjs";import"./Link-DJ5gq9Di.mjs";import"./QrCode-lPYtXNC_.mjs";import"qrcode";import"./EmailInputForm-Dgoii4vf.mjs";import"./ErrorMessage-D8VaAP5m.mjs";import"./useI18n-BWqAKjsd.mjs";import"./WalletCards-DH1rqayz.mjs";import"./Screen-Ct4Lyoaf.mjs";import"./index-Dq_xe9dz.mjs";const m={component:()=>{let{setWalletConnectionStatus:m,closePrivyModal:p,inProgressAuthFlowRef:u}=n(),{data:d,navigate:C}=c(),j=r(),W=a(),w=d?.externalConnectWallet?.description,f=t(d?.externalConnectWallet?.walletList??j.appearance.walletList),E=t(d?.externalConnectWallet?.walletChainType??j.appearance.walletChainType),h=f.current,x=E.current,g="link"===u.current?void 0:()=>C("LandingScreen");/*#__PURE__*/return e(s,{walletList:h,walletChainType:x,onClose:p,onConnect:o((({connector:e,wallet:t})=>{W("connectWallet","onSuccess",{wallet:t}),m({status:"connected",connectedWallet:t,connector:e,connectError:null,connectRetry:()=>null}),C("ConnectionStatusScreen",!d?.externalConnectWallet?.preSelectedWalletId)}),[m,C,d?.login?.disableSignup,d?.externalConnectWallet?.preSelectedWalletId]),onConnectError:e=>{e instanceof i?(console.warn(e.cause?e.cause:e.message),W("connectWallet","onError",e.privyErrorCode||l.GENERIC_CONNECT_WALLET_ERROR)):(console.warn(e),W("connectWallet","onError",l.UNKNOWN_CONNECT_WALLET_ERROR))},onBack:g,customDescription:w||"",preSelectedWalletId:d?.externalConnectWallet?.preSelectedWalletId,app:j})},isUnauthenticatedScreem:!0};export{m as AuthenticateWithWalletScreen,m as default};
@@ -0,0 +1,2 @@
1
+ import{jsxs as e,Fragment as t,jsx as i}from"react/jsx-runtime";import a from"@heroicons/react/24/outline/CheckCircleIcon";import{useState as r,useEffect as n}from"react";import{createWalletClient as o,custom as s,publicActions as d,createPublicClient as c,http as m,formatUnits as l}from"viem";import{addToDefaultChains as u}from"@privy-io/js-sdk-core";import{b as p,c as h,R as g}from"./Layouts-BlFm53ED.mjs";import{B as f}from"./ModalHeader-Byy3j4Lh.mjs";import{C as v}from"./ScreenHeader-CHmc4-Lu.mjs";import{t as j}from"./FundWalletMethodHeader-Cyn7MCWO.mjs";import{N as y}from"./index-Dq_xe9dz.mjs";import{u as I,t as w}from"./context-BEE1GR3p.mjs";import{u as T,b as C,c as b}from"./internal-context-C4ZqP8IF.mjs";import{Q as S,D as N}from"./useActiveWallet-CeJ_zia0.mjs";import{a as x}from"./get-is-unified-wallet-szLxUazm.mjs";import{u as A}from"./useGetTokenPrice-BS8CeRfC.mjs";import{u as k}from"./get-entropy-details-for-user-DXl-F6zT.mjs";import{O as E}from"./analytics-mkkvFRju.mjs";import{g as F,t as B,a as L,b as P,c as U,u as M}from"./reservoir-CB32KXxK.mjs";import{x as W}from"./index-BXdEd5-h.mjs";import{g as H}from"./getChainName-DjpPdUSc.mjs";import{g as O,a as R}from"./transaction-CnfuREWo.mjs";import{g as q,B as D}from"./BridgeNetworkSelectionView-D8aRUIg2.mjs";import{a as $}from"./getPublicClient-BltMpU4i.mjs";import{T as _}from"./TransferOrBridgeLoadingScreen-rWz1yK-a.mjs";import"styled-components";import"@heroicons/react/24/outline/ArrowLeftIcon";import"@heroicons/react/24/outline/ArrowRightIcon";import"@heroicons/react/24/outline/QuestionMarkCircleIcon";import"@heroicons/react/24/outline/XMarkIcon";import"tinycolor2";import"ofetch";import"zustand";import"viem/utils";import"./use-export-wallet-DmJRcrg3.mjs";import"eventemitter3";import"react-device-detect";import"./events-context-CI0iqAXA.mjs";import"./useGetSolPrice-DaxM-vxD.mjs";import"uuid";import"jose";import"@coinbase/wallet-sdk";import"@walletconnect/ethereum-provider";import"./usePrivy-DZkUhG2n.mjs";import"./paths-BzM95ysC.mjs";import"js-cookie";import"./PrivyPluginContext-2QN2dVUw.mjs";import"mipd";import"@privy-io/popup";import"@scure/base";import"@headlessui/react";import"@privy-io/urls";import"@privy-io/ethereum";import"./getEmbeddedConnectedWallet-JzK4iD-L.mjs";import"./frame-CjhCpycO.mjs";import"@privy-io/routes";import"x402/client";import"@privy-io/api-base";import"viem/accounts";import"./use-sign-with-user-signer-BYctG7hm.mjs";import"./getFormattedUsdFromLamports-B6EqSEho.mjs";import"./getErc20Balance-Bs6MYMo9.mjs";import"./Row-C9vrS4Zi.mjs";import"./ErrorMessage-D8VaAP5m.mjs";import"./Value-tcJV9e0L.mjs";import"./LoadingSkeleton-U6-3yFwI.mjs";import"./Subtitle-CV-2yKE4.mjs";import"./Title-BnzYV3Is.mjs";import"@heroicons/react/24/outline/WalletIcon";import"./Chip-D2-wZOHJ.mjs";import"./NetworkIcon-B48ilzF8.mjs";import"@heroicons/react/24/outline/GlobeAltIcon";import"./shared-FM0rljBt.mjs";import"@heroicons/react/24/outline/ChevronDownIcon";import"./formatErc20TokenAmount-BuPk9xcy.mjs";import"./ethers-CzVYf1X2.mjs";import"./styles-CVcwbZBK.mjs";import"./LinkPasskeyScreen-Bl7uzJ8Q.mjs";import"lucide-react";import"./TodoList-CgrU7uwu.mjs";import"./ScreenLayout-DOt2sB2J.mjs";import"./Screen-Ct4Lyoaf.mjs";import"./InjectedWalletIcon-DLcYOGDj.mjs";import"./Address-BupZf8Rc.mjs";const V={component:()=>{let V=I(),{rpcConfig:G,appId:Q,closePrivyModal:z,createAnalyticsEvent:K}=T(),{navigate:X,setModalData:Y,data:J}=x(),Z=I(),{wallets:ee}=k(),[te,ie]=r(null),[ae,re]=r(null),[ne,oe]=r([]),[se,de]=r(0),[ce,me]=r(!1),[le,ue]=r(!1),[pe,he]=r(!1),[ge,fe]=r(!1),[ve,je]=r(),[ye,Ie]=r();if(!J?.funding||"solana"!==J.funding.chainType)throw Error("Invalid funding data");let{address:we,chain:Te,connectedWallet:Ce}=J.funding,[be,Se]=r(J.funding.amount),Ne=("ethereum"===Ce?.type?Ce:void 0)??ee[0],xe=S(Ne?.walletClientType||"unknown"),Ae=xe?.name||"wallet",[ke,Ee]=r(null);n((()=>{(async()=>{if(!Ne)return;let e=await Ne.getEthereumProvider();Ee(o({account:Ne.address,transport:s(e)}).extend(d))})().catch(console.error)}),[Ne]);let[Fe,Be]=r(0n),Le=O(Fe);n((()=>{let e=V.solanaRpcs[Te];e?W({rpc:e.rpc,address:we}).then((e=>Be(BigInt(e)))).catch(console.error):console.warn("Unable to load solana rpc, skipping balance")}),[]);let[Pe,Ue]=r(),{tokenPrice:Me}=A("solana"),{fundingAmountInBaseUnit:We,fundingAmountInUsd:He}=R({amount:be,fee:0n,tokenPrice:Me,isUsdc:J.funding.isUSDC});if(n((()=>{(async()=>{if(!ke||!Ne)return;let e=["solana:testnet","solana:devnet"].includes(Te);e&&console.warn("Solana testnets are not supported for bridging");let t=u(Z.chains).filter((({testnet:t})=>!!t===e)),i=(await q({chains:t,address:Ne.address,appId:Q,rpcConfig:G})).filter((e=>e.balance>0n));if(i.length<1)return void ie(new C(`Wallet ${N(Ne.address)} does not have enough funds.`,void 0,b.INSUFFICIENT_BALANCE));i.sort(((e,t)=>Number(t.balance-e.balance)));let a=(await Promise.allSettled(i.map((async e=>({...e,quote:await F({isTestnet:!1,input:B({appId:Q,amount:We.toString(),user:Ne.address,recipient:we,destinationChainId:P,destinationCurrency:L,originChainId:e.chain.id})})}))))).filter((e=>"fulfilled"===e.status)).map((e=>e.value));if(a.length<1)return void ie(new C(`Unable to fetch quotes for bridging. Wallet ${N(Ne.address)} does not have enough funds.`,void 0,b.INSUFFICIENT_BALANCE));let r=a.map((({quote:e,balance:t,chain:i})=>({bridgeTx:U(e),balance:t,chain:i,isErc20Quote:!1}))).filter((({bridgeTx:e})=>!!e));if(r.length>1)return void oe(r);let n=r.at(0);n?(ue(!0),Ue({data:n.bridgeTx.data,to:n.bridgeTx.to,value:n.bridgeTx.value,chain:n.chain})):ie(new C(`Unable to select bridge option from quotes. Wallet ${N(Ne.address)} does not have enough funds.`,void 0,b.INSUFFICIENT_BALANCE))})().catch(console.error)}),[ke]),n((()=>{(async()=>{let e,t;if(!ke||!Ne||ce||pe||!Pe)return;me(!0);let i=c({chain:Pe.chain,transport:m($(Pe.chain,G,Q))});try{e=await i.prepareTransactionRequest({account:Ne.address,to:Pe.to,chain:Pe.chain,data:Pe.data,value:BigInt(Pe.value??0)})}catch(e){console.error(e),ne.length>1&&re(e.shortMessage??"Something went wrong")}if(e){me(!1),he(!0);try{await ke.switchChain({id:Pe.chain.id})}catch(e){await ke.addChain({chain:Pe.chain}),await ke.switchChain({id:Pe.chain.id})}try{t=await ke.sendTransaction(e)}catch(e){console.error(e),"TransactionExecutionError"===e.name&&(ne.length<1?ie(new C(e.shortMessage,void 0,b.TRANSACTION_FAILURE)):re(e.shortMessage??"Something went wrong"))}if(t)return await ke.waitForTransactionReceipt({hash:t}),le?(Ie("pending"),void je(t)):(he(!1),fe(!0),void K({eventName:E,payload:{provider:"external",status:"success",txHash:t,address:Ne.address,chainId:Pe.chain.id,chainType:"ethereum",value:Pe.value?l(BigInt(Pe.value),18):void 0,token:"ETH",destination:we,destinationClusterName:"mainnet-beta",destinationChainType:"solana",destinationValue:l(We,9),destinationToken:"SOL"}}));he(!1)}else me(!1)})().catch(console.error)}),[ke,Pe]),M({transactionHash:ve,isTestnet:!1,bridgingStatus:ye,setBridgingStatus:Ie,onSuccess({transactionHash:e}){ue(!1),fe(!0),K({eventName:E,payload:{provider:"external",status:"success",txHash:e,address:Ne?.address,chainId:Pe?.chain.id,chainType:"ethereum",value:Pe?.value?l(BigInt(Pe.value),18):void 0,token:"ETH",destination:we,destinationClusterName:"mainnet-beta",destinationChainType:"solana",destinationValue:l(We,9),destinationToken:"SOL"}})},onFailure({error:e}){ue(!1),ie(e)}}),n((()=>{te&&(Y({funding:J?.funding,solanaFundingData:J?.solanaFundingData,sendTransaction:J?.sendTransaction,errorModalData:{error:te,previousScreen:"TransferFromWalletScreen"}}),X("ErrorScreen",!1))}),[te]),n((()=>{if(!ge)return;let e=setTimeout(z,w);return()=>clearTimeout(e)}),[ge]),ge/*#__PURE__*/)return e(t,{children:[/*#__PURE__*/i(j,{}),/*#__PURE__*/i(p,{}),/*#__PURE__*/e(h,{children:[/*#__PURE__*/i(a,{color:"var(--privy-color-success)",width:"64px",height:"64px"}),/*#__PURE__*/i(v,{title:"Success!",description:`You’ve successfully added ${be} SOL to your ${Z.name} wallet. It may take a minute before the funds are available to use.`})]}),/*#__PURE__*/i(g,{}),/*#__PURE__*/i(f,{})]});let Oe=ne[se];return ne.length>1&&Oe?/*#__PURE__*/i(D,{displayName:Ae,configuredFundingChain:Te,formattedBalance:Le,fundingAmount:be,fundingCurrency:"SOL",fundingAmountInUsd:He,options:ne,selectedOption:Oe,isPreparing:ce,isSubmitting:pe,addressToFund:we,fundingWalletAddress:Ne?.address||"",errorMessage:ae,onSubmit:()=>{J.funding?.amount!==be?async function(){if(Ne&&Oe)try{let e=await F({isTestnet:!1,input:B({appId:Q,amount:We.toString(),user:Ne.address,recipient:we,destinationChainId:P,destinationCurrency:L,originChainId:Oe.chain.id})}),t=U(e);if(!t)throw Error("Invalid transaction request");ue(!0),Ue({data:t.data,to:t.to,value:t.value,chain:Oe.chain})}catch(e){console.error(e),ie(new C("Unable to fetch quotes for bridging",e,b.INSUFFICIENT_BALANCE))}}().catch(console.error):Ue({to:Oe.bridgeTx.to,data:Oe.bridgeTx.data,value:Oe.bridgeTx.value,chain:Oe.chain})},onSelect:e=>{e!==se&&(re(null),de(e))},onAmountChange:Se}):pe&&Ne?/*#__PURE__*/i(_,{walletClientType:Ne?.walletClientType||"unknown",displayName:Ae,addressToFund:we,isBridging:le,isErc20Flow:!1,chainId:"solana",chainName:H(Te),totalPriceInUsd:void 0,totalPriceInNativeCurrency:void 0,gasPriceInUsd:void 0,gasPriceInNativeCurrency:void 0}):
2
+ /*#__PURE__*/e(t,{children:[/*#__PURE__*/i(j,{}),/*#__PURE__*/i(y,{}),/*#__PURE__*/i("div",{style:{marginTop:"1rem"}}),/*#__PURE__*/i(f,{})]})}};export{V as AwaitingEvmToSolBridgingScreen,V as default};
@@ -0,0 +1,2 @@
1
+ import{jsxs as e,Fragment as t,jsx as r}from"react/jsx-runtime";import i from"@heroicons/react/24/outline/CheckCircleIcon";import{useState as a,useEffect as n}from"react";import{parseEther as o,createWalletClient as s,custom as d,publicActions as c,createPublicClient as l,http as m,encodeFunctionData as u,formatUnits as p}from"viem";import{addToDefaultChains as h}from"@privy-io/js-sdk-core";import{b as f,c as g,R as v}from"./Layouts-BlFm53ED.mjs";import{B as y}from"./ModalHeader-Byy3j4Lh.mjs";import{C}from"./ScreenHeader-CHmc4-Lu.mjs";import{t as I}from"./FundWalletMethodHeader-Cyn7MCWO.mjs";import{N as j}from"./index-Dq_xe9dz.mjs";import{u as w,t as T}from"./context-BEE1GR3p.mjs";import{u as b,b as E,c as S}from"./internal-context-C4ZqP8IF.mjs";import{Q as N,D as A}from"./useActiveWallet-CeJ_zia0.mjs";import{a as x}from"./get-is-unified-wallet-szLxUazm.mjs";import{u as k}from"./useGetTokenPrice-BS8CeRfC.mjs";import{u as F}from"./get-entropy-details-for-user-DXl-F6zT.mjs";import{E as B,a as P}from"./transfer-6YztDh-t.mjs";import{f as M}from"./formatErc20TokenAmount-BuPk9xcy.mjs";import{c as U,a as L,g as W,s as H}from"./ethers-CzVYf1X2.mjs";import{O as $}from"./analytics-mkkvFRju.mjs";import{t as q,g as D,c as R,u as Q}from"./reservoir-CB32KXxK.mjs";import{y as _}from"./index-BXdEd5-h.mjs";import{g as O,B as V}from"./BridgeNetworkSelectionView-D8aRUIg2.mjs";import{g as G}from"./getErc20Balance-Bs6MYMo9.mjs";import{a as z}from"./getPublicClient-BltMpU4i.mjs";import{T as K}from"./TransferOrBridgeLoadingScreen-rWz1yK-a.mjs";import"styled-components";import"@heroicons/react/24/outline/ArrowLeftIcon";import"@heroicons/react/24/outline/ArrowRightIcon";import"@heroicons/react/24/outline/QuestionMarkCircleIcon";import"@heroicons/react/24/outline/XMarkIcon";import"tinycolor2";import"ofetch";import"zustand";import"viem/utils";import"./use-export-wallet-DmJRcrg3.mjs";import"eventemitter3";import"react-device-detect";import"./events-context-CI0iqAXA.mjs";import"./useGetSolPrice-DaxM-vxD.mjs";import"uuid";import"jose";import"@coinbase/wallet-sdk";import"@walletconnect/ethereum-provider";import"./usePrivy-DZkUhG2n.mjs";import"./paths-BzM95ysC.mjs";import"js-cookie";import"./PrivyPluginContext-2QN2dVUw.mjs";import"mipd";import"@privy-io/popup";import"@scure/base";import"@headlessui/react";import"@privy-io/urls";import"@privy-io/ethereum";import"./getEmbeddedConnectedWallet-JzK4iD-L.mjs";import"./frame-CjhCpycO.mjs";import"@privy-io/routes";import"x402/client";import"@privy-io/api-base";import"viem/accounts";import"./use-sign-with-user-signer-BYctG7hm.mjs";import"./Row-C9vrS4Zi.mjs";import"./ErrorMessage-D8VaAP5m.mjs";import"./Value-tcJV9e0L.mjs";import"./LoadingSkeleton-U6-3yFwI.mjs";import"./Subtitle-CV-2yKE4.mjs";import"./Title-BnzYV3Is.mjs";import"@heroicons/react/24/outline/WalletIcon";import"./getChainName-DjpPdUSc.mjs";import"./Chip-D2-wZOHJ.mjs";import"./NetworkIcon-B48ilzF8.mjs";import"@heroicons/react/24/outline/GlobeAltIcon";import"./shared-FM0rljBt.mjs";import"@heroicons/react/24/outline/ChevronDownIcon";import"./styles-CVcwbZBK.mjs";import"./LinkPasskeyScreen-Bl7uzJ8Q.mjs";import"lucide-react";import"./TodoList-CgrU7uwu.mjs";import"./ScreenLayout-DOt2sB2J.mjs";import"./Screen-Ct4Lyoaf.mjs";import"./InjectedWalletIcon-DLcYOGDj.mjs";import"./Address-BupZf8Rc.mjs";const X={component:()=>{let{rpcConfig:X,appId:Y,closePrivyModal:Z,createAnalyticsEvent:J}=b(),{navigate:ee,setModalData:te,data:re}=x(),ie=w(),{wallets:ae}=F(),[ne,oe]=a(!1),[se,de]=a(0n),[ce,le]=a(!1),[me,ue]=a(null),[pe,he]=a(null),[fe,ge]=a([]),[ve,ye]=a(0),[Ce,Ie]=a(!1),[je,we]=a(!1),[Te,be]=a(!1),[Ee,Se]=a(!1),[Ne,Ae]=a(),[xe,ke]=a();if(!re?.funding||"ethereum"!==re.funding.chainType)throw Error("Invalid funding data");let{erc20ContractInfo:Fe,chain:Be,connectedWallet:Pe}=re.funding,Me=re.funding.address,Ue=re.funding.erc20Address,[Le,We]=a(re.funding.amount);n((()=>{Ue&&!Fe&&ue(Error("Unable to fetch token details"))}),[]);let He=!!Ue&&!!Fe,$e=He?BigInt(parseFloat(Le)*10**Fe.decimals):o(Le),qe=("ethereum"===Pe?.type?Pe:void 0)??ae[0],De=N(qe?.walletClientType||"unknown"),Re=De?.name||"wallet",[Qe,_e]=a(null);n((()=>{(async()=>{if(!qe)return;let e=await qe.getEthereumProvider();_e(s({account:qe.address,transport:d(e)}).extend(c))})().catch(console.error)}),[qe]);let[Oe,Ve]=a(0n);n((()=>{l({chain:Be,transport:m(z(Be,X,Y))}).getBalance({address:Me}).then(Ve).catch(console.error)}),[]);let[Ge,ze]=a(0n);n((()=>{He&&G({chain:Be,address:Me,appId:Y,rpcConfig:X,erc20Address:Ue}).then((e=>ze(e.balance))).catch(console.error)}),[]);let{tokenPrice:Ke}=k(Be.id),[Xe,Ye]=a({to:Me,chain:Be,value:$e,data:void 0});n((()=>{(async()=>{let e,t;if(!Qe||!qe||Ce||Te)return;Ie(!0);let r=l({chain:Xe.chain,transport:m(z(Xe.chain,X,Y))});if(He&&!Xe.data)return await r.simulateContract({address:Ue,chain:Xe.chain,abi:B,functionName:"transfer",args:[Me,$e],account:qe.address}).catch((e=>{if("ContractFunctionZeroDataError"===e?.cause?.name||e?.message?.includes("returned no data"))return r.simulateContract({address:Ue,chain:Xe.chain,abi:P,functionName:"transfer",args:[Me,$e],account:qe.address}).catch((e=>{console.warn("Simulated token transfer failed with error, fetching bridge options.",e)}));console.warn("Simulated token transfer failed with error, fetching bridge options.",e)}))?(Ie(!1),void Ye({to:Ue,chain:Xe.chain,data:u({abi:B,functionName:"transfer",args:[Me,$e]}),value:"0x0"})):(Ie(!1),void le(!0));try{e=await r.prepareTransactionRequest({account:qe.address,to:Xe.to,chain:Xe.chain,data:Xe.data,value:BigInt(Xe.value??0)})}catch(e){if(console.error(e),fe.length>1)he(e.shortMessage??"Something went wrong");else if(je&&0===fe.length)return void ue(new E(`Wallet ${A(qe.address)} does not have enough funds.`,void 0,S.INSUFFICIENT_BALANCE))}if(!e)return Ie(!1),void le(!0);Ie(!1),be(!0),oe(!0),de(e.gas);try{await Qe.switchChain({id:Xe.chain.id})}catch(e){await Qe.addChain({chain:Xe.chain}),await Qe.switchChain({id:Xe.chain.id})}try{t=await Qe.sendTransaction(e)}catch(e){if(console.error(e),"TransactionExecutionError"===e.name)if(fe.length<1){let t=e.shortMessage;(e.shortMessage.includes("rejected the request")||e.details.includes("rejected the request"))&&(t="User rejected the request."),ue(new E(t,void 0,S.TRANSACTION_FAILURE))}else he(e.shortMessage??"Something went wrong")}if(t)return await Qe.waitForTransactionReceipt({hash:t}),be(!1),je?(Ae(t),void ke("pending")):(Se(!0),te(_(re,"completed",t,qe?.walletClientType,He,Fe,Be)),void J({eventName:$,payload:{provider:"external",status:"success",txHash:t,address:qe.address,chainId:Xe.chain.id,chainType:"ethereum",value:Xe.value?p(BigInt(Xe.value),Fe?.decimals??18):void 0,token:Fe?.symbol??Ue??"ETH",destinationAddress:Me,destinationChainId:Be.id,destinationChainType:"ethereum",destinationValue:$e?p($e,Fe?.decimals??18):void 0,destinationToken:Fe?.symbol??Ue??Be.nativeCurrency.name}}));be(!1)})().catch(console.error)}),[Qe,Xe]),n((()=>{(async()=>{if(!ce||!Qe||!qe)return;let e=h(ie.chains).filter((e=>e.id!==Be.id&&!!e.testnet==!!Be.testnet));He&&e.unshift(Be);let t=await O({chains:e,address:qe.address,appId:Y,rpcConfig:X,includeUsdc:re.funding?.isUSDC}),r=He?t.filter((e=>e.balance>0n)):t.filter((e=>e.balance>$e)),i=He&&t.every((e=>0n===e.balance));if(r.length<1)return void ue(new E(i?`Wallet ${A(qe.address)} doesn't have enough funds to cover gas fees. Top up your wallet and try again.`:`Wallet ${A(qe.address)} does not have enough funds.`,void 0,S.INSUFFICIENT_BALANCE));r.sort(((e,t)=>Number(He?(t.erc20Balance??0n)-(e.erc20Balance??0n):t.balance-e.balance)));let a=r.flatMap((e=>{let t=[{...e,isErc20Quote:!1,isTestnet:!!Be.testnet,input:q({appId:Y,amount:$e.toString(),user:qe.address,recipient:Me,destinationChainId:Be.id,destinationCurrency:Ue,originChainId:e.chain.id})}];return He&&Ue&&(e.erc20Balance??0n)>=$e&&t.push({...e,isErc20Quote:!0,isTestnet:!!Be.testnet,input:q({appId:Y,amount:$e.toString(),user:qe.address,recipient:Me,destinationChainId:Be.id,destinationCurrency:Ue,originChainId:e.chain.id,originCurrency:e.erc20Address})}),t})),n=(await Promise.allSettled(a.map((async e=>({...e,quote:await D(e)}))))).filter((e=>"fulfilled"===e.status)).map((e=>e.value));if(n.length<1)return void ue(new E(`Wallet ${A(qe.address)} does not have enough funds.`,void 0,S.INSUFFICIENT_BALANCE));let o=n.map((e=>({bridgeTx:R(e.quote),balance:e.balance,chain:e.chain,erc20Balance:e.erc20Balance,isErc20Quote:e.isErc20Quote}))).filter((e=>!!e.bridgeTx));if(o.length>1)return void ge(o);let s=o[0];s?(we(!0),Ye({data:s.bridgeTx.data,to:s.bridgeTx.to,value:s.bridgeTx.value,chain:s.chain})):ue(new E(`Wallet ${A(qe.address)} does not have enough funds.`,void 0,S.INSUFFICIENT_BALANCE))})().catch(console.error)}),[ce]),Q({transactionHash:Ne,isTestnet:!!Be.testnet,bridgingStatus:xe,setBridgingStatus:ke,onSuccess({transactionHash:e}){we(!1),Se(!0),te(_(re,"completed",e,qe?.walletClientType,He,Fe,Be)),J({eventName:$,payload:{provider:"external",status:"success",txHash:e,address:qe?.address,chainId:Xe.chain.id,chainType:"ethereum",value:Xe.value?p(BigInt(Xe.value),Fe?.decimals??18):void 0,token:Fe?.symbol??Ue??"ETH",destinationAddress:Me,destinationChainId:Be.id,destinationChainType:"ethereum",destinationValue:$e?p($e,Fe?.decimals??18):void 0,destinationToken:Fe?.symbol??Ue??Be.nativeCurrency.name}})},onFailure({error:e}){we(!1),ue(e)}}),n((()=>{me&&(te({funding:re?.funding,solanaFundingData:re?.solanaFundingData,sendTransaction:re?.sendTransaction,errorModalData:{error:me,previousScreen:"TransferFromWalletScreen"}}),ee("ErrorScreen",!1))}),[me]);let Ze=!He&&Ke?U(Le??"0",Ke):void 0,Je=He?se:H([se,$e]),et=Je&&Ke?L(Je,Ke):void 0,tt=Je?W(Je,re?.funding?.erc20Address?re?.funding?.erc20ContractInfo?.symbol||"ETH":re?.funding?.chain.nativeCurrency.symbol||"ETH"):void 0,rt=se&&Ke?L(se,Ke):void 0,it=se?W(se,Be?.nativeCurrency?.symbol||"ETH"):void 0;if(n((()=>{if(!Ee)return;let e=setTimeout(Z,T);return()=>clearTimeout(e)}),[Ee]),Ee/*#__PURE__*/)return e(t,{children:[/*#__PURE__*/r(I,{}),/*#__PURE__*/r(f,{}),/*#__PURE__*/e(g,{children:[/*#__PURE__*/r(i,{color:"var(--privy-color-success)",width:"64px",height:"64px"}),/*#__PURE__*/r(C,{title:"Success!",description:`You’ve successfully added ${Le} ${He?Fe.symbol:Be.nativeCurrency.symbol} to your ${ie.name} wallet. It may take a minute before the funds are available to use.`})]}),/*#__PURE__*/r(v,{}),/*#__PURE__*/r(y,{})]});let at=He?`${M({amount:Ge,decimals:Fe.decimals})} ${Fe.symbol}`:W(Oe,Be.nativeCurrency.symbol,3,!0),nt=fe[ve];return fe.length>1&&nt?/*#__PURE__*/r(V,{displayName:Re,configuredFundingChain:Be,erc20ContractInfo:Fe,formattedBalance:at,fundingAmount:Le,fundingCurrency:He?Fe.symbol:Be.nativeCurrency.symbol,fundingAmountInUsd:Ze,options:fe,selectedOption:nt,isPreparing:Ce,isSubmitting:Te,addressToFund:Me,fundingWalletAddress:qe?.address||"",errorMessage:pe,onSubmit:()=>{re.funding?.amount!==Le?async function(){if(qe&&nt)try{let e=await D({isTestnet:!!Be.testnet,input:q({appId:Y,amount:$e.toString(),user:qe.address,recipient:Me,destinationChainId:Be.id,destinationCurrency:Ue,originChainId:nt.chain.id})}),t=R(e);if(!t)throw Error("Invalid transaction request");we(!0),Ye({data:t.data,to:t.to,value:t.value,chain:nt.chain})}catch(e){console.error(e),ue(new E("Unable to fetch quotes for bridging",e,S.INSUFFICIENT_BALANCE))}}().catch(console.error):Ye({to:nt.bridgeTx.to,data:nt.bridgeTx.data,value:nt.bridgeTx.value,chain:nt.chain})},onSelect:e=>{e!==ve&&(he(null),ye(e))},onAmountChange:We}):ne&&se&&qe&&re?.funding?/*#__PURE__*/r(K,{walletClientType:qe?.walletClientType||"unknown",displayName:Re,addressToFund:Me,isBridging:je,isErc20Flow:He,totalPriceInUsd:et,totalPriceInNativeCurrency:tt,gasPriceInUsd:rt,gasPriceInNativeCurrency:it,chainId:Be.id,chainName:Be.name}):
2
+ /*#__PURE__*/e(t,{children:[/*#__PURE__*/r(I,{}),/*#__PURE__*/r(j,{}),/*#__PURE__*/r("div",{style:{marginTop:"1rem"}}),/*#__PURE__*/r(y,{})]})}};export{X as AwaitingExternalEthereumTransferScreen,X as default};