@dcl/shop 1.11.2 → 1.11.3-33155570552.commit-80e7685

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 (228) hide show
  1. package/_assets/{Activity-BhrsqnTy.js → Activity-BQ4cNZJq.js} +8 -8
  2. package/_assets/{AnimatedBackground-DB2urHfN.js → AnimatedBackground-BlItZE4F.js} +2 -2
  3. package/_assets/{Assets-CEOKXfHN.js → Assets-D-AYQR5O.js} +61 -61
  4. package/_assets/{Authorizations-zY_jkrdd.js → Authorizations-D3TFOLc0.js} +2 -2
  5. package/_assets/{Cart-CD3QMZMU.js → Cart-6PT2o0XO.js} +2 -2
  6. package/_assets/{Collection-fLHFUGHo.js → Collection-DmKa8SBy.js} +2 -2
  7. package/_assets/{CollectionCarousel-Cs01J4sG.js → CollectionCarousel-xKmRjdjJ.js} +38 -21
  8. package/_assets/{Confetti-DI93CkCr.js → Confetti-Z8v6OTnK.js} +4 -4
  9. package/_assets/{ConstantsUtil-9orAwS_V.js → ConstantsUtil-BPwpv-BJ.js} +2 -2
  10. package/_assets/{ContentClient-Dr4IkAbb.js → ContentClient-CwaFAxk9.js} +2 -2
  11. package/_assets/{Creator-DGT3lqoW.js → Creator-CJ1EuxZi.js} +2 -2
  12. package/_assets/{DeploymentBuilder-BsQ4GIy9.js → DeploymentBuilder-Zh0Cr-vJ.js} +2 -2
  13. package/_assets/{EmotePlaybackBar-WqjOzm12.js → EmotePlaybackBar-Cfp2UVtr.js} +3 -3
  14. package/_assets/{ErrorNotice-BanVYx_o.js → ErrorNotice-4SblVCJ8.js} +2 -2
  15. package/_assets/{ExchangeController-BWLF9BXM.js → ExchangeController-FowBnqTh.js} +2 -2
  16. package/_assets/{Faq-Dt8RPaHZ.js → Faq-DWg1l4FJ.js} +2 -2
  17. package/_assets/{GetCredits-BtM_F2J_.js → GetCredits-Crj7O7kG.js} +2 -2
  18. package/_assets/{Grow-DqnkmJ7j.js → Grow-ClQLtYgl.js} +2 -2
  19. package/_assets/{HelpersUtil-BtPtcaFe.js → HelpersUtil-C9WqS0ra.js} +2 -2
  20. package/_assets/{ItemDetail-C28UgJKw.js → ItemDetail-DXkjmRlh.js} +319 -319
  21. package/_assets/{LoadMore-hoiSVN2H.js → LoadMore-BaRjyF39.js} +2 -2
  22. package/_assets/{ManaPricingBanner.styles-rIYX7xjf.js → ManaPricingBanner.styles-DJ7bjK0l.js} +2 -2
  23. package/_assets/{MyAssets-BtAcjcuT.js → MyAssets-DWg2lKw9.js} +2 -2
  24. package/_assets/{MyFavorites-C3BVkIkn.js → MyFavorites-B-2ArPlw.js} +2 -2
  25. package/_assets/{NetworkUtil-BIUbrPWa.js → NetworkUtil-aMprsRwC.js} +2 -2
  26. package/_assets/{NotFound-BgmQ5oFS.js → NotFound-BNX73CrT.js} +2 -2
  27. package/_assets/{NotificationsBell-Bjpu5hGT.js → NotificationsBell-B0enWd7a.js} +2 -2
  28. package/_assets/{OutfitDetail-CIeX74fk.js → OutfitDetail-BjKXVLQi.js} +2 -2
  29. package/_assets/{OutfitPreview-Clicok_x.js → OutfitPreview-Dwy7hPo7.js} +2 -2
  30. package/_assets/{OutfitStudio-DLStaax_.js → OutfitStudio-BPSa9mCN.js} +2 -2
  31. package/_assets/{StoreSettings-DwoVLG99.js → StoreSettings-CNfXo7Kp.js} +22 -22
  32. package/_assets/{Success-BKkeu6d7.js → Success-DRyL1YJL.js} +31 -31
  33. package/_assets/{SwapController-Cnrhnusk.js → SwapController-C6MSYEZI.js} +2 -2
  34. package/_assets/{TradeService-BgsoZh0O.js → TradeService-C-dm6LM0.js} +2 -2
  35. package/_assets/{W3MFrameProviderSingleton-DqaMm2mV.js → W3MFrameProviderSingleton-naTr0B5v.js} +4 -4
  36. package/_assets/{WebCryptoP256-R5qc29Sl.js → WebCryptoP256-BvKVlBTt.js} +2 -2
  37. package/_assets/{authorizations-DC168PVR.js → authorizations-DxGdOyfi.js} +2 -2
  38. package/_assets/{basic-CcMC-Noe.js → basic-BQfHF2z7.js} +2 -2
  39. package/_assets/{biconomy-MuBR1fCG.js → biconomy-CR1wJ3NW.js} +2 -2
  40. package/_assets/{browseLayout.styles-C_vn8XYJ.js → browseLayout.styles-CQilLRye.js} +2 -2
  41. package/_assets/{browser-CTTbQgwQ.js → browser-d5kVYj7V.js} +2 -2
  42. package/_assets/{browser-ponyfill-2MY_3eYQ.js → browser-ponyfill-DrgqR3Jn.js} +2 -2
  43. package/_assets/{builder-CpxipFmE.js → builder-BSxR3UB0.js} +2 -2
  44. package/_assets/{buy-gasless-Co1yjKqt.js → buy-gasless-IWvDnyE1.js} +2 -2
  45. package/_assets/{buy-C9vFcpIy.js → buy-wWHknAve.js} +2 -2
  46. package/_assets/{categories-DSulO5YB.js → categories-DeaLeWRX.js} +2 -2
  47. package/_assets/{ccip-BGKWaLZd.js → ccip-B90xCZHf.js} +2 -2
  48. package/_assets/{ccip-CIGFVe9f.js → ccip-Cz-KmXKk.js} +2 -2
  49. package/_assets/{chains-B_96BGTk.js → chains-oGtQSZCV.js} +2 -2
  50. package/_assets/collectionPage.styles-CghU1BDG.js +40 -0
  51. package/_assets/{common-nayH6Qb7.js → common-DC3tU0GR.js} +2 -2
  52. package/_assets/{controller-BoM50IGk.js → controller-BDXczEFY.js} +3 -3
  53. package/_assets/{core-C6U0AzoB.js → core-BFeA5TIQ.js} +5 -5
  54. package/_assets/{createSvgIcon-DLtjIgIX.js → createSvgIcon-aMKGf-Vs.js} +2 -2
  55. package/_assets/{custom-BDzyroM1.js → custom-CxtAUMyW.js} +2 -2
  56. package/_assets/{data-capture-Zb8-AfOh.js → data-capture-CJg0LXBB.js} +2 -2
  57. package/_assets/{dcl-schemas-OH8G4Ndl.js → dcl-schemas-DhyZEUTb.js} +2 -2
  58. package/_assets/{decimals-gxw11IoF.js → decimals-CyyfypTD.js} +2 -2
  59. package/_assets/{decimals-DwmaOPpT.js → decimals-Dp_m_LUh.js} +2 -2
  60. package/_assets/{detectExtension-GZk2y11b.js → detectExtension-BaIhULKE.js} +2 -2
  61. package/_assets/{disposePreview-CoU0o2LJ.js → disposePreview-BCeOgBsa.js} +2 -2
  62. package/_assets/{email-Bs2nQCjl.js → email-BXyiCzx4.js} +2 -2
  63. package/_assets/{embedded-wallet-DaMZY5wt.js → embedded-wallet-D_DeRhdX.js} +2 -2
  64. package/_assets/{emotion-styled.browser.esm-pl53fr_X.js → emotion-styled.browser.esm-CQmMziER.js} +2 -2
  65. package/_assets/{engine-_-Y9EygX.js → engine-Bv55PPW4.js} +2 -2
  66. package/_assets/{errors-ISVrHVty.js → errors-C7o97G4M.js} +2 -2
  67. package/_assets/{estimate-l1-fee-C2MojaUq.js → estimate-l1-fee-CDmNUoNh.js} +2 -2
  68. package/_assets/{eth_estimateGas-ByaJEeM-.js → eth_estimateGas-CWaRS4NL.js} +2 -2
  69. package/_assets/{eth_getStorageAt-CfRtAGD-.js → eth_getStorageAt-Dg9ISDGi.js} +2 -2
  70. package/_assets/{eth_getTransactionCount-DCx1pf2k.js → eth_getTransactionCount-LEq9UY5X.js} +2 -2
  71. package/_assets/{ethereum-BgVZC6F_.js → ethereum-Cmptxtln.js} +2 -2
  72. package/_assets/{ethers-DwK2TdL6.js → ethers-ByWI-eMv.js} +2 -2
  73. package/_assets/{events-CSIN-_05.js → events-D_1RveUS.js} +2 -2
  74. package/_assets/{execute-wmZZdldV.js → execute-DnJxddQK.js} +3 -3
  75. package/_assets/{extractIPFS-BS6I288E.js → extractIPFS-B1bRbvds.js} +2 -2
  76. package/_assets/{features-DimRp-1s.js → features-SrcqXGig.js} +2 -2
  77. package/_assets/{fetchTokenMetadata-DZy_tSZt.js → fetchTokenMetadata-VIsnBrpd.js} +3 -3
  78. package/_assets/{field.styles-6_NAJBdz.js → field.styles-D1op8emw.js} +2 -2
  79. package/_assets/{fortmatic-D-iEWKOV.js → fortmatic-DTk-9yYD.js} +2 -2
  80. package/_assets/{get-bytecode-We_Yud0L.js → get-bytecode-C8AHhRd1.js} +2 -2
  81. package/_assets/{get-ecosystem-wallet-info-CZ2Y-cLY.js → get-ecosystem-wallet-info-Be98mpat.js} +2 -2
  82. package/_assets/{getBalance-SeTBLCzL.js → getBalance-B-8cmr-h.js} +3 -3
  83. package/_assets/{getInstalledModules-Dj-K4xQC.js → getInstalledModules-DK4sLWwT.js} +2 -2
  84. package/_assets/{getNFT-BiPo4cEC.js → getNFT-Cx3ber2r.js} +2 -2
  85. package/_assets/{getNFT-BCYWBTK4.js → getNFT-kD4plCPE.js} +3 -3
  86. package/_assets/{grid.styles-DlGaOCzf.js → grid.styles-BIwLaIPU.js} +2 -2
  87. package/_assets/{hashTypedData-OCiZaYsv.js → hashTypedData-2dskM5dw.js} +2 -2
  88. package/_assets/{hashTypedData-Dr6t3Q-D.js → hashTypedData-XHY2qZ4b.js} +2 -2
  89. package/_assets/{in-app-CVvPAYT7.js → in-app-BWFH8lGO.js} +2 -2
  90. package/_assets/{in-app-wallet-calls-ChA73nJF.js → in-app-wallet-calls-A2e2hrZw.js} +2 -2
  91. package/_assets/{index-DZcNiUa1.js → index--zfsMLjb.js} +2 -2
  92. package/_assets/{index-Ct9dUkSX.js → index-10pmvfcK.js} +2 -2
  93. package/_assets/{index-DGwAzxg5.js → index-B119MHsD.js} +2 -2
  94. package/_assets/{index-BiAbz-7Q.js → index-B6mDQ71Q.js} +2 -2
  95. package/_assets/{index-gm_D0aNI.js → index-BCuiMQGB.js} +2 -2
  96. package/_assets/{index-BPQVwfa5.js → index-BF4nzAgt.js} +2 -2
  97. package/_assets/{index-B9Up_SK0.js → index-BOFayr-1.js} +2 -2
  98. package/_assets/{index-D1jUYM4a.js → index-BOp8R4FG.js} +2 -2
  99. package/_assets/{index-D0Wlf6gr.js → index-BSjqMBr9.js} +2 -2
  100. package/_assets/{index-D2CYJ9zD.js → index-BVX6XXgW.js} +2 -2
  101. package/_assets/{index-D7_zDlZP.js → index-BXB-Q7JK.js} +2 -2
  102. package/_assets/{index-ncctYqB-.js → index-BY17flxD.js} +2 -2
  103. package/_assets/{index-DAqd6v3r.js → index-BYq6qdHu.js} +2 -2
  104. package/_assets/{index-CO9qakt0.js → index-BZny5glp.js} +2 -2
  105. package/_assets/{index-Cj5zg5gT.js → index-Bbp7woDG.js} +2 -2
  106. package/_assets/{index-DKiFTtAe.js → index-BgR0fN2n.js} +3 -3
  107. package/_assets/{index-CQvLWK26.js → index-BivdeeqA.js} +2 -2
  108. package/_assets/{index-Dxe6AOQE.js → index-Bl3CX05h.js} +2 -2
  109. package/_assets/{index-_-VFmxzj.js → index-BuqzfES3.js} +2 -2
  110. package/_assets/{index-D0q045Px.js → index-Bv52y23u.js} +2 -2
  111. package/_assets/{index-Axq2dKdE.js → index-BzKWexAG.js} +2 -2
  112. package/_assets/{index-BjdjqJv4.js → index-C1LgB3lX.js} +4 -4
  113. package/_assets/{index-CK4WqWqO.js → index-C3A5Huo_.js} +2 -2
  114. package/_assets/{index-DRR34LYo.js → index-C3XWYmll.js} +2 -2
  115. package/_assets/{index-DibFNBla.js → index-CCo-gXU1.js} +2 -2
  116. package/_assets/{index-D8QWWYMI.js → index-CEWHjElK.js} +2 -2
  117. package/_assets/{index-BlorBoCd.js → index-CFjvSI9V.js} +2 -2
  118. package/_assets/{index-BPinodm9.js → index-CHOXNIZU.js} +2 -2
  119. package/_assets/{index-DJXUib_8.js → index-CKJbILwX.js} +2 -2
  120. package/_assets/{index-CWThS2BY.js → index-CQcYIbmA.js} +2 -2
  121. package/_assets/{index-C3LVhWuY.js → index-CWW8I3cM.js} +2 -2
  122. package/_assets/{index-CS1VnyR1.js → index-CYODi4De.js} +2 -2
  123. package/_assets/{index-B2uxq6bU.js → index-CayZJ1KW.js} +2 -2
  124. package/_assets/{index-CtayMM8a.js → index-ChSQKVK4.js} +4 -4
  125. package/_assets/{index-n4qOUE64.js → index-CsF6xXM_.js} +2 -2
  126. package/_assets/{index-ChNIU-k1.js → index-CsfKDkju.js} +2 -2
  127. package/_assets/{index-CY38y8q8.js → index-CtCVPVKq.js} +2 -2
  128. package/_assets/{index-DejzmYQv.js → index-Cy3Oonq3.js} +2 -2
  129. package/_assets/{index-CATjpM0W.js → index-D28ZG5tn.js} +2 -2
  130. package/_assets/{index-B0OkSRGZ.js → index-D3CuF5hF.js} +2 -2
  131. package/_assets/{index-DCE7JXu8.js → index-D4zFooZK.js} +2 -2
  132. package/_assets/{index-CmcvBNcU.js → index-D9RX6H64.js} +2 -2
  133. package/_assets/{index-Dn8vBHwo.js → index-DAjo0IeM.js} +2 -2
  134. package/_assets/{index-CFGlj3ri.js → index-DDcGOvgn.js} +2 -2
  135. package/_assets/{index-CGdQ1CYx.js → index-DIHPQBX2.js} +3 -3
  136. package/_assets/{index-B1wSCmue.js → index-DNyHNZwr.js} +2 -2
  137. package/_assets/{index-2aK4zhJE.js → index-DOAfbRmZ.js} +2 -2
  138. package/_assets/{index-DGUzkX-I.js → index-DQpwRCf7.js} +2 -2
  139. package/_assets/{index-CUa90VgH.js → index-DSycTKsm.js} +2 -2
  140. package/_assets/{index-Cst1nEOO.js → index-DbcMBgHZ.js} +2 -2
  141. package/_assets/{index-B3Ji4DRo.js → index-DcxgoxVS.js} +2 -2
  142. package/_assets/{index-zkaZwO7E.js → index-DfGK8WsI.js} +2 -2
  143. package/_assets/{index-MZXf7D1W.js → index-DjtZc-pt.js} +2 -2
  144. package/_assets/{index-nQ3hptXe.js → index-Dpn1ciOW.js} +2 -2
  145. package/_assets/{index-BDJuqgxU.js → index-Dqje5rD7.js} +2 -2
  146. package/_assets/{index-CmcTFc5W.js → index-Dzfu0CWL.js} +4 -4
  147. package/_assets/{index-BHbHN01N.js → index-FFpfUhvw.js} +2 -2
  148. package/_assets/{index-CbMw0H1W.js → index-I_d93jfN.js} +3 -3
  149. package/_assets/{index-ficvqfHi.js → index-KKcoIzB6.js} +2 -2
  150. package/_assets/{index-BJA_2Ynv.js → index-Kxc39maL.js} +2 -2
  151. package/_assets/{index-BACBbqlk.js → index-OnthK0Vi.js} +2 -2
  152. package/_assets/{index-DLKAGp7r.js → index-Y3Y-bbNA.js} +2 -2
  153. package/_assets/{index-bJXcZSYa.js → index-aVZCrQgK.js} +152 -123
  154. package/_assets/{index-gAex9EE8.js → index-pycwlDzM.js} +2 -2
  155. package/_assets/{index-G5AacsmF.js → index-qqle_e-t.js} +2 -2
  156. package/_assets/{index-ARGrbe3A.js → index-y36xxLzP.js} +3 -3
  157. package/_assets/{index-BWEvNyOP.js → index-z6_sFHO_.js} +2 -2
  158. package/_assets/{index.es-4xrWWZcO.js → index.es--QATjUsF.js} +2 -2
  159. package/_assets/{index.es-DYbPPtM5.js → index.es-ByQSPL6O.js} +2 -2
  160. package/_assets/{index.es-CstVHWlV.js → index.es-G4zCLjwI.js} +5 -5
  161. package/_assets/{index.es-DzLQ6Fnb.js → index.es-rjHK-XCJ.js} +2 -2
  162. package/_assets/items-empty-cgLqKc9S.js +2 -0
  163. package/_assets/{jump-CVtY0iTz.js → jump-5JL_cP03.js} +2 -2
  164. package/_assets/{linkAccount-6NTQv8aT.js → linkAccount-CETMoRWS.js} +2 -2
  165. package/_assets/{localBatchGatewayRequest-Dks7VfkN.js → localBatchGatewayRequest-CgHNgytM.js} +2 -2
  166. package/_assets/{native-CXAGKkI7.js → native-vpRrA4Cn.js} +2 -2
  167. package/_assets/{networks-DtT18tMT.js → networks-cWf4ZboA.js} +2 -2
  168. package/_assets/{onramp-CUVL5AKN.js → onramp-DgsjYxjT.js} +2 -2
  169. package/_assets/{openzeppelin-C6HmSX5F.js → openzeppelin-DNp3wLOb.js} +2 -2
  170. package/_assets/{ownerOf-iHeO-A0L.js → ownerOf-1LYSCOJn.js} +2 -2
  171. package/_assets/{parseNft-_qkiBgGY.js → parseNft-BcxHCtSx.js} +3 -3
  172. package/_assets/{parseSignature-DCX2Homx.js → parseSignature-D_DzESq3.js} +4 -4
  173. package/_assets/{parseSignature-DpYJxwtD.js → parseSignature-ePfokuCi.js} +2 -2
  174. package/_assets/{passkeys-CaDDwDfa.js → passkeys-DJo48zPj.js} +2 -2
  175. package/_assets/{pay-with-exchange-mjjMFDoB.js → pay-with-exchange-fixKZ9cy.js} +2 -2
  176. package/_assets/{prepare-contract-call-B3PEXjk8.js → prepare-contract-call-BdgAhwyh.js} +2 -2
  177. package/_assets/{qr-overlay-Dte-FwLF.js → qr-overlay-D-9ykAbc.js} +4 -4
  178. package/_assets/{react-Io5Wove7.js → react-BY3vVwvc.js} +2 -2
  179. package/_assets/{receive-BOylnCCD.js → receive-CfqOxXtt.js} +2 -2
  180. package/_assets/{resolveImplementation-eqKe_Jd_.js → resolveImplementation-CMOZuCS0.js} +2 -2
  181. package/_assets/{resume-buy-l-MsHDN-.js → resume-buy-C08YaHUW.js} +2 -2
  182. package/_assets/{rpc-Bd3ag8E4.js → rpc-VPqDooml.js} +2 -2
  183. package/_assets/{sales-empty-71lDTBeo.js → sales-empty-CiZXbQ-u.js} +2 -2
  184. package/_assets/{search-empty-C2pIWVz4.js → search-empty-CjwjsYp3.js} +2 -2
  185. package/_assets/{secp256k1-BCTY01q6.js → secp256k1-BjzlNiqc.js} +2 -2
  186. package/_assets/{secp256k1-D89skxyt.js → secp256k1-Bqz600sq.js} +2 -2
  187. package/_assets/{secp256k1-ChjjZr2n.js → secp256k1-DsYYocSz.js} +2 -2
  188. package/_assets/{send-BoRH3tdn.js → send-OqWYJzei.js} +2 -2
  189. package/_assets/{send-batch-transaction-qs3ijcbz.js → send-batch-transaction-DxplOsBV.js} +2 -2
  190. package/_assets/{send-eip712-transaction-BLU365vg.js → send-eip712-transaction-DLUlA6U2.js} +3 -3
  191. package/_assets/{send-gasless-transaction-COE6PePF.js → send-gasless-transaction-TcSr0Wcm.js} +3 -3
  192. package/_assets/{send-transaction-DWia223-.js → send-transaction-CCxtzvcs.js} +3 -3
  193. package/_assets/{sendMetaTransaction-Bnb1e1Oo.js → sendMetaTransaction-BojzaFVf.js} +2 -2
  194. package/_assets/{sendRawTransaction-QUpRtv1T.js → sendRawTransaction-Bb_nKhdW.js} +4 -4
  195. package/_assets/{sentry-faeuEJiQ.js → sentry-DTXXLFvs.js} +3 -3
  196. package/_assets/{serializeTransaction-Bzap5VIj.js → serializeTransaction-9MYeYe7S.js} +2 -2
  197. package/_assets/{session-proposal-BRPQA6_F.js → session-proposal-CPMewqWU.js} +2 -2
  198. package/_assets/{session-request-DE3BfIwL.js → session-request-qY4rCbGM.js} +3 -3
  199. package/_assets/{sha256-my9t8oLg.js → sha256-DiEOOsO8.js} +2 -2
  200. package/_assets/{signing-BKRnKKdl.js → signing-Be6vrTAY.js} +4 -4
  201. package/_assets/{skeleton.styles-Cjpy58bn.js → skeleton.styles-3JcIR00U.js} +2 -2
  202. package/_assets/{socials-CHs46oCs.js → socials-CG-rf6ye.js} +2 -2
  203. package/_assets/{styled-3e6FPpFM.js → styled-VFTp7jt7.js} +2 -2
  204. package/_assets/{swaps-BQAfj8hR.js → swaps-Cva-BDUb.js} +2 -2
  205. package/_assets/{thirdweb-I3ycy-sq.js → thirdweb-Zfbo-V64.js} +4 -4
  206. package/_assets/{to-serializable-transaction-D4JXNF6K.js → to-serializable-transaction-DNoF4797.js} +3 -3
  207. package/_assets/{totalSupply-RRjcgrsd.js → totalSupply-CQfJBYH9.js} +2 -2
  208. package/_assets/{transaction-CpNDZT6H.js → transaction-CX2qr19N.js} +2 -2
  209. package/_assets/{transactionReceipt-BsGymDgp.js → transactionReceipt-NOc_gzSn.js} +2 -2
  210. package/_assets/{transactions-ZyGjrTz1.js → transactions-ByOmVv0V.js} +2 -2
  211. package/_assets/{useCreditPacks-RKaHRtDl.js → useCreditPacks-6QkfHH0T.js} +2 -2
  212. package/_assets/{useInfiniteGrid-CKUOL3of.js → useInfiniteGrid-B1PlvGpx.js} +2 -2
  213. package/_assets/{useStore-zwLaMv5E.js → useStore-C8GZa7as.js} +3 -3
  214. package/_assets/{useTheme-6lXtg_We.js → useTheme-B9wRZIaP.js} +2 -2
  215. package/_assets/{utils-DmCacC3Z.js → utils-Bi-qMQUk.js} +2 -2
  216. package/_assets/{verifyHash-BnLy1LQ8.js → verifyHash-DDixZPU8.js} +2 -2
  217. package/_assets/{w3m-modal-CqeYEpsp.js → w3m-modal-B9dFmjTc.js} +2 -2
  218. package/_assets/{w3m-modal-igkHA2Yg.js → w3m-modal-DIyfW9yy.js} +2 -2
  219. package/_assets/{wait-for-tx-receipt-BBZ5JG62.js → wait-for-tx-receipt-D7fvkTOZ.js} +2 -2
  220. package/_assets/{wallets-BUa02PiV.js → wallets-CArhlSUA.js} +6 -6
  221. package/_assets/{web-connector-C7j-Aqf_.js → web-connector-BvNhhIkF.js} +4 -4
  222. package/_assets/{writeContract-DUS_4K4j.js → writeContract-y8T-A4Sn.js} +2 -2
  223. package/_assets/{zora-sepolia-CDPQd0aL.js → zora-sepolia-CTDvR1LG.js} +2 -2
  224. package/_assets/{zoraTestnet-DzzH_a_k.js → zoraTestnet-SPU8ZmJ1.js} +2 -2
  225. package/index.html +11 -11
  226. package/package.json +2 -2
  227. package/_assets/collectionPage.styles-DUDsxvQH.js +0 -40
  228. package/_assets/items-empty-CpzVwMne.js +0 -2
@@ -1,4 +1,4 @@
1
- import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s as nt}from"./search-empty-C2pIWVz4.js";import{u as st,t as Ie,R as it,j as ot,k as rt,l as at,m as lt,n as ct,o as dt,p as ht,v as pt,q as ut,r as ft,M as mt,s as xt}from"./browseLayout.styles-C_vn8XYJ.js";import{c as V,R as gt,bv as bt,br as yt,aA as wt,a as vt,l as jt,cw as Ct,cx as $t,s as i,t,o as Oe,bf as kt,r as St,E as ve,b as n,p as Et,I as E,q as O,cy as le,bd as Tt,ad as oe,bn as Le,bu as Rt,bt as _t,n as De,J as Ge,U as qe,V as It,ar as Lt,L as Nt,S as Ne,M as J,aI as At,bE as zt}from"./index-bJXcZSYa.js";import{L as Mt}from"./LoadMore-hoiSVN2H.js";import{u as Wt}from"./useInfiniteGrid-CKUOL3of.js";import{n as Bt,S as Pt}from"./categories-DSulO5YB.js";import{E as Ft}from"./ErrorNotice-BanVYx_o.js";import{d as Ut}from"./dcl-schemas-OH8G4Ndl.js";import{s as Ht,G as Ot,w as Dt,S as Gt}from"./buy-gasless-Co1yjKqt.js";import{s as qt,o as Vt}from"./buy-C9vFcpIy.js";import{f as Zt}from"./errors-ISVrHVty.js";import{J as Qt,C as Kt,B as je}from"./ethers-DwK2TdL6.js";import{n as Jt}from"./name-glyph-aUugT8vq.js";import{G as Xt}from"./grid.styles-DlGaOCzf.js";import"./skeleton.styles-Cjpy58bn.js";import"./sentry-faeuEJiQ.js";import"./intl-AKLEHPeO.js";import"./authorizations-DC168PVR.js";import"./sendMetaTransaction-Bnb1e1Oo.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new s.Error().stack;o&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[o]="fcf1fb08-af1b-446f-8e96-3b0a5eb36b77",s._sentryDebugIdIdentifier="sentry-dbid-fcf1fb08-af1b-446f-8e96-3b0a5eb36b77")}catch{}})();function X(s){const o=s.source??"item",r=s.tradeId||`${s.contractAddress}-${s.tokenId??s.itemId??""}`;return`${o}:${r}`}const Z="100000000000000000000",Ve=2,re=15,Yt=/^[a-zA-Z0-9]+$/;function Ae(s){const o=s.trim();return o.length===0?{ok:!1,reason:"empty"}:Yt.test(o)?o.length<Ve?{ok:!1,reason:"too-short"}:o.length>re?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function en(s){return s.replace(/[^a-zA-Z0-9]/g,"").slice(0,re)}const tn=["function available(string _subdomain) view returns (bool)"],ze={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function nn(){return V.chainId===Number(Ut.ChainId.MATIC_MAINNET)?ze.mainnet:ze.sepolia}async function sn(s,o={}){var m;const{rpc:r,address:d}=nn(),h=new Qt(r),f=new Kt(d,tn,h);console.info(`[names] availability check → DCLRegistrar(${d}).available("${s}") on ${r}`);const l=await f.available(s);if((m=o.signal)!=null&&m.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${s}" available=${l}`),l?"available":"taken"}const on="https://app.across.to/api";class ke extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}class Ce extends Error{constructor(){super("The name could not be registered on Ethereum; your funds were recovered."),this.name="NameNotRegisteredError"}}class $e extends Error{constructor(){super("We couldn't confirm whether the purchase went through."),this.name="NameSettlementUnknownError"}}function rn(s){return wt(Z,s)}async function an(s,o,r={}){var m;const d=r.chainId??V.chainId,h=r.provider??"across",f=`${V.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(o)}&chainId=${d}&provider=${h}`,l=await vt(f,{method:"GET",identity:s,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 ke:new Error(`fetchNameCreditRoute ${l.status}`)}return l.json()}function ln(s,o){const r=je.from(s.availableAmount),h=je.from(Z).sub(r);return{credits:[{value:s.amount,expiresAt:Number(s.expiresAt),salt:Vt(s.id)}],creditsSignatures:[s.signature],externalCall:{target:o.externalCall.target,selector:o.externalCall.selector,data:o.externalCall.data,expiresAt:o.externalCall.expiresAt,salt:o.externalCall.salt},customExternalCallSignature:o.customExternalCallSignature,maxUncreditedValue:h.isNegative()?"0":h.toString(),maxCreditedValue:Z}}async function cn(s,o={}){const r=on,d=o.intervalMs??1e4,h=o.maxAttempts??60;let f={status:"pending",destinationTxHash:null,actionsSucceeded:null};for(let l=0;l<h;l++){try{const m=await fetch(`${r}/deposit/status?originChainId=137&depositTxHash=${s}`);if(m.ok){const c=await m.json(),g=(c.status??"pending").toLowerCase(),p=c.fillTx??c.fillTxnRef??null,b=typeof c.actionsSucceeded=="boolean"?c.actionsSucceeded:null;if(g==="filled")return{status:"filled",destinationTxHash:p,actionsSucceeded:b};if(g==="refunded"||g==="expired")return{status:g,destinationTxHash:null,actionsSucceeded:!1};f={status:"pending",destinationTxHash:p,actionsSucceeded:b}}}catch{}l<h-1&&await new Promise(m=>setTimeout(m,d))}return f}async function dn(s){const{name:o,identity:r,signer:d}=s,h=p=>{var b;try{(b=s.onProgress)==null||b.call(s,p)}catch{}},f=s.chainId??V.chainId,l=s.provider??"across",m=(s.beneficiary??await d.getAddress()).toLowerCase();let c=null,g="unconfirmed";console.info("[names] register start",{name:o,buyer:m,chainId:f,provider:l}),h("preparing");try{const p=await gt(f),b=rn(p);console.info("[names] step 1/6 sized reservation",{usdCents:b,manaRate:p});const C=await an(r,o,{chainId:f,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 w=await bt(r,b,void 0,void 0,o);if(c=w.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:w.credit.id,maxCreditedValue:w.maxCreditedValue}),je.from(w.maxCreditedValue).lt(Z))throw new Error("Credit under-sized for the name price");h("awaiting-confirmation");const $=ln(w.credit,C);let v;try{v=await Ht({chainId:f,buyer:m,signer:d,args:$})}catch(x){if(!(x instanceof Ot))throw x;if(x.reason==="relayer-unreachable"){g="unobservable";const k=new $e;throw k.cause=x,k}v=await qt(f,$,d)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:v}),h("confirming"),await Dt(v),g="confirmed",console.info("[names] step 5/6 origin tx confirmed",{originTxHash:v}),l==="across"){h("registering");const x=await cn(v,s.acrossPoll);if(console.info("[names] step 6/6 across status",x),x.status==="pending")return{status:"pending",originTxHash:v};if(x.status==="filled"&&x.actionsSucceeded===null)return console.warn("[names] across filled without reporting actionsSucceeded — reporting pending",{originTxHash:v}),{status:"pending",originTxHash:v};if(x.status!=="filled"||x.actionsSucceeded!==!0)throw new Ce;return{status:"registered",originTxHash:v,destinationTxHash:x.destinationTxHash}}return{status:"pending",originTxHash:v}}catch(p){if(console.error("[names] register failed — raw error:",p,{name:o,buyer:m,originState:g}),p instanceof Gt)return{status:"pending",originTxHash:p.txHash};if(c&&g==="unconfirmed"&&await yt(r,[c]).catch(()=>{}),p instanceof ke||p instanceof Ce||p instanceof $e)throw p;const b=new Error(Zt(p,"Couldn't register the name. Please try again.",{sale:!0}));throw b.cause=p,b}}function hn(){const{data:s}=jt({queryKey:["feature-flag","shop-names"],queryFn:()=>Ct($t.SHOP_NAMES),staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return s===!0}const pn=60,un=700,fn=25;function mn(s){if(!s)return[];const o=[];for(let r=1;r<=s.length;r++)o.push({text:s.slice(0,r),delay:pn});o[o.length-1]={text:s,delay:un};for(let r=s.length-1;r>=1;r--)o.push({text:s.slice(0,r),delay:fn});return o}function xn(s){return s.flatMap(mn)}function gn(s,o){const r=u.useMemo(()=>xn(s),[s]),[d,h]=u.useState(0);return u.useEffect(()=>{if(!o||r.length===0)return;const f=setTimeout(()=>h(l=>(l+1)%r.length),r[d%r.length].delay);return()=>clearTimeout(f)},[d,o,r]),!o||r.length===0?"":r[d%r.length].text}const bn="https://cdn.decentraland.org/@dcl/shop/1.11.2/_assets/name-verified-oGwQ3ntb.svg",yn="#34fee6",wn=i.div`
1
+ import{r as m,b as He,j as e,u as tt}from"./react-BY3vVwvc.js";import{u as nt,s as st}from"./search-empty-CjwjsYp3.js";import{u as it,t as Ie,R as ot,j as rt,k as at,l as lt,m as ct,n as dt,o as ht,p as pt,v as ut,q as ft,r as mt,M as xt,s as gt}from"./browseLayout.styles-CQilLRye.js";import{c as q,R as bt,bv as yt,br as wt,aA as vt,a as jt,l as Ct,cw as $t,cx as kt,s as i,t,o as Oe,bf as St,r as Et,E as ve,b as n,p as Tt,I as E,q as O,cy as le,bd as Rt,ad as oe,bn as Le,bu as _t,bt as It,n as De,J as Ge,U as qe,V as Lt,ar as Nt,L as At,S as Ne,M as J,aI as zt,bE as Mt}from"./index-aVZCrQgK.js";import{L as Wt}from"./LoadMore-BaRjyF39.js";import{u as Bt}from"./useInfiniteGrid-B1PlvGpx.js";import{n as Pt,S as Ft}from"./categories-DeaLeWRX.js";import{E as Ut}from"./ErrorNotice-4SblVCJ8.js";import{d as Ht}from"./dcl-schemas-DhyZEUTb.js";import{s as Ot,G as Dt,w as Gt,S as qt}from"./buy-gasless-IWvDnyE1.js";import{s as Vt,o as Zt}from"./buy-wWHknAve.js";import{f as Qt}from"./errors-C7o97G4M.js";import{J as Kt,C as Jt,B as je}from"./ethers-ByWI-eMv.js";import{n as Xt}from"./name-glyph-aUugT8vq.js";import{G as Yt}from"./grid.styles-BIwLaIPU.js";import"./skeleton.styles-3JcIR00U.js";import"./sentry-DTXXLFvs.js";import"./intl-AKLEHPeO.js";import"./authorizations-DxGdOyfi.js";import"./sendMetaTransaction-BojzaFVf.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new s.Error().stack;o&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[o]="f72f41dc-16dd-4a40-8bc6-e824ccfcfdd3",s._sentryDebugIdIdentifier="sentry-dbid-f72f41dc-16dd-4a40-8bc6-e824ccfcfdd3")}catch{}})();function X(s){const o=s.source??"item",r=s.tradeId||`${s.contractAddress}-${s.tokenId??s.itemId??""}`;return`${o}:${r}`}const V="100000000000000000000",Ve=2,re=15,en=/^[a-zA-Z0-9]+$/;function Ae(s){const o=s.trim();return o.length===0?{ok:!1,reason:"empty"}:en.test(o)?o.length<Ve?{ok:!1,reason:"too-short"}:o.length>re?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function tn(s){return s.replace(/[^a-zA-Z0-9]/g,"").slice(0,re)}const nn=["function available(string _subdomain) view returns (bool)"],ze={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function sn(){return q.chainId===Number(Ht.ChainId.MATIC_MAINNET)?ze.mainnet:ze.sepolia}async function on(s,o={}){var u;const{rpc:r,address:d}=sn(),h=new Kt(r),x=new Jt(d,nn,h);console.info(`[names] availability check → DCLRegistrar(${d}).available("${s}") on ${r}`);const l=await x.available(s);if((u=o.signal)!=null&&u.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${s}" available=${l}`),l?"available":"taken"}const rn="https://app.across.to/api";class ke extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}class Ce extends Error{constructor(){super("The name could not be registered on Ethereum; your funds were recovered."),this.name="NameNotRegisteredError"}}class $e extends Error{constructor(){super("We couldn't confirm whether the purchase went through."),this.name="NameSettlementUnknownError"}}function an(s){return vt(V,s)}async function ln(s,o,r={}){var u;const d=r.chainId??q.chainId,h=r.provider??"across",x=`${q.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(o)}&chainId=${d}&provider=${h}`,l=await jt(x,{method:"GET",identity:s,metadata:{}});if(!l.ok){let c;try{c=(u=await l.json())==null?void 0:u.code}catch{}throw c==="ROUTE_COST_TOO_HIGH"?new ke:new Error(`fetchNameCreditRoute ${l.status}`)}return l.json()}function cn(s,o){const r=je.from(s.availableAmount),h=je.from(V).sub(r);return{credits:[{value:s.amount,expiresAt:Number(s.expiresAt),salt:Zt(s.id)}],creditsSignatures:[s.signature],externalCall:{target:o.externalCall.target,selector:o.externalCall.selector,data:o.externalCall.data,expiresAt:o.externalCall.expiresAt,salt:o.externalCall.salt},customExternalCallSignature:o.customExternalCallSignature,maxUncreditedValue:h.isNegative()?"0":h.toString(),maxCreditedValue:V}}async function dn(s,o={}){const r=rn,d=o.intervalMs??1e4,h=o.maxAttempts??60;let x={status:"pending",destinationTxHash:null,actionsSucceeded:null};for(let l=0;l<h;l++){try{const u=await fetch(`${r}/deposit/status?originChainId=137&depositTxHash=${s}`);if(u.ok){const c=await u.json(),p=(c.status??"pending").toLowerCase(),f=c.fillTx??c.fillTxnRef??null,w=typeof c.actionsSucceeded=="boolean"?c.actionsSucceeded:null;if(p==="filled")return{status:"filled",destinationTxHash:f,actionsSucceeded:w};if(p==="refunded"||p==="expired")return{status:p,destinationTxHash:null,actionsSucceeded:!1};x={status:"pending",destinationTxHash:f,actionsSucceeded:w}}}catch{}l<h-1&&await new Promise(u=>setTimeout(u,d))}return x}async function hn(s){const{name:o,identity:r,signer:d}=s,h=f=>{var w;try{(w=s.onProgress)==null||w.call(s,f)}catch{}},x=s.chainId??q.chainId,l=s.provider??"across",u=(s.beneficiary??await d.getAddress()).toLowerCase();let c=null,p="unconfirmed";console.info("[names] register start",{name:o,buyer:u,chainId:x,provider:l}),h("preparing");try{const f=await bt(x),w=an(f);console.info("[names] step 1/6 sized reservation",{usdCents:w,manaRate:f});const j=await ln(r,o,{chainId:x,provider:l});console.info("[names] step 2/6 route fetched",{target:j.externalCall.target,selector:j.externalCall.selector,provider:j.provider,quoteId:j.quoteId});const $=await yt(r,w,void 0,void 0,o);if(c=$.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:$.credit.id,maxCreditedValue:$.maxCreditedValue}),je.from($.maxCreditedValue).lt(V))throw new Error("Credit under-sized for the name price");h("awaiting-confirmation");const C=cn($.credit,j);let g;try{g=await Ot({chainId:x,buyer:u,signer:d,args:C})}catch(b){if(!(b instanceof Dt))throw b;if(b.reason==="relayer-unreachable"){p="unobservable";const S=new $e;throw S.cause=b,S}g=await Vt(x,C,d)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:g}),h("confirming"),await Gt(g),p="confirmed",console.info("[names] step 5/6 origin tx confirmed",{originTxHash:g}),l==="across"){h("registering");const b=await dn(g,s.acrossPoll);if(console.info("[names] step 6/6 across status",b),b.status==="pending")return{status:"pending",originTxHash:g};if(b.status==="filled"&&b.actionsSucceeded===null)return console.warn("[names] across filled without reporting actionsSucceeded — reporting pending",{originTxHash:g}),{status:"pending",originTxHash:g};if(b.status!=="filled"||b.actionsSucceeded!==!0)throw new Ce;return{status:"registered",originTxHash:g,destinationTxHash:b.destinationTxHash}}return{status:"pending",originTxHash:g}}catch(f){if(console.error("[names] register failed — raw error:",f,{name:o,buyer:u,originState:p}),f instanceof qt)return{status:"pending",originTxHash:f.txHash};if(c&&p==="unconfirmed"&&await wt(r,[c]).catch(()=>{}),f instanceof ke||f instanceof Ce||f instanceof $e)throw f;const w=new Error(Qt(f,"Couldn't register the name. Please try again.",{sale:!0}));throw w.cause=f,w}}function pn(){const{data:s}=Ct({queryKey:["feature-flag","shop-names"],queryFn:()=>$t(kt.SHOP_NAMES),staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return s===!0}const un=60,fn=700,mn=25;function xn(s){if(!s)return[];const o=[];for(let r=1;r<=s.length;r++)o.push({text:s.slice(0,r),delay:un});o[o.length-1]={text:s,delay:fn};for(let r=s.length-1;r>=1;r--)o.push({text:s.slice(0,r),delay:mn});return o}function gn(s){return s.flatMap(xn)}function bn(s,o){const r=m.useMemo(()=>gn(s),[s]),[d,h]=m.useState(0);return m.useEffect(()=>{if(!o||r.length===0)return;const x=setTimeout(()=>h(l=>(l+1)%r.length),r[d%r.length].delay);return()=>clearTimeout(x)},[d,o,r]),!o||r.length===0?"":r[d%r.length].text}const yn="https://cdn.decentraland.org/@dcl/shop/1.11.3-33155570552.commit-80e7685/_assets/name-verified-oGwQ3ntb.svg",wn="#34fee6",vn=i.div`
2
2
  position: fixed;
3
3
  inset: 0;
4
4
  z-index: 10000;
@@ -7,7 +7,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
7
7
  justify-content: center;
8
8
  padding: 16px;
9
9
  background: rgba(22, 21, 24, 0.55);
10
- `,vn=i.div`
10
+ `,jn=i.div`
11
11
  width: 560px;
12
12
  max-width: 100%;
13
13
  max-height: 92vh;
@@ -77,7 +77,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
77
77
  display: flex;
78
78
  align-items: center;
79
79
  gap: 16px;
80
- `,jn=i.div`
80
+ `,Cn=i.div`
81
81
  flex: none;
82
82
  display: flex;
83
83
  flex-direction: column;
@@ -90,11 +90,11 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
90
90
  border-radius: 12px;
91
91
  overflow: hidden;
92
92
  background: ${t.gradients.amethyst};
93
- `,Cn=i.img`
93
+ `,$n=i.img`
94
94
  display: block;
95
95
  width: 47px;
96
96
  height: 47px;
97
- `,$n=i.span`
97
+ `,kn=i.span`
98
98
  display: inline-flex;
99
99
  align-items: center;
100
100
  gap: 2px;
@@ -104,7 +104,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
104
104
  font-size: 18px;
105
105
  font-weight: 600;
106
106
  /* The design's cyan — it has to read against the purple, which the body text colour would not. */
107
- color: ${yn};
107
+ color: ${wn};
108
108
  white-space: nowrap;
109
109
  overflow: hidden;
110
110
 
@@ -115,7 +115,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
115
115
  overflow: hidden;
116
116
  text-overflow: ellipsis;
117
117
  }
118
- `,kn=i.img`
118
+ `,Sn=i.img`
119
119
  flex: none;
120
120
  display: block;
121
121
  width: 14px;
@@ -170,17 +170,17 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
170
170
  height: 22px;
171
171
  color: ${t.colors.brandViolet};
172
172
  }
173
- `,Sn=i.div`
173
+ `,En=i.div`
174
174
  margin-top: 16px;
175
175
  padding: 16px;
176
176
  border-radius: 12px;
177
177
  background: ${t.colors.promptLilac};
178
- `,En=i.div`
178
+ `,Tn=i.div`
179
179
  font-family: ${t.font.sans};
180
180
  font-weight: 700;
181
181
  font-size: 16px;
182
182
  color: ${t.colors.text};
183
- `,Tn=i.p`
183
+ `,Rn=i.p`
184
184
  margin: 8px 0 16px;
185
185
  font-family: ${t.font.sans};
186
186
  font-size: 14px;
@@ -196,7 +196,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
196
196
  -webkit-background-clip: text;
197
197
  color: transparent;
198
198
  }
199
- `,Rn=i.label`
199
+ `,_n=i.label`
200
200
  display: flex;
201
201
  align-items: center;
202
202
  gap: 8px;
@@ -211,12 +211,12 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
211
211
  &:focus-within {
212
212
  border-color: ${t.colors.magenta};
213
213
  }
214
- `,_n=i.span`
214
+ `,In=i.span`
215
215
  flex: none;
216
216
  font-family: ${t.font.sans};
217
217
  font-size: 18px;
218
218
  color: ${t.colors.muted2};
219
- `,In=i.input`
219
+ `,Ln=i.input`
220
220
  flex: 0 1 auto;
221
221
  min-width: 0;
222
222
  border: 0;
@@ -231,7 +231,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
231
231
  color: ${t.colors.muted2};
232
232
  font-weight: 400;
233
233
  }
234
- `,Ln=i.span`
234
+ `,Nn=i.span`
235
235
  flex: none;
236
236
  font-family: ${t.font.sans};
237
237
  font-size: 16px;
@@ -266,7 +266,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
266
266
  cursor: not-allowed;
267
267
  opacity: 0.5;
268
268
  }
269
- `,Nn=i.div`
269
+ `,An=i.div`
270
270
  display: flex;
271
271
  flex: 1;
272
272
  flex-direction: column;
@@ -274,36 +274,36 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
274
274
  justify-content: center;
275
275
  gap: 32px;
276
276
  padding: 32px 0 8px;
277
- `,An=i.img`
277
+ `,zn=i.img`
278
278
  width: 61px;
279
279
  height: 61px;
280
- `,zn=i.div`
280
+ `,Mn=i.div`
281
281
  display: flex;
282
282
  flex-direction: column;
283
283
  align-items: center;
284
284
  gap: 8px;
285
285
  width: 100%;
286
- `,Mn=i.div`
286
+ `,Wn=i.div`
287
287
  font-family: ${t.font.sans};
288
288
  font-weight: 700;
289
289
  font-size: 20px;
290
290
  line-height: 1.6;
291
291
  color: ${t.colors.text2};
292
292
  text-align: center;
293
- `,Wn=i.p`
293
+ `,Bn=i.p`
294
294
  max-width: 400px;
295
295
  font-family: ${t.font.sans};
296
296
  font-size: 14px;
297
297
  line-height: 1.57;
298
298
  color: ${t.colors.muted};
299
299
  text-align: center;
300
- `,Bn=i.div`
300
+ `,Pn=i.div`
301
301
  display: flex;
302
302
  align-items: center;
303
303
  justify-content: center;
304
304
  gap: 8px;
305
305
  width: 100%;
306
- `,Pn=i.div`
306
+ `,Fn=i.div`
307
307
  flex: 1;
308
308
  max-width: 400px;
309
309
  height: 10px;
@@ -335,13 +335,13 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
335
335
  animation: none;
336
336
  }
337
337
  }
338
- `,Fn=i.span`
338
+ `,Un=i.span`
339
339
  flex: none;
340
340
  font-family: ${t.font.sans};
341
341
  font-size: 16px;
342
342
  line-height: 22px;
343
343
  color: ${t.colors.text2};
344
- `,Un=i.div`
344
+ `,Hn=i.div`
345
345
  display: flex;
346
346
  flex-direction: column;
347
347
  align-items: center;
@@ -350,7 +350,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
350
350
  border-radius: 12px;
351
351
  background: #e2f5ea;
352
352
  text-align: center;
353
- `,Hn=i.div`
353
+ `,On=i.div`
354
354
  display: grid;
355
355
  place-items: center;
356
356
  width: 56px;
@@ -363,7 +363,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
363
363
  width: 30px;
364
364
  height: 30px;
365
365
  }
366
- `,On=i.p`
366
+ `,Dn=i.p`
367
367
  margin: 0;
368
368
  font-family: ${t.font.sans};
369
369
  font-size: 16px;
@@ -402,7 +402,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
402
402
  outline: 2px solid ${t.colors.accent};
403
403
  outline-offset: 2px;
404
404
  }
405
- `,Dn=i.a`
405
+ `,Gn=i.a`
406
406
  flex: 1;
407
407
  display: inline-flex;
408
408
  align-items: center;
@@ -458,10 +458,10 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
458
458
  color: ${t.colors.accent};
459
459
  }
460
460
  }
461
- `;function Gn({name:s,priceCredits:o,onClose:r}){const{session:d}=Oe(),{data:h,isError:f}=kt(d),l=St(),m=He(),[c,g]=u.useState("confirm"),[p,b]=u.useState(""),[C,w]=u.useState(null),[$,v]=u.useState(!1),[x,k]=u.useState("preparing"),L=u.useRef(!1),T=p.trim().toLowerCase()===s.toLowerCase(),N=c==="completing",M=o!=null?ve(o):"—",B=o==null,W=h==null?void 0:h.credits,P=o!=null&&W!=null?o-W:0,S=P>0,F=B?n("names.priceUnavailable"):S?n("names.insufficientCredits",{credits:ve(P)}):null;u.useEffect(()=>{const y=G=>{G.key==="Escape"&&!N&&r()};document.addEventListener("keydown",y);const D=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",y),document.body.style.overflow=D}},[N,r]);async function R(){if(!(!d||!T||B||S||L.current)){L.current=!0,g("completing"),w(null),k("preparing");try{const y=await dn({name:s,identity:d.identity,signer:d.signer,onProgress:k});oe("Shop Completed Purchase",{items:[{item_id:null,contract_address:null,token_id:null,price_usd:Le(o??0),category:"name",is_smart:!1}],purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:o??null,value_usd:Le(o??0),transaction_hash:y.originTxHash??null,settlement:y.status}),l.invalidateQueries({queryKey:["usd-balance"]}),l.invalidateQueries({queryKey:["my-assets"]}),g(y.status==="registered"?"success":"pending")}catch(y){oe(_t(y)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:Rt(y),purchase_type:"name"});const D=y instanceof Ce,G=y instanceof $e;w(y instanceof ke?n("names.errorRouteCost"):D?n("names.errorNotRegistered"):G?n("names.errorSettlementUnknown"):(y==null?void 0:y.message)||n("names.errorGeneric")),v(D||G),g("error")}finally{L.current=!1}}}const _=c!=="success"&&c!=="pending",j=Et(d==null?void 0:d.providerType),A=j?2:1,z=j&&(x==="preparing"||x==="awaiting-confirmation"),I=z?1:A,ae=z?n("names.confirming"):n("names.completing"),U=x==="registering"?n("names.processingRegistering"):null;return e.jsx(wn,{onClick:N?void 0:r,role:"presentation",children:e.jsxs(vn,{role:"dialog","aria-modal":"true","aria-label":n("names.buyTitle"),onClick:y=>y.stopPropagation(),children:[_&&e.jsxs(e.Fragment,{children:[e.jsxs(ce,{children:[e.jsx(de,{children:c==="error"?n("names.errorTitle"):n("names.buyTitle")}),e.jsx(he,{onClick:r,disabled:N,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(O,{})," ",le(h,f)]}),e.jsx(ue,{})]}),(c==="confirm"||c==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs(fe,{children:[e.jsx(Me,{"aria-hidden":!0,children:"@"}),e.jsxs(me,{children:[e.jsxs(xe,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(be,{children:[e.jsx(O,{}),M]})]}),c==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(we,{children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsx("span",{children:C})]}),$?e.jsx(ye,{onClick:r,children:n("names.errorSpentDismiss")}):e.jsx(ye,{onClick:()=>g("confirm"),children:n("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(Sn,{children:[e.jsx(En,{children:n("names.confirmTitle")}),e.jsx(Tn,{dangerouslySetInnerHTML:{__html:n("names.confirmBody",{name:`<b>@${qn(s)}</b>`})}}),e.jsxs(Rn,{children:[e.jsx(_n,{"aria-hidden":!0,children:"@"}),e.jsx(In,{value:p,onChange:y=>b(y.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":n("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(p.length,8)}ch`}}),e.jsx(Ln,{children:".dcl.eth"})]})]}),F?e.jsxs(we,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsx("span",{children:F})]}):null,e.jsx(ye,{onClick:()=>void R(),disabled:!T||!d||B||S,children:n("names.buyCta")})]})]}),c==="completing"&&e.jsxs(Nn,{children:[e.jsx(An,{src:Tt,alt:"",width:61,height:61}),e.jsxs(zn,{children:[e.jsx(Mn,{children:ae}),e.jsxs(Bn,{children:[e.jsx(Pn,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(Fn,{"data-testid":"name-progress-count",children:`${I}/${A}`})]}),U?e.jsx(Wn,{children:U}):null]})]}),c==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs(ce,{children:[e.jsx(de,{children:n("names.pendingHeaderTitle")}),e.jsx(he,{onClick:r,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(O,{})," ",le(h,f)]}),e.jsx(ue,{}),e.jsxs(we,{"data-tone":"info",children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("b",{children:n("names.pendingBannerBold")})," ",n("names.pendingBannerRest")]})]}),e.jsxs(fe,{style:{marginTop:20},children:[e.jsx(Me,{"aria-hidden":!0,children:"@"}),e.jsxs(me,{children:[e.jsxs(xe,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(be,{children:[e.jsx(O,{}),M]})]}),e.jsx(We,{children:e.jsx(Be,{onClick:()=>{r(),m("/my-items")},children:n("names.myItems")})})]}),c==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(ce,{children:[e.jsx(de,{children:n("names.successHeaderTitle")}),e.jsx(he,{onClick:r,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(O,{})," ",le(h,f)]}),e.jsx(ue,{}),e.jsxs(Un,{children:[e.jsx(Hn,{"aria-hidden":!0,children:e.jsx(E,{name:"check"})}),e.jsxs(On,{children:[e.jsx("b",{children:n("names.successBannerBold")})," ",n("names.successBannerRest")]})]}),e.jsxs(fe,{style:{marginTop:20},children:[e.jsxs(jn,{"data-testid":"name-success-tile",children:[e.jsx(Cn,{src:Jt,alt:"","aria-hidden":!0,width:47,height:47}),e.jsxs($n,{children:[e.jsx("span",{"aria-hidden":!0,children:s}),e.jsx(kn,{src:bn,alt:"","aria-hidden":!0,width:14,height:14})]})]}),e.jsxs(me,{children:[e.jsxs(xe,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(be,{children:[e.jsx(O,{}),M]})]}),e.jsxs(We,{children:[e.jsx(Be,{onClick:()=>{r(),m("/my-items")},children:n("names.myItems")}),e.jsx(Dn,{href:V.profileUrl,target:"_blank",rel:"noopener noreferrer",children:n("names.assignToAvatar")})]})]})]})})}function qn(s){return s.replace(/[&<>"']/g,o=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[o])}const Vn="https://cdn.decentraland.org/@dcl/shop/1.11.2/_assets/identity-icon-C8yAW_Gq.svg",Zn="https://cdn.decentraland.org/@dcl/shop/1.11.2/_assets/world-icon-6xQ-PmmW.svg",Qn="https://cdn.decentraland.org/@dcl/shop/1.11.2/_assets/invite-icon-Bz6lCTuB.svg",Kn="data:image/svg+xml,%3csvg%20width='55.6797'%20height='63.6174'%20viewBox='0%200%2055.6797%2063.6174'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Vote'%3e%3cpath%20id='Vector'%20d='M0.055012%2039.1045C1.61191%2039.4989%202.83757%2039.3938%204.4307%2039.392L8.27108%2039.3878L20.7762%2039.3883L42.8819%2039.3904L50.0954%2039.3907C51.793%2039.3907%2054.0562%2039.5509%2055.6466%2039.0843C55.5909%2040.7931%2055.647%2042.8581%2055.6469%2044.5864L55.6479%2055.616L55.6559%2059.5618C55.6583%2060.6219%2055.8213%2061.9838%2055.261%2062.8837C55.2205%2062.9265%2055.1794%2062.9688%2055.1377%2063.0104C54.7986%2063.3482%2054.3791%2063.5594%2053.9021%2063.5761C52.0714%2063.642%2050.1544%2063.6097%2048.3241%2063.6078L37.4452%2063.6066L2.97352%2063.6103C2.2022%2063.6084%201.15943%2063.6718%200.589171%2063.0576C-0.204857%2062.2037%200.0327979%2060.3244%200.0349529%2059.1687L0.0414734%2054.3929C0.0413119%2049.3191%20-0.00749456%2044.1727%200.055012%2039.1045Z'%20fill='white'%20fill-opacity='0.8'/%3e%3cpath%20id='Subtract'%20d='M37.1168%200.00495927C38.1773%200.00461149%2039.2888%20-0.0284991%2040.3433%200.0811311C41.0714%200.15695%2041.7266%200.914583%2041.7857%201.63484C41.853%202.45491%2041.8268%203.31926%2041.8258%204.15144L41.8189%208.70418L41.8199%2023.9639L40.1099%2023.9659L13.8726%2023.963L13.8678%209.0909L13.8648%204.29793C13.8644%202.52652%2013.3942%200.34203%2015.6754%200.0342561C15.8907%200.016712%2016.237%200.0120998%2016.4557%200.0117952C21.6059%200.00480262%2026.761%200.0117634%2031.9107%200.00788896L37.1168%200.00495927ZM33.3834%206.17293C32.439%206.55612%2031.0531%208.12922%2030.3014%208.88191L25.8297%2013.3634C25.3537%2012.824%2023.3455%2010.7605%2022.8209%2010.4239C22.5581%2010.2549%2022.2566%2010.1546%2021.9449%2010.1329C21.4563%2010.1008%2020.9754%2010.2879%2020.6139%2010.6134C20.2442%2010.9428%2020.0227%2011.4077%2020.0006%2011.9024C19.9561%2013.0748%2021.3406%2014.1198%2022.1256%2014.8868C22.9429%2015.714%2024.1669%2017.1028%2025.1168%2017.67C26.1632%2018.2949%2027.3471%2017.2145%2027.9723%2016.4942C30.25%2014.2025%2032.5393%2011.9456%2034.8101%209.64949C35.2937%209.16062%2035.7138%208.69126%2035.6851%207.96199C35.6419%206.86558%2034.7821%206.09682%2033.6959%206.14656C33.5914%206.15085%2033.4872%206.16001%2033.3834%206.17293Z'%20fill='%23FF7439'/%3e%3cpath%20id='Vector_2'%20d='M45.5498%2015.976C46.6399%2015.986%2049.9504%2015.7705%2050.7361%2016.241C51.0104%2016.4053%2051.2831%2016.6446%2051.4181%2016.9397C51.892%2017.9763%2052.1015%2019.357%2052.3802%2020.4819L54.0582%2027.2308C54.5046%2028.9073%2054.9023%2030.6043%2055.3338%2032.2824C55.6029%2033.329%2055.9417%2034.4293%2054.9705%2035.2255C54.8158%2035.359%2054.4427%2035.5934%2054.2329%2035.6091C52.7731%2035.7184%2051.1693%2035.6701%2049.7108%2035.6679L39.4635%2035.6649L14.5239%2035.6632C10.471%2035.6631%206.41808%2035.6665%202.36531%2035.6698C1.79359%2035.6657%201.33794%2035.6604%200.844568%2035.337C-0.57365%2034.4073%200.381076%2032.2112%200.72189%2030.8501L1.93462%2025.9936L3.28579%2020.566C3.53371%2019.5688%203.77194%2018.5694%204.04289%2017.5781C4.30559%2016.6172%204.74298%2016.1492%205.73966%2015.9892C7.15095%2015.9419%208.72017%2015.9778%2010.1434%2015.9809L10.1451%2023.9585C7.37011%2024.097%207.74242%2027.5535%209.84963%2027.6469C11.6268%2027.7258%2013.6164%2027.6909%2015.4098%2027.691L26.229%2027.6915L39.1339%2027.691L43.273%2027.6909C44.748%2027.6909%2047.2174%2028.0848%2047.3773%2025.9908C47.4212%2025.4807%2047.2565%2024.9745%2046.9209%2024.5879C46.5265%2024.141%2046.1143%2024.0046%2045.5418%2023.9673L45.5498%2015.976Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",Jn=i.div`
461
+ `;function qn({name:s,priceCredits:o,onClose:r}){const{session:d}=Oe(),{data:h,isError:x}=St(d),l=Et(),u=He(),[c,p]=m.useState("confirm"),[f,w]=m.useState(""),[j,$]=m.useState(null),[C,g]=m.useState(!1),[b,S]=m.useState("preparing"),L=m.useRef(!1),T=f.trim().toLowerCase()===s.toLowerCase(),k=c==="completing",W=o!=null?ve(o):"—",B=o==null,z=h==null?void 0:h.credits,P=o!=null&&z!=null?o-z:0,N=P>0,A=B?n("names.priceUnavailable"):N?n("names.insufficientCredits",{credits:ve(P)}):null;m.useEffect(()=>{const y=D=>{D.key==="Escape"&&!k&&r()};document.addEventListener("keydown",y);const U=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",y),document.body.style.overflow=U}},[k,r]);async function F(){if(!(!d||!T||B||N||L.current)){L.current=!0,p("completing"),$(null),S("preparing");try{const y=await hn({name:s,identity:d.identity,signer:d.signer,onProgress:S});oe("Shop Completed Purchase",{items:[{item_id:null,contract_address:null,token_id:null,price_usd:Le(o??0),category:"name",is_smart:!1}],purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:o??null,value_usd:Le(o??0),transaction_hash:y.originTxHash??null,settlement:y.status}),l.invalidateQueries({queryKey:["usd-balance"]}),l.invalidateQueries({queryKey:["my-assets"]}),p(y.status==="registered"?"success":"pending")}catch(y){oe(It(y)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:_t(y),purchase_type:"name"});const U=y instanceof Ce,D=y instanceof $e;$(y instanceof ke?n("names.errorRouteCost"):U?n("names.errorNotRegistered"):D?n("names.errorSettlementUnknown"):(y==null?void 0:y.message)||n("names.errorGeneric")),g(U||D),p("error")}finally{L.current=!1}}}const R=c!=="success"&&c!=="pending",v=Tt(d==null?void 0:d.providerType),I=v?2:1,M=v&&(b==="preparing"||b==="awaiting-confirmation"),_=M?1:I,ae=M?n("names.confirming"):n("names.completing"),Z=b==="registering"?n("names.processingRegistering"):null;return e.jsx(vn,{onClick:k?void 0:r,role:"presentation",children:e.jsxs(jn,{role:"dialog","aria-modal":"true","aria-label":n("names.buyTitle"),onClick:y=>y.stopPropagation(),children:[R&&e.jsxs(e.Fragment,{children:[e.jsxs(ce,{children:[e.jsx(de,{children:c==="error"?n("names.errorTitle"):n("names.buyTitle")}),e.jsx(he,{onClick:r,disabled:k,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(O,{})," ",le(h,x)]}),e.jsx(ue,{})]}),(c==="confirm"||c==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs(fe,{children:[e.jsx(Me,{"aria-hidden":!0,children:"@"}),e.jsxs(me,{children:[e.jsxs(xe,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(be,{children:[e.jsx(O,{}),W]})]}),c==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(we,{children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsx("span",{children:j})]}),C?e.jsx(ye,{onClick:r,children:n("names.errorSpentDismiss")}):e.jsx(ye,{onClick:()=>p("confirm"),children:n("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(En,{children:[e.jsx(Tn,{children:n("names.confirmTitle")}),e.jsx(Rn,{dangerouslySetInnerHTML:{__html:n("names.confirmBody",{name:`<b>@${Vn(s)}</b>`})}}),e.jsxs(_n,{children:[e.jsx(In,{"aria-hidden":!0,children:"@"}),e.jsx(Ln,{value:f,onChange:y=>w(y.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":n("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(f.length,8)}ch`}}),e.jsx(Nn,{children:".dcl.eth"})]})]}),A?e.jsxs(we,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsx("span",{children:A})]}):null,e.jsx(ye,{onClick:()=>void F(),disabled:!T||!d||B||N,children:n("names.buyCta")})]})]}),c==="completing"&&e.jsxs(An,{children:[e.jsx(zn,{src:Rt,alt:"",width:61,height:61}),e.jsxs(Mn,{children:[e.jsx(Wn,{children:ae}),e.jsxs(Pn,{children:[e.jsx(Fn,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(Un,{"data-testid":"name-progress-count",children:`${_}/${I}`})]}),Z?e.jsx(Bn,{children:Z}):null]})]}),c==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs(ce,{children:[e.jsx(de,{children:n("names.pendingHeaderTitle")}),e.jsx(he,{onClick:r,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(O,{})," ",le(h,x)]}),e.jsx(ue,{}),e.jsxs(we,{"data-tone":"info",children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("b",{children:n("names.pendingBannerBold")})," ",n("names.pendingBannerRest")]})]}),e.jsxs(fe,{style:{marginTop:20},children:[e.jsx(Me,{"aria-hidden":!0,children:"@"}),e.jsxs(me,{children:[e.jsxs(xe,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(be,{children:[e.jsx(O,{}),W]})]}),e.jsx(We,{children:e.jsx(Be,{onClick:()=>{r(),u("/my-items")},children:n("names.myItems")})})]}),c==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(ce,{children:[e.jsx(de,{children:n("names.successHeaderTitle")}),e.jsx(he,{onClick:r,"aria-label":n("buyModal.close"),children:e.jsx(E,{name:"close"})})]}),e.jsxs(pe,{children:[n("names.myCreditsBalance")," ",e.jsx(O,{})," ",le(h,x)]}),e.jsx(ue,{}),e.jsxs(Hn,{children:[e.jsx(On,{"aria-hidden":!0,children:e.jsx(E,{name:"check"})}),e.jsxs(Dn,{children:[e.jsx("b",{children:n("names.successBannerBold")})," ",n("names.successBannerRest")]})]}),e.jsxs(fe,{style:{marginTop:20},children:[e.jsxs(Cn,{"data-testid":"name-success-tile",children:[e.jsx($n,{src:Xt,alt:"","aria-hidden":!0,width:47,height:47}),e.jsxs(kn,{children:[e.jsx("span",{"aria-hidden":!0,children:s}),e.jsx(Sn,{src:yn,alt:"","aria-hidden":!0,width:14,height:14})]})]}),e.jsxs(me,{children:[e.jsxs(xe,{children:[s,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(ge,{children:n("names.subtitle")})]}),e.jsxs(be,{children:[e.jsx(O,{}),W]})]}),e.jsxs(We,{children:[e.jsx(Be,{onClick:()=>{r(),u("/my-items")},children:n("names.myItems")}),e.jsx(Gn,{href:q.profileUrl,target:"_blank",rel:"noopener noreferrer",children:n("names.assignToAvatar")})]})]})]})})}function Vn(s){return s.replace(/[&<>"']/g,o=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[o])}const Zn="https://cdn.decentraland.org/@dcl/shop/1.11.3-33155570552.commit-80e7685/_assets/identity-icon-C8yAW_Gq.svg",Qn="https://cdn.decentraland.org/@dcl/shop/1.11.3-33155570552.commit-80e7685/_assets/world-icon-6xQ-PmmW.svg",Kn="https://cdn.decentraland.org/@dcl/shop/1.11.3-33155570552.commit-80e7685/_assets/invite-icon-Bz6lCTuB.svg",Jn="data:image/svg+xml,%3csvg%20width='55.6797'%20height='63.6174'%20viewBox='0%200%2055.6797%2063.6174'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Vote'%3e%3cpath%20id='Vector'%20d='M0.055012%2039.1045C1.61191%2039.4989%202.83757%2039.3938%204.4307%2039.392L8.27108%2039.3878L20.7762%2039.3883L42.8819%2039.3904L50.0954%2039.3907C51.793%2039.3907%2054.0562%2039.5509%2055.6466%2039.0843C55.5909%2040.7931%2055.647%2042.8581%2055.6469%2044.5864L55.6479%2055.616L55.6559%2059.5618C55.6583%2060.6219%2055.8213%2061.9838%2055.261%2062.8837C55.2205%2062.9265%2055.1794%2062.9688%2055.1377%2063.0104C54.7986%2063.3482%2054.3791%2063.5594%2053.9021%2063.5761C52.0714%2063.642%2050.1544%2063.6097%2048.3241%2063.6078L37.4452%2063.6066L2.97352%2063.6103C2.2022%2063.6084%201.15943%2063.6718%200.589171%2063.0576C-0.204857%2062.2037%200.0327979%2060.3244%200.0349529%2059.1687L0.0414734%2054.3929C0.0413119%2049.3191%20-0.00749456%2044.1727%200.055012%2039.1045Z'%20fill='white'%20fill-opacity='0.8'/%3e%3cpath%20id='Subtract'%20d='M37.1168%200.00495927C38.1773%200.00461149%2039.2888%20-0.0284991%2040.3433%200.0811311C41.0714%200.15695%2041.7266%200.914583%2041.7857%201.63484C41.853%202.45491%2041.8268%203.31926%2041.8258%204.15144L41.8189%208.70418L41.8199%2023.9639L40.1099%2023.9659L13.8726%2023.963L13.8678%209.0909L13.8648%204.29793C13.8644%202.52652%2013.3942%200.34203%2015.6754%200.0342561C15.8907%200.016712%2016.237%200.0120998%2016.4557%200.0117952C21.6059%200.00480262%2026.761%200.0117634%2031.9107%200.00788896L37.1168%200.00495927ZM33.3834%206.17293C32.439%206.55612%2031.0531%208.12922%2030.3014%208.88191L25.8297%2013.3634C25.3537%2012.824%2023.3455%2010.7605%2022.8209%2010.4239C22.5581%2010.2549%2022.2566%2010.1546%2021.9449%2010.1329C21.4563%2010.1008%2020.9754%2010.2879%2020.6139%2010.6134C20.2442%2010.9428%2020.0227%2011.4077%2020.0006%2011.9024C19.9561%2013.0748%2021.3406%2014.1198%2022.1256%2014.8868C22.9429%2015.714%2024.1669%2017.1028%2025.1168%2017.67C26.1632%2018.2949%2027.3471%2017.2145%2027.9723%2016.4942C30.25%2014.2025%2032.5393%2011.9456%2034.8101%209.64949C35.2937%209.16062%2035.7138%208.69126%2035.6851%207.96199C35.6419%206.86558%2034.7821%206.09682%2033.6959%206.14656C33.5914%206.15085%2033.4872%206.16001%2033.3834%206.17293Z'%20fill='%23FF7439'/%3e%3cpath%20id='Vector_2'%20d='M45.5498%2015.976C46.6399%2015.986%2049.9504%2015.7705%2050.7361%2016.241C51.0104%2016.4053%2051.2831%2016.6446%2051.4181%2016.9397C51.892%2017.9763%2052.1015%2019.357%2052.3802%2020.4819L54.0582%2027.2308C54.5046%2028.9073%2054.9023%2030.6043%2055.3338%2032.2824C55.6029%2033.329%2055.9417%2034.4293%2054.9705%2035.2255C54.8158%2035.359%2054.4427%2035.5934%2054.2329%2035.6091C52.7731%2035.7184%2051.1693%2035.6701%2049.7108%2035.6679L39.4635%2035.6649L14.5239%2035.6632C10.471%2035.6631%206.41808%2035.6665%202.36531%2035.6698C1.79359%2035.6657%201.33794%2035.6604%200.844568%2035.337C-0.57365%2034.4073%200.381076%2032.2112%200.72189%2030.8501L1.93462%2025.9936L3.28579%2020.566C3.53371%2019.5688%203.77194%2018.5694%204.04289%2017.5781C4.30559%2016.6172%204.74298%2016.1492%205.73966%2015.9892C7.15095%2015.9419%208.72017%2015.9778%2010.1434%2015.9809L10.1451%2023.9585C7.37011%2024.097%207.74242%2027.5535%209.84963%2027.6469C11.6268%2027.7258%2013.6164%2027.6909%2015.4098%2027.691L26.229%2027.6915L39.1339%2027.691L43.273%2027.6909C44.748%2027.6909%2047.2174%2028.0848%2047.3773%2025.9908C47.4212%2025.4807%2047.2565%2024.9745%2046.9209%2024.5879C46.5265%2024.141%2046.1143%2024.0046%2045.5418%2023.9673L45.5498%2015.976Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",Xn=i.div`
462
462
  width: 100%;
463
463
  min-width: 0;
464
- `,Xn=i.nav`
464
+ `,Yn=i.nav`
465
465
  display: flex;
466
466
  align-items: center;
467
467
  gap: 6px;
@@ -470,7 +470,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
470
470
  font-size: 12px;
471
471
  line-height: 1;
472
472
  color: ${t.colors.gray4};
473
- `,Yn=i.button`
473
+ `,es=i.button`
474
474
  border: 0;
475
475
  background: none;
476
476
  padding: 0;
@@ -486,10 +486,10 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
486
486
  outline: 2px solid ${t.colors.white};
487
487
  outline-offset: 2px;
488
488
  }
489
- `,es=i.span`
489
+ `,ts=i.span`
490
490
  font-weight: 700;
491
491
  color: ${t.colors.softWhite};
492
- `,ts=i.div`
492
+ `,ns=i.div`
493
493
  display: flex;
494
494
  flex-direction: column;
495
495
  gap: 48px;
@@ -499,7 +499,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
499
499
  gap: 32px;
500
500
  padding-bottom: 32px;
501
501
  }
502
- `,ns=i.div`
502
+ `,ss=i.div`
503
503
  position: relative;
504
504
  border: 1px solid ${t.colors.magenta};
505
505
  border-radius: 24px;
@@ -516,12 +516,12 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
516
516
  padding: 40px 20px;
517
517
  gap: 28px;
518
518
  }
519
- `,ss=i.div`
519
+ `,is=i.div`
520
520
  display: flex;
521
521
  flex-direction: column;
522
522
  align-items: center;
523
523
  gap: 12px;
524
- `,is=i.h1`
524
+ `,os=i.h1`
525
525
  margin: 0;
526
526
  font-family: ${t.font.sans};
527
527
  font-weight: 600;
@@ -532,7 +532,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
532
532
  ${t.media.maxWidth("mobile")} {
533
533
  font-size: 26px;
534
534
  }
535
- `,os=i.p`
535
+ `,rs=i.p`
536
536
  margin: 0;
537
537
  max-width: 760px;
538
538
  font-family: ${t.font.sans};
@@ -544,14 +544,14 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
544
544
  ${t.media.maxWidth("mobile")} {
545
545
  font-size: 16px;
546
546
  }
547
- `,rs=i.div`
547
+ `,as=i.div`
548
548
  width: min(785px, 100%);
549
549
  display: flex;
550
550
  flex-direction: column;
551
551
  gap: 12px;
552
- `,as=i.div`
552
+ `,ls=i.div`
553
553
  position: relative;
554
- `,ls=i("div",Bt("invalid"))`
554
+ `,cs=i("div",Pt("invalid"))`
555
555
  display: flex;
556
556
  align-items: center;
557
557
  gap: 8px;
@@ -569,7 +569,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
569
569
  ${t.media.maxWidth("mobile")} {
570
570
  border-radius: 16px;
571
571
  }
572
- `,cs=i.span`
572
+ `,ds=i.span`
573
573
  position: absolute;
574
574
  left: -9999px;
575
575
  top: 0;
@@ -591,7 +591,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
591
591
  ${t.media.maxWidth("mobile")} {
592
592
  font-size: 16px;
593
593
  }
594
- `,ds=i.div`
594
+ `,hs=i.div`
595
595
  position: absolute;
596
596
  top: calc(100% + 8px);
597
597
  left: 0;
@@ -629,9 +629,9 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
629
629
  ${t.media.maxWidth("mobile")} {
630
630
  margin-left: 0;
631
631
  }
632
- `,hs=i(Ze)`
632
+ `,ps=i(Ze)`
633
633
  color: #ec303a;
634
- `,ps=i.label`
634
+ `,us=i.label`
635
635
  flex: 1;
636
636
  min-width: 0;
637
637
  display: flex;
@@ -639,7 +639,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
639
639
  gap: 0;
640
640
  cursor: text;
641
641
  overflow: hidden;
642
- `,us=i.span`
642
+ `,fs=i.span`
643
643
  flex: none;
644
644
  margin-right: 8px;
645
645
  font-family: ${t.font.sans};
@@ -651,7 +651,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
651
651
  ${t.media.maxWidth("mobile")} {
652
652
  font-size: 20px;
653
653
  }
654
- `,fs=i.input`
654
+ `,ms=i.input`
655
655
  flex: 0 1 auto;
656
656
  min-width: 0;
657
657
  max-width: 100%;
@@ -673,7 +673,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
673
673
  ${t.media.maxWidth("mobile")} {
674
674
  font-size: 16px;
675
675
  }
676
- `,ms=i.span`
676
+ `,xs=i.span`
677
677
  flex: none;
678
678
  /* Flush against the name: "yourname.dcl.eth" has to read as one address, and at 20px even a couple of
679
679
  pixels here look like a space someone typed by mistake. */
@@ -690,7 +690,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
690
690
  ${t.media.maxWidth("mobile")} {
691
691
  font-size: 16px;
692
692
  }
693
- `,xs=i.span`
693
+ `,gs=i.span`
694
694
  flex: none;
695
695
  font-family: ${t.font.sans};
696
696
  font-size: 14px;
@@ -736,7 +736,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
736
736
  ${t.media.maxWidth("mobile")} {
737
737
  display: none;
738
738
  }
739
- `,gs=i(Qe)`
739
+ `,bs=i(Qe)`
740
740
  display: none;
741
741
 
742
742
  ${t.media.maxWidth("mobile")} {
@@ -745,7 +745,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
745
745
  height: 48px;
746
746
  border-radius: 12px;
747
747
  }
748
- `,bs=i.span`
748
+ `,ys=i.span`
749
749
  display: inline-flex;
750
750
  align-items: center;
751
751
  gap: 4px;
@@ -756,7 +756,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
756
756
  width: 13.26px;
757
757
  height: 14px;
758
758
  }
759
- `,ys=i.div`
759
+ `,ws=i.div`
760
760
  display: flex;
761
761
  align-items: center;
762
762
  gap: 8px;
@@ -775,7 +775,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
775
775
  height: 16px;
776
776
  flex: none;
777
777
  }
778
- `,Y=i(ys)`
778
+ `,Y=i(ws)`
779
779
  position: absolute;
780
780
  top: calc(100% + 8px);
781
781
  left: 0;
@@ -788,9 +788,9 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
788
788
  position: static;
789
789
  margin-top: 8px;
790
790
  }
791
- `,ws=i(Ze)`
791
+ `,vs=i(Ze)`
792
792
  color: inherit;
793
- `,vs=i.section`
793
+ `,js=i.section`
794
794
  display: flex;
795
795
  flex-direction: column;
796
796
  gap: 48px;
@@ -800,12 +800,12 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
800
800
  gap: 32px;
801
801
  padding: 0 20px;
802
802
  }
803
- `,js=i.div`
803
+ `,Cs=i.div`
804
804
  display: flex;
805
805
  flex-direction: column;
806
806
  align-items: center;
807
807
  gap: 24px;
808
- `,Cs=i.h2`
808
+ `,$s=i.h2`
809
809
  margin: 0;
810
810
  text-align: center;
811
811
  font-family: ${t.font.sans};
@@ -817,7 +817,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
817
817
  ${t.media.maxWidth("mobile")} {
818
818
  font-size: 22px;
819
819
  }
820
- `,$s=i.p`
820
+ `,ks=i.p`
821
821
  margin: 0;
822
822
  max-width: 907px;
823
823
  text-align: center;
@@ -830,7 +830,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
830
830
  ${t.media.maxWidth("mobile")} {
831
831
  font-size: 16px;
832
832
  }
833
- `,ks=i.div`
833
+ `,Ss=i.div`
834
834
  display: grid;
835
835
  grid-template-columns: repeat(4, 1fr);
836
836
  gap: 24px;
@@ -884,7 +884,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
884
884
  font-size: 14px;
885
885
  line-height: 1.57;
886
886
  color: ${t.colors.media};
887
- `,Ss=i.span`
887
+ `,Es=i.span`
888
888
  font-weight: 700;
889
889
  color: ${t.colors.white};
890
890
  `,Pe=i.a`
@@ -908,7 +908,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
908
908
  width: 13px;
909
909
  height: 13px;
910
910
  }
911
- `,Es=i.span`
911
+ `,Ts=i.span`
912
912
  position: absolute;
913
913
  width: 1px;
914
914
  height: 1px;
@@ -918,7 +918,7 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
918
918
  clip: rect(0, 0, 0, 0);
919
919
  white-space: nowrap;
920
920
  border: 0;
921
- `,Ts="https://docs.decentraland.org/creator/worlds/about/",Rs="https://governance.decentraland.org";function Fe(s){const o=typeof window<"u"?window.location.hostname:"";return`${o.endsWith("decentraland.org")?"https://decentraland.org":o.endsWith("decentraland.today")?"https://decentraland.today":"https://decentraland.zone"}/marketplace/names/browse?search=${encodeURIComponent(s)}`}function _s({onBack:s}){De({title:n("seo.names.title"),description:n("seo.names.description")});const{session:o,signIn:r}=Oe(),d=hn(),{data:h}=Ge(),f=h?qe(Z,h):null,[l,m]=u.useState(""),[c,g]=u.useState("idle"),[p,b]=u.useState(!1),[C,w]=u.useState(!1),[$,v]=u.useState(()=>{var j;return typeof window<"u"&&!!((j=window.matchMedia)!=null&&j.call(window,"(prefers-reduced-motion: reduce)").matches)});u.useEffect(()=>{var z;const j=(z=window.matchMedia)==null?void 0:z.call(window,"(prefers-reduced-motion: reduce)");if(!j)return;const A=I=>v(I.matches);return j.addEventListener("change",A),()=>j.removeEventListener("change",A)},[]);const x=n("names.placeholderExamples"),k=u.useMemo(()=>x.split(",").map(j=>j.trim()).filter(Boolean),[x]),T=gn(k,!C&&!l&&!$)||n("names.inputPlaceholder"),N=u.useRef(null),[M,B]=u.useState(void 0);u.useLayoutEffect(()=>{N.current&&B(N.current.getBoundingClientRect().width)},[l,T]),u.useEffect(()=>{if(!Ae(l).ok){g(l.length===0?"idle":"invalid");return}g("checking");const A=new AbortController,z=setTimeout(()=>{(async()=>{try{const I=await sn(l,{signal:A.signal});g(I)}catch(I){if((I==null?void 0:I.name)==="AbortError")return;g("error")}})()},400);return()=>{clearTimeout(z),A.abort()}},[l]);const W=Ae(l),P=W.ok&&(c==="available"||c==="error"),S=d&&P,F=!d&&P;function R(){if(S){if(!o){r();return}b(!0)}}const _=e.jsxs(e.Fragment,{children:[n("names.claim"),f!=null?e.jsxs(bs,{children:[e.jsx(O,{}),ve(f)]}):null]});return e.jsxs(Jn,{"data-testid":"names-page",children:[e.jsxs(Xn,{"aria-label":n("names.breadcrumbAria"),children:[e.jsx(Yn,{onClick:s,children:n("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(es,{children:n("names.breadcrumbCurrent")})]}),e.jsxs(ts,{children:[e.jsxs(ns,{children:[e.jsxs(ss,{children:[e.jsx(is,{children:n("names.heroTitle")}),e.jsx(os,{children:n("names.heroSubtitle")})]}),e.jsxs(rs,{children:[e.jsxs(as,{"data-testid":"names-input-wrap",children:[e.jsxs(ls,{invalid:c==="taken",children:[e.jsxs(ps,{children:[e.jsx(us,{"aria-hidden":!0,children:"@"}),e.jsx(fs,{value:l,onChange:j=>m(en(j.target.value)),placeholder:T,"aria-label":n("names.inputAria"),autoComplete:"off",spellCheck:!1,maxLength:re,onFocus:()=>w(!0),style:{width:M!=null?`${M}px`:void 0}}),e.jsx(cs,{ref:N,"aria-hidden":!0,"data-placeholder":!l||void 0,children:l||T}),e.jsx(ms,{children:n("names.suffix")})]}),l.length>0?e.jsxs(xs,{"aria-hidden":!0,children:[l.length,"/",re]}):null,e.jsx(Qe,{onClick:R,disabled:!S,"data-testid":"names-claim",children:_})]}),c==="taken"?e.jsxs(ds,{role:"status","data-testid":"names-taken",children:[e.jsx(E,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:n("names.taken")}),e.jsxs(hs,{href:Fe(l),target:"_blank",rel:"noopener noreferrer",children:[n("names.takenMakeOffer"),e.jsx(E,{name:"external-link",size:13,"aria-hidden":!0})]})]}):null,c==="checking"?e.jsx(Y,{tone:"muted",role:"status","data-testid":"names-checking",children:n("names.checking")}):F?e.jsxs(Y,{tone:"muted",role:"status","data-testid":"names-disabled",children:[e.jsx(E,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:n("names.registrationDisabled")}),e.jsxs(ws,{href:Fe(l),target:"_blank",rel:"noopener noreferrer",children:[n("names.registrationDisabledLink"),e.jsx(E,{name:"external-link",size:13,"aria-hidden":!0})]})]}):c==="error"?e.jsx(Y,{tone:"muted",role:"status",children:n("names.checkError")}):c==="invalid"&&!W.ok&&W.reason==="too-short"?e.jsx(Y,{tone:"muted",role:"status",children:n("names.tooShort",{min:Ve})}):null]}),e.jsx(gs,{onClick:R,disabled:!S,children:_}),e.jsx(Es,{role:"status","aria-live":"polite",children:c==="available"?n("names.available",{name:l}):""})]})]}),e.jsxs(vs,{children:[e.jsxs(js,{children:[e.jsx(Cs,{children:n("names.whyTitle")}),e.jsx($s,{children:n("names.whyIntro")})]}),e.jsxs(ks,{children:[e.jsxs(ee,{children:[e.jsx(te,{src:Vn,alt:""}),e.jsxs(ne,{children:[e.jsx(se,{children:n("names.why1Title")}),e.jsx(ie,{children:n("names.why1")})]})]}),e.jsxs(ee,{children:[e.jsx(te,{src:Zn,alt:""}),e.jsxs(ne,{children:[e.jsx(se,{children:n("names.why2Title")}),e.jsxs(ie,{children:[n("names.why2")," ",e.jsx(Ss,{children:n("names.why2Address")})]}),e.jsxs(Pe,{href:Ts,target:"_blank",rel:"noopener noreferrer",children:[n("names.learnMore"),e.jsx(E,{name:"external-link","aria-hidden":!0})]})]})]}),e.jsxs(ee,{children:[e.jsx(te,{src:Qn,alt:""}),e.jsxs(ne,{children:[e.jsx(se,{children:n("names.why3Title")}),e.jsx(ie,{children:n("names.why3")})]})]}),e.jsxs(ee,{children:[e.jsx(te,{src:Kn,alt:""}),e.jsxs(ne,{children:[e.jsx(se,{children:n("names.why4Title")}),e.jsx(ie,{children:n("names.why4")}),e.jsxs(Pe,{href:Rs,target:"_blank",rel:"noopener noreferrer",children:[n("names.learnMore"),e.jsx(E,{name:"external-link","aria-hidden":!0})]})]})]})]})]})]}),p?e.jsx(Gn,{name:l,priceCredits:f,onClose:()=>b(!1)}):null]})}const Is=i.p`
921
+ `,Rs="https://docs.decentraland.org/creator/worlds/about/",_s="https://governance.decentraland.org";function Fe(s){const o=typeof window<"u"?window.location.hostname:"";return`${o.endsWith("decentraland.org")?"https://decentraland.org":o.endsWith("decentraland.today")?"https://decentraland.today":"https://decentraland.zone"}/marketplace/names/browse?search=${encodeURIComponent(s)}`}function Is({onBack:s}){De({title:n("seo.names.title"),description:n("seo.names.description")});const{session:o,signIn:r}=Oe(),d=pn(),{data:h}=Ge(),x=h?qe(V,h):null,[l,u]=m.useState(""),[c,p]=m.useState("idle"),[f,w]=m.useState(!1),[j,$]=m.useState(!1),[C,g]=m.useState(()=>{var v;return typeof window<"u"&&!!((v=window.matchMedia)!=null&&v.call(window,"(prefers-reduced-motion: reduce)").matches)});m.useEffect(()=>{var M;const v=(M=window.matchMedia)==null?void 0:M.call(window,"(prefers-reduced-motion: reduce)");if(!v)return;const I=_=>g(_.matches);return v.addEventListener("change",I),()=>v.removeEventListener("change",I)},[]);const b=n("names.placeholderExamples"),S=m.useMemo(()=>b.split(",").map(v=>v.trim()).filter(Boolean),[b]),T=bn(S,!j&&!l&&!C)||n("names.inputPlaceholder"),k=m.useRef(null),[W,B]=m.useState(void 0);m.useLayoutEffect(()=>{k.current&&B(k.current.getBoundingClientRect().width)},[l,T]),m.useEffect(()=>{if(!Ae(l).ok){p(l.length===0?"idle":"invalid");return}p("checking");const I=new AbortController,M=setTimeout(()=>{(async()=>{try{const _=await on(l,{signal:I.signal});p(_)}catch(_){if((_==null?void 0:_.name)==="AbortError")return;p("error")}})()},400);return()=>{clearTimeout(M),I.abort()}},[l]);const z=Ae(l),P=z.ok&&(c==="available"||c==="error"),N=d&&P,A=!d&&P;function F(){if(N){if(!o){r();return}w(!0)}}const R=e.jsxs(e.Fragment,{children:[n("names.claim"),x!=null?e.jsxs(ys,{children:[e.jsx(O,{}),ve(x)]}):null]});return e.jsxs(Xn,{"data-testid":"names-page",children:[e.jsxs(Yn,{"aria-label":n("names.breadcrumbAria"),children:[e.jsx(es,{onClick:s,children:n("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(ts,{children:n("names.breadcrumbCurrent")})]}),e.jsxs(ns,{children:[e.jsxs(ss,{children:[e.jsxs(is,{children:[e.jsx(os,{children:n("names.heroTitle")}),e.jsx(rs,{children:n("names.heroSubtitle")})]}),e.jsxs(as,{children:[e.jsxs(ls,{"data-testid":"names-input-wrap",children:[e.jsxs(cs,{invalid:c==="taken",children:[e.jsxs(us,{children:[e.jsx(fs,{"aria-hidden":!0,children:"@"}),e.jsx(ms,{value:l,onChange:v=>u(tn(v.target.value)),placeholder:T,"aria-label":n("names.inputAria"),autoComplete:"off",spellCheck:!1,maxLength:re,onFocus:()=>$(!0),style:{width:W!=null?`${W}px`:void 0}}),e.jsx(ds,{ref:k,"aria-hidden":!0,"data-placeholder":!l||void 0,children:l||T}),e.jsx(xs,{children:n("names.suffix")})]}),l.length>0?e.jsxs(gs,{"aria-hidden":!0,children:[l.length,"/",re]}):null,e.jsx(Qe,{onClick:F,disabled:!N,"data-testid":"names-claim",children:R})]}),c==="taken"?e.jsxs(hs,{role:"status","data-testid":"names-taken",children:[e.jsx(E,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:n("names.taken")}),e.jsxs(ps,{href:Fe(l),target:"_blank",rel:"noopener noreferrer",children:[n("names.takenMakeOffer"),e.jsx(E,{name:"external-link",size:13,"aria-hidden":!0})]})]}):null,c==="checking"?e.jsx(Y,{tone:"muted",role:"status","data-testid":"names-checking",children:n("names.checking")}):A?e.jsxs(Y,{tone:"muted",role:"status","data-testid":"names-disabled",children:[e.jsx(E,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:n("names.registrationDisabled")}),e.jsxs(vs,{href:Fe(l),target:"_blank",rel:"noopener noreferrer",children:[n("names.registrationDisabledLink"),e.jsx(E,{name:"external-link",size:13,"aria-hidden":!0})]})]}):c==="error"?e.jsx(Y,{tone:"muted",role:"status",children:n("names.checkError")}):c==="invalid"&&!z.ok&&z.reason==="too-short"?e.jsx(Y,{tone:"muted",role:"status",children:n("names.tooShort",{min:Ve})}):null]}),e.jsx(bs,{onClick:F,disabled:!N,children:R}),e.jsx(Ts,{role:"status","aria-live":"polite",children:c==="available"?n("names.available",{name:l}):""})]})]}),e.jsxs(js,{children:[e.jsxs(Cs,{children:[e.jsx($s,{children:n("names.whyTitle")}),e.jsx(ks,{children:n("names.whyIntro")})]}),e.jsxs(Ss,{children:[e.jsxs(ee,{children:[e.jsx(te,{src:Zn,alt:""}),e.jsxs(ne,{children:[e.jsx(se,{children:n("names.why1Title")}),e.jsx(ie,{children:n("names.why1")})]})]}),e.jsxs(ee,{children:[e.jsx(te,{src:Qn,alt:""}),e.jsxs(ne,{children:[e.jsx(se,{children:n("names.why2Title")}),e.jsxs(ie,{children:[n("names.why2")," ",e.jsx(Es,{children:n("names.why2Address")})]}),e.jsxs(Pe,{href:Rs,target:"_blank",rel:"noopener noreferrer",children:[n("names.learnMore"),e.jsx(E,{name:"external-link","aria-hidden":!0})]})]})]}),e.jsxs(ee,{children:[e.jsx(te,{src:Kn,alt:""}),e.jsxs(ne,{children:[e.jsx(se,{children:n("names.why3Title")}),e.jsx(ie,{children:n("names.why3")})]})]}),e.jsxs(ee,{children:[e.jsx(te,{src:Jn,alt:""}),e.jsxs(ne,{children:[e.jsx(se,{children:n("names.why4Title")}),e.jsx(ie,{children:n("names.why4")}),e.jsxs(Pe,{href:_s,target:"_blank",rel:"noopener noreferrer",children:[n("names.learnMore"),e.jsx(E,{name:"external-link","aria-hidden":!0})]})]})]})]})]})]}),f?e.jsx(qn,{name:l,priceCredits:x,onClose:()=>w(!1)}):null]})}const Ls=i.p`
922
922
  display: flex;
923
923
  align-items: center;
924
924
  gap: 10px;
@@ -934,5 +934,5 @@ import{r as u,b as He,j as e,u as et}from"./react-Io5Wove7.js";import{u as tt,s
934
934
  background: rgba(211, 51, 51, 0.1);
935
935
  color: ${t.colors.err};
936
936
  }
937
- `,Ue=48,Ls=["all","on_sale","not_for_sale"];function Ys(){const[s]=et(),o=He(),r=(s.get("q")??"").trim().toLowerCase(),d=(s.get("q")??"").trim();De({title:d?n("seo.collectibles.searchTitle",{query:d}):n("seo.collectibles.title"),description:n("seo.collectibles.description")});const h=u.useMemo(()=>({category:"all",status:"on_sale",subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,sort:"newest"}),[]),[f,l]=tt(h),{subCategory:m,rarities:c,priceMin:g,priceMax:p,smart:b,sort:C}=f,w=f.category,$=Ls.includes(f.status)?f.status:"on_sale";st(`${w}:${m??""}`);const[v,x]=u.useState(!1);u.useEffect(()=>{if(!v)return;const a=K=>{K.key==="Escape"&&x(!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}},[v]);const k=$==="on_sale",L=g&&!Number.isNaN(Number(g))?Number(g):void 0,T=p&&!Number.isNaN(Number(p))?Number(p):void 0,N=It(),M=m?Pt[m]:void 0,B=(Ie.find(a=>a.key===C)??Ie[0]).server,W={category:w,rarities:c.length?c:void 0,wearableCategories:M,minPriceCredits:L,maxPriceCredits:T,search:r||void 0,sortBy:B,isSmart:b||void 0,onSale:!0,listingType:N?void 0:"primary"},P={category:w,rarities:c.length?c:void 0,wearableCategories:M,search:r||void 0,sortBy:B,isWearableSmart:b||void 0,isOnSale:$==="not_for_sale"?!1:void 0},{items:S,total:F,isLoading:R,isPlaceholderData:_,error:j,hasNextPage:A,isFetchingNextPage:z,isFetchNextPageError:I,fetchNextPage:ae}=Wt(k?["shop-items",W]:["catalog-items",P],a=>k?At({...W,first:Ue,skip:a}):zt({...P,first:Ue,skip:a}),{enabled:w!=="names"}),U=F,{data:y,isError:D,isPending:G}=Ge(),Ke=a=>y&&a.manaWei?qe(a.manaWei,y):null,Je=k&&G&&S.some(a=>a.source==="legacy"),Se=R||_||Je,Xe=R?15:Math.max(S.length,1),Ee=u.useRef(null);u.useEffect(()=>{R||_||!r||Ee.current===r||(Ee.current=r,oe("Shop Searched",{query:r,result_count:U}))},[r,R,_,U]);const Q=u.useRef("__init__");u.useEffect(()=>{if(R||_)return;const a=JSON.stringify({category:w,subCategory:m,rarities:c,min:L,max:T,sort:C,status:$,smart:b});if(Q.current==="__init__"||Q.current===a){Q.current=a;return}Q.current=a,oe("Shop Applied Filter",{filters:{category:w,sub_category:m,rarities:c,min_price_credits:L??null,max_price_credits:T??null,status:$,smart:b,sort:C},result_count:U})},[w,m,c,L,T,C,$,b,R,_,U]);function Te(a){l({category:a,subCategory:null})}function Re(a){l({status:a})}function _e(a){l({rarities:c.includes(a)?c.filter(H=>H!==a):[...c,a]})}function Ye(){l(h)}const q=[];(L!=null||T!=null)&&q.push({key:"price",label:n("filter.price"),onRemove:()=>{l({priceMin:"",priceMax:""})}});for(const a of it)c.includes(a)&&q.push({key:`rarity-${a}`,label:Lt(a),onRemove:()=>_e(a)});return b&&q.push({key:"smart",label:n("filter.smart"),onRemove:()=>l({smart:!1})}),$!=="on_sale"&&q.push({key:"status",label:$==="all"?n("filter.statusAll"):n("filter.notForSale"),onRemove:()=>Re("on_sale")}),e.jsxs(ot,{"data-testid":"browse",children:[w!=="names"&&e.jsxs(e.Fragment,{children:[v?e.jsx(rt,{onClick:()=>x(!1),"aria-hidden":!0}):null,e.jsxs(at,{"data-open":v||void 0,"data-testid":"browse-sidebar",children:[e.jsxs(lt,{children:[e.jsx(ct,{children:n("assets.filters")}),e.jsx(dt,{onClick:()=>x(!1),"aria-label":n("assets.closeFilters"),children:"✕"})]}),e.jsx(ht,{children:e.jsx(pt,{category:w,subCategory:m,onCategory:Te,onSub:a=>l({subCategory:a}),priceMin:g,priceMax:p,onPriceMin:a=>l({priceMin:a}),onPriceMax:a=>l({priceMax:a}),rarities:c,onToggleRarity:_e,status:$,onStatus:Re,smart:b,onSmart:a=>l({smart:a})})}),e.jsx(ut,{children:e.jsx(ft,{type:"button",onClick:()=>x(!1),children:n("assets.showItems")})})]})]}),e.jsx(mt,{children:w==="names"?e.jsx(_s,{onBack:()=>Te("all")}):e.jsxs(e.Fragment,{children:[e.jsx(xt,{sort:C,onSort:a=>l({sort:a}),total:F,loading:R||_,query:r,onOpenFilters:()=>x(!0),chips:q,onClearChips:Ye}),D&&k&&S.some(a=>a.source==="legacy")?e.jsx(Is,{"data-variant":"warn",children:n("assets.marketUnavailable")}):null,j?e.jsx(Ft,{message:n("assets.loadError"),testId:"browse-error"}):null,!Se&&S.length===0&&!j?e.jsx(Nt,{testId:"browse-empty",icon:nt,title:n("assets.empty.title"),body:d?e.jsxs(e.Fragment,{children:[n("assets.empty.searchBefore"),e.jsx("b",{children:d}),n("assets.empty.searchAfter")]}):n("assets.empty.filters"),cta:{label:n("assets.empty.cta"),onClick:()=>o("/overview")}}):e.jsxs(e.Fragment,{children:[e.jsx(Xt,{"data-testid":"grid",children:Se?e.jsx(Ne,{count:Xe}):e.jsxs(e.Fragment,{children:[S.map(a=>{if(!k)return e.jsx(J,{item:a,mode:"view"},X(a));const H=a;if(H.source!=="legacy")return e.jsx(J,{item:a},X(a));const K=Ke(H);return K==null?e.jsx(J,{item:a,mode:"view"},X(a)):e.jsx(J,{item:{...H,priceCredits:K}},X(a))}),z?e.jsx(Ne,{count:6}):null]})}),e.jsx(Mt,{hasNextPage:A,isFetching:z,isError:I,onLoadMore:()=>void ae()})]})]})})]})}export{Ys as Assets};
938
- //# sourceMappingURL=Assets-CEOKXfHN.js.map
937
+ `,Ue=48,Ns=["all","on_sale","not_for_sale"],As=s=>s?"all":"on_sale";function ti(){const[s]=tt(),o=He(),r=(s.get("q")??"").trim().toLowerCase(),d=(s.get("q")??"").trim();De({title:d?n("seo.collectibles.searchTitle",{query:d}):n("seo.collectibles.title"),description:n("seo.collectibles.description")});const h=As(!!r),x=m.useMemo(()=>({category:"all",status:h,subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,sort:"newest"}),[h]),[l,u]=nt(x),{subCategory:c,rarities:p,priceMin:f,priceMax:w,smart:j,sort:$}=l,C=l.category,g=Ns.includes(l.status)?l.status:h;it(`${C}:${c??""}`);const[b,S]=m.useState(!1);m.useEffect(()=>{if(!b)return;const a=K=>{K.key==="Escape"&&S(!1)};document.addEventListener("keydown",a);const H=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",a),document.body.style.overflow=H}},[b]);const L=g==="on_sale",T=f&&!Number.isNaN(Number(f))?Number(f):void 0,k=w&&!Number.isNaN(Number(w))?Number(w):void 0,W=Lt(),B=c?Ft[c]:void 0,z=(Ie.find(a=>a.key===$)??Ie[0]).server,P={category:C,rarities:p.length?p:void 0,wearableCategories:B,minPriceCredits:T,maxPriceCredits:k,search:r||void 0,sortBy:z,isSmart:j||void 0,onSale:!0,listingType:W?void 0:"primary"},N={category:C,rarities:p.length?p:void 0,wearableCategories:B,search:r||void 0,sortBy:z,isWearableSmart:j||void 0,isOnSale:g==="not_for_sale"?!1:void 0},{items:A,total:F,isLoading:R,isPlaceholderData:v,error:I,hasNextPage:M,isFetchingNextPage:_,isFetchNextPageError:ae,fetchNextPage:Z}=Bt(L?["shop-items",P]:["catalog-items",N],a=>L?zt({...P,first:Ue,skip:a}):Mt({...N,first:Ue,skip:a}),{enabled:C!=="names"}),y=F,{data:U,isError:D,isPending:Ke}=Ge(),Je=a=>U&&a.manaWei?qe(a.manaWei,U):null,Xe=L&&Ke&&A.some(a=>a.source==="legacy"),Se=R||v||Xe,Ye=R?15:Math.max(A.length,1),Ee=m.useRef(null);m.useEffect(()=>{R||v||!r||Ee.current===r||(Ee.current=r,oe("Shop Searched",{query:r,result_count:y}))},[r,R,v,y]);const Q=m.useRef("__init__");m.useEffect(()=>{if(R||v)return;const a=JSON.stringify({category:C,subCategory:c,rarities:p,min:T,max:k,sort:$,status:g,smart:j});if(Q.current==="__init__"||Q.current===a){Q.current=a;return}Q.current=a,oe("Shop Applied Filter",{filters:{category:C,sub_category:c,rarities:p,min_price_credits:T??null,max_price_credits:k??null,status:g,smart:j,sort:$},result_count:y})},[C,c,p,T,k,$,g,j,R,v,y]);function Te(a){u({category:a,subCategory:null})}function Re(a){u({status:a})}function _e(a){u({rarities:p.includes(a)?p.filter(H=>H!==a):[...p,a]})}function et(){u(x)}const G=[];(T!=null||k!=null)&&G.push({key:"price",label:n("filter.price"),onRemove:()=>{u({priceMin:"",priceMax:""})}});for(const a of ot)p.includes(a)&&G.push({key:`rarity-${a}`,label:Nt(a),onRemove:()=>_e(a)});return j&&G.push({key:"smart",label:n("filter.smart"),onRemove:()=>u({smart:!1})}),g!==h&&G.push({key:"status",label:g==="all"?n("filter.statusAll"):g==="on_sale"?n("filter.onSale"):n("filter.notForSale"),onRemove:()=>Re(h)}),e.jsxs(rt,{"data-testid":"browse",children:[C!=="names"&&e.jsxs(e.Fragment,{children:[b?e.jsx(at,{onClick:()=>S(!1),"aria-hidden":!0}):null,e.jsxs(lt,{"data-open":b||void 0,"data-testid":"browse-sidebar",children:[e.jsxs(ct,{children:[e.jsx(dt,{children:n("assets.filters")}),e.jsx(ht,{onClick:()=>S(!1),"aria-label":n("assets.closeFilters"),children:"✕"})]}),e.jsx(pt,{children:e.jsx(ut,{category:C,subCategory:c,onCategory:Te,onSub:a=>u({subCategory:a}),priceMin:f,priceMax:w,onPriceMin:a=>u({priceMin:a}),onPriceMax:a=>u({priceMax:a}),rarities:p,onToggleRarity:_e,status:g,onStatus:Re,smart:j,onSmart:a=>u({smart:a})})}),e.jsx(ft,{children:e.jsx(mt,{type:"button",onClick:()=>S(!1),children:n("assets.showItems")})})]})]}),e.jsx(xt,{children:C==="names"?e.jsx(Is,{onBack:()=>Te("all")}):e.jsxs(e.Fragment,{children:[e.jsx(gt,{sort:$,onSort:a=>u({sort:a}),total:F,loading:R||v,query:r,onOpenFilters:()=>S(!0),chips:G,onClearChips:et}),D&&L&&A.some(a=>a.source==="legacy")?e.jsx(Ls,{"data-variant":"warn",children:n("assets.marketUnavailable")}):null,I?e.jsx(Ut,{message:n("assets.loadError"),testId:"browse-error"}):null,!Se&&A.length===0&&!I?e.jsx(At,{testId:"browse-empty",icon:st,title:n("assets.empty.title"),body:d?e.jsxs(e.Fragment,{children:[n("assets.empty.searchBefore"),e.jsx("b",{children:d}),n("assets.empty.searchAfter")]}):n("assets.empty.filters"),cta:{label:n("assets.empty.cta"),onClick:()=>o("/overview")}}):e.jsxs(e.Fragment,{children:[e.jsx(Yt,{"data-testid":"grid",children:Se?e.jsx(Ne,{count:Ye}):e.jsxs(e.Fragment,{children:[A.map(a=>{if(!L)return e.jsx(J,{item:a,mode:"view"},X(a));const H=a;if(H.source!=="legacy")return e.jsx(J,{item:a},X(a));const K=Je(H);return K==null?e.jsx(J,{item:a,mode:"view"},X(a)):e.jsx(J,{item:{...H,priceCredits:K}},X(a))}),_?e.jsx(Ne,{count:6}):null]})}),e.jsx(Wt,{hasNextPage:M,isFetching:_,isError:ae,onLoadMore:()=>void Z()})]})]})})]})}export{ti as Assets};
938
+ //# sourceMappingURL=Assets-D-AYQR5O.js.map