@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
|
@@ -1,990 +0,0 @@
|
|
|
1
|
-
import{r as p,b as Ze,j as e,a as bt,u as yt}from"./react-W6DPPZx2.js";import{c as se,r as wt,b as jt,bG as vt,h as Xe,j as Ye,bD as Ct,bd as $t,bb as kt,w as St,cW as Et,cX as Rt,s as i,a as t,x as dt,bm as Tt,X as _t,F as ht,t as s,cY as Mt,bJ as We,D as It,I as W,z as V,cZ as ze,E as ge,bl as At,l as Nt,O as Me,bx as Je,Z as Lt,bF as Wt,B as pt,a0 as ut,m as mt,cd as zt,ce as Pt,y as Bt,bS as Ft,ay as Ot,a2 as Ut,a4 as et,a5 as be,aJ as Ht,bT as Dt,bU as Gt}from"./index-DljoYvOw.js";import{u as qt,s as Kt}from"./search-empty-Dvn318rX.js";import{u as Vt,l as Zt,m as Qt,S as Xt,F as Yt,a as Jt}from"./Filters-BrIgTlFj.js";import{R as en,S as tn,a as nn,D as sn,b as an,C as on,c as rn,d as ln,e as cn,M as dn}from"./browseLayout.styles-CZlPJ6m5.js";import{L as hn}from"./LoadMore-B_zhlrmT.js";import{u as pn}from"./useInfiniteGrid-OYi4qkxL.js";import{E as un}from"./ErrorNotice-BWwJBVf7.js";import{d as mn}from"./dcl-schemas-Ch5C6FYh.js";import{s as fn,G as xn,w as gn,S as bn}from"./buy-gasless-DWSGCjEQ.js";import{s as yn}from"./buy-Co-ENVXc.js";import{u as wn,A as jn,C as vn}from"./trade-encoding-C2C756Mb.js";import{f as Cn}from"./errors-CLi9K-L1.js";import{J as $n,C as kn,B as Ie}from"./ethers-C4a6Jf75.js";import{z as Sn,D as En,w as Rn,W as Tn,m as _n,n as Mn,o as In,v as An,j as tt}from"./CreditPackPicker-7XbTLYv_.js";import{u as Nn,M as Ln,o as Wn,l as zn,R as Pn,c as Bn}from"./loader-logo-CIiCFwgq.js";import{P as Fn}from"./PaymentMethodStep-7Nf59EYo.js";import{R as nt}from"./resume-name-1zBWm51e.js";import{R as On}from"./resume-buy-DLoChZrc.js";import{n as Un}from"./name-glyph-aUugT8vq.js";import{c as Hn}from"./crumbs.styles-txSK4dTM.js";import{n as Dn}from"./Tooltip-csxTKEcm.js";import{G as Gn}from"./grid.styles-CpB9wS2H.js";import"./sentry-Bf5cwK6Z.js";import"./intl-AKLEHPeO.js";import"./skeleton.styles-CLPYGy7U.js";import"./sendMetaTransaction-nj4rME5D.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]="a025464b-9239-48a8-b2e6-28f1828fc351",n._sentryDebugIdIdentifier="sentry-dbid-a025464b-9239-48a8-b2e6-28f1828fc351")}catch{}})();function ye(n){const a=n.source??"item",r=n.tradeId||`${n.contractAddress}-${n.tokenId??n.itemId??""}`;return`${a}:${r}`}const Z="100000000000000000000",ft=2,Ae=15,qn=/^[a-zA-Z0-9]+$/;function st(n){const a=n.trim();return a.length===0?{ok:!1,reason:"empty"}:qn.test(a)?a.length<ft?{ok:!1,reason:"too-short"}:a.length>Ae?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function Kn(n){return n.replace(/[^a-zA-Z0-9]/g,"").slice(0,Ae)}const Vn=["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 Zn(){return se.chainId===Number(mn.ChainId.MATIC_MAINNET)?it.mainnet:it.sepolia}async function Qn(n,a={}){var g;const{rpc:r,address:h}=Zn(),d=new $n(r),w=new kn(h,Vn,d);console.info(`[names] availability check → DCLRegistrar(${h}).available("${n}") on ${r}`);const c=await w.available(n);if((g=a.signal)!=null&&g.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${n}" available=${c}`),c?"available":"taken"}const Xn="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 Yn(n){return $t(Z,n)}async function Jn(n,a,r={}){var g;const h=r.chainId??se.chainId,d=r.provider??"across",w=`${se.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(a)}&chainId=${h}&provider=${d}`,c=await kt(w,{method:"GET",identity:n,metadata:{}});if(!c.ok){let l;try{l=(g=await c.json())==null?void 0:g.code}catch{}throw l==="ROUTE_COST_TOO_HIGH"?new Qe:new Error(`fetchNameCreditRoute ${c.status}`)}return c.json()}function es(n,a){const r=Ie.from(n.availableAmount),d=Ie.from(Z).sub(r);return{credits:[{value:n.amount,expiresAt:Number(n.expiresAt),salt:vn(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:d.isNegative()?"0":d.toString(),maxCreditedValue:Z}}async function ts(n,a={}){const r=Xn,h=a.intervalMs??1e4,d=a.maxAttempts??60;let w={status:"pending",destinationTxHash:null,actionsSucceeded:null};for(let c=0;c<d;c++){try{const g=await fetch(`${r}/deposit/status?originChainId=137&depositTxHash=${n}`);if(g.ok){const l=await g.json(),j=(l.status??"pending").toLowerCase(),b=l.fillTx??l.fillTxnRef??null,C=typeof l.actionsSucceeded=="boolean"?l.actionsSucceeded:null;if(j==="filled")return{status:"filled",destinationTxHash:b,actionsSucceeded:C};if(j==="refunded"||j==="expired")return{status:j,destinationTxHash:null,actionsSucceeded:!1};w={status:"pending",destinationTxHash:b,actionsSucceeded:C}}}catch{}c<d-1&&await new Promise(g=>setTimeout(g,h))}return w}async function ns(n){const{name:a,identity:r,signer:h}=n,d=b=>{var C;try{(C=n.onProgress)==null||C.call(n,b)}catch{}},w=n.chainId??se.chainId,c=n.provider??"across",g=(n.beneficiary??await h.getAddress()).toLowerCase();let l=null,j="unconfirmed";console.info("[names] register start",{name:a,buyer:g,chainId:w,provider:c}),d("preparing");try{const b=await wt(jt(se.chainId).address),C=Yn(b),m=n.creditsCents!=null?Math.max(1,Math.min(Math.trunc(n.creditsCents),C)):C,k=m<C;console.info("[names] step 1/6 sized reservation",{usdCents:m,fullPriceCents:C,payingWithMana:k,manaRate:b});const x=await Jn(r,a,{chainId:w,provider:c});console.info("[names] step 2/6 route fetched",{target:x.externalCall.target,selector:x.externalCall.selector,provider:x.provider,quoteId:x.quoteId});const y=await vt(r,m,void 0,void 0,a);if(l=y.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:y.credit.id,maxCreditedValue:y.maxCreditedValue}),!k&&Ie.from(y.maxCreditedValue).lt(Z))throw new Error("Credit under-sized for the name price");if(k){const u=Ie.from(Z).sub(y.credit.availableAmount);if(n.maxManaWei!=null&&u.gt(n.maxManaWei.toString()))throw new Error("The MANA needed moved past what was agreed");u.gt(0)&&(d("awaiting-confirmation"),await wn({auth:{kind:jn.Allowance,contractAddress:Xe(Ye.MANAToken,w).address,spenderAddress:Xe(Ye.CreditsManager,w).address,chainId:w},signer:h,requiredWei:BigInt(u.toString())}),console.info("[names] step 3b/6 mana allowance ensured",{gapWei:u.toString()}))}d("awaiting-confirmation");const v=es(y.credit,x);let $;try{$=await fn({chainId:w,buyer:g,signer:h,args:v})}catch(u){if(!(u instanceof xn))throw u;if(u.reason==="relayer-unreachable"){j="unobservable";const N=new Ve;throw N.cause=u,N}$=await yn(w,v,h)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:$}),d("confirming"),await gn($),j="confirmed",console.info("[names] step 5/6 origin tx confirmed",{originTxHash:$}),c==="across"){d("registering");const u=await ts($,n.acrossPoll);if(console.info("[names] step 6/6 across status",u),u.status==="pending")return{status:"pending",originTxHash:$};if(u.status==="filled"&&u.actionsSucceeded===null)return console.warn("[names] across filled without reporting actionsSucceeded — reporting pending",{originTxHash:$}),{status:"pending",originTxHash:$};if(u.status!=="filled"||u.actionsSucceeded!==!0)throw new Ke;return{status:"registered",originTxHash:$,destinationTxHash:u.destinationTxHash}}return{status:"pending",originTxHash:$}}catch(b){if(console.error("[names] register failed — raw error:",b,{name:a,buyer:g,originState:j}),b instanceof bn)return{status:"pending",originTxHash:b.txHash};if(l&&j==="unconfirmed"&&await Ct(r,[l]).catch(()=>{}),b instanceof Qe||b instanceof Ke||b instanceof Ve)throw b;const C=new Error(Cn(b,"Couldn't register the name. Please try again.",{sale:!0}));throw C.cause=b,C}}function ss(){const{data:n}=St({queryKey:["feature-flag","shop-names"],queryFn:()=>Et(Rt.SHOP_NAMES),staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return n===!0}const is=60,as=700,os=25;function rs(n){if(!n)return[];const a=[];for(let r=1;r<=n.length;r++)a.push({text:n.slice(0,r),delay:is});a[a.length-1]={text:n,delay:as};for(let r=n.length-1;r>=1;r--)a.push({text:n.slice(0,r),delay:os});return a}function ls(n){return n.flatMap(rs)}function cs(n,a){const r=p.useMemo(()=>ls(n),[n]),[h,d]=p.useState(0);return p.useEffect(()=>{if(!a||r.length===0)return;const w=setTimeout(()=>d(c=>(c+1)%r.length),r[h%r.length].delay);return()=>clearTimeout(w)},[h,a,r]),!a||r.length===0?"":r[h%r.length].text}const ds="https://cdn.decentraland.org/@dcl/shop/1.19.0/_assets/name-verified-oGwQ3ntb.svg",hs="#34fee6",ps=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
|
-
`,us=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
|
-
`,we=i.div`
|
|
77
|
-
display: flex;
|
|
78
|
-
align-items: center;
|
|
79
|
-
gap: 16px;
|
|
80
|
-
`,ms=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
|
-
`,fs=i.img`
|
|
94
|
-
display: block;
|
|
95
|
-
width: 47px;
|
|
96
|
-
height: 47px;
|
|
97
|
-
`,xs=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: ${hs};
|
|
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
|
-
`,gs=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
|
-
`,je=i.div`
|
|
138
|
-
flex: 1;
|
|
139
|
-
min-width: 0;
|
|
140
|
-
`,ve=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
|
-
`,Ce=i.div`
|
|
155
|
-
font-family: ${t.font.sans};
|
|
156
|
-
font-size: 14px;
|
|
157
|
-
color: ${t.colors.muted2};
|
|
158
|
-
`,$e=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
|
-
`,bs=i.div`
|
|
174
|
-
margin-top: 16px;
|
|
175
|
-
padding: 16px;
|
|
176
|
-
border-radius: 12px;
|
|
177
|
-
background: ${t.colors.promptLilac};
|
|
178
|
-
`,ys=i.div`
|
|
179
|
-
font-family: ${t.font.sans};
|
|
180
|
-
font-weight: 700;
|
|
181
|
-
font-size: 16px;
|
|
182
|
-
color: ${t.colors.text};
|
|
183
|
-
`,ws=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
|
-
`,js=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
|
-
`,vs=i.span`
|
|
215
|
-
flex: none;
|
|
216
|
-
font-family: ${t.font.sans};
|
|
217
|
-
font-size: 18px;
|
|
218
|
-
color: ${t.colors.muted2};
|
|
219
|
-
`,Cs=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
|
-
`,$s=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
|
-
`,ks=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
|
-
`,Ss=i.img`
|
|
278
|
-
width: 61px;
|
|
279
|
-
height: 61px;
|
|
280
|
-
`,Es=i.div`
|
|
281
|
-
display: flex;
|
|
282
|
-
flex-direction: column;
|
|
283
|
-
align-items: center;
|
|
284
|
-
gap: 8px;
|
|
285
|
-
width: 100%;
|
|
286
|
-
`,Rs=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
|
-
`,Ts=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
|
-
`,_s=i.div`
|
|
301
|
-
display: flex;
|
|
302
|
-
align-items: center;
|
|
303
|
-
justify-content: center;
|
|
304
|
-
gap: 8px;
|
|
305
|
-
width: 100%;
|
|
306
|
-
`,Ms=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
|
-
`,Is=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
|
-
`,As=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
|
-
`,Ns=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
|
-
`,Ls=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
|
-
`,Ws=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
|
-
`,zs=i.div`
|
|
462
|
-
display: flex;
|
|
463
|
-
flex-direction: column;
|
|
464
|
-
gap: 24px;
|
|
465
|
-
margin-top: 16px;
|
|
466
|
-
`;i(Sn)`
|
|
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(En)`
|
|
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 Ps=i.div`
|
|
500
|
-
display: flex;
|
|
501
|
-
gap: 12px;
|
|
502
|
-
`,Bs=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 Fs({name:n,priceCredits:a,onClose:r}){const{session:h}=dt(),{data:d,isError:w}=Tt(h),c=_t(),g=Ze(),[l,j]=p.useState("confirm"),[b,C]=p.useState(""),[m,k]=p.useState(""),[x,y]=p.useState(!1),[v,$]=p.useState(null),u=(v==null?void 0:v.rail)??"credits",[N,F]=p.useState(null),[re,I]=p.useState(!1),[R,O]=p.useState("preparing"),B=p.useRef(!1),ie=b.trim().toLowerCase()===n.toLowerCase(),T=l==="completing"||x,A=a!=null?ht(a):"—",L=a==null,J=d==null?void 0:d.credits,U=a!=null&&J!=null?a-J:0,z=U>0,H=L?s("names.priceUnavailable"):null,{data:G}=Mt(h),q=(G==null?void 0:G.matic)??0n,D=Rn({priceCents:a!=null?a*We:0,priceManaWei:BigInt(Z),balanceCents:(d==null?void 0:d.balanceCents)??0,manaBalanceWei:q,manaOnlyRail:!1}),S=D.options.some(f=>f.method!=="credits"),P=D.options.find(f=>f.method==="combined"),_=v==null&&S&&!L,M=Nn().packs.slice(0,Ln),{packs:ae,recommended:ee,closesGap:le}=Wn(M,U),K=ae.find(f=>f.id===m)??ee;p.useEffect(()=>{const f=E=>{E.key==="Escape"&&!T&&r()};return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[T,r]);async function Ne(){if(!h||!ie||L||B.current||u==="credits"&&z)return;B.current=!0;const f=u==="combined"?Math.floor(((v==null?void 0:v.creditsCents)??0)/We):a??null;j("completing"),F(null),O("preparing");try{const E=await ns({name:n,identity:h.identity,signer:h.signer,creditsCents:v==null?void 0:v.creditsCents,maxManaWei:v==null?void 0:v.manaWei,onProgress:O});Me("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:u==="combined"?"credits_and_mana":"credits",value_credits:f,value_usd:Je(f??0),transaction_hash:E.originTxHash??null,settlement:E.status}),c.invalidateQueries({queryKey:["usd-balance"]}),c.invalidateQueries({queryKey:["my-assets"]}),j(E.status==="registered"?"success":"pending")}catch(E){Me(Wt(E)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:Lt(E),purchase_type:"name"});const oe=E instanceof Ke,fe=E instanceof Ve;F(E instanceof Qe?s("names.errorRouteCost"):oe?s("names.errorNotRegistered"):fe?s("names.errorSettlementUnknown"):(E==null?void 0:E.message)||s("names.errorGeneric")),I(oe||fe),j("error")}finally{B.current=!1}}p.useEffect(()=>{const f=E=>{E.persisted&&y(!1)};return window.addEventListener("pageshow",f),()=>window.removeEventListener("pageshow",f)},[]);async function te(){if(!(!h||!K||x)){y(!0);try{sessionStorage.removeItem(Pn),sessionStorage.removeItem(On),sessionStorage.setItem(nt,n)}catch{}try{const f=await Bn(K.id,{address:h.address,identity:h.identity});if(f.url){window.location.href=f.url;return}if(!f.orderId)throw new Error("Checkout returned neither a redirect url nor an order id");g(`/credits?order=${encodeURIComponent(f.orderId)}`)}catch(f){Nt(f,{flow:"name_buy_credits"});try{sessionStorage.removeItem(nt)}catch{}F(s("buyModal.error.creditsCheckout")),I(!1),j("error"),y(!1)}}}const ce=l!=="success"&&l!=="pending"&&!_,de=It(h==null?void 0:h.providerType),he=de?2:1,pe=de&&(R==="preparing"||R==="awaiting-confirmation"),Le=pe?1:he,ue=pe?s("names.confirming"):R==="registering"?s("names.registering"):s("names.completing"),me=R==="registering"?s("names.processingRegistering"):null,Q=l==="confirm"&&z&&!S,X=l==="error"?s("names.errorTitle"):Q?s("names.buyCreditsTitle"):s("names.buyTitle");return e.jsx(ps,{onClick:T?void 0:r,role:"presentation",children:e.jsxs(us,{role:"dialog","aria-modal":"true","aria-label":X,onClick:f=>f.stopPropagation(),children:[ce&&e.jsxs(e.Fragment,{children:[e.jsxs(Pe,{children:[e.jsx(Be,{children:X}),e.jsx(Fe,{onClick:r,disabled:T,"aria-label":s("buyModal.close"),children:e.jsx(W,{name:"close"})})]}),e.jsxs(Oe,{children:[s("names.myCreditsBalance")," ",e.jsx(V,{})," ",ze(d,w)]}),e.jsx(Ue,{})]}),Q&&e.jsxs(zs,{children:[e.jsxs(Tn,{children:[e.jsx(_n,{}),e.jsxs(Mn,{children:[e.jsx("b",{children:s("buyModal.insufficientFunds")})," ",s("buyModal.warningNeedToBuy")," ",e.jsx("b",{children:s("buyModal.warningCreditsAmount",{count:U})})," ",s("names.warningToPurchase"),ge()?null:e.jsxs(e.Fragment,{children:[" ",e.jsx(In,{href:At("/credits"),target:"_blank",rel:"noopener noreferrer",children:s("buyModal.warningLearnMore")})]})]})]}),ge()?e.jsxs(we,{"data-testid":"name-row-iap",children:[e.jsx(He,{"aria-hidden":!0,children:"@"}),e.jsxs(je,{children:[e.jsxs(ve,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(Ce,{children:s("names.subtitle")})]}),e.jsxs($e,{children:[e.jsx(V,{}),A]})]}):null,ge()?null:e.jsx(e.Fragment,{children:e.jsx(An,{packs:ae,selectedId:K==null?void 0:K.id,onSelect:k,recommendedId:le?ee==null?void 0:ee.id:void 0})}),e.jsxs(Ps,{children:[e.jsx(tt,{"data-variant":"outline",onClick:r,disabled:T,"data-testid":"name-topup-cancel",children:s("buyModal.cancel")}),ge()?null:e.jsx(tt,{"data-variant":"gradient","data-testid":"name-buy-credits",disabled:!h||!K||x,onClick:()=>void te(),children:s("buyModal.buy")})]})]}),l==="confirm"&&!Q&&_&&e.jsx(Fn,{asset:{name:`${n}.dcl.eth`,caption:s("names.subtitle"),thumb:e.jsx(Bs,{"aria-hidden":!0,children:"@"})},priceCredits:a??0,priceCents:(a??0)*We,options:D.options,priceManaWei:BigInt(Z),balanceCredits:(d==null?void 0:d.credits)??0,manaBalanceWei:q,onBuy:f=>{$(f==="combined"&&P?{rail:"combined",creditsCents:P.creditsCents,manaWei:P.manaWei}:{rail:"credits"})},onClose:r,busy:T}),(l==="confirm"||l==="error")&&!Q&&!_&&e.jsxs(e.Fragment,{children:[e.jsxs(we,{children:[e.jsx(He,{"aria-hidden":!0,children:"@"}),e.jsxs(je,{children:[e.jsxs(ve,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(Ce,{children:s("names.subtitle")})]}),e.jsxs($e,{children:[e.jsx(V,{}),A]})]}),l==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(Ge,{children:[e.jsx(W,{name:"info","aria-hidden":!0}),e.jsx("span",{children:N})]}),re?e.jsx(De,{onClick:r,children:s("names.errorSpentDismiss")}):e.jsx(De,{onClick:()=>j("confirm"),children:s("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(bs,{children:[e.jsx(ys,{children:s("names.confirmTitle")}),e.jsx(ws,{dangerouslySetInnerHTML:{__html:s("names.confirmBody",{name:`<b>@${Os(n)}</b>`})}}),e.jsxs(js,{children:[e.jsx(vs,{"aria-hidden":!0,children:"@"}),e.jsx(Cs,{value:b,onChange:f=>C(f.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":s("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(b.length,8)}ch`}}),e.jsx($s,{children:".dcl.eth"})]})]}),H?e.jsxs(Ge,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(W,{name:"info","aria-hidden":!0}),e.jsx("span",{children:H})]}):null,e.jsx(De,{onClick:()=>void Ne(),disabled:!ie||!h||L||u==="credits"&&z,children:s("names.buyCta")})]})]}),l==="completing"&&e.jsxs(ks,{children:[e.jsx(Ss,{src:zn,alt:"",width:61,height:61}),e.jsxs(Es,{children:[e.jsx(Rs,{children:ue}),e.jsxs(_s,{children:[e.jsx(Ms,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(Is,{"data-testid":"name-progress-count",children:`${Le}/${he}`})]}),me?e.jsx(Ts,{children:me}):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(W,{name:"close"})})]}),e.jsxs(Oe,{children:[s("names.myCreditsBalance")," ",e.jsx(V,{})," ",ze(d,w)]}),e.jsx(Ue,{}),e.jsxs(Ge,{"data-tone":"info",children:[e.jsx(W,{name:"info","aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("b",{children:s("names.pendingBannerBold")})," ",s("names.pendingBannerRest")]})]}),e.jsxs(we,{style:{marginTop:20},children:[e.jsx(He,{"aria-hidden":!0,children:"@"}),e.jsxs(je,{children:[e.jsxs(ve,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(Ce,{children:s("names.subtitle")})]}),e.jsxs($e,{children:[e.jsx(V,{}),A]})]}),e.jsx(at,{children:e.jsx(ot,{onClick:()=>{r(),g("/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(W,{name:"close"})})]}),e.jsxs(Oe,{children:[s("names.myCreditsBalance")," ",e.jsx(V,{})," ",ze(d,w)]}),e.jsx(Ue,{}),e.jsxs(As,{children:[e.jsx(Ns,{"aria-hidden":!0,children:e.jsx(W,{name:"check"})}),e.jsxs(Ls,{children:[e.jsx("b",{children:s("names.successBannerBold")})," ",s("names.successBannerRest")]})]}),e.jsxs(we,{style:{marginTop:20},children:[e.jsxs(ms,{"data-testid":"name-success-tile",children:[e.jsx(fs,{src:Un,alt:"","aria-hidden":!0,width:47,height:47}),e.jsxs(xs,{children:[e.jsx("span",{"aria-hidden":!0,children:n}),e.jsx(gs,{src:ds,alt:"","aria-hidden":!0,width:14,height:14})]})]}),e.jsxs(je,{children:[e.jsxs(ve,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(Ce,{children:s("names.subtitle")})]}),e.jsxs($e,{children:[e.jsx(V,{}),A]})]}),e.jsxs(at,{children:[e.jsx(ot,{onClick:()=>{r(),g("/my-items")},children:s("names.myItems")}),e.jsx(Ws,{href:se.profileUrl,target:"_blank",rel:"noopener noreferrer",children:s("names.assignToAvatar")})]})]})]})})}function Os(n){return n.replace(/[&<>"']/g,a=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[a])}const Us="https://cdn.decentraland.org/@dcl/shop/1.19.0/_assets/identity-icon-C8yAW_Gq.svg",Hs="https://cdn.decentraland.org/@dcl/shop/1.19.0/_assets/world-icon-6xQ-PmmW.svg",Ds="https://cdn.decentraland.org/@dcl/shop/1.19.0/_assets/invite-icon-Bz6lCTuB.svg",Gs="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",qs=i.div`
|
|
513
|
-
width: 100%;
|
|
514
|
-
min-width: 0;
|
|
515
|
-
`,Ks=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
|
-
${Hn};
|
|
525
|
-
`,Vs=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
|
-
`,Zs=i.span`
|
|
542
|
-
font-weight: 700;
|
|
543
|
-
color: ${t.colors.softWhite};
|
|
544
|
-
`,Qs=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
|
-
`,Xs=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
|
-
`,Ys=i.div`
|
|
572
|
-
display: flex;
|
|
573
|
-
flex-direction: column;
|
|
574
|
-
align-items: center;
|
|
575
|
-
gap: 12px;
|
|
576
|
-
`,Js=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
|
-
`,ei=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
|
-
`,ti=i.div`
|
|
600
|
-
width: min(785px, 100%);
|
|
601
|
-
display: flex;
|
|
602
|
-
flex-direction: column;
|
|
603
|
-
gap: 12px;
|
|
604
|
-
`,ni=i.div`
|
|
605
|
-
position: relative;
|
|
606
|
-
`,si=i("div",Dn("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
|
-
`,ii=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
|
-
`,ai=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
|
-
`,oi=i(xt)`
|
|
685
|
-
color: #ec303a;
|
|
686
|
-
`,ri=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
|
-
`,li=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
|
-
`,ci=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
|
-
`,di=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
|
-
`,hi=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
|
-
`,pi=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
|
-
`,ui=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
|
-
`,mi=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
|
-
`,ke=i(mi)`
|
|
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
|
-
`,fi=i(xt)`
|
|
844
|
-
color: inherit;
|
|
845
|
-
`,xi=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
|
-
`,gi=i.div`
|
|
856
|
-
display: flex;
|
|
857
|
-
flex-direction: column;
|
|
858
|
-
align-items: center;
|
|
859
|
-
gap: 24px;
|
|
860
|
-
`,bi=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
|
-
`,yi=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
|
-
`,wi=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
|
-
`,Se=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
|
-
`,Ee=i.img`
|
|
915
|
-
display: block;
|
|
916
|
-
align-self: flex-start;
|
|
917
|
-
height: 55px;
|
|
918
|
-
width: auto;
|
|
919
|
-
`,Re=i.div`
|
|
920
|
-
flex: 1;
|
|
921
|
-
display: flex;
|
|
922
|
-
flex-direction: column;
|
|
923
|
-
gap: 12px;
|
|
924
|
-
`,Te=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
|
-
`,_e=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
|
-
`,ji=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
|
-
`,vi=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
|
-
`,Ci="https://docs.decentraland.org/creator/worlds/about/",$i="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 ki({onBack:n}){pt({title:s("seo.names.title"),description:s("seo.names.description")});const{session:a,signIn:r}=dt(),h=Ze(),d=bt(),{pathname:w,search:c}=d,g=d.state,l=typeof(g==null?void 0:g.resumeName)=="string"?g:void 0,j=ss(),{data:b}=ut(),C=b?mt(Z,b):null,[m,k]=p.useState((l==null?void 0:l.resumeName)??""),[x,y]=p.useState("idle"),[v,$]=p.useState(!1),[u,N]=p.useState((l==null?void 0:l.resumeName)??""),[F,re]=p.useState(!!(l!=null&&l.resumeName)),[I,R]=p.useState(()=>{var S;return typeof window<"u"&&!!((S=window.matchMedia)!=null&&S.call(window,"(prefers-reduced-motion: reduce)").matches)});p.useEffect(()=>{var _;const S=(_=window.matchMedia)==null?void 0:_.call(window,"(prefers-reduced-motion: reduce)");if(!S)return;const P=M=>R(M.matches);return S.addEventListener("change",P),()=>S.removeEventListener("change",P)},[]);const O=s("names.placeholderExamples"),B=p.useMemo(()=>O.split(",").map(S=>S.trim()).filter(Boolean),[O]),T=cs(B,!F&&!m&&!I)||s("names.inputPlaceholder"),A=p.useRef(null),[L,J]=p.useState(void 0);p.useLayoutEffect(()=>{A.current&&J(A.current.getBoundingClientRect().width)},[m,T]),p.useEffect(()=>{if(!st(m).ok){y(m.length===0?"idle":"invalid");return}y("checking");const P=new AbortController,_=setTimeout(()=>{(async()=>{try{const M=await Qn(m,{signal:P.signal});y(M)}catch(M){if((M==null?void 0:M.name)==="AbortError")return;y("error")}})()},400);return()=>{clearTimeout(_),P.abort()}},[m]);const U=st(m),z=U.ok&&(x==="available"||x==="error"),H=j&&z,G=!j&&z;function q(){if(H){if(!a){r();return}$(!0)}}p.useEffect(()=>{l!=null&&l.resumeName&&h(`${w}${c}`,{replace:!0,state:null})},[l==null?void 0:l.resumeName,h,w,c]),p.useEffect(()=>{if(u){if(m.toLowerCase()!==u.toLowerCase()){N("");return}if(!(x==="idle"||x==="checking")){if(!z){N("");return}!j||!a||(N(""),$(!0))}}},[u,m,x,z,j,a]);const D=e.jsxs(e.Fragment,{children:[s("names.claim"),C!=null?e.jsxs(ui,{children:[e.jsx(V,{}),ht(C)]}):null]});return e.jsxs(qs,{"data-testid":"names-page",children:[e.jsxs(Ks,{"aria-label":s("names.breadcrumbAria"),children:[e.jsx(Vs,{onClick:n,children:s("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(Zs,{children:s("names.breadcrumbCurrent")})]}),e.jsxs(Qs,{children:[e.jsxs(Xs,{children:[e.jsxs(Ys,{children:[e.jsx(Js,{children:s("names.heroTitle")}),e.jsx(ei,{children:s("names.heroSubtitle")})]}),e.jsxs(ti,{children:[e.jsxs(ni,{"data-testid":"names-input-wrap",children:[e.jsxs(si,{invalid:x==="taken",children:[e.jsxs(ri,{children:[e.jsx(li,{"aria-hidden":!0,children:"@"}),e.jsx(ci,{value:m,onChange:S=>k(Kn(S.target.value)),placeholder:T,"aria-label":s("names.inputAria"),autoComplete:"off",spellCheck:!1,maxLength:Ae,onFocus:()=>re(!0),style:{width:L!=null?`${L}px`:void 0}}),e.jsx(ii,{ref:A,"aria-hidden":!0,"data-placeholder":!m||void 0,children:m||T}),e.jsx(di,{children:s("names.suffix")})]}),m.length>0?e.jsxs(hi,{"aria-hidden":!0,children:[m.length,"/",Ae]}):null,e.jsx(gt,{onClick:q,disabled:!H,"data-testid":"names-claim",children:D})]}),x==="taken"?e.jsxs(ai,{role:"status","data-testid":"names-taken",children:[e.jsx(W,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:s("names.taken")}),e.jsxs(oi,{href:lt(m),target:"_blank",rel:"noopener noreferrer",children:[s("names.takenMakeOffer"),e.jsx(W,{name:"external-link",size:13,"aria-hidden":!0})]})]}):null,x==="checking"?e.jsx(ke,{tone:"muted",role:"status","data-testid":"names-checking",children:s("names.checking")}):G?e.jsxs(ke,{tone:"muted",role:"status","data-testid":"names-disabled",children:[e.jsx(W,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:s("names.registrationDisabled")}),e.jsxs(fi,{href:lt(m),target:"_blank",rel:"noopener noreferrer",children:[s("names.registrationDisabledLink"),e.jsx(W,{name:"external-link",size:13,"aria-hidden":!0})]})]}):x==="error"?e.jsx(ke,{tone:"muted",role:"status",children:s("names.checkError")}):x==="invalid"&&!U.ok&&U.reason==="too-short"?e.jsx(ke,{tone:"muted",role:"status",children:s("names.tooShort",{min:ft})}):null]}),e.jsx(pi,{onClick:q,disabled:!H,children:D}),e.jsx(vi,{role:"status","aria-live":"polite",children:x==="available"?s("names.available",{name:m}):""})]})]}),e.jsxs(xi,{children:[e.jsxs(gi,{children:[e.jsx(bi,{children:s("names.whyTitle")}),e.jsx(yi,{children:s("names.whyIntro")})]}),e.jsxs(wi,{children:[e.jsxs(Se,{children:[e.jsx(Ee,{src:Us,alt:""}),e.jsxs(Re,{children:[e.jsx(Te,{children:s("names.why1Title")}),e.jsx(_e,{children:s("names.why1")})]})]}),e.jsxs(Se,{children:[e.jsx(Ee,{src:Hs,alt:""}),e.jsxs(Re,{children:[e.jsx(Te,{children:s("names.why2Title")}),e.jsxs(_e,{children:[s("names.why2")," ",e.jsx(ji,{children:s("names.why2Address")})]}),e.jsxs(rt,{href:Ci,target:"_blank",rel:"noopener noreferrer",children:[s("names.learnMore"),e.jsx(W,{name:"external-link","aria-hidden":!0})]})]})]}),e.jsxs(Se,{children:[e.jsx(Ee,{src:Ds,alt:""}),e.jsxs(Re,{children:[e.jsx(Te,{children:s("names.why3Title")}),e.jsx(_e,{children:s("names.why3")})]})]}),e.jsxs(Se,{children:[e.jsx(Ee,{src:Gs,alt:""}),e.jsxs(Re,{children:[e.jsx(Te,{children:s("names.why4Title")}),e.jsx(_e,{children:s("names.why4")}),e.jsxs(rt,{href:$i,target:"_blank",rel:"noopener noreferrer",children:[s("names.learnMore"),e.jsx(W,{name:"external-link","aria-hidden":!0})]})]})]})]})]})]}),v?e.jsx(Fs,{name:m,priceCredits:C,onClose:()=>$(!1)}):null]})}const Si=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,Ei=["all","on_sale","not_for_sale"],Ri=n=>n?"all":"on_sale",qe=(n,a)=>n?"relevance":a?"discount":"newest";function sa({contracts:n,hideNames:a=!1,seo:r,lockStatus:h}={}){const[d]=yt(),w=Ze(),c=(d.get("q")??"").trim().toLowerCase(),g=(d.get("q")??"").trim();pt(r??{title:g?s("seo.collectibles.searchTitle",{query:g}):s("seo.collectibles.title"),description:s("seo.collectibles.description")});const l=Ri(!!c),j=zt(),b=j&&d.get("deals")==="true",C=p.useMemo(()=>({category:"all",status:l,subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,deals:!1,sort:qe(!!c,b)}),[l,b,c]),[m,k]=qt(C),{subCategory:x,rarities:y,priceMin:v,priceMax:$,smart:u,sort:N}=m,F=j&&m.deals,I=Pt.map(o=>o.key).filter(o=>!(a&&o==="names")).includes(m.category)?m.category:"all",R=h??(Ei.includes(m.status)?m.status:l);Vt(`${I}:${x??""}`);const[O,B]=p.useState(!1);p.useEffect(()=>{if(!O)return;const o=xe=>{xe.key==="Escape"&&B(!1)};document.addEventListener("keydown",o);const Y=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",o),document.body.style.overflow=Y}},[O]);const ie=n!==void 0&&n.length===0,T=R==="on_sale",A=v&&!Number.isNaN(Number(v))?Number(v):void 0,L=$&&!Number.isNaN(Number($))?Number($):void 0,J=Bt(),U=x?Gt[x]:void 0,z=[...c?[Zt]:[],...F?Qt:Xt],H=z.find(o=>o.key===N)??z[0],G=H.server,q={category:I,rarities:y.length?y:void 0,wearableCategories:U,minPriceCredits:A,maxPriceCredits:L,search:c||void 0,sortBy:G,isSmart:u||void 0,onSale:!0,discounted:F||void 0,listingType:J?void 0:"primary",contractAddresses:n!=null&&n.length?n:void 0},D={category:I,rarities:y.length?y:void 0,wearableCategories:U,search:c||void 0,sortBy:G,isWearableSmart:u||void 0,isOnSale:R==="not_for_sale"?!1:void 0,contractAddresses:n!=null&&n.length?n:void 0},{items:S,total:P,isLoading:_,isPlaceholderData:M,error:ae,hasNextPage:ee,isFetchingNextPage:le,isFetchNextPageError:K,fetchNextPage:Ne}=pn(T?["shop-items",q]:["catalog-items",D],o=>T?Ht({...q,first:ct,skip:o}):Dt({...D,first:ct,skip:o}),{enabled:I!=="names"&&!ie}),te=P,{data:ce,isError:de,isPending:he}=ut(),pe=o=>ce&&o.manaWei?mt(o.manaWei,ce):null,Le=T&&he&&S.some(o=>o.source==="legacy"),ue=_||M||Le,me=_?15:Math.max(S.length,1),Q=p.useRef(null);p.useEffect(()=>{_||M||!c||Q.current===c||(Q.current=c,Me("Shop Searched",{query:c,result_count:te}))},[c,_,M,te]);const X=p.useRef("__init__");p.useEffect(()=>{if(_||M)return;const o=JSON.stringify({category:I,subCategory:x,rarities:y,min:A,max:L,sort:N,status:R,smart:u});if(X.current==="__init__"||X.current===o){X.current=o;return}X.current=o,Me("Shop Applied Filter",{filters:{category:I,sub_category:x,rarities:y,min_price_credits:A??null,max_price_credits:L??null,status:R,smart:u,sort:N},result_count:te})},[I,x,y,A,L,N,R,u,_,M,te]);function f(o){k({category:o,subCategory:null})}function E(o){k({status:o})}function oe(o){k({rarities:y.includes(o)?y.filter(Y=>Y!==o):[...y,o]})}function fe(){k(C)}const ne=[];(A!=null||L!=null)&&ne.push({key:"price",label:s("filter.price"),onRemove:()=>{k({priceMin:"",priceMax:""})}});for(const o of Ft)y.includes(o)&&ne.push({key:`rarity-${o}`,label:Ot(o),onRemove:()=>oe(o)});return u&&ne.push({key:"smart",label:s("filter.smart"),onRemove:()=>k({smart:!1})}),F&&ne.push({key:"deals",label:s("filter.deals"),onRemove:()=>k({deals:!1,sort:qe(!!c,!1)})}),R!==l&&ne.push({key:"status",label:R==="all"?s("filter.statusAll"):R==="on_sale"?s("filter.onSale"):s("filter.notForSale"),onRemove:()=>E(l)}),e.jsxs(en,{"data-testid":"browse",children:[I!=="names"&&e.jsxs(e.Fragment,{children:[O?e.jsx(tn,{onClick:()=>B(!1),"aria-hidden":!0}):null,e.jsxs(nn,{"data-open":O||void 0,"data-testid":"browse-sidebar",children:[e.jsxs(sn,{children:[e.jsx(an,{children:s("assets.filters")}),e.jsx(on,{onClick:()=>B(!1),"aria-label":s("assets.closeFilters"),children:"✕"})]}),e.jsx(rn,{children:e.jsx(Yt,{category:I,subCategory:x,onCategory:f,onSub:o=>k({subCategory:o}),priceMin:v,priceMax:$,onPriceMin:o=>k({priceMin:o}),onPriceMax:o=>k({priceMax:o}),rarities:y,onToggleRarity:oe,status:R,onStatus:E,hideNames:a,smart:u,onSmart:o=>k({smart:o}),deals:F,onDeals:j?o=>k({deals:o,sort:qe(!!c,o)}):void 0})}),e.jsx(ln,{children:e.jsx(cn,{type:"button",onClick:()=>B(!1),children:s("assets.showItems")})})]})]}),e.jsx(dn,{children:I==="names"?e.jsx(ki,{onBack:()=>f("all")}):e.jsxs(e.Fragment,{children:[e.jsx(Jt,{sort:H.key,sortOptions:z,onSort:o=>k({sort:o}),total:P,loading:_||M,query:c,onOpenFilters:()=>B(!0),chips:ne,onClearChips:fe}),de&&T&&S.some(o=>o.source==="legacy")?e.jsx(Si,{"data-variant":"warn",children:s("assets.marketUnavailable")}):null,ae?e.jsx(un,{message:s("assets.loadError"),testId:"browse-error"}):null,!ue&&S.length===0&&!ae?e.jsx(Ut,{testId:"browse-empty",icon:Kt,title:s("assets.empty.title"),body:g?e.jsxs(e.Fragment,{children:[s("assets.empty.searchBefore"),e.jsx("b",{children:g}),s("assets.empty.searchAfter")]}):s("assets.empty.filters"),cta:{label:s("assets.empty.cta"),onClick:()=>w("/overview")}}):e.jsxs(e.Fragment,{children:[e.jsx(Gn,{"data-testid":"grid",children:ue?e.jsx(et,{count:me}):e.jsxs(e.Fragment,{children:[S.map(o=>{if(!T)return e.jsx(be,{item:o,mode:"view"},ye(o));const Y=o;if(Y.source!=="legacy")return e.jsx(be,{item:o},ye(o));const xe=pe(Y);return xe==null?e.jsx(be,{item:o,mode:"view"},ye(o)):e.jsx(be,{item:{...Y,priceCredits:xe}},ye(o))}),le?e.jsx(et,{count:6}):null]})}),e.jsx(hn,{hasNextPage:ee,isFetching:le,isError:K,onLoadMore:()=>void Ne()})]})]})})]})}export{sa as Assets};
|
|
990
|
-
//# sourceMappingURL=Assets-fYcVwnf6.js.map
|