@dcl/shop 0.8.1-31008797734.commit-eb2f6cb → 0.8.1-31011914733.commit-0303b0f
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-CapGczIs.js → Activity-DGqf6vtH.js} +5 -5
- package/_assets/{AnimatedBackground-1lH1wjHQ.js → AnimatedBackground-DYvwYlNX.js} +2 -2
- package/_assets/Assets-BIhyhEpJ.js +801 -0
- package/_assets/{Assets.styles-Bt-s2_ut.js → Assets.styles-BEwmRTV4.js} +1 -1
- package/_assets/{Authorizations-C49I-wsa.js → Authorizations-CgtzIHfa.js} +3 -3
- package/_assets/{Cart-R0jc0Mtq.js → Cart-k3bkiglX.js} +3 -3
- package/_assets/{CircularProgress-oGVz5EPN.js → CircularProgress-B7QTjxqg.js} +3 -3
- package/_assets/{Collection-BRryMeDA.js → Collection-CIBOTqpS.js} +10 -10
- package/_assets/{CollectionCarousel-DeIZf2z7.js → CollectionCarousel-aBELR_tf.js} +14 -14
- package/_assets/{ConstantsUtil-Di3dRDAF.js → ConstantsUtil-BkhvNc68.js} +1 -1
- package/_assets/{ContentClient-CRr9ZuRH.js → ContentClient-CGWTGqN4.js} +1 -1
- package/_assets/Creator-DXbJoM5n.js +306 -0
- package/_assets/{DeploymentBuilder-DYNbIRzZ.js → DeploymentBuilder-CFls_09j.js} +1 -1
- package/_assets/{ErrorNotice-CaJ4BfpX.js → ErrorNotice-8bHn1hfP.js} +1 -1
- package/_assets/{ExchangeController-ylaSPIVN.js → ExchangeController-BV3dQlup.js} +1 -1
- package/_assets/{Faq-BlN_im0Z.js → Faq-DNu30-Jv.js} +1 -1
- package/_assets/{GetCredits-Bq109qIo.js → GetCredits-9vsaKO2k.js} +19 -19
- package/_assets/{Grow-AdrGqCKp.js → Grow-OxzXVVhg.js} +1 -1
- package/_assets/{HelpersUtil-DYRUV4ir.js → HelpersUtil-NjrztWi6.js} +1 -1
- package/_assets/{ItemDetail-CqPBV2Z6.js → ItemDetail-tYnpUH4x.js} +13 -13
- package/_assets/LazyEmoteControls-BW-FF_VV.js +2 -0
- package/_assets/{LoadMore-DcFUIXjj.js → LoadMore-CwQ5CTJq.js} +1 -1
- package/_assets/{ManaPricingBanner.styles-BO0m_Umj.js → ManaPricingBanner.styles-Bc06axQv.js} +1 -1
- package/_assets/{MyAssets-BmFw49q2.js → MyAssets-B0Mjtokt.js} +1 -1
- package/_assets/{MyFavorites-6RxzTIj2.js → MyFavorites-Cw_mmcDj.js} +2 -2
- package/_assets/{NetworkUtil-EoWQDMpU.js → NetworkUtil-CO-1nCx-.js} +1 -1
- package/_assets/{NotFound-B5SrDziU.js → NotFound-An1qy2HJ.js} +1 -1
- package/_assets/{NotificationsBell-Da1N_v4W.js → NotificationsBell-DQLaaXFc.js} +1 -1
- package/_assets/{OutfitDetail-C9xS5y3b.js → OutfitDetail-BsbdpKHB.js} +15 -15
- package/_assets/{OutfitPreview-BavGOcGw.js → OutfitPreview-zqj27b-1.js} +2 -2
- package/_assets/{OutfitStudio-DvHI7hY9.js → OutfitStudio-BF3ZInz5.js} +15 -15
- package/_assets/{StoreSettings-D59hqgX9.js → StoreSettings-Dsw9PcCY.js} +9 -9
- package/_assets/{Success-BgPzwWQz.js → Success-DzSr1ZKs.js} +10 -10
- package/_assets/{SwapController-DDxe_vs9.js → SwapController-c0ZMV7-y.js} +1 -1
- package/_assets/{Tooltip-DNaztCta.js → Tooltip-AFYoHds5.js} +2 -2
- package/_assets/{TradeService-CYH4QAmr.js → TradeService-K7nSBrHI.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-CpPJKj3w.js → W3MFrameProviderSingleton-BvhBpuKR.js} +3 -3
- package/_assets/{WebCryptoP256-C2RAff-9.js → WebCryptoP256-uR3swvrR.js} +1 -1
- package/_assets/authorizations-D4wI085M.js +1 -0
- package/_assets/{basic-CdcRV_KC.js → basic-BPisXakk.js} +1 -1
- package/_assets/{biconomy-CJTRSa73.js → biconomy-CvHs_GN7.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-DvCRptIy.js → builder-CkJrDc5k.js} +1 -1
- package/_assets/buy-BeDHfPC-.js +1 -0
- package/_assets/{buy-gasless-BfGxYXhk.js → buy-gasless-DINFD15F.js} +1 -1
- package/_assets/{categories-BipVdfM3.js → categories-kKk2jGpz.js} +13 -7
- package/_assets/{ccip-B45ZUnTU.js → ccip-74NajMIb.js} +1 -1
- package/_assets/{ccip-DaSXseHx.js → ccip-Umb7T-xD.js} +1 -1
- package/_assets/{chains-DPlhC0Sw.js → chains-BqVOrxrG.js} +1 -1
- package/_assets/{collectionPage.styles-cfpY_oN5.js → collectionPage.styles-tZrmrhPT.js} +4 -4
- package/_assets/{common-CNwVQ4p9.js → common-CkYiP-7J.js} +1 -1
- package/_assets/{controller-lZ2UgMCg.js → controller-DGdZ6Mn-.js} +2 -2
- package/_assets/{core-BaJayjCH.js → core-CNlDVTsP.js} +4 -4
- package/_assets/{createSvgIcon-DF7XmQgC.js → createSvgIcon-Ce14xVZm.js} +4 -4
- package/_assets/{custom-DHI2SWZb.js → custom-Dv8Lo1kL.js} +1 -1
- package/_assets/{data-capture-DRojwyQm.js → data-capture-5ClKTSe8.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-DbjLMCR0.js → email-CiIvohkt.js} +1 -1
- package/_assets/{embedded-wallet-s2SLkWS-.js → embedded-wallet-Cv54Jked.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-BvuB9FLv.js → emotion-styled.browser.esm-BDjD0BzD.js} +1 -1
- package/_assets/{engine-C8CwR5vD.js → engine-BSj9q-aH.js} +1 -1
- package/_assets/errors-COaDYYX2.js +1 -0
- package/_assets/estimate-l1-fee-6I-Z51za.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-DfFT0VMF.js → execute-B6hfBxSa.js} +2 -2
- package/_assets/{extractIPFS-CUaS-9Rs.js → extractIPFS-DzfSqAlh.js} +1 -1
- package/_assets/{features-B4j4EiIm.js → features-BJpZyJij.js} +1 -1
- package/_assets/{fetchTokenMetadata-JvX58EZZ.js → fetchTokenMetadata-ARrwD89L.js} +2 -2
- package/_assets/{field.styles-DT9c-jpk.js → field.styles-BjYlzCrg.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-9HmWzdfL.js +1 -0
- package/_assets/{getBalance-C7PDKGyV.js → getBalance-32RCC6W6.js} +2 -2
- package/_assets/{getInstalledModules-tywfzr6y.js → getInstalledModules-BE5-ES5I.js} +1 -1
- package/_assets/{getNFT-unPO0gFo.js → getNFT-Bdzdl0tm.js} +2 -2
- package/_assets/getNFT-Bvh35NBt.js +1 -0
- package/_assets/{grid.styles--OULZO8_.js → grid.styles-C5FdGoZt.js} +1 -1
- package/_assets/{hashTypedData-BFsuXzQL.js → hashTypedData-C1J-Yu5X.js} +1 -1
- package/_assets/{hashTypedData-kUbQfEXm.js → hashTypedData-Cd2jo0fu.js} +1 -1
- package/_assets/{in-app-DWfmO8Q_.js → in-app-B12bHXEw.js} +1 -1
- package/_assets/{in-app-wallet-calls-8wNNNyL8.js → in-app-wallet-calls-C6NnLiF5.js} +1 -1
- package/_assets/{index-CO7DPL5n.js → index--Ye27Vx_.js} +1 -1
- package/_assets/{index-B21P_cdc.js → index-0XvBS5zv.js} +1 -1
- package/_assets/index-3QPqSkja.js +1 -0
- package/_assets/{index-CSlo2BeJ.js → index-7vaOJntM.js} +1 -1
- package/_assets/{index-DKNHcW37.js → index-9Q-G51o6.js} +1 -1
- package/_assets/{index-BpqWJGbO.js → index-B01yzeQ8.js} +1 -1
- package/_assets/{index-gtKOmjie.js → index-B0AXM_VY.js} +1 -1
- package/_assets/{index-L36hhrTC.js → index-B0Nj1Xpe.js} +1 -1
- package/_assets/{index-CHeOAb8t.js → index-B984MHyM.js} +1 -1
- package/_assets/{index-DEixw9nt.js → index-B9aOPYnq.js} +2 -2
- package/_assets/{index-D4g9OvJl.js → index-BFBo1N5P.js} +1 -1
- package/_assets/{index-B5V2Mfv7.js → index-BHNHvbUP.js} +1 -1
- package/_assets/{index-DrfYWb8y.js → index-BQE4xPAY.js} +1 -1
- package/_assets/{index-BSytKqYf.js → index-BRh_MAtG.js} +1 -1
- package/_assets/{index-iKntYXVT.js → index-BXgz5CqZ.js} +1 -1
- package/_assets/{index-DWj4wDAA.js → index-Bbo2skmn.js} +1 -1
- package/_assets/{index-C33PRPh0.js → index-BhB231bL.js} +1 -1
- package/_assets/{index-DzC2inVj.js → index-BhKN5EIF.js} +2 -2
- package/_assets/{index-B88q9WNj.js → index-Bl9A4aCY.js} +1 -1
- package/_assets/{index-DwGUnOIf.js → index-BngbLeyt.js} +2 -2
- package/_assets/{index-C9dJz7_C.js → index-BrlzlDYY.js} +1 -1
- package/_assets/{index-Cv1Bu0gQ.js → index-BsSKIwHD.js} +1 -1
- package/_assets/{index-CTpdUOYC.js → index-BzcwOGk4.js} +1 -1
- package/_assets/{index-CgsHuxXG.js → index-C3FbBJ0B.js} +1 -1
- package/_assets/{index-BLkWo_Go.js → index-C4hDSOGl.js} +1 -1
- package/_assets/{index-CRSZ3s2j.js → index-CC-AzsUH.js} +1 -1
- package/_assets/{index-DftqIOqz.js → index-CC3KVZ-C.js} +1 -1
- package/_assets/{index-Dqvb_KIH.js → index-CEmq93Ky.js} +1 -1
- package/_assets/{index-DI-3MKLG.js → index-CJEkcTww.js} +1 -1
- package/_assets/{index-k4pqNBN1.js → index-CJlYjYNZ.js} +3 -3
- package/_assets/{index-CyKbrkx3.js → index-CK9g-jse.js} +1 -1
- package/_assets/{index-Br42MJqt.js → index-CMpfBNnD.js} +1 -1
- package/_assets/{index-CJxN46d5.js → index-CN92MtoS.js} +1 -1
- package/_assets/{index-SoZBe0_y.js → index-CO7GzJir.js} +1 -1
- package/_assets/{index-ZfyGtYO-.js → index-CVHBMZma.js} +8 -8
- package/_assets/{index-t7HoEVst.js → index-CWqCDmmG.js} +1 -1
- package/_assets/{index-ChoD4sDT.js → index-CpJZJukx.js} +2 -2
- package/_assets/{index-IMydr643.js → index-CsM5PUdn.js} +2 -2
- package/_assets/{index-CFZPZumX.js → index-Cx6dOZTN.js} +3 -3
- package/_assets/{index-Bx-jvfF5.js → index-CxfuGaDv.js} +1 -1
- package/_assets/{index-B_JiruyT.js → index-CydESP8d.js} +1 -1
- package/_assets/{index-CzdGMX6J.js → index-D1hB2lFW.js} +1 -1
- package/_assets/{index-z4ApZl83.js → index-D2_T8MLY.js} +1 -1
- package/_assets/{index-oi06tQTW.js → index-D4N_qlW4.js} +1 -1
- package/_assets/{index-B30SuUvk.js → index-DIELA4su.js} +1 -1
- package/_assets/{index-9X8Ovbfy.js → index-DM4ZKIDP.js} +1 -1
- package/_assets/{index-G6kG-9qx.js → index-DRT-S6qO.js} +1 -1
- package/_assets/{index-LvIL_l-n.js → index-DX4C1Af8.js} +1 -1
- package/_assets/{index-B6GXvxon.js → index-Do3GSrTN.js} +3 -3
- package/_assets/{index-ukEGQ13w.js → index-DpSVgnb5.js} +1 -1
- package/_assets/{index-BdDjhXGr.js → index-DygpMJS7.js} +3 -3
- package/_assets/{index-CzMPXy_5.js → index-Dyrrv-jJ.js} +1 -1
- package/_assets/{index-BkMwrTJ3.js → index-DzGUGKu8.js} +1 -1
- package/_assets/{index-BaUjL_QW.js → index-Fivnn7mf.js} +1 -1
- package/_assets/{index-Dfv984cL.js → index-KJ7hHQUO.js} +1 -1
- package/_assets/{index-Bmwk_FdV.js → index-KoOOqA3z.js} +1 -1
- package/_assets/{index-BX2ff1lz.js → index-V7aSbkHg.js} +317 -317
- package/_assets/{index-BL4gRYk8.js → index-Y8dCmAYo.js} +1 -1
- package/_assets/{index-jlroLVaQ.js → index-aXb_PvXT.js} +1 -1
- package/_assets/{index-D9iz0e2C.js → index-dixEk7jd.js} +1 -1
- package/_assets/{index-Ct7WFTlN.js → index-f74S-M7s.js} +1 -1
- package/_assets/{index-D2BcAgcM.js → index-s_bfhZ6F.js} +1 -1
- package/_assets/{index-u7rLkjFo.js → index-srBAWpfF.js} +1 -1
- package/_assets/{index-B5dmZpx0.js → index-xl5neHLR.js} +1 -1
- package/_assets/{index.es-BQKIKl0W.js → index.es-B_wTHOdN.js} +1 -1
- package/_assets/{index.es-q4rveQRm.js → index.es-BzqwSDFf.js} +4 -4
- package/_assets/{index.es-DQ3AciL_.js → index.es-DrfFlp1M.js} +1 -1
- package/_assets/{index.es-BfIGmWDo.js → index.es-sJaJm3UW.js} +1 -1
- package/_assets/{linkAccount-BodpWbRq.js → linkAccount-CNeA4_rd.js} +1 -1
- package/_assets/{localBatchGatewayRequest-CAHKJ55d.js → localBatchGatewayRequest-Ca5n5qCv.js} +1 -1
- package/_assets/{native-DfrS-44q.js → native-D1Bt7nPF.js} +1 -1
- package/_assets/{networks-DS2vXM8O.js → networks-iVGk0JJM.js} +1 -1
- package/_assets/{onramp-mbiOwW7h.js → onramp-C4kGKm8k.js} +1 -1
- package/_assets/{openzeppelin-BQFFlT7c.js → openzeppelin-Cq0U5Yj-.js} +1 -1
- package/_assets/{ownerOf-Dw2VC0ue.js → ownerOf-CSle-7WO.js} +1 -1
- package/_assets/parseNft-DxFyV4vL.js +2 -0
- package/_assets/{parseSignature-Ch9ppofj.js → parseSignature-CGjLk_wy.js} +3 -3
- package/_assets/{parseSignature-D0_O5-co.js → parseSignature-COtTJutO.js} +1 -1
- package/_assets/{passkeys-DRknHpBt.js → passkeys-DaKZKc5X.js} +1 -1
- package/_assets/{pay-with-exchange-Dn_V8cBw.js → pay-with-exchange-C9uv-ieY.js} +1 -1
- package/_assets/{prepare-contract-call-BnXbUbQT.js → prepare-contract-call-Nm9e1q7x.js} +1 -1
- package/_assets/{qr-overlay-DbswS99M.js → qr-overlay-CQQySlBn.js} +3 -3
- package/_assets/{react-DehiWSvs.js → react-OEOSdkUk.js} +1 -1
- package/_assets/{receive-oTJ8Y5Fv.js → receive-BBhp5SjJ.js} +1 -1
- package/_assets/{resolveImplementation-LBp3vWrw.js → resolveImplementation-BhoUOPQQ.js} +1 -1
- package/_assets/{rpc-BnQU2Nrx.js → rpc-DTh3KIva.js} +1 -1
- package/_assets/{secp256k1-C_L-TT77.js → secp256k1-D3oKlH7Y.js} +1 -1
- package/_assets/{secp256k1-BkFY1jqh.js → secp256k1-DDJ2_Bsx.js} +1 -1
- package/_assets/{secp256k1-BWXLazAv.js → secp256k1-DbjmQrSL.js} +1 -1
- package/_assets/{send-BPCyi9TB.js → send-B38BS5L-.js} +1 -1
- package/_assets/{send-batch-transaction-mY-UiFOT.js → send-batch-transaction-CKNSzTrU.js} +1 -1
- package/_assets/{send-eip712-transaction-DRfPDTLF.js → send-eip712-transaction-CQkqFshV.js} +2 -2
- package/_assets/send-gasless-transaction-0E-pHV_D.js +2 -0
- package/_assets/{send-transaction-DCAhhidV.js → send-transaction-DUvtCNaC.js} +2 -2
- package/_assets/{sendMetaTransaction-DtQHFBj2.js → sendMetaTransaction-BUU2XPaW.js} +1 -1
- package/_assets/{sendRawTransaction-_EHuG-5K.js → sendRawTransaction-DSl2j5Tv.js} +3 -3
- package/_assets/{sentry-973sfbO9.js → sentry-B60WY-np.js} +1 -1
- package/_assets/{serializeTransaction-CIlFTvLD.js → serializeTransaction-GOaI2-vB.js} +1 -1
- package/_assets/{session-proposal-Kaq1rakL.js → session-proposal-B31UMpQa.js} +1 -1
- package/_assets/{session-request-Bhg3VOB_.js → session-request-CXbKG_CB.js} +2 -2
- package/_assets/{sha256--PXCNFKm.js → sha256-B3W1x8Ou.js} +1 -1
- package/_assets/{signing-A5julnDu.js → signing-Bzt09eMi.js} +3 -3
- package/_assets/{socials-DtoQHgT-.js → socials-CNNRzT2N.js} +1 -1
- package/_assets/{styled-B_wXmJ0m.js → styled-f0hxr1BX.js} +2 -2
- package/_assets/{swaps-BovUfBzi.js → swaps-Dm6opnzM.js} +1 -1
- package/_assets/{thirdweb-B9JJ0CvC.js → thirdweb-BsryIfzq.js} +3 -3
- package/_assets/{to-serializable-transaction-Y_vwOVtu.js → to-serializable-transaction-CspH4HXW.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-B9cYMakC.js → transactionReceipt-LkdfOGrW.js} +1 -1
- package/_assets/{transactions-CyD4useP.js → transactions-CHt9afcL.js} +1 -1
- package/_assets/{useCreditPacks-CDKB1mCH.js → useCreditPacks-DW-oKsgc.js} +1 -1
- package/_assets/useImportable-4rP-UQqs.js +1 -0
- package/_assets/{useInfiniteGrid-LaB4F8oP.js → useInfiniteGrid-Cjl-Omaq.js} +1 -1
- package/_assets/useTheme-Dh6eiJOj.js +1 -0
- package/_assets/useUrlFilters-DABDXRpV.js +1 -0
- package/_assets/{utils-B9hEgCzc.js → utils-BkRfOA0C.js} +1 -1
- package/_assets/{verifyHash-CkHXeOHN.js → verifyHash--XBApVq4.js} +1 -1
- package/_assets/{w3m-modal-C7ksBSKz.js → w3m-modal-cc9RBS7W.js} +1 -1
- package/_assets/{w3m-modal-BQ-Br_Vq.js → w3m-modal-dINBeQa2.js} +1 -1
- package/_assets/{wait-for-tx-receipt-Cs1Rwwd_.js → wait-for-tx-receipt-CW92WmOA.js} +1 -1
- package/_assets/{wallets-DUO7Hcth.js → wallets-DgijLpqw.js} +5 -5
- package/_assets/{web-connector-Dqtd76KB.js → web-connector-C3GRXbj_.js} +3 -3
- package/_assets/{writeContract-XtplIyls.js → writeContract-B4uhDk93.js} +1 -1
- package/_assets/{zora-sepolia-Dv22rzxP.js → zora-sepolia-DOetv30E.js} +1 -1
- package/_assets/{zoraTestnet-BDLSoP78.js → zoraTestnet-CXJJv6qS.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Assets-DhP8-4kD.js +0 -801
- package/_assets/Creator-bjXQ5uOB.js +0 -306
- package/_assets/LazyEmoteControls-CxMqk8Wm.js +0 -2
- package/_assets/authorizations-C14hLxR0.js +0 -1
- package/_assets/buy-BlM_W6kI.js +0 -1
- package/_assets/decimals-BpjIyOut.js +0 -1
- package/_assets/errors-CkpBP_qL.js +0 -1
- package/_assets/estimate-l1-fee-sC2wMHxF.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-p-wvOd7m.js +0 -1
- package/_assets/getNFT-CeUHNQkH.js +0 -1
- package/_assets/index-CcbRdBPP.js +0 -1
- package/_assets/parseNft-nX_I3xp0.js +0 -2
- package/_assets/send-gasless-transaction-CQvMS02f.js +0 -2
- package/_assets/useImportable-DeC43rHX.js +0 -1
- package/_assets/useTheme-B1VaWl6j.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-V7aSbkHg.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-BEwmRTV4.js";import{S as Se,R as zt,F as It,e as At}from"./categories-kKk2jGpz.js";import{L as Mt}from"./LoadMore-CwQ5CTJq.js";import{u as Nt}from"./useInfiniteGrid-Cjl-Omaq.js";import{E as Pt}from"./ErrorNotice-8bHn1hfP.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-DINFD15F.js";import{s as Ht,k as Ot}from"./buy-BeDHfPC-.js";import{f as Dt}from"./errors-COaDYYX2.js";import{J as Gt,C as qt,B as me}from"./ethers-lk3HAbPB.js";import{n as Vt}from"./Tooltip-AFYoHds5.js";import{G as Zt}from"./grid.styles-C5FdGoZt.js";import"./sentry-B60WY-np.js";import"./intl-CBcMB1D2.js";import"./authorizations-D4wI085M.js";import"./sendMetaTransaction-BUU2XPaW.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-31011914733.commit-0303b0f/_assets/identity-B4DXDuJP.webp",Tn="https://cdn.decentraland.org/@dcl/shop/0.8.1-31011914733.commit-0303b0f/_assets/world-B-9aPlxu.webp",Rn="https://cdn.decentraland.org/@dcl/shop/0.8.1-31011914733.commit-0303b0f/_assets/invite-BfwIhP2C.webp",zn="https://cdn.decentraland.org/@dcl/shop/0.8.1-31011914733.commit-0303b0f/_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};
|