@dcl/shop 1.13.1-35085806935.commit-1d79e2c → 1.13.1-35088015492.commit-25d8a11

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 (238) hide show
  1. package/_assets/{Activity-C_IerNiA.js → Activity-Br7TotTg.js} +4 -4
  2. package/_assets/{AnimatedBackground-rd0Cm7UJ.js → AnimatedBackground-mKUTCrsZ.js} +6 -6
  3. package/_assets/{Assets-BWPFNRh2.js → Assets-Bh3kAxON.js} +9 -9
  4. package/_assets/{Authorizations-KOzubUgz.js → Authorizations-DPVFuAHg.js} +2 -2
  5. package/_assets/{Cart-B2-isbha.js → Cart-Cz1_8pDF.js} +2 -2
  6. package/_assets/{Collection-D-8Bpi67.js → Collection-BIm7ajYT.js} +2 -2
  7. package/_assets/{CollectionCarousel-BuB-J2CU.js → CollectionCarousel-Dgmy1mBv.js} +3 -3
  8. package/_assets/{Confetti-CYipT9FZ.js → Confetti-TvBa-8L0.js} +4 -4
  9. package/_assets/{ConstantsUtil-DuHj0CMN.js → ConstantsUtil-BIW9CVUv.js} +2 -2
  10. package/_assets/{ContentClient-CAzHzG9i.js → ContentClient-CWLYPXGZ.js} +2 -2
  11. package/_assets/{Creator-CTFy7_m-.js → Creator-Bm286S4l.js} +2 -2
  12. package/_assets/{DeploymentBuilder-CtvVWhRq.js → DeploymentBuilder-lkKjiabA.js} +2 -2
  13. package/_assets/{EmotePlaybackBar-BsBGlr0h.js → EmotePlaybackBar-CmOnYKyU.js} +5 -5
  14. package/_assets/{ErrorNotice-C_S89bAS.js → ErrorNotice-Dqt3U2vl.js} +2 -2
  15. package/_assets/{Event-7sfgV2Md.js → Event-CzoOohtw.js} +2 -2
  16. package/_assets/{ExchangeController-DHN2m7yT.js → ExchangeController-DLt1pr9X.js} +2 -2
  17. package/_assets/{Faq-mqMFd-El.js → Faq-C75vztz0.js} +2 -2
  18. package/_assets/{GetCredits-Dd7nayxX.js → GetCredits-C4r6Z9Ll.js} +2 -2
  19. package/_assets/{Grow-oKBN4u5_.js → Grow-C89nQ9vj.js} +2 -2
  20. package/_assets/{HelpersUtil-CFsKkgDg.js → HelpersUtil-BZx2xXkr.js} +2 -2
  21. package/_assets/ItemDetail-O0E45P4x.js +3778 -0
  22. package/_assets/{LoadMore-BALknwCN.js → LoadMore-DgGHun07.js} +2 -2
  23. package/_assets/{ManaPricingBanner.styles-_vfEtCmJ.js → ManaPricingBanner.styles-DIaSN-0J.js} +2 -2
  24. package/_assets/{MyAssets-BW5TAGSd.js → MyAssets-B_B3e16w.js} +2 -2
  25. package/_assets/{MyFavorites-CpNcQvv5.js → MyFavorites-DyG3bnHZ.js} +2 -2
  26. package/_assets/{NetworkUtil-FgTwh6ht.js → NetworkUtil-C2mA-_Ya.js} +2 -2
  27. package/_assets/{NotFound-Cy2qsu2r.js → NotFound-C19ay2J0.js} +2 -2
  28. package/_assets/{NotificationsBell-CNV2Pg0I.js → NotificationsBell-Bg_tRjZT.js} +2 -2
  29. package/_assets/{OutfitDetail-C9XBwEIV.js → OutfitDetail-BILkjOT0.js} +2 -2
  30. package/_assets/{OutfitPreview-CnZSZod5.js → OutfitPreview-DnePnq6P.js} +2 -2
  31. package/_assets/{OutfitStudio-DvHXjWRS.js → OutfitStudio-BVxXtmNl.js} +2 -2
  32. package/_assets/{Spinner-C558dCbB.js → Spinner-CjR4Zw45.js} +2 -2
  33. package/_assets/{StoreSettings-1slOpk3_.js → StoreSettings-BI2PxdDc.js} +2 -2
  34. package/_assets/{Success-DMKBgnMb.js → Success-BMSTCual.js} +2 -2
  35. package/_assets/{SwapController-BI_o5Mdx.js → SwapController-MUVg1jDR.js} +2 -2
  36. package/_assets/{TradeService-DxIaYj6U.js → TradeService-DSbQ-N2T.js} +2 -2
  37. package/_assets/{W3MFrameProviderSingleton-B_HuzaO4.js → W3MFrameProviderSingleton-bGfA1Ldc.js} +4 -4
  38. package/_assets/{WebCryptoP256-mXccULbe.js → WebCryptoP256-RyjS14F-.js} +2 -2
  39. package/_assets/{authorizations-CVBKhCle.js → authorizations-o-LlYXNc.js} +2 -2
  40. package/_assets/{basic-Chw7xZAx.js → basic-nXP69bkA.js} +2 -2
  41. package/_assets/{biconomy-CXY0FYrS.js → biconomy-D6gisxlY.js} +2 -2
  42. package/_assets/{browseLayout.styles-BX8RNIIu.js → browseLayout.styles-Bza8FY3N.js} +2 -2
  43. package/_assets/{browser-90ZLxYpX.js → browser-D53imPjf.js} +2 -2
  44. package/_assets/{browser-Df4wyid-.js → browser-DIXts996.js} +2 -2
  45. package/_assets/{browser-ponyfill-CqpF85JO.js → browser-ponyfill-BaElO0Yy.js} +2 -2
  46. package/_assets/{builder-CfVDu5Z0.js → builder-CEDpBFkW.js} +2 -2
  47. package/_assets/{buy-Caju-Nj5.js → buy-8-Zq_4Fb.js} +2 -2
  48. package/_assets/{buy-gasless-BUFRMHYL.js → buy-gasless-mSBHbIka.js} +2 -2
  49. package/_assets/{categories-CZdjHjf9.js → categories-J0dMuNkM.js} +2 -2
  50. package/_assets/{ccip-CsQTQdMh.js → ccip-CNvm_wRE.js} +2 -2
  51. package/_assets/{ccip-BWG3a7A5.js → ccip-CgSAa6qI.js} +2 -2
  52. package/_assets/{chains-Bg7Yt-VK.js → chains-BbZKALwH.js} +2 -2
  53. package/_assets/{collectionPage.styles-BaIAkimk.js → collectionPage.styles-C--ki2P9.js} +8 -8
  54. package/_assets/{common-DJUhWO_g.js → common-TqxBDIuh.js} +2 -2
  55. package/_assets/{controller-DS4nSeab.js → controller-B5adsfCx.js} +3 -3
  56. package/_assets/{core-3J5SSgPT.js → core-Dz9rfTnP.js} +5 -5
  57. package/_assets/{createSvgIcon-Dcj-MthE.js → createSvgIcon-DSycgKQz.js} +2 -2
  58. package/_assets/{crumbs.styles-NOQP7gu4.js → crumbs.styles-BqMPTZMi.js} +2 -2
  59. package/_assets/{custom-CZwZDXcB.js → custom-SA3P34sS.js} +2 -2
  60. package/_assets/{data-capture-BCREkcGt.js → data-capture-QCuBCgVo.js} +2 -2
  61. package/_assets/{dcl-schemas-BhHIKpM4.js → dcl-schemas-BKQ0vYZF.js} +2 -2
  62. package/_assets/{decimals-CQh414kf.js → decimals-BlmrI4QX.js} +2 -2
  63. package/_assets/{decimals-AXPEfgKi.js → decimals-CZlYYHvF.js} +2 -2
  64. package/_assets/{detectExtension-DhgGAkTY.js → detectExtension-BES_31hM.js} +2 -2
  65. package/_assets/{disposePreview-DOxawycc.js → disposePreview-BDCsvWuP.js} +2 -2
  66. package/_assets/{email-CZoS-SB6.js → email--UGVY4VA.js} +2 -2
  67. package/_assets/{embedded-wallet-BgHzP-sQ.js → embedded-wallet-C0h1UGCI.js} +2 -2
  68. package/_assets/{emotion-styled.browser.esm-CeAxqmRx.js → emotion-styled.browser.esm-8Fn_bSaK.js} +2 -2
  69. package/_assets/{engine-ClIxmK8b.js → engine-CVmNCEKG.js} +2 -2
  70. package/_assets/{errors-CSqR1pci.js → errors-5abtsF-d.js} +2 -2
  71. package/_assets/{estimate-l1-fee-DrsdAIsF.js → estimate-l1-fee-Dh31wn7V.js} +2 -2
  72. package/_assets/{eth_estimateGas-sjr2uZ-_.js → eth_estimateGas-UbaxlGnG.js} +2 -2
  73. package/_assets/{eth_getStorageAt-DiEfelEu.js → eth_getStorageAt-BUvTw4uP.js} +2 -2
  74. package/_assets/{eth_getTransactionCount-B6QQ4gtE.js → eth_getTransactionCount-CGFdAd5L.js} +2 -2
  75. package/_assets/{ethereum-DUqOKRGC.js → ethereum-TadlwfdZ.js} +2 -2
  76. package/_assets/{ethers-CkmgjxHm.js → ethers-CqnE9_Iy.js} +2 -2
  77. package/_assets/{events-BC3T4RCY.js → events-DxeiWjZO.js} +2 -2
  78. package/_assets/{execute-BSB5qE4d.js → execute-bRHFO9T8.js} +3 -3
  79. package/_assets/{extractIPFS-DvcS_8de.js → extractIPFS-DTbEwfwl.js} +2 -2
  80. package/_assets/{features-D80mn54l.js → features-DOlQFJIn.js} +2 -2
  81. package/_assets/{fetchTokenMetadata-BzwBPBWc.js → fetchTokenMetadata-C1uUHgz6.js} +3 -3
  82. package/_assets/{field.styles-BIFdqCzy.js → field.styles-CGT52_F0.js} +2 -2
  83. package/_assets/{fortmatic-DnF86mLy.js → fortmatic-B4F48NpJ.js} +2 -2
  84. package/_assets/{get-bytecode-DpvPu_G_.js → get-bytecode-B61L8bJf.js} +2 -2
  85. package/_assets/{get-ecosystem-wallet-info-BoZDcL5t.js → get-ecosystem-wallet-info-W6y9v6fC.js} +2 -2
  86. package/_assets/{getBalance-BZp9GQ9N.js → getBalance-CgOiBcM_.js} +3 -3
  87. package/_assets/{getInstalledModules-VtAt7mHd.js → getInstalledModules-DWdNC3R0.js} +2 -2
  88. package/_assets/{getNFT-m0HM_XZ4.js → getNFT-BOhaT1yq.js} +3 -3
  89. package/_assets/{getNFT-BYmBhzoa.js → getNFT-Op6nNTCr.js} +2 -2
  90. package/_assets/{grid.styles-C2IQh-32.js → grid.styles-iTSFhsyn.js} +2 -2
  91. package/_assets/{hashTypedData-BVZHbmrs.js → hashTypedData-BjxqyJnO.js} +2 -2
  92. package/_assets/{hashTypedData-Tld_HkS8.js → hashTypedData-CTf6X_0x.js} +2 -2
  93. package/_assets/{import-DwXeY7AR.js → import-BFM9mYtD.js} +2 -2
  94. package/_assets/{in-app-Bo54_ze4.js → in-app-D-IPfiDb.js} +2 -2
  95. package/_assets/{in-app-wallet-calls-D0b-0cWi.js → in-app-wallet-calls-BivXJ6s-.js} +2 -2
  96. package/_assets/{index-DS5qHieE.js → index-8c2AE2rL.js} +2 -2
  97. package/_assets/{index-Bhh1VsVq.js → index-9ER2YXLE.js} +2 -2
  98. package/_assets/{index-R11XWKZf.js → index-AH8vZ3-a.js} +2 -2
  99. package/_assets/{index-Z5sRHcls.js → index-ApdCRpGh.js} +2 -2
  100. package/_assets/{index-mB3m9iZN.js → index-B0AMIOfY.js} +2 -2
  101. package/_assets/{index-BlxCL47V.js → index-B3cule6M.js} +2 -2
  102. package/_assets/{index-NuEVZ0UW.js → index-BE-bCzXU.js} +2 -2
  103. package/_assets/{index-CWERQA0y.js → index-BIU1Xflg.js} +2 -2
  104. package/_assets/{index-C0gpyWhu.js → index-BLF43zxA.js} +2 -2
  105. package/_assets/{index-COaYP6gF.js → index-BLu7rJtN.js} +2 -2
  106. package/_assets/{index-BE4j7Nuq.js → index-BMWj60Rz.js} +2 -2
  107. package/_assets/{index-CkHnQw8I.js → index-BbT8qu_L.js} +3 -3
  108. package/_assets/{index-Wmg185eM.js → index-BbYwNUDQ.js} +2 -2
  109. package/_assets/{index-BkuaFLII.js → index-Bece1vl_.js} +3 -3
  110. package/_assets/{index-zq6tYXCi.js → index-BgSm7poL.js} +2 -2
  111. package/_assets/{index-DGaeG6X9.js → index-BgewSO5d.js} +2 -2
  112. package/_assets/{index-DjxSVK-S.js → index-Bi7YdA0p.js} +2 -2
  113. package/_assets/{index-Cl-xJvVY.js → index-BjvOCOXo.js} +2 -2
  114. package/_assets/{index-BocYyaTP.js → index-Bo1Z5mEG.js} +2 -2
  115. package/_assets/{index-CobihOwe.js → index-BpgGRt4i.js} +2 -2
  116. package/_assets/{index-m6wHTHWn.js → index-BqXgj2c4.js} +2 -2
  117. package/_assets/{index-FbFczga-.js → index-BuUjwDYx.js} +2 -2
  118. package/_assets/{index-BjkERpTp.css → index-ByiMU36z.css} +1 -1
  119. package/_assets/{index-ChjrXYqO.js → index-C1ILo9mK.js} +2 -2
  120. package/_assets/{index-BLgMQkOw.js → index-C3ELTXuu.js} +3 -3
  121. package/_assets/{index-Dv88yctr.js → index-C6WGvNBW.js} +2 -2
  122. package/_assets/{index-DC8tm76o.js → index-C7RUGLgx.js} +420 -414
  123. package/_assets/{index-wntKx5z1.js → index-C8USgWUh.js} +2 -2
  124. package/_assets/{index-Cn0xip1b.js → index-CORj9AA6.js} +2 -2
  125. package/_assets/{index-DnqHdjvd.js → index-CQyQWevE.js} +2 -2
  126. package/_assets/{index-7xh3Jf5R.js → index-CToeVfXv.js} +2 -2
  127. package/_assets/{index-D_r0aCgk.js → index-CVfarqKE.js} +4 -4
  128. package/_assets/{index-S4gbJ6vm.js → index-CWpLrxaY.js} +2 -2
  129. package/_assets/{index-UUhXVcLF.js → index-CcJ1bQOV.js} +2 -2
  130. package/_assets/{index-Dd1Mcth_.js → index-CcMloegU.js} +2 -2
  131. package/_assets/{index-BvPCbOi0.js → index-Cg4gI1gY.js} +2 -2
  132. package/_assets/{index-BLtk7HUi.js → index-Ch8ZdFvj.js} +2 -2
  133. package/_assets/{index-j02PKBI-.js → index-Cj8n6jhR.js} +3 -3
  134. package/_assets/{index-CiR_D9DE.js → index-CkhRwzDn.js} +2 -2
  135. package/_assets/{index-DekYSqsL.js → index-Cw2X26uO.js} +2 -2
  136. package/_assets/{index-gZhU_I9S.js → index-D-g6tUrr.js} +4 -4
  137. package/_assets/{index-CxmCB6xW.js → index-D2iQXB_K.js} +2 -2
  138. package/_assets/{index-CzFGtRKU.js → index-D3vbPDep.js} +2 -2
  139. package/_assets/{index-CMyYL8tW.js → index-D6MOFBZd.js} +2 -2
  140. package/_assets/{index-DrAKRbPK.js → index-D6OhFIgK.js} +2 -2
  141. package/_assets/{index-DdLZ3fqM.js → index-D7KJ3B17.js} +2 -2
  142. package/_assets/{index-PNjPrkO6.js → index-DB5YO8eU.js} +2 -2
  143. package/_assets/{index-ByMFdC1C.js → index-DBjGF5O5.js} +2 -2
  144. package/_assets/{index-Qvd8HEf_.js → index-DBkGVGV_.js} +2 -2
  145. package/_assets/{index--CE53HY-.js → index-DDwh5CzB.js} +4 -4
  146. package/_assets/{index-B7UXh3Ur.js → index-DHmdplW7.js} +2 -2
  147. package/_assets/{index-C-lwiNvv.js → index-DHrx45E-.js} +2 -2
  148. package/_assets/{index-CMuSr6XM.js → index-DKNSn9FC.js} +2 -2
  149. package/_assets/{index-B9MjHL88.js → index-DNZQtb01.js} +2 -2
  150. package/_assets/{index-ClY8QHH2.js → index-DSYn1rPz.js} +2 -2
  151. package/_assets/{index-DHPhN2yl.js → index-D_b2TfPS.js} +2 -2
  152. package/_assets/{index-D7l-lBAg.js → index-Dh747mI9.js} +2 -2
  153. package/_assets/{index-DRFgzkoG.js → index-DhZR3d6F.js} +2 -2
  154. package/_assets/{index-gRZnphxh.js → index-DntLKm7o.js} +2 -2
  155. package/_assets/{index-GkBI8O2x.js → index-EO54jEJz.js} +2 -2
  156. package/_assets/{index-DP42dOpm.js → index-Je254H6v.js} +2 -2
  157. package/_assets/{index-D5KmMlwG.js → index-OxIuflSf.js} +2 -2
  158. package/_assets/{index-8o9VY33f.js → index-QryiMDf6.js} +2 -2
  159. package/_assets/{index-ytvqdaDN.js → index-TwJnCsCt.js} +2 -2
  160. package/_assets/{index-DSQ9SfM2.js → index-UORXqou9.js} +2 -2
  161. package/_assets/{index-hmhWzCFb.js → index-_eXXkY79.js} +2 -2
  162. package/_assets/{index-DI84AiHR.js → index-jo5IZGw6.js} +2 -2
  163. package/_assets/{index-CyiDFHdZ.js → index-kSQR1Rng.js} +2 -2
  164. package/_assets/{index.es-sUbE4Uzq.js → index.es-B-n7bK95.js} +2 -2
  165. package/_assets/{index.es-aHFqsJ11.js → index.es-C50Venyf.js} +5 -5
  166. package/_assets/{index.es-CkXh6VoG.js → index.es-Dn-oiXGY.js} +2 -2
  167. package/_assets/{index.es-bY325XUR.js → index.es-yT5643Oy.js} +2 -2
  168. package/_assets/{items-empty-BKm1-iY9.js → items-empty-CSlmEyZz.js} +2 -2
  169. package/_assets/{jump-BVRmaQDV.js → jump-BOiqSS4M.js} +2 -2
  170. package/_assets/{linkAccount-D4_Pqqkx.js → linkAccount-B6zz4AhU.js} +2 -2
  171. package/_assets/{localBatchGatewayRequest-Dxow1xzW.js → localBatchGatewayRequest-MsW7s5by.js} +2 -2
  172. package/_assets/{modal.styles-Cd-mz1I0.js → modal.styles-B7xjPjYV.js} +2 -2
  173. package/_assets/{native-p0UHbyoJ.js → native-UMs_9ER2.js} +2 -2
  174. package/_assets/{networks-BdaY78GR.js → networks-BxL8Ab1j.js} +2 -2
  175. package/_assets/{onramp-DsWERpni.js → onramp-DxZRTgp3.js} +2 -2
  176. package/_assets/{openzeppelin-CL5laCu8.js → openzeppelin-Cr4Y9xjf.js} +2 -2
  177. package/_assets/{ownerOf-oImsD-YS.js → ownerOf-DY8a2-2C.js} +2 -2
  178. package/_assets/{parseNft-DWm4FHvP.js → parseNft-DPdft2uD.js} +3 -3
  179. package/_assets/{parseSignature-DsfTTANP.js → parseSignature-BI_WyMN8.js} +2 -2
  180. package/_assets/{parseSignature-BEQjywfB.js → parseSignature-B_rheFpA.js} +4 -4
  181. package/_assets/{passkeys-CPDf710F.js → passkeys-D1ovHh1n.js} +2 -2
  182. package/_assets/{pay-with-exchange-CdeIulmP.js → pay-with-exchange-CAo2mIu7.js} +2 -2
  183. package/_assets/{prepare-contract-call-CjQoPYCU.js → prepare-contract-call-CC-FfypC.js} +2 -2
  184. package/_assets/{qr-overlay-DCZuVeTe.js → qr-overlay-Dqlh9s-P.js} +4 -4
  185. package/_assets/{react-BFtKLtDt.js → react-D7J-E0MH.js} +2 -2
  186. package/_assets/{receive-CEw4RfAa.js → receive-Cqln7Zzs.js} +2 -2
  187. package/_assets/{resolveImplementation-cLIVJ3af.js → resolveImplementation-CbOxSd1Z.js} +2 -2
  188. package/_assets/{resume-buy-BeKMuIVF.js → resume-buy-qr8Z1bgQ.js} +2 -2
  189. package/_assets/{rpc-sibmiiq0.js → rpc-6QQor2XU.js} +2 -2
  190. package/_assets/{sales-empty-CaY_5iqE.js → sales-empty-B3qcIyi6.js} +2 -2
  191. package/_assets/{search-empty-CKrttBU6.js → search-empty-B2ikWLFM.js} +2 -2
  192. package/_assets/{secp256k1-Di06xHtc.js → secp256k1-CQeO8_L9.js} +2 -2
  193. package/_assets/{secp256k1-DQPpYs2U.js → secp256k1-DibZRl6e.js} +2 -2
  194. package/_assets/{secp256k1-CLEtoEqk.js → secp256k1-N7Qrv3ox.js} +2 -2
  195. package/_assets/{send-batch-transaction-N0qmThjI.js → send-batch-transaction-UJjMLB2L.js} +2 -2
  196. package/_assets/{send-eip712-transaction-DnmUGZSp.js → send-eip712-transaction-DSyJkl_1.js} +3 -3
  197. package/_assets/{send-2ru-Xrz-.js → send-fc370TIG.js} +2 -2
  198. package/_assets/{send-gasless-transaction-CYOPCD2F.js → send-gasless-transaction-ByJ2YdbP.js} +3 -3
  199. package/_assets/{send-transaction-pNwCZiVr.js → send-transaction-8aUtEDXf.js} +3 -3
  200. package/_assets/{sendMetaTransaction-CPX0jVr6.js → sendMetaTransaction-C6Fbql0T.js} +2 -2
  201. package/_assets/{sendRawTransaction-Cki6M_rF.js → sendRawTransaction-BapPv41W.js} +4 -4
  202. package/_assets/{sentry-BsJBy84X.js → sentry-BK5YQzUx.js} +3 -3
  203. package/_assets/{serializeTransaction-z0lh3601.js → serializeTransaction-vu5gUsgc.js} +2 -2
  204. package/_assets/{session-proposal-DTmS0K3z.js → session-proposal-DigsDD4x.js} +2 -2
  205. package/_assets/{session-request-CiVeodTc.js → session-request-BSVWGsvU.js} +3 -3
  206. package/_assets/{sha256-Dk2cKrX0.js → sha256-CEHbBAco.js} +2 -2
  207. package/_assets/{sha3-BDxvk5QO.js → sha3-BShx66Ks.js} +2 -2
  208. package/_assets/signin-empty-K31kGWGu.js +2 -0
  209. package/_assets/{signing-rV5fiz9N.js → signing-BmfCro8S.js} +4 -4
  210. package/_assets/{skeleton.styles-BsQ_5pUq.js → skeleton.styles-BN71VInw.js} +2 -2
  211. package/_assets/{socials-BOfGkTXA.js → socials-BHFgLpAJ.js} +2 -2
  212. package/_assets/{styled-7TdoU1KU.js → styled-Doc5cwwv.js} +2 -2
  213. package/_assets/{swaps-BrSuszxw.js → swaps-K7u4TcXn.js} +2 -2
  214. package/_assets/{thirdweb-DzQyRKzG.js → thirdweb-BcMQ69Q0.js} +4 -4
  215. package/_assets/{to-serializable-transaction-lPTr-Mdl.js → to-serializable-transaction-BrhQQJr8.js} +3 -3
  216. package/_assets/{totalSupply-kq-SQhCo.js → totalSupply-CuA1naxr.js} +2 -2
  217. package/_assets/{transaction-DEZBws2E.js → transaction-HCF_3XYc.js} +2 -2
  218. package/_assets/{transactionReceipt-C20tUFw5.js → transactionReceipt-07DpCAC0.js} +2 -2
  219. package/_assets/{transactions-C5ZRtd37.js → transactions-a9mQj56V.js} +2 -2
  220. package/_assets/{useCreditPacks-DwebwNha.js → useCreditPacks-C4goi1v6.js} +2 -2
  221. package/_assets/{useInfiniteGrid-CEzTx-wX.js → useInfiniteGrid-x8-KLPvB.js} +2 -2
  222. package/_assets/{useStore-CXfsxoeS.js → useStore-fPz8-87J.js} +3 -3
  223. package/_assets/{useTheme-EKsHtgn6.js → useTheme-DQw02uin.js} +2 -2
  224. package/_assets/{utils-u-bcX7sy.js → utils-BIDnbzds.js} +2 -2
  225. package/_assets/{verifyHash-Db22YscA.js → verifyHash-zWGUEzxO.js} +2 -2
  226. package/_assets/{w3m-modal-C_YWh6LN.js → w3m-modal-DieNoy5B.js} +2 -2
  227. package/_assets/{w3m-modal-DiGlXkRp.js → w3m-modal-npxivmAE.js} +2 -2
  228. package/_assets/{wait-for-tx-receipt-DAVIwVwB.js → wait-for-tx-receipt-CLSVYeXT.js} +2 -2
  229. package/_assets/{wallet-Bu4Mv-6R.js → wallet-Bhi-khZu.js} +2 -2
  230. package/_assets/{wallets-_Bz6C5b8.js → wallets-BX3reIDg.js} +6 -6
  231. package/_assets/{web-connector-l9y1mWly.js → web-connector-B-Qttl4q.js} +4 -4
  232. package/_assets/{writeContract-aoLu5Q9m.js → writeContract-DBB3GCUP.js} +2 -2
  233. package/_assets/{zora-sepolia-OwesLQos.js → zora-sepolia-4aZYsx8C.js} +2 -2
  234. package/_assets/{zoraTestnet-CyEGexWN.js → zoraTestnet-k4gEq1qt.js} +2 -2
  235. package/index.html +11 -11
  236. package/package.json +2 -2
  237. package/_assets/ItemDetail-D9qgvmxs.js +0 -3778
  238. package/_assets/signin-empty-TWiO0wp8.js +0 -2
@@ -1,4 +1,4 @@
1
- import{r as C,j as r}from"./react-BFtKLtDt.js";import{s as ne,h as S,A as P,b as j,r as R,m as X,k as K,i as U}from"./authorizations-CVBKhCle.js";import{i as ie}from"./errors-CSqR1pci.js";import{d as l,s as n,k as oe,c as k,I as Q,x as E,aJ as re,bP as q,cf as se,v as A,w as M,aO as G,a2 as de,a3 as J,K as N,au as ce,cg as le,ch as H,a0 as he}from"./index-DC8tm76o.js";import{E as pe}from"./ErrorNotice-C_S89bAS.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-Caju-Nj5.js";import{a as ve,w as ye,S as ke,G as Ce}from"./buy-gasless-BUFRMHYL.js";import{M as B,E as F,s as Y}from"./sendMetaTransaction-CPX0jVr6.js";import{C as Z}from"./ethers-CkmgjxHm.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]="6037809b-e1bf-4e40-9e12-1a3dc33ae128",t._sentryDebugIdIdentifier="sentry-dbid-6037809b-e1bf-4e40-9e12-1a3dc33ae128")}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-D7J-E0MH.js";import{s as ne,h as S,A as P,b as j,r as R,m as X,k as K,i as U}from"./authorizations-o-LlYXNc.js";import{i as ie}from"./errors-5abtsF-d.js";import{d as l,s as n,k as oe,c as k,I as Q,x as E,aJ as re,bP as q,cf as se,v as A,w as M,aO as G,a2 as de,a3 as J,K as N,au as ce,cg as le,ch as H,a0 as he}from"./index-C7RUGLgx.js";import{E as pe}from"./ErrorNotice-Dqt3U2vl.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-8-Zq_4Fb.js";import{a as ve,w as ye,S as ke,G as Ce}from"./buy-gasless-mSBHbIka.js";import{M as B,E as F,s as Y}from"./sendMetaTransaction-C6Fbql0T.js";import{C as Z}from"./ethers-CqnE9_Iy.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]="6dfb8a8c-9f09-446b-ad25-47206d426c84",t._sentryDebugIdIdentifier="sentry-dbid-6dfb8a8c-9f09-446b-ad25-47206d426c84")}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-BFtKLtDt.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(Oe,{type:"button","data-testid":"authorize-step-action",onClick:()=>void h(),disabled:p,children:p?r.jsxs(r.Fragment,{children:[r.jsx(qe,{"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-35085806935.commit-1d79e2c/_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=q(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:q(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 Xe({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 Ke({mints:g,chainId:p,buyer:u,signer:c,onSigned:m,requiredManaWei:s}))}return b}async function Xe(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=X(u.provider,T),O=await Y(z,T,v,x,{serverURL:j.relayerUrl});return c==null||c(),await K(O,"the MANA purchase"),O}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 Ke(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=X(u.provider,y),d=await Y(h,y,s,f,{serverURL:j.relayerUrl});return c==null||c(),await K(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(Oe,{type:"button","data-testid":"authorize-step-action",onClick:()=>void h(),disabled:p,children:p?r.jsxs(r.Fragment,{children:[r.jsx(qe,{"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-35088015492.commit-25d8a11/_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=q(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:q(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 Xe({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 Ke({mints:g,chainId:p,buyer:u,signer:c,onSigned:m,requiredManaWei:s}))}return b}async function Xe(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=X(u.provider,T),O=await Y(z,T,v,x,{serverURL:j.relayerUrl});return c==null||c(),await K(O,"the MANA purchase"),O}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 Ke(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=X(u.provider,y),d=await Y(h,y,s,f,{serverURL:j.relayerUrl});return c==null||c(),await K(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-BFtKLtDt.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,Ot as e,qt 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,Xt as t,Kt as u,Ut as v,Qt as w,Zt as x,_t as y,ea as z};
851
- //# sourceMappingURL=CollectionCarousel-BuB-J2CU.js.map
851
+ //# sourceMappingURL=CollectionCarousel-Dgmy1mBv.js.map
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index.es-CkXh6VoG.js","_assets/react-BFtKLtDt.js"])))=>i.map(i=>d[i]);
2
- import{s as o,_ as s}from"./index-DC8tm76o.js";import{r as n,j as i}from"./react-BFtKLtDt.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]="0704ca3c-5448-4914-9bc8-7989c8c562dd",t._sentryDebugIdIdentifier="sentry-dbid-0704ca3c-5448-4914-9bc8-7989c8c562dd")}catch{}})();const a=o.div`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index.es-Dn-oiXGY.js","_assets/react-D7J-E0MH.js"])))=>i.map(i=>d[i]);
2
+ import{s as o,_ as s}from"./index-C7RUGLgx.js";import{r as n,j as i}from"./react-D7J-E0MH.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]="0704ca3c-5448-4914-9bc8-7989c8c562dd",t._sentryDebugIdIdentifier="sentry-dbid-0704ca3c-5448-4914-9bc8-7989c8c562dd")}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-DC8tm76o.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:t},{default:e}]=await Promise.all([s(()=>import("./index.es-CkXh6VoG.js"),__vite__mapDeps([0,1])),s(()=>import("./confettiAnimation-Btd6HRFo.js"),[])]);return{default:()=>i.jsx(t,{animationData:e,loop:1})}});function u(){const[t]=n.useState(()=>{var e;return!((e=window.matchMedia)!=null&&e.call(window,"(prefers-reduced-motion: reduce)").matches)});return t?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-CYipT9FZ.js.map
17
+ `,r=n.lazy(async()=>{const[{default:t},{default:e}]=await Promise.all([s(()=>import("./index.es-Dn-oiXGY.js"),__vite__mapDeps([0,1])),s(()=>import("./confettiAnimation-Btd6HRFo.js"),[])]);return{default:()=>i.jsx(t,{animationData:e,loop:1})}});function u(){const[t]=n.useState(()=>{var e;return!((e=window.matchMedia)!=null&&e.call(window,"(prefers-reduced-motion: reduce)").matches)});return t?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-TvBa-8L0.js.map
@@ -1,2 +1,2 @@
1
- import{p as o}from"./sentry-BsJBy84X.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-DuHj0CMN.js.map
1
+ import{p as o}from"./sentry-BK5YQzUx.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-BIW9CVUv.js.map
@@ -1,2 +1,2 @@
1
- import{g as z}from"./react-BFtKLtDt.js";import{r as W}from"./index-DRFgzkoG.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new s.Error().stack;d&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[d]="55a799c4-8034-4904-9487-c5dd5cd6ce8a",s._sentryDebugIdIdentifier="sentry-dbid-55a799c4-8034-4904-9487-c5dd5cd6ce8a")}catch{}})();function Y(s,d){for(var F=0;F<d.length;F++){const P=d[F];if(typeof P!="string"&&!Array.isArray(P)){for(const h in P)if(h!=="default"&&!(h in s)){const m=Object.getOwnPropertyDescriptor(P,h);m&&Object.defineProperty(s,h,m.get?m:{enumerable:!0,get:()=>P[h]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var O={},L={},D={},U={},I;function G(){if(I)return U;I=1,Object.defineProperty(U,"__esModule",{value:!0}),U.createFetchComponent=P;const s=new Set([400,401,403,404]),d=new Set(["GET","HEAD","OPTIONS","PUT","DELETE"]);async function F(h,m,y){var $;const{timeout:g,retryDelay:f,abortController:S}=y,q=S.signal;let M=y.attempts,w,_;do{w=void 0,_=void 0;let b=null;try{g&&(b=setTimeout(()=>S.abort(),g)),--M,w=await fetch(h,m)}catch(n){_=n}finally{b&&clearTimeout(b)}if(w&&(w.ok||s.has(w.status))||q.aborted||M===0)break;w&&await(($=w.body)==null?void 0:$.cancel().catch(()=>{})),await new Promise(n=>setTimeout(n,f))}while(!0);if(q.aborted)throw new Error("Request aborted (timed out)");if(!w)throw _;return w}function P(h){const m=h==null?void 0:h.defaultHeaders;async function y(g,f){const{timeout:S,method:q="GET",retryDelay:M=0,abortController:w,attempts:_,...$}={...h==null?void 0:h.defaultFetcherOptions,...f},b=w||new AbortController,n=d.has(q.toUpperCase())?_??1:1,e={...$,method:q,signal:b.signal};return m&&(e.headers={...m,...$.headers||{}}),F(g,e,{timeout:S,retryDelay:M,attempts:n,abortController:b})}return{fetch:y}}return U}var H;function X(){return H||(H=1,(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.createFetchComponent=void 0;var d=G();Object.defineProperty(s,"createFetchComponent",{enumerable:!0,get:function(){return d.createFetchComponent}})})(D)),D}const J="0.0.0-development",K={version:J};var Q;function Z(){return Q||(Q=1,(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.QueryBuilder=s.sanitizeUrl=s.mergeRequestOptions=s.convertFiltersToQueryParams=s.splitValuesIntoManyQueries=s.splitValuesIntoManyQueryBuilders=s.splitAndFetchPaginated=s.splitAndFetch=s.MAX_URL_LENGTH=s.addModelToFormData=s.getCurrentVersion=void 0;const d=X(),F=K;function P(){return F.version}s.getCurrentVersion=P;function h(n,e,i=""){for(const r in n){if(!n.hasOwnProperty(r)||n[r]===null||n[r]===void 0)continue;const t=i?`${i}[${r}]`:r;n[r]instanceof Date?e.append(t,n[r].toISOString()):n[r]instanceof Array?n[r].forEach((a,o)=>{const c=`${t}[${o}]`;h(a,e,c)}):typeof n[r]=="object"?h(n[r],e,t):e.append(t,n[r].toString())}return e}s.addModelToFormData=h;function m(n){return Array.from(new Set(n))}s.MAX_URL_LENGTH=2048;async function y({baseUrl:n,path:e,queryParams:i,fetcher:r,uniqueBy:t,options:a}){r=r||(0,d.createFetchComponent)();const o=q({baseUrl:n,path:e,queryParams:i}),c=new Map;for(const u of o)(await(await r.fetch(u,{...a,headers:{"Content-Type":"application/json"}})).json()).forEach(E=>c.set(t?E[t]:c.size,E));return Array.from(c.values())}s.splitAndFetch=y;const g=7;async function f({baseUrl:n,path:e,queryParams:i,elementsProperty:r,uniqueBy:t,options:a,fetcher:o}){o=o||(0,d.createFetchComponent)();const u=q({baseUrl:n,path:e,queryParams:i,reservedParams:new Map([["offset",g]])}),C=new Map;let E=!1;for(let v=0;v<u.length&&!E;v++){let l=u[v];for(;l&&!E;)try{const p=(await o.fetch(l,a)).json();p[r].forEach(j=>C.set(j[t],j));const T=p.pagination.next;l=T?new URL(T,l).toString():void 0}catch{E=!0}}return Array.from(C.values())}s.splitAndFetchPaginated=f;function S({queryParams:n,baseUrl:e,path:i,reservedParams:r}){const t="name"in n?new Map([[n.name,n.values]]):n;if(t.size===0)return[new b(e+i,t,r)];const o=Array.from(t.entries()).map(([l,p])=>[l,m(p)]).sort(([l,p],[A,T])=>p.length-T.length),c=new b(e+i,new Map,r);for(let l=0;l<o.length-1;l++){const[p,A]=o[l];if(!c.canSetParams(p,A))throw new Error("This library can split one query param into many HTTP requests, but it can't split more than one. You will need to do that on the client side.");c.setParams(p,A)}let u=b.clone(c);const[C,E]=o[o.length-1],v=[];for(const l of E)u.canAddParam(C,l)||(v.push(u),u=b.clone(c)),u.addParam(C,l);return v.push(u),v}s.splitValuesIntoManyQueryBuilders=S;function q(n){return S(n).map(i=>i.toString())}s.splitValuesIntoManyQueries=q;function M(n){if(!n)return new Map;const e=Object.entries(n).filter(([i,r])=>!!r).map(([i,r])=>{const t=i.endsWith("s")?i.slice(0,-1):i;let a;if(Array.isArray(r))a=[...r].filter(_).map(o=>`${o}`);else if(_(r))a=[`${r}`];else throw new Error("Query params must be either a string, a number, a boolean or an array of the types just mentioned");return[t,a]}).filter(([i,r])=>r.length>0);return new Map(e)}s.convertFiltersToQueryParams=M;function w(n,e){const i={...n==null?void 0:n.headers,...e==null?void 0:e.headers};return{...n,...e,headers:i}}s.mergeRequestOptions=w;function _(n){return typeof n=="string"||typeof n=="number"||typeof n=="boolean"}function $(n){return n=n.trim(),!n.startsWith("https://")&&!n.startsWith("http://")&&(n="https://"+n),n.endsWith("/")&&(n=n.slice(0,-1)),n}s.sanitizeUrl=$;class b{constructor(e,i=new Map,r=new Map){this.baseUrl=e,this.queryParams=i,this.reservedParams=r,this.length=this.calculateUrlLength(i,r)}canAddParam(e,i){return this.length+e.length+i.length+2<s.MAX_URL_LENGTH}addParam(e,i){if(!this.canAddParam(e,i))throw new Error(`You can't add this parameter '${e}', since it would exceed the max url length`);const r=this.queryParams.get(e),t=r||[];return t.push(i),this.queryParams.set(e,t),this.length+=this.calculateAddedLength(e,[i]),this}canSetParams(e,i){const r=new Map([...this.queryParams,[e,i]]);return this.calculateUrlLength(r,this.reservedParams)<s.MAX_URL_LENGTH}setParams(e,i){if(!this.canSetParams(e,i))throw new Error(`You can't add this parameter '${e}', since it would exceed the max url length`);return this.queryParams.set(e,i.map(r=>`${r}`)),this.length=this.calculateUrlLength(this.queryParams,this.reservedParams),this}setParam(e,i){return this.setParams(e,[i]),this}toString(){let e=this.baseUrl,i=!1;for(const[r,t]of this.queryParams)for(const a of t)i?e+=`&${r}=${a}`:(e+=`?${r}=${a}`,i=!0);return e}calculateUrlLength(e,i){let r=this.baseUrl.length;for(const[t,a]of i)this.queryParams.has(t)||(r+=t.length+2+a);for(const[t,a]of e)r+=this.calculateAddedLength(t,a);return r}static clone(e){return new b(e.baseUrl,new Map(e.queryParams),e.reservedParams)}calculateAddedLength(e,i){return this.calculateArrayLength(i)+(e.length+2)*i.length}calculateArrayLength(e){return e.map(i=>`${i}`).reduce((i,r)=>i+r.length,0)}}s.QueryBuilder=b})(L)),L}var R={},V;function x(){if(V)return R;V=1,Object.defineProperty(R,"__esModule",{value:!0}),R.retry=void 0;async function s(d,F,P,h){for(;P>0;)try{return await F()}catch(m){if(P--,P>0)console.info(`Failed to ${d}. Still have ${P} attempt/s left. Will try again in ${h}`),await new Promise(y=>setTimeout(y,h));else throw m}throw new Error("Please specify more than one attempt for the retry function")}return R.retry=s,R}var N;function ee(){if(N)return O;N=1,Object.defineProperty(O,"__esModule",{value:!0}),O.createContentClient=O.downloadContent=void 0;const s=W(),d=Z(),F=x();async function P(m,y,g,f){const{attempts:S=3,retryDelay:q=500}=f||{},M=f!=null&&f.timeout?{timeout:f.timeout}:{};return(0,F.retry)(`fetch file with hash ${g} from ${y}`,async()=>{const w=await m.fetch(`${y}/${g}`,M),_=new Uint8Array(await w.arrayBuffer());if(!(f!=null&&f.avoidChecks)&&(g.startsWith("Qm")?await(0,s.hashV0)(_):await(0,s.hashV1)(_))!==g)throw new Error(`Failed to fetch file with hash ${g} from ${y}`);return _},S,q)}O.downloadContent=P;function h(m){const{fetcher:y,logger:g}=m,f=(0,d.sanitizeUrl)(m.url),S=m==null?void 0:m.parallelConfig;async function q(t,a,o){const c=new AbortController,u=c.signal,C=(0,d.mergeRequestOptions)(o,{signal:u});return new Promise(async E=>{let v=t.length;const l=()=>{v--,v===0&&E([])},p=A=>A&&Array.isArray(A)&&A.length>0?(c.abort(),E(A),!0):!1;t.forEach(async A=>{try{const T=(0,d.sanitizeUrl)(A),j=await y.fetch(`${T}${a}`,C);if(u.aborted){l();return}const B=await j.json();p(B)||l()}catch(T){u.aborted||g==null||g.warn(`Failed to fetch from ${A}:`,T),l()}})})}async function M(t,a,o){const u=(await Promise.allSettled(t.map(async l=>{try{const p=(0,d.sanitizeUrl)(l);return await(await y.fetch(`${p}${a}`,o)).json()}catch(p){return g==null||g.warn(`Failed to fetch from ${l}:`,p),[]}}))).filter(l=>l.status==="fulfilled").map(l=>l.value||[]),C=u.flatMap(l=>l),E=u.filter(l=>l.length===0).length,v=new Map;return C.forEach(l=>{(!v.has(l.id)||l.timestamp>v.get(l.id).timestamp)&&v.set(l.id,l)}),{entities:Array.from(v.values()),emptyResults:E}}async function w(t,a){const o=new FormData;o.append("entityId",t.entityId),(0,d.addModelToFormData)(t.authChain,o,"authChain");const c=await i(Array.from(t.files.keys()),a);for(const[u,C]of t.files)(!c.has(u)||u===t.entityId)&&o.append(u,new Blob([C]),u);return o}async function _(t,a){const o=await w(t,a),c=(0,d.mergeRequestOptions)(a||{},{body:o,method:"POST"});return await y.fetch(`${f}/entities`,c)}async function $(t,a){if(t.length===0)return Promise.reject("You must set at least one pointer.");const o=(0,d.mergeRequestOptions)(a||{},{body:JSON.stringify({pointers:t}),method:"POST",headers:{"Content-Type":"application/json"}});return(await y.fetch(`${f}/entities/active`,o)).json()}async function b(t,a){if(t.length===0)return Promise.reject("You must set at least one id.");const o=(0,d.mergeRequestOptions)(a||{},{body:JSON.stringify({ids:t}),method:"POST",headers:{"Content-Type":"application/json"}}),c=(a==null?void 0:a.parallel)||S;return c!=null&&c.urls&&(c==null?void 0:c.urls.length)>0?q([f,...c.urls],"/entities/active",o):(await y.fetch(`${f}/entities/active`,o)).json()}async function n(t,a){const o=await b([t],a);return o.length===0?Promise.reject(`Failed to find an entity with id '${t}'.`):o[0]}function e(t,a){return t.length===0?Promise.reject("You must set at least one cid."):(0,d.splitAndFetch)({fetcher:y,options:a,baseUrl:f,path:"/available-content",queryParams:{name:"cid",values:t},uniqueBy:"cid"})}async function i(t,a){const c=(await e(t,a)).filter(u=>u.available).map(({cid:u})=>u);return new Set(c)}async function r(t,a){const o=(a==null?void 0:a.parallel)||S;if(!(o!=null&&o.urls)||o.urls.length===0)throw new Error("Parallel configuration is required for checking pointer consistency");const c=(0,d.mergeRequestOptions)(a||{},{body:JSON.stringify({pointers:[t]}),method:"POST",headers:{"Content-Type":"application/json"}}),u=[f,...o.urls],{entities:C,emptyResults:E}=await M(u,"/entities/active",c);if(C.length===0)return{isConsistent:!0,upToDateEntities:void 0,outdatedEntities:void 0};const v=Math.max(...C.map(T=>T.timestamp)),l=C.filter(T=>T.timestamp===v),p=C.filter(T=>T.timestamp<v);return{isConsistent:p.length===0&&E===0,upToDateEntities:l.length>0?l:void 0,outdatedEntities:p.length>0?p:void 0}}return{buildEntityFormDataForDeployment:w,fetchEntitiesByPointers:$,fetchEntitiesByIds:b,fetchEntityById:n,downloadContent:(t,a)=>P(y,f+"/contents",t,a),deploy:_,isContentAvailable:e,checkPointerConsistency:r}}return O.createContentClient=h,O}var k=ee();const te=z(k),ae=Y({__proto__:null,default:te},[k]);export{ae as C};
2
- //# sourceMappingURL=ContentClient-CAzHzG9i.js.map
1
+ import{g as z}from"./react-D7J-E0MH.js";import{r as W}from"./index-DhZR3d6F.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new s.Error().stack;d&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[d]="55a799c4-8034-4904-9487-c5dd5cd6ce8a",s._sentryDebugIdIdentifier="sentry-dbid-55a799c4-8034-4904-9487-c5dd5cd6ce8a")}catch{}})();function Y(s,d){for(var F=0;F<d.length;F++){const P=d[F];if(typeof P!="string"&&!Array.isArray(P)){for(const h in P)if(h!=="default"&&!(h in s)){const m=Object.getOwnPropertyDescriptor(P,h);m&&Object.defineProperty(s,h,m.get?m:{enumerable:!0,get:()=>P[h]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var O={},L={},D={},U={},I;function G(){if(I)return U;I=1,Object.defineProperty(U,"__esModule",{value:!0}),U.createFetchComponent=P;const s=new Set([400,401,403,404]),d=new Set(["GET","HEAD","OPTIONS","PUT","DELETE"]);async function F(h,m,y){var $;const{timeout:g,retryDelay:f,abortController:S}=y,q=S.signal;let M=y.attempts,w,_;do{w=void 0,_=void 0;let b=null;try{g&&(b=setTimeout(()=>S.abort(),g)),--M,w=await fetch(h,m)}catch(n){_=n}finally{b&&clearTimeout(b)}if(w&&(w.ok||s.has(w.status))||q.aborted||M===0)break;w&&await(($=w.body)==null?void 0:$.cancel().catch(()=>{})),await new Promise(n=>setTimeout(n,f))}while(!0);if(q.aborted)throw new Error("Request aborted (timed out)");if(!w)throw _;return w}function P(h){const m=h==null?void 0:h.defaultHeaders;async function y(g,f){const{timeout:S,method:q="GET",retryDelay:M=0,abortController:w,attempts:_,...$}={...h==null?void 0:h.defaultFetcherOptions,...f},b=w||new AbortController,n=d.has(q.toUpperCase())?_??1:1,e={...$,method:q,signal:b.signal};return m&&(e.headers={...m,...$.headers||{}}),F(g,e,{timeout:S,retryDelay:M,attempts:n,abortController:b})}return{fetch:y}}return U}var H;function X(){return H||(H=1,(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.createFetchComponent=void 0;var d=G();Object.defineProperty(s,"createFetchComponent",{enumerable:!0,get:function(){return d.createFetchComponent}})})(D)),D}const J="0.0.0-development",K={version:J};var Q;function Z(){return Q||(Q=1,(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.QueryBuilder=s.sanitizeUrl=s.mergeRequestOptions=s.convertFiltersToQueryParams=s.splitValuesIntoManyQueries=s.splitValuesIntoManyQueryBuilders=s.splitAndFetchPaginated=s.splitAndFetch=s.MAX_URL_LENGTH=s.addModelToFormData=s.getCurrentVersion=void 0;const d=X(),F=K;function P(){return F.version}s.getCurrentVersion=P;function h(n,e,i=""){for(const r in n){if(!n.hasOwnProperty(r)||n[r]===null||n[r]===void 0)continue;const t=i?`${i}[${r}]`:r;n[r]instanceof Date?e.append(t,n[r].toISOString()):n[r]instanceof Array?n[r].forEach((a,o)=>{const c=`${t}[${o}]`;h(a,e,c)}):typeof n[r]=="object"?h(n[r],e,t):e.append(t,n[r].toString())}return e}s.addModelToFormData=h;function m(n){return Array.from(new Set(n))}s.MAX_URL_LENGTH=2048;async function y({baseUrl:n,path:e,queryParams:i,fetcher:r,uniqueBy:t,options:a}){r=r||(0,d.createFetchComponent)();const o=q({baseUrl:n,path:e,queryParams:i}),c=new Map;for(const u of o)(await(await r.fetch(u,{...a,headers:{"Content-Type":"application/json"}})).json()).forEach(E=>c.set(t?E[t]:c.size,E));return Array.from(c.values())}s.splitAndFetch=y;const g=7;async function f({baseUrl:n,path:e,queryParams:i,elementsProperty:r,uniqueBy:t,options:a,fetcher:o}){o=o||(0,d.createFetchComponent)();const u=q({baseUrl:n,path:e,queryParams:i,reservedParams:new Map([["offset",g]])}),C=new Map;let E=!1;for(let v=0;v<u.length&&!E;v++){let l=u[v];for(;l&&!E;)try{const p=(await o.fetch(l,a)).json();p[r].forEach(j=>C.set(j[t],j));const T=p.pagination.next;l=T?new URL(T,l).toString():void 0}catch{E=!0}}return Array.from(C.values())}s.splitAndFetchPaginated=f;function S({queryParams:n,baseUrl:e,path:i,reservedParams:r}){const t="name"in n?new Map([[n.name,n.values]]):n;if(t.size===0)return[new b(e+i,t,r)];const o=Array.from(t.entries()).map(([l,p])=>[l,m(p)]).sort(([l,p],[A,T])=>p.length-T.length),c=new b(e+i,new Map,r);for(let l=0;l<o.length-1;l++){const[p,A]=o[l];if(!c.canSetParams(p,A))throw new Error("This library can split one query param into many HTTP requests, but it can't split more than one. You will need to do that on the client side.");c.setParams(p,A)}let u=b.clone(c);const[C,E]=o[o.length-1],v=[];for(const l of E)u.canAddParam(C,l)||(v.push(u),u=b.clone(c)),u.addParam(C,l);return v.push(u),v}s.splitValuesIntoManyQueryBuilders=S;function q(n){return S(n).map(i=>i.toString())}s.splitValuesIntoManyQueries=q;function M(n){if(!n)return new Map;const e=Object.entries(n).filter(([i,r])=>!!r).map(([i,r])=>{const t=i.endsWith("s")?i.slice(0,-1):i;let a;if(Array.isArray(r))a=[...r].filter(_).map(o=>`${o}`);else if(_(r))a=[`${r}`];else throw new Error("Query params must be either a string, a number, a boolean or an array of the types just mentioned");return[t,a]}).filter(([i,r])=>r.length>0);return new Map(e)}s.convertFiltersToQueryParams=M;function w(n,e){const i={...n==null?void 0:n.headers,...e==null?void 0:e.headers};return{...n,...e,headers:i}}s.mergeRequestOptions=w;function _(n){return typeof n=="string"||typeof n=="number"||typeof n=="boolean"}function $(n){return n=n.trim(),!n.startsWith("https://")&&!n.startsWith("http://")&&(n="https://"+n),n.endsWith("/")&&(n=n.slice(0,-1)),n}s.sanitizeUrl=$;class b{constructor(e,i=new Map,r=new Map){this.baseUrl=e,this.queryParams=i,this.reservedParams=r,this.length=this.calculateUrlLength(i,r)}canAddParam(e,i){return this.length+e.length+i.length+2<s.MAX_URL_LENGTH}addParam(e,i){if(!this.canAddParam(e,i))throw new Error(`You can't add this parameter '${e}', since it would exceed the max url length`);const r=this.queryParams.get(e),t=r||[];return t.push(i),this.queryParams.set(e,t),this.length+=this.calculateAddedLength(e,[i]),this}canSetParams(e,i){const r=new Map([...this.queryParams,[e,i]]);return this.calculateUrlLength(r,this.reservedParams)<s.MAX_URL_LENGTH}setParams(e,i){if(!this.canSetParams(e,i))throw new Error(`You can't add this parameter '${e}', since it would exceed the max url length`);return this.queryParams.set(e,i.map(r=>`${r}`)),this.length=this.calculateUrlLength(this.queryParams,this.reservedParams),this}setParam(e,i){return this.setParams(e,[i]),this}toString(){let e=this.baseUrl,i=!1;for(const[r,t]of this.queryParams)for(const a of t)i?e+=`&${r}=${a}`:(e+=`?${r}=${a}`,i=!0);return e}calculateUrlLength(e,i){let r=this.baseUrl.length;for(const[t,a]of i)this.queryParams.has(t)||(r+=t.length+2+a);for(const[t,a]of e)r+=this.calculateAddedLength(t,a);return r}static clone(e){return new b(e.baseUrl,new Map(e.queryParams),e.reservedParams)}calculateAddedLength(e,i){return this.calculateArrayLength(i)+(e.length+2)*i.length}calculateArrayLength(e){return e.map(i=>`${i}`).reduce((i,r)=>i+r.length,0)}}s.QueryBuilder=b})(L)),L}var R={},V;function x(){if(V)return R;V=1,Object.defineProperty(R,"__esModule",{value:!0}),R.retry=void 0;async function s(d,F,P,h){for(;P>0;)try{return await F()}catch(m){if(P--,P>0)console.info(`Failed to ${d}. Still have ${P} attempt/s left. Will try again in ${h}`),await new Promise(y=>setTimeout(y,h));else throw m}throw new Error("Please specify more than one attempt for the retry function")}return R.retry=s,R}var N;function ee(){if(N)return O;N=1,Object.defineProperty(O,"__esModule",{value:!0}),O.createContentClient=O.downloadContent=void 0;const s=W(),d=Z(),F=x();async function P(m,y,g,f){const{attempts:S=3,retryDelay:q=500}=f||{},M=f!=null&&f.timeout?{timeout:f.timeout}:{};return(0,F.retry)(`fetch file with hash ${g} from ${y}`,async()=>{const w=await m.fetch(`${y}/${g}`,M),_=new Uint8Array(await w.arrayBuffer());if(!(f!=null&&f.avoidChecks)&&(g.startsWith("Qm")?await(0,s.hashV0)(_):await(0,s.hashV1)(_))!==g)throw new Error(`Failed to fetch file with hash ${g} from ${y}`);return _},S,q)}O.downloadContent=P;function h(m){const{fetcher:y,logger:g}=m,f=(0,d.sanitizeUrl)(m.url),S=m==null?void 0:m.parallelConfig;async function q(t,a,o){const c=new AbortController,u=c.signal,C=(0,d.mergeRequestOptions)(o,{signal:u});return new Promise(async E=>{let v=t.length;const l=()=>{v--,v===0&&E([])},p=A=>A&&Array.isArray(A)&&A.length>0?(c.abort(),E(A),!0):!1;t.forEach(async A=>{try{const T=(0,d.sanitizeUrl)(A),j=await y.fetch(`${T}${a}`,C);if(u.aborted){l();return}const B=await j.json();p(B)||l()}catch(T){u.aborted||g==null||g.warn(`Failed to fetch from ${A}:`,T),l()}})})}async function M(t,a,o){const u=(await Promise.allSettled(t.map(async l=>{try{const p=(0,d.sanitizeUrl)(l);return await(await y.fetch(`${p}${a}`,o)).json()}catch(p){return g==null||g.warn(`Failed to fetch from ${l}:`,p),[]}}))).filter(l=>l.status==="fulfilled").map(l=>l.value||[]),C=u.flatMap(l=>l),E=u.filter(l=>l.length===0).length,v=new Map;return C.forEach(l=>{(!v.has(l.id)||l.timestamp>v.get(l.id).timestamp)&&v.set(l.id,l)}),{entities:Array.from(v.values()),emptyResults:E}}async function w(t,a){const o=new FormData;o.append("entityId",t.entityId),(0,d.addModelToFormData)(t.authChain,o,"authChain");const c=await i(Array.from(t.files.keys()),a);for(const[u,C]of t.files)(!c.has(u)||u===t.entityId)&&o.append(u,new Blob([C]),u);return o}async function _(t,a){const o=await w(t,a),c=(0,d.mergeRequestOptions)(a||{},{body:o,method:"POST"});return await y.fetch(`${f}/entities`,c)}async function $(t,a){if(t.length===0)return Promise.reject("You must set at least one pointer.");const o=(0,d.mergeRequestOptions)(a||{},{body:JSON.stringify({pointers:t}),method:"POST",headers:{"Content-Type":"application/json"}});return(await y.fetch(`${f}/entities/active`,o)).json()}async function b(t,a){if(t.length===0)return Promise.reject("You must set at least one id.");const o=(0,d.mergeRequestOptions)(a||{},{body:JSON.stringify({ids:t}),method:"POST",headers:{"Content-Type":"application/json"}}),c=(a==null?void 0:a.parallel)||S;return c!=null&&c.urls&&(c==null?void 0:c.urls.length)>0?q([f,...c.urls],"/entities/active",o):(await y.fetch(`${f}/entities/active`,o)).json()}async function n(t,a){const o=await b([t],a);return o.length===0?Promise.reject(`Failed to find an entity with id '${t}'.`):o[0]}function e(t,a){return t.length===0?Promise.reject("You must set at least one cid."):(0,d.splitAndFetch)({fetcher:y,options:a,baseUrl:f,path:"/available-content",queryParams:{name:"cid",values:t},uniqueBy:"cid"})}async function i(t,a){const c=(await e(t,a)).filter(u=>u.available).map(({cid:u})=>u);return new Set(c)}async function r(t,a){const o=(a==null?void 0:a.parallel)||S;if(!(o!=null&&o.urls)||o.urls.length===0)throw new Error("Parallel configuration is required for checking pointer consistency");const c=(0,d.mergeRequestOptions)(a||{},{body:JSON.stringify({pointers:[t]}),method:"POST",headers:{"Content-Type":"application/json"}}),u=[f,...o.urls],{entities:C,emptyResults:E}=await M(u,"/entities/active",c);if(C.length===0)return{isConsistent:!0,upToDateEntities:void 0,outdatedEntities:void 0};const v=Math.max(...C.map(T=>T.timestamp)),l=C.filter(T=>T.timestamp===v),p=C.filter(T=>T.timestamp<v);return{isConsistent:p.length===0&&E===0,upToDateEntities:l.length>0?l:void 0,outdatedEntities:p.length>0?p:void 0}}return{buildEntityFormDataForDeployment:w,fetchEntitiesByPointers:$,fetchEntitiesByIds:b,fetchEntityById:n,downloadContent:(t,a)=>P(y,f+"/contents",t,a),deploy:_,isContentAvailable:e,checkPointerConsistency:r}}return O.createContentClient=h,O}var k=ee();const te=z(k),ae=Y({__proto__:null,default:te},[k]);export{ae as C};
2
+ //# sourceMappingURL=ContentClient-CWLYPXGZ.js.map
@@ -1,4 +1,4 @@
1
- import{u as ce,j as e,L as Ie,d as Le,a as Me,r as L}from"./react-BFtKLtDt.js";import{u as _e,s as ze}from"./search-empty-CKrttBU6.js";import{u as Ae,S as Y,R as Re,a as Te,b as Be,c as De,D as We,d as Oe,C as Ge,e as Ke,F as Ue,f as He,g as Ve,M as qe,h as Je}from"./browseLayout.styles-BX8RNIIu.js";import{d as de,bG as Qe,ab as Z,aa as X,s as i,bH as Ye,Q as Ze,bI as Xe,c as o,bJ as et,bK as ee,H as tt,y as he,a5 as ue,F as ot,M as me,bL as rt,bM as st,I as te,h as it,J as at,E as nt,ay as lt,X as ct,Y as dt,$ as M,Z as A,a0 as oe,bN as re,bO as ht}from"./index-DC8tm76o.js";import{T as pe}from"./skeleton.styles-BsQ_5pUq.js";import{d as ut,P as mt,C as pt,a as xt,b as gt,c as ft,e as bt}from"./collectionPage.styles-BaIAkimk.js";import{u as yt,L as wt}from"./useStore-CXfsxoeS.js";import{L as se}from"./LoadMore-BALknwCN.js";import{u as ie}from"./useInfiniteGrid-CEzTx-wX.js";import{S as vt}from"./categories-CZdjHjf9.js";import{E as R}from"./ErrorNotice-C_S89bAS.js";import{c as jt,i as Ct}from"./items-empty-BKm1-iY9.js";import{G as ae}from"./grid.styles-C2IQh-32.js";import"./dcl-schemas-BhHIKpM4.js";import"./sentry-BsJBy84X.js";import"./ethers-CkmgjxHm.js";import"./intl-AKLEHPeO.js";import"./crumbs.styles-NOQP7gu4.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new r.Error().stack;s&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[s]="2852c10a-4989-4601-a630-dba62b797b44",r._sentryDebugIdIdentifier="sentry-dbid-2852c10a-4989-4601-a630-dba62b797b44")}catch{}})();function kt(r){const{gridLoading:s,gridError:a,gridCount:l,baselinePending:c,baselineError:d,baselineCount:b}=r;return s?"skeletons":a?"error":l>0?"items":c?"skeletons":d?"error":b===0?"no-creations":"filters"}const{colors:y,radius:$,media:$t}=de,St=i.article`
1
+ import{u as ce,j as e,L as Ie,d as Le,a as Me,r as L}from"./react-D7J-E0MH.js";import{u as _e,s as ze}from"./search-empty-B2ikWLFM.js";import{u as Ae,S as Y,R as Re,a as Te,b as Be,c as De,D as We,d as Oe,C as Ge,e as Ke,F as Ue,f as He,g as Ve,M as qe,h as Je}from"./browseLayout.styles-Bza8FY3N.js";import{d as de,bG as Qe,ab as Z,aa as X,s as i,bH as Ye,Q as Ze,bI as Xe,c as o,bJ as et,bK as ee,H as tt,y as he,a5 as ue,F as ot,M as me,bL as rt,bM as st,I as te,h as it,J as at,E as nt,ay as lt,X as ct,Y as dt,$ as M,Z as A,a0 as oe,bN as re,bO as ht}from"./index-C7RUGLgx.js";import{T as pe}from"./skeleton.styles-BN71VInw.js";import{d as ut,P as mt,C as pt,a as xt,b as gt,c as ft,e as bt}from"./collectionPage.styles-C--ki2P9.js";import{u as yt,L as wt}from"./useStore-fPz8-87J.js";import{L as se}from"./LoadMore-DgGHun07.js";import{u as ie}from"./useInfiniteGrid-x8-KLPvB.js";import{S as vt}from"./categories-J0dMuNkM.js";import{E as R}from"./ErrorNotice-Dqt3U2vl.js";import{c as jt,i as Ct}from"./items-empty-CSlmEyZz.js";import{G as ae}from"./grid.styles-iTSFhsyn.js";import"./dcl-schemas-BKQ0vYZF.js";import"./sentry-BK5YQzUx.js";import"./ethers-CqnE9_Iy.js";import"./intl-AKLEHPeO.js";import"./crumbs.styles-BqMPTZMi.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new r.Error().stack;s&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[s]="2852c10a-4989-4601-a630-dba62b797b44",r._sentryDebugIdIdentifier="sentry-dbid-2852c10a-4989-4601-a630-dba62b797b44")}catch{}})();function kt(r){const{gridLoading:s,gridError:a,gridCount:l,baselinePending:c,baselineError:d,baselineCount:b}=r;return s?"skeletons":a?"error":l>0?"items":c?"skeletons":d?"error":b===0?"no-creations":"filters"}const{colors:y,radius:$,media:$t}=de,St=i.article`
2
2
  height: 300px;
3
3
  /* No fill of its own (Figma 922:183803): the mosaic covers the top and the footer paints its own
4
4
  translucent black, so the page field is what shows through the corners. */
@@ -309,4 +309,4 @@ import{u as ce,j as e,L as Ie,d as Le,a as Me,r as L}from"./react-BFtKLtDt.js";i
309
309
  background: ${w.blackBtn};
310
310
  }
311
311
  `,Zt={website:"website",twitter:"twitter",discord:"discord",facebook:"facebook"};function Xt({address:r}){var m,C;const{data:s}=ue(r),{data:a}=yt(r),l=ot(p=>{var S;return(S=p.session)==null?void 0:S.address}),c=!!l&&l.toLowerCase()===r.toLowerCase(),d=(s==null?void 0:s.name)||me(r),b=(C=(m=s==null?void 0:s.avatar)==null?void 0:m.snapshots)==null?void 0:C.face256,j=(a==null?void 0:a.cover)||ut,n=a==null?void 0:a.description,g=`${it.profileUrl}/${r}`,f=wt.filter(p=>a==null?void 0:a.links[p]),h=rt(st({name:s==null?void 0:s.name,hasClaimedName:s==null?void 0:s.hasClaimedName,ethAddress:(s==null?void 0:s.ethAddress)??r}));return e.jsxs(Dt,{"aria-label":`${d} storefront`,children:[e.jsxs(Wt,{children:[e.jsx(Ot,{src:j,alt:"",loading:"eager"}),e.jsx(Gt,{"aria-hidden":!0})]}),(f.length>0||c)&&e.jsxs(Kt,{children:[f.map(p=>e.jsx(Ut,{"data-testid":"creator-hero-link",href:(a==null?void 0:a.links[p])??"",target:"_blank",rel:"noopener noreferrer",title:o(`creator.link.${p}`),"aria-label":o(`creator.link.${p}`),children:e.jsx(te,{name:Zt[p]})},p)),c&&e.jsx(Ht,{to:"/store-settings",title:o("creator.editStore"),"aria-label":o("creator.editStore"),children:e.jsx(te,{name:"pen"})})]}),e.jsxs(Vt,{children:[b?e.jsx(ne,{src:b,alt:"",loading:"eager",style:{backgroundColor:h}}):e.jsx(ne,{as:"span","aria-hidden":!0,style:{backgroundColor:h}}),e.jsxs("div",{children:[e.jsx(qt,{children:d}),n?e.jsx(Jt,{children:n}):null]}),e.jsxs(Qt,{children:[e.jsx(Yt,{"data-testid":"creator-hero-view",href:g,target:"_blank",rel:"noopener noreferrer",children:o("creator.viewProfile")}),e.jsx(Bt,{address:r,className:"creator-hero__follow"})]})]})]})}const eo=["all","on_sale","not_for_sale"],le=48;function wo(){var J,Q;const{address:r}=Le(),s=ce(),[a]=Me(),l=a.has("collections"),{data:c}=ue(r),d=(c==null?void 0:c.name)||(r?me(r):o("creator.fallbackName"));at({title:d,description:o("seo.creator.description",{name:d}),image:(Q=(J=c==null?void 0:c.avatar)==null?void 0:J.snapshots)==null?void 0:Q.face256});const b=L.useMemo(()=>({category:"all",status:"all",subCategory:null,rarities:[],priceMin:"",priceMax:"",smart:!1,sort:"newest"}),[]),[j,n]=_e(b),{category:g,subCategory:f,rarities:h,priceMin:m,priceMax:C,smart:p,sort:S}=j,N=eo.includes(j.status)?j.status:"all",T=t=>n({status:t});Ae(`${l}:${g}:${f??""}`);const[P,E]=L.useState(!1);L.useEffect(()=>{if(!P)return;const t=Fe=>{Fe.key==="Escape"&&E(!1)};document.addEventListener("keydown",t);const x=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",t),document.body.style.overflow=x}},[P]);const B=m&&!Number.isNaN(Number(m))?Number(m):void 0,D=C&&!Number.isNaN(Number(C))?Number(C):void 0,be=f?vt[f]:void 0,ye=(Y.find(t=>t.key===S)??Y[0]).server,W={creator:r,category:g,rarities:h.length?h:void 0,wearableCategories:be,minPriceCredits:B,maxPriceCredits:D,isWearableSmart:p||void 0,isOnSale:N==="all"?void 0:N==="on_sale",sortBy:ye},{items:_,total:we,isLoading:ve,isPlaceholderData:je,error:O,hasNextPage:Ce,isFetchingNextPage:G,isFetchNextPageError:ke,fetchNextPage:$e}=ie(["creator-items",W],t=>re({...W,first:le,skip:t}),{enabled:!!r&&!l}),F=nt({queryKey:["creator-item-count",r],queryFn:()=>re({creator:r,first:1}).then(t=>t.total),enabled:!!r}),u=ie(["creator-collections",r],t=>ht(r,{first:le,skip:t}).then(x=>({items:x.collections,total:x.total})),{enabled:!!r&&l});function K(t){n({category:t,subCategory:null},{drop:l?["collections"]:void 0})}function Se(){const t=new URLSearchParams(a);t.delete("collections");const x=t.toString();s({search:x?`?${x}`:""},{replace:!0})}function Ne(){if(l){Se();return}const t=new URLSearchParams(a);t.delete("collections");const x=t.toString();s({search:x?`?${x}&collections`:"?collections"},{replace:!0})}function U(t){n({rarities:h.includes(t)?h.filter(x=>x!==t):[...h,t]})}function H(){n(b)}const k=[];(g==="wearable"||g==="emote")&&k.push({key:"category",label:o(g==="emote"?"categories.emotes":"categories.wearables"),onRemove:()=>K("all")}),(B!=null||D!=null)&&k.push({key:"price",label:o("filter.price"),onRemove:()=>{n({priceMin:"",priceMax:""})}});for(const t of Re)h.includes(t)&&k.push({key:`rarity-${t}`,label:lt(t),onRemove:()=>U(t)});p&&k.push({key:"smart",label:o("filter.smart"),onRemove:()=>n({smart:!1})}),N!=="all"&&k.push({key:"status",label:N==="on_sale"?o("filter.onSale"):o("filter.notForSale"),onRemove:()=>T("all")});const I=kt({gridLoading:ve||je,gridError:!!O,gridCount:_.length,baselinePending:F.isPending,baselineError:F.isError,baselineCount:F.data}),V=I==="skeletons",{data:q}=ct(),Ee=L.useMemo(()=>_.map(t=>({...t,priceCredits:dt(t,q)})),[_,q]),Pe=t=>t.priceCredits>0||!!t.manaWei,z=I==="items"||I==="skeletons"?null:I;return e.jsxs(mt,{children:[e.jsxs(pt,{"aria-label":o("creator.breadcrumbAria"),children:[e.jsx(xt,{onClick:()=>s("/items"),children:o("creator.breadcrumb")}),e.jsx("span",{children:"/"}),e.jsx(gt,{children:d})]}),r?e.jsx(Xt,{address:r}):null,e.jsxs(Te,{children:[P?e.jsx(Be,{onClick:()=>E(!1),"aria-hidden":!0}):null,e.jsxs(De,{"data-open":P||void 0,"data-testid":"creator-sidebar",children:[e.jsxs(We,{children:[e.jsx(Oe,{children:o("assets.filters")}),e.jsx(Ge,{onClick:()=>E(!1),"aria-label":o("assets.closeFilters"),children:"✕"})]}),e.jsx(Ke,{children:e.jsx(Ue,{category:g,subCategory:f,onCategory:K,onSub:t=>n({subCategory:t}),priceMin:m,priceMax:C,onPriceMin:t=>n({priceMin:t}),onPriceMax:t=>n({priceMax:t}),rarities:h,onToggleRarity:U,status:N,onStatus:T,smart:p,onSmart:t=>n({smart:t}),hideNames:!0,collections:l,onCollections:Ne})}),e.jsx(He,{children:e.jsx(Ve,{type:"button",onClick:()=>E(!1),children:o("assets.showItems")})})]}),e.jsx(qe,{children:l?e.jsxs(e.Fragment,{children:[e.jsx(ft,{children:e.jsx(bt,{"data-testid":"creator-collections-count","aria-busy":u.isLoading||void 0,children:u.isLoading?e.jsx(pe,{className:"skeleton",width:72,"data-testid":"creator-collections-count-skeleton","aria-hidden":!0}):o("creator.collectionsCount",{count:u.total})})}),u.error?e.jsx(R,{message:o("creator.error")}):null,e.jsx(ae,{"data-variant":"collections",children:u.isLoading?e.jsx(M,{count:9}):e.jsxs(e.Fragment,{children:[u.items.map(t=>e.jsx(Tt,{collection:t,itemCount:t.itemCount},t.contractAddress)),u.isFetchingNextPage?e.jsx(M,{count:6}):null]})}),e.jsx(se,{hasNextPage:u.hasNextPage,isFetching:u.isFetchingNextPage,isError:u.isFetchNextPageError,onLoadMore:()=>void u.fetchNextPage()}),!u.isLoading&&!u.error&&u.items.length===0?e.jsx(A,{testId:"creator-collections-empty",icon:jt,title:o("creator.collectionsEmptyTitle"),body:o("creator.collectionsEmpty"),cta:{label:o("assets.empty.cta"),to:"/items"}}):null]}):e.jsxs(e.Fragment,{children:[e.jsx(Je,{sort:S,onSort:t=>n({sort:t}),total:we,loading:V,onOpenFilters:()=>E(!0),chips:k,onClearChips:H}),O?e.jsx(R,{message:o("creator.error"),testId:"creator-error"}):null,e.jsx(ae,{"data-testid":"creator-grid",children:V?e.jsx(M,{count:15}):e.jsxs(e.Fragment,{children:[Ee.map(t=>Pe(t)?e.jsx(oe,{item:t},t.id):e.jsx(oe,{item:t,mode:"view"},t.id)),G?e.jsx(M,{count:6}):null]})}),e.jsx(se,{hasNextPage:Ce,isFetching:G,isError:ke,onLoadMore:()=>void $e()}),z==="error"?e.jsx(R,{message:o("creator.error"),testId:"creator-empty-error"}):z==="no-creations"?e.jsx(A,{testId:"creator-empty-none",icon:Ct,title:o("creator.emptyNoCreationsTitle"),body:o("creator.emptyNoCreations"),cta:{label:o("assets.empty.cta"),to:"/items"}}):z==="filters"?e.jsx(A,{testId:"creator-empty-filters",icon:ze,title:o("creator.emptyFilters.title"),body:o("creator.emptyFilters.body",{count:F.data??0}),cta:{label:o("filterBar.clearAll"),onClick:H}}):null]})})]})]})}export{wo as Creator,wo as default};
312
- //# sourceMappingURL=Creator-CTFy7_m-.js.map
312
+ //# sourceMappingURL=Creator-Bm286S4l.js.map
@@ -1,4 +1,4 @@
1
- import{g as I}from"./react-BFtKLtDt.js";import{r as H}from"./index-DRFgzkoG.js";import{r as M}from"./dcl-schemas-BhHIKpM4.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},u=new o.Error().stack;u&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[u]="6b544453-a944-4d3c-9411-d99f6c057a22",o._sentryDebugIdIdentifier="sentry-dbid-6b544453-a944-4d3c-9411-d99f6c057a22")}catch{}})();function O(o,u){for(var w=0;w<u.length;w++){const h=u[w];if(typeof h!="string"&&!Array.isArray(h)){for(const g in h)if(g!=="default"&&!(g in o)){const v=Object.getOwnPropertyDescriptor(h,g);v&&Object.defineProperty(o,g,v.get?v:{enumerable:!0,get:()=>h[g]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var y={},F;function C(){if(F)return y;F=1,Object.defineProperty(y,"__esModule",{value:!0}),y.getHashesByKey=y.buildEntityWithoutNewFiles=y.buildEntity=y.buildEntityAndFile=void 0;const o=H(),u=M();async function w({type:n,pointers:t,timestamp:e,content:a,metadata:r}){var i;if(t.length===0)throw new Error("All entities must have at least one pointer.");const d={version:"v3",type:n,pointers:t,timestamp:e,content:a,metadata:r};if(a){const s=new Set;for(const p of a){const E=p.file.toLowerCase();if(s.has(E))throw new Error(`Error creating the deployable entity: Decentraland's file system is case insensitive, the file ${JSON.stringify(p.file)} is repeated`);s.add(E)}}const c=new TextEncoder().encode(JSON.stringify(d)),l={id:await(0,o.hashV1)(c),...d};if(!u.Entity.validate(l))throw new Error(`Generated entity is not valid:
1
+ import{g as I}from"./react-D7J-E0MH.js";import{r as H}from"./index-DhZR3d6F.js";import{r as M}from"./dcl-schemas-BKQ0vYZF.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},u=new o.Error().stack;u&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[u]="6b544453-a944-4d3c-9411-d99f6c057a22",o._sentryDebugIdIdentifier="sentry-dbid-6b544453-a944-4d3c-9411-d99f6c057a22")}catch{}})();function O(o,u){for(var w=0;w<u.length;w++){const h=u[w];if(typeof h!="string"&&!Array.isArray(h)){for(const g in h)if(g!=="default"&&!(g in o)){const v=Object.getOwnPropertyDescriptor(h,g);v&&Object.defineProperty(o,g,v.get?v:{enumerable:!0,get:()=>h[g]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var y={},F;function C(){if(F)return y;F=1,Object.defineProperty(y,"__esModule",{value:!0}),y.getHashesByKey=y.buildEntityWithoutNewFiles=y.buildEntity=y.buildEntityAndFile=void 0;const o=H(),u=M();async function w({type:n,pointers:t,timestamp:e,content:a,metadata:r}){var i;if(t.length===0)throw new Error("All entities must have at least one pointer.");const d={version:"v3",type:n,pointers:t,timestamp:e,content:a,metadata:r};if(a){const s=new Set;for(const p of a){const E=p.file.toLowerCase();if(s.has(E))throw new Error(`Error creating the deployable entity: Decentraland's file system is case insensitive, the file ${JSON.stringify(p.file)} is repeated`);s.add(E)}}const c=new TextEncoder().encode(JSON.stringify(d)),l={id:await(0,o.hashV1)(c),...d};if(!u.Entity.validate(l))throw new Error(`Generated entity is not valid:
2
2
  `+((i=u.Entity.validate.errors)===null||i===void 0?void 0:i.map(s=>s.message).join(`
3
3
  `)));return{entity:l,entityFile:c}}y.buildEntityAndFile=w;async function h({type:n,pointers:t,files:e,metadata:a,timestamp:r}){const i=Array.from(e||[]).map(([l,s])=>({key:l,content:s})),d=await Promise.all(i.map(async({key:l,content:s})=>({key:l,content:s,hash:await(0,o.hashV1)(s)}))),c=new Map(d.map(({hash:l,key:s})=>[s,l])),f=new Map(d.map(({hash:l,content:s})=>[l,s]));return v(n,t,{hashesByKey:c,filesByHash:f,metadata:a,timestamp:r})}y.buildEntity=h;async function g(n,{contentUrl:t,type:e,pointers:a,hashesByKey:r,metadata:i,timestamp:d}){const c=r??i?m(i):void 0;if(c&&D(e,c)){const f=await _(n,t,c),l=await A(f,i);return h({type:e,pointers:a,files:f,metadata:l,timestamp:d})}return v(e,a,{hashesByKey:r,metadata:i,timestamp:d})}y.buildEntityWithoutNewFiles=g;async function v(n,t,e){if(t.length===0)throw new Error("All entities must have at least one pointer.");const a=e!=null&&e.hashesByKey?e==null?void 0:e.hashesByKey:new Map,r=Array.from(a.entries()).map(([l,s])=>({file:l,hash:s})),i=e!=null&&e.timestamp?e==null?void 0:e.timestamp:Date.now(),{entity:d,entityFile:c}=await w({type:n,pointers:t,timestamp:i,content:r,metadata:e==null?void 0:e.metadata}),f=e!=null&&e.filesByHash?e.filesByHash:new Map;return f.set(d.id,c),{files:f,entityId:d.id}}function D(n,t){return n===u.EntityType.PROFILE&&Array.from(t).some(([,e])=>e.toLowerCase().startsWith("qm"))}async function b(n,t){const a=await(await n.fetch(t)).arrayBuffer();return new Uint8Array(a)}async function _(n,t,e){const a=e.get("body.png"),r=e.get("face256.png"),i=new URL(`${t}/contents/${a}`).toString(),d=new URL(`${t}/contents/${r}`).toString(),[c,f]=await Promise.all([b(n,i),b(n,d)]);return new Map([["body.png",c],["face256.png",f]])}async function A(n,t){return t&&(t.avatars=await Promise.all(t.avatars.map(async e=>{const a={face256:"",body:""},r=n.get("face256.png");r&&(a.face256=await(0,o.hashV1)(r));const i=n.get("body.png");return i&&(a.body=await(0,o.hashV1)(i)),e.avatar.snapshots=a,e})),t)}function m(n){const t=n.avatars[0];if(t.avatar.snapshots)return new Map([["body.png",t.avatar.snapshots.body],["face256.png",t.avatar.snapshots.face256]])}return y.getHashesByKey=m,y}var B=C();const P=I(B),j=O({__proto__:null,default:P},[B]);export{j as D};
4
- //# sourceMappingURL=DeploymentBuilder-CtvVWhRq.js.map
4
+ //# sourceMappingURL=DeploymentBuilder-lkKjiabA.js.map
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-B9MjHL88.js","_assets/react-BFtKLtDt.js","_assets/dcl-schemas-BhHIKpM4.js","_assets/index-DC8tm76o.js","_assets/sentry-BsJBy84X.js","_assets/ethers-CkmgjxHm.js","_assets/intl-AKLEHPeO.js","_assets/index-BjkERpTp.css","_assets/createSvgIcon-Dcj-MthE.js","_assets/emotion-styled.browser.esm-CeAxqmRx.js","_assets/styled-7TdoU1KU.js","_assets/index-Dv88yctr.js","_assets/useTheme-EKsHtgn6.js"])))=>i.map(i=>d[i]);
2
- import{j as r,r as s}from"./react-BFtKLtDt.js";import{_ as a,d,s as p}from"./index-DC8tm76o.js";import{E as u}from"./sentry-BsJBy84X.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="d6c451c5-a3aa-4b9a-a972-c04a004ec88a",t._sentryDebugIdIdentifier="sentry-dbid-d6c451c5-a3aa-4b9a-a972-c04a004ec88a")}catch{}})();const l=s.lazy(async()=>{const[{EmoteControls:t},{Experimental_CssVarsProvider:o},{light:n}]=await Promise.all([a(()=>import("./index-B9MjHL88.js").then(i=>i.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])),a(()=>import("./index-Dv88yctr.js"),__vite__mapDeps([11,3,1,2,4,5,6,7,12,10])),a(()=>import("./index-DC8tm76o.js").then(i=>i.dL),__vite__mapDeps([3,1,2,4,5,6,7]))]);return{default:i=>r.jsx(o,{theme:n,children:r.jsx(t,{...i})})}});function c(t){return r.jsx(u,{fallback:r.jsx(r.Fragment,{}),children:r.jsx(s.Suspense,{fallback:null,children:r.jsx(l,{...t})})})}const{colors:e,radius:x}=d,g=p.div`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-DNZQtb01.js","_assets/react-D7J-E0MH.js","_assets/dcl-schemas-BKQ0vYZF.js","_assets/index-C7RUGLgx.js","_assets/sentry-BK5YQzUx.js","_assets/ethers-CqnE9_Iy.js","_assets/intl-AKLEHPeO.js","_assets/index-ByiMU36z.css","_assets/createSvgIcon-DSycgKQz.js","_assets/emotion-styled.browser.esm-8Fn_bSaK.js","_assets/styled-Doc5cwwv.js","_assets/index-C6WGvNBW.js","_assets/useTheme-DQw02uin.js"])))=>i.map(i=>d[i]);
2
+ import{j as r,r as s}from"./react-D7J-E0MH.js";import{_ as n,d,s as p}from"./index-C7RUGLgx.js";import{E as u}from"./sentry-BK5YQzUx.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="97137b08-ba72-4e4e-b0d6-f2649cbd8b63",t._sentryDebugIdIdentifier="sentry-dbid-97137b08-ba72-4e4e-b0d6-f2649cbd8b63")}catch{}})();const l=s.lazy(async()=>{const[{EmoteControls:t},{Experimental_CssVarsProvider:o},{light:a}]=await Promise.all([n(()=>import("./index-DNZQtb01.js").then(i=>i.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])),n(()=>import("./index-C6WGvNBW.js"),__vite__mapDeps([11,3,1,2,4,5,6,7,12,10])),n(()=>import("./index-C7RUGLgx.js").then(i=>i.dO),__vite__mapDeps([3,1,2,4,5,6,7]))]);return{default:i=>r.jsx(o,{theme:a,children:r.jsx(t,{...i})})}});function c(t){return r.jsx(u,{fallback:r.jsx(r.Fragment,{}),children:r.jsx(s.Suspense,{fallback:null,children:r.jsx(l,{...t})})})}const{colors:e,radius:b}=d,x=p.div`
3
3
  /* Doubled class: a preview panel may size its children greedily (ItemDetail's stretches every child to
4
4
  fill the stage), and the bar's own geometry has to win that whichever order the styles land in. */
5
5
  && {
@@ -15,7 +15,7 @@ import{j as r,r as s}from"./react-BFtKLtDt.js";import{_ as a,d,s as p}from"./ind
15
15
  background: rgba(255, 255, 255, 0.94);
16
16
  backdrop-filter: blur(6px);
17
17
  border: 1px solid ${e.line};
18
- border-radius: ${x.pill};
18
+ border-radius: ${b.pill};
19
19
  padding: 6px 12px;
20
20
  box-shadow: 0 2px 10px rgba(22, 21, 24, 0.12);
21
21
  }
@@ -117,5 +117,5 @@ import{j as r,r as s}from"./react-BFtKLtDt.js";import{_ as a,d,s as p}from"./ind
117
117
  outline: 2px solid ${e.accent};
118
118
  outline-offset: 2px;
119
119
  }
120
- `;function f({previewId:t,testId:o="emote-controls"}){return r.jsx(g,{"data-preview-controls":!0,"data-testid":o,children:r.jsx(c,{wearablePreviewId:t,hideFrameInput:!0})})}export{f as E};
121
- //# sourceMappingURL=EmotePlaybackBar-BsBGlr0h.js.map
120
+ `;function f({previewId:t,testId:o="emote-controls"}){return r.jsx(x,{"data-preview-controls":!0,"data-testid":o,children:r.jsx(c,{wearablePreviewId:t,hideFrameInput:!0})})}export{f as E};
121
+ //# sourceMappingURL=EmotePlaybackBar-CmOnYKyU.js.map
@@ -1,2 +1,2 @@
1
- import{j as n}from"./react-BFtKLtDt.js";import{I as o}from"./index-DC8tm76o.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="c67eed24-9c07-42e3-aafe-ecbed75d6f90",e._sentryDebugIdIdentifier="sentry-dbid-c67eed24-9c07-42e3-aafe-ecbed75d6f90")}catch{}})();function i({message:e,className:r,testId:t}){return e?n.jsxs("p",{className:r?`error-notice ${r}`:"error-notice","data-testid":t,role:"alert",children:[n.jsx(o,{name:"alert",className:"error-notice__ico",size:18}),n.jsx("span",{className:"error-notice__msg",children:e})]}):null}export{i as E};
2
- //# sourceMappingURL=ErrorNotice-C_S89bAS.js.map
1
+ import{j as n}from"./react-D7J-E0MH.js";import{I as o}from"./index-C7RUGLgx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="c67eed24-9c07-42e3-aafe-ecbed75d6f90",e._sentryDebugIdIdentifier="sentry-dbid-c67eed24-9c07-42e3-aafe-ecbed75d6f90")}catch{}})();function i({message:e,className:r,testId:t}){return e?n.jsxs("p",{className:r?`error-notice ${r}`:"error-notice","data-testid":t,role:"alert",children:[n.jsx(o,{name:"alert",className:"error-notice__ico",size:18}),n.jsx("span",{className:"error-notice__msg",children:e})]}):null}export{i as E};
2
+ //# sourceMappingURL=ErrorNotice-Dqt3U2vl.js.map
@@ -1,2 +1,2 @@
1
- import{u as m,r as p,j as r}from"./react-BFtKLtDt.js";import{u,a as f,b,l as g,t as y,c as n}from"./index-DC8tm76o.js";import{Assets as x}from"./Assets-BWPFNRh2.js";import"./dcl-schemas-BhHIKpM4.js";import"./sentry-BsJBy84X.js";import"./ethers-CkmgjxHm.js";import"./intl-AKLEHPeO.js";import"./search-empty-CKrttBU6.js";import"./browseLayout.styles-BX8RNIIu.js";import"./categories-CZdjHjf9.js";import"./skeleton.styles-BsQ_5pUq.js";import"./LoadMore-BALknwCN.js";import"./useInfiniteGrid-CEzTx-wX.js";import"./ErrorNotice-C_S89bAS.js";import"./buy-gasless-BUFRMHYL.js";import"./authorizations-CVBKhCle.js";import"./sendMetaTransaction-CPX0jVr6.js";import"./buy-Caju-Nj5.js";import"./errors-CSqR1pci.js";import"./name-glyph-aUugT8vq.js";import"./crumbs.styles-NOQP7gu4.js";import"./grid.styles-C2IQh-32.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="f88dc570-e06b-4407-9b6e-92a650b9910c",e._sentryDebugIdIdentifier="sentry-dbid-f88dc570-e06b-4407-9b6e-92a650b9910c")}catch{}})();function H(){const e=m(),o=u(l=>l.locale),{campaign:t,isPending:i}=f(),{contracts:a,isPending:c}=b((t==null?void 0:t.tags)??[]),s=!i&&!(t!=null&&t.mainTag);if(p.useEffect(()=>{s&&e("/items",{replace:!0})},[s,e]),i||c||s)return r.jsx("div",{className:"page-loading","aria-busy":"true",children:r.jsx("span",{className:"spinner","aria-hidden":!0})});const d=g(t==null?void 0:t.tabName,y(o))??(t==null?void 0:t.name)??"";return r.jsx(x,{contracts:a,hideNames:!0,lockStatus:"on_sale",seo:{title:d||n("seo.collectibles.title"),description:n("seo.collectibles.description"),noindex:!0}})}export{H as Event};
2
- //# sourceMappingURL=Event-7sfgV2Md.js.map
1
+ import{u as m,r as p,j as r}from"./react-D7J-E0MH.js";import{u,a as f,b,l as g,t as y,c as n}from"./index-C7RUGLgx.js";import{Assets as x}from"./Assets-Bh3kAxON.js";import"./dcl-schemas-BKQ0vYZF.js";import"./sentry-BK5YQzUx.js";import"./ethers-CqnE9_Iy.js";import"./intl-AKLEHPeO.js";import"./search-empty-B2ikWLFM.js";import"./browseLayout.styles-Bza8FY3N.js";import"./categories-J0dMuNkM.js";import"./skeleton.styles-BN71VInw.js";import"./LoadMore-DgGHun07.js";import"./useInfiniteGrid-x8-KLPvB.js";import"./ErrorNotice-Dqt3U2vl.js";import"./buy-gasless-mSBHbIka.js";import"./authorizations-o-LlYXNc.js";import"./sendMetaTransaction-C6Fbql0T.js";import"./buy-8-Zq_4Fb.js";import"./errors-5abtsF-d.js";import"./name-glyph-aUugT8vq.js";import"./crumbs.styles-BqMPTZMi.js";import"./grid.styles-iTSFhsyn.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="f88dc570-e06b-4407-9b6e-92a650b9910c",e._sentryDebugIdIdentifier="sentry-dbid-f88dc570-e06b-4407-9b6e-92a650b9910c")}catch{}})();function H(){const e=m(),o=u(l=>l.locale),{campaign:t,isPending:i}=f(),{contracts:a,isPending:c}=b((t==null?void 0:t.tags)??[]),s=!i&&!(t!=null&&t.mainTag);if(p.useEffect(()=>{s&&e("/items",{replace:!0})},[s,e]),i||c||s)return r.jsx("div",{className:"page-loading","aria-busy":"true",children:r.jsx("span",{className:"spinner","aria-hidden":!0})});const d=g(t==null?void 0:t.tabName,y(o))??(t==null?void 0:t.name)??"";return r.jsx(x,{contracts:a,hideNames:!0,lockStatus:"on_sale",seo:{title:d||n("seo.collectibles.title"),description:n("seo.collectibles.description"),noindex:!0}})}export{H as Event};
2
+ //# sourceMappingURL=Event-CzoOohtw.js.map
@@ -1,2 +1,2 @@
1
- import{C as p,E as h,b as f,S as E,d as k,O as U,N as A,g as P,B as x,e as N,i as I,p as _}from"./W3MFrameProviderSingleton-B_HuzaO4.js";import{g as L,a as D,f as b,b as v,c as T}from"./index-gZhU_I9S.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="2ec4e80d-2c4d-4f23-b688-74151e9dae4d",t._sentryDebugIdIdentifier="sentry-dbid-2ec4e80d-2c4d-4f23-b688-74151e9dae4d")}catch{}})();const W=0,C={paymentAsset:null,amount:null,tokenAmount:0,priceLoading:!1,error:null,exchanges:[],isLoading:!1,currentPayment:void 0,isPaymentInProgress:!1,paymentId:"",assets:[]},e=_(C),d={state:e,subscribe(t){return I(e,()=>t(e))},subscribeKey(t,n){return N(e,t,n)},resetState(){Object.assign(e,{...C})},async getAssetsForNetwork(t){const n=T(t),s=await d.getAssetsImageAndPrice(n),r=n.map(a=>{var c,o,m,l;const u=a.asset==="native"?P():`${a.network}:${a.asset}`,i=s.find(S=>{var y,g,w;return((w=(g=(y=S.fungibles)==null?void 0:y[0])==null?void 0:g.address)==null?void 0:w.toLowerCase())===u.toLowerCase()});return{...a,price:((o=(c=i==null?void 0:i.fungibles)==null?void 0:c[0])==null?void 0:o.price)||1,metadata:{...a.metadata,iconUrl:(l=(m=i==null?void 0:i.fungibles)==null?void 0:m[0])==null?void 0:l.iconUrl}}});return e.assets=r,r},async getAssetsImageAndPrice(t){const n=t.map(r=>r.asset==="native"?P():`${r.network}:${r.asset}`);return await Promise.all(n.map(r=>x.fetchTokenPrice({addresses:[r]})))},getTokenAmount(){var s;if(!((s=e==null?void 0:e.paymentAsset)!=null&&s.price))throw new Error("Cannot get token price");const t=A.bigNumber(e.amount??0).round(8),n=A.bigNumber(e.paymentAsset.price).round(8);return t.div(n).round(8).toNumber()},setAmount(t){var n;e.amount=t,(n=e.paymentAsset)!=null&&n.price&&(e.tokenAmount=d.getTokenAmount())},setPaymentAsset(t){e.paymentAsset=t},isPayWithExchangeEnabled(){var t;return(t=U.state.remoteFeatures)==null?void 0:t.payWithExchange},isPayWithExchangeSupported(){return d.isPayWithExchangeEnabled()&&p.state.activeCaipNetwork&&k.PAY_WITH_EXCHANGE_SUPPORTED_CHAIN_NAMESPACES.includes(p.state.activeCaipNetwork.chainNamespace)},async fetchExchanges(){var t;try{const n=d.isPayWithExchangeSupported();if(!e.paymentAsset||!n){e.exchanges=[],e.isLoading=!1;return}e.isLoading=!0;const s=await v({page:W,asset:b(e.paymentAsset.network,e.paymentAsset.asset),amount:((t=e.amount)==null?void 0:t.toString())??"0"});e.exchanges=s.exchanges.slice(0,2)}catch{throw E.showError("Unable to get exchanges"),new Error("Unable to get exchanges")}finally{e.isLoading=!1}},async getPayUrl(t,n){try{const s=Number(n.amount),r=await D({exchangeId:t,asset:b(n.network,n.asset),amount:s.toString(),recipient:`${n.network}:${n.recipient}`});return h.sendEvent({type:"track",event:"PAY_EXCHANGE_SELECTED",properties:{exchange:{id:t},configuration:{network:n.network,asset:n.asset,recipient:n.recipient,amount:s},currentPayment:{type:"exchange",exchangeId:t},source:"fund-from-exchange",headless:!1}}),r}catch(s){throw s instanceof Error&&s.message.includes("is not supported")?new Error("Asset not supported"):new Error(s.message)}},async handlePayWithExchange(t){var n;try{const s=(n=p.getAccountData())==null?void 0:n.address;if(!s)throw new Error("No account connected");if(!e.paymentAsset)throw new Error("No payment asset selected");const r=f.returnOpenHref("","popupWindow","scrollbar=yes,width=480,height=720");if(!r)throw new Error("Could not create popup window");e.isPaymentInProgress=!0,e.paymentId=crypto.randomUUID(),e.currentPayment={type:"exchange",exchangeId:t};const{network:a,asset:u}=e.paymentAsset,i={network:a,asset:u,amount:e.tokenAmount,recipient:s},c=await d.getPayUrl(t,i);if(!c){try{r.close()}catch(o){console.error("Unable to close popup window",o)}throw new Error("Unable to initiate payment")}e.currentPayment.sessionId=c.sessionId,e.currentPayment.status="IN_PROGRESS",e.currentPayment.exchangeId=t,r.location.href=c.url}catch{e.error="Unable to initiate payment",E.showError(e.error)}},async waitUntilComplete({exchangeId:t,sessionId:n,paymentId:s,retries:r=20}){const a=await d.getBuyStatus(t,n,s);if(a.status==="SUCCESS"||a.status==="FAILED")return a;if(r===0)throw new Error("Unable to get deposit status");return await new Promise(u=>{setTimeout(u,5e3)}),d.waitUntilComplete({exchangeId:t,sessionId:n,paymentId:s,retries:r-1})},async getBuyStatus(t,n,s){var r,a,u,i,c;try{if(!e.currentPayment)throw new Error("No current payment");const o=await L({sessionId:n,exchangeId:t});if(e.currentPayment.status=o.status,o.status==="SUCCESS"||o.status==="FAILED"){const m=(r=p.getAccountData())==null?void 0:r.address;e.currentPayment.result=o.txHash,e.isPaymentInProgress=!1,h.sendEvent({type:"track",event:o.status==="SUCCESS"?"PAY_SUCCESS":"PAY_ERROR",properties:{message:o.status==="FAILED"?f.parseError(e.error):void 0,source:"fund-from-exchange",paymentId:s,configuration:{network:((a=e.paymentAsset)==null?void 0:a.network)||"",asset:((u=e.paymentAsset)==null?void 0:u.asset)||"",recipient:m||"",amount:e.amount??0},currentPayment:{type:"exchange",exchangeId:(i=e.currentPayment)==null?void 0:i.exchangeId,sessionId:(c=e.currentPayment)==null?void 0:c.sessionId,result:o.txHash}}})}return o}catch{return{status:"UNKNOWN",txHash:""}}},reset(){e.currentPayment=void 0,e.isPaymentInProgress=!1,e.paymentId="",e.paymentAsset=null,e.amount=0,e.tokenAmount=0,e.priceLoading=!1,e.error=null,e.exchanges=[],e.isLoading=!1}};export{d as E};
2
- //# sourceMappingURL=ExchangeController-DHN2m7yT.js.map
1
+ import{C as p,E as h,b as f,S as E,d as k,O as U,N as A,g as P,B as x,e as N,i as I,p as _}from"./W3MFrameProviderSingleton-bGfA1Ldc.js";import{g as L,a as D,f as b,b as v,c as T}from"./index-D-g6tUrr.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="2ec4e80d-2c4d-4f23-b688-74151e9dae4d",t._sentryDebugIdIdentifier="sentry-dbid-2ec4e80d-2c4d-4f23-b688-74151e9dae4d")}catch{}})();const W=0,C={paymentAsset:null,amount:null,tokenAmount:0,priceLoading:!1,error:null,exchanges:[],isLoading:!1,currentPayment:void 0,isPaymentInProgress:!1,paymentId:"",assets:[]},e=_(C),d={state:e,subscribe(t){return I(e,()=>t(e))},subscribeKey(t,n){return N(e,t,n)},resetState(){Object.assign(e,{...C})},async getAssetsForNetwork(t){const n=T(t),s=await d.getAssetsImageAndPrice(n),r=n.map(a=>{var c,o,m,l;const u=a.asset==="native"?P():`${a.network}:${a.asset}`,i=s.find(S=>{var y,g,w;return((w=(g=(y=S.fungibles)==null?void 0:y[0])==null?void 0:g.address)==null?void 0:w.toLowerCase())===u.toLowerCase()});return{...a,price:((o=(c=i==null?void 0:i.fungibles)==null?void 0:c[0])==null?void 0:o.price)||1,metadata:{...a.metadata,iconUrl:(l=(m=i==null?void 0:i.fungibles)==null?void 0:m[0])==null?void 0:l.iconUrl}}});return e.assets=r,r},async getAssetsImageAndPrice(t){const n=t.map(r=>r.asset==="native"?P():`${r.network}:${r.asset}`);return await Promise.all(n.map(r=>x.fetchTokenPrice({addresses:[r]})))},getTokenAmount(){var s;if(!((s=e==null?void 0:e.paymentAsset)!=null&&s.price))throw new Error("Cannot get token price");const t=A.bigNumber(e.amount??0).round(8),n=A.bigNumber(e.paymentAsset.price).round(8);return t.div(n).round(8).toNumber()},setAmount(t){var n;e.amount=t,(n=e.paymentAsset)!=null&&n.price&&(e.tokenAmount=d.getTokenAmount())},setPaymentAsset(t){e.paymentAsset=t},isPayWithExchangeEnabled(){var t;return(t=U.state.remoteFeatures)==null?void 0:t.payWithExchange},isPayWithExchangeSupported(){return d.isPayWithExchangeEnabled()&&p.state.activeCaipNetwork&&k.PAY_WITH_EXCHANGE_SUPPORTED_CHAIN_NAMESPACES.includes(p.state.activeCaipNetwork.chainNamespace)},async fetchExchanges(){var t;try{const n=d.isPayWithExchangeSupported();if(!e.paymentAsset||!n){e.exchanges=[],e.isLoading=!1;return}e.isLoading=!0;const s=await v({page:W,asset:b(e.paymentAsset.network,e.paymentAsset.asset),amount:((t=e.amount)==null?void 0:t.toString())??"0"});e.exchanges=s.exchanges.slice(0,2)}catch{throw E.showError("Unable to get exchanges"),new Error("Unable to get exchanges")}finally{e.isLoading=!1}},async getPayUrl(t,n){try{const s=Number(n.amount),r=await D({exchangeId:t,asset:b(n.network,n.asset),amount:s.toString(),recipient:`${n.network}:${n.recipient}`});return h.sendEvent({type:"track",event:"PAY_EXCHANGE_SELECTED",properties:{exchange:{id:t},configuration:{network:n.network,asset:n.asset,recipient:n.recipient,amount:s},currentPayment:{type:"exchange",exchangeId:t},source:"fund-from-exchange",headless:!1}}),r}catch(s){throw s instanceof Error&&s.message.includes("is not supported")?new Error("Asset not supported"):new Error(s.message)}},async handlePayWithExchange(t){var n;try{const s=(n=p.getAccountData())==null?void 0:n.address;if(!s)throw new Error("No account connected");if(!e.paymentAsset)throw new Error("No payment asset selected");const r=f.returnOpenHref("","popupWindow","scrollbar=yes,width=480,height=720");if(!r)throw new Error("Could not create popup window");e.isPaymentInProgress=!0,e.paymentId=crypto.randomUUID(),e.currentPayment={type:"exchange",exchangeId:t};const{network:a,asset:u}=e.paymentAsset,i={network:a,asset:u,amount:e.tokenAmount,recipient:s},c=await d.getPayUrl(t,i);if(!c){try{r.close()}catch(o){console.error("Unable to close popup window",o)}throw new Error("Unable to initiate payment")}e.currentPayment.sessionId=c.sessionId,e.currentPayment.status="IN_PROGRESS",e.currentPayment.exchangeId=t,r.location.href=c.url}catch{e.error="Unable to initiate payment",E.showError(e.error)}},async waitUntilComplete({exchangeId:t,sessionId:n,paymentId:s,retries:r=20}){const a=await d.getBuyStatus(t,n,s);if(a.status==="SUCCESS"||a.status==="FAILED")return a;if(r===0)throw new Error("Unable to get deposit status");return await new Promise(u=>{setTimeout(u,5e3)}),d.waitUntilComplete({exchangeId:t,sessionId:n,paymentId:s,retries:r-1})},async getBuyStatus(t,n,s){var r,a,u,i,c;try{if(!e.currentPayment)throw new Error("No current payment");const o=await L({sessionId:n,exchangeId:t});if(e.currentPayment.status=o.status,o.status==="SUCCESS"||o.status==="FAILED"){const m=(r=p.getAccountData())==null?void 0:r.address;e.currentPayment.result=o.txHash,e.isPaymentInProgress=!1,h.sendEvent({type:"track",event:o.status==="SUCCESS"?"PAY_SUCCESS":"PAY_ERROR",properties:{message:o.status==="FAILED"?f.parseError(e.error):void 0,source:"fund-from-exchange",paymentId:s,configuration:{network:((a=e.paymentAsset)==null?void 0:a.network)||"",asset:((u=e.paymentAsset)==null?void 0:u.asset)||"",recipient:m||"",amount:e.amount??0},currentPayment:{type:"exchange",exchangeId:(i=e.currentPayment)==null?void 0:i.exchangeId,sessionId:(c=e.currentPayment)==null?void 0:c.sessionId,result:o.txHash}}})}return o}catch{return{status:"UNKNOWN",txHash:""}}},reset(){e.currentPayment=void 0,e.isPaymentInProgress=!1,e.paymentId="",e.paymentAsset=null,e.amount=0,e.tokenAmount=0,e.priceLoading=!1,e.error=null,e.exchanges=[],e.isLoading=!1}};export{d as E};
2
+ //# sourceMappingURL=ExchangeController-DLt1pr9X.js.map
@@ -1,4 +1,4 @@
1
- import{r as x,j as o}from"./react-BFtKLtDt.js";import{d as e,s as a,c as h,I as w}from"./index-DC8tm76o.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new i.Error().stack;s&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[s]="705ef11d-fc6e-40b8-ac09-a201c0752140",i._sentryDebugIdIdentifier="sentry-dbid-705ef11d-fc6e-40b8-ac09-a201c0752140")}catch{}})();const m=a.section`
1
+ import{r as x,j as o}from"./react-D7J-E0MH.js";import{d as e,s as a,c as h,I as w}from"./index-C7RUGLgx.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new i.Error().stack;s&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[s]="705ef11d-fc6e-40b8-ac09-a201c0752140",i._sentryDebugIdIdentifier="sentry-dbid-705ef11d-fc6e-40b8-ac09-a201c0752140")}catch{}})();const m=a.section`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 36px;
@@ -172,4 +172,4 @@ import{r as x,j as o}from"./react-BFtKLtDt.js";import{d as e,s as a,c as h,I as
172
172
  }
173
173
  `;function S({title:i,entries:s,tone:l="light",className:u}){const[f,g]=x.useState(()=>new Set),p=x.useId();function b(t){g(n=>{const r=new Set(n);return r.delete(t)||r.add(t),r})}return o.jsxs(m,{className:u,"data-tone":l,"data-testid":"faq",children:[o.jsx(k,{"data-testid":"faq-title",children:h(i)}),o.jsx(v,{children:s.map(t=>{const n=f.has(t.question),r=`${p}-panel-${t.question}`,c=`${p}-header-${t.question}`;return o.jsxs($,{"data-open":n,"data-testid":"faq-item",children:[o.jsxs(y,{type:"button",onClick:()=>b(t.question),id:c,"aria-expanded":n,"aria-controls":n?r:void 0,"data-open":n,"data-testid":"faq-question",children:[o.jsx(q,{children:h(t.question)}),o.jsx(I,{"data-open":n,"aria-hidden":!0,children:o.jsx(w,{name:"chevron-up-line",size:36})})]}),n&&o.jsx(j,{id:r,role:"region","aria-labelledby":c,"data-testid":"faq-answer",children:h(t.answer).split(`
174
174
  `).map(d=>d.trim()).filter(Boolean).map(d=>o.jsx("p",{children:d},d))})]},t.question)})})]})}export{S as F};
175
- //# sourceMappingURL=Faq-mqMFd-El.js.map
175
+ //# sourceMappingURL=Faq-C75vztz0.js.map
@@ -1,4 +1,4 @@
1
- import{u as ue,a as ge,r as l,j as t}from"./react-BFtKLtDt.js";import{s as i,d as e,k as B,J as xe,c as o,C as h,F as fe,L as me,ak as g,bs as be,x as G,bD as M,bY as we,bk as H,K as ie,I as ye,av as ke,bZ as N}from"./index-DC8tm76o.js";import{C as ve}from"./Confetti-CYipT9FZ.js";import{F as Ce}from"./Faq-mqMFd-El.js";import{R as Q}from"./resume-buy-BeKMuIVF.js";import{u as $e,d as je,R as Se,c as Pe,i as Ae,e as _e}from"./useCreditPacks-DwebwNha.js";import"./dcl-schemas-BhHIKpM4.js";import"./sentry-BsJBy84X.js";import"./ethers-CkmgjxHm.js";import"./intl-AKLEHPeO.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new s.Error().stack;n&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[n]="c059b6ca-3c10-40d1-ba51-35650c3c5180",s._sentryDebugIdIdentifier="sentry-dbid-c059b6ca-3c10-40d1-ba51-35650c3c5180")}catch{}})();const A="https://cdn.decentraland.org/@dcl/shop/1.13.1-35085806935.commit-1d79e2c/_assets/pack-coins-BDh1ZDbh.webp",re="https://cdn.decentraland.org/@dcl/shop/1.13.1-35085806935.commit-1d79e2c/_assets/pack-stacks-D-V2jSHW.webp",ne="https://cdn.decentraland.org/@dcl/shop/1.13.1-35085806935.commit-1d79e2c/_assets/pack-chest-BX_j84xW.webp",Te="https://cdn.decentraland.org/@dcl/shop/1.13.1-35085806935.commit-1d79e2c/_assets/credit-coin-CmcTCd5i.webp",K="data:image/svg+xml,%3csvg%20width='60'%20height='60'%20viewBox='0%200%2060%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='60'%20height='60'%20rx='30'%20fill='%2334CE77'/%3e%3cpath%20d='M21.6583%2046.1067L11.4656%2036.0591C10.1688%2034.829%2010.1905%2032.7207%2011.4769%2031.4622L13.6868%2029.3591C14.9732%2028.1006%2017.1615%2028.1058%2018.4582%2029.3359L23.8747%2034.6197L41.9704%2015.6527C43.2568%2014.3942%2045.4291%2014.2093%2046.7258%2015.4394L48.8765%2017.3628C50.1732%2018.5929%2050.3491%2020.6844%2049.0626%2021.9429L26.6112%2045.8766C25.1433%2047.342%2022.955%2047.3368%2021.6583%2046.1067Z'%20fill='%23FCFCFC'/%3e%3c/svg%3e",O="linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",Re=i.div`
1
+ import{u as ue,a as ge,r as l,j as t}from"./react-D7J-E0MH.js";import{s as i,d as e,k as B,J as xe,c as o,C as h,F as fe,L as me,ak as g,bs as be,x as G,bD as M,bY as we,bk as H,K as ie,I as ye,av as ke,bZ as N}from"./index-C7RUGLgx.js";import{C as ve}from"./Confetti-TvBa-8L0.js";import{F as Ce}from"./Faq-C75vztz0.js";import{R as Q}from"./resume-buy-qr8Z1bgQ.js";import{u as $e,d as je,R as Se,c as Pe,i as Ae,e as _e}from"./useCreditPacks-C4goi1v6.js";import"./dcl-schemas-BKQ0vYZF.js";import"./sentry-BK5YQzUx.js";import"./ethers-CqnE9_Iy.js";import"./intl-AKLEHPeO.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new s.Error().stack;n&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[n]="1d8fa4f7-1221-4979-9e4e-d47d3814ab91",s._sentryDebugIdIdentifier="sentry-dbid-1d8fa4f7-1221-4979-9e4e-d47d3814ab91")}catch{}})();const A="https://cdn.decentraland.org/@dcl/shop/1.13.1-35088015492.commit-25d8a11/_assets/pack-coins-BDh1ZDbh.webp",re="https://cdn.decentraland.org/@dcl/shop/1.13.1-35088015492.commit-25d8a11/_assets/pack-stacks-D-V2jSHW.webp",ne="https://cdn.decentraland.org/@dcl/shop/1.13.1-35088015492.commit-25d8a11/_assets/pack-chest-BX_j84xW.webp",Te="https://cdn.decentraland.org/@dcl/shop/1.13.1-35088015492.commit-25d8a11/_assets/credit-coin-CmcTCd5i.webp",K="data:image/svg+xml,%3csvg%20width='60'%20height='60'%20viewBox='0%200%2060%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='60'%20height='60'%20rx='30'%20fill='%2334CE77'/%3e%3cpath%20d='M21.6583%2046.1067L11.4656%2036.0591C10.1688%2034.829%2010.1905%2032.7207%2011.4769%2031.4622L13.6868%2029.3591C14.9732%2028.1006%2017.1615%2028.1058%2018.4582%2029.3359L23.8747%2034.6197L41.9704%2015.6527C43.2568%2014.3942%2045.4291%2014.2093%2046.7258%2015.4394L48.8765%2017.3628C50.1732%2018.5929%2050.3491%2020.6844%2049.0626%2021.9429L26.6112%2045.8766C25.1433%2047.342%2022.955%2047.3368%2021.6583%2046.1067Z'%20fill='%23FCFCFC'/%3e%3c/svg%3e",O="linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",Re=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 24px;
@@ -852,4 +852,4 @@ import{u as ue,a as ge,r as l,j as t}from"./react-BFtKLtDt.js";import{s as i,d a
852
852
  font-family: ${e.font.sans};
853
853
  color: ${e.colors.err};
854
854
  `,v=Ae()?"mock":"stripe",ee=[A,A,re,ne],Ft={pack_5:A,pack_10:A,pack_25:re,pack_50:ne};function se(s,n){return Ft[s.id]??ee[n%ee.length]}function zt(s,n){return s.artUrl??se(s,n)}const Bt=[{question:"faq.buyers.whatAreQ",answer:"faq.buyers.whatAreA"},{question:"faq.buyers.whatCanIBuyQ",answer:"faq.buyers.whatCanIBuyA"},{question:"faq.buyers.whereBuyQ",answer:"faq.buyers.whereBuyA"},{question:"faq.buyers.whereUseQ",answer:"faq.buyers.whereUseA"},{question:"faq.buyers.expireQ",answer:"faq.buyers.expireA"},{question:"faq.buyers.transferQ",answer:"faq.buyers.transferA"}];function te(s){const n=s;if((n==null?void 0:n.name)==="AbortError")return o("getCredits.errorCanceled");const x=((n==null?void 0:n.message)??"").toLowerCase();return x.includes("sign in")?o("getCredits.errorSignIn",{currency:h.name}):x.includes("timed out")?o("getCredits.errorTimeout",{currency:h.name}):o("getCredits.errorGeneric")}function Qt(){var L;xe({title:o("nav.getCredits",{currency:h.name}),noindex:!0});const s=ue(),{session:n,signIn:x,restored:a}=fe(),m=me(),[b,$]=ge(),{packs:w,isLoading:ae}=$e(),[f,p]=l.useState("select"),[d,I]=l.useState(null),[j,q]=l.useState(null),de=(j!=null?(L=w.find(r=>r.credits===j))==null?void 0:L.artUrl:void 0)??Te,[ce,y]=l.useState(null),[le,S]=l.useState(!1),T=l.useRef(null);l.useEffect(()=>()=>{var r;return(r=T.current)==null?void 0:r.abort()},[]);const E=l.useCallback(()=>{$(r=>{const c=new URLSearchParams(r);return c.delete("order"),c.delete("canceled"),c},{replace:!0})},[$]),R=l.useCallback(async r=>{p("processing");const c=new AbortController;T.current=c;try{const u=await je(r,{signal:c.signal,address:n==null?void 0:n.address,identity:n==null?void 0:n.identity});if(u.status==="credited"){const k=u.creditsGranted??(d==null?void 0:d.credits)??0;q(k>0?k:null),p("success"),g("Shop Completed Buy Credits",{order_id:r,pack_usd:(d==null?void 0:d.usd)??null,credits:k>0?k:null,provider:v}),m.invalidateQueries({queryKey:["usd-balance"]});try{if(sessionStorage.getItem(Se)){const P={resumeCheckout:!0,...k>0?{creditsAdded:k}:{}};s("/cart",{state:P});return}}catch{}try{const P=sessionStorage.getItem(Q);if(P){sessionStorage.removeItem(Q);const D=JSON.parse(P),U=be(D);if(U){s(U,{state:{item:D,resumeBuy:!0}});return}}}catch{}}else u.status==="abandoned"||u.status==="initiated"?(g("Shop Buy Credits Cancelled",{order_id:r,provider:v,step:"grant"}),m.invalidateQueries({queryKey:["usd-balance"]}),S(!0),p("select")):u.status==="failed"?(g("Shop Buy Credits Failed",{step:"grant",error_code:"grant_failed",pack_usd:(d==null?void 0:d.usd)??null}),y(u.error??o("getCredits.errorGrant",{currency:h.name})),p("error")):(g("Shop Buy Credits Pending",{step:"grant",pack_usd:(d==null?void 0:d.usd)??null}),m.invalidateQueries({queryKey:["usd-balance"]}),p("pending"))}catch(u){G(u,{flow:"get_credits",step:"grant",order_id:r}),g("Shop Buy Credits Failed",{step:"grant",error_code:M(u),pack_usd:(d==null?void 0:d.usd)??null}),y(te(u)),p("error")}},[d,n,m,s]),pe=l.useCallback(async r=>{if(!n){x();return}y(null),S(!1),I(r),p(v==="mock"?"processing":"redirecting"),g("Shop Started Buy Credits",{pack_usd:r.usd,credits:r.credits,provider:v});try{const c=await Pe(r.id,{address:n.address,identity:n.identity});if(c.mock)R(c.orderId);else if(c.url)g("Shop Redirected To Stripe",{order_id:c.orderId,pack_usd:r.usd,credits:r.credits}),window.location.href=c.url;else throw new Error("Checkout did not return a redirect url")}catch(c){G(c,{flow:"get_credits",step:"checkout",provider:v}),g("Shop Buy Credits Failed",{step:"checkout",error_code:M(c),pack_usd:r.usd}),y(te(c)),p("error")}},[n,x,R]),F=l.useRef(!1),W=l.useRef(null);l.useEffect(()=>{if(F.current)return;const r=b.get("order");if(b.get("canceled")!=null){if(r&&!a)return;F.current=!0,g("Shop Buy Credits Cancelled",{order_id:r,provider:v}),r&&n&&we(r,n.identity),E(),S(!0),p("select");return}if(r){if(p("processing"),!n){a&&(g("Shop Buy Credits Failed",{step:"grant",error_code:"no_identity",pack_usd:(d==null?void 0:d.usd)??null}),y(o("getCredits.errorSignInAfterPay",{currency:h.name})),p("error"));return}F.current=!0,E(),R(r)}},[b,n,a]);function z(){var r;(r=T.current)==null||r.abort(),p("select"),I(null),q(null),y(null),S(!1)}function he(){const r=W.current;if(!r)return;const c=window.matchMedia("(prefers-reduced-motion: reduce)").matches;r.scrollIntoView({behavior:c?"auto":"smooth",block:"center"}),r.focus({preventScroll:!0})}return t.jsxs(Re,{children:[(f==="select"||f==="redirecting")&&t.jsxs(t.Fragment,{children:[t.jsx(Fe,{"data-testid":"credits-hero",children:t.jsxs(ze,{children:[t.jsxs(Ie,{$hidden:f==="redirecting",children:[t.jsxs(qe,{children:[t.jsx(Ee,{children:o("getCredits.title")}),t.jsxs(We,{children:[t.jsx(Le,{children:o("getCredits.subtitle")}),t.jsx(De,{type:"button",onClick:he,"data-testid":"credits-learn-more",children:o("getCredits.learnMore")})]})]}),le&&t.jsx(Ue,{role:"status",children:o("getCredits.canceledNote")}),t.jsx(It,{packs:w,loading:ae,onSelect:r=>void pe(r)})]}),f==="redirecting"&&t.jsxs(Je,{role:"status","aria-live":"polite",children:[t.jsx(rt,{src:H,alt:"",width:72,height:72}),t.jsx(et,{children:o("getCredits.redirecting")})]})]})}),t.jsx(Be,{ref:W,tabIndex:-1,"data-testid":"credits-faq",children:t.jsx(Ce,{title:"faq.title",entries:Bt,tone:"on-dark"})})]}),f==="processing"&&t.jsxs(it,{role:"status","aria-live":"polite",children:[t.jsx(oe,{src:H,alt:"",width:61,height:61}),t.jsxs(nt,{children:[t.jsxs(ot,{children:[t.jsx("strong",{children:o("getCredits.processing")}),"…"]}),t.jsxs(st,{"aria-hidden":!0,children:[t.jsx(dt,{children:t.jsx(ct,{})}),t.jsx(lt,{children:"1/1"})]})]})]}),f==="success"&&t.jsx(J,{"data-outcome":"success",children:t.jsxs(pt,{role:"status","aria-live":"polite",children:[t.jsx(ve,{}),t.jsxs(ht,{children:[t.jsx(ut,{src:K,alt:"",width:60,height:60}),t.jsxs(gt,{children:[t.jsx("strong",{children:o("getCredits.successTitle")})," ",o("getCredits.successBody",{currency:h.name})]})]}),j!=null&&t.jsx(xt,{children:t.jsxs(ft,{children:[t.jsx(mt,{src:de,alt:"",width:93,height:93}),t.jsxs(bt,{children:[t.jsx(ie,{}),t.jsxs("span",{children:[t.jsx(wt,{children:o("getCredits.creditsAmount",{credits:j,currency:h.name})})," ",t.jsx(yt,{children:o("getCredits.creditsAdded")})]})]})]})}),t.jsxs(kt,{children:[t.jsx(C,{"data-variant":"outline",onClick:z,children:o("getCredits.buyMore",{currency:h.name})}),t.jsx(C,{onClick:()=>s("/items"),children:o("getCredits.startShopping")})]})]})}),f==="pending"&&t.jsx(J,{children:t.jsxs(Ct,{role:"status","aria-live":"polite","data-testid":"credits-pending",children:[t.jsxs($t,{children:[t.jsx(jt,{src:K,alt:"",width:32,height:32}),t.jsx(St,{children:o("getCredits.pendingTitle",{currency:h.name})})]}),t.jsx(Pt,{children:o("getCredits.pendingBody")}),t.jsxs(At,{children:[t.jsx(C,{"data-variant":"outline",onClick:()=>s("/items"),children:o("getCredits.goShopping")}),t.jsx(C,{"data-variant":"ruby",onClick:z,children:o("getCredits.gotIt")})]})]})}),f==="error"&&t.jsxs(vt,{role:"alert",children:[t.jsx(_t,{"data-tone":"error",children:o("getCredits.errorTitle")}),t.jsx(Rt,{children:ce}),t.jsx(Tt,{children:t.jsx(C,{onClick:z,children:o("getCredits.tryAgain")})})]})]})}function It({packs:s,loading:n,onSelect:x}){return n?t.jsx(Y,{"aria-busy":"true","aria-label":o("getCredits.packsLoading",{currency:h.name}),children:[0,1,2,3].map(a=>t.jsxs(V,{as:"div","data-skeleton":"true","data-testid":"pack-skeleton","aria-hidden":!0,children:[t.jsxs(X,{children:[t.jsxs(Z,{children:[t.jsx(Ye,{}),t.jsx(Ve,{})]}),t.jsx(Xe,{})]}),t.jsx(Ze,{})]},a))}):t.jsx(Y,{children:s.map((a,m)=>{const b=_e(a,s);return t.jsxs(V,{type:"button","data-testid":"pack","data-best":a.bestValue?"true":void 0,onClick:()=>x(a),"aria-label":b?o("getCredits.packAriaBonus",{amount:N(a.credits),usd:a.usd,bonus:b.bonus,baseline:b.baseline}):o("getCredits.packAria",{amount:N(a.credits),usd:a.usd}),children:[a.bestValue&&t.jsxs(Ge,{children:[t.jsx(ye,{name:"star-rounded"}),o("getCredits.packBadge")]}),t.jsxs(X,{children:[t.jsxs(Z,{children:[t.jsxs(Me,{children:[t.jsx(ie,{}),t.jsx(He,{children:t.jsx(ke,{credits:a.credits})})]}),t.jsx(Ne,{children:o("getCredits.packUnit",{currency:h.name})})]}),t.jsx(Qe,{children:t.jsx("img",{src:zt(a,m),alt:"",loading:"lazy",width:507,height:507,onError:$=>{const w=$.currentTarget;w.dataset.artFallback||(w.dataset.artFallback="done",w.src=se(a,m))}})})]}),t.jsxs(Ke,{children:["$",a.usd.toFixed(2)]})]},a.id)})})}export{Qt as GetCredits,Qt as default};
855
- //# sourceMappingURL=GetCredits-Dd7nayxX.js.map
855
+ //# sourceMappingURL=GetCredits-C4r6Z9Ll.js.map