@dcl/shop 1.3.1-31191774447.commit-6e7d6f7 → 1.3.1-31201089763.commit-912f5ec

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 (176) hide show
  1. package/_assets/Activity-D3aSFKYY.js +378 -0
  2. package/_assets/{AnimatedBackground-DRIIf518.js → AnimatedBackground-C1X6IgMP.js} +1 -1
  3. package/_assets/{Assets-zGi2BuTg.js → Assets-C_4TMT4V.js} +2 -2
  4. package/_assets/{Assets.styles-Cyayzp96.js → Assets.styles-C5WDwVoe.js} +1 -1
  5. package/_assets/{Authorizations-D8xCUQ73.js → Authorizations-uJLZSYvq.js} +1 -1
  6. package/_assets/{Cart-BqjESTj5.js → Cart-BEAgv6c_.js} +1 -1
  7. package/_assets/{CircularProgress-Dy39fa7f.js → CircularProgress-DL37N-j7.js} +1 -1
  8. package/_assets/{Collection-CKYqVyfQ.js → Collection-BnSar7Qr.js} +1 -1
  9. package/_assets/{CollectionCarousel-CCSL-vFF.js → CollectionCarousel-MMKM1yuQ.js} +2 -2
  10. package/_assets/{Confetti-BJzr7oOJ.js → Confetti-DQKiLeBh.js} +1 -1
  11. package/_assets/{Creator-dcSlsbmQ.js → Creator-62yzU1Lg.js} +1 -1
  12. package/_assets/{ErrorNotice-DTm_-YHD.js → ErrorNotice-BwAoUpL9.js} +1 -1
  13. package/_assets/{ExchangeController-BdXbQOvh.js → ExchangeController-DAvH538j.js} +1 -1
  14. package/_assets/{Faq-BDJ3tHRE.js → Faq-D02Yv9cu.js} +1 -1
  15. package/_assets/{GetCredits-CBX3VO6B.js → GetCredits-3NEYJTq-.js} +58 -58
  16. package/_assets/{Grow-B0_HYQIB.js → Grow-sdc9Nr1N.js} +1 -1
  17. package/_assets/{HelpersUtil-CU_GR8a0.js → HelpersUtil-DGKzyiIS.js} +1 -1
  18. package/_assets/{ItemDetail-D853-Dww.js → ItemDetail-C7GxSXsG.js} +1 -1
  19. package/_assets/LazyEmoteControls-CqSp-GV7.js +2 -0
  20. package/_assets/{LoadMore-DUsq2Liu.js → LoadMore-C3ermAMb.js} +1 -1
  21. package/_assets/{ManaPricingBanner.styles-DaxtPtS7.js → ManaPricingBanner.styles-YtoTNOe2.js} +1 -1
  22. package/_assets/{MyAssets-DiQcxqCG.js → MyAssets-CNQG_eRC.js} +2 -2
  23. package/_assets/{MyFavorites-0BkK_ck-.js → MyFavorites-CFlt5LiC.js} +1 -1
  24. package/_assets/{NotFound-9vpYhuFJ.js → NotFound-C83tHvF5.js} +1 -1
  25. package/_assets/{NotificationsBell-BQIEq4Oi.js → NotificationsBell-DsUmpqin.js} +1 -1
  26. package/_assets/{OutfitDetail-CHg6J9ga.js → OutfitDetail-DUaGEn23.js} +1 -1
  27. package/_assets/{OutfitPreview-tBQx0llU.js → OutfitPreview-Nshybehb.js} +1 -1
  28. package/_assets/{OutfitStudio-CRlaSeTL.js → OutfitStudio-C_gQit5_.js} +1 -1
  29. package/_assets/{StoreSettings-Cq5Bj1aY.js → StoreSettings-L3MzHvQS.js} +1 -1
  30. package/_assets/{Success-BS_4kCGv.js → Success-iaZSJxdZ.js} +1 -1
  31. package/_assets/{SwapController-kq1pQSit.js → SwapController-D0qWFc7w.js} +1 -1
  32. package/_assets/{Tooltip-DGHRMccf.js → Tooltip-D6pCjy4V.js} +1 -1
  33. package/_assets/{TradeService-CIAcHKym.js → TradeService-DLJTaEnA.js} +1 -1
  34. package/_assets/{W3MFrameProviderSingleton-GrZmBKsV.js → W3MFrameProviderSingleton-xJv4tCDo.js} +3 -3
  35. package/_assets/{WebCryptoP256-COWdwjwC.js → WebCryptoP256-RUTioLBm.js} +1 -1
  36. package/_assets/{authorizations-FCfPxuii.js → authorizations-461vyy5w.js} +1 -1
  37. package/_assets/{basic-Bo9PxYJI.js → basic-CqqyQIPV.js} +1 -1
  38. package/_assets/{biconomy-BFLscdQv.js → biconomy-u9EoIO-P.js} +1 -1
  39. package/_assets/{builder-Cn-eB5XH.js → builder-Dclp-RZD.js} +1 -1
  40. package/_assets/{buy-Dyhhp26V.js → buy-97iQToH9.js} +1 -1
  41. package/_assets/{buy-gasless-BebaKtpO.js → buy-gasless-DZa4Htqn.js} +1 -1
  42. package/_assets/{categories-DFNz9BWG.js → categories-CI133--U.js} +1 -1
  43. package/_assets/{ccip-DJ0_SHFm.js → ccip-D1u4ENPE.js} +1 -1
  44. package/_assets/{ccip-DEtp8YTb.js → ccip-D_zDdtHc.js} +1 -1
  45. package/_assets/{collectionPage.styles-VE6xQ4Pq.js → collectionPage.styles-D7aUoM6L.js} +6 -6
  46. package/_assets/{controller-BL7r_uPq.js → controller-C26HJFfi.js} +2 -2
  47. package/_assets/{core-ivuEZWRF.js → core-DqHUWlvK.js} +4 -4
  48. package/_assets/{createSvgIcon-FJ-T9KCc.js → createSvgIcon-Bq4gNUO2.js} +1 -1
  49. package/_assets/{custom-BfAMARTO.js → custom-tBoAS192.js} +1 -1
  50. package/_assets/{data-capture-CtqR-xpK.js → data-capture-CJ2YRyWo.js} +1 -1
  51. package/_assets/{email-B00Kj9kB.js → email-RF300Bz5.js} +1 -1
  52. package/_assets/{embedded-wallet-CJtelFQM.js → embedded-wallet-D1eofZNS.js} +1 -1
  53. package/_assets/{emotion-styled.browser.esm-B1pGJ4yC.js → emotion-styled.browser.esm-CZxg7vbf.js} +1 -1
  54. package/_assets/{engine-BSpdTa_2.js → engine-CaSxWk-7.js} +1 -1
  55. package/_assets/{errors-B_H6ENH0.js → errors-C9CuiZvS.js} +1 -1
  56. package/_assets/{estimate-l1-fee-DLDkjzSe.js → estimate-l1-fee-DO2D1tSw.js} +1 -1
  57. package/_assets/{execute-BLDW5NcT.js → execute-DD5W4_yS.js} +2 -2
  58. package/_assets/{features-Db7oOV5p.js → features-4XxV5_Hq.js} +1 -1
  59. package/_assets/{fetchTokenMetadata-BnyyeISK.js → fetchTokenMetadata-COnb5gJ4.js} +2 -2
  60. package/_assets/{field.styles-BFdlSNg_.js → field.styles-DoXLfdYB.js} +1 -1
  61. package/_assets/{get-ecosystem-wallet-info-B0tgCN4F.js → get-ecosystem-wallet-info-vgbp43ad.js} +1 -1
  62. package/_assets/{getBalance-Cltaf7Oq.js → getBalance-BjgWxpkU.js} +1 -1
  63. package/_assets/{getNFT-CwDwplwb.js → getNFT-C5nQCunP.js} +1 -1
  64. package/_assets/{getNFT-C0frkmVi.js → getNFT-CE0xVpzl.js} +1 -1
  65. package/_assets/{grid.styles-4ZcNyj0y.js → grid.styles-B59nsEyQ.js} +1 -1
  66. package/_assets/{hashTypedData-CAxTTN4J.js → hashTypedData-CQrm142T.js} +1 -1
  67. package/_assets/{hashTypedData-CXE9elkf.js → hashTypedData-DS7__wkk.js} +1 -1
  68. package/_assets/{in-app-fhMFhBIw.js → in-app-DcoDtaFd.js} +1 -1
  69. package/_assets/{in-app-wallet-calls-BUUJeIZU.js → in-app-wallet-calls-gwLznVtz.js} +1 -1
  70. package/_assets/{index-BDHChLjL.js → index-1IzWtbVi.js} +1 -1
  71. package/_assets/{index-BRYRxr20.js → index-8WyRsA6X.js} +1 -1
  72. package/_assets/{index-CjnsP8Ua.js → index-8s9EQi3n.js} +1 -1
  73. package/_assets/{index-BWyq-oFs.js → index-B41gjunu.js} +1 -1
  74. package/_assets/{index-Dvk5bLvA.js → index-B5qMcTyi.js} +1 -1
  75. package/_assets/{index-CqbIuuH7.js → index-B6ZNcEUv.js} +1 -1
  76. package/_assets/{index-y6gbmZ7D.js → index-B82LtIPp.js} +1 -1
  77. package/_assets/{index-NDYWRULy.js → index-B9KPWVBk.js} +1 -1
  78. package/_assets/{index-BsmI87gm.js → index-BA1sQZkC.js} +1 -1
  79. package/_assets/{index-lakCiY8c.js → index-BAGNwIcX.js} +1 -1
  80. package/_assets/{index-C4rlto1G.js → index-BDuxRGHE.js} +1 -1
  81. package/_assets/{index-BDwg7g4n.js → index-BGWakLqN.js} +1 -1
  82. package/_assets/{index-BGynyeV-.js → index-BJC1AEFB.js} +3 -3
  83. package/_assets/{index-CtnLri_P.js → index-BM6mzigL.js} +1 -1
  84. package/_assets/{index-BkDfqq0T.js → index-BjIifDkz.js} +1 -1
  85. package/_assets/{index-Ciwhv9sJ.js → index-Bukt_k7I.js} +1 -1
  86. package/_assets/{index-DhFU000l.js → index-Bxjm2UVg.js} +1 -1
  87. package/_assets/{index-CinaHmgq.js → index-Byo2xfOl.js} +1 -1
  88. package/_assets/{index-PTtIRQbX.js → index-C5FZ45uN.js} +1 -1
  89. package/_assets/{index-COIlEmNs.js → index-C6NSPLGy.js} +2 -2
  90. package/_assets/{index-BA4pQBRh.js → index-CDjeD5RL.js} +1 -1
  91. package/_assets/{index-BCZo8-ZK.js → index-CFuvHtvq.js} +3 -3
  92. package/_assets/{index-jnN8CEK_.js → index-COLcCaU0.js} +1 -1
  93. package/_assets/{index-BQZHWFgh.js → index-CWYbSgCF.js} +1 -1
  94. package/_assets/{index-Bj-6yUVC.js → index-CXFVcnFg.js} +1 -1
  95. package/_assets/{index-BzHeEnu-.js → index-Cc04HTUt.js} +1 -1
  96. package/_assets/{index-CfarxyUW.js → index-CdTo79pv.js} +1 -1
  97. package/_assets/{index-DNDT_dIF.js → index-CdhfNc_l.js} +1 -1
  98. package/_assets/{index-CNmI4st4.js → index-Cpq-FOky.js} +1 -1
  99. package/_assets/{index-Qistbvb_.js → index-CrX60JgY.js} +1 -1
  100. package/_assets/{index-DkU3wVO5.js → index-Cw2pYXib.js} +3 -3
  101. package/_assets/{index-BK8V9pQJ.js → index-D02JHWUZ.js} +1 -1
  102. package/_assets/{index-DK25Jb4e.js → index-D4yVMTim.js} +2 -2
  103. package/_assets/{index-DHaLQxQa.js → index-D5idZOd_.js} +1 -1
  104. package/_assets/{index-APQ2Ba7r.js → index-D9RVgl2T.js} +1 -1
  105. package/_assets/{index-ChjwLCYB.js → index-DNkURlcd.js} +1 -1
  106. package/_assets/{index-B5W17i2g.js → index-Db31BU0T.js} +1 -1
  107. package/_assets/{index-B62JUWFh.js → index-DwhHI1Cg.js} +1 -1
  108. package/_assets/{index-CdTw5pba.js → index-DzLjaUyr.js} +1 -1
  109. package/_assets/{index-CFzcju_2.js → index-FNpgUxjw.js} +1 -1
  110. package/_assets/{index-BYOF-_EY.js → index-FyichFXh.js} +1 -1
  111. package/_assets/{index-BPT3uqik.js → index-Jo0sam1c.js} +1 -1
  112. package/_assets/{index-Cq5KlmlM.js → index-MLSA_xda.js} +1 -1
  113. package/_assets/{index-k5uwzkke.js → index-NoYi1gCl.js} +1 -1
  114. package/_assets/{index-ByLnsD5M.js → index-OCqb4Lm1.js} +1 -1
  115. package/_assets/{index-BbDxDzVC.js → index-RglfEs_N.js} +1 -1
  116. package/_assets/{index-BhYjAWN9.js → index-VPhzEUs7.js} +1 -1
  117. package/_assets/{index-Dx0t4NAk.js → index-cEf3YQLr.js} +2 -2
  118. package/_assets/{index-CtOJKlpi.js → index-hK57JS_R.js} +1 -1
  119. package/_assets/{index-DmPTEtlr.js → index-jLH6xAlY.js} +15 -15
  120. package/_assets/{index-CszvsfVp.js → index-nD4luVwh.js} +1 -1
  121. package/_assets/{index-PH-I4BnF.js → index-zLOBxfWn.js} +1 -1
  122. package/_assets/{index.es-Dzq0d_cy.js → index.es-CKoezarf.js} +4 -4
  123. package/_assets/{index.es-XoMskHy0.js → index.es-DGO9_FkS.js} +1 -1
  124. package/_assets/{index.es-gfNvjdvH.js → index.es-H7dDko7c.js} +1 -1
  125. package/_assets/{localBatchGatewayRequest-5ebjcWbY.js → localBatchGatewayRequest-Bx3cUTZX.js} +1 -1
  126. package/_assets/{networks-Dl3Vc8M8.js → networks-CsbXwBer.js} +1 -1
  127. package/_assets/{onramp-BkGIcgyw.js → onramp-WStE1fD9.js} +1 -1
  128. package/_assets/{openzeppelin-DchCrOCQ.js → openzeppelin-BVYp2kH1.js} +1 -1
  129. package/_assets/{parseNft-BG3FThUy.js → parseNft-Dv6X_C4N.js} +2 -2
  130. package/_assets/{parseSignature-BFEcvs4V.js → parseSignature-CwarGewk.js} +1 -1
  131. package/_assets/{parseSignature-DTAbriMg.js → parseSignature-D5un2ivy.js} +3 -3
  132. package/_assets/{passkeys-Da9FNaDu.js → passkeys-CZ1ekadw.js} +1 -1
  133. package/_assets/{pay-with-exchange-Bs2TV7Z3.js → pay-with-exchange-CIebqLjj.js} +1 -1
  134. package/_assets/{qr-overlay-UW6bQNWO.js → qr-overlay-C4daDEB4.js} +1 -1
  135. package/_assets/{receive-CzyqFowk.js → receive-BYow75vH.js} +1 -1
  136. package/_assets/{resolveImplementation-BIzpUAgP.js → resolveImplementation-PSc3oqm9.js} +1 -1
  137. package/_assets/{rpc-C7P6HF5R.js → rpc-kWkd3OHw.js} +1 -1
  138. package/_assets/{secp256k1-D6TaeqaI.js → secp256k1-BK9r2LDF.js} +1 -1
  139. package/_assets/{secp256k1-Bx20Myy5.js → secp256k1-Ce67qbLm.js} +1 -1
  140. package/_assets/{secp256k1-5qH9q35u.js → secp256k1-tYIf1ZFm.js} +1 -1
  141. package/_assets/{send-Dk12l-18.js → send-DO_DNrVe.js} +1 -1
  142. package/_assets/{send-batch-transaction-DKbbooSJ.js → send-batch-transaction-D5UMj_jb.js} +1 -1
  143. package/_assets/{send-eip712-transaction-Cg4tgj5D.js → send-eip712-transaction-Dnfzg1z3.js} +2 -2
  144. package/_assets/{send-gasless-transaction-CMqqmP8u.js → send-gasless-transaction-3VYHD0Ze.js} +2 -2
  145. package/_assets/{send-transaction-BV2bVYB0.js → send-transaction-tienULYw.js} +2 -2
  146. package/_assets/{sendMetaTransaction-DvkQczva.js → sendMetaTransaction-DF7vxyXm.js} +1 -1
  147. package/_assets/{sendRawTransaction-sxEV3puZ.js → sendRawTransaction-CZjqNYJ6.js} +3 -3
  148. package/_assets/{serializeTransaction-B2V0ysGE.js → serializeTransaction-DTMWol-_.js} +1 -1
  149. package/_assets/{session-proposal-ZWnsr1uV.js → session-proposal-BhtvHo7-.js} +1 -1
  150. package/_assets/{session-request-DNtDMu6V.js → session-request-dbVJ8ymF.js} +2 -2
  151. package/_assets/{signing-BcRAGDmi.js → signing-GpMKjKXp.js} +3 -3
  152. package/_assets/{skeleton.styles-H8mPuQpn.js → skeleton.styles-Bv8ZKXGY.js} +1 -1
  153. package/_assets/{socials-CchjAnAV.js → socials-DTaeAXCG.js} +1 -1
  154. package/_assets/{styled-DPMMsxJe.js → styled-BLQV6I_l.js} +1 -1
  155. package/_assets/{swaps-CkVTt06M.js → swaps-BGCiakKo.js} +1 -1
  156. package/_assets/{thirdweb-DNu05vUz.js → thirdweb-qRfjXTOQ.js} +3 -3
  157. package/_assets/{to-serializable-transaction-Ct0SHqrp.js → to-serializable-transaction-B2cW3u3U.js} +2 -2
  158. package/_assets/{transactionReceipt-3ZZCMPVt.js → transactionReceipt-L9oBgbpF.js} +1 -1
  159. package/_assets/{transactions-DVLzReQc.js → transactions-DnIxCXCg.js} +1 -1
  160. package/_assets/{useCreditPacks-4hcmsM5F.js → useCreditPacks-Djsj-Cpe.js} +1 -1
  161. package/_assets/{useImportable-Dx3iV1I3.js → useImportable-B7r1KC8G.js} +1 -1
  162. package/_assets/{useInfiniteGrid-BM-TIQD6.js → useInfiniteGrid-BGpyUoz0.js} +1 -1
  163. package/_assets/{useStore-BDX6RUJl.js → useStore-CgpHKL2Y.js} +1 -1
  164. package/_assets/{useTheme-jFU96Y8U.js → useTheme-b3ANmU5d.js} +1 -1
  165. package/_assets/{verifyHash-zE9tbx0Y.js → verifyHash-BqlOEdwK.js} +1 -1
  166. package/_assets/{w3m-modal-3G7T-i4r.js → w3m-modal-B4pCfbE7.js} +1 -1
  167. package/_assets/{w3m-modal-qM1qOGgn.js → w3m-modal-Cr9Zvmgh.js} +1 -1
  168. package/_assets/{wait-for-tx-receipt-DDnIM7IJ.js → wait-for-tx-receipt-EZ5-Zm-_.js} +1 -1
  169. package/_assets/{wallets-DNleVnWY.js → wallets-CcobzPcN.js} +5 -5
  170. package/_assets/{web-connector-HGPuKGe_.js → web-connector-CWbGrXH0.js} +3 -3
  171. package/_assets/{writeContract-VXIAbGxa.js → writeContract-GxuLdS-U.js} +1 -1
  172. package/_assets/{zoraTestnet-B2SeH1Ka.js → zoraTestnet-BZa65o_q.js} +1 -1
  173. package/index.html +11 -11
  174. package/package.json +2 -2
  175. package/_assets/Activity-y24sxYxo.js +0 -378
  176. package/_assets/LazyEmoteControls-B-lnsWU7.js +0 -2
package/index.html CHANGED
@@ -16,10 +16,10 @@
16
16
  <link rel="canonical" href="https://decentraland.org/shop/" />
17
17
 
18
18
  <!-- Favicon: the Decentraland mark (same as the marketplace). -->
19
- <link rel="icon" type="image/x-icon" href="https://cdn.decentraland.org/@dcl/shop/1.3.1-31191774447.commit-6e7d6f7/favicon.ico" sizes="16x16 32x32 48x48" />
20
- <link rel="apple-touch-icon" sizes="180x180" href="https://cdn.decentraland.org/@dcl/shop/1.3.1-31191774447.commit-6e7d6f7/dcl-mark.png" />
19
+ <link rel="icon" type="image/x-icon" href="https://cdn.decentraland.org/@dcl/shop/1.3.1-31201089763.commit-912f5ec/favicon.ico" sizes="16x16 32x32 48x48" />
20
+ <link rel="apple-touch-icon" sizes="180x180" href="https://cdn.decentraland.org/@dcl/shop/1.3.1-31201089763.commit-912f5ec/dcl-mark.png" />
21
21
  <meta name="apple-mobile-web-app-title" content="DCL Shop" />
22
- <link rel="manifest" href="https://cdn.decentraland.org/@dcl/shop/1.3.1-31191774447.commit-6e7d6f7/site.webmanifest" />
22
+ <link rel="manifest" href="https://cdn.decentraland.org/@dcl/shop/1.3.1-31201089763.commit-912f5ec/site.webmanifest" />
23
23
 
24
24
  <!-- Open Graph.
25
25
 
@@ -58,7 +58,7 @@
58
58
  <meta name="twitter:image:alt" content="Decentraland Shop — wearables and emotes for your avatar" />
59
59
 
60
60
  <!-- Sitemap -->
61
- <link rel="sitemap" type="application/xml" title="Sitemap" href="https://cdn.decentraland.org/@dcl/shop/1.3.1-31191774447.commit-6e7d6f7/sitemap.xml" />
61
+ <link rel="sitemap" type="application/xml" title="Sitemap" href="https://cdn.decentraland.org/@dcl/shop/1.3.1-31201089763.commit-912f5ec/sitemap.xml" />
62
62
 
63
63
  <!-- Warm the 3D preview / fonts -->
64
64
  <link rel="preconnect" href="https://fonts.googleapis.com" />
@@ -70,13 +70,13 @@
70
70
  <link rel="preconnect" href="https://wearable-preview.decentraland.org" />
71
71
  <link rel="preconnect" href="https://peer.decentraland.zone" crossorigin />
72
72
  <link rel="preconnect" href="https://peer.decentraland.org" crossorigin />
73
- <script type="module" crossorigin src="https://cdn.decentraland.org/@dcl/shop/1.3.1-31191774447.commit-6e7d6f7/_assets/index-DmPTEtlr.js"></script>
74
- <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/1.3.1-31191774447.commit-6e7d6f7/_assets/react-BYHuwl8r.js">
75
- <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/1.3.1-31191774447.commit-6e7d6f7/_assets/dcl-schemas-CmtP3U6y.js">
76
- <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/1.3.1-31191774447.commit-6e7d6f7/_assets/sentry-Dx-KuLV3.js">
77
- <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/1.3.1-31191774447.commit-6e7d6f7/_assets/ethers-BDpbhgX6.js">
78
- <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/1.3.1-31191774447.commit-6e7d6f7/_assets/intl-CBcMB1D2.js">
79
- <link rel="stylesheet" crossorigin href="https://cdn.decentraland.org/@dcl/shop/1.3.1-31191774447.commit-6e7d6f7/_assets/index-l2QjlKjX.css">
73
+ <script type="module" crossorigin src="https://cdn.decentraland.org/@dcl/shop/1.3.1-31201089763.commit-912f5ec/_assets/index-jLH6xAlY.js"></script>
74
+ <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/1.3.1-31201089763.commit-912f5ec/_assets/react-BYHuwl8r.js">
75
+ <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/1.3.1-31201089763.commit-912f5ec/_assets/dcl-schemas-CmtP3U6y.js">
76
+ <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/1.3.1-31201089763.commit-912f5ec/_assets/sentry-Dx-KuLV3.js">
77
+ <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/1.3.1-31201089763.commit-912f5ec/_assets/ethers-BDpbhgX6.js">
78
+ <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/1.3.1-31201089763.commit-912f5ec/_assets/intl-CBcMB1D2.js">
79
+ <link rel="stylesheet" crossorigin href="https://cdn.decentraland.org/@dcl/shop/1.3.1-31201089763.commit-912f5ec/_assets/index-l2QjlKjX.css">
80
80
  </head>
81
81
  <body>
82
82
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/shop",
3
- "version": "1.3.1-31191774447.commit-6e7d6f7",
3
+ "version": "1.3.1-31201089763.commit-912f5ec",
4
4
  "main": "index.js",
5
5
  "author": "Decentraland",
6
6
  "license": "Apache-2.0",
@@ -8,5 +8,5 @@
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/decentraland/shop.git"
10
10
  },
11
- "commit": "6e7d6f7a6dd5c6e2e1180a1457368ebe7884d30e"
11
+ "commit": "912f5ec092e0cc82d4c986958bcab7aa2bcdd22d"
12
12
  }
@@ -1,378 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-Bj-6yUVC.js","_assets/react-BYHuwl8r.js","_assets/index-DmPTEtlr.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/sentry-Dx-KuLV3.js","_assets/ethers-BDpbhgX6.js","_assets/intl-CBcMB1D2.js","_assets/index-l2QjlKjX.css","_assets/useImportable-Dx3iV1I3.js","_assets/buy-Dyhhp26V.js","_assets/authorizations-FCfPxuii.js","_assets/sendMetaTransaction-DvkQczva.js","_assets/ManaPricingBanner.styles-DaxtPtS7.js","_assets/Faq-BDJ3tHRE.js","_assets/field.styles-BFdlSNg_.js"])))=>i.map(i=>d[i]);
2
- import{q as It,bF as At,v as z,l as A,bG as $t,t as s,s as l,x as Lt,B as Et,y as Pt,b as c,an as Tt,I as $,bH as et,bI as it,bJ as Nt,_ as St,A as P,bK as Ct,D as Ft,aF as O,L as Dt,bL as Mt,F as Ht,bM as qt,bN as W}from"./index-DmPTEtlr.js";import{r as g,u as Rt,j as e,L as rt,e as zt}from"./react-BYHuwl8r.js";import{u as Ot}from"./useImportable-Dx3iV1I3.js";import{L as Wt}from"./LoadMore-DUsq2Liu.js";import{u as L}from"./useInfiniteGrid-BM-TIQD6.js";import{m as ot}from"./mana-matic-C4e1sNO3.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-Dx-KuLV3.js";import"./ethers-BDpbhgX6.js";import"./intl-CBcMB1D2.js";import"./buy-Dyhhp26V.js";import"./authorizations-FCfPxuii.js";import"./sendMetaTransaction-DvkQczva.js";const _t=15e3;function Gt(t,n){return t.txHash&&n.txHash?t.txHash===n.txHash:t.txHash||n.txHash?!1:t.status===n.status&&Math.abs(t.createdAt-n.createdAt)<=_t}function Bt(t){const n=[...t].sort((i,r)=>r.createdAt-i.createdAt),a=[];for(const i of n){const r=a[a.length-1];r&&Gt(r[r.length-1],i)?r.push(i):a.push([i])}return a.map(i=>{var r;return{id:((r=i.find(o=>o.txHash))==null?void 0:r.txHash)??i[i.length-1].id,createdAt:Math.max(...i.map(o=>o.createdAt)),status:Kt(i),totalCredits:i.reduce((o,h)=>o+h.credits,0),lines:i}})}function Kt(t){return t.some(n=>n.status==="PENDING")?"PENDING":t.some(n=>n.status==="SETTLED")?"SETTLED":"EXPIRED"}function Ut(t){return t==="SETTLED"?"SETTLED":t==="EXPIRED"?"FAILED":"PENDING"}function Qt(t){return t.tradeId?`trade:${t.tradeId}`:t.contractAddress&&t.itemId?`item:${t.contractAddress.toLowerCase()}:${t.itemId}`:null}function Xt(t){const n=[],a=new Map;for(const i of t){const r=Qt(i);if(!r){n.push({key:i.id,tradeId:null,contractAddress:i.contractAddress??null,itemId:i.itemId??null,quantity:1,credits:i.credits});continue}const o=a.get(r);if(o){o.quantity+=1,o.credits+=i.credits;continue}const h={key:r,tradeId:i.tradeId,contractAddress:i.contractAddress??null,itemId:i.itemId??null,quantity:1,credits:i.credits};a.set(r,h),n.push(h)}return n}function Vt(t,n){return{id:t.id,contractAddress:t.contractAddress,tokenId:t.tokenId,itemId:t.itemId,counterparty:t.buyer,credits:n?It(t.manaWei,n):null,manaWei:t.manaWei,createdAt:t.createdAt,txHash:t.txHash}}function Yt(t){return t.status!=="EXPIRED"||!!t.submittedTxHash}function Jt(t){const a=Bt(t.purchases.filter(Yt)).map(d=>({kind:"purchase",id:`purchase:${d.id}`,createdAt:d.createdAt,order:d})),i=t.sales.map(d=>{const x=Vt(d,t.rate);return{kind:"sale",id:`sale:${x.id}`,createdAt:x.createdAt,sale:x}}),r=(t.creditOrders??[]).filter(d=>d.status!=="failed"&&d.status!=="abandoned").map(d=>({kind:"credit",id:`credit:${d.id}`,createdAt:d.createdAt,order:d})),o=new Set(t.purchases.filter(d=>d.txHash).map(d=>d.txHash.toLowerCase())),h=(t.manaPurchases??[]).filter(d=>!o.has(d.txHash.toLowerCase())).map(d=>({kind:"mana-purchase",id:`mana-purchase:${d.id}`,createdAt:d.createdAt,sale:d}));return[...a,...i,...r,...h].sort((d,x)=>x.createdAt-d.createdAt||(d.id<x.id?-1:1))}function Zt(t,n){return n==="all"?t:n==="sales"?t.filter(a=>a.kind==="sale"):t.filter(a=>a.kind==="purchase"||a.kind==="credit"||a.kind==="mana-purchase")}const ct=t=>t.trim().toLowerCase();function te(t){const n=new Map;for(const a of t??[]){const i=ct(a.txHash??"");if(!i)continue;const r=n.get(i);r?r.push(a):n.set(i,[a])}return n}function ee(t,n,a=Date.now()){const i=n.txHash?t.get(ct(n.txHash)):void 0;if(!i||i.length===0)return{kind:"direct"};const r=i.length===1?ie(i[0].netCents):null,o=i.filter(d=>!d.available&&d.availableAt>a);if(o.length===0)return{kind:"credited",credits:r};const h=o.reduce((d,x)=>Math.max(d,x.availableAt),0);return{kind:"pending",credits:r,availableAt:h}}function ie(t){return At(t)}function ne(){const t=z(i=>{var r;return(r=i.session)==null?void 0:r.address}),{data:n,isLoading:a}=A({queryKey:["listing-count",t],queryFn:()=>$t({creator:t,onSale:!0,first:1}),enabled:!!t,staleTime:5*6e4});return{count:n==null?void 0:n.total,isLoading:a}}const se="https://cdn.decentraland.org/@dcl/shop/1.3.1-31191774447.commit-6e7d6f7/_assets/credits-product-vs4Q6u6l.svg",_=Lt`
3
- 0% { background-position: 200% 0; }
4
- 100% { background-position: -200% 0; }
5
- `,ae=l.section`
6
- width: 100%;
7
- min-width: 0;
8
- min-height: 60vh;
9
- /* Centre the whole column — heading, tabs and cards as ONE block — so the feed isn't parked against
10
- the left edge of a wide page. Centring only the list would leave the heading orphaned from it.
11
-
12
- ONE width for every view. The migration tool needs 1003px (its row is a thumbnail, a name and a
13
- 144px price field; narrower, the price field drops to its own line on a desktop), and the feed used
14
- to sit at 760px — so switching chips resized the heading and the whole column under it, which reads
15
- as the page reloading rather than as a filter changing. */
16
- max-width: 1003px;
17
- margin-inline: auto;
18
- `,re=l.div`
19
- display: flex;
20
- align-items: baseline;
21
- gap: 12px;
22
- margin-bottom: 20px;
23
- `,oe=l.h1`
24
- font-family: ${s.font.sans};
25
- margin: 0;
26
- color: ${s.colors.softWhite};
27
- `;l.span`
28
- color: ${s.colors.gray4};
29
- font-size: 14px;
30
- `;const ce=l.div`
31
- display: flex;
32
- gap: 8px;
33
- margin-bottom: 20px;
34
- flex-wrap: wrap;
35
- `,dt=l.button`
36
- appearance: none;
37
- /* Figma 2275:294685 / 294707: a translucent white pill that fills SOFT-WHITE when it is the one you
38
- are on, with no border in either state — the outline this used to carry made the selected chip read
39
- as a control with a stuck focus ring on it. */
40
- border: 0;
41
- background: ${s.colors.glass};
42
- color: ${s.colors.white};
43
- font-family: ${s.font.sans};
44
- font-size: 13px;
45
- font-weight: 600;
46
- line-height: 24px;
47
- letter-spacing: 0.46px;
48
- /* The design gives the pill a flat 40px and no vertical padding, centring the 24px line box inside
49
- it — so the height is the 40 it draws rather than the sum of a line box, padding and a border. */
50
- display: inline-flex;
51
- align-items: center;
52
- justify-content: center;
53
- padding: 0 16px;
54
- min-height: 40px;
55
- border-radius: ${s.radius.pill};
56
- cursor: pointer;
57
- transition:
58
- background 0.15s,
59
- color 0.15s;
60
-
61
- &:hover {
62
- background: ${s.colors.glassHover};
63
- }
64
- /* Inset, so a keyboard ring never reads as part of the pill's own shape the way an offset one did. */
65
- &:focus-visible {
66
- outline: 2px solid ${s.colors.white};
67
- outline-offset: -2px;
68
- }
69
- &[data-active='true'] {
70
- background: ${s.colors.softWhite};
71
- color: ${s.colors.text};
72
- }
73
- &[data-active='true']:hover {
74
- background: ${s.colors.white};
75
- }
76
- &[data-active='true']:focus-visible {
77
- outline-color: ${s.colors.text};
78
- }
79
- `,de=l(dt)`
80
- position: relative;
81
- `,le=l.span`
82
- position: absolute;
83
- /* The 5.5 / 2.5 the design measures from the pill's outer edge. The chip has no border now, so its
84
- padding box IS that edge and the offsets no longer carry a hairline's worth on top. */
85
- top: -5.5px;
86
- right: -2.5px;
87
- display: grid;
88
- place-items: center;
89
- /* The chip's tracking would otherwise widen the disc off its 20px. */
90
- letter-spacing: normal;
91
- /* Figma only ever draws a single digit, as a fixed 20px disc. The padding is what lets a two- or
92
- three-figure count grow leftwards out of the corner instead of spilling out of the circle. */
93
- min-width: 20px;
94
- height: 20px;
95
- padding: 0 6px;
96
- border-radius: ${s.radius.pill};
97
- background: ${s.colors.dclRed};
98
- /* No ring: the red separates itself from both surfaces the disc straddles (the chip and the page), and
99
- the design draws the circle bare. */
100
- font-weight: 600;
101
- font-size: 12px;
102
- line-height: 1.6;
103
- color: ${s.colors.white};
104
- `,ue=l.div`
105
- min-height: 60vh;
106
- `,nt=l.div`
107
- display: flex;
108
- flex-direction: column;
109
- gap: 16px;
110
- `,T=l.div`
111
- background: ${s.colors.white};
112
- border: 1px solid ${s.colors.line};
113
- border-radius: 16px;
114
- overflow: hidden;
115
- `,N=l.div`
116
- display: flex;
117
- align-items: center;
118
- justify-content: space-between;
119
- gap: 12px;
120
- padding: 14px 18px;
121
- background: ${s.colors.softWhite};
122
- border-bottom: 1px solid ${s.colors.line};
123
-
124
- ${s.media.maxWidth("mobile")} {
125
- flex-wrap: wrap;
126
- }
127
- `,S=l.div`
128
- display: flex;
129
- flex-direction: column;
130
- gap: 2px;
131
- min-width: 0;
132
- `,C=l.span`
133
- font-weight: 700;
134
- color: ${s.colors.text};
135
- `,F=l.span`
136
- font-size: 13px;
137
- color: ${s.colors.muted};
138
- `,D=l.div`
139
- display: flex;
140
- align-items: center;
141
- gap: 14px;
142
- /* Pin to the right regardless of how many elements sit on the left (the credit-purchase card adds a
143
- leading thumbnail, giving the head three children instead of two). */
144
- margin-left: auto;
145
- `,he=l.div`
146
- flex: 0 0 auto;
147
- width: 52px;
148
- height: 52px;
149
- border-radius: 10px;
150
- background: ${s.colors.media};
151
- display: flex;
152
- align-items: center;
153
- justify-content: center;
154
-
155
- img {
156
- width: 30px;
157
- height: 30px;
158
- display: block;
159
- }
160
- `,M=l.span`
161
- font-size: 11px;
162
- font-weight: 700;
163
- text-transform: uppercase;
164
- letter-spacing: 0.03em;
165
- padding: 4px 10px;
166
- border-radius: ${s.radius.pill};
167
- white-space: nowrap;
168
-
169
- &[data-status='SETTLED'] {
170
- background: rgba(30, 166, 114, 0.14);
171
- color: ${s.colors.okStrong};
172
- }
173
- &[data-status='PENDING'] {
174
- background: rgba(245, 166, 35, 0.16);
175
- color: #b5790a;
176
- }
177
- &[data-status='SOLD'] {
178
- background: rgba(103, 58, 183, 0.14);
179
- color: ${s.colors.accent};
180
- }
181
- &[data-status='FAILED'] {
182
- background: rgba(214, 61, 61, 0.14);
183
- color: #b02a2a;
184
- }
185
- /* Nobody paid and nobody is owed anything — deliberately the quietest of the four. Reusing PENDING's
186
- amber here is what made an abandoned checkout look like money on its way. */
187
- &[data-status='UNFINISHED'] {
188
- background: ${s.colors.line};
189
- color: ${s.colors.muted};
190
- }
191
- `,pe=l.button`
192
- font-size: 11px;
193
- font-weight: 700;
194
- text-transform: uppercase;
195
- letter-spacing: 0.03em;
196
- padding: 4px 10px;
197
- border-radius: ${s.radius.pill};
198
- white-space: nowrap;
199
- border: 1px solid ${s.colors.accent};
200
- background: transparent;
201
- color: ${s.colors.accent};
202
- cursor: pointer;
203
- transition: background 0.15s ease;
204
-
205
- &:hover:not(:disabled) {
206
- background: rgba(103, 58, 183, 0.08);
207
- }
208
- &:disabled {
209
- opacity: 0.6;
210
- cursor: default;
211
- }
212
- `,k=l.div`
213
- display: flex;
214
- align-items: center;
215
- gap: 5px;
216
- font-weight: 800;
217
- color: ${s.colors.text};
218
- white-space: nowrap;
219
-
220
- .ccy-mark {
221
- width: 16px;
222
- height: 16px;
223
- }
224
-
225
- // Money received (a sale) reads as income in the shop's success green.
226
- &[data-kind='income'] {
227
- color: ${s.colors.okStrong};
228
- }
229
- `,lt=l.img`
230
- width: 16px;
231
- height: 16px;
232
- vertical-align: -0.15em;
233
- `,xe=l.span`
234
- display: inline-flex;
235
- align-items: center;
236
- cursor: pointer;
237
- `,me=l.span`
238
- position: fixed;
239
- transform: translateX(-50%);
240
- padding: 6px 8px;
241
- border-radius: 6px;
242
- background: #16141a;
243
- color: ${s.colors.white};
244
- font-size: 12px;
245
- font-weight: 600;
246
- line-height: 1;
247
- white-space: nowrap;
248
- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
249
- pointer-events: none;
250
- z-index: 9999;
251
- `,ge=l.p`
252
- margin: 0;
253
- /* 18px sides to sit on the same rail as CardHead and Line; no bottom, since Line brings its own 12px. */
254
- padding: 12px 18px 0;
255
- font-size: 13px;
256
- line-height: 1.45;
257
- color: ${s.colors.muted};
258
- `,G=l.div`
259
- display: flex;
260
- flex-direction: column;
261
- `,H=l.div`
262
- display: grid;
263
- grid-template-columns: 52px 1fr auto;
264
- align-items: center;
265
- gap: 14px;
266
- padding: 12px 18px;
267
- text-decoration: none;
268
- color: inherit;
269
-
270
- & + & {
271
- border-top: 1px solid ${s.colors.line};
272
- }
273
-
274
- &[data-link='true'] {
275
- transition: background 0.15s;
276
- }
277
- &[data-link='true']:hover {
278
- background: ${s.colors.media};
279
- }
280
- &[data-link='true']:focus-visible {
281
- outline: 2px solid ${s.colors.accent};
282
- outline-offset: -2px;
283
- }
284
- `,B=l.div`
285
- width: 52px;
286
- height: 52px;
287
- border-radius: 10px;
288
- background: ${s.colors.media};
289
- overflow: hidden;
290
- display: flex;
291
- align-items: center;
292
- justify-content: center;
293
- color: ${s.colors.muted2};
294
-
295
- img {
296
- width: 100%;
297
- height: 100%;
298
- object-fit: contain;
299
- }
300
- `,K=l.div`
301
- width: 52px;
302
- height: 52px;
303
- border-radius: 10px;
304
- background: linear-gradient(100deg, ${s.colors.media} 30%, ${s.colors.panel} 50%, ${s.colors.media} 70%);
305
- background-size: 200% 100%;
306
- animation: ${_} 1.3s infinite linear;
307
-
308
- @media (prefers-reduced-motion: reduce) {
309
- animation: none;
310
- }
311
- `,U=l.div`
312
- min-width: 0;
313
- display: flex;
314
- flex-direction: column;
315
- gap: 2px;
316
- `,Q=l.span`
317
- font-weight: 700;
318
- white-space: nowrap;
319
- overflow: hidden;
320
- text-overflow: ellipsis;
321
- `,X=l.span`
322
- display: inline-block;
323
- width: 140px;
324
- max-width: 60%;
325
- height: 12px;
326
- border-radius: 6px;
327
- background: linear-gradient(100deg, ${s.colors.media} 30%, ${s.colors.panel} 50%, ${s.colors.media} 70%);
328
- background-size: 200% 100%;
329
- animation: ${_} 1.3s infinite linear;
330
-
331
- @media (prefers-reduced-motion: reduce) {
332
- animation: none;
333
- }
334
- `,V=l.span`
335
- font-size: 13px;
336
- color: ${s.colors.muted};
337
- `,fe=l.div`
338
- display: flex;
339
- align-items: center;
340
- gap: 4px;
341
- font-weight: 700;
342
- color: ${s.colors.text};
343
- white-space: nowrap;
344
-
345
- .ccy-mark {
346
- width: 14px;
347
- height: 14px;
348
- }
349
- `,st=l.div`
350
- height: 132px;
351
- border-radius: 16px;
352
- border: 1px solid transparent;
353
- background: linear-gradient(100deg, ${s.colors.media} 30%, ${s.colors.panel} 50%, ${s.colors.media} 70%);
354
- background-size: 200% 100%;
355
- animation: ${_} 1.3s infinite linear;
356
-
357
- @media (prefers-reduced-motion: reduce) {
358
- animation: none;
359
- }
360
- `,ut=l.div`
361
- display: flex;
362
- flex-direction: column;
363
- align-items: center;
364
- gap: 8px;
365
- text-align: center;
366
- padding: 90px 20px;
367
- min-height: 50vh;
368
- color: ${s.colors.softWhite};
369
- `,ht=l.p`
370
- font-size: 22px;
371
- font-weight: 700;
372
- margin: 6px 0 0;
373
- `,pt=l.p`
374
- margin: 0;
375
- color: ${s.colors.softWhite};
376
- `,be=l(Et)`
377
- margin-top: 12px;
378
- `,Y=H.withComponent(rt),ye=g.lazy(()=>St(()=>import("./index-Bj-6yUVC.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(t=>({default:t.ImportListings}))),E=24,ve=["all","purchases","sales"],q="section",at="listings",R="view",je="migrate";function I(t){try{return new Date(t).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}catch{return""}}function xt(t){return t.length>10?`${t.slice(0,6)}…${t.slice(-4)}`:t}function mt(t){const n=Number(t)/1e18;return Number.isFinite(n)?n.toLocaleString("en",{maximumFractionDigits:2}):"0"}function gt({children:t}){const n=g.useRef(null),[a,i]=g.useState(null),r=()=>{var h;const o=(h=n.current)==null?void 0:h.getBoundingClientRect();o&&i({top:o.bottom+8,left:o.left+o.width/2})};return e.jsxs(xe,{ref:n,tabIndex:0,onMouseEnter:r,onMouseLeave:()=>i(null),onFocus:r,onBlur:()=>i(null),children:[t,a?zt.createPortal(e.jsx(me,{style:{top:a.top,left:a.left},role:"tooltip",children:c("activity.polygonMana")}),document.body):null]})}function ke({item:t}){const n=!!t.contractAddress&&!!t.itemId,a=!!t.tradeId||n,{data:i,isLoading:r}=A({queryKey:["order-line-display",t.tradeId,t.contractAddress,t.itemId],queryFn:()=>t.tradeId?qt(t.tradeId):W(t.contractAddress,{itemId:t.itemId}),enabled:a,staleTime:5*6e4}),o=a&&r,h=(i==null?void 0:i.name)??c("activity.itemFallback"),d=(i==null?void 0:i.thumbnail)??"",x=O({contractAddress:i==null?void 0:i.contractAddress,tokenId:i==null?void 0:i.tokenId,itemId:i==null?void 0:i.itemId})??void 0,f=e.jsxs(e.Fragment,{children:[o?e.jsx(K,{}):e.jsx(B,{children:d?e.jsx("img",{src:d,alt:h}):e.jsx($,{name:"cart",size:20})}),e.jsxs(U,{children:[o?e.jsx(X,{}):e.jsx(Q,{title:h,children:h}),t.quantity>1?e.jsx(V,{children:c("activity.quantity",{count:t.quantity})}):null]}),e.jsxs(fe,{children:[e.jsx(P,{className:"ccy-mark"})," ",t.credits]})]});return x?e.jsx(Y,{to:x,"data-link":"true",children:f}):e.jsx(H,{children:f})}function we({order:t}){const n=Xt(t.lines),a=n.reduce((o,h)=>o+h.quantity,0),i=Ut(t.status),r=i==="SETTLED"?c("activity.completed"):i==="FAILED"?c("activity.failed"):c("activity.processing");return e.jsxs(T,{"data-testid":"purchase-order",children:[e.jsxs(N,{children:[e.jsxs(S,{children:[e.jsx(C,{children:I(t.createdAt)}),e.jsxs(F,{children:[c("activity.purchaseLabel")," · ",c("activity.itemCount",{count:a})]})]}),e.jsxs(D,{children:[e.jsx(M,{"data-status":i,children:r}),e.jsxs(k,{children:[e.jsx(P,{className:"ccy-mark"})," ",t.totalCredits]})]})]}),i==="FAILED"?e.jsx(ge,{children:c("activity.purchaseFailedNote")}):null,e.jsx(G,{children:n.map(o=>e.jsx(ke,{item:o},o.key))})]})}function Ie({sale:t}){const{data:n,isLoading:a}=A({queryKey:["asset-display",t.contractAddress,t.tokenId,t.itemId],queryFn:()=>W(t.contractAddress,{tokenId:t.tokenId,itemId:t.itemId}),enabled:!!t.contractAddress,staleTime:3e5}),i=(n==null?void 0:n.name)??c("activity.itemFallback"),r=(n==null?void 0:n.thumbnail)??"",o=O({contractAddress:t.contractAddress,tokenId:t.tokenId,itemId:t.itemId})??void 0,h=e.jsxs(e.Fragment,{children:[a?e.jsx(K,{}):e.jsx(B,{children:r?e.jsx("img",{src:r,alt:i}):e.jsx($,{name:"offer",size:20})}),e.jsxs(U,{children:[a?e.jsx(X,{}):e.jsx(Q,{title:i,children:i}),e.jsx(V,{children:c("activity.boughtFrom",{account:xt(t.seller)})})]})]});return e.jsxs(T,{"data-testid":"activity-mana-purchase",children:[e.jsxs(N,{children:[e.jsxs(S,{children:[e.jsx(C,{children:I(t.createdAt)}),e.jsx(F,{children:c("activity.paidWithMana")})]}),e.jsxs(D,{children:[e.jsx(M,{"data-status":"SETTLED",children:c("activity.completed")}),e.jsxs(k,{children:[mt(t.manaWei)," ",e.jsx(gt,{children:e.jsx(lt,{src:ot,alt:"MANA"})})]})]})]}),e.jsx(G,{children:o?e.jsx(Y,{to:o,"data-link":"true",children:h}):e.jsx(H,{children:h})})]})}function Ae({sale:t,payout:n}){const{data:a,isLoading:i}=A({queryKey:["asset-display",t.contractAddress,t.tokenId,t.itemId],queryFn:()=>W(t.contractAddress,{tokenId:t.tokenId,itemId:t.itemId}),enabled:!!t.contractAddress,staleTime:3e5}),r=(a==null?void 0:a.name)??c("activity.itemFallback"),o=(a==null?void 0:a.thumbnail)??"",h=O({contractAddress:t.contractAddress,tokenId:t.tokenId,itemId:t.itemId})??void 0,d=e.jsxs(e.Fragment,{children:[i?e.jsx(K,{}):e.jsx(B,{children:o?e.jsx("img",{src:o,alt:r}):e.jsx($,{name:"offer",size:20})}),e.jsxs(U,{children:[i?e.jsx(X,{}):e.jsx(Q,{title:r,children:r}),e.jsxs(V,{children:[c("activity.soldTo",{account:xt(t.counterparty)}),n.kind==="pending"?` · ${c("activity.payoutPendingOn",{date:I(n.availableAt)})}`:""]})]})]});return e.jsxs(T,{"data-testid":"activity-sale",children:[e.jsxs(N,{children:[e.jsxs(S,{children:[e.jsx(C,{children:I(t.createdAt)}),e.jsx(F,{children:c("activity.saleLabel")})]}),e.jsxs(D,{children:[e.jsx(M,{"data-status":n.kind==="pending"?"PENDING":"SOLD",children:n.kind==="pending"?c("activity.payoutPending"):c("activity.sold")}),n.kind==="direct"?e.jsxs(k,{"data-kind":"income",children:["+",mt(t.manaWei)," ",e.jsx(gt,{children:e.jsx(lt,{src:ot,alt:"MANA"})})]}):n.credits!==null?e.jsxs(k,{"data-kind":"income",children:[e.jsx(P,{className:"ccy-mark"})," +",Dt(n.credits)]}):e.jsx(k,{"data-kind":"income",children:c("activity.payoutCredited")})]})]}),e.jsx(G,{children:h?e.jsx(Y,{to:h,"data-link":"true",children:d}):e.jsx(H,{children:d})})]})}function $e({order:t}){const n=`$${(t.usdCents/100).toFixed(2)}`,a=Ct(t.status),i=a==="SETTLED"?c("activity.completed"):a==="FAILED"?c("activity.failed"):a==="UNFINISHED"?c("activity.unfinished"):c("activity.processing"),r=z(p=>p.session),o=Ft(),[h,d]=g.useState(!1),x=t.status==="initiated"&&!!r;async function f(){if(!(!r||h)){d(!0);try{const p=await Mt(t.id,r.identity);if(p){window.location.href=p;return}Ht.info(c("activity.resumeExpired")),o.invalidateQueries({queryKey:["credit-orders"]})}finally{d(!1)}}}return e.jsx(T,{"data-testid":"credit-order",children:e.jsxs(N,{children:[e.jsx(he,{children:e.jsx("img",{src:se,alt:"","aria-hidden":!0})}),e.jsxs(S,{children:[e.jsx(C,{children:I(t.createdAt)}),e.jsxs(F,{children:[c("activity.creditPurchaseLabel")," · ",c("activity.creditPaid",{usd:n})]})]}),e.jsxs(D,{children:[x?e.jsx(pe,{type:"button",onClick:()=>void f(),disabled:h,"data-testid":"resume-order",children:h?c("activity.resuming"):c("activity.resume")}):null,e.jsx(M,{"data-status":a,children:i}),e.jsxs(k,{"data-kind":"income",children:["+",e.jsx(P,{className:"ccy-mark"})," ",t.credits]})]})]})})}function Le({filter:t}){const n={all:{icon:"clock",title:c("activity.emptyAllTitle"),body:c("activity.emptyAllBody")},purchases:{icon:"cart",title:c("activity.emptyPurchasesTitle"),body:c("activity.emptyPurchasesBody")},sales:{icon:"offer",title:c("activity.emptySalesTitle"),body:c("activity.emptySalesBody")}}[t];return e.jsxs(ut,{children:[e.jsx($,{name:n.icon,size:40,color:s.colors.muted2}),e.jsx(ht,{children:n.title}),e.jsx(pt,{children:n.body}),t!=="sales"?e.jsx(be,{as:rt,to:"/items",variant:"white",children:c("notFound.cta")}):null]})}function Oe(){const{session:t}=z(),[n,a]=g.useState("all"),[i,r]=Rt(),o=i.get(q)===at||i.get(R)===je;Pt({title:o?c("seo.import.title"):c("nav.activity"),noindex:!0});const{count:h}=Ot(),{count:d}=ne(),f=h!==void 0&&d!==void 0&&(h>0||d>0||o),p=!!t&&!o&&n!=="sales",m=!!t&&!o&&n!=="purchases",b=L(["purchases",t==null?void 0:t.address],u=>Nt(t.address,t.identity,{first:E,skip:u}),{enabled:p}),y=L(["sales",t==null?void 0:t.address],u=>et(t.address,{role:"seller",first:E,skip:u}),{enabled:m}),v=L(["credit-orders",t==null?void 0:t.address],u=>it(t.address,t.identity,{first:E,skip:u}),{enabled:p}),j=L(["mana-purchases",t==null?void 0:t.address],u=>et(t.address,{role:"buyer",first:E,skip:u}),{enabled:p}),{data:J}=A({queryKey:["sale-payouts",t==null?void 0:t.address],queryFn:()=>it(t.address,t.identity,{first:200}).then(u=>u.payouts),enabled:m,staleTime:6e4}),ft=g.useMemo(()=>te(J),[J]),{data:bt}=Tt(m);if(!t)return e.jsxs(ut,{children:[e.jsx($,{name:"clock",size:40,color:s.colors.muted2}),e.jsx(ht,{children:c("activity.signInTitle")}),e.jsx(pt,{children:c("activity.signInBody")})]});const Z=Zt(Jt({purchases:p?b.items:[],sales:m?y.items:[],creditOrders:p?v.items:[],manaPurchases:p?j.items:[],rate:bt}),n),yt=p&&(b.isLoading||v.isLoading||j.isLoading)||m&&y.isLoading,tt=p&&(b.isFetchingNextPage||v.isFetchingNextPage||j.isFetchingNextPage)||m&&y.isFetchingNextPage,vt=p&&(b.hasNextPage||v.hasNextPage||j.hasNextPage)||m&&y.hasNextPage;function jt(){p&&b.hasNextPage&&b.fetchNextPage(),p&&v.hasNextPage&&v.fetchNextPage(),p&&j.hasNextPage&&j.fetchNextPage(),m&&y.hasNextPage&&y.fetchNextPage()}function kt(u){if(a(u),!o)return;const w=new URLSearchParams(i);w.delete(q),w.delete(R),r(w,{replace:!0})}function wt(){const u=new URLSearchParams(i);u.set(q,at),u.delete(R),r(u,{replace:!0})}return e.jsxs(ae,{children:[e.jsx(re,{children:e.jsx(oe,{children:c("nav.activity")})}),e.jsxs(ce,{role:"tablist","aria-label":c("nav.activity"),children:[ve.map(u=>e.jsx(dt,{type:"button",role:"tab","aria-selected":!o&&n===u,"data-active":!o&&n===u,"data-testid":`activity-filter-${u}`,onClick:()=>kt(u),children:c(`activity.filter.${u}`)},u)),f?e.jsxs(de,{type:"button",role:"tab","aria-selected":o,"data-active":o,"data-testid":"activity-filter-migrate","aria-label":h?c("activity.migrate.chipAria",{count:h}):void 0,onClick:wt,children:[c("activity.migrate.chip"),h?e.jsx(le,{"data-testid":"activity-migrate-count","aria-hidden":!0,children:h}):null]}):null]}),o?e.jsx(g.Suspense,{fallback:e.jsx(ue,{"aria-busy":"true"}),children:e.jsx(ye,{})}):yt?e.jsx(nt,{children:Array.from({length:5}).map((u,w)=>e.jsx(st,{},w))}):Z.length===0?e.jsx(Le,{filter:n}):e.jsxs(e.Fragment,{children:[e.jsxs(nt,{children:[Z.map(u=>u.kind==="purchase"?e.jsx(we,{order:u.order},u.id):u.kind==="credit"?e.jsx($e,{order:u.order},u.id):u.kind==="mana-purchase"?e.jsx(Ie,{sale:u.sale},u.id):e.jsx(Ae,{sale:u.sale,payout:ee(ft,u.sale)},u.id)),tt?e.jsx(st,{}):null]}),e.jsx(Wt,{hasNextPage:vt,isFetching:tt,onLoadMore:jt})]})]})}export{Oe as Activity};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-CtOJKlpi.js","_assets/react-BYHuwl8r.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/index-DmPTEtlr.js","_assets/sentry-Dx-KuLV3.js","_assets/ethers-BDpbhgX6.js","_assets/intl-CBcMB1D2.js","_assets/index-l2QjlKjX.css","_assets/createSvgIcon-FJ-T9KCc.js","_assets/clsx-WwvpwSg0.js","_assets/styled-DPMMsxJe.js","_assets/emotion-styled.browser.esm-B1pGJ4yC.js","_assets/CircularProgress-Dy39fa7f.js","_assets/index-BbDxDzVC.js","_assets/useTheme-jFU96Y8U.js"])))=>i.map(i=>d[i]);
2
- import{_ as e}from"./index-DmPTEtlr.js";import{j as t,r as s}from"./react-BYHuwl8r.js";const _=s.lazy(async()=>{const[{EmoteControls:o},{Experimental_CssVarsProvider:i},{light:n}]=await Promise.all([e(()=>import("./index-CtOJKlpi.js").then(r=>r.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])),e(()=>import("./index-BbDxDzVC.js"),__vite__mapDeps([13,3,1,2,4,5,6,7,14,10])),e(()=>import("./index-DmPTEtlr.js").then(r=>r.d6),__vite__mapDeps([3,1,2,4,5,6,7]))]);return{default:r=>t.jsx(i,{theme:n,children:t.jsx(o,{...r})})}});function m(o){return t.jsx(s.Suspense,{fallback:null,children:t.jsx(_,{...o})})}export{m as E};