@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
@@ -1 +0,0 @@
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; } }var _chunk4EQ23ZKCcjs = require('./chunk-4EQ23ZKC.cjs');var _chunk6BFWRGAScjs = require('./chunk-6BFWRGAS.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _react = require('react'); var r = _interopRequireWildcard(_react);var _inputotp = require('input-otp');var _jsxruntime = require('react/jsx-runtime');var P=_react.createContext.call(void 0, void 0),I= exports.a =r.forwardRef((b,t)=>{var i=b,{className:n,containerClassName:o,customStyles:a}=i,s=_chunk2WSEHVNPcjs.c.call(void 0, i,["className","containerClassName","customStyles"]);return _jsxruntime.jsx.call(void 0, P.Provider,{value:a,children:_jsxruntime.jsx.call(void 0, _inputotp.OTPInput,_chunk2WSEHVNPcjs.a.call(void 0, {autoFocus:!0,ref:t,containerClassName:_chunk4EQ23ZKCcjs.a.call(void 0, "flex items-center gap-2 has-[:disabled]:opacity-50",o),className:_chunk4EQ23ZKCcjs.a.call(void 0, "disabled:cursor-not-allowed",n)},s))})});I.displayName="InputOTP";var h=r.forwardRef((s,a)=>{var t=s,{className:n}=t,o=_chunk2WSEHVNPcjs.c.call(void 0, t,["className"]);return _jsxruntime.jsx.call(void 0, "div",_chunk2WSEHVNPcjs.a.call(void 0, {ref:a,className:_chunk4EQ23ZKCcjs.a.call(void 0, "flex gap-2 items-center",n)},o))});h.displayName="InputOTPGroup";var y=r.forwardRef((b,t)=>{var i=b,{index:n,className:o,hasError:a}=i,s=_chunk2WSEHVNPcjs.c.call(void 0, i,["index","className","hasError"]);let g=r.useContext(_inputotp.OTPInputContext),{char:m,hasFakeCaret:x,isActive:l}=g.slots[n],e=_react.useContext.call(void 0, P);return _jsxruntime.jsxs.call(void 0, "div",_chunk2WSEHVNPcjs.b.call(void 0, _chunk2WSEHVNPcjs.a.call(void 0, {ref:t,className:_chunk4EQ23ZKCcjs.a.call(void 0, "relative flex h-14 w-12 items-center bg-cm-muted-primary justify-center border border-cm-border text-lg transition-all rounded-md text-cm-text-primary",l&&"z-10 ring-2 ring-offset-background",o),style:{borderRadius:e==null?void 0:e.borderRadius,borderColor:a?e==null?void 0:e.danger:e==null?void 0:e.border,boxShadow:l?`0 0 0 2px ${e==null?void 0:e.accent}`:"none",backgroundColor:m?e==null?void 0:e.buttonBackground:e==null?void 0:e.inputBackground}},s),{children:[m,x&&_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "pointer-events-none absolute inset-0 flex items-center justify-center"),children:_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "h-4 w-px animate-caret-blink duration-1000"),style:{height:"18px",backgroundColor:e==null?void 0:e.textPrimary}})})]}))});y.displayName="InputOTPSlot";exports.a = I; exports.b = h; exports.c = y;
@@ -1 +0,0 @@
1
- import{jsx as H,jsxs as V}from"react/jsx-runtime";var l=({className:t})=>V("svg",{width:"24",height:"24",viewBox:"0 0 1000 1000",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[H("rect",{width:"1000",height:"1000",fill:"#855DCD"}),H("path",{d:"M257.778 155.556H742.222V844.444H671.111V528.889H670.414C662.554 441.677 589.258 373.333 500 373.333C410.742 373.333 337.446 441.677 329.586 528.889H328.889V844.444H257.778V155.556Z",fill:"white"}),H("path",{d:"M128.889 253.333L157.778 351.111H182.222V746.667C169.949 746.667 160 756.616 160 768.889V795.556H155.556C143.283 795.556 133.333 805.505 133.333 817.778V844.444H382.222V817.778C382.222 805.505 372.273 795.556 360 795.556H355.556V768.889C355.556 756.616 345.606 746.667 333.333 746.667H306.667V253.333H128.889Z",fill:"white"}),H("path",{d:"M675.555 746.667C663.282 746.667 653.333 756.616 653.333 768.889V795.556H648.889C636.616 795.556 626.667 805.505 626.667 817.778V844.444H875.555V817.778C875.555 805.505 865.606 795.556 853.333 795.556H848.889V768.889C848.889 756.616 838.94 746.667 826.667 746.667V351.111H851.111L880 253.333H702.222V746.667H675.555Z",fill:"white"})]});export{l as a};
@@ -1 +0,0 @@
1
- import{q as m}from"./chunk-P453UQYI.js";import{a as o}from"./chunk-ZNDVEP3D.js";import{jsx as r}from"react/jsx-runtime";function e(){return r(m,{className:o("w-full")})}export{e as a};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _jsxruntime = require('react/jsx-runtime');function a({className:c}){return _jsxruntime.jsxs.call(void 0, "svg",{width:"25",height:"25",x:"0px",y:"0px",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",className:c,children:[_jsxruntime.jsx.call(void 0, "path",{fill:"#fbc02d",d:"M43.611,20.083H42V20H24v8h11.303c-1.649,4.657-6.08,8-11.303,8c-6.627,0-12-5.373-12-12 s5.373-12,12-12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657C34.046,6.053,29.268,4,24,4C12.955,4,4,12.955,4,24s8.955,20,20,20 s20-8.955,20-20C44,22.659,43.862,21.35,43.611,20.083z"}),_jsxruntime.jsx.call(void 0, "path",{fill:"#e53935",d:"M6.306,14.691l6.571,4.819C14.655,15.108,18.961,12,24,12c3.059,0,5.842,1.154,7.961,3.039 l5.657-5.657C34.046,6.053,29.268,4,24,4C16.318,4,9.656,8.337,6.306,14.691z"}),_jsxruntime.jsx.call(void 0, "path",{fill:"#4caf50",d:"M24,44c5.166,0,9.86-1.977,13.409-5.192l-6.19-5.238C29.211,35.091,26.715,36,24,36 c-5.202,0-9.619-3.317-11.283-7.946l-6.522,5.025C9.505,39.556,16.227,44,24,44z"}),_jsxruntime.jsx.call(void 0, "path",{fill:"#1565c0",d:"M43.611,20.083L43.595,20L42,20H24v8h11.303c-0.792,2.237-2.231,4.166-4.087,5.571 c0.001-0.001,0.002-0.001,0.003-0.002l6.19,5.238C36.971,39.205,44,34,44,24C44,22.659,43.862,21.35,43.611,20.083z"})]})}exports.a = a;
@@ -1 +0,0 @@
1
- import{a as r}from"./chunk-RWWMM4HD.js";import{a as o}from"./chunk-H34D6PAN.js";import{jsx as s}from"react/jsx-runtime";function t({color:e="#67797F",className:c}){return s("div",{className:r("flex",c),children:s(o,{color:e})})}export{t as a};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKI4HRYHDcjs = require('./chunk-KI4HRYHD.cjs');var _chunk6BFWRGAScjs = require('./chunk-6BFWRGAS.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');function D(L){var r=L,{colors:t,displayType:n="icon-and-text"}=r,o=_chunk2WSEHVNPcjs.c.call(void 0, r,["colors","displayType"]);let{icon:f,text:h}={icon:(t==null?void 0:t.icon)||_chunkKI4HRYHDcjs.b.colors.icon,text:(t==null?void 0:t.text)||_chunkKI4HRYHDcjs.a.light.text},l={colors:{icon:f,text:h},displayType:n};o.width==null&&o.height==null&&(o.width=144);let c=_react.useId.call(void 0, );return _jsxruntime.jsxs.call(void 0, "svg",_chunk2WSEHVNPcjs.b.call(void 0, _chunk2WSEHVNPcjs.a.call(void 0, {viewBox:_chunkKI4HRYHDcjs.c[n]},o),{children:[y(l,c),_jsxruntime.jsx.call(void 0, "g",{children:_jsxruntime.jsxs.call(void 0, "g",{children:[v(l),S(l,c)]})})]}))}function y(t,n){let{icon:o}=t.colors;return o.type!=="gradient"?null:_jsxruntime.jsx.call(void 0, "defs",{children:_jsxruntime.jsxs.call(void 0, "linearGradient",{id:`logoGradient-${n}`,className:_chunk6BFWRGAScjs.a.call(void 0, "logoGradient"),x1:".1",y1:".1",x2:"85.8",y2:"85.8",gradientUnits:"userSpaceOnUse",children:[_jsxruntime.jsx.call(void 0, "stop",{className:_chunk6BFWRGAScjs.a.call(void 0, "stop-0"),offset:"0",stopColor:o.from}),_jsxruntime.jsx.call(void 0, "stop",{className:_chunk6BFWRGAScjs.a.call(void 0, "stop-1"),offset:"1",stopColor:o.to})]})})}function v({colors:t,displayType:n}){if(n==="icon-only")return null;let{text:o}=t;return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, "path",{fill:o,d:"M372.7 9.5c0-3.4 2.7-6.1 6-6.1S385 6 385 9.5s-2.8 6-6.2 6-6-2.6-6-6m77.7 1.9V24h8.6v8.8h-8.6V52q-.1 5.4 5.3 5.2c1.3 0 3-.2 3.4-.3v8.2c-.6.2-2.5 1-6 1-7.7 0-12.5-4.7-12.5-12.5V33H433v-9h8.5V11.4zm-338 44.4q3 5 7.8 7.9 5 2.8 11.3 2.8 4.5 0 8.4-1.5 3.7-1.7 6.6-4.4 2.8-2.9 4-6.4l-8.9-4a10.5 10.5 0 0 1-10.1 7 11 11 0 0 1-6-1.5q-2.4-1.7-4-4.5-1.5-2.9-1.4-6.6a12 12 0 0 1 1.4-6.5q1.5-3 4-4.5a11 11 0 0 1 6-1.6q3.5 0 6.2 2 2.8 1.9 4 5l8.8-3.8q-1.2-3.9-4-6.5-2.9-2.8-6.7-4.3-3.9-1.6-8.3-1.6-6.3 0-11.3 2.8a21 21 0 0 0-7.8 7.8q-2.8 5-2.8 11.2c0 6.2 1 7.9 2.8 11.2m53-32.1h-9.4v41.9h10V42.3q0-4.8 2.7-7.4 2.5-2.7 6.9-2.7h3.6v-9H177q-4.5 0-7.6 1.9a10 10 0 0 0-3.8 4.5z"}),_jsxruntime.jsx.call(void 0, "path",{d:"M202.9 22.8c12.4 0 21.6 9.3 21.6 22s-9.1 22-21.6 22-21.5-9.2-21.5-22 9.1-22 21.5-22m0 35.2c6.1 0 11.6-4.5 11.6-13.2s-5.5-13-11.6-13-11.6 4.4-11.6 13S196.8 58 203 58",fillRule:"evenodd",fill:o}),_jsxruntime.jsx.call(void 0, "path",{fill:o,d:"m236.4 52-8.6 2.4c.5 4.6 5 12.5 17.1 12.5 10.6 0 15.7-7 15.7-13.3s-4.1-11-12-12.6l-6.3-1.3q-4-1-4.1-4.4c0-2.5 2.4-4.7 6-4.7 5.5 0 7.3 3.8 7.6 6.2l8.4-2.4c-.7-4.1-4.5-11.6-16-11.6-8.7 0-15.3 6.1-15.3 13.4 0 5.7 3.8 10.5 11.1 12l6.2 1.4q4.9 1.2 4.8 4.6c0 2.6-2 4.8-6.2 4.8-5.3 0-8-3.3-8.4-7m27.6 2.4 8.5-2.4c.4 3.7 3.2 7 8.5 7 4 0 6.2-2.2 6.2-4.7q.1-3.6-4.9-4.6l-6.1-1.4c-7.3-1.6-11.2-6.4-11.2-12.1 0-7.2 6.7-13.4 15.3-13.4 11.6 0 15.3 7.5 16 11.6l-8.4 2.4c-.3-2.4-2-6.2-7.6-6.2-3.5 0-6 2.2-6 4.7q.2 3.5 4.2 4.4l6.3 1.3c7.8 1.7 12 6.5 12 12.6s-5.2 13.3-15.8 13.3c-12 0-16.6-7.8-17-12.5m48.6-30.7h-9.5v41.9h10.1V41q0-2.7 1-4.8a8 8 0 0 1 7-4.2 8 8 0 0 1 7.2 4.2q1 2.1 1 4.8v24.6h10.1V41q0-2.7 1-4.8a8 8 0 0 1 7-4.2q2.6 0 4.4 1.2 1.8 1 2.8 3 1 2.1 1 4.8v24.6h10v-27q0-4.5-2-8.2a14 14 0 0 0-5.5-5.6q-3.5-2-8-2-5 0-8.8 2.5-2.4 1.6-4.1 4.2-1.4-2.3-3.9-4a16 16 0 0 0-9-2.7q-4.8 0-8.3 2.2-2.2 1.5-3.5 4zm71.1 41.9h-9.8V24.1h9.8zm8.8-41.6v41.6h10V41.3q0-2.8 1.1-4.8a8 8 0 0 1 7.3-4.2 8 8 0 0 1 7.4 4.2q1 2 1 4.7v24.4h10V38.9q0-4.6-2-8.2a14 14 0 0 0-5.5-5.6q-3.4-2-8.1-2c-4.7 0-5.5.7-7.8 2q-2.5 1.6-4 4v-5z"})]})}function S(t,n){let{icon:o}=t.colors;return _jsxruntime.jsx.call(void 0, "path",{d:"M70 48.3A62 62 0 0 0 47.5 43c7.7-.6 22.8-2.7 29-10.4C86.6 25.2 86 .3 86 .3S62.3-2.4 52 9.4c-6.5 6.4-8.4 17.5-9 25.2-.6-7.7-2.6-18.8-9-25.2C23.7-2.4 0 .3 0 .3S-.3 15.8 4.4 26C6.8 31 11 35.1 16 37.6c7.2 3.7 16.8 5 22.4 5.4-5.6.4-15.2 1.7-22.4 5.3C11 51 6.8 55 4.4 60-.3 70.2 0 85.7 0 85.7s23.7 2.6 34-9.2c6.4-6.3 8.4-17.5 9-25.2.6 7.8 2.6 18.9 9 25.3 10.3 11.7 34 9.1 34 9.1s.3-15.6-4.5-25.7A25 25 0 0 0 70 48.3m.8 21.9c-.1 0-12.5-3.6-28.3-24.7A195 195 0 0 0 15 71.8l-.5.6.2-.8c0-.1 3.7-12.8 25.7-29C38.3 39.4 33.3 32.2 14 15l-.4-.4.6.1c.4 0 10.3 1.6 28.5 25l.6 1c2.6-1.8 10-7.1 26.7-26l.4-.4-.1.6c0 .4-1.6 10.3-24.9 28.4A193 193 0 0 0 71 69.9l.6.5z",fill:o.type==="gradient"?`url(#logoGradient-${n})`:o.color,fillRule:"evenodd"})}exports.a = D;
@@ -1 +0,0 @@
1
- var T=9;export{T as a};
@@ -1 +0,0 @@
1
- import{a as d}from"./chunk-RWWMM4HD.js";import{a as f}from"./chunk-ZNDVEP3D.js";import{a as u,b as R,c}from"./chunk-PXDN3KFO.js";import*as r from"react";import{OTPInput as C,OTPInputContext as O}from"input-otp";import{createContext as T,useContext as v}from"react";import{jsx as p,jsxs as N}from"react/jsx-runtime";var P=T(void 0),I=r.forwardRef((b,t)=>{var i=b,{className:n,containerClassName:o,customStyles:a}=i,s=c(i,["className","containerClassName","customStyles"]);return p(P.Provider,{value:a,children:p(C,u({autoFocus:!0,ref:t,containerClassName:d("flex items-center gap-2 has-[:disabled]:opacity-50",o),className:d("disabled:cursor-not-allowed",n)},s))})});I.displayName="InputOTP";var h=r.forwardRef((s,a)=>{var t=s,{className:n}=t,o=c(t,["className"]);return p("div",u({ref:a,className:d("flex gap-2 items-center",n)},o))});h.displayName="InputOTPGroup";var y=r.forwardRef((b,t)=>{var i=b,{index:n,className:o,hasError:a}=i,s=c(i,["index","className","hasError"]);let g=r.useContext(O),{char:m,hasFakeCaret:x,isActive:l}=g.slots[n],e=v(P);return N("div",R(u({ref:t,className:d("relative flex h-14 w-12 items-center bg-cm-muted-primary justify-center border border-cm-border text-lg transition-all rounded-md text-cm-text-primary",l&&"z-10 ring-2 ring-offset-background",o),style:{borderRadius:e==null?void 0:e.borderRadius,borderColor:a?e==null?void 0:e.danger:e==null?void 0:e.border,boxShadow:l?`0 0 0 2px ${e==null?void 0:e.accent}`:"none",backgroundColor:m?e==null?void 0:e.buttonBackground:e==null?void 0:e.inputBackground}},s),{children:[m,x&&p("div",{className:f("pointer-events-none absolute inset-0 flex items-center justify-center"),children:p("div",{className:f("h-4 w-px animate-caret-blink duration-1000"),style:{height:"18px",backgroundColor:e==null?void 0:e.textPrimary}})})]}))});y.displayName="InputOTPSlot";export{I as a,h as b,y as c};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkUMCSEFX6cjs = require('./chunk-UMCSEFX6.cjs');var _chunk6BFWRGAScjs = require('./chunk-6BFWRGAS.cjs');var _jsxruntime = require('react/jsx-runtime');function d(){return _jsxruntime.jsx.call(void 0, _chunkUMCSEFX6cjs.q,{className:_chunk6BFWRGAScjs.a.call(void 0, "w-full")})}exports.a = d;
@@ -1,2 +0,0 @@
1
- import{a as H}from"./chunk-GGUEHZAY.js";import{a as U}from"./chunk-QHDN67N5.js";import{a as G,b as L,c as D}from"./chunk-GHRFRG65.js";import{a as R}from"./chunk-J2YZL55W.js";import{a as s}from"./chunk-ZNDVEP3D.js";import{d as A}from"./chunk-PXDN3KFO.js";import{useState as m}from"react";import{jsx as t,jsxs as d}from"react/jsx-runtime";function Z({phone:_,onSubmitOTP:M,onResendCode:u,appearance:o}){var g,y,P,h,c,v,k,b,T,e,O,C,I,S,B,E,N,w;let[n,$]=m(""),[j,i]=m(!1),[q,x]=m(!1),[f,r]=m(null),z=()=>A(this,null,function*(){x(!0);try{yield M(n),i(!1),r(null)}catch(l){console.error("Error confirming recovery key OTP",l),r("Invalid code. Please try again."),i(!0)}finally{x(!1)}});return d("div",{className:s("flex flex-col items-center justify-start w-full"),children:[t("div",{className:s("relative left-3"),children:t(U,{customAccentColor:(g=o==null?void 0:o.colors)==null?void 0:g.accent,customButtonBackgroundColor:(y=o==null?void 0:o.colors)==null?void 0:y.buttonBackground,customBackgroundColor:(P=o==null?void 0:o.colors)==null?void 0:P.background})}),t("p",{className:s("text-base font-normal mt-4 mb-1 text-center text-cm-text-primary"),style:{color:(h=o==null?void 0:o.colors)==null?void 0:h.textPrimary},children:"Check your phone"}),d("p",{className:s("text-center text-cm-text-secondary px-4"),style:{color:(c=o==null?void 0:o.colors)==null?void 0:c.textSecondary},children:["A temporary login code has been sent to ",_]}),t("div",{className:s("py-8"),children:t(G,{maxLength:9,value:n,onChange:l=>{$(l),i(!1),r(null)},onComplete:z,disabled:q,customStyles:{accent:(k=(v=o==null?void 0:o.colors)==null?void 0:v.accent)!=null?k:"#04AA6D",danger:(T=(b=o==null?void 0:o.colors)==null?void 0:b.danger)!=null?T:"#f44336",border:(O=(e=o==null?void 0:o.colors)==null?void 0:e.border)!=null?O:"#E5E7EB",textPrimary:(I=(C=o==null?void 0:o.colors)==null?void 0:C.textPrimary)!=null?I:"#909ca3",buttonBackground:(B=(S=o==null?void 0:o.colors)==null?void 0:S.buttonBackground)!=null?B:"#eff6ff",inputBackground:(N=(E=o==null?void 0:o.colors)==null?void 0:E.inputBackground)!=null?N:"#FFFFFF",borderRadius:o==null?void 0:o.borderRadius},children:t(L,{children:Array.from({length:9}).map((l,F)=>t(D,{index:F,hasError:j,className:s("max-sm:w-7 max-sm:h-11 max-sm:text-xl max-sm:mx-0 h-12 w-9")},F))})})}),f&&t("div",{className:s("text-sm text-red-500 mb-4"),children:f}),t("div",{className:s("text-xs leading-tight text-cm-text-secondary text-center"),children:d("span",{style:{color:(w=o==null?void 0:o.colors)==null?void 0:w.textSecondary},children:["Didn't receive the SMS? Check your signal.",`
2
- `,"Some messages may take several minutes to arrive."]})}),u&&t(R,{initialSeconds:60,appearance:o,countdownText:l=>`Re-send code in ${l}s`,countdownCompleteText:"Re-send code",handleOnClick:u})]})}export{Z as a};
@@ -1 +0,0 @@
1
- import{a as P}from"./chunk-DCELWGNS.js";import{a as c}from"./chunk-GONS3X7J.js";import{a as b,e as h,h as C,i as a}from"./chunk-KIESVSW4.js";import{a as t}from"./chunk-ZNDVEP3D.js";import{VisuallyHidden as v}from"@radix-ui/react-visually-hidden";import{jsx as i,jsxs as r}from"react/jsx-runtime";function H({phone:n,open:s,setOpen:y,step:m,onSubmitOTP:D,onResendOTPCode:O,onSubmitPhone:S,rejectRef:l,appearance:o}){var f,u,g;if(n==null)throw new Error("Phone is required");function d(e){var x;(s||e)&&((x=l.current)==null||x.call(l,new Error),y(!1))}return i(b,{modal:!1,open:s,onOpenChange:d,children:r(h,{onInteractOutside:e=>e.preventDefault(),onOpenAutoFocus:e=>e.preventDefault(),className:t("!p-0 !min-[480px]:p-0"),style:{borderRadius:o==null?void 0:o.borderRadius,backgroundColor:(f=o==null?void 0:o.colors)==null?void 0:f.background},children:[i(v,{asChild:!0,children:i(C,{children:"Confirm it's you"})}),i(v,{asChild:!0,children:i(a,{children:"Create a recovery key"})}),r("div",{className:t("relative pt-10 pb-[30px] px-6 !min-[480px]:px-10 flex flex-col gap-[10px] antialiased animate-none max-w-[448px]"),children:[m==="initial"?r("div",{className:t("flex flex-col gap-4"),children:[i("h1",{className:t("text-2xl font-bold text-cm-text-primary"),style:{color:(u=o==null?void 0:o.colors)==null?void 0:u.textPrimary},children:"Confirm it's you"}),i("p",{className:t("text-base font-normal mb-3 text-cm-text-secondary"),style:{color:(g=o==null?void 0:o.colors)==null?void 0:g.textSecondary},children:"You're using this wallet for the first time on this device. Click 'Send code' to get a one-time verification code via SMS."})]}):null,m==="otp"?i(c,{phone:n,onSubmitOTP:D,onResendCode:O,appearance:o}):i(P,{phone:n,onConfirm:S,onCancel:d,appearance:o})]})]})})}export{H as a};
@@ -1 +0,0 @@
1
- import{a as g}from"./chunk-RWWMM4HD.js";import{d as a}from"./chunk-PXDN3KFO.js";import{useState as r,useEffect as R}from"react";import{jsx as v}from"react/jsx-runtime";function E({initialSeconds:u,appearance:t,countdownText:w,countdownCompleteText:b,handleOnClick:k}){var f,m,C,y;let[s,l]=r(u),[o,c]=r(!0),[h,x]=r(0),[i,d]=r(!1);R(()=>{let n;return s>0&&(c(!1),n=setInterval(()=>{l(e=>e<=1?(c(!0),0):e-1)},1e3)),()=>{n!=null&&clearInterval(n)}},[s]);let I=()=>{if(!o)return;let n=Math.min(u*Math.pow(2,h),240);l(n),x(e=>e+1)};return v("button",{onClick:()=>a(this,null,function*(){o&&s===0&&!i&&(d(!0),yield k(),I(),d(!1))}),disabled:!o||i,className:g("text-sm leading-tight text-center mt-2 transition-opacity",o&&!i?"cursor-pointer opacity-100":"cursor-default opacity-50"),style:{color:o?(m=(f=t==null?void 0:t.colors)==null?void 0:f.textLink)!=null?m:"#1A73E8":(y=(C=t==null?void 0:t.colors)==null?void 0:C.textSecondary)!=null?y:"#67797F"},children:o?b:w(s)})}export{E as a};
@@ -1 +0,0 @@
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; } }var _chunk4EQ23ZKCcjs = require('./chunk-4EQ23ZKC.cjs');var _chunk6BFWRGAScjs = require('./chunk-6BFWRGAS.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _react = require('react'); var g = _interopRequireWildcard(_react);var _reactdialog = require('@radix-ui/react-dialog'); var e = _interopRequireWildcard(_reactdialog);var _jsxruntime = require('react/jsx-runtime');var T=e.Root,k= exports.b =e.Trigger,H= exports.c =e.Close,v= exports.d =e.Portal,u= exports.e =g.forwardRef((h,D)=>{var d=h,{className:i,children:o,showCloseButton:n=!0,closeButtonColor:t,closeButtonRingColor:s}=d,x=_chunk2WSEHVNPcjs.c.call(void 0, d,["className","children","showCloseButton","closeButtonColor","closeButtonRingColor"]);return _jsxruntime.jsxs.call(void 0, v,{children:[_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "fixed inset-0 z-40 bg-black/60 backdrop-blur-sm overflow-x-hidden")}),_jsxruntime.jsxs.call(void 0, e.Content,_chunk2WSEHVNPcjs.b.call(void 0, _chunk2WSEHVNPcjs.a.call(void 0, {ref:D,className:_chunk4EQ23ZKCcjs.a.call(void 0, "fixed z-50 p-6 pb-4 bg-cm-background-primary border border-cm-border shadow-xl transition-none","inset-x-[9px] bottom-2 w-[calc(100%-18px)] border-t rounded-t-[36px] rounded-b-[50px]","max-[479px]:data-[state=closed]:animate-slide-out-to-bottom max-[479px]:data-[state=open]:animate-slide-in-from-bottom","min-[480px]:inset-auto min-[480px]:left-[50%] min-[480px]:top-[50%]","min-[480px]:[transform:translate(-50%,-50%)]","min-[480px]:max-w-[448px] min-[480px]:rounded-3xl !min-[480px]:p-10 !min-[480px]:pb-8","min-[480px]:data-[state=closed]:animate-fade-out min-[480px]:data-[state=open]:animate-fade-in",i)},x),{children:[o,n&&_jsxruntime.jsxs.call(void 0, e.Close,{className:_chunk4EQ23ZKCcjs.a.call(void 0, "absolute rounded-full opacity-70 ring-offset-background transition-opacity hover:opacity-100","focus:outline-none focus:ring-2 focus:ring-cm-accent focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-text-primary","right-5 top-5 !min-[480px]:right-7 !min-[480px]:top-7"),style:{color:t!=null?t:"#67797F"},children:[_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:_chunk6BFWRGAScjs.a.call(void 0, "h-7 w-7"),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, "span",{className:_chunk6BFWRGAScjs.a.call(void 0, "sr-only"),children:"Close"})]})]}))]})});u.displayName=e.Content.displayName;var P=n=>{var t=n,{className:i}=t,o=_chunk2WSEHVNPcjs.c.call(void 0, t,["className"]);return _jsxruntime.jsx.call(void 0, "div",_chunk2WSEHVNPcjs.a.call(void 0, {className:_chunk4EQ23ZKCcjs.a.call(void 0, "flex flex-col space-y-1.5 text-center sm:text-left",i)},o))};P.displayName="DialogHeader";var b=n=>{var t=n,{className:i}=t,o=_chunk2WSEHVNPcjs.c.call(void 0, t,["className"]);return _jsxruntime.jsx.call(void 0, "div",_chunk2WSEHVNPcjs.a.call(void 0, {className:_chunk4EQ23ZKCcjs.a.call(void 0, "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",i)},o))};b.displayName="DialogFooter";var R=g.forwardRef((t,n)=>{var s=t,{className:i}=s,o=_chunk2WSEHVNPcjs.c.call(void 0, s,["className"]);return _jsxruntime.jsx.call(void 0, e.Title,_chunk2WSEHVNPcjs.a.call(void 0, {ref:n,className:_chunk4EQ23ZKCcjs.a.call(void 0, "text-lg font-semibold leading-none tracking-tight",i)},o))});R.displayName=e.Title.displayName;var y=g.forwardRef((t,n)=>{var s=t,{className:i}=s,o=_chunk2WSEHVNPcjs.c.call(void 0, s,["className"]);return _jsxruntime.jsx.call(void 0, e.Description,_chunk2WSEHVNPcjs.a.call(void 0, {ref:n,className:_chunk4EQ23ZKCcjs.a.call(void 0, "text-sm text-muted-foreground",i)},o))});y.displayName=e.Description.displayName;exports.a = T; exports.b = k; exports.c = H; exports.d = v; exports.e = u; exports.f = P; exports.g = b; exports.h = R; exports.i = y;
@@ -1 +0,0 @@
1
- import{a as n}from"./chunk-2LLVSWMJ.js";import{a as l}from"./chunk-WK7PY5WL.js";import{a as i}from"./chunk-ZNDVEP3D.js";import{DynamicEmbeddedWidget as s}from"@dynamic-labs/sdk-react-core";import{Fragment as d,jsx as t,jsxs as f}from"react/jsx-runtime";function w(){var r,e;let{appearance:o,step:m,setStep:c}=l();return m==="web3"?f(d,{children:[t(n,{onClick:()=>c("initial"),iconColor:(r=o==null?void 0:o.colors)==null?void 0:r.textPrimary,ringColor:(e=o==null?void 0:o.colors)==null?void 0:e.accent}),t("div",{className:i("flex flex-col items-center"),children:t("div",{className:i("flex flex-col gap-[10px] w-full"),children:t("div",{className:i("widget-container"),children:t(s,{background:"none"})})})})]}):null}export{w as a};
@@ -1 +0,0 @@
1
- import{jsx as L}from"react/jsx-runtime";function o({className:t}){return L("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:L("path",{d:"M 14.285156 10.171875 L 23.222656 0 L 21.105469 0 L 13.34375 8.832031 L 7.148438 0 L 0 0 L 9.371094 13.355469 L 0 24.019531 L 2.117188 24.019531 L 10.308594 14.691406 L 16.851562 24.019531 L 24 24.019531 M 2.878906 1.5625 L 6.132812 1.5625 L 21.101562 22.535156 L 17.851562 22.535156",fill:"currentColor"})})}export{o as a};
@@ -1 +0,0 @@
1
- import{a as P}from"./chunk-HVZ5M3FY.js";import{a as u}from"./chunk-OOLXYAO7.js";import{a as b}from"./chunk-77PBG2JJ.js";import{a as k,e as h,h as x}from"./chunk-KIESVSW4.js";import{a as C}from"./chunk-EOMXTZMF.js";import{a as g}from"./chunk-RWWMM4HD.js";import{a as i}from"./chunk-ZNDVEP3D.js";import{VisuallyHidden as w}from"@radix-ui/react-visually-hidden";import{Fragment as N,jsx as o,jsxs as s}from"react/jsx-runtime";function c({title:e,content:t,primaryButton:l,secondaryAction:n,appearance:r}){var a,y,f,v;return o(k,{modal:!1,open:!0,onOpenChange:()=>{},children:s(h,{showCloseButton:!1,onInteractOutside:m=>m.preventDefault(),onOpenAutoFocus:m=>m.preventDefault(),className:i("!p-0 !min-[480px]:p-0"),style:{borderRadius:r==null?void 0:r.borderRadius,backgroundColor:(a=r==null?void 0:r.colors)==null?void 0:a.background},children:[o(w,{asChild:!0,children:o(x,{children:e})}),s("div",{className:i("relative pt-10 pb-[30px] px-6 !min-[480px]:px-10 flex flex-col gap-[10px] antialiased animate-none"),children:[o("div",{className:i("flex justify-center left-1.5 relative"),children:o(P,{appearance:r})}),o("div",{className:i("flex justify-center"),children:o("p",{style:{fontSize:"1.125rem",lineHeight:"1.75rem",fontWeight:"bold",color:((y=r==null?void 0:r.colors)==null?void 0:y.textPrimary)||"#20343E"},children:e})}),o("div",{className:i("mb-6"),children:o("div",{style:{fontWeight:"normal",color:((f=r==null?void 0:r.colors)==null?void 0:f.textSecondary)||"#67797F"},children:t})}),s("div",{className:i("flex flex-col gap-4 justify-center"),children:[l,n]}),o("div",{className:i("flex justify-center pt-4"),children:o(C,{color:(v=r==null?void 0:r.colors)==null?void 0:v.textSecondary})})]})]})})}function S({state:e,appearance:t}){var l,n;switch(e.type){case"create-wallet":return o(c,{title:"Create Your Wallet",appearance:t,content:s(N,{children:[o("div",{className:i("mb-3"),children:"You're about to create a wallet."}),s("div",{className:i("flex flex-col gap-2"),children:[s("div",{className:i("flex gap-2"),children:[o("div",{children:o(b,{})}),"Your wallet will be secured with a passkey"]}),s("div",{className:i("flex gap-2"),children:[o("div",{children:o(u,{})}),"Your device will ask you for your fingerprint, face, or screen lock to set it up"]})]})]}),primaryButton:o(d,{appearance:t,onClick:e.primaryActionOnClick,children:"Create Wallet"})});case"create-wallet-error":return o(c,{title:"Wallet Creation Failed",appearance:t,content:o("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:o(d,{appearance:t,onClick:e.primaryActionOnClick,children:"Try again"})});case"transaction":return o(c,{title:"Use Your Wallet",appearance:t,content:o("div",{className:i("flex flex-col gap-2"),children:s("div",{className:i("flex gap-2"),children:[o("div",{children:o(u,{})}),o("span",{children:"Your device will ask you for your fingerprint, face, or screen lock to authorize this action."})]})}),primaryButton:o(d,{appearance:t,onClick:e.primaryActionOnClick,children:"Use Wallet"})});case"transaction-error":return o(c,{title:"Wallet Access Failed",appearance:t,content:o("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:o(d,{appearance:t,onClick:e.primaryActionOnClick,children:"Try again"}),secondaryAction:o("a",{href:"https://docs.crossmint.com/wallets/smart-wallets/users/troubleshoot",rel:"noopener noreferrer",target:"_blank",style:{padding:"0.875rem",width:"100%",textAlign:"center",textDecoration:"none",borderRadius:"0.5rem",fontWeight:"bold",backgroundColor:((l=t==null?void 0:t.colors)==null?void 0:l.inputBackground)||"#F0F2F4",color:((n=t==null?void 0:t.colors)==null?void 0:n.textSecondary)||"#00150D"},children:"Troubleshoot"})});case"not-supported":return o(c,{title:"Passkeys Not Supported on This Device",appearance:t,content:o("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:o(d,{appearance:t,onClick:e.primaryActionOnClick,children:"Understood"})});default:return null}}var d=({appearance:e,onClick:t,children:l})=>{var n,r;return s("button",{className:g("relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center","transition-colors duration-200 ease-in-out","hover:bg-cm-hover focus:bg-cm-hover outline-none"),style:{borderRadius:e==null?void 0:e.borderRadius,backgroundColor:(n=e==null?void 0:e.colors)==null?void 0:n.buttonBackground},onClick:t,children:[o("span",{className:i("font-medium"),style:{margin:"0px 32px",color:(r=e==null?void 0:e.colors)==null?void 0:r.textPrimary},children:l}),o("span",{className:i("sr-only"),children:l})]})};export{S as a};
@@ -1 +0,0 @@
1
- import{a as r}from"./chunk-RWWMM4HD.js";import{a as p}from"./chunk-ZNDVEP3D.js";import{a as l,b as f,c as m}from"./chunk-PXDN3KFO.js";import*as g from"react";import*as e from"@radix-ui/react-dialog";import{jsx as a,jsxs as c}from"react/jsx-runtime";var k=e.Root,H=e.Trigger,L=e.Close,v=e.Portal,u=g.forwardRef((h,D)=>{var d=h,{className:i,children:o,showCloseButton:n=!0,closeButtonColor:t,closeButtonRingColor:s}=d,x=m(d,["className","children","showCloseButton","closeButtonColor","closeButtonRingColor"]);return c(v,{children:[a("div",{className:p("fixed inset-0 z-40 bg-black/60 backdrop-blur-sm overflow-x-hidden")}),c(e.Content,f(l({ref:D,className:r("fixed z-50 p-6 pb-4 bg-cm-background-primary border border-cm-border shadow-xl transition-none","inset-x-[9px] bottom-2 w-[calc(100%-18px)] border-t rounded-t-[36px] rounded-b-[50px]","max-[479px]:data-[state=closed]:animate-slide-out-to-bottom max-[479px]:data-[state=open]:animate-slide-in-from-bottom","min-[480px]:inset-auto min-[480px]:left-[50%] min-[480px]:top-[50%]","min-[480px]:[transform:translate(-50%,-50%)]","min-[480px]:max-w-[448px] min-[480px]:rounded-3xl !min-[480px]:p-10 !min-[480px]:pb-8","min-[480px]:data-[state=closed]:animate-fade-out min-[480px]:data-[state=open]:animate-fade-in",i)},x),{children:[o,n&&c(e.Close,{className:r("absolute rounded-full opacity-70 ring-offset-background transition-opacity hover:opacity-100","focus:outline-none focus:ring-2 focus:ring-cm-accent focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-text-primary","right-5 top-5 !min-[480px]:right-7 !min-[480px]:top-7"),style:{color:t!=null?t:"#67797F"},children:[c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:p("h-7 w-7"),children:[a("path",{d:"M18 6 6 18"}),a("path",{d:"m6 6 12 12"})]}),a("span",{className:p("sr-only"),children:"Close"})]})]}))]})});u.displayName=e.Content.displayName;var P=n=>{var t=n,{className:i}=t,o=m(t,["className"]);return a("div",l({className:r("flex flex-col space-y-1.5 text-center sm:text-left",i)},o))};P.displayName="DialogHeader";var b=n=>{var t=n,{className:i}=t,o=m(t,["className"]);return a("div",l({className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",i)},o))};b.displayName="DialogFooter";var R=g.forwardRef((t,n)=>{var s=t,{className:i}=s,o=m(s,["className"]);return a(e.Title,l({ref:n,className:r("text-lg font-semibold leading-none tracking-tight",i)},o))});R.displayName=e.Title.displayName;var y=g.forwardRef((t,n)=>{var s=t,{className:i}=s,o=m(s,["className"]);return a(e.Description,l({ref:n,className:r("text-sm text-muted-foreground",i)},o))});y.displayName=e.Description.displayName;export{k as a,H as b,L as c,v as d,u as e,P as f,b as g,R as h,y as i};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKT4LGFPNcjs = require('./chunk-KT4LGFPN.cjs');var _chunk4EQ23ZKCcjs = require('./chunk-4EQ23ZKC.cjs');var _chunkTXOVDTYKcjs = require('./chunk-TXOVDTYK.cjs');var _chunkYXF74MVIcjs = require('./chunk-YXF74MVI.cjs');var _chunk6BFWRGAScjs = require('./chunk-6BFWRGAS.cjs');var _jsxruntime = require('react/jsx-runtime');function v(){var l,s,e,i,m;let{step:x,appearance:o,setStep:d,setError:f}=_chunkKT4LGFPNcjs.a.call(void 0, );return x!=="initial"?null:_jsxruntime.jsxs.call(void 0, "button",{className:_chunk4EQ23ZKCcjs.a.call(void 0, "relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center","transition-colors duration-200 ease-in-out","hover:bg-cm-hover focus:bg-cm-hover outline-none"),style:{borderRadius:o==null?void 0:o.borderRadius,borderColor:(l=o==null?void 0:o.colors)==null?void 0:l.border,backgroundColor:(s=o==null?void 0:o.colors)==null?void 0:s.buttonBackground},onClick:()=>{d("web3"),f(null)},children:[_jsxruntime.jsx.call(void 0, _chunkTXOVDTYKcjs.a,{className:_chunk6BFWRGAScjs.a.call(void 0, "h-[21px] w-[21px] absolute left-[20px]"),style:{color:(e=o==null?void 0:o.colors)==null?void 0:e.textPrimary}}),_jsxruntime.jsx.call(void 0, "span",{className:_chunk6BFWRGAScjs.a.call(void 0, "font-medium"),style:{margin:"0px 32px",color:(i=o==null?void 0:o.colors)==null?void 0:i.textPrimary},children:"Continue with a wallet"}),_jsxruntime.jsx.call(void 0, _chunkYXF74MVIcjs.a,{className:_chunk6BFWRGAScjs.a.call(void 0, "h-[21px] w-[21px] absolute right-[20px]"),style:{color:(m=o==null?void 0:o.colors)==null?void 0:m.textSecondary}}),_jsxruntime.jsx.call(void 0, "span",{className:_chunk6BFWRGAScjs.a.call(void 0, "sr-only"),children:"Continue with a wallet"})]})}exports.a = v;
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkF2PJZF7Hcjs = require('./chunk-F2PJZF7H.cjs');var _chunkE4DYZZKZcjs = require('./chunk-E4DYZZKZ.cjs');var _chunkONU6TI5Wcjs = require('./chunk-ONU6TI5W.cjs');var _chunkI4GMMHQRcjs = require('./chunk-I4GMMHQR.cjs');var _chunk6BFWRGAScjs = require('./chunk-6BFWRGAS.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');function Y({email:D,onSubmitOTP:$,onResendCode:u,appearance:o}){var y,g,P,c,k,v,b,T,h,O,C,E,I,B,e,N,S,w;let[n,j]=_react.useState.call(void 0, ""),[q,i]=_react.useState.call(void 0, !1),[z,f]=_react.useState.call(void 0, !1),[x,r]=_react.useState.call(void 0, null),J=()=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){f(!0);try{yield $(n),i(!1),r(null)}catch(l){console.error("Error confirming recovery key OTP",l),r("Invalid code. Please try again."),i(!0)}finally{f(!1)}});return _jsxruntime.jsxs.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "flex flex-col items-center justify-start w-full"),children:[_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "relative left-3"),children:_jsxruntime.jsx.call(void 0, _chunkI4GMMHQRcjs.a,{customAccentColor:(y=o==null?void 0:o.colors)==null?void 0:y.accent,customButtonBackgroundColor:(g=o==null?void 0:o.colors)==null?void 0:g.buttonBackground,customBackgroundColor:(P=o==null?void 0:o.colors)==null?void 0:P.background})}),_jsxruntime.jsx.call(void 0, "p",{className:_chunk6BFWRGAScjs.a.call(void 0, "text-base font-normal mt-4 mb-1 text-center text-cm-text-primary"),style:{color:(c=o==null?void 0:o.colors)==null?void 0:c.textPrimary},children:"Check your email"}),_jsxruntime.jsxs.call(void 0, "p",{className:_chunk6BFWRGAScjs.a.call(void 0, "text-center text-cm-text-secondary px-4"),style:{color:(k=o==null?void 0:o.colors)==null?void 0:k.textSecondary},children:["A temporary login code has been sent to ",D]}),_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "py-8"),children:_jsxruntime.jsx.call(void 0, _chunkE4DYZZKZcjs.a,{maxLength:9,value:n,onChange:l=>{j(l),i(!1),r(null)},onComplete:J,disabled:z,customStyles:{accent:(b=(v=o==null?void 0:o.colors)==null?void 0:v.accent)!=null?b:"#04AA6D",danger:(h=(T=o==null?void 0:o.colors)==null?void 0:T.danger)!=null?h:"#f44336",border:(C=(O=o==null?void 0:o.colors)==null?void 0:O.border)!=null?C:"#E5E7EB",textPrimary:(I=(E=o==null?void 0:o.colors)==null?void 0:E.textPrimary)!=null?I:"#909ca3",buttonBackground:(e=(B=o==null?void 0:o.colors)==null?void 0:B.buttonBackground)!=null?e:"#eff6ff",inputBackground:(S=(N=o==null?void 0:o.colors)==null?void 0:N.inputBackground)!=null?S:"#FFFFFF",borderRadius:o==null?void 0:o.borderRadius},children:_jsxruntime.jsx.call(void 0, _chunkE4DYZZKZcjs.b,{children:Array.from({length:9}).map((l,F)=>_jsxruntime.jsx.call(void 0, _chunkE4DYZZKZcjs.c,{index:F,hasError:q,className:_chunk6BFWRGAScjs.a.call(void 0, "max-sm:w-7 max-sm:h-11 max-sm:text-xl max-sm:mx-0 sm:h-12 sm:w-9")},F))})})}),x&&_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "text-sm text-red-500 mb-4"),children:x}),_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "text-xs leading-tight text-cm-text-secondary text-center"),children:_jsxruntime.jsxs.call(void 0, "span",{style:{color:(w=o==null?void 0:o.colors)==null?void 0:w.textSecondary},children:["Can't find the email? Check spam folder.",`
2
- `,"Some emails may take several minutes to arrive."]})}),u&&_jsxruntime.jsx.call(void 0, _chunkONU6TI5Wcjs.a,{initialSeconds:60,appearance:o,countdownText:l=>`Re-send code in ${l}s`,countdownCompleteText:"Re-send code",handleOnClick:u})]})}exports.a = Y;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk4EQ23ZKCcjs = require('./chunk-4EQ23ZKC.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');function T({initialSeconds:u,appearance:t,countdownText:w,countdownCompleteText:b,handleOnClick:k}){var f,m,C,y;let[s,l]=_react.useState.call(void 0, u),[o,c]=_react.useState.call(void 0, !0),[h,x]=_react.useState.call(void 0, 0),[i,d]=_react.useState.call(void 0, !1);_react.useEffect.call(void 0, ()=>{let n;return s>0&&(c(!1),n=setInterval(()=>{l(e=>e<=1?(c(!0),0):e-1)},1e3)),()=>{n!=null&&clearInterval(n)}},[s]);let I=()=>{if(!o)return;let n=Math.min(u*Math.pow(2,h),240);l(n),x(e=>e+1)};return _jsxruntime.jsx.call(void 0, "button",{onClick:()=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){o&&s===0&&!i&&(d(!0),yield k(),I(),d(!1))}),disabled:!o||i,className:_chunk4EQ23ZKCcjs.a.call(void 0, "text-sm leading-tight text-center mt-2 transition-opacity",o&&!i?"cursor-pointer opacity-100":"cursor-default opacity-50"),style:{color:o?(m=(f=t==null?void 0:t.colors)==null?void 0:f.textLink)!=null?m:"#1A73E8":(y=(C=t==null?void 0:t.colors)==null?void 0:C.textSecondary)!=null?y:"#67797F"},children:o?b:w(s)})}exports.a = T;
@@ -1,11 +0,0 @@
1
- import{a as Gt}from"./chunk-DQHM2ITY.js";import{a as Bt}from"./chunk-JSNUJJQJ.js";import{b as Ot}from"./chunk-4KDASQO6.js";import{a as Dt}from"./chunk-SQ6GQUV4.js";import{a as St}from"./chunk-LD3MRJ3F.js";import{a as mt}from"./chunk-2LLVSWMJ.js";import{a as C,b as Lt}from"./chunk-WK7PY5WL.js";import{a as It,b as Tt,c as $}from"./chunk-GHRFRG65.js";import{a as B}from"./chunk-QQTPO5IF.js";import{a as Et,e as Ft,h as kt,i as Wt}from"./chunk-KIESVSW4.js";import{a as Ut}from"./chunk-EOMXTZMF.js";import{a as Nt}from"./chunk-J2YZL55W.js";import{a as I}from"./chunk-RWWMM4HD.js";import{a as _t}from"./chunk-JPJKOERH.js";import{a as Rt}from"./chunk-C3JRTLQP.js";import{a as Mt}from"./chunk-E4TBJMOO.js";import{a as at}from"./chunk-WW6GUXHG.js";import{a as ut}from"./chunk-UAFW3OWA.js";import{a as l}from"./chunk-ZNDVEP3D.js";import{a as Q,b as Y,c as st,d as v}from"./chunk-PXDN3KFO.js";import{VisuallyHidden as go}from"@radix-ui/react-visually-hidden";import tr from"color";import{useState as jo}from"react";import{useState as wt}from"react";import{useContext as _o}from"react";import{createContext as No,useEffect as vt,useMemo as Zt,useRef as to,useState as q,useCallback as X}from"react";import{CrossmintAuth as Io,getCookie as To}from"@crossmint/client-sdk-auth";import{validateApiKeyAndGetCrossmintBaseUrl as Ro}from"@crossmint/common-sdk-base";import{SESSION_PREFIX as Lo}from"@crossmint/common-sdk-auth";import{useCrossmint as Do}from"@crossmint/client-sdk-react-base";import{createContext as Co,useCallback as Kt,useContext as Ao,useEffect as Po,useState as Vt}from"react";import{ChildWindow as ho,PopupWindow as yo}from"@crossmint/client-sdk-window";import{useEffect as xo,useRef as vo,useState as bo,useCallback as wo}from"react";import{z as ct}from"zod";var Ht=(n,r)=>{let{crossmintAuth:o}=E(),[t,i]=bo(!1),e=vo(null);return xo(()=>(e.current==null&&(e.current=new ho(window.opener||window.parent,"*",{incomingEvents:po})),()=>{e.current!=null&&e.current.off("authMaterialFromPopupCallback")}),[]),{createPopupAndSetupListeners:wo((m,h)=>v(void 0,null,function*(){if(e.current==null)throw new Error("Child window not initialized");i(!0),r(null);let s=new URL(n[m]);if(h!=null){let a=Array.from(s.searchParams.entries());s.search="",h&&s.searchParams.append("provider_login_hint",h),a.forEach(([d,w])=>{s.searchParams.append(d,w)})}let b=yield yo.init(s.toString(),{awaitToLoad:!1,crossOrigin:!0,width:400,height:700}),f=a=>v(void 0,null,function*(){var d;yield o==null?void 0:o.handleRefreshAuthMaterial(a.oneTimeSecret),(d=e.current)==null||d.off("authMaterialFromPopupCallback"),b.window.close(),i(!1)}),c=a=>{var d;r(a.error),(d=e.current)==null||d.off("errorFromPopupCallback"),b.window.close(),i(!1)};e.current.on("authMaterialFromPopupCallback",f),e.current.on("errorFromPopupCallback",c);let g=setInterval(()=>{var a,d;(a=b.window)!=null&&a.closed&&(clearInterval(g),i(!1),(d=e.current)==null||d.off("authMaterialFromPopupCallback"))},2500)}),[n,o,r]),isLoading:t}},po={authMaterialFromPopupCallback:ct.object({oneTimeSecret:ct.string()}),errorFromPopupCallback:ct.object({error:ct.string()})};import{jsx as So}from"react/jsx-runtime";var jt={google:"",twitter:""},zt=Co(void 0);function V(){let n=Ao(zt);if(!n)throw new Error("useOAuthFlow must be used within an OAuthFlowProvider");return n}function $t({children:n,prefetchOAuthUrls:r}){let{crossmintAuth:o,loginMethods:t}=E(),{setError:i}=C(),[e,u]=Vt(jt),[m,h]=Vt(!0),{createPopupAndSetupListeners:s,isLoading:b}=Ht(e,i),f=Kt(()=>v(this,null,function*(){h(!0);try{let d=(t||[]).filter(x=>x in jt).map(x=>v(this,null,function*(){let p=yield o==null?void 0:o.getOAuthUrl(x);return{[x]:p}})),w=Object.assign({},...yield Promise.all(d));u(w)}catch(a){i(a instanceof Error?a.message:"Unable to load oauth providers. Please try again later.")}finally{h(!1)}}),[t,o,i]);Po(()=>{r&&f()},[f,r]);let g={startOAuthLogin:Kt((a,d)=>v(this,null,function*(){yield s(a,d)}),[s]),isLoading:m||b};return So(zt.Provider,{value:g,children:n})}import{useEffect as xt,useMemo as qt}from"react";import{useDynamicContext as Oo}from"@dynamic-labs/sdk-react-core";import{isEthereumWallet as Eo}from"@dynamic-labs/ethereum";import{isSolanaWallet as Fo}from"@dynamic-labs/solana";import{EthereumWalletConnectors as Xt}from"@dynamic-labs/ethereum";import{SolanaWalletConnectors as Jt}from"@dynamic-labs/solana";import ko from"bs58";import{jsx as Qt}from"react/jsx-runtime";function Wo({children:n,enabled:r,onSdkLoaded:o,onWalletConnected:t,jwt:i}){let{primaryWallet:e,sdkHasLoaded:u,removeWallet:m,handleUnlinkWallet:h}=Oo(),s=!r||u;return xt(()=>{s&&(o==null||o(s))},[s,o]),xt(()=>{i==null&&s&&e!=null&&(m(e.id),h(e.id))},[i,s,e,m,h]),xt(()=>{function b(){return v(this,null,function*(){try{if(Eo(e)){let f=yield e.getWalletClient(),c={type:"external-wallet",address:f.account.address,viemAccount:Y(Q({},f.account),{signMessage:g=>v(this,null,function*(){return yield f.signMessage({message:g.message})})})};t(c)}else if(Fo(e)){let f=yield e.getSigner(),c={type:"external-wallet",address:e.address,onSignTransaction:g=>v(this,null,function*(){return yield f.signTransaction(g)})};t(c)}else throw new Error("Unsupported wallet type")}catch(f){throw console.error("Failed to get admin signer",f),new Error("Failed to get admin signer")}})}e!=null&&i!=null&&b()},[e,i,t]),n}function Yt({children:n,enabled:r=!0,apiKeyEnvironment:o,loginMethods:t=["web3"],appearance:i,onSdkLoaded:e,onWalletConnected:u}){var f,c;let{crossmintAuth:m,jwt:h}=E(),s=qt(()=>{var g,a;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: ${(a=i==null?void 0:i.colors)==null?void 0:a.textSecondary} !important; }`},[(f=i==null?void 0:i.colors)==null?void 0:f.textPrimary,(c=i==null?void 0:i.colors)==null?void 0:c.textSecondary]),b=qt(()=>{if(r)return t.includes("web3:evm-only")?[Xt]:t.includes("web3:solana-only")?[Jt]:[Xt,Jt]},[r,t]);return Qt(St,{apiKeyEnvironment:o,settings:{walletConnectors:b,cssOverrides:s,events:{onAuthFailure(g,a){console.error("[DynamicWalletProvider] onAuthFailure",g,a)}},handlers:{handleConnectedWallet:g=>v(this,null,function*(){var d;if(!m)return console.error("[DynamicWalletProvider] crossmintAuth is not available"),!1;let a=g.address;if(a==null)return console.error("[DynamicWalletProvider] handleConnectedWallet: address is missing"),!1;try{let x=(yield Ot(g))==="solana"?"solana":"evm",p=yield m.signInWithSmartWallet(a,x);if((p==null?void 0:p.challenge)==null)throw new Error("No challenge received from signInWithSmartWallet");let P=yield(d=g.connector)==null?void 0:d.proveOwnership(a,p.challenge);if(P==null)throw new Error("Failed to get signature from wallet");let S=P;if(x==="solana"){let L=Buffer.from(P,"base64");S=ko.encode(L)}let A=yield m.authenticateSmartWallet(a,x,S);if((A==null?void 0:A.oneTimeSecret)==null)throw new Error("No oneTimeSecret received from authenticateSmartWallet");return yield m.handleRefreshAuthMaterial(A.oneTimeSecret),!0}catch(w){return console.error("[DynamicWalletProvider] Error handling wallet connection:",w),!1}})}},children:Qt(Wo,{enabled:r,onSdkLoaded:e,onWalletConnected:u,jwt:h,children:n})},`${o}-${t.join(",")}`)}import{Fragment as Bo,jsx as Z,jsxs as oo}from"react/jsx-runtime";var Mo={crossmintAuth:void 0,login:()=>{},experimental_loginWithOAuth:()=>{},logout:()=>{},jwt:void 0,user:void 0,status:"initializing",getUser:()=>{},experimental_externalWalletSigner:void 0,loginMethods:[]},bt=No(Mo);function Hr({children:n,appearance:r,termsOfServiceText:o,prefetchOAuthUrls:t=!0,authModalTitle:i,onLoginSuccess:e,loginMethods:u=["email","google"],refreshRoute:m,logoutRoute:h}){let{crossmint:s}=Do("CrossmintAuthProvider must be used within CrossmintProvider"),[b,f]=q(void 0),[c,g]=q(void 0),a=Ro(s.apiKey),[d,w]=q(!1),[x,p]=q(!1),[P,S]=q(void 0),[A,L]=q(!0),N=u.some(y=>y.startsWith("web3")),[D,j]=q(void 0),G=to(null),M=Zt(()=>(G.current||(G.current=Io.from(s,{callbacks:{onLogout:()=>{f(void 0),g(void 0)},onTokenRefresh:y=>{f(y.user),g(y.jwt)}},refreshRoute:m,logoutRoute:h})),G.current),[]),U=to(null),O=X(()=>{e==null||e()},[e]);vt(()=>{if(c==null){let y=To(Lo);g(y)}p(!0)},[c]),vt(()=>{c!=null&&d&&(w(!1),O())},[c,d,O]);let H=X(y=>{if(c!=null){console.log("User already logged in");return}y!=null&&typeof y=="string"&&S(y),w(!0)},[c]),z=X(()=>{M.logout()},[M]),J=X(()=>!x||N&&!A?"initializing":c!=null?"logged-in":d?"in-progress":"logged-out",[x,N,A,c,d]),ot=X(()=>v(this,null,function*(){if(c==null){console.log("User not logged in");return}let y=yield M.getUser();return f(y),y}),[c,M]),rt=X(y=>v(this,null,function*(){var K;yield(K=U.current)==null?void 0:K.call(U,y)}),[U]),lt=Zt(()=>({crossmintAuth:M,login:H,experimental_loginWithOAuth:rt,logout:z,jwt:c,user:b,status:J(),getUser:ot,loginMethods:u,experimental_externalWalletSigner:D}),[M,H,rt,z,c,b,J,ot,u,D]);return Z(bt.Provider,{value:lt,children:Z(Lt,{setDialogOpen:(y,K)=>{w(y),K&&O()},initialState:{appearance:r,loginMethods:u,termsOfServiceText:o,authModalTitle:i,baseUrl:a,defaultEmail:P},children:Z($t,{prefetchOAuthUrls:J()==="logged-out"&&t,children:Z(Uo,{loginWithOAuthRef:U,children:N?oo(Yt,{apiKeyEnvironment:s.apiKey.includes("production")?"production":"staging",loginMethods:u,appearance:r,onSdkLoaded:L,onWalletConnected:j,children:[n,Z(dt,{open:d})]}):oo(Bo,{children:[n,Z(dt,{open:d})]})})})})})}function Uo({children:n,loginWithOAuthRef:r}){let{startOAuthLogin:o}=V(),{jwt:t}=E(),i=X(e=>v(this,null,function*(){if(t!=null){console.log("User already logged in");return}yield o(e)}),[t,o]);return vt(()=>{r.current=i},[i,r]),n}var E=()=>{let n=_o(bt);if(!n)throw new Error("useCrossmintAuth must be used within CrossmintAuthProvider");return n};import{jsx as F,jsxs as et}from"react/jsx-runtime";var Go=6;function ro({otpEmailData:n,setOtpEmailData:r}){var w,x,p,P,S,A,L,N,D,j,G,M,U,O,H,z,J,ot,rt,lt;let{crossmintAuth:o}=E(),{appearance:t,setDialogOpen:i,setStep:e,setError:u}=C(),[m,h]=wt(""),[s,b]=wt(!1),[f,c]=wt(!1),g=()=>v(this,null,function*(){var y,K;c(!0);try{let yt=yield o==null?void 0:o.confirmEmailOtp((y=n==null?void 0:n.email)!=null?y:"",(K=n==null?void 0:n.emailId)!=null?K:"",m);yield o==null?void 0:o.handleRefreshAuthMaterial(yt),i(!1,!0),e("initial")}catch(yt){console.error("Error confirming email OTP",yt),u("Invalid code. Please try again."),b(!0)}finally{c(!1)}}),a=()=>v(this,null,function*(){var y;try{yield o==null?void 0:o.sendEmailOtp((y=n==null?void 0:n.email)!=null?y:"")}catch(K){u("Failed to resend code. Please try again.")}});return et("div",{children:[F(mt,{onClick:()=>{e("initial"),r(null)},iconColor:(w=t==null?void 0:t.colors)==null?void 0:w.textPrimary,ringColor:(x=t==null?void 0:t.colors)==null?void 0:x.accent}),et("div",{className:l("flex flex-col items-center justify-start w-full"),children:[F("div",{className:l("relative left-3"),children:F(Rt,{customAccentColor:(p=t==null?void 0:t.colors)==null?void 0:p.accent,customButtonBackgroundColor:(P=t==null?void 0:t.colors)==null?void 0:P.buttonBackground,customBackgroundColor:(S=t==null?void 0:t.colors)==null?void 0:S.background})}),F("p",{className:l("text-base font-normal mt-4 mb-1 text-center text-cm-text-primary"),style:{color:(A=t==null?void 0:t.colors)==null?void 0:A.textPrimary},children:"Check your email"}),et("p",{className:l("text-center text-cm-text-secondary px-4"),style:{color:(L=t==null?void 0:t.colors)==null?void 0:L.textSecondary},children:["A temporary login code has been sent to"," ",n!=null&&n.email?n.email:"your email address"]}),F("div",{className:l("py-8"),children:F(It,{maxLength:Go,value:m,onChange:y=>{h(y),b(!1),u(null)},onComplete:g,disabled:f,customStyles:{accent:(D=(N=t==null?void 0:t.colors)==null?void 0:N.accent)!=null?D:"#04AA6D",danger:(G=(j=t==null?void 0:t.colors)==null?void 0:j.danger)!=null?G:"#f44336",border:(U=(M=t==null?void 0:t.colors)==null?void 0:M.border)!=null?U:"#E5E7EB",textPrimary:(H=(O=t==null?void 0:t.colors)==null?void 0:O.textPrimary)!=null?H:"#909ca3",buttonBackground:(J=(z=t==null?void 0:t.colors)==null?void 0:z.buttonBackground)!=null?J:"#eff6ff",inputBackground:(rt=(ot=t==null?void 0:t.colors)==null?void 0:ot.inputBackground)!=null?rt:"#FFFFFF",borderRadius:t==null?void 0:t.borderRadius},children:et(Tt,{children:[F($,{index:0,hasError:s}),F($,{index:1,hasError:s}),F($,{index:2,hasError:s}),F($,{index:3,hasError:s}),F($,{index:4,hasError:s}),F($,{index:5,hasError:s})]})})}),F("div",{className:l("text-xs leading-tight text-cm-text-secondary text-center"),children:et("span",{style:{color:(lt=t==null?void 0:t.colors)==null?void 0:lt.textSecondary},children:["Can't find the email? Check spam folder.",`
7
- `,"Some emails may take several minutes to arrive."]})}),F(Nt,{initialSeconds:60,appearance:t,countdownText:y=>`Re-send code in ${y}s`,countdownCompleteText:"Re-send code",handleOnClick:a})]})]})}import{useState as Ct}from"react";import Ko from"color";import{isEmailValid as ft}from"@crossmint/common-sdk-auth";import{jsx as pt,jsxs as Ho}from"react/jsx-runtime";function eo({emailInput:n,appearance:r}){var i,e,u,m;let{startOAuthLogin:o,isLoading:t}=V();return Ho("button",{type:"button",className:I("flex items-center gap-2 justify-center h-[32px] px-2.5 border border-cm-border rounded-xl bg-cm-background-primary","hover:bg-cm-hover focus:bg-cm-hover outline-none",t?"cursor-not-allowed hover:bg-cm-muted-primary":""),onClick:t?void 0:()=>o("google",n.trim().toLowerCase()),style:{backgroundColor:(i=r==null?void 0:r.colors)==null?void 0:i.buttonBackground,borderRadius:r==null?void 0:r.borderRadius},children:[pt(at,{className:l("max-h-[18px] max-w-[18px] h-[18px] w-[18px]")}),t?pt(B,{style:{color:(e=r==null?void 0:r.colors)==null?void 0:e.textSecondary,fill:(u=r==null?void 0:r.colors)==null?void 0:u.textPrimary,width:"18px",height:"18px"}}):pt("span",{className:l("text-cm-accent"),style:{color:(m=r==null?void 0:r.colors)==null?void 0:m.accent},children:"Continue"})]})}import{Fragment as Vo,jsx as _,jsxs as At}from"react/jsx-runtime";function no({setOtpEmailData:n}){var d,w,x,p,P,S,A,L,N,D,j,G,M,U;let{crossmintAuth:r}=E(),{appearance:o,defaultEmail:t,setStep:i,setError:e,loginMethods:u}=C(),[m,h]=Ct(t!=null?t:""),[s,b]=Ct(""),[f,c]=Ct(!1),g=m.toLowerCase().includes("@gmail.com")&&!m.toLowerCase().includes("+")&&ft(m)&&!f&&u.includes("google");function a(O){return v(this,null,function*(){O.preventDefault(),c(!0);try{let H=m.trim().toLowerCase(),z=yield r==null?void 0:r.sendEmailOtp(H);n({email:H,emailId:z.emailId}),i("otp")}catch(H){c(!1),e("Failed to send email. Please try again or contact support.")}})}return _(Vo,{children:_("div",{className:l("flex flex-col items-start justify-start w-full rounded-lg"),children:At("div",{className:l("w-full"),children:[_("label",{className:l("text-cm-text-primary block mb-[5px]"),style:{color:(d=o==null?void 0:o.colors)==null?void 0:d.textPrimary},children:"Email"}),At("form",{role:"form",className:l("relative"),onSubmit:O=>{if(g){O.preventDefault();return}ft(m)?a(O):O.preventDefault()},noValidate:!0,children:[_("label",{htmlFor:"emailInput",className:l("sr-only"),children:"Email"}),_("input",{className:I("flex-grow text-cm-text-primary text-left pl-[16px] h-[58px] w-full border border-cm-border rounded-xl bg-cm-background-primary placeholder:text-md","transition-none duration-200 ease-in-out","focus:outline-none focus-ring-custom","placeholder:[color:var(--placeholder-color)]",s?"border-red-500":"",g?"pr-[132px]":"pr-[80px]"),style:{color:(w=o==null?void 0:o.colors)==null?void 0:w.textPrimary,borderRadius:o==null?void 0:o.borderRadius,borderColor:s?(x=o==null?void 0:o.colors)==null?void 0:x.danger:(p=o==null?void 0:o.colors)==null?void 0:p.border,backgroundColor:(P=o==null?void 0:o.colors)==null?void 0:P.inputBackground,"--placeholder-color":(A=(S=o==null?void 0:o.colors)==null?void 0:S.textSecondary)!=null?A:"#67797F","--focus-ring-color":new Ko((N=(L=o==null?void 0:o.colors)==null?void 0:L.accent)!=null?N:"#04AA6D").alpha(.18).toString()},type:"email",placeholder:"your@email.com",value:m,onChange:O=>{h(O.target.value),b(""),e(null)},readOnly:f,"aria-describedby":"emailError"}),At("div",{className:l("absolute inset-y-0 right-0 flex items-center pr-4"),children:[s&&_(ut,{customColor:(D=o==null?void 0:o.colors)==null?void 0:D.danger}),f&&_(B,{style:{color:(j=o==null?void 0:o.colors)==null?void 0:j.textSecondary,fill:(G=o==null?void 0:o.colors)==null?void 0:G.textPrimary}}),g?_(eo,{emailInput:m,appearance:o}):!s&&!f?_("button",{type:"submit",className:I("font-medium text-cm-accent text-nowrap bg-cm-background-primary",ft(m)?"cursor-pointer":"!cursor-not-allowed opacity-60"),style:{color:(M=o==null?void 0:o.colors)==null?void 0:M.accent,backgroundColor:(U=o==null?void 0:o.colors)==null?void 0:U.inputBackground},disabled:!ft(m)||f,children:"Submit"}):null]})]}),s&&_("p",{className:l("text-xs text-red-500 mb-2 pt-2"),children:s})]})})})}import{jsx as io}from"react/jsx-runtime";function lo(){let{step:n}=C(),[r,o]=jo(null);return n==="otp"?io(ro,{otpEmailData:r,setOtpEmailData:o}):n==="initial"?io(no,{setOtpEmailData:o}):null}import{Fragment as zo,jsx as gt,jsxs as so}from"react/jsx-runtime";function mo(r){var n=st(r,[]);var u,m,h,s;let{step:o,appearance:t}=C(),{startOAuthLogin:i,isLoading:e}=V();return o!=="initial"?null:so("button",Y(Q({className:I("relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center","transition-colors duration-200 ease-in-out","hover:bg-cm-hover focus:bg-cm-hover outline-none",e?"cursor-not-allowed hover:bg-cm-muted-primary":""),style:{borderRadius:t==null?void 0:t.borderRadius,backgroundColor:(u=t==null?void 0:t.colors)==null?void 0:u.buttonBackground},onClick:e?void 0:()=>i("google")},n),{children:[so(zo,{children:[gt(at,{className:l("max-h-[25px] max-w-[25px] h-[25px] w-[25px] absolute left-[18px]")}),e?gt(B,{style:{color:(m=t==null?void 0:t.colors)==null?void 0:m.textSecondary,fill:(h=t==null?void 0:t.colors)==null?void 0:h.textPrimary}}):gt("span",{className:l("font-medium"),style:{margin:"0px 32px",color:(s=t==null?void 0:t.colors)==null?void 0:s.textPrimary},children:"Sign in with Google"})]}),gt("span",{className:l("sr-only"),children:"Sign in with Google"})]}))}import{useEffect as Pt,useMemo as $o,useState as qo}from"react";import{useSignIn as Xo,QRCode as Jo}from"@farcaster/auth-kit";import{Fragment as Yo,jsx as k,jsxs as nt}from"react/jsx-runtime";function uo(){var i,e;let{step:n,appearance:r,setStep:o,setError:t}=C();return n==="initial"?k("div",{children:nt("button",{className:I("relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center","transition-colors duration-200 ease-in-out","hover:bg-cm-hover focus:bg-cm-hover outline-none"),style:{borderRadius:r==null?void 0:r.borderRadius,backgroundColor:(i=r==null?void 0:r.colors)==null?void 0:i.buttonBackground},onClick:()=>{o("qrCode"),t(null)},children:[k(Mt,{className:l("max-h-[25px] max-w-[25px] h-[25px] w-[25px] absolute left-[18px]")}),k("span",{className:l("font-medium"),style:{margin:"0px 32px",color:(e=r==null?void 0:r.colors)==null?void 0:e.textPrimary},children:"Sign in with Farcaster"}),k("span",{className:l("sr-only"),children:"Sign in with Farcaster"})]})}):n==="qrCode"?k(Qo,{}):null}function Qo(){var a,d,w,x,p,P,S,A,L;let{crossmintAuth:n}=E(),{appearance:r,setStep:o,setDialogOpen:t,setError:i}=C(),[e,u]=qo(null),m=$o(()=>({onSuccess:N=>{u(N)}}),[]),{signIn:h,url:s,connect:b,signOut:f,isConnected:c}=Xo(m),g=N=>v(this,null,function*(){i(null);try{let D=yield n==null?void 0:n.signInWithFarcaster(N);yield n==null?void 0:n.handleRefreshAuthMaterial(D),t(!1),o("initial")}catch(D){console.error("Error during Farcaster sign-in:",D),i("Failed to sign in with Farcaster")}});return Pt(()=>{e!=null&&g(e)},[e]),Pt(()=>{c&&h()},[c]),Pt(()=>{b()},[]),nt("div",{children:[k(mt,{onClick:()=>{f(),o("initial")},iconColor:(a=r==null?void 0:r.colors)==null?void 0:a.textPrimary,ringColor:(d=r==null?void 0:r.colors)==null?void 0:d.accent}),nt("div",{className:l("flex flex-col items-center gap-4"),children:[nt("div",{className:l("text-center"),children:[k("h3",{className:l("text-lg font-semibold text-cm-text-primary mb-2"),style:{color:(w=r==null?void 0:r.colors)==null?void 0:w.textPrimary},children:"Sign in with Farcaster"}),k("p",{className:l("text-base font-normal text-cm-text-secondary"),style:{color:(x=r==null?void 0:r.colors)==null?void 0:x.textSecondary},children:"Scan with your phone's camera to continue."})]}),k("div",{className:l("bg-white aspect-square rounded-lg p-4"),style:{backgroundColor:(p=r==null?void 0:r.colors)==null?void 0:p.inputBackground,borderRadius:r==null?void 0:r.borderRadius},children:s!=null?k(Jo,{uri:s,size:280}):k("div",{className:l("min-h-[246px] flex items-center justify-center"),children:k(B,{style:{color:(P=r==null?void 0:r.colors)==null?void 0:P.textSecondary,fill:(S=r==null?void 0:r.colors)==null?void 0:S.textPrimary}})})}),s?nt(Yo,{children:[k("p",{className:l("text-base text-center font-normal text-cm-text-secondary"),style:{color:(A=r==null?void 0:r.colors)==null?void 0:A.textSecondary},children:"Alternatively, click on this link to open Warpcast."}),k("a",{href:s,rel:"noopener noreferrer",target:"_blank",className:l("text-base font-normal text-cm-link"),style:{color:(L=r==null?void 0:r.colors)==null?void 0:L.textLink},children:"Open Warpcast"})]}):null]})]})}import{Fragment as Zo,jsx as ht,jsxs as ao}from"react/jsx-runtime";function co(r){var n=st(r,[]);var u,m,h,s;let{step:o,appearance:t}=C(),{startOAuthLogin:i,isLoading:e}=V();return o!=="initial"?null:ao("button",Y(Q({className:I("relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center","transition-colors duration-200 ease-in-out","hover:bg-cm-hover focus:bg-cm-hover outline-none",e?"cursor-not-allowed hover:bg-cm-muted-primary":""),style:{borderRadius:t==null?void 0:t.borderRadius,backgroundColor:(u=t==null?void 0:t.colors)==null?void 0:u.buttonBackground},onClick:e?void 0:()=>i("twitter")},n),{children:[ao(Zo,{children:[ht(_t,{className:l("max-h-[25px] max-w-[25px] h-[25px] w-[25px] absolute left-[18px]")}),e?ht(B,{style:{color:(m=t==null?void 0:t.colors)==null?void 0:m.textSecondary,fill:(h=t==null?void 0:t.colors)==null?void 0:h.textPrimary}}):ht("span",{className:l("font-medium"),style:{margin:"0px 32px",color:(s=t==null?void 0:t.colors)==null?void 0:s.textPrimary},children:"Sign in with X"})]}),ht("span",{className:l("sr-only"),children:"Sign in with X"})]}))}import{jsx as W,jsxs as it}from"react/jsx-runtime";function fo({className:n}){var h,s,b,f,c,g,a,d,w,x,p,P,S;let{step:r,appearance:o,loginMethods:t,baseUrl:i,error:e,termsOfServiceText:u,authModalTitle:m}=C();return it("div",{className:I("relative pt-10 pb-[30px] px-6 !min-[480px]:px-10 flex flex-col gap-[10px] antialiased animate-none",n),children:[e!=null?it("div",{className:l("flex items-start justify-start w-full rounded-lg p-2 mt-4 bg-cm-danger-muted"),style:{backgroundColor:new tr((s=(h=o==null?void 0:o.colors)==null?void 0:h.danger)!=null?s:"#f44336").alpha(.12).toString()},children:[W("div",{className:l("min-w-[20px]"),children:W(ut,{customColor:(f=(b=o==null?void 0:o.colors)==null?void 0:b.danger)!=null?f:"#f44336"})}),W("p",{className:l("ml-2 text-sm"),style:{color:(g=(c=o==null?void 0:o.colors)==null?void 0:c.danger)!=null?g:"#f44336"},children:e})]}):null,r==="initial"?it("div",{children:[W("h1",{className:l("text-2xl font-bold text-cm-text-primary"),style:{color:(a=o==null?void 0:o.colors)==null?void 0:a.textPrimary},children:m!=null?m:"Sign in to Crossmint"}),W("p",{className:l("text-base font-normal mb-3 text-cm-text-secondary"),style:{color:(d=o==null?void 0:o.colors)==null?void 0:d.textSecondary},children:"Access using one of the options below."})]}):null,t.includes("google")?W(mo,{}):null,t.includes("farcaster")?W(Bt,{baseUrl:i,children:W(uo,{})}):null,t.includes("twitter")?W(co,{}):null,t.some(A=>A.startsWith("web3"))?W(Gt,{}):null,t.includes("email")?it("div",{children:[t.length>1?W(Dt,{appearance:o,text:"OR"}):null,W(lo,{})]}):null,r==="initial"&&u!=null?it("div",{className:l("text-sm text-center text-cm-text-secondary mt-2"),style:{color:(w=o==null?void 0:o.colors)==null?void 0:w.textSecondary},children:[W("style",{children:`
8
- p a {
9
- color: ${(p=(x=o==null?void 0:o.colors)==null?void 0:x.textLink)!=null?p:"#1A74E9"};
10
- }
11
- `}),u]}):null,r==="initial"||r==="otp"?W(Ut,{className:l("mt-1.5 md:mt-4 justify-center"),color:(S=(P=o==null?void 0:o.colors)==null?void 0:P.textSecondary)!=null?S:"#67797F"}):null]})}import{useEffect as or}from"react";import{jsx as tt,jsxs as rr}from"react/jsx-runtime";function dt({open:n}){var t,i,e;let{appearance:r,setDialogOpen:o}=C();return or(()=>{document.body.style.overflow=n?"hidden":""},[n]),tt(Et,{modal:!1,open:n,onOpenChange:o,children:rr(Ft,{onInteractOutside:u=>u.preventDefault(),onOpenAutoFocus:u=>u.preventDefault(),closeButtonColor:(t=r==null?void 0:r.colors)==null?void 0:t.textPrimary,closeButtonRingColor:(i=r==null?void 0:r.colors)==null?void 0:i.accent,className:l("!p-0 !min-[480px]:p-0"),style:{borderRadius:r==null?void 0:r.borderRadius,backgroundColor:(e=r==null?void 0:r.colors)==null?void 0:e.background},children:[tt(go,{asChild:!0,children:tt(kt,{children:"Crossmint Auth"})}),tt(go,{asChild:!0,children:tt(Wt,{children:"Sign in via Crossmint"})}),tt(fo,{className:l("max-w-[448px]")})]})})}export{dt as a,Ht as b,V as c,$t as d,Yt as e,bt as f,Hr as g,E as h,Go as i,ro as j,eo as k,no as l,lo as m,mo as n,uo as o,co as p,fo as q};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKT4LGFPNcjs = require('./chunk-KT4LGFPN.cjs');var _chunk4EQ23ZKCcjs = require('./chunk-4EQ23ZKC.cjs');var _chunkTM7WDKYRcjs = require('./chunk-TM7WDKYR.cjs');var _chunk6BFWRGAScjs = require('./chunk-6BFWRGAS.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _jsxruntime = require('react/jsx-runtime');var B=y=>{var o=y,{className:u,iconColor:f,ringColor:b,onClick:t}=o,p=_chunk2WSEHVNPcjs.c.call(void 0, o,["className","iconColor","ringColor","onClick"]);let{setError:l}=_chunkKT4LGFPNcjs.a.call(void 0, );return _jsxruntime.jsx.call(void 0, "button",_chunk2WSEHVNPcjs.b.call(void 0, _chunk2WSEHVNPcjs.a.call(void 0, {className:_chunk4EQ23ZKCcjs.a.call(void 0, "absolute left-4 top-4 min-[480px]:!left-6 min-[480px]:!top-6 rounded-full opacity-70 ring-offset-background text-cm-text-primary transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-cm-accent focus:ring-offset-2 disabled:pointer-events-none",u),onClick:g=>{l(null),t==null||t(g)}},p),{children:_jsxruntime.jsx.call(void 0, _chunkTM7WDKYRcjs.a,{className:_chunk6BFWRGAScjs.a.call(void 0, "w-6 h-6"),style:{color:f}})}))};exports.a = B;
@@ -1 +0,0 @@
1
- import{a as v}from"./chunk-QQTPO5IF.js";import{a as x}from"./chunk-RWWMM4HD.js";import{a as o}from"./chunk-ZNDVEP3D.js";import{d as a}from"./chunk-PXDN3KFO.js";import{useState as h}from"react";import{jsx as t,jsxs as i}from"react/jsx-runtime";function z({email:l,onConfirm:y,onCancel:g,appearance:e}){var c,f,u;let[s,r]=h(!1),[n,C]=h(""),b=()=>a(this,null,function*(){r(!0);try{yield y(l)}catch(N){console.error("Error sending authorization code:",N),C("Failed to send code. Please try again.")}finally{r(!1)}}),w=((c=e==null?void 0:e.colors)==null?void 0:c.accent)||"#4CAF50",d=((f=e==null?void 0:e.colors)==null?void 0:f.textPrimary)||"#000000",m=((u=e==null?void 0:e.colors)==null?void 0:u.border)||"#E0E0E0";return i("div",{className:o("flex flex-col w-full max-w-md mx-auto rounded-xl"),children:[t("h2",{className:o("mb-2"),style:{color:d},children:"Send authorization code to"}),t("div",{className:o("w-full mb-8 p-4 rounded-xl border"),style:{borderColor:m},children:i("div",{className:o("flex items-center"),children:[t("div",{className:o("flex-shrink-0 mr-3"),children:i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:o("lucide lucide-mail-icon lucide-mail"),children:[t("path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"}),t("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2"})]})}),t("span",{style:{color:d},children:l})]})}),n&&t("div",{className:o("text-red-500 mb-4 text-sm"),children:n}),i("div",{className:o("flex gap-3"),children:[t("button",{onClick:g,className:o("flex-1 py-4 px-6 border rounded-full text-center font-medium"),style:{borderColor:m},children:"Cancel"}),t("button",{onClick:b,disabled:s,className:x("flex-1 py-4 px-6 rounded-full text-white text-center font-medium",s?"opacity-70":""),style:{backgroundColor:w},children:s?t("div",{className:o("flex justify-center items-center"),children:t(v,{style:{color:"white"}})}):"Send code"})]})]})}export{z as a};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _core = require('@twind/core');var _presettailwind = require('@twind/preset-tailwind'); var _presettailwind2 = _interopRequireDefault(_presettailwind);var a=_core.defineConfig.call(void 0, {presets:[_presettailwind2.default.call(void 0, {disablePreflight:!0})],theme:{extend:{colors:{"cm-text-primary":"#00150D","cm-text-secondary":"#67797F","cm-background-primary":"#FFFFFF","cm-muted-primary":"#F0F2F4","cm-hover":"#E9ECF0","cm-border":"#D9D9D9","cm-link":"#1A74E9","cm-accent":"#04AA6D"},keyframes:{"caret-blink":{"0%,70%,100%":{opacity:"1"},"20%,50%":{opacity:"0"}},"fade-in":{from:{opacity:"0"},to:{opacity:"1"}},"fade-out":{from:{opacity:"1"},to:{opacity:"0"}},"slide-in-from-top":{"0%":{transform:"translateY(-100%)"},"100%":{transform:"translateY(0)"}},"slide-out-to-top":{"0%":{transform:"translateY(0)"},"100%":{transform:"translateY(-100%)"}},"slide-in-from-bottom":{"0%":{transform:"translateY(100%)"},"100%":{transform:"translateY(0)"}},"slide-out-to-bottom":{"0%":{transform:"translateY(0)"},"100%":{transform:"translateY(100%)"}},"slide-in-from-left":{"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(0)"}},"slide-out-to-left":{"0%":{transform:"translateX(0)"},"100%":{transform:"translateX(-100%)"}},"slide-in-from-right":{"0%":{transform:"translateX(100%)"},"100%":{transform:"translateX(0)"}},"slide-out-to-right":{"0%":{transform:"translateX(0)"},"100%":{transform:"translateX(100%)"}},"zoom-in-95":{"0%":{opacity:"0",transform:"scale(0.95) translate(-50%, -50%)"},"100%":{opacity:"1",transform:"scale(1) translate(-50%, -50%)"}},"zoom-out-95":{"0%":{opacity:"1",transform:"scale(1) translate(-50%, -50%)"},"100%":{opacity:"0",transform:"scale(0.95) translate(-50%, -50%)"}}},animation:{"caret-blink":"caret-blink 1.25s ease-out infinite","fade-in":"fade-in 300ms cubic-bezier(0.16, 1, 0.3, 1)","fade-out":"fade-out 300ms cubic-bezier(0.16, 1, 0.3, 1)","slide-in-from-top":"slide-in-from-top 150ms cubic-bezier(0.16, 1, 0.3, 1)","slide-out-to-top":"slide-out-to-top 150ms cubic-bezier(0.16, 1, 0.3, 1)","slide-in-from-bottom":"slide-in-from-bottom 450ms cubic-bezier(0.16, 1, 0.3, 1)","slide-out-to-bottom":"slide-out-to-bottom 300ms cubic-bezier(0.16, 1, 0.3, 1)","slide-in-from-left":"slide-in-from-left 150ms cubic-bezier(0.16, 1, 0.3, 1)","slide-out-to-left":"slide-out-to-left 150ms cubic-bezier(0.16, 1, 0.3, 1)","slide-in-from-right":"slide-in-from-right 150ms cubic-bezier(0.16, 1, 0.3, 1)","slide-out-to-right":"slide-out-to-right 150ms cubic-bezier(0.16, 1, 0.3, 1)","zoom-in-95":"zoom-in-95 150ms cubic-bezier(0.16, 1, 0.3, 1)","zoom-out-95":"zoom-out-95 150ms cubic-bezier(0.16, 1, 0.3, 1)"},durations:{300:"300ms",500:"500ms"}}},rules:[["focus-ring-custom",{"&:focus":{"box-shadow":"0 0 0 3px var(--focus-ring-color)"}}]]});exports.a = a;
@@ -1 +0,0 @@
1
- import{a as c}from"./chunk-ZNDVEP3D.js";import{jsx as t,jsxs as h}from"react/jsx-runtime";function g({customAccentColor:i,customButtonBackgroundColor:e,customBackgroundColor:l}){let o=i||"#04AA6D",n=e||"#eff6ff",r=l||"#FFFFFF";return t("div",{className:c("relative"),children:h("svg",{width:"80",height:"80",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("circle",{cx:"40",cy:"40",r:"40",fill:r}),t("rect",{x:"25",y:"15",width:"30",height:"50",rx:"4",fill:n,stroke:o,strokeWidth:"2"}),t("rect",{x:"27",y:"17",width:"26",height:"46",rx:"2",fill:r}),t("rect",{x:"32",y:"25",width:"16",height:"8",rx:"4",fill:o}),t("circle",{cx:"36",cy:"29",r:"1",fill:r}),t("circle",{cx:"40",cy:"29",r:"1",fill:r}),t("circle",{cx:"44",cy:"29",r:"1",fill:r}),t("rect",{x:"35",y:"45",width:"10",height:"2",rx:"1",fill:o}),t("path",{d:"M55 30 Q60 30 60 35",stroke:o,strokeWidth:"2",fill:"none"}),t("path",{d:"M55 35 Q62 35 62 40",stroke:o,strokeWidth:"2",fill:"none"}),t("path",{d:"M55 40 Q64 40 64 45",stroke:o,strokeWidth:"2",fill:"none"})]})})}export{g as a};
@@ -1 +0,0 @@
1
- import{a as t}from"./chunk-RWWMM4HD.js";import{jsx as e,jsxs as l}from"react/jsx-runtime";var o=({className:C,style:r})=>l("svg",{"aria-hidden":"true",className:t("w-6 h-6 fill-cm-text-primary text-cm-text-secondary animate-spin",C),style:r,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),e("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]});export{o as a};
@@ -1 +0,0 @@
1
- import{a as r}from"./chunk-ZNDVEP3D.js";import{clsx as t}from"clsx";import{twMerge as a}from"tailwind-merge";function i(...s){let l=s.filter(Boolean).map(e=>{if(typeof e=="string")return r(e);let o=t(e);return o?r(o):""}).filter(Boolean);return a(t(l))}export{i as a};
@@ -1 +0,0 @@
1
- import{jsx as t,jsxs as r}from"react/jsx-runtime";function i({className:e,style:o}){return r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,style:o,children:[t("path",{d:"m12 19-7-7 7-7"}),t("path",{d:"M19 12H5"})]})}export{i as a};
@@ -1 +0,0 @@
1
- import{a as p,b as d,c as C}from"./chunk-KFL42A3A.js";import{a as e}from"./chunk-ZNDVEP3D.js";import{a,b as m,c as g}from"./chunk-PXDN3KFO.js";import{useId as q}from"react";import{Fragment as u,jsx as i,jsxs as s}from"react/jsx-runtime";function z(L){var r=L,{colors:t,displayType:n="icon-and-text"}=r,o=g(r,["colors","displayType"]);let{icon:f,text:h}={icon:(t==null?void 0:t.icon)||d.colors.icon,text:(t==null?void 0:t.text)||p.light.text},l={colors:{icon:f,text:h},displayType:n};o.width==null&&o.height==null&&(o.width=144);let c=q();return s("svg",m(a({viewBox:C[n]},o),{children:[y(l,c),i("g",{children:s("g",{children:[v(l),S(l,c)]})})]}))}function y(t,n){let{icon:o}=t.colors;return o.type!=="gradient"?null:i("defs",{children:s("linearGradient",{id:`logoGradient-${n}`,className:e("logoGradient"),x1:".1",y1:".1",x2:"85.8",y2:"85.8",gradientUnits:"userSpaceOnUse",children:[i("stop",{className:e("stop-0"),offset:"0",stopColor:o.from}),i("stop",{className:e("stop-1"),offset:"1",stopColor:o.to})]})})}function v({colors:t,displayType:n}){if(n==="icon-only")return null;let{text:o}=t;return s(u,{children:[i("path",{fill:o,d:"M372.7 9.5c0-3.4 2.7-6.1 6-6.1S385 6 385 9.5s-2.8 6-6.2 6-6-2.6-6-6m77.7 1.9V24h8.6v8.8h-8.6V52q-.1 5.4 5.3 5.2c1.3 0 3-.2 3.4-.3v8.2c-.6.2-2.5 1-6 1-7.7 0-12.5-4.7-12.5-12.5V33H433v-9h8.5V11.4zm-338 44.4q3 5 7.8 7.9 5 2.8 11.3 2.8 4.5 0 8.4-1.5 3.7-1.7 6.6-4.4 2.8-2.9 4-6.4l-8.9-4a10.5 10.5 0 0 1-10.1 7 11 11 0 0 1-6-1.5q-2.4-1.7-4-4.5-1.5-2.9-1.4-6.6a12 12 0 0 1 1.4-6.5q1.5-3 4-4.5a11 11 0 0 1 6-1.6q3.5 0 6.2 2 2.8 1.9 4 5l8.8-3.8q-1.2-3.9-4-6.5-2.9-2.8-6.7-4.3-3.9-1.6-8.3-1.6-6.3 0-11.3 2.8a21 21 0 0 0-7.8 7.8q-2.8 5-2.8 11.2c0 6.2 1 7.9 2.8 11.2m53-32.1h-9.4v41.9h10V42.3q0-4.8 2.7-7.4 2.5-2.7 6.9-2.7h3.6v-9H177q-4.5 0-7.6 1.9a10 10 0 0 0-3.8 4.5z"}),i("path",{d:"M202.9 22.8c12.4 0 21.6 9.3 21.6 22s-9.1 22-21.6 22-21.5-9.2-21.5-22 9.1-22 21.5-22m0 35.2c6.1 0 11.6-4.5 11.6-13.2s-5.5-13-11.6-13-11.6 4.4-11.6 13S196.8 58 203 58",fillRule:"evenodd",fill:o}),i("path",{fill:o,d:"m236.4 52-8.6 2.4c.5 4.6 5 12.5 17.1 12.5 10.6 0 15.7-7 15.7-13.3s-4.1-11-12-12.6l-6.3-1.3q-4-1-4.1-4.4c0-2.5 2.4-4.7 6-4.7 5.5 0 7.3 3.8 7.6 6.2l8.4-2.4c-.7-4.1-4.5-11.6-16-11.6-8.7 0-15.3 6.1-15.3 13.4 0 5.7 3.8 10.5 11.1 12l6.2 1.4q4.9 1.2 4.8 4.6c0 2.6-2 4.8-6.2 4.8-5.3 0-8-3.3-8.4-7m27.6 2.4 8.5-2.4c.4 3.7 3.2 7 8.5 7 4 0 6.2-2.2 6.2-4.7q.1-3.6-4.9-4.6l-6.1-1.4c-7.3-1.6-11.2-6.4-11.2-12.1 0-7.2 6.7-13.4 15.3-13.4 11.6 0 15.3 7.5 16 11.6l-8.4 2.4c-.3-2.4-2-6.2-7.6-6.2-3.5 0-6 2.2-6 4.7q.2 3.5 4.2 4.4l6.3 1.3c7.8 1.7 12 6.5 12 12.6s-5.2 13.3-15.8 13.3c-12 0-16.6-7.8-17-12.5m48.6-30.7h-9.5v41.9h10.1V41q0-2.7 1-4.8a8 8 0 0 1 7-4.2 8 8 0 0 1 7.2 4.2q1 2.1 1 4.8v24.6h10.1V41q0-2.7 1-4.8a8 8 0 0 1 7-4.2q2.6 0 4.4 1.2 1.8 1 2.8 3 1 2.1 1 4.8v24.6h10v-27q0-4.5-2-8.2a14 14 0 0 0-5.5-5.6q-3.5-2-8-2-5 0-8.8 2.5-2.4 1.6-4.1 4.2-1.4-2.3-3.9-4a16 16 0 0 0-9-2.7q-4.8 0-8.3 2.2-2.2 1.5-3.5 4zm71.1 41.9h-9.8V24.1h9.8zm8.8-41.6v41.6h10V41.3q0-2.8 1.1-4.8a8 8 0 0 1 7.3-4.2 8 8 0 0 1 7.4 4.2q1 2 1 4.7v24.4h10V38.9q0-4.6-2-8.2a14 14 0 0 0-5.5-5.6q-3.4-2-8.1-2c-4.7 0-5.5.7-7.8 2q-2.5 1.6-4 4v-5z"})]})}function S(t,n){let{icon:o}=t.colors;return i("path",{d:"M70 48.3A62 62 0 0 0 47.5 43c7.7-.6 22.8-2.7 29-10.4C86.6 25.2 86 .3 86 .3S62.3-2.4 52 9.4c-6.5 6.4-8.4 17.5-9 25.2-.6-7.7-2.6-18.8-9-25.2C23.7-2.4 0 .3 0 .3S-.3 15.8 4.4 26C6.8 31 11 35.1 16 37.6c7.2 3.7 16.8 5 22.4 5.4-5.6.4-15.2 1.7-22.4 5.3C11 51 6.8 55 4.4 60-.3 70.2 0 85.7 0 85.7s23.7 2.6 34-9.2c6.4-6.3 8.4-17.5 9-25.2.6 7.8 2.6 18.9 9 25.3 10.3 11.7 34 9.1 34 9.1s.3-15.6-4.5-25.7A25 25 0 0 0 70 48.3m.8 21.9c-.1 0-12.5-3.6-28.3-24.7A195 195 0 0 0 15 71.8l-.5.6.2-.8c0-.1 3.7-12.8 25.7-29C38.3 39.4 33.3 32.2 14 15l-.4-.4.6.1c.4 0 10.3 1.6 28.5 25l.6 1c2.6-1.8 10-7.1 26.7-26l.4-.4-.1.6c0 .4-1.6 10.3-24.9 28.4A193 193 0 0 0 71 69.9l.6.5z",fill:o.type==="gradient"?`url(#logoGradient-${n})`:o.color,fillRule:"evenodd"})}export{z as a};
@@ -1 +0,0 @@
1
- import{a as f}from"./chunk-WK7PY5WL.js";import{a as t}from"./chunk-ZNDVEP3D.js";import{jsx as l,jsxs as d}from"react/jsx-runtime";function y({appearance:o,text:s}){var r,m,i;let{step:u}=f();return u!=="initial"?null:d("div",{className:t("flex items-center justify-center w-full pt-2 pb-3"),children:[l("span",{className:t("w-full h-[1px] bg-cm-border"),style:{backgroundColor:(r=o==null?void 0:o.colors)==null?void 0:r.border}}),s!=null?l("p",{className:t("flex-none px-2 text-sm text-cm-text-primary"),style:{color:(m=o==null?void 0:o.colors)==null?void 0:m.textSecondary},children:s}):null,l("span",{className:t("w-full h-[1px] bg-cm-border"),style:{backgroundColor:(i=o==null?void 0:o.colors)==null?void 0:i.border}})]})}export{y as a};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _jsxruntime = require('react/jsx-runtime');var i=({className:t})=>_jsxruntime.jsxs.call(void 0, "svg",{width:"24",height:"24",viewBox:"0 0 1000 1000",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[_jsxruntime.jsx.call(void 0, "rect",{width:"1000",height:"1000",fill:"#855DCD"}),_jsxruntime.jsx.call(void 0, "path",{d:"M257.778 155.556H742.222V844.444H671.111V528.889H670.414C662.554 441.677 589.258 373.333 500 373.333C410.742 373.333 337.446 441.677 329.586 528.889H328.889V844.444H257.778V155.556Z",fill:"white"}),_jsxruntime.jsx.call(void 0, "path",{d:"M128.889 253.333L157.778 351.111H182.222V746.667C169.949 746.667 160 756.616 160 768.889V795.556H155.556C143.283 795.556 133.333 805.505 133.333 817.778V844.444H382.222V817.778C382.222 805.505 372.273 795.556 360 795.556H355.556V768.889C355.556 756.616 345.606 746.667 333.333 746.667H306.667V253.333H128.889Z",fill:"white"}),_jsxruntime.jsx.call(void 0, "path",{d:"M675.555 746.667C663.282 746.667 653.333 756.616 653.333 768.889V795.556H648.889C636.616 795.556 626.667 805.505 626.667 817.778V844.444H875.555V817.778C875.555 805.505 865.606 795.556 853.333 795.556H848.889V768.889C848.889 756.616 838.94 746.667 826.667 746.667V351.111H851.111L880 253.333H702.222V746.667H675.555Z",fill:"white"})]});exports.a = i;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _jsxruntime = require('react/jsx-runtime');function n({className:e,style:o}){return _jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,style:o,children:[_jsxruntime.jsx.call(void 0, "path",{d:"m12 19-7-7 7-7"}),_jsxruntime.jsx.call(void 0, "path",{d:"M19 12H5"})]})}exports.a = n;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _jsxruntime = require('react/jsx-runtime');function i({className:r,style:o}){var t;return _jsxruntime.jsx.call(void 0, "svg",{className:r,style:o,width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:_jsxruntime.jsx.call(void 0, "path",{d:"M15.0566 12.5H15.067M1.10156 3.5V17.5C1.10156 18.6046 2.02718 19.5 3.16898 19.5H17.6409C18.7827 19.5 19.7083 18.6046 19.7083 17.5V7.5C19.7083 6.39543 18.7827 5.5 17.6409 5.5L3.16898 5.5C2.02718 5.5 1.10156 4.60457 1.10156 3.5ZM1.10156 3.5C1.10156 2.39543 2.02718 1.5 3.16898 1.5H15.5735M15.5735 12.5C15.5735 12.7761 15.3421 13 15.0566 13C14.7712 13 14.5398 12.7761 14.5398 12.5C14.5398 12.2239 14.7712 12 15.0566 12C15.3421 12 15.5735 12.2239 15.5735 12.5Z",stroke:(t=o==null?void 0:o.color)!=null?t:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}exports.a = i;
@@ -1 +0,0 @@
1
- import{defineConfig as t}from"@twind/core";import o from"@twind/preset-tailwind";var s=t({presets:[o({disablePreflight:!0})],theme:{extend:{colors:{"cm-text-primary":"#00150D","cm-text-secondary":"#67797F","cm-background-primary":"#FFFFFF","cm-muted-primary":"#F0F2F4","cm-hover":"#E9ECF0","cm-border":"#D9D9D9","cm-link":"#1A74E9","cm-accent":"#04AA6D"},keyframes:{"caret-blink":{"0%,70%,100%":{opacity:"1"},"20%,50%":{opacity:"0"}},"fade-in":{from:{opacity:"0"},to:{opacity:"1"}},"fade-out":{from:{opacity:"1"},to:{opacity:"0"}},"slide-in-from-top":{"0%":{transform:"translateY(-100%)"},"100%":{transform:"translateY(0)"}},"slide-out-to-top":{"0%":{transform:"translateY(0)"},"100%":{transform:"translateY(-100%)"}},"slide-in-from-bottom":{"0%":{transform:"translateY(100%)"},"100%":{transform:"translateY(0)"}},"slide-out-to-bottom":{"0%":{transform:"translateY(0)"},"100%":{transform:"translateY(100%)"}},"slide-in-from-left":{"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(0)"}},"slide-out-to-left":{"0%":{transform:"translateX(0)"},"100%":{transform:"translateX(-100%)"}},"slide-in-from-right":{"0%":{transform:"translateX(100%)"},"100%":{transform:"translateX(0)"}},"slide-out-to-right":{"0%":{transform:"translateX(0)"},"100%":{transform:"translateX(100%)"}},"zoom-in-95":{"0%":{opacity:"0",transform:"scale(0.95) translate(-50%, -50%)"},"100%":{opacity:"1",transform:"scale(1) translate(-50%, -50%)"}},"zoom-out-95":{"0%":{opacity:"1",transform:"scale(1) translate(-50%, -50%)"},"100%":{opacity:"0",transform:"scale(0.95) translate(-50%, -50%)"}}},animation:{"caret-blink":"caret-blink 1.25s ease-out infinite","fade-in":"fade-in 300ms cubic-bezier(0.16, 1, 0.3, 1)","fade-out":"fade-out 300ms cubic-bezier(0.16, 1, 0.3, 1)","slide-in-from-top":"slide-in-from-top 150ms cubic-bezier(0.16, 1, 0.3, 1)","slide-out-to-top":"slide-out-to-top 150ms cubic-bezier(0.16, 1, 0.3, 1)","slide-in-from-bottom":"slide-in-from-bottom 450ms cubic-bezier(0.16, 1, 0.3, 1)","slide-out-to-bottom":"slide-out-to-bottom 300ms cubic-bezier(0.16, 1, 0.3, 1)","slide-in-from-left":"slide-in-from-left 150ms cubic-bezier(0.16, 1, 0.3, 1)","slide-out-to-left":"slide-out-to-left 150ms cubic-bezier(0.16, 1, 0.3, 1)","slide-in-from-right":"slide-in-from-right 150ms cubic-bezier(0.16, 1, 0.3, 1)","slide-out-to-right":"slide-out-to-right 150ms cubic-bezier(0.16, 1, 0.3, 1)","zoom-in-95":"zoom-in-95 150ms cubic-bezier(0.16, 1, 0.3, 1)","zoom-out-95":"zoom-out-95 150ms cubic-bezier(0.16, 1, 0.3, 1)"},durations:{300:"300ms",500:"500ms"}}},rules:[["focus-ring-custom",{"&:focus":{"box-shadow":"0 0 0 3px var(--focus-ring-color)"}}]]});export{s as a};
@@ -1,11 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkJO7RY6MGcjs = require('./chunk-JO7RY6MG.cjs');var _chunkBR77Q3PKcjs = require('./chunk-BR77Q3PK.cjs');var _chunkPZ3KXKJDcjs = require('./chunk-PZ3KXKJD.cjs');var _chunk2F3EMF5Gcjs = require('./chunk-2F3EMF5G.cjs');var _chunkAHD64NAJcjs = require('./chunk-AHD64NAJ.cjs');var _chunkPGE5M3Q5cjs = require('./chunk-PGE5M3Q5.cjs');var _chunkKT4LGFPNcjs = require('./chunk-KT4LGFPN.cjs');var _chunkE4DYZZKZcjs = require('./chunk-E4DYZZKZ.cjs');var _chunkVUIDQYBYcjs = require('./chunk-VUIDQYBY.cjs');var _chunkJ4QPNKHCcjs = require('./chunk-J4QPNKHC.cjs');var _chunk7YO3UHARcjs = require('./chunk-7YO3UHAR.cjs');var _chunkONU6TI5Wcjs = require('./chunk-ONU6TI5W.cjs');var _chunk4EQ23ZKCcjs = require('./chunk-4EQ23ZKC.cjs');var _chunkZBQCXWMDcjs = require('./chunk-ZBQCXWMD.cjs');var _chunkI4GMMHQRcjs = require('./chunk-I4GMMHQR.cjs');var _chunkSRQAQHYKcjs = require('./chunk-SRQAQHYK.cjs');var _chunkE65EGG73cjs = require('./chunk-E65EGG73.cjs');var _chunkNRN4WNQLcjs = require('./chunk-NRN4WNQL.cjs');var _chunk6BFWRGAScjs = require('./chunk-6BFWRGAS.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _reactvisuallyhidden = require('@radix-ui/react-visually-hidden');var _color = require('color'); var _color2 = _interopRequireDefault(_color);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 Gt=(n,r)=>{let{crossmintAuth:o}=E(),[t,i]=_react.useState.call(void 0, !1),e=_react.useRef.call(void 0, null);return _react.useEffect.call(void 0, ()=>(e.current==null&&(e.current=new (0, _clientsdkwindow.ChildWindow)(window.opener||window.parent,"*",{incomingEvents:wo})),()=>{e.current!=null&&e.current.off("authMaterialFromPopupCallback")}),[]),{createPopupAndSetupListeners:_react.useCallback.call(void 0, (m,h)=>_chunk2WSEHVNPcjs.d.call(void 0, void 0,null,function*(){if(e.current==null)throw new Error("Child window not initialized");i(!0),r(null);let s=new URL(n[m]);if(h!=null){let a=Array.from(s.searchParams.entries());s.search="",h&&s.searchParams.append("provider_login_hint",h),a.forEach(([d,w])=>{s.searchParams.append(d,w)})}let b=yield _clientsdkwindow.PopupWindow.init(s.toString(),{awaitToLoad:!1,crossOrigin:!0,width:400,height:700}),f=a=>_chunk2WSEHVNPcjs.d.call(void 0, void 0,null,function*(){var d;yield o==null?void 0:o.handleRefreshAuthMaterial(a.oneTimeSecret),(d=e.current)==null||d.off("authMaterialFromPopupCallback"),b.window.close(),i(!1)}),c=a=>{var d;r(a.error),(d=e.current)==null||d.off("errorFromPopupCallback"),b.window.close(),i(!1)};e.current.on("authMaterialFromPopupCallback",f),e.current.on("errorFromPopupCallback",c);let g=setInterval(()=>{var a,d;(a=b.window)!=null&&a.closed&&(clearInterval(g),i(!1),(d=e.current)==null||d.off("authMaterialFromPopupCallback"))},2500)}),[n,o,r]),isLoading:t}},wo={authMaterialFromPopupCallback:_zod.z.object({oneTimeSecret:_zod.z.string()}),errorFromPopupCallback:_zod.z.object({error:_zod.z.string()})};var _jsxruntime = require('react/jsx-runtime');var Vt={google:"",twitter:""},jt=_react.createContext.call(void 0, void 0);function K(){let n=_react.useContext.call(void 0, jt);if(!n)throw new Error("useOAuthFlow must be used within an OAuthFlowProvider");return n}function zt({children:n,prefetchOAuthUrls:r}){let{crossmintAuth:o,loginMethods:t}=E(),{setError:i}=_chunkKT4LGFPNcjs.a.call(void 0, ),[e,u]=_react.useState.call(void 0, Vt),[m,h]=_react.useState.call(void 0, !0),{createPopupAndSetupListeners:s,isLoading:b}=Gt(e,i),f=_react.useCallback.call(void 0, ()=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){h(!0);try{let d=(t||[]).filter(x=>x in Vt).map(x=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){let p=yield o==null?void 0:o.getOAuthUrl(x);return{[x]:p}})),w=Object.assign({},...yield Promise.all(d));u(w)}catch(a){i(a instanceof Error?a.message:"Unable to load oauth providers. Please try again later.")}finally{h(!1)}}),[t,o,i]);_react.useEffect.call(void 0, ()=>{r&&f()},[f,r]);let g={startOAuthLogin:_react.useCallback.call(void 0, (a,d)=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){yield s(a,d)}),[s]),isLoading:m||b};return _jsxruntime.jsx.call(void 0, jt.Provider,{value:g,children:n})}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 ko({children:n,enabled:r,onSdkLoaded:o,onWalletConnected:t,jwt:i}){let{primaryWallet:e,sdkHasLoaded:u,removeWallet:m,handleUnlinkWallet:h}=_sdkreactcore.useDynamicContext.call(void 0, ),s=!r||u;return _react.useEffect.call(void 0, ()=>{s&&(o==null||o(s))},[s,o]),_react.useEffect.call(void 0, ()=>{i==null&&s&&e!=null&&(m(e.id),h(e.id))},[i,s,e,m,h]),_react.useEffect.call(void 0, ()=>{function b(){return _chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){try{if(_ethereum.isEthereumWallet.call(void 0, e)){let f=yield e.getWalletClient(),c={type:"external-wallet",address:f.account.address,viemAccount:_chunk2WSEHVNPcjs.b.call(void 0, _chunk2WSEHVNPcjs.a.call(void 0, {},f.account),{signMessage:g=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){return yield f.signMessage({message:g.message})})})};t(c)}else if(_solana.isSolanaWallet.call(void 0, e)){let f=yield e.getSigner(),c={type:"external-wallet",address:e.address,onSignTransaction:g=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){return yield f.signTransaction(g)})};t(c)}else throw new Error("Unsupported wallet type")}catch(f){throw console.error("Failed to get admin signer",f),new Error("Failed to get admin signer")}})}e!=null&&i!=null&&b()},[e,i,t]),n}function Qt({children:n,enabled:r=!0,apiKeyEnvironment:o,loginMethods:t=["web3"],appearance:i,onSdkLoaded:e,onWalletConnected:u}){var f,c;let{crossmintAuth:m,jwt:h}=E(),s=_react.useMemo.call(void 0, ()=>{var g,a;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: ${(a=i==null?void 0:i.colors)==null?void 0:a.textSecondary} !important; }`},[(f=i==null?void 0:i.colors)==null?void 0:f.textPrimary,(c=i==null?void 0:i.colors)==null?void 0:c.textSecondary]),b=_react.useMemo.call(void 0, ()=>{if(r)return t.includes("web3:evm-only")?[_ethereum.EthereumWalletConnectors]:t.includes("web3:solana-only")?[_solana.SolanaWalletConnectors]:[_ethereum.EthereumWalletConnectors,_solana.SolanaWalletConnectors]},[r,t]);return _jsxruntime.jsx.call(void 0, _chunkAHD64NAJcjs.a,{apiKeyEnvironment:o,settings:{walletConnectors:b,cssOverrides:s,events:{onAuthFailure(g,a){console.error("[DynamicWalletProvider] onAuthFailure",g,a)}},handlers:{handleConnectedWallet:g=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){var d;if(!m)return console.error("[DynamicWalletProvider] crossmintAuth is not available"),!1;let a=g.address;if(a==null)return console.error("[DynamicWalletProvider] handleConnectedWallet: address is missing"),!1;try{let x=(yield _chunkPZ3KXKJDcjs.b.call(void 0, g))==="solana"?"solana":"evm",p=yield m.signInWithSmartWallet(a,x);if((p==null?void 0:p.challenge)==null)throw new Error("No challenge received from signInWithSmartWallet");let P=yield(d=g.connector)==null?void 0:d.proveOwnership(a,p.challenge);if(P==null)throw new Error("Failed to get signature from wallet");let S=P;if(x==="solana"){let R=Buffer.from(P,"base64");S=_bs582.default.encode(R)}let A=yield m.authenticateSmartWallet(a,x,S);if((A==null?void 0:A.oneTimeSecret)==null)throw new Error("No oneTimeSecret received from authenticateSmartWallet");return yield m.handleRefreshAuthMaterial(A.oneTimeSecret),!0}catch(w){return console.error("[DynamicWalletProvider] Error handling wallet connection:",w),!1}})}},children:_jsxruntime.jsx.call(void 0, ko,{enabled:r,onSdkLoaded:e,onWalletConnected:u,jwt:h,children:n})},`${o}-${t.join(",")}`)}var Do={crossmintAuth:void 0,login:()=>{},experimental_loginWithOAuth:()=>{},logout:()=>{},jwt:void 0,user:void 0,status:"initializing",getUser:()=>{},experimental_externalWalletSigner:void 0,loginMethods:[]},vt= exports.f =_react.createContext.call(void 0, Do);function Gr({children:n,appearance:r,termsOfServiceText:o,prefetchOAuthUrls:t=!0,authModalTitle:i,onLoginSuccess:e,loginMethods:u=["email","google"],refreshRoute:m,logoutRoute:h}){let{crossmint:s}=_clientsdkreactbase.useCrossmint.call(void 0, "CrossmintAuthProvider must be used within CrossmintProvider"),[b,f]=_react.useState.call(void 0, void 0),[c,g]=_react.useState.call(void 0, void 0),a=_commonsdkbase.validateApiKeyAndGetCrossmintBaseUrl.call(void 0, s.apiKey),[d,w]=_react.useState.call(void 0, !1),[x,p]=_react.useState.call(void 0, !1),[P,S]=_react.useState.call(void 0, void 0),[A,R]=_react.useState.call(void 0, !0),N=u.some(y=>y.startsWith("web3")),[L,V]=_react.useState.call(void 0, void 0),_=_react.useRef.call(void 0, null),D=_react.useMemo.call(void 0, ()=>(_.current||(_.current=_clientsdkauth.CrossmintAuth.from(s,{callbacks:{onLogout:()=>{f(void 0),g(void 0)},onTokenRefresh:y=>{f(y.user),g(y.jwt)}},refreshRoute:m,logoutRoute:h})),_.current),[]),M=_react.useRef.call(void 0, null),O=_react.useCallback.call(void 0, ()=>{e==null||e()},[e]);_react.useEffect.call(void 0, ()=>{if(c==null){let y=_clientsdkauth.getCookie.call(void 0, _commonsdkauth.SESSION_PREFIX);g(y)}p(!0)},[c]),_react.useEffect.call(void 0, ()=>{c!=null&&d&&(w(!1),O())},[c,d,O]);let G=_react.useCallback.call(void 0, y=>{if(c!=null){console.log("User already logged in");return}y!=null&&typeof y=="string"&&S(y),w(!0)},[c]),j=_react.useCallback.call(void 0, ()=>{D.logout()},[D]),X=_react.useCallback.call(void 0, ()=>!x||N&&!A?"initializing":c!=null?"logged-in":d?"in-progress":"logged-out",[x,N,A,c,d]),tt=_react.useCallback.call(void 0, ()=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){if(c==null){console.log("User not logged in");return}let y=yield D.getUser();return f(y),y}),[c,D]),ot=_react.useCallback.call(void 0, y=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){var H;yield(H=M.current)==null?void 0:H.call(M,y)}),[M]),it=_react.useMemo.call(void 0, ()=>({crossmintAuth:D,login:G,experimental_loginWithOAuth:ot,logout:j,jwt:c,user:b,status:X(),getUser:tt,loginMethods:u,experimental_externalWalletSigner:L}),[D,G,ot,j,c,b,X,tt,u,L]);return _jsxruntime.jsx.call(void 0, vt.Provider,{value:it,children:_jsxruntime.jsx.call(void 0, _chunkKT4LGFPNcjs.b,{setDialogOpen:(y,H)=>{w(y),H&&O()},initialState:{appearance:r,loginMethods:u,termsOfServiceText:o,authModalTitle:i,baseUrl:a,defaultEmail:P},children:_jsxruntime.jsx.call(void 0, zt,{prefetchOAuthUrls:X()==="logged-out"&&t,children:_jsxruntime.jsx.call(void 0, Mo,{loginWithOAuthRef:M,children:N?_jsxruntime.jsxs.call(void 0, Qt,{apiKeyEnvironment:s.apiKey.includes("production")?"production":"staging",loginMethods:u,appearance:r,onSdkLoaded:R,onWalletConnected:V,children:[n,_jsxruntime.jsx.call(void 0, ct,{open:d})]}):_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[n,_jsxruntime.jsx.call(void 0, ct,{open:d})]})})})})})}function Mo({children:n,loginWithOAuthRef:r}){let{startOAuthLogin:o}=K(),{jwt:t}=E(),i=_react.useCallback.call(void 0, e=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){if(t!=null){console.log("User already logged in");return}yield o(e)}),[t,o]);return _react.useEffect.call(void 0, ()=>{r.current=i},[i,r]),n}var E=()=>{let n=_react.useContext.call(void 0, vt);if(!n)throw new Error("useCrossmintAuth must be used within CrossmintAuthProvider");return n};var _o=6;function oo({otpEmailData:n,setOtpEmailData:r}){var w,x,p,P,S,A,R,N,L,V,_,D,M,O,G,j,X,tt,ot,it;let{crossmintAuth:o}=E(),{appearance:t,setDialogOpen:i,setStep:e,setError:u}=_chunkKT4LGFPNcjs.a.call(void 0, ),[m,h]=_react.useState.call(void 0, ""),[s,b]=_react.useState.call(void 0, !1),[f,c]=_react.useState.call(void 0, !1),g=()=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){var y,H;c(!0);try{let ht=yield o==null?void 0:o.confirmEmailOtp((y=n==null?void 0:n.email)!=null?y:"",(H=n==null?void 0:n.emailId)!=null?H:"",m);yield o==null?void 0:o.handleRefreshAuthMaterial(ht),i(!1,!0),e("initial")}catch(ht){console.error("Error confirming email OTP",ht),u("Invalid code. Please try again."),b(!0)}finally{c(!1)}}),a=()=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){var y;try{yield o==null?void 0:o.sendEmailOtp((y=n==null?void 0:n.email)!=null?y:"")}catch(H){u("Failed to resend code. Please try again.")}});return _jsxruntime.jsxs.call(void 0, "div",{children:[_jsxruntime.jsx.call(void 0, _chunkPGE5M3Q5cjs.a,{onClick:()=>{e("initial"),r(null)},iconColor:(w=t==null?void 0:t.colors)==null?void 0:w.textPrimary,ringColor:(x=t==null?void 0:t.colors)==null?void 0:x.accent}),_jsxruntime.jsxs.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "flex flex-col items-center justify-start w-full"),children:[_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "relative left-3"),children:_jsxruntime.jsx.call(void 0, _chunkI4GMMHQRcjs.a,{customAccentColor:(p=t==null?void 0:t.colors)==null?void 0:p.accent,customButtonBackgroundColor:(P=t==null?void 0:t.colors)==null?void 0:P.buttonBackground,customBackgroundColor:(S=t==null?void 0:t.colors)==null?void 0:S.background})}),_jsxruntime.jsx.call(void 0, "p",{className:_chunk6BFWRGAScjs.a.call(void 0, "text-base font-normal mt-4 mb-1 text-center text-cm-text-primary"),style:{color:(A=t==null?void 0:t.colors)==null?void 0:A.textPrimary},children:"Check your email"}),_jsxruntime.jsxs.call(void 0, "p",{className:_chunk6BFWRGAScjs.a.call(void 0, "text-center text-cm-text-secondary px-4"),style:{color:(R=t==null?void 0:t.colors)==null?void 0:R.textSecondary},children:["A temporary login code has been sent to"," ",n!=null&&n.email?n.email:"your email address"]}),_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "py-8"),children:_jsxruntime.jsx.call(void 0, _chunkE4DYZZKZcjs.a,{maxLength:_o,value:m,onChange:y=>{h(y),b(!1),u(null)},onComplete:g,disabled:f,customStyles:{accent:(L=(N=t==null?void 0:t.colors)==null?void 0:N.accent)!=null?L:"#04AA6D",danger:(_=(V=t==null?void 0:t.colors)==null?void 0:V.danger)!=null?_:"#f44336",border:(M=(D=t==null?void 0:t.colors)==null?void 0:D.border)!=null?M:"#E5E7EB",textPrimary:(G=(O=t==null?void 0:t.colors)==null?void 0:O.textPrimary)!=null?G:"#909ca3",buttonBackground:(X=(j=t==null?void 0:t.colors)==null?void 0:j.buttonBackground)!=null?X:"#eff6ff",inputBackground:(ot=(tt=t==null?void 0:t.colors)==null?void 0:tt.inputBackground)!=null?ot:"#FFFFFF",borderRadius:t==null?void 0:t.borderRadius},children:_jsxruntime.jsxs.call(void 0, _chunkE4DYZZKZcjs.b,{children:[_jsxruntime.jsx.call(void 0, _chunkE4DYZZKZcjs.c,{index:0,hasError:s}),_jsxruntime.jsx.call(void 0, _chunkE4DYZZKZcjs.c,{index:1,hasError:s}),_jsxruntime.jsx.call(void 0, _chunkE4DYZZKZcjs.c,{index:2,hasError:s}),_jsxruntime.jsx.call(void 0, _chunkE4DYZZKZcjs.c,{index:3,hasError:s}),_jsxruntime.jsx.call(void 0, _chunkE4DYZZKZcjs.c,{index:4,hasError:s}),_jsxruntime.jsx.call(void 0, _chunkE4DYZZKZcjs.c,{index:5,hasError:s})]})})}),_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "text-xs leading-tight text-cm-text-secondary text-center"),children:_jsxruntime.jsxs.call(void 0, "span",{style:{color:(it=t==null?void 0:t.colors)==null?void 0:it.textSecondary},children:["Can't find the email? Check spam folder.",`
7
- `,"Some emails may take several minutes to arrive."]})}),_jsxruntime.jsx.call(void 0, _chunkONU6TI5Wcjs.a,{initialSeconds:60,appearance:t,countdownText:y=>`Re-send code in ${y}s`,countdownCompleteText:"Re-send code",handleOnClick:a})]})]})}function ro({emailInput:n,appearance:r}){var i,e,u,m;let{startOAuthLogin:o,isLoading:t}=K();return _jsxruntime.jsxs.call(void 0, "button",{type:"button",className:_chunk4EQ23ZKCcjs.a.call(void 0, "flex items-center gap-2 justify-center h-[32px] px-2.5 border border-cm-border rounded-xl bg-cm-background-primary","hover:bg-cm-hover focus:bg-cm-hover outline-none",t?"cursor-not-allowed hover:bg-cm-muted-primary":""),onClick:t?void 0:()=>o("google",n.trim().toLowerCase()),style:{backgroundColor:(i=r==null?void 0:r.colors)==null?void 0:i.buttonBackground,borderRadius:r==null?void 0:r.borderRadius},children:[_jsxruntime.jsx.call(void 0, _chunkE65EGG73cjs.a,{className:_chunk6BFWRGAScjs.a.call(void 0, "max-h-[18px] max-w-[18px] h-[18px] w-[18px]")}),t?_jsxruntime.jsx.call(void 0, _chunkVUIDQYBYcjs.a,{style:{color:(e=r==null?void 0:r.colors)==null?void 0:e.textSecondary,fill:(u=r==null?void 0:r.colors)==null?void 0:u.textPrimary,width:"18px",height:"18px"}}):_jsxruntime.jsx.call(void 0, "span",{className:_chunk6BFWRGAScjs.a.call(void 0, "text-cm-accent"),style:{color:(m=r==null?void 0:r.colors)==null?void 0:m.accent},children:"Continue"})]})}function eo({setOtpEmailData:n}){var d,w,x,p,P,S,A,R,N,L,V,_,D,M;let{crossmintAuth:r}=E(),{appearance:o,defaultEmail:t,setStep:i,setError:e,loginMethods:u}=_chunkKT4LGFPNcjs.a.call(void 0, ),[m,h]=_react.useState.call(void 0, t!=null?t:""),[s,b]=_react.useState.call(void 0, ""),[f,c]=_react.useState.call(void 0, !1),g=m.toLowerCase().includes("@gmail.com")&&!m.toLowerCase().includes("+")&&_commonsdkauth.isEmailValid.call(void 0, m)&&!f&&u.includes("google");function a(O){return _chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){O.preventDefault(),c(!0);try{let G=m.trim().toLowerCase(),j=yield r==null?void 0:r.sendEmailOtp(G);n({email:G,emailId:j.emailId}),i("otp")}catch(G){c(!1),e("Failed to send email. Please try again or contact support.")}})}return _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment,{children:_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "flex flex-col items-start justify-start w-full rounded-lg"),children:_jsxruntime.jsxs.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "w-full"),children:[_jsxruntime.jsx.call(void 0, "label",{className:_chunk6BFWRGAScjs.a.call(void 0, "text-cm-text-primary block mb-[5px]"),style:{color:(d=o==null?void 0:o.colors)==null?void 0:d.textPrimary},children:"Email"}),_jsxruntime.jsxs.call(void 0, "form",{role:"form",className:_chunk6BFWRGAScjs.a.call(void 0, "relative"),onSubmit:O=>{if(g){O.preventDefault();return}_commonsdkauth.isEmailValid.call(void 0, m)?a(O):O.preventDefault()},noValidate:!0,children:[_jsxruntime.jsx.call(void 0, "label",{htmlFor:"emailInput",className:_chunk6BFWRGAScjs.a.call(void 0, "sr-only"),children:"Email"}),_jsxruntime.jsx.call(void 0, "input",{className:_chunk4EQ23ZKCcjs.a.call(void 0, "flex-grow text-cm-text-primary text-left pl-[16px] h-[58px] w-full border border-cm-border rounded-xl bg-cm-background-primary placeholder:text-md","transition-none duration-200 ease-in-out","focus:outline-none focus-ring-custom","placeholder:[color:var(--placeholder-color)]",s?"border-red-500":"",g?"pr-[132px]":"pr-[80px]"),style:{color:(w=o==null?void 0:o.colors)==null?void 0:w.textPrimary,borderRadius:o==null?void 0:o.borderRadius,borderColor:s?(x=o==null?void 0:o.colors)==null?void 0:x.danger:(p=o==null?void 0:o.colors)==null?void 0:p.border,backgroundColor:(P=o==null?void 0:o.colors)==null?void 0:P.inputBackground,"--placeholder-color":(A=(S=o==null?void 0:o.colors)==null?void 0:S.textSecondary)!=null?A:"#67797F","--focus-ring-color":new (0, _color2.default)((N=(R=o==null?void 0:o.colors)==null?void 0:R.accent)!=null?N:"#04AA6D").alpha(.18).toString()},type:"email",placeholder:"your@email.com",value:m,onChange:O=>{h(O.target.value),b(""),e(null)},readOnly:f,"aria-describedby":"emailError"}),_jsxruntime.jsxs.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "absolute inset-y-0 right-0 flex items-center pr-4"),children:[s&&_jsxruntime.jsx.call(void 0, _chunkNRN4WNQLcjs.a,{customColor:(L=o==null?void 0:o.colors)==null?void 0:L.danger}),f&&_jsxruntime.jsx.call(void 0, _chunkVUIDQYBYcjs.a,{style:{color:(V=o==null?void 0:o.colors)==null?void 0:V.textSecondary,fill:(_=o==null?void 0:o.colors)==null?void 0:_.textPrimary}}),g?_jsxruntime.jsx.call(void 0, ro,{emailInput:m,appearance:o}):!s&&!f?_jsxruntime.jsx.call(void 0, "button",{type:"submit",className:_chunk4EQ23ZKCcjs.a.call(void 0, "font-medium text-cm-accent text-nowrap bg-cm-background-primary",_commonsdkauth.isEmailValid.call(void 0, m)?"cursor-pointer":"!cursor-not-allowed opacity-60"),style:{color:(D=o==null?void 0:o.colors)==null?void 0:D.accent,backgroundColor:(M=o==null?void 0:o.colors)==null?void 0:M.inputBackground},disabled:!_commonsdkauth.isEmailValid.call(void 0, m)||f,children:"Submit"}):null]})]}),s&&_jsxruntime.jsx.call(void 0, "p",{className:_chunk6BFWRGAScjs.a.call(void 0, "text-xs text-red-500 mb-2 pt-2"),children:s})]})})})}function io(){let{step:n}=_chunkKT4LGFPNcjs.a.call(void 0, ),[r,o]=_react.useState.call(void 0, null);return n==="otp"?_jsxruntime.jsx.call(void 0, oo,{otpEmailData:r,setOtpEmailData:o}):n==="initial"?_jsxruntime.jsx.call(void 0, eo,{setOtpEmailData:o}):null}function so(r){var n=_chunk2WSEHVNPcjs.c.call(void 0, r,[]);var u,m,h,s;let{step:o,appearance:t}=_chunkKT4LGFPNcjs.a.call(void 0, ),{startOAuthLogin:i,isLoading:e}=K();return o!=="initial"?null:_jsxruntime.jsxs.call(void 0, "button",_chunk2WSEHVNPcjs.b.call(void 0, _chunk2WSEHVNPcjs.a.call(void 0, {className:_chunk4EQ23ZKCcjs.a.call(void 0, "relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center","transition-colors duration-200 ease-in-out","hover:bg-cm-hover focus:bg-cm-hover outline-none",e?"cursor-not-allowed hover:bg-cm-muted-primary":""),style:{borderRadius:t==null?void 0:t.borderRadius,backgroundColor:(u=t==null?void 0:t.colors)==null?void 0:u.buttonBackground},onClick:e?void 0:()=>i("google")},n),{children:[_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _chunkE65EGG73cjs.a,{className:_chunk6BFWRGAScjs.a.call(void 0, "max-h-[25px] max-w-[25px] h-[25px] w-[25px] absolute left-[18px]")}),e?_jsxruntime.jsx.call(void 0, _chunkVUIDQYBYcjs.a,{style:{color:(m=t==null?void 0:t.colors)==null?void 0:m.textSecondary,fill:(h=t==null?void 0:t.colors)==null?void 0:h.textPrimary}}):_jsxruntime.jsx.call(void 0, "span",{className:_chunk6BFWRGAScjs.a.call(void 0, "font-medium"),style:{margin:"0px 32px",color:(s=t==null?void 0:t.colors)==null?void 0:s.textPrimary},children:"Sign in with Google"})]}),_jsxruntime.jsx.call(void 0, "span",{className:_chunk6BFWRGAScjs.a.call(void 0, "sr-only"),children:"Sign in with Google"})]}))}var _authkit = require('@farcaster/auth-kit');function mo(){var i,e;let{step:n,appearance:r,setStep:o,setError:t}=_chunkKT4LGFPNcjs.a.call(void 0, );return n==="initial"?_jsxruntime.jsx.call(void 0, "div",{children:_jsxruntime.jsxs.call(void 0, "button",{className:_chunk4EQ23ZKCcjs.a.call(void 0, "relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center","transition-colors duration-200 ease-in-out","hover:bg-cm-hover focus:bg-cm-hover outline-none"),style:{borderRadius:r==null?void 0:r.borderRadius,backgroundColor:(i=r==null?void 0:r.colors)==null?void 0:i.buttonBackground},onClick:()=>{o("qrCode"),t(null)},children:[_jsxruntime.jsx.call(void 0, _chunkSRQAQHYKcjs.a,{className:_chunk6BFWRGAScjs.a.call(void 0, "max-h-[25px] max-w-[25px] h-[25px] w-[25px] absolute left-[18px]")}),_jsxruntime.jsx.call(void 0, "span",{className:_chunk6BFWRGAScjs.a.call(void 0, "font-medium"),style:{margin:"0px 32px",color:(e=r==null?void 0:r.colors)==null?void 0:e.textPrimary},children:"Sign in with Farcaster"}),_jsxruntime.jsx.call(void 0, "span",{className:_chunk6BFWRGAScjs.a.call(void 0, "sr-only"),children:"Sign in with Farcaster"})]})}):n==="qrCode"?_jsxruntime.jsx.call(void 0, Jo,{}):null}function Jo(){var a,d,w,x,p,P,S,A,R;let{crossmintAuth:n}=E(),{appearance:r,setStep:o,setDialogOpen:t,setError:i}=_chunkKT4LGFPNcjs.a.call(void 0, ),[e,u]=_react.useState.call(void 0, null),m=_react.useMemo.call(void 0, ()=>({onSuccess:N=>{u(N)}}),[]),{signIn:h,url:s,connect:b,signOut:f,isConnected:c}=_authkit.useSignIn.call(void 0, m),g=N=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){i(null);try{let L=yield n==null?void 0:n.signInWithFarcaster(N);yield n==null?void 0:n.handleRefreshAuthMaterial(L),t(!1),o("initial")}catch(L){console.error("Error during Farcaster sign-in:",L),i("Failed to sign in with Farcaster")}});return _react.useEffect.call(void 0, ()=>{e!=null&&g(e)},[e]),_react.useEffect.call(void 0, ()=>{c&&h()},[c]),_react.useEffect.call(void 0, ()=>{b()},[]),_jsxruntime.jsxs.call(void 0, "div",{children:[_jsxruntime.jsx.call(void 0, _chunkPGE5M3Q5cjs.a,{onClick:()=>{f(),o("initial")},iconColor:(a=r==null?void 0:r.colors)==null?void 0:a.textPrimary,ringColor:(d=r==null?void 0:r.colors)==null?void 0:d.accent}),_jsxruntime.jsxs.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "flex flex-col items-center gap-4"),children:[_jsxruntime.jsxs.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "text-center"),children:[_jsxruntime.jsx.call(void 0, "h3",{className:_chunk6BFWRGAScjs.a.call(void 0, "text-lg font-semibold text-cm-text-primary mb-2"),style:{color:(w=r==null?void 0:r.colors)==null?void 0:w.textPrimary},children:"Sign in with Farcaster"}),_jsxruntime.jsx.call(void 0, "p",{className:_chunk6BFWRGAScjs.a.call(void 0, "text-base font-normal text-cm-text-secondary"),style:{color:(x=r==null?void 0:r.colors)==null?void 0:x.textSecondary},children:"Scan with your phone's camera to continue."})]}),_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "bg-white aspect-square rounded-lg p-4"),style:{backgroundColor:(p=r==null?void 0:r.colors)==null?void 0:p.inputBackground,borderRadius:r==null?void 0:r.borderRadius},children:s!=null?_jsxruntime.jsx.call(void 0, _authkit.QRCode,{uri:s,size:280}):_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "min-h-[246px] flex items-center justify-center"),children:_jsxruntime.jsx.call(void 0, _chunkVUIDQYBYcjs.a,{style:{color:(P=r==null?void 0:r.colors)==null?void 0:P.textSecondary,fill:(S=r==null?void 0:r.colors)==null?void 0:S.textPrimary}})})}),s?_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, "p",{className:_chunk6BFWRGAScjs.a.call(void 0, "text-base text-center font-normal text-cm-text-secondary"),style:{color:(A=r==null?void 0:r.colors)==null?void 0:A.textSecondary},children:"Alternatively, click on this link to open Warpcast."}),_jsxruntime.jsx.call(void 0, "a",{href:s,rel:"noopener noreferrer",target:"_blank",className:_chunk6BFWRGAScjs.a.call(void 0, "text-base font-normal text-cm-link"),style:{color:(R=r==null?void 0:r.colors)==null?void 0:R.textLink},children:"Open Warpcast"})]}):null]})]})}function ao(r){var n=_chunk2WSEHVNPcjs.c.call(void 0, r,[]);var u,m,h,s;let{step:o,appearance:t}=_chunkKT4LGFPNcjs.a.call(void 0, ),{startOAuthLogin:i,isLoading:e}=K();return o!=="initial"?null:_jsxruntime.jsxs.call(void 0, "button",_chunk2WSEHVNPcjs.b.call(void 0, _chunk2WSEHVNPcjs.a.call(void 0, {className:_chunk4EQ23ZKCcjs.a.call(void 0, "relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center","transition-colors duration-200 ease-in-out","hover:bg-cm-hover focus:bg-cm-hover outline-none",e?"cursor-not-allowed hover:bg-cm-muted-primary":""),style:{borderRadius:t==null?void 0:t.borderRadius,backgroundColor:(u=t==null?void 0:t.colors)==null?void 0:u.buttonBackground},onClick:e?void 0:()=>i("twitter")},n),{children:[_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _chunkZBQCXWMDcjs.a,{className:_chunk6BFWRGAScjs.a.call(void 0, "max-h-[25px] max-w-[25px] h-[25px] w-[25px] absolute left-[18px]")}),e?_jsxruntime.jsx.call(void 0, _chunkVUIDQYBYcjs.a,{style:{color:(m=t==null?void 0:t.colors)==null?void 0:m.textSecondary,fill:(h=t==null?void 0:t.colors)==null?void 0:h.textPrimary}}):_jsxruntime.jsx.call(void 0, "span",{className:_chunk6BFWRGAScjs.a.call(void 0, "font-medium"),style:{margin:"0px 32px",color:(s=t==null?void 0:t.colors)==null?void 0:s.textPrimary},children:"Sign in with X"})]}),_jsxruntime.jsx.call(void 0, "span",{className:_chunk6BFWRGAScjs.a.call(void 0, "sr-only"),children:"Sign in with X"})]}))}function co({className:n}){var h,s,b,f,c,g,a,d,w,x,p,P,S;let{step:r,appearance:o,loginMethods:t,baseUrl:i,error:e,termsOfServiceText:u,authModalTitle:m}=_chunkKT4LGFPNcjs.a.call(void 0, );return _jsxruntime.jsxs.call(void 0, "div",{className:_chunk4EQ23ZKCcjs.a.call(void 0, "relative pt-10 pb-[30px] px-6 !min-[480px]:px-10 flex flex-col gap-[10px] antialiased animate-none",n),children:[e!=null?_jsxruntime.jsxs.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "flex items-start justify-start w-full rounded-lg p-2 mt-4 bg-cm-danger-muted"),style:{backgroundColor:new (0, _color2.default)((s=(h=o==null?void 0:o.colors)==null?void 0:h.danger)!=null?s:"#f44336").alpha(.12).toString()},children:[_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "min-w-[20px]"),children:_jsxruntime.jsx.call(void 0, _chunkNRN4WNQLcjs.a,{customColor:(f=(b=o==null?void 0:o.colors)==null?void 0:b.danger)!=null?f:"#f44336"})}),_jsxruntime.jsx.call(void 0, "p",{className:_chunk6BFWRGAScjs.a.call(void 0, "ml-2 text-sm"),style:{color:(g=(c=o==null?void 0:o.colors)==null?void 0:c.danger)!=null?g:"#f44336"},children:e})]}):null,r==="initial"?_jsxruntime.jsxs.call(void 0, "div",{children:[_jsxruntime.jsx.call(void 0, "h1",{className:_chunk6BFWRGAScjs.a.call(void 0, "text-2xl font-bold text-cm-text-primary"),style:{color:(a=o==null?void 0:o.colors)==null?void 0:a.textPrimary},children:m!=null?m:"Sign in to Crossmint"}),_jsxruntime.jsx.call(void 0, "p",{className:_chunk6BFWRGAScjs.a.call(void 0, "text-base font-normal mb-3 text-cm-text-secondary"),style:{color:(d=o==null?void 0:o.colors)==null?void 0:d.textSecondary},children:"Access using one of the options below."})]}):null,t.includes("google")?_jsxruntime.jsx.call(void 0, so,{}):null,t.includes("farcaster")?_jsxruntime.jsx.call(void 0, _chunkBR77Q3PKcjs.a,{baseUrl:i,children:_jsxruntime.jsx.call(void 0, mo,{})}):null,t.includes("twitter")?_jsxruntime.jsx.call(void 0, ao,{}):null,t.some(A=>A.startsWith("web3"))?_jsxruntime.jsx.call(void 0, _chunkJO7RY6MGcjs.a,{}):null,t.includes("email")?_jsxruntime.jsxs.call(void 0, "div",{children:[t.length>1?_jsxruntime.jsx.call(void 0, _chunk2F3EMF5Gcjs.a,{appearance:o,text:"OR"}):null,_jsxruntime.jsx.call(void 0, io,{})]}):null,r==="initial"&&u!=null?_jsxruntime.jsxs.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "text-sm text-center text-cm-text-secondary mt-2"),style:{color:(w=o==null?void 0:o.colors)==null?void 0:w.textSecondary},children:[_jsxruntime.jsx.call(void 0, "style",{children:`
8
- p a {
9
- color: ${(p=(x=o==null?void 0:o.colors)==null?void 0:x.textLink)!=null?p:"#1A74E9"};
10
- }
11
- `}),u]}):null,r==="initial"||r==="otp"?_jsxruntime.jsx.call(void 0, _chunk7YO3UHARcjs.a,{className:_chunk6BFWRGAScjs.a.call(void 0, "mt-1.5 md:mt-4 justify-center"),color:(S=(P=o==null?void 0:o.colors)==null?void 0:P.textSecondary)!=null?S:"#67797F"}):null]})}function ct({open:n}){var t,i,e;let{appearance:r,setDialogOpen:o}=_chunkKT4LGFPNcjs.a.call(void 0, );return _react.useEffect.call(void 0, ()=>{document.body.style.overflow=n?"hidden":""},[n]),_jsxruntime.jsx.call(void 0, _chunkJ4QPNKHCcjs.a,{modal:!1,open:n,onOpenChange:o,children:_jsxruntime.jsxs.call(void 0, _chunkJ4QPNKHCcjs.e,{onInteractOutside:u=>u.preventDefault(),onOpenAutoFocus:u=>u.preventDefault(),closeButtonColor:(t=r==null?void 0:r.colors)==null?void 0:t.textPrimary,closeButtonRingColor:(i=r==null?void 0:r.colors)==null?void 0:i.accent,className:_chunk6BFWRGAScjs.a.call(void 0, "!p-0 !min-[480px]:p-0"),style:{borderRadius:r==null?void 0:r.borderRadius,backgroundColor:(e=r==null?void 0:r.colors)==null?void 0:e.background},children:[_jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkJ4QPNKHCcjs.h,{children:"Crossmint Auth"})}),_jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkJ4QPNKHCcjs.i,{children:"Sign in via Crossmint"})}),_jsxruntime.jsx.call(void 0, co,{className:_chunk6BFWRGAScjs.a.call(void 0, "max-w-[448px]")})]})})}exports.a = ct; exports.b = Gt; exports.c = K; exports.d = zt; exports.e = Qt; exports.f = vt; exports.g = Gr; exports.h = E; exports.i = _o; exports.j = oo; exports.k = ro; exports.l = eo; exports.m = io; exports.n = so; exports.o = mo; exports.p = ao; exports.q = co;
@@ -1 +0,0 @@
1
- import{jsx as t}from"react/jsx-runtime";function n({className:e,style:o}){return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,style:o,children:t("path",{d:"m9 18 6-6-6-6"})})}export{n as a};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYGYMICXJcjs = require('./chunk-YGYMICXJ.cjs');var _chunkZWMCD7KMcjs = require('./chunk-ZWMCD7KM.cjs');var _chunkJ4QPNKHCcjs = require('./chunk-J4QPNKHC.cjs');var _chunk6BFWRGAScjs = require('./chunk-6BFWRGAS.cjs');var _reactvisuallyhidden = require('@radix-ui/react-visually-hidden');var _jsxruntime = require('react/jsx-runtime');function E({phone:n,open:s,setOpen:y,step:m,onSubmitOTP:D,onResendOTPCode:O,onSubmitPhone:S,rejectRef:l,appearance:o}){var f,u,g;if(n==null)throw new Error("Phone is required");function d(e){var x;(s||e)&&((x=l.current)==null||x.call(l,new Error),y(!1))}return _jsxruntime.jsx.call(void 0, _chunkJ4QPNKHCcjs.a,{modal:!1,open:s,onOpenChange:d,children:_jsxruntime.jsxs.call(void 0, _chunkJ4QPNKHCcjs.e,{onInteractOutside:e=>e.preventDefault(),onOpenAutoFocus:e=>e.preventDefault(),className:_chunk6BFWRGAScjs.a.call(void 0, "!p-0 !min-[480px]:p-0"),style:{borderRadius:o==null?void 0:o.borderRadius,backgroundColor:(f=o==null?void 0:o.colors)==null?void 0:f.background},children:[_jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkJ4QPNKHCcjs.h,{children:"Confirm it's you"})}),_jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkJ4QPNKHCcjs.i,{children:"Create a recovery key"})}),_jsxruntime.jsxs.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "relative pt-10 pb-[30px] px-6 !min-[480px]:px-10 flex flex-col gap-[10px] antialiased animate-none max-w-[448px]"),children:[m==="initial"?_jsxruntime.jsxs.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "flex flex-col gap-4"),children:[_jsxruntime.jsx.call(void 0, "h1",{className:_chunk6BFWRGAScjs.a.call(void 0, "text-2xl font-bold text-cm-text-primary"),style:{color:(u=o==null?void 0:o.colors)==null?void 0:u.textPrimary},children:"Confirm it's you"}),_jsxruntime.jsx.call(void 0, "p",{className:_chunk6BFWRGAScjs.a.call(void 0, "text-base font-normal mb-3 text-cm-text-secondary"),style:{color:(g=o==null?void 0:o.colors)==null?void 0:g.textSecondary},children:"You're using this wallet for the first time on this device. Click 'Send code' to get a one-time verification code via SMS."})]}):null,m==="otp"?_jsxruntime.jsx.call(void 0, _chunkZWMCD7KMcjs.a,{phone:n,onSubmitOTP:D,onResendCode:O,appearance:o}):_jsxruntime.jsx.call(void 0, _chunkYGYMICXJcjs.a,{phone:n,onConfirm:S,onCancel:d,appearance:o})]})]})})}exports.a = E;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk4EQ23ZKCcjs = require('./chunk-4EQ23ZKC.cjs');var _jsxruntime = require('react/jsx-runtime');var i=({className:C,style:r})=>_jsxruntime.jsxs.call(void 0, "svg",{"aria-hidden":"true",className:_chunk4EQ23ZKCcjs.a.call(void 0, "w-6 h-6 fill-cm-text-primary text-cm-text-secondary animate-spin",C),style:r,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_jsxruntime.jsx.call(void 0, "path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),_jsxruntime.jsx.call(void 0, "path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]});exports.a = i;
@@ -1 +0,0 @@
1
- import{jsx as e}from"react/jsx-runtime";function a({className:r,style:o}){var t;return e("svg",{className:r,style:o,width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M15.0566 12.5H15.067M1.10156 3.5V17.5C1.10156 18.6046 2.02718 19.5 3.16898 19.5H17.6409C18.7827 19.5 19.7083 18.6046 19.7083 17.5V7.5C19.7083 6.39543 18.7827 5.5 17.6409 5.5L3.16898 5.5C2.02718 5.5 1.10156 4.60457 1.10156 3.5ZM1.10156 3.5C1.10156 2.39543 2.02718 1.5 3.16898 1.5H15.5735M15.5735 12.5C15.5735 12.7761 15.3421 13 15.0566 13C14.7712 13 14.5398 12.7761 14.5398 12.5C14.5398 12.2239 14.7712 12 15.0566 12C15.3421 12 15.5735 12.2239 15.5735 12.5Z",stroke:(t=o==null?void 0:o.color)!=null?t:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}export{a};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkTWX7ZBKZcjs = require('./chunk-TWX7ZBKZ.cjs');var _chunkQYQERFYLcjs = require('./chunk-QYQERFYL.cjs');var _chunkVI6TW7JTcjs = require('./chunk-VI6TW7JT.cjs');var _chunkJ4QPNKHCcjs = require('./chunk-J4QPNKHC.cjs');var _chunk7YO3UHARcjs = require('./chunk-7YO3UHAR.cjs');var _chunk4EQ23ZKCcjs = require('./chunk-4EQ23ZKC.cjs');var _chunk6BFWRGAScjs = require('./chunk-6BFWRGAS.cjs');var _reactvisuallyhidden = require('@radix-ui/react-visually-hidden');var _jsxruntime = require('react/jsx-runtime');function c({title:e,content:t,primaryButton:l,secondaryAction:n,appearance:r}){var a,y,f,v;return _jsxruntime.jsx.call(void 0, _chunkJ4QPNKHCcjs.a,{modal:!1,open:!0,onOpenChange:()=>{},children:_jsxruntime.jsxs.call(void 0, _chunkJ4QPNKHCcjs.e,{showCloseButton:!1,onInteractOutside:m=>m.preventDefault(),onOpenAutoFocus:m=>m.preventDefault(),className:_chunk6BFWRGAScjs.a.call(void 0, "!p-0 !min-[480px]:p-0"),style:{borderRadius:r==null?void 0:r.borderRadius,backgroundColor:(a=r==null?void 0:r.colors)==null?void 0:a.background},children:[_jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkJ4QPNKHCcjs.h,{children:e})}),_jsxruntime.jsxs.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "relative pt-10 pb-[30px] px-6 !min-[480px]:px-10 flex flex-col gap-[10px] antialiased animate-none"),children:[_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "flex justify-center left-1.5 relative"),children:_jsxruntime.jsx.call(void 0, _chunkTWX7ZBKZcjs.a,{appearance:r})}),_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "flex justify-center"),children:_jsxruntime.jsx.call(void 0, "p",{style:{fontSize:"1.125rem",lineHeight:"1.75rem",fontWeight:"bold",color:((y=r==null?void 0:r.colors)==null?void 0:y.textPrimary)||"#20343E"},children:e})}),_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "mb-6"),children:_jsxruntime.jsx.call(void 0, "div",{style:{fontWeight:"normal",color:((f=r==null?void 0:r.colors)==null?void 0:f.textSecondary)||"#67797F"},children:t})}),_jsxruntime.jsxs.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "flex flex-col gap-4 justify-center"),children:[l,n]}),_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "flex justify-center pt-4"),children:_jsxruntime.jsx.call(void 0, _chunk7YO3UHARcjs.a,{color:(v=r==null?void 0:r.colors)==null?void 0:v.textSecondary})})]})]})})}function I({state:e,appearance:t}){var l,n;switch(e.type){case"create-wallet":return _jsxruntime.jsx.call(void 0, c,{title:"Create Your Wallet",appearance:t,content:_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "mb-3"),children:"You're about to create a wallet."}),_jsxruntime.jsxs.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "flex flex-col gap-2"),children:[_jsxruntime.jsxs.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "flex gap-2"),children:[_jsxruntime.jsx.call(void 0, "div",{children:_jsxruntime.jsx.call(void 0, _chunkVI6TW7JTcjs.a,{})}),"Your wallet will be secured with a passkey"]}),_jsxruntime.jsxs.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "flex gap-2"),children:[_jsxruntime.jsx.call(void 0, "div",{children:_jsxruntime.jsx.call(void 0, _chunkQYQERFYLcjs.a,{})}),"Your device will ask you for your fingerprint, face, or screen lock to set it up"]})]})]}),primaryButton:_jsxruntime.jsx.call(void 0, d,{appearance:t,onClick:e.primaryActionOnClick,children:"Create Wallet"})});case"create-wallet-error":return _jsxruntime.jsx.call(void 0, c,{title:"Wallet Creation Failed",appearance:t,content:_jsxruntime.jsx.call(void 0, "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:_jsxruntime.jsx.call(void 0, d,{appearance:t,onClick:e.primaryActionOnClick,children:"Try again"})});case"transaction":return _jsxruntime.jsx.call(void 0, c,{title:"Use Your Wallet",appearance:t,content:_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "flex flex-col gap-2"),children:_jsxruntime.jsxs.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "flex gap-2"),children:[_jsxruntime.jsx.call(void 0, "div",{children:_jsxruntime.jsx.call(void 0, _chunkQYQERFYLcjs.a,{})}),_jsxruntime.jsx.call(void 0, "span",{children:"Your device will ask you for your fingerprint, face, or screen lock to authorize this action."})]})}),primaryButton:_jsxruntime.jsx.call(void 0, d,{appearance:t,onClick:e.primaryActionOnClick,children:"Use Wallet"})});case"transaction-error":return _jsxruntime.jsx.call(void 0, c,{title:"Wallet Access Failed",appearance:t,content:_jsxruntime.jsx.call(void 0, "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:_jsxruntime.jsx.call(void 0, d,{appearance:t,onClick:e.primaryActionOnClick,children:"Try again"}),secondaryAction:_jsxruntime.jsx.call(void 0, "a",{href:"https://docs.crossmint.com/wallets/smart-wallets/users/troubleshoot",rel:"noopener noreferrer",target:"_blank",style:{padding:"0.875rem",width:"100%",textAlign:"center",textDecoration:"none",borderRadius:"0.5rem",fontWeight:"bold",backgroundColor:((l=t==null?void 0:t.colors)==null?void 0:l.inputBackground)||"#F0F2F4",color:((n=t==null?void 0:t.colors)==null?void 0:n.textSecondary)||"#00150D"},children:"Troubleshoot"})});case"not-supported":return _jsxruntime.jsx.call(void 0, c,{title:"Passkeys Not Supported on This Device",appearance:t,content:_jsxruntime.jsx.call(void 0, "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:_jsxruntime.jsx.call(void 0, d,{appearance:t,onClick:e.primaryActionOnClick,children:"Understood"})});default:return null}}var d=({appearance:e,onClick:t,children:l})=>{var n,r;return _jsxruntime.jsxs.call(void 0, "button",{className:_chunk4EQ23ZKCcjs.a.call(void 0, "relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center","transition-colors duration-200 ease-in-out","hover:bg-cm-hover focus:bg-cm-hover outline-none"),style:{borderRadius:e==null?void 0:e.borderRadius,backgroundColor:(n=e==null?void 0:e.colors)==null?void 0:n.buttonBackground},onClick:t,children:[_jsxruntime.jsx.call(void 0, "span",{className:_chunk6BFWRGAScjs.a.call(void 0, "font-medium"),style:{margin:"0px 32px",color:(r=e==null?void 0:e.colors)==null?void 0:r.textPrimary},children:l}),_jsxruntime.jsx.call(void 0, "span",{className:_chunk6BFWRGAScjs.a.call(void 0, "sr-only"),children:l})]})};exports.a = I;
@@ -1 +0,0 @@
1
- import{jsx as l,jsxs as h}from"react/jsx-runtime";function p({className:c}){return h("svg",{width:"25",height:"25",x:"0px",y:"0px",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",className:c,children:[l("path",{fill:"#fbc02d",d:"M43.611,20.083H42V20H24v8h11.303c-1.649,4.657-6.08,8-11.303,8c-6.627,0-12-5.373-12-12 s5.373-12,12-12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657C34.046,6.053,29.268,4,24,4C12.955,4,4,12.955,4,24s8.955,20,20,20 s20-8.955,20-20C44,22.659,43.862,21.35,43.611,20.083z"}),l("path",{fill:"#e53935",d:"M6.306,14.691l6.571,4.819C14.655,15.108,18.961,12,24,12c3.059,0,5.842,1.154,7.961,3.039 l5.657-5.657C34.046,6.053,29.268,4,24,4C16.318,4,9.656,8.337,6.306,14.691z"}),l("path",{fill:"#4caf50",d:"M24,44c5.166,0,9.86-1.977,13.409-5.192l-6.19-5.238C29.211,35.091,26.715,36,24,36 c-5.202,0-9.619-3.317-11.283-7.946l-6.522,5.025C9.505,39.556,16.227,44,24,44z"}),l("path",{fill:"#1565c0",d:"M43.611,20.083L43.595,20L42,20H24v8h11.303c-0.792,2.237-2.231,4.166-4.087,5.571 c0.001-0.001,0.002-0.001,0.003-0.002l6.19,5.238C36.971,39.205,44,34,44,24C44,22.659,43.862,21.35,43.611,20.083z"})]})}export{p as a};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVUIDQYBYcjs = require('./chunk-VUIDQYBY.cjs');var _chunk4EQ23ZKCcjs = require('./chunk-4EQ23ZKC.cjs');var _chunk6BFWRGAScjs = require('./chunk-6BFWRGAS.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');function z({phone:i,onConfirm:C,onCancel:y,appearance:e}){var c,f,a;let[s,l]=_react.useState.call(void 0, !1),[n,g]=_react.useState.call(void 0, ""),b=()=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){l(!0);try{yield C(i)}catch(N){console.error("Error sending authorization code:",N),g("Failed to send code. Please try again.")}finally{l(!1)}}),w=((c=e==null?void 0:e.colors)==null?void 0:c.accent)||"#4CAF50",d=((f=e==null?void 0:e.colors)==null?void 0:f.textPrimary)||"#000000",m=((a=e==null?void 0:e.colors)==null?void 0:a.border)||"#E0E0E0";return _jsxruntime.jsxs.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "flex flex-col w-full max-w-md mx-auto rounded-xl"),children:[_jsxruntime.jsx.call(void 0, "h2",{className:_chunk6BFWRGAScjs.a.call(void 0, "mb-2"),style:{color:d},children:"Send authorization code to"}),_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "w-full mb-8 p-4 rounded-xl border"),style:{borderColor:m},children:_jsxruntime.jsxs.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "flex items-center"),children:[_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "flex-shrink-0 mr-3"),children:_jsxruntime.jsx.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:_chunk6BFWRGAScjs.a.call(void 0, "lucide lucide-phone"),children:_jsxruntime.jsx.call(void 0, "path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"})})}),_jsxruntime.jsx.call(void 0, "span",{style:{color:d},children:i})]})}),n&&_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "text-red-500 mb-4 text-sm"),children:n}),_jsxruntime.jsxs.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "flex gap-3"),children:[_jsxruntime.jsx.call(void 0, "button",{onClick:y,className:_chunk6BFWRGAScjs.a.call(void 0, "flex-1 py-4 px-6 border rounded-full text-center font-medium"),style:{borderColor:m},children:"Cancel"}),_jsxruntime.jsx.call(void 0, "button",{onClick:b,disabled:s,className:_chunk4EQ23ZKCcjs.a.call(void 0, "flex-1 py-4 px-6 rounded-full text-white text-center font-medium",s?"opacity-70":""),style:{backgroundColor:w},children:s?_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "flex justify-center items-center"),children:_jsxruntime.jsx.call(void 0, _chunkVUIDQYBYcjs.a,{style:{color:"white"}})}):"Send code"})]})]})}exports.a = z;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _jsxruntime = require('react/jsx-runtime');function s({className:e,style:o}){return _jsxruntime.jsx.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,style:o,children:_jsxruntime.jsx.call(void 0, "path",{d:"m9 18 6-6-6-6"})})}exports.a = s;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _jsxruntime = require('react/jsx-runtime');function n({className:t}){return _jsxruntime.jsx.call(void 0, "svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:_jsxruntime.jsx.call(void 0, "path",{d:"M 14.285156 10.171875 L 23.222656 0 L 21.105469 0 L 13.34375 8.832031 L 7.148438 0 L 0 0 L 9.371094 13.355469 L 0 24.019531 L 2.117188 24.019531 L 10.308594 14.691406 L 16.851562 24.019531 L 24 24.019531 M 2.878906 1.5625 L 6.132812 1.5625 L 21.101562 22.535156 L 17.851562 22.535156",fill:"currentColor"})})}exports.a = n;
@@ -1,2 +0,0 @@
1
- import{a as _}from"./chunk-GGUEHZAY.js";import{a as G,b as L,c as H}from"./chunk-GHRFRG65.js";import{a as R}from"./chunk-J2YZL55W.js";import{a as U}from"./chunk-C3JRTLQP.js";import{a as s}from"./chunk-ZNDVEP3D.js";import{d as A}from"./chunk-PXDN3KFO.js";import{useState as m}from"react";import{jsx as t,jsxs as d}from"react/jsx-runtime";function Z({email:D,onSubmitOTP:$,onResendCode:u,appearance:o}){var y,g,P,c,k,v,b,T,h,O,C,E,I,B,e,N,S,w;let[n,j]=m(""),[q,i]=m(!1),[z,f]=m(!1),[x,r]=m(null),J=()=>A(this,null,function*(){f(!0);try{yield $(n),i(!1),r(null)}catch(l){console.error("Error confirming recovery key OTP",l),r("Invalid code. Please try again."),i(!0)}finally{f(!1)}});return d("div",{className:s("flex flex-col items-center justify-start w-full"),children:[t("div",{className:s("relative left-3"),children:t(U,{customAccentColor:(y=o==null?void 0:o.colors)==null?void 0:y.accent,customButtonBackgroundColor:(g=o==null?void 0:o.colors)==null?void 0:g.buttonBackground,customBackgroundColor:(P=o==null?void 0:o.colors)==null?void 0:P.background})}),t("p",{className:s("text-base font-normal mt-4 mb-1 text-center text-cm-text-primary"),style:{color:(c=o==null?void 0:o.colors)==null?void 0:c.textPrimary},children:"Check your email"}),d("p",{className:s("text-center text-cm-text-secondary px-4"),style:{color:(k=o==null?void 0:o.colors)==null?void 0:k.textSecondary},children:["A temporary login code has been sent to ",D]}),t("div",{className:s("py-8"),children:t(G,{maxLength:9,value:n,onChange:l=>{j(l),i(!1),r(null)},onComplete:J,disabled:z,customStyles:{accent:(b=(v=o==null?void 0:o.colors)==null?void 0:v.accent)!=null?b:"#04AA6D",danger:(h=(T=o==null?void 0:o.colors)==null?void 0:T.danger)!=null?h:"#f44336",border:(C=(O=o==null?void 0:o.colors)==null?void 0:O.border)!=null?C:"#E5E7EB",textPrimary:(I=(E=o==null?void 0:o.colors)==null?void 0:E.textPrimary)!=null?I:"#909ca3",buttonBackground:(e=(B=o==null?void 0:o.colors)==null?void 0:B.buttonBackground)!=null?e:"#eff6ff",inputBackground:(S=(N=o==null?void 0:o.colors)==null?void 0:N.inputBackground)!=null?S:"#FFFFFF",borderRadius:o==null?void 0:o.borderRadius},children:t(L,{children:Array.from({length:9}).map((l,F)=>t(H,{index:F,hasError:q,className:s("max-sm:w-7 max-sm:h-11 max-sm:text-xl max-sm:mx-0 sm:h-12 sm:w-9")},F))})})}),x&&t("div",{className:s("text-sm text-red-500 mb-4"),children:x}),t("div",{className:s("text-xs leading-tight text-cm-text-secondary text-center"),children:d("span",{style:{color:(w=o==null?void 0:o.colors)==null?void 0:w.textSecondary},children:["Can't find the email? Check spam folder.",`
2
- `,"Some emails may take several minutes to arrive."]})}),u&&t(R,{initialSeconds:60,appearance:o,countdownText:l=>`Re-send code in ${l}s`,countdownCompleteText:"Re-send code",handleOnClick:u})]})}export{Z as a};
@@ -1 +0,0 @@
1
- import{a as o}from"./chunk-UILJI3DM.js";import{a as n,b as s}from"./chunk-PXDN3KFO.js";import{twind as d,cssom as l,virtual as r}from"@twind/core";if(typeof document!="undefined"){let e=document.querySelector("style[data-crossmint-layers]");e||(e=document.createElement("style"),e.setAttribute("data-crossmint-layers",""),e.textContent="@layer base, client, crossmint;",document.head.insertBefore(e,document.head.firstChild))}var t;if(typeof document=="undefined")t=r();else{let e=document.querySelector("style[data-crossmint-sdk]");e||(e=document.createElement("style"),e.setAttribute("data-crossmint-sdk",""),document.head.appendChild(e)),t=l(e)}var i=s(n({},o),{hash:e=>`cm-${e}`}),y=d(i,t);export{y as a};
@@ -1 +0,0 @@
1
- import{a as u}from"./chunk-WK7PY5WL.js";import{a as n}from"./chunk-RWWMM4HD.js";import{a as b}from"./chunk-VWL76U5G.js";import{a as c}from"./chunk-VLDE23JX.js";import{a as t}from"./chunk-ZNDVEP3D.js";import{jsx as r,jsxs as h}from"react/jsx-runtime";function k(){var l,s,e,i,m;let{step:x,appearance:o,setStep:d,setError:f}=u();return x!=="initial"?null:h("button",{className:n("relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center","transition-colors duration-200 ease-in-out","hover:bg-cm-hover focus:bg-cm-hover outline-none"),style:{borderRadius:o==null?void 0:o.borderRadius,borderColor:(l=o==null?void 0:o.colors)==null?void 0:l.border,backgroundColor:(s=o==null?void 0:o.colors)==null?void 0:s.buttonBackground},onClick:()=>{d("web3"),f(null)},children:[r(b,{className:t("h-[21px] w-[21px] absolute left-[20px]"),style:{color:(e=o==null?void 0:o.colors)==null?void 0:e.textPrimary}}),r("span",{className:t("font-medium"),style:{margin:"0px 32px",color:(i=o==null?void 0:o.colors)==null?void 0:i.textPrimary},children:"Continue with a wallet"}),r(c,{className:t("h-[21px] w-[21px] absolute right-[20px]"),style:{color:(m=o==null?void 0:o.colors)==null?void 0:m.textSecondary}}),r("span",{className:t("sr-only"),children:"Continue with a wallet"})]})}export{k as a};
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkF2PJZF7Hcjs = require('./chunk-F2PJZF7H.cjs');var _chunk34ULQ2PWcjs = require('./chunk-34ULQ2PW.cjs');var _chunkE4DYZZKZcjs = require('./chunk-E4DYZZKZ.cjs');var _chunkONU6TI5Wcjs = require('./chunk-ONU6TI5W.cjs');var _chunk6BFWRGAScjs = require('./chunk-6BFWRGAS.cjs');var _chunk2WSEHVNPcjs = require('./chunk-2WSEHVNP.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');function Y({phone:_,onSubmitOTP:M,onResendCode:u,appearance:o}){var g,y,P,h,c,v,k,b,T,e,O,C,I,S,B,E,N,w;let[n,$]=_react.useState.call(void 0, ""),[j,i]=_react.useState.call(void 0, !1),[q,x]=_react.useState.call(void 0, !1),[f,r]=_react.useState.call(void 0, null),z=()=>_chunk2WSEHVNPcjs.d.call(void 0, this,null,function*(){x(!0);try{yield M(n),i(!1),r(null)}catch(l){console.error("Error confirming recovery key OTP",l),r("Invalid code. Please try again."),i(!0)}finally{x(!1)}});return _jsxruntime.jsxs.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "flex flex-col items-center justify-start w-full"),children:[_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "relative left-3"),children:_jsxruntime.jsx.call(void 0, _chunk34ULQ2PWcjs.a,{customAccentColor:(g=o==null?void 0:o.colors)==null?void 0:g.accent,customButtonBackgroundColor:(y=o==null?void 0:o.colors)==null?void 0:y.buttonBackground,customBackgroundColor:(P=o==null?void 0:o.colors)==null?void 0:P.background})}),_jsxruntime.jsx.call(void 0, "p",{className:_chunk6BFWRGAScjs.a.call(void 0, "text-base font-normal mt-4 mb-1 text-center text-cm-text-primary"),style:{color:(h=o==null?void 0:o.colors)==null?void 0:h.textPrimary},children:"Check your phone"}),_jsxruntime.jsxs.call(void 0, "p",{className:_chunk6BFWRGAScjs.a.call(void 0, "text-center text-cm-text-secondary px-4"),style:{color:(c=o==null?void 0:o.colors)==null?void 0:c.textSecondary},children:["A temporary login code has been sent to ",_]}),_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "py-8"),children:_jsxruntime.jsx.call(void 0, _chunkE4DYZZKZcjs.a,{maxLength:9,value:n,onChange:l=>{$(l),i(!1),r(null)},onComplete:z,disabled:q,customStyles:{accent:(k=(v=o==null?void 0:o.colors)==null?void 0:v.accent)!=null?k:"#04AA6D",danger:(T=(b=o==null?void 0:o.colors)==null?void 0:b.danger)!=null?T:"#f44336",border:(O=(e=o==null?void 0:o.colors)==null?void 0:e.border)!=null?O:"#E5E7EB",textPrimary:(I=(C=o==null?void 0:o.colors)==null?void 0:C.textPrimary)!=null?I:"#909ca3",buttonBackground:(B=(S=o==null?void 0:o.colors)==null?void 0:S.buttonBackground)!=null?B:"#eff6ff",inputBackground:(N=(E=o==null?void 0:o.colors)==null?void 0:E.inputBackground)!=null?N:"#FFFFFF",borderRadius:o==null?void 0:o.borderRadius},children:_jsxruntime.jsx.call(void 0, _chunkE4DYZZKZcjs.b,{children:Array.from({length:9}).map((l,F)=>_jsxruntime.jsx.call(void 0, _chunkE4DYZZKZcjs.c,{index:F,hasError:j,className:_chunk6BFWRGAScjs.a.call(void 0, "max-sm:w-7 max-sm:h-11 max-sm:text-xl max-sm:mx-0 h-12 w-9")},F))})})}),f&&_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "text-sm text-red-500 mb-4"),children:f}),_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "text-xs leading-tight text-cm-text-secondary text-center"),children:_jsxruntime.jsxs.call(void 0, "span",{style:{color:(w=o==null?void 0:o.colors)==null?void 0:w.textSecondary},children:["Didn't receive the SMS? Check your signal.",`
2
- `,"Some messages may take several minutes to arrive."]})}),u&&_jsxruntime.jsx.call(void 0, _chunkONU6TI5Wcjs.a,{initialSeconds:60,appearance:o,countdownText:l=>`Re-send code in ${l}s`,countdownCompleteText:"Re-send code",handleOnClick:u})]})}exports.a = Y;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk7YO3UHARcjs = require('../../../../chunk-7YO3UHAR.cjs');var _chunk4EQ23ZKCcjs = require('../../../../chunk-4EQ23ZKC.cjs');require('../../../../chunk-FQ246XXN.cjs');var _chunk6BFWRGAScjs = require('../../../../chunk-6BFWRGAS.cjs');require('../../../../chunk-PZUWRGVP.cjs');require('../../../../chunk-2WSEHVNP.cjs');var _jsxruntime = require('react/jsx-runtime');function k({icon:e,appearance:o,isLoading:m,onConnectClick:n,headingText:g,buttonText:c}){var l,i,r,d,u,x;return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsxs.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "flex flex-col items-center text-center mt-8 mb-4 gap-2"),children:[_jsxruntime.jsx.call(void 0, "img",{src:e,alt:"metamask",className:_chunk6BFWRGAScjs.a.call(void 0, "h-[74px] w-[74px]")}),_jsxruntime.jsx.call(void 0, "h3",{className:_chunk6BFWRGAScjs.a.call(void 0, "text-lg font-semibold text-cm-text-primary"),style:{color:(l=o==null?void 0:o.colors)==null?void 0:l.textPrimary},children:g}),_jsxruntime.jsx.call(void 0, "p",{className:_chunk6BFWRGAScjs.a.call(void 0, "text-base font-normal text-cm-text-primary"),style:{color:(i=o==null?void 0:o.colors)==null?void 0:i.textPrimary},children:"Don\u2019t see your wallet? Check your other browser windows."})]}),_jsxruntime.jsx.call(void 0, "button",{className:_chunk4EQ23ZKCcjs.a.call(void 0, "relative flex text-base p-4 bg-cm-muted-primary text-cm-text-primary items-center w-full rounded-xl justify-center","transition-colors duration-200 ease-in-out","hover:bg-cm-hover focus:bg-cm-hover outline-none",m?"cursor-not-allowed bg-cm-muted-primary":""),style:{borderRadius:o==null?void 0:o.borderRadius,borderColor:(r=o==null?void 0:o.colors)==null?void 0:r.border,backgroundColor:(d=o==null?void 0:o.colors)==null?void 0:d.buttonBackground},onClick:m?void 0:n,children:_jsxruntime.jsx.call(void 0, "span",{className:_chunk6BFWRGAScjs.a.call(void 0, "font-medium"),style:{color:(u=o==null?void 0:o.colors)==null?void 0:u.textPrimary},children:c})}),_jsxruntime.jsx.call(void 0, "div",{className:_chunk6BFWRGAScjs.a.call(void 0, "flex justify-center pt-4"),children:_jsxruntime.jsx.call(void 0, _chunk7YO3UHARcjs.a,{color:(x=o==null?void 0:o.colors)==null?void 0:x.textSecondary})})]})}exports.Web3Connector = k;
@@ -1,13 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { UIConfig } from '@crossmint/common-sdk-base';
3
-
4
- declare function Web3Connector({ icon, appearance, isLoading, onConnectClick, headingText, buttonText, }: {
5
- icon: string;
6
- appearance?: UIConfig;
7
- isLoading: boolean;
8
- onConnectClick: () => void;
9
- headingText: string;
10
- buttonText: string;
11
- }): react_jsx_runtime.JSX.Element;
12
-
13
- export { Web3Connector };