@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
|
@@ -0,0 +1,801 @@
|
|
|
1
|
+
import{e as Ae,r as w,j as e,u as Ke}from"./react-OEOSdkUk.js";import{u as Xe}from"./useUrlFilters-DABDXRpV.js";import{c as F,r as Je,bk as Qe,bl as Ye,ay as et,a as tt,s,t,o as Me,ba as nt,A as st,aD as fe,b as n,y as it,I as _,z as A,bX as Y,b9 as rt,V as J,bp as ot,bo as at,x as Ne,ak as Pe,n as Fe,q as lt,ai as ct,am as ke,an as D,aF as dt,bI as pt}from"./index-0kdmGL8P.js";import{g as ht,h as xt,i as ft,j as mt,k as ut,C as gt,l as bt,o as yt,m as wt,n as jt,M as vt,u as $t,E as Ct,v as kt,p as St,q as Et,r as _t,s as Tt,t as Rt}from"./Assets.styles-oV1FeEer.js";import{S as Se,R as zt,F as It,e as At}from"./categories-CGxAQH-_.js";import{L as Mt}from"./LoadMore-DSHozISi.js";import{u as Nt}from"./useInfiniteGrid-DDAFkDbL.js";import{E as Pt}from"./ErrorNotice-Q_ppMazV.js";import{d as Ft}from"./dcl-schemas-CmtP3U6y.js";import{s as Wt,G as Bt,w as Lt,S as Ut}from"./buy-gasless-uXmROTXZ.js";import{s as Ht,k as Ot}from"./buy-C6t8EdJL.js";import{f as Dt}from"./errors-CBUUj0FX.js";import{J as Gt,C as qt,B as me}from"./ethers-lk3HAbPB.js";import{n as Vt}from"./Tooltip-xIVvDLOp.js";import{G as Zt}from"./grid.styles-D2J96SwT.js";import"./sentry-B60WY-np.js";import"./intl-CBcMB1D2.js";import"./authorizations-BixBV4TD.js";import"./sendMetaTransaction-DqzmtvVe.js";function G(i){const o=i.source??"item",l=i.tradeId||`${i.contractAddress}-${i.tokenId??i.itemId??""}`;return`${o}:${l}`}const W="100000000000000000000",We=2,Q=15,Kt=/^[a-zA-Z0-9]+$/;function Ee(i){const o=i.trim();return o.length===0?{ok:!1,reason:"empty"}:Kt.test(o)?o.length<We?{ok:!1,reason:"too-short"}:o.length>Q?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function Xt(i){return i.replace(/[^a-zA-Z0-9]/g,"").slice(0,Q)}const Jt=["function available(string _subdomain) view returns (bool)"],_e={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function Qt(){return F.chainId===Number(Ft.ChainId.MATIC_MAINNET)?_e.mainnet:_e.sepolia}async function Yt(i,o={}){var d;const{rpc:l,address:x}=Qt(),h=new Gt(l),c=new qt(x,Jt,h);console.info(`[names] availability check → DCLRegistrar(${x}).available("${i}") on ${l}`);const p=await c.available(i);if((d=o.signal)!=null&&d.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${i}" available=${p}`),p?"available":"taken"}const en="https://app.across.to/api";class ue extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}function tn(i){return et(W,i)}async function nn(i,o,l={}){var d;const x=l.chainId??F.chainId,h=l.provider??"across",c=`${F.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(o)}&chainId=${x}&provider=${h}`,p=await tt(c,{method:"GET",identity:i,metadata:{}});if(!p.ok){let a;try{a=(d=await p.json())==null?void 0:d.code}catch{}throw a==="ROUTE_COST_TOO_HIGH"?new ue:new Error(`fetchNameCreditRoute ${p.status}`)}return p.json()}function sn(i,o){const l=me.from(i.availableAmount),h=me.from(W).sub(l);return{credits:[{value:i.amount,expiresAt:Number(i.expiresAt),salt:Ot(i.id)}],creditsSignatures:[i.signature],externalCall:{target:o.externalCall.target,selector:o.externalCall.selector,data:o.externalCall.data,expiresAt:o.externalCall.expiresAt,salt:o.externalCall.salt},customExternalCallSignature:o.customExternalCallSignature,maxUncreditedValue:h.isNegative()?"0":h.toString(),maxCreditedValue:W}}async function rn(i,o={}){const l=en,x=o.intervalMs??1e4,h=o.maxAttempts??60;let c={status:"pending",destinationTxHash:null,actionsSucceeded:!1};for(let p=0;p<h;p++){try{const d=await fetch(`${l}/deposit/status?originChainId=137&depositTxHash=${i}`);if(d.ok){const a=await d.json(),f=(a.status??"pending").toLowerCase(),g=a.fillTx??a.fillTxnRef??null,u=a.actionsSucceeded!==!1;if(f==="filled")return{status:"filled",destinationTxHash:g,actionsSucceeded:u};if(f==="refunded"||f==="expired")return{status:f,destinationTxHash:null,actionsSucceeded:!1};c={status:"pending",destinationTxHash:g,actionsSucceeded:u}}}catch{}p<h-1&&await new Promise(d=>setTimeout(d,x))}return c}async function on(i){const{name:o,identity:l,signer:x}=i,h=i.chainId??F.chainId,c=i.provider??"across",p=(i.beneficiary??await x.getAddress()).toLowerCase();let d=null,a=!1;console.info("[names] register start",{name:o,buyer:p,chainId:h,provider:c});try{const f=await Je(h),g=tn(f);console.info("[names] step 1/6 sized reservation",{usdCents:g,manaRate:f});const u=await nn(l,o,{chainId:h,provider:c});console.info("[names] step 2/6 route fetched",{target:u.externalCall.target,selector:u.externalCall.selector,provider:u.provider,quoteId:u.quoteId});const v=await Qe(l,g);if(d=v.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:v.credit.id,maxCreditedValue:v.maxCreditedValue}),me.from(v.maxCreditedValue).lt(W))throw new Error("Credit under-sized for the name price");const j=sn(v.credit,u);let m;try{m=await Wt({chainId:h,buyer:p,signer:x,args:j})}catch(b){if(!(b instanceof Bt))throw b;m=await Ht(h,j,x)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:m}),await Lt(m),a=!0,console.info("[names] step 5/6 origin tx confirmed",{originTxHash:m}),c==="across"){const b=await rn(m,i.acrossPoll);if(console.info("[names] step 6/6 across status",b),b.status==="pending")return{status:"pending",originTxHash:m};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:m,destinationTxHash:b.destinationTxHash}}return{status:"pending",originTxHash:m}}catch(f){if(console.error("[names] register failed — raw error:",f,{name:o,buyer:p,originConfirmed:a}),f instanceof Ut)return{status:"pending",originTxHash:f.txHash};if(d&&!a&&await Ye(l,[d]).catch(()=>{}),f instanceof ue)throw f;const g=new Error(Dt(f,"Couldn't register the name. Please try again.",{sale:!0}));throw g.cause=f,g}}const an=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
|
+
`,ln=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
|
+
`,ee=s.div`
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: flex-start;
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
gap: 12px;
|
|
28
|
+
`,te=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
|
+
`,ne=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
|
+
`,se=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
|
+
`,ie=s.hr`
|
|
73
|
+
border: 0;
|
|
74
|
+
border-top: 1px solid ${t.colors.line};
|
|
75
|
+
margin: 16px 0;
|
|
76
|
+
`,re=s.div`
|
|
77
|
+
display: flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
gap: 16px;
|
|
80
|
+
`,oe=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
|
+
`,ae=s.div`
|
|
95
|
+
flex: 1;
|
|
96
|
+
min-width: 0;
|
|
97
|
+
`,le=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
|
+
`,ce=s.div`
|
|
112
|
+
font-family: ${t.font.sans};
|
|
113
|
+
font-size: 14px;
|
|
114
|
+
color: ${t.colors.muted2};
|
|
115
|
+
`,de=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
|
+
`,cn=s.div`
|
|
131
|
+
margin-top: 16px;
|
|
132
|
+
padding: 16px;
|
|
133
|
+
border-radius: 12px;
|
|
134
|
+
background: #f2e7fc;
|
|
135
|
+
`,dn=s.div`
|
|
136
|
+
font-family: ${t.font.sans};
|
|
137
|
+
font-weight: 700;
|
|
138
|
+
font-size: 16px;
|
|
139
|
+
color: ${t.colors.text};
|
|
140
|
+
`,pn=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
|
+
`,hn=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
|
+
`,xn=s.span`
|
|
165
|
+
flex: none;
|
|
166
|
+
font-family: ${t.font.sans};
|
|
167
|
+
font-size: 18px;
|
|
168
|
+
color: ${t.colors.muted2};
|
|
169
|
+
`,fn=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
|
+
`,mn=s.span`
|
|
185
|
+
flex: none;
|
|
186
|
+
font-family: ${t.font.sans};
|
|
187
|
+
font-size: 16px;
|
|
188
|
+
color: ${t.colors.muted2};
|
|
189
|
+
`,Te=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
|
+
`,un=s.div`
|
|
217
|
+
display: flex;
|
|
218
|
+
flex-direction: column;
|
|
219
|
+
align-items: flex-start;
|
|
220
|
+
gap: 20px;
|
|
221
|
+
padding: 32px 0 8px;
|
|
222
|
+
`,gn=s.img`
|
|
223
|
+
align-self: center;
|
|
224
|
+
width: 56px;
|
|
225
|
+
height: 56px;
|
|
226
|
+
`,bn=s.div`
|
|
227
|
+
font-family: ${t.font.sans};
|
|
228
|
+
font-weight: 700;
|
|
229
|
+
font-size: 18px;
|
|
230
|
+
color: ${t.colors.text};
|
|
231
|
+
`,yn=s.div`
|
|
232
|
+
display: flex;
|
|
233
|
+
align-items: center;
|
|
234
|
+
gap: 12px;
|
|
235
|
+
width: 100%;
|
|
236
|
+
`,wn=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
|
+
`,jn=s.span`
|
|
261
|
+
flex: none;
|
|
262
|
+
font-family: ${t.font.sans};
|
|
263
|
+
font-size: 14px;
|
|
264
|
+
color: ${t.colors.muted};
|
|
265
|
+
`,vn=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
|
+
`,Cn=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
|
+
`,Re=s.div`
|
|
298
|
+
display: flex;
|
|
299
|
+
gap: 16px;
|
|
300
|
+
margin-top: 20px;
|
|
301
|
+
|
|
302
|
+
${t.media.maxWidth("mobile")} {
|
|
303
|
+
flex-direction: column;
|
|
304
|
+
}
|
|
305
|
+
`,ze=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
|
+
`,kn=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
|
+
`,pe=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 Sn({name:i,priceCredits:o,onClose:l}){const{session:x}=Me(),{data:h,isError:c}=nt(x),p=st(),d=Ae(),[a,f]=w.useState("confirm"),[g,u]=w.useState(""),[v,j]=w.useState(null),m=w.useRef(!1),b=g.trim().toLowerCase()===i.toLowerCase(),$=a==="completing",C=o!=null?fe(o):"—",k=o==null,E=h==null?void 0:h.credits,M=o!=null&&E!=null?o-E:0,S=M>0,N=k?n("names.priceUnavailable"):S?n("names.insufficientCredits",{credits:fe(M)}):null;w.useEffect(()=>{const y=R=>{R.key==="Escape"&&!$&&l()};document.addEventListener("keydown",y);const T=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",y),document.body.style.overflow=T}},[$,l]);async function B(){if(!(!x||!b||k||S||m.current)){m.current=!0,f("completing"),j(null);try{const y=await on({name:i,identity:x.identity,signer:x.signer});J("Shop Completed Purchase",{purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:o??null,settlement:y.status}),p.invalidateQueries({queryKey:["usd-balance"]}),p.invalidateQueries({queryKey:["my-assets"]}),f(y.status==="registered"?"success":"pending")}catch(y){J(at(y)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:ot(y),purchase_type:"name"}),j(y instanceof ue?n("names.errorRouteCost"):(y==null?void 0:y.message)||n("names.errorGeneric")),f("error")}finally{m.current=!1}}}const L=a!=="success"&&a!=="pending",z=it(x==null?void 0:x.providerType);return e.jsx(an,{onClick:$?void 0:l,role:"presentation",children:e.jsxs(ln,{role:"dialog","aria-modal":"true","aria-label":n("names.buyTitle"),onClick:y=>y.stopPropagation(),children:[L&&e.jsxs(e.Fragment,{children:[e.jsxs(ee,{children:[e.jsx(te,{children:a==="error"?n("names.errorTitle"):n("names.buyTitle")}),e.jsx(ne,{onClick:l,disabled:$,"aria-label":n("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(se,{children:[n("names.myCreditsBalance")," ",e.jsx(A,{})," ",Y(h,c)]}),e.jsx(ie,{})]}),(a==="confirm"||a==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs(re,{children:[e.jsx(oe,{"aria-hidden":!0,children:"@"}),e.jsxs(ae,{children:[e.jsxs(le,{children:[i,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ce,{children:n("names.subtitle")})]}),e.jsxs(de,{children:[e.jsx(A,{}),C]})]}),a==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(pe,{children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsx("span",{children:v})]}),e.jsx(Te,{onClick:()=>f("confirm"),children:n("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(cn,{children:[e.jsx(dn,{children:n("names.confirmTitle")}),e.jsx(pn,{dangerouslySetInnerHTML:{__html:n("names.confirmBody",{name:`<b>@${En(i)}</b>`})}}),e.jsxs(hn,{children:[e.jsx(xn,{"aria-hidden":!0,children:"@"}),e.jsx(fn,{value:g,onChange:y=>u(y.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":n("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(g.length,8)}ch`}}),e.jsx(mn,{children:".dcl.eth"})]})]}),N?e.jsxs(pe,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsx("span",{children:N})]}):null,e.jsx(Te,{onClick:()=>void B(),disabled:!b||!x||k||S,children:n("names.buyCta")})]})]}),a==="completing"&&e.jsxs(un,{children:[e.jsx(gn,{src:rt,alt:"",width:56,height:56}),e.jsx(bn,{children:z?n("names.confirming"):n("names.completing")}),e.jsxs(yn,{children:[e.jsx(wn,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(jn,{children:"1/1"})]})]}),a==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs(ee,{children:[e.jsx(te,{children:n("names.pendingHeaderTitle")}),e.jsx(ne,{onClick:l,"aria-label":n("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(se,{children:[n("names.myCreditsBalance")," ",e.jsx(A,{})," ",Y(h,c)]}),e.jsx(ie,{}),e.jsxs(pe,{"data-tone":"info",children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("b",{children:n("names.pendingBannerBold")})," ",n("names.pendingBannerRest")]})]}),e.jsxs(re,{style:{marginTop:20},children:[e.jsx(oe,{"aria-hidden":!0,children:"@"}),e.jsxs(ae,{children:[e.jsxs(le,{children:[i,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ce,{children:n("names.subtitle")})]}),e.jsxs(de,{children:[e.jsx(A,{}),C]})]}),e.jsx(Re,{children:e.jsx(ze,{onClick:()=>{l(),d("/my-items")},children:n("names.myItems")})})]}),a==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(ee,{children:[e.jsx(te,{children:n("names.successHeaderTitle")}),e.jsx(ne,{onClick:l,"aria-label":n("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(se,{children:[n("names.myCreditsBalance")," ",e.jsx(A,{})," ",Y(h,c)]}),e.jsx(ie,{}),e.jsxs(vn,{children:[e.jsx($n,{"aria-hidden":!0,children:e.jsx(_,{name:"check"})}),e.jsxs(Cn,{children:[e.jsx("b",{children:n("names.successBannerBold")})," ",n("names.successBannerRest")]})]}),e.jsxs(re,{style:{marginTop:20},children:[e.jsx(oe,{"aria-hidden":!0,children:"@"}),e.jsxs(ae,{children:[e.jsxs(le,{children:[i,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ce,{children:n("names.subtitle")})]}),e.jsxs(de,{children:[e.jsx(A,{}),C]})]}),e.jsxs(Re,{children:[e.jsx(ze,{onClick:()=>{l(),d("/my-items")},children:n("names.myItems")}),e.jsx(kn,{href:F.profileUrl,target:"_blank",rel:"noopener noreferrer",children:n("names.assignToAvatar")})]})]})]})})}function En(i){return i.replace(/[&<>"']/g,o=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[o])}const _n="https://cdn.decentraland.org/@dcl/shop/0.8.1-31010487922.commit-7e8c168/_assets/identity-B4DXDuJP.webp",Tn="https://cdn.decentraland.org/@dcl/shop/0.8.1-31010487922.commit-7e8c168/_assets/world-B-9aPlxu.webp",Rn="https://cdn.decentraland.org/@dcl/shop/0.8.1-31010487922.commit-7e8c168/_assets/invite-BfwIhP2C.webp",zn="https://cdn.decentraland.org/@dcl/shop/0.8.1-31010487922.commit-7e8c168/_assets/governance-DnazlIjy.webp",In=s.div`
|
|
383
|
+
width: 100%;
|
|
384
|
+
min-width: 0;
|
|
385
|
+
`,An=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
|
+
`,Mn=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
|
+
`,Nn=s.span`
|
|
410
|
+
font-weight: 700;
|
|
411
|
+
color: ${t.colors.muted};
|
|
412
|
+
`,Pn=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
|
+
`,Fn=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
|
+
`,Wn=s.div`
|
|
442
|
+
display: flex;
|
|
443
|
+
flex-direction: column;
|
|
444
|
+
align-items: center;
|
|
445
|
+
gap: 12px;
|
|
446
|
+
`,Bn=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
|
+
`,Ln=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
|
+
`,Un=s.div`
|
|
470
|
+
width: min(785px, 100%);
|
|
471
|
+
display: flex;
|
|
472
|
+
flex-direction: column;
|
|
473
|
+
gap: 12px;
|
|
474
|
+
`,Hn=s.div`
|
|
475
|
+
position: relative;
|
|
476
|
+
`,On=s("div",Vt("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:i})=>i?t.colors.dclRed:t.colors.line};
|
|
483
|
+
border-radius: 20px;
|
|
484
|
+
|
|
485
|
+
&:focus-within {
|
|
486
|
+
border-color: ${({invalid:i})=>i?t.colors.dclRed:t.colors.magenta};
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
${t.media.maxWidth("mobile")} {
|
|
490
|
+
border-radius: 16px;
|
|
491
|
+
}
|
|
492
|
+
`,Dn=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
|
+
`,Gn=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
|
+
`,qn=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
|
+
`,Vn=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
|
+
`,Zn=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
|
+
`,Kn=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
|
+
`,Xn=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
|
+
`,Jn=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
|
+
`,Be=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
|
+
`,Qn=s(Be)`
|
|
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
|
+
`,Yn=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
|
+
`,he=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:i})=>i==="error"?"rgba(255, 45, 85, 0.12)":i==="ok"?"rgba(30, 166, 114, 0.14)":"rgba(255,255,255,0.14)"};
|
|
673
|
+
color: ${({tone:i})=>i==="error"?t.colors.dclRed:i==="ok"?"#0f7a4f":"#ecebed"};
|
|
674
|
+
|
|
675
|
+
.ico {
|
|
676
|
+
width: 16px;
|
|
677
|
+
height: 16px;
|
|
678
|
+
flex: none;
|
|
679
|
+
}
|
|
680
|
+
`,es=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
|
+
`,ts=s.div`
|
|
691
|
+
display: flex;
|
|
692
|
+
flex-direction: column;
|
|
693
|
+
align-items: center;
|
|
694
|
+
gap: 24px;
|
|
695
|
+
`,ns=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
|
+
`,ss=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
|
+
`,is=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
|
+
`,q=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
|
+
`,V=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
|
+
`,Z=s.div`
|
|
747
|
+
flex: 1;
|
|
748
|
+
display: flex;
|
|
749
|
+
flex-direction: column;
|
|
750
|
+
gap: 6px;
|
|
751
|
+
padding: 12px 16px;
|
|
752
|
+
`,K=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
|
+
`,X=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
|
+
`,rs=s.span`
|
|
768
|
+
font-weight: 600;
|
|
769
|
+
color: ${t.colors.accent};
|
|
770
|
+
`,Ie=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
|
+
`,os=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
|
+
`,as="https://docs.decentraland.org/creator/worlds/about/",ls="https://governance.decentraland.org";function cs(i){const o=typeof window<"u"?window.location.hostname:"";return`${o.endsWith("decentraland.org")?"https://decentraland.org":o.endsWith("decentraland.today")?"https://decentraland.today":"https://decentraland.zone"}/marketplace/names/browse?search=${encodeURIComponent(i)}`}function ds({onBack:i}){Ne({title:n("seo.names.title"),description:n("seo.names.description")});const{session:o,signIn:l}=Me(),{data:x}=Pe(),h=x?Fe(W,x):null,[c,p]=w.useState(""),[d,a]=w.useState("idle"),[f,g]=w.useState(!1),u=w.useRef(null),[v,j]=w.useState(void 0);w.useLayoutEffect(()=>{u.current&&j(u.current.offsetWidth)},[c]),w.useEffect(()=>{if(!Ee(c).ok){a(c.length===0?"idle":"invalid");return}a("checking");const E=new AbortController,M=setTimeout(()=>{(async()=>{try{const S=await Yt(c,{signal:E.signal});a(S)}catch(S){if((S==null?void 0:S.name)==="AbortError")return;a("error")}})()},400);return()=>{clearTimeout(M),E.abort()}},[c]);const m=Ee(c),b=m.ok&&(d==="available"||d==="error");function $(){if(b){if(!o){l();return}g(!0)}}const C=e.jsxs(e.Fragment,{children:[n("names.claim"),h!=null?e.jsxs(Yn,{children:[e.jsx(A,{}),fe(h)]}):null]});return e.jsxs(In,{"data-testid":"names-page",children:[e.jsxs(An,{"aria-label":n("names.breadcrumbAria"),children:[e.jsx(Mn,{onClick:i,children:n("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(Nn,{children:n("names.breadcrumbCurrent")})]}),e.jsxs(Pn,{children:[e.jsxs(Fn,{children:[e.jsxs(Wn,{children:[e.jsx(Bn,{children:n("names.heroTitle")}),e.jsx(Ln,{children:n("names.heroSubtitle")})]}),e.jsxs(Un,{children:[e.jsxs(Hn,{children:[e.jsxs(On,{invalid:d==="taken",children:[e.jsxs(Vn,{children:[e.jsx(Zn,{"aria-hidden":!0,children:"@"}),e.jsx(Kn,{value:c,onChange:k=>p(Xt(k.target.value)),placeholder:n("names.inputPlaceholder"),"aria-label":n("names.inputAria"),autoComplete:"off",spellCheck:!1,maxLength:Q,style:{width:v!=null?`${v}px`:void 0}}),e.jsx(Dn,{ref:u,"aria-hidden":!0,children:c||n("names.inputPlaceholder")}),e.jsx(Xn,{children:n("names.suffix")})]}),c.length>0?e.jsxs(Jn,{"aria-hidden":!0,children:[c.length,"/",Q]}):null,e.jsx(Be,{onClick:$,disabled:!b,"data-testid":"names-claim",children:C})]}),d==="taken"?e.jsxs(Gn,{role:"status","data-testid":"names-taken",children:[e.jsx(_,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:n("names.taken")}),e.jsxs(qn,{href:cs(c),target:"_blank",rel:"noopener noreferrer",children:[n("names.takenMakeOffer"),e.jsx(_,{name:"external-link",size:13,"aria-hidden":!0})]})]}):null]}),e.jsx(Qn,{onClick:$,disabled:!b,children:C}),d==="checking"?e.jsx(he,{tone:"muted",role:"status","data-testid":"names-checking",children:n("names.checking")}):d==="error"?e.jsx(he,{tone:"muted",role:"status",children:n("names.checkError")}):d==="invalid"&&!m.ok&&m.reason==="too-short"?e.jsx(he,{tone:"muted",role:"status",children:n("names.tooShort",{min:We})}):null,e.jsx(os,{role:"status","aria-live":"polite",children:d==="available"?n("names.available",{name:c}):""})]})]}),e.jsxs(es,{children:[e.jsxs(ts,{children:[e.jsx(ns,{children:n("names.whyTitle")}),e.jsx(ss,{children:n("names.whyIntro")})]}),e.jsxs(is,{children:[e.jsxs(q,{children:[e.jsx(V,{src:_n,alt:""}),e.jsxs(Z,{children:[e.jsx(K,{children:n("names.why1Title")}),e.jsx(X,{children:n("names.why1")})]})]}),e.jsxs(q,{children:[e.jsx(V,{src:Tn,alt:""}),e.jsxs(Z,{children:[e.jsx(K,{children:n("names.why2Title")}),e.jsxs(X,{children:[n("names.why2")," ",e.jsx(rs,{children:n("names.why2Address")})]}),e.jsxs(Ie,{href:as,target:"_blank",rel:"noopener noreferrer",children:[n("names.learnMore"),e.jsx(_,{name:"external-link","aria-hidden":!0})]})]})]}),e.jsxs(q,{children:[e.jsx(V,{src:Rn,alt:""}),e.jsxs(Z,{children:[e.jsx(K,{children:n("names.why3Title")}),e.jsx(X,{children:n("names.why3")})]})]}),e.jsxs(q,{children:[e.jsx(V,{src:zn,alt:""}),e.jsxs(Z,{children:[e.jsx(K,{children:n("names.why4Title")}),e.jsx(X,{children:n("names.why4")}),e.jsxs(Ie,{href:ls,target:"_blank",rel:"noopener noreferrer",children:[n("names.learnMore"),e.jsx(_,{name:"external-link","aria-hidden":!0})]})]})]})]})]})]}),f?e.jsx(Sn,{name:c,priceCredits:h,onClose:()=>g(!1)}):null]})}const ps="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",xe=48,hs=["all","on_sale","not_for_sale"];function Is(){const[i]=Ke(),o=Ae(),l=(i.get("q")??"").trim().toLowerCase(),x=(i.get("q")??"").trim();Ne({title:x?n("seo.collectibles.searchTitle",{query:x}):n("seo.collectibles.title"),description:n("seo.collectibles.description")});const h=w.useMemo(()=>({category:l?"all":"wearable",status:"on_sale",subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,sort:"newest"}),[l]),[c,p]=Xe(h),{subCategory:d,rarities:a,priceMin:f,priceMax:g,smart:u,sort:v}=c,j=c.category,m=hs.includes(c.status)?c.status:"on_sale",[b,$]=w.useState(!1);w.useEffect(()=>{if(!b)return;const r=O=>{O.key==="Escape"&&$(!1)};document.addEventListener("keydown",r);const I=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",r),document.body.style.overflow=I}},[b]);const C=m==="on_sale",k=f&&!Number.isNaN(Number(f))?Number(f):void 0,E=g&&!Number.isNaN(Number(g))?Number(g):void 0,M=lt(),S=d?At[d]:void 0,N=(Se.find(r=>r.key===v)??Se[0]).server,B={category:j,rarities:a.length?a:void 0,wearableCategories:S,minPriceCredits:k,maxPriceCredits:E,search:l||void 0,sortBy:N,isSmart:u||void 0,onSale:!0,listingType:M?void 0:"primary"},L={category:j,rarities:a.length?a:void 0,wearableCategories:S,search:l||void 0,sortBy:N,isWearableSmart:u||void 0,isOnSale:m==="not_for_sale"?!1:void 0},{items:z,total:y,isLoading:T,isPlaceholderData:R,error:ge,hasNextPage:Le,isFetchingNextPage:be,isFetchNextPageError:Ue,fetchNextPage:He}=Nt(C?["shop-items",B]:["catalog-items",L],r=>C?dt({...B,first:xe,skip:r}):pt({...L,first:xe,skip:r}),{enabled:j!=="names"}),U=y,{data:ye,isError:Oe,isPending:De}=Pe(),Ge=r=>ye&&r.manaWei?Fe(r.manaWei,ye):null,qe=C&&De&&z.some(r=>r.source==="legacy"),we=T||R||qe,Ve=T?15:Math.min(Math.max(z.length,1),xe),je=w.useRef(null);w.useEffect(()=>{T||R||!l||je.current===l||(je.current=l,J("Shop Searched",{query:l,result_count:U}))},[l,T,R,U]);const H=w.useRef("__init__");w.useEffect(()=>{if(T||R)return;const r=JSON.stringify({category:j,subCategory:d,rarities:a,min:k,max:E,sort:v,status:m,smart:u});if(H.current==="__init__"||H.current===r){H.current=r;return}H.current=r,J("Shop Applied Filter",{filters:{category:j,sub_category:d,rarities:a,min_price_credits:k??null,max_price_credits:E??null,status:m,smart:u,sort:v},result_count:U})},[j,d,a,k,E,v,m,u,T,R,U]);function ve(r){p({category:r,subCategory:null})}function $e(r){p({status:r})}function Ce(r){p({rarities:a.includes(r)?a.filter(I=>I!==r):[...a,r]})}function Ze(){p(h)}const P=[];(k!=null||E!=null)&&P.push({key:"price",label:n("filter.price"),onRemove:()=>{p({priceMin:"",priceMax:""})}});for(const r of zt)a.includes(r)&&P.push({key:`rarity-${r}`,label:ct(r),onRemove:()=>Ce(r)});return u&&P.push({key:"smart",label:n("filter.smart"),onRemove:()=>p({smart:!1})}),m!=="on_sale"&&P.push({key:"status",label:m==="all"?n("filter.statusAll"):n("filter.notForSale"),onRemove:()=>$e("on_sale")}),e.jsxs(ht,{"data-testid":"browse",children:[j!=="names"&&e.jsxs(e.Fragment,{children:[b?e.jsx(xt,{onClick:()=>$(!1),"aria-hidden":!0}):null,e.jsxs(ft,{"data-open":b||void 0,"data-testid":"browse-sidebar",children:[e.jsxs(mt,{children:[e.jsx(ut,{children:n("assets.filters")}),e.jsx(gt,{onClick:()=>$(!1),"aria-label":n("assets.closeFilters"),children:"✕"})]}),e.jsx(bt,{children:e.jsx(yt,{category:j,subCategory:d,onCategory:ve,onSub:r=>p({subCategory:r}),priceMin:f,priceMax:g,onPriceMin:r=>p({priceMin:r}),onPriceMax:r=>p({priceMax:r}),rarities:a,onToggleRarity:Ce,status:m,onStatus:$e,smart:u,onSmart:r=>p({smart:r})})}),e.jsx(wt,{children:e.jsx(jt,{type:"button",onClick:()=>$(!1),children:n("assets.showItems")})})]})]}),e.jsx(vt,{children:j==="names"?e.jsx(ds,{onBack:()=>ve("wearable")}):e.jsxs(e.Fragment,{children:[e.jsx(It,{sort:v,onSort:r=>p({sort:r}),total:y,loading:T||R,query:l,onOpenFilters:()=>$(!0),chips:P,onClearChips:Ze}),Oe&&C&&z.some(r=>r.source==="legacy")?e.jsx($t,{"data-variant":"warn",children:n("assets.marketUnavailable")}):null,ge?e.jsx(Pt,{message:n("assets.loadError"),testId:"browse-error"}):null,!we&&z.length===0&&!ge?e.jsxs(Ct,{"data-testid":"browse-empty",children:[e.jsx(kt,{src:ps,alt:""}),e.jsxs(St,{children:[e.jsx(Et,{children:n("assets.empty.title")}),e.jsx(_t,{children:x?e.jsxs(e.Fragment,{children:[n("assets.empty.searchBefore"),e.jsx("b",{children:x}),n("assets.empty.searchAfter")]}):n("assets.empty.filters")})]}),e.jsx(Tt,{children:e.jsx(Rt,{type:"button",onClick:()=>o("/overview"),children:n("assets.empty.cta")})})]}):e.jsxs(e.Fragment,{children:[e.jsx(Zt,{"data-testid":"grid",children:we?e.jsx(ke,{count:Ve}):e.jsxs(e.Fragment,{children:[z.map(r=>{if(!C)return e.jsx(D,{item:r,mode:"view"},G(r));const I=r;if(I.source!=="legacy")return e.jsx(D,{item:r},G(r));const O=Ge(I);return O==null?e.jsx(D,{item:r,mode:"view"},G(r)):e.jsx(D,{item:{...I,priceCredits:O}},G(r))}),be?e.jsx(ke,{count:6}):null]})}),e.jsx(Mt,{hasNextPage:Le,isFetching:be,isError:Ue,onLoadMore:()=>void He()})]})]})})]})}export{Is as Assets};
|