@dcl/shop 1.13.1-35095058100.commit-8d694c8 → 1.13.1-35110739985.commit-7718205

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 (239) hide show
  1. package/_assets/{Activity-CjNbjbB8.js → Activity-O6LT8hqU.js} +4 -4
  2. package/_assets/{AnimatedBackground-DsRNSmF9.js → AnimatedBackground-CB4PvfXA.js} +6 -6
  3. package/_assets/{Assets--xiu2hf1.js → Assets-Ctos_NmX.js} +3 -3
  4. package/_assets/{Authorizations-CAq4bDIU.js → Authorizations-DyW6TgVG.js} +2 -2
  5. package/_assets/{Cart-Dn-yuO7W.js → Cart-KBBb4RPC.js} +2 -2
  6. package/_assets/{Collection-DmkDiPC5.js → Collection-B763ift6.js} +2 -2
  7. package/_assets/{CollectionCarousel-C2aZMUS6.js → CollectionCarousel-DFNRTOFP.js} +3 -3
  8. package/_assets/{Confetti-CQ1miyT0.js → Confetti-B1XP6v1O.js} +4 -4
  9. package/_assets/{ConstantsUtil-DxsGGeAI.js → ConstantsUtil-6Pwi3OKY.js} +2 -2
  10. package/_assets/{ContentClient-DADL-eWJ.js → ContentClient-BuElv52x.js} +2 -2
  11. package/_assets/{Creator-DZvSnP1W.js → Creator-JaygbdxX.js} +2 -2
  12. package/_assets/{DeploymentBuilder-DM4wrDOA.js → DeploymentBuilder-aEYKwzH4.js} +2 -2
  13. package/_assets/{EmotePlaybackBar-DKUTpuQ1.js → EmotePlaybackBar-BJLqHcgD.js} +3 -3
  14. package/_assets/{ErrorNotice-Dhs1BLZ6.js → ErrorNotice-CehMoY9b.js} +2 -2
  15. package/_assets/{Event-e3lOCI2G.js → Event-BKsvAEZR.js} +2 -2
  16. package/_assets/{ExchangeController-D1BhRLY_.js → ExchangeController-m6NotXbL.js} +2 -2
  17. package/_assets/{Faq-qe1pCR9P.js → Faq-DHIkLMIT.js} +2 -2
  18. package/_assets/{GetCredits-B96wMekN.js → GetCredits-DcNwBHxf.js} +2 -2
  19. package/_assets/{Grow-pyVWvnNE.js → Grow-C2g65qe9.js} +2 -2
  20. package/_assets/{HelpersUtil-B-VhnmAV.js → HelpersUtil-Bnvdbw4V.js} +2 -2
  21. package/_assets/{ItemDetail-EQYc-D1i.js → ItemDetail-DJM4Utdh.js} +2 -2
  22. package/_assets/{LoadMore-3LNbX1EU.js → LoadMore-D1ApwWXh.js} +2 -2
  23. package/_assets/{ManaPricingBanner.styles-Xpaqvszn.js → ManaPricingBanner.styles-BJpi8rP5.js} +2 -2
  24. package/_assets/{MyAssets-Cw8rL4Qm.js → MyAssets-DC5W_tsB.js} +2 -2
  25. package/_assets/{MyFavorites-C-H9WoDf.js → MyFavorites-VcdUYwK3.js} +2 -2
  26. package/_assets/{NetworkUtil-Cp-gtHa0.js → NetworkUtil-DNxN28kF.js} +2 -2
  27. package/_assets/{NotFound-C_hegLMz.js → NotFound-Bh3Yk2Sb.js} +2 -2
  28. package/_assets/{NotificationsBell-DEOx8fEC.js → NotificationsBell-CYBZ8jux.js} +2 -2
  29. package/_assets/{OutfitDetail-DccboofD.js → OutfitDetail-Bsult-u3.js} +2 -2
  30. package/_assets/{OutfitPreview-BT1g84TM.js → OutfitPreview-MOY2qAET.js} +2 -2
  31. package/_assets/{OutfitStudio-DVNHreV-.js → OutfitStudio-BPLVgE7b.js} +2 -2
  32. package/_assets/{SaleCountdown-BCjbqWcU.js → SaleCountdown-CZ2zCEuD.js} +2 -2
  33. package/_assets/{Spinner-hLMP163F.js → Spinner-Bli82tb5.js} +2 -2
  34. package/_assets/{StoreSettings-C4lpIKgV.js → StoreSettings-C1Gv-cCN.js} +2 -2
  35. package/_assets/{Success-DZwN3t4z.js → Success-B2Z93qNy.js} +2 -2
  36. package/_assets/{SwapController-BPiF_Q9x.js → SwapController-Cek3YsoY.js} +2 -2
  37. package/_assets/{TradeService-D8Zf_eTM.js → TradeService-C-AbGVlE.js} +2 -2
  38. package/_assets/{W3MFrameProviderSingleton-ByxVGL9W.js → W3MFrameProviderSingleton-mF4CCLmj.js} +4 -4
  39. package/_assets/{WebCryptoP256-BowGpuyg.js → WebCryptoP256-B-dLbvSm.js} +2 -2
  40. package/_assets/{authorizations-D_SudRT-.js → authorizations-BF60RZYU.js} +2 -2
  41. package/_assets/{basic-sN1HnC_u.js → basic-TAsmd6Xa.js} +2 -2
  42. package/_assets/{biconomy-BijOlHn5.js → biconomy-BROTTSQq.js} +2 -2
  43. package/_assets/{browseLayout.styles-6-W9YjOC.js → browseLayout.styles-DJ6ptfco.js} +2 -2
  44. package/_assets/{browser-DynTtmBx.js → browser-D7KHILZd.js} +2 -2
  45. package/_assets/{browser-D9YPKxfl.js → browser-DNnsZJT3.js} +2 -2
  46. package/_assets/{browser-ponyfill-BVvT8_Fp.js → browser-ponyfill-D-2OW3pz.js} +2 -2
  47. package/_assets/builder-Bi-1rymv.js +2 -0
  48. package/_assets/{buy-BkbR80Gf.js → buy-CiksvueJ.js} +2 -2
  49. package/_assets/{buy-gasless-CQdgMa0F.js → buy-gasless-DG2qGHrJ.js} +2 -2
  50. package/_assets/{categories-Dquh1vbV.js → categories-BNbtxrs7.js} +2 -2
  51. package/_assets/{ccip-CV07CEfz.js → ccip-BNDG19W5.js} +2 -2
  52. package/_assets/{ccip-BQaVTqUi.js → ccip-pGTY1Hnw.js} +2 -2
  53. package/_assets/{chains-Bp3h2aaE.js → chains-1XVMAf69.js} +2 -2
  54. package/_assets/collectionPage.styles-RZVhtMJK.js +41 -0
  55. package/_assets/{common-vsCsmUBn.js → common-Bwhl0TxO.js} +2 -2
  56. package/_assets/{controller-DIQ9DcOx.js → controller-DVUx791t.js} +3 -3
  57. package/_assets/{core-Cs979BA0.js → core-BwSauelP.js} +5 -5
  58. package/_assets/{createSvgIcon-P53Pfdxl.js → createSvgIcon-B_LncRTh.js} +2 -2
  59. package/_assets/{crumbs.styles-N13K8LJF.js → crumbs.styles-BD0KsEdc.js} +2 -2
  60. package/_assets/{custom-DP7Ww2Mp.js → custom-9Ox9ngZH.js} +2 -2
  61. package/_assets/{data-capture-r6LhzaPe.js → data-capture-DSDu9OaX.js} +2 -2
  62. package/_assets/{dcl-schemas-n1W5glLl.js → dcl-schemas-BfFZv5Pe.js} +2 -2
  63. package/_assets/{decimals-BW5hR24C.js → decimals-C6k5mXUX.js} +2 -2
  64. package/_assets/{decimals-1-P-OpKN.js → decimals-CeH4Zk94.js} +2 -2
  65. package/_assets/{detectExtension-DQg6wKZQ.js → detectExtension-BozHquzY.js} +2 -2
  66. package/_assets/{disposePreview-D5gU11Se.js → disposePreview-CTqm0wil.js} +2 -2
  67. package/_assets/{email-C4mis8Vg.js → email-W_rvVD_7.js} +2 -2
  68. package/_assets/{embedded-wallet-CaKg_r8U.js → embedded-wallet-CylC0mwp.js} +2 -2
  69. package/_assets/{emotion-styled.browser.esm-BUJmozsy.js → emotion-styled.browser.esm-CQtWGpOn.js} +2 -2
  70. package/_assets/{engine-D07w-XRT.js → engine-XmlRLqF0.js} +2 -2
  71. package/_assets/{errors-DhRbQUQ8.js → errors-BAO7_A7a.js} +2 -2
  72. package/_assets/{estimate-l1-fee-CVLkkmbZ.js → estimate-l1-fee-C6pUU9Gj.js} +2 -2
  73. package/_assets/{eth_estimateGas-DcrnZAhD.js → eth_estimateGas-DjOsaEES.js} +2 -2
  74. package/_assets/{eth_getStorageAt-D55EQvGL.js → eth_getStorageAt-Bckr5iRY.js} +2 -2
  75. package/_assets/{eth_getTransactionCount-996c8uw3.js → eth_getTransactionCount-C5Jy7jT6.js} +2 -2
  76. package/_assets/{ethereum-BB2NY3Ze.js → ethereum-D9mzJwLc.js} +2 -2
  77. package/_assets/{ethers-OrSZ5jmz.js → ethers-rfaBand6.js} +2 -2
  78. package/_assets/{events-C-1hKiSc.js → events-C9-d0wKW.js} +2 -2
  79. package/_assets/{execute-DkcTGxdS.js → execute-97e39I17.js} +3 -3
  80. package/_assets/{extractIPFS-DGBDqkFQ.js → extractIPFS-DrYyPyFp.js} +2 -2
  81. package/_assets/{features-Dgji4xPv.js → features-DPENc6M_.js} +2 -2
  82. package/_assets/{fetchTokenMetadata-CLY3eWo4.js → fetchTokenMetadata-CKjngqLO.js} +3 -3
  83. package/_assets/{field.styles-B66-mhwP.js → field.styles-SsNLO8pf.js} +2 -2
  84. package/_assets/{fortmatic-CIXGktdE.js → fortmatic-Br6NCLjK.js} +2 -2
  85. package/_assets/{get-bytecode-B4ah9_Ee.js → get-bytecode-DnzzQt09.js} +2 -2
  86. package/_assets/{get-ecosystem-wallet-info-BUVR1h_d.js → get-ecosystem-wallet-info-D5A19ioN.js} +2 -2
  87. package/_assets/{getBalance-DcjxPvBd.js → getBalance-CG19_hcj.js} +3 -3
  88. package/_assets/{getInstalledModules-CVmsNb5W.js → getInstalledModules-D3apLTNL.js} +2 -2
  89. package/_assets/{getNFT-CNkldXgA.js → getNFT-CLwGPsGb.js} +2 -2
  90. package/_assets/{getNFT-D6Q2R2w8.js → getNFT-DErsYxl1.js} +3 -3
  91. package/_assets/{grid.styles-CbKnaEaH.js → grid.styles-BRtgKeAE.js} +2 -2
  92. package/_assets/{hashTypedData-BMQaC5AO.js → hashTypedData-CB0WoLGg.js} +2 -2
  93. package/_assets/{hashTypedData-BXTiCI6R.js → hashTypedData-DXatJfP_.js} +2 -2
  94. package/_assets/{import-nI9C4MLI.js → import-vNIvljOs.js} +2 -2
  95. package/_assets/{in-app-qH_5BfXH.js → in-app-KVeRiFav.js} +2 -2
  96. package/_assets/{in-app-wallet-calls-D5QY4WMZ.js → in-app-wallet-calls-BGgHKG4E.js} +2 -2
  97. package/_assets/{index-7LiE_2Hn.js → index-4JmY5_RP.js} +2 -2
  98. package/_assets/{index-DsKy4xQX.js → index-5rIJfAZy.js} +2 -2
  99. package/_assets/{index-7jxYsA5x.js → index-ALUnxrx5.js} +2 -2
  100. package/_assets/{index-DhxbjStl.js → index-B-3nI4H_.js} +2 -2
  101. package/_assets/{index-CBqzQu4b.js → index-B4z00rU5.js} +3 -3
  102. package/_assets/{index-C11xAGLj.js → index-B6htjYue.js} +2 -2
  103. package/_assets/{index-5TanjW1p.js → index-B6oBqK3x.js} +4 -4
  104. package/_assets/{index-B9LTXTJ_.js → index-BCazbM3i.js} +2 -2
  105. package/_assets/{index-ChkZ_3N-.js → index-BM-LiAJT.js} +2 -2
  106. package/_assets/{index-C3N8gNG5.js → index-BOcVPMst.js} +2 -2
  107. package/_assets/{index-C_vB1IQd.js → index-BXtnar-h.js} +2 -2
  108. package/_assets/{index-CMGA6Ehu.js → index-BeulnmWl.js} +2 -2
  109. package/_assets/{index-DEL0w41-.js → index-BgUxbRek.js} +2 -2
  110. package/_assets/{index-CqA25hIa.js → index-BkL9KpHE.js} +3 -3
  111. package/_assets/{index-u3wacysv.js → index-BphkB5h5.js} +2 -2
  112. package/_assets/{index-DGoH3dH-.js → index-By6o2Lqu.js} +2 -2
  113. package/_assets/{index-BT2VuKr_.js → index-ByLI3MnY.js} +2 -2
  114. package/_assets/{index-jsed_aC3.js → index-C8lRlbcU.js} +2 -2
  115. package/_assets/{index-CKir0NTC.js → index-C9c1P_dO.js} +2 -2
  116. package/_assets/{index-BlyJ0EeU.js → index-CD5F8xRq.js} +2 -2
  117. package/_assets/{index-Q91sfGFW.js → index-CDYCnNEZ.js} +2 -2
  118. package/_assets/{index-QEKAtx1e.js → index-CHspDov_.js} +2 -2
  119. package/_assets/{index-2lALaSI0.js → index-C_KbxGyM.js} +2 -2
  120. package/_assets/{index-B8pq8JLn.js → index-CcQaDuSy.js} +2 -2
  121. package/_assets/{index-DuuWxLJb.js → index-CcTwxjsV.js} +2 -2
  122. package/_assets/{index-BHeP5cAB.js → index-CdYlEnpz.js} +2 -2
  123. package/_assets/{index-DOE5PvRf.js → index-CeVIXHhQ.js} +4 -4
  124. package/_assets/{index-CFkA928w.js → index-CfYZS3Gd.js} +2 -2
  125. package/_assets/{index-FgD-q8nY.js → index-CkxowA1-.js} +2 -2
  126. package/_assets/{index-t1CDJb0U.js → index-CrcEiZEu.js} +2 -2
  127. package/_assets/{index-Dbzum1xk.js → index-CuQaF0PK.js} +2 -2
  128. package/_assets/{index-3xvycxSp.js → index-CuovT0LH.js} +2 -2
  129. package/_assets/{index-CulTnm_-.js → index-Cwv6CxNk.js} +2 -2
  130. package/_assets/{index-DzQkIbqv.js → index-CyVGgMkK.js} +12 -12
  131. package/_assets/{index-Bt53hnH3.js → index-D29HW6CF.js} +2 -2
  132. package/_assets/{index-BYf--6IB.js → index-D3GehksE.js} +2 -2
  133. package/_assets/{index-BIDLTLRs.js → index-D4yqXYo7.js} +2 -2
  134. package/_assets/{index-B0eaBbwk.js → index-D9atNHM1.js} +4 -4
  135. package/_assets/{index-aYru672w.js → index-DA3Q9xWC.js} +2 -2
  136. package/_assets/{index-BymYE2Hq.js → index-DHFZfpXa.js} +2 -2
  137. package/_assets/{index-CTpgpMEc.js → index-DJ2ef_Qi.js} +2 -2
  138. package/_assets/{index-BbOkb2Lk.js → index-DJNds9OD.js} +2 -2
  139. package/_assets/{index-CspzAmAd.js → index-DKffn2SX.js} +2 -2
  140. package/_assets/{index-CZBL8oDN.css → index-DRbMF22n.css} +1 -1
  141. package/_assets/{index-Cfiy7F58.js → index-DT143eSv.js} +2 -2
  142. package/_assets/{index-DILi1pU7.js → index-DTtoNYtG.js} +2 -2
  143. package/_assets/{index-B767Ef3o.js → index-DXiZbXpt.js} +2 -2
  144. package/_assets/{index-B6gpbqHk.js → index-DYCC7rPf.js} +3 -3
  145. package/_assets/{index-Cfg8NIxf.js → index-Daf64xZr.js} +2 -2
  146. package/_assets/{index-BBmOO_5v.js → index-DbWZDnMx.js} +2 -2
  147. package/_assets/{index-DyXRsRBM.js → index-Dc8QkZVC.js} +2 -2
  148. package/_assets/{index-DrYTVtgg.js → index-DexDa-x6.js} +2 -2
  149. package/_assets/{index-BJOeyXU6.js → index-DhIqKIxS.js} +2 -2
  150. package/_assets/{index-DSZlP7vv.js → index-DmY8v3gX.js} +2 -2
  151. package/_assets/{index-D2_5jCAk.js → index-Dnf-yL2f.js} +2 -2
  152. package/_assets/{index-BbvUH58s.js → index-DwU-rTe_.js} +2 -2
  153. package/_assets/{index-Ci7OJEKI.js → index-DzVDhWN3.js} +2 -2
  154. package/_assets/{index-BUJII-te.js → index-ISYU3o6e.js} +2 -2
  155. package/_assets/{index-CzONDXJm.js → index-SvKZEdOG.js} +2 -2
  156. package/_assets/{index-C9g_L_xU.js → index-TKsvI-NM.js} +2 -2
  157. package/_assets/{index-gl06JVkD.js → index-fUxRvoXH.js} +2 -2
  158. package/_assets/{index-DHIc5ihj.js → index-gO3cCHE1.js} +2 -2
  159. package/_assets/{index-CO3xBlL2.js → index-htwtpupR.js} +2 -2
  160. package/_assets/{index-DWpJbdNp.js → index-ikXmGLHB.js} +2 -2
  161. package/_assets/{index-CLkKFzPp.js → index-mvEa1F06.js} +2 -2
  162. package/_assets/{index-VrmvnTaa.js → index-o0uVygcP.js} +2 -2
  163. package/_assets/{index-DxPCOmel.js → index-pSYYTNRD.js} +3 -3
  164. package/_assets/{index-CiVDvcz9.js → index-x2xGnkT4.js} +2 -2
  165. package/_assets/{index.es-CeXL7thu.js → index.es-Cd0iKBsN.js} +2 -2
  166. package/_assets/{index.es-O2YZpGjD.js → index.es-CeYojd2g.js} +5 -5
  167. package/_assets/{index.es-89IU7kpU.js → index.es-D8l4zpKy.js} +2 -2
  168. package/_assets/{index.es-BxUByfMu.js → index.es-yl8dzxKR.js} +2 -2
  169. package/_assets/{items-empty-Bo2ok7jY.js → items-empty-DdvLsLv8.js} +2 -2
  170. package/_assets/{jump-CfxL77MI.js → jump-DVwOeoW4.js} +2 -2
  171. package/_assets/{linkAccount-CH9thals.js → linkAccount-VTa1gyga.js} +2 -2
  172. package/_assets/{localBatchGatewayRequest-CSeZ4gRB.js → localBatchGatewayRequest-CiuE3Uyi.js} +2 -2
  173. package/_assets/{modal.styles-2uQXkegU.js → modal.styles-BrAS9zAx.js} +2 -2
  174. package/_assets/{native-CTjG-6uw.js → native-CpLbYufg.js} +2 -2
  175. package/_assets/{networks-DcWUPxCR.js → networks-HjNF9J92.js} +2 -2
  176. package/_assets/{onramp-i_2R0Aty.js → onramp-BOMs0oY_.js} +2 -2
  177. package/_assets/{openzeppelin-CRJGheas.js → openzeppelin-BKXlFThB.js} +2 -2
  178. package/_assets/{ownerOf-Cg4HNQ0Q.js → ownerOf-DN3_LnJB.js} +2 -2
  179. package/_assets/{parseNft-C5TjCi9l.js → parseNft-d1FcpMcn.js} +3 -3
  180. package/_assets/{parseSignature-DlxX_eFH.js → parseSignature-CJgDc_lf.js} +4 -4
  181. package/_assets/{parseSignature-BkGllSKb.js → parseSignature-WztwOX0T.js} +2 -2
  182. package/_assets/{passkeys-DHzFFqFt.js → passkeys-Bbt6ZFiZ.js} +2 -2
  183. package/_assets/{pay-with-exchange-Da-95QjC.js → pay-with-exchange-4pYYuso4.js} +2 -2
  184. package/_assets/{prepare-contract-call-DRyZHwAJ.js → prepare-contract-call-CzqNBdjC.js} +2 -2
  185. package/_assets/{qr-overlay-B5-Cv-4F.js → qr-overlay-D-zdQAjb.js} +4 -4
  186. package/_assets/{react-DaBuTM6Q.js → react-BDtnT4_L.js} +2 -2
  187. package/_assets/{receive-BxwWtavl.js → receive-BAEAd1F0.js} +2 -2
  188. package/_assets/{resolveImplementation-UAeMoslS.js → resolveImplementation-vgG3euf-.js} +2 -2
  189. package/_assets/{resume-buy-DshgN9vm.js → resume-buy-CSgJ-XwR.js} +2 -2
  190. package/_assets/{rpc-xoh1bqpg.js → rpc-CtbKgNnw.js} +2 -2
  191. package/_assets/{sales-empty-B0QNGz8U.js → sales-empty-D73ma-y1.js} +2 -2
  192. package/_assets/{search-empty-CiaPLxpu.js → search-empty-D0-TyK_V.js} +2 -2
  193. package/_assets/{secp256k1-CI4_BdKy.js → secp256k1-Bx7FlDx1.js} +2 -2
  194. package/_assets/{secp256k1-B6GZ7kat.js → secp256k1-CzsGuHty.js} +2 -2
  195. package/_assets/{secp256k1-IgPcu2TC.js → secp256k1-M4GB_fDX.js} +2 -2
  196. package/_assets/{send-CMxH0R30.js → send-B6flY4x2.js} +2 -2
  197. package/_assets/{send-batch-transaction-_47YxVXu.js → send-batch-transaction-Co4ePIo5.js} +2 -2
  198. package/_assets/{send-eip712-transaction-dUQPsneg.js → send-eip712-transaction-Cs4IqHVW.js} +3 -3
  199. package/_assets/{send-gasless-transaction-C9qimzDD.js → send-gasless-transaction-DWAk7bwN.js} +3 -3
  200. package/_assets/{send-transaction-C00epVak.js → send-transaction-B9T50Ic_.js} +3 -3
  201. package/_assets/{sendMetaTransaction-D_Udygrx.js → sendMetaTransaction-CVkzKCvR.js} +2 -2
  202. package/_assets/{sendRawTransaction-3Tc8O82f.js → sendRawTransaction-CQA22kgz.js} +4 -4
  203. package/_assets/{sentry-ilLelGl_.js → sentry-DJtBihbA.js} +3 -3
  204. package/_assets/{serializeTransaction-BN5Z150K.js → serializeTransaction-BXSGxjck.js} +2 -2
  205. package/_assets/{session-proposal-DFNQHP37.js → session-proposal-BZ-s21nV.js} +2 -2
  206. package/_assets/{session-request-D-kuAKOc.js → session-request-6undDdyN.js} +3 -3
  207. package/_assets/{sha256-C6I6NkPD.js → sha256-5LafXqux.js} +2 -2
  208. package/_assets/{sha3-CcKshJ6_.js → sha3--a5gJVIr.js} +2 -2
  209. package/_assets/signin-empty-pUeXGLFR.js +2 -0
  210. package/_assets/{signing-D_eQ6aEY.js → signing-smJEu_aC.js} +4 -4
  211. package/_assets/{skeleton.styles-B7ceCvK9.js → skeleton.styles-Cqgtx7q8.js} +2 -2
  212. package/_assets/{socials-DCNPHMgt.js → socials-BB50T59X.js} +2 -2
  213. package/_assets/{styled-TsFrVdC0.js → styled-sEDZsWVx.js} +2 -2
  214. package/_assets/{swaps-CicFV6pq.js → swaps--hKKZcn7.js} +2 -2
  215. package/_assets/{thirdweb-Vp1uscmH.js → thirdweb-NC84C-A5.js} +4 -4
  216. package/_assets/{to-serializable-transaction-BT5px6SS.js → to-serializable-transaction-DhaCLdH1.js} +3 -3
  217. package/_assets/{totalSupply-CkL8_XXt.js → totalSupply-BEc4Cg1i.js} +2 -2
  218. package/_assets/{transaction-sOBP-DPj.js → transaction-D4x9bx9b.js} +2 -2
  219. package/_assets/{transactionReceipt--9bOdV8l.js → transactionReceipt-BqZyCLMn.js} +2 -2
  220. package/_assets/{transactions-CWkneGU6.js → transactions-BWtQOgJv.js} +2 -2
  221. package/_assets/{useCreditPacks-DGUqMJ6U.js → useCreditPacks-L9xKGYZ4.js} +2 -2
  222. package/_assets/{useInfiniteGrid-DpNO4hZU.js → useInfiniteGrid-3LXYF7KT.js} +2 -2
  223. package/_assets/{useStore-HIvj56kg.js → useStore-pULSLKbx.js} +3 -3
  224. package/_assets/{useTheme-5m8LACXM.js → useTheme-BblsW0tr.js} +2 -2
  225. package/_assets/{utils-Ci73E7nx.js → utils-rjss_XXl.js} +2 -2
  226. package/_assets/{verifyHash-Bk-B5GPz.js → verifyHash-DRixXMjz.js} +2 -2
  227. package/_assets/{w3m-modal-BtyAd8rE.js → w3m-modal-BZ1FGn4r.js} +2 -2
  228. package/_assets/{w3m-modal-BTUtrhm6.js → w3m-modal-DMH1kr4I.js} +2 -2
  229. package/_assets/{wait-for-tx-receipt-Cbmd9TUG.js → wait-for-tx-receipt-ChEdZDPJ.js} +2 -2
  230. package/_assets/{wallets-CUIygOS2.js → wallets-CFIKit6R.js} +6 -6
  231. package/_assets/{web-connector-BIkHBHih.js → web-connector-hTbyWCSc.js} +4 -4
  232. package/_assets/{writeContract-CEDCT-Ld.js → writeContract-B5nOXYik.js} +2 -2
  233. package/_assets/{zora-sepolia-C43Ueozz.js → zora-sepolia-CmUXMudA.js} +2 -2
  234. package/_assets/{zoraTestnet-CnMCD5vw.js → zoraTestnet-DiuTPx_I.js} +2 -2
  235. package/index.html +11 -11
  236. package/package.json +2 -2
  237. package/_assets/builder-BCPamKJP.js +0 -2
  238. package/_assets/collectionPage.styles-St6jJHia.js +0 -41
  239. package/_assets/signin-empty-C52WOkGa.js +0 -2
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-CiVDvcz9.js","_assets/react-DaBuTM6Q.js","_assets/index-DzQkIbqv.js","_assets/dcl-schemas-n1W5glLl.js","_assets/sentry-ilLelGl_.js","_assets/ethers-OrSZ5jmz.js","_assets/intl-AKLEHPeO.js","_assets/index-CZBL8oDN.css","_assets/import-nI9C4MLI.js","_assets/buy-BkbR80Gf.js","_assets/authorizations-D_SudRT-.js","_assets/sendMetaTransaction-D_Udygrx.js","_assets/modal.styles-2uQXkegU.js","_assets/ManaPricingBanner.styles-Xpaqvszn.js","_assets/Faq-qe1pCR9P.js","_assets/sales-empty-B0QNGz8U.js","_assets/field.styles-B66-mhwP.js"])))=>i.map(i=>d[i]);
2
- import{m as Ae,bS as Ee,E as U,D as E,bT as Le,s as h,d,k as Ne,H as $e,c as o,X as Pe,aR as Te,Z as ce,bU as ne,bV as ae,bW as Se,_ as Ce,K as L,aw as K,bX as Fe,L as De,bv as B,I as X,S as Me,bY as He,N as $,bZ as Re,b_ as Q}from"./index-DzQkIbqv.js";import{r as f,a as _e,j as t,e as qe,L as Oe}from"./react-DaBuTM6Q.js";import{u as ze,s as We}from"./sales-empty-B0QNGz8U.js";import{L as Ge}from"./LoadMore-3LNbX1EU.js";import{u as P}from"./useInfiniteGrid-DpNO4hZU.js";import{m as le}from"./mana-matic-CEqvSwrJ.js";import{n as Ue}from"./name-glyph-aUugT8vq.js";import{s as Ke}from"./signin-empty-C52WOkGa.js";import"./dcl-schemas-n1W5glLl.js";import"./sentry-ilLelGl_.js";import"./ethers-OrSZ5jmz.js";import"./intl-AKLEHPeO.js";import"./import-nI9C4MLI.js";import"./buy-BkbR80Gf.js";import"./authorizations-D_SudRT-.js";import"./sendMetaTransaction-D_Udygrx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="9f5cf564-4e75-4ba2-aaeb-fba7e3d69c80",e._sentryDebugIdIdentifier="sentry-dbid-9f5cf564-4e75-4ba2-aaeb-fba7e3d69c80")}catch{}})();const Be=15e3;function Xe(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)<=Be}function Qe(e){const s=[...e].sort((i,a)=>a.createdAt-i.createdAt),n=[];for(const i of s){const a=n[n.length-1];a&&Xe(a[a.length-1],i)?a.push(i):n.push([i])}return n.map(i=>{var a;return{id:((a=i.find(c=>c.txHash))==null?void 0:a.txHash)??i[i.length-1].id,createdAt:Math.max(...i.map(c=>c.createdAt)),status:Ve(i),totalCredits:i.reduce((c,l)=>c+l.credits,0),lines:i}})}function Ve(e){return e.some(s=>s.status==="PENDING")?"PENDING":e.some(s=>s.status==="SETTLED")?"SETTLED":"EXPIRED"}function Ye(e){return e==="SETTLED"?"SETTLED":e==="EXPIRED"?"FAILED":"PENDING"}function Ze(e){return e.tradeId?`trade:${e.tradeId}`:e.contractAddress&&e.itemId?`item:${e.contractAddress.toLowerCase()}:${e.itemId}`:null}function Je(e){const s=[],n=new Map;for(const i of e){const a=Ze(i);if(!a){s.push({key:i.id,tradeId:null,contractAddress:i.contractAddress??null,itemId:i.itemId??null,registeredName:i.registeredName??null,quantity:1,credits:i.credits});continue}const c=n.get(a);if(c){c.quantity+=1,c.credits+=i.credits;continue}const l={key:a,tradeId:i.tradeId,contractAddress:i.contractAddress??null,itemId:i.itemId??null,registeredName:i.registeredName??null,quantity:1,credits:i.credits};n.set(a,l),s.push(l)}return s}function et(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 tt(e){return e.status!=="EXPIRED"||!!e.submittedTxHash}function it(e){const n=Qe(e.purchases.filter(tt)).map(r=>({kind:"purchase",id:`purchase:${r.id}`,createdAt:r.createdAt,order:r})),i=e.sales.map(r=>{const p=et(r,e.rate);return{kind:"sale",id:`sale:${p.id}`,createdAt:p.createdAt,sale:p}}),a=(e.creditOrders??[]).filter(r=>r.status!=="failed"&&r.status!=="abandoned").map(r=>({kind:"credit",id:`credit:${r.id}`,createdAt:r.createdAt,order:r})),c=new Set(e.purchases.filter(r=>r.txHash).map(r=>r.txHash.toLowerCase())),l=(e.manaPurchases??[]).filter(r=>!c.has(r.txHash.toLowerCase())).map(r=>({kind:"mana-purchase",id:`mana-purchase:${r.id}`,createdAt:r.createdAt,sale:r}));return[...n,...i,...a,...l].sort((r,p)=>p.createdAt-r.createdAt||(r.id<p.id?-1:1))}function st(e,s){return s==="all"?e:s==="sales"?e.filter(n=>n.kind==="sale"):e.filter(n=>n.kind==="purchase"||n.kind==="credit"||n.kind==="mana-purchase")}const ue=e=>e.trim().toLowerCase();function nt(e){const s=new Map;for(const n of e??[]){const i=ue(n.txHash??"");if(!i)continue;const a=s.get(i);a?a.push(n):s.set(i,[n])}return s}function at(e,s,n=Date.now()){const i=s.txHash?e.get(ue(s.txHash)):void 0;if(!i||i.length===0)return{kind:"direct"};const a=i.length===1?rt(i[0].netCents):null,c=i.filter(r=>!r.available&&r.availableAt>n);if(c.length===0)return{kind:"credited",credits:a};const l=c.reduce((r,p)=>Math.max(r,p.availableAt),0);return{kind:"pending",credits:a,availableAt:l}}function rt(e){return Ee(e)}function ot(){const e=U(i=>{var a;return(a=i.session)==null?void 0:a.address}),{data:s,isLoading:n}=E({queryKey:["listing-count",e],queryFn:()=>Le({creator:e,onSale:!0,first:1}),enabled:!!e,staleTime:5*6e4});return{count:s==null?void 0:s.total,isLoading:n}}const dt="https://cdn.decentraland.org/@dcl/shop/1.13.1-35095058100.commit-8d694c8/_assets/credits-product-vs4Q6u6l.svg",V=Ne`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-x2xGnkT4.js","_assets/react-BDtnT4_L.js","_assets/index-CyVGgMkK.js","_assets/dcl-schemas-BfFZv5Pe.js","_assets/sentry-DJtBihbA.js","_assets/ethers-rfaBand6.js","_assets/intl-AKLEHPeO.js","_assets/index-DRbMF22n.css","_assets/import-vNIvljOs.js","_assets/buy-CiksvueJ.js","_assets/authorizations-BF60RZYU.js","_assets/sendMetaTransaction-CVkzKCvR.js","_assets/modal.styles-BrAS9zAx.js","_assets/ManaPricingBanner.styles-BJpi8rP5.js","_assets/Faq-DHIkLMIT.js","_assets/sales-empty-D73ma-y1.js","_assets/field.styles-SsNLO8pf.js"])))=>i.map(i=>d[i]);
2
+ import{m as Ae,bS as Ee,E as U,D as E,bT as Le,s as h,d,k as Ne,H as $e,c as o,X as Pe,aR as Te,Z as ce,bU as ne,bV as ae,bW as Se,_ as Ce,K as L,aw as K,bX as Fe,L as De,bv as B,I as X,S as Me,bY as He,N as $,bZ as Re,b_ as Q}from"./index-CyVGgMkK.js";import{r as f,a as _e,j as t,e as qe,L as Oe}from"./react-BDtnT4_L.js";import{u as ze,s as We}from"./sales-empty-D73ma-y1.js";import{L as Ge}from"./LoadMore-D1ApwWXh.js";import{u as P}from"./useInfiniteGrid-3LXYF7KT.js";import{m as le}from"./mana-matic-CEqvSwrJ.js";import{n as Ue}from"./name-glyph-aUugT8vq.js";import{s as Ke}from"./signin-empty-pUeXGLFR.js";import"./dcl-schemas-BfFZv5Pe.js";import"./sentry-DJtBihbA.js";import"./ethers-rfaBand6.js";import"./intl-AKLEHPeO.js";import"./import-vNIvljOs.js";import"./buy-CiksvueJ.js";import"./authorizations-BF60RZYU.js";import"./sendMetaTransaction-CVkzKCvR.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="69e5bd30-8b2d-4dbb-95c2-d49219d4f524",e._sentryDebugIdIdentifier="sentry-dbid-69e5bd30-8b2d-4dbb-95c2-d49219d4f524")}catch{}})();const Be=15e3;function Xe(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)<=Be}function Qe(e){const s=[...e].sort((i,a)=>a.createdAt-i.createdAt),n=[];for(const i of s){const a=n[n.length-1];a&&Xe(a[a.length-1],i)?a.push(i):n.push([i])}return n.map(i=>{var a;return{id:((a=i.find(c=>c.txHash))==null?void 0:a.txHash)??i[i.length-1].id,createdAt:Math.max(...i.map(c=>c.createdAt)),status:Ve(i),totalCredits:i.reduce((c,l)=>c+l.credits,0),lines:i}})}function Ve(e){return e.some(s=>s.status==="PENDING")?"PENDING":e.some(s=>s.status==="SETTLED")?"SETTLED":"EXPIRED"}function Ye(e){return e==="SETTLED"?"SETTLED":e==="EXPIRED"?"FAILED":"PENDING"}function Ze(e){return e.tradeId?`trade:${e.tradeId}`:e.contractAddress&&e.itemId?`item:${e.contractAddress.toLowerCase()}:${e.itemId}`:null}function Je(e){const s=[],n=new Map;for(const i of e){const a=Ze(i);if(!a){s.push({key:i.id,tradeId:null,contractAddress:i.contractAddress??null,itemId:i.itemId??null,registeredName:i.registeredName??null,quantity:1,credits:i.credits});continue}const c=n.get(a);if(c){c.quantity+=1,c.credits+=i.credits;continue}const l={key:a,tradeId:i.tradeId,contractAddress:i.contractAddress??null,itemId:i.itemId??null,registeredName:i.registeredName??null,quantity:1,credits:i.credits};n.set(a,l),s.push(l)}return s}function et(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 tt(e){return e.status!=="EXPIRED"||!!e.submittedTxHash}function it(e){const n=Qe(e.purchases.filter(tt)).map(r=>({kind:"purchase",id:`purchase:${r.id}`,createdAt:r.createdAt,order:r})),i=e.sales.map(r=>{const p=et(r,e.rate);return{kind:"sale",id:`sale:${p.id}`,createdAt:p.createdAt,sale:p}}),a=(e.creditOrders??[]).filter(r=>r.status!=="failed"&&r.status!=="abandoned").map(r=>({kind:"credit",id:`credit:${r.id}`,createdAt:r.createdAt,order:r})),c=new Set(e.purchases.filter(r=>r.txHash).map(r=>r.txHash.toLowerCase())),l=(e.manaPurchases??[]).filter(r=>!c.has(r.txHash.toLowerCase())).map(r=>({kind:"mana-purchase",id:`mana-purchase:${r.id}`,createdAt:r.createdAt,sale:r}));return[...n,...i,...a,...l].sort((r,p)=>p.createdAt-r.createdAt||(r.id<p.id?-1:1))}function st(e,s){return s==="all"?e:s==="sales"?e.filter(n=>n.kind==="sale"):e.filter(n=>n.kind==="purchase"||n.kind==="credit"||n.kind==="mana-purchase")}const ue=e=>e.trim().toLowerCase();function nt(e){const s=new Map;for(const n of e??[]){const i=ue(n.txHash??"");if(!i)continue;const a=s.get(i);a?a.push(n):s.set(i,[n])}return s}function at(e,s,n=Date.now()){const i=s.txHash?e.get(ue(s.txHash)):void 0;if(!i||i.length===0)return{kind:"direct"};const a=i.length===1?rt(i[0].netCents):null,c=i.filter(r=>!r.available&&r.availableAt>n);if(c.length===0)return{kind:"credited",credits:a};const l=c.reduce((r,p)=>Math.max(r,p.availableAt),0);return{kind:"pending",credits:a,availableAt:l}}function rt(e){return Ee(e)}function ot(){const e=U(i=>{var a;return(a=i.session)==null?void 0:a.address}),{data:s,isLoading:n}=E({queryKey:["listing-count",e],queryFn:()=>Le({creator:e,onSale:!0,first:1}),enabled:!!e,staleTime:5*6e4});return{count:s==null?void 0:s.total,isLoading:n}}const dt="https://cdn.decentraland.org/@dcl/shop/1.13.1-35110739985.commit-7718205/_assets/credits-product-vs4Q6u6l.svg",V=Ne`
3
3
  0% { background-position: 200% 0; }
4
4
  100% { background-position: -200% 0; }
5
5
  `,ct=h.section`
@@ -369,5 +369,5 @@ import{m as Ae,bS as Ee,E as U,D as E,bT as Le,s as h,d,k as Ne,H as $e,c as o,X
369
369
  height: 26px;
370
370
  object-fit: contain;
371
371
  }
372
- `,ee=N.withComponent(Oe),wt=f.lazy(()=>Ce(()=>import("./index-CiVDvcz9.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16])).then(e=>({default:e.ImportListings}))),T=24,It=["all","purchases","sales"],W="section",de="listings",G="view",At="migrate";function A(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=f.useRef(null),[n,i]=f.useState(null),a=()=>{var l;const c=(l=s.current)==null?void 0:l.getBoundingClientRect();c&&i({top:c.bottom+8,left:c.left+c.width/2})};return t.jsxs(bt,{ref:s,tabIndex:0,onMouseEnter:a,onMouseLeave:()=>i(null),onFocus:a,onBlur:()=>i(null),children:[e,n?qe.createPortal(t.jsx(yt,{style:{top:n.top,left:n.left},role:"tooltip",children:o("activity.polygonMana")}),document.body):null]})}function Et({item:e}){const s=!!e.contractAddress&&!!e.itemId,n=!!e.tradeId||s,{data:i,isLoading:a}=E({queryKey:["order-line-display",e.tradeId,e.contractAddress,e.itemId],queryFn:()=>e.tradeId?Re(e.tradeId):Q(e.contractAddress,{itemId:e.itemId}),enabled:n,staleTime:5*6e4}),c=n&&a,l=(i==null?void 0:i.name)??o("activity.itemFallback"),r=(i==null?void 0:i.thumbnail)??"",p=B({contractAddress:i==null?void 0:i.contractAddress,tokenId:i==null?void 0:i.tokenId,itemId:i==null?void 0:i.itemId})??void 0,w=t.jsxs(t.Fragment,{children:[c?t.jsx(Z,{}):t.jsx(_,{children:r?t.jsx("img",{src:r,alt:l}):t.jsx(X,{name:"cart",size:20})}),t.jsxs(q,{children:[c?t.jsx(J,{}):t.jsx(O,{title:l,children:l}),e.quantity>1?t.jsx(z,{children:o("activity.quantity",{count:e.quantity})}):null]}),t.jsxs(me,{children:[t.jsx(L,{className:"ccy-mark"})," ",t.jsx(K,{credits:e.credits})]})]});return p?t.jsx(ee,{to:p,"data-link":"true",children:w}):t.jsx(N,{children:w})}function Lt({item:e}){const s=`@${e.registeredName}`;return t.jsxs(N,{"data-testid":"activity-name-line",children:[t.jsx(kt,{children:t.jsx("img",{src:Ue,alt:""})}),t.jsxs(q,{children:[t.jsx(O,{title:s,children:s}),t.jsx(z,{children:o("activity.nameRegistration")})]}),t.jsxs(me,{children:[t.jsx(L,{className:"ccy-mark"})," ",e.credits]})]})}function Nt({order:e}){const s=Je(e.lines),n=s.reduce((c,l)=>c+l.quantity,0),i=Ye(e.status),a=i==="SETTLED"?o("activity.completed"):i==="FAILED"?o("activity.failed"):o("activity.processing");return t.jsxs(S,{"data-testid":"purchase-order",children:[t.jsxs(C,{children:[t.jsxs(F,{children:[t.jsx(D,{children:A(e.createdAt)}),t.jsxs(M,{children:[o("activity.purchaseLabel")," · ",o("activity.itemCount",{count:n})]})]}),t.jsxs(H,{children:[t.jsx(R,{"data-status":i,children:a}),t.jsxs(k,{children:[t.jsx(L,{className:"ccy-mark"})," ",t.jsx(K,{credits:e.totalCredits})]})]})]}),i==="FAILED"?t.jsx(vt,{children:o("activity.purchaseFailedNote")}):null,t.jsx(Y,{children:s.map(c=>c.registeredName?t.jsx(Lt,{item:c},c.key):t.jsx(Et,{item:c},c.key))})]})}function $t({sale:e}){const{data:s,isLoading:n}=E({queryKey:["asset-display",e.contractAddress,e.tokenId,e.itemId],queryFn:()=>Q(e.contractAddress,{tokenId:e.tokenId,itemId:e.itemId}),enabled:!!e.contractAddress,staleTime:3e5}),i=(s==null?void 0:s.name)??o("activity.itemFallback"),a=(s==null?void 0:s.thumbnail)??"",c=B({contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId})??void 0,l=t.jsxs(t.Fragment,{children:[n?t.jsx(Z,{}):t.jsx(_,{children:a?t.jsx("img",{src:a,alt:i}):t.jsx(X,{name:"offer",size:20})}),t.jsxs(q,{children:[n?t.jsx(J,{}):t.jsx(O,{title:i,children:i}),t.jsx(z,{children:o("activity.boughtFrom",{account:xe(e.seller)})})]})]});return t.jsxs(S,{"data-testid":"activity-mana-purchase",children:[t.jsxs(C,{children:[t.jsxs(F,{children:[t.jsx(D,{children:A(e.createdAt)}),t.jsx(M,{children:o("activity.paidWithMana")})]}),t.jsxs(H,{children:[t.jsx(R,{"data-status":"SETTLED",children:o("activity.completed")}),t.jsxs(k,{children:[ge(e.manaWei)," ",t.jsx(fe,{children:t.jsx(pe,{src:le,alt:"MANA"})})]})]})]}),t.jsx(Y,{children:c?t.jsx(ee,{to:c,"data-link":"true",children:l}):t.jsx(N,{children:l})})]})}function Pt({sale:e,payout:s}){const{data:n,isLoading:i}=E({queryKey:["asset-display",e.contractAddress,e.tokenId,e.itemId],queryFn:()=>Q(e.contractAddress,{tokenId:e.tokenId,itemId:e.itemId}),enabled:!!e.contractAddress,staleTime:3e5}),a=(n==null?void 0:n.name)??o("activity.itemFallback"),c=(n==null?void 0:n.thumbnail)??"",l=B({contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId})??void 0,r=t.jsxs(t.Fragment,{children:[i?t.jsx(Z,{}):t.jsx(_,{children:c?t.jsx("img",{src:c,alt:a}):t.jsx(X,{name:"offer",size:20})}),t.jsxs(q,{children:[i?t.jsx(J,{}):t.jsx(O,{title:a,children:a}),t.jsxs(z,{children:[o("activity.soldTo",{account:xe(e.counterparty)}),s.kind==="pending"?` · ${o("activity.payoutPendingOn",{date:A(s.availableAt)})}`:""]})]})]});return t.jsxs(S,{"data-testid":"activity-sale",children:[t.jsxs(C,{children:[t.jsxs(F,{children:[t.jsx(D,{children:A(e.createdAt)}),t.jsx(M,{children:o("activity.saleLabel")})]}),t.jsxs(H,{children:[t.jsx(R,{"data-status":s.kind==="pending"?"PENDING":"SOLD",children:s.kind==="pending"?o("activity.payoutPending"):o("activity.sold")}),s.kind==="direct"?t.jsxs(k,{"data-kind":"income",children:["+",ge(e.manaWei)," ",t.jsx(fe,{children:t.jsx(pe,{src:le,alt:"MANA"})})]}):s.credits!==null?t.jsxs(k,{"data-kind":"income",children:[t.jsx(L,{className:"ccy-mark"})," +",Me(s.credits)]}):t.jsx(k,{"data-kind":"income",children:o("activity.payoutCredited")})]})]}),t.jsx(Y,{children:l?t.jsx(ee,{to:l,"data-link":"true",children:r}):t.jsx(N,{children:r})})]})}function Tt({order:e}){const s=`$${(e.usdCents/100).toFixed(2)}`,n=Fe(e.status),i=n==="SETTLED"?o("activity.completed"):n==="FAILED"?o("activity.failed"):n==="UNFINISHED"?o("activity.unfinished"):o("activity.processing"),a=U(m=>m.session),c=De(),[l,r]=f.useState(!1),p=e.status==="initiated"&&!!a;f.useEffect(()=>{const m=()=>r(!1);return window.addEventListener("pageshow",m),()=>window.removeEventListener("pageshow",m)},[]);async function w(){if(!(!a||l)){r(!0);try{const m=await He(e.id,a.identity);if(m.kind==="url"){if(/^https:\/\/([a-z0-9-]+\.)*stripe\.com\//i.test(m.url)){window.location.href=m.url;return}$.error(o("activity.resumeUnavailable"))}else m.kind==="expired"?($.info(o("activity.resumeExpired")),c.invalidateQueries({queryKey:["credit-orders"]})):m.kind==="paid"?($.success(o("activity.resumePaid")),c.invalidateQueries({queryKey:["credit-orders"]})):$.error(o("activity.resumeUnavailable"));r(!1)}catch{r(!1)}}}return t.jsx(S,{"data-testid":"credit-order",children:t.jsxs(C,{children:[t.jsx(gt,{children:t.jsx("img",{src:dt,alt:"","aria-hidden":!0})}),t.jsxs(F,{children:[t.jsx(D,{children:A(e.createdAt)}),t.jsxs(M,{children:[o("activity.creditPurchaseLabel")," · ",o("activity.creditPaid",{usd:s})]})]}),t.jsxs(H,{children:[p?t.jsx(ft,{type:"button",onClick:()=>void w(),disabled:l,"data-testid":"resume-order",children:l?o("activity.resuming"):o("activity.resume")}):null,t.jsx(R,{"data-status":n,children:i}),t.jsxs(k,{"data-kind":n==="UNFINISHED"?void 0:"income",children:[n==="UNFINISHED"?"":"+",t.jsx(L,{className:"ccy-mark"})," ",t.jsx(K,{credits:e.credits})]})]})]})})}function St({filter:e}){const s={all:o("activity.emptyAllBody"),purchases:o("activity.emptyPurchasesBody"),sales:o("activity.emptySalesBody")}[e];return t.jsx(jt,{children:t.jsx(ce,{testId:`activity-empty-${e}`,icon:We,title:o("activity.emptyTitle"),body:s,cta:{label:o("assets.empty.cta"),to:"/items"}})})}function Qt(){const{session:e,signIn:s}=U(),[n,i]=f.useState("all"),[a,c]=_e(),l=a.get(W)===de||a.get(G)===At;$e({title:l?o("seo.import.title"):o("nav.activity"),noindex:!0});const{count:r}=ze(),{count:p}=ot(),m=r!==void 0&&p!==void 0&&(r>0||p>0||l),x=!!e&&!l&&n!=="sales",g=!!e&&!l&&n!=="purchases",b=P(["purchases",e==null?void 0:e.address],u=>Se(e.address,e.identity,{first:T,skip:u}),{enabled:x}),y=P(["sales",e==null?void 0:e.address],u=>ne(e.address,{role:"seller",first:T,skip:u}),{enabled:g}),v=P(["credit-orders",e==null?void 0:e.address],u=>ae(e.address,e.identity,{first:T,skip:u}),{enabled:x}),j=P(["mana-purchases",e==null?void 0:e.address],u=>ne(e.address,{role:"buyer",first:T,skip:u}),{enabled:x}),{data:te}=E({queryKey:["sale-payouts",e==null?void 0:e.address],queryFn:()=>ae(e.address,e.identity,{first:200}).then(u=>u.payouts),enabled:g,staleTime:6e4}),be=f.useMemo(()=>nt(te),[te]),{data:ye}=Pe(g);if(!e)return t.jsx(Te,{children:t.jsx(ce,{testId:"activity-signin",icon:Ke,title:o("activity.signInTitle"),body:o("activity.signInBody"),cta:{label:o("storeSettings.signIn"),onClick:()=>s()},ctaVariant:"solid",fill:!0})});const ie=st(it({purchases:x?b.items:[],sales:g?y.items:[],creditOrders:x?v.items:[],manaPurchases:x?j.items:[],rate:ye}),n),ve=x&&(b.isLoading||v.isLoading||j.isLoading)||g&&y.isLoading,se=x&&(b.isFetchingNextPage||v.isFetchingNextPage||j.isFetchingNextPage)||g&&y.isFetchingNextPage,je=x&&(b.hasNextPage||v.hasNextPage||j.hasNextPage)||g&&y.hasNextPage;function ke(){x&&b.hasNextPage&&b.fetchNextPage(),x&&v.hasNextPage&&v.fetchNextPage(),x&&j.hasNextPage&&j.fetchNextPage(),g&&y.hasNextPage&&y.fetchNextPage()}function we(u){if(i(u),!l)return;const I=new URLSearchParams(a);I.delete(W),I.delete(G),c(I,{replace:!0})}function Ie(){const u=new URLSearchParams(a);u.set(W,de),u.delete(G),c(u,{replace:!0})}return t.jsxs(ct,{children:[t.jsx(lt,{children:t.jsx(ut,{children:o("nav.activity")})}),t.jsxs(ht,{role:"tablist","aria-label":o("nav.activity"),children:[It.map(u=>t.jsx(he,{type:"button",role:"tab","aria-selected":!l&&n===u,"data-active":!l&&n===u,"data-testid":`activity-filter-${u}`,onClick:()=>we(u),children:o(`activity.filter.${u}`)},u)),m?t.jsxs(pt,{type:"button",role:"tab","aria-selected":l,"data-active":l,"data-testid":"activity-filter-migrate","aria-label":r?o("activity.migrate.chipAria",{count:r}):void 0,onClick:Ie,children:[o("activity.migrate.chip"),r?t.jsx(mt,{"data-testid":"activity-migrate-count","aria-hidden":!0,children:r}):null]}):null]}),l?t.jsx(f.Suspense,{fallback:t.jsx(xt,{"aria-busy":"true"}),children:t.jsx(wt,{})}):ve?t.jsx(re,{children:Array.from({length:5}).map((u,I)=>t.jsx(oe,{},I))}):ie.length===0?t.jsx(St,{filter:n}):t.jsxs(t.Fragment,{children:[t.jsxs(re,{children:[ie.map(u=>u.kind==="purchase"?t.jsx(Nt,{order:u.order},u.id):u.kind==="credit"?t.jsx(Tt,{order:u.order},u.id):u.kind==="mana-purchase"?t.jsx($t,{sale:u.sale},u.id):t.jsx(Pt,{sale:u.sale,payout:at(be,u.sale)},u.id)),se?t.jsx(oe,{}):null]}),t.jsx(Ge,{hasNextPage:je,isFetching:se,onLoadMore:ke})]})]})}export{Qt as Activity};
373
- //# sourceMappingURL=Activity-CjNbjbB8.js.map
372
+ `,ee=N.withComponent(Oe),wt=f.lazy(()=>Ce(()=>import("./index-x2xGnkT4.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16])).then(e=>({default:e.ImportListings}))),T=24,It=["all","purchases","sales"],W="section",de="listings",G="view",At="migrate";function A(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=f.useRef(null),[n,i]=f.useState(null),a=()=>{var l;const c=(l=s.current)==null?void 0:l.getBoundingClientRect();c&&i({top:c.bottom+8,left:c.left+c.width/2})};return t.jsxs(bt,{ref:s,tabIndex:0,onMouseEnter:a,onMouseLeave:()=>i(null),onFocus:a,onBlur:()=>i(null),children:[e,n?qe.createPortal(t.jsx(yt,{style:{top:n.top,left:n.left},role:"tooltip",children:o("activity.polygonMana")}),document.body):null]})}function Et({item:e}){const s=!!e.contractAddress&&!!e.itemId,n=!!e.tradeId||s,{data:i,isLoading:a}=E({queryKey:["order-line-display",e.tradeId,e.contractAddress,e.itemId],queryFn:()=>e.tradeId?Re(e.tradeId):Q(e.contractAddress,{itemId:e.itemId}),enabled:n,staleTime:5*6e4}),c=n&&a,l=(i==null?void 0:i.name)??o("activity.itemFallback"),r=(i==null?void 0:i.thumbnail)??"",p=B({contractAddress:i==null?void 0:i.contractAddress,tokenId:i==null?void 0:i.tokenId,itemId:i==null?void 0:i.itemId})??void 0,w=t.jsxs(t.Fragment,{children:[c?t.jsx(Z,{}):t.jsx(_,{children:r?t.jsx("img",{src:r,alt:l}):t.jsx(X,{name:"cart",size:20})}),t.jsxs(q,{children:[c?t.jsx(J,{}):t.jsx(O,{title:l,children:l}),e.quantity>1?t.jsx(z,{children:o("activity.quantity",{count:e.quantity})}):null]}),t.jsxs(me,{children:[t.jsx(L,{className:"ccy-mark"})," ",t.jsx(K,{credits:e.credits})]})]});return p?t.jsx(ee,{to:p,"data-link":"true",children:w}):t.jsx(N,{children:w})}function Lt({item:e}){const s=`@${e.registeredName}`;return t.jsxs(N,{"data-testid":"activity-name-line",children:[t.jsx(kt,{children:t.jsx("img",{src:Ue,alt:""})}),t.jsxs(q,{children:[t.jsx(O,{title:s,children:s}),t.jsx(z,{children:o("activity.nameRegistration")})]}),t.jsxs(me,{children:[t.jsx(L,{className:"ccy-mark"})," ",e.credits]})]})}function Nt({order:e}){const s=Je(e.lines),n=s.reduce((c,l)=>c+l.quantity,0),i=Ye(e.status),a=i==="SETTLED"?o("activity.completed"):i==="FAILED"?o("activity.failed"):o("activity.processing");return t.jsxs(S,{"data-testid":"purchase-order",children:[t.jsxs(C,{children:[t.jsxs(F,{children:[t.jsx(D,{children:A(e.createdAt)}),t.jsxs(M,{children:[o("activity.purchaseLabel")," · ",o("activity.itemCount",{count:n})]})]}),t.jsxs(H,{children:[t.jsx(R,{"data-status":i,children:a}),t.jsxs(k,{children:[t.jsx(L,{className:"ccy-mark"})," ",t.jsx(K,{credits:e.totalCredits})]})]})]}),i==="FAILED"?t.jsx(vt,{children:o("activity.purchaseFailedNote")}):null,t.jsx(Y,{children:s.map(c=>c.registeredName?t.jsx(Lt,{item:c},c.key):t.jsx(Et,{item:c},c.key))})]})}function $t({sale:e}){const{data:s,isLoading:n}=E({queryKey:["asset-display",e.contractAddress,e.tokenId,e.itemId],queryFn:()=>Q(e.contractAddress,{tokenId:e.tokenId,itemId:e.itemId}),enabled:!!e.contractAddress,staleTime:3e5}),i=(s==null?void 0:s.name)??o("activity.itemFallback"),a=(s==null?void 0:s.thumbnail)??"",c=B({contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId})??void 0,l=t.jsxs(t.Fragment,{children:[n?t.jsx(Z,{}):t.jsx(_,{children:a?t.jsx("img",{src:a,alt:i}):t.jsx(X,{name:"offer",size:20})}),t.jsxs(q,{children:[n?t.jsx(J,{}):t.jsx(O,{title:i,children:i}),t.jsx(z,{children:o("activity.boughtFrom",{account:xe(e.seller)})})]})]});return t.jsxs(S,{"data-testid":"activity-mana-purchase",children:[t.jsxs(C,{children:[t.jsxs(F,{children:[t.jsx(D,{children:A(e.createdAt)}),t.jsx(M,{children:o("activity.paidWithMana")})]}),t.jsxs(H,{children:[t.jsx(R,{"data-status":"SETTLED",children:o("activity.completed")}),t.jsxs(k,{children:[ge(e.manaWei)," ",t.jsx(fe,{children:t.jsx(pe,{src:le,alt:"MANA"})})]})]})]}),t.jsx(Y,{children:c?t.jsx(ee,{to:c,"data-link":"true",children:l}):t.jsx(N,{children:l})})]})}function Pt({sale:e,payout:s}){const{data:n,isLoading:i}=E({queryKey:["asset-display",e.contractAddress,e.tokenId,e.itemId],queryFn:()=>Q(e.contractAddress,{tokenId:e.tokenId,itemId:e.itemId}),enabled:!!e.contractAddress,staleTime:3e5}),a=(n==null?void 0:n.name)??o("activity.itemFallback"),c=(n==null?void 0:n.thumbnail)??"",l=B({contractAddress:e.contractAddress,tokenId:e.tokenId,itemId:e.itemId})??void 0,r=t.jsxs(t.Fragment,{children:[i?t.jsx(Z,{}):t.jsx(_,{children:c?t.jsx("img",{src:c,alt:a}):t.jsx(X,{name:"offer",size:20})}),t.jsxs(q,{children:[i?t.jsx(J,{}):t.jsx(O,{title:a,children:a}),t.jsxs(z,{children:[o("activity.soldTo",{account:xe(e.counterparty)}),s.kind==="pending"?` · ${o("activity.payoutPendingOn",{date:A(s.availableAt)})}`:""]})]})]});return t.jsxs(S,{"data-testid":"activity-sale",children:[t.jsxs(C,{children:[t.jsxs(F,{children:[t.jsx(D,{children:A(e.createdAt)}),t.jsx(M,{children:o("activity.saleLabel")})]}),t.jsxs(H,{children:[t.jsx(R,{"data-status":s.kind==="pending"?"PENDING":"SOLD",children:s.kind==="pending"?o("activity.payoutPending"):o("activity.sold")}),s.kind==="direct"?t.jsxs(k,{"data-kind":"income",children:["+",ge(e.manaWei)," ",t.jsx(fe,{children:t.jsx(pe,{src:le,alt:"MANA"})})]}):s.credits!==null?t.jsxs(k,{"data-kind":"income",children:[t.jsx(L,{className:"ccy-mark"})," +",Me(s.credits)]}):t.jsx(k,{"data-kind":"income",children:o("activity.payoutCredited")})]})]}),t.jsx(Y,{children:l?t.jsx(ee,{to:l,"data-link":"true",children:r}):t.jsx(N,{children:r})})]})}function Tt({order:e}){const s=`$${(e.usdCents/100).toFixed(2)}`,n=Fe(e.status),i=n==="SETTLED"?o("activity.completed"):n==="FAILED"?o("activity.failed"):n==="UNFINISHED"?o("activity.unfinished"):o("activity.processing"),a=U(m=>m.session),c=De(),[l,r]=f.useState(!1),p=e.status==="initiated"&&!!a;f.useEffect(()=>{const m=()=>r(!1);return window.addEventListener("pageshow",m),()=>window.removeEventListener("pageshow",m)},[]);async function w(){if(!(!a||l)){r(!0);try{const m=await He(e.id,a.identity);if(m.kind==="url"){if(/^https:\/\/([a-z0-9-]+\.)*stripe\.com\//i.test(m.url)){window.location.href=m.url;return}$.error(o("activity.resumeUnavailable"))}else m.kind==="expired"?($.info(o("activity.resumeExpired")),c.invalidateQueries({queryKey:["credit-orders"]})):m.kind==="paid"?($.success(o("activity.resumePaid")),c.invalidateQueries({queryKey:["credit-orders"]})):$.error(o("activity.resumeUnavailable"));r(!1)}catch{r(!1)}}}return t.jsx(S,{"data-testid":"credit-order",children:t.jsxs(C,{children:[t.jsx(gt,{children:t.jsx("img",{src:dt,alt:"","aria-hidden":!0})}),t.jsxs(F,{children:[t.jsx(D,{children:A(e.createdAt)}),t.jsxs(M,{children:[o("activity.creditPurchaseLabel")," · ",o("activity.creditPaid",{usd:s})]})]}),t.jsxs(H,{children:[p?t.jsx(ft,{type:"button",onClick:()=>void w(),disabled:l,"data-testid":"resume-order",children:l?o("activity.resuming"):o("activity.resume")}):null,t.jsx(R,{"data-status":n,children:i}),t.jsxs(k,{"data-kind":n==="UNFINISHED"?void 0:"income",children:[n==="UNFINISHED"?"":"+",t.jsx(L,{className:"ccy-mark"})," ",t.jsx(K,{credits:e.credits})]})]})]})})}function St({filter:e}){const s={all:o("activity.emptyAllBody"),purchases:o("activity.emptyPurchasesBody"),sales:o("activity.emptySalesBody")}[e];return t.jsx(jt,{children:t.jsx(ce,{testId:`activity-empty-${e}`,icon:We,title:o("activity.emptyTitle"),body:s,cta:{label:o("assets.empty.cta"),to:"/items"}})})}function Qt(){const{session:e,signIn:s}=U(),[n,i]=f.useState("all"),[a,c]=_e(),l=a.get(W)===de||a.get(G)===At;$e({title:l?o("seo.import.title"):o("nav.activity"),noindex:!0});const{count:r}=ze(),{count:p}=ot(),m=r!==void 0&&p!==void 0&&(r>0||p>0||l),x=!!e&&!l&&n!=="sales",g=!!e&&!l&&n!=="purchases",b=P(["purchases",e==null?void 0:e.address],u=>Se(e.address,e.identity,{first:T,skip:u}),{enabled:x}),y=P(["sales",e==null?void 0:e.address],u=>ne(e.address,{role:"seller",first:T,skip:u}),{enabled:g}),v=P(["credit-orders",e==null?void 0:e.address],u=>ae(e.address,e.identity,{first:T,skip:u}),{enabled:x}),j=P(["mana-purchases",e==null?void 0:e.address],u=>ne(e.address,{role:"buyer",first:T,skip:u}),{enabled:x}),{data:te}=E({queryKey:["sale-payouts",e==null?void 0:e.address],queryFn:()=>ae(e.address,e.identity,{first:200}).then(u=>u.payouts),enabled:g,staleTime:6e4}),be=f.useMemo(()=>nt(te),[te]),{data:ye}=Pe(g);if(!e)return t.jsx(Te,{children:t.jsx(ce,{testId:"activity-signin",icon:Ke,title:o("activity.signInTitle"),body:o("activity.signInBody"),cta:{label:o("storeSettings.signIn"),onClick:()=>s()},ctaVariant:"solid",fill:!0})});const ie=st(it({purchases:x?b.items:[],sales:g?y.items:[],creditOrders:x?v.items:[],manaPurchases:x?j.items:[],rate:ye}),n),ve=x&&(b.isLoading||v.isLoading||j.isLoading)||g&&y.isLoading,se=x&&(b.isFetchingNextPage||v.isFetchingNextPage||j.isFetchingNextPage)||g&&y.isFetchingNextPage,je=x&&(b.hasNextPage||v.hasNextPage||j.hasNextPage)||g&&y.hasNextPage;function ke(){x&&b.hasNextPage&&b.fetchNextPage(),x&&v.hasNextPage&&v.fetchNextPage(),x&&j.hasNextPage&&j.fetchNextPage(),g&&y.hasNextPage&&y.fetchNextPage()}function we(u){if(i(u),!l)return;const I=new URLSearchParams(a);I.delete(W),I.delete(G),c(I,{replace:!0})}function Ie(){const u=new URLSearchParams(a);u.set(W,de),u.delete(G),c(u,{replace:!0})}return t.jsxs(ct,{children:[t.jsx(lt,{children:t.jsx(ut,{children:o("nav.activity")})}),t.jsxs(ht,{role:"tablist","aria-label":o("nav.activity"),children:[It.map(u=>t.jsx(he,{type:"button",role:"tab","aria-selected":!l&&n===u,"data-active":!l&&n===u,"data-testid":`activity-filter-${u}`,onClick:()=>we(u),children:o(`activity.filter.${u}`)},u)),m?t.jsxs(pt,{type:"button",role:"tab","aria-selected":l,"data-active":l,"data-testid":"activity-filter-migrate","aria-label":r?o("activity.migrate.chipAria",{count:r}):void 0,onClick:Ie,children:[o("activity.migrate.chip"),r?t.jsx(mt,{"data-testid":"activity-migrate-count","aria-hidden":!0,children:r}):null]}):null]}),l?t.jsx(f.Suspense,{fallback:t.jsx(xt,{"aria-busy":"true"}),children:t.jsx(wt,{})}):ve?t.jsx(re,{children:Array.from({length:5}).map((u,I)=>t.jsx(oe,{},I))}):ie.length===0?t.jsx(St,{filter:n}):t.jsxs(t.Fragment,{children:[t.jsxs(re,{children:[ie.map(u=>u.kind==="purchase"?t.jsx(Nt,{order:u.order},u.id):u.kind==="credit"?t.jsx(Tt,{order:u.order},u.id):u.kind==="mana-purchase"?t.jsx($t,{sale:u.sale},u.id):t.jsx(Pt,{sale:u.sale,payout:at(be,u.sale)},u.id)),se?t.jsx(oe,{}):null]}),t.jsx(Ge,{hasNextPage:je,isFetching:se,onLoadMore:ke})]})]})}export{Qt as Activity};
373
+ //# sourceMappingURL=Activity-O6LT8hqU.js.map
@@ -1,4 +1,4 @@
1
- import{r as u,j as d}from"./react-DaBuTM6Q.js";import{s as m}from"./index-DzQkIbqv.js";import"./dcl-schemas-n1W5glLl.js";import"./sentry-ilLelGl_.js";import"./ethers-OrSZ5jmz.js";import"./intl-AKLEHPeO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="cd745ecd-27e1-4406-9f0d-aa23d7be0a29",e._sentryDebugIdIdentifier="sentry-dbid-cd745ecd-27e1-4406-9f0d-aa23d7be0a29")}catch{}})();const D="https://cdn.decentraland.org/@dcl/shop/1.13.1-35095058100.commit-8d694c8/_assets/custom-welcome-background-BxlFQma9.webp",P="https://cdn.decentraland.org/@dcl/shop/1.13.1-35095058100.commit-8d694c8/_assets/DCL_LogoPattern-BryBPc3d.png",L=`
1
+ import{r as u,j as d}from"./react-BDtnT4_L.js";import{s as f}from"./index-CyVGgMkK.js";import"./dcl-schemas-BfFZv5Pe.js";import"./sentry-DJtBihbA.js";import"./ethers-rfaBand6.js";import"./intl-AKLEHPeO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="279f19d4-0752-4708-b9ec-9f4cb0f7a02b",e._sentryDebugIdIdentifier="sentry-dbid-279f19d4-0752-4708-b9ec-9f4cb0f7a02b")}catch{}})();const D="https://cdn.decentraland.org/@dcl/shop/1.13.1-35110739985.commit-7718205/_assets/custom-welcome-background-BxlFQma9.webp",P="https://cdn.decentraland.org/@dcl/shop/1.13.1-35110739985.commit-7718205/_assets/DCL_LogoPattern-BryBPc3d.png",L=`
2
2
  attribute vec2 a_position;
3
3
  varying vec2 v_uv;
4
4
  void main() {
@@ -77,11 +77,11 @@ void main() {
77
77
 
78
78
  gl_FragColor = result;
79
79
  }
80
- `;function p(e,a,n){const r=e.createShader(a);return r?(e.shaderSource(r,n),e.compileShader(r),e.getShaderParameter(r,e.COMPILE_STATUS)?r:(console.error("Shader compile error:",e.getShaderInfoLog(r)),e.deleteShader(r),null)):null}function B(e,a,n){const r=e.createProgram();return r?(e.attachShader(r,a),e.attachShader(r,n),e.linkProgram(r),e.getProgramParameter(r,e.LINK_STATUS)?r:(console.error("Program link error:",e.getProgramInfoLog(r)),e.deleteProgram(r),null)):null}function F(e,a,n){const r=e.createTexture();if(!r)return null;e.bindTexture(e.TEXTURE_2D,r),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,new Uint8Array([128,128,128,255]));const o=new Image;return o.crossOrigin="anonymous",o.onload=()=>{n!=null&&n()||(e.bindTexture(e.TEXTURE_2D,r),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!0),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,o),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.generateMipmap(e.TEXTURE_2D))},o.src=a,r}const C=m.div`
80
+ `;function p(e,a,n){const r=e.createShader(a);return r?(e.shaderSource(r,n),e.compileShader(r),e.getShaderParameter(r,e.COMPILE_STATUS)?r:(console.error("Shader compile error:",e.getShaderInfoLog(r)),e.deleteShader(r),null)):null}function B(e,a,n){const r=e.createProgram();return r?(e.attachShader(r,a),e.attachShader(r,n),e.linkProgram(r),e.getProgramParameter(r,e.LINK_STATUS)?r:(console.error("Program link error:",e.getProgramInfoLog(r)),e.deleteProgram(r),null)):null}function F(e,a,n){const r=e.createTexture();if(!r)return null;e.bindTexture(e.TEXTURE_2D,r),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,new Uint8Array([128,128,128,255]));const o=new Image;return o.crossOrigin="anonymous",o.onload=()=>{n!=null&&n()||(e.bindTexture(e.TEXTURE_2D,r),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!0),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,o),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.generateMipmap(e.TEXTURE_2D))},o.src=a,r}const C=f.div`
81
81
  position: absolute;
82
82
  inset: 0;
83
83
  overflow: hidden;
84
- `,k=m.div`
84
+ `,k=f.div`
85
85
  position: absolute;
86
86
  inset: 0;
87
87
  width: 100%;
@@ -89,10 +89,10 @@ void main() {
89
89
  background-size: cover;
90
90
  background-position: center;
91
91
  background-repeat: no-repeat;
92
- `,V=m.canvas`
92
+ `,V=f.canvas`
93
93
  position: absolute;
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 _;const o=a.current;if(!o||(_=window.matchMedia)!=null&&_.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,L),s=p(t,t.FRAGMENT_SHADER,I);if(!c||!s){c&&t.deleteShader(c),s&&t.deleteShader(s);return}const i=B(t,c,s);if(!i){t.deleteShader(c),t.deleteShader(s);return}const f=t.getAttribLocation(i,"a_position"),R=t.getUniformLocation(i,"u_time"),w=t.getUniformLocation(i,"u_resolution"),b=t.getUniformLocation(i,"u_overlayTex"),A=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 g=!1;const h=F(t,P,()=>g),S=()=>{const l=window.devicePixelRatio||1,E=o.clientWidth*l,x=o.clientHeight*l;(o.width!==E||o.height!==x)&&(o.width=E,o.height=x)},U=performance.now()/1e3,y=()=>{S(),t.viewport(0,0,o.width,o.height),t.useProgram(i),t.uniform1f(R,performance.now()/1e3-U),t.uniform2f(w,o.width,o.height),t.uniform1f(A,r.current),t.activeTexture(t.TEXTURE0),t.bindTexture(t.TEXTURE_2D,h),t.uniform1i(b,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(y)},T=l=>{l.preventDefault(),cancelAnimationFrame(n.current),o.style.opacity="0"};return o.addEventListener("webglcontextlost",T,!1),n.current=requestAnimationFrame(y),()=>{g=!0,cancelAnimationFrame(n.current),o.removeEventListener("webglcontextlost",T),t.deleteProgram(i),t.deleteShader(c),t.deleteShader(s),t.deleteBuffer(v),t.deleteTexture(h)}},[]),d.jsxs(C,{"aria-hidden":!0,children:[d.jsx(k,{style:{backgroundImage:`url(${D})`}}),d.jsx(V,{ref:a})]})}export{K as default};
98
- //# sourceMappingURL=AnimatedBackground-DsRNSmF9.js.map
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 _;const o=a.current;if(!o||(_=window.matchMedia)!=null&&_.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,L),s=p(t,t.FRAGMENT_SHADER,I);if(!c||!s){c&&t.deleteShader(c),s&&t.deleteShader(s);return}const i=B(t,c,s);if(!i){t.deleteShader(c),t.deleteShader(s);return}const m=t.getAttribLocation(i,"a_position"),R=t.getUniformLocation(i,"u_time"),w=t.getUniformLocation(i,"u_resolution"),b=t.getUniformLocation(i,"u_overlayTex"),A=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 g=!1;const h=F(t,P,()=>g),S=()=>{const l=window.devicePixelRatio||1,E=o.clientWidth*l,x=o.clientHeight*l;(o.width!==E||o.height!==x)&&(o.width=E,o.height=x)},U=performance.now()/1e3,y=()=>{S(),t.viewport(0,0,o.width,o.height),t.useProgram(i),t.uniform1f(R,performance.now()/1e3-U),t.uniform2f(w,o.width,o.height),t.uniform1f(A,r.current),t.activeTexture(t.TEXTURE0),t.bindTexture(t.TEXTURE_2D,h),t.uniform1i(b,0),t.enableVertexAttribArray(m),t.bindBuffer(t.ARRAY_BUFFER,v),t.vertexAttribPointer(m,2,t.FLOAT,!1,0,0),t.drawArrays(t.TRIANGLES,0,6),n.current=requestAnimationFrame(y)},T=l=>{l.preventDefault(),cancelAnimationFrame(n.current),o.style.opacity="0"};return o.addEventListener("webglcontextlost",T,!1),n.current=requestAnimationFrame(y),()=>{g=!0,cancelAnimationFrame(n.current),o.removeEventListener("webglcontextlost",T),t.deleteProgram(i),t.deleteShader(c),t.deleteShader(s),t.deleteBuffer(v),t.deleteTexture(h)}},[]),d.jsxs(C,{"aria-hidden":!0,children:[d.jsx(k,{style:{backgroundImage:`url(${D})`}}),d.jsx(V,{ref:a})]})}export{K as default};
98
+ //# sourceMappingURL=AnimatedBackground-CB4PvfXA.js.map
@@ -1,4 +1,4 @@
1
- import{r as u,u as Ve,j as e,a as dt}from"./react-DaBuTM6Q.js";import{e as Q,r as ht,h as pt,bH as ut,bD as ft,aI as mt,j as xt,D as gt,cJ as bt,cK as yt,s as i,d as t,E as Qe,bn as wt,L as vt,S as $e,c as s,J as jt,I as _,K as D,cL as he,bl as Ct,al as ce,bx as We,bG as $t,bF as kt,H as Ze,X as Ke,m as Je,cM as St,F as Et,az as Tt,Z as Rt,a0 as Fe,a1 as te,aQ as _t,bQ as It}from"./index-DzQkIbqv.js";import{u as Lt,s as Nt}from"./search-empty-CiaPLxpu.js";import{i as At,u as zt,j as Mt,S as Wt,R as Ft,a as Bt,b as Pt,c as Ot,D as Ut,d as Ht,C as Dt,e as Gt,F as qt,f as Vt,g as Qt,M as Zt,h as Kt}from"./browseLayout.styles-6-W9YjOC.js";import{L as Jt}from"./LoadMore-3LNbX1EU.js";import{u as Xt}from"./useInfiniteGrid-DpNO4hZU.js";import{n as Yt,S as en}from"./categories-Dquh1vbV.js";import{E as tn}from"./ErrorNotice-Dhs1BLZ6.js";import{d as nn}from"./dcl-schemas-n1W5glLl.js";import{s as sn,G as on,w as an,S as rn}from"./buy-gasless-CQdgMa0F.js";import{t as ln,u as cn}from"./buy-BkbR80Gf.js";import{f as dn}from"./errors-DhRbQUQ8.js";import{J as hn,C as pn,B as ke}from"./ethers-OrSZ5jmz.js";import{n as un}from"./name-glyph-aUugT8vq.js";import{c as fn}from"./crumbs.styles-N13K8LJF.js";import{G as mn}from"./grid.styles-CbKnaEaH.js";import"./sentry-ilLelGl_.js";import"./intl-AKLEHPeO.js";import"./skeleton.styles-B7ceCvK9.js";import"./authorizations-D_SudRT-.js";import"./sendMetaTransaction-D_Udygrx.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new n.Error().stack;o&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[o]="741d3684-b4e5-44ca-85b7-73742ab25d68",n._sentryDebugIdIdentifier="sentry-dbid-741d3684-b4e5-44ca-85b7-73742ab25d68")}catch{}})();function ne(n){const o=n.source??"item",r=n.tradeId||`${n.contractAddress}-${n.tokenId??n.itemId??""}`;return`${o}:${r}`}const K="100000000000000000000",Xe=2,de=15,xn=/^[a-zA-Z0-9]+$/;function Be(n){const o=n.trim();return o.length===0?{ok:!1,reason:"empty"}:xn.test(o)?o.length<Xe?{ok:!1,reason:"too-short"}:o.length>de?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function gn(n){return n.replace(/[^a-zA-Z0-9]/g,"").slice(0,de)}const bn=["function available(string _subdomain) view returns (bool)"],Pe={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function yn(){return Q.chainId===Number(nn.ChainId.MATIC_MAINNET)?Pe.mainnet:Pe.sepolia}async function wn(n,o={}){var m;const{rpc:r,address:h}=yn(),d=new hn(r),b=new pn(h,bn,d);console.info(`[names] availability check → DCLRegistrar(${h}).available("${n}") on ${r}`);const l=await b.available(n);if((m=o.signal)!=null&&m.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${n}" available=${l}`),l?"available":"taken"}const vn="https://app.across.to/api";class Te extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}class Se extends Error{constructor(){super("The name could not be registered on Ethereum; your funds were recovered."),this.name="NameNotRegisteredError"}}class Ee extends Error{constructor(){super("We couldn't confirm whether the purchase went through."),this.name="NameSettlementUnknownError"}}function jn(n){return mt(K,n)}async function Cn(n,o,r={}){var m;const h=r.chainId??Q.chainId,d=r.provider??"across",b=`${Q.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(o)}&chainId=${h}&provider=${d}`,l=await xt(b,{method:"GET",identity:n,metadata:{}});if(!l.ok){let c;try{c=(m=await l.json())==null?void 0:m.code}catch{}throw c==="ROUTE_COST_TOO_HIGH"?new Te:new Error(`fetchNameCreditRoute ${l.status}`)}return l.json()}function $n(n,o){const r=ke.from(n.availableAmount),d=ke.from(K).sub(r);return{credits:[{value:n.amount,expiresAt:Number(n.expiresAt),salt:cn(n.id)}],creditsSignatures:[n.signature],externalCall:{target:o.externalCall.target,selector:o.externalCall.selector,data:o.externalCall.data,expiresAt:o.externalCall.expiresAt,salt:o.externalCall.salt},customExternalCallSignature:o.customExternalCallSignature,maxUncreditedValue:d.isNegative()?"0":d.toString(),maxCreditedValue:K}}async function kn(n,o={}){const r=vn,h=o.intervalMs??1e4,d=o.maxAttempts??60;let b={status:"pending",destinationTxHash:null,actionsSucceeded:null};for(let l=0;l<d;l++){try{const m=await fetch(`${r}/deposit/status?originChainId=137&depositTxHash=${n}`);if(m.ok){const c=await m.json(),y=(c.status??"pending").toLowerCase(),f=c.fillTx??c.fillTxnRef??null,j=typeof c.actionsSucceeded=="boolean"?c.actionsSucceeded:null;if(y==="filled")return{status:"filled",destinationTxHash:f,actionsSucceeded:j};if(y==="refunded"||y==="expired")return{status:y,destinationTxHash:null,actionsSucceeded:!1};b={status:"pending",destinationTxHash:f,actionsSucceeded:j}}}catch{}l<d-1&&await new Promise(m=>setTimeout(m,h))}return b}async function Sn(n){const{name:o,identity:r,signer:h}=n,d=f=>{var j;try{(j=n.onProgress)==null||j.call(n,f)}catch{}},b=n.chainId??Q.chainId,l=n.provider??"across",m=(n.beneficiary??await h.getAddress()).toLowerCase();let c=null,y="unconfirmed";console.info("[names] register start",{name:o,buyer:m,chainId:b,provider:l}),d("preparing");try{const f=await ht(pt(Q.chainId).address),j=jn(f);console.info("[names] step 1/6 sized reservation",{usdCents:j,manaRate:f});const C=await Cn(r,o,{chainId:b,provider:l});console.info("[names] step 2/6 route fetched",{target:C.externalCall.target,selector:C.externalCall.selector,provider:C.provider,quoteId:C.quoteId});const x=await ut(r,j,void 0,void 0,o);if(c=x.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:x.credit.id,maxCreditedValue:x.maxCreditedValue}),ke.from(x.maxCreditedValue).lt(K))throw new Error("Credit under-sized for the name price");d("awaiting-confirmation");const S=$n(x.credit,C);let p;try{p=await sn({chainId:b,buyer:m,signer:h,args:S})}catch(g){if(!(g instanceof on))throw g;if(g.reason==="relayer-unreachable"){y="unobservable";const I=new Ee;throw I.cause=g,I}p=await ln(b,S,h)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:p}),d("confirming"),await an(p),y="confirmed",console.info("[names] step 5/6 origin tx confirmed",{originTxHash:p}),l==="across"){d("registering");const g=await kn(p,n.acrossPoll);if(console.info("[names] step 6/6 across status",g),g.status==="pending")return{status:"pending",originTxHash:p};if(g.status==="filled"&&g.actionsSucceeded===null)return console.warn("[names] across filled without reporting actionsSucceeded — reporting pending",{originTxHash:p}),{status:"pending",originTxHash:p};if(g.status!=="filled"||g.actionsSucceeded!==!0)throw new Se;return{status:"registered",originTxHash:p,destinationTxHash:g.destinationTxHash}}return{status:"pending",originTxHash:p}}catch(f){if(console.error("[names] register failed — raw error:",f,{name:o,buyer:m,originState:y}),f instanceof rn)return{status:"pending",originTxHash:f.txHash};if(c&&y==="unconfirmed"&&await ft(r,[c]).catch(()=>{}),f instanceof Te||f instanceof Se||f instanceof Ee)throw f;const j=new Error(dn(f,"Couldn't register the name. Please try again.",{sale:!0}));throw j.cause=f,j}}function En(){const{data:n}=gt({queryKey:["feature-flag","shop-names"],queryFn:()=>bt(yt.SHOP_NAMES),staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return n===!0}const Tn=60,Rn=700,_n=25;function In(n){if(!n)return[];const o=[];for(let r=1;r<=n.length;r++)o.push({text:n.slice(0,r),delay:Tn});o[o.length-1]={text:n,delay:Rn};for(let r=n.length-1;r>=1;r--)o.push({text:n.slice(0,r),delay:_n});return o}function Ln(n){return n.flatMap(In)}function Nn(n,o){const r=u.useMemo(()=>Ln(n),[n]),[h,d]=u.useState(0);return u.useEffect(()=>{if(!o||r.length===0)return;const b=setTimeout(()=>d(l=>(l+1)%r.length),r[h%r.length].delay);return()=>clearTimeout(b)},[h,o,r]),!o||r.length===0?"":r[h%r.length].text}const An="https://cdn.decentraland.org/@dcl/shop/1.13.1-35095058100.commit-8d694c8/_assets/name-verified-oGwQ3ntb.svg",zn="#34fee6",Mn=i.div`
1
+ import{r as u,u as Ve,j as e,a as dt}from"./react-BDtnT4_L.js";import{e as Q,r as ht,h as pt,bH as ut,bD as ft,aI as mt,j as xt,D as gt,cJ as bt,cK as yt,s as i,d as t,E as Qe,bn as wt,L as vt,S as $e,c as s,J as jt,I as _,K as D,cL as he,bl as Ct,al as ce,bx as We,bG as $t,bF as kt,H as Ze,X as Ke,m as Je,cM as St,F as Et,az as Tt,Z as Rt,a0 as Fe,a1 as te,aQ as _t,bQ as It}from"./index-CyVGgMkK.js";import{u as Lt,s as Nt}from"./search-empty-D0-TyK_V.js";import{i as At,u as zt,j as Mt,S as Wt,R as Ft,a as Bt,b as Pt,c as Ot,D as Ut,d as Ht,C as Dt,e as Gt,F as qt,f as Vt,g as Qt,M as Zt,h as Kt}from"./browseLayout.styles-DJ6ptfco.js";import{L as Jt}from"./LoadMore-D1ApwWXh.js";import{u as Xt}from"./useInfiniteGrid-3LXYF7KT.js";import{n as Yt,S as en}from"./categories-BNbtxrs7.js";import{E as tn}from"./ErrorNotice-CehMoY9b.js";import{d as nn}from"./dcl-schemas-BfFZv5Pe.js";import{s as sn,G as on,w as an,S as rn}from"./buy-gasless-DG2qGHrJ.js";import{t as ln,u as cn}from"./buy-CiksvueJ.js";import{f as dn}from"./errors-BAO7_A7a.js";import{J as hn,C as pn,B as ke}from"./ethers-rfaBand6.js";import{n as un}from"./name-glyph-aUugT8vq.js";import{c as fn}from"./crumbs.styles-BD0KsEdc.js";import{G as mn}from"./grid.styles-BRtgKeAE.js";import"./sentry-DJtBihbA.js";import"./intl-AKLEHPeO.js";import"./skeleton.styles-Cqgtx7q8.js";import"./authorizations-BF60RZYU.js";import"./sendMetaTransaction-CVkzKCvR.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new n.Error().stack;o&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[o]="9748e949-af63-43ab-808f-29ad63da4ba6",n._sentryDebugIdIdentifier="sentry-dbid-9748e949-af63-43ab-808f-29ad63da4ba6")}catch{}})();function ne(n){const o=n.source??"item",r=n.tradeId||`${n.contractAddress}-${n.tokenId??n.itemId??""}`;return`${o}:${r}`}const K="100000000000000000000",Xe=2,de=15,xn=/^[a-zA-Z0-9]+$/;function Be(n){const o=n.trim();return o.length===0?{ok:!1,reason:"empty"}:xn.test(o)?o.length<Xe?{ok:!1,reason:"too-short"}:o.length>de?{ok:!1,reason:"too-long"}:{ok:!0}:{ok:!1,reason:"invalid-chars"}}function gn(n){return n.replace(/[^a-zA-Z0-9]/g,"").slice(0,de)}const bn=["function available(string _subdomain) view returns (bool)"],Pe={mainnet:{rpc:"https://rpc.decentraland.org/mainnet",address:"0x2a187453064356c898cae034eaed119e1663acb8"},sepolia:{rpc:"https://rpc.decentraland.org/sepolia",address:"0x7518456ae93eb98f3e64571b689c626616bb7f30"}};function yn(){return Q.chainId===Number(nn.ChainId.MATIC_MAINNET)?Pe.mainnet:Pe.sepolia}async function wn(n,o={}){var m;const{rpc:r,address:h}=yn(),d=new hn(r),b=new pn(h,bn,d);console.info(`[names] availability check → DCLRegistrar(${h}).available("${n}") on ${r}`);const l=await b.available(n);if((m=o.signal)!=null&&m.aborted)throw new DOMException("Aborted","AbortError");return console.info(`[names] "${n}" available=${l}`),l?"available":"taken"}const vn="https://app.across.to/api";class Te extends Error{constructor(){super("Name registration is temporarily unavailable due to high network costs"),this.name="NameRouteCostTooHighError"}}class Se extends Error{constructor(){super("The name could not be registered on Ethereum; your funds were recovered."),this.name="NameNotRegisteredError"}}class Ee extends Error{constructor(){super("We couldn't confirm whether the purchase went through."),this.name="NameSettlementUnknownError"}}function jn(n){return mt(K,n)}async function Cn(n,o,r={}){var m;const h=r.chainId??Q.chainId,d=r.provider??"across",b=`${Q.creditsServerUrl}/credits-name-route?name=${encodeURIComponent(o)}&chainId=${h}&provider=${d}`,l=await xt(b,{method:"GET",identity:n,metadata:{}});if(!l.ok){let c;try{c=(m=await l.json())==null?void 0:m.code}catch{}throw c==="ROUTE_COST_TOO_HIGH"?new Te:new Error(`fetchNameCreditRoute ${l.status}`)}return l.json()}function $n(n,o){const r=ke.from(n.availableAmount),d=ke.from(K).sub(r);return{credits:[{value:n.amount,expiresAt:Number(n.expiresAt),salt:cn(n.id)}],creditsSignatures:[n.signature],externalCall:{target:o.externalCall.target,selector:o.externalCall.selector,data:o.externalCall.data,expiresAt:o.externalCall.expiresAt,salt:o.externalCall.salt},customExternalCallSignature:o.customExternalCallSignature,maxUncreditedValue:d.isNegative()?"0":d.toString(),maxCreditedValue:K}}async function kn(n,o={}){const r=vn,h=o.intervalMs??1e4,d=o.maxAttempts??60;let b={status:"pending",destinationTxHash:null,actionsSucceeded:null};for(let l=0;l<d;l++){try{const m=await fetch(`${r}/deposit/status?originChainId=137&depositTxHash=${n}`);if(m.ok){const c=await m.json(),y=(c.status??"pending").toLowerCase(),f=c.fillTx??c.fillTxnRef??null,j=typeof c.actionsSucceeded=="boolean"?c.actionsSucceeded:null;if(y==="filled")return{status:"filled",destinationTxHash:f,actionsSucceeded:j};if(y==="refunded"||y==="expired")return{status:y,destinationTxHash:null,actionsSucceeded:!1};b={status:"pending",destinationTxHash:f,actionsSucceeded:j}}}catch{}l<d-1&&await new Promise(m=>setTimeout(m,h))}return b}async function Sn(n){const{name:o,identity:r,signer:h}=n,d=f=>{var j;try{(j=n.onProgress)==null||j.call(n,f)}catch{}},b=n.chainId??Q.chainId,l=n.provider??"across",m=(n.beneficiary??await h.getAddress()).toLowerCase();let c=null,y="unconfirmed";console.info("[names] register start",{name:o,buyer:m,chainId:b,provider:l}),d("preparing");try{const f=await ht(pt(Q.chainId).address),j=jn(f);console.info("[names] step 1/6 sized reservation",{usdCents:j,manaRate:f});const C=await Cn(r,o,{chainId:b,provider:l});console.info("[names] step 2/6 route fetched",{target:C.externalCall.target,selector:C.externalCall.selector,provider:C.provider,quoteId:C.quoteId});const x=await ut(r,j,void 0,void 0,o);if(c=x.credit.id,console.info("[names] step 3/6 credit authorized",{creditId:x.credit.id,maxCreditedValue:x.maxCreditedValue}),ke.from(x.maxCreditedValue).lt(K))throw new Error("Credit under-sized for the name price");d("awaiting-confirmation");const S=$n(x.credit,C);let p;try{p=await sn({chainId:b,buyer:m,signer:h,args:S})}catch(g){if(!(g instanceof on))throw g;if(g.reason==="relayer-unreachable"){y="unobservable";const I=new Ee;throw I.cause=g,I}p=await ln(b,S,h)}if(console.info("[names] step 4/6 useCredits submitted (Polygon origin tx)",{originTxHash:p}),d("confirming"),await an(p),y="confirmed",console.info("[names] step 5/6 origin tx confirmed",{originTxHash:p}),l==="across"){d("registering");const g=await kn(p,n.acrossPoll);if(console.info("[names] step 6/6 across status",g),g.status==="pending")return{status:"pending",originTxHash:p};if(g.status==="filled"&&g.actionsSucceeded===null)return console.warn("[names] across filled without reporting actionsSucceeded — reporting pending",{originTxHash:p}),{status:"pending",originTxHash:p};if(g.status!=="filled"||g.actionsSucceeded!==!0)throw new Se;return{status:"registered",originTxHash:p,destinationTxHash:g.destinationTxHash}}return{status:"pending",originTxHash:p}}catch(f){if(console.error("[names] register failed — raw error:",f,{name:o,buyer:m,originState:y}),f instanceof rn)return{status:"pending",originTxHash:f.txHash};if(c&&y==="unconfirmed"&&await ft(r,[c]).catch(()=>{}),f instanceof Te||f instanceof Se||f instanceof Ee)throw f;const j=new Error(dn(f,"Couldn't register the name. Please try again.",{sale:!0}));throw j.cause=f,j}}function En(){const{data:n}=gt({queryKey:["feature-flag","shop-names"],queryFn:()=>bt(yt.SHOP_NAMES),staleTime:6e4,refetchOnWindowFocus:!0,retry:1});return n===!0}const Tn=60,Rn=700,_n=25;function In(n){if(!n)return[];const o=[];for(let r=1;r<=n.length;r++)o.push({text:n.slice(0,r),delay:Tn});o[o.length-1]={text:n,delay:Rn};for(let r=n.length-1;r>=1;r--)o.push({text:n.slice(0,r),delay:_n});return o}function Ln(n){return n.flatMap(In)}function Nn(n,o){const r=u.useMemo(()=>Ln(n),[n]),[h,d]=u.useState(0);return u.useEffect(()=>{if(!o||r.length===0)return;const b=setTimeout(()=>d(l=>(l+1)%r.length),r[h%r.length].delay);return()=>clearTimeout(b)},[h,o,r]),!o||r.length===0?"":r[h%r.length].text}const An="https://cdn.decentraland.org/@dcl/shop/1.13.1-35110739985.commit-7718205/_assets/name-verified-oGwQ3ntb.svg",zn="#34fee6",Mn=i.div`
2
2
  position: fixed;
3
3
  inset: 0;
4
4
  z-index: 10000;
@@ -458,7 +458,7 @@ import{r as u,u as Ve,j as e,a as dt}from"./react-DaBuTM6Q.js";import{e as Q,r a
458
458
  color: ${t.colors.accent};
459
459
  }
460
460
  }
461
- `;function rs({name:n,priceCredits:o,onClose:r}){const{session:h}=Qe(),{data:d,isError:b}=wt(h),l=vt(),m=Ve(),[c,y]=u.useState("confirm"),[f,j]=u.useState(""),[C,x]=u.useState(null),[S,p]=u.useState(!1),[g,I]=u.useState("preparing"),L=u.useRef(!1),N=f.trim().toLowerCase()===n.toLowerCase(),E=c==="completing",P=o!=null?$e(o):"—",$=o==null,k=d==null?void 0:d.credits,A=o!=null&&k!=null?o-k:0,T=A>0,G=$?s("names.priceUnavailable"):T?s("names.insufficientCredits",{credits:$e(A)}):null;u.useEffect(()=>{const w=O=>{O.key==="Escape"&&!E&&r()};document.addEventListener("keydown",w);const B=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",w),document.body.style.overflow=B}},[E,r]);async function z(){if(!(!h||!N||$||T||L.current)){L.current=!0,y("completing"),x(null),I("preparing");try{const w=await Sn({name:n,identity:h.identity,signer:h.signer,onProgress:I});ce("Shop Completed Purchase",{items:[{item_id:null,contract_address:null,token_id:null,price_usd:We(o??0),category:"name",is_smart:!1}],purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:o??null,value_usd:We(o??0),transaction_hash:w.originTxHash??null,settlement:w.status}),l.invalidateQueries({queryKey:["usd-balance"]}),l.invalidateQueries({queryKey:["my-assets"]}),y(w.status==="registered"?"success":"pending")}catch(w){ce(kt(w)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:$t(w),purchase_type:"name"});const B=w instanceof Se,O=w instanceof Ee;x(w instanceof Te?s("names.errorRouteCost"):B?s("names.errorNotRegistered"):O?s("names.errorSettlementUnknown"):(w==null?void 0:w.message)||s("names.errorGeneric")),p(B||O),y("error")}finally{L.current=!1}}}const M=c!=="success"&&c!=="pending",v=jt(h==null?void 0:h.providerType),W=v?2:1,F=v&&(g==="preparing"||g==="awaiting-confirmation"),R=F?1:W,J=F?s("names.confirming"):s("names.completing"),Z=g==="registering"?s("names.processingRegistering"):null;return e.jsx(Mn,{onClick:E?void 0:r,role:"presentation",children:e.jsxs(Wn,{role:"dialog","aria-modal":"true","aria-label":s("names.buyTitle"),onClick:w=>w.stopPropagation(),children:[M&&e.jsxs(e.Fragment,{children:[e.jsxs(pe,{children:[e.jsx(ue,{children:c==="error"?s("names.errorTitle"):s("names.buyTitle")}),e.jsx(fe,{onClick:r,disabled:E,"aria-label":s("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(me,{children:[s("names.myCreditsBalance")," ",e.jsx(D,{})," ",he(d,b)]}),e.jsx(xe,{})]}),(c==="confirm"||c==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs(ge,{children:[e.jsx(Oe,{"aria-hidden":!0,children:"@"}),e.jsxs(be,{children:[e.jsxs(ye,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(we,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(D,{}),P]})]}),c==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(Ce,{children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsx("span",{children:C})]}),S?e.jsx(je,{onClick:r,children:s("names.errorSpentDismiss")}):e.jsx(je,{onClick:()=>y("confirm"),children:s("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(Un,{children:[e.jsx(Hn,{children:s("names.confirmTitle")}),e.jsx(Dn,{dangerouslySetInnerHTML:{__html:s("names.confirmBody",{name:`<b>@${ls(n)}</b>`})}}),e.jsxs(Gn,{children:[e.jsx(qn,{"aria-hidden":!0,children:"@"}),e.jsx(Vn,{value:f,onChange:w=>j(w.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":s("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(f.length,8)}ch`}}),e.jsx(Qn,{children:".dcl.eth"})]})]}),G?e.jsxs(Ce,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsx("span",{children:G})]}):null,e.jsx(je,{onClick:()=>void z(),disabled:!N||!h||$||T,children:s("names.buyCta")})]})]}),c==="completing"&&e.jsxs(Zn,{children:[e.jsx(Kn,{src:Ct,alt:"",width:61,height:61}),e.jsxs(Jn,{children:[e.jsx(Xn,{children:J}),e.jsxs(es,{children:[e.jsx(ts,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(ns,{"data-testid":"name-progress-count",children:`${R}/${W}`})]}),Z?e.jsx(Yn,{children:Z}):null]})]}),c==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs(pe,{children:[e.jsx(ue,{children:s("names.pendingHeaderTitle")}),e.jsx(fe,{onClick:r,"aria-label":s("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(me,{children:[s("names.myCreditsBalance")," ",e.jsx(D,{})," ",he(d,b)]}),e.jsx(xe,{}),e.jsxs(Ce,{"data-tone":"info",children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("b",{children:s("names.pendingBannerBold")})," ",s("names.pendingBannerRest")]})]}),e.jsxs(ge,{style:{marginTop:20},children:[e.jsx(Oe,{"aria-hidden":!0,children:"@"}),e.jsxs(be,{children:[e.jsxs(ye,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(we,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(D,{}),P]})]}),e.jsx(Ue,{children:e.jsx(He,{onClick:()=>{r(),m("/my-items")},children:s("names.myItems")})})]}),c==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(pe,{children:[e.jsx(ue,{children:s("names.successHeaderTitle")}),e.jsx(fe,{onClick:r,"aria-label":s("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(me,{children:[s("names.myCreditsBalance")," ",e.jsx(D,{})," ",he(d,b)]}),e.jsx(xe,{}),e.jsxs(ss,{children:[e.jsx(is,{"aria-hidden":!0,children:e.jsx(_,{name:"check"})}),e.jsxs(os,{children:[e.jsx("b",{children:s("names.successBannerBold")})," ",s("names.successBannerRest")]})]}),e.jsxs(ge,{style:{marginTop:20},children:[e.jsxs(Fn,{"data-testid":"name-success-tile",children:[e.jsx(Bn,{src:un,alt:"","aria-hidden":!0,width:47,height:47}),e.jsxs(Pn,{children:[e.jsx("span",{"aria-hidden":!0,children:n}),e.jsx(On,{src:An,alt:"","aria-hidden":!0,width:14,height:14})]})]}),e.jsxs(be,{children:[e.jsxs(ye,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(we,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(D,{}),P]})]}),e.jsxs(Ue,{children:[e.jsx(He,{onClick:()=>{r(),m("/my-items")},children:s("names.myItems")}),e.jsx(as,{href:Q.profileUrl,target:"_blank",rel:"noopener noreferrer",children:s("names.assignToAvatar")})]})]})]})})}function ls(n){return n.replace(/[&<>"']/g,o=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[o])}const cs="https://cdn.decentraland.org/@dcl/shop/1.13.1-35095058100.commit-8d694c8/_assets/identity-icon-C8yAW_Gq.svg",ds="https://cdn.decentraland.org/@dcl/shop/1.13.1-35095058100.commit-8d694c8/_assets/world-icon-6xQ-PmmW.svg",hs="https://cdn.decentraland.org/@dcl/shop/1.13.1-35095058100.commit-8d694c8/_assets/invite-icon-Bz6lCTuB.svg",ps="data:image/svg+xml,%3csvg%20width='55.6797'%20height='63.6174'%20viewBox='0%200%2055.6797%2063.6174'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Vote'%3e%3cpath%20id='Vector'%20d='M0.055012%2039.1045C1.61191%2039.4989%202.83757%2039.3938%204.4307%2039.392L8.27108%2039.3878L20.7762%2039.3883L42.8819%2039.3904L50.0954%2039.3907C51.793%2039.3907%2054.0562%2039.5509%2055.6466%2039.0843C55.5909%2040.7931%2055.647%2042.8581%2055.6469%2044.5864L55.6479%2055.616L55.6559%2059.5618C55.6583%2060.6219%2055.8213%2061.9838%2055.261%2062.8837C55.2205%2062.9265%2055.1794%2062.9688%2055.1377%2063.0104C54.7986%2063.3482%2054.3791%2063.5594%2053.9021%2063.5761C52.0714%2063.642%2050.1544%2063.6097%2048.3241%2063.6078L37.4452%2063.6066L2.97352%2063.6103C2.2022%2063.6084%201.15943%2063.6718%200.589171%2063.0576C-0.204857%2062.2037%200.0327979%2060.3244%200.0349529%2059.1687L0.0414734%2054.3929C0.0413119%2049.3191%20-0.00749456%2044.1727%200.055012%2039.1045Z'%20fill='white'%20fill-opacity='0.8'/%3e%3cpath%20id='Subtract'%20d='M37.1168%200.00495927C38.1773%200.00461149%2039.2888%20-0.0284991%2040.3433%200.0811311C41.0714%200.15695%2041.7266%200.914583%2041.7857%201.63484C41.853%202.45491%2041.8268%203.31926%2041.8258%204.15144L41.8189%208.70418L41.8199%2023.9639L40.1099%2023.9659L13.8726%2023.963L13.8678%209.0909L13.8648%204.29793C13.8644%202.52652%2013.3942%200.34203%2015.6754%200.0342561C15.8907%200.016712%2016.237%200.0120998%2016.4557%200.0117952C21.6059%200.00480262%2026.761%200.0117634%2031.9107%200.00788896L37.1168%200.00495927ZM33.3834%206.17293C32.439%206.55612%2031.0531%208.12922%2030.3014%208.88191L25.8297%2013.3634C25.3537%2012.824%2023.3455%2010.7605%2022.8209%2010.4239C22.5581%2010.2549%2022.2566%2010.1546%2021.9449%2010.1329C21.4563%2010.1008%2020.9754%2010.2879%2020.6139%2010.6134C20.2442%2010.9428%2020.0227%2011.4077%2020.0006%2011.9024C19.9561%2013.0748%2021.3406%2014.1198%2022.1256%2014.8868C22.9429%2015.714%2024.1669%2017.1028%2025.1168%2017.67C26.1632%2018.2949%2027.3471%2017.2145%2027.9723%2016.4942C30.25%2014.2025%2032.5393%2011.9456%2034.8101%209.64949C35.2937%209.16062%2035.7138%208.69126%2035.6851%207.96199C35.6419%206.86558%2034.7821%206.09682%2033.6959%206.14656C33.5914%206.15085%2033.4872%206.16001%2033.3834%206.17293Z'%20fill='%23FF7439'/%3e%3cpath%20id='Vector_2'%20d='M45.5498%2015.976C46.6399%2015.986%2049.9504%2015.7705%2050.7361%2016.241C51.0104%2016.4053%2051.2831%2016.6446%2051.4181%2016.9397C51.892%2017.9763%2052.1015%2019.357%2052.3802%2020.4819L54.0582%2027.2308C54.5046%2028.9073%2054.9023%2030.6043%2055.3338%2032.2824C55.6029%2033.329%2055.9417%2034.4293%2054.9705%2035.2255C54.8158%2035.359%2054.4427%2035.5934%2054.2329%2035.6091C52.7731%2035.7184%2051.1693%2035.6701%2049.7108%2035.6679L39.4635%2035.6649L14.5239%2035.6632C10.471%2035.6631%206.41808%2035.6665%202.36531%2035.6698C1.79359%2035.6657%201.33794%2035.6604%200.844568%2035.337C-0.57365%2034.4073%200.381076%2032.2112%200.72189%2030.8501L1.93462%2025.9936L3.28579%2020.566C3.53371%2019.5688%203.77194%2018.5694%204.04289%2017.5781C4.30559%2016.6172%204.74298%2016.1492%205.73966%2015.9892C7.15095%2015.9419%208.72017%2015.9778%2010.1434%2015.9809L10.1451%2023.9585C7.37011%2024.097%207.74242%2027.5535%209.84963%2027.6469C11.6268%2027.7258%2013.6164%2027.6909%2015.4098%2027.691L26.229%2027.6915L39.1339%2027.691L43.273%2027.6909C44.748%2027.6909%2047.2174%2028.0848%2047.3773%2025.9908C47.4212%2025.4807%2047.2565%2024.9745%2046.9209%2024.5879C46.5265%2024.141%2046.1143%2024.0046%2045.5418%2023.9673L45.5498%2015.976Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",us=i.div`
461
+ `;function rs({name:n,priceCredits:o,onClose:r}){const{session:h}=Qe(),{data:d,isError:b}=wt(h),l=vt(),m=Ve(),[c,y]=u.useState("confirm"),[f,j]=u.useState(""),[C,x]=u.useState(null),[S,p]=u.useState(!1),[g,I]=u.useState("preparing"),L=u.useRef(!1),N=f.trim().toLowerCase()===n.toLowerCase(),E=c==="completing",P=o!=null?$e(o):"—",$=o==null,k=d==null?void 0:d.credits,A=o!=null&&k!=null?o-k:0,T=A>0,G=$?s("names.priceUnavailable"):T?s("names.insufficientCredits",{credits:$e(A)}):null;u.useEffect(()=>{const w=O=>{O.key==="Escape"&&!E&&r()};document.addEventListener("keydown",w);const B=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",w),document.body.style.overflow=B}},[E,r]);async function z(){if(!(!h||!N||$||T||L.current)){L.current=!0,y("completing"),x(null),I("preparing");try{const w=await Sn({name:n,identity:h.identity,signer:h.signer,onProgress:I});ce("Shop Completed Purchase",{items:[{item_id:null,contract_address:null,token_id:null,price_usd:We(o??0),category:"name",is_smart:!1}],purchase_type:"name",is_primary:!0,payment_type:"credits",value_credits:o??null,value_usd:We(o??0),transaction_hash:w.originTxHash??null,settlement:w.status}),l.invalidateQueries({queryKey:["usd-balance"]}),l.invalidateQueries({queryKey:["my-assets"]}),y(w.status==="registered"?"success":"pending")}catch(w){ce(kt(w)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:$t(w),purchase_type:"name"});const B=w instanceof Se,O=w instanceof Ee;x(w instanceof Te?s("names.errorRouteCost"):B?s("names.errorNotRegistered"):O?s("names.errorSettlementUnknown"):(w==null?void 0:w.message)||s("names.errorGeneric")),p(B||O),y("error")}finally{L.current=!1}}}const M=c!=="success"&&c!=="pending",v=jt(h==null?void 0:h.providerType),W=v?2:1,F=v&&(g==="preparing"||g==="awaiting-confirmation"),R=F?1:W,J=F?s("names.confirming"):s("names.completing"),Z=g==="registering"?s("names.processingRegistering"):null;return e.jsx(Mn,{onClick:E?void 0:r,role:"presentation",children:e.jsxs(Wn,{role:"dialog","aria-modal":"true","aria-label":s("names.buyTitle"),onClick:w=>w.stopPropagation(),children:[M&&e.jsxs(e.Fragment,{children:[e.jsxs(pe,{children:[e.jsx(ue,{children:c==="error"?s("names.errorTitle"):s("names.buyTitle")}),e.jsx(fe,{onClick:r,disabled:E,"aria-label":s("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(me,{children:[s("names.myCreditsBalance")," ",e.jsx(D,{})," ",he(d,b)]}),e.jsx(xe,{})]}),(c==="confirm"||c==="error")&&e.jsxs(e.Fragment,{children:[e.jsxs(ge,{children:[e.jsx(Oe,{"aria-hidden":!0,children:"@"}),e.jsxs(be,{children:[e.jsxs(ye,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(we,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(D,{}),P]})]}),c==="error"?e.jsxs(e.Fragment,{children:[e.jsxs(Ce,{children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsx("span",{children:C})]}),S?e.jsx(je,{onClick:r,children:s("names.errorSpentDismiss")}):e.jsx(je,{onClick:()=>y("confirm"),children:s("names.tryAgain")})]}):e.jsxs(e.Fragment,{children:[e.jsxs(Un,{children:[e.jsx(Hn,{children:s("names.confirmTitle")}),e.jsx(Dn,{dangerouslySetInnerHTML:{__html:s("names.confirmBody",{name:`<b>@${ls(n)}</b>`})}}),e.jsxs(Gn,{children:[e.jsx(qn,{"aria-hidden":!0,children:"@"}),e.jsx(Vn,{value:f,onChange:w=>j(w.target.value.replace(/[^a-zA-Z0-9]/g,"")),placeholder:"yourname","aria-label":s("names.reenterAria"),autoComplete:"off",spellCheck:!1,style:{width:`${Math.max(f.length,8)}ch`}}),e.jsx(Qn,{children:".dcl.eth"})]})]}),G?e.jsxs(Ce,{"data-tone":"info","data-testid":"name-blocked-reason",children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsx("span",{children:G})]}):null,e.jsx(je,{onClick:()=>void z(),disabled:!N||!h||$||T,children:s("names.buyCta")})]})]}),c==="completing"&&e.jsxs(Zn,{children:[e.jsx(Kn,{src:Ct,alt:"",width:61,height:61}),e.jsxs(Jn,{children:[e.jsx(Xn,{children:J}),e.jsxs(es,{children:[e.jsx(ts,{"aria-hidden":!0,children:e.jsx("span",{})}),e.jsx(ns,{"data-testid":"name-progress-count",children:`${R}/${W}`})]}),Z?e.jsx(Yn,{children:Z}):null]})]}),c==="pending"&&e.jsxs(e.Fragment,{children:[e.jsxs(pe,{children:[e.jsx(ue,{children:s("names.pendingHeaderTitle")}),e.jsx(fe,{onClick:r,"aria-label":s("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(me,{children:[s("names.myCreditsBalance")," ",e.jsx(D,{})," ",he(d,b)]}),e.jsx(xe,{}),e.jsxs(Ce,{"data-tone":"info",children:[e.jsx(_,{name:"info","aria-hidden":!0}),e.jsxs("span",{children:[e.jsx("b",{children:s("names.pendingBannerBold")})," ",s("names.pendingBannerRest")]})]}),e.jsxs(ge,{style:{marginTop:20},children:[e.jsx(Oe,{"aria-hidden":!0,children:"@"}),e.jsxs(be,{children:[e.jsxs(ye,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(we,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(D,{}),P]})]}),e.jsx(Ue,{children:e.jsx(He,{onClick:()=>{r(),m("/my-items")},children:s("names.myItems")})})]}),c==="success"&&e.jsxs(e.Fragment,{children:[e.jsxs(pe,{children:[e.jsx(ue,{children:s("names.successHeaderTitle")}),e.jsx(fe,{onClick:r,"aria-label":s("buyModal.close"),children:e.jsx(_,{name:"close"})})]}),e.jsxs(me,{children:[s("names.myCreditsBalance")," ",e.jsx(D,{})," ",he(d,b)]}),e.jsx(xe,{}),e.jsxs(ss,{children:[e.jsx(is,{"aria-hidden":!0,children:e.jsx(_,{name:"check"})}),e.jsxs(os,{children:[e.jsx("b",{children:s("names.successBannerBold")})," ",s("names.successBannerRest")]})]}),e.jsxs(ge,{style:{marginTop:20},children:[e.jsxs(Fn,{"data-testid":"name-success-tile",children:[e.jsx(Bn,{src:un,alt:"","aria-hidden":!0,width:47,height:47}),e.jsxs(Pn,{children:[e.jsx("span",{"aria-hidden":!0,children:n}),e.jsx(On,{src:An,alt:"","aria-hidden":!0,width:14,height:14})]})]}),e.jsxs(be,{children:[e.jsxs(ye,{children:[n,e.jsx("span",{children:".dcl.eth"})]}),e.jsx(we,{children:s("names.subtitle")})]}),e.jsxs(ve,{children:[e.jsx(D,{}),P]})]}),e.jsxs(Ue,{children:[e.jsx(He,{onClick:()=>{r(),m("/my-items")},children:s("names.myItems")}),e.jsx(as,{href:Q.profileUrl,target:"_blank",rel:"noopener noreferrer",children:s("names.assignToAvatar")})]})]})]})})}function ls(n){return n.replace(/[&<>"']/g,o=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[o])}const cs="https://cdn.decentraland.org/@dcl/shop/1.13.1-35110739985.commit-7718205/_assets/identity-icon-C8yAW_Gq.svg",ds="https://cdn.decentraland.org/@dcl/shop/1.13.1-35110739985.commit-7718205/_assets/world-icon-6xQ-PmmW.svg",hs="https://cdn.decentraland.org/@dcl/shop/1.13.1-35110739985.commit-7718205/_assets/invite-icon-Bz6lCTuB.svg",ps="data:image/svg+xml,%3csvg%20width='55.6797'%20height='63.6174'%20viewBox='0%200%2055.6797%2063.6174'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Vote'%3e%3cpath%20id='Vector'%20d='M0.055012%2039.1045C1.61191%2039.4989%202.83757%2039.3938%204.4307%2039.392L8.27108%2039.3878L20.7762%2039.3883L42.8819%2039.3904L50.0954%2039.3907C51.793%2039.3907%2054.0562%2039.5509%2055.6466%2039.0843C55.5909%2040.7931%2055.647%2042.8581%2055.6469%2044.5864L55.6479%2055.616L55.6559%2059.5618C55.6583%2060.6219%2055.8213%2061.9838%2055.261%2062.8837C55.2205%2062.9265%2055.1794%2062.9688%2055.1377%2063.0104C54.7986%2063.3482%2054.3791%2063.5594%2053.9021%2063.5761C52.0714%2063.642%2050.1544%2063.6097%2048.3241%2063.6078L37.4452%2063.6066L2.97352%2063.6103C2.2022%2063.6084%201.15943%2063.6718%200.589171%2063.0576C-0.204857%2062.2037%200.0327979%2060.3244%200.0349529%2059.1687L0.0414734%2054.3929C0.0413119%2049.3191%20-0.00749456%2044.1727%200.055012%2039.1045Z'%20fill='white'%20fill-opacity='0.8'/%3e%3cpath%20id='Subtract'%20d='M37.1168%200.00495927C38.1773%200.00461149%2039.2888%20-0.0284991%2040.3433%200.0811311C41.0714%200.15695%2041.7266%200.914583%2041.7857%201.63484C41.853%202.45491%2041.8268%203.31926%2041.8258%204.15144L41.8189%208.70418L41.8199%2023.9639L40.1099%2023.9659L13.8726%2023.963L13.8678%209.0909L13.8648%204.29793C13.8644%202.52652%2013.3942%200.34203%2015.6754%200.0342561C15.8907%200.016712%2016.237%200.0120998%2016.4557%200.0117952C21.6059%200.00480262%2026.761%200.0117634%2031.9107%200.00788896L37.1168%200.00495927ZM33.3834%206.17293C32.439%206.55612%2031.0531%208.12922%2030.3014%208.88191L25.8297%2013.3634C25.3537%2012.824%2023.3455%2010.7605%2022.8209%2010.4239C22.5581%2010.2549%2022.2566%2010.1546%2021.9449%2010.1329C21.4563%2010.1008%2020.9754%2010.2879%2020.6139%2010.6134C20.2442%2010.9428%2020.0227%2011.4077%2020.0006%2011.9024C19.9561%2013.0748%2021.3406%2014.1198%2022.1256%2014.8868C22.9429%2015.714%2024.1669%2017.1028%2025.1168%2017.67C26.1632%2018.2949%2027.3471%2017.2145%2027.9723%2016.4942C30.25%2014.2025%2032.5393%2011.9456%2034.8101%209.64949C35.2937%209.16062%2035.7138%208.69126%2035.6851%207.96199C35.6419%206.86558%2034.7821%206.09682%2033.6959%206.14656C33.5914%206.15085%2033.4872%206.16001%2033.3834%206.17293Z'%20fill='%23FF7439'/%3e%3cpath%20id='Vector_2'%20d='M45.5498%2015.976C46.6399%2015.986%2049.9504%2015.7705%2050.7361%2016.241C51.0104%2016.4053%2051.2831%2016.6446%2051.4181%2016.9397C51.892%2017.9763%2052.1015%2019.357%2052.3802%2020.4819L54.0582%2027.2308C54.5046%2028.9073%2054.9023%2030.6043%2055.3338%2032.2824C55.6029%2033.329%2055.9417%2034.4293%2054.9705%2035.2255C54.8158%2035.359%2054.4427%2035.5934%2054.2329%2035.6091C52.7731%2035.7184%2051.1693%2035.6701%2049.7108%2035.6679L39.4635%2035.6649L14.5239%2035.6632C10.471%2035.6631%206.41808%2035.6665%202.36531%2035.6698C1.79359%2035.6657%201.33794%2035.6604%200.844568%2035.337C-0.57365%2034.4073%200.381076%2032.2112%200.72189%2030.8501L1.93462%2025.9936L3.28579%2020.566C3.53371%2019.5688%203.77194%2018.5694%204.04289%2017.5781C4.30559%2016.6172%204.74298%2016.1492%205.73966%2015.9892C7.15095%2015.9419%208.72017%2015.9778%2010.1434%2015.9809L10.1451%2023.9585C7.37011%2024.097%207.74242%2027.5535%209.84963%2027.6469C11.6268%2027.7258%2013.6164%2027.6909%2015.4098%2027.691L26.229%2027.6915L39.1339%2027.691L43.273%2027.6909C44.748%2027.6909%2047.2174%2028.0848%2047.3773%2025.9908C47.4212%2025.4807%2047.2565%2024.9745%2046.9209%2024.5879C46.5265%2024.141%2046.1143%2024.0046%2045.5418%2023.9673L45.5498%2015.976Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",us=i.div`
462
462
  width: 100%;
463
463
  min-width: 0;
464
464
  `,fs=i.nav`
@@ -936,4 +936,4 @@ import{r as u,u as Ve,j as e,a as dt}from"./react-DaBuTM6Q.js";import{e as Q,r a
936
936
  color: ${t.colors.err};
937
937
  }
938
938
  `,qe=48,Qs=["all","on_sale","not_for_sale"],Zs=n=>n?"all":"on_sale";function gi({contracts:n,hideNames:o=!1,seo:r,lockStatus:h}={}){const[d]=dt(),b=Ve(),l=(d.get("q")??"").trim().toLowerCase(),m=(d.get("q")??"").trim();Ze(r??{title:m?s("seo.collectibles.searchTitle",{query:m}):s("seo.collectibles.title"),description:s("seo.collectibles.description")});const c=Zs(!!l),y=St(),f=y&&d.get("deals")==="true",j=u.useMemo(()=>({category:"all",status:c,subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,deals:!1,sort:f?"discount":"newest"}),[c,f]),[C,x]=Lt(j),{subCategory:S,rarities:p,priceMin:g,priceMax:I,smart:L,sort:N}=C,E=y&&C.deals,$=At.map(a=>a.key).filter(a=>!(o&&a==="names")).includes(C.category)?C.category:"all",k=h??(Qs.includes(C.status)?C.status:c);zt(`${$}:${S??""}`);const[A,T]=u.useState(!1);u.useEffect(()=>{if(!A)return;const a=ee=>{ee.key==="Escape"&&T(!1)};document.addEventListener("keydown",a);const H=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",a),document.body.style.overflow=H}},[A]);const G=n!==void 0&&n.length===0,z=k==="on_sale",M=g&&!Number.isNaN(Number(g))?Number(g):void 0,v=I&&!Number.isNaN(Number(I))?Number(I):void 0,W=Et(),F=S?en[S]:void 0,R=E?Mt:Wt,J=(R.find(a=>a.key===N)??R[0]).server,Z={category:$,rarities:p.length?p:void 0,wearableCategories:F,minPriceCredits:M,maxPriceCredits:v,search:l||void 0,sortBy:J,isSmart:L||void 0,onSale:!0,discounted:E||void 0,listingType:W?void 0:"primary",contractAddresses:n!=null&&n.length?n:void 0},w={category:$,rarities:p.length?p:void 0,wearableCategories:F,search:l||void 0,sortBy:J,isWearableSmart:L||void 0,isOnSale:k==="not_for_sale"?!1:void 0,contractAddresses:n!=null&&n.length?n:void 0},{items:B,total:O,isLoading:U,isPlaceholderData:q,error:Re,hasNextPage:tt,isFetchingNextPage:_e,isFetchNextPageError:nt,fetchNextPage:st}=Xt(z?["shop-items",Z]:["catalog-items",w],a=>z?_t({...Z,first:qe,skip:a}):It({...w,first:qe,skip:a}),{enabled:$!=="names"&&!G}),X=O,{data:Ie,isError:it,isPending:ot}=Ke(),at=a=>Ie&&a.manaWei?Je(a.manaWei,Ie):null,rt=z&&ot&&B.some(a=>a.source==="legacy"),Le=U||q||rt,lt=U?15:Math.max(B.length,1),Ne=u.useRef(null);u.useEffect(()=>{U||q||!l||Ne.current===l||(Ne.current=l,ce("Shop Searched",{query:l,result_count:X}))},[l,U,q,X]);const Y=u.useRef("__init__");u.useEffect(()=>{if(U||q)return;const a=JSON.stringify({category:$,subCategory:S,rarities:p,min:M,max:v,sort:N,status:k,smart:L});if(Y.current==="__init__"||Y.current===a){Y.current=a;return}Y.current=a,ce("Shop Applied Filter",{filters:{category:$,sub_category:S,rarities:p,min_price_credits:M??null,max_price_credits:v??null,status:k,smart:L,sort:N},result_count:X})},[$,S,p,M,v,N,k,L,U,q,X]);function Ae(a){x({category:a,subCategory:null})}function ze(a){x({status:a})}function Me(a){x({rarities:p.includes(a)?p.filter(H=>H!==a):[...p,a]})}function ct(){x(j)}const V=[];(M!=null||v!=null)&&V.push({key:"price",label:s("filter.price"),onRemove:()=>{x({priceMin:"",priceMax:""})}});for(const a of Ft)p.includes(a)&&V.push({key:`rarity-${a}`,label:Tt(a),onRemove:()=>Me(a)});return L&&V.push({key:"smart",label:s("filter.smart"),onRemove:()=>x({smart:!1})}),E&&V.push({key:"deals",label:s("filter.deals"),onRemove:()=>x({deals:!1,sort:"newest"})}),k!==c&&V.push({key:"status",label:k==="all"?s("filter.statusAll"):k==="on_sale"?s("filter.onSale"):s("filter.notForSale"),onRemove:()=>ze(c)}),e.jsxs(Bt,{"data-testid":"browse",children:[$!=="names"&&e.jsxs(e.Fragment,{children:[A?e.jsx(Pt,{onClick:()=>T(!1),"aria-hidden":!0}):null,e.jsxs(Ot,{"data-open":A||void 0,"data-testid":"browse-sidebar",children:[e.jsxs(Ut,{children:[e.jsx(Ht,{children:s("assets.filters")}),e.jsx(Dt,{onClick:()=>T(!1),"aria-label":s("assets.closeFilters"),children:"✕"})]}),e.jsx(Gt,{children:e.jsx(qt,{category:$,subCategory:S,onCategory:Ae,onSub:a=>x({subCategory:a}),priceMin:g,priceMax:I,onPriceMin:a=>x({priceMin:a}),onPriceMax:a=>x({priceMax:a}),rarities:p,onToggleRarity:Me,status:k,onStatus:ze,hideNames:o,smart:L,onSmart:a=>x({smart:a}),deals:E,onDeals:y?a=>x(a?{deals:!0,sort:"discount"}:{deals:!1,sort:"newest"}):void 0})}),e.jsx(Vt,{children:e.jsx(Qt,{type:"button",onClick:()=>T(!1),children:s("assets.showItems")})})]})]}),e.jsx(Zt,{children:$==="names"?e.jsx(qs,{onBack:()=>Ae("all")}):e.jsxs(e.Fragment,{children:[e.jsx(Kt,{sort:N,sortOptions:R,onSort:a=>x({sort:a}),total:O,loading:U||q,query:l,onOpenFilters:()=>T(!0),chips:V,onClearChips:ct}),it&&z&&B.some(a=>a.source==="legacy")?e.jsx(Vs,{"data-variant":"warn",children:s("assets.marketUnavailable")}):null,Re?e.jsx(tn,{message:s("assets.loadError"),testId:"browse-error"}):null,!Le&&B.length===0&&!Re?e.jsx(Rt,{testId:"browse-empty",icon:Nt,title:s("assets.empty.title"),body:m?e.jsxs(e.Fragment,{children:[s("assets.empty.searchBefore"),e.jsx("b",{children:m}),s("assets.empty.searchAfter")]}):s("assets.empty.filters"),cta:{label:s("assets.empty.cta"),onClick:()=>b("/overview")}}):e.jsxs(e.Fragment,{children:[e.jsx(mn,{"data-testid":"grid",children:Le?e.jsx(Fe,{count:lt}):e.jsxs(e.Fragment,{children:[B.map(a=>{if(!z)return e.jsx(te,{item:a,mode:"view"},ne(a));const H=a;if(H.source!=="legacy")return e.jsx(te,{item:a},ne(a));const ee=at(H);return ee==null?e.jsx(te,{item:a,mode:"view"},ne(a)):e.jsx(te,{item:{...H,priceCredits:ee}},ne(a))}),_e?e.jsx(Fe,{count:6}):null]})}),e.jsx(Jt,{hasNextPage:tt,isFetching:_e,isError:nt,onLoadMore:()=>void st()})]})]})})]})}export{gi as Assets};
939
- //# sourceMappingURL=Assets--xiu2hf1.js.map
939
+ //# sourceMappingURL=Assets-Ctos_NmX.js.map
@@ -1,4 +1,4 @@
1
- import{j as e,L as F,r as B}from"./react-DaBuTM6Q.js";import{d as o,s as n,G as K,k as P,H,c as i,E as Q,J as X,I as v,K as J,D as k,L as V,e as Z,M as U,N as T,i as Y,O as tt,P as D}from"./index-DzQkIbqv.js";import{c as et,d as it,e as C,a as ot,f as at,s as nt,g as st}from"./authorizations-D_SudRT-.js";import{f as rt}from"./builder-BCPamKJP.js";import{m as M}from"./mana-matic-CEqvSwrJ.js";import{f as ct}from"./errors-DhRbQUQ8.js";import"./dcl-schemas-n1W5glLl.js";import"./sentry-ilLelGl_.js";import"./ethers-OrSZ5jmz.js";import"./intl-AKLEHPeO.js";import"./sendMetaTransaction-D_Udygrx.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="b5bff7eb-01e2-4392-9125-40218127e2d1",t._sentryDebugIdIdentifier="sentry-dbid-b5bff7eb-01e2-4392-9125-40218127e2d1")}catch{}})();const lt=P`
1
+ import{j as e,L as F,r as B}from"./react-BDtnT4_L.js";import{d as o,s as n,G as K,k as P,H,c as i,E as Q,J as X,I as v,K as J,D as k,L as V,e as Z,M as U,N as T,i as Y,O as tt,P as D}from"./index-CyVGgMkK.js";import{c as et,d as it,e as C,a as ot,f as at,s as nt,g as st}from"./authorizations-BF60RZYU.js";import{f as rt}from"./builder-Bi-1rymv.js";import{m as M}from"./mana-matic-CEqvSwrJ.js";import{f as ct}from"./errors-BAO7_A7a.js";import"./dcl-schemas-BfFZv5Pe.js";import"./sentry-DJtBihbA.js";import"./ethers-rfaBand6.js";import"./intl-AKLEHPeO.js";import"./sendMetaTransaction-CVkzKCvR.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="b5bff7eb-01e2-4392-9125-40218127e2d1",t._sentryDebugIdIdentifier="sentry-dbid-b5bff7eb-01e2-4392-9125-40218127e2d1")}catch{}})();const lt=P`
2
2
  to { transform: rotate(360deg); }
3
3
  `,dt=P`
4
4
  to { background-position: -200% 0; }
@@ -189,4 +189,4 @@ import{j as e,L as F,r as B}from"./react-DaBuTM6Q.js";import{d as o,s as n,G as
189
189
  `,W=n(K)`
190
190
  margin-top: 12px;
191
191
  `;function y({descriptor:t,owner:s,signer:r,name:a,description:c,image:d,icon:g,revokeOnly:$=!1}){const m=V(),[z,j]=B.useState(!1),{data:u,isLoading:l,refetch:h}=k({queryKey:["authorization",t.id,s],queryFn:()=>st(t,s),staleTime:3e4});async function p(){if(z||l)return;const w=!u;j(!0);try{await nt({auth:t,signer:r,active:w}),await h(),m.setQueryData(["authorization",t.id,s],w),T.success(w?i("authorizations.toastActivated",{name:a}):i("authorizations.toastDeactivated",{name:a}))}catch(I){Y(I,{flow:"authorizations",step:w?"grant":"revoke"}),T.error(ct(I,i("authorizations.errorGeneric")))}finally{j(!1)}}if($&&u===!1)return null;const f=l?i("authorizations.checking"):u?i("authorizations.active"):i("authorizations.inactive");return e.jsxs(mt,{"data-testid":`authorization-${t.id}`,"data-active":!!u,children:[e.jsx(ft,{children:d?e.jsx("img",{src:d,alt:""}):g}),e.jsxs(xt,{children:[e.jsx(yt,{title:a,children:a}),e.jsx(bt,{children:c})]}),e.jsxs(jt,{children:[e.jsx(zt,{"data-active":!!u,children:f}),z?e.jsx(vt,{"aria-label":i("authorizations.working")}):e.jsx(wt,{type:"button","data-testid":`authorization-toggle-${t.id}`,"data-active":!!u,role:"switch","aria-checked":!!u,"aria-label":u?i("authorizations.deactivateAria",{name:a}):i("authorizations.activateAria",{name:a}),disabled:l,onClick:()=>void p()})]})]})}const b=500,G=10,$t=b*G;async function q(t,s){const r=await D(t,{category:s,first:b}),a=Math.min(Math.ceil(r.total/b),G),c=await Promise.all(Array.from({length:Math.max(0,a-1)},(d,g)=>D(t,{category:s,first:b,skip:(g+1)*b})));return{assets:[...r.assets,...c.flatMap(d=>d.assets)],truncated:r.total>$t}}function Ct(t){return k({queryKey:["owned-collections",t],enabled:!!t,staleTime:6e4,queryFn:async()=>{const[s,r]=await Promise.all([q(t,"wearable"),q(t,"emote")]),a=new Map;for(const c of[...s.assets,...r.assets]){const d=c.contractAddress.toLowerCase();a.has(d)||a.set(d,c)}return{collections:[...a.values()],truncated:s.truncated||r.truncated,scanned:s.assets.length+r.assets.length}}})}function At(t){return k({queryKey:["contract-registry"],enabled:t,staleTime:1/0,gcTime:1/0,queryFn:tt})}function Et(t,s){const r=s==null?void 0:s.get(t.toLowerCase());if(r)return r;const a=U(t);return a===t?i("authorizations.collectionFallback"):a}function It(t,s){return k({queryKey:["creator-collections",t],enabled:!!t&&!!s,staleTime:6e4,queryFn:async()=>{const r=await rt(t,s),a=new Map;for(const c of r){const d=c.contractAddress.toLowerCase();a.has(d)||a.set(d,c)}return[...a.values()]}})}function Pt(){H({title:i("authorizations.title"),noindex:!0});const{session:t,signIn:s}=Q(),r=Z.chainId,a=X(t==null?void 0:t.providerType),{data:c,isLoading:d}=Ct(a?t==null?void 0:t.address:void 0),{data:g,isLoading:$}=At(!!a&&!!(t!=null&&t.address)),{data:m,isLoading:z}=It(a?t==null?void 0:t.address:void 0,a?t==null?void 0:t.identity:void 0);if(!t)return e.jsxs(_,{children:[e.jsx(v,{name:"info",size:40,color:o.colors.muted2}),e.jsx(R,{children:i("authorizations.signInTitle")}),e.jsx(O,{children:i("authorizations.signInBody")}),e.jsx(W,{variant:"white",onClick:()=>s(),children:i("storeSettings.signIn")})]});if(!a)return e.jsxs(_,{children:[e.jsx(v,{name:"check",size:40,color:o.colors.ok}),e.jsx(R,{children:i("authorizations.managedTitle")}),e.jsx(O,{children:i("authorizations.managedBody")}),e.jsx(W,{as:F,to:"/items",variant:"white",children:i("authorizations.managedCta")})]});const j=et(r),u=it(r);return e.jsxs(ut,{children:[e.jsxs(ht,{children:[e.jsx(pt,{children:i("authorizations.title")}),e.jsx(gt,{children:i("authorizations.intro")})]}),e.jsxs(A,{children:[e.jsx(E,{children:i("authorizations.buyingTitle")}),e.jsxs(x,{children:[e.jsx(y,{descriptor:j,owner:t.address,signer:t.signer,name:i("authorizations.creditsName"),description:i("authorizations.creditsDesc"),icon:e.jsx(J,{className:"ccy-mark"})}),e.jsx(y,{descriptor:u,owner:t.address,signer:t.signer,name:i("authorizations.manaName"),description:i("authorizations.manaDesc"),icon:e.jsx(S,{src:M,alt:"","aria-hidden":!0})}),C(u).map(l=>e.jsx(y,{descriptor:l,owner:t.address,signer:t.signer,name:`${i("authorizations.manaName")} ${i("authorizations.previousVersion")}`,description:i("authorizations.manaDesc"),icon:e.jsx(S,{src:M,alt:"","aria-hidden":!0}),revokeOnly:!0},l.id))]})]}),e.jsxs(A,{children:[e.jsx(E,{children:i("authorizations.sellingTitle")}),c!=null&&c.truncated?e.jsx(kt,{"data-testid":"authorizations-selling-truncated",children:i("authorizations.sellingTruncated",{count:c.scanned})}):null,d||$?e.jsx(x,{"aria-busy":"true","aria-label":i("authorizations.checking"),children:Array.from({length:3}).map((l,h)=>e.jsx(L,{"aria-hidden":!0},h))}):c&&c.collections.length>0?e.jsx(x,{children:c.collections.flatMap(l=>{const h=ot(l.contractAddress,r);return[h,...C(h)].map((p,f)=>e.jsx(y,{descriptor:p,owner:t.address,signer:t.signer,name:Et(l.contractAddress,g),description:i("authorizations.sellingDesc"),image:l.image,icon:e.jsx(v,{name:"pen",size:18}),revokeOnly:f>0},p.id))})}):e.jsx(N,{children:i("authorizations.sellingEmpty")})]}),e.jsxs(A,{children:[e.jsx(E,{children:i("authorizations.mintingTitle")}),z?e.jsx(x,{"aria-busy":"true","aria-label":i("authorizations.checking"),children:Array.from({length:3}).map((l,h)=>e.jsx(L,{"aria-hidden":!0},h))}):m&&m.length>0?e.jsx(x,{children:m.flatMap(l=>{const h=at(l.contractAddress,r);return[h,...C(h)].map((p,f)=>e.jsx(y,{descriptor:p,owner:t.address,signer:t.signer,name:l.name||i("authorizations.collectionFallback"),description:i("authorizations.mintingDesc"),icon:e.jsx(v,{name:"pen",size:18}),revokeOnly:f>0},p.id))})}):e.jsx(N,{children:i("authorizations.mintingEmpty")})]})]})}export{Pt as Authorizations};
192
- //# sourceMappingURL=Authorizations-CAq4bDIU.js.map
192
+ //# sourceMappingURL=Authorizations-DyW6TgVG.js.map
@@ -1,4 +1,4 @@
1
- import{j as e,L as Yt,r as M,u as ja,b as ka}from"./react-DaBuTM6Q.js";import{s as r,d as z,c as a,K as Ae,S as ae,bk as Le,C as Te,bl as $a,R as Ke,bm as Sa,Q as Ma,I as Y,x as Ze,H as Ta,aj as O,W as Tt,E as Ia,F as Aa,D as Ea,bn as Pa,L as za,bo as Ra,X as Ba,bp as _a,bq as qa,br as Fa,bs as It,Z as Wa,bt as La,bu as Ka,bv as Qa,aw as Qe,$ as Na,J as Ua,bw as At,al as V,bx as Et,by as Ga,bz as Ha,i as oe,bA as Oa,bB as Da,bC as Va,bD as Ne,a3 as Ya,bE as Ce,bF as je,bG as Pt,bH as Ja,v as zt,w as Rt,bI as Xa}from"./index-DzQkIbqv.js";import{M as Za,S as es,C as ts,H as as,a as ss,T as ns,X as is,b as rs,B as os,c as cs,d as Bt,e as ls,f as Ee,g as ds,h as us,i as hs,j as ps,k as Xe,l as ge,L as gs,P as xs,m as _t,n as qt,W as ms,o as fs,p as bs,q as ys,A as vs,r as ws,s as Cs,t as js,u as ks,v as $s,w as Ss,x as Ms,y as Ts,z as Is,D as As,E as Es,F as Ps,G as zs,I as Rs,J as Bs,K as _s,N as Ue,O as qs,Q as Fs,R as Ws,U as Ft,V as Wt,Y as Ls,Z as Ks,_ as Qs,$ as Ns,a0 as Lt,a1 as Us}from"./CollectionCarousel-C2aZMUS6.js";import{m as Ie}from"./mana-matic-light-Bl5duieC.js";import{l as Gs,n as Hs,g as Os,o as Ds,h as Vs,A as Ys}from"./authorizations-D_SudRT-.js";import{p as Kt,g as Js,h as Ge}from"./buy-BkbR80Gf.js";import{w as Xs,S as He,b as Zs,G as en}from"./buy-gasless-CQdgMa0F.js";import{u as tn,M as an,R as ke,r as sn,c as nn,g as rn,a as on,p as Qt,b as Oe}from"./useCreditPacks-DGUqMJ6U.js";import{i as cn,a as ln}from"./errors-DhRbQUQ8.js";import{E as dn}from"./ErrorNotice-Dhs1BLZ6.js";import"./dcl-schemas-n1W5glLl.js";import"./sentry-ilLelGl_.js";import"./ethers-OrSZ5jmz.js";import"./intl-AKLEHPeO.js";import"./sendMetaTransaction-D_Udygrx.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new i.Error().stack;d&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[d]="01e2da6c-e8fa-4a56-9536-eaab151d7785",i._sentryDebugIdIdentifier="sentry-dbid-01e2da6c-e8fa-4a56-9536-eaab151d7785")}catch{}})();const un=r.div`
1
+ import{j as e,L as Yt,r as M,u as ja,b as ka}from"./react-BDtnT4_L.js";import{s as r,d as z,c as a,K as Ae,S as ae,bk as Le,C as Te,bl as $a,R as Ke,bm as Sa,Q as Ma,I as Y,x as Ze,H as Ta,aj as O,W as Tt,E as Ia,F as Aa,D as Ea,bn as Pa,L as za,bo as Ra,X as Ba,bp as _a,bq as qa,br as Fa,bs as It,Z as Wa,bt as La,bu as Ka,bv as Qa,aw as Qe,$ as Na,J as Ua,bw as At,al as V,bx as Et,by as Ga,bz as Ha,i as oe,bA as Oa,bB as Da,bC as Va,bD as Ne,a3 as Ya,bE as Ce,bF as je,bG as Pt,bH as Ja,v as zt,w as Rt,bI as Xa}from"./index-CyVGgMkK.js";import{M as Za,S as es,C as ts,H as as,a as ss,T as ns,X as is,b as rs,B as os,c as cs,d as Bt,e as ls,f as Ee,g as ds,h as us,i as hs,j as ps,k as Xe,l as ge,L as gs,P as xs,m as _t,n as qt,W as ms,o as fs,p as bs,q as ys,A as vs,r as ws,s as Cs,t as js,u as ks,v as $s,w as Ss,x as Ms,y as Ts,z as Is,D as As,E as Es,F as Ps,G as zs,I as Rs,J as Bs,K as _s,N as Ue,O as qs,Q as Fs,R as Ws,U as Ft,V as Wt,Y as Ls,Z as Ks,_ as Qs,$ as Ns,a0 as Lt,a1 as Us}from"./CollectionCarousel-DFNRTOFP.js";import{m as Ie}from"./mana-matic-light-Bl5duieC.js";import{l as Gs,n as Hs,g as Os,o as Ds,h as Vs,A as Ys}from"./authorizations-BF60RZYU.js";import{p as Kt,g as Js,h as Ge}from"./buy-CiksvueJ.js";import{w as Xs,S as He,b as Zs,G as en}from"./buy-gasless-DG2qGHrJ.js";import{u as tn,M as an,R as ke,r as sn,c as nn,g as rn,a as on,p as Qt,b as Oe}from"./useCreditPacks-L9xKGYZ4.js";import{i as cn,a as ln}from"./errors-BAO7_A7a.js";import{E as dn}from"./ErrorNotice-CehMoY9b.js";import"./dcl-schemas-BfFZv5Pe.js";import"./sentry-DJtBihbA.js";import"./ethers-rfaBand6.js";import"./intl-AKLEHPeO.js";import"./sendMetaTransaction-CVkzKCvR.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new i.Error().stack;d&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[d]="01e2da6c-e8fa-4a56-9536-eaab151d7785",i._sentryDebugIdIdentifier="sentry-dbid-01e2da6c-e8fa-4a56-9536-eaab151d7785")}catch{}})();const un=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 12px;
@@ -745,4 +745,4 @@ import{j as e,L as Yt,r as M,u as ja,b as ka}from"./react-DaBuTM6Q.js";import{s
745
745
  margin-top: 0;
746
746
  }
747
747
  `;function Ye(i){if(cn(i))return a("errors.rejected");const d=(i.message??"").toLowerCase();return d.includes("insufficient")?a("cart.error.insufficient",{currency:Te.name}):d.includes("no active listing")||d.includes("your own listing")?a("cart.error.listingChanged"):a("marketCheckout.error.generic")}const pi=12e4;function gi(i){const d=[];return i.unavailable.length&&d.push(a("cart.drop.unavailable",{count:i.unavailable.length})),i.own.length&&d.push(a("cart.drop.own",{count:i.own.length})),a("cart.drop.removed",{items:d.join(` ${a("cart.drop.and")} `)})}const Je=i=>i.reduce((d,k)=>d+k.priceCredits*k.quantity,0),Me=i=>i.flatMap(d=>Array.from({length:d.quantity},()=>({...d,quantity:1}))),Vt=8;function Ai(){var $t,St,Mt;Ta({title:a("nav.cart"),noindex:!0});const i=O(t=>t.items),d=O(t=>t.remove),k=O(t=>t.increment),$=O(t=>t.decrement),R=O(t=>t.clear),U=O(t=>t.restore),H=O(t=>t.setFittingOpen),E=Tt(t=>t.items),J=Tt(t=>t.toggle),{session:n,signIn:G}=Ia(),sa=Aa(),xe=tn().packs.slice(0,an);M.useEffect(()=>(document.body.classList.add("shop-cart-bg"),()=>document.body.classList.remove("shop-cart-bg")),[]);const na=i.some(t=>t.category!=="emote"),{data:Pe}=Ea({queryKey:["upsell-listings"],queryFn:()=>Xa({first:40}),staleTime:6e4}),{data:j}=Pa(n),y=za(),X=ja(),{state:B}=ka(),[ia,de]=M.useState(null),[et,me]=M.useState(null),[ra,_]=M.useState(!1),[q,D]=M.useState(null),tt=M.useRef(0),[h,S]=M.useState(null),{data:fe}=Ra(n),{data:ue}=Ba(!0),[ze,at]=M.useState(""),he=M.useRef(null),st=_a(i),nt=t=>At(st[t.id]),Re=i.filter(nt),it=i.length>0&&Re.length===0,oa=Re.reduce((t,s)=>t+s.priceCredits*s.quantity,0),ca=i.reduce((t,s)=>t+s.quantity,0),la=Re.reduce((t,s)=>t+s.quantity,0),rt=q?q.liveTotalCredits:oa,da=new Set(i.map(t=>t.id)),ot=((Pe==null?void 0:Pe.items)??[]).filter(t=>!da.has(t.id)).slice(0,12),ct=M.useMemo(()=>i.map(t=>t.contractAddress&&t.itemId?`${t.contractAddress.toLowerCase()}-${t.itemId}`:null).filter(t=>t!==null),[i]),se=qa(Vt,{exclude:ct}),lt=Fa({enabled:se.enabled,hasSignal:se.hasSignal,isLoading:se.isLoading,isError:se.isError,personalized:($t=se.result)==null?void 0:$t.personalized,rowCount:((St=se.result)==null?void 0:St.data.length)??0}),ua=new Map(q==null?void 0:q.buyable.map(t=>[t.item.id,t])),be=(j==null?void 0:j.credits)??0,Be=rt*10,ha=ue?It(Be,ue):0n,_e=Ue({priceCents:Be,priceManaWei:ha,balanceCents:(j==null?void 0:j.balanceCents)??0,manaBalanceWei:fe??0n}),pa=t=>t.flatMap(s=>{const o=Oe(s);return o.kind==="store"?[o.mint]:[]}),ga=t=>t.flatMap(s=>s.acquisition==="trade"?[s.trade]:[]),xa=t=>Object.fromEntries(t.flatMap(s=>s.acquisition==="trade"&&s.coupon?[[s.trade.id,s.coupon]]:[])),ma=Ga,fa=t=>Da(t.contractAddress,String(t.itemId));function ye(t){t(),D(null),me(null),de(null)}function ba(){S(null),_(!1)}function dt(t){const s=Je(t),o=Math.max(0,s-be),c=xe.find(u=>u.credits>=o)??xe[xe.length-1];at(c.id),V("Shop Buy Credits Prompted",{from:"cart_checkout",credits_needed:s,credits_balance:be,shortfall:o}),S({phase:"nofunds",lines:t.map(u=>({item:u.item,priceCredits:u.priceCredits,quantity:u.quantity})),shortfall:o}),_(!1)}async function qe(t){if(!n||t.length===0)return;const s=Me(t),o=s.map(f=>({...f.item,priceCredits:f.priceCredits})),c=t.map(f=>({...f.item,priceCredits:f.priceCredits,quantity:f.quantity})),u=[];let v="authorize";const g=new Set,T=new Set,L=new Set,F=[];let w=!1;S({phase:"processing",stage:"reserving",step:1,total:s.length});try{const f=[],P=rn(s,Kt);let K=0;for(const p of P){S({phase:"processing",stage:"reserving",step:K+1,total:s.length});try{const{credit:m,maxCreditedValue:b}=await Va(n.identity,p.units.map(on));p.units.forEach((N,re)=>{u.push({salt:m.id,itemId:N.item.id}),f.push({...p.drafts[re],credits:[m],maxCreditedValue:b})}),K+=p.units.length}catch(m){if(ln(m)){if(u.length){try{await Ne(n.identity,[...new Set(u.map(b=>b.salt))])}catch(b){oe(b,{flow:"cart_checkout",step:"release"})}y.invalidateQueries({queryKey:["usd-balance"]})}dt(t);return}throw m}}u.length&&y.invalidateQueries({queryKey:["usd-balance"]}),v="submit";const Q=Js(f).length,te=p=>Q>1?{current:p,total:Q}:void 0,W=(p,m)=>S({phase:"processing",stage:p,step:s.length,total:s.length,signatures:te(m)}),C=p=>p<Q?W("awaiting-signature",p+1):W("settling",Q);W("awaiting-signature",1);let x=[];const I=new Map,ne=async p=>{const m=await Promise.allSettled(p.map(b=>Xs(b)));return m.forEach((b,N)=>{const re=I.get(p[N])??[];b.status==="fulfilled"?(re.forEach(We=>T.add(We)),F.push(p[N])):b.reason instanceof He||re.forEach(We=>L.add(We))}),m.flatMap(b=>b.status==="rejected"?[b.reason]:[])};if(Gs())try{let p=0;x=await Zs({purchases:f,buyer:n.address,signer:n.signer,identity:n.identity,onSigned:()=>W("settling",Math.min(p+1,Q)),onBroadcast:({txHash:b,salts:N})=>{p+=1,I.set(b,N),N.forEach(re=>g.add(re))},onGroupSettling:({settled:b})=>W("settling",b)});const m=await ne(x);if(m.length&&!m.some(b=>b instanceof He))throw m[0];w=!0}catch(p){if(p instanceof He)throw await ne([...I.keys()]),p;if(!(p instanceof en)||!Ya(n.providerType))throw p;x=await Ge({purchases:f,buyer:n.address,signer:n.signer,onSigned:C,onBroadcast:({salts:m})=>m.forEach(b=>g.add(b)),onSettled:({txHash:m,salts:b})=>{b.forEach(N=>T.add(N)),F.push(m)},onReverted:({salts:m})=>m.forEach(b=>L.add(b))})}else x=await Ge({purchases:f,buyer:n.address,signer:n.signer,onSigned:C,onBroadcast:({salts:p})=>p.forEach(m=>g.add(m)),onSettled:({txHash:p,salts:m})=>{m.forEach(b=>T.add(b)),F.push(p)},onReverted:({salts:p})=>p.forEach(m=>L.add(m))});t.forEach(p=>d(p.item.id)),D(null),V("Shop Completed Purchase",{...Ce(o),payment_type:"credits",no_crypto_step:w,transaction_hash:x[0]??null}),Wt(y);const we=he.current;he.current=null,S(null),_(!1);const ie={items:c,txHash:x[0]??void 0,txHashes:x,settled:!0,...we?{creditsAdded:we}:{}};X("/success",{state:ie,replace:!0})}catch(f){je(f)||oe(f,{flow:"cart_checkout",step:v,cart_size:t.length});const P=new Set([...g].filter(x=>!L.has(x))),{toRelease:K,boughtItemIds:Q}=Qt({reservations:u,spent:P,settled:T}),te=[...P].some(x=>!T.has(x)),W=o.filter(x=>Q.includes(x.id)),C=o.filter(x=>!Q.includes(x.id));if(V(je(f)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:v,error_code:Pt(f),value_usd:Et(C.reduce((x,I)=>x+I.priceCredits,0)),cart_size:s.length,partial:W.length>0}),K.length)try{await Ne(n.identity,K)}catch(x){oe(x,{flow:"cart_checkout",step:"release"})}if(y.invalidateQueries({queryKey:["usd-balance"]}),W.length>0){Q.forEach(x=>d(x)),D(null),Wt(y),V("Shop Completed Purchase",{...Ce(W),payment_type:"credits",no_crypto_step:w,transaction_hash:F[0]??null,partial:!0}),S({phase:"error",message:a("cart.error.partiallyBought"),heldCredits:te}),_(!1);return}S({phase:"error",message:te?void 0:Ye(f),heldCredits:te})}}function ut(t,s){y.invalidateQueries({queryKey:["usd-balance"]}),y.invalidateQueries({queryKey:["detail-trade"]}),y.invalidateQueries({queryKey:["shop-item"]}),y.invalidateQueries({queryKey:["owned-token"]}),y.invalidateQueries({queryKey:["public-token"]}),y.invalidateQueries({queryKey:["item-resales"]}),y.invalidateQueries({queryKey:["shop-items"]}),y.invalidateQueries({queryKey:["catalog-items"]}),y.invalidateQueries({queryKey:["my-assets"]}),y.invalidateQueries({queryKey:["purchases"]}),y.invalidateQueries({queryKey:["owned-item-count"]}),y.invalidateQueries({queryKey:["overview-listings"]}),y.invalidateQueries({queryKey:["upsell-listings"]});const o=he.current;he.current=null,S(null),_(!1);const c={items:t,txHash:s[0]??void 0,txHashes:s,settled:!0,...o?{creditsAdded:o}:{}};X("/success",{state:c,replace:!0})}function ht(t,s){je(t)||oe(t,{flow:s,step:"submit"}),V(je(t)?"Shop Purchase Cancelled":"Shop Purchase Failed",{step:"submit",error_code:Pt(t)}),S({phase:"error",message:Ye(t)}),_(!1)}async function ya(t,s,o){const c=zt(Rt.MANAToken,s),u=zt(Rt.CreditsManager,s);await Vs({auth:{kind:Ys.Allowance,contractAddress:c.address,spenderAddress:u.address,chainId:s},signer:t,requiredWei:o})}async function pt(){if(ue)return ue;try{return await y.fetchQuery(Oa())}catch{return}}async function va(t){const s=Me(t).reduce((v,g)=>v+g.usdCents,0),c=(fe??0n)>0n?await pt():ue,u=c?It(s,c):0n;return{totalCents:s,manaWei:u}}async function gt(t,s){const o=Je(t),{totalCents:c,manaWei:u}=await va(t),v=Ue({priceCents:c,priceManaWei:u,balanceCents:(j==null?void 0:j.balanceCents)??0,manaBalanceWei:fe??0n});if(s&&v.options.some(g=>g.method===s)){if(s==="credits"){qe(t);return}const g=bt(v,s);await mt(xt(s,t),g,()=>s==="mana"?void yt(t,g):void vt(t,c,u));return}if(v.options.some(g=>g.method==="mana"||g.method==="combined")){S({phase:"choose",lines:t,totalCents:c,manaWei:u}),_(!1);return}if(j!=null&&j.credits<o){dt(t);return}qe(t)}function Fe(t){return Ue({priceCents:t.totalCents,priceManaWei:t.manaWei,balanceCents:(j==null?void 0:j.balanceCents)??0,manaBalanceWei:fe??0n})}const[pe,ve]=M.useState(null);function xt(t,s){const o=new Map;for(const c of s){const u=Ls(t,Oe(c));o.set(`${u.chainId}:${u.spender.toLowerCase()}`,u)}return[...o.values()]}async function mt(t,s,o){const c=[];for(const{spender:u,chainId:v}of t){const g=Hs(v,u),T=n?await Os(g,n.address,s).catch(()=>!0):!0;Ds(n==null?void 0:n.providerType,T)&&c.push(g)}if(c.length===0){o();return}_(!1),ft(c,0,o)}function ft(t,s,o){ve({auth:t[s],index:s+1,total:t.length,run:()=>s+1<t.length?ft(t,s+1,o):o()})}function bt(t,s){var o;return((o=t.options.find(c=>c.method===s))==null?void 0:o.manaWei)??0n}function wa(t){if((h==null?void 0:h.phase)!=="choose")return;const{lines:s,totalCents:o,manaWei:c}=h;if(t==="credits"){qe(s);return}const u=bt(Fe(h),t);mt(xt(t,s),u,()=>t==="mana"?void yt(s,u):void vt(s,o,c))}async function yt(t,s){if(!n||t.length===0)return;const o=Me(t),c=o.map(g=>({...g.item,priceCredits:g.priceCredits})),u=t.map(g=>({...g.item,priceCredits:g.priceCredits,quantity:g.quantity})),v=()=>S({phase:"processing",stage:"settling",step:o.length,total:o.length});S({phase:"processing",stage:"awaiting-signature",step:o.length,total:o.length});try{const g=await Ks({trades:ga(o),coupons:xa(o),mints:pa(o),buyer:n.address,signer:n.signer,onSigned:v,manaWei:s});t.forEach(T=>d(T.item.id)),D(null),V("Shop Completed Purchase",{...Ce(c),payment_type:"mana",transaction_hash:g[0]??null}),y.invalidateQueries({queryKey:["mana-balance"]}),ut(u,g)}catch(g){ht(g,"buy_cart_mana")}}async function vt(t,s,o){if(!n||t.length===0)return;const c=Me(t),u=c.map(w=>({...w.item,priceCredits:w.priceCredits})),v=t.map(w=>({...w.item,priceCredits:w.priceCredits,quantity:w.quantity})),g=Qs(c.map(w=>w.usdCents),(j==null?void 0:j.balanceCents)??0),T=[],L=new Set,F=new Set;S({phase:"processing",stage:"reserving",step:1,total:c.length});try{const w=c.map(Oe),f=[],P=new Map,K=new Map;for(let C=0;C<c.length;C++){const x=c[C],I=w[C],ne=g[C],we=Ns(Math.max(0,x.usdCents-ne),s,o);let ie;if(ne<=0)ie=Lt(I,[],"0");else{S({phase:"processing",stage:"reserving",step:C+1,total:c.length});const m=x.item,{credit:b,maxCreditedValue:N}=await Ja(n.identity,ne,I.kind==="trade"?I.trade.id:void 0,m.contractAddress&&m.itemId!=null?{contractAddress:m.contractAddress,itemId:String(m.itemId)}:void 0);T.push({salt:b.id,itemId:m.id}),ie=Lt(I,[b],N)}const p=Kt(ie);P.set(p,(P.get(p)??0n)+we),K.has(p)||K.set(p,f.length),f.push(ie)}T.length&&y.invalidateQueries({queryKey:["usd-balance"]});for(const[C,x]of P){const I=K.get(C);I==null||x<=0n||(f[I]={...f[I],maxCreditedValue:(BigInt(f[I].maxCreditedValue)+x).toString()})}const Q=[...P.values()].reduce((C,x)=>C+x,0n);await ya(n.signer,Us(w[0]),Q);const te=()=>S({phase:"processing",stage:"settling",step:c.length,total:c.length});S({phase:"processing",stage:"awaiting-signature",step:c.length,total:c.length});const W=await Ge({purchases:f,buyer:n.address,signer:n.signer,onSigned:te,onBroadcast:({salts:C})=>C.forEach(x=>L.add(x)),onReverted:({salts:C})=>C.forEach(x=>F.add(x))});t.forEach(C=>d(C.item.id)),D(null),V("Shop Completed Purchase",{...Ce(u),payment_type:"credits_and_mana",transaction_hash:W[0]??null}),y.invalidateQueries({queryKey:["mana-balance"]}),ut(v,W)}catch(w){const{toRelease:f}=Qt({reservations:T,spent:new Set([...L].filter(P=>!F.has(P))),settled:new Set});f.length&&Ne(n.identity,f).catch(()=>{}),T.length&&y.invalidateQueries({queryKey:["usd-balance"]}),ht(w,"buy_cart_combined")}}async function Z(t){if(!n){Ft({type:"cart-checkout"}),G();return}const s=O.getState().items.filter(nt);if(s.length===0)return;de(null),me(null),_(!0);const o=s.reduce((c,u)=>c+u.priceCredits*u.quantity,0);V("Shop Started Checkout",{checkout_source:"cart",cart_size:s.length,cart_value_credits:o,cart_value_usd:Et(o),has_sufficient_credits:be>=o});try{const c=await sn(s,n.address,ma,await pt(),fa,Ha),u=[...c.unavailable,...c.own];if(u.length&&(u.forEach(v=>d(v.id)),me(gi(c))),c.buyable.length===0){de(a("cart.error.noneAvailable")),D(null);return}if(c.orderChanged){D(c),tt.current=Date.now();return}await gt(c.buyable,t)}catch(c){oe(c,{flow:"cart_checkout",step:"review",cart_size:s.length}),de(Ye(c))}finally{_(!1)}}async function wt(){if(q){if(!n){Ft({type:"cart-checkout"}),G();return}if(Date.now()-tt.current>pi){D(null),me(null),await Z();return}de(null),gt(q.buyable)}}async function Ca(){if(ze){try{sessionStorage.setItem(ke,JSON.stringify(O.getState().items))}catch{}_(!0);try{const t=await nn(ze,n?{address:n.address,identity:n.identity}:void 0);if(t.url){window.location.href=t.url;return}X("/credits")}catch(t){try{sessionStorage.removeItem(ke)}catch{}oe(t,{flow:"cart_buy_credits"}),S({phase:"error",message:a("buyModal.error.creditsCheckout")})}finally{_(!1)}}}const Ct=M.useRef(!1);M.useEffect(()=>{if(!n||Ct.current||!qs("cart-checkout"))return;Ct.current=!0;const t=setTimeout(()=>void Z(),0);return()=>clearTimeout(t)},[n]);const jt=M.useRef(!1);M.useEffect(()=>{if(!(B!=null&&B.resumeCheckout)||jt.current)return;jt.current=!0,he.current=B.creditsAdded??null;try{const s=sessionStorage.getItem(ke);if(s){sessionStorage.removeItem(ke);const o=JSON.parse(s);Array.isArray(o)&&o.length&&U(o)}}catch{}y.invalidateQueries({queryKey:["usd-balance"]});const t=setTimeout(()=>void Z(),0);return()=>clearTimeout(t)},[B==null?void 0:B.resumeCheckout]);const kt=M.useRef(!1);M.useEffect(()=>{if(!(B!=null&&B.startCheckout)||kt.current)return;kt.current=!0,X(".",{replace:!0,state:null});const t=setTimeout(()=>void Z(),0);return()=>clearTimeout(t)},[B==null?void 0:B.startCheckout]);const ee=ra||(h==null?void 0:h.phase)==="processing";return i.length===0&&!h?e.jsx(Ut,{children:e.jsxs(Ht,{children:[e.jsxs(Gt,{onClick:()=>X(-1),type:"button",children:[e.jsx(Y,{name:"arrow-left"}),a("nav.cart")]}),e.jsx(An,{children:e.jsx(Wa,{variant:"light",testId:"cart-empty",icon:La,title:a("cart.empty.title"),body:a("cart.empty.body"),cta:{label:a("cart.empty.cta"),to:"/items"}})})]})}):e.jsxs(Ut,{children:[e.jsxs(Ht,{children:[e.jsxs(Gt,{onClick:()=>X(-1),type:"button",children:[e.jsx(Y,{name:"arrow-left"}),a("nav.cart")]}),e.jsxs(Sn,{children:[e.jsxs(Mn,{children:[e.jsxs(Tn,{children:[e.jsx(En,{onClick:()=>X(-1),type:"button","aria-label":a("cart.goBack"),children:e.jsx(Y,{name:"arrow-left"})}),e.jsx(Pn,{children:a("cart.panelTitle",{count:ca})}),na?e.jsxs(zn,{onClick:()=>H(!0),disabled:ee,children:[e.jsx(Y,{name:"fitting-room"}),a("cart.fittingRoom")]}):null]}),e.jsxs(In,{children:[e.jsx(Rn,{children:i.map(t=>{const s=ua.get(t.id),o=s?s.priceCredits:t.priceCredits,c=!!s&&s.priceCredits!==t.priceCredits,u=!t.tokenId,v=t.quantity,g=typeof t.available=="number"&&v>=t.available,T=o*v,L=Ka(t),F=!!L&&!!E[L],w=Qa(t),f=st[t.id],P=!At(f),K=f==="sold-out"?a("cart.availability.soldOut"):a("cart.availability.unavailable");return e.jsxs(Bn,{"data-unavailable":P||void 0,children:[e.jsxs(_n,{"data-thumb":!0,children:[w?e.jsx(qn,{to:w,state:{item:t,tradeId:t.tradeId},"aria-label":t.name,children:t.thumbnail?e.jsx("img",{src:t.thumbnail,alt:t.name}):null}):t.thumbnail?e.jsx("img",{src:t.thumbnail,alt:t.name}):null,e.jsx(Fn,{"data-check":!0,"aria-hidden":!0,children:e.jsx("svg",{viewBox:"0 0 20 20",width:"12",height:"12",children:e.jsx("path",{d:"M5 10.5l3 3 7-7.5",fill:"none",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),e.jsxs(Wn,{children:[e.jsxs(Ln,{"data-desc":!0,children:[w?e.jsx(Qn,{to:w,state:{item:t,tradeId:t.tradeId},title:t.name,children:t.name}):e.jsx(Kn,{title:t.name,children:t.name}),t.creator?e.jsx(Nn,{address:t.creator,linkToProfile:!0}):null,sa&&u?e.jsxs(Zn,{"data-testid":"cart-creator-tag",children:[e.jsx(ei,{name:"buy-from-creator"}),a("cart.creatorTag")]}):null]}),e.jsx(Un,{children:P?e.jsxs(Jn,{children:[e.jsx(Xn,{name:"warning-fill",size:24}),K]}):e.jsxs(e.Fragment,{children:[u?e.jsxs(Gn,{children:[e.jsx(Ot,{onClick:()=>ye(()=>$(t.id)),disabled:ee||v<=1,"aria-label":a("cart.decreaseQuantity",{name:t.name}),children:e.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:e.jsx("path",{d:"M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}),e.jsx(Hn,{children:v}),e.jsx(Ot,{onClick:()=>ye(()=>k(t.id)),disabled:ee||g,"aria-label":a("cart.increaseQuantity"),children:e.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,focusable:"false",children:e.jsx("path",{d:"M8 3.5v9M3.5 8h9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]}):null,e.jsxs(On,{children:[e.jsx(Dn,{})," ",e.jsx(Qe,{credits:T}),c?e.jsx(Vn,{children:e.jsx(Qe,{credits:t.priceCredits*v})}):null]})]})})]}),e.jsxs(Yn,{children:[L?e.jsx(ti,{"data-on":F||void 0,onClick:()=>J(t),"aria-label":F?a("cart.removeFromFavorites",{name:t.name}):a("cart.addToFavorites",{name:t.name}),title:F?a("assetCard.removeFromFavorites"):a("assetCard.addToFavorites"),children:e.jsx(Y,{name:F?"heart-solid":"heart"})}):null,e.jsx(ai,{onClick:()=>ye(()=>d(t.id)),disabled:ee,"aria-label":a("cart.remove",{name:t.name}),title:a("cart.removeTitle"),children:e.jsx(Y,{name:"trash",size:24})})]})]},t.id)})}),e.jsx(si,{children:e.jsx("button",{className:"link",onClick:()=>ye(R),disabled:ee,children:a("cart.clearCart")})})]})]}),e.jsxs(ni,{children:[e.jsx(ii,{children:a("cart.purchaseSummary")}),e.jsxs(ri,{children:[e.jsxs(oi,{children:[e.jsx(ci,{children:a("cart.totalItems",{count:la})}),e.jsx(di,{children:e.jsxs(li,{children:[e.jsx(ui,{})," ",e.jsx(Qe,{credits:rt})]})})]}),e.jsx(Xt,{options:_e.options,totalCents:Be,shortfall:_e.manaShortfall,showCreditsAmount:!1,creditsLabel:q?a("marketCheckout.confirmPurchase"):_e.options.length>1?a("cart.buyWithCredits"):a("cart.checkout"),busy:ee||it,onPay:t=>void(q?wt():Z(t)),creditsFallback:{label:ee?a("cart.working"):q?a("marketCheckout.confirmPurchase"):a("cart.checkout"),onClick:()=>void(q?wt():Z())}}),it?e.jsx(Se,{className:"muted",children:a("cart.allUnavailable")}):null,n?null:e.jsx(Se,{className:"muted",children:a("cart.signInHint")}),q?e.jsx(Se,{className:"muted",children:a("cart.priceChanged")}):null,et?e.jsx(Se,{className:"muted",children:et}):null,e.jsx(hi,{message:ia})]})]})]})]}),lt===null&&e.jsx(Dt,{"data-testid":"cart-personal-upsell",children:e.jsx(Na,{exclude:ct,title:a("cart.suggestedTitle"),surface:"cart",first:Vt})}),lt!==null&&ot.length>0?e.jsx(Dt,{children:e.jsx(Fs,{title:a("cart.youMightAlsoLike"),items:ot})}):null,pe&&n?e.jsx(Ws,{auth:pe.auth,signer:n.signer,step:{index:pe.index,total:pe.total},title:a("authorizeStep.manaTitle"),name:a("authorizeStep.manaName"),reason:a("authorizeStep.manaReason"),icon:e.jsx("img",{src:Ie,width:24,height:24,alt:"","aria-hidden":!0}),onAuthorized:()=>{const{run:t}=pe;ve(null),t()},onCancel:()=>ve(null),onClose:()=>ve(null)}):null,h?e.jsx(Cn,{phase:h.phase,balanceCredits:be,heldCreditsCount:((Mt=j==null?void 0:j.held)==null?void 0:Mt.credits)??null,onClose:ba,stage:h.phase==="processing"?h.stage:void 0,step:h.phase==="processing"?h.step:void 0,total:h.phase==="processing"?h.total:void 0,isSelfCustody:Ua(n==null?void 0:n.providerType),signatures:h.phase==="processing"?h.signatures:void 0,options:h.phase==="choose"?Fe(h).options:void 0,shortfall:h.phase==="choose"?Fe(h).manaShortfall:void 0,onPay:wa,totalCents:h.phase==="choose"?h.totalCents:void 0,totalManaWei:h.phase==="choose"?h.manaWei:void 0,totalCredits:h.phase==="choose"?Je(h.lines):void 0,lines:h.phase==="nofunds"?h.lines:void 0,shortfallCredits:h.phase==="nofunds"?h.shortfall:void 0,packs:xe,selectedPack:ze,onSelectPack:at,onBuyPacks:()=>void Ca(),message:h.phase==="error"?h.message:void 0,heldCredits:h.phase==="error"&&!!h.heldCredits,onRetry:()=>void Z()}):null]})}export{Ai as Cart};
748
- //# sourceMappingURL=Cart-Dn-yuO7W.js.map
748
+ //# sourceMappingURL=Cart-KBBb4RPC.js.map
@@ -1,4 +1,4 @@
1
- import{j as e,r as h,d as se,u as oe}from"./react-DaBuTM6Q.js";import{d as b,s as u,i as re,I as ae,k as ie,c as r,a6 as H,M as F,bO as ne,bP as le,e as ce,c4 as de,D as ue,H as me,az as pe,Z as fe,a0 as W,a1 as he,bQ as xe,c5 as be}from"./index-DzQkIbqv.js";import{E as ge}from"./ErrorNotice-Dhs1BLZ6.js";import{d as ye,P as ve,C as je,a as E,b as we,S as Ce}from"./collectionPage.styles-St6jJHia.js";import{u as ke}from"./useStore-HIvj56kg.js";import{u as Se,S as G,R as $e,a as Ne,b as Ee,c as Ie,D as Fe,d as Me,C as Re,e as Te,F as _e,f as Pe,g as Ae,M as De,h as Le}from"./browseLayout.styles-6-W9YjOC.js";import{L as Be}from"./LoadMore-3LNbX1EU.js";import{u as ze}from"./useInfiniteGrid-DpNO4hZU.js";import{u as Oe,s as We}from"./search-empty-CiaPLxpu.js";import{S as Ge}from"./categories-Dquh1vbV.js";import{G as Ue}from"./grid.styles-CbKnaEaH.js";import"./dcl-schemas-n1W5glLl.js";import"./sentry-ilLelGl_.js";import"./ethers-OrSZ5jmz.js";import"./intl-AKLEHPeO.js";import"./crumbs.styles-N13K8LJF.js";import"./skeleton.styles-B7ceCvK9.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new o.Error().stack;s&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[s]="08b54752-9169-4e47-bbdd-f4d93e1b27dc",o._sentryDebugIdIdentifier="sentry-dbid-08b54752-9169-4e47-bbdd-f4d93e1b27dc")}catch{}})();const He=u.section`
1
+ import{j as e,r as h,d as se,u as oe}from"./react-BDtnT4_L.js";import{d as b,s as u,i as re,I as ae,k as ie,c as r,a6 as H,M as F,bO as ne,bP as le,e as ce,c4 as de,D as ue,H as me,az as pe,Z as fe,a0 as W,a1 as he,bQ as xe,c5 as be}from"./index-CyVGgMkK.js";import{E as ge}from"./ErrorNotice-CehMoY9b.js";import{d as ye,P as ve,C as je,a as E,b as we,S as Ce}from"./collectionPage.styles-RZVhtMJK.js";import{u as ke}from"./useStore-pULSLKbx.js";import{u as Se,S as G,R as $e,a as Ne,b as Ee,c as Ie,D as Fe,d as Me,C as Re,e as Te,F as _e,f as Pe,g as Ae,M as De,h as Le}from"./browseLayout.styles-DJ6ptfco.js";import{L as Be}from"./LoadMore-D1ApwWXh.js";import{u as ze}from"./useInfiniteGrid-3LXYF7KT.js";import{u as Oe,s as We}from"./search-empty-D0-TyK_V.js";import{S as Ge}from"./categories-BNbtxrs7.js";import{G as Ue}from"./grid.styles-BRtgKeAE.js";import"./dcl-schemas-BfFZv5Pe.js";import"./sentry-DJtBihbA.js";import"./ethers-rfaBand6.js";import"./intl-AKLEHPeO.js";import"./crumbs.styles-BD0KsEdc.js";import"./skeleton.styles-Cqgtx7q8.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new o.Error().stack;s&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[s]="08b54752-9169-4e47-bbdd-f4d93e1b27dc",o._sentryDebugIdIdentifier="sentry-dbid-08b54752-9169-4e47-bbdd-f4d93e1b27dc")}catch{}})();const He=u.section`
2
2
  position: relative;
3
3
  border-radius: ${b.radius.card};
4
4
  overflow: hidden;
@@ -131,4 +131,4 @@ import{j as e,r as h,d as se,u as oe}from"./react-DaBuTM6Q.js";import{d as b,s a
131
131
  background: ${j.blackBtn};
132
132
  }
133
133
  `;function lt({address:o}){var d,n;const{data:s}=H(o);if(!o)return null;const i=(s==null?void 0:s.name)||F(o),l=(n=(d=s==null?void 0:s.avatar)==null?void 0:d.snapshots)==null?void 0:n.face256,a=`${ce.profileUrl}/${o}`,m=ne(le({name:s==null?void 0:s.name,hasClaimedName:s==null?void 0:s.hasClaimedName,ethAddress:(s==null?void 0:s.ethAddress)??o}));return e.jsxs(at,{"data-testid":"creator-card",children:[l?e.jsx(U,{src:l,alt:"",loading:"eager",style:{backgroundColor:m}}):e.jsx(U,{as:"span","aria-hidden":!0,style:{backgroundColor:m}}),e.jsx(it,{title:i,children:i}),e.jsx(ot,{value:o,label:r("collection.copyAddress"),flow:"copy_creator_address",testId:"creator-card-copy",children:e.jsx("span",{children:F(o)})}),e.jsx(nt,{"data-testid":"creator-card-view",href:a,target:"_blank",rel:"noopener noreferrer",children:r("collection.viewProfile")})]})}const ct=48,dt=["all","on_sale","not_for_sale"];function Et(){var O;const{contractAddress:o}=se(),s=oe(),i=h.useMemo(()=>({category:"all",status:"all",subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,sort:"newest"}),[]),[l,a]=Oe(i),{category:m,subCategory:d,rarities:n,priceMin:x,priceMax:f,smart:C,sort:M}=l,g=dt.includes(l.status)?l.status:"all",R=t=>a({status:t});Se(`${m}:${d??""}`);const[w,y]=h.useState(!1);h.useEffect(()=>{if(!w)return;const t=te=>{te.key==="Escape"&&y(!1)};document.addEventListener("keydown",t);const N=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",t),document.body.style.overflow=N}},[w]);const T=x&&!Number.isNaN(Number(x))?Number(x):void 0,_=f&&!Number.isNaN(Number(f))?Number(f):void 0,q=d?Ge[d]:void 0,K=(G.find(t=>t.key===M)??G[0]).server,P={contractAddress:o,category:m,rarities:n.length?n:void 0,wearableCategories:q,minPriceCredits:T,maxPriceCredits:_,isWearableSmart:C||void 0,isOnSale:g==="all"?void 0:g==="on_sale",sortBy:K},{items:Q,total:Z,isLoading:k,error:A,hasNextPage:V,isFetchingNextPage:D,isFetchNextPageError:J,fetchNextPage:X}=ze(["collection-page",P],t=>xe({...P,first:ct,skip:t}),{enabled:!!o}),S=de(Q),{data:c}=ue({queryKey:["collection-meta",o],queryFn:()=>be(o),enabled:!!o,staleTime:5*6e4}),L=(c==null?void 0:c.name)||r("collection.fallbackTitle");me({title:c==null?void 0:c.name,description:c!=null&&c.name?r("seo.collection.description",{name:c.name}):void 0});const p=(c==null?void 0:c.creator)||((O=S[0])==null?void 0:O.creator),{data:$}=H(p),Y=($==null?void 0:$.name)||(p?F(p):"");function ee(t){a({category:t,subCategory:null})}function B(t){a({rarities:n.includes(t)?n.filter(N=>N!==t):[...n,t]})}function z(){a(i)}const v=[];(T!=null||_!=null)&&v.push({key:"price",label:r("filter.price"),onRemove:()=>{a({priceMin:"",priceMax:""})}});for(const t of $e)n.includes(t)&&v.push({key:`rarity-${t}`,label:pe(t),onRemove:()=>B(t)});return C&&v.push({key:"smart",label:r("filter.smart"),onRemove:()=>a({smart:!1})}),g!=="all"&&v.push({key:"status",label:g==="on_sale"?r("filter.onSale"):r("filter.notForSale"),onRemove:()=>R("all")}),e.jsxs(ve,{"data-testid":"collection-page",children:[e.jsxs(je,{"aria-label":r("collection.breadcrumbAria"),children:[e.jsx(E,{onClick:()=>s("/items"),children:r("collection.breadcrumb")}),p?e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"/"}),e.jsx(E,{onClick:()=>s(`/items/creator/${p}`),children:Y}),e.jsx("span",{children:"/"}),e.jsx(E,{onClick:()=>s(`/items/creator/${p}?collections`),children:r("categories.collections")})]}):null,e.jsx("span",{children:"/"}),e.jsx(we,{children:L})]}),e.jsx(Ve,{name:L,creator:p}),e.jsxs(Ne,{"data-testid":"browse",children:[w?e.jsx(Ee,{onClick:()=>y(!1),"aria-hidden":!0}):null,e.jsxs(Ce,{children:[e.jsx(lt,{address:p}),e.jsxs(Ie,{"data-open":w||void 0,"data-static":!0,"data-testid":"browse-sidebar",children:[e.jsxs(Fe,{children:[e.jsx(Me,{children:r("assets.filters")}),e.jsx(Re,{onClick:()=>y(!1),"aria-label":r("assets.closeFilters"),children:"✕"})]}),e.jsx(Te,{children:e.jsx(_e,{category:m,subCategory:d,onCategory:ee,onSub:t=>a({subCategory:t}),priceMin:x,priceMax:f,onPriceMin:t=>a({priceMin:t}),onPriceMax:t=>a({priceMax:t}),rarities:n,onToggleRarity:B,status:g,onStatus:R,smart:C,onSmart:t=>a({smart:t}),hideNames:!0})}),e.jsx(Pe,{children:e.jsx(Ae,{type:"button",onClick:()=>y(!1),children:r("assets.showItems")})})]})]}),e.jsxs(De,{children:[e.jsx(Le,{sort:M,onSort:t=>a({sort:t}),total:Z,loading:k,onOpenFilters:()=>y(!0),chips:v,onClearChips:z}),A?e.jsx(ge,{message:r("collection.error")}):null,!k&&!A&&S.length===0?e.jsx(fe,{testId:"collection-empty",icon:We,title:r("assets.empty.title"),body:r("collection.empty"),cta:{label:r("filterBar.clearAll"),onClick:z}}):e.jsxs(e.Fragment,{children:[e.jsx(Ue,{"data-testid":"grid",children:k?e.jsx(W,{count:15}):e.jsxs(e.Fragment,{children:[S.map(t=>e.jsx(he,{item:t},t.id)),D?e.jsx(W,{count:6}):null]})}),e.jsx(Be,{hasNextPage:V,isFetching:D,isError:J,onLoadMore:()=>void X()})]})]})]})]})}export{Et as Collection,Et as default};
134
- //# sourceMappingURL=Collection-DmkDiPC5.js.map
134
+ //# sourceMappingURL=Collection-B763ift6.js.map
@@ -1,4 +1,4 @@
1
- import{r as C,j as r}from"./react-DaBuTM6Q.js";import{s as ne,h as S,A as P,b as j,r as R,m as K,k as X,i as U}from"./authorizations-D_SudRT-.js";import{i as ie}from"./errors-DhRbQUQ8.js";import{d as l,s as n,k as oe,c as k,I as Q,i as E,aK as re,bS as O,ci as se,v as A,w as M,aP as G,a3 as de,a4 as J,K as N,av as ce,cj as le,ck as H,a1 as he}from"./index-DzQkIbqv.js";import{E as pe}from"./ErrorNotice-Dhs1BLZ6.js";import{j as ue,k as ge,l as fe,m as xe,n as me,o as I,q as be,s as we}from"./buy-BkbR80Gf.js";import{a as ve,w as ye,S as ke,G as Ce}from"./buy-gasless-CQdgMa0F.js";import{M as B,E as F,s as Y}from"./sendMetaTransaction-D_Udygrx.js";import{C as Z}from"./ethers-OrSZ5jmz.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="1abea9d9-8bf9-43b5-b8a6-b599369bd278",t._sentryDebugIdIdentifier="sentry-dbid-1abea9d9-8bf9-43b5-b8a6-b599369bd278")}catch{}})();const $="shop:resume_after_signin",Ae=900*1e3;function gt(t){try{sessionStorage.setItem($,JSON.stringify({...t,at:Date.now()}))}catch{}}function ft(t){let e;try{e=sessionStorage.getItem($)}catch{return null}if(!e)return null;try{sessionStorage.removeItem($)}catch{}let a;try{a=JSON.parse(e)}catch{return null}return!a||a.type!==t||typeof a.at!="number"||Date.now()-a.at>Ae?null:a.type==="cart-checkout"?{type:"cart-checkout"}:{type:"item-buy",path:a.path}}function xt(t,e){const a=(o,...u)=>void t.invalidateQueries({queryKey:e?[o,...u]:[o]});t.invalidateQueries({queryKey:["usd-balance"]}),t.invalidateQueries({queryKey:["detail-trade"]}),t.invalidateQueries({queryKey:["shop-item"]}),a("owned-token",e==null?void 0:e.contractAddress,e==null?void 0:e.tokenId),a("public-token",e==null?void 0:e.contractAddress,e==null?void 0:e.tokenId),a("item-resales",e==null?void 0:e.contractAddress,e==null?void 0:e.itemId),t.invalidateQueries({queryKey:["shop-items"]}),t.invalidateQueries({queryKey:["catalog-items"]}),t.invalidateQueries({queryKey:["overview-listings"]}),t.invalidateQueries({queryKey:["upsell-listings"]}),t.invalidateQueries({queryKey:["my-assets"]}),t.invalidateQueries({queryKey:["purchases"]}),t.invalidateQueries({queryKey:["owned-item-count"]})}const Me=oe`
1
+ import{r as C,j as r}from"./react-BDtnT4_L.js";import{s as ne,h as S,A as P,b as j,r as R,m as K,k as X,i as U}from"./authorizations-BF60RZYU.js";import{i as ie}from"./errors-BAO7_A7a.js";import{d as l,s as n,k as oe,c as k,I as Q,i as E,aK as re,bS as O,ci as se,v as A,w as M,aP as G,a3 as de,a4 as J,K as N,av as ce,cj as le,ck as H,a1 as he}from"./index-CyVGgMkK.js";import{E as pe}from"./ErrorNotice-CehMoY9b.js";import{j as ue,k as ge,l as fe,m as xe,n as me,o as I,q as be,s as we}from"./buy-CiksvueJ.js";import{a as ve,w as ye,S as ke,G as Ce}from"./buy-gasless-DG2qGHrJ.js";import{M as B,E as F,s as Y}from"./sendMetaTransaction-CVkzKCvR.js";import{C as Z}from"./ethers-rfaBand6.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="1d8ff394-6453-4ac7-a38b-05556d7c7458",t._sentryDebugIdIdentifier="sentry-dbid-1d8ff394-6453-4ac7-a38b-05556d7c7458")}catch{}})();const $="shop:resume_after_signin",Ae=900*1e3;function gt(t){try{sessionStorage.setItem($,JSON.stringify({...t,at:Date.now()}))}catch{}}function ft(t){let e;try{e=sessionStorage.getItem($)}catch{return null}if(!e)return null;try{sessionStorage.removeItem($)}catch{}let a;try{a=JSON.parse(e)}catch{return null}return!a||a.type!==t||typeof a.at!="number"||Date.now()-a.at>Ae?null:a.type==="cart-checkout"?{type:"cart-checkout"}:{type:"item-buy",path:a.path}}function xt(t,e){const a=(o,...u)=>void t.invalidateQueries({queryKey:e?[o,...u]:[o]});t.invalidateQueries({queryKey:["usd-balance"]}),t.invalidateQueries({queryKey:["detail-trade"]}),t.invalidateQueries({queryKey:["shop-item"]}),a("owned-token",e==null?void 0:e.contractAddress,e==null?void 0:e.tokenId),a("public-token",e==null?void 0:e.contractAddress,e==null?void 0:e.tokenId),a("item-resales",e==null?void 0:e.contractAddress,e==null?void 0:e.itemId),t.invalidateQueries({queryKey:["shop-items"]}),t.invalidateQueries({queryKey:["catalog-items"]}),t.invalidateQueries({queryKey:["overview-listings"]}),t.invalidateQueries({queryKey:["upsell-listings"]}),t.invalidateQueries({queryKey:["my-assets"]}),t.invalidateQueries({queryKey:["purchases"]}),t.invalidateQueries({queryKey:["owned-item-count"]})}const Me=oe`
2
2
  to { transform: rotate(360deg); }
3
3
  `,Te=n.div`
4
4
  position: fixed;
@@ -184,7 +184,7 @@ import{r as C,j as r}from"./react-DaBuTM6Q.js";import{s as ne,h as S,A as P,b as
184
184
  @media (prefers-reduced-motion: reduce) {
185
185
  animation: none;
186
186
  }
187
- `;function mt({auth:t,signer:e,step:a,title:o,reason:u,name:c,image:m,icon:f,onAuthorized:x,onCancel:w,onClose:b}){const[p,g]=C.useState(!1),[s,y]=C.useState(null);async function h(){g(!0),y(null);try{await ne({auth:t,signer:e,active:!0}),x()}catch(d){ie(d)?y(k("authorizeStep.errorRejected")):(E(d,{flow:"authorize_step",kind:t.kind}),y(k("authorizeStep.errorGeneric"))),g(!1)}}return r.jsx(Te,{onClick:p?void 0:b,role:"presentation","data-testid":"authorize-step-scrim",children:r.jsxs(je,{onClick:d=>d.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":o,children:[r.jsxs(ze,{children:[r.jsx(We,{children:o}),a&&a.total>1?r.jsx(Ie,{"data-testid":"authorize-step-count",children:k("authorizeStep.stepOf",{index:a.index,total:a.total})}):null,r.jsx(Ee,{onClick:b,disabled:p,"aria-label":k("authorizeStep.close"),children:r.jsx(Q,{name:"close",className:"ico"})})]}),r.jsxs($e,{"data-testid":"authorize-step-row",children:[r.jsx(Se,{children:m?r.jsx("img",{src:m,alt:""}):f}),r.jsxs(Pe,{children:[r.jsx(Ne,{title:c,children:c}),r.jsx(Be,{children:u})]})]}),r.jsx(Fe,{children:k("authorizeStep.note")}),r.jsx(pe,{message:s}),r.jsxs(Ve,{children:[r.jsx(De,{type:"button",onClick:w,disabled:p,children:k("authorizeStep.cancel")}),r.jsx(qe,{type:"button","data-testid":"authorize-step-action",onClick:()=>void h(),disabled:p,children:p?r.jsxs(r.Fragment,{children:[r.jsx(Oe,{"aria-hidden":!0}),k("authorizeStep.authorizing")]}):k("authorizeStep.authorize")})]})]})})}const bt="data:image/webp;base64,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",wt="https://cdn.decentraland.org/@dcl/shop/1.13.1-35095058100.commit-8d694c8/_assets/buy-error-22UunaPC.png";function He(t,e){return(t+e-1n)/e}function Le(t,e,a){return t<=0||e<=0?0n:t>=e?a:He(a*BigInt(t),BigInt(e))}function vt(t){var b,p,g;const e=Number.isFinite(t.priceCents)?Math.max(0,Math.trunc(t.priceCents)):0,a=Number.isFinite(t.balanceCents)?Math.max(0,Math.trunc(t.balanceCents)):0,o=t.priceManaWei>0n?t.priceManaWei:0n,u=t.manaBalanceWei>0n?t.manaBalanceWei:0n;if(e<=0)return{options:[],preferred:null,manaShortfall:null};const c=[];a>=e&&c.push({method:"credits",creditsCents:e,credits:re(e),manaWei:0n});const m=O(a)*se;if(o>0n&&m>0&&m<e){const s=e-m,y=Le(s,e,o);u>=y&&c.push({method:"combined",creditsCents:m,credits:O(m),manaWei:y})}o>0n&&u>=o&&c.push({method:"mana",creditsCents:0,credits:0,manaWei:o});const f=((b=c.find(s=>s.method==="credits"))==null?void 0:b.method)??((p=c.find(s=>s.method==="combined"))==null?void 0:p.method)??((g=c.find(s=>s.method==="mana"))==null?void 0:g.method)??null,w=!c.some(s=>s.method==="mana"||s.method==="combined")&&o>0n&&u>0n?{manaWei:u,manaCents:Re(u,e,o),priceCents:e}:null;return{options:c,preferred:f,manaShortfall:w}}function Re(t,e,a){return Number(t*BigInt(e)/a)}function yt(t,e){let a=Number.isFinite(e)?Math.max(0,Math.trunc(e)):0;return t.map(o=>{const u=Number.isFinite(o)?Math.max(0,Math.trunc(o)):0,c=Math.min(u,a);return a-=c,c})}function kt(t,e){return t.options.find(a=>a.method===e)??null}async function Ct(t){const[e]=await _({...t,trades:[t.trade],coupons:t.coupon?{[t.trade.id]:t.coupon}:void 0});return e}async function At(t){const[e]=await _({...t,trades:[],mints:[t.mint]});return e}async function _(t){const{trades:e,coupons:a,mints:o=[],buyer:u,signer:c,onSigned:m,manaWei:f}=t;if(e.length===0&&o.length===0)throw new Error("No items to buy");const x=new Map;for(const p of e){const g=`${p.chainId}:${p.contract.toLowerCase()}:${a!=null&&a[p.id]?"coupon":"plain"}`,s=x.get(g);s?s.push(p):x.set(g,[p])}const w=new Map;for(const p of o){const g=w.get(p.chainId);g?g.push(p):w.set(p.chainId,[p])}const b=[];for(const p of x.values()){const g=a?p.map(s=>a[s.id]).filter(s=>s!=null):[];b.push(await Ke({trades:p,coupons:g.length?g:void 0,buyer:u,signer:c,onSigned:m,requiredManaWei:f}))}for(const[p,g]of w){const s=f??g.reduce((y,h)=>y+BigInt(h.item.priceWei),0n);b.push(await Xe({mints:g,chainId:p,buyer:u,signer:c,onSigned:m,requiredManaWei:s}))}return b}async function Ke(t){const{trades:e,coupons:a,buyer:o,signer:u,onSigned:c,requiredManaWei:m}=t,f=e[0],x=A(G(f.contract),f.chainId),w=A(M.MANAToken,f.chainId);await S({auth:{kind:P.Allowance,contractAddress:w.address,spenderAddress:x.address,chainId:f.chainId},signer:u,requiredWei:m});const b=e.map(h=>ge(h,o));if(a!=null&&a.length&&a.length!==e.length)throw new Error(`acceptWithCoupon needs one coupon per trade, got ${a.length} for ${e.length} trades`);const p=a!=null&&a.length?a.map((h,d)=>fe(h,e[d].sent.length)):void 0;if(j.enabled)try{const{selector:h,data:d}=p?xe(e,a??[],o,x.abi):me(e,o,x.abi),v=h+d.slice(2),T=R(),z=K(u.provider,T),q=await Y(z,T,v,x,{serverURL:j.relayerUrl});return c==null||c(),await X(q,"the MANA purchase"),q}catch(h){if(h instanceof B&&h.code===F.USER_DENIED||h instanceof U)throw h;E(h,{flow:"buy_mana",step:"gasless_fallback"})}await J(u.provider,f.chainId);const g=new Z(x.address,x.abi,u),s=p?await g.acceptWithCoupon(b,p,I(f.chainId)):await g.accept(b,I(f.chainId));return c==null||c(),(await s.wait()).transactionHash}async function Xe(t){const{mints:e,chainId:a,buyer:o,signer:u,onSigned:c,requiredManaWei:m}=t,f=A(M.CollectionStore,a),x=A(M.MANAToken,a),w=e.map(s=>s.item);if(await S({auth:{kind:P.Allowance,contractAddress:x.address,spenderAddress:f.address,chainId:a},signer:u,requiredWei:m}),j.enabled)try{const s=be(w,o,f.abi),y=R(),h=K(u.provider,y),d=await Y(h,y,s,f,{serverURL:j.relayerUrl});return c==null||c(),await X(d,"the MANA purchase"),d}catch(s){if(s instanceof B&&s.code===F.USER_DENIED||s instanceof U)throw s;E(s,{flow:"buy_mint_mana",step:"gasless_fallback"})}await J(u.provider,a);const p=await new Z(f.address,f.abi,u).buy(we(w,o),I(a));return c==null||c(),(await p.wait()).transactionHash}async function Mt(t){const{trade:e,coupon:a,...o}=t;return ee({target:{kind:"trade",trade:e,coupon:a},...o})}async function Tt(t){const{mint:e,...a}=t;return ee({target:{kind:"store",mint:e},...a})}async function ee(t){const{target:e,buyer:a,signer:o,credits:u,manaGapWei:c,providerType:m,onBroadcast:f,onReverted:x,onUnobservable:w}=t;if(u.length===0)throw new Error("No credits to spend — use the MANA-only rail for that");if(c<=0n)throw new Error("No MANA gap to cover — use the credits-only rail for that");const b=te(e),p=A(M.MANAToken,b),g=A(M.CreditsManager,b);await S({auth:{kind:P.Allowance,contractAddress:p.address,spenderAddress:g.address,chainId:b},signer:o,requiredWei:c});const y=(u.reduce((d,v)=>d+BigInt(v.availableAmount),0n)+c).toString(),h=Ue(e,u,y);if(j.enabled){let d;try{return d=await ve({purchase:h,buyer:a,signer:o}),f==null||f({txHash:d}),await ye(d),d}catch(v){if(v instanceof B&&v.code===F.USER_DENIED||v instanceof ke)throw v;if(!(v instanceof Ce))throw d&&(x==null||x({txHash:d})),v;if(v.reason==="relayer-unreachable")throw w==null||w(),v;if(!de(m))throw v;E(v,{flow:"buy_credits_and_mana",step:"gasless_fallback"})}}return ue({purchase:h,buyer:a,signer:o,onBroadcast:f,onReverted:x})}function te(t){return t.kind==="trade"?t.trade.chainId:t.mint.chainId}function Ue(t,e,a){return t.kind==="trade"?{kind:"trade",trade:t.trade,coupon:t.coupon,credits:e,maxCreditedValue:a}:{kind:"store",item:t.mint.item,chainId:t.mint.chainId,credits:e,maxCreditedValue:a}}function jt(t,e){const a=te(e);return t==="combined"?{spender:A(M.CreditsManager,a).address,chainId:a}:{spender:e.kind==="trade"?A(G(e.trade.contract),a).address:A(M.CollectionStore,a).address,chainId:a}}function zt(t){return r.jsx("svg",{viewBox:"0 0 18 18",width:"18",height:"18","aria-hidden":!0,...t,children:r.jsx("path",{d:"M4 4l10 10M14 4L4 14",stroke:"#161518",strokeWidth:"1.8",strokeLinecap:"round"})})}function Wt(t){return r.jsx("svg",{viewBox:"0 0 20 20",width:"24",height:"24","aria-hidden":!0,...t,children:r.jsx("path",{fill:"#f48221",d:"M10 0a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 11a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm0-8a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V6a1 1 0 0 1 1-1Z"})})}const{colors:i,gradients:V,radius:ae,z:Qe}=l,Et=n.div`
187
+ `;function mt({auth:t,signer:e,step:a,title:o,reason:u,name:c,image:m,icon:f,onAuthorized:x,onCancel:w,onClose:b}){const[p,g]=C.useState(!1),[s,y]=C.useState(null);async function h(){g(!0),y(null);try{await ne({auth:t,signer:e,active:!0}),x()}catch(d){ie(d)?y(k("authorizeStep.errorRejected")):(E(d,{flow:"authorize_step",kind:t.kind}),y(k("authorizeStep.errorGeneric"))),g(!1)}}return r.jsx(Te,{onClick:p?void 0:b,role:"presentation","data-testid":"authorize-step-scrim",children:r.jsxs(je,{onClick:d=>d.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":o,children:[r.jsxs(ze,{children:[r.jsx(We,{children:o}),a&&a.total>1?r.jsx(Ie,{"data-testid":"authorize-step-count",children:k("authorizeStep.stepOf",{index:a.index,total:a.total})}):null,r.jsx(Ee,{onClick:b,disabled:p,"aria-label":k("authorizeStep.close"),children:r.jsx(Q,{name:"close",className:"ico"})})]}),r.jsxs($e,{"data-testid":"authorize-step-row",children:[r.jsx(Se,{children:m?r.jsx("img",{src:m,alt:""}):f}),r.jsxs(Pe,{children:[r.jsx(Ne,{title:c,children:c}),r.jsx(Be,{children:u})]})]}),r.jsx(Fe,{children:k("authorizeStep.note")}),r.jsx(pe,{message:s}),r.jsxs(Ve,{children:[r.jsx(De,{type:"button",onClick:w,disabled:p,children:k("authorizeStep.cancel")}),r.jsx(qe,{type:"button","data-testid":"authorize-step-action",onClick:()=>void h(),disabled:p,children:p?r.jsxs(r.Fragment,{children:[r.jsx(Oe,{"aria-hidden":!0}),k("authorizeStep.authorizing")]}):k("authorizeStep.authorize")})]})]})})}const bt="data:image/webp;base64,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",wt="https://cdn.decentraland.org/@dcl/shop/1.13.1-35110739985.commit-7718205/_assets/buy-error-22UunaPC.png";function He(t,e){return(t+e-1n)/e}function Le(t,e,a){return t<=0||e<=0?0n:t>=e?a:He(a*BigInt(t),BigInt(e))}function vt(t){var b,p,g;const e=Number.isFinite(t.priceCents)?Math.max(0,Math.trunc(t.priceCents)):0,a=Number.isFinite(t.balanceCents)?Math.max(0,Math.trunc(t.balanceCents)):0,o=t.priceManaWei>0n?t.priceManaWei:0n,u=t.manaBalanceWei>0n?t.manaBalanceWei:0n;if(e<=0)return{options:[],preferred:null,manaShortfall:null};const c=[];a>=e&&c.push({method:"credits",creditsCents:e,credits:re(e),manaWei:0n});const m=O(a)*se;if(o>0n&&m>0&&m<e){const s=e-m,y=Le(s,e,o);u>=y&&c.push({method:"combined",creditsCents:m,credits:O(m),manaWei:y})}o>0n&&u>=o&&c.push({method:"mana",creditsCents:0,credits:0,manaWei:o});const f=((b=c.find(s=>s.method==="credits"))==null?void 0:b.method)??((p=c.find(s=>s.method==="combined"))==null?void 0:p.method)??((g=c.find(s=>s.method==="mana"))==null?void 0:g.method)??null,w=!c.some(s=>s.method==="mana"||s.method==="combined")&&o>0n&&u>0n?{manaWei:u,manaCents:Re(u,e,o),priceCents:e}:null;return{options:c,preferred:f,manaShortfall:w}}function Re(t,e,a){return Number(t*BigInt(e)/a)}function yt(t,e){let a=Number.isFinite(e)?Math.max(0,Math.trunc(e)):0;return t.map(o=>{const u=Number.isFinite(o)?Math.max(0,Math.trunc(o)):0,c=Math.min(u,a);return a-=c,c})}function kt(t,e){return t.options.find(a=>a.method===e)??null}async function Ct(t){const[e]=await _({...t,trades:[t.trade],coupons:t.coupon?{[t.trade.id]:t.coupon}:void 0});return e}async function At(t){const[e]=await _({...t,trades:[],mints:[t.mint]});return e}async function _(t){const{trades:e,coupons:a,mints:o=[],buyer:u,signer:c,onSigned:m,manaWei:f}=t;if(e.length===0&&o.length===0)throw new Error("No items to buy");const x=new Map;for(const p of e){const g=`${p.chainId}:${p.contract.toLowerCase()}:${a!=null&&a[p.id]?"coupon":"plain"}`,s=x.get(g);s?s.push(p):x.set(g,[p])}const w=new Map;for(const p of o){const g=w.get(p.chainId);g?g.push(p):w.set(p.chainId,[p])}const b=[];for(const p of x.values()){const g=a?p.map(s=>a[s.id]).filter(s=>s!=null):[];b.push(await Ke({trades:p,coupons:g.length?g:void 0,buyer:u,signer:c,onSigned:m,requiredManaWei:f}))}for(const[p,g]of w){const s=f??g.reduce((y,h)=>y+BigInt(h.item.priceWei),0n);b.push(await Xe({mints:g,chainId:p,buyer:u,signer:c,onSigned:m,requiredManaWei:s}))}return b}async function Ke(t){const{trades:e,coupons:a,buyer:o,signer:u,onSigned:c,requiredManaWei:m}=t,f=e[0],x=A(G(f.contract),f.chainId),w=A(M.MANAToken,f.chainId);await S({auth:{kind:P.Allowance,contractAddress:w.address,spenderAddress:x.address,chainId:f.chainId},signer:u,requiredWei:m});const b=e.map(h=>ge(h,o));if(a!=null&&a.length&&a.length!==e.length)throw new Error(`acceptWithCoupon needs one coupon per trade, got ${a.length} for ${e.length} trades`);const p=a!=null&&a.length?a.map((h,d)=>fe(h,e[d].sent.length)):void 0;if(j.enabled)try{const{selector:h,data:d}=p?xe(e,a??[],o,x.abi):me(e,o,x.abi),v=h+d.slice(2),T=R(),z=K(u.provider,T),q=await Y(z,T,v,x,{serverURL:j.relayerUrl});return c==null||c(),await X(q,"the MANA purchase"),q}catch(h){if(h instanceof B&&h.code===F.USER_DENIED||h instanceof U)throw h;E(h,{flow:"buy_mana",step:"gasless_fallback"})}await J(u.provider,f.chainId);const g=new Z(x.address,x.abi,u),s=p?await g.acceptWithCoupon(b,p,I(f.chainId)):await g.accept(b,I(f.chainId));return c==null||c(),(await s.wait()).transactionHash}async function Xe(t){const{mints:e,chainId:a,buyer:o,signer:u,onSigned:c,requiredManaWei:m}=t,f=A(M.CollectionStore,a),x=A(M.MANAToken,a),w=e.map(s=>s.item);if(await S({auth:{kind:P.Allowance,contractAddress:x.address,spenderAddress:f.address,chainId:a},signer:u,requiredWei:m}),j.enabled)try{const s=be(w,o,f.abi),y=R(),h=K(u.provider,y),d=await Y(h,y,s,f,{serverURL:j.relayerUrl});return c==null||c(),await X(d,"the MANA purchase"),d}catch(s){if(s instanceof B&&s.code===F.USER_DENIED||s instanceof U)throw s;E(s,{flow:"buy_mint_mana",step:"gasless_fallback"})}await J(u.provider,a);const p=await new Z(f.address,f.abi,u).buy(we(w,o),I(a));return c==null||c(),(await p.wait()).transactionHash}async function Mt(t){const{trade:e,coupon:a,...o}=t;return ee({target:{kind:"trade",trade:e,coupon:a},...o})}async function Tt(t){const{mint:e,...a}=t;return ee({target:{kind:"store",mint:e},...a})}async function ee(t){const{target:e,buyer:a,signer:o,credits:u,manaGapWei:c,providerType:m,onBroadcast:f,onReverted:x,onUnobservable:w}=t;if(u.length===0)throw new Error("No credits to spend — use the MANA-only rail for that");if(c<=0n)throw new Error("No MANA gap to cover — use the credits-only rail for that");const b=te(e),p=A(M.MANAToken,b),g=A(M.CreditsManager,b);await S({auth:{kind:P.Allowance,contractAddress:p.address,spenderAddress:g.address,chainId:b},signer:o,requiredWei:c});const y=(u.reduce((d,v)=>d+BigInt(v.availableAmount),0n)+c).toString(),h=Ue(e,u,y);if(j.enabled){let d;try{return d=await ve({purchase:h,buyer:a,signer:o}),f==null||f({txHash:d}),await ye(d),d}catch(v){if(v instanceof B&&v.code===F.USER_DENIED||v instanceof ke)throw v;if(!(v instanceof Ce))throw d&&(x==null||x({txHash:d})),v;if(v.reason==="relayer-unreachable")throw w==null||w(),v;if(!de(m))throw v;E(v,{flow:"buy_credits_and_mana",step:"gasless_fallback"})}}return ue({purchase:h,buyer:a,signer:o,onBroadcast:f,onReverted:x})}function te(t){return t.kind==="trade"?t.trade.chainId:t.mint.chainId}function Ue(t,e,a){return t.kind==="trade"?{kind:"trade",trade:t.trade,coupon:t.coupon,credits:e,maxCreditedValue:a}:{kind:"store",item:t.mint.item,chainId:t.mint.chainId,credits:e,maxCreditedValue:a}}function jt(t,e){const a=te(e);return t==="combined"?{spender:A(M.CreditsManager,a).address,chainId:a}:{spender:e.kind==="trade"?A(G(e.trade.contract),a).address:A(M.CollectionStore,a).address,chainId:a}}function zt(t){return r.jsx("svg",{viewBox:"0 0 18 18",width:"18",height:"18","aria-hidden":!0,...t,children:r.jsx("path",{d:"M4 4l10 10M14 4L4 14",stroke:"#161518",strokeWidth:"1.8",strokeLinecap:"round"})})}function Wt(t){return r.jsx("svg",{viewBox:"0 0 20 20",width:"24",height:"24","aria-hidden":!0,...t,children:r.jsx("path",{fill:"#f48221",d:"M10 0a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 11a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm0-8a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V6a1 1 0 0 1 1-1Z"})})}const{colors:i,gradients:V,radius:ae,z:Qe}=l,Et=n.div`
188
188
  position: fixed;
189
189
  inset: 0;
190
190
  z-index: ${Qe.overlay};
@@ -848,4 +848,4 @@ import{r as C,j as r}from"./react-DaBuTM6Q.js";import{s as ne,h as S,A as P,b as
848
848
  transform: scale(1.1);
849
849
  }
850
850
  `;function ba({title:t,items:e,onViewAll:a}){const o=C.useRef(null),[u,c]=C.useState(1),[m,f]=C.useState(0),[x,w]=C.useState(!0),[b,p]=C.useState(!1),g=C.useCallback(()=>{const h=o.current;if(!h)return;const{scrollLeft:d,scrollWidth:v,clientWidth:T}=h,z=Math.max(1,Math.ceil(v/T));c(z),f(Math.min(z-1,Math.round(d/T))),w(d<=1),p(d+T>=v-1)},[]);if(C.useEffect(()=>{g();const h=o.current;if(h)return h.addEventListener("scroll",g,{passive:!0}),window.addEventListener("resize",g),()=>{h.removeEventListener("scroll",g),window.removeEventListener("resize",g)}},[g,e.length]),e.length===0)return null;function s(h){const d=o.current;d&&d.scrollBy({left:h*d.clientWidth,behavior:"smooth"})}function y(h){const d=o.current;d&&d.scrollTo({left:h*d.clientWidth,behavior:"smooth"})}return r.jsxs(Je,{"data-testid":"carousel",children:[r.jsxs(Ye,{children:[r.jsx(Ze,{children:t}),a?r.jsxs(_e,{onClick:a,children:[k("collectionCarousel.viewAll"),r.jsx(et,{name:"chevron-down",size:16})]}):null]}),r.jsxs(tt,{children:[r.jsx(L,{"data-side":"left",onClick:()=>s(-1),"aria-label":k("collectionCarousel.scrollLeft"),disabled:x,children:r.jsx("img",{src:H,alt:"","aria-hidden":!0})}),r.jsx(at,{ref:o,children:e.map(h=>r.jsx(he,{item:h},h.id))}),r.jsx(L,{"data-side":"right",onClick:()=>s(1),"aria-label":k("collectionCarousel.scrollRight"),disabled:b,children:r.jsx("img",{src:H,alt:"","aria-hidden":!0})})]}),u>1?r.jsx(nt,{"aria-label":k("collectionCarousel.pages"),children:Array.from({length:u}).map((h,d)=>r.jsx(it,{"data-active":d===m||void 0,"aria-label":k("collectionCarousel.goToPage",{page:d+1}),"aria-current":d===m?"true":void 0,onClick:()=>y(d)},d))}):null]})}export{Le as $,Ht as A,Ft as B,$t as C,bt as D,ta as E,aa as F,na as G,St as H,ia as I,oa as J,ra as K,ca as L,Et as M,vt as N,ft as O,ua as P,ba as Q,mt as R,It as S,Nt as T,gt as U,xt as V,Gt as W,Bt as X,jt as Y,_ as Z,yt as _,Pt as a,Ue as a0,te as a1,xa as a2,ma as a3,da as a4,kt as a5,Ct as a6,At as a7,Mt as a8,Tt as a9,zt as b,Vt as c,Dt as d,qt as e,Ot as f,la as g,ha as h,wt as i,pa as j,sa as k,Ge as l,ga as m,fa as n,Wt as o,Jt as p,Yt as q,Lt as r,Rt as s,Kt as t,Xt as u,Ut as v,Qt as w,Zt as x,_t as y,ea as z};
851
- //# sourceMappingURL=CollectionCarousel-C2aZMUS6.js.map
851
+ //# sourceMappingURL=CollectionCarousel-DFNRTOFP.js.map
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index.es-CeXL7thu.js","_assets/react-DaBuTM6Q.js"])))=>i.map(i=>d[i]);
2
- import{s as o,_ as s}from"./index-DzQkIbqv.js";import{r as n,j as i}from"./react-DaBuTM6Q.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6c99567c-3c38-42bf-9c7f-6e73b80eeae8",e._sentryDebugIdIdentifier="sentry-dbid-6c99567c-3c38-42bf-9c7f-6e73b80eeae8")}catch{}})();const a=o.div`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index.es-Cd0iKBsN.js","_assets/react-BDtnT4_L.js"])))=>i.map(i=>d[i]);
2
+ import{s as o,_ as s}from"./index-CyVGgMkK.js";import{r as n,j as i}from"./react-BDtnT4_L.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6c99567c-3c38-42bf-9c7f-6e73b80eeae8",e._sentryDebugIdIdentifier="sentry-dbid-6c99567c-3c38-42bf-9c7f-6e73b80eeae8")}catch{}})();const a=o.div`
3
3
  position: fixed;
4
4
  inset: 0;
5
5
  /**
@@ -14,5 +14,5 @@ import{s as o,_ as s}from"./index-DzQkIbqv.js";import{r as n,j as i}from"./react
14
14
  */
15
15
  z-index: -1;
16
16
  pointer-events: none;
17
- `,r=n.lazy(async()=>{const[{default:e},{default:t}]=await Promise.all([s(()=>import("./index.es-CeXL7thu.js"),__vite__mapDeps([0,1])),s(()=>import("./confettiAnimation-Btd6HRFo.js"),[])]);return{default:()=>i.jsx(e,{animationData:t,loop:1})}});function u(){const[e]=n.useState(()=>{var t;return!((t=window.matchMedia)!=null&&t.call(window,"(prefers-reduced-motion: reduce)").matches)});return e?i.jsx(a,{"aria-hidden":!0,"data-testid":"confetti",children:i.jsx(n.Suspense,{fallback:null,children:i.jsx(r,{})})}):null}export{u as C};
18
- //# sourceMappingURL=Confetti-CQ1miyT0.js.map
17
+ `,r=n.lazy(async()=>{const[{default:e},{default:t}]=await Promise.all([s(()=>import("./index.es-Cd0iKBsN.js"),__vite__mapDeps([0,1])),s(()=>import("./confettiAnimation-Btd6HRFo.js"),[])]);return{default:()=>i.jsx(e,{animationData:t,loop:1})}});function u(){const[e]=n.useState(()=>{var t;return!((t=window.matchMedia)!=null&&t.call(window,"(prefers-reduced-motion: reduce)").matches)});return e?i.jsx(a,{"aria-hidden":!0,"data-testid":"confetti",children:i.jsx(n.Suspense,{fallback:null,children:i.jsx(r,{})})}):null}export{u as C};
18
+ //# sourceMappingURL=Confetti-B1XP6v1O.js.map
@@ -1,2 +1,2 @@
1
- import{p as o}from"./sentry-ilLelGl_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="212e6b2b-00bf-4961-b68b-1d32c6f901a6",e._sentryDebugIdIdentifier="sentry-dbid-212e6b2b-00bf-4961-b68b-1d32c6f901a6")}catch{}})();var n={};const r={ACCOUNT_TABS:[{label:"Tokens"},{label:"Activity"}],SECURE_SITE_ORIGIN:(typeof o<"u"&&typeof n<"u"?n.NEXT_PUBLIC_SECURE_SITE_ORIGIN:void 0)||"https://secure.walletconnect.org",VIEW_DIRECTION:{Next:"next",Prev:"prev"},ANIMATION_DURATIONS:{HeaderText:120},VIEWS_WITH_LEGAL_FOOTER:["Connect","ConnectWallets","OnRampTokenSelect","OnRampFiatSelect","OnRampProviders"],VIEWS_WITH_DEFAULT_FOOTER:["Networks"]};export{r as C};
2
- //# sourceMappingURL=ConstantsUtil-DxsGGeAI.js.map
1
+ import{p as o}from"./sentry-DJtBihbA.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="212e6b2b-00bf-4961-b68b-1d32c6f901a6",e._sentryDebugIdIdentifier="sentry-dbid-212e6b2b-00bf-4961-b68b-1d32c6f901a6")}catch{}})();var n={};const r={ACCOUNT_TABS:[{label:"Tokens"},{label:"Activity"}],SECURE_SITE_ORIGIN:(typeof o<"u"&&typeof n<"u"?n.NEXT_PUBLIC_SECURE_SITE_ORIGIN:void 0)||"https://secure.walletconnect.org",VIEW_DIRECTION:{Next:"next",Prev:"prev"},ANIMATION_DURATIONS:{HeaderText:120},VIEWS_WITH_LEGAL_FOOTER:["Connect","ConnectWallets","OnRampTokenSelect","OnRampFiatSelect","OnRampProviders"],VIEWS_WITH_DEFAULT_FOOTER:["Networks"]};export{r as C};
2
+ //# sourceMappingURL=ConstantsUtil-6Pwi3OKY.js.map