@dcl/shop 1.4.2-31318792168.commit-63acc2c → 1.4.2-31320232662.commit-67c8edd

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 (218) hide show
  1. package/_assets/Activity-BdAxoMGz.js +378 -0
  2. package/_assets/{AnimatedBackground-CKYd1b1O.js → AnimatedBackground-DIYjRLfQ.js} +2 -2
  3. package/_assets/{Assets-BhlW9Wx3.js → Assets-CMjWqa8e.js} +2 -2
  4. package/_assets/{Assets.styles-DG1h47nn.js → Assets.styles-CttJZDai.js} +1 -1
  5. package/_assets/{Authorizations-BASwkC0l.js → Authorizations-0OipAfL0.js} +1 -1
  6. package/_assets/{Cart-DxmkSugV.js → Cart-Bp-r3d9U.js} +1 -1
  7. package/_assets/{CircularProgress-DYQ08DWl.js → CircularProgress-BfW1acKe.js} +1 -1
  8. package/_assets/{Collection-UgRDwUmd.js → Collection-CBonBbbE.js} +1 -1
  9. package/_assets/{CollectionCarousel-BvghNLQG.js → CollectionCarousel-uNk2LGYe.js} +2 -2
  10. package/_assets/{Confetti-8gjQ6tb0.js → Confetti-CGHIAnI_.js} +1 -1
  11. package/_assets/{ConstantsUtil-_wDeZ6ui.js → ConstantsUtil-B2POGKSZ.js} +1 -1
  12. package/_assets/{ContentClient-S2yImRPT.js → ContentClient-xK7WjQYC.js} +1 -1
  13. package/_assets/{Creator-DjPkuErt.js → Creator-ssK4f2lG.js} +1 -1
  14. package/_assets/{DeploymentBuilder-BuYQQso0.js → DeploymentBuilder-CBoTe7Ib.js} +1 -1
  15. package/_assets/{ErrorNotice-Dh0G_UH0.js → ErrorNotice-Cj_6GjVe.js} +1 -1
  16. package/_assets/{ExchangeController-BqD5t9Zu.js → ExchangeController-DJ_-zVyG.js} +1 -1
  17. package/_assets/{Faq-CrJ-GH4k.js → Faq-CAe7bWDz.js} +1 -1
  18. package/_assets/{GetCredits-DzDBOEft.js → GetCredits-FYc91tww.js} +1 -1
  19. package/_assets/{Grow-BcWJyxmA.js → Grow-CbDQYXoV.js} +1 -1
  20. package/_assets/{HelpersUtil-YGElNPtF.js → HelpersUtil-DQRjpxjs.js} +1 -1
  21. package/_assets/ItemDetail-DBmRXgXP.js +3582 -0
  22. package/_assets/LazyEmoteControls-VrjfrOSh.js +2 -0
  23. package/_assets/{LoadMore-DZz0apc4.js → LoadMore-C2i1PhLK.js} +1 -1
  24. package/_assets/{ManaPricingBanner.styles-Bir49U3g.js → ManaPricingBanner.styles-C8bcpj3e.js} +1 -1
  25. package/_assets/{MyAssets-D1VBULvk.js → MyAssets-BroQxiDd.js} +2 -2
  26. package/_assets/{MyFavorites-MQoA41I-.js → MyFavorites-CfPh80xk.js} +1 -1
  27. package/_assets/{NetworkUtil-ooNEpt2E.js → NetworkUtil-Z15mPh_4.js} +1 -1
  28. package/_assets/{NotFound-C0I1Fl9w.js → NotFound-DQfIwr43.js} +1 -1
  29. package/_assets/{NotificationsBell-CsjRTFAw.js → NotificationsBell-V26yRgY-.js} +1 -1
  30. package/_assets/{OutfitDetail-Cj-7nYPN.js → OutfitDetail-EKCBwISz.js} +1 -1
  31. package/_assets/{OutfitPreview-B5sSYG7H.js → OutfitPreview-C9uI8CCA.js} +1 -1
  32. package/_assets/{OutfitStudio-VIQWadz3.js → OutfitStudio-CNF81Bbr.js} +1 -1
  33. package/_assets/{StoreSettings-C2GziXJc.js → StoreSettings-AjfFeMpm.js} +21 -21
  34. package/_assets/{Success-D1R3OpeD.js → Success-mkJhfdY1.js} +1 -1
  35. package/_assets/{SwapController-BPzqNjIO.js → SwapController-BORbGJ3r.js} +1 -1
  36. package/_assets/{Tooltip-NVEtu7WR.js → Tooltip-y1IDtVA-.js} +1 -1
  37. package/_assets/{TradeService-P6cAagrj.js → TradeService-BGpdEFPI.js} +1 -1
  38. package/_assets/{W3MFrameProviderSingleton-CZkhqHTC.js → W3MFrameProviderSingleton-VHXt_Dup.js} +3 -3
  39. package/_assets/{WebCryptoP256-Btl0G7MC.js → WebCryptoP256-CjrIvt3n.js} +1 -1
  40. package/_assets/{authorizations-rKqoPfba.js → authorizations-BaNXoIur.js} +1 -1
  41. package/_assets/{basic-DUMQQiuv.js → basic-DnWEg-Hy.js} +1 -1
  42. package/_assets/{biconomy-DaDoOKwT.js → biconomy-NjQ2Dmhu.js} +1 -1
  43. package/_assets/{builder-BjxL6GAx.js → builder-DM3aazAh.js} +1 -1
  44. package/_assets/{buy-BVwGfu-u.js → buy-DmWa92vh.js} +1 -1
  45. package/_assets/{buy-gasless-QheWl_4u.js → buy-gasless-B5osCtXy.js} +1 -1
  46. package/_assets/{categories-BwYVv5LN.js → categories-DpAor7GL.js} +1 -1
  47. package/_assets/{ccip-Wq6QNi-S.js → ccip-BVHqSS4d.js} +1 -1
  48. package/_assets/{ccip-D9RgwF6z.js → ccip-Cgrq5RUR.js} +1 -1
  49. package/_assets/{chains-6gSx70Hh.js → chains-By8mU0dh.js} +1 -1
  50. package/_assets/{collectionPage.styles-DpjxCqdp.js → collectionPage.styles-CvHG8rEi.js} +4 -4
  51. package/_assets/{common-feYFL93O.js → common-BcsxxowX.js} +1 -1
  52. package/_assets/{controller-C66aulNK.js → controller-BkLD67E5.js} +2 -2
  53. package/_assets/{core-Btwy40Yo.js → core-DuF2V96A.js} +4 -4
  54. package/_assets/{createSvgIcon-CdJg0Jup.js → createSvgIcon-BJ59eVcB.js} +1 -1
  55. package/_assets/{custom-DoWLNbWe.js → custom-CvLb4FsW.js} +1 -1
  56. package/_assets/{data-capture-BGI0-xMQ.js → data-capture-ClEtGdRs.js} +1 -1
  57. package/_assets/{decimals-Cs0fUBZW.js → decimals-B-d9FEU2.js} +1 -1
  58. package/_assets/decimals-QWia76Wg.js +1 -0
  59. package/_assets/{detectExtension-C37KQAih.js → detectExtension-BPuwEotb.js} +1 -1
  60. package/_assets/{email-AZF8we76.js → email-C08V-8ux.js} +1 -1
  61. package/_assets/{embedded-wallet-CoNOZa9l.js → embedded-wallet-BElTHCsr.js} +1 -1
  62. package/_assets/{emotion-styled.browser.esm-D5G81H0Z.js → emotion-styled.browser.esm-D13cOINT.js} +1 -1
  63. package/_assets/{engine-DK35k3Wx.js → engine-iQSxZVqw.js} +1 -1
  64. package/_assets/{errors-By1GnMe7.js → errors-CzM6yGIv.js} +1 -1
  65. package/_assets/{estimate-l1-fee-CXKE1On5.js → estimate-l1-fee-U8wYh3LI.js} +1 -1
  66. package/_assets/{eth_estimateGas-BrLzlWeD.js → eth_estimateGas-CKQJj2K0.js} +1 -1
  67. package/_assets/{eth_getStorageAt-BpgMYXhH.js → eth_getStorageAt-4sxYy_Jr.js} +1 -1
  68. package/_assets/{eth_getTransactionCount-CnBRomEq.js → eth_getTransactionCount-D1Og_RPu.js} +1 -1
  69. package/_assets/{ethereum-DVNzjDRr.js → ethereum-BEUMKHrg.js} +1 -1
  70. package/_assets/{ethers-Zj6qlwhg.js → ethers-BNVA8Ulg.js} +1 -1
  71. package/_assets/{execute-CMXov2Ym.js → execute-xHfFbMoj.js} +2 -2
  72. package/_assets/{extractIPFS-CBKK6zoo.js → extractIPFS-BEELAV_x.js} +1 -1
  73. package/_assets/{features-ChMtmYU9.js → features-DBtzFO_F.js} +1 -1
  74. package/_assets/{fetchTokenMetadata-lypRtD7l.js → fetchTokenMetadata-GfgwdJZG.js} +2 -2
  75. package/_assets/{field.styles-DBKEhZ68.js → field.styles-CZwOpnoa.js} +1 -1
  76. package/_assets/{get-bytecode-BM7naPwd.js → get-bytecode-BEMOpY2b.js} +1 -1
  77. package/_assets/get-ecosystem-wallet-info-SvSMJ_On.js +1 -0
  78. package/_assets/{getBalance-D7kh5vBa.js → getBalance-CYH8e_b5.js} +2 -2
  79. package/_assets/{getInstalledModules-b10bOXJE.js → getInstalledModules-BM-l77Ll.js} +1 -1
  80. package/_assets/{getNFT-D-tJRp8I.js → getNFT-CIsqj__I.js} +2 -2
  81. package/_assets/getNFT-CLGff01G.js +1 -0
  82. package/_assets/{grid.styles-DJWMt6vO.js → grid.styles-B7zcogve.js} +1 -1
  83. package/_assets/{hashTypedData-DHhLMbA9.js → hashTypedData-84EgDalm.js} +1 -1
  84. package/_assets/{hashTypedData-CjD9Onxg.js → hashTypedData-DBVGTBcM.js} +1 -1
  85. package/_assets/{in-app-cMkoA_0X.js → in-app-D2kSN_gx.js} +1 -1
  86. package/_assets/{in-app-wallet-calls-B1N_tJhq.js → in-app-wallet-calls-BbxRzVzw.js} +1 -1
  87. package/_assets/{index-BXupZ0pl.js → index--bo6LqEP.js} +1 -1
  88. package/_assets/{index-C7qUllZE.js → index-BBxP7Xj6.js} +1 -1
  89. package/_assets/{index-By0vIQQY.js → index-BCTMLcN4.js} +1 -1
  90. package/_assets/{index-C3n5CX-T.js → index-BD4x10wc.js} +3 -3
  91. package/_assets/{index-CVvddNb-.js → index-BLWyTxxJ.js} +3 -3
  92. package/_assets/{index--EeJI3gz.js → index-BR5Yn0OB.js} +1 -1
  93. package/_assets/{index-C12063Q0.js → index-BXnU3ijX.js} +1 -1
  94. package/_assets/{index-Dlysgquh.js → index-BYGYGs2x.js} +1 -1
  95. package/_assets/{index-D93lVP2Z.js → index-BZ6IWdQe.js} +1 -1
  96. package/_assets/{index-DV-D1rm_.js → index-B_ly0Z2A.js} +1 -1
  97. package/_assets/{index-Bnn0ZkbX.js → index-BfG6o5pX.js} +1 -1
  98. package/_assets/{index-BHF7j7iL.js → index-BgMaz2hI.js} +1 -1
  99. package/_assets/{index-DFAQC55P.js → index-BjnTnm5a.js} +1 -1
  100. package/_assets/{index-BFm7_2vm.js → index-Bl6_ul-D.js} +1 -1
  101. package/_assets/{index-DhJfQlI3.js → index-BpUJu53B.js} +1 -1
  102. package/_assets/{index-Cd60w9wC.js → index-Bqo1OSdb.js} +1 -1
  103. package/_assets/{index-BYEO4mFR.js → index-BuHDEdAX.js} +1 -1
  104. package/_assets/{index-Cu7FOomH.js → index-BzzbhdF8.js} +2 -2
  105. package/_assets/{index-Bj9Iyp6h.js → index-C6rHL4F2.js} +1 -1
  106. package/_assets/{index-xIzbBpoa.js → index-CDhroxCr.js} +1 -1
  107. package/_assets/{index-BLGkMtvD.js → index-CMJlOjfB.js} +1 -1
  108. package/_assets/{index-BJpwf_jJ.js → index-COJM8DHh.js} +1 -1
  109. package/_assets/{index-ChH-BEH6.js → index-COzviLA0.js} +1 -1
  110. package/_assets/{index-COUpKEi3.js → index-Ccca6YnC.js} +1 -1
  111. package/_assets/{index-B4j7Y-xb.js → index-CilR-prW.js} +1 -1
  112. package/_assets/{index-BccN6K5r.js → index-Cmw0oYam.js} +1 -1
  113. package/_assets/{index-XZ_rZBqC.js → index-Cn8YM8FO.js} +1 -1
  114. package/_assets/{index-BHIzwyES.js → index-CowIypOj.js} +1 -1
  115. package/_assets/{index-CVJMJ5ib.js → index-CsJo38ms.js} +1 -1
  116. package/_assets/{index-NFLi3_OK.js → index-CtbRzA22.js} +1 -1
  117. package/_assets/{index-x1otqjN5.js → index-CwHpUcBq.js} +1 -1
  118. package/_assets/{index-FnYl0-IH.js → index-D9n9IfPO.js} +2 -2
  119. package/_assets/{index-BeGq8iy0.js → index-DB756UVD.js} +1 -1
  120. package/_assets/{index-C92g1mMH.js → index-DB8ptMg5.js} +2 -2
  121. package/_assets/{index-B6kTxvDn.js → index-DDRHocw2.js} +1 -1
  122. package/_assets/{index-DZbbUxqz.js → index-DI8sKT_C.js} +1 -1
  123. package/_assets/{index-06iPgNel.js → index-DMPUvtDu.js} +1 -1
  124. package/_assets/{index-AJgeFEbz.js → index-DOu_RZ8c.js} +1 -1
  125. package/_assets/{index-C9Tyc_4P.js → index-DQv9RCQq.js} +12 -12
  126. package/_assets/{index-DCzMWgYB.js → index-DQzKOoZ0.js} +1 -1
  127. package/_assets/{index-DWopoPMG.js → index-DRM_4dlS.js} +1 -1
  128. package/_assets/{index-CStVd5hO.js → index-DVVwr_DU.js} +1 -1
  129. package/_assets/{index-CH0fY4DE.js → index-DaynmOMh.js} +1 -1
  130. package/_assets/{index-BHY_vmT3.js → index-DggjePc0.js} +1 -1
  131. package/_assets/{index-CeoZ_quC.js → index-DicNx8gJ.js} +1 -1
  132. package/_assets/{index-BgbpD9U4.js → index-DquNz2me.js} +1 -1
  133. package/_assets/{index-xQRwfYpo.js → index-DrQW2qs5.js} +3 -3
  134. package/_assets/{index-BfJ-QKCm.js → index-DrcIVK2p.js} +1 -1
  135. package/_assets/{index-ZmzAm-04.js → index-DtbcRO9g.js} +1 -1
  136. package/_assets/{index-D8HAo-hq.js → index-Du3nsemu.js} +2 -2
  137. package/_assets/{index-CIvXnRxR.js → index-KChlNz82.js} +1 -1
  138. package/_assets/{index-Bh5UTaeB.js → index-SXkCoPPZ.js} +1 -1
  139. package/_assets/{index-hznwjI3b.js → index-U7HEkcvX.js} +1 -1
  140. package/_assets/{index-BsJlFErD.js → index-VasVoe6e.js} +1 -1
  141. package/_assets/{index-CrCEqqSc.js → index-XPCOdV7R.js} +1 -1
  142. package/_assets/{index-DY2HLZR7.js → index-Yq74iVgG.js} +1 -1
  143. package/_assets/{index-BecyzLoT.js → index-cAd-kulP.js} +1 -1
  144. package/_assets/{index--LxIcqOG.js → index-pju1O06J.js} +1 -1
  145. package/_assets/{index-B51FIhv5.js → index-pvUm6DNB.js} +1 -1
  146. package/_assets/{index-BAwpYw08.js → index-rT-9B6j-.js} +1 -1
  147. package/_assets/{index-BKjJvyPt.js → index-vrn7z-wj.js} +1 -1
  148. package/_assets/{index-BUl8ifmb.js → index-wQcK3tLf.js} +1 -1
  149. package/_assets/{index.es-CV3ZzR0v.js → index.es-B9guaNnV.js} +1 -1
  150. package/_assets/{index.es-CvYI4kyo.js → index.es-C4ahaUkG.js} +4 -4
  151. package/_assets/{index.es-DoNqTTY8.js → index.es-DWweMtzF.js} +1 -1
  152. package/_assets/{linkAccount-D0R_anql.js → linkAccount-DvBA_d5f.js} +1 -1
  153. package/_assets/{localBatchGatewayRequest-D3ayDqLT.js → localBatchGatewayRequest-D55IAvhY.js} +1 -1
  154. package/_assets/{native-Dvf6Py4t.js → native-am5dw0PN.js} +1 -1
  155. package/_assets/{networks-C_FZdidw.js → networks-Celeq4CX.js} +1 -1
  156. package/_assets/{onramp-73QiKjy2.js → onramp-DJxOit2Y.js} +1 -1
  157. package/_assets/{openzeppelin-B-lW-LCn.js → openzeppelin-iutICZox.js} +1 -1
  158. package/_assets/{ownerOf-CFg0Vnog.js → ownerOf-KPcimPwP.js} +1 -1
  159. package/_assets/{parseNft-CQJX5i7g.js → parseNft-BP8ry6m6.js} +2 -2
  160. package/_assets/{parseSignature-B8ORNT06.js → parseSignature-D9XRu0Am.js} +3 -3
  161. package/_assets/{parseSignature-C7Bg4ICM.js → parseSignature-sddzt64t.js} +1 -1
  162. package/_assets/{passkeys-CnT7FFCm.js → passkeys-B0sj7Vge.js} +1 -1
  163. package/_assets/{pay-with-exchange-D1snaauI.js → pay-with-exchange-CJJvdHOU.js} +1 -1
  164. package/_assets/{prepare-contract-call-gUfFspet.js → prepare-contract-call-COp3d1ll.js} +1 -1
  165. package/_assets/{qr-overlay-DpC39UbJ.js → qr-overlay-d6czDO7A.js} +1 -1
  166. package/_assets/{receive-DoLTg1vH.js → receive-D0rYG-Ru.js} +1 -1
  167. package/_assets/{resolveImplementation-C9QiCx9e.js → resolveImplementation-PKF9v-36.js} +1 -1
  168. package/_assets/{rpc-CMSbn2iN.js → rpc-CGuVz6ZU.js} +1 -1
  169. package/_assets/{secp256k1-BJ7bCcmT.js → secp256k1-B7Vw7DCw.js} +1 -1
  170. package/_assets/{secp256k1-DjE4Bhh_.js → secp256k1-VmEQa0aa.js} +1 -1
  171. package/_assets/{secp256k1-Bsn7vpBQ.js → secp256k1-goT4cfFb.js} +1 -1
  172. package/_assets/{send-C299MJc-.js → send-Dofcscvg.js} +1 -1
  173. package/_assets/{send-batch-transaction-BPpXN4Fh.js → send-batch-transaction-mdF3I3qP.js} +1 -1
  174. package/_assets/{send-eip712-transaction-D6kwLa1u.js → send-eip712-transaction-B3pe0swM.js} +2 -2
  175. package/_assets/send-gasless-transaction-4dIGMkd5.js +2 -0
  176. package/_assets/{send-transaction-DOroXsTv.js → send-transaction-MkLJ3i-I.js} +2 -2
  177. package/_assets/{sendMetaTransaction-BgzHuwAc.js → sendMetaTransaction-DnAgmSFb.js} +1 -1
  178. package/_assets/{sendRawTransaction-DezSAkxN.js → sendRawTransaction-a2apK1sb.js} +3 -3
  179. package/_assets/{sentry-BwKB4Jgk.js → sentry-CrmSoDwt.js} +1 -1
  180. package/_assets/{serializeTransaction-psWDn-qZ.js → serializeTransaction-C-RaU7t3.js} +1 -1
  181. package/_assets/{session-proposal-CbjngApN.js → session-proposal-t3e09MmG.js} +1 -1
  182. package/_assets/{session-request-B-6p9Iy6.js → session-request-CE-hLkat.js} +2 -2
  183. package/_assets/{sha256-CW4Z69Qa.js → sha256-CnOc2-Yk.js} +1 -1
  184. package/_assets/{signing-WVQFEK4R.js → signing-BCtaGMwS.js} +3 -3
  185. package/_assets/{skeleton.styles-BpJWZ8pG.js → skeleton.styles-BVKbiyma.js} +1 -1
  186. package/_assets/{socials-DUXs1Y48.js → socials-Ie9Cd6AX.js} +1 -1
  187. package/_assets/{styled-CVhCfwHn.js → styled-BeKzrQgz.js} +1 -1
  188. package/_assets/{swaps-Q8DvVlLL.js → swaps-Dpb1M0NW.js} +1 -1
  189. package/_assets/{thirdweb-DhSCkElu.js → thirdweb-CL_tbbur.js} +3 -3
  190. package/_assets/{to-serializable-transaction-B_fpIxbR.js → to-serializable-transaction-DbPi3W-2.js} +2 -2
  191. package/_assets/{totalSupply-DbHIgwL_.js → totalSupply-C1fV25i0.js} +1 -1
  192. package/_assets/{transaction-DRQKYXRS.js → transaction-Dx9RUnzT.js} +1 -1
  193. package/_assets/{transactionReceipt-BPSwGpr5.js → transactionReceipt-BhBfGbtY.js} +1 -1
  194. package/_assets/{transactions-DgPefDR1.js → transactions-Blvb-eh_.js} +1 -1
  195. package/_assets/{useCreditPacks-BMtorUrc.js → useCreditPacks-BUNkFxv2.js} +1 -1
  196. package/_assets/{useImportable-B8ire4qL.js → useImportable-Df3xXqBw.js} +1 -1
  197. package/_assets/{useInfiniteGrid-CVaXxfUk.js → useInfiniteGrid-_fAjW7XJ.js} +1 -1
  198. package/_assets/{useStore-CX-1oAbc.js → useStore-DWms-sYK.js} +2 -2
  199. package/_assets/{useTheme-QS2IpnyN.js → useTheme-Bhqn-d9f.js} +1 -1
  200. package/_assets/{utils-DMz9kkrI.js → utils-Dy-V3x7s.js} +1 -1
  201. package/_assets/{verifyHash-B0_1_m-X.js → verifyHash-BBHvhqgx.js} +1 -1
  202. package/_assets/{w3m-modal-CX_GlEzf.js → w3m-modal-CZ57kWmJ.js} +1 -1
  203. package/_assets/{w3m-modal-BAX9M2UR.js → w3m-modal-hZga13Md.js} +1 -1
  204. package/_assets/{wait-for-tx-receipt-BzR663uT.js → wait-for-tx-receipt-Bcbb_-Ff.js} +1 -1
  205. package/_assets/{wallets-DQjyJT7O.js → wallets-DtAWP3aq.js} +5 -5
  206. package/_assets/{web-connector-ClAZTCUe.js → web-connector-0yysPmu1.js} +3 -3
  207. package/_assets/{writeContract-CAcPIacd.js → writeContract-CXi_wbgo.js} +1 -1
  208. package/_assets/{zora-sepolia-CFzDpcm0.js → zora-sepolia-kZf0HhR9.js} +1 -1
  209. package/_assets/{zoraTestnet-DO-LfJcd.js → zoraTestnet-De-OGXOR.js} +1 -1
  210. package/index.html +11 -11
  211. package/package.json +2 -2
  212. package/_assets/Activity-CUtzGuZi.js +0 -378
  213. package/_assets/ItemDetail-BVO9W3Ag.js +0 -3570
  214. package/_assets/LazyEmoteControls-BATwcsS-.js +0 -2
  215. package/_assets/decimals-ajtlKW5P.js +0 -1
  216. package/_assets/get-ecosystem-wallet-info-Br746vUu.js +0 -1
  217. package/_assets/getNFT-VGd_dY0w.js +0 -1
  218. package/_assets/send-gasless-transaction-BVCq6iro.js +0 -2
@@ -0,0 +1,378 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-DRM_4dlS.js","_assets/react-BYHuwl8r.js","_assets/index-DQv9RCQq.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/sentry-CrmSoDwt.js","_assets/ethers-BNVA8Ulg.js","_assets/intl-CBcMB1D2.js","_assets/index-l2QjlKjX.css","_assets/useImportable-Df3xXqBw.js","_assets/buy-DmWa92vh.js","_assets/authorizations-BaNXoIur.js","_assets/sendMetaTransaction-DnAgmSFb.js","_assets/ManaPricingBanner.styles-C8bcpj3e.js","_assets/Faq-CAe7bWDz.js","_assets/field.styles-CZwOpnoa.js"])))=>i.map(i=>d[i]);
2
+ import{q as Ae,bF as Ee,v as O,l as A,bG as $e,t as n,s as l,x as Le,B as Pe,y as Ne,b as r,an as Te,I as E,bH as ie,bI as se,bJ as Se,_ as Fe,A as N,bK as Ce,D as De,aF as W,L as Me,bL as He,F as $,bM as qe,bN as _}from"./index-DQv9RCQq.js";import{r as g,u as ze,j as t,L as oe,e as Re}from"./react-BYHuwl8r.js";import{u as Oe}from"./useImportable-Df3xXqBw.js";import{L as We}from"./LoadMore-C2i1PhLK.js";import{u as L}from"./useInfiniteGrid-_fAjW7XJ.js";import{m as de}from"./mana-matic-C4e1sNO3.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-CrmSoDwt.js";import"./ethers-BNVA8Ulg.js";import"./intl-CBcMB1D2.js";import"./buy-DmWa92vh.js";import"./authorizations-BaNXoIur.js";import"./sendMetaTransaction-DnAgmSFb.js";const _e=15e3;function Ge(e,s){return e.txHash&&s.txHash?e.txHash===s.txHash:e.txHash||s.txHash?!1:e.status===s.status&&Math.abs(e.createdAt-s.createdAt)<=_e}function Ue(e){const s=[...e].sort((i,d)=>d.createdAt-i.createdAt),a=[];for(const i of s){const d=a[a.length-1];d&&Ge(d[d.length-1],i)?d.push(i):a.push([i])}return a.map(i=>{var d;return{id:((d=i.find(o=>o.txHash))==null?void 0:d.txHash)??i[i.length-1].id,createdAt:Math.max(...i.map(o=>o.createdAt)),status:Be(i),totalCredits:i.reduce((o,h)=>o+h.credits,0),lines:i}})}function Be(e){return e.some(s=>s.status==="PENDING")?"PENDING":e.some(s=>s.status==="SETTLED")?"SETTLED":"EXPIRED"}function Ke(e){return e==="SETTLED"?"SETTLED":e==="EXPIRED"?"FAILED":"PENDING"}function Qe(e){return e.tradeId?`trade:${e.tradeId}`:e.contractAddress&&e.itemId?`item:${e.contractAddress.toLowerCase()}:${e.itemId}`:null}function Xe(e){const s=[],a=new Map;for(const i of e){const d=Qe(i);if(!d){s.push({key:i.id,tradeId:null,contractAddress:i.contractAddress??null,itemId:i.itemId??null,quantity:1,credits:i.credits});continue}const o=a.get(d);if(o){o.quantity+=1,o.credits+=i.credits;continue}const h={key:d,tradeId:i.tradeId,contractAddress:i.contractAddress??null,itemId:i.itemId??null,quantity:1,credits:i.credits};a.set(d,h),s.push(h)}return s}function Ve(e,s){return{id:e.id,contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId,counterparty:e.buyer,credits:s?Ae(e.manaWei,s):null,manaWei:e.manaWei,createdAt:e.createdAt,txHash:e.txHash}}function Ye(e){return e.status!=="EXPIRED"||!!e.submittedTxHash}function Je(e){const a=Ue(e.purchases.filter(Ye)).map(c=>({kind:"purchase",id:`purchase:${c.id}`,createdAt:c.createdAt,order:c})),i=e.sales.map(c=>{const m=Ve(c,e.rate);return{kind:"sale",id:`sale:${m.id}`,createdAt:m.createdAt,sale:m}}),d=(e.creditOrders??[]).filter(c=>c.status!=="failed"&&c.status!=="abandoned").map(c=>({kind:"credit",id:`credit:${c.id}`,createdAt:c.createdAt,order:c})),o=new Set(e.purchases.filter(c=>c.txHash).map(c=>c.txHash.toLowerCase())),h=(e.manaPurchases??[]).filter(c=>!o.has(c.txHash.toLowerCase())).map(c=>({kind:"mana-purchase",id:`mana-purchase:${c.id}`,createdAt:c.createdAt,sale:c}));return[...a,...i,...d,...h].sort((c,m)=>m.createdAt-c.createdAt||(c.id<m.id?-1:1))}function Ze(e,s){return s==="all"?e:s==="sales"?e.filter(a=>a.kind==="sale"):e.filter(a=>a.kind==="purchase"||a.kind==="credit"||a.kind==="mana-purchase")}const ce=e=>e.trim().toLowerCase();function et(e){const s=new Map;for(const a of e??[]){const i=ce(a.txHash??"");if(!i)continue;const d=s.get(i);d?d.push(a):s.set(i,[a])}return s}function tt(e,s,a=Date.now()){const i=s.txHash?e.get(ce(s.txHash)):void 0;if(!i||i.length===0)return{kind:"direct"};const d=i.length===1?it(i[0].netCents):null,o=i.filter(c=>!c.available&&c.availableAt>a);if(o.length===0)return{kind:"credited",credits:d};const h=o.reduce((c,m)=>Math.max(c,m.availableAt),0);return{kind:"pending",credits:d,availableAt:h}}function it(e){return Ee(e)}function st(){const e=O(i=>{var d;return(d=i.session)==null?void 0:d.address}),{data:s,isLoading:a}=A({queryKey:["listing-count",e],queryFn:()=>$e({creator:e,onSale:!0,first:1}),enabled:!!e,staleTime:5*6e4});return{count:s==null?void 0:s.total,isLoading:a}}const nt="https://cdn.decentraland.org/@dcl/shop/1.4.2-31320232662.commit-67c8edd/_assets/credits-product-vs4Q6u6l.svg",G=Le`
3
+ 0% { background-position: 200% 0; }
4
+ 100% { background-position: -200% 0; }
5
+ `,at=l.section`
6
+ width: 100%;
7
+ min-width: 0;
8
+ min-height: 60vh;
9
+ /* Centre the whole column — heading, tabs and cards as ONE block — so the feed isn't parked against
10
+ the left edge of a wide page. Centring only the list would leave the heading orphaned from it.
11
+
12
+ ONE width for every view. The migration tool needs 1003px (its row is a thumbnail, a name and a
13
+ 144px price field; narrower, the price field drops to its own line on a desktop), and the feed used
14
+ to sit at 760px — so switching chips resized the heading and the whole column under it, which reads
15
+ as the page reloading rather than as a filter changing. */
16
+ max-width: 1003px;
17
+ margin-inline: auto;
18
+ `,rt=l.div`
19
+ display: flex;
20
+ align-items: baseline;
21
+ gap: 12px;
22
+ margin-bottom: 20px;
23
+ `,ot=l.h1`
24
+ font-family: ${n.font.sans};
25
+ margin: 0;
26
+ color: ${n.colors.softWhite};
27
+ `;l.span`
28
+ color: ${n.colors.gray4};
29
+ font-size: 14px;
30
+ `;const dt=l.div`
31
+ display: flex;
32
+ gap: 8px;
33
+ margin-bottom: 20px;
34
+ flex-wrap: wrap;
35
+ `,le=l.button`
36
+ appearance: none;
37
+ /* Figma 2275:294685 / 294707: a translucent white pill that fills SOFT-WHITE when it is the one you
38
+ are on, with no border in either state — the outline this used to carry made the selected chip read
39
+ as a control with a stuck focus ring on it. */
40
+ border: 0;
41
+ background: ${n.colors.glass};
42
+ color: ${n.colors.white};
43
+ font-family: ${n.font.sans};
44
+ font-size: 13px;
45
+ font-weight: 600;
46
+ line-height: 24px;
47
+ letter-spacing: 0.46px;
48
+ /* The design gives the pill a flat 40px and no vertical padding, centring the 24px line box inside
49
+ it — so the height is the 40 it draws rather than the sum of a line box, padding and a border. */
50
+ display: inline-flex;
51
+ align-items: center;
52
+ justify-content: center;
53
+ padding: 0 16px;
54
+ min-height: 40px;
55
+ border-radius: ${n.radius.pill};
56
+ cursor: pointer;
57
+ transition:
58
+ background 0.15s,
59
+ color 0.15s;
60
+
61
+ &:hover {
62
+ background: ${n.colors.glassHover};
63
+ }
64
+ /* Inset, so a keyboard ring never reads as part of the pill's own shape the way an offset one did. */
65
+ &:focus-visible {
66
+ outline: 2px solid ${n.colors.white};
67
+ outline-offset: -2px;
68
+ }
69
+ &[data-active='true'] {
70
+ background: ${n.colors.softWhite};
71
+ color: ${n.colors.text};
72
+ }
73
+ &[data-active='true']:hover {
74
+ background: ${n.colors.white};
75
+ }
76
+ &[data-active='true']:focus-visible {
77
+ outline-color: ${n.colors.text};
78
+ }
79
+ `,ct=l(le)`
80
+ position: relative;
81
+ `,lt=l.span`
82
+ position: absolute;
83
+ /* The 5.5 / 2.5 the design measures from the pill's outer edge. The chip has no border now, so its
84
+ padding box IS that edge and the offsets no longer carry a hairline's worth on top. */
85
+ top: -5.5px;
86
+ right: -2.5px;
87
+ display: grid;
88
+ place-items: center;
89
+ /* The chip's tracking would otherwise widen the disc off its 20px. */
90
+ letter-spacing: normal;
91
+ /* Figma only ever draws a single digit, as a fixed 20px disc. The padding is what lets a two- or
92
+ three-figure count grow leftwards out of the corner instead of spilling out of the circle. */
93
+ min-width: 20px;
94
+ height: 20px;
95
+ padding: 0 6px;
96
+ border-radius: ${n.radius.pill};
97
+ background: ${n.colors.dclRed};
98
+ /* No ring: the red separates itself from both surfaces the disc straddles (the chip and the page), and
99
+ the design draws the circle bare. */
100
+ font-weight: 600;
101
+ font-size: 12px;
102
+ line-height: 1.6;
103
+ color: ${n.colors.white};
104
+ `,ut=l.div`
105
+ min-height: 60vh;
106
+ `,ne=l.div`
107
+ display: flex;
108
+ flex-direction: column;
109
+ gap: 16px;
110
+ `,T=l.div`
111
+ background: ${n.colors.white};
112
+ border: 1px solid ${n.colors.line};
113
+ border-radius: 16px;
114
+ overflow: hidden;
115
+ `,S=l.div`
116
+ display: flex;
117
+ align-items: center;
118
+ justify-content: space-between;
119
+ gap: 12px;
120
+ padding: 14px 18px;
121
+ background: ${n.colors.softWhite};
122
+ border-bottom: 1px solid ${n.colors.line};
123
+
124
+ ${n.media.maxWidth("mobile")} {
125
+ flex-wrap: wrap;
126
+ }
127
+ `,F=l.div`
128
+ display: flex;
129
+ flex-direction: column;
130
+ gap: 2px;
131
+ min-width: 0;
132
+ `,C=l.span`
133
+ font-weight: 700;
134
+ color: ${n.colors.text};
135
+ `,D=l.span`
136
+ font-size: 13px;
137
+ color: ${n.colors.muted};
138
+ `,M=l.div`
139
+ display: flex;
140
+ align-items: center;
141
+ gap: 14px;
142
+ /* Pin to the right regardless of how many elements sit on the left (the credit-purchase card adds a
143
+ leading thumbnail, giving the head three children instead of two). */
144
+ margin-left: auto;
145
+ `,ht=l.div`
146
+ flex: 0 0 auto;
147
+ width: 52px;
148
+ height: 52px;
149
+ border-radius: 10px;
150
+ background: ${n.colors.media};
151
+ display: flex;
152
+ align-items: center;
153
+ justify-content: center;
154
+
155
+ img {
156
+ width: 30px;
157
+ height: 30px;
158
+ display: block;
159
+ }
160
+ `,H=l.span`
161
+ font-size: 11px;
162
+ font-weight: 700;
163
+ text-transform: uppercase;
164
+ letter-spacing: 0.03em;
165
+ padding: 4px 10px;
166
+ border-radius: ${n.radius.pill};
167
+ white-space: nowrap;
168
+
169
+ &[data-status='SETTLED'] {
170
+ background: rgba(30, 166, 114, 0.14);
171
+ color: ${n.colors.okStrong};
172
+ }
173
+ &[data-status='PENDING'] {
174
+ background: rgba(245, 166, 35, 0.16);
175
+ color: #b5790a;
176
+ }
177
+ &[data-status='SOLD'] {
178
+ background: rgba(103, 58, 183, 0.14);
179
+ color: ${n.colors.accent};
180
+ }
181
+ &[data-status='FAILED'] {
182
+ background: rgba(214, 61, 61, 0.14);
183
+ color: #b02a2a;
184
+ }
185
+ /* Nobody paid and nobody is owed anything — deliberately the quietest of the four. Reusing PENDING's
186
+ amber here is what made an abandoned checkout look like money on its way. */
187
+ &[data-status='UNFINISHED'] {
188
+ background: ${n.colors.line};
189
+ color: ${n.colors.muted};
190
+ }
191
+ `,pt=l.button`
192
+ font-size: 11px;
193
+ font-weight: 700;
194
+ text-transform: uppercase;
195
+ letter-spacing: 0.03em;
196
+ padding: 4px 10px;
197
+ border-radius: ${n.radius.pill};
198
+ white-space: nowrap;
199
+ border: 1px solid ${n.colors.accent};
200
+ background: transparent;
201
+ color: ${n.colors.accent};
202
+ cursor: pointer;
203
+ transition: background 0.15s ease;
204
+
205
+ &:hover:not(:disabled) {
206
+ background: rgba(103, 58, 183, 0.08);
207
+ }
208
+ &:disabled {
209
+ opacity: 0.6;
210
+ cursor: default;
211
+ }
212
+ `,w=l.div`
213
+ display: flex;
214
+ align-items: center;
215
+ gap: 5px;
216
+ font-weight: 800;
217
+ color: ${n.colors.text};
218
+ white-space: nowrap;
219
+
220
+ .ccy-mark {
221
+ width: 16px;
222
+ height: 16px;
223
+ }
224
+
225
+ // Money received (a sale) reads as income in the shop's success green.
226
+ &[data-kind='income'] {
227
+ color: ${n.colors.okStrong};
228
+ }
229
+ `,ue=l.img`
230
+ width: 16px;
231
+ height: 16px;
232
+ vertical-align: -0.15em;
233
+ `,mt=l.span`
234
+ display: inline-flex;
235
+ align-items: center;
236
+ cursor: pointer;
237
+ `,xt=l.span`
238
+ position: fixed;
239
+ transform: translateX(-50%);
240
+ padding: 6px 8px;
241
+ border-radius: 6px;
242
+ background: #16141a;
243
+ color: ${n.colors.white};
244
+ font-size: 12px;
245
+ font-weight: 600;
246
+ line-height: 1;
247
+ white-space: nowrap;
248
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
249
+ pointer-events: none;
250
+ z-index: 9999;
251
+ `,gt=l.p`
252
+ margin: 0;
253
+ /* 18px sides to sit on the same rail as CardHead and Line; no bottom, since Line brings its own 12px. */
254
+ padding: 12px 18px 0;
255
+ font-size: 13px;
256
+ line-height: 1.45;
257
+ color: ${n.colors.muted};
258
+ `,U=l.div`
259
+ display: flex;
260
+ flex-direction: column;
261
+ `,q=l.div`
262
+ display: grid;
263
+ grid-template-columns: 52px 1fr auto;
264
+ align-items: center;
265
+ gap: 14px;
266
+ padding: 12px 18px;
267
+ text-decoration: none;
268
+ color: inherit;
269
+
270
+ & + & {
271
+ border-top: 1px solid ${n.colors.line};
272
+ }
273
+
274
+ &[data-link='true'] {
275
+ transition: background 0.15s;
276
+ }
277
+ &[data-link='true']:hover {
278
+ background: ${n.colors.media};
279
+ }
280
+ &[data-link='true']:focus-visible {
281
+ outline: 2px solid ${n.colors.accent};
282
+ outline-offset: -2px;
283
+ }
284
+ `,B=l.div`
285
+ width: 52px;
286
+ height: 52px;
287
+ border-radius: 10px;
288
+ background: ${n.colors.media};
289
+ overflow: hidden;
290
+ display: flex;
291
+ align-items: center;
292
+ justify-content: center;
293
+ color: ${n.colors.muted2};
294
+
295
+ img {
296
+ width: 100%;
297
+ height: 100%;
298
+ object-fit: contain;
299
+ }
300
+ `,K=l.div`
301
+ width: 52px;
302
+ height: 52px;
303
+ border-radius: 10px;
304
+ background: linear-gradient(100deg, ${n.colors.media} 30%, ${n.colors.panel} 50%, ${n.colors.media} 70%);
305
+ background-size: 200% 100%;
306
+ animation: ${G} 1.3s infinite linear;
307
+
308
+ @media (prefers-reduced-motion: reduce) {
309
+ animation: none;
310
+ }
311
+ `,Q=l.div`
312
+ min-width: 0;
313
+ display: flex;
314
+ flex-direction: column;
315
+ gap: 2px;
316
+ `,X=l.span`
317
+ font-weight: 700;
318
+ white-space: nowrap;
319
+ overflow: hidden;
320
+ text-overflow: ellipsis;
321
+ `,V=l.span`
322
+ display: inline-block;
323
+ width: 140px;
324
+ max-width: 60%;
325
+ height: 12px;
326
+ border-radius: 6px;
327
+ background: linear-gradient(100deg, ${n.colors.media} 30%, ${n.colors.panel} 50%, ${n.colors.media} 70%);
328
+ background-size: 200% 100%;
329
+ animation: ${G} 1.3s infinite linear;
330
+
331
+ @media (prefers-reduced-motion: reduce) {
332
+ animation: none;
333
+ }
334
+ `,Y=l.span`
335
+ font-size: 13px;
336
+ color: ${n.colors.muted};
337
+ `,ft=l.div`
338
+ display: flex;
339
+ align-items: center;
340
+ gap: 4px;
341
+ font-weight: 700;
342
+ color: ${n.colors.text};
343
+ white-space: nowrap;
344
+
345
+ .ccy-mark {
346
+ width: 14px;
347
+ height: 14px;
348
+ }
349
+ `,ae=l.div`
350
+ height: 132px;
351
+ border-radius: 16px;
352
+ border: 1px solid transparent;
353
+ background: linear-gradient(100deg, ${n.colors.media} 30%, ${n.colors.panel} 50%, ${n.colors.media} 70%);
354
+ background-size: 200% 100%;
355
+ animation: ${G} 1.3s infinite linear;
356
+
357
+ @media (prefers-reduced-motion: reduce) {
358
+ animation: none;
359
+ }
360
+ `,he=l.div`
361
+ display: flex;
362
+ flex-direction: column;
363
+ align-items: center;
364
+ gap: 8px;
365
+ text-align: center;
366
+ padding: 90px 20px;
367
+ min-height: 50vh;
368
+ color: ${n.colors.softWhite};
369
+ `,pe=l.p`
370
+ font-size: 22px;
371
+ font-weight: 700;
372
+ margin: 6px 0 0;
373
+ `,me=l.p`
374
+ margin: 0;
375
+ color: ${n.colors.softWhite};
376
+ `,yt=l(Pe)`
377
+ margin-top: 12px;
378
+ `,J=q.withComponent(oe),bt=g.lazy(()=>Fe(()=>import("./index-DRM_4dlS.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(e=>({default:e.ImportListings}))),P=24,vt=["all","purchases","sales"],z="section",re="listings",R="view",jt="migrate";function I(e){try{return new Date(e).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}catch{return""}}function xe(e){return e.length>10?`${e.slice(0,6)}…${e.slice(-4)}`:e}function ge(e){const s=Number(e)/1e18;return Number.isFinite(s)?s.toLocaleString("en",{maximumFractionDigits:2}):"0"}function fe({children:e}){const s=g.useRef(null),[a,i]=g.useState(null),d=()=>{var h;const o=(h=s.current)==null?void 0:h.getBoundingClientRect();o&&i({top:o.bottom+8,left:o.left+o.width/2})};return t.jsxs(mt,{ref:s,tabIndex:0,onMouseEnter:d,onMouseLeave:()=>i(null),onFocus:d,onBlur:()=>i(null),children:[e,a?Re.createPortal(t.jsx(xt,{style:{top:a.top,left:a.left},role:"tooltip",children:r("activity.polygonMana")}),document.body):null]})}function wt({item:e}){const s=!!e.contractAddress&&!!e.itemId,a=!!e.tradeId||s,{data:i,isLoading:d}=A({queryKey:["order-line-display",e.tradeId,e.contractAddress,e.itemId],queryFn:()=>e.tradeId?qe(e.tradeId):_(e.contractAddress,{itemId:e.itemId}),enabled:a,staleTime:5*6e4}),o=a&&d,h=(i==null?void 0:i.name)??r("activity.itemFallback"),c=(i==null?void 0:i.thumbnail)??"",m=W({contractAddress:i==null?void 0:i.contractAddress,tokenId:i==null?void 0:i.tokenId,itemId:i==null?void 0:i.itemId})??void 0,f=t.jsxs(t.Fragment,{children:[o?t.jsx(K,{}):t.jsx(B,{children:c?t.jsx("img",{src:c,alt:h}):t.jsx(E,{name:"cart",size:20})}),t.jsxs(Q,{children:[o?t.jsx(V,{}):t.jsx(X,{title:h,children:h}),e.quantity>1?t.jsx(Y,{children:r("activity.quantity",{count:e.quantity})}):null]}),t.jsxs(ft,{children:[t.jsx(N,{className:"ccy-mark"})," ",e.credits]})]});return m?t.jsx(J,{to:m,"data-link":"true",children:f}):t.jsx(q,{children:f})}function kt({order:e}){const s=Xe(e.lines),a=s.reduce((o,h)=>o+h.quantity,0),i=Ke(e.status),d=i==="SETTLED"?r("activity.completed"):i==="FAILED"?r("activity.failed"):r("activity.processing");return t.jsxs(T,{"data-testid":"purchase-order",children:[t.jsxs(S,{children:[t.jsxs(F,{children:[t.jsx(C,{children:I(e.createdAt)}),t.jsxs(D,{children:[r("activity.purchaseLabel")," · ",r("activity.itemCount",{count:a})]})]}),t.jsxs(M,{children:[t.jsx(H,{"data-status":i,children:d}),t.jsxs(w,{children:[t.jsx(N,{className:"ccy-mark"})," ",e.totalCredits]})]})]}),i==="FAILED"?t.jsx(gt,{children:r("activity.purchaseFailedNote")}):null,t.jsx(U,{children:s.map(o=>t.jsx(wt,{item:o},o.key))})]})}function It({sale:e}){const{data:s,isLoading:a}=A({queryKey:["asset-display",e.contractAddress,e.tokenId,e.itemId],queryFn:()=>_(e.contractAddress,{tokenId:e.tokenId,itemId:e.itemId}),enabled:!!e.contractAddress,staleTime:3e5}),i=(s==null?void 0:s.name)??r("activity.itemFallback"),d=(s==null?void 0:s.thumbnail)??"",o=W({contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId})??void 0,h=t.jsxs(t.Fragment,{children:[a?t.jsx(K,{}):t.jsx(B,{children:d?t.jsx("img",{src:d,alt:i}):t.jsx(E,{name:"offer",size:20})}),t.jsxs(Q,{children:[a?t.jsx(V,{}):t.jsx(X,{title:i,children:i}),t.jsx(Y,{children:r("activity.boughtFrom",{account:xe(e.seller)})})]})]});return t.jsxs(T,{"data-testid":"activity-mana-purchase",children:[t.jsxs(S,{children:[t.jsxs(F,{children:[t.jsx(C,{children:I(e.createdAt)}),t.jsx(D,{children:r("activity.paidWithMana")})]}),t.jsxs(M,{children:[t.jsx(H,{"data-status":"SETTLED",children:r("activity.completed")}),t.jsxs(w,{children:[ge(e.manaWei)," ",t.jsx(fe,{children:t.jsx(ue,{src:de,alt:"MANA"})})]})]})]}),t.jsx(U,{children:o?t.jsx(J,{to:o,"data-link":"true",children:h}):t.jsx(q,{children:h})})]})}function At({sale:e,payout:s}){const{data:a,isLoading:i}=A({queryKey:["asset-display",e.contractAddress,e.tokenId,e.itemId],queryFn:()=>_(e.contractAddress,{tokenId:e.tokenId,itemId:e.itemId}),enabled:!!e.contractAddress,staleTime:3e5}),d=(a==null?void 0:a.name)??r("activity.itemFallback"),o=(a==null?void 0:a.thumbnail)??"",h=W({contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId})??void 0,c=t.jsxs(t.Fragment,{children:[i?t.jsx(K,{}):t.jsx(B,{children:o?t.jsx("img",{src:o,alt:d}):t.jsx(E,{name:"offer",size:20})}),t.jsxs(Q,{children:[i?t.jsx(V,{}):t.jsx(X,{title:d,children:d}),t.jsxs(Y,{children:[r("activity.soldTo",{account:xe(e.counterparty)}),s.kind==="pending"?` · ${r("activity.payoutPendingOn",{date:I(s.availableAt)})}`:""]})]})]});return t.jsxs(T,{"data-testid":"activity-sale",children:[t.jsxs(S,{children:[t.jsxs(F,{children:[t.jsx(C,{children:I(e.createdAt)}),t.jsx(D,{children:r("activity.saleLabel")})]}),t.jsxs(M,{children:[t.jsx(H,{"data-status":s.kind==="pending"?"PENDING":"SOLD",children:s.kind==="pending"?r("activity.payoutPending"):r("activity.sold")}),s.kind==="direct"?t.jsxs(w,{"data-kind":"income",children:["+",ge(e.manaWei)," ",t.jsx(fe,{children:t.jsx(ue,{src:de,alt:"MANA"})})]}):s.credits!==null?t.jsxs(w,{"data-kind":"income",children:[t.jsx(N,{className:"ccy-mark"})," +",Me(s.credits)]}):t.jsx(w,{"data-kind":"income",children:r("activity.payoutCredited")})]})]}),t.jsx(U,{children:h?t.jsx(J,{to:h,"data-link":"true",children:c}):t.jsx(q,{children:c})})]})}function Et({order:e}){const s=`$${(e.usdCents/100).toFixed(2)}`,a=Ce(e.status),i=a==="SETTLED"?r("activity.completed"):a==="FAILED"?r("activity.failed"):a==="UNFINISHED"?r("activity.unfinished"):r("activity.processing"),d=O(p=>p.session),o=De(),[h,c]=g.useState(!1),m=e.status==="initiated"&&!!d;g.useEffect(()=>{const p=()=>c(!1);return window.addEventListener("pageshow",p),()=>window.removeEventListener("pageshow",p)},[]);async function f(){if(!(!d||h)){c(!0);try{const p=await He(e.id,d.identity);if(p.kind==="url"){if(/^https:\/\/([a-z0-9-]+\.)*stripe\.com\//i.test(p.url)){window.location.href=p.url;return}$.error(r("activity.resumeUnavailable"))}else p.kind==="expired"?($.info(r("activity.resumeExpired")),o.invalidateQueries({queryKey:["credit-orders"]})):p.kind==="paid"?($.success(r("activity.resumePaid")),o.invalidateQueries({queryKey:["credit-orders"]})):$.error(r("activity.resumeUnavailable"));c(!1)}catch{c(!1)}}}return t.jsx(T,{"data-testid":"credit-order",children:t.jsxs(S,{children:[t.jsx(ht,{children:t.jsx("img",{src:nt,alt:"","aria-hidden":!0})}),t.jsxs(F,{children:[t.jsx(C,{children:I(e.createdAt)}),t.jsxs(D,{children:[r("activity.creditPurchaseLabel")," · ",r("activity.creditPaid",{usd:s})]})]}),t.jsxs(M,{children:[m?t.jsx(pt,{type:"button",onClick:()=>void f(),disabled:h,"data-testid":"resume-order",children:h?r("activity.resuming"):r("activity.resume")}):null,t.jsx(H,{"data-status":a,children:i}),t.jsxs(w,{"data-kind":a==="UNFINISHED"?void 0:"income",children:[a==="UNFINISHED"?"":"+",t.jsx(N,{className:"ccy-mark"})," ",e.credits]})]})]})})}function $t({filter:e}){const s={all:{icon:"clock",title:r("activity.emptyAllTitle"),body:r("activity.emptyAllBody")},purchases:{icon:"cart",title:r("activity.emptyPurchasesTitle"),body:r("activity.emptyPurchasesBody")},sales:{icon:"offer",title:r("activity.emptySalesTitle"),body:r("activity.emptySalesBody")}}[e];return t.jsxs(he,{children:[t.jsx(E,{name:s.icon,size:40,color:n.colors.muted2}),t.jsx(pe,{children:s.title}),t.jsx(me,{children:s.body}),e!=="sales"?t.jsx(yt,{as:oe,to:"/items",variant:"white",children:r("notFound.cta")}):null]})}function Ot(){const{session:e}=O(),[s,a]=g.useState("all"),[i,d]=ze(),o=i.get(z)===re||i.get(R)===jt;Ne({title:o?r("seo.import.title"):r("nav.activity"),noindex:!0});const{count:h}=Oe(),{count:c}=st(),f=h!==void 0&&c!==void 0&&(h>0||c>0||o),p=!!e&&!o&&s!=="sales",x=!!e&&!o&&s!=="purchases",y=L(["purchases",e==null?void 0:e.address],u=>Se(e.address,e.identity,{first:P,skip:u}),{enabled:p}),b=L(["sales",e==null?void 0:e.address],u=>ie(e.address,{role:"seller",first:P,skip:u}),{enabled:x}),v=L(["credit-orders",e==null?void 0:e.address],u=>se(e.address,e.identity,{first:P,skip:u}),{enabled:p}),j=L(["mana-purchases",e==null?void 0:e.address],u=>ie(e.address,{role:"buyer",first:P,skip:u}),{enabled:p}),{data:Z}=A({queryKey:["sale-payouts",e==null?void 0:e.address],queryFn:()=>se(e.address,e.identity,{first:200}).then(u=>u.payouts),enabled:x,staleTime:6e4}),ye=g.useMemo(()=>et(Z),[Z]),{data:be}=Te(x);if(!e)return t.jsxs(he,{children:[t.jsx(E,{name:"clock",size:40,color:n.colors.muted2}),t.jsx(pe,{children:r("activity.signInTitle")}),t.jsx(me,{children:r("activity.signInBody")})]});const ee=Ze(Je({purchases:p?y.items:[],sales:x?b.items:[],creditOrders:p?v.items:[],manaPurchases:p?j.items:[],rate:be}),s),ve=p&&(y.isLoading||v.isLoading||j.isLoading)||x&&b.isLoading,te=p&&(y.isFetchingNextPage||v.isFetchingNextPage||j.isFetchingNextPage)||x&&b.isFetchingNextPage,je=p&&(y.hasNextPage||v.hasNextPage||j.hasNextPage)||x&&b.hasNextPage;function we(){p&&y.hasNextPage&&y.fetchNextPage(),p&&v.hasNextPage&&v.fetchNextPage(),p&&j.hasNextPage&&j.fetchNextPage(),x&&b.hasNextPage&&b.fetchNextPage()}function ke(u){if(a(u),!o)return;const k=new URLSearchParams(i);k.delete(z),k.delete(R),d(k,{replace:!0})}function Ie(){const u=new URLSearchParams(i);u.set(z,re),u.delete(R),d(u,{replace:!0})}return t.jsxs(at,{children:[t.jsx(rt,{children:t.jsx(ot,{children:r("nav.activity")})}),t.jsxs(dt,{role:"tablist","aria-label":r("nav.activity"),children:[vt.map(u=>t.jsx(le,{type:"button",role:"tab","aria-selected":!o&&s===u,"data-active":!o&&s===u,"data-testid":`activity-filter-${u}`,onClick:()=>ke(u),children:r(`activity.filter.${u}`)},u)),f?t.jsxs(ct,{type:"button",role:"tab","aria-selected":o,"data-active":o,"data-testid":"activity-filter-migrate","aria-label":h?r("activity.migrate.chipAria",{count:h}):void 0,onClick:Ie,children:[r("activity.migrate.chip"),h?t.jsx(lt,{"data-testid":"activity-migrate-count","aria-hidden":!0,children:h}):null]}):null]}),o?t.jsx(g.Suspense,{fallback:t.jsx(ut,{"aria-busy":"true"}),children:t.jsx(bt,{})}):ve?t.jsx(ne,{children:Array.from({length:5}).map((u,k)=>t.jsx(ae,{},k))}):ee.length===0?t.jsx($t,{filter:s}):t.jsxs(t.Fragment,{children:[t.jsxs(ne,{children:[ee.map(u=>u.kind==="purchase"?t.jsx(kt,{order:u.order},u.id):u.kind==="credit"?t.jsx(Et,{order:u.order},u.id):u.kind==="mana-purchase"?t.jsx(It,{sale:u.sale},u.id):t.jsx(At,{sale:u.sale,payout:tt(ye,u.sale)},u.id)),te?t.jsx(ae,{}):null]}),t.jsx(We,{hasNextPage:je,isFetching:te,onLoadMore:we})]})]})}export{Ot as Activity};
@@ -1,4 +1,4 @@
1
- import{r as u,j as m}from"./react-BYHuwl8r.js";import{s as d}from"./index-C9Tyc_4P.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-BwKB4Jgk.js";import"./ethers-Zj6qlwhg.js";import"./intl-CBcMB1D2.js";const P="https://cdn.decentraland.org/@dcl/shop/1.4.2-31318792168.commit-63acc2c/_assets/custom-welcome-background-BxlFQma9.webp",L="https://cdn.decentraland.org/@dcl/shop/1.4.2-31318792168.commit-63acc2c/_assets/DCL_LogoPattern-BryBPc3d.png",D=`
1
+ import{r as u,j as m}from"./react-BYHuwl8r.js";import{s as d}from"./index-DQv9RCQq.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-CrmSoDwt.js";import"./ethers-BNVA8Ulg.js";import"./intl-CBcMB1D2.js";const P="https://cdn.decentraland.org/@dcl/shop/1.4.2-31320232662.commit-67c8edd/_assets/custom-welcome-background-BxlFQma9.webp",L="https://cdn.decentraland.org/@dcl/shop/1.4.2-31320232662.commit-67c8edd/_assets/DCL_LogoPattern-BryBPc3d.png",D=`
2
2
  attribute vec2 a_position;
3
3
  varying vec2 v_uv;
4
4
  void main() {
@@ -94,4 +94,4 @@ void main() {
94
94
  inset: 0;
95
95
  width: 100%;
96
96
  height: 100%;
97
- `;function K({patternTiling:e=1.66}){const a=u.useRef(null),n=u.useRef(0),r=u.useRef(e);return r.current=e,u.useEffect(()=>{var E;const o=a.current;if(!o||(E=window.matchMedia)!=null&&E.call(window,"(prefers-reduced-motion: reduce)").matches)return;const t=o.getContext("webgl",{alpha:!1,antialias:!1});if(!t)return;const i=p(t,t.VERTEX_SHADER,D),s=p(t,t.FRAGMENT_SHADER,B);if(!i||!s){i&&t.deleteShader(i),s&&t.deleteShader(s);return}const c=F(t,i,s);if(!c){t.deleteShader(i),t.deleteShader(s);return}const f=t.getAttribLocation(c,"a_position"),y=t.getUniformLocation(c,"u_time"),w=t.getUniformLocation(c,"u_resolution"),A=t.getUniformLocation(c,"u_overlayTex"),S=t.getUniformLocation(c,"u_overlayTiling"),v=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,v),t.bufferData(t.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),t.STATIC_DRAW);let h=!1;const T=I(t,L,()=>h),b=()=>{const l=window.devicePixelRatio||1,_=o.clientWidth*l,R=o.clientHeight*l;(o.width!==_||o.height!==R)&&(o.width=_,o.height=R)},U=performance.now()/1e3,g=()=>{b(),t.viewport(0,0,o.width,o.height),t.useProgram(c),t.uniform1f(y,performance.now()/1e3-U),t.uniform2f(w,o.width,o.height),t.uniform1f(S,r.current),t.activeTexture(t.TEXTURE0),t.bindTexture(t.TEXTURE_2D,T),t.uniform1i(A,0),t.enableVertexAttribArray(f),t.bindBuffer(t.ARRAY_BUFFER,v),t.vertexAttribPointer(f,2,t.FLOAT,!1,0,0),t.drawArrays(t.TRIANGLES,0,6),n.current=requestAnimationFrame(g)},x=l=>{l.preventDefault(),cancelAnimationFrame(n.current),o.style.opacity="0"};return o.addEventListener("webglcontextlost",x,!1),n.current=requestAnimationFrame(g),()=>{h=!0,cancelAnimationFrame(n.current),o.removeEventListener("webglcontextlost",x),t.deleteProgram(c),t.deleteShader(i),t.deleteShader(s),t.deleteBuffer(v),t.deleteTexture(T)}},[]),m.jsxs(C,{"aria-hidden":!0,children:[m.jsx(V,{style:{backgroundImage:`url(${P})`}}),m.jsx(X,{ref:a})]})}export{K as default};
97
+ `;function K({patternTiling:e=1.66}){const a=u.useRef(null),n=u.useRef(0),r=u.useRef(e);return r.current=e,u.useEffect(()=>{var E;const o=a.current;if(!o||(E=window.matchMedia)!=null&&E.call(window,"(prefers-reduced-motion: reduce)").matches)return;const t=o.getContext("webgl",{alpha:!1,antialias:!1});if(!t)return;const c=p(t,t.VERTEX_SHADER,D),s=p(t,t.FRAGMENT_SHADER,B);if(!c||!s){c&&t.deleteShader(c),s&&t.deleteShader(s);return}const i=F(t,c,s);if(!i){t.deleteShader(c),t.deleteShader(s);return}const f=t.getAttribLocation(i,"a_position"),y=t.getUniformLocation(i,"u_time"),w=t.getUniformLocation(i,"u_resolution"),A=t.getUniformLocation(i,"u_overlayTex"),S=t.getUniformLocation(i,"u_overlayTiling"),v=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,v),t.bufferData(t.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),t.STATIC_DRAW);let h=!1;const T=I(t,L,()=>h),b=()=>{const l=window.devicePixelRatio||1,_=o.clientWidth*l,R=o.clientHeight*l;(o.width!==_||o.height!==R)&&(o.width=_,o.height=R)},U=performance.now()/1e3,g=()=>{b(),t.viewport(0,0,o.width,o.height),t.useProgram(i),t.uniform1f(y,performance.now()/1e3-U),t.uniform2f(w,o.width,o.height),t.uniform1f(S,r.current),t.activeTexture(t.TEXTURE0),t.bindTexture(t.TEXTURE_2D,T),t.uniform1i(A,0),t.enableVertexAttribArray(f),t.bindBuffer(t.ARRAY_BUFFER,v),t.vertexAttribPointer(f,2,t.FLOAT,!1,0,0),t.drawArrays(t.TRIANGLES,0,6),n.current=requestAnimationFrame(g)},x=l=>{l.preventDefault(),cancelAnimationFrame(n.current),o.style.opacity="0"};return o.addEventListener("webglcontextlost",x,!1),n.current=requestAnimationFrame(g),()=>{h=!0,cancelAnimationFrame(n.current),o.removeEventListener("webglcontextlost",x),t.deleteProgram(i),t.deleteShader(c),t.deleteShader(s),t.deleteBuffer(v),t.deleteTexture(T)}},[]),m.jsxs(C,{"aria-hidden":!0,children:[m.jsx(V,{style:{backgroundImage:`url(${P})`}}),m.jsx(X,{ref:a})]})}export{K as default};
@@ -1,4 +1,4 @@
1
- import{r as u,b as We,j as e,u as Ye}from"./react-BYHuwl8r.js";import{u as et}from"./useUrlFilters-DH-gxdfV.js";import{u as tt,S as Le,R as nt,F as st,e as it}from"./categories-BwYVv5LN.js";import{c as O,r as ot,aK as at,aL as rt,aR as lt,a as ct,l as dt,ch as ht,ci as pt,s,t,v as Be,aA as ft,D as mt,L as ge,b as n,z as ut,I as S,A as P,cj as ie,ax as xt,Z as ne,aP as gt,aO as yt,y as Pe,an as He,q as Ue,w as bt,ac as wt,ap as Te,aq as V,aZ as Ct,bD as vt}from"./index-C9Tyc_4P.js";import{R as jt,S as $t,a as kt,D as St,b as Et,C as Lt,c as Tt,F as Rt,d as _t,e as Mt,M as Ft,u as At,g as Nt,v as It,E as zt,h as Wt,f as Bt,i as Pt,j as Ht}from"./Assets.styles-DG1h47nn.js";import{L as Ut}from"./LoadMore-DZz0apc4.js";import{u as Ot}from"./useInfiniteGrid-CVaXxfUk.js";import{E as Gt}from"./ErrorNotice-Dh0G_UH0.js";import{d as Dt}from"./dcl-schemas-CmtP3U6y.js";import{s as Zt,G as qt,w as Vt,S as Kt}from"./buy-gasless-QheWl_4u.js";import{s as Qt,j as Jt}from"./buy-BVwGfu-u.js";import{f as Xt}from"./errors-By1GnMe7.js";import{J as Yt,C as en,B as ye}from"./ethers-Zj6qlwhg.js";import{n as tn}from"./Tooltip-NVEtu7WR.js";import{G as nn}from"./grid.styles-DJWMt6vO.js";import"./skeleton.styles-BpJWZ8pG.js";import"./sentry-BwKB4Jgk.js";import"./intl-CBcMB1D2.js";import"./authorizations-rKqoPfba.js";import"./sendMetaTransaction-BgzHuwAc.js";function K(i){const a=i.source??"item",o=i.tradeId||`${i.contractAddress}-${i.tokenId??i.itemId??""}`;return`${a}:${o}`}const G="100000000000000000000",Oe=2,se=15,sn=/^[a-zA-Z0-9]+$/;function Re(i){const a=i.trim();return a.length===0?{ok:!1,reason:"empty"}:sn.test(a)?a.length<Oe?{ok:!1,reason:"too-short"}:a.length>se?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function on(i){return i.replace(/[^a-zA-Z0-9]/g,"").slice(0,se)}const an=["function available(string _subdomain) view returns (bool)"],_e={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function rn(){return O.chainId===Number(Dt.ChainId.MATIC_MAINNET)?_e.mainnet:_e.sepolia}async function ln(i,a={}){var m;const{rpc:o,address:h}=rn(),p=new Yt(o),x=new en(h,an,p);console.info(`[names] availability check → DCLRegistrar(${h}).available("${i}") on ${o}`);const l=await x.available(i);if((m=a.signal)!=null&&m.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${i}" available=${l}`),l?"available":"taken"}const cn="https://app.across.to/api";class Ce extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}class be extends Error{constructor(){super("The name could not be registered on Ethereum; your funds were recovered."),this.name="NameNotRegisteredError"}}class we extends Error{constructor(){super("We couldn't confirm whether the purchase went through."),this.name="NameSettlementUnknownError"}}function dn(i){return lt(G,i)}async function hn(i,a,o={}){var m;const h=o.chainId??O.chainId,p=o.provider??"across",x=`${O.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(a)}&chainId=${h}&provider=${p}`,l=await ct(x,{method:"GET",identity:i,metadata:{}});if(!l.ok){let c;try{c=(m=await l.json())==null?void 0:m.code}catch{}throw c==="ROUTE_COST_TOO_HIGH"?new Ce:new Error(`fetchNameCreditRoute ${l.status}`)}return l.json()}function pn(i,a){const o=ye.from(i.availableAmount),p=ye.from(G).sub(o);return{credits:[{value:i.amount,expiresAt:Number(i.expiresAt),salt:Jt(i.id)}],creditsSignatures:[i.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:p.isNegative()?"0":p.toString(),maxCreditedValue:G}}async function fn(i,a={}){const o=cn,h=a.intervalMs??1e4,p=a.maxAttempts??60;let x={status:"pending",destinationTxHash:null,actionsSucceeded:null};for(let l=0;l<p;l++){try{const m=await fetch(`${o}/deposit/status?originChainId=137&depositTxHash=${i}`);if(m.ok){const c=await m.json(),d=(c.status??"pending").toLowerCase(),w=c.fillTx??c.fillTxnRef??null,y=typeof c.actionsSucceeded=="boolean"?c.actionsSucceeded:null;if(d==="filled")return{status:"filled",destinationTxHash:w,actionsSucceeded:y};if(d==="refunded"||d==="expired")return{status:d,destinationTxHash:null,actionsSucceeded:!1};x={status:"pending",destinationTxHash:w,actionsSucceeded:y}}}catch{}l<p-1&&await new Promise(m=>setTimeout(m,h))}return x}async function mn(i){const{name:a,identity:o,signer:h}=i,p=i.chainId??O.chainId,x=i.provider??"across",l=(i.beneficiary??await h.getAddress()).toLowerCase();let m=null,c="unconfirmed";console.info("[names] register start",{name:a,buyer:l,chainId:p,provider:x});try{const d=await ot(p),w=dn(d);console.info("[names] step 1/6 sized reservation",{usdCents:w,manaRate:d});const y=await hn(o,a,{chainId:p,provider:x});console.info("[names] step 2/6 route fetched",{target:y.externalCall.target,selector:y.externalCall.selector,provider:y.provider,quoteId:y.quoteId});const j=await at(o,w);if(m=j.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:j.credit.id,maxCreditedValue:j.maxCreditedValue}),ye.from(j.maxCreditedValue).lt(G))throw new Error("Credit under-sized for the name price");const v=pn(j.credit,y);let g;try{g=await Zt({chainId:p,buyer:l,signer:h,args:v})}catch(b){if(!(b instanceof qt))throw b;if(b.reason==="relayer-unreachable"){c="unobservable";const $=new we;throw $.cause=b,$}g=await Qt(p,v,h)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:g}),await Vt(g),c="confirmed",console.info("[names] step 5/6 origin tx confirmed",{originTxHash:g}),x==="across"){const b=await fn(g,i.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 be;return{status:"registered",originTxHash:g,destinationTxHash:b.destinationTxHash}}return{status:"pending",originTxHash:g}}catch(d){if(console.error("[names] register failed — raw error:",d,{name:a,buyer:l,originState:c}),d instanceof Kt)return{status:"pending",originTxHash:d.txHash};if(m&&c==="unconfirmed"&&await rt(o,[m]).catch(()=>{}),d instanceof Ce||d instanceof be||d instanceof we)throw d;const w=new Error(Xt(d,"Couldn't register the name. Please try again.",{sale:!0}));throw w.cause=d,w}}function un(){const{data:i}=dt({queryKey:["feature-flag","shop-names"],queryFn:()=>ht(pt.SHOP_NAMES),staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return i===!0}const xn=60,gn=700,yn=25;function bn(i){if(!i)return[];const a=[];for(let o=1;o<=i.length;o++)a.push({text:i.slice(0,o),delay:xn});a[a.length-1]={text:i,delay:gn};for(let o=i.length-1;o>=1;o--)a.push({text:i.slice(0,o),delay:yn});return a}function wn(i){return i.flatMap(bn)}function Cn(i,a){const o=u.useMemo(()=>wn(i),[i]),[h,p]=u.useState(0);return u.useEffect(()=>{if(!a||o.length===0)return;const x=setTimeout(()=>p(l=>(l+1)%o.length),o[h%o.length].delay);return()=>clearTimeout(x)},[h,a,o]),!a||o.length===0?"":o[h%o.length].text}const vn="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='46.999'%20height='46.999'%20viewBox='0%200%2046.999%2046.999'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Vector'%3e%3cpath%20d='M23.5861%2046.999C27.4441%2046.999%2031.1266%2046.1286%2034.3708%2044.475H12.8014C16.0456%2046.1286%2019.6405%2046.999%2023.5861%2046.999Z'%20fill='%23FCFCFC'%20fill-opacity='0.6'/%3e%3cpath%20d='M8.76807%2041.9509H38.1411C39.1056%2041.1676%2040.1577%2040.2102%2040.7715%2039.514H6.13765C7.01445%2040.3843%207.89126%2041.2547%208.76807%2041.9509Z'%20fill='%23FCFCFC'%20fill-opacity='0.6'/%3e%3cpath%20d='M25.0767%2034.0307H2.2797C2.80578%2035.0752%203.41955%2036.0326%204.03331%2036.9899H22.5339L25.0767%2034.0307Z'%20fill='%23FCFCFC'%20fill-opacity='0.6'/%3e%3cpath%20d='M23.5861%200C10.6094%200%200%2010.4442%200%2023.4125C0%2026.2846%200.526084%2029.0697%201.49057%2031.5938L10.6094%2020.7144L15.8702%2014.3608L28.6716%2029.679L32.3542%2025.2402L41.999%2036.7288H42.7882C45.5063%2032.8993%2046.9968%2028.2864%2046.9968%2023.3254C47.1722%2010.4442%2036.5628%200%2023.5861%200ZM15.7825%2012.272C13.9412%2012.272%2012.5383%2010.7924%2012.5383%209.05166C12.5383%207.31095%2014.0289%205.83136%2015.7825%205.83136C17.6238%205.83136%2019.0267%207.31095%2019.0267%209.05166C19.0267%2010.7924%2017.6238%2012.272%2015.7825%2012.272ZM32.8803%2022.8032C29.2853%2022.8032%2026.3919%2019.931%2026.3919%2016.3626C26.3919%2012.7942%2029.2853%209.92201%2032.8803%209.92201C36.4752%209.92201%2039.3686%2012.7942%2039.3686%2016.3626C39.4563%2019.931%2036.4752%2022.8032%2032.8803%2022.8032Z'%20fill='%23FCFCFC'%20fill-opacity='0.6'/%3e%3cpath%20d='M16.484%2018.7126V31.6808H27.2687L16.484%2018.7126Z'%20fill='%23FCFCFC'%20fill-opacity='0.6'/%3e%3cpath%20d='M33.1433%2037.164H39.2809L33.1433%2029.766V37.164Z'%20fill='%23FCFCFC'%20fill-opacity='0.6'/%3e%3c/g%3e%3c/svg%3e",jn="https://cdn.decentraland.org/@dcl/shop/1.4.2-31318792168.commit-63acc2c/_assets/name-verified-oGwQ3ntb.svg",$n="#34fee6",kn=s.div`
1
+ import{r as u,b as We,j as e,u as Ye}from"./react-BYHuwl8r.js";import{u as et}from"./useUrlFilters-DH-gxdfV.js";import{u as tt,S as Le,R as nt,F as st,e as it}from"./categories-DpAor7GL.js";import{c as O,r as ot,aK as at,aL as rt,aR as lt,a as ct,l as dt,ch as ht,ci as pt,s,t,v as Be,aA as ft,D as mt,L as ge,b as n,z as ut,I as S,A as P,cj as ie,ax as xt,Z as ne,aP as gt,aO as yt,y as Pe,an as He,q as Ue,w as bt,ac as wt,ap as Te,aq as V,aZ as Ct,bD as vt}from"./index-DQv9RCQq.js";import{R as jt,S as $t,a as kt,D as St,b as Et,C as Lt,c as Tt,F as Rt,d as _t,e as Mt,M as Ft,u as At,g as Nt,v as It,E as zt,h as Wt,f as Bt,i as Pt,j as Ht}from"./Assets.styles-CttJZDai.js";import{L as Ut}from"./LoadMore-C2i1PhLK.js";import{u as Ot}from"./useInfiniteGrid-_fAjW7XJ.js";import{E as Gt}from"./ErrorNotice-Cj_6GjVe.js";import{d as Dt}from"./dcl-schemas-CmtP3U6y.js";import{s as Zt,G as qt,w as Vt,S as Kt}from"./buy-gasless-B5osCtXy.js";import{s as Qt,j as Jt}from"./buy-DmWa92vh.js";import{f as Xt}from"./errors-CzM6yGIv.js";import{J as Yt,C as en,B as ye}from"./ethers-BNVA8Ulg.js";import{n as tn}from"./Tooltip-y1IDtVA-.js";import{G as nn}from"./grid.styles-B7zcogve.js";import"./skeleton.styles-BVKbiyma.js";import"./sentry-CrmSoDwt.js";import"./intl-CBcMB1D2.js";import"./authorizations-BaNXoIur.js";import"./sendMetaTransaction-DnAgmSFb.js";function K(i){const a=i.source??"item",o=i.tradeId||`${i.contractAddress}-${i.tokenId??i.itemId??""}`;return`${a}:${o}`}const G="100000000000000000000",Oe=2,se=15,sn=/^[a-zA-Z0-9]+$/;function Re(i){const a=i.trim();return a.length===0?{ok:!1,reason:"empty"}:sn.test(a)?a.length<Oe?{ok:!1,reason:"too-short"}:a.length>se?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function on(i){return i.replace(/[^a-zA-Z0-9]/g,"").slice(0,se)}const an=["function available(string _subdomain) view returns (bool)"],_e={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function rn(){return O.chainId===Number(Dt.ChainId.MATIC_MAINNET)?_e.mainnet:_e.sepolia}async function ln(i,a={}){var m;const{rpc:o,address:h}=rn(),p=new Yt(o),x=new en(h,an,p);console.info(`[names] availability check → DCLRegistrar(${h}).available("${i}") on ${o}`);const l=await x.available(i);if((m=a.signal)!=null&&m.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${i}" available=${l}`),l?"available":"taken"}const cn="https://app.across.to/api";class Ce extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}class be extends Error{constructor(){super("The name could not be registered on Ethereum; your funds were recovered."),this.name="NameNotRegisteredError"}}class we extends Error{constructor(){super("We couldn't confirm whether the purchase went through."),this.name="NameSettlementUnknownError"}}function dn(i){return lt(G,i)}async function hn(i,a,o={}){var m;const h=o.chainId??O.chainId,p=o.provider??"across",x=`${O.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(a)}&chainId=${h}&provider=${p}`,l=await ct(x,{method:"GET",identity:i,metadata:{}});if(!l.ok){let c;try{c=(m=await l.json())==null?void 0:m.code}catch{}throw c==="ROUTE_COST_TOO_HIGH"?new Ce:new Error(`fetchNameCreditRoute ${l.status}`)}return l.json()}function pn(i,a){const o=ye.from(i.availableAmount),p=ye.from(G).sub(o);return{credits:[{value:i.amount,expiresAt:Number(i.expiresAt),salt:Jt(i.id)}],creditsSignatures:[i.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:p.isNegative()?"0":p.toString(),maxCreditedValue:G}}async function fn(i,a={}){const o=cn,h=a.intervalMs??1e4,p=a.maxAttempts??60;let x={status:"pending",destinationTxHash:null,actionsSucceeded:null};for(let l=0;l<p;l++){try{const m=await fetch(`${o}/deposit/status?originChainId=137&depositTxHash=${i}`);if(m.ok){const c=await m.json(),d=(c.status??"pending").toLowerCase(),w=c.fillTx??c.fillTxnRef??null,y=typeof c.actionsSucceeded=="boolean"?c.actionsSucceeded:null;if(d==="filled")return{status:"filled",destinationTxHash:w,actionsSucceeded:y};if(d==="refunded"||d==="expired")return{status:d,destinationTxHash:null,actionsSucceeded:!1};x={status:"pending",destinationTxHash:w,actionsSucceeded:y}}}catch{}l<p-1&&await new Promise(m=>setTimeout(m,h))}return x}async function mn(i){const{name:a,identity:o,signer:h}=i,p=i.chainId??O.chainId,x=i.provider??"across",l=(i.beneficiary??await h.getAddress()).toLowerCase();let m=null,c="unconfirmed";console.info("[names] register start",{name:a,buyer:l,chainId:p,provider:x});try{const d=await ot(p),w=dn(d);console.info("[names] step 1/6 sized reservation",{usdCents:w,manaRate:d});const y=await hn(o,a,{chainId:p,provider:x});console.info("[names] step 2/6 route fetched",{target:y.externalCall.target,selector:y.externalCall.selector,provider:y.provider,quoteId:y.quoteId});const j=await at(o,w);if(m=j.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:j.credit.id,maxCreditedValue:j.maxCreditedValue}),ye.from(j.maxCreditedValue).lt(G))throw new Error("Credit under-sized for the name price");const v=pn(j.credit,y);let g;try{g=await Zt({chainId:p,buyer:l,signer:h,args:v})}catch(b){if(!(b instanceof qt))throw b;if(b.reason==="relayer-unreachable"){c="unobservable";const $=new we;throw $.cause=b,$}g=await Qt(p,v,h)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:g}),await Vt(g),c="confirmed",console.info("[names] step 5/6 origin tx confirmed",{originTxHash:g}),x==="across"){const b=await fn(g,i.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 be;return{status:"registered",originTxHash:g,destinationTxHash:b.destinationTxHash}}return{status:"pending",originTxHash:g}}catch(d){if(console.error("[names] register failed — raw error:",d,{name:a,buyer:l,originState:c}),d instanceof Kt)return{status:"pending",originTxHash:d.txHash};if(m&&c==="unconfirmed"&&await rt(o,[m]).catch(()=>{}),d instanceof Ce||d instanceof be||d instanceof we)throw d;const w=new Error(Xt(d,"Couldn't register the name. Please try again.",{sale:!0}));throw w.cause=d,w}}function un(){const{data:i}=dt({queryKey:["feature-flag","shop-names"],queryFn:()=>ht(pt.SHOP_NAMES),staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return i===!0}const xn=60,gn=700,yn=25;function bn(i){if(!i)return[];const a=[];for(let o=1;o<=i.length;o++)a.push({text:i.slice(0,o),delay:xn});a[a.length-1]={text:i,delay:gn};for(let o=i.length-1;o>=1;o--)a.push({text:i.slice(0,o),delay:yn});return a}function wn(i){return i.flatMap(bn)}function Cn(i,a){const o=u.useMemo(()=>wn(i),[i]),[h,p]=u.useState(0);return u.useEffect(()=>{if(!a||o.length===0)return;const x=setTimeout(()=>p(l=>(l+1)%o.length),o[h%o.length].delay);return()=>clearTimeout(x)},[h,a,o]),!a||o.length===0?"":o[h%o.length].text}const vn="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='46.999'%20height='46.999'%20viewBox='0%200%2046.999%2046.999'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Vector'%3e%3cpath%20d='M23.5861%2046.999C27.4441%2046.999%2031.1266%2046.1286%2034.3708%2044.475H12.8014C16.0456%2046.1286%2019.6405%2046.999%2023.5861%2046.999Z'%20fill='%23FCFCFC'%20fill-opacity='0.6'/%3e%3cpath%20d='M8.76807%2041.9509H38.1411C39.1056%2041.1676%2040.1577%2040.2102%2040.7715%2039.514H6.13765C7.01445%2040.3843%207.89126%2041.2547%208.76807%2041.9509Z'%20fill='%23FCFCFC'%20fill-opacity='0.6'/%3e%3cpath%20d='M25.0767%2034.0307H2.2797C2.80578%2035.0752%203.41955%2036.0326%204.03331%2036.9899H22.5339L25.0767%2034.0307Z'%20fill='%23FCFCFC'%20fill-opacity='0.6'/%3e%3cpath%20d='M23.5861%200C10.6094%200%200%2010.4442%200%2023.4125C0%2026.2846%200.526084%2029.0697%201.49057%2031.5938L10.6094%2020.7144L15.8702%2014.3608L28.6716%2029.679L32.3542%2025.2402L41.999%2036.7288H42.7882C45.5063%2032.8993%2046.9968%2028.2864%2046.9968%2023.3254C47.1722%2010.4442%2036.5628%200%2023.5861%200ZM15.7825%2012.272C13.9412%2012.272%2012.5383%2010.7924%2012.5383%209.05166C12.5383%207.31095%2014.0289%205.83136%2015.7825%205.83136C17.6238%205.83136%2019.0267%207.31095%2019.0267%209.05166C19.0267%2010.7924%2017.6238%2012.272%2015.7825%2012.272ZM32.8803%2022.8032C29.2853%2022.8032%2026.3919%2019.931%2026.3919%2016.3626C26.3919%2012.7942%2029.2853%209.92201%2032.8803%209.92201C36.4752%209.92201%2039.3686%2012.7942%2039.3686%2016.3626C39.4563%2019.931%2036.4752%2022.8032%2032.8803%2022.8032Z'%20fill='%23FCFCFC'%20fill-opacity='0.6'/%3e%3cpath%20d='M16.484%2018.7126V31.6808H27.2687L16.484%2018.7126Z'%20fill='%23FCFCFC'%20fill-opacity='0.6'/%3e%3cpath%20d='M33.1433%2037.164H39.2809L33.1433%2029.766V37.164Z'%20fill='%23FCFCFC'%20fill-opacity='0.6'/%3e%3c/g%3e%3c/svg%3e",jn="https://cdn.decentraland.org/@dcl/shop/1.4.2-31320232662.commit-67c8edd/_assets/name-verified-oGwQ3ntb.svg",$n="#34fee6",kn=s.div`
2
2
  position: fixed;
3
3
  inset: 0;
4
4
  z-index: 10000;
@@ -432,7 +432,7 @@ import{r as u,b as We,j as e,u as Ye}from"./react-BYHuwl8r.js";import{u as et}fr
432
432
  color: ${t.colors.accent};
433
433
  }
434
434
  }
435
- `;function Vn({name:i,priceCredits:a,onClose:o}){const{session:h}=Be(),{data:p,isError:x}=ft(h),l=mt(),m=We(),[c,d]=u.useState("confirm"),[w,y]=u.useState(""),[j,v]=u.useState(null),[g,b]=u.useState(!1),$=u.useRef(!1),_=w.trim().toLowerCase()===i.toLowerCase(),T=c==="completing",k=a!=null?ge(a):"—",F=a==null,N=p==null?void 0:p.credits,z=a!=null&&N!=null?a-N:0,M=z>0,I=F?n("names.priceUnavailable"):M?n("names.insufficientCredits",{credits:ge(z)}):null;u.useEffect(()=>{const f=L=>{L.key==="Escape"&&!T&&o()};document.addEventListener("keydown",f);const C=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",f),document.body.style.overflow=C}},[T,o]);async function R(){if(!(!h||!_||F||M||$.current)){$.current=!0,d("completing"),v(null);try{const f=await mn({name:i,identity:h.identity,signer:h.signer});ne("Shop Completed Purchase",{purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:a??null,settlement:f.status}),l.invalidateQueries({queryKey:["usd-balance"]}),l.invalidateQueries({queryKey:["my-assets"]}),d(f.status==="registered"?"success":"pending")}catch(f){ne(yt(f)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:gt(f),purchase_type:"name"});const C=f instanceof be,L=f instanceof we;v(f instanceof Ce?n("names.errorRouteCost"):C?n("names.errorNotRegistered"):L?n("names.errorSettlementUnknown"):(f==null?void 0:f.message)||n("names.errorGeneric")),b(C||L),d("error")}finally{$.current=!1}}}const H=c!=="success"&&c!=="pending",E=ut(h==null?void 0:h.providerType);return e.jsx(kn,{onClick:T?void 0:o,role:"presentation",children:e.jsxs(Sn,{role:"dialog","aria-modal":"true","aria-label":n("names.buyTitle"),onClick:f=>f.stopPropagation(),children:[H&&e.jsxs(e.Fragment,{children:[e.jsxs(oe,{children:[e.jsx(ae,{children:c==="error"?n("names.errorTitle"):n("names.buyTitle")}),e.jsx(re,{onClick:o,disabled:T,"aria-label":n("buyModal.close"),children:e.jsx(S,{name:"close"})})]}),e.jsxs(le,{children:[n("names.myCreditsBalance")," ",e.jsx(P,{})," ",ie(p,x)]}),e.jsx(ce,{})]}),(c==="confirm"||c==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs(de,{children:[e.jsx(Me,{"aria-hidden":!0,children:"@"}),e.jsxs(he,{children:[e.jsxs(pe,{children:[i,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(fe,{children:n("names.subtitle")})]}),e.jsxs(me,{children:[e.jsx(P,{}),k]})]}),c==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(xe,{children:[e.jsx(S,{name:"info","aria-hidden":!0}),e.jsx("span",{children:j})]}),g?e.jsx(ue,{onClick:o,children:n("names.errorSpentDismiss")}):e.jsx(ue,{onClick:()=>d("confirm"),children:n("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(_n,{children:[e.jsx(Mn,{children:n("names.confirmTitle")}),e.jsx(Fn,{dangerouslySetInnerHTML:{__html:n("names.confirmBody",{name:`<b>@${Kn(i)}</b>`})}}),e.jsxs(An,{children:[e.jsx(Nn,{"aria-hidden":!0,children:"@"}),e.jsx(In,{value:w,onChange:f=>y(f.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":n("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(w.length,8)}ch`}}),e.jsx(zn,{children:".dcl.eth"})]})]}),I?e.jsxs(xe,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(S,{name:"info","aria-hidden":!0}),e.jsx("span",{children:I})]}):null,e.jsx(ue,{onClick:()=>void R(),disabled:!_||!h||F||M,children:n("names.buyCta")})]})]}),c==="completing"&&e.jsxs(Wn,{children:[e.jsx(Bn,{src:xt,alt:"",width:56,height:56}),e.jsx(Pn,{children:E?n("names.confirming"):n("names.completing")}),e.jsxs(Hn,{children:[e.jsx(Un,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(On,{children:"1/1"})]})]}),c==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs(oe,{children:[e.jsx(ae,{children:n("names.pendingHeaderTitle")}),e.jsx(re,{onClick:o,"aria-label":n("buyModal.close"),children:e.jsx(S,{name:"close"})})]}),e.jsxs(le,{children:[n("names.myCreditsBalance")," ",e.jsx(P,{})," ",ie(p,x)]}),e.jsx(ce,{}),e.jsxs(xe,{"data-tone":"info",children:[e.jsx(S,{name:"info","aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("b",{children:n("names.pendingBannerBold")})," ",n("names.pendingBannerRest")]})]}),e.jsxs(de,{style:{marginTop:20},children:[e.jsx(Me,{"aria-hidden":!0,children:"@"}),e.jsxs(he,{children:[e.jsxs(pe,{children:[i,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(fe,{children:n("names.subtitle")})]}),e.jsxs(me,{children:[e.jsx(P,{}),k]})]}),e.jsx(Fe,{children:e.jsx(Ae,{onClick:()=>{o(),m("/my-items")},children:n("names.myItems")})})]}),c==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(oe,{children:[e.jsx(ae,{children:n("names.successHeaderTitle")}),e.jsx(re,{onClick:o,"aria-label":n("buyModal.close"),children:e.jsx(S,{name:"close"})})]}),e.jsxs(le,{children:[n("names.myCreditsBalance")," ",e.jsx(P,{})," ",ie(p,x)]}),e.jsx(ce,{}),e.jsxs(Gn,{children:[e.jsx(Dn,{"aria-hidden":!0,children:e.jsx(S,{name:"check"})}),e.jsxs(Zn,{children:[e.jsx("b",{children:n("names.successBannerBold")})," ",n("names.successBannerRest")]})]}),e.jsxs(de,{style:{marginTop:20},children:[e.jsxs(En,{"data-testid":"name-success-tile",children:[e.jsx(Ln,{src:vn,alt:"","aria-hidden":!0,width:47,height:47}),e.jsxs(Tn,{children:[e.jsx("span",{"aria-hidden":!0,children:i}),e.jsx(Rn,{src:jn,alt:"","aria-hidden":!0,width:14,height:14})]})]}),e.jsxs(he,{children:[e.jsxs(pe,{children:[i,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(fe,{children:n("names.subtitle")})]}),e.jsxs(me,{children:[e.jsx(P,{}),k]})]}),e.jsxs(Fe,{children:[e.jsx(Ae,{onClick:()=>{o(),m("/my-items")},children:n("names.myItems")}),e.jsx(qn,{href:O.profileUrl,target:"_blank",rel:"noopener noreferrer",children:n("names.assignToAvatar")})]})]})]})})}function Kn(i){return i.replace(/[&<>"']/g,a=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[a])}const Qn="https://cdn.decentraland.org/@dcl/shop/1.4.2-31318792168.commit-63acc2c/_assets/identity-icon-C8yAW_Gq.svg",Jn="https://cdn.decentraland.org/@dcl/shop/1.4.2-31318792168.commit-63acc2c/_assets/world-icon-6xQ-PmmW.svg",Xn="https://cdn.decentraland.org/@dcl/shop/1.4.2-31318792168.commit-63acc2c/_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=s.div`
435
+ `;function Vn({name:i,priceCredits:a,onClose:o}){const{session:h}=Be(),{data:p,isError:x}=ft(h),l=mt(),m=We(),[c,d]=u.useState("confirm"),[w,y]=u.useState(""),[j,v]=u.useState(null),[g,b]=u.useState(!1),$=u.useRef(!1),_=w.trim().toLowerCase()===i.toLowerCase(),T=c==="completing",k=a!=null?ge(a):"—",F=a==null,N=p==null?void 0:p.credits,z=a!=null&&N!=null?a-N:0,M=z>0,I=F?n("names.priceUnavailable"):M?n("names.insufficientCredits",{credits:ge(z)}):null;u.useEffect(()=>{const f=L=>{L.key==="Escape"&&!T&&o()};document.addEventListener("keydown",f);const C=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",f),document.body.style.overflow=C}},[T,o]);async function R(){if(!(!h||!_||F||M||$.current)){$.current=!0,d("completing"),v(null);try{const f=await mn({name:i,identity:h.identity,signer:h.signer});ne("Shop Completed Purchase",{purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:a??null,settlement:f.status}),l.invalidateQueries({queryKey:["usd-balance"]}),l.invalidateQueries({queryKey:["my-assets"]}),d(f.status==="registered"?"success":"pending")}catch(f){ne(yt(f)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:gt(f),purchase_type:"name"});const C=f instanceof be,L=f instanceof we;v(f instanceof Ce?n("names.errorRouteCost"):C?n("names.errorNotRegistered"):L?n("names.errorSettlementUnknown"):(f==null?void 0:f.message)||n("names.errorGeneric")),b(C||L),d("error")}finally{$.current=!1}}}const H=c!=="success"&&c!=="pending",E=ut(h==null?void 0:h.providerType);return e.jsx(kn,{onClick:T?void 0:o,role:"presentation",children:e.jsxs(Sn,{role:"dialog","aria-modal":"true","aria-label":n("names.buyTitle"),onClick:f=>f.stopPropagation(),children:[H&&e.jsxs(e.Fragment,{children:[e.jsxs(oe,{children:[e.jsx(ae,{children:c==="error"?n("names.errorTitle"):n("names.buyTitle")}),e.jsx(re,{onClick:o,disabled:T,"aria-label":n("buyModal.close"),children:e.jsx(S,{name:"close"})})]}),e.jsxs(le,{children:[n("names.myCreditsBalance")," ",e.jsx(P,{})," ",ie(p,x)]}),e.jsx(ce,{})]}),(c==="confirm"||c==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs(de,{children:[e.jsx(Me,{"aria-hidden":!0,children:"@"}),e.jsxs(he,{children:[e.jsxs(pe,{children:[i,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(fe,{children:n("names.subtitle")})]}),e.jsxs(me,{children:[e.jsx(P,{}),k]})]}),c==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(xe,{children:[e.jsx(S,{name:"info","aria-hidden":!0}),e.jsx("span",{children:j})]}),g?e.jsx(ue,{onClick:o,children:n("names.errorSpentDismiss")}):e.jsx(ue,{onClick:()=>d("confirm"),children:n("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(_n,{children:[e.jsx(Mn,{children:n("names.confirmTitle")}),e.jsx(Fn,{dangerouslySetInnerHTML:{__html:n("names.confirmBody",{name:`<b>@${Kn(i)}</b>`})}}),e.jsxs(An,{children:[e.jsx(Nn,{"aria-hidden":!0,children:"@"}),e.jsx(In,{value:w,onChange:f=>y(f.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":n("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(w.length,8)}ch`}}),e.jsx(zn,{children:".dcl.eth"})]})]}),I?e.jsxs(xe,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(S,{name:"info","aria-hidden":!0}),e.jsx("span",{children:I})]}):null,e.jsx(ue,{onClick:()=>void R(),disabled:!_||!h||F||M,children:n("names.buyCta")})]})]}),c==="completing"&&e.jsxs(Wn,{children:[e.jsx(Bn,{src:xt,alt:"",width:56,height:56}),e.jsx(Pn,{children:E?n("names.confirming"):n("names.completing")}),e.jsxs(Hn,{children:[e.jsx(Un,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(On,{children:"1/1"})]})]}),c==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs(oe,{children:[e.jsx(ae,{children:n("names.pendingHeaderTitle")}),e.jsx(re,{onClick:o,"aria-label":n("buyModal.close"),children:e.jsx(S,{name:"close"})})]}),e.jsxs(le,{children:[n("names.myCreditsBalance")," ",e.jsx(P,{})," ",ie(p,x)]}),e.jsx(ce,{}),e.jsxs(xe,{"data-tone":"info",children:[e.jsx(S,{name:"info","aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("b",{children:n("names.pendingBannerBold")})," ",n("names.pendingBannerRest")]})]}),e.jsxs(de,{style:{marginTop:20},children:[e.jsx(Me,{"aria-hidden":!0,children:"@"}),e.jsxs(he,{children:[e.jsxs(pe,{children:[i,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(fe,{children:n("names.subtitle")})]}),e.jsxs(me,{children:[e.jsx(P,{}),k]})]}),e.jsx(Fe,{children:e.jsx(Ae,{onClick:()=>{o(),m("/my-items")},children:n("names.myItems")})})]}),c==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(oe,{children:[e.jsx(ae,{children:n("names.successHeaderTitle")}),e.jsx(re,{onClick:o,"aria-label":n("buyModal.close"),children:e.jsx(S,{name:"close"})})]}),e.jsxs(le,{children:[n("names.myCreditsBalance")," ",e.jsx(P,{})," ",ie(p,x)]}),e.jsx(ce,{}),e.jsxs(Gn,{children:[e.jsx(Dn,{"aria-hidden":!0,children:e.jsx(S,{name:"check"})}),e.jsxs(Zn,{children:[e.jsx("b",{children:n("names.successBannerBold")})," ",n("names.successBannerRest")]})]}),e.jsxs(de,{style:{marginTop:20},children:[e.jsxs(En,{"data-testid":"name-success-tile",children:[e.jsx(Ln,{src:vn,alt:"","aria-hidden":!0,width:47,height:47}),e.jsxs(Tn,{children:[e.jsx("span",{"aria-hidden":!0,children:i}),e.jsx(Rn,{src:jn,alt:"","aria-hidden":!0,width:14,height:14})]})]}),e.jsxs(he,{children:[e.jsxs(pe,{children:[i,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(fe,{children:n("names.subtitle")})]}),e.jsxs(me,{children:[e.jsx(P,{}),k]})]}),e.jsxs(Fe,{children:[e.jsx(Ae,{onClick:()=>{o(),m("/my-items")},children:n("names.myItems")}),e.jsx(qn,{href:O.profileUrl,target:"_blank",rel:"noopener noreferrer",children:n("names.assignToAvatar")})]})]})]})})}function Kn(i){return i.replace(/[&<>"']/g,a=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[a])}const Qn="https://cdn.decentraland.org/@dcl/shop/1.4.2-31320232662.commit-67c8edd/_assets/identity-icon-C8yAW_Gq.svg",Jn="https://cdn.decentraland.org/@dcl/shop/1.4.2-31320232662.commit-67c8edd/_assets/world-icon-6xQ-PmmW.svg",Xn="https://cdn.decentraland.org/@dcl/shop/1.4.2-31320232662.commit-67c8edd/_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=s.div`
436
436
  width: 100%;
437
437
  min-width: 0;
438
438
  `,ts=s.nav`
@@ -1,4 +1,4 @@
1
- import{r as b,j as o}from"./react-BYHuwl8r.js";import{C as oe,R as B,a as je,b as We}from"./categories-BwYVv5LN.js";import{n as c,T as Re}from"./Tooltip-NVEtu7WR.js";import{s as t,t as e,I as T,b as a,ac as K,C as U}from"./index-C9Tyc_4P.js";const f=1e5,y=900,g=90,R=g*2,ie=y/g,ne=f-y,Y=100;function G(i){const s=Math.max(0,Math.min(Math.round(i),R));if(s<=g)return s*ie;const p=y+(s-g)/g*ne;return Math.round(p/Y)*Y}function M(i){const s=Math.max(0,Math.min(i,f));return s<=y?Math.round(s/ie):g+Math.round((s-y)/ne*g)}function q(i){return M(i)/R*100}const Te=t.div`
1
+ import{r as b,j as o}from"./react-BYHuwl8r.js";import{C as oe,R as B,a as je,b as We}from"./categories-DpAor7GL.js";import{n as c,T as Re}from"./Tooltip-y1IDtVA-.js";import{s as t,t as e,I as T,b as a,ac as K,C as U}from"./index-DQv9RCQq.js";const f=1e5,y=900,g=90,R=g*2,ie=y/g,ne=f-y,Y=100;function G(i){const s=Math.max(0,Math.min(Math.round(i),R));if(s<=g)return s*ie;const p=y+(s-g)/g*ne;return Math.round(p/Y)*Y}function M(i){const s=Math.max(0,Math.min(i,f));return s<=y?Math.round(s/ie):g+Math.round((s-y)/ne*g)}function q(i){return M(i)/R*100}const Te=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 12px;
@@ -1,4 +1,4 @@
1
- import{j as i,L as _,r as F}from"./react-BYHuwl8r.js";import{t as o,s as n,B as G,x as N,y as P,b as e,v as B,z as O,I as z,A as K,l as w,D as H,c as Q,E as X,F as A,k as Z,G as J,H as E}from"./index-C9Tyc_4P.js";import{c as U,d as V,b as Y,e as tt,s as it,a as et}from"./authorizations-rKqoPfba.js";import{f as ot}from"./builder-BjxL6GAx.js";import{m as at}from"./mana-matic-C4e1sNO3.js";import{f as nt}from"./errors-By1GnMe7.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-BwKB4Jgk.js";import"./ethers-Zj6qlwhg.js";import"./intl-CBcMB1D2.js";import"./sendMetaTransaction-BgzHuwAc.js";const st=N`
1
+ import{j as i,L as _,r as F}from"./react-BYHuwl8r.js";import{t as o,s as n,B as G,x as N,y as P,b as e,v as B,z as O,I as z,A as K,l as w,D as H,c as Q,E as X,F as A,k as Z,G as J,H as E}from"./index-DQv9RCQq.js";import{c as U,d as V,b as Y,e as tt,s as it,a as et}from"./authorizations-BaNXoIur.js";import{f as ot}from"./builder-DM3aazAh.js";import{m as at}from"./mana-matic-C4e1sNO3.js";import{f as nt}from"./errors-CzM6yGIv.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-CrmSoDwt.js";import"./ethers-BNVA8Ulg.js";import"./intl-CBcMB1D2.js";import"./sendMetaTransaction-DnAgmSFb.js";const st=N`
2
2
  to { transform: rotate(360deg); }
3
3
  `,rt=N`
4
4
  to { background-position: -200% 0; }
@@ -1,4 +1,4 @@
1
- import{j as e,L as Ne,r as T,b as ra,a as oa}from"./react-BYHuwl8r.js";import{t as ue,s as i,b as a,L as le,C as Le,ax as ca,ay as Ee,az as la,J as da,I as O,A as zt,K as Qe,y as ua,X as H,am as ut,v as ha,w as pa,l as ga,aA as ma,D as xa,aB as fa,an as ya,aC as ba,aD as ht,aE as va,aF as wa,z as Ca,aG as pt,Z as D,aH as gt,aI as ja,k as se,r as ka,c as mt,aJ as $a,aK as xt,aL as Be,aM as Sa,aN as ye,aO as be,aP as ft,g as yt,f as bt,aQ as Ma}from"./index-C9Tyc_4P.js";import{M as Ta,S as Ia,C as Pa,H as Aa,a as za,T as Ea,X as Ba,b as Ra,B as qa,c as Fa,d as vt,e as _a,f as je,P as Et,g as Wa,h as La,i as Ka,j as Na,k as Ke,l as de,L as Qa,m as Ua,n as wt,o as Ct,W as Ga,p as Ha,q as Oa,r as Va,A as Da,s as Ja,t as Xa,u as Ya,v as Za,w as es,x as ts,y as as,z as ss,D as ns,E as is,F as rs,G as os,I as cs,J as ls,K as ds,N as us,O as Re,Q as hs,R as ps,U as gs,V as ms,Y as jt,Z as kt,_ as xs,$ as fs,a0 as ys,a1 as bs,a2 as $t,a3 as vs}from"./CollectionCarousel-BvghNLQG.js";import{f as ws,h as Cs,a as js,n as ks,i as $s,A as Ss}from"./authorizations-rKqoPfba.js";import{g as Ms,h as qe,p as Ts}from"./buy-BVwGfu-u.js";import{b as Is,w as Ps,S as St,G as As}from"./buy-gasless-QheWl_4u.js";import{u as zs,M as Es,R as ve,r as Bs,c as Rs,p as Mt,a as Fe}from"./useCreditPacks-BMtorUrc.js";import{i as qs,a as Fs}from"./errors-By1GnMe7.js";import{E as _s}from"./ErrorNotice-Dh0G_UH0.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-BwKB4Jgk.js";import"./ethers-Zj6qlwhg.js";import"./intl-CBcMB1D2.js";import"./sendMetaTransaction-BgzHuwAc.js";const{colors:ne,radius:Ws}=ue,Ls=i.div`
1
+ import{j as e,L as Ne,r as T,b as ra,a as oa}from"./react-BYHuwl8r.js";import{t as ue,s as i,b as a,L as le,C as Le,ax as ca,ay as Ee,az as la,J as da,I as O,A as zt,K as Qe,y as ua,X as H,am as ut,v as ha,w as pa,l as ga,aA as ma,D as xa,aB as fa,an as ya,aC as ba,aD as ht,aE as va,aF as wa,z as Ca,aG as pt,Z as D,aH as gt,aI as ja,k as se,r as ka,c as mt,aJ as $a,aK as xt,aL as Be,aM as Sa,aN as ye,aO as be,aP as ft,g as yt,f as bt,aQ as Ma}from"./index-DQv9RCQq.js";import{M as Ta,S as Ia,C as Pa,H as Aa,a as za,T as Ea,X as Ba,b as Ra,B as qa,c as Fa,d as vt,e as _a,f as je,P as Et,g as Wa,h as La,i as Ka,j as Na,k as Ke,l as de,L as Qa,m as Ua,n as wt,o as Ct,W as Ga,p as Ha,q as Oa,r as Va,A as Da,s as Ja,t as Xa,u as Ya,v as Za,w as es,x as ts,y as as,z as ss,D as ns,E as is,F as rs,G as os,I as cs,J as ls,K as ds,N as us,O as Re,Q as hs,R as ps,U as gs,V as ms,Y as jt,Z as kt,_ as xs,$ as fs,a0 as ys,a1 as bs,a2 as $t,a3 as vs}from"./CollectionCarousel-uNk2LGYe.js";import{f as ws,h as Cs,a as js,n as ks,i as $s,A as Ss}from"./authorizations-BaNXoIur.js";import{g as Ms,h as qe,p as Ts}from"./buy-DmWa92vh.js";import{b as Is,w as Ps,S as St,G as As}from"./buy-gasless-B5osCtXy.js";import{u as zs,M as Es,R as ve,r as Bs,c as Rs,p as Mt,a as Fe}from"./useCreditPacks-BUNkFxv2.js";import{i as qs,a as Fs}from"./errors-CzM6yGIv.js";import{E as _s}from"./ErrorNotice-Cj_6GjVe.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-CrmSoDwt.js";import"./ethers-BNVA8Ulg.js";import"./intl-CBcMB1D2.js";import"./sendMetaTransaction-DnAgmSFb.js";const{colors:ne,radius:Ws}=ue,Ls=i.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  justify-content: center;
@@ -1,4 +1,4 @@
1
- import{ai as N,aj as U,ak as o,al as n,K as D,x as M}from"./index-C9Tyc_4P.js";import{r as w,j as g}from"./react-BYHuwl8r.js";import{g as z,a as E,c as I,b as K}from"./clsx-WwvpwSg0.js";import{s as v}from"./styled-CVhCfwHn.js";function F(r){return z("MuiCircularProgress",r)}E("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const W=["className","color","disableShrink","size","style","thickness","value","variant"];let l=r=>r,P,b,S,$;const t=44,B=M(P||(P=l`
1
+ import{ai as N,aj as U,ak as o,al as n,K as D,x as M}from"./index-DQv9RCQq.js";import{r as w,j as g}from"./react-BYHuwl8r.js";import{g as z,a as E,c as I,b as K}from"./clsx-WwvpwSg0.js";import{s as v}from"./styled-BeKzrQgz.js";function F(r){return z("MuiCircularProgress",r)}E("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const W=["className","color","disableShrink","size","style","thickness","value","variant"];let l=r=>r,P,b,S,$;const t=44,B=M(P||(P=l`
2
2
  0% {
3
3
  transform: rotate(0deg);
4
4
  }
@@ -1,4 +1,4 @@
1
- import{j as e,r as h,d as J,b as X}from"./react-BYHuwl8r.js";import{t as b,s,a1 as ee,E as z,bu as te,bv as ae,I as oe,b as a,c as ie,k as re,l as se,y as ne,C as ce,ap as F,aq as le,bw as de,bx as pe}from"./index-C9Tyc_4P.js";import{E as xe}from"./ErrorNotice-Dh0G_UH0.js";import{d as me,P as he,C as ge,a as ue,b as be}from"./collectionPage.styles-DpjxCqdp.js";import{u as fe}from"./useStore-CX-1oAbc.js";import{u as ve,S as W,a as ye,F as je,c as Ce,P as we,d as $e,H as ke,e as Ne}from"./categories-BwYVv5LN.js";import{L as Se}from"./LoadMore-DZz0apc4.js";import{u as Pe}from"./useInfiniteGrid-CVaXxfUk.js";import{G as Ae}from"./grid.styles-DJWMt6vO.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-BwKB4Jgk.js";import"./ethers-Zj6qlwhg.js";import"./intl-CBcMB1D2.js";import"./skeleton.styles-BpJWZ8pG.js";const Me=s.section`
1
+ import{j as e,r as h,d as J,b as X}from"./react-BYHuwl8r.js";import{t as b,s,a1 as ee,E as z,bu as te,bv as ae,I as oe,b as a,c as ie,k as re,l as se,y as ne,C as ce,ap as F,aq as le,bw as de,bx as pe}from"./index-DQv9RCQq.js";import{E as xe}from"./ErrorNotice-Cj_6GjVe.js";import{d as me,P as he,C as ge,a as ue,b as be}from"./collectionPage.styles-CvHG8rEi.js";import{u as fe}from"./useStore-DWms-sYK.js";import{u as ve,S as W,a as ye,F as je,c as Ce,P as we,d as $e,H as ke,e as Ne}from"./categories-DpAor7GL.js";import{L as Se}from"./LoadMore-C2i1PhLK.js";import{u as Pe}from"./useInfiniteGrid-_fAjW7XJ.js";import{G as Ae}from"./grid.styles-B7zcogve.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-CrmSoDwt.js";import"./ethers-BNVA8Ulg.js";import"./intl-CBcMB1D2.js";import"./skeleton.styles-BVKbiyma.js";const Me=s.section`
2
2
  position: relative;
3
3
  border-radius: ${b.radius.card};
4
4
  overflow: hidden;