@dcl/shop 1.13.1-35227702430.commit-7f36a79 → 1.13.1-35339357506.commit-a201fb1
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-CHNYJKpW.js → Activity-BZMB4hg5.js} +4 -4
- package/_assets/{AnimatedBackground-CDDW5yOE.js → AnimatedBackground-CXVxNT-G.js} +3 -3
- package/_assets/Assets-tHTTA31T.js +980 -0
- package/_assets/{Cart-WtUxECX0.js → Cart-BTFM7sgI.js} +32 -32
- package/_assets/{Collection-0mDLFGqi.js → Collection-D7LTf_OS.js} +9 -9
- package/_assets/CollectionCarousel-DsJ7L4rs.js +322 -0
- package/_assets/Confetti-cdj3K_E3.js +18 -0
- package/_assets/{ConstantsUtil-yxsFW7Qn.js → ConstantsUtil-BRm3N2MJ.js} +2 -2
- package/_assets/{ContentClient-BkbChoni.js → ContentClient-BuGONJzu.js} +2 -2
- package/_assets/{Creator-CX-NPM3l.js → Creator-DTGBDA7q.js} +2 -2
- package/_assets/{DeploymentBuilder-CVNQmpLh.js → DeploymentBuilder-t6QMfSJh.js} +3 -3
- package/_assets/{EmotePlaybackBar-B0eDc_Xz.js → EmotePlaybackBar-DxozN5dA.js} +5 -5
- package/_assets/{ErrorNotice-aYlVfBxT.js → ErrorNotice-Dlh8ddHO.js} +2 -2
- package/_assets/Event-B3nuIkGW.js +72 -0
- package/_assets/{ExchangeController-CBVAZKeX.js → ExchangeController-CSSF68uc.js} +2 -2
- package/_assets/{Faq-DyFyFEfN.js → Faq-DQCrsGCA.js} +2 -2
- package/_assets/{Filters-DXBU1kNJ.js → Filters-BsZs-9_M.js} +2 -2
- package/_assets/{GetCredits-nIVyH51y.js → GetCredits-DLjX5S-_.js} +70 -70
- package/_assets/{Grow-B392ksj_.js → Grow-CBOQ3rs-.js} +2 -2
- package/_assets/{HelpersUtil-DGFcsVXD.js → HelpersUtil-ItKIMa0k.js} +4 -4
- package/_assets/{ItemDetail-4K0xq5qa.js → ItemDetail-Bfbuu0cW.js} +9 -9
- package/_assets/{LoadMore-B_oODLp1.js → LoadMore-BxuVAL5h.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-NLm-zu5S.js → ManaPricingBanner.styles-dfVXcaNP.js} +2 -2
- package/_assets/{MyAssets-BbctXf9T.js → MyAssets-BbWDjYod.js} +2 -2
- package/_assets/{MyFavorites-CDyauJmh.js → MyFavorites-DY192etV.js} +3 -3
- package/_assets/{MyStore-DorOcI1q.js → MyStore-qM8HV1zc.js} +2 -2
- package/_assets/{NetworkUtil-xj9XdA6U.js → NetworkUtil-B4oEt17N.js} +2 -2
- package/_assets/{NotFound-Ds8v76Ff.js → NotFound-CgcYb0ih.js} +2 -2
- package/_assets/{NotificationsBell-D3XWdEXZ.js → NotificationsBell-txLDBZgz.js} +13 -13
- package/_assets/{OutfitDetail-DNYnAFNy.js → OutfitDetail-EWQSU1q3.js} +2 -2
- package/_assets/{OutfitPreview-ZeTJyukp.js → OutfitPreview-Cj1w-8ou.js} +3 -3
- package/_assets/{OutfitStudio-HDNrNgQb.js → OutfitStudio-CymFpAjx.js} +2 -2
- package/_assets/{PhArrowCircleDown-oZRgIV6I.js → PhArrowCircleDown-BgP2jbf5.js} +3 -3
- package/_assets/{PhArrowClockwise-D6H6uB8s.js → PhArrowClockwise-CuNU0iSl.js} +2 -2
- package/_assets/{PhArrowDown-CRBvhObC.js → PhArrowDown-BrLks3Uz.js} +4 -4
- package/_assets/{PhArrowLeft-iC7ALVz_.js → PhArrowLeft-BbZGSN_s.js} +5 -5
- package/_assets/{PhArrowRight-BMhSphsR.js → PhArrowRight-DqLi6_uj.js} +4 -4
- package/_assets/{PhArrowSquareOut-BGOFtcYV.js → PhArrowSquareOut-CX0ZRgNC.js} +4 -4
- package/_assets/{PhArrowUp-DaOakyLF.js → PhArrowUp-D9ugstgK.js} +3 -3
- package/_assets/{PhArrowUpRight-Dv-X4w2R.js → PhArrowUpRight-Bpfn12eW.js} +4 -4
- package/_assets/{PhArrowsClockwise-DnI7mFlV.js → PhArrowsClockwise-CRZyQVpN.js} +4 -4
- package/_assets/{PhArrowsDownUp-BT1rp80C.js → PhArrowsDownUp-CV1NqVLb.js} +4 -4
- package/_assets/{PhArrowsLeftRight-3JEyJt0N.js → PhArrowsLeftRight-DvGI6Nto.js} +5 -5
- package/_assets/{PhBank-DlTySila.js → PhBank-BRxdKSKq.js} +5 -5
- package/_assets/{PhBrowser-CxUZLRbi.js → PhBrowser-C_wNKcTe.js} +5 -5
- package/_assets/PhCaretDown-DBNFm85V.js +15 -0
- package/_assets/{PhCaretLeft-ScH02zvv.js → PhCaretLeft-Cad__LUx.js} +3 -3
- package/_assets/{PhCaretRight-CG-ZCjvT.js → PhCaretRight-CuRYBcM2.js} +3 -3
- package/_assets/PhCaretUp-DE2FiuTS.js +15 -0
- package/_assets/{PhCheck-DETGkRRi.js → PhCheck-y4MOxgof.js} +5 -5
- package/_assets/{PhCircleHalf-BN36Nweh.js → PhCircleHalf-xlPKmtS7.js} +4 -4
- package/_assets/{PhClock-DPd3K2DL.js → PhClock-BBNMhMKw.js} +4 -4
- package/_assets/{PhCompass-F0g-SfuH.js → PhCompass-DpAl_LfZ.js} +5 -5
- package/_assets/{PhCopy-CzpD7rrG.js → PhCopy-D4HwCqa2.js} +5 -5
- package/_assets/{PhCreditCard-NnI7YcNP.js → PhCreditCard-CD12JEEL.js} +3 -3
- package/_assets/{PhCurrencyDollar-Bst29vzW.js → PhCurrencyDollar-DPFX6nyR.js} +2 -2
- package/_assets/{PhDesktop-CFSSNEkS.js → PhDesktop-CNhh70Hf.js} +3 -3
- package/_assets/{PhDeviceMobile-Dd2ijltg.js → PhDeviceMobile-DQgHhtB0.js} +5 -5
- package/_assets/{PhDotsThree-CI5y9TIg.js → PhDotsThree-B1gOaArE.js} +4 -4
- package/_assets/{PhEnvelope-DrQ5vbHf.js → PhEnvelope-CGnM9AiA.js} +4 -4
- package/_assets/{PhFunnelSimple-CI4FOzkp.js → PhFunnelSimple-D8YZwX53.js} +4 -4
- package/_assets/{PhGlobe-DR2SpSWA.js → PhGlobe-CXtg_GcB.js} +4 -4
- package/_assets/{PhIdentificationCard-5YfSRHO7.js → PhIdentificationCard-oMtubY4C.js} +3 -3
- package/_assets/{PhImage-D7dVXxCI.js → PhImage-DKp6-EHn.js} +2 -2
- package/_assets/{PhInfo-DNTh1xhU.js → PhInfo-CPd-HNhu.js} +5 -5
- package/_assets/{PhLightbulb-BfCndXXI.js → PhLightbulb-C47afrxR.js} +5 -5
- package/_assets/{PhMagnifyingGlass-DB41rFTM.js → PhMagnifyingGlass-DBaqb5ff.js} +2 -2
- package/_assets/{PhPaperPlaneRight-D6oxeO8G.js → PhPaperPlaneRight-FQGhQUrW.js} +4 -4
- package/_assets/{PhPlus-B90Q_jSC.js → PhPlus-B_CxFvZS.js} +4 -4
- package/_assets/{PhPower-B3OeVFPP.js → PhPower-DRTSLLeY.js} +4 -4
- package/_assets/{PhPuzzlePiece-DMvneE8o.js → PhPuzzlePiece-zlHiPdqx.js} +4 -4
- package/_assets/{PhQrCode-B1ogONq9.js → PhQrCode-riEgpq80.js} +4 -4
- package/_assets/{PhQuestion-BGPtjzO3.js → PhQuestion-DHYK7o0G.js} +3 -3
- package/_assets/{PhQuestionMark-Bx5KlE6e.js → PhQuestionMark-ZgOsaVvK.js} +4 -4
- package/_assets/{PhSealCheck-kDiKrn8v.js → PhSealCheck-B5VE_9Jt.js} +3 -3
- package/_assets/{PhSignOut-C40w8abk.js → PhSignOut-DKQOfDHS.js} +4 -4
- package/_assets/{PhSpinner-BnCR7oBU.js → PhSpinner-B3k7aAJt.js} +4 -4
- package/_assets/{PhTrash-Dx6EnoNj.js → PhTrash-CD2fhMLB.js} +3 -3
- package/_assets/{PhUser-BMrVwUFx.js → PhUser-BeKUoVY6.js} +2 -2
- package/_assets/{PhVault-CJhJgRMl.js → PhVault-DC9QjU0-.js} +5 -5
- package/_assets/{PhWallet-DUAwnObx.js → PhWallet-djswo-CG.js} +3 -3
- package/_assets/{PhWarning-DQNslokT.js → PhWarning-B4g8NvcF.js} +4 -4
- package/_assets/{PhWarningCircle-p1EFi5p4.js → PhWarningCircle-xLZ7sbu0.js} +5 -5
- package/_assets/{PhX-cY2Ff_Gl.js → PhX-BVzMqBjL.js} +5 -5
- package/_assets/{SaleCountdown-cQM4C16V.js → SaleCountdown-3pApusNf.js} +2 -2
- package/_assets/{Spinner-L6nFyl-2.js → Spinner-BhJFlkpV.js} +2 -2
- package/_assets/{StoreSettings-DumRGIpw.js → StoreSettings-CuaXmFqQ.js} +2 -2
- package/_assets/{Success-kXDhdODF.js → Success-oMsLbOWh.js} +2 -2
- package/_assets/{SwapController-2wOUxm-O.js → SwapController-DrYUKQJ9.js} +2 -2
- package/_assets/{Tooltip-C2bcEiWV.js → Tooltip-BIdqgK8V.js} +2 -2
- package/_assets/{TradeService-CJAyWLOz.js → TradeService-JsADFsSl.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-CTS4_jWN.js → W3MFrameProviderSingleton-DvSh92CX.js} +4 -4
- package/_assets/{WebCryptoP256-BBF_1GY3.js → WebCryptoP256-DgMWbKGz.js} +2 -2
- package/_assets/{add-WhTS4Lmx.js → add-C46RTTNX.js} +3 -3
- package/_assets/{all-wallets-BjG4VftA.js → all-wallets-byTNDEq1.js} +2 -2
- package/_assets/{app-store-BU7T42Cx.js → app-store-CaKIhI-8.js} +2 -2
- package/_assets/{apple-CawmhmSa.js → apple-DAMB_3Lk.js} +3 -3
- package/_assets/{arrow-bottom-CnNmrvB7.js → arrow-bottom-Cx66u8_t.js} +2 -2
- package/_assets/{arrow-bottom-circle-4Fk8ZSin.js → arrow-bottom-circle-Bv2eZVEF.js} +2 -2
- package/_assets/{arrow-left-CfMYQlcz.js → arrow-left-D0I0JXz4.js} +3 -3
- package/_assets/arrow-right-BHc70exa.js +9 -0
- package/_assets/{arrow-top-B19eH9mc.js → arrow-top-uM_hNW8Z.js} +3 -3
- package/_assets/{async-directive-BTrBVINo.js → async-directive-CeCQAQEH.js} +4 -4
- package/_assets/{bank-CvCwnNxT.js → bank-CQUOEuRq.js} +2 -2
- package/_assets/{basic-Dy20qb1a.js → basic-GpwOtGyM.js} +2 -2
- package/_assets/{biconomy-BnEG5Zy-.js → biconomy-NuhcX0Yi.js} +2 -2
- package/_assets/{browseLayout.styles-CfCn9o-L.js → browseLayout.styles-D0MZbKfc.js} +2 -2
- package/_assets/{browser-D_6XKzYg.js → browser-Bh67F6hL.js} +3 -3
- package/_assets/{browser-CRh8u5ch.js → browser-CztLWw1I.js} +2 -2
- package/_assets/{browser-Cdq7DNqX.js → browser-D0dzO3fx.js} +2 -2
- package/_assets/{browser-ponyfill-BKmwPYRv.js → browser-ponyfill-BdWvH_If.js} +2 -2
- package/_assets/buy-ZzigQNxZ.js +2 -0
- package/_assets/{buy-gasless-CxdA3e9m.js → buy-gasless-5QIoW0es.js} +2 -2
- package/_assets/{card-Bs7vF3ws.js → card-DcQ1wkCr.js} +2 -2
- package/_assets/cart-checkout-D_rUzOn4.js +2 -0
- package/_assets/{categories-DFosgubm.js → categories-BCcLvB19.js} +2 -2
- package/_assets/{ccip-CFqr1zAP.js → ccip-0C-WJ2f3.js} +2 -2
- package/_assets/{ccip-kZ3R7VLn.js → ccip-CcFd-pp_.js} +2 -2
- package/_assets/{chains-DeJWzaQr.js → chains-BoWQ7jDs.js} +2 -2
- package/_assets/{checkmark-e3BzxNSm.js → checkmark-GDL9YfL4.js} +2 -2
- package/_assets/{checkmark-bold-CwL3zpGi.js → checkmark-bold-B-Sg0XJy.js} +3 -3
- package/_assets/chevron-bottom-CLuKI9LQ.js +9 -0
- package/_assets/chevron-left-B_RU4s1F.js +9 -0
- package/_assets/chevron-right-C6ckznAo.js +9 -0
- package/_assets/chevron-top-CJOmtrv2.js +9 -0
- package/_assets/{chrome-store-B9E5S_r1.js → chrome-store-s39Q_LJM.js} +3 -3
- package/_assets/{class-map-BaReYv7k.js → class-map-BxMzgOIb.js} +5 -5
- package/_assets/{clock-98t-BkG5.js → clock-DmJj-grN.js} +2 -2
- package/_assets/close-D4d1U5NV.js +9 -0
- package/_assets/{coinPlaceholder-rH-MsidA.js → coinPlaceholder-VDdmV3rm.js} +2 -2
- package/_assets/collectionPage.styles-rZa1BWWK.js +41 -0
- package/_assets/common-aEQBU1aZ.js +2 -0
- package/_assets/{compass-C4iPyfoB.js → compass-O2jaVbub.js} +3 -3
- package/_assets/{controller-k48YB2Sn.js → controller-BHSkmDDd.js} +3 -3
- package/_assets/{copy-Db_EXK-k.js → copy-D2eE3KCY.js} +3 -3
- package/_assets/{core-CKZ_MmrP.js → core-Dnx08t4s.js} +5 -5
- package/_assets/{createSvgIcon-B4YJe4s8.js → createSvgIcon-C3DiORbY.js} +4 -4
- package/_assets/{crumbs.styles-C5msDC2H.js → crumbs.styles-D969n73j.js} +2 -2
- package/_assets/{cursor-BLyA32Y6.js → cursor-DSrN7SuI.js} +3 -3
- package/_assets/{cursor-transparent-is8_6H5o.js → cursor-transparent-DxuBEx9O.js} +2 -2
- package/_assets/{custom-BXWLdbja.js → custom-CyjlH7Cr.js} +2 -2
- package/_assets/{data-capture-uHnihewB.js → data-capture-BUt-tqa3.js} +2 -2
- package/_assets/{dcl-schemas-B-U9a1k0.js → dcl-schemas-CyEZVc6x.js} +2 -2
- package/_assets/decimals-BLhtmmbN.js +2 -0
- package/_assets/decimals-CiM-QvAk.js +2 -0
- package/_assets/{desktop-w7YXG_JM.js → desktop-DwZtv9fm.js} +2 -2
- package/_assets/detectExtension-CdbTZOKn.js +2 -0
- package/_assets/{disconnect-BoVeWInH.js → disconnect-BbwiqFJ2.js} +3 -3
- package/_assets/{discord-CmXuPXeB.js → discord-qWAUKbRO.js} +3 -3
- package/_assets/{disposePreview-VJjydgsa.js → disposePreview-D5v9GkJF.js} +2 -2
- package/_assets/{email-KFGlGhOy.js → email-BGoeypvI.js} +7 -7
- package/_assets/{embedded-wallet-C0hnCLpE.js → embedded-wallet-Cg2BVqx1.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-CvLTks_d.js → emotion-styled.browser.esm-Bc8640ZT.js} +2 -2
- package/_assets/{engine-BRjaV2JM.js → engine-BQ4XBK5G.js} +2 -2
- package/_assets/{errors-7T5zBx70.js → errors-DUBMk1_u.js} +2 -2
- package/_assets/estimate-l1-fee-Cvh02XjO.js +2 -0
- package/_assets/eth_estimateGas-BH-_dHsN.js +2 -0
- package/_assets/eth_getStorageAt-CHailSu6.js +2 -0
- package/_assets/eth_getTransactionCount-Ce8ytlz4.js +2 -0
- package/_assets/ethereum-AiomgAl3.js +2 -0
- package/_assets/{ethers-DSJYCqoj.js → ethers-CQbljc2C.js} +2 -2
- package/_assets/{etherscan-C6oDVSRT.js → etherscan-TUQ32gbU.js} +2 -2
- package/_assets/{events-BjA1SxTa.js → events-Ey8xQ1_i.js} +2 -2
- package/_assets/{exclamation-triangle-DeoEkpAd.js → exclamation-triangle-ETkxexlo.js} +2 -2
- package/_assets/{execute-BplnQIQO.js → execute-CcyXPSES.js} +3 -3
- package/_assets/{extension-BC4u9PFt.js → extension-DoOVmXmT.js} +3 -3
- package/_assets/external-link-BEPN-Y2j.js +9 -0
- package/_assets/{extractIPFS-BYNmHd2k.js → extractIPFS-CZpI5_La.js} +2 -2
- package/_assets/{facebook-BfvFcXpk.js → facebook-BmPLPVaB.js} +3 -3
- package/_assets/{farcaster-DBSK9Oxt.js → farcaster-BLIAglQl.js} +2 -2
- package/_assets/{features-Cdv7L-RV.js → features-CW3BJut9.js} +2 -2
- package/_assets/{fetchTokenMetadata-DhtaTk-H.js → fetchTokenMetadata-zQ7k58lq.js} +3 -3
- package/_assets/{field.styles-6T_AbtbU.js → field.styles-CNumGj8X.js} +2 -2
- package/_assets/{filters-Bx7yqePJ.js → filters-DWaFeZ95.js} +3 -3
- package/_assets/{fortmatic-DXNz83vb.js → fortmatic-D7_cu5X7.js} +2 -2
- package/_assets/{get-bytecode-CFhNP8WB.js → get-bytecode-ChEcvuHJ.js} +2 -2
- package/_assets/get-ecosystem-wallet-info-BXFPDksD.js +2 -0
- package/_assets/{getBalance-LoJ5orGb.js → getBalance-CdWdKWho.js} +3 -3
- package/_assets/{getInstalledModules-Dg137aWw.js → getInstalledModules-Dy7ryxbR.js} +2 -2
- package/_assets/{getNFT-CpYYuTRe.js → getNFT-CVhWquj2.js} +3 -3
- package/_assets/getNFT-DEIlQj0F.js +2 -0
- package/_assets/{github-Bir9JlcK.js → github-BiA5cQMJ.js} +3 -3
- package/_assets/{google-BlkSyDA4.js → google-CsF9xgle.js} +3 -3
- package/_assets/{grid.styles-DDLEbnSw.js → grid.styles-DGwAy7au.js} +2 -2
- package/_assets/{hashTypedData-Bt7HN3si.js → hashTypedData-CS0nSVCm.js} +2 -2
- package/_assets/{hashTypedData-DgB1HOfC.js → hashTypedData-G7W_A13L.js} +2 -2
- package/_assets/{help-circle-DA-n1pkO.js → help-circle-Bwgxn3Vn.js} +3 -3
- package/_assets/{id-UrGKP3rm.js → id-O5raZ1NS.js} +2 -2
- package/_assets/{image-D3PTNca-.js → image-CbhOQpP5.js} +2 -2
- package/_assets/{import-B6kpcRFm.js → import-C1FMKChQ.js} +2 -2
- package/_assets/{in-app-Dg3YlbFQ.js → in-app-C03QvI9E.js} +2 -2
- package/_assets/{in-app-wallet-calls-D5geh72I.js → in-app-wallet-calls-BSt_kW07.js} +2 -2
- package/_assets/{index-U3U2nzy5.js → index-201_pXjD.js} +4 -4
- package/_assets/{index-BALC2Wgg.js → index-4lxXm67R.js} +2 -2
- package/_assets/{index-C7ZsJ1wS.js → index-4y3ole-I.js} +4 -4
- package/_assets/{index-BYzs0el7.js → index-B0G5-1U4.js} +2 -2
- package/_assets/{index-LzjiU4KK.js → index-B4vPl9JJ.js} +4 -4
- package/_assets/{index-BMRZuivV.js → index-B9BLMD9v.js} +4 -4
- package/_assets/{index-CiXHnYhZ.js → index-BDhEGVn5.js} +3 -3
- package/_assets/{index-RelB0M4N.js → index-BGlAHo1V.js} +2 -2
- package/_assets/{index-BFiGQV0S.js → index-BHRJojA7.js} +2 -2
- package/_assets/{index-D8-2D48n.js → index-BWhGWxu6.js} +4 -4
- package/_assets/{index-BPVjQIY8.js → index-BYpz1U-Z.js} +3 -3
- package/_assets/{index-wMS45T6v.js → index-B_Ukoyjo.js} +4 -4
- package/_assets/{index-BVH6E6OD.js → index-Bc5rdQrs.js} +2 -2
- package/_assets/{index-KErMJCvL.js → index-BiR1vPRL.js} +18 -18
- package/_assets/{index-jUx-Pp_A.js → index-BjTaCUde.js} +6 -6
- package/_assets/index-Bvf3c8I8.js +2 -0
- package/_assets/{index-CUCItwHM.js → index-Bx-HA0Fa.js} +4 -4
- package/_assets/{index-DqOzMcNF.js → index-C0q8Kut4.js} +2 -2
- package/_assets/{index-DPbzKM5D.css → index-C53nEuU1.css} +1 -1
- package/_assets/{index-weSxFZGO.js → index-C8RRvl4w.js} +5 -5
- package/_assets/{index-D9YHcXvR.js → index-CAdxESjh.js} +4 -4
- package/_assets/{index-D9YcmLMJ.js → index-CITTAZNc.js} +2 -2
- package/_assets/{index-C8xt-Dq0.js → index-CMsQl6_s.js} +2 -2
- package/_assets/{index-DC99FOt3.js → index-CRdAPM4e.js} +3 -3
- package/_assets/{index-CkyVxKTR.js → index-CSAbgA1H.js} +2 -2
- package/_assets/{index-CaofpCDX.js → index-CVjhybQY.js} +4 -4
- package/_assets/{index-BAXoG69v.js → index-CZ765edO.js} +5 -5
- package/_assets/{index-Dkzg1nZE.js → index-C_MZ3G2Z.js} +2 -2
- package/_assets/{index-CESlHrvT.js → index-CbJaCRxI.js} +2 -2
- package/_assets/{index-SqJBKUwJ.js → index-Cbvqh2tB.js} +2 -2
- package/_assets/{index-CFtn0XDp.js → index-CeBVhm3u.js} +2 -2
- package/_assets/index-Cq3PcGZS.js +2 -0
- package/_assets/{index-DxULOM0p.js → index-CseNtOsJ.js} +3 -3
- package/_assets/{index-CRYukxlf.js → index-Csid9_UU.js} +2 -2
- package/_assets/{index-IVhnoiOa.js → index-CtUq3VAh.js} +2 -2
- package/_assets/{index-DuUTwu_9.js → index-Cy_pguIe.js} +2 -2
- package/_assets/{index-Q5TwwtLn.js → index-CzzqMKs2.js} +2 -2
- package/_assets/{index-D9TJEt55.js → index-D-bvLCMJ.js} +4 -4
- package/_assets/{index-BdLDRc-I.js → index-D080sfYK.js} +2 -2
- package/_assets/{index-txYiH5Ob.js → index-D7n0Nbcc.js} +4 -4
- package/_assets/{index-Cdhs4ZSZ.js → index-DBpSYzZ1.js} +2 -2
- package/_assets/{index-A3upiasd.js → index-DCOfqwFn.js} +3 -3
- package/_assets/{index-DxqlsaIJ.js → index-DHAeKuI8.js} +2 -2
- package/_assets/{index-BaSG_NUp.js → index-DNpS4XJW.js} +3 -3
- package/_assets/{index-CkMr9c7F.js → index-DUvDgJtL.js} +3 -3
- package/_assets/{index-Cs3-E5cT.js → index-DW4iGfw5.js} +2 -2
- package/_assets/{index-D2GK2huD.js → index-DYEzTJ00.js} +3 -3
- package/_assets/{index-BjKr7EJa.js → index-DbnwTj_J.js} +3 -3
- package/_assets/{index-nA74BJD3.js → index-DiRK7oEZ.js} +2 -2
- package/_assets/{index-4qAYVf42.js → index-DmEpmcAI.js} +6 -6
- package/_assets/{index-BQvjbaBw.js → index-Dr8MILBs.js} +2 -2
- package/_assets/{index-CSQsSI9S.js → index-DtQZWv2W.js} +2 -2
- package/_assets/{index-Dmc5rFnV.js → index-DvGoWYRw.js} +2 -2
- package/_assets/{index-XK9EepTf.js → index-DzXb9yfS.js} +2 -2
- package/_assets/{index-CY1CneD5.js → index-P_yp2lGD.js} +2 -2
- package/_assets/{index-CDLnPH_R.js → index-QkD5v2W0.js} +2 -2
- package/_assets/{index-B3abSZ-Z.js → index-SRawa_W1.js} +2 -2
- package/_assets/{index-Df82pzI7.js → index-TuFs6Mw_.js} +3 -3
- package/_assets/{index-I1p6yQ0k.js → index-VVP1Lz5F.js} +4 -4
- package/_assets/{index-CZnmZn0O.js → index-WhAOvWl7.js} +7 -7
- package/_assets/{index-CF8QOK2h.js → index-ZSCJO9rV.js} +7 -7
- package/_assets/{index-D6jqchs0.js → index-d0JdYucS.js} +2 -2
- package/_assets/{index-l3KtsjUu.js → index-gx6q3jYb.js} +2 -2
- package/_assets/{index-Bc9bdmof.js → index-jG0dKzqZ.js} +2 -2
- package/_assets/{index-z74SKtAP.js → index-mp9sO-P_.js} +2 -2
- package/_assets/{index-CA8tyOAF.js → index-ovxDr1NO.js} +2 -2
- package/_assets/{index-DYNz2qcD.js → index-rWvX-JNU.js} +3 -3
- package/_assets/{index-B4ztxoOX.js → index-sc9WaH7T.js} +2 -2
- package/_assets/{index.es-DaYBb4qv.js → index.es-B3Zhssg2.js} +2 -2
- package/_assets/{index.es-Bcu1bp5V.js → index.es-CuJy51Rq.js} +5 -5
- package/_assets/{index.es-axr79-mu.js → index.es-DF1aG5Z7.js} +2 -2
- package/_assets/{index.es-DECbrw_U.js → index.es-DmJ25C-K.js} +2 -2
- package/_assets/{info-Dsmi8VWW.js → info-B91xCNqh.js} +3 -3
- package/_assets/info-circle-DtEY-DDD.js +13 -0
- package/_assets/{items-empty-BQHUprjO.js → items-empty-BAKFq7PT.js} +2 -2
- package/_assets/jsxRuntime.module-BUzu5v1_.js +2 -0
- package/_assets/{jump-CqDVhlE9.js → jump-BolxKTOM.js} +2 -2
- package/_assets/{lightbulb-B2s8QgKQ.js → lightbulb-ByedgZqO.js} +3 -3
- package/_assets/{linkAccount-DxdV9HS8.js → linkAccount-D4jgrDpa.js} +2 -2
- package/_assets/{localBatchGatewayRequest-dCTRrlIJ.js → localBatchGatewayRequest-BMvn0i_b.js} +2 -2
- package/_assets/{mail-CZ9ghbH-.js → mail-B2wBPliw.js} +2 -2
- package/_assets/{mobile-D7KL87qI.js → mobile-COGIkuHo.js} +2 -2
- package/_assets/modal.styles-G1Y436F0.js +531 -0
- package/_assets/{modal.styles-DVzEuE4i.js → modal.styles-wZfJxa-e.js} +2 -2
- package/_assets/{more-C1vsI2Vu.js → more-zcriamqw.js} +2 -2
- package/_assets/{native-Bma50gO8.js → native-BS9-NZgY.js} +2 -2
- package/_assets/{network-placeholder-C6sglFRh.js → network-placeholder-Cm-6akxX.js} +2 -2
- package/_assets/{networks-p14N8Rze.js → networks-BuXAUv57.js} +2 -2
- package/_assets/{nftPlaceholder-ByX0V9oA.js → nftPlaceholder-vZdYCYRL.js} +2 -2
- package/_assets/off-CLF8R11w.js +9 -0
- package/_assets/{onramp-_W_skd45.js → onramp-B2gdYmCO.js} +2 -2
- package/_assets/openzeppelin-B_FytaNI.js +2 -0
- package/_assets/ownerOf-D6JpENJA.js +2 -0
- package/_assets/parseNft-DiM6gxbM.js +3 -0
- package/_assets/{parseSignature-K29ZIdYJ.js → parseSignature-BJVq2ShY.js} +4 -4
- package/_assets/{parseSignature-DPNUOnqO.js → parseSignature-VwEmUV8h.js} +2 -2
- package/_assets/{passkeys-Bxplb0vS.js → passkeys-DEiWC5Z7.js} +2 -2
- package/_assets/{pay-with-exchange-6DWMo0rX.js → pay-with-exchange-C7Nm7Ic2.js} +2 -2
- package/_assets/{play-store-BBusJ15a.js → play-store-CAbJYmXD.js} +2 -2
- package/_assets/{plus-QdPNUgRE.js → plus-DWQF9t2p.js} +3 -3
- package/_assets/{prepare-contract-call-Cj0eDfjm.js → prepare-contract-call-r6GCr7Mb.js} +2 -2
- package/_assets/{qr-code-SdYLFk2z.js → qr-code-Br4VphwV.js} +2 -2
- package/_assets/{qr-overlay-BjI4mudc.js → qr-overlay-mbqSXRsy.js} +6 -6
- package/_assets/{react-DhG5dcPN.js → react-DKpLHQl0.js} +2 -2
- package/_assets/{receive-CeFGmTcc.js → receive-KMWzb1kT.js} +9 -9
- package/_assets/{recycle-horizontal-SCXYOpJq.js → recycle-horizontal-DdAImjTL.js} +3 -3
- package/_assets/{ref-DRxYb1N1.js → ref-D90CCjlU.js} +2 -2
- package/_assets/{refresh-eticwJ3S.js → refresh-S-H2nzPq.js} +2 -2
- package/_assets/{reown-logo-C2dHPSrm.js → reown-logo-D5L2QY4i.js} +3 -3
- package/_assets/{resolveImplementation-774OZZ1E.js → resolveImplementation-NjDCaPa0.js} +2 -2
- package/_assets/{resume-buy-BEdLbR_n.js → resume-buy-DRxVLtZn.js} +2 -2
- package/_assets/resume-name-m2sdJCvP.js +2 -0
- package/_assets/{rpc-DmcKeb2b.js → rpc-C6ONv-35.js} +2 -2
- package/_assets/{sales-empty-D8qJCHeq.js → sales-empty-BJGisiNF.js} +2 -2
- package/_assets/{search-empty-DH4IcPd4.js → search-empty-DcGDTM8L.js} +2 -2
- package/_assets/{search-CeQ1H1CU.js → search-f6j421fJ.js} +3 -3
- package/_assets/{secp256k1-1jHjSX_0.js → secp256k1-BhLjMGke.js} +2 -2
- package/_assets/{secp256k1-C5XurJ6V.js → secp256k1-Dogd-wfD.js} +2 -2
- package/_assets/{secp256k1-DwMDsrWo.js → secp256k1-ZRJNrIuk.js} +2 -2
- package/_assets/{send-Bpuo5hJ1.js → send-B4t6gmpc.js} +2 -2
- package/_assets/{send-Bo03Ql2I.js → send-BAUrBF6z.js} +3 -3
- package/_assets/send-batch-transaction-BULbschT.js +2 -0
- package/_assets/{send-eip712-transaction-XSTFaz0B.js → send-eip712-transaction-B5q6HGy1.js} +3 -3
- package/_assets/send-gasless-transaction-BW_1tZ59.js +3 -0
- package/_assets/send-transaction-D5g8ka92.js +3 -0
- package/_assets/{sendMetaTransaction-DsMG8gV0.js → sendMetaTransaction-BiqdXKVl.js} +2 -2
- package/_assets/{sendRawTransaction-BU2bb2hv.js → sendRawTransaction-DHZVBFUc.js} +4 -4
- package/_assets/{sentry-C-ZN4hdJ.js → sentry-WFsNKO98.js} +3 -3
- package/_assets/{serializeTransaction-BAiVmvI3.js → serializeTransaction-C1OICSTJ.js} +2 -2
- package/_assets/{session-proposal-C0VIGGjd.js → session-proposal-C_rldw8k.js} +2 -2
- package/_assets/{session-request-Dw2Dj2ik.js → session-request-DRsdGyCL.js} +3 -3
- package/_assets/{sha256-DrAuxfaX.js → sha256-YJL3wOOs.js} +2 -2
- package/_assets/{sha3-D7-SM6M6.js → sha3-DxT-REZ2.js} +2 -2
- package/_assets/signin-empty-DXl1Qpby.js +2 -0
- package/_assets/{signing-OF1etnMz.js → signing-B9DcFwzm.js} +4 -4
- package/_assets/{skeleton.styles-BDOcFuFh.js → skeleton.styles-C4BBCe2d.js} +2 -2
- package/_assets/{socials-BN_G7rnm.js → socials-Zki4qksa.js} +2 -2
- package/_assets/{styled-B_VfpbCV.js → styled-uWbR3175.js} +3 -3
- package/_assets/{swapHorizontal-C6GakaRf.js → swapHorizontal-BXjIGAcZ.js} +2 -2
- package/_assets/{swapHorizontalBold-oeP-_O-R.js → swapHorizontalBold-BzueHopN.js} +2 -2
- package/_assets/{swapHorizontalMedium-C64EXSWD.js → swapHorizontalMedium-DLFo4hRx.js} +2 -2
- package/_assets/{swapHorizontalRoundedBold-CHgP6XK-.js → swapHorizontalRoundedBold-BddBy7OL.js} +2 -2
- package/_assets/{swapVertical-8SLU7RpO.js → swapVertical-DYkySTmy.js} +3 -3
- package/_assets/{swaps-CPevyB8C.js → swaps-DiPvT9W6.js} +2 -2
- package/_assets/{telegram-CF91ES6s.js → telegram-D8ymSABf.js} +2 -2
- package/_assets/{thirdweb-BbVCwUAu.js → thirdweb-wDwbIJ1W.js} +4 -4
- package/_assets/{three-dots-BsCoLPC9.js → three-dots-CiS9iH0H.js} +2 -2
- package/_assets/{to-serializable-transaction-lRDSqYXw.js → to-serializable-transaction-6f6pRX-q.js} +3 -3
- package/_assets/totalSupply-rJ9WcMzs.js +2 -0
- package/_assets/{trade-encoding-J0WDcE9D.js → trade-encoding-DcX77zVS.js} +2 -2
- package/_assets/{transaction-XzNewIjy.js → transaction-DxXkarJJ.js} +2 -2
- package/_assets/transactionReceipt-CxzioWsu.js +2 -0
- package/_assets/transactions-BGQTb4VV.js +17 -0
- package/_assets/{twitch-BranWKeM.js → twitch-BJQCmiGz.js} +2 -2
- package/_assets/{twitterIcon-BfIWT5DS.js → twitterIcon-B78o99Zv.js} +2 -2
- package/_assets/{useCreatorSales-Dpv72LCx.js → useCreatorSales-D4BzYp33.js} +2 -2
- package/_assets/{useInfiniteGrid-C2bFEKpr.js → useInfiniteGrid-BUDyyZZl.js} +2 -2
- package/_assets/{useStore-BCxGyG1z.js → useStore-tid_idJp.js} +3 -3
- package/_assets/{useTheme-WQQFpB7n.js → useTheme-CRxh5DOu.js} +2 -2
- package/_assets/{utils-VSYSpTVV.js → utils-Cj21wfvp.js} +2 -2
- package/_assets/{verify-DcO5QuX7.js → verify-CrYE2kna.js} +3 -3
- package/_assets/{verify-filled-CKp8XQqI.js → verify-filled-CwwnY5h6.js} +3 -3
- package/_assets/{verifyHash-ghN9T3Ve.js → verifyHash-mzlxS6TY.js} +2 -2
- package/_assets/{w3m-modal-E9Z1SfqC.js → w3m-modal-BArYWi0C.js} +2 -2
- package/_assets/{w3m-modal-Ev1ebfj3.js → w3m-modal-BXpuWB5y.js} +2 -2
- package/_assets/wait-for-tx-receipt-DRwGvrwD.js +2 -0
- package/_assets/{wallet-BHCiGpYx.js → wallet-EosqBoq7.js} +3 -3
- package/_assets/{wallet-placeholder-BVguMNEt.js → wallet-placeholder-DL8kIY2O.js} +3 -3
- package/_assets/{walletconnect-9t1WJh4k.js → walletconnect-CauX9cVK.js} +4 -4
- package/_assets/{wallets-D8WdqQYN.js → wallets-HjCMtUn8.js} +6 -6
- package/_assets/{warning-circle-II7Vcaxs.js → warning-circle-BrcBx24p.js} +3 -3
- package/_assets/{web-connector-DWmfoiFW.js → web-connector-15d-OnTN.js} +4 -4
- package/_assets/{writeContract-DfDwHewQ.js → writeContract-BJQQGUKO.js} +2 -2
- package/_assets/x-CwtQDczS.js +13 -0
- package/_assets/{zora-sepolia-B6qZJNOp.js → zora-sepolia-BFYuSeeX.js} +2 -2
- package/_assets/{zoraTestnet-B0U9riHP.js → zoraTestnet-DdfVMUdb.js} +2 -2
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Assets-CSRETZwJ.js +0 -939
- package/_assets/CollectionCarousel-aWbnRslF.js +0 -851
- package/_assets/Confetti-qSvOdilZ.js +0 -18
- package/_assets/Event-BG0dNUM_.js +0 -72
- package/_assets/PhCaretDown-Co8viBJv.js +0 -15
- package/_assets/PhCaretUp-SXVNZaJo.js +0 -15
- package/_assets/arrow-right-QKHuTr9a.js +0 -9
- package/_assets/buy-BZCpQvc4.js +0 -2
- package/_assets/chevron-bottom-DVpGPQvJ.js +0 -9
- package/_assets/chevron-left-CSISn9Tl.js +0 -9
- package/_assets/chevron-right-D0n7Onzs.js +0 -9
- package/_assets/chevron-top-BSRcfV5m.js +0 -9
- package/_assets/close-BnCucYZG.js +0 -9
- package/_assets/collectionPage.styles-DsCcUUFW.js +0 -41
- package/_assets/common-A3Bfnk62.js +0 -2
- package/_assets/decimals-C5B_cOCF.js +0 -2
- package/_assets/decimals-Du6yJMK-.js +0 -2
- package/_assets/detectExtension-C6w72a1b.js +0 -2
- package/_assets/estimate-l1-fee-BYl55n8M.js +0 -2
- package/_assets/eth_estimateGas-DLGqCGsG.js +0 -2
- package/_assets/eth_getStorageAt-BLy0F-NT.js +0 -2
- package/_assets/eth_getTransactionCount-CZ9P1SH4.js +0 -2
- package/_assets/ethereum-B3EozZME.js +0 -2
- package/_assets/external-link-D1_8iC7n.js +0 -9
- package/_assets/get-ecosystem-wallet-info-Cl9itAW0.js +0 -2
- package/_assets/getNFT-BEEmfYnn.js +0 -2
- package/_assets/index-Bymzh-gN.js +0 -2
- package/_assets/index-CYgnSTnA.js +0 -2
- package/_assets/info-circle-CppZa7vK.js +0 -13
- package/_assets/jsxRuntime.module-Q9HBaTr-.js +0 -2
- package/_assets/off-B5vm0egN.js +0 -9
- package/_assets/openzeppelin-TED9i7Yw.js +0 -2
- package/_assets/ownerOf-Bf98thEc.js +0 -2
- package/_assets/parseNft-BkGQncZj.js +0 -3
- package/_assets/send-batch-transaction-DYAjmvxh.js +0 -2
- package/_assets/send-gasless-transaction--CKQXCYJ.js +0 -3
- package/_assets/send-transaction-yz6MCfwK.js +0 -3
- package/_assets/signin-empty-BDPhINhk.js +0 -2
- package/_assets/totalSupply-C7xvhD2t.js +0 -2
- package/_assets/transactionReceipt-DzFEhFbW.js +0 -2
- package/_assets/transactions-DksFynEn.js +0 -17
- package/_assets/useCreditPacks-CplX_QCK.js +0 -2
- package/_assets/wait-for-tx-receipt-CSeTQKAi.js +0 -2
- package/_assets/x-D0s8LW19.js +0 -13
|
@@ -0,0 +1,980 @@
|
|
|
1
|
+
import{r as u,b as Be,j as e,a as ut,u as ft}from"./react-DKpLHQl0.js";import{c as ee,r as mt,b as xt,bE as gt,bA as bt,aE as yt,aC as wt,w as jt,cW as vt,cX as Ct,s as i,a as t,x as it,bk as $t,aK as kt,F as se,t as n,D as St,I as _,z as K,cY as Te,E as de,bj as Et,bi as Tt,l as Rt,O as $e,bu as Ke,bD as _t,bC as It,B as ot,W as rt,m as at,bS as Nt,y as Lt,at as Mt,Y as At,$ as Ve,a0 as he,aI as zt,bO as Wt}from"./index-BiR1vPRL.js";import{u as Ft,s as Pt}from"./search-empty-DcGDTM8L.js";import{C as Bt,u as Ut,n as Ot,S as Ht,R as Dt,F as Gt,a as qt}from"./Filters-BsZs-9_M.js";import{L as Kt}from"./LoadMore-BxuVAL5h.js";import{u as Vt}from"./useInfiniteGrid-BUDyyZZl.js";import{S as Zt}from"./categories-BCcLvB19.js";import{E as Qt}from"./ErrorNotice-Dlh8ddHO.js";import{d as Yt}from"./dcl-schemas-CyEZVc6x.js";import{s as Xt,G as Jt,w as en,S as tn}from"./buy-gasless-5QIoW0es.js";import{s as nn}from"./buy-ZzigQNxZ.js";import{C as sn}from"./trade-encoding-DcX77zVS.js";import{f as on}from"./errors-DUBMk1_u.js";import{J as rn,C as an,B as We}from"./ethers-CQbljc2C.js";import{v as ln,w as cn,W as dn,m as hn,n as pn,o as un,x as fn,y as mn,z as xn,D as gn,E as bn,F as yn,G as wn,I as jn,j as Ze}from"./modal.styles-G1Y436F0.js";import{u as vn,M as Cn,R as $n,c as kn}from"./cart-checkout-D_rUzOn4.js";import{R as Qe}from"./resume-name-m2sdJCvP.js";import{R as Sn}from"./resume-buy-DRxVLtZn.js";import{n as En}from"./name-glyph-aUugT8vq.js";import{c as Tn}from"./crumbs.styles-D969n73j.js";import{n as Rn}from"./Tooltip-BIdqgK8V.js";import{G as _n}from"./grid.styles-DGwAy7au.js";import{R as In,S as Nn,a as Ln,D as Mn,b as An,C as zn,c as Wn,d as Fn,e as Pn,M as Bn}from"./browseLayout.styles-D0MZbKfc.js";import"./sentry-WFsNKO98.js";import"./intl-AKLEHPeO.js";import"./skeleton.styles-C4BBCe2d.js";import"./sendMetaTransaction-BiqdXKVl.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new s.Error().stack;o&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[o]="1c98aee8-3d4c-45bf-8f7b-7e46ef4d780c",s._sentryDebugIdIdentifier="sentry-dbid-1c98aee8-3d4c-45bf-8f7b-7e46ef4d780c")}catch{}})();function pe(s){const o=s.source??"item",a=s.tradeId||`${s.contractAddress}-${s.tokenId??s.itemId??""}`;return`${o}:${a}`}const ie="100000000000000000000",lt=2,ke=15,Un=/^[a-zA-Z0-9]+$/;function Ye(s){const o=s.trim();return o.length===0?{ok:!1,reason:"empty"}:Un.test(o)?o.length<lt?{ok:!1,reason:"too-short"}:o.length>ke?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function On(s){return s.replace(/[^a-zA-Z0-9]/g,"").slice(0,ke)}const Hn=["function available(string _subdomain) view returns (bool)"],Xe={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function Dn(){return ee.chainId===Number(Yt.ChainId.MATIC_MAINNET)?Xe.mainnet:Xe.sepolia}async function Gn(s,o={}){var x;const{rpc:a,address:d}=Dn(),m=new rn(a),j=new an(d,Hn,m);console.info(`[names] availability check → DCLRegistrar(${d}).available("${s}") on ${a}`);const h=await j.available(s);if((x=o.signal)!=null&&x.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${s}" available=${h}`),h?"available":"taken"}const qn="https://app.across.to/api";class Ue extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}class Fe extends Error{constructor(){super("The name could not be registered on Ethereum; your funds were recovered."),this.name="NameNotRegisteredError"}}class Pe extends Error{constructor(){super("We couldn't confirm whether the purchase went through."),this.name="NameSettlementUnknownError"}}function Kn(s){return yt(ie,s)}async function Vn(s,o,a={}){var x;const d=a.chainId??ee.chainId,m=a.provider??"across",j=`${ee.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(o)}&chainId=${d}&provider=${m}`,h=await wt(j,{method:"GET",identity:s,metadata:{}});if(!h.ok){let c;try{c=(x=await h.json())==null?void 0:x.code}catch{}throw c==="ROUTE_COST_TOO_HIGH"?new Ue:new Error(`fetchNameCreditRoute ${h.status}`)}return h.json()}function Zn(s,o){const a=We.from(s.availableAmount),m=We.from(ie).sub(a);return{credits:[{value:s.amount,expiresAt:Number(s.expiresAt),salt:sn(s.id)}],creditsSignatures:[s.signature],externalCall:{target:o.externalCall.target,selector:o.externalCall.selector,data:o.externalCall.data,expiresAt:o.externalCall.expiresAt,salt:o.externalCall.salt},customExternalCallSignature:o.customExternalCallSignature,maxUncreditedValue:m.isNegative()?"0":m.toString(),maxCreditedValue:ie}}async function Qn(s,o={}){const a=qn,d=o.intervalMs??1e4,m=o.maxAttempts??60;let j={status:"pending",destinationTxHash:null,actionsSucceeded:null};for(let h=0;h<m;h++){try{const x=await fetch(`${a}/deposit/status?originChainId=137&depositTxHash=${s}`);if(x.ok){const c=await x.json(),y=(c.status??"pending").toLowerCase(),g=c.fillTx??c.fillTxnRef??null,$=typeof c.actionsSucceeded=="boolean"?c.actionsSucceeded:null;if(y==="filled")return{status:"filled",destinationTxHash:g,actionsSucceeded:$};if(y==="refunded"||y==="expired")return{status:y,destinationTxHash:null,actionsSucceeded:!1};j={status:"pending",destinationTxHash:g,actionsSucceeded:$}}}catch{}h<m-1&&await new Promise(x=>setTimeout(x,d))}return j}async function Yn(s){const{name:o,identity:a,signer:d}=s,m=g=>{var $;try{($=s.onProgress)==null||$.call(s,g)}catch{}},j=s.chainId??ee.chainId,h=s.provider??"across",x=(s.beneficiary??await d.getAddress()).toLowerCase();let c=null,y="unconfirmed";console.info("[names] register start",{name:o,buyer:x,chainId:j,provider:h}),m("preparing");try{const g=await mt(xt(ee.chainId).address),$=Kn(g);console.info("[names] step 1/6 sized reservation",{usdCents:$,manaRate:g});const p=await Vn(a,o,{chainId:j,provider:h});console.info("[names] step 2/6 route fetched",{target:p.externalCall.target,selector:p.externalCall.selector,provider:p.provider,quoteId:p.quoteId});const w=await gt(a,$,void 0,void 0,o);if(c=w.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:w.credit.id,maxCreditedValue:w.maxCreditedValue}),We.from(w.maxCreditedValue).lt(ie))throw new Error("Credit under-sized for the name price");m("awaiting-confirmation");const b=Zn(w.credit,p);let f;try{f=await Xt({chainId:j,buyer:x,signer:d,args:b})}catch(v){if(!(v instanceof Jt))throw v;if(v.reason==="relayer-unreachable"){y="unobservable";const E=new Pe;throw E.cause=v,E}f=await nn(j,b,d)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:f}),m("confirming"),await en(f),y="confirmed",console.info("[names] step 5/6 origin tx confirmed",{originTxHash:f}),h==="across"){m("registering");const v=await Qn(f,s.acrossPoll);if(console.info("[names] step 6/6 across status",v),v.status==="pending")return{status:"pending",originTxHash:f};if(v.status==="filled"&&v.actionsSucceeded===null)return console.warn("[names] across filled without reporting actionsSucceeded — reporting pending",{originTxHash:f}),{status:"pending",originTxHash:f};if(v.status!=="filled"||v.actionsSucceeded!==!0)throw new Fe;return{status:"registered",originTxHash:f,destinationTxHash:v.destinationTxHash}}return{status:"pending",originTxHash:f}}catch(g){if(console.error("[names] register failed — raw error:",g,{name:o,buyer:x,originState:y}),g instanceof tn)return{status:"pending",originTxHash:g.txHash};if(c&&y==="unconfirmed"&&await bt(a,[c]).catch(()=>{}),g instanceof Ue||g instanceof Fe||g instanceof Pe)throw g;const $=new Error(on(g,"Couldn't register the name. Please try again.",{sale:!0}));throw $.cause=g,$}}function Xn(){const{data:s}=jt({queryKey:["feature-flag","shop-names"],queryFn:()=>vt(Ct.SHOP_NAMES),staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return s===!0}const Jn=60,es=700,ts=25;function ns(s){if(!s)return[];const o=[];for(let a=1;a<=s.length;a++)o.push({text:s.slice(0,a),delay:Jn});o[o.length-1]={text:s,delay:es};for(let a=s.length-1;a>=1;a--)o.push({text:s.slice(0,a),delay:ts});return o}function ss(s){return s.flatMap(ns)}function is(s,o){const a=u.useMemo(()=>ss(s),[s]),[d,m]=u.useState(0);return u.useEffect(()=>{if(!o||a.length===0)return;const j=setTimeout(()=>m(h=>(h+1)%a.length),a[d%a.length].delay);return()=>clearTimeout(j)},[d,o,a]),!o||a.length===0?"":a[d%a.length].text}const os="https://cdn.decentraland.org/@dcl/shop/1.13.1-35339357506.commit-a201fb1/_assets/name-verified-oGwQ3ntb.svg",rs="#34fee6",as=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
|
+
`,ls=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
|
+
`,Re=i.div`
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: flex-start;
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
gap: 12px;
|
|
28
|
+
`,_e=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
|
+
`,Ie=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
|
+
`,Ne=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
|
+
`,Le=i.hr`
|
|
73
|
+
border: 0;
|
|
74
|
+
border-top: 1px solid ${t.colors.line};
|
|
75
|
+
margin: 16px 0;
|
|
76
|
+
`,ue=i.div`
|
|
77
|
+
display: flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
gap: 16px;
|
|
80
|
+
`,cs=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
|
+
`,ds=i.img`
|
|
94
|
+
display: block;
|
|
95
|
+
width: 47px;
|
|
96
|
+
height: 47px;
|
|
97
|
+
`,hs=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: ${rs};
|
|
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
|
+
`,ps=i.img`
|
|
119
|
+
flex: none;
|
|
120
|
+
display: block;
|
|
121
|
+
width: 14px;
|
|
122
|
+
height: 14px;
|
|
123
|
+
`,Me=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
|
+
`,fe=i.div`
|
|
138
|
+
flex: 1;
|
|
139
|
+
min-width: 0;
|
|
140
|
+
`,me=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
|
+
`,xe=i.div`
|
|
155
|
+
font-family: ${t.font.sans};
|
|
156
|
+
font-size: 14px;
|
|
157
|
+
color: ${t.colors.muted2};
|
|
158
|
+
`,ge=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
|
+
`,us=i.div`
|
|
174
|
+
margin-top: 16px;
|
|
175
|
+
padding: 16px;
|
|
176
|
+
border-radius: 12px;
|
|
177
|
+
background: ${t.colors.promptLilac};
|
|
178
|
+
`,fs=i.div`
|
|
179
|
+
font-family: ${t.font.sans};
|
|
180
|
+
font-weight: 700;
|
|
181
|
+
font-size: 16px;
|
|
182
|
+
color: ${t.colors.text};
|
|
183
|
+
`,ms=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
|
+
`,xs=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
|
+
`,gs=i.span`
|
|
215
|
+
flex: none;
|
|
216
|
+
font-family: ${t.font.sans};
|
|
217
|
+
font-size: 18px;
|
|
218
|
+
color: ${t.colors.muted2};
|
|
219
|
+
`,bs=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
|
+
`,ys=i.span`
|
|
235
|
+
flex: none;
|
|
236
|
+
font-family: ${t.font.sans};
|
|
237
|
+
font-size: 16px;
|
|
238
|
+
color: ${t.colors.muted2};
|
|
239
|
+
`,Ae=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
|
+
`,ws=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
|
+
`,js=i.img`
|
|
278
|
+
width: 61px;
|
|
279
|
+
height: 61px;
|
|
280
|
+
`,vs=i.div`
|
|
281
|
+
display: flex;
|
|
282
|
+
flex-direction: column;
|
|
283
|
+
align-items: center;
|
|
284
|
+
gap: 8px;
|
|
285
|
+
width: 100%;
|
|
286
|
+
`,Cs=i.div`
|
|
287
|
+
font-family: ${t.font.sans};
|
|
288
|
+
font-weight: 700;
|
|
289
|
+
font-size: 20px;
|
|
290
|
+
line-height: 1.6;
|
|
291
|
+
color: ${t.colors.text2};
|
|
292
|
+
text-align: center;
|
|
293
|
+
`,$s=i.p`
|
|
294
|
+
max-width: 400px;
|
|
295
|
+
font-family: ${t.font.sans};
|
|
296
|
+
font-size: 14px;
|
|
297
|
+
line-height: 1.57;
|
|
298
|
+
color: ${t.colors.muted};
|
|
299
|
+
text-align: center;
|
|
300
|
+
`,ks=i.div`
|
|
301
|
+
display: flex;
|
|
302
|
+
align-items: center;
|
|
303
|
+
justify-content: center;
|
|
304
|
+
gap: 8px;
|
|
305
|
+
width: 100%;
|
|
306
|
+
`,Ss=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
|
+
`,Es=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
|
+
`,Ts=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
|
+
`,Rs=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
|
+
`,_s=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
|
+
`,Je=i.div`
|
|
377
|
+
display: flex;
|
|
378
|
+
gap: 16px;
|
|
379
|
+
margin-top: 20px;
|
|
380
|
+
|
|
381
|
+
${t.media.maxWidth("mobile")} {
|
|
382
|
+
flex-direction: column;
|
|
383
|
+
}
|
|
384
|
+
`,et=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
|
+
`,Is=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
|
+
`,ze=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
|
+
`,Ns=i.div`
|
|
462
|
+
display: flex;
|
|
463
|
+
flex-direction: column;
|
|
464
|
+
gap: 24px;
|
|
465
|
+
margin-top: 16px;
|
|
466
|
+
`,Ls=i(ln)`
|
|
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
|
+
`,Ms=i(cn)`
|
|
475
|
+
position: relative;
|
|
476
|
+
`,As=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
|
+
`,zs=i.div`
|
|
500
|
+
display: flex;
|
|
501
|
+
gap: 12px;
|
|
502
|
+
`;function Ws({name:s,priceCredits:o,onClose:a}){const{session:d}=it(),{data:m,isError:j}=$t(d),h=kt(),x=Be(),[c,y]=u.useState("confirm"),[g,$]=u.useState(""),[p,w]=u.useState(""),[b,f]=u.useState(!1),[v,E]=u.useState(null),[I,W]=u.useState(!1),[H,te]=u.useState("preparing"),k=u.useRef(!1),R=g.trim().toLowerCase()===s.toLowerCase(),N=c==="completing"||b,F=o!=null?se(o):"—",Q=o==null,P=m==null?void 0:m.credits,L=o!=null&&P!=null?o-P:0,B=L>0,Y=Q?n("names.priceUnavailable"):null,G=vn().packs.slice(0,Cn),M=G.filter(l=>l.credits>=L),U=M.length>0?M:G,q=U.length===0?null:M.length>0?U.reduce((l,O)=>O.credits<l.credits?O:l):U.reduce((l,O)=>O.credits>l.credits?O:l),C=U.find(l=>l.id===p)??q,D=M.length>0;u.useEffect(()=>{const l=O=>{O.key==="Escape"&&!N&&a()};return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[N,a]);async function S(){if(!(!d||!R||Q||B||k.current)){k.current=!0,y("completing"),E(null),te("preparing");try{const l=await Yn({name:s,identity:d.identity,signer:d.signer,onProgress:te});$e("Shop Completed Purchase",{items:[{item_id:null,contract_address:null,token_id:null,price_usd:Ke(o??0),category:"name",is_smart:!1}],purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:o??null,value_usd:Ke(o??0),transaction_hash:l.originTxHash??null,settlement:l.status}),h.invalidateQueries({queryKey:["usd-balance"]}),h.invalidateQueries({queryKey:["my-assets"]}),y(l.status==="registered"?"success":"pending")}catch(l){$e(It(l)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:_t(l),purchase_type:"name"});const O=l instanceof Fe,ae=l instanceof Pe;E(l instanceof Ue?n("names.errorRouteCost"):O?n("names.errorNotRegistered"):ae?n("names.errorSettlementUnknown"):(l==null?void 0:l.message)||n("names.errorGeneric")),W(O||ae),y("error")}finally{k.current=!1}}}async function T(){if(!(!d||!C||b)){f(!0);try{sessionStorage.removeItem($n),sessionStorage.removeItem(Sn),sessionStorage.setItem(Qe,s)}catch{}try{const l=await kn(C.id,{address:d.address,identity:d.identity});if(l.url){window.location.href=l.url;return}if(!l.orderId)throw new Error("Checkout returned neither a redirect url nor an order id");x(`/credits?order=${encodeURIComponent(l.orderId)}`)}catch(l){Rt(l,{flow:"name_buy_credits"});try{sessionStorage.removeItem(Qe)}catch{}E(n("buyModal.error.creditsCheckout")),W(!1),y("error"),f(!1)}}}const A=c!=="success"&&c!=="pending",z=St(d==null?void 0:d.providerType),oe=z?2:1,ne=z&&(H==="preparing"||H==="awaiting-confirmation"),Se=ne?1:oe,Ee=ne?n("names.confirming"):n("names.completing"),V=H==="registering"?n("names.processingRegistering"):null,X=c==="confirm"&&B,re=c==="error"?n("names.errorTitle"):X?n("names.buyCreditsTitle"):n("names.buyTitle");return e.jsx(as,{onClick:N?void 0:a,role:"presentation",children:e.jsxs(ls,{role:"dialog","aria-modal":"true","aria-label":re,onClick:l=>l.stopPropagation(),children:[A&&e.jsxs(e.Fragment,{children:[e.jsxs(Re,{children:[e.jsx(_e,{children:re}),e.jsx(Ie,{onClick:a,disabled:N,"aria-label":n("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(Ne,{children:[n("names.myCreditsBalance")," ",e.jsx(K,{})," ",Te(m,j)]}),e.jsx(Le,{})]}),X&&e.jsxs(Ns,{children:[e.jsxs(dn,{children:[e.jsx(hn,{}),e.jsxs(pn,{children:[e.jsx("b",{children:n("buyModal.insufficientFunds")})," ",n("buyModal.warningNeedToBuy")," ",e.jsx("b",{children:n("buyModal.warningCreditsAmount",{count:L})})," ",n("names.warningToPurchase"),de()?null:e.jsxs(e.Fragment,{children:[" ",e.jsx(un,{href:Et("/credits"),target:"_blank",rel:"noopener noreferrer",children:n("buyModal.warningLearnMore")})]})]})]}),de()?e.jsxs(ue,{"data-testid":"name-row-iap",children:[e.jsx(Me,{"aria-hidden":!0,children:"@"}),e.jsxs(fe,{children:[e.jsxs(me,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(xe,{children:n("names.subtitle")})]}),e.jsxs(ge,{children:[e.jsx(K,{}),F]})]}):null,de()?null:e.jsxs(e.Fragment,{children:[e.jsx(Ls,{"data-testid":"credit-packs",children:U.map(l=>e.jsxs(Ms,{type:"button","data-testid":"credit-pack","data-on":l.id===(C==null?void 0:C.id)||void 0,"aria-pressed":l.id===(C==null?void 0:C.id),"aria-label":n("getCredits.packAria",{amount:se(l.credits),usd:l.usd}),onClick:()=>w(l.id),children:[D&&l.id===(q==null?void 0:q.id)?e.jsxs(As,{"data-testid":"pack-recommended","aria-hidden":!0,children:[e.jsx(_,{name:"star-rounded"}),n("getCredits.packBadge")]}):null,e.jsx(fn,{src:mn,alt:""}),e.jsx(xn,{children:se(l.credits)}),e.jsxs(gn,{children:["($",l.usd.toFixed(2),")"]})]},l.id))}),e.jsxs(bn,{children:[e.jsxs(yn,{children:[e.jsx(wn,{}),e.jsx("span",{"data-testid":"topup-total-credits",children:se((C==null?void 0:C.credits)??0)})]}),e.jsxs(jn,{children:["$",((C==null?void 0:C.usd)??0).toFixed(2)]})]})]}),e.jsxs(zs,{children:[e.jsx(Ze,{"data-variant":"outline",onClick:a,disabled:N,"data-testid":"name-topup-cancel",children:n("buyModal.cancel")}),de()?null:e.jsx(Ze,{"data-variant":"gradient","data-testid":"name-buy-credits",disabled:!d||!C||b,onClick:()=>void T(),children:n("buyModal.buy")})]})]}),(c==="confirm"||c==="error")&&!X&&e.jsxs(e.Fragment,{children:[e.jsxs(ue,{children:[e.jsx(Me,{"aria-hidden":!0,children:"@"}),e.jsxs(fe,{children:[e.jsxs(me,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(xe,{children:n("names.subtitle")})]}),e.jsxs(ge,{children:[e.jsx(K,{}),F]})]}),c==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(ze,{children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsx("span",{children:v})]}),I?e.jsx(Ae,{onClick:a,children:n("names.errorSpentDismiss")}):e.jsx(Ae,{onClick:()=>y("confirm"),children:n("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(us,{children:[e.jsx(fs,{children:n("names.confirmTitle")}),e.jsx(ms,{dangerouslySetInnerHTML:{__html:n("names.confirmBody",{name:`<b>@${Fs(s)}</b>`})}}),e.jsxs(xs,{children:[e.jsx(gs,{"aria-hidden":!0,children:"@"}),e.jsx(bs,{value:g,onChange:l=>$(l.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":n("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(g.length,8)}ch`}}),e.jsx(ys,{children:".dcl.eth"})]})]}),Y?e.jsxs(ze,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsx("span",{children:Y})]}):null,e.jsx(Ae,{onClick:()=>void S(),disabled:!R||!d||Q||B,children:n("names.buyCta")})]})]}),c==="completing"&&e.jsxs(ws,{children:[e.jsx(js,{src:Tt,alt:"",width:61,height:61}),e.jsxs(vs,{children:[e.jsx(Cs,{children:Ee}),e.jsxs(ks,{children:[e.jsx(Ss,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(Es,{"data-testid":"name-progress-count",children:`${Se}/${oe}`})]}),V?e.jsx($s,{children:V}):null]})]}),c==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs(Re,{children:[e.jsx(_e,{children:n("names.pendingHeaderTitle")}),e.jsx(Ie,{onClick:a,"aria-label":n("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(Ne,{children:[n("names.myCreditsBalance")," ",e.jsx(K,{})," ",Te(m,j)]}),e.jsx(Le,{}),e.jsxs(ze,{"data-tone":"info",children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("b",{children:n("names.pendingBannerBold")})," ",n("names.pendingBannerRest")]})]}),e.jsxs(ue,{style:{marginTop:20},children:[e.jsx(Me,{"aria-hidden":!0,children:"@"}),e.jsxs(fe,{children:[e.jsxs(me,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(xe,{children:n("names.subtitle")})]}),e.jsxs(ge,{children:[e.jsx(K,{}),F]})]}),e.jsx(Je,{children:e.jsx(et,{onClick:()=>{a(),x("/my-items")},children:n("names.myItems")})})]}),c==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(Re,{children:[e.jsx(_e,{children:n("names.successHeaderTitle")}),e.jsx(Ie,{onClick:a,"aria-label":n("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(Ne,{children:[n("names.myCreditsBalance")," ",e.jsx(K,{})," ",Te(m,j)]}),e.jsx(Le,{}),e.jsxs(Ts,{children:[e.jsx(Rs,{"aria-hidden":!0,children:e.jsx(_,{name:"check"})}),e.jsxs(_s,{children:[e.jsx("b",{children:n("names.successBannerBold")})," ",n("names.successBannerRest")]})]}),e.jsxs(ue,{style:{marginTop:20},children:[e.jsxs(cs,{"data-testid":"name-success-tile",children:[e.jsx(ds,{src:En,alt:"","aria-hidden":!0,width:47,height:47}),e.jsxs(hs,{children:[e.jsx("span",{"aria-hidden":!0,children:s}),e.jsx(ps,{src:os,alt:"","aria-hidden":!0,width:14,height:14})]})]}),e.jsxs(fe,{children:[e.jsxs(me,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(xe,{children:n("names.subtitle")})]}),e.jsxs(ge,{children:[e.jsx(K,{}),F]})]}),e.jsxs(Je,{children:[e.jsx(et,{onClick:()=>{a(),x("/my-items")},children:n("names.myItems")}),e.jsx(Is,{href:ee.profileUrl,target:"_blank",rel:"noopener noreferrer",children:n("names.assignToAvatar")})]})]})]})})}function Fs(s){return s.replace(/[&<>"']/g,o=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[o])}const Ps="https://cdn.decentraland.org/@dcl/shop/1.13.1-35339357506.commit-a201fb1/_assets/identity-icon-C8yAW_Gq.svg",Bs="https://cdn.decentraland.org/@dcl/shop/1.13.1-35339357506.commit-a201fb1/_assets/world-icon-6xQ-PmmW.svg",Us="https://cdn.decentraland.org/@dcl/shop/1.13.1-35339357506.commit-a201fb1/_assets/invite-icon-Bz6lCTuB.svg",Os="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",Hs=i.div`
|
|
503
|
+
width: 100%;
|
|
504
|
+
min-width: 0;
|
|
505
|
+
`,Ds=i.nav`
|
|
506
|
+
display: flex;
|
|
507
|
+
align-items: center;
|
|
508
|
+
gap: 6px;
|
|
509
|
+
margin: 4px 0 16px;
|
|
510
|
+
font-family: ${t.font.sans};
|
|
511
|
+
font-size: 12px;
|
|
512
|
+
line-height: 1;
|
|
513
|
+
color: ${t.colors.gray4};
|
|
514
|
+
${Tn};
|
|
515
|
+
`,Gs=i.button`
|
|
516
|
+
border: 0;
|
|
517
|
+
background: none;
|
|
518
|
+
padding: 0;
|
|
519
|
+
cursor: pointer;
|
|
520
|
+
font: inherit;
|
|
521
|
+
color: ${t.colors.gray4};
|
|
522
|
+
|
|
523
|
+
&:hover {
|
|
524
|
+
color: ${t.colors.white};
|
|
525
|
+
text-decoration: underline;
|
|
526
|
+
}
|
|
527
|
+
&:focus-visible {
|
|
528
|
+
outline: 2px solid ${t.colors.white};
|
|
529
|
+
outline-offset: 2px;
|
|
530
|
+
}
|
|
531
|
+
`,qs=i.span`
|
|
532
|
+
font-weight: 700;
|
|
533
|
+
color: ${t.colors.softWhite};
|
|
534
|
+
`,Ks=i.div`
|
|
535
|
+
display: flex;
|
|
536
|
+
flex-direction: column;
|
|
537
|
+
gap: 48px;
|
|
538
|
+
padding-bottom: 48px;
|
|
539
|
+
|
|
540
|
+
${t.media.maxWidth("mobile")} {
|
|
541
|
+
gap: 32px;
|
|
542
|
+
padding-bottom: 32px;
|
|
543
|
+
}
|
|
544
|
+
`,Vs=i.div`
|
|
545
|
+
position: relative;
|
|
546
|
+
border: 1px solid ${t.colors.magenta};
|
|
547
|
+
border-radius: 24px;
|
|
548
|
+
overflow: hidden;
|
|
549
|
+
padding: 88px 48px;
|
|
550
|
+
display: flex;
|
|
551
|
+
flex-direction: column;
|
|
552
|
+
align-items: center;
|
|
553
|
+
gap: 48px;
|
|
554
|
+
text-align: center;
|
|
555
|
+
background: ${t.colors.overlay};
|
|
556
|
+
|
|
557
|
+
${t.media.maxWidth("mobile")} {
|
|
558
|
+
padding: 40px 20px;
|
|
559
|
+
gap: 28px;
|
|
560
|
+
}
|
|
561
|
+
`,Zs=i.div`
|
|
562
|
+
display: flex;
|
|
563
|
+
flex-direction: column;
|
|
564
|
+
align-items: center;
|
|
565
|
+
gap: 12px;
|
|
566
|
+
`,Qs=i.h1`
|
|
567
|
+
margin: 0;
|
|
568
|
+
font-family: ${t.font.sans};
|
|
569
|
+
font-weight: 600;
|
|
570
|
+
font-size: 40px;
|
|
571
|
+
line-height: 1.167;
|
|
572
|
+
color: ${t.colors.white};
|
|
573
|
+
|
|
574
|
+
${t.media.maxWidth("mobile")} {
|
|
575
|
+
font-size: 26px;
|
|
576
|
+
}
|
|
577
|
+
`,Ys=i.p`
|
|
578
|
+
margin: 0;
|
|
579
|
+
max-width: 760px;
|
|
580
|
+
font-family: ${t.font.sans};
|
|
581
|
+
font-weight: 500;
|
|
582
|
+
font-size: 24px;
|
|
583
|
+
line-height: 1.334;
|
|
584
|
+
color: #ecebed;
|
|
585
|
+
|
|
586
|
+
${t.media.maxWidth("mobile")} {
|
|
587
|
+
font-size: 16px;
|
|
588
|
+
}
|
|
589
|
+
`,Xs=i.div`
|
|
590
|
+
width: min(785px, 100%);
|
|
591
|
+
display: flex;
|
|
592
|
+
flex-direction: column;
|
|
593
|
+
gap: 12px;
|
|
594
|
+
`,Js=i.div`
|
|
595
|
+
position: relative;
|
|
596
|
+
`,ei=i("div",Rn("invalid"))`
|
|
597
|
+
display: flex;
|
|
598
|
+
align-items: center;
|
|
599
|
+
gap: 8px;
|
|
600
|
+
padding: 8px 8px 8px 16px;
|
|
601
|
+
background: ${t.colors.softWhite};
|
|
602
|
+
/* Figma 1368:349148 gives the field a 3px Orange edge — it is the page's one input, and the design
|
|
603
|
+
leans on that weight to carry it. Red only when what has been typed cannot be claimed. */
|
|
604
|
+
border: 3px solid ${({invalid:s})=>s?t.colors.dclRed:t.colors.orange};
|
|
605
|
+
border-radius: 20px;
|
|
606
|
+
|
|
607
|
+
&:focus-within {
|
|
608
|
+
border-color: ${({invalid:s})=>s?t.colors.dclRed:t.colors.magenta};
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
${t.media.maxWidth("mobile")} {
|
|
612
|
+
border-radius: 16px;
|
|
613
|
+
}
|
|
614
|
+
`,ti=i.span`
|
|
615
|
+
position: absolute;
|
|
616
|
+
left: -9999px;
|
|
617
|
+
top: 0;
|
|
618
|
+
visibility: hidden;
|
|
619
|
+
pointer-events: none;
|
|
620
|
+
white-space: pre;
|
|
621
|
+
font-family: ${t.font.sans};
|
|
622
|
+
font-size: 20px;
|
|
623
|
+
font-weight: 600;
|
|
624
|
+
line-height: 1.6;
|
|
625
|
+
|
|
626
|
+
/* An empty field paints the PLACEHOLDER, which is lighter than a typed value — so the mirror has to
|
|
627
|
+
be lighter too. Measuring the placeholder at the value's weight made the box a few pixels wider
|
|
628
|
+
than the text in it, and ".dcl.eth" sat that far off the end of the word. */
|
|
629
|
+
&[data-placeholder] {
|
|
630
|
+
font-weight: 400;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
${t.media.maxWidth("mobile")} {
|
|
634
|
+
font-size: 16px;
|
|
635
|
+
}
|
|
636
|
+
`,ni=i.div`
|
|
637
|
+
position: absolute;
|
|
638
|
+
top: calc(100% + 8px);
|
|
639
|
+
left: 0;
|
|
640
|
+
right: 0;
|
|
641
|
+
z-index: 2;
|
|
642
|
+
display: flex;
|
|
643
|
+
align-items: center;
|
|
644
|
+
gap: 8px;
|
|
645
|
+
padding: 8px 12px;
|
|
646
|
+
border-radius: 8px;
|
|
647
|
+
background: #ffcdd4;
|
|
648
|
+
color: #ec303a;
|
|
649
|
+
font-family: ${t.font.sans};
|
|
650
|
+
font-size: 14px;
|
|
651
|
+
font-weight: 500;
|
|
652
|
+
line-height: 1.2;
|
|
653
|
+
text-align: left;
|
|
654
|
+
|
|
655
|
+
${t.media.maxWidth("mobile")} {
|
|
656
|
+
position: static;
|
|
657
|
+
margin-top: 8px;
|
|
658
|
+
align-items: flex-start;
|
|
659
|
+
flex-wrap: wrap;
|
|
660
|
+
}
|
|
661
|
+
`,ct=i.a`
|
|
662
|
+
display: inline-flex;
|
|
663
|
+
align-items: center;
|
|
664
|
+
gap: 2px;
|
|
665
|
+
margin-left: auto;
|
|
666
|
+
font-weight: 600;
|
|
667
|
+
text-decoration: underline;
|
|
668
|
+
text-transform: uppercase;
|
|
669
|
+
white-space: nowrap;
|
|
670
|
+
|
|
671
|
+
${t.media.maxWidth("mobile")} {
|
|
672
|
+
margin-left: 0;
|
|
673
|
+
}
|
|
674
|
+
`,si=i(ct)`
|
|
675
|
+
color: #ec303a;
|
|
676
|
+
`,ii=i.label`
|
|
677
|
+
flex: 1;
|
|
678
|
+
min-width: 0;
|
|
679
|
+
display: flex;
|
|
680
|
+
align-items: center;
|
|
681
|
+
gap: 0;
|
|
682
|
+
cursor: text;
|
|
683
|
+
overflow: hidden;
|
|
684
|
+
`,oi=i.span`
|
|
685
|
+
flex: none;
|
|
686
|
+
margin-right: 8px;
|
|
687
|
+
font-family: ${t.font.sans};
|
|
688
|
+
font-size: 26px;
|
|
689
|
+
font-weight: 500;
|
|
690
|
+
line-height: 1;
|
|
691
|
+
color: ${t.colors.muted2};
|
|
692
|
+
|
|
693
|
+
${t.media.maxWidth("mobile")} {
|
|
694
|
+
font-size: 20px;
|
|
695
|
+
}
|
|
696
|
+
`,ri=i.input`
|
|
697
|
+
flex: 0 1 auto;
|
|
698
|
+
min-width: 0;
|
|
699
|
+
max-width: 100%;
|
|
700
|
+
border: 0;
|
|
701
|
+
outline: none;
|
|
702
|
+
background: transparent;
|
|
703
|
+
font-family: ${t.font.sans};
|
|
704
|
+
font-size: 20px;
|
|
705
|
+
font-weight: 600;
|
|
706
|
+
line-height: 1.6;
|
|
707
|
+
color: ${t.colors.text};
|
|
708
|
+
padding: 0;
|
|
709
|
+
|
|
710
|
+
&::placeholder {
|
|
711
|
+
color: ${t.colors.muted1};
|
|
712
|
+
font-weight: 400;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
${t.media.maxWidth("mobile")} {
|
|
716
|
+
font-size: 16px;
|
|
717
|
+
}
|
|
718
|
+
`,ai=i.span`
|
|
719
|
+
flex: none;
|
|
720
|
+
/* Flush against the name: "yourname.dcl.eth" has to read as one address, and at 20px even a couple of
|
|
721
|
+
pixels here look like a space someone typed by mistake. */
|
|
722
|
+
margin-left: 0;
|
|
723
|
+
/* Not selectable: it is the fixed part of the address, not something the reader typed. */
|
|
724
|
+
user-select: none;
|
|
725
|
+
-webkit-user-select: none;
|
|
726
|
+
font-family: ${t.font.sans};
|
|
727
|
+
font-size: 20px;
|
|
728
|
+
font-weight: 400;
|
|
729
|
+
line-height: 1.6;
|
|
730
|
+
color: ${t.colors.muted1};
|
|
731
|
+
|
|
732
|
+
${t.media.maxWidth("mobile")} {
|
|
733
|
+
font-size: 16px;
|
|
734
|
+
}
|
|
735
|
+
`,li=i.span`
|
|
736
|
+
flex: none;
|
|
737
|
+
font-family: ${t.font.sans};
|
|
738
|
+
font-size: 14px;
|
|
739
|
+
line-height: 1.43;
|
|
740
|
+
color: ${t.colors.muted2};
|
|
741
|
+
white-space: nowrap;
|
|
742
|
+
`,dt=i.button`
|
|
743
|
+
flex: none;
|
|
744
|
+
display: inline-flex;
|
|
745
|
+
align-items: center;
|
|
746
|
+
justify-content: center;
|
|
747
|
+
gap: 8px;
|
|
748
|
+
height: 52px;
|
|
749
|
+
padding: 0 24px;
|
|
750
|
+
border: 0;
|
|
751
|
+
border-radius: 12px;
|
|
752
|
+
cursor: pointer;
|
|
753
|
+
background: ${t.gradients.buyBtn};
|
|
754
|
+
color: ${t.colors.softWhite};
|
|
755
|
+
font-family: ${t.font.sans};
|
|
756
|
+
font-weight: 600;
|
|
757
|
+
font-size: 15px;
|
|
758
|
+
letter-spacing: 0.46px;
|
|
759
|
+
line-height: 24px;
|
|
760
|
+
text-transform: uppercase;
|
|
761
|
+
transition: background-image 0.15s ease;
|
|
762
|
+
|
|
763
|
+
/* Both ends stay on background-IMAGE: a gradient cannot interpolate to a plain colour, so swapping
|
|
764
|
+
the background shorthand instead blanks the button for the length of the transition. */
|
|
765
|
+
&:hover:not(:disabled),
|
|
766
|
+
&:active:not(:disabled) {
|
|
767
|
+
background-image: linear-gradient(${t.colors.dclRed}, ${t.colors.dclRed});
|
|
768
|
+
}
|
|
769
|
+
&:focus-visible {
|
|
770
|
+
outline: 2px solid ${t.colors.white};
|
|
771
|
+
outline-offset: 2px;
|
|
772
|
+
}
|
|
773
|
+
&:disabled {
|
|
774
|
+
cursor: not-allowed;
|
|
775
|
+
opacity: 0.5;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
${t.media.maxWidth("mobile")} {
|
|
779
|
+
display: none;
|
|
780
|
+
}
|
|
781
|
+
`,ci=i(dt)`
|
|
782
|
+
display: none;
|
|
783
|
+
|
|
784
|
+
${t.media.maxWidth("mobile")} {
|
|
785
|
+
display: inline-flex;
|
|
786
|
+
width: 100%;
|
|
787
|
+
height: 48px;
|
|
788
|
+
border-radius: 12px;
|
|
789
|
+
}
|
|
790
|
+
`,di=i.span`
|
|
791
|
+
display: inline-flex;
|
|
792
|
+
align-items: center;
|
|
793
|
+
gap: 4px;
|
|
794
|
+
font-size: 18px;
|
|
795
|
+
font-weight: 600;
|
|
796
|
+
|
|
797
|
+
.ico {
|
|
798
|
+
width: 13.26px;
|
|
799
|
+
height: 14px;
|
|
800
|
+
}
|
|
801
|
+
`,hi=i.div`
|
|
802
|
+
display: flex;
|
|
803
|
+
align-items: center;
|
|
804
|
+
gap: 8px;
|
|
805
|
+
padding: 8px 14px;
|
|
806
|
+
border-radius: 8px;
|
|
807
|
+
font-family: ${t.font.sans};
|
|
808
|
+
font-size: 13px;
|
|
809
|
+
font-weight: 500;
|
|
810
|
+
text-align: left;
|
|
811
|
+
|
|
812
|
+
background: ${({tone:s})=>s==="error"?"rgba(255, 45, 85, 0.12)":s==="ok"?"rgba(30, 166, 114, 0.14)":"rgba(255,255,255,0.14)"};
|
|
813
|
+
color: ${({tone:s})=>s==="error"?t.colors.dclRed:s==="ok"?"#0f7a4f":"#ecebed"};
|
|
814
|
+
|
|
815
|
+
.ico {
|
|
816
|
+
width: 16px;
|
|
817
|
+
height: 16px;
|
|
818
|
+
flex: none;
|
|
819
|
+
}
|
|
820
|
+
`,be=i(hi)`
|
|
821
|
+
position: absolute;
|
|
822
|
+
top: calc(100% + 8px);
|
|
823
|
+
left: 0;
|
|
824
|
+
right: 0;
|
|
825
|
+
z-index: 2;
|
|
826
|
+
|
|
827
|
+
/* Static on mobile, as TakenBanner is: the claim button sits below InputWrap there, so anything
|
|
828
|
+
floating out of the input lands on top of it. */
|
|
829
|
+
${t.media.maxWidth("mobile")} {
|
|
830
|
+
position: static;
|
|
831
|
+
margin-top: 8px;
|
|
832
|
+
}
|
|
833
|
+
`,pi=i(ct)`
|
|
834
|
+
color: inherit;
|
|
835
|
+
`,ui=i.section`
|
|
836
|
+
display: flex;
|
|
837
|
+
flex-direction: column;
|
|
838
|
+
gap: 48px;
|
|
839
|
+
padding: 0 48px;
|
|
840
|
+
|
|
841
|
+
${t.media.maxWidth("mobile")} {
|
|
842
|
+
gap: 32px;
|
|
843
|
+
padding: 0 20px;
|
|
844
|
+
}
|
|
845
|
+
`,fi=i.div`
|
|
846
|
+
display: flex;
|
|
847
|
+
flex-direction: column;
|
|
848
|
+
align-items: center;
|
|
849
|
+
gap: 24px;
|
|
850
|
+
`,mi=i.h2`
|
|
851
|
+
margin: 0;
|
|
852
|
+
text-align: center;
|
|
853
|
+
font-family: ${t.font.sans};
|
|
854
|
+
font-weight: 600;
|
|
855
|
+
font-size: 32px;
|
|
856
|
+
line-height: 1.167;
|
|
857
|
+
color: ${t.colors.white};
|
|
858
|
+
|
|
859
|
+
${t.media.maxWidth("mobile")} {
|
|
860
|
+
font-size: 22px;
|
|
861
|
+
}
|
|
862
|
+
`,xi=i.p`
|
|
863
|
+
margin: 0;
|
|
864
|
+
max-width: 907px;
|
|
865
|
+
text-align: center;
|
|
866
|
+
font-family: ${t.font.sans};
|
|
867
|
+
font-weight: 400;
|
|
868
|
+
font-size: 20px;
|
|
869
|
+
line-height: 1.57;
|
|
870
|
+
color: ${t.colors.gray4};
|
|
871
|
+
|
|
872
|
+
${t.media.maxWidth("mobile")} {
|
|
873
|
+
font-size: 16px;
|
|
874
|
+
}
|
|
875
|
+
`,gi=i.div`
|
|
876
|
+
display: grid;
|
|
877
|
+
grid-template-columns: repeat(4, 1fr);
|
|
878
|
+
gap: 24px;
|
|
879
|
+
align-items: stretch;
|
|
880
|
+
|
|
881
|
+
${t.media.maxWidth("lg")} {
|
|
882
|
+
grid-template-columns: repeat(2, 1fr);
|
|
883
|
+
}
|
|
884
|
+
${t.media.maxWidth("mobile")} {
|
|
885
|
+
grid-template-columns: 1fr;
|
|
886
|
+
}
|
|
887
|
+
`,ye=i.article`
|
|
888
|
+
min-width: 0;
|
|
889
|
+
display: flex;
|
|
890
|
+
flex-direction: column;
|
|
891
|
+
gap: 32px;
|
|
892
|
+
padding: 24px;
|
|
893
|
+
background: ${t.colors.overlay};
|
|
894
|
+
border-radius: 24px;
|
|
895
|
+
|
|
896
|
+
@media (forced-colors: active) {
|
|
897
|
+
outline: 1px solid CanvasText;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
${t.media.maxWidth("mobile")} {
|
|
901
|
+
gap: 20px;
|
|
902
|
+
padding: 20px;
|
|
903
|
+
}
|
|
904
|
+
`,we=i.img`
|
|
905
|
+
display: block;
|
|
906
|
+
align-self: flex-start;
|
|
907
|
+
height: 55px;
|
|
908
|
+
width: auto;
|
|
909
|
+
`,je=i.div`
|
|
910
|
+
flex: 1;
|
|
911
|
+
display: flex;
|
|
912
|
+
flex-direction: column;
|
|
913
|
+
gap: 12px;
|
|
914
|
+
`,ve=i.h3`
|
|
915
|
+
margin: 0;
|
|
916
|
+
font-family: ${t.font.sans};
|
|
917
|
+
font-weight: 700;
|
|
918
|
+
font-size: 20px;
|
|
919
|
+
line-height: 1.57;
|
|
920
|
+
text-transform: uppercase;
|
|
921
|
+
color: ${t.colors.white};
|
|
922
|
+
`,Ce=i.p`
|
|
923
|
+
margin: 0;
|
|
924
|
+
font-family: ${t.font.sans};
|
|
925
|
+
font-weight: 400;
|
|
926
|
+
font-size: 14px;
|
|
927
|
+
line-height: 1.57;
|
|
928
|
+
color: ${t.colors.media};
|
|
929
|
+
`,bi=i.span`
|
|
930
|
+
font-weight: 700;
|
|
931
|
+
color: ${t.colors.white};
|
|
932
|
+
`,tt=i.a`
|
|
933
|
+
display: inline-flex;
|
|
934
|
+
align-items: center;
|
|
935
|
+
gap: 2px;
|
|
936
|
+
margin-top: auto;
|
|
937
|
+
font-family: ${t.font.sans};
|
|
938
|
+
font-weight: 500;
|
|
939
|
+
font-size: 14px;
|
|
940
|
+
line-height: 30px;
|
|
941
|
+
color: ${t.colors.softWhite};
|
|
942
|
+
text-decoration: underline;
|
|
943
|
+
|
|
944
|
+
&:focus-visible {
|
|
945
|
+
outline: 2px solid ${t.colors.softWhite};
|
|
946
|
+
outline-offset: 2px;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
.ico {
|
|
950
|
+
width: 13px;
|
|
951
|
+
height: 13px;
|
|
952
|
+
}
|
|
953
|
+
`,yi=i.span`
|
|
954
|
+
position: absolute;
|
|
955
|
+
width: 1px;
|
|
956
|
+
height: 1px;
|
|
957
|
+
padding: 0;
|
|
958
|
+
margin: -1px;
|
|
959
|
+
overflow: hidden;
|
|
960
|
+
clip: rect(0, 0, 0, 0);
|
|
961
|
+
white-space: nowrap;
|
|
962
|
+
border: 0;
|
|
963
|
+
`,wi="https://docs.decentraland.org/creator/worlds/about/",ji="https://governance.decentraland.org";function nt(s){const o=typeof window<"u"?window.location.hostname:"";return`${o.endsWith("decentraland.org")?"https://decentraland.org":o.endsWith("decentraland.today")?"https://decentraland.today":"https://decentraland.zone"}/marketplace/names/browse?search=${encodeURIComponent(s)}`}function vi({onBack:s}){ot({title:n("seo.names.title"),description:n("seo.names.description")});const{session:o,signIn:a}=it(),d=Be(),m=ut(),{pathname:j,search:h}=m,x=m.state,c=typeof(x==null?void 0:x.resumeName)=="string"?x:void 0,y=Xn(),{data:g}=rt(),$=g?at(ie,g):null,[p,w]=u.useState((c==null?void 0:c.resumeName)??""),[b,f]=u.useState("idle"),[v,E]=u.useState(!1),[I,W]=u.useState((c==null?void 0:c.resumeName)??""),[H,te]=u.useState(!!(c!=null&&c.resumeName)),[k,R]=u.useState(()=>{var S;return typeof window<"u"&&!!((S=window.matchMedia)!=null&&S.call(window,"(prefers-reduced-motion: reduce)").matches)});u.useEffect(()=>{var A;const S=(A=window.matchMedia)==null?void 0:A.call(window,"(prefers-reduced-motion: reduce)");if(!S)return;const T=z=>R(z.matches);return S.addEventListener("change",T),()=>S.removeEventListener("change",T)},[]);const N=n("names.placeholderExamples"),F=u.useMemo(()=>N.split(",").map(S=>S.trim()).filter(Boolean),[N]),P=is(F,!H&&!p&&!k)||n("names.inputPlaceholder"),L=u.useRef(null),[B,Y]=u.useState(void 0);u.useLayoutEffect(()=>{L.current&&Y(L.current.getBoundingClientRect().width)},[p,P]),u.useEffect(()=>{if(!Ye(p).ok){f(p.length===0?"idle":"invalid");return}f("checking");const T=new AbortController,A=setTimeout(()=>{(async()=>{try{const z=await Gn(p,{signal:T.signal});f(z)}catch(z){if((z==null?void 0:z.name)==="AbortError")return;f("error")}})()},400);return()=>{clearTimeout(A),T.abort()}},[p]);const G=Ye(p),M=G.ok&&(b==="available"||b==="error"),U=y&&M,q=!y&&M;function C(){if(U){if(!o){a();return}E(!0)}}u.useEffect(()=>{c!=null&&c.resumeName&&d(`${j}${h}`,{replace:!0,state:null})},[c==null?void 0:c.resumeName,d,j,h]),u.useEffect(()=>{if(I){if(p.toLowerCase()!==I.toLowerCase()){W("");return}if(!(b==="idle"||b==="checking")){if(!M){W("");return}!y||!o||(W(""),E(!0))}}},[I,p,b,M,y,o]);const D=e.jsxs(e.Fragment,{children:[n("names.claim"),$!=null?e.jsxs(di,{children:[e.jsx(K,{}),se($)]}):null]});return e.jsxs(Hs,{"data-testid":"names-page",children:[e.jsxs(Ds,{"aria-label":n("names.breadcrumbAria"),children:[e.jsx(Gs,{onClick:s,children:n("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(qs,{children:n("names.breadcrumbCurrent")})]}),e.jsxs(Ks,{children:[e.jsxs(Vs,{children:[e.jsxs(Zs,{children:[e.jsx(Qs,{children:n("names.heroTitle")}),e.jsx(Ys,{children:n("names.heroSubtitle")})]}),e.jsxs(Xs,{children:[e.jsxs(Js,{"data-testid":"names-input-wrap",children:[e.jsxs(ei,{invalid:b==="taken",children:[e.jsxs(ii,{children:[e.jsx(oi,{"aria-hidden":!0,children:"@"}),e.jsx(ri,{value:p,onChange:S=>w(On(S.target.value)),placeholder:P,"aria-label":n("names.inputAria"),autoComplete:"off",spellCheck:!1,maxLength:ke,onFocus:()=>te(!0),style:{width:B!=null?`${B}px`:void 0}}),e.jsx(ti,{ref:L,"aria-hidden":!0,"data-placeholder":!p||void 0,children:p||P}),e.jsx(ai,{children:n("names.suffix")})]}),p.length>0?e.jsxs(li,{"aria-hidden":!0,children:[p.length,"/",ke]}):null,e.jsx(dt,{onClick:C,disabled:!U,"data-testid":"names-claim",children:D})]}),b==="taken"?e.jsxs(ni,{role:"status","data-testid":"names-taken",children:[e.jsx(_,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:n("names.taken")}),e.jsxs(si,{href:nt(p),target:"_blank",rel:"noopener noreferrer",children:[n("names.takenMakeOffer"),e.jsx(_,{name:"external-link",size:13,"aria-hidden":!0})]})]}):null,b==="checking"?e.jsx(be,{tone:"muted",role:"status","data-testid":"names-checking",children:n("names.checking")}):q?e.jsxs(be,{tone:"muted",role:"status","data-testid":"names-disabled",children:[e.jsx(_,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:n("names.registrationDisabled")}),e.jsxs(pi,{href:nt(p),target:"_blank",rel:"noopener noreferrer",children:[n("names.registrationDisabledLink"),e.jsx(_,{name:"external-link",size:13,"aria-hidden":!0})]})]}):b==="error"?e.jsx(be,{tone:"muted",role:"status",children:n("names.checkError")}):b==="invalid"&&!G.ok&&G.reason==="too-short"?e.jsx(be,{tone:"muted",role:"status",children:n("names.tooShort",{min:lt})}):null]}),e.jsx(ci,{onClick:C,disabled:!U,children:D}),e.jsx(yi,{role:"status","aria-live":"polite",children:b==="available"?n("names.available",{name:p}):""})]})]}),e.jsxs(ui,{children:[e.jsxs(fi,{children:[e.jsx(mi,{children:n("names.whyTitle")}),e.jsx(xi,{children:n("names.whyIntro")})]}),e.jsxs(gi,{children:[e.jsxs(ye,{children:[e.jsx(we,{src:Ps,alt:""}),e.jsxs(je,{children:[e.jsx(ve,{children:n("names.why1Title")}),e.jsx(Ce,{children:n("names.why1")})]})]}),e.jsxs(ye,{children:[e.jsx(we,{src:Bs,alt:""}),e.jsxs(je,{children:[e.jsx(ve,{children:n("names.why2Title")}),e.jsxs(Ce,{children:[n("names.why2")," ",e.jsx(bi,{children:n("names.why2Address")})]}),e.jsxs(tt,{href:wi,target:"_blank",rel:"noopener noreferrer",children:[n("names.learnMore"),e.jsx(_,{name:"external-link","aria-hidden":!0})]})]})]}),e.jsxs(ye,{children:[e.jsx(we,{src:Us,alt:""}),e.jsxs(je,{children:[e.jsx(ve,{children:n("names.why3Title")}),e.jsx(Ce,{children:n("names.why3")})]})]}),e.jsxs(ye,{children:[e.jsx(we,{src:Os,alt:""}),e.jsxs(je,{children:[e.jsx(ve,{children:n("names.why4Title")}),e.jsx(Ce,{children:n("names.why4")}),e.jsxs(tt,{href:ji,target:"_blank",rel:"noopener noreferrer",children:[n("names.learnMore"),e.jsx(_,{name:"external-link","aria-hidden":!0})]})]})]})]})]})]}),v?e.jsx(Ws,{name:p,priceCredits:$,onClose:()=>E(!1)}):null]})}const Ci=i.p`
|
|
964
|
+
display: flex;
|
|
965
|
+
align-items: center;
|
|
966
|
+
gap: 10px;
|
|
967
|
+
background: ${t.colors.rarityBg};
|
|
968
|
+
color: ${t.colors.accent};
|
|
969
|
+
border-radius: 12px;
|
|
970
|
+
padding: 12px 16px;
|
|
971
|
+
margin-bottom: 14px;
|
|
972
|
+
font-weight: 600;
|
|
973
|
+
font-size: 14px;
|
|
974
|
+
|
|
975
|
+
&[data-variant='warn'] {
|
|
976
|
+
background: rgba(211, 51, 51, 0.1);
|
|
977
|
+
color: ${t.colors.err};
|
|
978
|
+
}
|
|
979
|
+
`,st=48,$i=["all","on_sale","not_for_sale"],ki=s=>s?"all":"on_sale";function Ji({contracts:s,hideNames:o=!1,seo:a,lockStatus:d}={}){const[m]=ft(),j=Be(),h=(m.get("q")??"").trim().toLowerCase(),x=(m.get("q")??"").trim();ot(a??{title:x?n("seo.collectibles.searchTitle",{query:x}):n("seo.collectibles.title"),description:n("seo.collectibles.description")});const c=ki(!!h),y=Nt(),g=y&&m.get("deals")==="true",$=u.useMemo(()=>({category:"all",status:c,subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,deals:!1,sort:g?"discount":"newest"}),[c,g]),[p,w]=Ft($),{subCategory:b,rarities:f,priceMin:v,priceMax:E,smart:I,sort:W}=p,H=y&&p.deals,k=Bt.map(r=>r.key).filter(r=>!(o&&r==="names")).includes(p.category)?p.category:"all",R=d??($i.includes(p.status)?p.status:c);Ut(`${k}:${b??""}`);const[N,F]=u.useState(!1);u.useEffect(()=>{if(!N)return;const r=ce=>{ce.key==="Escape"&&F(!1)};document.addEventListener("keydown",r);const Z=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",r),document.body.style.overflow=Z}},[N]);const Q=s!==void 0&&s.length===0,P=R==="on_sale",L=v&&!Number.isNaN(Number(v))?Number(v):void 0,B=E&&!Number.isNaN(Number(E))?Number(E):void 0,Y=Lt(),G=b?Zt[b]:void 0,M=H?Ot:Ht,U=(M.find(r=>r.key===W)??M[0]).server,q={category:k,rarities:f.length?f:void 0,wearableCategories:G,minPriceCredits:L,maxPriceCredits:B,search:h||void 0,sortBy:U,isSmart:I||void 0,onSale:!0,discounted:H||void 0,listingType:Y?void 0:"primary",contractAddresses:s!=null&&s.length?s:void 0},C={category:k,rarities:f.length?f:void 0,wearableCategories:G,search:h||void 0,sortBy:U,isWearableSmart:I||void 0,isOnSale:R==="not_for_sale"?!1:void 0,contractAddresses:s!=null&&s.length?s:void 0},{items:D,total:S,isLoading:T,isPlaceholderData:A,error:z,hasNextPage:oe,isFetchingNextPage:ne,isFetchNextPageError:Se,fetchNextPage:Ee}=Vt(P?["shop-items",q]:["catalog-items",C],r=>P?zt({...q,first:st,skip:r}):Wt({...C,first:st,skip:r}),{enabled:k!=="names"&&!Q}),V=S,{data:X,isError:re,isPending:l}=rt(),O=r=>X&&r.manaWei?at(r.manaWei,X):null,ae=P&&l&&D.some(r=>r.source==="legacy"),Oe=T||A||ae,ht=T?15:Math.max(D.length,1),He=u.useRef(null);u.useEffect(()=>{T||A||!h||He.current===h||(He.current=h,$e("Shop Searched",{query:h,result_count:V}))},[h,T,A,V]);const le=u.useRef("__init__");u.useEffect(()=>{if(T||A)return;const r=JSON.stringify({category:k,subCategory:b,rarities:f,min:L,max:B,sort:W,status:R,smart:I});if(le.current==="__init__"||le.current===r){le.current=r;return}le.current=r,$e("Shop Applied Filter",{filters:{category:k,sub_category:b,rarities:f,min_price_credits:L??null,max_price_credits:B??null,status:R,smart:I,sort:W},result_count:V})},[k,b,f,L,B,W,R,I,T,A,V]);function De(r){w({category:r,subCategory:null})}function Ge(r){w({status:r})}function qe(r){w({rarities:f.includes(r)?f.filter(Z=>Z!==r):[...f,r]})}function pt(){w($)}const J=[];(L!=null||B!=null)&&J.push({key:"price",label:n("filter.price"),onRemove:()=>{w({priceMin:"",priceMax:""})}});for(const r of Dt)f.includes(r)&&J.push({key:`rarity-${r}`,label:Mt(r),onRemove:()=>qe(r)});return I&&J.push({key:"smart",label:n("filter.smart"),onRemove:()=>w({smart:!1})}),H&&J.push({key:"deals",label:n("filter.deals"),onRemove:()=>w({deals:!1,sort:"newest"})}),R!==c&&J.push({key:"status",label:R==="all"?n("filter.statusAll"):R==="on_sale"?n("filter.onSale"):n("filter.notForSale"),onRemove:()=>Ge(c)}),e.jsxs(In,{"data-testid":"browse",children:[k!=="names"&&e.jsxs(e.Fragment,{children:[N?e.jsx(Nn,{onClick:()=>F(!1),"aria-hidden":!0}):null,e.jsxs(Ln,{"data-open":N||void 0,"data-testid":"browse-sidebar",children:[e.jsxs(Mn,{children:[e.jsx(An,{children:n("assets.filters")}),e.jsx(zn,{onClick:()=>F(!1),"aria-label":n("assets.closeFilters"),children:"✕"})]}),e.jsx(Wn,{children:e.jsx(Gt,{category:k,subCategory:b,onCategory:De,onSub:r=>w({subCategory:r}),priceMin:v,priceMax:E,onPriceMin:r=>w({priceMin:r}),onPriceMax:r=>w({priceMax:r}),rarities:f,onToggleRarity:qe,status:R,onStatus:Ge,hideNames:o,smart:I,onSmart:r=>w({smart:r}),deals:H,onDeals:y?r=>w(r?{deals:!0,sort:"discount"}:{deals:!1,sort:"newest"}):void 0})}),e.jsx(Fn,{children:e.jsx(Pn,{type:"button",onClick:()=>F(!1),children:n("assets.showItems")})})]})]}),e.jsx(Bn,{children:k==="names"?e.jsx(vi,{onBack:()=>De("all")}):e.jsxs(e.Fragment,{children:[e.jsx(qt,{sort:W,sortOptions:M,onSort:r=>w({sort:r}),total:S,loading:T||A,query:h,onOpenFilters:()=>F(!0),chips:J,onClearChips:pt}),re&&P&&D.some(r=>r.source==="legacy")?e.jsx(Ci,{"data-variant":"warn",children:n("assets.marketUnavailable")}):null,z?e.jsx(Qt,{message:n("assets.loadError"),testId:"browse-error"}):null,!Oe&&D.length===0&&!z?e.jsx(At,{testId:"browse-empty",icon:Pt,title:n("assets.empty.title"),body:x?e.jsxs(e.Fragment,{children:[n("assets.empty.searchBefore"),e.jsx("b",{children:x}),n("assets.empty.searchAfter")]}):n("assets.empty.filters"),cta:{label:n("assets.empty.cta"),onClick:()=>j("/overview")}}):e.jsxs(e.Fragment,{children:[e.jsx(_n,{"data-testid":"grid",children:Oe?e.jsx(Ve,{count:ht}):e.jsxs(e.Fragment,{children:[D.map(r=>{if(!P)return e.jsx(he,{item:r,mode:"view"},pe(r));const Z=r;if(Z.source!=="legacy")return e.jsx(he,{item:r},pe(r));const ce=O(Z);return ce==null?e.jsx(he,{item:r,mode:"view"},pe(r)):e.jsx(he,{item:{...Z,priceCredits:ce}},pe(r))}),ne?e.jsx(Ve,{count:6}):null]})}),e.jsx(Kt,{hasNextPage:oe,isFetching:ne,isError:Se,onLoadMore:()=>void Ee()})]})]})})]})}export{Ji as Assets};
|
|
980
|
+
//# sourceMappingURL=Assets-tHTTA31T.js.map
|