@dcl/shop 1.11.3-33096177368.commit-6f0f3de → 1.11.3
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-DDiEmOsx.js → Activity-BEOVOdVV.js} +6 -6
- package/_assets/{AnimatedBackground-CVHTTGZi.js → AnimatedBackground-wAz9Odt0.js} +2 -2
- package/_assets/{Assets-R174CnUb.js → Assets-P4H-lV4U.js} +61 -61
- package/_assets/{Authorizations-BpQ-lzdP.js → Authorizations-BUN1TioY.js} +2 -2
- package/_assets/{Cart-BsI419x2.js → Cart-CUPHFj39.js} +2 -2
- package/_assets/{Collection-C620zyzC.js → Collection-BHRp_9DS.js} +2 -2
- package/_assets/{CollectionCarousel-Cwf724uA.js → CollectionCarousel-7w9vcOQY.js} +3 -3
- package/_assets/{Confetti-CB1yZzVw.js → Confetti-CYh3a_SI.js} +4 -4
- package/_assets/{ConstantsUtil-CFYdyJk0.js → ConstantsUtil-DblXIgum.js} +2 -2
- package/_assets/{ContentClient-GzostOsU.js → ContentClient-BgeGbQMc.js} +2 -2
- package/_assets/{Creator-DxjcHNGc.js → Creator-DHomo97d.js} +2 -2
- package/_assets/{DeploymentBuilder-DDKLtbBM.js → DeploymentBuilder-j66rJfGs.js} +2 -2
- package/_assets/{EmotePlaybackBar-DVIeTHjQ.js → EmotePlaybackBar-BERHYvEN.js} +3 -3
- package/_assets/{ErrorNotice-DGpmSHFq.js → ErrorNotice-AmLNAAkn.js} +2 -2
- package/_assets/{ExchangeController-56N8xni5.js → ExchangeController-CxJiKrmf.js} +2 -2
- package/_assets/{Faq-mlHE1lJ-.js → Faq-B-2IAlN1.js} +2 -2
- package/_assets/{GetCredits-DsOH_PZB.js → GetCredits-ncUz7MSF.js} +2 -2
- package/_assets/{Grow-D6DG-S-e.js → Grow-BrH_WQ15.js} +2 -2
- package/_assets/{HelpersUtil-BjRYK1HI.js → HelpersUtil-PZUZTOEJ.js} +2 -2
- package/_assets/{ItemDetail-DO0vMUED.js → ItemDetail-CTfaTNRb.js} +2 -2
- package/_assets/{LoadMore-CHhSQR_A.js → LoadMore-DscEf3Fk.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-CAJcVFK8.js → ManaPricingBanner.styles-D9T4JSll.js} +2 -2
- package/_assets/{MyAssets-Dj6Kvu7N.js → MyAssets-D-0qpt_J.js} +2 -2
- package/_assets/{MyFavorites-BF76BQio.js → MyFavorites-BM0Fy0t_.js} +2 -2
- package/_assets/{NetworkUtil-DuWsUf1s.js → NetworkUtil-CcWpYyVE.js} +2 -2
- package/_assets/{NotFound-DMt0E07P.js → NotFound-DngznS1a.js} +2 -2
- package/_assets/{NotificationsBell-CFknF7nN.js → NotificationsBell-DlvSN7Il.js} +2 -2
- package/_assets/{OutfitDetail-CqvqCpur.js → OutfitDetail-DASkQM6x.js} +2 -2
- package/_assets/{OutfitPreview-BWSHYJQo.js → OutfitPreview-CuWTYpJV.js} +2 -2
- package/_assets/{OutfitStudio-YYVzC2vq.js → OutfitStudio-CI-08PA0.js} +2 -2
- package/_assets/{StoreSettings-Bcj58Qsl.js → StoreSettings-CrnV-oDS.js} +22 -22
- package/_assets/{Success-DQFnJCq1.js → Success-CuN1jEku.js} +2 -2
- package/_assets/{SwapController-BG_0Rnli.js → SwapController-CD6bIKjn.js} +2 -2
- package/_assets/{TradeService-BQ0LfIIn.js → TradeService-BBCk0RYw.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-DFZh2-P1.js → W3MFrameProviderSingleton-35iFXIWF.js} +4 -4
- package/_assets/{WebCryptoP256-DY-BoRUy.js → WebCryptoP256-Cf-XLLKK.js} +2 -2
- package/_assets/{authorizations-r_yIs4_S.js → authorizations-BYnIZF10.js} +2 -2
- package/_assets/{basic-NTA-d2L3.js → basic-Kurqa6Hg.js} +2 -2
- package/_assets/{biconomy-Ca4RWWX7.js → biconomy-DGTyqkE9.js} +2 -2
- package/_assets/{browseLayout.styles-B5WZBOX4.js → browseLayout.styles-C3O3rJ6E.js} +2 -2
- package/_assets/{browser-BSJZzHk7.js → browser-CKLQ1qFk.js} +2 -2
- package/_assets/{browser-ponyfill-BfJ9XPXG.js → browser-ponyfill-DiBM5SBC.js} +2 -2
- package/_assets/{builder-C7euKgzs.js → builder-Db2C6JNf.js} +2 -2
- package/_assets/{buy-BBspDwaD.js → buy-Tscnuj8P.js} +2 -2
- package/_assets/{buy-gasless-CDHGUFyR.js → buy-gasless-C1ToktQG.js} +2 -2
- package/_assets/{categories-CSWMIFKV.js → categories-B1BKLZKW.js} +2 -2
- package/_assets/{ccip-C-7Q5nOx.js → ccip-05aiYT-K.js} +2 -2
- package/_assets/{ccip-D59yTDkH.js → ccip-CNYS3aQW.js} +2 -2
- package/_assets/{chains-Df2U73pw.js → chains-ZAiL12Bm.js} +2 -2
- package/_assets/collectionPage.styles-CUZMIu19.js +40 -0
- package/_assets/{common-Ced0DDGw.js → common-jIM0_xX0.js} +2 -2
- package/_assets/{controller-VIdMekC7.js → controller-Qvm0QW2h.js} +3 -3
- package/_assets/{core-DnqUUiNf.js → core-DANcYiPS.js} +5 -5
- package/_assets/{createSvgIcon-rpmuP-04.js → createSvgIcon-DqIhLrW2.js} +2 -2
- package/_assets/{custom-CaIsQUk6.js → custom-DTxuVuIB.js} +2 -2
- package/_assets/{data-capture-VFIfTOLh.js → data-capture-DD7sCiZr.js} +2 -2
- package/_assets/{dcl-schemas-D3MMsa96.js → dcl-schemas-BHtFmNb-.js} +2 -2
- package/_assets/{decimals-CbgB-D98.js → decimals-CjF-BdSX.js} +2 -2
- package/_assets/{decimals-Bhq5HaFG.js → decimals-Ckn9cRy4.js} +2 -2
- package/_assets/{detectExtension-CTH4nWTQ.js → detectExtension-Gnu7LiZD.js} +2 -2
- package/_assets/{disposePreview-Dhj7G1yu.js → disposePreview-BtvqOg7t.js} +2 -2
- package/_assets/{email-DKwgACJ9.js → email-DaxW64cs.js} +2 -2
- package/_assets/{embedded-wallet-BvFexqw_.js → embedded-wallet-B0Fwgs2K.js} +2 -2
- package/_assets/{emotion-styled.browser.esm--6OqWmeO.js → emotion-styled.browser.esm-BxkApjMl.js} +2 -2
- package/_assets/{engine-Cj_ytnKe.js → engine-JThGOFXd.js} +2 -2
- package/_assets/{errors-V6zhnTod.js → errors-C8Iz-trA.js} +2 -2
- package/_assets/{estimate-l1-fee-CRr-9P4j.js → estimate-l1-fee-Dbvud_Cw.js} +2 -2
- package/_assets/{eth_estimateGas-8PG-LgjK.js → eth_estimateGas-rS25vqwZ.js} +2 -2
- package/_assets/{eth_getStorageAt-CzRui93q.js → eth_getStorageAt-Dfz80jyN.js} +2 -2
- package/_assets/{eth_getTransactionCount-B6uEKHJJ.js → eth_getTransactionCount-T_shF7-r.js} +2 -2
- package/_assets/{ethereum-u7pXJb69.js → ethereum-CJCFASug.js} +2 -2
- package/_assets/{ethers-CFmosx3s.js → ethers-DgOG59Su.js} +2 -2
- package/_assets/{events-BijXrLgV.js → events-DibVD_t7.js} +2 -2
- package/_assets/{execute-B12s_EMl.js → execute-CNwyt0G_.js} +3 -3
- package/_assets/{extractIPFS-BO3gyVwL.js → extractIPFS-C9dhUG6w.js} +2 -2
- package/_assets/{features-DvGGBhy_.js → features-ol0SSx5c.js} +2 -2
- package/_assets/{fetchTokenMetadata-B-L9nStS.js → fetchTokenMetadata-lhSHn6xi.js} +3 -3
- package/_assets/{field.styles-BYvs7GyZ.js → field.styles-B41qYJoU.js} +2 -2
- package/_assets/{fortmatic-Dk7tB2Cc.js → fortmatic-uL_s0OSn.js} +2 -2
- package/_assets/{get-bytecode-CRhd_-w6.js → get-bytecode-BOwL4NWW.js} +2 -2
- package/_assets/{get-ecosystem-wallet-info-84hXtg9T.js → get-ecosystem-wallet-info-u8rFPFzM.js} +2 -2
- package/_assets/{getBalance-BZ5IqH6E.js → getBalance-ZoN1tP3C.js} +3 -3
- package/_assets/{getInstalledModules-BxDwRN8h.js → getInstalledModules-B4P_9Ec-.js} +2 -2
- package/_assets/{getNFT-B_RYObDB.js → getNFT-UlaoLDKl.js} +3 -3
- package/_assets/{getNFT-BlXV1Nbm.js → getNFT-xR-ZGgUx.js} +2 -2
- package/_assets/{grid.styles-B15cNj07.js → grid.styles-Bfq3tOD5.js} +2 -2
- package/_assets/{hashTypedData-iIDq5Ym-.js → hashTypedData-KzAb0OXw.js} +2 -2
- package/_assets/{hashTypedData-CvW0E5r9.js → hashTypedData-qEav_ih0.js} +2 -2
- package/_assets/{in-app-BtFFE7ZS.js → in-app-DsTcp9g1.js} +2 -2
- package/_assets/{in-app-wallet-calls-DUdTy2mQ.js → in-app-wallet-calls-BHDyG_Hm.js} +2 -2
- package/_assets/{index-CHp8Yn9f.js → index-B7wtabS1.js} +2 -2
- package/_assets/{index-SrWaz5aK.js → index-BB63hriw.js} +2 -2
- package/_assets/{index-DsLn2baO.js → index-BDoxreOH.js} +2 -2
- package/_assets/{index-DCrOq2wd.js → index-BEPvT81m.js} +2 -2
- package/_assets/{index-BzifxYje.js → index-BSUctRYP.js} +2 -2
- package/_assets/{index-CSUAwcgb.js → index-BSiVr0DD.js} +2 -2
- package/_assets/{index-xUQrDXPD.js → index-BTGqCcTp.js} +2 -2
- package/_assets/{index-kJ8yZh7l.js → index-BX5k8Ia-.js} +2 -2
- package/_assets/{index-Cu3FnKVy.js → index-BY7ZDgU3.js} +2 -2
- package/_assets/{index-BGa7JO1k.js → index-B_oRHv6S.js} +2 -2
- package/_assets/{index-DtHHdoPj.js → index-Ba6ZjOcU.js} +12 -12
- package/_assets/{index-CdKgL1QK.js → index-Be1NJYDT.js} +3 -3
- package/_assets/{index-CHDVYYal.js → index-Bh1_eNVo.js} +2 -2
- package/_assets/{index-BERlZlkD.js → index-Bmjs-VA2.js} +2 -2
- package/_assets/{index-C7t87Zs_.js → index-BvHOSZKj.js} +4 -4
- package/_assets/{index-DOYNCVik.js → index-C-Jqa8tU.js} +2 -2
- package/_assets/{index-hgUDiN1A.js → index-C-Vm4vxE.js} +2 -2
- package/_assets/{index-BtF9e9Uu.js → index-CAJOEhqU.js} +2 -2
- package/_assets/{index-asQzvqC5.js → index-CF0TwWos.js} +2 -2
- package/_assets/{index-DucxpIJX.js → index-CFSE-4g9.js} +4 -4
- package/_assets/{index-CwoKDI7V.js → index-CTVBoJue.js} +2 -2
- package/_assets/{index-BFQuWtYs.js → index-CUe36oKW.js} +2 -2
- package/_assets/{index-Awgz4ffT.js → index-CXi4JrFW.js} +2 -2
- package/_assets/{index-FwAqH4Jg.js → index-CbK4PiBW.js} +2 -2
- package/_assets/{index-D22uBSRA.js → index-Ce4Edp7-.js} +3 -3
- package/_assets/{index-shk4Nfrg.js → index-CkpRws4w.js} +2 -2
- package/_assets/{index-BfA6yQqc.js → index-ClTFdTLe.js} +2 -2
- package/_assets/{index-jDlI52U4.js → index-CmH_zvOx.js} +2 -2
- package/_assets/{index-DIURmrHc.js → index-CpepHIup.js} +2 -2
- package/_assets/{index-IzgVmiKy.js → index-CrE3Fjux.js} +2 -2
- package/_assets/{index-DGi-pDgC.js → index-CrawRT0o.js} +2 -2
- package/_assets/{index-phZzSnhX.js → index-CskSOnyZ.js} +2 -2
- package/_assets/{index-BynUY8x7.js → index-CvYt90O2.js} +2 -2
- package/_assets/{index-D6KrRNZn.js → index-CyyRHdbc.js} +3 -3
- package/_assets/{index-DTQo8MWQ.js → index-D-peO4dU.js} +2 -2
- package/_assets/{index-Cu7kQ3eJ.js → index-D3fQaxNZ.js} +2 -2
- package/_assets/{index-CtxqhjhC.js → index-DDo55DDH.js} +2 -2
- package/_assets/{index-75GXxbyC.js → index-DF6WG3qn.js} +2 -2
- package/_assets/{index-ET91y1L4.js → index-DMAEUsQc.js} +2 -2
- package/_assets/{index-Blu_X-5c.js → index-DNnRMWE4.js} +2 -2
- package/_assets/{index-Cd-qOUE-.js → index-DVjQDdLu.js} +4 -4
- package/_assets/{index-BtyN-hwY.js → index-DW3ULbU6.js} +2 -2
- package/_assets/{index-CQtnSuxq.js → index-DZJvVVBz.js} +2 -2
- package/_assets/{index-CitByYvg.js → index-Dana8qUZ.js} +2 -2
- package/_assets/{index-1aJPWImZ.js → index-DclRc8UN.js} +2 -2
- package/_assets/{index-CMAp5Zcw.js → index-DdQvxv6H.js} +2 -2
- package/_assets/{index-BJYAOcKy.js → index-DeldA2Me.js} +2 -2
- package/_assets/{index-4yyQV3Ii.js → index-DiQlp13b.js} +2 -2
- package/_assets/{index-DOZ6UG7t.js → index-DtVc4xk5.js} +2 -2
- package/_assets/{index-8Sq2Laxu.js → index-DvWRa5G-.js} +2 -2
- package/_assets/{index-BGRK42zM.js → index-DwM-JZSi.js} +2 -2
- package/_assets/{index-O3-idy_g.js → index-GKtnnyfC.js} +2 -2
- package/_assets/{index-D-jGbFC6.js → index-KBa4w5_b.js} +2 -2
- package/_assets/{index-B7yEfYvF.js → index-McPhRhdX.js} +2 -2
- package/_assets/{index-DyHgoZVr.js → index-XKm4O5jb.js} +2 -2
- package/_assets/{index-INu2i__0.js → index-XkbNngUP.js} +2 -2
- package/_assets/{index-Wv_D67im.js → index-YkV_OCpx.js} +2 -2
- package/_assets/{index-CX3dLd9W.js → index-bPrjbeDi.js} +2 -2
- package/_assets/{index-GMK5LYtv.js → index-btSRhLw4.js} +2 -2
- package/_assets/{index-CLoD3Be1.js → index-fmt3aBMt.js} +2 -2
- package/_assets/{index-DFLKOa3I.js → index-lZ0PPqQV.js} +2 -2
- package/_assets/{index-ChboSjzT.js → index-mkHeSqYe.js} +2 -2
- package/_assets/{index-DcdoZVBU.js → index-oAZ1ZU-c.js} +3 -3
- package/_assets/{index-CqyGsGNi.js → index-ozHAxPgl.js} +2 -2
- package/_assets/{index-Be3X4HXZ.js → index-vA8IIEKD.js} +2 -2
- package/_assets/{index-Bi_cxGZL.js → index-wfbbVR0C.js} +2 -2
- package/_assets/{index-juvpUDkX.js → index-yeutDs-n.js} +2 -2
- package/_assets/{index.es-Dk-yJOBf.js → index.es-7_2j1y1c.js} +2 -2
- package/_assets/{index.es-nTFebsyp.js → index.es-CX2yBV9N.js} +2 -2
- package/_assets/{index.es-B5BDv7Up.js → index.es-DiYQfgia.js} +2 -2
- package/_assets/{index.es-BKFBDEdF.js → index.es-Uf1O-fY2.js} +5 -5
- package/_assets/items-empty-Di8AuNKB.js +2 -0
- package/_assets/{jump-CKAtFOwO.js → jump-DKhwghhc.js} +2 -2
- package/_assets/{linkAccount-D37ZKt7i.js → linkAccount-CI2WbmeE.js} +2 -2
- package/_assets/{localBatchGatewayRequest-CnvnHVld.js → localBatchGatewayRequest-CfRrj7XF.js} +2 -2
- package/_assets/{native-CAETsTK5.js → native-Do2B-Qxb.js} +2 -2
- package/_assets/{networks-DRuoicxJ.js → networks-Dqe7-N6R.js} +2 -2
- package/_assets/{onramp-BwGhJ_q4.js → onramp-gJypUnb8.js} +2 -2
- package/_assets/{openzeppelin-DAbLTIrx.js → openzeppelin-CqvwIh1K.js} +2 -2
- package/_assets/{ownerOf-CccB5Df2.js → ownerOf-CSaLDIRi.js} +2 -2
- package/_assets/{parseNft-QMLtRgH8.js → parseNft-Abg8wFVh.js} +3 -3
- package/_assets/{parseSignature-DLhzdjdz.js → parseSignature-BMAMdfMY.js} +4 -4
- package/_assets/{parseSignature-DBFFz9Fc.js → parseSignature-BkC3FKxl.js} +2 -2
- package/_assets/{passkeys-DUhoeSr2.js → passkeys-BMA2Vzjg.js} +2 -2
- package/_assets/{pay-with-exchange-wv4pj6K4.js → pay-with-exchange-BbaFUQ7y.js} +2 -2
- package/_assets/{prepare-contract-call-CZgIb5_m.js → prepare-contract-call-CTis3Ksb.js} +2 -2
- package/_assets/{qr-overlay-BvMbYq7B.js → qr-overlay-C1Y4nmkc.js} +4 -4
- package/_assets/{react-Cu6RTeaf.js → react-DyPiTXWH.js} +2 -2
- package/_assets/{receive-B1TTNgiL.js → receive-BC-Faqrt.js} +2 -2
- package/_assets/{resolveImplementation-DqHPzOZ1.js → resolveImplementation-C7gGuPZF.js} +2 -2
- package/_assets/{resume-buy-DBJOysCn.js → resume-buy-CrOe5wve.js} +2 -2
- package/_assets/{rpc-DY_6x6sN.js → rpc-EFTC3eie.js} +2 -2
- package/_assets/{sales-empty-sKHyys3f.js → sales-empty-B90K0W8H.js} +2 -2
- package/_assets/{search-empty-BLqSZDPi.js → search-empty-GvvlNANs.js} +2 -2
- package/_assets/{secp256k1-CmiJzTHS.js → secp256k1-CSKPyg7G.js} +2 -2
- package/_assets/{secp256k1-WxEVCU75.js → secp256k1-Cth-fPBi.js} +2 -2
- package/_assets/{secp256k1-BEqU8sYg.js → secp256k1-DruP3eGK.js} +2 -2
- package/_assets/{send-CAIzabYu.js → send-CSn4ZY-1.js} +2 -2
- package/_assets/{send-batch-transaction-D8sYAmn9.js → send-batch-transaction-BJtaWfLS.js} +2 -2
- package/_assets/{send-eip712-transaction-Bj_Dviud.js → send-eip712-transaction-C4Sq8ViN.js} +3 -3
- package/_assets/{send-gasless-transaction-D1sAgdfS.js → send-gasless-transaction-6SwFGxtl.js} +3 -3
- package/_assets/{send-transaction-BlkeWOl3.js → send-transaction-BS3sJtZU.js} +3 -3
- package/_assets/{sendMetaTransaction-CqnRe296.js → sendMetaTransaction-DdKlulxU.js} +2 -2
- package/_assets/{sendRawTransaction-cowcF1Zi.js → sendRawTransaction-CoNlS87a.js} +4 -4
- package/_assets/{sentry-BIexM3hF.js → sentry-wjuCVNXH.js} +3 -3
- package/_assets/{serializeTransaction-DXNnXLd5.js → serializeTransaction-Be5yK09O.js} +2 -2
- package/_assets/{session-proposal-DKZwcLCZ.js → session-proposal-Cr1bW3vR.js} +2 -2
- package/_assets/{session-request-Dak6hx32.js → session-request-C7XtyHpP.js} +3 -3
- package/_assets/{sha256-D6LtjOnB.js → sha256-UiFg1E6a.js} +2 -2
- package/_assets/{signing-CeMNDy_m.js → signing-B6MLGmUe.js} +4 -4
- package/_assets/{skeleton.styles-BC2avkie.js → skeleton.styles-DGb4Vags.js} +2 -2
- package/_assets/{socials-ygRGzmms.js → socials-B1QMNGq2.js} +2 -2
- package/_assets/{styled-DjZ-UOQs.js → styled-Bgmkc9S2.js} +2 -2
- package/_assets/{swaps-DomEuyxC.js → swaps-DII4kYq8.js} +2 -2
- package/_assets/{thirdweb-pkB5sCqN.js → thirdweb-B1YDVAJI.js} +4 -4
- package/_assets/{to-serializable-transaction-BGYR6mL7.js → to-serializable-transaction-D2a8RSyu.js} +3 -3
- package/_assets/{totalSupply-_s3nO9Hq.js → totalSupply-Cz_d9KgH.js} +2 -2
- package/_assets/{transaction-Drph0tvC.js → transaction-CSbiSCR6.js} +2 -2
- package/_assets/{transactionReceipt-UBxlSqk5.js → transactionReceipt-Cs2L3s90.js} +2 -2
- package/_assets/{transactions-CHMKCKRv.js → transactions-BM0AB6rD.js} +2 -2
- package/_assets/{useCreditPacks-DV8TpCkV.js → useCreditPacks-oQYk8AXU.js} +2 -2
- package/_assets/{useInfiniteGrid-EJxCLDAB.js → useInfiniteGrid-BKQ811RA.js} +2 -2
- package/_assets/{useStore-CmOmf_pZ.js → useStore-Dvc10vNY.js} +3 -3
- package/_assets/{useTheme-CxS-nUL6.js → useTheme-kL3HtKAH.js} +2 -2
- package/_assets/{utils-DK0-s9yl.js → utils-6qnhg71x.js} +2 -2
- package/_assets/{verifyHash-C7Sy8sQa.js → verifyHash-CHp_1dkh.js} +2 -2
- package/_assets/{w3m-modal-dl0m9MGw.js → w3m-modal-BidasrnU.js} +2 -2
- package/_assets/{w3m-modal-DlSk4w8R.js → w3m-modal-D-YLR-nS.js} +2 -2
- package/_assets/{wait-for-tx-receipt-u8qlSCaY.js → wait-for-tx-receipt-CuAEC_h9.js} +2 -2
- package/_assets/{wallets-rkrKp4c1.js → wallets-IqNjjBUC.js} +6 -6
- package/_assets/{web-connector-B0ui-2UM.js → web-connector-B6ZK-KnR.js} +4 -4
- package/_assets/{writeContract-CIcRNaaC.js → writeContract-BhYblJOj.js} +2 -2
- package/_assets/{zora-sepolia-BMPN4lD4.js → zora-sepolia-MBZVLRHn.js} +2 -2
- package/_assets/{zoraTestnet-CnfxOehO.js → zoraTestnet-z1EEFkWs.js} +2 -2
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/collectionPage.styles-CVj8bQ38.js +0 -40
- package/_assets/items-empty-DtvQhcHO.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as
|
|
1
|
+
import{r as m,b as He,j as e,u as tt}from"./react-DyPiTXWH.js";import{u as nt,s as st}from"./search-empty-GvvlNANs.js";import{u as it,t as Ie,R as ot,j as rt,k as at,l as lt,m as ct,n as dt,o as ht,p as pt,v as ut,q as ft,r as mt,M as xt,s as gt}from"./browseLayout.styles-C3O3rJ6E.js";import{c as q,R as bt,bv as yt,br as wt,aA as vt,a as jt,l as Ct,cw as $t,cx as kt,s as i,t,o as Oe,bf as St,r as Et,E as ve,b as n,p as Tt,I as E,q as O,cy as le,bd as Rt,ad as oe,bn as Le,bu as _t,bt as It,n as De,J as Ge,U as qe,V as Lt,ar as Nt,L as At,S as Ne,M as J,aI as zt,bE as Mt}from"./index-Ba6ZjOcU.js";import{L as Wt}from"./LoadMore-DscEf3Fk.js";import{u as Bt}from"./useInfiniteGrid-BKQ811RA.js";import{n as Pt,S as Ft}from"./categories-B1BKLZKW.js";import{E as Ut}from"./ErrorNotice-AmLNAAkn.js";import{d as Ht}from"./dcl-schemas-BHtFmNb-.js";import{s as Ot,G as Dt,w as Gt,S as qt}from"./buy-gasless-C1ToktQG.js";import{s as Vt,o as Zt}from"./buy-Tscnuj8P.js";import{f as Qt}from"./errors-C8Iz-trA.js";import{J as Kt,C as Jt,B as je}from"./ethers-DgOG59Su.js";import{n as Xt}from"./name-glyph-aUugT8vq.js";import{G as Yt}from"./grid.styles-Bfq3tOD5.js";import"./skeleton.styles-DGb4Vags.js";import"./sentry-wjuCVNXH.js";import"./intl-AKLEHPeO.js";import"./authorizations-BYnIZF10.js";import"./sendMetaTransaction-DdKlulxU.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new s.Error().stack;o&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[o]="7bc74190-06b2-44de-a3ac-c913dfb4d49d",s._sentryDebugIdIdentifier="sentry-dbid-7bc74190-06b2-44de-a3ac-c913dfb4d49d")}catch{}})();function X(s){const o=s.source??"item",r=s.tradeId||`${s.contractAddress}-${s.tokenId??s.itemId??""}`;return`${o}:${r}`}const V="100000000000000000000",Ve=2,re=15,en=/^[a-zA-Z0-9]+$/;function Ae(s){const o=s.trim();return o.length===0?{ok:!1,reason:"empty"}:en.test(o)?o.length<Ve?{ok:!1,reason:"too-short"}:o.length>re?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function tn(s){return s.replace(/[^a-zA-Z0-9]/g,"").slice(0,re)}const nn=["function available(string _subdomain) view returns (bool)"],ze={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function sn(){return q.chainId===Number(Ht.ChainId.MATIC_MAINNET)?ze.mainnet:ze.sepolia}async function on(s,o={}){var u;const{rpc:r,address:d}=sn(),h=new Kt(r),x=new Jt(d,nn,h);console.info(`[names] availability check → DCLRegistrar(${d}).available("${s}") on ${r}`);const l=await x.available(s);if((u=o.signal)!=null&&u.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${s}" available=${l}`),l?"available":"taken"}const rn="https://app.across.to/api";class ke extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}class Ce extends Error{constructor(){super("The name could not be registered on Ethereum; your funds were recovered."),this.name="NameNotRegisteredError"}}class $e extends Error{constructor(){super("We couldn't confirm whether the purchase went through."),this.name="NameSettlementUnknownError"}}function an(s){return vt(V,s)}async function ln(s,o,r={}){var u;const d=r.chainId??q.chainId,h=r.provider??"across",x=`${q.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(o)}&chainId=${d}&provider=${h}`,l=await jt(x,{method:"GET",identity:s,metadata:{}});if(!l.ok){let c;try{c=(u=await l.json())==null?void 0:u.code}catch{}throw c==="ROUTE_COST_TOO_HIGH"?new ke:new Error(`fetchNameCreditRoute ${l.status}`)}return l.json()}function cn(s,o){const r=je.from(s.availableAmount),h=je.from(V).sub(r);return{credits:[{value:s.amount,expiresAt:Number(s.expiresAt),salt:Zt(s.id)}],creditsSignatures:[s.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:V}}async function dn(s,o={}){const r=rn,d=o.intervalMs??1e4,h=o.maxAttempts??60;let x={status:"pending",destinationTxHash:null,actionsSucceeded:null};for(let l=0;l<h;l++){try{const u=await fetch(`${r}/deposit/status?originChainId=137&depositTxHash=${s}`);if(u.ok){const c=await u.json(),p=(c.status??"pending").toLowerCase(),f=c.fillTx??c.fillTxnRef??null,w=typeof c.actionsSucceeded=="boolean"?c.actionsSucceeded:null;if(p==="filled")return{status:"filled",destinationTxHash:f,actionsSucceeded:w};if(p==="refunded"||p==="expired")return{status:p,destinationTxHash:null,actionsSucceeded:!1};x={status:"pending",destinationTxHash:f,actionsSucceeded:w}}}catch{}l<h-1&&await new Promise(u=>setTimeout(u,d))}return x}async function hn(s){const{name:o,identity:r,signer:d}=s,h=f=>{var w;try{(w=s.onProgress)==null||w.call(s,f)}catch{}},x=s.chainId??q.chainId,l=s.provider??"across",u=(s.beneficiary??await d.getAddress()).toLowerCase();let c=null,p="unconfirmed";console.info("[names] register start",{name:o,buyer:u,chainId:x,provider:l}),h("preparing");try{const f=await bt(x),w=an(f);console.info("[names] step 1/6 sized reservation",{usdCents:w,manaRate:f});const j=await ln(r,o,{chainId:x,provider:l});console.info("[names] step 2/6 route fetched",{target:j.externalCall.target,selector:j.externalCall.selector,provider:j.provider,quoteId:j.quoteId});const $=await yt(r,w,void 0,void 0,o);if(c=$.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:$.credit.id,maxCreditedValue:$.maxCreditedValue}),je.from($.maxCreditedValue).lt(V))throw new Error("Credit under-sized for the name price");h("awaiting-confirmation");const C=cn($.credit,j);let g;try{g=await Ot({chainId:x,buyer:u,signer:d,args:C})}catch(b){if(!(b instanceof Dt))throw b;if(b.reason==="relayer-unreachable"){p="unobservable";const S=new $e;throw S.cause=b,S}g=await Vt(x,C,d)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:g}),h("confirming"),await Gt(g),p="confirmed",console.info("[names] step 5/6 origin tx confirmed",{originTxHash:g}),l==="across"){h("registering");const b=await dn(g,s.acrossPoll);if(console.info("[names] step 6/6 across status",b),b.status==="pending")return{status:"pending",originTxHash:g};if(b.status==="filled"&&b.actionsSucceeded===null)return console.warn("[names] across filled without reporting actionsSucceeded — reporting pending",{originTxHash:g}),{status:"pending",originTxHash:g};if(b.status!=="filled"||b.actionsSucceeded!==!0)throw new Ce;return{status:"registered",originTxHash:g,destinationTxHash:b.destinationTxHash}}return{status:"pending",originTxHash:g}}catch(f){if(console.error("[names] register failed — raw error:",f,{name:o,buyer:u,originState:p}),f instanceof qt)return{status:"pending",originTxHash:f.txHash};if(c&&p==="unconfirmed"&&await wt(r,[c]).catch(()=>{}),f instanceof ke||f instanceof Ce||f instanceof $e)throw f;const w=new Error(Qt(f,"Couldn't register the name. Please try again.",{sale:!0}));throw w.cause=f,w}}function pn(){const{data:s}=Ct({queryKey:["feature-flag","shop-names"],queryFn:()=>$t(kt.SHOP_NAMES),staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return s===!0}const un=60,fn=700,mn=25;function xn(s){if(!s)return[];const o=[];for(let r=1;r<=s.length;r++)o.push({text:s.slice(0,r),delay:un});o[o.length-1]={text:s,delay:fn};for(let r=s.length-1;r>=1;r--)o.push({text:s.slice(0,r),delay:mn});return o}function gn(s){return s.flatMap(xn)}function bn(s,o){const r=m.useMemo(()=>gn(s),[s]),[d,h]=m.useState(0);return m.useEffect(()=>{if(!o||r.length===0)return;const x=setTimeout(()=>h(l=>(l+1)%r.length),r[d%r.length].delay);return()=>clearTimeout(x)},[d,o,r]),!o||r.length===0?"":r[d%r.length].text}const yn="https://cdn.decentraland.org/@dcl/shop/1.11.3/_assets/name-verified-oGwQ3ntb.svg",wn="#34fee6",vn=i.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
inset: 0;
|
|
4
4
|
z-index: 10000;
|
|
@@ -7,7 +7,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
7
7
|
justify-content: center;
|
|
8
8
|
padding: 16px;
|
|
9
9
|
background: rgba(22, 21, 24, 0.55);
|
|
10
|
-
`,
|
|
10
|
+
`,jn=i.div`
|
|
11
11
|
width: 560px;
|
|
12
12
|
max-width: 100%;
|
|
13
13
|
max-height: 92vh;
|
|
@@ -77,7 +77,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
77
77
|
display: flex;
|
|
78
78
|
align-items: center;
|
|
79
79
|
gap: 16px;
|
|
80
|
-
`,
|
|
80
|
+
`,Cn=i.div`
|
|
81
81
|
flex: none;
|
|
82
82
|
display: flex;
|
|
83
83
|
flex-direction: column;
|
|
@@ -90,11 +90,11 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
90
90
|
border-radius: 12px;
|
|
91
91
|
overflow: hidden;
|
|
92
92
|
background: ${t.gradients.amethyst};
|
|
93
|
-
|
|
93
|
+
`,$n=i.img`
|
|
94
94
|
display: block;
|
|
95
95
|
width: 47px;
|
|
96
96
|
height: 47px;
|
|
97
|
-
|
|
97
|
+
`,kn=i.span`
|
|
98
98
|
display: inline-flex;
|
|
99
99
|
align-items: center;
|
|
100
100
|
gap: 2px;
|
|
@@ -104,7 +104,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
104
104
|
font-size: 18px;
|
|
105
105
|
font-weight: 600;
|
|
106
106
|
/* The design's cyan — it has to read against the purple, which the body text colour would not. */
|
|
107
|
-
color: ${
|
|
107
|
+
color: ${wn};
|
|
108
108
|
white-space: nowrap;
|
|
109
109
|
overflow: hidden;
|
|
110
110
|
|
|
@@ -115,7 +115,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
115
115
|
overflow: hidden;
|
|
116
116
|
text-overflow: ellipsis;
|
|
117
117
|
}
|
|
118
|
-
`,
|
|
118
|
+
`,Sn=i.img`
|
|
119
119
|
flex: none;
|
|
120
120
|
display: block;
|
|
121
121
|
width: 14px;
|
|
@@ -170,17 +170,17 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
170
170
|
height: 22px;
|
|
171
171
|
color: ${t.colors.brandViolet};
|
|
172
172
|
}
|
|
173
|
-
`,
|
|
173
|
+
`,En=i.div`
|
|
174
174
|
margin-top: 16px;
|
|
175
175
|
padding: 16px;
|
|
176
176
|
border-radius: 12px;
|
|
177
177
|
background: ${t.colors.promptLilac};
|
|
178
|
-
`,
|
|
178
|
+
`,Tn=i.div`
|
|
179
179
|
font-family: ${t.font.sans};
|
|
180
180
|
font-weight: 700;
|
|
181
181
|
font-size: 16px;
|
|
182
182
|
color: ${t.colors.text};
|
|
183
|
-
`,
|
|
183
|
+
`,Rn=i.p`
|
|
184
184
|
margin: 8px 0 16px;
|
|
185
185
|
font-family: ${t.font.sans};
|
|
186
186
|
font-size: 14px;
|
|
@@ -196,7 +196,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
196
196
|
-webkit-background-clip: text;
|
|
197
197
|
color: transparent;
|
|
198
198
|
}
|
|
199
|
-
`,
|
|
199
|
+
`,_n=i.label`
|
|
200
200
|
display: flex;
|
|
201
201
|
align-items: center;
|
|
202
202
|
gap: 8px;
|
|
@@ -211,12 +211,12 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
211
211
|
&:focus-within {
|
|
212
212
|
border-color: ${t.colors.magenta};
|
|
213
213
|
}
|
|
214
|
-
`,
|
|
214
|
+
`,In=i.span`
|
|
215
215
|
flex: none;
|
|
216
216
|
font-family: ${t.font.sans};
|
|
217
217
|
font-size: 18px;
|
|
218
218
|
color: ${t.colors.muted2};
|
|
219
|
-
`,
|
|
219
|
+
`,Ln=i.input`
|
|
220
220
|
flex: 0 1 auto;
|
|
221
221
|
min-width: 0;
|
|
222
222
|
border: 0;
|
|
@@ -231,7 +231,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
231
231
|
color: ${t.colors.muted2};
|
|
232
232
|
font-weight: 400;
|
|
233
233
|
}
|
|
234
|
-
`,
|
|
234
|
+
`,Nn=i.span`
|
|
235
235
|
flex: none;
|
|
236
236
|
font-family: ${t.font.sans};
|
|
237
237
|
font-size: 16px;
|
|
@@ -266,7 +266,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
266
266
|
cursor: not-allowed;
|
|
267
267
|
opacity: 0.5;
|
|
268
268
|
}
|
|
269
|
-
`,
|
|
269
|
+
`,An=i.div`
|
|
270
270
|
display: flex;
|
|
271
271
|
flex: 1;
|
|
272
272
|
flex-direction: column;
|
|
@@ -274,36 +274,36 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
274
274
|
justify-content: center;
|
|
275
275
|
gap: 32px;
|
|
276
276
|
padding: 32px 0 8px;
|
|
277
|
-
`,
|
|
277
|
+
`,zn=i.img`
|
|
278
278
|
width: 61px;
|
|
279
279
|
height: 61px;
|
|
280
|
-
`,
|
|
280
|
+
`,Mn=i.div`
|
|
281
281
|
display: flex;
|
|
282
282
|
flex-direction: column;
|
|
283
283
|
align-items: center;
|
|
284
284
|
gap: 8px;
|
|
285
285
|
width: 100%;
|
|
286
|
-
`,
|
|
286
|
+
`,Wn=i.div`
|
|
287
287
|
font-family: ${t.font.sans};
|
|
288
288
|
font-weight: 700;
|
|
289
289
|
font-size: 20px;
|
|
290
290
|
line-height: 1.6;
|
|
291
291
|
color: ${t.colors.text2};
|
|
292
292
|
text-align: center;
|
|
293
|
-
`,
|
|
293
|
+
`,Bn=i.p`
|
|
294
294
|
max-width: 400px;
|
|
295
295
|
font-family: ${t.font.sans};
|
|
296
296
|
font-size: 14px;
|
|
297
297
|
line-height: 1.57;
|
|
298
298
|
color: ${t.colors.muted};
|
|
299
299
|
text-align: center;
|
|
300
|
-
`,
|
|
300
|
+
`,Pn=i.div`
|
|
301
301
|
display: flex;
|
|
302
302
|
align-items: center;
|
|
303
303
|
justify-content: center;
|
|
304
304
|
gap: 8px;
|
|
305
305
|
width: 100%;
|
|
306
|
-
`,
|
|
306
|
+
`,Fn=i.div`
|
|
307
307
|
flex: 1;
|
|
308
308
|
max-width: 400px;
|
|
309
309
|
height: 10px;
|
|
@@ -335,13 +335,13 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
335
335
|
animation: none;
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
|
-
`,
|
|
338
|
+
`,Un=i.span`
|
|
339
339
|
flex: none;
|
|
340
340
|
font-family: ${t.font.sans};
|
|
341
341
|
font-size: 16px;
|
|
342
342
|
line-height: 22px;
|
|
343
343
|
color: ${t.colors.text2};
|
|
344
|
-
`,
|
|
344
|
+
`,Hn=i.div`
|
|
345
345
|
display: flex;
|
|
346
346
|
flex-direction: column;
|
|
347
347
|
align-items: center;
|
|
@@ -350,7 +350,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
350
350
|
border-radius: 12px;
|
|
351
351
|
background: #e2f5ea;
|
|
352
352
|
text-align: center;
|
|
353
|
-
`,
|
|
353
|
+
`,On=i.div`
|
|
354
354
|
display: grid;
|
|
355
355
|
place-items: center;
|
|
356
356
|
width: 56px;
|
|
@@ -363,7 +363,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
363
363
|
width: 30px;
|
|
364
364
|
height: 30px;
|
|
365
365
|
}
|
|
366
|
-
`,
|
|
366
|
+
`,Dn=i.p`
|
|
367
367
|
margin: 0;
|
|
368
368
|
font-family: ${t.font.sans};
|
|
369
369
|
font-size: 16px;
|
|
@@ -402,7 +402,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
402
402
|
outline: 2px solid ${t.colors.accent};
|
|
403
403
|
outline-offset: 2px;
|
|
404
404
|
}
|
|
405
|
-
`,
|
|
405
|
+
`,Gn=i.a`
|
|
406
406
|
flex: 1;
|
|
407
407
|
display: inline-flex;
|
|
408
408
|
align-items: center;
|
|
@@ -458,10 +458,10 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
458
458
|
color: ${t.colors.accent};
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
`;function Gn({name:s,priceCredits:o,onClose:r}){const{session:d}=Oe(),{data:h,isError:f}=kt(d),l=St(),m=He(),[c,g]=u.useState("confirm"),[p,b]=u.useState(""),[C,w]=u.useState(null),[$,v]=u.useState(!1),[x,k]=u.useState("preparing"),L=u.useRef(!1),T=p.trim().toLowerCase()===s.toLowerCase(),N=c==="completing",M=o!=null?ve(o):"—",B=o==null,W=h==null?void 0:h.credits,P=o!=null&&W!=null?o-W:0,S=P>0,F=B?n("names.priceUnavailable"):S?n("names.insufficientCredits",{credits:ve(P)}):null;u.useEffect(()=>{const y=G=>{G.key==="Escape"&&!N&&r()};document.addEventListener("keydown",y);const D=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",y),document.body.style.overflow=D}},[N,r]);async function R(){if(!(!d||!T||B||S||L.current)){L.current=!0,g("completing"),w(null),k("preparing");try{const y=await dn({name:s,identity:d.identity,signer:d.signer,onProgress:k});oe("Shop Completed Purchase",{items:[{item_id:null,contract_address:null,token_id:null,price_usd:Le(o??0),category:"name",is_smart:!1}],purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:o??null,value_usd:Le(o??0),transaction_hash:y.originTxHash??null,settlement:y.status}),l.invalidateQueries({queryKey:["usd-balance"]}),l.invalidateQueries({queryKey:["my-assets"]}),g(y.status==="registered"?"success":"pending")}catch(y){oe(_t(y)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:Rt(y),purchase_type:"name"});const D=y instanceof Ce,G=y instanceof $e;w(y instanceof ke?n("names.errorRouteCost"):D?n("names.errorNotRegistered"):G?n("names.errorSettlementUnknown"):(y==null?void 0:y.message)||n("names.errorGeneric")),v(D||G),g("error")}finally{L.current=!1}}}const _=c!=="success"&&c!=="pending",j=Et(d==null?void 0:d.providerType),A=j?2:1,z=j&&(x==="preparing"||x==="awaiting-confirmation"),I=z?1:A,ae=z?n("names.confirming"):n("names.completing"),U=x==="registering"?n("names.processingRegistering"):null;return e.jsx(wn,{onClick:N?void 0:r,role:"presentation",children:e.jsxs(vn,{role:"dialog","aria-modal":"true","aria-label":n("names.buyTitle"),onClick:y=>y.stopPropagation(),children:[_&&e.jsxs(e.Fragment,{children:[e.jsxs(ce,{children:[e.jsx(de,{children:c==="error"?n("names.errorTitle"):n("names.buyTitle")}),e.jsx(he,{onClick:r,disabled:N,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(O,{})," ",le(h,f)]}),e.jsx(ue,{})]}),(c==="confirm"||c==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs(fe,{children:[e.jsx(Me,{"aria-hidden":!0,children:"@"}),e.jsxs(me,{children:[e.jsxs(xe,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(be,{children:[e.jsx(O,{}),M]})]}),c==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(we,{children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsx("span",{children:C})]}),$?e.jsx(ye,{onClick:r,children:n("names.errorSpentDismiss")}):e.jsx(ye,{onClick:()=>g("confirm"),children:n("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(Sn,{children:[e.jsx(En,{children:n("names.confirmTitle")}),e.jsx(Tn,{dangerouslySetInnerHTML:{__html:n("names.confirmBody",{name:`<b>@${qn(s)}</b>`})}}),e.jsxs(Rn,{children:[e.jsx(_n,{"aria-hidden":!0,children:"@"}),e.jsx(In,{value:p,onChange:y=>b(y.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":n("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(p.length,8)}ch`}}),e.jsx(Ln,{children:".dcl.eth"})]})]}),F?e.jsxs(we,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsx("span",{children:F})]}):null,e.jsx(ye,{onClick:()=>void R(),disabled:!T||!d||B||S,children:n("names.buyCta")})]})]}),c==="completing"&&e.jsxs(Nn,{children:[e.jsx(An,{src:Tt,alt:"",width:61,height:61}),e.jsxs(zn,{children:[e.jsx(Mn,{children:ae}),e.jsxs(Bn,{children:[e.jsx(Pn,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(Fn,{"data-testid":"name-progress-count",children:`${I}/${A}`})]}),U?e.jsx(Wn,{children:U}):null]})]}),c==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs(ce,{children:[e.jsx(de,{children:n("names.pendingHeaderTitle")}),e.jsx(he,{onClick:r,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(O,{})," ",le(h,f)]}),e.jsx(ue,{}),e.jsxs(we,{"data-tone":"info",children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("b",{children:n("names.pendingBannerBold")})," ",n("names.pendingBannerRest")]})]}),e.jsxs(fe,{style:{marginTop:20},children:[e.jsx(Me,{"aria-hidden":!0,children:"@"}),e.jsxs(me,{children:[e.jsxs(xe,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(be,{children:[e.jsx(O,{}),M]})]}),e.jsx(We,{children:e.jsx(Be,{onClick:()=>{r(),m("/my-items")},children:n("names.myItems")})})]}),c==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(ce,{children:[e.jsx(de,{children:n("names.successHeaderTitle")}),e.jsx(he,{onClick:r,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(O,{})," ",le(h,f)]}),e.jsx(ue,{}),e.jsxs(Un,{children:[e.jsx(Hn,{"aria-hidden":!0,children:e.jsx(E,{name:"check"})}),e.jsxs(On,{children:[e.jsx("b",{children:n("names.successBannerBold")})," ",n("names.successBannerRest")]})]}),e.jsxs(fe,{style:{marginTop:20},children:[e.jsxs(jn,{"data-testid":"name-success-tile",children:[e.jsx(Cn,{src:Jt,alt:"","aria-hidden":!0,width:47,height:47}),e.jsxs($n,{children:[e.jsx("span",{"aria-hidden":!0,children:s}),e.jsx(kn,{src:bn,alt:"","aria-hidden":!0,width:14,height:14})]})]}),e.jsxs(me,{children:[e.jsxs(xe,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(be,{children:[e.jsx(O,{}),M]})]}),e.jsxs(We,{children:[e.jsx(Be,{onClick:()=>{r(),m("/my-items")},children:n("names.myItems")}),e.jsx(Dn,{href:V.profileUrl,target:"_blank",rel:"noopener noreferrer",children:n("names.assignToAvatar")})]})]})]})})}function qn(s){return s.replace(/[&<>"']/g,o=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[o])}const Vn="https://cdn.decentraland.org/@dcl/shop/1.11.3-33096177368.commit-6f0f3de/_assets/identity-icon-C8yAW_Gq.svg",Zn="https://cdn.decentraland.org/@dcl/shop/1.11.3-33096177368.commit-6f0f3de/_assets/world-icon-6xQ-PmmW.svg",Qn="https://cdn.decentraland.org/@dcl/shop/1.11.3-33096177368.commit-6f0f3de/_assets/invite-icon-Bz6lCTuB.svg",Kn="data:image/svg+xml,%3csvg%20width='55.6797'%20height='63.6174'%20viewBox='0%200%2055.6797%2063.6174'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Vote'%3e%3cpath%20id='Vector'%20d='M0.055012%2039.1045C1.61191%2039.4989%202.83757%2039.3938%204.4307%2039.392L8.27108%2039.3878L20.7762%2039.3883L42.8819%2039.3904L50.0954%2039.3907C51.793%2039.3907%2054.0562%2039.5509%2055.6466%2039.0843C55.5909%2040.7931%2055.647%2042.8581%2055.6469%2044.5864L55.6479%2055.616L55.6559%2059.5618C55.6583%2060.6219%2055.8213%2061.9838%2055.261%2062.8837C55.2205%2062.9265%2055.1794%2062.9688%2055.1377%2063.0104C54.7986%2063.3482%2054.3791%2063.5594%2053.9021%2063.5761C52.0714%2063.642%2050.1544%2063.6097%2048.3241%2063.6078L37.4452%2063.6066L2.97352%2063.6103C2.2022%2063.6084%201.15943%2063.6718%200.589171%2063.0576C-0.204857%2062.2037%200.0327979%2060.3244%200.0349529%2059.1687L0.0414734%2054.3929C0.0413119%2049.3191%20-0.00749456%2044.1727%200.055012%2039.1045Z'%20fill='white'%20fill-opacity='0.8'/%3e%3cpath%20id='Subtract'%20d='M37.1168%200.00495927C38.1773%200.00461149%2039.2888%20-0.0284991%2040.3433%200.0811311C41.0714%200.15695%2041.7266%200.914583%2041.7857%201.63484C41.853%202.45491%2041.8268%203.31926%2041.8258%204.15144L41.8189%208.70418L41.8199%2023.9639L40.1099%2023.9659L13.8726%2023.963L13.8678%209.0909L13.8648%204.29793C13.8644%202.52652%2013.3942%200.34203%2015.6754%200.0342561C15.8907%200.016712%2016.237%200.0120998%2016.4557%200.0117952C21.6059%200.00480262%2026.761%200.0117634%2031.9107%200.00788896L37.1168%200.00495927ZM33.3834%206.17293C32.439%206.55612%2031.0531%208.12922%2030.3014%208.88191L25.8297%2013.3634C25.3537%2012.824%2023.3455%2010.7605%2022.8209%2010.4239C22.5581%2010.2549%2022.2566%2010.1546%2021.9449%2010.1329C21.4563%2010.1008%2020.9754%2010.2879%2020.6139%2010.6134C20.2442%2010.9428%2020.0227%2011.4077%2020.0006%2011.9024C19.9561%2013.0748%2021.3406%2014.1198%2022.1256%2014.8868C22.9429%2015.714%2024.1669%2017.1028%2025.1168%2017.67C26.1632%2018.2949%2027.3471%2017.2145%2027.9723%2016.4942C30.25%2014.2025%2032.5393%2011.9456%2034.8101%209.64949C35.2937%209.16062%2035.7138%208.69126%2035.6851%207.96199C35.6419%206.86558%2034.7821%206.09682%2033.6959%206.14656C33.5914%206.15085%2033.4872%206.16001%2033.3834%206.17293Z'%20fill='%23FF7439'/%3e%3cpath%20id='Vector_2'%20d='M45.5498%2015.976C46.6399%2015.986%2049.9504%2015.7705%2050.7361%2016.241C51.0104%2016.4053%2051.2831%2016.6446%2051.4181%2016.9397C51.892%2017.9763%2052.1015%2019.357%2052.3802%2020.4819L54.0582%2027.2308C54.5046%2028.9073%2054.9023%2030.6043%2055.3338%2032.2824C55.6029%2033.329%2055.9417%2034.4293%2054.9705%2035.2255C54.8158%2035.359%2054.4427%2035.5934%2054.2329%2035.6091C52.7731%2035.7184%2051.1693%2035.6701%2049.7108%2035.6679L39.4635%2035.6649L14.5239%2035.6632C10.471%2035.6631%206.41808%2035.6665%202.36531%2035.6698C1.79359%2035.6657%201.33794%2035.6604%200.844568%2035.337C-0.57365%2034.4073%200.381076%2032.2112%200.72189%2030.8501L1.93462%2025.9936L3.28579%2020.566C3.53371%2019.5688%203.77194%2018.5694%204.04289%2017.5781C4.30559%2016.6172%204.74298%2016.1492%205.73966%2015.9892C7.15095%2015.9419%208.72017%2015.9778%2010.1434%2015.9809L10.1451%2023.9585C7.37011%2024.097%207.74242%2027.5535%209.84963%2027.6469C11.6268%2027.7258%2013.6164%2027.6909%2015.4098%2027.691L26.229%2027.6915L39.1339%2027.691L43.273%2027.6909C44.748%2027.6909%2047.2174%2028.0848%2047.3773%2025.9908C47.4212%2025.4807%2047.2565%2024.9745%2046.9209%2024.5879C46.5265%2024.141%2046.1143%2024.0046%2045.5418%2023.9673L45.5498%2015.976Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",Jn=i.div`
|
|
461
|
+
`;function qn({name:s,priceCredits:o,onClose:r}){const{session:d}=Oe(),{data:h,isError:x}=St(d),l=Et(),u=He(),[c,p]=m.useState("confirm"),[f,w]=m.useState(""),[j,$]=m.useState(null),[C,g]=m.useState(!1),[b,S]=m.useState("preparing"),L=m.useRef(!1),T=f.trim().toLowerCase()===s.toLowerCase(),k=c==="completing",W=o!=null?ve(o):"—",B=o==null,z=h==null?void 0:h.credits,P=o!=null&&z!=null?o-z:0,N=P>0,A=B?n("names.priceUnavailable"):N?n("names.insufficientCredits",{credits:ve(P)}):null;m.useEffect(()=>{const y=D=>{D.key==="Escape"&&!k&&r()};document.addEventListener("keydown",y);const U=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",y),document.body.style.overflow=U}},[k,r]);async function F(){if(!(!d||!T||B||N||L.current)){L.current=!0,p("completing"),$(null),S("preparing");try{const y=await hn({name:s,identity:d.identity,signer:d.signer,onProgress:S});oe("Shop Completed Purchase",{items:[{item_id:null,contract_address:null,token_id:null,price_usd:Le(o??0),category:"name",is_smart:!1}],purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:o??null,value_usd:Le(o??0),transaction_hash:y.originTxHash??null,settlement:y.status}),l.invalidateQueries({queryKey:["usd-balance"]}),l.invalidateQueries({queryKey:["my-assets"]}),p(y.status==="registered"?"success":"pending")}catch(y){oe(It(y)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:_t(y),purchase_type:"name"});const U=y instanceof Ce,D=y instanceof $e;$(y instanceof ke?n("names.errorRouteCost"):U?n("names.errorNotRegistered"):D?n("names.errorSettlementUnknown"):(y==null?void 0:y.message)||n("names.errorGeneric")),g(U||D),p("error")}finally{L.current=!1}}}const R=c!=="success"&&c!=="pending",v=Tt(d==null?void 0:d.providerType),I=v?2:1,M=v&&(b==="preparing"||b==="awaiting-confirmation"),_=M?1:I,ae=M?n("names.confirming"):n("names.completing"),Z=b==="registering"?n("names.processingRegistering"):null;return e.jsx(vn,{onClick:k?void 0:r,role:"presentation",children:e.jsxs(jn,{role:"dialog","aria-modal":"true","aria-label":n("names.buyTitle"),onClick:y=>y.stopPropagation(),children:[R&&e.jsxs(e.Fragment,{children:[e.jsxs(ce,{children:[e.jsx(de,{children:c==="error"?n("names.errorTitle"):n("names.buyTitle")}),e.jsx(he,{onClick:r,disabled:k,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(O,{})," ",le(h,x)]}),e.jsx(ue,{})]}),(c==="confirm"||c==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs(fe,{children:[e.jsx(Me,{"aria-hidden":!0,children:"@"}),e.jsxs(me,{children:[e.jsxs(xe,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(be,{children:[e.jsx(O,{}),W]})]}),c==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(we,{children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsx("span",{children:j})]}),C?e.jsx(ye,{onClick:r,children:n("names.errorSpentDismiss")}):e.jsx(ye,{onClick:()=>p("confirm"),children:n("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(En,{children:[e.jsx(Tn,{children:n("names.confirmTitle")}),e.jsx(Rn,{dangerouslySetInnerHTML:{__html:n("names.confirmBody",{name:`<b>@${Vn(s)}</b>`})}}),e.jsxs(_n,{children:[e.jsx(In,{"aria-hidden":!0,children:"@"}),e.jsx(Ln,{value:f,onChange:y=>w(y.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":n("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(f.length,8)}ch`}}),e.jsx(Nn,{children:".dcl.eth"})]})]}),A?e.jsxs(we,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsx("span",{children:A})]}):null,e.jsx(ye,{onClick:()=>void F(),disabled:!T||!d||B||N,children:n("names.buyCta")})]})]}),c==="completing"&&e.jsxs(An,{children:[e.jsx(zn,{src:Rt,alt:"",width:61,height:61}),e.jsxs(Mn,{children:[e.jsx(Wn,{children:ae}),e.jsxs(Pn,{children:[e.jsx(Fn,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(Un,{"data-testid":"name-progress-count",children:`${_}/${I}`})]}),Z?e.jsx(Bn,{children:Z}):null]})]}),c==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs(ce,{children:[e.jsx(de,{children:n("names.pendingHeaderTitle")}),e.jsx(he,{onClick:r,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(O,{})," ",le(h,x)]}),e.jsx(ue,{}),e.jsxs(we,{"data-tone":"info",children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("b",{children:n("names.pendingBannerBold")})," ",n("names.pendingBannerRest")]})]}),e.jsxs(fe,{style:{marginTop:20},children:[e.jsx(Me,{"aria-hidden":!0,children:"@"}),e.jsxs(me,{children:[e.jsxs(xe,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(be,{children:[e.jsx(O,{}),W]})]}),e.jsx(We,{children:e.jsx(Be,{onClick:()=>{r(),u("/my-items")},children:n("names.myItems")})})]}),c==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(ce,{children:[e.jsx(de,{children:n("names.successHeaderTitle")}),e.jsx(he,{onClick:r,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(O,{})," ",le(h,x)]}),e.jsx(ue,{}),e.jsxs(Hn,{children:[e.jsx(On,{"aria-hidden":!0,children:e.jsx(E,{name:"check"})}),e.jsxs(Dn,{children:[e.jsx("b",{children:n("names.successBannerBold")})," ",n("names.successBannerRest")]})]}),e.jsxs(fe,{style:{marginTop:20},children:[e.jsxs(Cn,{"data-testid":"name-success-tile",children:[e.jsx($n,{src:Xt,alt:"","aria-hidden":!0,width:47,height:47}),e.jsxs(kn,{children:[e.jsx("span",{"aria-hidden":!0,children:s}),e.jsx(Sn,{src:yn,alt:"","aria-hidden":!0,width:14,height:14})]})]}),e.jsxs(me,{children:[e.jsxs(xe,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(be,{children:[e.jsx(O,{}),W]})]}),e.jsxs(We,{children:[e.jsx(Be,{onClick:()=>{r(),u("/my-items")},children:n("names.myItems")}),e.jsx(Gn,{href:q.profileUrl,target:"_blank",rel:"noopener noreferrer",children:n("names.assignToAvatar")})]})]})]})})}function Vn(s){return s.replace(/[&<>"']/g,o=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[o])}const Zn="https://cdn.decentraland.org/@dcl/shop/1.11.3/_assets/identity-icon-C8yAW_Gq.svg",Qn="https://cdn.decentraland.org/@dcl/shop/1.11.3/_assets/world-icon-6xQ-PmmW.svg",Kn="https://cdn.decentraland.org/@dcl/shop/1.11.3/_assets/invite-icon-Bz6lCTuB.svg",Jn="data:image/svg+xml,%3csvg%20width='55.6797'%20height='63.6174'%20viewBox='0%200%2055.6797%2063.6174'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Vote'%3e%3cpath%20id='Vector'%20d='M0.055012%2039.1045C1.61191%2039.4989%202.83757%2039.3938%204.4307%2039.392L8.27108%2039.3878L20.7762%2039.3883L42.8819%2039.3904L50.0954%2039.3907C51.793%2039.3907%2054.0562%2039.5509%2055.6466%2039.0843C55.5909%2040.7931%2055.647%2042.8581%2055.6469%2044.5864L55.6479%2055.616L55.6559%2059.5618C55.6583%2060.6219%2055.8213%2061.9838%2055.261%2062.8837C55.2205%2062.9265%2055.1794%2062.9688%2055.1377%2063.0104C54.7986%2063.3482%2054.3791%2063.5594%2053.9021%2063.5761C52.0714%2063.642%2050.1544%2063.6097%2048.3241%2063.6078L37.4452%2063.6066L2.97352%2063.6103C2.2022%2063.6084%201.15943%2063.6718%200.589171%2063.0576C-0.204857%2062.2037%200.0327979%2060.3244%200.0349529%2059.1687L0.0414734%2054.3929C0.0413119%2049.3191%20-0.00749456%2044.1727%200.055012%2039.1045Z'%20fill='white'%20fill-opacity='0.8'/%3e%3cpath%20id='Subtract'%20d='M37.1168%200.00495927C38.1773%200.00461149%2039.2888%20-0.0284991%2040.3433%200.0811311C41.0714%200.15695%2041.7266%200.914583%2041.7857%201.63484C41.853%202.45491%2041.8268%203.31926%2041.8258%204.15144L41.8189%208.70418L41.8199%2023.9639L40.1099%2023.9659L13.8726%2023.963L13.8678%209.0909L13.8648%204.29793C13.8644%202.52652%2013.3942%200.34203%2015.6754%200.0342561C15.8907%200.016712%2016.237%200.0120998%2016.4557%200.0117952C21.6059%200.00480262%2026.761%200.0117634%2031.9107%200.00788896L37.1168%200.00495927ZM33.3834%206.17293C32.439%206.55612%2031.0531%208.12922%2030.3014%208.88191L25.8297%2013.3634C25.3537%2012.824%2023.3455%2010.7605%2022.8209%2010.4239C22.5581%2010.2549%2022.2566%2010.1546%2021.9449%2010.1329C21.4563%2010.1008%2020.9754%2010.2879%2020.6139%2010.6134C20.2442%2010.9428%2020.0227%2011.4077%2020.0006%2011.9024C19.9561%2013.0748%2021.3406%2014.1198%2022.1256%2014.8868C22.9429%2015.714%2024.1669%2017.1028%2025.1168%2017.67C26.1632%2018.2949%2027.3471%2017.2145%2027.9723%2016.4942C30.25%2014.2025%2032.5393%2011.9456%2034.8101%209.64949C35.2937%209.16062%2035.7138%208.69126%2035.6851%207.96199C35.6419%206.86558%2034.7821%206.09682%2033.6959%206.14656C33.5914%206.15085%2033.4872%206.16001%2033.3834%206.17293Z'%20fill='%23FF7439'/%3e%3cpath%20id='Vector_2'%20d='M45.5498%2015.976C46.6399%2015.986%2049.9504%2015.7705%2050.7361%2016.241C51.0104%2016.4053%2051.2831%2016.6446%2051.4181%2016.9397C51.892%2017.9763%2052.1015%2019.357%2052.3802%2020.4819L54.0582%2027.2308C54.5046%2028.9073%2054.9023%2030.6043%2055.3338%2032.2824C55.6029%2033.329%2055.9417%2034.4293%2054.9705%2035.2255C54.8158%2035.359%2054.4427%2035.5934%2054.2329%2035.6091C52.7731%2035.7184%2051.1693%2035.6701%2049.7108%2035.6679L39.4635%2035.6649L14.5239%2035.6632C10.471%2035.6631%206.41808%2035.6665%202.36531%2035.6698C1.79359%2035.6657%201.33794%2035.6604%200.844568%2035.337C-0.57365%2034.4073%200.381076%2032.2112%200.72189%2030.8501L1.93462%2025.9936L3.28579%2020.566C3.53371%2019.5688%203.77194%2018.5694%204.04289%2017.5781C4.30559%2016.6172%204.74298%2016.1492%205.73966%2015.9892C7.15095%2015.9419%208.72017%2015.9778%2010.1434%2015.9809L10.1451%2023.9585C7.37011%2024.097%207.74242%2027.5535%209.84963%2027.6469C11.6268%2027.7258%2013.6164%2027.6909%2015.4098%2027.691L26.229%2027.6915L39.1339%2027.691L43.273%2027.6909C44.748%2027.6909%2047.2174%2028.0848%2047.3773%2025.9908C47.4212%2025.4807%2047.2565%2024.9745%2046.9209%2024.5879C46.5265%2024.141%2046.1143%2024.0046%2045.5418%2023.9673L45.5498%2015.976Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",Xn=i.div`
|
|
462
462
|
width: 100%;
|
|
463
463
|
min-width: 0;
|
|
464
|
-
`,
|
|
464
|
+
`,Yn=i.nav`
|
|
465
465
|
display: flex;
|
|
466
466
|
align-items: center;
|
|
467
467
|
gap: 6px;
|
|
@@ -470,7 +470,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
470
470
|
font-size: 12px;
|
|
471
471
|
line-height: 1;
|
|
472
472
|
color: ${t.colors.gray4};
|
|
473
|
-
`,
|
|
473
|
+
`,es=i.button`
|
|
474
474
|
border: 0;
|
|
475
475
|
background: none;
|
|
476
476
|
padding: 0;
|
|
@@ -486,10 +486,10 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
486
486
|
outline: 2px solid ${t.colors.white};
|
|
487
487
|
outline-offset: 2px;
|
|
488
488
|
}
|
|
489
|
-
`,
|
|
489
|
+
`,ts=i.span`
|
|
490
490
|
font-weight: 700;
|
|
491
491
|
color: ${t.colors.softWhite};
|
|
492
|
-
`,
|
|
492
|
+
`,ns=i.div`
|
|
493
493
|
display: flex;
|
|
494
494
|
flex-direction: column;
|
|
495
495
|
gap: 48px;
|
|
@@ -499,7 +499,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
499
499
|
gap: 32px;
|
|
500
500
|
padding-bottom: 32px;
|
|
501
501
|
}
|
|
502
|
-
`,
|
|
502
|
+
`,ss=i.div`
|
|
503
503
|
position: relative;
|
|
504
504
|
border: 1px solid ${t.colors.magenta};
|
|
505
505
|
border-radius: 24px;
|
|
@@ -516,12 +516,12 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
516
516
|
padding: 40px 20px;
|
|
517
517
|
gap: 28px;
|
|
518
518
|
}
|
|
519
|
-
`,
|
|
519
|
+
`,is=i.div`
|
|
520
520
|
display: flex;
|
|
521
521
|
flex-direction: column;
|
|
522
522
|
align-items: center;
|
|
523
523
|
gap: 12px;
|
|
524
|
-
`,
|
|
524
|
+
`,os=i.h1`
|
|
525
525
|
margin: 0;
|
|
526
526
|
font-family: ${t.font.sans};
|
|
527
527
|
font-weight: 600;
|
|
@@ -532,7 +532,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
532
532
|
${t.media.maxWidth("mobile")} {
|
|
533
533
|
font-size: 26px;
|
|
534
534
|
}
|
|
535
|
-
`,
|
|
535
|
+
`,rs=i.p`
|
|
536
536
|
margin: 0;
|
|
537
537
|
max-width: 760px;
|
|
538
538
|
font-family: ${t.font.sans};
|
|
@@ -544,14 +544,14 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
544
544
|
${t.media.maxWidth("mobile")} {
|
|
545
545
|
font-size: 16px;
|
|
546
546
|
}
|
|
547
|
-
`,
|
|
547
|
+
`,as=i.div`
|
|
548
548
|
width: min(785px, 100%);
|
|
549
549
|
display: flex;
|
|
550
550
|
flex-direction: column;
|
|
551
551
|
gap: 12px;
|
|
552
|
-
`,
|
|
552
|
+
`,ls=i.div`
|
|
553
553
|
position: relative;
|
|
554
|
-
`,
|
|
554
|
+
`,cs=i("div",Pt("invalid"))`
|
|
555
555
|
display: flex;
|
|
556
556
|
align-items: center;
|
|
557
557
|
gap: 8px;
|
|
@@ -569,7 +569,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
569
569
|
${t.media.maxWidth("mobile")} {
|
|
570
570
|
border-radius: 16px;
|
|
571
571
|
}
|
|
572
|
-
`,
|
|
572
|
+
`,ds=i.span`
|
|
573
573
|
position: absolute;
|
|
574
574
|
left: -9999px;
|
|
575
575
|
top: 0;
|
|
@@ -591,7 +591,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
591
591
|
${t.media.maxWidth("mobile")} {
|
|
592
592
|
font-size: 16px;
|
|
593
593
|
}
|
|
594
|
-
`,
|
|
594
|
+
`,hs=i.div`
|
|
595
595
|
position: absolute;
|
|
596
596
|
top: calc(100% + 8px);
|
|
597
597
|
left: 0;
|
|
@@ -629,9 +629,9 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
629
629
|
${t.media.maxWidth("mobile")} {
|
|
630
630
|
margin-left: 0;
|
|
631
631
|
}
|
|
632
|
-
`,
|
|
632
|
+
`,ps=i(Ze)`
|
|
633
633
|
color: #ec303a;
|
|
634
|
-
`,
|
|
634
|
+
`,us=i.label`
|
|
635
635
|
flex: 1;
|
|
636
636
|
min-width: 0;
|
|
637
637
|
display: flex;
|
|
@@ -639,7 +639,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
639
639
|
gap: 0;
|
|
640
640
|
cursor: text;
|
|
641
641
|
overflow: hidden;
|
|
642
|
-
`,
|
|
642
|
+
`,fs=i.span`
|
|
643
643
|
flex: none;
|
|
644
644
|
margin-right: 8px;
|
|
645
645
|
font-family: ${t.font.sans};
|
|
@@ -651,7 +651,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
651
651
|
${t.media.maxWidth("mobile")} {
|
|
652
652
|
font-size: 20px;
|
|
653
653
|
}
|
|
654
|
-
`,
|
|
654
|
+
`,ms=i.input`
|
|
655
655
|
flex: 0 1 auto;
|
|
656
656
|
min-width: 0;
|
|
657
657
|
max-width: 100%;
|
|
@@ -673,7 +673,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
673
673
|
${t.media.maxWidth("mobile")} {
|
|
674
674
|
font-size: 16px;
|
|
675
675
|
}
|
|
676
|
-
`,
|
|
676
|
+
`,xs=i.span`
|
|
677
677
|
flex: none;
|
|
678
678
|
/* Flush against the name: "yourname.dcl.eth" has to read as one address, and at 20px even a couple of
|
|
679
679
|
pixels here look like a space someone typed by mistake. */
|
|
@@ -690,7 +690,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
690
690
|
${t.media.maxWidth("mobile")} {
|
|
691
691
|
font-size: 16px;
|
|
692
692
|
}
|
|
693
|
-
`,
|
|
693
|
+
`,gs=i.span`
|
|
694
694
|
flex: none;
|
|
695
695
|
font-family: ${t.font.sans};
|
|
696
696
|
font-size: 14px;
|
|
@@ -736,7 +736,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
736
736
|
${t.media.maxWidth("mobile")} {
|
|
737
737
|
display: none;
|
|
738
738
|
}
|
|
739
|
-
`,
|
|
739
|
+
`,bs=i(Qe)`
|
|
740
740
|
display: none;
|
|
741
741
|
|
|
742
742
|
${t.media.maxWidth("mobile")} {
|
|
@@ -745,7 +745,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
745
745
|
height: 48px;
|
|
746
746
|
border-radius: 12px;
|
|
747
747
|
}
|
|
748
|
-
`,
|
|
748
|
+
`,ys=i.span`
|
|
749
749
|
display: inline-flex;
|
|
750
750
|
align-items: center;
|
|
751
751
|
gap: 4px;
|
|
@@ -756,7 +756,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
756
756
|
width: 13.26px;
|
|
757
757
|
height: 14px;
|
|
758
758
|
}
|
|
759
|
-
`,
|
|
759
|
+
`,ws=i.div`
|
|
760
760
|
display: flex;
|
|
761
761
|
align-items: center;
|
|
762
762
|
gap: 8px;
|
|
@@ -775,7 +775,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
775
775
|
height: 16px;
|
|
776
776
|
flex: none;
|
|
777
777
|
}
|
|
778
|
-
`,Y=i(
|
|
778
|
+
`,Y=i(ws)`
|
|
779
779
|
position: absolute;
|
|
780
780
|
top: calc(100% + 8px);
|
|
781
781
|
left: 0;
|
|
@@ -788,9 +788,9 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
788
788
|
position: static;
|
|
789
789
|
margin-top: 8px;
|
|
790
790
|
}
|
|
791
|
-
`,
|
|
791
|
+
`,vs=i(Ze)`
|
|
792
792
|
color: inherit;
|
|
793
|
-
`,
|
|
793
|
+
`,js=i.section`
|
|
794
794
|
display: flex;
|
|
795
795
|
flex-direction: column;
|
|
796
796
|
gap: 48px;
|
|
@@ -800,12 +800,12 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
800
800
|
gap: 32px;
|
|
801
801
|
padding: 0 20px;
|
|
802
802
|
}
|
|
803
|
-
`,
|
|
803
|
+
`,Cs=i.div`
|
|
804
804
|
display: flex;
|
|
805
805
|
flex-direction: column;
|
|
806
806
|
align-items: center;
|
|
807
807
|
gap: 24px;
|
|
808
|
-
|
|
808
|
+
`,$s=i.h2`
|
|
809
809
|
margin: 0;
|
|
810
810
|
text-align: center;
|
|
811
811
|
font-family: ${t.font.sans};
|
|
@@ -817,7 +817,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
817
817
|
${t.media.maxWidth("mobile")} {
|
|
818
818
|
font-size: 22px;
|
|
819
819
|
}
|
|
820
|
-
|
|
820
|
+
`,ks=i.p`
|
|
821
821
|
margin: 0;
|
|
822
822
|
max-width: 907px;
|
|
823
823
|
text-align: center;
|
|
@@ -830,7 +830,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
830
830
|
${t.media.maxWidth("mobile")} {
|
|
831
831
|
font-size: 16px;
|
|
832
832
|
}
|
|
833
|
-
`,
|
|
833
|
+
`,Ss=i.div`
|
|
834
834
|
display: grid;
|
|
835
835
|
grid-template-columns: repeat(4, 1fr);
|
|
836
836
|
gap: 24px;
|
|
@@ -884,7 +884,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
884
884
|
font-size: 14px;
|
|
885
885
|
line-height: 1.57;
|
|
886
886
|
color: ${t.colors.media};
|
|
887
|
-
`,
|
|
887
|
+
`,Es=i.span`
|
|
888
888
|
font-weight: 700;
|
|
889
889
|
color: ${t.colors.white};
|
|
890
890
|
`,Pe=i.a`
|
|
@@ -908,7 +908,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
908
908
|
width: 13px;
|
|
909
909
|
height: 13px;
|
|
910
910
|
}
|
|
911
|
-
`,
|
|
911
|
+
`,Ts=i.span`
|
|
912
912
|
position: absolute;
|
|
913
913
|
width: 1px;
|
|
914
914
|
height: 1px;
|
|
@@ -918,7 +918,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
918
918
|
clip: rect(0, 0, 0, 0);
|
|
919
919
|
white-space: nowrap;
|
|
920
920
|
border: 0;
|
|
921
|
-
`,
|
|
921
|
+
`,Rs="https://docs.decentraland.org/creator/worlds/about/",_s="https://governance.decentraland.org";function Fe(s){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(s)}`}function Is({onBack:s}){De({title:n("seo.names.title"),description:n("seo.names.description")});const{session:o,signIn:r}=Oe(),d=pn(),{data:h}=Ge(),x=h?qe(V,h):null,[l,u]=m.useState(""),[c,p]=m.useState("idle"),[f,w]=m.useState(!1),[j,$]=m.useState(!1),[C,g]=m.useState(()=>{var v;return typeof window<"u"&&!!((v=window.matchMedia)!=null&&v.call(window,"(prefers-reduced-motion: reduce)").matches)});m.useEffect(()=>{var M;const v=(M=window.matchMedia)==null?void 0:M.call(window,"(prefers-reduced-motion: reduce)");if(!v)return;const I=_=>g(_.matches);return v.addEventListener("change",I),()=>v.removeEventListener("change",I)},[]);const b=n("names.placeholderExamples"),S=m.useMemo(()=>b.split(",").map(v=>v.trim()).filter(Boolean),[b]),T=bn(S,!j&&!l&&!C)||n("names.inputPlaceholder"),k=m.useRef(null),[W,B]=m.useState(void 0);m.useLayoutEffect(()=>{k.current&&B(k.current.getBoundingClientRect().width)},[l,T]),m.useEffect(()=>{if(!Ae(l).ok){p(l.length===0?"idle":"invalid");return}p("checking");const I=new AbortController,M=setTimeout(()=>{(async()=>{try{const _=await on(l,{signal:I.signal});p(_)}catch(_){if((_==null?void 0:_.name)==="AbortError")return;p("error")}})()},400);return()=>{clearTimeout(M),I.abort()}},[l]);const z=Ae(l),P=z.ok&&(c==="available"||c==="error"),N=d&&P,A=!d&&P;function F(){if(N){if(!o){r();return}w(!0)}}const R=e.jsxs(e.Fragment,{children:[n("names.claim"),x!=null?e.jsxs(ys,{children:[e.jsx(O,{}),ve(x)]}):null]});return e.jsxs(Xn,{"data-testid":"names-page",children:[e.jsxs(Yn,{"aria-label":n("names.breadcrumbAria"),children:[e.jsx(es,{onClick:s,children:n("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(ts,{children:n("names.breadcrumbCurrent")})]}),e.jsxs(ns,{children:[e.jsxs(ss,{children:[e.jsxs(is,{children:[e.jsx(os,{children:n("names.heroTitle")}),e.jsx(rs,{children:n("names.heroSubtitle")})]}),e.jsxs(as,{children:[e.jsxs(ls,{"data-testid":"names-input-wrap",children:[e.jsxs(cs,{invalid:c==="taken",children:[e.jsxs(us,{children:[e.jsx(fs,{"aria-hidden":!0,children:"@"}),e.jsx(ms,{value:l,onChange:v=>u(tn(v.target.value)),placeholder:T,"aria-label":n("names.inputAria"),autoComplete:"off",spellCheck:!1,maxLength:re,onFocus:()=>$(!0),style:{width:W!=null?`${W}px`:void 0}}),e.jsx(ds,{ref:k,"aria-hidden":!0,"data-placeholder":!l||void 0,children:l||T}),e.jsx(xs,{children:n("names.suffix")})]}),l.length>0?e.jsxs(gs,{"aria-hidden":!0,children:[l.length,"/",re]}):null,e.jsx(Qe,{onClick:F,disabled:!N,"data-testid":"names-claim",children:R})]}),c==="taken"?e.jsxs(hs,{role:"status","data-testid":"names-taken",children:[e.jsx(E,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:n("names.taken")}),e.jsxs(ps,{href:Fe(l),target:"_blank",rel:"noopener noreferrer",children:[n("names.takenMakeOffer"),e.jsx(E,{name:"external-link",size:13,"aria-hidden":!0})]})]}):null,c==="checking"?e.jsx(Y,{tone:"muted",role:"status","data-testid":"names-checking",children:n("names.checking")}):A?e.jsxs(Y,{tone:"muted",role:"status","data-testid":"names-disabled",children:[e.jsx(E,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:n("names.registrationDisabled")}),e.jsxs(vs,{href:Fe(l),target:"_blank",rel:"noopener noreferrer",children:[n("names.registrationDisabledLink"),e.jsx(E,{name:"external-link",size:13,"aria-hidden":!0})]})]}):c==="error"?e.jsx(Y,{tone:"muted",role:"status",children:n("names.checkError")}):c==="invalid"&&!z.ok&&z.reason==="too-short"?e.jsx(Y,{tone:"muted",role:"status",children:n("names.tooShort",{min:Ve})}):null]}),e.jsx(bs,{onClick:F,disabled:!N,children:R}),e.jsx(Ts,{role:"status","aria-live":"polite",children:c==="available"?n("names.available",{name:l}):""})]})]}),e.jsxs(js,{children:[e.jsxs(Cs,{children:[e.jsx($s,{children:n("names.whyTitle")}),e.jsx(ks,{children:n("names.whyIntro")})]}),e.jsxs(Ss,{children:[e.jsxs(ee,{children:[e.jsx(te,{src:Zn,alt:""}),e.jsxs(ne,{children:[e.jsx(se,{children:n("names.why1Title")}),e.jsx(ie,{children:n("names.why1")})]})]}),e.jsxs(ee,{children:[e.jsx(te,{src:Qn,alt:""}),e.jsxs(ne,{children:[e.jsx(se,{children:n("names.why2Title")}),e.jsxs(ie,{children:[n("names.why2")," ",e.jsx(Es,{children:n("names.why2Address")})]}),e.jsxs(Pe,{href:Rs,target:"_blank",rel:"noopener noreferrer",children:[n("names.learnMore"),e.jsx(E,{name:"external-link","aria-hidden":!0})]})]})]}),e.jsxs(ee,{children:[e.jsx(te,{src:Kn,alt:""}),e.jsxs(ne,{children:[e.jsx(se,{children:n("names.why3Title")}),e.jsx(ie,{children:n("names.why3")})]})]}),e.jsxs(ee,{children:[e.jsx(te,{src:Jn,alt:""}),e.jsxs(ne,{children:[e.jsx(se,{children:n("names.why4Title")}),e.jsx(ie,{children:n("names.why4")}),e.jsxs(Pe,{href:_s,target:"_blank",rel:"noopener noreferrer",children:[n("names.learnMore"),e.jsx(E,{name:"external-link","aria-hidden":!0})]})]})]})]})]})]}),f?e.jsx(qn,{name:l,priceCredits:x,onClose:()=>w(!1)}):null]})}const Ls=i.p`
|
|
922
922
|
display: flex;
|
|
923
923
|
align-items: center;
|
|
924
924
|
gap: 10px;
|
|
@@ -934,5 +934,5 @@ import{r as u,b as He,j as e,u as et}from"./react-Cu6RTeaf.js";import{u as tt,s
|
|
|
934
934
|
background: rgba(211, 51, 51, 0.1);
|
|
935
935
|
color: ${t.colors.err};
|
|
936
936
|
}
|
|
937
|
-
`,Ue=48,
|
|
938
|
-
//# sourceMappingURL=Assets-
|
|
937
|
+
`,Ue=48,Ns=["all","on_sale","not_for_sale"],As=s=>s?"all":"on_sale";function ti(){const[s]=tt(),o=He(),r=(s.get("q")??"").trim().toLowerCase(),d=(s.get("q")??"").trim();De({title:d?n("seo.collectibles.searchTitle",{query:d}):n("seo.collectibles.title"),description:n("seo.collectibles.description")});const h=As(!!r),x=m.useMemo(()=>({category:"all",status:h,subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,sort:"newest"}),[h]),[l,u]=nt(x),{subCategory:c,rarities:p,priceMin:f,priceMax:w,smart:j,sort:$}=l,C=l.category,g=Ns.includes(l.status)?l.status:h;it(`${C}:${c??""}`);const[b,S]=m.useState(!1);m.useEffect(()=>{if(!b)return;const a=K=>{K.key==="Escape"&&S(!1)};document.addEventListener("keydown",a);const H=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",a),document.body.style.overflow=H}},[b]);const L=g==="on_sale",T=f&&!Number.isNaN(Number(f))?Number(f):void 0,k=w&&!Number.isNaN(Number(w))?Number(w):void 0,W=Lt(),B=c?Ft[c]:void 0,z=(Ie.find(a=>a.key===$)??Ie[0]).server,P={category:C,rarities:p.length?p:void 0,wearableCategories:B,minPriceCredits:T,maxPriceCredits:k,search:r||void 0,sortBy:z,isSmart:j||void 0,onSale:!0,listingType:W?void 0:"primary"},N={category:C,rarities:p.length?p:void 0,wearableCategories:B,search:r||void 0,sortBy:z,isWearableSmart:j||void 0,isOnSale:g==="not_for_sale"?!1:void 0},{items:A,total:F,isLoading:R,isPlaceholderData:v,error:I,hasNextPage:M,isFetchingNextPage:_,isFetchNextPageError:ae,fetchNextPage:Z}=Bt(L?["shop-items",P]:["catalog-items",N],a=>L?zt({...P,first:Ue,skip:a}):Mt({...N,first:Ue,skip:a}),{enabled:C!=="names"}),y=F,{data:U,isError:D,isPending:Ke}=Ge(),Je=a=>U&&a.manaWei?qe(a.manaWei,U):null,Xe=L&&Ke&&A.some(a=>a.source==="legacy"),Se=R||v||Xe,Ye=R?15:Math.max(A.length,1),Ee=m.useRef(null);m.useEffect(()=>{R||v||!r||Ee.current===r||(Ee.current=r,oe("Shop Searched",{query:r,result_count:y}))},[r,R,v,y]);const Q=m.useRef("__init__");m.useEffect(()=>{if(R||v)return;const a=JSON.stringify({category:C,subCategory:c,rarities:p,min:T,max:k,sort:$,status:g,smart:j});if(Q.current==="__init__"||Q.current===a){Q.current=a;return}Q.current=a,oe("Shop Applied Filter",{filters:{category:C,sub_category:c,rarities:p,min_price_credits:T??null,max_price_credits:k??null,status:g,smart:j,sort:$},result_count:y})},[C,c,p,T,k,$,g,j,R,v,y]);function Te(a){u({category:a,subCategory:null})}function Re(a){u({status:a})}function _e(a){u({rarities:p.includes(a)?p.filter(H=>H!==a):[...p,a]})}function et(){u(x)}const G=[];(T!=null||k!=null)&&G.push({key:"price",label:n("filter.price"),onRemove:()=>{u({priceMin:"",priceMax:""})}});for(const a of ot)p.includes(a)&&G.push({key:`rarity-${a}`,label:Nt(a),onRemove:()=>_e(a)});return j&&G.push({key:"smart",label:n("filter.smart"),onRemove:()=>u({smart:!1})}),g!==h&&G.push({key:"status",label:g==="all"?n("filter.statusAll"):g==="on_sale"?n("filter.onSale"):n("filter.notForSale"),onRemove:()=>Re(h)}),e.jsxs(rt,{"data-testid":"browse",children:[C!=="names"&&e.jsxs(e.Fragment,{children:[b?e.jsx(at,{onClick:()=>S(!1),"aria-hidden":!0}):null,e.jsxs(lt,{"data-open":b||void 0,"data-testid":"browse-sidebar",children:[e.jsxs(ct,{children:[e.jsx(dt,{children:n("assets.filters")}),e.jsx(ht,{onClick:()=>S(!1),"aria-label":n("assets.closeFilters"),children:"✕"})]}),e.jsx(pt,{children:e.jsx(ut,{category:C,subCategory:c,onCategory:Te,onSub:a=>u({subCategory:a}),priceMin:f,priceMax:w,onPriceMin:a=>u({priceMin:a}),onPriceMax:a=>u({priceMax:a}),rarities:p,onToggleRarity:_e,status:g,onStatus:Re,smart:j,onSmart:a=>u({smart:a})})}),e.jsx(ft,{children:e.jsx(mt,{type:"button",onClick:()=>S(!1),children:n("assets.showItems")})})]})]}),e.jsx(xt,{children:C==="names"?e.jsx(Is,{onBack:()=>Te("all")}):e.jsxs(e.Fragment,{children:[e.jsx(gt,{sort:$,onSort:a=>u({sort:a}),total:F,loading:R||v,query:r,onOpenFilters:()=>S(!0),chips:G,onClearChips:et}),D&&L&&A.some(a=>a.source==="legacy")?e.jsx(Ls,{"data-variant":"warn",children:n("assets.marketUnavailable")}):null,I?e.jsx(Ut,{message:n("assets.loadError"),testId:"browse-error"}):null,!Se&&A.length===0&&!I?e.jsx(At,{testId:"browse-empty",icon:st,title:n("assets.empty.title"),body:d?e.jsxs(e.Fragment,{children:[n("assets.empty.searchBefore"),e.jsx("b",{children:d}),n("assets.empty.searchAfter")]}):n("assets.empty.filters"),cta:{label:n("assets.empty.cta"),onClick:()=>o("/overview")}}):e.jsxs(e.Fragment,{children:[e.jsx(Yt,{"data-testid":"grid",children:Se?e.jsx(Ne,{count:Ye}):e.jsxs(e.Fragment,{children:[A.map(a=>{if(!L)return e.jsx(J,{item:a,mode:"view"},X(a));const H=a;if(H.source!=="legacy")return e.jsx(J,{item:a},X(a));const K=Je(H);return K==null?e.jsx(J,{item:a,mode:"view"},X(a)):e.jsx(J,{item:{...H,priceCredits:K}},X(a))}),_?e.jsx(Ne,{count:6}):null]})}),e.jsx(Wt,{hasNextPage:M,isFetching:_,isError:ae,onLoadMore:()=>void Z()})]})]})})]})}export{ti as Assets};
|
|
938
|
+
//# sourceMappingURL=Assets-P4H-lV4U.js.map
|