@dcl/shop 0.6.1-30951438943.commit-29cea86 → 0.6.1

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 (172) hide show
  1. package/_assets/Activity-CCVwnN-d.js +384 -0
  2. package/_assets/{AnimatedBackground-C0Bpklcd.js → AnimatedBackground-CNn-Vax_.js} +1 -1
  3. package/_assets/{Assets-CVN8kbVX.js → Assets-BPgkfGkc.js} +11 -11
  4. package/_assets/{Assets.styles-DTCjJoYe.js → Assets.styles-BAy3by3Z.js} +1 -1
  5. package/_assets/{Authorizations-Doo9Zgdg.js → Authorizations-CdqHugnL.js} +1 -1
  6. package/_assets/{Cart-W7w0zqfv.js → Cart-CzNOpZkY.js} +2 -2
  7. package/_assets/{CircularProgress-DuQoJ6hf.js → CircularProgress-DqLGsuLk.js} +1 -1
  8. package/_assets/{Collection-DiBZWSLl.js → Collection-DmrD6mAW.js} +1 -1
  9. package/_assets/{CollectionCarousel-DbpF1h5w.js → CollectionCarousel-BpMj1RRH.js} +7 -7
  10. package/_assets/{Creator-gV7PR2lz.js → Creator-DYPK74k6.js} +1 -1
  11. package/_assets/{ErrorNotice-vGKBE1Hj.js → ErrorNotice-6j32LCd-.js} +1 -1
  12. package/_assets/{ExchangeController-C7H6XSRu.js → ExchangeController-CjtWowut.js} +1 -1
  13. package/_assets/{GetCredits-BClB8S1_.js → GetCredits-9nCD-_vL.js} +52 -52
  14. package/_assets/{HelpersUtil-B2odRbT4.js → HelpersUtil-6C8PzEL7.js} +1 -1
  15. package/_assets/{ItemDetail-o9GnfAIZ.js → ItemDetail-lJyiLtT6.js} +34 -34
  16. package/_assets/{LoadMore-69ZjUVQ9.js → LoadMore-C6sUcyIf.js} +1 -1
  17. package/_assets/{ManaPricingBanner.styles-06X913rg.js → ManaPricingBanner.styles-zp0428S7.js} +1 -1
  18. package/_assets/{MenuList-CYuJjTkq.js → MenuList-BTdUxA4D.js} +1 -1
  19. package/_assets/{MyAssets-7DlPFZzH.js → MyAssets-BbmsS4SI.js} +1 -1
  20. package/_assets/{MyFavorites-CvUWGM2g.js → MyFavorites-B_Mv89Yf.js} +1 -1
  21. package/_assets/{NotFound-BfKww1lP.js → NotFound-0lsOfC5s.js} +1 -1
  22. package/_assets/{NotificationsBell-8BV2V_7m.js → NotificationsBell-CaKoTXrL.js} +1 -1
  23. package/_assets/{OutfitDetail-i6KGnd11.js → OutfitDetail-ME6t5FNU.js} +1 -1
  24. package/_assets/{OutfitPreview-BO-tY6LN.js → OutfitPreview-BCoX8M6g.js} +1 -1
  25. package/_assets/{OutfitStudio-DHMsd1iV.js → OutfitStudio-DeiWpnBW.js} +1 -1
  26. package/_assets/{StoreSettings-BBKP2P89.js → StoreSettings-BxTLlxHn.js} +1 -1
  27. package/_assets/{Success-RKKJMbUR.js → Success-DMCTT33h.js} +1 -1
  28. package/_assets/{SwapController-uaC5iBTR.js → SwapController-Ci7sPB_-.js} +1 -1
  29. package/_assets/{Tooltip-Dh4BuhSJ.js → Tooltip-BZ-qUO0l.js} +1 -1
  30. package/_assets/{TradeService-B44oeYAt.js → TradeService-Cu6fpwnh.js} +1 -1
  31. package/_assets/{W3MFrameProviderSingleton-CtKoZGPW.js → W3MFrameProviderSingleton-8GeYldkk.js} +3 -3
  32. package/_assets/{WebCryptoP256-BgVEe5M8.js → WebCryptoP256-fMzbuVHl.js} +1 -1
  33. package/_assets/{authorizations-BWL7qlKm.js → authorizations-DOwEBZw0.js} +1 -1
  34. package/_assets/{basic-_OLz7uwX.js → basic-CNB5RbBM.js} +1 -1
  35. package/_assets/{biconomy-U_kcYvmd.js → biconomy-VIh33SiE.js} +1 -1
  36. package/_assets/{builder-I4cDZvRJ.js → builder-ENYhtC9A.js} +1 -1
  37. package/_assets/{buy-PW05H439.js → buy-DME37PMo.js} +1 -1
  38. package/_assets/{buy-gasless-B2bIFHQv.js → buy-gasless-CsB_UciL.js} +1 -1
  39. package/_assets/{categories-Cewsb8Ef.js → categories-SI1YlvJt.js} +1 -1
  40. package/_assets/{ccip-BYTqCIcr.js → ccip-BWQZvTr_.js} +1 -1
  41. package/_assets/{ccip-DZw0ptqC.js → ccip-r6C5X7kR.js} +1 -1
  42. package/_assets/{clsx-ChZXKlM3.js → clsx-Dp2xNKFR.js} +1 -1
  43. package/_assets/{collectionPage.styles-Dd3m9ofi.js → collectionPage.styles-DTQE0MEN.js} +1 -1
  44. package/_assets/{controller-CGfzFXj8.js → controller-D4hrVQu3.js} +2 -2
  45. package/_assets/{core-Eb3TLPcG.js → core-CG9Ai3BM.js} +4 -4
  46. package/_assets/{createSvgIcon-DIV4UAHy.js → createSvgIcon-BBqN76DB.js} +1 -1
  47. package/_assets/{custom-D9XFQnk4.js → custom-CoESkeU0.js} +1 -1
  48. package/_assets/{data-capture-DH1mVPA3.js → data-capture-DsD2q2fn.js} +1 -1
  49. package/_assets/{email-Da1yvej9.js → email-2Crwdpgb.js} +1 -1
  50. package/_assets/{embedded-wallet-DBHQI3mh.js → embedded-wallet-B5qGTlLf.js} +1 -1
  51. package/_assets/{emotion-styled.browser.esm-BQQ0TwU4.js → emotion-styled.browser.esm-Cc0eNU1p.js} +1 -1
  52. package/_assets/{engine-C32OFyoP.js → engine-DMQKkPgK.js} +1 -1
  53. package/_assets/{errors-Dyyi7AS1.js → errors-BNZ7sBF_.js} +1 -1
  54. package/_assets/{estimate-l1-fee-BUpWNCY1.js → estimate-l1-fee-D7epFE-D.js} +1 -1
  55. package/_assets/{execute-mSR8LGc4.js → execute-DKumTrX9.js} +2 -2
  56. package/_assets/{features-Dd4HBrMX.js → features-DI5UMV_W.js} +1 -1
  57. package/_assets/{fetchTokenMetadata-BZB4GCl8.js → fetchTokenMetadata-D4n2TjLB.js} +2 -2
  58. package/_assets/{field.styles-vC92Xftn.js → field.styles-CjeX0pR0.js} +1 -1
  59. package/_assets/{get-ecosystem-wallet-info-DwWRMl-N.js → get-ecosystem-wallet-info-b6CDxjL2.js} +1 -1
  60. package/_assets/{getBalance-DSh23fMH.js → getBalance-k1LJAZwU.js} +1 -1
  61. package/_assets/{getNFT-BBp6M0pq.js → getNFT-B39rY-PL.js} +1 -1
  62. package/_assets/{getNFT-BevVadL_.js → getNFT-BMgMzvsZ.js} +1 -1
  63. package/_assets/{getThemeProps-BF7zjQVr.js → getThemeProps-CppRRpEN.js} +1 -1
  64. package/_assets/{grid.styles-Bb1W1YT9.js → grid.styles-Ckr_d1Os.js} +1 -1
  65. package/_assets/{hashTypedData-C5G1DAop.js → hashTypedData-CiesaRhT.js} +1 -1
  66. package/_assets/{hashTypedData-Wfn9v-Hf.js → hashTypedData-DUwT6kJz.js} +1 -1
  67. package/_assets/{in-app-BXEo5oJI.js → in-app-B5W9FA6J.js} +1 -1
  68. package/_assets/{in-app-wallet-calls-Bd6X0KWG.js → in-app-wallet-calls--fTMhgRz.js} +1 -1
  69. package/_assets/{index-BqMHKneq.js → index--5-WNACO.js} +1 -1
  70. package/_assets/{index-DgM4asaI.js → index-3Gl3qzVg.js} +1 -1
  71. package/_assets/{index-D3ia8xPb.js → index-6hXQkpzo.js} +1 -1
  72. package/_assets/{index-OM8C66gb.js → index-6lOpuU8D.js} +1 -1
  73. package/_assets/{index-DbyFw-p2.js → index-7Jx0RbBI.js} +1 -1
  74. package/_assets/{index-CGga9MZU.js → index-8Gs8aT7x.js} +1 -1
  75. package/_assets/{index-BNXLnSJ4.js → index-BH9Lj6j_.js} +1 -1
  76. package/_assets/{index-yp3Medz4.js → index-BPLQs7pP.js} +1 -1
  77. package/_assets/{index-DNzD8lGd.js → index-BQADEYsi.js} +1 -1
  78. package/_assets/{index-Bpxazn1C.js → index-BSMtncI0.js} +1 -1
  79. package/_assets/{index-uYRD9E52.js → index-BYQ4eOXE.js} +2 -2
  80. package/_assets/{index-ncNzPsNV.js → index-BjDpMJu4.js} +1 -1
  81. package/_assets/{index-BlneDIUK.js → index-BlTW8bE5.js} +1 -1
  82. package/_assets/{index-b5E6PDAn.js → index-BvHiSowo.js} +1 -1
  83. package/_assets/{index-DabDoxcF.js → index-BwnQwSAu.js} +2 -2
  84. package/_assets/{index-CCwIHj2Z.js → index-C2R_7cZP.js} +1 -1
  85. package/_assets/{index-B-wUrKiv.js → index-C4Mo9qnf.js} +3 -3
  86. package/_assets/{index-BK186nFF.js → index-C50bRdDg.js} +50 -50
  87. package/_assets/{index-DeMedGEt.js → index-C5xtRArG.js} +1 -1
  88. package/_assets/{index-ti6Xx8KP.js → index-CMt6SGgd.js} +1 -1
  89. package/_assets/{index-BFwmH5r2.js → index-COM-LGX-.js} +1 -1
  90. package/_assets/{index-CnYjUY-N.js → index-CROLwqLK.js} +1 -1
  91. package/_assets/{index-DoaAKgT7.js → index-CWDp9PWh.js} +1 -1
  92. package/_assets/{index-Cl0OwOQC.js → index-CWl1zAsC.js} +2 -2
  93. package/_assets/{index-vlz-Aki7.js → index-C_8wyBUp.js} +1 -1
  94. package/_assets/{index-DBY7pfsX.js → index-CdMXnYZl.js} +1 -1
  95. package/_assets/{index-7e_Syhad.js → index-CiVLOnq4.js} +1 -1
  96. package/_assets/{index-BehGKAc6.js → index-CjmdU7lV.js} +3 -3
  97. package/_assets/{index-CABCJq7C.js → index-CnU32wDE.js} +1 -1
  98. package/_assets/{index-B8FkQHkj.js → index-CqYYwjL0.js} +1 -1
  99. package/_assets/{index-6Oq8x_-m.js → index-Ct4YR2LP.js} +1 -1
  100. package/_assets/{index-Dsgz061o.js → index-Cz0mItuU.js} +1 -1
  101. package/_assets/{index-BQlATUFi.js → index-D0JaJVwf.js} +1 -1
  102. package/_assets/{index-2BF-jN6f.js → index-D0VlnNE3.js} +1 -1
  103. package/_assets/{index-CmOMlUK3.js → index-D1Kwe229.js} +1 -1
  104. package/_assets/{index-D6jXV4v6.js → index-D3b-6hLL.js} +3 -3
  105. package/_assets/{index-BCpKNpfr.js → index-DCUHwzVB.js} +1 -1
  106. package/_assets/{index-D58_3pMX.js → index-DIGH_-jR.js} +1 -1
  107. package/_assets/{index-QshQ-X06.js → index-DIYC-eqY.js} +1 -1
  108. package/_assets/{index-D_Rc0VlP.js → index-DIpNccsB.js} +1 -1
  109. package/_assets/{index-DHBBVF0A.js → index-DJigbyYH.js} +1 -1
  110. package/_assets/{index-DCDkfxBQ.js → index-DLJMJNYR.js} +1 -1
  111. package/_assets/{index-B1Fh_Ntj.js → index-DN_XFLDI.js} +4 -4
  112. package/_assets/{index-mDuPP0v8.js → index-DUdz_zrJ.js} +1 -1
  113. package/_assets/{index-B1eEwkzz.js → index-DmlHhfEt.js} +1 -1
  114. package/_assets/{index-BF7hghuG.js → index-DyyMlzME.js} +1 -1
  115. package/_assets/{index-DtNkXFsH.js → index-MSDyZgBz.js} +2 -2
  116. package/_assets/{index-DQllllFW.js → index-baUyxxA5.js} +1 -1
  117. package/_assets/{index-fkuvr7Fy.js → index-brzaaZ1P.js} +1 -1
  118. package/_assets/{index-vrvK7bcx.js → index-hzUEG0Wn.js} +1 -1
  119. package/_assets/{index-CpXK1eyp.js → index-pzI9SPYg.js} +1 -1
  120. package/_assets/{index-BMDKd-Ff.js → index-r_ie-fYk.js} +1 -1
  121. package/_assets/{index.es-BG9tAoxq.js → index.es-BfycRISM.js} +1 -1
  122. package/_assets/{index.es-Bq-mnMqp.js → index.es-CEspgBOo.js} +4 -4
  123. package/_assets/{index.es-D5Y2l8N-.js → index.es-Dz4gJjtG.js} +1 -1
  124. package/_assets/{localBatchGatewayRequest-DQzEn08n.js → localBatchGatewayRequest-C2ejDWSe.js} +1 -1
  125. package/_assets/{networks-7mAev_So.js → networks-C8W7qTmi.js} +1 -1
  126. package/_assets/{onramp-C5rbJZZQ.js → onramp-gMYCcz-L.js} +1 -1
  127. package/_assets/{openzeppelin-cUgS_fFv.js → openzeppelin-DoXqKfoL.js} +1 -1
  128. package/_assets/{parseNft-BtgCWBfG.js → parseNft-CG6mXwGw.js} +2 -2
  129. package/_assets/{parseSignature-BL815h22.js → parseSignature-BtFyUMyh.js} +1 -1
  130. package/_assets/{parseSignature-0U8LTkYq.js → parseSignature-YB0y-EIH.js} +3 -3
  131. package/_assets/{passkeys-CenbJOC4.js → passkeys-DMD6dHpE.js} +1 -1
  132. package/_assets/{pay-with-exchange-fg2iyPQf.js → pay-with-exchange-DmOk5KUk.js} +1 -1
  133. package/_assets/{qr-overlay-Db9bn8si.js → qr-overlay-BmfI4Van.js} +1 -1
  134. package/_assets/{receive-Cy92xKIA.js → receive-C8CxHyfZ.js} +1 -1
  135. package/_assets/{resolveImplementation-CphK2kw-.js → resolveImplementation-D10q4uG8.js} +1 -1
  136. package/_assets/{rpc-tPaaI0wQ.js → rpc-C6XV-dPj.js} +1 -1
  137. package/_assets/{secp256k1-BuRL31Pv.js → secp256k1-BmbnB2T6.js} +1 -1
  138. package/_assets/{secp256k1-rc9cttcQ.js → secp256k1-CplZyQx1.js} +1 -1
  139. package/_assets/{secp256k1-BefPXR71.js → secp256k1-i1ynB1kh.js} +1 -1
  140. package/_assets/{send-batch-transaction-IhphBGXV.js → send-batch-transaction-DPGUnjFL.js} +1 -1
  141. package/_assets/{send-eip712-transaction-D1F2l2MF.js → send-eip712-transaction-DDBiSwZa.js} +2 -2
  142. package/_assets/{send-gasless-transaction-B32TPIoL.js → send-gasless-transaction-TUww1FFr.js} +2 -2
  143. package/_assets/{send-B85QTpWb.js → send-r-sbW-NR.js} +1 -1
  144. package/_assets/{send-transaction-DAsAIcLp.js → send-transaction-INP2LgJd.js} +2 -2
  145. package/_assets/{sendMetaTransaction-X4QLi3Hi.js → sendMetaTransaction-CtlcvZ2u.js} +1 -1
  146. package/_assets/{sendRawTransaction-Bp5LMxhF.js → sendRawTransaction-BiF1pCL3.js} +3 -3
  147. package/_assets/{serializeTransaction-CcoTA2oD.js → serializeTransaction-_CDXrMP2.js} +1 -1
  148. package/_assets/{session-proposal-BFRFzBM9.js → session-proposal-Cyo4-zWW.js} +1 -1
  149. package/_assets/{session-request-Kq_RHzZu.js → session-request-DhBEeqtM.js} +2 -2
  150. package/_assets/{signing-Dqg6cmff.js → signing-eZY4IKkr.js} +3 -3
  151. package/_assets/{socials-D13NM4Eg.js → socials-ez11BKnF.js} +1 -1
  152. package/_assets/{swaps-CQuH4Q4P.js → swaps-D50dXpS9.js} +1 -1
  153. package/_assets/{thirdweb-CIKZzA4I.js → thirdweb-DtMwg5nw.js} +3 -3
  154. package/_assets/{to-serializable-transaction-Bs3gRQ4f.js → to-serializable-transaction-Bo2k0bHN.js} +2 -2
  155. package/_assets/{trade-encoding-C7Wym_F1.js → trade-encoding-DBrxq_08.js} +1 -1
  156. package/_assets/{transactionReceipt-Bp1hf_iD.js → transactionReceipt-D84_cL1Y.js} +1 -1
  157. package/_assets/{transactions-Bli31a16.js → transactions-BxDrgH0T.js} +1 -1
  158. package/_assets/{useCreditPacks-CHzNSIvf.js → useCreditPacks-DJGSwrlc.js} +1 -1
  159. package/_assets/{useImportable-kOA7rsjp.js → useImportable-8-eoe6U0.js} +1 -1
  160. package/_assets/{useInfiniteGrid-CdPr9eL9.js → useInfiniteGrid-BioQWUj3.js} +1 -1
  161. package/_assets/{useTheme-CGp2hobC.js → useTheme-CuHYv3yr.js} +1 -1
  162. package/_assets/{verifyHash-tFRgslhI.js → verifyHash-Dp410C0R.js} +1 -1
  163. package/_assets/{w3m-modal-Cd7LAwQP.js → w3m-modal-ChBvc6av.js} +1 -1
  164. package/_assets/{w3m-modal-DIDR69iz.js → w3m-modal-q1294Ir0.js} +1 -1
  165. package/_assets/{wait-for-tx-receipt-BlFYuYR0.js → wait-for-tx-receipt-GGiAUH7I.js} +1 -1
  166. package/_assets/{wallets-0QMnCoJB.js → wallets-B8DTTYN0.js} +5 -5
  167. package/_assets/{web-connector-C-yPSxwg.js → web-connector-CwvhuMom.js} +3 -3
  168. package/_assets/{writeContract-BWpBg5cs.js → writeContract-CsfeVlnc.js} +1 -1
  169. package/_assets/{zoraTestnet-YDHc7FSH.js → zoraTestnet-CaYytGcL.js} +1 -1
  170. package/index.html +11 -11
  171. package/package.json +2 -2
  172. package/_assets/Activity-Bcut5fRy.js +0 -357
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/0.6.1-30951438943.commit-29cea86/favicon.ico" sizes="16x16 32x32 48x48" />
20
- <link rel="apple-touch-icon" sizes="180x180" href="https://cdn.decentraland.org/@dcl/shop/0.6.1-30951438943.commit-29cea86/dcl-mark.png" />
19
+ <link rel="icon" type="image/x-icon" href="https://cdn.decentraland.org/@dcl/shop/0.6.1/favicon.ico" sizes="16x16 32x32 48x48" />
20
+ <link rel="apple-touch-icon" sizes="180x180" href="https://cdn.decentraland.org/@dcl/shop/0.6.1/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/0.6.1-30951438943.commit-29cea86/site.webmanifest" />
22
+ <link rel="manifest" href="https://cdn.decentraland.org/@dcl/shop/0.6.1/site.webmanifest" />
23
23
 
24
24
  <!-- Open Graph -->
25
25
  <meta property="og:type" content="website" />
@@ -48,7 +48,7 @@
48
48
  <meta name="twitter:image:alt" content="Decentraland Shop — wearables and emotes for your avatar" />
49
49
 
50
50
  <!-- Sitemap -->
51
- <link rel="sitemap" type="application/xml" title="Sitemap" href="https://cdn.decentraland.org/@dcl/shop/0.6.1-30951438943.commit-29cea86/sitemap.xml" />
51
+ <link rel="sitemap" type="application/xml" title="Sitemap" href="https://cdn.decentraland.org/@dcl/shop/0.6.1/sitemap.xml" />
52
52
 
53
53
  <!-- Warm the 3D preview / fonts -->
54
54
  <link rel="preconnect" href="https://fonts.googleapis.com" />
@@ -60,13 +60,13 @@
60
60
  <link rel="preconnect" href="https://wearable-preview.decentraland.org" />
61
61
  <link rel="preconnect" href="https://peer.decentraland.zone" crossorigin />
62
62
  <link rel="preconnect" href="https://peer.decentraland.org" crossorigin />
63
- <script type="module" crossorigin src="https://cdn.decentraland.org/@dcl/shop/0.6.1-30951438943.commit-29cea86/_assets/index-BK186nFF.js"></script>
64
- <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.6.1-30951438943.commit-29cea86/_assets/react-DehiWSvs.js">
65
- <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.6.1-30951438943.commit-29cea86/_assets/sentry-973sfbO9.js">
66
- <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.6.1-30951438943.commit-29cea86/_assets/dcl-schemas-Dr9BTjb7.js">
67
- <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.6.1-30951438943.commit-29cea86/_assets/ethers-CtNGBird.js">
68
- <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.6.1-30951438943.commit-29cea86/_assets/intl-CBcMB1D2.js">
69
- <link rel="stylesheet" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.6.1-30951438943.commit-29cea86/_assets/index-D-NhBWWr.css">
63
+ <script type="module" crossorigin src="https://cdn.decentraland.org/@dcl/shop/0.6.1/_assets/index-C50bRdDg.js"></script>
64
+ <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.6.1/_assets/react-DehiWSvs.js">
65
+ <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.6.1/_assets/sentry-973sfbO9.js">
66
+ <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.6.1/_assets/dcl-schemas-Dr9BTjb7.js">
67
+ <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.6.1/_assets/ethers-CtNGBird.js">
68
+ <link rel="modulepreload" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.6.1/_assets/intl-CBcMB1D2.js">
69
+ <link rel="stylesheet" crossorigin href="https://cdn.decentraland.org/@dcl/shop/0.6.1/_assets/index-D-NhBWWr.css">
70
70
  </head>
71
71
  <body>
72
72
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/shop",
3
- "version": "0.6.1-30951438943.commit-29cea86",
3
+ "version": "0.6.1",
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": "29cea867a0bd6d3a518aab88da63ec1d670571db"
11
+ "commit": "ab739fbb90d47f82066003396deba8b9ab9f9c34"
12
12
  }
@@ -1,357 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-B1Fh_Ntj.js","_assets/react-DehiWSvs.js","_assets/index-BK186nFF.js","_assets/sentry-973sfbO9.js","_assets/dcl-schemas-Dr9BTjb7.js","_assets/ethers-CtNGBird.js","_assets/intl-CBcMB1D2.js","_assets/index-D-NhBWWr.css","_assets/useImportable-kOA7rsjp.js","_assets/buy-PW05H439.js","_assets/authorizations-BWL7qlKm.js","_assets/sendMetaTransaction-X4QLi3Hi.js","_assets/trade-encoding-C7Wym_F1.js","_assets/ManaPricingBanner.styles-06X913rg.js","_assets/field.styles-vC92Xftn.js"])))=>i.map(i=>d[i]);
2
- import{m as bt,bv as yt,s as h,t as s,q as vt,B as wt,l as jt,v as kt,d,o as $,b3 as It,I as j,bw as Z,bx as J,by as At,_ as $t,x as P,bz as Pt,b7 as z,av as Lt,bA as Tt,bB as H}from"./index-BK186nFF.js";import{r as y,e as Nt,j as e,L as et,a as Et}from"./react-DehiWSvs.js";import{u as Ct}from"./useImportable-kOA7rsjp.js";import{L as St}from"./LoadMore-69ZjUVQ9.js";import{u as I}from"./useInfiniteGrid-CdPr9eL9.js";import{m as it}from"./mana-matic-C4e1sNO3.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./buy-PW05H439.js";import"./authorizations-BWL7qlKm.js";import"./sendMetaTransaction-X4QLi3Hi.js";import"./trade-encoding-C7Wym_F1.js";const Ft=15e3;function Mt(t,a){return t.txHash&&a.txHash?t.txHash===a.txHash:t.txHash||a.txHash?!1:t.status===a.status&&Math.abs(t.createdAt-a.createdAt)<=Ft}function Dt(t){const a=[...t].sort((i,c)=>c.createdAt-i.createdAt),n=[];for(const i of a){const c=n[n.length-1];c&&Mt(c[c.length-1],i)?c.push(i):n.push([i])}return n.map(i=>{var c;return{id:((c=i.find(r=>r.txHash))==null?void 0:c.txHash)??i[i.length-1].id,createdAt:Math.max(...i.map(r=>r.createdAt)),status:i.some(r=>r.status==="PENDING")?"PENDING":"SETTLED",totalCredits:i.reduce((r,u)=>r+u.credits,0),lines:i}})}function zt(t){return t.tradeId?`trade:${t.tradeId}`:t.contractAddress&&t.itemId?`item:${t.contractAddress.toLowerCase()}:${t.itemId}`:null}function Ht(t){const a=[],n=new Map;for(const i of t){const c=zt(i);if(!c){a.push({key:i.id,tradeId:null,contractAddress:i.contractAddress??null,itemId:i.itemId??null,quantity:1,credits:i.credits});continue}const r=n.get(c);if(r){r.quantity+=1,r.credits+=i.credits;continue}const u={key:c,tradeId:i.tradeId,contractAddress:i.contractAddress??null,itemId:i.itemId??null,quantity:1,credits:i.credits};n.set(c,u),a.push(u)}return a}function qt(t,a){return{id:t.id,contractAddress:t.contractAddress,tokenId:t.tokenId,itemId:t.itemId,counterparty:t.buyer,credits:a?bt(t.manaWei,a):null,manaWei:t.manaWei,createdAt:t.createdAt,txHash:t.txHash}}function Ot(t){const n=Dt(t.purchases.filter(o=>o.status!=="EXPIRED")).map(o=>({kind:"purchase",id:`purchase:${o.id}`,createdAt:o.createdAt,order:o})),i=t.sales.map(o=>{const p=qt(o,t.rate);return{kind:"sale",id:`sale:${p.id}`,createdAt:p.createdAt,sale:p}}),c=(t.creditOrders??[]).filter(o=>o.status!=="failed"&&o.status!=="abandoned").map(o=>({kind:"credit",id:`credit:${o.id}`,createdAt:o.createdAt,order:o})),r=new Set(t.purchases.filter(o=>o.txHash).map(o=>o.txHash.toLowerCase())),u=(t.manaPurchases??[]).filter(o=>!r.has(o.txHash.toLowerCase())).map(o=>({kind:"mana-purchase",id:`mana-purchase:${o.id}`,createdAt:o.createdAt,sale:o}));return[...n,...i,...c,...u].sort((o,p)=>p.createdAt-o.createdAt||(o.id<p.id?-1:1))}function Wt(t,a){return a==="all"?t:a==="sales"?t.filter(n=>n.kind==="sale"):t.filter(n=>n.kind==="purchase"||n.kind==="credit"||n.kind==="mana-purchase")}const at=t=>t.trim().toLowerCase();function Rt(t){const a=new Map;for(const n of t??[]){const i=at(n.txHash??"");if(!i)continue;const c=a.get(i);c?c.push(n):a.set(i,[n])}return a}function _t(t,a,n=Date.now()){const i=a.txHash?t.get(at(a.txHash)):void 0;if(!i||i.length===0)return{kind:"direct"};const c=i.length===1?Bt(i[0].netCents):null,r=i.filter(o=>!o.available&&o.availableAt>n);if(r.length===0)return{kind:"credited",credits:c};const u=r.reduce((o,p)=>Math.max(o,p.availableAt),0);return{kind:"pending",credits:c,availableAt:u}}function Bt(t){return yt(t)}const Gt="https://cdn.decentraland.org/@dcl/shop/0.6.1-30951438943.commit-29cea86/_assets/credits-product-vs4Q6u6l.svg",q=vt`
3
- 0% { background-position: 200% 0; }
4
- 100% { background-position: -200% 0; }
5
- `,Ut=h.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
- max-width: 760px;
12
- margin-inline: auto;
13
-
14
- /* The migration tool's row (thumbnail + name + a 144px price field) does not survive the feed's
15
- column: squeezed to 760px the price field lands on its own line on a desktop. Widening the whole
16
- column keeps heading, chips and panel as one block, which is the point of the constraint above.
17
- 1003px is the tool's own width in the design, which puts its rows at the 979px they are drawn at. */
18
- &[data-view='migrate'] {
19
- max-width: 1003px;
20
- }
21
- `,Kt=h.div`
22
- display: flex;
23
- align-items: baseline;
24
- gap: 12px;
25
- margin-bottom: 20px;
26
- `,Vt=h.h1`
27
- font-family: ${s.font.sans};
28
- margin: 0;
29
- `;h.span`
30
- color: ${s.colors.muted};
31
- font-size: 14px;
32
- `;const Qt=h.div`
33
- display: flex;
34
- gap: 8px;
35
- margin-bottom: 20px;
36
- flex-wrap: wrap;
37
- `,st=h.button`
38
- appearance: none;
39
- /* Figma draws the row as a 0.5px Gray 4 hairline, a shade darker and half the weight of the card
40
- border this used, and sets the label a point smaller with the tracking the shop's other 13px
41
- pills carry. */
42
- border: 0.5px solid ${s.colors.gray4};
43
- background: ${s.colors.white};
44
- color: ${s.colors.text};
45
- font-family: ${s.font.sans};
46
- font-size: 13px;
47
- font-weight: 600;
48
- line-height: 24px;
49
- letter-spacing: 0.46px;
50
- /* The design gives the pill a flat 40px and no vertical padding, centring the 24px line box inside
51
- it — so the height is the 40 it draws rather than the sum of a line box, padding and a border. */
52
- display: inline-flex;
53
- align-items: center;
54
- justify-content: center;
55
- padding: 0 16px;
56
- min-height: 40px;
57
- border-radius: ${s.radius.pill};
58
- cursor: pointer;
59
- transition:
60
- background 0.15s,
61
- border-color 0.15s,
62
- color 0.15s;
63
-
64
- &:hover {
65
- background: ${s.colors.media};
66
- }
67
- &:focus-visible {
68
- outline: 2px solid ${s.colors.accent};
69
- outline-offset: 2px;
70
- }
71
- &[data-active='true'] {
72
- background: ${s.colors.accent};
73
- border-color: ${s.colors.accent};
74
- color: ${s.colors.white};
75
- }
76
- `,Xt=h(st)`
77
- position: relative;
78
-
79
- /* Violet-on-violet once the chip fills, so the badge inverts. Reached by test id rather than by
80
- interpolating the styled def, which throws under vitest (see CLAUDE.md). */
81
- &[data-active='true'] [data-testid='activity-migrate-count'] {
82
- background: ${s.colors.white};
83
- color: ${s.colors.accent};
84
- /* See MigrateBadge: a white ring would vanish into the page here, since the disc itself is white. */
85
- box-shadow: 0 0 0 2px ${s.colors.accent};
86
- }
87
- `,Zt=h.span`
88
- position: absolute;
89
- /* Offsets run from the chip's PADDING box, so they carry the 1px its hairline occupies in layout on
90
- top of the 5.5 / 2.5 the design measures from the pill's outer edge. */
91
- top: -6.5px;
92
- right: -3.5px;
93
- display: grid;
94
- place-items: center;
95
- /* The chip's tracking would otherwise widen the disc off its 20px. */
96
- letter-spacing: normal;
97
- /* Figma only ever draws a single digit, as a fixed 20px disc. The padding is what lets a two- or
98
- three-figure count grow leftwards out of the corner instead of spilling out of the circle. */
99
- min-width: 20px;
100
- height: 20px;
101
- padding: 0 6px;
102
- border-radius: ${s.radius.pill};
103
- background: ${s.colors.brandViolet};
104
- /**
105
- * A ring, whose colour has to FOLLOW THE DISC rather than the page.
106
- *
107
- * The disc hangs off the corner: part of it sits on the chip, part on the page. Unselected it is violet
108
- * on white, so it already reads and the white ring only separates it from the chip's grey hairline.
109
- * Selected, the chip inverts it to white on violet — and a white disc against the white page has no edge
110
- * at all along the half that overhangs, which is the state where the circle looked unfinished. That case
111
- * needs the ring in the chip's accent instead (below), so the disc keeps a hard edge on both surfaces.
112
- *
113
- * box-shadow rather than a border: a border would grow the 20px disc the design fixes, while a spread
114
- * shadow draws outside the box.
115
- */
116
- box-shadow: 0 0 0 2px ${s.colors.white};
117
- font-weight: 600;
118
- font-size: 12px;
119
- line-height: 1.6;
120
- color: ${s.colors.white};
121
- `,Jt=h.div`
122
- min-height: 60vh;
123
- `,Y=h.div`
124
- display: flex;
125
- flex-direction: column;
126
- gap: 16px;
127
- `,L=h.div`
128
- background: ${s.colors.white};
129
- border: 1px solid ${s.colors.line};
130
- border-radius: 16px;
131
- overflow: hidden;
132
- `,T=h.div`
133
- display: flex;
134
- align-items: center;
135
- justify-content: space-between;
136
- gap: 12px;
137
- padding: 14px 18px;
138
- background: ${s.colors.softWhite};
139
- border-bottom: 1px solid ${s.colors.line};
140
-
141
- ${s.media.maxWidth("mobile")} {
142
- flex-wrap: wrap;
143
- }
144
- `,N=h.div`
145
- display: flex;
146
- flex-direction: column;
147
- gap: 2px;
148
- min-width: 0;
149
- `,E=h.span`
150
- font-weight: 700;
151
- color: ${s.colors.text};
152
- `,C=h.span`
153
- font-size: 13px;
154
- color: ${s.colors.muted};
155
- `,S=h.div`
156
- display: flex;
157
- align-items: center;
158
- gap: 14px;
159
- /* Pin to the right regardless of how many elements sit on the left (the credit-purchase card adds a
160
- leading thumbnail, giving the head three children instead of two). */
161
- margin-left: auto;
162
- `,Yt=h.div`
163
- flex: 0 0 auto;
164
- width: 52px;
165
- height: 52px;
166
- border-radius: 10px;
167
- background: ${s.colors.media};
168
- display: flex;
169
- align-items: center;
170
- justify-content: center;
171
-
172
- img {
173
- width: 30px;
174
- height: 30px;
175
- display: block;
176
- }
177
- `,F=h.span`
178
- font-size: 11px;
179
- font-weight: 700;
180
- text-transform: uppercase;
181
- letter-spacing: 0.03em;
182
- padding: 4px 10px;
183
- border-radius: ${s.radius.pill};
184
- white-space: nowrap;
185
-
186
- &[data-status='SETTLED'] {
187
- background: rgba(30, 166, 114, 0.14);
188
- color: ${s.colors.okStrong};
189
- }
190
- &[data-status='PENDING'] {
191
- background: rgba(245, 166, 35, 0.16);
192
- color: #b5790a;
193
- }
194
- &[data-status='SOLD'] {
195
- background: rgba(103, 58, 183, 0.14);
196
- color: ${s.colors.accent};
197
- }
198
- &[data-status='FAILED'] {
199
- background: rgba(214, 61, 61, 0.14);
200
- color: #b02a2a;
201
- }
202
- `,v=h.div`
203
- display: flex;
204
- align-items: center;
205
- gap: 5px;
206
- font-weight: 800;
207
- color: ${s.colors.text};
208
- white-space: nowrap;
209
-
210
- .ccy-mark {
211
- width: 16px;
212
- height: 16px;
213
- }
214
-
215
- // Money received (a sale) reads as income in the shop's success green.
216
- &[data-kind='income'] {
217
- color: ${s.colors.okStrong};
218
- }
219
- `,nt=h.img`
220
- width: 16px;
221
- height: 16px;
222
- vertical-align: -0.15em;
223
- `,te=h.span`
224
- display: inline-flex;
225
- align-items: center;
226
- cursor: pointer;
227
- `,ee=h.span`
228
- position: fixed;
229
- transform: translateX(-50%);
230
- padding: 6px 8px;
231
- border-radius: 6px;
232
- background: #16141a;
233
- color: ${s.colors.white};
234
- font-size: 12px;
235
- font-weight: 600;
236
- line-height: 1;
237
- white-space: nowrap;
238
- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
239
- pointer-events: none;
240
- z-index: 9999;
241
- `,O=h.div`
242
- display: flex;
243
- flex-direction: column;
244
- `,M=h.div`
245
- display: grid;
246
- grid-template-columns: 52px 1fr auto;
247
- align-items: center;
248
- gap: 14px;
249
- padding: 12px 18px;
250
- text-decoration: none;
251
- color: inherit;
252
-
253
- & + & {
254
- border-top: 1px solid ${s.colors.line};
255
- }
256
-
257
- &[data-link='true'] {
258
- transition: background 0.15s;
259
- }
260
- &[data-link='true']:hover {
261
- background: ${s.colors.media};
262
- }
263
- &[data-link='true']:focus-visible {
264
- outline: 2px solid ${s.colors.accent};
265
- outline-offset: -2px;
266
- }
267
- `,W=h.div`
268
- width: 52px;
269
- height: 52px;
270
- border-radius: 10px;
271
- background: ${s.colors.media};
272
- overflow: hidden;
273
- display: flex;
274
- align-items: center;
275
- justify-content: center;
276
- color: ${s.colors.muted2};
277
-
278
- img {
279
- width: 100%;
280
- height: 100%;
281
- object-fit: contain;
282
- }
283
- `,R=h.div`
284
- width: 52px;
285
- height: 52px;
286
- border-radius: 10px;
287
- background: linear-gradient(100deg, ${s.colors.media} 30%, ${s.colors.panel} 50%, ${s.colors.media} 70%);
288
- background-size: 200% 100%;
289
- animation: ${q} 1.3s infinite linear;
290
-
291
- @media (prefers-reduced-motion: reduce) {
292
- animation: none;
293
- }
294
- `,_=h.div`
295
- min-width: 0;
296
- display: flex;
297
- flex-direction: column;
298
- gap: 2px;
299
- `,B=h.span`
300
- font-weight: 700;
301
- white-space: nowrap;
302
- overflow: hidden;
303
- text-overflow: ellipsis;
304
- `,G=h.span`
305
- display: inline-block;
306
- width: 140px;
307
- max-width: 60%;
308
- height: 12px;
309
- border-radius: 6px;
310
- background: linear-gradient(100deg, ${s.colors.media} 30%, ${s.colors.panel} 50%, ${s.colors.media} 70%);
311
- background-size: 200% 100%;
312
- animation: ${q} 1.3s infinite linear;
313
-
314
- @media (prefers-reduced-motion: reduce) {
315
- animation: none;
316
- }
317
- `,U=h.span`
318
- font-size: 13px;
319
- color: ${s.colors.muted};
320
- `,ie=h.div`
321
- display: flex;
322
- align-items: center;
323
- gap: 4px;
324
- font-weight: 700;
325
- color: ${s.colors.text};
326
- white-space: nowrap;
327
-
328
- .ccy-mark {
329
- width: 14px;
330
- height: 14px;
331
- }
332
- `,tt=h.div`
333
- height: 132px;
334
- border-radius: 16px;
335
- border: 1px solid transparent;
336
- background: linear-gradient(100deg, ${s.colors.media} 30%, ${s.colors.panel} 50%, ${s.colors.media} 70%);
337
- background-size: 200% 100%;
338
- animation: ${q} 1.3s infinite linear;
339
-
340
- @media (prefers-reduced-motion: reduce) {
341
- animation: none;
342
- }
343
- `,rt=h.div`
344
- display: flex;
345
- flex-direction: column;
346
- align-items: center;
347
- gap: 8px;
348
- text-align: center;
349
- padding: 90px 20px;
350
- min-height: 50vh;
351
- `,ot=h.p`
352
- font-size: 22px;
353
- font-weight: 700;
354
- margin: 6px 0 0;
355
- `,ae=h(wt)`
356
- margin-top: 12px;
357
- `,K=M.withComponent(et),se=y.lazy(()=>$t(()=>import("./index-B1Fh_Ntj.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(t=>({default:t.ImportListings}))),A=24,ne=["all","purchases","sales"],D="migrate";function w(t){try{return new Date(t).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}catch{return""}}function ct(t){return t.length>10?`${t.slice(0,6)}…${t.slice(-4)}`:t}function dt(t){const a=Number(t)/1e18;return Number.isFinite(a)?a.toLocaleString("en",{maximumFractionDigits:2}):"0"}function lt({children:t}){const a=y.useRef(null),[n,i]=y.useState(null),c=()=>{var u;const r=(u=a.current)==null?void 0:u.getBoundingClientRect();r&&i({top:r.bottom+8,left:r.left+r.width/2})};return e.jsxs(te,{ref:a,tabIndex:0,onMouseEnter:c,onMouseLeave:()=>i(null),onFocus:c,onBlur:()=>i(null),children:[t,n?Et.createPortal(e.jsx(ee,{style:{top:n.top,left:n.left},role:"tooltip",children:d("activity.polygonMana")}),document.body):null]})}function re({item:t}){const a=!!t.contractAddress&&!!t.itemId,n=!!t.tradeId||a,{data:i,isLoading:c}=$({queryKey:["order-line-display",t.tradeId,t.contractAddress,t.itemId],queryFn:()=>t.tradeId?Tt(t.tradeId):H(t.contractAddress,{itemId:t.itemId}),enabled:n,staleTime:5*6e4}),r=n&&c,u=(i==null?void 0:i.name)??d("activity.itemFallback"),o=(i==null?void 0:i.thumbnail)??"",p=z({contractAddress:i==null?void 0:i.contractAddress,tokenId:i==null?void 0:i.tokenId,itemId:i==null?void 0:i.itemId})??void 0,x=e.jsxs(e.Fragment,{children:[r?e.jsx(R,{}):e.jsx(W,{children:o?e.jsx("img",{src:o,alt:u}):e.jsx(j,{name:"cart",size:20})}),e.jsxs(_,{children:[r?e.jsx(G,{}):e.jsx(B,{title:u,children:u}),t.quantity>1?e.jsx(U,{children:d("activity.quantity",{count:t.quantity})}):null]}),e.jsxs(ie,{children:[e.jsx(P,{className:"ccy-mark"})," ",t.credits]})]});return p?e.jsx(K,{to:p,"data-link":"true",children:x}):e.jsx(M,{children:x})}function oe({order:t}){const a=Ht(t.lines),n=a.reduce((i,c)=>i+c.quantity,0);return e.jsxs(L,{"data-testid":"purchase-order",children:[e.jsxs(T,{children:[e.jsxs(N,{children:[e.jsx(E,{children:w(t.createdAt)}),e.jsxs(C,{children:[d("activity.purchaseLabel")," · ",d("activity.itemCount",{count:n})]})]}),e.jsxs(S,{children:[e.jsx(F,{"data-status":t.status,children:t.status==="PENDING"?d("activity.processing"):d("activity.completed")}),e.jsxs(v,{children:[e.jsx(P,{className:"ccy-mark"})," ",t.totalCredits]})]})]}),e.jsx(O,{children:a.map(i=>e.jsx(re,{item:i},i.key))})]})}function ce({sale:t}){const{data:a,isLoading:n}=$({queryKey:["asset-display",t.contractAddress,t.tokenId,t.itemId],queryFn:()=>H(t.contractAddress,{tokenId:t.tokenId,itemId:t.itemId}),enabled:!!t.contractAddress,staleTime:3e5}),i=(a==null?void 0:a.name)??d("activity.itemFallback"),c=(a==null?void 0:a.thumbnail)??"",r=z({contractAddress:t.contractAddress,tokenId:t.tokenId,itemId:t.itemId})??void 0,u=e.jsxs(e.Fragment,{children:[n?e.jsx(R,{}):e.jsx(W,{children:c?e.jsx("img",{src:c,alt:i}):e.jsx(j,{name:"offer",size:20})}),e.jsxs(_,{children:[n?e.jsx(G,{}):e.jsx(B,{title:i,children:i}),e.jsx(U,{children:d("activity.boughtFrom",{account:ct(t.seller)})})]})]});return e.jsxs(L,{"data-testid":"activity-mana-purchase",children:[e.jsxs(T,{children:[e.jsxs(N,{children:[e.jsx(E,{children:w(t.createdAt)}),e.jsx(C,{children:d("activity.paidWithMana")})]}),e.jsxs(S,{children:[e.jsx(F,{"data-status":"SETTLED",children:d("activity.completed")}),e.jsxs(v,{children:[dt(t.manaWei)," ",e.jsx(lt,{children:e.jsx(nt,{src:it,alt:"MANA"})})]})]})]}),e.jsx(O,{children:r?e.jsx(K,{to:r,"data-link":"true",children:u}):e.jsx(M,{children:u})})]})}function de({sale:t,payout:a}){const{data:n,isLoading:i}=$({queryKey:["asset-display",t.contractAddress,t.tokenId,t.itemId],queryFn:()=>H(t.contractAddress,{tokenId:t.tokenId,itemId:t.itemId}),enabled:!!t.contractAddress,staleTime:3e5}),c=(n==null?void 0:n.name)??d("activity.itemFallback"),r=(n==null?void 0:n.thumbnail)??"",u=z({contractAddress:t.contractAddress,tokenId:t.tokenId,itemId:t.itemId})??void 0,o=e.jsxs(e.Fragment,{children:[i?e.jsx(R,{}):e.jsx(W,{children:r?e.jsx("img",{src:r,alt:c}):e.jsx(j,{name:"offer",size:20})}),e.jsxs(_,{children:[i?e.jsx(G,{}):e.jsx(B,{title:c,children:c}),e.jsxs(U,{children:[d("activity.soldTo",{account:ct(t.counterparty)}),a.kind==="pending"?` · ${d("activity.payoutPendingOn",{date:w(a.availableAt)})}`:""]})]})]});return e.jsxs(L,{"data-testid":"activity-sale",children:[e.jsxs(T,{children:[e.jsxs(N,{children:[e.jsx(E,{children:w(t.createdAt)}),e.jsx(C,{children:d("activity.saleLabel")})]}),e.jsxs(S,{children:[e.jsx(F,{"data-status":a.kind==="pending"?"PENDING":"SOLD",children:a.kind==="pending"?d("activity.payoutPending"):d("activity.sold")}),a.kind==="direct"?e.jsxs(v,{"data-kind":"income",children:["+",dt(t.manaWei)," ",e.jsx(lt,{children:e.jsx(nt,{src:it,alt:"MANA"})})]}):a.credits!==null?e.jsxs(v,{"data-kind":"income",children:[e.jsx(P,{className:"ccy-mark"})," +",Lt(a.credits)]}):e.jsx(v,{"data-kind":"income",children:d("activity.payoutCredited")})]})]}),e.jsx(O,{children:u?e.jsx(K,{to:u,"data-link":"true",children:o}):e.jsx(M,{children:o})})]})}function le({order:t}){const a=`$${(t.usdCents/100).toFixed(2)}`,n=Pt(t.status),i=n==="SETTLED"?d("activity.completed"):n==="FAILED"?d("activity.failed"):d("activity.processing");return e.jsx(L,{"data-testid":"credit-order",children:e.jsxs(T,{children:[e.jsx(Yt,{children:e.jsx("img",{src:Gt,alt:"","aria-hidden":!0})}),e.jsxs(N,{children:[e.jsx(E,{children:w(t.createdAt)}),e.jsxs(C,{children:[d("activity.creditPurchaseLabel")," · ",d("activity.creditPaid",{usd:a})]})]}),e.jsxs(S,{children:[e.jsx(F,{"data-status":n,children:i}),e.jsxs(v,{"data-kind":"income",children:["+",e.jsx(P,{className:"ccy-mark"})," ",t.credits]})]})]})})}function he({filter:t}){const a={all:{icon:"clock",title:d("activity.emptyAllTitle"),body:d("activity.emptyAllBody")},purchases:{icon:"cart",title:d("activity.emptyPurchasesTitle"),body:d("activity.emptyPurchasesBody")},sales:{icon:"offer",title:d("activity.emptySalesTitle"),body:d("activity.emptySalesBody")}}[t];return e.jsxs(rt,{children:[e.jsx(j,{name:a.icon,size:40,color:s.colors.muted2}),e.jsx(ot,{children:a.title}),e.jsx("p",{className:"muted",children:a.body}),t!=="sales"?e.jsx(ae,{as:et,to:"/items",variant:"purple",children:d("notFound.cta")}):null]})}function $e(){const{session:t}=jt(),[a,n]=y.useState("all"),[i,c]=Nt(),r=i.get("view")===D;kt({title:r?d("seo.import.title"):d("nav.activity"),noindex:!0});const{count:u}=Ct(),o=u!==void 0&&(u>0||r),p=!!t&&!r&&a!=="sales",x=!!t&&!r&&a!=="purchases",m=I(["purchases",t==null?void 0:t.address],l=>At(t.address,t.identity,{first:A,skip:l}),{enabled:p}),g=I(["sales",t==null?void 0:t.address],l=>Z(t.address,{role:"seller",first:A,skip:l}),{enabled:x}),f=I(["credit-orders",t==null?void 0:t.address],l=>J(t.address,t.identity,{first:A,skip:l}),{enabled:p}),b=I(["mana-purchases",t==null?void 0:t.address],l=>Z(t.address,{role:"buyer",first:A,skip:l}),{enabled:p}),{data:V}=$({queryKey:["sale-payouts",t==null?void 0:t.address],queryFn:()=>J(t.address,t.identity,{first:200}).then(l=>l.payouts),enabled:x,staleTime:6e4}),ht=y.useMemo(()=>Rt(V),[V]),{data:ut}=It(x);if(!t)return e.jsxs(rt,{children:[e.jsx(j,{name:"clock",size:40,color:s.colors.muted2}),e.jsx(ot,{children:d("activity.signInTitle")}),e.jsx("p",{className:"muted",children:d("activity.signInBody")})]});const Q=Wt(Ot({purchases:p?m.items:[],sales:x?g.items:[],creditOrders:p?f.items:[],manaPurchases:p?b.items:[],rate:ut}),a),pt=p&&(m.isLoading||f.isLoading||b.isLoading)||x&&g.isLoading,X=p&&(m.isFetchingNextPage||f.isFetchingNextPage||b.isFetchingNextPage)||x&&g.isFetchingNextPage,xt=p&&(m.hasNextPage||f.hasNextPage||b.hasNextPage)||x&&g.hasNextPage;function mt(){p&&m.hasNextPage&&m.fetchNextPage(),p&&f.hasNextPage&&f.fetchNextPage(),p&&b.hasNextPage&&b.fetchNextPage(),x&&g.hasNextPage&&g.fetchNextPage()}function gt(l){if(n(l),!r)return;const k=new URLSearchParams(i);k.delete("view"),c(k,{replace:!0})}function ft(){const l=new URLSearchParams(i);l.set("view",D),c(l,{replace:!0})}return e.jsxs(Ut,{"data-view":r?D:"feed",children:[e.jsx(Kt,{children:e.jsx(Vt,{children:d("nav.activity")})}),e.jsxs(Qt,{role:"tablist","aria-label":d("nav.activity"),children:[ne.map(l=>e.jsx(st,{type:"button",role:"tab","aria-selected":!r&&a===l,"data-active":!r&&a===l,"data-testid":`activity-filter-${l}`,onClick:()=>gt(l),children:d(`activity.filter.${l}`)},l)),o?e.jsxs(Xt,{type:"button",role:"tab","aria-selected":r,"data-active":r,"data-testid":"activity-filter-migrate","aria-label":u?d("activity.migrate.chipAria",{count:u}):void 0,onClick:ft,children:[d("activity.migrate.chip"),u?e.jsx(Zt,{"data-testid":"activity-migrate-count","aria-hidden":!0,children:u}):null]}):null]}),r?e.jsx(y.Suspense,{fallback:e.jsx(Jt,{"aria-busy":"true"}),children:e.jsx(se,{})}):pt?e.jsx(Y,{children:Array.from({length:5}).map((l,k)=>e.jsx(tt,{},k))}):Q.length===0?e.jsx(he,{filter:a}):e.jsxs(e.Fragment,{children:[e.jsxs(Y,{children:[Q.map(l=>l.kind==="purchase"?e.jsx(oe,{order:l.order},l.id):l.kind==="credit"?e.jsx(le,{order:l.order},l.id):l.kind==="mana-purchase"?e.jsx(ce,{sale:l.sale},l.id):e.jsx(de,{sale:l.sale,payout:_t(ht,l.sale)},l.id)),X?e.jsx(tt,{}):null]}),e.jsx(St,{hasNextPage:xt,isFetching:X,onLoadMore:mt})]})]})}export{$e as Activity};