@dcl/shop 1.13.1-35225172293.commit-25915c3 → 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-BZMB4hg5.js +400 -0
- package/_assets/{AnimatedBackground-DAkIAx6x.js → AnimatedBackground-CXVxNT-G.js} +6 -6
- package/_assets/Assets-tHTTA31T.js +980 -0
- package/_assets/{Cart-DywJ-U2P.js → Cart-BTFM7sgI.js} +37 -37
- package/_assets/{Collection-CJcLl_NS.js → Collection-D7LTf_OS.js} +6 -6
- package/_assets/CollectionCarousel-DsJ7L4rs.js +322 -0
- package/_assets/Confetti-cdj3K_E3.js +18 -0
- package/_assets/{ConstantsUtil-QDaTDgFu.js → ConstantsUtil-BRm3N2MJ.js} +2 -2
- package/_assets/{ContentClient-rykQJr4A.js → ContentClient-BuGONJzu.js} +2 -2
- package/_assets/{Creator-n86fV0HI.js → Creator-DTGBDA7q.js} +49 -49
- package/_assets/DeploymentBuilder-t6QMfSJh.js +4 -0
- package/_assets/{EmotePlaybackBar-B-F9Qz4e.js → EmotePlaybackBar-DxozN5dA.js} +19 -19
- package/_assets/{ErrorNotice-C59YzvXZ.js → ErrorNotice-Dlh8ddHO.js} +2 -2
- package/_assets/Event-B3nuIkGW.js +72 -0
- package/_assets/{ExchangeController-B34DBS-M.js → ExchangeController-CSSF68uc.js} +2 -2
- package/_assets/{Faq-DMLRIgIF.js → Faq-DQCrsGCA.js} +2 -2
- package/_assets/{Filters-ui-Axqrl.js → Filters-BsZs-9_M.js} +19 -19
- package/_assets/{GetCredits-DNUVbeIk.js → GetCredits-DLjX5S-_.js} +70 -70
- package/_assets/{Grow-CslarRIZ.js → Grow-CBOQ3rs-.js} +2 -2
- package/_assets/HelpersUtil-ItKIMa0k.js +63 -0
- package/_assets/{ItemDetail-D9elUmtB.js → ItemDetail-Bfbuu0cW.js} +35 -35
- package/_assets/LoadMore-BxuVAL5h.js +8 -0
- package/_assets/{ManaPricingBanner.styles-BG8UdFgp.js → ManaPricingBanner.styles-dfVXcaNP.js} +3 -3
- package/_assets/{MyAssets-C8h8C-X3.js → MyAssets-BbWDjYod.js} +8 -8
- package/_assets/{MyFavorites-_Lftn5f7.js → MyFavorites-DY192etV.js} +9 -9
- package/_assets/{MyStore-Bey5H8qV.js → MyStore-qM8HV1zc.js} +9 -9
- package/_assets/{NetworkUtil-RdwtrTea.js → NetworkUtil-B4oEt17N.js} +2 -2
- package/_assets/NotFound-CgcYb0ih.js +18 -0
- package/_assets/NotificationsBell-txLDBZgz.js +142 -0
- package/_assets/{OutfitDetail-DiMHEr5Q.js → OutfitDetail-EWQSU1q3.js} +5 -5
- package/_assets/{OutfitPreview-iMMDUjah.js → OutfitPreview-Cj1w-8ou.js} +3 -3
- package/_assets/{OutfitStudio-DWZ7ZmtK.js → OutfitStudio-CymFpAjx.js} +16 -16
- package/_assets/{PhArrowCircleDown-DxArxYac.js → PhArrowCircleDown-BgP2jbf5.js} +4 -4
- package/_assets/{PhArrowClockwise-C8ljy1Rj.js → PhArrowClockwise-CuNU0iSl.js} +4 -4
- package/_assets/{PhArrowDown-DsAplWwh.js → PhArrowDown-BrLks3Uz.js} +4 -4
- package/_assets/{PhArrowLeft-EPz-xHmZ.js → PhArrowLeft-BbZGSN_s.js} +3 -3
- package/_assets/{PhArrowRight-CVoNjAPb.js → PhArrowRight-DqLi6_uj.js} +4 -4
- package/_assets/{PhArrowSquareOut-DxPnhLyS.js → PhArrowSquareOut-CX0ZRgNC.js} +5 -5
- package/_assets/{PhArrowUp-CthNwEN1.js → PhArrowUp-D9ugstgK.js} +5 -5
- package/_assets/{PhArrowUpRight-yy2UirS7.js → PhArrowUpRight-Bpfn12eW.js} +3 -3
- package/_assets/{PhArrowsClockwise-B-gjYmTc.js → PhArrowsClockwise-CRZyQVpN.js} +4 -4
- package/_assets/{PhArrowsDownUp-DPexCLiH.js → PhArrowsDownUp-CV1NqVLb.js} +4 -4
- package/_assets/{PhArrowsLeftRight-D93RFlb_.js → PhArrowsLeftRight-DvGI6Nto.js} +5 -5
- package/_assets/{PhBank-BNhsgOpa.js → PhBank-BRxdKSKq.js} +5 -5
- package/_assets/{PhBrowser-OVbcxsqN.js → PhBrowser-C_wNKcTe.js} +4 -4
- package/_assets/PhCaretDown-DBNFm85V.js +15 -0
- package/_assets/PhCaretLeft-Cad__LUx.js +15 -0
- package/_assets/PhCaretRight-CuRYBcM2.js +15 -0
- package/_assets/PhCaretUp-DE2FiuTS.js +15 -0
- package/_assets/{PhCheck-bPp1bknl.js → PhCheck-y4MOxgof.js} +5 -5
- package/_assets/{PhCircleHalf-BCRFPlBh.js → PhCircleHalf-xlPKmtS7.js} +4 -4
- package/_assets/{PhClock-Ay7dG8fF.js → PhClock-BBNMhMKw.js} +5 -5
- package/_assets/{PhCompass-D6jeCOuB.js → PhCompass-DpAl_LfZ.js} +4 -4
- package/_assets/{PhCopy-Cd6cFQKK.js → PhCopy-D4HwCqa2.js} +5 -5
- package/_assets/{PhCreditCard-D0cyAH4H.js → PhCreditCard-CD12JEEL.js} +5 -5
- package/_assets/{PhCurrencyDollar-DNCs7Hoi.js → PhCurrencyDollar-DPFX6nyR.js} +2 -2
- package/_assets/{PhDesktop-C7wK3N0C.js → PhDesktop-CNhh70Hf.js} +3 -3
- package/_assets/{PhDeviceMobile-nwo6W6cN.js → PhDeviceMobile-DQgHhtB0.js} +3 -3
- package/_assets/{PhDotsThree-5DGmKrer.js → PhDotsThree-B1gOaArE.js} +3 -3
- package/_assets/{PhEnvelope-DkcDbzLk.js → PhEnvelope-CGnM9AiA.js} +4 -4
- package/_assets/{PhFunnelSimple-D1hBKn3q.js → PhFunnelSimple-D8YZwX53.js} +4 -4
- package/_assets/{PhGlobe-7ico55TC.js → PhGlobe-CXtg_GcB.js} +3 -3
- package/_assets/{PhIdentificationCard-PCjj06ca.js → PhIdentificationCard-oMtubY4C.js} +2 -2
- package/_assets/{PhImage-WMMVogNo.js → PhImage-DKp6-EHn.js} +2 -2
- package/_assets/{PhInfo-DxjcEgny.js → PhInfo-CPd-HNhu.js} +5 -5
- package/_assets/{PhLightbulb-Cv6gGmyY.js → PhLightbulb-C47afrxR.js} +5 -5
- package/_assets/{PhMagnifyingGlass-CzkcQTYD.js → PhMagnifyingGlass-DBaqb5ff.js} +2 -2
- package/_assets/{PhPaperPlaneRight-DnxOP1pJ.js → PhPaperPlaneRight-FQGhQUrW.js} +3 -3
- package/_assets/{PhPlus-D2WgBmbh.js → PhPlus-B_CxFvZS.js} +4 -4
- package/_assets/{PhPower-BKrhO8OD.js → PhPower-DRTSLLeY.js} +4 -4
- package/_assets/{PhPuzzlePiece-vk5GuUyi.js → PhPuzzlePiece-zlHiPdqx.js} +4 -4
- package/_assets/{PhQrCode-YjDtep0a.js → PhQrCode-riEgpq80.js} +2 -2
- package/_assets/{PhQuestion-De671WWd.js → PhQuestion-DHYK7o0G.js} +3 -3
- package/_assets/{PhQuestionMark-BfmQ4AZR.js → PhQuestionMark-ZgOsaVvK.js} +4 -4
- package/_assets/{PhSealCheck-DUSoEL5_.js → PhSealCheck-B5VE_9Jt.js} +4 -4
- package/_assets/{PhSignOut-BAV0bqRy.js → PhSignOut-DKQOfDHS.js} +4 -4
- package/_assets/{PhSpinner-JXZ0tKR8.js → PhSpinner-B3k7aAJt.js} +4 -4
- package/_assets/{PhTrash-B-_1u-EW.js → PhTrash-CD2fhMLB.js} +3 -3
- package/_assets/{PhUser-B7H8Kqoo.js → PhUser-BeKUoVY6.js} +2 -2
- package/_assets/{PhVault-D49Kz876.js → PhVault-DC9QjU0-.js} +5 -5
- package/_assets/{PhWallet-DFLSB_Zp.js → PhWallet-djswo-CG.js} +4 -4
- package/_assets/{PhWarning-oAag590N.js → PhWarning-B4g8NvcF.js} +2 -2
- package/_assets/{PhWarningCircle-CcZqaDS-.js → PhWarningCircle-xLZ7sbu0.js} +3 -3
- package/_assets/{PhX-ChlrdI3g.js → PhX-BVzMqBjL.js} +2 -2
- package/_assets/SaleCountdown-3pApusNf.js +99 -0
- package/_assets/{Spinner-DxPTix-z.js → Spinner-BhJFlkpV.js} +2 -2
- package/_assets/{StoreSettings-CcPWS-Ma.js → StoreSettings-CuaXmFqQ.js} +6 -6
- package/_assets/{Success-C_yiA7A5.js → Success-oMsLbOWh.js} +10 -10
- package/_assets/{SwapController-CkS0mffI.js → SwapController-DrYUKQJ9.js} +2 -2
- package/_assets/{Tooltip-D09N6_a1.js → Tooltip-BIdqgK8V.js} +2 -2
- package/_assets/{TradeService-C9N7W-7P.js → TradeService-JsADFsSl.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-gRZFp8AF.js → W3MFrameProviderSingleton-DvSh92CX.js} +4 -4
- package/_assets/{WebCryptoP256-DxQA6Icw.js → WebCryptoP256-DgMWbKGz.js} +2 -2
- package/_assets/{add-CTHe98e6.js → add-C46RTTNX.js} +3 -3
- package/_assets/{all-wallets-DhuabZhK.js → all-wallets-byTNDEq1.js} +2 -2
- package/_assets/{app-store-B6taH2bQ.js → app-store-CaKIhI-8.js} +2 -2
- package/_assets/{apple-Dg5wuMVl.js → apple-DAMB_3Lk.js} +3 -3
- package/_assets/{arrow-bottom-DGKCuT-u.js → arrow-bottom-Cx66u8_t.js} +3 -3
- package/_assets/{arrow-bottom-circle-DizCI34l.js → arrow-bottom-circle-Bv2eZVEF.js} +3 -3
- package/_assets/{arrow-left-B5Shucf2.js → arrow-left-D0I0JXz4.js} +3 -3
- package/_assets/arrow-right-BHc70exa.js +9 -0
- package/_assets/{arrow-top-9YDPz3-j.js → arrow-top-uM_hNW8Z.js} +3 -3
- package/_assets/{async-directive-BCdPKC92.js → async-directive-CeCQAQEH.js} +4 -4
- package/_assets/{bank-BsLbzuJN.js → bank-CQUOEuRq.js} +2 -2
- package/_assets/{basic-8qT1ixsR.js → basic-GpwOtGyM.js} +2 -2
- package/_assets/{biconomy-BgEih0rG.js → biconomy-NuhcX0Yi.js} +2 -2
- package/_assets/{browseLayout.styles-pvAICm0D.js → browseLayout.styles-D0MZbKfc.js} +2 -2
- package/_assets/{browser-BGA0SS8o.js → browser-Bh67F6hL.js} +3 -3
- package/_assets/{browser-JREaT17W.js → browser-CztLWw1I.js} +2 -2
- package/_assets/{browser-DYUQg7kp.js → browser-D0dzO3fx.js} +2 -2
- package/_assets/{browser-ponyfill-CtY0HAVq.js → browser-ponyfill-BdWvH_If.js} +2 -2
- package/_assets/buy-ZzigQNxZ.js +2 -0
- package/_assets/{buy-gasless-D9wW1gq1.js → buy-gasless-5QIoW0es.js} +2 -2
- package/_assets/{card-DrayzgIc.js → card-DcQ1wkCr.js} +2 -2
- package/_assets/cart-checkout-D_rUzOn4.js +2 -0
- package/_assets/{categories-rNs1-QVq.js → categories-BCcLvB19.js} +2 -2
- package/_assets/{ccip-_B6OMMwG.js → ccip-0C-WJ2f3.js} +2 -2
- package/_assets/{ccip-BJ6xjfZv.js → ccip-CcFd-pp_.js} +2 -2
- package/_assets/{chains-CzWJwcQq.js → chains-BoWQ7jDs.js} +2 -2
- package/_assets/{checkmark-CuwMFqmQ.js → checkmark-GDL9YfL4.js} +2 -2
- package/_assets/{checkmark-bold-BZ8hvIfL.js → checkmark-bold-B-Sg0XJy.js} +3 -3
- package/_assets/{chevron-bottom-BICEUkQ-.js → chevron-bottom-CLuKI9LQ.js} +2 -2
- package/_assets/{chevron-left-Dj_IHYPd.js → chevron-left-B_RU4s1F.js} +3 -3
- package/_assets/{chevron-right-DfmPfPeR.js → chevron-right-C6ckznAo.js} +2 -2
- package/_assets/{chevron-top-ChQ_XprN.js → chevron-top-CJOmtrv2.js} +3 -3
- package/_assets/{chrome-store-yR8DW2WG.js → chrome-store-s39Q_LJM.js} +3 -3
- package/_assets/{class-map-BdERzGec.js → class-map-BxMzgOIb.js} +6 -6
- package/_assets/{clock-DSdZt3kx.js → clock-DmJj-grN.js} +2 -2
- package/_assets/close-D4d1U5NV.js +9 -0
- package/_assets/{coinPlaceholder-DZE_o-zF.js → coinPlaceholder-VDdmV3rm.js} +3 -3
- package/_assets/collectionPage.styles-rZa1BWWK.js +41 -0
- package/_assets/common-aEQBU1aZ.js +2 -0
- package/_assets/{compass-D4tC5ehy.js → compass-O2jaVbub.js} +2 -2
- package/_assets/{controller-C9-v8tyX.js → controller-BHSkmDDd.js} +3 -3
- package/_assets/{copy-DYrxzMu3.js → copy-D2eE3KCY.js} +2 -2
- package/_assets/{core-Yfo9aNXH.js → core-Dnx08t4s.js} +5 -5
- package/_assets/{createSvgIcon-C3kMJVlr.js → createSvgIcon-C3DiORbY.js} +4 -4
- package/_assets/crumbs.styles-D969n73j.js +10 -0
- package/_assets/{cursor-CGNqBNs2.js → cursor-DSrN7SuI.js} +2 -2
- package/_assets/{cursor-transparent-Db9408Lh.js → cursor-transparent-DxuBEx9O.js} +3 -3
- package/_assets/{custom-CUiRIOz_.js → custom-CyjlH7Cr.js} +2 -2
- package/_assets/{data-capture-K_NAswZS.js → data-capture-BUt-tqa3.js} +5 -5
- package/_assets/{dcl-schemas-f-Kwmh24.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-8ERr7FQB.js → desktop-DwZtv9fm.js} +3 -3
- package/_assets/detectExtension-CdbTZOKn.js +2 -0
- package/_assets/{disconnect-BaCM-42U.js → disconnect-BbwiqFJ2.js} +3 -3
- package/_assets/{discord-DIiirh17.js → discord-qWAUKbRO.js} +2 -2
- package/_assets/{disposePreview-B05_BnMi.js → disposePreview-D5v9GkJF.js} +2 -2
- package/_assets/{email-CAknsz-I.js → email-BGoeypvI.js} +7 -7
- package/_assets/{embedded-wallet-CMEVox74.js → embedded-wallet-Cg2BVqx1.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-D3fDCxgY.js → emotion-styled.browser.esm-Bc8640ZT.js} +2 -2
- package/_assets/{engine-E-mmdBXn.js → engine-BQ4XBK5G.js} +2 -2
- package/_assets/errors-DUBMk1_u.js +2 -0
- 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-QQ5HxdlK.js → ethers-CQbljc2C.js} +2 -2
- package/_assets/{etherscan-Bfm2dZO9.js → etherscan-TUQ32gbU.js} +2 -2
- package/_assets/{events-DxSgzFZk.js → events-Ey8xQ1_i.js} +2 -2
- package/_assets/{exclamation-triangle-rcl1W2-L.js → exclamation-triangle-ETkxexlo.js} +3 -3
- package/_assets/{execute-BnGJDKrt.js → execute-CcyXPSES.js} +3 -3
- package/_assets/{extension-CfQ82K2-.js → extension-DoOVmXmT.js} +3 -3
- package/_assets/{external-link-V3py9Mkm.js → external-link-BEPN-Y2j.js} +3 -3
- package/_assets/extractIPFS-CZpI5_La.js +2 -0
- package/_assets/{facebook-DrblV0Ry.js → facebook-BmPLPVaB.js} +3 -3
- package/_assets/{farcaster-BYLQu4i6.js → farcaster-BLIAglQl.js} +3 -3
- package/_assets/{features-ChJno5-R.js → features-CW3BJut9.js} +2 -2
- package/_assets/fetchTokenMetadata-zQ7k58lq.js +3 -0
- package/_assets/{field.styles-ofcJTynr.js → field.styles-CNumGj8X.js} +2 -2
- package/_assets/{filters-C4hZu2nU.js → filters-DWaFeZ95.js} +3 -3
- package/_assets/{fortmatic-D8VKfBkC.js → fortmatic-D7_cu5X7.js} +2 -2
- package/_assets/{get-bytecode-Bg8rEYVa.js → get-bytecode-ChEcvuHJ.js} +2 -2
- package/_assets/get-ecosystem-wallet-info-BXFPDksD.js +2 -0
- package/_assets/{getBalance-hTHuthoO.js → getBalance-CdWdKWho.js} +3 -3
- package/_assets/getInstalledModules-Dy7ryxbR.js +2 -0
- package/_assets/{getNFT-uPInQjpf.js → getNFT-CVhWquj2.js} +3 -3
- package/_assets/getNFT-DEIlQj0F.js +2 -0
- package/_assets/{github-etC7Hd9s.js → github-BiA5cQMJ.js} +3 -3
- package/_assets/{google-CZBxFGk_.js → google-CsF9xgle.js} +2 -2
- package/_assets/{grid.styles-Baa4eis9.js → grid.styles-DGwAy7au.js} +2 -2
- package/_assets/{hashTypedData-DA-37fbc.js → hashTypedData-CS0nSVCm.js} +2 -2
- package/_assets/{hashTypedData-CMm-jTgx.js → hashTypedData-G7W_A13L.js} +2 -2
- package/_assets/{help-circle-BUZl81PK.js → help-circle-Bwgxn3Vn.js} +3 -3
- package/_assets/{id-C1QikfkN.js → id-O5raZ1NS.js} +2 -2
- package/_assets/{image-KyF9J1CW.js → image-CbhOQpP5.js} +2 -2
- package/_assets/import-C1FMKChQ.js +2 -0
- package/_assets/{in-app-C-nY1x0g.js → in-app-C03QvI9E.js} +2 -2
- package/_assets/{in-app-wallet-calls-BnWxOmqr.js → in-app-wallet-calls-BSt_kW07.js} +2 -2
- package/_assets/{index-C6b8QTjl.js → index-201_pXjD.js} +4 -4
- package/_assets/{index-Bgozodi0.js → index-4lxXm67R.js} +2 -2
- package/_assets/index-4y3ole-I.js +31 -0
- package/_assets/{index-Ot-sXE8W.js → index-B0G5-1U4.js} +2 -2
- package/_assets/{index-DyIrO5Lu.js → index-B4vPl9JJ.js} +4 -4
- package/_assets/{index-CWZbu3Zl.js → index-B9BLMD9v.js} +7 -7
- package/_assets/{index-CdIbZpxZ.js → index-BDhEGVn5.js} +5 -5
- package/_assets/{index-BuPpBFeR.js → index-BGlAHo1V.js} +2 -2
- package/_assets/{index-apbK0STs.js → index-BHRJojA7.js} +2 -2
- package/_assets/{index-CO-COJ2X.js → index-BWhGWxu6.js} +4 -4
- package/_assets/{index-DeAAM4-1.js → index-BYpz1U-Z.js} +2 -2
- package/_assets/{index-CkWQJkCU.js → index-B_Ukoyjo.js} +4 -4
- package/_assets/{index-BlzUq8rr.js → index-Bc5rdQrs.js} +2 -2
- package/_assets/{index-BQT03-OC.js → index-BiR1vPRL.js} +449 -449
- package/_assets/{index-CeqE4eqv.js → index-BjTaCUde.js} +6 -6
- package/_assets/index-Bvf3c8I8.js +2 -0
- package/_assets/{index-C-m7qLKA.js → index-Bx-HA0Fa.js} +4 -4
- package/_assets/{index-CZmBjRUE.js → index-C0q8Kut4.js} +15 -15
- package/_assets/{index-DuWGyd6U.css → index-C53nEuU1.css} +1 -1
- package/_assets/{index-B9pH_6Si.js → index-C8RRvl4w.js} +5 -5
- package/_assets/{index-CS_3MdD_.js → index-CAdxESjh.js} +3 -3
- package/_assets/{index-B4Xg1dZG.js → index-CITTAZNc.js} +2 -2
- package/_assets/{index-BZKatAuj.js → index-CMsQl6_s.js} +2 -2
- package/_assets/{index-CaznqQR9.js → index-CRdAPM4e.js} +3 -3
- package/_assets/{index-BFP8-jP3.js → index-CSAbgA1H.js} +2 -2
- package/_assets/{index-C7zPem7g.js → index-CVjhybQY.js} +4 -4
- package/_assets/{index-DNJ0CGQD.js → index-CZ765edO.js} +5 -5
- package/_assets/{index-DfLp_eyp.js → index-C_MZ3G2Z.js} +2 -2
- package/_assets/{index-C1UO5yah.js → index-CbJaCRxI.js} +2 -2
- package/_assets/{index-D6p4gJX2.js → index-Cbvqh2tB.js} +2 -2
- package/_assets/{index-R5bPamIo.js → index-CeBVhm3u.js} +2 -2
- package/_assets/index-Cq3PcGZS.js +2 -0
- package/_assets/{index-BUzhO8NO.js → index-CseNtOsJ.js} +3 -3
- package/_assets/{index-xBU8zVdN.js → index-Csid9_UU.js} +2 -2
- package/_assets/{index-DByEURm7.js → index-CtUq3VAh.js} +2 -2
- package/_assets/{index-00w-fqT3.js → index-Cy_pguIe.js} +2 -2
- package/_assets/{index-_CwckKK1.js → index-CzzqMKs2.js} +2 -2
- package/_assets/{index-Dj3X2ReU.js → index-D-bvLCMJ.js} +4 -4
- package/_assets/{index-CZFZoLmR.js → index-D080sfYK.js} +5 -5
- package/_assets/{index-CV3uw-Zw.js → index-D7n0Nbcc.js} +4 -4
- package/_assets/{index-BMMLE3lm.js → index-DBpSYzZ1.js} +2 -2
- package/_assets/{index-jH8Z5JnA.js → index-DCOfqwFn.js} +5 -5
- package/_assets/{index-DCju8nvn.js → index-DHAeKuI8.js} +2 -2
- package/_assets/{index-BT-I5haL.js → index-DNpS4XJW.js} +3 -3
- package/_assets/{index-D1mmmlpU.js → index-DUvDgJtL.js} +3 -3
- package/_assets/{index-axPViouQ.js → index-DW4iGfw5.js} +2 -2
- package/_assets/index-DYEzTJ00.js +28 -0
- package/_assets/{index-CG62ezm8.js → index-DbnwTj_J.js} +3 -3
- package/_assets/{index-BkMULqP4.js → index-DiRK7oEZ.js} +2 -2
- package/_assets/{index-iekFjIOC.js → index-DmEpmcAI.js} +6 -6
- package/_assets/{index-BjH5ZGRV.js → index-Dr8MILBs.js} +8 -8
- package/_assets/{index-D6tlKgne.js → index-DtQZWv2W.js} +2 -2
- package/_assets/{index-CtHpfBoV.js → index-DvGoWYRw.js} +2 -2
- package/_assets/{index-DOGeBjp6.js → index-DzXb9yfS.js} +2 -2
- package/_assets/{index-B8n9s11Y.js → index-P_yp2lGD.js} +2 -2
- package/_assets/{index-Daqrna4U.js → index-QkD5v2W0.js} +2 -2
- package/_assets/{index-TBCN8Slm.js → index-SRawa_W1.js} +2 -2
- package/_assets/{index-D0GgiR11.js → index-TuFs6Mw_.js} +3 -3
- package/_assets/{index-BdamhESB.js → index-VVP1Lz5F.js} +4 -4
- package/_assets/{index-BuVu67lQ.js → index-WhAOvWl7.js} +9 -9
- package/_assets/{index-Fsk2Hbva.js → index-ZSCJO9rV.js} +7 -7
- package/_assets/{index-C3RjhI_p.js → index-d0JdYucS.js} +2 -2
- package/_assets/{index-C1wzgEVq.js → index-gx6q3jYb.js} +2 -2
- package/_assets/{index-BevBiuLl.js → index-jG0dKzqZ.js} +2 -2
- package/_assets/{index-Bcrohrl-.js → index-mp9sO-P_.js} +5 -5
- package/_assets/{index-DQu7SA7d.js → index-ovxDr1NO.js} +2 -2
- package/_assets/{index-B5JS9Clv.js → index-rWvX-JNU.js} +2 -2
- package/_assets/{index-DjpGk0_x.js → index-sc9WaH7T.js} +2 -2
- package/_assets/{index.es-Di76vizL.js → index.es-B3Zhssg2.js} +2 -2
- package/_assets/{index.es-CTgZPWm-.js → index.es-CuJy51Rq.js} +5 -5
- package/_assets/{index.es-Dq41ZPxs.js → index.es-DF1aG5Z7.js} +2 -2
- package/_assets/{index.es-n8D3Sd0b.js → index.es-DmJ25C-K.js} +2 -2
- package/_assets/{info-DaeURCNf.js → info-B91xCNqh.js} +2 -2
- package/_assets/info-circle-DtEY-DDD.js +13 -0
- package/_assets/{items-empty-DKxZ65y_.js → items-empty-BAKFq7PT.js} +2 -2
- package/_assets/jsxRuntime.module-BUzu5v1_.js +2 -0
- package/_assets/{jump-16x52o_a.js → jump-BolxKTOM.js} +2 -2
- package/_assets/{lightbulb-SUie1snx.js → lightbulb-ByedgZqO.js} +3 -3
- package/_assets/linkAccount-D4jgrDpa.js +2 -0
- package/_assets/{localBatchGatewayRequest-BMe2q_5E.js → localBatchGatewayRequest-BMvn0i_b.js} +2 -2
- package/_assets/{mail-BMQ_Tcbe.js → mail-B2wBPliw.js} +3 -3
- package/_assets/{mobile-DWNrp5xU.js → mobile-COGIkuHo.js} +2 -2
- package/_assets/modal.styles-G1Y436F0.js +531 -0
- package/_assets/{modal.styles-n9Y4CaNq.js → modal.styles-wZfJxa-e.js} +2 -2
- package/_assets/{more-BJafKVQX.js → more-zcriamqw.js} +3 -3
- package/_assets/{native-ehoRf_75.js → native-BS9-NZgY.js} +2 -2
- package/_assets/{network-placeholder-BNTWT8_K.js → network-placeholder-Cm-6akxX.js} +2 -2
- package/_assets/{networks-DicXj4Bi.js → networks-BuXAUv57.js} +2 -2
- package/_assets/{nftPlaceholder-BvQ5YwOQ.js → nftPlaceholder-vZdYCYRL.js} +2 -2
- package/_assets/{off-DwIf2gSg.js → off-CLF8R11w.js} +3 -3
- package/_assets/{onramp-DGxIQZko.js → onramp-B2gdYmCO.js} +2 -2
- package/_assets/openzeppelin-B_FytaNI.js +2 -0
- package/_assets/{ownerOf-UnPFHclt.js → ownerOf-D6JpENJA.js} +2 -2
- package/_assets/parseNft-DiM6gxbM.js +3 -0
- package/_assets/{parseSignature-B9QDOsIp.js → parseSignature-BJVq2ShY.js} +4 -4
- package/_assets/{parseSignature-BuEMAnZl.js → parseSignature-VwEmUV8h.js} +2 -2
- package/_assets/{passkeys-D60yIHE9.js → passkeys-DEiWC5Z7.js} +2 -2
- package/_assets/{pay-with-exchange-tm5S6FFX.js → pay-with-exchange-C7Nm7Ic2.js} +2 -2
- package/_assets/{play-store-CA36CBrS.js → play-store-CAbJYmXD.js} +2 -2
- package/_assets/{plus-Cns28nqN.js → plus-DWQF9t2p.js} +3 -3
- package/_assets/{prepare-contract-call-C9bwXTUv.js → prepare-contract-call-r6GCr7Mb.js} +2 -2
- package/_assets/{qr-code-Q_tmm4VY.js → qr-code-Br4VphwV.js} +3 -3
- package/_assets/{qr-overlay-DNIPp0ap.js → qr-overlay-mbqSXRsy.js} +6 -6
- package/_assets/{react-Dombkhv6.js → react-DKpLHQl0.js} +2 -2
- package/_assets/{receive-D8koI1qS.js → receive-KMWzb1kT.js} +2 -2
- package/_assets/{recycle-horizontal-DjogUTaH.js → recycle-horizontal-DdAImjTL.js} +3 -3
- package/_assets/{ref-PrJHD-ud.js → ref-D90CCjlU.js} +3 -3
- package/_assets/{refresh-BoBh2MVk.js → refresh-S-H2nzPq.js} +3 -3
- package/_assets/{reown-logo-CT7u8xi3.js → reown-logo-D5L2QY4i.js} +3 -3
- package/_assets/{resolveImplementation-8uufRanE.js → resolveImplementation-NjDCaPa0.js} +2 -2
- package/_assets/{resume-buy-BQkiNyYh.js → resume-buy-DRxVLtZn.js} +2 -2
- package/_assets/resume-name-m2sdJCvP.js +2 -0
- package/_assets/{rpc-TAsoHmMK.js → rpc-C6ONv-35.js} +4 -4
- package/_assets/{sales-empty-D0iWvumY.js → sales-empty-BJGisiNF.js} +2 -2
- package/_assets/{search-empty-CYHPyiwy.js → search-empty-DcGDTM8L.js} +2 -2
- package/_assets/{search-971TVQY2.js → search-f6j421fJ.js} +3 -3
- package/_assets/{secp256k1-Bgo4IyeY.js → secp256k1-BhLjMGke.js} +2 -2
- package/_assets/{secp256k1-COemtrZ_.js → secp256k1-Dogd-wfD.js} +2 -2
- package/_assets/{secp256k1-CsX1CoV5.js → secp256k1-ZRJNrIuk.js} +2 -2
- package/_assets/{send-J6eNNrry.js → send-B4t6gmpc.js} +12 -12
- package/_assets/{send-BJky82OD.js → send-BAUrBF6z.js} +3 -3
- package/_assets/send-batch-transaction-BULbschT.js +2 -0
- package/_assets/{send-eip712-transaction-DJP6tJ5E.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-BiqdXKVl.js +2 -0
- package/_assets/{sendRawTransaction-sBW21l6i.js → sendRawTransaction-DHZVBFUc.js} +4 -4
- package/_assets/{sentry-DgsMrt01.js → sentry-WFsNKO98.js} +3 -3
- package/_assets/{serializeTransaction-G0I8bf1U.js → serializeTransaction-C1OICSTJ.js} +2 -2
- package/_assets/{session-proposal-fppNtPts.js → session-proposal-C_rldw8k.js} +2 -2
- package/_assets/session-request-DRsdGyCL.js +3 -0
- package/_assets/{sha256-Cm0WQDsB.js → sha256-YJL3wOOs.js} +2 -2
- package/_assets/{sha3-DPbQQPsg.js → sha3-DxT-REZ2.js} +2 -2
- package/_assets/signin-empty-DXl1Qpby.js +2 -0
- package/_assets/{signing-BtEOk8Sb.js → signing-B9DcFwzm.js} +4 -4
- package/_assets/{skeleton.styles-CdhhJKly.js → skeleton.styles-C4BBCe2d.js} +2 -2
- package/_assets/{socials-CFMlKmWD.js → socials-Zki4qksa.js} +2 -2
- package/_assets/{styled-DIuUwEGM.js → styled-uWbR3175.js} +3 -3
- package/_assets/{swapHorizontal-BROJkMe6.js → swapHorizontal-BXjIGAcZ.js} +2 -2
- package/_assets/{swapHorizontalBold-DGj8RzHp.js → swapHorizontalBold-BzueHopN.js} +3 -3
- package/_assets/{swapHorizontalMedium-CTW2pJ0O.js → swapHorizontalMedium-DLFo4hRx.js} +2 -2
- package/_assets/{swapHorizontalRoundedBold-BAWFLi4l.js → swapHorizontalRoundedBold-BddBy7OL.js} +2 -2
- package/_assets/{swapVertical-D0KCL9o6.js → swapVertical-DYkySTmy.js} +3 -3
- package/_assets/{swaps-1v9wGZS3.js → swaps-DiPvT9W6.js} +2 -2
- package/_assets/{telegram-BrWZtQW9.js → telegram-D8ymSABf.js} +3 -3
- package/_assets/{thirdweb-IWXuiChr.js → thirdweb-wDwbIJ1W.js} +4 -4
- package/_assets/{three-dots-BqbdzVIX.js → three-dots-CiS9iH0H.js} +2 -2
- package/_assets/{to-serializable-transaction-C5libsTc.js → to-serializable-transaction-6f6pRX-q.js} +3 -3
- package/_assets/totalSupply-rJ9WcMzs.js +2 -0
- package/_assets/trade-encoding-DcX77zVS.js +2 -0
- package/_assets/{transaction-xj7V9Qtr.js → transaction-DxXkarJJ.js} +2 -2
- package/_assets/transactionReceipt-CxzioWsu.js +2 -0
- package/_assets/transactions-BGQTb4VV.js +17 -0
- package/_assets/{twitch-CjF65t51.js → twitch-BJQCmiGz.js} +2 -2
- package/_assets/{twitterIcon-BaOdDtc8.js → twitterIcon-B78o99Zv.js} +2 -2
- package/_assets/{useCreatorSales-C3CJHUNh.js → useCreatorSales-D4BzYp33.js} +19 -19
- package/_assets/{useInfiniteGrid-sopvcWVc.js → useInfiniteGrid-BUDyyZZl.js} +2 -2
- package/_assets/{useStore-D4IZ0aSp.js → useStore-tid_idJp.js} +3 -3
- package/_assets/useTheme-CRxh5DOu.js +2 -0
- package/_assets/{utils-C_H40_2X.js → utils-Cj21wfvp.js} +2 -2
- package/_assets/{verify-CzEN-nsy.js → verify-CrYE2kna.js} +3 -3
- package/_assets/{verify-filled-TDYOeDJL.js → verify-filled-CwwnY5h6.js} +2 -2
- package/_assets/{verifyHash-YINPIkpF.js → verifyHash-mzlxS6TY.js} +2 -2
- package/_assets/{w3m-modal-BXr8SOpG.js → w3m-modal-BArYWi0C.js} +2 -2
- package/_assets/{w3m-modal-DsNXjGjb.js → w3m-modal-BXpuWB5y.js} +2 -2
- package/_assets/{wait-for-tx-receipt-C8fAiv-C.js → wait-for-tx-receipt-DRwGvrwD.js} +2 -2
- package/_assets/{wallet-CUlGPHz3.js → wallet-EosqBoq7.js} +2 -2
- package/_assets/{wallet-placeholder-CkipoQX-.js → wallet-placeholder-DL8kIY2O.js} +3 -3
- package/_assets/{walletconnect-CJlDhwv0.js → walletconnect-CauX9cVK.js} +4 -4
- package/_assets/{wallets-LOprNqot.js → wallets-HjCMtUn8.js} +6 -6
- package/_assets/warning-circle-BrcBx24p.js +13 -0
- package/_assets/{web-connector-DUWewhFv.js → web-connector-15d-OnTN.js} +4 -4
- package/_assets/{writeContract-BsMB90wa.js → writeContract-BJQQGUKO.js} +2 -2
- package/_assets/x-CwtQDczS.js +13 -0
- package/_assets/{zora-sepolia-BYhoHBlo.js → zora-sepolia-BFYuSeeX.js} +2 -2
- package/_assets/{zoraTestnet-CO3bQ8ny.js → zoraTestnet-DdfVMUdb.js} +2 -2
- package/index.html +11 -11
- package/package.json +2 -2
- package/sitemap.xml +1 -1
- package/_assets/Activity-BCobIEqr.js +0 -400
- package/_assets/Assets-DTDpj6EF.js +0 -939
- package/_assets/Authorizations-Dyvzc298.js +0 -192
- package/_assets/CollectionCarousel-CClg5SGV.js +0 -851
- package/_assets/Confetti-B2guP7xN.js +0 -18
- package/_assets/DeploymentBuilder-BRc8X1GH.js +0 -4
- package/_assets/Event-DTI3sNqP.js +0 -72
- package/_assets/HelpersUtil-BXZPT-5p.js +0 -63
- package/_assets/LoadMore-5VaFL5J8.js +0 -8
- package/_assets/NotFound-CFpr8Znc.js +0 -18
- package/_assets/NotificationsBell-Bfgul_iB.js +0 -142
- package/_assets/PhCaretDown-niSUmOpX.js +0 -15
- package/_assets/PhCaretLeft-5pVZjDE4.js +0 -15
- package/_assets/PhCaretRight-xH-dut9T.js +0 -15
- package/_assets/PhCaretUp-BuqimB7k.js +0 -15
- package/_assets/SaleCountdown-LU-Yu5_R.js +0 -99
- package/_assets/arrow-right-CS0VOWZq.js +0 -9
- package/_assets/authorizations-Ob__E7YP.js +0 -2
- package/_assets/builder-Bkdo9MyY.js +0 -2
- package/_assets/buy-4DFO6Bjc.js +0 -2
- package/_assets/close-Du9ogfts.js +0 -9
- package/_assets/collectionPage.styles-T8QJ2uHO.js +0 -41
- package/_assets/common-B1cK8U3y.js +0 -2
- package/_assets/crumbs.styles-CGLucAba.js +0 -10
- package/_assets/decimals-DtF4b0wO.js +0 -2
- package/_assets/decimals-hxhJgmkh.js +0 -2
- package/_assets/detectExtension-BWZRKjyw.js +0 -2
- package/_assets/errors-JIkdqYdS.js +0 -2
- package/_assets/estimate-l1-fee-CTbp2FZb.js +0 -2
- package/_assets/eth_estimateGas-D_H7Au3g.js +0 -2
- package/_assets/eth_getStorageAt-CX4sH_ZX.js +0 -2
- package/_assets/eth_getTransactionCount-ycq8a8zK.js +0 -2
- package/_assets/ethereum-BhyqMTt5.js +0 -2
- package/_assets/extractIPFS-CiIcd-zt.js +0 -2
- package/_assets/fetchTokenMetadata-Dp3XcLsm.js +0 -3
- package/_assets/get-ecosystem-wallet-info-ydSiKNvA.js +0 -2
- package/_assets/getInstalledModules-DXv7DPgP.js +0 -2
- package/_assets/getNFT-CyqvSlNG.js +0 -2
- package/_assets/import-2e9MfFqq.js +0 -2
- package/_assets/index-B3kXX9iR.js +0 -28
- package/_assets/index-BRmZB5PP.js +0 -31
- package/_assets/index-Bac7Ln9X.js +0 -2
- package/_assets/index-En01i4P6.js +0 -2
- package/_assets/info-circle-mEb0pRoV.js +0 -13
- package/_assets/jsxRuntime.module-6wpz9UoU.js +0 -2
- package/_assets/linkAccount-Bp15G5p5.js +0 -2
- package/_assets/openzeppelin-DARH7c8-.js +0 -2
- package/_assets/parseNft-ClNOIjNy.js +0 -3
- package/_assets/send-batch-transaction-DPd2oV50.js +0 -2
- package/_assets/send-gasless-transaction-1n223Tf8.js +0 -3
- package/_assets/send-transaction-UfIIZtyM.js +0 -3
- package/_assets/sendMetaTransaction-DQ-jkGgK.js +0 -2
- package/_assets/session-request-D4Ni-baa.js +0 -3
- package/_assets/signin-empty-CY9eL7IB.js +0 -2
- package/_assets/totalSupply-CGCsNiFp.js +0 -2
- package/_assets/trade-encoding-CHp-srqw.js +0 -2
- package/_assets/transactionReceipt-JGqFHl-t.js +0 -2
- package/_assets/transactions-BCD1_Ajq.js +0 -17
- package/_assets/useCreditPacks-BVuY_cvh.js +0 -2
- package/_assets/useTheme-BEQPRnmX.js +0 -2
- package/_assets/warning-circle-B2n9VXBj.js +0 -13
- package/_assets/x-BK627-zl.js +0 -13
|
@@ -1,939 +0,0 @@
|
|
|
1
|
-
import{r as u,b as Ve,j as e,u as dt}from"./react-Dombkhv6.js";import{c as Z,r as ht,b as pt,bI as ut,bE as ft,aM as mt,e as xt,x as gt,cX as bt,cY as yt,s as o,a as t,y as Ze,bo as wt,F as vt,N as $e,t as s,D as jt,I as _,E as D,cZ as he,bm as Ct,W as ce,by as We,bH as $t,bG as kt,A as Qe,a2 as Ke,m as Xe,bV as St,z as Et,aD as Rt,a4 as Tt,a6 as Be,a7 as te,aR as _t,bR as It}from"./index-BQT03-OC.js";import{u as Lt,s as Nt}from"./search-empty-CYHPyiwy.js";import{C as At,u as zt,n as Mt,S as Wt,R as Bt,F as Ft,a as Pt}from"./Filters-ui-Axqrl.js";import{L as Ot}from"./LoadMore-5VaFL5J8.js";import{u as Ut}from"./useInfiniteGrid-sopvcWVc.js";import{S as Ht}from"./categories-rNs1-QVq.js";import{E as Dt}from"./ErrorNotice-C59YzvXZ.js";import{d as Gt}from"./dcl-schemas-f-Kwmh24.js";import{s as qt,G as Vt,w as Zt,S as Qt}from"./buy-gasless-D9wW1gq1.js";import{s as Kt}from"./buy-4DFO6Bjc.js";import{o as Xt}from"./trade-encoding-CHp-srqw.js";import{f as Jt}from"./errors-JIkdqYdS.js";import{J as Yt,C as en,B as ke}from"./ethers-QQ5HxdlK.js";import{n as tn}from"./name-glyph-aUugT8vq.js";import{c as nn}from"./crumbs.styles-CGLucAba.js";import{n as sn}from"./Tooltip-D09N6_a1.js";import{G as on}from"./grid.styles-Baa4eis9.js";import{R as an,S as rn,a as ln,D as cn,b as dn,C as hn,c as pn,d as un,e as fn,M as mn}from"./browseLayout.styles-pvAICm0D.js";import"./sentry-DgsMrt01.js";import"./intl-AKLEHPeO.js";import"./skeleton.styles-CdhhJKly.js";import"./authorizations-Ob__E7YP.js";import"./sendMetaTransaction-DQ-jkGgK.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new n.Error().stack;i&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[i]="b7dda43d-8f7c-4e2c-aaec-709315ad5d05",n._sentryDebugIdIdentifier="sentry-dbid-b7dda43d-8f7c-4e2c-aaec-709315ad5d05")}catch{}})();function ne(n){const i=n.source??"item",r=n.tradeId||`${n.contractAddress}-${n.tokenId??n.itemId??""}`;return`${i}:${r}`}const K="100000000000000000000",Je=2,de=15,xn=/^[a-zA-Z0-9]+$/;function Fe(n){const i=n.trim();return i.length===0?{ok:!1,reason:"empty"}:xn.test(i)?i.length<Je?{ok:!1,reason:"too-short"}:i.length>de?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function gn(n){return n.replace(/[^a-zA-Z0-9]/g,"").slice(0,de)}const bn=["function available(string _subdomain) view returns (bool)"],Pe={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function yn(){return Z.chainId===Number(Gt.ChainId.MATIC_MAINNET)?Pe.mainnet:Pe.sepolia}async function wn(n,i={}){var m;const{rpc:r,address:h}=yn(),d=new Yt(r),b=new en(h,bn,d);console.info(`[names] availability check → DCLRegistrar(${h}).available("${n}") on ${r}`);const l=await b.available(n);if((m=i.signal)!=null&&m.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${n}" available=${l}`),l?"available":"taken"}const vn="https://app.across.to/api";class Re extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}class Se extends Error{constructor(){super("The name could not be registered on Ethereum; your funds were recovered."),this.name="NameNotRegisteredError"}}class Ee extends Error{constructor(){super("We couldn't confirm whether the purchase went through."),this.name="NameSettlementUnknownError"}}function jn(n){return mt(K,n)}async function Cn(n,i,r={}){var m;const h=r.chainId??Z.chainId,d=r.provider??"across",b=`${Z.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(i)}&chainId=${h}&provider=${d}`,l=await xt(b,{method:"GET",identity:n,metadata:{}});if(!l.ok){let c;try{c=(m=await l.json())==null?void 0:m.code}catch{}throw c==="ROUTE_COST_TOO_HIGH"?new Re:new Error(`fetchNameCreditRoute ${l.status}`)}return l.json()}function $n(n,i){const r=ke.from(n.availableAmount),d=ke.from(K).sub(r);return{credits:[{value:n.amount,expiresAt:Number(n.expiresAt),salt:Xt(n.id)}],creditsSignatures:[n.signature],externalCall:{target:i.externalCall.target,selector:i.externalCall.selector,data:i.externalCall.data,expiresAt:i.externalCall.expiresAt,salt:i.externalCall.salt},customExternalCallSignature:i.customExternalCallSignature,maxUncreditedValue:d.isNegative()?"0":d.toString(),maxCreditedValue:K}}async function kn(n,i={}){const r=vn,h=i.intervalMs??1e4,d=i.maxAttempts??60;let b={status:"pending",destinationTxHash:null,actionsSucceeded:null};for(let l=0;l<d;l++){try{const m=await fetch(`${r}/deposit/status?originChainId=137&depositTxHash=${n}`);if(m.ok){const c=await m.json(),y=(c.status??"pending").toLowerCase(),f=c.fillTx??c.fillTxnRef??null,j=typeof c.actionsSucceeded=="boolean"?c.actionsSucceeded:null;if(y==="filled")return{status:"filled",destinationTxHash:f,actionsSucceeded:j};if(y==="refunded"||y==="expired")return{status:y,destinationTxHash:null,actionsSucceeded:!1};b={status:"pending",destinationTxHash:f,actionsSucceeded:j}}}catch{}l<d-1&&await new Promise(m=>setTimeout(m,h))}return b}async function Sn(n){const{name:i,identity:r,signer:h}=n,d=f=>{var j;try{(j=n.onProgress)==null||j.call(n,f)}catch{}},b=n.chainId??Z.chainId,l=n.provider??"across",m=(n.beneficiary??await h.getAddress()).toLowerCase();let c=null,y="unconfirmed";console.info("[names] register start",{name:i,buyer:m,chainId:b,provider:l}),d("preparing");try{const f=await ht(pt(Z.chainId).address),j=jn(f);console.info("[names] step 1/6 sized reservation",{usdCents:j,manaRate:f});const C=await Cn(r,i,{chainId:b,provider:l});console.info("[names] step 2/6 route fetched",{target:C.externalCall.target,selector:C.externalCall.selector,provider:C.provider,quoteId:C.quoteId});const x=await ut(r,j,void 0,void 0,i);if(c=x.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:x.credit.id,maxCreditedValue:x.maxCreditedValue}),ke.from(x.maxCreditedValue).lt(K))throw new Error("Credit under-sized for the name price");d("awaiting-confirmation");const S=$n(x.credit,C);let p;try{p=await qt({chainId:b,buyer:m,signer:h,args:S})}catch(g){if(!(g instanceof Vt))throw g;if(g.reason==="relayer-unreachable"){y="unobservable";const I=new Ee;throw I.cause=g,I}p=await Kt(b,S,h)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:p}),d("confirming"),await Zt(p),y="confirmed",console.info("[names] step 5/6 origin tx confirmed",{originTxHash:p}),l==="across"){d("registering");const g=await kn(p,n.acrossPoll);if(console.info("[names] step 6/6 across status",g),g.status==="pending")return{status:"pending",originTxHash:p};if(g.status==="filled"&&g.actionsSucceeded===null)return console.warn("[names] across filled without reporting actionsSucceeded — reporting pending",{originTxHash:p}),{status:"pending",originTxHash:p};if(g.status!=="filled"||g.actionsSucceeded!==!0)throw new Se;return{status:"registered",originTxHash:p,destinationTxHash:g.destinationTxHash}}return{status:"pending",originTxHash:p}}catch(f){if(console.error("[names] register failed — raw error:",f,{name:i,buyer:m,originState:y}),f instanceof Qt)return{status:"pending",originTxHash:f.txHash};if(c&&y==="unconfirmed"&&await ft(r,[c]).catch(()=>{}),f instanceof Re||f instanceof Se||f instanceof Ee)throw f;const j=new Error(Jt(f,"Couldn't register the name. Please try again.",{sale:!0}));throw j.cause=f,j}}function En(){const{data:n}=gt({queryKey:["feature-flag","shop-names"],queryFn:()=>bt(yt.SHOP_NAMES),staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return n===!0}const Rn=60,Tn=700,_n=25;function In(n){if(!n)return[];const i=[];for(let r=1;r<=n.length;r++)i.push({text:n.slice(0,r),delay:Rn});i[i.length-1]={text:n,delay:Tn};for(let r=n.length-1;r>=1;r--)i.push({text:n.slice(0,r),delay:_n});return i}function Ln(n){return n.flatMap(In)}function Nn(n,i){const r=u.useMemo(()=>Ln(n),[n]),[h,d]=u.useState(0);return u.useEffect(()=>{if(!i||r.length===0)return;const b=setTimeout(()=>d(l=>(l+1)%r.length),r[h%r.length].delay);return()=>clearTimeout(b)},[h,i,r]),!i||r.length===0?"":r[h%r.length].text}const An="https://cdn.decentraland.org/@dcl/shop/1.13.1-35225172293.commit-25915c3/_assets/name-verified-oGwQ3ntb.svg",zn="#34fee6",Mn=o.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
|
-
`,Wn=o.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=o.div`
|
|
24
|
-
display: flex;
|
|
25
|
-
align-items: flex-start;
|
|
26
|
-
justify-content: space-between;
|
|
27
|
-
gap: 12px;
|
|
28
|
-
`,ue=o.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=o.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
|
-
`,me=o.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.brandViolet};
|
|
71
|
-
}
|
|
72
|
-
`,xe=o.hr`
|
|
73
|
-
border: 0;
|
|
74
|
-
border-top: 1px solid ${t.colors.line};
|
|
75
|
-
margin: 16px 0;
|
|
76
|
-
`,ge=o.div`
|
|
77
|
-
display: flex;
|
|
78
|
-
align-items: center;
|
|
79
|
-
gap: 16px;
|
|
80
|
-
`,Bn=o.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
|
-
`,Fn=o.img`
|
|
94
|
-
display: block;
|
|
95
|
-
width: 47px;
|
|
96
|
-
height: 47px;
|
|
97
|
-
`,Pn=o.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: ${zn};
|
|
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
|
-
`,On=o.img`
|
|
119
|
-
flex: none;
|
|
120
|
-
display: block;
|
|
121
|
-
width: 14px;
|
|
122
|
-
height: 14px;
|
|
123
|
-
`,Oe=o.div`
|
|
124
|
-
flex: none;
|
|
125
|
-
display: grid;
|
|
126
|
-
place-items: center;
|
|
127
|
-
width: 56px;
|
|
128
|
-
height: 56px;
|
|
129
|
-
border-radius: 10px;
|
|
130
|
-
background: ${t.gradients.amethyst};
|
|
131
|
-
color: ${t.colors.white};
|
|
132
|
-
|
|
133
|
-
.ico {
|
|
134
|
-
width: 30px;
|
|
135
|
-
height: 30px;
|
|
136
|
-
}
|
|
137
|
-
`,be=o.div`
|
|
138
|
-
flex: 1;
|
|
139
|
-
min-width: 0;
|
|
140
|
-
`,ye=o.div`
|
|
141
|
-
font-family: ${t.font.sans};
|
|
142
|
-
font-weight: 700;
|
|
143
|
-
font-size: 20px;
|
|
144
|
-
line-height: 1.3;
|
|
145
|
-
color: ${t.colors.text};
|
|
146
|
-
overflow: hidden;
|
|
147
|
-
text-overflow: ellipsis;
|
|
148
|
-
white-space: nowrap;
|
|
149
|
-
|
|
150
|
-
span {
|
|
151
|
-
font-weight: 400;
|
|
152
|
-
color: ${t.colors.muted2};
|
|
153
|
-
}
|
|
154
|
-
`,we=o.div`
|
|
155
|
-
font-family: ${t.font.sans};
|
|
156
|
-
font-size: 14px;
|
|
157
|
-
color: ${t.colors.muted2};
|
|
158
|
-
`,ve=o.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.brandViolet};
|
|
172
|
-
}
|
|
173
|
-
`,Un=o.div`
|
|
174
|
-
margin-top: 16px;
|
|
175
|
-
padding: 16px;
|
|
176
|
-
border-radius: 12px;
|
|
177
|
-
background: ${t.colors.promptLilac};
|
|
178
|
-
`,Hn=o.div`
|
|
179
|
-
font-family: ${t.font.sans};
|
|
180
|
-
font-weight: 700;
|
|
181
|
-
font-size: 16px;
|
|
182
|
-
color: ${t.colors.text};
|
|
183
|
-
`,Dn=o.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
|
-
`,Gn=o.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
|
-
`,qn=o.span`
|
|
215
|
-
flex: none;
|
|
216
|
-
font-family: ${t.font.sans};
|
|
217
|
-
font-size: 18px;
|
|
218
|
-
color: ${t.colors.muted2};
|
|
219
|
-
`,Vn=o.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
|
-
`,Zn=o.span`
|
|
235
|
-
flex: none;
|
|
236
|
-
font-family: ${t.font.sans};
|
|
237
|
-
font-size: 16px;
|
|
238
|
-
color: ${t.colors.muted2};
|
|
239
|
-
`,je=o.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
|
-
`,Qn=o.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
|
-
`,Kn=o.img`
|
|
278
|
-
width: 61px;
|
|
279
|
-
height: 61px;
|
|
280
|
-
`,Xn=o.div`
|
|
281
|
-
display: flex;
|
|
282
|
-
flex-direction: column;
|
|
283
|
-
align-items: center;
|
|
284
|
-
gap: 8px;
|
|
285
|
-
width: 100%;
|
|
286
|
-
`,Jn=o.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
|
-
`,Yn=o.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
|
-
`,es=o.div`
|
|
301
|
-
display: flex;
|
|
302
|
-
align-items: center;
|
|
303
|
-
justify-content: center;
|
|
304
|
-
gap: 8px;
|
|
305
|
-
width: 100%;
|
|
306
|
-
`,ts=o.div`
|
|
307
|
-
flex: 1;
|
|
308
|
-
max-width: 400px;
|
|
309
|
-
height: 10px;
|
|
310
|
-
border-radius: 100px;
|
|
311
|
-
background: rgba(0, 0, 0, 0.1);
|
|
312
|
-
overflow: hidden;
|
|
313
|
-
|
|
314
|
-
span {
|
|
315
|
-
display: block;
|
|
316
|
-
height: 100%;
|
|
317
|
-
width: 33%;
|
|
318
|
-
border-radius: 100px;
|
|
319
|
-
background: ${t.gradients.buyBtn};
|
|
320
|
-
animation: nameProgress 1.1s ease-in-out infinite;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
@keyframes nameProgress {
|
|
324
|
-
0% {
|
|
325
|
-
transform: translateX(-100%);
|
|
326
|
-
}
|
|
327
|
-
100% {
|
|
328
|
-
transform: translateX(320%);
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
@media (prefers-reduced-motion: reduce) {
|
|
333
|
-
span {
|
|
334
|
-
width: 33%;
|
|
335
|
-
animation: none;
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
`,ns=o.span`
|
|
339
|
-
flex: none;
|
|
340
|
-
font-family: ${t.font.sans};
|
|
341
|
-
font-size: 16px;
|
|
342
|
-
line-height: 22px;
|
|
343
|
-
color: ${t.colors.text2};
|
|
344
|
-
`,ss=o.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
|
-
`,os=o.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
|
-
`,is=o.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
|
-
`,Ue=o.div`
|
|
377
|
-
display: flex;
|
|
378
|
-
gap: 16px;
|
|
379
|
-
margin-top: 20px;
|
|
380
|
-
|
|
381
|
-
${t.media.maxWidth("mobile")} {
|
|
382
|
-
flex-direction: column;
|
|
383
|
-
}
|
|
384
|
-
`,He=o.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
|
-
`,as=o.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
|
-
`,Ce=o.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
|
-
`;function rs({name:n,priceCredits:i,onClose:r}){const{session:h}=Ze(),{data:d,isError:b}=wt(h),l=vt(),m=Ve(),[c,y]=u.useState("confirm"),[f,j]=u.useState(""),[C,x]=u.useState(null),[S,p]=u.useState(!1),[g,I]=u.useState("preparing"),L=u.useRef(!1),N=f.trim().toLowerCase()===n.toLowerCase(),E=c==="completing",P=i!=null?$e(i):"—",$=i==null,k=d==null?void 0:d.credits,A=i!=null&&k!=null?i-k:0,R=A>0,G=$?s("names.priceUnavailable"):R?s("names.insufficientCredits",{credits:$e(A)}):null;u.useEffect(()=>{const w=O=>{O.key==="Escape"&&!E&&r()};document.addEventListener("keydown",w);const F=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",w),document.body.style.overflow=F}},[E,r]);async function z(){if(!(!h||!N||$||R||L.current)){L.current=!0,y("completing"),x(null),I("preparing");try{const w=await Sn({name:n,identity:h.identity,signer:h.signer,onProgress:I});ce("Shop Completed Purchase",{items:[{item_id:null,contract_address:null,token_id:null,price_usd:We(i??0),category:"name",is_smart:!1}],purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:i??null,value_usd:We(i??0),transaction_hash:w.originTxHash??null,settlement:w.status}),l.invalidateQueries({queryKey:["usd-balance"]}),l.invalidateQueries({queryKey:["my-assets"]}),y(w.status==="registered"?"success":"pending")}catch(w){ce(kt(w)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:$t(w),purchase_type:"name"});const F=w instanceof Se,O=w instanceof Ee;x(w instanceof Re?s("names.errorRouteCost"):F?s("names.errorNotRegistered"):O?s("names.errorSettlementUnknown"):(w==null?void 0:w.message)||s("names.errorGeneric")),p(F||O),y("error")}finally{L.current=!1}}}const M=c!=="success"&&c!=="pending",v=jt(h==null?void 0:h.providerType),W=v?2:1,B=v&&(g==="preparing"||g==="awaiting-confirmation"),T=B?1:W,X=B?s("names.confirming"):s("names.completing"),Q=g==="registering"?s("names.processingRegistering"):null;return e.jsx(Mn,{onClick:E?void 0:r,role:"presentation",children:e.jsxs(Wn,{role:"dialog","aria-modal":"true","aria-label":s("names.buyTitle"),onClick:w=>w.stopPropagation(),children:[M&&e.jsxs(e.Fragment,{children:[e.jsxs(pe,{children:[e.jsx(ue,{children:c==="error"?s("names.errorTitle"):s("names.buyTitle")}),e.jsx(fe,{onClick:r,disabled:E,"aria-label":s("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(me,{children:[s("names.myCreditsBalance")," ",e.jsx(D,{})," ",he(d,b)]}),e.jsx(xe,{})]}),(c==="confirm"||c==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs(ge,{children:[e.jsx(Oe,{"aria-hidden":!0,children:"@"}),e.jsxs(be,{children:[e.jsxs(ye,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(we,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(D,{}),P]})]}),c==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(Ce,{children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsx("span",{children:C})]}),S?e.jsx(je,{onClick:r,children:s("names.errorSpentDismiss")}):e.jsx(je,{onClick:()=>y("confirm"),children:s("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(Un,{children:[e.jsx(Hn,{children:s("names.confirmTitle")}),e.jsx(Dn,{dangerouslySetInnerHTML:{__html:s("names.confirmBody",{name:`<b>@${ls(n)}</b>`})}}),e.jsxs(Gn,{children:[e.jsx(qn,{"aria-hidden":!0,children:"@"}),e.jsx(Vn,{value:f,onChange:w=>j(w.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":s("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(f.length,8)}ch`}}),e.jsx(Zn,{children:".dcl.eth"})]})]}),G?e.jsxs(Ce,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsx("span",{children:G})]}):null,e.jsx(je,{onClick:()=>void z(),disabled:!N||!h||$||R,children:s("names.buyCta")})]})]}),c==="completing"&&e.jsxs(Qn,{children:[e.jsx(Kn,{src:Ct,alt:"",width:61,height:61}),e.jsxs(Xn,{children:[e.jsx(Jn,{children:X}),e.jsxs(es,{children:[e.jsx(ts,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(ns,{"data-testid":"name-progress-count",children:`${T}/${W}`})]}),Q?e.jsx(Yn,{children:Q}):null]})]}),c==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs(pe,{children:[e.jsx(ue,{children:s("names.pendingHeaderTitle")}),e.jsx(fe,{onClick:r,"aria-label":s("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(me,{children:[s("names.myCreditsBalance")," ",e.jsx(D,{})," ",he(d,b)]}),e.jsx(xe,{}),e.jsxs(Ce,{"data-tone":"info",children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("b",{children:s("names.pendingBannerBold")})," ",s("names.pendingBannerRest")]})]}),e.jsxs(ge,{style:{marginTop:20},children:[e.jsx(Oe,{"aria-hidden":!0,children:"@"}),e.jsxs(be,{children:[e.jsxs(ye,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(we,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(D,{}),P]})]}),e.jsx(Ue,{children:e.jsx(He,{onClick:()=>{r(),m("/my-items")},children:s("names.myItems")})})]}),c==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(pe,{children:[e.jsx(ue,{children:s("names.successHeaderTitle")}),e.jsx(fe,{onClick:r,"aria-label":s("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(me,{children:[s("names.myCreditsBalance")," ",e.jsx(D,{})," ",he(d,b)]}),e.jsx(xe,{}),e.jsxs(ss,{children:[e.jsx(os,{"aria-hidden":!0,children:e.jsx(_,{name:"check"})}),e.jsxs(is,{children:[e.jsx("b",{children:s("names.successBannerBold")})," ",s("names.successBannerRest")]})]}),e.jsxs(ge,{style:{marginTop:20},children:[e.jsxs(Bn,{"data-testid":"name-success-tile",children:[e.jsx(Fn,{src:tn,alt:"","aria-hidden":!0,width:47,height:47}),e.jsxs(Pn,{children:[e.jsx("span",{"aria-hidden":!0,children:n}),e.jsx(On,{src:An,alt:"","aria-hidden":!0,width:14,height:14})]})]}),e.jsxs(be,{children:[e.jsxs(ye,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(we,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(D,{}),P]})]}),e.jsxs(Ue,{children:[e.jsx(He,{onClick:()=>{r(),m("/my-items")},children:s("names.myItems")}),e.jsx(as,{href:Z.profileUrl,target:"_blank",rel:"noopener noreferrer",children:s("names.assignToAvatar")})]})]})]})})}function ls(n){return n.replace(/[&<>"']/g,i=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[i])}const cs="https://cdn.decentraland.org/@dcl/shop/1.13.1-35225172293.commit-25915c3/_assets/identity-icon-C8yAW_Gq.svg",ds="https://cdn.decentraland.org/@dcl/shop/1.13.1-35225172293.commit-25915c3/_assets/world-icon-6xQ-PmmW.svg",hs="https://cdn.decentraland.org/@dcl/shop/1.13.1-35225172293.commit-25915c3/_assets/invite-icon-Bz6lCTuB.svg",ps="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",us=o.div`
|
|
462
|
-
width: 100%;
|
|
463
|
-
min-width: 0;
|
|
464
|
-
`,fs=o.nav`
|
|
465
|
-
display: flex;
|
|
466
|
-
align-items: center;
|
|
467
|
-
gap: 6px;
|
|
468
|
-
margin: 4px 0 16px;
|
|
469
|
-
font-family: ${t.font.sans};
|
|
470
|
-
font-size: 12px;
|
|
471
|
-
line-height: 1;
|
|
472
|
-
color: ${t.colors.gray4};
|
|
473
|
-
${nn};
|
|
474
|
-
`,ms=o.button`
|
|
475
|
-
border: 0;
|
|
476
|
-
background: none;
|
|
477
|
-
padding: 0;
|
|
478
|
-
cursor: pointer;
|
|
479
|
-
font: inherit;
|
|
480
|
-
color: ${t.colors.gray4};
|
|
481
|
-
|
|
482
|
-
&:hover {
|
|
483
|
-
color: ${t.colors.white};
|
|
484
|
-
text-decoration: underline;
|
|
485
|
-
}
|
|
486
|
-
&:focus-visible {
|
|
487
|
-
outline: 2px solid ${t.colors.white};
|
|
488
|
-
outline-offset: 2px;
|
|
489
|
-
}
|
|
490
|
-
`,xs=o.span`
|
|
491
|
-
font-weight: 700;
|
|
492
|
-
color: ${t.colors.softWhite};
|
|
493
|
-
`,gs=o.div`
|
|
494
|
-
display: flex;
|
|
495
|
-
flex-direction: column;
|
|
496
|
-
gap: 48px;
|
|
497
|
-
padding-bottom: 48px;
|
|
498
|
-
|
|
499
|
-
${t.media.maxWidth("mobile")} {
|
|
500
|
-
gap: 32px;
|
|
501
|
-
padding-bottom: 32px;
|
|
502
|
-
}
|
|
503
|
-
`,bs=o.div`
|
|
504
|
-
position: relative;
|
|
505
|
-
border: 1px solid ${t.colors.magenta};
|
|
506
|
-
border-radius: 24px;
|
|
507
|
-
overflow: hidden;
|
|
508
|
-
padding: 88px 48px;
|
|
509
|
-
display: flex;
|
|
510
|
-
flex-direction: column;
|
|
511
|
-
align-items: center;
|
|
512
|
-
gap: 48px;
|
|
513
|
-
text-align: center;
|
|
514
|
-
background: ${t.colors.overlay};
|
|
515
|
-
|
|
516
|
-
${t.media.maxWidth("mobile")} {
|
|
517
|
-
padding: 40px 20px;
|
|
518
|
-
gap: 28px;
|
|
519
|
-
}
|
|
520
|
-
`,ys=o.div`
|
|
521
|
-
display: flex;
|
|
522
|
-
flex-direction: column;
|
|
523
|
-
align-items: center;
|
|
524
|
-
gap: 12px;
|
|
525
|
-
`,ws=o.h1`
|
|
526
|
-
margin: 0;
|
|
527
|
-
font-family: ${t.font.sans};
|
|
528
|
-
font-weight: 600;
|
|
529
|
-
font-size: 40px;
|
|
530
|
-
line-height: 1.167;
|
|
531
|
-
color: ${t.colors.white};
|
|
532
|
-
|
|
533
|
-
${t.media.maxWidth("mobile")} {
|
|
534
|
-
font-size: 26px;
|
|
535
|
-
}
|
|
536
|
-
`,vs=o.p`
|
|
537
|
-
margin: 0;
|
|
538
|
-
max-width: 760px;
|
|
539
|
-
font-family: ${t.font.sans};
|
|
540
|
-
font-weight: 500;
|
|
541
|
-
font-size: 24px;
|
|
542
|
-
line-height: 1.334;
|
|
543
|
-
color: #ecebed;
|
|
544
|
-
|
|
545
|
-
${t.media.maxWidth("mobile")} {
|
|
546
|
-
font-size: 16px;
|
|
547
|
-
}
|
|
548
|
-
`,js=o.div`
|
|
549
|
-
width: min(785px, 100%);
|
|
550
|
-
display: flex;
|
|
551
|
-
flex-direction: column;
|
|
552
|
-
gap: 12px;
|
|
553
|
-
`,Cs=o.div`
|
|
554
|
-
position: relative;
|
|
555
|
-
`,$s=o("div",sn("invalid"))`
|
|
556
|
-
display: flex;
|
|
557
|
-
align-items: center;
|
|
558
|
-
gap: 8px;
|
|
559
|
-
padding: 8px 8px 8px 16px;
|
|
560
|
-
background: ${t.colors.softWhite};
|
|
561
|
-
/* Figma 1368:349148 gives the field a 3px Orange edge — it is the page's one input, and the design
|
|
562
|
-
leans on that weight to carry it. Red only when what has been typed cannot be claimed. */
|
|
563
|
-
border: 3px solid ${({invalid:n})=>n?t.colors.dclRed:t.colors.orange};
|
|
564
|
-
border-radius: 20px;
|
|
565
|
-
|
|
566
|
-
&:focus-within {
|
|
567
|
-
border-color: ${({invalid:n})=>n?t.colors.dclRed:t.colors.magenta};
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
${t.media.maxWidth("mobile")} {
|
|
571
|
-
border-radius: 16px;
|
|
572
|
-
}
|
|
573
|
-
`,ks=o.span`
|
|
574
|
-
position: absolute;
|
|
575
|
-
left: -9999px;
|
|
576
|
-
top: 0;
|
|
577
|
-
visibility: hidden;
|
|
578
|
-
pointer-events: none;
|
|
579
|
-
white-space: pre;
|
|
580
|
-
font-family: ${t.font.sans};
|
|
581
|
-
font-size: 20px;
|
|
582
|
-
font-weight: 600;
|
|
583
|
-
line-height: 1.6;
|
|
584
|
-
|
|
585
|
-
/* An empty field paints the PLACEHOLDER, which is lighter than a typed value — so the mirror has to
|
|
586
|
-
be lighter too. Measuring the placeholder at the value's weight made the box a few pixels wider
|
|
587
|
-
than the text in it, and ".dcl.eth" sat that far off the end of the word. */
|
|
588
|
-
&[data-placeholder] {
|
|
589
|
-
font-weight: 400;
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
${t.media.maxWidth("mobile")} {
|
|
593
|
-
font-size: 16px;
|
|
594
|
-
}
|
|
595
|
-
`,Ss=o.div`
|
|
596
|
-
position: absolute;
|
|
597
|
-
top: calc(100% + 8px);
|
|
598
|
-
left: 0;
|
|
599
|
-
right: 0;
|
|
600
|
-
z-index: 2;
|
|
601
|
-
display: flex;
|
|
602
|
-
align-items: center;
|
|
603
|
-
gap: 8px;
|
|
604
|
-
padding: 8px 12px;
|
|
605
|
-
border-radius: 8px;
|
|
606
|
-
background: #ffcdd4;
|
|
607
|
-
color: #ec303a;
|
|
608
|
-
font-family: ${t.font.sans};
|
|
609
|
-
font-size: 14px;
|
|
610
|
-
font-weight: 500;
|
|
611
|
-
line-height: 1.2;
|
|
612
|
-
text-align: left;
|
|
613
|
-
|
|
614
|
-
${t.media.maxWidth("mobile")} {
|
|
615
|
-
position: static;
|
|
616
|
-
margin-top: 8px;
|
|
617
|
-
align-items: flex-start;
|
|
618
|
-
flex-wrap: wrap;
|
|
619
|
-
}
|
|
620
|
-
`,Ye=o.a`
|
|
621
|
-
display: inline-flex;
|
|
622
|
-
align-items: center;
|
|
623
|
-
gap: 2px;
|
|
624
|
-
margin-left: auto;
|
|
625
|
-
font-weight: 600;
|
|
626
|
-
text-decoration: underline;
|
|
627
|
-
text-transform: uppercase;
|
|
628
|
-
white-space: nowrap;
|
|
629
|
-
|
|
630
|
-
${t.media.maxWidth("mobile")} {
|
|
631
|
-
margin-left: 0;
|
|
632
|
-
}
|
|
633
|
-
`,Es=o(Ye)`
|
|
634
|
-
color: #ec303a;
|
|
635
|
-
`,Rs=o.label`
|
|
636
|
-
flex: 1;
|
|
637
|
-
min-width: 0;
|
|
638
|
-
display: flex;
|
|
639
|
-
align-items: center;
|
|
640
|
-
gap: 0;
|
|
641
|
-
cursor: text;
|
|
642
|
-
overflow: hidden;
|
|
643
|
-
`,Ts=o.span`
|
|
644
|
-
flex: none;
|
|
645
|
-
margin-right: 8px;
|
|
646
|
-
font-family: ${t.font.sans};
|
|
647
|
-
font-size: 26px;
|
|
648
|
-
font-weight: 500;
|
|
649
|
-
line-height: 1;
|
|
650
|
-
color: ${t.colors.muted2};
|
|
651
|
-
|
|
652
|
-
${t.media.maxWidth("mobile")} {
|
|
653
|
-
font-size: 20px;
|
|
654
|
-
}
|
|
655
|
-
`,_s=o.input`
|
|
656
|
-
flex: 0 1 auto;
|
|
657
|
-
min-width: 0;
|
|
658
|
-
max-width: 100%;
|
|
659
|
-
border: 0;
|
|
660
|
-
outline: none;
|
|
661
|
-
background: transparent;
|
|
662
|
-
font-family: ${t.font.sans};
|
|
663
|
-
font-size: 20px;
|
|
664
|
-
font-weight: 600;
|
|
665
|
-
line-height: 1.6;
|
|
666
|
-
color: ${t.colors.text};
|
|
667
|
-
padding: 0;
|
|
668
|
-
|
|
669
|
-
&::placeholder {
|
|
670
|
-
color: ${t.colors.muted1};
|
|
671
|
-
font-weight: 400;
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
${t.media.maxWidth("mobile")} {
|
|
675
|
-
font-size: 16px;
|
|
676
|
-
}
|
|
677
|
-
`,Is=o.span`
|
|
678
|
-
flex: none;
|
|
679
|
-
/* Flush against the name: "yourname.dcl.eth" has to read as one address, and at 20px even a couple of
|
|
680
|
-
pixels here look like a space someone typed by mistake. */
|
|
681
|
-
margin-left: 0;
|
|
682
|
-
/* Not selectable: it is the fixed part of the address, not something the reader typed. */
|
|
683
|
-
user-select: none;
|
|
684
|
-
-webkit-user-select: none;
|
|
685
|
-
font-family: ${t.font.sans};
|
|
686
|
-
font-size: 20px;
|
|
687
|
-
font-weight: 400;
|
|
688
|
-
line-height: 1.6;
|
|
689
|
-
color: ${t.colors.muted1};
|
|
690
|
-
|
|
691
|
-
${t.media.maxWidth("mobile")} {
|
|
692
|
-
font-size: 16px;
|
|
693
|
-
}
|
|
694
|
-
`,Ls=o.span`
|
|
695
|
-
flex: none;
|
|
696
|
-
font-family: ${t.font.sans};
|
|
697
|
-
font-size: 14px;
|
|
698
|
-
line-height: 1.43;
|
|
699
|
-
color: ${t.colors.muted2};
|
|
700
|
-
white-space: nowrap;
|
|
701
|
-
`,et=o.button`
|
|
702
|
-
flex: none;
|
|
703
|
-
display: inline-flex;
|
|
704
|
-
align-items: center;
|
|
705
|
-
justify-content: center;
|
|
706
|
-
gap: 8px;
|
|
707
|
-
height: 52px;
|
|
708
|
-
padding: 0 24px;
|
|
709
|
-
border: 0;
|
|
710
|
-
border-radius: 12px;
|
|
711
|
-
cursor: pointer;
|
|
712
|
-
background: ${t.gradients.buyBtn};
|
|
713
|
-
color: ${t.colors.softWhite};
|
|
714
|
-
font-family: ${t.font.sans};
|
|
715
|
-
font-weight: 600;
|
|
716
|
-
font-size: 15px;
|
|
717
|
-
letter-spacing: 0.46px;
|
|
718
|
-
line-height: 24px;
|
|
719
|
-
text-transform: uppercase;
|
|
720
|
-
transition: background-image 0.15s ease;
|
|
721
|
-
|
|
722
|
-
/* Both ends stay on background-IMAGE: a gradient cannot interpolate to a plain colour, so swapping
|
|
723
|
-
the background shorthand instead blanks the button for the length of the transition. */
|
|
724
|
-
&:hover:not(:disabled),
|
|
725
|
-
&:active:not(:disabled) {
|
|
726
|
-
background-image: linear-gradient(${t.colors.dclRed}, ${t.colors.dclRed});
|
|
727
|
-
}
|
|
728
|
-
&:focus-visible {
|
|
729
|
-
outline: 2px solid ${t.colors.white};
|
|
730
|
-
outline-offset: 2px;
|
|
731
|
-
}
|
|
732
|
-
&:disabled {
|
|
733
|
-
cursor: not-allowed;
|
|
734
|
-
opacity: 0.5;
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
${t.media.maxWidth("mobile")} {
|
|
738
|
-
display: none;
|
|
739
|
-
}
|
|
740
|
-
`,Ns=o(et)`
|
|
741
|
-
display: none;
|
|
742
|
-
|
|
743
|
-
${t.media.maxWidth("mobile")} {
|
|
744
|
-
display: inline-flex;
|
|
745
|
-
width: 100%;
|
|
746
|
-
height: 48px;
|
|
747
|
-
border-radius: 12px;
|
|
748
|
-
}
|
|
749
|
-
`,As=o.span`
|
|
750
|
-
display: inline-flex;
|
|
751
|
-
align-items: center;
|
|
752
|
-
gap: 4px;
|
|
753
|
-
font-size: 18px;
|
|
754
|
-
font-weight: 600;
|
|
755
|
-
|
|
756
|
-
.ico {
|
|
757
|
-
width: 13.26px;
|
|
758
|
-
height: 14px;
|
|
759
|
-
}
|
|
760
|
-
`,zs=o.div`
|
|
761
|
-
display: flex;
|
|
762
|
-
align-items: center;
|
|
763
|
-
gap: 8px;
|
|
764
|
-
padding: 8px 14px;
|
|
765
|
-
border-radius: 8px;
|
|
766
|
-
font-family: ${t.font.sans};
|
|
767
|
-
font-size: 13px;
|
|
768
|
-
font-weight: 500;
|
|
769
|
-
text-align: left;
|
|
770
|
-
|
|
771
|
-
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)"};
|
|
772
|
-
color: ${({tone:n})=>n==="error"?t.colors.dclRed:n==="ok"?"#0f7a4f":"#ecebed"};
|
|
773
|
-
|
|
774
|
-
.ico {
|
|
775
|
-
width: 16px;
|
|
776
|
-
height: 16px;
|
|
777
|
-
flex: none;
|
|
778
|
-
}
|
|
779
|
-
`,se=o(zs)`
|
|
780
|
-
position: absolute;
|
|
781
|
-
top: calc(100% + 8px);
|
|
782
|
-
left: 0;
|
|
783
|
-
right: 0;
|
|
784
|
-
z-index: 2;
|
|
785
|
-
|
|
786
|
-
/* Static on mobile, as TakenBanner is: the claim button sits below InputWrap there, so anything
|
|
787
|
-
floating out of the input lands on top of it. */
|
|
788
|
-
${t.media.maxWidth("mobile")} {
|
|
789
|
-
position: static;
|
|
790
|
-
margin-top: 8px;
|
|
791
|
-
}
|
|
792
|
-
`,Ms=o(Ye)`
|
|
793
|
-
color: inherit;
|
|
794
|
-
`,Ws=o.section`
|
|
795
|
-
display: flex;
|
|
796
|
-
flex-direction: column;
|
|
797
|
-
gap: 48px;
|
|
798
|
-
padding: 0 48px;
|
|
799
|
-
|
|
800
|
-
${t.media.maxWidth("mobile")} {
|
|
801
|
-
gap: 32px;
|
|
802
|
-
padding: 0 20px;
|
|
803
|
-
}
|
|
804
|
-
`,Bs=o.div`
|
|
805
|
-
display: flex;
|
|
806
|
-
flex-direction: column;
|
|
807
|
-
align-items: center;
|
|
808
|
-
gap: 24px;
|
|
809
|
-
`,Fs=o.h2`
|
|
810
|
-
margin: 0;
|
|
811
|
-
text-align: center;
|
|
812
|
-
font-family: ${t.font.sans};
|
|
813
|
-
font-weight: 600;
|
|
814
|
-
font-size: 32px;
|
|
815
|
-
line-height: 1.167;
|
|
816
|
-
color: ${t.colors.white};
|
|
817
|
-
|
|
818
|
-
${t.media.maxWidth("mobile")} {
|
|
819
|
-
font-size: 22px;
|
|
820
|
-
}
|
|
821
|
-
`,Ps=o.p`
|
|
822
|
-
margin: 0;
|
|
823
|
-
max-width: 907px;
|
|
824
|
-
text-align: center;
|
|
825
|
-
font-family: ${t.font.sans};
|
|
826
|
-
font-weight: 400;
|
|
827
|
-
font-size: 20px;
|
|
828
|
-
line-height: 1.57;
|
|
829
|
-
color: ${t.colors.gray4};
|
|
830
|
-
|
|
831
|
-
${t.media.maxWidth("mobile")} {
|
|
832
|
-
font-size: 16px;
|
|
833
|
-
}
|
|
834
|
-
`,Os=o.div`
|
|
835
|
-
display: grid;
|
|
836
|
-
grid-template-columns: repeat(4, 1fr);
|
|
837
|
-
gap: 24px;
|
|
838
|
-
align-items: stretch;
|
|
839
|
-
|
|
840
|
-
${t.media.maxWidth("lg")} {
|
|
841
|
-
grid-template-columns: repeat(2, 1fr);
|
|
842
|
-
}
|
|
843
|
-
${t.media.maxWidth("mobile")} {
|
|
844
|
-
grid-template-columns: 1fr;
|
|
845
|
-
}
|
|
846
|
-
`,oe=o.article`
|
|
847
|
-
min-width: 0;
|
|
848
|
-
display: flex;
|
|
849
|
-
flex-direction: column;
|
|
850
|
-
gap: 32px;
|
|
851
|
-
padding: 24px;
|
|
852
|
-
background: ${t.colors.overlay};
|
|
853
|
-
border-radius: 24px;
|
|
854
|
-
|
|
855
|
-
@media (forced-colors: active) {
|
|
856
|
-
outline: 1px solid CanvasText;
|
|
857
|
-
}
|
|
858
|
-
|
|
859
|
-
${t.media.maxWidth("mobile")} {
|
|
860
|
-
gap: 20px;
|
|
861
|
-
padding: 20px;
|
|
862
|
-
}
|
|
863
|
-
`,ie=o.img`
|
|
864
|
-
display: block;
|
|
865
|
-
align-self: flex-start;
|
|
866
|
-
height: 55px;
|
|
867
|
-
width: auto;
|
|
868
|
-
`,ae=o.div`
|
|
869
|
-
flex: 1;
|
|
870
|
-
display: flex;
|
|
871
|
-
flex-direction: column;
|
|
872
|
-
gap: 12px;
|
|
873
|
-
`,re=o.h3`
|
|
874
|
-
margin: 0;
|
|
875
|
-
font-family: ${t.font.sans};
|
|
876
|
-
font-weight: 700;
|
|
877
|
-
font-size: 20px;
|
|
878
|
-
line-height: 1.57;
|
|
879
|
-
text-transform: uppercase;
|
|
880
|
-
color: ${t.colors.white};
|
|
881
|
-
`,le=o.p`
|
|
882
|
-
margin: 0;
|
|
883
|
-
font-family: ${t.font.sans};
|
|
884
|
-
font-weight: 400;
|
|
885
|
-
font-size: 14px;
|
|
886
|
-
line-height: 1.57;
|
|
887
|
-
color: ${t.colors.media};
|
|
888
|
-
`,Us=o.span`
|
|
889
|
-
font-weight: 700;
|
|
890
|
-
color: ${t.colors.white};
|
|
891
|
-
`,De=o.a`
|
|
892
|
-
display: inline-flex;
|
|
893
|
-
align-items: center;
|
|
894
|
-
gap: 2px;
|
|
895
|
-
margin-top: auto;
|
|
896
|
-
font-family: ${t.font.sans};
|
|
897
|
-
font-weight: 500;
|
|
898
|
-
font-size: 14px;
|
|
899
|
-
line-height: 30px;
|
|
900
|
-
color: ${t.colors.softWhite};
|
|
901
|
-
text-decoration: underline;
|
|
902
|
-
|
|
903
|
-
&:focus-visible {
|
|
904
|
-
outline: 2px solid ${t.colors.softWhite};
|
|
905
|
-
outline-offset: 2px;
|
|
906
|
-
}
|
|
907
|
-
|
|
908
|
-
.ico {
|
|
909
|
-
width: 13px;
|
|
910
|
-
height: 13px;
|
|
911
|
-
}
|
|
912
|
-
`,Hs=o.span`
|
|
913
|
-
position: absolute;
|
|
914
|
-
width: 1px;
|
|
915
|
-
height: 1px;
|
|
916
|
-
padding: 0;
|
|
917
|
-
margin: -1px;
|
|
918
|
-
overflow: hidden;
|
|
919
|
-
clip: rect(0, 0, 0, 0);
|
|
920
|
-
white-space: nowrap;
|
|
921
|
-
border: 0;
|
|
922
|
-
`,Ds="https://docs.decentraland.org/creator/worlds/about/",Gs="https://governance.decentraland.org";function Ge(n){const i=typeof window<"u"?window.location.hostname:"";return`${i.endsWith("decentraland.org")?"https://decentraland.org":i.endsWith("decentraland.today")?"https://decentraland.today":"https://decentraland.zone"}/marketplace/names/browse?search=${encodeURIComponent(n)}`}function qs({onBack:n}){Qe({title:s("seo.names.title"),description:s("seo.names.description")});const{session:i,signIn:r}=Ze(),h=En(),{data:d}=Ke(),b=d?Xe(K,d):null,[l,m]=u.useState(""),[c,y]=u.useState("idle"),[f,j]=u.useState(!1),[C,x]=u.useState(!1),[S,p]=u.useState(()=>{var v;return typeof window<"u"&&!!((v=window.matchMedia)!=null&&v.call(window,"(prefers-reduced-motion: reduce)").matches)});u.useEffect(()=>{var B;const v=(B=window.matchMedia)==null?void 0:B.call(window,"(prefers-reduced-motion: reduce)");if(!v)return;const W=T=>p(T.matches);return v.addEventListener("change",W),()=>v.removeEventListener("change",W)},[]);const g=s("names.placeholderExamples"),I=u.useMemo(()=>g.split(",").map(v=>v.trim()).filter(Boolean),[g]),N=Nn(I,!C&&!l&&!S)||s("names.inputPlaceholder"),E=u.useRef(null),[P,$]=u.useState(void 0);u.useLayoutEffect(()=>{E.current&&$(E.current.getBoundingClientRect().width)},[l,N]),u.useEffect(()=>{if(!Fe(l).ok){y(l.length===0?"idle":"invalid");return}y("checking");const W=new AbortController,B=setTimeout(()=>{(async()=>{try{const T=await wn(l,{signal:W.signal});y(T)}catch(T){if((T==null?void 0:T.name)==="AbortError")return;y("error")}})()},400);return()=>{clearTimeout(B),W.abort()}},[l]);const k=Fe(l),A=k.ok&&(c==="available"||c==="error"),R=h&&A,G=!h&&A;function z(){if(R){if(!i){r();return}j(!0)}}const M=e.jsxs(e.Fragment,{children:[s("names.claim"),b!=null?e.jsxs(As,{children:[e.jsx(D,{}),$e(b)]}):null]});return e.jsxs(us,{"data-testid":"names-page",children:[e.jsxs(fs,{"aria-label":s("names.breadcrumbAria"),children:[e.jsx(ms,{onClick:n,children:s("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(xs,{children:s("names.breadcrumbCurrent")})]}),e.jsxs(gs,{children:[e.jsxs(bs,{children:[e.jsxs(ys,{children:[e.jsx(ws,{children:s("names.heroTitle")}),e.jsx(vs,{children:s("names.heroSubtitle")})]}),e.jsxs(js,{children:[e.jsxs(Cs,{"data-testid":"names-input-wrap",children:[e.jsxs($s,{invalid:c==="taken",children:[e.jsxs(Rs,{children:[e.jsx(Ts,{"aria-hidden":!0,children:"@"}),e.jsx(_s,{value:l,onChange:v=>m(gn(v.target.value)),placeholder:N,"aria-label":s("names.inputAria"),autoComplete:"off",spellCheck:!1,maxLength:de,onFocus:()=>x(!0),style:{width:P!=null?`${P}px`:void 0}}),e.jsx(ks,{ref:E,"aria-hidden":!0,"data-placeholder":!l||void 0,children:l||N}),e.jsx(Is,{children:s("names.suffix")})]}),l.length>0?e.jsxs(Ls,{"aria-hidden":!0,children:[l.length,"/",de]}):null,e.jsx(et,{onClick:z,disabled:!R,"data-testid":"names-claim",children:M})]}),c==="taken"?e.jsxs(Ss,{role:"status","data-testid":"names-taken",children:[e.jsx(_,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:s("names.taken")}),e.jsxs(Es,{href:Ge(l),target:"_blank",rel:"noopener noreferrer",children:[s("names.takenMakeOffer"),e.jsx(_,{name:"external-link",size:13,"aria-hidden":!0})]})]}):null,c==="checking"?e.jsx(se,{tone:"muted",role:"status","data-testid":"names-checking",children:s("names.checking")}):G?e.jsxs(se,{tone:"muted",role:"status","data-testid":"names-disabled",children:[e.jsx(_,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:s("names.registrationDisabled")}),e.jsxs(Ms,{href:Ge(l),target:"_blank",rel:"noopener noreferrer",children:[s("names.registrationDisabledLink"),e.jsx(_,{name:"external-link",size:13,"aria-hidden":!0})]})]}):c==="error"?e.jsx(se,{tone:"muted",role:"status",children:s("names.checkError")}):c==="invalid"&&!k.ok&&k.reason==="too-short"?e.jsx(se,{tone:"muted",role:"status",children:s("names.tooShort",{min:Je})}):null]}),e.jsx(Ns,{onClick:z,disabled:!R,children:M}),e.jsx(Hs,{role:"status","aria-live":"polite",children:c==="available"?s("names.available",{name:l}):""})]})]}),e.jsxs(Ws,{children:[e.jsxs(Bs,{children:[e.jsx(Fs,{children:s("names.whyTitle")}),e.jsx(Ps,{children:s("names.whyIntro")})]}),e.jsxs(Os,{children:[e.jsxs(oe,{children:[e.jsx(ie,{src:cs,alt:""}),e.jsxs(ae,{children:[e.jsx(re,{children:s("names.why1Title")}),e.jsx(le,{children:s("names.why1")})]})]}),e.jsxs(oe,{children:[e.jsx(ie,{src:ds,alt:""}),e.jsxs(ae,{children:[e.jsx(re,{children:s("names.why2Title")}),e.jsxs(le,{children:[s("names.why2")," ",e.jsx(Us,{children:s("names.why2Address")})]}),e.jsxs(De,{href:Ds,target:"_blank",rel:"noopener noreferrer",children:[s("names.learnMore"),e.jsx(_,{name:"external-link","aria-hidden":!0})]})]})]}),e.jsxs(oe,{children:[e.jsx(ie,{src:hs,alt:""}),e.jsxs(ae,{children:[e.jsx(re,{children:s("names.why3Title")}),e.jsx(le,{children:s("names.why3")})]})]}),e.jsxs(oe,{children:[e.jsx(ie,{src:ps,alt:""}),e.jsxs(ae,{children:[e.jsx(re,{children:s("names.why4Title")}),e.jsx(le,{children:s("names.why4")}),e.jsxs(De,{href:Gs,target:"_blank",rel:"noopener noreferrer",children:[s("names.learnMore"),e.jsx(_,{name:"external-link","aria-hidden":!0})]})]})]})]})]})]}),f?e.jsx(rs,{name:l,priceCredits:b,onClose:()=>j(!1)}):null]})}const Vs=o.p`
|
|
923
|
-
display: flex;
|
|
924
|
-
align-items: center;
|
|
925
|
-
gap: 10px;
|
|
926
|
-
background: ${t.colors.rarityBg};
|
|
927
|
-
color: ${t.colors.accent};
|
|
928
|
-
border-radius: 12px;
|
|
929
|
-
padding: 12px 16px;
|
|
930
|
-
margin-bottom: 14px;
|
|
931
|
-
font-weight: 600;
|
|
932
|
-
font-size: 14px;
|
|
933
|
-
|
|
934
|
-
&[data-variant='warn'] {
|
|
935
|
-
background: rgba(211, 51, 51, 0.1);
|
|
936
|
-
color: ${t.colors.err};
|
|
937
|
-
}
|
|
938
|
-
`,qe=48,Zs=["all","on_sale","not_for_sale"],Qs=n=>n?"all":"on_sale";function vo({contracts:n,hideNames:i=!1,seo:r,lockStatus:h}={}){const[d]=dt(),b=Ve(),l=(d.get("q")??"").trim().toLowerCase(),m=(d.get("q")??"").trim();Qe(r??{title:m?s("seo.collectibles.searchTitle",{query:m}):s("seo.collectibles.title"),description:s("seo.collectibles.description")});const c=Qs(!!l),y=St(),f=y&&d.get("deals")==="true",j=u.useMemo(()=>({category:"all",status:c,subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,deals:!1,sort:f?"discount":"newest"}),[c,f]),[C,x]=Lt(j),{subCategory:S,rarities:p,priceMin:g,priceMax:I,smart:L,sort:N}=C,E=y&&C.deals,$=At.map(a=>a.key).filter(a=>!(i&&a==="names")).includes(C.category)?C.category:"all",k=h??(Zs.includes(C.status)?C.status:c);zt(`${$}:${S??""}`);const[A,R]=u.useState(!1);u.useEffect(()=>{if(!A)return;const a=ee=>{ee.key==="Escape"&&R(!1)};document.addEventListener("keydown",a);const H=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",a),document.body.style.overflow=H}},[A]);const G=n!==void 0&&n.length===0,z=k==="on_sale",M=g&&!Number.isNaN(Number(g))?Number(g):void 0,v=I&&!Number.isNaN(Number(I))?Number(I):void 0,W=Et(),B=S?Ht[S]:void 0,T=E?Mt:Wt,X=(T.find(a=>a.key===N)??T[0]).server,Q={category:$,rarities:p.length?p:void 0,wearableCategories:B,minPriceCredits:M,maxPriceCredits:v,search:l||void 0,sortBy:X,isSmart:L||void 0,onSale:!0,discounted:E||void 0,listingType:W?void 0:"primary",contractAddresses:n!=null&&n.length?n:void 0},w={category:$,rarities:p.length?p:void 0,wearableCategories:B,search:l||void 0,sortBy:X,isWearableSmart:L||void 0,isOnSale:k==="not_for_sale"?!1:void 0,contractAddresses:n!=null&&n.length?n:void 0},{items:F,total:O,isLoading:U,isPlaceholderData:q,error:Te,hasNextPage:tt,isFetchingNextPage:_e,isFetchNextPageError:nt,fetchNextPage:st}=Ut(z?["shop-items",Q]:["catalog-items",w],a=>z?_t({...Q,first:qe,skip:a}):It({...w,first:qe,skip:a}),{enabled:$!=="names"&&!G}),J=O,{data:Ie,isError:ot,isPending:it}=Ke(),at=a=>Ie&&a.manaWei?Xe(a.manaWei,Ie):null,rt=z&&it&&F.some(a=>a.source==="legacy"),Le=U||q||rt,lt=U?15:Math.max(F.length,1),Ne=u.useRef(null);u.useEffect(()=>{U||q||!l||Ne.current===l||(Ne.current=l,ce("Shop Searched",{query:l,result_count:J}))},[l,U,q,J]);const Y=u.useRef("__init__");u.useEffect(()=>{if(U||q)return;const a=JSON.stringify({category:$,subCategory:S,rarities:p,min:M,max:v,sort:N,status:k,smart:L});if(Y.current==="__init__"||Y.current===a){Y.current=a;return}Y.current=a,ce("Shop Applied Filter",{filters:{category:$,sub_category:S,rarities:p,min_price_credits:M??null,max_price_credits:v??null,status:k,smart:L,sort:N},result_count:J})},[$,S,p,M,v,N,k,L,U,q,J]);function Ae(a){x({category:a,subCategory:null})}function ze(a){x({status:a})}function Me(a){x({rarities:p.includes(a)?p.filter(H=>H!==a):[...p,a]})}function ct(){x(j)}const V=[];(M!=null||v!=null)&&V.push({key:"price",label:s("filter.price"),onRemove:()=>{x({priceMin:"",priceMax:""})}});for(const a of Bt)p.includes(a)&&V.push({key:`rarity-${a}`,label:Rt(a),onRemove:()=>Me(a)});return L&&V.push({key:"smart",label:s("filter.smart"),onRemove:()=>x({smart:!1})}),E&&V.push({key:"deals",label:s("filter.deals"),onRemove:()=>x({deals:!1,sort:"newest"})}),k!==c&&V.push({key:"status",label:k==="all"?s("filter.statusAll"):k==="on_sale"?s("filter.onSale"):s("filter.notForSale"),onRemove:()=>ze(c)}),e.jsxs(an,{"data-testid":"browse",children:[$!=="names"&&e.jsxs(e.Fragment,{children:[A?e.jsx(rn,{onClick:()=>R(!1),"aria-hidden":!0}):null,e.jsxs(ln,{"data-open":A||void 0,"data-testid":"browse-sidebar",children:[e.jsxs(cn,{children:[e.jsx(dn,{children:s("assets.filters")}),e.jsx(hn,{onClick:()=>R(!1),"aria-label":s("assets.closeFilters"),children:"✕"})]}),e.jsx(pn,{children:e.jsx(Ft,{category:$,subCategory:S,onCategory:Ae,onSub:a=>x({subCategory:a}),priceMin:g,priceMax:I,onPriceMin:a=>x({priceMin:a}),onPriceMax:a=>x({priceMax:a}),rarities:p,onToggleRarity:Me,status:k,onStatus:ze,hideNames:i,smart:L,onSmart:a=>x({smart:a}),deals:E,onDeals:y?a=>x(a?{deals:!0,sort:"discount"}:{deals:!1,sort:"newest"}):void 0})}),e.jsx(un,{children:e.jsx(fn,{type:"button",onClick:()=>R(!1),children:s("assets.showItems")})})]})]}),e.jsx(mn,{children:$==="names"?e.jsx(qs,{onBack:()=>Ae("all")}):e.jsxs(e.Fragment,{children:[e.jsx(Pt,{sort:N,sortOptions:T,onSort:a=>x({sort:a}),total:O,loading:U||q,query:l,onOpenFilters:()=>R(!0),chips:V,onClearChips:ct}),ot&&z&&F.some(a=>a.source==="legacy")?e.jsx(Vs,{"data-variant":"warn",children:s("assets.marketUnavailable")}):null,Te?e.jsx(Dt,{message:s("assets.loadError"),testId:"browse-error"}):null,!Le&&F.length===0&&!Te?e.jsx(Tt,{testId:"browse-empty",icon:Nt,title:s("assets.empty.title"),body:m?e.jsxs(e.Fragment,{children:[s("assets.empty.searchBefore"),e.jsx("b",{children:m}),s("assets.empty.searchAfter")]}):s("assets.empty.filters"),cta:{label:s("assets.empty.cta"),onClick:()=>b("/overview")}}):e.jsxs(e.Fragment,{children:[e.jsx(on,{"data-testid":"grid",children:Le?e.jsx(Be,{count:lt}):e.jsxs(e.Fragment,{children:[F.map(a=>{if(!z)return e.jsx(te,{item:a,mode:"view"},ne(a));const H=a;if(H.source!=="legacy")return e.jsx(te,{item:a},ne(a));const ee=at(H);return ee==null?e.jsx(te,{item:a,mode:"view"},ne(a)):e.jsx(te,{item:{...H,priceCredits:ee}},ne(a))}),_e?e.jsx(Be,{count:6}):null]})}),e.jsx(Ot,{hasNextPage:tt,isFetching:_e,isError:nt,onLoadMore:()=>void st()})]})]})})]})}export{vo as Assets};
|
|
939
|
-
//# sourceMappingURL=Assets-DTDpj6EF.js.map
|