@dcl/shop 1.19.0 → 1.19.1-36725100317.commit-9ad1d65
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-BeGw9uju.js → Activity-B5zzd848.js} +4 -4
- package/_assets/{AnimatedBackground-DNkejhsz.js → AnimatedBackground-VRW8L0l_.js} +6 -6
- package/_assets/Assets-DElD46e4.js +990 -0
- package/_assets/{Cart-C1IsnQc1.js → Cart-NYBgZajK.js} +2 -2
- package/_assets/{Collection-D75ifw6k.js → Collection-VReUKYX4.js} +9 -9
- package/_assets/{CollectionCarousel-CbXDISuB.js → CollectionCarousel-BsmjChqj.js} +5 -5
- package/_assets/{Confetti-tWvQ-0RK.js → Confetti-B6lJh05A.js} +4 -4
- package/_assets/{ConstantsUtil-BuyWmRFN.js → ConstantsUtil-DOzjbTf_.js} +2 -2
- package/_assets/{ContentClient-MDKn9KZ6.js → ContentClient-QWJ-MRTv.js} +2 -2
- package/_assets/{Creator-Cdj2b5rq.js → Creator-iEzjKmAX.js} +28 -28
- package/_assets/{CreditPackPicker-7XbTLYv_.js → CreditPackPicker-IzExNyem.js} +2 -2
- package/_assets/{CreditRate-DAFWOS7H.js → CreditRate-DPEqOjze.js} +2 -2
- package/_assets/DCL_LogoPattern_Halloween-X4GSYgoE.png +0 -0
- package/_assets/DeploymentBuilder-Div5A3ap.js +4 -0
- package/_assets/{EmotePlaybackBar-bMl7SiBo.js → EmotePlaybackBar-DPdREWpy.js} +3 -3
- package/_assets/{ErrorNotice-BWwJBVf7.js → ErrorNotice-l-B8k9a3.js} +2 -2
- package/_assets/Event-DHx3wxY2.js +145 -0
- package/_assets/{ExchangeController-Bvc3JmJy.js → ExchangeController-BBXxCflh.js} +2 -2
- package/_assets/{Faq-B6xE2Nny.js → Faq-Q5u9p2nz.js} +2 -2
- package/_assets/{Filters-BrIgTlFj.js → Filters-CEz8bjG2.js} +9 -9
- package/_assets/{GetCredits-BysShVRx.js → GetCredits-Cp2uSMun.js} +2 -2
- package/_assets/{Grow-C2MqLB21.js → Grow-PRJNv7kv.js} +2 -2
- package/_assets/{HelpersUtil-CUdtyhK-.js → HelpersUtil-CYntPdrM.js} +2 -2
- package/_assets/{IssueModal-DL7GaVIB.js → IssueModal-dfPBFkoi.js} +3 -3
- package/_assets/{ItemDetail-bcRkUoe5.js → ItemDetail-DCEFhzk9.js} +2 -2
- package/_assets/{LoadMore-B_zhlrmT.js → LoadMore-BTzn9wsv.js} +2 -2
- package/_assets/{ManaPricingBanner-9wEAAFHo.js → ManaPricingBanner-BUmW2vNE.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-D07uEXpE.js → ManaPricingBanner.styles-GJHj3SUT.js} +2 -2
- package/_assets/{MyAssets-BWzErZGx.js → MyAssets-BNLjGljT.js} +2 -2
- package/_assets/{MyFavorites-DbWTtT54.js → MyFavorites-K6mJFdxE.js} +10 -10
- package/_assets/{MyStore-CrqnoFL4.js → MyStore-B5MwHZ_b.js} +30 -26
- package/_assets/{NetworkUtil-DNqR901Z.js → NetworkUtil-BSR_v9Du.js} +2 -2
- package/_assets/{NotFound-CfimhF4l.js → NotFound-D-sp5ygF.js} +2 -2
- package/_assets/{NotificationsBell-DxAPdgbi.js → NotificationsBell-RixvtH4A.js} +2 -2
- package/_assets/{OutfitDetail-CDY4NwaD.js → OutfitDetail-C4QbGOBC.js} +2 -2
- package/_assets/{OutfitPreview-CRSBczE7.js → OutfitPreview-8mWTX3pc.js} +2 -2
- package/_assets/{OutfitStudio-Nl_O_Ei7.js → OutfitStudio-BYEs3DVt.js} +2 -2
- package/_assets/{PaymentMethodStep-7Nf59EYo.js → PaymentMethodStep-DM8c-3bT.js} +2 -2
- package/_assets/{PhArrowCircleDown-BgP2jbf5.js → PhArrowCircleDown-ak13FLPU.js} +4 -4
- package/_assets/{PhArrowClockwise-CuNU0iSl.js → PhArrowClockwise-B1_sSsDG.js} +5 -5
- package/_assets/{PhArrowDown-BrLks3Uz.js → PhArrowDown-3SgA8Sjh.js} +3 -3
- package/_assets/{PhArrowLeft-BbZGSN_s.js → PhArrowLeft-D0xJapef.js} +5 -5
- package/_assets/{PhArrowRight-DqLi6_uj.js → PhArrowRight-BEzeYnOS.js} +4 -4
- package/_assets/{PhArrowSquareOut-CX0ZRgNC.js → PhArrowSquareOut-ncs5AP9J.js} +2 -2
- package/_assets/{PhArrowUp-D9ugstgK.js → PhArrowUp-DAiP5DLU.js} +4 -4
- package/_assets/{PhArrowUpRight-Bpfn12eW.js → PhArrowUpRight-CpVGKPzB.js} +4 -4
- package/_assets/{PhArrowsClockwise-CRZyQVpN.js → PhArrowsClockwise-BW3eqMIv.js} +4 -4
- package/_assets/{PhArrowsDownUp-CV1NqVLb.js → PhArrowsDownUp-CL__e9hj.js} +5 -5
- package/_assets/{PhArrowsLeftRight-DvGI6Nto.js → PhArrowsLeftRight-CKf-pynd.js} +5 -5
- package/_assets/{PhBank-BRxdKSKq.js → PhBank-CYFoeatO.js} +5 -5
- package/_assets/{PhBrowser-C_wNKcTe.js → PhBrowser-B8QcDy-X.js} +4 -4
- package/_assets/{PhCaretDown-DBNFm85V.js → PhCaretDown-BJucyF_I.js} +5 -5
- package/_assets/{PhCaretLeft-Cad__LUx.js → PhCaretLeft-DXM-1eI2.js} +4 -4
- package/_assets/PhCaretRight-CUbjYMvE.js +15 -0
- package/_assets/{PhCaretUp-DE2FiuTS.js → PhCaretUp-XANHSPHz.js} +5 -5
- package/_assets/{PhCheck-y4MOxgof.js → PhCheck-DtDQz9uq.js} +5 -5
- package/_assets/{PhCircleHalf-xlPKmtS7.js → PhCircleHalf-N8EEYP9W.js} +5 -5
- package/_assets/{PhClock-BBNMhMKw.js → PhClock-D4HOB74r.js} +5 -5
- package/_assets/{PhCompass-DpAl_LfZ.js → PhCompass-DaDix-lb.js} +2 -2
- package/_assets/{PhCopy-D4HwCqa2.js → PhCopy-DfG9L19w.js} +3 -3
- package/_assets/{PhCreditCard-CD12JEEL.js → PhCreditCard-54JvBHpJ.js} +5 -5
- package/_assets/{PhCurrencyDollar-DPFX6nyR.js → PhCurrencyDollar--4El0jyD.js} +5 -5
- package/_assets/{PhDesktop-CNhh70Hf.js → PhDesktop-C59sef21.js} +3 -3
- package/_assets/{PhDeviceMobile-DQgHhtB0.js → PhDeviceMobile-CqU5hwgB.js} +4 -4
- package/_assets/{PhDotsThree-B1gOaArE.js → PhDotsThree-DKKOuXPs.js} +4 -4
- package/_assets/{PhEnvelope-CGnM9AiA.js → PhEnvelope-BV_YRi_L.js} +4 -4
- package/_assets/{PhFunnelSimple-D8YZwX53.js → PhFunnelSimple-DCJ64Yx1.js} +5 -5
- package/_assets/{PhGlobe-CXtg_GcB.js → PhGlobe-CfDkOX-M.js} +2 -2
- package/_assets/{PhIdentificationCard-oMtubY4C.js → PhIdentificationCard-CZevIBOX.js} +2 -2
- package/_assets/{PhImage-DKp6-EHn.js → PhImage-BvwFiqL_.js} +2 -2
- package/_assets/{PhInfo-CPd-HNhu.js → PhInfo-ByE07_XD.js} +5 -5
- package/_assets/{PhLightbulb-C47afrxR.js → PhLightbulb-COGGqe5o.js} +5 -5
- package/_assets/{PhMagnifyingGlass-DBaqb5ff.js → PhMagnifyingGlass-CoJqZmSp.js} +3 -3
- package/_assets/{PhPaperPlaneRight-FQGhQUrW.js → PhPaperPlaneRight-BOtHGdWm.js} +2 -2
- package/_assets/{PhPlus-B_CxFvZS.js → PhPlus-BtM9eWY5.js} +3 -3
- package/_assets/{PhPower-DRTSLLeY.js → PhPower-XoT0HBKo.js} +3 -3
- package/_assets/{PhPuzzlePiece-zlHiPdqx.js → PhPuzzlePiece-DPN_Gt0E.js} +3 -3
- package/_assets/{PhQrCode-riEgpq80.js → PhQrCode-Ba2Av-ws.js} +3 -3
- package/_assets/{PhQuestion-DHYK7o0G.js → PhQuestion-BsODZylj.js} +3 -3
- package/_assets/{PhQuestionMark-ZgOsaVvK.js → PhQuestionMark-CQGfqgyU.js} +3 -3
- package/_assets/{PhSealCheck-B5VE_9Jt.js → PhSealCheck-ORxCOA65.js} +2 -2
- package/_assets/{PhSignOut-DKQOfDHS.js → PhSignOut-CIIz9cbC.js} +4 -4
- package/_assets/{PhSpinner-B3k7aAJt.js → PhSpinner-v_BVhkr6.js} +3 -3
- package/_assets/{PhTrash-CD2fhMLB.js → PhTrash-DaneU5r-.js} +3 -3
- package/_assets/{PhUser-BeKUoVY6.js → PhUser-CKCQsYp2.js} +5 -5
- package/_assets/{PhVault-DC9QjU0-.js → PhVault-q-BY5Hn5.js} +5 -5
- package/_assets/{PhWallet-djswo-CG.js → PhWallet-Df5kuqF4.js} +4 -4
- package/_assets/{PhWarning-B4g8NvcF.js → PhWarning-DmzK9PIH.js} +2 -2
- package/_assets/{PhWarningCircle-xLZ7sbu0.js → PhWarningCircle-B6Azmmj3.js} +5 -5
- package/_assets/{PhX-BVzMqBjL.js → PhX-Bv7tUluK.js} +5 -5
- package/_assets/{SaleCountdown-C2WQWUha.js → SaleCountdown-kZl2m740.js} +2 -2
- package/_assets/{Spinner-AS4fD5FB.js → Spinner-B9OmHQ8e.js} +2 -2
- package/_assets/{StoreSettings-BdKCVf5m.js → StoreSettings-DI4f6kta.js} +2 -2
- package/_assets/{Success-MSNkSCvx.js → Success-B1oc-SkP.js} +5 -5
- package/_assets/{SwapController-n7WUWWo1.js → SwapController-DOA12iBg.js} +2 -2
- package/_assets/{Tooltip-csxTKEcm.js → Tooltip-DlenNQy2.js} +2 -2
- package/_assets/{TradeService-CMS8HH-z.js → TradeService-BCmWH8n7.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-DCDZ_-PL.js → W3MFrameProviderSingleton-XFSCy2hy.js} +4 -4
- package/_assets/{WebCryptoP256-4WVcg93v.js → WebCryptoP256-DORCJv8C.js} +2 -2
- package/_assets/{add-C46RTTNX.js → add-WC3KG-NP.js} +3 -3
- package/_assets/{all-wallets-byTNDEq1.js → all-wallets-BV2RKDKX.js} +2 -2
- package/_assets/{app-store-CaKIhI-8.js → app-store-DzdJFJvJ.js} +3 -3
- package/_assets/{apple-DAMB_3Lk.js → apple-C_YCXF5K.js} +3 -3
- package/_assets/{arrow-bottom-circle-Bv2eZVEF.js → arrow-bottom-circle-CWERGNL8.js} +3 -3
- package/_assets/arrow-bottom-lj5jq4hP.js +9 -0
- package/_assets/{arrow-left-D0I0JXz4.js → arrow-left-BHfhO25z.js} +2 -2
- package/_assets/{arrow-right-BHc70exa.js → arrow-right-DrvdIWK8.js} +3 -3
- package/_assets/{arrow-top-uM_hNW8Z.js → arrow-top-C5YdnARR.js} +3 -3
- package/_assets/async-directive-Ul6OERsh.js +10 -0
- package/_assets/{bank-CQUOEuRq.js → bank-CcJhMycN.js} +2 -2
- package/_assets/{basic-tIHTwqmd.js → basic-BGVPmU8x.js} +2 -2
- package/_assets/batAnimation-s3_qhlT7.js +2 -0
- package/_assets/{biconomy-CUKH-Fxi.js → biconomy-DcHldalF.js} +2 -2
- package/_assets/{browseLayout.styles-CZlPJ6m5.js → browseLayout.styles-Bgc_8ycQ.js} +2 -2
- package/_assets/{browser-pgcIASRW.js → browser-4rzkrzV9.js} +2 -2
- package/_assets/{browser-Bh67F6hL.js → browser-CePgleG4.js} +3 -3
- package/_assets/{browser-BHvjNOO8.js → browser-DOFnfp7B.js} +2 -2
- package/_assets/{browser-ponyfill-BT5LnFt5.js → browser-ponyfill-DRmdLBfF.js} +2 -2
- package/_assets/{buy-Co-ENVXc.js → buy-GBacz4js.js} +2 -2
- package/_assets/{buy-gasless-DWSGCjEQ.js → buy-gasless-_RaoHNGk.js} +2 -2
- package/_assets/{card-DcQ1wkCr.js → card-vJcgWj0J.js} +2 -2
- package/_assets/{ccip-BjpbgG2c.js → ccip-BiQiXx6N.js} +2 -2
- package/_assets/{ccip-BCPTRikp.js → ccip-DXlhCvFp.js} +2 -2
- package/_assets/{chains-WDppbU6H.js → chains-B3KZmkxv.js} +2 -2
- package/_assets/{checkmark-GDL9YfL4.js → checkmark-BdVL_wyR.js} +2 -2
- package/_assets/{checkmark-bold-B-Sg0XJy.js → checkmark-bold-D2_kDMAk.js} +2 -2
- package/_assets/chevron-bottom-D0Fjkofu.js +9 -0
- package/_assets/{chevron-left-B_RU4s1F.js → chevron-left-C9tCZw7F.js} +2 -2
- package/_assets/{chevron-right-C6ckznAo.js → chevron-right-CFriZlYk.js} +2 -2
- package/_assets/{chevron-top-CJOmtrv2.js → chevron-top-CI7Nc1Hh.js} +3 -3
- package/_assets/{chrome-store-s39Q_LJM.js → chrome-store-BPxSE7E7.js} +3 -3
- package/_assets/{class-map-BxMzgOIb.js → class-map-uVWd2sCT.js} +4 -4
- package/_assets/{clock-DmJj-grN.js → clock-CCT_gA8y.js} +3 -3
- package/_assets/{close-D4d1U5NV.js → close-CVrMDBuL.js} +2 -2
- package/_assets/{coinPlaceholder-VDdmV3rm.js → coinPlaceholder-vau3Ommw.js} +2 -2
- package/_assets/collectionPage.styles-Dfsxcebr.js +41 -0
- package/_assets/common-CHcYC1R_.js +2 -0
- package/_assets/{compass-O2jaVbub.js → compass-BVX94cA4.js} +2 -2
- package/_assets/{controller-CUoM3_oQ.js → controller-DHzYDV7e.js} +3 -3
- package/_assets/{copy-D2eE3KCY.js → copy-DbIo246v.js} +2 -2
- package/_assets/{core-BXYVC2kU.js → core-yLLyJpF5.js} +5 -5
- package/_assets/{createSvgIcon-DPbcs2v5.js → createSvgIcon-OaR93ddo.js} +2 -2
- package/_assets/{crumbs.styles-txSK4dTM.js → crumbs.styles-CHgrOACG.js} +2 -2
- package/_assets/cursor-CRt00jB7.js +4 -0
- package/_assets/{cursor-transparent-DxuBEx9O.js → cursor-transparent-D_Cn2Qj1.js} +2 -2
- package/_assets/{custom-DRklnkpg.js → custom-CbWKfXO0.js} +2 -2
- package/_assets/{data-capture-nO0V04_f.js → data-capture-DFDvS1Sq.js} +5 -5
- package/_assets/{dcl-schemas-Ch5C6FYh.js → dcl-schemas-FmJ72SB7.js} +2 -2
- package/_assets/decimals-CwcSBm8w.js +2 -0
- package/_assets/decimals-DRg7-_Pl.js +2 -0
- package/_assets/{desktop-DwZtv9fm.js → desktop-DiOFIHxS.js} +2 -2
- package/_assets/detectExtension-CQyVqPFR.js +2 -0
- package/_assets/{disconnect-BbwiqFJ2.js → disconnect-DJcY0BVy.js} +3 -3
- package/_assets/{discord-qWAUKbRO.js → discord-CFlQgGeS.js} +3 -3
- package/_assets/{disposePreview-mDuBaZ_g.js → disposePreview-C9JqnFBy.js} +2 -2
- package/_assets/{email-C5fI40n1.js → email-BxUpfNZp.js} +7 -7
- package/_assets/{embedded-wallet-5cSN7XT1.js → embedded-wallet-Cc40BA4b.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-DAOgibG3.js → emotion-styled.browser.esm-DHoc-ElH.js} +2 -2
- package/_assets/{engine-5oDXn_7r.js → engine-BzFhB8jG.js} +2 -2
- package/_assets/{errors-CLi9K-L1.js → errors-BxIUc_Lk.js} +2 -2
- package/_assets/estimate-l1-fee-Dcho55E-.js +2 -0
- package/_assets/eth_estimateGas-Drstbp2I.js +2 -0
- package/_assets/eth_getStorageAt-Br3mY6Fb.js +2 -0
- package/_assets/eth_getTransactionCount-DYJpMF_Z.js +2 -0
- package/_assets/ethereum-DPj5nzcJ.js +2 -0
- package/_assets/{ethers-C4a6Jf75.js → ethers-CoY9-2x5.js} +2 -2
- package/_assets/{etherscan-TUQ32gbU.js → etherscan-B_DEmwcU.js} +3 -3
- package/_assets/{events-VdMuMMqI.js → events-DWMHJjPM.js} +2 -2
- package/_assets/{exclamation-triangle-ETkxexlo.js → exclamation-triangle-CwRHSRAS.js} +2 -2
- package/_assets/{execute-DYxb7ppj.js → execute-BLW-CT-V.js} +3 -3
- package/_assets/{extension-DoOVmXmT.js → extension-C5CHNEBM.js} +2 -2
- package/_assets/{external-link-BEPN-Y2j.js → external-link-DhWG0oh3.js} +3 -3
- package/_assets/{extractIPFS-C98ZY173.js → extractIPFS-TyIRHhJV.js} +2 -2
- package/_assets/{facebook-BmPLPVaB.js → facebook-ZbOHRELg.js} +3 -3
- package/_assets/{farcaster-BLIAglQl.js → farcaster-MlS0fAkK.js} +2 -2
- package/_assets/{features-DJY0e3Bz.js → features-D9zeh0cl.js} +2 -2
- package/_assets/{fetchTokenMetadata-HORvvXxg.js → fetchTokenMetadata-60xWvDhP.js} +3 -3
- package/_assets/{field.styles-CalXkDdx.js → field.styles-DI8HERk5.js} +2 -2
- package/_assets/filters-ByxHqr_b.js +9 -0
- package/_assets/{fortmatic-BNzOK5JO.js → fortmatic-vBzX1ydL.js} +2 -2
- package/_assets/{get-bytecode-IOvurXFJ.js → get-bytecode-Cb_yJGtN.js} +2 -2
- package/_assets/get-ecosystem-wallet-info-Bd4g5Zw8.js +2 -0
- package/_assets/{getBalance-BHvnzhG9.js → getBalance-CaaVT6UI.js} +3 -3
- package/_assets/getInstalledModules-DYBYgDg7.js +2 -0
- package/_assets/getNFT-CWtHB9-T.js +3 -0
- package/_assets/getNFT-_8vJS1-l.js +2 -0
- package/_assets/{github-BiA5cQMJ.js → github-DcWwSd2A.js} +3 -3
- package/_assets/{google-CsF9xgle.js → google-BWF_TAVo.js} +2 -2
- package/_assets/{grid.styles-CpB9wS2H.js → grid.styles-DdTmyIUo.js} +2 -2
- package/_assets/{hashTypedData-_2VHuDSf.js → hashTypedData-Dj3XLLHc.js} +2 -2
- package/_assets/{hashTypedData-BcOqLlJx.js → hashTypedData-UMFCbF0p.js} +2 -2
- package/_assets/{help-circle-Bwgxn3Vn.js → help-circle-Chc_vCdy.js} +3 -3
- package/_assets/{id-O5raZ1NS.js → id-7VZ83soE.js} +3 -3
- package/_assets/{image-CbhOQpP5.js → image-Bgj_xLD4.js} +2 -2
- package/_assets/{import-BnQRG6Kg.js → import-C1v3FZg6.js} +2 -2
- package/_assets/{in-app-BdFgV4nn.js → in-app-BZlrKs3p.js} +2 -2
- package/_assets/in-app-wallet-calls-BzIIGkNz.js +2 -0
- package/_assets/{index-D_FWYvi-.js → index-5M6_eVo-.js} +2 -2
- package/_assets/{index-B5ISO45B.js → index-7C6mSaWj.js} +2 -2
- package/_assets/{index-B1M-nsDU.js → index-9aOhqqIs.js} +2 -2
- package/_assets/{index-DRXO843V.js → index-Adj98LWl.js} +2 -2
- package/_assets/{index-DlR8bQOt.js → index-B6qfheZ6.js} +2 -2
- package/_assets/{index-DK9xkfU9.js → index-BAWLMZqu.js} +2 -2
- package/_assets/{index-CtNd1uez.js → index-BEnfmGyx.js} +3 -3
- package/_assets/{index-CYDLEc6j.js → index-BFRQ9NTI.js} +4 -4
- package/_assets/{index-DyD3itci.js → index-BKbQPGFF.js} +2 -2
- package/_assets/{index-DfjCnhTa.js → index-BU_ecs3N.js} +2 -2
- package/_assets/{index-B5wETTDl.js → index-BW5gL32y.js} +3 -3
- package/_assets/{index-DTCPOepm.js → index-BW8gxEMo.js} +3 -3
- package/_assets/{index-DBAqJN7s.js → index-BaHkI_B1.js} +4 -4
- package/_assets/{index-B62cgvkR.js → index-BbKlIxsP.js} +4 -4
- package/_assets/{index-PALLiW3-.js → index-BjmgJGeK.js} +2 -2
- package/_assets/{index-CT2L6VvZ.js → index-BoHahzW3.js} +4 -4
- package/_assets/{index-CKkJi-bq.js → index-BoltC-GJ.js} +2 -2
- package/_assets/{index-CVY0S9OX.js → index-Bvt8xmPz.js} +2 -2
- package/_assets/{index-COspzOWC.js → index-BwTDQfAT.js} +5 -5
- package/_assets/{index-B6uQDfO3.js → index-BzRgNHY8.js} +2 -2
- package/_assets/{index-C0dl8jmt.js → index-C0GTHzFa.js} +2 -2
- package/_assets/index-C2Hxxi-Q.js +2 -0
- package/_assets/{index-BMVjzD_U.js → index-CErshIiR.js} +3 -3
- package/_assets/{index-BWdRaOCR.js → index-CIVojUUe.js} +4 -4
- package/_assets/{index-OAMg2I05.js → index-CLsU9Us6.js} +3 -3
- package/_assets/{index-CcgVPZ5-.js → index-CQUZItXg.js} +2 -2
- package/_assets/{index-B8E-AD_J.js → index-CVW3P_kL.js} +2 -2
- package/_assets/{index-BM07sxa_.js → index-C_fp-QkR.js} +2 -2
- package/_assets/{index-BIojVkos.js → index-Ca0gd--2.js} +2 -2
- package/_assets/{index-DnHvN2jw.js → index-Cl8rT0qs.js} +3 -3
- package/_assets/index-Cq0onVvh.css +1 -0
- package/_assets/{index-BV6fxrmf.js → index-CrOlXAe5.js} +2 -2
- package/_assets/{index-D3LOqI9e.js → index-Cs9vTJKk.js} +4 -4
- package/_assets/{index-DWQMHqVt.js → index-CzaeKGrw.js} +4 -4
- package/_assets/{index-K65LZonS.js → index-D6p92lEH.js} +3 -3
- package/_assets/{index-DEwRieHl.js → index-D8oZkgav.js} +2 -2
- package/_assets/{index-DWYPckZ4.js → index-DHssnYnf.js} +2 -2
- package/_assets/{index-CexAI8ue.js → index-DIDouAeE.js} +2 -2
- package/_assets/{index-Dp47_9uW.js → index-DInwahnT.js} +4 -4
- package/_assets/{index-B_7Q1I9Q.js → index-DJjYX8gh.js} +6 -6
- package/_assets/{index-DljoYvOw.js → index-DTrZkeIu.js} +830 -606
- package/_assets/{index-CTbbYDIU.js → index-DYWkWVmK.js} +2 -2
- package/_assets/{index-yj36vTKt.js → index-DcUgUEmh.js} +2 -2
- package/_assets/{index-BWAFxmyt.js → index-DdJ0U3Bv.js} +7 -7
- package/_assets/{index-DL9x92FZ.js → index-DdTQHWaU.js} +2 -2
- package/_assets/{index-CeVKESs-.js → index-Dd_3sQrV.js} +2 -2
- package/_assets/{index-DTdCdfzP.js → index-Dj1bWud-.js} +2 -2
- package/_assets/{index-iicecV3n.js → index-DjioGNLv.js} +2 -2
- package/_assets/{index-rCQWEO5b.js → index-DmOqW7ID.js} +2 -2
- package/_assets/{index-DHmsdL5S.js → index-DpvpkoQ0.js} +2 -2
- package/_assets/{index-DaiLEIU7.js → index-DtDLU2a9.js} +4 -4
- package/_assets/{index-C75ynYaQ.js → index-GH6OfUWR.js} +2 -2
- package/_assets/{index-D8062vRq.js → index-GxteE6lf.js} +2 -2
- package/_assets/{index-1es0lGsf.js → index-NoN5x1nz.js} +2 -2
- package/_assets/{index-BUkfIThl.js → index-XKwyHlB2.js} +2 -2
- package/_assets/index-XzToQ7aY.js +3 -0
- package/_assets/{index-D_ZbtIpG.js → index-YBYadTEg.js} +2 -2
- package/_assets/{index-D3SktrFS.js → index-ZXxgpnOf.js} +2 -2
- package/_assets/{index-D__RWNfC.js → index-_VvtbCqs.js} +9 -9
- package/_assets/{index-C1O6jHxG.js → index-cYk-1viY.js} +6 -6
- package/_assets/index-eJg8MXSt.js +2 -0
- package/_assets/{index-D1Nd7gOt.js → index-f7vr2q_j.js} +2 -2
- package/_assets/{index-CjgGA8ap.js → index-ghzpJVqr.js} +3 -3
- package/_assets/{index-DH4hRgnV.js → index-ijJEnkwz.js} +2 -2
- package/_assets/{index-SWeIpIDs.js → index-q0c0vsR2.js} +3 -3
- package/_assets/{index-mDEVykrV.js → index-vTlVsaSl.js} +2 -2
- package/_assets/{index-C532V4qJ.js → index-wskVYfZA.js} +3 -3
- package/_assets/{index-bNjx1K93.js → index-yd4Dlps5.js} +2 -2
- package/_assets/{index.es-B7kdvKnV.js → index.es--ydSTC_l.js} +2 -2
- package/_assets/{index.es-CFqE1B_-.js → index.es-COe-GykO.js} +2 -2
- package/_assets/{index.es-V3Uw-Zb-.js → index.es-DIBXMx9z.js} +5 -5
- package/_assets/{index.es-D1nVZUP1.js → index.es-hQqJiNdl.js} +2 -2
- package/_assets/{info-B91xCNqh.js → info-D7ObqMR7.js} +3 -3
- package/_assets/info-circle-Cn1eJfl8.js +13 -0
- package/_assets/items-empty-DnQGAZwp.js +2 -0
- package/_assets/jsxRuntime.module-KGmzlnK1.js +2 -0
- package/_assets/{jump-Ck95_tg_.js → jump-DJswe6Ae.js} +2 -2
- package/_assets/{lightbulb-ByedgZqO.js → lightbulb-BKWlXPb6.js} +3 -3
- package/_assets/linkAccount-9C48a6_7.js +2 -0
- package/_assets/{loader-logo-CIiCFwgq.js → loader-logo-BBzKPg1y.js} +2 -2
- package/_assets/{localBatchGatewayRequest-CTzYkjnp.js → localBatchGatewayRequest-C9xZI8oS.js} +2 -2
- package/_assets/{mail-B2wBPliw.js → mail-uZxvzFx_.js} +2 -2
- package/_assets/{mobile-COGIkuHo.js → mobile-NGKGetAS.js} +2 -2
- package/_assets/{modal.styles-ButkCLCt.js → modal.styles-CLHnTiB3.js} +2 -2
- package/_assets/{more-zcriamqw.js → more-D3jNhOpW.js} +3 -3
- package/_assets/{native-DVJo7Uy7.js → native-omCw0w8m.js} +2 -2
- package/_assets/{network-placeholder-Cm-6akxX.js → network-placeholder-D5qcFSJX.js} +2 -2
- package/_assets/{networks-BYYvKVPZ.js → networks-Da6syNCw.js} +2 -2
- package/_assets/{nftPlaceholder-vZdYCYRL.js → nftPlaceholder-Cdllyb5L.js} +3 -3
- package/_assets/{off-CLF8R11w.js → off-Cy19A7zA.js} +2 -2
- package/_assets/{onramp-BCx6J7lZ.js → onramp-DRqEDmTQ.js} +2 -2
- package/_assets/{openzeppelin-Bm_dWofi.js → openzeppelin-Clseo9ka.js} +2 -2
- package/_assets/ownerOf-Dd5_GHhw.js +2 -0
- package/_assets/parseNft-1IWlAoKo.js +3 -0
- package/_assets/{parseSignature-CcDEF3aT.js → parseSignature-BGmvXXOn.js} +4 -4
- package/_assets/{parseSignature-DopoO0qx.js → parseSignature-BllS_BWA.js} +2 -2
- package/_assets/{passkeys-eBxkaLcH.js → passkeys-3_DMidJz.js} +2 -2
- package/_assets/{pay-with-exchange-Ci7qqhrM.js → pay-with-exchange-BqKZosni.js} +2 -2
- package/_assets/{play-store-CAbJYmXD.js → play-store-BqyyIuw-.js} +3 -3
- package/_assets/{plus-DWQF9t2p.js → plus-TKHoVUto.js} +3 -3
- package/_assets/{prepare-contract-call-Do2FNRqz.js → prepare-contract-call-CHYnA8up.js} +2 -2
- package/_assets/{qr-code-Br4VphwV.js → qr-code-DNktFNYV.js} +2 -2
- package/_assets/{qr-overlay-DlS-uWbW.js → qr-overlay-_JDLHEK5.js} +6 -6
- package/_assets/{react-W6DPPZx2.js → react-BFIm3j2a.js} +2 -2
- package/_assets/{receive-RN80yUjQ.js → receive-Cpz9Dvnd.js} +9 -9
- package/_assets/{recycle-horizontal-DdAImjTL.js → recycle-horizontal-D7wSarZ0.js} +2 -2
- package/_assets/{ref-D90CCjlU.js → ref-ClbGTQC1.js} +3 -3
- package/_assets/{refresh-S-H2nzPq.js → refresh-Ne9sq_3A.js} +3 -3
- package/_assets/{reown-logo-D5L2QY4i.js → reown-logo-CTKEUi_d.js} +3 -3
- package/_assets/{resolveImplementation-BI3GOlU5.js → resolveImplementation-BlJBvV4D.js} +2 -2
- package/_assets/{resume-buy-DLoChZrc.js → resume-buy-C9bQiOkt.js} +2 -2
- package/_assets/{resume-name-1zBWm51e.js → resume-name-1aj-wXcn.js} +2 -2
- package/_assets/{rpc-DM2YS0jc.js → rpc-CIKW934B.js} +4 -4
- package/_assets/{sales-empty-Dnsipv8W.js → sales-empty-DmQJlGlw.js} +2 -2
- package/_assets/{search-empty-Dvn318rX.js → search-empty-ClovaM0p.js} +2 -2
- package/_assets/search-oltotRQx.js +9 -0
- package/_assets/{secp256k1-C4OMeax7.js → secp256k1--aLIyn0e.js} +2 -2
- package/_assets/{secp256k1-WkAauRSr.js → secp256k1-D1ZsQmZN.js} +2 -2
- package/_assets/{secp256k1-NmEPlAZw.js → secp256k1-lqnaHC1F.js} +2 -2
- package/_assets/{send-BAUrBF6z.js → send-CAaL-103.js} +3 -3
- package/_assets/{send-C0r-5tij.js → send-D2VacgND.js} +2 -2
- package/_assets/send-batch-transaction-CoHZwUyR.js +2 -0
- package/_assets/{send-eip712-transaction-DaLfugLr.js → send-eip712-transaction-C6KHb1zG.js} +3 -3
- package/_assets/send-gasless-transaction-CLE3XbRn.js +3 -0
- package/_assets/{send-transaction-tJISdP6Y.js → send-transaction-CZvXYdNb.js} +3 -3
- package/_assets/{sendMetaTransaction-nj4rME5D.js → sendMetaTransaction-yPqWszKC.js} +2 -2
- package/_assets/{sendRawTransaction-DfekQM89.js → sendRawTransaction-DtuKJu2h.js} +4 -4
- package/_assets/{sentry-Bf5cwK6Z.js → sentry-B6w4u-W-.js} +3 -3
- package/_assets/{serializeTransaction-CxIs4lGj.js → serializeTransaction-B4Lft1zQ.js} +2 -2
- package/_assets/{session-proposal-B5Wg5om5.js → session-proposal-Bok0ewYM.js} +2 -2
- package/_assets/{session-request-DMi03oq9.js → session-request-P-qLAoMp.js} +3 -3
- package/_assets/{sha256-C6FguC0o.js → sha256-9qKLuRf7.js} +2 -2
- package/_assets/{sha3-C3b0dKwM.js → sha3-B_iCbd3-.js} +2 -2
- package/_assets/signin-empty-CLubNUT9.js +2 -0
- package/_assets/{signing-BK_PENgC.js → signing-DOjNaoui.js} +4 -4
- package/_assets/{skeleton.styles-CLPYGy7U.js → skeleton.styles-bqklkUaQ.js} +2 -2
- package/_assets/{socials-BOzm4twp.js → socials-BdmGZ8N0.js} +2 -2
- package/_assets/spiderAnimation-qxVWKGzH.js +2 -0
- package/_assets/{styled-DsLK5cPQ.js → styled-lGmgQ1lM.js} +2 -2
- package/_assets/{swapHorizontal-BXjIGAcZ.js → swapHorizontal-AUQR3QWw.js} +2 -2
- package/_assets/{swapHorizontalBold-BzueHopN.js → swapHorizontalBold-CJ-O8FMu.js} +3 -3
- package/_assets/{swapHorizontalMedium-DLFo4hRx.js → swapHorizontalMedium-C9_JLGaD.js} +2 -2
- package/_assets/{swapHorizontalRoundedBold-BddBy7OL.js → swapHorizontalRoundedBold-CprcKnGZ.js} +3 -3
- package/_assets/{swapVertical-DYkySTmy.js → swapVertical-C0UtEvQr.js} +2 -2
- package/_assets/{swaps-C6BJhPZY.js → swaps-BhC4sHay.js} +2 -2
- package/_assets/{telegram-D8ymSABf.js → telegram-BPHwvSxV.js} +2 -2
- package/_assets/{thirdweb-DPdu8_Iz.js → thirdweb-CF4WVvcp.js} +4 -4
- package/_assets/{three-dots-CiS9iH0H.js → three-dots-CuMLURps.js} +2 -2
- package/_assets/{to-serializable-transaction-BCAsGvu5.js → to-serializable-transaction-DF9zSsrr.js} +3 -3
- package/_assets/totalSupply-DWW8ZEYi.js +2 -0
- package/_assets/{trade-encoding-C2C756Mb.js → trade-encoding-CmoxrKUz.js} +2 -2
- package/_assets/{transaction-DK3gmzym.js → transaction-BAxmRdS0.js} +2 -2
- package/_assets/transactionReceipt-m-OPklcn.js +2 -0
- package/_assets/transactions-BApyx2lL.js +17 -0
- package/_assets/{twitch-BJQCmiGz.js → twitch-BEksYNQy.js} +2 -2
- package/_assets/{twitterIcon-B78o99Zv.js → twitterIcon-C-RbKp2J.js} +3 -3
- package/_assets/{useInfiniteGrid-OYi4qkxL.js → useInfiniteGrid-Cv5x7S43.js} +2 -2
- package/_assets/{useStore-Cu25kFq7.js → useStore-Cdj6cI4_.js} +3 -3
- package/_assets/{useTheme-DXyqGHPK.js → useTheme-BvDZFuzM.js} +2 -2
- package/_assets/{utils-DWFFXuVr.js → utils-BQvdggqk.js} +2 -2
- package/_assets/{verify-CrYE2kna.js → verify-DX3fSqPA.js} +3 -3
- package/_assets/{verify-filled-CwwnY5h6.js → verify-filled-rDNnAKA1.js} +3 -3
- package/_assets/{verifyHash-BuoiWnLm.js → verifyHash-CDmnZABd.js} +2 -2
- package/_assets/{w3m-modal-B4-nkuIe.js → w3m-modal-BdzGNIQA.js} +2 -2
- package/_assets/{w3m-modal-BcCfYrK3.js → w3m-modal-Btz69Cn8.js} +2 -2
- package/_assets/{wait-for-tx-receipt-Dk2kUnaX.js → wait-for-tx-receipt-CcQMwiVN.js} +2 -2
- package/_assets/{wallet-EosqBoq7.js → wallet-BDmvD81m.js} +2 -2
- package/_assets/{wallet-placeholder-DL8kIY2O.js → wallet-placeholder-DD3BllZl.js} +3 -3
- package/_assets/{walletconnect-CauX9cVK.js → walletconnect-CeHvp7GG.js} +5 -5
- package/_assets/{wallets-CMSR8zSM.js → wallets-D8ssVzB1.js} +6 -6
- package/_assets/{warning-circle-BrcBx24p.js → warning-circle-0P7CyfRX.js} +2 -2
- package/_assets/{web-connector-njIri1mV.js → web-connector-BHtXIcZT.js} +4 -4
- package/_assets/{writeContract-BIL6JKQ4.js → writeContract-ByRqOW08.js} +2 -2
- package/_assets/{x-CwtQDczS.js → x-Dp_viDtj.js} +3 -3
- package/_assets/{zora-sepolia-CGWAmNQa.js → zora-sepolia-iUwERgIH.js} +2 -2
- package/_assets/{zoraTestnet-BbdMl-3q.js → zoraTestnet-DFaqLqOm.js} +2 -2
- package/index.html +12 -12
- package/package.json +2 -2
- package/_assets/Assets-fYcVwnf6.js +0 -990
- package/_assets/DeploymentBuilder-DxVavXId.js +0 -4
- package/_assets/Event-8Bdqr2gY.js +0 -72
- package/_assets/PhCaretRight-CuRYBcM2.js +0 -15
- package/_assets/arrow-bottom-Cx66u8_t.js +0 -9
- package/_assets/async-directive-CeCQAQEH.js +0 -10
- package/_assets/chevron-bottom-CLuKI9LQ.js +0 -9
- package/_assets/collectionPage.styles-j5KRQZ62.js +0 -41
- package/_assets/common-Dyfi9-qF.js +0 -2
- package/_assets/cursor-DSrN7SuI.js +0 -4
- package/_assets/decimals-C5CduTab.js +0 -2
- package/_assets/decimals-DAvyrcZu.js +0 -2
- package/_assets/detectExtension-DiXMx_W2.js +0 -2
- package/_assets/estimate-l1-fee-BfA7l553.js +0 -2
- package/_assets/eth_estimateGas-BeLpFZ-K.js +0 -2
- package/_assets/eth_getStorageAt-BbB5SMWJ.js +0 -2
- package/_assets/eth_getTransactionCount-DH_qdxpP.js +0 -2
- package/_assets/ethereum-CRRCl3Oi.js +0 -2
- package/_assets/filters-DWaFeZ95.js +0 -9
- package/_assets/get-ecosystem-wallet-info-BCRCLMgd.js +0 -2
- package/_assets/getInstalledModules-CUNrIDuz.js +0 -2
- package/_assets/getNFT-B6n0HDvv.js +0 -3
- package/_assets/getNFT-BVCpE58W.js +0 -2
- package/_assets/in-app-wallet-calls-CWI5AQFa.js +0 -2
- package/_assets/index-B-3mnGek.js +0 -3
- package/_assets/index-B7Fv6Oag.js +0 -2
- package/_assets/index-D_deVb-D.js +0 -2
- package/_assets/index-xarUdNs4.css +0 -1
- package/_assets/info-circle-DtEY-DDD.js +0 -13
- package/_assets/items-empty-Cep5wNDE.js +0 -2
- package/_assets/jsxRuntime.module-BUzu5v1_.js +0 -2
- package/_assets/linkAccount-CAN7lbWC.js +0 -2
- package/_assets/ownerOf-DqF__NFK.js +0 -2
- package/_assets/parseNft-BPMv2W2U.js +0 -3
- package/_assets/search-f6j421fJ.js +0 -9
- package/_assets/send-batch-transaction-CnI2VsQr.js +0 -2
- package/_assets/send-gasless-transaction-DUB8Kjk5.js +0 -3
- package/_assets/signin-empty-t0d2AJfu.js +0 -2
- package/_assets/totalSupply-CJeCybrj.js +0 -2
- package/_assets/transactionReceipt-SVsD6Wmt.js +0 -2
- package/_assets/transactions-CIoxFkMZ.js +0 -17
|
@@ -0,0 +1,990 @@
|
|
|
1
|
+
import{r as u,b as Ze,j as e,a as yt,u as wt}from"./react-BFIm3j2a.js";import{c as ie,r as jt,b as vt,bG as Ct,h as Xe,j as Ye,bD as $t,bd as kt,bb as St,w as Et,cW as Rt,cX as Tt,s as i,a as t,x as dt,bm as _t,X as Mt,F as ht,t as s,cY as At,bJ as We,D as Nt,I,z as X,cZ as ze,E as me,bl as Lt,l as It,O as Re,bx as Je,Z as Wt,bF as zt,B as pt,a0 as ut,m as mt,cd as Pt,ce as Bt,y as Ft,bS as Ot,ay as Ut,a2 as Ht,a4 as et,a5 as fe,aJ as Dt,bT as Gt,bU as qt}from"./index-DTrZkeIu.js";import{u as Kt,s as Vt}from"./search-empty-ClovaM0p.js";import{u as Zt,l as Qt,m as Xt,S as Yt,F as Jt,a as en}from"./Filters-CEz8bjG2.js";import{R as tn,S as nn,a as sn,D as an,b as on,C as rn,c as ln,d as cn,e as dn,M as hn}from"./browseLayout.styles-Bgc_8ycQ.js";import{L as pn}from"./LoadMore-BTzn9wsv.js";import{u as un}from"./useInfiniteGrid-Cv5x7S43.js";import{E as mn}from"./ErrorNotice-l-B8k9a3.js";import{d as fn}from"./dcl-schemas-FmJ72SB7.js";import{s as xn,G as gn,w as bn,S as yn}from"./buy-gasless-_RaoHNGk.js";import{s as wn}from"./buy-GBacz4js.js";import{u as jn,A as vn,C as Cn}from"./trade-encoding-CmoxrKUz.js";import{f as $n}from"./errors-BxIUc_Lk.js";import{J as kn,C as Sn,B as Te}from"./ethers-CoY9-2x5.js";import{z as En,D as Rn,w as Tn,W as _n,m as Mn,n as An,o as Nn,v as Ln,j as tt}from"./CreditPackPicker-IzExNyem.js";import{u as In,M as Wn,o as zn,l as Pn,R as Bn,c as Fn}from"./loader-logo-BBzKPg1y.js";import{P as On}from"./PaymentMethodStep-DM8c-3bT.js";import{R as nt}from"./resume-name-1aj-wXcn.js";import{R as Un}from"./resume-buy-C9bQiOkt.js";import{n as Hn}from"./name-glyph-aUugT8vq.js";import{c as Dn}from"./crumbs.styles-CHgrOACG.js";import{n as Gn}from"./Tooltip-DlenNQy2.js";import{G as qn}from"./grid.styles-DdTmyIUo.js";import"./sentry-B6w4u-W-.js";import"./intl-AKLEHPeO.js";import"./skeleton.styles-bqklkUaQ.js";import"./sendMetaTransaction-yPqWszKC.js";import"./mana-matic-CEqvSwrJ.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new n.Error().stack;a&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[a]="5cb3e364-7800-4145-a532-079d39be887a",n._sentryDebugIdIdentifier="sentry-dbid-5cb3e364-7800-4145-a532-079d39be887a")}catch{}})();function xe(n){const a=n.source??"item",r=n.tradeId||`${n.contractAddress}-${n.tokenId??n.itemId??""}`;return`${a}:${r}`}const Y="100000000000000000000",ft=2,_e=15,Kn=/^[a-zA-Z0-9]+$/;function st(n){const a=n.trim();return a.length===0?{ok:!1,reason:"empty"}:Kn.test(a)?a.length<ft?{ok:!1,reason:"too-short"}:a.length>_e?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function Vn(n){return n.replace(/[^a-zA-Z0-9]/g,"").slice(0,_e)}const Zn=["function available(string _subdomain) view returns (bool)"],it={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function Qn(){return ie.chainId===Number(fn.ChainId.MATIC_MAINNET)?it.mainnet:it.sepolia}async function Xn(n,a={}){var c;const{rpc:r,address:d}=Qn(),h=new kn(r),b=new Sn(d,Zn,h);console.info(`[names] availability check → DCLRegistrar(${d}).available("${n}") on ${r}`);const j=await b.available(n);if((c=a.signal)!=null&&c.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${n}" available=${j}`),j?"available":"taken"}const Yn="https://app.across.to/api";class Qe extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}class Ke extends Error{constructor(){super("The name could not be registered on Ethereum; your funds were recovered."),this.name="NameNotRegisteredError"}}class Ve extends Error{constructor(){super("We couldn't confirm whether the purchase went through."),this.name="NameSettlementUnknownError"}}function Jn(n){return kt(Y,n)}async function es(n,a,r={}){var c;const d=r.chainId??ie.chainId,h=r.provider??"across",b=`${ie.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(a)}&chainId=${d}&provider=${h}`,j=await St(b,{method:"GET",identity:n,metadata:{}});if(!j.ok){let l;try{l=(c=await j.json())==null?void 0:c.code}catch{}throw l==="ROUTE_COST_TOO_HIGH"?new Qe:new Error(`fetchNameCreditRoute ${j.status}`)}return j.json()}function ts(n,a){const r=Te.from(n.availableAmount),h=Te.from(Y).sub(r);return{credits:[{value:n.amount,expiresAt:Number(n.expiresAt),salt:Cn(n.id)}],creditsSignatures:[n.signature],externalCall:{target:a.externalCall.target,selector:a.externalCall.selector,data:a.externalCall.data,expiresAt:a.externalCall.expiresAt,salt:a.externalCall.salt},customExternalCallSignature:a.customExternalCallSignature,maxUncreditedValue:h.isNegative()?"0":h.toString(),maxCreditedValue:Y}}async function ns(n,a={}){const r=Yn,d=a.intervalMs??1e4,h=a.maxAttempts??60;let b={status:"pending",destinationTxHash:null,actionsSucceeded:null};for(let j=0;j<h;j++){try{const c=await fetch(`${r}/deposit/status?originChainId=137&depositTxHash=${n}`);if(c.ok){const l=await c.json(),w=(l.status??"pending").toLowerCase(),g=l.fillTx??l.fillTxnRef??null,C=typeof l.actionsSucceeded=="boolean"?l.actionsSucceeded:null;if(w==="filled")return{status:"filled",destinationTxHash:g,actionsSucceeded:C};if(w==="refunded"||w==="expired")return{status:w,destinationTxHash:null,actionsSucceeded:!1};b={status:"pending",destinationTxHash:g,actionsSucceeded:C}}}catch{}j<h-1&&await new Promise(c=>setTimeout(c,d))}return b}async function ss(n){const{name:a,identity:r,signer:d}=n,h=g=>{var C;try{(C=n.onProgress)==null||C.call(n,g)}catch{}},b=n.chainId??ie.chainId,j=n.provider??"across",c=(n.beneficiary??await d.getAddress()).toLowerCase();let l=null,w="unconfirmed";console.info("[names] register start",{name:a,buyer:c,chainId:b,provider:j}),h("preparing");try{const g=await jt(vt(ie.chainId).address),C=Jn(g),y=n.creditsCents!=null?Math.max(1,Math.min(Math.trunc(n.creditsCents),C)):C,A=y<C;console.info("[names] step 1/6 sized reservation",{usdCents:y,fullPriceCents:C,payingWithMana:A,manaRate:g});const p=await es(r,a,{chainId:b,provider:j});console.info("[names] step 2/6 route fetched",{target:p.externalCall.target,selector:p.externalCall.selector,provider:p.provider,quoteId:p.quoteId});const v=await Ct(r,y,void 0,void 0,a);if(l=v.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:v.credit.id,maxCreditedValue:v.maxCreditedValue}),!A&&Te.from(v.maxCreditedValue).lt(Y))throw new Error("Credit under-sized for the name price");if(A){const x=Te.from(Y).sub(v.credit.availableAmount);if(n.maxManaWei!=null&&x.gt(n.maxManaWei.toString()))throw new Error("The MANA needed moved past what was agreed");x.gt(0)&&(h("awaiting-confirmation"),await jn({auth:{kind:vn.Allowance,contractAddress:Xe(Ye.MANAToken,b).address,spenderAddress:Xe(Ye.CreditsManager,b).address,chainId:b},signer:d,requiredWei:BigInt(x.toString())}),console.info("[names] step 3b/6 mana allowance ensured",{gapWei:x.toString()}))}h("awaiting-confirmation");const f=ts(v.credit,p);let $;try{$=await xn({chainId:b,buyer:c,signer:d,args:f})}catch(x){if(!(x instanceof gn))throw x;if(x.reason==="relayer-unreachable"){w="unobservable";const T=new Ve;throw T.cause=x,T}$=await wn(b,f,d)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:$}),h("confirming"),await bn($),w="confirmed",console.info("[names] step 5/6 origin tx confirmed",{originTxHash:$}),j==="across"){h("registering");const x=await ns($,n.acrossPoll);if(console.info("[names] step 6/6 across status",x),x.status==="pending")return{status:"pending",originTxHash:$};if(x.status==="filled"&&x.actionsSucceeded===null)return console.warn("[names] across filled without reporting actionsSucceeded — reporting pending",{originTxHash:$}),{status:"pending",originTxHash:$};if(x.status!=="filled"||x.actionsSucceeded!==!0)throw new Ke;return{status:"registered",originTxHash:$,destinationTxHash:x.destinationTxHash}}return{status:"pending",originTxHash:$}}catch(g){if(console.error("[names] register failed — raw error:",g,{name:a,buyer:c,originState:w}),g instanceof yn)return{status:"pending",originTxHash:g.txHash};if(l&&w==="unconfirmed"&&await $t(r,[l]).catch(()=>{}),g instanceof Qe||g instanceof Ke||g instanceof Ve)throw g;const C=new Error($n(g,"Couldn't register the name. Please try again.",{sale:!0}));throw C.cause=g,C}}function is(){const{data:n}=Et({queryKey:["feature-flag","shop-names"],queryFn:()=>Rt(Tt.SHOP_NAMES),staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return n===!0}const as=60,os=700,rs=25;function ls(n){if(!n)return[];const a=[];for(let r=1;r<=n.length;r++)a.push({text:n.slice(0,r),delay:as});a[a.length-1]={text:n,delay:os};for(let r=n.length-1;r>=1;r--)a.push({text:n.slice(0,r),delay:rs});return a}function cs(n){return n.flatMap(ls)}function ds(n,a){const r=u.useMemo(()=>cs(n),[n]),[d,h]=u.useState(0);return u.useEffect(()=>{if(!a||r.length===0)return;const b=setTimeout(()=>h(j=>(j+1)%r.length),r[d%r.length].delay);return()=>clearTimeout(b)},[d,a,r]),!a||r.length===0?"":r[d%r.length].text}const hs="https://cdn.decentraland.org/@dcl/shop/1.19.1-36725100317.commit-9ad1d65/_assets/name-verified-oGwQ3ntb.svg",ps="#34fee6",us=i.div`
|
|
2
|
+
position: fixed;
|
|
3
|
+
inset: 0;
|
|
4
|
+
z-index: 10000;
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
padding: 16px;
|
|
9
|
+
background: rgba(22, 21, 24, 0.55);
|
|
10
|
+
`,ms=i.div`
|
|
11
|
+
width: 560px;
|
|
12
|
+
max-width: 100%;
|
|
13
|
+
max-height: 92vh;
|
|
14
|
+
overflow-y: auto;
|
|
15
|
+
background: ${t.colors.white};
|
|
16
|
+
border-radius: 16px;
|
|
17
|
+
padding: 20px 24px 24px;
|
|
18
|
+
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
|
|
19
|
+
|
|
20
|
+
${t.media.maxWidth("mobile")} {
|
|
21
|
+
padding: 16px;
|
|
22
|
+
}
|
|
23
|
+
`,Pe=i.div`
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: flex-start;
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
gap: 12px;
|
|
28
|
+
`,Be=i.h2`
|
|
29
|
+
margin: 0;
|
|
30
|
+
font-family: ${t.font.sans};
|
|
31
|
+
font-weight: 700;
|
|
32
|
+
font-size: 20px;
|
|
33
|
+
line-height: 1.6;
|
|
34
|
+
color: ${t.colors.text};
|
|
35
|
+
`,Fe=i.button`
|
|
36
|
+
flex: none;
|
|
37
|
+
display: grid;
|
|
38
|
+
place-items: center;
|
|
39
|
+
width: 28px;
|
|
40
|
+
height: 28px;
|
|
41
|
+
border: 0;
|
|
42
|
+
background: none;
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
color: ${t.colors.text};
|
|
45
|
+
|
|
46
|
+
.ico {
|
|
47
|
+
width: 18px;
|
|
48
|
+
height: 18px;
|
|
49
|
+
}
|
|
50
|
+
&:disabled {
|
|
51
|
+
opacity: 0.4;
|
|
52
|
+
cursor: default;
|
|
53
|
+
}
|
|
54
|
+
&:focus-visible {
|
|
55
|
+
outline: 2px solid ${t.colors.accent};
|
|
56
|
+
outline-offset: 2px;
|
|
57
|
+
}
|
|
58
|
+
`,Oe=i.div`
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
gap: 6px;
|
|
62
|
+
margin-top: 4px;
|
|
63
|
+
font-family: ${t.font.sans};
|
|
64
|
+
font-size: 14px;
|
|
65
|
+
color: ${t.colors.text2};
|
|
66
|
+
|
|
67
|
+
.ico {
|
|
68
|
+
width: 16px;
|
|
69
|
+
height: 16px;
|
|
70
|
+
color: ${t.colors.text};
|
|
71
|
+
}
|
|
72
|
+
`,Ue=i.hr`
|
|
73
|
+
border: 0;
|
|
74
|
+
border-top: 1px solid ${t.colors.line};
|
|
75
|
+
margin: 16px 0;
|
|
76
|
+
`,ge=i.div`
|
|
77
|
+
display: flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
gap: 16px;
|
|
80
|
+
`,fs=i.div`
|
|
81
|
+
flex: none;
|
|
82
|
+
display: flex;
|
|
83
|
+
flex-direction: column;
|
|
84
|
+
align-items: center;
|
|
85
|
+
justify-content: center;
|
|
86
|
+
gap: 12px;
|
|
87
|
+
width: 137px;
|
|
88
|
+
height: 137px;
|
|
89
|
+
padding: 20px 0;
|
|
90
|
+
border-radius: 12px;
|
|
91
|
+
overflow: hidden;
|
|
92
|
+
background: ${t.gradients.amethyst};
|
|
93
|
+
`,xs=i.img`
|
|
94
|
+
display: block;
|
|
95
|
+
width: 47px;
|
|
96
|
+
height: 47px;
|
|
97
|
+
`,gs=i.span`
|
|
98
|
+
display: inline-flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
gap: 2px;
|
|
101
|
+
max-width: 100%;
|
|
102
|
+
padding: 0 8px;
|
|
103
|
+
font-family: ${t.font.sans};
|
|
104
|
+
font-size: 18px;
|
|
105
|
+
font-weight: 600;
|
|
106
|
+
/* The design's cyan — it has to read against the purple, which the body text colour would not. */
|
|
107
|
+
color: ${ps};
|
|
108
|
+
white-space: nowrap;
|
|
109
|
+
overflow: hidden;
|
|
110
|
+
|
|
111
|
+
/* Truncation belongs on the flex item, not this box: text-overflow is inert on a flex container, and
|
|
112
|
+
the zero min-width is what lets the name shrink instead of pushing the tick out. */
|
|
113
|
+
> span {
|
|
114
|
+
min-width: 0;
|
|
115
|
+
overflow: hidden;
|
|
116
|
+
text-overflow: ellipsis;
|
|
117
|
+
}
|
|
118
|
+
`,bs=i.img`
|
|
119
|
+
flex: none;
|
|
120
|
+
display: block;
|
|
121
|
+
width: 14px;
|
|
122
|
+
height: 14px;
|
|
123
|
+
`,He=i.div`
|
|
124
|
+
flex: none;
|
|
125
|
+
display: grid;
|
|
126
|
+
place-items: center;
|
|
127
|
+
width: 56px;
|
|
128
|
+
height: 56px;
|
|
129
|
+
border-radius: 10px;
|
|
130
|
+
background: ${t.gradients.amethyst};
|
|
131
|
+
color: ${t.colors.white};
|
|
132
|
+
|
|
133
|
+
.ico {
|
|
134
|
+
width: 30px;
|
|
135
|
+
height: 30px;
|
|
136
|
+
}
|
|
137
|
+
`,be=i.div`
|
|
138
|
+
flex: 1;
|
|
139
|
+
min-width: 0;
|
|
140
|
+
`,ye=i.div`
|
|
141
|
+
font-family: ${t.font.sans};
|
|
142
|
+
font-weight: 700;
|
|
143
|
+
font-size: 20px;
|
|
144
|
+
line-height: 1.3;
|
|
145
|
+
color: ${t.colors.text};
|
|
146
|
+
overflow: hidden;
|
|
147
|
+
text-overflow: ellipsis;
|
|
148
|
+
white-space: nowrap;
|
|
149
|
+
|
|
150
|
+
span {
|
|
151
|
+
font-weight: 400;
|
|
152
|
+
color: ${t.colors.muted2};
|
|
153
|
+
}
|
|
154
|
+
`,we=i.div`
|
|
155
|
+
font-family: ${t.font.sans};
|
|
156
|
+
font-size: 14px;
|
|
157
|
+
color: ${t.colors.muted2};
|
|
158
|
+
`,je=i.div`
|
|
159
|
+
flex: none;
|
|
160
|
+
display: flex;
|
|
161
|
+
align-items: center;
|
|
162
|
+
gap: 6px;
|
|
163
|
+
font-family: ${t.font.sans};
|
|
164
|
+
font-weight: 600;
|
|
165
|
+
font-size: 24px;
|
|
166
|
+
color: ${t.colors.text};
|
|
167
|
+
|
|
168
|
+
.ico {
|
|
169
|
+
width: 22px;
|
|
170
|
+
height: 22px;
|
|
171
|
+
color: ${t.colors.text};
|
|
172
|
+
}
|
|
173
|
+
`,ys=i.div`
|
|
174
|
+
margin-top: 16px;
|
|
175
|
+
padding: 16px;
|
|
176
|
+
border-radius: 12px;
|
|
177
|
+
background: ${t.colors.promptLilac};
|
|
178
|
+
`,ws=i.div`
|
|
179
|
+
font-family: ${t.font.sans};
|
|
180
|
+
font-weight: 700;
|
|
181
|
+
font-size: 16px;
|
|
182
|
+
color: ${t.colors.text};
|
|
183
|
+
`,js=i.p`
|
|
184
|
+
margin: 8px 0 16px;
|
|
185
|
+
font-family: ${t.font.sans};
|
|
186
|
+
font-size: 14px;
|
|
187
|
+
line-height: 1.5;
|
|
188
|
+
color: ${t.colors.text2};
|
|
189
|
+
|
|
190
|
+
/* The chosen NAME is filled with the gradient the design runs through it (1356:335140), not a flat
|
|
191
|
+
violet — background-clip is the only way to paint a text run with one. */
|
|
192
|
+
b {
|
|
193
|
+
font-weight: 700;
|
|
194
|
+
background: linear-gradient(180deg, ${t.colors.dclRed}, ${t.colors.magenta});
|
|
195
|
+
background-clip: text;
|
|
196
|
+
-webkit-background-clip: text;
|
|
197
|
+
color: transparent;
|
|
198
|
+
}
|
|
199
|
+
`,vs=i.label`
|
|
200
|
+
display: flex;
|
|
201
|
+
align-items: center;
|
|
202
|
+
gap: 8px;
|
|
203
|
+
padding: 12px 14px;
|
|
204
|
+
background: ${t.colors.softWhite};
|
|
205
|
+
/* A hairline in Gray 2, not a full pixel of soft-black: this field sits INSIDE the lilac panel and
|
|
206
|
+
the heavier edge made it read as the modal's primary control (Figma 1356:335172). */
|
|
207
|
+
border: 0.5px solid ${t.colors.muted};
|
|
208
|
+
border-radius: 8px;
|
|
209
|
+
cursor: text;
|
|
210
|
+
|
|
211
|
+
&:focus-within {
|
|
212
|
+
border-color: ${t.colors.magenta};
|
|
213
|
+
}
|
|
214
|
+
`,Cs=i.span`
|
|
215
|
+
flex: none;
|
|
216
|
+
font-family: ${t.font.sans};
|
|
217
|
+
font-size: 18px;
|
|
218
|
+
color: ${t.colors.muted2};
|
|
219
|
+
`,$s=i.input`
|
|
220
|
+
flex: 0 1 auto;
|
|
221
|
+
min-width: 0;
|
|
222
|
+
border: 0;
|
|
223
|
+
outline: none;
|
|
224
|
+
background: transparent;
|
|
225
|
+
font-family: ${t.font.sans};
|
|
226
|
+
font-size: 16px;
|
|
227
|
+
font-weight: 600;
|
|
228
|
+
color: ${t.colors.text};
|
|
229
|
+
|
|
230
|
+
&::placeholder {
|
|
231
|
+
color: ${t.colors.muted2};
|
|
232
|
+
font-weight: 400;
|
|
233
|
+
}
|
|
234
|
+
`,ks=i.span`
|
|
235
|
+
flex: none;
|
|
236
|
+
font-family: ${t.font.sans};
|
|
237
|
+
font-size: 16px;
|
|
238
|
+
color: ${t.colors.muted2};
|
|
239
|
+
`,De=i.button`
|
|
240
|
+
margin-top: 16px;
|
|
241
|
+
width: 100%;
|
|
242
|
+
height: 46px;
|
|
243
|
+
border: 0;
|
|
244
|
+
border-radius: 12px;
|
|
245
|
+
cursor: pointer;
|
|
246
|
+
background: ${t.gradients.buyBtn};
|
|
247
|
+
color: ${t.colors.softWhite};
|
|
248
|
+
font-family: ${t.font.sans};
|
|
249
|
+
font-weight: 600;
|
|
250
|
+
font-size: 15px;
|
|
251
|
+
letter-spacing: 0.46px;
|
|
252
|
+
text-transform: uppercase;
|
|
253
|
+
transition: background-image 0.15s ease;
|
|
254
|
+
|
|
255
|
+
/* Both ends stay on background-IMAGE: a gradient cannot interpolate to a plain colour, so swapping
|
|
256
|
+
the shorthand instead blanks the button for the length of the transition. */
|
|
257
|
+
&:hover:not(:disabled),
|
|
258
|
+
&:active:not(:disabled) {
|
|
259
|
+
background-image: linear-gradient(${t.colors.dclRed}, ${t.colors.dclRed});
|
|
260
|
+
}
|
|
261
|
+
&:focus-visible {
|
|
262
|
+
outline: 2px solid ${t.colors.accent};
|
|
263
|
+
outline-offset: 2px;
|
|
264
|
+
}
|
|
265
|
+
&:disabled {
|
|
266
|
+
cursor: not-allowed;
|
|
267
|
+
opacity: 0.5;
|
|
268
|
+
}
|
|
269
|
+
`,Ss=i.div`
|
|
270
|
+
display: flex;
|
|
271
|
+
flex: 1;
|
|
272
|
+
flex-direction: column;
|
|
273
|
+
align-items: center;
|
|
274
|
+
justify-content: center;
|
|
275
|
+
gap: 32px;
|
|
276
|
+
padding: 32px 0 8px;
|
|
277
|
+
`,Es=i.img`
|
|
278
|
+
width: 61px;
|
|
279
|
+
height: 61px;
|
|
280
|
+
`,Rs=i.div`
|
|
281
|
+
display: flex;
|
|
282
|
+
flex-direction: column;
|
|
283
|
+
align-items: center;
|
|
284
|
+
gap: 8px;
|
|
285
|
+
width: 100%;
|
|
286
|
+
`,Ts=i.div`
|
|
287
|
+
font-family: ${t.font.sans};
|
|
288
|
+
font-weight: 700;
|
|
289
|
+
font-size: 20px;
|
|
290
|
+
line-height: 1.6;
|
|
291
|
+
color: ${t.colors.text2};
|
|
292
|
+
text-align: center;
|
|
293
|
+
`,_s=i.p`
|
|
294
|
+
max-width: 400px;
|
|
295
|
+
font-family: ${t.font.sans};
|
|
296
|
+
font-size: 14px;
|
|
297
|
+
line-height: 1.57;
|
|
298
|
+
color: ${t.colors.muted};
|
|
299
|
+
text-align: center;
|
|
300
|
+
`,Ms=i.div`
|
|
301
|
+
display: flex;
|
|
302
|
+
align-items: center;
|
|
303
|
+
justify-content: center;
|
|
304
|
+
gap: 8px;
|
|
305
|
+
width: 100%;
|
|
306
|
+
`,As=i.div`
|
|
307
|
+
flex: 1;
|
|
308
|
+
max-width: 400px;
|
|
309
|
+
height: 10px;
|
|
310
|
+
border-radius: 100px;
|
|
311
|
+
background: rgba(0, 0, 0, 0.1);
|
|
312
|
+
overflow: hidden;
|
|
313
|
+
|
|
314
|
+
span {
|
|
315
|
+
display: block;
|
|
316
|
+
height: 100%;
|
|
317
|
+
width: 33%;
|
|
318
|
+
border-radius: 100px;
|
|
319
|
+
background: ${t.gradients.buyBtn};
|
|
320
|
+
animation: nameProgress 1.1s ease-in-out infinite;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
@keyframes nameProgress {
|
|
324
|
+
0% {
|
|
325
|
+
transform: translateX(-100%);
|
|
326
|
+
}
|
|
327
|
+
100% {
|
|
328
|
+
transform: translateX(320%);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
@media (prefers-reduced-motion: reduce) {
|
|
333
|
+
span {
|
|
334
|
+
width: 33%;
|
|
335
|
+
animation: none;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
`,Ns=i.span`
|
|
339
|
+
flex: none;
|
|
340
|
+
font-family: ${t.font.sans};
|
|
341
|
+
font-size: 16px;
|
|
342
|
+
line-height: 22px;
|
|
343
|
+
color: ${t.colors.text2};
|
|
344
|
+
`,Ls=i.div`
|
|
345
|
+
display: flex;
|
|
346
|
+
flex-direction: column;
|
|
347
|
+
align-items: center;
|
|
348
|
+
gap: 16px;
|
|
349
|
+
padding: 24px;
|
|
350
|
+
border-radius: 12px;
|
|
351
|
+
background: #e2f5ea;
|
|
352
|
+
text-align: center;
|
|
353
|
+
`,Is=i.div`
|
|
354
|
+
display: grid;
|
|
355
|
+
place-items: center;
|
|
356
|
+
width: 56px;
|
|
357
|
+
height: 56px;
|
|
358
|
+
border-radius: 50%;
|
|
359
|
+
background: ${t.colors.ok};
|
|
360
|
+
color: ${t.colors.white};
|
|
361
|
+
|
|
362
|
+
.ico {
|
|
363
|
+
width: 30px;
|
|
364
|
+
height: 30px;
|
|
365
|
+
}
|
|
366
|
+
`,Ws=i.p`
|
|
367
|
+
margin: 0;
|
|
368
|
+
font-family: ${t.font.sans};
|
|
369
|
+
font-size: 16px;
|
|
370
|
+
line-height: 1.4;
|
|
371
|
+
color: ${t.colors.text};
|
|
372
|
+
|
|
373
|
+
b {
|
|
374
|
+
font-weight: 700;
|
|
375
|
+
}
|
|
376
|
+
`,at=i.div`
|
|
377
|
+
display: flex;
|
|
378
|
+
gap: 16px;
|
|
379
|
+
margin-top: 20px;
|
|
380
|
+
|
|
381
|
+
${t.media.maxWidth("mobile")} {
|
|
382
|
+
flex-direction: column;
|
|
383
|
+
}
|
|
384
|
+
`,ot=i.button`
|
|
385
|
+
flex: 1;
|
|
386
|
+
height: 48px;
|
|
387
|
+
border: 1px solid ${t.colors.accent};
|
|
388
|
+
border-radius: 8px;
|
|
389
|
+
background: ${t.colors.white};
|
|
390
|
+
color: ${t.colors.accent};
|
|
391
|
+
cursor: pointer;
|
|
392
|
+
font-family: ${t.font.sans};
|
|
393
|
+
font-weight: 600;
|
|
394
|
+
font-size: 13px;
|
|
395
|
+
letter-spacing: 0.46px;
|
|
396
|
+
text-transform: uppercase;
|
|
397
|
+
|
|
398
|
+
&:hover {
|
|
399
|
+
background: rgba(105, 31, 169, 0.06);
|
|
400
|
+
}
|
|
401
|
+
&:focus-visible {
|
|
402
|
+
outline: 2px solid ${t.colors.accent};
|
|
403
|
+
outline-offset: 2px;
|
|
404
|
+
}
|
|
405
|
+
`,zs=i.a`
|
|
406
|
+
flex: 1;
|
|
407
|
+
display: inline-flex;
|
|
408
|
+
align-items: center;
|
|
409
|
+
justify-content: center;
|
|
410
|
+
height: 48px;
|
|
411
|
+
border-radius: 8px;
|
|
412
|
+
background: ${t.colors.dclRed};
|
|
413
|
+
color: ${t.colors.softWhite};
|
|
414
|
+
cursor: pointer;
|
|
415
|
+
text-decoration: none;
|
|
416
|
+
font-family: ${t.font.sans};
|
|
417
|
+
font-weight: 600;
|
|
418
|
+
font-size: 13px;
|
|
419
|
+
letter-spacing: 0.46px;
|
|
420
|
+
text-transform: uppercase;
|
|
421
|
+
|
|
422
|
+
&:hover {
|
|
423
|
+
filter: brightness(1.05);
|
|
424
|
+
}
|
|
425
|
+
&:focus-visible {
|
|
426
|
+
outline: 2px solid ${t.colors.accent};
|
|
427
|
+
outline-offset: 2px;
|
|
428
|
+
}
|
|
429
|
+
`,Ge=i.div`
|
|
430
|
+
display: flex;
|
|
431
|
+
align-items: flex-start;
|
|
432
|
+
gap: 12px;
|
|
433
|
+
padding: 16px;
|
|
434
|
+
margin-top: 8px;
|
|
435
|
+
border-radius: 12px;
|
|
436
|
+
background: rgba(255, 45, 85, 0.1);
|
|
437
|
+
font-family: ${t.font.sans};
|
|
438
|
+
font-size: 14px;
|
|
439
|
+
line-height: 1.5;
|
|
440
|
+
color: ${t.colors.text};
|
|
441
|
+
|
|
442
|
+
.ico {
|
|
443
|
+
width: 22px;
|
|
444
|
+
height: 22px;
|
|
445
|
+
flex: none;
|
|
446
|
+
color: ${t.colors.dclRed};
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Informational, not a failure. Used for "your payment went through, the NAME is on its way" and for the
|
|
451
|
+
* reason a purchase is not available yet (no price, not enough credits) — none of which is an error, and
|
|
452
|
+
* all of which would contradict themselves rendered in the red error treatment.
|
|
453
|
+
*/
|
|
454
|
+
&[data-tone='info'] {
|
|
455
|
+
background: ${t.colors.panel};
|
|
456
|
+
|
|
457
|
+
.ico {
|
|
458
|
+
color: ${t.colors.accent};
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
`,Ps=i.div`
|
|
462
|
+
display: flex;
|
|
463
|
+
flex-direction: column;
|
|
464
|
+
gap: 24px;
|
|
465
|
+
margin-top: 16px;
|
|
466
|
+
`;i(En)`
|
|
467
|
+
display: grid;
|
|
468
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
469
|
+
gap: 28px 12px;
|
|
470
|
+
|
|
471
|
+
${t.media.maxWidth("mobile")} {
|
|
472
|
+
gap: 24px 12px;
|
|
473
|
+
}
|
|
474
|
+
`;i(Rn)`
|
|
475
|
+
position: relative;
|
|
476
|
+
`;i.span`
|
|
477
|
+
position: absolute;
|
|
478
|
+
top: -12px;
|
|
479
|
+
left: 50%;
|
|
480
|
+
transform: translateX(-50%);
|
|
481
|
+
z-index: 2;
|
|
482
|
+
display: inline-flex;
|
|
483
|
+
align-items: center;
|
|
484
|
+
gap: 4px;
|
|
485
|
+
padding: 4px 12px 4px 8px;
|
|
486
|
+
border-radius: ${t.radius.pill};
|
|
487
|
+
background: ${t.gradients.flare};
|
|
488
|
+
font-family: ${t.font.sans};
|
|
489
|
+
font-size: 12px;
|
|
490
|
+
font-weight: 500;
|
|
491
|
+
line-height: 18px;
|
|
492
|
+
color: ${t.colors.white};
|
|
493
|
+
white-space: nowrap;
|
|
494
|
+
|
|
495
|
+
.ico {
|
|
496
|
+
width: 16px;
|
|
497
|
+
height: 16px;
|
|
498
|
+
}
|
|
499
|
+
`;const Bs=i.div`
|
|
500
|
+
display: flex;
|
|
501
|
+
gap: 12px;
|
|
502
|
+
`,Fs=i.span`
|
|
503
|
+
display: grid;
|
|
504
|
+
place-items: center;
|
|
505
|
+
width: 100%;
|
|
506
|
+
height: 100%;
|
|
507
|
+
background: ${t.gradients.amethyst};
|
|
508
|
+
font-family: ${t.font.sans};
|
|
509
|
+
font-size: 32px;
|
|
510
|
+
font-weight: 700;
|
|
511
|
+
color: ${t.colors.white};
|
|
512
|
+
`;function Os({name:n,priceCredits:a,onClose:r}){const{session:d}=dt(),{data:h,isError:b}=_t(d),j=Mt(),c=Ze(),[l,w]=u.useState("confirm"),[g,C]=u.useState(""),[y,A]=u.useState(""),[p,v]=u.useState(!1),[f,$]=u.useState(null),x=(f==null?void 0:f.rail)??"credits",[T,B]=u.useState(null),[V,ae]=u.useState(!1),[S,_]=u.useState("preparing"),F=u.useRef(!1),H=g.trim().toLowerCase()===n.toLowerCase(),W=l==="completing"||p,N=a!=null?ht(a):"—",L=a==null,O=h==null?void 0:h.credits,D=a!=null&&O!=null?a-O:0,z=D>0,U=L?s("names.priceUnavailable"):null,{data:Z}=At(d),Q=(Z==null?void 0:Z.matic)??0n,G=Tn({priceCents:a!=null?a*We:0,priceManaWei:BigInt(Y),balanceCents:(h==null?void 0:h.balanceCents)??0,manaBalanceWei:Q,manaOnlyRail:!1}),E=G.options.some(m=>m.method!=="credits"),M=G.options.find(m=>m.method==="combined"),P=f==null&&E&&!L,R=In().packs.slice(0,Wn),{packs:q,recommended:J,closesGap:Me}=zn(R,D),K=q.find(m=>m.id===y)??J;u.useEffect(()=>{const m=k=>{k.key==="Escape"&&!W&&r()};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[W,r]);async function Ae(){if(!d||!H||L||F.current||x==="credits"&&z)return;F.current=!0;const m=x==="combined"?Math.floor(((f==null?void 0:f.creditsCents)??0)/We):a??null;w("completing"),B(null),_("preparing");try{const k=await ss({name:n,identity:d.identity,signer:d.signer,creditsCents:f==null?void 0:f.creditsCents,maxManaWei:f==null?void 0:f.manaWei,onProgress:_});Re("Shop Completed Purchase",{items:[{item_id:null,contract_address:null,token_id:null,price_usd:Je(a??0),category:"name",is_smart:!1}],purchase_type:"name",is_primary:!0,payment_type:x==="combined"?"credits_and_mana":"credits",value_credits:m,value_usd:Je(m??0),transaction_hash:k.originTxHash??null,settlement:k.status}),j.invalidateQueries({queryKey:["usd-balance"]}),j.invalidateQueries({queryKey:["my-assets"]}),w(k.status==="registered"?"success":"pending")}catch(k){Re(zt(k)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:Wt(k),purchase_type:"name"});const ce=k instanceof Ke,de=k instanceof Ve;B(k instanceof Qe?s("names.errorRouteCost"):ce?s("names.errorNotRegistered"):de?s("names.errorSettlementUnknown"):(k==null?void 0:k.message)||s("names.errorGeneric")),ae(ce||de),w("error")}finally{F.current=!1}}u.useEffect(()=>{const m=k=>{k.persisted&&v(!1)};return window.addEventListener("pageshow",m),()=>window.removeEventListener("pageshow",m)},[]);async function Ne(){if(!(!d||!K||p)){v(!0);try{sessionStorage.removeItem(Bn),sessionStorage.removeItem(Un),sessionStorage.setItem(nt,n)}catch{}try{const m=await Fn(K.id,{address:d.address,identity:d.identity});if(m.url){window.location.href=m.url;return}if(!m.orderId)throw new Error("Checkout returned neither a redirect url nor an order id");c(`/credits?order=${encodeURIComponent(m.orderId)}`)}catch(m){It(m,{flow:"name_buy_credits"});try{sessionStorage.removeItem(nt)}catch{}B(s("buyModal.error.creditsCheckout")),ae(!1),w("error"),v(!1)}}}const te=l!=="success"&&l!=="pending"&&!P,oe=Nt(d==null?void 0:d.providerType),he=oe?2:1,pe=oe&&(S==="preparing"||S==="awaiting-confirmation"),Le=pe?1:he,Ie=pe?s("names.confirming"):S==="registering"?s("names.registering"):s("names.completing"),re=S==="registering"?s("names.processingRegistering"):null,ne=l==="confirm"&&z&&!E,le=l==="error"?s("names.errorTitle"):ne?s("names.buyCreditsTitle"):s("names.buyTitle");return e.jsx(us,{onClick:W?void 0:r,role:"presentation",children:e.jsxs(ms,{role:"dialog","aria-modal":"true","aria-label":le,onClick:m=>m.stopPropagation(),children:[te&&e.jsxs(e.Fragment,{children:[e.jsxs(Pe,{children:[e.jsx(Be,{children:le}),e.jsx(Fe,{onClick:r,disabled:W,"aria-label":s("buyModal.close"),children:e.jsx(I,{name:"close"})})]}),e.jsxs(Oe,{children:[s("names.myCreditsBalance")," ",e.jsx(X,{})," ",ze(h,b)]}),e.jsx(Ue,{})]}),ne&&e.jsxs(Ps,{children:[e.jsxs(_n,{children:[e.jsx(Mn,{}),e.jsxs(An,{children:[e.jsx("b",{children:s("buyModal.insufficientFunds")})," ",s("buyModal.warningNeedToBuy")," ",e.jsx("b",{children:s("buyModal.warningCreditsAmount",{count:D})})," ",s("names.warningToPurchase"),me()?null:e.jsxs(e.Fragment,{children:[" ",e.jsx(Nn,{href:Lt("/credits"),target:"_blank",rel:"noopener noreferrer",children:s("buyModal.warningLearnMore")})]})]})]}),me()?e.jsxs(ge,{"data-testid":"name-row-iap",children:[e.jsx(He,{"aria-hidden":!0,children:"@"}),e.jsxs(be,{children:[e.jsxs(ye,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(we,{children:s("names.subtitle")})]}),e.jsxs(je,{children:[e.jsx(X,{}),N]})]}):null,me()?null:e.jsx(e.Fragment,{children:e.jsx(Ln,{packs:q,selectedId:K==null?void 0:K.id,onSelect:A,recommendedId:Me?J==null?void 0:J.id:void 0})}),e.jsxs(Bs,{children:[e.jsx(tt,{"data-variant":"outline",onClick:r,disabled:W,"data-testid":"name-topup-cancel",children:s("buyModal.cancel")}),me()?null:e.jsx(tt,{"data-variant":"gradient","data-testid":"name-buy-credits",disabled:!d||!K||p,onClick:()=>void Ne(),children:s("buyModal.buy")})]})]}),l==="confirm"&&!ne&&P&&e.jsx(On,{asset:{name:`${n}.dcl.eth`,caption:s("names.subtitle"),thumb:e.jsx(Fs,{"aria-hidden":!0,children:"@"})},priceCredits:a??0,priceCents:(a??0)*We,options:G.options,priceManaWei:BigInt(Y),balanceCredits:(h==null?void 0:h.credits)??0,manaBalanceWei:Q,onBuy:m=>{$(m==="combined"&&M?{rail:"combined",creditsCents:M.creditsCents,manaWei:M.manaWei}:{rail:"credits"})},onClose:r,busy:W}),(l==="confirm"||l==="error")&&!ne&&!P&&e.jsxs(e.Fragment,{children:[e.jsxs(ge,{children:[e.jsx(He,{"aria-hidden":!0,children:"@"}),e.jsxs(be,{children:[e.jsxs(ye,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(we,{children:s("names.subtitle")})]}),e.jsxs(je,{children:[e.jsx(X,{}),N]})]}),l==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(Ge,{children:[e.jsx(I,{name:"info","aria-hidden":!0}),e.jsx("span",{children:T})]}),V?e.jsx(De,{onClick:r,children:s("names.errorSpentDismiss")}):e.jsx(De,{onClick:()=>w("confirm"),children:s("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(ys,{children:[e.jsx(ws,{children:s("names.confirmTitle")}),e.jsx(js,{dangerouslySetInnerHTML:{__html:s("names.confirmBody",{name:`<b>@${Us(n)}</b>`})}}),e.jsxs(vs,{children:[e.jsx(Cs,{"aria-hidden":!0,children:"@"}),e.jsx($s,{value:g,onChange:m=>C(m.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":s("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(g.length,8)}ch`}}),e.jsx(ks,{children:".dcl.eth"})]})]}),U?e.jsxs(Ge,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(I,{name:"info","aria-hidden":!0}),e.jsx("span",{children:U})]}):null,e.jsx(De,{onClick:()=>void Ae(),disabled:!H||!d||L||x==="credits"&&z,children:s("names.buyCta")})]})]}),l==="completing"&&e.jsxs(Ss,{children:[e.jsx(Es,{src:Pn,alt:"",width:61,height:61}),e.jsxs(Rs,{children:[e.jsx(Ts,{children:Ie}),e.jsxs(Ms,{children:[e.jsx(As,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(Ns,{"data-testid":"name-progress-count",children:`${Le}/${he}`})]}),re?e.jsx(_s,{children:re}):null]})]}),l==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs(Pe,{children:[e.jsx(Be,{children:s("names.pendingHeaderTitle")}),e.jsx(Fe,{onClick:r,"aria-label":s("buyModal.close"),children:e.jsx(I,{name:"close"})})]}),e.jsxs(Oe,{children:[s("names.myCreditsBalance")," ",e.jsx(X,{})," ",ze(h,b)]}),e.jsx(Ue,{}),e.jsxs(Ge,{"data-tone":"info",children:[e.jsx(I,{name:"info","aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("b",{children:s("names.pendingBannerBold")})," ",s("names.pendingBannerRest")]})]}),e.jsxs(ge,{style:{marginTop:20},children:[e.jsx(He,{"aria-hidden":!0,children:"@"}),e.jsxs(be,{children:[e.jsxs(ye,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(we,{children:s("names.subtitle")})]}),e.jsxs(je,{children:[e.jsx(X,{}),N]})]}),e.jsx(at,{children:e.jsx(ot,{onClick:()=>{r(),c("/my-items")},children:s("names.myItems")})})]}),l==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(Pe,{children:[e.jsx(Be,{children:s("names.successHeaderTitle")}),e.jsx(Fe,{onClick:r,"aria-label":s("buyModal.close"),children:e.jsx(I,{name:"close"})})]}),e.jsxs(Oe,{children:[s("names.myCreditsBalance")," ",e.jsx(X,{})," ",ze(h,b)]}),e.jsx(Ue,{}),e.jsxs(Ls,{children:[e.jsx(Is,{"aria-hidden":!0,children:e.jsx(I,{name:"check"})}),e.jsxs(Ws,{children:[e.jsx("b",{children:s("names.successBannerBold")})," ",s("names.successBannerRest")]})]}),e.jsxs(ge,{style:{marginTop:20},children:[e.jsxs(fs,{"data-testid":"name-success-tile",children:[e.jsx(xs,{src:Hn,alt:"","aria-hidden":!0,width:47,height:47}),e.jsxs(gs,{children:[e.jsx("span",{"aria-hidden":!0,children:n}),e.jsx(bs,{src:hs,alt:"","aria-hidden":!0,width:14,height:14})]})]}),e.jsxs(be,{children:[e.jsxs(ye,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(we,{children:s("names.subtitle")})]}),e.jsxs(je,{children:[e.jsx(X,{}),N]})]}),e.jsxs(at,{children:[e.jsx(ot,{onClick:()=>{r(),c("/my-items")},children:s("names.myItems")}),e.jsx(zs,{href:ie.profileUrl,target:"_blank",rel:"noopener noreferrer",children:s("names.assignToAvatar")})]})]})]})})}function Us(n){return n.replace(/[&<>"']/g,a=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[a])}const Hs="https://cdn.decentraland.org/@dcl/shop/1.19.1-36725100317.commit-9ad1d65/_assets/identity-icon-C8yAW_Gq.svg",Ds="https://cdn.decentraland.org/@dcl/shop/1.19.1-36725100317.commit-9ad1d65/_assets/world-icon-6xQ-PmmW.svg",Gs="https://cdn.decentraland.org/@dcl/shop/1.19.1-36725100317.commit-9ad1d65/_assets/invite-icon-Bz6lCTuB.svg",qs="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",Ks=i.div`
|
|
513
|
+
width: 100%;
|
|
514
|
+
min-width: 0;
|
|
515
|
+
`,Vs=i.nav`
|
|
516
|
+
display: flex;
|
|
517
|
+
align-items: center;
|
|
518
|
+
gap: 6px;
|
|
519
|
+
margin: 4px 0 16px;
|
|
520
|
+
font-family: ${t.font.sans};
|
|
521
|
+
font-size: 12px;
|
|
522
|
+
line-height: 1;
|
|
523
|
+
color: ${t.colors.gray4};
|
|
524
|
+
${Dn};
|
|
525
|
+
`,Zs=i.button`
|
|
526
|
+
border: 0;
|
|
527
|
+
background: none;
|
|
528
|
+
padding: 0;
|
|
529
|
+
cursor: pointer;
|
|
530
|
+
font: inherit;
|
|
531
|
+
color: ${t.colors.gray4};
|
|
532
|
+
|
|
533
|
+
&:hover {
|
|
534
|
+
color: ${t.colors.white};
|
|
535
|
+
text-decoration: underline;
|
|
536
|
+
}
|
|
537
|
+
&:focus-visible {
|
|
538
|
+
outline: 2px solid ${t.colors.white};
|
|
539
|
+
outline-offset: 2px;
|
|
540
|
+
}
|
|
541
|
+
`,Qs=i.span`
|
|
542
|
+
font-weight: 700;
|
|
543
|
+
color: ${t.colors.softWhite};
|
|
544
|
+
`,Xs=i.div`
|
|
545
|
+
display: flex;
|
|
546
|
+
flex-direction: column;
|
|
547
|
+
gap: 48px;
|
|
548
|
+
padding-bottom: 48px;
|
|
549
|
+
|
|
550
|
+
${t.media.maxWidth("mobile")} {
|
|
551
|
+
gap: 32px;
|
|
552
|
+
padding-bottom: 32px;
|
|
553
|
+
}
|
|
554
|
+
`,Ys=i.div`
|
|
555
|
+
position: relative;
|
|
556
|
+
border: 1px solid ${t.colors.magenta};
|
|
557
|
+
border-radius: 24px;
|
|
558
|
+
overflow: hidden;
|
|
559
|
+
padding: 88px 48px;
|
|
560
|
+
display: flex;
|
|
561
|
+
flex-direction: column;
|
|
562
|
+
align-items: center;
|
|
563
|
+
gap: 48px;
|
|
564
|
+
text-align: center;
|
|
565
|
+
background: ${t.colors.overlay};
|
|
566
|
+
|
|
567
|
+
${t.media.maxWidth("mobile")} {
|
|
568
|
+
padding: 40px 20px;
|
|
569
|
+
gap: 28px;
|
|
570
|
+
}
|
|
571
|
+
`,Js=i.div`
|
|
572
|
+
display: flex;
|
|
573
|
+
flex-direction: column;
|
|
574
|
+
align-items: center;
|
|
575
|
+
gap: 12px;
|
|
576
|
+
`,ei=i.h1`
|
|
577
|
+
margin: 0;
|
|
578
|
+
font-family: ${t.font.sans};
|
|
579
|
+
font-weight: 600;
|
|
580
|
+
font-size: 40px;
|
|
581
|
+
line-height: 1.167;
|
|
582
|
+
color: ${t.colors.white};
|
|
583
|
+
|
|
584
|
+
${t.media.maxWidth("mobile")} {
|
|
585
|
+
font-size: 26px;
|
|
586
|
+
}
|
|
587
|
+
`,ti=i.p`
|
|
588
|
+
margin: 0;
|
|
589
|
+
max-width: 760px;
|
|
590
|
+
font-family: ${t.font.sans};
|
|
591
|
+
font-weight: 500;
|
|
592
|
+
font-size: 24px;
|
|
593
|
+
line-height: 1.334;
|
|
594
|
+
color: #ecebed;
|
|
595
|
+
|
|
596
|
+
${t.media.maxWidth("mobile")} {
|
|
597
|
+
font-size: 16px;
|
|
598
|
+
}
|
|
599
|
+
`,ni=i.div`
|
|
600
|
+
width: min(785px, 100%);
|
|
601
|
+
display: flex;
|
|
602
|
+
flex-direction: column;
|
|
603
|
+
gap: 12px;
|
|
604
|
+
`,si=i.div`
|
|
605
|
+
position: relative;
|
|
606
|
+
`,ii=i("div",Gn("invalid"))`
|
|
607
|
+
display: flex;
|
|
608
|
+
align-items: center;
|
|
609
|
+
gap: 8px;
|
|
610
|
+
padding: 8px 8px 8px 16px;
|
|
611
|
+
background: ${t.colors.softWhite};
|
|
612
|
+
/* Figma 1368:349148 gives the field a 3px Orange edge — it is the page's one input, and the design
|
|
613
|
+
leans on that weight to carry it. Red only when what has been typed cannot be claimed. */
|
|
614
|
+
border: 3px solid ${({invalid:n})=>n?t.colors.dclRed:t.colors.orange};
|
|
615
|
+
border-radius: 20px;
|
|
616
|
+
|
|
617
|
+
&:focus-within {
|
|
618
|
+
border-color: ${({invalid:n})=>n?t.colors.dclRed:t.colors.magenta};
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
${t.media.maxWidth("mobile")} {
|
|
622
|
+
border-radius: 16px;
|
|
623
|
+
}
|
|
624
|
+
`,ai=i.span`
|
|
625
|
+
position: absolute;
|
|
626
|
+
left: -9999px;
|
|
627
|
+
top: 0;
|
|
628
|
+
visibility: hidden;
|
|
629
|
+
pointer-events: none;
|
|
630
|
+
white-space: pre;
|
|
631
|
+
font-family: ${t.font.sans};
|
|
632
|
+
font-size: 20px;
|
|
633
|
+
font-weight: 600;
|
|
634
|
+
line-height: 1.6;
|
|
635
|
+
|
|
636
|
+
/* An empty field paints the PLACEHOLDER, which is lighter than a typed value — so the mirror has to
|
|
637
|
+
be lighter too. Measuring the placeholder at the value's weight made the box a few pixels wider
|
|
638
|
+
than the text in it, and ".dcl.eth" sat that far off the end of the word. */
|
|
639
|
+
&[data-placeholder] {
|
|
640
|
+
font-weight: 400;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
${t.media.maxWidth("mobile")} {
|
|
644
|
+
font-size: 16px;
|
|
645
|
+
}
|
|
646
|
+
`,oi=i.div`
|
|
647
|
+
position: absolute;
|
|
648
|
+
top: calc(100% + 8px);
|
|
649
|
+
left: 0;
|
|
650
|
+
right: 0;
|
|
651
|
+
z-index: 2;
|
|
652
|
+
display: flex;
|
|
653
|
+
align-items: center;
|
|
654
|
+
gap: 8px;
|
|
655
|
+
padding: 8px 12px;
|
|
656
|
+
border-radius: 8px;
|
|
657
|
+
background: #ffcdd4;
|
|
658
|
+
color: #ec303a;
|
|
659
|
+
font-family: ${t.font.sans};
|
|
660
|
+
font-size: 14px;
|
|
661
|
+
font-weight: 500;
|
|
662
|
+
line-height: 1.2;
|
|
663
|
+
text-align: left;
|
|
664
|
+
|
|
665
|
+
${t.media.maxWidth("mobile")} {
|
|
666
|
+
position: static;
|
|
667
|
+
margin-top: 8px;
|
|
668
|
+
align-items: flex-start;
|
|
669
|
+
flex-wrap: wrap;
|
|
670
|
+
}
|
|
671
|
+
`,xt=i.a`
|
|
672
|
+
display: inline-flex;
|
|
673
|
+
align-items: center;
|
|
674
|
+
gap: 2px;
|
|
675
|
+
margin-left: auto;
|
|
676
|
+
font-weight: 600;
|
|
677
|
+
text-decoration: underline;
|
|
678
|
+
text-transform: uppercase;
|
|
679
|
+
white-space: nowrap;
|
|
680
|
+
|
|
681
|
+
${t.media.maxWidth("mobile")} {
|
|
682
|
+
margin-left: 0;
|
|
683
|
+
}
|
|
684
|
+
`,ri=i(xt)`
|
|
685
|
+
color: #ec303a;
|
|
686
|
+
`,li=i.label`
|
|
687
|
+
flex: 1;
|
|
688
|
+
min-width: 0;
|
|
689
|
+
display: flex;
|
|
690
|
+
align-items: center;
|
|
691
|
+
gap: 0;
|
|
692
|
+
cursor: text;
|
|
693
|
+
overflow: hidden;
|
|
694
|
+
`,ci=i.span`
|
|
695
|
+
flex: none;
|
|
696
|
+
margin-right: 8px;
|
|
697
|
+
font-family: ${t.font.sans};
|
|
698
|
+
font-size: 26px;
|
|
699
|
+
font-weight: 500;
|
|
700
|
+
line-height: 1;
|
|
701
|
+
color: ${t.colors.muted2};
|
|
702
|
+
|
|
703
|
+
${t.media.maxWidth("mobile")} {
|
|
704
|
+
font-size: 20px;
|
|
705
|
+
}
|
|
706
|
+
`,di=i.input`
|
|
707
|
+
flex: 0 1 auto;
|
|
708
|
+
min-width: 0;
|
|
709
|
+
max-width: 100%;
|
|
710
|
+
border: 0;
|
|
711
|
+
outline: none;
|
|
712
|
+
background: transparent;
|
|
713
|
+
font-family: ${t.font.sans};
|
|
714
|
+
font-size: 20px;
|
|
715
|
+
font-weight: 600;
|
|
716
|
+
line-height: 1.6;
|
|
717
|
+
color: ${t.colors.text};
|
|
718
|
+
padding: 0;
|
|
719
|
+
|
|
720
|
+
&::placeholder {
|
|
721
|
+
color: ${t.colors.muted1};
|
|
722
|
+
font-weight: 400;
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
${t.media.maxWidth("mobile")} {
|
|
726
|
+
font-size: 16px;
|
|
727
|
+
}
|
|
728
|
+
`,hi=i.span`
|
|
729
|
+
flex: none;
|
|
730
|
+
/* Flush against the name: "yourname.dcl.eth" has to read as one address, and at 20px even a couple of
|
|
731
|
+
pixels here look like a space someone typed by mistake. */
|
|
732
|
+
margin-left: 0;
|
|
733
|
+
/* Not selectable: it is the fixed part of the address, not something the reader typed. */
|
|
734
|
+
user-select: none;
|
|
735
|
+
-webkit-user-select: none;
|
|
736
|
+
font-family: ${t.font.sans};
|
|
737
|
+
font-size: 20px;
|
|
738
|
+
font-weight: 400;
|
|
739
|
+
line-height: 1.6;
|
|
740
|
+
color: ${t.colors.muted1};
|
|
741
|
+
|
|
742
|
+
${t.media.maxWidth("mobile")} {
|
|
743
|
+
font-size: 16px;
|
|
744
|
+
}
|
|
745
|
+
`,pi=i.span`
|
|
746
|
+
flex: none;
|
|
747
|
+
font-family: ${t.font.sans};
|
|
748
|
+
font-size: 14px;
|
|
749
|
+
line-height: 1.43;
|
|
750
|
+
color: ${t.colors.muted2};
|
|
751
|
+
white-space: nowrap;
|
|
752
|
+
`,gt=i.button`
|
|
753
|
+
flex: none;
|
|
754
|
+
display: inline-flex;
|
|
755
|
+
align-items: center;
|
|
756
|
+
justify-content: center;
|
|
757
|
+
gap: 8px;
|
|
758
|
+
height: 52px;
|
|
759
|
+
padding: 0 24px;
|
|
760
|
+
border: 0;
|
|
761
|
+
border-radius: 12px;
|
|
762
|
+
cursor: pointer;
|
|
763
|
+
background: ${t.gradients.buyBtn};
|
|
764
|
+
color: ${t.colors.softWhite};
|
|
765
|
+
font-family: ${t.font.sans};
|
|
766
|
+
font-weight: 600;
|
|
767
|
+
font-size: 15px;
|
|
768
|
+
letter-spacing: 0.46px;
|
|
769
|
+
line-height: 24px;
|
|
770
|
+
text-transform: uppercase;
|
|
771
|
+
transition: background-image 0.15s ease;
|
|
772
|
+
|
|
773
|
+
/* Both ends stay on background-IMAGE: a gradient cannot interpolate to a plain colour, so swapping
|
|
774
|
+
the background shorthand instead blanks the button for the length of the transition. */
|
|
775
|
+
&:hover:not(:disabled),
|
|
776
|
+
&:active:not(:disabled) {
|
|
777
|
+
background-image: linear-gradient(${t.colors.dclRed}, ${t.colors.dclRed});
|
|
778
|
+
}
|
|
779
|
+
&:focus-visible {
|
|
780
|
+
outline: 2px solid ${t.colors.white};
|
|
781
|
+
outline-offset: 2px;
|
|
782
|
+
}
|
|
783
|
+
&:disabled {
|
|
784
|
+
cursor: not-allowed;
|
|
785
|
+
opacity: 0.5;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
${t.media.maxWidth("mobile")} {
|
|
789
|
+
display: none;
|
|
790
|
+
}
|
|
791
|
+
`,ui=i(gt)`
|
|
792
|
+
display: none;
|
|
793
|
+
|
|
794
|
+
${t.media.maxWidth("mobile")} {
|
|
795
|
+
display: inline-flex;
|
|
796
|
+
width: 100%;
|
|
797
|
+
height: 48px;
|
|
798
|
+
border-radius: 12px;
|
|
799
|
+
}
|
|
800
|
+
`,mi=i.span`
|
|
801
|
+
display: inline-flex;
|
|
802
|
+
align-items: center;
|
|
803
|
+
gap: 4px;
|
|
804
|
+
font-size: 18px;
|
|
805
|
+
font-weight: 600;
|
|
806
|
+
|
|
807
|
+
.ico {
|
|
808
|
+
width: 13.26px;
|
|
809
|
+
height: 14px;
|
|
810
|
+
}
|
|
811
|
+
`,fi=i.div`
|
|
812
|
+
display: flex;
|
|
813
|
+
align-items: center;
|
|
814
|
+
gap: 8px;
|
|
815
|
+
padding: 8px 14px;
|
|
816
|
+
border-radius: 8px;
|
|
817
|
+
font-family: ${t.font.sans};
|
|
818
|
+
font-size: 13px;
|
|
819
|
+
font-weight: 500;
|
|
820
|
+
text-align: left;
|
|
821
|
+
|
|
822
|
+
background: ${({tone:n})=>n==="error"?"rgba(255, 45, 85, 0.12)":n==="ok"?"rgba(30, 166, 114, 0.14)":"rgba(255,255,255,0.14)"};
|
|
823
|
+
color: ${({tone:n})=>n==="error"?t.colors.dclRed:n==="ok"?"#0f7a4f":"#ecebed"};
|
|
824
|
+
|
|
825
|
+
.ico {
|
|
826
|
+
width: 16px;
|
|
827
|
+
height: 16px;
|
|
828
|
+
flex: none;
|
|
829
|
+
}
|
|
830
|
+
`,ve=i(fi)`
|
|
831
|
+
position: absolute;
|
|
832
|
+
top: calc(100% + 8px);
|
|
833
|
+
left: 0;
|
|
834
|
+
right: 0;
|
|
835
|
+
z-index: 2;
|
|
836
|
+
|
|
837
|
+
/* Static on mobile, as TakenBanner is: the claim button sits below InputWrap there, so anything
|
|
838
|
+
floating out of the input lands on top of it. */
|
|
839
|
+
${t.media.maxWidth("mobile")} {
|
|
840
|
+
position: static;
|
|
841
|
+
margin-top: 8px;
|
|
842
|
+
}
|
|
843
|
+
`,xi=i(xt)`
|
|
844
|
+
color: inherit;
|
|
845
|
+
`,gi=i.section`
|
|
846
|
+
display: flex;
|
|
847
|
+
flex-direction: column;
|
|
848
|
+
gap: 48px;
|
|
849
|
+
padding: 0 48px;
|
|
850
|
+
|
|
851
|
+
${t.media.maxWidth("mobile")} {
|
|
852
|
+
gap: 32px;
|
|
853
|
+
padding: 0 20px;
|
|
854
|
+
}
|
|
855
|
+
`,bi=i.div`
|
|
856
|
+
display: flex;
|
|
857
|
+
flex-direction: column;
|
|
858
|
+
align-items: center;
|
|
859
|
+
gap: 24px;
|
|
860
|
+
`,yi=i.h2`
|
|
861
|
+
margin: 0;
|
|
862
|
+
text-align: center;
|
|
863
|
+
font-family: ${t.font.sans};
|
|
864
|
+
font-weight: 600;
|
|
865
|
+
font-size: 32px;
|
|
866
|
+
line-height: 1.167;
|
|
867
|
+
color: ${t.colors.white};
|
|
868
|
+
|
|
869
|
+
${t.media.maxWidth("mobile")} {
|
|
870
|
+
font-size: 22px;
|
|
871
|
+
}
|
|
872
|
+
`,wi=i.p`
|
|
873
|
+
margin: 0;
|
|
874
|
+
max-width: 907px;
|
|
875
|
+
text-align: center;
|
|
876
|
+
font-family: ${t.font.sans};
|
|
877
|
+
font-weight: 400;
|
|
878
|
+
font-size: 20px;
|
|
879
|
+
line-height: 1.57;
|
|
880
|
+
color: ${t.colors.gray4};
|
|
881
|
+
|
|
882
|
+
${t.media.maxWidth("mobile")} {
|
|
883
|
+
font-size: 16px;
|
|
884
|
+
}
|
|
885
|
+
`,ji=i.div`
|
|
886
|
+
display: grid;
|
|
887
|
+
grid-template-columns: repeat(4, 1fr);
|
|
888
|
+
gap: 24px;
|
|
889
|
+
align-items: stretch;
|
|
890
|
+
|
|
891
|
+
${t.media.maxWidth("lg")} {
|
|
892
|
+
grid-template-columns: repeat(2, 1fr);
|
|
893
|
+
}
|
|
894
|
+
${t.media.maxWidth("mobile")} {
|
|
895
|
+
grid-template-columns: 1fr;
|
|
896
|
+
}
|
|
897
|
+
`,Ce=i.article`
|
|
898
|
+
min-width: 0;
|
|
899
|
+
display: flex;
|
|
900
|
+
flex-direction: column;
|
|
901
|
+
gap: 32px;
|
|
902
|
+
padding: 24px;
|
|
903
|
+
background: ${t.colors.overlay};
|
|
904
|
+
border-radius: 24px;
|
|
905
|
+
|
|
906
|
+
@media (forced-colors: active) {
|
|
907
|
+
outline: 1px solid CanvasText;
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
${t.media.maxWidth("mobile")} {
|
|
911
|
+
gap: 20px;
|
|
912
|
+
padding: 20px;
|
|
913
|
+
}
|
|
914
|
+
`,$e=i.img`
|
|
915
|
+
display: block;
|
|
916
|
+
align-self: flex-start;
|
|
917
|
+
height: 55px;
|
|
918
|
+
width: auto;
|
|
919
|
+
`,ke=i.div`
|
|
920
|
+
flex: 1;
|
|
921
|
+
display: flex;
|
|
922
|
+
flex-direction: column;
|
|
923
|
+
gap: 12px;
|
|
924
|
+
`,Se=i.h3`
|
|
925
|
+
margin: 0;
|
|
926
|
+
font-family: ${t.font.sans};
|
|
927
|
+
font-weight: 700;
|
|
928
|
+
font-size: 20px;
|
|
929
|
+
line-height: 1.57;
|
|
930
|
+
text-transform: uppercase;
|
|
931
|
+
color: ${t.colors.white};
|
|
932
|
+
`,Ee=i.p`
|
|
933
|
+
margin: 0;
|
|
934
|
+
font-family: ${t.font.sans};
|
|
935
|
+
font-weight: 400;
|
|
936
|
+
font-size: 14px;
|
|
937
|
+
line-height: 1.57;
|
|
938
|
+
color: ${t.colors.media};
|
|
939
|
+
`,vi=i.span`
|
|
940
|
+
font-weight: 700;
|
|
941
|
+
color: ${t.colors.white};
|
|
942
|
+
`,rt=i.a`
|
|
943
|
+
display: inline-flex;
|
|
944
|
+
align-items: center;
|
|
945
|
+
gap: 2px;
|
|
946
|
+
margin-top: auto;
|
|
947
|
+
font-family: ${t.font.sans};
|
|
948
|
+
font-weight: 500;
|
|
949
|
+
font-size: 14px;
|
|
950
|
+
line-height: 30px;
|
|
951
|
+
color: ${t.colors.softWhite};
|
|
952
|
+
text-decoration: underline;
|
|
953
|
+
|
|
954
|
+
&:focus-visible {
|
|
955
|
+
outline: 2px solid ${t.colors.softWhite};
|
|
956
|
+
outline-offset: 2px;
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
.ico {
|
|
960
|
+
width: 13px;
|
|
961
|
+
height: 13px;
|
|
962
|
+
}
|
|
963
|
+
`,Ci=i.span`
|
|
964
|
+
position: absolute;
|
|
965
|
+
width: 1px;
|
|
966
|
+
height: 1px;
|
|
967
|
+
padding: 0;
|
|
968
|
+
margin: -1px;
|
|
969
|
+
overflow: hidden;
|
|
970
|
+
clip: rect(0, 0, 0, 0);
|
|
971
|
+
white-space: nowrap;
|
|
972
|
+
border: 0;
|
|
973
|
+
`,$i="https://docs.decentraland.org/creator/worlds/about/",ki="https://governance.decentraland.org";function lt(n){const a=typeof window<"u"?window.location.hostname:"";return`${a.endsWith("decentraland.org")?"https://decentraland.org":a.endsWith("decentraland.today")?"https://decentraland.today":"https://decentraland.zone"}/marketplace/names/browse?search=${encodeURIComponent(n)}`}function Si({onBack:n}){pt({title:s("seo.names.title"),description:s("seo.names.description")});const{session:a,signIn:r}=dt(),d=Ze(),h=yt(),{pathname:b,search:j}=h,c=h.state,l=typeof(c==null?void 0:c.resumeName)=="string"?c:void 0,w=is(),{data:g}=ut(),C=g?mt(Y,g):null,[y,A]=u.useState((l==null?void 0:l.resumeName)??""),[p,v]=u.useState("idle"),[f,$]=u.useState(!1),[x,T]=u.useState((l==null?void 0:l.resumeName)??""),[B,V]=u.useState(!!(l!=null&&l.resumeName)),[ae,S]=u.useState(()=>{var E;return typeof window<"u"&&!!((E=window.matchMedia)!=null&&E.call(window,"(prefers-reduced-motion: reduce)").matches)});u.useEffect(()=>{var P;const E=(P=window.matchMedia)==null?void 0:P.call(window,"(prefers-reduced-motion: reduce)");if(!E)return;const M=R=>S(R.matches);return E.addEventListener("change",M),()=>E.removeEventListener("change",M)},[]);const _=s("names.placeholderExamples"),F=u.useMemo(()=>_.split(",").map(E=>E.trim()).filter(Boolean),[_]),W=ds(F,!B&&!y&&!ae)||s("names.inputPlaceholder"),N=u.useRef(null),[L,O]=u.useState(void 0);u.useLayoutEffect(()=>{N.current&&O(N.current.getBoundingClientRect().width)},[y,W]),u.useEffect(()=>{if(!st(y).ok){v(y.length===0?"idle":"invalid");return}v("checking");const M=new AbortController,P=setTimeout(()=>{(async()=>{try{const R=await Xn(y,{signal:M.signal});v(R)}catch(R){if((R==null?void 0:R.name)==="AbortError")return;v("error")}})()},400);return()=>{clearTimeout(P),M.abort()}},[y]);const D=st(y),z=D.ok&&(p==="available"||p==="error"),U=w&&z,Z=!w&&z;function Q(){if(U){if(!a){r();return}$(!0)}}u.useEffect(()=>{l!=null&&l.resumeName&&d(`${b}${j}`,{replace:!0,state:null})},[l==null?void 0:l.resumeName,d,b,j]),u.useEffect(()=>{if(x){if(y.toLowerCase()!==x.toLowerCase()){T("");return}if(!(p==="idle"||p==="checking")){if(!z){T("");return}!w||!a||(T(""),$(!0))}}},[x,y,p,z,w,a]);const G=e.jsxs(e.Fragment,{children:[s("names.claim"),C!=null?e.jsxs(mi,{children:[e.jsx(X,{}),ht(C)]}):null]});return e.jsxs(Ks,{"data-testid":"names-page",children:[e.jsxs(Vs,{"aria-label":s("names.breadcrumbAria"),children:[e.jsx(Zs,{onClick:n,children:s("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(Qs,{children:s("names.breadcrumbCurrent")})]}),e.jsxs(Xs,{children:[e.jsxs(Ys,{children:[e.jsxs(Js,{children:[e.jsx(ei,{children:s("names.heroTitle")}),e.jsx(ti,{children:s("names.heroSubtitle")})]}),e.jsxs(ni,{children:[e.jsxs(si,{"data-testid":"names-input-wrap",children:[e.jsxs(ii,{invalid:p==="taken",children:[e.jsxs(li,{children:[e.jsx(ci,{"aria-hidden":!0,children:"@"}),e.jsx(di,{value:y,onChange:E=>A(Vn(E.target.value)),placeholder:W,"aria-label":s("names.inputAria"),autoComplete:"off",spellCheck:!1,maxLength:_e,onFocus:()=>V(!0),style:{width:L!=null?`${L}px`:void 0}}),e.jsx(ai,{ref:N,"aria-hidden":!0,"data-placeholder":!y||void 0,children:y||W}),e.jsx(hi,{children:s("names.suffix")})]}),y.length>0?e.jsxs(pi,{"aria-hidden":!0,children:[y.length,"/",_e]}):null,e.jsx(gt,{onClick:Q,disabled:!U,"data-testid":"names-claim",children:G})]}),p==="taken"?e.jsxs(oi,{role:"status","data-testid":"names-taken",children:[e.jsx(I,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:s("names.taken")}),e.jsxs(ri,{href:lt(y),target:"_blank",rel:"noopener noreferrer",children:[s("names.takenMakeOffer"),e.jsx(I,{name:"external-link",size:13,"aria-hidden":!0})]})]}):null,p==="checking"?e.jsx(ve,{tone:"muted",role:"status","data-testid":"names-checking",children:s("names.checking")}):Z?e.jsxs(ve,{tone:"muted",role:"status","data-testid":"names-disabled",children:[e.jsx(I,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:s("names.registrationDisabled")}),e.jsxs(xi,{href:lt(y),target:"_blank",rel:"noopener noreferrer",children:[s("names.registrationDisabledLink"),e.jsx(I,{name:"external-link",size:13,"aria-hidden":!0})]})]}):p==="error"?e.jsx(ve,{tone:"muted",role:"status",children:s("names.checkError")}):p==="invalid"&&!D.ok&&D.reason==="too-short"?e.jsx(ve,{tone:"muted",role:"status",children:s("names.tooShort",{min:ft})}):null]}),e.jsx(ui,{onClick:Q,disabled:!U,children:G}),e.jsx(Ci,{role:"status","aria-live":"polite",children:p==="available"?s("names.available",{name:y}):""})]})]}),e.jsxs(gi,{children:[e.jsxs(bi,{children:[e.jsx(yi,{children:s("names.whyTitle")}),e.jsx(wi,{children:s("names.whyIntro")})]}),e.jsxs(ji,{children:[e.jsxs(Ce,{children:[e.jsx($e,{src:Hs,alt:""}),e.jsxs(ke,{children:[e.jsx(Se,{children:s("names.why1Title")}),e.jsx(Ee,{children:s("names.why1")})]})]}),e.jsxs(Ce,{children:[e.jsx($e,{src:Ds,alt:""}),e.jsxs(ke,{children:[e.jsx(Se,{children:s("names.why2Title")}),e.jsxs(Ee,{children:[s("names.why2")," ",e.jsx(vi,{children:s("names.why2Address")})]}),e.jsxs(rt,{href:$i,target:"_blank",rel:"noopener noreferrer",children:[s("names.learnMore"),e.jsx(I,{name:"external-link","aria-hidden":!0})]})]})]}),e.jsxs(Ce,{children:[e.jsx($e,{src:Gs,alt:""}),e.jsxs(ke,{children:[e.jsx(Se,{children:s("names.why3Title")}),e.jsx(Ee,{children:s("names.why3")})]})]}),e.jsxs(Ce,{children:[e.jsx($e,{src:qs,alt:""}),e.jsxs(ke,{children:[e.jsx(Se,{children:s("names.why4Title")}),e.jsx(Ee,{children:s("names.why4")}),e.jsxs(rt,{href:ki,target:"_blank",rel:"noopener noreferrer",children:[s("names.learnMore"),e.jsx(I,{name:"external-link","aria-hidden":!0})]})]})]})]})]})]}),f?e.jsx(Os,{name:y,priceCredits:C,onClose:()=>$(!1)}):null]})}const Ei=i.p`
|
|
974
|
+
display: flex;
|
|
975
|
+
align-items: center;
|
|
976
|
+
gap: 10px;
|
|
977
|
+
background: ${t.colors.rarityBg};
|
|
978
|
+
color: ${t.colors.accent};
|
|
979
|
+
border-radius: 12px;
|
|
980
|
+
padding: 12px 16px;
|
|
981
|
+
margin-bottom: 14px;
|
|
982
|
+
font-weight: 600;
|
|
983
|
+
font-size: 14px;
|
|
984
|
+
|
|
985
|
+
&[data-variant='warn'] {
|
|
986
|
+
background: rgba(211, 51, 51, 0.1);
|
|
987
|
+
color: ${t.colors.err};
|
|
988
|
+
}
|
|
989
|
+
`,ct=48,Ri=["all","on_sale","not_for_sale"],Ti=n=>n?"all":"on_sale",qe=(n,a)=>n?"relevance":a?"discount":"newest";function ia({contracts:n,itemIds:a,hideNames:r=!1,seo:d,lockStatus:h}={}){const[b]=wt(),j=Ze(),c=(b.get("q")??"").trim().toLowerCase(),l=(b.get("q")??"").trim();pt(d??{title:l?s("seo.collectibles.searchTitle",{query:l}):s("seo.collectibles.title"),description:s("seo.collectibles.description")});const w=Ti(!!c),g=Pt(),C=g&&b.get("deals")==="true",y=u.useMemo(()=>({category:"all",status:w,subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,deals:!1,sort:qe(!!c,C)}),[w,C,c]),[A,p]=Kt(y),{subCategory:v,rarities:f,priceMin:$,priceMax:x,smart:T,sort:B}=A,V=g&&A.deals,S=Bt.map(o=>o.key).filter(o=>!(r&&o==="names")).includes(A.category)?A.category:"all",_=h??(Ri.includes(A.status)?A.status:w);Zt(`${S}:${v??""}`);const[F,H]=u.useState(!1);u.useEffect(()=>{if(!F)return;const o=ue=>{ue.key==="Escape"&&H(!1)};document.addEventListener("keydown",o);const ee=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",o),document.body.style.overflow=ee}},[F]);const W=(n!==void 0||a!==void 0)&&!(n!=null&&n.length)&&!(a!=null&&a.length),N=_==="on_sale",L=$&&!Number.isNaN(Number($))?Number($):void 0,O=x&&!Number.isNaN(Number(x))?Number(x):void 0,D=Ft(),z=v?qt[v]:void 0,U=[...c?[Qt]:[],...V?Xt:Yt],Z=U.find(o=>o.key===B)??U[0],Q=Z.server,G={category:S,rarities:f.length?f:void 0,wearableCategories:z,minPriceCredits:L,maxPriceCredits:O,search:c||void 0,sortBy:Q,isSmart:T||void 0,onSale:!0,discounted:V||void 0,listingType:D?void 0:"primary",contractAddresses:n!=null&&n.length?n:void 0,itemIds:a!=null&&a.length?a:void 0},E={category:S,rarities:f.length?f:void 0,wearableCategories:z,search:c||void 0,sortBy:Q,isWearableSmart:T||void 0,isOnSale:_==="not_for_sale"?!1:void 0,contractAddresses:n!=null&&n.length?n:void 0},{items:M,total:P,isLoading:R,isPlaceholderData:q,error:J,hasNextPage:Me,isFetchingNextPage:K,isFetchNextPageError:Ae,fetchNextPage:Ne}=un(N?["shop-items",G]:["catalog-items",E],o=>N?Dt({...G,first:ct,skip:o}):Gt({...E,first:ct,skip:o}),{enabled:S!=="names"&&!W}),te=P,{data:oe,isError:he,isPending:pe}=ut(),Le=o=>oe&&o.manaWei?mt(o.manaWei,oe):null,Ie=N&&pe&&M.some(o=>o.source==="legacy"),re=R||q||Ie,ne=R?15:Math.max(M.length,1),le=u.useRef(null);u.useEffect(()=>{R||q||!c||le.current===c||(le.current=c,Re("Shop Searched",{query:c,result_count:te}))},[c,R,q,te]);const m=u.useRef("__init__");u.useEffect(()=>{if(R||q)return;const o=JSON.stringify({category:S,subCategory:v,rarities:f,min:L,max:O,sort:B,status:_,smart:T});if(m.current==="__init__"||m.current===o){m.current=o;return}m.current=o,Re("Shop Applied Filter",{filters:{category:S,sub_category:v,rarities:f,min_price_credits:L??null,max_price_credits:O??null,status:_,smart:T,sort:B},result_count:te})},[S,v,f,L,O,B,_,T,R,q,te]);function k(o){p({category:o,subCategory:null})}function ce(o){p({status:o})}function de(o){p({rarities:f.includes(o)?f.filter(ee=>ee!==o):[...f,o]})}function bt(){p(y)}const se=[];(L!=null||O!=null)&&se.push({key:"price",label:s("filter.price"),onRemove:()=>{p({priceMin:"",priceMax:""})}});for(const o of Ot)f.includes(o)&&se.push({key:`rarity-${o}`,label:Ut(o),onRemove:()=>de(o)});return T&&se.push({key:"smart",label:s("filter.smart"),onRemove:()=>p({smart:!1})}),V&&se.push({key:"deals",label:s("filter.deals"),onRemove:()=>p({deals:!1,sort:qe(!!c,!1)})}),_!==w&&se.push({key:"status",label:_==="all"?s("filter.statusAll"):_==="on_sale"?s("filter.onSale"):s("filter.notForSale"),onRemove:()=>ce(w)}),e.jsxs(tn,{"data-testid":"browse",children:[S!=="names"&&e.jsxs(e.Fragment,{children:[F?e.jsx(nn,{onClick:()=>H(!1),"aria-hidden":!0}):null,e.jsxs(sn,{"data-open":F||void 0,"data-testid":"browse-sidebar",children:[e.jsxs(an,{children:[e.jsx(on,{children:s("assets.filters")}),e.jsx(rn,{onClick:()=>H(!1),"aria-label":s("assets.closeFilters"),children:"✕"})]}),e.jsx(ln,{children:e.jsx(Jt,{category:S,subCategory:v,onCategory:k,onSub:o=>p({subCategory:o}),priceMin:$,priceMax:x,onPriceMin:o=>p({priceMin:o}),onPriceMax:o=>p({priceMax:o}),rarities:f,onToggleRarity:de,status:_,onStatus:ce,hideNames:r,smart:T,onSmart:o=>p({smart:o}),deals:V,onDeals:g?o=>p({deals:o,sort:qe(!!c,o)}):void 0})}),e.jsx(cn,{children:e.jsx(dn,{type:"button",onClick:()=>H(!1),children:s("assets.showItems")})})]})]}),e.jsx(hn,{children:S==="names"?e.jsx(Si,{onBack:()=>k("all")}):e.jsxs(e.Fragment,{children:[e.jsx(en,{sort:Z.key,sortOptions:U,onSort:o=>p({sort:o}),total:P,loading:R||q,query:c,onOpenFilters:()=>H(!0),chips:se,onClearChips:bt}),he&&N&&M.some(o=>o.source==="legacy")?e.jsx(Ei,{"data-variant":"warn",children:s("assets.marketUnavailable")}):null,J?e.jsx(mn,{message:s("assets.loadError"),testId:"browse-error"}):null,!re&&M.length===0&&!J?e.jsx(Ht,{testId:"browse-empty",icon:Vt,title:s("assets.empty.title"),body:l?e.jsxs(e.Fragment,{children:[s("assets.empty.searchBefore"),e.jsx("b",{children:l}),s("assets.empty.searchAfter")]}):s("assets.empty.filters"),cta:{label:s("assets.empty.cta"),onClick:()=>j("/overview")}}):e.jsxs(e.Fragment,{children:[e.jsx(qn,{"data-testid":"grid",children:re?e.jsx(et,{count:ne}):e.jsxs(e.Fragment,{children:[M.map(o=>{if(!N)return e.jsx(fe,{item:o,mode:"view"},xe(o));const ee=o;if(ee.source!=="legacy")return e.jsx(fe,{item:o},xe(o));const ue=Le(ee);return ue==null?e.jsx(fe,{item:o,mode:"view"},xe(o)):e.jsx(fe,{item:{...ee,priceCredits:ue}},xe(o))}),K?e.jsx(et,{count:6}):null]})}),e.jsx(pn,{hasNextPage:Me,isFetching:K,isError:Ae,onLoadMore:()=>void Ne()})]})]})})]})}export{ia as Assets};
|
|
990
|
+
//# sourceMappingURL=Assets-DElD46e4.js.map
|