@dcl/shop 1.11.4-33732305897.commit-1e7324f → 1.11.4-34146541745.commit-2e51b7b

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 (235) hide show
  1. package/_assets/{Activity-Cx802b5N.js → Activity-xKmk-4gO.js} +14 -14
  2. package/_assets/{AnimatedBackground-CdbRock2.js → AnimatedBackground-C1ASB9Z0.js} +6 -6
  3. package/_assets/{Assets-Cso_98af.js → Assets-C3hb4Xf1.js} +62 -62
  4. package/_assets/Authorizations-BHHW-BXo.js +192 -0
  5. package/_assets/{Cart-DIZRo9El.js → Cart-DmsxIAF9.js} +86 -86
  6. package/_assets/{Collection-CYfbROlU.js → Collection-kpdi337T.js} +10 -10
  7. package/_assets/{CollectionCarousel-qayOu3OX.js → CollectionCarousel-DDa94miq.js} +19 -19
  8. package/_assets/{Confetti-C6l6x2P5.js → Confetti-CqjzDvPn.js} +4 -4
  9. package/_assets/{ConstantsUtil-BXwnLwQf.js → ConstantsUtil-B8hQD8Ij.js} +2 -2
  10. package/_assets/{ContentClient-zja3_MJn.js → ContentClient-loaPugPE.js} +2 -2
  11. package/_assets/{Creator-rcfscFm-.js → Creator-LudDcrOr.js} +18 -18
  12. package/_assets/{DeploymentBuilder-BSMrkYtO.js → DeploymentBuilder-Bc-hRF6P.js} +2 -2
  13. package/_assets/{EmotePlaybackBar-Cf_gwNRt.js → EmotePlaybackBar-3-H-twKn.js} +3 -3
  14. package/_assets/{ErrorNotice-D7e9fD_T.js → ErrorNotice-BNTO1LyE.js} +2 -2
  15. package/_assets/{ExchangeController-88RGEomq.js → ExchangeController-DLYxdO5r.js} +2 -2
  16. package/_assets/{Faq-DAjiL76E.js → Faq-DKpPqh2p.js} +2 -2
  17. package/_assets/{GetCredits-DLPhUtv4.js → GetCredits-CsD9vRku.js} +10 -10
  18. package/_assets/{Grow-Cl7mR__9.js → Grow-Bap_m-8N.js} +2 -2
  19. package/_assets/{HelpersUtil-BLuGqr0g.js → HelpersUtil-DIjQ22Mw.js} +2 -2
  20. package/_assets/{ItemDetail-CIxjBuEI.js → ItemDetail-CG2ezuGw.js} +123 -123
  21. package/_assets/{LoadMore-CR1nt5IY.js → LoadMore-C8R9abAD.js} +2 -2
  22. package/_assets/{ManaPricingBanner.styles-d3D_Xifp.js → ManaPricingBanner.styles-CLaXSgVz.js} +3 -3
  23. package/_assets/{MyAssets-CfQMQL5R.js → MyAssets-DU-8T3do.js} +2 -2
  24. package/_assets/{MyFavorites-DHAFlu5a.js → MyFavorites-CGtYQ8gF.js} +2 -2
  25. package/_assets/{NetworkUtil-CUCblhjb.js → NetworkUtil-ChGVN0JN.js} +2 -2
  26. package/_assets/{NotFound-I6cmEbZT.js → NotFound-DyGTQV7x.js} +2 -2
  27. package/_assets/{NotificationsBell-DkG1pPAu.js → NotificationsBell-BN-mEx2q.js} +2 -2
  28. package/_assets/{OutfitDetail-CzoGXF0u.js → OutfitDetail-SnYe6vE3.js} +10 -10
  29. package/_assets/OutfitPreview-CBDC5Kmi.js +7 -0
  30. package/_assets/{OutfitStudio-HfMrtN23.js → OutfitStudio-BKa_In57.js} +10 -10
  31. package/_assets/{StoreSettings-DJ7uoT6K.js → StoreSettings-GQy5Bt19.js} +2 -2
  32. package/_assets/{Success-DYx_37Ay.js → Success-CCSPIe9D.js} +2 -2
  33. package/_assets/{SwapController-CiKd8M9-.js → SwapController-ChfYVINs.js} +2 -2
  34. package/_assets/{TradeService-DLDnEWfW.js → TradeService-gjwFrTdu.js} +2 -2
  35. package/_assets/{W3MFrameProviderSingleton-BZxOUMEf.js → W3MFrameProviderSingleton-DFH4csBK.js} +4 -4
  36. package/_assets/{WebCryptoP256-BGs-m2fW.js → WebCryptoP256-Cs_kGRP7.js} +2 -2
  37. package/_assets/authorizations-BWScrlZF.js +2 -0
  38. package/_assets/{basic-8Obxw1Tt.js → basic-BL_4_qnv.js} +2 -2
  39. package/_assets/{biconomy-BWWmhakt.js → biconomy-DWEvA41g.js} +2 -2
  40. package/_assets/{browseLayout.styles-Bhm7l2yL.js → browseLayout.styles-AJCJRVfZ.js} +8 -8
  41. package/_assets/{browser-DJLq-3J-.js → browser-DTzlztpu.js} +2 -2
  42. package/_assets/{browser-ponyfill-Dvf1ZyJ8.js → browser-ponyfill-BwrxfXAj.js} +2 -2
  43. package/_assets/{builder-DORX-23E.js → builder-DeYOCCGP.js} +2 -2
  44. package/_assets/buy-CHd_kuD-.js +2 -0
  45. package/_assets/{buy-gasless-C6HcNbUA.js → buy-gasless-BqKwNgT9.js} +2 -2
  46. package/_assets/{categories-CwOJ2g25.js → categories-RlGskk6P.js} +2 -2
  47. package/_assets/{ccip-t9OGim7e.js → ccip-BH-gvcBp.js} +2 -2
  48. package/_assets/{ccip-DOIKfY-r.js → ccip-DyN0Cwkz.js} +2 -2
  49. package/_assets/{chains-CJ5puEsf.js → chains-Bt2eNcb3.js} +2 -2
  50. package/_assets/{collectionPage.styles-D8mS4okV.js → collectionPage.styles-DZPDz77v.js} +3 -3
  51. package/_assets/{common-DDUK0SnQ.js → common-DXoJf1YF.js} +2 -2
  52. package/_assets/{controller-6VPVhW4x.js → controller-DJi1-xfY.js} +3 -3
  53. package/_assets/{core-c6b_bR-6.js → core-io9Taj0p.js} +5 -5
  54. package/_assets/createSvgIcon-CL5QBj6t.js +75 -0
  55. package/_assets/{crumbs.styles-DuD2nYKt.js → crumbs.styles-Bu34LUHt.js} +2 -2
  56. package/_assets/{custom-B-DBmMBT.js → custom-6lV2Qf7-.js} +2 -2
  57. package/_assets/{data-capture-jj2Gx94-.js → data-capture-D21WO7FI.js} +2 -2
  58. package/_assets/{dcl-schemas-DomYdfSu.js → dcl-schemas-CCzDenM0.js} +2 -2
  59. package/_assets/{decimals-D_FZwEan.js → decimals-B_h405xW.js} +2 -2
  60. package/_assets/{decimals-B1-HCH4o.js → decimals-D-TyAWzm.js} +2 -2
  61. package/_assets/{detectExtension-CWa-6_2f.js → detectExtension-CEr_Tf5V.js} +2 -2
  62. package/_assets/{disposePreview-07YPRIAs.js → disposePreview-CNjjjjXP.js} +2 -2
  63. package/_assets/{email-aaQBtCb5.js → email-BUPkK1Vg.js} +2 -2
  64. package/_assets/{embedded-wallet-BdtgYcgd.js → embedded-wallet-CpifviSW.js} +2 -2
  65. package/_assets/{emotion-styled.browser.esm-j64b3Tjj.js → emotion-styled.browser.esm-Bw9JbEU9.js} +2 -2
  66. package/_assets/{engine-CbVRXgIZ.js → engine-pX8X9lYI.js} +2 -2
  67. package/_assets/{errors-BRe26Jfh.js → errors-Bf8OWs_b.js} +2 -2
  68. package/_assets/{estimate-l1-fee-QZY2dl9c.js → estimate-l1-fee-Shf1hN6c.js} +2 -2
  69. package/_assets/{eth_estimateGas-BNHHtt_v.js → eth_estimateGas-D4N-vf-t.js} +2 -2
  70. package/_assets/{eth_getStorageAt-BrUSFI3L.js → eth_getStorageAt-Czledsog.js} +2 -2
  71. package/_assets/{eth_getTransactionCount-Cz-QYrW7.js → eth_getTransactionCount-Bq-LPvwb.js} +2 -2
  72. package/_assets/{ethereum-DymTbk_A.js → ethereum-BkMjKIO7.js} +2 -2
  73. package/_assets/{ethers-lJUVMKsu.js → ethers-LoRPtwMO.js} +2 -2
  74. package/_assets/{events-DmqgnxYn.js → events-B9wfBngD.js} +2 -2
  75. package/_assets/{execute-7sS5TYiC.js → execute-BLe0NO4t.js} +3 -3
  76. package/_assets/{extractIPFS-Bw8oBiZX.js → extractIPFS-C3DE4MIA.js} +2 -2
  77. package/_assets/{features-xz2G4uEQ.js → features-Bwzt3a7s.js} +2 -2
  78. package/_assets/{fetchTokenMetadata-vSJgaR6g.js → fetchTokenMetadata-DIMtUEhl.js} +3 -3
  79. package/_assets/{field.styles-D1SXDqdV.js → field.styles-BUdzGooS.js} +2 -2
  80. package/_assets/{fortmatic-gJx4GubC.js → fortmatic-czY81Wea.js} +2 -2
  81. package/_assets/{get-bytecode-MyuYdLGE.js → get-bytecode--PY40UFF.js} +2 -2
  82. package/_assets/{get-ecosystem-wallet-info-CkBTWtMQ.js → get-ecosystem-wallet-info-CqAV88QF.js} +2 -2
  83. package/_assets/{getBalance-Dm8gCwzR.js → getBalance-BeWRUcTY.js} +3 -3
  84. package/_assets/{getInstalledModules-DWgOMGf-.js → getInstalledModules-ujkv0JM_.js} +2 -2
  85. package/_assets/{getNFT-ClPLzjfc.js → getNFT-BPg5I_ug.js} +2 -2
  86. package/_assets/{getNFT-nMNheg0y.js → getNFT-C-vDpwk0.js} +3 -3
  87. package/_assets/{grid.styles-DM_pjmHa.js → grid.styles-BpPfGs5m.js} +2 -2
  88. package/_assets/{hashTypedData-y7_Tr4xZ.js → hashTypedData-CpQlWZYV.js} +2 -2
  89. package/_assets/{hashTypedData-Dd7KjMKN.js → hashTypedData-CxDtKlo0.js} +2 -2
  90. package/_assets/{in-app-BvxDIS--.js → in-app-C1z2LagJ.js} +2 -2
  91. package/_assets/{in-app-wallet-calls-Ee5YhUqD.js → in-app-wallet-calls-1MCbUUto.js} +2 -2
  92. package/_assets/{index-pJ3chOBq.js → index-1_aDRbBn.js} +2 -2
  93. package/_assets/{index-CXm5cLJF.js → index-3MN9v-OY.js} +2 -2
  94. package/_assets/{index-DjRCJyNX.js → index-6QGPNfVB.js} +2 -2
  95. package/_assets/{index-Do_3YTno.js → index-6QfMPv2T.js} +2 -2
  96. package/_assets/{index-xSDiEZ6K.js → index-B1INP9e3.js} +4 -4
  97. package/_assets/{index-gunIJk2I.js → index-B3P30pED.js} +2 -2
  98. package/_assets/{index-p9NMF1hb.js → index-B8V-St1C.js} +2 -2
  99. package/_assets/{index-D8d6Ec8E.js → index-B8Veblbg.js} +2 -2
  100. package/_assets/{index-y6H3-XpH.js → index-BA7uCMdY.js} +2 -2
  101. package/_assets/{index-D2Yhlar0.js → index-BF1PoXqy.js} +2 -2
  102. package/_assets/{index-C8ML1MUF.js → index-BJfMNIZx.js} +2 -2
  103. package/_assets/{index-CLno03dC.js → index-BOn86Gtq.js} +2 -2
  104. package/_assets/{index-Cvd_cEZn.js → index-BSSZI4cg.js} +2 -2
  105. package/_assets/{index-Bbpseq-g.js → index-BVt8JQjd.js} +2 -2
  106. package/_assets/{index-Bxh3xmjS.js → index-BY0j-y0U.js} +3 -3
  107. package/_assets/{index-CC0705fK.js → index-B_03CD96.js} +2 -2
  108. package/_assets/{index-sw946bja.js → index-Baa46wV7.js} +2 -2
  109. package/_assets/{index-CdQT2cdk.js → index-BetMYMkG.js} +2 -2
  110. package/_assets/{index-DPTxCd6G.js → index-BmXEi4T0.js} +2 -2
  111. package/_assets/{index-DcO94W4Y.js → index-BnOKI4g5.js} +2 -2
  112. package/_assets/{index-BESAfoqp.js → index-Br7O_XMK.js} +2 -2
  113. package/_assets/{index-CZSABpkP.js → index-Br8jPU21.js} +2 -2
  114. package/_assets/{index-C6G8H-i2.js → index-By3pRpHF.js} +2 -2
  115. package/_assets/{index-BAchvpdD.js → index-C158sLiy.js} +2 -2
  116. package/_assets/{index-DqDqtQYO.js → index-C1Y2E3_0.js} +2 -2
  117. package/_assets/{index-nMRW32cT.js → index-C2R5S18z.js} +2 -2
  118. package/_assets/{index-H071WQsj.js → index-C2W1SXH1.js} +2 -2
  119. package/_assets/{index-DHwlTubo.js → index-C8fV5ak2.js} +2 -2
  120. package/_assets/{index-eziTHz08.js → index-CBjcJojj.js} +2 -2
  121. package/_assets/{index-BAwv5IRG.js → index-CEF4OYwn.js} +2 -2
  122. package/_assets/{index-NSa1wzrj.js → index-CFD4XXjv.js} +4 -4
  123. package/_assets/{index-Bkksc2DS.js → index-CGIiWt6H.js} +2 -2
  124. package/_assets/{index-CRJhbyzw.js → index-CIHK292A.js} +2 -2
  125. package/_assets/{index-_j-22RDf.js → index-CPFBi-Rj.js} +2 -2
  126. package/_assets/{index-KhsHdzzf.js → index-CSdnAZg1.js} +3 -3
  127. package/_assets/{index-CT7iKOLJ.js → index-CTG7wdsj.js} +2 -2
  128. package/_assets/{index-DjYJklgS.js → index-CXciQEuf.js} +2 -2
  129. package/_assets/{index-BZBuIEvg.js → index-CZCiCYFV.js} +2 -2
  130. package/_assets/index-Cu3kDrH3.js +4146 -0
  131. package/_assets/{index-B5w1yBSS.js → index-CxLa7QdD.js} +2 -2
  132. package/_assets/{index-CBtHeLtX.js → index-CyJlpwGe.js} +2 -2
  133. package/_assets/{index-BxVEbH5g.js → index-D4uavJF4.js} +4 -4
  134. package/_assets/{index-SvZc89jX.js → index-DECb4Arp.js} +2 -2
  135. package/_assets/{index-C7fTmQXx.js → index-DWRG9rk7.js} +2 -2
  136. package/_assets/{index-QrNoSRRk.js → index-DX7M3BAx.js} +2 -2
  137. package/_assets/{index-Kvsk-w7C.js → index-DXNy1i1i.js} +2 -2
  138. package/_assets/{index-CujRtp21.js → index-DY_sAi2b.js} +3 -3
  139. package/_assets/{index-BFnNrQKW.js → index-Da90UWhU.js} +2 -2
  140. package/_assets/{index-DIbkRkqV.js → index-DgtXk5oz.js} +2 -2
  141. package/_assets/index-DkoVLANS.js +3 -0
  142. package/_assets/{index-C21h6RcO.js → index-DoKgS0Bl.js} +2 -2
  143. package/_assets/{index-CK3TSCbT.js → index-DrGFG5xw.js} +2 -2
  144. package/_assets/{index-CXyfi-oV.js → index-ERQAgpuD.js} +3 -3
  145. package/_assets/{index-BPrU7S25.js → index-EyDQEL98.js} +2 -2
  146. package/_assets/{index-4MTTH2jF.js → index-KCdqKPBz.js} +2 -2
  147. package/_assets/{index-8hxPoN1J.js → index-WF5xU6qF.js} +2 -2
  148. package/_assets/{index-BBa2VK-f.js → index-WO0jcydY.js} +5 -5
  149. package/_assets/{index-BqmYgiiA.js → index-Z-uPwbzv.js} +2 -2
  150. package/_assets/{index-CkMYP1rZ.js → index-ZTNYBsLD.js} +2 -2
  151. package/_assets/{index-Bd5O6EVu.js → index-Zd4mFtIe.js} +2 -2
  152. package/_assets/{index-Cm1EeBJX.js → index-gTdP3CfK.js} +2 -2
  153. package/_assets/{index-Bu4ieETV.js → index-lj5k8mEn.js} +2 -2
  154. package/_assets/{index-DseJbd5R.js → index-qBaFMyTp.js} +2 -2
  155. package/_assets/{index-DKjHNccw.js → index-uI3xcvMT.js} +16 -16
  156. package/_assets/{index-D_lvTSK4.js → index-xNk9_TXM.js} +6 -6
  157. package/_assets/{index-CKjEPC6b.js → index-ysQxdgJN.js} +2 -2
  158. package/_assets/{index--o_-OJuT.js → index-zpyykA2Y.js} +2 -2
  159. package/_assets/{index.es-BnZg7Xd1.js → index.es-B44bM6lb.js} +2 -2
  160. package/_assets/{index.es-B2RBfeIa.js → index.es-CXC1jRwd.js} +2 -2
  161. package/_assets/{index.es-C9BgzNkd.js → index.es-Db2e_mXF.js} +5 -5
  162. package/_assets/{index.es-Cta59W14.js → index.es-_GX4F4tQ.js} +2 -2
  163. package/_assets/{items-empty-Dx3wrNdB.js → items-empty-CXrebGp4.js} +2 -2
  164. package/_assets/{jump-D7CqhrvB.js → jump-ByjuFDQf.js} +2 -2
  165. package/_assets/{linkAccount-CkJc9A3Z.js → linkAccount-CqO-40L1.js} +2 -2
  166. package/_assets/{localBatchGatewayRequest-ux9ObxjO.js → localBatchGatewayRequest-3coI5WYl.js} +2 -2
  167. package/_assets/{native-Dct9kcJr.js → native-CgnbHRNl.js} +2 -2
  168. package/_assets/{networks-Ctf9gQ-h.js → networks-DJp-kHl9.js} +2 -2
  169. package/_assets/{onramp-DKLhqwp-.js → onramp-32ojm8iT.js} +2 -2
  170. package/_assets/{openzeppelin-DdTAS0HR.js → openzeppelin-CboOPW0r.js} +2 -2
  171. package/_assets/{ownerOf-_Vt0Z2wF.js → ownerOf-Br1_Alvv.js} +2 -2
  172. package/_assets/{parseNft-uetMMM9V.js → parseNft-9w6dkR6q.js} +3 -3
  173. package/_assets/{parseSignature-DwDfJlaE.js → parseSignature-Bf00xGLq.js} +4 -4
  174. package/_assets/{parseSignature-CqzzLINO.js → parseSignature-DLJ_SKZh.js} +2 -2
  175. package/_assets/{passkeys-Bok2lqqP.js → passkeys-EfDNg2vi.js} +2 -2
  176. package/_assets/{pay-with-exchange-C9p-SvWF.js → pay-with-exchange-BU2KQrSF.js} +2 -2
  177. package/_assets/{prepare-contract-call-Dm4BG9qV.js → prepare-contract-call-BVOQSnuI.js} +2 -2
  178. package/_assets/{qr-overlay-BVlxyxhh.js → qr-overlay-NxpsY-gD.js} +4 -4
  179. package/_assets/{react-CO8J9utQ.js → react-BXNAGeXL.js} +2 -2
  180. package/_assets/{receive-Bw8G1dr3.js → receive-Bgs5Jkxf.js} +2 -2
  181. package/_assets/{resolveImplementation-Dl4sSBLo.js → resolveImplementation-zewMZ6x1.js} +2 -2
  182. package/_assets/{resume-buy-Bi8j_aT3.js → resume-buy-B359C_3m.js} +2 -2
  183. package/_assets/{rpc-Btthh9Al.js → rpc-B8J2wyhx.js} +2 -2
  184. package/_assets/{sales-empty-CCnR6rVA.js → sales-empty-B1KD57hW.js} +2 -2
  185. package/_assets/{search-empty-CXyPZHgu.js → search-empty-CTk828Mn.js} +2 -2
  186. package/_assets/{secp256k1-Dbb07C3S.js → secp256k1-B-PgFYit.js} +2 -2
  187. package/_assets/{secp256k1-DpXUZshB.js → secp256k1-B4Qqb67V.js} +2 -2
  188. package/_assets/{secp256k1-B8Ne-404.js → secp256k1-DDCxzSXh.js} +2 -2
  189. package/_assets/{send-DVZ6tnPw.js → send-BJ9ixra4.js} +2 -2
  190. package/_assets/{send-batch-transaction-jebmiWQH.js → send-batch-transaction-C7IF0Whj.js} +2 -2
  191. package/_assets/{send-eip712-transaction-CF7y1X4f.js → send-eip712-transaction-CmTz_DGK.js} +3 -3
  192. package/_assets/{send-gasless-transaction-DDJSjJYf.js → send-gasless-transaction-BnwVgO1w.js} +3 -3
  193. package/_assets/{send-transaction-DvLGm3el.js → send-transaction-CnjEyepA.js} +3 -3
  194. package/_assets/sendMetaTransaction-n5YUyzu9.js +2 -0
  195. package/_assets/{sendRawTransaction-7obVHnsN.js → sendRawTransaction-iIXjFpmT.js} +4 -4
  196. package/_assets/{sentry-DYLA9B0R.js → sentry-CRBeChXZ.js} +3 -3
  197. package/_assets/{serializeTransaction-C0q-4ciO.js → serializeTransaction-TFEIQBpZ.js} +2 -2
  198. package/_assets/{session-proposal-C4dZCgCX.js → session-proposal-CBT7czeT.js} +2 -2
  199. package/_assets/{session-request-DyezUY41.js → session-request-BQQZBQZU.js} +3 -3
  200. package/_assets/{sha256-OW4Z2URB.js → sha256-VNNmsIJK.js} +2 -2
  201. package/_assets/{signing-DxtkJWSs.js → signing-Db4HbuZo.js} +4 -4
  202. package/_assets/{skeleton.styles-Duw3r1-f.js → skeleton.styles-Bs1hbjbl.js} +2 -2
  203. package/_assets/{socials-DWZzZP7D.js → socials-BoJtzpFH.js} +2 -2
  204. package/_assets/{styled-BxX3T8NU.js → styled-CyZ6DBPD.js} +3 -3
  205. package/_assets/{swaps-Cg068wbj.js → swaps-CXRwdhzO.js} +2 -2
  206. package/_assets/{thirdweb-Cj4YLEBK.js → thirdweb-CGyxdHW9.js} +4 -4
  207. package/_assets/{to-serializable-transaction-CnmzxsxK.js → to-serializable-transaction-Jkb9YaLT.js} +3 -3
  208. package/_assets/{totalSupply-V-w-XBfK.js → totalSupply-Cls-BHYU.js} +2 -2
  209. package/_assets/{transaction-DeMruh4y.js → transaction-BTMvSiIB.js} +2 -2
  210. package/_assets/{transactionReceipt-BUN5FmDU.js → transactionReceipt-qxFOX-rV.js} +2 -2
  211. package/_assets/{transactions-DV1UJBQD.js → transactions-Dm3RFyLM.js} +2 -2
  212. package/_assets/{useCreditPacks-C44m9MGN.js → useCreditPacks-BZtyATWc.js} +2 -2
  213. package/_assets/{useInfiniteGrid-BpgyqBYU.js → useInfiniteGrid-XabaIBWU.js} +2 -2
  214. package/_assets/{useStore-AVB0bigD.js → useStore-CHLMF-Um.js} +3 -3
  215. package/_assets/{useTheme-CxHoB_nr.js → useTheme-xKlhI9gp.js} +2 -2
  216. package/_assets/{utils-BEdOrVE1.js → utils-B3558Hzg.js} +2 -2
  217. package/_assets/{verifyHash-XogOyjnx.js → verifyHash-B_K73AMq.js} +2 -2
  218. package/_assets/{w3m-modal-CVVSMyoo.js → w3m-modal-CfUgANI-.js} +2 -2
  219. package/_assets/{w3m-modal-Cscrrutb.js → w3m-modal-DdJ7kIyj.js} +2 -2
  220. package/_assets/{wait-for-tx-receipt-DEUnYeJ_.js → wait-for-tx-receipt-G0ey6na0.js} +2 -2
  221. package/_assets/{wallets-DDmNSvOs.js → wallets-DXUT0gOe.js} +6 -6
  222. package/_assets/{web-connector-DMpf7sGG.js → web-connector-C4o_Ayyk.js} +4 -4
  223. package/_assets/{writeContract-DdTp54CW.js → writeContract-B9-4JdFe.js} +2 -2
  224. package/_assets/{zora-sepolia-BI6rCNAG.js → zora-sepolia-D1X_b4Od.js} +2 -2
  225. package/_assets/{zoraTestnet-DSrKIE0U.js → zoraTestnet-CFdpkw9O.js} +2 -2
  226. package/index.html +11 -11
  227. package/package.json +2 -2
  228. package/_assets/Authorizations-Dp6DDvM0.js +0 -192
  229. package/_assets/OutfitPreview-xZDEXOW9.js +0 -7
  230. package/_assets/authorizations-9V7aWjZQ.js +0 -2
  231. package/_assets/buy-DEqsVztl.js +0 -2
  232. package/_assets/createSvgIcon-vxgiUsZ8.js +0 -75
  233. package/_assets/index-2yKnWScC.js +0 -3
  234. package/_assets/index-BRU8_4Hh.js +0 -4146
  235. package/_assets/sendMetaTransaction-BlBggQ5M.js +0 -2
@@ -1,4 +1,4 @@
1
- import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s as st}from"./search-empty-CXyPZHgu.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-Bhm7l2yL.js";import{c as q,R as bt,bv as yt,br as wt,aA as vt,a as jt,m as Ct,cw as $t,cx as kt,s as i,t,p as Oe,bf as St,v as Et,E as ve,b as n,q as Tt,I as E,r as O,cy as le,bd as Rt,ad as oe,bn as Le,bu as _t,bt as It,o 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-BRU8_4Hh.js";import{L as Wt}from"./LoadMore-CR1nt5IY.js";import{u as Bt}from"./useInfiniteGrid-BpgyqBYU.js";import{n as Pt,S as Ft}from"./categories-CwOJ2g25.js";import{E as Ut}from"./ErrorNotice-D7e9fD_T.js";import{d as Ht}from"./dcl-schemas-DomYdfSu.js";import{s as Ot,G as Dt,w as Gt,S as qt}from"./buy-gasless-C6HcNbUA.js";import{s as Vt,o as Zt}from"./buy-DEqsVztl.js";import{f as Qt}from"./errors-BRe26Jfh.js";import{J as Kt,C as Jt,B as je}from"./ethers-lJUVMKsu.js";import{n as Xt}from"./name-glyph-aUugT8vq.js";import{c as Yt}from"./crumbs.styles-DuD2nYKt.js";import{G as en}from"./grid.styles-DM_pjmHa.js";import"./skeleton.styles-Duw3r1-f.js";import"./sentry-DYLA9B0R.js";import"./intl-AKLEHPeO.js";import"./authorizations-9V7aWjZQ.js";import"./sendMetaTransaction-BlBggQ5M.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]="0b7172fe-c01a-4828-a8af-366fb9ca6628",s._sentryDebugIdIdentifier="sentry-dbid-0b7172fe-c01a-4828-a8af-366fb9ca6628")}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,tn=/^[a-zA-Z0-9]+$/;function Ae(s){const o=s.trim();return o.length===0?{ok:!1,reason:"empty"}:tn.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 nn(s){return s.replace(/[^a-zA-Z0-9]/g,"").slice(0,re)}const sn=["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 on(){return q.chainId===Number(Ht.ChainId.MATIC_MAINNET)?ze.mainnet:ze.sepolia}async function rn(s,o={}){var u;const{rpc:r,address:d}=on(),h=new Kt(r),x=new Jt(d,sn,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 an="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 ln(s){return vt(V,s)}async function cn(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 dn(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 hn(s,o={}){const r=an,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 pn(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=ln(f);console.info("[names] step 1/6 sized reservation",{usdCents:w,manaRate:f});const j=await cn(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=dn($.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 hn(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 un(){const{data:s}=Ct({queryKey:["feature-flag","shop-names"],queryFn:()=>$t(kt.SHOP_NAMES),staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return s===!0}const fn=60,mn=700,xn=25;function gn(s){if(!s)return[];const o=[];for(let r=1;r<=s.length;r++)o.push({text:s.slice(0,r),delay:fn});o[o.length-1]={text:s,delay:mn};for(let r=s.length-1;r>=1;r--)o.push({text:s.slice(0,r),delay:xn});return o}function bn(s){return s.flatMap(gn)}function yn(s,o){const r=m.useMemo(()=>bn(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 wn="https://cdn.decentraland.org/@dcl/shop/1.11.4-33732305897.commit-1e7324f/_assets/name-verified-oGwQ3ntb.svg",vn="#34fee6",jn=i.div`
1
+ import{r as m,b as He,j as e,u as tt}from"./react-BXNAGeXL.js";import{u as nt,s as st}from"./search-empty-CTk828Mn.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-AJCJRVfZ.js";import{c as G,R as bt,U as yt,by as wt,bu as vt,aC as jt,a as Ct,m as $t,cz as kt,cA as St,s as i,t,p as Oe,bh as Et,v as Tt,E as ve,b as n,q as Rt,I as E,r as O,cB as le,bf as _t,af as oe,bp as Le,bx as It,bw as Lt,o as De,J as Ge,V as qe,W as Nt,at as zt,L as At,S as Ne,M as J,aK as Mt,bH as Wt}from"./index-Cu3kDrH3.js";import{L as Bt}from"./LoadMore-C8R9abAD.js";import{u as Pt}from"./useInfiniteGrid-XabaIBWU.js";import{n as Ft,S as Ut}from"./categories-RlGskk6P.js";import{E as Ht}from"./ErrorNotice-BNTO1LyE.js";import{d as Ot}from"./dcl-schemas-CCzDenM0.js";import{s as Dt,G as Gt,w as qt,S as Vt}from"./buy-gasless-BqKwNgT9.js";import{s as Zt,o as Kt}from"./buy-CHd_kuD-.js";import{f as Qt}from"./errors-Bf8OWs_b.js";import{J as Jt,C as Xt,B as je}from"./ethers-LoRPtwMO.js";import{n as Yt}from"./name-glyph-aUugT8vq.js";import{c as en}from"./crumbs.styles-Bu34LUHt.js";import{G as tn}from"./grid.styles-BpPfGs5m.js";import"./skeleton.styles-Bs1hbjbl.js";import"./sentry-CRBeChXZ.js";import"./intl-AKLEHPeO.js";import"./authorizations-BWScrlZF.js";import"./sendMetaTransaction-n5YUyzu9.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]="0519393f-5a8f-49fe-a5f1-0372e61d7d92",s._sentryDebugIdIdentifier="sentry-dbid-0519393f-5a8f-49fe-a5f1-0372e61d7d92")}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,nn=/^[a-zA-Z0-9]+$/;function ze(s){const o=s.trim();return o.length===0?{ok:!1,reason:"empty"}:nn.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 sn(s){return s.replace(/[^a-zA-Z0-9]/g,"").slice(0,re)}const on=["function available(string _subdomain) view returns (bool)"],Ae={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function rn(){return G.chainId===Number(Ot.ChainId.MATIC_MAINNET)?Ae.mainnet:Ae.sepolia}async function an(s,o={}){var u;const{rpc:r,address:d}=rn(),h=new Jt(r),g=new Xt(d,on,h);console.info(`[names] availability check → DCLRegistrar(${d}).available("${s}") on ${r}`);const l=await g.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 ln="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 cn(s){return jt(V,s)}async function dn(s,o,r={}){var u;const d=r.chainId??G.chainId,h=r.provider??"across",g=`${G.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(o)}&chainId=${d}&provider=${h}`,l=await Ct(g,{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 hn(s,o){const r=je.from(s.availableAmount),h=je.from(V).sub(r);return{credits:[{value:s.amount,expiresAt:Number(s.expiresAt),salt:Kt(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 pn(s,o={}){const r=ln,d=o.intervalMs??1e4,h=o.maxAttempts??60;let g={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};g={status:"pending",destinationTxHash:f,actionsSucceeded:w}}}catch{}l<h-1&&await new Promise(u=>setTimeout(u,d))}return g}async function un(s){const{name:o,identity:r,signer:d}=s,h=f=>{var w;try{(w=s.onProgress)==null||w.call(s,f)}catch{}},g=s.chainId??G.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:g,provider:l}),h("preparing");try{const f=await bt(yt(G.chainId).address),w=cn(f);console.info("[names] step 1/6 sized reservation",{usdCents:w,manaRate:f});const j=await dn(r,o,{chainId:g,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 wt(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=hn($.credit,j);let x;try{x=await Dt({chainId:g,buyer:u,signer:d,args:C})}catch(b){if(!(b instanceof Gt))throw b;if(b.reason==="relayer-unreachable"){p="unobservable";const S=new $e;throw S.cause=b,S}x=await Zt(g,C,d)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:x}),h("confirming"),await qt(x),p="confirmed",console.info("[names] step 5/6 origin tx confirmed",{originTxHash:x}),l==="across"){h("registering");const b=await pn(x,s.acrossPoll);if(console.info("[names] step 6/6 across status",b),b.status==="pending")return{status:"pending",originTxHash:x};if(b.status==="filled"&&b.actionsSucceeded===null)return console.warn("[names] across filled without reporting actionsSucceeded — reporting pending",{originTxHash:x}),{status:"pending",originTxHash:x};if(b.status!=="filled"||b.actionsSucceeded!==!0)throw new Ce;return{status:"registered",originTxHash:x,destinationTxHash:b.destinationTxHash}}return{status:"pending",originTxHash:x}}catch(f){if(console.error("[names] register failed — raw error:",f,{name:o,buyer:u,originState:p}),f instanceof Vt)return{status:"pending",originTxHash:f.txHash};if(c&&p==="unconfirmed"&&await vt(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 fn(){const{data:s}=$t({queryKey:["feature-flag","shop-names"],queryFn:()=>kt(St.SHOP_NAMES),staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return s===!0}const mn=60,xn=700,gn=25;function bn(s){if(!s)return[];const o=[];for(let r=1;r<=s.length;r++)o.push({text:s.slice(0,r),delay:mn});o[o.length-1]={text:s,delay:xn};for(let r=s.length-1;r>=1;r--)o.push({text:s.slice(0,r),delay:gn});return o}function yn(s){return s.flatMap(bn)}function wn(s,o){const r=m.useMemo(()=>yn(s),[s]),[d,h]=m.useState(0);return m.useEffect(()=>{if(!o||r.length===0)return;const g=setTimeout(()=>h(l=>(l+1)%r.length),r[d%r.length].delay);return()=>clearTimeout(g)},[d,o,r]),!o||r.length===0?"":r[d%r.length].text}const vn="https://cdn.decentraland.org/@dcl/shop/1.11.4-34146541745.commit-2e51b7b/_assets/name-verified-oGwQ3ntb.svg",jn="#34fee6",Cn=i.div`
2
2
  position: fixed;
3
3
  inset: 0;
4
4
  z-index: 10000;
@@ -7,7 +7,7 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
7
7
  justify-content: center;
8
8
  padding: 16px;
9
9
  background: rgba(22, 21, 24, 0.55);
10
- `,Cn=i.div`
10
+ `,$n=i.div`
11
11
  width: 560px;
12
12
  max-width: 100%;
13
13
  max-height: 92vh;
@@ -77,7 +77,7 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
77
77
  display: flex;
78
78
  align-items: center;
79
79
  gap: 16px;
80
- `,$n=i.div`
80
+ `,kn=i.div`
81
81
  flex: none;
82
82
  display: flex;
83
83
  flex-direction: column;
@@ -90,11 +90,11 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
90
90
  border-radius: 12px;
91
91
  overflow: hidden;
92
92
  background: ${t.gradients.amethyst};
93
- `,kn=i.img`
93
+ `,Sn=i.img`
94
94
  display: block;
95
95
  width: 47px;
96
96
  height: 47px;
97
- `,Sn=i.span`
97
+ `,En=i.span`
98
98
  display: inline-flex;
99
99
  align-items: center;
100
100
  gap: 2px;
@@ -104,7 +104,7 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,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: ${vn};
107
+ color: ${jn};
108
108
  white-space: nowrap;
109
109
  overflow: hidden;
110
110
 
@@ -115,7 +115,7 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
115
115
  overflow: hidden;
116
116
  text-overflow: ellipsis;
117
117
  }
118
- `,En=i.img`
118
+ `,Tn=i.img`
119
119
  flex: none;
120
120
  display: block;
121
121
  width: 14px;
@@ -170,17 +170,17 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
170
170
  height: 22px;
171
171
  color: ${t.colors.brandViolet};
172
172
  }
173
- `,Tn=i.div`
173
+ `,Rn=i.div`
174
174
  margin-top: 16px;
175
175
  padding: 16px;
176
176
  border-radius: 12px;
177
177
  background: ${t.colors.promptLilac};
178
- `,Rn=i.div`
178
+ `,_n=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
- `,_n=i.p`
183
+ `,In=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 m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
196
196
  -webkit-background-clip: text;
197
197
  color: transparent;
198
198
  }
199
- `,In=i.label`
199
+ `,Ln=i.label`
200
200
  display: flex;
201
201
  align-items: center;
202
202
  gap: 8px;
@@ -211,12 +211,12 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
211
211
  &:focus-within {
212
212
  border-color: ${t.colors.magenta};
213
213
  }
214
- `,Ln=i.span`
214
+ `,Nn=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
- `,Nn=i.input`
219
+ `,zn=i.input`
220
220
  flex: 0 1 auto;
221
221
  min-width: 0;
222
222
  border: 0;
@@ -266,7 +266,7 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
266
266
  cursor: not-allowed;
267
267
  opacity: 0.5;
268
268
  }
269
- `,zn=i.div`
269
+ `,Mn=i.div`
270
270
  display: flex;
271
271
  flex: 1;
272
272
  flex-direction: column;
@@ -274,36 +274,36 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
274
274
  justify-content: center;
275
275
  gap: 32px;
276
276
  padding: 32px 0 8px;
277
- `,Mn=i.img`
277
+ `,Wn=i.img`
278
278
  width: 61px;
279
279
  height: 61px;
280
- `,Wn=i.div`
280
+ `,Bn=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
- `,Bn=i.div`
286
+ `,Pn=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
- `,Pn=i.p`
293
+ `,Fn=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
- `,Fn=i.div`
300
+ `,Un=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
- `,Un=i.div`
306
+ `,Hn=i.div`
307
307
  flex: 1;
308
308
  max-width: 400px;
309
309
  height: 10px;
@@ -335,13 +335,13 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
335
335
  animation: none;
336
336
  }
337
337
  }
338
- `,Hn=i.span`
338
+ `,On=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
- `,On=i.div`
344
+ `,Dn=i.div`
345
345
  display: flex;
346
346
  flex-direction: column;
347
347
  align-items: center;
@@ -350,7 +350,7 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
350
350
  border-radius: 12px;
351
351
  background: #e2f5ea;
352
352
  text-align: center;
353
- `,Dn=i.div`
353
+ `,Gn=i.div`
354
354
  display: grid;
355
355
  place-items: center;
356
356
  width: 56px;
@@ -363,7 +363,7 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
363
363
  width: 30px;
364
364
  height: 30px;
365
365
  }
366
- `,Gn=i.p`
366
+ `,qn=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 m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
402
402
  outline: 2px solid ${t.colors.accent};
403
403
  outline-offset: 2px;
404
404
  }
405
- `,qn=i.a`
405
+ `,Vn=i.a`
406
406
  flex: 1;
407
407
  display: inline-flex;
408
408
  align-items: center;
@@ -458,10 +458,10 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
458
458
  color: ${t.colors.accent};
459
459
  }
460
460
  }
461
- `;function Vn({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 pn({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(jn,{onClick:k?void 0:r,role:"presentation",children:e.jsxs(Cn,{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(Tn,{children:[e.jsx(Rn,{children:n("names.confirmTitle")}),e.jsx(_n,{dangerouslySetInnerHTML:{__html:n("names.confirmBody",{name:`<b>@${Zn(s)}</b>`})}}),e.jsxs(In,{children:[e.jsx(Ln,{"aria-hidden":!0,children:"@"}),e.jsx(Nn,{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(An,{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(zn,{children:[e.jsx(Mn,{src:Rt,alt:"",width:61,height:61}),e.jsxs(Wn,{children:[e.jsx(Bn,{children:ae}),e.jsxs(Fn,{children:[e.jsx(Un,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(Hn,{"data-testid":"name-progress-count",children:`${_}/${I}`})]}),Z?e.jsx(Pn,{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(On,{children:[e.jsx(Dn,{"aria-hidden":!0,children:e.jsx(E,{name:"check"})}),e.jsxs(Gn,{children:[e.jsx("b",{children:n("names.successBannerBold")})," ",n("names.successBannerRest")]})]}),e.jsxs(fe,{style:{marginTop:20},children:[e.jsxs($n,{"data-testid":"name-success-tile",children:[e.jsx(kn,{src:Xt,alt:"","aria-hidden":!0,width:47,height:47}),e.jsxs(Sn,{children:[e.jsx("span",{"aria-hidden":!0,children:s}),e.jsx(En,{src:wn,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(qn,{href:q.profileUrl,target:"_blank",rel:"noopener noreferrer",children:n("names.assignToAvatar")})]})]})]})})}function Zn(s){return s.replace(/[&<>"']/g,o=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[o])}const Qn="https://cdn.decentraland.org/@dcl/shop/1.11.4-33732305897.commit-1e7324f/_assets/identity-icon-C8yAW_Gq.svg",Kn="https://cdn.decentraland.org/@dcl/shop/1.11.4-33732305897.commit-1e7324f/_assets/world-icon-6xQ-PmmW.svg",Jn="https://cdn.decentraland.org/@dcl/shop/1.11.4-33732305897.commit-1e7324f/_assets/invite-icon-Bz6lCTuB.svg",Xn="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",Yn=i.div`
461
+ `;function Zn({name:s,priceCredits:o,onClose:r}){const{session:d}=Oe(),{data:h,isError:g}=Et(d),l=Tt(),u=He(),[c,p]=m.useState("confirm"),[f,w]=m.useState(""),[j,$]=m.useState(null),[C,x]=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,A=h==null?void 0:h.credits,P=o!=null&&A!=null?o-A:0,N=P>0,z=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 un({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(Lt(y)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:It(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")),x(U||D),p("error")}finally{L.current=!1}}}const R=c!=="success"&&c!=="pending",v=Rt(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(Cn,{onClick:k?void 0:r,role:"presentation",children:e.jsxs($n,{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,g)]}),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(Rn,{children:[e.jsx(_n,{children:n("names.confirmTitle")}),e.jsx(In,{dangerouslySetInnerHTML:{__html:n("names.confirmBody",{name:`<b>@${Kn(s)}</b>`})}}),e.jsxs(Ln,{children:[e.jsx(Nn,{"aria-hidden":!0,children:"@"}),e.jsx(zn,{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(An,{children:".dcl.eth"})]})]}),z?e.jsxs(we,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(E,{name:"info","aria-hidden":!0}),e.jsx("span",{children:z})]}):null,e.jsx(ye,{onClick:()=>void F(),disabled:!T||!d||B||N,children:n("names.buyCta")})]})]}),c==="completing"&&e.jsxs(Mn,{children:[e.jsx(Wn,{src:_t,alt:"",width:61,height:61}),e.jsxs(Bn,{children:[e.jsx(Pn,{children:ae}),e.jsxs(Un,{children:[e.jsx(Hn,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(On,{"data-testid":"name-progress-count",children:`${_}/${I}`})]}),Z?e.jsx(Fn,{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,g)]}),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,g)]}),e.jsx(ue,{}),e.jsxs(Dn,{children:[e.jsx(Gn,{"aria-hidden":!0,children:e.jsx(E,{name:"check"})}),e.jsxs(qn,{children:[e.jsx("b",{children:n("names.successBannerBold")})," ",n("names.successBannerRest")]})]}),e.jsxs(fe,{style:{marginTop:20},children:[e.jsxs(kn,{"data-testid":"name-success-tile",children:[e.jsx(Sn,{src:Yt,alt:"","aria-hidden":!0,width:47,height:47}),e.jsxs(En,{children:[e.jsx("span",{"aria-hidden":!0,children:s}),e.jsx(Tn,{src:vn,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(Vn,{href:G.profileUrl,target:"_blank",rel:"noopener noreferrer",children:n("names.assignToAvatar")})]})]})]})})}function Kn(s){return s.replace(/[&<>"']/g,o=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[o])}const Qn="https://cdn.decentraland.org/@dcl/shop/1.11.4-34146541745.commit-2e51b7b/_assets/identity-icon-C8yAW_Gq.svg",Jn="https://cdn.decentraland.org/@dcl/shop/1.11.4-34146541745.commit-2e51b7b/_assets/world-icon-6xQ-PmmW.svg",Xn="https://cdn.decentraland.org/@dcl/shop/1.11.4-34146541745.commit-2e51b7b/_assets/invite-icon-Bz6lCTuB.svg",Yn="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",es=i.div`
462
462
  width: 100%;
463
463
  min-width: 0;
464
- `,es=i.nav`
464
+ `,ts=i.nav`
465
465
  display: flex;
466
466
  align-items: center;
467
467
  gap: 6px;
@@ -470,8 +470,8 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
470
470
  font-size: 12px;
471
471
  line-height: 1;
472
472
  color: ${t.colors.gray4};
473
- ${Yt};
474
- `,ts=i.button`
473
+ ${en};
474
+ `,ns=i.button`
475
475
  border: 0;
476
476
  background: none;
477
477
  padding: 0;
@@ -487,10 +487,10 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
487
487
  outline: 2px solid ${t.colors.white};
488
488
  outline-offset: 2px;
489
489
  }
490
- `,ns=i.span`
490
+ `,ss=i.span`
491
491
  font-weight: 700;
492
492
  color: ${t.colors.softWhite};
493
- `,ss=i.div`
493
+ `,is=i.div`
494
494
  display: flex;
495
495
  flex-direction: column;
496
496
  gap: 48px;
@@ -500,7 +500,7 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
500
500
  gap: 32px;
501
501
  padding-bottom: 32px;
502
502
  }
503
- `,is=i.div`
503
+ `,os=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 m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
517
517
  padding: 40px 20px;
518
518
  gap: 28px;
519
519
  }
520
- `,os=i.div`
520
+ `,rs=i.div`
521
521
  display: flex;
522
522
  flex-direction: column;
523
523
  align-items: center;
524
524
  gap: 12px;
525
- `,rs=i.h1`
525
+ `,as=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 m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
533
533
  ${t.media.maxWidth("mobile")} {
534
534
  font-size: 26px;
535
535
  }
536
- `,as=i.p`
536
+ `,ls=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 m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
545
545
  ${t.media.maxWidth("mobile")} {
546
546
  font-size: 16px;
547
547
  }
548
- `,ls=i.div`
548
+ `,cs=i.div`
549
549
  width: min(785px, 100%);
550
550
  display: flex;
551
551
  flex-direction: column;
552
552
  gap: 12px;
553
- `,cs=i.div`
553
+ `,ds=i.div`
554
554
  position: relative;
555
- `,ds=i("div",Pt("invalid"))`
555
+ `,hs=i("div",Ft("invalid"))`
556
556
  display: flex;
557
557
  align-items: center;
558
558
  gap: 8px;
@@ -570,7 +570,7 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
570
570
  ${t.media.maxWidth("mobile")} {
571
571
  border-radius: 16px;
572
572
  }
573
- `,hs=i.span`
573
+ `,ps=i.span`
574
574
  position: absolute;
575
575
  left: -9999px;
576
576
  top: 0;
@@ -592,7 +592,7 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
592
592
  ${t.media.maxWidth("mobile")} {
593
593
  font-size: 16px;
594
594
  }
595
- `,ps=i.div`
595
+ `,us=i.div`
596
596
  position: absolute;
597
597
  top: calc(100% + 8px);
598
598
  left: 0;
@@ -630,9 +630,9 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
630
630
  ${t.media.maxWidth("mobile")} {
631
631
  margin-left: 0;
632
632
  }
633
- `,us=i(Ze)`
633
+ `,fs=i(Ze)`
634
634
  color: #ec303a;
635
- `,fs=i.label`
635
+ `,ms=i.label`
636
636
  flex: 1;
637
637
  min-width: 0;
638
638
  display: flex;
@@ -640,7 +640,7 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
640
640
  gap: 0;
641
641
  cursor: text;
642
642
  overflow: hidden;
643
- `,ms=i.span`
643
+ `,xs=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 m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
652
652
  ${t.media.maxWidth("mobile")} {
653
653
  font-size: 20px;
654
654
  }
655
- `,xs=i.input`
655
+ `,gs=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 m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
674
674
  ${t.media.maxWidth("mobile")} {
675
675
  font-size: 16px;
676
676
  }
677
- `,gs=i.span`
677
+ `,bs=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 m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
691
691
  ${t.media.maxWidth("mobile")} {
692
692
  font-size: 16px;
693
693
  }
694
- `,bs=i.span`
694
+ `,ys=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
- `,Qe=i.button`
701
+ `,Ke=i.button`
702
702
  flex: none;
703
703
  display: inline-flex;
704
704
  align-items: center;
@@ -737,7 +737,7 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
737
737
  ${t.media.maxWidth("mobile")} {
738
738
  display: none;
739
739
  }
740
- `,ys=i(Qe)`
740
+ `,ws=i(Ke)`
741
741
  display: none;
742
742
 
743
743
  ${t.media.maxWidth("mobile")} {
@@ -746,7 +746,7 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
746
746
  height: 48px;
747
747
  border-radius: 12px;
748
748
  }
749
- `,ws=i.span`
749
+ `,vs=i.span`
750
750
  display: inline-flex;
751
751
  align-items: center;
752
752
  gap: 4px;
@@ -757,7 +757,7 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
757
757
  width: 13.26px;
758
758
  height: 14px;
759
759
  }
760
- `,vs=i.div`
760
+ `,js=i.div`
761
761
  display: flex;
762
762
  align-items: center;
763
763
  gap: 8px;
@@ -776,7 +776,7 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
776
776
  height: 16px;
777
777
  flex: none;
778
778
  }
779
- `,Y=i(vs)`
779
+ `,Y=i(js)`
780
780
  position: absolute;
781
781
  top: calc(100% + 8px);
782
782
  left: 0;
@@ -789,9 +789,9 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
789
789
  position: static;
790
790
  margin-top: 8px;
791
791
  }
792
- `,js=i(Ze)`
792
+ `,Cs=i(Ze)`
793
793
  color: inherit;
794
- `,Cs=i.section`
794
+ `,$s=i.section`
795
795
  display: flex;
796
796
  flex-direction: column;
797
797
  gap: 48px;
@@ -801,12 +801,12 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
801
801
  gap: 32px;
802
802
  padding: 0 20px;
803
803
  }
804
- `,$s=i.div`
804
+ `,ks=i.div`
805
805
  display: flex;
806
806
  flex-direction: column;
807
807
  align-items: center;
808
808
  gap: 24px;
809
- `,ks=i.h2`
809
+ `,Ss=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 m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
818
818
  ${t.media.maxWidth("mobile")} {
819
819
  font-size: 22px;
820
820
  }
821
- `,Ss=i.p`
821
+ `,Es=i.p`
822
822
  margin: 0;
823
823
  max-width: 907px;
824
824
  text-align: center;
@@ -831,7 +831,7 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
831
831
  ${t.media.maxWidth("mobile")} {
832
832
  font-size: 16px;
833
833
  }
834
- `,Es=i.div`
834
+ `,Ts=i.div`
835
835
  display: grid;
836
836
  grid-template-columns: repeat(4, 1fr);
837
837
  gap: 24px;
@@ -885,7 +885,7 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
885
885
  font-size: 14px;
886
886
  line-height: 1.57;
887
887
  color: ${t.colors.media};
888
- `,Ts=i.span`
888
+ `,Rs=i.span`
889
889
  font-weight: 700;
890
890
  color: ${t.colors.white};
891
891
  `,Pe=i.a`
@@ -909,7 +909,7 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
909
909
  width: 13px;
910
910
  height: 13px;
911
911
  }
912
- `,Rs=i.span`
912
+ `,_s=i.span`
913
913
  position: absolute;
914
914
  width: 1px;
915
915
  height: 1px;
@@ -919,7 +919,7 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
919
919
  clip: rect(0, 0, 0, 0);
920
920
  white-space: nowrap;
921
921
  border: 0;
922
- `,_s="https://docs.decentraland.org/creator/worlds/about/",Is="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 Ls({onBack:s}){De({title:n("seo.names.title"),description:n("seo.names.description")});const{session:o,signIn:r}=Oe(),d=un(),{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=yn(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 rn(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(ws,{children:[e.jsx(O,{}),ve(x)]}):null]});return e.jsxs(Yn,{"data-testid":"names-page",children:[e.jsxs(es,{"aria-label":n("names.breadcrumbAria"),children:[e.jsx(ts,{onClick:s,children:n("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(ns,{children:n("names.breadcrumbCurrent")})]}),e.jsxs(ss,{children:[e.jsxs(is,{children:[e.jsxs(os,{children:[e.jsx(rs,{children:n("names.heroTitle")}),e.jsx(as,{children:n("names.heroSubtitle")})]}),e.jsxs(ls,{children:[e.jsxs(cs,{"data-testid":"names-input-wrap",children:[e.jsxs(ds,{invalid:c==="taken",children:[e.jsxs(fs,{children:[e.jsx(ms,{"aria-hidden":!0,children:"@"}),e.jsx(xs,{value:l,onChange:v=>u(nn(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(hs,{ref:k,"aria-hidden":!0,"data-placeholder":!l||void 0,children:l||T}),e.jsx(gs,{children:n("names.suffix")})]}),l.length>0?e.jsxs(bs,{"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(ps,{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(us,{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(js,{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(ys,{onClick:F,disabled:!N,children:R}),e.jsx(Rs,{role:"status","aria-live":"polite",children:c==="available"?n("names.available",{name:l}):""})]})]}),e.jsxs(Cs,{children:[e.jsxs($s,{children:[e.jsx(ks,{children:n("names.whyTitle")}),e.jsx(Ss,{children:n("names.whyIntro")})]}),e.jsxs(Es,{children:[e.jsxs(ee,{children:[e.jsx(te,{src:Qn,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:Kn,alt:""}),e.jsxs(ne,{children:[e.jsx(se,{children:n("names.why2Title")}),e.jsxs(ie,{children:[n("names.why2")," ",e.jsx(Ts,{children:n("names.why2Address")})]}),e.jsxs(Pe,{href:_s,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:Jn,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:Xn,alt:""}),e.jsxs(ne,{children:[e.jsx(se,{children:n("names.why4Title")}),e.jsx(ie,{children:n("names.why4")}),e.jsxs(Pe,{href:Is,target:"_blank",rel:"noopener noreferrer",children:[n("names.learnMore"),e.jsx(E,{name:"external-link","aria-hidden":!0})]})]})]})]})]})]}),f?e.jsx(Vn,{name:l,priceCredits:x,onClose:()=>w(!1)}):null]})}const Ns=i.p`
922
+ `,Is="https://docs.decentraland.org/creator/worlds/about/",Ls="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 Ns({onBack:s}){De({title:n("seo.names.title"),description:n("seo.names.description")});const{session:o,signIn:r}=Oe(),d=fn(),{data:h}=Ge(),g=h?qe(V,h):null,[l,u]=m.useState(""),[c,p]=m.useState("idle"),[f,w]=m.useState(!1),[j,$]=m.useState(!1),[C,x]=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=_=>x(_.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=wn(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(!ze(l).ok){p(l.length===0?"idle":"invalid");return}p("checking");const I=new AbortController,M=setTimeout(()=>{(async()=>{try{const _=await an(l,{signal:I.signal});p(_)}catch(_){if((_==null?void 0:_.name)==="AbortError")return;p("error")}})()},400);return()=>{clearTimeout(M),I.abort()}},[l]);const A=ze(l),P=A.ok&&(c==="available"||c==="error"),N=d&&P,z=!d&&P;function F(){if(N){if(!o){r();return}w(!0)}}const R=e.jsxs(e.Fragment,{children:[n("names.claim"),g!=null?e.jsxs(vs,{children:[e.jsx(O,{}),ve(g)]}):null]});return e.jsxs(es,{"data-testid":"names-page",children:[e.jsxs(ts,{"aria-label":n("names.breadcrumbAria"),children:[e.jsx(ns,{onClick:s,children:n("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(ss,{children:n("names.breadcrumbCurrent")})]}),e.jsxs(is,{children:[e.jsxs(os,{children:[e.jsxs(rs,{children:[e.jsx(as,{children:n("names.heroTitle")}),e.jsx(ls,{children:n("names.heroSubtitle")})]}),e.jsxs(cs,{children:[e.jsxs(ds,{"data-testid":"names-input-wrap",children:[e.jsxs(hs,{invalid:c==="taken",children:[e.jsxs(ms,{children:[e.jsx(xs,{"aria-hidden":!0,children:"@"}),e.jsx(gs,{value:l,onChange:v=>u(sn(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(ps,{ref:k,"aria-hidden":!0,"data-placeholder":!l||void 0,children:l||T}),e.jsx(bs,{children:n("names.suffix")})]}),l.length>0?e.jsxs(ys,{"aria-hidden":!0,children:[l.length,"/",re]}):null,e.jsx(Ke,{onClick:F,disabled:!N,"data-testid":"names-claim",children:R})]}),c==="taken"?e.jsxs(us,{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(fs,{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")}):z?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(Cs,{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"&&!A.ok&&A.reason==="too-short"?e.jsx(Y,{tone:"muted",role:"status",children:n("names.tooShort",{min:Ve})}):null]}),e.jsx(ws,{onClick:F,disabled:!N,children:R}),e.jsx(_s,{role:"status","aria-live":"polite",children:c==="available"?n("names.available",{name:l}):""})]})]}),e.jsxs($s,{children:[e.jsxs(ks,{children:[e.jsx(Ss,{children:n("names.whyTitle")}),e.jsx(Es,{children:n("names.whyIntro")})]}),e.jsxs(Ts,{children:[e.jsxs(ee,{children:[e.jsx(te,{src:Qn,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:Jn,alt:""}),e.jsxs(ne,{children:[e.jsx(se,{children:n("names.why2Title")}),e.jsxs(ie,{children:[n("names.why2")," ",e.jsx(Rs,{children:n("names.why2Address")})]}),e.jsxs(Pe,{href:Is,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:Xn,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:Yn,alt:""}),e.jsxs(ne,{children:[e.jsx(se,{children:n("names.why4Title")}),e.jsx(ie,{children:n("names.why4")}),e.jsxs(Pe,{href:Ls,target:"_blank",rel:"noopener noreferrer",children:[n("names.learnMore"),e.jsx(E,{name:"external-link","aria-hidden":!0})]})]})]})]})]})]}),f?e.jsx(Zn,{name:l,priceCredits:g,onClose:()=>w(!1)}):null]})}const zs=i.p`
923
923
  display: flex;
924
924
  align-items: center;
925
925
  gap: 10px;
@@ -935,5 +935,5 @@ import{r as m,b as He,j as e,u as tt}from"./react-CO8J9utQ.js";import{u as nt,s
935
935
  background: rgba(211, 51, 51, 0.1);
936
936
  color: ${t.colors.err};
937
937
  }
938
- `,Ue=48,As=["all","on_sale","not_for_sale"],zs=s=>s?"all":"on_sale";function si(){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=zs(!!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=As.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(Ls,{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(Ns,{"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(en,{"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{si as Assets};
939
- //# sourceMappingURL=Assets-Cso_98af.js.map
938
+ `,Ue=48,As=["all","on_sale","not_for_sale"],Ms=s=>s?"all":"on_sale";function ii(){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=Ms(!!r),g=m.useMemo(()=>({category:"all",status:h,subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,sort:"newest"}),[h]),[l,u]=nt(g),{subCategory:c,rarities:p,priceMin:f,priceMax:w,smart:j,sort:$}=l,C=l.category,x=As.includes(l.status)?l.status:h;it(`${C}:${c??""}`);const[b,S]=m.useState(!1);m.useEffect(()=>{if(!b)return;const a=Q=>{Q.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=x==="on_sale",T=f&&!Number.isNaN(Number(f))?Number(f):void 0,k=w&&!Number.isNaN(Number(w))?Number(w):void 0,W=Nt(),B=c?Ut[c]:void 0,A=(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:A,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:A,isWearableSmart:j||void 0,isOnSale:x==="not_for_sale"?!1:void 0},{items:z,total:F,isLoading:R,isPlaceholderData:v,error:I,hasNextPage:M,isFetchingNextPage:_,isFetchNextPageError:ae,fetchNextPage:Z}=Pt(L?["shop-items",P]:["catalog-items",N],a=>L?Mt({...P,first:Ue,skip:a}):Wt({...N,first:Ue,skip:a}),{enabled:C!=="names"}),y=F,{data:U,isError:D,isPending:Qe}=Ge(),Je=a=>U&&a.manaWei?qe(a.manaWei,U):null,Xe=L&&Qe&&z.some(a=>a.source==="legacy"),Se=R||v||Xe,Ye=R?15:Math.max(z.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 K=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:x,smart:j});if(K.current==="__init__"||K.current===a){K.current=a;return}K.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:x,smart:j,sort:$},result_count:y})},[C,c,p,T,k,$,x,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(g)}const q=[];(T!=null||k!=null)&&q.push({key:"price",label:n("filter.price"),onRemove:()=>{u({priceMin:"",priceMax:""})}});for(const a of ot)p.includes(a)&&q.push({key:`rarity-${a}`,label:zt(a),onRemove:()=>_e(a)});return j&&q.push({key:"smart",label:n("filter.smart"),onRemove:()=>u({smart:!1})}),x!==h&&q.push({key:"status",label:x==="all"?n("filter.statusAll"):x==="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:x,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(Ns,{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:q,onClearChips:et}),D&&L&&z.some(a=>a.source==="legacy")?e.jsx(zs,{"data-variant":"warn",children:n("assets.marketUnavailable")}):null,I?e.jsx(Ht,{message:n("assets.loadError"),testId:"browse-error"}):null,!Se&&z.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(tn,{"data-testid":"grid",children:Se?e.jsx(Ne,{count:Ye}):e.jsxs(e.Fragment,{children:[z.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 Q=Je(H);return Q==null?e.jsx(J,{item:a,mode:"view"},X(a)):e.jsx(J,{item:{...H,priceCredits:Q}},X(a))}),_?e.jsx(Ne,{count:6}):null]})}),e.jsx(Bt,{hasNextPage:M,isFetching:_,isError:ae,onLoadMore:()=>void Z()})]})]})})]})}export{ii as Assets};
939
+ //# sourceMappingURL=Assets-C3hb4Xf1.js.map