@dcl/shop 1.6.4-31480376613.commit-0bb9931 → 1.6.4-31506645385.commit-6f99e3f
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-D8Y6G4Y1.js → Activity-DtfaTnMu.js} +9 -9
- package/_assets/{AnimatedBackground-C7qBwvsp.js → AnimatedBackground-DzgEv-FC.js} +2 -2
- package/_assets/{Assets-D1Myk4mW.js → Assets-cAsu4mgT.js} +22 -22
- package/_assets/{Authorizations-DHZOpUMW.js → Authorizations-Cty0gb4H.js} +2 -2
- package/_assets/{Cart-Dn2sNZbI.js → Cart-D0Ce0HiE.js} +4 -4
- package/_assets/{CircularProgress-D7nr8zvc.js → CircularProgress-CrtbooWR.js} +6 -6
- package/_assets/{Collection-D_wOHgFg.js → Collection-lc0cOOVx.js} +10 -10
- package/_assets/{CollectionCarousel-DCt4NWvX.js → CollectionCarousel-BGA0SeUZ.js} +59 -59
- package/_assets/Confetti-CwSCLYKo.js +18 -0
- package/_assets/{ConstantsUtil-lBURo-5M.js → ConstantsUtil-eRnmBwDe.js} +2 -2
- package/_assets/{ContentClient-D47cn4cd.js → ContentClient-CGypui3G.js} +2 -2
- package/_assets/{Creator-BTvR4L5i.js → Creator-DC0eUqRa.js} +18 -18
- package/_assets/DeploymentBuilder-Dntk5Lfz.js +4 -0
- package/_assets/EmotePlaybackBar-va_-EzTQ.js +121 -0
- package/_assets/{ErrorNotice-BF2OJpNh.js → ErrorNotice-CGEBz6y7.js} +2 -2
- package/_assets/{ExchangeController-DA7i527B.js → ExchangeController-Bjo-EnQg.js} +2 -2
- package/_assets/{Faq-DaK46DZt.js → Faq-Dp7tuSyx.js} +2 -2
- package/_assets/{GetCredits-CPwkY6zf.js → GetCredits-V15qPEjl.js} +10 -10
- package/_assets/Grow-BMl3Pdl7.js +2 -0
- package/_assets/{HelpersUtil-BDeLwE1U.js → HelpersUtil-Dt2MXaDp.js} +2 -2
- package/_assets/{ItemDetail-DgCCo4Ga.js → ItemDetail-ManT2dLK.js} +235 -351
- package/_assets/{JumpInIcon-DCKe9LOU.js → JumpInIcon-D-4Mu6Lo.js} +2 -2
- package/_assets/{LoadMore-rKbDGkef.js → LoadMore-CXxWiPPR.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-YalgApkM.js → ManaPricingBanner.styles-qZxEgfVa.js} +7 -7
- package/_assets/{MyAssets-Do--yjZ7.js → MyAssets-BTF2_EQv.js} +8 -8
- package/_assets/{MyFavorites-DaSWflmb.js → MyFavorites-B0Y4yKVO.js} +6 -6
- package/_assets/{NetworkUtil-DXqn8-PK.js → NetworkUtil-bCHXXx9P.js} +2 -2
- package/_assets/{NotFound-C9IH0Jog.js → NotFound-D9hlInQS.js} +2 -2
- package/_assets/NotificationsBell-qCTioKEE.js +142 -0
- package/_assets/OutfitDetail-DPdNmXGZ.js +368 -0
- package/_assets/OutfitPreview-DSrArtWw.js +7 -0
- package/_assets/{OutfitStudio-CIrUif98.js → OutfitStudio-DjpJtnL7.js} +47 -47
- package/_assets/{PhArrowCircleDown-LMy4WE7D.js → PhArrowCircleDown-DBmTctYK.js} +5 -5
- package/_assets/{PhArrowClockwise-B7efjCn9.js → PhArrowClockwise-ZWBqR1iF.js} +4 -4
- package/_assets/{PhArrowDown-Bwdqa9_E.js → PhArrowDown-WIeXIufM.js} +4 -4
- package/_assets/{PhArrowLeft-DuBXpz8N.js → PhArrowLeft-DvlPA_kr.js} +3 -3
- package/_assets/{PhArrowRight-z9Dl361F.js → PhArrowRight-CcUcrmQK.js} +4 -4
- package/_assets/{PhArrowSquareOut-B8fjTbIa.js → PhArrowSquareOut-eQSuZWr9.js} +4 -4
- package/_assets/{PhArrowUp-DkrWYIAz.js → PhArrowUp-oNKVxFhx.js} +5 -5
- package/_assets/{PhArrowUpRight-BmMKHv_H.js → PhArrowUpRight-mk1FSkK1.js} +3 -3
- package/_assets/{PhArrowsClockwise-CvNc1TwT.js → PhArrowsClockwise-DvXb79Nq.js} +2 -2
- package/_assets/{PhArrowsDownUp-sU4tJwkL.js → PhArrowsDownUp-fJXobkfl.js} +5 -5
- package/_assets/{PhArrowsLeftRight-Inahzprd.js → PhArrowsLeftRight-DsRlafed.js} +3 -3
- package/_assets/{PhBank-BD-K_cfz.js → PhBank-BxBmdtlc.js} +5 -5
- package/_assets/{PhBrowser-DVRvcu4M.js → PhBrowser-TbGdYALn.js} +4 -4
- package/_assets/PhCaretDown-DjcNJ1zq.js +15 -0
- package/_assets/{PhCaretLeft-pF_g8dOz.js → PhCaretLeft-BkF0xuuP.js} +3 -3
- package/_assets/{PhCaretRight-Dl0sRgp0.js → PhCaretRight-cZcclogr.js} +3 -3
- package/_assets/PhCaretUp-BTUuw_V5.js +15 -0
- package/_assets/{PhCheck-D5l8KeSX.js → PhCheck-Dok-YRwJ.js} +4 -4
- package/_assets/{PhCircleHalf-BvUuifqe.js → PhCircleHalf-C_G0Deju.js} +4 -4
- package/_assets/{PhClock-BgqN1MJg.js → PhClock-DxtyCCHN.js} +3 -3
- package/_assets/{PhCompass-Dptb6Trt.js → PhCompass-Cr5Wk3ha.js} +4 -4
- package/_assets/{PhCopy-of33PGSB.js → PhCopy-DpSRSBDo.js} +5 -5
- package/_assets/{PhCreditCard-cGVosjKz.js → PhCreditCard-rQSlkLhU.js} +5 -5
- package/_assets/{PhCurrencyDollar-PwdaRdae.js → PhCurrencyDollar-DSXfHZr-.js} +4 -4
- package/_assets/{PhDesktop-Bhi2QPLf.js → PhDesktop-B8t_jyeP.js} +2 -2
- package/_assets/{PhDeviceMobile-CmgmYUdD.js → PhDeviceMobile-CKMo2R-O.js} +2 -2
- package/_assets/{PhDotsThree-Bp1v1FK6.js → PhDotsThree-CBBnUUK5.js} +3 -3
- package/_assets/{PhEnvelope-D6Hu8w_1.js → PhEnvelope-B3Ot4kfs.js} +4 -4
- package/_assets/{PhFunnelSimple-DKlL8A4i.js → PhFunnelSimple-ST58vUHY.js} +4 -4
- package/_assets/{PhGlobe-7uylPeNu.js → PhGlobe-B1QBE0Ic.js} +3 -3
- package/_assets/{PhIdentificationCard-BED247mY.js → PhIdentificationCard-CmHEoEuJ.js} +2 -2
- package/_assets/{PhImage-FOrY1Sk8.js → PhImage-BM2XMyb9.js} +5 -5
- package/_assets/{PhInfo-CaWDFvIR.js → PhInfo-DfmzAoRe.js} +4 -4
- package/_assets/{PhLightbulb-B75QV9EL.js → PhLightbulb-Dhfv4D4c.js} +2 -2
- package/_assets/{PhMagnifyingGlass-adS5yhrC.js → PhMagnifyingGlass-Djq6rEa-.js} +5 -5
- package/_assets/{PhPaperPlaneRight-BbRgMArn.js → PhPaperPlaneRight-d8LGOK8o.js} +4 -4
- package/_assets/{PhPlus-Bl3EEBwL.js → PhPlus-B6aOwiLq.js} +5 -5
- package/_assets/{PhPower-GunSTWQq.js → PhPower-DAs5tvdn.js} +3 -3
- package/_assets/{PhPuzzlePiece-BWgi2L03.js → PhPuzzlePiece-C5F9l0Xz.js} +4 -4
- package/_assets/{PhQrCode-D0-Wqehu.js → PhQrCode-DjCH9MIj.js} +2 -2
- package/_assets/{PhQuestion-DwVCTKdM.js → PhQuestion-Bd3_nr1y.js} +3 -3
- package/_assets/{PhQuestionMark-CgTbmVtJ.js → PhQuestionMark-Chm0gISn.js} +3 -3
- package/_assets/{PhSealCheck-Dk3N_Xq2.js → PhSealCheck-BighefRp.js} +2 -2
- package/_assets/{PhSignOut-BvXl5dyB.js → PhSignOut-X3VDO26Z.js} +2 -2
- package/_assets/{PhSpinner-DzLQccU8.js → PhSpinner-CMt3xHt0.js} +4 -4
- package/_assets/{PhTrash-TPE0FvJz.js → PhTrash-CBxSNELa.js} +2 -2
- package/_assets/{PhUser-D1oy0lLc.js → PhUser-zWIlEtkm.js} +5 -5
- package/_assets/{PhVault-ByF05VqU.js → PhVault-B5GZzffa.js} +2 -2
- package/_assets/{PhWallet-D75iTvtf.js → PhWallet-D6uFkw0p.js} +3 -3
- package/_assets/{PhWarning-Jaj21PeP.js → PhWarning-C2cnWjQI.js} +5 -5
- package/_assets/{PhWarningCircle-DBt_0tnC.js → PhWarningCircle-BN86yUC5.js} +4 -4
- package/_assets/{PhX-DZ578mpg.js → PhX-D9xXQPUU.js} +5 -5
- package/_assets/{StoreSettings-DiDEymfb.js → StoreSettings-ClAL5nng.js} +2 -2
- package/_assets/{Success-W72Gr_yr.js → Success-BWjgmKV-.js} +2 -2
- package/_assets/{SwapController-CwiooA4W.js → SwapController-C27byyc6.js} +2 -2
- package/_assets/{Tooltip-B3I8arON.js → Tooltip-DnxY7rgj.js} +3 -3
- package/_assets/{TradeService-a_NBc4yW.js → TradeService-CKh2vNYZ.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-D3pkilIG.js → W3MFrameProviderSingleton-DhYApmyj.js} +4 -4
- package/_assets/{WebCryptoP256-BgkA904K.js → WebCryptoP256-DIHlCfjo.js} +2 -2
- package/_assets/{add-tNqIWcMg.js → add-CSXcCGk_.js} +2 -2
- package/_assets/{all-wallets-B8nlg7MV.js → all-wallets-DqZYwMwo.js} +3 -3
- package/_assets/{app-store-9-kKdmJ6.js → app-store-BefptbeL.js} +3 -3
- package/_assets/{apple-DvojoPdF.js → apple-Bfh__HiP.js} +2 -2
- package/_assets/{arrow-bottom--df_76nG.js → arrow-bottom-B24463bX.js} +2 -2
- package/_assets/{arrow-bottom-circle-B2DyGh2W.js → arrow-bottom-circle-u1TPNWtr.js} +2 -2
- package/_assets/{arrow-left-Fb0mZ7Y-.js → arrow-left-BvEq2K0o.js} +2 -2
- package/_assets/{arrow-right-BixOWpB1.js → arrow-right-W2XAOWM7.js} +2 -2
- package/_assets/arrow-top-nu1PUCK6.js +9 -0
- package/_assets/async-directive--Ed0QLAK.js +10 -0
- package/_assets/authorizations-DOop5NDs.js +2 -0
- package/_assets/{bank-CMW6OQj8.js → bank-BBag9zS_.js} +3 -3
- package/_assets/{basic-DchQuRu2.js → basic-Bye9EN9l.js} +2 -2
- package/_assets/{biconomy-CsEB28IW.js → biconomy-Q2cX-YFA.js} +2 -2
- package/_assets/{browseLayout.styles-g9AiUl5C.js → browseLayout.styles-CSH8ciqt.js} +8 -8
- package/_assets/{browser-DFE3CTqg.js → browser-CPTAYjan.js} +3 -3
- package/_assets/{browser-C14MabGh.js → browser-HltaD5My.js} +2 -2
- package/_assets/{browser-ponyfill-NoPd19Nq.js → browser-ponyfill-BcLsZyyD.js} +2 -2
- package/_assets/{builder-CxSl0afD.js → builder-Bl2xQFmH.js} +2 -2
- package/_assets/buy-DgSqbSUI.js +2 -0
- package/_assets/{buy-gasless-6eHLQLUv.js → buy-gasless-u4OinSs3.js} +2 -2
- package/_assets/{card-BVdWO709.js → card-C81sr-3j.js} +2 -2
- package/_assets/{ccip-DZYHSe6i.js → ccip-BNDSyNOI.js} +2 -2
- package/_assets/{ccip-DqGck39w.js → ccip-DrNcR4Z1.js} +2 -2
- package/_assets/{chains-7s4Wyd5G.js → chains-C-JgnGIw.js} +2 -2
- package/_assets/{checkmark-DjsMr40Z.js → checkmark-Bo-gp4Ll.js} +2 -2
- package/_assets/{checkmark-bold-DCuG-0NX.js → checkmark-bold-CrqYbcSP.js} +3 -3
- package/_assets/chevron-bottom-B7xC8zte.js +9 -0
- package/_assets/chevron-left-KdfBU_7V.js +9 -0
- package/_assets/{chevron-right-Bqz0HIJD.js → chevron-right-r7vxjQcl.js} +3 -3
- package/_assets/{chevron-top-Ce8rthjR.js → chevron-top-B9aXAl0y.js} +3 -3
- package/_assets/{chrome-store-CWYMTzwh.js → chrome-store-DtnWFF8y.js} +2 -2
- package/_assets/{class-map-HS20q_81.js → class-map-C1Xjz5Lx.js} +2 -2
- package/_assets/{clock-DNaUSRmN.js → clock-Baa7165K.js} +3 -3
- package/_assets/{close-Va7Wt97F.js → close-wDYvpJu8.js} +3 -3
- package/_assets/{coinPlaceholder-QyY4J5WZ.js → coinPlaceholder-De2q0FMg.js} +2 -2
- package/_assets/collectionPage.styles-1zx64Pot.js +40 -0
- package/_assets/common-B6pH6c6D.js +2 -0
- package/_assets/{compass-gauDPeQF.js → compass-BP3lwd_h.js} +2 -2
- package/_assets/{controller-DtoJ-OaD.js → controller-BzvIOp1M.js} +3 -3
- package/_assets/{copy-Cfnp8Gxd.js → copy-EHnRey4G.js} +2 -2
- package/_assets/{core-xPw2YS_6.js → core--4PeGJsw.js} +5 -5
- package/_assets/createSvgIcon-BXXpfflC.js +75 -0
- package/_assets/cursor-BuTKrcda.js +4 -0
- package/_assets/{cursor-transparent-wEHWEbGv.js → cursor-transparent-7tV62vAu.js} +3 -3
- package/_assets/{custom-DX-ni0bf.js → custom-BiG4RsTg.js} +2 -2
- package/_assets/{data-capture-DDUt2YHs.js → data-capture-XMCpvb6g.js} +5 -5
- package/_assets/{dcl-schemas-GQNC2S4Z.js → dcl-schemas-BnW7lhvI.js} +2 -2
- package/_assets/decimals-DGnXVp1J.js +2 -0
- package/_assets/decimals-DqaiNIjS.js +2 -0
- package/_assets/{desktop-wmxiQg3x.js → desktop-wbkE-tMP.js} +3 -3
- package/_assets/detectExtension-vlrjZCLa.js +2 -0
- package/_assets/{disconnect-CW0SedIh.js → disconnect-DR7Yq8KR.js} +3 -3
- package/_assets/{discord-r-2ftUs2.js → discord-BcAZXa5x.js} +3 -3
- package/_assets/{disposePreview-Cy4cRo5W.js → disposePreview-DBuXekVv.js} +2 -2
- package/_assets/{email-BpdO4wU1.js → email-CPFH9xYS.js} +2 -2
- package/_assets/{embedded-wallet-CGXhcRnj.js → embedded-wallet-BLZ36TAU.js} +2 -2
- package/_assets/emotion-styled.browser.esm-ZX_gGV0q.js +2 -0
- package/_assets/{engine-KDQOQrhD.js → engine-DNdXSnTX.js} +2 -2
- package/_assets/{errors-Brkvnldx.js → errors-BWl3inft.js} +2 -2
- package/_assets/estimate-l1-fee-6tOlX-u5.js +2 -0
- package/_assets/eth_estimateGas-e7I1pmw7.js +2 -0
- package/_assets/eth_getStorageAt-C3KyAyVg.js +2 -0
- package/_assets/eth_getTransactionCount-DmI8Hw52.js +2 -0
- package/_assets/ethereum-DFlNj9xh.js +2 -0
- package/_assets/{ethers-CUPuVG6E.js → ethers-CjbRI_Sk.js} +2 -2
- package/_assets/{etherscan-DJ0SXy-j.js → etherscan-DmDyp2wT.js} +2 -2
- package/_assets/{events-BR9mruU0.js → events-Dmv7yfCJ.js} +2 -2
- package/_assets/{exclamation-triangle-Cx-Rg-Q1.js → exclamation-triangle-COwloaAZ.js} +3 -3
- package/_assets/{execute-C99VvcVc.js → execute-BhLJL4Us.js} +3 -3
- package/_assets/{extension-f7z5q8eX.js → extension-BXZVsCm9.js} +3 -3
- package/_assets/external-link-DY6qwfgd.js +9 -0
- package/_assets/extractIPFS-CbSxzbzr.js +2 -0
- package/_assets/{facebook-CGRggpq_.js → facebook-Ce3bxU5i.js} +3 -3
- package/_assets/{farcaster-BDJUKKnv.js → farcaster-5HoyJqWe.js} +2 -2
- package/_assets/{features-DOohSNgk.js → features-CDlyTF5a.js} +2 -2
- package/_assets/{fetchTokenMetadata-BDnZO97p.js → fetchTokenMetadata-BWKjNajO.js} +3 -3
- package/_assets/{field.styles-TKt4L2KD.js → field.styles-CcG-HFS2.js} +2 -2
- package/_assets/{filters-CC5vo2yt.js → filters-B_7HUVyj.js} +2 -2
- package/_assets/{fortmatic-BaGeZDMU.js → fortmatic-Cw6AmpzV.js} +2 -2
- package/_assets/{get-bytecode-BixykfJN.js → get-bytecode-CMu_rWdt.js} +2 -2
- package/_assets/get-ecosystem-wallet-info-C6SskFQY.js +2 -0
- package/_assets/{getBalance-DPyDJTKl.js → getBalance-DhVJ6tpr.js} +3 -3
- package/_assets/getInstalledModules-DPv6nNZL.js +2 -0
- package/_assets/getNFT-CNk8Qzj9.js +2 -0
- package/_assets/getNFT-CZWbV2W-.js +3 -0
- package/_assets/{github-EOSVHy2c.js → github-psRgdSRX.js} +3 -3
- package/_assets/{google-B7KfKj7W.js → google-zz0wXA6h.js} +3 -3
- package/_assets/{grid.styles-J0kTBoI2.js → grid.styles-B3OrLH9L.js} +2 -2
- package/_assets/{hashTypedData-DcXkmV5f.js → hashTypedData-BNFkF023.js} +2 -2
- package/_assets/{hashTypedData-BsX3fUxc.js → hashTypedData-C2Ny464T.js} +2 -2
- package/_assets/{help-circle-BN_J5ISd.js → help-circle-CaVlHgtL.js} +3 -3
- package/_assets/{id-Be22hW3B.js → id-B-QQrIC1.js} +2 -2
- package/_assets/{image-Cn3EeNg1.js → image-C2jmt9mb.js} +2 -2
- package/_assets/{in-app-DZydcaQ1.js → in-app-C9i6xSdB.js} +2 -2
- package/_assets/in-app-wallet-calls-2ix3aHND.js +2 -0
- package/_assets/{index-B47oSrUZ.js → index-1xilBTGF.js} +27 -27
- package/_assets/{index-BVfTPvK9.js → index-5IZ5md67.js} +6 -6
- package/_assets/{index-DIQ7F0eH.js → index-B2bWUQex.js} +16 -16
- package/_assets/{index-BMDu2mdy.js → index-B71tl4lF.js} +2 -2
- package/_assets/{index-CD6ZAwbw.js → index-BBsTzOu4.js} +2 -2
- package/_assets/{index-CUheiI-E.js → index-BEjjdw0j.js} +2 -2
- package/_assets/{index-WV7ah7AN.js → index-BGlt59a9.js} +7 -7
- package/_assets/{index-BEWPbHqK.js → index-BKQWx92G.js} +2 -2
- package/_assets/{index-B52RzpJA.js → index-BbeQ98QK.js} +7 -7
- package/_assets/{index-C-nlat3H.js → index-BgACqbr1.js} +2 -2
- package/_assets/index-BgHj-glb.js +3 -0
- package/_assets/{index-Clbb31dZ.js → index-BhVyXG2M.js} +2 -2
- package/_assets/{index-B4NGc66i.js → index-Bj_r2xfR.js} +2 -2
- package/_assets/{index-CyBLTYa7.js → index-BnmistVJ.js} +2 -2
- package/_assets/{index-pqSlHrGo.js → index-BowmQDzF.js} +6 -6
- package/_assets/{index-8LX2pFjK.js → index-C-tfjnig.js} +2 -2
- package/_assets/{index-BrKObU0x.js → index-C0NnMzsD.js} +2 -2
- package/_assets/{index-DsoyNhv-.js → index-C3_32SdY.js} +3 -3
- package/_assets/{index-BZE48mP9.js → index-C4vC2yuv.js} +4 -4
- package/_assets/index-CADiw9DH.js +2 -0
- package/_assets/{index-BAqO9-Bf.js → index-CBUE5vhq.js} +3 -3
- package/_assets/{index-B__8UZ2Y.js → index-CCCmnBIp.js} +3 -3
- package/_assets/index-CGqUziFH.js +2 -0
- package/_assets/index-CLlo7aOr.js +2 -0
- package/_assets/{index-BX41uI4v.js → index-CO6qg_qW.js} +3 -3
- package/_assets/{index-BGfUDEWl.js → index-COLRodbR.js} +2 -2
- package/_assets/{index-vvKQ8mTM.js → index-COvBiDoG.js} +2 -2
- package/_assets/{index-BVUfE7bm.js → index-CQObbtJ0.js} +2 -2
- package/_assets/{index-BcBannTx.js → index-CbxKdz5Z.js} +4 -4
- package/_assets/{index-Uej0dSK3.js → index-Cc_69MHA.js} +2 -2
- package/_assets/{index-MWJqCMed.js → index-CgMF1WBR.js} +4 -4
- package/_assets/{index-WVfEF4b3.js → index-CioVAC_W.js} +2 -2
- package/_assets/{index-r8KGLAPF.js → index-CjfeqfJK.js} +4 -4
- package/_assets/index-CojE7D77.js +13 -0
- package/_assets/{index-By5RPCnU.js → index-CvKLNr8q.js} +2 -2
- package/_assets/{index-qKSuRCD6.js → index-D-Kqd_ub.js} +4 -4
- package/_assets/{index-B9vrVQnr.js → index-D1SLPduj.js} +3 -3
- package/_assets/index-D3Nr4LeU.js +31 -0
- package/_assets/{index-DajzqRze.js → index-D9PyUV5c.js} +2 -2
- package/_assets/index-DBlvhHLk.js +20 -0
- package/_assets/{index-BnsHRBeE.js → index-DFYTh5MI.js} +2 -2
- package/_assets/index-DM0n2FP1.js +4034 -0
- package/_assets/{index-DOslveRj.js → index-DNNmvZUV.js} +2 -2
- package/_assets/{index-BjeFPZ5z.js → index-DRpB4Q9h.js} +4 -4
- package/_assets/{index-oMtL-8Re.js → index-DZxO2f7v.js} +3 -3
- package/_assets/{index-g1PYBhHE.js → index-D_ujCm2W.js} +2 -2
- package/_assets/{index-BeDNyZpj.js → index-Dgkyl4CX.js} +4 -4
- package/_assets/{index-CuhZ_hWz.js → index-DkI_z1fD.js} +2 -2
- package/_assets/{index-D8eojdJO.js → index-Do2v_cc3.js} +2 -2
- package/_assets/{index-CZasRrEA.js → index-Dp3LTYy9.js} +2 -2
- package/_assets/{index-Bs6whiAj.js → index-DqzQg_aI.js} +3 -3
- package/_assets/{index-C7ue1mzF.js → index-Ds5Kx5zP.js} +2 -2
- package/_assets/{index-BWmu3BiF.js → index-DtKNmIx4.js} +2 -2
- package/_assets/{index-DQCm5vaX.js → index-EYl3slBU.js} +4 -4
- package/_assets/{index-BhEa9XGv.js → index-JvqCE-nT.js} +3 -3
- package/_assets/{index-BwYOC1g7.js → index-Kcp8C9fK.js} +6 -6
- package/_assets/{index-HraWNoBF.js → index-Mo1JRqRr.js} +2 -2
- package/_assets/{index-BN1rpNEw.js → index-OIBzuL-t.js} +2 -2
- package/_assets/{index-CFMzpbyt.js → index-PLisLcUw.js} +5 -5
- package/_assets/{index-CI24MaW_.js → index-Q-IPOUmE.js} +4 -4
- package/_assets/{index-BcULiBCS.js → index-T3bzbuo4.js} +2 -2
- package/_assets/{index-DWInL6jk.js → index-TgfbETFi.js} +2 -2
- package/_assets/{index-BL18QLtU.js → index-Xyi_E4UM.js} +3 -3
- package/_assets/{index-DPvR_Oj-.js → index-ZBX-10lh.js} +9 -9
- package/_assets/{index-B0z-GyUF.js → index-_v8-EHvN.js} +4 -4
- package/_assets/{index-B3lay0v6.js → index-chwnzXAl.js} +2 -2
- package/_assets/{index-CPyWbAeJ.js → index-yu6KowvC.js} +4 -4
- package/_assets/{index.es-BgTosg8l.js → index.es-BcoJ3mOG.js} +2 -2
- package/_assets/{index.es-Diay8m1a.js → index.es-C9ZfZKLm.js} +5 -5
- package/_assets/{index.es-DTC1ULyQ.js → index.es-CzDvN1Ry.js} +2 -2
- package/_assets/{index.es-DOcz4_Vt.js → index.es-DKyPXxXj.js} +2 -2
- package/_assets/{info-CwfqZ_F5.js → info-OmyNm-OX.js} +2 -2
- package/_assets/{info-circle-DulYFvYW.js → info-circle-BXcv2mSp.js} +3 -3
- package/_assets/{items-empty-rljSVFED.js → items-empty-fGWV1fur.js} +2 -2
- package/_assets/jsxRuntime.module-MtWsgs3K.js +2 -0
- package/_assets/{lightbulb-CE_dw_oh.js → lightbulb-BhYYPKCa.js} +3 -3
- package/_assets/{linkAccount-CW__m-WC.js → linkAccount-C45BdwaK.js} +2 -2
- package/_assets/{localBatchGatewayRequest-u70ohVze.js → localBatchGatewayRequest-CAvg8T2p.js} +2 -2
- package/_assets/{mail-DJ6kL25J.js → mail-BujAiJT_.js} +3 -3
- package/_assets/{mobile-fDCl_uHz.js → mobile-DbqgdYYl.js} +2 -2
- package/_assets/{more-C7_Whde7.js → more-DW0Ubi-A.js} +2 -2
- package/_assets/{native-Bo3oXbRP.js → native-DMiMWRDE.js} +2 -2
- package/_assets/{network-placeholder-Cz4dQYwV.js → network-placeholder-9yKv-UCl.js} +2 -2
- package/_assets/{networks-DRc-xttk.js → networks-Dk9YtmEp.js} +2 -2
- package/_assets/{nftPlaceholder-BihS-dFi.js → nftPlaceholder-Dp7HrYOG.js} +3 -3
- package/_assets/off-B06N3u5j.js +9 -0
- package/_assets/{onramp-DR2jE7ju.js → onramp-DxXKy9zS.js} +2 -2
- package/_assets/openzeppelin-BfJVCwjO.js +2 -0
- package/_assets/ownerOf-D93B6L8g.js +2 -0
- package/_assets/parseNft-xC4V9Vok.js +3 -0
- package/_assets/{parseSignature-D8LS2zK_.js → parseSignature-B-xWYpW3.js} +2 -2
- package/_assets/{parseSignature-pmUjv56d.js → parseSignature-CCuyQ23o.js} +4 -4
- package/_assets/{passkeys-C7wzWFTM.js → passkeys-z1i3QqAo.js} +2 -2
- package/_assets/{pay-with-exchange-BjDhbRAJ.js → pay-with-exchange-D1v7V9rW.js} +2 -2
- package/_assets/{play-store-BoegC4yH.js → play-store-CGV0O_Jz.js} +2 -2
- package/_assets/{plus-CGZQ4v4u.js → plus-D8Do9lRK.js} +3 -3
- package/_assets/{prepare-contract-call-nLDmJVit.js → prepare-contract-call-COXmO_9u.js} +2 -2
- package/_assets/{qr-code-D4FwFoJ2.js → qr-code-CnvkPJlE.js} +3 -3
- package/_assets/{qr-overlay-CIPmMXer.js → qr-overlay-CjN08W99.js} +4 -4
- package/_assets/{react-BHaOXxRY.js → react-a1pIFzAo.js} +3 -3
- package/_assets/{receive-CcNZE2if.js → receive-DLslEtGE.js} +7 -7
- package/_assets/{recycle-horizontal-BQghFdmJ.js → recycle-horizontal-BUI1wFhc.js} +2 -2
- package/_assets/{ref-CRG-0jL7.js → ref-LkxlwUph.js} +3 -3
- package/_assets/{refresh-BeYZoKSh.js → refresh-gWkM7TpU.js} +3 -3
- package/_assets/{reown-logo-BUmcB6sW.js → reown-logo-CpiN-NOh.js} +3 -3
- package/_assets/{resolveImplementation-DXWpYEj6.js → resolveImplementation-CYAVTYRV.js} +2 -2
- package/_assets/{resume-buy-BVqIQtWn.js → resume-buy-DSEXmD90.js} +2 -2
- package/_assets/{rpc-ClZWzOlg.js → rpc-ClvbpP40.js} +4 -4
- package/_assets/sales-empty-DOcTuq8b.js +2 -0
- package/_assets/{search-b1pLcQ0Q.js → search-Wn0h8HYX.js} +3 -3
- package/_assets/{search-empty-BCkNykRb.js → search-empty-nKlIT4u_.js} +2 -2
- package/_assets/{secp256k1-DYJNbcF0.js → secp256k1-BDeFIjRr.js} +2 -2
- package/_assets/{secp256k1-Cd3k2XKF.js → secp256k1-BwaRkSph.js} +2 -2
- package/_assets/{secp256k1-CjE2VWX5.js → secp256k1-DhsQF2lO.js} +2 -2
- package/_assets/{send-D5zRhoBQ.js → send-0G0em3Fa.js} +2 -2
- package/_assets/{send-lC4ra6w3.js → send-BbZytlP1.js} +2 -2
- package/_assets/{send-batch-transaction-DItZkY3I.js → send-batch-transaction-DzXrAmju.js} +2 -2
- package/_assets/{send-eip712-transaction-DI-Pj8UW.js → send-eip712-transaction-vvQ_ml6s.js} +3 -3
- package/_assets/send-gasless-transaction-CCFtjBv4.js +3 -0
- package/_assets/send-transaction-DMSiDaNe.js +3 -0
- package/_assets/sendMetaTransaction-Op3Ol3sY.js +2 -0
- package/_assets/{sendRawTransaction-D1OfMqA1.js → sendRawTransaction-DJKL3MhI.js} +4 -4
- package/_assets/{sentry-Dpl2Rzxy.js → sentry-BqCH2ZAW.js} +3 -3
- package/_assets/{serializeTransaction-F_XNOr0Z.js → serializeTransaction-D90RvcZD.js} +2 -2
- package/_assets/{session-proposal-DB1yG9nH.js → session-proposal-_uuO_EWX.js} +2 -2
- package/_assets/{session-request-j7iOt29A.js → session-request-DkHo2prQ.js} +3 -3
- package/_assets/{sha256-Di1SVFod.js → sha256-DHyp6xwg.js} +2 -2
- package/_assets/{signing-DxdCqlSy.js → signing--7qOCTD6.js} +4 -4
- package/_assets/{skeleton.styles-zgOid3nY.js → skeleton.styles-cmGsezW8.js} +2 -2
- package/_assets/{socials-DJAqKU-U.js → socials-DLAonong.js} +2 -2
- package/_assets/styled-5moig2tB.js +10 -0
- package/_assets/{swapHorizontal-B917A7vy.js → swapHorizontal-3Mejt9DE.js} +3 -3
- package/_assets/{swapHorizontalBold-BXr9TuPL.js → swapHorizontalBold-DkYUmHIw.js} +3 -3
- package/_assets/{swapHorizontalMedium-BK00_YJ-.js → swapHorizontalMedium-C-AChIRi.js} +2 -2
- package/_assets/{swapHorizontalRoundedBold-Bi8rzI9h.js → swapHorizontalRoundedBold-BtKMBAIU.js} +2 -2
- package/_assets/{swapVertical-Cw3vad0G.js → swapVertical-drqnjZhx.js} +3 -3
- package/_assets/{swaps-B-Tp5Qv4.js → swaps-CPl3-hCO.js} +2 -2
- package/_assets/{telegram-BddjnyZB.js → telegram-B0zQ2xux.js} +3 -3
- package/_assets/{thirdweb-BOZWFkQA.js → thirdweb-oQ8JbvxI.js} +4 -4
- package/_assets/{three-dots-C6jZ-WFx.js → three-dots-CalKjIbH.js} +3 -3
- package/_assets/{to-serializable-transaction-CRendAr2.js → to-serializable-transaction-DYhXSOJN.js} +3 -3
- package/_assets/totalSupply-CyNeFDpF.js +2 -0
- package/_assets/{transaction-DkGLxYnP.js → transaction-ltx7PG9J.js} +2 -2
- package/_assets/transactionReceipt-4vTJYToT.js +2 -0
- package/_assets/transactions-Blj3wuBp.js +17 -0
- package/_assets/{twitch-D8WrDbmL.js → twitch-DFJ9vbRU.js} +3 -3
- package/_assets/{twitterIcon-DlYypBM9.js → twitterIcon-PQaPXSEq.js} +3 -3
- package/_assets/{useCreditPacks-BPDUvy8q.js → useCreditPacks-B4yuVjjP.js} +2 -2
- package/_assets/useInfiniteGrid-CT-pRfy9.js +2 -0
- package/_assets/useStore-B_KJVeq8.js +3 -0
- package/_assets/{useTheme-BcK-N9Fs.js → useTheme-VqQnaDT6.js} +2 -2
- package/_assets/{utils-K367Ne2k.js → utils-BHVlUG7g.js} +2 -2
- package/_assets/{verify-DkJJJlPs.js → verify-BkXjhgFz.js} +3 -3
- package/_assets/{verify-filled-Cu34rKfG.js → verify-filled-Bgl9j8Ps.js} +3 -3
- package/_assets/{verifyHash-BHb926ge.js → verifyHash-QFGWwUPj.js} +2 -2
- package/_assets/{w3m-modal-y2XhCIMG.js → w3m-modal-Bb11s5tf.js} +2 -2
- package/_assets/{w3m-modal-1cxICjRk.js → w3m-modal-DzmY21gy.js} +2 -2
- package/_assets/{wait-for-tx-receipt-DFNZcCoK.js → wait-for-tx-receipt-BMghn13H.js} +2 -2
- package/_assets/{wallet-C65hLKu5.js → wallet-h2At2yYW.js} +3 -3
- package/_assets/{wallet-placeholder-Bdb-3o1I.js → wallet-placeholder-BAdAxbaS.js} +2 -2
- package/_assets/{walletconnect-DadsNaAD.js → walletconnect-DGwNgL-R.js} +4 -4
- package/_assets/{wallets-DPBqMg7o.js → wallets-RyPkGGkj.js} +6 -6
- package/_assets/{warning-circle-DE3Cl0f1.js → warning-circle-BcDrWyl5.js} +2 -2
- package/_assets/{web-connector-Bgql32Uf.js → web-connector-BZUNPHhm.js} +4 -4
- package/_assets/{writeContract-CWEmZuYp.js → writeContract-DaTQARyx.js} +2 -2
- package/_assets/x-DoyXusK-.js +13 -0
- package/_assets/{zora-sepolia-c_zFjBRj.js → zora-sepolia-B-Da1yW7.js} +2 -2
- package/_assets/{zoraTestnet-B8xtjMH5.js → zoraTestnet-oGNQ1x_f.js} +2 -2
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Confetti-MCo50BBJ.js +0 -18
- package/_assets/DeploymentBuilder-qk7PnHQx.js +0 -4
- package/_assets/Grow-jPHmsNlR.js +0 -2
- package/_assets/LazyEmoteControls-DnslqPZG.js +0 -3
- package/_assets/NotificationsBell-DeI14Ker.js +0 -142
- package/_assets/OutfitDetail-Buecr6Xb.js +0 -376
- package/_assets/OutfitPreview-CXccjyME.js +0 -7
- package/_assets/PhCaretDown-G6ZOf3Jn.js +0 -15
- package/_assets/PhCaretUp-CuwUNUkq.js +0 -15
- package/_assets/arrow-top-X36TCUPc.js +0 -9
- package/_assets/async-directive-DVKyJ8n3.js +0 -10
- package/_assets/authorizations-zGupbQDs.js +0 -2
- package/_assets/buy-CZ48Qb0B.js +0 -2
- package/_assets/chevron-bottom-D8_GkQ-J.js +0 -9
- package/_assets/chevron-left-9Zv2sApZ.js +0 -9
- package/_assets/collectionPage.styles-BG7xsIyB.js +0 -40
- package/_assets/common-BKs8BygA.js +0 -2
- package/_assets/createSvgIcon-TWSMDLRV.js +0 -75
- package/_assets/cursor-bva6Zsy2.js +0 -4
- package/_assets/decimals-CriYb_mR.js +0 -2
- package/_assets/decimals-dM6NWaYC.js +0 -2
- package/_assets/detectExtension-DKO4W8XW.js +0 -2
- package/_assets/emotion-styled.browser.esm-DqxM2tFY.js +0 -2
- package/_assets/estimate-l1-fee-CXjO5G6B.js +0 -2
- package/_assets/eth_estimateGas-Az-d7u81.js +0 -2
- package/_assets/eth_getStorageAt-DUjWCRH_.js +0 -2
- package/_assets/eth_getTransactionCount-DUedgx_K.js +0 -2
- package/_assets/ethereum-CGqNaPv8.js +0 -2
- package/_assets/external-link-DP_pNrc3.js +0 -9
- package/_assets/extractIPFS-BZARbAAN.js +0 -2
- package/_assets/get-ecosystem-wallet-info-BRBLaxAB.js +0 -2
- package/_assets/getInstalledModules-COw1E-0h.js +0 -2
- package/_assets/getNFT-BJqA-Dy5.js +0 -2
- package/_assets/getNFT-BZ6gJSTz.js +0 -3
- package/_assets/in-app-wallet-calls-95DziyxS.js +0 -2
- package/_assets/index-B_wakS41.js +0 -13
- package/_assets/index-Bu7oJJ0x.js +0 -2
- package/_assets/index-CBxXauNU.js +0 -31
- package/_assets/index-CLWFGmUC.js +0 -20
- package/_assets/index-Cw2Mzm-8.js +0 -4034
- package/_assets/index-CxTOZKg9.js +0 -3
- package/_assets/index-D_5cEpKH.js +0 -2
- package/_assets/index-hDG9ZZQ9.js +0 -2
- package/_assets/jsxRuntime.module-hV4zW-M8.js +0 -2
- package/_assets/off-txTunFjX.js +0 -9
- package/_assets/openzeppelin-Bk9vo-GM.js +0 -2
- package/_assets/ownerOf-BODrSAnN.js +0 -2
- package/_assets/parseNft-DQbWG72w.js +0 -3
- package/_assets/sales-empty-CGZEK996.js +0 -2
- package/_assets/send-gasless-transaction-H_PFa7sP.js +0 -3
- package/_assets/send-transaction-BiXKHFMN.js +0 -3
- package/_assets/sendMetaTransaction-Bekk2SqJ.js +0 -2
- package/_assets/styled-6v9MWELU.js +0 -10
- package/_assets/totalSupply-DgwOpDBe.js +0 -2
- package/_assets/transactionReceipt-BcMA8FhJ.js +0 -2
- package/_assets/transactions-DejHNyTK.js +0 -17
- package/_assets/useInfiniteGrid-CFkyIjyn.js +0 -2
- package/_assets/useStore-BsXE3VXt.js +0 -3
- package/_assets/x-C7WtQF7V.js +0 -13
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-
|
|
2
|
-
import{
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-1xilBTGF.js","_assets/react-a1pIFzAo.js","_assets/index-DM0n2FP1.js","_assets/dcl-schemas-BnW7lhvI.js","_assets/sentry-BqCH2ZAW.js","_assets/ethers-CjbRI_Sk.js","_assets/intl-AKLEHPeO.js","_assets/index-l2QjlKjX.css","_assets/sales-empty-DOcTuq8b.js","_assets/buy-DgSqbSUI.js","_assets/authorizations-DOop5NDs.js","_assets/sendMetaTransaction-Op3Ol3sY.js","_assets/ManaPricingBanner.styles-qZxEgfVa.js","_assets/Faq-Dp7tuSyx.js","_assets/field.styles-CcG-HFS2.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{X as ke,bO as Ie,o as U,l as A,bP as Ae,t as n,s as l,m as $e,n as Ee,b as o,M as Le,I as T,bQ as se,bR as ne,bS as Ne,_ as Pe,O as Te,q as $,ap as K,bT as Se,r as Ce,aK as B,D as Fe,bU as De,w as L,bV as Me,bW as Q}from"./index-DM0n2FP1.js";import{r as g,u as He,j as t,d as Oe,L as Re}from"./react-a1pIFzAo.js";import{u as qe,s as _e}from"./sales-empty-DOcTuq8b.js";import{L as ze}from"./LoadMore-CXxWiPPR.js";import{u as N}from"./useInfiniteGrid-CT-pRfy9.js";import{m as de}from"./mana-matic-CEqvSwrJ.js";import{n as We}from"./name-glyph-aUugT8vq.js";import"./dcl-schemas-BnW7lhvI.js";import"./sentry-BqCH2ZAW.js";import"./ethers-CjbRI_Sk.js";import"./intl-AKLEHPeO.js";import"./buy-DgSqbSUI.js";import"./authorizations-DOop5NDs.js";import"./sendMetaTransaction-Op3Ol3sY.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]="eebb171a-d3c8-481a-9d77-e64ef1c769dd",e._sentryDebugIdIdentifier="sentry-dbid-eebb171a-d3c8-481a-9d77-e64ef1c769dd")}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),a=[];for(const i of s){const d=a[a.length-1];d&&Ue(d[d.length-1],i)?d.push(i):a.push([i])}return a.map(i=>{var d;return{id:((d=i.find(r=>r.txHash))==null?void 0:d.txHash)??i[i.length-1].id,createdAt:Math.max(...i.map(r=>r.createdAt)),status:Be(i),totalCredits:i.reduce((r,h)=>r+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=[],a=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 r=a.get(d);if(r){r.quantity+=1,r.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};a.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?ke(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 a=Ke(e.purchases.filter(Ze)).map(c=>({kind:"purchase",id:`purchase:${c.id}`,createdAt:c.createdAt,order:c})),i=e.sales.map(c=>{const m=Ye(c,e.rate);return{kind:"sale",id:`sale:${m.id}`,createdAt:m.createdAt,sale:m}}),d=(e.creditOrders??[]).filter(c=>c.status!=="failed"&&c.status!=="abandoned").map(c=>({kind:"credit",id:`credit:${c.id}`,createdAt:c.createdAt,order:c})),r=new Set(e.purchases.filter(c=>c.txHash).map(c=>c.txHash.toLowerCase())),h=(e.manaPurchases??[]).filter(c=>!r.has(c.txHash.toLowerCase())).map(c=>({kind:"mana-purchase",id:`mana-purchase:${c.id}`,createdAt:c.createdAt,sale:c}));return[...a,...i,...d,...h].sort((c,m)=>m.createdAt-c.createdAt||(c.id<m.id?-1:1))}function et(e,s){return s==="all"?e:s==="sales"?e.filter(a=>a.kind==="sale"):e.filter(a=>a.kind==="purchase"||a.kind==="credit"||a.kind==="mana-purchase")}const ce=e=>e.trim().toLowerCase();function tt(e){const s=new Map;for(const a of e??[]){const i=ce(a.txHash??"");if(!i)continue;const d=s.get(i);d?d.push(a):s.set(i,[a])}return s}function it(e,s,a=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,r=i.filter(c=>!c.available&&c.availableAt>a);if(r.length===0)return{kind:"credited",credits:d};const h=r.reduce((c,m)=>Math.max(c,m.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:a}=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:a}}const at="https://cdn.decentraland.org/@dcl/shop/1.6.4-31506645385.commit-6f99e3f/_assets/credits-product-vs4Q6u6l.svg",X=$e`
|
|
3
3
|
0% { background-position: 200% 0; }
|
|
4
4
|
100% { background-position: -200% 0; }
|
|
5
5
|
`,rt=l.section`
|
|
@@ -157,7 +157,7 @@ import{ar as ke,bI as Ie,o as U,l as A,bJ as Ae,t as n,s as l,m as $e,n as Ee,b
|
|
|
157
157
|
height: 30px;
|
|
158
158
|
display: block;
|
|
159
159
|
}
|
|
160
|
-
`,
|
|
160
|
+
`,O=l.span`
|
|
161
161
|
font-size: 11px;
|
|
162
162
|
font-weight: 700;
|
|
163
163
|
text-transform: uppercase;
|
|
@@ -281,7 +281,7 @@ import{ar as ke,bI as Ie,o as U,l as A,bJ as Ae,t as n,s as l,m as $e,n as Ee,b
|
|
|
281
281
|
outline: 2px solid ${n.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;
|
|
@@ -308,7 +308,7 @@ import{ar as ke,bI as Ie,o as U,l as A,bJ as Ae,t as n,s as l,m as $e,n as Ee,b
|
|
|
308
308
|
@media (prefers-reduced-motion: reduce) {
|
|
309
309
|
animation: none;
|
|
310
310
|
}
|
|
311
|
-
`,
|
|
311
|
+
`,q=l.div`
|
|
312
312
|
min-width: 0;
|
|
313
313
|
display: flex;
|
|
314
314
|
flex-direction: column;
|
|
@@ -318,7 +318,7 @@ import{ar as ke,bI as Ie,o as U,l as A,bJ as Ae,t as n,s as l,m as $e,n as Ee,b
|
|
|
318
318
|
white-space: nowrap;
|
|
319
319
|
overflow: hidden;
|
|
320
320
|
text-overflow: ellipsis;
|
|
321
|
-
`,
|
|
321
|
+
`,Z=l.span`
|
|
322
322
|
display: inline-block;
|
|
323
323
|
width: 140px;
|
|
324
324
|
max-width: 60%;
|
|
@@ -377,7 +377,7 @@ import{ar as ke,bI as Ie,o as U,l as A,bJ as Ae,t as n,s as l,m as $e,n as Ee,b
|
|
|
377
377
|
`,jt=l.p`
|
|
378
378
|
margin: 0;
|
|
379
379
|
color: ${n.colors.softWhite};
|
|
380
|
-
`,wt=l(
|
|
380
|
+
`,wt=l(R)`
|
|
381
381
|
background: ${n.gradients.amethyst};
|
|
382
382
|
|
|
383
383
|
img {
|
|
@@ -385,5 +385,5 @@ import{ar as ke,bI as Ie,o as U,l as A,bJ as Ae,t as n,s as l,m as $e,n as Ee,b
|
|
|
385
385
|
height: 26px;
|
|
386
386
|
object-fit: contain;
|
|
387
387
|
}
|
|
388
|
-
`,Z=E.withComponent(Oe),kt=g.lazy(()=>Pe(()=>import("./index-B47oSrUZ.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 $t({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(O,{children:c?t.jsx("img",{src:c,alt:h}):t.jsx(T,{name:"cart",size:20})}),t.jsxs(R,{children:[r?t.jsx(J,{}):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($,{className:"ccy-mark"})," ",t.jsx(K,{credits:e.credits})]})]});return m?t.jsx(Z,{to:m,"data-link":"true",children:f}):t.jsx(E,{children:f})}function Et({item:e}){const s=`@${e.registeredName}`;return t.jsxs(E,{"data-testid":"activity-name-line",children:[t.jsx(wt,{children:t.jsx("img",{src:We,alt:""})}),t.jsxs(R,{children:[t.jsx(_,{title:s,children:s}),t.jsx(z,{children:o("activity.nameRegistration")})]}),t.jsxs(he,{children:[t.jsx($,{className:"ccy-mark"})," ",e.credits]})]})}function Lt({order:e}){const s=Ve(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($,{className:"ccy-mark"})," ",t.jsx(K,{credits:e.totalCredits})]})]})]}),i==="FAILED"?t.jsx(ft,{children:o("activity.purchaseFailedNote")}):null,t.jsx(V,{children:s.map(r=>r.registeredName?t.jsx(Et,{item:r},r.key):t.jsx($t,{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(O,{children:d?t.jsx("img",{src:d,alt:i}):t.jsx(T,{name:"offer",size:20})}),t.jsxs(R,{children:[a?t.jsx(J,{}):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(V,{children:r?t.jsx(Z,{to:r,"data-link":"true",children:h}):t.jsx(E,{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(O,{children:r?t.jsx("img",{src:r,alt:d}):t.jsx(T,{name:"offer",size:20})}),t.jsxs(R,{children:[i?t.jsx(J,{}):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($,{className:"ccy-mark"})," +",Fe(s.credits)]}):t.jsx(w,{"data-kind":"income",children:o("activity.payoutCredited")})]})]}),t.jsx(V,{children:h?t.jsx(Z,{to:h,"data-link":"true",children:c}):t.jsx(E,{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($,{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(bt,{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;Ee({title:r?o("seo.import.title"):o("nav.activity"),noindex:!0});const{count:h}=Re(),{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",b=N(["purchases",e==null?void 0:e.address],u=>Ne(e.address,e.identity,{first:P,skip:u}),{enabled:p}),y=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(yt,{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(Ze({purchases:p?b.items:[],sales:x?y.items:[],creditOrders:p?v.items:[],manaPurchases:p?j.items:[],rate:fe}),s),be=p&&(b.isLoading||v.isLoading||j.isLoading)||x&&y.isLoading,ie=p&&(b.isFetchingNextPage||v.isFetchingNextPage||j.isFetchingNextPage)||x&&y.isFetchingNextPage,ye=p&&(b.hasNextPage||v.hasNextPage||j.hasNextPage)||x&&y.hasNextPage;function ve(){p&&b.hasNextPage&&b.fetchNextPage(),p&&v.hasNextPage&&v.fetchNextPage(),p&&j.hasNextPage&&j.fetchNextPage(),x&&y.hasNextPage&&y.fetchNextPage()}function je(u){if(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,{})}):be?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:ye,isFetching:ie,onLoadMore:ve})]})]})}export{Bt as Activity};
|
|
389
|
-
//# sourceMappingURL=Activity-
|
|
388
|
+
`,J=E.withComponent(Re),kt=g.lazy(()=>Pe(()=>import("./index-1xilBTGF.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?Oe.createPortal(t.jsx(gt,{style:{top:a.top,left:a.left},role:"tooltip",children:o("activity.polygonMana")}),document.body):null]})}function $t({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(q,{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($,{className:"ccy-mark"})," ",t.jsx(K,{credits:e.credits})]})]});return m?t.jsx(J,{to:m,"data-link":"true",children:f}):t.jsx(E,{children:f})}function Et({item:e}){const s=`@${e.registeredName}`;return t.jsxs(E,{"data-testid":"activity-name-line",children:[t.jsx(wt,{children:t.jsx("img",{src:We,alt:""})}),t.jsxs(q,{children:[t.jsx(_,{title:s,children:s}),t.jsx(z,{children:o("activity.nameRegistration")})]}),t.jsxs(he,{children:[t.jsx($,{className:"ccy-mark"})," ",e.credits]})]})}function Lt({order:e}){const s=Ve(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(O,{"data-status":i,children:d}),t.jsxs(w,{children:[t.jsx($,{className:"ccy-mark"})," ",t.jsx(K,{credits:e.totalCredits})]})]})]}),i==="FAILED"?t.jsx(ft,{children:o("activity.purchaseFailedNote")}):null,t.jsx(V,{children:s.map(r=>r.registeredName?t.jsx(Et,{item:r},r.key):t.jsx($t,{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(q,{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(O,{"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(V,{children:r?t.jsx(J,{to:r,"data-link":"true",children:h}):t.jsx(E,{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(q,{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(O,{"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($,{className:"ccy-mark"})," +",Fe(s.credits)]}):t.jsx(w,{"data-kind":"income",children:o("activity.payoutCredited")})]})]}),t.jsx(V,{children:h?t.jsx(J,{to:h,"data-link":"true",children:c}):t.jsx(E,{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(O,{"data-status":a,children:i}),t.jsxs(w,{"data-kind":a==="UNFINISHED"?void 0:"income",children:[a==="UNFINISHED"?"":"+",t.jsx($,{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(bt,{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;Ee({title:r?o("seo.import.title"):o("nav.activity"),noindex:!0});const{count:h}=qe(),{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",b=N(["purchases",e==null?void 0:e.address],u=>Ne(e.address,e.identity,{first:P,skip:u}),{enabled:p}),y=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(yt,{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?b.items:[],sales:x?y.items:[],creditOrders:p?v.items:[],manaPurchases:p?j.items:[],rate:fe}),s),be=p&&(b.isLoading||v.isLoading||j.isLoading)||x&&y.isLoading,ie=p&&(b.isFetchingNextPage||v.isFetchingNextPage||j.isFetchingNextPage)||x&&y.isFetchingNextPage,ye=p&&(b.hasNextPage||v.hasNextPage||j.hasNextPage)||x&&y.hasNextPage;function ve(){p&&b.hasNextPage&&b.fetchNextPage(),p&&v.hasNextPage&&v.fetchNextPage(),p&&j.hasNextPage&&j.fetchNextPage(),x&&y.hasNextPage&&y.fetchNextPage()}function je(u){if(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,{})}):be?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:ye,isFetching:ie,onLoadMore:ve})]})]})}export{Bt as Activity};
|
|
389
|
+
//# sourceMappingURL=Activity-DtfaTnMu.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-a1pIFzAo.js";import{s as f}from"./index-DM0n2FP1.js";import"./dcl-schemas-BnW7lhvI.js";import"./sentry-BqCH2ZAW.js";import"./ethers-CjbRI_Sk.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]="ced312bc-deae-4111-844d-dbd039a7e2c4",e._sentryDebugIdIdentifier="sentry-dbid-ced312bc-deae-4111-844d-dbd039a7e2c4")}catch{}})();const D="https://cdn.decentraland.org/@dcl/shop/1.6.4-31506645385.commit-6f99e3f/_assets/custom-welcome-background-BxlFQma9.webp",P="https://cdn.decentraland.org/@dcl/shop/1.6.4-31506645385.commit-6f99e3f/_assets/DCL_LogoPattern-BryBPc3d.png",L=`
|
|
2
2
|
attribute vec2 a_position;
|
|
3
3
|
varying vec2 v_uv;
|
|
4
4
|
void main() {
|
|
@@ -95,4 +95,4 @@ void main() {
|
|
|
95
95
|
width: 100%;
|
|
96
96
|
height: 100%;
|
|
97
97
|
`;function K({patternTiling:e=1.66}){const a=u.useRef(null),n=u.useRef(0),r=u.useRef(e);return r.current=e,u.useEffect(()=>{var _;const o=a.current;if(!o||(_=window.matchMedia)!=null&&_.call(window,"(prefers-reduced-motion: reduce)").matches)return;const t=o.getContext("webgl",{alpha:!1,antialias:!1});if(!t)return;const c=p(t,t.VERTEX_SHADER,L),s=p(t,t.FRAGMENT_SHADER,I);if(!c||!s){c&&t.deleteShader(c),s&&t.deleteShader(s);return}const i=B(t,c,s);if(!i){t.deleteShader(c),t.deleteShader(s);return}const m=t.getAttribLocation(i,"a_position"),R=t.getUniformLocation(i,"u_time"),w=t.getUniformLocation(i,"u_resolution"),b=t.getUniformLocation(i,"u_overlayTex"),A=t.getUniformLocation(i,"u_overlayTiling"),v=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,v),t.bufferData(t.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),t.STATIC_DRAW);let g=!1;const h=F(t,P,()=>g),S=()=>{const l=window.devicePixelRatio||1,E=o.clientWidth*l,x=o.clientHeight*l;(o.width!==E||o.height!==x)&&(o.width=E,o.height=x)},U=performance.now()/1e3,y=()=>{S(),t.viewport(0,0,o.width,o.height),t.useProgram(i),t.uniform1f(R,performance.now()/1e3-U),t.uniform2f(w,o.width,o.height),t.uniform1f(A,r.current),t.activeTexture(t.TEXTURE0),t.bindTexture(t.TEXTURE_2D,h),t.uniform1i(b,0),t.enableVertexAttribArray(m),t.bindBuffer(t.ARRAY_BUFFER,v),t.vertexAttribPointer(m,2,t.FLOAT,!1,0,0),t.drawArrays(t.TRIANGLES,0,6),n.current=requestAnimationFrame(y)},T=l=>{l.preventDefault(),cancelAnimationFrame(n.current),o.style.opacity="0"};return o.addEventListener("webglcontextlost",T,!1),n.current=requestAnimationFrame(y),()=>{g=!0,cancelAnimationFrame(n.current),o.removeEventListener("webglcontextlost",T),t.deleteProgram(i),t.deleteShader(c),t.deleteShader(s),t.deleteBuffer(v),t.deleteTexture(h)}},[]),d.jsxs(C,{"aria-hidden":!0,children:[d.jsx(k,{style:{backgroundImage:`url(${D})`}}),d.jsx(V,{ref:a})]})}export{K as default};
|
|
98
|
-
//# sourceMappingURL=AnimatedBackground-
|
|
98
|
+
//# sourceMappingURL=AnimatedBackground-DzgEv-FC.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as u,b as Oe,j as e,u as et}from"./react-
|
|
1
|
+
import{r as u,b as Oe,j as e,u as et}from"./react-a1pIFzAo.js";import{u as tt,s as nt}from"./search-empty-nKlIT4u_.js";import{u as st,t as Ie,R as it,i as ot,j as at,k as rt,l as lt,m as ct,n as dt,o as ht,v as pt,p as ut,q as ft,M as mt,r as xt,s as gt}from"./browseLayout.styles-CSH8ciqt.js";import{c as V,W as bt,aP as yt,aQ as wt,aW as jt,a as vt,l as Ct,cp as $t,cq as kt,s as i,t,o as He,aE as St,r as Et,D as je,b as n,p as Tt,I as E,q as H,cr as le,aB as Rt,ae as oe,aM as Le,aU as _t,aT as It,n as De,M as Ge,X as qe,Y as Lt,as as Nt,O as Mt,S as Ne,P as X,b2 as zt,bM as At}from"./index-DM0n2FP1.js";import{L as Wt}from"./LoadMore-CXxWiPPR.js";import{u as Pt}from"./useInfiniteGrid-CT-pRfy9.js";import{E as Bt}from"./ErrorNotice-CGEBz6y7.js";import{d as Ft}from"./dcl-schemas-BnW7lhvI.js";import{s as Ut,G as Ot,w as Ht,S as Dt}from"./buy-gasless-u4OinSs3.js";import{s as Gt,j as qt}from"./buy-DgSqbSUI.js";import{f as Vt}from"./errors-BWl3inft.js";import{J as Qt,C as Zt,B as ve}from"./ethers-CjbRI_Sk.js";import{n as Kt}from"./name-glyph-aUugT8vq.js";import{n as Xt}from"./Tooltip-DnxY7rgj.js";import{G as Jt}from"./grid.styles-B3OrLH9L.js";import"./skeleton.styles-cmGsezW8.js";import"./sentry-BqCH2ZAW.js";import"./intl-AKLEHPeO.js";import"./authorizations-DOop5NDs.js";import"./sendMetaTransaction-Op3Ol3sY.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]="bb13b977-afba-4e59-9cb9-517da1945533",s._sentryDebugIdIdentifier="sentry-dbid-bb13b977-afba-4e59-9cb9-517da1945533")}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 Me(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)"],ze={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function nn(){return V.chainId===Number(Ft.ChainId.MATIC_MAINNET)?ze.mainnet:ze.sepolia}async function sn(s,o={}){var m;const{rpc:a,address:d}=nn(),h=new Qt(a),f=new Zt(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 jt(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 vt(f,{method:"GET",identity:s,metadata:{}});if(!l.ok){let c;try{c=(m=await l.json())==null?void 0:m.code}catch{}throw c==="ROUTE_COST_TOO_HIGH"?new ke:new Error(`fetchNameCreditRoute ${l.status}`)}return l.json()}function ln(s,o){const a=ve.from(s.availableAmount),h=ve.from(Q).sub(a);return{credits:[{value:s.amount,expiresAt:Number(s.expiresAt),salt:qt(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 bt(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 yt(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 Ut({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 Gt(f,$,d)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:j}),h("confirming"),await Ht(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 Dt)return{status:"pending",originTxHash:p.txHash};if(c&&g==="unconfirmed"&&await wt(a,[c]).catch(()=>{}),p instanceof ke||p instanceof Ce||p instanceof $e)throw p;const b=new Error(Vt(p,"Couldn't register the name. Please try again.",{sale:!0}));throw b.cause=p,b}}function hn(){const{data:s}=Ct({queryKey:["feature-flag","shop-names"],queryFn:()=>$t(kt.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.6.4-31506645385.commit-6f99e3f/_assets/name-verified-oGwQ3ntb.svg",yn="#34fee6",wn=i.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
inset: 0;
|
|
4
4
|
z-index: 10000;
|
|
@@ -120,7 +120,7 @@ import{r as u,b as Oe,j as e,u as et}from"./react-BHaOXxRY.js";import{u as tt,s
|
|
|
120
120
|
display: block;
|
|
121
121
|
width: 14px;
|
|
122
122
|
height: 14px;
|
|
123
|
-
`,
|
|
123
|
+
`,Ae=i.div`
|
|
124
124
|
flex: none;
|
|
125
125
|
display: grid;
|
|
126
126
|
place-items: center;
|
|
@@ -231,7 +231,7 @@ import{r as u,b as Oe,j as e,u as et}from"./react-BHaOXxRY.js";import{u as tt,s
|
|
|
231
231
|
color: ${t.colors.muted2};
|
|
232
232
|
font-weight: 400;
|
|
233
233
|
}
|
|
234
|
-
`,
|
|
234
|
+
`,Ln=i.span`
|
|
235
235
|
flex: none;
|
|
236
236
|
font-family: ${t.font.sans};
|
|
237
237
|
font-size: 16px;
|
|
@@ -266,7 +266,7 @@ import{r as u,b as Oe,j as e,u as et}from"./react-BHaOXxRY.js";import{u as tt,s
|
|
|
266
266
|
cursor: not-allowed;
|
|
267
267
|
opacity: 0.5;
|
|
268
268
|
}
|
|
269
|
-
`,
|
|
269
|
+
`,Nn=i.div`
|
|
270
270
|
display: flex;
|
|
271
271
|
flex: 1;
|
|
272
272
|
flex-direction: column;
|
|
@@ -274,16 +274,16 @@ import{r as u,b as Oe,j as e,u as et}from"./react-BHaOXxRY.js";import{u as tt,s
|
|
|
274
274
|
justify-content: center;
|
|
275
275
|
gap: 32px;
|
|
276
276
|
padding: 32px 0 8px;
|
|
277
|
-
`,
|
|
277
|
+
`,Mn=i.img`
|
|
278
278
|
width: 61px;
|
|
279
279
|
height: 61px;
|
|
280
|
-
`,
|
|
280
|
+
`,zn=i.div`
|
|
281
281
|
display: flex;
|
|
282
282
|
flex-direction: column;
|
|
283
283
|
align-items: center;
|
|
284
284
|
gap: 8px;
|
|
285
285
|
width: 100%;
|
|
286
|
-
`,
|
|
286
|
+
`,An=i.div`
|
|
287
287
|
font-family: ${t.font.sans};
|
|
288
288
|
font-weight: 700;
|
|
289
289
|
font-size: 20px;
|
|
@@ -297,13 +297,13 @@ import{r as u,b as Oe,j as e,u as et}from"./react-BHaOXxRY.js";import{u as tt,s
|
|
|
297
297
|
line-height: 1.57;
|
|
298
298
|
color: ${t.colors.muted};
|
|
299
299
|
text-align: center;
|
|
300
|
-
`,
|
|
300
|
+
`,Pn=i.div`
|
|
301
301
|
display: flex;
|
|
302
302
|
align-items: center;
|
|
303
303
|
justify-content: center;
|
|
304
304
|
gap: 8px;
|
|
305
305
|
width: 100%;
|
|
306
|
-
`,
|
|
306
|
+
`,Bn=i.div`
|
|
307
307
|
flex: 1;
|
|
308
308
|
max-width: 400px;
|
|
309
309
|
height: 10px;
|
|
@@ -381,7 +381,7 @@ import{r as u,b as Oe,j as e,u as et}from"./react-BHaOXxRY.js";import{u as tt,s
|
|
|
381
381
|
${t.media.maxWidth("mobile")} {
|
|
382
382
|
flex-direction: column;
|
|
383
383
|
}
|
|
384
|
-
`,
|
|
384
|
+
`,Pe=i.button`
|
|
385
385
|
flex: 1;
|
|
386
386
|
height: 48px;
|
|
387
387
|
border: 1px solid ${t.colors.accent};
|
|
@@ -458,10 +458,10 @@ import{r as u,b as Oe,j as e,u as et}from"./react-BHaOXxRY.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}=He(),{data:h,isError:f}=St(d),l=Et(),m=Oe(),[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):"—",B=o==null,W=h==null?void 0:h.credits,P=o!=null&&W!=null?o-W:0,S=P>0,F=B?n("names.priceUnavailable"):S?n("names.insufficientCredits",{credits:je(P)}):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||B||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(It(y)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:_t(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=Tt(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(H,{})," ",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(H,{}),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||B||S,children:n("names.buyCta")})]})]}),c==="completing"&&e.jsxs(Ln,{children:[e.jsx(zn,{src:Rt,alt:"",width:61,height:61}),e.jsxs(An,{children:[e.jsx(Mn,{children:re}),e.jsxs(Bn,{children:[e.jsx(Pn,{"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(H,{})," ",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(H,{}),M]})]}),e.jsx(We,{children:e.jsx(Be,{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(H,{})," ",le(h,f)]}),e.jsx(ue,{}),e.jsxs(Un,{children:[e.jsx(On,{"aria-hidden":!0,children:e.jsx(E,{name:"check"})}),e.jsxs(Hn,{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:Qt,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(H,{}),M]})]}),e.jsxs(We,{children:[e.jsx(Be,{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.6.4-31480376613.commit-0bb9931/_assets/identity-icon-C8yAW_Gq.svg",Zn="https://cdn.decentraland.org/@dcl/shop/1.6.4-31480376613.commit-0bb9931/_assets/world-icon-6xQ-PmmW.svg",Kn="https://cdn.decentraland.org/@dcl/shop/1.6.4-31480376613.commit-0bb9931/_assets/invite-icon-Bz6lCTuB.svg",Qn="data:image/svg+xml,%3csvg%20width='55.6797'%20height='63.6174'%20viewBox='0%200%2055.6797%2063.6174'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Vote'%3e%3cpath%20id='Vector'%20d='M0.055012%2039.1045C1.61191%2039.4989%202.83757%2039.3938%204.4307%2039.392L8.27108%2039.3878L20.7762%2039.3883L42.8819%2039.3904L50.0954%2039.3907C51.793%2039.3907%2054.0562%2039.5509%2055.6466%2039.0843C55.5909%2040.7931%2055.647%2042.8581%2055.6469%2044.5864L55.6479%2055.616L55.6559%2059.5618C55.6583%2060.6219%2055.8213%2061.9838%2055.261%2062.8837C55.2205%2062.9265%2055.1794%2062.9688%2055.1377%2063.0104C54.7986%2063.3482%2054.3791%2063.5594%2053.9021%2063.5761C52.0714%2063.642%2050.1544%2063.6097%2048.3241%2063.6078L37.4452%2063.6066L2.97352%2063.6103C2.2022%2063.6084%201.15943%2063.6718%200.589171%2063.0576C-0.204857%2062.2037%200.0327979%2060.3244%200.0349529%2059.1687L0.0414734%2054.3929C0.0413119%2049.3191%20-0.00749456%2044.1727%200.055012%2039.1045Z'%20fill='white'%20fill-opacity='0.8'/%3e%3cpath%20id='Subtract'%20d='M37.1168%200.00495927C38.1773%200.00461149%2039.2888%20-0.0284991%2040.3433%200.0811311C41.0714%200.15695%2041.7266%200.914583%2041.7857%201.63484C41.853%202.45491%2041.8268%203.31926%2041.8258%204.15144L41.8189%208.70418L41.8199%2023.9639L40.1099%2023.9659L13.8726%2023.963L13.8678%209.0909L13.8648%204.29793C13.8644%202.52652%2013.3942%200.34203%2015.6754%200.0342561C15.8907%200.016712%2016.237%200.0120998%2016.4557%200.0117952C21.6059%200.00480262%2026.761%200.0117634%2031.9107%200.00788896L37.1168%200.00495927ZM33.3834%206.17293C32.439%206.55612%2031.0531%208.12922%2030.3014%208.88191L25.8297%2013.3634C25.3537%2012.824%2023.3455%2010.7605%2022.8209%2010.4239C22.5581%2010.2549%2022.2566%2010.1546%2021.9449%2010.1329C21.4563%2010.1008%2020.9754%2010.2879%2020.6139%2010.6134C20.2442%2010.9428%2020.0227%2011.4077%2020.0006%2011.9024C19.9561%2013.0748%2021.3406%2014.1198%2022.1256%2014.8868C22.9429%2015.714%2024.1669%2017.1028%2025.1168%2017.67C26.1632%2018.2949%2027.3471%2017.2145%2027.9723%2016.4942C30.25%2014.2025%2032.5393%2011.9456%2034.8101%209.64949C35.2937%209.16062%2035.7138%208.69126%2035.6851%207.96199C35.6419%206.86558%2034.7821%206.09682%2033.6959%206.14656C33.5914%206.15085%2033.4872%206.16001%2033.3834%206.17293Z'%20fill='%23FF7439'/%3e%3cpath%20id='Vector_2'%20d='M45.5498%2015.976C46.6399%2015.986%2049.9504%2015.7705%2050.7361%2016.241C51.0104%2016.4053%2051.2831%2016.6446%2051.4181%2016.9397C51.892%2017.9763%2052.1015%2019.357%2052.3802%2020.4819L54.0582%2027.2308C54.5046%2028.9073%2054.9023%2030.6043%2055.3338%2032.2824C55.6029%2033.329%2055.9417%2034.4293%2054.9705%2035.2255C54.8158%2035.359%2054.4427%2035.5934%2054.2329%2035.6091C52.7731%2035.7184%2051.1693%2035.6701%2049.7108%2035.6679L39.4635%2035.6649L14.5239%2035.6632C10.471%2035.6631%206.41808%2035.6665%202.36531%2035.6698C1.79359%2035.6657%201.33794%2035.6604%200.844568%2035.337C-0.57365%2034.4073%200.381076%2032.2112%200.72189%2030.8501L1.93462%2025.9936L3.28579%2020.566C3.53371%2019.5688%203.77194%2018.5694%204.04289%2017.5781C4.30559%2016.6172%204.74298%2016.1492%205.73966%2015.9892C7.15095%2015.9419%208.72017%2015.9778%2010.1434%2015.9809L10.1451%2023.9585C7.37011%2024.097%207.74242%2027.5535%209.84963%2027.6469C11.6268%2027.7258%2013.6164%2027.6909%2015.4098%2027.691L26.229%2027.6915L39.1339%2027.691L43.273%2027.6909C44.748%2027.6909%2047.2174%2028.0848%2047.3773%2025.9908C47.4212%2025.4807%2047.2565%2024.9745%2046.9209%2024.5879C46.5265%2024.141%2046.1143%2024.0046%2045.5418%2023.9673L45.5498%2015.976Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",Jn=i.div`
|
|
461
|
+
`;function Gn({name:s,priceCredits:o,onClose:a}){const{session:d}=He(),{data:h,isError:f}=St(d),l=Et(),m=Oe(),[c,g]=u.useState("confirm"),[p,b]=u.useState(""),[C,w]=u.useState(null),[$,j]=u.useState(!1),[x,k]=u.useState("preparing"),L=u.useRef(!1),T=p.trim().toLowerCase()===s.toLowerCase(),N=c==="completing",A=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"&&!N&&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}},[N,a]);async function R(){if(!(!d||!T||P||S||L.current)){L.current=!0,g("completing"),w(null),k("preparing");try{const y=await dn({name:s,identity:d.identity,signer:d.signer,onProgress:k});oe("Shop Completed Purchase",{items:[{item_id:null,contract_address:null,token_id:null,price_usd:Le(o??0),category:"name",is_smart:!1}],purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:o??null,value_usd:Le(o??0),transaction_hash:y.originTxHash??null,settlement:y.status}),l.invalidateQueries({queryKey:["usd-balance"]}),l.invalidateQueries({queryKey:["my-assets"]}),g(y.status==="registered"?"success":"pending")}catch(y){oe(It(y)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:_t(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{L.current=!1}}}const _=c!=="success"&&c!=="pending",v=Tt(d==null?void 0:d.providerType),M=v?2:1,z=v&&(x==="preparing"||x==="awaiting-confirmation"),I=z?1:M,re=z?n("names.confirming"):n("names.completing"),U=x==="registering"?n("names.processingRegistering"):null;return e.jsx(wn,{onClick:N?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:N,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(H,{})," ",le(h,f)]}),e.jsx(ue,{})]}),(c==="confirm"||c==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs(fe,{children:[e.jsx(Ae,{"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(H,{}),A]})]}),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(Ln,{children:".dcl.eth"})]})]}),F?e.jsxs(we,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsx("span",{children:F})]}):null,e.jsx(ye,{onClick:()=>void R(),disabled:!T||!d||P||S,children:n("names.buyCta")})]})]}),c==="completing"&&e.jsxs(Nn,{children:[e.jsx(Mn,{src:Rt,alt:"",width:61,height:61}),e.jsxs(zn,{children:[e.jsx(An,{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}/${M}`})]}),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(H,{})," ",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(Ae,{"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(H,{}),A]})]}),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(H,{})," ",le(h,f)]}),e.jsx(ue,{}),e.jsxs(Un,{children:[e.jsx(On,{"aria-hidden":!0,children:e.jsx(E,{name:"check"})}),e.jsxs(Hn,{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:Kt,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(H,{}),A]})]}),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.6.4-31506645385.commit-6f99e3f/_assets/identity-icon-C8yAW_Gq.svg",Qn="https://cdn.decentraland.org/@dcl/shop/1.6.4-31506645385.commit-6f99e3f/_assets/world-icon-6xQ-PmmW.svg",Zn="https://cdn.decentraland.org/@dcl/shop/1.6.4-31506645385.commit-6f99e3f/_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`
|
|
465
465
|
display: flex;
|
|
466
466
|
align-items: center;
|
|
467
467
|
gap: 6px;
|
|
@@ -551,7 +551,7 @@ import{r as u,b as Oe,j as e,u as et}from"./react-BHaOXxRY.js";import{u as tt,s
|
|
|
551
551
|
gap: 12px;
|
|
552
552
|
`,rs=i.div`
|
|
553
553
|
position: relative;
|
|
554
|
-
`,ls=i("div",
|
|
554
|
+
`,ls=i("div",Xt("invalid"))`
|
|
555
555
|
display: flex;
|
|
556
556
|
align-items: center;
|
|
557
557
|
gap: 8px;
|
|
@@ -616,7 +616,7 @@ import{r as u,b as Oe,j as e,u as et}from"./react-BHaOXxRY.js";import{u as tt,s
|
|
|
616
616
|
align-items: flex-start;
|
|
617
617
|
flex-wrap: wrap;
|
|
618
618
|
}
|
|
619
|
-
`,
|
|
619
|
+
`,Qe=i.a`
|
|
620
620
|
display: inline-flex;
|
|
621
621
|
align-items: center;
|
|
622
622
|
gap: 2px;
|
|
@@ -629,7 +629,7 @@ import{r as u,b as Oe,j as e,u as et}from"./react-BHaOXxRY.js";import{u as tt,s
|
|
|
629
629
|
${t.media.maxWidth("mobile")} {
|
|
630
630
|
margin-left: 0;
|
|
631
631
|
}
|
|
632
|
-
`,hs=i(
|
|
632
|
+
`,hs=i(Qe)`
|
|
633
633
|
color: #ec303a;
|
|
634
634
|
`,ps=i.label`
|
|
635
635
|
flex: 1;
|
|
@@ -697,7 +697,7 @@ import{r as u,b as Oe,j as e,u as et}from"./react-BHaOXxRY.js";import{u as tt,s
|
|
|
697
697
|
line-height: 1.43;
|
|
698
698
|
color: ${t.colors.muted2};
|
|
699
699
|
white-space: nowrap;
|
|
700
|
-
`,
|
|
700
|
+
`,Ze=i.button`
|
|
701
701
|
flex: none;
|
|
702
702
|
display: inline-flex;
|
|
703
703
|
align-items: center;
|
|
@@ -736,7 +736,7 @@ import{r as u,b as Oe,j as e,u as et}from"./react-BHaOXxRY.js";import{u as tt,s
|
|
|
736
736
|
${t.media.maxWidth("mobile")} {
|
|
737
737
|
display: none;
|
|
738
738
|
}
|
|
739
|
-
`,gs=i(
|
|
739
|
+
`,gs=i(Ze)`
|
|
740
740
|
display: none;
|
|
741
741
|
|
|
742
742
|
${t.media.maxWidth("mobile")} {
|
|
@@ -788,7 +788,7 @@ import{r as u,b as Oe,j as e,u as et}from"./react-BHaOXxRY.js";import{u as tt,s
|
|
|
788
788
|
position: static;
|
|
789
789
|
margin-top: 8px;
|
|
790
790
|
}
|
|
791
|
-
`,ws=i(
|
|
791
|
+
`,ws=i(Qe)`
|
|
792
792
|
color: inherit;
|
|
793
793
|
`,js=i.section`
|
|
794
794
|
display: flex;
|
|
@@ -887,7 +887,7 @@ import{r as u,b as Oe,j as e,u as et}from"./react-BHaOXxRY.js";import{u as tt,s
|
|
|
887
887
|
`,Ss=i.span`
|
|
888
888
|
font-weight: 700;
|
|
889
889
|
color: ${t.colors.white};
|
|
890
|
-
`,
|
|
890
|
+
`,Be=i.a`
|
|
891
891
|
display: inline-flex;
|
|
892
892
|
align-items: center;
|
|
893
893
|
gap: 2px;
|
|
@@ -918,7 +918,7 @@ import{r as u,b as Oe,j as e,u as et}from"./react-BHaOXxRY.js";import{u as tt,s
|
|
|
918
918
|
clip: rect(0, 0, 0, 0);
|
|
919
919
|
white-space: nowrap;
|
|
920
920
|
border: 0;
|
|
921
|
-
`,Ts="https://docs.decentraland.org/creator/worlds/about/",Rs="https://governance.decentraland.org";function Fe(s){const o=typeof window<"u"?window.location.hostname:"";return`${o.endsWith("decentraland.org")?"https://decentraland.org":o.endsWith("decentraland.today")?"https://decentraland.today":"https://decentraland.zone"}/marketplace/names/browse?search=${encodeURIComponent(s)}`}function _s({onBack:s}){De({title:n("seo.names.title"),description:n("seo.names.description")});const{session:o,signIn:a}=He(),d=hn(),{data:h}=Ge(),f=h?qe(
|
|
921
|
+
`,Ts="https://docs.decentraland.org/creator/worlds/about/",Rs="https://governance.decentraland.org";function Fe(s){const o=typeof window<"u"?window.location.hostname:"";return`${o.endsWith("decentraland.org")?"https://decentraland.org":o.endsWith("decentraland.today")?"https://decentraland.today":"https://decentraland.zone"}/marketplace/names/browse?search=${encodeURIComponent(s)}`}function _s({onBack:s}){De({title:n("seo.names.title"),description:n("seo.names.description")});const{session:o,signIn:a}=He(),d=hn(),{data:h}=Ge(),f=h?qe(Q,h):null,[l,m]=u.useState(""),[c,g]=u.useState("idle"),[p,b]=u.useState(!1),[C,w]=u.useState(!1),[$,j]=u.useState(()=>{var v;return typeof window<"u"&&!!((v=window.matchMedia)!=null&&v.call(window,"(prefers-reduced-motion: reduce)").matches)});u.useEffect(()=>{var z;const v=(z=window.matchMedia)==null?void 0:z.call(window,"(prefers-reduced-motion: reduce)");if(!v)return;const M=I=>j(I.matches);return v.addEventListener("change",M),()=>v.removeEventListener("change",M)},[]);const x=n("names.placeholderExamples"),k=u.useMemo(()=>x.split(",").map(v=>v.trim()).filter(Boolean),[x]),T=gn(k,!C&&!l&&!$)||n("names.inputPlaceholder"),N=u.useRef(null),[A,P]=u.useState(void 0);u.useLayoutEffect(()=>{N.current&&P(N.current.getBoundingClientRect().width)},[l,T]),u.useEffect(()=>{if(!Me(l).ok){g(l.length===0?"idle":"invalid");return}g("checking");const M=new AbortController,z=setTimeout(()=>{(async()=>{try{const I=await sn(l,{signal:M.signal});g(I)}catch(I){if((I==null?void 0:I.name)==="AbortError")return;g("error")}})()},400);return()=>{clearTimeout(z),M.abort()}},[l]);const W=Me(l),B=W.ok&&(c==="available"||c==="error"),S=d&&B,F=!d&&B;function R(){if(S){if(!o){a();return}b(!0)}}const _=e.jsxs(e.Fragment,{children:[n("names.claim"),f!=null?e.jsxs(bs,{children:[e.jsx(H,{}),je(f)]}):null]});return e.jsxs(Xn,{"data-testid":"names-page",children:[e.jsxs(Jn,{"aria-label":n("names.breadcrumbAria"),children:[e.jsx(Yn,{onClick:s,children:n("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(es,{children:n("names.breadcrumbCurrent")})]}),e.jsxs(ts,{children:[e.jsxs(ns,{children:[e.jsxs(ss,{children:[e.jsx(is,{children:n("names.heroTitle")}),e.jsx(os,{children:n("names.heroSubtitle")})]}),e.jsxs(as,{children:[e.jsxs(rs,{"data-testid":"names-input-wrap",children:[e.jsxs(ls,{invalid:c==="taken",children:[e.jsxs(ps,{children:[e.jsx(us,{"aria-hidden":!0,children:"@"}),e.jsx(fs,{value:l,onChange:v=>m(en(v.target.value)),placeholder:T,"aria-label":n("names.inputAria"),autoComplete:"off",spellCheck:!1,maxLength:ae,onFocus:()=>w(!0),style:{width:A!=null?`${A}px`:void 0}}),e.jsx(cs,{ref:N,"aria-hidden":!0,"data-placeholder":!l||void 0,children:l||T}),e.jsx(ms,{children:n("names.suffix")})]}),l.length>0?e.jsxs(xs,{"aria-hidden":!0,children:[l.length,"/",ae]}):null,e.jsx(Ze,{onClick:R,disabled:!S,"data-testid":"names-claim",children:_})]}),c==="taken"?e.jsxs(ds,{role:"status","data-testid":"names-taken",children:[e.jsx(E,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:n("names.taken")}),e.jsxs(hs,{href:Fe(l),target:"_blank",rel:"noopener noreferrer",children:[n("names.takenMakeOffer"),e.jsx(E,{name:"external-link",size:13,"aria-hidden":!0})]})]}):null,c==="checking"?e.jsx(Y,{tone:"muted",role:"status","data-testid":"names-checking",children:n("names.checking")}):F?e.jsxs(Y,{tone:"muted",role:"status","data-testid":"names-disabled",children:[e.jsx(E,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:n("names.registrationDisabled")}),e.jsxs(ws,{href:Fe(l),target:"_blank",rel:"noopener noreferrer",children:[n("names.registrationDisabledLink"),e.jsx(E,{name:"external-link",size:13,"aria-hidden":!0})]})]}):c==="error"?e.jsx(Y,{tone:"muted",role:"status",children:n("names.checkError")}):c==="invalid"&&!W.ok&&W.reason==="too-short"?e.jsx(Y,{tone:"muted",role:"status",children:n("names.tooShort",{min:Ve})}):null]}),e.jsx(gs,{onClick:R,disabled:!S,children:_}),e.jsx(Es,{role:"status","aria-live":"polite",children:c==="available"?n("names.available",{name:l}):""})]})]}),e.jsxs(js,{children:[e.jsxs(vs,{children:[e.jsx(Cs,{children:n("names.whyTitle")}),e.jsx($s,{children:n("names.whyIntro")})]}),e.jsxs(ks,{children:[e.jsxs(ee,{children:[e.jsx(te,{src:Vn,alt:""}),e.jsxs(ne,{children:[e.jsx(se,{children:n("names.why1Title")}),e.jsx(ie,{children:n("names.why1")})]})]}),e.jsxs(ee,{children:[e.jsx(te,{src:Qn,alt:""}),e.jsxs(ne,{children:[e.jsx(se,{children:n("names.why2Title")}),e.jsxs(ie,{children:[n("names.why2")," ",e.jsx(Ss,{children:n("names.why2Address")})]}),e.jsxs(Be,{href:Ts,target:"_blank",rel:"noopener noreferrer",children:[n("names.learnMore"),e.jsx(E,{name:"external-link","aria-hidden":!0})]})]})]}),e.jsxs(ee,{children:[e.jsx(te,{src:Zn,alt:""}),e.jsxs(ne,{children:[e.jsx(se,{children:n("names.why3Title")}),e.jsx(ie,{children:n("names.why3")})]})]}),e.jsxs(ee,{children:[e.jsx(te,{src:Kn,alt:""}),e.jsxs(ne,{children:[e.jsx(se,{children:n("names.why4Title")}),e.jsx(ie,{children:n("names.why4")}),e.jsxs(Be,{href:Rs,target:"_blank",rel:"noopener noreferrer",children:[n("names.learnMore"),e.jsx(E,{name:"external-link","aria-hidden":!0})]})]})]})]})]})]}),p?e.jsx(Gn,{name:l,priceCredits:f,onClose:()=>b(!1)}):null]})}const Is=i.p`
|
|
922
922
|
display: flex;
|
|
923
923
|
align-items: center;
|
|
924
924
|
gap: 10px;
|
|
@@ -934,5 +934,5 @@ import{r as u,b as Oe,j as e,u as et}from"./react-BHaOXxRY.js";import{u as tt,s
|
|
|
934
934
|
background: rgba(211, 51, 51, 0.1);
|
|
935
935
|
color: ${t.colors.err};
|
|
936
936
|
}
|
|
937
|
-
`,Ue=48,
|
|
938
|
-
//# sourceMappingURL=Assets-
|
|
937
|
+
`,Ue=48,Ls=["all","on_sale","not_for_sale"];function Ys(){const[s]=et(),o=Oe(),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,$=Ls.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 O=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",r),document.body.style.overflow=O}},[j]);const k=$==="on_sale",L=g&&!Number.isNaN(Number(g))?Number(g):void 0,T=p&&!Number.isNaN(Number(p))?Number(p):void 0,N=Lt(),A=m?gt[m]:void 0,P=(Ie.find(r=>r.key===C)??Ie[0]).server,W={category:w,rarities:c.length?c:void 0,wearableCategories:A,minPriceCredits:L,maxPriceCredits:T,search:a||void 0,sortBy:P,isSmart:b||void 0,onSale:!0,listingType:N?void 0:"primary"},B={category:w,rarities:c.length?c:void 0,wearableCategories:A,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:M,isFetchingNextPage:z,isFetchNextPageError:I,fetchNextPage:re}=Pt(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:L,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:L??null,max_price_credits:T??null,status:$,smart:b,sort:C},result_count:U})},[w,m,c,L,T,C,$,b,R,_,U]);function Te(r){l({category:r,subCategory:null})}function Re(r){l({status:r})}function _e(r){l({rarities:c.includes(r)?c.filter(O=>O!==r):[...c,r]})}function Ye(){l(h)}const q=[];(L!=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(Bt,{message:n("assets.loadError"),testId:"browse-error"}):null,!Se&&S.length===0&&!v?e.jsx(Mt,{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(Ne,{count:Je}):e.jsxs(e.Fragment,{children:[S.map(r=>{if(!k)return e.jsx(X,{item:r,mode:"view"},J(r));const O=r;if(O.source!=="legacy")return e.jsx(X,{item:r},J(r));const K=Ke(O);return K==null?e.jsx(X,{item:r,mode:"view"},J(r)):e.jsx(X,{item:{...O,priceCredits:K}},J(r))}),z?e.jsx(Ne,{count:6}):null]})}),e.jsx(Wt,{hasNextPage:M,isFetching:z,isError:I,onLoadMore:()=>void re()})]})]})})]})}export{Ys as Assets};
|
|
938
|
+
//# sourceMappingURL=Assets-cAsu4mgT.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,L as W,r as P}from"./react-
|
|
1
|
+
import{j as e,L as W,r as P}from"./react-a1pIFzAo.js";import{t as o,s as n,B,m as R,n as F,b as i,o as G,p as O,I as z,q as K,l as w,r as Q,c as H,v as X,w as A,h as Z,x as J,y as I}from"./index-DM0n2FP1.js";import{a as U,b as V,c as Y,d as tt,s as et,e as it}from"./authorizations-DOop5NDs.js";import{f as ot}from"./builder-Bl2xQFmH.js";import{m as at}from"./mana-matic-CEqvSwrJ.js";import{f as nt}from"./errors-BWl3inft.js";import"./dcl-schemas-BnW7lhvI.js";import"./sentry-BqCH2ZAW.js";import"./ethers-CjbRI_Sk.js";import"./intl-AKLEHPeO.js";import"./sendMetaTransaction-Op3Ol3sY.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="a866f4a8-7519-4e92-9c7d-b6b1ee34019e",t._sentryDebugIdIdentifier="sentry-dbid-a866f4a8-7519-4e92-9c7d-b6b1ee34019e")}catch{}})();const st=R`
|
|
2
2
|
to { transform: rotate(360deg); }
|
|
3
3
|
`,rt=R`
|
|
4
4
|
to { background-position: -200% 0; }
|
|
@@ -189,4 +189,4 @@ import{j as e,L as W,r as P}from"./react-BHaOXxRY.js";import{t as o,s as n,B,m a
|
|
|
189
189
|
`,M=n(B)`
|
|
190
190
|
margin-top: 12px;
|
|
191
191
|
`;function j({descriptor:t,owner:s,signer:r,name:a,description:c,image:l,icon:p}){const v=Q(),[h,y]=P.useState(!1),{data:u,isLoading:g,refetch:d}=w({queryKey:["authorization",t.id,s],queryFn:()=>it(t,s),staleTime:3e4});async function m(){if(h||g)return;const b=!u;y(!0);try{await et({auth:t,signer:r,active:b}),await d(),v.setQueryData(["authorization",t.id,s],b),A.success(b?i("authorizations.toastActivated",{name:a}):i("authorizations.toastDeactivated",{name:a}))}catch(C){Z(C,{flow:"authorizations",step:b?"grant":"revoke"}),A.error(nt(C,i("authorizations.errorGeneric")))}finally{y(!1)}}const N=g?i("authorizations.checking"):u?i("authorizations.active"):i("authorizations.inactive");return e.jsxs(ht,{"data-testid":`authorization-${t.id}`,"data-active":!!u,children:[e.jsx(gt,{children:l?e.jsx("img",{src:l,alt:""}):p}),e.jsxs(mt,{children:[e.jsx(ft,{title:a,children:a}),e.jsx(xt,{children:c})]}),e.jsxs(bt,{children:[e.jsx(yt,{"data-active":!!u,children:N}),h?e.jsx(jt,{"aria-label":i("authorizations.working")}):e.jsx(zt,{type:"button","data-testid":`authorization-toggle-${t.id}`,"data-active":!!u,role:"switch","aria-checked":!!u,"aria-label":u?i("authorizations.deactivateAria",{name:a}):i("authorizations.activateAria",{name:a}),disabled:g,onClick:()=>void m()})]})]})}const x=500,q=10,vt=x*q;async function _(t,s){const r=await I(t,{category:s,first:x}),a=Math.min(Math.ceil(r.total/x),q),c=await Promise.all(Array.from({length:Math.max(0,a-1)},(l,p)=>I(t,{category:s,first:x,skip:(p+1)*x})));return{assets:[...r.assets,...c.flatMap(l=>l.assets)],truncated:r.total>vt}}function kt(t){return w({queryKey:["owned-collections",t],enabled:!!t,staleTime:6e4,queryFn:async()=>{const[s,r]=await Promise.all([_(t,"wearable"),_(t,"emote")]),a=new Map;for(const c of[...s.assets,...r.assets]){const l=c.contractAddress.toLowerCase();a.has(l)||a.set(l,c)}return{collections:[...a.values()],truncated:s.truncated||r.truncated,scanned:s.assets.length+r.assets.length}}})}function $t(t){return w({queryKey:["contract-registry"],enabled:t,staleTime:1/0,gcTime:1/0,queryFn:J})}function Ct(t,s){const r=s==null?void 0:s.get(t.toLowerCase());if(r)return r;const a=X(t);return a===t?i("authorizations.collectionFallback"):a}function At(t,s){return w({queryKey:["creator-collections",t],enabled:!!t&&!!s,staleTime:6e4,queryFn:async()=>{const r=await ot(t,s),a=new Map;for(const c of r){const l=c.contractAddress.toLowerCase();a.has(l)||a.set(l,c)}return[...a.values()]}})}function Wt(){F({title:i("authorizations.title"),noindex:!0});const{session:t,signIn:s}=G(),r=H.chainId,a=O(t==null?void 0:t.providerType),{data:c,isLoading:l}=kt(a?t==null?void 0:t.address:void 0),{data:p,isLoading:v}=$t(!!a&&!!(t!=null&&t.address)),{data:h,isLoading:y}=At(a?t==null?void 0:t.address:void 0,a?t==null?void 0:t.identity:void 0);if(!t)return e.jsxs(D,{children:[e.jsx(z,{name:"info",size:40,color:o.colors.muted2}),e.jsx(S,{children:i("authorizations.signInTitle")}),e.jsx(L,{children:i("authorizations.signInBody")}),e.jsx(M,{variant:"white",onClick:()=>s(),children:i("storeSettings.signIn")})]});if(!a)return e.jsxs(D,{children:[e.jsx(z,{name:"check",size:40,color:o.colors.ok}),e.jsx(S,{children:i("authorizations.managedTitle")}),e.jsx(L,{children:i("authorizations.managedBody")}),e.jsx(M,{as:W,to:"/items",variant:"white",children:i("authorizations.managedCta")})]});const u=U(r),g=V(r);return e.jsxs(ct,{children:[e.jsxs(lt,{children:[e.jsx(dt,{children:i("authorizations.title")}),e.jsx(ut,{children:i("authorizations.intro")})]}),e.jsxs(k,{children:[e.jsx($,{children:i("authorizations.buyingTitle")}),e.jsxs(f,{children:[e.jsx(j,{descriptor:u,owner:t.address,signer:t.signer,name:i("authorizations.creditsName"),description:i("authorizations.creditsDesc"),icon:e.jsx(K,{className:"ccy-mark"})}),e.jsx(j,{descriptor:g,owner:t.address,signer:t.signer,name:i("authorizations.manaName"),description:i("authorizations.manaDesc"),icon:e.jsx(pt,{src:at,alt:"","aria-hidden":!0})})]})]}),e.jsxs(k,{children:[e.jsx($,{children:i("authorizations.sellingTitle")}),c!=null&&c.truncated?e.jsx(wt,{"data-testid":"authorizations-selling-truncated",children:i("authorizations.sellingTruncated",{count:c.scanned})}):null,l||v?e.jsx(f,{"aria-busy":"true","aria-label":i("authorizations.checking"),children:Array.from({length:3}).map((d,m)=>e.jsx(E,{"aria-hidden":!0},m))}):c&&c.collections.length>0?e.jsx(f,{children:c.collections.map(d=>e.jsx(j,{descriptor:Y(d.contractAddress,r),owner:t.address,signer:t.signer,name:Ct(d.contractAddress,p),description:i("authorizations.sellingDesc"),image:d.image,icon:e.jsx(z,{name:"pen",size:18})},d.contractAddress))}):e.jsx(T,{children:i("authorizations.sellingEmpty")})]}),e.jsxs(k,{children:[e.jsx($,{children:i("authorizations.mintingTitle")}),y?e.jsx(f,{"aria-busy":"true","aria-label":i("authorizations.checking"),children:Array.from({length:3}).map((d,m)=>e.jsx(E,{"aria-hidden":!0},m))}):h&&h.length>0?e.jsx(f,{children:h.map(d=>e.jsx(j,{descriptor:tt(d.contractAddress,r),owner:t.address,signer:t.signer,name:d.name||i("authorizations.collectionFallback"),description:i("authorizations.mintingDesc"),icon:e.jsx(z,{name:"pen",size:18})},d.contractAddress))}):e.jsx(T,{children:i("authorizations.mintingEmpty")})]})]})}export{Wt as Authorizations};
|
|
192
|
-
//# sourceMappingURL=Authorizations-
|
|
192
|
+
//# sourceMappingURL=Authorizations-Cty0gb4H.js.map
|