@dcl/shop 1.14.0 → 1.14.1-35632037835.commit-fbecd50
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/{Activity-ClJDhuA1.js → Activity-inUKNYv0.js} +4 -4
- package/_assets/{AnimatedBackground-DUa7Ov2v.js → AnimatedBackground-BpWtSU6m.js} +3 -3
- package/_assets/{Assets-BcIc0eUO.js → Assets-35YpqB8m.js} +3 -3
- package/_assets/{Cart-D_ERTjKD.js → Cart-DZyJeWtB.js} +2 -2
- package/_assets/{Collection-D_kOCbdO.js → Collection-C_GClyzv.js} +2 -2
- package/_assets/{CollectionCarousel-B6lWrJsP.js → CollectionCarousel-BklMZKtU.js} +3 -3
- package/_assets/{Confetti-Bew-g_8a.js → Confetti-COk_BPeM.js} +4 -4
- package/_assets/{ConstantsUtil-BEIMadrA.js → ConstantsUtil-Dvn012DD.js} +2 -2
- package/_assets/{ContentClient-y5W_g7Vn.js → ContentClient-C59RYiVP.js} +2 -2
- package/_assets/{Creator-COzG8j2A.js → Creator-vctx0wBj.js} +2 -2
- package/_assets/{CreditPackPicker-B3dHhf6V.js → CreditPackPicker-4yNg2DzX.js} +52 -52
- package/_assets/{DeploymentBuilder-BqOyy9Nu.js → DeploymentBuilder-Cs6gjb_o.js} +2 -2
- package/_assets/{EmotePlaybackBar-CkJMl8Ys.js → EmotePlaybackBar-DNCst361.js} +3 -3
- package/_assets/{ErrorNotice-BzCdhpYg.js → ErrorNotice-BWLszBSm.js} +2 -2
- package/_assets/{Event-DmwvHWg0.js → Event-BaMrVGZR.js} +2 -2
- package/_assets/{ExchangeController-CcJ992u0.js → ExchangeController-0ZEQGu_P.js} +2 -2
- package/_assets/{Faq-DyMSOSdu.js → Faq-Bc1isIbd.js} +2 -2
- package/_assets/{Filters-0mhMwsT4.js → Filters-Bdy7f7h2.js} +2 -2
- package/_assets/{GetCredits-Zpdkomal.js → GetCredits-Dz5UiVe1.js} +2 -2
- package/_assets/{Grow-BMYVzAB-.js → Grow-DrKZoPX_.js} +2 -2
- package/_assets/{HelpersUtil-D3GTjIqd.js → HelpersUtil-M0oyMgg5.js} +2 -2
- package/_assets/{ItemDetail-CJj8jEHw.js → ItemDetail-U3D0QOds.js} +2 -2
- package/_assets/{LoadMore-BoawUj5u.js → LoadMore-B0-EZXVq.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-ZBF47pKw.js → ManaPricingBanner.styles-BcV1fmFh.js} +2 -2
- package/_assets/{MyAssets-B716pQR9.js → MyAssets-CL0HjfDU.js} +2 -2
- package/_assets/{MyFavorites-C7E4rGlu.js → MyFavorites-C6ENDHMO.js} +2 -2
- package/_assets/{MyStore-B4ovbK7K.js → MyStore-DkzIxruw.js} +2 -2
- package/_assets/{NetworkUtil-Cfolzg8H.js → NetworkUtil-BLYBONSi.js} +2 -2
- package/_assets/{NotFound-BeAnWp_j.js → NotFound-Ca4Tocwq.js} +2 -2
- package/_assets/{NotificationsBell-BKPZceet.js → NotificationsBell-DyVuMuWC.js} +2 -2
- package/_assets/{OutfitDetail-84M6woQd.js → OutfitDetail-BHfCdk_j.js} +2 -2
- package/_assets/{OutfitPreview-B9rXgc6T.js → OutfitPreview-CSrPyIIv.js} +2 -2
- package/_assets/{OutfitStudio-Bmcs3UQ2.js → OutfitStudio-Uebpkzx3.js} +2 -2
- package/_assets/PaymentMethodStep-CUa3o3Ue.js +370 -0
- package/_assets/{SaleCountdown-ZqNNRvGl.js → SaleCountdown-S_6snZFE.js} +2 -2
- package/_assets/{Spinner-q3iTi3ii.js → Spinner-eGV-iSwU.js} +2 -2
- package/_assets/{StoreSettings-C2RcxecX.js → StoreSettings-ClhIfxWz.js} +2 -2
- package/_assets/{Success-DC7IQtYH.js → Success-DMX_fJnX.js} +2 -2
- package/_assets/{SwapController-ZhjMiIuW.js → SwapController-ljaMFzZb.js} +2 -2
- package/_assets/{Tooltip-D93wbqH3.js → Tooltip-BBYkvHeY.js} +2 -2
- package/_assets/{TradeService-CitNPz55.js → TradeService-ciK_DNeD.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-C45teoHA.js → W3MFrameProviderSingleton-BWCpODC1.js} +4 -4
- package/_assets/{WebCryptoP256-P1TJpkT3.js → WebCryptoP256-CfglyHOF.js} +2 -2
- package/_assets/{basic-DFLU4hvG.js → basic-D6j1wGT7.js} +2 -2
- package/_assets/{biconomy-Cn58cwLB.js → biconomy-Do_1aVRu.js} +2 -2
- package/_assets/{browseLayout.styles-BQX0gV95.js → browseLayout.styles-CJyAUz48.js} +2 -2
- package/_assets/{browser-2FaDq09e.js → browser-BcJ0xKQl.js} +2 -2
- package/_assets/{browser-DUVgJQ9P.js → browser-C_hvBRgT.js} +2 -2
- package/_assets/{browser-ponyfill-yjhsbKOy.js → browser-ponyfill-CNSzs-hu.js} +2 -2
- package/_assets/{buy-gasless-DMB8lxmW.js → buy-gasless-B9kgdnfS.js} +2 -2
- package/_assets/{buy-CTkywn1H.js → buy-l-dx4ez4.js} +2 -2
- package/_assets/{cart-checkout-VtT_e12v.js → cart-checkout-WB4Aki5K.js} +2 -2
- package/_assets/{categories-D9ztnT0t.js → categories-DwJRDHkQ.js} +2 -2
- package/_assets/{ccip-BnqB_0si.js → ccip-BUy0QsN2.js} +2 -2
- package/_assets/{ccip-DPDrDIOJ.js → ccip-Dy7wFAC4.js} +2 -2
- package/_assets/{chains-DSedwvSh.js → chains-Bbgo2fp7.js} +2 -2
- package/_assets/collectionPage.styles-cQUsGWNO.js +41 -0
- package/_assets/{common-Csv1Hgun.js → common-C0TEYD1v.js} +2 -2
- package/_assets/{controller-BbIvRnu_.js → controller-e7Hs7BkP.js} +3 -3
- package/_assets/{core-B1SeNqWd.js → core-DtxnGoEM.js} +5 -5
- package/_assets/{createSvgIcon-DTlsIw_n.js → createSvgIcon-CVy36-mT.js} +2 -2
- package/_assets/credits-coin-DNt6YtOL.webp +0 -0
- package/_assets/{crumbs.styles-BjlZjxKT.js → crumbs.styles-D5t9ZymW.js} +2 -2
- package/_assets/{custom-CyNnwyrk.js → custom-Czu7fjDs.js} +2 -2
- package/_assets/{data-capture-bl3RuFhy.js → data-capture-BCQWVl8E.js} +2 -2
- package/_assets/{dcl-schemas-DX4k9umP.js → dcl-schemas-3U1mdpFi.js} +2 -2
- package/_assets/{decimals-BPknTcmM.js → decimals-CjieMC9w.js} +2 -2
- package/_assets/{decimals-BSb-J95O.js → decimals-W_aTtZ2E.js} +2 -2
- package/_assets/{detectExtension-fRCVx78W.js → detectExtension-CkvbamVB.js} +2 -2
- package/_assets/{disposePreview-DvIwpsnU.js → disposePreview-XHK6e7R8.js} +2 -2
- package/_assets/{email-gkNu-Hlx.js → email-DffbY3J0.js} +2 -2
- package/_assets/{embedded-wallet-Cs5NPUt8.js → embedded-wallet-C7XYnNol.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-BJVzjU1c.js → emotion-styled.browser.esm-BCXi3z-x.js} +2 -2
- package/_assets/{engine-CW2Z8pVD.js → engine-BgQXYdSF.js} +2 -2
- package/_assets/{errors-4zJ_Wl5M.js → errors-k8QKrO3n.js} +2 -2
- package/_assets/{estimate-l1-fee-Badwsb8m.js → estimate-l1-fee-CCBaTQ1t.js} +2 -2
- package/_assets/{eth_estimateGas-BgFpyTkS.js → eth_estimateGas-B4Sg8wqy.js} +2 -2
- package/_assets/{eth_getStorageAt-DKEPQON0.js → eth_getStorageAt-BplgevnA.js} +2 -2
- package/_assets/{eth_getTransactionCount-gaEnGR6r.js → eth_getTransactionCount-DVcNoBgK.js} +2 -2
- package/_assets/{ethereum-S8WcHv6J.js → ethereum-CQydc1Ut.js} +2 -2
- package/_assets/{ethers-zQzQ03Jk.js → ethers-gO8XAtHb.js} +2 -2
- package/_assets/{events-Dw8qdJzW.js → events-DytDR1pj.js} +2 -2
- package/_assets/{execute-U5naAh6E.js → execute-6CEX8udV.js} +3 -3
- package/_assets/{extractIPFS-BNCXnSzg.js → extractIPFS-CbUf6rNd.js} +2 -2
- package/_assets/{features-BBcVsOgK.js → features-CTuCIw1P.js} +2 -2
- package/_assets/{fetchTokenMetadata-By10s6gT.js → fetchTokenMetadata-CVy9k2F4.js} +3 -3
- package/_assets/{field.styles-BIZZX6wX.js → field.styles-ClSgj7N0.js} +2 -2
- package/_assets/{fortmatic-B8kFivHm.js → fortmatic-LT9laKhh.js} +2 -2
- package/_assets/{get-bytecode-DrE4YuwF.js → get-bytecode-CSS1YVF9.js} +2 -2
- package/_assets/{get-ecosystem-wallet-info-BNQ_hX9h.js → get-ecosystem-wallet-info-D9cOCaNs.js} +2 -2
- package/_assets/{getBalance-DLClyv9X.js → getBalance-4QZ2PKh5.js} +3 -3
- package/_assets/{getInstalledModules-IfG8UyYC.js → getInstalledModules-DF6Uhu-q.js} +2 -2
- package/_assets/{getNFT-oyj-taig.js → getNFT-BNbVTh6M.js} +2 -2
- package/_assets/{getNFT-DJiUJ9Oi.js → getNFT-DFyypRIH.js} +3 -3
- package/_assets/{grid.styles-Z4awgikx.js → grid.styles-H0I3Ho34.js} +2 -2
- package/_assets/{hashTypedData-D4-M18T2.js → hashTypedData-CXI5JlKJ.js} +2 -2
- package/_assets/{hashTypedData-FU3Vjhpj.js → hashTypedData-DfjL9mp4.js} +2 -2
- package/_assets/{import-CEcKo4mP.js → import-Bh04BZbH.js} +2 -2
- package/_assets/{in-app-I0cf7WYG.js → in-app-B0HPyLJF.js} +2 -2
- package/_assets/{in-app-wallet-calls-CKuFDFk-.js → in-app-wallet-calls-WH4fc1EE.js} +2 -2
- package/_assets/{index-CxnrQJZL.js → index--CgUi9xV.js} +2 -2
- package/_assets/{index-CkieTCyo.js → index-0zSfjeG_.js} +2 -2
- package/_assets/{index-Cn2VZ7A5.js → index-1-ma0rIa.js} +2 -2
- package/_assets/{index-CgIMFF8o.js → index-1yggTr3I.js} +2 -2
- package/_assets/{index-C1hKYMFK.js → index-3bIZ84ow.js} +2 -2
- package/_assets/{index-QVjmP3xl.js → index-8R_MCmk1.js} +2 -2
- package/_assets/{index-DYg0EuOr.js → index-8pMP5sxz.js} +2 -2
- package/_assets/{index-BAKQxGdL.js → index-B1MmgkRF.js} +2 -2
- package/_assets/{index-BULAWDSX.js → index-B33RtfV3.js} +2 -2
- package/_assets/{index-mTyAR_XJ.js → index-B3Simgjj.js} +2 -2
- package/_assets/{index-BjBSPCU1.js → index-B3YhvM8S.js} +2 -2
- package/_assets/{index-Be-ctASu.js → index-B7nVwmZg.js} +2 -2
- package/_assets/{index-Dtp8rC8A.js → index-BB1C8pZM.js} +2 -2
- package/_assets/{index-CoM_vldC.js → index-BBSBu9iZ.js} +2 -2
- package/_assets/{index-W4ibltdC.js → index-BCDacV8B.js} +2 -2
- package/_assets/{index-FjNEHsud.js → index-BDJe4Oew.js} +2 -2
- package/_assets/{index-C2mGmByD.js → index-BGK-pqBM.js} +2 -2
- package/_assets/{index-BQGv2KeQ.js → index-BHDy8rYz.js} +2 -2
- package/_assets/{index-GJ64rDmp.js → index-BIXpe0dy.js} +2 -2
- package/_assets/{index-DLs1oPw4.js → index-BJ_HUpEN.js} +2 -2
- package/_assets/{index-vC3-5xFa.js → index-BZ1vi4dr.js} +4 -4
- package/_assets/{index-xHNryJhm.js → index-BZRZAQvP.js} +2 -2
- package/_assets/{index-DcNOFVm1.js → index-B_8xKNDl.js} +2 -2
- package/_assets/{index-CA7TO4ls.js → index-BcC3nPp2.js} +4 -4
- package/_assets/{index-DZa4T5tN.js → index-Bcx-Lx_J.js} +2 -2
- package/_assets/{index-Bgiq1vwC.js → index-Bf4cNgK5.js} +2 -2
- package/_assets/{index-DQBa_kNC.js → index-BgbyJsZt.js} +2 -2
- package/_assets/{index-DQ72F3-_.js → index-Bi3OQpGB.js} +2 -2
- package/_assets/{index-Dbq2Ch71.js → index-BjHDiSzp.js} +2 -2
- package/_assets/{index-Cf0ax7ss.js → index-C-BB-nb_.js} +2 -2
- package/_assets/{index-Dg63gyHq.js → index-C0a0JVR1.js} +2 -2
- package/_assets/{index-BfPQiLLe.js → index-C1Vz0Q91.js} +2 -2
- package/_assets/{index-Z37GANTN.js → index-C1tQut8v.js} +2 -2
- package/_assets/{index-DOnS6h9q.js → index-C2CaD0oC.js} +2 -2
- package/_assets/{index-DpxLcDgW.js → index-CG3iv-CH.js} +2 -2
- package/_assets/{index-CFthW2p7.js → index-CGq2aCO4.js} +2 -2
- package/_assets/{index-BoPotZC3.js → index-CHtyGMQL.js} +2 -2
- package/_assets/{index-D36MVtN_.js → index-CW5Wkcna.js} +2 -2
- package/_assets/{index-C_9coDoA.js → index-CX8WUJpS.js} +2 -2
- package/_assets/{index-CEPyzyCp.js → index-Ce1T_ODi.js} +2 -2
- package/_assets/{index-SJBE5eFc.js → index-CpLibu4t.js} +2 -2
- package/_assets/{index-CV-lFcl7.js → index-CshNci_R.js} +2 -2
- package/_assets/{index-DjzjJqtG.js → index-CvZVbC0i.js} +2 -2
- package/_assets/{index-CsbKyoiZ.js → index-CxJRBckQ.js} +2 -2
- package/_assets/{index-Cwr2mQ1P.js → index-CyPHPxIT.js} +3 -3
- package/_assets/{index-CfVRvVRY.js → index-D0qAwXFp.js} +2 -2
- package/_assets/{index-DBeIvzhn.js → index-D2aIDBIN.js} +2 -2
- package/_assets/{index-DjXa64AR.js → index-D3yHQX9K.js} +2 -2
- package/_assets/{index-XHcC2FaE.js → index-D41UoOW-.js} +2 -2
- package/_assets/{index-1VwXrOEt.js → index-D8j5nT-D.js} +2 -2
- package/_assets/index-D8un52Rt.css +1 -0
- package/_assets/{index-D8S7I2jv.js → index-DJl2GlLi.js} +3 -3
- package/_assets/{index-DG7I_o74.js → index-DayN0Dh9.js} +2 -2
- package/_assets/{index-DuxgvZzF.js → index-DclZszNk.js} +2 -2
- package/_assets/{index-Cf2kLDcU.js → index-DhECuWoC.js} +3 -3
- package/_assets/{index-DOMRwinX.js → index-Dw_Mroso.js} +2 -2
- package/_assets/{index-Bqh-tCGe.js → index-DyXsTxDV.js} +2 -2
- package/_assets/{index-fCngzjUk.js → index-DywXAioJ.js} +4 -4
- package/_assets/{index-42hgym_I.js → index-DzX7u62s.js} +12 -12
- package/_assets/{index-srmfnjPo.js → index-JPAGa_w_.js} +2 -2
- package/_assets/{index-DhOTREMg.js → index-UV5nz7PL.js} +3 -3
- package/_assets/{index-DC0IP02u.js → index-fkEubBPy.js} +2 -2
- package/_assets/{index-Bo9y28EU.js → index-il_SJyW2.js} +2 -2
- package/_assets/{index-BLAsxxaO.js → index-k48gm5Ga.js} +2 -2
- package/_assets/{index-B4wWS0Gy.js → index-nSEKDIDt.js} +2 -2
- package/_assets/{index-DFGKEHJp.js → index-uhfoJyW7.js} +2 -2
- package/_assets/{index-xmrxkFq5.js → index-ul2v3O_7.js} +2 -2
- package/_assets/{index-6Xn36K0W.js → index-zYVNLQQF.js} +2 -2
- package/_assets/{index.es-BjMftfX7.js → index.es-CYRjk5hf.js} +2 -2
- package/_assets/{index.es-BTnBOO6U.js → index.es-ClVv-AG-.js} +2 -2
- package/_assets/{index.es-CkHCyafU.js → index.es-Db3BptAp.js} +2 -2
- package/_assets/{index.es-BoxCyFog.js → index.es-rbMspbAN.js} +5 -5
- package/_assets/items-empty-DP8q_hir.js +2 -0
- package/_assets/{jump-DM5AuOdu.js → jump-qbuib1rz.js} +2 -2
- package/_assets/{linkAccount-LJHWy5CK.js → linkAccount-Ap80Tn4S.js} +2 -2
- package/_assets/{localBatchGatewayRequest-C4Hpu-o0.js → localBatchGatewayRequest-B_Ij1jO1.js} +2 -2
- package/_assets/{modal.styles-B24MpRUv.js → modal.styles-CTCmLTba.js} +2 -2
- package/_assets/{native-DwXB0bjC.js → native-DtBjqDzO.js} +2 -2
- package/_assets/{networks-C5jU04Cx.js → networks-BzXN3X3d.js} +2 -2
- package/_assets/{onramp-vNFpzEJn.js → onramp-BF2rPTBz.js} +2 -2
- package/_assets/{openzeppelin-CZOcMmYj.js → openzeppelin-Ck1ya3MP.js} +2 -2
- package/_assets/{ownerOf-CbZeyYyT.js → ownerOf-CK8nECLX.js} +2 -2
- package/_assets/pack-coin-BUDCtZgt.webp +0 -0
- package/_assets/{parseNft-BbihitES.js → parseNft-bWWfbXmp.js} +3 -3
- package/_assets/{parseSignature-Cfk8FqxM.js → parseSignature-ChD8DZj4.js} +4 -4
- package/_assets/{parseSignature-C4U6F_fO.js → parseSignature-I0Zc0v1u.js} +2 -2
- package/_assets/{passkeys--CjtD2Ra.js → passkeys-aSgsyqyL.js} +2 -2
- package/_assets/{pay-with-exchange-BI9c0reN.js → pay-with-exchange-Bm86mTef.js} +2 -2
- package/_assets/{prepare-contract-call-CoYzlXqQ.js → prepare-contract-call-Cu2BpbDq.js} +2 -2
- package/_assets/{qr-overlay-z09rwiht.js → qr-overlay-BlMXt7xl.js} +4 -4
- package/_assets/{react-CZ2YYu9h.js → react-D_XRFzZv.js} +2 -2
- package/_assets/{receive-Dd15UTLF.js → receive-DvtZfCka.js} +2 -2
- package/_assets/{resolveImplementation-DUg5Jhmj.js → resolveImplementation-D46uirDV.js} +2 -2
- package/_assets/{resume-buy-B2bK6shi.js → resume-buy-DLyKRrLH.js} +2 -2
- package/_assets/{resume-name-HFLT1W-_.js → resume-name-Bo_j54Kd.js} +2 -2
- package/_assets/{rpc-D2wD2_af.js → rpc-CScI7l47.js} +2 -2
- package/_assets/{sales-empty-BSDLd2Ac.js → sales-empty-D8Krxq_a.js} +2 -2
- package/_assets/{search-empty-CngZRhKm.js → search-empty-C4rbyfQ4.js} +2 -2
- package/_assets/{secp256k1-jAwCrfgX.js → secp256k1-BEU_NSX_.js} +2 -2
- package/_assets/{secp256k1-SE5N-Uo1.js → secp256k1-DfVjqKkN.js} +2 -2
- package/_assets/{secp256k1-BRknMrYC.js → secp256k1-DjIKp11V.js} +2 -2
- package/_assets/{send-BJBHSNCZ.js → send-aaBTixYs.js} +2 -2
- package/_assets/{send-batch-transaction-BZVCQXYh.js → send-batch-transaction-CGh_Bf2m.js} +2 -2
- package/_assets/{send-eip712-transaction-BO8U424Q.js → send-eip712-transaction-NG5UcTq1.js} +3 -3
- package/_assets/{send-gasless-transaction-CPHMIHcy.js → send-gasless-transaction-CEETPEWH.js} +3 -3
- package/_assets/{send-transaction-DwOBumXa.js → send-transaction-BTQKhr6_.js} +3 -3
- package/_assets/{sendMetaTransaction-CvXg55Sj.js → sendMetaTransaction-D-MbqmQA.js} +2 -2
- package/_assets/{sendRawTransaction-C9G3juFQ.js → sendRawTransaction-YlQLMb9H.js} +4 -4
- package/_assets/{sentry-B1mJ7lMg.js → sentry-DG2MmgNB.js} +3 -3
- package/_assets/{serializeTransaction-BGQTd-eV.js → serializeTransaction-x8V90Uvt.js} +2 -2
- package/_assets/{session-proposal-CmybrBgX.js → session-proposal-H-uIEhnt.js} +2 -2
- package/_assets/{session-request-B8NAXzJm.js → session-request-CUx2ZW-E.js} +3 -3
- package/_assets/{sha256-BfpwxWFN.js → sha256-BBkSl9md.js} +2 -2
- package/_assets/{sha3-BSpI9EWc.js → sha3-CZ80ixz9.js} +2 -2
- package/_assets/signin-empty-BMGNz-kj.js +2 -0
- package/_assets/{signing-BeQY8i5o.js → signing-Dp-244Kt.js} +4 -4
- package/_assets/{skeleton.styles-BvmK2SPa.js → skeleton.styles-bkJfg2m5.js} +2 -2
- package/_assets/{socials-pv-fatlK.js → socials-3vNMuVia.js} +2 -2
- package/_assets/{styled-BN3FALZ-.js → styled-CB32tZD8.js} +2 -2
- package/_assets/{swaps-CBLIZcy1.js → swaps-B_UJZBFl.js} +2 -2
- package/_assets/{thirdweb-B0tAvkOB.js → thirdweb-DXwNw9Kd.js} +4 -4
- package/_assets/{to-serializable-transaction-DlVSUELg.js → to-serializable-transaction-BZ-1g0cl.js} +3 -3
- package/_assets/{totalSupply-BUrR0ujT.js → totalSupply-xAKopaBF.js} +2 -2
- package/_assets/{trade-encoding-BHVebGX4.js → trade-encoding-WzYAfzM9.js} +2 -2
- package/_assets/{transaction-DEuQGHWS.js → transaction-BtBtt19s.js} +2 -2
- package/_assets/{transactionReceipt-BdYwXxz9.js → transactionReceipt-vO3wyEnF.js} +2 -2
- package/_assets/{transactions-Dy4aCK3U.js → transactions-BotdFBxD.js} +2 -2
- package/_assets/{useCreatorSales-C3o5VeDN.js → useCreatorSales-CVEaY6DN.js} +2 -2
- package/_assets/{useInfiniteGrid-Dt_ssV2e.js → useInfiniteGrid-DvbNKvtY.js} +2 -2
- package/_assets/{useStore-DSk5Zm3O.js → useStore-BroPajeF.js} +3 -3
- package/_assets/{useTheme-B0ivQtHy.js → useTheme-BL6Qmmme.js} +2 -2
- package/_assets/{utils-DhRq6yOi.js → utils-BwgF3RfL.js} +2 -2
- package/_assets/{verifyHash-CykSL3oh.js → verifyHash-D8uQIvSF.js} +2 -2
- package/_assets/{w3m-modal-MQbLbuVJ.js → w3m-modal-BgsDpE-e.js} +2 -2
- package/_assets/{w3m-modal-zpVMRo94.js → w3m-modal-CotHiO5E.js} +2 -2
- package/_assets/{wait-for-tx-receipt-COH8KUJZ.js → wait-for-tx-receipt-Bf3OistO.js} +2 -2
- package/_assets/{wallets-D36z-WS9.js → wallets-BYjBIjSb.js} +6 -6
- package/_assets/{web-connector-DfG35fRn.js → web-connector-ha0n_x62.js} +4 -4
- package/_assets/{writeContract-BZyrswRY.js → writeContract-SaUPwQ91.js} +2 -2
- package/_assets/{zora-sepolia-D5TfknXJ.js → zora-sepolia-D6YpRjrT.js} +2 -2
- package/_assets/{zoraTestnet-YadYknEM.js → zoraTestnet-oanE0-2b.js} +2 -2
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/PaymentMethodStep-BhlDujoG.js +0 -370
- package/_assets/collectionPage.styles-Ie9Wzs-2.js +0 -41
- package/_assets/index-Ccn2ZaWp.css +0 -1
- package/_assets/items-empty-BgYde4VW.js +0 -2
- package/_assets/signin-empty-Ae4I7w1I.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as ce,j as e,L as Fe,e as Le,u as Me,r as L}from"./react-
|
|
1
|
+
import{b as ce,j as e,L as Fe,e as Le,u as Me,r as L}from"./react-D_XRFzZv.js";import{u as _e,s as Re}from"./search-empty-C4rbyfQ4.js";import{u as Ae,S as Z,R as ze,F as Te,a as Be}from"./Filters-Bdy7f7h2.js";import{a as de,bI as De,a9 as J,a8 as X,s,bJ as We,A as Oe,bK as Ke,t as o,bL as Ue,bM as ee,H as Ge,n as he,a3 as ue,x as He,bN as me,bO as Ve,bP as qe,I as te,c as Qe,B as Ye,w as Ze,av as Je,Y as Xe,Z as et,a1 as M,$ as A,a2 as oe,bQ as re,bR as tt}from"./index-DzX7u62s.js";import{T as pe}from"./skeleton.styles-bkJfg2m5.js";import{d as ot,P as rt,C as it,a as st,b as at,c as nt,e as lt}from"./collectionPage.styles-cQUsGWNO.js";import{u as ct,L as dt}from"./useStore-BroPajeF.js";import{L as ie}from"./LoadMore-B0-EZXVq.js";import{u as se}from"./useInfiniteGrid-DvbNKvtY.js";import{S as ht}from"./categories-DwJRDHkQ.js";import{E as z}from"./ErrorNotice-BWLszBSm.js";import{c as ut,i as mt}from"./items-empty-DP8q_hir.js";import{R as pt,S as xt,a as gt,D as ft,b as bt,C as wt,c as yt,d as vt,e as jt,M as Ct}from"./browseLayout.styles-CJyAUz48.js";import{G as ae}from"./grid.styles-H0I3Ho34.js";import"./Tooltip-BBYkvHeY.js";import"./dcl-schemas-3U1mdpFi.js";import"./sentry-DG2MmgNB.js";import"./ethers-gO8XAtHb.js";import"./intl-AKLEHPeO.js";import"./crumbs.styles-D5t9ZymW.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new r.Error().stack;i&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[i]="272255a2-7f19-45b8-9910-e88bf4e4b66c",r._sentryDebugIdIdentifier="sentry-dbid-272255a2-7f19-45b8-9910-e88bf4e4b66c")}catch{}})();function kt(r){const{gridLoading:i,gridError:a,gridCount:l,baselinePending:c,baselineError:d,baselineCount:b}=r;return i?"skeletons":a?"error":l>0?"items":c?"skeletons":d?"error":b===0?"no-creations":"filters"}const{colors:w,radius:$,media:$t}=de,St=s.article`
|
|
2
2
|
height: 300px;
|
|
3
3
|
/* No fill of its own (Figma 922:183803): the mosaic covers the top and the footer paints its own
|
|
4
4
|
translucent black, so the page field is what shows through the corners. */
|
|
@@ -309,4 +309,4 @@ import{b as ce,j as e,L as Fe,e as Le,u as Me,r as L}from"./react-CZ2YYu9h.js";i
|
|
|
309
309
|
background: ${y.blackBtn};
|
|
310
310
|
}
|
|
311
311
|
`,Jt={website:"website",twitter:"twitter",discord:"discord",facebook:"facebook"};function Xt({address:r}){var m,C;const{data:i}=ue(r),{data:a}=ct(r),l=He(p=>{var S;return(S=p.session)==null?void 0:S.address}),c=!!l&&l.toLowerCase()===r.toLowerCase(),d=(i==null?void 0:i.name)||me(r),b=(C=(m=i==null?void 0:i.avatar)==null?void 0:m.snapshots)==null?void 0:C.face256,j=(a==null?void 0:a.cover)||ot,n=a==null?void 0:a.description,g=`${Qe.profileUrl}/${r}`,f=dt.filter(p=>a==null?void 0:a.links[p]),h=Ve(qe({name:i==null?void 0:i.name,hasClaimedName:i==null?void 0:i.hasClaimedName,ethAddress:(i==null?void 0:i.ethAddress)??r}));return e.jsxs(Dt,{"aria-label":`${d} storefront`,children:[e.jsxs(Wt,{children:[e.jsx(Ot,{src:j,alt:"",loading:"eager"}),e.jsx(Kt,{"aria-hidden":!0})]}),(f.length>0||c)&&e.jsxs(Ut,{children:[f.map(p=>e.jsx(Gt,{"data-testid":"creator-hero-link",href:(a==null?void 0:a.links[p])??"",target:"_blank",rel:"noopener noreferrer",title:o(`creator.link.${p}`),"aria-label":o(`creator.link.${p}`),children:e.jsx(te,{name:Jt[p]})},p)),c&&e.jsx(Ht,{to:"/store-settings",title:o("creator.editStore"),"aria-label":o("creator.editStore"),children:e.jsx(te,{name:"pen"})})]}),e.jsxs(Vt,{children:[b?e.jsx(ne,{src:b,alt:"",loading:"eager",style:{backgroundColor:h}}):e.jsx(ne,{as:"span","aria-hidden":!0,style:{backgroundColor:h}}),e.jsxs("div",{children:[e.jsx(qt,{children:d}),n?e.jsx(Qt,{children:n}):null]}),e.jsxs(Yt,{children:[e.jsx(Zt,{"data-testid":"creator-hero-view",href:g,target:"_blank",rel:"noopener noreferrer",children:o("creator.viewProfile")}),e.jsx(Bt,{address:r,className:"creator-hero__follow"})]})]})]})}const eo=["all","on_sale","not_for_sale"],le=48;function jo(){var Q,Y;const{address:r}=Le(),i=ce(),[a]=Me(),l=a.has("collections"),{data:c}=ue(r),d=(c==null?void 0:c.name)||(r?me(r):o("creator.fallbackName"));Ye({title:d,description:o("seo.creator.description",{name:d}),image:(Y=(Q=c==null?void 0:c.avatar)==null?void 0:Q.snapshots)==null?void 0:Y.face256});const b=L.useMemo(()=>({category:"all",status:"all",subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,sort:"newest"}),[]),[j,n]=_e(b),{category:g,subCategory:f,rarities:h,priceMin:m,priceMax:C,smart:p,sort:S}=j,N=eo.includes(j.status)?j.status:"all",T=t=>n({status:t});Ae(`${l}:${g}:${f??""}`);const[P,E]=L.useState(!1);L.useEffect(()=>{if(!P)return;const t=Ie=>{Ie.key==="Escape"&&E(!1)};document.addEventListener("keydown",t);const x=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",t),document.body.style.overflow=x}},[P]);const B=m&&!Number.isNaN(Number(m))?Number(m):void 0,D=C&&!Number.isNaN(Number(C))?Number(C):void 0,be=f?ht[f]:void 0,we=(Z.find(t=>t.key===S)??Z[0]).server,W={creator:r,category:g,rarities:h.length?h:void 0,wearableCategories:be,minPriceCredits:B,maxPriceCredits:D,isWearableSmart:p||void 0,isOnSale:N==="all"?void 0:N==="on_sale",sortBy:we},{items:_,total:ye,isLoading:ve,isPlaceholderData:je,error:O,hasNextPage:Ce,isFetchingNextPage:K,isFetchNextPageError:ke,fetchNextPage:$e}=se(["creator-items",W],t=>re({...W,first:le,skip:t}),{enabled:!!r&&!l}),I=Ze({queryKey:["creator-item-count",r],queryFn:()=>re({creator:r,first:1}).then(t=>t.total),enabled:!!r}),u=se(["creator-collections",r],t=>tt(r,{first:le,skip:t}).then(x=>({items:x.collections,total:x.total})),{enabled:!!r&&l});function U(t){n({category:t,subCategory:null},{drop:l?["collections"]:void 0})}function Se(){const t=new URLSearchParams(a);t.delete("collections");const x=t.toString();i({search:x?`?${x}`:""},{replace:!0})}function Ne(){if(l){Se();return}const t=new URLSearchParams(a);t.delete("collections");const x=t.toString();i({search:x?`?${x}&collections`:"?collections"},{replace:!0})}function G(t){n({rarities:h.includes(t)?h.filter(x=>x!==t):[...h,t]})}function H(){n(b)}const k=[];(g==="wearable"||g==="emote")&&k.push({key:"category",label:o(g==="emote"?"categories.emotes":"categories.wearables"),onRemove:()=>U("all")}),(B!=null||D!=null)&&k.push({key:"price",label:o("filter.price"),onRemove:()=>{n({priceMin:"",priceMax:""})}});for(const t of ze)h.includes(t)&&k.push({key:`rarity-${t}`,label:Je(t),onRemove:()=>G(t)});p&&k.push({key:"smart",label:o("filter.smart"),onRemove:()=>n({smart:!1})}),N!=="all"&&k.push({key:"status",label:N==="on_sale"?o("filter.onSale"):o("filter.notForSale"),onRemove:()=>T("all")});const F=kt({gridLoading:ve||je,gridError:!!O,gridCount:_.length,baselinePending:I.isPending,baselineError:I.isError,baselineCount:I.data}),V=F==="skeletons",{data:q}=Xe(),Ee=L.useMemo(()=>_.map(t=>({...t,priceCredits:et(t,q)})),[_,q]),Pe=t=>t.priceCredits>0||!!t.manaWei,R=F==="items"||F==="skeletons"?null:F;return e.jsxs(rt,{children:[e.jsxs(it,{"aria-label":o("creator.breadcrumbAria"),children:[e.jsx(st,{onClick:()=>i("/items"),children:o("creator.breadcrumb")}),e.jsx("span",{children:"/"}),e.jsx(at,{children:d})]}),r?e.jsx(Xt,{address:r}):null,e.jsxs(pt,{children:[P?e.jsx(xt,{onClick:()=>E(!1),"aria-hidden":!0}):null,e.jsxs(gt,{"data-open":P||void 0,"data-testid":"creator-sidebar",children:[e.jsxs(ft,{children:[e.jsx(bt,{children:o("assets.filters")}),e.jsx(wt,{onClick:()=>E(!1),"aria-label":o("assets.closeFilters"),children:"✕"})]}),e.jsx(yt,{children:e.jsx(Te,{category:g,subCategory:f,onCategory:U,onSub:t=>n({subCategory:t}),priceMin:m,priceMax:C,onPriceMin:t=>n({priceMin:t}),onPriceMax:t=>n({priceMax:t}),rarities:h,onToggleRarity:G,status:N,onStatus:T,smart:p,onSmart:t=>n({smart:t}),hideNames:!0,collections:l,onCollections:Ne})}),e.jsx(vt,{children:e.jsx(jt,{type:"button",onClick:()=>E(!1),children:o("assets.showItems")})})]}),e.jsx(Ct,{children:l?e.jsxs(e.Fragment,{children:[e.jsx(nt,{children:e.jsx(lt,{"data-testid":"creator-collections-count","aria-busy":u.isLoading||void 0,children:u.isLoading?e.jsx(pe,{className:"skeleton",width:72,"data-testid":"creator-collections-count-skeleton","aria-hidden":!0}):o("creator.collectionsCount",{count:u.total})})}),u.error?e.jsx(z,{message:o("creator.error")}):null,e.jsx(ae,{"data-variant":"collections",children:u.isLoading?e.jsx(M,{count:9}):e.jsxs(e.Fragment,{children:[u.items.map(t=>e.jsx(Tt,{collection:t,itemCount:t.itemCount},t.contractAddress)),u.isFetchingNextPage?e.jsx(M,{count:6}):null]})}),e.jsx(ie,{hasNextPage:u.hasNextPage,isFetching:u.isFetchingNextPage,isError:u.isFetchNextPageError,onLoadMore:()=>void u.fetchNextPage()}),!u.isLoading&&!u.error&&u.items.length===0?e.jsx(A,{testId:"creator-collections-empty",icon:ut,title:o("creator.collectionsEmptyTitle"),body:o("creator.collectionsEmpty"),cta:{label:o("assets.empty.cta"),to:"/items"}}):null]}):e.jsxs(e.Fragment,{children:[e.jsx(Be,{sort:S,onSort:t=>n({sort:t}),total:ye,loading:V,onOpenFilters:()=>E(!0),chips:k,onClearChips:H}),O?e.jsx(z,{message:o("creator.error"),testId:"creator-error"}):null,e.jsx(ae,{"data-testid":"creator-grid",children:V?e.jsx(M,{count:15}):e.jsxs(e.Fragment,{children:[Ee.map(t=>Pe(t)?e.jsx(oe,{item:t},t.id):e.jsx(oe,{item:t,mode:"view"},t.id)),K?e.jsx(M,{count:6}):null]})}),e.jsx(ie,{hasNextPage:Ce,isFetching:K,isError:ke,onLoadMore:()=>void $e()}),R==="error"?e.jsx(z,{message:o("creator.error"),testId:"creator-empty-error"}):R==="no-creations"?e.jsx(A,{testId:"creator-empty-none",icon:mt,title:o("creator.emptyNoCreationsTitle"),body:o("creator.emptyNoCreations"),cta:{label:o("assets.empty.cta"),to:"/items"}}):R==="filters"?e.jsx(A,{testId:"creator-empty-filters",icon:Re,title:o("creator.emptyFilters.title"),body:o("creator.emptyFilters.body",{count:I.data??0}),cta:{label:o("filterBar.clearAll"),onClick:H}}):null]})})]})]})}export{jo as Creator,jo as default};
|
|
312
|
-
//# sourceMappingURL=Creator-
|
|
312
|
+
//# sourceMappingURL=Creator-vctx0wBj.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{j as o}from"./react-
|
|
1
|
+
import{j as o}from"./react-D_XRFzZv.js";import{V as T,bG as w,bH as z,a as r,s as e,z as x,ar as W,I as A,t as v,F as p}from"./index-DzX7u62s.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new a.Error().stack;i&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[i]="74457119-5772-4da4-b663-321a44423f33",a._sentryDebugIdIdentifier="sentry-dbid-74457119-5772-4da4-b663-321a44423f33")}catch{}})();function X(a){return o.jsx("svg",{viewBox:"0 0 20 20",width:"24",height:"24","aria-hidden":!0,...a,children:o.jsx("path",{fill:"#f48221",d:"M10 0a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 11a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm0-8a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V6a1 1 0 0 1 1-1Z"})})}function j(a,i){return(a+i-1n)/i}function B(a,i,s){return a<=0||i<=0?0n:a>=i?s:j(s*BigInt(a),BigInt(i))}function q(a){var m,f,u;const i=Number.isFinite(a.priceCents)?Math.max(0,Math.trunc(a.priceCents)):0,s=Number.isFinite(a.balanceCents)?Math.max(0,Math.trunc(a.balanceCents)):0,l=a.priceManaWei>0n?a.priceManaWei:0n,d=a.manaBalanceWei>0n?a.manaBalanceWei:0n;if(i<=0)return{options:[],preferred:null,manaShortfall:null};const c=[];s>=i&&c.push({method:"credits",creditsCents:i,credits:T(i),manaWei:0n});const n=w(s)*z;if(l>0n&&n>0&&n<i){const h=i-n,b=B(h,i,l);d>=b&&c.push({method:"combined",creditsCents:n,credits:w(n),manaWei:b})}a.manaOnlyRail!==!1&&l>0n&&d>=l&&c.push({method:"mana",creditsCents:0,credits:0,manaWei:l});const $=((m=c.find(h=>h.method==="credits"))==null?void 0:m.method)??((f=c.find(h=>h.method==="combined"))==null?void 0:f.method)??((u=c.find(h=>h.method==="mana"))==null?void 0:u.method)??null,C=!c.some(h=>h.method==="mana"||h.method==="combined")&&l>0n&&d>0n?{manaWei:d,manaCents:P(d,i,l),priceCents:i}:null;return{options:c,preferred:$,manaShortfall:C}}function P(a,i,s){return Number(a*BigInt(i)/s)}function K(a,i){let s=Number.isFinite(i)?Math.max(0,Math.trunc(i)):0;return a.map(l=>{const d=Number.isFinite(l)?Math.max(0,Math.trunc(l)):0,c=Math.min(d,s);return s-=c,c})}function J(a,i){return a.options.find(s=>s.method===i)??null}const I="https://cdn.decentraland.org/@dcl/shop/1.14.1-35632037835.commit-fbecd50/_assets/pack-coin-BUDCtZgt.webp",{colors:t,gradients:g,radius:y,z:E}=r,Q=e.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
inset: 0;
|
|
4
|
-
z-index: ${
|
|
4
|
+
z-index: ${E.overlay};
|
|
5
5
|
display: flex;
|
|
6
6
|
overflow-y: auto;
|
|
7
7
|
padding: 20px;
|
|
@@ -39,13 +39,13 @@ import{j as o}from"./react-CZ2YYu9h.js";import{V as A,bG as w,bH as B,a as s,s a
|
|
|
39
39
|
min-height: 379px;
|
|
40
40
|
justify-content: space-between;
|
|
41
41
|
}
|
|
42
|
-
`,
|
|
42
|
+
`,ae=e.div`
|
|
43
43
|
display: flex;
|
|
44
44
|
flex-direction: column;
|
|
45
45
|
gap: 4px;
|
|
46
46
|
padding-bottom: 16px;
|
|
47
47
|
border-bottom: 1px solid ${t.gray4};
|
|
48
|
-
`,
|
|
48
|
+
`,ie=e.div`
|
|
49
49
|
display: flex;
|
|
50
50
|
align-items: flex-start;
|
|
51
51
|
justify-content: space-between;
|
|
@@ -63,22 +63,22 @@ import{j as o}from"./react-CZ2YYu9h.js";import{V as A,bG as w,bH as B,a as s,s a
|
|
|
63
63
|
cursor: pointer;
|
|
64
64
|
padding: 2px;
|
|
65
65
|
line-height: 0;
|
|
66
|
-
`,
|
|
66
|
+
`,se=e.div`
|
|
67
67
|
display: flex;
|
|
68
68
|
align-items: center;
|
|
69
69
|
gap: 4px;
|
|
70
|
-
`,
|
|
70
|
+
`,re=e.span`
|
|
71
71
|
font-size: 14px;
|
|
72
72
|
font-weight: 600;
|
|
73
73
|
color: ${t.muted1};
|
|
74
|
-
`,de=e(
|
|
74
|
+
`,de=e(x)`
|
|
75
75
|
width: 14px;
|
|
76
76
|
height: 14px;
|
|
77
77
|
background: ${t.text};
|
|
78
78
|
`,le=e.span`
|
|
79
79
|
font-size: 14px;
|
|
80
80
|
color: ${t.text};
|
|
81
|
-
`,
|
|
81
|
+
`,ce=e.div`
|
|
82
82
|
display: flex;
|
|
83
83
|
flex-direction: column;
|
|
84
84
|
gap: 24px;
|
|
@@ -96,12 +96,12 @@ import{j as o}from"./react-CZ2YYu9h.js";import{V as A,bG as w,bH as B,a as s,s a
|
|
|
96
96
|
gap: 32px;
|
|
97
97
|
padding: 24px 0;
|
|
98
98
|
}
|
|
99
|
-
`,
|
|
99
|
+
`,he=e.div`
|
|
100
100
|
display: flex;
|
|
101
101
|
gap: 24px;
|
|
102
102
|
align-items: center;
|
|
103
103
|
|
|
104
|
-
${
|
|
104
|
+
${r.media.maxWidth("mobile")} {
|
|
105
105
|
gap: 12px;
|
|
106
106
|
}
|
|
107
107
|
`,pe=e.div`
|
|
@@ -121,19 +121,19 @@ import{j as o}from"./react-CZ2YYu9h.js";import{V as A,bG as w,bH as B,a as s,s a
|
|
|
121
121
|
filter: drop-shadow(0.7px 2.9px 3.7px rgba(0, 0, 0, 0.1));
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
${
|
|
124
|
+
${r.media.maxWidth("mobile")} {
|
|
125
125
|
width: 78px;
|
|
126
126
|
height: 78px;
|
|
127
127
|
border-radius: 7px;
|
|
128
128
|
}
|
|
129
|
-
`,
|
|
129
|
+
`,xe=e.div`
|
|
130
130
|
flex: 1;
|
|
131
131
|
min-width: 0;
|
|
132
132
|
display: flex;
|
|
133
133
|
flex-direction: column;
|
|
134
134
|
justify-content: center;
|
|
135
135
|
gap: 4px;
|
|
136
|
-
`,
|
|
136
|
+
`,ge=e.div`
|
|
137
137
|
font-size: 18px;
|
|
138
138
|
font-weight: 700;
|
|
139
139
|
line-height: 1.3;
|
|
@@ -141,18 +141,18 @@ import{j as o}from"./react-CZ2YYu9h.js";import{V as A,bG as w,bH as B,a as s,s a
|
|
|
141
141
|
overflow: hidden;
|
|
142
142
|
text-overflow: ellipsis;
|
|
143
143
|
|
|
144
|
-
${
|
|
144
|
+
${r.media.maxWidth("mobile")} {
|
|
145
145
|
font-size: 16px;
|
|
146
146
|
}
|
|
147
|
-
`,
|
|
147
|
+
`,me=e(W)`
|
|
148
148
|
font-size: 12px;
|
|
149
149
|
line-height: 1.43;
|
|
150
150
|
color: ${t.muted};
|
|
151
151
|
|
|
152
|
-
${
|
|
152
|
+
${r.media.maxWidth("mobile")} {
|
|
153
153
|
font-size: 10px;
|
|
154
154
|
}
|
|
155
|
-
`,
|
|
155
|
+
`,fe=e.div`
|
|
156
156
|
display: flex;
|
|
157
157
|
align-items: center;
|
|
158
158
|
gap: 6px;
|
|
@@ -164,12 +164,12 @@ import{j as o}from"./react-CZ2YYu9h.js";import{V as A,bG as w,bH as B,a as s,s a
|
|
|
164
164
|
color: ${t.text2};
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
${
|
|
167
|
+
${r.media.maxWidth("mobile")} {
|
|
168
168
|
& span {
|
|
169
169
|
font-size: 20px;
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
`,ue=e(
|
|
172
|
+
`,ue=e(x)`
|
|
173
173
|
width: 18px;
|
|
174
174
|
height: 18px;
|
|
175
175
|
background: ${t.text2};
|
|
@@ -185,7 +185,7 @@ import{j as o}from"./react-CZ2YYu9h.js";import{V as A,bG as w,bH as B,a as s,s a
|
|
|
185
185
|
flex-shrink: 0;
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
-
${
|
|
188
|
+
${r.media.maxWidth("mobile")} {
|
|
189
189
|
align-items: center;
|
|
190
190
|
gap: 8px;
|
|
191
191
|
padding: 12px 8px;
|
|
@@ -223,12 +223,12 @@ import{j as o}from"./react-CZ2YYu9h.js";import{V as A,bG as w,bH as B,a as s,s a
|
|
|
223
223
|
sharing a line and claimed a full row: the four landed 2/1/1, three rows tall. That extra row is
|
|
224
224
|
also what pushed the total under the sticky CTAs. The tracks are minmax(0, 1fr), not 1fr, so a
|
|
225
225
|
long price shrinks the text inside the tile instead of widening the column past the card. */
|
|
226
|
-
${
|
|
226
|
+
${r.media.maxWidth("mobile")} {
|
|
227
227
|
display: grid;
|
|
228
228
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
229
229
|
gap: 16px 12px;
|
|
230
230
|
}
|
|
231
|
-
`,
|
|
231
|
+
`,M=e.button`
|
|
232
232
|
/* Wide enough to stay readable, so a narrow card wraps the tiles onto a second row instead of
|
|
233
233
|
squeezing four of them into one. */
|
|
234
234
|
flex: 1 1 140px;
|
|
@@ -256,7 +256,7 @@ import{j as o}from"./react-CZ2YYu9h.js";import{V as A,bG as w,bH as B,a as s,s a
|
|
|
256
256
|
padding: 0;
|
|
257
257
|
border-color: transparent;
|
|
258
258
|
border-width: 4px;
|
|
259
|
-
background-image: linear-gradient(${t.media}, ${t.media}), ${
|
|
259
|
+
background-image: linear-gradient(${t.media}, ${t.media}), ${g.buyBtn};
|
|
260
260
|
background-origin: border-box;
|
|
261
261
|
background-clip: padding-box, border-box;
|
|
262
262
|
}
|
|
@@ -266,7 +266,7 @@ import{j as o}from"./react-CZ2YYu9h.js";import{V as A,bG as w,bH as B,a as s,s a
|
|
|
266
266
|
transform: scale(1.03);
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
-
${
|
|
269
|
+
${r.media.maxWidth("mobile")} {
|
|
270
270
|
height: 83px;
|
|
271
271
|
gap: 6px;
|
|
272
272
|
/* A grid item defaults to min-width:auto, which would let the widest price push the tile out of
|
|
@@ -279,35 +279,35 @@ import{j as o}from"./react-CZ2YYu9h.js";import{V as A,bG as w,bH as B,a as s,s a
|
|
|
279
279
|
transform: none;
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
|
-
`,
|
|
282
|
+
`,R=e.img`
|
|
283
283
|
width: 24px;
|
|
284
284
|
height: 26px;
|
|
285
285
|
flex: none;
|
|
286
|
-
`,
|
|
286
|
+
`,F=e.span`
|
|
287
287
|
font-size: 24px;
|
|
288
288
|
font-weight: 500;
|
|
289
289
|
color: ${t.text};
|
|
290
|
-
`,
|
|
290
|
+
`,S=e.span`
|
|
291
291
|
font-size: 14px;
|
|
292
292
|
color: ${t.text};
|
|
293
|
-
`,
|
|
293
|
+
`,N=e.div`
|
|
294
294
|
display: flex;
|
|
295
295
|
align-items: center;
|
|
296
296
|
justify-content: space-between;
|
|
297
297
|
border-top: 1px solid ${t.gray4};
|
|
298
298
|
padding-top: 12px;
|
|
299
|
-
`,
|
|
299
|
+
`,L=e.div`
|
|
300
300
|
display: flex;
|
|
301
301
|
align-items: center;
|
|
302
302
|
gap: 8px;
|
|
303
303
|
font-size: 24px;
|
|
304
304
|
font-weight: 700;
|
|
305
305
|
color: ${t.text};
|
|
306
|
-
`,
|
|
306
|
+
`,D=e(x)`
|
|
307
307
|
width: 30px;
|
|
308
308
|
height: 30px;
|
|
309
309
|
background: ${t.text};
|
|
310
|
-
`,
|
|
310
|
+
`,H=e.span`
|
|
311
311
|
font-size: 14px;
|
|
312
312
|
font-weight: 600;
|
|
313
313
|
color: ${t.muted1};
|
|
@@ -331,7 +331,7 @@ import{j as o}from"./react-CZ2YYu9h.js";import{V as A,bG as w,bH as B,a as s,s a
|
|
|
331
331
|
* right-hand side on desktop, where the secondary-then-primary reading order is what every other row in
|
|
332
332
|
* the flow uses.
|
|
333
333
|
*/
|
|
334
|
-
${
|
|
334
|
+
${r.media.maxWidth("mobile")} {
|
|
335
335
|
&[data-stack] {
|
|
336
336
|
flex-direction: column-reverse;
|
|
337
337
|
|
|
@@ -345,7 +345,7 @@ import{j as o}from"./react-CZ2YYu9h.js";import{V as A,bG as w,bH as B,a as s,s a
|
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
`,
|
|
348
|
+
`,O=e.button`
|
|
349
349
|
flex: 1;
|
|
350
350
|
/* Let the CTAs shrink so their min-content can't widen the modal past the viewport on mobile. */
|
|
351
351
|
min-width: 0;
|
|
@@ -368,7 +368,7 @@ import{j as o}from"./react-CZ2YYu9h.js";import{V as A,bG as w,bH as B,a as s,s a
|
|
|
368
368
|
/* The design system's primary fill (Figma 738:53266 "BUY Button") — the same gradient the cart's
|
|
369
369
|
CHECKOUT carries, so the two ends of the buy flow match. */
|
|
370
370
|
&[data-variant='gradient'] {
|
|
371
|
-
background: ${
|
|
371
|
+
background: ${g.buyBtn};
|
|
372
372
|
color: ${t.softWhite};
|
|
373
373
|
}
|
|
374
374
|
&[data-variant='gradient']:hover:not(:disabled),
|
|
@@ -425,7 +425,7 @@ import{j as o}from"./react-CZ2YYu9h.js";import{V as A,bG as w,bH as B,a as s,s a
|
|
|
425
425
|
opacity: 0.6;
|
|
426
426
|
cursor: default;
|
|
427
427
|
}
|
|
428
|
-
`,ke=
|
|
428
|
+
`,ke=O.withComponent("a"),$e=e.img`
|
|
429
429
|
width: 61px;
|
|
430
430
|
height: 61px;
|
|
431
431
|
`,Ce=e.div`
|
|
@@ -436,11 +436,11 @@ import{j as o}from"./react-CZ2YYu9h.js";import{V as A,bG as w,bH as B,a as s,s a
|
|
|
436
436
|
background: rgba(255, 201, 213, 0.5);
|
|
437
437
|
border-radius: 16px;
|
|
438
438
|
padding: 24px 16px;
|
|
439
|
-
`,
|
|
439
|
+
`,Te=e.img`
|
|
440
440
|
width: 64px;
|
|
441
441
|
height: 80px;
|
|
442
442
|
object-fit: contain;
|
|
443
|
-
`,
|
|
443
|
+
`,ze=e.p`
|
|
444
444
|
margin: 0;
|
|
445
445
|
text-align: center;
|
|
446
446
|
font-size: 20px;
|
|
@@ -451,12 +451,12 @@ import{j as o}from"./react-CZ2YYu9h.js";import{V as A,bG as w,bH as B,a as s,s a
|
|
|
451
451
|
& b {
|
|
452
452
|
font-weight: 700;
|
|
453
453
|
}
|
|
454
|
-
`,
|
|
454
|
+
`,We=e.div`
|
|
455
455
|
font-size: 20px;
|
|
456
456
|
font-weight: 700;
|
|
457
457
|
color: ${t.text2};
|
|
458
458
|
text-align: center;
|
|
459
|
-
`,
|
|
459
|
+
`,Ae=e.div`
|
|
460
460
|
width: 100%;
|
|
461
461
|
max-width: 456px;
|
|
462
462
|
height: 12px;
|
|
@@ -468,7 +468,7 @@ import{j as o}from"./react-CZ2YYu9h.js";import{V as A,bG as w,bH as B,a as s,s a
|
|
|
468
468
|
height: 100%;
|
|
469
469
|
width: 40%;
|
|
470
470
|
border-radius: 100px;
|
|
471
|
-
background: ${
|
|
471
|
+
background: ${g.amethyst};
|
|
472
472
|
animation: buy-modal-progress 1.1s ease-in-out infinite;
|
|
473
473
|
|
|
474
474
|
@keyframes buy-modal-progress {
|
|
@@ -485,7 +485,7 @@ import{j as o}from"./react-CZ2YYu9h.js";import{V as A,bG as w,bH as B,a as s,s a
|
|
|
485
485
|
min-width: 12px;
|
|
486
486
|
transition: width 0.35s ease;
|
|
487
487
|
}
|
|
488
|
-
`,
|
|
488
|
+
`,Be=e.div`
|
|
489
489
|
display: flex;
|
|
490
490
|
flex-direction: column;
|
|
491
491
|
align-items: center;
|
|
@@ -507,7 +507,7 @@ import{j as o}from"./react-CZ2YYu9h.js";import{V as A,bG as w,bH as B,a as s,s a
|
|
|
507
507
|
padding: 16px;
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
`,
|
|
510
|
+
`,Pe=e.p`
|
|
511
511
|
margin: 0;
|
|
512
512
|
font-size: 20px;
|
|
513
513
|
line-height: 1.334;
|
|
@@ -527,9 +527,9 @@ import{j as o}from"./react-CZ2YYu9h.js";import{V as A,bG as w,bH as B,a as s,s a
|
|
|
527
527
|
text-align: center;
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
|
-
|
|
530
|
+
`,U=e(M)`
|
|
531
531
|
position: relative;
|
|
532
|
-
`,
|
|
532
|
+
`,_=e.span`
|
|
533
533
|
position: absolute;
|
|
534
534
|
top: -12px;
|
|
535
535
|
left: 50%;
|
|
@@ -539,26 +539,26 @@ import{j as o}from"./react-CZ2YYu9h.js";import{V as A,bG as w,bH as B,a as s,s a
|
|
|
539
539
|
align-items: center;
|
|
540
540
|
gap: 4px;
|
|
541
541
|
padding: 4px 12px 4px 8px;
|
|
542
|
-
border-radius: ${
|
|
543
|
-
background: ${
|
|
544
|
-
font-family: ${
|
|
542
|
+
border-radius: ${r.radius.pill};
|
|
543
|
+
background: ${r.gradients.flare};
|
|
544
|
+
font-family: ${r.font.sans};
|
|
545
545
|
font-size: 12px;
|
|
546
546
|
font-weight: 500;
|
|
547
547
|
line-height: 18px;
|
|
548
|
-
color: ${
|
|
548
|
+
color: ${r.colors.white};
|
|
549
549
|
white-space: nowrap;
|
|
550
550
|
|
|
551
551
|
.ico {
|
|
552
552
|
width: 16px;
|
|
553
553
|
height: 16px;
|
|
554
554
|
}
|
|
555
|
-
`,
|
|
555
|
+
`,G=e(k)`
|
|
556
556
|
display: grid;
|
|
557
557
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
558
558
|
gap: 28px 12px;
|
|
559
559
|
|
|
560
|
-
${
|
|
560
|
+
${r.media.maxWidth("mobile")} {
|
|
561
561
|
gap: 24px 12px;
|
|
562
562
|
}
|
|
563
|
-
`;function
|
|
564
|
-
//# sourceMappingURL=CreditPackPicker-
|
|
563
|
+
`;function Ie({packs:a,selectedId:i,onSelect:s,recommendedId:l}){const d=a.find(n=>n.id===i),c=l?G:k;return o.jsxs(o.Fragment,{children:[o.jsx(c,{"data-testid":"credit-packs",children:a.map(n=>o.jsxs(U,{type:"button","data-testid":"credit-pack","data-on":n.id===i||void 0,"aria-pressed":n.id===i,"aria-label":v("getCredits.packAria",{amount:p(n.credits),usd:n.usd}),onClick:()=>s(n.id),children:[n.id===l?o.jsxs(_,{"data-testid":"pack-recommended","aria-hidden":!0,children:[o.jsx(A,{name:"star-rounded"}),v("getCredits.packBadge")]}):null,o.jsx(R,{src:I,alt:""}),o.jsx(F,{children:p(n.credits)}),o.jsxs(S,{children:["($",n.usd.toFixed(2),")"]})]},n.id))}),o.jsxs(N,{children:[o.jsxs(L,{children:[o.jsx(D,{}),o.jsx("span",{"data-testid":"topup-total-credits",children:p((d==null?void 0:d.credits)??0)})]}),o.jsxs(H,{children:["$",((d==null?void 0:d.usd)??0).toFixed(2)]})]})]})}export{he as A,se as B,te as C,M as D,Be as E,Pe as F,ke as G,ae as H,J as I,$e as L,Q as M,We as P,ee as S,ne as T,be as W,oe as X,ie as a,re as b,de as c,le as d,ce as e,Ce as f,Te as g,ze as h,ye as i,O as j,Ae as k,je as l,X as m,we as n,ve as o,pe as p,xe as q,ge as r,me as s,fe as t,ue as u,Ie as v,q as w,K as x,B as y,k as z};
|
|
564
|
+
//# sourceMappingURL=CreditPackPicker-4yNg2DzX.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as I}from"./react-
|
|
1
|
+
import{g as I}from"./react-D_XRFzZv.js";import{r as H}from"./index-1-ma0rIa.js";import{r as M}from"./dcl-schemas-3U1mdpFi.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},f=new o.Error().stack;f&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[f]="95840eba-4c70-4c16-b7ed-3eed2bbebe7c",o._sentryDebugIdIdentifier="sentry-dbid-95840eba-4c70-4c16-b7ed-3eed2bbebe7c")}catch{}})();function O(o,f){for(var b=0;b<f.length;b++){const h=f[b];if(typeof h!="string"&&!Array.isArray(h)){for(const w in h)if(w!=="default"&&!(w in o)){const g=Object.getOwnPropertyDescriptor(h,w);g&&Object.defineProperty(o,w,g.get?g:{enumerable:!0,get:()=>h[w]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var y={},F;function C(){if(F)return y;F=1,Object.defineProperty(y,"__esModule",{value:!0}),y.getHashesByKey=y.buildEntityWithoutNewFiles=y.buildEntity=y.buildEntityAndFile=void 0;const o=H(),f=M();async function b({type:n,pointers:t,timestamp:e,content:a,metadata:r}){var i;if(t.length===0)throw new Error("All entities must have at least one pointer.");const d={version:"v3",type:n,pointers:t,timestamp:e,content:a,metadata:r};if(a){const s=new Set;for(const p of a){const E=p.file.toLowerCase();if(s.has(E))throw new Error(`Error creating the deployable entity: Decentraland's file system is case insensitive, the file ${JSON.stringify(p.file)} is repeated`);s.add(E)}}const c=new TextEncoder().encode(JSON.stringify(d)),l={id:await(0,o.hashV1)(c),...d};if(!f.Entity.validate(l))throw new Error(`Generated entity is not valid:
|
|
2
2
|
`+((i=f.Entity.validate.errors)===null||i===void 0?void 0:i.map(s=>s.message).join(`
|
|
3
3
|
`)));return{entity:l,entityFile:c}}y.buildEntityAndFile=b;async function h({type:n,pointers:t,files:e,metadata:a,timestamp:r}){const i=Array.from(e||[]).map(([l,s])=>({key:l,content:s})),d=await Promise.all(i.map(async({key:l,content:s})=>({key:l,content:s,hash:await(0,o.hashV1)(s)}))),c=new Map(d.map(({hash:l,key:s})=>[s,l])),u=new Map(d.map(({hash:l,content:s})=>[l,s]));return g(n,t,{hashesByKey:c,filesByHash:u,metadata:a,timestamp:r})}y.buildEntity=h;async function w(n,{contentUrl:t,type:e,pointers:a,hashesByKey:r,metadata:i,timestamp:d}){const c=r??i?m(i):void 0;if(c&&D(e,c)){const u=await _(n,t,c),l=await A(u,i);return h({type:e,pointers:a,files:u,metadata:l,timestamp:d})}return g(e,a,{hashesByKey:r,metadata:i,timestamp:d})}y.buildEntityWithoutNewFiles=w;async function g(n,t,e){if(t.length===0)throw new Error("All entities must have at least one pointer.");const a=e!=null&&e.hashesByKey?e==null?void 0:e.hashesByKey:new Map,r=Array.from(a.entries()).map(([l,s])=>({file:l,hash:s})),i=e!=null&&e.timestamp?e==null?void 0:e.timestamp:Date.now(),{entity:d,entityFile:c}=await b({type:n,pointers:t,timestamp:i,content:r,metadata:e==null?void 0:e.metadata}),u=e!=null&&e.filesByHash?e.filesByHash:new Map;return u.set(d.id,c),{files:u,entityId:d.id}}function D(n,t){return n===f.EntityType.PROFILE&&Array.from(t).some(([,e])=>e.toLowerCase().startsWith("qm"))}async function v(n,t){const a=await(await n.fetch(t)).arrayBuffer();return new Uint8Array(a)}async function _(n,t,e){const a=e.get("body.png"),r=e.get("face256.png"),i=new URL(`${t}/contents/${a}`).toString(),d=new URL(`${t}/contents/${r}`).toString(),[c,u]=await Promise.all([v(n,i),v(n,d)]);return new Map([["body.png",c],["face256.png",u]])}async function A(n,t){return t&&(t.avatars=await Promise.all(t.avatars.map(async e=>{const a={face256:"",body:""},r=n.get("face256.png");r&&(a.face256=await(0,o.hashV1)(r));const i=n.get("body.png");return i&&(a.body=await(0,o.hashV1)(i)),e.avatar.snapshots=a,e})),t)}function m(n){const t=n.avatars[0];if(t.avatar.snapshots)return new Map([["body.png",t.avatar.snapshots.body],["face256.png",t.avatar.snapshots.face256]])}return y.getHashesByKey=m,y}var B=C();const P=I(B),j=O({__proto__:null,default:P},[B]);export{j as D};
|
|
4
|
-
//# sourceMappingURL=DeploymentBuilder-
|
|
4
|
+
//# sourceMappingURL=DeploymentBuilder-Cs6gjb_o.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-
|
|
2
|
-
import{j as r,r as s}from"./react-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-BgbyJsZt.js","_assets/react-D_XRFzZv.js","_assets/dcl-schemas-3U1mdpFi.js","_assets/index-DzX7u62s.js","_assets/sentry-DG2MmgNB.js","_assets/ethers-gO8XAtHb.js","_assets/intl-AKLEHPeO.js","_assets/index-D8un52Rt.css","_assets/createSvgIcon-CVy36-mT.js","_assets/emotion-styled.browser.esm-BCXi3z-x.js","_assets/styled-CB32tZD8.js","_assets/index-8R_MCmk1.js","_assets/useTheme-BL6Qmmme.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{j as r,r as s}from"./react-D_XRFzZv.js";import{_ as n,a as d,s as p}from"./index-DzX7u62s.js";import{E as u}from"./sentry-DG2MmgNB.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="283c77c1-abbc-4cc9-99af-ff1cf278d6f1",e._sentryDebugIdIdentifier="sentry-dbid-283c77c1-abbc-4cc9-99af-ff1cf278d6f1")}catch{}})();const l=s.lazy(async()=>{const[{EmoteControls:e},{Experimental_CssVarsProvider:o},{light:a}]=await Promise.all([n(()=>import("./index-BgbyJsZt.js").then(i=>i.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])),n(()=>import("./index-8R_MCmk1.js"),__vite__mapDeps([11,3,1,2,4,5,6,7,12,10])),n(()=>import("./index-DzX7u62s.js").then(i=>i.d_),__vite__mapDeps([3,1,2,4,5,6,7]))]);return{default:i=>r.jsx(o,{theme:a,children:r.jsx(e,{...i})})}});function c(e){return r.jsx(u,{fallback:r.jsx(r.Fragment,{}),children:r.jsx(s.Suspense,{fallback:null,children:r.jsx(l,{...e})})})}const{colors:t,radius:x}=d,b=p.div`
|
|
3
3
|
/* Doubled class: a preview panel may size its children greedily (ItemDetail's stretches every child to
|
|
4
4
|
fill the stage), and the bar's own geometry has to win that whichever order the styles land in. */
|
|
5
5
|
&& {
|
|
@@ -118,4 +118,4 @@ import{j as r,r as s}from"./react-CZ2YYu9h.js";import{_ as n,a as d,s as p}from"
|
|
|
118
118
|
outline-offset: 2px;
|
|
119
119
|
}
|
|
120
120
|
`;function f({previewId:e,testId:o="emote-controls"}){return r.jsx(b,{"data-preview-controls":!0,"data-testid":o,children:r.jsx(c,{wearablePreviewId:e,hideFrameInput:!0})})}export{f as E};
|
|
121
|
-
//# sourceMappingURL=EmotePlaybackBar-
|
|
121
|
+
//# sourceMappingURL=EmotePlaybackBar-DNCst361.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{j as n}from"./react-
|
|
2
|
-
//# sourceMappingURL=ErrorNotice-
|
|
1
|
+
import{j as n}from"./react-D_XRFzZv.js";import{I as o}from"./index-DzX7u62s.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="c67eed24-9c07-42e3-aafe-ecbed75d6f90",e._sentryDebugIdIdentifier="sentry-dbid-c67eed24-9c07-42e3-aafe-ecbed75d6f90")}catch{}})();function i({message:e,className:r,testId:t}){return e?n.jsxs("p",{className:r?`error-notice ${r}`:"error-notice","data-testid":t,role:"alert",children:[n.jsx(o,{name:"alert",className:"error-notice__ico",size:18}),n.jsx("span",{className:"error-notice__msg",children:e})]}):null}export{i as E};
|
|
2
|
+
//# sourceMappingURL=ErrorNotice-BWLszBSm.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as i,b as u,r as g}from"./react-
|
|
1
|
+
import{j as i,b as u,r as g}from"./react-D_XRFzZv.js";import{a as b,s as a,H as f,N as x,E as w,O as v,P as y,Q as j,R as C,S as k,U as I,t as s}from"./index-DzX7u62s.js";import{Assets as N}from"./Assets-35YpqB8m.js";import"./dcl-schemas-3U1mdpFi.js";import"./sentry-DG2MmgNB.js";import"./ethers-gO8XAtHb.js";import"./intl-AKLEHPeO.js";import"./search-empty-C4rbyfQ4.js";import"./Filters-Bdy7f7h2.js";import"./browseLayout.styles-CJyAUz48.js";import"./Tooltip-BBYkvHeY.js";import"./skeleton.styles-bkJfg2m5.js";import"./LoadMore-B0-EZXVq.js";import"./useInfiniteGrid-DvbNKvtY.js";import"./categories-DwJRDHkQ.js";import"./ErrorNotice-BWLszBSm.js";import"./buy-gasless-B9kgdnfS.js";import"./trade-encoding-WzYAfzM9.js";import"./sendMetaTransaction-D-MbqmQA.js";import"./buy-l-dx4ez4.js";import"./errors-k8QKrO3n.js";import"./CreditPackPicker-4yNg2DzX.js";import"./cart-checkout-WB4Aki5K.js";import"./PaymentMethodStep-CUa3o3Ue.js";import"./mana-matic-CEqvSwrJ.js";import"./resume-name-Bo_j54Kd.js";import"./resume-buy-DLyKRrLH.js";import"./name-glyph-aUugT8vq.js";import"./crumbs.styles-D5t9ZymW.js";import"./grid.styles-H0I3Ho34.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new n.Error().stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="c3fe9c73-8193-46a6-86a7-1de8bc08e934",n._sentryDebugIdIdentifier="sentry-dbid-c3fe9c73-8193-46a6-86a7-1de8bc08e934")}catch{}})();const{colors:B,gradients:_,media:c,radius:l}=b,E=a.section`
|
|
2
2
|
position: relative;
|
|
3
3
|
display: flex;
|
|
4
4
|
align-items: center;
|
|
@@ -69,4 +69,4 @@ import{j as i,b as u,r as g}from"./react-CZ2YYu9h.js";import{a as b,s as a,H as
|
|
|
69
69
|
content: none;
|
|
70
70
|
}
|
|
71
71
|
`;function T({slot:n}){const t=x(n);return t?i.jsxs(E,{"data-testid":"campaign-banner",children:[i.jsxs("picture",{children:[i.jsx("source",{media:"(max-width: 768px)",srcSet:t.mobileImage}),i.jsx(P,{src:t.desktopImage,alt:"","aria-hidden":!0})]}),i.jsxs($,{children:[i.jsx(D,{"data-testid":"campaign-banner-title",children:t.title}),!w()&&t.cta?i.jsx(S,{as:"a",href:t.cta.href,variant:"purple","data-testid":"campaign-banner-cta",onClick:()=>v("Shop Clicked Banner",{slot:n,banner_id:t.bannerId,campaign:t.campaignName}),children:t.cta.label}):null]})]}):null}const z="marketplaceCampaignCollectiblesBanner";function me(){const n=u(),t=y(h=>h.locale),{campaign:e,isPending:o}=j(),{contracts:d,isPending:p}=C((e==null?void 0:e.tags)??[],e==null?void 0:e.collections),r=!o&&!(e!=null&&e.mainTag);if(g.useEffect(()=>{r&&n("/items",{replace:!0})},[r,n]),o||p||r)return i.jsx("div",{className:"page-loading","aria-busy":"true",children:i.jsx("span",{className:"spinner","aria-hidden":!0})});const m=k(e==null?void 0:e.tabName,I(t))??(e==null?void 0:e.name)??"";return i.jsxs(i.Fragment,{children:[i.jsx(T,{slot:z}),i.jsx(N,{contracts:d,hideNames:!0,lockStatus:"on_sale",seo:{title:m||s("seo.collectibles.title"),description:s("seo.collectibles.description"),noindex:!0}})]})}export{me as Event};
|
|
72
|
-
//# sourceMappingURL=Event-
|
|
72
|
+
//# sourceMappingURL=Event-BaMrVGZR.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{C as p,E as h,b as f,S as E,d as k,O as U,N as A,g as b,B as x,e as N,i as I,p as _}from"./W3MFrameProviderSingleton-
|
|
2
|
-
//# sourceMappingURL=ExchangeController-
|
|
1
|
+
import{C as p,E as h,b as f,S as E,d as k,O as U,N as A,g as b,B as x,e as N,i as I,p as _}from"./W3MFrameProviderSingleton-BWCpODC1.js";import{g as L,a as D,f as P,b as v,c as T}from"./index-BcC3nPp2.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="31af8d60-e68b-4b1b-8061-0ddfb121e8b0",t._sentryDebugIdIdentifier="sentry-dbid-31af8d60-e68b-4b1b-8061-0ddfb121e8b0")}catch{}})();const W=0,C={paymentAsset:null,amount:null,tokenAmount:0,priceLoading:!1,error:null,exchanges:[],isLoading:!1,currentPayment:void 0,isPaymentInProgress:!1,paymentId:"",assets:[]},e=_(C),d={state:e,subscribe(t){return I(e,()=>t(e))},subscribeKey(t,n){return N(e,t,n)},resetState(){Object.assign(e,{...C})},async getAssetsForNetwork(t){const n=T(t),s=await d.getAssetsImageAndPrice(n),r=n.map(a=>{var c,o,m,l;const u=a.asset==="native"?b():`${a.network}:${a.asset}`,i=s.find(S=>{var y,g,w;return((w=(g=(y=S.fungibles)==null?void 0:y[0])==null?void 0:g.address)==null?void 0:w.toLowerCase())===u.toLowerCase()});return{...a,price:((o=(c=i==null?void 0:i.fungibles)==null?void 0:c[0])==null?void 0:o.price)||1,metadata:{...a.metadata,iconUrl:(l=(m=i==null?void 0:i.fungibles)==null?void 0:m[0])==null?void 0:l.iconUrl}}});return e.assets=r,r},async getAssetsImageAndPrice(t){const n=t.map(r=>r.asset==="native"?b():`${r.network}:${r.asset}`);return await Promise.all(n.map(r=>x.fetchTokenPrice({addresses:[r]})))},getTokenAmount(){var s;if(!((s=e==null?void 0:e.paymentAsset)!=null&&s.price))throw new Error("Cannot get token price");const t=A.bigNumber(e.amount??0).round(8),n=A.bigNumber(e.paymentAsset.price).round(8);return t.div(n).round(8).toNumber()},setAmount(t){var n;e.amount=t,(n=e.paymentAsset)!=null&&n.price&&(e.tokenAmount=d.getTokenAmount())},setPaymentAsset(t){e.paymentAsset=t},isPayWithExchangeEnabled(){var t;return(t=U.state.remoteFeatures)==null?void 0:t.payWithExchange},isPayWithExchangeSupported(){return d.isPayWithExchangeEnabled()&&p.state.activeCaipNetwork&&k.PAY_WITH_EXCHANGE_SUPPORTED_CHAIN_NAMESPACES.includes(p.state.activeCaipNetwork.chainNamespace)},async fetchExchanges(){var t;try{const n=d.isPayWithExchangeSupported();if(!e.paymentAsset||!n){e.exchanges=[],e.isLoading=!1;return}e.isLoading=!0;const s=await v({page:W,asset:P(e.paymentAsset.network,e.paymentAsset.asset),amount:((t=e.amount)==null?void 0:t.toString())??"0"});e.exchanges=s.exchanges.slice(0,2)}catch{throw E.showError("Unable to get exchanges"),new Error("Unable to get exchanges")}finally{e.isLoading=!1}},async getPayUrl(t,n){try{const s=Number(n.amount),r=await D({exchangeId:t,asset:P(n.network,n.asset),amount:s.toString(),recipient:`${n.network}:${n.recipient}`});return h.sendEvent({type:"track",event:"PAY_EXCHANGE_SELECTED",properties:{exchange:{id:t},configuration:{network:n.network,asset:n.asset,recipient:n.recipient,amount:s},currentPayment:{type:"exchange",exchangeId:t},source:"fund-from-exchange",headless:!1}}),r}catch(s){throw s instanceof Error&&s.message.includes("is not supported")?new Error("Asset not supported"):new Error(s.message)}},async handlePayWithExchange(t){var n;try{const s=(n=p.getAccountData())==null?void 0:n.address;if(!s)throw new Error("No account connected");if(!e.paymentAsset)throw new Error("No payment asset selected");const r=f.returnOpenHref("","popupWindow","scrollbar=yes,width=480,height=720");if(!r)throw new Error("Could not create popup window");e.isPaymentInProgress=!0,e.paymentId=crypto.randomUUID(),e.currentPayment={type:"exchange",exchangeId:t};const{network:a,asset:u}=e.paymentAsset,i={network:a,asset:u,amount:e.tokenAmount,recipient:s},c=await d.getPayUrl(t,i);if(!c){try{r.close()}catch(o){console.error("Unable to close popup window",o)}throw new Error("Unable to initiate payment")}e.currentPayment.sessionId=c.sessionId,e.currentPayment.status="IN_PROGRESS",e.currentPayment.exchangeId=t,r.location.href=c.url}catch{e.error="Unable to initiate payment",E.showError(e.error)}},async waitUntilComplete({exchangeId:t,sessionId:n,paymentId:s,retries:r=20}){const a=await d.getBuyStatus(t,n,s);if(a.status==="SUCCESS"||a.status==="FAILED")return a;if(r===0)throw new Error("Unable to get deposit status");return await new Promise(u=>{setTimeout(u,5e3)}),d.waitUntilComplete({exchangeId:t,sessionId:n,paymentId:s,retries:r-1})},async getBuyStatus(t,n,s){var r,a,u,i,c;try{if(!e.currentPayment)throw new Error("No current payment");const o=await L({sessionId:n,exchangeId:t});if(e.currentPayment.status=o.status,o.status==="SUCCESS"||o.status==="FAILED"){const m=(r=p.getAccountData())==null?void 0:r.address;e.currentPayment.result=o.txHash,e.isPaymentInProgress=!1,h.sendEvent({type:"track",event:o.status==="SUCCESS"?"PAY_SUCCESS":"PAY_ERROR",properties:{message:o.status==="FAILED"?f.parseError(e.error):void 0,source:"fund-from-exchange",paymentId:s,configuration:{network:((a=e.paymentAsset)==null?void 0:a.network)||"",asset:((u=e.paymentAsset)==null?void 0:u.asset)||"",recipient:m||"",amount:e.amount??0},currentPayment:{type:"exchange",exchangeId:(i=e.currentPayment)==null?void 0:i.exchangeId,sessionId:(c=e.currentPayment)==null?void 0:c.sessionId,result:o.txHash}}})}return o}catch{return{status:"UNKNOWN",txHash:""}}},reset(){e.currentPayment=void 0,e.isPaymentInProgress=!1,e.paymentId="",e.paymentAsset=null,e.amount=0,e.tokenAmount=0,e.priceLoading=!1,e.error=null,e.exchanges=[],e.isLoading=!1}};export{d as E};
|
|
2
|
+
//# sourceMappingURL=ExchangeController-0ZEQGu_P.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as x,j as o}from"./react-
|
|
1
|
+
import{r as x,j as o}from"./react-D_XRFzZv.js";import{a as e,s as a,t as h,I as w}from"./index-DzX7u62s.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new i.Error().stack;s&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[s]="c9e544c7-4eb0-4e9d-a320-4a04ca7182ca",i._sentryDebugIdIdentifier="sentry-dbid-c9e544c7-4eb0-4e9d-a320-4a04ca7182ca")}catch{}})();const m=a.section`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 36px;
|
|
@@ -172,4 +172,4 @@ import{r as x,j as o}from"./react-CZ2YYu9h.js";import{a as e,s as a,t as h,I as
|
|
|
172
172
|
}
|
|
173
173
|
`;function S({title:i,entries:s,tone:l="light",className:u}){const[f,g]=x.useState(()=>new Set),p=x.useId();function b(t){g(n=>{const r=new Set(n);return r.delete(t)||r.add(t),r})}return o.jsxs(m,{className:u,"data-tone":l,"data-testid":"faq",children:[o.jsx(k,{"data-testid":"faq-title",children:h(i)}),o.jsx(v,{children:s.map(t=>{const n=f.has(t.question),r=`${p}-panel-${t.question}`,c=`${p}-header-${t.question}`;return o.jsxs($,{"data-open":n,"data-testid":"faq-item",children:[o.jsxs(y,{type:"button",onClick:()=>b(t.question),id:c,"aria-expanded":n,"aria-controls":n?r:void 0,"data-open":n,"data-testid":"faq-question",children:[o.jsx(q,{children:h(t.question)}),o.jsx(I,{"data-open":n,"aria-hidden":!0,children:o.jsx(w,{name:"chevron-up-line",size:36})})]}),n&&o.jsx(j,{id:r,role:"region","aria-labelledby":c,"data-testid":"faq-answer",children:h(t.answer).split(`
|
|
174
174
|
`).map(d=>d.trim()).filter(Boolean).map(d=>o.jsx("p",{children:d},d))})]},t.question)})})]})}export{S as F};
|
|
175
|
-
//# sourceMappingURL=Faq-
|
|
175
|
+
//# sourceMappingURL=Faq-Bc1isIbd.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as S,j as e}from"./react-
|
|
1
|
+
import{r as S,j as e}from"./react-D_XRFzZv.js";import{s as t,a as i,I as B,n as Qe,t as n,av as ce,C as de}from"./index-DzX7u62s.js";import{f as U,g as Ve}from"./browseLayout.styles-CJyAUz48.js";import{n as W,T as Xe}from"./Tooltip-BBYkvHeY.js";import{T as Je}from"./skeleton.styles-bkJfg2m5.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new a.Error().stack;r&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[r]="48041653-a0e5-47c7-9ab2-7756aa732999",a._sentryDebugIdIdentifier="sentry-dbid-48041653-a0e5-47c7-9ab2-7756aa732999")}catch{}})();function Jt(a){const r=S.useRef(null);S.useEffect(()=>{const p=r.current;r.current=a,!(p===null||p===a)&&window.scrollTo({top:0,left:0,behavior:"instant"})},[a])}const{colors:z,font:Z}=i,Ze=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 2px;
|
|
@@ -820,4 +820,4 @@ import{r as S,j as e}from"./react-CZ2YYu9h.js";import{s as t,a as i,I as B,n as
|
|
|
820
820
|
left: ${({on:a})=>a?"calc(100% - 18px)":"2px"};
|
|
821
821
|
}
|
|
822
822
|
`;function Gt(a){var r;for(const p of te){const h=(r=p.subs)==null?void 0:r.find(d=>d.key===a);if(h)return n(h.labelKey)}return a}function L({title:a,open:r,onToggle:p,summary:h,desktopStatic:d,headerTestId:u,headerAria:g,children:k}){const $=e.jsx(U,{up:r,size:24,color:i.colors.softWhite});return e.jsxs($t,{children:[e.jsxs(jt,{type:"button",desktopStatic:d,onClick:p,"aria-expanded":r,"aria-label":g,"data-testid":u,children:[e.jsx(St,{children:a}),d?e.jsx(Kt,{children:$}):$]}),!r&&h?e.jsx(Ct,{desktopHidden:d,children:h}):null,e.jsx(Rt,{open:r,desktopStatic:d,children:e.jsx(zt,{children:k})})]})}function ii({category:a,subCategory:r,onCategory:p,onSub:h,priceMin:d,priceMax:u,onPriceMin:g,onPriceMax:k,rarities:$,onToggleRarity:m,status:K,onStatus:_,smart:C,onSmart:T,deals:v,onDeals:R,hideNames:E=!1,collections:s=!1,onCollections:b}){var le;const[x,f]=S.useState(!0),[c,j]=S.useState(!0),[He,_e]=S.useState(!1),[De,Me]=S.useState(!0),Y=d&&!Number.isNaN(Number(d))?Number(d):void 0,q=u&&!Number.isNaN(Number(u))?Number(u):void 0,[y,Q]=S.useState({}),ie=Y!=null?Math.min(Y,I):0,ae=q!=null?Math.min(q,I):I,M=y.min??ie,O=y.max??ae,oe=ve(M),Oe=ve(O),ne=o=>o<=0?"":String(o),re=o=>o>=I?"":String(o);function Ae(o){Q(w=>{const V=w.max??ae;return{...w,min:Math.min(ke(o),V)}})}function Le(o){Q(w=>{const V=w.min??ie;return{...w,max:Math.max(ke(o),V)}})}function F(){y.min===void 0&&y.max===void 0||(y.min!==void 0&&g(ne(y.min)),y.max!==void 0&&k(re(y.max)),Q({}))}const se=(le=te.find(o=>o.key===a))==null?void 0:le.labelKey,Ue=s?n("categories.collections"):r?Gt(r):se&&a!=="all"?n(se):"",Ge=Y!=null||q!=null?`${d||"0"}-${u||"∞"}`:"",Ye=X.filter(o=>$.includes(o)).map(ce).join(", "),qe=K==="on_sale"?n("filter.onSale"):K==="not_for_sale"?n("filter.notForSale"):"";return e.jsxs(vt,{children:[e.jsx(L,{title:n("assets.category"),open:x,onToggle:()=>f(o=>!o),summary:Ue,desktopStatic:!0,children:e.jsx(at,{category:a,subCategory:r,onCategory:p,onSub:h,hideNames:E,collections:s,onCollections:b})}),e.jsx(A,{}),e.jsxs(L,{title:n("filter.price"),open:c,onToggle:()=>j(o=>!o),summary:Ge,desktopStatic:!0,children:[e.jsxs(Wt,{children:[e.jsxs($e,{children:[e.jsx(je,{children:n("assets.min")}),e.jsx(Se,{children:e.jsx(Ke,{type:"number",min:"0","aria-label":n("assets.minPriceAria"),placeholder:"0",value:y.min!==void 0?ne(y.min):d,onChange:o=>g(o.target.value)})})]}),e.jsx(Tt,{children:n("assets.priceTo")}),e.jsxs($e,{children:[e.jsx(je,{children:n("assets.max")}),e.jsx(Se,{children:e.jsx(Ke,{type:"number",min:"0","aria-label":n("assets.maxPriceAria"),placeholder:"0",value:y.max!==void 0?re(y.max):u,onChange:o=>k(o.target.value)})})]})]}),e.jsxs(Pt,{children:[e.jsx(Bt,{"aria-hidden":!0}),e.jsx(Et,{minPct:oe,maxPct:Oe,"aria-hidden":!0}),e.jsx(Ce,{type:"range",min:0,max:G,value:J(M),"aria-label":n("assets.minPriceSliderAria"),"aria-valuetext":M.toLocaleString(),"data-on-top":oe>=50?"":void 0,onChange:o=>Ae(Number(o.target.value)),onPointerUp:F,onKeyUp:F,onBlur:F}),e.jsx(Ce,{type:"range",min:0,max:G,value:J(O),"aria-label":n("assets.maxPriceSliderAria"),"aria-valuetext":O.toLocaleString(),onChange:o=>Le(Number(o.target.value)),onPointerUp:F,onKeyUp:F,onBlur:F})]}),e.jsxs(Ft,{children:[e.jsxs(Re,{children:[e.jsx(ze,{name:de.iconName,"aria-hidden":!0}),M.toLocaleString()]}),e.jsxs(Re,{children:[e.jsx(ze,{name:de.iconName,"aria-hidden":!0}),O.toLocaleString()]})]})]}),e.jsx(A,{}),e.jsx(L,{title:n("assets.rarity"),open:He,onToggle:()=>_e(o=>!o),summary:Ye,headerTestId:"sidebar-section-toggle",children:e.jsx(It,{"data-testid":"rarity-filter",children:X.map(o=>{const w=$.includes(o);return e.jsxs(Nt,{type:"button",selected:w,"aria-pressed":w,onClick:()=>m(o),"data-testid":"rarity-filter-check",children:[e.jsx(Ht,{color:i.rarities[o],children:w?e.jsx(_t,{name:"check","aria-hidden":!0}):null}),e.jsx(Dt,{selected:w,children:ce(o)})]},o)})})}),e.jsx(A,{}),e.jsx(L,{title:n("filter.status"),open:De,onToggle:()=>Me(o=>!o),summary:qe,children:[["all",n("filter.statusAll")],["on_sale",n("filter.onSale")],["not_for_sale",n("filter.notForSale")]].map(([o,w])=>e.jsxs(Mt,{children:[e.jsx(Ot,{type:"radio",name:"shop-status",checked:K===o,onChange:()=>_(o)}),e.jsx(At,{children:w})]},o))}),e.jsx(A,{}),R?e.jsxs(We,{"data-testid":"deals-row",children:[e.jsx(Te,{children:e.jsx(Pe,{children:n("filter.deals")})}),e.jsx(Be,{type:"button",role:"switch",on:!!v,"aria-checked":!!v,"aria-label":n("filter.deals"),"data-testid":"deals-toggle",onClick:()=>R(!v),children:e.jsx(Ee,{on:!!v})})]}):null,e.jsxs(We,{children:[e.jsxs(Te,{children:[e.jsx(Lt,{name:"smart","aria-hidden":!0}),e.jsx(Pe,{children:n("filter.smart")}),e.jsx(Xe,{content:n("filter.smartHint"),placement:"bottom",children:e.jsx(Ut,{name:"info",role:"img","aria-label":n("filter.smartHint"),tabIndex:0,"data-testid":"smart-hint"})})]}),e.jsx(Be,{type:"button",role:"switch",on:C,"aria-checked":C,"aria-label":n("filter.smart"),onClick:()=>T(!C),children:e.jsx(Ee,{on:C})})]})]})}export{te as C,A as D,ii as F,X as R,Fe as S,ei as a,vt as b,at as c,L as d,It as e,Nt as f,Ht as g,_t as h,Dt as i,Mt as j,Ot as k,At as l,ti as m,Zt as n,Jt as u};
|
|
823
|
-
//# sourceMappingURL=Filters-
|
|
823
|
+
//# sourceMappingURL=Filters-Bdy7f7h2.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as me,u as be,r as l,j as t}from"./react-
|
|
1
|
+
import{b as me,u as be,r as l,j as t}from"./react-D_XRFzZv.js";import{s as i,a as e,k as L,B as we,t as o,C as h,x as ye,aL as ke,O as g,bs as ve,c6 as Ce,l as O,bD as Q,c7 as $e,bi as K,z as se,I as je,as as Se,c8 as Y}from"./index-DzX7u62s.js";import{C as Ae}from"./Confetti-COk_BPeM.js";import{F as _e}from"./Faq-Bc1isIbd.js";import{R}from"./resume-buy-DLyKRrLH.js";import{R as j}from"./resume-name-Bo_j54Kd.js";import{u as Pe,R as V,d as Re,c as Te,i as Ie,e as Be}from"./cart-checkout-WB4Aki5K.js";import"./dcl-schemas-3U1mdpFi.js";import"./sentry-DG2MmgNB.js";import"./ethers-gO8XAtHb.js";import"./intl-AKLEHPeO.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new s.Error().stack;n&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[n]="62bab9ef-2ae7-492f-a1af-f5e90696eabd",s._sentryDebugIdIdentifier="sentry-dbid-62bab9ef-2ae7-492f-a1af-f5e90696eabd")}catch{}})();const T="https://cdn.decentraland.org/@dcl/shop/1.14.1-35632037835.commit-fbecd50/_assets/pack-coins-BDh1ZDbh.webp",ae="https://cdn.decentraland.org/@dcl/shop/1.14.1-35632037835.commit-fbecd50/_assets/pack-stacks-D-V2jSHW.webp",de="https://cdn.decentraland.org/@dcl/shop/1.14.1-35632037835.commit-fbecd50/_assets/pack-chest-BX_j84xW.webp",Fe="https://cdn.decentraland.org/@dcl/shop/1.14.1-35632037835.commit-fbecd50/_assets/credit-coin-CmcTCd5i.webp",X="data:image/svg+xml,%3csvg%20width='60'%20height='60'%20viewBox='0%200%2060%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='60'%20height='60'%20rx='30'%20fill='%2334CE77'/%3e%3cpath%20d='M21.6583%2046.1067L11.4656%2036.0591C10.1688%2034.829%2010.1905%2032.7207%2011.4769%2031.4622L13.6868%2029.3591C14.9732%2028.1006%2017.1615%2028.1058%2018.4582%2029.3359L23.8747%2034.6197L41.9704%2015.6527C43.2568%2014.3942%2045.4291%2014.2093%2046.7258%2015.4394L48.8765%2017.3628C50.1732%2018.5929%2050.3491%2020.6844%2049.0626%2021.9429L26.6112%2045.8766C25.1433%2047.342%2022.955%2047.3368%2021.6583%2046.1067Z'%20fill='%23FCFCFC'/%3e%3c/svg%3e",Z="linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",ze=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 24px;
|
|
@@ -847,4 +847,4 @@ import{b as me,u as be,r as l,j as t}from"./react-CZ2YYu9h.js";import{s as i,a a
|
|
|
847
847
|
font-family: ${e.font.sans};
|
|
848
848
|
color: ${e.colors.err};
|
|
849
849
|
`,$=Ie()?"mock":"stripe",ne=[T,T,ae,de],zt={pack_5:T,pack_10:T,pack_25:ae,pack_50:de};function le(s,n){return zt[s.id]??ne[n%ne.length]}function Et(s,n){return s.artUrl??le(s,n)}const qt=[{question:"faq.buyers.whatAreQ",answer:"faq.buyers.whatAreA"},{question:"faq.buyers.whatCanIBuyQ",answer:"faq.buyers.whatCanIBuyA"},{question:"faq.buyers.whereBuyQ",answer:"faq.buyers.whereBuyA"},{question:"faq.buyers.whereUseQ",answer:"faq.buyers.whereUseA"},{question:"faq.buyers.expireQ",answer:"faq.buyers.expireA"},{question:"faq.buyers.transferQ",answer:"faq.buyers.transferA"}];function oe(s){const n=s;if((n==null?void 0:n.name)==="AbortError")return o("getCredits.errorCanceled");const x=((n==null?void 0:n.message)??"").toLowerCase();return x.includes("sign in")?o("getCredits.errorSignIn",{currency:h.name}):x.includes("timed out")?o("getCredits.errorTimeout",{currency:h.name}):o("getCredits.errorGeneric")}function Vt(){var G;we({title:o("nav.getCredits",{currency:h.name}),noindex:!0});const s=me(),{session:n,signIn:x,restored:a}=ye(),m=ke(),[b,A]=be(),{packs:y,isLoading:pe}=Pe(),[f,p]=l.useState("select"),[d,M]=l.useState(null),[_,N]=l.useState(null),he=(_!=null?(G=y.find(r=>r.credits===_))==null?void 0:G.artUrl:void 0)??Fe,[ue,k]=l.useState(null),[ge,P]=l.useState(!1),B=l.useRef(null),F=l.useRef(!0);l.useEffect(()=>(F.current=!0,()=>{F.current=!1,queueMicrotask(()=>{var r;F.current||(r=B.current)==null||r.abort()})}),[]);const U=l.useCallback(()=>{A(r=>{const c=new URLSearchParams(r);return c.delete("order"),c.delete("canceled"),c},{replace:!0})},[A]),v=l.useCallback(()=>{try{sessionStorage.removeItem(V),sessionStorage.removeItem(R),sessionStorage.removeItem(j)}catch{}},[]),z=l.useCallback(async r=>{p("processing");const c=new AbortController;B.current=c;try{const u=await Re(r,{signal:c.signal,address:n==null?void 0:n.address,identity:n==null?void 0:n.identity});if(u.status==="credited"){const C=u.creditsGranted??(d==null?void 0:d.credits)??0;N(C>0?C:null),p("success"),g("Shop Completed Buy Credits",{order_id:r,pack_usd:(d==null?void 0:d.usd)??null,credits:C>0?C:null,provider:$}),m.invalidateQueries({queryKey:["usd-balance"]});try{if(sessionStorage.getItem(V)){sessionStorage.removeItem(R),sessionStorage.removeItem(j);const w={resumeCheckout:!0,...C>0?{creditsAdded:C}:{}};s("/cart",{state:w});return}}catch{}try{const w=sessionStorage.getItem(R);if(w){sessionStorage.removeItem(R),sessionStorage.removeItem(j);const W=JSON.parse(w),H=ve(W);if(H){s(H,{state:{item:W,resumeBuy:!0}});return}}}catch{}try{const w=sessionStorage.getItem(j);if(w){sessionStorage.removeItem(j),s(Ce,{state:{resumeName:w}});return}}catch{}}else u.status==="abandoned"||u.status==="initiated"?(g("Shop Buy Credits Cancelled",{order_id:r,provider:$,step:"grant"}),m.invalidateQueries({queryKey:["usd-balance"]}),v(),P(!0),p("select")):u.status==="failed"?(g("Shop Buy Credits Failed",{step:"grant",error_code:"grant_failed",pack_usd:(d==null?void 0:d.usd)??null}),v(),k(u.error??o("getCredits.errorGrant",{currency:h.name})),p("error")):(g("Shop Buy Credits Pending",{step:"grant",pack_usd:(d==null?void 0:d.usd)??null}),m.invalidateQueries({queryKey:["usd-balance"]}),v(),p("pending"))}catch(u){O(u,{flow:"get_credits",step:"grant",order_id:r}),g("Shop Buy Credits Failed",{step:"grant",error_code:Q(u),pack_usd:(d==null?void 0:d.usd)??null}),v(),k(oe(u)),p("error")}},[d,n,m,s,v]),xe=l.useCallback(async r=>{if(!n){x();return}k(null),P(!1),M(r),p($==="mock"?"processing":"redirecting"),g("Shop Started Buy Credits",{pack_usd:r.usd,credits:r.credits,provider:$});try{const c=await Te(r.id,{address:n.address,identity:n.identity});if(c.mock)z(c.orderId);else if(c.url)g("Shop Redirected To Stripe",{order_id:c.orderId,pack_usd:r.usd,credits:r.credits}),window.location.href=c.url;else throw new Error("Checkout did not return a redirect url")}catch(c){O(c,{flow:"get_credits",step:"checkout",provider:$}),g("Shop Buy Credits Failed",{step:"checkout",error_code:Q(c),pack_usd:r.usd}),k(oe(c)),p("error")}},[n,x,z]),E=l.useRef(!1),D=l.useRef(null);l.useEffect(()=>{if(E.current)return;const r=b.get("order");if(b.get("canceled")!=null){if(r&&!a)return;E.current=!0,g("Shop Buy Credits Cancelled",{order_id:r,provider:$}),r&&n&&$e(r,n.identity),v(),U(),P(!0),p("select");return}if(r){if(p("processing"),!n){a&&(g("Shop Buy Credits Failed",{step:"grant",error_code:"no_identity",pack_usd:(d==null?void 0:d.usd)??null}),k(o("getCredits.errorSignInAfterPay",{currency:h.name})),p("error"));return}E.current=!0,U(),z(r)}},[b,n,a]);function q(){var r;(r=B.current)==null||r.abort(),p("select"),M(null),N(null),k(null),P(!1)}function fe(){const r=D.current;if(!r)return;const c=window.matchMedia("(prefers-reduced-motion: reduce)").matches;r.scrollIntoView({behavior:c?"auto":"smooth",block:"center"}),r.focus({preventScroll:!0})}return t.jsxs(ze,{children:[(f==="select"||f==="redirecting")&&t.jsxs(t.Fragment,{children:[t.jsx(Ee,{"data-testid":"credits-hero",children:t.jsxs(qe,{children:[t.jsxs(Le,{$hidden:f==="redirecting",children:[t.jsxs(Me,{children:[t.jsx(Ne,{children:o("getCredits.title")}),t.jsxs(Ue,{children:[t.jsx(De,{children:o("getCredits.subtitle")}),t.jsx(Ge,{type:"button",onClick:fe,"data-testid":"credits-learn-more",children:o("getCredits.learnMore")})]})]}),ge&&t.jsx(He,{role:"status",children:o("getCredits.canceledNote")}),t.jsx(Wt,{packs:y,loading:pe,onSelect:r=>void xe(r)})]}),f==="redirecting"&&t.jsxs(rt,{role:"status","aria-live":"polite",children:[t.jsx(at,{src:K,alt:"",width:72,height:72}),t.jsx(nt,{children:o("getCredits.redirecting")})]})]})}),t.jsx(We,{ref:D,tabIndex:-1,"data-testid":"credits-faq",children:t.jsx(_e,{title:"faq.title",entries:qt,tone:"on-dark"})})]}),f==="processing"&&t.jsxs(st,{role:"status","aria-live":"polite",children:[t.jsx(ce,{src:K,alt:"",width:61,height:61}),t.jsxs(dt,{children:[t.jsxs(ct,{children:[t.jsx("strong",{children:o("getCredits.processing")}),"…"]}),t.jsx(lt,{"aria-hidden":!0,children:t.jsx(ht,{children:t.jsx(ut,{})})})]})]}),f==="success"&&t.jsx(re,{"data-outcome":"success",children:t.jsxs(gt,{role:"status","aria-live":"polite",children:[t.jsx(Ae,{}),t.jsxs(xt,{children:[t.jsx(ft,{src:X,alt:"",width:60,height:60}),t.jsxs(mt,{children:[t.jsx("strong",{children:o("getCredits.successTitle")})," ",o("getCredits.successBody",{currency:h.name})]})]}),_!=null&&t.jsx(bt,{children:t.jsxs(wt,{children:[t.jsx(yt,{src:he,alt:"",width:93,height:93}),t.jsxs(kt,{children:[t.jsx(se,{}),t.jsxs("span",{children:[t.jsx(vt,{children:o("getCredits.creditsAmount",{credits:_,currency:h.name})})," ",t.jsx(Ct,{children:o("getCredits.creditsAdded")})]})]})]})}),t.jsxs($t,{children:[t.jsx(S,{"data-variant":"outline",onClick:q,children:o("getCredits.buyMore",{currency:h.name})}),t.jsx(S,{onClick:()=>s("/items"),children:o("getCredits.startShopping")})]})]})}),f==="pending"&&t.jsx(re,{children:t.jsxs(St,{role:"status","aria-live":"polite","data-testid":"credits-pending",children:[t.jsxs(At,{children:[t.jsx(_t,{src:X,alt:"",width:32,height:32}),t.jsx(Pt,{children:o("getCredits.pendingTitle",{currency:h.name})})]}),t.jsx(Rt,{children:o("getCredits.pendingBody")}),t.jsxs(Tt,{children:[t.jsx(S,{"data-variant":"outline",onClick:()=>s("/items"),children:o("getCredits.goShopping")}),t.jsx(S,{"data-variant":"ruby",onClick:q,children:o("getCredits.gotIt")})]})]})}),f==="error"&&t.jsxs(jt,{role:"alert",children:[t.jsx(It,{"data-tone":"error",children:o("getCredits.errorTitle")}),t.jsx(Ft,{children:ue}),t.jsx(Bt,{children:t.jsx(S,{onClick:q,children:o("getCredits.tryAgain")})})]})]})}function Wt({packs:s,loading:n,onSelect:x}){return n?t.jsx(J,{"aria-busy":"true","aria-label":o("getCredits.packsLoading",{currency:h.name}),children:[0,1,2,3].map(a=>t.jsxs(ee,{as:"div","data-skeleton":"true","data-testid":"pack-skeleton","aria-hidden":!0,children:[t.jsxs(te,{children:[t.jsxs(ie,{children:[t.jsx(Je,{}),t.jsx(et,{})]}),t.jsx(tt,{})]}),t.jsx(it,{})]},a))}):t.jsx(J,{children:s.map((a,m)=>{const b=Be(a,s);return t.jsxs(ee,{type:"button","data-testid":"pack","data-best":a.bestValue?"true":void 0,onClick:()=>x(a),"aria-label":b?o("getCredits.packAriaBonus",{amount:Y(a.credits),usd:a.usd,bonus:b.bonus,baseline:b.baseline}):o("getCredits.packAria",{amount:Y(a.credits),usd:a.usd}),children:[a.bestValue&&t.jsxs(Oe,{children:[t.jsx(je,{name:"star-rounded"}),o("getCredits.packBadge")]}),t.jsxs(te,{children:[t.jsxs(ie,{children:[t.jsxs(Qe,{children:[t.jsx(se,{}),t.jsx(Ke,{children:t.jsx(Se,{credits:a.credits})})]}),t.jsx(Ye,{children:o("getCredits.packUnit",{currency:h.name})})]}),t.jsx(Ve,{children:t.jsx("img",{src:Et(a,m),alt:"",loading:"lazy",width:507,height:507,onError:A=>{const y=A.currentTarget;y.dataset.artFallback||(y.dataset.artFallback="done",y.src=le(a,m))}})})]}),t.jsxs(Xe,{children:["$",a.usd.toFixed(2)]})]},a.id)})})}export{Vt as GetCredits,Vt as default};
|
|
850
|
-
//# sourceMappingURL=GetCredits-
|
|
850
|
+
//# sourceMappingURL=GetCredits-Dz5UiVe1.js.map
|