@dcl/shop 0.1.0-30381444187.commit-e5b9f13 → 0.1.0-30412251367.commit-a3b4797
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-B63zG8uY.js → Activity-8UjrsG3-.js} +15 -15
- package/assets/{AnimatedBackground-CWPdO0WE.js → AnimatedBackground-BCYG8Tef.js} +20 -3
- package/assets/{Assets-WnaUem5h.js → Assets-CH_R0j7s.js} +84 -84
- package/assets/{Assets.styles-Dmhspue_.js → Assets.styles-CikNDgjl.js} +67 -51
- package/assets/{Authorizations-CAStHHID.js → Authorizations-Bokq2Suf.js} +5 -5
- package/assets/Cart-WsDrlBE7.js +671 -0
- package/assets/{CircularProgress-CpOs7g9a.js → CircularProgress-BMVyWr0x.js} +5 -5
- package/assets/Collection-DJOV1uib.js +119 -0
- package/assets/CollectionCarousel-QT5SE2Qn.js +786 -0
- package/assets/{ConstantsUtil-DTrOBzCe.js → ConstantsUtil-KNWfO3UV.js} +1 -1
- package/assets/{ContentClient-jyMKirlf.js → ContentClient-C6lww4Oh.js} +1 -1
- package/assets/Creator-02vljttt.js +283 -0
- package/assets/{DeploymentBuilder-j08uBP-r.js → DeploymentBuilder-Y6PlTuKa.js} +1 -1
- package/assets/ErrorNotice-D5gYmXmi.js +1 -0
- package/assets/{ExchangeController-CL_gVqSw.js → ExchangeController-C2Dwbbnp.js} +1 -1
- package/assets/{GetCredits-DSK7zyc2.js → GetCredits-wex2fjEr.js} +28 -28
- package/assets/{HelpersUtil-BfapKZKr.js → HelpersUtil-Vd6xvA31.js} +1 -1
- package/assets/ImportListings-Bt5ry6Y2.js +433 -0
- package/assets/{ItemDetail-CkmPrObF.css → ItemDetail-B4Ll03xN.css} +1 -1
- package/assets/ItemDetail-DfXPbN58.js +3262 -0
- package/assets/{LoadMore-DTUpuDyu.js → LoadMore-CQjFLXNq.js} +3 -3
- package/assets/MarketCheckout-CKG6pjiW.js +91 -0
- package/assets/{MenuList-DQbLlN7L.js → MenuList-IJFPnugX.js} +2 -2
- package/assets/{MyAssets-DJ0hwGXR.js → MyAssets-BVW3epBg.js} +6 -6
- package/assets/MyFavorites-CnL6bN9q.js +67 -0
- package/assets/{NetworkUtil-C1aEwuOK.js → NetworkUtil-C48X2eZd.js} +1 -1
- package/assets/NotFound-Bnm7dY5_.js +13 -0
- package/assets/NotificationsBell-DuPpk873.js +34 -0
- package/assets/StoreSettings-jIzJh2hQ.js +253 -0
- package/assets/Success-DyBk-Fyu.js +276 -0
- package/assets/{SwapController-BNkoWTIp.js → SwapController-3FAonz_f.js} +1 -1
- package/assets/{Tooltip-CBuz_rc2.js → Tooltip-BBt5hMnk.js} +7 -7
- package/assets/{TradeService-Dm_ASWCN.js → TradeService-B7rDz3sC.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-CeSRgOaN.js → W3MFrameProviderSingleton-CW-7ZLkS.js} +3 -3
- package/assets/{WebCryptoP256-GalvwmvU.js → WebCryptoP256-Bd8OFfw1.js} +1 -1
- package/assets/{authorizations-Ds7LRLV0.js → authorizations-D9SdrCKu.js} +1 -1
- package/assets/{basic-D_j1sfcj.js → basic-Dvd5bzaA.js} +1 -1
- package/assets/{biconomy-YD94PgiS.js → biconomy-dG6Bg2dg.js} +1 -1
- package/assets/browseLayout.styles-C_Zq7mr0.js +91 -0
- package/assets/{browser-CTzRZpIE.js → browser-BFlLa9WG.js} +1 -1
- package/assets/{browser-ponyfill-CI1-rMvf.js → browser-ponyfill-CjstZ09i.js} +1 -1
- package/assets/browser-ponyfill-D1S2-yVH.js +1 -0
- package/assets/{builder-Cc8g4-4q.js → builder-D8iOQj01.js} +1 -1
- package/assets/{buy-DnSS_Kop.js → buy-D5aQviUN.js} +1 -1
- package/assets/buy-gasless-Dyp24AZP.js +1 -0
- package/assets/cart-checkout-CwE04N9A.js +1 -0
- package/assets/categories-DYeriK5r.js +427 -0
- package/assets/{ccip-bHN-8eS1.js → ccip-CmH6X-VD.js} +1 -1
- package/assets/{ccip-CiESIEiQ.js → ccip-sPJkvjEi.js} +1 -1
- package/assets/{chains-Znt1BTfw.js → chains-C2RietY2.js} +1 -1
- package/assets/clsx-kou7Gw3G.js +9 -0
- package/assets/{common-D9tSChDa.js → common-CsgGwlgE.js} +1 -1
- package/assets/{controller-B2JIau8v.js → controller-xklbTpWc.js} +2 -2
- package/assets/{core-3cHR7yu5.js → core-MZsPOtzz.js} +4 -4
- package/assets/createSvgIcon-IwQBy7pg.js +74 -0
- package/assets/{custom-BFV9Niby.js → custom-BxkhNAWn.js} +1 -1
- package/assets/{data-capture-DTqon_Ye.js → data-capture-BehFEgR3.js} +1 -1
- package/assets/decimals-CiA-5P-9.js +1 -0
- package/assets/{decimals-C4nLn1ac.js → decimals-IP6x1zFM.js} +1 -1
- package/assets/{detectExtension-BgMIFAUw.js → detectExtension-CkPZwVNy.js} +1 -1
- package/assets/{email-CN7CWhKF.js → email-tWQYn7xy.js} +1 -1
- package/assets/{embedded-wallet-Q6nTAiGf.js → embedded-wallet-D30IEXMw.js} +1 -1
- package/assets/emotion-styled.browser.esm-DhhmYbit.js +1 -0
- package/assets/{engine-DoRvgWV1.js → engine-DGnYPLN-.js} +1 -1
- package/assets/{errors-CG6pp58g.js → errors-BnsKc9DV.js} +1 -1
- package/assets/estimate-l1-fee-af1li4fB.js +1 -0
- package/assets/eth_estimateGas-DKDoOLuk.js +1 -0
- package/assets/{eth_getStorageAt--oQrWy0Q.js → eth_getStorageAt-Bk219lKE.js} +1 -1
- package/assets/eth_getTransactionCount-Yz7j7-eF.js +1 -0
- package/assets/{ethereum-3zUUm4Pr.js → ethereum-CFJvhUPP.js} +1 -1
- package/assets/{ethers-CtVvB8eG.js → ethers-BcJP3Jlu.js} +1 -1
- package/assets/{execute-UcJesME5.js → execute-DdoVwcnk.js} +2 -2
- package/assets/{extractIPFS-BmriCqG8.js → extractIPFS-BnnvwCll.js} +1 -1
- package/assets/{features-B53I2xTg.js → features-BHep8ql_.js} +1 -1
- package/assets/{fetchTokenMetadata-CqYkUkwH.js → fetchTokenMetadata-DNF7Ktb5.js} +2 -2
- package/assets/{fortmatic-DM_o40Lo.js → fortmatic-CS3ilTJ-.js} +1 -1
- package/assets/{get-bytecode-C6TlbHJu.js → get-bytecode-7NL5IHp9.js} +1 -1
- package/assets/get-ecosystem-wallet-info-CjX0dGBA.js +1 -0
- package/assets/{getBalance-BMDqICQz.js → getBalance-o3xVy3VD.js} +2 -2
- package/assets/{getInstalledModules-BLQxYEXn.js → getInstalledModules-Bb2RILoZ.js} +1 -1
- package/assets/{getNFT-6TA-E6XX.js → getNFT-BnJhYWTi.js} +2 -2
- package/assets/getNFT-CqhsAlXX.js +1 -0
- package/assets/getThemeProps-D0AJFzVJ.js +1 -0
- package/assets/grid.styles-BuejQ1yn.js +14 -0
- package/assets/{hashTypedData-ug9gj3v5.js → hashTypedData-CoabZkiv.js} +1 -1
- package/assets/{hashTypedData-BGvyK_O1.js → hashTypedData-DuKr_f0f.js} +1 -1
- package/assets/{import-CZZ9-DX_.js → import-WkFMCsEs.js} +1 -1
- package/assets/{in-app-BXpVuL_f.js → in-app-BGJ-xQVR.js} +1 -1
- package/assets/{in-app-wallet-calls-Cw2KNfOh.js → in-app-wallet-calls-DtUfInmk.js} +1 -1
- package/assets/{index-CKSJdo5m.js → index--NzC7DNE.js} +1 -1
- package/assets/{index-C7TVyPoU.js → index-2mQ5xcN9.js} +1 -1
- package/assets/{index-B2DUxMjO.js → index-5kO2yk7p.js} +1 -1
- package/assets/{index-BvrGtJes.js → index-8ojVdZC7.js} +1 -1
- package/assets/{index-BEmTYNSG.js → index-ANt6jUgt.js} +1 -1
- package/assets/{index-DpXleRYB.js → index-AqMtboou.js} +1 -1
- package/assets/{index-D7r-KbUN.js → index-B0LPe9M_.js} +1 -1
- package/assets/{index-b39aIkkP.js → index-B2DXGnIr.js} +1 -1
- package/assets/{index-F_0Er667.js → index-BHw4ODLd.js} +2 -2
- package/assets/{index-B1saYH84.js → index-BQaqHf8o.js} +1 -1
- package/assets/{index-F-n6GV2b.js → index-BXQdsRLU.js} +1 -1
- package/assets/{index-Fe4H2sUE.js → index-Bd3LDqeG.js} +1 -1
- package/assets/{index-B0SdAX-m.js → index-Bh3E5miD.js} +1 -1
- package/assets/{index-BDwWglvl.js → index-Bj6MeO0a.js} +1 -1
- package/assets/{index-CmgoqHgW.js → index-Bk9utcMB.js} +1 -1
- package/assets/{index-CkWJ4sTo.js → index-BohEkpwv.js} +1 -1
- package/assets/{index-Cy8JAEGy.js → index-BojPkeOq.js} +1 -1
- package/assets/index-BtrcjZG0.js +1 -0
- package/assets/{index-BeeMSgi1.js → index-C7RLoETU.js} +1 -1
- package/assets/{index-euFuE7ah.js → index-CBBP7TBs.js} +1 -1
- package/assets/{index-FvnJRnD5.js → index-CBIe-bgQ.js} +3 -3
- package/assets/{index-B7jIFcHs.js → index-CCTlFldw.js} +2 -2
- package/assets/{index-BHPkQDns.js → index-CEer3Dve.js} +1 -1
- package/assets/{index-BG7lZdfP.js → index-CGOjpWDy.js} +1 -1
- package/assets/index-CKj6WCs2.js +2 -0
- package/assets/index-CKryZsyO.js +2637 -0
- package/assets/{index-Bq0YYsbG.js → index-CPx2rJof.js} +1 -1
- package/assets/index-CRHJNQlx.js +1 -0
- package/assets/{index-CDEPMu43.js → index-CSYGb2Fe.js} +3 -3
- package/assets/{index-B5JNl4HC.js → index-CSmBKYZx.js} +1 -1
- package/assets/{index-C0ACz6_-.js → index-CW9GMvzr.js} +1 -1
- package/assets/{index-Y77Y_U0L.js → index-CWMRtcEf.js} +1 -1
- package/assets/{index-DaGhU6Uz.js → index-CX3uS5Lx.js} +1 -1
- package/assets/{index-ogLhf7-S.js → index-CZkRRYw3.js} +1 -1
- package/assets/{index-C68XxPCY.js → index-Cde9ukg9.js} +1 -1
- package/assets/{index-BOMAmQU7.js → index-ChrYH1qu.js} +1 -1
- package/assets/{index-2jouHGho.js → index-ClCrLGWg.js} +1 -1
- package/assets/{index-CSZuXP_O.js → index-CmMivti9.js} +1 -1
- package/assets/{index-_hV86vSn.js → index-CwpsnSE-.js} +1 -1
- package/assets/{index-gxa5wyAJ.js → index-CzKb7vNz.js} +3 -3
- package/assets/{index-Dr9lSl0n.js → index-D5j9PYJF.js} +1 -1
- package/assets/{index-BTV13rXH.js → index-D5r4ujUj.js} +1 -1
- package/assets/{index-D95ZUsPD.js → index-D9y9e0SI.js} +1 -1
- package/assets/index-DCpWUtOQ.css +1 -0
- package/assets/{index-m5R1RgvV.js → index-DGoEKeW3.js} +1 -1
- package/assets/{index-DiGXPxzb.js → index-DIQFiJw5.js} +1 -1
- package/assets/{index-BqPcUFuz.js → index-DKMe_g7M.js} +1 -1
- package/assets/{index-D0fJ7qrq.js → index-DVtofOZW.js} +1 -1
- package/assets/{index-G_lkaThL.js → index-DfCHmMef.js} +1 -1
- package/assets/{index-CYMsLttB.js → index-DfsP9TUM.js} +1 -1
- package/assets/{index-CmgZ4NMC.js → index-DmQpQnV8.js} +1 -1
- package/assets/{index-tFmbSlHL.js → index-Dp4jo2Sw.js} +1 -1
- package/assets/index-DxuZw951.js +4 -0
- package/assets/{index-CeKksx_X.js → index-EdKbWflt.js} +1 -1
- package/assets/{index-DGIUeX6X.js → index-ErYV44Q4.js} +1 -1
- package/assets/{index-CaR23uYb.js → index-Ml84ec8q.js} +1 -1
- package/assets/{index-BZ6S4-Qy.js → index-SFbvmavv.js} +1 -1
- package/assets/index-UPzYWcom.js +1 -0
- package/assets/{index-2RpQo6sW.js → index-gzyTW3Vs.js} +1 -1
- package/assets/{index-BBeW5CPj.js → index-kZnnQ5Ut.js} +1 -1
- package/assets/{index-BQe1IsNb.js → index-npBBtkQ4.js} +2 -2
- package/assets/{index-ExvBrBJ4.js → index-qb84uRHi.js} +2 -2
- package/assets/{index-D9gz4wTG.js → index-xg4lpaz2.js} +1 -1
- package/assets/{index-CjpRvZkq.js → index-yG-FApIh.js} +1 -1
- package/assets/{index.es-CmoiU8SE.js → index.es-B8-dnoim.js} +1 -1
- package/assets/{index.es-DD7iT23u.js → index.es-CVKCWLJM.js} +4 -4
- package/assets/{index.es-DDEozdoq.js → index.es-DJ3kbshj.js} +1 -1
- package/assets/{linkAccount-BR5_llhd.js → linkAccount-CMRw__DD.js} +1 -1
- package/assets/{localBatchGatewayRequest-BGfmM9P7.js → localBatchGatewayRequest-Zo1h78T2.js} +1 -1
- package/assets/mana-rate-5WVYReay.js +1 -0
- package/assets/{native-BSpg_u0K.js → native-CVTOA2Tn.js} +1 -1
- package/assets/{networks-CBAVrHYh.js → networks-lZiCPE_E.js} +1 -1
- package/assets/{onramp-dft5bcN9.js → onramp-CdEvB3NN.js} +1 -1
- package/assets/{openzeppelin-WekOcr_Z.js → openzeppelin-dcSCp8oO.js} +1 -1
- package/assets/{ownerOf-D9UDfElT.js → ownerOf-CsITmz5G.js} +1 -1
- package/assets/{parseNft-DTV6iT7B.js → parseNft-Dyxra80B.js} +2 -2
- package/assets/{parseSignature-C7rL0b_w.js → parseSignature-Bv6LHz0J.js} +3 -3
- package/assets/{parseSignature-DmkHq9fC.js → parseSignature-kR33ICiI.js} +1 -1
- package/assets/{passkeys--Px7LRhh.js → passkeys-CNB2NE7x.js} +1 -1
- package/assets/{pay-with-exchange-CMQeyenn.js → pay-with-exchange-BMLdqedA.js} +1 -1
- package/assets/{prepare-contract-call-CHrp3EL4.js → prepare-contract-call-BaYJFPDg.js} +1 -1
- package/assets/{qr-overlay-Dz377WEQ.js → qr-overlay-CnDI5CiO.js} +3 -3
- package/assets/{react-BW1xvPTF.js → react-BcSuIh9F.js} +1 -1
- package/assets/{receive-CpDxltQB.js → receive-ChA3v35W.js} +1 -1
- package/assets/{resolveImplementation-CFOrDNcu.js → resolveImplementation-CCo5LLf9.js} +1 -1
- package/assets/{rpc-CjfGBkRY.js → rpc-DnrL-lEN.js} +1 -1
- package/assets/{secp256k1-DSadr9B6.js → secp256k1-CMg-D1Yf.js} +1 -1
- package/assets/{secp256k1-C77TwNwR.js → secp256k1-CS2b8XGe.js} +1 -1
- package/assets/{secp256k1-Dgs0hNIB.js → secp256k1-k3rGb0FY.js} +1 -1
- package/assets/{send-BMIoBrdl.js → send-C4CU9amI.js} +1 -1
- package/assets/{send-batch-transaction-CZ5LHGtL.js → send-batch-transaction-CWgV_tKo.js} +1 -1
- package/assets/{send-eip712-transaction-DmvWUFiv.js → send-eip712-transaction-PtOJJ22L.js} +2 -2
- package/assets/send-gasless-transaction-C32fVIA8.js +2 -0
- package/assets/{send-transaction-DVEripxy.js → send-transaction-IaM6NABX.js} +2 -2
- package/assets/{sendMetaTransaction-7YAoB-pL.js → sendMetaTransaction-B3dSruz9.js} +1 -1
- package/assets/{sendRawTransaction-BXyfyJLD.js → sendRawTransaction-DVnoMWRa.js} +3 -3
- package/assets/{sentry-BV_ZSgtd.js → sentry-Cmcd0bRo.js} +1 -1
- package/assets/{serializeTransaction-BkF9WfrN.js → serializeTransaction-xWeCzER5.js} +1 -1
- package/assets/{session-proposal-DoIVwtwv.js → session-proposal-CA_BWpbu.js} +1 -1
- package/assets/{session-request-C3QQi3mV.js → session-request-DrvTdT32.js} +2 -2
- package/assets/{sha256-BImz_UXn.js → sha256-DrqMdEvd.js} +1 -1
- package/assets/{signing-BInyigJZ.js → signing-D7mIsKCi.js} +3 -3
- package/assets/{socials-HN5nwNut.js → socials-DHhQ5hHW.js} +1 -1
- package/assets/{swaps-Dbu6ix4y.js → swaps-GIwSXf8E.js} +1 -1
- package/assets/{thirdweb-DY9iSWOj.js → thirdweb-Cu0RUYVM.js} +3 -3
- package/assets/{to-serializable-transaction-DFrgce7C.js → to-serializable-transaction-CZNMGKgd.js} +2 -2
- package/assets/{totalSupply-D4j1WOYW.js → totalSupply-GlVdMBtF.js} +1 -1
- package/assets/{trade-encoding-CcRCeIpG.js → trade-encoding-Bjf-A7RZ.js} +1 -1
- package/assets/{transaction-BOS1fhp8.js → transaction-BcHeU8fK.js} +1 -1
- package/assets/{transactionReceipt-5vjrQVvz.js → transactionReceipt-BN87RuoF.js} +1 -1
- package/assets/{transactions-DLwOfx7v.js → transactions-Cco6oVpQ.js} +1 -1
- package/assets/useCreditPacks-DTfnYysJ.js +1 -0
- package/assets/{useInfiniteGrid-pff93KiW.js → useInfiniteGrid-DZnjtepZ.js} +1 -1
- package/assets/useManaRate-C4EXijsl.js +1 -0
- package/assets/{useSecondarySales-BRJGIRwF.js → useSecondarySales-DYRKFz6P.js} +1 -1
- package/assets/{useStore-CV_90SkB.js → useStore-_uLtA179.js} +2 -2
- package/assets/useTheme-DzRWFu1V.js +1 -0
- package/assets/{utils-B7rjkjB1.js → utils-DyrKZcP0.js} +1 -1
- package/assets/{verifyHash-BJDJ-yWB.js → verifyHash-DCxQtIBT.js} +1 -1
- package/assets/{w3m-modal-Cs01ZX0b.js → w3m-modal-Da4hI2j8.js} +1 -1
- package/assets/{w3m-modal-C_4vaAKJ.js → w3m-modal-DxYrwlB7.js} +1 -1
- package/assets/{wait-for-tx-receipt-CYy9IgHg.js → wait-for-tx-receipt-C-mmcx5H.js} +1 -1
- package/assets/{wallets-D4ZcCkX2.js → wallets-76x-ub7q.js} +5 -5
- package/assets/{web-connector-p1b6xGQr.js → web-connector-dduTSXH6.js} +3 -3
- package/assets/{writeContract-Cl5bVpey.js → writeContract-DwGysLbg.js} +1 -1
- package/assets/{zora-sepolia-CVS3owSi.js → zora-sepolia-yOsPOmPB.js} +1 -1
- package/assets/{zoraTestnet-Dg220Oc3.js → zoraTestnet-DWoNxnQd.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/assets/AnimatedBackground-CiurwFBv.css +0 -1
- package/assets/Button-BDUHWtxg.js +0 -74
- package/assets/Cart-C_kThny7.css +0 -1
- package/assets/Cart-D-YOXeH9.js +0 -1
- package/assets/Collection-9Fu4_XnC.js +0 -45
- package/assets/Collection-Dpog3TvS.css +0 -1
- package/assets/CollectionCarousel-C8hFnis-.css +0 -1
- package/assets/CollectionCarousel-CzvvuUUw.js +0 -292
- package/assets/Creator-3NXIbePD.js +0 -1
- package/assets/Creator-Cpx_caba.css +0 -1
- package/assets/ErrorNotice-BG40E5Ff.js +0 -1
- package/assets/ImportListings-CgB7Xjb_.css +0 -1
- package/assets/ImportListings-DZs_dFSO.js +0 -5
- package/assets/ItemDetail-D49gDAwf.js +0 -2406
- package/assets/MarketCheckout-CoUO17KO.js +0 -3
- package/assets/MyFavorites-D3n_-d0Z.js +0 -1
- package/assets/NotFound-MMFCqdKn.js +0 -1
- package/assets/NotificationsBell-CNLR9ard.js +0 -34
- package/assets/StoreSettings-CdSK69sU.js +0 -53
- package/assets/StoreSettings-qz4M138c.css +0 -1
- package/assets/Success-KKN_AjMe.js +0 -4
- package/assets/browser-ponyfill-6L1OGOLN.js +0 -1
- package/assets/buy-gasless-9Zn1yAMk.js +0 -1
- package/assets/cart-checkout-BAugwPm6.js +0 -1
- package/assets/categories-BI9AXlDF.js +0 -305
- package/assets/categories-YFBLpDYC.css +0 -1
- package/assets/collection-CrgnzsVL.css +0 -1
- package/assets/collection-DE3QnCpW.js +0 -1
- package/assets/decimals-Bmvg-V50.js +0 -1
- package/assets/emotion-CSxEP8yM.js +0 -1
- package/assets/emotion-styled.browser.esm-DU8E1n2c.js +0 -1
- package/assets/estimate-l1-fee-DIch6QAI.js +0 -1
- package/assets/eth_estimateGas-JYqF9U1i.js +0 -1
- package/assets/eth_getTransactionCount-BEhAgz2O.js +0 -1
- package/assets/get-ecosystem-wallet-info-HoRTPbSm.js +0 -1
- package/assets/getNFT-WdF3UG1j.js +0 -1
- package/assets/getThemeProps-HByDG2pD.js +0 -1
- package/assets/index-8wx1oJ_F.js +0 -4
- package/assets/index-B6MKNzS8.js +0 -1
- package/assets/index-CEcu6qlS.js +0 -2
- package/assets/index-DqLpZ4oP.js +0 -1
- package/assets/index-DwufS2l2.css +0 -1
- package/assets/index-TmxHL85j.js +0 -312
- package/assets/index-Z5LdHVdI.js +0 -1
- package/assets/mana-rate-C8zn6Vfu.js +0 -1
- package/assets/send-gasless-transaction-DxLNFATn.js +0 -2
- package/assets/useCreditPacks-Dft_m4Vq.js +0 -1
- package/assets/useManaRate-C5mRxzeC.js +0 -1
- package/assets/useTheme-cgcgN0ze.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as
|
|
1
|
+
import{u as Pe,r as h,j as e,a as tt}from"./react-BcSuIh9F.js";import{c as L,A as nt,w as st,b as ot,s,t,o as ie,q as rt,v as Be,X as Fe,Q as it,d as o,I as T,m as F,z as ye,D as J,E as at,F as lt,J as Le,K as ct,S as we,L as te,aM as dt,aN as pt}from"./index-CKryZsyO.js";import{u as ht}from"./useSecondarySales-DYRKFz6P.js";import{r as xt,a as ft,m as He}from"./mana-rate-5WVYReay.js";import{u as Ue}from"./useManaRate-C4EXijsl.js";import{g as mt,h as ut,i as gt,j as bt,k as yt,C as wt,l as jt,o as vt,m as Ct,n as $t,M as kt,p as St,E as Et,q as Tt,r as It,s as Rt,t as _t,u as zt,v as At}from"./Assets.styles-CikNDgjl.js";import{c as je,R as Nt,F as Mt,S as Wt}from"./categories-DYeriK5r.js";import{L as Pt}from"./LoadMore-CQjFLXNq.js";import{M as Bt}from"./MarketCheckout-CKG6pjiW.js";import{u as Ft}from"./useInfiniteGrid-DZnjtepZ.js";import{E as Lt}from"./ErrorNotice-D5gYmXmi.js";import{d as Ht}from"./dcl-schemas-BICTSpB5.js";import{s as Ut,G as Ot,w as Gt,S as Dt}from"./buy-gasless-Dyp24AZP.js";import{s as qt}from"./buy-D5aQviUN.js";import{i as Vt}from"./trade-encoding-Bjf-A7RZ.js";import{f as Kt}from"./errors-BnsKc9DV.js";import{J as Qt,C as Zt,B as re}from"./ethers-BcJP3Jlu.js";import{l as Jt}from"./loader-logo-BzY9EKdC.js";import{n as Xt}from"./Tooltip-BBt5hMnk.js";import{G as Yt}from"./grid.styles-BuejQ1yn.js";import"./sentry-Cmcd0bRo.js";import"./intl-CBcMB1D2.js";import"./authorizations-D9SdrCKu.js";import"./sendMetaTransaction-B3dSruz9.js";function ne(n){const r=n.source??"item",l=n.tradeId||`${n.contractAddress}-${n.tokenId??n.itemId??""}`;return`${r}:${l}`}const H="100000000000000000000",Oe=2,X=15,en=/^[a-zA-Z0-9]+$/;function ve(n){const r=n.trim();return r.length===0?{ok:!1,reason:"empty"}:en.test(r)?r.length<Oe?{ok:!1,reason:"too-short"}:r.length>X?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function tn(n){return n.replace(/[^a-zA-Z0-9]/g,"").slice(0,X)}const nn=["function available(string _subdomain) view returns (bool)"],Ce={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function sn(){return L.chainId===Number(Ht.ChainId.MATIC_MAINNET)?Ce.mainnet:Ce.sepolia}async function on(n,r={}){var a;const{rpc:l,address:x}=sn(),m=new Qt(l),c=new Zt(x,nn,m);console.info(`[names] availability check → DCLRegistrar(${x}).available("${n}") on ${l}`);const f=await c.available(n);if((a=r.signal)!=null&&a.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${n}" available=${f}`),f?"available":"taken"}const rn="https://app.across.to/api";class Ge extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}function an(n){return ft(H,n)}async function ln(n,r,l={}){var a;const x=l.chainId??L.chainId,m=l.provider??"across",c=`${L.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(r)}&chainId=${x}&provider=${m}`,f=await ot(c,{method:"GET",identity:n,metadata:{}});if(!f.ok){let p;try{p=(a=await f.json())==null?void 0:a.code}catch{}throw p==="ROUTE_COST_TOO_HIGH"?new Ge:new Error(`fetchNameCreditRoute ${f.status}`)}return f.json()}function cn(n,r){const l=re.from(n.availableAmount),m=re.from(H).sub(l);return{credits:[{value:n.amount,expiresAt:Number(n.expiresAt),salt:Vt(n.id)}],creditsSignatures:[n.signature],externalCall:{target:r.externalCall.target,selector:r.externalCall.selector,data:r.externalCall.data,expiresAt:r.externalCall.expiresAt,salt:r.externalCall.salt},customExternalCallSignature:r.customExternalCallSignature,maxUncreditedValue:m.isNegative()?"0":m.toString(),maxCreditedValue:H}}async function dn(n,r={}){const l=rn,x=r.intervalMs??1e4,m=r.maxAttempts??60;let c={status:"pending",destinationTxHash:null,actionsSucceeded:!1};for(let f=0;f<m;f++){try{const a=await fetch(`${l}/deposit/status?originChainId=137&depositTxHash=${n}`);if(a.ok){const p=await a.json(),d=(p.status??"pending").toLowerCase(),w=p.fillTx??p.fillTxnRef??null,u=p.actionsSucceeded!==!1;if(d==="filled")return{status:"filled",destinationTxHash:w,actionsSucceeded:u};if(d==="refunded"||d==="expired")return{status:d,destinationTxHash:null,actionsSucceeded:!1};c={status:"pending",destinationTxHash:w,actionsSucceeded:u}}}catch{}f<m-1&&await new Promise(a=>setTimeout(a,x))}return c}async function pn(n){const{name:r,identity:l,signer:x}=n,m=n.chainId??L.chainId,c=n.provider??"across",f=(n.beneficiary??await x.getAddress()).toLowerCase();let a=null,p=!1;console.info("[names] register start",{name:r,buyer:f,chainId:m,provider:c});try{const d=await xt(m),w=an(d);console.info("[names] step 1/6 sized reservation",{usdCents:w,manaRate:d});const u=await ln(l,r,{chainId:m,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 C=await nt(l,w);if(a=C.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:C.credit.id,maxCreditedValue:C.maxCreditedValue}),re.from(C.maxCreditedValue).lt(H))throw new Error("Credit under-sized for the name price");const $=cn(C.credit,u);let b;try{b=await Ut({chainId:m,buyer:f,signer:x,args:$})}catch(y){if(!(y instanceof Ot))throw y;b=await qt(m,$,x)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:b}),await Gt(b),p=!0,console.info("[names] step 5/6 origin tx confirmed",{originTxHash:b}),c==="across"){const y=await dn(b,n.acrossPoll);if(console.info("[names] step 6/6 across status",y),y.status==="pending")return{status:"pending",originTxHash:b};if(y.status!=="filled"||!y.actionsSucceeded)throw new Error("The name could not be registered on Ethereum; your funds were recovered.");return{status:"registered",originTxHash:b,destinationTxHash:y.destinationTxHash}}return{status:"pending",originTxHash:b}}catch(d){if(console.error("[names] register failed — raw error:",d,{name:r,buyer:f,originConfirmed:p}),d instanceof Dt)return{status:"pending",originTxHash:d.txHash};if(a&&!p&&await st(l,[a]).catch(()=>{}),d instanceof Ge)throw d;const w=new Error(Kt(d,"Couldn't register the name. Please try again.",{sale:!0}));throw w.cause=d,w}}const hn=s.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
inset: 0;
|
|
4
4
|
z-index: 10000;
|
|
@@ -7,7 +7,7 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
7
7
|
justify-content: center;
|
|
8
8
|
padding: 16px;
|
|
9
9
|
background: rgba(22, 21, 24, 0.55);
|
|
10
|
-
`,
|
|
10
|
+
`,xn=s.div`
|
|
11
11
|
width: 560px;
|
|
12
12
|
max-width: 100%;
|
|
13
13
|
max-height: 92vh;
|
|
@@ -17,7 +17,7 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
17
17
|
padding: 20px 24px 24px;
|
|
18
18
|
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
|
|
19
19
|
|
|
20
|
-
${t.media.
|
|
20
|
+
${t.media.maxWidth("mobile")} {
|
|
21
21
|
padding: 16px;
|
|
22
22
|
}
|
|
23
23
|
`,$e=s.div`
|
|
@@ -77,7 +77,7 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
77
77
|
display: flex;
|
|
78
78
|
align-items: center;
|
|
79
79
|
gap: 16px;
|
|
80
|
-
`,
|
|
80
|
+
`,Re=s.div`
|
|
81
81
|
flex: none;
|
|
82
82
|
display: grid;
|
|
83
83
|
place-items: center;
|
|
@@ -91,7 +91,7 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
91
91
|
width: 30px;
|
|
92
92
|
height: 30px;
|
|
93
93
|
}
|
|
94
|
-
`,
|
|
94
|
+
`,_e=s.div`
|
|
95
95
|
flex: 1;
|
|
96
96
|
min-width: 0;
|
|
97
97
|
`,ze=s.div`
|
|
@@ -132,12 +132,12 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
132
132
|
padding: 16px;
|
|
133
133
|
border-radius: 12px;
|
|
134
134
|
background: #f2e7fc;
|
|
135
|
-
`,
|
|
135
|
+
`,mn=s.div`
|
|
136
136
|
font-family: ${t.font.sans};
|
|
137
137
|
font-weight: 700;
|
|
138
138
|
font-size: 16px;
|
|
139
139
|
color: ${t.colors.text};
|
|
140
|
-
`,
|
|
140
|
+
`,un=s.p`
|
|
141
141
|
margin: 8px 0 16px;
|
|
142
142
|
font-family: ${t.font.sans};
|
|
143
143
|
font-size: 14px;
|
|
@@ -148,7 +148,7 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
148
148
|
font-weight: 700;
|
|
149
149
|
color: ${t.colors.brandViolet};
|
|
150
150
|
}
|
|
151
|
-
`,
|
|
151
|
+
`,gn=s.label`
|
|
152
152
|
display: flex;
|
|
153
153
|
align-items: center;
|
|
154
154
|
gap: 8px;
|
|
@@ -161,12 +161,12 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
161
161
|
&:focus-within {
|
|
162
162
|
border-color: ${t.colors.magenta};
|
|
163
163
|
}
|
|
164
|
-
`,
|
|
164
|
+
`,bn=s.span`
|
|
165
165
|
flex: none;
|
|
166
166
|
font-family: ${t.font.sans};
|
|
167
167
|
font-size: 18px;
|
|
168
168
|
color: ${t.colors.muted2};
|
|
169
|
-
`,
|
|
169
|
+
`,yn=s.input`
|
|
170
170
|
flex: 0 1 auto;
|
|
171
171
|
min-width: 0;
|
|
172
172
|
border: 0;
|
|
@@ -178,10 +178,10 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
178
178
|
color: ${t.colors.text};
|
|
179
179
|
|
|
180
180
|
&::placeholder {
|
|
181
|
-
color:
|
|
181
|
+
color: ${t.colors.muted2};
|
|
182
182
|
font-weight: 400;
|
|
183
183
|
}
|
|
184
|
-
`,
|
|
184
|
+
`,wn=s.span`
|
|
185
185
|
flex: none;
|
|
186
186
|
font-family: ${t.font.sans};
|
|
187
187
|
font-size: 16px;
|
|
@@ -213,27 +213,27 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
213
213
|
background: #ddc7ec;
|
|
214
214
|
color: #f4ecfa;
|
|
215
215
|
}
|
|
216
|
-
`,
|
|
216
|
+
`,jn=s.div`
|
|
217
217
|
display: flex;
|
|
218
218
|
flex-direction: column;
|
|
219
219
|
align-items: flex-start;
|
|
220
220
|
gap: 20px;
|
|
221
221
|
padding: 32px 0 8px;
|
|
222
|
-
`,
|
|
222
|
+
`,vn=s.img`
|
|
223
223
|
align-self: center;
|
|
224
224
|
width: 56px;
|
|
225
225
|
height: 56px;
|
|
226
|
-
`,
|
|
226
|
+
`,Cn=s.div`
|
|
227
227
|
font-family: ${t.font.sans};
|
|
228
228
|
font-weight: 700;
|
|
229
229
|
font-size: 18px;
|
|
230
230
|
color: ${t.colors.text};
|
|
231
|
-
|
|
231
|
+
`,$n=s.div`
|
|
232
232
|
display: flex;
|
|
233
233
|
align-items: center;
|
|
234
234
|
gap: 12px;
|
|
235
235
|
width: 100%;
|
|
236
|
-
`,
|
|
236
|
+
`,kn=s.div`
|
|
237
237
|
flex: 1;
|
|
238
238
|
height: 8px;
|
|
239
239
|
border-radius: 999px;
|
|
@@ -257,12 +257,12 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
257
257
|
transform: translateX(320%);
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
|
|
260
|
+
`,Sn=s.span`
|
|
261
261
|
flex: none;
|
|
262
262
|
font-family: ${t.font.sans};
|
|
263
263
|
font-size: 14px;
|
|
264
264
|
color: ${t.colors.muted};
|
|
265
|
-
`,
|
|
265
|
+
`,En=s.div`
|
|
266
266
|
display: flex;
|
|
267
267
|
flex-direction: column;
|
|
268
268
|
align-items: center;
|
|
@@ -271,7 +271,7 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
271
271
|
border-radius: 12px;
|
|
272
272
|
background: #e2f5ea;
|
|
273
273
|
text-align: center;
|
|
274
|
-
`,
|
|
274
|
+
`,Tn=s.div`
|
|
275
275
|
display: grid;
|
|
276
276
|
place-items: center;
|
|
277
277
|
width: 56px;
|
|
@@ -284,7 +284,7 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
284
284
|
width: 30px;
|
|
285
285
|
height: 30px;
|
|
286
286
|
}
|
|
287
|
-
`,
|
|
287
|
+
`,In=s.p`
|
|
288
288
|
margin: 0;
|
|
289
289
|
font-family: ${t.font.sans};
|
|
290
290
|
font-size: 16px;
|
|
@@ -294,15 +294,15 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
294
294
|
b {
|
|
295
295
|
font-weight: 700;
|
|
296
296
|
}
|
|
297
|
-
`,
|
|
297
|
+
`,Rn=s.div`
|
|
298
298
|
display: flex;
|
|
299
299
|
gap: 16px;
|
|
300
300
|
margin-top: 20px;
|
|
301
301
|
|
|
302
|
-
${t.media.
|
|
302
|
+
${t.media.maxWidth("mobile")} {
|
|
303
303
|
flex-direction: column;
|
|
304
304
|
}
|
|
305
|
-
`,
|
|
305
|
+
`,_n=s.button`
|
|
306
306
|
flex: 1;
|
|
307
307
|
height: 48px;
|
|
308
308
|
border: 1px solid ${t.colors.accent};
|
|
@@ -323,7 +323,7 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
323
323
|
outline: 2px solid ${t.colors.accent};
|
|
324
324
|
outline-offset: 2px;
|
|
325
325
|
}
|
|
326
|
-
`,
|
|
326
|
+
`,zn=s.a`
|
|
327
327
|
flex: 1;
|
|
328
328
|
display: inline-flex;
|
|
329
329
|
align-items: center;
|
|
@@ -347,7 +347,7 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
347
347
|
outline: 2px solid ${t.colors.accent};
|
|
348
348
|
outline-offset: 2px;
|
|
349
349
|
}
|
|
350
|
-
`,
|
|
350
|
+
`,An=s.div`
|
|
351
351
|
display: flex;
|
|
352
352
|
align-items: flex-start;
|
|
353
353
|
gap: 12px;
|
|
@@ -366,10 +366,10 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
366
366
|
flex: none;
|
|
367
367
|
color: ${t.colors.dclRed};
|
|
368
368
|
}
|
|
369
|
-
`;function
|
|
369
|
+
`;function Nn({name:n,priceCredits:r,onClose:l}){const{session:x}=ie(),{data:m,isError:c}=rt(x),f=Be(),a=Pe(),[p,d]=h.useState("confirm"),[w,u]=h.useState(""),[C,$]=h.useState(null),b=h.useRef(!1),y=w.trim().toLowerCase()===n.toLowerCase(),S=p==="completing",j=r!=null?Fe(r):"—";h.useEffect(()=>{const g=_=>{_.key==="Escape"&&!S&&l()};document.addEventListener("keydown",g);const Y=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",g),document.body.style.overflow=Y}},[S,l]);async function E(){if(!(!x||!y||b.current)){b.current=!0,d("completing"),$(null);try{await pn({name:n,identity:x.identity,signer:x.signer}),J("Shop Completed Purchase",{purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:r??null}),f.invalidateQueries({queryKey:["usd-balance"]}),f.invalidateQueries({queryKey:["my-assets"]}),d("success")}catch(g){J(lt(g)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:at(g),purchase_type:"name"}),$((g==null?void 0:g.message)||o("names.errorGeneric")),d("error")}finally{b.current=!1}}}const k=p!=="success",I=it(x==null?void 0:x.providerType);return e.jsx(hn,{onClick:S?void 0:l,role:"presentation",children:e.jsxs(xn,{role:"dialog","aria-modal":"true","aria-label":o("names.buyTitle"),onClick:g=>g.stopPropagation(),children:[k&&e.jsxs(e.Fragment,{children:[e.jsxs($e,{children:[e.jsx(ke,{children:p==="error"?o("names.errorTitle"):o("names.buyTitle")}),e.jsx(Se,{onClick:l,disabled:S,"aria-label":o("buyModal.close"),children:e.jsx(T,{name:"close"})})]}),e.jsxs(Ee,{children:[o("names.myCreditsBalance")," ",e.jsx(F,{})," ",ye(m,c)]}),e.jsx(Te,{})]}),(p==="confirm"||p==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs(Ie,{children:[e.jsx(Re,{"aria-hidden":!0,children:"@"}),e.jsxs(_e,{children:[e.jsxs(ze,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(Ae,{children:o("names.subtitle")})]}),e.jsxs(Ne,{children:[e.jsx(F,{}),j]})]}),p==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(An,{children:[e.jsx(T,{name:"info","aria-hidden":!0}),e.jsx("span",{children:C})]}),e.jsx(Me,{onClick:()=>d("confirm"),children:o("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(fn,{children:[e.jsx(mn,{children:o("names.confirmTitle")}),e.jsx(un,{dangerouslySetInnerHTML:{__html:o("names.confirmBody",{name:`<b>@${Mn(n)}</b>`})}}),e.jsxs(gn,{children:[e.jsx(bn,{"aria-hidden":!0,children:"@"}),e.jsx(yn,{value:w,onChange:g=>u(g.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":o("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(w.length,8)}ch`}}),e.jsx(wn,{children:".dcl.eth"})]})]}),e.jsx(Me,{onClick:()=>void E(),disabled:!y||!x,children:o("names.buyCta")})]})]}),p==="completing"&&e.jsxs(jn,{children:[e.jsx(vn,{src:Jt,alt:"",width:56,height:56}),e.jsx(Cn,{children:I?o("names.confirming"):o("names.completing")}),e.jsxs($n,{children:[e.jsx(kn,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(Sn,{children:"1/1"})]})]}),p==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs($e,{children:[e.jsx(ke,{children:o("names.successHeaderTitle")}),e.jsx(Se,{onClick:l,"aria-label":o("buyModal.close"),children:e.jsx(T,{name:"close"})})]}),e.jsxs(Ee,{children:[o("names.myCreditsBalance")," ",e.jsx(F,{})," ",ye(m,c)]}),e.jsx(Te,{}),e.jsxs(En,{children:[e.jsx(Tn,{"aria-hidden":!0,children:e.jsx(T,{name:"check"})}),e.jsxs(In,{children:[e.jsx("b",{children:o("names.successBannerBold")})," ",o("names.successBannerRest")]})]}),e.jsxs(Ie,{style:{marginTop:20},children:[e.jsx(Re,{"aria-hidden":!0,children:"@"}),e.jsxs(_e,{children:[e.jsxs(ze,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(Ae,{children:o("names.subtitle")})]}),e.jsxs(Ne,{children:[e.jsx(F,{}),j]})]}),e.jsxs(Rn,{children:[e.jsx(_n,{onClick:()=>{l(),a("/my-assets")},children:o("names.myItems")}),e.jsx(zn,{href:L.profileUrl,target:"_blank",rel:"noopener noreferrer",children:o("names.assignToAvatar")})]})]})]})})}function Mn(n){return n.replace(/[&<>"']/g,r=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[r])}const Wn="https://cdn.decentraland.org/@dcl/shop/0.1.0-30412251367.commit-a3b4797/assets/identity-B4DXDuJP.webp",Pn="https://cdn.decentraland.org/@dcl/shop/0.1.0-30412251367.commit-a3b4797/assets/world-B-9aPlxu.webp",Bn="https://cdn.decentraland.org/@dcl/shop/0.1.0-30412251367.commit-a3b4797/assets/invite-BfwIhP2C.webp",Fn="https://cdn.decentraland.org/@dcl/shop/0.1.0-30412251367.commit-a3b4797/assets/governance-DnazlIjy.webp",Ln=s.div`
|
|
370
370
|
width: 100%;
|
|
371
371
|
min-width: 0;
|
|
372
|
-
`,
|
|
372
|
+
`,Hn=s.nav`
|
|
373
373
|
display: flex;
|
|
374
374
|
align-items: center;
|
|
375
375
|
gap: 6px;
|
|
@@ -378,7 +378,7 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
378
378
|
font-size: 12px;
|
|
379
379
|
line-height: 1;
|
|
380
380
|
color: ${t.colors.muted};
|
|
381
|
-
`,
|
|
381
|
+
`,Un=s.button`
|
|
382
382
|
border: 0;
|
|
383
383
|
background: none;
|
|
384
384
|
padding: 0;
|
|
@@ -393,10 +393,10 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
393
393
|
outline: 2px solid ${t.colors.accent};
|
|
394
394
|
outline-offset: 2px;
|
|
395
395
|
}
|
|
396
|
-
`,
|
|
396
|
+
`,On=s.span`
|
|
397
397
|
font-weight: 700;
|
|
398
398
|
color: ${t.colors.muted};
|
|
399
|
-
`,
|
|
399
|
+
`,Gn=s.div`
|
|
400
400
|
display: flex;
|
|
401
401
|
flex-direction: column;
|
|
402
402
|
gap: 48px;
|
|
@@ -405,11 +405,11 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
405
405
|
border-radius: ${t.radius.banner};
|
|
406
406
|
overflow: hidden;
|
|
407
407
|
|
|
408
|
-
${t.media.
|
|
408
|
+
${t.media.maxWidth("mobile")} {
|
|
409
409
|
gap: 32px;
|
|
410
410
|
padding-bottom: 32px;
|
|
411
411
|
}
|
|
412
|
-
`,
|
|
412
|
+
`,Dn=s.div`
|
|
413
413
|
position: relative;
|
|
414
414
|
border-radius: ${t.radius.banner};
|
|
415
415
|
overflow: hidden;
|
|
@@ -421,16 +421,16 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
421
421
|
text-align: center;
|
|
422
422
|
background: radial-gradient(120% 95% at 50% 118%, #d13bd6 0%, #a026b0 28%, #6a1b9c 58%, #4a1173 100%);
|
|
423
423
|
|
|
424
|
-
${t.media.
|
|
424
|
+
${t.media.maxWidth("mobile")} {
|
|
425
425
|
padding: 40px 20px;
|
|
426
426
|
gap: 28px;
|
|
427
427
|
}
|
|
428
|
-
`,
|
|
428
|
+
`,qn=s.div`
|
|
429
429
|
display: flex;
|
|
430
430
|
flex-direction: column;
|
|
431
431
|
align-items: center;
|
|
432
432
|
gap: 12px;
|
|
433
|
-
`,
|
|
433
|
+
`,Vn=s.h1`
|
|
434
434
|
margin: 0;
|
|
435
435
|
font-family: ${t.font.sans};
|
|
436
436
|
font-weight: 600;
|
|
@@ -438,10 +438,10 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
438
438
|
line-height: 1.167;
|
|
439
439
|
color: ${t.colors.white};
|
|
440
440
|
|
|
441
|
-
${t.media.
|
|
441
|
+
${t.media.maxWidth("mobile")} {
|
|
442
442
|
font-size: 26px;
|
|
443
443
|
}
|
|
444
|
-
`,
|
|
444
|
+
`,Kn=s.p`
|
|
445
445
|
margin: 0;
|
|
446
446
|
max-width: 760px;
|
|
447
447
|
font-family: ${t.font.sans};
|
|
@@ -450,33 +450,33 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
450
450
|
line-height: 1.334;
|
|
451
451
|
color: #ecebed;
|
|
452
452
|
|
|
453
|
-
${t.media.
|
|
453
|
+
${t.media.maxWidth("mobile")} {
|
|
454
454
|
font-size: 16px;
|
|
455
455
|
}
|
|
456
|
-
`,
|
|
456
|
+
`,Qn=s.div`
|
|
457
457
|
width: min(785px, 100%);
|
|
458
458
|
display: flex;
|
|
459
459
|
flex-direction: column;
|
|
460
460
|
gap: 12px;
|
|
461
|
-
`,
|
|
461
|
+
`,Zn=s.div`
|
|
462
462
|
position: relative;
|
|
463
|
-
`,
|
|
463
|
+
`,Jn=s("div",Xt("invalid"))`
|
|
464
464
|
display: flex;
|
|
465
465
|
align-items: center;
|
|
466
466
|
gap: 8px;
|
|
467
467
|
padding: 8px 8px 8px 16px;
|
|
468
468
|
background: ${t.colors.softWhite};
|
|
469
|
-
border: 1.5px solid ${({invalid:n})=>n?
|
|
469
|
+
border: 1.5px solid ${({invalid:n})=>n?t.colors.dclRed:t.colors.line};
|
|
470
470
|
border-radius: 20px;
|
|
471
471
|
|
|
472
472
|
&:focus-within {
|
|
473
|
-
border-color: ${({invalid:n})=>n?
|
|
473
|
+
border-color: ${({invalid:n})=>n?t.colors.dclRed:t.colors.magenta};
|
|
474
474
|
}
|
|
475
475
|
|
|
476
|
-
${t.media.
|
|
476
|
+
${t.media.maxWidth("mobile")} {
|
|
477
477
|
border-radius: 16px;
|
|
478
478
|
}
|
|
479
|
-
`,
|
|
479
|
+
`,Xn=s.span`
|
|
480
480
|
position: absolute;
|
|
481
481
|
left: -9999px;
|
|
482
482
|
top: 0;
|
|
@@ -488,10 +488,10 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
488
488
|
font-weight: 600;
|
|
489
489
|
line-height: 1.6;
|
|
490
490
|
|
|
491
|
-
${t.media.
|
|
491
|
+
${t.media.maxWidth("mobile")} {
|
|
492
492
|
font-size: 16px;
|
|
493
493
|
}
|
|
494
|
-
`,
|
|
494
|
+
`,Yn=s.div`
|
|
495
495
|
position: absolute;
|
|
496
496
|
top: calc(100% + 8px);
|
|
497
497
|
left: 0;
|
|
@@ -510,13 +510,13 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
510
510
|
line-height: 1.2;
|
|
511
511
|
text-align: left;
|
|
512
512
|
|
|
513
|
-
${t.media.
|
|
513
|
+
${t.media.maxWidth("mobile")} {
|
|
514
514
|
position: static;
|
|
515
515
|
margin-top: 8px;
|
|
516
516
|
align-items: flex-start;
|
|
517
517
|
flex-wrap: wrap;
|
|
518
518
|
}
|
|
519
|
-
`,
|
|
519
|
+
`,es=s.a`
|
|
520
520
|
display: inline-flex;
|
|
521
521
|
align-items: center;
|
|
522
522
|
gap: 2px;
|
|
@@ -527,10 +527,10 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
527
527
|
text-transform: uppercase;
|
|
528
528
|
white-space: nowrap;
|
|
529
529
|
|
|
530
|
-
${t.media.
|
|
530
|
+
${t.media.maxWidth("mobile")} {
|
|
531
531
|
margin-left: 0;
|
|
532
532
|
}
|
|
533
|
-
`,
|
|
533
|
+
`,ts=s.label`
|
|
534
534
|
flex: 1;
|
|
535
535
|
min-width: 0;
|
|
536
536
|
display: flex;
|
|
@@ -538,19 +538,19 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
538
538
|
gap: 0;
|
|
539
539
|
cursor: text;
|
|
540
540
|
overflow: hidden;
|
|
541
|
-
`,
|
|
541
|
+
`,ns=s.span`
|
|
542
542
|
flex: none;
|
|
543
543
|
margin-right: 8px;
|
|
544
544
|
font-family: ${t.font.sans};
|
|
545
545
|
font-size: 26px;
|
|
546
546
|
font-weight: 500;
|
|
547
547
|
line-height: 1;
|
|
548
|
-
color:
|
|
548
|
+
color: ${t.colors.muted2};
|
|
549
549
|
|
|
550
|
-
${t.media.
|
|
550
|
+
${t.media.maxWidth("mobile")} {
|
|
551
551
|
font-size: 20px;
|
|
552
552
|
}
|
|
553
|
-
`,
|
|
553
|
+
`,ss=s.input`
|
|
554
554
|
flex: 0 1 auto;
|
|
555
555
|
min-width: 0;
|
|
556
556
|
max-width: 100%;
|
|
@@ -565,32 +565,32 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
565
565
|
padding: 0;
|
|
566
566
|
|
|
567
567
|
&::placeholder {
|
|
568
|
-
color:
|
|
568
|
+
color: ${t.colors.muted1};
|
|
569
569
|
font-weight: 400;
|
|
570
570
|
}
|
|
571
571
|
|
|
572
|
-
${t.media.
|
|
572
|
+
${t.media.maxWidth("mobile")} {
|
|
573
573
|
font-size: 16px;
|
|
574
574
|
}
|
|
575
|
-
`,
|
|
575
|
+
`,os=s.span`
|
|
576
576
|
flex: none;
|
|
577
577
|
margin-left: 2px;
|
|
578
578
|
font-family: ${t.font.sans};
|
|
579
579
|
font-size: 20px;
|
|
580
580
|
font-weight: 400;
|
|
581
581
|
line-height: 1.6;
|
|
582
|
-
color:
|
|
582
|
+
color: ${t.colors.muted1};
|
|
583
583
|
|
|
584
|
-
${t.media.
|
|
584
|
+
${t.media.maxWidth("mobile")} {
|
|
585
585
|
font-size: 16px;
|
|
586
586
|
}
|
|
587
|
-
`,
|
|
587
|
+
`,rs=s.span`
|
|
588
588
|
flex: none;
|
|
589
589
|
font-family: ${t.font.sans};
|
|
590
590
|
font-size: 13px;
|
|
591
|
-
color:
|
|
591
|
+
color: ${t.colors.muted2};
|
|
592
592
|
white-space: nowrap;
|
|
593
|
-
`,
|
|
593
|
+
`,De=s.button`
|
|
594
594
|
flex: none;
|
|
595
595
|
display: inline-flex;
|
|
596
596
|
align-items: center;
|
|
@@ -623,19 +623,19 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
623
623
|
color: #fbe9fb;
|
|
624
624
|
}
|
|
625
625
|
|
|
626
|
-
${t.media.
|
|
626
|
+
${t.media.maxWidth("mobile")} {
|
|
627
627
|
display: none;
|
|
628
628
|
}
|
|
629
|
-
`,
|
|
629
|
+
`,is=s(De)`
|
|
630
630
|
display: none;
|
|
631
631
|
|
|
632
|
-
${t.media.
|
|
632
|
+
${t.media.maxWidth("mobile")} {
|
|
633
633
|
display: inline-flex;
|
|
634
634
|
width: 100%;
|
|
635
635
|
height: 48px;
|
|
636
636
|
border-radius: 12px;
|
|
637
637
|
}
|
|
638
|
-
`,
|
|
638
|
+
`,as=s.span`
|
|
639
639
|
display: inline-flex;
|
|
640
640
|
align-items: center;
|
|
641
641
|
gap: 4px;
|
|
@@ -657,29 +657,29 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
657
657
|
text-align: left;
|
|
658
658
|
|
|
659
659
|
background: ${({tone:n})=>n==="error"?"rgba(255, 45, 85, 0.12)":n==="ok"?"rgba(30, 166, 114, 0.14)":"rgba(255,255,255,0.14)"};
|
|
660
|
-
color: ${({tone:n})=>n==="error"?
|
|
660
|
+
color: ${({tone:n})=>n==="error"?t.colors.dclRed:n==="ok"?"#0f7a4f":"#ecebed"};
|
|
661
661
|
|
|
662
662
|
.ico {
|
|
663
663
|
width: 16px;
|
|
664
664
|
height: 16px;
|
|
665
665
|
flex: none;
|
|
666
666
|
}
|
|
667
|
-
`,
|
|
667
|
+
`,ls=s.section`
|
|
668
668
|
display: flex;
|
|
669
669
|
flex-direction: column;
|
|
670
670
|
gap: 48px;
|
|
671
671
|
padding: 0 48px;
|
|
672
672
|
|
|
673
|
-
${t.media.
|
|
673
|
+
${t.media.maxWidth("mobile")} {
|
|
674
674
|
gap: 32px;
|
|
675
675
|
padding: 0 20px;
|
|
676
676
|
}
|
|
677
|
-
`,
|
|
677
|
+
`,cs=s.div`
|
|
678
678
|
display: flex;
|
|
679
679
|
flex-direction: column;
|
|
680
680
|
align-items: center;
|
|
681
681
|
gap: 24px;
|
|
682
|
-
`,
|
|
682
|
+
`,ds=s.h2`
|
|
683
683
|
margin: 0;
|
|
684
684
|
text-align: center;
|
|
685
685
|
font-family: ${t.font.sans};
|
|
@@ -688,10 +688,10 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
688
688
|
line-height: 1.167;
|
|
689
689
|
color: ${t.colors.text2};
|
|
690
690
|
|
|
691
|
-
${t.media.
|
|
691
|
+
${t.media.maxWidth("mobile")} {
|
|
692
692
|
font-size: 22px;
|
|
693
693
|
}
|
|
694
|
-
`,
|
|
694
|
+
`,ps=s.p`
|
|
695
695
|
margin: 0;
|
|
696
696
|
max-width: 907px;
|
|
697
697
|
text-align: center;
|
|
@@ -701,19 +701,19 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
701
701
|
line-height: 1.57;
|
|
702
702
|
color: ${t.colors.text};
|
|
703
703
|
|
|
704
|
-
${t.media.
|
|
704
|
+
${t.media.maxWidth("mobile")} {
|
|
705
705
|
font-size: 16px;
|
|
706
706
|
}
|
|
707
|
-
`,
|
|
707
|
+
`,hs=s.div`
|
|
708
708
|
display: grid;
|
|
709
709
|
grid-template-columns: repeat(4, 1fr);
|
|
710
710
|
gap: 24px;
|
|
711
711
|
align-items: stretch;
|
|
712
712
|
|
|
713
|
-
${t.media.
|
|
713
|
+
${t.media.maxWidth("lg")} {
|
|
714
714
|
grid-template-columns: repeat(2, 1fr);
|
|
715
715
|
}
|
|
716
|
-
${t.media.
|
|
716
|
+
${t.media.maxWidth("mobile")} {
|
|
717
717
|
grid-template-columns: 1fr;
|
|
718
718
|
}
|
|
719
719
|
`,q=s.article`
|
|
@@ -735,7 +735,7 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
735
735
|
flex-direction: column;
|
|
736
736
|
gap: 6px;
|
|
737
737
|
padding: 12px 16px;
|
|
738
|
-
`,
|
|
738
|
+
`,Q=s.h3`
|
|
739
739
|
margin: 0;
|
|
740
740
|
font-family: ${t.font.sans};
|
|
741
741
|
font-weight: 700;
|
|
@@ -743,17 +743,17 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
743
743
|
line-height: 1.57;
|
|
744
744
|
text-transform: uppercase;
|
|
745
745
|
color: ${t.colors.text};
|
|
746
|
-
`,
|
|
746
|
+
`,Z=s.p`
|
|
747
747
|
margin: 0;
|
|
748
748
|
font-family: ${t.font.sans};
|
|
749
749
|
font-weight: 400;
|
|
750
750
|
font-size: 14px;
|
|
751
751
|
line-height: 1.57;
|
|
752
752
|
color: ${t.colors.text};
|
|
753
|
-
`,
|
|
753
|
+
`,xs=s.span`
|
|
754
754
|
font-weight: 600;
|
|
755
755
|
color: ${t.colors.accent};
|
|
756
|
-
`,
|
|
756
|
+
`,We=s.a`
|
|
757
757
|
display: inline-flex;
|
|
758
758
|
align-items: center;
|
|
759
759
|
gap: 2px;
|
|
@@ -784,4 +784,4 @@ import{u as Le,r as f,j as e,b as tt}from"./react-BW1xvPTF.js";import{m as W,h a
|
|
|
784
784
|
clip: rect(0, 0, 0, 0);
|
|
785
785
|
white-space: nowrap;
|
|
786
786
|
border: 0;
|
|
787
|
-
`,hs="https://docs.decentraland.org/creator/worlds/about/",xs="https://governance.decentraland.org";function us(n){const r=typeof window<"u"?window.location.hostname:"";return`${r.endsWith("decentraland.org")?"https://decentraland.org":r.endsWith("decentraland.today")?"https://decentraland.today":"https://decentraland.zone"}/marketplace/names/browse?search=${encodeURIComponent(n)}`}function ms({onBack:n}){We({title:o("seo.names.title"),description:o("seo.names.description")});const{session:r,signIn:l}=ie(),{data:h}=Ue(),u=h?He(H,h):null,[c,x]=f.useState(""),[a,d]=f.useState("idle"),[p,w]=f.useState(!1),m=f.useRef(null),[C,$]=f.useState(void 0);f.useLayoutEffect(()=>{m.current&&$(m.current.offsetWidth)},[c]),f.useEffect(()=>{if(!ve(c).ok){d(c.length===0?"idle":"invalid");return}d("checking");const k=new AbortController,I=setTimeout(()=>{(async()=>{try{const g=await nn(c,{signal:k.signal});d(g)}catch(g){if((g==null?void 0:g.name)==="AbortError")return;d("error")}})()},400);return()=>{clearTimeout(I),k.abort()}},[c]);const b=ve(c),y=b.ok&&(a==="available"||a==="error");function S(){if(y){if(!r){l();return}w(!0)}}const j=e.jsxs(e.Fragment,{children:[o("names.claim"),u!=null?e.jsxs(rs,{children:[e.jsx(F,{}),Fe(u)]}):null]});return e.jsxs(Bn,{"data-testid":"names-page",children:[e.jsxs(Fn,{"aria-label":o("names.breadcrumbAria"),children:[e.jsx(Wn,{onClick:n,children:o("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(Hn,{children:o("names.breadcrumbCurrent")})]}),e.jsxs(Un,{children:[e.jsxs(On,{children:[e.jsxs(Dn,{children:[e.jsx(Gn,{children:o("names.heroTitle")}),e.jsx(qn,{children:o("names.heroSubtitle")})]}),e.jsxs(Vn,{children:[e.jsxs(Kn,{children:[e.jsxs(Zn,{invalid:a==="taken",children:[e.jsxs(Yn,{children:[e.jsx(es,{"aria-hidden":!0,children:"@"}),e.jsx(ts,{value:c,onChange:E=>x(Yt(E.target.value)),placeholder:o("names.inputPlaceholder"),"aria-label":o("names.inputAria"),autoComplete:"off",spellCheck:!1,maxLength:X,style:{width:C!=null?`${C}px`:void 0}}),e.jsx(Qn,{ref:m,"aria-hidden":!0,children:c||o("names.inputPlaceholder")}),e.jsx(ns,{children:o("names.suffix")})]}),c.length>0?e.jsxs(ss,{"aria-hidden":!0,children:[c.length,"/",X]}):null,e.jsx(Ge,{onClick:S,disabled:!y,"data-testid":"names-claim",children:j})]}),a==="taken"?e.jsxs(Jn,{role:"status","data-testid":"names-taken",children:[e.jsx(T,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:o("names.taken")}),e.jsxs(Xn,{href:us(c),target:"_blank",rel:"noopener noreferrer",children:[o("names.takenMakeOffer"),e.jsx(T,{name:"external-link",size:13,"aria-hidden":!0})]})]}):null]}),e.jsx(os,{onClick:S,disabled:!y,children:j}),a==="checking"?e.jsx(se,{tone:"muted",role:"status","data-testid":"names-checking",children:o("names.checking")}):a==="error"?e.jsx(se,{tone:"muted",role:"status",children:o("names.checkError")}):a==="invalid"&&!b.ok&&b.reason==="too-short"?e.jsx(se,{tone:"muted",role:"status",children:o("names.tooShort",{min:Oe})}):null,e.jsx(fs,{role:"status","aria-live":"polite",children:a==="available"?o("names.available",{name:c}):""})]})]}),e.jsxs(is,{children:[e.jsxs(as,{children:[e.jsx(ls,{children:o("names.whyTitle")}),e.jsx(cs,{children:o("names.whyIntro")})]}),e.jsxs(ds,{children:[e.jsxs(q,{children:[e.jsx(V,{src:Nn,alt:""}),e.jsxs(K,{children:[e.jsx(Z,{children:o("names.why1Title")}),e.jsx(Q,{children:o("names.why1")})]})]}),e.jsxs(q,{children:[e.jsx(V,{src:Mn,alt:""}),e.jsxs(K,{children:[e.jsx(Z,{children:o("names.why2Title")}),e.jsxs(Q,{children:[o("names.why2")," ",e.jsx(ps,{children:o("names.why2Address")})]}),e.jsxs(Pe,{href:hs,target:"_blank",rel:"noopener noreferrer",children:[o("names.learnMore"),e.jsx(T,{name:"external-link","aria-hidden":!0})]})]})]}),e.jsxs(q,{children:[e.jsx(V,{src:Pn,alt:""}),e.jsxs(K,{children:[e.jsx(Z,{children:o("names.why3Title")}),e.jsx(Q,{children:o("names.why3")})]})]}),e.jsxs(q,{children:[e.jsx(V,{src:Ln,alt:""}),e.jsxs(K,{children:[e.jsx(Z,{children:o("names.why4Title")}),e.jsx(Q,{children:o("names.why4")}),e.jsxs(Pe,{href:xs,target:"_blank",rel:"noopener noreferrer",children:[o("names.learnMore"),e.jsx(T,{name:"external-link","aria-hidden":!0})]})]})]})]})]})]}),p?e.jsx(zn,{name:c,priceCredits:u,onClose:()=>w(!1)}):null]})}const gs="data:image/svg+xml,%3csvg%20width='101'%20height='101'%20viewBox='0%200%20101%20101'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M42.4493%2040.9855L30.7394%2052.6954'%20stroke='%23FF5A57'%20stroke-width='3.15625'%20stroke-linecap='round'/%3e%3cpath%20d='M30.7391%2040.9855L42.449%2052.6954'%20stroke='%23FF5A57'%20stroke-width='3.15625'%20stroke-linecap='round'/%3e%3cpath%20d='M36.2621%2071.0604C29.6047%2071.0604%2023.9709%2068.7542%2019.3608%2064.1416C14.7507%2059.5291%2012.4445%2053.8953%2012.442%2047.2404C12.4396%2040.5854%2014.7459%2034.9516%2019.3608%2030.3391C23.9758%2025.7266%2029.6096%2023.4203%2036.2621%2023.4203C42.9146%2023.4203%2048.5496%2025.7266%2053.167%2030.3391C57.7844%2034.9516%2060.0895%2040.5854%2060.0822%2047.2404C60.0822%2049.9277%2059.6546%2052.4624%2058.7995%2054.8445C57.9445%2057.2265%2056.784%2059.3336%2055.3181%2061.1659L75.84%2081.6878C76.5119%2082.3597%2076.8478%2083.2148%2076.8478%2084.2531C76.8478%2085.2914%2076.5119%2086.1465%2075.84%2086.8183C75.1682%2087.4902%2074.3131%2087.8261%2073.2748%2087.8261C72.2365%2087.8261%2071.3814%2087.4902%2070.7096%2086.8183L50.1877%2066.2964C48.3554%2067.7623%2046.2482%2068.9227%2043.8662%2069.7778C41.4842%2070.6329%2038.9495%2071.0604%2036.2621%2071.0604ZM36.2621%2063.7312C40.8429%2063.7312%2044.7372%2062.1285%2047.9449%2058.9232C51.1527%2055.7179%2052.7554%2051.8236%2052.7529%2047.2404C52.7505%2042.6571%2051.1478%2038.7641%2047.9449%2035.5612C44.742%2032.3583%2040.8478%2030.7544%2036.2621%2030.7495C31.6764%2030.7447%2027.7834%2032.3485%2024.5829%2035.5612C21.3825%2038.7739%2019.7786%2042.6669%2019.7713%2047.2404C19.764%2051.8138%2021.3678%2055.7081%2024.5829%2058.9232C27.798%2062.1383%2031.6911%2063.7409%2036.2621%2063.7312Z'%20fill='url(%23paint0_linear_search_empty)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_search_empty'%20x1='10.4127'%20y1='55.6273'%20x2='124.009'%20y2='44.925'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",oe=48;function bs(n){return{tradeId:n.tradeId??n.id,listingType:"primary",contractAddress:n.contractAddress,itemId:n.itemId??"",name:n.name,thumbnail:n.thumbnail,rarity:n.rarity,category:n.category,wearableCategory:n.wearableCategory??null,creator:n.creator,manaWei:n.manaWei??"0",available:1,network:n.network,chainId:n.chainId,createdAt:0}}function Os(){const[n]=tt(),r=Le(),l=(n.get("q")??"").trim().toLowerCase(),h=Be(),{session:u,signIn:c}=ie(),x=(n.get("q")??"").trim();We({title:x?o("seo.collectibles.searchTitle",{query:x}):o("seo.collectibles.title"),description:o("seo.collectibles.description")});const[a,d]=f.useState("wearable"),[p,w]=f.useState(null),[m,C]=f.useState([]),[$,b]=f.useState(""),[y,S]=f.useState(""),[j,E]=f.useState("on_sale"),[k,I]=f.useState(!1),[g,Y]=f.useState("newest"),[R,A]=f.useState(!1),[ae,ee]=f.useState(null);f.useEffect(()=>{if(!R)return;const i=B=>{B.key==="Escape"&&A(!1)};document.addEventListener("keydown",i);const v=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",i),document.body.style.overflow=v}},[R]);const U=j==="on_sale",N=$&&!Number.isNaN(Number($))?Number($):void 0,M=y&&!Number.isNaN(Number(y))?Number(y):void 0,qe=ft(),le=p?Mt[p]:void 0,ce=(we.find(i=>i.key===g)??we[0]).server,de={category:a,rarities:m.length?m:void 0,wearableCategories:le,minPriceCredits:N,maxPriceCredits:M,search:l||void 0,sortBy:ce,isSmart:k||void 0,onSale:!0,listingType:qe?void 0:"primary"},pe={category:a,rarities:m.length?m:void 0,wearableCategories:le,search:l||void 0,sortBy:ce,isWearableSmart:k||void 0,isOnSale:j==="not_for_sale"?!1:void 0},{items:P,total:fe,isLoading:_,isPlaceholderData:z,error:he,hasNextPage:Ve,isFetchingNextPage:xe,fetchNextPage:Ke}=Bt(U?["shop-items",de]:["catalog-items",pe],i=>U?dt({...de,first:oe,skip:i}):pt({...pe,first:oe,skip:i}),{enabled:a!=="names"}),O=fe,ue=_||z,Ze=_?15:Math.min(Math.max(P.length,1),oe),{data:D,isError:Qe}=Ue(),Je=i=>D&&i.manaWei?He(i.manaWei,D):null,me=f.useRef(null);f.useEffect(()=>{_||z||!l||me.current===l||(me.current=l,J("Shop Searched",{query:l,result_count:O}))},[l,_,z,O]);const G=f.useRef("__init__");f.useEffect(()=>{if(_||z)return;const i=JSON.stringify({category:a,subCategory:p,rarities:m,min:N,max:M,sort:g,status:j,smart:k});if(G.current==="__init__"||G.current===i){G.current=i;return}G.current=i,J("Shop Applied Filter",{filters:{category:a,sub_category:p,rarities:m,min_price_credits:N??null,max_price_credits:M??null,status:j,smart:k,sort:g},result_count:O})},[a,p,m,N,M,g,j,k,_,z,O]);function ge(i){d(i),w(null)}function be(i){C(v=>v.includes(i)?v.filter(B=>B!==i):[...v,i])}function Xe(){d("wearable"),w(null),C([]),b(""),S(""),E("on_sale"),I(!1)}function Ye(i){const v=P.find(B=>B.id===i.id);if(!(!v||v.source!=="legacy"||!v.manaWei)){if(!u){c();return}ee(bs(v))}}function et(){h.invalidateQueries({queryKey:["shop-items"]})}const L=[];(N!=null||M!=null)&&L.push({key:"price",label:o("filter.price"),onRemove:()=>{b(""),S("")}});for(const i of At)m.includes(i)&&L.push({key:`rarity-${i}`,label:ct(i),onRemove:()=>be(i)});return k&&L.push({key:"smart",label:o("filter.smart"),onRemove:()=>I(!1)}),j!=="on_sale"&&L.push({key:"status",label:j==="all"?o("filter.statusAll"):o("filter.notForSale"),onRemove:()=>E("on_sale")}),e.jsxs(ut,{"data-testid":"browse",children:[a!=="names"&&e.jsxs(e.Fragment,{children:[R?e.jsx(mt,{onClick:()=>A(!1),"aria-hidden":!0}):null,e.jsxs(gt,{className:R?"is-open":"","data-testid":"browse-sidebar",children:[e.jsxs(bt,{children:[e.jsx(yt,{children:o("assets.filters")}),e.jsx(wt,{onClick:()=>A(!1),"aria-label":o("assets.closeFilters"),children:"✕"})]}),e.jsx(jt,{children:e.jsx(vt,{category:a,subCategory:p,onCategory:ge,onSub:w,priceMin:$,priceMax:y,onPriceMin:b,onPriceMax:S,rarities:m,onToggleRarity:be,status:j,onStatus:E,smart:k,onSmart:I})}),e.jsx(Ct,{children:e.jsx($t,{type:"button",onClick:()=>A(!1),children:o("assets.showItems")})})]})]}),e.jsx(kt,{children:a==="names"?e.jsx(ms,{onBack:()=>ge("wearable")}):e.jsxs(e.Fragment,{children:[e.jsx(Nt,{sort:g,onSort:Y,total:fe,loading:_||z,query:l,onOpenFilters:()=>A(!0),chips:L,onClearChips:Xe}),Qe&&U&&P.some(i=>i.source==="legacy")?e.jsx("p",{className:"market-banner market-banner--warn",children:o("assets.marketUnavailable")}):null,he?e.jsx(Ft,{message:o("assets.loadError"),testId:"browse-error"}):null,!ue&&P.length===0&&!he?e.jsxs(St,{"data-testid":"browse-empty",children:[e.jsx(Et,{src:gs,alt:""}),e.jsxs(Tt,{children:[e.jsx(It,{children:o("assets.empty.title")}),e.jsx(_t,{children:x?e.jsxs(e.Fragment,{children:[o("assets.empty.searchBefore"),e.jsx("b",{children:x}),o("assets.empty.searchAfter")]}):o("assets.empty.filters")})]}),e.jsx(Rt,{children:e.jsx(zt,{type:"button",onClick:()=>r("/overview"),children:o("assets.empty.cta")})})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"grid","data-testid":"grid",children:ue?e.jsx(je,{count:Ze}):e.jsxs(e.Fragment,{children:[P.map(i=>{if(!U)return e.jsx(te,{item:i,mode:"view"},ne(i));const v=i;return v.source==="legacy"?e.jsx(te,{item:v,mode:"market",marketPriceCredits:Je(v),onBuyNow:Ye},ne(i)):e.jsx(te,{item:i},ne(i))}),xe?e.jsx(je,{count:6}):null]})}),e.jsx(Pt,{hasNextPage:Ve,isFetching:xe,onLoadMore:()=>void Ke()})]})]})}),ae&&D?e.jsx(Lt,{listing:ae,rate:D,onClose:()=>ee(null),onSold:()=>{ee(null),et()}}):null]})}export{Os as Assets};
|
|
787
|
+
`,ms="https://docs.decentraland.org/creator/worlds/about/",us="https://governance.decentraland.org";function gs(n){const r=typeof window<"u"?window.location.hostname:"";return`${r.endsWith("decentraland.org")?"https://decentraland.org":r.endsWith("decentraland.today")?"https://decentraland.today":"https://decentraland.zone"}/marketplace/names/browse?search=${encodeURIComponent(n)}`}function bs({onBack:n}){Le({title:o("seo.names.title"),description:o("seo.names.description")});const{session:r,signIn:l}=ie(),{data:x}=Ue(),m=x?He(H,x):null,[c,f]=h.useState(""),[a,p]=h.useState("idle"),[d,w]=h.useState(!1),u=h.useRef(null),[C,$]=h.useState(void 0);h.useLayoutEffect(()=>{u.current&&$(u.current.offsetWidth)},[c]),h.useEffect(()=>{if(!ve(c).ok){p(c.length===0?"idle":"invalid");return}p("checking");const k=new AbortController,I=setTimeout(()=>{(async()=>{try{const g=await on(c,{signal:k.signal});p(g)}catch(g){if((g==null?void 0:g.name)==="AbortError")return;p("error")}})()},400);return()=>{clearTimeout(I),k.abort()}},[c]);const b=ve(c),y=b.ok&&(a==="available"||a==="error");function S(){if(y){if(!r){l();return}w(!0)}}const j=e.jsxs(e.Fragment,{children:[o("names.claim"),m!=null?e.jsxs(as,{children:[e.jsx(F,{}),Fe(m)]}):null]});return e.jsxs(Ln,{"data-testid":"names-page",children:[e.jsxs(Hn,{"aria-label":o("names.breadcrumbAria"),children:[e.jsx(Un,{onClick:n,children:o("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(On,{children:o("names.breadcrumbCurrent")})]}),e.jsxs(Gn,{children:[e.jsxs(Dn,{children:[e.jsxs(qn,{children:[e.jsx(Vn,{children:o("names.heroTitle")}),e.jsx(Kn,{children:o("names.heroSubtitle")})]}),e.jsxs(Qn,{children:[e.jsxs(Zn,{children:[e.jsxs(Jn,{invalid:a==="taken",children:[e.jsxs(ts,{children:[e.jsx(ns,{"aria-hidden":!0,children:"@"}),e.jsx(ss,{value:c,onChange:E=>f(tn(E.target.value)),placeholder:o("names.inputPlaceholder"),"aria-label":o("names.inputAria"),autoComplete:"off",spellCheck:!1,maxLength:X,style:{width:C!=null?`${C}px`:void 0}}),e.jsx(Xn,{ref:u,"aria-hidden":!0,children:c||o("names.inputPlaceholder")}),e.jsx(os,{children:o("names.suffix")})]}),c.length>0?e.jsxs(rs,{"aria-hidden":!0,children:[c.length,"/",X]}):null,e.jsx(De,{onClick:S,disabled:!y,"data-testid":"names-claim",children:j})]}),a==="taken"?e.jsxs(Yn,{role:"status","data-testid":"names-taken",children:[e.jsx(T,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:o("names.taken")}),e.jsxs(es,{href:gs(c),target:"_blank",rel:"noopener noreferrer",children:[o("names.takenMakeOffer"),e.jsx(T,{name:"external-link",size:13,"aria-hidden":!0})]})]}):null]}),e.jsx(is,{onClick:S,disabled:!y,children:j}),a==="checking"?e.jsx(se,{tone:"muted",role:"status","data-testid":"names-checking",children:o("names.checking")}):a==="error"?e.jsx(se,{tone:"muted",role:"status",children:o("names.checkError")}):a==="invalid"&&!b.ok&&b.reason==="too-short"?e.jsx(se,{tone:"muted",role:"status",children:o("names.tooShort",{min:Oe})}):null,e.jsx(fs,{role:"status","aria-live":"polite",children:a==="available"?o("names.available",{name:c}):""})]})]}),e.jsxs(ls,{children:[e.jsxs(cs,{children:[e.jsx(ds,{children:o("names.whyTitle")}),e.jsx(ps,{children:o("names.whyIntro")})]}),e.jsxs(hs,{children:[e.jsxs(q,{children:[e.jsx(V,{src:Wn,alt:""}),e.jsxs(K,{children:[e.jsx(Q,{children:o("names.why1Title")}),e.jsx(Z,{children:o("names.why1")})]})]}),e.jsxs(q,{children:[e.jsx(V,{src:Pn,alt:""}),e.jsxs(K,{children:[e.jsx(Q,{children:o("names.why2Title")}),e.jsxs(Z,{children:[o("names.why2")," ",e.jsx(xs,{children:o("names.why2Address")})]}),e.jsxs(We,{href:ms,target:"_blank",rel:"noopener noreferrer",children:[o("names.learnMore"),e.jsx(T,{name:"external-link","aria-hidden":!0})]})]})]}),e.jsxs(q,{children:[e.jsx(V,{src:Bn,alt:""}),e.jsxs(K,{children:[e.jsx(Q,{children:o("names.why3Title")}),e.jsx(Z,{children:o("names.why3")})]})]}),e.jsxs(q,{children:[e.jsx(V,{src:Fn,alt:""}),e.jsxs(K,{children:[e.jsx(Q,{children:o("names.why4Title")}),e.jsx(Z,{children:o("names.why4")}),e.jsxs(We,{href:us,target:"_blank",rel:"noopener noreferrer",children:[o("names.learnMore"),e.jsx(T,{name:"external-link","aria-hidden":!0})]})]})]})]})]})]}),d?e.jsx(Nn,{name:c,priceCredits:m,onClose:()=>w(!1)}):null]})}const ys="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",oe=48;function ws(n){return{tradeId:n.tradeId??n.id,listingType:"primary",contractAddress:n.contractAddress,itemId:n.itemId??"",name:n.name,thumbnail:n.thumbnail,rarity:n.rarity,category:n.category,wearableCategory:n.wearableCategory??null,creator:n.creator,manaWei:n.manaWei??"0",available:1,network:n.network,chainId:n.chainId,createdAt:0}}function Ds(){const[n]=tt(),r=Pe(),l=(n.get("q")??"").trim().toLowerCase(),x=Be(),{session:m,signIn:c}=ie(),f=(n.get("q")??"").trim();Le({title:f?o("seo.collectibles.searchTitle",{query:f}):o("seo.collectibles.title"),description:o("seo.collectibles.description")});const[a,p]=h.useState("wearable"),[d,w]=h.useState(null),[u,C]=h.useState([]),[$,b]=h.useState(""),[y,S]=h.useState(""),[j,E]=h.useState("on_sale"),[k,I]=h.useState(!1),[g,Y]=h.useState("newest"),[_,A]=h.useState(!1),[ae,ee]=h.useState(null);h.useEffect(()=>{if(!_)return;const i=B=>{B.key==="Escape"&&A(!1)};document.addEventListener("keydown",i);const v=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",i),document.body.style.overflow=v}},[_]);const U=j==="on_sale",N=$&&!Number.isNaN(Number($))?Number($):void 0,M=y&&!Number.isNaN(Number(y))?Number(y):void 0,qe=ht(),le=d?Wt[d]:void 0,ce=(je.find(i=>i.key===g)??je[0]).server,de={category:a,rarities:u.length?u:void 0,wearableCategories:le,minPriceCredits:N,maxPriceCredits:M,search:l||void 0,sortBy:ce,isSmart:k||void 0,onSale:!0,listingType:qe?void 0:"primary"},pe={category:a,rarities:u.length?u:void 0,wearableCategories:le,search:l||void 0,sortBy:ce,isWearableSmart:k||void 0,isOnSale:j==="not_for_sale"?!1:void 0},{items:W,total:he,isLoading:R,isPlaceholderData:z,error:xe,hasNextPage:Ve,isFetchingNextPage:fe,fetchNextPage:Ke}=Ft(U?["shop-items",de]:["catalog-items",pe],i=>U?dt({...de,first:oe,skip:i}):pt({...pe,first:oe,skip:i}),{enabled:a!=="names"}),O=he,me=R||z,Qe=R?15:Math.min(Math.max(W.length,1),oe),{data:G,isError:Ze}=Ue(),Je=i=>G&&i.manaWei?He(i.manaWei,G):null,ue=h.useRef(null);h.useEffect(()=>{R||z||!l||ue.current===l||(ue.current=l,J("Shop Searched",{query:l,result_count:O}))},[l,R,z,O]);const D=h.useRef("__init__");h.useEffect(()=>{if(R||z)return;const i=JSON.stringify({category:a,subCategory:d,rarities:u,min:N,max:M,sort:g,status:j,smart:k});if(D.current==="__init__"||D.current===i){D.current=i;return}D.current=i,J("Shop Applied Filter",{filters:{category:a,sub_category:d,rarities:u,min_price_credits:N??null,max_price_credits:M??null,status:j,smart:k,sort:g},result_count:O})},[a,d,u,N,M,g,j,k,R,z,O]);function ge(i){p(i),w(null)}function be(i){C(v=>v.includes(i)?v.filter(B=>B!==i):[...v,i])}function Xe(){p("wearable"),w(null),C([]),b(""),S(""),E("on_sale"),I(!1)}function Ye(i){const v=W.find(B=>B.id===i.id);if(!(!v||v.source!=="legacy"||!v.manaWei)){if(!m){c();return}ee(ws(v))}}function et(){x.invalidateQueries({queryKey:["shop-items"]})}const P=[];(N!=null||M!=null)&&P.push({key:"price",label:o("filter.price"),onRemove:()=>{b(""),S("")}});for(const i of Nt)u.includes(i)&&P.push({key:`rarity-${i}`,label:ct(i),onRemove:()=>be(i)});return k&&P.push({key:"smart",label:o("filter.smart"),onRemove:()=>I(!1)}),j!=="on_sale"&&P.push({key:"status",label:j==="all"?o("filter.statusAll"):o("filter.notForSale"),onRemove:()=>E("on_sale")}),e.jsxs(mt,{"data-testid":"browse",children:[a!=="names"&&e.jsxs(e.Fragment,{children:[_?e.jsx(ut,{onClick:()=>A(!1),"aria-hidden":!0}):null,e.jsxs(gt,{"data-open":_||void 0,"data-testid":"browse-sidebar",children:[e.jsxs(bt,{children:[e.jsx(yt,{children:o("assets.filters")}),e.jsx(wt,{onClick:()=>A(!1),"aria-label":o("assets.closeFilters"),children:"✕"})]}),e.jsx(jt,{children:e.jsx(vt,{category:a,subCategory:d,onCategory:ge,onSub:w,priceMin:$,priceMax:y,onPriceMin:b,onPriceMax:S,rarities:u,onToggleRarity:be,status:j,onStatus:E,smart:k,onSmart:I})}),e.jsx(Ct,{children:e.jsx($t,{type:"button",onClick:()=>A(!1),children:o("assets.showItems")})})]})]}),e.jsx(kt,{children:a==="names"?e.jsx(bs,{onBack:()=>ge("wearable")}):e.jsxs(e.Fragment,{children:[e.jsx(Mt,{sort:g,onSort:Y,total:he,loading:R||z,query:l,onOpenFilters:()=>A(!0),chips:P,onClearChips:Xe}),Ze&&U&&W.some(i=>i.source==="legacy")?e.jsx(St,{"data-variant":"warn",children:o("assets.marketUnavailable")}):null,xe?e.jsx(Lt,{message:o("assets.loadError"),testId:"browse-error"}):null,!me&&W.length===0&&!xe?e.jsxs(Et,{"data-testid":"browse-empty",children:[e.jsx(Tt,{src:ys,alt:""}),e.jsxs(It,{children:[e.jsx(Rt,{children:o("assets.empty.title")}),e.jsx(_t,{children:f?e.jsxs(e.Fragment,{children:[o("assets.empty.searchBefore"),e.jsx("b",{children:f}),o("assets.empty.searchAfter")]}):o("assets.empty.filters")})]}),e.jsx(zt,{children:e.jsx(At,{type:"button",onClick:()=>r("/overview"),children:o("assets.empty.cta")})})]}):e.jsxs(e.Fragment,{children:[e.jsx(Yt,{"data-testid":"grid",children:me?e.jsx(we,{count:Qe}):e.jsxs(e.Fragment,{children:[W.map(i=>{if(!U)return e.jsx(te,{item:i,mode:"view"},ne(i));const v=i;return v.source==="legacy"?e.jsx(te,{item:v,mode:"market",marketPriceCredits:Je(v),onBuyNow:Ye},ne(i)):e.jsx(te,{item:i},ne(i))}),fe?e.jsx(we,{count:6}):null]})}),e.jsx(Pt,{hasNextPage:Ve,isFetching:fe,onLoadMore:()=>void Ke()})]})]})}),ae&&G?e.jsx(Bt,{listing:ae,rate:G,onClose:()=>ee(null),onSold:()=>{ee(null),et()}}):null]})}export{Ds as Assets};
|