@crossmint/client-sdk-react-ui 2.2.20 → 2.3.1

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 (400) hide show
  1. package/dist/chunk-23YVHBPI.js +11 -0
  2. package/dist/{chunk-5H3ARLI7.js → chunk-2JGEN3P5.js} +1 -1
  3. package/dist/chunk-2SBA4RZZ.cjs +17 -0
  4. package/dist/chunk-36S5R2NM.js +53 -0
  5. package/dist/{chunk-F2PJZF7H.cjs → chunk-3BAA6AWA.cjs} +1 -1
  6. package/dist/chunk-3X24JZVG.cjs +6 -0
  7. package/dist/{chunk-3EQH236A.js → chunk-3XE2WXFG.js} +1 -1
  8. package/dist/chunk-3YLL6H32.js +2 -0
  9. package/dist/{chunk-DQHM2ITY.js → chunk-44MREOU3.js} +1 -1
  10. package/dist/{chunk-T7XPEJNO.cjs → chunk-4OGRGEDQ.cjs} +1 -1
  11. package/dist/chunk-56YL3XJW.cjs +1 -0
  12. package/dist/chunk-5J6CUTGJ.cjs +53 -0
  13. package/dist/{chunk-JQQUNBXY.cjs → chunk-5JVQB6JZ.cjs} +1 -1
  14. package/dist/chunk-5MRPY46P.js +46 -0
  15. package/dist/chunk-5UKANIFU.cjs +2 -0
  16. package/dist/{chunk-4BH7ZTBT.cjs → chunk-6IU2VFR7.cjs} +1 -1
  17. package/dist/chunk-7U6Q4ELB.cjs +35 -0
  18. package/dist/chunk-AHMPKIEY.cjs +14 -0
  19. package/dist/{chunk-JO7RY6MG.cjs → chunk-ANSLIVQ7.cjs} +1 -1
  20. package/dist/chunk-AOBO3CEQ.js +14 -0
  21. package/dist/chunk-BAXCSO7J.js +1 -0
  22. package/dist/chunk-BPEDL7VV.cjs +1 -0
  23. package/dist/{chunk-4M6MLYJX.js → chunk-BR4D3ARS.js} +1 -1
  24. package/dist/chunk-BWCRTWMO.js +3 -0
  25. package/dist/chunk-CDQFTAM2.cjs +1 -0
  26. package/dist/chunk-CIGMEAL7.js +231 -0
  27. package/dist/chunk-CILUBBIE.cjs +1 -0
  28. package/dist/chunk-DFNTIHTH.js +2 -0
  29. package/dist/chunk-DFSB3TWF.js +1 -0
  30. package/dist/chunk-DJZOP4MT.cjs +34 -0
  31. package/dist/{chunk-ND3NGHHK.js → chunk-DWQ5A3JR.js} +1 -1
  32. package/dist/chunk-EA7H4AXL.js +1 -0
  33. package/dist/chunk-EAWYV5ZO.cjs +1 -0
  34. package/dist/chunk-EDALAJ5I.cjs +1 -0
  35. package/dist/chunk-EO53B7LL.cjs +1 -0
  36. package/dist/chunk-F4LXE6LZ.js +1 -0
  37. package/dist/{chunk-7SLUOHO2.cjs → chunk-FBNBB4BQ.cjs} +1 -1
  38. package/dist/chunk-G355BJA3.cjs +1 -0
  39. package/dist/{chunk-L2LMLMMN.js → chunk-GCL4OQK4.js} +1 -1
  40. package/dist/chunk-GKVX7FEM.js +40 -0
  41. package/dist/chunk-H3CPTTQQ.js +1 -0
  42. package/dist/chunk-H6AOYLPM.cjs +1 -0
  43. package/dist/chunk-HHI2XRKR.js +1 -0
  44. package/dist/chunk-HJGCM4XH.js +13 -0
  45. package/dist/chunk-I4D3YJW2.js +0 -0
  46. package/dist/chunk-IDQKQMA2.cjs +2 -0
  47. package/dist/chunk-J4OVY4SC.js +1 -0
  48. package/dist/chunk-JL7YHC7D.js +34 -0
  49. package/dist/chunk-JVXYIBS3.cjs +46 -0
  50. package/dist/{chunk-NXNLHCGF.cjs → chunk-KEBHXJ3R.cjs} +1 -1
  51. package/dist/chunk-KFFPM6JM.js +1 -0
  52. package/dist/chunk-LUSXGZYB.js +66 -0
  53. package/dist/chunk-MS75EYBH.js +98 -0
  54. package/dist/chunk-MVVTLZ2S.cjs +231 -0
  55. package/dist/chunk-NZUCXN2O.js +6 -0
  56. package/dist/chunk-O3H2EYFA.cjs +160 -0
  57. package/dist/chunk-O5IPDCMT.js +48 -0
  58. package/dist/chunk-OAHZHKRR.js +1 -0
  59. package/dist/{chunk-L2FU52RJ.js → chunk-OKJ7OOAK.js} +1 -1
  60. package/dist/chunk-OVJIGWD7.cjs +66 -0
  61. package/dist/chunk-Q2GJN22S.js +1 -0
  62. package/dist/chunk-QFUZG5YR.js +1 -0
  63. package/dist/{chunk-BUJDXHVE.js → chunk-QP7Z5XRL.js} +1 -1
  64. package/dist/chunk-QQP4GR7V.js +35 -0
  65. package/dist/chunk-RV2X7AFS.js +160 -0
  66. package/dist/chunk-S4BKL6MR.cjs +11 -0
  67. package/dist/chunk-SCHRLC2I.cjs +3 -0
  68. package/dist/{chunk-F7JUPGHV.cjs → chunk-STLS4CWK.cjs} +1 -1
  69. package/dist/chunk-TBD7RAFW.js +17 -0
  70. package/dist/{chunk-B3PLOTUC.js → chunk-UCRAJLIL.js} +1 -1
  71. package/dist/chunk-UG5R7IPH.js +3 -0
  72. package/dist/chunk-UHFCB2EY.js +1 -0
  73. package/dist/chunk-UMWTEGO6.cjs +1 -0
  74. package/dist/{chunk-S5S2XFIC.cjs → chunk-UT2DM6MM.cjs} +1 -1
  75. package/dist/{chunk-2OIZFMK3.cjs → chunk-UVCJU52A.cjs} +1 -1
  76. package/dist/chunk-VRFL53NP.cjs +40 -0
  77. package/dist/chunk-VXAHFAP4.cjs +1 -0
  78. package/dist/chunk-W5RDCN5G.cjs +1 -0
  79. package/dist/chunk-WK3BTTQG.cjs +13 -0
  80. package/dist/chunk-XBXL7GMY.cjs +48 -0
  81. package/dist/chunk-XFYW7RD2.js +1 -0
  82. package/dist/{chunk-2RMGS33N.js → chunk-XJF56AER.js} +1 -1
  83. package/dist/chunk-XNNGBVFG.cjs +98 -0
  84. package/dist/chunk-XUCYC4BR.js +1 -0
  85. package/dist/chunk-YCYSZLQ2.cjs +1 -0
  86. package/dist/chunk-YGN7O63X.cjs +3 -0
  87. package/dist/{chunk-ZCIYQIQJ.cjs → chunk-ZCSO2ULL.cjs} +1 -1
  88. package/dist/chunk-ZT6OJ47F.cjs +1 -0
  89. package/dist/components/CrossmintNFTCollectionView.cjs +1 -1
  90. package/dist/components/CrossmintNFTCollectionView.js +1 -1
  91. package/dist/components/CrossmintNFTDetail.cjs +1 -1
  92. package/dist/components/CrossmintNFTDetail.js +1 -1
  93. package/dist/components/auth/AuthForm.cjs +1 -1
  94. package/dist/components/auth/AuthForm.d.cts +3 -2
  95. package/dist/components/auth/AuthForm.d.ts +3 -2
  96. package/dist/components/auth/AuthForm.js +1 -1
  97. package/dist/components/auth/AuthFormBackButton.cjs +1 -1
  98. package/dist/components/auth/AuthFormBackButton.d.cts +3 -1
  99. package/dist/components/auth/AuthFormBackButton.d.ts +3 -1
  100. package/dist/components/auth/AuthFormBackButton.js +1 -1
  101. package/dist/components/auth/AuthFormDialog.cjs +1 -1
  102. package/dist/components/auth/AuthFormDialog.js +1 -1
  103. package/dist/components/auth/EmbeddedAuthForm.cjs +1 -1
  104. package/dist/components/auth/EmbeddedAuthForm.js +1 -1
  105. package/dist/components/auth/PasskeyPrompt.cjs +1 -1
  106. package/dist/components/auth/PasskeyPrompt.d.cts +3 -2
  107. package/dist/components/auth/PasskeyPrompt.d.ts +3 -2
  108. package/dist/components/auth/PasskeyPrompt.js +1 -1
  109. package/dist/components/auth/methods/email/EmailAuthFlow.cjs +1 -1
  110. package/dist/components/auth/methods/email/EmailAuthFlow.js +1 -1
  111. package/dist/components/auth/methods/email/EmailOTPInput.cjs +1 -1
  112. package/dist/components/auth/methods/email/EmailOTPInput.d.cts +1 -2
  113. package/dist/components/auth/methods/email/EmailOTPInput.d.ts +1 -2
  114. package/dist/components/auth/methods/email/EmailOTPInput.js +1 -1
  115. package/dist/components/auth/methods/email/EmailSignIn.cjs +1 -1
  116. package/dist/components/auth/methods/email/EmailSignIn.js +1 -1
  117. package/dist/components/auth/methods/farcaster/FarcasterSignIn.cjs +1 -1
  118. package/dist/components/auth/methods/farcaster/FarcasterSignIn.js +1 -1
  119. package/dist/components/auth/methods/google/ContinueWithGoogle.cjs +1 -1
  120. package/dist/components/auth/methods/google/ContinueWithGoogle.js +1 -1
  121. package/dist/components/auth/methods/google/GoogleSignIn.cjs +1 -1
  122. package/dist/components/auth/methods/google/GoogleSignIn.js +1 -1
  123. package/dist/components/auth/methods/twitter/TwitterSignIn.cjs +1 -1
  124. package/dist/components/auth/methods/twitter/TwitterSignIn.js +1 -1
  125. package/dist/components/auth/methods/web3/Web3AuthFlow.cjs +1 -1
  126. package/dist/components/auth/methods/web3/Web3AuthFlow.js +1 -1
  127. package/dist/components/auth/methods/web3/Web3AuthFlowButton.cjs +1 -1
  128. package/dist/components/auth/methods/web3/Web3AuthFlowButton.js +1 -1
  129. package/dist/components/auth/methods/web3/Web3Connectors.cjs +1 -1
  130. package/dist/components/auth/methods/web3/Web3Connectors.js +1 -1
  131. package/dist/components/common/CountdownButton.cjs +1 -1
  132. package/dist/components/common/CountdownButton.js +1 -1
  133. package/dist/components/common/CrossmintLogoV2/CrossmintLogoV2.cjs +1 -1
  134. package/dist/components/common/CrossmintLogoV2/CrossmintLogoV2.js +1 -1
  135. package/dist/components/common/Dialog.cjs +1 -1
  136. package/dist/components/common/Dialog.d.cts +24 -21
  137. package/dist/components/common/Dialog.d.ts +24 -21
  138. package/dist/components/common/Dialog.js +1 -1
  139. package/dist/components/common/Divider.cjs +1 -1
  140. package/dist/components/common/Divider.js +1 -1
  141. package/dist/components/common/InputOTP.cjs +1 -1
  142. package/dist/components/common/InputOTP.d.cts +2 -10
  143. package/dist/components/common/InputOTP.d.ts +2 -10
  144. package/dist/components/common/InputOTP.js +1 -1
  145. package/dist/components/common/OAuthButton.cjs +1 -0
  146. package/dist/components/common/OAuthButton.d.cts +14 -0
  147. package/dist/components/common/OAuthButton.d.ts +14 -0
  148. package/dist/components/common/OAuthButton.js +1 -0
  149. package/dist/components/common/ScreenReaderText.cjs +1 -0
  150. package/dist/components/common/ScreenReaderText.d.cts +6 -0
  151. package/dist/components/common/ScreenReaderText.d.ts +6 -0
  152. package/dist/components/common/ScreenReaderText.js +1 -0
  153. package/dist/components/common/SecuredByCrossmint.cjs +1 -1
  154. package/dist/components/common/SecuredByCrossmint.d.cts +2 -2
  155. package/dist/components/common/SecuredByCrossmint.d.ts +2 -2
  156. package/dist/components/common/SecuredByCrossmint.js +1 -1
  157. package/dist/components/common/Spinner.cjs +1 -1
  158. package/dist/components/common/Spinner.d.cts +1 -2
  159. package/dist/components/common/Spinner.d.ts +1 -2
  160. package/dist/components/common/Spinner.js +1 -1
  161. package/dist/components/embed/v3/CrossmintEmbeddedCheckoutV3.cjs +1 -1
  162. package/dist/components/embed/v3/CrossmintEmbeddedCheckoutV3.js +1 -1
  163. package/dist/components/embed/v3/EmbeddedCheckoutV3IFrame.cjs +1 -1
  164. package/dist/components/embed/v3/EmbeddedCheckoutV3IFrame.js +1 -1
  165. package/dist/components/embed/v3/index.cjs +1 -1
  166. package/dist/components/embed/v3/index.js +1 -1
  167. package/dist/components/hosted/CrossmintPayButton_DEPRECATED.cjs +1 -1
  168. package/dist/components/hosted/CrossmintPayButton_DEPRECATED.js +1 -1
  169. package/dist/components/hosted/index.cjs +1 -1
  170. package/dist/components/hosted/index.js +1 -1
  171. package/dist/components/hosted/v3/CrossmintHostedCheckoutV3.cjs +1 -1
  172. package/dist/components/hosted/v3/CrossmintHostedCheckoutV3.js +1 -1
  173. package/dist/components/hosted/v3/index.cjs +1 -1
  174. package/dist/components/hosted/v3/index.js +1 -1
  175. package/dist/components/index.cjs +1 -1
  176. package/dist/components/index.d.cts +0 -4
  177. package/dist/components/index.d.ts +0 -4
  178. package/dist/components/index.js +1 -1
  179. package/dist/components/signers/BaseConfirmation.cjs +1 -0
  180. package/dist/components/signers/BaseConfirmation.d.cts +14 -0
  181. package/dist/components/signers/BaseConfirmation.d.ts +14 -0
  182. package/dist/components/signers/BaseConfirmation.js +1 -0
  183. package/dist/components/signers/BaseOTPInput.cjs +1 -0
  184. package/dist/components/signers/BaseOTPInput.d.cts +19 -0
  185. package/dist/components/signers/BaseOTPInput.d.ts +19 -0
  186. package/dist/components/signers/BaseOTPInput.js +1 -0
  187. package/dist/components/signers/EmailSignersDialog.cjs +1 -1
  188. package/dist/components/signers/EmailSignersDialog.d.cts +1 -1
  189. package/dist/components/signers/EmailSignersDialog.d.ts +1 -1
  190. package/dist/components/signers/EmailSignersDialog.js +1 -1
  191. package/dist/components/signers/PhoneSignersDialog.cjs +1 -1
  192. package/dist/components/signers/PhoneSignersDialog.d.cts +1 -1
  193. package/dist/components/signers/PhoneSignersDialog.d.ts +1 -1
  194. package/dist/components/signers/PhoneSignersDialog.js +1 -1
  195. package/dist/components/signers/index.cjs +1 -1
  196. package/dist/components/signers/index.d.cts +0 -4
  197. package/dist/components/signers/index.d.ts +0 -4
  198. package/dist/components/signers/index.js +1 -1
  199. package/dist/consts/version.cjs +1 -1
  200. package/dist/consts/version.js +1 -1
  201. package/dist/hooks/index.cjs +1 -1
  202. package/dist/hooks/index.js +1 -1
  203. package/dist/hooks/useAuth.cjs +1 -1
  204. package/dist/hooks/useAuth.js +1 -1
  205. package/dist/hooks/useCrossmintAuth.cjs +1 -1
  206. package/dist/hooks/useCrossmintAuth.js +1 -1
  207. package/dist/hooks/useCrossmintCheckout.cjs +1 -1
  208. package/dist/hooks/useCrossmintCheckout.js +1 -1
  209. package/dist/hooks/useOAuthWindowListener.cjs +1 -1
  210. package/dist/hooks/useOAuthWindowListener.d.cts +1 -0
  211. package/dist/hooks/useOAuthWindowListener.d.ts +1 -0
  212. package/dist/hooks/useOAuthWindowListener.js +1 -1
  213. package/dist/icons/chevronRight.cjs +1 -1
  214. package/dist/icons/chevronRight.d.cts +1 -2
  215. package/dist/icons/chevronRight.d.ts +1 -2
  216. package/dist/icons/chevronRight.js +1 -1
  217. package/dist/icons/discord.cjs +1 -1
  218. package/dist/icons/discord.d.cts +2 -2
  219. package/dist/icons/discord.d.ts +2 -2
  220. package/dist/icons/discord.js +1 -1
  221. package/dist/icons/farcaster.cjs +1 -1
  222. package/dist/icons/farcaster.d.cts +2 -2
  223. package/dist/icons/farcaster.d.ts +2 -2
  224. package/dist/icons/farcaster.js +1 -1
  225. package/dist/icons/google.cjs +1 -1
  226. package/dist/icons/google.d.cts +2 -2
  227. package/dist/icons/google.d.ts +2 -2
  228. package/dist/icons/google.js +1 -1
  229. package/dist/icons/leftArrow.cjs +1 -1
  230. package/dist/icons/leftArrow.d.cts +1 -2
  231. package/dist/icons/leftArrow.d.ts +1 -2
  232. package/dist/icons/leftArrow.js +1 -1
  233. package/dist/icons/mail.cjs +1 -0
  234. package/dist/icons/mail.d.cts +6 -0
  235. package/dist/icons/mail.d.ts +6 -0
  236. package/dist/icons/mail.js +1 -0
  237. package/dist/icons/phone.cjs +1 -0
  238. package/dist/icons/phone.d.cts +6 -0
  239. package/dist/icons/phone.d.ts +6 -0
  240. package/dist/icons/phone.js +1 -0
  241. package/dist/icons/phoneOTP.cjs +1 -1
  242. package/dist/icons/phoneOTP.d.cts +1 -2
  243. package/dist/icons/phoneOTP.d.ts +1 -2
  244. package/dist/icons/phoneOTP.js +1 -1
  245. package/dist/icons/twitter.cjs +1 -1
  246. package/dist/icons/twitter.d.cts +2 -2
  247. package/dist/icons/twitter.d.ts +2 -2
  248. package/dist/icons/twitter.js +1 -1
  249. package/dist/icons/wallet.cjs +1 -1
  250. package/dist/icons/wallet.d.cts +1 -2
  251. package/dist/icons/wallet.d.ts +1 -2
  252. package/dist/icons/wallet.js +1 -1
  253. package/dist/icons/x.cjs +1 -1
  254. package/dist/icons/x.d.cts +2 -2
  255. package/dist/icons/x.d.ts +2 -2
  256. package/dist/icons/x.js +1 -1
  257. package/dist/index.cjs +1 -1
  258. package/dist/index.d.cts +0 -4
  259. package/dist/index.d.ts +0 -4
  260. package/dist/index.js +1 -1
  261. package/dist/providers/CrossmintAuthProvider.cjs +1 -1
  262. package/dist/providers/CrossmintAuthProvider.js +1 -1
  263. package/dist/providers/CrossmintAuthProviderInternal.cjs +1 -1
  264. package/dist/providers/CrossmintAuthProviderInternal.js +1 -1
  265. package/dist/providers/CrossmintWalletProvider.cjs +1 -1
  266. package/dist/providers/CrossmintWalletProvider.js +1 -1
  267. package/dist/providers/auth/OAuthFlowProvider.cjs +1 -1
  268. package/dist/providers/auth/OAuthFlowProvider.d.cts +1 -0
  269. package/dist/providers/auth/OAuthFlowProvider.d.ts +1 -0
  270. package/dist/providers/auth/OAuthFlowProvider.js +1 -1
  271. package/dist/providers/dynamic/DynamicWalletProvider.cjs +1 -1
  272. package/dist/providers/dynamic/DynamicWalletProvider.js +1 -1
  273. package/dist/providers/index.cjs +1 -1
  274. package/dist/providers/index.js +1 -1
  275. package/dist/styles/globals.cjs +1 -0
  276. package/dist/styles/globals.d.cts +5 -0
  277. package/dist/styles/globals.d.ts +5 -0
  278. package/dist/styles/globals.js +1 -0
  279. package/dist/styles/index.cjs +1 -0
  280. package/dist/styles/index.d.cts +3 -0
  281. package/dist/styles/index.d.ts +3 -0
  282. package/dist/styles/index.js +1 -0
  283. package/dist/styles/theme.cjs +1 -0
  284. package/dist/styles/theme.d.cts +13 -0
  285. package/dist/styles/theme.d.ts +13 -0
  286. package/dist/styles/theme.js +1 -0
  287. package/dist/utils/createCrossmintApiClient.cjs +1 -1
  288. package/dist/utils/createCrossmintApiClient.js +1 -1
  289. package/package.json +18 -20
  290. package/dist/chunk-2F3EMF5G.cjs +0 -1
  291. package/dist/chunk-2LLVSWMJ.js +0 -1
  292. package/dist/chunk-2NZ6SYFP.cjs +0 -1
  293. package/dist/chunk-34ULQ2PW.cjs +0 -1
  294. package/dist/chunk-3PHT3DAK.cjs +0 -1
  295. package/dist/chunk-4EQ23ZKC.cjs +0 -1
  296. package/dist/chunk-4ROE755V.cjs +0 -1
  297. package/dist/chunk-6BFWRGAS.cjs +0 -1
  298. package/dist/chunk-6IMXTTW4.cjs +0 -1
  299. package/dist/chunk-6LFJ3UC3.js +0 -1
  300. package/dist/chunk-6QVBCF3C.js +0 -1
  301. package/dist/chunk-7OJVAIXA.cjs +0 -1
  302. package/dist/chunk-7YO3UHAR.cjs +0 -1
  303. package/dist/chunk-CW4GAQRA.js +0 -1
  304. package/dist/chunk-CZ7CTBCO.js +0 -1
  305. package/dist/chunk-DCELWGNS.js +0 -1
  306. package/dist/chunk-DSBQW65Y.cjs +0 -1
  307. package/dist/chunk-E4DYZZKZ.cjs +0 -1
  308. package/dist/chunk-E4TBJMOO.js +0 -1
  309. package/dist/chunk-E5D2JTKO.js +0 -1
  310. package/dist/chunk-E65EGG73.cjs +0 -1
  311. package/dist/chunk-EOMXTZMF.js +0 -1
  312. package/dist/chunk-FPE5X5RH.cjs +0 -1
  313. package/dist/chunk-GGUEHZAY.js +0 -1
  314. package/dist/chunk-GHRFRG65.js +0 -1
  315. package/dist/chunk-GLOKRANI.cjs +0 -1
  316. package/dist/chunk-GONS3X7J.js +0 -2
  317. package/dist/chunk-I7KK3D7J.js +0 -1
  318. package/dist/chunk-J2YZL55W.js +0 -1
  319. package/dist/chunk-J4QPNKHC.cjs +0 -1
  320. package/dist/chunk-JGT6RWSD.js +0 -1
  321. package/dist/chunk-JPJKOERH.js +0 -1
  322. package/dist/chunk-JU37JPL7.js +0 -1
  323. package/dist/chunk-KIESVSW4.js +0 -1
  324. package/dist/chunk-LSQT2KG6.cjs +0 -1
  325. package/dist/chunk-NI4D3UIR.cjs +0 -2
  326. package/dist/chunk-ONU6TI5W.cjs +0 -1
  327. package/dist/chunk-P453UQYI.js +0 -11
  328. package/dist/chunk-PGE5M3Q5.cjs +0 -1
  329. package/dist/chunk-PIUCKVF7.js +0 -1
  330. package/dist/chunk-PZUWRGVP.cjs +0 -1
  331. package/dist/chunk-QHDN67N5.js +0 -1
  332. package/dist/chunk-QQTPO5IF.js +0 -1
  333. package/dist/chunk-RWWMM4HD.js +0 -1
  334. package/dist/chunk-SFDQPSSP.js +0 -1
  335. package/dist/chunk-SGP6SK6O.js +0 -1
  336. package/dist/chunk-SQ6GQUV4.js +0 -1
  337. package/dist/chunk-SRQAQHYK.cjs +0 -1
  338. package/dist/chunk-TM7WDKYR.cjs +0 -1
  339. package/dist/chunk-TXOVDTYK.cjs +0 -1
  340. package/dist/chunk-UILJI3DM.js +0 -1
  341. package/dist/chunk-UMCSEFX6.cjs +0 -11
  342. package/dist/chunk-VLDE23JX.js +0 -1
  343. package/dist/chunk-VNY6LU32.cjs +0 -1
  344. package/dist/chunk-VUIDQYBY.cjs +0 -1
  345. package/dist/chunk-VWL76U5G.js +0 -1
  346. package/dist/chunk-WAMK2K23.cjs +0 -1
  347. package/dist/chunk-WW6GUXHG.js +0 -1
  348. package/dist/chunk-YGYMICXJ.cjs +0 -1
  349. package/dist/chunk-YXF74MVI.cjs +0 -1
  350. package/dist/chunk-ZBQCXWMD.cjs +0 -1
  351. package/dist/chunk-ZKXBJNL7.js +0 -2
  352. package/dist/chunk-ZNDVEP3D.js +0 -1
  353. package/dist/chunk-ZSJQWAT2.js +0 -1
  354. package/dist/chunk-ZWMCD7KM.cjs +0 -2
  355. package/dist/components/auth/methods/web3/Web3Connector.cjs +0 -1
  356. package/dist/components/auth/methods/web3/Web3Connector.d.cts +0 -13
  357. package/dist/components/auth/methods/web3/Web3Connector.d.ts +0 -13
  358. package/dist/components/auth/methods/web3/Web3Connector.js +0 -1
  359. package/dist/components/auth/methods/web3/Web3ConnectorButton.cjs +0 -1
  360. package/dist/components/auth/methods/web3/Web3ConnectorButton.d.cts +0 -11
  361. package/dist/components/auth/methods/web3/Web3ConnectorButton.d.ts +0 -11
  362. package/dist/components/auth/methods/web3/Web3ConnectorButton.js +0 -1
  363. package/dist/components/signers/EmailConfirmation.cjs +0 -1
  364. package/dist/components/signers/EmailConfirmation.d.cts +0 -12
  365. package/dist/components/signers/EmailConfirmation.d.ts +0 -12
  366. package/dist/components/signers/EmailConfirmation.js +0 -1
  367. package/dist/components/signers/EmailOTPInput.cjs +0 -1
  368. package/dist/components/signers/EmailOTPInput.d.cts +0 -12
  369. package/dist/components/signers/EmailOTPInput.d.ts +0 -12
  370. package/dist/components/signers/EmailOTPInput.js +0 -1
  371. package/dist/components/signers/PhoneConfirmation.cjs +0 -1
  372. package/dist/components/signers/PhoneConfirmation.d.cts +0 -12
  373. package/dist/components/signers/PhoneConfirmation.d.ts +0 -12
  374. package/dist/components/signers/PhoneConfirmation.js +0 -1
  375. package/dist/components/signers/PhoneOTPInput.cjs +0 -1
  376. package/dist/components/signers/PhoneOTPInput.d.cts +0 -12
  377. package/dist/components/signers/PhoneOTPInput.d.ts +0 -12
  378. package/dist/components/signers/PhoneOTPInput.js +0 -1
  379. package/dist/components/signers/consts.cjs +0 -1
  380. package/dist/components/signers/consts.d.cts +0 -3
  381. package/dist/components/signers/consts.d.ts +0 -3
  382. package/dist/components/signers/consts.js +0 -1
  383. package/dist/twind-instance.cjs +0 -1
  384. package/dist/twind-instance.d.cts +0 -8
  385. package/dist/twind-instance.d.ts +0 -8
  386. package/dist/twind-instance.js +0 -1
  387. package/dist/twind.config.cjs +0 -1
  388. package/dist/twind.config.d.cts +0 -8
  389. package/dist/twind.config.d.ts +0 -8
  390. package/dist/twind.config.js +0 -1
  391. package/dist/utils/classNames.cjs +0 -1
  392. package/dist/utils/classNames.d.cts +0 -12
  393. package/dist/utils/classNames.d.ts +0 -12
  394. package/dist/utils/classNames.js +0 -1
  395. package/dist/utils/errorUtils.cjs +0 -1
  396. package/dist/utils/errorUtils.d.cts +0 -6
  397. package/dist/utils/errorUtils.d.ts +0 -6
  398. package/dist/utils/errorUtils.js +0 -1
  399. /package/dist/{chunk-VAKQ4II7.js → chunk-HGHYGPCN.js} +0 -0
  400. /package/dist/{chunk-4YRSANGA.cjs → chunk-QHI4DOG7.cjs} +0 -0
@@ -0,0 +1,66 @@
1
+ import{a as f}from"./chunk-AOBO3CEQ.js";import{a}from"./chunk-DFSB3TWF.js";import{d as g}from"./chunk-PXDN3KFO.js";import{useState as C}from"react";import r from"@emotion/styled";import{jsx as i,jsxs as s}from"react/jsx-runtime";var b=r.div`
2
+ display: flex;
3
+ flex-direction: column;
4
+ width: 100%;
5
+ max-width: 448px;
6
+ margin: 0 auto;
7
+ border-radius: 12px;
8
+ `,h=r.h2`
9
+ margin: 6px 0 8px 0;
10
+ font-size: 18px;
11
+ font-weight: 600;
12
+ color: ${e=>{var o,n;return((n=(o=e.appearance)==null?void 0:o.colors)==null?void 0:n.textPrimary)||a["cm-text-primary"]}};
13
+ `,v=r.div`
14
+ margin-bottom: 32px;
15
+ padding: 16px;
16
+ border-radius: 12px;
17
+ border: 1px solid ${e=>{var o,n;return((n=(o=e.appearance)==null?void 0:o.colors)==null?void 0:n.border)||a["cm-border"]}};
18
+ `,I=r.div`
19
+ display: flex;
20
+ align-items: center;
21
+ `,B=r.div`
22
+ flex-shrink: 0;
23
+ margin-right: 12px;
24
+ `,w=r.span`
25
+ color: ${e=>{var o,n;return((n=(o=e.appearance)==null?void 0:o.colors)==null?void 0:n.textPrimary)||a["cm-text-primary"]}};
26
+ font-size: 16px;
27
+ overflow-wrap: anywhere;
28
+ `,k=r.div`
29
+ color: ${e=>{var o,n;return((n=(o=e.appearance)==null?void 0:o.colors)==null?void 0:n.danger)||a["cm-danger"]}};
30
+ margin-bottom: 16px;
31
+ font-size: 14px;
32
+ `,S=r.div`
33
+ display: flex;
34
+ gap: 12px;
35
+ `,x=r.button`
36
+ flex: 1;
37
+ padding: 16px 24px;
38
+ border-radius: 9999px;
39
+ text-align: center;
40
+ font-weight: 500;
41
+ font-size: 16px;
42
+ cursor: pointer;
43
+ transition: opacity 200ms ease;
44
+ border: none;
45
+ &:disabled {
46
+ cursor: not-allowed;
47
+ }
48
+ `,U=r(x)`
49
+ background: transparent;
50
+ border: 1px solid ${e=>{var o,n;return((n=(o=e.appearance)==null?void 0:o.colors)==null?void 0:n.border)||a["cm-border"]}};
51
+ color: ${e=>{var o,n;return((n=(o=e.appearance)==null?void 0:o.colors)==null?void 0:n.textPrimary)||a["cm-text-primary"]}};
52
+ &:hover:not(:disabled) {
53
+ opacity: 0.8;
54
+ }
55
+ `,$=r(x)`
56
+ background-color: ${e=>{var o,n;return((n=(o=e.appearance)==null?void 0:o.colors)==null?void 0:n.accent)||a["cm-accent"]}};
57
+ color: white;
58
+ opacity: ${e=>e.isLoading?.7:1};
59
+ &:hover:not(:disabled) {
60
+ opacity: 0.9;
61
+ }
62
+ `,L=r.div`
63
+ display: flex;
64
+ justify-content: center;
65
+ align-items: center;
66
+ `;function T({contactInfo:e,icon:o,onConfirm:n,onCancel:u,appearance:t}){var m;let[c,d]=C(!1),[p,l]=C("");return s(b,{children:[i(h,{appearance:t,children:"Send authorization code to"}),i(v,{appearance:t,children:s(I,{children:[i(B,{children:o}),i(w,{appearance:t,children:e})]})}),p&&i(k,{appearance:t,children:p}),s(S,{children:[i(U,{onClick:u,appearance:t,children:"Cancel"}),i($,{onClick:()=>g(this,null,function*(){d(!0),l("");try{yield n(e)}catch(y){console.error("Error sending authorization code:",y),l("Failed to send code. Please try again.")}finally{d(!1)}}),disabled:c,isLoading:c,appearance:t,children:c?i(L,{children:i(f,{style:{color:((m=t==null?void 0:t.colors)==null?void 0:m.background)||a["cm-background-primary"]}})}):"Send code"})]})]})}export{T as a};
@@ -0,0 +1,98 @@
1
+ import{a as l}from"./chunk-OOLXYAO7.js";import{a as C}from"./chunk-77PBG2JJ.js";import{a as g}from"./chunk-HVZ5M3FY.js";import{a as y}from"./chunk-RV2X7AFS.js";import{a as f}from"./chunk-UG5R7IPH.js";import{a}from"./chunk-DFSB3TWF.js";import r from"@emotion/styled";import{Fragment as R,jsx as t,jsxs as i}from"react/jsx-runtime";var v=r.div`
2
+ position: relative;
3
+ display: flex;
4
+ flex-direction: column;
5
+ gap: 10px;
6
+ -webkit-font-smoothing: antialiased;
7
+ `,P=r.div`
8
+ display: flex;
9
+ justify-content: center;
10
+ position: relative;
11
+ left: 6px;
12
+ `,b=r.div`
13
+ display: flex;
14
+ justify-content: center;
15
+ `,w=r.p`
16
+ font-size: 18px;
17
+ line-height: 28px;
18
+ font-weight: bold;
19
+ color: ${o=>{var e,n;return((n=(e=o.appearance)==null?void 0:e.colors)==null?void 0:n.textPrimary)||a["cm-text-primary"]}};
20
+ margin: 0;
21
+ `,B=r.div`
22
+ margin-bottom: 24px;
23
+ `,T=r.div`
24
+ font-weight: normal;
25
+ color: ${o=>{var e,n;return((n=(e=o.appearance)==null?void 0:e.colors)==null?void 0:n.textSecondary)||a["cm-text-secondary"]}};
26
+ line-height: 1.5;
27
+ `,I=r.div`
28
+ display: flex;
29
+ flex-direction: column;
30
+ gap: 16px;
31
+ justify-content: center;
32
+ `,S=r.div`
33
+ display: flex;
34
+ justify-content: center;
35
+ padding-top: 16px;
36
+ `,x=r.div`
37
+ display: flex;
38
+ flex-direction: column;
39
+ gap: 8px;
40
+ `,d=r.div`
41
+ display: flex;
42
+ gap: 8px;
43
+ align-items: flex-start;
44
+ `,u=r.div`
45
+ flex-shrink: 0;
46
+ `,U=r.div`
47
+ margin-bottom: 12px;
48
+ `,A=r.button`
49
+ position: relative;
50
+ display: flex;
51
+ font-size: 16px;
52
+ padding: 16px;
53
+ background-color: ${o=>{var e,n;return((n=(e=o.appearance)==null?void 0:e.colors)==null?void 0:n.buttonBackground)||a["cm-muted-primary"]}};
54
+ color: ${o=>{var e,n;return((n=(e=o.appearance)==null?void 0:e.colors)==null?void 0:n.textPrimary)||a["cm-text-primary"]}};
55
+ align-items: center;
56
+ width: 100%;
57
+ border-radius: ${o=>{var e;return((e=o.appearance)==null?void 0:e.borderRadius)||"12px"}};
58
+ justify-content: center;
59
+ transition: all 200ms ease;
60
+ border: none;
61
+ cursor: pointer;
62
+
63
+ &:hover {
64
+ background-color: ${o=>{var e,n;return((n=(e=o.appearance)==null?void 0:e.colors)==null?void 0:n.backgroundSecondary)||a["cm-hover"]}};
65
+ }
66
+
67
+ &:focus {
68
+ background-color: ${o=>{var e,n;return((n=(e=o.appearance)==null?void 0:e.colors)==null?void 0:n.backgroundSecondary)||a["cm-hover"]}};
69
+ outline: none;
70
+ }
71
+ `,F=r.span`
72
+ font-weight: 500;
73
+ margin: 0 32px;
74
+ color: ${o=>{var e,n;return((n=(e=o.appearance)==null?void 0:e.colors)==null?void 0:n.textPrimary)||a["cm-text-primary"]}};
75
+ `,$=r.span`
76
+ position: absolute;
77
+ width: 1px;
78
+ height: 1px;
79
+ padding: 0;
80
+ margin: -1px;
81
+ overflow: hidden;
82
+ clip: rect(0, 0, 0, 0);
83
+ white-space: nowrap;
84
+ border: 0;
85
+ `,L=r.a`
86
+ padding: 14px;
87
+ text-align: center;
88
+ text-decoration: none;
89
+ border-radius: 8px;
90
+ font-weight: bold;
91
+ background-color: ${o=>{var e,n;return((n=(e=o.appearance)==null?void 0:e.colors)==null?void 0:n.inputBackground)||a["cm-muted-primary"]}};
92
+ color: ${o=>{var e,n;return((n=(e=o.appearance)==null?void 0:e.colors)==null?void 0:n.textSecondary)||a["cm-text-primary"]}};
93
+ transition: opacity 200ms ease;
94
+
95
+ &:hover {
96
+ opacity: 0.8;
97
+ }
98
+ `;function p({title:o,content:e,primaryButton:n,secondaryAction:k,open:h,appearance:c}){var m;return t(y,{open:h,appearance:c,showCloseButton:!1,children:i(v,{children:[t(P,{children:t(g,{appearance:c})}),t(b,{children:t(w,{appearance:c,children:o})}),t(B,{children:t(T,{appearance:c,children:e})}),i(I,{children:[n,k]}),t(S,{children:t(f,{color:(m=c==null?void 0:c.colors)==null?void 0:m.textSecondary})})]})})}var s=({appearance:o,onClick:e,children:n})=>i(A,{appearance:o,onClick:e,children:[t(F,{appearance:o,children:n}),t($,{children:n})]});function E({state:o,appearance:e}){if(!o.open||o.type==null)return null;switch(o.type){case"create-wallet":return t(p,{open:o.open,title:"Create Your Wallet",appearance:e,content:i(R,{children:[t(U,{children:"You're about to create a wallet."}),i(x,{children:[i(d,{children:[t(u,{children:t(C,{})}),"Your wallet will be secured with a passkey"]}),i(d,{children:[t(u,{children:t(l,{})}),"Your device will ask you for your fingerprint, face, or screen lock to set it up"]})]})]}),primaryButton:t(s,{appearance:e,onClick:o.primaryActionOnClick,children:"Create Wallet"})});case"create-wallet-error":return t(p,{open:o.open,title:"Wallet Creation Failed",appearance:e,content:t("div",{children:"We couldn't create your wallet. This could be due to rejecting the request, a timeout, or not having access to your passkey on this device."}),primaryButton:t(s,{appearance:e,onClick:o.primaryActionOnClick,children:"Try again"})});case"transaction":return t(p,{open:o.open,title:"Use Your Wallet",appearance:e,content:t(x,{children:i(d,{children:[t(u,{children:t(l,{})}),t("span",{children:"Your device will ask you for your fingerprint, face, or screen lock to authorize this action."})]})}),primaryButton:t(s,{appearance:e,onClick:o.primaryActionOnClick,children:"Use Wallet"})});case"transaction-error":return t(p,{open:o.open,title:"Wallet Access Failed",appearance:e,content:t("div",{children:"We couldn't access your wallet. This could be due to rejecting the request, a timeout, or not having access to your passkey on this device."}),primaryButton:t(s,{appearance:e,onClick:o.primaryActionOnClick,children:"Try again"}),secondaryAction:t(L,{href:"https://docs.crossmint.com/wallets/signers-and-custody#passkey",rel:"noopener noreferrer",target:"_blank",appearance:e,children:"Troubleshoot"})});case"not-supported":return t(p,{open:o.open,title:"Passkeys Not Supported on This Device",appearance:e,content:t("div",{children:"To access your wallet with a passkey, switch to a device or browser that supports passkeys, such as Chrome or Safari on a smartphone, tablet, or modern computer"}),primaryButton:t(s,{appearance:e,onClick:o.primaryActionOnClick,children:"Understood"})});default:return null}}export{E as a};
@@ -0,0 +1,231 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkANSLIVQ7cjs = require('./chunk-ANSLIVQ7.cjs');var _chunkBR77Q3PKcjs = require('./chunk-BR77Q3PK.cjs');var _chunkPZ3KXKJDcjs = require('./chunk-PZ3KXKJD.cjs');var _chunkAHD64NAJcjs = require('./chunk-AHD64NAJ.cjs');var _chunk2SBA4RZZcjs = require('./chunk-2SBA4RZZ.cjs');var _chunkVRFL53NPcjs = require('./chunk-VRFL53NP.cjs');var _chunkS4BKL6MRcjs = require('./chunk-S4BKL6MR.cjs');var _chunk7U6Q4ELBcjs = require('./chunk-7U6Q4ELB.cjs');var _chunkKT4LGFPNcjs = require('./chunk-KT4LGFPN.cjs');var _chunkDJZOP4MTcjs = require('./chunk-DJZOP4MT.cjs');var _chunkXBXL7GMYcjs = require('./chunk-XBXL7GMY.cjs');var _chunkAHMPKIEYcjs = require('./chunk-AHMPKIEY.cjs');var _chunkO3H2EYFAcjs = require('./chunk-O3H2EYFA.cjs');var _chunkSCHRLC2Icjs = require('./chunk-SCHRLC2I.cjs');var _chunk3X24JZVGcjs = require('./chunk-3X24JZVG.cjs');var _chunkEAWYV5ZOcjs = require('./chunk-EAWYV5ZO.cjs');var _chunkUMWTEGO6cjs = require('./chunk-UMWTEGO6.cjs');var _chunkI4GMMHQRcjs = require('./chunk-I4GMMHQR.cjs');var _chunkW5RDCN5Gcjs = require('./chunk-W5RDCN5G.cjs');var _chunkVXAHFAP4cjs = require('./chunk-VXAHFAP4.cjs');var _chunkNRN4WNQLcjs = require('./chunk-NRN4WNQL.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _color = require('color'); var _color2 = _interopRequireDefault(_color);var _styled = require('@emotion/styled'); var _styled2 = _interopRequireDefault(_styled);var _react = require('react');var _clientsdkauth = require('@crossmint/client-sdk-auth');var _commonsdkbase = require('@crossmint/common-sdk-base');var _commonsdkauth = require('@crossmint/common-sdk-auth');var _clientsdkreactbase = require('@crossmint/client-sdk-react-base');var _clientsdkwindow = require('@crossmint/client-sdk-window');var _zod = require('zod');var _t=(o,e)=>{let{crossmintAuth:t}=O(),[r,i]=_react.useState.call(void 0, null),n=_react.useRef.call(void 0, null);return _react.useEffect.call(void 0, ()=>(n.current==null&&(n.current=new (0, _clientsdkwindow.ChildWindow)(window.opener||window.parent,"*",{incomingEvents:be})),()=>{n.current!=null&&n.current.off("authMaterialFromPopupCallback")}),[]),{createPopupAndSetupListeners:_react.useCallback.call(void 0, (u,y)=>_chunk2WSEHVNPcjs.d.call(void 0, void 0,null,function*(){if(n.current==null)throw new Error("Child window not initialized");i(u),e(null);let a=new URL(o[u]);if(y!=null){let m=Array.from(a.searchParams.entries());a.search="",y&&a.searchParams.append("provider_login_hint",y),m.forEach(([s,f])=>{a.searchParams.append(s,f)})}let C=yield _clientsdkwindow.PopupWindow.init(a.toString(),{awaitToLoad:!1,crossOrigin:!0,width:400,height:700}),d=m=>_chunk2WSEHVNPcjs.d.call(void 0, void 0,null,function*(){var s,f;yield t==null?void 0:t.handleRefreshAuthMaterial(m.oneTimeSecret),(s=n.current)==null||s.off("authMaterialFromPopupCallback"),(f=C.window)==null||f.close(),i(null)}),l=m=>{var s,f;e(m.error),(s=n.current)==null||s.off("errorFromPopupCallback"),(f=C.window)==null||f.close(),i(null)};n.current.on("authMaterialFromPopupCallback",d),n.current.on("errorFromPopupCallback",l);let g=setInterval(()=>{var m,s;(m=C.window)!=null&&m.closed&&(clearInterval(g),i(null),(s=n.current)==null||s.off("authMaterialFromPopupCallback"))},2500)}),[o,t,e]),isLoading:r!=null,activeOAuthProvider:r}},be={authMaterialFromPopupCallback:_zod.z.object({oneTimeSecret:_zod.z.string()}),errorFromPopupCallback:_zod.z.object({error:_zod.z.string()})};var _jsxruntime = require('react/jsx-runtime');var Kt={google:"",twitter:""},Qt=_react.createContext.call(void 0, void 0);function T(){let o=_react.useContext.call(void 0, Qt);if(!o)throw new Error("useOAuthFlow must be used within an OAuthFlowProvider");return o}function Nt({children:o,prefetchOAuthUrls:e}){let{crossmintAuth:t,loginMethods:r}=O(),{setError:i}=_chunkKT4LGFPNcjs.a.call(void 0, ),[n,p]=_react.useState.call(void 0, Kt),[u,y]=_react.useState.call(void 0, !0),{createPopupAndSetupListeners:a,isLoading:C,activeOAuthProvider:d}=_t(n,i),l=_react.useCallback.call(void 0, ()=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){y(!0);try{let f=(r||[]).filter(h=>h in Kt).map(h=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){let A=yield t==null?void 0:t.getOAuthUrl(h);return{[h]:A}})),v=Object.assign({},...yield Promise.all(f));p(v)}catch(s){i(s instanceof Error?s.message:"Unable to load oauth providers. Please try again later.")}finally{y(!1)}}),[r,t,i]);_react.useEffect.call(void 0, ()=>{e&&l()},[l,e]);let m={startOAuthLogin:_react.useCallback.call(void 0, (s,f)=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){yield a(s,f)}),[a]),isLoading:u||C,activeOAuthProvider:d};return _jsxruntime.jsx.call(void 0, Qt.Provider,{value:m,children:o})}var _sdkreactcore = require('@dynamic-labs/sdk-react-core');var _ethereum = require('@dynamic-labs/ethereum');var _solana = require('@dynamic-labs/solana');var _bs58 = require('bs58'); var _bs582 = _interopRequireDefault(_bs58);function Te({children:o,enabled:e,onSdkLoaded:t,onWalletConnected:r,jwt:i}){let{primaryWallet:n,sdkHasLoaded:p,removeWallet:u,handleUnlinkWallet:y}=_sdkreactcore.useDynamicContext.call(void 0, ),a=!e||p;return _react.useEffect.call(void 0, ()=>{a&&(t==null||t(a))},[a,t]),_react.useEffect.call(void 0, ()=>{i==null&&a&&n!=null&&(u(n.id),y(n.id))},[i,a,n,u,y]),_react.useEffect.call(void 0, ()=>{function C(){return _chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){try{if(_ethereum.isEthereumWallet.call(void 0, n)){let d=yield n.getWalletClient(),l={type:"external-wallet",address:d.account.address,viemAccount:_chunk2WSEHVNPcjs.b.call(void 0, _chunk2WSEHVNPcjs.a.call(void 0, {},d.account),{signMessage:g=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){return yield d.signMessage({message:g.message})})})};r(l)}else if(_solana.isSolanaWallet.call(void 0, n)){let d=yield n.getSigner(),l={type:"external-wallet",address:n.address,onSignTransaction:g=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){return yield d.signTransaction(g)})};r(l)}else throw new Error("Unsupported wallet type")}catch(d){throw console.error("Failed to get admin signer",d),new Error("Failed to get admin signer")}})}n!=null&&i!=null&&C()},[n,i,r]),o}function Xt({children:o,enabled:e=!0,apiKeyEnvironment:t,loginMethods:r=["web3"],appearance:i,onSdkLoaded:n,onWalletConnected:p}){var d,l;let{crossmintAuth:u,jwt:y}=O(),a=_react.useMemo.call(void 0, ()=>{var g,m;return`.powered-by-dynamic { display: none !important; }
2
+ .wallet-list__scroll-container { padding: 0px !important; }
3
+ .wallet-list__search-container { padding-left: 0px !important; padding-right: 0px !important; }
4
+ .dynamic-footer { display: none !important; }
5
+ h1 { color: ${(g=i==null?void 0:i.colors)==null?void 0:g.textPrimary} !important; }
6
+ * { color: ${(m=i==null?void 0:i.colors)==null?void 0:m.textSecondary} !important; }`},[(d=i==null?void 0:i.colors)==null?void 0:d.textPrimary,(l=i==null?void 0:i.colors)==null?void 0:l.textSecondary]),C=_react.useMemo.call(void 0, ()=>{if(e)return r.includes("web3:evm-only")?[_ethereum.EthereumWalletConnectors]:r.includes("web3:solana-only")?[_solana.SolanaWalletConnectors]:[_ethereum.EthereumWalletConnectors,_solana.SolanaWalletConnectors]},[e,r]);return _jsxruntime.jsx.call(void 0, _chunkAHD64NAJcjs.a,{apiKeyEnvironment:t,settings:{walletConnectors:C,cssOverrides:a,events:{onAuthFailure(g,m){console.error("[DynamicWalletProvider] onAuthFailure",g,m)}},handlers:{handleConnectedWallet:g=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){var s;if(!u)return console.error("[DynamicWalletProvider] crossmintAuth is not available"),!1;let m=g.address;if(m==null)return console.error("[DynamicWalletProvider] handleConnectedWallet: address is missing"),!1;try{let v=(yield _chunkPZ3KXKJDcjs.b.call(void 0, g))==="solana"?"solana":"evm",h=yield u.signInWithSmartWallet(m,v);if((h==null?void 0:h.challenge)==null)throw new Error("No challenge received from signInWithSmartWallet");let A=yield(s=g.connector)==null?void 0:s.proveOwnership(m,h.challenge);if(A==null)throw new Error("Failed to get signature from wallet");let W=A;if(v==="solana"){let B=Buffer.from(A,"base64");W=_bs582.default.encode(B)}let b=yield u.authenticateSmartWallet(m,v,W);if((b==null?void 0:b.oneTimeSecret)==null)throw new Error("No oneTimeSecret received from authenticateSmartWallet");return yield u.handleRefreshAuthMaterial(b.oneTimeSecret),!0}catch(f){return console.error("[DynamicWalletProvider] Error handling wallet connection:",f),!1}})}},children:_jsxruntime.jsx.call(void 0, Te,{enabled:e,onSdkLoaded:n,onWalletConnected:p,jwt:y,children:o})},`${t}-${r.join(",")}`)}var $e={crossmintAuth:void 0,login:()=>{},experimental_loginWithOAuth:()=>{},logout:()=>{},jwt:void 0,user:void 0,status:"initializing",getUser:()=>{},experimental_externalWalletSigner:void 0,loginMethods:[]},ut= exports.f =_react.createContext.call(void 0, $e);function mr({children:o,appearance:e,termsOfServiceText:t,prefetchOAuthUrls:r=!0,authModalTitle:i,onLoginSuccess:n,loginMethods:p=["email","google"],refreshRoute:u,logoutRoute:y}){let{crossmint:a}=_clientsdkreactbase.useCrossmint.call(void 0, "CrossmintAuthProvider must be used within CrossmintProvider"),[C,d]=_react.useState.call(void 0, void 0),[l,g]=_react.useState.call(void 0, void 0),m=_commonsdkbase.validateApiKeyAndGetCrossmintBaseUrl.call(void 0, a.apiKey),[s,f]=_react.useState.call(void 0, !1),[v,h]=_react.useState.call(void 0, !1),[A,W]=_react.useState.call(void 0, void 0),[b,B]=_react.useState.call(void 0, !0),D=p.some(P=>P.startsWith("web3")),[yt,fe]=_react.useState.call(void 0, void 0),it=_react.useRef.call(void 0, null),z=_react.useMemo.call(void 0, ()=>(it.current||(it.current=_clientsdkauth.CrossmintAuth.from(a,{callbacks:{onLogout:()=>{d(void 0),g(void 0)},onTokenRefresh:P=>{d(P.user),g(P.jwt)}},refreshRoute:u,logoutRoute:y})),it.current),[]),j=_react.useRef.call(void 0, null),at=_react.useCallback.call(void 0, ()=>{n==null||n()},[n]);_react.useEffect.call(void 0, ()=>{if(l==null){let P=_clientsdkauth.getCookie.call(void 0, _commonsdkauth.SESSION_PREFIX);g(P)}h(!0)},[l]),_react.useEffect.call(void 0, ()=>{l!=null&&s&&(f(!1),at())},[l,s,at]);let Ct=_react.useCallback.call(void 0, P=>{if(l!=null){console.log("User already logged in");return}P!=null&&typeof P=="string"&&W(P),f(!0)},[l]),vt=_react.useCallback.call(void 0, ()=>{z.logout()},[z]),lt=_react.useCallback.call(void 0, ()=>!v||D&&!b?"initializing":l!=null?"logged-in":s?"in-progress":"logged-out",[v,D,b,l,s]),wt=_react.useCallback.call(void 0, ()=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){if(l==null){console.log("User not logged in");return}let P=yield z.getUser();return d(P),P}),[l,z]),At=_react.useCallback.call(void 0, P=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){var X;yield(X=j.current)==null?void 0:X.call(j,P)}),[j]),he=_react.useMemo.call(void 0, ()=>({crossmintAuth:z,login:Ct,experimental_loginWithOAuth:At,logout:vt,jwt:l,user:C,status:lt(),getUser:wt,loginMethods:p,experimental_externalWalletSigner:yt}),[z,Ct,At,vt,l,C,lt,wt,p,yt]);return _jsxruntime.jsx.call(void 0, ut.Provider,{value:he,children:_jsxruntime.jsx.call(void 0, _chunkKT4LGFPNcjs.b,{setDialogOpen:(P,X)=>{f(P),X&&at()},initialState:{appearance:e,loginMethods:p,termsOfServiceText:t,authModalTitle:i,baseUrl:m,defaultEmail:A},children:_jsxruntime.jsx.call(void 0, Nt,{prefetchOAuthUrls:lt()==="logged-out"&&r,children:_jsxruntime.jsx.call(void 0, ze,{loginWithOAuthRef:j,children:D?_jsxruntime.jsxs.call(void 0, Xt,{apiKeyEnvironment:a.apiKey.includes("production")?"production":"staging",loginMethods:p,appearance:e,onSdkLoaded:B,onWalletConnected:fe,children:[o,_jsxruntime.jsx.call(void 0, rt,{open:s})]}):_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[o,_jsxruntime.jsx.call(void 0, rt,{open:s})]})})})})})}function ze({children:o,loginWithOAuthRef:e}){let{startOAuthLogin:t}=T(),{jwt:r}=O(),i=_react.useCallback.call(void 0, n=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){if(r!=null){console.log("User already logged in");return}yield t(n)}),[r,t]);return _react.useEffect.call(void 0, ()=>{e.current=i},[i,e]),o}var O=()=>{let o=_react.useContext.call(void 0, ut);if(!o)throw new Error("useCrossmintAuth must be used within CrossmintAuthProvider");return o};var He=_styled2.default.div`
7
+ display: flex;
8
+ flex-direction: column;
9
+ `,Ke=_styled2.default.div`
10
+ display: flex;
11
+ flex-direction: column;
12
+ align-items: center;
13
+ justify-content: flex-start;
14
+ width: 100%;
15
+ `,Qe=_styled2.default.div`
16
+ position: relative;
17
+ left: 12px;
18
+ `,Ne=_styled2.default.p`
19
+ font-size: 16px;
20
+ font-weight: 400;
21
+ margin: 16px 0 4px 0;
22
+ text-align: center;
23
+ color: ${o=>{var e,t;return((t=(e=o.appearance)==null?void 0:e.colors)==null?void 0:t.textPrimary)||_chunkEAWYV5ZOcjs.a["cm-text-primary"]}};
24
+ `,je=_styled2.default.p`
25
+ text-align: center;
26
+ padding: 0 16px;
27
+ margin: 0;
28
+ color: ${o=>{var e,t;return((t=(e=o.appearance)==null?void 0:e.colors)==null?void 0:t.textSecondary)||_chunkEAWYV5ZOcjs.a["cm-text-secondary"]}};
29
+ font-size: 14px;
30
+ line-height: 1.4;
31
+ `,Ve=_styled2.default.div`
32
+ padding: 32px 0;
33
+ `,N=_styled2.default.call(void 0, _chunkXBXL7GMYcjs.c)`
34
+ @media (max-width: 379px) {
35
+ width: 40px;
36
+ height: 56px;
37
+ font-size: 28px;
38
+ margin: 0;
39
+ }
40
+ `,qe=_styled2.default.div`
41
+ font-size: 12px;
42
+ line-height: 1.3;
43
+ text-align: center;
44
+ color: ${o=>{var e,t;return((t=(e=o.appearance)==null?void 0:e.colors)==null?void 0:t.textSecondary)||_chunkEAWYV5ZOcjs.a["cm-text-secondary"]}};
45
+ `;function ee({otpEmailData:o,setOtpEmailData:e}){var f,v,h,A,W;let{crossmintAuth:t}=O(),{appearance:r,setDialogOpen:i,setStep:n,setError:p}=_chunkKT4LGFPNcjs.a.call(void 0, ),[u,y]=_react.useState.call(void 0, ""),[a,C]=_react.useState.call(void 0, !1),[d,l]=_react.useState.call(void 0, !1),g=()=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){var b,B;l(!0);try{let D=yield t==null?void 0:t.confirmEmailOtp((b=o==null?void 0:o.email)!=null?b:"",(B=o==null?void 0:o.emailId)!=null?B:"",u);yield t==null?void 0:t.handleRefreshAuthMaterial(D),i(!1,!0),n("initial")}catch(D){console.error("Error confirming email OTP",D),p("Invalid code. Please try again."),C(!0)}finally{l(!1)}}),m=()=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){var b;try{yield t==null?void 0:t.sendEmailOtp((b=o==null?void 0:o.email)!=null?b:"")}catch(B){p("Failed to resend code. Please try again.")}});return _jsxruntime.jsxs.call(void 0, He,{children:[_jsxruntime.jsx.call(void 0, _chunk7U6Q4ELBcjs.a,{onClick:()=>{n("initial"),e(null)},iconColor:(f=r==null?void 0:r.colors)==null?void 0:f.textPrimary,ringColor:(v=r==null?void 0:r.colors)==null?void 0:v.accent}),_jsxruntime.jsxs.call(void 0, Ke,{children:[_jsxruntime.jsx.call(void 0, Qe,{children:_jsxruntime.jsx.call(void 0, _chunkI4GMMHQRcjs.a,{customAccentColor:(h=r==null?void 0:r.colors)==null?void 0:h.accent,customButtonBackgroundColor:(A=r==null?void 0:r.colors)==null?void 0:A.buttonBackground,customBackgroundColor:(W=r==null?void 0:r.colors)==null?void 0:W.background})}),_jsxruntime.jsx.call(void 0, Ne,{appearance:r,children:"Check your email"}),_jsxruntime.jsxs.call(void 0, je,{appearance:r,children:["A temporary login code has been sent to",_jsxruntime.jsx.call(void 0, "br",{}),o!=null&&o.email?_jsxruntime.jsx.call(void 0, "strong",{children:o.email}):"your email address"]}),_jsxruntime.jsx.call(void 0, Ve,{children:_jsxruntime.jsx.call(void 0, _chunkXBXL7GMYcjs.a,{maxLength:6,value:u,onChange:b=>{y(b),C(!1),p(null)},onComplete:g,disabled:d,appearance:r,children:_jsxruntime.jsxs.call(void 0, _chunkXBXL7GMYcjs.b,{children:[_jsxruntime.jsx.call(void 0, N,{index:0,hasError:a}),_jsxruntime.jsx.call(void 0, N,{index:1,hasError:a}),_jsxruntime.jsx.call(void 0, N,{index:2,hasError:a}),_jsxruntime.jsx.call(void 0, N,{index:3,hasError:a}),_jsxruntime.jsx.call(void 0, N,{index:4,hasError:a}),_jsxruntime.jsx.call(void 0, N,{index:5,hasError:a})]})})}),_jsxruntime.jsxs.call(void 0, qe,{appearance:r,children:["Can't find the email? Check spam folder.",_jsxruntime.jsx.call(void 0, "br",{}),"Some emails may take several minutes to arrive."]}),_jsxruntime.jsx.call(void 0, _chunkDJZOP4MTcjs.a,{initialSeconds:60,appearance:r,countdownText:b=>`Re-send code in ${b}s`,countdownCompleteText:"Re-send code",handleOnClick:m})]})]})}var Je=_styled2.default.button`
46
+ ${_chunk3X24JZVGcjs.a}
47
+
48
+ display: flex;
49
+ align-items: center;
50
+ justify-content: center;
51
+ gap: 8px;
52
+ height: 32px;
53
+ padding: 0 10px;
54
+ border: 1px solid ${o=>{var e,t;return((t=(e=o.appearance)==null?void 0:e.colors)==null?void 0:t.border)||_chunkEAWYV5ZOcjs.a["cm-border"]}};
55
+ border-radius: ${o=>{var e;return((e=o.appearance)==null?void 0:e.borderRadius)||"12px"}};
56
+ background-color: ${o=>{var e,t;return((t=(e=o.appearance)==null?void 0:e.colors)==null?void 0:t.buttonBackground)||_chunkEAWYV5ZOcjs.a["cm-background-primary"]}};
57
+ cursor: ${o=>o.isLoading?"not-allowed":"pointer"};
58
+
59
+ /* Hover and focus states */
60
+ &:hover {
61
+ background-color: ${o=>o.isLoading?_chunkEAWYV5ZOcjs.a["cm-muted-primary"]:_chunkEAWYV5ZOcjs.a["cm-hover"]};
62
+ }
63
+
64
+ &:focus {
65
+ outline: none;
66
+ background-color: theme["cm-hover"];
67
+ }
68
+ `,Xe=_styled2.default.span`
69
+ color: ${o=>{var e,t;return((t=(e=o.appearance)==null?void 0:e.colors)==null?void 0:t.accent)||_chunkEAWYV5ZOcjs.a["cm-accent"]}};
70
+ font-size: 14px;
71
+ font-weight: 400;
72
+ `;function re({emailInput:o,appearance:e}){var n,p;let{startOAuthLogin:t,activeOAuthProvider:r}=T(),i=r==="google";return _jsxruntime.jsxs.call(void 0, Je,{type:"button",appearance:e,isLoading:i,onClick:i?void 0:()=>t("google",o.trim().toLowerCase()),children:[_jsxruntime.jsx.call(void 0, _chunkVXAHFAP4cjs.a,{style:{height:"18px",width:"18px"}}),i?_jsxruntime.jsx.call(void 0, _chunkAHMPKIEYcjs.a,{style:{color:(n=e==null?void 0:e.colors)==null?void 0:n.textSecondary,fill:(p=e==null?void 0:e.colors)==null?void 0:p.textPrimary,width:"18px",height:"18px"}}):_jsxruntime.jsx.call(void 0, Xe,{appearance:e,children:"Continue"})]})}var Ze=_styled2.default.div`
73
+ display: flex;
74
+ flex-direction: column;
75
+ align-items: flex-start;
76
+ justify-content: flex-start;
77
+ width: 100%;
78
+ border-radius: 8px;
79
+ `,to=_styled2.default.div`
80
+ width: 100%;
81
+ `,eo=_styled2.default.label`
82
+ display: block;
83
+ margin-bottom: 5px;
84
+ color: ${o=>{var e,t;return((t=(e=o.appearance)==null?void 0:e.colors)==null?void 0:t.textPrimary)||_chunkEAWYV5ZOcjs.a["cm-text-primary"]}};
85
+ font-size: 14px;
86
+ font-weight: 400;
87
+ `,oo=_styled2.default.form`
88
+ position: relative;
89
+ `,ro=_styled2.default.input`
90
+ ${_chunk3X24JZVGcjs.a}
91
+
92
+ /* Base input styles */
93
+ display: flex;
94
+ flex-grow: 1;
95
+ text-align: left;
96
+ padding-left: 16px;
97
+ padding-right: ${o=>o.showGoogleButton?"132px":"80px"};
98
+ height: 58px;
99
+ width: 100%;
100
+ border: 1px solid;
101
+ border-color: ${o=>{var e,t,r,i;return o.hasError?((t=(e=o.appearance)==null?void 0:e.colors)==null?void 0:t.danger)||_chunkEAWYV5ZOcjs.a["cm-danger"]:((i=(r=o.appearance)==null?void 0:r.colors)==null?void 0:i.border)||_chunkEAWYV5ZOcjs.a["cm-border"]}};
102
+ border-radius: ${o=>{var e;return((e=o.appearance)==null?void 0:e.borderRadius)||"12px"}};
103
+ background-color: ${o=>{var e,t;return((t=(e=o.appearance)==null?void 0:e.colors)==null?void 0:t.inputBackground)||_chunkEAWYV5ZOcjs.a["cm-background-primary"]}};
104
+ color: ${o=>{var e,t;return((t=(e=o.appearance)==null?void 0:e.colors)==null?void 0:t.textPrimary)||_chunkEAWYV5ZOcjs.a["cm-text-primary"]}};
105
+ font-size: 16px;
106
+ transition: border-color 200ms ease-in-out, box-shadow 200ms ease-in-out;
107
+
108
+ &::placeholder {
109
+ font-weight: 400;
110
+ color: ${o=>{var e,t;return((t=(e=o.appearance)==null?void 0:e.colors)==null?void 0:t.textSecondary)||_chunkEAWYV5ZOcjs.a["cm-text-secondary"]}};
111
+ }
112
+
113
+ &:focus {
114
+ outline: none;
115
+ box-shadow: 0 0 0 2px ${o=>{var e,t;return new (0, _color2.default)(((t=(e=o.appearance)==null?void 0:e.colors)==null?void 0:t.accent)||_chunkEAWYV5ZOcjs.a["cm-accent"]).alpha(.18).toString()}};
116
+ }
117
+
118
+ &:read-only {
119
+ cursor: not-allowed;
120
+ opacity: 0.7;
121
+ }
122
+ `,no=_styled2.default.div`
123
+ position: absolute;
124
+ right: 0;
125
+ top: 0;
126
+ bottom: 0;
127
+ display: flex;
128
+ align-items: center;
129
+ padding-right: 16px;
130
+ aspect-ratio: 1/1;
131
+ `,io=_styled2.default.button`
132
+ ${_chunk3X24JZVGcjs.a}
133
+
134
+ font-weight: 500;
135
+ white-space: nowrap;
136
+ background-color: ${o=>{var e,t;return((t=(e=o.appearance)==null?void 0:e.colors)==null?void 0:t.inputBackground)||_chunkEAWYV5ZOcjs.a["cm-background-primary"]}};
137
+ color: ${o=>{var e,t;return((t=(e=o.appearance)==null?void 0:e.colors)==null?void 0:t.accent)||_chunkEAWYV5ZOcjs.a["cm-accent"]}};
138
+ cursor: ${o=>o.disabled?"not-allowed":"pointer"};
139
+ opacity: ${o=>o.disabled?.6:1};
140
+ border: none;
141
+ padding: 8px 12px;
142
+ border-radius: 6px;
143
+ transition: opacity 200ms ease;
144
+
145
+ &:hover:not(:disabled) {
146
+ opacity: 0.8;
147
+ }
148
+
149
+ &:focus-visible {
150
+ outline: 2px solid ${o=>{var e,t;return((t=(e=o.appearance)==null?void 0:e.colors)==null?void 0:t.accent)||_chunkEAWYV5ZOcjs.a["cm-accent"]}};
151
+ outline-offset: 2px;
152
+ }
153
+
154
+ &:not(:disabled):focus-visible {
155
+ box-shadow: 0 0 0 2px ${o=>{var e,t;return new (0, _color2.default)(((t=(e=o.appearance)==null?void 0:e.colors)==null?void 0:t.accent)||_chunkEAWYV5ZOcjs.a["cm-accent"]).alpha(.18).toString()}};
156
+ }
157
+ `,ao=_styled2.default.p`
158
+ font-size: 12px;
159
+ color: ${o=>{var e,t;return((t=(e=o.appearance)==null?void 0:e.colors)==null?void 0:t.danger)||_chunkEAWYV5ZOcjs.a["cm-danger"]}};
160
+ margin: 8px 0 8px 0;
161
+ `;function ie({setOtpEmailData:o}){var s,f,v;let{crossmintAuth:e}=O(),{appearance:t,defaultEmail:r,setStep:i,setError:n,loginMethods:p}=_chunkKT4LGFPNcjs.a.call(void 0, ),[u,y]=_react.useState.call(void 0, r!=null?r:""),[a,C]=_react.useState.call(void 0, ""),[d,l]=_react.useState.call(void 0, !1),g=u.toLowerCase().includes("@gmail.com")&&!u.toLowerCase().includes("+")&&_commonsdkauth.isEmailValid.call(void 0, u)&&!d&&p.includes("google");function m(h){return _chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){h.preventDefault(),l(!0);try{let A=u.trim().toLowerCase(),W=yield e==null?void 0:e.sendEmailOtp(A);o({email:A,emailId:W.emailId}),i("otp")}catch(A){l(!1),n("Failed to send email. Please try again or contact support.")}})}return _jsxruntime.jsx.call(void 0, Ze,{children:_jsxruntime.jsxs.call(void 0, to,{children:[_jsxruntime.jsx.call(void 0, eo,{appearance:t,children:"Email"}),_jsxruntime.jsxs.call(void 0, oo,{role:"form",onSubmit:h=>{if(g){h.preventDefault();return}_commonsdkauth.isEmailValid.call(void 0, u)?m(h):h.preventDefault()},noValidate:!0,children:[_jsxruntime.jsx.call(void 0, _chunkS4BKL6MRcjs.a,{children:"Email"}),_jsxruntime.jsx.call(void 0, ro,{id:"emailInput",appearance:t,hasError:!!a,showGoogleButton:g,type:"email",placeholder:"your@email.com",value:u,onChange:h=>{y(h.target.value),C(""),n(null)},readOnly:d,"aria-describedby":"emailError"}),_jsxruntime.jsxs.call(void 0, no,{children:[a&&_jsxruntime.jsx.call(void 0, _chunkNRN4WNQLcjs.a,{customColor:(s=t==null?void 0:t.colors)==null?void 0:s.danger}),d&&_jsxruntime.jsx.call(void 0, _chunkAHMPKIEYcjs.a,{style:{color:(f=t==null?void 0:t.colors)==null?void 0:f.textSecondary,fill:(v=t==null?void 0:t.colors)==null?void 0:v.textPrimary}}),g?_jsxruntime.jsx.call(void 0, re,{emailInput:u,appearance:t}):!a&&!d?_jsxruntime.jsx.call(void 0, io,{type:"submit",appearance:t,disabled:!_commonsdkauth.isEmailValid.call(void 0, u)||d,children:"Submit"}):null]})]}),a&&_jsxruntime.jsx.call(void 0, ao,{appearance:t,id:"emailError",children:a})]})})}function le(){let{step:o}=_chunkKT4LGFPNcjs.a.call(void 0, ),[e,t]=_react.useState.call(void 0, null);return o==="otp"?_jsxruntime.jsx.call(void 0, ee,{otpEmailData:e,setOtpEmailData:t}):o==="initial"?_jsxruntime.jsx.call(void 0, ie,{setOtpEmailData:t}):null}function se(e){var o=_chunk2WSEHVNPcjs.c.call(void 0, e,[]);var u;let{step:t,appearance:r}=_chunkKT4LGFPNcjs.a.call(void 0, ),{startOAuthLogin:i,activeOAuthProvider:n}=T(),p=n==="google";return t!=="initial"?null:_jsxruntime.jsx.call(void 0, _chunkVRFL53NPcjs.a,_chunk2WSEHVNPcjs.b.call(void 0, _chunk2WSEHVNPcjs.a.call(void 0, {icon:_jsxruntime.jsx.call(void 0, _chunkVXAHFAP4cjs.a,{style:{height:"25px",width:"25px"}}),isLoading:p,appearance:r,onButtonClick:()=>i("google")},o),{children:_jsxruntime.jsx.call(void 0, "span",{style:{color:(u=r==null?void 0:r.colors)==null?void 0:u.textPrimary},children:"Sign in with Google"})}))}var _authkit = require('@farcaster/auth-kit');var po=_styled2.default.div`
162
+ display: flex;
163
+ flex-direction: column;
164
+ align-items: center;
165
+ gap: 16px;
166
+ `,go=_styled2.default.div`
167
+ text-align: center;
168
+ `,fo=_styled2.default.h3`
169
+ font-size: 18px;
170
+ font-weight: 600;
171
+ color: ${o=>{var e,t;return((t=(e=o.appearance)==null?void 0:e.colors)==null?void 0:t.textPrimary)||_chunkEAWYV5ZOcjs.a["cm-text-primary"]}};
172
+ margin: 0 0 8px 0;
173
+ `,ho=_styled2.default.p`
174
+ font-size: 16px;
175
+ font-weight: 400;
176
+ color: ${o=>{var e,t;return((t=(e=o.appearance)==null?void 0:e.colors)==null?void 0:t.textSecondary)||_chunkEAWYV5ZOcjs.a["cm-text-secondary"]}};
177
+ margin: 0;
178
+ `,xo=_styled2.default.div`
179
+ background-color: ${o=>{var e,t;return((t=(e=o.appearance)==null?void 0:e.colors)==null?void 0:t.inputBackground)||_chunkEAWYV5ZOcjs.a["cm-background-primary"]}};
180
+ aspect-ratio: 1;
181
+ border-radius: ${o=>{var e;return((e=o.appearance)==null?void 0:e.borderRadius)||"8px"}};
182
+ padding: 16px;
183
+ display: flex;
184
+ align-items: center;
185
+ justify-content: center;
186
+ `,yo=_styled2.default.div`
187
+ min-height: 246px;
188
+ display: flex;
189
+ align-items: center;
190
+ justify-content: center;
191
+ `,Co=_styled2.default.p`
192
+ font-size: 16px;
193
+ text-align: center;
194
+ font-weight: 400;
195
+ color: ${o=>{var e,t;return((t=(e=o.appearance)==null?void 0:e.colors)==null?void 0:t.textSecondary)||_chunkEAWYV5ZOcjs.a["cm-text-secondary"]}};
196
+ margin: 0;
197
+ `,vo=_styled2.default.a`
198
+ font-size: 16px;
199
+ font-weight: 400;
200
+ color: ${o=>{var e,t;return((t=(e=o.appearance)==null?void 0:e.colors)==null?void 0:t.textLink)||_chunkEAWYV5ZOcjs.a["cm-accent"]}};
201
+ text-decoration: none;
202
+
203
+ &:hover {
204
+ text-decoration: underline;
205
+ }
206
+ `;function ce(){let{step:o,appearance:e,setStep:t,setError:r}=_chunkKT4LGFPNcjs.a.call(void 0, );return o==="initial"?_jsxruntime.jsx.call(void 0, _chunkVRFL53NPcjs.a,{icon:_jsxruntime.jsx.call(void 0, _chunkW5RDCN5Gcjs.a,{style:{height:"25px",width:"25px"}}),appearance:e,onButtonClick:()=>{t("qrCode"),r(null)},children:"Sign in with Farcaster"}):o==="qrCode"?_jsxruntime.jsx.call(void 0, wo,{}):null}function wo(){var m,s,f,v;let{crossmintAuth:o}=O(),{appearance:e,setStep:t,setDialogOpen:r,setError:i}=_chunkKT4LGFPNcjs.a.call(void 0, ),[n,p]=_react.useState.call(void 0, null),u=_react.useMemo.call(void 0, ()=>({onSuccess:h=>{p(h)}}),[]),{signIn:y,url:a,connect:C,signOut:d,isConnected:l}=_authkit.useSignIn.call(void 0, u),g=h=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){i(null);try{let A=yield o==null?void 0:o.signInWithFarcaster(h);yield o==null?void 0:o.handleRefreshAuthMaterial(A),r(!1),t("initial")}catch(A){console.error("Error during Farcaster sign-in:",A),i("Failed to sign in with Farcaster")}});return _react.useEffect.call(void 0, ()=>{n!=null&&g(n)},[n]),_react.useEffect.call(void 0, ()=>{l&&y()},[l]),_react.useEffect.call(void 0, ()=>{C()},[]),_jsxruntime.jsxs.call(void 0, "div",{children:[_jsxruntime.jsx.call(void 0, _chunk7U6Q4ELBcjs.a,{onClick:()=>{d(),t("initial")},iconColor:(m=e==null?void 0:e.colors)==null?void 0:m.textPrimary,ringColor:(s=e==null?void 0:e.colors)==null?void 0:s.accent}),_jsxruntime.jsxs.call(void 0, po,{children:[_jsxruntime.jsxs.call(void 0, go,{children:[_jsxruntime.jsx.call(void 0, fo,{appearance:e,children:"Sign in with Farcaster"}),_jsxruntime.jsx.call(void 0, ho,{appearance:e,children:"Scan with your phone's camera to continue."})]}),_jsxruntime.jsx.call(void 0, xo,{appearance:e,children:a!=null?_jsxruntime.jsx.call(void 0, _authkit.QRCode,{uri:a,size:280}):_jsxruntime.jsx.call(void 0, yo,{children:_jsxruntime.jsx.call(void 0, _chunkAHMPKIEYcjs.a,{style:{color:(f=e==null?void 0:e.colors)==null?void 0:f.textSecondary,fill:(v=e==null?void 0:e.colors)==null?void 0:v.textPrimary}})})}),a?_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, Co,{appearance:e,children:"Alternatively, click on this link to open Warpcast."}),_jsxruntime.jsx.call(void 0, vo,{href:a,rel:"noopener noreferrer",target:"_blank",appearance:e,children:"Open Warpcast"})]}):_jsxruntime.jsx.call(void 0, "div",{style:{height:"66px"}})]})]})}function me(e){var o=_chunk2WSEHVNPcjs.c.call(void 0, e,[]);let{step:t,appearance:r}=_chunkKT4LGFPNcjs.a.call(void 0, ),{startOAuthLogin:i,activeOAuthProvider:n}=T(),p=n==="twitter";return t!=="initial"?null:_jsxruntime.jsx.call(void 0, _chunkVRFL53NPcjs.a,_chunk2WSEHVNPcjs.b.call(void 0, _chunk2WSEHVNPcjs.a.call(void 0, {icon:_jsxruntime.jsx.call(void 0, _chunkUMWTEGO6cjs.a,{style:{height:"22px",width:"22px"}}),isLoading:p,appearance:r,onButtonClick:()=>i("twitter")},o),{children:"Sign in with X"}))}var Po=_styled2.default.div`
207
+ position: relative;
208
+ padding: 40px 24px 30px 24px;
209
+ display: flex;
210
+ flex-direction: column;
211
+ gap: 10px;
212
+ -webkit-font-smoothing: antialiased;
213
+ animation: none;
214
+
215
+ @media (min-width: 480px) {
216
+ padding: 40px 40px 30px 40px;
217
+ }
218
+ `,So=_styled2.default.div`
219
+ display: flex;
220
+ align-items: flex-start;
221
+ justify-content: flex-start;
222
+ border-radius: 8px;
223
+ padding: 8px;
224
+ gap: 8px;
225
+ margin-top: 34px;
226
+ background-color: ${o=>{var e,t,r;return new (0, _color2.default)((r=(t=(e=o.appearance)==null?void 0:e.colors)==null?void 0:t.danger)!=null?r:_chunkEAWYV5ZOcjs.a["cm-danger"]).alpha(.12).toString()}};
227
+ `;function pe({style:o}){var y,a,C,d,l,g,m,s,f,v;let{step:e,appearance:t,loginMethods:r,baseUrl:i,error:n,termsOfServiceText:p,authModalTitle:u}=_chunkKT4LGFPNcjs.a.call(void 0, );return _jsxruntime.jsxs.call(void 0, Po,{style:o,children:[n!=null?_jsxruntime.jsxs.call(void 0, So,{appearance:t,children:[_jsxruntime.jsx.call(void 0, "div",{style:{minWidth:"20px"},children:_jsxruntime.jsx.call(void 0, _chunkNRN4WNQLcjs.a,{customColor:(a=(y=t==null?void 0:t.colors)==null?void 0:y.danger)!=null?a:_chunkEAWYV5ZOcjs.a["cm-danger"]})}),_jsxruntime.jsx.call(void 0, "p",{style:{fontSize:"14px",margin:0,color:(d=(C=t==null?void 0:t.colors)==null?void 0:C.danger)!=null?d:_chunkEAWYV5ZOcjs.a["cm-danger"]},children:n})]}):null,e==="initial"?_jsxruntime.jsxs.call(void 0, "div",{children:[_jsxruntime.jsx.call(void 0, _chunkO3H2EYFAcjs.b,{appearance:t,children:u!=null?u:"Sign in to Crossmint"}),_jsxruntime.jsx.call(void 0, _chunkO3H2EYFAcjs.c,{appearance:t,children:"Access using one of the options below."})]}):null,r.includes("google")?_jsxruntime.jsx.call(void 0, se,{}):null,r.includes("farcaster")?_jsxruntime.jsx.call(void 0, _chunkBR77Q3PKcjs.a,{baseUrl:i,children:_jsxruntime.jsx.call(void 0, ce,{})}):null,r.includes("twitter")?_jsxruntime.jsx.call(void 0, me,{}):null,r.some(h=>h.startsWith("web3"))?_jsxruntime.jsx.call(void 0, _chunkANSLIVQ7cjs.a,{}):null,r.includes("email")?_jsxruntime.jsxs.call(void 0, "div",{children:[r.length>1?_jsxruntime.jsx.call(void 0, _chunk2SBA4RZZcjs.a,{appearance:t,text:"OR"}):null,_jsxruntime.jsx.call(void 0, le,{})]}):null,e==="initial"&&p!=null?_jsxruntime.jsxs.call(void 0, "div",{style:{fontSize:"0.875rem",textAlign:"center",marginTop:"0.5rem",color:(g=(l=t==null?void 0:t.colors)==null?void 0:l.textSecondary)!=null?g:_chunkEAWYV5ZOcjs.a["cm-text-secondary"]},children:[_jsxruntime.jsx.call(void 0, "style",{children:`
228
+ p a {
229
+ color: ${(s=(m=t==null?void 0:t.colors)==null?void 0:m.textLink)!=null?s:_chunkEAWYV5ZOcjs.a["cm-link"]};
230
+ }
231
+ `}),p]}):null,e==="initial"||e==="otp"?_jsxruntime.jsx.call(void 0, _chunkSCHRLC2Icjs.a,{style:{marginTop:"1rem",justifyContent:"center"},color:(v=(f=t==null?void 0:t.colors)==null?void 0:f.textSecondary)!=null?v:_chunkEAWYV5ZOcjs.a["cm-text-secondary"]}):null]})}function rt({open:o}){let{appearance:e,setDialogOpen:t}=_chunkKT4LGFPNcjs.a.call(void 0, );return _jsxruntime.jsx.call(void 0, _chunkO3H2EYFAcjs.a,{open:o,setDialogOpen:t,appearance:e,children:_jsxruntime.jsx.call(void 0, pe,{style:{maxWidth:"448px",padding:"0px"}})})}exports.a = rt; exports.b = _t; exports.c = T; exports.d = Nt; exports.e = Xt; exports.f = ut; exports.g = mr; exports.h = O; exports.i = ee; exports.j = re; exports.k = ie; exports.l = le; exports.m = se; exports.n = ce; exports.o = me; exports.p = pe;
@@ -0,0 +1,6 @@
1
+ import{css as i}from"@emotion/react";var s=i`
2
+ /* Reset inherited styles */
3
+ all: initial;
4
+ font-family: inherit;
5
+ box-sizing: border-box;
6
+ `;export{s as a};
@@ -0,0 +1,160 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunk3X24JZVGcjs = require('./chunk-3X24JZVG.cjs');var _chunkEAWYV5ZOcjs = require('./chunk-EAWYV5ZO.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _react = require('react'); var n = _interopRequireWildcard(_react);var _reactdom = require('react-dom');var _styled = require('@emotion/styled'); var _styled2 = _interopRequireDefault(_styled);var _reacttransitiongroup = require('react-transition-group');var _jsxruntime = require('react/jsx-runtime');var C=_styled2.default.div`
2
+ position: fixed;
3
+ inset: 0;
4
+ z-index: 999;
5
+ background-color: rgba(0, 0, 0, 0.5);
6
+ backdrop-filter: blur(8px);
7
+ display: flex;
8
+ align-items: center;
9
+ justify-content: center;
10
+ padding: 16px;
11
+
12
+ /* Transition classes */
13
+ &.dialog-enter {
14
+ opacity: 0;
15
+ }
16
+ &.dialog-enter-active {
17
+ opacity: 1;
18
+ transition: opacity 100ms ease;
19
+ }
20
+ &.dialog-exit {
21
+ opacity: 1;
22
+ }
23
+ &.dialog-exit-active {
24
+ opacity: 0;
25
+ transition: opacity 200ms ease;
26
+ }
27
+ `,R=_styled2.default.div`
28
+ ${_chunk3X24JZVGcjs.a}
29
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
30
+
31
+ /* Modal styling */
32
+ position: relative;
33
+ background-color: ${t=>{var e,a;return((a=(e=t.appearance)==null?void 0:e.colors)==null?void 0:a.background)||_chunkEAWYV5ZOcjs.a["cm-background-primary"]}};
34
+ border-radius: ${t=>{var e;return((e=t.appearance)==null?void 0:e.borderRadius)||"16px"}};
35
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
36
+ width: 100%;
37
+ max-height: 90vh;
38
+ padding: 32px;
39
+ overflow-y: auto;
40
+
41
+ /* Focus management */
42
+ &:focus {
43
+ outline: none;
44
+ }
45
+
46
+ /* Desktop styles and animations */
47
+ @media (min-width: 480px) {
48
+ max-width: 448px;
49
+ border-radius: ${t=>{var e;return((e=t.appearance)==null?void 0:e.borderRadius)||"24px"}};
50
+ padding: 40px 40px 30px;
51
+
52
+ /* Desktop transition classes */
53
+ .dialog-enter & {
54
+ transform: scale(0.95);
55
+ opacity: 0;
56
+ }
57
+ .dialog-enter-active & {
58
+ transform: scale(1);
59
+ opacity: 1;
60
+ transition: transform 200ms ease, opacity 100ms ease;
61
+ }
62
+ .dialog-exit & {
63
+ transform: scale(1);
64
+ opacity: 1;
65
+ }
66
+ .dialog-exit-active & {
67
+ transform: scale(0.95);
68
+ opacity: 0;
69
+ transition: transform 200ms ease, opacity 200ms ease;
70
+ }
71
+ }
72
+
73
+ /* Mobile styles and animations */
74
+ @media (max-width: 479px) {
75
+ position: fixed;
76
+ left: 0;
77
+ right: 0;
78
+ bottom: 8px;
79
+ width: calc(100% - 16px);
80
+ max-height: calc(100vh - 18px);
81
+ border-radius: ${t=>{var e;return((e=t.appearance)==null?void 0:e.borderRadius)||"36px 36px 50px 50px"}};
82
+ padding: 40px 30px;
83
+ margin: 0 auto;
84
+
85
+ /* Mobile transition classes */
86
+ .dialog-enter & {
87
+ transform: translateY(100%);
88
+ }
89
+ .dialog-enter-active & {
90
+ transform: translateY(0);
91
+ transition: transform 200ms ease;
92
+ }
93
+ .dialog-exit & {
94
+ transform: translateY(0);
95
+ }
96
+ .dialog-exit-active & {
97
+ transform: translateY(100%);
98
+ transition: transform 200ms ease;
99
+ }
100
+ }
101
+ `,k=_styled2.default.button`
102
+ ${_chunk3X24JZVGcjs.a}
103
+
104
+ /* Close button styling */
105
+ position: absolute;
106
+ top: 28px;
107
+ right: 28px;
108
+ width: 32px;
109
+ height: 32px;
110
+ border-radius: 6px;
111
+ border: none;
112
+ z-index: 1000;
113
+ background-color: transparent;
114
+ color: ${t=>{var e,a,i;return(i=(a=(e=t.appearance)==null?void 0:e.colors)==null?void 0:a.textPrimary)!=null?i:_chunkEAWYV5ZOcjs.a["cm-text-secondary"]}};
115
+ cursor: pointer;
116
+ display: flex;
117
+ align-items: center;
118
+ justify-content: center;
119
+ transition: all 0.15s ease;
120
+
121
+ &:hover {
122
+ background-color: ${t=>{var e,a;return((a=(e=t==null?void 0:t.appearance)==null?void 0:e.colors)==null?void 0:a.backgroundSecondary)||_chunkEAWYV5ZOcjs.a["cm-hover"]}};
123
+ color: ${t=>{var e,a,i;return(i=(a=(e=t.appearance)==null?void 0:e.colors)==null?void 0:a.textPrimary)!=null?i:_chunkEAWYV5ZOcjs.a["cm-text-secondary"]}};
124
+ }
125
+
126
+ &:focus {
127
+ outline: none;
128
+ background-color: ${t=>{var e,a;return((a=(e=t==null?void 0:t.appearance)==null?void 0:e.colors)==null?void 0:a.backgroundSecondary)||_chunkEAWYV5ZOcjs.a["cm-hover"]}};
129
+ box-shadow: 0 0 0 2px ${t=>{var e,a;return((a=(e=t.appearance)==null?void 0:e.colors)==null?void 0:a.accent)||_chunkEAWYV5ZOcjs.a["cm-accent"]}};
130
+ }
131
+
132
+ svg {
133
+ width: 28px;
134
+ height: 28px;
135
+ }
136
+ `,w=_styled2.default.h2`
137
+ ${_chunk3X24JZVGcjs.a}
138
+
139
+ /* Title styling */
140
+ display: block;
141
+ font-size: 24px;
142
+ font-weight: 600;
143
+ line-height: 1.3;
144
+ color: ${t=>{var e,a;return((a=(e=t.appearance)==null?void 0:e.colors)==null?void 0:a.textPrimary)||_chunkEAWYV5ZOcjs.a["cm-text-primary"]}};
145
+ margin: 0 0 2px 0;
146
+ `,S=_styled2.default.p`
147
+ ${_chunk3X24JZVGcjs.a}
148
+
149
+ /* Description styling */
150
+ display: block;
151
+ font-size: 16px;
152
+ font-weight: 400;
153
+ line-height: 1.5;
154
+ color: ${t=>{var e,a;return((a=(e=t.appearance)==null?void 0:e.colors)==null?void 0:a.textSecondary)||_chunkEAWYV5ZOcjs.a["cm-text-secondary"]}};
155
+ margin: 0 0 12px 0;
156
+ `,$=_styled2.default.div`
157
+ /* Content wrapper */
158
+ display: flex;
159
+ flex-direction: column;
160
+ `,M= exports.a =({open:t,setDialogOpen:e,appearance:a,style:i,children:f,closeOnOverlayClick:x=!1,showCloseButton:y=!0})=>{let[u,g]=n.useState(!1),d=n.useRef(null);return n.useEffect(()=>{g(!0)},[]),n.useEffect(()=>(t?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[t]),n.useEffect(()=>{let s=b=>{b.key==="Escape"&&t&&(e==null||e(!1))};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[t,e]),u?_reactdom.createPortal.call(void 0, _jsxruntime.jsx.call(void 0, _reacttransitiongroup.CSSTransition,{nodeRef:d,in:t,timeout:200,classNames:"dialog",unmountOnExit:!0,mountOnEnter:!0,children:_jsxruntime.jsx.call(void 0, C,{ref:d,onClick:x?s=>{s.target===s.currentTarget&&(e==null||e(!1))}:void 0,children:_jsxruntime.jsxs.call(void 0, R,{appearance:a,role:"dialog","aria-modal":"true",style:_chunk2WSEHVNPcjs.a.call(void 0, {},i),children:[y&&_jsxruntime.jsx.call(void 0, k,{onClick:()=>e==null?void 0:e(!1),appearance:a,children:_jsxruntime.jsxs.call(void 0, "svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M18 6 6 18"}),_jsxruntime.jsx.call(void 0, "path",{d:"m6 6 12 12"})]})}),_jsxruntime.jsx.call(void 0, $,{children:f})]})})}),document.body):null},B= exports.b =({children:t,style:e,appearance:a})=>_jsxruntime.jsx.call(void 0, w,{style:e,appearance:a,children:t}),F= exports.c =({children:t,style:e,appearance:a})=>_jsxruntime.jsx.call(void 0, S,{style:e,appearance:a,children:t});exports.a = M; exports.b = B; exports.c = F;