@dcl/shop 1.13.1-35585926635.commit-02c8d2e → 1.13.1-35590455689.commit-b96d6aa

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 (254) hide show
  1. package/_assets/{Activity-DoatD7MW.js → Activity-DtmObND1.js} +6 -6
  2. package/_assets/{AnimatedBackground-dVEk0PGp.js → AnimatedBackground-C7LiOBAR.js} +2 -2
  3. package/_assets/Assets-BKSeyg2-.js +990 -0
  4. package/_assets/Cart-BlPpGnda.js +748 -0
  5. package/_assets/{Collection-CPZhq7CU.js → Collection-CcSqRcWT.js} +10 -10
  6. package/_assets/CollectionCarousel-B94cetFe.js +322 -0
  7. package/_assets/{Confetti-Bd901H1c.js → Confetti-BsAs2ze-.js} +4 -4
  8. package/_assets/{ConstantsUtil-Bk0e9ERj.js → ConstantsUtil-C2D8mddi.js} +2 -2
  9. package/_assets/{ContentClient-CWtagBtE.js → ContentClient-CzFsgWm1.js} +2 -2
  10. package/_assets/{Creator-pBuqm0Cj.js → Creator-CJGUaWbh.js} +16 -16
  11. package/_assets/{CreditPackPicker-COb2KClL.js → CreditPackPicker-CsfuFEfj.js} +67 -67
  12. package/_assets/{DeploymentBuilder-Dg-EXfAY.js → DeploymentBuilder-C567uLsW.js} +2 -2
  13. package/_assets/{EmotePlaybackBar-DyYs6qdM.js → EmotePlaybackBar-v4_tU2B8.js} +19 -19
  14. package/_assets/{ErrorNotice-Cm0KaFyV.js → ErrorNotice-Bvb886Qo.js} +2 -2
  15. package/_assets/Event-Dw7dIeEd.js +72 -0
  16. package/_assets/{ExchangeController-BzBrR3ZT.js → ExchangeController-DosyxWhL.js} +2 -2
  17. package/_assets/{Faq-D2noxWN_.js → Faq-CfWixARb.js} +2 -2
  18. package/_assets/{Filters-Dw8HD8Ma.js → Filters-YViPs7N9.js} +9 -9
  19. package/_assets/{GetCredits-BmFWdIGx.js → GetCredits-xHj_8fdJ.js} +22 -27
  20. package/_assets/{Grow-BiGjBqEo.js → Grow-CTV7DbJ0.js} +2 -2
  21. package/_assets/{HelpersUtil-DQga4Ywl.js → HelpersUtil-CH7uwgeQ.js} +2 -2
  22. package/_assets/ItemDetail-CGP_a6DC.js +3411 -0
  23. package/_assets/{LoadMore-i7_riiE5.js → LoadMore-DtjdrYgG.js} +2 -2
  24. package/_assets/{ManaPricingBanner.styles-Dyx_YmBW.js → ManaPricingBanner.styles-DujCFxcW.js} +2 -2
  25. package/_assets/{MyAssets-Bs1a3OD9.js → MyAssets-B6TkqwwO.js} +8 -8
  26. package/_assets/{MyFavorites-C03JcdtN.js → MyFavorites-B44xn-9o.js} +3 -3
  27. package/_assets/{MyStore-ryCuwvDl.js → MyStore-BQ6gSMq1.js} +7 -7
  28. package/_assets/{NetworkUtil-BbMBxyRo.js → NetworkUtil-gznX6ou4.js} +2 -2
  29. package/_assets/{NotFound-DOO8Ql2w.js → NotFound-D7NlwWss.js} +2 -2
  30. package/_assets/{NotificationsBell-VR9lnc9P.js → NotificationsBell-wL661h4k.js} +13 -13
  31. package/_assets/{OutfitDetail-Co1A4WCO.js → OutfitDetail-CSiCaTR7.js} +2 -2
  32. package/_assets/OutfitPreview-CKul99pm.js +7 -0
  33. package/_assets/{OutfitStudio-DGibRraW.js → OutfitStudio-BFVYiWYq.js} +10 -10
  34. package/_assets/PaymentMethodStep-gIGuBdJE.js +370 -0
  35. package/_assets/{SaleCountdown-NdYuBnTu.js → SaleCountdown-2TjAtNVx.js} +2 -2
  36. package/_assets/{Spinner-B5rI43ql.js → Spinner-CRDfDFgI.js} +2 -2
  37. package/_assets/{StoreSettings-C2dwtV13.js → StoreSettings-CWiJDJd-.js} +9 -9
  38. package/_assets/{Success-B6gpri2D.js → Success-BKyyN-pm.js} +2 -2
  39. package/_assets/{SwapController-Di8HGSG3.js → SwapController-DCQKOdcz.js} +2 -2
  40. package/_assets/{Tooltip-Bj-rfWuS.js → Tooltip-DDZC_HFb.js} +2 -2
  41. package/_assets/{TradeService-D2dJeuos.js → TradeService-DfSf1NpN.js} +2 -2
  42. package/_assets/{W3MFrameProviderSingleton-DwbyBYX9.js → W3MFrameProviderSingleton-CrWP7H9X.js} +4 -4
  43. package/_assets/{WebCryptoP256-CZzgSMZW.js → WebCryptoP256-CLuRQdD0.js} +2 -2
  44. package/_assets/{basic-C0ccxPdk.js → basic-CnpinvSd.js} +2 -2
  45. package/_assets/{biconomy-DGsEEV8A.js → biconomy-CQS-_u1K.js} +2 -2
  46. package/_assets/{browseLayout.styles-Dg021Y7v.js → browseLayout.styles-DlEgobcb.js} +2 -2
  47. package/_assets/{browser-DfAY1k2K.js → browser-JmFfz-b9.js} +2 -2
  48. package/_assets/{browser-D3mkrR6N.js → browser-jrXp40VI.js} +2 -2
  49. package/_assets/{browser-ponyfill-C5RB02M7.js → browser-ponyfill-vVJjiRiF.js} +2 -2
  50. package/_assets/{buy-Da1E8jgj.js → buy-DNvl7CRU.js} +2 -2
  51. package/_assets/{buy-gasless-CaUM9sxG.js → buy-gasless-Cd8D2hco.js} +2 -2
  52. package/_assets/cart-checkout-BvFV5K1b.js +2 -0
  53. package/_assets/{categories-DeCaTWZU.js → categories-D2I9oC9p.js} +2 -2
  54. package/_assets/{ccip-CIKPg0_h.js → ccip-D8g0xR6M.js} +2 -2
  55. package/_assets/{ccip-CIPTk6YK.js → ccip-fv1rGl9l.js} +2 -2
  56. package/_assets/{chains-CWGwszpJ.js → chains-rk6oFk-J.js} +2 -2
  57. package/_assets/collectionPage.styles-CNsIHztj.js +41 -0
  58. package/_assets/{common-DamPx7zD.js → common-CMmghlP6.js} +2 -2
  59. package/_assets/{controller-J7h5zgkf.js → controller-l-w-81tc.js} +3 -3
  60. package/_assets/{core-BILweyMC.js → core-BphVSVDd.js} +5 -5
  61. package/_assets/{createSvgIcon-BOJMqAuj.js → createSvgIcon-Ci6-mKZX.js} +4 -4
  62. package/_assets/{crumbs.styles-6TXvIB5e.js → crumbs.styles-DhvCPMDb.js} +2 -2
  63. package/_assets/{custom-CtbaVsvz.js → custom-COOt78S6.js} +2 -2
  64. package/_assets/{data-capture-D_Yc-lFk.js → data-capture-C7thi-6U.js} +5 -5
  65. package/_assets/{dcl-schemas-Do6ePE9M.js → dcl-schemas-rAoTN5Ga.js} +2 -2
  66. package/_assets/{decimals-CPcEXrkP.js → decimals-Dl7Q2CQ8.js} +2 -2
  67. package/_assets/{decimals-fY1-YeOV.js → decimals-DvdfA0Vf.js} +2 -2
  68. package/_assets/{detectExtension-BzGhSQVN.js → detectExtension-CnrRv_RG.js} +2 -2
  69. package/_assets/{disposePreview-BhRqNFqz.js → disposePreview-ZbaLYmpw.js} +2 -2
  70. package/_assets/{email-CDJff6Le.js → email-eSYyd3Ic.js} +7 -7
  71. package/_assets/{embedded-wallet-OlJuY5Lb.js → embedded-wallet-DDuKB0SG.js} +2 -2
  72. package/_assets/{emotion-styled.browser.esm-dqXx08M6.js → emotion-styled.browser.esm-hf9E1adQ.js} +2 -2
  73. package/_assets/{engine-Cqgf8_-e.js → engine-DD67Y28C.js} +2 -2
  74. package/_assets/{errors-COVZQXFS.js → errors-YbnZlxOr.js} +2 -2
  75. package/_assets/{estimate-l1-fee-cwAe5Vqz.js → estimate-l1-fee-Db8Xd1Gz.js} +2 -2
  76. package/_assets/{eth_estimateGas-Bi2jA3d6.js → eth_estimateGas-CuREEErh.js} +2 -2
  77. package/_assets/{eth_getStorageAt-Drv0-oaq.js → eth_getStorageAt-DZSUCK-B.js} +2 -2
  78. package/_assets/{eth_getTransactionCount-u8vibbIm.js → eth_getTransactionCount-BdILqCdx.js} +2 -2
  79. package/_assets/{ethereum-Mtg8xwT8.js → ethereum-B-cyXRfV.js} +2 -2
  80. package/_assets/{ethers-DVrorjJ1.js → ethers-BicPoGF3.js} +2 -2
  81. package/_assets/{events-CcYNTdVN.js → events-CaiMQ2jo.js} +2 -2
  82. package/_assets/{execute-CoAxXj0W.js → execute-DY89Xj7h.js} +3 -3
  83. package/_assets/{extractIPFS-DlbP2Osb.js → extractIPFS-DPI0xl1R.js} +2 -2
  84. package/_assets/{features-DNE6dOZ4.js → features-CuKlQS4a.js} +2 -2
  85. package/_assets/{fetchTokenMetadata-CiNffAhl.js → fetchTokenMetadata-BxkvK3Bm.js} +3 -3
  86. package/_assets/{field.styles-Dsz8I5YB.js → field.styles-DMi6RLqU.js} +2 -2
  87. package/_assets/{fortmatic-B2QacKOL.js → fortmatic-O6xyCC9X.js} +2 -2
  88. package/_assets/{get-bytecode-DCxZ_TJS.js → get-bytecode-Mi4Svfmk.js} +2 -2
  89. package/_assets/{get-ecosystem-wallet-info-Dpf1xtjk.js → get-ecosystem-wallet-info-UP5lf6cZ.js} +2 -2
  90. package/_assets/{getBalance-DacQHsEf.js → getBalance-B6-tJ5BV.js} +3 -3
  91. package/_assets/{getInstalledModules-_KOhu2kj.js → getInstalledModules-BtUgUvpg.js} +2 -2
  92. package/_assets/{getNFT-TgQU4sPn.js → getNFT-BkPMs9B5.js} +3 -3
  93. package/_assets/{getNFT-DLLMJ-N8.js → getNFT-DATmUgAo.js} +2 -2
  94. package/_assets/{grid.styles-zbj0YrVx.js → grid.styles-D0ZoMAGk.js} +2 -2
  95. package/_assets/{hashTypedData-CxzAx589.js → hashTypedData-CefqN4UY.js} +2 -2
  96. package/_assets/{hashTypedData-C4V4k80v.js → hashTypedData-DN22sW92.js} +2 -2
  97. package/_assets/{import-p1kr6qLz.js → import-uY6UfPXb.js} +2 -2
  98. package/_assets/{in-app-niBzraeI.js → in-app-Bny7t-DP.js} +2 -2
  99. package/_assets/{in-app-wallet-calls-Dyorin4y.js → in-app-wallet-calls-DCQO7CRP.js} +2 -2
  100. package/_assets/{index-DeaVX3Ga.js → index--MHqQDZS.js} +2 -2
  101. package/_assets/{index-B39be1Q8.js → index-0GVDw4uz.js} +2 -2
  102. package/_assets/{index-BdTU9iVQ.js → index-6JqTwz5Z.js} +4 -4
  103. package/_assets/{index-CwA52DzI.js → index-7-ubf_-8.js} +2 -2
  104. package/_assets/{index-CpfmSBK0.js → index-72AbyZoi.js} +2 -2
  105. package/_assets/{index-CWJFyp1v.js → index-B-pxbYDD.js} +2 -2
  106. package/_assets/{index-I_W87dfE.js → index-B0ZDNOJc.js} +2 -2
  107. package/_assets/{index-BzKWq7pb.js → index-B5rvK7P3.js} +2 -2
  108. package/_assets/{index-BdhRH7ae.js → index-B5yRX3sO.js} +2 -2
  109. package/_assets/{index-DXmPq_Kc.js → index-B8Miitap.js} +2 -2
  110. package/_assets/{index-CKb-Chs7.js → index-BB2vaXmU.js} +2 -2
  111. package/_assets/{index-D05bb_h6.js → index-BJ_QYYzi.js} +2 -2
  112. package/_assets/{index-pibLOLKX.js → index-BNxapPjc.js} +2 -2
  113. package/_assets/{index-C-cdcYSu.js → index-BUq9yZ3w.js} +5 -5
  114. package/_assets/{index-Dpu-M2gs.js → index-BXZWbQLr.js} +2 -2
  115. package/_assets/{index-Cn-ULh1k.js → index-BXk1eKu5.js} +2 -2
  116. package/_assets/{index-DjQWTjO5.js → index-BYX4J5QP.js} +2 -2
  117. package/_assets/{index-BhPBG2XL.js → index-BdzxJpnV.js} +9 -9
  118. package/_assets/{index-BrTe5eTC.js → index-BvC4isNn.js} +2 -2
  119. package/_assets/{index-CxOzFLm7.js → index-Bwq-s3g2.js} +2 -2
  120. package/_assets/{index-Ddqdlsoi.js → index-BxmlkA7q.js} +2 -2
  121. package/_assets/{index-DUaZ1t6t.js → index-C1VNSD13.js} +2 -2
  122. package/_assets/{index-CWE_Bdvd.js → index-C30kKaUV.js} +2 -2
  123. package/_assets/{index-DpJ4zJ7r.js → index-CDzHP3jq.js} +2 -2
  124. package/_assets/{index-U6lik-J8.js → index-CFX2-tLC.js} +2 -2
  125. package/_assets/{index-Bpbs2w1c.js → index-CM1GTgwu.js} +2 -2
  126. package/_assets/{index-CWc56QrX.js → index-CO1HUlye.js} +2 -2
  127. package/_assets/{index-B1DNuJsS.js → index-CP4g0MYO.js} +2 -2
  128. package/_assets/{index-Cq-Etsdf.js → index-CW8iztAv.js} +2 -2
  129. package/_assets/{index-iRDDuzQN.js → index-CYNOPRoZ.js} +2 -2
  130. package/_assets/{index-CZmSHbVE.js → index-CakMQwPl.js} +2 -2
  131. package/_assets/{index-BEbVm5wA.js → index-CbayBN70.js} +2 -2
  132. package/_assets/{index-DrGWXFkr.js → index-CbiZcfm9.js} +2 -2
  133. package/_assets/{index-ChhJ84F9.js → index-Cg51zZ2k.js} +2 -2
  134. package/_assets/{index-sTnDYGsF.js → index-Crr-s_9f.js} +2 -2
  135. package/_assets/{index-BaeSw32D.js → index-Cz_NLjja.js} +3 -3
  136. package/_assets/{index-CfGsvFRR.js → index-D1s-_zWj.js} +2 -2
  137. package/_assets/{index-_AZXosO6.js → index-D5mE-BZf.js} +2 -2
  138. package/_assets/{index-gg05iP5j.js → index-DBXe-H17.js} +4 -4
  139. package/_assets/{index-BhSgZf6d.css → index-DKFaSnR3.css} +1 -1
  140. package/_assets/{index-CEbyUU5H.js → index-DKolBddb.js} +2 -2
  141. package/_assets/{index-CcTOkZrG.js → index-DLNZA_z3.js} +2 -2
  142. package/_assets/{index-D8M-5R_3.js → index-DVuOEZvs.js} +2 -2
  143. package/_assets/{index-B6iPDUS8.js → index-DXGd7b5m.js} +2 -2
  144. package/_assets/{index-CxNh07aM.js → index-DY5YerbM.js} +3 -3
  145. package/_assets/{index-D8olnnil.js → index-DY6MimDO.js} +2 -2
  146. package/_assets/{index-D_SCQhiC.js → index-D_GN8H-m.js} +2 -2
  147. package/_assets/{index-CwoMLrsB.js → index-Dck2NPjx.js} +2 -2
  148. package/_assets/{index-BC9VPSaU.js → index-Dk93Si47.js} +2 -2
  149. package/_assets/{index-DzWgqsYH.js → index-Dm2tHUTz.js} +2 -2
  150. package/_assets/{index-rsyTCpy-.js → index-Dmr0-dT1.js} +2 -2
  151. package/_assets/{index-Dyy6WQp0.js → index-DtG0vwAQ.js} +5 -5
  152. package/_assets/{index-CRlpbq5e.js → index-DvmOwVBr.js} +2 -2
  153. package/_assets/{index-MqPRfHS_.js → index-HpMk4su8.js} +4 -4
  154. package/_assets/{index-CD44EXbq.js → index-MB1YeHVs.js} +2 -2
  155. package/_assets/{index-DDb_ETfE.js → index-Nax2ER2m.js} +2 -2
  156. package/_assets/{index-y9tZLe7Z.js → index-PCOMQSTj.js} +14 -14
  157. package/_assets/{index-CZEd2SGy.js → index-PdWok5k8.js} +3 -3
  158. package/_assets/{index-Ccey0v_W.js → index-TLvmnU-6.js} +2 -2
  159. package/_assets/{index-Csp5LciJ.js → index-Vx6QrhKv.js} +2 -2
  160. package/_assets/{index-CEVRFChv.js → index-_CzitlLr.js} +2 -2
  161. package/_assets/{index-DLcPHJzx.js → index-fKOqL46i.js} +2 -2
  162. package/_assets/{index-WiX7N7NB.js → index-gLJ8elkH.js} +2 -2
  163. package/_assets/{index-BgrkbkKX.js → index-oZ1tZhJd.js} +3 -3
  164. package/_assets/{index-BW2_mJUZ.js → index-os35Oj8Y.js} +3 -3
  165. package/_assets/{index-PmcUrVFZ.js → index-tJJoQndL.js} +2 -2
  166. package/_assets/{index-B1-eV0Yy.js → index-ujlY03pm.js} +2 -2
  167. package/_assets/{index-C9RSadCu.js → index-xFEDZfFw.js} +2 -2
  168. package/_assets/{index.es-CWkiohwA.js → index.es-BA-gf3fx.js} +2 -2
  169. package/_assets/{index.es-CPftFMVM.js → index.es-DXZDtwqn.js} +2 -2
  170. package/_assets/{index.es-BZZFX7UO.js → index.es-naJ1lYo9.js} +2 -2
  171. package/_assets/{index.es-p9GOzpcM.js → index.es-ug1d0j5_.js} +5 -5
  172. package/_assets/{items-empty-D3SdcrUb.js → items-empty-DQe16EqO.js} +2 -2
  173. package/_assets/{jump-BLEV_WoY.js → jump-CDi48t17.js} +2 -2
  174. package/_assets/{linkAccount-DAFP48le.js → linkAccount-D2r-_PNt.js} +2 -2
  175. package/_assets/{localBatchGatewayRequest-dB8Wq4kD.js → localBatchGatewayRequest-DCZrRD0b.js} +2 -2
  176. package/_assets/{modal.styles-C5SxmNLg.js → modal.styles-B9NcZpH1.js} +2 -2
  177. package/_assets/{native-CBQhq49N.js → native-CsJDQkEo.js} +2 -2
  178. package/_assets/{networks-8H1PRpMW.js → networks-H2-ip_xr.js} +2 -2
  179. package/_assets/{onramp-J5H4ebWV.js → onramp-jMWRpk_W.js} +2 -2
  180. package/_assets/{openzeppelin-D4p4dWkw.js → openzeppelin-CNtXocND.js} +2 -2
  181. package/_assets/{ownerOf-6NPphff8.js → ownerOf-D2gp3JZq.js} +2 -2
  182. package/_assets/{parseNft-CNeONFsP.js → parseNft-Cj0GHmVO.js} +3 -3
  183. package/_assets/{parseSignature-RdZmR6vg.js → parseSignature-Cr-6xEFY.js} +4 -4
  184. package/_assets/{parseSignature-CRChMV-U.js → parseSignature-DqjVaLFW.js} +2 -2
  185. package/_assets/{passkeys-asZ3JuTk.js → passkeys-ZTPY9Io2.js} +2 -2
  186. package/_assets/{pay-with-exchange-Cv_5xsJB.js → pay-with-exchange-DFmrgXeW.js} +2 -2
  187. package/_assets/{prepare-contract-call-Bgba2npe.js → prepare-contract-call-BXj1hstj.js} +2 -2
  188. package/_assets/{qr-overlay-DkizM6BP.js → qr-overlay-BaiwMdsM.js} +4 -4
  189. package/_assets/{react-ZT2P9-hV.js → react-BQkTEhfI.js} +2 -2
  190. package/_assets/{receive-CawQ-n3T.js → receive-C-lo_prs.js} +2 -2
  191. package/_assets/{resolveImplementation-BVnQ0KdI.js → resolveImplementation-CmaftYpU.js} +2 -2
  192. package/_assets/{resume-buy-VqFhR9e8.js → resume-buy-CVhyi-L1.js} +2 -2
  193. package/_assets/{resume-name-CTz059A2.js → resume-name-DUz5x9Rs.js} +2 -2
  194. package/_assets/{rpc-BJ7rd6au.js → rpc-B61gfFSf.js} +2 -2
  195. package/_assets/{sales-empty-l9JLZ5D0.js → sales-empty-B211ygk7.js} +2 -2
  196. package/_assets/{search-empty-CkXuQVln.js → search-empty-D4s8B_tZ.js} +2 -2
  197. package/_assets/{secp256k1-BaU6Nn5x.js → secp256k1-Bd-eUAzZ.js} +2 -2
  198. package/_assets/{secp256k1-BGQ_Uqpo.js → secp256k1-DV0o92mg.js} +2 -2
  199. package/_assets/{secp256k1-Bu5sn1ZV.js → secp256k1-iVBXtOip.js} +2 -2
  200. package/_assets/{send-DONjIfwF.js → send-DxdkG-xE.js} +2 -2
  201. package/_assets/{send-batch-transaction-C_JYVBkw.js → send-batch-transaction-CxU4nO-t.js} +2 -2
  202. package/_assets/{send-eip712-transaction-Clelg5Q-.js → send-eip712-transaction-DFcFblDh.js} +3 -3
  203. package/_assets/{send-gasless-transaction-DNc4O0S0.js → send-gasless-transaction-8mkyEx1n.js} +3 -3
  204. package/_assets/send-transaction-5bX-xy_o.js +3 -0
  205. package/_assets/sendMetaTransaction-C0dwdljX.js +2 -0
  206. package/_assets/{sendRawTransaction-BM57FQWh.js → sendRawTransaction-Z6tsEgH4.js} +4 -4
  207. package/_assets/{sentry-qVQnooqM.js → sentry-DEsWWpBW.js} +3 -3
  208. package/_assets/{serializeTransaction-FdLqYQ-w.js → serializeTransaction-97Bat4Ro.js} +2 -2
  209. package/_assets/{session-proposal-CAm5TVJB.js → session-proposal-BFyOx5ep.js} +2 -2
  210. package/_assets/{session-request-C8xtyN3L.js → session-request-B-ZDEBIl.js} +3 -3
  211. package/_assets/{sha256-CcM85_-b.js → sha256-CFlr28b8.js} +2 -2
  212. package/_assets/sha3-VyXLimeE.js +2 -0
  213. package/_assets/signin-empty-3JhXhx04.js +2 -0
  214. package/_assets/{signing-FPVJ2eSa.js → signing-CaEAGDvd.js} +4 -4
  215. package/_assets/{skeleton.styles-DTLcQB9A.js → skeleton.styles-CP5AXi51.js} +2 -2
  216. package/_assets/{socials-BHL-s99I.js → socials-BAatCjg9.js} +2 -2
  217. package/_assets/{styled-BOKv7XKm.js → styled-Ciz7uJTf.js} +3 -3
  218. package/_assets/{swaps-DDuyuFV1.js → swaps-Duk8fCsv.js} +2 -2
  219. package/_assets/{thirdweb-N4oYmhTQ.js → thirdweb-Cvgkcum1.js} +4 -4
  220. package/_assets/{to-serializable-transaction-DZXV0RS9.js → to-serializable-transaction-BQmkdzOC.js} +3 -3
  221. package/_assets/{totalSupply-DnoXRYZk.js → totalSupply-DWGbPH_3.js} +2 -2
  222. package/_assets/{trade-encoding-JnGsRcov.js → trade-encoding-7I6Mahyk.js} +2 -2
  223. package/_assets/{transaction-D82LqpKn.js → transaction-C6zqrRsP.js} +2 -2
  224. package/_assets/{transactionReceipt-DEqK-l-5.js → transactionReceipt-wHhvs2MM.js} +2 -2
  225. package/_assets/{transactions-1TYNoevC.js → transactions-CWlJM2Ik.js} +2 -2
  226. package/_assets/{useCreatorSales-oruupPPN.js → useCreatorSales-B_z9WK8w.js} +2 -2
  227. package/_assets/useInfiniteGrid-B28HAmqv.js +2 -0
  228. package/_assets/{useStore-CGFjD1j7.js → useStore-BH311mqp.js} +3 -3
  229. package/_assets/{useTheme-J18Pg7gw.js → useTheme-CnRNEYQX.js} +2 -2
  230. package/_assets/{utils-BE7z1_FY.js → utils-Dpy_P8-Z.js} +2 -2
  231. package/_assets/{verifyHash-Buuby46g.js → verifyHash-CNHX3bhf.js} +2 -2
  232. package/_assets/{w3m-modal-DhWirtG8.js → w3m-modal-BfLNfzQm.js} +2 -2
  233. package/_assets/{w3m-modal-BU-cBw0Z.js → w3m-modal-Cd0pP9Y6.js} +2 -2
  234. package/_assets/{wait-for-tx-receipt-CG08f_bj.js → wait-for-tx-receipt-CCoeTvDN.js} +2 -2
  235. package/_assets/{wallets-CMB2i32E.js → wallets-DBEimxdS.js} +6 -6
  236. package/_assets/{web-connector-BPh_N46m.js → web-connector-CFETM0Ek.js} +4 -4
  237. package/_assets/{writeContract-BcpztdZJ.js → writeContract-xYjTt9Gm.js} +2 -2
  238. package/_assets/{zora-sepolia-arxykf8i.js → zora-sepolia-CmFkNSlJ.js} +2 -2
  239. package/_assets/{zoraTestnet-DL2ClkoW.js → zoraTestnet-D9iiG-Zu.js} +2 -2
  240. package/index.html +11 -11
  241. package/package.json +2 -2
  242. package/_assets/Assets-CN1LU5Xt.js +0 -980
  243. package/_assets/Cart-Bwf6I0xV.js +0 -748
  244. package/_assets/CollectionCarousel-CrMGuIJ3.js +0 -322
  245. package/_assets/Event-C9d1J0Kb.js +0 -72
  246. package/_assets/ItemDetail-BSwm3WSx.js +0 -3779
  247. package/_assets/OutfitPreview-Ceha9IWa.js +0 -7
  248. package/_assets/cart-checkout-uu8usx3x.js +0 -2
  249. package/_assets/collectionPage.styles-DOzyhn9M.js +0 -41
  250. package/_assets/send-transaction-pFbo31gg.js +0 -3
  251. package/_assets/sendMetaTransaction-BcKatlZr.js +0 -2
  252. package/_assets/sha3-FAYNGyBi.js +0 -2
  253. package/_assets/signin-empty-UN_rVDWL.js +0 -2
  254. package/_assets/useInfiniteGrid-56c_34kP.js +0 -2
@@ -0,0 +1,990 @@
1
+ import{r as p,b as Ke,j as e,a as xt,u as gt}from"./react-BQkTEhfI.js";import{c as ne,r as bt,b as yt,bE as wt,h as Ze,j as Qe,bA as jt,aG as vt,aE as Ct,w as $t,cX as kt,cY as St,s as i,a as t,x as lt,bk as Et,aL as Rt,F as ct,t as s,cZ as Tt,bH as Le,D as _t,I as W,z as Q,c_ as We,E as fe,bj as Mt,bi as It,l as At,O as Te,bu as Ye,bD as Nt,bC as Lt,B as dt,Y as ht,m as pt,bU as Wt,y as zt,av as Pt,$ as Bt,a1 as Xe,a2 as xe,aJ as Ft,bQ as Ut}from"./index-PCOMQSTj.js";import{u as Ot,s as Ht}from"./search-empty-D4s8B_tZ.js";import{C as Dt,u as Gt,n as qt,S as Kt,R as Vt,F as Zt,a as Qt}from"./Filters-YViPs7N9.js";import{L as Yt}from"./LoadMore-DtjdrYgG.js";import{u as Xt}from"./useInfiniteGrid-B28HAmqv.js";import{S as Jt}from"./categories-D2I9oC9p.js";import{E as en}from"./ErrorNotice-Bvb886Qo.js";import{d as tn}from"./dcl-schemas-rAoTN5Ga.js";import{s as nn,G as sn,w as an,S as on}from"./buy-gasless-Cd8D2hco.js";import{s as rn}from"./buy-DNvl7CRU.js";import{u as ln,A as cn,C as dn}from"./trade-encoding-7I6Mahyk.js";import{f as hn}from"./errors-YbnZlxOr.js";import{J as pn,C as un,B as _e}from"./ethers-BicPoGF3.js";import{z as mn,D as fn,w as xn,W as gn,m as bn,n as yn,o as wn,v as jn,j as Je}from"./CreditPackPicker-CsfuFEfj.js";import{u as vn,M as Cn,o as $n,R as kn,c as Sn}from"./cart-checkout-BvFV5K1b.js";import{P as En}from"./PaymentMethodStep-gIGuBdJE.js";import{R as et}from"./resume-name-DUz5x9Rs.js";import{R as Rn}from"./resume-buy-CVhyi-L1.js";import{n as Tn}from"./name-glyph-aUugT8vq.js";import{c as _n}from"./crumbs.styles-DhvCPMDb.js";import{n as Mn}from"./Tooltip-DDZC_HFb.js";import{G as In}from"./grid.styles-D0ZoMAGk.js";import{R as An,S as Nn,a as Ln,D as Wn,b as zn,C as Pn,c as Bn,d as Fn,e as Un,M as On}from"./browseLayout.styles-DlEgobcb.js";import"./sentry-DEsWWpBW.js";import"./intl-AKLEHPeO.js";import"./skeleton.styles-CP5AXi51.js";import"./sendMetaTransaction-C0dwdljX.js";import"./mana-matic-CEqvSwrJ.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new n.Error().stack;a&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[a]="abaf02fe-d372-4fb2-9c1c-461dc0a856bb",n._sentryDebugIdIdentifier="sentry-dbid-abaf02fe-d372-4fb2-9c1c-461dc0a856bb")}catch{}})();function ge(n){const a=n.source??"item",r=n.tradeId||`${n.contractAddress}-${n.tokenId??n.itemId??""}`;return`${a}:${r}`}const Y="100000000000000000000",ut=2,Me=15,Hn=/^[a-zA-Z0-9]+$/;function tt(n){const a=n.trim();return a.length===0?{ok:!1,reason:"empty"}:Hn.test(a)?a.length<ut?{ok:!1,reason:"too-short"}:a.length>Me?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function Dn(n){return n.replace(/[^a-zA-Z0-9]/g,"").slice(0,Me)}const Gn=["function available(string _subdomain) view returns (bool)"],nt={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function qn(){return ne.chainId===Number(tn.ChainId.MATIC_MAINNET)?nt.mainnet:nt.sepolia}async function Kn(n,a={}){var x;const{rpc:r,address:d}=qn(),c=new pn(r),w=new un(d,Gn,c);console.info(`[names] availability check → DCLRegistrar(${d}).available("${n}") on ${r}`);const u=await w.available(n);if((x=a.signal)!=null&&x.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${n}" available=${u}`),u?"available":"taken"}const Vn="https://app.across.to/api";class Ve extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}class Ge extends Error{constructor(){super("The name could not be registered on Ethereum; your funds were recovered."),this.name="NameNotRegisteredError"}}class qe extends Error{constructor(){super("We couldn't confirm whether the purchase went through."),this.name="NameSettlementUnknownError"}}function Zn(n){return vt(Y,n)}async function Qn(n,a,r={}){var x;const d=r.chainId??ne.chainId,c=r.provider??"across",w=`${ne.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(a)}&chainId=${d}&provider=${c}`,u=await Ct(w,{method:"GET",identity:n,metadata:{}});if(!u.ok){let l;try{l=(x=await u.json())==null?void 0:x.code}catch{}throw l==="ROUTE_COST_TOO_HIGH"?new Ve:new Error(`fetchNameCreditRoute ${u.status}`)}return u.json()}function Yn(n,a){const r=_e.from(n.availableAmount),c=_e.from(Y).sub(r);return{credits:[{value:n.amount,expiresAt:Number(n.expiresAt),salt:dn(n.id)}],creditsSignatures:[n.signature],externalCall:{target:a.externalCall.target,selector:a.externalCall.selector,data:a.externalCall.data,expiresAt:a.externalCall.expiresAt,salt:a.externalCall.salt},customExternalCallSignature:a.customExternalCallSignature,maxUncreditedValue:c.isNegative()?"0":c.toString(),maxCreditedValue:Y}}async function Xn(n,a={}){const r=Vn,d=a.intervalMs??1e4,c=a.maxAttempts??60;let w={status:"pending",destinationTxHash:null,actionsSucceeded:null};for(let u=0;u<c;u++){try{const x=await fetch(`${r}/deposit/status?originChainId=137&depositTxHash=${n}`);if(x.ok){const l=await x.json(),j=(l.status??"pending").toLowerCase(),g=l.fillTx??l.fillTxnRef??null,C=typeof l.actionsSucceeded=="boolean"?l.actionsSucceeded:null;if(j==="filled")return{status:"filled",destinationTxHash:g,actionsSucceeded:C};if(j==="refunded"||j==="expired")return{status:j,destinationTxHash:null,actionsSucceeded:!1};w={status:"pending",destinationTxHash:g,actionsSucceeded:C}}}catch{}u<c-1&&await new Promise(x=>setTimeout(x,d))}return w}async function Jn(n){const{name:a,identity:r,signer:d}=n,c=g=>{var C;try{(C=n.onProgress)==null||C.call(n,g)}catch{}},w=n.chainId??ne.chainId,u=n.provider??"across",x=(n.beneficiary??await d.getAddress()).toLowerCase();let l=null,j="unconfirmed";console.info("[names] register start",{name:a,buyer:x,chainId:w,provider:u}),c("preparing");try{const g=await bt(yt(ne.chainId).address),C=Zn(g),m=n.creditsCents!=null?Math.max(1,Math.min(Math.trunc(n.creditsCents),C)):C,k=m<C;console.info("[names] step 1/6 sized reservation",{usdCents:m,fullPriceCents:C,payingWithMana:k,manaRate:g});const f=await Qn(r,a,{chainId:w,provider:u});console.info("[names] step 2/6 route fetched",{target:f.externalCall.target,selector:f.externalCall.selector,provider:f.provider,quoteId:f.quoteId});const b=await wt(r,m,void 0,void 0,a);if(l=b.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:b.credit.id,maxCreditedValue:b.maxCreditedValue}),!k&&_e.from(b.maxCreditedValue).lt(Y))throw new Error("Credit under-sized for the name price");if(k){const h=_e.from(Y).sub(b.credit.availableAmount);if(n.maxManaWei!=null&&h.gt(n.maxManaWei.toString()))throw new Error("The MANA needed moved past what was agreed");h.gt(0)&&(c("awaiting-confirmation"),await ln({auth:{kind:cn.Allowance,contractAddress:Ze(Qe.MANAToken,w).address,spenderAddress:Ze(Qe.CreditsManager,w).address,chainId:w},signer:d,requiredWei:BigInt(h.toString())}),console.info("[names] step 3b/6 mana allowance ensured",{gapWei:h.toString()}))}c("awaiting-confirmation");const v=Yn(b.credit,f);let $;try{$=await nn({chainId:w,buyer:x,signer:d,args:v})}catch(h){if(!(h instanceof sn))throw h;if(h.reason==="relayer-unreachable"){j="unobservable";const A=new qe;throw A.cause=h,A}$=await rn(w,v,d)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:$}),c("confirming"),await an($),j="confirmed",console.info("[names] step 5/6 origin tx confirmed",{originTxHash:$}),u==="across"){c("registering");const h=await Xn($,n.acrossPoll);if(console.info("[names] step 6/6 across status",h),h.status==="pending")return{status:"pending",originTxHash:$};if(h.status==="filled"&&h.actionsSucceeded===null)return console.warn("[names] across filled without reporting actionsSucceeded — reporting pending",{originTxHash:$}),{status:"pending",originTxHash:$};if(h.status!=="filled"||h.actionsSucceeded!==!0)throw new Ge;return{status:"registered",originTxHash:$,destinationTxHash:h.destinationTxHash}}return{status:"pending",originTxHash:$}}catch(g){if(console.error("[names] register failed — raw error:",g,{name:a,buyer:x,originState:j}),g instanceof on)return{status:"pending",originTxHash:g.txHash};if(l&&j==="unconfirmed"&&await jt(r,[l]).catch(()=>{}),g instanceof Ve||g instanceof Ge||g instanceof qe)throw g;const C=new Error(hn(g,"Couldn't register the name. Please try again.",{sale:!0}));throw C.cause=g,C}}function es(){const{data:n}=$t({queryKey:["feature-flag","shop-names"],queryFn:()=>kt(St.SHOP_NAMES),staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return n===!0}const ts=60,ns=700,ss=25;function is(n){if(!n)return[];const a=[];for(let r=1;r<=n.length;r++)a.push({text:n.slice(0,r),delay:ts});a[a.length-1]={text:n,delay:ns};for(let r=n.length-1;r>=1;r--)a.push({text:n.slice(0,r),delay:ss});return a}function as(n){return n.flatMap(is)}function os(n,a){const r=p.useMemo(()=>as(n),[n]),[d,c]=p.useState(0);return p.useEffect(()=>{if(!a||r.length===0)return;const w=setTimeout(()=>c(u=>(u+1)%r.length),r[d%r.length].delay);return()=>clearTimeout(w)},[d,a,r]),!a||r.length===0?"":r[d%r.length].text}const rs="https://cdn.decentraland.org/@dcl/shop/1.13.1-35590455689.commit-b96d6aa/_assets/name-verified-oGwQ3ntb.svg",ls="#34fee6",cs=i.div`
2
+ position: fixed;
3
+ inset: 0;
4
+ z-index: 10000;
5
+ display: flex;
6
+ align-items: center;
7
+ justify-content: center;
8
+ padding: 16px;
9
+ background: rgba(22, 21, 24, 0.55);
10
+ `,ds=i.div`
11
+ width: 560px;
12
+ max-width: 100%;
13
+ max-height: 92vh;
14
+ overflow-y: auto;
15
+ background: ${t.colors.white};
16
+ border-radius: 16px;
17
+ padding: 20px 24px 24px;
18
+ box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
19
+
20
+ ${t.media.maxWidth("mobile")} {
21
+ padding: 16px;
22
+ }
23
+ `,ze=i.div`
24
+ display: flex;
25
+ align-items: flex-start;
26
+ justify-content: space-between;
27
+ gap: 12px;
28
+ `,Pe=i.h2`
29
+ margin: 0;
30
+ font-family: ${t.font.sans};
31
+ font-weight: 700;
32
+ font-size: 20px;
33
+ line-height: 1.6;
34
+ color: ${t.colors.text};
35
+ `,Be=i.button`
36
+ flex: none;
37
+ display: grid;
38
+ place-items: center;
39
+ width: 28px;
40
+ height: 28px;
41
+ border: 0;
42
+ background: none;
43
+ cursor: pointer;
44
+ color: ${t.colors.text};
45
+
46
+ .ico {
47
+ width: 18px;
48
+ height: 18px;
49
+ }
50
+ &:disabled {
51
+ opacity: 0.4;
52
+ cursor: default;
53
+ }
54
+ &:focus-visible {
55
+ outline: 2px solid ${t.colors.accent};
56
+ outline-offset: 2px;
57
+ }
58
+ `,Fe=i.div`
59
+ display: flex;
60
+ align-items: center;
61
+ gap: 6px;
62
+ margin-top: 4px;
63
+ font-family: ${t.font.sans};
64
+ font-size: 14px;
65
+ color: ${t.colors.text2};
66
+
67
+ .ico {
68
+ width: 16px;
69
+ height: 16px;
70
+ color: ${t.colors.text};
71
+ }
72
+ `,Ue=i.hr`
73
+ border: 0;
74
+ border-top: 1px solid ${t.colors.line};
75
+ margin: 16px 0;
76
+ `,be=i.div`
77
+ display: flex;
78
+ align-items: center;
79
+ gap: 16px;
80
+ `,hs=i.div`
81
+ flex: none;
82
+ display: flex;
83
+ flex-direction: column;
84
+ align-items: center;
85
+ justify-content: center;
86
+ gap: 12px;
87
+ width: 137px;
88
+ height: 137px;
89
+ padding: 20px 0;
90
+ border-radius: 12px;
91
+ overflow: hidden;
92
+ background: ${t.gradients.amethyst};
93
+ `,ps=i.img`
94
+ display: block;
95
+ width: 47px;
96
+ height: 47px;
97
+ `,us=i.span`
98
+ display: inline-flex;
99
+ align-items: center;
100
+ gap: 2px;
101
+ max-width: 100%;
102
+ padding: 0 8px;
103
+ font-family: ${t.font.sans};
104
+ font-size: 18px;
105
+ font-weight: 600;
106
+ /* The design's cyan — it has to read against the purple, which the body text colour would not. */
107
+ color: ${ls};
108
+ white-space: nowrap;
109
+ overflow: hidden;
110
+
111
+ /* Truncation belongs on the flex item, not this box: text-overflow is inert on a flex container, and
112
+ the zero min-width is what lets the name shrink instead of pushing the tick out. */
113
+ > span {
114
+ min-width: 0;
115
+ overflow: hidden;
116
+ text-overflow: ellipsis;
117
+ }
118
+ `,ms=i.img`
119
+ flex: none;
120
+ display: block;
121
+ width: 14px;
122
+ height: 14px;
123
+ `,Oe=i.div`
124
+ flex: none;
125
+ display: grid;
126
+ place-items: center;
127
+ width: 56px;
128
+ height: 56px;
129
+ border-radius: 10px;
130
+ background: ${t.gradients.amethyst};
131
+ color: ${t.colors.white};
132
+
133
+ .ico {
134
+ width: 30px;
135
+ height: 30px;
136
+ }
137
+ `,ye=i.div`
138
+ flex: 1;
139
+ min-width: 0;
140
+ `,we=i.div`
141
+ font-family: ${t.font.sans};
142
+ font-weight: 700;
143
+ font-size: 20px;
144
+ line-height: 1.3;
145
+ color: ${t.colors.text};
146
+ overflow: hidden;
147
+ text-overflow: ellipsis;
148
+ white-space: nowrap;
149
+
150
+ span {
151
+ font-weight: 400;
152
+ color: ${t.colors.muted2};
153
+ }
154
+ `,je=i.div`
155
+ font-family: ${t.font.sans};
156
+ font-size: 14px;
157
+ color: ${t.colors.muted2};
158
+ `,ve=i.div`
159
+ flex: none;
160
+ display: flex;
161
+ align-items: center;
162
+ gap: 6px;
163
+ font-family: ${t.font.sans};
164
+ font-weight: 600;
165
+ font-size: 24px;
166
+ color: ${t.colors.text};
167
+
168
+ .ico {
169
+ width: 22px;
170
+ height: 22px;
171
+ color: ${t.colors.text};
172
+ }
173
+ `,fs=i.div`
174
+ margin-top: 16px;
175
+ padding: 16px;
176
+ border-radius: 12px;
177
+ background: ${t.colors.promptLilac};
178
+ `,xs=i.div`
179
+ font-family: ${t.font.sans};
180
+ font-weight: 700;
181
+ font-size: 16px;
182
+ color: ${t.colors.text};
183
+ `,gs=i.p`
184
+ margin: 8px 0 16px;
185
+ font-family: ${t.font.sans};
186
+ font-size: 14px;
187
+ line-height: 1.5;
188
+ color: ${t.colors.text2};
189
+
190
+ /* The chosen NAME is filled with the gradient the design runs through it (1356:335140), not a flat
191
+ violet — background-clip is the only way to paint a text run with one. */
192
+ b {
193
+ font-weight: 700;
194
+ background: linear-gradient(180deg, ${t.colors.dclRed}, ${t.colors.magenta});
195
+ background-clip: text;
196
+ -webkit-background-clip: text;
197
+ color: transparent;
198
+ }
199
+ `,bs=i.label`
200
+ display: flex;
201
+ align-items: center;
202
+ gap: 8px;
203
+ padding: 12px 14px;
204
+ background: ${t.colors.softWhite};
205
+ /* A hairline in Gray 2, not a full pixel of soft-black: this field sits INSIDE the lilac panel and
206
+ the heavier edge made it read as the modal's primary control (Figma 1356:335172). */
207
+ border: 0.5px solid ${t.colors.muted};
208
+ border-radius: 8px;
209
+ cursor: text;
210
+
211
+ &:focus-within {
212
+ border-color: ${t.colors.magenta};
213
+ }
214
+ `,ys=i.span`
215
+ flex: none;
216
+ font-family: ${t.font.sans};
217
+ font-size: 18px;
218
+ color: ${t.colors.muted2};
219
+ `,ws=i.input`
220
+ flex: 0 1 auto;
221
+ min-width: 0;
222
+ border: 0;
223
+ outline: none;
224
+ background: transparent;
225
+ font-family: ${t.font.sans};
226
+ font-size: 16px;
227
+ font-weight: 600;
228
+ color: ${t.colors.text};
229
+
230
+ &::placeholder {
231
+ color: ${t.colors.muted2};
232
+ font-weight: 400;
233
+ }
234
+ `,js=i.span`
235
+ flex: none;
236
+ font-family: ${t.font.sans};
237
+ font-size: 16px;
238
+ color: ${t.colors.muted2};
239
+ `,He=i.button`
240
+ margin-top: 16px;
241
+ width: 100%;
242
+ height: 46px;
243
+ border: 0;
244
+ border-radius: 12px;
245
+ cursor: pointer;
246
+ background: ${t.gradients.buyBtn};
247
+ color: ${t.colors.softWhite};
248
+ font-family: ${t.font.sans};
249
+ font-weight: 600;
250
+ font-size: 15px;
251
+ letter-spacing: 0.46px;
252
+ text-transform: uppercase;
253
+ transition: background-image 0.15s ease;
254
+
255
+ /* Both ends stay on background-IMAGE: a gradient cannot interpolate to a plain colour, so swapping
256
+ the shorthand instead blanks the button for the length of the transition. */
257
+ &:hover:not(:disabled),
258
+ &:active:not(:disabled) {
259
+ background-image: linear-gradient(${t.colors.dclRed}, ${t.colors.dclRed});
260
+ }
261
+ &:focus-visible {
262
+ outline: 2px solid ${t.colors.accent};
263
+ outline-offset: 2px;
264
+ }
265
+ &:disabled {
266
+ cursor: not-allowed;
267
+ opacity: 0.5;
268
+ }
269
+ `,vs=i.div`
270
+ display: flex;
271
+ flex: 1;
272
+ flex-direction: column;
273
+ align-items: center;
274
+ justify-content: center;
275
+ gap: 32px;
276
+ padding: 32px 0 8px;
277
+ `,Cs=i.img`
278
+ width: 61px;
279
+ height: 61px;
280
+ `,$s=i.div`
281
+ display: flex;
282
+ flex-direction: column;
283
+ align-items: center;
284
+ gap: 8px;
285
+ width: 100%;
286
+ `,ks=i.div`
287
+ font-family: ${t.font.sans};
288
+ font-weight: 700;
289
+ font-size: 20px;
290
+ line-height: 1.6;
291
+ color: ${t.colors.text2};
292
+ text-align: center;
293
+ `,Ss=i.p`
294
+ max-width: 400px;
295
+ font-family: ${t.font.sans};
296
+ font-size: 14px;
297
+ line-height: 1.57;
298
+ color: ${t.colors.muted};
299
+ text-align: center;
300
+ `,Es=i.div`
301
+ display: flex;
302
+ align-items: center;
303
+ justify-content: center;
304
+ gap: 8px;
305
+ width: 100%;
306
+ `,Rs=i.div`
307
+ flex: 1;
308
+ max-width: 400px;
309
+ height: 10px;
310
+ border-radius: 100px;
311
+ background: rgba(0, 0, 0, 0.1);
312
+ overflow: hidden;
313
+
314
+ span {
315
+ display: block;
316
+ height: 100%;
317
+ width: 33%;
318
+ border-radius: 100px;
319
+ background: ${t.gradients.buyBtn};
320
+ animation: nameProgress 1.1s ease-in-out infinite;
321
+ }
322
+
323
+ @keyframes nameProgress {
324
+ 0% {
325
+ transform: translateX(-100%);
326
+ }
327
+ 100% {
328
+ transform: translateX(320%);
329
+ }
330
+ }
331
+
332
+ @media (prefers-reduced-motion: reduce) {
333
+ span {
334
+ width: 33%;
335
+ animation: none;
336
+ }
337
+ }
338
+ `,Ts=i.span`
339
+ flex: none;
340
+ font-family: ${t.font.sans};
341
+ font-size: 16px;
342
+ line-height: 22px;
343
+ color: ${t.colors.text2};
344
+ `,_s=i.div`
345
+ display: flex;
346
+ flex-direction: column;
347
+ align-items: center;
348
+ gap: 16px;
349
+ padding: 24px;
350
+ border-radius: 12px;
351
+ background: #e2f5ea;
352
+ text-align: center;
353
+ `,Ms=i.div`
354
+ display: grid;
355
+ place-items: center;
356
+ width: 56px;
357
+ height: 56px;
358
+ border-radius: 50%;
359
+ background: ${t.colors.ok};
360
+ color: ${t.colors.white};
361
+
362
+ .ico {
363
+ width: 30px;
364
+ height: 30px;
365
+ }
366
+ `,Is=i.p`
367
+ margin: 0;
368
+ font-family: ${t.font.sans};
369
+ font-size: 16px;
370
+ line-height: 1.4;
371
+ color: ${t.colors.text};
372
+
373
+ b {
374
+ font-weight: 700;
375
+ }
376
+ `,st=i.div`
377
+ display: flex;
378
+ gap: 16px;
379
+ margin-top: 20px;
380
+
381
+ ${t.media.maxWidth("mobile")} {
382
+ flex-direction: column;
383
+ }
384
+ `,it=i.button`
385
+ flex: 1;
386
+ height: 48px;
387
+ border: 1px solid ${t.colors.accent};
388
+ border-radius: 8px;
389
+ background: ${t.colors.white};
390
+ color: ${t.colors.accent};
391
+ cursor: pointer;
392
+ font-family: ${t.font.sans};
393
+ font-weight: 600;
394
+ font-size: 13px;
395
+ letter-spacing: 0.46px;
396
+ text-transform: uppercase;
397
+
398
+ &:hover {
399
+ background: rgba(105, 31, 169, 0.06);
400
+ }
401
+ &:focus-visible {
402
+ outline: 2px solid ${t.colors.accent};
403
+ outline-offset: 2px;
404
+ }
405
+ `,As=i.a`
406
+ flex: 1;
407
+ display: inline-flex;
408
+ align-items: center;
409
+ justify-content: center;
410
+ height: 48px;
411
+ border-radius: 8px;
412
+ background: ${t.colors.dclRed};
413
+ color: ${t.colors.softWhite};
414
+ cursor: pointer;
415
+ text-decoration: none;
416
+ font-family: ${t.font.sans};
417
+ font-weight: 600;
418
+ font-size: 13px;
419
+ letter-spacing: 0.46px;
420
+ text-transform: uppercase;
421
+
422
+ &:hover {
423
+ filter: brightness(1.05);
424
+ }
425
+ &:focus-visible {
426
+ outline: 2px solid ${t.colors.accent};
427
+ outline-offset: 2px;
428
+ }
429
+ `,De=i.div`
430
+ display: flex;
431
+ align-items: flex-start;
432
+ gap: 12px;
433
+ padding: 16px;
434
+ margin-top: 8px;
435
+ border-radius: 12px;
436
+ background: rgba(255, 45, 85, 0.1);
437
+ font-family: ${t.font.sans};
438
+ font-size: 14px;
439
+ line-height: 1.5;
440
+ color: ${t.colors.text};
441
+
442
+ .ico {
443
+ width: 22px;
444
+ height: 22px;
445
+ flex: none;
446
+ color: ${t.colors.dclRed};
447
+ }
448
+
449
+ /**
450
+ * Informational, not a failure. Used for "your payment went through, the NAME is on its way" and for the
451
+ * reason a purchase is not available yet (no price, not enough credits) — none of which is an error, and
452
+ * all of which would contradict themselves rendered in the red error treatment.
453
+ */
454
+ &[data-tone='info'] {
455
+ background: ${t.colors.panel};
456
+
457
+ .ico {
458
+ color: ${t.colors.accent};
459
+ }
460
+ }
461
+ `,Ns=i.div`
462
+ display: flex;
463
+ flex-direction: column;
464
+ gap: 24px;
465
+ margin-top: 16px;
466
+ `;i(mn)`
467
+ display: grid;
468
+ grid-template-columns: repeat(2, minmax(0, 1fr));
469
+ gap: 28px 12px;
470
+
471
+ ${t.media.maxWidth("mobile")} {
472
+ gap: 24px 12px;
473
+ }
474
+ `;i(fn)`
475
+ position: relative;
476
+ `;i.span`
477
+ position: absolute;
478
+ top: -12px;
479
+ left: 50%;
480
+ transform: translateX(-50%);
481
+ z-index: 2;
482
+ display: inline-flex;
483
+ align-items: center;
484
+ gap: 4px;
485
+ padding: 4px 12px 4px 8px;
486
+ border-radius: ${t.radius.pill};
487
+ background: ${t.gradients.flare};
488
+ font-family: ${t.font.sans};
489
+ font-size: 12px;
490
+ font-weight: 500;
491
+ line-height: 18px;
492
+ color: ${t.colors.white};
493
+ white-space: nowrap;
494
+
495
+ .ico {
496
+ width: 16px;
497
+ height: 16px;
498
+ }
499
+ `;const Ls=i.div`
500
+ display: flex;
501
+ gap: 12px;
502
+ `,Ws=i.span`
503
+ display: grid;
504
+ place-items: center;
505
+ width: 100%;
506
+ height: 100%;
507
+ background: ${t.gradients.amethyst};
508
+ font-family: ${t.font.sans};
509
+ font-size: 32px;
510
+ font-weight: 700;
511
+ color: ${t.colors.white};
512
+ `;function zs({name:n,priceCredits:a,onClose:r}){const{session:d}=lt(),{data:c,isError:w}=Et(d),u=Rt(),x=Ke(),[l,j]=p.useState("confirm"),[g,C]=p.useState(""),[m,k]=p.useState(""),[f,b]=p.useState(!1),[v,$]=p.useState(null),h=(v==null?void 0:v.rail)??"credits",[A,U]=p.useState(null),[oe,_]=p.useState(!1),[M,O]=p.useState("preparing"),F=p.useRef(!1),se=g.trim().toLowerCase()===n.toLowerCase(),T=l==="completing"||f,N=a!=null?ct(a):"—",L=a==null,ee=c==null?void 0:c.credits,H=a!=null&&ee!=null?a-ee:0,z=H>0,D=L?s("names.priceUnavailable"):null,{data:K}=Tt(d),V=(K==null?void 0:K.matic)??0n,P=xn({priceCents:a!=null?a*Le:0,priceManaWei:BigInt(Y),balanceCents:(c==null?void 0:c.balanceCents)??0,manaBalanceWei:V,manaOnlyRail:!1}),S=P.options.some(y=>y.method!=="credits"),E=P.options.find(y=>y.method==="combined"),I=v==null&&S&&!L,B=vn().packs.slice(0,Cn),{packs:re,recommended:X,closesGap:Ie}=$n(B,H),Z=re.find(y=>y.id===m)??X;p.useEffect(()=>{const y=R=>{R.key==="Escape"&&!T&&r()};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[T,r]);async function te(){if(!d||!se||L||F.current||h==="credits"&&z)return;F.current=!0;const y=h==="combined"?Math.floor(((v==null?void 0:v.creditsCents)??0)/Le):a??null;j("completing"),U(null),O("preparing");try{const R=await Jn({name:n,identity:d.identity,signer:d.signer,creditsCents:v==null?void 0:v.creditsCents,maxManaWei:v==null?void 0:v.manaWei,onProgress:O});Te("Shop Completed Purchase",{items:[{item_id:null,contract_address:null,token_id:null,price_usd:Ye(a??0),category:"name",is_smart:!1}],purchase_type:"name",is_primary:!0,payment_type:h==="combined"?"credits_and_mana":"credits",value_credits:y,value_usd:Ye(y??0),transaction_hash:R.originTxHash??null,settlement:R.status}),u.invalidateQueries({queryKey:["usd-balance"]}),u.invalidateQueries({queryKey:["my-assets"]}),j(R.status==="registered"?"success":"pending")}catch(R){Te(Lt(R)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:Nt(R),purchase_type:"name"});const ue=R instanceof Ge,q=R instanceof qe;U(R instanceof Ve?s("names.errorRouteCost"):ue?s("names.errorNotRegistered"):q?s("names.errorSettlementUnknown"):(R==null?void 0:R.message)||s("names.errorGeneric")),_(ue||q),j("error")}finally{F.current=!1}}async function le(){if(!(!d||!Z||f)){b(!0);try{sessionStorage.removeItem(kn),sessionStorage.removeItem(Rn),sessionStorage.setItem(et,n)}catch{}try{const y=await Sn(Z.id,{address:d.address,identity:d.identity});if(y.url){window.location.href=y.url;return}if(!y.orderId)throw new Error("Checkout returned neither a redirect url nor an order id");x(`/credits?order=${encodeURIComponent(y.orderId)}`)}catch(y){At(y,{flow:"name_buy_credits"});try{sessionStorage.removeItem(et)}catch{}U(s("buyModal.error.creditsCheckout")),_(!1),j("error"),b(!1)}}}const Ae=l!=="success"&&l!=="pending"&&!I,ce=_t(d==null?void 0:d.providerType),de=ce?2:1,he=ce&&(M==="preparing"||M==="awaiting-confirmation"),pe=he?1:de,Ne=he?s("names.confirming"):s("names.completing"),ie=M==="registering"?s("names.processingRegistering"):null,G=l==="confirm"&&z&&!S,ae=l==="error"?s("names.errorTitle"):G?s("names.buyCreditsTitle"):s("names.buyTitle");return e.jsx(cs,{onClick:T?void 0:r,role:"presentation",children:e.jsxs(ds,{role:"dialog","aria-modal":"true","aria-label":ae,onClick:y=>y.stopPropagation(),children:[Ae&&e.jsxs(e.Fragment,{children:[e.jsxs(ze,{children:[e.jsx(Pe,{children:ae}),e.jsx(Be,{onClick:r,disabled:T,"aria-label":s("buyModal.close"),children:e.jsx(W,{name:"close"})})]}),e.jsxs(Fe,{children:[s("names.myCreditsBalance")," ",e.jsx(Q,{})," ",We(c,w)]}),e.jsx(Ue,{})]}),G&&e.jsxs(Ns,{children:[e.jsxs(gn,{children:[e.jsx(bn,{}),e.jsxs(yn,{children:[e.jsx("b",{children:s("buyModal.insufficientFunds")})," ",s("buyModal.warningNeedToBuy")," ",e.jsx("b",{children:s("buyModal.warningCreditsAmount",{count:H})})," ",s("names.warningToPurchase"),fe()?null:e.jsxs(e.Fragment,{children:[" ",e.jsx(wn,{href:Mt("/credits"),target:"_blank",rel:"noopener noreferrer",children:s("buyModal.warningLearnMore")})]})]})]}),fe()?e.jsxs(be,{"data-testid":"name-row-iap",children:[e.jsx(Oe,{"aria-hidden":!0,children:"@"}),e.jsxs(ye,{children:[e.jsxs(we,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(je,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(Q,{}),N]})]}):null,fe()?null:e.jsx(e.Fragment,{children:e.jsx(jn,{packs:re,selectedId:Z==null?void 0:Z.id,onSelect:k,recommendedId:Ie?X==null?void 0:X.id:void 0})}),e.jsxs(Ls,{children:[e.jsx(Je,{"data-variant":"outline",onClick:r,disabled:T,"data-testid":"name-topup-cancel",children:s("buyModal.cancel")}),fe()?null:e.jsx(Je,{"data-variant":"gradient","data-testid":"name-buy-credits",disabled:!d||!Z||f,onClick:()=>void le(),children:s("buyModal.buy")})]})]}),l==="confirm"&&!G&&I&&e.jsx(En,{asset:{name:`${n}.dcl.eth`,caption:s("names.subtitle"),thumb:e.jsx(Ws,{"aria-hidden":!0,children:"@"})},priceCredits:a??0,priceCents:(a??0)*Le,options:P.options,priceManaWei:BigInt(Y),balanceCredits:(c==null?void 0:c.credits)??0,manaBalanceWei:V,onBuy:y=>{$(y==="combined"&&E?{rail:"combined",creditsCents:E.creditsCents,manaWei:E.manaWei}:{rail:"credits"})},onClose:r,busy:T}),(l==="confirm"||l==="error")&&!G&&!I&&e.jsxs(e.Fragment,{children:[e.jsxs(be,{children:[e.jsx(Oe,{"aria-hidden":!0,children:"@"}),e.jsxs(ye,{children:[e.jsxs(we,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(je,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(Q,{}),N]})]}),l==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(De,{children:[e.jsx(W,{name:"info","aria-hidden":!0}),e.jsx("span",{children:A})]}),oe?e.jsx(He,{onClick:r,children:s("names.errorSpentDismiss")}):e.jsx(He,{onClick:()=>j("confirm"),children:s("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(fs,{children:[e.jsx(xs,{children:s("names.confirmTitle")}),e.jsx(gs,{dangerouslySetInnerHTML:{__html:s("names.confirmBody",{name:`<b>@${Ps(n)}</b>`})}}),e.jsxs(bs,{children:[e.jsx(ys,{"aria-hidden":!0,children:"@"}),e.jsx(ws,{value:g,onChange:y=>C(y.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":s("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(g.length,8)}ch`}}),e.jsx(js,{children:".dcl.eth"})]})]}),D?e.jsxs(De,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(W,{name:"info","aria-hidden":!0}),e.jsx("span",{children:D})]}):null,e.jsx(He,{onClick:()=>void te(),disabled:!se||!d||L||h==="credits"&&z,children:s("names.buyCta")})]})]}),l==="completing"&&e.jsxs(vs,{children:[e.jsx(Cs,{src:It,alt:"",width:61,height:61}),e.jsxs($s,{children:[e.jsx(ks,{children:Ne}),e.jsxs(Es,{children:[e.jsx(Rs,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(Ts,{"data-testid":"name-progress-count",children:`${pe}/${de}`})]}),ie?e.jsx(Ss,{children:ie}):null]})]}),l==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs(ze,{children:[e.jsx(Pe,{children:s("names.pendingHeaderTitle")}),e.jsx(Be,{onClick:r,"aria-label":s("buyModal.close"),children:e.jsx(W,{name:"close"})})]}),e.jsxs(Fe,{children:[s("names.myCreditsBalance")," ",e.jsx(Q,{})," ",We(c,w)]}),e.jsx(Ue,{}),e.jsxs(De,{"data-tone":"info",children:[e.jsx(W,{name:"info","aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("b",{children:s("names.pendingBannerBold")})," ",s("names.pendingBannerRest")]})]}),e.jsxs(be,{style:{marginTop:20},children:[e.jsx(Oe,{"aria-hidden":!0,children:"@"}),e.jsxs(ye,{children:[e.jsxs(we,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(je,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(Q,{}),N]})]}),e.jsx(st,{children:e.jsx(it,{onClick:()=>{r(),x("/my-items")},children:s("names.myItems")})})]}),l==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(ze,{children:[e.jsx(Pe,{children:s("names.successHeaderTitle")}),e.jsx(Be,{onClick:r,"aria-label":s("buyModal.close"),children:e.jsx(W,{name:"close"})})]}),e.jsxs(Fe,{children:[s("names.myCreditsBalance")," ",e.jsx(Q,{})," ",We(c,w)]}),e.jsx(Ue,{}),e.jsxs(_s,{children:[e.jsx(Ms,{"aria-hidden":!0,children:e.jsx(W,{name:"check"})}),e.jsxs(Is,{children:[e.jsx("b",{children:s("names.successBannerBold")})," ",s("names.successBannerRest")]})]}),e.jsxs(be,{style:{marginTop:20},children:[e.jsxs(hs,{"data-testid":"name-success-tile",children:[e.jsx(ps,{src:Tn,alt:"","aria-hidden":!0,width:47,height:47}),e.jsxs(us,{children:[e.jsx("span",{"aria-hidden":!0,children:n}),e.jsx(ms,{src:rs,alt:"","aria-hidden":!0,width:14,height:14})]})]}),e.jsxs(ye,{children:[e.jsxs(we,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(je,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(Q,{}),N]})]}),e.jsxs(st,{children:[e.jsx(it,{onClick:()=>{r(),x("/my-items")},children:s("names.myItems")}),e.jsx(As,{href:ne.profileUrl,target:"_blank",rel:"noopener noreferrer",children:s("names.assignToAvatar")})]})]})]})})}function Ps(n){return n.replace(/[&<>"']/g,a=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[a])}const Bs="https://cdn.decentraland.org/@dcl/shop/1.13.1-35590455689.commit-b96d6aa/_assets/identity-icon-C8yAW_Gq.svg",Fs="https://cdn.decentraland.org/@dcl/shop/1.13.1-35590455689.commit-b96d6aa/_assets/world-icon-6xQ-PmmW.svg",Us="https://cdn.decentraland.org/@dcl/shop/1.13.1-35590455689.commit-b96d6aa/_assets/invite-icon-Bz6lCTuB.svg",Os="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",Hs=i.div`
513
+ width: 100%;
514
+ min-width: 0;
515
+ `,Ds=i.nav`
516
+ display: flex;
517
+ align-items: center;
518
+ gap: 6px;
519
+ margin: 4px 0 16px;
520
+ font-family: ${t.font.sans};
521
+ font-size: 12px;
522
+ line-height: 1;
523
+ color: ${t.colors.gray4};
524
+ ${_n};
525
+ `,Gs=i.button`
526
+ border: 0;
527
+ background: none;
528
+ padding: 0;
529
+ cursor: pointer;
530
+ font: inherit;
531
+ color: ${t.colors.gray4};
532
+
533
+ &:hover {
534
+ color: ${t.colors.white};
535
+ text-decoration: underline;
536
+ }
537
+ &:focus-visible {
538
+ outline: 2px solid ${t.colors.white};
539
+ outline-offset: 2px;
540
+ }
541
+ `,qs=i.span`
542
+ font-weight: 700;
543
+ color: ${t.colors.softWhite};
544
+ `,Ks=i.div`
545
+ display: flex;
546
+ flex-direction: column;
547
+ gap: 48px;
548
+ padding-bottom: 48px;
549
+
550
+ ${t.media.maxWidth("mobile")} {
551
+ gap: 32px;
552
+ padding-bottom: 32px;
553
+ }
554
+ `,Vs=i.div`
555
+ position: relative;
556
+ border: 1px solid ${t.colors.magenta};
557
+ border-radius: 24px;
558
+ overflow: hidden;
559
+ padding: 88px 48px;
560
+ display: flex;
561
+ flex-direction: column;
562
+ align-items: center;
563
+ gap: 48px;
564
+ text-align: center;
565
+ background: ${t.colors.overlay};
566
+
567
+ ${t.media.maxWidth("mobile")} {
568
+ padding: 40px 20px;
569
+ gap: 28px;
570
+ }
571
+ `,Zs=i.div`
572
+ display: flex;
573
+ flex-direction: column;
574
+ align-items: center;
575
+ gap: 12px;
576
+ `,Qs=i.h1`
577
+ margin: 0;
578
+ font-family: ${t.font.sans};
579
+ font-weight: 600;
580
+ font-size: 40px;
581
+ line-height: 1.167;
582
+ color: ${t.colors.white};
583
+
584
+ ${t.media.maxWidth("mobile")} {
585
+ font-size: 26px;
586
+ }
587
+ `,Ys=i.p`
588
+ margin: 0;
589
+ max-width: 760px;
590
+ font-family: ${t.font.sans};
591
+ font-weight: 500;
592
+ font-size: 24px;
593
+ line-height: 1.334;
594
+ color: #ecebed;
595
+
596
+ ${t.media.maxWidth("mobile")} {
597
+ font-size: 16px;
598
+ }
599
+ `,Xs=i.div`
600
+ width: min(785px, 100%);
601
+ display: flex;
602
+ flex-direction: column;
603
+ gap: 12px;
604
+ `,Js=i.div`
605
+ position: relative;
606
+ `,ei=i("div",Mn("invalid"))`
607
+ display: flex;
608
+ align-items: center;
609
+ gap: 8px;
610
+ padding: 8px 8px 8px 16px;
611
+ background: ${t.colors.softWhite};
612
+ /* Figma 1368:349148 gives the field a 3px Orange edge — it is the page's one input, and the design
613
+ leans on that weight to carry it. Red only when what has been typed cannot be claimed. */
614
+ border: 3px solid ${({invalid:n})=>n?t.colors.dclRed:t.colors.orange};
615
+ border-radius: 20px;
616
+
617
+ &:focus-within {
618
+ border-color: ${({invalid:n})=>n?t.colors.dclRed:t.colors.magenta};
619
+ }
620
+
621
+ ${t.media.maxWidth("mobile")} {
622
+ border-radius: 16px;
623
+ }
624
+ `,ti=i.span`
625
+ position: absolute;
626
+ left: -9999px;
627
+ top: 0;
628
+ visibility: hidden;
629
+ pointer-events: none;
630
+ white-space: pre;
631
+ font-family: ${t.font.sans};
632
+ font-size: 20px;
633
+ font-weight: 600;
634
+ line-height: 1.6;
635
+
636
+ /* An empty field paints the PLACEHOLDER, which is lighter than a typed value — so the mirror has to
637
+ be lighter too. Measuring the placeholder at the value's weight made the box a few pixels wider
638
+ than the text in it, and ".dcl.eth" sat that far off the end of the word. */
639
+ &[data-placeholder] {
640
+ font-weight: 400;
641
+ }
642
+
643
+ ${t.media.maxWidth("mobile")} {
644
+ font-size: 16px;
645
+ }
646
+ `,ni=i.div`
647
+ position: absolute;
648
+ top: calc(100% + 8px);
649
+ left: 0;
650
+ right: 0;
651
+ z-index: 2;
652
+ display: flex;
653
+ align-items: center;
654
+ gap: 8px;
655
+ padding: 8px 12px;
656
+ border-radius: 8px;
657
+ background: #ffcdd4;
658
+ color: #ec303a;
659
+ font-family: ${t.font.sans};
660
+ font-size: 14px;
661
+ font-weight: 500;
662
+ line-height: 1.2;
663
+ text-align: left;
664
+
665
+ ${t.media.maxWidth("mobile")} {
666
+ position: static;
667
+ margin-top: 8px;
668
+ align-items: flex-start;
669
+ flex-wrap: wrap;
670
+ }
671
+ `,mt=i.a`
672
+ display: inline-flex;
673
+ align-items: center;
674
+ gap: 2px;
675
+ margin-left: auto;
676
+ font-weight: 600;
677
+ text-decoration: underline;
678
+ text-transform: uppercase;
679
+ white-space: nowrap;
680
+
681
+ ${t.media.maxWidth("mobile")} {
682
+ margin-left: 0;
683
+ }
684
+ `,si=i(mt)`
685
+ color: #ec303a;
686
+ `,ii=i.label`
687
+ flex: 1;
688
+ min-width: 0;
689
+ display: flex;
690
+ align-items: center;
691
+ gap: 0;
692
+ cursor: text;
693
+ overflow: hidden;
694
+ `,ai=i.span`
695
+ flex: none;
696
+ margin-right: 8px;
697
+ font-family: ${t.font.sans};
698
+ font-size: 26px;
699
+ font-weight: 500;
700
+ line-height: 1;
701
+ color: ${t.colors.muted2};
702
+
703
+ ${t.media.maxWidth("mobile")} {
704
+ font-size: 20px;
705
+ }
706
+ `,oi=i.input`
707
+ flex: 0 1 auto;
708
+ min-width: 0;
709
+ max-width: 100%;
710
+ border: 0;
711
+ outline: none;
712
+ background: transparent;
713
+ font-family: ${t.font.sans};
714
+ font-size: 20px;
715
+ font-weight: 600;
716
+ line-height: 1.6;
717
+ color: ${t.colors.text};
718
+ padding: 0;
719
+
720
+ &::placeholder {
721
+ color: ${t.colors.muted1};
722
+ font-weight: 400;
723
+ }
724
+
725
+ ${t.media.maxWidth("mobile")} {
726
+ font-size: 16px;
727
+ }
728
+ `,ri=i.span`
729
+ flex: none;
730
+ /* Flush against the name: "yourname.dcl.eth" has to read as one address, and at 20px even a couple of
731
+ pixels here look like a space someone typed by mistake. */
732
+ margin-left: 0;
733
+ /* Not selectable: it is the fixed part of the address, not something the reader typed. */
734
+ user-select: none;
735
+ -webkit-user-select: none;
736
+ font-family: ${t.font.sans};
737
+ font-size: 20px;
738
+ font-weight: 400;
739
+ line-height: 1.6;
740
+ color: ${t.colors.muted1};
741
+
742
+ ${t.media.maxWidth("mobile")} {
743
+ font-size: 16px;
744
+ }
745
+ `,li=i.span`
746
+ flex: none;
747
+ font-family: ${t.font.sans};
748
+ font-size: 14px;
749
+ line-height: 1.43;
750
+ color: ${t.colors.muted2};
751
+ white-space: nowrap;
752
+ `,ft=i.button`
753
+ flex: none;
754
+ display: inline-flex;
755
+ align-items: center;
756
+ justify-content: center;
757
+ gap: 8px;
758
+ height: 52px;
759
+ padding: 0 24px;
760
+ border: 0;
761
+ border-radius: 12px;
762
+ cursor: pointer;
763
+ background: ${t.gradients.buyBtn};
764
+ color: ${t.colors.softWhite};
765
+ font-family: ${t.font.sans};
766
+ font-weight: 600;
767
+ font-size: 15px;
768
+ letter-spacing: 0.46px;
769
+ line-height: 24px;
770
+ text-transform: uppercase;
771
+ transition: background-image 0.15s ease;
772
+
773
+ /* Both ends stay on background-IMAGE: a gradient cannot interpolate to a plain colour, so swapping
774
+ the background shorthand instead blanks the button for the length of the transition. */
775
+ &:hover:not(:disabled),
776
+ &:active:not(:disabled) {
777
+ background-image: linear-gradient(${t.colors.dclRed}, ${t.colors.dclRed});
778
+ }
779
+ &:focus-visible {
780
+ outline: 2px solid ${t.colors.white};
781
+ outline-offset: 2px;
782
+ }
783
+ &:disabled {
784
+ cursor: not-allowed;
785
+ opacity: 0.5;
786
+ }
787
+
788
+ ${t.media.maxWidth("mobile")} {
789
+ display: none;
790
+ }
791
+ `,ci=i(ft)`
792
+ display: none;
793
+
794
+ ${t.media.maxWidth("mobile")} {
795
+ display: inline-flex;
796
+ width: 100%;
797
+ height: 48px;
798
+ border-radius: 12px;
799
+ }
800
+ `,di=i.span`
801
+ display: inline-flex;
802
+ align-items: center;
803
+ gap: 4px;
804
+ font-size: 18px;
805
+ font-weight: 600;
806
+
807
+ .ico {
808
+ width: 13.26px;
809
+ height: 14px;
810
+ }
811
+ `,hi=i.div`
812
+ display: flex;
813
+ align-items: center;
814
+ gap: 8px;
815
+ padding: 8px 14px;
816
+ border-radius: 8px;
817
+ font-family: ${t.font.sans};
818
+ font-size: 13px;
819
+ font-weight: 500;
820
+ text-align: left;
821
+
822
+ background: ${({tone:n})=>n==="error"?"rgba(255, 45, 85, 0.12)":n==="ok"?"rgba(30, 166, 114, 0.14)":"rgba(255,255,255,0.14)"};
823
+ color: ${({tone:n})=>n==="error"?t.colors.dclRed:n==="ok"?"#0f7a4f":"#ecebed"};
824
+
825
+ .ico {
826
+ width: 16px;
827
+ height: 16px;
828
+ flex: none;
829
+ }
830
+ `,Ce=i(hi)`
831
+ position: absolute;
832
+ top: calc(100% + 8px);
833
+ left: 0;
834
+ right: 0;
835
+ z-index: 2;
836
+
837
+ /* Static on mobile, as TakenBanner is: the claim button sits below InputWrap there, so anything
838
+ floating out of the input lands on top of it. */
839
+ ${t.media.maxWidth("mobile")} {
840
+ position: static;
841
+ margin-top: 8px;
842
+ }
843
+ `,pi=i(mt)`
844
+ color: inherit;
845
+ `,ui=i.section`
846
+ display: flex;
847
+ flex-direction: column;
848
+ gap: 48px;
849
+ padding: 0 48px;
850
+
851
+ ${t.media.maxWidth("mobile")} {
852
+ gap: 32px;
853
+ padding: 0 20px;
854
+ }
855
+ `,mi=i.div`
856
+ display: flex;
857
+ flex-direction: column;
858
+ align-items: center;
859
+ gap: 24px;
860
+ `,fi=i.h2`
861
+ margin: 0;
862
+ text-align: center;
863
+ font-family: ${t.font.sans};
864
+ font-weight: 600;
865
+ font-size: 32px;
866
+ line-height: 1.167;
867
+ color: ${t.colors.white};
868
+
869
+ ${t.media.maxWidth("mobile")} {
870
+ font-size: 22px;
871
+ }
872
+ `,xi=i.p`
873
+ margin: 0;
874
+ max-width: 907px;
875
+ text-align: center;
876
+ font-family: ${t.font.sans};
877
+ font-weight: 400;
878
+ font-size: 20px;
879
+ line-height: 1.57;
880
+ color: ${t.colors.gray4};
881
+
882
+ ${t.media.maxWidth("mobile")} {
883
+ font-size: 16px;
884
+ }
885
+ `,gi=i.div`
886
+ display: grid;
887
+ grid-template-columns: repeat(4, 1fr);
888
+ gap: 24px;
889
+ align-items: stretch;
890
+
891
+ ${t.media.maxWidth("lg")} {
892
+ grid-template-columns: repeat(2, 1fr);
893
+ }
894
+ ${t.media.maxWidth("mobile")} {
895
+ grid-template-columns: 1fr;
896
+ }
897
+ `,$e=i.article`
898
+ min-width: 0;
899
+ display: flex;
900
+ flex-direction: column;
901
+ gap: 32px;
902
+ padding: 24px;
903
+ background: ${t.colors.overlay};
904
+ border-radius: 24px;
905
+
906
+ @media (forced-colors: active) {
907
+ outline: 1px solid CanvasText;
908
+ }
909
+
910
+ ${t.media.maxWidth("mobile")} {
911
+ gap: 20px;
912
+ padding: 20px;
913
+ }
914
+ `,ke=i.img`
915
+ display: block;
916
+ align-self: flex-start;
917
+ height: 55px;
918
+ width: auto;
919
+ `,Se=i.div`
920
+ flex: 1;
921
+ display: flex;
922
+ flex-direction: column;
923
+ gap: 12px;
924
+ `,Ee=i.h3`
925
+ margin: 0;
926
+ font-family: ${t.font.sans};
927
+ font-weight: 700;
928
+ font-size: 20px;
929
+ line-height: 1.57;
930
+ text-transform: uppercase;
931
+ color: ${t.colors.white};
932
+ `,Re=i.p`
933
+ margin: 0;
934
+ font-family: ${t.font.sans};
935
+ font-weight: 400;
936
+ font-size: 14px;
937
+ line-height: 1.57;
938
+ color: ${t.colors.media};
939
+ `,bi=i.span`
940
+ font-weight: 700;
941
+ color: ${t.colors.white};
942
+ `,at=i.a`
943
+ display: inline-flex;
944
+ align-items: center;
945
+ gap: 2px;
946
+ margin-top: auto;
947
+ font-family: ${t.font.sans};
948
+ font-weight: 500;
949
+ font-size: 14px;
950
+ line-height: 30px;
951
+ color: ${t.colors.softWhite};
952
+ text-decoration: underline;
953
+
954
+ &:focus-visible {
955
+ outline: 2px solid ${t.colors.softWhite};
956
+ outline-offset: 2px;
957
+ }
958
+
959
+ .ico {
960
+ width: 13px;
961
+ height: 13px;
962
+ }
963
+ `,yi=i.span`
964
+ position: absolute;
965
+ width: 1px;
966
+ height: 1px;
967
+ padding: 0;
968
+ margin: -1px;
969
+ overflow: hidden;
970
+ clip: rect(0, 0, 0, 0);
971
+ white-space: nowrap;
972
+ border: 0;
973
+ `,wi="https://docs.decentraland.org/creator/worlds/about/",ji="https://governance.decentraland.org";function ot(n){const a=typeof window<"u"?window.location.hostname:"";return`${a.endsWith("decentraland.org")?"https://decentraland.org":a.endsWith("decentraland.today")?"https://decentraland.today":"https://decentraland.zone"}/marketplace/names/browse?search=${encodeURIComponent(n)}`}function vi({onBack:n}){dt({title:s("seo.names.title"),description:s("seo.names.description")});const{session:a,signIn:r}=lt(),d=Ke(),c=xt(),{pathname:w,search:u}=c,x=c.state,l=typeof(x==null?void 0:x.resumeName)=="string"?x:void 0,j=es(),{data:g}=ht(),C=g?pt(Y,g):null,[m,k]=p.useState((l==null?void 0:l.resumeName)??""),[f,b]=p.useState("idle"),[v,$]=p.useState(!1),[h,A]=p.useState((l==null?void 0:l.resumeName)??""),[U,oe]=p.useState(!!(l!=null&&l.resumeName)),[_,M]=p.useState(()=>{var S;return typeof window<"u"&&!!((S=window.matchMedia)!=null&&S.call(window,"(prefers-reduced-motion: reduce)").matches)});p.useEffect(()=>{var I;const S=(I=window.matchMedia)==null?void 0:I.call(window,"(prefers-reduced-motion: reduce)");if(!S)return;const E=B=>M(B.matches);return S.addEventListener("change",E),()=>S.removeEventListener("change",E)},[]);const O=s("names.placeholderExamples"),F=p.useMemo(()=>O.split(",").map(S=>S.trim()).filter(Boolean),[O]),T=os(F,!U&&!m&&!_)||s("names.inputPlaceholder"),N=p.useRef(null),[L,ee]=p.useState(void 0);p.useLayoutEffect(()=>{N.current&&ee(N.current.getBoundingClientRect().width)},[m,T]),p.useEffect(()=>{if(!tt(m).ok){b(m.length===0?"idle":"invalid");return}b("checking");const E=new AbortController,I=setTimeout(()=>{(async()=>{try{const B=await Kn(m,{signal:E.signal});b(B)}catch(B){if((B==null?void 0:B.name)==="AbortError")return;b("error")}})()},400);return()=>{clearTimeout(I),E.abort()}},[m]);const H=tt(m),z=H.ok&&(f==="available"||f==="error"),D=j&&z,K=!j&&z;function V(){if(D){if(!a){r();return}$(!0)}}p.useEffect(()=>{l!=null&&l.resumeName&&d(`${w}${u}`,{replace:!0,state:null})},[l==null?void 0:l.resumeName,d,w,u]),p.useEffect(()=>{if(h){if(m.toLowerCase()!==h.toLowerCase()){A("");return}if(!(f==="idle"||f==="checking")){if(!z){A("");return}!j||!a||(A(""),$(!0))}}},[h,m,f,z,j,a]);const P=e.jsxs(e.Fragment,{children:[s("names.claim"),C!=null?e.jsxs(di,{children:[e.jsx(Q,{}),ct(C)]}):null]});return e.jsxs(Hs,{"data-testid":"names-page",children:[e.jsxs(Ds,{"aria-label":s("names.breadcrumbAria"),children:[e.jsx(Gs,{onClick:n,children:s("names.breadcrumbCollectibles")}),e.jsx("span",{"aria-hidden":!0,children:">"}),e.jsx(qs,{children:s("names.breadcrumbCurrent")})]}),e.jsxs(Ks,{children:[e.jsxs(Vs,{children:[e.jsxs(Zs,{children:[e.jsx(Qs,{children:s("names.heroTitle")}),e.jsx(Ys,{children:s("names.heroSubtitle")})]}),e.jsxs(Xs,{children:[e.jsxs(Js,{"data-testid":"names-input-wrap",children:[e.jsxs(ei,{invalid:f==="taken",children:[e.jsxs(ii,{children:[e.jsx(ai,{"aria-hidden":!0,children:"@"}),e.jsx(oi,{value:m,onChange:S=>k(Dn(S.target.value)),placeholder:T,"aria-label":s("names.inputAria"),autoComplete:"off",spellCheck:!1,maxLength:Me,onFocus:()=>oe(!0),style:{width:L!=null?`${L}px`:void 0}}),e.jsx(ti,{ref:N,"aria-hidden":!0,"data-placeholder":!m||void 0,children:m||T}),e.jsx(ri,{children:s("names.suffix")})]}),m.length>0?e.jsxs(li,{"aria-hidden":!0,children:[m.length,"/",Me]}):null,e.jsx(ft,{onClick:V,disabled:!D,"data-testid":"names-claim",children:P})]}),f==="taken"?e.jsxs(ni,{role:"status","data-testid":"names-taken",children:[e.jsx(W,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:s("names.taken")}),e.jsxs(si,{href:ot(m),target:"_blank",rel:"noopener noreferrer",children:[s("names.takenMakeOffer"),e.jsx(W,{name:"external-link",size:13,"aria-hidden":!0})]})]}):null,f==="checking"?e.jsx(Ce,{tone:"muted",role:"status","data-testid":"names-checking",children:s("names.checking")}):K?e.jsxs(Ce,{tone:"muted",role:"status","data-testid":"names-disabled",children:[e.jsx(W,{name:"info",size:16,"aria-hidden":!0}),e.jsx("span",{children:s("names.registrationDisabled")}),e.jsxs(pi,{href:ot(m),target:"_blank",rel:"noopener noreferrer",children:[s("names.registrationDisabledLink"),e.jsx(W,{name:"external-link",size:13,"aria-hidden":!0})]})]}):f==="error"?e.jsx(Ce,{tone:"muted",role:"status",children:s("names.checkError")}):f==="invalid"&&!H.ok&&H.reason==="too-short"?e.jsx(Ce,{tone:"muted",role:"status",children:s("names.tooShort",{min:ut})}):null]}),e.jsx(ci,{onClick:V,disabled:!D,children:P}),e.jsx(yi,{role:"status","aria-live":"polite",children:f==="available"?s("names.available",{name:m}):""})]})]}),e.jsxs(ui,{children:[e.jsxs(mi,{children:[e.jsx(fi,{children:s("names.whyTitle")}),e.jsx(xi,{children:s("names.whyIntro")})]}),e.jsxs(gi,{children:[e.jsxs($e,{children:[e.jsx(ke,{src:Bs,alt:""}),e.jsxs(Se,{children:[e.jsx(Ee,{children:s("names.why1Title")}),e.jsx(Re,{children:s("names.why1")})]})]}),e.jsxs($e,{children:[e.jsx(ke,{src:Fs,alt:""}),e.jsxs(Se,{children:[e.jsx(Ee,{children:s("names.why2Title")}),e.jsxs(Re,{children:[s("names.why2")," ",e.jsx(bi,{children:s("names.why2Address")})]}),e.jsxs(at,{href:wi,target:"_blank",rel:"noopener noreferrer",children:[s("names.learnMore"),e.jsx(W,{name:"external-link","aria-hidden":!0})]})]})]}),e.jsxs($e,{children:[e.jsx(ke,{src:Us,alt:""}),e.jsxs(Se,{children:[e.jsx(Ee,{children:s("names.why3Title")}),e.jsx(Re,{children:s("names.why3")})]})]}),e.jsxs($e,{children:[e.jsx(ke,{src:Os,alt:""}),e.jsxs(Se,{children:[e.jsx(Ee,{children:s("names.why4Title")}),e.jsx(Re,{children:s("names.why4")}),e.jsxs(at,{href:ji,target:"_blank",rel:"noopener noreferrer",children:[s("names.learnMore"),e.jsx(W,{name:"external-link","aria-hidden":!0})]})]})]})]})]})]}),v?e.jsx(zs,{name:m,priceCredits:C,onClose:()=>$(!1)}):null]})}const Ci=i.p`
974
+ display: flex;
975
+ align-items: center;
976
+ gap: 10px;
977
+ background: ${t.colors.rarityBg};
978
+ color: ${t.colors.accent};
979
+ border-radius: 12px;
980
+ padding: 12px 16px;
981
+ margin-bottom: 14px;
982
+ font-weight: 600;
983
+ font-size: 14px;
984
+
985
+ &[data-variant='warn'] {
986
+ background: rgba(211, 51, 51, 0.1);
987
+ color: ${t.colors.err};
988
+ }
989
+ `,rt=48,$i=["all","on_sale","not_for_sale"],ki=n=>n?"all":"on_sale";function ta({contracts:n,hideNames:a=!1,seo:r,lockStatus:d}={}){const[c]=gt(),w=Ke(),u=(c.get("q")??"").trim().toLowerCase(),x=(c.get("q")??"").trim();dt(r??{title:x?s("seo.collectibles.searchTitle",{query:x}):s("seo.collectibles.title"),description:s("seo.collectibles.description")});const l=ki(!!u),j=Wt(),g=j&&c.get("deals")==="true",C=p.useMemo(()=>({category:"all",status:l,subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,deals:!1,sort:g?"discount":"newest"}),[l,g]),[m,k]=Ot(C),{subCategory:f,rarities:b,priceMin:v,priceMax:$,smart:h,sort:A}=m,U=j&&m.deals,_=Dt.map(o=>o.key).filter(o=>!(a&&o==="names")).includes(m.category)?m.category:"all",M=d??($i.includes(m.status)?m.status:l);Gt(`${_}:${f??""}`);const[O,F]=p.useState(!1);p.useEffect(()=>{if(!O)return;const o=me=>{me.key==="Escape"&&F(!1)};document.addEventListener("keydown",o);const J=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",o),document.body.style.overflow=J}},[O]);const se=n!==void 0&&n.length===0,T=M==="on_sale",N=v&&!Number.isNaN(Number(v))?Number(v):void 0,L=$&&!Number.isNaN(Number($))?Number($):void 0,ee=zt(),H=f?Jt[f]:void 0,z=U?qt:Kt,D=(z.find(o=>o.key===A)??z[0]).server,K={category:_,rarities:b.length?b:void 0,wearableCategories:H,minPriceCredits:N,maxPriceCredits:L,search:u||void 0,sortBy:D,isSmart:h||void 0,onSale:!0,discounted:U||void 0,listingType:ee?void 0:"primary",contractAddresses:n!=null&&n.length?n:void 0},V={category:_,rarities:b.length?b:void 0,wearableCategories:H,search:u||void 0,sortBy:D,isWearableSmart:h||void 0,isOnSale:M==="not_for_sale"?!1:void 0,contractAddresses:n!=null&&n.length?n:void 0},{items:P,total:S,isLoading:E,isPlaceholderData:I,error:B,hasNextPage:re,isFetchingNextPage:X,isFetchNextPageError:Ie,fetchNextPage:Z}=Xt(T?["shop-items",K]:["catalog-items",V],o=>T?Ft({...K,first:rt,skip:o}):Ut({...V,first:rt,skip:o}),{enabled:_!=="names"&&!se}),te=S,{data:le,isError:Ae,isPending:ce}=ht(),de=o=>le&&o.manaWei?pt(o.manaWei,le):null,he=T&&ce&&P.some(o=>o.source==="legacy"),pe=E||I||he,Ne=E?15:Math.max(P.length,1),ie=p.useRef(null);p.useEffect(()=>{E||I||!u||ie.current===u||(ie.current=u,Te("Shop Searched",{query:u,result_count:te}))},[u,E,I,te]);const G=p.useRef("__init__");p.useEffect(()=>{if(E||I)return;const o=JSON.stringify({category:_,subCategory:f,rarities:b,min:N,max:L,sort:A,status:M,smart:h});if(G.current==="__init__"||G.current===o){G.current=o;return}G.current=o,Te("Shop Applied Filter",{filters:{category:_,sub_category:f,rarities:b,min_price_credits:N??null,max_price_credits:L??null,status:M,smart:h,sort:A},result_count:te})},[_,f,b,N,L,A,M,h,E,I,te]);function ae(o){k({category:o,subCategory:null})}function y(o){k({status:o})}function R(o){k({rarities:b.includes(o)?b.filter(J=>J!==o):[...b,o]})}function ue(){k(C)}const q=[];(N!=null||L!=null)&&q.push({key:"price",label:s("filter.price"),onRemove:()=>{k({priceMin:"",priceMax:""})}});for(const o of Vt)b.includes(o)&&q.push({key:`rarity-${o}`,label:Pt(o),onRemove:()=>R(o)});return h&&q.push({key:"smart",label:s("filter.smart"),onRemove:()=>k({smart:!1})}),U&&q.push({key:"deals",label:s("filter.deals"),onRemove:()=>k({deals:!1,sort:"newest"})}),M!==l&&q.push({key:"status",label:M==="all"?s("filter.statusAll"):M==="on_sale"?s("filter.onSale"):s("filter.notForSale"),onRemove:()=>y(l)}),e.jsxs(An,{"data-testid":"browse",children:[_!=="names"&&e.jsxs(e.Fragment,{children:[O?e.jsx(Nn,{onClick:()=>F(!1),"aria-hidden":!0}):null,e.jsxs(Ln,{"data-open":O||void 0,"data-testid":"browse-sidebar",children:[e.jsxs(Wn,{children:[e.jsx(zn,{children:s("assets.filters")}),e.jsx(Pn,{onClick:()=>F(!1),"aria-label":s("assets.closeFilters"),children:"✕"})]}),e.jsx(Bn,{children:e.jsx(Zt,{category:_,subCategory:f,onCategory:ae,onSub:o=>k({subCategory:o}),priceMin:v,priceMax:$,onPriceMin:o=>k({priceMin:o}),onPriceMax:o=>k({priceMax:o}),rarities:b,onToggleRarity:R,status:M,onStatus:y,hideNames:a,smart:h,onSmart:o=>k({smart:o}),deals:U,onDeals:j?o=>k(o?{deals:!0,sort:"discount"}:{deals:!1,sort:"newest"}):void 0})}),e.jsx(Fn,{children:e.jsx(Un,{type:"button",onClick:()=>F(!1),children:s("assets.showItems")})})]})]}),e.jsx(On,{children:_==="names"?e.jsx(vi,{onBack:()=>ae("all")}):e.jsxs(e.Fragment,{children:[e.jsx(Qt,{sort:A,sortOptions:z,onSort:o=>k({sort:o}),total:S,loading:E||I,query:u,onOpenFilters:()=>F(!0),chips:q,onClearChips:ue}),Ae&&T&&P.some(o=>o.source==="legacy")?e.jsx(Ci,{"data-variant":"warn",children:s("assets.marketUnavailable")}):null,B?e.jsx(en,{message:s("assets.loadError"),testId:"browse-error"}):null,!pe&&P.length===0&&!B?e.jsx(Bt,{testId:"browse-empty",icon:Ht,title:s("assets.empty.title"),body:x?e.jsxs(e.Fragment,{children:[s("assets.empty.searchBefore"),e.jsx("b",{children:x}),s("assets.empty.searchAfter")]}):s("assets.empty.filters"),cta:{label:s("assets.empty.cta"),onClick:()=>w("/overview")}}):e.jsxs(e.Fragment,{children:[e.jsx(In,{"data-testid":"grid",children:pe?e.jsx(Xe,{count:Ne}):e.jsxs(e.Fragment,{children:[P.map(o=>{if(!T)return e.jsx(xe,{item:o,mode:"view"},ge(o));const J=o;if(J.source!=="legacy")return e.jsx(xe,{item:o},ge(o));const me=de(J);return me==null?e.jsx(xe,{item:o,mode:"view"},ge(o)):e.jsx(xe,{item:{...J,priceCredits:me}},ge(o))}),X?e.jsx(Xe,{count:6}):null]})}),e.jsx(Yt,{hasNextPage:re,isFetching:X,isError:Ie,onLoadMore:()=>void Z()})]})]})})]})}export{ta as Assets};
990
+ //# sourceMappingURL=Assets-BKSeyg2-.js.map