@dcl/shop 1.9.2-32490364182.commit-e2e4c6b → 1.9.2
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-C4Kzn5fk.js → Activity-Dt6DfbvQ.js} +64 -64
- package/_assets/{AnimatedBackground-BwuwfNrk.js → AnimatedBackground-D9fqKZZL.js} +6 -6
- package/_assets/{Assets-CTbQPjcM.js → Assets-Cpt6sCyJ.js} +3 -3
- package/_assets/{Authorizations-N-jDljmP.js → Authorizations-QDcGhwOD.js} +4 -4
- package/_assets/{Cart-ywFlNL9H.js → Cart-k83ms4yR.js} +2 -2
- package/_assets/{CircularProgress-DPY51kqk.js → CircularProgress-Zi497kNF.js} +2 -2
- package/_assets/{Collection-BbPumsdq.js → Collection-DN9kyHxU.js} +11 -11
- package/_assets/{CollectionCarousel-CoM9Gv9s.js → CollectionCarousel-CiQjTUxK.js} +3 -3
- package/_assets/{Confetti-C0-okGdM.js → Confetti-BxjiVKPm.js} +4 -4
- package/_assets/{ConstantsUtil-BX0kJSLy.js → ConstantsUtil-DaE8obaZ.js} +2 -2
- package/_assets/{ContentClient-FkKb15O9.js → ContentClient-D0SQSgXF.js} +2 -2
- package/_assets/{Creator-B-q7Mpyx.js → Creator-DV2Q_EhN.js} +2 -2
- package/_assets/{DeploymentBuilder-B-vRvz4q.js → DeploymentBuilder-xN7K8y9o.js} +2 -2
- package/_assets/{EmotePlaybackBar-DLxsISmS.js → EmotePlaybackBar-DiG0rn9W.js} +5 -5
- package/_assets/{ErrorNotice-Bwbke-jb.js → ErrorNotice-BW8aXw_7.js} +2 -2
- package/_assets/{ExchangeController-wLrEO73T.js → ExchangeController-B4BdmoV9.js} +2 -2
- package/_assets/{Faq-Bn3oD9jJ.js → Faq-CI78-N0I.js} +2 -2
- package/_assets/{GetCredits-1dwWdfH1.js → GetCredits-LUpSuIG_.js} +8 -8
- package/_assets/{Grow-A1ryBOre.js → Grow-CjEYi24F.js} +2 -2
- package/_assets/{HelpersUtil-zE-WUDXf.js → HelpersUtil-B76CBImb.js} +2 -2
- package/_assets/ItemDetail--_To60pF.js +3655 -0
- package/_assets/{LoadMore-D-zzUoTF.js → LoadMore-BXkJAed-.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-CdSp5zDl.js → ManaPricingBanner.styles-C4fJtJh-.js} +28 -24
- package/_assets/{MyAssets-vSbkMz3D.js → MyAssets-1QA09uaq.js} +45 -45
- package/_assets/{MyFavorites-V0_oPzp8.js → MyFavorites-BGBd9cHu.js} +2 -2
- package/_assets/{NetworkUtil-C2E64C4n.js → NetworkUtil-CUhhiBwq.js} +2 -2
- package/_assets/{NotFound-BDte9RrV.js → NotFound-1d5l0fPQ.js} +2 -2
- package/_assets/{NotificationsBell-D2-6APUI.js → NotificationsBell-cuQUq5HL.js} +2 -2
- package/_assets/{OutfitDetail-2F7CkzM9.js → OutfitDetail-Hft483Ec.js} +2 -2
- package/_assets/{OutfitPreview-vLgRLTXf.js → OutfitPreview-WwPNEOjI.js} +2 -2
- package/_assets/{OutfitStudio-B7-5-HLr.js → OutfitStudio-Ccib9vIn.js} +2 -2
- package/_assets/{StoreSettings-DYpES0Qy.js → StoreSettings-CX45pls-.js} +3 -3
- package/_assets/{Success-CbxoRTGm.js → Success-C7bxhod-.js} +2 -2
- package/_assets/{SwapController-CNhuabdS.js → SwapController-2o6kQ91x.js} +2 -2
- package/_assets/{TradeService-Dq5kA3hU.js → TradeService-p9Z6Y0wD.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-qLuUEBFJ.js → W3MFrameProviderSingleton-Cil5qlaS.js} +4 -4
- package/_assets/{WebCryptoP256-BNgcFtmR.js → WebCryptoP256-BZht8npt.js} +2 -2
- package/_assets/{authorizations-Wa0_wT0Z.js → authorizations-CJLGounG.js} +2 -2
- package/_assets/{basic-CFDlu1LL.js → basic-CV4HIKM2.js} +2 -2
- package/_assets/{biconomy-CbaORytl.js → biconomy-C1M_WGYX.js} +2 -2
- package/_assets/{browseLayout.styles-CuE2syAy.js → browseLayout.styles-CbyAhCls.js} +2 -2
- package/_assets/{browser-XADW-5I9.js → browser-BsRaY-pm.js} +2 -2
- package/_assets/{browser-ponyfill-ByHh5PGV.js → browser-ponyfill--2nwarnr.js} +2 -2
- package/_assets/{builder-Cil_nXWA.js → builder-CeLuOnuM.js} +2 -2
- package/_assets/{buy-DAGs2gvU.js → buy-DymchWn5.js} +2 -2
- package/_assets/{buy-gasless-CXg0ob_0.js → buy-gasless-_tY7hzCY.js} +2 -2
- package/_assets/{categories-Bwi3LuIK.js → categories-CXj1P-ln.js} +2 -2
- package/_assets/{ccip-DxEPKiwF.js → ccip-CQiZ3-qM.js} +2 -2
- package/_assets/{ccip-CABvxDcN.js → ccip-FnhUFIYm.js} +2 -2
- package/_assets/{chains-CKHFLxhm.js → chains-DfMERfnW.js} +2 -2
- package/_assets/collectionPage.styles-ADf8X1pQ.js +40 -0
- package/_assets/{common-AHgzOdSB.js → common-C_ndt6fZ.js} +2 -2
- package/_assets/{controller-389ptNLt.js → controller-DDEQmJXP.js} +3 -3
- package/_assets/{core-CWqAJwp-.js → core-j77nIizU.js} +5 -5
- package/_assets/{createSvgIcon-RTgYqIT0.js → createSvgIcon-Du97wPGf.js} +3 -3
- package/_assets/{custom-B6FOcLFS.js → custom-Dxc1jEzQ.js} +2 -2
- package/_assets/{data-capture-DZoFqspx.js → data-capture-BU8pDw-T.js} +2 -2
- package/_assets/{dcl-schemas-CQsQxWYK.js → dcl-schemas-BBgGLe8k.js} +2 -2
- package/_assets/{decimals-B8ji3I9T.js → decimals-e9gwXexf.js} +2 -2
- package/_assets/{decimals-BrfaLWeO.js → decimals-letC916t.js} +2 -2
- package/_assets/{detectExtension-CBEeT0QS.js → detectExtension-C9d6YCCt.js} +2 -2
- package/_assets/{disposePreview-NijpZXe_.js → disposePreview-Dezrw02g.js} +2 -2
- package/_assets/{email-WN7zlIKb.js → email-DSscz4Vl.js} +2 -2
- package/_assets/{embedded-wallet-c9wepCXs.js → embedded-wallet-Kj2rnf5C.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-CYlNKf9I.js → emotion-styled.browser.esm-JObVDgrH.js} +2 -2
- package/_assets/{engine-C91fSUt_.js → engine-HowSqiPZ.js} +2 -2
- package/_assets/{errors-DGWrzcZ2.js → errors-CqEjLz14.js} +2 -2
- package/_assets/{estimate-l1-fee-BscyCbli.js → estimate-l1-fee-4Nc3yCK1.js} +2 -2
- package/_assets/{eth_estimateGas-zf8E350c.js → eth_estimateGas-07hHMEkF.js} +2 -2
- package/_assets/{eth_getStorageAt-C7mDOh_o.js → eth_getStorageAt-B_6XaGoO.js} +2 -2
- package/_assets/{eth_getTransactionCount-BZuLOO7k.js → eth_getTransactionCount-BvPk5RHG.js} +2 -2
- package/_assets/{ethereum-RVBnTLaL.js → ethereum-eDYZBrz5.js} +2 -2
- package/_assets/{ethers-DXUQI3Ut.js → ethers-BKRWnjV9.js} +2 -2
- package/_assets/{events-DLLBOQYG.js → events-S6R_9oRG.js} +2 -2
- package/_assets/{execute-C57BG5lJ.js → execute-DxIYEcvB.js} +3 -3
- package/_assets/{extractIPFS-BKXzy-Rh.js → extractIPFS-DKyUVdVV.js} +2 -2
- package/_assets/{features-ALZAg55_.js → features-PyWxVTLV.js} +2 -2
- package/_assets/{fetchTokenMetadata-Cr3PV6X1.js → fetchTokenMetadata-DTgK8IFo.js} +3 -3
- package/_assets/{field.styles-1qNXB2de.js → field.styles-DKQS3oWo.js} +2 -2
- package/_assets/{fortmatic-VEuLc1E0.js → fortmatic-Cd8UWzR7.js} +2 -2
- package/_assets/{get-bytecode-Dgh4Jb3X.js → get-bytecode-CNrt-FoQ.js} +2 -2
- package/_assets/{get-ecosystem-wallet-info-Bo9paKe6.js → get-ecosystem-wallet-info-Ddh0TZp5.js} +2 -2
- package/_assets/{getBalance-BE7W--GK.js → getBalance-HweKqf1d.js} +3 -3
- package/_assets/{getInstalledModules-BQ_ILdNe.js → getInstalledModules-DIY2QXZg.js} +2 -2
- package/_assets/{getNFT-C4VCKNcO.js → getNFT--CbGnkWO.js} +2 -2
- package/_assets/{getNFT-BYOtm54v.js → getNFT-Dm-BLuw5.js} +3 -3
- package/_assets/{grid.styles-DzvODQdq.js → grid.styles-C24oAL5O.js} +2 -2
- package/_assets/{hashTypedData-X0KUMzG4.js → hashTypedData-Cs3JQ0er.js} +2 -2
- package/_assets/{hashTypedData-ChT5ZbgL.js → hashTypedData-DQ_Lbi0o.js} +2 -2
- package/_assets/{in-app-zluvfGQX.js → in-app-CW-TClWX.js} +2 -2
- package/_assets/{in-app-wallet-calls-BrnhR34A.js → in-app-wallet-calls-Td7jQu3N.js} +2 -2
- package/_assets/{index-D6hTzS8e.js → index--RzAwV6Q.js} +2 -2
- package/_assets/{index-C5onHlUQ.js → index-9jY2-EBG.js} +2 -2
- package/_assets/{index-BZPiWmJM.js → index-AiBvYRW5.js} +2 -2
- package/_assets/{index-B9WM1WTc.js → index-B0zOOgnV.js} +2 -2
- package/_assets/{index-C8H2vLAP.js → index-B3XA61Pm.js} +2 -2
- package/_assets/{index-BrC_okhM.js → index-B6SpJox_.js} +2 -2
- package/_assets/{index-CimY5gmO.js → index-B7lHpbYl.js} +2 -2
- package/_assets/{index-CLfKjViB.js → index-BCN8HQIT.js} +2 -2
- package/_assets/{index-D3jeiuFw.js → index-BEfcKQqS.js} +2 -2
- package/_assets/{index-SPFq-ZCl.js → index-BJ6Fw5Al.js} +2 -2
- package/_assets/{index-DvfEbLUY.js → index-BJITEOWs.js} +2 -2
- package/_assets/{index-DNuGqPWd.js → index-BKoIacqr.js} +3 -3
- package/_assets/{index-g_xcW_-R.js → index-BRF6gJ7Q.js} +2 -2
- package/_assets/{index-NJ_79PUz.js → index-BSzD0ncl.js} +2 -2
- package/_assets/{index-36NDvu3w.js → index-BTGMdjiQ.js} +2 -2
- package/_assets/{index-D_3daVMJ.js → index-BTdE-853.js} +2 -2
- package/_assets/{index-CarTIHBr.js → index-BTkKLFzm.js} +2 -2
- package/_assets/{index-CaHn1v4Y.js → index-BVuZOuvn.js} +3 -3
- package/_assets/{index-BAeUu19q.js → index-BXQ9FyQv.js} +3 -3
- package/_assets/{index-DJA_1O-1.js → index-BYZ634H2.js} +2 -2
- package/_assets/{index-CbZQowQ5.js → index-Bbs_JDF9.js} +6 -6
- package/_assets/{index-DDxLpm0Z.js → index-BdM6GuSo.js} +2 -2
- package/_assets/{index-OeIHT0cR.js → index-BfNdu86e.js} +2 -2
- package/_assets/index-BhsA-pb-.js +2 -0
- package/_assets/{index-DHM5xCcE.js → index-BjW_aHIh.js} +2 -2
- package/_assets/{index-Dbp8PJtv.js → index-BpCu9mM3.js} +17 -17
- package/_assets/{index-RYnkqAG_.js → index-C2gUP7Wd.js} +2 -2
- package/_assets/{index-C-cuJat3.js → index-C5UkgriS.js} +2 -2
- package/_assets/{index-BcpaMHLt.js → index-C7fDOFW2.js} +2 -2
- package/_assets/{index-DAuK57Cr.js → index-CGZa27zg.js} +2 -2
- package/_assets/index-CKGO8NWe.css +1 -0
- package/_assets/{index-BD0UDtYF.js → index-CMZjflvo.js} +2 -2
- package/_assets/{index-DCSeDwHz.js → index-CNbMuq6z.js} +2 -2
- package/_assets/{index-C0fNNzGI.js → index-CR-CF0bF.js} +2 -2
- package/_assets/{index-drol9D68.js → index-CWMBT2iW.js} +2 -2
- package/_assets/{index-2QDRSKTI.js → index-CZXqNGbb.js} +2 -2
- package/_assets/{index-BzhoSaGz.js → index-CdfCxJMq.js} +2 -2
- package/_assets/{index-CRP5QaPb.js → index-CeMa_Fpw.js} +2 -2
- package/_assets/{index-PPamm-Fm.js → index-CoCdUrpV.js} +2 -2
- package/_assets/{index-BpQETbke.js → index-CoFmUEdb.js} +4 -4
- package/_assets/{index-CSBo6qrQ.js → index-CuBLDtFZ.js} +4 -4
- package/_assets/{index-BuABw98X.js → index-CxkbKeKD.js} +2 -2
- package/_assets/{index-CZJQqq1_.js → index-CzbStCVl.js} +2 -2
- package/_assets/{index-CQ3eT5S4.js → index-CzuWMO-_.js} +2 -2
- package/_assets/{index-fKbajirP.js → index-D-M7F27b.js} +2 -2
- package/_assets/{index-Cx1edpy0.js → index-D2bN0_3y.js} +2 -2
- package/_assets/{index-BQ0ZshU5.js → index-D9kntTpl.js} +2 -2
- package/_assets/{index-CwlpUkJ3.js → index-DEOUkXMy.js} +2 -2
- package/_assets/{index-1nMFaDfq.js → index-DF089E3i.js} +2 -2
- package/_assets/{index-vnVB3yV9.js → index-DNROAxKm.js} +2 -2
- package/_assets/{index-4dXpSk57.js → index-DQdcxui0.js} +2 -2
- package/_assets/{index-Cwx8-XY7.js → index-DY6pIrBT.js} +2 -2
- package/_assets/{index-C4iYwCkM.js → index-D_nXvzND.js} +2 -2
- package/_assets/{index-DwCKhtFu.js → index-DjP3X3Jh.js} +2 -2
- package/_assets/{index-ioIg36Q5.js → index-Djpq4q5g.js} +4 -4
- package/_assets/{index-CTAs_Ona.js → index-DpMjDWPc.js} +2 -2
- package/_assets/{index-BN-bGk3n.js → index-Dq2Ka7mB.js} +3 -3
- package/_assets/{index-BGw5m7Uo.js → index-EW0m5fIH.js} +3 -3
- package/_assets/{index-DlWdq6Mw.js → index-FPMEVY0k.js} +2 -2
- package/_assets/{index-C-SyxpJI.js → index-Kerq77jm.js} +2 -2
- package/_assets/{index-BPpGc36z.js → index-YSCl74H6.js} +2 -2
- package/_assets/{index-DX-xaYge.js → index-_iT3UM2o.js} +2 -2
- package/_assets/{index-6m82mLa-.js → index-hGWc_5eF.js} +2 -2
- package/_assets/{index-D8CbiuvG.js → index-haPNmxuN.js} +2 -2
- package/_assets/{index-DVqruI7F.js → index-kizwd9je.js} +2 -2
- package/_assets/index-sQFfvNZX.js +4090 -0
- package/_assets/{index-CwSVzkMY.js → index-uVLu1nYC.js} +2 -2
- package/_assets/{index-BJ83OlRb.js → index-zyd0LxKG.js} +2 -2
- package/_assets/{index.es-BmijG_o0.js → index.es-CReVKXvk.js} +2 -2
- package/_assets/{index.es-Bmub6mvo.js → index.es-CnQERyF2.js} +2 -2
- package/_assets/{index.es-DW9WuktD.js → index.es-NKUXf-un.js} +5 -5
- package/_assets/{index.es-B7WIB4xs.js → index.es-iv8hf5ai.js} +2 -2
- package/_assets/items-empty-CJboE1w9.js +2 -0
- package/_assets/{jump-DpEhRseo.js → jump-CeInMpQz.js} +2 -2
- package/_assets/{linkAccount-Ce-F8zrz.js → linkAccount-CJSln8y3.js} +2 -2
- package/_assets/{localBatchGatewayRequest-Dx1kkAvc.js → localBatchGatewayRequest-C4ULrlUp.js} +2 -2
- package/_assets/{native-vLlkzvxI.js → native-d_18A6YH.js} +2 -2
- package/_assets/{networks-DZ7rrynN.js → networks-a6Oqotld.js} +2 -2
- package/_assets/{onramp-DLuIEWh8.js → onramp-CDgb9WlA.js} +2 -2
- package/_assets/{openzeppelin-B3-AW1et.js → openzeppelin-MXrpXJs9.js} +2 -2
- package/_assets/{ownerOf-Dj22dy0c.js → ownerOf-BSpUUDYN.js} +2 -2
- package/_assets/{parseNft-DIyPdcOK.js → parseNft-Dq5u9zmT.js} +3 -3
- package/_assets/{parseSignature-D8jGniDr.js → parseSignature-JDi4tHpL.js} +2 -2
- package/_assets/{parseSignature-xueulJgr.js → parseSignature-bTbb9ogg.js} +4 -4
- package/_assets/{passkeys-CZmD8fl-.js → passkeys-BeLLEm8_.js} +2 -2
- package/_assets/{pay-with-exchange-Bc61S8fk.js → pay-with-exchange-uspxaKYi.js} +2 -2
- package/_assets/{prepare-contract-call-a0euYGw1.js → prepare-contract-call-glyYfDZw.js} +2 -2
- package/_assets/{qr-overlay-Bxcymc80.js → qr-overlay-Cfm7lv4J.js} +4 -4
- package/_assets/{react-G9L2um0r.js → react-9aRvCYbm.js} +2 -2
- package/_assets/{receive-B2L8XUAK.js → receive-DzqSGOBo.js} +2 -2
- package/_assets/{resolveImplementation-CyW7nJOY.js → resolveImplementation-CGlyDT1c.js} +2 -2
- package/_assets/{resume-buy-DjsRBHGc.js → resume-buy-DzrSPRFa.js} +2 -2
- package/_assets/{rpc-HuV61zaY.js → rpc-B4vokLJn.js} +2 -2
- package/_assets/{sales-empty-C2d5fYtD.js → sales-empty-DqC1PsNb.js} +2 -2
- package/_assets/{search-empty-a5Cznk_m.js → search-empty-DCFe-ryo.js} +2 -2
- package/_assets/{secp256k1-D_V4Ye8O.js → secp256k1-0pYvee0N.js} +2 -2
- package/_assets/{secp256k1-DRRm-iBM.js → secp256k1-C-dCnxvN.js} +2 -2
- package/_assets/{secp256k1-DVs4vnDB.js → secp256k1-mA2HPwtH.js} +2 -2
- package/_assets/{send-7zzvm8CG.js → send-BhFWXDEQ.js} +2 -2
- package/_assets/{send-batch-transaction-DzSQ0vye.js → send-batch-transaction-ClbwXouE.js} +2 -2
- package/_assets/{send-eip712-transaction-C8xbqwl4.js → send-eip712-transaction-Cvujs_IY.js} +3 -3
- package/_assets/{send-gasless-transaction-BApkPjqX.js → send-gasless-transaction-o6WLUU8m.js} +3 -3
- package/_assets/{send-transaction-BWqOlzuO.js → send-transaction-brMtxtLa.js} +3 -3
- package/_assets/{sendMetaTransaction-DtqCFoTt.js → sendMetaTransaction-BO1lGCgN.js} +2 -2
- package/_assets/{sendRawTransaction-DxOSpPmA.js → sendRawTransaction-ClZJFTYs.js} +4 -4
- package/_assets/{sentry-RCtiQtjC.js → sentry-CJqFbG11.js} +3 -3
- package/_assets/{serializeTransaction-DMjWbKEY.js → serializeTransaction-CHRQ4nRc.js} +2 -2
- package/_assets/{session-proposal-CDANnhiF.js → session-proposal-DIVrgaZs.js} +2 -2
- package/_assets/{session-request-Bn0fkTkw.js → session-request-DQ1KJ9v-.js} +3 -3
- package/_assets/{sha256-Cbk06XOV.js → sha256-D95xpIOk.js} +2 -2
- package/_assets/{signing-BH_9uHTG.js → signing-CF8ZzSie.js} +4 -4
- package/_assets/{skeleton.styles-KSeN66We.js → skeleton.styles-CDClgQZa.js} +2 -2
- package/_assets/{socials-DGCX2gsj.js → socials-Bh2JNm2f.js} +2 -2
- package/_assets/{styled-K_r8RfK3.js → styled-BJAerMAa.js} +3 -3
- package/_assets/{swaps-CLkWisZt.js → swaps-CP0hsXom.js} +2 -2
- package/_assets/{thirdweb-DbdkDnGO.js → thirdweb-CvWXAZKa.js} +4 -4
- package/_assets/{to-serializable-transaction-DeE9YtTe.js → to-serializable-transaction-BKfOcqcV.js} +3 -3
- package/_assets/{totalSupply-f-_lj4s2.js → totalSupply-Civ1rKAR.js} +2 -2
- package/_assets/{transaction-fETmGUb_.js → transaction-LdbEZ3QP.js} +2 -2
- package/_assets/{transactionReceipt-BHye7StB.js → transactionReceipt-BWD_rE0W.js} +2 -2
- package/_assets/{transactions-DUAV8yRm.js → transactions-BTkg5Hbg.js} +2 -2
- package/_assets/{useCreditPacks-DFJcm3cB.js → useCreditPacks-DnU6Nk_-.js} +2 -2
- package/_assets/{useInfiniteGrid-CLHeOKn3.js → useInfiniteGrid-DvgTy6W_.js} +2 -2
- package/_assets/{useStore-BBUVWiPd.js → useStore-CgGE1SzL.js} +3 -3
- package/_assets/{useTheme-DD0IQ_3Z.js → useTheme-DCVzmxd7.js} +2 -2
- package/_assets/{utils-u4hNmxb_.js → utils-DF0qXAQT.js} +2 -2
- package/_assets/{verifyHash-CY-z2bj3.js → verifyHash-DbgcJwW2.js} +2 -2
- package/_assets/{w3m-modal-CAKNlWwi.js → w3m-modal-BCt908iO.js} +2 -2
- package/_assets/{w3m-modal-O6Eqk9dV.js → w3m-modal-MofBNC-s.js} +2 -2
- package/_assets/{wait-for-tx-receipt-1jFQBtZz.js → wait-for-tx-receipt-BWYdev56.js} +2 -2
- package/_assets/{wallets-D1PAyMOY.js → wallets-CyXKPtLh.js} +6 -6
- package/_assets/{web-connector-Dnqy9LKi.js → web-connector-CBmqwNC1.js} +4 -4
- package/_assets/{writeContract-V_-ojxW6.js → writeContract-U8xgcLR7.js} +2 -2
- package/_assets/{zora-sepolia-CIIRKC4C.js → zora-sepolia-BcoXfUYO.js} +2 -2
- package/_assets/{zoraTestnet-C2UcAlsp.js → zoraTestnet-CdLP96ll.js} +2 -2
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/ItemDetail-DtAVOGXV.js +0 -3490
- package/_assets/collectionPage.styles-DZFdmcAO.js +0 -40
- package/_assets/index-CpeNCh1-.js +0 -2
- package/_assets/index-LDPyoGDo.js +0 -4090
- package/_assets/index-l2QjlKjX.css +0 -1
- package/_assets/items-empty-Bs5yNmsR.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-
|
|
2
|
-
import{Y as
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-BpCu9mM3.js","_assets/react-9aRvCYbm.js","_assets/index-sQFfvNZX.js","_assets/dcl-schemas-BBgGLe8k.js","_assets/sentry-CJqFbG11.js","_assets/ethers-BKRWnjV9.js","_assets/intl-AKLEHPeO.js","_assets/index-CKGO8NWe.css","_assets/sales-empty-DqC1PsNb.js","_assets/buy-DymchWn5.js","_assets/authorizations-CJLGounG.js","_assets/sendMetaTransaction-BO1lGCgN.js","_assets/ManaPricingBanner.styles-C4fJtJh-.js","_assets/Faq-CI78-N0I.js","_assets/field.styles-DKQS3oWo.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{Y as we,bP as Ie,o as U,l as A,bQ as Ae,t as o,s as l,m as Ee,n as Le,b as r,N as Ne,I as T,bR as se,bS as ne,bT as $e,_ as Pe,P as Te,q as E,aq as K,bU as Se,r as Ce,aK as B,E as Fe,bV as De,w as N,bW as Me,bX as Q}from"./index-sQFfvNZX.js";import{r as g,u as He,j as t,e as qe,L as Re}from"./react-9aRvCYbm.js";import{u as Oe,s as _e}from"./sales-empty-DqC1PsNb.js";import{L as ze}from"./LoadMore-BXkJAed-.js";import{u as $}from"./useInfiniteGrid-DvgTy6W_.js";import{m as de}from"./mana-matic-CEqvSwrJ.js";import{n as We}from"./name-glyph-aUugT8vq.js";import"./dcl-schemas-BBgGLe8k.js";import"./sentry-CJqFbG11.js";import"./ethers-BKRWnjV9.js";import"./intl-AKLEHPeO.js";import"./buy-DymchWn5.js";import"./authorizations-CJLGounG.js";import"./sendMetaTransaction-BO1lGCgN.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]="e56b3dff-0d56-419e-9acf-d19b58577252",e._sentryDebugIdIdentifier="sentry-dbid-e56b3dff-0d56-419e-9acf-d19b58577252")}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 Ye(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 Ze(e){return e.status!=="EXPIRED"||!!e.submittedTxHash}function Je(e){const n=Ke(e.purchases.filter(Ze)).map(c=>({kind:"purchase",id:`purchase:${c.id}`,createdAt:c.createdAt,order:c})),i=e.sales.map(c=>{const x=Ye(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.9.2/_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`
|
|
@@ -21,11 +21,11 @@ import{Y as ke,bO as Ie,o as U,l as A,bP as Ae,t as n,s as l,m as Ee,n as $e,b a
|
|
|
21
21
|
gap: 12px;
|
|
22
22
|
margin-bottom: 20px;
|
|
23
23
|
`,dt=l.h1`
|
|
24
|
-
font-family: ${
|
|
24
|
+
font-family: ${o.font.sans};
|
|
25
25
|
margin: 0;
|
|
26
|
-
color: ${
|
|
26
|
+
color: ${o.colors.softWhite};
|
|
27
27
|
`;l.span`
|
|
28
|
-
color: ${
|
|
28
|
+
color: ${o.colors.gray4};
|
|
29
29
|
font-size: 14px;
|
|
30
30
|
`;const ct=l.div`
|
|
31
31
|
display: flex;
|
|
@@ -38,9 +38,9 @@ import{Y as ke,bO as Ie,o as U,l as A,bP as Ae,t as n,s as l,m as Ee,n as $e,b a
|
|
|
38
38
|
are on, with no border in either state — the outline this used to carry made the selected chip read
|
|
39
39
|
as a control with a stuck focus ring on it. */
|
|
40
40
|
border: 0;
|
|
41
|
-
background: ${
|
|
42
|
-
color: ${
|
|
43
|
-
font-family: ${
|
|
41
|
+
background: ${o.colors.glass};
|
|
42
|
+
color: ${o.colors.white};
|
|
43
|
+
font-family: ${o.font.sans};
|
|
44
44
|
font-size: 13px;
|
|
45
45
|
font-weight: 600;
|
|
46
46
|
line-height: 24px;
|
|
@@ -52,29 +52,29 @@ import{Y as ke,bO as Ie,o as U,l as A,bP as Ae,t as n,s as l,m as Ee,n as $e,b a
|
|
|
52
52
|
justify-content: center;
|
|
53
53
|
padding: 0 16px;
|
|
54
54
|
min-height: 40px;
|
|
55
|
-
border-radius: ${
|
|
55
|
+
border-radius: ${o.radius.pill};
|
|
56
56
|
cursor: pointer;
|
|
57
57
|
transition:
|
|
58
58
|
background 0.15s,
|
|
59
59
|
color 0.15s;
|
|
60
60
|
|
|
61
61
|
&:hover {
|
|
62
|
-
background: ${
|
|
62
|
+
background: ${o.colors.glassHover};
|
|
63
63
|
}
|
|
64
64
|
/* Inset, so a keyboard ring never reads as part of the pill's own shape the way an offset one did. */
|
|
65
65
|
&:focus-visible {
|
|
66
|
-
outline: 2px solid ${
|
|
66
|
+
outline: 2px solid ${o.colors.white};
|
|
67
67
|
outline-offset: -2px;
|
|
68
68
|
}
|
|
69
69
|
&[data-active='true'] {
|
|
70
|
-
background: ${
|
|
71
|
-
color: ${
|
|
70
|
+
background: ${o.colors.softWhite};
|
|
71
|
+
color: ${o.colors.text};
|
|
72
72
|
}
|
|
73
73
|
&[data-active='true']:hover {
|
|
74
|
-
background: ${
|
|
74
|
+
background: ${o.colors.white};
|
|
75
75
|
}
|
|
76
76
|
&[data-active='true']:focus-visible {
|
|
77
|
-
outline-color: ${
|
|
77
|
+
outline-color: ${o.colors.text};
|
|
78
78
|
}
|
|
79
79
|
`,lt=l(le)`
|
|
80
80
|
position: relative;
|
|
@@ -93,14 +93,14 @@ import{Y as ke,bO as Ie,o as U,l as A,bP as Ae,t as n,s as l,m as Ee,n as $e,b a
|
|
|
93
93
|
min-width: 20px;
|
|
94
94
|
height: 20px;
|
|
95
95
|
padding: 0 6px;
|
|
96
|
-
border-radius: ${
|
|
97
|
-
background: ${
|
|
96
|
+
border-radius: ${o.radius.pill};
|
|
97
|
+
background: ${o.colors.dclRed};
|
|
98
98
|
/* No ring: the red separates itself from both surfaces the disc straddles (the chip and the page), and
|
|
99
99
|
the design draws the circle bare. */
|
|
100
100
|
font-weight: 600;
|
|
101
101
|
font-size: 12px;
|
|
102
102
|
line-height: 1.6;
|
|
103
|
-
color: ${
|
|
103
|
+
color: ${o.colors.white};
|
|
104
104
|
`,ht=l.div`
|
|
105
105
|
min-height: 60vh;
|
|
106
106
|
`,ae=l.div`
|
|
@@ -108,8 +108,8 @@ import{Y as ke,bO as Ie,o as U,l as A,bP as Ae,t as n,s as l,m as Ee,n as $e,b a
|
|
|
108
108
|
flex-direction: column;
|
|
109
109
|
gap: 16px;
|
|
110
110
|
`,S=l.div`
|
|
111
|
-
background: ${
|
|
112
|
-
border: 1px solid ${
|
|
111
|
+
background: ${o.colors.white};
|
|
112
|
+
border: 1px solid ${o.colors.line};
|
|
113
113
|
border-radius: 16px;
|
|
114
114
|
overflow: hidden;
|
|
115
115
|
`,C=l.div`
|
|
@@ -118,10 +118,10 @@ import{Y as ke,bO as Ie,o as U,l as A,bP as Ae,t as n,s as l,m as Ee,n as $e,b a
|
|
|
118
118
|
justify-content: space-between;
|
|
119
119
|
gap: 12px;
|
|
120
120
|
padding: 14px 18px;
|
|
121
|
-
background: ${
|
|
122
|
-
border-bottom: 1px solid ${
|
|
121
|
+
background: ${o.colors.softWhite};
|
|
122
|
+
border-bottom: 1px solid ${o.colors.line};
|
|
123
123
|
|
|
124
|
-
${
|
|
124
|
+
${o.media.maxWidth("mobile")} {
|
|
125
125
|
flex-wrap: wrap;
|
|
126
126
|
}
|
|
127
127
|
`,F=l.div`
|
|
@@ -131,10 +131,10 @@ import{Y as ke,bO as Ie,o as U,l as A,bP as Ae,t as n,s as l,m as Ee,n as $e,b a
|
|
|
131
131
|
min-width: 0;
|
|
132
132
|
`,D=l.span`
|
|
133
133
|
font-weight: 700;
|
|
134
|
-
color: ${
|
|
134
|
+
color: ${o.colors.text};
|
|
135
135
|
`,M=l.span`
|
|
136
136
|
font-size: 13px;
|
|
137
|
-
color: ${
|
|
137
|
+
color: ${o.colors.muted};
|
|
138
138
|
`,H=l.div`
|
|
139
139
|
display: flex;
|
|
140
140
|
align-items: center;
|
|
@@ -147,7 +147,7 @@ import{Y as ke,bO as Ie,o as U,l as A,bP as Ae,t as n,s as l,m as Ee,n as $e,b a
|
|
|
147
147
|
width: 52px;
|
|
148
148
|
height: 52px;
|
|
149
149
|
border-radius: 10px;
|
|
150
|
-
background: ${
|
|
150
|
+
background: ${o.colors.media};
|
|
151
151
|
display: flex;
|
|
152
152
|
align-items: center;
|
|
153
153
|
justify-content: center;
|
|
@@ -163,12 +163,12 @@ import{Y as ke,bO as Ie,o as U,l as A,bP as Ae,t as n,s as l,m as Ee,n as $e,b a
|
|
|
163
163
|
text-transform: uppercase;
|
|
164
164
|
letter-spacing: 0.03em;
|
|
165
165
|
padding: 4px 10px;
|
|
166
|
-
border-radius: ${
|
|
166
|
+
border-radius: ${o.radius.pill};
|
|
167
167
|
white-space: nowrap;
|
|
168
168
|
|
|
169
169
|
&[data-status='SETTLED'] {
|
|
170
170
|
background: rgba(30, 166, 114, 0.14);
|
|
171
|
-
color: ${
|
|
171
|
+
color: ${o.colors.okStrong};
|
|
172
172
|
}
|
|
173
173
|
&[data-status='PENDING'] {
|
|
174
174
|
background: rgba(245, 166, 35, 0.16);
|
|
@@ -176,7 +176,7 @@ import{Y as ke,bO as Ie,o as U,l as A,bP as Ae,t as n,s as l,m as Ee,n as $e,b a
|
|
|
176
176
|
}
|
|
177
177
|
&[data-status='SOLD'] {
|
|
178
178
|
background: rgba(103, 58, 183, 0.14);
|
|
179
|
-
color: ${
|
|
179
|
+
color: ${o.colors.accent};
|
|
180
180
|
}
|
|
181
181
|
&[data-status='FAILED'] {
|
|
182
182
|
background: rgba(214, 61, 61, 0.14);
|
|
@@ -185,20 +185,20 @@ import{Y as ke,bO as Ie,o as U,l as A,bP as Ae,t as n,s as l,m as Ee,n as $e,b a
|
|
|
185
185
|
/* Nobody paid and nobody is owed anything — deliberately the quietest of the four. Reusing PENDING's
|
|
186
186
|
amber here is what made an abandoned checkout look like money on its way. */
|
|
187
187
|
&[data-status='UNFINISHED'] {
|
|
188
|
-
background: ${
|
|
189
|
-
color: ${
|
|
188
|
+
background: ${o.colors.line};
|
|
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;
|
|
195
195
|
letter-spacing: 0.03em;
|
|
196
196
|
padding: 4px 10px;
|
|
197
|
-
border-radius: ${
|
|
197
|
+
border-radius: ${o.radius.pill};
|
|
198
198
|
white-space: nowrap;
|
|
199
|
-
border: 1px solid ${
|
|
199
|
+
border: 1px solid ${o.colors.accent};
|
|
200
200
|
background: transparent;
|
|
201
|
-
color: ${
|
|
201
|
+
color: ${o.colors.accent};
|
|
202
202
|
cursor: pointer;
|
|
203
203
|
transition: background 0.15s ease;
|
|
204
204
|
|
|
@@ -209,12 +209,12 @@ import{Y as ke,bO as Ie,o as U,l as A,bP as Ae,t as n,s as l,m as Ee,n as $e,b a
|
|
|
209
209
|
opacity: 0.6;
|
|
210
210
|
cursor: default;
|
|
211
211
|
}
|
|
212
|
-
`,
|
|
212
|
+
`,k=l.div`
|
|
213
213
|
display: flex;
|
|
214
214
|
align-items: center;
|
|
215
215
|
gap: 5px;
|
|
216
216
|
font-weight: 800;
|
|
217
|
-
color: ${
|
|
217
|
+
color: ${o.colors.text};
|
|
218
218
|
white-space: nowrap;
|
|
219
219
|
|
|
220
220
|
.ccy-mark {
|
|
@@ -224,13 +224,13 @@ import{Y as ke,bO as Ie,o as U,l as A,bP as Ae,t as n,s as l,m as Ee,n as $e,b a
|
|
|
224
224
|
|
|
225
225
|
// Money received (a sale) reads as income in the shop's success green.
|
|
226
226
|
&[data-kind='income'] {
|
|
227
|
-
color: ${
|
|
227
|
+
color: ${o.colors.okStrong};
|
|
228
228
|
}
|
|
229
229
|
`,ue=l.img`
|
|
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;
|
|
@@ -240,7 +240,7 @@ import{Y as ke,bO as Ie,o as U,l as A,bP as Ae,t as n,s as l,m as Ee,n as $e,b a
|
|
|
240
240
|
padding: 6px 8px;
|
|
241
241
|
border-radius: 6px;
|
|
242
242
|
background: #16141a;
|
|
243
|
-
color: ${
|
|
243
|
+
color: ${o.colors.white};
|
|
244
244
|
font-size: 12px;
|
|
245
245
|
font-weight: 600;
|
|
246
246
|
line-height: 1;
|
|
@@ -254,11 +254,11 @@ import{Y as ke,bO as Ie,o as U,l as A,bP as Ae,t as n,s as l,m as Ee,n as $e,b a
|
|
|
254
254
|
padding: 12px 18px 0;
|
|
255
255
|
font-size: 13px;
|
|
256
256
|
line-height: 1.45;
|
|
257
|
-
color: ${
|
|
258
|
-
`,
|
|
257
|
+
color: ${o.colors.muted};
|
|
258
|
+
`,V=l.div`
|
|
259
259
|
display: flex;
|
|
260
260
|
flex-direction: column;
|
|
261
|
-
|
|
261
|
+
`,L=l.div`
|
|
262
262
|
display: grid;
|
|
263
263
|
grid-template-columns: 52px 1fr auto;
|
|
264
264
|
align-items: center;
|
|
@@ -268,29 +268,29 @@ import{Y as ke,bO as Ie,o as U,l as A,bP as Ae,t as n,s as l,m as Ee,n as $e,b a
|
|
|
268
268
|
color: inherit;
|
|
269
269
|
|
|
270
270
|
& + & {
|
|
271
|
-
border-top: 1px solid ${
|
|
271
|
+
border-top: 1px solid ${o.colors.line};
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
&[data-link='true'] {
|
|
275
275
|
transition: background 0.15s;
|
|
276
276
|
}
|
|
277
277
|
&[data-link='true']:hover {
|
|
278
|
-
background: ${
|
|
278
|
+
background: ${o.colors.media};
|
|
279
279
|
}
|
|
280
280
|
&[data-link='true']:focus-visible {
|
|
281
|
-
outline: 2px solid ${
|
|
281
|
+
outline: 2px solid ${o.colors.accent};
|
|
282
282
|
outline-offset: -2px;
|
|
283
283
|
}
|
|
284
284
|
`,R=l.div`
|
|
285
285
|
width: 52px;
|
|
286
286
|
height: 52px;
|
|
287
287
|
border-radius: 10px;
|
|
288
|
-
background: ${
|
|
288
|
+
background: ${o.colors.media};
|
|
289
289
|
overflow: hidden;
|
|
290
290
|
display: flex;
|
|
291
291
|
align-items: center;
|
|
292
292
|
justify-content: center;
|
|
293
|
-
color: ${
|
|
293
|
+
color: ${o.colors.muted2};
|
|
294
294
|
|
|
295
295
|
img {
|
|
296
296
|
width: 100%;
|
|
@@ -301,9 +301,9 @@ import{Y as ke,bO as Ie,o as U,l as A,bP as Ae,t as n,s as l,m as Ee,n as $e,b a
|
|
|
301
301
|
width: 52px;
|
|
302
302
|
height: 52px;
|
|
303
303
|
border-radius: 10px;
|
|
304
|
-
background: linear-gradient(100deg,
|
|
304
|
+
background: linear-gradient(100deg, var(--skeleton-lo) 30%, var(--skeleton-hi) 50%, var(--skeleton-lo) 70%);
|
|
305
305
|
background-size: 200% 100%;
|
|
306
|
-
animation: ${
|
|
306
|
+
animation: ${X} 1.3s infinite linear;
|
|
307
307
|
|
|
308
308
|
@media (prefers-reduced-motion: reduce) {
|
|
309
309
|
animation: none;
|
|
@@ -324,22 +324,22 @@ import{Y as ke,bO as Ie,o as U,l as A,bP as Ae,t as n,s as l,m as Ee,n as $e,b a
|
|
|
324
324
|
max-width: 60%;
|
|
325
325
|
height: 12px;
|
|
326
326
|
border-radius: 6px;
|
|
327
|
-
background: linear-gradient(100deg,
|
|
327
|
+
background: linear-gradient(100deg, var(--skeleton-lo) 30%, var(--skeleton-hi) 50%, var(--skeleton-lo) 70%);
|
|
328
328
|
background-size: 200% 100%;
|
|
329
|
-
animation: ${
|
|
329
|
+
animation: ${X} 1.3s infinite linear;
|
|
330
330
|
|
|
331
331
|
@media (prefers-reduced-motion: reduce) {
|
|
332
332
|
animation: none;
|
|
333
333
|
}
|
|
334
334
|
`,z=l.span`
|
|
335
335
|
font-size: 13px;
|
|
336
|
-
color: ${
|
|
336
|
+
color: ${o.colors.muted};
|
|
337
337
|
`,he=l.div`
|
|
338
338
|
display: flex;
|
|
339
339
|
align-items: center;
|
|
340
340
|
gap: 4px;
|
|
341
341
|
font-weight: 700;
|
|
342
|
-
color: ${
|
|
342
|
+
color: ${o.colors.text};
|
|
343
343
|
white-space: nowrap;
|
|
344
344
|
|
|
345
345
|
.ccy-mark {
|
|
@@ -350,18 +350,18 @@ import{Y as ke,bO as Ie,o as U,l as A,bP as Ae,t as n,s as l,m as Ee,n as $e,b a
|
|
|
350
350
|
height: 132px;
|
|
351
351
|
border-radius: 16px;
|
|
352
352
|
border: 1px solid transparent;
|
|
353
|
-
background: linear-gradient(100deg,
|
|
353
|
+
background: linear-gradient(100deg, var(--skeleton-lo) 30%, var(--skeleton-hi) 50%, var(--skeleton-lo) 70%);
|
|
354
354
|
background-size: 200% 100%;
|
|
355
|
-
animation: ${
|
|
355
|
+
animation: ${X} 1.3s infinite linear;
|
|
356
356
|
|
|
357
357
|
@media (prefers-reduced-motion: reduce) {
|
|
358
358
|
animation: none;
|
|
359
359
|
}
|
|
360
|
-
`,
|
|
360
|
+
`,bt=l.div`
|
|
361
361
|
display: flex;
|
|
362
362
|
flex-direction: column;
|
|
363
363
|
align-items: center;
|
|
364
|
-
`,
|
|
364
|
+
`,yt=l.div`
|
|
365
365
|
display: flex;
|
|
366
366
|
flex-direction: column;
|
|
367
367
|
align-items: center;
|
|
@@ -369,21 +369,21 @@ import{Y as ke,bO as Ie,o as U,l as A,bP as Ae,t as n,s as l,m as Ee,n as $e,b a
|
|
|
369
369
|
text-align: center;
|
|
370
370
|
padding: 90px 20px;
|
|
371
371
|
min-height: 50vh;
|
|
372
|
-
color: ${
|
|
372
|
+
color: ${o.colors.softWhite};
|
|
373
373
|
`,vt=l.p`
|
|
374
374
|
font-size: 22px;
|
|
375
375
|
font-weight: 700;
|
|
376
376
|
margin: 6px 0 0;
|
|
377
377
|
`,jt=l.p`
|
|
378
378
|
margin: 0;
|
|
379
|
-
color: ${
|
|
380
|
-
`,
|
|
381
|
-
background: ${
|
|
379
|
+
color: ${o.colors.softWhite};
|
|
380
|
+
`,kt=l(R)`
|
|
381
|
+
background: ${o.gradients.amethyst};
|
|
382
382
|
|
|
383
383
|
img {
|
|
384
384
|
width: 26px;
|
|
385
385
|
height: 26px;
|
|
386
386
|
object-fit: contain;
|
|
387
387
|
}
|
|
388
|
-
`,J=$.withComponent(Re),kt=g.lazy(()=>Pe(()=>import("./index-Dbp8PJtv.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),[a,i]=g.useState(null),d=()=>{var h;const r=(h=s.current)==null?void 0:h.getBoundingClientRect();r&&i({top:r.bottom+8,left:r.left+r.width/2})};return t.jsxs(xt,{ref:s,tabIndex:0,onMouseEnter:d,onMouseLeave:()=>i(null),onFocus:d,onBlur:()=>i(null),children:[e,a?qe.createPortal(t.jsx(gt,{style:{top:a.top,left:a.left},role:"tooltip",children:o("activity.polygonMana")}),document.body):null]})}function Et({item:e}){const s=!!e.contractAddress&&!!e.itemId,a=!!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:a,staleTime:5*6e4}),r=a&&d,h=(i==null?void 0:i.name)??o("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:[r?t.jsx(Y,{}):t.jsx(R,{children:c?t.jsx("img",{src:c,alt:h}):t.jsx(T,{name:"cart",size:20})}),t.jsxs(O,{children:[r?t.jsx(Z,{}):t.jsx(_,{title:h,children:h}),e.quantity>1?t.jsx(z,{children:o("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(J,{to:m,"data-link":"true",children:f}):t.jsx($,{children:f})}function $t({item:e}){const s=`@${e.registeredName}`;return t.jsxs($,{"data-testid":"activity-name-line",children:[t.jsx(wt,{children:t.jsx("img",{src:We,alt:""})}),t.jsxs(O,{children:[t.jsx(_,{title:s,children:s}),t.jsx(z,{children:o("activity.nameRegistration")})]}),t.jsxs(he,{children:[t.jsx(E,{className:"ccy-mark"})," ",e.credits]})]})}function Lt({order:e}){const s=Xe(e.lines),a=s.reduce((r,h)=>r+h.quantity,0),i=Qe(e.status),d=i==="SETTLED"?o("activity.completed"):i==="FAILED"?o("activity.failed"):o("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:[o("activity.purchaseLabel")," · ",o("activity.itemCount",{count:a})]})]}),t.jsxs(H,{children:[t.jsx(q,{"data-status":i,children:d}),t.jsxs(w,{children:[t.jsx(E,{className:"ccy-mark"})," ",t.jsx(K,{credits:e.totalCredits})]})]})]}),i==="FAILED"?t.jsx(ft,{children:o("activity.purchaseFailedNote")}):null,t.jsx(X,{children:s.map(r=>r.registeredName?t.jsx($t,{item:r},r.key):t.jsx(Et,{item:r},r.key))})]})}function Nt({sale:e}){const{data:s,isLoading:a}=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)??o("activity.itemFallback"),d=(s==null?void 0:s.thumbnail)??"",r=B({contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId})??void 0,h=t.jsxs(t.Fragment,{children:[a?t.jsx(Y,{}):t.jsx(R,{children:d?t.jsx("img",{src:d,alt:i}):t.jsx(T,{name:"offer",size:20})}),t.jsxs(O,{children:[a?t.jsx(Z,{}):t.jsx(_,{title:i,children:i}),t.jsx(z,{children:o("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:o("activity.paidWithMana")})]}),t.jsxs(H,{children:[t.jsx(q,{"data-status":"SETTLED",children:o("activity.completed")}),t.jsxs(w,{children:[me(e.manaWei)," ",t.jsx(xe,{children:t.jsx(ue,{src:de,alt:"MANA"})})]})]})]}),t.jsx(X,{children:r?t.jsx(J,{to:r,"data-link":"true",children:h}):t.jsx($,{children:h})})]})}function Pt({sale:e,payout:s}){const{data:a,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=(a==null?void 0:a.name)??o("activity.itemFallback"),r=(a==null?void 0:a.thumbnail)??"",h=B({contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId})??void 0,c=t.jsxs(t.Fragment,{children:[i?t.jsx(Y,{}):t.jsx(R,{children:r?t.jsx("img",{src:r,alt:d}):t.jsx(T,{name:"offer",size:20})}),t.jsxs(O,{children:[i?t.jsx(Z,{}):t.jsx(_,{title:d,children:d}),t.jsxs(z,{children:[o("activity.soldTo",{account:pe(e.counterparty)}),s.kind==="pending"?` · ${o("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:o("activity.saleLabel")})]}),t.jsxs(H,{children:[t.jsx(q,{"data-status":s.kind==="pending"?"PENDING":"SOLD",children:s.kind==="pending"?o("activity.payoutPending"):o("activity.sold")}),s.kind==="direct"?t.jsxs(w,{"data-kind":"income",children:["+",me(e.manaWei)," ",t.jsx(xe,{children:t.jsx(ue,{src:de,alt:"MANA"})})]}):s.credits!==null?t.jsxs(w,{"data-kind":"income",children:[t.jsx(E,{className:"ccy-mark"})," +",Fe(s.credits)]}):t.jsx(w,{"data-kind":"income",children:o("activity.payoutCredited")})]})]}),t.jsx(X,{children:h?t.jsx(J,{to:h,"data-link":"true",children:c}):t.jsx($,{children:c})})]})}function Tt({order:e}){const s=`$${(e.usdCents/100).toFixed(2)}`,a=Se(e.status),i=a==="SETTLED"?o("activity.completed"):a==="FAILED"?o("activity.failed"):a==="UNFINISHED"?o("activity.unfinished"):o("activity.processing"),d=U(p=>p.session),r=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}L.error(o("activity.resumeUnavailable"))}else p.kind==="expired"?(L.info(o("activity.resumeExpired")),r.invalidateQueries({queryKey:["credit-orders"]})):p.kind==="paid"?(L.success(o("activity.resumePaid")),r.invalidateQueries({queryKey:["credit-orders"]})):L.error(o("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:[o("activity.creditPurchaseLabel")," · ",o("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?o("activity.resuming"):o("activity.resume")}):null,t.jsx(q,{"data-status":a,children:i}),t.jsxs(w,{"data-kind":a==="UNFINISHED"?void 0:"income",children:[a==="UNFINISHED"?"":"+",t.jsx(E,{className:"ccy-mark"})," ",t.jsx(K,{credits:e.credits})]})]})]})})}function St({filter:e}){const s={all:o("activity.emptyAllBody"),purchases:o("activity.emptyPurchasesBody"),sales:o("activity.emptySalesBody")}[e];return t.jsx(yt,{children:t.jsx(Te,{testId:`activity-empty-${e}`,icon:_e,title:o("activity.emptyTitle"),body:s,cta:{label:o("assets.empty.cta"),to:"/items"}})})}function Bt(){const{session:e}=U(),[s,a]=g.useState("all"),[i,d]=He(),r=i.get(W)===oe||i.get(G)===At;$e({title:r?o("seo.import.title"):o("nav.activity"),noindex:!0});const{count:h}=Oe(),{count:c}=nt(),f=h!==void 0&&c!==void 0&&(h>0||c>0||r),p=!!e&&!r&&s!=="sales",x=!!e&&!r&&s!=="purchases",y=N(["purchases",e==null?void 0:e.address],u=>Ne(e.address,e.identity,{first:P,skip:u}),{enabled:p}),b=N(["sales",e==null?void 0:e.address],u=>se(e.address,{role:"seller",first:P,skip:u}),{enabled:x}),v=N(["credit-orders",e==null?void 0:e.address],u=>ne(e.address,e.identity,{first:P,skip:u}),{enabled:p}),j=N(["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}=Le(x);if(!e)return t.jsxs(bt,{children:[t.jsx(T,{name:"clock",size:40,color:n.colors.muted2}),t.jsx(vt,{children:o("activity.signInTitle")}),t.jsx(jt,{children:o("activity.signInBody")})]});const te=et(Je({purchases:p?y.items:[],sales:x?b.items:[],creditOrders:p?v.items:[],manaPurchases:p?j.items:[],rate:fe}),s),ye=p&&(y.isLoading||v.isLoading||j.isLoading)||x&&b.isLoading,ie=p&&(y.isFetchingNextPage||v.isFetchingNextPage||j.isFetchingNextPage)||x&&b.isFetchingNextPage,be=p&&(y.hasNextPage||v.hasNextPage||j.hasNextPage)||x&&b.hasNextPage;function ve(){p&&y.hasNextPage&&y.fetchNextPage(),p&&v.hasNextPage&&v.fetchNextPage(),p&&j.hasNextPage&&j.fetchNextPage(),x&&b.hasNextPage&&b.fetchNextPage()}function je(u){if(a(u),!r)return;const k=new URLSearchParams(i);k.delete(W),k.delete(G),d(k,{replace:!0})}function we(){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:o("nav.activity")})}),t.jsxs(ct,{role:"tablist","aria-label":o("nav.activity"),children:[It.map(u=>t.jsx(le,{type:"button",role:"tab","aria-selected":!r&&s===u,"data-active":!r&&s===u,"data-testid":`activity-filter-${u}`,onClick:()=>je(u),children:o(`activity.filter.${u}`)},u)),f?t.jsxs(lt,{type:"button",role:"tab","aria-selected":r,"data-active":r,"data-testid":"activity-filter-migrate","aria-label":h?o("activity.migrate.chipAria",{count:h}):void 0,onClick:we,children:[o("activity.migrate.chip"),h?t.jsx(ut,{"data-testid":"activity-migrate-count","aria-hidden":!0,children:h}):null]}):null]}),r?t.jsx(g.Suspense,{fallback:t.jsx(ht,{"aria-busy":"true"}),children:t.jsx(kt,{})}):ye?t.jsx(ae,{children:Array.from({length:5}).map((u,k)=>t.jsx(re,{},k))}):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(Lt,{order:u.order},u.id):u.kind==="credit"?t.jsx(Tt,{order:u.order},u.id):u.kind==="mana-purchase"?t.jsx(Nt,{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-
|
|
388
|
+
`,J=L.withComponent(Re),wt=g.lazy(()=>Pe(()=>import("./index-BpCu9mM3.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(Y,{}):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(Z,{}):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(J,{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(Y,{}):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(Z,{}):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(J,{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(Y,{}):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(Z,{}):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(J,{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(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",m=!!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: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(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(Je({purchases:p?b.items:[],sales:m?y.items:[],creditOrders:p?v.items:[],manaPurchases:p?j.items:[],rate:fe}),s),be=p&&(b.isLoading||v.isLoading||j.isLoading)||m&&y.isLoading,ie=p&&(b.isFetchingNextPage||v.isFetchingNextPage||j.isFetchingNextPage)||m&&y.isFetchingNextPage,ye=p&&(b.hasNextPage||v.hasNextPage||j.hasNextPage)||m&&y.hasNextPage;function ve(){p&&b.hasNextPage&&b.fetchNextPage(),p&&v.hasNextPage&&v.fetchNextPage(),p&&j.hasNextPage&&j.fetchNextPage(),m&&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-Dt6DfbvQ.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-9aRvCYbm.js";import{s as f}from"./index-sQFfvNZX.js";import"./dcl-schemas-BBgGLe8k.js";import"./sentry-CJqFbG11.js";import"./ethers-BKRWnjV9.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]="df23a38e-5a49-4369-b63c-075577242955",e._sentryDebugIdIdentifier="sentry-dbid-df23a38e-5a49-4369-b63c-075577242955")}catch{}})();const D="https://cdn.decentraland.org/@dcl/shop/1.9.2/_assets/custom-welcome-background-BxlFQma9.webp",P="https://cdn.decentraland.org/@dcl/shop/1.9.2/_assets/DCL_LogoPattern-BryBPc3d.png",L=`
|
|
2
2
|
attribute vec2 a_position;
|
|
3
3
|
varying vec2 v_uv;
|
|
4
4
|
void main() {
|
|
@@ -77,11 +77,11 @@ void main() {
|
|
|
77
77
|
|
|
78
78
|
gl_FragColor = result;
|
|
79
79
|
}
|
|
80
|
-
`;function p(e,a,n){const r=e.createShader(a);return r?(e.shaderSource(r,n),e.compileShader(r),e.getShaderParameter(r,e.COMPILE_STATUS)?r:(console.error("Shader compile error:",e.getShaderInfoLog(r)),e.deleteShader(r),null)):null}function B(e,a,n){const r=e.createProgram();return r?(e.attachShader(r,a),e.attachShader(r,n),e.linkProgram(r),e.getProgramParameter(r,e.LINK_STATUS)?r:(console.error("Program link error:",e.getProgramInfoLog(r)),e.deleteProgram(r),null)):null}function F(e,a,n){const r=e.createTexture();if(!r)return null;e.bindTexture(e.TEXTURE_2D,r),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,new Uint8Array([128,128,128,255]));const o=new Image;return o.crossOrigin="anonymous",o.onload=()=>{n!=null&&n()||(e.bindTexture(e.TEXTURE_2D,r),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!0),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,o),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.generateMipmap(e.TEXTURE_2D))},o.src=a,r}const C=
|
|
80
|
+
`;function p(e,a,n){const r=e.createShader(a);return r?(e.shaderSource(r,n),e.compileShader(r),e.getShaderParameter(r,e.COMPILE_STATUS)?r:(console.error("Shader compile error:",e.getShaderInfoLog(r)),e.deleteShader(r),null)):null}function B(e,a,n){const r=e.createProgram();return r?(e.attachShader(r,a),e.attachShader(r,n),e.linkProgram(r),e.getProgramParameter(r,e.LINK_STATUS)?r:(console.error("Program link error:",e.getProgramInfoLog(r)),e.deleteProgram(r),null)):null}function F(e,a,n){const r=e.createTexture();if(!r)return null;e.bindTexture(e.TEXTURE_2D,r),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,new Uint8Array([128,128,128,255]));const o=new Image;return o.crossOrigin="anonymous",o.onload=()=>{n!=null&&n()||(e.bindTexture(e.TEXTURE_2D,r),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!0),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,o),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.generateMipmap(e.TEXTURE_2D))},o.src=a,r}const C=f.div`
|
|
81
81
|
position: absolute;
|
|
82
82
|
inset: 0;
|
|
83
83
|
overflow: hidden;
|
|
84
|
-
`,k=
|
|
84
|
+
`,k=f.div`
|
|
85
85
|
position: absolute;
|
|
86
86
|
inset: 0;
|
|
87
87
|
width: 100%;
|
|
@@ -89,10 +89,10 @@ void main() {
|
|
|
89
89
|
background-size: cover;
|
|
90
90
|
background-position: center;
|
|
91
91
|
background-repeat: no-repeat;
|
|
92
|
-
`,V=
|
|
92
|
+
`,V=f.canvas`
|
|
93
93
|
position: absolute;
|
|
94
94
|
inset: 0;
|
|
95
95
|
width: 100%;
|
|
96
96
|
height: 100%;
|
|
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
|
|
98
|
-
//# sourceMappingURL=AnimatedBackground-
|
|
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-D9fqKZZL.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as u,b as He,j as e,u as et}from"./react-
|
|
1
|
+
import{r as u,b as He,j as e,u as et}from"./react-9aRvCYbm.js";import{u as tt,s as nt}from"./search-empty-DCFe-ryo.js";import{u as st,t as Ie,R as it,j as ot,k as at,l as rt,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-CbyAhCls.js";import{c as V,X as gt,aP as bt,aQ as yt,aW as wt,a as jt,l as vt,cq as Ct,cr as $t,s as i,t,o as Oe,aE as kt,r as St,E as je,b as n,p as Et,I as E,q as O,cs as le,aC as Tt,af as oe,aM as Ne,aU as Rt,aT as _t,n as De,N as Ge,Y as qe,Z as It,at as Nt,P as Lt,S as Le,Q as X,b2 as zt,bN as At}from"./index-sQFfvNZX.js";import{L as Mt}from"./LoadMore-BXkJAed-.js";import{u as Wt}from"./useInfiniteGrid-DvgTy6W_.js";import{n as Pt,S as Bt}from"./categories-CXj1P-ln.js";import{E as Ft}from"./ErrorNotice-BW8aXw_7.js";import{d as Ut}from"./dcl-schemas-BBgGLe8k.js";import{s as Ht,G as Ot,w as Dt,S as Gt}from"./buy-gasless-_tY7hzCY.js";import{s as qt,j as Vt}from"./buy-DymchWn5.js";import{f as Qt}from"./errors-CqEjLz14.js";import{J as Zt,C as Kt,B as ve}from"./ethers-BKRWnjV9.js";import{n as Xt}from"./name-glyph-aUugT8vq.js";import{G as Jt}from"./grid.styles-C24oAL5O.js";import"./skeleton.styles-CDClgQZa.js";import"./sentry-CJqFbG11.js";import"./intl-AKLEHPeO.js";import"./authorizations-CJLGounG.js";import"./sendMetaTransaction-BO1lGCgN.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]="fc0dad68-9e2a-4af4-9dc9-ca89eee6cdf4",s._sentryDebugIdIdentifier="sentry-dbid-fc0dad68-9e2a-4af4-9dc9-ca89eee6cdf4")}catch{}})();function J(s){const o=s.source??"item",a=s.tradeId||`${s.contractAddress}-${s.tokenId??s.itemId??""}`;return`${o}:${a}`}const Q="100000000000000000000",Ve=2,ae=15,Yt=/^[a-zA-Z0-9]+$/;function ze(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>ae?{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,ae)}const tn=["function available(string _subdomain) view returns (bool)"],Ae={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)?Ae.mainnet:Ae.sepolia}async function sn(s,o={}){var m;const{rpc:a,address:d}=nn(),h=new Zt(a),f=new Kt(d,tn,h);console.info(`[names] availability check → DCLRegistrar(${d}).available("${s}") on ${a}`);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 an(s){return wt(Q,s)}async function rn(s,o,a={}){var m;const d=a.chainId??V.chainId,h=a.provider??"across",f=`${V.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(o)}&chainId=${d}&provider=${h}`,l=await jt(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 a=ve.from(s.availableAmount),h=ve.from(Q).sub(a);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:Q}}async function cn(s,o={}){const a=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(`${a}/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:a,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=an(p);console.info("[names] step 1/6 sized reservation",{usdCents:b,manaRate:p});const C=await rn(a,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(a,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}),ve.from(w.maxCreditedValue).lt(Q))throw new Error("Credit under-sized for the name price");h("awaiting-confirmation");const $=ln(w.credit,C);let j;try{j=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}j=await qt(f,$,d)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:j}),h("confirming"),await Dt(j),g="confirmed",console.info("[names] step 5/6 origin tx confirmed",{originTxHash:j}),l==="across"){h("registering");const x=await cn(j,s.acrossPoll);if(console.info("[names] step 6/6 across status",x),x.status==="pending")return{status:"pending",originTxHash:j};if(x.status==="filled"&&x.actionsSucceeded===null)return console.warn("[names] across filled without reporting actionsSucceeded — reporting pending",{originTxHash:j}),{status:"pending",originTxHash:j};if(x.status!=="filled"||x.actionsSucceeded!==!0)throw new Ce;return{status:"registered",originTxHash:j,destinationTxHash:x.destinationTxHash}}return{status:"pending",originTxHash:j}}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(a,[c]).catch(()=>{}),p instanceof ke||p instanceof Ce||p instanceof $e)throw p;const b=new Error(Qt(p,"Couldn't register the name. Please try again.",{sale:!0}));throw b.cause=p,b}}function hn(){const{data:s}=vt({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 a=1;a<=s.length;a++)o.push({text:s.slice(0,a),delay:pn});o[o.length-1]={text:s,delay:un};for(let a=s.length-1;a>=1;a--)o.push({text:s.slice(0,a),delay:fn});return o}function xn(s){return s.flatMap(mn)}function gn(s,o){const a=u.useMemo(()=>xn(s),[s]),[d,h]=u.useState(0);return u.useEffect(()=>{if(!o||a.length===0)return;const f=setTimeout(()=>h(l=>(l+1)%a.length),a[d%a.length].delay);return()=>clearTimeout(f)},[d,o,a]),!o||a.length===0?"":a[d%a.length].text}const bn="https://cdn.decentraland.org/@dcl/shop/1.9.2/_assets/name-verified-oGwQ3ntb.svg",yn="#34fee6",wn=i.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
inset: 0;
|
|
4
4
|
z-index: 10000;
|
|
@@ -458,7 +458,7 @@ import{r as u,b as He,j as e,u as et}from"./react-G9L2um0r.js";import{u as tt,s
|
|
|
458
458
|
color: ${t.colors.accent};
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
`;function Gn({name:s,priceCredits:o,onClose:a}){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),[$,j]=u.useState(!1),[x,k]=u.useState("preparing"),N=u.useRef(!1),T=p.trim().toLowerCase()===s.toLowerCase(),L=c==="completing",M=o!=null?je(o):"—",P=o==null,W=h==null?void 0:h.credits,B=o!=null&&W!=null?o-W:0,S=B>0,F=P?n("names.priceUnavailable"):S?n("names.insufficientCredits",{credits:je(B)}):null;u.useEffect(()=>{const y=G=>{G.key==="Escape"&&!L&&a()};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}},[L,a]);async function R(){if(!(!d||!T||P||S||N.current)){N.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:Ne(o??0),category:"name",is_smart:!1}],purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:o??null,value_usd:Ne(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")),j(D||G),g("error")}finally{N.current=!1}}}const _=c!=="success"&&c!=="pending",v=Et(d==null?void 0:d.providerType),z=v?2:1,A=v&&(x==="preparing"||x==="awaiting-confirmation"),I=A?1:z,re=A?n("names.confirming"):n("names.completing"),U=x==="registering"?n("names.processingRegistering"):null;return e.jsx(wn,{onClick:L?void 0:a,role:"presentation",children:e.jsxs(jn,{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:a,disabled:L,"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:a,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(Nn,{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||P||S,children:n("names.buyCta")})]})]}),c==="completing"&&e.jsxs(Ln,{children:[e.jsx(zn,{src:Tt,alt:"",width:61,height:61}),e.jsxs(An,{children:[e.jsx(Mn,{children:re}),e.jsxs(Pn,{children:[e.jsx(Bn,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(Fn,{"data-testid":"name-progress-count",children:`${I}/${z}`})]}),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:a,"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(Pe,{onClick:()=>{a(),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:a,"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(vn,{"data-testid":"name-success-tile",children:[e.jsx(Cn,{src:Xt,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(Pe,{onClick:()=>{a(),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.9.2-32490364182.commit-e2e4c6b/_assets/identity-icon-C8yAW_Gq.svg",Qn="https://cdn.decentraland.org/@dcl/shop/1.9.2-32490364182.commit-e2e4c6b/_assets/world-icon-6xQ-PmmW.svg",Zn="https://cdn.decentraland.org/@dcl/shop/1.9.2-32490364182.commit-e2e4c6b/_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",Xn=i.div`
|
|
461
|
+
`;function Gn({name:s,priceCredits:o,onClose:a}){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),[$,j]=u.useState(!1),[x,k]=u.useState("preparing"),N=u.useRef(!1),T=p.trim().toLowerCase()===s.toLowerCase(),L=c==="completing",M=o!=null?je(o):"—",P=o==null,W=h==null?void 0:h.credits,B=o!=null&&W!=null?o-W:0,S=B>0,F=P?n("names.priceUnavailable"):S?n("names.insufficientCredits",{credits:je(B)}):null;u.useEffect(()=>{const y=G=>{G.key==="Escape"&&!L&&a()};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}},[L,a]);async function R(){if(!(!d||!T||P||S||N.current)){N.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:Ne(o??0),category:"name",is_smart:!1}],purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:o??null,value_usd:Ne(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")),j(D||G),g("error")}finally{N.current=!1}}}const _=c!=="success"&&c!=="pending",v=Et(d==null?void 0:d.providerType),z=v?2:1,A=v&&(x==="preparing"||x==="awaiting-confirmation"),I=A?1:z,re=A?n("names.confirming"):n("names.completing"),U=x==="registering"?n("names.processingRegistering"):null;return e.jsx(wn,{onClick:L?void 0:a,role:"presentation",children:e.jsxs(jn,{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:a,disabled:L,"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:a,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(Nn,{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||P||S,children:n("names.buyCta")})]})]}),c==="completing"&&e.jsxs(Ln,{children:[e.jsx(zn,{src:Tt,alt:"",width:61,height:61}),e.jsxs(An,{children:[e.jsx(Mn,{children:re}),e.jsxs(Pn,{children:[e.jsx(Bn,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(Fn,{"data-testid":"name-progress-count",children:`${I}/${z}`})]}),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:a,"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(Pe,{onClick:()=>{a(),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:a,"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(vn,{"data-testid":"name-success-tile",children:[e.jsx(Cn,{src:Xt,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(Pe,{onClick:()=>{a(),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.9.2/_assets/identity-icon-C8yAW_Gq.svg",Qn="https://cdn.decentraland.org/@dcl/shop/1.9.2/_assets/world-icon-6xQ-PmmW.svg",Zn="https://cdn.decentraland.org/@dcl/shop/1.9.2/_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",Xn=i.div`
|
|
462
462
|
width: 100%;
|
|
463
463
|
min-width: 0;
|
|
464
464
|
`,Jn=i.nav`
|
|
@@ -935,4 +935,4 @@ import{r as u,b as He,j as e,u as et}from"./react-G9L2um0r.js";import{u as tt,s
|
|
|
935
935
|
color: ${t.colors.err};
|
|
936
936
|
}
|
|
937
937
|
`,Ue=48,Ns=["all","on_sale","not_for_sale"];function Ys(){const[s]=et(),o=He(),a=(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,$=Ns.includes(f.status)?f.status:"on_sale";st(`${w}:${m??""}`);const[j,x]=u.useState(!1);u.useEffect(()=>{if(!j)return;const r=K=>{K.key==="Escape"&&x(!1)};document.addEventListener("keydown",r);const H=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",r),document.body.style.overflow=H}},[j]);const k=$==="on_sale",N=g&&!Number.isNaN(Number(g))?Number(g):void 0,T=p&&!Number.isNaN(Number(p))?Number(p):void 0,L=It(),M=m?Bt[m]:void 0,P=(Ie.find(r=>r.key===C)??Ie[0]).server,W={category:w,rarities:c.length?c:void 0,wearableCategories:M,minPriceCredits:N,maxPriceCredits:T,search:a||void 0,sortBy:P,isSmart:b||void 0,onSale:!0,listingType:L?void 0:"primary"},B={category:w,rarities:c.length?c:void 0,wearableCategories:M,search:a||void 0,sortBy:P,isWearableSmart:b||void 0,isOnSale:$==="not_for_sale"?!1:void 0},{items:S,total:F,isLoading:R,isPlaceholderData:_,error:v,hasNextPage:z,isFetchingNextPage:A,isFetchNextPageError:I,fetchNextPage:re}=Wt(k?["shop-items",W]:["catalog-items",B],r=>k?zt({...W,first:Ue,skip:r}):At({...B,first:Ue,skip:r}),{enabled:w!=="names"}),U=F,{data:y,isError:D,isPending:G}=Ge(),Ke=r=>y&&r.manaWei?qe(r.manaWei,y):null,Xe=k&&G&&S.some(r=>r.source==="legacy"),Se=R||_||Xe,Je=R?15:Math.max(S.length,1),Ee=u.useRef(null);u.useEffect(()=>{R||_||!a||Ee.current===a||(Ee.current=a,oe("Shop Searched",{query:a,result_count:U}))},[a,R,_,U]);const Z=u.useRef("__init__");u.useEffect(()=>{if(R||_)return;const r=JSON.stringify({category:w,subCategory:m,rarities:c,min:N,max:T,sort:C,status:$,smart:b});if(Z.current==="__init__"||Z.current===r){Z.current=r;return}Z.current=r,oe("Shop Applied Filter",{filters:{category:w,sub_category:m,rarities:c,min_price_credits:N??null,max_price_credits:T??null,status:$,smart:b,sort:C},result_count:U})},[w,m,c,N,T,C,$,b,R,_,U]);function Te(r){l({category:r,subCategory:null})}function Re(r){l({status:r})}function _e(r){l({rarities:c.includes(r)?c.filter(H=>H!==r):[...c,r]})}function Ye(){l(h)}const q=[];(N!=null||T!=null)&&q.push({key:"price",label:n("filter.price"),onRemove:()=>{l({priceMin:"",priceMax:""})}});for(const r of it)c.includes(r)&&q.push({key:`rarity-${r}`,label:Nt(r),onRemove:()=>_e(r)});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:[j?e.jsx(at,{onClick:()=>x(!1),"aria-hidden":!0}):null,e.jsxs(rt,{"data-open":j||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:r=>l({subCategory:r}),priceMin:g,priceMax:p,onPriceMin:r=>l({priceMin:r}),onPriceMax:r=>l({priceMax:r}),rarities:c,onToggleRarity:_e,status:$,onStatus:Re,smart:b,onSmart:r=>l({smart:r})})}),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:r=>l({sort:r}),total:F,loading:R||_,query:a,onOpenFilters:()=>x(!0),chips:q,onClearChips:Ye}),D&&k&&S.some(r=>r.source==="legacy")?e.jsx(Is,{"data-variant":"warn",children:n("assets.marketUnavailable")}):null,v?e.jsx(Ft,{message:n("assets.loadError"),testId:"browse-error"}):null,!Se&&S.length===0&&!v?e.jsx(Lt,{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(Jt,{"data-testid":"grid",children:Se?e.jsx(Le,{count:Je}):e.jsxs(e.Fragment,{children:[S.map(r=>{if(!k)return e.jsx(X,{item:r,mode:"view"},J(r));const H=r;if(H.source!=="legacy")return e.jsx(X,{item:r},J(r));const K=Ke(H);return K==null?e.jsx(X,{item:r,mode:"view"},J(r)):e.jsx(X,{item:{...H,priceCredits:K}},J(r))}),A?e.jsx(Le,{count:6}):null]})}),e.jsx(Mt,{hasNextPage:z,isFetching:A,isError:I,onLoadMore:()=>void re()})]})]})})]})}export{Ys as Assets};
|
|
938
|
-
//# sourceMappingURL=Assets-
|
|
938
|
+
//# sourceMappingURL=Assets-Cpt6sCyJ.js.map
|