@dcl/shop 1.10.2-32947525166.commit-3fff6df → 1.11.0
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-BtEVQjQA.js → Activity-C-iRRJes.js} +8 -8
- package/_assets/{AnimatedBackground-IkrIRL1K.js → AnimatedBackground-2IqhbI98.js} +2 -2
- package/_assets/{Assets-DvkscE7I.js → Assets-BQHoTVy5.js} +9 -9
- package/_assets/{Authorizations-BtzgbNu4.js → Authorizations-DSQN_BUe.js} +2 -2
- package/_assets/{Cart-Dykg2Yej.js → Cart-4FZ_RV6w.js} +2 -2
- package/_assets/{Collection-D09TrPa7.js → Collection-C9Oa84DP.js} +2 -2
- package/_assets/{CollectionCarousel-Dz6JQa7s.js → CollectionCarousel-LTlXX1yl.js} +3 -3
- package/_assets/{Confetti-D9nguoEQ.js → Confetti-BHqqmYb2.js} +4 -4
- package/_assets/{ConstantsUtil-Bu2OGff0.js → ConstantsUtil-DFqlrvtU.js} +2 -2
- package/_assets/{ContentClient-f4spWPdK.js → ContentClient-lL0cd1fK.js} +2 -2
- package/_assets/{Creator-Dm0O6yeM.js → Creator-DG7Zttkm.js} +2 -2
- package/_assets/{DeploymentBuilder-C-2B6p5d.js → DeploymentBuilder-auJsBwBc.js} +2 -2
- package/_assets/{EmotePlaybackBar-BBMWt3Nd.js → EmotePlaybackBar-CUy3CzlZ.js} +3 -3
- package/_assets/{ErrorNotice-DdujPcIo.js → ErrorNotice-BjLTkOLz.js} +2 -2
- package/_assets/{ExchangeController-DYTNZzp6.js → ExchangeController-em5jrB6C.js} +2 -2
- package/_assets/{Faq-C3L446f-.js → Faq-Cpsw7_4i.js} +2 -2
- package/_assets/{GetCredits-BHWulS_s.js → GetCredits-BTNAQtsn.js} +2 -2
- package/_assets/{Grow-Ds18j49m.js → Grow-DEVww-vf.js} +2 -2
- package/_assets/{HelpersUtil-D_NL_P-0.js → HelpersUtil-CNYq2ptq.js} +2 -2
- package/_assets/{ItemDetail-7kOHAz0J.js → ItemDetail-BJ_vUz1c.js} +2 -2
- package/_assets/{LoadMore-D8qDeRXU.js → LoadMore-CED3UI8v.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-Dt6CIbk5.js → ManaPricingBanner.styles-BTTWbgOA.js} +2 -2
- package/_assets/{MyAssets-C3InNeq1.js → MyAssets-ExvadkK7.js} +2 -2
- package/_assets/{MyFavorites-Npqe8V7G.js → MyFavorites-BCpm40DL.js} +2 -2
- package/_assets/{NetworkUtil-DZ3oAWCy.js → NetworkUtil-_MPSq3Em.js} +2 -2
- package/_assets/{NotFound-BdlAZ0_k.js → NotFound-CmTXi9L3.js} +2 -2
- package/_assets/{NotificationsBell-Dj9JMzV2.js → NotificationsBell-D-6m4nDn.js} +2 -2
- package/_assets/{OutfitDetail-Kz1IbWuZ.js → OutfitDetail-7UO86DhJ.js} +2 -2
- package/_assets/{OutfitPreview-8dcvA95w.js → OutfitPreview-JNvUqt1m.js} +2 -2
- package/_assets/{OutfitStudio-Bua05_wP.js → OutfitStudio-DZHt3262.js} +2 -2
- package/_assets/{StoreSettings-DdjrIzwL.js → StoreSettings-FlBDdIHX.js} +3 -3
- package/_assets/{Success-ml7Z6uvY.js → Success-DrVW8DLr.js} +2 -2
- package/_assets/{SwapController-D0ZGb8jE.js → SwapController-DsQW0o_D.js} +2 -2
- package/_assets/{TradeService-B7MAJN_i.js → TradeService-DpLGt6zv.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-Cm_URG_Z.js → W3MFrameProviderSingleton-Doq6mTar.js} +4 -4
- package/_assets/{WebCryptoP256-juwBaL-I.js → WebCryptoP256-C54oY5uR.js} +2 -2
- package/_assets/{authorizations-iCNozW6w.js → authorizations-FX9A7NCF.js} +2 -2
- package/_assets/{basic-B2qyT6DX.js → basic-DzQ2oQpZ.js} +2 -2
- package/_assets/{biconomy-CjkHT4Sp.js → biconomy-D1Rmohrx.js} +2 -2
- package/_assets/{browseLayout.styles-DwS3IXc0.js → browseLayout.styles-DmXbjfpy.js} +2 -2
- package/_assets/{browser-Bhqn8eEy.js → browser-DDCBDKUs.js} +2 -2
- package/_assets/{browser-ponyfill-C3QJTrvF.js → browser-ponyfill-CFlZGY9p.js} +2 -2
- package/_assets/{builder-B6XCY6l2.js → builder-BUAFeauh.js} +2 -2
- package/_assets/{buy-BuEQSKKw.js → buy-BqmJYTA_.js} +2 -2
- package/_assets/{buy-gasless-a5LMIsjC.js → buy-gasless-r0-rX1Xz.js} +2 -2
- package/_assets/{categories-6vheNz_S.js → categories-DJ3CpW29.js} +2 -2
- package/_assets/{ccip-BSvD3xKG.js → ccip-CSFYjyzm.js} +2 -2
- package/_assets/{ccip-yZWGiwtk.js → ccip-DaOGcTi5.js} +2 -2
- package/_assets/{chains-WnQPMe2B.js → chains-Ca-lKFdh.js} +2 -2
- package/_assets/collectionPage.styles-Clp4tsb3.js +40 -0
- package/_assets/{common-DvLByPe6.js → common-D71QDZS6.js} +2 -2
- package/_assets/{controller-BHUJxVTn.js → controller-bhainDRr.js} +3 -3
- package/_assets/{core-DmhrtURy.js → core-W86KJVIY.js} +5 -5
- package/_assets/{createSvgIcon-6YmTulQL.js → createSvgIcon-42bsA22h.js} +2 -2
- package/_assets/{custom-N6ka0CP3.js → custom-NlyiR2bJ.js} +2 -2
- package/_assets/{data-capture-BuHtqEhX.js → data-capture-CkEuTxvB.js} +2 -2
- package/_assets/{dcl-schemas-CLUmlxzq.js → dcl-schemas-DvE7IWDY.js} +2 -2
- package/_assets/{decimals-CPONYvIL.js → decimals-BonQIQks.js} +2 -2
- package/_assets/{decimals-CzAhZKsk.js → decimals-_BVgpJXE.js} +2 -2
- package/_assets/{detectExtension-BqixUDGl.js → detectExtension-DfGWjbQS.js} +2 -2
- package/_assets/{disposePreview-BLUbNHQC.js → disposePreview-CJnRDEpI.js} +2 -2
- package/_assets/{email-CjDWrdP0.js → email-CqMQJOKz.js} +2 -2
- package/_assets/{embedded-wallet-XcVcc7hx.js → embedded-wallet-6hmBy_Gf.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-KQkBvz99.js → emotion-styled.browser.esm-D5XTvD6_.js} +2 -2
- package/_assets/{engine-BvP73XBl.js → engine-C3fRGwPf.js} +2 -2
- package/_assets/{errors--mHJKOdI.js → errors-CpdVn533.js} +2 -2
- package/_assets/{estimate-l1-fee-BQAkfTeN.js → estimate-l1-fee-Dcdfy4V-.js} +2 -2
- package/_assets/{eth_estimateGas-CCp4EILg.js → eth_estimateGas-DesFBy-I.js} +2 -2
- package/_assets/{eth_getStorageAt-NvgDLAuk.js → eth_getStorageAt-BhKGiz8g.js} +2 -2
- package/_assets/{eth_getTransactionCount-B-qIZY5_.js → eth_getTransactionCount-RiEmS15Z.js} +2 -2
- package/_assets/{ethereum-nDSm9vps.js → ethereum-DZDk5IEF.js} +2 -2
- package/_assets/{ethers-C9Iy8r0X.js → ethers-owZvXzo9.js} +2 -2
- package/_assets/{events-D6b4C9sL.js → events-CEwCSw8b.js} +2 -2
- package/_assets/{execute-CfXZj3Ro.js → execute-ChVwLvIS.js} +3 -3
- package/_assets/{extractIPFS-BjFXihPz.js → extractIPFS-MYkeOpFd.js} +2 -2
- package/_assets/{features-CqYf_Gvf.js → features-Cqya9akR.js} +2 -2
- package/_assets/{fetchTokenMetadata-ByYxB_9b.js → fetchTokenMetadata-Dt_Ge3P_.js} +3 -3
- package/_assets/{field.styles-BNlIn-oB.js → field.styles-CeeeC6M6.js} +2 -2
- package/_assets/{fortmatic-DiGOvvaO.js → fortmatic-HaoGtnlW.js} +2 -2
- package/_assets/{get-bytecode-BePQJps4.js → get-bytecode-Ceomoa5A.js} +2 -2
- package/_assets/{get-ecosystem-wallet-info-BYwnK28c.js → get-ecosystem-wallet-info-H_KBMV7z.js} +2 -2
- package/_assets/{getBalance-BGeqscYW.js → getBalance-Cfh3tdBU.js} +3 -3
- package/_assets/{getInstalledModules-ClhZXB-X.js → getInstalledModules-Cs4m8xMh.js} +2 -2
- package/_assets/{getNFT-D7zjcfkw.js → getNFT-CZmGsek0.js} +2 -2
- package/_assets/{getNFT-CigxvNVN.js → getNFT-Ds5tBhuH.js} +3 -3
- package/_assets/{grid.styles-BpWMimNV.js → grid.styles-DNvkHrfB.js} +2 -2
- package/_assets/{hashTypedData-0IsE41Hs.js → hashTypedData-B46TYEGs.js} +2 -2
- package/_assets/{hashTypedData-DRSIA9uS.js → hashTypedData-Ck3JYcdR.js} +2 -2
- package/_assets/{in-app-CPsaFODl.js → in-app-DkAnD74t.js} +2 -2
- package/_assets/{in-app-wallet-calls-CU6OCgfY.js → in-app-wallet-calls-6zqnTKmU.js} +2 -2
- package/_assets/{index-BVoenAQb.js → index-01W2VDSm.js} +2 -2
- package/_assets/{index-BgBta_-V.js → index-3eVpa8Zs.js} +3 -3
- package/_assets/{index-oom5HekT.js → index-4IZGP5BI.js} +2 -2
- package/_assets/{index-BA4OfL1w.js → index-B4HWQoMQ.js} +2 -2
- package/_assets/{index-DPJ_Dv-6.js → index-B5QXa_jU.js} +2 -2
- package/_assets/{index-DNt7hHHr.js → index-B6482tHt.js} +2 -2
- package/_assets/{index-B9VasuEE.js → index-BA85S4-b.js} +2 -2
- package/_assets/{index-B6QN3jej.js → index-BEPvB9a4.js} +2 -2
- package/_assets/{index-CszNNscD.js → index-BGwtsOnp.js} +2 -2
- package/_assets/{index-BJpQZ4-U.js → index-BIwL8wYY.js} +3 -3
- package/_assets/{index-CquGyNx3.js → index-BLyS1Id_.js} +2 -2
- package/_assets/{index-BriEZS3d.js → index-BPcUuaEM.js} +2 -2
- package/_assets/{index-CbPG6lqd.js → index-BWCMDqq2.js} +2 -2
- package/_assets/{index-CaYeG5nD.js → index-BXMUYCCw.js} +2 -2
- package/_assets/{index-JMZ5GXFr.js → index-Baph5Fsk.js} +4 -4
- package/_assets/{index-CnXK43z2.js → index-BeOtFyfk.js} +4 -4
- package/_assets/{index-BiOTdBif.js → index-Bg3xAgln.js} +2 -2
- package/_assets/{index-DDZoG2cJ.js → index-BhQW2CzQ.js} +2 -2
- package/_assets/{index-DVnQ1dYh.js → index-BkQgAoIb.js} +2 -2
- package/_assets/{index-DN0B-b9w.js → index-Bo4xq_KT.js} +38 -38
- package/_assets/{index-CPT9NXY_.js → index-BrIq7-i_.js} +2 -2
- package/_assets/{index-CPVhPEus.js → index-BsRChzmD.js} +2 -2
- package/_assets/{index-B7dn7Wpp.js → index-BuX-PHvB.js} +2 -2
- package/_assets/{index-E0gShLWk.js → index-BwNtq0ty.js} +2 -2
- package/_assets/{index-B7qNoUjO.js → index-BxSg-i3Z.js} +2 -2
- package/_assets/{index-DjYpq0m2.js → index-BymVVTih.js} +2 -2
- package/_assets/{index-CuTLeipJ.js → index-C-lBesby.js} +3 -3
- package/_assets/{index-C61JOxOi.js → index-C2TEKrCX.js} +2 -2
- package/_assets/{index-DMZuQX5Z.js → index-C2brhh00.js} +2 -2
- package/_assets/{index-KCbHh191.js → index-C5FVqvWl.js} +2 -2
- package/_assets/{index-BBSGNrFt.js → index-C8KL-9aQ.js} +4 -4
- package/_assets/{index-DcEfK_6R.js → index-C8b_Mp8q.js} +2 -2
- package/_assets/{index-2g2rt955.js → index-CDQhnjTx.js} +2 -2
- package/_assets/{index-DW1kr9We.js → index-CEdEU2Sz.js} +2 -2
- package/_assets/{index-TzVkLch4.js → index-CM0lUMPb.js} +2 -2
- package/_assets/{index-D1mY66Y6.js → index-CPV3T5Nk.js} +2 -2
- package/_assets/{index-DHiguVqg.js → index-CbCpnm3M.js} +2 -2
- package/_assets/{index-BRefIP3Y.js → index-Cez_C6xC.js} +2 -2
- package/_assets/{index-BunDVVpi.js → index-CjNGDouF.js} +2 -2
- package/_assets/{index-q70Ygp1T.js → index-Csoi-PzU.js} +2 -2
- package/_assets/{index-DjZtSIJT.js → index-CvgadAKP.js} +2 -2
- package/_assets/{index-xsD5uLyo.js → index-CxWJWmtu.js} +2 -2
- package/_assets/{index-rRqQLcGi.js → index-D3K6TzDb.js} +2 -2
- package/_assets/{index-Cygm1etz.js → index-D6f-xTid.js} +2 -2
- package/_assets/{index-BUsrJ61f.js → index-DBBu_7y6.js} +2 -2
- package/_assets/{index-CeDhF33l.js → index-DCzudm6R.js} +2 -2
- package/_assets/{index-CzmCNEXu.js → index-DFuoNvPP.js} +2 -2
- package/_assets/{index-C_6cb0bY.js → index-DJ1qFjFz.js} +2 -2
- package/_assets/{index-BWlHHe4G.js → index-DJovNmup.js} +2 -2
- package/_assets/{index-B_2Y_zc2.js → index-DMDo5Dfi.js} +2 -2
- package/_assets/{index-C7CWpZ7h.js → index-DML3k0rv.js} +2 -2
- package/_assets/{index-IV4V-eiF.js → index-DNS0QrgR.js} +2 -2
- package/_assets/{index-DcG7nuHK.js → index-DNdSl4K9.js} +2 -2
- package/_assets/{index-DqmNsU3V.js → index-DOsSArLP.js} +2 -2
- package/_assets/{index-CiJZSR52.js → index-DS-I38Tc.js} +2 -2
- package/_assets/{index-Bz2OeIHf.js → index-DSSDadoY.js} +2 -2
- package/_assets/{index-CGTc-luO.js → index-DVftQW5q.js} +2 -2
- package/_assets/{index-DOSiX24O.js → index-DbNtir5j.js} +2 -2
- package/_assets/{index-CdzRs1b-.js → index-Dd2Jq54A.js} +2 -2
- package/_assets/{index-CYl9EZ1l.js → index-Df9jZPLX.js} +3 -3
- package/_assets/{index-B7iUyeUt.js → index-Rhe6B7O9.js} +2 -2
- package/_assets/{index-5hRGbsT6.js → index-VvaOIIkN.js} +2 -2
- package/_assets/{index-NF_GoMGX.js → index-gKpIsDfs.js} +2 -2
- package/_assets/{index-BN0gbiar.js → index-h96Dfz17.js} +2 -2
- package/_assets/{index-DrZ7e67r.js → index-lYPp_CsV.js} +2 -2
- package/_assets/{index-BKpRjuv3.js → index-mUHmvZEV.js} +2 -2
- package/_assets/{index-BM89P0tM.js → index-swOm_k9d.js} +2 -2
- package/_assets/{index.es-DmNzhBfU.js → index.es-BMZKN-3q.js} +2 -2
- package/_assets/{index.es-7TvS5Qh2.js → index.es-CG8pIgNp.js} +2 -2
- package/_assets/{index.es-Dd_ITeS6.js → index.es-DblaMqlJ.js} +2 -2
- package/_assets/{index.es-sDdxkcpY.js → index.es-QU0adH7w.js} +5 -5
- package/_assets/items-empty-BMZ75Lpv.js +2 -0
- package/_assets/{jump-B99flTYG.js → jump-CEV1qxuu.js} +2 -2
- package/_assets/{linkAccount-BK4E9pGS.js → linkAccount-CDnEj4n7.js} +2 -2
- package/_assets/{localBatchGatewayRequest-CD9qdDZu.js → localBatchGatewayRequest-BTYDfS5L.js} +2 -2
- package/_assets/{native-B_xZpXlS.js → native-vQacsgOz.js} +2 -2
- package/_assets/{networks-DdoPyzr9.js → networks-R6efXWNT.js} +2 -2
- package/_assets/{onramp-CSzaYxx7.js → onramp-MIzJ7Phu.js} +2 -2
- package/_assets/{openzeppelin-BaM2lzE6.js → openzeppelin-WZqVhiNR.js} +2 -2
- package/_assets/{ownerOf-BfgU8Yir.js → ownerOf-CUrOWK4W.js} +2 -2
- package/_assets/{parseNft-PWSwCsvW.js → parseNft-DNnWK2BZ.js} +3 -3
- package/_assets/{parseSignature-CqMdCDcO.js → parseSignature-BxQdCW5i.js} +2 -2
- package/_assets/{parseSignature-BO5eeDYg.js → parseSignature-ssuAz5tk.js} +4 -4
- package/_assets/{passkeys-CACjqd-H.js → passkeys-VOKftow9.js} +2 -2
- package/_assets/{pay-with-exchange-C4xcSOKH.js → pay-with-exchange-H5b_2iDR.js} +2 -2
- package/_assets/{prepare-contract-call-CL7yIz7F.js → prepare-contract-call-DMYCdn0g.js} +2 -2
- package/_assets/{qr-overlay-CxDuFBIO.js → qr-overlay-DlZQUuEN.js} +4 -4
- package/_assets/{react-DdXEvnSt.js → react-eHGl4EaY.js} +2 -2
- package/_assets/{receive-Bi97E5iX.js → receive-b4QzvIHG.js} +2 -2
- package/_assets/{resolveImplementation-DU78VhfE.js → resolveImplementation-DHfJOcqj.js} +2 -2
- package/_assets/{resume-buy-BuTzbRDw.js → resume-buy-OKb8MiCf.js} +2 -2
- package/_assets/{rpc-B0bLYj3y.js → rpc-DS-ctSv0.js} +2 -2
- package/_assets/{sales-empty-RQ131-Cj.js → sales-empty-CTLNLo98.js} +2 -2
- package/_assets/{search-empty-CMaQUOPN.js → search-empty-CfWjX9Z-.js} +2 -2
- package/_assets/{secp256k1-DZCMwq3_.js → secp256k1-8GzWOfIy.js} +2 -2
- package/_assets/{secp256k1-C2bpUlKp.js → secp256k1-DpFuX-Ol.js} +2 -2
- package/_assets/{secp256k1-C55vmJBM.js → secp256k1-DwYyjHky.js} +2 -2
- package/_assets/{send-DC8EEssh.js → send-COzoq6o1.js} +2 -2
- package/_assets/{send-batch-transaction-Di75_q5e.js → send-batch-transaction-BgnH7oNx.js} +2 -2
- package/_assets/{send-eip712-transaction-C6wD9VSl.js → send-eip712-transaction-CNt5Pfzs.js} +3 -3
- package/_assets/{send-gasless-transaction-Cg4w5bcd.js → send-gasless-transaction-UwIdWPPH.js} +3 -3
- package/_assets/{send-transaction-Bu06yAj8.js → send-transaction-BXllE_ec.js} +3 -3
- package/_assets/{sendMetaTransaction-CKbbr1d4.js → sendMetaTransaction-D1z-Wmsw.js} +2 -2
- package/_assets/{sendRawTransaction-azgWOYRw.js → sendRawTransaction-DXJcvhe0.js} +4 -4
- package/_assets/{sentry-CBtADnon.js → sentry-Bv3fzY7D.js} +3 -3
- package/_assets/{serializeTransaction-BBcJIPff.js → serializeTransaction-B5hMBD3v.js} +2 -2
- package/_assets/{session-proposal-Dqdz1uoL.js → session-proposal-C1LetR0O.js} +2 -2
- package/_assets/{session-request-DYe2S1ap.js → session-request-bNq-_KEQ.js} +3 -3
- package/_assets/{sha256-BmebHN1B.js → sha256-D6nBKqdK.js} +2 -2
- package/_assets/{signing-o11zMWds.js → signing-DWEjtXRX.js} +4 -4
- package/_assets/{skeleton.styles-YvcInZiQ.js → skeleton.styles-doHMnxGS.js} +2 -2
- package/_assets/{socials-Bqwr35jk.js → socials-F27dq_3-.js} +2 -2
- package/_assets/{styled-Bv9C-hhk.js → styled-P9L5SAVN.js} +2 -2
- package/_assets/{swaps-BJemJ3RQ.js → swaps-BJjH9K6-.js} +2 -2
- package/_assets/{thirdweb-Dys1d89O.js → thirdweb-sllJut3_.js} +4 -4
- package/_assets/{to-serializable-transaction-DAhX_zz6.js → to-serializable-transaction-DYHJF9B0.js} +3 -3
- package/_assets/{totalSupply-f0y3Xsn-.js → totalSupply-B1ExUCAh.js} +2 -2
- package/_assets/{transaction-DplS0dTf.js → transaction-BsO81ihM.js} +2 -2
- package/_assets/{transactionReceipt-B37TIvhI.js → transactionReceipt-WABT5B1W.js} +2 -2
- package/_assets/{transactions-CoSZVkVt.js → transactions-DFiEzKoy.js} +2 -2
- package/_assets/{useCreditPacks-hefn0ZD5.js → useCreditPacks-v3OL_Ll5.js} +2 -2
- package/_assets/{useInfiniteGrid-BgpINlDx.js → useInfiniteGrid-CueovPl3.js} +2 -2
- package/_assets/{useStore-C_7NQ9wl.js → useStore-B9TZQeZ1.js} +3 -3
- package/_assets/{useTheme-Bf8p94fs.js → useTheme-CH48hjjC.js} +2 -2
- package/_assets/{utils-cnMKR5rx.js → utils-BWMxYffs.js} +2 -2
- package/_assets/{verifyHash-DSs7CuzA.js → verifyHash-D4hTFZ7n.js} +2 -2
- package/_assets/{w3m-modal-BJXFFFi6.js → w3m-modal-C4xYPIy3.js} +2 -2
- package/_assets/{w3m-modal-DAP74p6c.js → w3m-modal-CLbpmAGV.js} +2 -2
- package/_assets/{wait-for-tx-receipt-B6DTuo_9.js → wait-for-tx-receipt-EKO_WpX3.js} +2 -2
- package/_assets/{wallets-CjFPtGr5.js → wallets-D0RL-9yA.js} +6 -6
- package/_assets/{web-connector-DSLaUAKj.js → web-connector-C-ABA0VC.js} +4 -4
- package/_assets/{writeContract-BZfaaQq4.js → writeContract-BBWBhvR4.js} +2 -2
- package/_assets/{zora-sepolia-CiyL4SYq.js → zora-sepolia-CGe2iXCC.js} +2 -2
- package/_assets/{zoraTestnet-BbAmNK9l.js → zoraTestnet-C-qLus12.js} +2 -2
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/collectionPage.styles-6NhFxJwg.js +0 -40
- package/_assets/items-empty-BYwwtSaT.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-
|
|
2
|
-
import{U as we,bF as Ie,o as U,l as A,bG as Ae,t as o,s as l,m as Ee,n as Le,b as r,J as Ne,I as T,bH as se,bI as ne,bJ as $e,_ as Pe,L as Te,q as E,ao as K,bK as Se,r as Ce,bl as B,E as Fe,bL as De,w as N,bM as Me,bN as Q}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-BsRChzmD.js","_assets/react-eHGl4EaY.js","_assets/index-Bo4xq_KT.js","_assets/dcl-schemas-DvE7IWDY.js","_assets/sentry-Bv3fzY7D.js","_assets/ethers-owZvXzo9.js","_assets/intl-AKLEHPeO.js","_assets/index-CKGO8NWe.css","_assets/sales-empty-CTLNLo98.js","_assets/buy-BqmJYTA_.js","_assets/authorizations-FX9A7NCF.js","_assets/sendMetaTransaction-D1z-Wmsw.js","_assets/ManaPricingBanner.styles-BTTWbgOA.js","_assets/Faq-Cpsw7_4i.js","_assets/field.styles-CeeeC6M6.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{U as we,bF as Ie,o as U,l as A,bG as Ae,t as o,s as l,m as Ee,n as Le,b as r,J as Ne,I as T,bH as se,bI as ne,bJ as $e,_ as Pe,L as Te,q as E,ao as K,bK as Se,r as Ce,bl as B,E as Fe,bL as De,w as N,bM as Me,bN as Q}from"./index-Bo4xq_KT.js";import{r as g,u as He,j as t,e as qe,L as Re}from"./react-eHGl4EaY.js";import{u as Oe,s as _e}from"./sales-empty-CTLNLo98.js";import{L as ze}from"./LoadMore-CED3UI8v.js";import{u as $}from"./useInfiniteGrid-CueovPl3.js";import{m as de}from"./mana-matic-CEqvSwrJ.js";import{n as We}from"./name-glyph-aUugT8vq.js";import"./dcl-schemas-DvE7IWDY.js";import"./sentry-Bv3fzY7D.js";import"./ethers-owZvXzo9.js";import"./intl-AKLEHPeO.js";import"./buy-BqmJYTA_.js";import"./authorizations-FX9A7NCF.js";import"./sendMetaTransaction-D1z-Wmsw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="89a55512-9220-44f7-88e6-e9e1f65c969e",e._sentryDebugIdIdentifier="sentry-dbid-89a55512-9220-44f7-88e6-e9e1f65c969e")}catch{}})();const Ge=15e3;function Ue(e,s){return e.txHash&&s.txHash?e.txHash===s.txHash:e.txHash||s.txHash?!1:e.status===s.status&&Math.abs(e.createdAt-s.createdAt)<=Ge}function Ke(e){const s=[...e].sort((i,d)=>d.createdAt-i.createdAt),n=[];for(const i of s){const d=n[n.length-1];d&&Ue(d[d.length-1],i)?d.push(i):n.push([i])}return n.map(i=>{var d;return{id:((d=i.find(a=>a.txHash))==null?void 0:d.txHash)??i[i.length-1].id,createdAt:Math.max(...i.map(a=>a.createdAt)),status:Be(i),totalCredits:i.reduce((a,h)=>a+h.credits,0),lines:i}})}function Be(e){return e.some(s=>s.status==="PENDING")?"PENDING":e.some(s=>s.status==="SETTLED")?"SETTLED":"EXPIRED"}function Qe(e){return e==="SETTLED"?"SETTLED":e==="EXPIRED"?"FAILED":"PENDING"}function Xe(e){return e.tradeId?`trade:${e.tradeId}`:e.contractAddress&&e.itemId?`item:${e.contractAddress.toLowerCase()}:${e.itemId}`:null}function Ve(e){const s=[],n=new Map;for(const i of e){const d=Xe(i);if(!d){s.push({key:i.id,tradeId:null,contractAddress:i.contractAddress??null,itemId:i.itemId??null,registeredName:i.registeredName??null,quantity:1,credits:i.credits});continue}const a=n.get(d);if(a){a.quantity+=1,a.credits+=i.credits;continue}const h={key:d,tradeId:i.tradeId,contractAddress:i.contractAddress??null,itemId:i.itemId??null,registeredName:i.registeredName??null,quantity:1,credits:i.credits};n.set(d,h),s.push(h)}return s}function Je(e,s){return{id:e.id,contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId,counterparty:e.buyer,credits:s?we(e.manaWei,s):null,manaWei:e.manaWei,createdAt:e.createdAt,txHash:e.txHash}}function Ye(e){return e.status!=="EXPIRED"||!!e.submittedTxHash}function Ze(e){const n=Ke(e.purchases.filter(Ye)).map(c=>({kind:"purchase",id:`purchase:${c.id}`,createdAt:c.createdAt,order:c})),i=e.sales.map(c=>{const x=Je(c,e.rate);return{kind:"sale",id:`sale:${x.id}`,createdAt:x.createdAt,sale:x}}),d=(e.creditOrders??[]).filter(c=>c.status!=="failed"&&c.status!=="abandoned").map(c=>({kind:"credit",id:`credit:${c.id}`,createdAt:c.createdAt,order:c})),a=new Set(e.purchases.filter(c=>c.txHash).map(c=>c.txHash.toLowerCase())),h=(e.manaPurchases??[]).filter(c=>!a.has(c.txHash.toLowerCase())).map(c=>({kind:"mana-purchase",id:`mana-purchase:${c.id}`,createdAt:c.createdAt,sale:c}));return[...n,...i,...d,...h].sort((c,x)=>x.createdAt-c.createdAt||(c.id<x.id?-1:1))}function et(e,s){return s==="all"?e:s==="sales"?e.filter(n=>n.kind==="sale"):e.filter(n=>n.kind==="purchase"||n.kind==="credit"||n.kind==="mana-purchase")}const ce=e=>e.trim().toLowerCase();function tt(e){const s=new Map;for(const n of e??[]){const i=ce(n.txHash??"");if(!i)continue;const d=s.get(i);d?d.push(n):s.set(i,[n])}return s}function it(e,s,n=Date.now()){const i=s.txHash?e.get(ce(s.txHash)):void 0;if(!i||i.length===0)return{kind:"direct"};const d=i.length===1?st(i[0].netCents):null,a=i.filter(c=>!c.available&&c.availableAt>n);if(a.length===0)return{kind:"credited",credits:d};const h=a.reduce((c,x)=>Math.max(c,x.availableAt),0);return{kind:"pending",credits:d,availableAt:h}}function st(e){return Ie(e)}function nt(){const e=U(i=>{var d;return(d=i.session)==null?void 0:d.address}),{data:s,isLoading:n}=A({queryKey:["listing-count",e],queryFn:()=>Ae({creator:e,onSale:!0,first:1}),enabled:!!e,staleTime:5*6e4});return{count:s==null?void 0:s.total,isLoading:n}}const at="https://cdn.decentraland.org/@dcl/shop/1.11.0/_assets/credits-product-vs4Q6u6l.svg",X=Ee`
|
|
3
3
|
0% { background-position: 200% 0; }
|
|
4
4
|
100% { background-position: -200% 0; }
|
|
5
5
|
`,rt=l.section`
|
|
@@ -188,7 +188,7 @@ import{U as we,bF as Ie,o as U,l as A,bG as Ae,t as o,s as l,m as Ee,n as Le,b a
|
|
|
188
188
|
background: ${o.colors.line};
|
|
189
189
|
color: ${o.colors.muted};
|
|
190
190
|
}
|
|
191
|
-
`,
|
|
191
|
+
`,xt=l.button`
|
|
192
192
|
font-size: 11px;
|
|
193
193
|
font-weight: 700;
|
|
194
194
|
text-transform: uppercase;
|
|
@@ -230,7 +230,7 @@ import{U as we,bF as Ie,o as U,l as A,bG as Ae,t as o,s as l,m as Ee,n as Le,b a
|
|
|
230
230
|
width: 16px;
|
|
231
231
|
height: 16px;
|
|
232
232
|
vertical-align: -0.15em;
|
|
233
|
-
`,
|
|
233
|
+
`,mt=l.span`
|
|
234
234
|
display: inline-flex;
|
|
235
235
|
align-items: center;
|
|
236
236
|
cursor: pointer;
|
|
@@ -357,11 +357,11 @@ import{U as we,bF as Ie,o as U,l as A,bG as Ae,t as o,s as l,m as Ee,n as Le,b a
|
|
|
357
357
|
@media (prefers-reduced-motion: reduce) {
|
|
358
358
|
animation: none;
|
|
359
359
|
}
|
|
360
|
-
`,
|
|
360
|
+
`,yt=l.div`
|
|
361
361
|
display: flex;
|
|
362
362
|
flex-direction: column;
|
|
363
363
|
align-items: center;
|
|
364
|
-
`,
|
|
364
|
+
`,bt=l.div`
|
|
365
365
|
display: flex;
|
|
366
366
|
flex-direction: column;
|
|
367
367
|
align-items: center;
|
|
@@ -385,5 +385,5 @@ import{U as we,bF as Ie,o as U,l as A,bG as Ae,t as o,s as l,m as Ee,n as Le,b a
|
|
|
385
385
|
height: 26px;
|
|
386
386
|
object-fit: contain;
|
|
387
387
|
}
|
|
388
|
-
`,Z=L.withComponent(Re),wt=g.lazy(()=>Pe(()=>import("./index-CPVhPEus.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(e=>({default:e.ImportListings}))),P=24,It=["all","purchases","sales"],W="section",oe="listings",G="view",At="migrate";function I(e){try{return new Date(e).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}catch{return""}}function pe(e){return e.length>10?`${e.slice(0,6)}…${e.slice(-4)}`:e}function me(e){const s=Number(e)/1e18;return Number.isFinite(s)?s.toLocaleString("en",{maximumFractionDigits:2}):"0"}function xe({children:e}){const s=g.useRef(null),[n,i]=g.useState(null),d=()=>{var h;const a=(h=s.current)==null?void 0:h.getBoundingClientRect();a&&i({top:a.bottom+8,left:a.left+a.width/2})};return t.jsxs(xt,{ref:s,tabIndex:0,onMouseEnter:d,onMouseLeave:()=>i(null),onFocus:d,onBlur:()=>i(null),children:[e,n?qe.createPortal(t.jsx(gt,{style:{top:n.top,left:n.left},role:"tooltip",children:r("activity.polygonMana")}),document.body):null]})}function Et({item:e}){const s=!!e.contractAddress&&!!e.itemId,n=!!e.tradeId||s,{data:i,isLoading:d}=A({queryKey:["order-line-display",e.tradeId,e.contractAddress,e.itemId],queryFn:()=>e.tradeId?Me(e.tradeId):Q(e.contractAddress,{itemId:e.itemId}),enabled:n,staleTime:5*6e4}),a=n&&d,h=(i==null?void 0:i.name)??r("activity.itemFallback"),c=(i==null?void 0:i.thumbnail)??"",m=B({contractAddress:i==null?void 0:i.contractAddress,tokenId:i==null?void 0:i.tokenId,itemId:i==null?void 0:i.itemId})??void 0,f=t.jsxs(t.Fragment,{children:[a?t.jsx(J,{}):t.jsx(R,{children:c?t.jsx("img",{src:c,alt:h}):t.jsx(T,{name:"cart",size:20})}),t.jsxs(O,{children:[a?t.jsx(Y,{}):t.jsx(_,{title:h,children:h}),e.quantity>1?t.jsx(z,{children:r("activity.quantity",{count:e.quantity})}):null]}),t.jsxs(he,{children:[t.jsx(E,{className:"ccy-mark"})," ",t.jsx(K,{credits:e.credits})]})]});return m?t.jsx(Z,{to:m,"data-link":"true",children:f}):t.jsx(L,{children:f})}function Lt({item:e}){const s=`@${e.registeredName}`;return t.jsxs(L,{"data-testid":"activity-name-line",children:[t.jsx(kt,{children:t.jsx("img",{src:We,alt:""})}),t.jsxs(O,{children:[t.jsx(_,{title:s,children:s}),t.jsx(z,{children:r("activity.nameRegistration")})]}),t.jsxs(he,{children:[t.jsx(E,{className:"ccy-mark"})," ",e.credits]})]})}function Nt({order:e}){const s=Ve(e.lines),n=s.reduce((a,h)=>a+h.quantity,0),i=Qe(e.status),d=i==="SETTLED"?r("activity.completed"):i==="FAILED"?r("activity.failed"):r("activity.processing");return t.jsxs(S,{"data-testid":"purchase-order",children:[t.jsxs(C,{children:[t.jsxs(F,{children:[t.jsx(D,{children:I(e.createdAt)}),t.jsxs(M,{children:[r("activity.purchaseLabel")," · ",r("activity.itemCount",{count:n})]})]}),t.jsxs(H,{children:[t.jsx(q,{"data-status":i,children:d}),t.jsxs(k,{children:[t.jsx(E,{className:"ccy-mark"})," ",t.jsx(K,{credits:e.totalCredits})]})]})]}),i==="FAILED"?t.jsx(ft,{children:r("activity.purchaseFailedNote")}):null,t.jsx(V,{children:s.map(a=>a.registeredName?t.jsx(Lt,{item:a},a.key):t.jsx(Et,{item:a},a.key))})]})}function $t({sale:e}){const{data:s,isLoading:n}=A({queryKey:["asset-display",e.contractAddress,e.tokenId,e.itemId],queryFn:()=>Q(e.contractAddress,{tokenId:e.tokenId,itemId:e.itemId}),enabled:!!e.contractAddress,staleTime:3e5}),i=(s==null?void 0:s.name)??r("activity.itemFallback"),d=(s==null?void 0:s.thumbnail)??"",a=B({contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId})??void 0,h=t.jsxs(t.Fragment,{children:[n?t.jsx(J,{}):t.jsx(R,{children:d?t.jsx("img",{src:d,alt:i}):t.jsx(T,{name:"offer",size:20})}),t.jsxs(O,{children:[n?t.jsx(Y,{}):t.jsx(_,{title:i,children:i}),t.jsx(z,{children:r("activity.boughtFrom",{account:pe(e.seller)})})]})]});return t.jsxs(S,{"data-testid":"activity-mana-purchase",children:[t.jsxs(C,{children:[t.jsxs(F,{children:[t.jsx(D,{children:I(e.createdAt)}),t.jsx(M,{children:r("activity.paidWithMana")})]}),t.jsxs(H,{children:[t.jsx(q,{"data-status":"SETTLED",children:r("activity.completed")}),t.jsxs(k,{children:[me(e.manaWei)," ",t.jsx(xe,{children:t.jsx(ue,{src:de,alt:"MANA"})})]})]})]}),t.jsx(V,{children:a?t.jsx(Z,{to:a,"data-link":"true",children:h}):t.jsx(L,{children:h})})]})}function Pt({sale:e,payout:s}){const{data:n,isLoading:i}=A({queryKey:["asset-display",e.contractAddress,e.tokenId,e.itemId],queryFn:()=>Q(e.contractAddress,{tokenId:e.tokenId,itemId:e.itemId}),enabled:!!e.contractAddress,staleTime:3e5}),d=(n==null?void 0:n.name)??r("activity.itemFallback"),a=(n==null?void 0:n.thumbnail)??"",h=B({contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId})??void 0,c=t.jsxs(t.Fragment,{children:[i?t.jsx(J,{}):t.jsx(R,{children:a?t.jsx("img",{src:a,alt:d}):t.jsx(T,{name:"offer",size:20})}),t.jsxs(O,{children:[i?t.jsx(Y,{}):t.jsx(_,{title:d,children:d}),t.jsxs(z,{children:[r("activity.soldTo",{account:pe(e.counterparty)}),s.kind==="pending"?` · ${r("activity.payoutPendingOn",{date:I(s.availableAt)})}`:""]})]})]});return t.jsxs(S,{"data-testid":"activity-sale",children:[t.jsxs(C,{children:[t.jsxs(F,{children:[t.jsx(D,{children:I(e.createdAt)}),t.jsx(M,{children:r("activity.saleLabel")})]}),t.jsxs(H,{children:[t.jsx(q,{"data-status":s.kind==="pending"?"PENDING":"SOLD",children:s.kind==="pending"?r("activity.payoutPending"):r("activity.sold")}),s.kind==="direct"?t.jsxs(k,{"data-kind":"income",children:["+",me(e.manaWei)," ",t.jsx(xe,{children:t.jsx(ue,{src:de,alt:"MANA"})})]}):s.credits!==null?t.jsxs(k,{"data-kind":"income",children:[t.jsx(E,{className:"ccy-mark"})," +",Fe(s.credits)]}):t.jsx(k,{"data-kind":"income",children:r("activity.payoutCredited")})]})]}),t.jsx(V,{children:h?t.jsx(Z,{to:h,"data-link":"true",children:c}):t.jsx(L,{children:c})})]})}function Tt({order:e}){const s=`$${(e.usdCents/100).toFixed(2)}`,n=Se(e.status),i=n==="SETTLED"?r("activity.completed"):n==="FAILED"?r("activity.failed"):n==="UNFINISHED"?r("activity.unfinished"):r("activity.processing"),d=U(p=>p.session),a=Ce(),[h,c]=g.useState(!1),m=e.status==="initiated"&&!!d;g.useEffect(()=>{const p=()=>c(!1);return window.addEventListener("pageshow",p),()=>window.removeEventListener("pageshow",p)},[]);async function f(){if(!(!d||h)){c(!0);try{const p=await De(e.id,d.identity);if(p.kind==="url"){if(/^https:\/\/([a-z0-9-]+\.)*stripe\.com\//i.test(p.url)){window.location.href=p.url;return}N.error(r("activity.resumeUnavailable"))}else p.kind==="expired"?(N.info(r("activity.resumeExpired")),a.invalidateQueries({queryKey:["credit-orders"]})):p.kind==="paid"?(N.success(r("activity.resumePaid")),a.invalidateQueries({queryKey:["credit-orders"]})):N.error(r("activity.resumeUnavailable"));c(!1)}catch{c(!1)}}}return t.jsx(S,{"data-testid":"credit-order",children:t.jsxs(C,{children:[t.jsx(pt,{children:t.jsx("img",{src:at,alt:"","aria-hidden":!0})}),t.jsxs(F,{children:[t.jsx(D,{children:I(e.createdAt)}),t.jsxs(M,{children:[r("activity.creditPurchaseLabel")," · ",r("activity.creditPaid",{usd:s})]})]}),t.jsxs(H,{children:[m?t.jsx(mt,{type:"button",onClick:()=>void f(),disabled:h,"data-testid":"resume-order",children:h?r("activity.resuming"):r("activity.resume")}):null,t.jsx(q,{"data-status":n,children:i}),t.jsxs(k,{"data-kind":n==="UNFINISHED"?void 0:"income",children:[n==="UNFINISHED"?"":"+",t.jsx(E,{className:"ccy-mark"})," ",t.jsx(K,{credits:e.credits})]})]})]})})}function St({filter:e}){const s={all:r("activity.emptyAllBody"),purchases:r("activity.emptyPurchasesBody"),sales:r("activity.emptySalesBody")}[e];return t.jsx(bt,{children:t.jsx(Te,{testId:`activity-empty-${e}`,icon:_e,title:r("activity.emptyTitle"),body:s,cta:{label:r("assets.empty.cta"),to:"/items"}})})}function Bt(){const{session:e}=U(),[s,n]=g.useState("all"),[i,d]=He(),a=i.get(W)===oe||i.get(G)===At;Le({title:a?r("seo.import.title"):r("nav.activity"),noindex:!0});const{count:h}=Oe(),{count:c}=nt(),f=h!==void 0&&c!==void 0&&(h>0||c>0||a),p=!!e&&!a&&s!=="sales",x=!!e&&!a&&s!=="purchases",b=$(["purchases",e==null?void 0:e.address],u=>$e(e.address,e.identity,{first:P,skip:u}),{enabled:p}),y=$(["sales",e==null?void 0:e.address],u=>se(e.address,{role:"seller",first:P,skip:u}),{enabled:x}),v=$(["credit-orders",e==null?void 0:e.address],u=>ne(e.address,e.identity,{first:P,skip:u}),{enabled:p}),j=$(["mana-purchases",e==null?void 0:e.address],u=>se(e.address,{role:"buyer",first:P,skip:u}),{enabled:p}),{data:ee}=A({queryKey:["sale-payouts",e==null?void 0:e.address],queryFn:()=>ne(e.address,e.identity,{first:200}).then(u=>u.payouts),enabled:x,staleTime:6e4}),ge=g.useMemo(()=>tt(ee),[ee]),{data:fe}=Ne(x);if(!e)return t.jsxs(yt,{children:[t.jsx(T,{name:"clock",size:40,color:o.colors.muted2}),t.jsx(vt,{children:r("activity.signInTitle")}),t.jsx(jt,{children:r("activity.signInBody")})]});const te=et(Ze({purchases:p?b.items:[],sales:x?y.items:[],creditOrders:p?v.items:[],manaPurchases:p?j.items:[],rate:fe}),s),be=p&&(b.isLoading||v.isLoading||j.isLoading)||x&&y.isLoading,ie=p&&(b.isFetchingNextPage||v.isFetchingNextPage||j.isFetchingNextPage)||x&&y.isFetchingNextPage,ye=p&&(b.hasNextPage||v.hasNextPage||j.hasNextPage)||x&&y.hasNextPage;function ve(){p&&b.hasNextPage&&b.fetchNextPage(),p&&v.hasNextPage&&v.fetchNextPage(),p&&j.hasNextPage&&j.fetchNextPage(),x&&y.hasNextPage&&y.fetchNextPage()}function je(u){if(n(u),!a)return;const w=new URLSearchParams(i);w.delete(W),w.delete(G),d(w,{replace:!0})}function ke(){const u=new URLSearchParams(i);u.set(W,oe),u.delete(G),d(u,{replace:!0})}return t.jsxs(rt,{children:[t.jsx(ot,{children:t.jsx(dt,{children:r("nav.activity")})}),t.jsxs(ct,{role:"tablist","aria-label":r("nav.activity"),children:[It.map(u=>t.jsx(le,{type:"button",role:"tab","aria-selected":!a&&s===u,"data-active":!a&&s===u,"data-testid":`activity-filter-${u}`,onClick:()=>je(u),children:r(`activity.filter.${u}`)},u)),f?t.jsxs(lt,{type:"button",role:"tab","aria-selected":a,"data-active":a,"data-testid":"activity-filter-migrate","aria-label":h?r("activity.migrate.chipAria",{count:h}):void 0,onClick:ke,children:[r("activity.migrate.chip"),h?t.jsx(ut,{"data-testid":"activity-migrate-count","aria-hidden":!0,children:h}):null]}):null]}),a?t.jsx(g.Suspense,{fallback:t.jsx(ht,{"aria-busy":"true"}),children:t.jsx(wt,{})}):be?t.jsx(ae,{children:Array.from({length:5}).map((u,w)=>t.jsx(re,{},w))}):te.length===0?t.jsx(St,{filter:s}):t.jsxs(t.Fragment,{children:[t.jsxs(ae,{children:[te.map(u=>u.kind==="purchase"?t.jsx(Nt,{order:u.order},u.id):u.kind==="credit"?t.jsx(Tt,{order:u.order},u.id):u.kind==="mana-purchase"?t.jsx($t,{sale:u.sale},u.id):t.jsx(Pt,{sale:u.sale,payout:it(ge,u.sale)},u.id)),ie?t.jsx(re,{}):null]}),t.jsx(ze,{hasNextPage:ye,isFetching:ie,onLoadMore:ve})]})]})}export{Bt as Activity};
|
|
389
|
-
//# sourceMappingURL=Activity-
|
|
388
|
+
`,Z=L.withComponent(Re),wt=g.lazy(()=>Pe(()=>import("./index-BsRChzmD.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(e=>({default:e.ImportListings}))),P=24,It=["all","purchases","sales"],W="section",oe="listings",G="view",At="migrate";function I(e){try{return new Date(e).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}catch{return""}}function pe(e){return e.length>10?`${e.slice(0,6)}…${e.slice(-4)}`:e}function xe(e){const s=Number(e)/1e18;return Number.isFinite(s)?s.toLocaleString("en",{maximumFractionDigits:2}):"0"}function me({children:e}){const s=g.useRef(null),[n,i]=g.useState(null),d=()=>{var h;const a=(h=s.current)==null?void 0:h.getBoundingClientRect();a&&i({top:a.bottom+8,left:a.left+a.width/2})};return t.jsxs(mt,{ref:s,tabIndex:0,onMouseEnter:d,onMouseLeave:()=>i(null),onFocus:d,onBlur:()=>i(null),children:[e,n?qe.createPortal(t.jsx(gt,{style:{top:n.top,left:n.left},role:"tooltip",children:r("activity.polygonMana")}),document.body):null]})}function Et({item:e}){const s=!!e.contractAddress&&!!e.itemId,n=!!e.tradeId||s,{data:i,isLoading:d}=A({queryKey:["order-line-display",e.tradeId,e.contractAddress,e.itemId],queryFn:()=>e.tradeId?Me(e.tradeId):Q(e.contractAddress,{itemId:e.itemId}),enabled:n,staleTime:5*6e4}),a=n&&d,h=(i==null?void 0:i.name)??r("activity.itemFallback"),c=(i==null?void 0:i.thumbnail)??"",x=B({contractAddress:i==null?void 0:i.contractAddress,tokenId:i==null?void 0:i.tokenId,itemId:i==null?void 0:i.itemId})??void 0,f=t.jsxs(t.Fragment,{children:[a?t.jsx(J,{}):t.jsx(R,{children:c?t.jsx("img",{src:c,alt:h}):t.jsx(T,{name:"cart",size:20})}),t.jsxs(O,{children:[a?t.jsx(Y,{}):t.jsx(_,{title:h,children:h}),e.quantity>1?t.jsx(z,{children:r("activity.quantity",{count:e.quantity})}):null]}),t.jsxs(he,{children:[t.jsx(E,{className:"ccy-mark"})," ",t.jsx(K,{credits:e.credits})]})]});return x?t.jsx(Z,{to:x,"data-link":"true",children:f}):t.jsx(L,{children:f})}function Lt({item:e}){const s=`@${e.registeredName}`;return t.jsxs(L,{"data-testid":"activity-name-line",children:[t.jsx(kt,{children:t.jsx("img",{src:We,alt:""})}),t.jsxs(O,{children:[t.jsx(_,{title:s,children:s}),t.jsx(z,{children:r("activity.nameRegistration")})]}),t.jsxs(he,{children:[t.jsx(E,{className:"ccy-mark"})," ",e.credits]})]})}function Nt({order:e}){const s=Ve(e.lines),n=s.reduce((a,h)=>a+h.quantity,0),i=Qe(e.status),d=i==="SETTLED"?r("activity.completed"):i==="FAILED"?r("activity.failed"):r("activity.processing");return t.jsxs(S,{"data-testid":"purchase-order",children:[t.jsxs(C,{children:[t.jsxs(F,{children:[t.jsx(D,{children:I(e.createdAt)}),t.jsxs(M,{children:[r("activity.purchaseLabel")," · ",r("activity.itemCount",{count:n})]})]}),t.jsxs(H,{children:[t.jsx(q,{"data-status":i,children:d}),t.jsxs(k,{children:[t.jsx(E,{className:"ccy-mark"})," ",t.jsx(K,{credits:e.totalCredits})]})]})]}),i==="FAILED"?t.jsx(ft,{children:r("activity.purchaseFailedNote")}):null,t.jsx(V,{children:s.map(a=>a.registeredName?t.jsx(Lt,{item:a},a.key):t.jsx(Et,{item:a},a.key))})]})}function $t({sale:e}){const{data:s,isLoading:n}=A({queryKey:["asset-display",e.contractAddress,e.tokenId,e.itemId],queryFn:()=>Q(e.contractAddress,{tokenId:e.tokenId,itemId:e.itemId}),enabled:!!e.contractAddress,staleTime:3e5}),i=(s==null?void 0:s.name)??r("activity.itemFallback"),d=(s==null?void 0:s.thumbnail)??"",a=B({contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId})??void 0,h=t.jsxs(t.Fragment,{children:[n?t.jsx(J,{}):t.jsx(R,{children:d?t.jsx("img",{src:d,alt:i}):t.jsx(T,{name:"offer",size:20})}),t.jsxs(O,{children:[n?t.jsx(Y,{}):t.jsx(_,{title:i,children:i}),t.jsx(z,{children:r("activity.boughtFrom",{account:pe(e.seller)})})]})]});return t.jsxs(S,{"data-testid":"activity-mana-purchase",children:[t.jsxs(C,{children:[t.jsxs(F,{children:[t.jsx(D,{children:I(e.createdAt)}),t.jsx(M,{children:r("activity.paidWithMana")})]}),t.jsxs(H,{children:[t.jsx(q,{"data-status":"SETTLED",children:r("activity.completed")}),t.jsxs(k,{children:[xe(e.manaWei)," ",t.jsx(me,{children:t.jsx(ue,{src:de,alt:"MANA"})})]})]})]}),t.jsx(V,{children:a?t.jsx(Z,{to:a,"data-link":"true",children:h}):t.jsx(L,{children:h})})]})}function Pt({sale:e,payout:s}){const{data:n,isLoading:i}=A({queryKey:["asset-display",e.contractAddress,e.tokenId,e.itemId],queryFn:()=>Q(e.contractAddress,{tokenId:e.tokenId,itemId:e.itemId}),enabled:!!e.contractAddress,staleTime:3e5}),d=(n==null?void 0:n.name)??r("activity.itemFallback"),a=(n==null?void 0:n.thumbnail)??"",h=B({contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId})??void 0,c=t.jsxs(t.Fragment,{children:[i?t.jsx(J,{}):t.jsx(R,{children:a?t.jsx("img",{src:a,alt:d}):t.jsx(T,{name:"offer",size:20})}),t.jsxs(O,{children:[i?t.jsx(Y,{}):t.jsx(_,{title:d,children:d}),t.jsxs(z,{children:[r("activity.soldTo",{account:pe(e.counterparty)}),s.kind==="pending"?` · ${r("activity.payoutPendingOn",{date:I(s.availableAt)})}`:""]})]})]});return t.jsxs(S,{"data-testid":"activity-sale",children:[t.jsxs(C,{children:[t.jsxs(F,{children:[t.jsx(D,{children:I(e.createdAt)}),t.jsx(M,{children:r("activity.saleLabel")})]}),t.jsxs(H,{children:[t.jsx(q,{"data-status":s.kind==="pending"?"PENDING":"SOLD",children:s.kind==="pending"?r("activity.payoutPending"):r("activity.sold")}),s.kind==="direct"?t.jsxs(k,{"data-kind":"income",children:["+",xe(e.manaWei)," ",t.jsx(me,{children:t.jsx(ue,{src:de,alt:"MANA"})})]}):s.credits!==null?t.jsxs(k,{"data-kind":"income",children:[t.jsx(E,{className:"ccy-mark"})," +",Fe(s.credits)]}):t.jsx(k,{"data-kind":"income",children:r("activity.payoutCredited")})]})]}),t.jsx(V,{children:h?t.jsx(Z,{to:h,"data-link":"true",children:c}):t.jsx(L,{children:c})})]})}function Tt({order:e}){const s=`$${(e.usdCents/100).toFixed(2)}`,n=Se(e.status),i=n==="SETTLED"?r("activity.completed"):n==="FAILED"?r("activity.failed"):n==="UNFINISHED"?r("activity.unfinished"):r("activity.processing"),d=U(p=>p.session),a=Ce(),[h,c]=g.useState(!1),x=e.status==="initiated"&&!!d;g.useEffect(()=>{const p=()=>c(!1);return window.addEventListener("pageshow",p),()=>window.removeEventListener("pageshow",p)},[]);async function f(){if(!(!d||h)){c(!0);try{const p=await De(e.id,d.identity);if(p.kind==="url"){if(/^https:\/\/([a-z0-9-]+\.)*stripe\.com\//i.test(p.url)){window.location.href=p.url;return}N.error(r("activity.resumeUnavailable"))}else p.kind==="expired"?(N.info(r("activity.resumeExpired")),a.invalidateQueries({queryKey:["credit-orders"]})):p.kind==="paid"?(N.success(r("activity.resumePaid")),a.invalidateQueries({queryKey:["credit-orders"]})):N.error(r("activity.resumeUnavailable"));c(!1)}catch{c(!1)}}}return t.jsx(S,{"data-testid":"credit-order",children:t.jsxs(C,{children:[t.jsx(pt,{children:t.jsx("img",{src:at,alt:"","aria-hidden":!0})}),t.jsxs(F,{children:[t.jsx(D,{children:I(e.createdAt)}),t.jsxs(M,{children:[r("activity.creditPurchaseLabel")," · ",r("activity.creditPaid",{usd:s})]})]}),t.jsxs(H,{children:[x?t.jsx(xt,{type:"button",onClick:()=>void f(),disabled:h,"data-testid":"resume-order",children:h?r("activity.resuming"):r("activity.resume")}):null,t.jsx(q,{"data-status":n,children:i}),t.jsxs(k,{"data-kind":n==="UNFINISHED"?void 0:"income",children:[n==="UNFINISHED"?"":"+",t.jsx(E,{className:"ccy-mark"})," ",t.jsx(K,{credits:e.credits})]})]})]})})}function St({filter:e}){const s={all:r("activity.emptyAllBody"),purchases:r("activity.emptyPurchasesBody"),sales:r("activity.emptySalesBody")}[e];return t.jsx(yt,{children:t.jsx(Te,{testId:`activity-empty-${e}`,icon:_e,title:r("activity.emptyTitle"),body:s,cta:{label:r("assets.empty.cta"),to:"/items"}})})}function Bt(){const{session:e}=U(),[s,n]=g.useState("all"),[i,d]=He(),a=i.get(W)===oe||i.get(G)===At;Le({title:a?r("seo.import.title"):r("nav.activity"),noindex:!0});const{count:h}=Oe(),{count:c}=nt(),f=h!==void 0&&c!==void 0&&(h>0||c>0||a),p=!!e&&!a&&s!=="sales",m=!!e&&!a&&s!=="purchases",y=$(["purchases",e==null?void 0:e.address],u=>$e(e.address,e.identity,{first:P,skip:u}),{enabled:p}),b=$(["sales",e==null?void 0:e.address],u=>se(e.address,{role:"seller",first:P,skip:u}),{enabled:m}),v=$(["credit-orders",e==null?void 0:e.address],u=>ne(e.address,e.identity,{first:P,skip:u}),{enabled:p}),j=$(["mana-purchases",e==null?void 0:e.address],u=>se(e.address,{role:"buyer",first:P,skip:u}),{enabled:p}),{data:ee}=A({queryKey:["sale-payouts",e==null?void 0:e.address],queryFn:()=>ne(e.address,e.identity,{first:200}).then(u=>u.payouts),enabled:m,staleTime:6e4}),ge=g.useMemo(()=>tt(ee),[ee]),{data:fe}=Ne(m);if(!e)return t.jsxs(bt,{children:[t.jsx(T,{name:"clock",size:40,color:o.colors.muted2}),t.jsx(vt,{children:r("activity.signInTitle")}),t.jsx(jt,{children:r("activity.signInBody")})]});const te=et(Ze({purchases:p?y.items:[],sales:m?b.items:[],creditOrders:p?v.items:[],manaPurchases:p?j.items:[],rate:fe}),s),ye=p&&(y.isLoading||v.isLoading||j.isLoading)||m&&b.isLoading,ie=p&&(y.isFetchingNextPage||v.isFetchingNextPage||j.isFetchingNextPage)||m&&b.isFetchingNextPage,be=p&&(y.hasNextPage||v.hasNextPage||j.hasNextPage)||m&&b.hasNextPage;function ve(){p&&y.hasNextPage&&y.fetchNextPage(),p&&v.hasNextPage&&v.fetchNextPage(),p&&j.hasNextPage&&j.fetchNextPage(),m&&b.hasNextPage&&b.fetchNextPage()}function je(u){if(n(u),!a)return;const w=new URLSearchParams(i);w.delete(W),w.delete(G),d(w,{replace:!0})}function ke(){const u=new URLSearchParams(i);u.set(W,oe),u.delete(G),d(u,{replace:!0})}return t.jsxs(rt,{children:[t.jsx(ot,{children:t.jsx(dt,{children:r("nav.activity")})}),t.jsxs(ct,{role:"tablist","aria-label":r("nav.activity"),children:[It.map(u=>t.jsx(le,{type:"button",role:"tab","aria-selected":!a&&s===u,"data-active":!a&&s===u,"data-testid":`activity-filter-${u}`,onClick:()=>je(u),children:r(`activity.filter.${u}`)},u)),f?t.jsxs(lt,{type:"button",role:"tab","aria-selected":a,"data-active":a,"data-testid":"activity-filter-migrate","aria-label":h?r("activity.migrate.chipAria",{count:h}):void 0,onClick:ke,children:[r("activity.migrate.chip"),h?t.jsx(ut,{"data-testid":"activity-migrate-count","aria-hidden":!0,children:h}):null]}):null]}),a?t.jsx(g.Suspense,{fallback:t.jsx(ht,{"aria-busy":"true"}),children:t.jsx(wt,{})}):ye?t.jsx(ae,{children:Array.from({length:5}).map((u,w)=>t.jsx(re,{},w))}):te.length===0?t.jsx(St,{filter:s}):t.jsxs(t.Fragment,{children:[t.jsxs(ae,{children:[te.map(u=>u.kind==="purchase"?t.jsx(Nt,{order:u.order},u.id):u.kind==="credit"?t.jsx(Tt,{order:u.order},u.id):u.kind==="mana-purchase"?t.jsx($t,{sale:u.sale},u.id):t.jsx(Pt,{sale:u.sale,payout:it(ge,u.sale)},u.id)),ie?t.jsx(re,{}):null]}),t.jsx(ze,{hasNextPage:be,isFetching:ie,onLoadMore:ve})]})]})}export{Bt as Activity};
|
|
389
|
+
//# sourceMappingURL=Activity-C-iRRJes.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as u,j as d}from"./react-
|
|
1
|
+
import{r as u,j as d}from"./react-eHGl4EaY.js";import{s as f}from"./index-Bo4xq_KT.js";import"./dcl-schemas-DvE7IWDY.js";import"./sentry-Bv3fzY7D.js";import"./ethers-owZvXzo9.js";import"./intl-AKLEHPeO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="d865090b-4e85-4e9a-9f15-14e7886c9fd8",e._sentryDebugIdIdentifier="sentry-dbid-d865090b-4e85-4e9a-9f15-14e7886c9fd8")}catch{}})();const D="https://cdn.decentraland.org/@dcl/shop/1.11.0/_assets/custom-welcome-background-BxlFQma9.webp",P="https://cdn.decentraland.org/@dcl/shop/1.11.0/_assets/DCL_LogoPattern-BryBPc3d.png",L=`
|
|
2
2
|
attribute vec2 a_position;
|
|
3
3
|
varying vec2 v_uv;
|
|
4
4
|
void main() {
|
|
@@ -95,4 +95,4 @@ void main() {
|
|
|
95
95
|
width: 100%;
|
|
96
96
|
height: 100%;
|
|
97
97
|
`;function K({patternTiling:e=1.66}){const a=u.useRef(null),n=u.useRef(0),r=u.useRef(e);return r.current=e,u.useEffect(()=>{var _;const o=a.current;if(!o||(_=window.matchMedia)!=null&&_.call(window,"(prefers-reduced-motion: reduce)").matches)return;const t=o.getContext("webgl",{alpha:!1,antialias:!1});if(!t)return;const c=p(t,t.VERTEX_SHADER,L),s=p(t,t.FRAGMENT_SHADER,I);if(!c||!s){c&&t.deleteShader(c),s&&t.deleteShader(s);return}const i=B(t,c,s);if(!i){t.deleteShader(c),t.deleteShader(s);return}const m=t.getAttribLocation(i,"a_position"),R=t.getUniformLocation(i,"u_time"),w=t.getUniformLocation(i,"u_resolution"),b=t.getUniformLocation(i,"u_overlayTex"),A=t.getUniformLocation(i,"u_overlayTiling"),v=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,v),t.bufferData(t.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),t.STATIC_DRAW);let g=!1;const h=F(t,P,()=>g),S=()=>{const l=window.devicePixelRatio||1,E=o.clientWidth*l,x=o.clientHeight*l;(o.width!==E||o.height!==x)&&(o.width=E,o.height=x)},U=performance.now()/1e3,y=()=>{S(),t.viewport(0,0,o.width,o.height),t.useProgram(i),t.uniform1f(R,performance.now()/1e3-U),t.uniform2f(w,o.width,o.height),t.uniform1f(A,r.current),t.activeTexture(t.TEXTURE0),t.bindTexture(t.TEXTURE_2D,h),t.uniform1i(b,0),t.enableVertexAttribArray(m),t.bindBuffer(t.ARRAY_BUFFER,v),t.vertexAttribPointer(m,2,t.FLOAT,!1,0,0),t.drawArrays(t.TRIANGLES,0,6),n.current=requestAnimationFrame(y)},T=l=>{l.preventDefault(),cancelAnimationFrame(n.current),o.style.opacity="0"};return o.addEventListener("webglcontextlost",T,!1),n.current=requestAnimationFrame(y),()=>{g=!0,cancelAnimationFrame(n.current),o.removeEventListener("webglcontextlost",T),t.deleteProgram(i),t.deleteShader(c),t.deleteShader(s),t.deleteBuffer(v),t.deleteTexture(h)}},[]),d.jsxs(C,{"aria-hidden":!0,children:[d.jsx(k,{style:{backgroundImage:`url(${D})`}}),d.jsx(V,{ref:a})]})}export{K as default};
|
|
98
|
-
//# sourceMappingURL=AnimatedBackground-
|
|
98
|
+
//# sourceMappingURL=AnimatedBackground-2IqhbI98.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as
|
|
1
|
+
import{r as u,b as He,j as e,u as et}from"./react-eHGl4EaY.js";import{u as tt,s as nt}from"./search-empty-CfWjX9Z-.js";import{u as st,t as Ie,R as it,j as ot,k as rt,l as at,m as lt,n as ct,o as dt,p as ht,v as pt,q as ut,r as ft,M as mt,s as xt}from"./browseLayout.styles-DmXbjfpy.js";import{c as V,R as gt,bq as bt,br as yt,aA as wt,a as vt,l as jt,cu as Ct,cv as $t,s as i,t,o as Oe,bf as kt,r as St,E as ve,b as n,p as Et,I as E,q as O,cw as le,bd as Tt,ad as oe,bn as Le,bu as Rt,bt as _t,n as De,J as Ge,U as qe,V as It,ar as Lt,L as Nt,S as Ne,M as J,aI as At,bD as zt}from"./index-Bo4xq_KT.js";import{L as Mt}from"./LoadMore-CED3UI8v.js";import{u as Wt}from"./useInfiniteGrid-CueovPl3.js";import{n as Bt,S as Pt}from"./categories-DJ3CpW29.js";import{E as Ft}from"./ErrorNotice-BjLTkOLz.js";import{d as Ut}from"./dcl-schemas-DvE7IWDY.js";import{s as Ht,G as Ot,w as Dt,S as Gt}from"./buy-gasless-r0-rX1Xz.js";import{s as qt,o as Vt}from"./buy-BqmJYTA_.js";import{f as Zt}from"./errors-CpdVn533.js";import{J as Qt,C as Kt,B as je}from"./ethers-owZvXzo9.js";import{n as Jt}from"./name-glyph-aUugT8vq.js";import{G as Xt}from"./grid.styles-DNvkHrfB.js";import"./skeleton.styles-doHMnxGS.js";import"./sentry-Bv3fzY7D.js";import"./intl-AKLEHPeO.js";import"./authorizations-FX9A7NCF.js";import"./sendMetaTransaction-D1z-Wmsw.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new s.Error().stack;o&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[o]="ef0f5bea-4b51-4131-844a-a6e04ab870cb",s._sentryDebugIdIdentifier="sentry-dbid-ef0f5bea-4b51-4131-844a-a6e04ab870cb")}catch{}})();function X(s){const o=s.source??"item",r=s.tradeId||`${s.contractAddress}-${s.tokenId??s.itemId??""}`;return`${o}:${r}`}const Z="100000000000000000000",Ve=2,re=15,Yt=/^[a-zA-Z0-9]+$/;function Ae(s){const o=s.trim();return o.length===0?{ok:!1,reason:"empty"}:Yt.test(o)?o.length<Ve?{ok:!1,reason:"too-short"}:o.length>re?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function en(s){return s.replace(/[^a-zA-Z0-9]/g,"").slice(0,re)}const tn=["function available(string _subdomain) view returns (bool)"],ze={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function nn(){return V.chainId===Number(Ut.ChainId.MATIC_MAINNET)?ze.mainnet:ze.sepolia}async function sn(s,o={}){var m;const{rpc:r,address:d}=nn(),h=new Qt(r),f=new Kt(d,tn,h);console.info(`[names] availability check → DCLRegistrar(${d}).available("${s}") on ${r}`);const l=await f.available(s);if((m=o.signal)!=null&&m.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${s}" available=${l}`),l?"available":"taken"}const on="https://app.across.to/api";class ke extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}class Ce extends Error{constructor(){super("The name could not be registered on Ethereum; your funds were recovered."),this.name="NameNotRegisteredError"}}class $e extends Error{constructor(){super("We couldn't confirm whether the purchase went through."),this.name="NameSettlementUnknownError"}}function rn(s){return wt(Z,s)}async function an(s,o,r={}){var m;const d=r.chainId??V.chainId,h=r.provider??"across",f=`${V.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(o)}&chainId=${d}&provider=${h}`,l=await vt(f,{method:"GET",identity:s,metadata:{}});if(!l.ok){let c;try{c=(m=await l.json())==null?void 0:m.code}catch{}throw c==="ROUTE_COST_TOO_HIGH"?new ke:new Error(`fetchNameCreditRoute ${l.status}`)}return l.json()}function ln(s,o){const r=je.from(s.availableAmount),h=je.from(Z).sub(r);return{credits:[{value:s.amount,expiresAt:Number(s.expiresAt),salt:Vt(s.id)}],creditsSignatures:[s.signature],externalCall:{target:o.externalCall.target,selector:o.externalCall.selector,data:o.externalCall.data,expiresAt:o.externalCall.expiresAt,salt:o.externalCall.salt},customExternalCallSignature:o.customExternalCallSignature,maxUncreditedValue:h.isNegative()?"0":h.toString(),maxCreditedValue:Z}}async function cn(s,o={}){const r=on,d=o.intervalMs??1e4,h=o.maxAttempts??60;let f={status:"pending",destinationTxHash:null,actionsSucceeded:null};for(let l=0;l<h;l++){try{const m=await fetch(`${r}/deposit/status?originChainId=137&depositTxHash=${s}`);if(m.ok){const c=await m.json(),g=(c.status??"pending").toLowerCase(),p=c.fillTx??c.fillTxnRef??null,b=typeof c.actionsSucceeded=="boolean"?c.actionsSucceeded:null;if(g==="filled")return{status:"filled",destinationTxHash:p,actionsSucceeded:b};if(g==="refunded"||g==="expired")return{status:g,destinationTxHash:null,actionsSucceeded:!1};f={status:"pending",destinationTxHash:p,actionsSucceeded:b}}}catch{}l<h-1&&await new Promise(m=>setTimeout(m,d))}return f}async function dn(s){const{name:o,identity:r,signer:d}=s,h=p=>{var b;try{(b=s.onProgress)==null||b.call(s,p)}catch{}},f=s.chainId??V.chainId,l=s.provider??"across",m=(s.beneficiary??await d.getAddress()).toLowerCase();let c=null,g="unconfirmed";console.info("[names] register start",{name:o,buyer:m,chainId:f,provider:l}),h("preparing");try{const p=await gt(f),b=rn(p);console.info("[names] step 1/6 sized reservation",{usdCents:b,manaRate:p});const C=await an(r,o,{chainId:f,provider:l});console.info("[names] step 2/6 route fetched",{target:C.externalCall.target,selector:C.externalCall.selector,provider:C.provider,quoteId:C.quoteId});const w=await bt(r,b,void 0,void 0,o);if(c=w.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:w.credit.id,maxCreditedValue:w.maxCreditedValue}),je.from(w.maxCreditedValue).lt(Z))throw new Error("Credit under-sized for the name price");h("awaiting-confirmation");const $=ln(w.credit,C);let v;try{v=await Ht({chainId:f,buyer:m,signer:d,args:$})}catch(x){if(!(x instanceof Ot))throw x;if(x.reason==="relayer-unreachable"){g="unobservable";const k=new $e;throw k.cause=x,k}v=await qt(f,$,d)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:v}),h("confirming"),await Dt(v),g="confirmed",console.info("[names] step 5/6 origin tx confirmed",{originTxHash:v}),l==="across"){h("registering");const x=await cn(v,s.acrossPoll);if(console.info("[names] step 6/6 across status",x),x.status==="pending")return{status:"pending",originTxHash:v};if(x.status==="filled"&&x.actionsSucceeded===null)return console.warn("[names] across filled without reporting actionsSucceeded — reporting pending",{originTxHash:v}),{status:"pending",originTxHash:v};if(x.status!=="filled"||x.actionsSucceeded!==!0)throw new Ce;return{status:"registered",originTxHash:v,destinationTxHash:x.destinationTxHash}}return{status:"pending",originTxHash:v}}catch(p){if(console.error("[names] register failed — raw error:",p,{name:o,buyer:m,originState:g}),p instanceof Gt)return{status:"pending",originTxHash:p.txHash};if(c&&g==="unconfirmed"&&await yt(r,[c]).catch(()=>{}),p instanceof ke||p instanceof Ce||p instanceof $e)throw p;const b=new Error(Zt(p,"Couldn't register the name. Please try again.",{sale:!0}));throw b.cause=p,b}}function hn(){const{data:s}=jt({queryKey:["feature-flag","shop-names"],queryFn:()=>Ct($t.SHOP_NAMES),staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return s===!0}const pn=60,un=700,fn=25;function mn(s){if(!s)return[];const o=[];for(let r=1;r<=s.length;r++)o.push({text:s.slice(0,r),delay:pn});o[o.length-1]={text:s,delay:un};for(let r=s.length-1;r>=1;r--)o.push({text:s.slice(0,r),delay:fn});return o}function xn(s){return s.flatMap(mn)}function gn(s,o){const r=u.useMemo(()=>xn(s),[s]),[d,h]=u.useState(0);return u.useEffect(()=>{if(!o||r.length===0)return;const f=setTimeout(()=>h(l=>(l+1)%r.length),r[d%r.length].delay);return()=>clearTimeout(f)},[d,o,r]),!o||r.length===0?"":r[d%r.length].text}const bn="https://cdn.decentraland.org/@dcl/shop/1.11.0/_assets/name-verified-oGwQ3ntb.svg",yn="#34fee6",wn=i.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
inset: 0;
|
|
4
4
|
z-index: 10000;
|
|
@@ -69,11 +69,11 @@ import{r as f,b as He,j as e,u as et}from"./react-DdXEvnSt.js";import{u as tt,s
|
|
|
69
69
|
height: 16px;
|
|
70
70
|
color: ${t.colors.brandViolet};
|
|
71
71
|
}
|
|
72
|
-
`,
|
|
72
|
+
`,ue=i.hr`
|
|
73
73
|
border: 0;
|
|
74
74
|
border-top: 1px solid ${t.colors.line};
|
|
75
75
|
margin: 16px 0;
|
|
76
|
-
`,
|
|
76
|
+
`,fe=i.div`
|
|
77
77
|
display: flex;
|
|
78
78
|
align-items: center;
|
|
79
79
|
gap: 16px;
|
|
@@ -458,7 +458,7 @@ import{r as f,b as He,j as e,u as et}from"./react-DdXEvnSt.js";import{u as tt,s
|
|
|
458
458
|
color: ${t.colors.accent};
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
`;function Gn({name:s,priceCredits:o,onClose:r}){const{session:d}=Oe(),{data:h,isError:u}=kt(d),l=St(),m=He(),[c,g]=f.useState("confirm"),[p,b]=f.useState(""),[C,w]=f.useState(null),[$,v]=f.useState(!1),[x,k]=f.useState("preparing"),L=f.useRef(!1),T=p.trim().toLowerCase()===s.toLowerCase(),N=c==="completing",M=o!=null?ve(o):"—",B=o==null,W=h==null?void 0:h.credits,P=o!=null&&W!=null?o-W:0,S=P>0,F=B?n("names.priceUnavailable"):S?n("names.insufficientCredits",{credits:ve(P)}):null;f.useEffect(()=>{const y=G=>{G.key==="Escape"&&!N&&r()};document.addEventListener("keydown",y);const D=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",y),document.body.style.overflow=D}},[N,r]);async function R(){if(!(!d||!T||B||S||L.current)){L.current=!0,g("completing"),w(null),k("preparing");try{const y=await dn({name:s,identity:d.identity,signer:d.signer,onProgress:k});oe("Shop Completed Purchase",{items:[{item_id:null,contract_address:null,token_id:null,price_usd:Le(o??0),category:"name",is_smart:!1}],purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:o??null,value_usd:Le(o??0),transaction_hash:y.originTxHash??null,settlement:y.status}),l.invalidateQueries({queryKey:["usd-balance"]}),l.invalidateQueries({queryKey:["my-assets"]}),g(y.status==="registered"?"success":"pending")}catch(y){oe(_t(y)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:Rt(y),purchase_type:"name"});const D=y instanceof Ce,G=y instanceof $e;w(y instanceof ke?n("names.errorRouteCost"):D?n("names.errorNotRegistered"):G?n("names.errorSettlementUnknown"):(y==null?void 0:y.message)||n("names.errorGeneric")),v(D||G),g("error")}finally{L.current=!1}}}const _=c!=="success"&&c!=="pending",j=Et(d==null?void 0:d.providerType),A=j?2:1,z=j&&(x==="preparing"||x==="awaiting-confirmation"),I=z?1:A,ae=z?n("names.confirming"):n("names.completing"),U=x==="registering"?n("names.processingRegistering"):null;return e.jsx(wn,{onClick:N?void 0:r,role:"presentation",children:e.jsxs(vn,{role:"dialog","aria-modal":"true","aria-label":n("names.buyTitle"),onClick:y=>y.stopPropagation(),children:[_&&e.jsxs(e.Fragment,{children:[e.jsxs(ce,{children:[e.jsx(de,{children:c==="error"?n("names.errorTitle"):n("names.buyTitle")}),e.jsx(he,{onClick:r,disabled:N,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(O,{})," ",le(h,u)]}),e.jsx(fe,{})]}),(c==="confirm"||c==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs(ue,{children:[e.jsx(Me,{"aria-hidden":!0,children:"@"}),e.jsxs(me,{children:[e.jsxs(xe,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(be,{children:[e.jsx(O,{}),M]})]}),c==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(we,{children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsx("span",{children:C})]}),$?e.jsx(ye,{onClick:r,children:n("names.errorSpentDismiss")}):e.jsx(ye,{onClick:()=>g("confirm"),children:n("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(Sn,{children:[e.jsx(En,{children:n("names.confirmTitle")}),e.jsx(Tn,{dangerouslySetInnerHTML:{__html:n("names.confirmBody",{name:`<b>@${qn(s)}</b>`})}}),e.jsxs(Rn,{children:[e.jsx(_n,{"aria-hidden":!0,children:"@"}),e.jsx(In,{value:p,onChange:y=>b(y.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":n("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(p.length,8)}ch`}}),e.jsx(Ln,{children:".dcl.eth"})]})]}),F?e.jsxs(we,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsx("span",{children:F})]}):null,e.jsx(ye,{onClick:()=>void R(),disabled:!T||!d||B||S,children:n("names.buyCta")})]})]}),c==="completing"&&e.jsxs(Nn,{children:[e.jsx(An,{src:Tt,alt:"",width:61,height:61}),e.jsxs(zn,{children:[e.jsx(Mn,{children:ae}),e.jsxs(Bn,{children:[e.jsx(Pn,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(Fn,{"data-testid":"name-progress-count",children:`${I}/${A}`})]}),U?e.jsx(Wn,{children:U}):null]})]}),c==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs(ce,{children:[e.jsx(de,{children:n("names.pendingHeaderTitle")}),e.jsx(he,{onClick:r,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(O,{})," ",le(h,u)]}),e.jsx(fe,{}),e.jsxs(we,{"data-tone":"info",children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("b",{children:n("names.pendingBannerBold")})," ",n("names.pendingBannerRest")]})]}),e.jsxs(ue,{style:{marginTop:20},children:[e.jsx(Me,{"aria-hidden":!0,children:"@"}),e.jsxs(me,{children:[e.jsxs(xe,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(be,{children:[e.jsx(O,{}),M]})]}),e.jsx(We,{children:e.jsx(Be,{onClick:()=>{r(),m("/my-items")},children:n("names.myItems")})})]}),c==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(ce,{children:[e.jsx(de,{children:n("names.successHeaderTitle")}),e.jsx(he,{onClick:r,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(O,{})," ",le(h,u)]}),e.jsx(fe,{}),e.jsxs(Un,{children:[e.jsx(Hn,{"aria-hidden":!0,children:e.jsx(E,{name:"check"})}),e.jsxs(On,{children:[e.jsx("b",{children:n("names.successBannerBold")})," ",n("names.successBannerRest")]})]}),e.jsxs(ue,{style:{marginTop:20},children:[e.jsxs(jn,{"data-testid":"name-success-tile",children:[e.jsx(Cn,{src:Jt,alt:"","aria-hidden":!0,width:47,height:47}),e.jsxs($n,{children:[e.jsx("span",{"aria-hidden":!0,children:s}),e.jsx(kn,{src:bn,alt:"","aria-hidden":!0,width:14,height:14})]})]}),e.jsxs(me,{children:[e.jsxs(xe,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(be,{children:[e.jsx(O,{}),M]})]}),e.jsxs(We,{children:[e.jsx(Be,{onClick:()=>{r(),m("/my-items")},children:n("names.myItems")}),e.jsx(Dn,{href:V.profileUrl,target:"_blank",rel:"noopener noreferrer",children:n("names.assignToAvatar")})]})]})]})})}function qn(s){return s.replace(/[&<>"']/g,o=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[o])}const Vn="https://cdn.decentraland.org/@dcl/shop/1.10.2-32947525166.commit-3fff6df/_assets/identity-icon-C8yAW_Gq.svg",Zn="https://cdn.decentraland.org/@dcl/shop/1.10.2-32947525166.commit-3fff6df/_assets/world-icon-6xQ-PmmW.svg",Qn="https://cdn.decentraland.org/@dcl/shop/1.10.2-32947525166.commit-3fff6df/_assets/invite-icon-Bz6lCTuB.svg",Kn="data:image/svg+xml,%3csvg%20width='55.6797'%20height='63.6174'%20viewBox='0%200%2055.6797%2063.6174'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Vote'%3e%3cpath%20id='Vector'%20d='M0.055012%2039.1045C1.61191%2039.4989%202.83757%2039.3938%204.4307%2039.392L8.27108%2039.3878L20.7762%2039.3883L42.8819%2039.3904L50.0954%2039.3907C51.793%2039.3907%2054.0562%2039.5509%2055.6466%2039.0843C55.5909%2040.7931%2055.647%2042.8581%2055.6469%2044.5864L55.6479%2055.616L55.6559%2059.5618C55.6583%2060.6219%2055.8213%2061.9838%2055.261%2062.8837C55.2205%2062.9265%2055.1794%2062.9688%2055.1377%2063.0104C54.7986%2063.3482%2054.3791%2063.5594%2053.9021%2063.5761C52.0714%2063.642%2050.1544%2063.6097%2048.3241%2063.6078L37.4452%2063.6066L2.97352%2063.6103C2.2022%2063.6084%201.15943%2063.6718%200.589171%2063.0576C-0.204857%2062.2037%200.0327979%2060.3244%200.0349529%2059.1687L0.0414734%2054.3929C0.0413119%2049.3191%20-0.00749456%2044.1727%200.055012%2039.1045Z'%20fill='white'%20fill-opacity='0.8'/%3e%3cpath%20id='Subtract'%20d='M37.1168%200.00495927C38.1773%200.00461149%2039.2888%20-0.0284991%2040.3433%200.0811311C41.0714%200.15695%2041.7266%200.914583%2041.7857%201.63484C41.853%202.45491%2041.8268%203.31926%2041.8258%204.15144L41.8189%208.70418L41.8199%2023.9639L40.1099%2023.9659L13.8726%2023.963L13.8678%209.0909L13.8648%204.29793C13.8644%202.52652%2013.3942%200.34203%2015.6754%200.0342561C15.8907%200.016712%2016.237%200.0120998%2016.4557%200.0117952C21.6059%200.00480262%2026.761%200.0117634%2031.9107%200.00788896L37.1168%200.00495927ZM33.3834%206.17293C32.439%206.55612%2031.0531%208.12922%2030.3014%208.88191L25.8297%2013.3634C25.3537%2012.824%2023.3455%2010.7605%2022.8209%2010.4239C22.5581%2010.2549%2022.2566%2010.1546%2021.9449%2010.1329C21.4563%2010.1008%2020.9754%2010.2879%2020.6139%2010.6134C20.2442%2010.9428%2020.0227%2011.4077%2020.0006%2011.9024C19.9561%2013.0748%2021.3406%2014.1198%2022.1256%2014.8868C22.9429%2015.714%2024.1669%2017.1028%2025.1168%2017.67C26.1632%2018.2949%2027.3471%2017.2145%2027.9723%2016.4942C30.25%2014.2025%2032.5393%2011.9456%2034.8101%209.64949C35.2937%209.16062%2035.7138%208.69126%2035.6851%207.96199C35.6419%206.86558%2034.7821%206.09682%2033.6959%206.14656C33.5914%206.15085%2033.4872%206.16001%2033.3834%206.17293Z'%20fill='%23FF7439'/%3e%3cpath%20id='Vector_2'%20d='M45.5498%2015.976C46.6399%2015.986%2049.9504%2015.7705%2050.7361%2016.241C51.0104%2016.4053%2051.2831%2016.6446%2051.4181%2016.9397C51.892%2017.9763%2052.1015%2019.357%2052.3802%2020.4819L54.0582%2027.2308C54.5046%2028.9073%2054.9023%2030.6043%2055.3338%2032.2824C55.6029%2033.329%2055.9417%2034.4293%2054.9705%2035.2255C54.8158%2035.359%2054.4427%2035.5934%2054.2329%2035.6091C52.7731%2035.7184%2051.1693%2035.6701%2049.7108%2035.6679L39.4635%2035.6649L14.5239%2035.6632C10.471%2035.6631%206.41808%2035.6665%202.36531%2035.6698C1.79359%2035.6657%201.33794%2035.6604%200.844568%2035.337C-0.57365%2034.4073%200.381076%2032.2112%200.72189%2030.8501L1.93462%2025.9936L3.28579%2020.566C3.53371%2019.5688%203.77194%2018.5694%204.04289%2017.5781C4.30559%2016.6172%204.74298%2016.1492%205.73966%2015.9892C7.15095%2015.9419%208.72017%2015.9778%2010.1434%2015.9809L10.1451%2023.9585C7.37011%2024.097%207.74242%2027.5535%209.84963%2027.6469C11.6268%2027.7258%2013.6164%2027.6909%2015.4098%2027.691L26.229%2027.6915L39.1339%2027.691L43.273%2027.6909C44.748%2027.6909%2047.2174%2028.0848%2047.3773%2025.9908C47.4212%2025.4807%2047.2565%2024.9745%2046.9209%2024.5879C46.5265%2024.141%2046.1143%2024.0046%2045.5418%2023.9673L45.5498%2015.976Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",Jn=i.div`
|
|
461
|
+
`;function Gn({name:s,priceCredits:o,onClose:r}){const{session:d}=Oe(),{data:h,isError:f}=kt(d),l=St(),m=He(),[c,g]=u.useState("confirm"),[p,b]=u.useState(""),[C,w]=u.useState(null),[$,v]=u.useState(!1),[x,k]=u.useState("preparing"),L=u.useRef(!1),T=p.trim().toLowerCase()===s.toLowerCase(),N=c==="completing",M=o!=null?ve(o):"—",B=o==null,W=h==null?void 0:h.credits,P=o!=null&&W!=null?o-W:0,S=P>0,F=B?n("names.priceUnavailable"):S?n("names.insufficientCredits",{credits:ve(P)}):null;u.useEffect(()=>{const y=G=>{G.key==="Escape"&&!N&&r()};document.addEventListener("keydown",y);const D=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",y),document.body.style.overflow=D}},[N,r]);async function R(){if(!(!d||!T||B||S||L.current)){L.current=!0,g("completing"),w(null),k("preparing");try{const y=await dn({name:s,identity:d.identity,signer:d.signer,onProgress:k});oe("Shop Completed Purchase",{items:[{item_id:null,contract_address:null,token_id:null,price_usd:Le(o??0),category:"name",is_smart:!1}],purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:o??null,value_usd:Le(o??0),transaction_hash:y.originTxHash??null,settlement:y.status}),l.invalidateQueries({queryKey:["usd-balance"]}),l.invalidateQueries({queryKey:["my-assets"]}),g(y.status==="registered"?"success":"pending")}catch(y){oe(_t(y)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:Rt(y),purchase_type:"name"});const D=y instanceof Ce,G=y instanceof $e;w(y instanceof ke?n("names.errorRouteCost"):D?n("names.errorNotRegistered"):G?n("names.errorSettlementUnknown"):(y==null?void 0:y.message)||n("names.errorGeneric")),v(D||G),g("error")}finally{L.current=!1}}}const _=c!=="success"&&c!=="pending",j=Et(d==null?void 0:d.providerType),A=j?2:1,z=j&&(x==="preparing"||x==="awaiting-confirmation"),I=z?1:A,ae=z?n("names.confirming"):n("names.completing"),U=x==="registering"?n("names.processingRegistering"):null;return e.jsx(wn,{onClick:N?void 0:r,role:"presentation",children:e.jsxs(vn,{role:"dialog","aria-modal":"true","aria-label":n("names.buyTitle"),onClick:y=>y.stopPropagation(),children:[_&&e.jsxs(e.Fragment,{children:[e.jsxs(ce,{children:[e.jsx(de,{children:c==="error"?n("names.errorTitle"):n("names.buyTitle")}),e.jsx(he,{onClick:r,disabled:N,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(O,{})," ",le(h,f)]}),e.jsx(ue,{})]}),(c==="confirm"||c==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs(fe,{children:[e.jsx(Me,{"aria-hidden":!0,children:"@"}),e.jsxs(me,{children:[e.jsxs(xe,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(be,{children:[e.jsx(O,{}),M]})]}),c==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(we,{children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsx("span",{children:C})]}),$?e.jsx(ye,{onClick:r,children:n("names.errorSpentDismiss")}):e.jsx(ye,{onClick:()=>g("confirm"),children:n("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(Sn,{children:[e.jsx(En,{children:n("names.confirmTitle")}),e.jsx(Tn,{dangerouslySetInnerHTML:{__html:n("names.confirmBody",{name:`<b>@${qn(s)}</b>`})}}),e.jsxs(Rn,{children:[e.jsx(_n,{"aria-hidden":!0,children:"@"}),e.jsx(In,{value:p,onChange:y=>b(y.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":n("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(p.length,8)}ch`}}),e.jsx(Ln,{children:".dcl.eth"})]})]}),F?e.jsxs(we,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsx("span",{children:F})]}):null,e.jsx(ye,{onClick:()=>void R(),disabled:!T||!d||B||S,children:n("names.buyCta")})]})]}),c==="completing"&&e.jsxs(Nn,{children:[e.jsx(An,{src:Tt,alt:"",width:61,height:61}),e.jsxs(zn,{children:[e.jsx(Mn,{children:ae}),e.jsxs(Bn,{children:[e.jsx(Pn,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(Fn,{"data-testid":"name-progress-count",children:`${I}/${A}`})]}),U?e.jsx(Wn,{children:U}):null]})]}),c==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs(ce,{children:[e.jsx(de,{children:n("names.pendingHeaderTitle")}),e.jsx(he,{onClick:r,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(O,{})," ",le(h,f)]}),e.jsx(ue,{}),e.jsxs(we,{"data-tone":"info",children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("b",{children:n("names.pendingBannerBold")})," ",n("names.pendingBannerRest")]})]}),e.jsxs(fe,{style:{marginTop:20},children:[e.jsx(Me,{"aria-hidden":!0,children:"@"}),e.jsxs(me,{children:[e.jsxs(xe,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(be,{children:[e.jsx(O,{}),M]})]}),e.jsx(We,{children:e.jsx(Be,{onClick:()=>{r(),m("/my-items")},children:n("names.myItems")})})]}),c==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(ce,{children:[e.jsx(de,{children:n("names.successHeaderTitle")}),e.jsx(he,{onClick:r,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(O,{})," ",le(h,f)]}),e.jsx(ue,{}),e.jsxs(Un,{children:[e.jsx(Hn,{"aria-hidden":!0,children:e.jsx(E,{name:"check"})}),e.jsxs(On,{children:[e.jsx("b",{children:n("names.successBannerBold")})," ",n("names.successBannerRest")]})]}),e.jsxs(fe,{style:{marginTop:20},children:[e.jsxs(jn,{"data-testid":"name-success-tile",children:[e.jsx(Cn,{src:Jt,alt:"","aria-hidden":!0,width:47,height:47}),e.jsxs($n,{children:[e.jsx("span",{"aria-hidden":!0,children:s}),e.jsx(kn,{src:bn,alt:"","aria-hidden":!0,width:14,height:14})]})]}),e.jsxs(me,{children:[e.jsxs(xe,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(be,{children:[e.jsx(O,{}),M]})]}),e.jsxs(We,{children:[e.jsx(Be,{onClick:()=>{r(),m("/my-items")},children:n("names.myItems")}),e.jsx(Dn,{href:V.profileUrl,target:"_blank",rel:"noopener noreferrer",children:n("names.assignToAvatar")})]})]})]})})}function qn(s){return s.replace(/[&<>"']/g,o=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[o])}const Vn="https://cdn.decentraland.org/@dcl/shop/1.11.0/_assets/identity-icon-C8yAW_Gq.svg",Zn="https://cdn.decentraland.org/@dcl/shop/1.11.0/_assets/world-icon-6xQ-PmmW.svg",Qn="https://cdn.decentraland.org/@dcl/shop/1.11.0/_assets/invite-icon-Bz6lCTuB.svg",Kn="data:image/svg+xml,%3csvg%20width='55.6797'%20height='63.6174'%20viewBox='0%200%2055.6797%2063.6174'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Vote'%3e%3cpath%20id='Vector'%20d='M0.055012%2039.1045C1.61191%2039.4989%202.83757%2039.3938%204.4307%2039.392L8.27108%2039.3878L20.7762%2039.3883L42.8819%2039.3904L50.0954%2039.3907C51.793%2039.3907%2054.0562%2039.5509%2055.6466%2039.0843C55.5909%2040.7931%2055.647%2042.8581%2055.6469%2044.5864L55.6479%2055.616L55.6559%2059.5618C55.6583%2060.6219%2055.8213%2061.9838%2055.261%2062.8837C55.2205%2062.9265%2055.1794%2062.9688%2055.1377%2063.0104C54.7986%2063.3482%2054.3791%2063.5594%2053.9021%2063.5761C52.0714%2063.642%2050.1544%2063.6097%2048.3241%2063.6078L37.4452%2063.6066L2.97352%2063.6103C2.2022%2063.6084%201.15943%2063.6718%200.589171%2063.0576C-0.204857%2062.2037%200.0327979%2060.3244%200.0349529%2059.1687L0.0414734%2054.3929C0.0413119%2049.3191%20-0.00749456%2044.1727%200.055012%2039.1045Z'%20fill='white'%20fill-opacity='0.8'/%3e%3cpath%20id='Subtract'%20d='M37.1168%200.00495927C38.1773%200.00461149%2039.2888%20-0.0284991%2040.3433%200.0811311C41.0714%200.15695%2041.7266%200.914583%2041.7857%201.63484C41.853%202.45491%2041.8268%203.31926%2041.8258%204.15144L41.8189%208.70418L41.8199%2023.9639L40.1099%2023.9659L13.8726%2023.963L13.8678%209.0909L13.8648%204.29793C13.8644%202.52652%2013.3942%200.34203%2015.6754%200.0342561C15.8907%200.016712%2016.237%200.0120998%2016.4557%200.0117952C21.6059%200.00480262%2026.761%200.0117634%2031.9107%200.00788896L37.1168%200.00495927ZM33.3834%206.17293C32.439%206.55612%2031.0531%208.12922%2030.3014%208.88191L25.8297%2013.3634C25.3537%2012.824%2023.3455%2010.7605%2022.8209%2010.4239C22.5581%2010.2549%2022.2566%2010.1546%2021.9449%2010.1329C21.4563%2010.1008%2020.9754%2010.2879%2020.6139%2010.6134C20.2442%2010.9428%2020.0227%2011.4077%2020.0006%2011.9024C19.9561%2013.0748%2021.3406%2014.1198%2022.1256%2014.8868C22.9429%2015.714%2024.1669%2017.1028%2025.1168%2017.67C26.1632%2018.2949%2027.3471%2017.2145%2027.9723%2016.4942C30.25%2014.2025%2032.5393%2011.9456%2034.8101%209.64949C35.2937%209.16062%2035.7138%208.69126%2035.6851%207.96199C35.6419%206.86558%2034.7821%206.09682%2033.6959%206.14656C33.5914%206.15085%2033.4872%206.16001%2033.3834%206.17293Z'%20fill='%23FF7439'/%3e%3cpath%20id='Vector_2'%20d='M45.5498%2015.976C46.6399%2015.986%2049.9504%2015.7705%2050.7361%2016.241C51.0104%2016.4053%2051.2831%2016.6446%2051.4181%2016.9397C51.892%2017.9763%2052.1015%2019.357%2052.3802%2020.4819L54.0582%2027.2308C54.5046%2028.9073%2054.9023%2030.6043%2055.3338%2032.2824C55.6029%2033.329%2055.9417%2034.4293%2054.9705%2035.2255C54.8158%2035.359%2054.4427%2035.5934%2054.2329%2035.6091C52.7731%2035.7184%2051.1693%2035.6701%2049.7108%2035.6679L39.4635%2035.6649L14.5239%2035.6632C10.471%2035.6631%206.41808%2035.6665%202.36531%2035.6698C1.79359%2035.6657%201.33794%2035.6604%200.844568%2035.337C-0.57365%2034.4073%200.381076%2032.2112%200.72189%2030.8501L1.93462%2025.9936L3.28579%2020.566C3.53371%2019.5688%203.77194%2018.5694%204.04289%2017.5781C4.30559%2016.6172%204.74298%2016.1492%205.73966%2015.9892C7.15095%2015.9419%208.72017%2015.9778%2010.1434%2015.9809L10.1451%2023.9585C7.37011%2024.097%207.74242%2027.5535%209.84963%2027.6469C11.6268%2027.7258%2013.6164%2027.6909%2015.4098%2027.691L26.229%2027.6915L39.1339%2027.691L43.273%2027.6909C44.748%2027.6909%2047.2174%2028.0848%2047.3773%2025.9908C47.4212%2025.4807%2047.2565%2024.9745%2046.9209%2024.5879C46.5265%2024.141%2046.1143%2024.0046%2045.5418%2023.9673L45.5498%2015.976Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",Jn=i.div`
|
|
462
462
|
width: 100%;
|
|
463
463
|
min-width: 0;
|
|
464
464
|
`,Xn=i.nav`
|
|
@@ -639,7 +639,7 @@ import{r as f,b as He,j as e,u as et}from"./react-DdXEvnSt.js";import{u as tt,s
|
|
|
639
639
|
gap: 0;
|
|
640
640
|
cursor: text;
|
|
641
641
|
overflow: hidden;
|
|
642
|
-
`,
|
|
642
|
+
`,us=i.span`
|
|
643
643
|
flex: none;
|
|
644
644
|
margin-right: 8px;
|
|
645
645
|
font-family: ${t.font.sans};
|
|
@@ -651,7 +651,7 @@ import{r as f,b as He,j as e,u as et}from"./react-DdXEvnSt.js";import{u as tt,s
|
|
|
651
651
|
${t.media.maxWidth("mobile")} {
|
|
652
652
|
font-size: 20px;
|
|
653
653
|
}
|
|
654
|
-
`,
|
|
654
|
+
`,fs=i.input`
|
|
655
655
|
flex: 0 1 auto;
|
|
656
656
|
min-width: 0;
|
|
657
657
|
max-width: 100%;
|
|
@@ -918,7 +918,7 @@ import{r as f,b as He,j as e,u as et}from"./react-DdXEvnSt.js";import{u as tt,s
|
|
|
918
918
|
clip: rect(0, 0, 0, 0);
|
|
919
919
|
white-space: nowrap;
|
|
920
920
|
border: 0;
|
|
921
|
-
`,Ts="https://docs.decentraland.org/creator/worlds/about/",Rs="https://governance.decentraland.org";function Fe(s){const o=typeof window<"u"?window.location.hostname:"";return`${o.endsWith("decentraland.org")?"https://decentraland.org":o.endsWith("decentraland.today")?"https://decentraland.today":"https://decentraland.zone"}/marketplace/names/browse?search=${encodeURIComponent(s)}`}function _s({onBack:s}){De({title:n("seo.names.title"),description:n("seo.names.description")});const{session:o,signIn:r}=Oe(),d=hn(),{data:h}=Ge(),
|
|
921
|
+
`,Ts="https://docs.decentraland.org/creator/worlds/about/",Rs="https://governance.decentraland.org";function Fe(s){const o=typeof window<"u"?window.location.hostname:"";return`${o.endsWith("decentraland.org")?"https://decentraland.org":o.endsWith("decentraland.today")?"https://decentraland.today":"https://decentraland.zone"}/marketplace/names/browse?search=${encodeURIComponent(s)}`}function _s({onBack:s}){De({title:n("seo.names.title"),description:n("seo.names.description")});const{session:o,signIn:r}=Oe(),d=hn(),{data:h}=Ge(),f=h?qe(Z,h):null,[l,m]=u.useState(""),[c,g]=u.useState("idle"),[p,b]=u.useState(!1),[C,w]=u.useState(!1),[$,v]=u.useState(()=>{var j;return typeof window<"u"&&!!((j=window.matchMedia)!=null&&j.call(window,"(prefers-reduced-motion: reduce)").matches)});u.useEffect(()=>{var z;const j=(z=window.matchMedia)==null?void 0:z.call(window,"(prefers-reduced-motion: reduce)");if(!j)return;const A=I=>v(I.matches);return j.addEventListener("change",A),()=>j.removeEventListener("change",A)},[]);const x=n("names.placeholderExamples"),k=u.useMemo(()=>x.split(",").map(j=>j.trim()).filter(Boolean),[x]),T=gn(k,!C&&!l&&!$)||n("names.inputPlaceholder"),N=u.useRef(null),[M,B]=u.useState(void 0);u.useLayoutEffect(()=>{N.current&&B(N.current.getBoundingClientRect().width)},[l,T]),u.useEffect(()=>{if(!Ae(l).ok){g(l.length===0?"idle":"invalid");return}g("checking");const A=new AbortController,z=setTimeout(()=>{(async()=>{try{const I=await sn(l,{signal:A.signal});g(I)}catch(I){if((I==null?void 0:I.name)==="AbortError")return;g("error")}})()},400);return()=>{clearTimeout(z),A.abort()}},[l]);const W=Ae(l),P=W.ok&&(c==="available"||c==="error"),S=d&&P,F=!d&&P;function R(){if(S){if(!o){r();return}b(!0)}}const _=e.jsxs(e.Fragment,{children:[n("names.claim"),f!=null?e.jsxs(bs,{children:[e.jsx(O,{}),ve(f)]}):null]});return e.jsxs(Jn,{"data-testid":"names-page",children:[e.jsxs(Xn,{"aria-label":n("names.breadcrumbAria"),children:[e.jsx(Yn,{onClick:s,children:n("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(es,{children:n("names.breadcrumbCurrent")})]}),e.jsxs(ts,{children:[e.jsxs(ns,{children:[e.jsxs(ss,{children:[e.jsx(is,{children:n("names.heroTitle")}),e.jsx(os,{children:n("names.heroSubtitle")})]}),e.jsxs(rs,{children:[e.jsxs(as,{"data-testid":"names-input-wrap",children:[e.jsxs(ls,{invalid:c==="taken",children:[e.jsxs(ps,{children:[e.jsx(us,{"aria-hidden":!0,children:"@"}),e.jsx(fs,{value:l,onChange:j=>m(en(j.target.value)),placeholder:T,"aria-label":n("names.inputAria"),autoComplete:"off",spellCheck:!1,maxLength:re,onFocus:()=>w(!0),style:{width:M!=null?`${M}px`:void 0}}),e.jsx(cs,{ref:N,"aria-hidden":!0,"data-placeholder":!l||void 0,children:l||T}),e.jsx(ms,{children:n("names.suffix")})]}),l.length>0?e.jsxs(xs,{"aria-hidden":!0,children:[l.length,"/",re]}):null,e.jsx(Qe,{onClick:R,disabled:!S,"data-testid":"names-claim",children:_})]}),c==="taken"?e.jsxs(ds,{role:"status","data-testid":"names-taken",children:[e.jsx(E,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:n("names.taken")}),e.jsxs(hs,{href:Fe(l),target:"_blank",rel:"noopener noreferrer",children:[n("names.takenMakeOffer"),e.jsx(E,{name:"external-link",size:13,"aria-hidden":!0})]})]}):null,c==="checking"?e.jsx(Y,{tone:"muted",role:"status","data-testid":"names-checking",children:n("names.checking")}):F?e.jsxs(Y,{tone:"muted",role:"status","data-testid":"names-disabled",children:[e.jsx(E,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:n("names.registrationDisabled")}),e.jsxs(ws,{href:Fe(l),target:"_blank",rel:"noopener noreferrer",children:[n("names.registrationDisabledLink"),e.jsx(E,{name:"external-link",size:13,"aria-hidden":!0})]})]}):c==="error"?e.jsx(Y,{tone:"muted",role:"status",children:n("names.checkError")}):c==="invalid"&&!W.ok&&W.reason==="too-short"?e.jsx(Y,{tone:"muted",role:"status",children:n("names.tooShort",{min:Ve})}):null]}),e.jsx(gs,{onClick:R,disabled:!S,children:_}),e.jsx(Es,{role:"status","aria-live":"polite",children:c==="available"?n("names.available",{name:l}):""})]})]}),e.jsxs(vs,{children:[e.jsxs(js,{children:[e.jsx(Cs,{children:n("names.whyTitle")}),e.jsx($s,{children:n("names.whyIntro")})]}),e.jsxs(ks,{children:[e.jsxs(ee,{children:[e.jsx(te,{src:Vn,alt:""}),e.jsxs(ne,{children:[e.jsx(se,{children:n("names.why1Title")}),e.jsx(ie,{children:n("names.why1")})]})]}),e.jsxs(ee,{children:[e.jsx(te,{src:Zn,alt:""}),e.jsxs(ne,{children:[e.jsx(se,{children:n("names.why2Title")}),e.jsxs(ie,{children:[n("names.why2")," ",e.jsx(Ss,{children:n("names.why2Address")})]}),e.jsxs(Pe,{href:Ts,target:"_blank",rel:"noopener noreferrer",children:[n("names.learnMore"),e.jsx(E,{name:"external-link","aria-hidden":!0})]})]})]}),e.jsxs(ee,{children:[e.jsx(te,{src:Qn,alt:""}),e.jsxs(ne,{children:[e.jsx(se,{children:n("names.why3Title")}),e.jsx(ie,{children:n("names.why3")})]})]}),e.jsxs(ee,{children:[e.jsx(te,{src:Kn,alt:""}),e.jsxs(ne,{children:[e.jsx(se,{children:n("names.why4Title")}),e.jsx(ie,{children:n("names.why4")}),e.jsxs(Pe,{href:Rs,target:"_blank",rel:"noopener noreferrer",children:[n("names.learnMore"),e.jsx(E,{name:"external-link","aria-hidden":!0})]})]})]})]})]})]}),p?e.jsx(Gn,{name:l,priceCredits:f,onClose:()=>b(!1)}):null]})}const Is=i.p`
|
|
922
922
|
display: flex;
|
|
923
923
|
align-items: center;
|
|
924
924
|
gap: 10px;
|
|
@@ -934,5 +934,5 @@ import{r as f,b as He,j as e,u as et}from"./react-DdXEvnSt.js";import{u as tt,s
|
|
|
934
934
|
background: rgba(211, 51, 51, 0.1);
|
|
935
935
|
color: ${t.colors.err};
|
|
936
936
|
}
|
|
937
|
-
`,Ue=48,Ls=["all","on_sale","not_for_sale"];function Ys(){const[s]=et(),o=He(),r=(s.get("q")??"").trim().toLowerCase(),d=(s.get("q")??"").trim();De({title:d?n("seo.collectibles.searchTitle",{query:d}):n("seo.collectibles.title"),description:n("seo.collectibles.description")});const h=
|
|
938
|
-
//# sourceMappingURL=Assets-
|
|
937
|
+
`,Ue=48,Ls=["all","on_sale","not_for_sale"];function Ys(){const[s]=et(),o=He(),r=(s.get("q")??"").trim().toLowerCase(),d=(s.get("q")??"").trim();De({title:d?n("seo.collectibles.searchTitle",{query:d}):n("seo.collectibles.title"),description:n("seo.collectibles.description")});const h=u.useMemo(()=>({category:"all",status:"on_sale",subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,sort:"newest"}),[]),[f,l]=tt(h),{subCategory:m,rarities:c,priceMin:g,priceMax:p,smart:b,sort:C}=f,w=f.category,$=Ls.includes(f.status)?f.status:"on_sale";st(`${w}:${m??""}`);const[v,x]=u.useState(!1);u.useEffect(()=>{if(!v)return;const a=K=>{K.key==="Escape"&&x(!1)};document.addEventListener("keydown",a);const H=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",a),document.body.style.overflow=H}},[v]);const k=$==="on_sale",L=g&&!Number.isNaN(Number(g))?Number(g):void 0,T=p&&!Number.isNaN(Number(p))?Number(p):void 0,N=It(),M=m?Pt[m]:void 0,B=(Ie.find(a=>a.key===C)??Ie[0]).server,W={category:w,rarities:c.length?c:void 0,wearableCategories:M,minPriceCredits:L,maxPriceCredits:T,search:r||void 0,sortBy:B,isSmart:b||void 0,onSale:!0,listingType:N?void 0:"primary"},P={category:w,rarities:c.length?c:void 0,wearableCategories:M,search:r||void 0,sortBy:B,isWearableSmart:b||void 0,isOnSale:$==="not_for_sale"?!1:void 0},{items:S,total:F,isLoading:R,isPlaceholderData:_,error:j,hasNextPage:A,isFetchingNextPage:z,isFetchNextPageError:I,fetchNextPage:ae}=Wt(k?["shop-items",W]:["catalog-items",P],a=>k?At({...W,first:Ue,skip:a}):zt({...P,first:Ue,skip:a}),{enabled:w!=="names"}),U=F,{data:y,isError:D,isPending:G}=Ge(),Ke=a=>y&&a.manaWei?qe(a.manaWei,y):null,Je=k&&G&&S.some(a=>a.source==="legacy"),Se=R||_||Je,Xe=R?15:Math.max(S.length,1),Ee=u.useRef(null);u.useEffect(()=>{R||_||!r||Ee.current===r||(Ee.current=r,oe("Shop Searched",{query:r,result_count:U}))},[r,R,_,U]);const Q=u.useRef("__init__");u.useEffect(()=>{if(R||_)return;const a=JSON.stringify({category:w,subCategory:m,rarities:c,min:L,max:T,sort:C,status:$,smart:b});if(Q.current==="__init__"||Q.current===a){Q.current=a;return}Q.current=a,oe("Shop Applied Filter",{filters:{category:w,sub_category:m,rarities:c,min_price_credits:L??null,max_price_credits:T??null,status:$,smart:b,sort:C},result_count:U})},[w,m,c,L,T,C,$,b,R,_,U]);function Te(a){l({category:a,subCategory:null})}function Re(a){l({status:a})}function _e(a){l({rarities:c.includes(a)?c.filter(H=>H!==a):[...c,a]})}function Ye(){l(h)}const q=[];(L!=null||T!=null)&&q.push({key:"price",label:n("filter.price"),onRemove:()=>{l({priceMin:"",priceMax:""})}});for(const a of it)c.includes(a)&&q.push({key:`rarity-${a}`,label:Lt(a),onRemove:()=>_e(a)});return b&&q.push({key:"smart",label:n("filter.smart"),onRemove:()=>l({smart:!1})}),$!=="on_sale"&&q.push({key:"status",label:$==="all"?n("filter.statusAll"):n("filter.notForSale"),onRemove:()=>Re("on_sale")}),e.jsxs(ot,{"data-testid":"browse",children:[w!=="names"&&e.jsxs(e.Fragment,{children:[v?e.jsx(rt,{onClick:()=>x(!1),"aria-hidden":!0}):null,e.jsxs(at,{"data-open":v||void 0,"data-testid":"browse-sidebar",children:[e.jsxs(lt,{children:[e.jsx(ct,{children:n("assets.filters")}),e.jsx(dt,{onClick:()=>x(!1),"aria-label":n("assets.closeFilters"),children:"✕"})]}),e.jsx(ht,{children:e.jsx(pt,{category:w,subCategory:m,onCategory:Te,onSub:a=>l({subCategory:a}),priceMin:g,priceMax:p,onPriceMin:a=>l({priceMin:a}),onPriceMax:a=>l({priceMax:a}),rarities:c,onToggleRarity:_e,status:$,onStatus:Re,smart:b,onSmart:a=>l({smart:a})})}),e.jsx(ut,{children:e.jsx(ft,{type:"button",onClick:()=>x(!1),children:n("assets.showItems")})})]})]}),e.jsx(mt,{children:w==="names"?e.jsx(_s,{onBack:()=>Te("all")}):e.jsxs(e.Fragment,{children:[e.jsx(xt,{sort:C,onSort:a=>l({sort:a}),total:F,loading:R||_,query:r,onOpenFilters:()=>x(!0),chips:q,onClearChips:Ye}),D&&k&&S.some(a=>a.source==="legacy")?e.jsx(Is,{"data-variant":"warn",children:n("assets.marketUnavailable")}):null,j?e.jsx(Ft,{message:n("assets.loadError"),testId:"browse-error"}):null,!Se&&S.length===0&&!j?e.jsx(Nt,{testId:"browse-empty",icon:nt,title:n("assets.empty.title"),body:d?e.jsxs(e.Fragment,{children:[n("assets.empty.searchBefore"),e.jsx("b",{children:d}),n("assets.empty.searchAfter")]}):n("assets.empty.filters"),cta:{label:n("assets.empty.cta"),onClick:()=>o("/overview")}}):e.jsxs(e.Fragment,{children:[e.jsx(Xt,{"data-testid":"grid",children:Se?e.jsx(Ne,{count:Xe}):e.jsxs(e.Fragment,{children:[S.map(a=>{if(!k)return e.jsx(J,{item:a,mode:"view"},X(a));const H=a;if(H.source!=="legacy")return e.jsx(J,{item:a},X(a));const K=Ke(H);return K==null?e.jsx(J,{item:a,mode:"view"},X(a)):e.jsx(J,{item:{...H,priceCredits:K}},X(a))}),z?e.jsx(Ne,{count:6}):null]})}),e.jsx(Mt,{hasNextPage:A,isFetching:z,isError:I,onLoadMore:()=>void ae()})]})]})})]})}export{Ys as Assets};
|
|
938
|
+
//# sourceMappingURL=Assets-BQHoTVy5.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,L as W,r as P}from"./react-
|
|
1
|
+
import{j as e,L as W,r as P}from"./react-eHGl4EaY.js";import{t as o,s as n,B,m as R,n as F,b as i,o as G,p as O,I as z,q as K,l as w,r as Q,c as H,v as X,w as A,h as Z,x as J,y as I}from"./index-Bo4xq_KT.js";import{a as U,b as V,c as Y,d as tt,s as et,e as it}from"./authorizations-FX9A7NCF.js";import{f as ot}from"./builder-BUAFeauh.js";import{m as at}from"./mana-matic-CEqvSwrJ.js";import{f as nt}from"./errors-CpdVn533.js";import"./dcl-schemas-DvE7IWDY.js";import"./sentry-Bv3fzY7D.js";import"./ethers-owZvXzo9.js";import"./intl-AKLEHPeO.js";import"./sendMetaTransaction-D1z-Wmsw.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="c2ec6301-beed-4385-8d18-7f5357a4a2c4",t._sentryDebugIdIdentifier="sentry-dbid-c2ec6301-beed-4385-8d18-7f5357a4a2c4")}catch{}})();const st=R`
|
|
2
2
|
to { transform: rotate(360deg); }
|
|
3
3
|
`,rt=R`
|
|
4
4
|
to { background-position: -200% 0; }
|
|
@@ -189,4 +189,4 @@ import{j as e,L as W,r as P}from"./react-DdXEvnSt.js";import{t as o,s as n,B,m a
|
|
|
189
189
|
`,M=n(B)`
|
|
190
190
|
margin-top: 12px;
|
|
191
191
|
`;function j({descriptor:t,owner:s,signer:r,name:a,description:c,image:l,icon:p}){const v=Q(),[h,y]=P.useState(!1),{data:u,isLoading:g,refetch:d}=w({queryKey:["authorization",t.id,s],queryFn:()=>it(t,s),staleTime:3e4});async function m(){if(h||g)return;const b=!u;y(!0);try{await et({auth:t,signer:r,active:b}),await d(),v.setQueryData(["authorization",t.id,s],b),A.success(b?i("authorizations.toastActivated",{name:a}):i("authorizations.toastDeactivated",{name:a}))}catch(C){Z(C,{flow:"authorizations",step:b?"grant":"revoke"}),A.error(nt(C,i("authorizations.errorGeneric")))}finally{y(!1)}}const N=g?i("authorizations.checking"):u?i("authorizations.active"):i("authorizations.inactive");return e.jsxs(ht,{"data-testid":`authorization-${t.id}`,"data-active":!!u,children:[e.jsx(gt,{children:l?e.jsx("img",{src:l,alt:""}):p}),e.jsxs(mt,{children:[e.jsx(ft,{title:a,children:a}),e.jsx(xt,{children:c})]}),e.jsxs(bt,{children:[e.jsx(yt,{"data-active":!!u,children:N}),h?e.jsx(jt,{"aria-label":i("authorizations.working")}):e.jsx(zt,{type:"button","data-testid":`authorization-toggle-${t.id}`,"data-active":!!u,role:"switch","aria-checked":!!u,"aria-label":u?i("authorizations.deactivateAria",{name:a}):i("authorizations.activateAria",{name:a}),disabled:g,onClick:()=>void m()})]})]})}const x=500,q=10,vt=x*q;async function _(t,s){const r=await I(t,{category:s,first:x}),a=Math.min(Math.ceil(r.total/x),q),c=await Promise.all(Array.from({length:Math.max(0,a-1)},(l,p)=>I(t,{category:s,first:x,skip:(p+1)*x})));return{assets:[...r.assets,...c.flatMap(l=>l.assets)],truncated:r.total>vt}}function kt(t){return w({queryKey:["owned-collections",t],enabled:!!t,staleTime:6e4,queryFn:async()=>{const[s,r]=await Promise.all([_(t,"wearable"),_(t,"emote")]),a=new Map;for(const c of[...s.assets,...r.assets]){const l=c.contractAddress.toLowerCase();a.has(l)||a.set(l,c)}return{collections:[...a.values()],truncated:s.truncated||r.truncated,scanned:s.assets.length+r.assets.length}}})}function $t(t){return w({queryKey:["contract-registry"],enabled:t,staleTime:1/0,gcTime:1/0,queryFn:J})}function Ct(t,s){const r=s==null?void 0:s.get(t.toLowerCase());if(r)return r;const a=X(t);return a===t?i("authorizations.collectionFallback"):a}function At(t,s){return w({queryKey:["creator-collections",t],enabled:!!t&&!!s,staleTime:6e4,queryFn:async()=>{const r=await ot(t,s),a=new Map;for(const c of r){const l=c.contractAddress.toLowerCase();a.has(l)||a.set(l,c)}return[...a.values()]}})}function Wt(){F({title:i("authorizations.title"),noindex:!0});const{session:t,signIn:s}=G(),r=H.chainId,a=O(t==null?void 0:t.providerType),{data:c,isLoading:l}=kt(a?t==null?void 0:t.address:void 0),{data:p,isLoading:v}=$t(!!a&&!!(t!=null&&t.address)),{data:h,isLoading:y}=At(a?t==null?void 0:t.address:void 0,a?t==null?void 0:t.identity:void 0);if(!t)return e.jsxs(D,{children:[e.jsx(z,{name:"info",size:40,color:o.colors.muted2}),e.jsx(S,{children:i("authorizations.signInTitle")}),e.jsx(L,{children:i("authorizations.signInBody")}),e.jsx(M,{variant:"white",onClick:()=>s(),children:i("storeSettings.signIn")})]});if(!a)return e.jsxs(D,{children:[e.jsx(z,{name:"check",size:40,color:o.colors.ok}),e.jsx(S,{children:i("authorizations.managedTitle")}),e.jsx(L,{children:i("authorizations.managedBody")}),e.jsx(M,{as:W,to:"/items",variant:"white",children:i("authorizations.managedCta")})]});const u=U(r),g=V(r);return e.jsxs(ct,{children:[e.jsxs(lt,{children:[e.jsx(dt,{children:i("authorizations.title")}),e.jsx(ut,{children:i("authorizations.intro")})]}),e.jsxs(k,{children:[e.jsx($,{children:i("authorizations.buyingTitle")}),e.jsxs(f,{children:[e.jsx(j,{descriptor:u,owner:t.address,signer:t.signer,name:i("authorizations.creditsName"),description:i("authorizations.creditsDesc"),icon:e.jsx(K,{className:"ccy-mark"})}),e.jsx(j,{descriptor:g,owner:t.address,signer:t.signer,name:i("authorizations.manaName"),description:i("authorizations.manaDesc"),icon:e.jsx(pt,{src:at,alt:"","aria-hidden":!0})})]})]}),e.jsxs(k,{children:[e.jsx($,{children:i("authorizations.sellingTitle")}),c!=null&&c.truncated?e.jsx(wt,{"data-testid":"authorizations-selling-truncated",children:i("authorizations.sellingTruncated",{count:c.scanned})}):null,l||v?e.jsx(f,{"aria-busy":"true","aria-label":i("authorizations.checking"),children:Array.from({length:3}).map((d,m)=>e.jsx(E,{"aria-hidden":!0},m))}):c&&c.collections.length>0?e.jsx(f,{children:c.collections.map(d=>e.jsx(j,{descriptor:Y(d.contractAddress,r),owner:t.address,signer:t.signer,name:Ct(d.contractAddress,p),description:i("authorizations.sellingDesc"),image:d.image,icon:e.jsx(z,{name:"pen",size:18})},d.contractAddress))}):e.jsx(T,{children:i("authorizations.sellingEmpty")})]}),e.jsxs(k,{children:[e.jsx($,{children:i("authorizations.mintingTitle")}),y?e.jsx(f,{"aria-busy":"true","aria-label":i("authorizations.checking"),children:Array.from({length:3}).map((d,m)=>e.jsx(E,{"aria-hidden":!0},m))}):h&&h.length>0?e.jsx(f,{children:h.map(d=>e.jsx(j,{descriptor:tt(d.contractAddress,r),owner:t.address,signer:t.signer,name:d.name||i("authorizations.collectionFallback"),description:i("authorizations.mintingDesc"),icon:e.jsx(z,{name:"pen",size:18})},d.contractAddress))}):e.jsx(T,{children:i("authorizations.mintingEmpty")})]})]})}export{Wt as Authorizations};
|
|
192
|
-
//# sourceMappingURL=Authorizations-
|
|
192
|
+
//# sourceMappingURL=Authorizations-DSQN_BUe.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,L as Nt,r as A,b as ga,a as xa}from"./react-
|
|
1
|
+
import{j as e,L as Nt,r as A,b as ga,a as xa}from"./react-eHGl4EaY.js";import{s as i,t as R,b as a,q as Te,E as ne,bc as We,C as Se,bd as ma,D as _e,be as fa,z as ya,I as Z,A as Ye,n as ba,ab as D,H as wt,o as va,V as wa,l as Ca,bf as ja,r as ka,bg as $a,J as Sa,bh as Ma,bi as Ct,L as Ta,bj as Ia,bk as Aa,bl as Pa,ao as Fe,p as za,bm as jt,ad as X,bn as kt,bo as Ea,h as ie,R as qa,c as $t,bp as Ra,bq as St,br as Le,W as Ba,bs as ve,bt as we,bu as Mt,g as Tt,f as It,bv as Wa}from"./index-Bo4xq_KT.js";import{m as Me,M as _a,S as Fa,C as La,H as Ka,a as Na,T as Qa,X as Ua,b as Ga,B as Ha,c as Oa,d as At,e as Da,f as Ie,g as Va,h as Ya,i as Ja,j as Xa,k as Ve,l as pe,L as Za,P as es,n as Pt,o as zt,W as ts,p as as,q as ss,r as ns,A as is,s as rs,t as os,u as cs,v as ls,w as ds,x as us,y as hs,z as ps,D as gs,E as xs,F as ms,G as fs,I as ys,J as bs,K as vs,N as ws,O as Ke,Q as Cs,R as js,U as ks,V as Et,Y as qt,Z as $s,_ as Ss,$ as Ms,a0 as Ts,a1 as Rt,a2 as Is}from"./CollectionCarousel-LTlXX1yl.js";import{k as As,l as Ps,e as zs,n as Es,f as qs,A as Rs}from"./authorizations-FX9A7NCF.js";import{g as Bs,h as Ne,p as Ws}from"./buy-BqmJYTA_.js";import{w as _s,S as Qe,b as Fs,G as Ls}from"./buy-gasless-r0-rX1Xz.js";import{u as Ks,M as Ns,R as Ce,r as Qs,c as Us,p as Bt,a as Ue}from"./useCreditPacks-v3OL_Ll5.js";import{i as Gs,a as Hs}from"./errors-CpdVn533.js";import{E as Os}from"./ErrorNotice-BjLTkOLz.js";import"./dcl-schemas-DvE7IWDY.js";import"./sentry-Bv3fzY7D.js";import"./ethers-owZvXzo9.js";import"./intl-AKLEHPeO.js";import"./sendMetaTransaction-D1z-Wmsw.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new r.Error().stack;d&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[d]="fb829c18-f947-423c-9964-928d94bcc796",r._sentryDebugIdIdentifier="sentry-dbid-fb829c18-f947-423c-9964-928d94bcc796")}catch{}})();const Ds=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 12px;
|
|
@@ -745,4 +745,4 @@ import{j as e,L as Nt,r as A,b as ga,a as xa}from"./react-DdXEvnSt.js";import{s
|
|
|
745
745
|
margin-top: 0;
|
|
746
746
|
}
|
|
747
747
|
`;function Oe(r){if(Gs(r))return a("errors.rejected");const d=(r.message??"").toLowerCase();return d.includes("insufficient")?a("cart.error.insufficient",{currency:Se.name}):d.includes("no active listing")||d.includes("your own listing")?a("cart.error.listingChanged"):a("marketCheckout.error.generic")}const Xn=12e4;function Zn(r){const d=[];return r.unavailable.length&&d.push(a("cart.drop.unavailable",{count:r.unavailable.length})),r.own.length&&d.push(a("cart.drop.own",{count:r.own.length})),a("cart.drop.removed",{items:d.join(` ${a("cart.drop.and")} `)})}const De=r=>r.reduce((d,k)=>d+k.priceCredits*k.quantity,0),$e=r=>r.flatMap(d=>Array.from({length:d.quantity},()=>({...d,quantity:1})));function gi(){var vt;ba({title:a("nav.cart"),noindex:!0});const r=D(t=>t.items),d=D(t=>t.remove),k=D(t=>t.increment),$=D(t=>t.decrement),B=D(t=>t.clear),U=D(t=>t.restore),O=D(t=>t.setFittingOpen),z=wt(t=>t.items),ee=wt(t=>t.toggle),{session:n,signIn:G}=va(),Vt=wa(),ge=Ks().packs.slice(0,Ns);A.useEffect(()=>(document.body.classList.add("shop-cart-bg"),()=>document.body.classList.remove("shop-cart-bg")),[]);const Yt=r.some(t=>t.category!=="emote"),{data:Ae}=Ca({queryKey:["upsell-listings"],queryFn:()=>Wa({first:40}),staleTime:6e4}),{data:j}=ja(n),b=ka(),te=ga(),{state:W}=xa(),[Jt,ce]=A.useState(null),[Je,xe]=A.useState(null),[Xt,_]=A.useState(!1),[F,V]=A.useState(null),Xe=A.useRef(0),[p,M]=A.useState(null),{data:me}=$a(n),{data:le}=Sa(!0),[Pe,Ze]=A.useState(""),de=A.useRef(null),et=Ma(r),tt=t=>jt(et[t.id]),ze=r.filter(tt),at=r.length>0&&ze.length===0,Zt=ze.reduce((t,s)=>t+s.priceCredits*s.quantity,0),ea=r.reduce((t,s)=>t+s.quantity,0),ta=ze.reduce((t,s)=>t+s.quantity,0),st=F?F.liveTotalCredits:Zt,aa=new Set(r.map(t=>t.id)),nt=((Ae==null?void 0:Ae.items)??[]).filter(t=>!aa.has(t.id)).slice(0,12),sa=new Map(F==null?void 0:F.buyable.map(t=>[t.item.id,t])),fe=(j==null?void 0:j.credits)??0,Ee=st*10,na=le?Ct(Ee,le):0n,qe=Ke({priceCents:Ee,priceManaWei:na,balanceCents:(j==null?void 0:j.balanceCents)??0,manaBalanceWei:me??0n}),ia=t=>t.flatMap(s=>{const c=Ue(s);return c.kind==="store"?[c.mint]:[]}),ra=t=>t.flatMap(s=>s.acquisition==="trade"?[s.trade]:[]),oa=Ea,ca=t=>Ra(t.contractAddress,String(t.itemId));function ye(t){t(),V(null),xe(null),ce(null)}function la(){M(null),_(!1)}function it(t){const s=De(t),c=Math.max(0,s-fe),o=ge.find(u=>u.credits>=c)??ge[ge.length-1];Ze(o.id),X("Shop Buy Credits Prompted",{from:"cart_checkout",credits_needed:s,credits_balance:fe,shortfall:c}),M({phase:"nofunds",lines:t.map(u=>({item:u.item,priceCredits:u.priceCredits,quantity:u.quantity})),shortfall:c}),_(!1)}async function Re(t){if(!n||t.length===0)return;const s=$e(t),c=s.map(m=>({...m.item,priceCredits:m.priceCredits})),o=t.map(m=>({...m.item,priceCredits:m.priceCredits,quantity:m.quantity})),u=[];let v="authorize";const x=new Set,I=new Set,K=new Set,L=[];let w=!1;M({phase:"processing",stage:"reserving",step:1,total:s.length});try{const m=[];for(let g=0;g<s.length;g++){const h=s[g];M({phase:"processing",stage:"reserving",step:g+1,total:s.length});try{const f=h.acquisition==="trade"?h.trade.id:void 0,S=h.item.contractAddress&&h.item.itemId!=null?{contractAddress:h.item.contractAddress,itemId:String(h.item.itemId)}:void 0,{credit:Q,maxCreditedValue:J}=await St(n.identity,h.usdCents,f,S);u.push({salt:Q.id,itemId:h.item.id}),m.push(h.acquisition==="store"?{kind:"store",item:{collection:h.item.contractAddress,itemId:String(h.item.itemId),priceWei:h.priceWei},credits:[Q],maxCreditedValue:J,chainId:h.item.chainId}:{kind:"trade",trade:h.trade,credits:[Q],maxCreditedValue:J})}catch(f){if(Hs(f)){if(u.length){try{await Le(n.identity,u.map(S=>S.salt))}catch(S){ie(S,{flow:"cart_checkout",step:"release"})}b.invalidateQueries({queryKey:["usd-balance"]})}it(t);return}throw f}}u.length&&b.invalidateQueries({queryKey:["usd-balance"]}),v="submit";const T=Bs(m).length,H=g=>T>1?{current:g,total:T}:void 0,N=(g,h)=>M({phase:"processing",stage:g,step:s.length,total:s.length,signatures:H(h)}),Y=g=>g<T?N("awaiting-signature",g+1):N("settling",T);N("awaiting-signature",1);let E=[];const C=new Map,y=async g=>{const h=await Promise.allSettled(g.map(f=>_s(f)));return h.forEach((f,S)=>{const Q=C.get(g[S])??[];f.status==="fulfilled"?(Q.forEach(J=>I.add(J)),L.push(g[S])):f.reason instanceof Qe||Q.forEach(J=>K.add(J))}),h.flatMap(f=>f.status==="rejected"?[f.reason]:[])};if(As())try{let g=0;E=await Fs({purchases:m,buyer:n.address,signer:n.signer,onSigned:()=>N("settling",Math.min(g+1,T)),onBroadcast:({txHash:f,salts:S})=>{g+=1,C.set(f,S),S.forEach(Q=>x.add(Q))},onGroupSettling:({settled:f})=>N("settling",f)});const h=await y(E);if(h.length&&!h.some(f=>f instanceof Qe))throw h[0];w=!0}catch(g){if(g instanceof Qe)throw await y([...C.keys()]),g;if(!(g instanceof Ls)||!Ba(n.providerType))throw g;E=await Ne({purchases:m,buyer:n.address,signer:n.signer,onSigned:Y,onBroadcast:({salts:h})=>h.forEach(f=>x.add(f)),onSettled:({txHash:h,salts:f})=>{f.forEach(S=>I.add(S)),L.push(h)},onReverted:({salts:h})=>h.forEach(f=>K.add(f))})}else E=await Ne({purchases:m,buyer:n.address,signer:n.signer,onSigned:Y,onBroadcast:({salts:g})=>g.forEach(h=>x.add(h)),onSettled:({txHash:g,salts:h})=>{h.forEach(f=>I.add(f)),L.push(g)},onReverted:({salts:g})=>g.forEach(h=>K.add(h))});t.forEach(g=>d(g.item.id)),V(null),X("Shop Completed Purchase",{...ve(c),payment_type:"credits",no_crypto_step:w,transaction_hash:E[0]??null}),qt(b);const q=de.current;de.current=null,M(null),_(!1);const he={items:o,txHash:E[0]??void 0,txHashes:E,settled:!0,...q?{creditsAdded:q}:{}};te("/success",{state:he,replace:!0})}catch(m){we(m)||ie(m,{flow:"cart_checkout",step:v,cart_size:t.length});const T=new Set([...x].filter(y=>!K.has(y))),{toRelease:H,boughtItemIds:N}=Bt({reservations:u,spent:T,settled:I}),Y=[...T].some(y=>!I.has(y)),E=c.filter(y=>N.includes(y.id)),C=c.filter(y=>!N.includes(y.id));if(X(we(m)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:v,error_code:Mt(m),value_usd:kt(C.reduce((y,q)=>y+q.priceCredits,0)),cart_size:s.length,partial:E.length>0}),H.length)try{await Le(n.identity,H)}catch(y){ie(y,{flow:"cart_checkout",step:"release"})}if(b.invalidateQueries({queryKey:["usd-balance"]}),E.length>0){N.forEach(y=>d(y)),V(null),qt(b),X("Shop Completed Purchase",{...ve(E),payment_type:"credits",no_crypto_step:w,transaction_hash:L[0]??null,partial:!0}),M({phase:"error",message:a("cart.error.partiallyBought"),heldCredits:Y}),_(!1);return}M({phase:"error",message:Y?void 0:Oe(m),heldCredits:Y})}}function rt(t,s){b.invalidateQueries({queryKey:["usd-balance"]}),b.invalidateQueries({queryKey:["detail-trade"]}),b.invalidateQueries({queryKey:["shop-item"]}),b.invalidateQueries({queryKey:["owned-token"]}),b.invalidateQueries({queryKey:["public-token"]}),b.invalidateQueries({queryKey:["item-resales"]}),b.invalidateQueries({queryKey:["shop-items"]}),b.invalidateQueries({queryKey:["catalog-items"]}),b.invalidateQueries({queryKey:["my-assets"]}),b.invalidateQueries({queryKey:["purchases"]}),b.invalidateQueries({queryKey:["owned-item-count"]}),b.invalidateQueries({queryKey:["overview-listings"]}),b.invalidateQueries({queryKey:["upsell-listings"]});const c=de.current;de.current=null,M(null),_(!1);const o={items:t,txHash:s[0]??void 0,txHashes:s,settled:!0,...c?{creditsAdded:c}:{}};te("/success",{state:o,replace:!0})}function ot(t,s){we(t)||ie(t,{flow:s,step:"submit"}),X(we(t)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:Mt(t)}),M({phase:"error",message:Oe(t)}),_(!1)}async function da(t,s,c){const o=Tt(It.MANAToken,s),u=Tt(It.CreditsManager,s);await qs({auth:{kind:Rs.Allowance,contractAddress:o.address,spenderAddress:u.address,chainId:s},signer:t,requiredWei:c})}async function ct(){if(le)return le;try{return await b.fetchQuery({queryKey:["mana-rate",$t.chainId],queryFn:()=>qa($t.chainId),staleTime:6e4})}catch{return}}async function ua(t){const s=$e(t).reduce((v,x)=>v+x.usdCents,0),o=(me??0n)>0n?await ct():le,u=o?Ct(s,o):0n;return{totalCents:s,manaWei:u}}async function lt(t,s){const c=De(t),{totalCents:o,manaWei:u}=await ua(t),v=Ke({priceCents:o,priceManaWei:u,balanceCents:(j==null?void 0:j.balanceCents)??0,manaBalanceWei:me??0n});if(s&&v.options.some(x=>x.method===s)){if(s==="credits"){Re(t);return}const x=pt(v,s);await ut(dt(s,t),x,()=>s==="mana"?void gt(t,x):void xt(t,o,u));return}if(v.options.some(x=>x.method==="mana"||x.method==="combined")){M({phase:"choose",lines:t,totalCents:o,manaWei:u}),_(!1);return}if(j!=null&&j.credits<c){it(t);return}Re(t)}function Be(t){return Ke({priceCents:t.totalCents,priceManaWei:t.manaWei,balanceCents:(j==null?void 0:j.balanceCents)??0,manaBalanceWei:me??0n})}const[ue,be]=A.useState(null);function dt(t,s){const c=new Map;for(const o of s){const u=$s(t,Ue(o));c.set(`${u.chainId}:${u.spender.toLowerCase()}`,u)}return[...c.values()]}async function ut(t,s,c){const o=[];for(const{spender:u,chainId:v}of t){const x=Ps(v,u),I=n?await zs(x,n.address,s).catch(()=>!0):!0;Es(n==null?void 0:n.providerType,I)&&o.push(x)}if(o.length===0){c();return}_(!1),ht(o,0,c)}function ht(t,s,c){be({auth:t[s],index:s+1,total:t.length,run:()=>s+1<t.length?ht(t,s+1,c):c()})}function pt(t,s){var c;return((c=t.options.find(o=>o.method===s))==null?void 0:c.manaWei)??0n}function ha(t){if((p==null?void 0:p.phase)!=="choose")return;const{lines:s,totalCents:c,manaWei:o}=p;if(t==="credits"){Re(s);return}const u=pt(Be(p),t);ut(dt(t,s),u,()=>t==="mana"?void gt(s,u):void xt(s,c,o))}async function gt(t,s){if(!n||t.length===0)return;const c=$e(t),o=c.map(x=>({...x.item,priceCredits:x.priceCredits})),u=t.map(x=>({...x.item,priceCredits:x.priceCredits,quantity:x.quantity})),v=()=>M({phase:"processing",stage:"settling",step:c.length,total:c.length});M({phase:"processing",stage:"awaiting-signature",step:c.length,total:c.length});try{const x=await Ss({trades:ra(c),mints:ia(c),buyer:n.address,signer:n.signer,onSigned:v,manaWei:s});t.forEach(I=>d(I.item.id)),V(null),X("Shop Completed Purchase",{...ve(o),payment_type:"mana",transaction_hash:x[0]??null}),b.invalidateQueries({queryKey:["mana-balance"]}),rt(u,x)}catch(x){ot(x,"buy_cart_mana")}}async function xt(t,s,c){if(!n||t.length===0)return;const o=$e(t),u=o.map(w=>({...w.item,priceCredits:w.priceCredits})),v=t.map(w=>({...w.item,priceCredits:w.priceCredits,quantity:w.quantity})),x=Ms(o.map(w=>w.usdCents),(j==null?void 0:j.balanceCents)??0),I=[],K=new Set,L=new Set;M({phase:"processing",stage:"reserving",step:1,total:o.length});try{const w=o.map(Ue),m=[],T=new Map,H=new Map;for(let C=0;C<o.length;C++){const y=o[C],q=w[C],he=x[C],g=Ts(Math.max(0,y.usdCents-he),s,c);let h;if(he<=0)h=Rt(q,[],"0");else{M({phase:"processing",stage:"reserving",step:C+1,total:o.length});const S=y.item,{credit:Q,maxCreditedValue:J}=await St(n.identity,he,q.kind==="trade"?q.trade.id:void 0,S.contractAddress&&S.itemId!=null?{contractAddress:S.contractAddress,itemId:String(S.itemId)}:void 0);I.push({salt:Q.id,itemId:S.id}),h=Rt(q,[Q],J)}const f=Ws(h);T.set(f,(T.get(f)??0n)+g),H.has(f)||H.set(f,m.length),m.push(h)}I.length&&b.invalidateQueries({queryKey:["usd-balance"]});for(const[C,y]of T){const q=H.get(C);q==null||y<=0n||(m[q]={...m[q],maxCreditedValue:(BigInt(m[q].maxCreditedValue)+y).toString()})}const N=[...T.values()].reduce((C,y)=>C+y,0n);await da(n.signer,Is(w[0]),N);const Y=()=>M({phase:"processing",stage:"settling",step:o.length,total:o.length});M({phase:"processing",stage:"awaiting-signature",step:o.length,total:o.length});const E=await Ne({purchases:m,buyer:n.address,signer:n.signer,onSigned:Y,onBroadcast:({salts:C})=>C.forEach(y=>K.add(y)),onReverted:({salts:C})=>C.forEach(y=>L.add(y))});t.forEach(C=>d(C.item.id)),V(null),X("Shop Completed Purchase",{...ve(u),payment_type:"credits_and_mana",transaction_hash:E[0]??null}),b.invalidateQueries({queryKey:["mana-balance"]}),rt(v,E)}catch(w){const{toRelease:m}=Bt({reservations:I,spent:new Set([...K].filter(T=>!L.has(T))),settled:new Set});m.length&&Le(n.identity,m).catch(()=>{}),I.length&&b.invalidateQueries({queryKey:["usd-balance"]}),ot(w,"buy_cart_combined")}}async function ae(t){if(!n){Et({type:"cart-checkout"}),G();return}const s=D.getState().items.filter(tt);if(s.length===0)return;ce(null),xe(null),_(!0);const c=s.reduce((o,u)=>o+u.priceCredits*u.quantity,0);X("Shop Started Checkout",{checkout_source:"cart",cart_size:s.length,cart_value_credits:c,cart_value_usd:kt(c),has_sufficient_credits:fe>=c});try{const o=await Qs(s,n.address,oa,await ct(),ca),u=[...o.unavailable,...o.own];if(u.length&&(u.forEach(v=>d(v.id)),xe(Zn(o))),o.buyable.length===0){ce(a("cart.error.noneAvailable")),V(null);return}if(o.orderChanged){V(o),Xe.current=Date.now();return}await lt(o.buyable,t)}catch(o){ie(o,{flow:"cart_checkout",step:"review",cart_size:s.length}),ce(Oe(o))}finally{_(!1)}}async function mt(){if(F){if(!n){Et({type:"cart-checkout"}),G();return}if(Date.now()-Xe.current>Xn){V(null),xe(null),await ae();return}ce(null),lt(F.buyable)}}async function pa(){if(Pe){try{sessionStorage.setItem(Ce,JSON.stringify(D.getState().items))}catch{}_(!0);try{const t=await Us(Pe,n?{address:n.address,identity:n.identity}:void 0);if(t.url){window.location.href=t.url;return}te("/credits")}catch(t){try{sessionStorage.removeItem(Ce)}catch{}ie(t,{flow:"cart_buy_credits"}),M({phase:"error",message:a("buyModal.error.creditsCheckout")})}finally{_(!1)}}}const ft=A.useRef(!1);A.useEffect(()=>{if(!n||ft.current||!Cs("cart-checkout"))return;ft.current=!0;const t=setTimeout(()=>void ae(),0);return()=>clearTimeout(t)},[n]);const yt=A.useRef(!1);A.useEffect(()=>{if(!(W!=null&&W.resumeCheckout)||yt.current)return;yt.current=!0,de.current=W.creditsAdded??null;try{const s=sessionStorage.getItem(Ce);if(s){sessionStorage.removeItem(Ce);const c=JSON.parse(s);Array.isArray(c)&&c.length&&U(c)}}catch{}b.invalidateQueries({queryKey:["usd-balance"]});const t=setTimeout(()=>void ae(),0);return()=>clearTimeout(t)},[W==null?void 0:W.resumeCheckout]);const bt=A.useRef(!1);A.useEffect(()=>{if(!(W!=null&&W.startCheckout)||bt.current)return;bt.current=!0,te(".",{replace:!0,state:null});const t=setTimeout(()=>void ae(),0);return()=>clearTimeout(t)},[W==null?void 0:W.startCheckout]);const se=Xt||(p==null?void 0:p.phase)==="processing";return r.length===0&&!p?e.jsx(_t,{children:e.jsxs(Lt,{children:[e.jsxs(Ft,{onClick:()=>te(-1),type:"button",children:[e.jsx(Z,{name:"arrow-left"}),a("nav.cart")]}),e.jsx(gn,{children:e.jsx(Ta,{variant:"light",testId:"cart-empty",icon:Ia,title:a("cart.empty.title"),body:a("cart.empty.body"),cta:{label:a("cart.empty.cta"),to:"/items"}})})]})}):e.jsxs(_t,{children:[e.jsxs(Lt,{children:[e.jsxs(Ft,{onClick:()=>te(-1),type:"button",children:[e.jsx(Z,{name:"arrow-left"}),a("nav.cart")]}),e.jsxs(dn,{children:[e.jsxs(un,{children:[e.jsxs(hn,{children:[e.jsx(xn,{onClick:()=>te(-1),type:"button","aria-label":a("cart.goBack"),children:e.jsx(Z,{name:"arrow-left"})}),e.jsx(mn,{children:a("cart.panelTitle",{count:ea})}),Yt?e.jsxs(fn,{onClick:()=>O(!0),disabled:se,children:[e.jsx(Z,{name:"fitting-room"}),a("cart.fittingRoom")]}):null]}),e.jsxs(pn,{children:[e.jsx(yn,{children:r.map(t=>{const s=sa.get(t.id),c=s?s.priceCredits:t.priceCredits,o=!!s&&s.priceCredits!==t.priceCredits,u=!t.tokenId,v=t.quantity,x=typeof t.available=="number"&&v>=t.available,I=c*v,K=Aa(t),L=!!K&&!!z[K],w=Pa(t),m=et[t.id],T=!jt(m),H=m==="sold-out"?a("cart.availability.soldOut"):a("cart.availability.unavailable");return e.jsxs(bn,{"data-unavailable":T||void 0,children:[e.jsxs(vn,{"data-thumb":!0,children:[w?e.jsx(wn,{to:w,state:{item:t,tradeId:t.tradeId},"aria-label":t.name,children:t.thumbnail?e.jsx("img",{src:t.thumbnail,alt:t.name}):null}):t.thumbnail?e.jsx("img",{src:t.thumbnail,alt:t.name}):null,e.jsx(Cn,{"data-check":!0,"aria-hidden":!0,children:e.jsx("svg",{viewBox:"0 0 20 20",width:"12",height:"12",children:e.jsx("path",{d:"M5 10.5l3 3 7-7.5",fill:"none",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),e.jsxs(jn,{children:[e.jsxs(kn,{"data-desc":!0,children:[w?e.jsx(Sn,{to:w,state:{item:t,tradeId:t.tradeId},title:t.name,children:t.name}):e.jsx($n,{title:t.name,children:t.name}),t.creator?e.jsx(Mn,{address:t.creator,linkToProfile:!0}):null,Vt&&u?e.jsxs(Wn,{"data-testid":"cart-creator-tag",children:[e.jsx(_n,{name:"buy-from-creator"}),a("cart.creatorTag")]}):null]}),e.jsx(Tn,{children:T?e.jsxs(Rn,{children:[e.jsx(Bn,{name:"warning-fill",size:24}),H]}):e.jsxs(e.Fragment,{children:[u?e.jsxs(In,{children:[e.jsx(Kt,{onClick:()=>ye(()=>$(t.id)),disabled:se||v<=1,"aria-label":a("cart.decreaseQuantity",{name:t.name}),children:e.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:e.jsx("path",{d:"M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}),e.jsx(An,{children:v}),e.jsx(Kt,{onClick:()=>ye(()=>k(t.id)),disabled:se||x,"aria-label":a("cart.increaseQuantity"),children:e.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:e.jsx("path",{d:"M8 3.5v9M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]}):null,e.jsxs(Pn,{children:[e.jsx(zn,{})," ",e.jsx(Fe,{credits:I}),o?e.jsx(En,{children:e.jsx(Fe,{credits:t.priceCredits*v})}):null]})]})})]}),e.jsxs(qn,{children:[K?e.jsx(Fn,{"data-on":L||void 0,onClick:()=>ee(t),"aria-label":L?a("cart.removeFromFavorites",{name:t.name}):a("cart.addToFavorites",{name:t.name}),title:L?a("assetCard.removeFromFavorites"):a("assetCard.addToFavorites"),children:e.jsx(Z,{name:L?"heart-solid":"heart"})}):null,e.jsx(Ln,{onClick:()=>ye(()=>d(t.id)),disabled:se,"aria-label":a("cart.remove",{name:t.name}),title:a("cart.removeTitle"),children:e.jsx(Z,{name:"trash",size:24})})]})]},t.id)})}),e.jsx(Kn,{children:e.jsx("button",{className:"link",onClick:()=>ye(B),disabled:se,children:a("cart.clearCart")})})]})]}),e.jsxs(Nn,{children:[e.jsx(Qn,{children:a("cart.purchaseSummary")}),e.jsxs(Un,{children:[e.jsxs(Gn,{children:[e.jsx(Hn,{children:a("cart.totalItems",{count:ta})}),e.jsx(Dn,{children:e.jsxs(On,{children:[e.jsx(Vn,{})," ",e.jsx(Fe,{credits:st})]})})]}),e.jsx(Ut,{options:qe.options,totalCents:Ee,shortfall:qe.manaShortfall,showCreditsAmount:!1,creditsLabel:F?a("marketCheckout.confirmPurchase"):qe.options.length>1?a("cart.buyWithCredits"):a("cart.checkout"),busy:se||at,onPay:t=>void(F?mt():ae(t)),creditsFallback:{label:se?a("cart.working"):F?a("marketCheckout.confirmPurchase"):a("cart.checkout"),onClick:()=>void(F?mt():ae())}}),at?e.jsx(ke,{className:"muted",children:a("cart.allUnavailable")}):null,n?null:e.jsx(ke,{className:"muted",children:a("cart.signInHint")}),F?e.jsx(ke,{className:"muted",children:a("cart.priceChanged")}):null,Je?e.jsx(ke,{className:"muted",children:Je}):null,e.jsx(Yn,{message:Jt})]})]})]})]}),nt.length>0?e.jsx(Jn,{children:e.jsx(js,{title:a("cart.youMightAlsoLike"),items:nt})}):null,ue&&n?e.jsx(ks,{auth:ue.auth,signer:n.signer,step:{index:ue.index,total:ue.total},title:a("authorizeStep.manaTitle"),name:a("authorizeStep.manaName"),reason:a("authorizeStep.manaReason"),icon:e.jsx("img",{src:Me,width:24,height:24,alt:"","aria-hidden":!0}),onAuthorized:()=>{const{run:t}=ue;be(null),t()},onCancel:()=>be(null),onClose:()=>be(null)}):null,p?e.jsx(rn,{phase:p.phase,balanceCredits:fe,heldCreditsCount:((vt=j==null?void 0:j.held)==null?void 0:vt.credits)??null,onClose:la,stage:p.phase==="processing"?p.stage:void 0,step:p.phase==="processing"?p.step:void 0,total:p.phase==="processing"?p.total:void 0,isSelfCustody:za(n==null?void 0:n.providerType),signatures:p.phase==="processing"?p.signatures:void 0,options:p.phase==="choose"?Be(p).options:void 0,shortfall:p.phase==="choose"?Be(p).manaShortfall:void 0,onPay:ha,totalCents:p.phase==="choose"?p.totalCents:void 0,totalManaWei:p.phase==="choose"?p.manaWei:void 0,totalCredits:p.phase==="choose"?De(p.lines):void 0,lines:p.phase==="nofunds"?p.lines:void 0,shortfallCredits:p.phase==="nofunds"?p.shortfall:void 0,packs:ge,selectedPack:Pe,onSelectPack:Ze,onBuyPacks:()=>void pa(),message:p.phase==="error"?p.message:void 0,heldCredits:p.phase==="error"&&!!p.heldCredits,onRetry:()=>void ae()}):null]})}export{gi as Cart};
|
|
748
|
-
//# sourceMappingURL=Cart-
|
|
748
|
+
//# sourceMappingURL=Cart-4FZ_RV6w.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,r as h,d as te,b as oe}from"./react-
|
|
1
|
+
import{j as e,r as h,d as te,b as oe}from"./react-eHGl4EaY.js";import{t as x,s as u,h as se,I as re,m as ae,b as r,Z as q,v as F,bB as ie,bC as ne,c as le,l as ce,n as de,ar as ue,L as me,S as W,M as pe,bD as fe,bQ as he}from"./index-Bo4xq_KT.js";import{E as be}from"./ErrorNotice-BjLTkOLz.js";import{d as xe,P as ge,C as ye,a as E,b as ve,S as je}from"./collectionPage.styles-Clp4tsb3.js";import{u as we}from"./useStore-B9TZQeZ1.js";import{u as Ce,t as G,R as ke,j as Se,k as $e,l as Ne,m as Ee,n as Me,o as Fe,p as Ie,v as Re,q as Te,r as _e,M as Ae,s as Pe}from"./browseLayout.styles-DmXbjfpy.js";import{L as De}from"./LoadMore-CED3UI8v.js";import{u as Be}from"./useInfiniteGrid-CueovPl3.js";import{u as Le,s as ze}from"./search-empty-CfWjX9Z-.js";import{S as Oe}from"./categories-DJ3CpW29.js";import{G as We}from"./grid.styles-DNvkHrfB.js";import"./dcl-schemas-DvE7IWDY.js";import"./sentry-Bv3fzY7D.js";import"./ethers-owZvXzo9.js";import"./intl-AKLEHPeO.js";import"./skeleton.styles-doHMnxGS.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new s.Error().stack;o&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[o]="98ec0422-38ab-4f8c-997b-24b1c5966d2b",s._sentryDebugIdIdentifier="sentry-dbid-98ec0422-38ab-4f8c-997b-24b1c5966d2b")}catch{}})();const Ge=u.section`
|
|
2
2
|
position: relative;
|
|
3
3
|
border-radius: ${x.radius.card};
|
|
4
4
|
overflow: hidden;
|
|
@@ -131,4 +131,4 @@ import{j as e,r as h,d as te,b as oe}from"./react-DdXEvnSt.js";import{t as x,s a
|
|
|
131
131
|
background: ${j.blackBtn};
|
|
132
132
|
}
|
|
133
133
|
`;function it({address:s}){var d,n;const{data:o}=q(s);if(!s)return null;const i=(o==null?void 0:o.name)||F(s),l=(n=(d=o==null?void 0:o.avatar)==null?void 0:d.snapshots)==null?void 0:n.face256,a=`${le.profileUrl}/${s}`,m=ie(ne({name:o==null?void 0:o.name,hasClaimedName:o==null?void 0:o.hasClaimedName,ethAddress:(o==null?void 0:o.ethAddress)??s}));return e.jsxs(st,{"data-testid":"creator-card",children:[l?e.jsx(U,{src:l,alt:"",loading:"eager",style:{backgroundColor:m}}):e.jsx(U,{as:"span","aria-hidden":!0,style:{backgroundColor:m}}),e.jsx(rt,{title:i,children:i}),e.jsx(tt,{value:s,label:r("collection.copyAddress"),flow:"copy_creator_address",testId:"creator-card-copy",children:e.jsx("span",{children:F(s)})}),e.jsx(at,{"data-testid":"creator-card-view",href:a,target:"_blank",rel:"noopener noreferrer",children:r("collection.viewProfile")})]})}const nt=48,lt=["all","on_sale","not_for_sale"];function St(){var O;const{contractAddress:s}=te(),o=oe(),i=h.useMemo(()=>({category:"all",status:"all",subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,sort:"newest"}),[]),[l,a]=Le(i),{category:m,subCategory:d,rarities:n,priceMin:b,priceMax:f,smart:C,sort:I}=l,g=lt.includes(l.status)?l.status:"all",R=t=>a({status:t});Ce(`${m}:${d??""}`);const[w,y]=h.useState(!1);h.useEffect(()=>{if(!w)return;const t=ee=>{ee.key==="Escape"&&y(!1)};document.addEventListener("keydown",t);const N=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",t),document.body.style.overflow=N}},[w]);const T=b&&!Number.isNaN(Number(b))?Number(b):void 0,_=f&&!Number.isNaN(Number(f))?Number(f):void 0,H=d?Oe[d]:void 0,K=(G.find(t=>t.key===I)??G[0]).server,A={contractAddress:s,category:m,rarities:n.length?n:void 0,wearableCategories:H,minPriceCredits:T,maxPriceCredits:_,isWearableSmart:C||void 0,isOnSale:g==="all"?void 0:g==="on_sale",sortBy:K},{items:k,total:Q,isLoading:S,error:P,hasNextPage:Z,isFetchingNextPage:D,isFetchNextPageError:V,fetchNextPage:J}=Be(["collection-page",A],t=>fe({...A,first:nt,skip:t}),{enabled:!!s}),{data:c}=ce({queryKey:["collection-meta",s],queryFn:()=>he(s),enabled:!!s,staleTime:5*6e4}),B=(c==null?void 0:c.name)||r("collection.fallbackTitle");de({title:c==null?void 0:c.name,description:c!=null&&c.name?r("seo.collection.description",{name:c.name}):void 0});const p=(c==null?void 0:c.creator)||((O=k[0])==null?void 0:O.creator),{data:$}=q(p),X=($==null?void 0:$.name)||(p?F(p):"");function Y(t){a({category:t,subCategory:null})}function L(t){a({rarities:n.includes(t)?n.filter(N=>N!==t):[...n,t]})}function z(){a(i)}const v=[];(T!=null||_!=null)&&v.push({key:"price",label:r("filter.price"),onRemove:()=>{a({priceMin:"",priceMax:""})}});for(const t of ke)n.includes(t)&&v.push({key:`rarity-${t}`,label:ue(t),onRemove:()=>L(t)});return C&&v.push({key:"smart",label:r("filter.smart"),onRemove:()=>a({smart:!1})}),g!=="all"&&v.push({key:"status",label:g==="on_sale"?r("filter.onSale"):r("filter.notForSale"),onRemove:()=>R("all")}),e.jsxs(ge,{"data-testid":"collection-page",children:[e.jsxs(ye,{"aria-label":r("collection.breadcrumbAria"),children:[e.jsx(E,{onClick:()=>o("/items"),children:r("collection.breadcrumb")}),p?e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"/"}),e.jsx(E,{onClick:()=>o(`/items/creator/${p}`),children:X}),e.jsx("span",{children:"/"}),e.jsx(E,{onClick:()=>o(`/items/creator/${p}?collections`),children:r("categories.collections")})]}):null,e.jsx("span",{children:"/"}),e.jsx(ve,{children:B})]}),e.jsx(Qe,{name:B,creator:p}),e.jsxs(Se,{"data-testid":"browse",children:[w?e.jsx($e,{onClick:()=>y(!1),"aria-hidden":!0}):null,e.jsxs(je,{children:[e.jsx(it,{address:p}),e.jsxs(Ne,{"data-open":w||void 0,"data-static":!0,"data-testid":"browse-sidebar",children:[e.jsxs(Ee,{children:[e.jsx(Me,{children:r("assets.filters")}),e.jsx(Fe,{onClick:()=>y(!1),"aria-label":r("assets.closeFilters"),children:"✕"})]}),e.jsx(Ie,{children:e.jsx(Re,{category:m,subCategory:d,onCategory:Y,onSub:t=>a({subCategory:t}),priceMin:b,priceMax:f,onPriceMin:t=>a({priceMin:t}),onPriceMax:t=>a({priceMax:t}),rarities:n,onToggleRarity:L,status:g,onStatus:R,smart:C,onSmart:t=>a({smart:t}),hideNames:!0})}),e.jsx(Te,{children:e.jsx(_e,{type:"button",onClick:()=>y(!1),children:r("assets.showItems")})})]})]}),e.jsxs(Ae,{children:[e.jsx(Pe,{sort:I,onSort:t=>a({sort:t}),total:Q,loading:S,onOpenFilters:()=>y(!0),chips:v,onClearChips:z}),P?e.jsx(be,{message:r("collection.error")}):null,!S&&!P&&k.length===0?e.jsx(me,{testId:"collection-empty",icon:ze,title:r("assets.empty.title"),body:r("collection.empty"),cta:{label:r("filterBar.clearAll"),onClick:z}}):e.jsxs(e.Fragment,{children:[e.jsx(We,{"data-testid":"grid",children:S?e.jsx(W,{count:15}):e.jsxs(e.Fragment,{children:[k.map(t=>e.jsx(pe,{item:t},t.id)),D?e.jsx(W,{count:6}):null]})}),e.jsx(De,{hasNextPage:Z,isFetching:D,isError:V,onLoadMore:()=>void J()})]})]})]})]})}export{St as Collection,St as default};
|
|
134
|
-
//# sourceMappingURL=Collection-
|
|
134
|
+
//# sourceMappingURL=Collection-C9Oa84DP.js.map
|