@dcl/shop 0.8.0 → 0.8.1-31010487922.commit-7e8c168
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-BpEWDEgt.js → Activity-D0ke7CND.js} +3 -3
- package/_assets/{AnimatedBackground-whCeMUgc.js → AnimatedBackground-ECFAiLHT.js} +1 -1
- package/_assets/Assets-BF1jmHXH.js +801 -0
- package/_assets/{Assets.styles-DuSEfvzx.js → Assets.styles-oV1FeEer.js} +2 -2
- package/_assets/{Authorizations-DTC0viZ7.js → Authorizations-Cc50JSP-.js} +3 -3
- package/_assets/{Cart-Ccdz2uXK.js → Cart-D4Ru3hhk.js} +3 -3
- package/_assets/{CircularProgress-BkDrovgn.js → CircularProgress-DqnGiMZe.js} +3 -3
- package/_assets/{Collection-LGp9HIwD.js → Collection-YEjRwps6.js} +10 -10
- package/_assets/{CollectionCarousel-CnR1So5p.js → CollectionCarousel-BeRnGCYD.js} +32 -32
- package/_assets/{ConstantsUtil-Di3dRDAF.js → ConstantsUtil-BkhvNc68.js} +1 -1
- package/_assets/{ContentClient-CRr9ZuRH.js → ContentClient-CGWTGqN4.js} +1 -1
- package/_assets/Creator-D__6ZkY9.js +306 -0
- package/_assets/{DeploymentBuilder-DYNbIRzZ.js → DeploymentBuilder-CFls_09j.js} +1 -1
- package/_assets/{ErrorNotice-BXWX_0E4.js → ErrorNotice-Q_ppMazV.js} +1 -1
- package/_assets/{ExchangeController-C_NxeYpZ.js → ExchangeController-qVRplriS.js} +1 -1
- package/_assets/{Faq-BXT0tU5Q.js → Faq-cnUUa754.js} +1 -1
- package/_assets/{GetCredits-CiVv6zS4.js → GetCredits-B0kU7FuE.js} +19 -19
- package/_assets/{Grow-d2ucdHqS.js → Grow-HgGzFpE3.js} +1 -1
- package/_assets/{HelpersUtil-BsEaPmaI.js → HelpersUtil-Ew-F4vBT.js} +1 -1
- package/_assets/{ItemDetail-BxGSP-it.js → ItemDetail-qqSyfKPj.js} +13 -13
- package/_assets/LazyEmoteControls-DNXHFm3g.js +2 -0
- package/_assets/{LoadMore-DcIHY8Kf.js → LoadMore-DSHozISi.js} +1 -1
- package/_assets/{ManaPricingBanner.styles-CxOm66Fo.js → ManaPricingBanner.styles-UwzPqB3A.js} +1 -1
- package/_assets/{MyAssets-BozGMHXd.js → MyAssets-fpg41I4K.js} +1 -1
- package/_assets/{MyFavorites-wLuasEwD.js → MyFavorites-Cd7TlT9w.js} +2 -2
- package/_assets/{NetworkUtil-EoWQDMpU.js → NetworkUtil-CO-1nCx-.js} +1 -1
- package/_assets/{NotFound-D9deZR03.js → NotFound-CTSrHIhr.js} +1 -1
- package/_assets/{NotificationsBell-DULYJmKs.js → NotificationsBell-DabycGGR.js} +1 -1
- package/_assets/{OutfitDetail-B28zoBrk.js → OutfitDetail-BCQPpfUl.js} +15 -15
- package/_assets/{OutfitPreview-GRiCEESc.js → OutfitPreview-CNVm-Mmy.js} +2 -2
- package/_assets/{OutfitStudio-D7500MAI.js → OutfitStudio-DF2ScfYx.js} +13 -13
- package/_assets/{StoreSettings-DK8rP1ia.js → StoreSettings-rrOuug9U.js} +9 -9
- package/_assets/{Success-zZ3HkHoh.js → Success-D8XBSWq_.js} +13 -13
- package/_assets/{SwapController-LhvwgYfv.js → SwapController-ZQOTT4HD.js} +1 -1
- package/_assets/{Tooltip-Dh6dtNV3.js → Tooltip-xIVvDLOp.js} +2 -2
- package/_assets/{TradeService-DjBvwlyu.js → TradeService-DmCFIQne.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-DyHElSGY.js → W3MFrameProviderSingleton-CRZ8AP2Q.js} +3 -3
- package/_assets/{WebCryptoP256-CGMChTjg.js → WebCryptoP256-DXjlDDMT.js} +1 -1
- package/_assets/authorizations-BixBV4TD.js +1 -0
- package/_assets/{basic-BwriZEC-.js → basic-CcERZRfI.js} +1 -1
- package/_assets/{biconomy-CeViGwXz.js → biconomy-BIgRCmes.js} +1 -1
- package/_assets/{browser-CqsLPmeb.js → browser-DrmA6_0y.js} +1 -1
- package/_assets/{browser-ponyfill-I5CKtKME.js → browser-ponyfill-fSxUcg6c.js} +1 -1
- package/_assets/{builder-CYMYImB0.js → builder-yYkfVnmO.js} +1 -1
- package/_assets/buy-C6t8EdJL.js +1 -0
- package/_assets/{buy-gasless-DIfZSqYX.js → buy-gasless-uXmROTXZ.js} +1 -1
- package/_assets/{categories-BbYXk3ti.js → categories-CGxAQH-_.js} +45 -33
- package/_assets/{ccip-CwIu0LfN.js → ccip-ClC71LrZ.js} +1 -1
- package/_assets/{ccip-Sex5PzD_.js → ccip-TCYs1z3C.js} +1 -1
- package/_assets/{chains-DPlhC0Sw.js → chains-BqVOrxrG.js} +1 -1
- package/_assets/{collectionPage.styles-CHbJGgda.js → collectionPage.styles-DxfKkCjZ.js} +4 -4
- package/_assets/{common-CNwVQ4p9.js → common-CkYiP-7J.js} +1 -1
- package/_assets/{controller-DfTp5YOO.js → controller-CAD_Ncxd.js} +2 -2
- package/_assets/{core-BEK9pA3q.js → core-C5ZUevur.js} +4 -4
- package/_assets/{createSvgIcon-CU05oHiV.js → createSvgIcon-DsB10OiJ.js} +4 -4
- package/_assets/{custom-BhGswfT_.js → custom-CizQsxK3.js} +1 -1
- package/_assets/{data-capture-nvuZRuzg.js → data-capture-Bwsb_w-3.js} +1 -1
- package/_assets/decimals-DO67KSdi.js +1 -0
- package/_assets/{decimals-B3pg7hp8.js → decimals-DyjR4aoq.js} +1 -1
- package/_assets/{detectExtension-DEjVJeUh.js → detectExtension-DWfhzRDC.js} +1 -1
- package/_assets/{disposePreview-B96DpOZy.js → disposePreview-flulL6RX.js} +1 -1
- package/_assets/{email-CieTjR51.js → email-CUebz27I.js} +1 -1
- package/_assets/{embedded-wallet-CI-r3uDX.js → embedded-wallet-DHuEKb2B.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-BlQXcSKx.js → emotion-styled.browser.esm-CVKaLYZX.js} +1 -1
- package/_assets/{engine-CHP2eI44.js → engine-CwQ6coYl.js} +1 -1
- package/_assets/errors-CBUUj0FX.js +1 -0
- package/_assets/estimate-l1-fee-BJpzTLgk.js +1 -0
- package/_assets/eth_estimateGas-CZdRIIy4.js +1 -0
- package/_assets/{eth_getStorageAt-BUYdIAYw.js → eth_getStorageAt-C4Yqzc5m.js} +1 -1
- package/_assets/eth_getTransactionCount-W_BA_-db.js +1 -0
- package/_assets/{ethereum-CliiIOgc.js → ethereum-DFU7Vz3W.js} +1 -1
- package/_assets/{ethers-DejfrZ8i.js → ethers-lk3HAbPB.js} +1 -1
- package/_assets/{execute-BJuyrz_X.js → execute-BkwPHs5d.js} +2 -2
- package/_assets/{extractIPFS-CUaS-9Rs.js → extractIPFS-DzfSqAlh.js} +1 -1
- package/_assets/{features-B9o2bxOE.js → features-COoncQLs.js} +1 -1
- package/_assets/{fetchTokenMetadata-DeEXEM9T.js → fetchTokenMetadata-DVdGF8SH.js} +2 -2
- package/_assets/{field.styles-BYH2xB5-.js → field.styles-ChGQv28p.js} +1 -1
- package/_assets/{fortmatic-EI5cNLV0.js → fortmatic-9W3d2zrH.js} +1 -1
- package/_assets/{get-bytecode-knYex1Eu.js → get-bytecode-BsB9WanS.js} +1 -1
- package/_assets/get-ecosystem-wallet-info-BpyDXVOG.js +1 -0
- package/_assets/{getBalance-pkY6oxRI.js → getBalance-NmIU2b2O.js} +2 -2
- package/_assets/{getInstalledModules-tywfzr6y.js → getInstalledModules-BE5-ES5I.js} +1 -1
- package/_assets/{getNFT-CYm9n3Xd.js → getNFT-BGxpYRoe.js} +2 -2
- package/_assets/getNFT-YEPEG38f.js +1 -0
- package/_assets/{grid.styles-DoBUqqdT.js → grid.styles-D2J96SwT.js} +1 -1
- package/_assets/{hashTypedData-DpkGfcdz.js → hashTypedData-CApfLnos.js} +1 -1
- package/_assets/{hashTypedData-ONHChmVW.js → hashTypedData-CcYMI56c.js} +1 -1
- package/_assets/{in-app-GxZkDa12.js → in-app-CKc3O4Sv.js} +1 -1
- package/_assets/{in-app-wallet-calls-B91UMKOr.js → in-app-wallet-calls-n0DVkHti.js} +1 -1
- package/_assets/index-0kdmGL8P.js +3390 -0
- package/_assets/index-3QPqSkja.js +1 -0
- package/_assets/{index-DEPPVv3y.js → index-4iaG5DfH.js} +1 -1
- package/_assets/{index-DOxWmjOH.js → index-6S3FMUEk.js} +1 -1
- package/_assets/{index-5GNI01Ww.js → index-6X3q9jcE.js} +1 -1
- package/_assets/{index-CSlo2BeJ.js → index-7vaOJntM.js} +1 -1
- package/_assets/{index-BJM0Y8Dj.js → index-9ZdEDnsf.js} +1 -1
- package/_assets/{index-L36hhrTC.js → index-B0Nj1Xpe.js} +1 -1
- package/_assets/{index-CMV7iaeR.js → index-B7SwXBLX.js} +1 -1
- package/_assets/{index-L_H5aHd6.js → index-BAuvCwBS.js} +1 -1
- package/_assets/{index-BACQuryf.js → index-BBAMyxaq.js} +1 -1
- package/_assets/{index-JweqbyGF.js → index-BKGDTHnI.js} +2 -2
- package/_assets/{index-BsE741-i.js → index-BW8WltKr.js} +1 -1
- package/_assets/{index-B49Ra42Y.js → index-Be2ZgTC2.js} +2 -2
- package/_assets/{index-C33PRPh0.js → index-BhB231bL.js} +1 -1
- package/_assets/{index-BkDtNpJ9.js → index-BhLXJT-A.js} +1 -1
- package/_assets/{index-Bk7mlw_4.js → index-BiCSZsIb.js} +1 -1
- package/_assets/{index-_943ql8C.js → index-BkyUhgF6.js} +1 -1
- package/_assets/{index-CRQCirWA.js → index-Bm2p-zGj.js} +1 -1
- package/_assets/{index-DMNGIYYv.js → index-BmnaNalD.js} +1 -1
- package/_assets/{index-Cv1Bu0gQ.js → index-BsSKIwHD.js} +1 -1
- package/_assets/{index-Bzt1xZyM.js → index-BxR_qhCB.js} +1 -1
- package/_assets/{index-__99MHKr.js → index-BxmGjj2a.js} +2 -2
- package/_assets/{index-CTpdUOYC.js → index-BzcwOGk4.js} +1 -1
- package/_assets/{index-OxDwxhIP.js → index-BzkS1G6W.js} +1 -1
- package/_assets/{index-BpBengnA.js → index-C3Stq5lv.js} +1 -1
- package/_assets/{index-BH5LU_4T.js → index-C59CJSbo.js} +1 -1
- package/_assets/{index-l4-9ZZLe.js → index-C6MGFWmE.js} +3 -3
- package/_assets/{index-B-FT9tly.js → index-C7RtdG3Z.js} +1 -1
- package/_assets/{index-DxSEHau1.js → index-CA4L-7AN.js} +1 -1
- package/_assets/{index--dDDhPCb.js → index-CBeTDdme.js} +1 -1
- package/_assets/{index-DftqIOqz.js → index-CC3KVZ-C.js} +1 -1
- package/_assets/{index-t0T-6ZrA.js → index-CF7r6gRE.js} +1 -1
- package/_assets/{index-DI-3MKLG.js → index-CJEkcTww.js} +1 -1
- package/_assets/{index-Cu9CgJO0.js → index-CLpv_ZJ-.js} +1 -1
- package/_assets/{index-OqCfgEJv.js → index-CMEuS0ny.js} +1 -1
- package/_assets/{index-BX8-GtYO.js → index-CVOcWyr3.js} +3 -3
- package/_assets/{index-INHGq5Es.js → index-CcVPLkSq.js} +1 -1
- package/_assets/{index-CIQQJerR.js → index-CczTfLT1.js} +1 -1
- package/_assets/{index-B6MX4qjW.js → index-CgeqYqkT.js} +3 -3
- package/_assets/{index-BFFeuHAN.js → index-CpR4TF12.js} +1 -1
- package/_assets/{index-Bmq5dKA-.js → index-CtdnhIV0.js} +1 -1
- package/_assets/{index-73vZ1csI.js → index-CxzejZj0.js} +1 -1
- package/_assets/{index-B_JiruyT.js → index-CydESP8d.js} +1 -1
- package/_assets/{index-D4Aqu34H.js → index-D0cG_Wab.js} +1 -1
- package/_assets/{index-B4d9kGHc.js → index-DGxvuwYE.js} +1 -1
- package/_assets/{index-DOiEVNYb.js → index-DN1EN0BQ.js} +1 -1
- package/_assets/{index-G6kG-9qx.js → index-DRT-S6qO.js} +1 -1
- package/_assets/{index-DPmmgd_P.js → index-DaUjgiMa.js} +2 -2
- package/_assets/{index-Bk_uITsR.js → index-DhLM0XTE.js} +1 -1
- package/_assets/{index-C5F4093w.js → index-DmMFljl8.js} +1 -1
- package/_assets/{index-BYlZ9YbP.js → index-DxEnMKm3.js} +1 -1
- package/_assets/{index-DhNV3-07.js → index-DxQd7A0J.js} +1 -1
- package/_assets/{index-BkMwrTJ3.js → index-DzGUGKu8.js} +1 -1
- package/_assets/{index-E7P9-xl1.js → index-IpNLzHgx.js} +1 -1
- package/_assets/{index-Dfv984cL.js → index-KJ7hHQUO.js} +1 -1
- package/_assets/{index-CtybxktV.js → index-U0B_ruvX.js} +1 -1
- package/_assets/{index-BWh4oQv2.js → index-Y97601kH.js} +1 -1
- package/_assets/{index-Cakc_FOK.js → index-Yr43kIYd.js} +1 -1
- package/_assets/{index-DGI43LaB.js → index-_jZ2ge8B.js} +1 -1
- package/_assets/{index-D3BUTCsu.js → index-c7dUn7oS.js} +1 -1
- package/_assets/{index-De1oZcbD.js → index-hCVFHVic.js} +11 -11
- package/_assets/{index-CrYXAQF7.js → index-mRgaZ-_k.js} +1 -1
- package/_assets/{index-8TbyLPoA.js → index-wnob8aZw.js} +2 -2
- package/_assets/{index.es-DD8zy1OU.js → index.es-Bt1vrHLy.js} +1 -1
- package/_assets/{index.es-7bD3vSL6.js → index.es-CQZWy8u6.js} +4 -4
- package/_assets/{index.es-DdtYF7po.js → index.es-DrGoY9Xx.js} +1 -1
- package/_assets/{index.es-DQ3AciL_.js → index.es-DrfFlp1M.js} +1 -1
- package/_assets/{linkAccount-BodpWbRq.js → linkAccount-CNeA4_rd.js} +1 -1
- package/_assets/{localBatchGatewayRequest-Cqcm6wSH.js → localBatchGatewayRequest-DjDL8c_C.js} +1 -1
- package/_assets/{native-DfrS-44q.js → native-D1Bt7nPF.js} +1 -1
- package/_assets/{networks-BsQOwKdI.js → networks-BICt4Cqn.js} +1 -1
- package/_assets/{onramp-CutBYUPg.js → onramp-DG7xtPwJ.js} +1 -1
- package/_assets/{openzeppelin-K-AgEyIf.js → openzeppelin-DT5thYhO.js} +1 -1
- package/_assets/{ownerOf-Dw2VC0ue.js → ownerOf-CSle-7WO.js} +1 -1
- package/_assets/parseNft-DeY1x__c.js +2 -0
- package/_assets/{parseSignature-DnyPA3OO.js → parseSignature-BwH4RvfH.js} +1 -1
- package/_assets/{parseSignature-BrLHTUOQ.js → parseSignature-C3vshYUJ.js} +3 -3
- package/_assets/{passkeys-zi3xVlV1.js → passkeys-BL7MgzVl.js} +1 -1
- package/_assets/{pay-with-exchange-pvINEHpN.js → pay-with-exchange-qF0q90BH.js} +1 -1
- package/_assets/{prepare-contract-call-BnXbUbQT.js → prepare-contract-call-Nm9e1q7x.js} +1 -1
- package/_assets/{qr-overlay-CLKlyiw2.js → qr-overlay-hZqIuLIW.js} +3 -3
- package/_assets/{react-DehiWSvs.js → react-OEOSdkUk.js} +1 -1
- package/_assets/{receive-BLXAcZ6B.js → receive-COE1EvWZ.js} +1 -1
- package/_assets/{resolveImplementation-CfgIWk0L.js → resolveImplementation-HLbNG2Vp.js} +1 -1
- package/_assets/{rpc-C2ZJH6qL.js → rpc-lGsIPm3Z.js} +1 -1
- package/_assets/{secp256k1-DQNL-k-L.js → secp256k1-BBTaGZ_Y.js} +1 -1
- package/_assets/{secp256k1-BPdRWJXL.js → secp256k1-CQZtwuUm.js} +1 -1
- package/_assets/{secp256k1--GaGebUJ.js → secp256k1-GE4zGOQU.js} +1 -1
- package/_assets/{send-Cl_aA-ga.js → send-BJWcTbds.js} +1 -1
- package/_assets/{send-batch-transaction-1ElceULH.js → send-batch-transaction-Ba7JslR9.js} +1 -1
- package/_assets/{send-eip712-transaction-BV_DsAbU.js → send-eip712-transaction-BSFP8vKh.js} +2 -2
- package/_assets/send-gasless-transaction-dOOl0_oC.js +2 -0
- package/_assets/{send-transaction-DWimy5qX.js → send-transaction-CMc6wANs.js} +2 -2
- package/_assets/{sendMetaTransaction-B6HBQ8NH.js → sendMetaTransaction-DqzmtvVe.js} +1 -1
- package/_assets/{sendRawTransaction-6C6FbT-9.js → sendRawTransaction-zYZQ5Tfd.js} +3 -3
- package/_assets/{sentry-973sfbO9.js → sentry-B60WY-np.js} +1 -1
- package/_assets/{serializeTransaction-DJpTnAzh.js → serializeTransaction-CDXHLkZy.js} +1 -1
- package/_assets/{session-proposal-B1fE_9QJ.js → session-proposal-B6LJtMoi.js} +1 -1
- package/_assets/{session-request-DVlIT2Cz.js → session-request-B2L7VQbP.js} +2 -2
- package/_assets/{sha256--PXCNFKm.js → sha256-B3W1x8Ou.js} +1 -1
- package/_assets/{signing-C2OtEE_7.js → signing-DH8o0qgI.js} +3 -3
- package/_assets/{socials-CwiK-Oz5.js → socials-De6pYslK.js} +1 -1
- package/_assets/{styled-INC_AiMB.js → styled-Dlzz4gCY.js} +2 -2
- package/_assets/{swaps-Cz6uslns.js → swaps-C1ulCDV2.js} +1 -1
- package/_assets/{thirdweb-QagPg_5G.js → thirdweb-BB9WKhiC.js} +3 -3
- package/_assets/{to-serializable-transaction-CI3ePtUl.js → to-serializable-transaction-BxPcLWhE.js} +2 -2
- package/_assets/{totalSupply-DEpB2B-R.js → totalSupply-BfIXxtR1.js} +1 -1
- package/_assets/{transaction-BRB0QRZP.js → transaction-C7nbuBwl.js} +1 -1
- package/_assets/{transactionReceipt-B2jt8_c5.js → transactionReceipt-D9BW4O3E.js} +1 -1
- package/_assets/{transactions-DuxoNdoM.js → transactions-CA_3u_cG.js} +1 -1
- package/_assets/{useCreditPacks-CeoLpXxe.js → useCreditPacks-D4YqwUaM.js} +1 -1
- package/_assets/useImportable-B7DZOe6X.js +1 -0
- package/_assets/{useInfiniteGrid-D9jUBgv1.js → useInfiniteGrid-DDAFkDbL.js} +1 -1
- package/_assets/useTheme-jEgFLoWg.js +1 -0
- package/_assets/useUrlFilters-DABDXRpV.js +1 -0
- package/_assets/{utils-B9hEgCzc.js → utils-BkRfOA0C.js} +1 -1
- package/_assets/{verifyHash-BWYK-_oQ.js → verifyHash-CfhhiiiM.js} +1 -1
- package/_assets/{w3m-modal-C_cXhjYQ.js → w3m-modal-Dgkl_pUo.js} +1 -1
- package/_assets/{w3m-modal-DeCOfGwP.js → w3m-modal-oirp7A4F.js} +1 -1
- package/_assets/{wait-for-tx-receipt-D52q1hNL.js → wait-for-tx-receipt-DJ9PgMUD.js} +1 -1
- package/_assets/{wallets-BiRgfoDB.js → wallets-Bj-wvS3Z.js} +5 -5
- package/_assets/{web-connector-CI1NmWV2.js → web-connector-Djk4hyaT.js} +3 -3
- package/_assets/{writeContract-J3cBsNY4.js → writeContract-oXMRoqds.js} +1 -1
- package/_assets/{zora-sepolia-Dv22rzxP.js → zora-sepolia-DOetv30E.js} +1 -1
- package/_assets/{zoraTestnet-zRF1Vikt.js → zoraTestnet-nCZwff13.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Assets-CH4B54Xy.js +0 -801
- package/_assets/Creator-2jJw01qB.js +0 -306
- package/_assets/LazyEmoteControls-D7IWhRxC.js +0 -2
- package/_assets/authorizations-w-yCHVpU.js +0 -1
- package/_assets/buy-DIVuBMot.js +0 -1
- package/_assets/decimals-BpjIyOut.js +0 -1
- package/_assets/errors-BAqCaL6O.js +0 -1
- package/_assets/estimate-l1-fee-D_pdXw9y.js +0 -1
- package/_assets/eth_estimateGas-BmR_JMy9.js +0 -1
- package/_assets/eth_getTransactionCount-riJ8hG2K.js +0 -1
- package/_assets/get-ecosystem-wallet-info-C5KzHIh2.js +0 -1
- package/_assets/getNFT-BXJA28mr.js +0 -1
- package/_assets/index-CcbRdBPP.js +0 -1
- package/_assets/index-DbCMsBDL.js +0 -3504
- package/_assets/parseNft-pYm9OVKe.js +0 -2
- package/_assets/send-gasless-transaction-eTi92Rfc.js +0 -2
- package/_assets/useImportable-CHlGR9sz.js +0 -1
- package/_assets/useTheme-HGI9qk_L.js +0 -1
|
@@ -1,801 +0,0 @@
|
|
|
1
|
-
import{d as Le,r as u,j as e,e as nt}from"./react-DehiWSvs.js";import{c as U,r as st,bh as rt,bi as ot,av as it,a as at,s,t,k as Ue,b7 as lt,x as ct,aA as be,b as n,v as dt,I as R,w as M,bU as se,b6 as pt,R as ee,bm as ht,bl as xt,q as He,ai as Oe,m as Ge,l as ft,af as mt,ak as Ie,al as V,aC as ut,bF as gt}from"./index-DbCMsBDL.js";import{g as bt,h as yt,i as wt,j as jt,k as vt,C as $t,l as Ct,o as kt,m as St,n as Et,M as Rt,u as _t,E as Tt,v as zt,p as It,q as At,r as Nt,s as Pt,t as Mt}from"./Assets.styles-DuSEfvzx.js";import{S as Ae,R as Wt,F as Bt,d as Ft}from"./categories-BbYXk3ti.js";import{L as Lt}from"./LoadMore-DcIHY8Kf.js";import{u as Ut}from"./useInfiniteGrid-D9jUBgv1.js";import{E as Ht}from"./ErrorNotice-BXWX_0E4.js";import{d as Ot}from"./dcl-schemas-CmtP3U6y.js";import{s as Gt,G as Dt,w as qt,S as Vt}from"./buy-gasless-DIfZSqYX.js";import{s as Zt,k as Kt}from"./buy-DIVuBMot.js";import{f as Jt}from"./errors-BAqCaL6O.js";import{J as Qt,C as Xt,B as ye}from"./ethers-DejfrZ8i.js";import{n as Yt}from"./Tooltip-Dh6dtNV3.js";import{G as en}from"./grid.styles-DoBUqqdT.js";import"./sentry-973sfbO9.js";import"./intl-CBcMB1D2.js";import"./authorizations-w-yCHVpU.js";import"./sendMetaTransaction-B6HBQ8NH.js";function Z(r){const i=r.source??"item",h=r.tradeId||`${r.contractAddress}-${r.tokenId??r.itemId??""}`;return`${i}:${h}`}const H="100000000000000000000",De=2,te=15,tn=/^[a-zA-Z0-9]+$/;function Ne(r){const i=r.trim();return i.length===0?{ok:!1,reason:"empty"}:tn.test(i)?i.length<De?{ok:!1,reason:"too-short"}:i.length>te?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function nn(r){return r.replace(/[^a-zA-Z0-9]/g,"").slice(0,te)}const sn=["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 rn(){return U.chainId===Number(Ot.ChainId.MATIC_MAINNET)?Pe.mainnet:Pe.sepolia}async function on(r,i={}){var l;const{rpc:h,address:c}=rn(),d=new Qt(h),a=new Xt(c,sn,d);console.info(`[names] availability check → DCLRegistrar(${c}).available("${r}") on ${h}`);const f=await a.available(r);if((l=i.signal)!=null&&l.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${r}" available=${f}`),f?"available":"taken"}const an="https://app.across.to/api";class we extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}function ln(r){return it(H,r)}async function cn(r,i,h={}){var l;const c=h.chainId??U.chainId,d=h.provider??"across",a=`${U.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(i)}&chainId=${c}&provider=${d}`,f=await at(a,{method:"GET",identity:r,metadata:{}});if(!f.ok){let p;try{p=(l=await f.json())==null?void 0:l.code}catch{}throw p==="ROUTE_COST_TOO_HIGH"?new we:new Error(`fetchNameCreditRoute ${f.status}`)}return f.json()}function dn(r,i){const h=ye.from(r.availableAmount),d=ye.from(H).sub(h);return{credits:[{value:r.amount,expiresAt:Number(r.expiresAt),salt:Kt(r.id)}],creditsSignatures:[r.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:H}}async function pn(r,i={}){const h=an,c=i.intervalMs??1e4,d=i.maxAttempts??60;let a={status:"pending",destinationTxHash:null,actionsSucceeded:!1};for(let f=0;f<d;f++){try{const l=await fetch(`${h}/deposit/status?originChainId=137&depositTxHash=${r}`);if(l.ok){const p=await l.json(),x=(p.status??"pending").toLowerCase(),y=p.fillTx??p.fillTxnRef??null,m=p.actionsSucceeded!==!1;if(x==="filled")return{status:"filled",destinationTxHash:y,actionsSucceeded:m};if(x==="refunded"||x==="expired")return{status:x,destinationTxHash:null,actionsSucceeded:!1};a={status:"pending",destinationTxHash:y,actionsSucceeded:m}}}catch{}f<d-1&&await new Promise(l=>setTimeout(l,c))}return a}async function hn(r){const{name:i,identity:h,signer:c}=r,d=r.chainId??U.chainId,a=r.provider??"across",f=(r.beneficiary??await c.getAddress()).toLowerCase();let l=null,p=!1;console.info("[names] register start",{name:i,buyer:f,chainId:d,provider:a});try{const x=await st(d),y=ln(x);console.info("[names] step 1/6 sized reservation",{usdCents:y,manaRate:x});const m=await cn(h,i,{chainId:d,provider:a});console.info("[names] step 2/6 route fetched",{target:m.externalCall.target,selector:m.externalCall.selector,provider:m.provider,quoteId:m.quoteId});const C=await rt(h,y);if(l=C.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:C.credit.id,maxCreditedValue:C.maxCreditedValue}),ye.from(C.maxCreditedValue).lt(H))throw new Error("Credit under-sized for the name price");const k=dn(C.credit,m);let g;try{g=await Gt({chainId:d,buyer:f,signer:c,args:k})}catch(b){if(!(b instanceof Dt))throw b;g=await Zt(d,k,c)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:g}),await qt(g),p=!0,console.info("[names] step 5/6 origin tx confirmed",{originTxHash:g}),a==="across"){const b=await pn(g,r.acrossPoll);if(console.info("[names] step 6/6 across status",b),b.status==="pending")return{status:"pending",originTxHash:g};if(b.status!=="filled"||!b.actionsSucceeded)throw new Error("The name could not be registered on Ethereum; your funds were recovered.");return{status:"registered",originTxHash:g,destinationTxHash:b.destinationTxHash}}return{status:"pending",originTxHash:g}}catch(x){if(console.error("[names] register failed — raw error:",x,{name:i,buyer:f,originConfirmed:p}),x instanceof Vt)return{status:"pending",originTxHash:x.txHash};if(l&&!p&&await ot(h,[l]).catch(()=>{}),x instanceof we)throw x;const y=new Error(Jt(x,"Couldn't register the name. Please try again.",{sale:!0}));throw y.cause=x,y}}const xn=s.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
|
-
`,fn=s.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=s.div`
|
|
24
|
-
display: flex;
|
|
25
|
-
align-items: flex-start;
|
|
26
|
-
justify-content: space-between;
|
|
27
|
-
gap: 12px;
|
|
28
|
-
`,oe=s.h2`
|
|
29
|
-
margin: 0;
|
|
30
|
-
font-family: ${t.font.sans};
|
|
31
|
-
font-weight: 700;
|
|
32
|
-
font-size: 22px;
|
|
33
|
-
line-height: 1.2;
|
|
34
|
-
color: ${t.colors.text};
|
|
35
|
-
`,ie=s.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
|
-
`,ae=s.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
|
-
`,le=s.hr`
|
|
73
|
-
border: 0;
|
|
74
|
-
border-top: 1px solid ${t.colors.line};
|
|
75
|
-
margin: 16px 0;
|
|
76
|
-
`,ce=s.div`
|
|
77
|
-
display: flex;
|
|
78
|
-
align-items: center;
|
|
79
|
-
gap: 16px;
|
|
80
|
-
`,de=s.div`
|
|
81
|
-
flex: none;
|
|
82
|
-
display: grid;
|
|
83
|
-
place-items: center;
|
|
84
|
-
width: 56px;
|
|
85
|
-
height: 56px;
|
|
86
|
-
border-radius: 10px;
|
|
87
|
-
background: ${t.gradients.amethyst};
|
|
88
|
-
color: ${t.colors.white};
|
|
89
|
-
|
|
90
|
-
.ico {
|
|
91
|
-
width: 30px;
|
|
92
|
-
height: 30px;
|
|
93
|
-
}
|
|
94
|
-
`,pe=s.div`
|
|
95
|
-
flex: 1;
|
|
96
|
-
min-width: 0;
|
|
97
|
-
`,he=s.div`
|
|
98
|
-
font-family: ${t.font.sans};
|
|
99
|
-
font-weight: 700;
|
|
100
|
-
font-size: 20px;
|
|
101
|
-
line-height: 1.3;
|
|
102
|
-
color: ${t.colors.text};
|
|
103
|
-
overflow: hidden;
|
|
104
|
-
text-overflow: ellipsis;
|
|
105
|
-
white-space: nowrap;
|
|
106
|
-
|
|
107
|
-
span {
|
|
108
|
-
font-weight: 400;
|
|
109
|
-
color: ${t.colors.muted2};
|
|
110
|
-
}
|
|
111
|
-
`,xe=s.div`
|
|
112
|
-
font-family: ${t.font.sans};
|
|
113
|
-
font-size: 14px;
|
|
114
|
-
color: ${t.colors.muted2};
|
|
115
|
-
`,fe=s.div`
|
|
116
|
-
flex: none;
|
|
117
|
-
display: flex;
|
|
118
|
-
align-items: center;
|
|
119
|
-
gap: 6px;
|
|
120
|
-
font-family: ${t.font.sans};
|
|
121
|
-
font-weight: 600;
|
|
122
|
-
font-size: 24px;
|
|
123
|
-
color: ${t.colors.text};
|
|
124
|
-
|
|
125
|
-
.ico {
|
|
126
|
-
width: 22px;
|
|
127
|
-
height: 22px;
|
|
128
|
-
color: ${t.colors.brandViolet};
|
|
129
|
-
}
|
|
130
|
-
`,mn=s.div`
|
|
131
|
-
margin-top: 16px;
|
|
132
|
-
padding: 16px;
|
|
133
|
-
border-radius: 12px;
|
|
134
|
-
background: #f2e7fc;
|
|
135
|
-
`,un=s.div`
|
|
136
|
-
font-family: ${t.font.sans};
|
|
137
|
-
font-weight: 700;
|
|
138
|
-
font-size: 16px;
|
|
139
|
-
color: ${t.colors.text};
|
|
140
|
-
`,gn=s.p`
|
|
141
|
-
margin: 8px 0 16px;
|
|
142
|
-
font-family: ${t.font.sans};
|
|
143
|
-
font-size: 14px;
|
|
144
|
-
line-height: 1.5;
|
|
145
|
-
color: ${t.colors.text2};
|
|
146
|
-
|
|
147
|
-
b {
|
|
148
|
-
font-weight: 700;
|
|
149
|
-
color: ${t.colors.brandViolet};
|
|
150
|
-
}
|
|
151
|
-
`,bn=s.label`
|
|
152
|
-
display: flex;
|
|
153
|
-
align-items: center;
|
|
154
|
-
gap: 8px;
|
|
155
|
-
padding: 12px 14px;
|
|
156
|
-
background: ${t.colors.white};
|
|
157
|
-
border: 1px solid ${t.colors.text};
|
|
158
|
-
border-radius: 10px;
|
|
159
|
-
cursor: text;
|
|
160
|
-
|
|
161
|
-
&:focus-within {
|
|
162
|
-
border-color: ${t.colors.magenta};
|
|
163
|
-
}
|
|
164
|
-
`,yn=s.span`
|
|
165
|
-
flex: none;
|
|
166
|
-
font-family: ${t.font.sans};
|
|
167
|
-
font-size: 18px;
|
|
168
|
-
color: ${t.colors.muted2};
|
|
169
|
-
`,wn=s.input`
|
|
170
|
-
flex: 0 1 auto;
|
|
171
|
-
min-width: 0;
|
|
172
|
-
border: 0;
|
|
173
|
-
outline: none;
|
|
174
|
-
background: transparent;
|
|
175
|
-
font-family: ${t.font.sans};
|
|
176
|
-
font-size: 16px;
|
|
177
|
-
font-weight: 600;
|
|
178
|
-
color: ${t.colors.text};
|
|
179
|
-
|
|
180
|
-
&::placeholder {
|
|
181
|
-
color: ${t.colors.muted2};
|
|
182
|
-
font-weight: 400;
|
|
183
|
-
}
|
|
184
|
-
`,jn=s.span`
|
|
185
|
-
flex: none;
|
|
186
|
-
font-family: ${t.font.sans};
|
|
187
|
-
font-size: 16px;
|
|
188
|
-
color: ${t.colors.muted2};
|
|
189
|
-
`,Me=s.button`
|
|
190
|
-
margin-top: 16px;
|
|
191
|
-
width: 100%;
|
|
192
|
-
height: 52px;
|
|
193
|
-
border: 0;
|
|
194
|
-
border-radius: 12px;
|
|
195
|
-
cursor: pointer;
|
|
196
|
-
background: ${t.gradients.amethyst};
|
|
197
|
-
color: ${t.colors.softWhite};
|
|
198
|
-
font-family: ${t.font.sans};
|
|
199
|
-
font-weight: 600;
|
|
200
|
-
font-size: 15px;
|
|
201
|
-
letter-spacing: 0.46px;
|
|
202
|
-
text-transform: uppercase;
|
|
203
|
-
|
|
204
|
-
&:hover:not(:disabled) {
|
|
205
|
-
filter: brightness(1.06);
|
|
206
|
-
}
|
|
207
|
-
&:focus-visible {
|
|
208
|
-
outline: 2px solid ${t.colors.accent};
|
|
209
|
-
outline-offset: 2px;
|
|
210
|
-
}
|
|
211
|
-
&:disabled {
|
|
212
|
-
cursor: not-allowed;
|
|
213
|
-
background: #ddc7ec;
|
|
214
|
-
color: #f4ecfa;
|
|
215
|
-
}
|
|
216
|
-
`,vn=s.div`
|
|
217
|
-
display: flex;
|
|
218
|
-
flex-direction: column;
|
|
219
|
-
align-items: flex-start;
|
|
220
|
-
gap: 20px;
|
|
221
|
-
padding: 32px 0 8px;
|
|
222
|
-
`,$n=s.img`
|
|
223
|
-
align-self: center;
|
|
224
|
-
width: 56px;
|
|
225
|
-
height: 56px;
|
|
226
|
-
`,Cn=s.div`
|
|
227
|
-
font-family: ${t.font.sans};
|
|
228
|
-
font-weight: 700;
|
|
229
|
-
font-size: 18px;
|
|
230
|
-
color: ${t.colors.text};
|
|
231
|
-
`,kn=s.div`
|
|
232
|
-
display: flex;
|
|
233
|
-
align-items: center;
|
|
234
|
-
gap: 12px;
|
|
235
|
-
width: 100%;
|
|
236
|
-
`,Sn=s.div`
|
|
237
|
-
flex: 1;
|
|
238
|
-
height: 8px;
|
|
239
|
-
border-radius: 999px;
|
|
240
|
-
background: ${t.colors.chip};
|
|
241
|
-
overflow: hidden;
|
|
242
|
-
|
|
243
|
-
span {
|
|
244
|
-
display: block;
|
|
245
|
-
height: 100%;
|
|
246
|
-
width: 40%;
|
|
247
|
-
border-radius: 999px;
|
|
248
|
-
background: ${t.gradients.amethyst};
|
|
249
|
-
animation: nameProgress 1.1s ease-in-out infinite;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
@keyframes nameProgress {
|
|
253
|
-
0% {
|
|
254
|
-
transform: translateX(-100%);
|
|
255
|
-
}
|
|
256
|
-
100% {
|
|
257
|
-
transform: translateX(320%);
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
`,En=s.span`
|
|
261
|
-
flex: none;
|
|
262
|
-
font-family: ${t.font.sans};
|
|
263
|
-
font-size: 14px;
|
|
264
|
-
color: ${t.colors.muted};
|
|
265
|
-
`,Rn=s.div`
|
|
266
|
-
display: flex;
|
|
267
|
-
flex-direction: column;
|
|
268
|
-
align-items: center;
|
|
269
|
-
gap: 16px;
|
|
270
|
-
padding: 24px;
|
|
271
|
-
border-radius: 12px;
|
|
272
|
-
background: #e2f5ea;
|
|
273
|
-
text-align: center;
|
|
274
|
-
`,_n=s.div`
|
|
275
|
-
display: grid;
|
|
276
|
-
place-items: center;
|
|
277
|
-
width: 56px;
|
|
278
|
-
height: 56px;
|
|
279
|
-
border-radius: 50%;
|
|
280
|
-
background: ${t.colors.ok};
|
|
281
|
-
color: ${t.colors.white};
|
|
282
|
-
|
|
283
|
-
.ico {
|
|
284
|
-
width: 30px;
|
|
285
|
-
height: 30px;
|
|
286
|
-
}
|
|
287
|
-
`,Tn=s.p`
|
|
288
|
-
margin: 0;
|
|
289
|
-
font-family: ${t.font.sans};
|
|
290
|
-
font-size: 16px;
|
|
291
|
-
line-height: 1.4;
|
|
292
|
-
color: ${t.colors.text};
|
|
293
|
-
|
|
294
|
-
b {
|
|
295
|
-
font-weight: 700;
|
|
296
|
-
}
|
|
297
|
-
`,We=s.div`
|
|
298
|
-
display: flex;
|
|
299
|
-
gap: 16px;
|
|
300
|
-
margin-top: 20px;
|
|
301
|
-
|
|
302
|
-
${t.media.maxWidth("mobile")} {
|
|
303
|
-
flex-direction: column;
|
|
304
|
-
}
|
|
305
|
-
`,Be=s.button`
|
|
306
|
-
flex: 1;
|
|
307
|
-
height: 48px;
|
|
308
|
-
border: 1px solid ${t.colors.accent};
|
|
309
|
-
border-radius: 8px;
|
|
310
|
-
background: ${t.colors.white};
|
|
311
|
-
color: ${t.colors.accent};
|
|
312
|
-
cursor: pointer;
|
|
313
|
-
font-family: ${t.font.sans};
|
|
314
|
-
font-weight: 600;
|
|
315
|
-
font-size: 13px;
|
|
316
|
-
letter-spacing: 0.46px;
|
|
317
|
-
text-transform: uppercase;
|
|
318
|
-
|
|
319
|
-
&:hover {
|
|
320
|
-
background: rgba(105, 31, 169, 0.06);
|
|
321
|
-
}
|
|
322
|
-
&:focus-visible {
|
|
323
|
-
outline: 2px solid ${t.colors.accent};
|
|
324
|
-
outline-offset: 2px;
|
|
325
|
-
}
|
|
326
|
-
`,zn=s.a`
|
|
327
|
-
flex: 1;
|
|
328
|
-
display: inline-flex;
|
|
329
|
-
align-items: center;
|
|
330
|
-
justify-content: center;
|
|
331
|
-
height: 48px;
|
|
332
|
-
border-radius: 8px;
|
|
333
|
-
background: ${t.colors.dclRed};
|
|
334
|
-
color: ${t.colors.softWhite};
|
|
335
|
-
cursor: pointer;
|
|
336
|
-
text-decoration: none;
|
|
337
|
-
font-family: ${t.font.sans};
|
|
338
|
-
font-weight: 600;
|
|
339
|
-
font-size: 13px;
|
|
340
|
-
letter-spacing: 0.46px;
|
|
341
|
-
text-transform: uppercase;
|
|
342
|
-
|
|
343
|
-
&:hover {
|
|
344
|
-
filter: brightness(1.05);
|
|
345
|
-
}
|
|
346
|
-
&:focus-visible {
|
|
347
|
-
outline: 2px solid ${t.colors.accent};
|
|
348
|
-
outline-offset: 2px;
|
|
349
|
-
}
|
|
350
|
-
`,me=s.div`
|
|
351
|
-
display: flex;
|
|
352
|
-
align-items: flex-start;
|
|
353
|
-
gap: 12px;
|
|
354
|
-
padding: 16px;
|
|
355
|
-
margin-top: 8px;
|
|
356
|
-
border-radius: 12px;
|
|
357
|
-
background: rgba(255, 45, 85, 0.1);
|
|
358
|
-
font-family: ${t.font.sans};
|
|
359
|
-
font-size: 14px;
|
|
360
|
-
line-height: 1.5;
|
|
361
|
-
color: ${t.colors.text};
|
|
362
|
-
|
|
363
|
-
.ico {
|
|
364
|
-
width: 22px;
|
|
365
|
-
height: 22px;
|
|
366
|
-
flex: none;
|
|
367
|
-
color: ${t.colors.dclRed};
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
/**
|
|
371
|
-
* Informational, not a failure. Used for "your payment went through, the NAME is on its way" and for the
|
|
372
|
-
* reason a purchase is not available yet (no price, not enough credits) — none of which is an error, and
|
|
373
|
-
* all of which would contradict themselves rendered in the red error treatment.
|
|
374
|
-
*/
|
|
375
|
-
&[data-tone='info'] {
|
|
376
|
-
background: ${t.colors.panel};
|
|
377
|
-
|
|
378
|
-
.ico {
|
|
379
|
-
color: ${t.colors.accent};
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
`;function In({name:r,priceCredits:i,onClose:h}){const{session:c}=Ue(),{data:d,isError:a}=lt(c),f=ct(),l=Le(),[p,x]=u.useState("confirm"),[y,m]=u.useState(""),[C,k]=u.useState(null),g=u.useRef(!1),b=y.trim().toLowerCase()===r.toLowerCase(),S=p==="completing",v=i!=null?be(i):"—",_=i==null,E=d==null?void 0:d.credits,W=i!=null&&E!=null?i-E:0,$=W>0,T=_?n("names.priceUnavailable"):$?n("names.insufficientCredits",{credits:be(W)}):null;u.useEffect(()=>{const w=G=>{G.key==="Escape"&&!S&&h()};document.addEventListener("keydown",w);const O=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",w),document.body.style.overflow=O}},[S,h]);async function I(){if(!(!c||!b||_||$||g.current)){g.current=!0,x("completing"),k(null);try{const w=await hn({name:r,identity:c.identity,signer:c.signer});ee("Shop Completed Purchase",{purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:i??null,settlement:w.status}),f.invalidateQueries({queryKey:["usd-balance"]}),f.invalidateQueries({queryKey:["my-assets"]}),x(w.status==="registered"?"success":"pending")}catch(w){ee(xt(w)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:ht(w),purchase_type:"name"}),k(w instanceof we?n("names.errorRouteCost"):(w==null?void 0:w.message)||n("names.errorGeneric")),x("error")}finally{g.current=!1}}}const A=p!=="success"&&p!=="pending",N=dt(c==null?void 0:c.providerType);return e.jsx(xn,{onClick:S?void 0:h,role:"presentation",children:e.jsxs(fn,{role:"dialog","aria-modal":"true","aria-label":n("names.buyTitle"),onClick:w=>w.stopPropagation(),children:[A&&e.jsxs(e.Fragment,{children:[e.jsxs(re,{children:[e.jsx(oe,{children:p==="error"?n("names.errorTitle"):n("names.buyTitle")}),e.jsx(ie,{onClick:h,disabled:S,"aria-label":n("buyModal.close"),children:e.jsx(R,{name:"close"})})]}),e.jsxs(ae,{children:[n("names.myCreditsBalance")," ",e.jsx(M,{})," ",se(d,a)]}),e.jsx(le,{})]}),(p==="confirm"||p==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs(ce,{children:[e.jsx(de,{"aria-hidden":!0,children:"@"}),e.jsxs(pe,{children:[e.jsxs(he,{children:[r,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(xe,{children:n("names.subtitle")})]}),e.jsxs(fe,{children:[e.jsx(M,{}),v]})]}),p==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(me,{children:[e.jsx(R,{name:"info","aria-hidden":!0}),e.jsx("span",{children:C})]}),e.jsx(Me,{onClick:()=>x("confirm"),children:n("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(mn,{children:[e.jsx(un,{children:n("names.confirmTitle")}),e.jsx(gn,{dangerouslySetInnerHTML:{__html:n("names.confirmBody",{name:`<b>@${An(r)}</b>`})}}),e.jsxs(bn,{children:[e.jsx(yn,{"aria-hidden":!0,children:"@"}),e.jsx(wn,{value:y,onChange:w=>m(w.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":n("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(y.length,8)}ch`}}),e.jsx(jn,{children:".dcl.eth"})]})]}),T?e.jsxs(me,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(R,{name:"info","aria-hidden":!0}),e.jsx("span",{children:T})]}):null,e.jsx(Me,{onClick:()=>void I(),disabled:!b||!c||_||$,children:n("names.buyCta")})]})]}),p==="completing"&&e.jsxs(vn,{children:[e.jsx($n,{src:pt,alt:"",width:56,height:56}),e.jsx(Cn,{children:N?n("names.confirming"):n("names.completing")}),e.jsxs(kn,{children:[e.jsx(Sn,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(En,{children:"1/1"})]})]}),p==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs(re,{children:[e.jsx(oe,{children:n("names.pendingHeaderTitle")}),e.jsx(ie,{onClick:h,"aria-label":n("buyModal.close"),children:e.jsx(R,{name:"close"})})]}),e.jsxs(ae,{children:[n("names.myCreditsBalance")," ",e.jsx(M,{})," ",se(d,a)]}),e.jsx(le,{}),e.jsxs(me,{"data-tone":"info",children:[e.jsx(R,{name:"info","aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("b",{children:n("names.pendingBannerBold")})," ",n("names.pendingBannerRest")]})]}),e.jsxs(ce,{style:{marginTop:20},children:[e.jsx(de,{"aria-hidden":!0,children:"@"}),e.jsxs(pe,{children:[e.jsxs(he,{children:[r,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(xe,{children:n("names.subtitle")})]}),e.jsxs(fe,{children:[e.jsx(M,{}),v]})]}),e.jsx(We,{children:e.jsx(Be,{onClick:()=>{h(),l("/my-items")},children:n("names.myItems")})})]}),p==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(re,{children:[e.jsx(oe,{children:n("names.successHeaderTitle")}),e.jsx(ie,{onClick:h,"aria-label":n("buyModal.close"),children:e.jsx(R,{name:"close"})})]}),e.jsxs(ae,{children:[n("names.myCreditsBalance")," ",e.jsx(M,{})," ",se(d,a)]}),e.jsx(le,{}),e.jsxs(Rn,{children:[e.jsx(_n,{"aria-hidden":!0,children:e.jsx(R,{name:"check"})}),e.jsxs(Tn,{children:[e.jsx("b",{children:n("names.successBannerBold")})," ",n("names.successBannerRest")]})]}),e.jsxs(ce,{style:{marginTop:20},children:[e.jsx(de,{"aria-hidden":!0,children:"@"}),e.jsxs(pe,{children:[e.jsxs(he,{children:[r,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(xe,{children:n("names.subtitle")})]}),e.jsxs(fe,{children:[e.jsx(M,{}),v]})]}),e.jsxs(We,{children:[e.jsx(Be,{onClick:()=>{h(),l("/my-items")},children:n("names.myItems")}),e.jsx(zn,{href:U.profileUrl,target:"_blank",rel:"noopener noreferrer",children:n("names.assignToAvatar")})]})]})]})})}function An(r){return r.replace(/[&<>"']/g,i=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[i])}const Nn="https://cdn.decentraland.org/@dcl/shop/0.8.0/_assets/identity-B4DXDuJP.webp",Pn="https://cdn.decentraland.org/@dcl/shop/0.8.0/_assets/world-B-9aPlxu.webp",Mn="https://cdn.decentraland.org/@dcl/shop/0.8.0/_assets/invite-BfwIhP2C.webp",Wn="https://cdn.decentraland.org/@dcl/shop/0.8.0/_assets/governance-DnazlIjy.webp",Bn=s.div`
|
|
383
|
-
width: 100%;
|
|
384
|
-
min-width: 0;
|
|
385
|
-
`,Fn=s.nav`
|
|
386
|
-
display: flex;
|
|
387
|
-
align-items: center;
|
|
388
|
-
gap: 6px;
|
|
389
|
-
margin: 4px 0 16px;
|
|
390
|
-
font-family: ${t.font.sans};
|
|
391
|
-
font-size: 12px;
|
|
392
|
-
line-height: 1;
|
|
393
|
-
color: ${t.colors.muted};
|
|
394
|
-
`,Ln=s.button`
|
|
395
|
-
border: 0;
|
|
396
|
-
background: none;
|
|
397
|
-
padding: 0;
|
|
398
|
-
cursor: pointer;
|
|
399
|
-
font: inherit;
|
|
400
|
-
color: ${t.colors.muted};
|
|
401
|
-
|
|
402
|
-
&:hover {
|
|
403
|
-
text-decoration: underline;
|
|
404
|
-
}
|
|
405
|
-
&:focus-visible {
|
|
406
|
-
outline: 2px solid ${t.colors.accent};
|
|
407
|
-
outline-offset: 2px;
|
|
408
|
-
}
|
|
409
|
-
`,Un=s.span`
|
|
410
|
-
font-weight: 700;
|
|
411
|
-
color: ${t.colors.muted};
|
|
412
|
-
`,Hn=s.div`
|
|
413
|
-
display: flex;
|
|
414
|
-
flex-direction: column;
|
|
415
|
-
gap: 48px;
|
|
416
|
-
padding-bottom: 48px;
|
|
417
|
-
background: #ecdbfd;
|
|
418
|
-
border-radius: ${t.radius.banner};
|
|
419
|
-
overflow: hidden;
|
|
420
|
-
|
|
421
|
-
${t.media.maxWidth("mobile")} {
|
|
422
|
-
gap: 32px;
|
|
423
|
-
padding-bottom: 32px;
|
|
424
|
-
}
|
|
425
|
-
`,On=s.div`
|
|
426
|
-
position: relative;
|
|
427
|
-
border-radius: ${t.radius.banner};
|
|
428
|
-
overflow: hidden;
|
|
429
|
-
padding: 88px 48px;
|
|
430
|
-
display: flex;
|
|
431
|
-
flex-direction: column;
|
|
432
|
-
align-items: center;
|
|
433
|
-
gap: 48px;
|
|
434
|
-
text-align: center;
|
|
435
|
-
background: radial-gradient(120% 95% at 50% 118%, #d13bd6 0%, #a026b0 28%, #6a1b9c 58%, #4a1173 100%);
|
|
436
|
-
|
|
437
|
-
${t.media.maxWidth("mobile")} {
|
|
438
|
-
padding: 40px 20px;
|
|
439
|
-
gap: 28px;
|
|
440
|
-
}
|
|
441
|
-
`,Gn=s.div`
|
|
442
|
-
display: flex;
|
|
443
|
-
flex-direction: column;
|
|
444
|
-
align-items: center;
|
|
445
|
-
gap: 12px;
|
|
446
|
-
`,Dn=s.h1`
|
|
447
|
-
margin: 0;
|
|
448
|
-
font-family: ${t.font.sans};
|
|
449
|
-
font-weight: 600;
|
|
450
|
-
font-size: 40px;
|
|
451
|
-
line-height: 1.167;
|
|
452
|
-
color: ${t.colors.white};
|
|
453
|
-
|
|
454
|
-
${t.media.maxWidth("mobile")} {
|
|
455
|
-
font-size: 26px;
|
|
456
|
-
}
|
|
457
|
-
`,qn=s.p`
|
|
458
|
-
margin: 0;
|
|
459
|
-
max-width: 760px;
|
|
460
|
-
font-family: ${t.font.sans};
|
|
461
|
-
font-weight: 500;
|
|
462
|
-
font-size: 24px;
|
|
463
|
-
line-height: 1.334;
|
|
464
|
-
color: #ecebed;
|
|
465
|
-
|
|
466
|
-
${t.media.maxWidth("mobile")} {
|
|
467
|
-
font-size: 16px;
|
|
468
|
-
}
|
|
469
|
-
`,Vn=s.div`
|
|
470
|
-
width: min(785px, 100%);
|
|
471
|
-
display: flex;
|
|
472
|
-
flex-direction: column;
|
|
473
|
-
gap: 12px;
|
|
474
|
-
`,Zn=s.div`
|
|
475
|
-
position: relative;
|
|
476
|
-
`,Kn=s("div",Yt("invalid"))`
|
|
477
|
-
display: flex;
|
|
478
|
-
align-items: center;
|
|
479
|
-
gap: 8px;
|
|
480
|
-
padding: 8px 8px 8px 16px;
|
|
481
|
-
background: ${t.colors.softWhite};
|
|
482
|
-
border: 1.5px solid ${({invalid:r})=>r?t.colors.dclRed:t.colors.line};
|
|
483
|
-
border-radius: 20px;
|
|
484
|
-
|
|
485
|
-
&:focus-within {
|
|
486
|
-
border-color: ${({invalid:r})=>r?t.colors.dclRed:t.colors.magenta};
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
${t.media.maxWidth("mobile")} {
|
|
490
|
-
border-radius: 16px;
|
|
491
|
-
}
|
|
492
|
-
`,Jn=s.span`
|
|
493
|
-
position: absolute;
|
|
494
|
-
left: -9999px;
|
|
495
|
-
top: 0;
|
|
496
|
-
visibility: hidden;
|
|
497
|
-
pointer-events: none;
|
|
498
|
-
white-space: pre;
|
|
499
|
-
font-family: ${t.font.sans};
|
|
500
|
-
font-size: 20px;
|
|
501
|
-
font-weight: 600;
|
|
502
|
-
line-height: 1.6;
|
|
503
|
-
|
|
504
|
-
${t.media.maxWidth("mobile")} {
|
|
505
|
-
font-size: 16px;
|
|
506
|
-
}
|
|
507
|
-
`,Qn=s.div`
|
|
508
|
-
position: absolute;
|
|
509
|
-
top: calc(100% + 8px);
|
|
510
|
-
left: 0;
|
|
511
|
-
right: 0;
|
|
512
|
-
z-index: 2;
|
|
513
|
-
display: flex;
|
|
514
|
-
align-items: center;
|
|
515
|
-
gap: 8px;
|
|
516
|
-
padding: 8px 12px;
|
|
517
|
-
border-radius: 8px;
|
|
518
|
-
background: #ffcdd4;
|
|
519
|
-
color: #ec303a;
|
|
520
|
-
font-family: ${t.font.sans};
|
|
521
|
-
font-size: 14px;
|
|
522
|
-
font-weight: 500;
|
|
523
|
-
line-height: 1.2;
|
|
524
|
-
text-align: left;
|
|
525
|
-
|
|
526
|
-
${t.media.maxWidth("mobile")} {
|
|
527
|
-
position: static;
|
|
528
|
-
margin-top: 8px;
|
|
529
|
-
align-items: flex-start;
|
|
530
|
-
flex-wrap: wrap;
|
|
531
|
-
}
|
|
532
|
-
`,Xn=s.a`
|
|
533
|
-
display: inline-flex;
|
|
534
|
-
align-items: center;
|
|
535
|
-
gap: 2px;
|
|
536
|
-
margin-left: auto;
|
|
537
|
-
color: #ec303a;
|
|
538
|
-
font-weight: 600;
|
|
539
|
-
text-decoration: underline;
|
|
540
|
-
text-transform: uppercase;
|
|
541
|
-
white-space: nowrap;
|
|
542
|
-
|
|
543
|
-
${t.media.maxWidth("mobile")} {
|
|
544
|
-
margin-left: 0;
|
|
545
|
-
}
|
|
546
|
-
`,Yn=s.label`
|
|
547
|
-
flex: 1;
|
|
548
|
-
min-width: 0;
|
|
549
|
-
display: flex;
|
|
550
|
-
align-items: center;
|
|
551
|
-
gap: 0;
|
|
552
|
-
cursor: text;
|
|
553
|
-
overflow: hidden;
|
|
554
|
-
`,es=s.span`
|
|
555
|
-
flex: none;
|
|
556
|
-
margin-right: 8px;
|
|
557
|
-
font-family: ${t.font.sans};
|
|
558
|
-
font-size: 26px;
|
|
559
|
-
font-weight: 500;
|
|
560
|
-
line-height: 1;
|
|
561
|
-
color: ${t.colors.muted2};
|
|
562
|
-
|
|
563
|
-
${t.media.maxWidth("mobile")} {
|
|
564
|
-
font-size: 20px;
|
|
565
|
-
}
|
|
566
|
-
`,ts=s.input`
|
|
567
|
-
flex: 0 1 auto;
|
|
568
|
-
min-width: 0;
|
|
569
|
-
max-width: 100%;
|
|
570
|
-
border: 0;
|
|
571
|
-
outline: none;
|
|
572
|
-
background: transparent;
|
|
573
|
-
font-family: ${t.font.sans};
|
|
574
|
-
font-size: 20px;
|
|
575
|
-
font-weight: 600;
|
|
576
|
-
line-height: 1.6;
|
|
577
|
-
color: ${t.colors.text};
|
|
578
|
-
padding: 0;
|
|
579
|
-
|
|
580
|
-
&::placeholder {
|
|
581
|
-
color: ${t.colors.muted1};
|
|
582
|
-
font-weight: 400;
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
${t.media.maxWidth("mobile")} {
|
|
586
|
-
font-size: 16px;
|
|
587
|
-
}
|
|
588
|
-
`,ns=s.span`
|
|
589
|
-
flex: none;
|
|
590
|
-
margin-left: 2px;
|
|
591
|
-
font-family: ${t.font.sans};
|
|
592
|
-
font-size: 20px;
|
|
593
|
-
font-weight: 400;
|
|
594
|
-
line-height: 1.6;
|
|
595
|
-
color: ${t.colors.muted1};
|
|
596
|
-
|
|
597
|
-
${t.media.maxWidth("mobile")} {
|
|
598
|
-
font-size: 16px;
|
|
599
|
-
}
|
|
600
|
-
`,ss=s.span`
|
|
601
|
-
flex: none;
|
|
602
|
-
font-family: ${t.font.sans};
|
|
603
|
-
font-size: 13px;
|
|
604
|
-
color: ${t.colors.muted2};
|
|
605
|
-
white-space: nowrap;
|
|
606
|
-
`,qe=s.button`
|
|
607
|
-
flex: none;
|
|
608
|
-
display: inline-flex;
|
|
609
|
-
align-items: center;
|
|
610
|
-
justify-content: center;
|
|
611
|
-
gap: 8px;
|
|
612
|
-
height: 52px;
|
|
613
|
-
padding: 0 24px;
|
|
614
|
-
border: 0;
|
|
615
|
-
border-radius: 12px;
|
|
616
|
-
cursor: pointer;
|
|
617
|
-
background: ${t.gradients.cerise};
|
|
618
|
-
color: ${t.colors.softWhite};
|
|
619
|
-
font-family: ${t.font.sans};
|
|
620
|
-
font-weight: 600;
|
|
621
|
-
font-size: 15px;
|
|
622
|
-
letter-spacing: 0.46px;
|
|
623
|
-
line-height: 24px;
|
|
624
|
-
text-transform: uppercase;
|
|
625
|
-
|
|
626
|
-
&:hover:not(:disabled) {
|
|
627
|
-
filter: brightness(1.05);
|
|
628
|
-
}
|
|
629
|
-
&:focus-visible {
|
|
630
|
-
outline: 2px solid ${t.colors.white};
|
|
631
|
-
outline-offset: 2px;
|
|
632
|
-
}
|
|
633
|
-
&:disabled {
|
|
634
|
-
cursor: not-allowed;
|
|
635
|
-
background: #e7c8e9;
|
|
636
|
-
color: #fbe9fb;
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
${t.media.maxWidth("mobile")} {
|
|
640
|
-
display: none;
|
|
641
|
-
}
|
|
642
|
-
`,rs=s(qe)`
|
|
643
|
-
display: none;
|
|
644
|
-
|
|
645
|
-
${t.media.maxWidth("mobile")} {
|
|
646
|
-
display: inline-flex;
|
|
647
|
-
width: 100%;
|
|
648
|
-
height: 48px;
|
|
649
|
-
border-radius: 12px;
|
|
650
|
-
}
|
|
651
|
-
`,os=s.span`
|
|
652
|
-
display: inline-flex;
|
|
653
|
-
align-items: center;
|
|
654
|
-
gap: 4px;
|
|
655
|
-
font-weight: 600;
|
|
656
|
-
|
|
657
|
-
.ico {
|
|
658
|
-
width: 16px;
|
|
659
|
-
height: 16px;
|
|
660
|
-
}
|
|
661
|
-
`,ue=s.div`
|
|
662
|
-
display: flex;
|
|
663
|
-
align-items: center;
|
|
664
|
-
gap: 8px;
|
|
665
|
-
padding: 8px 14px;
|
|
666
|
-
border-radius: 8px;
|
|
667
|
-
font-family: ${t.font.sans};
|
|
668
|
-
font-size: 13px;
|
|
669
|
-
font-weight: 500;
|
|
670
|
-
text-align: left;
|
|
671
|
-
|
|
672
|
-
background: ${({tone:r})=>r==="error"?"rgba(255, 45, 85, 0.12)":r==="ok"?"rgba(30, 166, 114, 0.14)":"rgba(255,255,255,0.14)"};
|
|
673
|
-
color: ${({tone:r})=>r==="error"?t.colors.dclRed:r==="ok"?"#0f7a4f":"#ecebed"};
|
|
674
|
-
|
|
675
|
-
.ico {
|
|
676
|
-
width: 16px;
|
|
677
|
-
height: 16px;
|
|
678
|
-
flex: none;
|
|
679
|
-
}
|
|
680
|
-
`,is=s.section`
|
|
681
|
-
display: flex;
|
|
682
|
-
flex-direction: column;
|
|
683
|
-
gap: 48px;
|
|
684
|
-
padding: 0 48px;
|
|
685
|
-
|
|
686
|
-
${t.media.maxWidth("mobile")} {
|
|
687
|
-
gap: 32px;
|
|
688
|
-
padding: 0 20px;
|
|
689
|
-
}
|
|
690
|
-
`,as=s.div`
|
|
691
|
-
display: flex;
|
|
692
|
-
flex-direction: column;
|
|
693
|
-
align-items: center;
|
|
694
|
-
gap: 24px;
|
|
695
|
-
`,ls=s.h2`
|
|
696
|
-
margin: 0;
|
|
697
|
-
text-align: center;
|
|
698
|
-
font-family: ${t.font.sans};
|
|
699
|
-
font-weight: 600;
|
|
700
|
-
font-size: 32px;
|
|
701
|
-
line-height: 1.167;
|
|
702
|
-
color: ${t.colors.text2};
|
|
703
|
-
|
|
704
|
-
${t.media.maxWidth("mobile")} {
|
|
705
|
-
font-size: 22px;
|
|
706
|
-
}
|
|
707
|
-
`,cs=s.p`
|
|
708
|
-
margin: 0;
|
|
709
|
-
max-width: 907px;
|
|
710
|
-
text-align: center;
|
|
711
|
-
font-family: ${t.font.sans};
|
|
712
|
-
font-weight: 400;
|
|
713
|
-
font-size: 20px;
|
|
714
|
-
line-height: 1.57;
|
|
715
|
-
color: ${t.colors.text};
|
|
716
|
-
|
|
717
|
-
${t.media.maxWidth("mobile")} {
|
|
718
|
-
font-size: 16px;
|
|
719
|
-
}
|
|
720
|
-
`,ds=s.div`
|
|
721
|
-
display: grid;
|
|
722
|
-
grid-template-columns: repeat(4, 1fr);
|
|
723
|
-
gap: 24px;
|
|
724
|
-
align-items: stretch;
|
|
725
|
-
|
|
726
|
-
${t.media.maxWidth("lg")} {
|
|
727
|
-
grid-template-columns: repeat(2, 1fr);
|
|
728
|
-
}
|
|
729
|
-
${t.media.maxWidth("mobile")} {
|
|
730
|
-
grid-template-columns: 1fr;
|
|
731
|
-
}
|
|
732
|
-
`,K=s.article`
|
|
733
|
-
min-width: 0;
|
|
734
|
-
display: flex;
|
|
735
|
-
flex-direction: column;
|
|
736
|
-
background: ${t.colors.white};
|
|
737
|
-
border: 0.25px solid ${t.colors.muted2};
|
|
738
|
-
border-radius: ${t.radius.card};
|
|
739
|
-
overflow: hidden;
|
|
740
|
-
`,J=s.img`
|
|
741
|
-
display: block;
|
|
742
|
-
width: calc(100% + 0.5px);
|
|
743
|
-
margin: -0.25px -0.25px 0;
|
|
744
|
-
aspect-ratio: 388 / 235;
|
|
745
|
-
object-fit: cover;
|
|
746
|
-
`,Q=s.div`
|
|
747
|
-
flex: 1;
|
|
748
|
-
display: flex;
|
|
749
|
-
flex-direction: column;
|
|
750
|
-
gap: 6px;
|
|
751
|
-
padding: 12px 16px;
|
|
752
|
-
`,X=s.h3`
|
|
753
|
-
margin: 0;
|
|
754
|
-
font-family: ${t.font.sans};
|
|
755
|
-
font-weight: 700;
|
|
756
|
-
font-size: 20px;
|
|
757
|
-
line-height: 1.57;
|
|
758
|
-
text-transform: uppercase;
|
|
759
|
-
color: ${t.colors.text};
|
|
760
|
-
`,Y=s.p`
|
|
761
|
-
margin: 0;
|
|
762
|
-
font-family: ${t.font.sans};
|
|
763
|
-
font-weight: 400;
|
|
764
|
-
font-size: 14px;
|
|
765
|
-
line-height: 1.57;
|
|
766
|
-
color: ${t.colors.text};
|
|
767
|
-
`,ps=s.span`
|
|
768
|
-
font-weight: 600;
|
|
769
|
-
color: ${t.colors.accent};
|
|
770
|
-
`,Fe=s.a`
|
|
771
|
-
display: inline-flex;
|
|
772
|
-
align-items: center;
|
|
773
|
-
gap: 2px;
|
|
774
|
-
margin-top: auto;
|
|
775
|
-
font-family: ${t.font.sans};
|
|
776
|
-
font-weight: 500;
|
|
777
|
-
font-size: 14px;
|
|
778
|
-
line-height: 30px;
|
|
779
|
-
color: ${t.colors.accent};
|
|
780
|
-
text-decoration: underline;
|
|
781
|
-
|
|
782
|
-
&:focus-visible {
|
|
783
|
-
outline: 2px solid ${t.colors.accent};
|
|
784
|
-
outline-offset: 2px;
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
.ico {
|
|
788
|
-
width: 13px;
|
|
789
|
-
height: 13px;
|
|
790
|
-
}
|
|
791
|
-
`,hs=s.span`
|
|
792
|
-
position: absolute;
|
|
793
|
-
width: 1px;
|
|
794
|
-
height: 1px;
|
|
795
|
-
padding: 0;
|
|
796
|
-
margin: -1px;
|
|
797
|
-
overflow: hidden;
|
|
798
|
-
clip: rect(0, 0, 0, 0);
|
|
799
|
-
white-space: nowrap;
|
|
800
|
-
border: 0;
|
|
801
|
-
`,xs="https://docs.decentraland.org/creator/worlds/about/",fs="https://governance.decentraland.org";function ms(r){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(r)}`}function us({onBack:r}){He({title:n("seo.names.title"),description:n("seo.names.description")});const{session:i,signIn:h}=Ue(),{data:c}=Oe(),d=c?Ge(H,c):null,[a,f]=u.useState(""),[l,p]=u.useState("idle"),[x,y]=u.useState(!1),m=u.useRef(null),[C,k]=u.useState(void 0);u.useLayoutEffect(()=>{m.current&&k(m.current.offsetWidth)},[a]),u.useEffect(()=>{if(!Ne(a).ok){p(a.length===0?"idle":"invalid");return}p("checking");const E=new AbortController,W=setTimeout(()=>{(async()=>{try{const $=await on(a,{signal:E.signal});p($)}catch($){if(($==null?void 0:$.name)==="AbortError")return;p("error")}})()},400);return()=>{clearTimeout(W),E.abort()}},[a]);const g=Ne(a),b=g.ok&&(l==="available"||l==="error");function S(){if(b){if(!i){h();return}y(!0)}}const v=e.jsxs(e.Fragment,{children:[n("names.claim"),d!=null?e.jsxs(os,{children:[e.jsx(M,{}),be(d)]}):null]});return e.jsxs(Bn,{"data-testid":"names-page",children:[e.jsxs(Fn,{"aria-label":n("names.breadcrumbAria"),children:[e.jsx(Ln,{onClick:r,children:n("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(Un,{children:n("names.breadcrumbCurrent")})]}),e.jsxs(Hn,{children:[e.jsxs(On,{children:[e.jsxs(Gn,{children:[e.jsx(Dn,{children:n("names.heroTitle")}),e.jsx(qn,{children:n("names.heroSubtitle")})]}),e.jsxs(Vn,{children:[e.jsxs(Zn,{children:[e.jsxs(Kn,{invalid:l==="taken",children:[e.jsxs(Yn,{children:[e.jsx(es,{"aria-hidden":!0,children:"@"}),e.jsx(ts,{value:a,onChange:_=>f(nn(_.target.value)),placeholder:n("names.inputPlaceholder"),"aria-label":n("names.inputAria"),autoComplete:"off",spellCheck:!1,maxLength:te,style:{width:C!=null?`${C}px`:void 0}}),e.jsx(Jn,{ref:m,"aria-hidden":!0,children:a||n("names.inputPlaceholder")}),e.jsx(ns,{children:n("names.suffix")})]}),a.length>0?e.jsxs(ss,{"aria-hidden":!0,children:[a.length,"/",te]}):null,e.jsx(qe,{onClick:S,disabled:!b,"data-testid":"names-claim",children:v})]}),l==="taken"?e.jsxs(Qn,{role:"status","data-testid":"names-taken",children:[e.jsx(R,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:n("names.taken")}),e.jsxs(Xn,{href:ms(a),target:"_blank",rel:"noopener noreferrer",children:[n("names.takenMakeOffer"),e.jsx(R,{name:"external-link",size:13,"aria-hidden":!0})]})]}):null]}),e.jsx(rs,{onClick:S,disabled:!b,children:v}),l==="checking"?e.jsx(ue,{tone:"muted",role:"status","data-testid":"names-checking",children:n("names.checking")}):l==="error"?e.jsx(ue,{tone:"muted",role:"status",children:n("names.checkError")}):l==="invalid"&&!g.ok&&g.reason==="too-short"?e.jsx(ue,{tone:"muted",role:"status",children:n("names.tooShort",{min:De})}):null,e.jsx(hs,{role:"status","aria-live":"polite",children:l==="available"?n("names.available",{name:a}):""})]})]}),e.jsxs(is,{children:[e.jsxs(as,{children:[e.jsx(ls,{children:n("names.whyTitle")}),e.jsx(cs,{children:n("names.whyIntro")})]}),e.jsxs(ds,{children:[e.jsxs(K,{children:[e.jsx(J,{src:Nn,alt:""}),e.jsxs(Q,{children:[e.jsx(X,{children:n("names.why1Title")}),e.jsx(Y,{children:n("names.why1")})]})]}),e.jsxs(K,{children:[e.jsx(J,{src:Pn,alt:""}),e.jsxs(Q,{children:[e.jsx(X,{children:n("names.why2Title")}),e.jsxs(Y,{children:[n("names.why2")," ",e.jsx(ps,{children:n("names.why2Address")})]}),e.jsxs(Fe,{href:xs,target:"_blank",rel:"noopener noreferrer",children:[n("names.learnMore"),e.jsx(R,{name:"external-link","aria-hidden":!0})]})]})]}),e.jsxs(K,{children:[e.jsx(J,{src:Mn,alt:""}),e.jsxs(Q,{children:[e.jsx(X,{children:n("names.why3Title")}),e.jsx(Y,{children:n("names.why3")})]})]}),e.jsxs(K,{children:[e.jsx(J,{src:Wn,alt:""}),e.jsxs(Q,{children:[e.jsx(X,{children:n("names.why4Title")}),e.jsx(Y,{children:n("names.why4")}),e.jsxs(Fe,{href:fs,target:"_blank",rel:"noopener noreferrer",children:[n("names.learnMore"),e.jsx(R,{name:"external-link","aria-hidden":!0})]})]})]})]})]})]}),x?e.jsx(In,{name:a,priceCredits:d,onClose:()=>y(!1)}):null]})}const gs="data:image/svg+xml,%3csvg%20width='101'%20height='101'%20viewBox='0%200%20101%20101'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M42.4493%2040.9855L30.7394%2052.6954'%20stroke='%23FF5A57'%20stroke-width='3.15625'%20stroke-linecap='round'/%3e%3cpath%20d='M30.7391%2040.9855L42.449%2052.6954'%20stroke='%23FF5A57'%20stroke-width='3.15625'%20stroke-linecap='round'/%3e%3cpath%20d='M36.2621%2071.0604C29.6047%2071.0604%2023.9709%2068.7542%2019.3608%2064.1416C14.7507%2059.5291%2012.4445%2053.8953%2012.442%2047.2404C12.4396%2040.5854%2014.7459%2034.9516%2019.3608%2030.3391C23.9758%2025.7266%2029.6096%2023.4203%2036.2621%2023.4203C42.9146%2023.4203%2048.5496%2025.7266%2053.167%2030.3391C57.7844%2034.9516%2060.0895%2040.5854%2060.0822%2047.2404C60.0822%2049.9277%2059.6546%2052.4624%2058.7995%2054.8445C57.9445%2057.2265%2056.784%2059.3336%2055.3181%2061.1659L75.84%2081.6878C76.5119%2082.3597%2076.8478%2083.2148%2076.8478%2084.2531C76.8478%2085.2914%2076.5119%2086.1465%2075.84%2086.8183C75.1682%2087.4902%2074.3131%2087.8261%2073.2748%2087.8261C72.2365%2087.8261%2071.3814%2087.4902%2070.7096%2086.8183L50.1877%2066.2964C48.3554%2067.7623%2046.2482%2068.9227%2043.8662%2069.7778C41.4842%2070.6329%2038.9495%2071.0604%2036.2621%2071.0604ZM36.2621%2063.7312C40.8429%2063.7312%2044.7372%2062.1285%2047.9449%2058.9232C51.1527%2055.7179%2052.7554%2051.8236%2052.7529%2047.2404C52.7505%2042.6571%2051.1478%2038.7641%2047.9449%2035.5612C44.742%2032.3583%2040.8478%2030.7544%2036.2621%2030.7495C31.6764%2030.7447%2027.7834%2032.3485%2024.5829%2035.5612C21.3825%2038.7739%2019.7786%2042.6669%2019.7713%2047.2404C19.764%2051.8138%2021.3678%2055.7081%2024.5829%2058.9232C27.798%2062.1383%2031.6911%2063.7409%2036.2621%2063.7312Z'%20fill='url(%23paint0_linear_search_empty)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_search_empty'%20x1='10.4127'%20y1='55.6273'%20x2='124.009'%20y2='44.925'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",ge=48,bs=["all","on_sale","not_for_sale"];function Ws(){const[r,i]=nt(),h=Le(),c=(r.get("q")??"").trim().toLowerCase(),d=(r.get("q")??"").trim();He({title:d?n("seo.collectibles.searchTitle",{query:d}):n("seo.collectibles.title"),description:n("seo.collectibles.description")});const a=r.get("category")??(c?"all":"wearable"),f=r.get("status"),l=f&&bs.includes(f)?f:"on_sale",p=(o,j)=>i(z=>{const ne=new URLSearchParams(z);return j==null?ne.delete(o):ne.set(o,j),ne},{replace:!0}),[x,y]=u.useState(null),[m,C]=u.useState([]),[k,g]=u.useState(""),[b,S]=u.useState(""),[v,_]=u.useState(!1),[E,W]=u.useState("newest"),[$,T]=u.useState(!1);u.useEffect(()=>{if(!$)return;const o=z=>{z.key==="Escape"&&T(!1)};document.addEventListener("keydown",o);const j=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",o),document.body.style.overflow=j}},[$]);const I=l==="on_sale",A=k&&!Number.isNaN(Number(k))?Number(k):void 0,N=b&&!Number.isNaN(Number(b))?Number(b):void 0,w=ft(),O=x?Ft[x]:void 0,G=(Ae.find(o=>o.key===E)??Ae[0]).server,je={category:a,rarities:m.length?m:void 0,wearableCategories:O,minPriceCredits:A,maxPriceCredits:N,search:c||void 0,sortBy:G,isSmart:v||void 0,onSale:!0,listingType:w?void 0:"primary"},ve={category:a,rarities:m.length?m:void 0,wearableCategories:O,search:c||void 0,sortBy:G,isWearableSmart:v||void 0,isOnSale:l==="not_for_sale"?!1:void 0},{items:F,total:$e,isLoading:P,isPlaceholderData:B,error:Ce,hasNextPage:Ve,isFetchingNextPage:ke,isFetchNextPageError:Ze,fetchNextPage:Ke}=Ut(I?["shop-items",je]:["catalog-items",ve],o=>I?ut({...je,first:ge,skip:o}):gt({...ve,first:ge,skip:o}),{enabled:a!=="names"}),D=$e,{data:Se,isError:Je,isPending:Qe}=Oe(),Xe=o=>Se&&o.manaWei?Ge(o.manaWei,Se):null,Ye=I&&Qe&&F.some(o=>o.source==="legacy"),Ee=P||B||Ye,et=P?15:Math.min(Math.max(F.length,1),ge),Re=u.useRef(null);u.useEffect(()=>{P||B||!c||Re.current===c||(Re.current=c,ee("Shop Searched",{query:c,result_count:D}))},[c,P,B,D]);const q=u.useRef("__init__");u.useEffect(()=>{if(P||B)return;const o=JSON.stringify({category:a,subCategory:x,rarities:m,min:A,max:N,sort:E,status:l,smart:v});if(q.current==="__init__"||q.current===o){q.current=o;return}q.current=o,ee("Shop Applied Filter",{filters:{category:a,sub_category:x,rarities:m,min_price_credits:A??null,max_price_credits:N??null,status:l,smart:v,sort:E},result_count:D})},[a,x,m,A,N,E,l,v,P,B,D]);function _e(o){p("category",o),y(null)}function Te(o){p("status",o==="on_sale"?null:o)}function ze(o){C(j=>j.includes(o)?j.filter(z=>z!==o):[...j,o])}function tt(){i(o=>{const j=new URLSearchParams(o);return j.delete("category"),j.delete("status"),j},{replace:!0}),y(null),C([]),g(""),S(""),_(!1)}const L=[];(A!=null||N!=null)&&L.push({key:"price",label:n("filter.price"),onRemove:()=>{g(""),S("")}});for(const o of Wt)m.includes(o)&&L.push({key:`rarity-${o}`,label:mt(o),onRemove:()=>ze(o)});return v&&L.push({key:"smart",label:n("filter.smart"),onRemove:()=>_(!1)}),l!=="on_sale"&&L.push({key:"status",label:l==="all"?n("filter.statusAll"):n("filter.notForSale"),onRemove:()=>Te("on_sale")}),e.jsxs(bt,{"data-testid":"browse",children:[a!=="names"&&e.jsxs(e.Fragment,{children:[$?e.jsx(yt,{onClick:()=>T(!1),"aria-hidden":!0}):null,e.jsxs(wt,{"data-open":$||void 0,"data-testid":"browse-sidebar",children:[e.jsxs(jt,{children:[e.jsx(vt,{children:n("assets.filters")}),e.jsx($t,{onClick:()=>T(!1),"aria-label":n("assets.closeFilters"),children:"✕"})]}),e.jsx(Ct,{children:e.jsx(kt,{category:a,subCategory:x,onCategory:_e,onSub:y,priceMin:k,priceMax:b,onPriceMin:g,onPriceMax:S,rarities:m,onToggleRarity:ze,status:l,onStatus:Te,smart:v,onSmart:_})}),e.jsx(St,{children:e.jsx(Et,{type:"button",onClick:()=>T(!1),children:n("assets.showItems")})})]})]}),e.jsx(Rt,{children:a==="names"?e.jsx(us,{onBack:()=>_e("wearable")}):e.jsxs(e.Fragment,{children:[e.jsx(Bt,{sort:E,onSort:W,total:$e,loading:P||B,query:c,onOpenFilters:()=>T(!0),chips:L,onClearChips:tt}),Je&&I&&F.some(o=>o.source==="legacy")?e.jsx(_t,{"data-variant":"warn",children:n("assets.marketUnavailable")}):null,Ce?e.jsx(Ht,{message:n("assets.loadError"),testId:"browse-error"}):null,!Ee&&F.length===0&&!Ce?e.jsxs(Tt,{"data-testid":"browse-empty",children:[e.jsx(zt,{src:gs,alt:""}),e.jsxs(It,{children:[e.jsx(At,{children:n("assets.empty.title")}),e.jsx(Nt,{children:d?e.jsxs(e.Fragment,{children:[n("assets.empty.searchBefore"),e.jsx("b",{children:d}),n("assets.empty.searchAfter")]}):n("assets.empty.filters")})]}),e.jsx(Pt,{children:e.jsx(Mt,{type:"button",onClick:()=>h("/overview"),children:n("assets.empty.cta")})})]}):e.jsxs(e.Fragment,{children:[e.jsx(en,{"data-testid":"grid",children:Ee?e.jsx(Ie,{count:et}):e.jsxs(e.Fragment,{children:[F.map(o=>{if(!I)return e.jsx(V,{item:o,mode:"view"},Z(o));const j=o;if(j.source!=="legacy")return e.jsx(V,{item:o},Z(o));const z=Xe(j);return z==null?e.jsx(V,{item:o,mode:"view"},Z(o)):e.jsx(V,{item:{...j,priceCredits:z}},Z(o))}),ke?e.jsx(Ie,{count:6}):null]})}),e.jsx(Lt,{hasNextPage:Ve,isFetching:ke,isError:Ze,onLoadMore:()=>void Ke()})]})]})})]})}export{Ws as Assets};
|