@dcl/landing-site 0.0.1-23658271418.commit-55950e4 → 0.0.1-23658354807.commit-e695ac8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{AnimatedBackground-DjTbg3lB.js → AnimatedBackground-BH_AjnqQ.js} +2 -2
- package/assets/AnimatedBackground-BH_AjnqQ.js.map +1 -0
- package/assets/{CardMedia-DPd6crqS.js → CardMedia-CNDmKGwk.js} +1 -1
- package/assets/CardMedia-CNDmKGwk.js.map +1 -0
- package/assets/{FooterLanding-DzRfBY7B.js → FooterLanding-DYzI4pPY.js} +1 -1
- package/assets/FooterLanding-DYzI4pPY.js.map +1 -0
- package/assets/{LegalPageLayout-Cv_01wZU.js → LegalPageLayout-Bmx2f7dQ.js} +1 -1
- package/assets/LegalPageLayout-Bmx2f7dQ.js.map +1 -0
- package/assets/{SignInRedirect-CntxDhUL.js → SignInRedirect-DFPVUUVg.js} +1 -1
- package/assets/SignInRedirect-DFPVUUVg.js.map +1 -0
- package/assets/{WearablePreview-DwVz_FB_.js → WearablePreview-COzbSxYN.js} +1 -1
- package/assets/WearablePreview-COzbSxYN.js.map +1 -0
- package/assets/{add-B4jsaJiG.js → add-BczYlCv5.js} +1 -1
- package/assets/add-BczYlCv5.js.map +1 -0
- package/assets/{all-wallets-B0xJavJM.js → all-wallets-WtFue3fI.js} +1 -1
- package/assets/all-wallets-WtFue3fI.js.map +1 -0
- package/assets/{app-store-BnkGzn9j.js → app-store-BxZb_1M8.js} +1 -1
- package/assets/app-store-BxZb_1M8.js.map +1 -0
- package/assets/{apple-Dt-hKXxP.js → apple-CjT7RbME.js} +1 -1
- package/assets/apple-CjT7RbME.js.map +1 -0
- package/assets/{arrow-bottom-D_1FtmYB.js → arrow-bottom-4FmcypJQ.js} +1 -1
- package/assets/arrow-bottom-4FmcypJQ.js.map +1 -0
- package/assets/{arrow-bottom-circle-8Y6EKFEA.js → arrow-bottom-circle-CXsF2I3S.js} +1 -1
- package/assets/arrow-bottom-circle-CXsF2I3S.js.map +1 -0
- package/assets/{arrow-left-C1rRfG55.js → arrow-left-BImXYn6U.js} +1 -1
- package/assets/arrow-left-BImXYn6U.js.map +1 -0
- package/assets/{arrow-right-CQVu09Kc.js → arrow-right-CHJc4WzS.js} +1 -1
- package/assets/arrow-right-CHJc4WzS.js.map +1 -0
- package/assets/{arrow-top-CtO0cXme.js → arrow-top-DovjH58u.js} +1 -1
- package/assets/arrow-top-DovjH58u.js.map +1 -0
- package/assets/{auto-track-DdBDovso.js → auto-track-LCtrzvEp.js} +1 -1
- package/assets/auto-track-LCtrzvEp.js.map +1 -0
- package/assets/{autoplay-DX0fQZwW.js → autoplay-qioRTSgW.js} +1 -1
- package/assets/autoplay-qioRTSgW.js.map +1 -0
- package/assets/{bank-CGelAjcP.js → bank-r0C0_RGk.js} +1 -1
- package/assets/bank-r0C0_RGk.js.map +1 -0
- package/assets/{basic-BUcqv-9A.js → basic-DoZtdADf.js} +1 -1
- package/assets/basic-DoZtdADf.js.map +1 -0
- package/assets/{browser-BaMgj_tU.js → browser-CLFSxwU_.js} +1 -1
- package/assets/browser-CLFSxwU_.js.map +1 -0
- package/assets/{card-CVmdLwW-.js → card-gjAbVNVg.js} +1 -1
- package/assets/card-gjAbVNVg.js.map +1 -0
- package/assets/{ccip-Dzh445et.js → ccip-Cs2-8_ok.js} +1 -1
- package/assets/ccip-Cs2-8_ok.js.map +1 -0
- package/assets/{checkmark-slbrG2M6.js → checkmark-CgyA8OA7.js} +1 -1
- package/assets/checkmark-CgyA8OA7.js.map +1 -0
- package/assets/{checkmark-bold-027dh59y.js → checkmark-bold-CDzonXTF.js} +1 -1
- package/assets/checkmark-bold-CDzonXTF.js.map +1 -0
- package/assets/{chevron-bottom-C0oXz4yN.js → chevron-bottom-C5LFXYR3.js} +1 -1
- package/assets/chevron-bottom-C5LFXYR3.js.map +1 -0
- package/assets/{chevron-left-CCPegMq9.js → chevron-left-Dl_DSL09.js} +1 -1
- package/assets/chevron-left-Dl_DSL09.js.map +1 -0
- package/assets/{chevron-right-DgJngoVt.js → chevron-right-B2iMupDM.js} +1 -1
- package/assets/chevron-right-B2iMupDM.js.map +1 -0
- package/assets/{chevron-top-DoCS1rOx.js → chevron-top-BRQrglLx.js} +1 -1
- package/assets/chevron-top-BRQrglLx.js.map +1 -0
- package/assets/{chrome-store-u1FpBtnZ.js → chrome-store-j0QHcvz5.js} +1 -1
- package/assets/chrome-store-j0QHcvz5.js.map +1 -0
- package/assets/{clock-pLaYpy5d.js → clock-DnqFpliA.js} +1 -1
- package/assets/clock-DnqFpliA.js.map +1 -0
- package/assets/{close-DHPX5oA_.js → close-BW8HM0vc.js} +1 -1
- package/assets/close-BW8HM0vc.js.map +1 -0
- package/assets/{coinPlaceholder-Dx8Uv9j2.js → coinPlaceholder-D3Q_2Vnz.js} +1 -1
- package/assets/coinPlaceholder-D3Q_2Vnz.js.map +1 -0
- package/assets/{compass-D8J8TTEL.js → compass-DQtQh5Fd.js} +1 -1
- package/assets/compass-DQtQh5Fd.js.map +1 -0
- package/assets/{copy-C-u2pORS.js → copy-BqPAHBIq.js} +1 -1
- package/assets/copy-BqPAHBIq.js.map +1 -0
- package/assets/{core-tBw6H_H6.js → core-DoE4v7_w.js} +5 -5
- package/assets/core-DoE4v7_w.js.map +1 -0
- package/assets/cursor-D7QROIqC.js +3 -0
- package/assets/cursor-D7QROIqC.js.map +1 -0
- package/assets/{cursor-transparent-DKgGKom3.js → cursor-transparent-I9qD1HcU.js} +1 -1
- package/assets/cursor-transparent-I9qD1HcU.js.map +1 -0
- package/assets/{desktop-BTp9bGaX.js → desktop-D06CYck7.js} +1 -1
- package/assets/desktop-D06CYck7.js.map +1 -0
- package/assets/{disconnect-F0cLSiJn.js → disconnect-DuECek4L.js} +1 -1
- package/assets/disconnect-DuECek4L.js.map +1 -0
- package/assets/{discord-lmmb-3eI.js → discord-BXYIhoDM.js} +1 -1
- package/assets/discord-BXYIhoDM.js.map +1 -0
- package/assets/download-CLQcQusq.js +2 -0
- package/assets/download-CLQcQusq.js.map +1 -0
- package/assets/{download.types-zCC7pB2n.js → download.types-DXNjUuQp.js} +1 -1
- package/assets/download.types-DXNjUuQp.js.map +1 -0
- package/assets/{etherscan-B9T6tSJ2.js → etherscan-D8j2p5tH.js} +1 -1
- package/assets/etherscan-D8j2p5tH.js.map +1 -0
- package/assets/{exclamation-triangle-o7D-7NAH.js → exclamation-triangle-BDd_YSmu.js} +1 -1
- package/assets/exclamation-triangle-BDd_YSmu.js.map +1 -0
- package/assets/{extension-DFDPdCJk.js → extension-cnEqQ1yY.js} +1 -1
- package/assets/extension-cnEqQ1yY.js.map +1 -0
- package/assets/{external-link-nPQ0TYKB.js → external-link-CmFlcl7Y.js} +1 -1
- package/assets/external-link-CmFlcl7Y.js.map +1 -0
- package/assets/{facebook-ClfLHU9U.js → facebook-BGz9ceDp.js} +1 -1
- package/assets/facebook-BGz9ceDp.js.map +1 -0
- package/assets/{farcaster-BN5zoAse.js → farcaster-D4EbInUC.js} +1 -1
- package/assets/farcaster-D4EbInUC.js.map +1 -0
- package/assets/{filters-Ci683aAe.js → filters-U9zWe-dv.js} +1 -1
- package/assets/filters-U9zWe-dv.js.map +1 -0
- package/assets/{github-5F-kTGz-.js → github-BwnJ4_Tw.js} +1 -1
- package/assets/github-BwnJ4_Tw.js.map +1 -0
- package/assets/{google-BLid5z0a.js → google-DFdfOlYV.js} +1 -1
- package/assets/google-DFdfOlYV.js.map +1 -0
- package/assets/{help-circle-BiDgoBH5.js → help-circle-ClDPGCNM.js} +1 -1
- package/assets/help-circle-ClDPGCNM.js.map +1 -0
- package/assets/hooks.module-Dz_XB4AG.js.map +1 -0
- package/assets/{id-DmzU1jGX.js → id-CVEEV5P3.js} +1 -1
- package/assets/id-CVEEV5P3.js.map +1 -0
- package/assets/{image-BH2NCRJ_.js → image-B4kHWRvO.js} +1 -1
- package/assets/image-B4kHWRvO.js.map +1 -0
- package/assets/{index-2IySpHM8.js → index-BIiKvkqH.js} +2 -2
- package/assets/index-BIiKvkqH.js.map +1 -0
- package/assets/{index-DG7ZaM-_.js → index-BSKH1f4F.js} +1 -1
- package/assets/index-BSKH1f4F.js.map +1 -0
- package/assets/{index-BEK80z5O.js → index-BwFdAxy9.js} +1 -1
- package/assets/index-BwFdAxy9.js.map +1 -0
- package/assets/{index-BZpwsFhG.js → index-C58cz8c7.js} +1 -1
- package/assets/index-C58cz8c7.js.map +1 -0
- package/assets/{index-CiD97UP6.js → index-C8fM_5WQ.js} +1 -1
- package/assets/index-C8fM_5WQ.js.map +1 -0
- package/assets/{index-BukBIEzf.js → index-CCv7WeLP.js} +1 -1
- package/assets/index-CCv7WeLP.js.map +1 -0
- package/assets/{index-BUc9_xXD.js → index-CEajtogo.js} +1 -1
- package/assets/index-CEajtogo.js.map +1 -0
- package/assets/{index-3afrxfQF.js → index-CGCvheGi.js} +26 -26
- package/assets/index-CGCvheGi.js.map +1 -0
- package/assets/{index-DAWQv-Zo.js → index-CP1V7_io.js} +1 -1
- package/assets/index-CP1V7_io.js.map +1 -0
- package/assets/{index-COMOmzxN.js → index-CkUgOBuZ.js} +2 -2
- package/assets/index-CkUgOBuZ.js.map +1 -0
- package/assets/{index-eHvYR4YL.js → index-Co5o4kNC.js} +2 -2
- package/assets/index-Co5o4kNC.js.map +1 -0
- package/assets/{index-BL0z8mEm.js → index-CvF9Rb56.js} +1 -1
- package/assets/index-CvF9Rb56.js.map +1 -0
- package/assets/{index-BWevcVcm.js → index-D6KjV6p4.js} +3 -3
- package/assets/index-D6KjV6p4.js.map +1 -0
- package/assets/index-D6ZMQedT.js.map +1 -0
- package/assets/{index-BMgBTF9O.js → index-D6_yiqF_.js} +3 -3
- package/assets/index-D6_yiqF_.js.map +1 -0
- package/assets/{index-D4PWHQbt.js → index-DB4KxUK8.js} +1 -1
- package/assets/index-DB4KxUK8.js.map +1 -0
- package/assets/{index-PhA1HZBb.js → index-DLbfpB_l.js} +3 -3
- package/assets/index-DLbfpB_l.js.map +1 -0
- package/assets/{index-DLFeL_Zq.js → index-DTEP60Z7.js} +1 -1
- package/assets/index-DTEP60Z7.js.map +1 -0
- package/assets/{index-Cngq7-NF.js → index-DiFn-Ues.js} +1 -1
- package/assets/index-DiFn-Ues.js.map +1 -0
- package/assets/{index-Bg50LMpe.js → index-DkC82Qq3.js} +1 -1
- package/assets/index-DkC82Qq3.js.map +1 -0
- package/assets/{index-BRGfg-Ph.js → index-DoJrsvqV.js} +1 -1
- package/assets/index-DoJrsvqV.js.map +1 -0
- package/assets/index-Dr1-NFn7.js +1 -0
- package/assets/index-Dr1-NFn7.js.map +1 -0
- package/assets/{index-CS5rslOE.js → index-DrYqW_mc.js} +1 -1
- package/assets/index-DrYqW_mc.js.map +1 -0
- package/assets/{index-jx_zjJdc.js → index-Kl9lqIhB.js} +1 -1
- package/assets/index-Kl9lqIhB.js.map +1 -0
- package/assets/{index-B-tM6dsp.js → index-Pv7TzXSf.js} +1 -1
- package/assets/index-Pv7TzXSf.js.map +1 -0
- package/assets/{index-DSFoU4yA.js → index-cY16fPJ9.js} +1 -1
- package/assets/index-cY16fPJ9.js.map +1 -0
- package/assets/{index-DbLIlTKR.js → index-jmVkAn3V.js} +3 -3
- package/assets/index-jmVkAn3V.js.map +1 -0
- package/assets/{index-r9Fq7C1D.js → index-jopxsqnB.js} +1 -1
- package/assets/index-jopxsqnB.js.map +1 -0
- package/assets/index-nibyPLVP.js.map +1 -0
- package/assets/{index-CLiUrWcz.js → index-wKfm7r6L.js} +1 -1
- package/assets/index-wKfm7r6L.js.map +1 -0
- package/assets/{index.es-D1uGumch.js → index.es-D_KVLw0o.js} +8 -8
- package/assets/index.es-D_KVLw0o.js.map +1 -0
- package/assets/{index.umd-Coe1GgTm.js → index.umd-CSluEYtT.js} +1 -1
- package/assets/index.umd-CSluEYtT.js.map +1 -0
- package/assets/{info-CzIGoN3u.js → info-D5-ExUNI.js} +1 -1
- package/assets/info-D5-ExUNI.js.map +1 -0
- package/assets/{info-circle-Y1R3Iq3w.js → info-circle-C2XtIwRV.js} +1 -1
- package/assets/info-circle-C2XtIwRV.js.map +1 -0
- package/assets/inherits_browser-BlmhoU4v.js.map +1 -0
- package/assets/is-plan-event-enabled-DeNtQvA5.js.map +1 -0
- package/assets/{lightbulb-ZuYGuGv9.js → lightbulb-EP-k9p0L.js} +1 -1
- package/assets/lightbulb-EP-k9p0L.js.map +1 -0
- package/assets/{mail-C72u44lM.js → mail-CYWDw7sT.js} +1 -1
- package/assets/mail-CYWDw7sT.js.map +1 -0
- package/assets/{mobile-Ddb2bqGA.js → mobile-LnBG5WdG.js} +1 -1
- package/assets/mobile-LnBG5WdG.js.map +1 -0
- package/assets/{more-442IqR2Y.js → more-CUlRnsdE.js} +1 -1
- package/assets/more-CUlRnsdE.js.map +1 -0
- package/assets/{network-placeholder-DLiGK2eA.js → network-placeholder-DEFOwyXG.js} +1 -1
- package/assets/network-placeholder-DEFOwyXG.js.map +1 -0
- package/assets/{nftPlaceholder-CuMvFL6u.js → nftPlaceholder-y8-2SfHh.js} +1 -1
- package/assets/nftPlaceholder-y8-2SfHh.js.map +1 -0
- package/assets/{node-ClbHYUCe.js → node-BquF0ZoL.js} +1 -1
- package/assets/node-BquF0ZoL.js.map +1 -0
- package/assets/{off-CJRThnA5.js → off-Bmg2DJVN.js} +1 -1
- package/assets/off-Bmg2DJVN.js.map +1 -0
- package/assets/{play-store-BFvzqeV-.js → play-store-BgYnKJZm.js} +1 -1
- package/assets/play-store-BgYnKJZm.js.map +1 -0
- package/assets/{plus-CIXICgoG.js → plus-Bj7Zr4nz.js} +1 -1
- package/assets/plus-Bj7Zr4nz.js.map +1 -0
- package/assets/{qr-code-sQMttLAd.js → qr-code-Dje5z7AJ.js} +1 -1
- package/assets/qr-code-Dje5z7AJ.js.map +1 -0
- package/assets/{recycle-horizontal-CAqYTJP5.js → recycle-horizontal-L5-CFvVu.js} +1 -1
- package/assets/recycle-horizontal-L5-CFvVu.js.map +1 -0
- package/assets/{refresh-De-Et1Js.js → refresh-B5s1b5Xw.js} +1 -1
- package/assets/refresh-B5s1b5Xw.js.map +1 -0
- package/assets/{reown-logo-DJ9mj4y_.js → reown-logo-CLdobzFm.js} +1 -1
- package/assets/reown-logo-CLdobzFm.js.map +1 -0
- package/assets/{search-CG71tCNk.js → search-Bqfcdrxi.js} +1 -1
- package/assets/search-Bqfcdrxi.js.map +1 -0
- package/assets/{secp256k1-BrVbi7UE.js → secp256k1-C5qQ4FUv.js} +1 -1
- package/assets/secp256k1-C5qQ4FUv.js.map +1 -0
- package/assets/{secp256k1-qyTzOp54.js → secp256k1-D6M1nsfk.js} +1 -1
- package/assets/secp256k1-D6M1nsfk.js.map +1 -0
- package/assets/{send-D5wPtnWi.js → send-DrmO9HIL.js} +1 -1
- package/assets/send-DrmO9HIL.js.map +1 -0
- package/assets/{swapHorizontal-YL59jCLG.js → swapHorizontal-DSVKSSNs.js} +1 -1
- package/assets/swapHorizontal-DSVKSSNs.js.map +1 -0
- package/assets/{swapHorizontalBold-x_ClW-X1.js → swapHorizontalBold-ozFPFMxq.js} +1 -1
- package/assets/swapHorizontalBold-ozFPFMxq.js.map +1 -0
- package/assets/{swapHorizontalMedium-Bq9lNngB.js → swapHorizontalMedium-2AClXKVW.js} +1 -1
- package/assets/swapHorizontalMedium-2AClXKVW.js.map +1 -0
- package/assets/{swapHorizontalRoundedBold-B7G_hDWR.js → swapHorizontalRoundedBold-Dw--6duE.js} +1 -1
- package/assets/swapHorizontalRoundedBold-Dw--6duE.js.map +1 -0
- package/assets/{swapVertical-CCBCcs3O.js → swapVertical-CxFnK1UF.js} +1 -1
- package/assets/swapVertical-CxFnK1UF.js.map +1 -0
- package/assets/{swiper-react-BZX76rgI.js → swiper-react-CrLD22Xk.js} +1 -1
- package/assets/swiper-react-CrLD22Xk.js.map +1 -0
- package/assets/{telegram-jO5JXSDR.js → telegram-BmVZEQYk.js} +1 -1
- package/assets/telegram-BmVZEQYk.js.map +1 -0
- package/assets/{three-dots-BpBxdy5x.js → three-dots-BK6yc88b.js} +1 -1
- package/assets/three-dots-BK6yc88b.js.map +1 -0
- package/assets/{twitch-ECnZUMvn.js → twitch-CvA0WDHq.js} +1 -1
- package/assets/twitch-CvA0WDHq.js.map +1 -0
- package/assets/{twitterIcon-DznjUGKi.js → twitterIcon-DYKNw1tz.js} +1 -1
- package/assets/twitterIcon-DYKNw1tz.js.map +1 -0
- package/assets/{useFormatMessage-DckiG68j.js → useFormatMessage-BfWgOhEa.js} +1 -1
- package/assets/useFormatMessage-BfWgOhEa.js.map +1 -0
- package/assets/{verify-Cysb4M62.js → verify-eu0Y2qM8.js} +1 -1
- package/assets/verify-eu0Y2qM8.js.map +1 -0
- package/assets/{verify-filled-UfaLi1Ih.js → verify-filled-C_stgx5w.js} +1 -1
- package/assets/verify-filled-C_stgx5w.js.map +1 -0
- package/assets/{w3m-modal-DRpEKZLS.js → w3m-modal-CH0h68TV.js} +1 -1
- package/assets/w3m-modal-CH0h68TV.js.map +1 -0
- package/assets/{wallet-bfpUlHjU.js → wallet-Dx1z19Ro.js} +1 -1
- package/assets/wallet-Dx1z19Ro.js.map +1 -0
- package/assets/{wallet-placeholder-Kx2OQbbi.js → wallet-placeholder-C4ASa1lL.js} +1 -1
- package/assets/wallet-placeholder-C4ASa1lL.js.map +1 -0
- package/assets/{walletconnect-Oijhsx9e.js → walletconnect-b3lQy-21.js} +1 -1
- package/assets/walletconnect-b3lQy-21.js.map +1 -0
- package/assets/{warning-circle-M3P83hNu.js → warning-circle-Byr0mazD.js} +1 -1
- package/assets/warning-circle-Byr0mazD.js.map +1 -0
- package/assets/{x-BRkRjbp5.js → x-BT7bQigU.js} +1 -1
- package/assets/x-BT7bQigU.js.map +1 -0
- package/index.html +2 -2
- package/package.json +3 -3
- package/robots.txt +4 -0
- package/assets/cursor-CvllY2VP.js +0 -3
- package/assets/download-PGHgkkk1.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as _,j as m}from"./index-BEK80z5O.js";import"./index-3afrxfQF.js";var p=(e=>(e.Start="magic_oauth_login_with_redirect_start",e.Verify="magic_oauth_login_with_redirect_verify",e.Popup="magic_oauth_login_with_popup",e.VerifyTelegramData="magic_oauth_verify_telegram_data",e))(p||{}),u=(e=>(e.InvalidRequest="invalid_request",e.InvalidClient="invalid_client",e.InvalidScope="invalid_scope",e.InvalidGrant="invalid_grant",e.UnauthorizedClient="unauthorized_client",e.UnsupportedResponseType="unsupported_response_type",e.UnsupportedGrantType="unsupported_grant_type",e.UnsupportedTokenType="unsupported_token_type",e.AccessDenied="access_denied",e.ServerError="server_error",e.TemporarilyUnavailable="temporarily_unavailable",e))(u||{}),g=(e=>(e.MissingApiKey="MISSING_API_KEY",e.ModalNotReady="MODAL_NOT_READY",e.ConnectionLost="CONNECTION_WAS_LOST",e.MalformedResponse="MALFORMED_RESPONSE",e.InvalidArgument="INVALID_ARGUMENT",e.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",e.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",e))(g||{}),h=(e=>(e.SyncWeb3Method="SYNC_WEB3_METHOD",e.DuplicateIframe="DUPLICATE_IFRAME",e.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",e.DeprecationNotice="DEPRECATION_NOTICE",e.ProductAnnouncement="ANNOUNCEMENT",e))(h||{}),E=(e=>(e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",e[e.MagicLinkExpired=-10001]="MagicLinkExpired",e[e.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",e[e.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",e[e.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",e[e.UpdateEmailFailed=-10004]="UpdateEmailFailed",e[e.UserRequestEditEmail=-10005]="UserRequestEditEmail",e[e.InactiveRecipient=-10010]="InactiveRecipient",e[e.AccessDeniedToUser=-10011]="AccessDeniedToUser",e[e.RedirectLoginComplete=-10015]="RedirectLoginComplete",e[e.DpopInvalidated=-10019]="DpopInvalidated",e))(E||{}),v=(e=>(e.PROVIDER="magic_3pw_provider",e.ADDRESS="magic_3pw_address",e.CHAIN_ID="magic_3pw_chainId",e))(v||{}),y=(e=>(e.WalletConnected="wallet_connected",e.WalletRejected="wallet_rejected",e.Web3ModalSelected="web3modal_selected",e))(y||{}),I=(e=>(e.LoginWithSms="magic_auth_login_with_sms",e.LoginWithEmailOTP="magic_auth_login_with_email_otp",e.LoginWithMagicLink="magic_auth_login_with_magic_link",e.LoginWithCredential="magic_auth_login_with_credential",e.SetAuthorizationToken="magic_auth_set_authorization_token",e.GetIdToken="magic_auth_get_id_token",e.GenerateIdToken="magic_auth_generate_id_token",e.GetMetadata="magic_auth_get_metadata",e.IsLoggedIn="magic_is_logged_in",e.Logout="magic_auth_logout",e.UpdateEmail="magic_auth_update_email",e.UserSettings="magic_auth_settings",e.UserSettingsTestMode="magic_auth_settings_testing_mode",e.LoginWithSmsTestMode="magic_auth_login_with_sms_testing_mode",e.LoginWithEmailOTPTestMode="magic_auth_login_with_email_otp_testing_mode",e.LoginWithMagicLinkTestMode="magic_login_with_magic_link_testing_mode",e.LoginWithCredentialTestMode="magic_auth_login_with_credential_testing_mode",e.GetIdTokenTestMode="magic_auth_get_id_token_testing_mode",e.GenerateIdTokenTestMode="magic_auth_generate_id_token_testing_mode",e.GetMetadataTestMode="magic_auth_get_metadata_testing_mode",e.IsLoggedInTestMode="magic_auth_is_logged_in_testing_mode",e.LogoutTestMode="magic_auth_logout_testing_mode",e.UpdateEmailTestMode="magic_auth_update_email_testing_mode",e.IntermediaryEvent="magic_intermediary_event",e.RequestAccounts="eth_requestAccounts",e.GetInfo="magic_get_info",e.ShowUI="magic_wallet",e.NFTPurchase="magic_nft_purchase",e.NFTCheckout="magic_nft_checkout",e.NFTTransfer="magic_nft_transfer",e.RequestUserInfoWithUI="mc_request_user_info",e.Disconnect="mc_disconnect",e.RecoverAccount="magic_auth_recover_account",e.RecoverAccountTestMode="magic_auth_recover_account_testing_mode",e.MagicBoxHeartBeat="magic_box_heart_beat",e.AutoConnect="mc_auto_connect",e.Login="mc_login",e.EncryptV1="magic_auth_encrypt_v1",e.DecryptV1="magic_auth_decrypt_v1",e.ShowNFTs="magic_show_nfts",e.ShowOnRamp="magic_show_fiat_onramp",e.ShowSendTokensUI="magic_show_send_tokens_ui",e.ShowAddress="magic_show_address",e.ShowBalances="magic_show_balances",e.SendGaslessTransaction="eth_sendGaslessTransaction",e.RevealPK="magic_reveal_key",e.EnableMFA="magic_auth_enable_mfa_flow",e.DisableMFA="magic_auth_disable_mfa_flow",e.GetMultichainPublicAddress="magic_get_multichain_public_address",e))(I||{}),f=(e=>(e.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",e.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",e.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",e.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",e.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",e.MAGIC_MG_BOX_SEND_RECEIPT="MAGIC_MG_BOX_SEND_RECEIPT",e.MAGIC_SEND_PRODUCT_ANNOUNCEMENT="MAGIC_SEND_PRODUCT_ANNOUNCEMENT",e.MAGIC_PONG="MAGIC_PONG",e.MAGIC_POPUP_RESPONSE="MAGIC_POPUP_RESPONSE",e.MAGIC_POPUP_OAUTH_VERIFY_RESPONSE="MAGIC_POPUP_OAUTH_VERIFY_RESPONSE",e))(f||{}),R=(e=>(e.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",e.MAGIC_PING="MAGIC_PING",e))(R||{}),A=(e=>(e.UpdateEmail="update-email",e.MFA="mfa",e.Recovery="recovery",e))(A||{}),M=(e=>(e.Retry="retry",e))(M||{}),w=(e=>(e.EmailSent="email-sent",e.EmailNotDeliverable="email-not-deliverable",e))(w||{}),C=(e=>(e.VerifyEmailOtp="verify-email-otp",e.VerifyMFACode="verify-mfa-code",e.LostDevice="lost-device",e.VerifyRecoveryCode="verify-recovery-code",e.Cancel="cancel",e))(C||{}),N=(e=>(e.VerifySmsOtp="verify-sms-otp",e.Cancel="cancel",e.Retry="retry",e))(N||{}),S=(e=>(e.SmsOTPSent="sms-otp-sent",e.InvalidSmsOtp="invalid-sms-otp",e.ExpiredSmsOtp="expired-sms-otp",e))(S||{}),O=(e=>(e.EmailOTPSent="email-otp-sent",e.InvalidEmailOtp="invalid-email-otp",e.InvalidMfaOtp="invalid-mfa-otp",e.ExpiredEmailOtp="expired-email-otp",e.MfaSentHandle="mfa-sent-handle",e.RecoveryCodeSentHandle="recovery-code-sent-handle",e.InvalidRecoveryCode="invalid-recovery-code",e.RecoveryCodeSuccess="recovery-code-success",e.LoginThrottled="login-throttled",e.MaxAttemptsReached="max-attempts-reached",e))(O||{}),T=(e=>(e.Retry="device-retry",e))(T||{}),U=(e=>(e.DeviceApproved="device-approved",e.DeviceNeedsApproval="device-needs-approval",e.DeviceVerificationLinkExpired="device-verification-link-expired",e.DeviceVerificationEmailSent="device-verification-email-sent",e))(U||{}),P=(e=>(e.Retry="Recency/auth-factor-retry",e.Cancel="Recency/auth-factor-verification-cancel",e.VerifyEmailOtp="Recency/auth-factor-verify-email-otp",e.VerifyMFACode="Recency/verify-mfa-code",e))(P||{}),L=(e=>(e.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",e.PrimaryAuthFactorVerified="Recency/auth-factor-verified",e.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",e.EmailExpired="Recency/auth-factor-verification-email-expired",e.EmailSent="Recency/auth-factor-verification-email-sent",e.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",e))(L||{}),D=(e=>(e.RetryWithNewEmail="UpdateEmail/retry-with-new-email",e.Cancel="UpdateEmail/new-email-verification-cancel",e.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",e))(D||{}),k=(e=>(e.NewAuthFactorNeedsVerification="UpdateEmail/new-email-needs-verification",e.EmailUpdated="UpdateEmail/email-updated",e.InvalidEmailOtp="UpdateEmail/new-email-invalid-email-otp",e.EmailExpired="UpdateEmail/new-email-verification-email-expired",e.EmailSent="UpdateEmail/new-email-verification-email-sent",e.EmailNotDeliverable="UpdateEmail/new-email-verification-email-not-deliverable",e.InvalidEmail="UpdateEmail/new-email-invalid",e.EmailAlreadyExists="UpdateEmail/new-email-already-exists",e))(k||{}),G=(e=>(e.IDTokenCreated="Auth/id-token-created",e))(G||{}),b=(e=>(e.Cancel="Farcaster/cancel",e))(b||{}),F=(e=>(e.MFASecretGenerated="mfa-secret-generated",e.InvalidMFAOtp="invalid-mfa-otp",e.MFARecoveryCodes="mfa-recovery-codes",e))(F||{}),V=(e=>(e.VerifyMFACode="verify-mfa-code",e.Cancel="cancel-mfa-setup",e))(V||{}),x=(e=>(e.MFACodeRequested="mfa-code-requested",e.InvalidMFAOtp="invalid-mfa-otp",e.InvalidRecoveryCode="invalid-recovery-code",e))(x||{}),W=(e=>(e.VerifyMFACode="verify-mfa-code",e.LostDevice="lost-device",e.Cancel="cancel-mfa-disable",e))(W||{}),q=(e=>(e.Harmony="HARMONY",e))(q||{}),H=(e=>(e.ClosedByUser="closed-by-user",e))(H||{}),Y=(e=>(e.ClosedByUser="closed-by-user-on-received",e))(Y||{}),B=(e=>(e.EnterNewPhoneNumber="enter-new-phone-number",e.EnterOtpCode="enter-otp-code",e.RecoveryFactorAlreadyExists="recovery-factor-already-exists",e.MalformedPhoneNumber="malformed-phone-number",e.InvalidOtpCode="invalid-otp-code",e.RecoveryFactorUpdated="recovery-factor-updated",e.RecoveryFactorDeleted="recovery-factor-deleted",e))(B||{}),K=(e=>(e.SendNewPhoneNumber="send-new-phone-number",e.SendOtpCode="send-otp-code",e.Cancel="cancel",e.StartEditPhoneNumber="start-edit-phone-number",e))(K||{}),z=(e=>(e.PhoneNumber="phone_number",e))(z||{}),j=(e=>(e.SmsOtpSent="sms-otp-sent",e.LoginThrottled="login-throttled",e.InvalidSmsOtp="invalid-sms-otp",e.SmsVerified="sms-verified",e.AccountRecovered="account-recovered",e.UpdateEmailRequired="update-email-required",e))(j||{}),J=(e=>(e.Cancel="cancel",e.VerifyOtp="verify-otp-code",e.ResendSms="resend-sms-otp",e.UpdateEmail="update-email",e))(J||{}),X=(e=>(e.Success="nft-checkout-success",e.Failure="nft-checkout-failure",e.Initiated="nft-checkout-initiated",e.Disconnect="disconnect",e))(X||{}),Q=(e=>(e.WalletInfoFetched="Wallet/wallet-info-fetched",e))(Q||{}),$=(e=>(e.CloseMagicWindow="close-magic-window",e))($||{}),s=(e=>(e.PopupUrl="popup-url",e))(s||{}),d=(e=>(e.PopupEvent="popup-event",e.Cancel="cancel",e))(d||{}),ie=class extends _.Internal{name="oauth2";config={};compat={"magic-sdk":">=2.4.6","@magic-sdk/react-native":!1,"@magic-sdk/react-native-bare":!1,"@magic-sdk/react-native-expo":!1};constructor(){super(),this.seamlessTelegramLogin()}loginWithRedirect(e){return this.utils.createPromiEvent(async(t,o)=>{let c=this.utils.createJsonRpcRequestPayload("magic_oauth_login_with_redirect_start",[{...e,apiKey:this.sdk.apiKey,platform:"web"}]),n=await this.request(c),i=n,r=n;if(r.error&&o(this.createError(r.error,r.error_description??"An error occurred.",{errorURI:r.error_uri,provider:r.provider})),i?.oauthAuthoriationURI){let a=i.useMagicServerCallback?new URL(i.oauthAuthoriationURI,this.sdk.endpoint).href:i.oauthAuthoriationURI;i?.shouldReturnURI?t(a):window.location.href=a}t(null)})}getRedirectResult(e={}){let t=e?.optionalQueryString||window.location.search,o=window.location.origin+window.location.pathname;return window.history.replaceState(null,"",o),Z.call(this,e,t)}loginWithPopup(e){let t=this.utils.createJsonRpcRequestPayload("magic_oauth_login_with_popup",[{...e,returnTo:window.location.href,apiKey:this.sdk.apiKey,platform:"web"}]),o=m(async(c,n)=>{try{let i=this.request(t),r=l=>{this.createIntermediaryEvent(d.PopupEvent,t.id)(l.data)};e.shouldReturnURI&&i.on(s.PopupUrl,l=>{window.addEventListener("message",r),o.emit(s.PopupUrl,l)});let a=await i;window.removeEventListener("message",r),a.error?n(a):c(a)}catch(i){n(i)}});return o.on(d.Cancel,()=>{this.createIntermediaryEvent(d.Cancel,t.id)()}),o}seamlessTelegramLogin(){try{if(!window.location.hash.toString().includes("#tgWebAppData"))return;let e=document.createElement("script");e.src="https://telegram.org/js/telegram-web-app.js",document.head.prepend(e),e.onload=async()=>{try{let t=window.Telegram?.WebApp.initData,o=this.utils.createJsonRpcRequestPayload("magic_oauth_verify_telegram_data",[{userData:t,isMiniApp:!0}]);await this.request(o)}catch(t){console.log("Error while verifying telegram data",t)}}}catch(e){console.log("Error while loading telegram-web-app script",e)}}};function Z(e,t){return this.utils.createPromiEvent(async(o,c)=>{let n=this.utils.createJsonRpcRequestPayload("magic_oauth_login_with_redirect_verify",[{authorizationResponseParams:t,magicApiKey:this.sdk.apiKey,platform:"web",...e}]),i=await this.request(n),r=i,a=i;a.error&&c(this.createError(a.error,a.error_description??"An error occurred.",{errorURI:a.error_uri,provider:a.provider})),o(r)})}export{u as OAuthErrorCode,ie as OAuthExtension,p as OAuthPayloadMethods};
|
|
1
|
+
import{a as _,j as m}from"./index-BwFdAxy9.js";import"./index-CGCvheGi.js";var p=(e=>(e.Start="magic_oauth_login_with_redirect_start",e.Verify="magic_oauth_login_with_redirect_verify",e.Popup="magic_oauth_login_with_popup",e.VerifyTelegramData="magic_oauth_verify_telegram_data",e))(p||{}),u=(e=>(e.InvalidRequest="invalid_request",e.InvalidClient="invalid_client",e.InvalidScope="invalid_scope",e.InvalidGrant="invalid_grant",e.UnauthorizedClient="unauthorized_client",e.UnsupportedResponseType="unsupported_response_type",e.UnsupportedGrantType="unsupported_grant_type",e.UnsupportedTokenType="unsupported_token_type",e.AccessDenied="access_denied",e.ServerError="server_error",e.TemporarilyUnavailable="temporarily_unavailable",e))(u||{}),g=(e=>(e.MissingApiKey="MISSING_API_KEY",e.ModalNotReady="MODAL_NOT_READY",e.ConnectionLost="CONNECTION_WAS_LOST",e.MalformedResponse="MALFORMED_RESPONSE",e.InvalidArgument="INVALID_ARGUMENT",e.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",e.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",e))(g||{}),h=(e=>(e.SyncWeb3Method="SYNC_WEB3_METHOD",e.DuplicateIframe="DUPLICATE_IFRAME",e.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",e.DeprecationNotice="DEPRECATION_NOTICE",e.ProductAnnouncement="ANNOUNCEMENT",e))(h||{}),E=(e=>(e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",e[e.MagicLinkExpired=-10001]="MagicLinkExpired",e[e.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",e[e.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",e[e.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",e[e.UpdateEmailFailed=-10004]="UpdateEmailFailed",e[e.UserRequestEditEmail=-10005]="UserRequestEditEmail",e[e.InactiveRecipient=-10010]="InactiveRecipient",e[e.AccessDeniedToUser=-10011]="AccessDeniedToUser",e[e.RedirectLoginComplete=-10015]="RedirectLoginComplete",e[e.DpopInvalidated=-10019]="DpopInvalidated",e))(E||{}),v=(e=>(e.PROVIDER="magic_3pw_provider",e.ADDRESS="magic_3pw_address",e.CHAIN_ID="magic_3pw_chainId",e))(v||{}),y=(e=>(e.WalletConnected="wallet_connected",e.WalletRejected="wallet_rejected",e.Web3ModalSelected="web3modal_selected",e))(y||{}),I=(e=>(e.LoginWithSms="magic_auth_login_with_sms",e.LoginWithEmailOTP="magic_auth_login_with_email_otp",e.LoginWithMagicLink="magic_auth_login_with_magic_link",e.LoginWithCredential="magic_auth_login_with_credential",e.SetAuthorizationToken="magic_auth_set_authorization_token",e.GetIdToken="magic_auth_get_id_token",e.GenerateIdToken="magic_auth_generate_id_token",e.GetMetadata="magic_auth_get_metadata",e.IsLoggedIn="magic_is_logged_in",e.Logout="magic_auth_logout",e.UpdateEmail="magic_auth_update_email",e.UserSettings="magic_auth_settings",e.UserSettingsTestMode="magic_auth_settings_testing_mode",e.LoginWithSmsTestMode="magic_auth_login_with_sms_testing_mode",e.LoginWithEmailOTPTestMode="magic_auth_login_with_email_otp_testing_mode",e.LoginWithMagicLinkTestMode="magic_login_with_magic_link_testing_mode",e.LoginWithCredentialTestMode="magic_auth_login_with_credential_testing_mode",e.GetIdTokenTestMode="magic_auth_get_id_token_testing_mode",e.GenerateIdTokenTestMode="magic_auth_generate_id_token_testing_mode",e.GetMetadataTestMode="magic_auth_get_metadata_testing_mode",e.IsLoggedInTestMode="magic_auth_is_logged_in_testing_mode",e.LogoutTestMode="magic_auth_logout_testing_mode",e.UpdateEmailTestMode="magic_auth_update_email_testing_mode",e.IntermediaryEvent="magic_intermediary_event",e.RequestAccounts="eth_requestAccounts",e.GetInfo="magic_get_info",e.ShowUI="magic_wallet",e.NFTPurchase="magic_nft_purchase",e.NFTCheckout="magic_nft_checkout",e.NFTTransfer="magic_nft_transfer",e.RequestUserInfoWithUI="mc_request_user_info",e.Disconnect="mc_disconnect",e.RecoverAccount="magic_auth_recover_account",e.RecoverAccountTestMode="magic_auth_recover_account_testing_mode",e.MagicBoxHeartBeat="magic_box_heart_beat",e.AutoConnect="mc_auto_connect",e.Login="mc_login",e.EncryptV1="magic_auth_encrypt_v1",e.DecryptV1="magic_auth_decrypt_v1",e.ShowNFTs="magic_show_nfts",e.ShowOnRamp="magic_show_fiat_onramp",e.ShowSendTokensUI="magic_show_send_tokens_ui",e.ShowAddress="magic_show_address",e.ShowBalances="magic_show_balances",e.SendGaslessTransaction="eth_sendGaslessTransaction",e.RevealPK="magic_reveal_key",e.EnableMFA="magic_auth_enable_mfa_flow",e.DisableMFA="magic_auth_disable_mfa_flow",e.GetMultichainPublicAddress="magic_get_multichain_public_address",e))(I||{}),f=(e=>(e.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",e.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",e.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",e.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",e.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",e.MAGIC_MG_BOX_SEND_RECEIPT="MAGIC_MG_BOX_SEND_RECEIPT",e.MAGIC_SEND_PRODUCT_ANNOUNCEMENT="MAGIC_SEND_PRODUCT_ANNOUNCEMENT",e.MAGIC_PONG="MAGIC_PONG",e.MAGIC_POPUP_RESPONSE="MAGIC_POPUP_RESPONSE",e.MAGIC_POPUP_OAUTH_VERIFY_RESPONSE="MAGIC_POPUP_OAUTH_VERIFY_RESPONSE",e))(f||{}),R=(e=>(e.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",e.MAGIC_PING="MAGIC_PING",e))(R||{}),A=(e=>(e.UpdateEmail="update-email",e.MFA="mfa",e.Recovery="recovery",e))(A||{}),M=(e=>(e.Retry="retry",e))(M||{}),w=(e=>(e.EmailSent="email-sent",e.EmailNotDeliverable="email-not-deliverable",e))(w||{}),C=(e=>(e.VerifyEmailOtp="verify-email-otp",e.VerifyMFACode="verify-mfa-code",e.LostDevice="lost-device",e.VerifyRecoveryCode="verify-recovery-code",e.Cancel="cancel",e))(C||{}),N=(e=>(e.VerifySmsOtp="verify-sms-otp",e.Cancel="cancel",e.Retry="retry",e))(N||{}),S=(e=>(e.SmsOTPSent="sms-otp-sent",e.InvalidSmsOtp="invalid-sms-otp",e.ExpiredSmsOtp="expired-sms-otp",e))(S||{}),O=(e=>(e.EmailOTPSent="email-otp-sent",e.InvalidEmailOtp="invalid-email-otp",e.InvalidMfaOtp="invalid-mfa-otp",e.ExpiredEmailOtp="expired-email-otp",e.MfaSentHandle="mfa-sent-handle",e.RecoveryCodeSentHandle="recovery-code-sent-handle",e.InvalidRecoveryCode="invalid-recovery-code",e.RecoveryCodeSuccess="recovery-code-success",e.LoginThrottled="login-throttled",e.MaxAttemptsReached="max-attempts-reached",e))(O||{}),T=(e=>(e.Retry="device-retry",e))(T||{}),U=(e=>(e.DeviceApproved="device-approved",e.DeviceNeedsApproval="device-needs-approval",e.DeviceVerificationLinkExpired="device-verification-link-expired",e.DeviceVerificationEmailSent="device-verification-email-sent",e))(U||{}),P=(e=>(e.Retry="Recency/auth-factor-retry",e.Cancel="Recency/auth-factor-verification-cancel",e.VerifyEmailOtp="Recency/auth-factor-verify-email-otp",e.VerifyMFACode="Recency/verify-mfa-code",e))(P||{}),L=(e=>(e.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",e.PrimaryAuthFactorVerified="Recency/auth-factor-verified",e.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",e.EmailExpired="Recency/auth-factor-verification-email-expired",e.EmailSent="Recency/auth-factor-verification-email-sent",e.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",e))(L||{}),D=(e=>(e.RetryWithNewEmail="UpdateEmail/retry-with-new-email",e.Cancel="UpdateEmail/new-email-verification-cancel",e.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",e))(D||{}),k=(e=>(e.NewAuthFactorNeedsVerification="UpdateEmail/new-email-needs-verification",e.EmailUpdated="UpdateEmail/email-updated",e.InvalidEmailOtp="UpdateEmail/new-email-invalid-email-otp",e.EmailExpired="UpdateEmail/new-email-verification-email-expired",e.EmailSent="UpdateEmail/new-email-verification-email-sent",e.EmailNotDeliverable="UpdateEmail/new-email-verification-email-not-deliverable",e.InvalidEmail="UpdateEmail/new-email-invalid",e.EmailAlreadyExists="UpdateEmail/new-email-already-exists",e))(k||{}),G=(e=>(e.IDTokenCreated="Auth/id-token-created",e))(G||{}),b=(e=>(e.Cancel="Farcaster/cancel",e))(b||{}),F=(e=>(e.MFASecretGenerated="mfa-secret-generated",e.InvalidMFAOtp="invalid-mfa-otp",e.MFARecoveryCodes="mfa-recovery-codes",e))(F||{}),V=(e=>(e.VerifyMFACode="verify-mfa-code",e.Cancel="cancel-mfa-setup",e))(V||{}),x=(e=>(e.MFACodeRequested="mfa-code-requested",e.InvalidMFAOtp="invalid-mfa-otp",e.InvalidRecoveryCode="invalid-recovery-code",e))(x||{}),W=(e=>(e.VerifyMFACode="verify-mfa-code",e.LostDevice="lost-device",e.Cancel="cancel-mfa-disable",e))(W||{}),q=(e=>(e.Harmony="HARMONY",e))(q||{}),H=(e=>(e.ClosedByUser="closed-by-user",e))(H||{}),Y=(e=>(e.ClosedByUser="closed-by-user-on-received",e))(Y||{}),B=(e=>(e.EnterNewPhoneNumber="enter-new-phone-number",e.EnterOtpCode="enter-otp-code",e.RecoveryFactorAlreadyExists="recovery-factor-already-exists",e.MalformedPhoneNumber="malformed-phone-number",e.InvalidOtpCode="invalid-otp-code",e.RecoveryFactorUpdated="recovery-factor-updated",e.RecoveryFactorDeleted="recovery-factor-deleted",e))(B||{}),K=(e=>(e.SendNewPhoneNumber="send-new-phone-number",e.SendOtpCode="send-otp-code",e.Cancel="cancel",e.StartEditPhoneNumber="start-edit-phone-number",e))(K||{}),z=(e=>(e.PhoneNumber="phone_number",e))(z||{}),j=(e=>(e.SmsOtpSent="sms-otp-sent",e.LoginThrottled="login-throttled",e.InvalidSmsOtp="invalid-sms-otp",e.SmsVerified="sms-verified",e.AccountRecovered="account-recovered",e.UpdateEmailRequired="update-email-required",e))(j||{}),J=(e=>(e.Cancel="cancel",e.VerifyOtp="verify-otp-code",e.ResendSms="resend-sms-otp",e.UpdateEmail="update-email",e))(J||{}),X=(e=>(e.Success="nft-checkout-success",e.Failure="nft-checkout-failure",e.Initiated="nft-checkout-initiated",e.Disconnect="disconnect",e))(X||{}),Q=(e=>(e.WalletInfoFetched="Wallet/wallet-info-fetched",e))(Q||{}),$=(e=>(e.CloseMagicWindow="close-magic-window",e))($||{}),s=(e=>(e.PopupUrl="popup-url",e))(s||{}),d=(e=>(e.PopupEvent="popup-event",e.Cancel="cancel",e))(d||{}),ie=class extends _.Internal{name="oauth2";config={};compat={"magic-sdk":">=2.4.6","@magic-sdk/react-native":!1,"@magic-sdk/react-native-bare":!1,"@magic-sdk/react-native-expo":!1};constructor(){super(),this.seamlessTelegramLogin()}loginWithRedirect(e){return this.utils.createPromiEvent(async(t,o)=>{let c=this.utils.createJsonRpcRequestPayload("magic_oauth_login_with_redirect_start",[{...e,apiKey:this.sdk.apiKey,platform:"web"}]),n=await this.request(c),i=n,r=n;if(r.error&&o(this.createError(r.error,r.error_description??"An error occurred.",{errorURI:r.error_uri,provider:r.provider})),i?.oauthAuthoriationURI){let a=i.useMagicServerCallback?new URL(i.oauthAuthoriationURI,this.sdk.endpoint).href:i.oauthAuthoriationURI;i?.shouldReturnURI?t(a):window.location.href=a}t(null)})}getRedirectResult(e={}){let t=e?.optionalQueryString||window.location.search,o=window.location.origin+window.location.pathname;return window.history.replaceState(null,"",o),Z.call(this,e,t)}loginWithPopup(e){let t=this.utils.createJsonRpcRequestPayload("magic_oauth_login_with_popup",[{...e,returnTo:window.location.href,apiKey:this.sdk.apiKey,platform:"web"}]),o=m(async(c,n)=>{try{let i=this.request(t),r=l=>{this.createIntermediaryEvent(d.PopupEvent,t.id)(l.data)};e.shouldReturnURI&&i.on(s.PopupUrl,l=>{window.addEventListener("message",r),o.emit(s.PopupUrl,l)});let a=await i;window.removeEventListener("message",r),a.error?n(a):c(a)}catch(i){n(i)}});return o.on(d.Cancel,()=>{this.createIntermediaryEvent(d.Cancel,t.id)()}),o}seamlessTelegramLogin(){try{if(!window.location.hash.toString().includes("#tgWebAppData"))return;let e=document.createElement("script");e.src="https://telegram.org/js/telegram-web-app.js",document.head.prepend(e),e.onload=async()=>{try{let t=window.Telegram?.WebApp.initData,o=this.utils.createJsonRpcRequestPayload("magic_oauth_verify_telegram_data",[{userData:t,isMiniApp:!0}]);await this.request(o)}catch(t){console.log("Error while verifying telegram data",t)}}}catch(e){console.log("Error while loading telegram-web-app script",e)}}};function Z(e,t){return this.utils.createPromiEvent(async(o,c)=>{let n=this.utils.createJsonRpcRequestPayload("magic_oauth_login_with_redirect_verify",[{authorizationResponseParams:t,magicApiKey:this.sdk.apiKey,platform:"web",...e}]),i=await this.request(n),r=i,a=i;a.error&&c(this.createError(a.error,a.error_description??"An error occurred.",{errorURI:a.error_uri,provider:a.provider})),o(r)})}export{u as OAuthErrorCode,ie as OAuthExtension,p as OAuthPayloadMethods};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-jopxsqnB.js","sources":["../../node_modules/@magic-ext/oauth2/dist/es/index.mjs"],"sourcesContent":["import{createPromiEvent as ee,Extension as te}from\"@magic-sdk/provider\";var p=(n=>(n.Start=\"magic_oauth_login_with_redirect_start\",n.Verify=\"magic_oauth_login_with_redirect_verify\",n.Popup=\"magic_oauth_login_with_popup\",n.VerifyTelegramData=\"magic_oauth_verify_telegram_data\",n))(p||{}),g=(c=>(c.InvalidRequest=\"invalid_request\",c.InvalidClient=\"invalid_client\",c.InvalidScope=\"invalid_scope\",c.InvalidGrant=\"invalid_grant\",c.UnauthorizedClient=\"unauthorized_client\",c.UnsupportedResponseType=\"unsupported_response_type\",c.UnsupportedGrantType=\"unsupported_grant_type\",c.UnsupportedTokenType=\"unsupported_token_type\",c.AccessDenied=\"access_denied\",c.ServerError=\"server_error\",c.TemporarilyUnavailable=\"temporarily_unavailable\",c))(g||{});var v=(e=>(e.MissingApiKey=\"MISSING_API_KEY\",e.ModalNotReady=\"MODAL_NOT_READY\",e.ConnectionLost=\"CONNECTION_WAS_LOST\",e.MalformedResponse=\"MALFORMED_RESPONSE\",e.InvalidArgument=\"INVALID_ARGUMENT\",e.ExtensionNotInitialized=\"EXTENSION_NOT_INITIALIZED\",e.IncompatibleExtensions=\"INCOMPATIBLE_EXTENSIONS\",e))(v||{}),h=(e=>(e.SyncWeb3Method=\"SYNC_WEB3_METHOD\",e.DuplicateIframe=\"DUPLICATE_IFRAME\",e.ReactNativeEndpointConfiguration=\"REACT_NATIVE_ENDPOINT_CONFIGURATION\",e.DeprecationNotice=\"DEPRECATION_NOTICE\",e.ProductAnnouncement=\"ANNOUNCEMENT\",e))(h||{}),E=(e=>(e[e.ParseError=-32700]=\"ParseError\",e[e.InvalidRequest=-32600]=\"InvalidRequest\",e[e.MethodNotFound=-32601]=\"MethodNotFound\",e[e.InvalidParams=-32602]=\"InvalidParams\",e[e.InternalError=-32603]=\"InternalError\",e[e.MagicLinkFailedVerification=-1e4]=\"MagicLinkFailedVerification\",e[e.MagicLinkExpired=-10001]=\"MagicLinkExpired\",e[e.MagicLinkRateLimited=-10002]=\"MagicLinkRateLimited\",e[e.MagicLinkInvalidRedirectURL=-10006]=\"MagicLinkInvalidRedirectURL\",e[e.UserAlreadyLoggedIn=-10003]=\"UserAlreadyLoggedIn\",e[e.UpdateEmailFailed=-10004]=\"UpdateEmailFailed\",e[e.UserRequestEditEmail=-10005]=\"UserRequestEditEmail\",e[e.InactiveRecipient=-10010]=\"InactiveRecipient\",e[e.AccessDeniedToUser=-10011]=\"AccessDeniedToUser\",e[e.RedirectLoginComplete=-10015]=\"RedirectLoginComplete\",e[e.DpopInvalidated=-10019]=\"DpopInvalidated\",e))(E||{}),R=(e=>(e.PROVIDER=\"magic_3pw_provider\",e.ADDRESS=\"magic_3pw_address\",e.CHAIN_ID=\"magic_3pw_chainId\",e))(R||{}),f=(e=>(e.WalletConnected=\"wallet_connected\",e.WalletRejected=\"wallet_rejected\",e.Web3ModalSelected=\"web3modal_selected\",e))(f||{}),A=(e=>(e.LoginWithSms=\"magic_auth_login_with_sms\",e.LoginWithEmailOTP=\"magic_auth_login_with_email_otp\",e.LoginWithMagicLink=\"magic_auth_login_with_magic_link\",e.LoginWithCredential=\"magic_auth_login_with_credential\",e.SetAuthorizationToken=\"magic_auth_set_authorization_token\",e.GetIdToken=\"magic_auth_get_id_token\",e.GenerateIdToken=\"magic_auth_generate_id_token\",e.GetMetadata=\"magic_auth_get_metadata\",e.IsLoggedIn=\"magic_is_logged_in\",e.Logout=\"magic_auth_logout\",e.UpdateEmail=\"magic_auth_update_email\",e.UserSettings=\"magic_auth_settings\",e.UserSettingsTestMode=\"magic_auth_settings_testing_mode\",e.LoginWithSmsTestMode=\"magic_auth_login_with_sms_testing_mode\",e.LoginWithEmailOTPTestMode=\"magic_auth_login_with_email_otp_testing_mode\",e.LoginWithMagicLinkTestMode=\"magic_login_with_magic_link_testing_mode\",e.LoginWithCredentialTestMode=\"magic_auth_login_with_credential_testing_mode\",e.GetIdTokenTestMode=\"magic_auth_get_id_token_testing_mode\",e.GenerateIdTokenTestMode=\"magic_auth_generate_id_token_testing_mode\",e.GetMetadataTestMode=\"magic_auth_get_metadata_testing_mode\",e.IsLoggedInTestMode=\"magic_auth_is_logged_in_testing_mode\",e.LogoutTestMode=\"magic_auth_logout_testing_mode\",e.UpdateEmailTestMode=\"magic_auth_update_email_testing_mode\",e.IntermediaryEvent=\"magic_intermediary_event\",e.RequestAccounts=\"eth_requestAccounts\",e.GetInfo=\"magic_get_info\",e.ShowUI=\"magic_wallet\",e.NFTPurchase=\"magic_nft_purchase\",e.NFTCheckout=\"magic_nft_checkout\",e.NFTTransfer=\"magic_nft_transfer\",e.RequestUserInfoWithUI=\"mc_request_user_info\",e.Disconnect=\"mc_disconnect\",e.RecoverAccount=\"magic_auth_recover_account\",e.RecoverAccountTestMode=\"magic_auth_recover_account_testing_mode\",e.MagicBoxHeartBeat=\"magic_box_heart_beat\",e.AutoConnect=\"mc_auto_connect\",e.Login=\"mc_login\",e.EncryptV1=\"magic_auth_encrypt_v1\",e.DecryptV1=\"magic_auth_decrypt_v1\",e.ShowNFTs=\"magic_show_nfts\",e.ShowOnRamp=\"magic_show_fiat_onramp\",e.ShowSendTokensUI=\"magic_show_send_tokens_ui\",e.ShowAddress=\"magic_show_address\",e.ShowBalances=\"magic_show_balances\",e.SendGaslessTransaction=\"eth_sendGaslessTransaction\",e.RevealPK=\"magic_reveal_key\",e.EnableMFA=\"magic_auth_enable_mfa_flow\",e.DisableMFA=\"magic_auth_disable_mfa_flow\",e.GetMultichainPublicAddress=\"magic_get_multichain_public_address\",e))(A||{});var y=(e=>(e.MAGIC_HANDLE_RESPONSE=\"MAGIC_HANDLE_RESPONSE\",e.MAGIC_OVERLAY_READY=\"MAGIC_OVERLAY_READY\",e.MAGIC_SHOW_OVERLAY=\"MAGIC_SHOW_OVERLAY\",e.MAGIC_HIDE_OVERLAY=\"MAGIC_HIDE_OVERLAY\",e.MAGIC_HANDLE_EVENT=\"MAGIC_HANDLE_EVENT\",e.MAGIC_MG_BOX_SEND_RECEIPT=\"MAGIC_MG_BOX_SEND_RECEIPT\",e.MAGIC_SEND_PRODUCT_ANNOUNCEMENT=\"MAGIC_SEND_PRODUCT_ANNOUNCEMENT\",e.MAGIC_PONG=\"MAGIC_PONG\",e.MAGIC_POPUP_RESPONSE=\"MAGIC_POPUP_RESPONSE\",e.MAGIC_POPUP_OAUTH_VERIFY_RESPONSE=\"MAGIC_POPUP_OAUTH_VERIFY_RESPONSE\",e))(y||{}),I=(e=>(e.MAGIC_HANDLE_REQUEST=\"MAGIC_HANDLE_REQUEST\",e.MAGIC_PING=\"MAGIC_PING\",e))(I||{}),O=(e=>(e.UpdateEmail=\"update-email\",e.MFA=\"mfa\",e.Recovery=\"recovery\",e))(O||{}),M=(e=>(e.Retry=\"retry\",e))(M||{}),C=(e=>(e.EmailSent=\"email-sent\",e.EmailNotDeliverable=\"email-not-deliverable\",e))(C||{}),P=(e=>(e.VerifyEmailOtp=\"verify-email-otp\",e.VerifyMFACode=\"verify-mfa-code\",e.LostDevice=\"lost-device\",e.VerifyRecoveryCode=\"verify-recovery-code\",e.Cancel=\"cancel\",e))(P||{}),w=(e=>(e.VerifySmsOtp=\"verify-sms-otp\",e.Cancel=\"cancel\",e.Retry=\"retry\",e))(w||{}),N=(e=>(e.SmsOTPSent=\"sms-otp-sent\",e.InvalidSmsOtp=\"invalid-sms-otp\",e.ExpiredSmsOtp=\"expired-sms-otp\",e))(N||{}),S=(e=>(e.EmailOTPSent=\"email-otp-sent\",e.InvalidEmailOtp=\"invalid-email-otp\",e.InvalidMfaOtp=\"invalid-mfa-otp\",e.ExpiredEmailOtp=\"expired-email-otp\",e.MfaSentHandle=\"mfa-sent-handle\",e.RecoveryCodeSentHandle=\"recovery-code-sent-handle\",e.InvalidRecoveryCode=\"invalid-recovery-code\",e.RecoveryCodeSuccess=\"recovery-code-success\",e.LoginThrottled=\"login-throttled\",e.MaxAttemptsReached=\"max-attempts-reached\",e))(S||{}),T=(e=>(e.Retry=\"device-retry\",e))(T||{}),U=(e=>(e.DeviceApproved=\"device-approved\",e.DeviceNeedsApproval=\"device-needs-approval\",e.DeviceVerificationLinkExpired=\"device-verification-link-expired\",e.DeviceVerificationEmailSent=\"device-verification-email-sent\",e))(U||{}),D=(e=>(e.Retry=\"Recency/auth-factor-retry\",e.Cancel=\"Recency/auth-factor-verification-cancel\",e.VerifyEmailOtp=\"Recency/auth-factor-verify-email-otp\",e.VerifyMFACode=\"Recency/verify-mfa-code\",e))(D||{}),b=(e=>(e.PrimaryAuthFactorNeedsVerification=\"Recency/auth-factor-needs-verification\",e.PrimaryAuthFactorVerified=\"Recency/auth-factor-verified\",e.InvalidEmailOtp=\"Recency/auth-factor-invalid-email-otp\",e.EmailExpired=\"Recency/auth-factor-verification-email-expired\",e.EmailSent=\"Recency/auth-factor-verification-email-sent\",e.EmailNotDeliverable=\"Recency/auth-factor-verification-email-not-deliverable\",e))(b||{}),L=(e=>(e.RetryWithNewEmail=\"UpdateEmail/retry-with-new-email\",e.Cancel=\"UpdateEmail/new-email-verification-cancel\",e.VerifyEmailOtp=\"UpdateEmail/new-email-verify-otp\",e))(L||{}),k=(e=>(e.NewAuthFactorNeedsVerification=\"UpdateEmail/new-email-needs-verification\",e.EmailUpdated=\"UpdateEmail/email-updated\",e.InvalidEmailOtp=\"UpdateEmail/new-email-invalid-email-otp\",e.EmailExpired=\"UpdateEmail/new-email-verification-email-expired\",e.EmailSent=\"UpdateEmail/new-email-verification-email-sent\",e.EmailNotDeliverable=\"UpdateEmail/new-email-verification-email-not-deliverable\",e.InvalidEmail=\"UpdateEmail/new-email-invalid\",e.EmailAlreadyExists=\"UpdateEmail/new-email-already-exists\",e))(k||{}),G=(e=>(e.IDTokenCreated=\"Auth/id-token-created\",e))(G||{}),V=(e=>(e.Cancel=\"Farcaster/cancel\",e))(V||{}),x=(e=>(e.MFASecretGenerated=\"mfa-secret-generated\",e.InvalidMFAOtp=\"invalid-mfa-otp\",e.MFARecoveryCodes=\"mfa-recovery-codes\",e))(x||{}),F=(e=>(e.VerifyMFACode=\"verify-mfa-code\",e.Cancel=\"cancel-mfa-setup\",e))(F||{}),W=(e=>(e.MFACodeRequested=\"mfa-code-requested\",e.InvalidMFAOtp=\"invalid-mfa-otp\",e.InvalidRecoveryCode=\"invalid-recovery-code\",e))(W||{}),q=(e=>(e.VerifyMFACode=\"verify-mfa-code\",e.LostDevice=\"lost-device\",e.Cancel=\"cancel-mfa-disable\",e))(q||{}),H=(e=>(e.Harmony=\"HARMONY\",e))(H||{}),Y=(e=>(e.ClosedByUser=\"closed-by-user\",e))(Y||{}),K=(e=>(e.ClosedByUser=\"closed-by-user-on-received\",e))(K||{}),B=(e=>(e.EnterNewPhoneNumber=\"enter-new-phone-number\",e.EnterOtpCode=\"enter-otp-code\",e.RecoveryFactorAlreadyExists=\"recovery-factor-already-exists\",e.MalformedPhoneNumber=\"malformed-phone-number\",e.InvalidOtpCode=\"invalid-otp-code\",e.RecoveryFactorUpdated=\"recovery-factor-updated\",e.RecoveryFactorDeleted=\"recovery-factor-deleted\",e))(B||{}),z=(e=>(e.SendNewPhoneNumber=\"send-new-phone-number\",e.SendOtpCode=\"send-otp-code\",e.Cancel=\"cancel\",e.StartEditPhoneNumber=\"start-edit-phone-number\",e))(z||{}),Q=(e=>(e.PhoneNumber=\"phone_number\",e))(Q||{}),J=(e=>(e.SmsOtpSent=\"sms-otp-sent\",e.LoginThrottled=\"login-throttled\",e.InvalidSmsOtp=\"invalid-sms-otp\",e.SmsVerified=\"sms-verified\",e.AccountRecovered=\"account-recovered\",e.UpdateEmailRequired=\"update-email-required\",e))(J||{}),X=(e=>(e.Cancel=\"cancel\",e.VerifyOtp=\"verify-otp-code\",e.ResendSms=\"resend-sms-otp\",e.UpdateEmail=\"update-email\",e))(X||{}),j=(e=>(e.Success=\"nft-checkout-success\",e.Failure=\"nft-checkout-failure\",e.Initiated=\"nft-checkout-initiated\",e.Disconnect=\"disconnect\",e))(j||{}),Z=(e=>(e.WalletInfoFetched=\"Wallet/wallet-info-fetched\",e))(Z||{}),$=(e=>(e.CloseMagicWindow=\"close-magic-window\",e))($||{}),m=(e=>(e.PopupUrl=\"popup-url\",e))(m||{}),l=(e=>(e.PopupEvent=\"popup-event\",e.Cancel=\"cancel\",e))(l||{});var _=class extends te.Internal{name=\"oauth2\";config={};compat={\"magic-sdk\":\">=2.4.6\",\"@magic-sdk/react-native\":!1,\"@magic-sdk/react-native-bare\":!1,\"@magic-sdk/react-native-expo\":!1};constructor(){super(),this.seamlessTelegramLogin()}loginWithRedirect(r){return this.utils.createPromiEvent(async(t,a)=>{let n=this.utils.createJsonRpcRequestPayload(\"magic_oauth_login_with_redirect_start\",[{...r,apiKey:this.sdk.apiKey,platform:\"web\"}]),s=await this.request(n),o=s,i=s;if(i.error&&a(this.createError(i.error,i.error_description??\"An error occurred.\",{errorURI:i.error_uri,provider:i.provider})),o?.oauthAuthoriationURI){let d=o.useMagicServerCallback?new URL(o.oauthAuthoriationURI,this.sdk.endpoint).href:o.oauthAuthoriationURI;o?.shouldReturnURI?t(d):window.location.href=d}t(null)})}getRedirectResult(r={}){let t=r?.optionalQueryString||window.location.search,a=window.location.origin+window.location.pathname;return window.history.replaceState(null,\"\",a),ie.call(this,r,t)}loginWithPopup(r){let t=this.utils.createJsonRpcRequestPayload(\"magic_oauth_login_with_popup\",[{...r,returnTo:window.location.href,apiKey:this.sdk.apiKey,platform:\"web\"}]),a=ee(async(n,s)=>{try{let o=this.request(t),i=u=>{this.createIntermediaryEvent(l.PopupEvent,t.id)(u.data)};r.shouldReturnURI&&o.on(m.PopupUrl,u=>{window.addEventListener(\"message\",i),a.emit(m.PopupUrl,u)});let d=await o;window.removeEventListener(\"message\",i),d.error?s(d):n(d)}catch(o){s(o)}});return a.on(l.Cancel,()=>{this.createIntermediaryEvent(l.Cancel,t.id)()}),a}seamlessTelegramLogin(){try{if(!window.location.hash.toString().includes(\"#tgWebAppData\"))return;let t=document.createElement(\"script\");t.src=\"https://telegram.org/js/telegram-web-app.js\",document.head.prepend(t),t.onload=async()=>{try{let a=window.Telegram?.WebApp.initData,n=this.utils.createJsonRpcRequestPayload(\"magic_oauth_verify_telegram_data\",[{userData:a,isMiniApp:!0}]);await this.request(n)}catch(a){console.log(\"Error while verifying telegram data\",a)}}}catch(r){console.log(\"Error while loading telegram-web-app script\",r)}}};function ie(e,r){return this.utils.createPromiEvent(async(t,a)=>{let n=this.utils.createJsonRpcRequestPayload(\"magic_oauth_login_with_redirect_verify\",[{authorizationResponseParams:r,magicApiKey:this.sdk.apiKey,platform:\"web\",...e}]),s=await this.request(n),o=s,i=s;i.error&&a(this.createError(i.error,i.error_description??\"An error occurred.\",{errorURI:i.error_uri,provider:i.provider})),t(o)})}export{g as OAuthErrorCode,_ as OAuthExtension,p as OAuthPayloadMethods};\n//# sourceMappingURL=index.mjs.map\n"],"names":["n","g","c","v","R","f","A","y","I","O","C","P","w","N","S","D","b","L","V","x","F","W","q","H","Y","K","z","Q","J","X","j","Z","m","l","_","te","r","a","s","o","i","d","ie","ee","u","t"],"mappings":"2EAA2E,IAAC,GAAGA,IAAIA,EAAE,MA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B,mCAAmC,CAAC,CAAC,SAASqC,EAAE,UAAU,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,QAAQrC,CAAC,CAAC,OAAOqC,EAAE,CAAC,QAAQ,IAAI,sCAAsCA,CAAC,CAAC,CAAC,CAAC,OAAOD,EAAE,CAAC,QAAQ,IAAI,8CAA8CA,CAAC,CAAC,CAAC,CAAC,EAAE,SAASM,EAAG,EAAEN,EAAE,CAAC,OAAO,KAAK,MAAM,iBAAiB,MAAMS,EAAER,IAAI,CAAC,IAAI,EAAE,KAAK,MAAM,4BAA4B,yCAAyC,CAAC,CAAC,4BAA4BD,EAAE,YAAY,KAAK,IAAI,OAAO,SAAS,MAAM,GAAG,CAAC,CAAC,CAAC,EAAEE,EAAE,MAAM,KAAK,QAAQ,CAAC,EAAEC,EAAED,EAAEE,EAAEF,EAAEE,EAAE,OAAOH,EAAE,KAAK,YAAYG,EAAE,MAAMA,EAAE,mBAAmB,qBAAqB,CAAC,SAASA,EAAE,UAAU,SAASA,EAAE,QAAQ,CAAC,CAAC,EAAEK,EAAEN,CAAC,CAAC,CAAC,CAAC","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-nibyPLVP.js","sources":["../../node_modules/idb-keyval/dist/index.js"],"sourcesContent":["function promisifyRequest(request) {\n return new Promise((resolve, reject) => {\n // @ts-ignore - file size hacks\n request.oncomplete = request.onsuccess = () => resolve(request.result);\n // @ts-ignore - file size hacks\n request.onabort = request.onerror = () => reject(request.error);\n });\n}\nfunction createStore(dbName, storeName) {\n const request = indexedDB.open(dbName);\n request.onupgradeneeded = () => request.result.createObjectStore(storeName);\n const dbp = promisifyRequest(request);\n return (txMode, callback) => dbp.then((db) => callback(db.transaction(storeName, txMode).objectStore(storeName)));\n}\nlet defaultGetStoreFunc;\nfunction defaultGetStore() {\n if (!defaultGetStoreFunc) {\n defaultGetStoreFunc = createStore('keyval-store', 'keyval');\n }\n return defaultGetStoreFunc;\n}\n/**\n * Get a value by its key.\n *\n * @param key\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction get(key, customStore = defaultGetStore()) {\n return customStore('readonly', (store) => promisifyRequest(store.get(key)));\n}\n/**\n * Set a value with a key.\n *\n * @param key\n * @param value\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction set(key, value, customStore = defaultGetStore()) {\n return customStore('readwrite', (store) => {\n store.put(value, key);\n return promisifyRequest(store.transaction);\n });\n}\n/**\n * Set multiple values at once. This is faster than calling set() multiple times.\n * It's also atomic – if one of the pairs can't be added, none will be added.\n *\n * @param entries Array of entries, where each entry is an array of `[key, value]`.\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction setMany(entries, customStore = defaultGetStore()) {\n return customStore('readwrite', (store) => {\n entries.forEach((entry) => store.put(entry[1], entry[0]));\n return promisifyRequest(store.transaction);\n });\n}\n/**\n * Get multiple values by their keys\n *\n * @param keys\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction getMany(keys, customStore = defaultGetStore()) {\n return customStore('readonly', (store) => Promise.all(keys.map((key) => promisifyRequest(store.get(key)))));\n}\n/**\n * Update a value. This lets you see the old value and update it as an atomic operation.\n *\n * @param key\n * @param updater A callback that takes the old value and returns a new value.\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction update(key, updater, customStore = defaultGetStore()) {\n return customStore('readwrite', (store) => \n // Need to create the promise manually.\n // If I try to chain promises, the transaction closes in browsers\n // that use a promise polyfill (IE10/11).\n new Promise((resolve, reject) => {\n store.get(key).onsuccess = function () {\n try {\n store.put(updater(this.result), key);\n resolve(promisifyRequest(store.transaction));\n }\n catch (err) {\n reject(err);\n }\n };\n }));\n}\n/**\n * Delete a particular key from the store.\n *\n * @param key\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction del(key, customStore = defaultGetStore()) {\n return customStore('readwrite', (store) => {\n store.delete(key);\n return promisifyRequest(store.transaction);\n });\n}\n/**\n * Delete multiple keys at once.\n *\n * @param keys List of keys to delete.\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction delMany(keys, customStore = defaultGetStore()) {\n return customStore('readwrite', (store) => {\n keys.forEach((key) => store.delete(key));\n return promisifyRequest(store.transaction);\n });\n}\n/**\n * Clear all values in the store.\n *\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction clear(customStore = defaultGetStore()) {\n return customStore('readwrite', (store) => {\n store.clear();\n return promisifyRequest(store.transaction);\n });\n}\nfunction eachCursor(store, callback) {\n store.openCursor().onsuccess = function () {\n if (!this.result)\n return;\n callback(this.result);\n this.result.continue();\n };\n return promisifyRequest(store.transaction);\n}\n/**\n * Get all keys in the store.\n *\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction keys(customStore = defaultGetStore()) {\n return customStore('readonly', (store) => {\n // Fast path for modern browsers\n if (store.getAllKeys) {\n return promisifyRequest(store.getAllKeys());\n }\n const items = [];\n return eachCursor(store, (cursor) => items.push(cursor.key)).then(() => items);\n });\n}\n/**\n * Get all values in the store.\n *\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction values(customStore = defaultGetStore()) {\n return customStore('readonly', (store) => {\n // Fast path for modern browsers\n if (store.getAll) {\n return promisifyRequest(store.getAll());\n }\n const items = [];\n return eachCursor(store, (cursor) => items.push(cursor.value)).then(() => items);\n });\n}\n/**\n * Get all entries in the store. Each entry is an array of `[key, value]`.\n *\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction entries(customStore = defaultGetStore()) {\n return customStore('readonly', (store) => {\n // Fast path for modern browsers\n // (although, hopefully we'll get a simpler path some day)\n if (store.getAll && store.getAllKeys) {\n return Promise.all([\n promisifyRequest(store.getAllKeys()),\n promisifyRequest(store.getAll()),\n ]).then(([keys, values]) => keys.map((key, i) => [key, values[i]]));\n }\n const items = [];\n return customStore('readonly', (store) => eachCursor(store, (cursor) => items.push([cursor.key, cursor.value])).then(() => items));\n });\n}\n\nexport { clear, createStore, del, delMany, entries, get, getMany, keys, promisifyRequest, set, setMany, update, values };\n"],"names":["promisifyRequest","request","resolve","reject","createStore","dbName","storeName","dbp","txMode","callback","db","defaultGetStoreFunc","defaultGetStore","get","key","customStore","store","set","value","del","clear","eachCursor","keys","items","cursor"],"mappings":"AAAA,SAASA,EAAiBC,EAAS,CAC/B,OAAO,IAAI,QAAQ,CAACC,EAASC,IAAW,CAEpCF,EAAQ,WAAaA,EAAQ,UAAY,IAAMC,EAAQD,EAAQ,MAAM,EAErEA,EAAQ,QAAUA,EAAQ,QAAU,IAAME,EAAOF,EAAQ,KAAK,CACtE,CAAK,CACL,CACA,SAASG,EAAYC,EAAQC,EAAW,CACpC,MAAML,EAAU,UAAU,KAAKI,CAAM,EACrCJ,EAAQ,gBAAkB,IAAMA,EAAQ,OAAO,kBAAkBK,CAAS,EAC1E,MAAMC,EAAMP,EAAiBC,CAAO,EACpC,MAAO,CAACO,EAAQC,IAAaF,EAAI,KAAMG,GAAOD,EAASC,EAAG,YAAYJ,EAAWE,CAAM,EAAE,YAAYF,CAAS,CAAC,CAAC,CACpH,CACA,IAAIK,EACJ,SAASC,GAAkB,CACvB,OAAKD,IACDA,EAAsBP,EAAY,eAAgB,QAAQ,GAEvDO,CACX,CAOA,SAASE,EAAIC,EAAKC,EAAcH,IAAmB,CAC/C,OAAOG,EAAY,WAAaC,GAAUhB,EAAiBgB,EAAM,IAAIF,CAAG,CAAC,CAAC,CAC9E,CAQA,SAASG,EAAIH,EAAKI,EAAOH,EAAcH,EAAe,EAAI,CACtD,OAAOG,EAAY,YAAcC,IAC7BA,EAAM,IAAIE,EAAOJ,CAAG,EACbd,EAAiBgB,EAAM,WAAW,EAC5C,CACL,CAqDA,SAASG,EAAIL,EAAKC,EAAcH,IAAmB,CAC/C,OAAOG,EAAY,YAAcC,IAC7BA,EAAM,OAAOF,CAAG,EACTd,EAAiBgB,EAAM,WAAW,EAC5C,CACL,CAkBA,SAASI,EAAML,EAAcH,IAAmB,CAC5C,OAAOG,EAAY,YAAcC,IAC7BA,EAAM,MAAK,EACJhB,EAAiBgB,EAAM,WAAW,EAC5C,CACL,CACA,SAASK,EAAWL,EAAOP,EAAU,CACjC,OAAAO,EAAM,aAAa,UAAY,UAAY,CAClC,KAAK,SAEVP,EAAS,KAAK,MAAM,EACpB,KAAK,OAAO,WACpB,EACWT,EAAiBgB,EAAM,WAAW,CAC7C,CAMA,SAASM,EAAKP,EAAcH,IAAmB,CAC3C,OAAOG,EAAY,WAAaC,GAAU,CAEtC,GAAIA,EAAM,WACN,OAAOhB,EAAiBgB,EAAM,WAAU,CAAE,EAE9C,MAAMO,EAAQ,CAAA,EACd,OAAOF,EAAWL,EAAQQ,GAAWD,EAAM,KAAKC,EAAO,GAAG,CAAC,EAAE,KAAK,IAAMD,CAAK,CACrF,CAAK,CACL","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as o,n as s,T as c,
|
|
1
|
+
import{m as o,n as s,T as c,bC as l,r as i,j as t,bE as g,E as S,by as I}from"./index-CGCvheGi.js";import{S as F,P as z,a as M}from"./swiper-react-CrLD22Xk.js";const $=o(s)(({theme:e})=>({position:"relative",display:"flex",flexDirection:"column",alignItems:"center",gap:e.spacing(6),padding:`${e.spacing(10)} ${e.spacing(2.5)}`,width:"100%",backgroundColor:"#570F88",overflow:"hidden","&::before":{content:'""',position:"absolute",top:0,left:0,width:"60%",height:"100%",backgroundImage:"url(/ellipse_gradient.webp)",backgroundSize:"cover",backgroundPosition:"center left",backgroundRepeat:"no-repeat",pointerEvents:"none",zIndex:0},[e.breakpoints.down("sm")]:{padding:`${e.spacing(6)} 0`,gap:e.spacing(4)}})),E=o(c)(({theme:e})=>({color:l.white,fontWeight:600,textAlign:"center",[e.breakpoints.down("sm")]:{fontSize:32,padding:`0 ${e.spacing(3)}`}})),P=o(s)(({theme:e})=>({display:"flex",gap:e.spacing(3),width:"100%",justifyContent:"center",padding:`0 ${e.spacing(2.5)}`,zIndex:1,[e.breakpoints.down("sm")]:{display:"none"}})),T=o(s)(({theme:e})=>({position:"relative",flex:"1 1 0",minWidth:0,maxWidth:680,height:450,borderRadius:e.spacing(3),overflow:"hidden",backgroundColor:"rgba(0, 0, 0, 0.6)",boxShadow:"0px 2px 4px 0px rgba(0, 0, 0, 0.04)",cursor:"pointer",display:"flex",flexDirection:"column","&:hover .catch-vibe-video":{opacity:1},"&:hover .catch-vibe-image":{opacity:0},[e.breakpoints.down("lg")]:{height:380},[e.breakpoints.down("md")]:{height:320}})),V=o(s)({position:"relative",flex:1,minHeight:0,borderRadius:"24px",overflow:"hidden"}),R=o("img")({position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"cover",transition:"opacity 0.4s ease",zIndex:1}),A=o("video")({position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"cover",opacity:0,transition:"opacity 0.4s ease"}),N=o(s)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",padding:`${e.spacing(2)} ${e.spacing(1.5)} ${e.spacing(2)} ${e.spacing(2)}`,flexShrink:0})),W=o(s)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1)})),L=o(c)({color:l.white,fontWeight:600,fontSize:14,lineHeight:1.57}),U=o(c)({color:l.white,fontWeight:600,fontSize:14,lineHeight:1.57}),B=o(s)({position:"absolute",bottom:13,left:13,display:"flex",alignItems:"center",gap:4,height:26,padding:"5.5px 6px",borderRadius:8,backgroundColor:"#161518",zIndex:2,transition:"opacity 0.3s ease"}),D=o("button")({position:"absolute",top:12,right:12,width:32,height:32,borderRadius:8,border:"none",backgroundColor:"rgba(0, 0, 0, 0.6)",color:"#FCFCFC",fontSize:16,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",zIndex:3,transition:"background-color 0.2s ease","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.8)"}}),H=o(s)({width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #FCFCFC",flexShrink:0}),G=o(c)({color:"#FCFCFC",fontWeight:600,fontSize:14,lineHeight:"normal",whiteSpace:"nowrap"});o("img")(({theme:e})=>({position:"absolute",right:-20,bottom:-40,height:"110%",maxHeight:650,pointerEvents:"none",zIndex:0,[e.breakpoints.down("lg")]:{right:-60,opacity:.5},[e.breakpoints.down("md")]:{display:"none"}}));const Q=o(s)(({theme:e})=>({display:"none",width:"100%",zIndex:1,[e.breakpoints.down("sm")]:{display:"block"},"& .swiper":{paddingBottom:e.spacing(6)},"& .swiper-slide":{height:300,padding:"0 16px",boxSizing:"border-box"},"& .swiper-pagination":{bottom:"0 !important"},"& .swiper-pagination-bullet":{backgroundColor:"rgba(255, 255, 255, 0.4)",opacity:1,width:8,height:8},"& .swiper-pagination-bullet-active":{backgroundColor:l.white}}));function _(e){const a=Math.floor(e/60),d=Math.floor(e%60);return`${a}:${d.toString().padStart(2,"0")}`}const b=({item:e})=>{const a=i.useRef(null),[d,u]=i.useState(!1),[h,x]=i.useState(!0),[f,m]=i.useState(null),{data:w}=S(e.userAddress,{skip:!e.userAddress}),p=w?.avatars?.[0],C=`${window.location.origin}${e.userAvatarUrl}`.replace(/^http:\/\//,"https://"),v=!!p?.avatar?.snapshots?.face256?p:{name:p?.name??e.userName,ethAddress:e.userAddress??"",avatar:{snapshots:{face256:C,body:""}}};i.useEffect(()=>{const n=a.current;if(!n)return;const r=()=>{n.duration&&isFinite(n.duration)&&m(_(n.duration))};return n.addEventListener("loadedmetadata",r),()=>n.removeEventListener("loadedmetadata",r)},[]);const y=i.useCallback(()=>{const n=a.current;n&&n.play(),u(!0)},[]),k=i.useCallback(()=>{const n=a.current;n&&(n.pause(),n.currentTime=0),u(!1)},[]),j=i.useCallback(n=>{n.stopPropagation();const r=a.current;r&&(r.muted=!r.muted,x(r.muted))},[]);return t.jsxs(T,{onMouseEnter:y,onMouseLeave:k,children:[t.jsxs(V,{children:[t.jsx(R,{className:"catch-vibe-image",src:e.imageUrl,alt:e.userName,loading:"lazy",width:680,height:382}),t.jsx(A,{className:"catch-vibe-video",ref:a,loop:!0,muted:!0,playsInline:!0,preload:"metadata",src:e.videoUrl}),!d&&t.jsxs(B,{children:[t.jsx(H,{}),t.jsx(G,{children:f??"0:00"})]}),d&&t.jsx(D,{onClick:j,"aria-label":h?"Unmute":"Mute",children:h?"🔇":"🔊"})]}),t.jsxs(N,{children:[t.jsxs(W,{children:[t.jsx(I,{size:"small",avatar:v}),t.jsx(L,{children:e.userName})]}),t.jsx(U,{children:"Community Member"})]})]})},q=i.memo(()=>t.jsxs($,{children:[t.jsx(E,{variant:"h3",children:g.title}),t.jsx(P,{children:g.cards.map((e,a)=>t.jsx(b,{item:e},a))}),t.jsx(Q,{children:t.jsx(F,{modules:[z],pagination:{clickable:!0},loop:!0,slidesPerView:1,spaceBetween:0,children:g.cards.map((e,a)=>t.jsx(M,{children:t.jsx(b,{item:e})},a))})})]}));q.displayName="CatchTheVibe";export{q as CatchTheVibe};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-wKfm7r6L.js","sources":["../../src/components/Home/CatchTheVibe/CatchTheVibe.styled.ts","../../src/components/Home/CatchTheVibe/CatchTheVibe.tsx"],"sourcesContent":["import { Box, Typography, dclColors, styled } from 'decentraland-ui2'\n\nconst CatchTheVibeContainer = styled(Box)(({ theme }) => ({\n position: 'relative',\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n gap: theme.spacing(6),\n padding: `${theme.spacing(10)} ${theme.spacing(2.5)}`,\n width: '100%',\n backgroundColor: '#570F88',\n overflow: 'hidden',\n // eslint-disable-next-line @typescript-eslint/naming-convention\n '&::before': {\n content: '\"\"',\n position: 'absolute',\n top: 0,\n left: 0,\n width: '60%',\n height: '100%',\n backgroundImage: 'url(/ellipse_gradient.webp)',\n backgroundSize: 'cover',\n backgroundPosition: 'center left',\n backgroundRepeat: 'no-repeat',\n pointerEvents: 'none',\n zIndex: 0\n },\n [theme.breakpoints.down('sm')]: {\n padding: `${theme.spacing(6)} 0`,\n gap: theme.spacing(4)\n }\n}))\n\nconst CatchTheVibeTitle = styled(Typography)(({ theme }) => ({\n color: dclColors.neutral.white,\n fontWeight: 600,\n textAlign: 'center',\n [theme.breakpoints.down('sm')]: {\n fontSize: 32,\n padding: `0 ${theme.spacing(3)}`\n }\n}))\n\nconst CardsRow = styled(Box)(({ theme }) => ({\n display: 'flex',\n gap: theme.spacing(3),\n width: '100%',\n justifyContent: 'center',\n padding: `0 ${theme.spacing(2.5)}`,\n zIndex: 1,\n [theme.breakpoints.down('sm')]: {\n display: 'none'\n }\n}))\n\nconst VideoCard = styled(Box)(({ theme }) => ({\n position: 'relative',\n flex: '1 1 0',\n minWidth: 0,\n maxWidth: 680,\n height: 450,\n borderRadius: theme.spacing(3),\n overflow: 'hidden',\n backgroundColor: 'rgba(0, 0, 0, 0.6)',\n boxShadow: '0px 2px 4px 0px rgba(0, 0, 0, 0.04)',\n cursor: 'pointer',\n display: 'flex',\n flexDirection: 'column',\n // eslint-disable-next-line @typescript-eslint/naming-convention\n '&:hover .catch-vibe-video': {\n opacity: 1\n },\n // eslint-disable-next-line @typescript-eslint/naming-convention\n '&:hover .catch-vibe-image': {\n opacity: 0\n },\n [theme.breakpoints.down('lg')]: {\n height: 380\n },\n [theme.breakpoints.down('md')]: {\n height: 320\n }\n}))\n\nconst MediaContainer = styled(Box)({\n position: 'relative',\n flex: 1,\n minHeight: 0,\n borderRadius: '24px',\n overflow: 'hidden'\n})\n\nconst CardImage = styled('img')({\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n objectFit: 'cover',\n transition: 'opacity 0.4s ease',\n zIndex: 1\n})\n\nconst VideoElement = styled('video')({\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n objectFit: 'cover',\n opacity: 0,\n transition: 'opacity 0.4s ease'\n})\n\nconst VideoCardFooter = styled(Box)(({ theme }) => ({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n padding: `${theme.spacing(2)} ${theme.spacing(1.5)} ${theme.spacing(2)} ${theme.spacing(2)}`,\n flexShrink: 0\n}))\n\nconst UserInfo = styled(Box)(({ theme }) => ({\n display: 'flex',\n alignItems: 'center',\n gap: theme.spacing(1)\n}))\n\nconst UserName = styled(Typography)({\n color: dclColors.neutral.white,\n fontWeight: 600,\n fontSize: 14,\n lineHeight: 1.57\n})\n\nconst CommunityLabel = styled(Typography)({\n color: dclColors.neutral.white,\n fontWeight: 600,\n fontSize: 14,\n lineHeight: 1.57\n})\n\nconst PlayBadge = styled(Box)({\n position: 'absolute',\n bottom: 13,\n left: 13,\n display: 'flex',\n alignItems: 'center',\n gap: 4,\n height: 26,\n padding: '5.5px 6px',\n borderRadius: 8,\n backgroundColor: '#161518',\n zIndex: 2,\n transition: 'opacity 0.3s ease'\n})\n\nconst MuteButton = styled('button')({\n position: 'absolute',\n top: 12,\n right: 12,\n width: 32,\n height: 32,\n borderRadius: 8,\n border: 'none',\n backgroundColor: 'rgba(0, 0, 0, 0.6)',\n color: '#FCFCFC',\n fontSize: 16,\n cursor: 'pointer',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n zIndex: 3,\n transition: 'background-color 0.2s ease',\n // eslint-disable-next-line @typescript-eslint/naming-convention\n '&:hover': {\n backgroundColor: 'rgba(0, 0, 0, 0.8)'\n }\n})\n\nconst PlayIcon = styled(Box)({\n width: 0,\n height: 0,\n borderStyle: 'solid',\n borderWidth: '5px 0 5px 8px',\n borderColor: 'transparent transparent transparent #FCFCFC',\n flexShrink: 0\n})\n\nconst DurationText = styled(Typography)({\n color: '#FCFCFC',\n fontWeight: 600,\n fontSize: 14,\n lineHeight: 'normal',\n whiteSpace: 'nowrap'\n})\n\nconst PersonaImage = styled('img')(({ theme }) => ({\n position: 'absolute',\n right: -20,\n bottom: -40,\n height: '110%',\n maxHeight: 650,\n pointerEvents: 'none',\n zIndex: 0,\n [theme.breakpoints.down('lg')]: {\n right: -60,\n opacity: 0.5\n },\n [theme.breakpoints.down('md')]: {\n display: 'none'\n }\n}))\n\nconst MobileCarouselContainer = styled(Box)(({ theme }) => ({\n display: 'none',\n width: '100%',\n zIndex: 1,\n [theme.breakpoints.down('sm')]: {\n display: 'block'\n },\n // eslint-disable-next-line @typescript-eslint/naming-convention\n '& .swiper': {\n paddingBottom: theme.spacing(6)\n },\n // eslint-disable-next-line @typescript-eslint/naming-convention\n '& .swiper-slide': {\n height: 300,\n padding: '0 16px',\n boxSizing: 'border-box'\n },\n // eslint-disable-next-line @typescript-eslint/naming-convention\n '& .swiper-pagination': {\n bottom: '0 !important'\n },\n // eslint-disable-next-line @typescript-eslint/naming-convention\n '& .swiper-pagination-bullet': {\n backgroundColor: 'rgba(255, 255, 255, 0.4)',\n opacity: 1,\n width: 8,\n height: 8\n },\n // eslint-disable-next-line @typescript-eslint/naming-convention\n '& .swiper-pagination-bullet-active': {\n backgroundColor: dclColors.neutral.white\n }\n}))\n\nexport {\n CardImage,\n CardsRow,\n MediaContainer,\n CatchTheVibeContainer,\n CatchTheVibeTitle,\n CommunityLabel,\n DurationText,\n MobileCarouselContainer,\n MuteButton,\n PersonaImage,\n PlayBadge,\n PlayIcon,\n UserInfo,\n UserName,\n VideoCard,\n VideoCardFooter,\n VideoElement\n}\n","import { memo, useCallback, useEffect, useRef, useState } from 'react'\nimport 'swiper/css'\nimport 'swiper/css/pagination'\nimport { Pagination } from 'swiper/modules'\nimport { Swiper, SwiperSlide } from 'swiper/react'\nimport type { Avatar } from '@dcl/schemas'\nimport { AvatarFace } from 'decentraland-ui2'\nimport { catchTheVibeContent } from '../../../data/static-content'\nimport { useGetProfileQuery } from '../../../features/profile/profile.client'\nimport {\n CardImage,\n CardsRow,\n CatchTheVibeContainer,\n CatchTheVibeTitle,\n CommunityLabel,\n DurationText,\n MediaContainer,\n MobileCarouselContainer,\n MuteButton,\n PlayBadge,\n PlayIcon,\n UserInfo,\n UserName,\n VideoCard,\n VideoCardFooter,\n VideoElement\n} from './CatchTheVibe.styled'\n\ninterface CardItem {\n imageUrl: string\n videoUrl: string\n userName: string\n userAddress?: string\n userAvatarUrl: string\n}\n\nfunction formatDuration(seconds: number): string {\n const mins = Math.floor(seconds / 60)\n const secs = Math.floor(seconds % 60)\n return `${mins}:${secs.toString().padStart(2, '0')}`\n}\n\nconst VideoCardContent = ({ item }: { item: CardItem }) => {\n const videoRef = useRef<HTMLVideoElement>(null)\n const [isPlaying, setIsPlaying] = useState(false)\n const [isMuted, setIsMuted] = useState(true)\n const [duration, setDuration] = useState<string | null>(null)\n const { data: profile } = useGetProfileQuery(item.userAddress, { skip: !item.userAddress })\n const fetchedAvatar = profile?.avatars?.[0] as Avatar | undefined\n // AvatarFace only passes through URLs starting with https://.\n const fallbackFace = `${window.location.origin}${item.userAvatarUrl}`.replace(/^http:\\/\\//, 'https://')\n\n // Use fetched profile if it has a face256 snapshot, otherwise fall back to static image\n const hasFace = !!fetchedAvatar?.avatar?.snapshots?.face256\n const avatar: Avatar = hasFace\n ? fetchedAvatar\n : ({\n name: fetchedAvatar?.name ?? item.userName,\n ethAddress: item.userAddress ?? '',\n avatar: { snapshots: { face256: fallbackFace, body: '' } }\n } as Avatar)\n\n useEffect(() => {\n const video = videoRef.current\n if (!video) return\n const handleLoaded = () => {\n if (video.duration && isFinite(video.duration)) {\n setDuration(formatDuration(video.duration))\n }\n }\n video.addEventListener('loadedmetadata', handleLoaded)\n return () => video.removeEventListener('loadedmetadata', handleLoaded)\n }, [])\n\n const handleMouseEnter = useCallback(() => {\n const video = videoRef.current\n if (video) {\n video.play()\n }\n setIsPlaying(true)\n }, [])\n\n const handleMouseLeave = useCallback(() => {\n const video = videoRef.current\n if (video) {\n video.pause()\n video.currentTime = 0\n }\n setIsPlaying(false)\n }, [])\n\n const toggleMute = useCallback((e: React.MouseEvent) => {\n e.stopPropagation()\n const video = videoRef.current\n if (video) {\n video.muted = !video.muted\n setIsMuted(video.muted)\n }\n }, [])\n\n return (\n <VideoCard onMouseEnter={handleMouseEnter} onMouseLeave={handleMouseLeave}>\n <MediaContainer>\n <CardImage className=\"catch-vibe-image\" src={item.imageUrl} alt={item.userName} loading=\"lazy\" width={680} height={382} />\n <VideoElement className=\"catch-vibe-video\" ref={videoRef} loop muted playsInline preload=\"metadata\" src={item.videoUrl} />\n {!isPlaying && (\n <PlayBadge>\n <PlayIcon />\n <DurationText>{duration ?? '0:00'}</DurationText>\n </PlayBadge>\n )}\n {isPlaying && (\n <MuteButton onClick={toggleMute} aria-label={isMuted ? 'Unmute' : 'Mute'}>\n {isMuted ? '🔇' : '🔊'}\n </MuteButton>\n )}\n </MediaContainer>\n <VideoCardFooter>\n <UserInfo>\n <AvatarFace size=\"small\" avatar={avatar} />\n <UserName>{item.userName}</UserName>\n </UserInfo>\n <CommunityLabel>Community Member</CommunityLabel>\n </VideoCardFooter>\n </VideoCard>\n )\n}\n\nconst CatchTheVibe = memo(() => {\n return (\n <CatchTheVibeContainer>\n <CatchTheVibeTitle variant=\"h3\">{catchTheVibeContent.title}</CatchTheVibeTitle>\n <CardsRow>\n {catchTheVibeContent.cards.map((item, index) => (\n <VideoCardContent key={index} item={item} />\n ))}\n </CardsRow>\n <MobileCarouselContainer>\n <Swiper modules={[Pagination]} pagination={{ clickable: true }} loop slidesPerView={1} spaceBetween={0}>\n {catchTheVibeContent.cards.map((item, index) => (\n <SwiperSlide key={index}>\n <VideoCardContent item={item} />\n </SwiperSlide>\n ))}\n </Swiper>\n </MobileCarouselContainer>\n </CatchTheVibeContainer>\n )\n})\n\nCatchTheVibe.displayName = 'CatchTheVibe'\n\nexport { CatchTheVibe }\n"],"names":["CatchTheVibeContainer","styled","Box","theme","CatchTheVibeTitle","Typography","dclColors.neutral","CardsRow","VideoCard","MediaContainer","CardImage","VideoElement","VideoCardFooter","UserInfo","UserName","CommunityLabel","PlayBadge","MuteButton","PlayIcon","DurationText","MobileCarouselContainer","formatDuration","seconds","mins","secs","VideoCardContent","item","videoRef","useRef","isPlaying","setIsPlaying","useState","isMuted","setIsMuted","duration","setDuration","profile","useGetProfileQuery","fetchedAvatar","fallbackFace","avatar","useEffect","video","handleLoaded","handleMouseEnter","useCallback","handleMouseLeave","toggleMute","e","jsxs","jsx","AvatarFace","CatchTheVibe","memo","catchTheVibeContent","index","Swiper","Pagination","SwiperSlide"],"mappings":"gKAEA,MAAMA,EAAwBC,EAAOC,CAAG,EAAE,CAAC,CAAE,MAAAC,MAAa,CACxD,SAAU,WACV,QAAS,OACT,cAAe,SACf,WAAY,SACZ,IAAKA,EAAM,QAAQ,CAAC,EACpB,QAAS,GAAGA,EAAM,QAAQ,EAAE,CAAC,IAAIA,EAAM,QAAQ,GAAG,CAAC,GACnD,MAAO,OACP,gBAAiB,UACjB,SAAU,SAEV,YAAa,CACX,QAAS,KACT,SAAU,WACV,IAAK,EACL,KAAM,EACN,MAAO,MACP,OAAQ,OACR,gBAAiB,8BACjB,eAAgB,QAChB,mBAAoB,cACpB,iBAAkB,YAClB,cAAe,OACf,OAAQ,CACV,EACA,CAACA,EAAM,YAAY,KAAK,IAAI,CAAC,EAAG,CAC9B,QAAS,GAAGA,EAAM,QAAQ,CAAC,CAAC,KAC5B,IAAKA,EAAM,QAAQ,CAAC,CACtB,CACF,EAAE,EAEIC,EAAoBH,EAAOI,CAAU,EAAE,CAAC,CAAE,MAAAF,MAAa,CAC3D,MAAOG,EAAkB,MACzB,WAAY,IACZ,UAAW,SACX,CAACH,EAAM,YAAY,KAAK,IAAI,CAAC,EAAG,CAC9B,SAAU,GACV,QAAS,KAAKA,EAAM,QAAQ,CAAC,CAAC,EAChC,CACF,EAAE,EAEII,EAAWN,EAAOC,CAAG,EAAE,CAAC,CAAE,MAAAC,MAAa,CAC3C,QAAS,OACT,IAAKA,EAAM,QAAQ,CAAC,EACpB,MAAO,OACP,eAAgB,SAChB,QAAS,KAAKA,EAAM,QAAQ,GAAG,CAAC,GAChC,OAAQ,EACR,CAACA,EAAM,YAAY,KAAK,IAAI,CAAC,EAAG,CAC9B,QAAS,MACX,CACF,EAAE,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