@dcl/shop 1.13.1-35194712201.commit-05f9320 → 1.13.1-35227702430.commit-7f36a79

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.
Files changed (432) hide show
  1. package/_assets/Activity-CHNYJKpW.js +400 -0
  2. package/_assets/{AnimatedBackground-BSM-rQuy.js → AnimatedBackground-CDDW5yOE.js} +6 -6
  3. package/_assets/{Assets-BrcTOhgS.js → Assets-CSRETZwJ.js} +83 -83
  4. package/_assets/{Cart-RtgqzQ97.js → Cart-WtUxECX0.js} +12 -12
  5. package/_assets/{Collection-BgorKKBL.js → Collection-0mDLFGqi.js} +10 -10
  6. package/_assets/{CollectionCarousel-Dug2ZFsp.js → CollectionCarousel-aWbnRslF.js} +48 -48
  7. package/_assets/{Confetti-DfJxZdWq.js → Confetti-qSvOdilZ.js} +4 -4
  8. package/_assets/{ConstantsUtil-B8YsR40N.js → ConstantsUtil-yxsFW7Qn.js} +2 -2
  9. package/_assets/{ContentClient-COddvv25.js → ContentClient-BkbChoni.js} +2 -2
  10. package/_assets/{Creator-DGqwvJJe.js → Creator-CX-NPM3l.js} +49 -49
  11. package/_assets/DeploymentBuilder-CVNQmpLh.js +4 -0
  12. package/_assets/{EmotePlaybackBar-Cb8Zo33b.js → EmotePlaybackBar-B0eDc_Xz.js} +5 -5
  13. package/_assets/{ErrorNotice-DEzVeIBz.js → ErrorNotice-aYlVfBxT.js} +2 -2
  14. package/_assets/Event-BG0dNUM_.js +72 -0
  15. package/_assets/{ExchangeController-apmGlTU-.js → ExchangeController-CBVAZKeX.js} +2 -2
  16. package/_assets/{Faq-2-4mQUk8.js → Faq-DyFyFEfN.js} +2 -2
  17. package/_assets/{Filters-asMc51Jo.js → Filters-DXBU1kNJ.js} +19 -19
  18. package/_assets/{GetCredits-sbU1UXiI.js → GetCredits-nIVyH51y.js} +17 -17
  19. package/_assets/{Grow-Bb5f8LBx.js → Grow-B392ksj_.js} +2 -2
  20. package/_assets/HelpersUtil-DGFcsVXD.js +63 -0
  21. package/_assets/{ItemDetail-DgUuh9k6.js → ItemDetail-4K0xq5qa.js} +35 -35
  22. package/_assets/LoadMore-B_oODLp1.js +8 -0
  23. package/_assets/{ManaPricingBanner.styles-DOeOR6RI.js → ManaPricingBanner.styles-NLm-zu5S.js} +3 -3
  24. package/_assets/{MyAssets-DJecPMOx.js → MyAssets-BbctXf9T.js} +8 -8
  25. package/_assets/{MyFavorites-DBRl-1OK.js → MyFavorites-CDyauJmh.js} +9 -9
  26. package/_assets/MyStore-DorOcI1q.js +1062 -0
  27. package/_assets/{NetworkUtil-ATaAR2NZ.js → NetworkUtil-xj9XdA6U.js} +2 -2
  28. package/_assets/NotFound-Ds8v76Ff.js +18 -0
  29. package/_assets/NotificationsBell-D3XWdEXZ.js +142 -0
  30. package/_assets/{OutfitDetail-CGZfi7gQ.js → OutfitDetail-DNYnAFNy.js} +5 -5
  31. package/_assets/{OutfitPreview-Bjb68CHy.js → OutfitPreview-ZeTJyukp.js} +3 -3
  32. package/_assets/{OutfitStudio-DTY9Yq8B.js → OutfitStudio-HDNrNgQb.js} +16 -16
  33. package/_assets/{PhArrowCircleDown-DxArxYac.js → PhArrowCircleDown-oZRgIV6I.js} +4 -4
  34. package/_assets/{PhArrowClockwise-C8ljy1Rj.js → PhArrowClockwise-D6H6uB8s.js} +4 -4
  35. package/_assets/{PhArrowDown-DsAplWwh.js → PhArrowDown-CRBvhObC.js} +4 -4
  36. package/_assets/{PhArrowLeft-EPz-xHmZ.js → PhArrowLeft-iC7ALVz_.js} +5 -5
  37. package/_assets/{PhArrowRight-CVoNjAPb.js → PhArrowRight-BMhSphsR.js} +3 -3
  38. package/_assets/{PhArrowSquareOut-DxPnhLyS.js → PhArrowSquareOut-BGOFtcYV.js} +5 -5
  39. package/_assets/{PhArrowUp-CthNwEN1.js → PhArrowUp-DaOakyLF.js} +5 -5
  40. package/_assets/PhArrowUpRight-Dv-X4w2R.js +15 -0
  41. package/_assets/{PhArrowsClockwise-B-gjYmTc.js → PhArrowsClockwise-DnI7mFlV.js} +4 -4
  42. package/_assets/{PhArrowsDownUp-DPexCLiH.js → PhArrowsDownUp-BT1rp80C.js} +2 -2
  43. package/_assets/{PhArrowsLeftRight-D93RFlb_.js → PhArrowsLeftRight-3JEyJt0N.js} +3 -3
  44. package/_assets/{PhBank-BNhsgOpa.js → PhBank-DlTySila.js} +4 -4
  45. package/_assets/PhBrowser-CxUZLRbi.js +15 -0
  46. package/_assets/{PhCaretDown-niSUmOpX.js → PhCaretDown-Co8viBJv.js} +3 -3
  47. package/_assets/PhCaretLeft-ScH02zvv.js +15 -0
  48. package/_assets/PhCaretRight-CG-ZCjvT.js +15 -0
  49. package/_assets/{PhCaretUp-BuqimB7k.js → PhCaretUp-SXVNZaJo.js} +4 -4
  50. package/_assets/{PhCheck-bPp1bknl.js → PhCheck-DETGkRRi.js} +4 -4
  51. package/_assets/{PhCircleHalf-BCRFPlBh.js → PhCircleHalf-BN36Nweh.js} +3 -3
  52. package/_assets/{PhClock-Ay7dG8fF.js → PhClock-DPd3K2DL.js} +5 -5
  53. package/_assets/{PhCompass-D6jeCOuB.js → PhCompass-F0g-SfuH.js} +5 -5
  54. package/_assets/{PhCopy-Cd6cFQKK.js → PhCopy-CzpD7rrG.js} +2 -2
  55. package/_assets/{PhCreditCard-D0cyAH4H.js → PhCreditCard-NnI7YcNP.js} +5 -5
  56. package/_assets/{PhCurrencyDollar-DNCs7Hoi.js → PhCurrencyDollar-Bst29vzW.js} +2 -2
  57. package/_assets/{PhDesktop-C7wK3N0C.js → PhDesktop-CFSSNEkS.js} +3 -3
  58. package/_assets/{PhDeviceMobile-nwo6W6cN.js → PhDeviceMobile-Dd2ijltg.js} +5 -5
  59. package/_assets/{PhDotsThree-5DGmKrer.js → PhDotsThree-CI5y9TIg.js} +4 -4
  60. package/_assets/{PhEnvelope-DkcDbzLk.js → PhEnvelope-DrQ5vbHf.js} +3 -3
  61. package/_assets/{PhFunnelSimple-D1hBKn3q.js → PhFunnelSimple-CI4FOzkp.js} +4 -4
  62. package/_assets/{PhGlobe-7ico55TC.js → PhGlobe-DR2SpSWA.js} +4 -4
  63. package/_assets/{PhIdentificationCard-PCjj06ca.js → PhIdentificationCard-5YfSRHO7.js} +3 -3
  64. package/_assets/{PhImage-WMMVogNo.js → PhImage-D7dVXxCI.js} +2 -2
  65. package/_assets/{PhInfo-DxjcEgny.js → PhInfo-DNTh1xhU.js} +4 -4
  66. package/_assets/{PhLightbulb-Cv6gGmyY.js → PhLightbulb-BfCndXXI.js} +2 -2
  67. package/_assets/{PhMagnifyingGlass-CzkcQTYD.js → PhMagnifyingGlass-DB41rFTM.js} +2 -2
  68. package/_assets/{PhPaperPlaneRight-DnxOP1pJ.js → PhPaperPlaneRight-D6oxeO8G.js} +4 -4
  69. package/_assets/{PhPlus-D2WgBmbh.js → PhPlus-B90Q_jSC.js} +2 -2
  70. package/_assets/{PhPower-BKrhO8OD.js → PhPower-B3OeVFPP.js} +3 -3
  71. package/_assets/{PhPuzzlePiece-vk5GuUyi.js → PhPuzzlePiece-DMvneE8o.js} +3 -3
  72. package/_assets/{PhQrCode-YjDtep0a.js → PhQrCode-B1ogONq9.js} +4 -4
  73. package/_assets/{PhQuestion-De671WWd.js → PhQuestion-BGPtjzO3.js} +3 -3
  74. package/_assets/{PhQuestionMark-BfmQ4AZR.js → PhQuestionMark-Bx5KlE6e.js} +4 -4
  75. package/_assets/{PhSealCheck-DUSoEL5_.js → PhSealCheck-kDiKrn8v.js} +4 -4
  76. package/_assets/{PhSignOut-BAV0bqRy.js → PhSignOut-C40w8abk.js} +4 -4
  77. package/_assets/{PhSpinner-JXZ0tKR8.js → PhSpinner-BnCR7oBU.js} +3 -3
  78. package/_assets/{PhTrash-B-_1u-EW.js → PhTrash-Dx6EnoNj.js} +2 -2
  79. package/_assets/{PhUser-B7H8Kqoo.js → PhUser-BMrVwUFx.js} +2 -2
  80. package/_assets/{PhVault-D49Kz876.js → PhVault-CJhJgRMl.js} +2 -2
  81. package/_assets/{PhWallet-DFLSB_Zp.js → PhWallet-DUAwnObx.js} +3 -3
  82. package/_assets/{PhWarning-oAag590N.js → PhWarning-DQNslokT.js} +4 -4
  83. package/_assets/{PhWarningCircle-CcZqaDS-.js → PhWarningCircle-p1EFi5p4.js} +5 -5
  84. package/_assets/{PhX-ChlrdI3g.js → PhX-cY2Ff_Gl.js} +5 -5
  85. package/_assets/SaleCountdown-cQM4C16V.js +99 -0
  86. package/_assets/{Spinner-DQ-ajSFT.js → Spinner-L6nFyl-2.js} +2 -2
  87. package/_assets/{StoreSettings-DDY-uZR4.js → StoreSettings-DumRGIpw.js} +6 -6
  88. package/_assets/{Success-rkUKiaUm.js → Success-kXDhdODF.js} +10 -10
  89. package/_assets/{SwapController-DLSmIHQd.js → SwapController-2wOUxm-O.js} +2 -2
  90. package/_assets/{Tooltip-_dwToV-k.js → Tooltip-C2bcEiWV.js} +2 -2
  91. package/_assets/{TradeService-BND_I-dh.js → TradeService-CJAyWLOz.js} +2 -2
  92. package/_assets/{W3MFrameProviderSingleton-BdE_hLwp.js → W3MFrameProviderSingleton-CTS4_jWN.js} +4 -4
  93. package/_assets/{WebCryptoP256-BYI2K2jk.js → WebCryptoP256-BBF_1GY3.js} +2 -2
  94. package/_assets/{add-CTHe98e6.js → add-WhTS4Lmx.js} +2 -2
  95. package/_assets/{all-wallets-DhuabZhK.js → all-wallets-BjG4VftA.js} +2 -2
  96. package/_assets/{app-store-B6taH2bQ.js → app-store-BU7T42Cx.js} +2 -2
  97. package/_assets/{apple-Dg5wuMVl.js → apple-CawmhmSa.js} +3 -3
  98. package/_assets/{arrow-bottom-DGKCuT-u.js → arrow-bottom-CnNmrvB7.js} +3 -3
  99. package/_assets/{arrow-bottom-circle-DizCI34l.js → arrow-bottom-circle-4Fk8ZSin.js} +3 -3
  100. package/_assets/{arrow-left-B5Shucf2.js → arrow-left-CfMYQlcz.js} +3 -3
  101. package/_assets/arrow-right-QKHuTr9a.js +9 -0
  102. package/_assets/{arrow-top-9YDPz3-j.js → arrow-top-B19eH9mc.js} +3 -3
  103. package/_assets/{async-directive-BCdPKC92.js → async-directive-BTrBVINo.js} +3 -3
  104. package/_assets/{bank-BsLbzuJN.js → bank-CvCwnNxT.js} +2 -2
  105. package/_assets/{basic-D3b4MpI5.js → basic-Dy20qb1a.js} +2 -2
  106. package/_assets/{biconomy-DqeHBM8p.js → biconomy-BnEG5Zy-.js} +2 -2
  107. package/_assets/{browseLayout.styles-CMTVkSac.js → browseLayout.styles-CfCn9o-L.js} +4 -4
  108. package/_assets/{browser-BQou63S2.js → browser-CRh8u5ch.js} +2 -2
  109. package/_assets/{browser-Zugje3ii.js → browser-Cdq7DNqX.js} +2 -2
  110. package/_assets/{browser-BGA0SS8o.js → browser-D_6XKzYg.js} +3 -3
  111. package/_assets/{browser-ponyfill-cF-lQSAL.js → browser-ponyfill-BKmwPYRv.js} +2 -2
  112. package/_assets/buy-BZCpQvc4.js +2 -0
  113. package/_assets/{buy-gasless-Co6zCsFc.js → buy-gasless-CxdA3e9m.js} +2 -2
  114. package/_assets/{card-DrayzgIc.js → card-Bs7vF3ws.js} +2 -2
  115. package/_assets/{categories-4PQU8mVO.js → categories-DFosgubm.js} +2 -2
  116. package/_assets/{ccip-pfF_WX-v.js → ccip-CFqr1zAP.js} +2 -2
  117. package/_assets/{ccip-na6WTHG3.js → ccip-kZ3R7VLn.js} +2 -2
  118. package/_assets/{chains-zAaf3wnb.js → chains-DeJWzaQr.js} +2 -2
  119. package/_assets/{checkmark-bold-BZ8hvIfL.js → checkmark-bold-CwL3zpGi.js} +3 -3
  120. package/_assets/{checkmark-CuwMFqmQ.js → checkmark-e3BzxNSm.js} +2 -2
  121. package/_assets/chevron-bottom-DVpGPQvJ.js +9 -0
  122. package/_assets/chevron-left-CSISn9Tl.js +9 -0
  123. package/_assets/chevron-right-D0n7Onzs.js +9 -0
  124. package/_assets/chevron-top-BSRcfV5m.js +9 -0
  125. package/_assets/{chrome-store-yR8DW2WG.js → chrome-store-B9E5S_r1.js} +2 -2
  126. package/_assets/{class-map-BdERzGec.js → class-map-BaReYv7k.js} +7 -7
  127. package/_assets/{clock-DSdZt3kx.js → clock-98t-BkG5.js} +2 -2
  128. package/_assets/{close-Du9ogfts.js → close-BnCucYZG.js} +2 -2
  129. package/_assets/{coinPlaceholder-DZE_o-zF.js → coinPlaceholder-rH-MsidA.js} +3 -3
  130. package/_assets/{collectionPage.styles-B8uBsvCw.js → collectionPage.styles-DsCcUUFW.js} +7 -7
  131. package/_assets/common-A3Bfnk62.js +2 -0
  132. package/_assets/{compass-D4tC5ehy.js → compass-C4iPyfoB.js} +3 -3
  133. package/_assets/{controller-DRmOjVPs.js → controller-k48YB2Sn.js} +3 -3
  134. package/_assets/{copy-DYrxzMu3.js → copy-Db_EXK-k.js} +3 -3
  135. package/_assets/{core-CVUJfw_Y.js → core-CKZ_MmrP.js} +5 -5
  136. package/_assets/{createSvgIcon-CsWJwavb.js → createSvgIcon-B4YJe4s8.js} +4 -4
  137. package/_assets/crumbs.styles-C5msDC2H.js +10 -0
  138. package/_assets/{cursor-CGNqBNs2.js → cursor-BLyA32Y6.js} +3 -3
  139. package/_assets/{cursor-transparent-Db9408Lh.js → cursor-transparent-is8_6H5o.js} +3 -3
  140. package/_assets/{custom-bDWIMqyA.js → custom-BXWLdbja.js} +2 -2
  141. package/_assets/{data-capture-Qkd1fgBO.js → data-capture-uHnihewB.js} +5 -5
  142. package/_assets/{dcl-schemas-34_X2RYP.js → dcl-schemas-B-U9a1k0.js} +2 -2
  143. package/_assets/decimals-C5B_cOCF.js +2 -0
  144. package/_assets/decimals-Du6yJMK-.js +2 -0
  145. package/_assets/{desktop-8ERr7FQB.js → desktop-w7YXG_JM.js} +3 -3
  146. package/_assets/detectExtension-C6w72a1b.js +2 -0
  147. package/_assets/{disconnect-BaCM-42U.js → disconnect-BoVeWInH.js} +3 -3
  148. package/_assets/{discord-DIiirh17.js → discord-CmXuPXeB.js} +3 -3
  149. package/_assets/{disposePreview-CWhlcwyh.js → disposePreview-VJjydgsa.js} +2 -2
  150. package/_assets/{email-BSG3I8Ho.js → email-KFGlGhOy.js} +2 -2
  151. package/_assets/{embedded-wallet-Bg0JQDEn.js → embedded-wallet-C0hnCLpE.js} +2 -2
  152. package/_assets/{emotion-styled.browser.esm-V5vltgKQ.js → emotion-styled.browser.esm-CvLTks_d.js} +2 -2
  153. package/_assets/{engine-d31zGGE1.js → engine-BRjaV2JM.js} +2 -2
  154. package/_assets/errors-7T5zBx70.js +2 -0
  155. package/_assets/estimate-l1-fee-BYl55n8M.js +2 -0
  156. package/_assets/eth_estimateGas-DLGqCGsG.js +2 -0
  157. package/_assets/eth_getStorageAt-BLy0F-NT.js +2 -0
  158. package/_assets/eth_getTransactionCount-CZ9P1SH4.js +2 -0
  159. package/_assets/ethereum-B3EozZME.js +2 -0
  160. package/_assets/{ethers-Ct62Fyk8.js → ethers-DSJYCqoj.js} +2 -2
  161. package/_assets/{etherscan-Bfm2dZO9.js → etherscan-C6oDVSRT.js} +2 -2
  162. package/_assets/{events-BqEYZqIU.js → events-BjA1SxTa.js} +2 -2
  163. package/_assets/{exclamation-triangle-rcl1W2-L.js → exclamation-triangle-DeoEkpAd.js} +3 -3
  164. package/_assets/{execute-BGNHV8Cc.js → execute-BplnQIQO.js} +3 -3
  165. package/_assets/{extension-CfQ82K2-.js → extension-BC4u9PFt.js} +3 -3
  166. package/_assets/external-link-D1_8iC7n.js +9 -0
  167. package/_assets/extractIPFS-BYNmHd2k.js +2 -0
  168. package/_assets/{facebook-DrblV0Ry.js → facebook-BfvFcXpk.js} +2 -2
  169. package/_assets/{farcaster-BYLQu4i6.js → farcaster-DBSK9Oxt.js} +3 -3
  170. package/_assets/{features-qWWBdOoH.js → features-Cdv7L-RV.js} +2 -2
  171. package/_assets/fetchTokenMetadata-DhtaTk-H.js +3 -0
  172. package/_assets/{field.styles-COIVC9qb.js → field.styles-6T_AbtbU.js} +2 -2
  173. package/_assets/{filters-C4hZu2nU.js → filters-Bx7yqePJ.js} +2 -2
  174. package/_assets/{fortmatic-DrEedztj.js → fortmatic-DXNz83vb.js} +2 -2
  175. package/_assets/{get-bytecode-CPnWJRPF.js → get-bytecode-CFhNP8WB.js} +2 -2
  176. package/_assets/get-ecosystem-wallet-info-Cl9itAW0.js +2 -0
  177. package/_assets/{getBalance-B92Hmjpz.js → getBalance-LoJ5orGb.js} +3 -3
  178. package/_assets/getInstalledModules-Dg137aWw.js +2 -0
  179. package/_assets/getNFT-BEEmfYnn.js +2 -0
  180. package/_assets/{getNFT-emtbiIjw.js → getNFT-CpYYuTRe.js} +3 -3
  181. package/_assets/{github-etC7Hd9s.js → github-Bir9JlcK.js} +3 -3
  182. package/_assets/{google-CZBxFGk_.js → google-BlkSyDA4.js} +3 -3
  183. package/_assets/{grid.styles-U3UceW9u.js → grid.styles-DDLEbnSw.js} +2 -2
  184. package/_assets/{hashTypedData-Cg6BeK80.js → hashTypedData-Bt7HN3si.js} +2 -2
  185. package/_assets/{hashTypedData-DRuJ1giR.js → hashTypedData-DgB1HOfC.js} +2 -2
  186. package/_assets/{help-circle-BUZl81PK.js → help-circle-DA-n1pkO.js} +3 -3
  187. package/_assets/{id-C1QikfkN.js → id-UrGKP3rm.js} +2 -2
  188. package/_assets/{image-KyF9J1CW.js → image-D3PTNca-.js} +2 -2
  189. package/_assets/import-B6kpcRFm.js +2 -0
  190. package/_assets/{in-app-CWCbxLgt.js → in-app-Dg3YlbFQ.js} +2 -2
  191. package/_assets/{in-app-wallet-calls-BzlIhkH2.js → in-app-wallet-calls-D5geh72I.js} +2 -2
  192. package/_assets/{index-B9A-Q0NX.js → index-4qAYVf42.js} +3 -3
  193. package/_assets/{index-CabfmTFB.js → index-A3upiasd.js} +5 -5
  194. package/_assets/{index-D14eD816.js → index-B3abSZ-Z.js} +2 -2
  195. package/_assets/{index-D0Q3EUNk.js → index-B4ztxoOX.js} +2 -2
  196. package/_assets/{index-T7FwoX_w.js → index-BALC2Wgg.js} +2 -2
  197. package/_assets/{index-Ci504iot.js → index-BAXoG69v.js} +5 -5
  198. package/_assets/{index-B5oVgmyb.js → index-BFiGQV0S.js} +2 -2
  199. package/_assets/{index-CNZvDYP7.js → index-BMRZuivV.js} +6 -6
  200. package/_assets/{index-DOsyBIqR.js → index-BPVjQIY8.js} +3 -3
  201. package/_assets/{index-tEBub_R_.js → index-BQvjbaBw.js} +8 -8
  202. package/_assets/{index-aAxfC1Mc.js → index-BVH6E6OD.js} +2 -2
  203. package/_assets/{index-QOjSoq2E.js → index-BYzs0el7.js} +2 -2
  204. package/_assets/{index-C05MHDtw.js → index-BaSG_NUp.js} +3 -3
  205. package/_assets/{index-BmBO7GX2.js → index-Bc9bdmof.js} +2 -2
  206. package/_assets/{index-Dka_uyBk.js → index-BdLDRc-I.js} +5 -5
  207. package/_assets/{index-ZeDXj9_g.js → index-BjKr7EJa.js} +3 -3
  208. package/_assets/index-Bymzh-gN.js +2 -0
  209. package/_assets/index-C7ZsJ1wS.js +31 -0
  210. package/_assets/{index-CaqZWirn.js → index-C8xt-Dq0.js} +2 -2
  211. package/_assets/{index-BsifIgYy.js → index-CA8tyOAF.js} +2 -2
  212. package/_assets/{index-BLNvEm1N.js → index-CDLnPH_R.js} +2 -2
  213. package/_assets/{index-NnmTlrh0.js → index-CESlHrvT.js} +2 -2
  214. package/_assets/{index-hRJEa9xi.js → index-CF8QOK2h.js} +4 -4
  215. package/_assets/{index-CaJLGHyG.js → index-CFtn0XDp.js} +2 -2
  216. package/_assets/{index-k3k-FuJ3.js → index-CRYukxlf.js} +2 -2
  217. package/_assets/{index-kO5pm1xD.js → index-CSQsSI9S.js} +2 -2
  218. package/_assets/{index-H3zs9ERv.js → index-CUCItwHM.js} +4 -4
  219. package/_assets/{index-CO_ku6w6.js → index-CY1CneD5.js} +2 -2
  220. package/_assets/index-CYgnSTnA.js +2 -0
  221. package/_assets/{index-BNqesZWa.js → index-CZnmZn0O.js} +10 -10
  222. package/_assets/{index-DzZ30Ljj.js → index-CaofpCDX.js} +4 -4
  223. package/_assets/{index-Cj1ShJ5L.js → index-Cdhs4ZSZ.js} +2 -2
  224. package/_assets/index-CiXHnYhZ.js +20 -0
  225. package/_assets/{index-Dv8DWtFU.js → index-CkMr9c7F.js} +3 -3
  226. package/_assets/{index-6Ha0pJEF.js → index-CkyVxKTR.js} +2 -2
  227. package/_assets/{index-vJrAsAuU.js → index-Cs3-E5cT.js} +2 -2
  228. package/_assets/index-D2GK2huD.js +28 -0
  229. package/_assets/{index-CY8qzVhs.js → index-D6jqchs0.js} +2 -2
  230. package/_assets/{index-Wh3ETOEk.js → index-D8-2D48n.js} +2 -2
  231. package/_assets/{index-aXm0wT41.js → index-D9TJEt55.js} +4 -4
  232. package/_assets/{index-bj4FPf5y.js → index-D9YHcXvR.js} +4 -4
  233. package/_assets/{index-B0gnOJQt.js → index-D9YcmLMJ.js} +2 -2
  234. package/_assets/{index-5mfZ3Fze.js → index-DC99FOt3.js} +3 -3
  235. package/_assets/{index-BVRAr28k.css → index-DPbzKM5D.css} +1 -1
  236. package/_assets/{index-mbflmWQy.js → index-DYNz2qcD.js} +3 -3
  237. package/_assets/{index-DVCDQ-fR.js → index-Df82pzI7.js} +3 -3
  238. package/_assets/{index-BaWcmVtB.js → index-Dkzg1nZE.js} +2 -2
  239. package/_assets/{index-BaJLFdT4.js → index-Dmc5rFnV.js} +2 -2
  240. package/_assets/{index-huEPdMw-.js → index-DqOzMcNF.js} +15 -15
  241. package/_assets/{index-DZIgUEcA.js → index-DuUTwu_9.js} +2 -2
  242. package/_assets/{index-3dvDIWlC.js → index-DxULOM0p.js} +3 -3
  243. package/_assets/{index-DMldI53i.js → index-DxqlsaIJ.js} +2 -2
  244. package/_assets/{index-ClA_JlL_.js → index-I1p6yQ0k.js} +4 -4
  245. package/_assets/{index-uOymqHkg.js → index-IVhnoiOa.js} +2 -2
  246. package/_assets/{index-Byj8sJaC.js → index-KErMJCvL.js} +440 -440
  247. package/_assets/{index-DsMHjUaj.js → index-LzjiU4KK.js} +4 -4
  248. package/_assets/{index-BTZS0lrm.js → index-Q5TwwtLn.js} +2 -2
  249. package/_assets/{index-Dvv_Jvnl.js → index-RelB0M4N.js} +2 -2
  250. package/_assets/{index-gVE-68Nz.js → index-SqJBKUwJ.js} +2 -2
  251. package/_assets/{index-K99k4MON.js → index-U3U2nzy5.js} +2 -2
  252. package/_assets/{index-CI2YLehB.js → index-XK9EepTf.js} +2 -2
  253. package/_assets/{index-x0N1rOrh.js → index-jUx-Pp_A.js} +2 -2
  254. package/_assets/{index-BNkdBuMd.js → index-l3KtsjUu.js} +2 -2
  255. package/_assets/{index-C0HAuwUJ.js → index-nA74BJD3.js} +2 -2
  256. package/_assets/{index-B0DPOyda.js → index-txYiH5Ob.js} +4 -4
  257. package/_assets/{index-DTGTeSOj.js → index-wMS45T6v.js} +4 -4
  258. package/_assets/{index-Bc_t-wzk.js → index-weSxFZGO.js} +2 -2
  259. package/_assets/{index-BqBq0S7E.js → index-z74SKtAP.js} +5 -5
  260. package/_assets/{index.es-CM3Vugdp.js → index.es-Bcu1bp5V.js} +5 -5
  261. package/_assets/{index.es-DS4xd0ll.js → index.es-DECbrw_U.js} +2 -2
  262. package/_assets/{index.es-ChedPBXZ.js → index.es-DaYBb4qv.js} +2 -2
  263. package/_assets/{index.es-CNlrrSdg.js → index.es-axr79-mu.js} +2 -2
  264. package/_assets/{info-DaeURCNf.js → info-Dsmi8VWW.js} +3 -3
  265. package/_assets/{info-circle-mEb0pRoV.js → info-circle-CppZa7vK.js} +3 -3
  266. package/_assets/{items-empty-BZXPqV6F.js → items-empty-BQHUprjO.js} +2 -2
  267. package/_assets/jsxRuntime.module-Q9HBaTr-.js +2 -0
  268. package/_assets/{jump-DvMtmWZc.js → jump-CqDVhlE9.js} +2 -2
  269. package/_assets/{lightbulb-SUie1snx.js → lightbulb-B2s8QgKQ.js} +3 -3
  270. package/_assets/linkAccount-DxdV9HS8.js +2 -0
  271. package/_assets/{localBatchGatewayRequest-C00xMMYf.js → localBatchGatewayRequest-dCTRrlIJ.js} +2 -2
  272. package/_assets/{mail-BMQ_Tcbe.js → mail-CZ9ghbH-.js} +3 -3
  273. package/_assets/{mobile-DWNrp5xU.js → mobile-D7KL87qI.js} +2 -2
  274. package/_assets/{modal.styles-nlrFOiDq.js → modal.styles-DVzEuE4i.js} +2 -2
  275. package/_assets/{more-BJafKVQX.js → more-C1vsI2Vu.js} +3 -3
  276. package/_assets/{native-DcBqIlIy.js → native-Bma50gO8.js} +2 -2
  277. package/_assets/{network-placeholder-BNTWT8_K.js → network-placeholder-C6sglFRh.js} +2 -2
  278. package/_assets/{networks-BO-namHq.js → networks-p14N8Rze.js} +2 -2
  279. package/_assets/{nftPlaceholder-BvQ5YwOQ.js → nftPlaceholder-ByX0V9oA.js} +2 -2
  280. package/_assets/{off-DwIf2gSg.js → off-B5vm0egN.js} +2 -2
  281. package/_assets/{onramp-ByN4Yn6P.js → onramp-_W_skd45.js} +2 -2
  282. package/_assets/openzeppelin-TED9i7Yw.js +2 -0
  283. package/_assets/ownerOf-Bf98thEc.js +2 -0
  284. package/_assets/parseNft-BkGQncZj.js +3 -0
  285. package/_assets/{parseSignature-Pu3o2H3q.js → parseSignature-DPNUOnqO.js} +2 -2
  286. package/_assets/{parseSignature--mArklDU.js → parseSignature-K29ZIdYJ.js} +4 -4
  287. package/_assets/{passkeys-BN_1kXFk.js → passkeys-Bxplb0vS.js} +2 -2
  288. package/_assets/{pay-with-exchange-DTIh5LZd.js → pay-with-exchange-6DWMo0rX.js} +2 -2
  289. package/_assets/{play-store-CA36CBrS.js → play-store-BBusJ15a.js} +2 -2
  290. package/_assets/{plus-Cns28nqN.js → plus-QdPNUgRE.js} +2 -2
  291. package/_assets/{prepare-contract-call-CLocDjhf.js → prepare-contract-call-Cj0eDfjm.js} +2 -2
  292. package/_assets/{qr-code-Q_tmm4VY.js → qr-code-SdYLFk2z.js} +3 -3
  293. package/_assets/{qr-overlay-BaUFm3dQ.js → qr-overlay-BjI4mudc.js} +4 -4
  294. package/_assets/{react-BtO5oQjI.js → react-DhG5dcPN.js} +2 -2
  295. package/_assets/{receive-JSD8YF28.js → receive-CeFGmTcc.js} +9 -9
  296. package/_assets/{recycle-horizontal-DjogUTaH.js → recycle-horizontal-SCXYOpJq.js} +2 -2
  297. package/_assets/{ref-PrJHD-ud.js → ref-DRxYb1N1.js} +3 -3
  298. package/_assets/{refresh-BoBh2MVk.js → refresh-eticwJ3S.js} +3 -3
  299. package/_assets/{reown-logo-CT7u8xi3.js → reown-logo-C2dHPSrm.js} +2 -2
  300. package/_assets/{resolveImplementation-l7XGcgtp.js → resolveImplementation-774OZZ1E.js} +2 -2
  301. package/_assets/{resume-buy-DxyNwJhE.js → resume-buy-BEdLbR_n.js} +2 -2
  302. package/_assets/{rpc-Jb1c4LKC.js → rpc-DmcKeb2b.js} +4 -4
  303. package/_assets/{sales-empty-BhGKWMD_.js → sales-empty-D8qJCHeq.js} +2 -2
  304. package/_assets/{search-971TVQY2.js → search-CeQ1H1CU.js} +2 -2
  305. package/_assets/{search-empty-4OjRNb5h.js → search-empty-DH4IcPd4.js} +2 -2
  306. package/_assets/{secp256k1-CCMWfPTN.js → secp256k1-1jHjSX_0.js} +2 -2
  307. package/_assets/{secp256k1-Bc1Gm9ho.js → secp256k1-C5XurJ6V.js} +2 -2
  308. package/_assets/{secp256k1-DxGkPQQz.js → secp256k1-DwMDsrWo.js} +2 -2
  309. package/_assets/{send-BJky82OD.js → send-Bo03Ql2I.js} +2 -2
  310. package/_assets/{send-euZobdzg.js → send-Bpuo5hJ1.js} +12 -12
  311. package/_assets/send-batch-transaction-DYAjmvxh.js +2 -0
  312. package/_assets/{send-eip712-transaction-UNtxeOgd.js → send-eip712-transaction-XSTFaz0B.js} +3 -3
  313. package/_assets/send-gasless-transaction--CKQXCYJ.js +3 -0
  314. package/_assets/{send-transaction-CzkQtVDH.js → send-transaction-yz6MCfwK.js} +3 -3
  315. package/_assets/sendMetaTransaction-DsMG8gV0.js +2 -0
  316. package/_assets/{sendRawTransaction-0wdRFkHO.js → sendRawTransaction-BU2bb2hv.js} +4 -4
  317. package/_assets/{sentry-Dt8gif7Q.js → sentry-C-ZN4hdJ.js} +3 -3
  318. package/_assets/{serializeTransaction-CBo_e6mk.js → serializeTransaction-BAiVmvI3.js} +2 -2
  319. package/_assets/{session-proposal-DDig8YSC.js → session-proposal-C0VIGGjd.js} +2 -2
  320. package/_assets/session-request-Dw2Dj2ik.js +3 -0
  321. package/_assets/{sha256-DWxIHqyG.js → sha256-DrAuxfaX.js} +2 -2
  322. package/_assets/{sha3-lV5zj8bM.js → sha3-D7-SM6M6.js} +2 -2
  323. package/_assets/signin-empty-BDPhINhk.js +2 -0
  324. package/_assets/{signing-DxIH0566.js → signing-OF1etnMz.js} +4 -4
  325. package/_assets/{skeleton.styles-DizobWQq.js → skeleton.styles-BDOcFuFh.js} +2 -2
  326. package/_assets/{socials-Bkd_QOdN.js → socials-BN_G7rnm.js} +2 -2
  327. package/_assets/{styled-Cn0Y2UPg.js → styled-B_VfpbCV.js} +3 -3
  328. package/_assets/{swapHorizontal-BROJkMe6.js → swapHorizontal-C6GakaRf.js} +2 -2
  329. package/_assets/{swapHorizontalBold-DGj8RzHp.js → swapHorizontalBold-oeP-_O-R.js} +3 -3
  330. package/_assets/{swapHorizontalMedium-CTW2pJ0O.js → swapHorizontalMedium-C64EXSWD.js} +2 -2
  331. package/_assets/{swapHorizontalRoundedBold-BAWFLi4l.js → swapHorizontalRoundedBold-CHgP6XK-.js} +2 -2
  332. package/_assets/{swapVertical-D0KCL9o6.js → swapVertical-8SLU7RpO.js} +2 -2
  333. package/_assets/{swaps-BpqpYMGa.js → swaps-CPevyB8C.js} +2 -2
  334. package/_assets/{telegram-BrWZtQW9.js → telegram-CF91ES6s.js} +3 -3
  335. package/_assets/{thirdweb-DLNrdpsF.js → thirdweb-BbVCwUAu.js} +4 -4
  336. package/_assets/{three-dots-BqbdzVIX.js → three-dots-BsCoLPC9.js} +2 -2
  337. package/_assets/{to-serializable-transaction-SlKIT__b.js → to-serializable-transaction-lRDSqYXw.js} +3 -3
  338. package/_assets/totalSupply-C7xvhD2t.js +2 -0
  339. package/_assets/trade-encoding-J0WDcE9D.js +2 -0
  340. package/_assets/{transaction-BzpE2zX5.js → transaction-XzNewIjy.js} +2 -2
  341. package/_assets/transactionReceipt-DzFEhFbW.js +2 -0
  342. package/_assets/transactions-DksFynEn.js +17 -0
  343. package/_assets/{twitch-CjF65t51.js → twitch-BranWKeM.js} +2 -2
  344. package/_assets/{twitterIcon-BaOdDtc8.js → twitterIcon-BfIWT5DS.js} +2 -2
  345. package/_assets/useCreatorSales-Dpv72LCx.js +784 -0
  346. package/_assets/useCreditPacks-CplX_QCK.js +2 -0
  347. package/_assets/{useInfiniteGrid-Swmy428I.js → useInfiniteGrid-C2bFEKpr.js} +2 -2
  348. package/_assets/{useStore-CLwTyv1h.js → useStore-BCxGyG1z.js} +3 -3
  349. package/_assets/useTheme-WQQFpB7n.js +2 -0
  350. package/_assets/{utils-Vd_fqJto.js → utils-VSYSpTVV.js} +2 -2
  351. package/_assets/{verify-CzEN-nsy.js → verify-DcO5QuX7.js} +2 -2
  352. package/_assets/{verify-filled-TDYOeDJL.js → verify-filled-CKp8XQqI.js} +3 -3
  353. package/_assets/{verifyHash-CFErsw-g.js → verifyHash-ghN9T3Ve.js} +2 -2
  354. package/_assets/{w3m-modal-BzGojTY4.js → w3m-modal-E9Z1SfqC.js} +2 -2
  355. package/_assets/{w3m-modal-CSFBTgD9.js → w3m-modal-Ev1ebfj3.js} +2 -2
  356. package/_assets/wait-for-tx-receipt-CSeTQKAi.js +2 -0
  357. package/_assets/{wallet-CUlGPHz3.js → wallet-BHCiGpYx.js} +3 -3
  358. package/_assets/{wallet-placeholder-CkipoQX-.js → wallet-placeholder-BVguMNEt.js} +2 -2
  359. package/_assets/{walletconnect-CJlDhwv0.js → walletconnect-9t1WJh4k.js} +5 -5
  360. package/_assets/{wallets-BB57PVau.js → wallets-D8WdqQYN.js} +6 -6
  361. package/_assets/{warning-circle-B2n9VXBj.js → warning-circle-II7Vcaxs.js} +2 -2
  362. package/_assets/{web-connector-5Om2QJD_.js → web-connector-DWmfoiFW.js} +4 -4
  363. package/_assets/{writeContract-j-xvrmim.js → writeContract-DfDwHewQ.js} +2 -2
  364. package/_assets/{x-BK627-zl.js → x-D0s8LW19.js} +3 -3
  365. package/_assets/{zora-sepolia-DXOIcL_b.js → zora-sepolia-B6qZJNOp.js} +2 -2
  366. package/_assets/{zoraTestnet-tsiD7efG.js → zoraTestnet-B0U9riHP.js} +2 -2
  367. package/index.html +11 -11
  368. package/package.json +2 -2
  369. package/sitemap.xml +1 -1
  370. package/_assets/Activity-B-Mt2tEv.js +0 -400
  371. package/_assets/Authorizations-DiumUN7R.js +0 -192
  372. package/_assets/DeploymentBuilder-vOgmLXlt.js +0 -4
  373. package/_assets/Event-D_gsuijt.js +0 -72
  374. package/_assets/HelpersUtil-BeOGj8gw.js +0 -63
  375. package/_assets/LoadMore-DTTb4mbK.js +0 -8
  376. package/_assets/MyStore-pebkCBnn.js +0 -951
  377. package/_assets/NotFound-BqJzwcd1.js +0 -18
  378. package/_assets/NotificationsBell-BgwACPrP.js +0 -142
  379. package/_assets/PhArrowUpRight-yy2UirS7.js +0 -15
  380. package/_assets/PhBrowser-OVbcxsqN.js +0 -15
  381. package/_assets/PhCaretLeft-5pVZjDE4.js +0 -15
  382. package/_assets/PhCaretRight-xH-dut9T.js +0 -15
  383. package/_assets/SaleCountdown-iwkA9AHh.js +0 -99
  384. package/_assets/arrow-right-CS0VOWZq.js +0 -9
  385. package/_assets/authorizations-DXeZuq2r.js +0 -2
  386. package/_assets/builder-CiAkCiQy.js +0 -2
  387. package/_assets/buy-CObI28Dp.js +0 -2
  388. package/_assets/chevron-bottom-BICEUkQ-.js +0 -9
  389. package/_assets/chevron-left-Dj_IHYPd.js +0 -9
  390. package/_assets/chevron-right-DfmPfPeR.js +0 -9
  391. package/_assets/chevron-top-ChQ_XprN.js +0 -9
  392. package/_assets/common-BuNcNp6c.js +0 -2
  393. package/_assets/crumbs.styles-Bm7X-KR2.js +0 -10
  394. package/_assets/decimals-7bz7Ql34.js +0 -2
  395. package/_assets/decimals-DZk5ecDd.js +0 -2
  396. package/_assets/detectExtension-ByuC0sy6.js +0 -2
  397. package/_assets/errors-BL4Tfl40.js +0 -2
  398. package/_assets/estimate-l1-fee-DS9bgkZi.js +0 -2
  399. package/_assets/eth_estimateGas-BhK5cxdD.js +0 -2
  400. package/_assets/eth_getStorageAt-ve_4JkGS.js +0 -2
  401. package/_assets/eth_getTransactionCount-BHKJGFPa.js +0 -2
  402. package/_assets/ethereum-BSsUyfqe.js +0 -2
  403. package/_assets/external-link-V3py9Mkm.js +0 -9
  404. package/_assets/extractIPFS-CVZ-_APG.js +0 -2
  405. package/_assets/fetchTokenMetadata-ickp_G1g.js +0 -3
  406. package/_assets/get-ecosystem-wallet-info-C6-YWBcs.js +0 -2
  407. package/_assets/getInstalledModules-CrI71lAc.js +0 -2
  408. package/_assets/getNFT-CxEMPeu7.js +0 -2
  409. package/_assets/import-Hc4R5Ryp.js +0 -2
  410. package/_assets/index-0CPUejjp.js +0 -2
  411. package/_assets/index-CODUbTf0.js +0 -28
  412. package/_assets/index-MWF8P2GS.js +0 -2
  413. package/_assets/index-lGz6yD_Q.js +0 -31
  414. package/_assets/index-rFi1xyhv.js +0 -20
  415. package/_assets/jsxRuntime.module-6wpz9UoU.js +0 -2
  416. package/_assets/linkAccount-CPJoMsx8.js +0 -2
  417. package/_assets/openzeppelin-BvmPr8Pk.js +0 -2
  418. package/_assets/ownerOf-CzWGfNyJ.js +0 -2
  419. package/_assets/parseNft-BxVTVB-o.js +0 -3
  420. package/_assets/send-batch-transaction-cv8yvO56.js +0 -2
  421. package/_assets/send-gasless-transaction-Cxtlnrp3.js +0 -3
  422. package/_assets/sendMetaTransaction-DWzFLF23.js +0 -2
  423. package/_assets/session-request-B-Xk7VIe.js +0 -3
  424. package/_assets/signin-empty-Wy1cW1R2.js +0 -2
  425. package/_assets/totalSupply-CbOcHvKe.js +0 -2
  426. package/_assets/trade-encoding-DZyyotej.js +0 -2
  427. package/_assets/transactionReceipt-BvWQs4U3.js +0 -2
  428. package/_assets/transactions-BJww61Yo.js +0 -17
  429. package/_assets/useCreatorSales-D_FdWxx_.js +0 -771
  430. package/_assets/useCreditPacks-B2tYXyLc.js +0 -2
  431. package/_assets/useTheme-CYWPHLdD.js +0 -2
  432. package/_assets/wait-for-tx-receipt-D17iwFlM.js +0 -2
@@ -1,4 +1,4 @@
1
- import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r as ht,b as pt,bI as ut,bE as ft,aM as mt,e as xt,x as gt,cW as bt,cX as yt,s as o,a as t,y as Ze,bo as wt,F as vt,N as $e,t as s,D as jt,I as _,E as D,cY as he,bm as Ct,W as ce,by as We,bH as $t,bG as kt,A as Qe,a2 as Ke,m as Xe,bV as St,z as Et,aD as Rt,a4 as Tt,a6 as Be,a7 as te,aR as _t,bR as It}from"./index-Byj8sJaC.js";import{u as Lt,s as Nt}from"./search-empty-4OjRNb5h.js";import{C as At,u as zt,n as Mt,S as Wt,R as Bt,F as Ft,a as Pt}from"./Filters-asMc51Jo.js";import{L as Ot}from"./LoadMore-DTTb4mbK.js";import{u as Ut}from"./useInfiniteGrid-Swmy428I.js";import{S as Ht}from"./categories-4PQU8mVO.js";import{E as Dt}from"./ErrorNotice-DEzVeIBz.js";import{d as Gt}from"./dcl-schemas-34_X2RYP.js";import{s as qt,G as Vt,w as Zt,S as Qt}from"./buy-gasless-Co6zCsFc.js";import{s as Kt}from"./buy-CObI28Dp.js";import{o as Xt}from"./trade-encoding-DZyyotej.js";import{f as Jt}from"./errors-BL4Tfl40.js";import{J as Yt,C as en,B as ke}from"./ethers-Ct62Fyk8.js";import{n as tn}from"./name-glyph-aUugT8vq.js";import{c as nn}from"./crumbs.styles-Bm7X-KR2.js";import{n as sn}from"./Tooltip-_dwToV-k.js";import{G as on}from"./grid.styles-U3UceW9u.js";import{R as an,S as rn,a as ln,D as cn,b as dn,C as hn,c as pn,d as un,e as fn,M as mn}from"./browseLayout.styles-CMTVkSac.js";import"./sentry-Dt8gif7Q.js";import"./intl-AKLEHPeO.js";import"./skeleton.styles-DizobWQq.js";import"./authorizations-DXeZuq2r.js";import"./sendMetaTransaction-DWzFLF23.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new n.Error().stack;i&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[i]="26a6e4d1-05d4-4401-99bb-da42e1565d7d",n._sentryDebugIdIdentifier="sentry-dbid-26a6e4d1-05d4-4401-99bb-da42e1565d7d")}catch{}})();function ne(n){const i=n.source??"item",r=n.tradeId||`${n.contractAddress}-${n.tokenId??n.itemId??""}`;return`${i}:${r}`}const K="100000000000000000000",Je=2,de=15,xn=/^[a-zA-Z0-9]+$/;function Fe(n){const i=n.trim();return i.length===0?{ok:!1,reason:"empty"}:xn.test(i)?i.length<Je?{ok:!1,reason:"too-short"}:i.length>de?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function gn(n){return n.replace(/[^a-zA-Z0-9]/g,"").slice(0,de)}const bn=["function available(string _subdomain) view returns (bool)"],Pe={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function yn(){return Z.chainId===Number(Gt.ChainId.MATIC_MAINNET)?Pe.mainnet:Pe.sepolia}async function wn(n,i={}){var m;const{rpc:r,address:h}=yn(),d=new Yt(r),b=new en(h,bn,d);console.info(`[names] availability check → DCLRegistrar(${h}).available("${n}") on ${r}`);const l=await b.available(n);if((m=i.signal)!=null&&m.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${n}" available=${l}`),l?"available":"taken"}const vn="https://app.across.to/api";class Re extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}class Se extends Error{constructor(){super("The name could not be registered on Ethereum; your funds were recovered."),this.name="NameNotRegisteredError"}}class Ee extends Error{constructor(){super("We couldn't confirm whether the purchase went through."),this.name="NameSettlementUnknownError"}}function jn(n){return mt(K,n)}async function Cn(n,i,r={}){var m;const h=r.chainId??Z.chainId,d=r.provider??"across",b=`${Z.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(i)}&chainId=${h}&provider=${d}`,l=await xt(b,{method:"GET",identity:n,metadata:{}});if(!l.ok){let c;try{c=(m=await l.json())==null?void 0:m.code}catch{}throw c==="ROUTE_COST_TOO_HIGH"?new Re:new Error(`fetchNameCreditRoute ${l.status}`)}return l.json()}function $n(n,i){const r=ke.from(n.availableAmount),d=ke.from(K).sub(r);return{credits:[{value:n.amount,expiresAt:Number(n.expiresAt),salt:Xt(n.id)}],creditsSignatures:[n.signature],externalCall:{target:i.externalCall.target,selector:i.externalCall.selector,data:i.externalCall.data,expiresAt:i.externalCall.expiresAt,salt:i.externalCall.salt},customExternalCallSignature:i.customExternalCallSignature,maxUncreditedValue:d.isNegative()?"0":d.toString(),maxCreditedValue:K}}async function kn(n,i={}){const r=vn,h=i.intervalMs??1e4,d=i.maxAttempts??60;let b={status:"pending",destinationTxHash:null,actionsSucceeded:null};for(let l=0;l<d;l++){try{const m=await fetch(`${r}/deposit/status?originChainId=137&depositTxHash=${n}`);if(m.ok){const c=await m.json(),y=(c.status??"pending").toLowerCase(),f=c.fillTx??c.fillTxnRef??null,j=typeof c.actionsSucceeded=="boolean"?c.actionsSucceeded:null;if(y==="filled")return{status:"filled",destinationTxHash:f,actionsSucceeded:j};if(y==="refunded"||y==="expired")return{status:y,destinationTxHash:null,actionsSucceeded:!1};b={status:"pending",destinationTxHash:f,actionsSucceeded:j}}}catch{}l<d-1&&await new Promise(m=>setTimeout(m,h))}return b}async function Sn(n){const{name:i,identity:r,signer:h}=n,d=f=>{var j;try{(j=n.onProgress)==null||j.call(n,f)}catch{}},b=n.chainId??Z.chainId,l=n.provider??"across",m=(n.beneficiary??await h.getAddress()).toLowerCase();let c=null,y="unconfirmed";console.info("[names] register start",{name:i,buyer:m,chainId:b,provider:l}),d("preparing");try{const f=await ht(pt(Z.chainId).address),j=jn(f);console.info("[names] step 1/6 sized reservation",{usdCents:j,manaRate:f});const C=await Cn(r,i,{chainId:b,provider:l});console.info("[names] step 2/6 route fetched",{target:C.externalCall.target,selector:C.externalCall.selector,provider:C.provider,quoteId:C.quoteId});const x=await ut(r,j,void 0,void 0,i);if(c=x.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:x.credit.id,maxCreditedValue:x.maxCreditedValue}),ke.from(x.maxCreditedValue).lt(K))throw new Error("Credit under-sized for the name price");d("awaiting-confirmation");const S=$n(x.credit,C);let p;try{p=await qt({chainId:b,buyer:m,signer:h,args:S})}catch(g){if(!(g instanceof Vt))throw g;if(g.reason==="relayer-unreachable"){y="unobservable";const I=new Ee;throw I.cause=g,I}p=await Kt(b,S,h)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:p}),d("confirming"),await Zt(p),y="confirmed",console.info("[names] step 5/6 origin tx confirmed",{originTxHash:p}),l==="across"){d("registering");const g=await kn(p,n.acrossPoll);if(console.info("[names] step 6/6 across status",g),g.status==="pending")return{status:"pending",originTxHash:p};if(g.status==="filled"&&g.actionsSucceeded===null)return console.warn("[names] across filled without reporting actionsSucceeded — reporting pending",{originTxHash:p}),{status:"pending",originTxHash:p};if(g.status!=="filled"||g.actionsSucceeded!==!0)throw new Se;return{status:"registered",originTxHash:p,destinationTxHash:g.destinationTxHash}}return{status:"pending",originTxHash:p}}catch(f){if(console.error("[names] register failed — raw error:",f,{name:i,buyer:m,originState:y}),f instanceof Qt)return{status:"pending",originTxHash:f.txHash};if(c&&y==="unconfirmed"&&await ft(r,[c]).catch(()=>{}),f instanceof Re||f instanceof Se||f instanceof Ee)throw f;const j=new Error(Jt(f,"Couldn't register the name. Please try again.",{sale:!0}));throw j.cause=f,j}}function En(){const{data:n}=gt({queryKey:["feature-flag","shop-names"],queryFn:()=>bt(yt.SHOP_NAMES),staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return n===!0}const Rn=60,Tn=700,_n=25;function In(n){if(!n)return[];const i=[];for(let r=1;r<=n.length;r++)i.push({text:n.slice(0,r),delay:Rn});i[i.length-1]={text:n,delay:Tn};for(let r=n.length-1;r>=1;r--)i.push({text:n.slice(0,r),delay:_n});return i}function Ln(n){return n.flatMap(In)}function Nn(n,i){const r=u.useMemo(()=>Ln(n),[n]),[h,d]=u.useState(0);return u.useEffect(()=>{if(!i||r.length===0)return;const b=setTimeout(()=>d(l=>(l+1)%r.length),r[h%r.length].delay);return()=>clearTimeout(b)},[h,i,r]),!i||r.length===0?"":r[h%r.length].text}const An="https://cdn.decentraland.org/@dcl/shop/1.13.1-35194712201.commit-05f9320/_assets/name-verified-oGwQ3ntb.svg",zn="#34fee6",Mn=o.div`
1
+ import{r as u,b as Ve,j as e,u as dt}from"./react-DhG5dcPN.js";import{c as Z,r as ht,b as pt,bE as ut,bA as ft,aC as mt,aG as xt,w as gt,cV as bt,cW as yt,s as i,a as t,x as Ze,bk as wt,aK as vt,F as $e,t as s,D as jt,I as _,z as D,cX as he,bi as Ct,O as ce,bu as We,bD as $t,bC as kt,B as Ke,W as Qe,m as Xe,bS as St,y as Et,at as Tt,Y as Rt,$ as Be,a0 as te,aI as _t,bO as It}from"./index-KErMJCvL.js";import{u as Lt,s as Nt}from"./search-empty-DH4IcPd4.js";import{C as At,u as zt,n as Mt,S as Wt,R as Bt,F as Ft,a as Pt}from"./Filters-DXBU1kNJ.js";import{L as Ot}from"./LoadMore-B_oODLp1.js";import{u as Ut}from"./useInfiniteGrid-C2bFEKpr.js";import{S as Ht}from"./categories-DFosgubm.js";import{E as Dt}from"./ErrorNotice-aYlVfBxT.js";import{d as Gt}from"./dcl-schemas-B-U9a1k0.js";import{s as qt,G as Vt,w as Zt,S as Kt}from"./buy-gasless-CxdA3e9m.js";import{s as Qt}from"./buy-BZCpQvc4.js";import{C as Xt}from"./trade-encoding-J0WDcE9D.js";import{f as Jt}from"./errors-7T5zBx70.js";import{J as Yt,C as en,B as ke}from"./ethers-DSJYCqoj.js";import{n as tn}from"./name-glyph-aUugT8vq.js";import{c as nn}from"./crumbs.styles-C5msDC2H.js";import{n as sn}from"./Tooltip-C2bcEiWV.js";import{G as on}from"./grid.styles-DDLEbnSw.js";import{R as an,S as rn,a as ln,D as cn,b as dn,C as hn,c as pn,d as un,e as fn,M as mn}from"./browseLayout.styles-CfCn9o-L.js";import"./sentry-C-ZN4hdJ.js";import"./intl-AKLEHPeO.js";import"./skeleton.styles-BDOcFuFh.js";import"./sendMetaTransaction-DsMG8gV0.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new n.Error().stack;o&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[o]="a71ddb62-9ad4-429a-8eaa-a52e75268640",n._sentryDebugIdIdentifier="sentry-dbid-a71ddb62-9ad4-429a-8eaa-a52e75268640")}catch{}})();function ne(n){const o=n.source??"item",r=n.tradeId||`${n.contractAddress}-${n.tokenId??n.itemId??""}`;return`${o}:${r}`}const Q="100000000000000000000",Je=2,de=15,xn=/^[a-zA-Z0-9]+$/;function Fe(n){const o=n.trim();return o.length===0?{ok:!1,reason:"empty"}:xn.test(o)?o.length<Je?{ok:!1,reason:"too-short"}:o.length>de?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function gn(n){return n.replace(/[^a-zA-Z0-9]/g,"").slice(0,de)}const bn=["function available(string _subdomain) view returns (bool)"],Pe={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function yn(){return Z.chainId===Number(Gt.ChainId.MATIC_MAINNET)?Pe.mainnet:Pe.sepolia}async function wn(n,o={}){var m;const{rpc:r,address:h}=yn(),d=new Yt(r),b=new en(h,bn,d);console.info(`[names] availability check → DCLRegistrar(${h}).available("${n}") on ${r}`);const l=await b.available(n);if((m=o.signal)!=null&&m.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${n}" available=${l}`),l?"available":"taken"}const vn="https://app.across.to/api";class Te extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}class Se extends Error{constructor(){super("The name could not be registered on Ethereum; your funds were recovered."),this.name="NameNotRegisteredError"}}class Ee extends Error{constructor(){super("We couldn't confirm whether the purchase went through."),this.name="NameSettlementUnknownError"}}function jn(n){return mt(Q,n)}async function Cn(n,o,r={}){var m;const h=r.chainId??Z.chainId,d=r.provider??"across",b=`${Z.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(o)}&chainId=${h}&provider=${d}`,l=await xt(b,{method:"GET",identity:n,metadata:{}});if(!l.ok){let c;try{c=(m=await l.json())==null?void 0:m.code}catch{}throw c==="ROUTE_COST_TOO_HIGH"?new Te:new Error(`fetchNameCreditRoute ${l.status}`)}return l.json()}function $n(n,o){const r=ke.from(n.availableAmount),d=ke.from(Q).sub(r);return{credits:[{value:n.amount,expiresAt:Number(n.expiresAt),salt:Xt(n.id)}],creditsSignatures:[n.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:d.isNegative()?"0":d.toString(),maxCreditedValue:Q}}async function kn(n,o={}){const r=vn,h=o.intervalMs??1e4,d=o.maxAttempts??60;let b={status:"pending",destinationTxHash:null,actionsSucceeded:null};for(let l=0;l<d;l++){try{const m=await fetch(`${r}/deposit/status?originChainId=137&depositTxHash=${n}`);if(m.ok){const c=await m.json(),y=(c.status??"pending").toLowerCase(),f=c.fillTx??c.fillTxnRef??null,j=typeof c.actionsSucceeded=="boolean"?c.actionsSucceeded:null;if(y==="filled")return{status:"filled",destinationTxHash:f,actionsSucceeded:j};if(y==="refunded"||y==="expired")return{status:y,destinationTxHash:null,actionsSucceeded:!1};b={status:"pending",destinationTxHash:f,actionsSucceeded:j}}}catch{}l<d-1&&await new Promise(m=>setTimeout(m,h))}return b}async function Sn(n){const{name:o,identity:r,signer:h}=n,d=f=>{var j;try{(j=n.onProgress)==null||j.call(n,f)}catch{}},b=n.chainId??Z.chainId,l=n.provider??"across",m=(n.beneficiary??await h.getAddress()).toLowerCase();let c=null,y="unconfirmed";console.info("[names] register start",{name:o,buyer:m,chainId:b,provider:l}),d("preparing");try{const f=await ht(pt(Z.chainId).address),j=jn(f);console.info("[names] step 1/6 sized reservation",{usdCents:j,manaRate:f});const C=await Cn(r,o,{chainId:b,provider:l});console.info("[names] step 2/6 route fetched",{target:C.externalCall.target,selector:C.externalCall.selector,provider:C.provider,quoteId:C.quoteId});const x=await ut(r,j,void 0,void 0,o);if(c=x.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:x.credit.id,maxCreditedValue:x.maxCreditedValue}),ke.from(x.maxCreditedValue).lt(Q))throw new Error("Credit under-sized for the name price");d("awaiting-confirmation");const S=$n(x.credit,C);let p;try{p=await qt({chainId:b,buyer:m,signer:h,args:S})}catch(g){if(!(g instanceof Vt))throw g;if(g.reason==="relayer-unreachable"){y="unobservable";const I=new Ee;throw I.cause=g,I}p=await Qt(b,S,h)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:p}),d("confirming"),await Zt(p),y="confirmed",console.info("[names] step 5/6 origin tx confirmed",{originTxHash:p}),l==="across"){d("registering");const g=await kn(p,n.acrossPoll);if(console.info("[names] step 6/6 across status",g),g.status==="pending")return{status:"pending",originTxHash:p};if(g.status==="filled"&&g.actionsSucceeded===null)return console.warn("[names] across filled without reporting actionsSucceeded — reporting pending",{originTxHash:p}),{status:"pending",originTxHash:p};if(g.status!=="filled"||g.actionsSucceeded!==!0)throw new Se;return{status:"registered",originTxHash:p,destinationTxHash:g.destinationTxHash}}return{status:"pending",originTxHash:p}}catch(f){if(console.error("[names] register failed — raw error:",f,{name:o,buyer:m,originState:y}),f instanceof Kt)return{status:"pending",originTxHash:f.txHash};if(c&&y==="unconfirmed"&&await ft(r,[c]).catch(()=>{}),f instanceof Te||f instanceof Se||f instanceof Ee)throw f;const j=new Error(Jt(f,"Couldn't register the name. Please try again.",{sale:!0}));throw j.cause=f,j}}function En(){const{data:n}=gt({queryKey:["feature-flag","shop-names"],queryFn:()=>bt(yt.SHOP_NAMES),staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return n===!0}const Tn=60,Rn=700,_n=25;function In(n){if(!n)return[];const o=[];for(let r=1;r<=n.length;r++)o.push({text:n.slice(0,r),delay:Tn});o[o.length-1]={text:n,delay:Rn};for(let r=n.length-1;r>=1;r--)o.push({text:n.slice(0,r),delay:_n});return o}function Ln(n){return n.flatMap(In)}function Nn(n,o){const r=u.useMemo(()=>Ln(n),[n]),[h,d]=u.useState(0);return u.useEffect(()=>{if(!o||r.length===0)return;const b=setTimeout(()=>d(l=>(l+1)%r.length),r[h%r.length].delay);return()=>clearTimeout(b)},[h,o,r]),!o||r.length===0?"":r[h%r.length].text}const An="https://cdn.decentraland.org/@dcl/shop/1.13.1-35227702430.commit-7f36a79/_assets/name-verified-oGwQ3ntb.svg",zn="#34fee6",Mn=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 Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
7
7
  justify-content: center;
8
8
  padding: 16px;
9
9
  background: rgba(22, 21, 24, 0.55);
10
- `,Wn=o.div`
10
+ `,Wn=i.div`
11
11
  width: 560px;
12
12
  max-width: 100%;
13
13
  max-height: 92vh;
@@ -20,19 +20,19 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
20
20
  ${t.media.maxWidth("mobile")} {
21
21
  padding: 16px;
22
22
  }
23
- `,pe=o.div`
23
+ `,pe=i.div`
24
24
  display: flex;
25
25
  align-items: flex-start;
26
26
  justify-content: space-between;
27
27
  gap: 12px;
28
- `,ue=o.h2`
28
+ `,ue=i.h2`
29
29
  margin: 0;
30
30
  font-family: ${t.font.sans};
31
31
  font-weight: 700;
32
32
  font-size: 20px;
33
33
  line-height: 1.6;
34
34
  color: ${t.colors.text};
35
- `,fe=o.button`
35
+ `,fe=i.button`
36
36
  flex: none;
37
37
  display: grid;
38
38
  place-items: center;
@@ -55,7 +55,7 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
55
55
  outline: 2px solid ${t.colors.accent};
56
56
  outline-offset: 2px;
57
57
  }
58
- `,me=o.div`
58
+ `,me=i.div`
59
59
  display: flex;
60
60
  align-items: center;
61
61
  gap: 6px;
@@ -69,15 +69,15 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
69
69
  height: 16px;
70
70
  color: ${t.colors.brandViolet};
71
71
  }
72
- `,xe=o.hr`
72
+ `,xe=i.hr`
73
73
  border: 0;
74
74
  border-top: 1px solid ${t.colors.line};
75
75
  margin: 16px 0;
76
- `,ge=o.div`
76
+ `,ge=i.div`
77
77
  display: flex;
78
78
  align-items: center;
79
79
  gap: 16px;
80
- `,Bn=o.div`
80
+ `,Bn=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 Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
90
90
  border-radius: 12px;
91
91
  overflow: hidden;
92
92
  background: ${t.gradients.amethyst};
93
- `,Fn=o.img`
93
+ `,Fn=i.img`
94
94
  display: block;
95
95
  width: 47px;
96
96
  height: 47px;
97
- `,Pn=o.span`
97
+ `,Pn=i.span`
98
98
  display: inline-flex;
99
99
  align-items: center;
100
100
  gap: 2px;
@@ -115,12 +115,12 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
115
115
  overflow: hidden;
116
116
  text-overflow: ellipsis;
117
117
  }
118
- `,On=o.img`
118
+ `,On=i.img`
119
119
  flex: none;
120
120
  display: block;
121
121
  width: 14px;
122
122
  height: 14px;
123
- `,Oe=o.div`
123
+ `,Oe=i.div`
124
124
  flex: none;
125
125
  display: grid;
126
126
  place-items: center;
@@ -134,10 +134,10 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
134
134
  width: 30px;
135
135
  height: 30px;
136
136
  }
137
- `,be=o.div`
137
+ `,be=i.div`
138
138
  flex: 1;
139
139
  min-width: 0;
140
- `,ye=o.div`
140
+ `,ye=i.div`
141
141
  font-family: ${t.font.sans};
142
142
  font-weight: 700;
143
143
  font-size: 20px;
@@ -151,11 +151,11 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
151
151
  font-weight: 400;
152
152
  color: ${t.colors.muted2};
153
153
  }
154
- `,we=o.div`
154
+ `,we=i.div`
155
155
  font-family: ${t.font.sans};
156
156
  font-size: 14px;
157
157
  color: ${t.colors.muted2};
158
- `,ve=o.div`
158
+ `,ve=i.div`
159
159
  flex: none;
160
160
  display: flex;
161
161
  align-items: center;
@@ -170,17 +170,17 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
170
170
  height: 22px;
171
171
  color: ${t.colors.brandViolet};
172
172
  }
173
- `,Un=o.div`
173
+ `,Un=i.div`
174
174
  margin-top: 16px;
175
175
  padding: 16px;
176
176
  border-radius: 12px;
177
177
  background: ${t.colors.promptLilac};
178
- `,Hn=o.div`
178
+ `,Hn=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
- `,Dn=o.p`
183
+ `,Dn=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 Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
196
196
  -webkit-background-clip: text;
197
197
  color: transparent;
198
198
  }
199
- `,Gn=o.label`
199
+ `,Gn=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 Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
211
211
  &:focus-within {
212
212
  border-color: ${t.colors.magenta};
213
213
  }
214
- `,qn=o.span`
214
+ `,qn=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
- `,Vn=o.input`
219
+ `,Vn=i.input`
220
220
  flex: 0 1 auto;
221
221
  min-width: 0;
222
222
  border: 0;
@@ -231,12 +231,12 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
231
231
  color: ${t.colors.muted2};
232
232
  font-weight: 400;
233
233
  }
234
- `,Zn=o.span`
234
+ `,Zn=i.span`
235
235
  flex: none;
236
236
  font-family: ${t.font.sans};
237
237
  font-size: 16px;
238
238
  color: ${t.colors.muted2};
239
- `,je=o.button`
239
+ `,je=i.button`
240
240
  margin-top: 16px;
241
241
  width: 100%;
242
242
  height: 46px;
@@ -266,7 +266,7 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
266
266
  cursor: not-allowed;
267
267
  opacity: 0.5;
268
268
  }
269
- `,Qn=o.div`
269
+ `,Kn=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 Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
274
274
  justify-content: center;
275
275
  gap: 32px;
276
276
  padding: 32px 0 8px;
277
- `,Kn=o.img`
277
+ `,Qn=i.img`
278
278
  width: 61px;
279
279
  height: 61px;
280
- `,Xn=o.div`
280
+ `,Xn=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
- `,Jn=o.div`
286
+ `,Jn=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
- `,Yn=o.p`
293
+ `,Yn=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
- `,es=o.div`
300
+ `,es=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
- `,ts=o.div`
306
+ `,ts=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 Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
335
335
  animation: none;
336
336
  }
337
337
  }
338
- `,ns=o.span`
338
+ `,ns=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
- `,ss=o.div`
344
+ `,ss=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 Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
350
350
  border-radius: 12px;
351
351
  background: #e2f5ea;
352
352
  text-align: center;
353
- `,os=o.div`
353
+ `,is=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 Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
363
363
  width: 30px;
364
364
  height: 30px;
365
365
  }
366
- `,is=o.p`
366
+ `,os=i.p`
367
367
  margin: 0;
368
368
  font-family: ${t.font.sans};
369
369
  font-size: 16px;
@@ -373,7 +373,7 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
373
373
  b {
374
374
  font-weight: 700;
375
375
  }
376
- `,Ue=o.div`
376
+ `,Ue=i.div`
377
377
  display: flex;
378
378
  gap: 16px;
379
379
  margin-top: 20px;
@@ -381,7 +381,7 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
381
381
  ${t.media.maxWidth("mobile")} {
382
382
  flex-direction: column;
383
383
  }
384
- `,He=o.button`
384
+ `,He=i.button`
385
385
  flex: 1;
386
386
  height: 48px;
387
387
  border: 1px solid ${t.colors.accent};
@@ -402,7 +402,7 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
402
402
  outline: 2px solid ${t.colors.accent};
403
403
  outline-offset: 2px;
404
404
  }
405
- `,as=o.a`
405
+ `,as=i.a`
406
406
  flex: 1;
407
407
  display: inline-flex;
408
408
  align-items: center;
@@ -426,7 +426,7 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
426
426
  outline: 2px solid ${t.colors.accent};
427
427
  outline-offset: 2px;
428
428
  }
429
- `,Ce=o.div`
429
+ `,Ce=i.div`
430
430
  display: flex;
431
431
  align-items: flex-start;
432
432
  gap: 12px;
@@ -458,10 +458,10 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
458
458
  color: ${t.colors.accent};
459
459
  }
460
460
  }
461
- `;function rs({name:n,priceCredits:i,onClose:r}){const{session:h}=Ze(),{data:d,isError:b}=wt(h),l=vt(),m=Ve(),[c,y]=u.useState("confirm"),[f,j]=u.useState(""),[C,x]=u.useState(null),[S,p]=u.useState(!1),[g,I]=u.useState("preparing"),L=u.useRef(!1),N=f.trim().toLowerCase()===n.toLowerCase(),E=c==="completing",P=i!=null?$e(i):"—",$=i==null,k=d==null?void 0:d.credits,A=i!=null&&k!=null?i-k:0,R=A>0,G=$?s("names.priceUnavailable"):R?s("names.insufficientCredits",{credits:$e(A)}):null;u.useEffect(()=>{const w=O=>{O.key==="Escape"&&!E&&r()};document.addEventListener("keydown",w);const F=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",w),document.body.style.overflow=F}},[E,r]);async function z(){if(!(!h||!N||$||R||L.current)){L.current=!0,y("completing"),x(null),I("preparing");try{const w=await Sn({name:n,identity:h.identity,signer:h.signer,onProgress:I});ce("Shop Completed Purchase",{items:[{item_id:null,contract_address:null,token_id:null,price_usd:We(i??0),category:"name",is_smart:!1}],purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:i??null,value_usd:We(i??0),transaction_hash:w.originTxHash??null,settlement:w.status}),l.invalidateQueries({queryKey:["usd-balance"]}),l.invalidateQueries({queryKey:["my-assets"]}),y(w.status==="registered"?"success":"pending")}catch(w){ce(kt(w)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:$t(w),purchase_type:"name"});const F=w instanceof Se,O=w instanceof Ee;x(w instanceof Re?s("names.errorRouteCost"):F?s("names.errorNotRegistered"):O?s("names.errorSettlementUnknown"):(w==null?void 0:w.message)||s("names.errorGeneric")),p(F||O),y("error")}finally{L.current=!1}}}const M=c!=="success"&&c!=="pending",v=jt(h==null?void 0:h.providerType),W=v?2:1,B=v&&(g==="preparing"||g==="awaiting-confirmation"),T=B?1:W,X=B?s("names.confirming"):s("names.completing"),Q=g==="registering"?s("names.processingRegistering"):null;return e.jsx(Mn,{onClick:E?void 0:r,role:"presentation",children:e.jsxs(Wn,{role:"dialog","aria-modal":"true","aria-label":s("names.buyTitle"),onClick:w=>w.stopPropagation(),children:[M&&e.jsxs(e.Fragment,{children:[e.jsxs(pe,{children:[e.jsx(ue,{children:c==="error"?s("names.errorTitle"):s("names.buyTitle")}),e.jsx(fe,{onClick:r,disabled:E,"aria-label":s("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(me,{children:[s("names.myCreditsBalance")," ",e.jsx(D,{})," ",he(d,b)]}),e.jsx(xe,{})]}),(c==="confirm"||c==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs(ge,{children:[e.jsx(Oe,{"aria-hidden":!0,children:"@"}),e.jsxs(be,{children:[e.jsxs(ye,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(we,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(D,{}),P]})]}),c==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(Ce,{children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsx("span",{children:C})]}),S?e.jsx(je,{onClick:r,children:s("names.errorSpentDismiss")}):e.jsx(je,{onClick:()=>y("confirm"),children:s("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(Un,{children:[e.jsx(Hn,{children:s("names.confirmTitle")}),e.jsx(Dn,{dangerouslySetInnerHTML:{__html:s("names.confirmBody",{name:`<b>@${ls(n)}</b>`})}}),e.jsxs(Gn,{children:[e.jsx(qn,{"aria-hidden":!0,children:"@"}),e.jsx(Vn,{value:f,onChange:w=>j(w.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":s("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(f.length,8)}ch`}}),e.jsx(Zn,{children:".dcl.eth"})]})]}),G?e.jsxs(Ce,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsx("span",{children:G})]}):null,e.jsx(je,{onClick:()=>void z(),disabled:!N||!h||$||R,children:s("names.buyCta")})]})]}),c==="completing"&&e.jsxs(Qn,{children:[e.jsx(Kn,{src:Ct,alt:"",width:61,height:61}),e.jsxs(Xn,{children:[e.jsx(Jn,{children:X}),e.jsxs(es,{children:[e.jsx(ts,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(ns,{"data-testid":"name-progress-count",children:`${T}/${W}`})]}),Q?e.jsx(Yn,{children:Q}):null]})]}),c==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs(pe,{children:[e.jsx(ue,{children:s("names.pendingHeaderTitle")}),e.jsx(fe,{onClick:r,"aria-label":s("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(me,{children:[s("names.myCreditsBalance")," ",e.jsx(D,{})," ",he(d,b)]}),e.jsx(xe,{}),e.jsxs(Ce,{"data-tone":"info",children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("b",{children:s("names.pendingBannerBold")})," ",s("names.pendingBannerRest")]})]}),e.jsxs(ge,{style:{marginTop:20},children:[e.jsx(Oe,{"aria-hidden":!0,children:"@"}),e.jsxs(be,{children:[e.jsxs(ye,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(we,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(D,{}),P]})]}),e.jsx(Ue,{children:e.jsx(He,{onClick:()=>{r(),m("/my-items")},children:s("names.myItems")})})]}),c==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(pe,{children:[e.jsx(ue,{children:s("names.successHeaderTitle")}),e.jsx(fe,{onClick:r,"aria-label":s("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(me,{children:[s("names.myCreditsBalance")," ",e.jsx(D,{})," ",he(d,b)]}),e.jsx(xe,{}),e.jsxs(ss,{children:[e.jsx(os,{"aria-hidden":!0,children:e.jsx(_,{name:"check"})}),e.jsxs(is,{children:[e.jsx("b",{children:s("names.successBannerBold")})," ",s("names.successBannerRest")]})]}),e.jsxs(ge,{style:{marginTop:20},children:[e.jsxs(Bn,{"data-testid":"name-success-tile",children:[e.jsx(Fn,{src:tn,alt:"","aria-hidden":!0,width:47,height:47}),e.jsxs(Pn,{children:[e.jsx("span",{"aria-hidden":!0,children:n}),e.jsx(On,{src:An,alt:"","aria-hidden":!0,width:14,height:14})]})]}),e.jsxs(be,{children:[e.jsxs(ye,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(we,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(D,{}),P]})]}),e.jsxs(Ue,{children:[e.jsx(He,{onClick:()=>{r(),m("/my-items")},children:s("names.myItems")}),e.jsx(as,{href:Z.profileUrl,target:"_blank",rel:"noopener noreferrer",children:s("names.assignToAvatar")})]})]})]})})}function ls(n){return n.replace(/[&<>"']/g,i=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[i])}const cs="https://cdn.decentraland.org/@dcl/shop/1.13.1-35194712201.commit-05f9320/_assets/identity-icon-C8yAW_Gq.svg",ds="https://cdn.decentraland.org/@dcl/shop/1.13.1-35194712201.commit-05f9320/_assets/world-icon-6xQ-PmmW.svg",hs="https://cdn.decentraland.org/@dcl/shop/1.13.1-35194712201.commit-05f9320/_assets/invite-icon-Bz6lCTuB.svg",ps="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",us=o.div`
461
+ `;function rs({name:n,priceCredits:o,onClose:r}){const{session:h}=Ze(),{data:d,isError:b}=wt(h),l=vt(),m=Ve(),[c,y]=u.useState("confirm"),[f,j]=u.useState(""),[C,x]=u.useState(null),[S,p]=u.useState(!1),[g,I]=u.useState("preparing"),L=u.useRef(!1),N=f.trim().toLowerCase()===n.toLowerCase(),E=c==="completing",P=o!=null?$e(o):"—",$=o==null,k=d==null?void 0:d.credits,A=o!=null&&k!=null?o-k:0,T=A>0,G=$?s("names.priceUnavailable"):T?s("names.insufficientCredits",{credits:$e(A)}):null;u.useEffect(()=>{const w=O=>{O.key==="Escape"&&!E&&r()};document.addEventListener("keydown",w);const F=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",w),document.body.style.overflow=F}},[E,r]);async function z(){if(!(!h||!N||$||T||L.current)){L.current=!0,y("completing"),x(null),I("preparing");try{const w=await Sn({name:n,identity:h.identity,signer:h.signer,onProgress:I});ce("Shop Completed Purchase",{items:[{item_id:null,contract_address:null,token_id:null,price_usd:We(o??0),category:"name",is_smart:!1}],purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:o??null,value_usd:We(o??0),transaction_hash:w.originTxHash??null,settlement:w.status}),l.invalidateQueries({queryKey:["usd-balance"]}),l.invalidateQueries({queryKey:["my-assets"]}),y(w.status==="registered"?"success":"pending")}catch(w){ce(kt(w)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:$t(w),purchase_type:"name"});const F=w instanceof Se,O=w instanceof Ee;x(w instanceof Te?s("names.errorRouteCost"):F?s("names.errorNotRegistered"):O?s("names.errorSettlementUnknown"):(w==null?void 0:w.message)||s("names.errorGeneric")),p(F||O),y("error")}finally{L.current=!1}}}const M=c!=="success"&&c!=="pending",v=jt(h==null?void 0:h.providerType),W=v?2:1,B=v&&(g==="preparing"||g==="awaiting-confirmation"),R=B?1:W,X=B?s("names.confirming"):s("names.completing"),K=g==="registering"?s("names.processingRegistering"):null;return e.jsx(Mn,{onClick:E?void 0:r,role:"presentation",children:e.jsxs(Wn,{role:"dialog","aria-modal":"true","aria-label":s("names.buyTitle"),onClick:w=>w.stopPropagation(),children:[M&&e.jsxs(e.Fragment,{children:[e.jsxs(pe,{children:[e.jsx(ue,{children:c==="error"?s("names.errorTitle"):s("names.buyTitle")}),e.jsx(fe,{onClick:r,disabled:E,"aria-label":s("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(me,{children:[s("names.myCreditsBalance")," ",e.jsx(D,{})," ",he(d,b)]}),e.jsx(xe,{})]}),(c==="confirm"||c==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs(ge,{children:[e.jsx(Oe,{"aria-hidden":!0,children:"@"}),e.jsxs(be,{children:[e.jsxs(ye,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(we,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(D,{}),P]})]}),c==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(Ce,{children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsx("span",{children:C})]}),S?e.jsx(je,{onClick:r,children:s("names.errorSpentDismiss")}):e.jsx(je,{onClick:()=>y("confirm"),children:s("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(Un,{children:[e.jsx(Hn,{children:s("names.confirmTitle")}),e.jsx(Dn,{dangerouslySetInnerHTML:{__html:s("names.confirmBody",{name:`<b>@${ls(n)}</b>`})}}),e.jsxs(Gn,{children:[e.jsx(qn,{"aria-hidden":!0,children:"@"}),e.jsx(Vn,{value:f,onChange:w=>j(w.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":s("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(f.length,8)}ch`}}),e.jsx(Zn,{children:".dcl.eth"})]})]}),G?e.jsxs(Ce,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsx("span",{children:G})]}):null,e.jsx(je,{onClick:()=>void z(),disabled:!N||!h||$||T,children:s("names.buyCta")})]})]}),c==="completing"&&e.jsxs(Kn,{children:[e.jsx(Qn,{src:Ct,alt:"",width:61,height:61}),e.jsxs(Xn,{children:[e.jsx(Jn,{children:X}),e.jsxs(es,{children:[e.jsx(ts,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(ns,{"data-testid":"name-progress-count",children:`${R}/${W}`})]}),K?e.jsx(Yn,{children:K}):null]})]}),c==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs(pe,{children:[e.jsx(ue,{children:s("names.pendingHeaderTitle")}),e.jsx(fe,{onClick:r,"aria-label":s("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(me,{children:[s("names.myCreditsBalance")," ",e.jsx(D,{})," ",he(d,b)]}),e.jsx(xe,{}),e.jsxs(Ce,{"data-tone":"info",children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("b",{children:s("names.pendingBannerBold")})," ",s("names.pendingBannerRest")]})]}),e.jsxs(ge,{style:{marginTop:20},children:[e.jsx(Oe,{"aria-hidden":!0,children:"@"}),e.jsxs(be,{children:[e.jsxs(ye,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(we,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(D,{}),P]})]}),e.jsx(Ue,{children:e.jsx(He,{onClick:()=>{r(),m("/my-items")},children:s("names.myItems")})})]}),c==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(pe,{children:[e.jsx(ue,{children:s("names.successHeaderTitle")}),e.jsx(fe,{onClick:r,"aria-label":s("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(me,{children:[s("names.myCreditsBalance")," ",e.jsx(D,{})," ",he(d,b)]}),e.jsx(xe,{}),e.jsxs(ss,{children:[e.jsx(is,{"aria-hidden":!0,children:e.jsx(_,{name:"check"})}),e.jsxs(os,{children:[e.jsx("b",{children:s("names.successBannerBold")})," ",s("names.successBannerRest")]})]}),e.jsxs(ge,{style:{marginTop:20},children:[e.jsxs(Bn,{"data-testid":"name-success-tile",children:[e.jsx(Fn,{src:tn,alt:"","aria-hidden":!0,width:47,height:47}),e.jsxs(Pn,{children:[e.jsx("span",{"aria-hidden":!0,children:n}),e.jsx(On,{src:An,alt:"","aria-hidden":!0,width:14,height:14})]})]}),e.jsxs(be,{children:[e.jsxs(ye,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(we,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(D,{}),P]})]}),e.jsxs(Ue,{children:[e.jsx(He,{onClick:()=>{r(),m("/my-items")},children:s("names.myItems")}),e.jsx(as,{href:Z.profileUrl,target:"_blank",rel:"noopener noreferrer",children:s("names.assignToAvatar")})]})]})]})})}function ls(n){return n.replace(/[&<>"']/g,o=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[o])}const cs="https://cdn.decentraland.org/@dcl/shop/1.13.1-35227702430.commit-7f36a79/_assets/identity-icon-C8yAW_Gq.svg",ds="https://cdn.decentraland.org/@dcl/shop/1.13.1-35227702430.commit-7f36a79/_assets/world-icon-6xQ-PmmW.svg",hs="https://cdn.decentraland.org/@dcl/shop/1.13.1-35227702430.commit-7f36a79/_assets/invite-icon-Bz6lCTuB.svg",ps="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",us=i.div`
462
462
  width: 100%;
463
463
  min-width: 0;
464
- `,fs=o.nav`
464
+ `,fs=i.nav`
465
465
  display: flex;
466
466
  align-items: center;
467
467
  gap: 6px;
@@ -471,7 +471,7 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
471
471
  line-height: 1;
472
472
  color: ${t.colors.gray4};
473
473
  ${nn};
474
- `,ms=o.button`
474
+ `,ms=i.button`
475
475
  border: 0;
476
476
  background: none;
477
477
  padding: 0;
@@ -487,10 +487,10 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
487
487
  outline: 2px solid ${t.colors.white};
488
488
  outline-offset: 2px;
489
489
  }
490
- `,xs=o.span`
490
+ `,xs=i.span`
491
491
  font-weight: 700;
492
492
  color: ${t.colors.softWhite};
493
- `,gs=o.div`
493
+ `,gs=i.div`
494
494
  display: flex;
495
495
  flex-direction: column;
496
496
  gap: 48px;
@@ -500,7 +500,7 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
500
500
  gap: 32px;
501
501
  padding-bottom: 32px;
502
502
  }
503
- `,bs=o.div`
503
+ `,bs=i.div`
504
504
  position: relative;
505
505
  border: 1px solid ${t.colors.magenta};
506
506
  border-radius: 24px;
@@ -517,12 +517,12 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
517
517
  padding: 40px 20px;
518
518
  gap: 28px;
519
519
  }
520
- `,ys=o.div`
520
+ `,ys=i.div`
521
521
  display: flex;
522
522
  flex-direction: column;
523
523
  align-items: center;
524
524
  gap: 12px;
525
- `,ws=o.h1`
525
+ `,ws=i.h1`
526
526
  margin: 0;
527
527
  font-family: ${t.font.sans};
528
528
  font-weight: 600;
@@ -533,7 +533,7 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
533
533
  ${t.media.maxWidth("mobile")} {
534
534
  font-size: 26px;
535
535
  }
536
- `,vs=o.p`
536
+ `,vs=i.p`
537
537
  margin: 0;
538
538
  max-width: 760px;
539
539
  font-family: ${t.font.sans};
@@ -545,14 +545,14 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
545
545
  ${t.media.maxWidth("mobile")} {
546
546
  font-size: 16px;
547
547
  }
548
- `,js=o.div`
548
+ `,js=i.div`
549
549
  width: min(785px, 100%);
550
550
  display: flex;
551
551
  flex-direction: column;
552
552
  gap: 12px;
553
- `,Cs=o.div`
553
+ `,Cs=i.div`
554
554
  position: relative;
555
- `,$s=o("div",sn("invalid"))`
555
+ `,$s=i("div",sn("invalid"))`
556
556
  display: flex;
557
557
  align-items: center;
558
558
  gap: 8px;
@@ -570,7 +570,7 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
570
570
  ${t.media.maxWidth("mobile")} {
571
571
  border-radius: 16px;
572
572
  }
573
- `,ks=o.span`
573
+ `,ks=i.span`
574
574
  position: absolute;
575
575
  left: -9999px;
576
576
  top: 0;
@@ -592,7 +592,7 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
592
592
  ${t.media.maxWidth("mobile")} {
593
593
  font-size: 16px;
594
594
  }
595
- `,Ss=o.div`
595
+ `,Ss=i.div`
596
596
  position: absolute;
597
597
  top: calc(100% + 8px);
598
598
  left: 0;
@@ -617,7 +617,7 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
617
617
  align-items: flex-start;
618
618
  flex-wrap: wrap;
619
619
  }
620
- `,Ye=o.a`
620
+ `,Ye=i.a`
621
621
  display: inline-flex;
622
622
  align-items: center;
623
623
  gap: 2px;
@@ -630,9 +630,9 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
630
630
  ${t.media.maxWidth("mobile")} {
631
631
  margin-left: 0;
632
632
  }
633
- `,Es=o(Ye)`
633
+ `,Es=i(Ye)`
634
634
  color: #ec303a;
635
- `,Rs=o.label`
635
+ `,Ts=i.label`
636
636
  flex: 1;
637
637
  min-width: 0;
638
638
  display: flex;
@@ -640,7 +640,7 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
640
640
  gap: 0;
641
641
  cursor: text;
642
642
  overflow: hidden;
643
- `,Ts=o.span`
643
+ `,Rs=i.span`
644
644
  flex: none;
645
645
  margin-right: 8px;
646
646
  font-family: ${t.font.sans};
@@ -652,7 +652,7 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
652
652
  ${t.media.maxWidth("mobile")} {
653
653
  font-size: 20px;
654
654
  }
655
- `,_s=o.input`
655
+ `,_s=i.input`
656
656
  flex: 0 1 auto;
657
657
  min-width: 0;
658
658
  max-width: 100%;
@@ -674,7 +674,7 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
674
674
  ${t.media.maxWidth("mobile")} {
675
675
  font-size: 16px;
676
676
  }
677
- `,Is=o.span`
677
+ `,Is=i.span`
678
678
  flex: none;
679
679
  /* Flush against the name: "yourname.dcl.eth" has to read as one address, and at 20px even a couple of
680
680
  pixels here look like a space someone typed by mistake. */
@@ -691,14 +691,14 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
691
691
  ${t.media.maxWidth("mobile")} {
692
692
  font-size: 16px;
693
693
  }
694
- `,Ls=o.span`
694
+ `,Ls=i.span`
695
695
  flex: none;
696
696
  font-family: ${t.font.sans};
697
697
  font-size: 14px;
698
698
  line-height: 1.43;
699
699
  color: ${t.colors.muted2};
700
700
  white-space: nowrap;
701
- `,et=o.button`
701
+ `,et=i.button`
702
702
  flex: none;
703
703
  display: inline-flex;
704
704
  align-items: center;
@@ -737,7 +737,7 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
737
737
  ${t.media.maxWidth("mobile")} {
738
738
  display: none;
739
739
  }
740
- `,Ns=o(et)`
740
+ `,Ns=i(et)`
741
741
  display: none;
742
742
 
743
743
  ${t.media.maxWidth("mobile")} {
@@ -746,7 +746,7 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
746
746
  height: 48px;
747
747
  border-radius: 12px;
748
748
  }
749
- `,As=o.span`
749
+ `,As=i.span`
750
750
  display: inline-flex;
751
751
  align-items: center;
752
752
  gap: 4px;
@@ -757,7 +757,7 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
757
757
  width: 13.26px;
758
758
  height: 14px;
759
759
  }
760
- `,zs=o.div`
760
+ `,zs=i.div`
761
761
  display: flex;
762
762
  align-items: center;
763
763
  gap: 8px;
@@ -776,7 +776,7 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
776
776
  height: 16px;
777
777
  flex: none;
778
778
  }
779
- `,se=o(zs)`
779
+ `,se=i(zs)`
780
780
  position: absolute;
781
781
  top: calc(100% + 8px);
782
782
  left: 0;
@@ -789,9 +789,9 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
789
789
  position: static;
790
790
  margin-top: 8px;
791
791
  }
792
- `,Ms=o(Ye)`
792
+ `,Ms=i(Ye)`
793
793
  color: inherit;
794
- `,Ws=o.section`
794
+ `,Ws=i.section`
795
795
  display: flex;
796
796
  flex-direction: column;
797
797
  gap: 48px;
@@ -801,12 +801,12 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
801
801
  gap: 32px;
802
802
  padding: 0 20px;
803
803
  }
804
- `,Bs=o.div`
804
+ `,Bs=i.div`
805
805
  display: flex;
806
806
  flex-direction: column;
807
807
  align-items: center;
808
808
  gap: 24px;
809
- `,Fs=o.h2`
809
+ `,Fs=i.h2`
810
810
  margin: 0;
811
811
  text-align: center;
812
812
  font-family: ${t.font.sans};
@@ -818,7 +818,7 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
818
818
  ${t.media.maxWidth("mobile")} {
819
819
  font-size: 22px;
820
820
  }
821
- `,Ps=o.p`
821
+ `,Ps=i.p`
822
822
  margin: 0;
823
823
  max-width: 907px;
824
824
  text-align: center;
@@ -831,7 +831,7 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
831
831
  ${t.media.maxWidth("mobile")} {
832
832
  font-size: 16px;
833
833
  }
834
- `,Os=o.div`
834
+ `,Os=i.div`
835
835
  display: grid;
836
836
  grid-template-columns: repeat(4, 1fr);
837
837
  gap: 24px;
@@ -843,7 +843,7 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
843
843
  ${t.media.maxWidth("mobile")} {
844
844
  grid-template-columns: 1fr;
845
845
  }
846
- `,oe=o.article`
846
+ `,ie=i.article`
847
847
  min-width: 0;
848
848
  display: flex;
849
849
  flex-direction: column;
@@ -860,17 +860,17 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
860
860
  gap: 20px;
861
861
  padding: 20px;
862
862
  }
863
- `,ie=o.img`
863
+ `,oe=i.img`
864
864
  display: block;
865
865
  align-self: flex-start;
866
866
  height: 55px;
867
867
  width: auto;
868
- `,ae=o.div`
868
+ `,ae=i.div`
869
869
  flex: 1;
870
870
  display: flex;
871
871
  flex-direction: column;
872
872
  gap: 12px;
873
- `,re=o.h3`
873
+ `,re=i.h3`
874
874
  margin: 0;
875
875
  font-family: ${t.font.sans};
876
876
  font-weight: 700;
@@ -878,17 +878,17 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
878
878
  line-height: 1.57;
879
879
  text-transform: uppercase;
880
880
  color: ${t.colors.white};
881
- `,le=o.p`
881
+ `,le=i.p`
882
882
  margin: 0;
883
883
  font-family: ${t.font.sans};
884
884
  font-weight: 400;
885
885
  font-size: 14px;
886
886
  line-height: 1.57;
887
887
  color: ${t.colors.media};
888
- `,Us=o.span`
888
+ `,Us=i.span`
889
889
  font-weight: 700;
890
890
  color: ${t.colors.white};
891
- `,De=o.a`
891
+ `,De=i.a`
892
892
  display: inline-flex;
893
893
  align-items: center;
894
894
  gap: 2px;
@@ -909,7 +909,7 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
909
909
  width: 13px;
910
910
  height: 13px;
911
911
  }
912
- `,Hs=o.span`
912
+ `,Hs=i.span`
913
913
  position: absolute;
914
914
  width: 1px;
915
915
  height: 1px;
@@ -919,7 +919,7 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
919
919
  clip: rect(0, 0, 0, 0);
920
920
  white-space: nowrap;
921
921
  border: 0;
922
- `,Ds="https://docs.decentraland.org/creator/worlds/about/",Gs="https://governance.decentraland.org";function Ge(n){const i=typeof window<"u"?window.location.hostname:"";return`${i.endsWith("decentraland.org")?"https://decentraland.org":i.endsWith("decentraland.today")?"https://decentraland.today":"https://decentraland.zone"}/marketplace/names/browse?search=${encodeURIComponent(n)}`}function qs({onBack:n}){Qe({title:s("seo.names.title"),description:s("seo.names.description")});const{session:i,signIn:r}=Ze(),h=En(),{data:d}=Ke(),b=d?Xe(K,d):null,[l,m]=u.useState(""),[c,y]=u.useState("idle"),[f,j]=u.useState(!1),[C,x]=u.useState(!1),[S,p]=u.useState(()=>{var v;return typeof window<"u"&&!!((v=window.matchMedia)!=null&&v.call(window,"(prefers-reduced-motion: reduce)").matches)});u.useEffect(()=>{var B;const v=(B=window.matchMedia)==null?void 0:B.call(window,"(prefers-reduced-motion: reduce)");if(!v)return;const W=T=>p(T.matches);return v.addEventListener("change",W),()=>v.removeEventListener("change",W)},[]);const g=s("names.placeholderExamples"),I=u.useMemo(()=>g.split(",").map(v=>v.trim()).filter(Boolean),[g]),N=Nn(I,!C&&!l&&!S)||s("names.inputPlaceholder"),E=u.useRef(null),[P,$]=u.useState(void 0);u.useLayoutEffect(()=>{E.current&&$(E.current.getBoundingClientRect().width)},[l,N]),u.useEffect(()=>{if(!Fe(l).ok){y(l.length===0?"idle":"invalid");return}y("checking");const W=new AbortController,B=setTimeout(()=>{(async()=>{try{const T=await wn(l,{signal:W.signal});y(T)}catch(T){if((T==null?void 0:T.name)==="AbortError")return;y("error")}})()},400);return()=>{clearTimeout(B),W.abort()}},[l]);const k=Fe(l),A=k.ok&&(c==="available"||c==="error"),R=h&&A,G=!h&&A;function z(){if(R){if(!i){r();return}j(!0)}}const M=e.jsxs(e.Fragment,{children:[s("names.claim"),b!=null?e.jsxs(As,{children:[e.jsx(D,{}),$e(b)]}):null]});return e.jsxs(us,{"data-testid":"names-page",children:[e.jsxs(fs,{"aria-label":s("names.breadcrumbAria"),children:[e.jsx(ms,{onClick:n,children:s("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(xs,{children:s("names.breadcrumbCurrent")})]}),e.jsxs(gs,{children:[e.jsxs(bs,{children:[e.jsxs(ys,{children:[e.jsx(ws,{children:s("names.heroTitle")}),e.jsx(vs,{children:s("names.heroSubtitle")})]}),e.jsxs(js,{children:[e.jsxs(Cs,{"data-testid":"names-input-wrap",children:[e.jsxs($s,{invalid:c==="taken",children:[e.jsxs(Rs,{children:[e.jsx(Ts,{"aria-hidden":!0,children:"@"}),e.jsx(_s,{value:l,onChange:v=>m(gn(v.target.value)),placeholder:N,"aria-label":s("names.inputAria"),autoComplete:"off",spellCheck:!1,maxLength:de,onFocus:()=>x(!0),style:{width:P!=null?`${P}px`:void 0}}),e.jsx(ks,{ref:E,"aria-hidden":!0,"data-placeholder":!l||void 0,children:l||N}),e.jsx(Is,{children:s("names.suffix")})]}),l.length>0?e.jsxs(Ls,{"aria-hidden":!0,children:[l.length,"/",de]}):null,e.jsx(et,{onClick:z,disabled:!R,"data-testid":"names-claim",children:M})]}),c==="taken"?e.jsxs(Ss,{role:"status","data-testid":"names-taken",children:[e.jsx(_,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:s("names.taken")}),e.jsxs(Es,{href:Ge(l),target:"_blank",rel:"noopener noreferrer",children:[s("names.takenMakeOffer"),e.jsx(_,{name:"external-link",size:13,"aria-hidden":!0})]})]}):null,c==="checking"?e.jsx(se,{tone:"muted",role:"status","data-testid":"names-checking",children:s("names.checking")}):G?e.jsxs(se,{tone:"muted",role:"status","data-testid":"names-disabled",children:[e.jsx(_,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:s("names.registrationDisabled")}),e.jsxs(Ms,{href:Ge(l),target:"_blank",rel:"noopener noreferrer",children:[s("names.registrationDisabledLink"),e.jsx(_,{name:"external-link",size:13,"aria-hidden":!0})]})]}):c==="error"?e.jsx(se,{tone:"muted",role:"status",children:s("names.checkError")}):c==="invalid"&&!k.ok&&k.reason==="too-short"?e.jsx(se,{tone:"muted",role:"status",children:s("names.tooShort",{min:Je})}):null]}),e.jsx(Ns,{onClick:z,disabled:!R,children:M}),e.jsx(Hs,{role:"status","aria-live":"polite",children:c==="available"?s("names.available",{name:l}):""})]})]}),e.jsxs(Ws,{children:[e.jsxs(Bs,{children:[e.jsx(Fs,{children:s("names.whyTitle")}),e.jsx(Ps,{children:s("names.whyIntro")})]}),e.jsxs(Os,{children:[e.jsxs(oe,{children:[e.jsx(ie,{src:cs,alt:""}),e.jsxs(ae,{children:[e.jsx(re,{children:s("names.why1Title")}),e.jsx(le,{children:s("names.why1")})]})]}),e.jsxs(oe,{children:[e.jsx(ie,{src:ds,alt:""}),e.jsxs(ae,{children:[e.jsx(re,{children:s("names.why2Title")}),e.jsxs(le,{children:[s("names.why2")," ",e.jsx(Us,{children:s("names.why2Address")})]}),e.jsxs(De,{href:Ds,target:"_blank",rel:"noopener noreferrer",children:[s("names.learnMore"),e.jsx(_,{name:"external-link","aria-hidden":!0})]})]})]}),e.jsxs(oe,{children:[e.jsx(ie,{src:hs,alt:""}),e.jsxs(ae,{children:[e.jsx(re,{children:s("names.why3Title")}),e.jsx(le,{children:s("names.why3")})]})]}),e.jsxs(oe,{children:[e.jsx(ie,{src:ps,alt:""}),e.jsxs(ae,{children:[e.jsx(re,{children:s("names.why4Title")}),e.jsx(le,{children:s("names.why4")}),e.jsxs(De,{href:Gs,target:"_blank",rel:"noopener noreferrer",children:[s("names.learnMore"),e.jsx(_,{name:"external-link","aria-hidden":!0})]})]})]})]})]})]}),f?e.jsx(rs,{name:l,priceCredits:b,onClose:()=>j(!1)}):null]})}const Vs=o.p`
922
+ `,Ds="https://docs.decentraland.org/creator/worlds/about/",Gs="https://governance.decentraland.org";function Ge(n){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(n)}`}function qs({onBack:n}){Ke({title:s("seo.names.title"),description:s("seo.names.description")});const{session:o,signIn:r}=Ze(),h=En(),{data:d}=Qe(),b=d?Xe(Q,d):null,[l,m]=u.useState(""),[c,y]=u.useState("idle"),[f,j]=u.useState(!1),[C,x]=u.useState(!1),[S,p]=u.useState(()=>{var v;return typeof window<"u"&&!!((v=window.matchMedia)!=null&&v.call(window,"(prefers-reduced-motion: reduce)").matches)});u.useEffect(()=>{var B;const v=(B=window.matchMedia)==null?void 0:B.call(window,"(prefers-reduced-motion: reduce)");if(!v)return;const W=R=>p(R.matches);return v.addEventListener("change",W),()=>v.removeEventListener("change",W)},[]);const g=s("names.placeholderExamples"),I=u.useMemo(()=>g.split(",").map(v=>v.trim()).filter(Boolean),[g]),N=Nn(I,!C&&!l&&!S)||s("names.inputPlaceholder"),E=u.useRef(null),[P,$]=u.useState(void 0);u.useLayoutEffect(()=>{E.current&&$(E.current.getBoundingClientRect().width)},[l,N]),u.useEffect(()=>{if(!Fe(l).ok){y(l.length===0?"idle":"invalid");return}y("checking");const W=new AbortController,B=setTimeout(()=>{(async()=>{try{const R=await wn(l,{signal:W.signal});y(R)}catch(R){if((R==null?void 0:R.name)==="AbortError")return;y("error")}})()},400);return()=>{clearTimeout(B),W.abort()}},[l]);const k=Fe(l),A=k.ok&&(c==="available"||c==="error"),T=h&&A,G=!h&&A;function z(){if(T){if(!o){r();return}j(!0)}}const M=e.jsxs(e.Fragment,{children:[s("names.claim"),b!=null?e.jsxs(As,{children:[e.jsx(D,{}),$e(b)]}):null]});return e.jsxs(us,{"data-testid":"names-page",children:[e.jsxs(fs,{"aria-label":s("names.breadcrumbAria"),children:[e.jsx(ms,{onClick:n,children:s("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(xs,{children:s("names.breadcrumbCurrent")})]}),e.jsxs(gs,{children:[e.jsxs(bs,{children:[e.jsxs(ys,{children:[e.jsx(ws,{children:s("names.heroTitle")}),e.jsx(vs,{children:s("names.heroSubtitle")})]}),e.jsxs(js,{children:[e.jsxs(Cs,{"data-testid":"names-input-wrap",children:[e.jsxs($s,{invalid:c==="taken",children:[e.jsxs(Ts,{children:[e.jsx(Rs,{"aria-hidden":!0,children:"@"}),e.jsx(_s,{value:l,onChange:v=>m(gn(v.target.value)),placeholder:N,"aria-label":s("names.inputAria"),autoComplete:"off",spellCheck:!1,maxLength:de,onFocus:()=>x(!0),style:{width:P!=null?`${P}px`:void 0}}),e.jsx(ks,{ref:E,"aria-hidden":!0,"data-placeholder":!l||void 0,children:l||N}),e.jsx(Is,{children:s("names.suffix")})]}),l.length>0?e.jsxs(Ls,{"aria-hidden":!0,children:[l.length,"/",de]}):null,e.jsx(et,{onClick:z,disabled:!T,"data-testid":"names-claim",children:M})]}),c==="taken"?e.jsxs(Ss,{role:"status","data-testid":"names-taken",children:[e.jsx(_,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:s("names.taken")}),e.jsxs(Es,{href:Ge(l),target:"_blank",rel:"noopener noreferrer",children:[s("names.takenMakeOffer"),e.jsx(_,{name:"external-link",size:13,"aria-hidden":!0})]})]}):null,c==="checking"?e.jsx(se,{tone:"muted",role:"status","data-testid":"names-checking",children:s("names.checking")}):G?e.jsxs(se,{tone:"muted",role:"status","data-testid":"names-disabled",children:[e.jsx(_,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:s("names.registrationDisabled")}),e.jsxs(Ms,{href:Ge(l),target:"_blank",rel:"noopener noreferrer",children:[s("names.registrationDisabledLink"),e.jsx(_,{name:"external-link",size:13,"aria-hidden":!0})]})]}):c==="error"?e.jsx(se,{tone:"muted",role:"status",children:s("names.checkError")}):c==="invalid"&&!k.ok&&k.reason==="too-short"?e.jsx(se,{tone:"muted",role:"status",children:s("names.tooShort",{min:Je})}):null]}),e.jsx(Ns,{onClick:z,disabled:!T,children:M}),e.jsx(Hs,{role:"status","aria-live":"polite",children:c==="available"?s("names.available",{name:l}):""})]})]}),e.jsxs(Ws,{children:[e.jsxs(Bs,{children:[e.jsx(Fs,{children:s("names.whyTitle")}),e.jsx(Ps,{children:s("names.whyIntro")})]}),e.jsxs(Os,{children:[e.jsxs(ie,{children:[e.jsx(oe,{src:cs,alt:""}),e.jsxs(ae,{children:[e.jsx(re,{children:s("names.why1Title")}),e.jsx(le,{children:s("names.why1")})]})]}),e.jsxs(ie,{children:[e.jsx(oe,{src:ds,alt:""}),e.jsxs(ae,{children:[e.jsx(re,{children:s("names.why2Title")}),e.jsxs(le,{children:[s("names.why2")," ",e.jsx(Us,{children:s("names.why2Address")})]}),e.jsxs(De,{href:Ds,target:"_blank",rel:"noopener noreferrer",children:[s("names.learnMore"),e.jsx(_,{name:"external-link","aria-hidden":!0})]})]})]}),e.jsxs(ie,{children:[e.jsx(oe,{src:hs,alt:""}),e.jsxs(ae,{children:[e.jsx(re,{children:s("names.why3Title")}),e.jsx(le,{children:s("names.why3")})]})]}),e.jsxs(ie,{children:[e.jsx(oe,{src:ps,alt:""}),e.jsxs(ae,{children:[e.jsx(re,{children:s("names.why4Title")}),e.jsx(le,{children:s("names.why4")}),e.jsxs(De,{href:Gs,target:"_blank",rel:"noopener noreferrer",children:[s("names.learnMore"),e.jsx(_,{name:"external-link","aria-hidden":!0})]})]})]})]})]})]}),f?e.jsx(rs,{name:l,priceCredits:b,onClose:()=>j(!1)}):null]})}const Vs=i.p`
923
923
  display: flex;
924
924
  align-items: center;
925
925
  gap: 10px;
@@ -935,5 +935,5 @@ import{r as u,b as Ve,j as e,u as dt}from"./react-BtO5oQjI.js";import{c as Z,r a
935
935
  background: rgba(211, 51, 51, 0.1);
936
936
  color: ${t.colors.err};
937
937
  }
938
- `,qe=48,Zs=["all","on_sale","not_for_sale"],Qs=n=>n?"all":"on_sale";function vo({contracts:n,hideNames:i=!1,seo:r,lockStatus:h}={}){const[d]=dt(),b=Ve(),l=(d.get("q")??"").trim().toLowerCase(),m=(d.get("q")??"").trim();Qe(r??{title:m?s("seo.collectibles.searchTitle",{query:m}):s("seo.collectibles.title"),description:s("seo.collectibles.description")});const c=Qs(!!l),y=St(),f=y&&d.get("deals")==="true",j=u.useMemo(()=>({category:"all",status:c,subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,deals:!1,sort:f?"discount":"newest"}),[c,f]),[C,x]=Lt(j),{subCategory:S,rarities:p,priceMin:g,priceMax:I,smart:L,sort:N}=C,E=y&&C.deals,$=At.map(a=>a.key).filter(a=>!(i&&a==="names")).includes(C.category)?C.category:"all",k=h??(Zs.includes(C.status)?C.status:c);zt(`${$}:${S??""}`);const[A,R]=u.useState(!1);u.useEffect(()=>{if(!A)return;const a=ee=>{ee.key==="Escape"&&R(!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}},[A]);const G=n!==void 0&&n.length===0,z=k==="on_sale",M=g&&!Number.isNaN(Number(g))?Number(g):void 0,v=I&&!Number.isNaN(Number(I))?Number(I):void 0,W=Et(),B=S?Ht[S]:void 0,T=E?Mt:Wt,X=(T.find(a=>a.key===N)??T[0]).server,Q={category:$,rarities:p.length?p:void 0,wearableCategories:B,minPriceCredits:M,maxPriceCredits:v,search:l||void 0,sortBy:X,isSmart:L||void 0,onSale:!0,discounted:E||void 0,listingType:W?void 0:"primary",contractAddresses:n!=null&&n.length?n:void 0},w={category:$,rarities:p.length?p:void 0,wearableCategories:B,search:l||void 0,sortBy:X,isWearableSmart:L||void 0,isOnSale:k==="not_for_sale"?!1:void 0,contractAddresses:n!=null&&n.length?n:void 0},{items:F,total:O,isLoading:U,isPlaceholderData:q,error:Te,hasNextPage:tt,isFetchingNextPage:_e,isFetchNextPageError:nt,fetchNextPage:st}=Ut(z?["shop-items",Q]:["catalog-items",w],a=>z?_t({...Q,first:qe,skip:a}):It({...w,first:qe,skip:a}),{enabled:$!=="names"&&!G}),J=O,{data:Ie,isError:ot,isPending:it}=Ke(),at=a=>Ie&&a.manaWei?Xe(a.manaWei,Ie):null,rt=z&&it&&F.some(a=>a.source==="legacy"),Le=U||q||rt,lt=U?15:Math.max(F.length,1),Ne=u.useRef(null);u.useEffect(()=>{U||q||!l||Ne.current===l||(Ne.current=l,ce("Shop Searched",{query:l,result_count:J}))},[l,U,q,J]);const Y=u.useRef("__init__");u.useEffect(()=>{if(U||q)return;const a=JSON.stringify({category:$,subCategory:S,rarities:p,min:M,max:v,sort:N,status:k,smart:L});if(Y.current==="__init__"||Y.current===a){Y.current=a;return}Y.current=a,ce("Shop Applied Filter",{filters:{category:$,sub_category:S,rarities:p,min_price_credits:M??null,max_price_credits:v??null,status:k,smart:L,sort:N},result_count:J})},[$,S,p,M,v,N,k,L,U,q,J]);function Ae(a){x({category:a,subCategory:null})}function ze(a){x({status:a})}function Me(a){x({rarities:p.includes(a)?p.filter(H=>H!==a):[...p,a]})}function ct(){x(j)}const V=[];(M!=null||v!=null)&&V.push({key:"price",label:s("filter.price"),onRemove:()=>{x({priceMin:"",priceMax:""})}});for(const a of Bt)p.includes(a)&&V.push({key:`rarity-${a}`,label:Rt(a),onRemove:()=>Me(a)});return L&&V.push({key:"smart",label:s("filter.smart"),onRemove:()=>x({smart:!1})}),E&&V.push({key:"deals",label:s("filter.deals"),onRemove:()=>x({deals:!1,sort:"newest"})}),k!==c&&V.push({key:"status",label:k==="all"?s("filter.statusAll"):k==="on_sale"?s("filter.onSale"):s("filter.notForSale"),onRemove:()=>ze(c)}),e.jsxs(an,{"data-testid":"browse",children:[$!=="names"&&e.jsxs(e.Fragment,{children:[A?e.jsx(rn,{onClick:()=>R(!1),"aria-hidden":!0}):null,e.jsxs(ln,{"data-open":A||void 0,"data-testid":"browse-sidebar",children:[e.jsxs(cn,{children:[e.jsx(dn,{children:s("assets.filters")}),e.jsx(hn,{onClick:()=>R(!1),"aria-label":s("assets.closeFilters"),children:"✕"})]}),e.jsx(pn,{children:e.jsx(Ft,{category:$,subCategory:S,onCategory:Ae,onSub:a=>x({subCategory:a}),priceMin:g,priceMax:I,onPriceMin:a=>x({priceMin:a}),onPriceMax:a=>x({priceMax:a}),rarities:p,onToggleRarity:Me,status:k,onStatus:ze,hideNames:i,smart:L,onSmart:a=>x({smart:a}),deals:E,onDeals:y?a=>x(a?{deals:!0,sort:"discount"}:{deals:!1,sort:"newest"}):void 0})}),e.jsx(un,{children:e.jsx(fn,{type:"button",onClick:()=>R(!1),children:s("assets.showItems")})})]})]}),e.jsx(mn,{children:$==="names"?e.jsx(qs,{onBack:()=>Ae("all")}):e.jsxs(e.Fragment,{children:[e.jsx(Pt,{sort:N,sortOptions:T,onSort:a=>x({sort:a}),total:O,loading:U||q,query:l,onOpenFilters:()=>R(!0),chips:V,onClearChips:ct}),ot&&z&&F.some(a=>a.source==="legacy")?e.jsx(Vs,{"data-variant":"warn",children:s("assets.marketUnavailable")}):null,Te?e.jsx(Dt,{message:s("assets.loadError"),testId:"browse-error"}):null,!Le&&F.length===0&&!Te?e.jsx(Tt,{testId:"browse-empty",icon:Nt,title:s("assets.empty.title"),body:m?e.jsxs(e.Fragment,{children:[s("assets.empty.searchBefore"),e.jsx("b",{children:m}),s("assets.empty.searchAfter")]}):s("assets.empty.filters"),cta:{label:s("assets.empty.cta"),onClick:()=>b("/overview")}}):e.jsxs(e.Fragment,{children:[e.jsx(on,{"data-testid":"grid",children:Le?e.jsx(Be,{count:lt}):e.jsxs(e.Fragment,{children:[F.map(a=>{if(!z)return e.jsx(te,{item:a,mode:"view"},ne(a));const H=a;if(H.source!=="legacy")return e.jsx(te,{item:a},ne(a));const ee=at(H);return ee==null?e.jsx(te,{item:a,mode:"view"},ne(a)):e.jsx(te,{item:{...H,priceCredits:ee}},ne(a))}),_e?e.jsx(Be,{count:6}):null]})}),e.jsx(Ot,{hasNextPage:tt,isFetching:_e,isError:nt,onLoadMore:()=>void st()})]})]})})]})}export{vo as Assets};
939
- //# sourceMappingURL=Assets-BrcTOhgS.js.map
938
+ `,qe=48,Zs=["all","on_sale","not_for_sale"],Ks=n=>n?"all":"on_sale";function yi({contracts:n,hideNames:o=!1,seo:r,lockStatus:h}={}){const[d]=dt(),b=Ve(),l=(d.get("q")??"").trim().toLowerCase(),m=(d.get("q")??"").trim();Ke(r??{title:m?s("seo.collectibles.searchTitle",{query:m}):s("seo.collectibles.title"),description:s("seo.collectibles.description")});const c=Ks(!!l),y=St(),f=y&&d.get("deals")==="true",j=u.useMemo(()=>({category:"all",status:c,subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,deals:!1,sort:f?"discount":"newest"}),[c,f]),[C,x]=Lt(j),{subCategory:S,rarities:p,priceMin:g,priceMax:I,smart:L,sort:N}=C,E=y&&C.deals,$=At.map(a=>a.key).filter(a=>!(o&&a==="names")).includes(C.category)?C.category:"all",k=h??(Zs.includes(C.status)?C.status:c);zt(`${$}:${S??""}`);const[A,T]=u.useState(!1);u.useEffect(()=>{if(!A)return;const a=ee=>{ee.key==="Escape"&&T(!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}},[A]);const G=n!==void 0&&n.length===0,z=k==="on_sale",M=g&&!Number.isNaN(Number(g))?Number(g):void 0,v=I&&!Number.isNaN(Number(I))?Number(I):void 0,W=Et(),B=S?Ht[S]:void 0,R=E?Mt:Wt,X=(R.find(a=>a.key===N)??R[0]).server,K={category:$,rarities:p.length?p:void 0,wearableCategories:B,minPriceCredits:M,maxPriceCredits:v,search:l||void 0,sortBy:X,isSmart:L||void 0,onSale:!0,discounted:E||void 0,listingType:W?void 0:"primary",contractAddresses:n!=null&&n.length?n:void 0},w={category:$,rarities:p.length?p:void 0,wearableCategories:B,search:l||void 0,sortBy:X,isWearableSmart:L||void 0,isOnSale:k==="not_for_sale"?!1:void 0,contractAddresses:n!=null&&n.length?n:void 0},{items:F,total:O,isLoading:U,isPlaceholderData:q,error:Re,hasNextPage:tt,isFetchingNextPage:_e,isFetchNextPageError:nt,fetchNextPage:st}=Ut(z?["shop-items",K]:["catalog-items",w],a=>z?_t({...K,first:qe,skip:a}):It({...w,first:qe,skip:a}),{enabled:$!=="names"&&!G}),J=O,{data:Ie,isError:it,isPending:ot}=Qe(),at=a=>Ie&&a.manaWei?Xe(a.manaWei,Ie):null,rt=z&&ot&&F.some(a=>a.source==="legacy"),Le=U||q||rt,lt=U?15:Math.max(F.length,1),Ne=u.useRef(null);u.useEffect(()=>{U||q||!l||Ne.current===l||(Ne.current=l,ce("Shop Searched",{query:l,result_count:J}))},[l,U,q,J]);const Y=u.useRef("__init__");u.useEffect(()=>{if(U||q)return;const a=JSON.stringify({category:$,subCategory:S,rarities:p,min:M,max:v,sort:N,status:k,smart:L});if(Y.current==="__init__"||Y.current===a){Y.current=a;return}Y.current=a,ce("Shop Applied Filter",{filters:{category:$,sub_category:S,rarities:p,min_price_credits:M??null,max_price_credits:v??null,status:k,smart:L,sort:N},result_count:J})},[$,S,p,M,v,N,k,L,U,q,J]);function Ae(a){x({category:a,subCategory:null})}function ze(a){x({status:a})}function Me(a){x({rarities:p.includes(a)?p.filter(H=>H!==a):[...p,a]})}function ct(){x(j)}const V=[];(M!=null||v!=null)&&V.push({key:"price",label:s("filter.price"),onRemove:()=>{x({priceMin:"",priceMax:""})}});for(const a of Bt)p.includes(a)&&V.push({key:`rarity-${a}`,label:Tt(a),onRemove:()=>Me(a)});return L&&V.push({key:"smart",label:s("filter.smart"),onRemove:()=>x({smart:!1})}),E&&V.push({key:"deals",label:s("filter.deals"),onRemove:()=>x({deals:!1,sort:"newest"})}),k!==c&&V.push({key:"status",label:k==="all"?s("filter.statusAll"):k==="on_sale"?s("filter.onSale"):s("filter.notForSale"),onRemove:()=>ze(c)}),e.jsxs(an,{"data-testid":"browse",children:[$!=="names"&&e.jsxs(e.Fragment,{children:[A?e.jsx(rn,{onClick:()=>T(!1),"aria-hidden":!0}):null,e.jsxs(ln,{"data-open":A||void 0,"data-testid":"browse-sidebar",children:[e.jsxs(cn,{children:[e.jsx(dn,{children:s("assets.filters")}),e.jsx(hn,{onClick:()=>T(!1),"aria-label":s("assets.closeFilters"),children:"✕"})]}),e.jsx(pn,{children:e.jsx(Ft,{category:$,subCategory:S,onCategory:Ae,onSub:a=>x({subCategory:a}),priceMin:g,priceMax:I,onPriceMin:a=>x({priceMin:a}),onPriceMax:a=>x({priceMax:a}),rarities:p,onToggleRarity:Me,status:k,onStatus:ze,hideNames:o,smart:L,onSmart:a=>x({smart:a}),deals:E,onDeals:y?a=>x(a?{deals:!0,sort:"discount"}:{deals:!1,sort:"newest"}):void 0})}),e.jsx(un,{children:e.jsx(fn,{type:"button",onClick:()=>T(!1),children:s("assets.showItems")})})]})]}),e.jsx(mn,{children:$==="names"?e.jsx(qs,{onBack:()=>Ae("all")}):e.jsxs(e.Fragment,{children:[e.jsx(Pt,{sort:N,sortOptions:R,onSort:a=>x({sort:a}),total:O,loading:U||q,query:l,onOpenFilters:()=>T(!0),chips:V,onClearChips:ct}),it&&z&&F.some(a=>a.source==="legacy")?e.jsx(Vs,{"data-variant":"warn",children:s("assets.marketUnavailable")}):null,Re?e.jsx(Dt,{message:s("assets.loadError"),testId:"browse-error"}):null,!Le&&F.length===0&&!Re?e.jsx(Rt,{testId:"browse-empty",icon:Nt,title:s("assets.empty.title"),body:m?e.jsxs(e.Fragment,{children:[s("assets.empty.searchBefore"),e.jsx("b",{children:m}),s("assets.empty.searchAfter")]}):s("assets.empty.filters"),cta:{label:s("assets.empty.cta"),onClick:()=>b("/overview")}}):e.jsxs(e.Fragment,{children:[e.jsx(on,{"data-testid":"grid",children:Le?e.jsx(Be,{count:lt}):e.jsxs(e.Fragment,{children:[F.map(a=>{if(!z)return e.jsx(te,{item:a,mode:"view"},ne(a));const H=a;if(H.source!=="legacy")return e.jsx(te,{item:a},ne(a));const ee=at(H);return ee==null?e.jsx(te,{item:a,mode:"view"},ne(a)):e.jsx(te,{item:{...H,priceCredits:ee}},ne(a))}),_e?e.jsx(Be,{count:6}):null]})}),e.jsx(Ot,{hasNextPage:tt,isFetching:_e,isError:nt,onLoadMore:()=>void st()})]})]})})]})}export{yi as Assets};
939
+ //# sourceMappingURL=Assets-CSRETZwJ.js.map